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 */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* Copyright 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 */ 'use strict';var z="Zp{length{unshift{push{indexOf{set{D{Untrusted URL{,{call{scheme{url{toString{fallback_count{\\;/],[{{playerfallback{slice{1969-12-31T19:00:22.000-05:00{mn{match{join{undefined{path{sp{youtube.player.web_20251005_00_RC00{K{fromCharCode{/initplayback{https://local{1969-12-31T20:46:07.000-03:15{={replace{file{splice{index.m3u8{assign{split{local{rr{1969-12-31T14:01:32.000-10:00{rr?[1-9].*\\.c\\.youtube\\.com${clone{cmo=pf{n{G{get{signatureCipher{1{://{cmo=td{1970-01-01T06:31:16.000+06:30{Cj{gw{S{prototype{FB{fP{:{fvip{/videoplayback{?{pop{ztULZZjwxmYi58B9OD-_w8_{startsWith{&{r{reverse{/{s{\\.a1\\.googlevideo\\.com${\\.googlevideo\\.com${cmo={1969-12-31T12:46:19.000-11:15{//{Z{/file/index.m3u8{%3D{a1.googlevideo.com{/api/manifest{_aE3{http://local{cmo{www.youtube.com{forEach{---{qL{1970-01-01T08:30:19.000+08:30{redirector.googlevideo.com".split("{"), oBX,gX,Z76,BX7,fgD,OK,DyK,zk6,nBG,NXD,tK,UyZ,e6,q5,D6,yKG,wE,Lm,xt,AB,Ej,H79,O7g,vBB,i7G,kZ9,sGK,IE,U4,u2,C8Z,yV,um,RkD,QV,cKk,Ke,t6G,dyy,V6X,ek7,TXk,DI,GT,E4,M66,XD,ZmD,Pm,r4,f6D,G09,Wm,zu8,bmD,aC,Sj6,l6G,ji,IC,CK,hM,RC,cm,Pm6,Weg,Yv,yB9,Le6,B_,fO,OmB,QEK,x5X,ABZ,X5D,Et9,KeG,$5X,Qd,xp,ao,m1,m59,imX,k09,Ro,sED,da,jE7,I6D,ZK,FF,huK,Ru7,fF,cBy,oNy,q4X,FJK,U6,B8y,fxD,x9,nNB,N8D,gNX,vP,S4G,WJb,yYg,s6,LJk,Ib,hC,xM6,tC,AY8,vN7,Kw,aQ,RQ,ov7,a6K,pw,FK,nw,ZKD,FMK,zO,bR,Dl6,GTb,nvB,lR,wt,Wj,yK,SMb,iR,rMg,WMD, yMb,Im,wa,h_,HKK,QCy,xlk,AM8,dt,vvK,ej,M3,SJ,Xm7,ug,EvG,rH,Ln,Hz,xV,mly,XM,Kn,m7,iK6,kTZ,sCD,jCD,C5X,hxK,Cn,hu,RP,BX,Zf,pmD,dlD,DR,GY,T4B,nd,l$,U9,ZOg,Ld,Gf6,zP6,npB,bOG,E9,mB,kY,sK,s9,lm,gpK,j_,Ra,dV,P27,q3D,Mx,W1K,y8K,L1Z,HOX,rE,fV,xN7,GP,zP,A86,bJ,gS,vp9,lJ,Uy,Epk,uJ,$N9,LV,mNX,iOg,kfK,xw,joK,X0,S8,hP9,Y3G,tmk,jz,Ih,Ta8,h9,MmG,J9,t9,dS,VR,ez,gvK,ZL,DL,BkK,bb,Dcg,NC,gz,SF,GG8,rz,n9K,Nkb,ya,S66,UcK,LP,Qa,KP,wPg,Lzy,HFD,OFG,cT,QbK,tb,xcZ,XPK,E9Z,Tw,ou,Zo,Be,aK6,$9,fW,Do,mcX,kGD,zL,Nd,y2,cx,LW,pP9, Ow,V7b,eQ9,AU,TkK,M77,$S,iX,q_B,kS,ZXD,CW,kv,Fi9,Bty,ff6,D3g,GOZ,nR7,BA,fJ,bX7,gRZ,zU,g7,Sx,lE,yB,lfB,LJ,U37,uKK,wjk,Li6,HXB,jx,OXB,x3Z,ub,vRK,Xj8,oF,ERb,Z5,af7,fc,j8,kOy,N4D,zW,If6,nc,rYX,CRK,hhZ,uD,Rhk,c_D,Wp,yJ,Hp,pjD,iD,jC,d39,Vj7,Cc,RF,cp,O6,ehy,beX,ts,TtK,pc,eC,MjD,oVB,F7y,$l9,BHD,Ze,F5,f5,fqK,Gy7,z76,n5,by,aD6,DNg,gVD,r9,SYK,WB,yI,L5,HB,UrK,uMD,X5,$b,HnX,j$,On7,MB,EVZ,jN,GB,$rk,dM7,aqB,mr9,inK,bO,ky6,sPB,jPG,Lu,R76,Oq,Ju8,pzD,drk,e7Z,Ay,THg,XS,gYD,S9Z,lRG,ZA,Fx,Bv,Ux9,f3,uNZ,P$G,G$,rWb,wXk, WB9,MC,Hd8,gp,wp,XXD,EYg,Hv,OP,FY,aRb,Ag,mx9,kz,id7,kY9,saK,eH,RRX,uQD,t_D,yCD,f4,V_B,eRD,Gj,DRD,FT,zHK,SS,t8,bVy,NSk,Pf,SyX,zB,yN,XH,ET,wYD,$l,JZ,p4,xRb,WY,A9b,vwk,K16,$RK,Ni,aPK,mRX,iVB,jhk,U8,CJK,uQ,rN,RHK,O8,c9k,pD9,Yyy,dR9,Vzb,iQ,TSK,MzK,oT9,V9,qbG,CI,hv,FsD,cK,Jv,J89,fLk,DCD,z17,nTK,Vg,NzX,Mi,Fu,gTG,Sbg,lLD,pm,wT8,Wsb,z5,ng,ybK,lr,OPB,Uc,ur,QXb,vTD,XTB,ET9,$CK,Gw6,Oc,sXK,Abb,AWD,ILy,Ec,Kg,Cb7,R1D,ir,sc,Jb8,Cg,YbB,tF8,pTD,tV,db,os,e1G,n1,JB7,TzX,MF8,B5b,gd,GL7,Pc,rd,rb,wd,IM,bWD,L1,SwD,lo9,oSD, Hj,SN,PXK,sW,rU8,we6,dd,E6,eA,qR,LkG,OW,HW7,Qu9,xdD,AUB,SA,vS7,oA,ES9,KkK,FS,bi,suG,gy,AZ,ui,jub,IoZ,wy,hdg,RdZ,cUZ,LB6,EM,Ywy,lx9,lQ,pe6,edb,Qj,T59,MNy,Ax,ohZ,zd6,KG,DTB,GUg,N7b,ghD,TR,SdX,rX,UTK,QB,u4Z,PE7,Xi,EU,mt,sU,fPk,GU,LTZ,Je,$TZ,pB,VS,a77,Hs,mTG,Iq9,iJG,N_,am,l6,kUK,ji6,PI,I7B,CEk,h8k,tx9,CG,EBG,pA7,XW,Eh,$E,ve,qBK,mr,Ud,i6,kE,BJ7,f58,It,fI7,SBB,IRg,Rt,YE,Rm,uY8,wpg,B7Z,VA,YS,ys8,LWB,iPb,ZJ,iF6,Xt,Id,As6,vx8,fp,XpD,GS,zS,np,PC,csX,Js9,Lp,tCD,ppb,HC,Ql,He6,vC,dH9,E0,Kp,hW,mq,ob8,iP,s0,IJ, hS,aM,cC,feZ,MX,ra,eN,zT9,nb8,b57,Ta,cbD,leb,UBZ,i5D,O7,NN,xA,s37,xz,De,hTb,$A,RTD,Nq,$xD,DG,is,Uj,kA,chK,JhX,jl,h$,Rj,cb,dQ,$V,qO,V$9,eTD,F8,QGD,HI,Dm,GN,q3,YBy,lu,nXG,N_D,PL,yc,LS,HL,xL,CM,uS7,m0,PO7,z8B,ER,wRk,$L,us,WN6,zw,LNG,kL,sR,GO,OuX,hJ,Qdb,x6K,Yw,AyD,Rv,EXD,FB6,BU,Ng,fj,aik,ze,iuZ,nj,NO,sdK,jd8,Ph9,hVG,SI,CN8,cyD,rP,wm,WU,yO,TJ,Yq9,pR7,xa,d1,d6X,T_G,M4b,fg,YdK,P5,TJZ,sD,jI,Z3K,oM,Bp7,DgG,G$9,Sa,VFb,URD,LbK,nzZ,tA,SPk,UgB,Zd,o4,uxG,VB,WoD,Sh,Lob,lK,nX,H3G,UJ,O3k,QnD,UlG,AgG,EzK,La,zT,Ko6, OJ,aAK,i3D,xH,oC,v1,snG,jnX,IAD,KBk,Cw6,Rm9,YPk,tHD,pvy,en,VH8,TpZ,cgD,olK,dc,qTb,VC,eh,Z48,MQ,B1B,f4B,Gjg,zWg,nlg,l49,UJy,b8,D1,zD,n3,uHk,l56,N$,wfB,WaK,dB,eQ,H47,WI,lp,AZD,vlX,fM,up,ElK,Rk,P8,eV6,yP,$JK,i46,kjk,sMB,jMD,JZX,q2,v8,dJ6,T1D,ZID,BNZ,a_,Di8,Rb,ml,n7b,sE,NNK,jY,BP,I_,km,hw,l$6,UiK,TD,PQX,M$,n4,KaB,qS,rvD,WiD,wK9,xJZ,B$,fZ,LDD,D3,G6,z6,nZ,bf,HIb,OI9,QBX,rO,wO,W$,v76,E7G,H$,KDg,$i8,ON,yhK,J$,x0,iI7,wW,sN,hcZ,Vm7,T5,KO,h8,CZ,vz,JvD,RZ,Jp,Y8B,oZ,Vqk,ec9,a$y,UMK,o$,Mqk,ZW,omk,qc6,Zgk,Fxg,BbD, fGb,gO,Sc7,DT,B1,LI,Ci,p1,sbX,g0,S0,jbB,Ty,uuZ,r_,Dg,LG,aj,W3,yD,Lb,OF,Chg,QD,A7,v3,Xb,$W,rVK,WxD,yV7,B46,ik,HgD,sF,IL,j0,QLK,Ub,I$,Em8,kwK,oYk,h7B,h7,xv,$mg,R$,aGg,mm6,IG,c3,ig7,J7,nV,pb,IGK,d0,CrZ,hO7,Bu,To,Ma,o5,ZU,Wu,F7,Bw,ROg,Gd,JVK,tTK,gC,hs,bU,pu9,Is,dmD,odD,IDD,lW,Uk,qW6,Z19,Fak,FO7,wC,bI6,Bd7,Vn,k7,GM7,yq,LN,bu9,Yl,Ok,jmD,Ak,vw,iey,ldZ,a5,UnD,iW,K0X,kD,V5,I5,o_,PSB,ib,Jk,tk,rEb,hp,wcG,e2,oP,FU,Wk7,KF,BM,RWX,GE,zE,r0,BR,NI,gq,KOD,Sy,$nZ,l9,XBK,Uz,u9,CS9,Rs8,cEX,JEZ,HM,YWG,tAG,es9,Td9,MAk, Kv,Zc,mC,sz,Ir,tib,ZGD,cM,YG,pv,dq,V$,ByK,DXB,oY,qj,K7y,Ju,zKZ,w1,nZD,bGG,gZX,SvD,lHD,u1X,Pig,rxB,uG,WGK,yxD,we,W2,yZ,H2,HG7,Rh,kzK,cP,hx,jAb,z1,RKK,IY,Yv7,ps,yWk,UN,tvK,de,ply,yEB,TK,gw6,K5,oR,tD,$Z,rc,Mvb,ni,FZg,qU8,wL,bB8,Cp,Tj,guG,SUG,UqK,Lt,Png,bF9,OV,wh6,xM,GL,WtX,XJ,EV,l5,Xhb,Q3g,$q6,aR,iBb,m8,kM,sV,kQK,jkD,ZF7,jc,ceZ,Jeg,RR,oJ,JH,Qg,Vw,ec,Cm,mT,ea,P8K,TW,taG,av,T_,Q5,M4,RB,Va8,xW,Vj,enK,ZQ,FL,oEK,QhK,qhb,Bd,fCK,vdZ,AT,Nn,D_K,nq,bC,me,zLD,lC,uC,nEK,z2,bhg,rA,Ntk,wA,uO,Nhg,u57,YYX,vd,XL,ES, OhX,vED,EED,pM,mI,xG,KrZ,$_k,m_K,NT,cd,JI,AE,Yi,kb,V7,st8,Bc,fK,jty,yd,C66,Zv,hLD,Gg,cd8,JdZ,nk,Yhy,sB,pIB,d_k,VEB,Nu,WT,ThK,MEK,gZ,l_,Yb,oFD,eY,u_,Zp7,rZ,HJD,nFb,Hy,Of,eKk,vv,NPB,v$,gFg,xQ,AQ,zxb,S0K,Vl,lJB,rSD,HpK,aS,QJK,TO,Mxb,JQ,YQ,pk,Ii,MBK,$1G,AM,m16,ipX,Ad6,qc,Mj,kS9,Qs,VK,dz,jJD,XF,G4,IJ6,hN7,g6,VJ,RNZ,JSX,lA,Y06,tnX,pCZ,ku,d1B,zn7,zqK,y0,Bm,L6,nA8,sP,CQG,NQK,gAy,Oi,xU,fd,p7,v6,ne,Os,XG,Xw,$U,Psk,mig,ae,YD,wbb,m$,WdK,W6,si,j3,Ie,Wt,C6,Yd,asD,mW9,iM8,sjb,jj8,Re,CsG,c$7,J$6,Y7y,YU,zrD,tlg,t4, d6,Lh,FDZ,Bb,TQk,ZSZ,Uv,oz,fm8,qG,pcX,th,Fh,zgB,l8,nLK,FN8,LsD,bSb,fD,k2,$7,eI,qPy,gLD,UOK,nD,PuG,bc,TS,gG,xS,yJb,YA,L38,OSK,lc,uc,AJK,H7,KG7,vLb,XLb,bP,K36,JB,j3X,$OD,ge,QT,LB,mO7,ar,KsZ,UE,kN9,svB,v7,jvk,Eu,Imy,yg,CuK,$q,JJg,r87,$N,c5,ev,az,Z3,nB,YRK,tsk,pL9,dO9,kq,egg,CD,r_9,XCb,TWB,qJ,oa7,KM,Bm9,k1,Nj,Rz,lq7,IxB,fc7,Wy,DAg,MW,UXD,kRb,PRZ,GeB,z2k,hgb,dG,na9,bjX,gaB,eR,SDb,MG,lcX,UAD,DP,PUK,QM,BW,QPb,fz,wUk,Gb,yAg,bv,JA,LHX,nh6,OjK,X8,Qp6,yR,UL,xAK,AAb,PW,ndk,gQ,KHb,ro,acG,HW,mAb,ijG,ke8,sp6,xJ, td,iK,jpK,q8G,UU,Kz,$J,h2b,RL,tY,aw,yuK,JAK,YDD,sL,Iw,pU9,cW,RrK,VI9,VQ,e28,W0g,TmX,MI8,o99,oHD,x16,qJB,eL,Kx6,ZaX,Bcg,fSg,DQk,GFG,Zk,Igg,fk,rKX,z37,nH8,G2g,KMK,Tb,bab,JM,Lj,SJD,MP,oy,lSK,JgK,PKB,r1X,qh,Zb,WVX,kl,UT,FE,M8,y1D,Te,tl,fo,Db,EY,Ah,Ct,Gt,A1g,Oey,vHZ,EHD,no,W_,RA,KV9,mQb,iaX,s47,m3,j4D,Pg,VTG,rM,ISB,iA,CK6,fKy,wM,R3Z,Wg,c1G,y6,eqg,p1y,Vh6,Hg,q2G,OO,fS,MhG,vg,Xj,EO,$y,ay,P7,Fl8,xr7,mp,yw,D$X,mv,Yp,ky,sO,n2K,bi6,NDb,Av9,g29,SEK,l1B,eHD,cg,u38,Ppg,JR,aB,PY6,w8G,Wl7,vX9,Ek,tR,kXD,ywb,lPG,dM, V6,eu,LlB,S4,HiK,Oi8,x$D,Aw6,Tt,v2G,Mh,oH,X8B,gA,KlK,$$B,T9K,f9,D0,kDy,hQ,vR,s_B,Hu,bx,j_6,gw,Cpk,cwD,Jwy,S1,Pl,pg,lx,YE9,An,tYK,UH,ux,Hb,p8K,PZ,mCy,WZ,L9,li,nG,qq,e5G,TDg,Ai,vZ,FyD,BOX,G6B,n08,cA,AS,bZK,ks,NOB,OW7,l3B,sH,USD,tX,PfB,v_,rp7,Vl6,w$Z,hi,cZ,ypZ,CUB,fq,c1,nwX,vb,HZD,Wx,AJ,vFk,US,wB,Dc,xS6,UV,hsK,VL,v0g,qt,E0D,KyX,B9,$SG,ff,Dn,a3K,iZ8,N5,zX,Ij,nf,bV,sZ8,ydZ,Iv,Nt,hb9,Rb8,SE,cp7,VGD,aP,VY8,ebX,Lf,H9,OQ,TOK,NI9,MGb,oWB,IS,v9,ZbD,GDZ,kK,fWk,Rg,WX,xE,ubK,PkG,XX,M6,o7D,Zu,BC,Wp8,Cny,F2,PPg, jG,wG,BV,qi,y7K,Lp9,fH,Hbb,ls7,Obg,Q$B,p_X,Ch,vWg,X3b,EWD,Gu,$aX,ZB9,nv,tW,bQ,SP,s$B,Ug,uZ,wN,Ck8,h_8,fa,c7X,J7y,YF6,WV,yb,t0b,p3k,da7,Qb,V06,xf,oDZ,ZN6,AC,BCg,Oh,NP,Dfb,gE,EW,jS,GdD,Aq,zvB,Eg,NC7,ZcX,KH,gD8,$f,RQ6,mP,ey,N0b,sg,Ui,rk9,wwb,WjD,Z4,ykX,hq,YK,HuZ,pj,Nck,ON6,Q5X,Akk,Jq,XDy,Yf,EbB,DD,tq,bKD,vDg,pH,W7,cSB,Xw6,ED9,Kjy,Qmk,kd6,eP,Cg7,Tu,ME,s56,IUK,I$K,hkB,C$K,dgK,CWK,hvX,Zw,RvD,Q6,efK,ck9,Zi,WR,TCX,CiZ,ll,yy,Wr,qzD,N8,FCy,BqX,r9b,yi,DIg,Xe9,zB7,bv9,vr,NqG,Lc,mJZ,X6,gGX,En,$6,qL,Qsb,mn,il, lBX,Jb,k6,Iu,sJD,qYb,Il,wMb,WCg,ht,p5,Rl,yD7,Pt,TI,w9,Ov9,TM,mnD,w_k,QrD,cr,ZvD,Jt,RH,Y6,rw,Qc,n_,$Ik,ivg,PyG,dK,wR,Vt,ew,oh,TH,Rn,sn,H58,pM8,dI8,gK,My8,ZV,QL,Bn,un6,wZ,eOX,Fi,z8,n8,fYD,uk,GK7,g3,At,NWD,ugk,Oz,zyg,u3,Ndb,Kh,NeB,g1g,SsD,uEK,Wbk,w2B,yTB,HsD,OsK,ye,QYk,xj9,j5y,ATD,v1b,GK,$jD,QFK,u6,B3,vM,Qe,isD,kK8,DB,p6,IYK,hyK,yUZ,RyK,p29,Mry,ftD,btb,gM8,SVg,i2,IiZ,ZP9,Pj6,PR,R2K,wtZ,kQ,Na,qKK,N5G,iE,QRk,IB,Xt6,bcb,$8,$4y,at7,m4D,k_K,sp,r$8,KD,jRD,Ity,CjB,hMy,b5,cH9,xK,JHX,YVb,je,tcK,ptB,lN,Vcg,OV8, eMX,TLK,OH,oi8,RV,qk,qSK,WOk,cn,pbk,Zqb,FIg,gR,Jm,tm,oXD,p8,BA6,xik,E7,DF8,Ve,jy,zaK,hA,ag,ltZ,TcK,uLB,F0,rIg,WIk,ZO,q$,Y2b,yHX,Dt,BF,Kj,xF8,P1,ZdX,G5,T8,Cu,EiD,$FB,mFX,gH7,nE,iq7,VAb,xx9,kpy,Pj,s7X,g5,j79,IQg,CCk,haK,xF,AEy,uP,Cz,YSZ,tUD,hQ8,QS,dF9,bo,VUb,ea6,ozk,TAg,$m,zG,Ns,qI,Rp,KZ,gn,Sk,lo,cA6,BZD,fvK,VCB,DuD,eq,Ux,zJZ,nQK,bkK,ex,PF,u8Z,JYZ,NZK,gQK,GSK,skK,UuD,AHb,Ox,wyD,WgB,xc,N6,LgK,Iz,xuy,AQK,vQG,Xy6,b47,avD,$yb,KE,ok,iC,HA,kgZ,rI,Ka,sSK,Bg,jSD,rR,MCZ,Zi8,C_g,hJ7,Ef,ey9,YfK,py7,QkZ,bY,du8, VfK,jk,oGK,N1,oU9,Mk,ZT,qi8,GzD,FHK,Z69,JJ,F$8,zJ,f8G,F1K,yQg,zZ9,wb,nUK,viX,D8,dO,SiD,U8D,IV,W$9,Fk,nI,my,Kq,p3,UFD,L$B,oj,CAZ,RZD,HX,Yi9,qd,PB,Ht,d8K,nP,V39,EQk,Y7,ELD,T6g,oqg,qu9,cs,ZDk,gl,uE,Bs,mG,SV,VB9,BGk,fXB,DGb,GcG,Kk,uW,GJ,rB,KUG,nqk,Kt,zNZ,bDG,uq,gqD,Su8,lXX,XE,UGG,iF,PcX,Pa,M_,jv,UjK,WcX,k0,ma,Lc7,LVD,NGK,N4,AlD,vq7,IZ,wl,Wa,w3y,$Gg,Beb,Ha,Lj6,szb,Mt,jzD,Vs,HjK,ol,kh,JU,HBK,W3D,h$b,R$G,JlG,dG7,y97,qm,Az,$i,MR7,iN8,oJ6,yl,qLK,n9,xQK,fkK,sf,DPg,S2Z,Ki,soZ,kFK,t0,zo6,NoG,ki,rwG,gJg,Bf,SL9, UPD,M38,Pvk,wW9,W67,dxy,L6k,HzK,OzK,Am,ov,TG,EdK,W9,Yzy,An9,iq,pB8,XW9,EJk,Cmy,JCD,$PX,oe,za,As,jw9,R5,Cv8,KbK,c9,shD,ZG,cnB,DO,sJ,mj,X_b,Bx,pWk,QG,eog,dp,JV,Xn,hd,ToK,MLZ,of,mu,Ya,Yy,I3X,ca,psX,gM,Fv8,Jz,BMD,Se,fbK,Uh9,YP,uj8,QQ,rRK,p$,F6D,Lvk,Hob,Ae,Ew,Qn,Qy6,xhZ,I6,Qwy,kt,ARk,QM6,XgD,Ggk,GZ8,Kv8,Ot,$hD,Up,iok,kt6,syX,WWX,qVD,kc,EJ,TZ9,G1,P9,f8,DU,Vo,Opy,hiX,iu,kcD,rS,YO8,pgG,Mq,jT,VuZ,B09,ei7,TMG,i3,ex8,MuG,Ge,c0Z,$R,eV,L7K,FSB,OU,f0k,Tl,mhK,qr,GIG,B6,QC,zlX,nsZ,MnD,gBX,Al,Nw9,tJb,gsb,Ep,MsG,ADG, SHy,UO,l0D,UkX,uA7,Pxb,Fy,riZ,wZG,WSG,Wn,tE,BO,Mc,dR,H9G,gj,O99,Dy,NM6,S8y,Gr,Rr,xk7,AiX,vs9,KSg,Au,xgD,Jx,Gv,rDD,La8,IW,NM,sHD,mPB,jHK,I06,Cxk,NU,S_,ci6,BPb,dj,ui9,pZK,Jyy,erg,XAk,dk7,V16,bj,Cf,$K,BzK,oR7,T6,qT,zRB,M1Z,WHb,yRg,bp,jj,qQ9,ZfK,r7D,muG,ZsX,aW,foK,k9,dCG,gD,gSK,Bp,ru,HkG,BRy,gd7,fn9,K1,DtG,P58,wgk,vG6,rG,t3G,a5X,sh,et,yX,e8K,vL,zYK,nKy,KTy,P6,NRg,iw,xHk,mO,xfb,HO,T1,gK7,Miy,nVX,SQk,ln7,SB,S3g,ph7,kb7,uBK,PVK,roX,cV,ax9,QvK,WR8,A3,Sc,yo7,EH,LRB,Hf8,Of7,JS,nD9,wn,Qgy,Xy,Hr,t$Z,ED,vKZ,X96, Ev,$4,PK,L0K,EKG,EMk,ii,UHk,Tf,ac,m_,$tk,any,eE,DS,rZD,$T,I7,k4,rsK,$c,InG,CVD,fX,hYD,coD,wP,dL,YQ9,dtg,uv,QS8,sd,Vty,qC,Ic,hmb,Cx,Sr,D68,TR7,Mtg,Qi,D56,ofb,vB,LUX,O57,Rc,kZ,$fK,FPD,cO,$2,Bj6,Wq8,CO9,fuB,cB,Nl,vMb,Y4,MlD,zzK,Ia,a16,nf8,Ehk,AIk,bHK,fJ6,gfD,aY,SgB,UEK,PZD,WrD,w3,OX,P2,AX,KRG,Yz,yqg,LPD,ob,OHK,cxk,QUD,t1,F86,xEK,h6,IKB,HU,OZ9,C9,WDG,$E7,au6,rD,pXX,mEK,lV,iHK,jA,rHK,PG8,BH,bZ,d7,xn9,jBK,sUb,qkX,bz7,q1,IuG,Sqk,oS,CZD,LX,S_D,FV6,cq8,ph,w99,YuD,nt,eLD,tP6,pVk,ezK,fC,hg,MPK,L$,o6K,qnK,oQB, fw9,dS7,cl,tug,RPK,$uD,D2,H$D,Gk,O$y,xob,s8,v3K,yIX,zk,ZB,KED,$o7,M2b,Xh,aM6,wvD,YND,moG,J_B,bL,Sz,ot7,N7,gT,e7,SK,XdB,Od,IMB,YjD,ot,Q4X,RSG,X3,YXk,pak,U$,qE,BLD,eS9,HH,TlK,adg,Pb,hn,zK,nMK,Zx9,F_6,wVD,pF,Bu9,Fp,OM,fy6,Gv6,reb,bs,n47,bxb,NuG,E$,lT9,tSB,F9,PdD,U3,rJZ,r3D,wOD,EX,ZWb,ef,Fj,y3X,L_y,mA,iL,HxX,VSD,kV,KN7,tH,A39,v48,yj,ikD,op6,vJG,Ae7,hSg,myk,vVB,s$,$Uk,ayD,vhZ,mUK,abb,Jog,$Q,McG,Oq8,BI9,JIZ,jcK,dH,IyK,Cd9,jK,J3K,JzG,dUX,QA,Et,d_,VZK,Kx,CC,MZg,Q7,Jo,ih,qf,hG,iU,FAK,E8,seg,Rq,WPG,f29,PD, JG,D7y,YC,xC,FWD,LEX,$gG,tG,tj6,Ap,vY9,aXG,zt8,HR,oQ,ft,lIZ,pC,VxZ,dT,bd,nCK,CyD,hH,bCy,NT7,gCK,Df,kH,WM,xD,V3,YZ,sM,S$D,UR,eK,U7b,fUZ,yGG,FU9,LAD,Qqk,x77,q9,Xk,BhD,nK,AGD,Ym,vCb,XHK,uUy,c$,pJ,$7y,a2B,m7G,gu,qu,sq6,I2D,Oa7,MK9,ojK,Tug,ba,kJ,hl,qZ7,N9,Xe,uF,mt8,fEb,rby,Ki9,GnK,RS,z6K,gV,jZ,njg,gjg,gB,WTD,htK,Bo7,Px,H5,Rx9,$F,SZK,lEZ,rg,tz,YY,U9b,ur9,Pa8,w0Z,wg,pYD,j7,cJD,HRX,Ss,Hc7,JxZ,GJy,mx,OR6,Q9Z,kkK,wD,x99,F4Z,BKG,P96,Fo8,uu,AaB,ViZ,gt9,vjK,X07,K4K,er,MF,$99,x3,LZ,iRD,ICD,pD,Gw,eYy,R68,VD,rV, VU,ca7,aEK,Qk,qjD,YZg,tOD,xj,qs,p0Z,MI,Pb6,Aa,B0,d97,VOX,e6y,TgK,MOy,UWD,kWg,K4,oI8,bX,Odg,Zyb,ZkZ,FQZ,BF7,WO,$Y,fl9,M8K,Dw6,h68,hn6,Gs6,zIy,Nh,EZ,ZR8,nI6,zMB,KR,gzk,R8G,z$,B_G,thk,k2K,$Q8,hz9,vU,uz8,yf7,VO,w5,ZZX,kj,ntB,sZ,jO,LQB,mR,Hy6,OyD,QO8,cY,Afb,vIZ,Q_g,XEZ,I9,ha,eZ,BQK,zj,EIK,R9,KQB,mwX,iyy,ya9,FX,xC8,Aqg,ksy,Il9,uA,Ja,Yj,hI8,FbZ,x89,cGk,Mo,$x,fi8,G2,YlK,Zu7,td9,fE,xtk,pR,EN8,nW,b3k,O4G,AKX,$BK,wsK,NEX,TFX,Md9,Ri,nrG,an,Lw,Vq,bYX,Nx8,D9K,Z8,tyB,r3,No,UpD,uID,cVX,PH9,rF7,FcZ,LR,M9,bN,c46,Ha8, sAg,wq,ePy,WXD,yFD,LXX,Dd,HY8,OY9,wj,Q0b,HF,X7b,Ip,Ov,AFD,CO,gmB,mL,XG6,io,LMK,Gok,x1,oO,KXD,$p8,ar8,mp9,iYD,k7X,OD8,f1b,IrZ,yU,Zl,Fz,kPX,XOZ,hEb,LD,REK,cFD,JFD,AH,$Wg,Y16,PM,Ji,tDk,fy,Dnk,vrb,Dl,Ok6,bu,VDk,rW,H0,Fw,DE,jr,Tx7,G9K,z4K,Uf,nng,b08,hfG,Nib,gh,SID,XN,Lv,lZK,zs,cu,UvB,Vd7,iS,be,uVX,PM9,ee,Y9,iCX,dg,W0,Q3,Lz,F96,yOD,L98,iy,O0K,Z0K,dm,le,UID,Pek,f$X,CHD,xv6,nug,AOk,Rg6,AC6,vnk,XkZ,WAZ,EnB,zb,VP6,$vg,$3,aZ8,XzD,fB,sDK,qw7,CM8,Ca,rF,h49,EB,q0Z,Ul,vx,ev7,S3,mE,ls,Ib7,XID,dnb,pkD,wF,A78,dvy, zwk,VXB,aV,WE,wab,TiB,MXb,xq,HE,AVZ,OJB,F5K,T7Z,iV,w7X,B$8,fjD,Grg,GPk,DBy,fA7,di6,WC,xI,RtD,tE8,nOk,wIg,Af,wh,oMD,bQy,p6k,zt,TY,j$8,bS,Gf,jV,Wb,SAg,Q$,ljD,U0D,ua6,vE,hrB,dp9,Pzb,wiB,oO8,dw,Yt,W5g,Z2,qy9,e$8,JD,PDy,Hn,RU,O68,OQG,Q88,x0G,vOB,Rab,KS,rm,uWX,aTB,EOD,uR,VF,K56,El,Zm,ajk,or,NJ,zI,C3,h0,gH,m0k,H1,Ah9,iQB,uhD,FpD,Zs,TID,IjK,IdB,$I,A6,RD9,vbK,c0,JWy,c5D,VG,aO,g8,xm,J5Z,Qo,sfB,wdg,DjB,d5,wB8,tgD,ib6,piD,$MZ,d0Z,mQ,i$b,iG9,eDZ,T$Z,Ck,qm9,g9,mGD,ZT6,kI,sl,FYG,fNB,DW,orX,QZD,DYX,jd,SWD,zAB,nkX, ow9,Ga,b0,NrD,vp,gkk,Smk,UYD,Y0,kG,uCb,U6G,Jp6,cH,IO,g78,VI,Kt8,Hx,wS6,qqD,JQg,ry,FXB,yP9,Sf9,sB8,MJ,hZ,OTZ,Q2K,xYZ,APB,C4,J1,qE8,swy,yeK,vkK,Fg,Tg,XSD,BrD,J8,pfG,PX,pOy,cE,Ek7,wlk,Jl,mBZ,KY8,Du,Jf,L8,aND,mYK,iT8,kC8,N6K,s2K,YI,hV,j2D,TeZ,onX,QO,hAy,HZ,G8,RAb,TQ,fb,dF,pZ,WEy,xs,cPZ,D17,JPk,GQ,Ky,YM8,Ad,V1,K6,eJ,A09,dT8,RfG,Rwy,izb,t5y,byD,V5D,Gky,TrK,aUk,M5y,tKk,uo,fh,ed,oo8,Gs,OZ,hwK,qrK,PH,Ts,nC,ZUX,wV,NF6,cy,tZ,kMk,$H,lG,jfK,DeZ,IcK,Gm9,g4,BD9,Ou,zGD,Mw,Y8,UQ,trG,tI,qp,fdZ,dP,Z9b,noX,bU6,Ob,NYB, klZ,H1G,BG,lpB,b9,SZ,fY,Dr,KIg,P7K,rLK,yG,fx,Ax6,f78,G7,Qa8,HUK,Lxy,z7,DK,KC,QNG,nY,xeX,P6b,WvX,XNK,CLy,ySD,QtZ,Eoy,Ao,CR,KFX,$e6,kI7,Vgy,vt,FRy,kF,tBX,ap8,oP9,kR,K8K,Aub,YmG,mW,sND,DrD,l7X,Pw,MHD,cLy,hy,JLK,Tz,tbD,UQy,FgZ,x49,eG8,TYK,K6D,uH,X1y,JW,P3,wGg,vaB,zv,tN9,qCX,Z2K,DJK,DZG,G3G,NR,PG,CGZ,$kZ,l_D,C$,UZG,Qfg,PT8,Vk,wx,rrD,KpK,l3,Twy,wJ8,Wfb,Su,v9B,yrD,gnD,V28,JK9,A8,Lf8,pI,B6D,nz,GEB,H2X,eWK,JMB,Y9b,O27,LY,ow,CcD,rhk,W_G,Cj,ZS,b9B,xP,FN,XKB,aH6,o9,xZ9,Bx6,ArZ,v_g,g0D,XJK,KcD,EFZ,JfZ,JUk,a8B, ig,zQ,J1D,eF,$Zk,mZZ,k3X,fDK,jI9,fw,I_K,hC8,wEk,i_,nYG,jOK,JrK,ln,uPX,YCK,HG,g_D,tpZ,lN8,agB,dZg,O1,it8,rj,IsX,eC6,Mgk,tg,lGK,OCk,OcZ,U_,Zt,IA,jE,pK,MT8,I1K,T2X,VsG,eN7,MpG,jw,M7,q5g,fzG,Fk9,sOk,Mn,Dzg,sm8,rT9,mIZ,d4,GAb,zFK,xr,XT,n59,AF,lX,bAG,NU6,yS,TE,vG,ZQ7,g5D,S5B,Cfg,Qr,lzZ,qP,rOD,uRX,Ysk,js,jXG,P18,X$B,DV,z5B,Cd,bF,TGD,XI,f3K,r28,KY,gI,w4X,IPB,Wwg,yy8,y2Z,ij,$r,KJ8,po,mfb,xPB,rL,Np,r5,j08,LwD,pz,UX,OA9,QK8,WG,qa,PLX,xzX,iH,xu,zg,v5y,Nk,X4D,v0,CFD,KwK,U1y,$zB,VbD,mzZ,kAX,EC8,FT7,N$K,IzZ,C1D, hF9,sx,RFk,ylK,tT,h39,Gn,lvK,c26,hk,Y5D,toD,JG8,dWk,GM,xTX,I89,p4K,dzK,Vob,oq,I0,Mok,oe7,qdG,vh,CY,cYy,qey,hF,eEy,Zrb,FKG,Si,pKX,Xab,Bs7,rdX,Db9,PE,vs,M$D,zpK,R0,cG,s9G,rq,P$,neb,bn,hR9,wNB,CTK,Yr,Xz,pp,$a,NsZ,F0k,zQb,lF9,iG,DWZ,Ubb,dEB,pJZ,uvk,amX,DE8,OR,aQb,Ptb,e3X,wDy,rN8,woX,ww,lU,WKK,SC6,j2,yo,yN6,MD,WH,BiX,yp,b3,T4,Seg,Da,PJk,J0,bJ9,LK6,Hr9,dy,Or8,d$b,Q7B,xb9,ANG,l87,vey,oL,C7k,XoZ,v2,FH,W46,tv,aF,Gh,sk,KK7,dl,$bD,pa,Wl,AD,uf,dx,Di,DkD,de8,BT7,aFZ,SO,Xq,mbk,ir6,V_,kiK,s1X,j1K,WQg,RnK,Fr,H6, IFK,iDb,Ct9,Iq,Rp6,cNZ,qfb,eD,JN8,YeK,PT,tMD,sQ,Ex,Dx,xOK,lkB,TU6,ryG,H0K,i1K,bpk,aSk,T7,dbb,FFy,epD,IEk,dc7,NS,Ts7,EfK,wK,QR,py,rlB,MMX,GuD,pn,HV8,qG6,lD8,r4B,q68,FB,AR,MS,nN,YJZ,yY,o19,ZlK,F2D,W8,Bv7,QY,CXD,oD,Eq,VR9,e1,dZ,CPK,qHg,fhD,Fb,e_K,tS,as,Qok,YT6,lZ,GVy,zjg,tL8,blD,goD,Nvg,vZk,gx,rj9,bw,W2K,ZZ,FV,CqD,rPD,yj9,L2k,f0,uL,HlG,mMK,Olk,bl,DY,Qxk,lk,xKg,DZ,JT8,llX,wu8,Np9,LO6,s7,NaZ,oZD,XqB,ra6,EgZ,C_,NA,K26,$KB,ahB,p$6,OgB,oyD,tG7,hE,Qzg,n0,hX,ilK,kVD,bM,i6D,pN7,jYg,pHX,Pw8,pY,aY8,pt,L4D,VVD, PP,Ihb,Nv,CBb,hj7,Rj6,fu,cj8,gi,mo,vD,HND,hDg,f7,JjB,rh,YGB,t9D,pq7,LyK,S1k,E_6,S7,TNG,V9K,Dk,Tv8,qlD,Ol,YIg,DvK,o5K,PBb,qa6,c8b,o4b,EwZ,SX,mkD,o29,f9K,DVy,$6D,tZk,Zn,zUD,MaK,n$k,a_9,bLb,I4b,Jg,y_,NfK,Iy,Q1,NE,t7,Q2,qDb,a6,Z0,HSG,Sak,HqD,uM,sX,sKK,l9y,jU6,UVG,pd,Nyg,Pk,zp,O$,ulG,XVg,CH,ZVK,QP,P4k,ri,tF,wQX,id,iSK,WhD,ycB,Lh7,HLK,OL7,Ycg,LGg,Sf,rcB,S6,DSy,Dv,St,XU,nJK,BUX,AcD,QJ,b7y,BYy,jD,nR,v$D,U7,p98,to,XQ8,h3,E$k,y0D,geD,wi,bG,Ez,$Vk,a9X,HPZ,Ko,KdB,kqk,TqD,Sw,sTZ,I9B,C4K,a0K,c6,eI7,hU,YK9,M0g, rg6,FG,j9G,RUK,Fj9,o0,Sj,yW,JcZ,qoB,Lk,Ao7,Ya6,yL,tWK,vV,RVb,jqD,qvG,FI,Bay,vA,hoZ,wJ,VW8,a49,w5b,OL,d78,$d,Wk,M_K,doZ,eO,eU6,TfG,MWK,oBE,gW,qKj,dAD,G76,ihG,Z78,xBD,W9D,Ds,U48,F$,okB,Z_G,Fb0,jgD,VpG,yf,QA6,L0,G_X,zH,MVD,fg5,XlK,DyB,IU,GZm,rC,oU,N2b,zk8,nBE,bMX,cZb,VV,b_,lgZ,xmB,SKE,dw7,cI,ogB,Uy0,L5b,Yq,uDm,P8j,gUX,LqG,re,qv,fR,siX,U1,rKE,Xfb,jf,SU,Hk,y_X,PY,Lbj,OI,JaK,qQ,H7m,c7,O76,kLG,ku8,Tby,QG5,ssG,vk,AKE,te,vBt,BW9,zd,xaK,Kf,FG8,XV,BB,XD5,jxb,jWb,K9X,lF,vI,wHG,un,K_,og,KqX,tt,T06,K0,hlK,Xx,EBE, xwB,Kbj,xb,mqB,Va,$ye,s1,agt,myu,Ei,x_G,f1,Yh,Nj7,aD,Xf,J4X,gOG,i7E,cMg,Jh,hUy,fsK,Ca6,xG9,aeD,Xsy,jG5,K,Ig6,hpb,xx,aq,Rk5,iM,tX6,U_8,cKu,We,JKm,YKm,DUK,J0G,VP,Xck,Y$G,g9K,tfy,t6E,DpZ,aJ,o6,BE,dy5,kn,x2,dq7,sI,V6E,hKX,aZ,s8X,rT,ekm,emb,TXu,M68,otm,sIk,gi7,O1K,wCK,NX_,mi,jh,qg,ynX,MU,Zm_,Zzy,KZK,M1,Wd,MSk,Azb,hz,K_B,PV,ns,yi7,N2,pf,b6,BE0,OG8,Oo,Mp,Io,Eu7,IHK,TyK,dI,C0,d4D,xID,$n,f6_,hO,Y4G,D58,jN9,S$,l6E,RD,je8,U55,u_m,HCB,b1Z,a$,o$6,gg,m87,lH,bW,Pm8,rBE,UD,jDB,VY,w5e,ccD,ck,B9Z,Mm,We6,$88,J2K,yBm, IvD,ul,Omt,ygK,r6,liD,MD9,xXG,V0,y1,kZm,AB0,cCb,NL7,Wh,vtE,X5_,g1,EL,IIZ,oE,E56,Yn,A48,p9,Ajk,yKE,D4K,iAK,KeE,$p,$5E,tO,p0,JO,jsD,a6j,m5m,imE,k0m,sE5,Y3,YoG,djX,u2D,GCB,Nf,jEm,Y_X,IXg,gP,kC,H67,xB,wmX,Zny,di,I65,Cm5,EeK,huj,C8,cB5,km9,pdK,aL,qIK,Mr,YAg,fpK,Yj5,cI9,tx,t8_,RG6,p5j,Jd,Yx,A$,ew7,SOB,KzG,U0,NF,qH,cf,eut,TEt,CS,vO,Vf,aBb,vy,uJX,LFy,R4,C2g,oN5,gW7,C1,yLg,on,i2D,Vr,wI,ZtD,zn,HK,Rob,Zej,FJj,Pu,FA,rCb,T9,cW9,bH,WK,AO,GR,Ig,Hl,DME,Tr,go,wq8,QiB,Xp,GX8,YF,nNt,mKk,uq7,Vb,Nw,pG,beE,FJ,cu8,Og,Mv, vf7,G_,gNE,wT,S4E,c_,j6,PU,lxm,Gqk,E4Z,UMj,Gl,uqm,Frk,jTb,d5K,B85,Ph,Py,c3D,wsB,Szk,aID,lY,CV,uD8,Nm,jn;oBX=function(q,Z){if(q.gU){q.gU.Va(Z);var F;(F=q.loader)!=null&&F.policy.dU&&(F.X=Z)}}; gX=function(q,Z){g.w.call(this,{Y:"div",W:"ytp-volume-panel",L:{title:q.U("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},T:[{Y:"div",W:"ytp-volume-slider",T:[{Y:"div",W:"ytp-volume-slider-handle"}]}]});var F=this;this.api=q;this.j=Z;this.lI=!1;this.Dl=this.volume=0;this.Z=null;this.K=this.D=this.isDragging=!1;this.j=Z;this.S=q.rY(); this.V=q.U("web_player_use_screen_width_for_big_mode");this.X=this.cG("ytp-volume-slider");this.uL=this.cG("ytp-volume-slider-handle");this.G=new g.oG(this.X,!0);g.y(this,this.G);this.G.subscribe("dragstart",this.qZa,this);this.G.subscribe("dragmove",this.K1,this);this.G.subscribe("dragend",this.erl,this);this.N(q,"onVolumeChange",this.onVolumeChange);this.N(q,"appresize",this.pg_);this.N(q,"fullscreentoggled",this.EN);this.N(q,"onShowControls",this.E6);this.N(q,"onHideControls",this.E6);this.N(this.element, "keydown",this.SV);this.N(this.element,"focus",function(){f7(F,F.D,F.isDragging,!0,F.api.lI())}); this.N(this.element,"blur",function(){f7(F,F.D,F.isDragging,!1,F.api.lI())}); qKK(this,q.Ca().getPlayerSize());Dg(this,q.getVolume(),q.isMuted());b8(q,this.element,this)}; Z76=function(q){return q.info.D.j7()&&q.info.Uc===q.info.D.index.F3()}; BX7=function(q,Z,F,B,f){B=B===void 0?0:B;f=f===void 0?0:f;q.d1()||S6(q);q.G=new l8;q.D=Z;var D=F,G=f===0;G=G===void 0?!0:G;var n=q.app.Vs(),b=n.getVideoData().isLivePlayback?Infinity:n.xx(!0)*1E3;D>b&&(D=b-200,q.V=!0);G&&n.getCurrentTime()>=D/1E3?q.X():(q.K=n,G&&(G=D,D=q.K,q.app.lL.addEventListener(g.UK("vqueued"),q.X),G=isFinite(G)||G/1E3>D.getDuration()?G:0x8000000000000,q.j=new g.u8(G,0x8000000000000,{namespace:"vqueued"}),D.addCueRange(q.j)));G=B/=1E3;D=Z.getVideoData().D;B&&D&&q.K&&(n=B,b=0, Z.getVideoData().isLivePlayback&&(G=Math.min(F/1E3,q.K.xx(!0)),b=Math.max(0,G-q.K.getCurrentTime()),n=Math.min(B,Z.xx()+b)),G=FbZ(D,n)||B,G!==B&&q.D.iL("qvaln",{st:B,at:G,rm:b,ct:n}));Z=G;B=q.D;B.getVideoData().UT=!0;B.getVideoData().X=!0;B.x3(!0);D={};q.K&&(D=q.K.wA(),G=q.K.getVideoData().clientPlaybackNonce,D={crt:(D*1E3).toFixed(),cpn:G});B.iL("queued",D);Z!==0&&B.seekTo(Z+.01,{MW:!0,c6:3,V5:"videoqueuer_queued"});q.S=new PD(q.Z,q.app.Vs(),q.D,F,q.app,f);F=q.S;F.status.status!==Infinity&&(rX(F, 1),F.D.subscribe("internalvideodatachange",F.YH,F),F.K.subscribe("internalvideodatachange",F.YH,F),F.gq.C().U("html5_gapless_use_format_info_fix")&&(F.D.subscribe("internalvideoformatchange",F.YH,F),F.K.subscribe("internalvideoformatchange",F.YH,F)),F.D.subscribe("mediasourceattached",F.YH,F),F.K.subscribe("statechange",F.zg,F),F.D.subscribe("newelementrequired",F.s7,F),F.YH());return q.G}; fgD=function(q,Z){if(Z<0)return"0";q=Math.floor(Math.min(Z,q.api.getDuration())*1E3);return q>2147483647?"0":String(q)}; g.wX=function(q){if(!q.playerResponse||!q.playerResponse.annotations)return null;q=g.E(q.playerResponse.annotations);for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.playerAnnotationsExpandedRenderer&&Z.playerAnnotationsExpandedRenderer.featuredChannel)return Z.playerAnnotationsExpandedRenderer;return null}; OK=function(q){return q?g.HD(q):""}; DyK=function(){this.endTime=this.startTime=-1;this.S="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.K=0;this.muted=!1;this.D=this.clipId="-";this.previouslyEnded=!1}; zk6=function(q,Z){q.timestampOffset>0&&(Z-=q.timestampOffset);var F=g.Q9(q)+Z;GZ8(q,F);q.timestampOffset=Z}; nBG=function(q){this.triggerId=q;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"}; NXD=function(q){if(xB(q))if(q.MA&&q.indexRange)if(q.K){var Z=new Uint8Array(q.Z.buffer,0,q.K),F=b7y(q),B=q.policy.G;Promise.all(q.Dl).then(function(){var f=vD(B,q.MA.D.info,XD(q,!0),F,q.policy.vG,q.G,Z,q.crypto);sK(q,f,!0)})}else j6(q,new IG("Woffle: Expect always re-mark currentChunkOffset at EOS")); else j6(q,new IG("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; g.C7=function(q){q.D=0}; g.cD=function(q){var Z=q.api.rY()?32:16;Z=q.X/2+Z;q.next.element.style.bottom=Z+"px";q.previous.element.style.bottom=Z+"px";Z=q.scrollPosition;var F=q.containerWidth-q.suggestionData.length*(q.G+8);g.hK(q.element,"ytp-scroll-min",Z>=0);g.hK(q.element,"ytp-scroll-max",Z<=F)}; tK=function(q,Z,F,B){B=B===void 0?!1:B;if(F.indexOf(Z)>-1)throw Error("Deps cycle for: "+Z);if(q.K.has(Z))return q.K.get(Z);if(!q.D.has(Z)){if(B)return;throw Error("No provider for: "+Z);}B=q.D.get(Z);F.push(Z);if(B.NO!==void 0)var f=B.NO;else if(B.HEs)f=B[JK]?gBX(q,B[JK],F):[],f=B.HEs.apply(B,g.YB(f));else if(B.wB){f=B.wB;var D=f[JK]?gBX(q,f[JK],F):[];f=new (Function.prototype.bind.apply(f,[null].concat(g.YB(D))))}else throw Error("Could not resolve providers for: "+Z);F.pop();B.rDG||q.K.set(Z,f); return f}; var SKG=function(q){return p7[z[9]](this,64,q)}; UyZ=function(q){var Z=Z===void 0?!0:Z;this.D=new V9;q!==void 0&&lgZ(this.D,q);Z&&this.D.add("v","unreleased",-16)}; e6=function(q){var Z=this;this.J=q;this.K=[];this.S=new Map;this.G=new Map;this.D=new Map;this.JZ={i8:function(){return Z.S}, VML:function(){return Z.G}, DY:function(){return Z.K}}; this.Z=this.J.U("html5_huli_ssdai_deprecate_playback_timeline_id")}; q5=function(q,Z,F,B,f,D,G){oE.call(this,q,Z,F,B,D===void 0?!0:D,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",G===void 0?!1:G);this.D=null;this.G=f;this.hide()}; g.fm=function(q,Z,F){F=g.Z6(q,Z,F);F<0&&g.F_(q,-(F+1),0,Z)}; D6=function(q){return function(){return uD8[q].apply(this,arguments)}}; g.nm=function(q,Z,F,B){B?q.PG[B]=q.S:q.PG=[q.S];q.j=Z||0;q.Z=F||0}; yKG=function(q){var Z=g.bm();if(q==="Internet Explorer"){if(P8K())if((q=/rv: *([\d\.]*)/.exec(Z))&&q[1])Z=q[1];else{q="";var F=/MSIE +([\d\.]+)/.exec(Z);if(F&&F[1])if(Z=/Trident\/(\d.\d)/.exec(Z),F[1]=="7.0")if(Z&&Z[1])switch(Z[1]){case "4.0":q="8.0";break;case "5.0":q="9.0";break;case "6.0":q="10.0";break;case "7.0":q="11.0"}else q="7.0";else q=F[1];Z=q}else Z="";return Z}var B=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");F=[];for(var f;f=B.exec(Z);)F.push([f[1],f[2],f[3]||void 0]); Z=rKX(F);switch(q){case "Opera":if(N5())return Z(["Version","Opera"]);if(gE()?S8("Opera"):lm("OPR"))return Z(["OPR"]);break;case "Microsoft Edge":if(gE()?0:lm("Edge"))return Z(["Edge"]);if(wDy())return Z(["Edg"]);break;case "Chromium":if(Uj())return Z(["Chrome","CriOS","HeadlessChrome"])}return q==="Firefox"&&um()||q==="Safari"&&P5()||q==="Android Browser"&&Wbk()||q==="Silk"&&lm("Silk")?(Z=F[2])&&Z[1]||"":""}; wE=function(q){this.Ec=rE(q)}; g.ym=function(q,Z){q=q.split(".");Z=Z||g.W5;for(var F=0;F0?FD:-1;else if(y9= g.C(qy,Vm)){qy=$yb(q,Z,F,y9,D,W,n,Y,FD);if(qy instanceof K){u=qy;break a}qy=qy(U);H.push(qy.dR);X=[].concat(g.YB(qy.zQ),g.YB(X));Q=[].concat(g.YB(qy.Ze),g.YB(Q));qy.xa&&(GZ=[qy.xa].concat(g.YB(GZ)))}else if(y9=g.C(qy,e8)){if(u===void 0){u=new K("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:y9});break a}qy=agB(q,Z,F,D,y9,e,n,u,W,of(S,"supports_multi_step_on_desktop"));if(qy instanceof K){u=qy;break a}qy=qy(U);H.push(qy.dR);qy.xa&&GZ.push(qy.xa); X=[].concat(g.YB(qy.zQ),g.YB(X));Q=[].concat(g.YB(qy.Ze),g.YB(Q));a=[].concat(g.YB(qy.fF),g.YB(a));m=[].concat(g.YB(qy.N2),g.YB(m));c=[e].concat(g.YB(c))}else if(qy=g.C(qy,Zx)){qy=myk(q,Z,F,D,qy,e,n,W);if(qy instanceof K){u=qy;break a}qy=qy(U);H.push(qy.dR);qy.xa&&GZ.push(qy.xa);Q=[].concat(g.YB(qy.Ze),g.YB(Q))}else{u=new K("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}u={Ig:H,layoutExitSkipTriggers:X,layoutExitUserInputSubmittedTriggers:a,layoutExitUserCancelledTriggers:m,layoutExitMuteTriggers:Q, WR:c,Xo:GZ}}}else a:if(W=XDy(B,F,S),W instanceof K)u=W;else{H=0;X=[];Q=[];a=[];m=[];c=[];e=[];Y=new IE({current:null});Zg=new Cm({current:null});GZ=!1;Ny=[];FD=-1;P=g.E(B);for(qy=P.next();!qy.done;qy=P.next())if(qy=qy.value,g.C(qy,dE)){qy=EBG(Z,F,g.C(qy,dE),n);if(qy instanceof K){u=qy;break a}qy=qy(U);X.push(qy.dR);Q=[].concat(g.YB(qy.zQ),g.YB(Q));a=[].concat(g.YB(qy.Ze),g.YB(a));qy.xa&&(Ny=[qy.xa].concat(g.YB(Ny)))}else if(g.C(qy,hB)){FD=c5(g.C(qy,hB),F,S);if(FD instanceof JB){u=new K(FD);break a}qy= new Yt(H,W);qy=KbK(Z,FD.layoutId,FD.A3,F,pm(FD.playerVars,FD.Wb,G,N,qy),FD.XD,D,qy,n(U),Zg,b.get(FD.A3.externalVideoId),void 0,l);H++;X.push(qy.dR);Q=[].concat(g.YB(qy.zQ),g.YB(Q));a=[].concat(g.YB(qy.Ze),g.YB(a));GZ||(e.push(Zg),GZ=!0);FD=(FD=FD.A3.adPodSkipTarget)&&FD>0?FD:-1}else if(g.C(qy,Vm)){qy=$yb(q,Z,F,g.C(qy,Vm),D,H,n,Zg,FD);if(qy instanceof K){u=qy;break a}qy=qy(U);X.push(qy.dR);Q=[].concat(g.YB(qy.zQ),g.YB(Q));a=[].concat(g.YB(qy.Ze),g.YB(a));qy.xa&&(Ny=[qy.xa].concat(g.YB(Ny)))}else if(g.C(qy, e8)){if(u===void 0){u=new K("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.C(qy,e8)});break a}qy=agB(q,Z,F,D,g.C(qy,e8),Y,n,u,H,of(S,"supports_multi_step_on_desktop"));if(qy instanceof K){u=qy;break a}qy=qy(U);X.push(qy.dR);qy.xa&&Ny.push(qy.xa);Q=[].concat(g.YB(qy.zQ),g.YB(Q));a=[].concat(g.YB(qy.Ze),g.YB(a));m=[].concat(g.YB(qy.fF),g.YB(m));c=[].concat(g.YB(qy.N2),g.YB(c));e=[Y].concat(g.YB(e))}else if(g.C(qy,Zx)){qy=myk(q,Z,F,D,g.C(qy,Zx), Y,n,H);if(qy instanceof K){u=qy;break a}qy=qy(U);X.push(qy.dR);qy.xa&&Ny.push(qy.xa);a=[].concat(g.YB(qy.Ze),g.YB(a))}else{u=new K("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}u={Ig:X,layoutExitSkipTriggers:Q,layoutExitUserInputSubmittedTriggers:m,layoutExitUserCancelledTriggers:c,layoutExitMuteTriggers:a,WR:e,Xo:Ny}}u instanceof K?U=u:(c=U.slotId,W=u.Ig,H=u.layoutExitSkipTriggers,X=u.layoutExitMuteTriggers,Q=u.layoutExitUserInputSubmittedTriggers,a=u.WR,U=n(U),m=f?f.layoutType: "LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",c=f?f.layoutId:Bs(Z.K.get(),m,c),e={layoutId:c,layoutType:m,bL:"core"},U={layout:{layoutId:c,layoutType:m,ud:new Map,layoutExitNormalTriggers:[new Dx(Z.D,c)],layoutExitSkipTriggers:H,layoutExitMuteTriggers:X,layoutExitUserInputSubmittedTriggers:Q,layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:new zX([new ne(W)].concat(g.YB(a))),Xe:U(e)},Xo:u.Xo});return U}}; kZ9=function(q){q={next:q};q[Symbol.iterator]=function(){return this}; return q}; sGK=function(q){return q.K?!0:q.Qs.Dl==="yt"?q.videoData.PG?q.videoData.Tb<25:!q.videoData.Tb:!1}; IE=function(q){this.value=q}; U4=function(q,Z,F,B){var f=F.getVideoData(),D=Z.getVideoData();if(F.getPlayerState().isError())return{msg:"player-error"};var G=D.S;if(Z.rR()>B/1E3+1)return{msg:"in-the-past"};if(D.isLivePlayback&&!isFinite(B))return{msg:"live-infinite"};(B=Z.Mi())&&B.isView()&&(B=B.mediaElement);if(B&&B.qx().length>12&&g.b2(f))return{msg:"played-ranges"};if(!f.S)return null;if(!G)return{msg:"no-pvd-formats"};if(!f.S.D||!G.D)return{msg:"non-dash"};B=G.videoInfos[0];var n=f.S.videoInfos[0];q.Dl&&NM(D)&&(B=Z.eA(),n= F.eA());if(!B||!n)return{msg:"no-video-info"};if(q.j&&(g8(B)||g8(n)))return{msg:"av1"};Z=q.G&&D.Sg()&&SB();if(n.containerType!==B.containerType)if(Z)D.iL("sgap",{ierr:"container"});else return{msg:"container"};if(q.Z&&!Z&&(n.FE!==B.FE||n.FE===""||B.FE===""))return{msg:"codec"};if(q.X&&n.video&&B.video&&Math.abs(n.video.width/n.video.height-B.video.width/B.video.height)>.01)return{msg:"ratio"};if(g.b2(D)&&g.b2(f))return{msg:"content-protection"};G=G.D[0];f=f.S.D[0];F=G.audio;var b=f.audio;if(F.sampleRate!== b.sampleRate&&!g.l2)if(Z)D.iL("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:G.itag,cr:F.sampleRate,ni:f.itag,nr:b.sampleRate};return(F.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:q.V&&D.Sg()&&B.video.fps!==n.video.fps?{msg:"fps"}:null}; u2=function(q,Z){var F=g.ym("CLOSURE_FLAGS");q=F&&F[q];return q!=null?q:Z}; var jGD=function(){return Igg[z[9]](this,3)}; C8Z=function(q,Z){q=q.X;Ps&&(q+=Z-r8);return q}; g.w8=function(q,Z){return q!==null&&Z in q}; yV=function(q){return q.ZE.get("ad")}; um=function(){return lm("Firefox")||lm("FxiOS")}; RkD=function(q,Z,F,B,f){var D=(0,g.Le)(),G=f?f(Z):void 0,n;f=(n=G==null?void 0:G.Zu)!=null?n:1;if(f!==0){var b;n=(b=G==null?void 0:G.profile)!=null?b:F;hkB(q,n,D-B,f)}return Z}; QV=function(q,Z,F){if((q+8&74)>=q&&(q-6^20)=9&&q+7<28){var f=Z[z[4]](z[68],12),D=Z[z[4]](z[68],f+1);f>0&&D>0?(F[z[23]]=Z[z[17]](0,D),Z=Z[z[17]](D+1)):(F[z[23]]=Z,Z=z[15]);B=[Z,F]}q-8>>3==2&&(Z[65]>-7&&(Z[68]<2?(((0,Z[79])(Z[71],Z[58]),(0,Z[48])((0,Z[79])(Z[67],Z[52]),Z[86],Z[75]),((0,Z[48])((0,Z[87])((0,Z[21])(),Z[83],Z[9]),Z[87],(0,Z[19])(),Z[83],Z[9]),Z[79])(Z[45],Z[2]),Z[48])((0,Z[79])(Z[9],Z[27]),Z[10],Z[46],Z[45]),(0,Z[87])((0,Z[19])(),Z[83],Z[9]),Z[87])((0,Z[19])(), Z[83],Z[9]):(0,Z[48])(((0,Z[92])(Z[18],Z[16])%(0,Z[42])(Z[69],Z[71])*(0,Z[74])(Z[67],Z[93]),((0,Z[74])(Z[67],Z[3]),Z[74])(Z[45],Z[55]),((((0,Z[82])(Z[67],Z[68]),Z[69])((0,Z[19])(),Z[83],Z[9]),Z[35])(Z[0]),Z[42])(Z[61],Z[0])),Z[92],Z[67],Z[94])),Z[39]!=-8&&(Z[37]===5?((0,Z[42])(Z[14],Z[75]),(0,Z[69])((0,Z[19])(),Z[83],Z[9]),Z[69])((0,Z[new F(z[87])/1E3])(),Z[83],Z[9]):(0,Z[48])((0,Z[48])((0,Z[79])(Z[71],Z[65]),Z[10],Z[59],Z[63]),Z[82],Z[9],Z[31])),Z[46]!=-4&&(Z[3]<9?(0,Z[48])(((0,Z[48])((0,Z[82])(Z[71], Z[5]),Z[82],Z[67],Z[80]),(0,Z[92])(Z[75],Z[76])),Z[42],Z[57],Z[45]):(0,Z[15])((0,Z[49])(Z[1],Z[74]),Z[55],(0,Z[55])((0,Z[49])(Z[48],Z[82]),Z[89],Z[78],Z[new F(z[40])/1E3]),Z[76],(0,Z[7])(),Z[90],Z[78])),Z[84]!=-4?(0,Z[86])(Z[78],Z[2]):(0,Z[49])(Z[19],Z[74]),Z[66]<6?(0,Z[55])((0,Z[55])((0,Z[49])(Z[30],Z[74]),Z[14],Z[92],Z[71]),Z[80],Z[47],Z[79])>>>(0,Z[54])(Z[46],Z[81]):(0,Z[23])((0,Z[49])(Z[38],Z[8]),Z[17],Z[85],Z[79])^(0,Z[23])((0,Z[54])(Z[42],Z[12]),Z[54],Z[50],Z[41]),B=[Z,F]);return B}; g.xN=function(q,Z){typeof q=="number"&&(q=(Z?Math.round(q):q)+"px");return q}; cKk=function(q,Z){vs(q.D);var F=q.D.G;if(F)return Xq(q,"return"in F?F["return"]:function(B){return{value:B,done:!0}},Z,q.D.return); q.D.return(Z);return E4(q)}; Ke=function(q){q.X=null;q.S=null;q.api.d1()||q.api.clearQueue()}; t6G=function(q){if(!q.K||!q.D){if(!$N()){var Z=g.mJ("scheduleGetConfigs");i2(Z)}q.G||(q.G=g.kN.ET(function(){return g.h(function(F){switch(F.D){case 1:return g.s4(F,2),g.R(F,JK9(q),4);case 4:g.jB(F,3);break;case 2:g.If(F);case 3:return g.s4(F,5),g.R(F,YK9(q),7);case 7:g.jB(F,6);break;case 5:g.If(F);case 6:q.G&&(q.G=0),g.C7(F)}})},100))}}; g.O4=function(q,Z,F){for(var B in q)if(Z.call(F,q[B],B,q))return!0;return!1}; dyy=function(q,Z,F){var B=g.Ce(Z.experiments,"bg_vm_reinit_threshold");(!hY||(0,g.Le)()-hY>B)&&pD9(q,F).then(function(f){f&&(f=f.botguardData)&&g.Rf(f,Z)},function(f){q.jU()||(f=cs(f),q.iL("attf",f.details))})}; g.JY=function(q,Z,F){return Math.min(Math.max(q,Z),F)}; V6X=function(q,Z,F){this.layoutId=Z;this.offsetMs=F;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=q(this.triggerType)}; ek7=function(q){var Z=q.offsetWidth,F=q.offsetHeight,B=g.YN&&!Z&&!F;return(Z===void 0||B)&&q.getBoundingClientRect?(q=tY(q),new g.d8(q.right-q.left,q.bottom-q.top)):new g.d8(Z,F)}; TXk=function(){return VV()?TX.platform==="Windows":lm("Windows")}; g.ql=function(q,Z){var F=0;q=MM(String(q)).split(".");Z=MM(String(Z)).split(".");for(var B=Math.max(q.length,Z.length),f=0;F==0&&f=D){var G=q[D];if(G!=null&&typeof G==="object"&&G.constructor===Object){F=G[Z];var n=!0}else if(f===D)F=G;else return}else F=q[f];if(B&&F!=null){B=B(F);if(B==null)return B;if(!Object.is(B,F))return n?G[Z]=B:q[f]=B,B}return F}}; RC=function(q,Z){this.D=q;this.depth=Z}; cm=function(q,Z,F){var B=q.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],f=q.policy.playbackStartPolicy.startMinReadaheadPolicy||[];q=Infinity;Z=g.E(Z&&B.length>0?B:f);for(B=Z.next();!B.done;B=Z.next())B=B.value,f=B.minReadaheadMs||0,F<(B.minBandwidthBytesPerSec||0)||q>f&&(q=f);return q0)F=!0;else{for(var B=g.E(q.S.values()),f=B.next();!f.done;f=B.next())if(f.value.cryptoPeriodIndex===F){F=!0;break a}F=!1}}q.publish("log_qoe",{wvagt:"reqnews",canskip:F});F||q.publish("rotated_need_key_info_ready",Z)}; X5D=function(q){var Z,F,B,f,D,G,n,b,N;return g.h(function(S){switch(S.D){case 1:if(!vtG)throw Error("DecompressionStream is not supported");Z=nO.oo();F=new DecompressionStream("gzip");B=F.writable.getWriter();B.write(q);B.close();f=F.readable.getReader();D=new bN([]);case 2:return g.R(S,f.read(),5);case 5:G=S.K;n=G.value;if(b=G.done){S.An(4);break}D.append(n);S.An(2);break;case 4:return N=NN(D),nO.q2("gznb",Z,Math.ceil(N.byteLength/16)),S.return(N)}})}; Et9=function(q){if(q.B.C().showMiniplayerUiWhenMinimized)return q.ZE.get("miniplayer")}; KeG=function(q,Z){if(typeof q!=="object")return q;if(Array.isArray(q)){var F=q[Sm]|0;q.length===0&&F&1?q=void 0:F&2||(!Z||4096&F||16&F?q=lN(q,F,!1,Z&&!(F&16)):(U3(q,34),F&4&&Object.freeze(q)));return q}if(q!=null&&q[uN]===P_)return Z=q.Ec,F=Z[Sm]|0,ra(q,F)?q:wa(q,Z,F)?W_(q,Z):lN(Z,F);if(q instanceof yd)return q}; $5X=function(q,Z){return Math.max(0,q.TP[0].Z-Z)}; Qd=function(q){var Z=q.B.rY()?72:50,F=q.B.C();g.LO(F)&&(F.U("delhi_modern_web_player")?(Z=g.Ce(F.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),Z=q.B.U("delhi_modern_web_player_compact_controls")||Z>0&&q.B.getPlayerSize().width<=Z,Z=q.B.rY()?112:Z?70:78,q.B.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(q=getComputedStyle(q.B.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||"36px",Z+=Number(q.replace("px","")))):Z=62,g.H_(F)&&(Z=54));return Z}; xp=function(q,Z,F){Z=g.E(Z);var B=Z.next();a6K(B);if(B.done)q.K=B.value,q.D=F;else return q.G=Z,g.R(q,B.value,F)}; ao=function(q,Z,F,B){var f=B;A8(q);B=q.Ec;q=v_(q,B,B[Sm]|0,F,Z,2,void 0,!0);f=f!=null?Xt(f,F):new F;q.push(f);Z=F=q===E3?7:q[Sm]|0;(f=ra(f))?(F&=-9,q.length===1&&(F&=-4097)):F|=4096;F!==Z&&KO(q,F);f||$p(B)}; m1=function(q){q.D.stop();var Z=Infinity;for(var F=g.E(q.data),B=F.next();!B.done;B=F.next())B=B.value,B.expire0&&(F=Math.min(F,B));if(B=g.Ce(q.J.experiments,"html5_max_vertical_resolution")){f=4320; for(D=0;DB&&(f=Math.min(f,G.video.qualityOrdinal))}if(f<4320){for(G=D=0;G0&&(G.playerWidthPixels=Math.round(H));if(Z=Z.height)G.playerHeightPixels= Math.round(Z);F!==0&&(G.vis=F);if(F=D.widgetReferrer)G.widgetReferrer=F.substring(0,128);g.FQ(D)&&G&&(G.ancestorOrigins=D.ancestorOrigins);q.defaultActiveSourceVideoId&&(G.compositeVideoContext={defaultActiveSourceVideoId:q.defaultActiveSourceVideoId});if(D=D.getWebPlayerContextConfig())G.encryptedHostFlags=D.encryptedHostFlags;B={videoId:B,context:f,playbackContext:{contentPlaybackContext:G}};if(q.zE){var Q;B.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(Q=q.zE)==null?void 0:Q.reloadPlaybackParams}}q.contentCheckOk&& (B.contentCheckOk=!0);if(Q=q.clientPlaybackNonce)B.cpn=Q;if(Q=q.playerParams)B.params=Q;if(Q=q.playlistId)B.playlistId=Q;q.racyCheckOk&&(B.racyCheckOk=!0);Q=q.C();f=Q.embedConfig;q.IZ&&Q.U("embeds_enable_per_video_embed_config")?B.serializedThirdPartyEmbedConfig=q.IZ:f&&(B.serializedThirdPartyEmbedConfig=f);B.captionParams={};f=g.nF().Q5(65);q.deviceCaptionsOn!=null?B.captionParams.deviceCaptionsOn=q.deviceCaptionsOn:g.LO(Q)&&(B.captionParams.deviceCaptionsOn=f!=null?!f:!1);q.TF&&(B.captionParams.deviceCaptionsLangPref= q.TF);q.Gw.length?B.captionParams.viewerSelectedCaptionLangs=q.Gw:g.LO(Q)&&(f=g.gk(),f==null?0:f.length)&&(B.captionParams.viewerSelectedCaptionLangs=f);f=q.fetchType==="onesie"&&q.U("html5_onesie_attach_po_token");G=q.fetchType!=="onesie"&&q.U("html5_non_onesie_attach_po_token");if(f||G)f=q.C(),f.oa&&(B.serviceIntegrityDimensions={},B.serviceIntegrityDimensions.poToken=f.oa);Q.U("fetch_att_independently")&&(B.attestationRequest={omitBotguardData:!0});B.playbackContext||(B.playbackContext={});B.playbackContext.devicePlaybackCapabilities= M8K(q);B.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&q.iL("noVp9",{});return B}; q4X=function(q){S7(q,"impression")&&!S7(q,"seek")&&q.PH("active_view_fully_viewable_audible_half_duration")}; FJK=function(){if(!lh){lh={};for(var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Z=["+/=","+/","-_=","-_.","-_"],F=0;F<5;F++){var B=q.concat(Z[F].split(""));ZeK[F]=B;for(var f=0;f=0}; AY8=function(q,Z){try{return pF(q[Z]),!0}catch(F){}return!1}; vN7=function(q){if(VF(e7(q.D).Zs))return!0;var Z="";q=g.E(e7(q.D).Nd.rF.keys());for(var F=q.next();!F.done;F=q.next()){F=F.value;if(F.slotType==="SLOT_TYPE_PLAYER_BYTES"&&F.bL==="core")return!0;Z+=F.slotType+" "}Math.random()<.01&&Yp("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:Z});return!1}; Kw=function(q){g.J.call(this);this.features=[];var Z=this.D,F=new TG(q),B=new Mc(q),f=new oQ(q),D=new q2(q);var G=g.Za(q.C())?void 0:new FT(q);var n=new Bx(q),b=new Xsy(q),N=new EN8(q),S=new fw(q);var l=g.Za(q.C())?new KJ8(q):void 0;var U;var u=(U=q.C().getWebPlayerContextConfig())!=null&&U.cinematicSettingsAvailable?new Da(q):void 0;U=new Ga(q);var P=q.U("enable_courses_player_overlay_purchase")?new $MZ(q):void 0;var W=g.LO(q.C())?new ax9(q):void 0;var H=new za(q);var X=q.C().G?new mMK(q):void 0; var Q=g.FQ(q.C())?new iey(q):void 0;var a=q.U("web_player_move_autonav_toggle")&&q.C().ac?new kXD(q):void 0;var m=g.LO(q.C())?new nw(q):void 0;var c=q.U("web_enable_speedmaster")&&g.LO(q.C())?new b0(q):void 0;var e=q.C().PX?void 0:new sfB(q);var Y=q.U("report_pml_debug_signal")?new jfK(q):void 0;var Zg=new N2(q),GZ=new gB(q);var FD=g.SQ(q.C())?new IxB(q):void 0;var Ny=navigator.mediaSession&&window.MediaMetadata&&q.C().t3?new Px(q):void 0;var qy=q.U("html5_enable_drc")&&!q.C().j?new rB(q):void 0; var y9=new wB(q);var dX=g.LO(q.C())?new C2g(q):void 0;var z0=q.U("html5_enable_d6de4")?new Wx(q):void 0;var G0=g.LO(q.C())&&q.U("web_sleep_timer")?new yP(q):void 0;var aG=g.FQ(q.C())?new hrB(q):void 0;var $B=new Lw(q),T0=new RrK(q),v5=new cYy(q);var aE=q.U("enable_sabr_snackbar_message")?new JYZ(q):void 0;var v=q.U("web_enable_timely_actions")?new Hx(q):void 0;var tB=new Ot(q);var n7,Km;var O=((n7=q.C())==null?0:(Km=n7.getWebPlayerContextConfig())==null?0:Km.enableFullscreenComponentsFeature)?new QP(q): void 0;n7=new xP(q);Km=q.U("web_player_loop_settings_menu")&&q.C().zY?new Y4G(q):void 0;var M=g.Za(q.C())?void 0:new AX(q);var Ws=new vx(q),GX=new XT(q),pe=new Et(q),qM=new tBX(q);var My=g.LO(q.C())&&q.C().U("delhi_modern_web_player")?new psX(q):void 0;var TZ=q.C().S?void 0:new dM7(q);Z.call(this,F,B,f,D,G,n,b,N,S,l,u,U,P,W,H,X,Q,a,m,c,e,Y,Zg,GZ,FD,void 0,Ny,qy,y9,void 0,dX,z0,G0,aG,void 0,$B,T0,v5,void 0,aE,v,tB,O,n7,void 0,Km,void 0,M,Ws,GX,pe,qM,My,TZ,new VB9(q))}; aQ=function(q){var Z=[{Y:"div",rU:["ytp-unmute-icon"],T:[{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {Y:"div",rU:["ytp-unmute-text"],Ka:"Activar sonido"}];Z.push({Y:"div",rU:["ytp-unmute-box"],T:[]});g.$P.call(this,q,{Y:"button",rU:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],T:[{Y:"div",W:"ytp-unmute-inner",T:Z}]},100);this.D=this.clicked=!1;this.api=q;this.api.createClientVe(this.element,this,51663);this.N(q,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.N(q,"presentingplayerstatechange",this.Qc);this.listen("click",this.onClick,this);q=q.isMutedByMutedAutoplay()&& !g.FQ(this.api.C());this.hZ(q);q&&erg(this);this.K=q}; RQ=function(q,Z,F){if(!q.G){if(Z){q.tooltipRenderer=Z;Z=q.tooltipRenderer.text;var B=!1,f;(Z==null?0:(f=Z.runs)==null?0:f.length)&&Z.runs[0].text&&(q.update({title:Z.runs[0].text.toString()}),B=!0);g.mm(q.title,B);Z=q.tooltipRenderer.detailsText;f=!1;var D;if((Z==null?0:(D=Z.runs)==null?0:D.length)&&Z.runs[0].text){B=Z.runs[0].text.toString();D=B.indexOf("$TARGET_ICON");if(D>-1)if(q.tooltipRenderer.targetId){Z=[];B=B.split("$TARGET_ICON");var G=new g.i0({Y:"span",W:"ytp-promotooltip-details-icon", T:[T8D[q.tooltipRenderer.targetId]]});g.y(q,G);for(var n=[],b=g.E(B),N=b.next();!N.done;N=b.next())N=new g.i0({Y:"span",W:"ytp-promotooltip-details-component",Ka:N.value}),g.y(q,N),n.push(N);B.length===2?(Z.push(n[0].element),Z.push(G.element),Z.push(n[1].element)):B.length===1&&(D===0?(Z.push(G.element),Z.push(n[0].element)):(Z.push(n[0].element),Z.push(G.element)));D=Z.length?Z:null}else D=null;else D=B;if(D){if(typeof D!=="string")for(g.kP(q.details),f=g.E(D),D=f.next();!D.done;D=f.next())q.details.appendChild(D.value); else q.update({details:D});f=!0}}g.mm(q.details,f);f=q.tooltipRenderer.acceptButton;D=!1;var S,l,U;((S=g.C(f,g.jQ))==null?0:(l=S.text)==null?0:(U=l.runs)==null?0:U.length)&&g.C(f,g.jQ).text.runs[0].text&&(q.update({acceptButtonText:g.C(f,g.jQ).text.runs[0].text.toString()}),D=!0);g.mm(q.acceptButton,D);S=q.tooltipRenderer.dismissButton;l=!1;var u,P,W;((u=g.C(S,g.jQ))==null?0:(P=u.text)==null?0:(W=P.runs)==null?0:W.length)&&g.C(S,g.jQ).text.runs[0].text&&(q.update({dismissButtonText:g.C(S,g.jQ).text.runs[0].text.toString()}), l=!0);g.mm(q.dismissButton,l)}F&&(q.sourceElement=F);q.D=MBK(q);q.Z=!1;q.B.C().U("web_player_hide_nitrate_promo_tooltip")||q.hZ(!0);hX(q);q.zb&&!q.V&&(q.V=!0,q.JZ.Zg(0));q.K&&q.B.logVisibility(q.element,q.zb)}}; g.JX=function(q){if(q instanceof cx)return q.D;throw Error("");}; ov7=function(){var q=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];YP().forEach(function(Z){q.push(Z)}); return{m0:q,FN:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; a6K=function(q){if(!(q instanceof Object))throw new TypeError("Iterator result "+q+" is not an object");}; pw=function(q,Z,F,B){return typeof q.addEventListener==="function"?(q.addEventListener(Z,F,tX(B)),!0):!1}; g.om=function(q){var Z=new dB(new bN([VP(decodeURIComponent(q))]));q=eQ(Z,2);Z=Ta(Z,4);var F=qMk[Z];if(typeof F==="undefined")throw q=new g.M2("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:Z}),g.mM(q),q;return{JE:Z,entityType:F,entityId:q}}; FK=function(q){var Z=q3();q=Z?Z.createScriptURL(q):q;return new Zf(q)}; g.Bj=function(q,Z){return q.indexOf(Z)!=-1}; nw=function(q){fX.call(this,q);var Z=this;this.events=new g.pO(q);g.y(this,this.events);hC(this.api,"seekToChapterWithAnimation",function(F){Z.seekToChapterWithAnimation(F)}); hC(this.api,"seekToTimeWithAnimation",function(F,B){Z.seekToTimeWithAnimation(F,B)}); hC(this.api,"renderChapterSeekingAnimation",function(F,B,f){Z.api.renderChapterSeekingAnimation(F,B,f)}); hC(this.api,"setMacroMarkers",function(F){Z.setMacroMarkers(q,F)}); hC(this.api,"changeMarkerVisibility",function(F,B,f){Z.changeMarkerVisibility(F,B,f)}); hC(this.api,"isSameMarkerTypeVisible",function(F){return Z.isSameMarkerTypeVisible(F)})}; ZKD=function(q){return XQ(q)?Pm(aC(q)):Pm(Df(q))}; FMK=function(q,Z){if(q.D==0)if(q.S){var F=q.S;if(F.K){for(var B=0,f=null,D=null,G=F.K;G&&(G.G||(B++,G.D==q&&(f=G),!(f&&B>1)));G=G.next)f||(D=G);f&&(F.D==0&&B==1?FMK(F,Z):(D?(B=D,B.next==F.G&&(F.G=B),B.next=B.next.next):B46(F),fI7(F,f,3,Z)))}q.S=null}else GO(q,3,Z)}; zO=function(){}; bR=function(q,Z,F,B,f){nX.call(this,q,{Y:"svg",W:"ytp-timed-pie-countdown",L:{viewBox:"0 0 20 20"},T:[{Y:"circle",W:"ytp-timed-pie-countdown__background",L:{r:"10",cx:"10",cy:"10"}},{Y:"circle",W:"ytp-timed-pie-countdown__inner",L:{r:"5",cx:"10",cy:"10"}},{Y:"circle",W:"ytp-timed-pie-countdown__outer",L:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",Z,F,B,f);this.S=this.cG("ytp-timed-pie-countdown__inner");this.K=Math.ceil(2*Math.PI*5);this.hide()}; Dl6=function(q,Z){return(q=q.flags.get(""+Z))?q.toString():""}; GTb=function(q,Z){var F=q.length,B=typeof q==="string"?q.split(""):q;for(--F;F>=0;--F)F in B&&Z.call(void 0,B[F],F,q)}; g.N3=function(q,Z){switch(Z.kind){case "asr":zxb(Z,q.K);break;default:zxb(Z,q.D)}}; nvB=function(q){if(q.linearAds==null)return!1;q=g.C(q.adStart,gt);return q?Sj(q)?!0:(Yp("Invalid LASR with notify"),!1):!1}; lR=function(q,Z){this.D=q;this.cipher=this.D.exports.AES128CTRCipher_create(Z.byteOffset)}; wt=function(q,Z){q.D=Z;var F=q.j.videoInfos;if(!q.D.isLocked()){var B=(0,g.Le)();F=g.uh(F,function(G){if(G.Ml>this.policy.Ml)return!1;var n=this.Np.D[G.id];return U_(this.Z).get(G.id)>B||n.m6.S>4||n.j>4?!1:this.k$.has(+G.itag)?!1:!0},q); bKD(q.Z)&&(F=g.uh(F,function(G){return G.video.width<=854&&G.video.height<=480}))}F.length||(F=q.j.videoInfos); var f=F;q.policy.EY&&(f=N4D(q,f,Z));f=g.uh(f,Z.G,Z);if(q.D.isLocked()&&q.Z.D){var D=g.s3(F,function(G){return G.id===q.Z.D}); D?f=[D]:uR(q.Z,"")}q.policy.EY||(f=N4D(q,f,Z));f.length||(f=[F[0]]);f.sort(function(G,n){return Pj(q,G)-Pj(q,n)}); Z={};for(F=1;FZ.vx.video.width?(g.rt(f,F),F--):Pj(q,Z.OQ)*q.policy.PG>Pj(q,Z.vx)&&(g.rt(f,F-1),F--);Z=f[f.length-1];q.o_=!!q.S&&!!q.S.info&&q.S.info.FE!==Z.FE;q.G=f;q.Oc.clear();F=!1;for(D=0;D=1080&&(F=!0);gvK(q.policy,Z,q.Np.d2)}; Wj=function(q,Z){this.slotId=Z;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=q(this.triggerType)}; yK=function(q,Z,F,B,f,D,G){var n="";q&&(n+=q+":");F&&(n+="//",Z&&(n+=Z+"@"),n+=F,B&&(n+=":"+B));f&&(n+=f);D&&(n+="?"+D);G&&(n+="#"+G);return n}; SMb=function(q,Z){var F=q.C();F=q.UT&&F.U("html5_onesie_preload_use_content_owner");var B=q.y0;F=F===void 0?!1:F;var f=LX(Z.J.experiments,"debug_bandaid_hostname");if(f)Z=Hj(Z,f);else if(F&&(B==null?0:B.url)&&!Z.K){var D=p7(61,new g.O_(B.url));Z=Hj(Z,D)}else Z=(D=Z.D.get(0))==null?void 0:D.location.clone();if(Z&&q.videoId){D=$R(q.videoId);q=[];if(D)for(D=g.E(D),F=D.next();!F.done;F=D.next())q.push(F.value.toString(16).padStart(2,"0"));Z.set("id",q.join(""));return Z}}; iR=function(q){g.J.call(this);var Z=this;this.Mp=q;this.V=this.D=this.loader=this.mediaElement=this.playbackData=null;this.S=0;this.Z=this.zP=this.G=null;this.k$=!1;this.Gb=0;this.uL=!1;this.timestampOffset=0;this.PG=!0;this.Oc=0;this.o_=this.j$=!1;this.X=0;this.I_=!1;this.Y$=0;this.J=this.Mp.C();this.videoData=this.Mp.getVideoData();this.policy=new lIZ;this.Dl=new am(this.Mp);this.Jn=this.WG=this.BG=this.j=this.K=NaN;this.dU=new g.im(function(){UlG(Z,!1)},2E3); this.w2=new g.im(function(){mi(Z)}); this.HG=new g.im(function(){uQD(Z,{})}); this.KB=NaN;this.vG=new g.im(function(){var F=Z.J.zs;F.D+=1E4/36E5;F.D-F.S>1/6&&(P58(F),F.S=F.D);Z.vG.start()},1E4); g.y(this,this.Dl);g.y(this,this.dU);g.y(this,this.HG);g.y(this,this.w2);g.y(this,this.vG)}; rMg=function(){var q={},Z=window.performance;if(Z){var F=Z.memory;if(F){q.jsTotal=F.totalJSHeapSize;q.jsUsed=F.usedJSHeapSize;q.jsLimit=F.jsHeapSizeLimit;var B,f;q.msTotal=(f=(B=F.getMediaSourceTotalAllocatedMemory)==null?void 0:B.call(F))!=null?f:F.totalMediaSourceSize;var D,G;q.msLimit=(G=(D=F.getMediaSourceMaximumMemoryCapacity)==null?void 0:D.call(F))!=null?G:F.mediaSourceSizeLimit;var n,b;q.msUsed=(b=(n=F.getMediaSourceCurrentMemoryCapacity)==null?void 0:n.call(F))!=null?b:F.usedMediaSourceMemorySize}Z.measureAvailableCpuMemory&& (q.cbFree=Z.measureAvailableCpuMemory());Z.measureUsedCpuMemory&&(q.cbUsed=Z.measureUsedCpuMemory())}var N;if((N=window.h5vcc)==null?0:N.cVal)q.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),q.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),q.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return q}; WMD=function(q,Z){var F=arguments.length==2?wmX(arguments[1],0):wmX(arguments,1);return kR(q,F)}; yMb=function(q,Z,F,B,f){Gf.call(this,"shopping-companion",q,Z,F,B,f)}; Im=function(q){var Z=q.U("html5_enable_sabr_on_drive")&&q.Qs.Dl==="gd";if(q.NZ)return q.sO&&q.iL("fds",{fds:!0},!0),!1;if(q.Qs.Dl!=="yt"&&!Z)return q.sO&&q.iL("dsvn",{ns:q.Qs.Dl},!0),!1;if(q.cotn||!q.D||q.D.isOtf&&!q.U("html5_enable_sabr_otf_in_client")||q.S&&!q.S.D||q.Yz&&!q.U("html5_enable_sabr_csdai"))return!1;if(q.U("html5_use_sabr_requests_for_debugging"))return!0;q.sO&&q.iL("esfw",{usbc:q.sO,hsu:!!q.fD},!0);if(q.sO&&q.fD)return!0;if(q.U("html5_remove_client_sabr_determination"))return!1;var F= !q.D.d2&&!q.sI();Z=F&&s_&&q.U("html5_enable_sabr_vod_streaming_xhr");F=F&&!s_&&q.U("html5_enable_sabr_vod_non_streaming_xhr");var B=jj(q),f=q.U("html5_enable_sabr_drm_vod_streaming_xhr")&&s_&&q.sI()&&!q.D.d2&&(q.drmProduct==="1"?!1:!0);(Z=Z||F||B||f)&&!q.fD&&q.iL("sabr",{loc:"m"},!0);return Z&&!!q.fD}; wa=function(q,Z,F){return F&2?!0:F&32&&!(F&4096)?(KO(Z,F|2),q.D=CX,!0):!1}; h_=function(q){this.Ec=rE(q)}; g.cj=function(q,Z,F,B){B=B===void 0?!1:B;Rm.call(this);this.mediaElement=q;this.start=Z;this.end=F;this.D=B}; g.YR=function(q,Z,F){if(!g.J_(q)||!g.J_(Z)||q.length!=Z.length)return!1;var B=q.length;F=F||LMK;for(var f=0;f=F))return B.push(f.getValue()),g.pX(f)}).then(function(){return B})}; QCy=function(q){return OK7[q]||""}; xlk=function(q){var Z=1,F=g.Ce(q.Qs.experiments,"html5_default_ad_gain");F&&q.isAd()&&(Z=F);if(q.E8){var B,f;F=((B=q.G)==null?void 0:B.audio.S)!=null?(f=q.G)==null?void 0:f.audio.S:q.yd}else{var D;F=((D=q.G)==null?void 0:D.audio.S)||q.yd}isNaN(F)||(q.P3=1);return Math.min(1,Math.pow(10,-F/20))||Z}; AM8=function(q){q=String(q);return"0000000".slice(q.length)+q}; dt=function(q,Z,F){this.K=q;this.S=Z;this.D=F}; vvK=function(q){var Z=q3();q=Z?Z.createScript(q):q;return new VK(q)}; ej=function(q,Z){this.triggeringSlotId=Z;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=q(this.triggerType)}; M3=function(q){return TO(q.volume)&&q.volume>0}; SJ=function(q,Z,F,B,f,D,G,n){oP.call(this,q,Z,F,B);this.wU=f;this.vg=D;this.j=n;this.Fw=!0;this.G=null;this.Z=qc(F.clientMetadata,"metadata_type_linked_player_bytes_layout_id");qr(this.vg(),this);q=qc(F.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(F.ud,this.wU,q,F.layoutId)}; Xm7=function(q,Z,F,B,f,D){this.callback=q;this.slot=Z;this.layout=F;this.S=B;this.D=f;this.K=D}; g.lg=function(q){return q==null?"":String(q)}; g.UY=function(q){g.J.call(this);this.J=q;this.videoData=this.playerState=null}; ug=function(q){var Z="R1";if(q.R1&&q.hasOwnProperty(Z))return q.R1;var F=new q;q.R1=F;q.hasOwnProperty(Z);return F}; EvG=function(q){g.w.call(this,{Y:"div",W:"ytp-heat-map-chapter",T:[{Y:"svg",W:"ytp-heat-map-svg",L:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},T:[{Y:"defs",T:[{Y:"clipPath",L:{id:"{{id}}"},T:[{Y:"path",W:"ytp-heat-map-path",L:{d:"",fill:"white"}}]},{Y:"linearGradient",L:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},T:[{Y:"stop",L:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{Y:"stop",L:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{Y:"rect",W:"ytp-heat-map-graph",L:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",W:"ytp-heat-map-hover",L:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",W:"ytp-heat-map-play",L:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{Y:"path",W:"ytp-modern-heat-map",L:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=q;this.X=this.cG("ytp-heat-map-svg");this.Z=this.cG("ytp-heat-map-path");this.G=this.cG("ytp-heat-map-graph");this.j=this.cG("ytp-heat-map-play");this.D=this.cG("ytp-heat-map-hover");this.S=this.cG("ytp-modern-heat-map");this.hP=!1;this.K=60;q=""+g.wk(this);this.update({id:q});q="url(#"+q+")";this.G.setAttribute("clip-path",q);this.j.setAttribute("clip-path",q);this.D.setAttribute("clip-path",q)}; rH=function(){var q=Pz;q.j||(q.j=!0,KMK(q,function(){return q.G.apply(q,g.YB(g.CF.apply(0,arguments)))}),q.G())}; Ln=function(q,Z,F,B,f,D,G,n){g.J.call(this);var b=this;this.loader=q;this.ME=Z;this.videoTrack=F;this.audioTrack=B;this.Np=f;this.PG=D;this.isAudioOnly=G;this.V=n;this.K=wH;this.zP=!1;this.logger=new g.Wz("sabr");this.X=this.uL=this.Dl=!1;this.videoInfos=this.j=this.PG.videoInfos;this.S=this.Y$=this.PG.D;this.D=new yp(Z,D,function(N,S){b.loader.iL(N,S)}); this.isAudioOnly&&$l9(this,this.Np.D["0"])}; Hz=function(q,Z){this.info=q;this.K=Z;this.D=null;this.G=this.S=-1;this.timestampOffset=0;this.isLocked=this.j=!1;this.Z=this.info.D.bA()&&!this.info.K}; xV=function(q){var Z,F,B,f,D=((F=g.C((Z=q.questions)==null?void 0:Z[0],OY))==null?void 0:F.surveyAdQuestionCommon)||((f=g.C((B=q.questions)==null?void 0:B[0],Qp))==null?void 0:f.surveyAdQuestionCommon),G;Z=[].concat(g.YB(((G=q.playbackCommands)==null?void 0:G.instreamAdCompleteCommands)||[]),g.YB((D==null?void 0:D.timeoutCommands)||[]));var n,b,N,S,l,U,u,P,W,H,X,Q,a,m,c,e,Y,Zg,GZ,FD;return{impressionCommands:(n=q.playbackCommands)==null?void 0:n.impressionCommands,errorCommands:(b=q.playbackCommands)== null?void 0:b.errorCommands,muteCommands:(N=q.playbackCommands)==null?void 0:N.muteCommands,unmuteCommands:(S=q.playbackCommands)==null?void 0:S.unmuteCommands,pauseCommands:(l=q.playbackCommands)==null?void 0:l.pauseCommands,rewindCommands:(U=q.playbackCommands)==null?void 0:U.rewindCommands,resumeCommands:(u=q.playbackCommands)==null?void 0:u.resumeCommands,skipCommands:(P=q.playbackCommands)==null?void 0:P.skipCommands,progressCommands:(W=q.playbackCommands)==null?void 0:W.progressCommands,P2a:(H= q.playbackCommands)==null?void 0:H.clickthroughCommands,fullscreenCommands:(X=q.playbackCommands)==null?void 0:X.fullscreenCommands,activeViewViewableCommands:(Q=q.playbackCommands)==null?void 0:Q.activeViewViewableCommands,activeViewMeasurableCommands:(a=q.playbackCommands)==null?void 0:a.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(m=q.playbackCommands)==null?void 0:m.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(c=q.playbackCommands)== null?void 0:(e=c.activeViewTracking)==null?void 0:e.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(Y=q.playbackCommands)==null?void 0:(Zg=Y.activeViewTracking)==null?void 0:Zg.activeViewAudioMeasurableCommands,endFullscreenCommands:(GZ=q.playbackCommands)==null?void 0:GZ.endFullscreenCommands,abandonCommands:(FD=q.playbackCommands)==null?void 0:FD.abandonCommands,completeCommands:Z}}; mly=function(q){q=aID(q);return Au(q)}; XM=function(q){vz.call(this,"measurable_impression",q)}; Kn=function(q,Z){Z!=q.jq&&(q.jq=Z,q=EY(),Z?q.j++:q.j>0&&q.j--)}; m7=function(){this.K=new $V;this.WG=this.BG=0;this.HG=new aP;this.uL=this.X=-1;this.I_=1E3;this.vG=new $V([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.k$=this.zP=-1}; iK6=function(q){this.offset=0;this.data=new DataView(new ArrayBuffer(q))}; kTZ=function(q,Z){if(Z=Z.content&&Z.content.confirmDialogRenderer||null)q.G=new ig(q.api,q.layoutId,q.interactionLoggingClientData,q.x$),g.y(q,q.G),q.G.init(kV("ad-mute-confirm-dialog"),Z,q.macros),q.G.R_(q.k$),q.G.subscribe("b",function(){return q.publish("c")})}; sCD=function(q){var Z;(Z=q.Pz)==null||Z.hZ(!q.B.isFullscreen()&&q.B.getPresentingPlayerType()!==2&&q.B.C().showMiniplayerButton)}; jCD=function(){var q;return(q=g.sY("yt-player-audio-quality-setting"))!=null?q:2}; C5X=function(q){g.jJ(IIZ)("action_finished",q,void 0)}; hxK=function(q){q.updateValue("channelLink","");q.updateValue("channelName","");g.H_(q.api.C())||q.api.U("enable_channel_title_always_focusable")?q.updateValue("channelTitleFocusable","0"):q.updateValue("channelTitleFocusable","-1")}; Cn=function(q){g.w.call(this,{Y:"div",W:"ytp-shorts-title-channel",T:[{Y:"a",W:"ytp-shorts-title-channel-logo",L:{href:"{{channelLink}}",target:q.C().PG,"aria-label":"{{channelLogoLabel}}"}},{Y:"div",W:"ytp-shorts-title-expanded-heading",T:[{Y:"div",W:"ytp-shorts-title-expanded-title",T:[{Y:"a",Ka:"{{expandedTitle}}",L:{href:"{{channelTitleLink}}",target:q.C().PG,tabIndex:"0"}}]}]}]});var Z=this;this.api=q;this.D=this.cG("ytp-shorts-title-channel-logo");this.channelName=this.cG("ytp-shorts-title-expanded-title"); this.subscribeButton=null;q.createClientVe(this.D,this,36925);this.N(this.D,"click",function(F){Z.api.logClick(Z.D);g.IP(window,Rx9(Z));F.preventDefault()}); q.createClientVe(this.channelName,this,37220);this.N(this.channelName,"click",function(F){Z.api.logClick(Z.channelName);g.IP(window,Rx9(Z));F.preventDefault()}); cMg(this);this.N(q,"videodatachange",this.ys);this.N(q,"videoplayerreset",this.ys);this.ys()}; hu=function(q,Z){return q.zP[Z!=null&&Z=this.length))return this[q]}; ZOg=function(q,Z){var F=Z/((q.Z?135:90)-q.zP)*q.zP;g.u$(q.progressBar,"transform","translateY("+-Z+"px)");g.u$(q.uL,"transform","translateY("+-Z+"px)");g.u$(q.Jn,"transform","translateY("+F+"px)");q.Jn.style.height=Z+F+"px";q.element.parentElement&&(q.element.parentElement.style.height=q.zP-F+"px")}; Ld=function(q){if(q.mY){var Z=q.Aq;var F=q.mY;q=q.LK();var B=F1K(Z);if(PX(B)){if(B=Z.JT(F).compose(I6D(Z,F)).compose(Bay(Z,F)).compose(rV(Z,F.videoData)).compose(wV(Z,F.videoData,F)).compose(WX(Z,F)).compose(yW(Z,F)),PX(q)||Z.U("html5_apply_pbr_cap_for_drm"))B=B.compose(fDK(Z,F))}else Z.U("html5_perf_cap_override_sticky")&&(B=B.compose(WX(Z,F))),Z.U("html5_ustreamer_cap_override_sticky")&&(B=B.compose(fDK(Z,F)));B=B.compose(yW(Z,F));Z=F.videoData.ll.compose(B).compose(F.videoData.sF).compose(q)}else Z= wH;return Z}; Gf6=function(q,Z){var F=Z.bgp&&Z.bgub,B=!!Z.upb;Z.siub&&Z.scs&&(F||B)&&(B&&of(q.GP.get(),"html5_export_sodar_snapshot")?HX().then(function(f){f=f.snapshot.bind(f);g.O9("yt.abuse.playerAttLoaderRun",f);DNg(Z.siub,Z.scs,Z.bgub,Z.bgp,Z.upb)}):DNg(Z.siub,Z.scs,Z.bgub,Z.bgp,Z.upb))}; g.QW=function(q,Z){return q==Z?!0:q&&Z?q.width==Z.width&&q.height==Z.height:!1}; zP6=function(q,Z,F){for(var B="",f=0;f=400?(q.lastError="net.badstatus",!0):(f===void 0?0:f)?(q.lastError="ump.spsrejectfailure",!0):F||B!==void 0&&B?!1:(q.lastError=Z===204?"net.nocontent":"net.connect",!0)}; lm=function(q){return g.Bj(g.bm(),q)}; gpK=function(q,Z,F){q instanceof String&&(q=String(q));for(var B=q.length,f=0;fMath.max(1E4,q.S/3)?0:Z);var F=q.X(q)||{};F=F.currentTime!==void 0?F.currentTime:q.Dl;var B=F-q.Dl,f=0;B>=0?(q.uL+=Z,q.dU+=Math.max(Z-B,0),f=Math.min(B,q.uL)):q.Oc+=Math.abs(B);B!=0&&(q.uL=0);q.HG==-1&&B>0&&(q.HG=ZP>=0?F0()-ZP:-1);q.Dl=F;return f}; rE=function(q,Z,F,B){B=B===void 0?0:B;if(q==null){var f=32;F?(q=[F],f|=128):q=[];Z&&(f=f&-16760833|(Z&1023)<<14)}else{if(!Array.isArray(q))throw Error("narr");f=q[Sm]|0;if(OO7&&1&f)throw Error("rfarr");2048&f&&!(2&f)&&Qok();if(f&256)throw Error("farr");if(f&64)return B!==0||f&2048||KO(q,f|2048),q;if(F&&(f|=128,F!==q[0]))throw Error("mid");a:{F=q;f|=64;var D=F.length;if(D){var G=D-1,n=F[G];if(n!=null&&typeof n==="object"&&n.constructor===Object){Z=f&128?0:-1;G-=Z;if(G>=1024)throw Error("pvtlmt");for(var b in n)D= +b,D1024)throw Error("spvt");f=f&-16760833|(b&1023)<<14}}}f|=64;B===0&&(f|=2048);KO(q,f);return q}; fV=function(q,Z,F,B){B=B===void 0?240:B;g.w.call(this,{Y:"button",rU:["ytp-button","ytp-share-button"],L:{title:q.U("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":F.element.id,"data-tooltip-opaque":String(g.FQ(q.C()))},T:[{Y:"div",W:"ytp-share-icon",Ka:"{{icon}}"},{Y:"div",W:"ytp-share-title",Ka:"Compartir"}]});this.api=q;this.D=Z;this.K=F;this.S=B;this.visible=!1;this.tooltip=this.D.Iy();q.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.N(q,"videodatachange",this.ys);this.N(q,"videoplayerreset",this.ys);this.N(q,"appresize",this.ys);this.N(q,"presentingplayerstatechange",this.ys);this.ys();this.addOnDisposeCallback(g.BY(this.tooltip,this.element))}; xN7=function(q){q.D.forEach(function(Z){DP(q,Z)})}; GP=function(q,Z){Z={rst4disc:Z,cd:q.V.toFixed(3),sq:q.dU?q.dU.Uc:-1};q.S=NaN;q.V=0;q.o_=-1;q.dU=null;q.eU=NaN;q.HG=NaN;q.Oc=null;q.loader.iL("mdstm",Z)}; zP=function(){}; A86=function(q){if(q.length!==0){var Z=[];q=g.E(q);for(var F=q.next();!F.done;F=q.next())(F=nV(F.value))&&Z.push(F);return{commandExecutorCommand:{commands:Z}}}}; bJ=function(){}; gS=function(q,Z,F,B,f){B=B===void 0?!1:B;f=f===void 0?!1:f;NR.call(this,F);this.isLive=B;this.X=!!f;this.levels=this.K(q,Z);this.G=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; vp9=function(q){function Z(){return q.charCodeAt(B++)} var F=q.length,B=0;do{var f=Sz(Z);if(f===Infinity)break;var D=f>>3;switch(f&7){case 0:f=Sz(Z);if(D===2)return f;break;case 1:if(D===2)return;B+=8;break;case 2:f=Sz(Z);if(D===2)return q.substr(B,f);B+=f;break;case 5:if(D===2)return;B+=4;break;default:return}}while(BF?0:q}; J9=function(q,Z,F){return Rh(q,Z,cY(F))}; t9=function(q,Z){Yw.call(this,q,Z)}; dS=function(q,Z,F){F=F===void 0?!1:F;Z&&pV&&o99(q.G,Z.iO());if(!F){var B;(B=q.V)==null||q68(B)}q.g2=Z;(Z=q.V)!=null&&(Z.g2=q.g2)}; VR=function(q){return q instanceof cx?g.JX(q):ZF7(q)}; ez=function(q,Z,F){q.K!==Z&&(q.iL("sdai",{setsst:Z,old:q.K,r:F}),q.K=Z)}; gvK=function(q,Z,F){F=F===void 0?!1:F;Z.video.qualityOrdinal>1080&&!q.TT&&(q.WG=36700160,q.Jn=5242880,q.Oc=Math.max(4194304,q.Oc),q.TT=!0);Z.video.qualityOrdinal>2160&&!q.E4&&(q.WG=104857600,q.Ml=13107200,q.E4=!0);g.Ce(q.Qs.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?Z.isEncrypted()&&g.TP()&&g.Vd("samsung")&&(g.Vd("kant")||g.Vd("muse"))&&(q.Ml=g.Ce(q.Qs.experiments,"html5_samsung_kant_limit_max_bitrate")):Z.isEncrypted()&&g.TP()&&g.Vd("kant")&&(q.Ml=1310720);q.b_!==0&&Z.isEncrypted()&& (q.Ml=q.b_);q.P5!==0&&Z.isEncrypted()&&F&&(q.Ml=q.P5);Z.Ml&&(q.pY=Math.max(q.PY,Math.min(q.Oc,5*Z.Ml)))}; g.oX=function(q,Z,F){if(FzX&&!Z)q=g.W5.btoa(q);else{for(var B=[],f=0,D=0;D255){var n=Error("go/unicode-to-byte-error");if(F)throw n;B[f++]=G&255;G>>=8}B[f++]=G}q=g.MR(B,Z)}return q}; ZL=function(q,Z,F){q.D[Z]||(q.D[Z]=new qC(F));return q.D[Z]}; DL=function(q){var Z=q.tq,F;do{var B=q.mw-q.e$-q.AZ;if(q.AZ>=Z+(Z-262)){Fo.pF(q.window,q.window,Z,Z,0);q.Tm-=Z;q.AZ-=Z;q.pR-=Z;var f=F=q.v8;do{var D=q.head[--f];q.head[f]=D>=Z?D-Z:0}while(--F);f=F=Z;do D=q.OS[--f],q.OS[f]=D>=Z?D-Z:0;while(--F);B+=Z}if(q.VC.OO===0)break;f=q.VC;F=q.window;D=q.AZ+q.e$;var G=f.OO;G>B&&(G=B);G===0?F=0:(f.OO-=G,Fo.pF(F,f.input,f.HV,G,D),f.state.wrap===1?f.dh=BT(f.dh,F,G,D):f.state.wrap===2&&(f.dh=fP(f.dh,F,G,D)),f.HV+=G,f.gQ+=G,F=G);q.e$+=F;if(q.e$+q.qD>=3)for(B=q.AZ-q.qD, q.eC=q.window[B],q.eC=(q.eC<Z&&F.push(nP(B,1))}); return F}; bb=function(q,Z){q=g.E(q.rF.values());for(var F=q.next();!F.done;F=q.next())if(F.value.layoutId===Z)return!0;return!1}; Dcg=function(){this.D=new fKy}; NC=function(q,Z){q.checked=Z;q.element.setAttribute("aria-checked",String(q.checked))}; gz=function(q){this.Ec=rE(q)}; SF=function(q,Z,F){q&&!F&&(q=q.parentNode);for(F=0;q;){if(Z(q))return q;q=q.parentNode;F++}return null}; GG8=function(q){var Z=lb(q,function(f,D){return f+D.length},0); Z=new Uint8Array(Z);var F=0;q=g.E(q);for(var B=q.next();!B.done;B=q.next())B=B.value,Z.set(B,F),F+=B.length;return Z}; rz=function(){this.isInitialized=!1;this.D=this.K=null;var q={};this.X=(q.start=this.V_,q.firstquartile=this.O0,q.midpoint=this.oP,q.thirdquartile=this.Hr,q.complete=this.X4,q.error=this.Nc,q.pause=this.Ns,q.resume=this.pN,q.skip=this.xW,q.viewable_impression=this.vK,q.mute=this.m8,q.unmute=this.m8,q.fullscreen=this.y_,q.exitfullscreen=this.fT,q.fully_viewable_audible_half_duration_impression=this.vK,q.measurable_impression=this.vK,q.abandon=this.Ns,q.engagedview=this.vK,q.impression=this.vK,q.creativeview= this.vK,q.progress=this.m8,q.custom_metric_viewable=this.vK,q.bufferstart=this.Ns,q.bufferfinish=this.pN,q.audio_measurable=this.vK,q.audio_audible=this.vK,q);q={};this.V=(q.overlay_resize=this.bv,q.abandon=this.rT,q.close=this.rT,q.collapse=this.rT,q.overlay_unmeasurable_impression=function(Z){return Ub(Z,"overlay_unmeasurable_impression",ub())},q.overlay_viewable_immediate_impression=function(Z){return Ub(Z,"overlay_viewable_immediate_impression",ub())},q.overlay_unviewable_impression=function(Z){return Ub(Z, "overlay_unviewable_impression",ub())},q.overlay_viewable_end_of_session_impression=function(Z){return Ub(Z,"overlay_viewable_end_of_session_impression",ub())},q); PT().K=3;zQb(this);this.S=null}; n9K=function(q,Z){q.D&&(g.p(Z,8)&&q.S?(q.S=!1,q.Ic(),q.D.start()):(g.p(Z,2)||g.p(Z,64))&&q.videoId&&(q.videoId=null))}; Nkb=function(q,Z){Z=Z?{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{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"}}]}:bF9();var F=q.B.getPlaybackRate(),B=g.wz("La velocidad es de $RATE",{RATE:String(F)});WT(q,Z,B,F+"x")}; ya=function(q){this.value=q}; S66=function(q,Z,F){F=F===void 0?null:F;var B=B===void 0?q.withCredentials:B;var f={},D=new URL(g9K(q));F&&(f.Authorization=F);q.sessionIndex&&(f["X-Goog-AuthUser"]=q.sessionIndex,D.searchParams.set("authuser",q.sessionIndex));q.pageId&&(Object.defineProperty(f,"X-Goog-PageId",{value:q.pageId}),D.searchParams.set("pageId",q.pageId));return{url:D.toString(),body:Z,Fl:1,requestHeaders:f,requestType:"POST",withCredentials:B,timeoutMillis:q.timeoutMillis}}; UcK=function(){var q,Z,F,B=(q=window.h5vcc)==null?void 0:(Z=q.settings)==null?void 0:(F=Z.getPersistentSettingAsString)==null?void 0:F.call(Z,"cpu_usage_tracker_intervals");if(B!=null){var f;q=(f=JSON.parse(B))!=null?f:[];f=q.filter(function(N){return N.type==="total"}).map(function(N){return N.seconds}); Z=g.E(lKX);for(F=Z.next();!F.done;F=Z.next())F=F.value,f.indexOf(F)===-1&&q.push({type:"total",seconds:F});var D,G;(D=window.h5vcc)==null||(G=D.settings)==null||G.set("cpu_usage_tracker_intervals_enabled",1);var n,b;(n=window.h5vcc)==null||(b=n.settings)==null||b.set("cpu_usage_tracker_intervals",JSON.stringify(q))}}; LP=function(q){var Z=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(q)&&!Z.test(q)}; Qa=function(q,Z,F,B,f){var D=q.Oy,G=q.videoData;G.K=F;var n=g.HT(q);F=new Ob(G,F,Z,n?n.itag:"",B);q.J.experiments.qp("html5_refactor_sabr_video_format_selection_logging")?(F.videoId=f,q.t4=F):D.qoe&&J89(D.qoe,F);f=q.Aq;f.K=0;f.D=0;q.publish("internalvideoformatchange",G,Z==="m")}; g.vT=function(q,Z,F,B){g.xT.call(this,q);this.priority=Z;F&&g.Ab(this,F);B&&this.setContent(B)}; KP=function(q,Z){var F={sv:"968"};Xo!==null&&(F.v=Xo);F.cb=uFB;F.nas=Qt.D.length;F.msg=q;Z!==void 0&&(q=Ph9(Z))&&(F.e=Eb[q]);return F}; wPg=function(q){return{startMinReadaheadPolicy:$T(q,1,rCb),resumeMinReadaheadPolicy:$T(q,2,rCb)}}; g.ms=function(q){return g.h(function(Z){return Z.return(g.aX(WzZ(),q))})}; Lzy=function(q){var Z=vm(Number(q));if(XQ(Z))return Pm(Z);Z=q.indexOf(".");Z!==-1&&(q=q.substring(0,Z));return ib()?Pm(RX(64,BigInt(q))):Pm(yCD(q))}; HFD=function(q,Z){var F=0;q=q.D.D.get(Z);if(!q)return 0;q=g.E(q);for(Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.durationMs!==0&&Z.Ya!==Z.Rc&&F++;return F}; OFG=function(q){return g.YN?"webkit"+q:q.toLowerCase()}; cT=function(q){q.removed=!0;q.listener=null;q.proxy=null;q.src=null;q.handler=null}; QbK=function(q,Z,F){F=q.D.WP(F);var B=q.K;B.D.exports.AES128CTRCipher_setCounter(B.cipher,F.byteOffset);q.D.free(F.byteOffset);Z=q.D.WP(Z);q.K.encrypt(Z);return Z}; tb=function(q,Z){var F;Jb(q.wU.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(F=q.XE.get().fK)==null?void 0:F.clientPlaybackNonce,adClientData:q.layout.Xe.adClientDataEntry},Z)})}; g.pP=function(q){return q==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||q==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; xcZ=function(q){for(var Z=q.K.pop(),F=q.K.pop(),B=q.pos-F-Z;Z--;){var f=Z?128:0;q.view.setUint8(F++,B&127|f);B>>=7}}; XPK=function(){ug(AC6);var q=ug(dz);q.D!=null&&q.D.D?v9B(q.D.D):EY().update(aa)}; E9Z=function(q,Z,F){var B=Z.Wp;Z.Wp=F;Va(q,Z)&&(F=q.app.Vs(),B.o1===q.S&&Ke(q),F.removeCueRange(B.o1),F.addCueRange(Z.Wp.o1))}; Tw=function(q){q.loader&&(q.loader.dispose(),q.loader=null,eF(q.t0,null));q.fE()?KzG(q):q.ym()}; ou=function(q,Z){return MC(q,Z)||(q.currentStyle?q.currentStyle[Z]:null)||q.style&&q.style[Z]}; Zo=function(q){g.J.call(this);this.provider=q;this.j="paused";this.Z=NaN;this.X=[10,10,10,40];this.PG=this.V=0;this.uL=this.Y$=this.zP=this.Dl=this.S=!1;this.K=this.G=NaN;this.logger=new g.Wz("vss");this.D=new qd(q)}; Be=function(q,Z,F){Z=Z==null||typeof Z==="number"?Z:Z==="NaN"||Z==="Infinity"||Z==="-Infinity"?Number(Z):void 0;Z!=null&&(XF(q,F,1),q=q.D,F=$c8||($c8=new DataView(new ArrayBuffer(8))),F.setFloat64(0,+Z,!0),KK=F.getUint32(0,!0),$v=F.getUint32(4,!0),Fg(q,KK),Fg(q,$v))}; aK6=function(q,Z,F,B,f,D,G){G==="PLAY_PROGRESS"&&(F=!B||q.api.C().K?1:F/B,q.J0.clientWidth>0||q.Lp.clientWidth>0?(D=Z.clientWidth/F,q=-1*q.J0.clientWidth/F):(D/=F,q=-1*q.D[f].element.offsetLeft/F),g.u$(Z,"background-size",D+"px"),g.u$(Z,"background-position-x",q+"px"))}; $9=function(q,Z,F){var B,f=new Promise(function(D){B=setTimeout(D,Z)}); return Promise.race([q.finally(function(){return void clearTimeout(B)}), f.then(F)])}; fW=function(q,Z){Z=Z===void 0?{}:Z;this.c8r=q;this.metadata=Z;this.status=null}; Do=function(q){return q.U("html5_disable_video_player_initiated_seeks")&&Im(q.videoData)}; mcX=function(q,Z){if(Z!==null&&Z!==void 0){if(typeof Z!=="object"&&typeof Z!=="function")throw new TypeError("Object expected.");if(F===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var F=Z[Symbol.dispose]}if(typeof F!=="function")throw new TypeError("Object not disposable.");q.stack.push({value:Z,dispose:F,async:!1})}return Z}; kGD=function(q,Z,F,B){(q=g.W5[q])||typeof document==="undefined"||(q=(new GL(document)).get(Z));return q?iF6(q,F,B):null}; zL=function(){}; Nd=function(q,Z,F){F!==void 0&&(sbX(q,Z,Math.ceil(Math.log2(F.length*4+2)/7)),nW(q,F.length*1.2),Z=bX(F,q.D.subarray(q.pos)),q.pos+Z>q.D.length&&(nW(q,Z),Z=bX(F,q.D.subarray(q.pos))),q.pos+=Z,xcZ(q))}; g.Uw=function(q){var Z={client:{hl:q.oE,gl:q.gT,clientName:q.yD,clientVersion:q.innertubeContextClientVersion,configInfo:q.G1}};navigator.userAgent&&(Z.client.userAgent=String(navigator.userAgent));var F=g.W5.devicePixelRatio;F&&F!=1&&(Z.client.screenDensityFloat=String(F));F=g5();F!==""&&(Z.client.experimentsToken=F);F=SN();F.length>0&&(Z.request={internalExperimentFlags:F});jbB(q,void 0,Z);IKB(void 0,Z);Chg(void 0,Z);hQ8(q,void 0,Z);RQ6(void 0,Z);g.cz("start_client_gcf")&&cCb(void 0,Z);g.oa("DELEGATED_SESSION_ID")&& !g.cz("pageid_as_header_web")&&(Z.user={onBehalfOfUser:g.oa("DELEGATED_SESSION_ID")});!g.cz("fill_delegate_context_in_gel_killswitch")&&(q=g.oa("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Z.user=Object.assign({},Z.user,{serializedDelegationContext:q}));q=g.oa("INNERTUBE_CONTEXT");var B;if(g.cz("enable_persistent_device_token")&&(q==null?0:(B=q.client)==null?0:B.rolloutToken)){var f;Z.client.rolloutToken=q==null?void 0:(f=q.client)==null?void 0:f.rolloutToken}B=Object;f=B.assign;q=Z.client; F={};for(var D=g.E(Object.entries(lX(g.oa("DEVICE","")))),G=D.next();!G.done;G=D.next()){var n=g.E(G.value);G=n.next().value;n=n.next().value;G==="cbrand"?F.deviceMake=n:G==="cmodel"?F.deviceModel=n:G==="cbr"?F.browserName=n:G==="cbrver"?F.browserVersion=n:G==="cos"?F.osName=n:G==="cosver"?F.osVersion=n:G==="cplatform"&&(F.platform=n)}Z.client=f.call(B,q,F);return Z}; g.uX=function(q){g.J.call(this);this.K=q;this.D={}}; y2=function(q){if(q.trendingOfferEntityKey){var Z=g.Pe.getState().entities;if(Z=r5(Z,"trendingOfferEntity",q.trendingOfferEntityKey)){var F,B,f;Z.encodedSkuId!==((F=q.D)==null?void 0:(B=F.bannerData)==null?void 0:(f=B.itemData)==null?void 0:f.encodedOfferSkuId)?w5(q):(q.K.update({trendingOffer:Z.shortLabel+" \u2022 "+Z.countLabel}),q.K.show(),q.banner.update({vendor:We(q)}))}else w5(q)}else w5(q)}; cx=function(q){this.D=q}; LW=function(q,Z,F){JCD(q,F.V5||"unknown");q.Mp.seekTo(Z,F)}; pP9=function(q){try{var Z=q.split(",");return Z.length>g.He(Y6B).length?null:lb(Z,function(F,B){B=B.toLowerCase().split("=");if(B.length!=2||t7b[B[0]]===void 0||!t7b[B[0]](B[1]))throw Error("Entry ("+B[0]+", "+B[1]+") is invalid.");F[B[0]]=B[1];return F},{})}catch(F){return null}}; g.MR=function(q,Z){Z===void 0&&(Z=0);FJK();Z=ZeK[Z];for(var F=Array(Math.floor(q.length/3)),B=Z[64]||"",f=0,D=0;f>2];G=Z[(G&3)<<4|n>>4];n=Z[(n&15)<<2|b>>6];b=Z[b&63];F[D++]=""+N+G+n+b}N=0;b=B;switch(q.length-f){case 2:N=q[f+1],b=Z[(N&15)<<2]||B;case 1:q=q[f],F[D]=""+Z[q>>2]+Z[(q&3)<<4|N>>4]+b+B}return F.join("")}; Ow=function(q,Z,F){F=F===void 0?240:F;g.w.call(this,{Y:"button",rU:["ytp-button","ytp-copylink-button"],L:{title:q.U("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.FQ(q.C()))},T:[{Y:"div",W:"ytp-copylink-icon",Ka:"{{icon}}"},{Y:"div",W:"ytp-copylink-title",Ka:"Copiar v\u00ednculo",L:{"aria-hidden":"true"}}]});this.api=q;this.D=Z;this.K=F;this.visible=!1;this.tooltip=this.D.Iy();Z=q.C();this.tooltip.element.setAttribute("aria-live", "polite");g.hK(this.element,"ytp-show-copylink-title",g.FQ(Z));q.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.N(q,"videodatachange",this.ys);this.N(q,"videoplayerreset",this.ys);this.N(q,"appresize",this.ys);this.ys();this.addOnDisposeCallback(g.BY(this.tooltip,this.element))}; V7b=function(q,Z){q.callback=Z;q.G=[];Q2(q.Qs.experiments)?xS(q):dc7(q)}; eQ9=function(q){var Z=0,F;for(F in q.D){var B=q.D[F];if(B==1||B==2)Z+=q.K[F][1]}return Z}; AU=function(q,Z){return""+q.getAsJson().veType+q.getAsJson().veCounter+Z}; TkK=function(q){return q.videoData.Sg()&&q.U("html5_enable_shorts_seek_details_logging")}; M77=function(q){var Z=q.top||0,F=q.left||0;return new gV(Z,F+(q.width||0),Z+(q.height||0),F)}; $S=function(q){if(typeof q!=="number"&&q&&!q.removed){var Z=q.src;if(ve(Z))g.Xg(Z.Qa,q);else{var F=q.type,B=q.proxy;Z.removeEventListener?Z.removeEventListener(F,B,q.capture):Z.detachEvent?Z.detachEvent(oP9(F),B):Z.addListener&&Z.removeListener&&Z.removeListener(B);qtZ--;(F=Ew(Z))?(g.Xg(F,q),F.D==0&&(F.src=null,Z[KW]=null)):cT(q)}}}; iX=function(q){g.w.call(this,{Y:"button",rU:[au.BUTTON,au.TITLE_NOTIFICATIONS],L:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},T:[{Y:"div",W:au.TITLE_NOTIFICATIONS_ON,L:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},T:[g.mk()]},{Y:"div",W:au.TITLE_NOTIFICATIONS_OFF,L:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},T:[{Y:"svg",L:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},T:[{Y:"path",L:{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=q;this.D=!1;q.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir notificaciones sobre todos los videos nuevos")}; q_B=function(q,Z){if(Z.info.video){if(q.S!==Z)return q.S=Z,oR7(q)}else q.HG=q.X!==Z,q.X=Z;return null}; kS=function(q){return function(Z){return Ru7(q,Z)}}; ZXD=function(q){return q.B.C().U("web_player_autonav_use_server_provided_state")&&jN(q.AP())}; CW=function(q,Z){Z?q.V||(q.element.removeAttribute("aria-disabled"),q.V=new g.oG(q.progressBar,!0),q.api.U("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&q.V.subscribe("hoverstart",q.iPr,q),q.V.subscribe("hovermove",q.K0U,q),q.V.subscribe("hoverend",q.uNP,q),q.V.subscribe("dragstart",q.DiL,q),q.V.subscribe("dragmove",q.G3_,q),q.V.subscribe("dragend",q.SZc,q),q.api&&q.api.U("delhi_modern_web_player")&&q.api.U("delhi_modern_web_player_cutout")&&(q.OP=new g.oG(q.progressBar, !0),q.OP.subscribe("hoverstart",function(){q.yd=!0;Iu(q)},q),q.OP.subscribe("hoverend",function(){q.yd=!1; Iu(q)},q)),q.cH=q.listen("keydown",q.eN)):q.V&&(q.element.setAttribute("aria-disabled","true"),q.Op(q.cH),q.V.cancel(),q.V.dispose(),q.V=null)}; g.Ru=function(q){var Z=[],F;for(F in q)hU(F,q[F],Z);return Z.join("&")}; kv=function(q){return q}; g.tU=function(q,Z){Z=ce(Z);Z=JU(Z,Z);Z.G=!0;YS(q,Z);return q}; Fi9=function(q){this.D=q;q.Ls("/client_streamz/bg/el",g.pW("en"),g.pW("mk"))}; Bty=function(q){return{videoId:eQ(q,2)}}; ff6=function(q){var Z=q.D;if(Z.D==Z.S)return!1;q.G=q.D.D;var F=d5(q.D)>>>0;Z=F>>>3;F&=7;if(!(F>=0&&F<=5))throw Error();if(Z<1)throw Error();q.S=Z;q.K=F;return!0}; D3g=function(q){g.V2(q.TJ);eN(q)||(q.TJ=g.TL(function(){return eN(q)},100))}; GOZ=function(q){Md.forEach(function(Z){return Z(q)})}; g.oi=function(q){return q.match(zhK)}; nR7=function(q){var Z=q.mediaElement;qT()?q.tD.N(Z,"webkitpresentationmodechanged",q.hr$):window.document.pictureInPictureEnabled&&(q.tD.N(Z,"enterpictureinpicture",function(){q.K8(!0)}),q.tD.N(Z,"leavepictureinpicture",function(){q.K8(!1)})); Z7&&(q.tD.N(Z,"webkitbeginfullscreen",function(){q.LR(3)}),q.tD.N(Z,"webkitendfullscreen",function(){q.LR(0)}))}; BA=function(q){if(typeof q==="function")return q;q[F4]||(q[F4]=function(Z){return q.handleEvent(Z)}); return q[F4]}; fJ=function(){this.S="&";this.K={};this.G=0;this.D=[]}; bX7=function(q,Z,F,B){if(q)return q.apply(Z,B);if(g.D7&&document.documentMode<10){if(!Z[F].call)throw Error("IE Clobbering detected");}else if(typeof Z[F]!="function")throw Error("Clobbering detected");return Z[F].apply(Z,B)}; gRZ=function(q,Z){q.S=!1;q.D&&(q.Z=!0,q.D.abort(),q.Z=!1);q.G=Z;q.K=5;Ntk(q);GU(q)}; zU=function(q){return q.B.C().U("html5_allow_asmjs")}; g.bE=function(){try{return g.nJ(),!0}catch(q){return!1}}; g7=function(q,Z){var F=NT(q,!isNaN(q.G));Z&&(q.G=NaN);return F}; Sx=function(q){this.Ec=rE(q)}; lE=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",L:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}}; yB=function(q,Z){var F=S_D(q.S,Z.K);if(q.D.length>1){F=Ud(q,Z.S,!0);for(var B=0,f=0;f0&&(B+=q.D[f].width,B+=uE(q));F=(q.D[F].startTime+(Z.S-B)/q.D[F].width*((F===q.D.length-1?q.S.D*1E3:q.D[F+1].startTime)-q.D[F].startTime))/1E3||0}return F}; lfB=function(q,Z){if(Z<0)throw Error();var F=q.D;Z=F+Z;if(Z>q.S)throw Error();q.D=Z;return F}; LJ=function(){TY.apply(this,arguments)}; U37=function(q,Z,F){var B=[];F=g.E(F);for(var f=F.next();!f.done;f=F.next()){var D=B,G=D.push;var n=q;var b=Z;f=f.value;n=f.triggeringSlotId!=null&&f.triggeringSlotId===n?f.clone(b):f;G.call(D,n)}return B}; uKK=function(q,Z){this.D=q;this.duration=Z}; wjk=function(q){var Z=q.getVideoData(),F=q.Mi(),B=F.QO(),f=q.C(),D=q.nJ(),G=D.xT*8/1024,n=D.aD/1024,b=D.VB,N=D.Q3,S=D.playerState.state.toString(16),l=F.getCurrentTime().toFixed(2),U=HA(F.eW(),",",3),u="";if(Z.isDaiEnabled()){Z.enableServerStitchedDai&&(u+=Z.s4?"DS":"SS");u=Z.tP()?u+"LIFA, ":u+"DAI, ";var P=D.w8;P&&(u+=P)}Od(Z)&&!Z.tP()&&(u+="LIFAE, ");Im(Z)&&(u+="SABR, ");if(Z.fetchType){switch(Z.fetchType){case "onesie":P="o";break;case "gp":P="gp";break;default:P="gvi"}u+="vd:"+P+", "}(f=f.nD)&& (u=f.D?u+"wa, ":u+"w, ");u+="s:"+S+" t:"+l+" b:"+U+" ";F.isSeeking()&&(u+="S");F.isPaused()&&(u+="P");F.isEnded()&&(u+="E");q.isOrchestrationLeader()&&(u+=" L");(F=D.VV)&&(u+=" l:"+F.toFixed());F=D.currentTime;S=Z.M2;F&&F>S.start&&F>=5;W+=X}f=W.substr(0,4)+" "+W.substr(4,4)+" "+W.substr(8,4)+" "+(W.substr(12,4)+" "+W.substr(16,4))}else f="";G={video_id_and_cpn:String(Z.videoId)+" / "+f,codecs:"",dims_and_frames:"",bandwidth_kbps:G.toFixed(0)+" Kbps",buffer_health_seconds:b.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:N?"":"display:none",drm:N,debug_info:F,extra_debug_info:"",bandwidth_style:U,network_activity_style:U,network_activity_bytes:n.toFixed(0)+" KB",shader_info:l,shader_info_style:l?"":"display:none",playback_categories:""};n=B.clientWidth+"x"+B.clientHeight+(S>1?"*"+S.toFixed(2):"");b="-";D.totalVideoFrames&&(b=(D.droppedVideoFrames||0)+" dropped of "+D.totalVideoFrames);G.dims_and_frames=n+" / "+b;q=q.getVolume();n=PRZ(Z);var a;if((a=Z.G)==null?0:a.audio.K)a= "VB";else{var m;a=((m=Z.G)==null?0:m.audio.D)?"DRC":Math.round(q*n)+"%"}m=Math.round(q)+"% / "+a;a=Z.yd.toFixed(1);isFinite(Number(a))&&(m+=" (content loudness "+a+"dB)");G.volume=m;G.resolution=B.videoWidth+"x"+B.videoHeight;if(B=Z.K){if(m=B.video)a=m.fps,a>1&&(G.resolution+="@"+a),(a=D.f2)&&a.video&&(G.resolution+=" / "+a.video.width+"x"+a.video.height,a.video.fps>1&&(G.resolution+="@"+a.video.fps)),G.codecs=r_9(B),!Z.G||B.audio&&B.video?B.uV&&(G.codecs+=" / "+B.uV+"A"):G.codecs+=" / "+r_9(Z.G), m.D||m.primaries?(a=m.D||"unknown",a==="smpte2084"?a+=" (PQ)":a==="arib-std-b67"&&(a+=" (HLG)"),G.color=a+" / "+(m.primaries||"unknown"),G.color_style=""):G.color_style="display:none";if(B.debugInfo)for(G.fmt_debug_info="",B=g.E(B.debugInfo),m=B.next();!m.done;m=B.next())m=m.value,G.fmt_debug_info+=m.label+":"+m.text+" ";G.fmt_debug_info_style=G.fmt_debug_info&&G.fmt_debug_info.length>0?"":"display:none"}B=Z.isLivePlayback;m=Z.OZ;G.live_mode_style=B||m?"":"display:none";G.live_latency_style=B?"": "display:none";if(m)G.live_mode="Post-Live"+(vA(Z)?" Manifestless":"");else if(B){m=D.Lo;G.live_latency_secs=m.toFixed(2)+"s";B=vA(Z)?"Manifestless, ":"";Z.zP&&(B+="Windowed, ");a="Uncertain";if(m>=0&&m<120)if(Z.latencyClass&&Z.latencyClass!=="UNKNOWN")switch(Z.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=Z.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";B+=a;(m=D.HF)&&(B+=", seq "+m.sequence);G.live_mode=B}!D.isGapless||NM(Z)&&D.d1||(G.playback_categories+="Gapless ");G.playback_categories_style=G.playback_categories?"":"display:none";G.bandwidth_samples=D.oI;G.network_activity_samples=D.Xj;G.live_latency_samples=D.F7;G.buffer_health_samples=D.rG;D=g.X4(Z);if(Z.cotn||D)G.cotn_and_local_media=(Z.cotn?Z.cotn:"null")+" / "+D;G.cotn_and_local_media_style=G.cotn_and_local_media?"":"display:none"; mT(Z,"web_player_release_debug")?(G.release_name=z[25],G.release_style=""):G.release_style="display:none";G.debug_info&&u.length>0&&G.debug_info.length+u.length<=60?G.debug_info+=" "+u:G.extra_debug_info=u;G.extra_debug_info_style=G.extra_debug_info&&G.extra_debug_info.length>0?"":"display:none";return G}; Li6=function(q,Z){q.Yk.tick("vta");iE("vta",void 0,"video_to_ad");q.getCurrentTime()>0&&WiD(q.t0,q.getCurrentTime());q.mediaElement.activate(Z);q.gU&&kh(4);!q.videoData.PG&&q.playerState.isOrWillBePlaying()&&q.dM.start();if(y_X(q)){var F;if(Z=(F=q.mediaElement)==null?void 0:F.audioTracks())Z.onchange=function(){q.publish("internalaudioformatchange",q.videoData,!0)}}}; HXB=function(q,Z){sd(q,Z.Nf(),function(F,B,f){Z.FA(F,B,f)})}; jx=function(q){this.Ec=rE(q)}; OXB=function(q){Ii(CJ,h0,1,q)}; x3Z=function(q){var Z=new Qmk(q.D.Ep);g.y(q,Z);q=[new Ri(q.D.wU),new cA(q.D.B),new J0(q.D.wU),new Yh(q.D.Nd,q.D.F8),new zO,new t0(q.D.uw,q.D.Zs,q.D.wU),new pJ,new d7];q=g.E(q);for(var F=q.next();!F.done;F=q.next())HXB(Z,F.value);q=g.E(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(F=q.next();!F.done;F=q.next())sd(Z,F.value,function(){}); return Z}; ub=function(){var q=EY();if(q.j>0||q.V)return!0;q=VB().K.isVisible();var Z=ex(TU)===0;return q||Z}; vRK=function(q){return A_X.then(q)}; Xj8=function(q){var Z=Number(getComputedStyle(q.G).opacity),F;(F=q.S)==null||F.cancel();q.S=void 0;return Z}; oF=function(q){return g.MT(q.B.pB())!=null?g.MT(q.B.pB()).Vx()?!!q.B.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; ERb=function(q,Z){var F=Z.getId();q.HG[F]===Z&&(g.X_(q.LB[F]),delete q.HG[F],delete q.LB[F])}; Z5=function(q){if(q!=null&&typeof q!=="boolean")throw Error("Expected boolean but got "+qH(q)+": "+q);return q}; af7=function(q){function Z(){F-=B;F-=f;F^=f>>>13;B-=f;B-=F;B^=F<<8;f-=F;f-=B;f^=B>>>13;F-=B;F-=f;F^=f>>>12;B-=f;B-=F;B^=F<<16;f-=F;f-=B;f^=B>>>5;F-=B;F-=f;F^=f>>>3;B-=f;B-=F;B^=F<<10;f-=F;f-=B;f^=B>>>15} q=Ki9(q);for(var F=2654435769,B=2654435769,f=314159265,D=q.length,G=D,n=0;G>=12;G-=12,n+=12)F+=FY(q,n),B+=FY(q,n+4),f+=FY(q,n+8),Z();f+=D;switch(G){case 11:f+=q[n+10]<<24;case 10:f+=q[n+9]<<16;case 9:f+=q[n+8]<<8;case 8:B+=q[n+7]<<24;case 7:B+=q[n+6]<<16;case 6:B+=q[n+5]<<8;case 5:B+=q[n+4];case 4:F+=q[n+3]<<24;case 3:F+=q[n+2]<<16;case 2:F+=q[n+1]<<8;case 1:F+=q[n+0]}Z();return $38.toString(f)}; fc=function(q){if(q instanceof Bp)return q;q=String(q).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Au(q)}; j8=function(q){return q.B.C().experiments.qp("html5_preload_ads")}; var m3K=function(q,Z,F,B,f,D,G,n){return O6[z[9]](this,9,q,Z,F,B,f,D,G,n)}; kOy=function(q){q&&q!=="web"&&iXb.includes(q)}; N4D=function(q,Z,F){var B=F.reason==="m"||F.reason==="s";q.policy.w4&&D5&&g.GW&&(!B||F.D<1080)&&(Z=Z.filter(function(N){return N.video&&(!N.K||N.K.powerEfficient)})); if(Z.length>0)if(SB()){var f=sm8(q,Z);Z=Z.filter(function(N){return!!N&&!!N.video&&N.FE===f[N.video.qualityOrdinal].FE})}else{var D,G,n=(D=Z[0])==null?void 0:(G=D.video)==null?void 0:G.qualityOrdinal; if(n){F=Z.filter(function(N){return!!N&&!!N.video&&N.video.qualityOrdinal===n}); var b=sm8(q,F)[n].FE;Z=Z.filter(function(N){return!!N&&!!N.video&&N.FE===b})}}return Z}; zW=function(q){g.J.call(this);var Z=this;this.DE=q;this.S="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.K=void 0;this.tN=this.DE.p;this.G=this.L0.bind(this);this.addOnDisposeCallback(function(){return void jmD(Z)})}; If6=function(q){return of(q,"html5_ssap_play_cached_preroll")}; nc=function(q){this.Ec=rE(q)}; g.bD=function(q){var Z=ek7;if(ou(q,"display")!="none")return Z(q);var F=q.style,B=F.display,f=F.visibility,D=F.position;F.visibility="hidden";F.position="absolute";F.display="inline";q=Z(q);F.display=B;F.position=D;F.visibility=f;return q}; rYX=function(q,Z){Z&&(Promise.all(q.G).then(function(){return void Z.dispose()}),q.G=[])}; CRK=function(q){var Z,F,B=(Z=q.D)==null?void 0:(F=Z.bannerData)==null?void 0:F.itemData;return q.B.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(B==null||!B.priceReplacementText)&&(B==null?0:B.promotionText)?B==null?void 0:B.promotionText.content:null}; hhZ=function(q){for(var Z={By:0};Z.By<16;Z={By:Z.By},++Z.By){var F=new g.w({Y:"a",W:"ytp-suggestion-link",L:{href:"{{link}}",target:q.api.C().PG,"aria-label":"{{aria_label}}"},T:[{Y:"div",W:"ytp-suggestion-image"},{Y:"div",W:"ytp-suggestion-overlay",L:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},T:[{Y:"div",W:"ytp-suggestion-title",Ka:"{{title}}"},{Y:"div",W:"ytp-suggestion-author",Ka:"{{author_and_views}}"},{Y:"div",L:{"data-is-live":"{{is_live}}"},W:"ytp-suggestion-duration", Ka:"{{duration}}"}]}]});g.y(q,F);var B=F.cG("ytp-suggestion-link");g.u$(B,"transitionDelay",Z.By/20+"s");q.S.N(B,"click",function(f){return function(D){var G=f.By;if(q.K){var n=q.suggestionData[G],b=n.sessionData;q.Z&&q.api.U("web_player_log_click_before_generating_ve_conversion_params")?(q.api.logClick(q.D[G].element),G=n.Le(),n={},g.NH(q.api,n),G=g.gJ(G,n),g.SC(G,q.api,D)):g.lD(D,q.api,q.Z,b||void 0)&&q.api.TQ(n.videoId,b,n.playlistId)}else D.preventDefault(),document.activeElement.blur()}}(Z)); F.R_(q.suggestions.element);q.D.push(F);q.api.createServerVe(F.element,F)}}; uD=function(){this.K=this.Zu=0;this.D=Array.from({length:UB.length}).fill(0)}; Rhk=function(){if(typeof MessageChannel!=="undefined"){var q=new MessageChannel,Z={},F=Z;q.port1.onmessage=function(){if(Z.next!==void 0){Z=Z.next;var B=Z.aI;Z.aI=null;B()}}; return function(B){F.next={aI:B};F=F.next;q.port2.postMessage(0)}}return function(B){g.W5.setTimeout(B,0)}}; c_D=function(q){if(q.S&&typeof Pp!="undefined")if(q.PG&&g.rJ(q)==4)setTimeout(q.n2.bind(q),0);else if(q.dispatchEvent("readystatechange"),q.isComplete()){q.getStatus();q.S=!1;try{if(wJ(q))q.dispatchEvent("complete"),q.dispatchEvent("success");else{q.K=6;try{var Z=g.rJ(q)>2?q.D.statusText:""}catch(F){Z=""}q.G=Z+" ["+q.getStatus()+"]";Ntk(q)}}finally{GU(q)}}}; Wp=function(q,Z){return q==Z?!0:q&&Z?q.x==Z.x&&q.y==Z.y:!1}; yJ=function(q,Z,F,B){for(var f=F.length;(Z=q.indexOf(F,Z))>=0&&Z=q&&q+8>>1>3||(F=(F%Z[z[1]]+Z[z[1]])%Z[z[1]],Z[z[34]](F,1));return N}; ehy=function(q){var Z=Uy(PT().Be,"sneio")==1,F=q.K.Ck.AFMA_LIDAR_EXP_1!==void 0,B=q.K.Ck.AFMA_LIDAR_EXP_2!==void 0;(Z=Z&&B)&&(q.K.Ck.AFMA_LIDAR_EXP_2=!0);F&&(q.K.Ck.AFMA_LIDAR_EXP_1=!Z)}; beX=function(q){var Z=fc("");return Au(q.map(function(F){return Yx(fc(F))}).join(Yx(Z).toString()))}; ts=function(q,Z,F){var B=[Z];if(q!=Z||F!=Z)B.unshift(q),B.push(F);return B}; TtK=function(q,Z){return q.slice(Z.length).replace(/_[a-z]/g,function(F){return F.toUpperCase().replace("_","")}).replace("Dot",".")}; pc=function(q){this.Ec=rE(q)}; eC=function(q,Z,F,B){(q=q.He.get(F))&&!q.TD&&(dJ?(q.I6.has(Z)||q.I6.set(Z,{data:new bN,rX:0,Sd:!1}),VJ(q.I6.get(Z).data,B)):VJ(q.eB,B),q.bytesReceived+=B.totalLength,q.Ho=!0)}; MjD=function(q,Z){var F=Z.pop();for(F=q.K+q.D.length()-F;F>127;)Z.push(F&127|128),F>>>=7,q.K++;Z.push(F);q.K++}; oVB=function(q){if(q.timer===void 0){var Z=Math.max(0,q.D+q.K-TW());q.timer=setTimeout(function(){try{q.callback()}finally{q.D=TW(),q.timer=void 0}},Z)}}; F7y=function(q,Z){var F;return g.h(function(B){(0,g.Le)();if(q.D.D)return B.return(qYb(q,Z,q.iv));F=Zny(q.D);return B.return(F.encrypt(Z,q.iv))})}; g.qB=function(q,Z,F,B,f,D,G){g.vT.call(this,g.MH({"aria-haspopup":"true"}),Z,q);this.Pg=B;this.V=!1;this.S=null;this.options={};this.qr=new g.o3(F,void 0,q,f,D,G);g.y(this,this.qr);this.listen("keydown",this.eN);this.listen("click",this.open)}; $l9=function(q,Z,F){Z!==q.G&&(q.G&&(q.zP=!0),q.G=Z,q.BO(Z,q.videoTrack,F))}; BHD=function(q){return q.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Z,F,B){return F+B.toUpperCase()})}; Ze=function(q){var Z=q.docid||q.video_id||q.videoId||q.id;if(Z)return Z;Z=q.raw_player_response;Z||(q=q.player_response)&&(Z=JSON.parse(q));return Z&&Z.videoDetails&&Z.videoDetails.videoId||null}; F5=function(q){return{oe:q.S.D.cZ,Vo:q.S.K.cZ}}; f5=function(q,Z){Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var B=BB(q,F.timeRangeStartMillis/(q.S.D*1E3),cp(q)),f=q.api.U("delhi_modern_web_player")?.667:.6;g.u$(F.element,"transform","translateX("+B+"px) scaleX("+f+")")}}; fqK=function(q){q.D===-1&&(q.D=q.data.reduce(function(Z,F,B){return Z+(F?Math.pow(2,B):0)},0)); return q.D}; Gy7=function(q,Z,F,B){var f=this;B=B===void 0?{}:B;this.policy=Z;this.cg=F;this.X=B;this.status=0;this.response=void 0;this.K=0;this.Z=this.j=!1;this.errorMessage="";this.PG=function(D){if(D)if(f.status=D.status,D.ok&&D.body&&f.status!==204)f.status=f.status||242,f.S=D.body.getReader(),f.jU()?f.S.cancel().catch(function(){}):(f.responseHeaders=D.headers,f.cg.I8(),DrD(f)); else f.onDone();else f.onError(Error("null_response"))}; this.V=function(D){var G=(0,g.Le)();f.jU()||(D.done?(f.S=void 0,f.onDone()):(D=D.value,f.K+=D.length,f.D.append(D),DrD(f),f.cg.cz(G,f.K)))}; this.onError=function(D){f.errorMessage=String(D);f.j=!0;f.onDone()}; this.D=new bN;this.G=window.AbortController?new AbortController:void 0;this.start(q)}; z76=function(q){if(q.S)if(q.G==="AD_PLACEMENT_KIND_START"&&q.actionType==="video_to_ad")De("video_to_ad");else{var Z={adBreakType:G2(q.G),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:q.videoStreamType};q.actionType==="ad_to_video"?(q.contentCpn&&(Z.targetCpn=q.contentCpn),q.videoId&&(Z.targetVideoId=q.videoId)):(q.adCpn&&(Z.targetCpn=q.adCpn),q.adVideoId&&(Z.targetVideoId=q.adVideoId));q.adFormat&&(Z.adType=q.adFormat);q.contentCpn&& (Z.clientPlaybackNonce=q.contentCpn);q.videoId&&(Z.videoId=q.videoId);q.adCpn&&(Z.adClientPlaybackNonce=q.adCpn);q.adVideoId&&(Z.adVideoId=q.adVideoId);g.ZR(Z,q.actionType);q.B.C().experiments.qp("html5_ads_csi_qoes")&&(Z=q.B.wA(q.actionType==="ad_to_video"?1:2),Z=(0,g.Le)()-1E3*Z,z2("qoes",Z,q.actionType))}}; n5=function(q,Z){var F=q.K[Z];F&&F.forEach(function(B){try{B()}catch(f){}}); (F=q.D[Z])&&F.forEach(function(B){B()}); q.D[Z]=[]}; by=function(q){return(0,g.Le)()-q.j>=4E3}; aD6=function(q,Z,F,B){if(NB.length){var f=NB.pop();nVX(f,B);f.D.init(q,Z,F,B);return f}return new g9(q,Z,F,B)}; DNg=function(q,Z,F,B,f){var D=window;var G=G===void 0?!1:G;var n;F?n=(G===void 0?0:G)?"//ep1.adtrafficquality.google/bg/"+S$(F)+".js":"//pagead2.googlesyndication.com/bg/"+S$(F)+".js":n="";G=G===void 0?!1:G;F=D.document;var b={};Z&&(b._scs_=Z);b._bgu_=n;b._bgp_=B;b._li_="v_h.3.0.0.0";f&&(b._upb_=f);(Z=D.GoogleTyFxhY)&&typeof Z.push=="function"||(Z=D.GoogleTyFxhY=[]);Z.push(b);Z=S_(F).createElement("SCRIPT");Z.type="text/javascript";Z.async=!0;q=(G===void 0?0:G)?g.ly(bnB,S$(q)+".js"):g.ly(NHG,S$(q)+ ".js");g.U2(Z,q);(D=(D.GoogleTyFxhYEET||{})[Z.src])?D():F.getElementsByTagName("head")[0].appendChild(Z)}; gVD=function(q){this.D=q}; r9=function(q,Z,F){var B=g.Js(q.macros),f=g.bD(Z);B.AW={toString:function(){return f.width.toString()}}; B.AH={toString:function(){return f.height.toString()}}; var D=g.uy(F,Z).floor();B.I_X={toString:function(){return D.x.toString()}}; B.NX={toString:function(){return D.x.toString()}}; B.I_Y={toString:function(){return D.y.toString()}}; B.NY={toString:function(){return D.y.toString()}}; B.NM={toString:function(){return q.uL.toString()}}; Z=g.E(q.V);for(F=Z.next();!F.done;F=Z.next())F=F.value,q.layoutId?PB(q.x$,F,q.layoutId,B):g.mM(Error("Missing layoutId for invideo_overlay_ad."));q.api.pauseVideo()}; SYK=function(q){this.Ec=rE(q)}; WB=function(q,Z,F,B,f,D,G,n){g.pO.call(this);var b=this;this.api=q;this.Z=Z;this.contextMenu=F;this.Fo=B;this.gh=f;this.D=D;this.j=G;this.progressBar=n;this.G=new g.im(function(){lq7(b,!1)},1E3); this.K="";this.S={Gk:!1,vW:!1,QI:!1};g.y(this,this.G);this.N(Z,"mousedown",function(){w9(b,!1)}); this.N(F.element,"mousedown",function(){w9(b,!1)}); this.N(Z,"keydown",this.Lj);this.N(F.element,"keydown",this.Lj);this.N(Z,"keyup",this.aQ);this.N(F.element,"keyup",this.aQ)}; yI=function(){}; L5=function(q){var Z=g.LO(q.api.C())&&(q.api.U("web_shorts_pip")||q.api.U("web_watch_pip")),F;return!((F=q.api.getVideoData())==null?0:F.isLivePlayback)&&!q.api.isMinimized()&&!q.api.isInline()&&(!q.api.LD()||!Z)}; HB=function(q,Z,F){this.buffer=q;if(F&&!Z)throw Error();this.D=Z}; UrK=function(q){q&&O2&&QI()&&(O2.clearMarks("goog_"+q.label+"_"+q.uniqueId+"_start"),O2.clearMarks("goog_"+q.label+"_"+q.uniqueId+"_end"))}; uMD=function(){var q=KK,Z=$v;Z&2147483648?ib()?q=""+(BigInt(Z|0)<>>0)):(Z=g.E(xb(q,Z)),q=Z.next().value,Z=Z.next().value,q="-"+Ah(q,Z)):q=Ah(q,Z);return q}; X5=function(q,Z){vB.call(this,q,3,Z)}; g.E2=function(q,Z,F){q.G.set(Z,F)}; var Pg8=function(q,Z){return K5[z[9]](this,16,q,Z)}; var ruy=function(q){var Z;if((Z=q.K)==null?0:Z.isLocked())return q.videoInfos;var F=U_(q.D);Z=g.uh(q.videoInfos,function(B){return B.Ml>q.ME.Ml?!1:!F.has(B.id)}); bKD(q.D)&&(Z=g.uh(Z,function(B){return B.video.width<=854&&B.video.height<=480})); return Z},wzX=function(q){return q.fields.map(function(Z){return Z.fieldType})}; var W76=function(q){return K5[z[9]](this,73,q)}; $b=function(q,Z){Z={current:Z/1E3,duration:q.iA()/1E3};q.Ep.get().F6("onAdPlaybackProgress",Z)}; HnX=function(q){g.a3.prototype.load.call(q);var Z=e7(q.D).Zs;try{q.player.getRootNode().classList.add("ad-created")}catch(b){Yp(b instanceof Error?b:String(b))}var F=q.player.getVideoData(1),B=F&&F.videoId||"",f=F&&F.getPlayerResponse()||{},D=(f&&f.adPlacements||[]).map(function(b){return b.adPlacementRenderer}),G=((f==null?void 0:f.adSlots)||[]).map(function(b){return g.C(b,mZ)}); f=f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;F&&F.d2();D=yuK(D,G,Z,e7(q.D).JH);G=F&&F.clientPlaybackNonce||"";F=F&&F.RJ||!1;if(iy(Z,!0)&&F){var n;Z={};(n=q.player.getVideoData())==null||n.iL("p_cpb",(Z.cc=G,Z))}n=1E3*q.player.getDuration(1);L7K(q);q.D.D.Th.qP(G,n,F,D.HO,D.RI,D.HO,f,B)}; j$=function(q){kb.call(this,q,!1,!0);this.Y$=[];this.j$=[];this.element.setAttribute("data-overlay-order","9");this.X=!0;this.badge.element.classList.add("ytp-featured-product");this.k$=new g.w({Y:"div",W:"ytp-featured-product-open-in-new"});g.y(this,this.k$);this.countdownTimer=new g.w({Y:"text",W:"ytp-featured-product-countdown",Ka:"{{content}}"});this.countdownTimer.hide();g.y(this,this.countdownTimer);this.K=new g.w({Y:"div",W:"ytp-featured-product-trending",T:[{Y:"div",W:"ytp-featured-product-trending-icon"}, {Y:"text",W:"ytp-featured-product-trending-text",Ka:"{{trendingOffer}}"}]});this.K.hide();g.y(this,this.K);this.overflowButton=new g.w({Y:"button",rU:["ytp-featured-product-overflow-icon","ytp-button"],L:{"aria-haspopup":"true"}});this.overflowButton.hide();g.y(this,this.overflowButton);this.j=new g.w({Y:"text",W:"ytp-featured-product-exclusive-countdown",Ka:"{{content}}",L:{id:"exclusiveCountdown","aria-hidden":"true"}});this.j.hide();g.y(this,this.j);this.Z=new g.w({Y:"div",W:"ytp-featured-product-exclusive-container", L:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},T:[{Y:"div",W:"ytp-featured-product-exclusive-badge-container",T:[{Y:"div",W:"ytp-featured-product-exclusive-badge",T:[{Y:"text",W:"ytp-featured-product-exclusive-badge-text",Ka:"{{exclusive}}",L:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.j]});this.Z.hide();g.y(this,this.Z);this.banner=new g.w({Y:"a",W:"ytp-featured-product-container",T:[{Y:"div",W:"ytp-featured-product-thumbnail",T:[{Y:"img",L:{src:"{{thumbnail}}"}},this.k$]},{Y:"div", W:"ytp-featured-product-details",T:[{Y:"text",W:"ytp-featured-product-title",Ka:"{{title}}"},this.B.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",W:"ytp-featured-product-price-container",L:{"aria-label":"{{priceA11yText}}"},T:[{Y:"text",W:"ytp-featured-product-price-when-promotion-text-enabled",Ka:"{{price}}",L:{"aria-hidden":"true"}},{Y:"text",W:"ytp-featured-product-promotion-text",Ka:"{{promotionText}}",L:{"aria-hidden":"true"}}]}:{Y:"div",L:{"aria-label":"{{priceA11yText}}"}, T:[{Y:"text",W:"ytp-featured-product-price",Ka:"{{price}}",L:{"aria-hidden":"true"}},{Y:"text",W:"ytp-featured-product-sales-original-price",Ka:"{{salesOriginalPrice}}",L:{"aria-hidden":"true"}},{Y:"text",W:"ytp-featured-product-price-drop-reference-price",Ka:"{{priceDropReferencePrice}}",L:{"aria-hidden":"true"}}]},this.B.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",W:"ytp-featured-product-when-promotion-text-enabled",T:[{Y:"text",W:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", Ka:"{{affiliateDisclaimer}}"},this.K,{Y:"text",W:"ytp-featured-product-vendor-when-promotion-text-enabled",Ka:"{{vendor}}"}]}:{Y:"div",T:[{Y:"text",W:"ytp-featured-product-affiliate-disclaimer",Ka:"{{affiliateDisclaimer}}"},this.B.U("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.Z:null,this.K,{Y:"text",W:"ytp-featured-product-vendor",Ka:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.y(this,this.banner);this.banner.R_(this.S.element);this.N(this.B,g.UK("featured_product"), this.Om$);this.N(this.B,g.s2("featured_product"),this.sB);this.N(this.B,"videodatachange",this.onVideoDataChange);this.N(this.overflowButton.element,"click",this.qw);this.N(q,"featuredproductdismissed",this.o8)}; On7=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},T:[{Y:"path",L:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{Y:"path",L:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}}; g.ZI=function(q){g.pO.call(this);var Z=this;this.api=q;this.ZV=!1;this.ob=null;this.lC=!1;this.NA=null;this.ye=this.nM=!1;this.YA=this.kA=null;this.gO=NaN;this.AB=this.cM=!1;this.DW=0;this.yP=[];this.di=!1;this.Kg={height:0,width:0};this.qQ=480;this.PQU=["ytp-player-content","html5-endscreen","ytp-overlay"];this.PO={d0:!1};this.EO=null;var F=q.C(),B=q.Ca();this.Kg=q.getPlayerSize();this.Ne=new g.im(this.ov,0,this);g.y(this,this.Ne);F.disableOrganicUi||(this.Rb=new g.I3(q),g.y(this,this.Rb),g.C5(q, this.Rb.element,4));this.api.U("web_player_overlay_positioned_layout")&&(this.EO=new cB(this.api),g.y(this,this.EO));if(QPb(this)){var f=new Jh(q);g.y(this,f);f=f.element;g.C5(q,f,4)}var D=q.getVideoData();this.Fo=new Yb(B,q,function(n){return Z.WN(n)},D,F.nz,!1); g.y(this,this.Fo);this.Fo.subscribe("autohideupdate",this.SR,this);th(this.Fo);if(!F.disablePaidContentOverlay){var G=new p5(q);g.y(this,G);this.EO?this.EO.hW(G.element,g.d9(F)?3:1):g.C5(q,G.element,4)}this.ZZ=new aQ(q);g.y(this,this.ZZ);g.C5(this.api,this.ZZ.element,2);this.jX=this.api.isMutedByMutedAutoplay();this.N(q,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.SG=new g.im(this.Id,200,this);g.y(this,this.SG);this.Wi=D.videoId;this.Ab=new g.im(function(){Z.DW=0},350); g.y(this,this.Ab);this.vN=new g.im(function(){Z.AB||VI(Z)},350,this); g.y(this,this.vN);D=q.getRootNode();D.setAttribute("aria-label","Reproductor de video de YouTube");switch(F.color){case "white":g.e$(D,"ytp-color-white")}this.N(q,"appresize",this.CB);this.N(q,"presentingplayerstatechange",this.Qc);this.N(q,"videodatachange",this.onVideoDataChange);this.N(q,"videoplayerreset",this.Urc);this.N(q,"autonavvisibility",function(){Z.PC()}); this.N(q,"sizestylechange",function(){Z.PC()}); this.N(B,"click",this.tCE,this);this.N(B,"dblclick",this.W0l,this);this.N(B,"mousedown",this.ftG,this);F.Jn&&(this.N(B,"gesturechange",this.XZL,this),this.N(B,"gestureend",this.Nhl,this));this.Mv=[B.jb];this.Rb&&this.Mv.push(this.Rb.element);f&&this.Mv.push(f);this.api.U("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(B.element,this,247482),this.api.logVisibility(B.element,!0))}; MB=function(q){if(q==null)return q;if(typeof q==="string"&&q)q=+q;else if(typeof q!=="number")return;return T2(q)?q|0:void 0}; EVZ=function(q,Z){var F=new xr7;g.od(q.xhr,"complete",function(){if(wJ(q.xhr)){var B=g.q6(q.xhr);if(Z&&q.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");B=atob(B)}try{var f=q.X(B)}catch(n){Zi(q,FS(new BR(13,"Error when deserializing response data; error: "+n+(", response: "+B)),F));return}B=Aub(q.xhr.getStatus());fu(q,Di(q));B===0?vVB(q,f):Zi(q,FS(new BR(B,"Xhr succeeded but the status code is not 200"),F))}else{B=g.q6(q.xhr);f=Di(q);if(B){var D= XzD(q,B);B=D.code;var G=D.details;D=D.metadata}else B=2,G="Rpc failed due to xhr error. uri: "+String(q.xhr.V)+", error code: "+(q.xhr.K+", error: ")+q.xhr.getLastError(),D=f;fu(q,f);Zi(q,FS(new BR(B,G,D),F))}})}; jN=function(q){var Z;return((Z=q.autoplaySwitchButtonRenderer)==null?void 0:Z.enabled)!==void 0}; GB=function(q){g.w.call(this,{Y:"div",rU:["ytp-more-videos-button","ytp-button"],L:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},T:[{Y:"div",W:"ytp-more-videos-button-thumbnail"},{Y:"span",W:"ytp-more-videos-button-title",Ka:"{{title}}"}]});this.B=q;this.K=this.cG("ytp-more-videos-button-thumbnail");this.S=this.cG("ytp-more-videos-button-title");this.D=new g.pO(this);g.y(this,this.D);this.D.N(this.B,"videodatachange",this.wf);this.wf();this.listen("click",this.onClick);K7y(this, 0);this.hide()}; $rk=function(q){var Z=q.BG.toString(10).padStart(2,"0");Z=""+q.w2+Z;q.BG<99&&q.BG++;return Z}; dM7=function(q){fX.call(this,q);var Z=this;this.events=new g.pO(q);g.y(this,this.events);q.addEventListener("settingsMenuInitialized",function(){var F=new zB(Z.api,Z.api.HH());g.y(Z,F)})}; aqB=function(){this.G=0;this.PG=Infinity;this.V=!0;this.K=this.D=2;this.S=1;this.Z=!1;this.j=10;this.uL=!1;this.X=1;this.Dl=!1}; mr9=function(q,Z){var F=q.tI;q.tI=function(){F();Z()}}; inK=function(){this.D=g.nu;this.array=[]}; bO=function(q,Z,F){return q>1,Z),Qn(q,q.length>>1)]}; e7Z=function(q){var Z=q.C();if(Z.U("html5_disable_onesie")||!Z.U("html5_onesie")||!Z.U("html5_onesie_inline")&&q.getVisibilityState()===5||Z.Dl!=="yt")return!1;var F=Z.LB;if(!F||!F.D)return q.handleError(new g.xX("onesie.unavailable.hotconfig",{key:"0"})),!1;if(F.D.j<(0,g.Le)()&&(q.iL("okexp","1"),(F=q.Sq())&&Z.U("html5_prefer_trusted_host_on_key_expiration"))){F.K=!0;var B;(Z=(B=F.D.get(0))==null?void 0:p7(59,B.location))&&!LP(Z)&&F.D.delete(0)}if(VJy)return q.iL("ost3","1"),!1;B={};return Object.keys(B).length> 0?(B.onesie="0",q.handleError(new g.xX("html5.missingapi",B)),!1):!0}; Ay=function(q){q.S.isFinal=!0;q.flush();q.S.isFinal=!1}; THg=function(){var q=g.kN;vR.instance||(vR.instance=new vR(q));return vR.instance}; XS=function(q){if(!(this instanceof XS))return new XS(q);q=this.options=Fo.assign({level:-1,method:8,chunkSize:16384,NF:15,Ils:8,strategy:0,to:""},q||{});q.raw&&q.NF>0?q.NF=-q.NF:q.uv&&q.NF>0&&q.NF<16&&(q.NF+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.VC=new MJy;this.VC.vZ=0;var Z=this.VC;var F=q.level,B=q.method,f=q.NF,D=q.Ils,G=q.strategy;if(Z){var n=1;F===-1&&(F=6);f<0?(n=0,f=-f):f>15&&(n=2,f-=16);if(D<1||D>9||B!==8||f<8||f>15||F<0||F>9||G<0||G>4)Z=Eq(Z,-2);else{f===8&&(f=9); var b=new oYk;Z.state=b;b.VC=Z;b.wrap=n;b.BZ=null;b.oO=f;b.tq=1<>=7;D<30;D++)for(mN[D]=G<<7,f=0;f<1<=N.tq&&(Z===0&&(hy(N.head),N.AZ=0,N.pR=0,N.qD=0),F=new Fo.FY(N.tq),Fo.pF(F,D,G-N.tq,N.tq,0),D=F,G=N.tq);F=q.OO;B=q.HV;f=q.input;q.OO=G;q.HV=0;q.input=D;for(DL(N);N.e$>=3;){D=N.AZ;G=N.e$-2;do N.eC=(N.eC<2147483647?-1:g.W5.setTimeout(q,Z||0)}; var NVg=function(q,Z){return O6[z[9]](this,1,q,Z)}; g.ty=function(q){var Z,F;return!!((Z=q.embeddedPlayerConfig)==null?0:(F=Z.embeddedPlayerFlags)==null?0:F.enableMusicUx)}; g.pu=function(q){g.J.call(this);this.j=1;this.S=[];this.G=0;this.D=[];this.K={};this.X=!!q}; gYD=function(q,Z,F,B,f,D){return Z.fD&&Z.w2&&F===3?new d_(q,Z,B,f,D):null}; S9Z=function(q,Z){var F;return g.h(function(B){if(B.D==1)return g.R(B,Vn(Z),2);F=B.K;return B.return(g.e4(F,["LogsRequestsStore"],{mode:"readwrite",Wg:!0},function(f){var D=f.objectStore("LogsRequestsStore");return D.get(q).then(function(G){if(G)return G.status="QUEUED",g.TB(D,G).then(function(){return G})})}))})}; lRG=function(q){this.D=q;q.i6("/client_streamz/bg/cec",M6("ec"),g.pW("mk"))}; ZA=function(q,Z,F){for(;on(q,Z);){var B=qg(q,Z);if(B.type===F)return B;Z+=B.size}return null}; Fx=function(q){this.D=q}; Bv=function(q,Z,F){this.audio=q;this.video=Z;this.reason=F}; Ux9=function(q){return isNaN(q.cryptoPeriodIndex)?g.MR(q.initData):""+q.cryptoPeriodIndex}; f3=function(){this.K=this.D=null}; uNZ=function(q){q=q.fP();if(!q)return!1;q=g.DA(q).exp||"";return q.includes("xpv")||q.includes("xpe")}; P$G=function(q,Z){try{return globalThis.sessionStorage.setItem(q,Z),!0}catch(F){return!1}}; G$=function(q,Z){q.w2=NaN;q.Gb=null;q.KB.stop();q.dU&&Z&&q.dU.CF();q.Jn=null;q.dU=null}; rWb=function(q,Z){return z$(q,Z)||Math.abs(q.j-Z.Z)<=1E-6||q.Uc+1===Z.Uc&&Z.K===0&&q.G?!0:!1}; wXk=function(q){var Z=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!Z)return new n3(q);var F=Z.split(",");if(F.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new n3(q);Z=F.slice(1);Z.length===1&&Z[0]===""&&(Z=[]);F=Number(F[0]);return isNaN(F)||F<0||F>Z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new n3(q)):new n3(q,F,Z)}; WB9=function(){this.K=this.D=""}; MC=function(q,Z){var F=bw(q);return F.defaultView&&F.defaultView.getComputedStyle&&(q=F.defaultView.getComputedStyle(q,null))?q[Z]||q.getPropertyValue(Z)||"":""}; Hd8=function(q,Z,F){(0,g.yn)(q.S,function(B){var f=q.D;if(!B.D&&(B.S(Z,F),B.G())){B.D=!0;var D=B.K(),G=new V9;G.add("id","av-js");G.add("type","verif");G.add("vtype",B.Z);B=ug(yWk);G.add("i",B.D++);G.add("adk",f);Ng(G,D);f=new UyZ(G);LB6(f)}})}; gp=function(q,Z,F,B){this.K=null;this.Z=!1;this.D=this.S=this.G=0;this.init(q,Z,F,B)}; wp=function(q){var Z={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},F=q.playlist!=null&&q.playlist.jr();F=g.SH(q.B)&&(!q.D||F);var B=q.D&&g.lw(q.B),f=Odg(q),D=q.D&&q.B.getPresentingPlayerType()===5,G=g.UP(q.B,"Siguiente","SHIFT+n"),n=g.UP(q.B,"Anterior","SHIFT+p");if(D)Z.title="Iniciar video",Z["tooltip-title"]="Iniciar video";else if(q.S)Z.title="Volver a reproducir",Z["tooltip-title"]="Volver a reproducir";else if(F){var b= null;q.playlist&&(b=g.uw(q.playlist,q.D?Qa8(q.playlist):xx9(q.playlist)));if(b){if(b.videoId){var N=q.playlist.listId;Z.url=q.B.C().getVideoUrl(b.videoId,N?N.toString():void 0)}Z.text=b.title;Z.duration=b.lengthText?b.lengthText:b.lengthSeconds?g.Pv(b.lengthSeconds):null;Z.preview=b.fm("mqdefault.jpg")}q.D?(Z.title=G,Z["tooltip-title"]=G,Z["data-title-no-tooltip"]="Siguiente",Z["aria-keyshortcuts"]="SHIFT+n"):(Z.title=n,Z["tooltip-title"]=n,Z["data-title-no-tooltip"]="Anterior",Z["aria-keyshortcuts"]= "SHIFT+p")}else if(B){if(n=(b=q.videoData)==null?void 0:g.rp(b))Z.url=n.Le(),Z.text=n.title,Z.duration=n.lengthText?n.lengthText:n.lengthSeconds?g.Pv(n.lengthSeconds):null,Z.preview=n.fm("mqdefault.jpg");Z.title=G;Z["tooltip-title"]=G;Z["data-title-no-tooltip"]="Siguiente";Z["aria-keyshortcuts"]="SHIFT+n"}Z.disabled=!B&&!F&&!f&&!D;q.update(Z);q.j=!!Z.url;B||F||q.S||f||D?q.K||(q.K=g.BY(q.tooltip,q.element),q.Z=q.listen("click",q.onClick,q)):q.K&&(q.K(),q.K=null,q.Op(q.Z),q.Z=null);q.tooltip.Q$();g.hK(q.element, "ytp-playlist-ui",q.D&&(F||q.B.U("web_hide_next_button")))}; g.Wv=function(q){return q.containerType===1}; XXD=function(q,Z){return Z?AWD(Z):q?vY9(q):Promise.resolve()}; g.y5=function(q){return encodeURIComponent(String(q))}; EYg=function(q,Z){if(!(Z instanceof m0))if(Z instanceof BR){var F=Error(Z.toString());F.stack=Z.stack;Z=new m0(11,"EBH:Error",F)}else Z=new m0(12,"BSO:Unknown",Z);return q.reportError(Z)}; Hv=function(q){g.w.call(this,{Y:"button",rU:["ytp-fullerscreen-edu-button","ytp-button"],T:[{Y:"div",rU:["ytp-fullerscreen-edu-text"],Ka:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{Y:"div",rU:["ytp-fullerscreen-edu-chevron"],T:[KBk()]}],L:{"data-priority":"2"}});this.lL=q;this.fade=new g.L3(this,250,void 0,100);this.K=this.D=!1;q.createClientVe(this.element,this,61214);g.y(this,this.fade);this.N(q,"fullscreentoggled",this.ys);this.N(q,"presentingplayerstatechange",this.ys); this.listen("click",this.onClick);this.ys()}; OP=function(q){return q==null||typeof q==="string"?q:void 0}; FY=function(q,Z){return q[Z+0]+(q[Z+1]<<8)+(q[Z+2]<<16)+(q[Z+3]<<24)}; aRb=function(q,Z,F,B,f,D,G){if(Z&&F){q.EP=F.cpn;q.To(F.cpn,F.startTimeSecs||f);$xD(q,F);var n=Q5(q,"a2a",F);q.S$(n);q.Nx++;q.playback.FZ(Z,F,B||0,f||0,!!D,!!G)}else q.S$({misspbkonadtrans:1,enter:(F==null?void 0:F.cpn)||"",exit:(Z==null?void 0:Z.cpn)||"",seek:D,skip:G})}; Ag=function(q,Z,F,B,f){q={retry:!0,onSuccess:F,onError:B,networklessOptions:q,dangerousLogToVisitorSession:Z,E9P:!!f,headers:{},postBodyFormat:"",postBody:"",compress:g.cz("compress_gel")||g.cz("compress_gel_lr")};xz()&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Le)())));return q}; mx9=function(q,Z){var F={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(q.U("html5_enable_vp9_fairplay")&&vv(Z))return F.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),F.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[F];Xx(Z)&&(F.initDataTypes=["keyids","cenc"]);for(var B=g.E(Object.keys(q.D[Z.flavor])),f=B.next();!f.done;f=B.next()){f=f.value;var D=f.indexOf("audio/")===0,G=D?F.audioCapabilities:F.videoCapabilities;Z.flavor!== "widevine"||q.Z?G.push({contentType:f}):D?G.push({contentType:f,robustness:"SW_SECURE_CRYPTO"}):(g.l2&&g.Vd("windows nt")&&!q.U("html5_drm_enable_moho")||G.push({contentType:f,robustness:"HW_SECURE_ALL"}),D=f,q.Qs.Z.S&&f.includes("vp09")&&(D=f+"; experimental=allowed"),G.push({contentType:D,robustness:"SW_SECURE_DECODE"}),an(q.Qs)==="MWEB"&&(Bm()||mo())&&(q.iL("swcrypto",{}),G.push({contentType:f,robustness:"SW_SECURE_CRYPTO"})))}return[F]}; kz=function(q,Z){var F=F===void 0?{}:F;q={method:Z===void 0?"POST":Z,mode:iw(q)?"same-origin":"cors",credentials:iw(q)?"same-origin":"include"};Z={};for(var B=g.E(Object.keys(F)),f=B.next();!f.done;f=B.next())f=f.value,F[f]&&(Z[f]=F[f]);Object.keys(Z).length>0&&(q.headers=Z);return q}; id7=function(q){return q.X||q.U("web_player_media_session_infinity")&&q.isLivePlayback}; kY9=function(q,Z){this.logger=Z;try{var F=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(B){F=!1}F&&(this.index=wXk(q))}; saK=function(q){var Z=g.ym("window.location.href");q==null&&(q='Unknown Error of type "null/undefined"');if(typeof q==="string")return{message:q,name:"Unknown error",lineNumber:"Not available",fileName:Z,stack:"Not available"};var F=!1;try{var B=q.lineNumber||q.line||"Not available"}catch(G){B="Not available",F=!0}try{var f=q.fileName||q.filename||q.sourceURL||g.W5.$googDebugFname||Z}catch(G){f="Not available",F=!0}Z=sP(q);if(!(!F&&q.lineNumber&&q.fileName&&q.stack&&q.message&&q.name)){F=q.message; if(F==null){if(q.constructor&&q.constructor instanceof Function){if(q.constructor.name)F=q.constructor.name;else if(F=q.constructor,jH[F])F=jH[F];else{F=String(F);if(!jH[F]){var D=/function\s+([^\(]+)/m.exec(F);jH[F]=D?D[1]:"[Anonymous]"}F=jH[F]}F='Unknown Error of type "'+F+'"'}else F="Unknown Error of unknown type";typeof q.toString==="function"&&Object.prototype.toString!==q.toString&&(F+=": "+q.toString())}return{message:F,name:q.name||"UnknownError",lineNumber:B,fileName:f,stack:Z||"Not available"}}return{message:q.message, name:q.name,lineNumber:q.lineNumber,fileName:q.fileName,stack:Z}}; eH=function(q,Z,F,B){B=B===void 0?null:B;g.In.call(this);this.element=q;this.videoData=Z;this.J=F;this.mediaElement=B;this.S=[];this.BG=2;this.WG=this.k$=!1;this.heartbeatParams=null;this.Y$=this.PG=!1;this.Z=null;this.dU=!1;this.D=this.videoData.Z;this.drmSessionId=this.videoData.drmSessionId||g.jag();this.K=new Map;this.j=new C3;this.X=new C3;this.uL=new g.pO(this);this.zP=this.J.U("html5_eme_ignore_teardown_errors");(q=this.element)&&(q.addKey||q.webkitAddKey)||hg()||Q2(F.experiments);this.J.U("html5_enable_vp9_fairplay")&& Rn(this.D)?F=cv:(F=this.videoData.nD,F=this.D.flavor==="fairplay"||F?wH:cv);this.V=F;this.G=new Jg(this.element,this.D,this.zP);g.y(this,this.G);Yz(this.D)&&(this.Dl=new Jg(this.element,this.D,this.zP),g.y(this,this.Dl));g.y(this,this.uL);F=this.element;this.D.keySystemAccess?this.uL.N(F,"encrypted",this.L6F):tg(this.uL,F,Yz(this.D)?["msneedkey"]:["needkey","webkitneedkey"],this.k0s);IRg(this);a:switch(F=this.D,q=this.J.experiments,Z=this.K,F.flavor){case "fairplay":p3()>19.2999?(q=F.FP,F=F.C8,F>= q&&(F=q*.75),Z=(q-F)*.5,F=new dp(Z,q,q-Z-F,this)):F=null;break a;case "widevine":F=new V5(Z,this,q);break a;default:F=null}if(this.Z=F)g.y(this,this.Z),this.Z.subscribe("rotated_need_key_info_ready",this.ZF,this),this.Z.subscribe("log_qoe",this.X$,this);Q2(this.J.experiments);this.X$({cks:this.D.getInfo()})}; RRX=function(q,Z,F){q.updateValue("text",Z);if(F){a:{switch(F){case "PREMIUM_STANDALONE":Z=C$K();break a;case "PREMIUM_STANDALONE_CAIRO":Z=hR9();break a}Z=void 0}q.updateValue("icon",Z)}Z=g.E(q.Dl.getAnimations());for(F=Z.next();!F.done;F=Z.next())F.value.cancel();q.Dl.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){q.updateValue("text","");q.updateValue("icon","")})}; g.T$=function(q){return document.createTextNode(String(q))}; uQD=function(q,Z){q.k$=!0;q.U("html5_use_centralized_player_time")&&(q.K=q.j,q.S=q.K,q.j=NaN);cW9(q,Z)}; g.Mg=function(q){return JWy(g.oi(q)[3]||null)}; t_D=function(q,Z,F,B,f){try{var D,G=Z===((D=q.gU)==null?void 0:D.D)?q.audioTrack:q.videoTrack;if(q.policy.o_&&(B==null?0:B.a6())){if((B==null?void 0:B.Dl)>1)return 6;G.dU=new g.im(function(){var n=oM(G);q.jU()||n==null||!n.isLocked?q.Mp.C().Nl()&&q.iL("eosl",{delayA:n==null?void 0:n.info.wq()}):Y9b(G)?(q.Mp.C().Nl()&&q.iL("eosl",{dunlock:n==null?void 0:n.info.wq()}),qJ(q,G===q.audioTrack)):(q.iL("nue",{ls:n.info.wq()}),n.info.Dl+=1,q.gU&&q.Bb())},1E4,q); q.Mp.C().Nl()&&q.iL("eosl",{delayS:B.wq()});G.dU.start()}q.policy.M2&&(B==null?void 0:B.D)instanceof Z4&&B.a6()&&q.iL("poseos",{itag:B.D.info.itag,seg:B.Uc,lseg:B.D.index.F3(),es:B.D.index.S});Z.appendBuffer(F,B,f)}catch(n){if(n instanceof DOMException){if(n.code===11)return 2;if(n.code===12)return 5;if(n.code===22||n.message.indexOf("Not enough storage")===0)return Z=Object.assign({name:"QuotaExceededError",buffered:HA(Z.nw()).replace(/,/g,"_"),vheap:FH(q.videoTrack),aheap:FH(q.audioTrack),message:g.oX(n.message, 3),track:q.gU?Z===q.gU.K?"v":"a":"u"},rMg()),q.handleError("player.exception",Z),1;g.mM(n)}return 4}return q.gU.TD()?3:0}; yCD=function(q){var Z=q.length;if(q[0]==="-"?Z<20||Z===20&&q<="-9223372036854775808":Z<19||Z===19&&q<="9223372036854775807")return q;Bf(q);return uMD()}; f4=function(q,Z,F,B,f,D){D=D===void 0?!1:D;g.J.call(this);this.element=q;this.V=Z;this.initData=F;this.D=B;this.K=f;this.PG=D;this.sessionId="";this.X=this.j=this.S=this.Z=null;this.G=new g.pO(this);g.y(this,this.G);pXX(this)}; g.D4=function(q){var Z=q.length;if(Z>0){for(var F=Array(Z),B=0;B=3&&(G=1,f="drm.net.retryexhausted");zj(q,{onlcsrqerr:f,info:D});q.error(f,G,D);q.shouldRetry(bY(G),B)&&BSg(q,B)}}); g.y(q,Z);fPk(q,Z)}else q.error("drm.unavailable",1,"km.empty")}; FT=function(q){fX.call(this,q);var Z=this;this.D={};this.events=new g.pO(q);g.y(this,this.events);this.events.N(q,"videodatachange",function(){Z.onVideoDataChange()}); this.events.N(q,g.UK("embargo"),function(F){Z.api.vE(!0);var B,f=(B=Z.D[F.id])!=null?B:[];B=g.E(f);for(f=B.next();!f.done;f=B.next()){var D=f.value;Z.api.hideControls();Z.api.PL("auth",2,"This video isn't available in your current playback area",NJ({embargoed:1,id:F.id,idx:F.K,start:F.start}));f=void 0;(D=(f=D.embargo)==null?void 0:f.onTrigger)&&Z.api.a_("innertubeCommand",D)}})}; zHK=function(q,Z){g1(q);if(Z){var F=g.Pe.getState().entities;F=r5(F,"featuredProductsEntity",Z);if(F!=null&&F.productsData){Z=[];F=g.E(F.productsData);for(var B=F.next();!B.done;B=F.next()){B=B.value;var f=void 0;if((f=B)!=null&&f.identifier&&B.featuredSegments){q.Y$.push(B);var D=void 0;f=g.E((D=B)==null?void 0:D.featuredSegments);for(D=f.next();!D.done;D=f.next()){var G=D.value;D=GPk(G.startTimeSec);D!==void 0&&(G=GPk(G.endTimeSec),Z.push(new g.u8(D*1E3,G===void 0?0x7ffffffffffff:G*1E3,{id:B.identifier, namespace:"featured_product"})))}}}q.B.sZ(Z)}}}; SS=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}}; t8=function(q){g.J.call(this);this.X=[];this.Gb=q||this}; bVy=function(q){for(var Z="",F=0;F=0||(q.provider.Mp.getVisibilityState()===3?q.Z=!0:(q.D=g.$w(q.provider),q.delay.start()))}; Pf=function(q){if(/opus/.test(q)&&g.l2&&!lY("38")&&!g.TP())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(q);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(q);if(/webm/.test(q)&&!gw6())return!1;q==='audio/mp4; codecs="mp4a.40.2"'&&(q='video/mp4; codecs="avc1.4d401f"');return!!UT(q)}; SyX=function(q){var Z=g.He(q.K),F=0,B;for(B in q.D)g.r1(Z,B)&&q.D[B]==1&&(F+=q.K[B][1],q.D[B]=2);return F}; zB=function(q,Z){var F=q.U("web_fix_annotations")?"Superposiciones anotadas":"Anotaciones";w1.call(this,F,g.Wf.Bc);this.B=q;this.Pg=Z;this.D=!1;q.U("web_settings_menu_icons")&&(Z=q.U("delhi_modern_web_player_icons")?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(Z));this.N(q,"videodatachange",this.ys);this.N(q,"onApiChange",this.ys);this.subscribe("select",this.onSelect,this);this.ys()}; yN=function(q){this.Ec=rE(q)}; g.QN=function(q,Z){var F=Z.format||"JSON";q=lPG(q,Z);var B=URD(q,Z),f=!1,D=u07(q,function(b){if(!f){f=!0;n&&g.L4(n);var N=g.Hf(b),S=null,l=400<=b.status&&b.status<500,U=500<=b.status&&b.status<600;if(N||l||U)S=PJk(q,F,b,Z.convertToSafeHtml);N&&(N=r9b(F,b,S));S=S||{};l=Z.context||g.W5;N?Z.onSuccess&&Z.onSuccess.call(l,b,S):Z.onError&&Z.onError.call(l,b,S);Z.onFinish&&Z.onFinish.call(l,b,S)}},Z.method,B,Z.headers,Z.responseType,Z.withCredentials,!1,Z.onProgress); B=Z.timeout||0;if(Z.onTimeout&&B>0){var G=Z.onTimeout;var n=g.OT(function(){f||(f=!0,D.abort(),g.L4(n),G.call(Z.context||g.W5,D))},B)}return D}; XH=function(){g.xl.call(this);var q=this;this.K=!1;this.D=THg();this.D.listen("networkstatus-online",function(){if(q.K&&g.cz("offline_error_handling")){var Z=AZ().get("errors",!0);if(Z){for(var F in Z)if(Z[F]){var B=new g.M2(F,"sent via offline_errors");B.name=Z[F].name;B.stack=Z[F].stack;B.level=Z[F].level;g.vf(B)}AZ().set("errors",{},2592E3,!0)}}})}; ET=function(){}; wYD=function(q){switch(Math.trunc(q.S)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; g.s3=function(q,Z,F){Z=K4(q,Z,F);return Z<0?null:typeof q==="string"?q.charAt(Z):q[Z]}; $l=function(q){return q.D&&q.bI&&q.playbackStartPolicy}; g.u$=function(q,Z,F){if(typeof Z==="string")(Z=aM(q,Z))&&(q.style[Z]=F);else for(var B in Z){F=q;var f=Z[B],D=aM(F,B);D&&(F.style[D]=f)}}; JZ=function(q,Z,F,B,f,D,G,n,b){return ma(F,W0g())||F.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.C(F.renderingContent,iY)!==void 0?new kl(q,Z,F,B,f,D,G,n,b):ma(F,{m0:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],FN:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||F.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.C(F.renderingContent,sT)!==void 0? new jS(q,Z,F,B,f,D,G,n,b):ma(F,y97())||F.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.C(F.renderingContent,Vm)!==void 0?new IM(q,Z,F,B,D):ma(F,L0K())?new C4(Z,F,q,B,f,b):ma(F,{m0:["metadata_type_instream_ad_player_overlay_renderer"],FN:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new hZ(q,Z,F,B,f,n):F.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.C(F.renderingContent,RM)!==void 0?new cf(q,Z,F,B,D):null}; p4=function(q,Z,F,B,f){if(Yl(9,q.vH))return new HV8(q,F);q=q.fP();return B?OV8()?new tZ(q,Z,F,f):new Gy7(q,Z,F,f):new QhK(q,F,f)}; xRb=function(q,Z,F,B){B=B===void 0?{}:B;q.addEventListener&&(Z!="mouseenter"||"onmouseenter"in document?Z!="mouseleave"||"onmouseenter"in document?Z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Z="MozMousePixelScroll"):Z="mouseout":Z="mouseover");return d1(VN,function(f){var D=typeof f[4]==="boolean"&&f[4]==!!B,G=g.yF(f[4])&&g.yF(B)&&g.eS(f[4],B);return!!f.length&&f[0]==q&&f[1]==Z&&f[2]==F&&(D||G)})}; WY=function(q,Z,F,B){var f=F.gB;q[Z]=B?function(D,G,n){return f(D,G,n,B)}:f}; A9b=function(q){var Z=this;this.K=void 0;this.D=!1;q.addEventListener("beforeinstallprompt",function(F){F.preventDefault();Z.K=F}); q.addEventListener("appinstalled",function(){Z.D=!0},{once:!0})}; g.oB=function(q){var Z=new Tj;return Z.isAvailable()?q?new MJ(Z,q):Z:null}; vwk=function(q){q.provider.videoData.UT&&qi(q,"prefetch");q.provider.videoData.Tb&&q.iL("reload",{r:q.provider.videoData.reloadReason,ct:q.provider.videoData.Tb});q.provider.videoData.vG&&qi(q,"monitor");q.provider.videoData.isLivePlayback&&qi(q,"live");s_&&qi(q,"streaming");q.provider.videoData.R6&&q.iL("ctrl",{mode:q.provider.videoData.R6},!0);if(q.provider.videoData.qB){var Z=q.provider.videoData.qB.replace(/,/g,"_");q.iL("ytp",{type:Z},!0)}q.provider.videoData.Gl&&(Z=q.provider.videoData.Gl.replace(/,/g, "."),q.iL("ytrexp",{ids:Z},!0));Z=q.provider.videoData;var F=q.provider.J.U("enable_white_noise")||q.provider.J.U("enable_webgl_noop"),B=g.Z$(Z)||g.Ff(Z)||g.BK(Z)||g.fI(Z);(F||B)&&(F=(0,g.D$)())&&q.D.set("gpu",[F]);GR(q.provider.videoData)&&g.zR(q,g.$w(q.provider),"dt",["1"]);Z.cotn&&!GR(Z)&&q.eE(!0);q.provider.J.Nl()&&(Z=(0,g.Le)()-q.provider.J.yd,q.iL("playerage",{secs:Math.pow(1.6,Math.round(Math.log(Z/1E3)/Math.log(1.6))).toFixed()}));q.G=!0;q.uL=g.TL(function(){q.reportStats()},1E4)}; K16=function(q){return Array.isArray(q)?q[0]instanceof nI?q:[XYD,q]:[q,void 0]}; $RK=function(q,Z,F,B){var f=q.Np,D=q.Mp.getVideoData(),G=q.pI,n=EwZ({Zv:q.Zv,Qs:D.C(),Mp:q.Mp,IC:q.IC,ME:q.ME,XI:q.XI,xf:q.xf,pK:q.pK,lU:q.lU,hJ:q.hJ,hj:q.hj,P4:q.P4,sabrLicenseConstraint:D.sabrLicenseConstraint,Wz:q.Wz,r7:q.r7,e0:q.e0,qM:q.qM,iaU:!!G,authorizedFormats:D.authorizedFormats}),b=bQ(D,q.Z7,q.nextRequestPolicy,q.f5,q.b1,q.Pw,q.wy);F&&Z&&(F=b.Ub?b.Ub.map(function(U){return U.type}):[],Z("sabr",{stmctxt:F.join("_"), unsntctxt:b.Qi?b.Qi.join("_"):""}));Z=q.kD;F=q.Ro;if(F===void 0&&Z===void 0){var N;F=K0X(f.d2,(N=q.Ed)==null?void 0:N.video);var S;Z=K0X(f.d2,(S=q.Ed)==null?void 0:S.audio)}if(D.oV)var l=D.oV;D={kX:n,oW:q.oW,kD:Z,Ro:F,pI:G,videoPlaybackUstreamerConfig:l,xD:b};B&&q.Nj?q.Nj.length>0&&(D.Nj=q.Nj):q.FX&&(D.FX=q.FX);D.z0=q.z0;D.Xx=f.o_;return D}; Ni=function(){throw Error("Invalid UTF8");}; g.ly=function(q){var Z=g.CF.apply(1,arguments);if(Z.length===0)return FK(q[0]);for(var F=q[0],B=0;B=0)throw Error("Database name cannot contain ':'");}; TSK=function(q){q=((q==null?void 0:q.playerOverlay)||{}).instreamSurveyAdRenderer;var Z;if(q)if(q.playbackCommands&&q.questions&&q.questions.length===1){var F,B=((Z=g.C(q.questions[0],OY))==null?void 0:Z.surveyAdQuestionCommon)||((F=g.C(q.questions[0],Qp))==null?void 0:F.surveyAdQuestionCommon);Z=eHD(B)}else Z=!1;else Z=!1;return Z}; MzK=function(q,Z){var F=Z.code;F!==void 0&&(k7(q,8),k7(q,F<<1^F>>31));Nd(q,2,Z.message)}; oT9=function(q){var Z=new g.xT({Y:"div",W:"ytp-ad-text-overlay",T:[{Y:"div",W:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",W:"ytp-ad-overlay-close-container",T:[{Y:"button",W:"ytp-ad-overlay-close-button",T:[s8(jq)]}]},{Y:"div",W:"ytp-ad-overlay-title",Ka:"{{title}}"},{Y:"div",W:"ytp-ad-overlay-desc",Ka:"{{description}}"},{Y:"div",rU:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Ka:"{{displayUrl}}"}]});q.N(Z.cG("ytp-ad-overlay-title"),"click",function(F){r9(q,Z.element,F)}); q.N(Z.cG("ytp-ad-overlay-link"),"click",function(F){r9(q,Z.element,F)}); q.N(Z.cG("ytp-ad-overlay-close-container"),"click",q.LM);Z.hide();return Z}; V9=function(){this.S=0;this.D=[];this.K=!1}; qbG=function(){}; CI=function(q,Z,F){g.J.call(this);this.B=q;this.ES=Z;this.GP=F;this.listeners=[];this.n9=null;this.Hx=new Map;Z=new g.pO(this);g.y(this,Z);Z.N(q,"videodatachange",this.SPF);Z.N(q,"serverstitchedvideochange",this.VC$);this.fK=IB(this)}; hv=function(){var q=/WebKit\/([0-9]+)/.exec(g.bm());return!!(q&&parseInt(q[1],10)>=600)}; FsD=function(q){return new Promise(function(Z,F){ZP9(q,Z,F)})}; cK=function(q){var Z=0,F=0,B=0,f=q.K,D=q.D;do{var G=f[D++];Z|=(G&127)<32)for(F|=(G&127)>>4,B=3;B<32&&G&128;B+=7)G=f[D++],F|=(G&127)<>>0,F>>>0);throw Error();}; Jv=function(q,Z){g.J.call(this);var F=this;this.D=null;this.S=Z;Z=[];for(var B=0;B<=100;B++)Z.push(B/100);Z={threshold:Z,trackVisibility:!0,delay:1E3};(this.K=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];var D=null;typeof f.isVisible==="undefined"?document.visibilityState==="visible"&&f.isIntersecting&&f.intersectionRatio>0?D=f.intersectionRatio:document.visibilityState==="hidden"?D=0:D=null:D=f.isVisible?f.intersectionRatio:0;D!=null&&(D=Math.max(D,0),D=Math.min(D, 1));F.D=D;typeof F.S==="function"&&F.S(F.D)},Z):null)&&this.K.observe(q)}; g.Z$=function(q){return!!q.D&&BzK(q.D)}; J89=function(q,Z){var F=g.$w(q.provider);if(!q.provider.J.experiments.qp("html5_refactor_sabr_video_format_selection_logging")||Z.D.id!==q.Oc){var B=[Z.D.id,Z.K,q.Oc,Z.reason];Z.token&&B.push(Z.token);g.zR(q,F,"vfs",B);q.Oc=Z.D.id;B=q.provider.Mp.getPlayerSize();if(B.width>0&&B.height>0){B=[Math.round(B.width),Math.round(B.height)];var f=g.xh();f>1&&B.push(f);g.zR(q,F,"view",B)}q.vG||(q.provider.J.Nl()&&qi(q,"rqs2"),q.provider.videoData.D&&Y7(q.provider.videoData.D)&&q.D.set("preload",["1"]));q.vG= !0;q.G=!0}Z.reason==="m"&&++q.QC===100&&tv(q,2);g.zR(q,F,"vps",[q.CP]);q.zP||q.reportStats(F)}; fLk=function(){return{Y:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},T:[{Y:"path",L:{d:"M0 0h48v48H0z",fill:"none"}},{Y:"path",L:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}}; DCD=function(){try{var q=ug(wN);q.iF("removeEventListener","ready",DCD);Gw6(q)}catch(Z){pI(541,Z)}}; z17=function(){this.next=this.context=this.K=this.S=this.D=null;this.G=!1}; nTK=function(q){return q.B.C().experiments.qp("enable_desktop_discovery_video_abandon_pings")||fd(q.B.C())}; Vg=function(q,Z,F){for(var B=g.E(bPb),f=B.next();!f.done;f=B.next()){f=f.value;var D=q.ZE.get(f);D&&(F||D.hM(Z))&&(g.dN(D),q.ZE.delete(f))}q.B.publish("modulesDestroyed",Z)}; NzX=function(q){q.K.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",q.V.isExpanded())}; Mi=function(q,Z,F){eq.call(this,q);this.G=Z;this.D="f";this.K="z";TR(this,F)}; Fu=function(q,Z){var F=OmB(q.provider);Object.assign(F,{state:q.j});Z=new oL(q.provider.videoData,q.provider.J,Z,F);Z.D=q.provider.Mp.rR();F=q.provider.videoData.clientPlaybackNonce;Z.D=q.provider.Mp.yE(F);q.provider.videoData.isLivePlayback||(Z.BG=q.provider.Mp.getDuration(F));q.provider.videoData.D&&(F=q.provider.videoData.D.rh(Z.D))&&(Z.Dl=F-Z.D,qm(q.provider.videoData)&&(Z.D+=q.provider.Mp.oh(),Z.Dl-=q.provider.Mp.oh()));Z.bb=g.$w(q.provider);Z.segments=[ZG(q.provider)];return Z}; gTG=function(q,Z){q.network=Z;return q}; Sbg=function(){var q=q===void 0?g.W5:q;return(q=q.performance)&&q.now?q.now():null}; lLD=function(){}; pm=function(q,Z,F,B,f){q.iv_load_policy=B;Z=lX(Z);if(Z.cta_conversion_urls)try{q.cta_conversion_urls=JSON.parse(Z.cta_conversion_urls)}catch(D){Yp(D)}F.R6&&(q.ctrl=F.R6);F.qB&&(q.ytr=F.qB);F.vJ&&(q.ytrcc=F.vJ);F.isMdxPlayback&&(q.mdx="1");q.vvt&&(q.vss_credentials_token=q.vvt,F.Fk&&(q.vss_credentials_token_type=F.Fk),F.mdxEnvironment&&(q.mdx_environment=F.mdxEnvironment));Bu(q,f);return q}; wT8=function(q){var Z,F,B,f,D,G,n,b,N,S;return g.h(function(l){return l.D==1?(B=(Z=q)==null?void 0:(F=Z.responseContext)==null?void 0:F.globalConfigGroup,f=g.C(B,UC7),G=(D=B)==null?void 0:D.hotHashData,n=g.C(B,uoD),N=(b=B)==null?void 0:b.coldHashData,(S=fg().resolve(new DG(G5)))?G?f?g.R(l,Pb6(S,G,f),2):g.R(l,Pb6(S,G),2):l.An(2):l.return()):N?n?g.R(l,rby(S,N,n),0):g.R(l,rby(S,N),0):l.An(0)})}; Wsb=function(q){this.Ec=rE(q)}; z5=function(q){this.Ec=rE(q)}; g.IP=function(q,Z,F,B){Z=VR(Z);return Z!==void 0?q.open(Z,F,B):null}; ng=function(q){var Z;return!((Z=oM(q))==null||!Z.isLocked)}; ybK=function(q,Z){var F=g.br;q=q.split(".");for(var B=0;B=0&&(this.Z.mfpe=""+Z),this.PG=!1);Z="";g.Lg(this.K)? Rn(this.K)?(B=F.K)&&(Z="https://www.youtube.com/api/drm/fps?ek="+iPb(B)):(Z=F.initData.subarray(4),Z=new Uint16Array(Z.buffer,Z.byteOffset,Z.byteLength/2),Z=String.fromCharCode.apply(null,Z).replace("skd://","https://")):Z=this.K.K;this.baseUrl=Z;this.fairplayKeyId=Hu(this.baseUrl,"ek")||"";if(Z=Hu(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(Z);this.zP=F.cL?[g.MR(F.initData,4)]:F.S;zj(this,{sessioninit:F.cryptoPeriodIndex});this.status="in"}; sXK=function(q){q.iF("removeEventListener",q.K.Ck.AFMA_LIDAR,kwK);q.zP=!1}; Abb=function(q,Z,F,B,f,D){q=F.inPlayerLayoutId?F.inPlayerLayoutId:Bs(D,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",q);var G,n,b=F.instreamAdPlayerOverlayRenderer?(G=F.instreamAdPlayerOverlayRenderer)==null?void 0:G.adLayoutLoggingData:(n=F.playerOverlayLayoutRenderer)==null?void 0:n.adLayoutLoggingData;G={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bL:Z};return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ud:new Map,layoutExitNormalTriggers:[new Qs(function(N){return xm(D, N)},F.v5)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:Z,clientMetadata:B,Xe:f(G),adLayoutLoggingData:b}}; AWD=function(q){return new Promise(function(Z,F){var B=g.AV("SCRIPT"),f=jXG(q);g.U2(B,f);B.onload=function(){g.X_(B);Z()}; B.onerror=function(){g.X_(B);F(Error("EWLS"))}; (g.jm("HEAD")[0]||document.documentElement).appendChild(B)})}; ILy=function(q,Z){Z=q.D&&!Z;return q.bG||Z?new g.vu(new g.Xu({D8$:q.bG,GK:Z})):new g.vu}; Ec=function(q){q||(q=document.location.href);q=g.oi(q)[1]||null;return q!==null&&q==="https"}; Kg=function(){return"https://play.google.com/log?format=json&hasfast=true"}; Cb7=function(q){q.PK=!q.PK;q.Gq=!0;q.element.classList.toggle("ytp-retro-player",q.PK);q.resize();q.Gq=!1;q.app.lL.a_("onRetroModeChanged",q.PK)}; R1D=function(q,Z){Z<100||$m(h18,1)}; ir=function(q,Z){if(Z.Sb)for(var F=0;F0&&q.set("osts",""+Z.startSeconds);B||(f.U("html5_onesie_disable_partial_segments")&&q.set("oses","1"),Z=f.U("html5_gapless_onesie_no_media_bytes")&&NM(Z)&&Z.UT,F&&!Z?(Z=F.audio,q.set("pvi",F.video.join(",")),f.U("html5_onesie_disable_audio_bytes")||q.set("pai",Z.join(",")),s_||q.set("osh","1")):(q.set("oad","0"),q.set("ovd","0"),q.set("oaad", "0"),q.set("oavd","0")))}; tF8=function(q){if(gE()&&q!=="Silk"){var Z=TX.brands.find(function(F){return F.brand===q}); if(!Z||!Z.version)return NaN;Z=Z.version.split(".")}else{Z=yKG(q);if(Z==="")return NaN;Z=Z.split(".")}return Z.length===0?NaN:Number(Z[0])}; pTD=function(q){return RL(q,1,1)}; tV=function(q){cu.call(this,.05,.05,q.getAvailablePlaybackRates()[0],q.getAvailablePlaybackRates()[q.getAvailablePlaybackRates().length-1],150,20,q.getPlaybackRate());this.B=q;this.Z=g.AV("P");this.Y$=JV(this.zP,50,this);g.e$(this.G,"ytp-speedslider");g.e$(this.Z,"ytp-speedslider-text");q=this.Z;var Z=this.G;Z.parentNode&&Z.parentNode.insertBefore(q,Z.nextSibling);Ym(this);this.N(this.B,"onPlaybackRateChange",this.updateValues)}; db=function(){pg.apply(this,arguments)}; os=function(q,Z,F){Vs.call(this,q);this.api=q;this.x$=Z;this.components={};q=new g.w({Y:"div",rU:["video-ads","ytp-ad-module"]});g.y(this,q);eT&&g.e$(q.element,"ytp-ads-tiny-mode");this.G=new T5(q.element);g.y(this,this.G);g.C5(this.api,q.element,4);Mm(F)&&(F=new g.w({Y:"div",rU:["ytp-ad-underlay"]}),g.y(this,F),this.K=new T5(F.element),g.y(this,this.K),g.C5(this.api,F.element,0));g.y(this,dCG())}; e1G=function(q){q=q===void 0?function(){return{}}:q; qn.VN="av-js";vY.D=.01;VFb([function(Z){var F=PT(),B={};B=(B.bin=F.K,B.type="error",B);F=Zd(F.Be);if(!Pz.S){var f=Pz,D=aa.document,G=Fd>=0?F0()-Fd:-1,n=F0();f.D.lO==-1&&(G=n);var b=EY(),N=PT(),S=Zd(N.Be),l=Bc();try{if(l.length>0){var U=b.D;U&&(S.bs=[f1(U),U.getHeight()]);var u=b.Z;u&&(S.ps=[u.width,u.height]);aa.screen&&(S.scs=[aa.screen.width,aa.screen.height])}else S.url=encodeURIComponent(aa.location.href.substring(0,512)),D.referrer&&(S.referrer=encodeURIComponent(D.referrer.substring(0,512))); S.tt=G;S.pt=Fd;S.bin=N.K;aa.google_osd_load_pub_page_exp!==void 0&&(S.olpp=aa.google_osd_load_pub_page_exp);S.deb=[1,f.D.NC,f.D.Y0,f.D.Om,f.D.lO,0,f.K.K,f.D.Zc,f.D.R5,f.D.BI,f.D.J8s,-1].join(";");S.tvt=C8Z(f,n);b.K&&(S.inapp=1);if(aa!==null&&aa!=aa.top){l.length>0&&(S.iframe_loc=encodeURIComponent(aa.location.href.substring(0,512)));var P=b.X;S.is=[f1(P),P.getHeight()]}}catch(W){S.error=1}Pz.S=S}U=g.Js(Pz.S);u=PT().D;Uy(u.S,"prf")==1?(P=new h_,f=u.D,D=0,f.D>-1&&(D=f.S.D.now()-f.D),P=Dd(P,1,GM(f.G+ D),0),f=u.D,P=Dd(P,5,DR(f.D>-1?f.K+1:f.K),0),P=Dd(P,2,cY(u.K.D.S()),"0"),P=Dd(P,3,cY(u.K.D.K()),"0"),u=Dd(P,4,cY(u.K.D.D()),"0"),P={},u=(P.pf=g.MR(u.S()),P)):u={};g.gN(U,u);g.gN(Z,B,F,U,q())}])}; n1=function(q){return q&128?zM:void 0}; JB7=function(q){var Z=JW(q)==="adunit"?q.Vm:bS(q)?JW(q)==="detailpage"||JW(q)==="shortspage"?q.isAutonav||q.Tb>0:q.hC?!1:q.Qs.SW||q.Qs.zH||!g.FQ(q.Qs)?!0:!1:(q.hC?0:q.zH)&&g.FQ(q.Qs)?!0:!1;q.U("html5_log_detailpage_autoplay")&&JW(q)==="detailpage"&&q.iL("autoplay_info",{autoplay:q.Pf,autonav:q.isAutonav,wasDompaused:q.hC,result:Z});return Z}; TzX=function(q,Z,F,B,f){this.Uc=q;this.startSecs=Z;this.jC=F;this.D=B||NaN;this.K=f||NaN}; MF8=function(q){return q!=null}; B5b=function(q,Z){!Z.info.D.j7()&&Z.info.K===0&&(g.Wv(Z.info.D.info)||Z.info.D.info.cL())&&oSD(Z);if(Z.info.type===1)try{qw7(q,Z),ZWb(q,Z)}catch(f){g.mM(f);var F=Nn(Z.info);F.hms="1";q.loader.handleError("fmt.unparseable",F||{},1)}F=Z.info.D;F.AG(Z);q.X&&Fk9(q.X,Z);if(F.wR()&&q.policy.D)a:{q=q.loader.Np;Z=Z.info.clipId;F=g.Kc(F.info,q.d2);if(Z){var B=EB({itag:F.itag,lmt:q.d2?0:F.lmt||0,xtags:F.xtags});if(q.eU[B])break a;q.eU[B]=Z}q.o_.push(F)}}; gd=function(){return Math.random().toString(36).substring(7).split("").join(".")}; GL7=function(q,Z,F,B,f,D){if(!Z)throw Error("Invalid event type");var G=g.yF(f)?!!f.capture:!!f,n=Ew(q);n||(q[KW]=n=new SA(q));F=n.add(Z,F,B,G,D);if(F.proxy)return F;B=foK();F.proxy=B;B.src=q;B.listener=F;if(q.addEventListener)Ddb||(f=G),f===void 0&&(f=!1),q.addEventListener(Z.toString(),B,f);else if(q.attachEvent)q.attachEvent(oP9(Z.toString()),B);else if(q.addListener&&q.removeListener)q.addListener(B);else throw Error("addEventListener and attachEvent are unavailable.");qtZ++;return F}; Pc=function(q,Z,F,B,f){Gf.call(this,"action-companion",q,Z,F,B,f)}; rd=function(q,Z){Z=Z===void 0?"":Z;q=zd6(q)[0][nSX];var F;Z=(F=Z)!=null?F:"[signal]";q.debugName=Z}; rb=function(q){this.value=q}; wd=function(q){this.Z=!1;this.D=q;this.G=function(){}}; IM=function(q,Z,F,B,f){oP.call(this,q,Z,F,B);q=qc(F.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(F.ud,f,q,F.layoutId)}; bWD=function(q,Z,F,B){F=F===void 0?!0:F;var f;return g.h(function(D){if(D.D==1)return g.R(D,Vn(Z),2);f=D.K;return D.return(g.e4(f,["LogsRequestsStore"],{mode:"readwrite",Wg:!0},function(G){var n=G.objectStore("LogsRequestsStore");return n.get(q).then(function(b){return b?(b.status="NEW",F&&(b.sendCount+=1),B!==void 0&&(b.options.compress=B),g.TB(n,b).then(function(){return b})):g.Wc.resolve(void 0)})}))})}; L1=function(q,Z){var F=(Z?Z:q.AP()).eY;q.Yk.tick("ep_pr_r");if(F!=null&&(N5G(q.playlist,F),q.xJ))q.playlist.onReady(function(){yU(q,Z)})}; g.nF=function(){Hc||(Hc=new gSK);return Hc}; SwD=function(q){PT();switch(OW(q)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; g.vc=function(q,Z){q.classList?q.classList.remove(Z):g.QU(q,Z)&&g.xd(q,Array.prototype.filter.call(AE(q),function(F){return F!=Z}).join(" "))}; lo9=function(q,Z){Z=Z===void 0?0:Z;var F=g.oa("client-screen-nonce-store");F||(F={},eJ("client-screen-nonce-store",F));F[Z]=q}; oSD=function(q){if(!q.D){g.Wv(q.info.D.info)||q.info.D.info.cL();if(g.Wv(q.info.D.info))var Z=g.UdG(g.Xd(q));else{Z=new EW(g.Xd(q));var F=Z.pos;Z.pos=0;var B=null,f=null;if(K1(Z,[408125543,307544935]))for(var D=Z.pos+$d(Z,!0);Z.pos0?(q="sms:"+q[0],B.messageText&&(q+="?&body="+encodeURI(B.messageText))):q="",this.hP=!0,g.F1(this.button,g.ST(q,[ao6]))):(F=g.C(F,mdK))&&!this.K&&(q=F.phoneNumber? "tel:"+F.phoneNumber:"",this.hP=!0,g.F1(this.button,g.ST(q,[iWb])));this.B.U("embeds_enable_info_panel_dismissal")&&!q&&(F=g.C(Z==null?void 0:Z.onTap,qX),B=g.C(F,zz))&&(this.hP=!0,this.D=F,this.feedbackToken=B.feedbackToken);var f;if(F=(f=Z.disclaimerText)==null?void 0:f.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var D;this.update({label:(D=Z.bodyText)==null?void 0:D.content,icon:nG(),disclaimer:F})}else{this.disclaimer.style.display="none";var G; this.update({label:(G=Z.bodyText)==null?void 0:G.content,icon:nG()})}this.B.setTrackingParams(this.element,Z.trackingParams||null);this.hP&&(this.S={externalLinkData:{url:q}})}; suG=function(q,Z){var F,B,f,D,G,n,b,N,S;return g.h(function(l){if(l.D==1)return F={startTime:(0,g.Le)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.R(l,Vn(Z),2);if(l.D!=3)return B=l.K,f=g.oa("INNERTUBE_CONTEXT_CLIENT_NAME",0),D=[q,f,0],G=[q,f,(0,g.Le)()],n=IDBKeyRange.bound(D,G),b="prev",g.cz("use_fifo_for_networkless")&&(b="next"),N=void 0,S=q==="NEW"?"readwrite":"readonly",g.cz("use_readonly_for_get_most_recent_by_status_killswitch")&&(S="readwrite"),g.R(l,g.e4(B,["LogsRequestsStore"], {mode:S,Wg:!0},function(U){return g.NX(U.objectStore("LogsRequestsStore").index("newRequestV2"),{query:n,direction:b},function(u){u.getValue()&&(N=u.getValue(),q==="NEW"&&(N.status="QUEUED",u.update(N)))})}),3); F.ticks.tc=(0,g.Le)();kLG(F);return l.return(N)})}; g.gJ=function(q,Z){Z=g.Ru(Z);return kR(q,Z)}; gy=function(q){return{f$:Ta(q,1),YJ:Ta(q,2),seekSource:Ta(q,3)}}; AZ=function(){Sv||(Sv=new li("yt.offline"));return Sv}; ui=function(q,Z,F,B){Uv.call(this,q,Z,F,B)}; jub=function(q,Z,F){if(!q)throw Error();if(arguments.length>2){var B=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(f,B);return q.apply(Z,f)}}return function(){return q.apply(Z,arguments)}}; IoZ=function(q){q.Z||(q.Z=(0,g.Le)());q.policy.PG&&(q.j=(0,g.Le)())}; wy=function(q,Z){for(var F,B;;){if(q.e$<262){DL(q);if(q.e$<262&&Z===0)return 1;if(q.e$===0)break}F=0;q.e$>=3&&(q.eC=(q.eC<4096)&&(q.Qd=2));if(q.bu>=3&&q.Qd<=q.bu){B=q.AZ+q.e$-3;F=Pl(q,q.AZ-1-q.C2,q.bu-3);q.e$-=q.bu-1;q.bu-=2;do++q.AZ<=B&&(q.eC=(q.eC<>>0;$v=Z>>>0}else yj(q)}; Ywy=function(q){if(!q)return"";if(/^about:(?:blank|srcdoc)$/.test(q))return window.origin||"";q.indexOf("blob:")===0&&(q=q.substring(5));q=q.split("#")[0].split("?")[0];q=q.toLowerCase();q.indexOf("//")==0&&(q=window.location.protocol+q);/^[\w\-]*:\/\//.test(q)||(q=window.location.href);var Z=q.substring(q.indexOf("://")+3),F=Z.indexOf("/");F!=-1&&(Z=Z.substring(0,F));F=q.substring(0,q.indexOf("://"));if(!F)throw Error("URI is missing protocol: "+q);if(F!=="http"&&F!=="https"&&F!=="chrome-extension"&& F!=="moz-extension"&&F!=="file"&&F!=="android-app"&&F!=="chrome-search"&&F!=="chrome-untrusted"&&F!=="chrome"&&F!=="app"&&F!=="devtools")throw Error("Invalid URI scheme in origin: "+F);q="";var B=Z.indexOf(":");if(B!=-1){var f=Z.substring(B+1);Z=Z.substring(0,B);if(F==="http"&&f!=="80"||F==="https"&&f!=="443")q=":"+f}return F+"://"+Z+q}; lx9=function(q,Z,F){function B(){var D=f.endTimeMs-Date.now();D<=F?f.wQ(0):setTimeout(B,Math.min(D,Z))} var f=this;this.endTimeMs=Date.now()+q;this.promise=new Promise(function(D){f.wQ=D}); B()}; lQ=function(q){if(document.createRange){var Z=document.createRange();Z&&(Z.selectNodeContents(q),q=window.getSelection())&&(q.removeAllRanges(),q.addRange(Z))}}; pe6=function(){var q={};var Z=q.g2s===void 0?!1:q.g2s;q=q.C6===void 0?!0:q.C6;if(g.ym("_lact",window)==null){var F=parseInt(g.oa("LACT"),10);F=isFinite(F)?Date.now()-Math.max(F,0):-1;g.O9("_lact",F,window);g.O9("_fact",F,window);F==-1&&LG();tN9(Z,q);new Hl(function(){Ov("mouse",100)})}}; edb=function(q){switch(typeof q){case "boolean":return ddb||(ddb=[0,void 0,!0]);case "number":return q>0?void 0:q===0?VND||(VND=[0,void 0]):[-q,void 0];case "string":return[0,q];case "object":return q}}; Qj=function(q){this.value=q}; T59=function(q){q.PH("active_view_measurable")}; MNy=function(q,Z,F){for(var B=q.X,f=q.D[0],D=q.D[1],G=q.D[2],n=q.D[3],b=q.D[4],N=q.D[5],S=q.D[6],l=q.D[7],U,u,P,W=0;W<64;)W<16?(B[W]=P=Z[F]<<24|Z[F+1]<<16|Z[F+2]<<8|Z[F+3],F+=4):(U=B[W-2],u=B[W-15],P=B[W-7]+B[W-16]+((U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),B[W]=P),U=l+xZ[W]+P+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&N^~b&S),u=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&D^f&G^D&G),l=U+u,n+=U,W++,W<16?(B[W]=P=Z[F]<<24|Z[F+1]<<16|Z[F+2]<<8|Z[F+3],F+=4):(U= B[W-2],u=B[W-15],P=B[W-7]+B[W-16]+((U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),B[W]=P),U=S+xZ[W]+P+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&b^~n&N),u=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&f^l&D^f&D),S=U+u,G+=U,W++,W<16?(B[W]=P=Z[F]<<24|Z[F+1]<<16|Z[F+2]<<8|Z[F+3],F+=4):(U=B[W-2],u=B[W-15],P=B[W-7]+B[W-16]+((U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),B[W]=P),U=N+xZ[W]+P+((G>>>6|G<<26)^(G>>>11|G<<21)^(G>>>25|G<<7))+(G&n^ ~G&b),u=((S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10))+(S&l^S&f^l&f),N=U+u,D+=U,W++,W<16?(B[W]=P=Z[F]<<24|Z[F+1]<<16|Z[F+2]<<8|Z[F+3],F+=4):(U=B[W-2],u=B[W-15],P=B[W-7]+B[W-16]+((U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),B[W]=P),U=b+xZ[W]+P+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&G^~D&n),u=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&S^N&l^S&l),P=l,l=n,n=P,P=S,S=G,G=P,P=N,N=D,D=P,b=f+U,f=U+u,W++;q.D[0]=f+q.D[0]|0;q.D[1]=D+q.D[1]|0;q.D[2]=G+q.D[2]|0;q.D[3]= n+q.D[3]|0;q.D[4]=b+q.D[4]|0;q.D[5]=N+q.D[5]|0;q.D[6]=S+q.D[6]|0;q.D[7]=l+q.D[7]|0}; Ax=function(q,Z){return Z===void 0||Z===null?q:Number(Z)}; ohZ=function(q,Z){this.request=q;this.cursor=Z}; zd6=function(q){function Z(){a:{if(vl)throw Error("");if(X1!==null){var B=X1.t7;if(B===void 0||B.K$!==F){var f=void 0,D=X1.IU;if(D&&(f=B!==void 0?B.Vq:X1.producers,f!==void 0&&f.K$===F)){X1.t7=f;f.pGl=F.version;break a}var G=F.xg,n;if(!(n=G===void 0||G.GX!==X1)){if(D){b:{n=X1;D=n.t7;if(D!==void 0){n=n.producers;do{if(n===G){D=!0;break b}if(n===D)break;n=n.Vq}while(n!==void 0)}D=!1}D=!D}n=D}n&&(D=Ev(X1),f={K$:F,GX:X1,Vq:f,Pk:G,pGl:F.version,OJ:void 0},X1.t7=f,B!==void 0?B.Vq=f:X1.producers=f,D&&qdG(F, f))}}}return F.value} var F=Object.create(ZJy);F.value=q;Z[nSX]=F;return[Z,function(B){return FT7(F,B)}, function(B){if(!B7Z())throw Error();FT7(F,B(F.value))}]}; KG=function(q,Z){if(q===Z)q=!0;else if(Array.isArray(q)&&Array.isArray(Z))q=g.YR(q,Z,KG);else if(g.yF(q)&&g.yF(Z))a:if(g.He(q).length!=g.He(Z).length)q=!1;else{for(var F in q)if(!KG(q[F],Z[F])){q=!1;break a}q=!0}else q=!1;return q}; DTB=function(q,Z,F){q=f78(q);Z=Z?g.Ru(Z):"";F=F||5;$Z()&&g.aA(q,Z,F)}; GUg=function(q){var Z=q.Oc||q.HG;return Z?q.snapshot.delay+Math.min(q.jW,(q.V-q.PG)/1E3)+Z:q.j$}; N7b=function(q,Z,F,B,f){g.J.call(this);var D=this,G=mG(function(){return new ii(D.GP)}); g.y(this,G);var n=mG(function(){return new kZ(G,D.GP)}); g.y(this,n);var b=mG(function(){return new jv}); g.y(this,b);var N=mG(function(){return new IA(q)}); g.y(this,N);var S=mG(function(){return new CG(G,n,D.GP)}); g.y(this,S);var l=mG(function(){return new hx}); g.y(this,l);this.nk=mG(function(){return new z8B(Z)}); g.y(this,this.nk);this.ub=mG(function(){return new RA(Z)}); g.y(this,this.ub);this.tZ=mG(function(){return new cl(f)}); g.y(this,this.tZ);this.rq=mG(function(){return new Jx(Z)}); g.y(this,this.rq);this.YS=mG(function(){return new YZ(Z)}); g.y(this,this.YS);this.kS=mG(function(){return new tx(Z)}); g.y(this,this.kS);this.Ep=mG(function(){return new pG(Z)}); g.y(this,this.Ep);this.GP=mG(function(){return new dy(Z)}); g.y(this,this.GP);var U=mG(function(){return new Fx(B)}); g.y(this,U);var u=mG(function(){return new Vj(D.GP)}); g.y(this,u);var P=mG(function(){return new ev(G,S,n,D.GP,u,null,null,null,null)}); g.y(this,P);this.yX=mG(function(){return new Tz(Z)}); g.y(this,this.yX);this.XE=mG(function(){return new CI(Z,l,D.GP)}); g.y(this,this.XE);var W=MX({XE:this.XE,GP:this.GP,Kw:u}),H=W.context,X=W.Fy;this.yO=W.yO;this.Zl=mG(function(){return new da(Z,D.XE,D.GP)}); g.y(this,this.Zl);this.ke=mG(function(){return new ok}); g.y(this,this.ke);this.nB=mG(function(){return new iD(D.Zl,Z,D.GP)}); g.y(this,this.nB);this.wU=mG(function(){return new qq(Z,b,D.nB,D.XE,D.yO,D.GP,X)}); g.y(this,this.wU);this.qE=mG(function(){return new ZT(D.GP)}); g.y(this,this.qE);this.Lz=new Fi(nh6,Bh,function(a,m,c,e){return vTD(n.get(),a,m,c,e)},N,S,n,u,this.GP,this.XE); g.y(this,this.Lz);this.wh=new fB(N,P,F,this.GP,q,this.XE,this.Zl,this.rq);g.y(this,this.wh);var Q=new DT(Z,this.wh,this.Zl,this.XE);this.Xw=mG(function(){return Q}); this.Th=Q;this.VX=new GQ(N,S,this.YS,this.Xw,H);g.y(this,this.VX);this.UZ=new zQ(this.GP,N,S,P,this.XE,this.VX,F,this.kS);g.y(this,this.UZ);this.YV=mG(function(){return new nB(U,n,u,D.GP,D.wU,D.Zl)}); g.y(this,this.YV);this.AC=mG(function(){return new bn}); g.y(this,this.AC);this.cf=new Nq(q,this.ub,this.GP);g.y(this,this.cf);this.Ih=new gI(q);g.y(this,this.Ih);this.y$=new Sa(q,this.Xw,H);g.y(this,this.y$);this.T8=new ln(q,this.YS,this.Zl,this.XE,H);g.y(this,this.T8);this.rj=new UU(q);g.y(this,this.rj);this.VM=new un(q);g.y(this,this.VM);this.A0=mG(function(){return new Ph(Z)}); g.y(this,this.A0);this.XN=new rI(q);g.y(this,this.XN);this.z8=mG(function(){return new wI}); g.y(this,this.z8);this.aS=mG(function(){return new Wh(D.Zl)}); g.y(this,this.aS);this.AV=mG(function(){return new dt(D.UZ,N,G)}); g.y(this,this.AV);this.UX=mG(function(){return new yS(D.GP,D.wU,D.rj,D.nB)}); g.y(this,this.UX);this.HX=mG(function(){return new LB(q,D.XN,D.rj,D.wU,D.nB,D.qE,D.kS,D.XE,D.Zl,D.ke,D.YS,D.rq,D.Ep,D.tZ,D.yX,D.GP,D.A0,H,X)}); g.y(this,this.HX);this.QA=mG(function(){return new bJ9(D.ub,D.Zl,D.wU,b,D.nk,F,D.XE)}); g.y(this,this.QA);this.ND={Yi:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.UZ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lz],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.wh],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.VX]]),yW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.YV],["SLOT_TYPE_FORECASTING",this.AC],["SLOT_TYPE_IN_PLAYER",this.AC],["SLOT_TYPE_PLAYER_BYTES",this.AC]]),CQ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Ih],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ih],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ih],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ih],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ih],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ih],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ih],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ih],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ih],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.y$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.T8],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.T8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rj],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.y$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VM],["TRIGGER_TYPE_AD_BREAK_STARTED",this.XN]]),n8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.z8],["SLOT_TYPE_FORECASTING",this.z8],["SLOT_TYPE_IN_PLAYER",this.z8],["SLOT_TYPE_PLAYER_BYTES",this.aS]]),k_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.AV],["SLOT_TYPE_FORECASTING",this.UX],["SLOT_TYPE_IN_PLAYER",this.QA],["SLOT_TYPE_PLAYER_BYTES", this.HX]])};this.listeners=[b.get()];this.eq={UZ:this.UZ,Zs:this.GP.get(),x$:this.tZ.get(),r_:this.Zl.get(),wh:this.wh,JH:G.get(),oR:null,F8:this.cf,Nd:b.get(),uw:this.XE.get()}}; ghD=function(q){g.Hh(q.D,function(Z){Z.K>1E5||++Z.K})}; TR=function(q,Z){var F=setTimeout(function(){q.S.resolve()},Z); q.addOnDisposeCallback(function(){return void clearTimeout(F)})}; SdX=function(q){var Z="true".toString(),F=[new OU];if(F.length===0)throw Error("");if(F.map(function(B){if(B instanceof OU)B=B.D;else throw Error("");return B}).every(function(B){return"data-loaded".indexOf(B)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); q.setAttribute("data-loaded",Z)}; rX=function(q,Z){Z<=q.status.status||(q.status={status:Z,error:null},Z===5&&q.FG.resolve())}; UTK=function(q,Z,F){var B=480;Z=g.E(Z);for(var f=Z.next();!f.done;f=Z.next()){f=f.value;var D=f.video.qualityOrdinal;D<=1080&&D>B&&l7X(q,f,F)===!0&&(B=D)}return B}; QB=function(q,Z){if(q=QS(Z)[q])return typeof q==="number"?q:q[q.length-1]}; u4Z=function(q,Z){var F=drk(Z);q=new Uint32Array(q.buffer);Z=q[0];var B=g.E(F);F=B.next().value;B=B.next().value;for(var f=1;f>>8|G<<24,G+=D|0,G^=n+38293,D=D<<3|D>>>29,D^=G,b=b>>>8|b<<24,b+=n|0,b^=N+38293,n=n<<3|n>>>29,n^=b;D=[D,G];q[f]^=D[0];f+110&&ak.shift()))}; sU=function(q,Z,F,B,f,D,G){ku(q,F*1E3,G);f<=0||F<=0||(Z==null?0:g.p(Z,16))||(Z==null?0:g.p(Z,32))||(bO(F,f*.25,B)&&(D&&!S7(q,"first_quartile")&&D("first"),q.xk("first_quartile")),bO(F,f*.5,B)&&(D&&!S7(q,"midpoint")&&D("second"),q.xk("midpoint")),bO(F,f*.75,B)&&(D&&!S7(q,"third_quartile")&&D("third"),q.xk("third_quartile")))}; fPk=function(q,Z){q.status="km";n4("drm_net_s",void 0,q.videoData.Dl);var F=new g.Ik(q.J.TY),B={context:g.Uw(F.config_||g.CB())};B.drmSystem=r0B[q.K.flavor];B.videoId=q.videoData.videoId;B.cpn=q.videoData.clientPlaybackNonce;B.sessionId=q.sessionId;B.licenseRequest=g.MR(Z.message);B.drmParams=q.videoData.drmParams;isNaN(q.cryptoPeriodIndex)||(B.isKeyRotated=!0,B.cryptoPeriodIndex=q.cryptoPeriodIndex);var f,D,G=!!((f=q.videoData.K)==null?0:(D=f.video)==null?0:D.isHdr());B.drmVideoFeature=G?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";q.J.experiments.A1().D.Q5(wAy)&&(B.context=g.GG(q.videoData));if(B.context&&B.context.client){if(f=q.J.D)B.context.client.deviceMake=f.cbrand,B.context.client.deviceModel=f.cmodel,B.context.client.browserName=f.cbr,B.context.client.browserVersion=f.cbrver,B.context.client.osName=f.cos,B.context.client.osVersion=f.cosver;q.J.experiments.A1().D.Q5(wAy)||(B.context.user=B.context.user||{},q.videoData.dU&&(B.context.user.credentialTransferTokens=[{token:q.videoData.dU,scope:"VIDEO"}]), q.videoData.G0&&(B.context.user.kidsParent={oauthToken:q.videoData.G0}));B.context.request=B.context.request||{};B.context.request.mdxEnvironment=q.videoData.mdxEnvironment||B.context.request.mdxEnvironment;g.Lg(q.K)&&(B.fairplayKeyId=g.MR(WTD(q.fairplayKeyId)));g.kx(q.J,g.he(q.videoData)).then(function(n){y0D(Z,B,F,n);q.status="rs"})}else q.error("drm.net",2,"t.r;ic.0")}; GU=function(q,Z){if(q.D){q.j&&(clearTimeout(q.j),q.j=null);var F=q.D;q.D=null;Z||q.dispatchEvent("ready");try{F.onreadystatechange=null}catch(B){}}}; LTZ=function(q,Z){return Z?!!q.D.get(Z):!1}; Je=function(q,Z){Z=Z===void 0?[]:Z;var F={GU:q.GU||"_",mX:q.mX||[],ma:q.ma|0,wr:q.wr,r9:q.r9||function(){}, iP:q.iP||function(D,G){return HJD(D,G,F.r9,F.wr)}},B=F.iP("51",F.mX.concat(Z)); Rk.call(this,{CwU:new OJB(B),errorCount:new lRG(B),eventCount:new QiB(B),Kn:new Fi9(B),Eb$:new xTX(B),vbn:new A09(B),vn:new vhZ(B),s1U:new XAk(B)},F.GU);var f=this;this.JZ={M9:function(){return f.options.mX.concat(f.G).sort(function(D,G){return D-G})}}; this.options=F;this.service=B;this.S=!q.iP;this.D=new Ehk(function(){return void f.service.vk()},F.ma); this.addOnDisposeCallback(function(){f.D.dispose();f.S&&f.service.dispose()}); g.ch(this.G=Z.slice())}; $TZ=function(){var q=Promise.resolve(void 0);Yu=function(){q.then(KTy)}}; pB=function(q,Z){q.Z&&(q.Z.resolve(Z),q.Mp.kO(),q.J.Nl()||TkK(q))&&(Z=q.Ey(),Z["native"]=""+ +q.uL,Z.otgt=""+(q.K+q.timestampOffset),q.Mp.iL("seekEnd",Z));te(q)}; VS=function(){g.J.call(this);this.D=new dI(5,null);g.y(this,this.D);this.K=new dI(15,null);g.y(this,this.K)}; a77=function(q){var Z=q.layoutId,F=q.CU;if(q.Vw){var B={};ea(q.uw,"slso",(B.ec=Z,B.is=F,B.ctp=TQ(Z),B))}}; g.zY=function(q,Z,F,B,f,D){f=f===void 0?!1:f;D=D===void 0?{}:D;Object.assign(D,Mq({cttAuthInfo:ot(Z)||void 0},Z));for(var G=g.E(B),n=G.next();!n.done;n=G.next()){n=n.value;var b=n.getAsJson();(g.q_(b)||!b.trackingParams&&!b.veType)&&g.bh(Error("Child VE logged with no data"));if(g.cz("no_client_ve_attach_unless_shown")){var N=AU(n,Z);if(b.veType&&!ZC.has(N)&&!FW.has(N)&&!f){if(!g.cz("il_attach_cache_limit")||BI.size<1E3){BI.set(N,[q,Z,F,n]);return}g.cz("il_attach_cache_limit")&&BI.size>1E3&&g.bh(new g.M2("IL Attach cache exceeded limit"))}n= AU(F,Z);BI.has(n)?fh(F,Z):FW.set(n,!0)}}B=B.filter(function(S){S.csn!==Z?(S.csn=Z,S=!0):S=!1;return S}); F={csn:Z,parentVe:F.getAsJson(),childVes:g.DC(B,function(S){return S.getAsJson()})}; Z==="UNDEFINED_CSN"?G1("visualElementAttached",D,F):q?z1("visualElementAttached",F,q,D):g.nh("visualElementAttached",F,D)}; Hs=function(q,Z,F,B,f,D,G){var n;q+8>>1=q&&(n=F(f,D,G));if(q+5>>2=q&&Z[z[26]]){var b=Igg(1,Z);Z=b[0]}return n}; mTG=function(q){var Z={c:q.oG,e:q.uy,mc:q.jL,me:q.tO};q.AY&&(Z.co={c:q.AY.Pd,a:q.AY.d5,s:q.AY.Sz});return Z}; Iq9=function(q,Z,F){if(q.bk){q.bk.YX();var B=q.bk.PG,f=B.G,D=f.D;if(B.j!=null){var G=B.S;q.mq=new g.e_(G.left-D.left,G.top-D.top)}D=q.TR()?Math.max(B.D,B.Z):B.D;G={};f.volume!==null&&(G.volume=f.volume);f=q.RQ(B);q.Wq=B;q.ys(D,Z,F,!1,G,f,B.V)}}; iJG=function(q){return new b6(q.type,q.D,q.range,"getEmptyStubBefore"+q.X,q.Uc,q.startTime,0,q.K,0)}; N_=function(q,Z,F){var B=new gV(0,0,0,0);this.time=q;this.volume=null;this.S=Z;this.D=B;this.K=F}; am=function(q){g.J.call(this);this.Mp=q;this.D=0;this.K=null;this.j=this.G=0;this.S={};this.J=this.Mp.C();this.Z=new g.im(this.pP,1E3,this);this.o_=gh(this,"html5_seek_timeout_delay_ms");this.zP=gh(this,"html5_long_rebuffer_threshold_ms");this.eU=gh(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.dU=gh(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.WG=gh(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.w2=gh(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.Dl=gh(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.uL=new SE(2E4);this.BG=gh(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.HG=gh(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Oc=gh(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.k$=gh(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.V=gh(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.PG=gh(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.I_=gh(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.vG=gh(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.X=gh(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.Jn=new SE(g.Ce(this.J.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.J.U("html5_report_slow_ads_as_error"));this.KB=new SE(g.Ce(this.J.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.J.U("html5_skip_slow_buffering_ad"));this.Gb=gh(this,"html5_slow_start_timeout_delay_ms");this.Y$=gh(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.y(this,this.Z)}; l6=function(q,Z,F){q.fz()?q.Uy():q.Ic(Z,F)}; g.Uh=function(q,Z){return Z.state===q.state&&Z.xb===q.xb}; kUK=function(q){var Z={},F=q.B.getVideoData(1);Z.ASR=u6(function(){var B;return(B=F==null?void 0:F.KU)!=null?B:null}); Z.EI=u6(function(){var B;return(B=F==null?void 0:F.eventId)!=null?B:null}); return Z}; g.C=function(q,Z){if(q)return q[Z.name]}; ji6=function(q){var Z=new Uint8Array(32),F=64-q.K;q.K>55&&(F+=64);var B=new Uint8Array(F);B[0]=128;for(var f=q.G*8,D=1;D<9;D++){var G=f%256;B[F-D]=G;f=(f-G)/256}q.update(B);for(F=0;F<8;F++)Z[F*4]=q.D[F]>>>24,Z[F*4+1]=q.D[F]>>>16&255,Z[F*4+2]=q.D[F]>>>8&255,Z[F*4+3]=q.D[F]&255;siX(q);return Z}; PI=function(q){this.jt=q}; I7B=function(q,Z,F){return Z.itag!==F.itag||Z.xtags!==F.xtags?!1:q.Np.d2||Z.lmt===F.lmt}; CEk=function(q){return{e1:rh(q,2),videoId:eQ(q,3),lG:Ta(q,4)}}; h8k=function(q){if(!Array.isArray(q))for(var Z=q.length-1;Z>=0;Z--)delete q[Z];q.length=0}; tx9=function(q,Z){Z=Z===void 0?"":Z;q.state=1;q.WG=(0,g.Le)();return R8G(Z||q.sourceUrl).then(function(F){if(!q.jU()){q.lw=F.status;F=F.responseText;var B=new DOMParser;F=wh(B,mly(F),"text/xml").getElementsByTagName("MPD")[0];q.uL=c0Z(WI(F,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(F.attributes){B=g.E(F.attributes);for(var f=B.next();!f.done;f=B.next())if(f=f.value,f.value==="http://youtube.com/yt/2012/10/10"){B=f.name.split(":")[1];break b}}B=""}q.j=B;q.isLive=q.uLf.width)Z-=f.width;else break;B++}return B===q.D.length?B-1:B}; i6=function(q,Z,F,B,f,D,G,n,b){S7(q,"impression")&&(D?(D=f-B,D=D>=-1&&D<=2):D=Math.abs(B-f)<=1,sU(q,Z,D?B:f,F,B,G,n&&D),D&&!b&&q.xk("complete"))}; kE=function(q){var Z=(0,g.Le)();q.SO=Z}; BJ7=function(q){var Z,F,B,f,D,G,n,b,N;return g.h(function(S){if(S.D==1){if(q.jU())return S.return(Promise.reject(Error(q.status.error||"disposed")));q.timeout.start();return g.R(S,q.FG,2)}Z=q.D.Mi();if(Z.isEnded())return q.uo("ended_in_finishTransition"),S.return(Promise.reject(Error(q.status.error||"")));if(!q.G||!sh(q.G))return q.uo("next_mse_closed"),S.return(Promise.reject(Error(q.status.error||"")));if(q.K.Ar()!==q.G)return q.uo("next_mse_mismatch"),S.return(Promise.reject(Error(q.status.error|| "")));F=jE(q);B=F.K0;f=F.B4;D=F.fC;q.D.OT(!1,!0);G=FWD(Z,B,D,!q.K.getVideoData().isAd());q.K.setMediaElement(G);(n=q.D.VW())&&q.K.S4(n.Ur,n.d_);q.V&&(q.policy.D||q.K.seekTo(q.K.getCurrentTime()+.001,{MW:!0,c6:3,V5:"gapless_pseudo"}),G.play());b=Z.Ey();b.cpn=q.D.getVideoData().clientPlaybackNonce;b.st=""+B;b.et=""+D;q.K.iL("gapless",b);q.D.iL("gaplessTo",{cpn:q.K.getVideoData().clientPlaybackNonce});N=q.D.getPlayerType()===q.K.getPlayerType();q.D.IM(f,!0,!1,N,q.K.getVideoData().clientPlaybackNonce); q.K.IM(q.K.getCurrentTime(),!0,!0,N,q.D.getVideoData().clientPlaybackNonce);q.K.Nt();g.iJ(function(){!q.K.getVideoData().PG&&q.K.getPlayerState().isOrWillBePlaying()&&q.K.Pv()}); rX(q,6);q.dispose();return S.return(Promise.resolve())})}; f58=function(q,Z){q.G(Z);q.K<100&&(q.K++,Z.next=q.D,q.D=Z)}; It=function(q,Z){Z=Z===void 0?200:Z;return q?Z===300?DH7:GWZ:Z===300?zfK:nxy}; fI7=function(q,Z,F,B){if(F==3&&Z.K&&!Z.G)for(;q&&q.Z;q=q.S)q.Z=!1;if(Z.D)Z.D.S=null,bcb(Z,F,B);else try{Z.G?Z.S.call(Z.context):bcb(Z,F,B)}catch(f){NJK.call(null,f)}f58(gx7,Z)}; SBB=function(q,Z,F){if(!(q.videoTrack.D.wR()&&q.audioTrack.D.wR()&&q.gU&&q.gU.K&&q.gU.D))return!1;if(F&&q.Np.isManifestless&&(q.videoTrack.j===-1||q.audioTrack.j===-1))return!0;var B=Ch(q.videoTrack,Z,F);if(isNaN(B))return!1;q=Ch(q.audioTrack,q.policy.w2?Z:B,F);return isNaN(q)?!1:!0}; IRg=function(q){var Z=l56(q.G,q.mediaElement);Z?Z.then(hd(function(){UHk(q)}),hd(function(F){if(!q.jU()){g.mM(F); var B="t.a";F instanceof DOMException&&(B+=";n."+F.name+";m."+F.message);q.publish("licenseerror","drm.unavailable",1,B,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(q.X$({mdkrdy:1}),q.PG=!0); q.Dl&&(Z=l56(q.Dl,q.mediaElement))}; Rt=function(q,Z){g.w.call(this,{Y:"div",W:"ytp-promotooltip-wrapper",T:[{Y:"div",W:"ytp-promotooltip-container",T:[{Y:"div",W:"ytp-promotooltip-content",T:[{Y:"div",W:"ytp-promotooltip-title",Ka:"{{title}}"},{Y:"div",W:"ytp-promotooltip-details",Ka:"{{details}}"}]},{Y:"div",W:"ytp-promotooltip-buttons",T:[{Y:"div",W:"ytp-promotooltip-dismiss-button",Ka:"{{dismissButtonText}}",L:{tabindex:"0"}},{Y:"div",W:"ytp-promotooltip-accept-button",Ka:"{{acceptButtonText}}",L:{tabindex:"0","aria-haspopup":"true"}}]}]}, {Y:"div",W:"ytp-promotooltip-pointer"}]});var F=this;this.tooltipRenderer=q;this.B=Z;this.D=this.sourceElement=null;this.title=this.cG("ytp-promotooltip-title");this.details=this.cG("ytp-promotooltip-details");this.acceptButton=this.cG("ytp-promotooltip-accept-button");this.dismissButton=this.cG("ytp-promotooltip-dismiss-button");this.K=this.G=!1;this.S=!0;this.V=this.Z=this.X=this.j=!1;this.JZ={Zg:function(B){F.Zg(B)}}; this.hZ(!1);q=this.tooltipRenderer.trackingParams||null;if(this.K=!!q)this.B.createServerVe(this.element,this,!0),this.B.setTrackingParams(this.element,q);this.N(Z,"onShowControls",this.vA);this.N(Z,"onHideControls",this.sR);this.N(Z,"resize",this.CB);this.N(this.acceptButton,"click",this.ue_);this.N(this.dismissButton,"click",this.hWP);this.N(document,"click",this.JL)}; YE=function(q,Z,F,B,f,D){var G=this;D=D===void 0?[]:D;this.loader=q;this.zP=Z;this.policy=F;this.Np=B;this.j=f;this.I_=D;this.logger=new g.Wz("dash/abr");this.D=wH;this.S=this.X=null;this.PG=-1;this.BG=!1;this.nextVideo=this.K=null;this.G=[];this.Oc=new Set;this.dU={};this.eU=new cI(1);this.V=0;this.HG=this.uL=this.Dl=!1;this.Y$=0;this.o_=!1;this.k$=new Set;this.WG=!1;this.JZ={jx:function(){Jd(G)}}; this.Z=new yp(this.policy,f,function(n,b){G.loader.iL(n,b)})}; Rm=function(){g.J.call(this);this.iN=!1;this.m6=null;this.V=this.X=!1;this.G=new g.xl;this.j=this.Mp=null;g.y(this,this.G)}; uY8=function(q){if(q==null)return q;var Z=typeof q;if(Z==="bigint")return String(RX(64,q));if(AM(q)){if(Z==="string")return td(q);if(Z==="number")return aC(q)}}; wpg=function(q){var Z=Math.max(q.videoTrack.G.S||0,q.audioTrack.G.S||0);PDy(q.videoTrack);PDy(q.audioTrack);q.policy.Z||rsK(q.Np);q.Np.isManifestless&&!q.policy.Z&&(q.D=!0,q.K=0);var F=q.loader;if(!F.policy.dU||F.policy.VO)F.currentTime=Z;q.G=!0;q.S=new l8;return q.S}; B7Z=function(){var q;return((q=X1)==null?void 0:q.Xh)!==!1}; VA=function(q){return ph(q)&&!g.dh(q)}; YS=function(q,Z){q.K||q.D!=2&&q.D!=3||WWX(q);q.G?q.G.next=Z:q.K=Z;q.G=Z}; ys8=function(q,Z){return g.em(q.api.C())&&eE(Z)&&Ec(Z)?g.kx(q.api.C(),g.he(q.api.getVideoData())).then(function(F){var B;F&&(B={Authorization:"Bearer "+F});return B},void 0):T1()}; LWB=function(){this.G=[];this.D=null;this.K={};this.S={}}; iPb=function(q){return Array.prototype.map.call(q,function(Z){Z=Z.toString(16);return Z.length>1?Z:"0"+Z}).join("")}; ZJ=function(q){M_.call(this,q.callback,q.slot,q.dR,q.wU,q.nB,q.XE,q.Zl,q.rq,q.tZ,q.b6,q.uJ,q.ag,q.vD,q.GP,q.Qz,q.Fy,q.context);var Z=this;this.adCpn="";this.lz=this.pu=0;this.bZ=oJ(function(){a77(q1(Z));Z.Gn.ql(Z.slot,Z.layout)}); this.Jk=oJ(function(){Hc7(q1(Z));Z.Fe!=="rendering_stop_requested"&&Z.uJ(Z);Z.layoutExitReason?Z.Gn.ZJ(Z.slot,Z.layout,Z.layoutExitReason):OcZ(Z)}); this.qE=q.qE;this.kS=q.kS;this.YS=q.YS;this.Ep=q.Ep;this.yX=q.yX;this.uJ=q.uJ;if(!this.wj()){of(this.GP.get(),"html5_disable_media_load_timeout")||(this.Cg=new g.im(function(){Z.n0("load_timeout",new JB("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); q=kt(this.GP.get());var F=j8(this.GP.get());q&&F&&(this.vy=new g.im(function(){var B=qc(Z.layout.clientMetadata,"metadata_type_preload_player_vars");B&&Z.kS.get().B.preloadVideoByPlayerVars(B,2,300)}))}}; iF6=function(q,Z,F){var B=String(g.W5.location.href);return B&&q&&Z?[Z,QFK(Ywy(B),q,F||null)].join(" "):null}; Xt=function(q,Z){if(!(q instanceof Z))throw Error("Expected instanceof "+xHk(Z)+" but got "+(q&&xHk(q.constructor)));return q}; Id=function(q,Z,F,B,f){this.ij=q;this.cB=Z;this.z$=F;this.I5=B;this.xpc=f;this.PS=q&&q.length}; g.Fn=function(q,Z){return(Z||document).querySelectorAll("."+q)}; As6=function(q){q=q.api.getPlayerStateObject();q=q.isCued()||q.isError()?"none":q.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=q}; vx8=function(q,Z){q.api.U("html5_enable_d6de4_cold_start_and_error")&&(Z.Sh={coldStartInfo:{clientState:q.S}})}; fp=function(q){return jT(q).then(function(Z){return Z?new BC(q,Z):null})}; XpD=function(q){g.DJ(q.K);var Z=q.B.C();Z.playerStyle==="gvn"||Z.K||Z.Oc||(Z=q.B.Ca(),q.K.N(Z,"contextmenu",q.N2r),q.K.N(Z,"touchstart",q.onTouchStart,null,!0),q.K.N(Z,"touchmove",q.Uo,null,!0),q.K.N(Z,"touchend",q.Uo,null,!0))}; GS=function(q,Z){this.breakDurationMs=q;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=Z||""}; g.y=function(q,Z){q.addOnDisposeCallback(g.sy(g.dN,Z))}; zS=function(q,Z){q.E_=Z||q.Mp.C().U("html5_allow_multiview_tile_preload")&&q.Mp.getVideoData().Dd;q.policy.k$||(q.isSuspended=!0,q.policy.CH&&(q.CJ.stop(),q.Hg.stop(),q.LB.stop()),q.vG.stop())}; np=function(q){return q.k$?q.k$-(q.V||q.timestampOffset):0}; g.mM=function(q,Z){var F=F===void 0?{}:F;F.name=g.oa("INNERTUBE_CONTEXT_CLIENT_NAME",1);F.version=g.oa("INNERTUBE_CONTEXT_CLIENT_VERSION");Z=Z===void 0?"ERROR":Z;var B=!1;Z=Z===void 0?"ERROR":Z;B=B===void 0?!1:B;if(q){q.hasOwnProperty("level")&&q.level&&(Z=q.level);if(g.cz("console_log_js_exceptions")){var f=[];f.push("Name: "+q.name);f.push("Message: "+q.message);q.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(q.params));q.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(q.args)); f.push("File name: "+q.fileName);f.push("Stacktrace: "+q.stack);window.console.log(f.join("\n"),q)}if(!(ExK>=5)){f=[];for(var D=g.E(KW6),G=D.next();!G.done;G=D.next()){G=G.value;try{G()&&f.push(G())}catch(W){}}f=[].concat(g.YB($H7),g.YB(f));var n=saK(q);D=n.message||"Unknown Error";G=n.name||"UnknownError";var b=n.stack||q.K||"Not available";if(b.startsWith(G+": "+D)){var N=b.split("\n");N.shift();b=N.join("\n")}N=n.lineNumber||"Not available";n=n.fileName||"Not available";var S=0;if(q.hasOwnProperty("args")&& q.args&&q.args.length)for(var l=0;l=500);l++);else if(q.hasOwnProperty("params")&&q.params){var U=q.params;if(typeof q.params==="object")for(l in U){if(U[l]){var u="params."+l,P=bP(U[l]);F[u]=P;S+=u.length+P.length;if(S>500)break}}else F.params=bP(U)}if(f.length)for(l=0;l=500);l++);navigator.vendor&&!F.hasOwnProperty("vendor")&&(F["device.vendor"]=navigator.vendor);F={message:D,name:G,lineNumber:N, fileName:n,stack:b,params:F,sampleWeight:1};l=Number(q.columnNumber);isNaN(l)||(F.lineNumber=F.lineNumber+":"+l);if(q.level==="IGNORED")q=0;else a:{q=N1();l=g.E(q.Jm);for(f=l.next();!f.done;f=l.next())if(f=f.value,F.message&&F.message.match(f.vC)){q=f.weight;break a}q=g.E(q.wV);for(l=q.next();!l.done;l=q.next())if(l=l.value,l.callback(F)){q=l.weight;break a}q=1}F.sampleWeight=q;q=g.E(mHg);for(l=q.next();!l.done;l=q.next())if(l=l.value,l.Ik[F.name])for(D=g.E(l.Ik[F.name]),f=D.next();!f.done;f=D.next())if(G= f.value,f=F.message.match(G.Jq)){F.params["params.error.original"]=f[0];D=G.groups;G={};for(N=0;N=2&&!Z.isEnded()&&Vl(Z.eW())&&q.Yk.tick("vfp");return(Z=q.mediaElement)&&!q.videoData.PG&&Z.getDuration()>0&&(Z.isPaused()&&Z.cY()>=2&&Vl(Z.eW())&&(dP("pbp",q.Yk.timerName)||q.Yk.tick("pbp"),!q.videoData.nz||q.hU||Z.isSeeking()||(q.hU=!0,q.publish("onPlaybackPauseAtStart"))),Z=Z.getCurrentTime(),en(q.HJ,Z))?(q.Pv(),!0):!1}; zT9=function(q){this.Ec=rE(q,500)}; nb8=function(q,Z,F,B){return Z&&F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?q.map(function(f){return f instanceof Nl?new B_(function(D){return xm(B,D)},F.adSlotMetadata.slotId):f}):q}; b57=function(q,Z){function F(B,f){Z(B,f)} if(q.K==null)return!1;q.D=g.s3(q.K,function(B){return B!=null&&B.Gz()}); q.D&&(q.D.init(F)?v9B(q.D.D):Z(q.D.D.Py(),q.D));return q.D!=null}; Ta=function(q,Z){if(TS(q,Z))return M1(q)}; cbD=function(q){var Z=[];return g.N9G(q,{query:void 0},function(F){Z.push(F.cursor.primaryKey);return g.gb6(F)}).then(function(){return Z})}; leb=function(q,Z){g.yA(Z,function(f){return f.depth>=0}); var F=lb(Z,function(f,D){return Math.max(f,D.depth)},-1),B=S2Z(F+2); B[0]=q;g.yn(Z,function(f){return B[f.depth+1]=f.D}); return B}; UBZ=function(){this.D=new Map}; g.LM=function(q,Z,F,B){g.J.call(this);var f=this;this.logger=new g.Wz("App");this.D7=this.gF=!1;this.ST={};this.yJ=[];this.Al=!1;this.hG=null;this.intentionalPlayback=!1;this.mV=!0;this.xJ=!1;this.OU=this.oD=this.K9=null;this.Ps=!0;this.mediaElement=this.Rh=null;this.X_=NaN;this.Wv=!1;this.HZ=this.Zj=this.EZ=this.screenLayer=this.playlist=null;this.r6=[];this.AA=0;this.JZ={I1:function(){return f.Kp}, adl:function(){return f.EZ}}; if(!F)throw Error("b/179532961");this.SZ=(Z==null?void 0:Z.args)||{};this.webPlayerContextConfig=F;Z=this.SZ;this.J=new oj(Z,F,F.canaryState,B,this);g.y(this,this.J);u57(this.J);F=PyG(this.J);this.J.Nl()&&this.CX("h5vcc",F);this.J.experiments.qp("jspb_serialize_with_worker")&&rhk();this.J.experiments.qp("gzip_gel_with_worker")&&wB8();this.J.K&&!WZk&&(window.addEventListener(qW?"touchstart":"click",yhK,{capture:!0,passive:!0}),WZk=!0);this.U("html5_onesie")&&(this.Dr=new Zs(this.J),g.y(this,this.Dr)); this.A1().D.Q5(LZZ)&&(this.Zv=new FX(H58(g.em(this.J),this.J.w2,this.J.experiments),new Bb(this.J.experiments),void 0,function(){return void f.i5()}),g.y(this,this.Zv)); this.If=eA(ph(this.J)&&!0,Z.enablesizebutton);this.F0=eA(!1,Z.player_wide);this.visibility=new fM;g.y(this,this.visibility);this.U("web_log_theater_mode_visibility")&&this.CL(eA(!1,Z.player_wide));this.gF=eA(!1,Z.external_list);this.events=new g.pO(this);g.y(this,this.events);this.U("start_client_gcf")&&(Ds(fg(),{zZ:G5,NO:O57()}),this.AE=fg().resolve(G5),Q3g(this.AE));this.aEc=new GJ;g.y(this,this.aEc);this.VR=new xBD;F=new zJ;this.lL=new g.nM(this,F);g.y(this,this.lL);this.template=new bs(this); g.y(this,this.template);this.appState=1;this.TA=Ah9(this);g.y(this,F);F={};this.Cs=(F.internalvideodatachange=this.gJ,F.playbackready=this.AZG,F.playbackstarted=this.Yyp,F.statechange=this.kba,F);this.mI=new Kw(this.lL);this.T3=vbK(this);F=this.J.j;!1!==F&&this.CX("badps",{hbp:F,hostname:window.location.hostname,ps:this.J.playerStyle});this.Yk=new gQ(this.J,this.T3);this.lL.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||zU(this.T3))&&XBK(this);F=10;g.em(this.J)&&(F=3);CV(this.J)&& (F=g.Ce(this.J.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Kp=new g.Sl(this.lL,F);F=EbB(this);this.Kp.o9(F);KZK(this);F={};this.eJ=(F.airplayactivechange=this.jcn,F.airplayavailabilitychange=this.tnU,F.beginseeking=this.Nq_,F.sabrCaptionsDataLoaded=this.IJU,F.endseeking=this.Opp,F.internalAbandon=this.y0E,F.internalaudioformatchange=this.Wsr,F.internalvideodatachange=this.ESs,F.internalvideoformatchange=this.J0_,F.liveviewshift=this.gSc,F.playbackstalledatstart=this.TqG,F.progresssync= this.LsE,F.onAbnormalityDetected=this.drF,F.onSnackbarMessage=this.FsE,F.onLoadProgress=this.oSE,F.SEEK_COMPLETE=this.e7P,F.SEEK_TO=this.qp_,F.onVideoProgress=this.MCP,F.onLoadedMetadata=this.h7$,F.onAutoplayBlocked=this.Xes,F.onPlaybackPauseAtStart=this.xra,F.playbackready=this.Vnp,F.statechange=this.SJ,F.newelementrequired=this.K2,F.heartbeatparams=this.lJ$,F.videoelementevent=this.vSa,F.drmoutputrestricted=this.fJU,F.signatureexpired=this.Cba,F.nonfatalerror=this.bpF,F.reloadplayer=this.aJc,F); this.tD=new g.pO(this);g.y(this,this.tD);this.Wa=new VS;g.y(this,this.Wa);this.c7=this.A_=-1;this.dK=new g.im(this.template.resize,16,this.template);g.y(this,this.dK);this.h0=new FF(this.lL,this.J,this.Dv(),this);this.jg=new ls(this);g.y(this,this.jg);this.Wt=new U7(this);g.y(this,this.Wt);kOy(this.J.D.c);this.events.N(this.lL,g.UK("appapi"),this.cZr);this.events.N(this.lL,g.s2("appapi"),this.Qhc);this.events.N(this.lL,g.UK("appprogressboundary"),this.zrE);this.events.N(this.lL,g.s2("applooprange"), this.Oj);this.events.N(this.lL,"presentingplayerstatechange",this.Qc);this.events.N(this.lL,"resize",this.Uic);this.template.R_(us(document,q));this.events.N(this.lL,"offlineslatestatechange",this.R7U);this.events.N(this.lL,"sabrCaptionsTrackChanged",this.ga$);this.events.N(this.lL,"sabrCaptionsBufferedRangesUpdated",this.yPs);this.T3.B.C().cH&&Pb(this.T3,"offline");this.J.o_&&g.Nx("ux",g.rQ);q=g.Ce(this.J.experiments,"html5_defer_fetch_att_ms");this.jp=new g.im(this.Tj_,q,this);g.y(this,this.jp); this.AP().hP()&&(g.wQ()&&this.AP().Y$.push("mdx"),Wb(this));this.Yk.tick("fs");$BK(this);this.J.o_&&Pb(this.T3,"ux",!0);g.FQ(this.T3.B.C())&&Pb(this.T3,"embed");this.U("web_player_sentinel_is_uniplayer")||g.bh(new g.M2("Player experiment flags missing","web_player_sentinel_is_uniplayer"));q=this.U("web_player_sentinel_yt_experiments_sync");F=g.cz("web_player_sentinel_yt_experiments_sync");q!==F&&g.bh(new g.M2("b/195699950",{yt:q,player:F}));this.al=aeD(this);if(q=g.Ce(this.J.experiments,"html5_block_pip_safari_delay"))this.wZ= new g.im(this.Lu,q,this),g.y(this,this.wZ);yM=this.J.Hg;this.lL.publish("applicationInitialized")}; i5D=function(q,Z,F,B,f,D,G,n){return Z===null?new K("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:Z,TopBannerImageTextIconButtonedLayoutViewModel:B}):[mBZ(q,Z,G,D,function(b){var N=b.slotId;b=n(b);var S=B.adLayoutLoggingData,l=new zX([new O8(B),new QA(f)]);N=Bs(F.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N);var U={layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bL:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", ud:new Map,layoutExitNormalTriggers:[new g4(F.D,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:l,Xe:b(U),adLayoutLoggingData:S}})]}; O7=function(){m7.call(this);this.S=new aP;this.Oc=this.PG=this.Y$=0;this.V=-1;this.Jn=new aP;this.Z=new aP;this.D=new $V;this.j=this.G=-1;this.Dl=new aP;this.I_=2E3;this.dU=new Hb;this.eU=new Hb;this.o_=new Hb}; NN=function(q,Z,F){q=k2K(q,Z===void 0?0:Z,F===void 0?-1:F);return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)}; xA=function(q,Z,F){if(q.md(F)&&(F=F.getVideoData(),!QM(q))){q=q.h0;for(var B=g.E(q.K),f=B.next();!f.done;f=B.next())if(f=f.value,F.fp===f.fp){Z+=f.Rc/1E3;break}B=Z;q=g.E(q.K);for(f=q.next();!f.done;f=q.next()){f=f.value;if(F.fp===f.fp)break;var D=f.Rc/1E3;if(D=0&&f0&&q.length;)F.push(q.shift()),Z--;q.length&&F.push(q.join(":"));return F}; JhX=function(q){return q.K.some(function(Z){return Z.D.isToggled()})||q.noneOfTheAbove.button.isToggled()}; jl=function(q){var Z=!!q.Rh&&q.api.getPresentingPlayerType()!==2,F=q.clipStart,B=q.clipEnd,f=!0,D=!0;Z&&q.Rh?(F=q.Rh.startTimeMs/1E3,B=q.Rh.endTimeMs/1E3):(f=F>q.S.K,D=q.S.D>0&&BZ+.02&&q.iL("abh",{bh:Z,bhtls:F}),Z=Math.max(Z,F)));return Z}; V$9=function(q){var Z=q.B.Ca().ZI();q=q.B.dA(!0,!0);return Z.height-(q.height+q.top)}; eTD=function(q){q=Zd(q);var Z=[];g.Hh(q,function(F,B){B in Object.prototype||typeof F!="undefined"&&Z.push([B,":",F].join(""))}); return Z}; F8=function(q){if(q.D==null)throw Error("Storage mechanism: Storage unavailable");q.isAvailable()||Zm(Error("Storage mechanism: Storage unavailable"))}; QGD=function(q){if(!q.api.C().Tb){var Z=q.api.getVideoData(),F=new g.BL("Suscribirse",null,"Suscrito/a",null,!0,!1,Z.Fr,Z.subscribed,"channel_avatar",null,q.api,!0);q.api.createServerVe(F.element,q);var B;q.api.setTrackingParams(F.element,((B=Z.subscribeButtonRenderer)==null?void 0:B.trackingParams)||null);q.N(F.element,"click",function(){q.api.logClick(F.element)}); q.subscribeButton=F;g.y(q,q.subscribeButton);q.subscribeButton.R_(q.Z);q.subscribeButton.hide();var f=new iX(q.api);q.D=f;g.y(q,f);f.R_(q.Z);f.hide();q.N(q.api,"SUBSCRIBE",function(){Z.Sr&&(f.show(),q.api.logVisibility(f.element,!0))}); q.N(q.api,"UNSUBSCRIBE",function(){Z.Sr&&(f.hide(),q.api.logVisibility(f.element,!1),T9K(f,!1))})}}; HI=function(q){return new g.at(function(Z,F){F(q)})}; Dm=function(q){q.jU()||(q.PG=!0,q.X$({onmdkrdy:1}),fS(q))}; GN=function(q){this.Ec=rE(q)}; q3=function(){zN===void 0&&(zN=M$D());return zN}; g.nS=function(q,Z){return uD8[q]=Z}; YBy=function(q,Z){return!!Z&&q.getAvailablePlaybackRates()[q.getAvailablePlaybackRates().length-1]<=2}; lu=function(q,Z){if(Z.jU()||q.jU())q.policy.Uf||(q.policy.Z?aF(q.loader):q.loader.pP());else{if(q.policy.S&&Z.isComplete()&&Z instanceof QJ){var F=q.loader,B=F.iL,f,D,G=Object.assign(Z.nP.pU(),{rst:Z.state,strm:Z.xhr.Ay(),d:(f=Z.nP.k$)==null?void 0:f.D6(),cncl:Z.xhr&&Z.Up.Z?1:0,rqb:Z.GB,cwt:Z.Up.S,swt:(D=Z.Nh)==null?void 0:D.hB});f=Object.assign(oXD(Z.info),G);B.call(F,"rqs",f)}if(Z.isComplete()&&Z.eM()&&Z instanceof QJ)q.policy.bb?Z.Nm()?(Z.dispose(),q.D.length===0?q.loader.pP():(q=q.D[0],q instanceof QJ&&q.yR()&&q.rI())):Z.WY()&&q.loader.handleError(Z.Hf(),Z.qb()):(Z.dispose(),q.loader.pP());else{if(Z.WS())Z instanceof QJ&&qqD(q.timing,Z),Zu7(q),bu(q);else if(Z.WY())F=q.Mp.eb(),Z instanceof QJ&&FN8(Z.info)&&F&&q.loader.UJ(F),Z instanceof xx?q.D.pop():(F=1,Z.canRetry()&&NO(q.loader)&&(QEK(q,Z),F=0),q.loader.handleError(Z.Hf(),Z.qb(),F));else{if(q.loader.isSuspended&&!Z.isComplete())return;bu(q)}Z.jU()||Z instanceof xx||(Z.isComplete()?F=B_G(Z,q.policy,q.G):(F=fi8(Z,q.policy,q.G),F===1&&(q.I_=!0)), F!==0&&(B=new gW(1,Z.info.m6),B.GY=F===2,D68(q,B)));q.policy.X3&&!Z.isComplete()?Ss(q.loader):q.loader.pP()}}}; nXG=function(q,Z){q.X=Z;var F=q.k$;q.B.U("delhi_modern_web_player_icons")?q.K.cG("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(Z+") translate(-22,-12)")):Z&&(F+=zP6(GBZ,zVy,Z));q.Dl.setAttribute("d",F)}; N_D=function(q,Z,F,B){if(q.policy.Z)!B||!q.D&&q.policy.Gb||g.iJ(function(){UR(q)}); else{if(q.isSeeking()&&q.targetTime){var f=bu9(q,Z,F);if(f!==-1){q.videoTrack.Z=!1;q.audioTrack.Z=!1;q.D=!0;q.K=0;g.iJ(function(){q.loader.iL("seekreason",{reason:"behindMinSq",tgt:f});uu(q,f)}); return}}F?q.videoTrack.zP=!1:q.audioTrack.zP=!1;var D=!q.D;Ch(q.videoTrack,q.targetTime)>=0&&Ch(q.audioTrack,q.targetTime)>=0&&D?((q.videoTrack.Z||q.audioTrack.Z)&&q.loader.iL("iterativeSeeking",{status:"done",count:q.seekCount}),q.videoTrack.Z=!1,q.audioTrack.Z=!1):B&&g.iJ(function(){if(q.D||!q.policy.Gb)UR(q);else{var G=Z.startTime,n=Z.duration;if(!q.policy.Z){var b=F?q.videoTrack.Z:q.audioTrack.Z,N=q.videoTrack.j!==-1&&q.audioTrack.j!==-1,S=q.targetTime>=G&&q.targetTime0&&(D.B1?B=!0:Z=!0);B=!(Z&&B)}if(B)return!1}q.We("ofr");q.FG.resolve(q.playerResponse);if(!q.iS){var b;(b=q.lV)==null||b.start();q.tQ.start()}return q.N9= !0}; us=function(q,Z){return typeof Z==="string"?q.getElementById(Z):Z}; WN6=function(q,Z){q.botguardData=Z.playerAttestationRenderer.botguardData;Z=Z.playerAttestationRenderer.challenge;Z!=null&&(q.Z3=Z)}; zw=function(q){this.Ec=rE(q)}; LNG=function(q,Z,F,B,f,D,G){return[yy8(q,D,B,function(n){var b=n.slotId;n=G(n);b=Bs(Z.K.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",b);var N={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bL:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ud:new Map,layoutExitNormalTriggers:[new g4(Z.D,D)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:new zX([new av(f), new QA(F)]),Xe:n(N),adLayoutLoggingData:f.adLayoutLoggingData}})]}; kL=function(q,Z,F,B,f){B=B===void 0?Infinity:B;f=f===void 0?0:f;var D=q.Vs();F=F||D.getPlayerType();(D=m3(q,F,Z,!0))||(D=iu(q,F,Z,!0));Z=q.Dv();F===2&&Z&&(F=D.getVideoData(),Z.Bz(F.clientPlaybackNonce,F.lx||"",F.breakType||0,F.yd,F.videoId||""));q.uM(D,B,0,f)}; sR=function(q){return q.split(",").map(function(Z){return lX(Z)})}; g.F1=function(q,Z){Z=VR(Z);Z!==void 0&&(q.href=Z)}; GO=function(q,Z,F){q.D==0&&(q===F&&(Z=3,F=new TypeError("Promise cannot resolve to itself")),q.D=1,p_X(F,q.W3G,q.Xfr,q)||(q.X=F,q.D=Z,q.S=null,WWX(q),Z!=3||F instanceof X8||HuZ(q,F)))}; OuX=function(q,Z,F){if(F!==0){a:if(Z=Z.info,F=F===2,Z.D)Z=null;else{var B=Z.TP[0];if(Z.range)var f=js(Z.range.start,Math.min(4096,Z.S));else{if(Z.K&&Z.K.indexOf("/range/")>=0||Z.m6.yL("defrag")==="1"||Z.m6.yL("otf")==="1"){Z=null;break a}f=js(0,4096)}f=new Iv([new b6(5,B.D,f,"createProbeRequestInfo"+B.X,B.Uc)],Z.K);f.GY=F;f.D=Z.D;Z=f}Z&&CS(q,Z)}}; hJ=function(q,Z,F,B,f,D){oP.call(this,q,Z,F,B);this.wU=f;this.G=D;this.Z=qc(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; Qdb=function(q){var Z=q.api.getVideoData();q.button.hZ(Z.W4)}; x6K=function(q,Z){var F=Z.getAudioTrack();return F.id!=="und"?g.uh(q,function(B){var f;return((f=B.fB)==null?void 0:f.name)===F.getLanguageInfo().name}):q}; Yw=function(q,Z){this.S=!1;this.G=q;this.PG=Z;this.Z=0}; AyD=function(q){return g.s3(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Z){return"on"+Z.toLowerCase()in q})}; Rv=function(q,Z){var F;return((F=q.D.get(Z))==null?void 0:vX9(F.buffer))||0}; EXD=function(q,Z){var F=0,B=!1;Z=g.E(Z);for(var f=Z.next();!f.done;f=Z.next()){f=f.value;if(g.C(f,XRb)){f=g.C(f,XRb);var D={startTime:NaN,title:null,onActiveCommand:void 0},G=f.title;D.title=G?g.HD(G):"";G=f.timeRangeStartMillis;G!=null&&(D.startTime=G);D.onActiveCommand=f.onActiveCommand;f=D;F===0&&f.startTime!==0&&(q.D[F].startTime=0,q.D[F].title="",q.D[F].onActiveCommand=f.onActiveCommand,F++,B=!0);q.D.length<=F&&(D=new uQ,q.D.push(D),g.y(q,D),D.R_(q.vG,q.vG.children.length));q.D[F].startTime= f.startTime;q.D[F].title=f.title?f.title:"";q.D[F].onActiveCommand=f.onActiveCommand;q.D[F].index=B?F-1:F}F++}for(;F>>=1,F<<=1;while(--Z>0);return F>>>1}; BU=function(q,Z){var F=new Zc(q,Z),B=["Esta configuraci\u00f3n solo se aplica al video actual. Ve a "," para ajustar la visibilidad de los subt\u00edtulos en todos los videos."],f;g.LO(q.C())&&(f={Y:"div",W:"ytp-panel-footer-content",T:[{Y:"span",Ka:B[0]},{Y:"a",W:"ytp-panel-footer-content-link",Ka:"Configuraci\u00f3n",L:{href:"/account_playback"}},{Y:"span",Ka:B[1]}]});g.qB.call(this,"Subt\u00edtulos",g.Wf.SUBTITLES,q,Z,"Opciones",function(){g.Sq(Z,F)},f); var D=this;this.B=q;this.Pg=Z;this.tracks={};this.Z=new g.im(function(){KN7(D,!1)},3E3); g.y(this,this.Z);this.countLabel=new g.w({Y:"div",T:[{Y:"span",Ka:"Subt\u00edtulos"},{Y:"span",W:"ytp-menuitem-label-count",Ka:"{{content}}"}]});g.y(this,this.countLabel);g.Ab(this,this.countLabel);q.U("web_settings_menu_icons")&&this.setIcon($6D(q.U("delhi_modern_web_player_icons")));this.D=new F9(q,Z);g.y(this,this.D);this.D.subscribe("select",this.Dp,this);this.G=F;g.y(this,this.G);this.G.subscribe("settingChange",this.xV,this);Z.subscribe("show",this.L0n,this);this.N(q,"videodatachange",this.ys); this.N(q,"onApiChange",this.ys);this.N(q,"onCaptionsTrackListChanged",this.ys);this.N(q,"captionschanged",this.ys);q.createClientVe(this.element,this,127300);this.ys()}; Ng=function(q,Z){var F=F===void 0?0:F;var B=B===void 0?!0:B;pK(Z,function(f,D){B&&f===void 0||q.add(D,f,F)}); return q}; fj=function(q,Z,F){Z=Z===void 0?"":Z;F=F===void 0?"":F;q=new g.O_(q,!0);q.set("alr","yes");F&&(F=p7(33,decodeURIComponent(F)),q[z[5]](Z,encodeURIComponent(F)));return q}; aik=function(q,Z,F){return Dc(Ge(q,Z),Z,F)}; ze=function(q,Z){if(Z){if(q==="fullwidth")return Infinity;if(q==="fullheight")return 0}return q&&(Z=q.match(m6K))&&(q=Number(Z[2]),Z=Number(Z[1]),!isNaN(q)&&!isNaN(Z)&&q>0)?Z/q:NaN}; g.pO=function(){t8.apply(this,arguments)}; iuZ=function(q){var Z=QB("aft",q);if(Z)return Z;Z=g.oa((q||"")+"TIMING_AFT_KEYS",["ol"]);for(var F=Z.length,B=0;B=602)}; TJ=function(q){var Z=q.g2&&q.g2.XF();if(q.policy.Aj){if((q=q.V)==null)q=void 0;else{var F;q=(F=q.S)==null?void 0:F.info}return q||null}return Z}; Yq9=function(q){var Z;if((Z=q.api.getVideoData())==null||!Lj(Z)){Z=cp(q);HU(q,Z,q.Dl,Math.max(Z.K,q.Dl),"HOVER_PROGRESS");for(var F=Ud(q,Z.D*q.Dl,!0),B=Ud(q,Z.S,!0),f=F;f<=B;f++)g.hK(q.D[f].S,"ytp-hover-progress-light",Z.K>q.Dl);g.hK(q.oa,"ytp-scrubber-button-hover",F===B&&q.D.length>1);if(q.api.U("web_player_heat_map_played_bar")){var D;(D=q.G[0])!=null&&D.D.setAttribute("width",(Z.K*100).toFixed(2)+"%")}}}; pR7=function(q,Z){Z=Z===void 0?t4k:Z;if(!OD){var F;q=(F=q.navigator)==null?void 0:F.userAgentData;if(!q||typeof q.getHighEntropyValues!=="function"||q.brands&&typeof q.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));OXB((q.brands||[]).map(function(f){var D=new h0;D=QO(D,1,f.brand);return QO(D,2,f.version)})); typeof q.mobile==="boolean"&&Rh(CJ,2,Z5(q.mobile));OD=q.getHighEntropyValues(Z)}var B=new Set(Z);return OD.then(function(f){var D=CJ.clone();B.has("platform")&&QO(D,3,f.platform);B.has("platformVersion")&&QO(D,4,f.platformVersion);B.has("architecture")&&QO(D,5,f.architecture);B.has("model")&&QO(D,6,f.model);B.has("uaFullVersion")&&QO(D,7,f.uaFullVersion);return D.D6()}).catch(function(){return CJ.D6()})}; xa=function(q){q.V.textContent=q.D.toFixed(2)+"x";var Z=q.D>2&&q.B.U("enable_web_premium_varispeed");q.uL.classList.toggle("ytp-speedslider-premium-badge",Z);q.uL.setAttribute("aria-label",Z?"Premium":"")}; g.X9=function(q,Z,F,B,f,D){g.AA.call(this,q);this.videoId=F;this.zr=f;this.eventId=D;this.j={};this.D=null;q=B||g.DA(Z).hl||"";q=q.split("_").join("-");this.G=vU(Z,{hl:q})}; d1=function(q,Z){for(var F in q)if(Z.call(void 0,q[F],F,q))return F}; d6X=function(q){return jT(q).then(function(Z){return Z?new ohZ(q,Z):null})}; T_G=function(q,Z){Z=Z===void 0?{}:Z;var F=iw(q),B=g.oa("INNERTUBE_CLIENT_NAME"),f=g.cz("web_ajax_ignore_global_headers_if_set"),D;for(D in V4y){var G=g.oa(V4y[D]),n=D==="X-Goog-AuthUser"||D==="X-Goog-PageId";D!=="X-Goog-Visitor-Id"||G||(G=g.oa("VISITOR_DATA"));var b;if(!(b=!G)){if(!(b=F||(g.Mg(q)?!1:!0))){b=q;var N;if(N=g.cz("add_auth_headers_to_remarketing_google_dot_com_ping")&&D==="Authorization"&&(B==="TVHTML5"||B==="TVHTML5_UNPLUGGED"||B==="TVHTML5_SIMPLY")&&eV6(b))b=ED(b)||"",b=b.split("/"), b="/"+(b.length>1?b[1]:""),N=b==="/pagead";b=N?!0:!1}b=!b}b||f&&Z[D]!==void 0||B==="TVHTML5_UNPLUGGED"&&n||(Z[D]=G)}"X-Goog-EOM-Visitor-Id"in Z&&"X-Goog-Visitor-Id"in Z&&delete Z["X-Goog-Visitor-Id"];if(F||!g.Mg(q))Z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(F||!g.Mg(q)){try{var S=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}S&&(Z["X-YouTube-Time-Zone"]=S)}document.location.hostname.endsWith("youtubeeducation.com")||!F&&g.Mg(q)||(Z["X-YouTube-Ad-Signals"]= l5(Kj()));return Z}; M4b=function(q){q=q.api.C();return g.SQ(q)&&q.K}; g.ap=function(){$a.instance||($a.instance=new $a);return $a.instance}; fg=function(){mH||(mH=new ozk);return mH}; YdK=function(q){var Z=q.uL;isFinite(Z)&&(iU(q)?q.refresh():(Z=Math.max(0,q.WG+Z-(0,g.Le)()),q.Z||(q.Z=new g.im(q.refresh,Z,q),g.y(q,q.Z)),q.Z.start(Z)))}; P5=function(){return lm("Safari")&&!(Uj()||(gE()?0:lm("Coast"))||N5()||(gE()?0:lm("Edge"))||wDy()||(gE()?S8("Opera"):lm("OPR"))||um()||lm("Silk")||lm("Android"))}; TJZ=function(q){g.Hh(q.D,function(Z){Z.D>1E5||++Z.D})}; sD=function(){g.J.call(this);var q=this;this.D=new Map;this.K=qPy(function(Z){if(Z.target&&(Z=q.D.get(Z.target))&&Z)for(var F=0;F0||D)&&typeof f==="string"&&(f=lX(f),g.gN(f,D),f=Z.postBodyFormat&& Z.postBodyFormat==="JSON"?JSON.stringify(f):g.Ru(f));D=f||D&&!g.q_(D);!zmX&&D&&Z.method!=="POST"&&(zmX=!0,g.vf(Error("AJAX request with postData should use POST")));return f}; LbK=function(q,Z,F,B){var f=q.kind;B=B?!1:!q.hideCueRangeMarker;switch(f){case "AD_PLACEMENT_KIND_START":return B={JS:new jA(-0x8000000000000,-0x8000000000000),aM:B},F!=null&&(B.aG=new jA(-0x8000000000000,-0x8000000000000)),B;case "AD_PLACEMENT_KIND_END":return B={JS:new jA(0x7ffffffffffff,0x8000000000000),aM:B},F!=null&&(B.aG=new jA(Math.max(0,Z-F),0x8000000000000)),B;case "AD_PLACEMENT_KIND_MILLISECONDS":f=q.adTimeOffset;f.offsetStartMilliseconds||Yp("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); f.offsetEndMilliseconds||Yp("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");q=Number(f.offsetStartMilliseconds);f=Number(f.offsetEndMilliseconds);f===-1&&(f=Z);if(Number.isNaN(q)||Number.isNaN(f)||q>f)return new K("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:q,offsetEndMs:f},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",f===Z&&q-500<=f);B={JS:new jA(q,f),aM:B};if(F!=null){q=Math.max(0,q-F);if(q===f)return B;B.aG=new jA(q,f)}return B; default:return new K("AdPlacementKind not supported in convertToRange.",{kind:f,adPlacementConfig:q})}}; nzZ=function(q){return new Ij(q)}; tA=function(q){var Z=Ib(q.D,pd,1);Z||(Z=new pd,tW(q,Z));q=Z;Z=Ib(q,JA,11);Z||(Z=new JA,Ya(q,JA,11,Z));return Z}; SPk=function(q,Z,F,B,f){var D;if((D=q.playerOverlay)==null||!D.instreamSurveyAdRenderer)return function(){return[]}; if(!TSK(q))return function(){return new K("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:q})}; var G=q.playerOverlay.instreamSurveyAdRenderer,n=pj(G);return n<=0?function(){return new K("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:G})}:function(b,N){var S=b3k(b,F,B,function(l){var U=l.slotId; l=N(l);var u=xV(G);U=Bs(f.K.get(),"LAYOUT_TYPE_SURVEY",U);var P={layoutId:U,layoutType:"LAYOUT_TYPE_SURVEY",bL:"core"},W=new Qs(f.D,B),H=new Xi(f.D,U),X=new dm(f.D,U),Q=new Np9(f.D);return{layoutId:U,layoutType:"LAYOUT_TYPE_SURVEY",ud:new Map,layoutExitNormalTriggers:[W,Q],layoutExitSkipTriggers:[H],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[X],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:new zX([new VO(G),new QA(Z),new eI(n/1E3),new Te(u)]),Xe:l(P),adLayoutLoggingData:G.adLayoutLoggingData}}); b=gzk(q,F,S.slotId,B,f,b,N);return b instanceof K?b:[S].concat(g.YB(b))}}; UgB=function(q,Z,F){lA7&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+q.constructor.name+"] '"+q.state+"' to '"+Z+"'"),console.log("with message: ",F),console.groupEnd())}; Zd=function(q){var Z={},F=g.MA(q.D,function(B){return B.D}); g.Hh(F,function(B,f){B=q.S[f]!==void 0?String(q.S[f]):B.D&&B.K!==null?String(B.K):"";B.length>0&&(Z[f]=B)},q); return Z}; o4=function(q){var Z;return((Z=q.audio)==null?void 0:Z.D)===!0}; uxG=function(q){return new gV(q.top,q.right,q.bottom,q.left)}; VB=function(){var q=ug(Pw8);if(!q.D){if(!aa)throw Error("Context has not been set and window is undefined.");q.D=ug(qQ)}return q.D}; WoD=function(q,Z,F){var B=0;if(Z.info.D.info.cL()&&!rg6(Z))return 0;if(q.Y$&&!q.B1()){var f=0;F&&g.Wv(Z.info.D.info)?f=F-q.S:Z.info.D.info.cL()&&(f=q.V);var D=Z.info.Uc;F=ZS(Z,q.policy.G0);var G=q.Y$;var n=G.o_;G=G.V;var b=Math.abs(G-f)>.02;if((D===n||D>n&&D>q.o_)&&b){B=Math.max(.95,Math.min(1.05,(F-(G-f))/F));if(g.Wv(Z.info.D.info))wvD(g.Xd(Z),B);else if(Z.info.D.info.cL()&&(D=f-G,!g.Wv(Z.info.D.info)&&(Z.info.D.info.cL(),B=new EW(g.Xd(Z)),n=Z.Z?B:new EW(new DataView(Z.info.D.D.buffer)),ZS(Z,!0)))){var N= D*1E3,S=F$(n);n=B.pos;B.pos=0;if(B.D.getUint8(B.pos)===160||B1(B))if(fa(B,160))if($d(B,!0),fa(B,155)){if(D=B.pos,b=$d(B,!0),B.pos=D,N=N*1E9/S,S=DS(B),N=S+Math.max(-S*.7,Math.min(S,N)),N=Math.sign(N)*Math.floor(Math.abs(N)),!(Math.ceil(Math.log(N)/Math.log(2)/8)>b)){B.pos=D+1;for(D=b-1;D>=0;D--)B.D.setUint8(B.pos+D,N&255),N>>>=8;B.pos=n}}else B.pos=n;else B.pos=n;else B.pos=n}B=ZS(Z,q.policy.G0);B=F-B}B&&Z.info.D.info.cL()&&q.loader.iL("webmDurationAdjustment",{durationAdjustment:B,videoDrift:f+B, audioDrift:G})}return B}; g.NQ=function(q,Z,F){var B=g.GF();if(B&&Z){var f=B.subscribe(q,function(){function D(){zF[f]&&Z.apply&&typeof Z.apply=="function"&&Z.apply(F||window,G)} var G=arguments;try{g.na[q]?D():g.OT(D,0)}catch(n){g.vf(n)}},F); zF[f]=!0;bK[q]||(bK[q]=[]);bK[q].push(f);return f}return 0}; Sh=function(q){return q&&q.thumbnails&&(q.thumbnails||null).length!=0&&q.thumbnails[0].url?g.lg(q.thumbnails[0].url):""}; Lob=function(q,Z,F){F=F===void 0?{}:F;return ygK(q,Z,F)}; lK=function(q){q=q.Gm();return q.length<1?NaN:q.end(q.length-1)}; nX=function(q,Z,F,B,f,D,G){km.call(this,q,Z,F,B,f,D);this.D=G;g.y(this,this.D);this.WG=this.V=-1}; H3G=function(q){q=tY(q);return new g.e_(q.left,q.top)}; UJ=function(){this.D={};this.K=!0;this.S={}}; O3k=function(q){var Z=g.uK("html5-video-player");Z&&g.hK(Z,"ytp-ad-display-override",q)}; QnD=function(q){this.J=q;this.S=this.K=this.mediaTime=NaN;this.G=this.D=!1;this.Z=.001;g.em(q)&&(this.Z=.01)}; UlG=function(q,Z){if(q.D){var F=q.D;var B=q.getCurrentTime(),f=F.hq();var D=F.policy.K;F.G||(D=Math.max(D-1,0));D*=P1(F);B>=f-D||!F.G6()?F=BF.height?b>S?(B=b,f=N):(B=S,f=l):b0)&&F&&yC&&(this.K=!1,this.S="postLive");this.uS=Z}; zT=function(q,Z){q.S={Lc:Z,Ug:!0};q.D=q.j||q.Z}; Ko6=function(q){Cg(q);return q.data.map(function(Z){return Z.value})}; OJ=function(q,Z,F,B){return H1(PT().D.D,function(){var f=g.CF.apply(0,arguments);return $gG(q,function(){return Z.apply(F,f)},B)})}; aAK=function(q){var Z,F=(Z=q.B.getVideoData())==null?void 0:Z.eU;if(F)for(q=q.G.o_,F=g.E(F),Z=F.next();!Z.done;Z=F.next())if(Z=q[Z.value]){var B=void 0,f=void 0,D=void 0;if(((B=Z.onTap)==null?void 0:(f=B.innertubeCommand)==null?void 0:(D=f.changeEngagementPanelVisibilityAction)==null?void 0:D.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return Z}}; i3D=function(q,Z,F,B,f,D){var G=mgD++;return new QC({veType:q,veCounter:G,elementIndex:F,dataElement:Z,youtubeData:B,jspbYoutubeData:f,loggingDirectives:D})}; xH=function(q,Z,F){if(!Z)return q.length>=1?q[q.length-1]:null;for(var B=g.E(q),f=B.next();!f.done;f=B.next())if(f=f.value,f.width&&f.height&&(F&&f.width>=Z||!F&&f.height>=Z))return f;for(Z=q.length-1;Z>=0;Z--)if(F&&q[Z].width||!F&&q[Z].height)return q[Z];return q[0]}; oC=function(q,Z){return qZ?1:0}; v1=function(q,Z){if(Z){var F=g.C(Z,A1)||null;F==null?g.mM(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(Z=g.uK("video-ads ytp-ad-module")||null,Z==null?g.mM(Error("Could not locate the root ads container element to attach the ad info dialog.")):(q.k$=new g.xT({Y:"div",W:"ytp-ad-overlay-ad-info-dialog-container"}),g.y(q,q.k$),q.k$.R_(Z),Z=new q5(q.api,q.layoutId,q.interactionLoggingClientData,q.x$,q.k$.element,!1),g.y(q,Z),Z.init(kV("ad-info-hover-text-button"),F,q.macros), q.Z?(Z.R_(q.Z,0),Z.subscribe("f",q.K6E,q),Z.subscribe("e",q.SQ,q),q.N(q.Z,"click",q.SyU),q.N(g.uK("ytp-ad-button",Z.element),"click",function(){var B;if(g.C((B=g.C(F.button,g.jQ))==null?void 0:B.serviceEndpoint,k$Z))q.Oc=q.api.getPlayerState(1)===2,q.api.pauseVideo();else q.api.onAdUxClicked("ad-info-hover-text-button",q.layoutId)}),q.I_=Z):g.mM(Error("Ad info button container within overlay ad was not present."))))}else g.bh(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; snG=function(q,Z){if(!q.length)return!1;for(Z+=1;Z=F?(globalThis.sessionStorage.removeItem(q),["e"]):["a",new Uint8Array(B.buffer,Z+4)]}; g.xd=function(q,Z){typeof q.className=="string"?q.className=Z:q.setAttribute&&q.setAttribute("class",Z)}; IAD=function(q){var Z,F,B;return g.h(function(f){if(f.D==1)return g.R(f,Promise.race([q.D,null]),2);Z=f.K;var D=EJ(q);q.D=D;(F=Z)==null||(B=F.DE)==null||B.dispose();g.C7(f)})}; KBk=function(){return{Y:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},T:[{Y:"path",L:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}}; Cw6=function(q,Z,F,B,f){F=F?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var D=nK(q.K.get(),F);Z=new Ka(q.D,Z);var G=[new Nl(q.D,D)];q=[new $H(q.D,D)];return{slotId:D,slotType:F,slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:G,slotExpirationTriggers:q,bL:"core",clientMetadata:new zX([new Si(f({slotId:D,slotType:F,slotPhysicalPosition:1,bL:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:G,slotExpirationTriggers:q}))]),adSlotLoggingData:B}}; g.a4=function(q){g.J.call(this);var Z=this;this.Mp=q;this.JZ={SX:function(){return Z.Mp}}}; Rm9=function(q){hmb(q.Zl.get(),!0);var Z;((Z=q.shrunkenPlayerBytesConfig)==null?0:Z.shouldRequestShrunkenPlayerBytes)&&q.Zl.get().Lv(!1)}; YPk=function(q){return function(){var Z=new cgD;JgK(this.Ec,Z,rS(mV,iK,kH,q));sJ(Z,Z.D.end());for(var F=new Uint8Array(Z.K),B=Z.S,f=B.length,D=0,G=0;Gq.mediaTime+q.Z&&Z0;return q.videoData.S&&q.videoData.S.D||q.videoData.isLivePlayback||!q.videoData.sI()?q.K>=0&&!Z&&(Z=q.mediaElement.Gm(),Z.length||!F)?tC(Z,q.K-q.timestampOffset):F:F}; g.H8=function(){g.xl.call(this);this.D=0;this.endTime=this.startTime=null}; jMD=function(q,Z,F){var B=Z&128?0:-1,f=q.length,D;if(D=!!f)D=q[f-1],D=D!=null&&typeof D==="object"&&D.constructor===Object;var G=f+(D?-1:0);for(Z=Z&128?1:0;Z0&&f&&(F=Math.max(F,q.policy.TY));return bI6(q,F,Z)}; g.LO=function(q){return an(q).toUpperCase()==="WEB"}; NNK=function(q,Z){q.__closure__error__context__984382||(q.__closure__error__context__984382={});q.__closure__error__context__984382.severity=Z}; jY=function(q,Z,F,B,f){Sqk(q,Z,F,void 0,B,f)}; BP=function(){this.X=!1;this.G=null;this.K=void 0;this.D=1;this.Z=this.j=0;this.PG=this.S=null}; I_=function(q){g.hK(q.badge.element,"ytp-suggested-action-badge-with-controls",q.zP||!q.X)}; km=function(q,Z,F,B,f,D,G){G=G===void 0?null:G;g.xT.call(this,Z);this.api=q;this.macros={};this.componentType=F;this.j=this.X=null;this.Jn=G;this.layoutId=B;this.interactionLoggingClientData=f;this.x$=D;this.HG=null;this.Qx=new T5(this.element);g.y(this,this.Qx);this.vG=this.N(this.element,"click",this.onClick);this.Y$=[];this.zP=new Ci(this.onClick,this);g.y(this,this.zP);this.KB=!1;this.dU=this.Dl=null}; hw=function(q,Z,F){var B=B===void 0?800:B;var f=f===void 0?600:f;var D=document.location.protocol;q=WMD(D+"//"+q+"/signin?context=popup","feature",Z,"next",D+"//"+location.hostname+"/post_login");V_B(q,F,B,f)}; g.MT=function(q){return q.ZE.get("captions")}; g.dD=function(q){return(q.deviceIsAudioOnly||!g.l2||R_||q.controlsType==="3"?!1:g.c8?q.G&&g.Jw(51):!0)||(q.deviceIsAudioOnly||!g.Y2||R_||q.controlsType==="3"?!1:g.c8?q.G&&g.Jw(48):g.Jw(38))||(q.deviceIsAudioOnly||!g.tw||R_||q.controlsType==="3"?!1:g.c8?q.G&&g.Jw(37):g.Jw(27))||!q.deviceIsAudioOnly&&g.pi&&!g78()&&g.Jw(11)||!q.deviceIsAudioOnly&&g.GW&&g.Jw("604.4")}; l$6=function(q,Z,F,B,f){var D,G,n,b,N,S,l,U,u,P,W,H,X;g.h(function(Q){switch(Q.D){case 1:D=!!Z.scrubReferrer;G=g.VT(Z.baseUrl,S8y(F,D,B));n={};if(!Z.headers){Q.An(2);break}b=q.G();if(!b.D){N=b.getValue();Q.An(3);break}return g.R(Q,b.D,4);case 4:N=Q.K;case 3:S=N;l=g.E(Z.headers);for(U=l.next();!U.done;U=l.next())switch(u=U.value,u.headerType){case "VISITOR_ID":g.oa("VISITOR_DATA")&&(n["X-Goog-Visitor-Id"]=g.oa("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.oa("EOM_VISITOR_DATA")&&(n["X-Goog-EOM-Visitor-Id"]= g.oa("EOM_VISITOR_DATA"));break;case "USER_AUTH":S&&(n.Authorization="Bearer "+S);break;case "PLUS_PAGE_ID":(P=q.Z())&&(n["X-Goog-PageId"]=P);break;case "AUTH_USER":W=q.D();!S&&W&&(n["X-Goog-AuthUser"]=W);break;case "DATASYNC_ID":if(H=void 0,(H=q.S())==null?0:H.qp("enable_datasync_id_header_in_web_vss_pings"))X=q.K(),iw(G)&&g.oa("LOGGED_IN")&&X&&(n["X-YouTube-DataSync-Id"]=X)}"X-Goog-EOM-Visitor-Id"in n&&"X-Goog-Visitor-Id"in n&&delete n["X-Goog-Visitor-Id"];case 2:g.ka(G,void 0,D,Object.keys(n).length!== 0?n:void 0,"",!0,f),g.C7(Q)}})}; UiK=function(q,Z,F){var B=OM(Qt,Z);B||(B=xv(q,Z,"n",F.opt_nativeTime||-1));return B}; TD=function(){eY.apply(this,arguments)}; PQX=function(q){var Z=Z===void 0?5:Z;return q?ufk[q]||Z:Z}; M$=function(q){var Z=[{cpn:q.S.qA()}];q.K&&Z.push({cpn:q.K.qA()});q.api.publish("playbackChange",{VHL:Z})}; n4=function(q,Z,F){return g.jJ(oZ)(q,Z,F)}; KaB=function(q){q=g.Mg(q);return q!==null?q.split(".").reverse():null}; qS=function(q){this.Ec=rE(q)}; rvD=function(q){if(!q||!q.adPlacements&&!q.adSlots)return!1;for(var Z=g.E(q.adPlacements||[]),F=Z.next();!F.done;F=Z.next())if(F=F.value)if(F=F.adPlacementRenderer,F!=null&&(F.config&&F.config.adPlacementConfig&&F.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;q=g.E(q.adSlots||[]);for(Z=q.next();!Z.done;Z=q.next()){var B=F=void 0;if(((F=g.C(Z.value,mZ))==null?void 0:(B=F.adSlotMetadata)==null?void 0:B.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; WiD=function(q,Z){q.S=Z}; wK9=function(q){return q?(q=("responseXML"in q?q.responseXML:q).getElementsByTagName("root"))&&q.length>0?q[0]:null:null}; xJZ=function(q,Z){if(Z.itagDenylist)for(var F=0;FD?f=0:B[G]>q.buffered[G]&&(G===D-1?f=2:G===D-2&&B[G+1]>q.buffered[G+1]&&(f=3))}q.D.add(Z<<3|(F&&4)|f);Z=Math.ceil(q.track.wA()*1E3);q.D.add(Z-q.Z);q.Z=Z;if(f===1)for(q.D.add(D),G=Z=0;G=2&&q.D.add(B[D- 1]-q.buffered[D-1]);F&&q.D.add(F);q.buffered=B}; bf=function(q){this.Ec=rE(q)}; HIb=function(q,Z,F){this.callback=q;this.slot=Z;this.Zl=F}; OI9=function(q,Z){if(Z=Z.content&&Z.content.adFeedbackRenderer||null)q.K=new NS(q.api,q.layoutId,q.interactionLoggingClientData,q.x$),g.y(q,q.K),q.K.init(kV("ad-feedback-dialog"),Z,q.macros),q.K.R_(q.k$),q.K.subscribe("a",function(){return q.publish("c")})}; QBX=function(q,Z,F){if(q.U("html5_optimality_defaults_chooses_next_higher")&&F)for(q=Z.D.videoInfos,Z=1;Z=G){var P=U-S,W=void 0;((W=Z)!=null?W:Z={})[P]=u}else D[U]=u}if(l)for(var H in l)n=l[H],n!= null&&(n=F(n,B))!=null&&(U=+H,u=void 0,N&&!Number.isNaN(U)&&(u=U+S)=1+(f?0:-1)&&D>=G){var n=q[G];if(n!=null&&typeof n==="object"&&n.constructor===Object)return n[F]=B,Z}if(D<=G)return q[D]=B,Z;if(B!==void 0){var b;G=((b=Z)!=null?b:Z=q[Sm]|0)>>14&1023||536870912;F>=G?B!=null&&(D={},q[G+(f?0:-1)]=(D[F]=B,D)):q[D]=B}return Z}; CZ=function(q,Z,F){var B=q[Sm]|0,f=n1(B),D=hM(q,F,f);if(D!=null&&D[uN]===P_){if(!ra(D))return j7(D),D.Ec;var G=D.Ec}else Array.isArray(D)&&(G=D);if(G){var n=G[Sm]|0;n&2&&(G=lN(G,n))}G=IZ(G,Z,!0);G!==D&&h8(q,B,F,G,f);return G}; vz=function(q,Z){Yw.call(this,q,Z);this.X=[]}; JvD=function(q,Z,F){if(!q.Dl){F||(F=Fu(q,"atr"));F.attestationResponse=Z;try{F.send()}catch(B){if(B.message!=="Unknown Error")throw B;}q.Dl=!0}}; RZ=function(){return hp()||lm("iPad")||lm("iPod")}; Jp=function(q,Z,F,B,f,D,G,n,b,N,S){c$.call(this,q,Z,F,B,f,D,G,n,b,N);this.S=S;this.K=this.D=null;q=g.E(this.S);for(Z=q.next();!Z.done;Z=q.next())Z=Z.value,Kh(Z.hn().clientMetadata,"metadata_type_survey_overlay")&&(this.K=Z.hn().layoutId)}; Y8B=function(q,Z){if(q.B.isLifaAdPlaying()){var F=q.B.dA(!0,!0);q.j4(Z,F.width*.5*1.1,F.height*.25*1.1,F.width*.5*.9,F.height*.5*.9)}}; oZ=function(q,Z,F){if(!g.cz("web_csi_action_sampling_enabled")||!pn(F).actionDisabled){var B=Ju(F),f;if(f=g.cz("web_csi_debug_sample_enabled")&&B){(fg().resolve(new DG(G5))==null?0:Y0())&&!tq7&&(tq7=!0,oZ("gcfl",(0,g.Le)(),F));var D,G,n;f=(fg().resolve(new DG(G5))==null?void 0:(D=Y0())==null?void 0:(G=D.loggingHotConfig)==null?void 0:(n=G.csiConfig)==null?void 0:n.debugSampleWeight)||0;if(D=f!==0)b:{D=pKX();if(D.length>0)for(G=0;G1)q.G=!0;if((f===void 0?0:f)||isNaN(q.K))q.K=Z;if(q.D)Z!==q.mediaTime&&(q.D=!1);else if(Z>0&&q.mediaTime===Z){f=1500;if(q.J.U("html5_buffer_underrun_transition_fix")){f=g.Ce(q.J.experiments,"html5_min_playback_advance_for_steady_state_secs");var D=g.Ce(q.J.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");f=f>0&&D>0&&Math.abs(Z-q.K)(B||!q.G?f:400)}q.mediaTime=Z;q.S=F;return!1}; ec9=function(q){if(q!==eG)throw Error("illegal external caller");}; a$y=function(q){function Z(D,G,n){G=G.match("_rid")?G.split("_rid")[0]:G;typeof n==="number"&&(n=JSON.stringify(n));D.requestIds?D.requestIds.push({endpoint:G,id:n}):D.requestIds=[{endpoint:G,id:n}]} var F={};q=g.E(Object.entries(q));for(var B=q.next();!B.done;B=q.next()){var f=g.E(B.value);B=f.next().value;f=f.next().value;switch(B){case "GetBrowse_rid":Z(F,B,f);break;case "GetGuide_rid":Z(F,B,f);break;case "GetHome_rid":Z(F,B,f);break;case "GetPlayer_rid":Z(F,B,f);break;case "GetSearch_rid":Z(F,B,f);break;case "GetSettings_rid":Z(F,B,f);break;case "GetTrending_rid":Z(F,B,f);break;case "GetWatchNext_rid":Z(F,B,f);break;case "yt_red":F.isRedSubscriber=!!f;break;case "yt_ad":F.isMonetized=!!f}}return F}; UMK=function(q,Z,F,B,f){return q instanceof T6?TNG(q,B,f,Z,F):TNG(q,B,f,new MS,0)}; o$=function(q,Z,F){this.D=q;this.S=!1;Z=this.D.WP(Z);this.K=new lR(q,Z);this.D.free(Z.byteOffset);this.G=this.D.WP(F)}; Mqk=function(q,Z){if(Z=Z&&Z.buttonRenderer||null)Z.serviceEndpoint?(q.K=new qa(q.api,q.layoutId,q.interactionLoggingClientData,q.x$,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.y(q,q.K),q.K.init(kV("ad-feedback-undo-mute-button"),Z,q.macros),q.K.listen("click",q.KYL,q),q.K.R_(q.k$)):g.bh(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; ZW=function(q){var Z=q.G.fv();return Z?Z.info:TJ(q)}; omk=function(q){var Z=q.D;q.type===3&&q.zP.stop();q.api.removeEventListener("appresize",q.Dl);q.X||(q.env.U("player_tooltip_data_title_killswitch")?Z.setAttribute("title",q.S):Z.setAttribute("data-tooltip-title",q.S));q.S="";q.D=null;q.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});q.wrapper.style.width=""}; qc6=function(q){var Z;return q==null?void 0:(Z=q.activeViewTracking)==null?void 0:Z.identifier}; Zgk=function(q,Z,F){var B;(B=q.app.I1().Z[Z.clientPlaybackNonce]||null)==null||B.dispose();Z=new Fb(q,Z,q.playback,F/1E3);q.Y$.set(Z.qA(),Z);q.app.I1().Z[Z.qA()]=Z}; Fxg=function(q){var Z,F,B,f,D=(Z=q.D)==null?void 0:(F=Z.bannerData)==null?void 0:(B=F.itemData)==null?void 0:(f=B.exclusivesData)==null?void 0:f.expirationTimestampMs;Z=(Number(D)-Date.now())/1E3;if(Z>0){if(Z<604800){var G,n,b,N;F=(G=q.D)==null?void 0:(n=G.bannerData)==null?void 0:(b=n.itemData)==null?void 0:(N=b.exclusivesData)==null?void 0:N.exclusiveOfferCountdownText;if(F!==void 0)for(G=Date.now(),n=g.E(F),b=n.next();!b.done;b=n.next())if(b=b.value,b!==void 0&&b.text!==void 0&&(N=Number(b.textDisplayStartTimestampMs), !isNaN(N)&&G>=N)){b.insertCountdown?(Z=b.text.replace(/\$0/,String(B3({seconds:Z}))),q.j.setContent(Z)):q.j.setContent(b.text);q.j.show();break}}var S,l,U,u;q.Z.update({exclusive:(S=q.D)==null?void 0:(l=S.bannerData)==null?void 0:(U=l.itemData)==null?void 0:(u=U.exclusivesData)==null?void 0:u.exclusiveOfferLabelText});q.Z.show();w5(q);var P;(P=q.VO)==null||P.start()}else fb(q)}; BbD=function(q,Z){if(Z>=0)DW(q,Z);else{for(var F=0;F<9;F++)q.D.push(Z&127|128),Z>>=7;q.D.push(1)}}; fGb=function(){eh.instance||(eh.instance=new eh);return eh.instance}; gO=function(q){return q}; Sc7=function(q){var Z=Z===void 0?!1:Z;var F=F===void 0?!1:F;var B=(0,g.Le)(),f={startTime:B,ticks:{},infos:{}},D=Z?g.ym("yt.logging.gzipForFetch",!1):!0;if(Go&&D){if(!q.body)return q;try{var G=F?q.body:typeof q.body==="string"?q.body:JSON.stringify(q.body);D=G;if(!F&&typeof G==="string"){var n=UJy(G);if(n!=null&&(n>DmG||n=nmD)if(nb++,g.cz("abandon_compression_after_N_slow_zips")||g.cz("abandon_compression_after_N_slow_zips_lr")){Z=nb/zo;var N=NbZ/g.bk("compression_disable_point");zo>0&&zo%g.bk("compression_disable_point")===0&&Z>=N&&(Go=!1)}else Go=!1;gmB(f)}}q.headers=Object.assign({},{"Content-Encoding":"gzip"},q.headers||{});q.body=D;return q}catch(S){return i2(S),q}}else return q}; DT=function(q,Z,F,B,f){g.J.call(this);this.K=Z;this.Zl=F;this.XE=B;this.LP=f;this.listeners=[];var D=new t8(this);g.y(this,D);D.N(q,"internalAbandon",this.JZU);this.addOnDisposeCallback(function(){g.DJ(D)})}; B1=function(q){if(!lGK(q)||!fa(q,524531317))return!1;$d(q,!0);return!0}; LI=function(q){q=B8y(q);wd.call(this,q.length?q[q.length-1]:new $Y(aa,0));this.S=q;this.K=null}; Ci=function(q,Z){g.J.call(this);var F=this;this.S=[];this.X=!1;this.K=0;this.Z=this.j=this.G=!1;this.Dl=null;var B=(0,g.Jy)(q,Z);this.D=new g.im(function(){return B(F.Dl)},300); g.y(this,this.D);this.PG=this.V=Infinity}; p1=function(q,Z,F){F=F===void 0?{}:F;this.id=q;this.mimeType=Z;F.Ml>0||(F.Ml=16E3);Object.assign(this,F);q=g.E(this.id.split(";"));this.itag=q.next().value;this.D=q.next().value;this.containerType=Na(Z);this.FE=Rs[this.itag]||""}; sbX=function(q,Z,F){F=F===void 0?2:F;k7(q,Z*8+2);q.K.push(q.pos);q.K.push(F);q.pos+=F}; g0=function(q){if(q.B.C().S)return!1;if(q=q.B.getVideoData(1).getPlayerResponse()){var Z=q.adPlacements;if(Z)for(var F=0;F>>0;q=q.D;RB(q,q.D+Z)}break;case 5:q=q.D;RB(q,q.D+4);break;case 3:Z=q.S;do{if(!ff6(q))throw Error();if(q.K==4){if(q.S!=Z)throw Error();break}QD(q)}while(1);break;default:throw Error();}}; A7=function(q){var Z,F,B,f,D;return!((Z=q.get("active_view_viewable"))==null||!Z.length)||!((F=q.get("active_view_measurable"))==null||!F.length)||!((B=q.get("active_view_fully_viewable_audible_half_duration"))==null||!B.length)||!((f=q.get("audio_audible"))==null||!f.length)||!((D=q.get("audio_measurable"))==null||!D.length)}; v3=function(q,Z,F,B){km.call(this,q,{Y:"img",W:"ytp-ad-avatar"},"ad-avatar",Z,F,B);this.hide()}; Xb=function(){this.D=new Map;this.K=!1}; g.Kb=function(q){g.J.call(this);this.X=q;this.G=0;this.S=100;this.Z=!1;this.K=new Map;this.j=new Set;this.flushInterval=3E4;this.D=new g.EF(this.flushInterval);this.D.listen("tick",this.vk,!1,this);g.y(this,this.D)}; $W=function(q,Z){Z?q.requestHeaders.Authorization="Bearer "+Z:delete q.requestHeaders.Authorization}; rVK=function(q){var Z=Z===void 0?t4k:Z;var F=q.qf?void 0:a$();F?pR7(F,Z).then(function(B){q.uach=PrK(B!=null?B:"[]");B=tA(q);Ya(B,mp,9,q.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; WxD=function(q,Z){aL(q,1,Z.jal);UE(q,2,Z.dE$,MzK,3);UE(q,3,Z.coldStartInfo,wu8,3)}; yV7=function(q,Z,F,B,f,D){var G=F-B/2;F+=B/2;Z+=f;return"M 0 "+f+" L 0 "+(Z+" L ")+(G+" "+Z+" C ")+(G+D+" "+Z+" "+(G+D)+" "+f+" "+G+" "+f+" L 0 ")+(f+" M ")+(F+" "+f+" L ")+(q.j+" "+f+" L ")+(q.j+" "+Z+" L ")+(F+" "+Z+" C ")+(F-D+" "+Z+" "+(F-D)+" "+f+" "+F+" "+f)}; B46=function(q){var Z=null;q.K&&(Z=q.K,q.K=Z.next,Z.next=null);q.K||(q.G=null);return Z}; ik=function(){eh.apply(this,arguments);this.requestHeaders={}}; HgD=function(q,Z,F){return Z.pA(F).then(function(){return T1(new Lxy(Z,Z.S))},function(B){B instanceof Error&&g.bh(B); var f=UT('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),D=Pf('audio/mp4; codecs="mp4a.40.2"'),G=f||D,n=Z.isLivePlayback&&!g.kW(q.Z,!0);B="fmt.noneavailable";n?B="html5.unsupportedlive":G||(B="html5.missingapi");G=n||!G?2:1;f={buildRej:"1",a:Z.TG(),d:!!Z.LB,drm:Z.sI(),f18:Z.gj.indexOf("itag=18")>=0,c18:f};Z.D&&(Z.sI()?(f.f142=!!Z.D.D["142"],f.f149=!!Z.D.D["149"],f.f279=!!Z.D.D["279"]):(f.f133=!!Z.D.D["133"],f.f140=!!Z.D.D["140"],f.f242=!!Z.D.D["242"]),f.cAAC=D,f.cAVC=Pf('video/mp4; codecs="avc1.42001E"'), f.cVP9=Pf('video/webm; codecs="vp9"'));Z.Z&&(f.drmsys=Z.Z.keySystem,D=0,Z.Z.D&&(D=Object.keys(Z.Z.D).length),f.drmst=D);return new g.xX(B,f,G)})}; sF=function(q){g.J.call(this);var Z=this;this.componentId="";this.D=[];this.WG="";this.pageId=null;this.Oc=this.Y$=-1;this.X=this.experimentIds=null;this.j=this.G=0;this.PG=null;this.uL=this.zP=0;this.HG=1;this.timeoutMillis=0;this.k$=!1;this.logSource=q.logSource;this.T4=q.T4||function(){}; this.S=new dV(q.logSource,q.qf);this.network=q.network||null;this.SK=q.SK||null;this.V=q.VIs||null;this.sessionIndex=q.sessionIndex||null;this.ze=q.ze||!1;this.logger=null;this.withCredentials=!q.Mo;this.qf=q.qf||!1;this.Dl=!this.qf&&!!a$()&&!!a$().navigator&&a$().navigator.sendBeacon!==void 0;this.BG=typeof URLSearchParams!=="undefined"&&!!(new URL(Kg())).searchParams&&!!(new URL(Kg())).searchParams.set;var F=pTD(new pd);tW(this.S,F);this.Z=new g.ab(1E4,3E5,.1);q=OgB(this,q.y9);this.K=new kY(this.Z.getValue(), q);this.dU=new kY(6E5,q);this.ze||this.dU.start();this.qf||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Ay(Z);var B;(B=Z.PG)==null||B.flush()}}),document.addEventListener("pagehide",function(){Ay(Z); var B;(B=Z.PG)==null||B.flush()}))}; IL=function(q,Z,F){F&&q.K&&q.K(Z.value)}; j0=function(q){if(q&&q.simpleText)return q.simpleText;var Z="";if(q&&q.runs)for(var F=0;F4&&q.Y$.shift()}; xv=function(q,Z,F,B){q=q.EB(null,B,!0,Z);q.G=F;Kx6([q]);return q}; $mg=function(q,Z){if(!q)return NaN;Z=Y9(q,Z);return Z>=0?q.start(Z):NaN}; R$=function(q){this.Ec=rE(q,8)}; aGg=function(q,Z){q.isContentForward=Z;g.hK(q.badge.element,"ytp-suggested-action-badge-content-forward",Z)}; mm6=function(q,Z){var F="",B=g.UP(q.player,"M\u00e1s videos","v");Z===2?F="Ocultar videos":Z===1&&(F="M\u00e1s videos");q.element.setAttribute("title",B);q.element.setAttribute("data-title-no-tooltip",F);q.element.setAttribute("aria-label",F);Z=q.cG("ytp-fullscreen-grid-expand-button");var f=q.cG("ytp-fullscreen-grid-hover-overlay");f&&(f.setAttribute("title",B),f.setAttribute("data-title-no-tooltip",F),f.setAttribute("aria-label",F));Z&&(Z.setAttribute("title",B),Z.setAttribute("data-title-no-tooltip", F),Z.setAttribute("aria-label",F));q.player.Q$()}; IG=function(q,Z){q=Error.call(this,q);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.D=Z===void 0?!1:Z}; c3=function(q){this.value=q}; ig7=function(q,Z,F){this.S=F===void 0?0:F;this.K=q;this.D=Z==null?"":Z}; J7=function(q,Z){for(;q.D=q.data.length)return q.error=!0,0;q.register|=q.data[q.K++]<>=Z;q.D-=Z;return F}; nV=function(q){var Z=g.C(q,qX);if(Z)return Z;if((Z=g.C(q,k5D))&&Z.commands)return A86(Z.commands);if((Z=g.C(q,sLZ))&&Z.commands)return A86(Z.commands);if((q=g.C(q,jL9))&&q.identifier&&q.command&&(YW||(YW=[]),!YW.includes(q.identifier)))return YW.push(q.identifier),g.C(q.command,qX)}; pb=function(q,Z){q.He.has(Z)&&(dJ?q.He.get(Z).I6.clear():q.He.get(Z).eB=new bN,t7(q,Z),q.K=!0)}; IGK=function(q,Z,F,B,f){if(q.K.has(Z.identifier)){var D=q.K.get(Z.identifier);B>D.yu&&(D.startTimeSecs=Z.startSecs,D.jC=Z.jC,D.event==="predictStart"&&D.kV===5&&Z.event!=="predictStart"&&(D.oC=Date.now()),D.event=Z.event)}else D={event:Z.event,startTimeSecs:Z.startSecs,jC:Z.jC,iZ:[],yu:B,kV:0},q.K.set(Z.identifier,D);f&&D.kV===0&&(f.B5(Z)?D.kV=5:(D.kV=2,D.y6=""),D.oC=Date.now(),D.yu=B);B>D.yu&&(f==null||f.B5(Z),D.yu=B);q.Z&&F>-1&&F=2&&(q.slot_pos=Z.adPodIndex);q.autoplay="1"}; To=function(q){this.value=q}; Ma=function(){rz.call(this);this.j=null;this.Z=!1;this.G="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; o5=function(q){q.D=null;q.Bg.clear();q.K&&q.K.stop();q.Z&&q.Z.stop();var Z;(Z=q.S)==null||Z.stop();delete q.S}; ZU=function(q,Z){g.w.call(this,{Y:"button",rU:["ytp-button","ytp-settings-button"],L:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":qf(),title:q.U("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},T:[q.U("delhi_modern_web_player_icons")?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.WP()]});this.B=q;this.Pg=Z;this.K=!0;this.listen("click",this.S);this.N(q,"onPlaybackQualityChange",this.updateBadge);this.N(q,"videodatachange",this.updateBadge);this.N(q,"webglsettingschanged",this.updateBadge);this.N(q,"appresize",this.D);b8(q,this.element,this);this.B.createClientVe(this.element,this,28663);this.updateBadge();this.D(q.Ca().getPlayerSize())}; Wu=function(q,Z){return Z&&Z.test(q)?!0:!1}; F7=function(q,Z){this.name=q;this.options=Z;this.S=!0;this.Z=this.G=0}; Bw=function(q){this.Ec=rE(q)}; ROg=function(q){return new Promise(function(Z){setTimeout(Z,q)})}; g.fN=function(q){this.h0=q}; Gd=function(q){q.J.Qm&&!q.videoData.backgroundable&&q.mediaElement&&!q.Z6()&&(q.isBackground()&&q.mediaElement.OF()?(q.iL("bgmobile",{suspend:1}),q.e5(!0,!0)):q.isBackground()||DU(q)&&q.iL("bgmobile",{resume:1}))}; JVK=function(q,Z,F){if(q.d1())return"qie";if(q.D==null||q.D.jU()||q.D.getVideoData()==null)return"qpd";if(Z.videoId!==q.D.Vd())return"vinm";if(cVX(q)<=0)return"ivd";if(F!==1)return"upt";if((F=q.S)==null)q=void 0;else if(F.getStatus().status!==5)q="niss";else if(U4(F.policy,F.D,F.K,F.qg)!=null)q="pge";else{Z=F5(F);q=Z.oe;var B=Z.Vo;Z=g.Ce(F.gq.C().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var f=F.j+Z;F.gq.C().experiments.qp("html5_pseudogapless_shorts")&&(f=jE(F).K0+Z);F=tC(B.nw(), f);q=tC(q.nw(),f);q=!(Z>0)||F&&q?null:"neb"}return q!=null?q:null}; tTK=function(q,Z){zd(nN(nN(q.Y6(),function(F){return Ycg(F,[bW(Z)])}),function(F){if(F){F=g.E(F); for(var B=F.next();!B.done;B=F.next()){var f=B.value;B=f.key;f=f.value;B&&f&&(CrZ([{settingItemId:B,settingOptionValue:f}]),Nf(q))}}}),function(){q.D=!0})}; gC=function(q,Z,F,B,f,D){g.J.call(this);this.ND=q;this.S=Z;this.Z=F;this.G=B;this.K=f;this.GP=D;this.D=new Map}; hs=function(){g.J.apply(this,arguments);this.K=1}; bU=function(q,Z){return Z===void 0||Z===null?q:Z.toString()}; pu9=function(q,Z,F){for(var B=q.length;B268435455){nW(q,4);for(var F=Z&1073741823,B=0;B<4;B++)q.view.setUint8(q.pos,F&127|128),F>>=7,q.pos+=1;Z=Math.floor(Z/268435456)}for(nW(q,4);Z>127;)q.view.setUint8(q.pos,Z&127|128),Z>>=7,q.pos+=1;q.view.setUint8(q.pos,Z);q.pos+=1}; GM7=function(q){Dnk(q,function(Z,F){Z=new URL(Z);Z.searchParams.set("format","json");var B=!1;try{B=a$().navigator.sendBeacon(Z.toString(),F.D6())}catch(f){}B||(q.Dl=!1);return B})}; yq=function(){var q=zsg;var Z=Z===void 0?[]:Z;var F=F===void 0?[]:F;Z=ndk.apply(null,[b1Z.apply(null,g.YB(Z))].concat(g.YB(F)));this.store=Ndb(q,void 0,Z)}; LN=function(q,Z){q.D.has(Z.uA())?Yp("Trying to register an existing AdErrorInfoSupplier."):q.D.set(Z.uA(),Z)}; bu9=function(q,Z,F){if(!q.isSeeking())return-1;F=(F?q.videoTrack:q.audioTrack).D.index;var B=F.eI(q.targetTime);return(F.g3(q.Np.Ra)||Z.Uc===q.Np.Ra)&&B=q){for(var F=64,B=[];++F-B[z[1]]-32;){switch(F){case 58:F-=14;case 91:case 92:case 93:continue;case 123:F=47;case 94:case 95:case 96:continue;case 46:F=95}B[z[3]](String[z[27]](F))}var f=B}(q-6^12)>=q&&(q+1^10)0){var B=F.D.shift();ABZ(F,B.info)}F.D.length>0&&(B=F.D[0].time-(0,g.Le)(),F.K.start(Math.max(0,B)))}},0); g.y(this,this.K);Z.subscribe("widevine_set_need_key_info",this.G,this)}; I5=function(q,Z){for(var F=[],B=g.E(q.Bg.values()),f=B.next();!f.done;f=B.next())f=f.value,f.trigger.D===Z.layoutId&&F.push(f);F.length&&j2(q.D(),F)}; o_=function(q,Z,F){XF(q,Z,2);DW(q.D,F.length);sJ(q,q.D.end());sJ(q,F)}; g.cX=function(q){var Z=g.CN(),F=Z.client||{};if(q.forcedExperiments){var B=q.forcedExperiments.split(","),f=[];B=g.E(B);for(var D=B.next();!D.done;D=B.next())f.push(Number(D.value));F.experimentIds=f}if(f=q.homeGroupInfo)F.homeGroupInfo=JSON.parse(f);if(f=q.getPlayerType())F.playerType=f;if(f=q.D.ctheme)F.theme=f;if(f=q.livingRoomAppMode)F.tvAppInfo=Object.assign({},F.tvAppInfo,{livingRoomAppMode:f});f=q.deviceYear;q.U("html5_propagate_device_year")&&f&&(F.tvAppInfo=Object.assign({},F.tvAppInfo,{deviceYear:f})); if(f=q.livingRoomPoTokenId)F.tvAppInfo=Object.assign({},F.tvAppInfo,{livingRoomPoTokenId:f});Z.client=F;f=Z.user||{};q.enableSafetyMode&&(f=Object.assign({},f,{enableSafetyMode:!0}));var G;((G=F.tvAppInfo)==null?0:G.usePageidAsHeader)||!q.pageId||(f=Object.assign({},f,{onBehalfOfUser:q.pageId}));Z.user=f;return Z}; g.udD=function(q){var Z={};q=(q.D&&g.rJ(q)>=2?q.D.getAllResponseHeaders()||"":"").split("\r\n");for(var F=0;F1)throw new DB;q=q.id;vdZ(q);OE=T1(q);Xck(18E5,2);return q}; GE=function(q,Z){var F=q.K[Z],B=F[1];q.S+=F[0];B>0&&q.D[Z]==0&&(q.D[Z]=1)}; zE=function(q,Z){if(g.cz("no_client_ve_attach_unless_shown")){var F=AU(q,Z);ZC.set(F,!0);fh(q,Z)}}; r0=function(q,Z,F){var B=arguments,f=document,D=B[1],G=nv(f,String(B[0]));D&&(typeof D==="string"?G.className=D:Array.isArray(D)?G.className=D.join(" "):b9(G,D));B.length>2&&EdK(f,G,B,2);return G}; BR=function(q,Z,F){F=F===void 0?{}:F;Z=Error.call(this,Z);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=q;this.metadata=F;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)}; NI=function(q,Z){q.K=Z;g.O9("yt.gcf.config.hotConfigGroup",q.K||null)}; gq=function(q,Z,F,B,f,D){g.In.call(this);var G=this;this.loader=q;this.Np=Z;this.policy=F;this.videoTrack=B;this.audioTrack=f;this.Dl=this.D=null;this.j=this.X=NaN;this.V=0;this.PG=NaN;this.S=null;this.Y$=this.zP=NaN;this.k$=new Map;this.uL=this.Z=this.G=NaN;this.JZ={Lca:function(){return G.K}}; this.K=D?1:0}; KOD=function(q){var Z=g.E(drk(q,X$));q=Z.next().value;Z=Z.next().value;return q.toString(16)+Z.toString(16)}; Sy=function(q){this.value=q}; $nZ=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},T:[{Y:"path",Sn:!0,L:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; l9=function(q,Z){this.topic=q;this.D=Z}; XBK=function(q){Xf(q,function(){var Z=this;return function B(){var f,D,G,n,b,N,S,l,U;return E8(B,function(u){switch(u.D){case 1:g.KI(u,2);Z.Yk.tick("wasm_s");f=zU(Z.T3)?function(P){return nN(adg(Z.T3),function(W){return W.s0(P)})}:void 0; D=g.Ce(Z.J.experiments,"html5_wasm_initialization_delay_ms");G=Z.U("html5_wasm_initialization_disable_sync");n=Z.U("html5_wasm_initialization_wait_for_idle");if(!(D>0)){u.An(4);break}b=$7;return xp(u,aB(mnD(D)),5);case 5:b(u.K);case 4:if(!n){u.An(6);break}N=$7;return xp(u,aB(i1K()),7);case 7:N(u.K);case 6:return g.s4(u,8),S=ldZ(Z.webPlayerContextConfig.wasmModuleUrl,f,Z.CX.bind(Z),G),l=$7,xp(u,aB(S),10);case 10:U=l(u.K);Z.Yk.tick(U.D?"wasm_fa":"wasm_fw");kMk(Z.J,U);g.jB(u,2);break;case 8:g.If(u), Z.Yk.tick("wasm_ferr");case 2:g.nm(u),g.mD(u,0)}})}()})}; Uz=function(q,Z,F){h8(q,q[Sm]|0,Z,F,n1(q[Sm]|0))}; u9=function(q,Z,F){if(F===void 0||!F){F=g.E(q.HG);for(var B=F.next();!B.done;B=F.next()){B=B.value;if(Z>=B.start&&Z<=B.end)return;if(Z===B.end+1){B.end+=1;return}}q.HG.push(new ssG(Z))}}; CS9=function(){this.S=!PM(aa.top);this.isMobileDevice=rq()||jsD();var q=wq();this.domain=q.length>0&&q[q.length-1]!=null&&q[q.length-1].url!=null?g.Mg(q[q.length-1].url)||"":"";this.D=new gV(0,0,0,0);this.G=new g.d8(0,0);this.Z=new g.d8(0,0);this.X=new gV(0,0,0,0);this.frameOffset=new g.e_(0,0);this.j=0;this.V=!1;this.K=!(!aa||!IdB(aa).Ck);this.update(aa)}; Rs8=function(q,Z,F){Z=g.E(Z);for(var B=Z.next();!B.done;B=Z.next())B=B.value,B.layout&&WM(q.D,B.slot)&&hsK(q,B.slot,B.layout,F)}; cEX=function(q){switch(q){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}}; JEZ=function(q,Z,F){if(!GZ8(Z,F))return Z=Nn(Z.info),Z.smst="1",q.loader.handleError("fmt.unparseable",Z||{},1),!1;isNaN(q.k$)&&(q.k$=F);return!0}; g.y$=function(q,Z,F,B,f,D){D=D===void 0?{}:D;g.zY(q,Z,F,[B],f===void 0?!1:f,D)}; HM=function(q,Z){q.X3=Z;q.VF(new Lv(g.DC(q.X3,function(F){return F.getInfo()})))}; YWG=function(q){q.S&&g.LF(q.S);q.G&&g.LF(q.G)}; tAG=function(q,Z,F,B,f){var D;Z={reason:"overlapping_playbacks",NrE:Z,Rc:F,Ya:B,Wnc:f.fp,XCr:((D=f.videoData)==null?void 0:D.videoId)||"",df$:f.durationMs,j2G:f.Rc,tME:f.Ya};Oz(q,Z)}; es9=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u){Z=i7G(q,Z,F,f,D,G,b,N,S,l,U,u);pcX(f)?(f=dnb(q,F,G,n),f instanceof K?q=f:(n=nK(q.K.get(),"SLOT_TYPE_IN_PLAYER"),b=Bs(q.K.get(),"LAYOUT_TYPE_SURVEY",n),G=[].concat(g.YB(f.slotExpirationTriggers),[new Q$(q.D,b)]),n=Z({slotId:f.slotId,slotType:f.slotType,slotPhysicalPosition:f.slotPhysicalPosition,bL:f.bL,slotEntryTrigger:f.slotEntryTrigger,slotFulfillmentTriggers:f.slotFulfillmentTriggers,slotExpirationTriggers:G},{slotId:n,layoutId:b}),q=n instanceof K?n:{iU:{slotId:f.slotId, slotType:f.slotType,slotPhysicalPosition:f.slotPhysicalPosition,slotEntryTrigger:xG(q,F,f.slotId,f.slotEntryTrigger),slotFulfillmentTriggers:AD(q,F,f.slotId,f.slotFulfillmentTriggers),slotExpirationTriggers:G,bL:f.bL,clientMetadata:new zX([new vM(XU(F)),new Si(n.layout),new Ez({St:q.St(F)})]),adSlotLoggingData:B},Xo:n.Xo})):q=VAb(q,F,G,n,B,b.d2,Z);return q instanceof K?q:q.Xo.concat(q.iU)}; Td9=function(){this.S=!1}; MAk=function(q){var Z=new g.xT({Y:"div",rU:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],T:[{Y:"div",W:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",W:"ytp-ad-overlay-close-container",T:[{Y:"button",W:"ytp-ad-overlay-close-button",T:[s8(jq)]}]},{Y:"div",W:"ytp-ad-overlay-text-image",T:[{Y:"img",L:{src:"{{imageUrl}}"}}]},{Y:"div",W:"ytp-ad-overlay-title",Ka:"{{title}}"},{Y:"div",W:"ytp-ad-overlay-desc",Ka:"{{description}}"},{Y:"div",rU:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Ka:"{{displayUrl}}"}]});q.N(Z.cG("ytp-ad-overlay-title"),"click",function(F){r9(q,Z.element,F)}); q.N(Z.cG("ytp-ad-overlay-link"),"click",function(F){r9(q,Z.element,F)}); q.N(Z.cG("ytp-ad-overlay-close-container"),"click",q.LM);q.N(Z.cG("ytp-ad-overlay-text-image"),"click",q.va$);Z.hide();return Z}; Kv=function(q,Z){g.J.call(this);var F=this;this.B=q;this.G=Z;this.HN={};this.D={};this.K=null;this.S=new Set;this.Z=new g.pO(this);this.JZ={VFr:function(){return F.G}}; this.j=this.B.U("web_player_defer_modules");this.ZE=new Map;g.y(this,this.Z);this.Z.N(q,"videodatachange",this.onVideoDataChange)}; Zc=function(q,Z){g.o3.call(this,q,void 0,"Opciones");var F=this;this.X6={};for(var B=0;Bq.policy.Q6*1E3?(q.iL("ombttl",{}),!1):q.Np.Ra&&q.Np.G||TE(Z)!==0&&!q.policy.D||Z.U("html5_disable_onesie_media_for_mosaic")&&MI(Z)||Z.U("html5_disable_onesie_media_for_lifa_eligible")&& Od(Z)?!1:!0}; oY=function(q){this.j=q}; qj=function(q,Z,F){Z.layoutId!==q.layout.layoutId?q.D.Dz(q.slot,Z,new JB("Unknown layout received. Required LayoutId: "+q.layout.layoutId+("and LayoutType: "+q.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):F()}; K7y=function(q,Z){switch(Z){case 2:Z="Ocultar videos";var F="Hide recommendations grid";break;default:Z="M\u00e1s videos",F="Show recommendations grid"}q.updateValue("title",Z);q.element.ariaLabel=F;q.S.textContent=Z}; Ju=function(q){var Z=pn(q).nonce;Z||(Z=g.ZY(16),pn(q).nonce=Z);return Z}; zKZ=function(q,Z,F){GzD(q);FE(q,F);FE(q,~F);Fo.pF(q.UI,q.window,Z,F,q.pending);q.pending+=F}; w1=function(q,Z){g.vT.call(this,g.MH({role:"menuitemcheckbox","aria-checked":"false"}),Z,q,{Y:"div",W:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; nZD=function(q){return yJ(q,0,"gclid",q.search(B2))>=0||yJ(q,0,"gad_source",q.search(B2))>=0}; g.fs=function(q,Z){g.jJ(function(){g.yn(Z,function(F){zE(F,q);var B=Mq({cttAuthInfo:ot(q)||void 0},q);F={csn:q,ve:F.getAsJson(),eventType:4};q==="UNDEFINED_CSN"?G1("visualElementShown",B,F):g.nh("visualElementShown",F,B)})})()}; bGG=function(q){return g.p(q.Mp.getPlayerState(),2)?0x8000000000000:q.Mp.getCurrentTime()*1E3}; gZX=function(q,Z,F){if(DY(q.D,Z))if(GK(q.D,Z).G=F?"filled":"not_filled",F===null){q.yO.KD("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",Z);F=g.E(q.K);for(var B=F.next();!B.done;B=F.next())B.value.jI(Z);zK(q,Z,!1)}else{q.yO.KD("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",Z,F);q.yO.KD("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Z,F);var f,D=(f=F.Ig)!=null?f:qc(F.clientMetadata,"metadata_type_sub_layouts");if(D)for(f=g.E(D),D=f.next();!D.done;D=f.next())q.yO.KD("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED", Z,D.value);f=g.E(q.K);for(D=f.next();!D.done;D=f.next())D.value.t1(Z);if(DY(q.D,Z))if(GK(q.D,Z).Z)zK(q,Z,!1);else{q.yO.KD("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",Z,F);try{B=q.D;if(!GK(B,Z))throw new JB("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!B.ND.k_.get(Z.slotType))throw new JB("No LayoutRenderingAdapterFactory registered for slot of type: "+Z.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY"); if(F.layoutExitNormalTriggers.length==0&&F.layoutExitSkipTriggers.length==0&&F.layoutExitMuteTriggers.length==0&&F.layoutExitUserInputSubmittedTriggers.length==0&&F.layoutExitUserCancelledTriggers.length==0)throw new JB("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");ns(B,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",F.layoutExitNormalTriggers);ns(B,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",F.layoutExitSkipTriggers);ns(B,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED", F.layoutExitMuteTriggers);ns(B,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",F.layoutExitUserInputSubmittedTriggers);ns(B,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",F.layoutExitUserCancelledTriggers)}catch(N){N instanceof JB?q.Dz(Z,F,N,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):q.Dz(Z,F,new JB("Unexpected error: "+N,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");zK(q,Z,!0);return}GK(q.D,Z).j=!0;try{var G=q.D,n=GK(G,Z),b=G.ND.k_.get(Z.slotType).get().build(G.G, G.K,Z,F);b.init();n.layout=F;if(n.S)throw new JB("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");n.S=b;bG(G,n,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",F.layoutExitNormalTriggers);bG(G,n,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",F.layoutExitSkipTriggers);bG(G,n,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",F.layoutExitMuteTriggers);bG(G,n,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",F.layoutExitUserInputSubmittedTriggers); bG(G,n,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",F.layoutExitUserCancelledTriggers)}catch(N){Nj(q,Z);N instanceof JB?q.Dz(Z,F,N,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):q.Dz(Z,F,new JB("Unexpected error: "+N,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");zK(q,Z,!0);return}q.yO.KD("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Z,F);B=g.E(q.K);for(G=B.next();!G.done;G=B.next())G.value.MD(Z,F);Nj(q,Z);Nyg(q,Z)}else q=q.GP.get(),g.Za(q.B.C())|| ge(q.B.C())||g.em(q.B.C())?q=!0:(Yp("Composite VOD on legacy path."),q=!1),q&&Yp("slot is unscheduled after been fulfilled.",Z,F)}}; SvD=function(q,Z){var F=null;q.S&&(F=(Z?[q.S.defaultServiceEndpoint,q.S.defaultNavigationEndpoint]:[q.S.toggledServiceEndpoint]).filter(function(B){return B!=null})); return F||[]}; lHD=function(){var q=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];YP().forEach(function(Z){q.push(Z)}); return{m0:q,FN:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; u1X=function(q,Z,F){xz()||(q.requestTimeMs=String(Z));g.cz("unsplit_gel_payloads_in_logs")&&(q.unsplitGelPayloadsInLogs=!0);!F&&(Z=g.oa("EVENT_ID"))&&(F=UXD(),q.serializedClientEventId={serializedEventId:Z,clientCounter:String(F)})}; Pig=function(q,Z){return Z?g.s3(q.D,function(F){return F.rp.wm==Z}):null}; rxB=function(q){q.menuItem||(q.menuItem=new Sr(q.api,function(Z){q.setVoiceBoostUserPreference(Z)},function(){return q.getVoiceBoostUserPreference()},function(){return q.hasVoiceBoostAudioTrack()},function(){return q.getVoiceBoostState()}),g.y(q,q.menuItem))}; g.Us=function(q){return q.U("html5_local_playsinline")?Z7&&!g.Jw(602)&&!("playsInline"in lG()):Z7&&!q.M4||g.Vd("nintendo wiiu")?!0:!1}; uG=function(q,Z){vB.call(this,q,2,Z)}; WGK=function(q,Z,F,B,f,D){D=D===void 0?{}:D;var G=Z.substring(0,Z.length-f.name.length),n,b=(n=D)==null?void 0:n.signal;return v76(function(N){return new Promise(function(S,l){if(b==null?0:b.aborted){var U=new BR(1,"Aborted");U.cause=b.reason;l(U)}else{var u={},P=wlk(q,N,G);zD(P,"error",function(W){return void l(W)}); zD(P,"metadata",function(W){u=W}); zD(P,"data",function(W){var H=u;H=H===void 0?{}:H;S(new fW(W,H))}); b&&b.addEventListener("abort",function(){P.cancel();var W=new BR(1,"Aborted");W.cause=b.reason;l(W)})}})},q.Ld).call(q,f.X(F,B)).then(function(N){return N.c8r})}; yxD=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},T:[{Y:"path",Sn:!0,L:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; we=function(q){var Z=P2(q);q=P2(q);return re(Z,q)}; W2=function(q,Z){q.element.classList.toggle("ytp-volume-popover-hovering",Z);q.isVisible=Z;(q=q.element.closest(".ytp-chrome-bottom"))&&q.classList.toggle("ytp-volume-popover-showing",Z)}; yZ=function(q){this.value=q}; H2=function(q,Z,F,B){F=F.split("#");F=[F[1],F[2],0,F[3],F[4],-1,F[0],""].join("#");g.Ls.call(this,q,Z,F,0);this.K=null;this.Z=B?2:0}; HG7=function(q,Z,F){F=F.opt_configurable_tracking_events;q.D!=null&&Array.isArray(F)&&LGg(q,F,Z)}; Rh=function(q,Z,F,B){A8(q);var f=q.Ec;h8(f,f[Sm]|0,Z,F,B);return q}; kzK=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u,P){for(var W=[],H=g.E(q),X=H.next();!X.done;X=H.next())if(X=X.value,!OG8(X)&&!QA6(X)){var Q=Os(X)&&!!X.slotEntryTrigger.beforeContentVideoIdStartedTrigger,a=b.wj(Q),m=xXG(X,N,B,F.x6,a);if(m instanceof K)return m;var c=void 0,e={slotId:X.adSlotMetadata.slotId,slotType:X.adSlotMetadata.slotType,slotPhysicalPosition:(c=X.adSlotMetadata.slotPhysicalPosition)!=null?c:1,bL:"core",slotEntryTrigger:m.slotEntryTrigger,slotFulfillmentTriggers:m.slotFulfillmentTriggers, slotExpirationTriggers:m.slotExpirationTriggers},Y=g.C(X.fulfillmentContent.fulfilledLayout,QZ);if(Y){if(!x1(Y))return new K("Invalid PlayerBytesAdLayoutRenderer");c=l&&!(Os(X)&&X.slotEntryTrigger.beforeContentVideoIdStartedTrigger);m=m.slotFulfillmentTriggers.some(function(Zg){return Zg instanceof GS}); a=c?Ax6(e,X.adSlotMetadata.triggerEvent,Y,F,B,D,N,q,a,U,m,u):ZID(e,X.adSlotMetadata.triggerEvent,Y,Z,F,B,f,D,G,n,b,N,q,S,a,X.adSlotMetadata.triggeringSourceLayoutId);if(a instanceof K)return a;m=[];P?m.push(new AT({current:P})):m.push(new AT({current:null}));Os(X)&&m.push(new Ez({St:Os(X)&&!!X.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c&&m.push(new v2({}));F.d2&&m.push(new XE({}));m.push(new vM(Q));X=Object.assign({},e,{clientMetadata:new zX(m),fulfilledLayout:a.layout,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData}); W.push.apply(W,g.YB(a.Xo));W.push(X)}else if(Q=g.C(X.fulfillmentContent.fulfilledLayout,Es)){if(!vZk(Q))return new K("Invalid PlayerUnderlayAdLayoutRenderer");Q=XlK(Q,B,F.x6,D,e,X.adSlotMetadata.triggerEvent,X.adSlotMetadata.triggeringSourceLayoutId);if(Q instanceof K)return Q;X=Object.assign({},e,{clientMetadata:new zX([]),fulfilledLayout:Q,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});W.push(X)}else if(Q=g.C(X.fulfillmentContent.fulfilledLayout,EZ9)){if(!Vt(Q.adLayoutMetadata)||!g.C(Q.renderingContent, Ks))return new K("Invalid InPlayerOrganicOverlayAdLayoutRenderer");Q=Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?KG7(Q,B,F.x6,D,e):new K("LayoutType ["+Q.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(Q instanceof K)return Q;X=Object.assign({},e,{clientMetadata:new zX([]),fulfilledLayout:Q,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});W.push(X)}else if(Q=g.C(X.fulfillmentContent.fulfilledLayout,$Xg)){if(!Le6(Q))return new K("Invalid AboveFeedAdLayoutRenderer"); Q=aH6(Q,B,F.x6,D,e,X.adSlotMetadata.triggerEvent,X.adSlotMetadata.triggeringSourceLayoutId);if(Q instanceof K)return Q;X=Object.assign({},e,{clientMetadata:new zX([]),fulfilledLayout:Q,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});W.push(X)}else if(Q=g.C(X.fulfillmentContent.fulfilledLayout,mXZ)){if(!Vt(Q.adLayoutMetadata)||!g.C(Q.renderingContent,ei))return new K("Invalid BelowPlayerAdLayoutRenderer");Q=aH6(Q,B,F.x6,D,e,X.adSlotMetadata.triggerEvent,X.adSlotMetadata.triggeringSourceLayoutId); if(Q instanceof K)return Q;X=Object.assign({},e,{clientMetadata:new zX([]),fulfilledLayout:Q,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});W.push(X)}else if(Q=g.C(X.fulfillmentContent.fulfilledLayout,$1)){if(!aY(Q))return new K("Invalid PlayerBytesSequenceItemAdLayoutRenderer");Q=iG9(Q,B,F.x6,D,e,X.adSlotMetadata.triggerEvent);if(Q instanceof K)return Q;X=Object.assign({},e,{clientMetadata:new zX([]),fulfilledLayout:Q,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});W.push(X)}else return new K("Unable to retrieve a client slot ["+ e.slotType+"] from a given AdSlotRenderer")}return W}; cP=function(q){return g.p(q,128)?-1:g.p(q,2)?0:g.p(q,2048)?3:g.p(q,64)?-1:g.p(q,1)&&!g.p(q,32)?3:g.p(q,8)?1:g.p(q,4)?2:-1}; hx=function(){this.D=new Map}; jAb=function(q,Z){return sAg(q,function(F){return F.S},Z===void 0?!0:Z)}; z1=function(q,Z,F,B){B=B===void 0?{}:B;var f={},D=Math.round(B.timestamp||(0,g.Le)());f.eventTimeMs=D-1&&(0,g.Le)()-B.PG=q.policy.TZ,G=!1;if(D){var n=0;!isNaN(Z)&&Z>q.Z&&(n=Z-q.Z,q.Z=Z);n/f=q.policy.zs&&!q.S;if(!D&&!F&&cxk(q,Z))return NaN;F&&(q.S=!0);a:{B=G;F=(0,g.Le)()/1E3-(q.XJ.Cm()||0)-q.X.D-q.policy.ac;D=q.K.startTime;F=D+F;if(B){if(isNaN(Z)){tT(q,NaN,"n",Z);D=NaN;break a}B=Z-q.policy.Gs;B=24&&Z[z[1]]!=0&&(F=(F%Z[z[1]]+Z[z[1]])%Z[z[1]],Z[z[34]](0,1,Z[z[34]](F,1,Z[0])[0]));if(!(q>>1&14)){Hs(8,Z);B=Z[z[10]]+(Z[z[10]]?z[49]:z[74])+Z[z[54]]+Z[z[23]];if(QV(1,Z)){var n=[];g.Hh(Z[z[6]],function(b,N){b!==null&&n[z[3]](N+z[31]+b)}); B+=z[61]+n[z[21]](z[65])}G=B}(q>>1&14)==2&&(f=g.C(Z,Vv7)||Z[z[47]],B={Cj:!1,qL:z[15],gw:z[15],s:z[15]},f?(f=lX(f),B[z[52]]=!0,B[z[86]]=f[z[11]],B[z[53]]=f[z[24]],B[z[69]]=f[z[69]],G=B):G=B);if((q>>2&14)==2)for(B=Z[z[1]];B;)Z[z[3]](Z[z[34]](--B,1)[0]);return G}; g.UK=function(q){return"crn_"+q}; oR=function(q,Z){x9.call(this,q,Z,"timedMarkerCueRange","Ver momentos clave");this.N(q,g.s2("timedMarkerCueRange"),this.y5);this.N(q,"updatemarkervisibility",this.updateVideoData)}; tD=function(q){g.J.call(this);this.D=q;this.K=eKk(this)}; $Z=function(){return eRD()||fK()||Bm()?!0:g.oa("EOM_VISITOR_DATA")?!1:!0}; g.pX=function(q){q.cursor.continue(void 0);return fp(q.request)}; rc=function(q,Z,F,B,f){if(Array.isArray(Z)){for(var D=0;D=0)for(var f=B;f<=B+1&&f=D.Rc-F&&Z<=D.Ya+F)return D}}; qU8=function(q){if(q.csn!==g.qx())if(q.csn==="UNDEFINED_CSN")q.csn=g.qx();else{var Z=g.qx(),F=g.q4();if(Z&&F){q.csn=Z;for(var B=g.E(q.elements),f=B.next();!f.done;f=B.next())(f=f.value.visualElement)&&f.isClientVe()&&Z&&F&&(g.cz("combine_ve_grafts")?Zt(FJ(),f,F):g.jJ(g.y$)(void 0,Z,F,f))}if(Z)for(q=g.E(q.D),F=q.next();!F.done;F=q.next())(F=F.value.visualElement)&&F.isClientVe()&&g.Bt(Z,F)}}; wL=function(q){for(var Z=q.videoData.D,F=g.E(Object.entries({cpn:q.videoData.clientPlaybackNonce,c:q.J.D.c,cver:q.J.D.cver})),B=F.next();!B.done;B=F.next()){var f=g.E(B.value);B=f.next().value;f=f.next().value;for(var D=g.E(Object.values(Z.D)),G=D.next();!G.done;G=D.next())ZB9(G.value.m6,B,f);D=void 0;(D=Z.PG)==null||ZB9(D,B,f)}B=q.J;F=q.videoData;f=q.Zv;f=f===void 0?B.schedule:f;Z=new g.FtD(B);D=ZmD({hasSubfragmentedFmp4:F.hasSubfragmentedFmp4,ut:F.ut});Z.V=D;D=f;D=D===void 0?B.schedule:D;Z.Y$=F.maxReadAheadMediaTimeMs/ 1E3||Z.Y$;D.S.Cm()===D.policy.S?Z.j$=10:Z.j$=F.minReadAheadMediaTimeMs/1E3||Z.j$;Z.UT=F.readAheadGrowthRateMs/1E3||Z.UT;F.E9&&(Z.j=!0,Z.I_=!0);Z.zE=!ft();g.em(B)||!ft()?(Z.WG=8388608,Z.Jn=524288,Z.D9=5,Z.Oc=1048576,Z.Rs=1.5,Z.Ml=4587520,Dt()&&(Z.Ml=786432),Z.PG*=1.1,Z.zP*=1.1,Z.GA=!0):B.K&&(Z.PG*=1.3,Z.zP*=1.3);g.l2&&g.Vd("crkey")&&(D=B.D.cmodel==="CHROMECAST/ANCHOVY",Z.WG=20971520,Z.Jn=1572864,D&&(Z.Ml=812500,Z.gj=1E3,Z.PR=5,Z.Oc=2097152));g.Y2&&(Z.GA=!0);B.supportsGaplessAudio()||(Z.c5=!1);eT&& (Z.QC=!0);D=f;D=D===void 0?B.schedule:D;Z.Lm=B.U("html5_peak_shave");F.fetchType==="onesie"&&B.U("html5_disable_peak_shave_for_onesie")&&(Z.Lm=!1);var n;f=(n=F.D)==null?void 0:G_(n);if(vA(F)){Z.SW=!0;Z.KR||(Z.sX=!0);Z.G0=!0;Z.Ds=!0;Z.aK=!0;if(F.latencyClass==="ULTRALOW"||F.latencyClass==="LOW"&&!B.U("html5_disable_low_pipeline"))Z.nU=2,Z.O4=4;Z.BX=F.defraggedFromSubfragments;g.z_(F)&&(Z.Gb=!1);Z.Kk=g.Za(B)}F.isAd()&&(Z.JV=0,Z.TY=0);Z.fD=B.U("html5_ultra_low_latency_subsegment_readahead")&&F.latencyClass=== "ULTRALOW";Z.S=B.Nl();n=0;B.U("html5_live_use_alternate_bandwidth_window_sizes")&&(n=D.policy.D,F.isLivePlayback&&(n=g.Ce(B.experiments,F.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":F.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||n));G=n;D.K.G=vA(F)?.5:0;if(!D.policy.K&&G&&(n=D.S,D=Math.round(G*n.resolution),D!==n.D)){G=Array(D);var b=Math.min(D,n.S?n.D:n.K),N=n.K-b;N<0&&(N+=n.D);for(var S=0;S0&&(Z.zH=F.qj));Z.nD=F.nD;Z.NP=bj(B,{},F.S||void 0,N4(F));Z.vG=KS(F)&&(g.SQ(B)||g.gL(B));Im(F)&&(Z.Z=!0,Z.qj=B.U("html5_estimate_live_partial_slice_duration"),g.em(B)&&!g.TP()&&B.U("html5_force_audio_to_cover_video_keyframe")?Z.w2=!1:Z.w2=!0,n=B.experiments.A1(),Z.mO||F.isLivePlayback||!n.D.Q5(fT7)|| (Z.J$=!0,n=n.D.Q5(DqG),Z.Si=n),B.U("html5_sabr_report_partial_segment_estimated_duration")&&(Z.hH=!0),Z.D=!0,Z.jA=B.U("html5_disable_client_resume_policy_for_sabr"),Z.CH=B.U("html5_trigger_loader_when_idle_network"),Z.FP=B.U("html5_sabr_parse_live_metadata_playback_boundaries"),Z.wx=B.U("html5_consume_onesie_next_request_policy_for_sabr"),Z.E9=B.U("html5_sabr_report_next_ad_break_time"),Z.KU=B.U("html5_log_high_res_buffer_timeline")&&B.Nl(),Z.YZ=B.U("html5_remove_stuck_slices_beyond_max_buffer_limits"), Z.Aj=B.U("html5_gapless_sabr_btl_last_slice")&&NM(F),Z.nH=B.U("html5_reset_last_appended_slice_on_seek")&&NM(F),vA(F)?(Z.KK=!0,Z.t3=B.U("html5_disable_variability_tracker_for_live"),Z.eU=!0,B.U("html5_simplified_backup_timeout_sabr_live")&&(Z.Sr=!0,Z.gj=Z.u2)):Z.bb=B.U("html5_probe_request_on_sabr_request_progress"),Z.Mx=B.U("html5_serve_start_seconds_seek_for_post_live_sabr"),Z.OP=B.U("html5_flush_index_on_updated_timestamp_offset"),Z.Dl=Im(F),Z.vX=B.U("html5_ignore_partial_segment_from_live_readahead"), B.U("html5_include_partial_segment_for_jumbo_ll")&&nt(F)&&(Z.vX=!1),Z.M2=B.U("html5_use_non_active_broadcast_for_post_live"),Z.dU=B.U("html5_use_centralized_player_time"),Z.VO=B.U("html5_log_centralized_player_time"),Z.cH=B.U("html5_consume_onesie_sabr_seek"),Z.uL=B.U("html5_enable_sabr_seek_loader_refactor"),Z.Ob=g.Ce(B.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),Z.sb=B.U("html5_update_segment_start_time_from_media_header"),F.enableServerStitchedDai&&(Z.K=!0,Z.LH=B.U("html5_reset_server_stitch_state_for_non_sabr_seek"), Z.uD=B.U("html5_remove_ssdai_append_pause")&&!F.tP(),Z.Hg=B.U("html5_ssdai_log_ssevt_in_loader")||B.U("html5_ssdai_log_ssevt_in_loader_200ms")||B.U("html5_ssdai_log_ssevt_in_loader_timers")||B.U("html5_ssdai_log_ssevt_in_loader_cuerange"),B.U("html5_ssdai_log_ssevt_in_loader_timers")?Z.KB=1:B.U("html5_ssdai_log_ssevt_in_loader_200ms")?Z.KB=3:B.U("html5_ssdai_log_ssevt_in_loader_cuerange")&&(Z.KB=0)),Z.JJ=B.Nl()||F.tP(),Z.v2=F.d2()&&B.U("html5_prebuffer_instream_media_live")&&B.U("html5_report_prefetch_requests"), Z.Jy=!F.d2()&&B.U("html5_prebuffer_instream_media_vod")&&B.U("html5_report_prefetch_requests"));Z.yC=g.GQZ(F);Sc(B.Z,lj.BITRATE)&&(Z.Ml=NaN);if(n=g.Ce(B.experiments,"html5_request_size_max_kb"))Z.Oc=n*1024;B.Z.S?Z.sO="; "+lj.EXPERIMENTAL.name+"=allowed":B.U("html5_enable_cobalt_tunnel_mode")&&g.TP()&&(B=lj.TUNNELMODE,Z.sO="; "+B.name+"="+B.valid);F=F.serverPlaybackStartConfig;(F==null?0:F.enable)&&(F==null?0:F.playbackStartPolicy)&&(Z.bI=!0,UV(Z,F.playbackStartPolicy,2));F=zn7(q);q.Rj.removeAll(); a:{B=q.gq.Wa;if(n=q.videoData.videoId)if(f=B.D.get(n)){B.D.remove(n);B=f;break a}B=void 0}q.loader=new g.uj(q,q.Zv,Z,q.videoData.D,q.videoData.S,Ld(q),F,q.videoData.enableServerStitchedDai,B,q.videoData.Dl);Z=q.videoData.U("html5_disable_preload_for_ssdai_with_preroll")&&q.videoData.isLivePlayback&&q.hS()?!0:q.Kb&&Pt(q);q.loader.initialize(q.getCurrentTime(),Ld(q),Z);q.videoData.probeUrl&&(q.loader.Jn=q.videoData.probeUrl);if(q.Y3.length||q.Kb)q.videoData.cotn||rL(q,!1);eF(q.t0,q.loader);q.h0&&(nug(q.loader, new g.fN(q.h0)),q.iL("sdai",{sdl:1}));g.X4(q.videoData)&&(q=q.loader,q.policy.PX=q.policy.nW)}; bB8=function(q,Z){mx(q,1,Z.deviceInterface);Nd(q,2,Z.deviceVersion);Wt(q,3,Z.isSleeping)}; Cp=function(q,Z,F,B,f,D){f=f===void 0?0:f;D=D===void 0?!1:D;g.J.call(this);this.K=q;this.S=!1;this.PG=B;this.Dl=D;this.j=!1;this.D=null;Z>0&&(this.D=new g.im(this.X5,Z,this),g.y(this,this.D));this.Z=new g.im(this.X5,F,this);g.y(this,this.Z);this.V=NI9(this.K,f,1,B);g.y(this,this.V);this.X=NI9(this.K,0,B,1);g.y(this,this.X);this.G=new t8;g.y(this,this.G)}; Tj=function(){var q=null;try{q=g.W5.localStorage||null}catch(Z){}yw.call(this,q)}; guG=function(q,Z){return q.B.U("delhi_modern_web_player_icons")?Z?{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z", fill:"white"}}]}:{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z", fill:"white"}}]}:Z?{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"g",W:"ytp-fullscreen-button-corner-2",T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{Y:"g",W:"ytp-fullscreen-button-corner-3",T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{Y:"g",W:"ytp-fullscreen-button-corner-0",T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{Y:"g",W:"ytp-fullscreen-button-corner-1", T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"g",W:"ytp-fullscreen-button-corner-0",T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{Y:"g",W:"ytp-fullscreen-button-corner-1",T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{Y:"g",W:"ytp-fullscreen-button-corner-2",T:[{Y:"path",Sn:!0,W:"ytp-svg-fill", L:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{Y:"g",W:"ytp-fullscreen-button-corner-3",T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}}; SUG=function(q,Z,F){Z=g.E(Z);for(var B=Z.next();!B.done;B=Z.next()){B=B.value;var f=void 0,D=Number((f=B.playbackRelativePosition)==null?void 0:f.utcTimeMs)/1E3,G=void 0;f=D+Number((G=B.duration)==null?void 0:G.seconds);G="stations:"+F+":"+D;q.K.has(G)||(q.K.add(G),B.onEnter&&(q.D[G]=B.onEnter),q.api.addUtcCueRange(G,D,f,F,!1))}}; UqK=function(q){return{SC:ps(q,1,csX),trackType:Ta(q,2),Zi:Ta(q,3),timeRange:ps(q,4,lT9)}}; Lt=function(q,Z){q.D.has(Z)?(q.D.delete(Z),delete mW().D[Z]):Yp("Unexpected unregistration of layout in LidarApi")}; Png=function(q,Z){pu9(q.D,Z,function(){return{Con:0,mE:void 0,T1:-1,V2:-1,b4:-1,Eh:-1,Hq:-1,oy:-1,Mt:-1,Lg:-1,Cz:-1,position:void 0,PM:void 0,Dn:[]}}); q.D[Z]=ui9(q)}; bF9=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}}; g.rQ=function(q){g.a3.call(this,q);this.chrome=null;this.load()}; OV=function(q,Z,F,B,f,D){nX.call(this,q,{Y:"div",W:"ytp-ad-preview-slot"},"ad-preview",Z,F,B,f);var G=this;this.o_=-1;this.G=this.api.C().experiments.qp("enable_modern_skip_button_on_web");this.K=new g.xT({Y:"span",W:"ytp-ad-preview-container"});this.G&&this.K.element.classList.add("ytp-ad-preview-container-detached");g.y(this,this.K);this.S=this.G?new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,"ytp-ad-preview-text-modern"):new N$(this.api,this.layoutId,this.interactionLoggingClientData, this.x$,"ytp-ad-preview-text");g.y(this,this.S);this.S.R_(this.K.element);this.k$=this.G?new g.xT({Y:"span",W:"ytp-ad-preview-image-modern"}):new g.xT({Y:"span",W:"ytp-ad-preview-image"});g.y(this,this.k$);this.Z=new Ht(this.api,this.layoutId,this.interactionLoggingClientData,this.x$);g.y(this,this.Z);this.Z.R_(this.k$.element);this.k$.R_(this.K.element);this.K.R_(this.element);this.uL=new g.L3(this.K,400,!1,100,function(){return G.hide()}); g.y(this,this.uL);this.BG=0;this.Oc=!1;this.I_=D;this.hide()}; wh6=function(q){if(g.yF(q))for(var Z in q)Z==="html_content"||reb(Z,"_html")?q[Z]=Au(q[Z]):wh6(q[Z])}; g.Qw=function(q){return q.translationLanguage?q.translationLanguage.languageCode:q.languageCode}; xM=function(q){this.value=q}; g.vu=function(q){g.xl.call(this);this.headers=new Map;this.k$=q||null;this.S=!1;this.D=null;this.V="";this.K=0;this.G="";this.Z=this.zP=this.PG=this.uL=!1;this.Dl=0;this.j=null;this.Y$="";this.X=!1}; GL=function(q){this.D=q||{cookie:""}}; WtX=function(q){q.Z=0;q.D="hidden";q.K=void 0;q.G=void 0;q.j.stop();q.S=void 0}; XJ=function(q,Z){var F,B=(F=q.j$[Z])==null?void 0:F.chapters;B&&(EXD(q,B),q.api.getVideoData().nE=q.D,yeK(q));var f;if((F=(f=q.j$[Z])==null?void 0:f.markers)&&Z!=="HEATSEEKER"){AH(q);f=g.E(F);for(F=f.next();!F.done;F=f.next())if(B=F.value,F=new vt,B=g.C(B,g.LtK)){var D=void 0;F.title=((D=B.title)==null?void 0:D.simpleText)||"";D=void 0;F.timeRangeStartMillis=(D=B.timeRangeStartMillis)!=null?D:NaN;var G=D=void 0;F.onActiveCommand=(G=(D=B)==null?void 0:D.onActiveCommand)!=null?G:void 0;HBK(q,F)}f5(q, q.X);f=q.X;F=q.SW;B=[];for(D=0;D=G&&W<=S&&D.push(U)}b>0&&(q.uL.style.height=b+"px");G=q.G[B];S=D;U=f;P=b;W=B===0;W=W===void 0?!1:W;Ae7(G,P);l=S;u=G.K;W=W===void 0?!1:W;var H=1E3/l.length,X=[];X.push({x:0,y:100});for(var Q=0;Q0&&(F=D[D.length-1])}g.cL(q);n=[];Z=g.E(Z.heatMarkersDecorations||[]);for(f=Z.next();!f.done;f=Z.next())if(f=g.C(f.value,vuk))b=f.label,B=F=N=void 0,n.push({visibleTimeRangeStartMillis:(N=f.visibleTimeRangeStartMillis)!=null?N:-1,visibleTimeRangeEndMillis:(F=f.visibleTimeRangeEndMillis)!=null?F:-1,decorationTimeMillis:(B=f.decorationTimeMillis)!=null?B:NaN,label:b?g.HD(b):""});q.heatMarkersDecorations=n}}; EV=function(q,Z){return pa(q,Z,function(F){return F.K})}; l5=function(q){var Z=[];g.Hh(q,function(F,B){var f=g.y5(B);g.yn(Array.isArray(F)?F:[F],function(D){D==""?Z.push(f):Z.push(f+"="+g.y5(D))})}); return Z.join("&")}; Xhb=function(){var q;if(g.cz("csi_use_performance_navigation_timing")){var Z,F,B,f=tp==null?void 0:(q=tp.getEntriesByType)==null?void 0:(Z=q.call(tp,"navigation"))==null?void 0:(F=Z[0])==null?void 0:(B=F.toJSON)==null?void 0:B.call(F);f?(f.requestStart=Kt(f.requestStart),f.responseEnd=Kt(f.responseEnd),f.redirectStart=Kt(f.redirectStart),f.redirectEnd=Kt(f.redirectEnd),f.domainLookupEnd=Kt(f.domainLookupEnd),f.connectStart=Kt(f.connectStart),f.connectEnd=Kt(f.connectEnd),f.responseStart=Kt(f.responseStart), f.secureConnectionStart=Kt(f.secureConnectionStart),f.domainLookupStart=Kt(f.domainLookupStart),f.isPerformanceNavigationTiming=!0,q=f):q=tp.timing}else q=g.cz("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(tp.timing)):tp.timing;return q}; Q3g=function(q){var Z;g.h(function(F){if(F.D==1)return g.cz("start_client_gcf")||g.cz("delete_gcf_config_db")?g.cz("start_client_gcf")?g.R(F,g.$M(),3):F.An(2):F.return();F.D!=2&&((Z=F.K)&&g.bE()&&!g.cz("delete_gcf_config_db")?(q.Z=!0,t6G(q)):(Eu7(q),Kt8(q)));return g.cz("delete_gcf_config_db")?g.R(F,Qu9(),0):F.An(0)})}; $q6=function(q){if(!q.D){var Z=g.sy(function(B){var f=(0,g.Le)();B&&f<=631152E6&&(q.Mp.iL("ytnerror",{issue:28799967,value:""+f}),f=(new Date).getTime()+2);return f},q.J.U("html5_validate_yt_now")),F=Z(); q.D=function(){return Math.round(Z()-F)/1E3}; q.Mp.Ax()}return q.D}; aR=function(q){this.value=q}; iBb=function(q,Z,F){q.S||(q.S=new aTB(q.K));return mqB(q.S,Z,F)}; m8=function(q,Z,F,B){for(var f=0;f0){var S=B+Number(F.startTimeOffsetMs),l=S+Number(F.cacheFetchSmearingDurationMs);N={JS:new jA(l,l+Number(N)),aM:!1,aG:new jA(Math.floor(S+Math.random()* Number(F.cacheFetchSmearingDurationMs)),l),cueProcessedMs:B?B:S};S=[];S.push(new Ct({}));l=[];l.push(new hH(q.D));l.push(new T4B(q.D));G&&S.push(new v2({}));n.push(me(q,Z,f,N,D,S,l))}return n}; RR=function(){var q=/Chrome\/(\d+)/.exec(g.bm());return q?parseFloat(q[1]):NaN}; oJ=function(q){var Z=q;return function(){if(Z){var F=Z;Z=null;F()}}}; g.NH=function(q,Z){g.ct(q,"addEmbedsConversionTrackingParams",[Z])}; JH=function(){var q=window;this.events=[];this.K=q||g.W5;var Z=null;q&&(q.google_js_reporting_queue=q.google_js_reporting_queue||[],this.events=q.google_js_reporting_queue,Z=q.google_measure_js_timing);this.D=QI()||(Z!=null?Z:Math.random()<1)}; Qg=function(){var q="youtube.player.web_20251005_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20251005_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20251005_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20251005_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),Z;if(((Z=q)==null?void 0:Z.length)==2)return q[1];q="youtube.player.web_20251005_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var F;return((F=q)==null?void 0:F.length)==3?"20"+q[1]+q[2]:null}; Vw=function(q,Z){if(!q.jU())if(g.p(Z.state,2)||g.p(Z.state,512)){if(q.j="paused",g.YM(Z,2)||g.YM(Z,512))g.YM(Z,2)&&(q.D.previouslyEnded=!0),q.S&&(tH(q),g7(q).send(),q.G=NaN)}else if(g.p(Z.state,8)){q.j="playing";var F=q.S&&isNaN(q.Z)?pt(q):NaN;if(!isNaN(F)&&(dL(Z,64)<0||dL(Z,512)<0)){var B=NT(q,!1);B.X=F;B.send()}g.YM(Z,16)&&Z.state.seekSource===58&&(q.D.previouslyEnded=!0)}else q.j="paused"}; g.YU9=function(q){var Z=q.B.C();if(Z.S||Ap(Z)||Z.j||!Z.X3&&!Z.hC)return!1;var F=q.B.getPresentingPlayerType();if(F===2||F===3)return!1;q=q.B.getVideoData();if(!q)return!1;F=!q.isLiveDefaultBroadcast||Z.U("allow_poltergust_autoplay");F=q.isLivePlayback&&(!Z.U("allow_live_autoplay")||!F);Z=q.isLivePlayback&&Z.U("allow_live_autoplay_on_mweb");return!F||Z}; ec=function(q){return{itag:Ta(q,1),lmt:Ta(q,2),xtags:eQ(q,3)}}; Cm=function(q){this.value=q}; mT=function(q,Z){return q.U(Z)?!0:(q.fflags||"").includes(Z+"=true")}; ea=function(q,Z,F){q.B.iL(Z,F);Yyy(q)}; P8K=function(){return gE()?!1:lm("Trident")||lm("MSIE")}; TW=function(){var q,Z,F;return(F=(q=globalThis.performance)==null?void 0:(Z=q.now)==null?void 0:Z.call(q))!=null?F:Date.now()}; taG=function(q,Z){q=g.E(Z);for(Z=q.next();!Z.done;Z=q.next())if((Z=Z.value.renderer)&&(Z.instreamVideoAdRenderer||Z.linearAdSequenceRenderer||Z.sandwichedLinearAdRenderer||Z.instreamSurveyAdRenderer)){n4("ad_i");g.ZR({isMonetized:!0});break}}; av=function(q){this.value=q}; T_=function(q,Z){q=q instanceof Uint8Array?new bN([q]):q;return Z(new dB(q))}; Q5=function(q,Z,F){return{ssvc:Z,cpn:(F==null?void 0:F.cpn)||"",vid:(F==null?void 0:F.videoData.videoId)||"",ct:(q.playback.getCurrentTime()||0).toFixed(3),cmt:(q.playback.rR()||0).toFixed(3)}}; M4=function(q){q=Error(q);NNK(q,"warning");return q}; RB=function(q,Z){q.D=Z;if(Z>q.S)throw Error();}; Va8=function(q,Z,F,B,f){Z=ph7(Z,B);Z!=null&&(F=dq7(q,F),f(Z,q),MjD(q,F))}; xW=function(q){for(var Z=0,F=q.D,B=F+10,f=q.K;F=0&&Z<=1?Z:0;this.D=q=3&&(q.eC=(q.eC<=3)if(F=Pl(q,q.AZ-q.Tm,q.Qd-3),q.e$-=q.Qd,q.Qd<=q.YU&&q.e$>=3){q.Qd--;do q.AZ++,q.eC=(q.eC<0));q.Nl()&&UcK();Error.stackTraceLimit=50;var f=g.Ce(Z,"html5_idle_rate_limit_ms");f&&Object.defineProperty(window,"requestIdleCallback",{value:function(D){return window.setTimeout(D,f)}}); rdX(q.Z);wIg(F("html5_use_ump_request_slicer"));WrD(F("html5_record_now"));F("html5_disable_streaming_xhr")&&(s_=!1);F("html5_byterate_constraints")&&(xi=!0);F("html5_use_non_active_broadcast_for_post_live")&&(yC=!0);F("html5_enable_encrypted_av1")&&(AI=!0);ydZ(g.Ce(q.experiments,"html5_sticky_duration_mos"))}; YYX=function(q){this.K=q}; vd=function(q,Z){this.m6=q;this.D=Z===void 0?!1:Z;this.K=!1}; XL=function(q){this.value=q}; ES=function(q,Z,F){Z=Lrg[Z];var B,f,D={detected:q===0,source:""+Z.K+((B=F.triggerContext)!=null?B:"")+((f=F.lR)!=null?f:""),detectionStates:F.states,durationMs:F.Od};F.metadata&&(D.contentCpn=F.metadata.contentCpn,D.adCpn=F.metadata.adCpn);g.nh("biscottiBasedDetection",D);Z.D!==void 0&&(F=Number(g.oa("CATSTAT",0)),Z.D!==void 0?(Z=Z.D,q=nEK(q),q=F&~(3<>7&&283);sS=new Uint8Array(256);jU=I7(256);Cq=I7(256);hI=I7(256);R7=I7(256);for(var D=0;D<256;D++){f=D?B[255^F[D]]:0;f^=f<<1^f<<2^f<<3^f<<4;f=f&255^f>>>8^99;sS[D]=f;Z=f<<1^(f>>7&&283);var G=Z^f;jU[D]=Z<<24|f<<16|f<<8|G;Cq[D]=G<<24|jU[D]>>>8;hI[D]=f<<24|Cq[D]>>>8;R7[D]=f<<24|hI[D]>>>8}k1K=!0}f=I7(44);for(F= 0;F<4;F++)f[F]=q[4*F]<<24|q[4*F+1]<<16|q[4*F+2]<<8|q[4*F+3];for(B=1;F<44;F++)q=f[F-1],F%4||(q=(sS[q>>16&255]^B)<<24|sS[q>>8&255]<<16|sS[q&255]<<8|sS[q>>>24],B=B<<1^(B>>7&&283)),f[F]=f[F-4]^q;this.key=f}; JI=function(q,Z,F){return q?!0:(g.bh(new g.M2("Assertion: "+Z,F)),!1)}; AE=function(q){return q.classList?q.classList:tvK(q).match(/\S+/g)||[]}; Yi=function(q){q.JP&&(q.JP.dispose(),q.JP=null)}; kb=function(q,Z,F){Z=Z===void 0?!0:Z;F=F===void 0?!1:F;g.w.call(this,{Y:"div",W:"ytp-suggested-action"});var B=this;this.B=q;this.Gb=this.uL=this.zP=this.Dl=this.G=this.X=this.expanded=this.enabled=this.o_=!1;this.vG=new g.im(function(){B.badge.element.style.width=""},200,this); this.WG=new g.im(function(){I_(B);tI(B)},200,this); this.Oc=this.B.U("delhi_modern_web_player")?40:34;this.dismissButton=new g.w({Y:"button",rU:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.y(this,this.dismissButton);this.S=new g.w({Y:"div",W:"ytp-suggested-action-badge-expanded-content-container",T:[{Y:"label",W:"ytp-suggested-action-badge-title",Ka:"{{badgeLabel}}"},this.dismissButton]});g.y(this,this.S);this.dU=new g.w({Y:"div",W:"ytp-suggested-action-badge-icon-container",T:[Z?{Y:"div",W:"ytp-suggested-action-badge-icon"}: ""]});g.y(this,this.dU);this.badge=new g.w({Y:F?"div":"button",rU:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],T:[this.dU,this.S]});g.y(this,this.badge);this.badge.R_(this.element);this.V=new g.L3(this.badge,250,!1,100,function(){B.B.U("web_player_overlay_positioned_layout")&&B.hide()}); g.y(this,this.V);q.U("web_player_overlay_positioned_layout")&&this.hide();this.I_=new g.L3(this.S,250,!1,100);g.y(this,this.I_);this.Jn=new g.S2(this.Een,null,this);g.y(this,this.Jn);this.eU=new g.S2(this.E5,null,this);g.y(this,this.eU);g.y(this,this.vG);g.y(this,this.WG);this.B.createServerVe(this.badge.element,this.badge,!0);this.B.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.N(this.B,"onHideControls",function(){B.kh(!1)}); this.N(this.B,"onShowControls",function(){B.kh(!0)}); this.N(this.badge.element,"click",this.Ki);this.N(this.dismissButton.element,"click",this.o8);this.N(this.B,"pageTransition",this.U3);this.N(this.B,"appresize",this.S5);this.N(this.B,"fullscreentoggled",this.F6E);this.N(this.B,"cardstatechange",this.Ul_);this.N(this.B,"annotationvisibility",this.y1E,this);this.N(this.B,"offlineslatestatechange",this.gbU,this)}; V7=function(q){q=new g.pq(q);g.dA(q,document.location.protocol);return q.toString()}; st8=function(q){return q.startsWith("//")?"https:"+q:q}; Bc=function(){var q=Qt;return q.D.length==0?q.K:q.K.length==0?q.D:g.eU(q.K,q.D)}; fK=function(){return(Z7||Tp)&&g.Vd("applewebkit")&&!g.Vd("version")&&(!g.Vd("safari")||g.Vd("gsa/"))}; jty=function(q){q.D.queryid||(q.D.queryid=new MF)}; yd=function(q,Z){ec9(Z);this.D=q;if(q!=null&&q.length===0)throw Error("ByteString should be constructed with non-empty values");}; C66=function(q,Z,F){if(F!=null){switch(typeof F){case "string":ICD(F)}XF(q,Z,1);switch(typeof F){case "number":q=q.D;yj(F);Fg(q,KK);Fg(q,$v);break;case "bigint":F=BigInt.asUintN(64,F);F=new oS(Number(F&BigInt(4294967295)),Number(F>>BigInt(32)));q=q.D;Z=F.D;Fg(q,F.K);Fg(q,Z);break;default:F=ICD(F),q=q.D,Z=F.D,Fg(q,F.K),Fg(q,Z)}}}; Zv=function(){qu.apply(this,arguments)}; hLD=function(q){if(!q)return null;var Z=q.split("x");if(Z.length!==2)return null;q=Number(Z[0]);Z=Number(Z[1]);return isNaN(q)||isNaN(Z)||q*Z<=0?null:new g.d8(q,Z)}; g.Fc=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},T:[{Y:"path",L:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}}; Gg=function(q){var Z;g.By()?fk()==q&&(Z=document):Z=q;return Z&&(q=Dv(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Z))?(Z=q.call(Z),Z instanceof Promise?Z:Promise.resolve()):Promise.resolve()}; cd8=function(q,Z){if(q!=null)if(typeof q==="string")q=q?new yd(q,eG):zg();else if(q.constructor!==yd)if(RL7&&q!=null&&q instanceof Uint8Array)q=q.length?new yd(new Uint8Array(q),eG):zg();else{if(!Z)throw Error();q=void 0}return q}; JdZ=function(q){var Z=g.uK("html5-video-player");Z&&g.hK(Z,"ytp-ad-display-override",q)}; nk=function(q){if(!q.provider.J.U("html5_qoe_no_len_check")){for(var Z=0,F=g.E(q.D.entries()),B=F.next();!B.done;B=F.next()){var f=g.E(B.value);B=f.next().value;f=f.next().value;Z+=B.length+Number(lb(f,function(D,G){return D+G.length},0))}Z>96E3&&(new g.im(q.reportStats,0,q)).start()}}; Yhy=function(){return{Y:"svg",L:{height:"100%",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",L:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}}; sB=function(q,Z,F,B,f,D){var G={format:"RAW"},n={};if(iw(q)&&Ec()){var b=g.oa("EOM_VISITOR_DATA");b?n["X-Goog-EOM-Visitor-Id"]=b:B?n["X-Goog-Visitor-Id"]=B:g.oa("VISITOR_DATA")&&(n["X-Goog-Visitor-Id"]=g.oa("VISITOR_DATA"));F&&(n["X-Goog-PageId"]=F);(B=Z.zP)&&!CV(Z)&&(n["X-Goog-AuthUser"]=B);f&&(n.Authorization="Bearer "+f);Z.U("enable_datasync_id_header_in_web_vss_pings")&&Z.sX&&Z.datasyncId&&(n["X-YouTube-DataSync-Id"]=Z.datasyncId);if(Z.U("enable_rollout_token_header")){var N,S,l=(N=g.oa("INNERTUBE_CONTEXT"))== null?void 0:(S=N.client)==null?void 0:S.rolloutToken;l&&(n["X-YouTube-Rollout-Token"]=l)}b||n["X-Goog-Visitor-Id"]||f||F||B?G.withCredentials=!0:Z.U("html5_send_cpn_with_options")&&G1b.test(q)&&(G.withCredentials=!0)}Object.keys(n).length>0&&(G.headers=n);D&&(G.onFinish=D);return Object.keys(G).length>1?G:null}; pIB=function(q){var Z;g.h(function(F){if(!q.sP)throw Z=g.mJ("clearSWHealthLogsDb"),Z;return F.return(tE8(q.sP).catch(function(B){q.handleError(B)}))})}; d_k=function(q,Z){return q.Z?new gV(Math.max(Z.top+q.Z.top,Z.top),Math.min(Z.left+q.Z.right,Z.right),Math.min(Z.top+q.Z.bottom,Z.bottom),Math.max(Z.left+q.Z.left,Z.left)):Z.clone()}; VEB=function(q,Z){a:{if(q.PG>0){var F=Math.floor((0,g.Le)()/1E4);if(F===Z.q_){if(Z.bJ>=q.PG){Z.bJ===q.PG&&(F={reason:"toomanyrequests"},F.limit=Z.bJ,q.loader.handleError("player.exception",F),Z.bJ+=1);Z=!1;break a}}else Z.q_=F,Z.bJ=0}Z=!0}if(!Z||q.loader.isSuspended&&q.loader.E_)return!1;if(q.Dl&&(0,g.Le)()0)||q.policy.Dl&&q.D.length===1&&q.D[0].uC()?!0:!1){var B;Z=(B=q.Np.PG)!=null&&b_(B,q.policy,q.G,q.loader.Ix())?!0:!1}return Z?!0:!1}; Nu=function(){this.mappings=new eLD}; WT=function(q,Z,F,B){B=B===void 0?"":B;q.updateValue("label",F===void 0?"":F);q.updateValue("icon",Z);g.HP(q.D);q.K.start();q.updateValue("title",B);g.hK(q.element,"ytp-bezel-text-hide",!B)}; ThK=function(q){var Z;(Z=q.w2)==null||Z.stop();q.countdownTimer.hide()}; MEK=function(q,Z,F,B,f){zE(F,Z);B=Mq({cttAuthInfo:ot(Z)||void 0},Z);F={csn:Z,ve:F.getAsJson(),eventType:1};f&&(F.clientData=f);Z==="UNDEFINED_CSN"?G1("visualElementShown",B,F):q?z1("visualElementShown",F,q,B):g.nh("visualElementShown",F,B)}; gZ=function(q){this.Ec=rE(q,4)}; l_=function(q,Z){q.playlist&&(g.dN(q.playlist),q.playlist=null);Z&&(q.gF&&(Z.fetch=0),q.playlist=new Sf(q.J,Z))}; Yb=function(q,Z,F,B,f,D){g.In.call(this);var G=this;this.target=q;this.api=Z;this.WN=F;this.K=0;this.j=!1;this.G=new g.e_(NaN,NaN);this.D=new g.pO(this);this.Y$=this.S=this.X=null;g.y(this,this.D);Z=f||D?g.Ce(this.api.C().experiments,"web_player_touch_idle_wait_time_ms",4E3):g.Ce(this.api.C().experiments,"web_player_mouse_idle_wait_time_ms",3E3);this.PG=new g.im(function(){Uf(G,1,!1)},Z,this); g.y(this,this.PG);this.Dl=new g.im(function(){Uf(G,2,!1)},Z,this); g.y(this,this.Dl);this.uL=new g.im(function(){Uf(G,2048,!1)},Z,this); g.y(this,this.uL);this.zP=new g.im(function(){Uf(G,512,!1)},Z,this); g.y(this,this.zP);this.k$=3E3;f||(this.S=this.D.N(q,"mouseover",this.hK),this.D.N(q,"mousemove",this.hL),this.D.N(q,"mouseleave",this.s_$));this.api.U("web_player_enable_fullscreen_grid_components")&&this.D.N(q,"wheel",this.MNp,this,!0);RJ?this.D.N(q,"keypress",this.mps):this.D.N(q,"focusin",this.pn);this.Z=this.D.N(q,"mousedown",this.XV);this.V=this.D.N(q,"touchstart",this.NK,void 0,!0);Uf(this,640,!0)}; oFD=function(q){for(var Z=[],F=[],B=g.E(q.K),f=B.next();!f.done;f=B.next())f=f.value,f.bitrate<=q.G?Z.push(f):F.push(f);Z.sort(function(D,G){return G.bitrate-D.bitrate}); F.sort(function(D,G){return D.bitrate-G.bitrate}); q.K=Z.concat(F)}; eY=function(){this.state=1;this.DE=null;this.JW=void 0}; g.gk=function(){var q=g.sY("yt-player-caption-language-preferences");return q?q:[]}; u_=function(q,Z){q.D.delete(Z.uA())||Yp("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Zp7=function(q){return{Hv:eQ(q,1),action:Ta(q,2),Bl:ps(q,3,q0Z)}}; rZ=function(q,Z){var F={type:Z.slotType,controlFlowManagerLayer:Fqk.get(Z.bL)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Z.slotEntryTrigger&&(F.entryTriggerType=Z.slotEntryTrigger.triggerType);Z.slotPhysicalPosition!==1&&(F.slotPhysicalPosition=Z.slotPhysicalPosition);if(q){F.debugData={slotId:Z.slotId};if(q=Z.slotEntryTrigger)F.debugData.slotEntryTriggerData=Py(q);q=Z.slotFulfillmentTriggers;F.debugData.fulfillmentTriggerData=[];q=g.E(q);for(var B=q.next();!B.done;B=q.next())F.debugData.fulfillmentTriggerData.push(Py(B.value)); Z=Z.slotExpirationTriggers;F.debugData.expirationTriggerData=[];Z=g.E(Z);for(q=Z.next();!q.done;q=Z.next())F.debugData.expirationTriggerData.push(Py(q.value))}return F}; g.fI=function(q){return!!q.D&&BPb(q.D)}; g.Z6=function(q,Z,F){return Miy(q,F||wZ,!1,Z)}; HJD=function(q,Z,F,B){q=fJ6(gTG(q2G(new kF(1828,"0"),q),new Wy)).Mo();Z.length&&D17(q,GSK(new zNZ,Z));B!==void 0&&(q.wr=B);var f=new s0(1828,"","",!1,"",q.build());g.y(f,q);var D=new g.Kb({flush:function(G){try{f.flush(G)}catch(n){F(n)}}}); D.addOnDisposeCallback(function(){setTimeout(function(){try{D.vk()}finally{f.dispose()}})}); D.S=1E5;D.flushInterval=3E4;D.D.setInterval(3E4);return D}; nFb=function(q){var Z=0;return function(){return Z=Z-.01}else Z=!1;return Z}; v$=function(q,Z,F){n4("pbs",Z!=null?Z:(0,g.Le)(),F!=null?F:q.timerName)}; gFg=function(){var q=g.oa("csn-to-ctt-auth-info");q||(q={},eJ("csn-to-ctt-auth-info",q));return q}; xQ=function(q,Z,F,B){qa.call(this,q,Z,F,B,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; AQ=function(q){g.J.call(this);this.S=q;this.Fw=!0;this.Bg=new Map;this.D=new Map;this.K=new Map}; zxb=function(q,Z){g.s3(Z,function(F){return q.equals(F)})||Z.push(q)}; S0K=function(q){var Z,F,B=(Z=q.D)==null?void 0:(F=Z.bannerData)==null?void 0:F.itemData;if(B==null?0:B.priceReplacementText)return B==null?void 0:B.priceReplacementText;if((B==null?0:B.promotionText)&&q.B.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var f;return(B==null?void 0:B.price)+" "+(B==null?void 0:(f=B.promotionText)==null?void 0:f.content)}var D,G;if(B==null?0:(D=B.dealsData)==null?0:(G=D.sales)==null?0:G.originalPrice){var n,b;return B==null?void 0:(n=B.dealsData)== null?void 0:(b=n.sales)==null?void 0:b.salesPriceAccessibilityLabel}var N,S;if(B==null?0:(N=B.dealsData)==null?0:(S=N.priceDrop)==null?0:S.referencePrice){var l,U;return(B==null?void 0:B.price)+" "+(B==null?void 0:(l=B.dealsData)==null?void 0:(U=l.priceDrop)==null?void 0:U.referencePrice)}return B==null?void 0:B.price}; Vl=function(q){return vy(q)>0}; lJB=function(q){switch(q){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS"; default:return""}}; g.Xc=function(){var q=U1y();if(!q)return{};try{var Z=q.get("yt-player-lv");return JSON.parse(Z||"{}")}catch(F){return{}}}; rSD=function(q,Z,F){if(q.forEach&&typeof q.forEach=="function")q.forEach(Z,F);else if(g.J_(q)||typeof q==="string")Array.prototype.forEach.call(q,Z,F);else for(var B=un6(q),f=PPg(q),D=f.length,G=0;GP.width*P.height*P.fps)P=Q}else U.push(Q)}else n[X]="disdrmhfr";u.reduce(function(c, e){return e.getInfo().isEncrypted()&&c},!0)&&(l=S); f=Math.max(f,0);S=P||{};N=S.fps===void 0?0:S.fps;P=S.width===void 0?0:S.width;S=S.height===void 0?0:S.height;H=q.U("html5_native_audio_track_switching");u.push(LqG(U,F,B,D,"93",P,S,N,b,"auto",f,l,W,H));Object.entries(n).length&&G(n);return Kk(q.Z,u,$Q(q,Z),!1)}; aS=function(){var q=this;this.store={};this.D=0;this.K={};this.JZ={Gc_:function(){return q.D}}}; QJK=function(q,Z){if(Z.length===0||hA(q))return null;q.Qs.Z.S&&(mg=!0);var F=q.Ni;var B=q.lengthSeconds,f=q.isLivePlayback,D=q.OZ,G=q.Qs,n=Opy(Z);if(f||D){G=G.experiments;B=new i_("",G,!0);B.K=!D;B.d2=!0;B.isManifestless=!0;B.isLive=!D;B.OZ=D;Z=g.E(Z);for(f=Z.next();!f.done;f=Z.next()){var b=f.value;f=kQ(b,F);n=K5(68,b);n=fj(n.qL||b.url||"",n.gw,n.s);var N=n.get("id");N&&N.includes("%7E")&&(B.Dl=!0);var S=void 0;N=(S=G)==null?void 0:S.qp("html5_max_known_end_time_rebase");S=Number(b.targetDurationSec|| 5);b=Number(b.maxDvrDurationSec||14400);var l=Number(n.get("mindsq")||n.get("min_sq")||"0"),U=Number(n.get("maxdsq")||n.get("max_sq")||"0")||Infinity;B.Ra=B.Ra||l;B.WH=B.WH||U;var u=!vp(f.mimeType);n&&sf(B,new jf(n,f,{iI:S,AS:u,UA:b,Ra:l,WH:U,ED:300,OZ:D,uS:N}))}F=B}else if(n==="FORMAT_STREAM_TYPE_OTF"){B=B===void 0?0:B;D=new i_("",G.experiments,!1);D.duration=B||0;G=g.E(Z);for(B=G.next();!B.done;B=G.next())B=B.value,Z=kQ(B,F,D.duration),f=K5(36,B),(f=fj(f.qL||B.url||"",f.gw,f.s))&&(Z.streamType=== "FORMAT_STREAM_TYPE_OTF"?sf(D,new IS(f,Z,"sq/0")):sf(D,new Ck(f,Z,hQ(B.initRange),hQ(B.indexRange))));D.isOtf=!0;F=D}else{B=B===void 0?0:B;D=new i_("",G.experiments,!1);D.duration=B||0;G=g.E(Z);for(B=G.next();!B.done;B=G.next())n=B.value,B=kQ(n,F,D.duration),Z=hQ(n.initRange),f=hQ(n.indexRange),N=K5(38,n),(n=fj(N.qL||n.url||"",N.gw,N.s))&&sf(D,new Ck(n,B,Z,f));F=D}D=q.isLivePlayback&&!q.OZ&&!q.zP&&!q.isPremiere;q.U("html5_live_head_playable")&&(!RS(q)&&D&&q.iL("missingLiveHeadPlayable",{}),q.Qs.Dl=== "yt"&&(F.Oc=!0));return F}; TO=function(q){return q!=null&&q>=0&&q<=1}; Mxb=function(q){function Z(F){q.Ep.get().xY(F)} return cy(q.slot,q.GP.get())?x16(Object.assign({},q,{b6:Z})):new ZJ(Object.assign({},q,{b6:Z}))}; JQ=function(q){for(var Z=[],F=g.E(q),B=F.next();!B.done;B=F.next())B=B.value,Z[B]||(Z[B]=0),Z[B]++;var f=Z[0]=0;F=[];var D=0;B=0;for(var G=1;G7&&(D+=Z[G]);for(f=1;f>b&1;n=D<<4|G;if(G<=7)for(b=1<<7-G;b--;)B[b<>=7;G--;){B[b]||(B[b]=-Z,Z+=2);var N=f&1;f>>=1;b=N-B[b]}B[b]=n}}return B}; YQ=function(q,Z,F){if(F.length==0)throw new K("No "+AS8.get(Z)+" triggers found for slot.",void 0,vFk(Z));F=g.E(F);for(var B=F.next();!B.done;B=F.next())if(B=B.value,!q.ND.CQ.get(B.triggerType))throw new K("No trigger adapter registered for "+Z+" trigger of type: "+B.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; g.tQ=function(q,Z){g.jJ(function(){g.yn(Z,function(F){XCb(void 0,q,F)})})()}; pk=function(){}; Ii=function(q,Z,F,B){A8(q);var f=q.Ec,D=f[Sm]|0;if(B==null)return h8(f,D,F),q;if(!Array.isArray(B))throw M4();for(var G=B===E3?7:B[Sm]|0,n=G,b=dZ(G),N=b||Object.isFrozen(B),S=!0,l=!0,U=0;U=D)KqX(q,b,u,G,P,Z.join(),f),n=P;H.An(2);break;case 4:return H.return(Promise.reject(n))}})}; MBK=function(q){var Z=document.querySelectorAll('[data-tooltip-target-id="'+q.tooltipRenderer.targetId+'"]');Z=Z.length>0?Z[0]:null;var F=g.uK("ytp-chrome-bottom"),B=g.uK("ytp-ad-module");q.S=!(F==null||!F.contains(Z));q.j=!(B==null||!B.contains(Z));q.X=!(Z==null||!Z.hasAttribute("data-tooltip-target-fixed"));return Z}; $1G=function(q,Z){var F=0x8000000000000,B=0,f=0x8000000000000;var D=g.E(Z.slotFulfillmentTriggers);for(var G=D.next();!G.done;G=D.next())if(G=G.value,G instanceof NF){var n=G.D.start;F=Math.min(F,n);B=Math.max(B,G.D.end);G.visible&&(f=Math.min(f,n))}else Yp("Found unexpected fulfillment trigger for throttled slot.",Z,null,{fulfillmentTrigger:G});D=F;f=f<0x8000000000000&&F0&&(b=Math.floor(F/1E3)));var N={AD_BLOCK:f,AD_BREAK_LENGTH:D?D.jC:b,AUTONAV_STATE:S0(q.player.C()),CA_TYPE:"image",CPN:q.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:q.player.BY()*1E3,LACT:zG(),LIVE_INDEX:D?q.S++:1,LIVE_TARGETING_CONTEXT:D&&D.context?D.context:"",MIDROLL_POS:G?Math.round(G.start/1E3):0,MIDROLL_POS_MS:G?Math.round(G.start):0,VIS:q.player.getVisibilityState(), P_H:q.player.Ca().ZI().height,P_W:q.player.Ca().ZI().width,YT_REMOTE:n?n.join(","):""},S=oe(q8);Object.keys(S).forEach(function(l){S[l]!=null&&(N[l.toUpperCase()]=S[l].toString())}); B!==""&&(N.BISCOTTI_ID=B);B={};eE(Z)&&(B.sts="20363",(q=q.player.C().forcedExperiments)&&(B.forced_experiments=q));return Z8(g.VT(Z,N),B)}; ipX=function(q,Z){var F={};if(Z||!q||!q.kind)return F;if(q.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||q.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!q.adTimeOffset||!q.adTimeOffset.offsetStartMilliseconds)return g.mM(Error("malformed AdPlacementConfig")),F;F.MIDROLL_POS=u6(v8(Math.round(Mn(q.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else F.MIDROLL_POS=u6(v8("0"));return F}; Ad6=function(q,Z,F){var B={stack:[],error:void 0,hasError:!1};try{if(!Z.jL)throw new m0(29,"SDF:notready");return wD(mcX(B,new Fw(q.logger,0,q.state)),function(){return B6(q,Z)},F)}catch(f){B.error=f,B.hasError=!0}finally{fxD(B)}}; qc=function(q,Z){q=q.D.get(Z);if(q!==void 0)return q.get()}; Mj=function(q,Z,F,B){if(((q^18)&13)==1){if(F===z[82]){var f;(f=B[z[4]](z[31]))>=0?(F=z[72]+B[z[17]](0,f),B=B[z[17]](f+1)):(f=B[z[4]](z[77]))>=0&&(F=z[72]+B[z[17]](0,f),B=B[z[17]](f+3))}Z[F]=B}((q|5)&14)>=10&&(q|2)<18&&Z[z[1]]!=0&&(f=Mj(2,F,Z),F=f[0],Z=f[1]);q-5&15||(this[z[26]]=Z,this[z[45]]=F===void 0?!1:F,this[z[54]]=this[z[23]]=this[z[10]]=z[15],this[z[6]]={},this[z[11]]=z[15]);if((q+8&15)==3)if(F=F===void 0?!1:F,Hs(6,Z),Z[z[23]]!==z[60]){f=Z[z[42]]();f[z[5]](z[16],z[48]);var D=f}else{var G=Z[z[57]](); f=new g.pq(G);var n=Z[z[46]](z[59]),b=decodeURIComponent(Z[z[46]](z[19])||z[15])[z[37]](z[8]);if(n&&b&&b[z[1]]>1&&b[1]){G=f[z[6]];var N=G[z[32]](/^[^.]*/,z[15]);g.f6(f,(G[z[4]](z[39])===0?z[39]:z[66])+n+z[85]+b[1]+N);f=new g.O_(f[z[12]]());f[z[5]](z[13],z[48]);D=f}else F?(f=Z[z[42]](),f[z[5]](z[13],z[48]),D=f):(n=f[z[6]][z[20]](z[70]),f[z[6]][z[20]](z[71])?(g.f6(f,z[88]),G=f[z[12]]()):f[z[6]][z[20]](z[41])?(g.f6(f,z[83]),G=f[z[12]]()):(f=MaK(G),D8(f)&&(G=f)),f=new g.O_(G),f[z[5]](z[43],z[48]),n&& f[z[5]](z[50],z[78]),D=f)}(q<<1&15)==4&&(Z=(Z%F[z[1]]+F[z[1]])%F[z[1]],f=F[0],F[0]=F[Z],F[Z]=f,D=[Z,F]);return D}; kS9=function(q){var Z=bw(q),F=ou(q,"position"),B=F=="fixed"||F=="absolute";for(q=q.parentNode;q&&q!=Z;q=q.parentNode)if(q.nodeType==11&&q.host&&(q=q.host),F=ou(q,"position"),B=B&&F=="static"&&q!=Z.documentElement&&q!=Z.body,!B&&(q.scrollWidth>q.clientWidth||q.scrollHeight>q.clientHeight||F=="fixed"||F=="absolute"||F=="relative"))return q;return null}; g.e$=function(q,Z){if(q.classList)q.classList.add(Z);else if(!g.QU(q,Z)){var F=tvK(q);g.xd(q,F+(F.length>0?" "+Z:Z))}}; Qs=function(q,Z,F){this.triggeringLayoutId=Z;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=F||q(this.triggerType)}; VK=function(q){this.D=q}; g.O_=function(q,Z){return Mj[z[9]](this,5,q,Z)}; dz=function(){this.D=this.K=null}; jJD=function(q,Z,F,B,f,D,G){F=F===void 0?[]:F;B=B===void 0?"":B;f=f===void 0?"":f;var n=e7(q.D).Zs,b=q.player.getVideoData(1);b&&b.getPlayerResponse();b&&b.d2();F=yuK(Z,F,n,e7(q.D).JH);sJD(e7(q.D).UZ,B,F.HO,F.RI,Z,f,D,G)}; XF=function(q,Z,F){DW(q.D,Z*8+F)}; G4=function(){if(!Xb.instance){var q=g.ym("yt.networkRequestMonitor.instance")||new Xb;g.O9("yt.networkRequestMonitor.instance",q);Xb.instance=q}return Xb.instance}; IJ6=function(q){if(!q.adAvatar||!g.C(q.adAvatar,z4))return g.mM(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!q.headline)return g.mM(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!q.adBadge||!g.C(q.adBadge,n6))return g.mM(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!q.adButton||!g.C(q.adButton,bA))return g.mM(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!q.adInfoRenderer|| !g.C(q.adInfoRenderer,A1))return g.mM(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;q=q.durationMilliseconds||0;return typeof q!=="number"||q<=0?(g.mM(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+q)),!1):!0}; hN7=function(q,Z){if(q.disable)return new MS;Z=Z?CPK(Z):[];q={GU:q.GU,mX:q.G$,ma:q.CLp,wr:q.wr,r9:q.r9,iP:q.iP};Z=Z===void 0?[]:Z;return new Je(q,Z)}; g6=function(q,Z){if(q){q=q.split("&");for(var F=0;F=0){var D=q[F].substring(0,B);f=q[F].substring(B+1)}else D=q[F];Z(D,f?N8(f):"")}}}; VJ=function(q,Z){Z=g.E(Z.D);for(var F=Z.next();!F.done;F=Z.next())q.append(F.value)}; RNZ=function(q,Z,F,B,f){var D=(4-(X$.length+F.length)%4)%4,G=new Uint8Array(4+D+X$.length+4+F.length),n=new DataView(G.buffer),b=0;n.setUint32(b,Math.random()*4294967295);b=b+4+D;G.set(X$,b);b+=X$.length;n.setUint32(b,f);G.set(F,b+4);u4Z(G,B);return q.qD(Z,function(N){return void globalThis.sessionStorage.removeItem(N)})?P$G(Z,g.MR(G))?"s":"t":"i"}; JSX=function(q,Z){if(q.gU)return q.gU.S;a:{Z=Z===void 0?!1:Z;Z=Z===void 0?!1:Z;try{g.TP()&&q.videoData.HW()&&cSB(q.mediaElement);var F=q.mediaElement.Ar(q.eA(),q.ly())}catch(f){if(S3(q.RW,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",f);q.PL("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}q.VJ(F,!1,!1,Z)}var B;return((B=q.Ar())==null?void 0:B.S)||null}; lA=function(q,Z,F){q.Z=3;q.PG="The stream is broken @"+q.S+"/"+F+". With input:\n"+Z;throw Error(q.PG);}; Y06=function(q){var Z;return(Z=q.layout.Ig)!=null?Z:qc(q.layout.clientMetadata,"metadata_type_sub_layouts")}; tnX=function(q){var Z=q.getVideoData().vX,F=q.J.I_,B=q.isInline()&&!q.getVideoData().MZ,f=q.mediaElement;Z||F||B?f.Ek():(f.iy(),Ui(q,q.TA))}; pCZ=function(){var q=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];YP().forEach(function(Z){q.push(Z)}); return{m0:q,FN:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; ku=function(q,Z,F){for(F=F===void 0?!1:F;q.G0&&j2(q.j(),F)}; var Vny=function(q){return P6[z[9]](this,1,q)}; var TP6=function(q){return{JF:$T(q,1,eN7)}},q7Z=function(q){var Z=new r6; var F=new pc;F=QO(F,1,"botguard");q=QO(F,2,q);this.D=MnD(Z,pc,1,oA7,q)},ZM9=function(){w6||(w6=Wl(g.oa("WORKER_SERIALIZATION_URL"))); return w6||void 0},CYK=function(){if(g.cz("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely."); if(!$Z())return Error("User has not consented - not fetching biscotti id.");var q=g.oa("PLAYER_VARS",{});if(g.Z1(q,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(b47(q))return Error("Biscotti id fetching has been disabled for pfl.")},BSg=function(q,Z){var F=Z.D.getValue(); F=new g.im(function(){fPk(q,Z)},F); g.y(q,F);F.start();g.mz(Z.D);zj(q,{rtyrq:1})}; var FdD=function(){return W6[z[9]](this,2)}; zn7=function(q){var Z,F=q.videoData.getAvailableAudioTracks(),B=q.J.eU;B&&(Z=F.find(function(D){return D.getLanguageInfo().id===B})); if(q.J.experiments.qp("enable_audio_description_setting")&&g.nF().Q5(198)){F=g.E(F);for(var f=F.next();!f.done;f=F.next())if(f=f.value,f.Z){Z=f;break}}Z||(q=q.getAudioTrack(),Z=q.fB.isDefault?void 0:q);return Z}; zqK=function(q,Z,F){wt(q,Z);Z=BQK(q.Z,F);F||Z||(Z=fsK(q));Z=Z||q.j.D[0];q.K=q.Np.D[Z.id];Jd(q);q.X=q.K;DWZ(q);GJy(q);q.S=q.nextVideo;q.X=q.K;return oR7(q)}; y0=function(q){var Z;(Z=q.X)==null||Z.dispose();q.X=null}; Bm=function(){return g.c8&&g.Vd("version/")}; L6=function(q,Z){g.w.call(this,{Y:"div",rU:["ytp-fullscreen-grid"],T:[{Y:"button",rU:["ytp-fullscreen-grid-expand-button","ytp-button"],L:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},T:["{{icon}}"]},{Y:"div",W:"ytp-fullscreen-grid-hover-overlay",L:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button", "data-tooltip-offset-y":"-70"}},{Y:"div",W:"ytp-fullscreen-grid-main-content",T:[{Y:"div",W:"ytp-fullscreen-grid-stills-container"}]}]});this.player=q;this.stills=[];this.videoData=null;this.currentState=0;this.D=this.cG("ytp-fullscreen-grid-main-content");this.Z=this.cG("ytp-fullscreen-grid-stills-container");this.K=new g.pO(this);g.y(this,this.K);this.G=Z;if(this.D&&this.Z){if(q=this.cG("ytp-fullscreen-grid-hover-overlay"))this.N(q,"click",this.S),b8(this.player,q,this);if(q=this.cG("ytp-fullscreen-grid-expand-button"))this.N(q, "click",this.S),b8(this.player,q,this);if(q=this.player.getVideoData(1))this.videoData=q;this.player.createClientVe(this.D,this,223051);this.K.N(this.player,"videodatachange",this.onVideoDataChange)}}; nA8=function(q,Z){for(var F=0,B=g.E(q),f=B.next();!f.done;f=B.next()){f=f.value;if(Z=f.timeRangeStartMillis&&Z4);f++)Z[H6(q[f])]||(F+="\nInner error "+B++ +": ",q[f].stack&&q[f].stack.indexOf(q[f].toString())==0||(F+=typeof q[f]==="string"?q[f]:q[f].message+"\n"),F+=sP(q[f],Z));fF&&(Z=Z.subarray(0,F));return Z}; fd=function(q){return an(q)==="TVHTML5"}; p7=function(q,Z,F,B){var f;(q|1)>>4==4&&(f=Z!==null);if(q-3<37&&q-8>=21){var D=Z[z[37]](z[15]);A4[z[56]](D,18);A4[z[0]](D,1);A4[z[56]](D,47);A4[z[0]](D,2);A4[z[56]](D,14);A4[z[0]](D,3);A4[z[56]](D,38);A4[z[56]](D,70);f=D[z[21]](z[15])}(q&31)==q&&(Z[53]!==-4&&(Z[63]<=-8?(0,Z[62])((0,Z[33])(),Z[76],Z[2]):(0,Z[72])(Z[56],Z[23])),Z[89]==-9&&((0,Z[41])((0,Z[72])(Z[56],Z[32]),Z[72],Z[60],Z[42]),(0,Z[72])(Z[56],Z[49]),1)||(((0,Z[28])(Z[56]),Z[67])(Z[2],Z[18]),Z[35])(Z[new F(z[18])/1E3],Z[64]),Z[69]!=-3&& (0,Z[75])(Z[60],Z[40]),Z[66]!==-8?(((0,Z[new F(z[30])/1E3])(Z[38],Z[11]),Z[85])(Z[38],Z[74]),Z[3])(Z[53],Z[38]):(0,Z[3])((0,Z[64])((0,Z[35])(),Z[78],Z[22]),Z[43],(0,Z[5])(Z[49],Z[22]),Z[77],Z[66],Z[59]),Z[13]===0&&((0,Z[74])(Z[4],Z[48]),1)||(0,Z[81])(Z[62]),f=[Z,F]);(q-7^11)>=q&&(q-9^30)=q){D=Z[F];var G=D[z[4]](z[31]);G>0?Mj(1,B,D[z[17]](0,G),D[z[17]](G+1)):D&&(B[D]=z[15]);f=[Z,F,B]}return f}; v6=function(q,Z){return q.B.getPlayerStateObject(Z)}; ne=function(q){this.value=q}; Os=function(q){return q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; XG=function(){var q=q===void 0?!0:q;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");eJ("LOGIN_INFO","");q&&window.sessionStorage.setItem("from_switch_account","1");q=!0;q=q===void 0?!1:q;var Z,F=S79;F||(F=document.querySelector("#persist_identity"));if(Z=F){var B=Z.src?(new URL(Z.src)).origin:"*";if(q){var f;(f=Z.contentWindow)==null||f.postMessage({action:"clear"},B)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var D=window.sessionStorage.getItem("session_logininfo");if(D){var G;(G=Z.contentWindow)==null||G.postMessage({loginInfo:D},B)}}}}catch(n){}}; Xw=function(q,Z,F,B,f){Gf.call(this,"top-banner-image-text-icon-buttoned",q,Z,F,B,f)}; $U=function(q){if(q.J8()&&!q.api.isEmbedsShortsMode()&&q.N8){var Z=q.api.U("web_player_hide_overflow_button_if_empty_menu");!q.Za||Z&&!ls7(q.Za)||Ei(q.N8,q.Za);!q.shareButton||Z&&!K6(q.shareButton)||Ei(q.N8,q.shareButton);!q.copyLinkButton||Z&&!UWD(q.copyLinkButton)||Ei(q.N8,q.copyLinkButton)}else{Z=q.api.C().getWebPlayerContextConfig();if(q.N8){for(var F=q.N8,B=g.E(F.actionButtons),f=B.next();!f.done;f=B.next())f.value.detach();F.actionButtons=[]}q.searchButton&&!g.yT(q.t8.element,q.searchButton.element)&& q.searchButton.R_(q.t8.element);!q.Za||(Z==null?0:Z.hideTopWatchNextButton)||g.yT(q.t8.element,q.Za.element)||q.Za.R_(q.t8.element);!q.shareButton||(Z==null?0:Z.hideTopShareButton)||g.yT(q.t8.element,q.shareButton.element)||q.shareButton.R_(q.t8.element);q.copyLinkButton&&!g.yT(q.t8.element,q.copyLinkButton.element)&&q.copyLinkButton.R_(q.t8.element)}}; Psk=function(q,Z,F,B){B=B===void 0?function(){}:B; var f,D,G,n,b,N,S,l,U,u,P,W,H,X,Q,a,m,c,e,Y,Zg,GZ,FD,Ny,qy,y9,dX,z0,G0,aG;return g.h(function($B){switch($B.D){case 1:$B.An(2);break;case 3:if((f=$B.K)&&!f.isExpired())return $B.return(Promise.resolve(f.D()));case 2:if(!((D=Z)==null?0:(G=D.Kv)==null?0:G.context)){$B.An(4);break}n=Z.Kv.context;$B.An(5);break;case 5:b=g.E([]),N=b.next();case 8:if(N.done){$B.An(4);break}S=N.value;return g.R($B,S.eDP(n),9);case 9:N=b.next();$B.An(8);break;case 4:if((l=q.S)==null||!l.AD_(Z.input,Z.Kv)){$B.An(12);break}return g.R($B, q.S.ppr(Z.input,Z.Kv),13);case 13:return U=$B.K,n7b(q,U,Z),$B.return(U);case 12:return(W=(P=Z.config)==null?void 0:P.S3)&&q.K.has(W)?u=q.K.get(W):(H=JSON.stringify(Z.Kv),a=(Q=(X=Z.DU)==null?void 0:X.headers)!=null?Q:{},Z.DU=Object.assign({},Z.DU,{headers:Object.assign({},a,F)}),m=Object.assign({},Z.DU),Z.DU.method==="POST"&&(m=Object.assign({},m,{body:H})),((c=Z.config)==null?0:c.GDP)&&n4(Z.config.GDP),e=function(){return q.wY.fetch(Z.input,m,Z.config)},u=e(),W&&q.K.set(W,u)),g.R($B,u,14); case 14:(Y=$B.K)&&g.cz("web_streaming_player")&&Array.isArray(Y)&&(Y=Y[0].playerResponse);if(Y&&"error"in Y&&((Zg=Y)==null?0:(GZ=Zg.error)==null?0:GZ.details))for(FD=Y.error.details,Ny=g.E(FD),qy=Ny.next();!qy.done;qy=Ny.next())y9=qy.value,(dX=y9["@type"])&&uXZ.indexOf(dX)>-1&&(delete y9["@type"],Y=y9);W&&q.K.has(W)&&q.K.delete(W);((z0=Z.config)==null?0:z0.Q4U)&&n4(Z.config.Q4U);if(Y||(G0=q.S)==null||!G0.szr(Z.input,Z.Kv)){$B.An(15);break}return g.R($B,q.S.koU(Z.input,Z.Kv),16);case 16:Y=$B.K;case 15:return n7b(q, Y,Z),((aG=Z.config)==null?0:aG.IEF)&&n4(Z.config.IEF),B(),$B.return(Y||void 0)}})}; mig=function(){switch(r$8()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; ae=function(){}; YD=function(q,Z,F){F!==void 0&&Number.isNaN(Number(F))&&(F=void 0);var B=g.ym("yt.scheduler.instance.addJob");return B?B(q,Z,F):F===void 0?(q(),NaN):g.OT(q,F||0)}; wbb=function(q,Z,F,B,f){this.ub=q;this.wU=Z;this.vg=F;this.D=B;this.nB=f}; m$=function(q){this.Ec=rE(q)}; g.Ls=function(q,Z,F,B){this.level=q;this.G=Z;this.loaded=new Set;this.level=q;this.G=Z;q=F.split("#");this.width=Math.floor(Number(q[0]));this.height=Math.floor(Number(q[1]));this.frameCount=Math.floor(Number(q[2]));this.columns=Math.floor(Number(q[3]));this.rows=Math.floor(Number(q[4]));this.D=Math.floor(Number(q[5]));this.S=q[6];this.signature=q[7];this.videoLength=B}; WdK=function(q){var Z=iA();switch(Z){case 1:kU.h5vcc.traceEvent.traceEnd("YTLR",q);break;case 2:Z=q+"-start";var F=q+"-end";kU.performance.mark(F);kU.performance.measure(q,Z,F);break;case 0:break;default:GT(Z,"unknown trace type")}}; W6=function(q,Z,F){if((q&26)==q){for(var B=64,f=[];++B-f[z[1]]-32;)switch(B){case 46:B=95;default:f[z[3]](String[z[27]](B));case 94:case 95:case 96:break;case 123:B-=76;case 92:case 93:continue;case 58:B=44;case 91:}var D=f}if((q|72)==q){B=Z[z[37]](z[65]);var G={};for(f=0;f>4==4)a:if(B=Z[z[37]](z[15]),f=[Ld8,-969646041,749817124,-250109091,532920979,1491016445, 1795729305,-1790919222,m3K,B,HM7,-1872833635,-568962866,201345082,1421680526,1512249746,-1388135460,OM9,B,jGD,-1170760368,FdD,-1343257992,-1960274463,1884124455,117934985,787193863,-752435294,1414944102,1292546820,-513012267,-1748269671,1887002634,1002386307,-1689106629,W76,631005940,-1617259076,QjD,-81185853,xWy,-1375245522,function(S,l){S=(S%l[z[1]]+l[z[1]])%l[z[1]];l[z[34]](-S)[z[67]]()[z[84]](function(U){l[z[2]](U)})}, 1274344344,-2123836385,null,-2146098094,-1862269030,GX6,866026622,-1145462254,-625885402,-61924861,2142574137,-448101771,-1939800200,1365637218,-447732618,894996441,-538741933,-98107258,-1678615328,1279586486,-1364425235,-397428983,1806726028,-1451814122,null,787193863,-1170760368,1887954590,B,1887954590,143285447,Pg8,null,-1689106629,-969646041,-1108027082,A$y,-2098530808,2039123720,vA9,z[80],z[14],1697265829,Vny,function(S,l,U){var u=S[z[1]];U[z[84]](function(P,W,H){this[z[3]](H[W]=S[(S[z[4]](P)- S[z[4]](this[W])+W+u--)%S[z[1]]])},l[z[37]](z[15]))}, 794851481,-2035880210,390748745,-625885402,NVg,1505114062,592820868],f[45]=f,f[67]=f,f[75]=f,typeof XbD===z[22])D=Z;else{try{try{var n=QV(24,f,Date);f=n[0];Date=n[1]}catch(S){(0,f[23])((0,f[87])((0,f[44])((0,f[62])(),f[58],f[79]),f[44],(0,f[54])(f[38],f[37]),(0,f[15])(),f[58],f[38]),f[44],(0,f[15])(),f[58],f[46]),(0,f[54])(f[new Date(z[73])/1E3],f[26])}finally{var b=O6(4,f,Date);f=b[0];Date=b[1]}try{var N=p7(1,f,Date);f=N[0];Date=N[1]}catch(S){(0,f[89])(f[67],f[32]),(((0,f[51])((0,f[30])((0,f[59])(), f[16],f[90]),f[25],f[24],f[21]),f[17])(f[54],f[10]),f[20])(f[90],f[86])}}catch(S){D=z[63]+Z;break a}D=B[z[21]](z[15])}if((q>>1&23)==3)for(Z=(Z%F[z[1]]+F[z[1]])%F[z[1]];Z--;)F[z[2]](F[z[62]]());return D}; si=function(){}; j3=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u,P,W,H,X){M_.call(this,q,Z,F,B,f,D,G,n,N,S,l,U,u,P,W,H,X);var Q=this;this.Ep=b;this.uJ=l;this.pg=!0;this.z5=this.wF=0;this.bZ=oJ(function(){a77(q1(Q));Q.Gn.ql(Q.slot,Q.layout)}); this.Jk=oJ(function(){Hc7(q1(Q));Q.Fe!=="rendering_stop_requested"&&Q.uJ(Q);Q.layoutExitReason?Q.Gn.ZJ(Q.slot,Q.layout,Q.layoutExitReason):OcZ(Q)}); this.timer=new g.EF(200);this.timer.listen("tick",function(){Q.y5()}); g.y(this,this.timer)}; Ie=function(q,Z){g.Mu.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Z,foundObjectStores:q},EAG.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Ie.prototype)}; Wt=function(q,Z,F){F!==void 0&&mx(q,Z,F?1:0)}; C6=function(){this.K=null;this.D=!1}; Yd=function(q){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(q)}; asD=function(q,Z){var F=Z.cancelRenderer&&Z.cancelRenderer.buttonRenderer||null;F&&(q.D=new qa(q.api,q.layoutId,q.interactionLoggingClientData,q.x$,["ytp-ad-feedback-dialog-close-button"],"button"),g.y(q,q.D),q.D.init(kV("button"),F,q.macros),q.D.listen("click",q.eL,q),q.D.R_(q.element));Z.title&&(F=g.HD(Z.title),q.updateValue("title",F));Z.reasonsTitle&&(F=g.HD(Z.reasonsTitle),q.updateValue("reasonsTitle",F));Z.reasons&&KdB(q,Z.reasons);Z.cancelLabel&&(F=g.HD(Z.cancelLabel),q.updateValue("cancelLabel", F),g.h4(q.Z,"click",function(){return q.eL()})); Z.confirmLabel&&(F=g.HD(Z.confirmLabel),q.updateValue("confirmLabel",F),g.h4(q.V,"click",function(){return $Wg(q)})); Z.undoRenderer&&Mqk(q,Z.undoRenderer)}; mW9=function(q,Z,F,B,f){Gf.call(this,"image-companion",q,Z,F,B,f)}; iM8=function(q){q.Iy().element.setAttribute("aria-live","polite")}; sjb=function(q){var Z=Z===void 0?"UNKNOWN_INTERFACE":Z;if(q.length===1)return q[0];var F=kJy[Z];if(F){F=new RegExp(F);for(var B=g.E(q),f=B.next();!f.done;f=B.next())if(f=f.value,F.exec(f))return f}var D=[];Object.entries(kJy).forEach(function(G){var n=g.E(G);G=n.next().value;n=n.next().value;Z!==G&&D.push(n)}); F=new RegExp(D.join("|"));q.sort(function(G,n){return G.length-n.length}); B=g.E(q);for(f=B.next();!f.done;f=B.next())if(f=f.value,!F.exec(f))return f;return q[0]}; jj8=function(q){Yp("getExitReason: unexpected reason",void 0,void 0,{reason:q})}; Re=function(q,Z,F,B){if(B===void 0)return B=Object.assign({},q[Z]||{}),F=(delete B[F],B),B={},Object.assign({},q,(B[Z]=F,B));var f={},D={};return Object.assign({},q,(D[Z]=Object.assign({},q[Z],(f[F]=B,f)),D))}; CsG=function(q){q.oa.style.removeProperty("height");for(var Z=g.E(Object.keys(q.HG)),F=Z.next();!F.done;F=Z.next())IsX(q,F.value);jl(q);c6(q,q.Dl,q.Gb)}; c$7=function(q){var Z;if(!vz8.test("div"))throw Error("");if(hqD.indexOf("DIV")!==-1)throw Error("");var F="":(q=N8D(Z.map(function(B){return B instanceof Bp?B:fc(String(B))})),F+=">"+q.toString()+""); return Au(F)}; J$6=function(q){return q.FE==="H"||q.FE==="h"}; Y7y=function(q){if(navigator.mediaSession.setPositionState)if(q.api.U("web_player_media_session_infinity")&&q.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(B){}else{var Z=q.api.getProgressState().seekableEnd,F=Math.min(q.api.getCurrentTime(),Z);Z&&Number.isFinite(F)&&navigator.mediaSession.setPositionState({duration:Z,playbackRate:q.api.getPlaybackRate(),position:F})}}; YU=function(q){return globalThis.TextEncoder?(new TextEncoder).encode(q):g.J4(q)}; zrD=function(q){var Z=q===void 0?{}:q;q=Z.BX;var F=Z.dF;var B=Z.jW;var f=Z.F3;Z=Z.HP;this.BX=q;this.dF=F;this.jW=B;this.F3=f;this.HP=Z}; tlg=function(q,Z){return QR(q,3,Z)}; t4=function(q,Z){var F=qf(),B=q.C();F={Y:"div",W:"ytp-share-panel",L:{id:qf(),role:"dialog","aria-labelledby":F},T:[{Y:"div",W:"ytp-share-panel-inner-content",T:[{Y:"div",W:"ytp-share-panel-title",L:{id:F},Ka:"Compartir"},{Y:"a",rU:["ytp-share-panel-link","ytp-no-contextmenu"],L:{href:"{{link}}",target:B.PG,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},Ka:"{{linkText}}"},{Y:"label",W:"ytp-share-panel-include-playlist",T:[{Y:"input",W:"ytp-share-panel-include-playlist-checkbox", L:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{Y:"div",W:"ytp-share-panel-loading-spinner",T:[Wm()]},{Y:"div",W:"ytp-share-panel-service-buttons",Ka:"{{buttons}}"},{Y:"div",W:"ytp-share-panel-error",Ka:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{Y:"button",rU:["ytp-share-panel-close","ytp-button"],L:{title:"Cerrar"},T:[g.t$()]}]};g.$P.call(this,q,F,250);var f=this;this.moreButton=null;this.api=q;this.tooltip=Z.Iy();this.K=[];this.G= this.cG("ytp-share-panel-inner-content");this.closeButton=this.cG("ytp-share-panel-close");this.N(this.closeButton,"click",this.Uy);this.addOnDisposeCallback(g.BY(this.tooltip,this.closeButton));this.S=this.cG("ytp-share-panel-include-playlist-checkbox");this.N(this.S,"click",this.ys);this.D=this.cG("ytp-share-panel-link");this.addOnDisposeCallback(g.BY(this.tooltip,this.D));this.api.createClientVe(this.D,this,164503);this.N(this.D,"click",function(D){D.preventDefault();f.api.logClick(f.D);var G= f.api.getVideoUrl(!0,!0,!1,!1);G=pbk(f,G);g.SC(G,f.api,D)&&f.api.a_("SHARE_CLICKED")}); this.listen("click",this.MC);this.N(q,"videoplayerreset",this.hide);this.N(q,"fullscreentoggled",this.onFullscreenToggled);this.N(q,"onLoopRangeChange",this.Oaa);this.hide()}; d6=function(q,Z,F,B){g.J.call(this);var f=this;this.loader=q;this.policy=Z;this.D=F;this.timing=B;this.logger=new g.Wz("dash");this.S=[];this.Y$=[];this.K=this.g2=null;this.Oc=!1;this.BG=this.WG=0;this.j=-1;this.zP=!1;this.k$=-1;this.dU=null;this.uL=NaN;this.Dl=[];this.JZ={Lf:function(){return f.G}, NSF:function(){return f.S}, C2l:function(){return f.V}}; this.G=new dWk(q,Z,F);this.policy.D&&(this.V=new p6(this.G,this.loader.getManifest(),this.policy,function(D){f.policy.KU&&f.iL("buftl",D)})); this.policy.LB&&(this.PG=new iP(this));this.Ml=F.info.Ml;this.X=this.policy.uL?!1:F.OD();this.isManifestless=F.OD();this.Z=this.X;g.y(this,this.dU)}; Lh=function(q,Z,F){V0.call(this,q+", errorCode="+Z);this.errorCode=Z;this.xhr=F;this.name="PromiseAjaxError"}; FDZ=function(q){bK[q]&&(q=bK[q],g.yn(q,function(Z){zF[Z]&&delete zF[Z]}),q.length=0)}; Bb=function(q){this.experiments=q;this.D=2048;this.G=0;this.Dl=(this.X=this.U("html5_streaming_resilience"))?.5:.25;var Z=Z===void 0?0:Z;this.S=g.Ce(this.experiments,"html5_media_time_weight_prop")||Z;this.PG=(this.Z=this.experiments.qp("html5_consider_end_stall"))&&s_;this.K=this.experiments.qp("html5_measure_max_progress_handling");this.V=this.U("html5_treat_requests_pre_elbow_as_metadata");this.j=this.U("html5_media_time_weight")||!!this.S;this.U("html5_sabr_live_audio_early_return_fix")&&s_&& (this.D=65536)}; TQk=function(q,Z){if(q.api.isMinimized())return!1;var F=Vl6(Z.image),B=F;F.width0?f:1;var D=Math.max(B,f);q.policy.Z>0&&f'.charCodeAt(B);q=q.S.createSession("video/mp4",Z,F);return new f4(null,null,null,null,q)}; UOK=function(q){var Z=SR7,F=H$();if(!F)return 0;var B=F.subscribe(Z.toString(),function(f,D){var G=g.ym("ytPubsub2Pubsub2SkipSubKey");G&&G==B||(G=function(){if(Gc[B])try{if(D&&Z instanceof l9&&Z!=f)try{var n=Z.D,b=D;if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!n.W2){var N=new n;n.W2=N.version}var S=n.W2}catch(l){}if(!S||b.version!=S)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{D=Reflect.construct(n, g.D4(b.args))}catch(l){throw l.message="yt.pubsub2.Data.deserialize(): "+l.message,l;}}catch(l){throw l.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+Z.toString()+": "+l.message,l;}q.call(window,D)}catch(l){g.vf(l)}},lm6[Z.toString()]?g.Kd()?g.kN.ET(G):g.OT(G,0):G())}); Gc[B]=!0;zc[Z.toString()]||(zc[Z.toString()]=[]);zc[Z.toString()].push(B);return B}; nD=function(q,Z,F){q=hM(q,Z,F);return Array.isArray(q)?q:E3}; PuG=function(q){var Z,F,B,f;return g.h(function(D){switch(D.D){case 1:return q.D.D&&typeof((Z=navigator.mediaCapabilities)==null?void 0:Z.decodingInfo)==="function"?g.R(D,Promise.resolve(),2):D.return(Promise.resolve());case 2:F=g.E(q.D.videoInfos),B=F.next();case 3:if(B.done){D.An(0);break}f=B.value;return g.R(D,u8Z(f),4);case 4:B=F.next(),D.An(3)}})}; bc=function(q,Z){g.w.call(this,{Y:"button",rU:["ytp-button","ytp-cards-button"],L:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.FQ(q.C()))},T:[{Y:"span",W:"ytp-cards-button-icon-default",T:[{Y:"div",W:"ytp-cards-button-icon",T:[q.C().U("player_new_info_card_format")?rJZ():{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{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"}}]}]}, {Y:"div",W:"ytp-cards-button-title",Ka:"Informaci\u00f3n"}]},{Y:"span",W:"ytp-cards-button-icon-shopping",T:[{Y:"div",W:"ytp-cards-button-icon",T:[{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",W:"ytp-svg-shadow",L:{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"}},{Y:"path",W:"ytp-svg-fill",L:{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"}},{Y:"path",W:"ytp-svg-shadow-fill",L:{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"}}]}]},{Y:"div", W:"ytp-cards-button-title",Ka:"Shopping"}]}]});this.B=q;this.K=Z;this.D=null;this.fade=new g.L3(this,250,!0,100);g.y(this,this.fade);g.hK(this.K,"ytp-show-cards-title",g.FQ(q.C()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.dw(!0)}; TS=function(q,Z){var F=q.K;for(q.K=-1;q.pos+1<=q.D.totalLength;){F<0&&(F=M1(q));var B=F>>3,f=F&7;if(B===Z)return!0;if(B>Z){q.K=F;break}F=-1;switch(f){case 0:M1(q);break;case 1:q.pos+=8;break;case 2:B=M1(q);q.pos+=B;break;case 5:q.pos+=4}}return!1}; g.NG=function(q,Z){var F=F===void 0?0:F;var B=new $CK;aL(B,2,xU(q));q=wL6[Z];if(typeof q==="undefined")throw F=new g.M2("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Z}),g.mM(F),F;mx(B,4,q);mx(B,5,1);Z=new Uint8Array(B.D.buffer,B.D.byteOffset,B.pos);return encodeURIComponent(g.MR(Z,F))}; gG=function(q){this.value=q}; xS=function(q){if(!q.jU())if(q.K.length===0)q.callback(q.G);else{var Z=q.K[0],F=q.S[Z],B=mx9(q,F);if(SR&&SR.keySystem===Z&&SR.zJP===JSON.stringify(B))q.iL("remksa",{re:!0}),W3D(q,F,SR.keySystemAccess);else{var f,D;q.iL("remksa",{re:!1,ok:(D=(f=SR)==null?void 0:f.keySystem)!=null?D:""});SR=void 0;navigator.requestMediaKeySystemAccess(Z,B).then(hd(function(G){W3D(q,F,G,B)}),hd(function(){q.Z=!q.Z&&q.S[q.K[0]].flavor==="widevine"; q.Z||q.K.shift();xS(q)}))}}}; yJb=function(q,Z,F,B){if(!Z&&!F)return Promise.resolve();if(!B)return XXD(Z,F);var f;(f=q.K)[B]||(f[B]=new Promise(function(D,G){XXD(Z,F).then(function(){q.D=B;D()},function(n){delete q.K[B]; G(n)})})); return q.K[B]}; YA=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}}; L38=function(q,Z,F,B){if(g.yF(q)&&!Array.isArray(q)){Z="playlist list listType index startSeconds suggestedQuality".split(" ");F={};for(B=0;B=F.start&&Z<=F.end)return!0;return!1}; uc=function(q,Z,F,B){Yw.call(this,Z,B);this.X=q;this.V=F}; AJK=function(q,Z){if(!q||!q.state||Z>5||Z<0)return q?Eq(q,-2):-2;var F=q.state;if(!q.output||!q.input&&q.OO!==0||F.status===666&&Z!==4)return Eq(q,q.vZ===0?-5:-2);F.VC=q;var B=F.Hy;F.Hy=Z;if(F.status===42)if(F.wrap===2)q.dh=0,P7(F,31),P7(F,139),P7(F,8),F.BZ?(P7(F,(F.BZ.text?1:0)+(F.BZ.JY?2:0)+(F.BZ.extra?4:0)+(F.BZ.name?8:0)+(F.BZ.comment?16:0)),P7(F,F.BZ.time&255),P7(F,F.BZ.time>>8&255),P7(F,F.BZ.time>>16&255),P7(F,F.BZ.time>>24&255),P7(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),P7(F,F.BZ.os& 255),F.BZ.extra&&F.BZ.extra.length&&(P7(F,F.BZ.extra.length&255),P7(F,F.BZ.extra.length>>8&255)),F.BZ.JY&&(q.dh=fP(q.dh,F.UI,F.pending,0)),F.yw=0,F.status=69):(P7(F,0),P7(F,0),P7(F,0),P7(F,0),P7(F,0),P7(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),P7(F,3),F.status=113);else{var f=8+(F.oO-8<<4)<<8;f|=(F.strategy>=2||F.level<2?0:F.level<6?1:F.level===6?2:3)<<6;F.AZ!==0&&(f|=32);F.status=113;rG(F,f+(31-f%31));F.AZ!==0&&(rG(F,q.dh>>>16),rG(F,q.dh&65535));q.dh=1}if(F.status===69)if(F.BZ.extra){for(f= F.pending;F.yw<(F.BZ.extra.length&65535)&&(F.pending!==F.l6||(F.BZ.JY&&F.pending>f&&(q.dh=fP(q.dh,F.UI,F.pending-f,f)),wG(q),f=F.pending,F.pending!==F.l6));)P7(F,F.BZ.extra[F.yw]&255),F.yw++;F.BZ.JY&&F.pending>f&&(q.dh=fP(q.dh,F.UI,F.pending-f,f));F.yw===F.BZ.extra.length&&(F.yw=0,F.status=73)}else F.status=73;if(F.status===73)if(F.BZ.name){f=F.pending;do{if(F.pending===F.l6&&(F.BZ.JY&&F.pending>f&&(q.dh=fP(q.dh,F.UI,F.pending-f,f)),wG(q),f=F.pending,F.pending===F.l6)){var D=1;break}D=F.ywf&&(q.dh=fP(q.dh,F.UI,F.pending-f,f));D===0&&(F.yw=0,F.status=91)}else F.status=91;if(F.status===91)if(F.BZ.comment){f=F.pending;do{if(F.pending===F.l6&&(F.BZ.JY&&F.pending>f&&(q.dh=fP(q.dh,F.UI,F.pending-f,f)),wG(q),f=F.pending,F.pending===F.l6)){D=1;break}D=F.ywf&&(q.dh=fP(q.dh,F.UI,F.pending-f,f));D===0&&(F.status=103)}else F.status= 103;F.status===103&&(F.BZ.JY?(F.pending+2>F.l6&&wG(q),F.pending+2<=F.l6&&(P7(F,q.dh&255),P7(F,q.dh>>8&255),q.dh=0,F.status=113)):F.status=113);if(F.pending!==0){if(wG(q),q.vZ===0)return F.Hy=-1,0}else if(q.OO===0&&(Z<<1)-(Z>4?9:0)<=(B<<1)-(B>4?9:0)&&Z!==4)return Eq(q,-5);if(F.status===666&&q.OO!==0)return Eq(q,-5);if(q.OO!==0||F.e$!==0||Z!==0&&F.status!==666){B=F.strategy===2?QvK(F,Z):F.strategy===3?xOK(F,Z):Rd[F.level].func(F,Z);if(B===3||B===4)F.status=666;if(B===1||B===3)return q.vZ===0&&(F.Hy= -1),0;if(B===2&&(Z===1?(W7(F,2,3),yG(F,256,sq),F.bQ===16?(FE(F,F.yc),F.yc=0,F.bQ=0):F.bQ>=8&&(F.UI[F.pending++]=F.yc&255,F.yc>>=8,F.bQ-=8)):Z!==5&&(W7(F,0,3),zKZ(F,0,0),Z===3&&(hy(F.head),F.e$===0&&(F.AZ=0,F.pR=0,F.qD=0))),wG(q),q.vZ===0))return F.Hy=-1,0}if(Z!==4)return 0;if(F.wrap<=0)return 1;F.wrap===2?(P7(F,q.dh&255),P7(F,q.dh>>8&255),P7(F,q.dh>>16&255),P7(F,q.dh>>24&255),P7(F,q.gQ&255),P7(F,q.gQ>>8&255),P7(F,q.gQ>>16&255),P7(F,q.gQ>>24&255)):(rG(F,q.dh>>>16),rG(F,q.dh&65535));wG(q);F.wrap>0&& (F.wrap=-F.wrap);return F.pending!==0?0:1}; H7=function(q,Z,F){if(!q.HK){Z=Math.max(Z,.01);var B=q.yk?Math.max(Z,F/q.yk):Z,f=q.Zv.K.S;f&&(B=Z,q.yk&&(B=Math.max(Z,F/q.yk*f)));LD(q.Zv,Z,F,B)}}; KG7=function(q,Z,F,B,f){if(!g.C(q.renderingContent,Ks))return new K("AdsEngagementPanelSectionListViewModel is missing");var D={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,bL:"core"};Z=X3(q,Z,F);return Z instanceof K?Z:Object.assign({},D,{renderingContent:q.renderingContent,ud:new Map([])},Z,{Xe:Ou(B,f)(D),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new zX([])})}; vLb=function(q){var Z,F;return g.h(function(B){return B.D==1?g.R(B,oz(q),2):B.D!=3?(Z=B.K,F=void 0,g.R(B,g.e4(Z,["hotConfigStore"],{mode:"readwrite",Wg:!0},function(f){return g.NX(f.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(D){F=D.getValue()})}),3)):B.return(F)})}; XLb=function(q){var Z=q.api.getVideoData().interstitials,F=[];Z=g.E(Z);for(var B=Z.next();!B.done;B=Z.next()){B=B.value;var f=F,D=f.push,G=q,n=B.playerVars,b=B.Yc,N=B.time,S="yto-"+G.V++;N=new g.u8(N,N,{id:S,priority:7,namespace:"yto"});G.X[S]={playerVars:n,playerType:b};D.call(f,N);f=q.api.getVideoData(1);f=Object.assign({oauth_token:f.oauthToken},B.playerVars);q.api.preloadVideoByPlayerVars(f,B.Yc)}q.api.sZ(F,1)}; bP=function(q){try{return(typeof q==="string"?q:String(JSON.stringify(q))).substr(0,500)}catch(Z){return"unable to serialize "+typeof q+" ("+Z.message+")"}}; K36=function(q,Z){return function(){q.J.U("html5_simplify_pings")?(q.D=q.BG,q.bb=Z(),q.Lp=0,q.send()):jC(q).then(function(F){var B=QG(q);B.cmt=B.len;B.lact="0";var f=Z().toFixed(3);B.rt=Number(f).toString();B=g.gJ(q.uri,B);q.J.U("vss_through_gel_double")&&ELD(B);q.k$?(F==null&&(F={}),q.dU?xq().sendAndWrite(B,F):xq().sendThenWrite(B,F)):F?g.QN(B,F):g.ka(B)})}}; JB=function(q,Z,F,B){B=B===void 0?!1:B;V0.call(this,q);this.Yu=F;this.zG=B;this.args=[];Z&&this.args.push(Z)}; j3X=function(q){var Z={tick:{},info:{}};g.O9("ytcsi."+(q||"")+"data_",Z);return Z}; $OD=function(){return{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}}; ge=function(q){return/web/i.test(an(q))}; QT=function(){var q=0,Z;return function(F){Z||(Z=new MS);var B=new Fw(Z,q,1),f=wD(B,function(){return YU(F)},!0); B.dispose();q++;return f}}; g.bk=function(q,Z){q=Al(q);return q===void 0&&Z!==void 0?Z:Number(q||0)}; LB=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u,P,W,H,X,Q){this.vg=q;this.XN=Z;this.q8=F;this.wU=B;this.nB=f;this.qE=D;this.kS=G;this.XE=n;this.Zl=b;this.ke=N;this.YS=S;this.rq=l;this.Ep=U;this.tZ=u;this.yX=P;this.GP=W;this.A0=H;this.context=X;this.Fy=Q}; mO7=function(q,Z){Nd(q,1,Z.cpn);mx(q,2,Z.sequenceNumber);Nd(q,3,Z.serializedWatchEndpointLoggingContext);if(Z.decoderInfo)for(var F=0;F0?D[f-1]+1:0,B+1).reduce(function(G,n){return G+n},0)})}; v7=function(q){q.GoF=!0;return q}; jvk=function(q,Z,F,B,f,D,G,n){return Z===null?new K("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:Z,ActionCompanionAdRenderer:B}):[mBZ(q,Z,G,D,function(b){var N=b.slotId;b=n(b);var S=B.adLayoutLoggingData,l=new zX([new Xh(B),new QA(f)]);N=Bs(F.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N);var U={layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bL:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",ud:new Map, layoutExitNormalTriggers:[new g4(F.D,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:l,Xe:b(U),adLayoutLoggingData:S}})]}; Eu=function(q){q.V=!1;q.X.isActive()&&W$(q);q.X.stop();q.Cy(!1)}; Imy=function(q,Z){q.S[Z]||(q.S[Z]=new KD);return q.S[Z]}; yg=function(q){q=q===void 0?aa:q;wd.call(this,new $Y(q,2))}; CuK=function(){if(tp.getEntriesByType){var q=tp.getEntriesByType("paint");if(q=g.s3(q,function(F){return F.name==="first-paint"}))return Kt(q.startTime)}var Z; g.cz("csi_use_performance_navigation_timing")?Z=tp.getEntriesByType("first-paint")[0].startTime:Z=tp.timing.tHE;return Z?Math.max(0,Z):0}; $q=function(q,Z,F){var B=this;this.policy=q;this.D=Z;this.Y$=F;this.G=this.K=0;this.MA=null;this.Dl=new Set;this.PG=[];this.indexRange=this.initRange=null;this.V=new l8;this.uL=this.zP=!1;this.JZ={OGL:function(){return B.S}, s2c:function(){return B.chunkSize}, Lnp:function(){return B.X}, HUn:function(){return B.j}}; (Z=hgb(this))?(this.chunkSize=Z.csz,this.S=Math.floor(Z.clen/Z.csz),this.X=Z.ck,this.j=Z.civ):(this.chunkSize=q.Z8,this.S=0,this.X=g.ZY(16),this.j=g.ZY(16));this.Z=new Uint8Array(this.chunkSize);this.X&&this.j&&(this.crypto=new Rg6(this.X,this.j))}; JJg=function(){this.D=new cJD;this.K="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; r87=function(q){return q.scrollingElement?q.scrollingElement:g.YN||q.compatMode!="CSS1Compat"?q.body||q.documentElement:q.documentElement}; $N=function(){return g.ym("ytglobal.idbToken_")||void 0}; c5=function(q,Z,F){if(!q.playerVars)return new JB("No playerVars available in InstreamVideoAdRenderer.");var B,f;if(q.elementId==null||q.playerVars==null||q.playerOverlay==null||((B=q.playerOverlay)==null?void 0:B.instreamAdPlayerOverlayRenderer)==null&&((f=q.playerOverlay)==null?void 0:f.playerOverlayLayoutRenderer)==null||q.pings==null||q.externalVideoId==null)return new JB("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:q});B=lX(q.playerVars);f=Number(B.length_seconds); isNaN(f)&&(f=0,Yp("Expected valid length seconds in player vars but got NaN"));if(F.wj(Z.kind==="AD_PLACEMENT_KIND_START")){if(q.layoutId===void 0)return new JB("Expected server generated layout ID in instreamVideoAdRenderer");Z=q.layoutId}else Z=q.elementId;return{layoutId:Z,A3:q,playerVars:B,Wb:q.playerVars,XD:f}}; ev=function(q,Z,F,B,f,D,G,n,b,N){this.G=q;this.K=Z;this.D=F;this.GP=B;this.Kw=f;this.S=D;this.Zl=G;this.gY=n;this.Ia=b;this.loadPolicy=N===void 0?1:N}; az=function(){return""}; Z3=function(q,Z){this.K=this.D=null;this.S=q||null;this.G=!!Z}; nB=function(q,Z,F,B,f,D,G){this.D=q;this.K=Z;this.Kw=F;this.GP=B;this.wU=f;this.Zl=D;this.A0=G}; YRK=function(q){var Z;q=q==null?void 0:(Z=q.error)==null?void 0:Z.code;return!(q!==400&&q!==415)}; g.mc=function(q,Z){var F=g.CF.apply(2,arguments);q=q===void 0?0:q;g.M2.call(this,Z,F);this.errorType=q;Object.setPrototypeOf(this,this.constructor.prototype)}; tsk=function(q,Z,F){if(!q.policy.Z){q=Z.D.index;var B=Z.K.Uc;q.g3(B)||F&&F.Uc===B?(Z.Z=!q.g3(B),Z.zP=!q.g3(B)):(Z.Z=!0,Z.zP=!0)}}; g.rt=function(q,Z){return Array.prototype.splice.call(q,Z,1).length==1}; pL9=function(q,Z){for(var F=[],B=g.E(q.Bg.values()),f=B.next();!f.done;f=B.next())f=f.value,f.trigger instanceof Wj&&f.trigger.slotId===Z&&F.push(f);F.length>=1&&j2(q.D(),F)}; dO9=function(q,Z){q.attestationResponse&&jC(q).then(function(F){F=F||{};F.method="POST";F.postParams={atr:q.attestationResponse};q.k$?q.dU?xq().sendAndWrite(Z,F):xq().sendThenWrite(Z,F):g.QN(Z,F)})}; g.Vd=function(q){var Z=g.bm();return Z?Z.toLowerCase().indexOf(q)>=0:!1}; g.ic=function(q,Z){return qW6(q,Z)}; kq=function(q,Z){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=Z||q(this.triggerType)}; g.wz=function(q,Z){for(var F=g.E(Object.keys(Z)),B=F.next(),f={};!B.done;f={placeholder:void 0},B=F.next())B=B.value,f.placeholder=Z[B],q=q.replace(new RegExp("\\$"+B,"gi"),function(D){return function(){return D.placeholder}}(f)); return q}; g.jR=function(q){return(q=VsG(q.app.pB()))?q.o6():null}; egg=function(q,Z){var F={};if(Z=q.app.dj(Z===void 0?1:Z)){Z=Z.getVideoData();if(Iz(Z))return{};F.video_id=Z.videoId;F.author=Z.author;F.title=Z.title;F.isPlayable=Fh(Z);F.errorCode=Z.errorCode;if(Z.K&&Z.K.video){F.video_quality=Z.K.video.quality;Z=Z.K.video;var B=[];Z.fps>32&&B.push("hfr");Z.isHdr()&&B.push("hdr");Z.primaries==="bt2020"&&B.push("wcg");F.video_quality_features=B}}if(q=q.getPlaylistId())F.list=q;return F}; CD=function(q,Z,F,B,f,D,G,n){oP.call(this,q,Z,F,B);this.wU=f;this.vg=D;this.j=n;this.Fw=!0;this.G=null;this.Z=qc(F.clientMetadata,"metadata_type_linked_player_bytes_layout_id");qr(this.vg(),this);q=qc(F.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(F.ud,this.wU,q,F.layoutId)}; r_9=function(q){var Z=/codecs="([^"]*)"/.exec(q.mimeType);return Z&&Z[1]?Z[1]+" ("+q.itag+")":q.itag}; XCb=function(q,Z,F,B){var f=(B=B===void 0?!1:B)?16:8;B=Mq({cttAuthInfo:ot(Z)||void 0,endOfSequence:B},Z);F={csn:Z,ve:F.getAsJson(),eventType:f};Z==="UNDEFINED_CSN"?G1("visualElementHidden",B,F):q?z1("visualElementHidden",F,q,B):g.nh("visualElementHidden",F,B)}; TWB=function(q,Z){return q.K.some(function(F){return F.info.Uc===Z})}; qJ=function(q,Z){if(q.policy.o_&&q.gU){var F,B,f=Z?(F=q.gU)==null?void 0:F.D:(B=q.gU)==null?void 0:B.K;F=Z?q.audioTrack:q.videoTrack;Z=oM(F);if(Z==null?0:Z.isLocked){q.Mp.C().Nl()&&q.iL("eosl",{unlock:Z.info.wq()});var D;(D=F.dU)==null||D.stop();Z.isLocked=!1;F.gS(Z);MsG(q.D,Z.info);f=f==null?void 0:f.XF();(f==null?void 0:f.wq())!==Z.info.wq()&&q.iL("oue",{bls:f==null?void 0:f.wq(),tls:Z.info.wq()})}}}; oa7=function(q){return q.fields.map(function(Z){return Z.fieldName})}; KM=function(q,Z,F,B){return hl(q,(q.state|Z)&~F,null,B===void 0?null:B)}; Bm9=function(q){q=q||wq();for(var Z=new qDb(g.W5.location.href,!1),F=null,B=q.length-1,f=B;f>=0;--f){var D=q[f];!F&&ZjD.test(D.url)&&(F=D);if(D.url&&!D.D){Z=D;break}}f=null;D=q.length&&q[B].url;Z.depth!==0&&D&&(f=q[B]);return new FHK(Z,f,F)}; k1=function(q){if(!q.nextVideo||!q.policy.G)if(q.D.isLocked())q.nextVideo=q.D.D<=360?q.Np.D[q.G[0].id]:q.Np.D[g.uU(q.G).id];else{for(var Z=Math.min(q.V,q.G.length-1),F=iG(q.zP),B=Pj(q,q.K.info),f=F/q.policy.zP-B;Z>0&&!(Pj(q,q.G[Z])<=f);Z--);for(F=F/q.policy.PG-B;Z=F);Z++);q.nextVideo=q.Np.D[q.G[Z].id];q.V=Z}}; Nj=function(q,Z){if(DY(q.D,Z)){GK(q.D,Z).j=!1;var F=j2;Z=GK(q.D,Z);var B=[].concat(g.YB(Z.V));h8k(Z.V);F(q,B)}}; Rz=function(q,Z,F){if(!Z&&!F)return null;var B=Z?String(Z).toUpperCase():null;return SF(q,function(f){return(!B||f.nodeName==B)&&(!F||typeof f.className==="string"&&g.r1(f.className.split(/\s+/),F))},!0)}; lq7=function(q,Z){g.MT(q.api.pB())&&q.api.setOption("captions","sampleSubtitles",Z)}; IxB=function(q){fX.call(this,q);var Z=this;this.events=new g.pO(q);g.y(this,this.events);hC(this.api,"musicDisableUi",function(){g.e$(Z.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); hC(this.api,"musicEnableUi",function(){g.vc(Z.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}; fc7=function(q){if(q==null||typeof q=="string"||q instanceof yd)return q}; Wy=function(){}; DAg=function(q,Z){return(c7(q,Z)+q.policy.aY)*Z.Ml}; MW=function(q){return q?q.a6():!1}; UXD=function(){var q=g.oa("BATCH_CLIENT_COUNTER")||0;q||(q=Math.floor(Math.random()*65535/2));q++;q>65535&&(q=1);eJ("BATCH_CLIENT_COUNTER",q);return q}; kRb=function(){var q=!1;try{q=!!window.sessionStorage.getItem("session_logininfo")}catch(Z){q=!0}return(g.oa("INNERTUBE_CLIENT_NAME")==="WEB"||g.oa("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&q}; PRZ=function(q){if(q.U("html5_stateful_audio_normalization")){var Z=1,F=g.Ce(q.Qs.experiments,"html5_default_ad_gain");F&&q.isAd()&&(Z=F);var B,f;F=(f=(B=q.G)==null?void 0:B.audio.G)!=null?f:q.Uh;if(F==null||isNaN(F))q=xlk(q);else{B=(0,g.Le)();q.P3=2;f=B-q.Qs.JV<=q.maxStatefulTimeThresholdSec*1E3;q.applyStatefulNormalization&&f?q.P3=4:f||(q.Qs.vX=Infinity,q.Qs.JV=NaN);f=(q.P3===4?g.JY(q.Qs.vX,q.minimumLoudnessTargetLkfs,q.loudnessTargetLkfs):q.loudnessTargetLkfs)-F;if(q.P3!==4){var D,G,n,b,N=((D= q.playerResponse)==null?void 0:(G=D.playerConfig)==null?void 0:(n=G.audioConfig)==null?void 0:(b=n.loudnessNormalizationConfig)==null?void 0:b.statelessLoudnessAdjustmentGain)||0;f+=N}f=Math.min(f,0);q.preserveStatefulLoudnessTarget&&(q.Qs.vX=F+f,q.Qs.JV=B);q=Math.min(1,Math.pow(10,f/20))||Z}}else q=xlk(q);return q}; GeB=function(q,Z,F){var B;Jl(q.wU.get(),"ads_qua","cpn."+qc(q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((B=IB(q.XE.get(),2))==null?void 0:B.clientPlaybackNonce)+";qt."+Z+";clr."+F)}; z2k=function(q,Z){var F;if((F=q.questions)==null||!F.length||!q.playbackCommands||(Z===void 0||!Z)&&q.questions.length!==1)return!1;q=g.E(q.questions);for(Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var B=F=void 0,f=((F=g.C(Z,OY))==null?void 0:F.surveyAdQuestionCommon)||((B=g.C(Z,Qp))==null?void 0:B.surveyAdQuestionCommon);if(!eHD(f))return!1}return!0}; hgb=function(q){if(q.policy.zH&&q.policy.Ue)for(var Z=g.E(q.policy.zH),F=Z.next(),B={};!F.done;B={RF:void 0,Hd:void 0},F=Z.next())if(F=g.DA(F.value),B.RF=+F.clen,B.Hd=+F.csz,B.RF>0&&B.Hd>0&&q.policy.G===F.docid&&q.D.info.id===F.fmtid&&q.D.info.lastModified===+F.lmt)return q={},q.clen=B.RF,q.csz=B.Hd,q.ck=F.ck,q.civ=F.civ,q}; dG=function(q,Z,F){var B=q.Zl.get().getCurrentTimeSec(1,!1);q.GP.get().B.C().Nl()&&Jl(q.wU.get(),"sdai","onopp.1;evt."+F.event+";start."+F.startSecs.toFixed(3)+";d."+F.jC.toFixed(3));Yq(q.K.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var f=q.S.get(),D=Z.adPlacementRenderer.renderer.adBreakServiceRenderer,G=Z.contentCpn,n=Z.adPlacementRenderer.adSlotLoggingData;tl(q.GP.get());var b=q.wU;var N=f.GP.get();N=g.Ce(N.B.C().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var S=f.GP.get();var l=g.Ce(S.B.C().experiments,"min_prefetch_offset_sec_for_livestream_optimization");S=F.startSecs*1E3;S={JS:new jA(S,S+F.jC*1E3),aM:!1,cueProcessedMs:B*1E3};var U=F.startSecs+F.jC;if(B===0)S.aG=new jA(0,U*1E3);else{l=F.startSecs-l;var u=l-B;S.aG=u<=0?new jA(l*1E3,U*1E3):new jA(Math.floor(B+Math.random()*Math.min(u,N))*1E3,U*1E3)}D=me(f,D,G,S,n,[new ya(F)]);pD(f.GP.get())&&Jl(b.get(),"abrsm","cpi."+F.identifier+";cps."+F.startSecs+";cpd."+F.jC+";cts."+B+";rbf."+S.aG.start);b.get().B.sJ(F.startSecs- B,S.aG.start/1E3-B);return[D]})}; na9=function(q,Z,F,B,f,D,G,n,b,N){var S=f-B,l,U=((l=q.fulfilledLayout||qc(q.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:qc(l.clientMetadata,"metadata_type_ssdai_ads_config"))||"",u,P;(l=(u=qc(q.clientMetadata,"metadata_type_triggering_cue_point"))==null?void 0:(P=u.current)==null?void 0:P.identifier)||Yp("Cue point identifier is undefined",q,Z,b());if(!S)return G.Qu(F,U,2,D,B,f,q.slotId,l),Jl(N,"ads_iraot","slid."+Z.layoutId+";enterMs."+B+";exitMs."+f+";vid."+F.video_id),null;S= G.gt(F,U,2,D,B,f,q.slotId,l);Jl(N,"ads_atct","slid."+Z.layoutId+";enterMs."+B+";exitMs."+f+";vid."+F.video_id+";pid."+S+";cid."+l);if(!S)return Yp("Unexpected failure to add to playback timeline",q,Z,b()),null;q=q.slotId;Z=Z.layoutId;S?(n.D.has(S)&&Yp("Unexpected remap of timeline playback"),n.D.set(S,{slotId:q,layoutId:Z})):Yp("Invalid timeline playback ID");B+D>f&&G.P_(S,f-B);return S}; bjX=function(q,Z){var F=(Z-q.D)/(q.K-q.D);if(F<=0)return 0;if(F>=1)return 1;for(var B=0,f=1,D=0,G=0;G<8;G++){D=VG(q,F);var n=(VG(q,F+1E-6)-D)/1E-6;if(Math.abs(D-Z)<1E-6)return F;if(Math.abs(n)<1E-6)break;else D1E-6&&G<8;G++)D=Z.mediaTime?(Z.resolve([Z.mediaTime,Z.id]),q.D.delete(Z.id)):(Z.delay.dispose(),F=(Z.mediaTime-F)*1E3/q.Mp.getPlaybackRate(),Z.delay=new g.im(function(){DP(q,Z)},F/2),Z.delay.start()))}; PUK=function(q,Z){q.Mp.iL("sdai",{adj4t:Z.toFixed(3)});q.BG=Z;Z+=1;q.K=Z;q.S=Z;qP(q).then(function(F){pB(q,F)},function(){te(q)})}; QM=function(q){return q.getVideoData().enableServerStitchedDai&&!!q.EZ}; BW=function(q,Z){if(!q)throw new TypeError("Expected instream video ad renderer");if(!q.playerVars)throw new TypeError("Expected player vars in url encoded string");var F=lX(q.playerVars),B=Number(F.length_seconds);if(isNaN(B))throw new TypeError("Expected valid length seconds in player vars");var f=Number(q.trimmedMaxNonSkippableAdDurationMs);B=isNaN(f)?B:Math.min(B,f/1E3);f=q.playerOverlay||{};f=f.instreamAdPlayerOverlayRenderer===void 0?null:f.instreamAdPlayerOverlayRenderer;var D=q.playerOverlay|| {};D=D.playerOverlayLayoutRenderer===void 0?null:D.playerOverlayLayoutRenderer;var G=F.video_id;G||(G=(G=q.externalVideoId)?G:void 0);if(!G)throw new TypeError("Expected valid video id in IVAR");if(Z&&B===0){var n;Z=(n=rAZ[G])!=null?n:B}else Z=B;return{playerVars:F,videoLengthSeconds:Z,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:D,adVideoId:G,ud:q.pings?Zk(q.pings):new Map,Ky:Fk(q.pings)}}; QPb=function(q){var Z=mo()&&RR()>=67&&!q.api.C().X;q=q.api.C().disableOrganicUi;return!g.Vd("tizen")&&!eT&&!Z&&!q}; fz=function(q,Z){g.w.call(this,{Y:"div",W:"ytp-storyboard-framepreview",T:[{Y:"div",W:"ytp-storyboard-framepreview-timestamp",Ka:"{{timestamp}}"},{Y:"div",W:"ytp-storyboard-framepreview-img"}]});this.api=q;this.K=this.cG("ytp-storyboard-framepreview-img");this.D=null;this.frameIndex=NaN;this.events=new g.pO(this);this.fade=new g.L3(this,100);g.y(this,this.events);g.y(this,this.fade);this.N(this.api,"presentingplayerstatechange",this.S);Z&&this.N(this.element,"click",function(){Z.xZ()})}; wUk=function(q,Z,F,B,f,D){var G=nK(q.K.get(),"SLOT_TYPE_FORECASTING");Z=Dk(q,Z,F,B);if(Z instanceof K)return Z;B=[new Nl(q.D,G)];q=[new $H(q.D,G),new g4(q.D,F)];return{slotId:G,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:B,slotExpirationTriggers:q,bL:"core",clientMetadata:new zX([new Si(D({slotId:G,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,bL:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:B,slotExpirationTriggers:q}))]),adSlotLoggingData:f}}; g.i$=function(){return Date.now()}; Gb=function(q){return{itagDenylist:rh(q,1)}}; yAg=function(q,Z){q.focus(Z);return zb(q,Z,4)?WHb(q).getUint32(Z-q.S):256*(256*(256*nz(q,Z)+nz(q,Z+1))+nz(q,Z+2))+nz(q,Z+3)}; bv=function(q){g.J.call(this);this.G=q;this.logger=new g.Wz("onesie");this.He=new Map;this.K=this.D=!1;this.ME=this.Np=null;this.S=!1}; JA=function(q){this.Ec=rE(q)}; LHX=function(q,Z,F,B,f){g.J.call(this);var D=this,G=mG(function(){return new ii(D.GP)}); g.y(this,G);var n=mG(function(){return new kZ(G,D.GP)}); g.y(this,n);var b=mG(function(){return new jv}); g.y(this,b);var N=mG(function(){return new IA(q)}); g.y(this,N);var S=mG(function(){return new CG(G,n,D.GP)}); g.y(this,S);var l=mG(function(){return new hx}); g.y(this,l);this.ub=mG(function(){return new RA(Z)}); g.y(this,this.ub);this.tZ=mG(function(){return new cl(f)}); g.y(this,this.tZ);this.rq=mG(function(){return new Jx(Z)}); g.y(this,this.rq);this.YS=mG(function(){return new YZ(Z)}); g.y(this,this.YS);this.kS=mG(function(){return new tx(Z)}); g.y(this,this.kS);this.Ep=mG(function(){return new pG(Z)}); g.y(this,this.Ep);this.GP=mG(function(){return new dy(Z)}); g.y(this,this.GP);var U=mG(function(){return new Fx(B)}); g.y(this,U);var u=mG(function(){return new Vj(D.GP)}); g.y(this,u);var P=mG(function(){return new ev(G,S,n,D.GP,u,null,null,null,null)}); g.y(this,P);this.yX=mG(function(){return new Tz(Z)}); g.y(this,this.yX);this.XE=mG(function(){return new CI(Z,l,D.GP)}); g.y(this,this.XE);var W=MX({XE:this.XE,GP:this.GP,Kw:u}),H=W.context,X=W.Fy;this.yO=W.yO;this.Zl=mG(function(){return new da(Z,D.XE,D.GP)}); g.y(this,this.Zl);this.ke=mG(function(){return new ok}); g.y(this,this.ke);this.nB=mG(function(){return new iD(D.Zl,Z,D.GP)}); g.y(this,this.nB);this.wU=mG(function(){return new qq(Z,b,D.nB,D.XE,D.yO,D.GP,X)}); g.y(this,this.wU);this.qE=mG(function(){return new ZT(D.GP)}); g.y(this,this.qE);this.Lz=new Fi(NP,Bh,function(a,m,c,e){return go(n.get(),a,m,c,e)},N,S,n,u,this.GP,this.XE); g.y(this,this.Lz);this.wh=new fB(N,P,F,this.GP,q,this.XE,this.Zl,this.rq);g.y(this,this.wh);var Q=new DT(Z,this.wh,this.Zl,this.XE);this.Xw=mG(function(){return Q}); this.Th=Q;this.VX=new GQ(N,S,this.YS,this.Xw,H);g.y(this,this.VX);this.UZ=new zQ(this.GP,N,S,P,this.XE,this.VX,F,this.kS);g.y(this,this.UZ);this.YV=mG(function(){return new nB(U,n,u,D.GP,D.wU,D.Zl)}); g.y(this,this.YV);this.AC=mG(function(){return new bn}); g.y(this,this.AC);this.cf=new Nq(q,this.ub,this.GP);g.y(this,this.cf);this.Ih=new gI(q);g.y(this,this.Ih);this.y$=new Sa(q,this.Xw,H);g.y(this,this.y$);this.T8=new ln(q,this.YS,this.Zl,this.XE,H);g.y(this,this.T8);this.rj=new UU(q);g.y(this,this.rj);this.VM=new un(q);g.y(this,this.VM);this.A0=mG(function(){return new Ph(Z)}); g.y(this,this.A0);this.XN=new rI(q);g.y(this,this.XN);this.z8=mG(function(){return new wI}); g.y(this,this.z8);this.aS=mG(function(){return new Wh(D.Zl)}); g.y(this,this.aS);this.AV=mG(function(){return new dt(D.UZ,N,G)}); g.y(this,this.AV);this.UX=mG(function(){return new yS(D.GP,D.wU,D.rj,D.nB)}); g.y(this,this.UX);this.l7=mG(function(){return new zWg(D.ub,D.Zl,D.wU,b,F,D.GP)}); g.y(this,this.l7);this.HX=mG(function(){return new LB(q,D.XN,D.rj,D.wU,D.nB,D.qE,D.kS,D.XE,D.Zl,D.ke,D.YS,D.rq,D.Ep,D.tZ,D.yX,D.GP,D.A0,H,X)}); g.y(this,this.HX);this.ND={Yi:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.UZ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lz],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.wh],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.VX]]),yW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.YV],["SLOT_TYPE_FORECASTING",this.AC],["SLOT_TYPE_IN_PLAYER",this.AC],["SLOT_TYPE_PLAYER_BYTES",this.AC]]),CQ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Ih],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ih],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ih],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ih],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ih],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ih],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ih],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ih],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ih],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.y$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.T8],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.T8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rj],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.y$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VM],["TRIGGER_TYPE_AD_BREAK_STARTED",this.XN]]),n8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.z8],["SLOT_TYPE_ABOVE_FEED",this.z8],["SLOT_TYPE_FORECASTING",this.z8],["SLOT_TYPE_IN_PLAYER",this.z8],["SLOT_TYPE_PLAYER_BYTES",this.aS]]),k_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.AV],["SLOT_TYPE_FORECASTING",this.UX],["SLOT_TYPE_IN_PLAYER", this.l7],["SLOT_TYPE_PLAYER_BYTES",this.HX]])};this.listeners=[b.get()];this.eq={UZ:this.UZ,Zs:this.GP.get(),x$:this.tZ.get(),r_:this.Zl.get(),wh:this.wh,JH:G.get(),oR:null,F8:this.cf,Nd:b.get(),uw:this.XE.get()}}; g.SL=function(q,Z){this.type=q;this.currentTarget=this.target=Z;this.defaultPrevented=this.K=!1}; nh6=function(q,Z){return HjK(q,Z)}; OjK=function(q,Z,F){q.api.isFullscreen()?F<1-Z&&q.api.toggleFullscreen():F>1+Z&&q.api.toggleFullscreen()}; X8=function(q){V0.call(this,q)}; Qp6=function(q,Z,F,B){B=B===void 0?null:B;var f=g.AV("SCRIPT");f.id=Z;f.onload=function(){F&&setTimeout(F,0)}; f.onreadystatechange=function(){switch(f.readyState){case "loaded":case "complete":f.onload()}}; B&&f.setAttribute("nonce",B);g.U2(f,typeof q==="string"?g.lv(q):q);q=document.getElementsByTagName("head")[0]||document.body;q.insertBefore(f,q.firstChild);return f}; yR=function(q,Z,F,B,f){var D=F.gB,G,n;q[Z]=function(b,N,S){return D(b,N,S,n||(n=rS(wS,WY,yR,B).FM),G||(G=PY(B)),f)}}; UL=function(q,Z){var F=[];q=g.E(q.array);for(var B=q.next();!B.done&&!(B=B.value,B.contains(Z)&&F.push(B),B.start>Z);B=q.next());return F}; xAK=function(q){if(!q.D)return null;var Z=Fu(q.D,"atr");return function(F){q.D&&JvD(q.D,F,Z)}}; AAb=function(q){if(!g.bE())throw q=new g.Mu("AUTH_INVALID",{dbName:q}),uv(q),q;var Z=g.nJ();return{actualName:q+":"+Z,publicName:q,userIdentifier:Z}}; PW=function(q){var Z;return((Z=q.audio)==null?void 0:Z.audioQuality)==="AUDIO_QUALITY_HIGH"}; ndk=function(){var q=g.CF.apply(0,arguments);return q.length===0?function(Z){return Z}:q.length===1?q[0]:q.reduce(function(Z,F){return function(){return Z(F.apply(null,g.YB(g.CF.apply(0,arguments))))}})}; gQ=function(q,Z){this.J=q;this.timerName="";this.S=!1;this.K=NaN;this.G=new vaB;this.D=Z||null;this.S=!1}; KHb=function(q){if(!g.cz("universal_csi_network_ticks"))return function(){}; var Z=XUb[q];return Z?(z2(Z),function(){var F=g.cz("universal_csi_network_ticks")?(F=Ea7[q])?z2(F):!1:!1;return F}):function(){}}; ro=function(){return{Y:"svg",L:{height:"100%",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",L:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}}; acG=function(){$A7=wo=WW=yQ=null}; HW=function(q,Z,F,B,f){km.call(this,q,{Y:"span",W:f?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",Z,F,B);this.K=f;this.adBadgeText=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.x$);this.adBadgeText.R_(this.element);g.y(this,this.adBadgeText);f?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),R_&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; mAb=function(q){var Z,F;return((Z=q.D)==null?void 0:(F=Z.kX)==null?void 0:F.hx)||0}; ijG=function(q,Z){if((q=e2(q,Z))&&q.onCueRangeExit)return nV(q.onCueRangeExit)}; ke8=function(q,Z,F,B){Z.durationMs=F;Z.Ya=B;B={o1:OL(F,!0),qg:F,target:null};E9Z(q,Z,B);Va(q,Z)&&q.app.Vs().getCurrentTime()*1E3>F&&(Z=emb(q,Z)/1E3,F=q.app.Vs().getPlayerState(),R4(q,Z,{},F,"_update"))}; g.vf=function(q){var Z=g.ym("yt.logging.errors.log");Z?Z(q,"ERROR",void 0,void 0,void 0,void 0,void 0):(Z=g.oa("ERRORS",[]),Z.push([q,"ERROR",void 0,void 0,void 0,void 0,void 0]),eJ("ERRORS",Z));GOZ(q)}; sp6=function(q){var Z=QQ(q);return Z&&Z.text?g.HD(Z.text):q.paidContentOverlayText}; xJ=function(q,Z,F,B,f){this.loader=q;this.Np=Z;this.videoTrack=F;this.audioTrack=B;this.policy=f;this.seekCount=this.targetTime=0;this.G=!1;this.S=null;this.K=0;this.D=this.Np.isManifestless&&!this.Np.OZ}; g.pq=function(q){this.D=this.V=this.Z="";this.S=null;this.j=this.K="";this.X=!1;var Z;q instanceof g.pq?(this.X=q.X,g.dA(this,q.Z),this.V=q.V,g.f6(this,q.D),g.O0(this,q.S),this.K=q.K,B$(this,q.G.clone()),this.j=q.j):q&&(Z=g.oi(String(q)))?(this.X=!1,g.dA(this,Z[1]||"",!0),this.V=An(Z[2]||""),g.f6(this,Z[3]||"",!0),g.O0(this,Z[4]),this.K=An(Z[5]||"",!0),B$(this,Z[6]||"",!0),this.j=An(Z[7]||"")):(this.X=!1,this.G=new Z3(null,this.X))}; td=function(q){AM(q);var Z=vm(Number(q));if(XQ(Z))return String(Z);Z=q.indexOf(".");Z!==-1&&(q=q.substring(0,Z));return yCD(q)}; iK=function(q,Z,F){q[Z]=F.oX}; jpK=function(q,Z,F){var B,f=(B=q.Np)==null?void 0:B.S.get(Z);if(!f)return[];if(F.xH){var D;return((D=f.IJ(0,F.clipId))==null?void 0:D.TP)||[]}if(f.j7()){var G=F.startMs,n=F.durationMs;B=1E3;var b;if(((b=q.ME)==null?0:b.D)&&F.timeRange){var N;G=(N=F.timeRange.startTicks)!=null?N:-1;var S;n=(S=F.timeRange.mM)!=null?S:-1;var l;B=(l=F.timeRange.timescale)!=null?l:-1}if(F.h7<0||F.Zi<0||n<0||G<0||F.Xq<0||B<0)return pb(q,Z),[];q=js(F.h7,F.Xq);Z=F.Q0||0;return[new b6(3,f,q,"makeSliceInfosMediaBytes",F.Zi- 1,G/B,n/B,Z,q.length-Z,void 0,F.De,F.clipId)]}if(F.Zi<0)return pb(q,Z),[];var U;return((U=q.Np)==null?0:U.d2)?(Z=f.iI,b=Z*f.info.Ml,N=F.Q0,((n=q.ME)==null?0:n.sb)&&F.timeRange&&!N&&(G=F.timeRange.startTicks/F.timeRange.timescale),[new b6(3,f,void 0,"makeSliceInfosMediaBytes",F.Zi,G,Z,N,b,!0,F.De,F.clipId)]):[]}; q8G=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u,P,W,H,X){var Q=new Cm({current:null}),a=MSk(f,n,b);if(a instanceof K)return a;b=[];for(var m=[],c=void 0,e=0;eF.length&&(q.error=!0);q.register|=(F[B+1]<<8)+F[B]<=0)return kJ(q,F&15),F>>4;for(kJ(q,7);F<0;)F=Z[J7(q,1)-F];return F>>4}; g.xh=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; sL=function(q,Z){return q===void 0||q==="undefined"?!0:q===Z}; Iw=function(){try{var q=window.navigator;if(q.getAutoplayPolicy&&typeof q.getAutoplayPolicy==="function"){var Z=document.getElementsByClassName(g.jL.ukE);var F=Z.length>0&&Z[0]?q.getAutoplayPolicy(Z[0]):q.getAutoplayPolicy("mediaelement");if(tI7[F])return tI7[F]}}catch(B){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; pU9=function(q,Z,F){for(F=Cz(q,F);F>=0;){var B=q.levels[F];if(B.isLoaded(hn(B,Z))&&(B=g.Rw(B,Z)))return B;F--}return g.Rw(q.levels[0],Z)}; cW=function(q){q.B.WZ("shopping_overlay_visible");q.B.WZ("shopping_overlay_preview_collapsed");q.B.WZ("shopping_overlay_preview_expanded");q.B.WZ("shopping_overlay_expanded")}; RrK=function(q){fX.call(this,q);var Z=this;this.events=new g.pO(q);g.y(this,this.events);this.events.N(q,"applicationvideodatachange",function(F,B){B=B.clipConfig;F==="dataloaded"&&B&&B.startTimeMs!=null&&B.endTimeMs!=null&&Z.api.setLoopRange({startTimeMs:Math.floor(Number(B.startTimeMs)),endTimeMs:Math.floor(Number(B.endTimeMs)),postId:B.postId,type:"clips"})})}; g.tn=function(q){g.w.call(this,{Y:"div",W:"ytp-more-videos-view",L:{tabIndex:"-1"}});var Z=this;this.api=q;this.K=!0;this.S=new g.pO(this);this.D=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.G=this.scrollPosition=0;this.title=new g.w({Y:"h2",W:"ytp-related-title",Ka:"{{title}}"});this.previous=new g.w({Y:"button",rU:["ytp-button","ytp-previous"],L:{"aria-label":"Mostrar videos sugeridos anteriores"},T:[g.Jn()]});this.j=new g.YJ(function(F){Z.suggestions.element.scrollLeft= -F}); this.next=new g.w({Y:"button",rU:["ytp-button","ytp-next"],L:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},T:[g.Fc()]});g.y(this,this.S);this.Z=q.C().G;g.y(this,this.title);this.title.R_(this.element);this.suggestions=new g.w({Y:"div",W:"ytp-suggestions"});g.y(this,this.suggestions);this.suggestions.R_(this.element);g.y(this,this.previous);this.previous.R_(this.element);this.previous.listen("click",this.QZ,this);g.y(this,this.j);hhZ(this);g.y(this,this.next);this.next.R_(this.element);this.next.listen("click", this.cj,this);this.S.N(this.api,"appresize",this.CB);this.S.N(this.api,"fullscreentoggled",this.EN);this.S.N(this.api,"videodatachange",this.onVideoDataChange);this.CB(this.api.Ca().getPlayerSize());this.onVideoDataChange()}; VI9=function(q,Z){UE(q,1,Z.formatId,pz,3);mx(q,2,Z.startTimeMs);mx(q,3,Z.durationMs);mx(q,4,Z.BE);mx(q,5,Z.zD);UE(q,9,Z.qSc,dAD,3);UE(q,11,Z.xzU,de,1);UE(q,12,Z.Wo,de,1)}; VQ=function(q,Z){return Object.is(q,Z)}; e28=function(q){if(q.Mq!==void 0){var Z=vl;vl=!0;try{for(var F=q.Mq;F!==void 0;F=F.OJ){var B=F.GX;B.VQ||(q=void 0,B.VQ=!0,e28(B),(q=B.zX)==null||q.call(B,B))}}finally{vl=Z}}}; W0g=function(){return{m0:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],FN:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; TmX=function(q){q=["object"==typeof globalThis&&globalThis,q,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Z=0;Zn){P.An(2);break}U=N+Z;u=l-U;u>>7)];yG(q,G,F);n=iO[G];n!==0&&(f-=mN[G],W7(q,f,n))}}while(B=5&&(q|5)>>4<3){F=64;for(B=[];++F-B[z[1]]-32;){switch(F){case 91:F=44;continue;case 123:F=65;break;case 65:F-=18;continue;case 58:F=96;continue;case 46:F=95}B[z[3]](String[z[27]](F))}D=B}return D}; fk=function(q){q=q===void 0?!1:q;var Z=Dv(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(q)for(;Z&&Z.shadowRoot;)Z=Z.shadowRoot.fullscreenElement;return Z?Z:null}; rKX=function(q){var Z={};q.forEach(function(F){Z[F[0]]=F[1]}); return function(F){return Z[F.find(function(B){return B in Z})]||""}}; z37=function(q,Z,F){if(q.api.U("web_player_nitrate_promo_tooltip")&&q.api.getPresentingPlayerType(!0)!==2){var B=q.api.getVideoData(1);if(B==null?0:B.tooltipRenderer){B=B.tooltipRenderer;var f;if(f=!q.hQ){if(!(Z=!Z)){var D,G,n;Z=((D=B.tooltipDisplayStrategy)==null?void 0:D.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((G=B.promoConfig)==null?void 0:G.promoId)!=="dtip-edu-player-iseecaptions"&&((n=B.promoConfig)==null?void 0:n.promoId)!=="dtip-edu-player-tc-m2"}f=Z}f&&(q.hQ=new Rt(B,q.api), g.y(q,q.hQ),g.C5(q.api,q.hQ.element,9));var b;(b=q.hQ)==null||RQ(b,B,F)}}}; nH8=function(q){return q}; G2g=function(q,Z){this.uw=q;this.GP=Z}; KMK=function(q,Z){if(!q.Z){Z=OJ(142,Z);VB();var F;TU.visibilityState?F="visibilitychange":TU.mozVisibilityState?F="mozvisibilitychange":TU.webkitVisibilityState&&(F="webkitvisibilitychange");F&&pw(TU,F,Z,{capture:!1})&&(q.Z=Z)}}; Tb=function(q){q.gU&&q.gU.TD()&&q.hg()}; bab=function(q){return{bitrate:Ta(q,6),width:Ta(q,7),height:Ta(q,8),fps:Ta(q,25),averageBitrate:Ta(q,31),audioSampleRate:Ta(q,45),audioChannels:Ta(q,46),qualityOrdinal:Ta(q,56)}}; JM=function(q,Z,F){this.initData=q;this.contentType=Z;this.isPrefetch=F;this.D=this.cryptoPeriodIndex=NaN;this.S=[];this.cL=!1;this.K=null;if((Z==null?void 0:Z.toLowerCase())==="webm"||q.length===16)this.cL=!0}; Lj=function(q){return!(!q.isLivePlayback||!q.hasProgressBarBoundaries())}; SJD=function(q,Z,F){var B={};Nck(q,B,Z,F);gH7(B);B.LACT=u6(function(){return zG().toString()}); B.VIS=u6(function(){return q.getVisibilityState().toString()}); B.SDKV="h.3.0";B.VOL=u6(function(){return q.isMuted()?"0":Math.round(q.getVolume()).toString()}); B.VED="";return B}; MP=function(q,Z){return sAg(q,function(F){return F.D},Z===void 0?!0:Z)}; oy=function(q){return q.D&&q.lJ}; g.bh=function(q){g.mM(q,"WARNING")}; lSK=function(q){var Z;return!((Z=q.webPlayerContextConfig)==null||!Z.enableSelfProfilingLogging)}; JgK=function(q,Z,F){jMD(q,q[Sm]|0,function(B,f){if(f!=null){var D=UQy(F,B);D?D(Z,f,B):B<500||$m(u$X,3)}}); (q=uf(q))&&UN(q,function(B,f,D){sJ(Z,Z.D.end());for(B=0;B>>8&255}; M8=function(q,Z,F,B,f,D,G,n){this.G=q;this.X=Z;this.S=F;this.j=B;this.D=f;this.Z=D;this.K=G;this.V=n}; y1D=function(q,Z,F,B,f){var D=new Fj(q.D,F),G=[new Nl(q.D,Z)];q=[new $H(q.D,Z),new g4(q.D,B)];return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:G,slotExpirationTriggers:q,bL:"core",clientMetadata:new zX([new Si(f({slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bL:"core",slotEntryTrigger:D,slotFulfillmentTriggers:G,slotExpirationTriggers:q},F))]),adSlotLoggingData:void 0}}; Te=function(){qu.apply(this,arguments)}; tl=function(q){var Z,F,B;return((Z=q.B.getVideoData(1).getPlayerResponse())==null?void 0:(F=Z.playerConfig)==null?void 0:(B=F.daiConfig)==null?void 0:B.enableServerStitchedDai)||!1}; fo=function(q,Z,F,B,f,D,G,n,b,N,S){var l=[];if(Z.length===0&&B.length===0&&F.length===0)return l;Z=Z.filter(Bg);var U=F.filter(LVD),u=B.filter(Bg),P=new Map,W=Ha8(Z),H=F.some(function(G0){var aG;return(G0==null?void 0:(aG=G0.adSlotMetadata)==null?void 0:aG.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),X=F.some(function(G0){var aG; return(G0==null?void 0:(aG=G0.adSlotMetadata)==null?void 0:aG.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),Q=F.some(function(G0){var aG; return(G0==null?void 0:(aG=G0.adSlotMetadata)==null?void 0:aG.slotType)==="SLOT_TYPE_IN_PLAYER"}),a=F.some(function(G0){var aG,$B; return(G0==null?void 0:(aG=G0.adSlotMetadata)==null?void 0:aG.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(G0==null?void 0:($B=G0.adSlotMetadata)==null?void 0:$B.slotType)==="SLOT_TYPE_ABOVE_FEED"}),m=F.some(function(G0){var aG; return(G0==null?void 0:(aG=G0.adSlotMetadata)==null?void 0:aG.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); F=F.some(function(G0){var aG;return(G0==null?void 0:(aG=G0.adSlotMetadata)==null?void 0:aG.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(H||X||Q||a||m||F)N=kzK(U,Z,n,f,W,q.Kw.get(),q.loadPolicy,P,q.GP.get(),q.G.get(),Q,G,b,N,S),N instanceof K?Yp(N,void 0,void 0,{contentCpn:f}):l.push.apply(l,g.YB(N));N=g.E(Z);for(F=N.next();!F.done;F=N.next())F=F.value,X=Oa7(q,P,F,f,D,G,H,n,W,b,U,q.GP.get().B.C().experiments.qp("html5_enable_triggering_cuepoint_for_slot")?S:void 0),X instanceof K?Yp(X,void 0,void 0,{renderer:F.renderer,config:F.config.adPlacementConfig,kind:F.config.adPlacementConfig.kind,contentCpn:f,daiEnabled:G}):l.push.apply(l, g.YB(X));h7B(q.GP.get())||(D=Q4X(q,u,f,n,W,P),l.push.apply(l,g.YB(D)));if(q.S===null||G&&!n.d$){var c,e,Y;q=n.d2&&Z.length===1&&((c=Z[0].config)==null?void 0:(e=c.adPlacementConfig)==null?void 0:e.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((Y=Z[0].renderer)==null?void 0:Y.adBreakServiceRenderer);if(!l.length&&!q){var Zg,GZ,FD,Ny;Yp("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":Z.length,contentCpn:f,"first APR kind":(Zg=Z[0])==null?void 0: (GZ=Zg.config)==null?void 0:(FD=GZ.adPlacementConfig)==null?void 0:FD.kind,renderer:(Ny=Z[0])==null?void 0:Ny.renderer})}return l}c=B.filter(Bg);l.push.apply(l,g.YB(xQK(P,c,q.K.get(),q.S,f,H)));if(!l.length){var qy,y9,dX,z0;Yp("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":Z.length,contentCpn:f,daiEnabled:G.toString(),"first APR kind":(qy=Z[0])==null?void 0:(y9=qy.config)==null?void 0:(dX=y9.adPlacementConfig)==null?void 0:dX.kind,renderer:(z0=Z[0])== null?void 0:z0.renderer})}return l}; Db=function(q,Z){Z=Z===void 0?[]:Z;g.ch(q,function(F,B){var f=B.Ml-F.Ml;if(!F.jB()||!B.jB())return f;var D=B.video.height*B.video.width-F.video.height*F.video.width;!D&&Z&&Z.length>0&&(F=Z.indexOf(F.FE)+1,B=Z.indexOf(B.FE)+1,D=F===0||B===0?B||-1:F-B);D||(D=f);return D})}; EY=function(){return ug(CS9)}; Ah=function(q,Z){Z>>>=0;q>>>=0;if(Z<=2097151)var F=""+(4294967296*Z+q);else ib()?F=""+(BigInt(Z)<>>24|Z<<8)&16777215,Z=Z>>16&65535,q=(q&16777215)+F*6777216+Z*6710656,F+=Z*8147497,Z*=2,q>=1E7&&(F+=q/1E7>>>0,q%=1E7),F>=1E7&&(Z+=F/1E7>>>0,F%=1E7),F=Z+AM8(F)+AM8(q));return F}; Ct=function(q){this.value=q}; Gt=function(q,Z){var F;return(F=q.A8)==null?void 0:F.get(Z)}; A1g=function(q,Z){if(Z.encryptedTokenJarContents&&(q.D[Z.encryptedTokenJarContents]=Z,typeof Z.expirationSeconds==="string")){var F=Number(Z.expirationSeconds);setTimeout(function(){delete q.D[Z.encryptedTokenJarContents]},F*1E3); q.K&&g.aA("CONSISTENCY",Z.encryptedTokenJarContents,F,void 0,!0)}}; Oey=function(q){var Z=q.Ec,F=Z[Sm]|0;return ra(q,F)?wa(q,Z,F)?W_(q,Z,!0):new q.constructor(lN(Z,F,!1)):q}; vHZ=function(q,Z,F){q.j=Z;q.Z=F}; EHD=function(q,Z,F){X1y(q.D,function(B){return B.Rc>=Z&&B.Ya<=F})}; no=function(q,Z,F,B){if(!(F.wR()||F.bA()||F.S||!b_(F.m6,q.policy,q.G,q.loader.Ix())||F.info.FE==="f"||q.policy.D)){if(B){B=q.Z;var f=F.info;B=bI6(B,f.video?B.policy.PR:B.policy.D9,f.Ml)}else B=0;B=F.IJ(B);q=CS(q,B);zt(B)&&h7(Z,q);F.S=!0}}; W_=function(q,Z,F){q=new q.constructor(Z);F&&(q.D=CX);q.K=CX;return q}; RA=function(q){g.J.call(this);this.B=q;this.listeners=[];this.D=new t8(this);g.y(this,this.D);this.D.N(this.B,"aduxclicked",this.onAdUxClicked);this.D.N(this.B,"aduxmouseover",this.yj);this.D.N(this.B,"aduxmouseout",this.lX);this.D.N(this.B,"muteadaccepted",this.Gbn)}; KV9=function(q,Z){q=q.api.getRootNode();g.hK(q,"ytp-ad-overlay-open",Z);g.hK(q,"ytp-ad-overlay-closed",!Z)}; mQb=function(q,Z,F,B,f){g.J.call(this);var D=this,G=mG(function(){return new ii(D.GP)}); g.y(this,G);var n=mG(function(){return new kZ(G,D.GP)}); g.y(this,n);var b=mG(function(){return new jv}); g.y(this,b);var N=mG(function(){return new IA(q)}); g.y(this,N);var S=mG(function(){return new CG(G,n,D.GP)}); g.y(this,S);var l=mG(function(){return new hx}); g.y(this,l);this.nk=mG(function(){return new z8B(Z)}); g.y(this,this.nk);this.ub=mG(function(){return new RA(Z)}); g.y(this,this.ub);this.tZ=mG(function(){return new cl(f)}); g.y(this,this.tZ);this.rq=mG(function(){return new Jx(Z)}); g.y(this,this.rq);this.YS=mG(function(){return new YZ(Z)}); g.y(this,this.YS);this.kS=mG(function(){return new tx(Z)}); g.y(this,this.kS);this.Ep=mG(function(){return new pG(Z)}); g.y(this,this.Ep);this.GP=mG(function(){return new dy(Z)}); g.y(this,this.GP);var U=mG(function(){return new Fx(B)}); g.y(this,U);var u=mG(function(){return new Vj(D.GP)}); g.y(this,u);this.yX=mG(function(){return new Tz(Z)}); g.y(this,this.yX);this.XE=mG(function(){return new CI(Z,l,D.GP)}); g.y(this,this.XE);var P=MX({XE:this.XE,GP:this.GP,Kw:u}),W=P.context,H=P.Fy;this.yO=P.yO;this.LP=mG(function(){return new bF(Z,D.GP,D.wU)}); g.y(this,this.LP);this.A0=mG(function(){return new Ph(Z)}); g.y(this,this.A0);this.Zl=mG(function(){return new da(Z,D.XE,D.GP)}); g.y(this,this.Zl);this.ke=mG(function(){return new ok}); g.y(this,this.ke);P=mG(function(){return new ev(G,S,n,D.GP,u,null,D.Zl,D.gY,D.Ia,3)}); g.y(this,P);this.qE=mG(function(){return new ZT(D.GP)}); this.nB=mG(function(){return new iD(D.Zl,Z,D.GP)}); g.y(this,this.nB);this.wU=mG(function(){return new qq(Z,b,D.nB,D.XE,D.yO,D.GP,H)}); g.y(this,this.wU);this.wh=new fB(N,P,F,this.GP,q,this.XE,this.Zl,this.rq);g.y(this,this.wh);var X=new DT(Z,this.wh,this.Zl,this.XE,this.LP);this.Xw=mG(function(){return X}); this.Th=X;this.Lz=new Fi($Q8,Bh,function(Q,a,m,c){return vTD(n.get(),Q,a,m,c)},N,S,n,u,this.GP,this.XE); g.y(this,this.Lz);this.gY=new Nh(N,S,this.Xw,this.LP,this.Zl,this.GP,this.wU,this.A0);g.y(this,this.gY);this.VX=new GQ(N,S,this.YS,this.Xw,W);g.y(this,this.VX);this.UZ=new zQ(this.GP,N,S,P,this.XE,this.VX,F,this.kS);g.y(this,this.UZ);this.YV=mG(function(){return new nB(U,n,u,D.GP,D.wU,D.Zl,D.A0)}); g.y(this,this.YV);this.AC=mG(function(){return new bn}); g.y(this,this.AC);this.cf=new Nq(q,this.ub,this.GP);g.y(this,this.cf);this.Ih=new gI(q);g.y(this,this.Ih);this.y$=new Sa(q,this.Xw,W);g.y(this,this.y$);this.T8=new ln(q,this.YS,this.Zl,this.XE,W);g.y(this,this.T8);this.UN=new gM(q,this.XE);g.y(this,this.UN);this.Ia=new Su(q,this.LP,this.Zl,this.wU,this.Xw,this.gY);g.y(this,this.Ia);this.rj=new UU(q);g.y(this,this.rj);this.VM=new un(q);g.y(this,this.VM);this.XN=new rI(q);g.y(this,this.XN);this.z8=mG(function(){return new wI}); g.y(this,this.z8);this.aS=mG(function(){return new Wh(D.Zl)}); g.y(this,this.aS);this.AV=mG(function(){return new dt(D.UZ,N,G)}); g.y(this,this.AV);this.UX=mG(function(){return new yS(D.GP,D.wU,D.rj,D.nB)}); g.y(this,this.UX);this.HX=mG(function(){return new lF(q,D.XN,D.rj,D.XE,D.A0,D.Zl,D.ke,D.wU,l,D.LP,D.nB,D.qE,D.kS,D.YS,D.rq,D.Ep,D.tZ,D.yX,D.GP,b,W,H)}); g.y(this,this.HX);this.Pa=mG(function(){return new aSk(D.ub,D.Zl,D.wU,b,D.nk,F,D.GP,D.XE)}); g.y(this,this.Pa);this.ND={Yi:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.UZ],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gY],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lz],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.wh],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.VX]]),yW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.YV],["SLOT_TYPE_FORECASTING",this.AC],["SLOT_TYPE_IN_PLAYER",this.AC],["SLOT_TYPE_PLAYER_BYTES",this.AC]]),CQ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.cf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ih],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ih],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ih],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ih],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ih],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ih],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ih],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ih],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ih],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.y$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.T8],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.T8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.UN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.UN],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rj],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.y$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VM],["TRIGGER_TYPE_AD_BREAK_STARTED",this.XN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Ia],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Ia],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Ia],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Ia],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Ia]]),n8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.z8],["SLOT_TYPE_FORECASTING",this.z8],["SLOT_TYPE_IN_PLAYER",this.z8],["SLOT_TYPE_PLAYER_BYTES",this.aS]]),k_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.AV],["SLOT_TYPE_FORECASTING",this.UX],["SLOT_TYPE_PLAYER_BYTES",this.HX],["SLOT_TYPE_IN_PLAYER",this.Pa]])};this.listeners=[b.get()]; this.eq={UZ:this.UZ,Zs:this.GP.get(),x$:this.tZ.get(),r_:this.Zl.get(),wh:this.wh,JH:G.get(),oR:null,F8:this.cf,Nd:b.get(),uw:this.XE.get()}}; iaX=function(q,Z){var F=nK(q.K.get(),q.slot.slotType),B=Object,f=B.assign;q=q.slot;if(Z.slotEntryTrigger){var D=Z.slotId;var G=Z.slotEntryTrigger;D=G.triggeringSlotId!=null&&G.triggeringSlotId===D?G.clone(F):G}else D=void 0;return f.call(B,{},q,{slotId:F,slotEntryTrigger:D,slotFulfillmentTriggers:U37(Z.slotId,F,Z.slotFulfillmentTriggers),slotExpirationTriggers:U37(Z.slotId,F,Z.slotExpirationTriggers)})}; s47=function(q){var Z=[];kFK(q,function(F){Z.push(F)}); return Z}; m3=function(q,Z,F,B){var f=UO(Z,F),D=q.Kp.X.get(f)||null;if(!D||D.jU())return null;q.Kp.X.remove(f);if(g.p(D.getPlayerState(),128))return D.dispose(),null;if(D===q.Nr({playerType:Z}))return q.Yk.infoGel({isCacheHit:!0}),D;if((D.getVideoData().oauthToken||F.oauthToken)&&D.getVideoData().oauthToken!==F.oauthToken)return null;Z===1&&(Z=q.Vs().getVideoData(),NM(Z)&&Z.isAd()&&B||uF(q));B||q.l5(D,!0);q.Yk.infoGel({isCacheHit:!0});return D}; j4D=function(q){for(var Z=1;ZZ.video.height;if(B&&(q.gU.V=!0,Pf('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return F=h39(F),q.policy.S&&q.iL("sp4k",{s:!!F}),F}; Wg=function(){var q=g.ym("yt.logging.ims");q||(q=new aS,g.O9("yt.logging.ims",q));return q}; c1G=function(q){var Z=q.cpn,F=q.uw;q=q.CU;var B=F.rA(),f={};ea(F,"ce",(f.ec=Z,f.ia=Z!==B,f.r=vK.Tw.has(Z),f.is=q,f.ctp=TQ(Z),f))}; y6=function(q,Z,F){this.Ec=rE(q,Z,F)}; eqg=function(q){q=q===void 0?null:q;return q!=null&&(q=q.thumbnail,q!=null&&q.thumbnails!=null&&q.thumbnails.length!=0&&q.thumbnails[0].url!=null)?g.lg(q.thumbnails[0].url):""}; p1y=function(q,Z,F){if(Z.endpoint==="log_event"){c1(void 0,Z);var B=J1(Z,!0),f=J1D(q),D=200;if(f){if(f.enabled===!1&&!g.cz("web_payload_policy_disabled_killswitch"))return;D=YJZ(f.tier);if(D===400){olK(q,Z,F);return}}Lo[B]=!0;B={cttAuthInfo:B,isJspb:!0,tier:D};Wg().storePayload(B,ji(Z.payload));thk(F,!0,B,t1(q))}}; Vh6=function(q){var Z=Z===void 0?!1:Z;return wb(Wu(q,dQD),q,Z,"Trusted Promoted Video Domain URL")}; Hg=function(q,Z){var F=q.C(),B=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];F.S&&B.push("no-link");var f={title:q.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:F.PG,"data-priority":"6","data-sessionlink":"feature=player-button"};F.S||(f.href="{{url}}");g.w.call(this,{Y:"a",rU:B,L:f,Ka:"{{logoSvg}}"});this.D=null;this.api=q;this.visible=!1;F.S||(this.D=this.listen("click",this.onClick));this.N(q,"videodatachange",this.onVideoDataChange); this.N(q,"videoplayerreset",this.onVideoDataChange);this.N(q,"onLoopRangeChange",this.onVideoDataChange);this.N(q,"appresize",this.CB);this.onVideoDataChange();F.S||this.addOnDisposeCallback(g.BY(Z.Iy(),this.element));this.CB()}; q2G=function(q,Z){q.K=Z;return q}; OO=function(q,Z){q.K=!!Z;q.D(q.B.Ca().getPlayerSize())}; fS=function(q){if(q.WG&&q.PG&&!q.Y$){for(;q.S.length;){var Z=q.S[0],F=e3X(q)?Ux9(Z):g.MR(Z.initData);if(Rn(q.D)&&!Z.K)q.S.shift();else{if(q.K.get(F))if(q.D.flavor!=="fairplay"||Rn(q.D)){q.S.shift();continue}else q.K.delete(F);TcK(Z);break}}q.S.length&&q.createSession(q.S[0])}}; MhG=function(){}; g.Ww=function(){}; vg=function(q,Z,F){Z=uY8(Z);if(Z!=null){switch(typeof Z){case "string":o29(Z)}if(Z!=null)switch(XF(q,F,0),typeof Z){case "number":q=q.D;EM(Z);Q6(q,KK,$v);break;case "bigint":F=BigInt.asUintN(64,Z);F=new AR(Number(F&BigInt(4294967295)),Number(F>>BigInt(32)));Q6(q.D,F.K,F.D);break;default:F=o29(Z),Q6(q.D,F.K,F.D)}}}; Xj=function(q,Z,F){return q+F*(Z-q)}; EO=function(q,Z){if(q.heightPx===-1){var F=null;try{F=g.AV("CANVAS"),q.K=F.getContext("2d")}catch(n){}if(q.K){var B=q.D*q.sampleCount;q.S=F;q.S.width=B;q.S.style.width=B+"px";q.element.appendChild(q.S)}else for(q.sampleCount=Math.floor(q.sampleCount/4),q.D*=4,F=0;F1?2:1,q.S.height=q.heightPx*F,q.S.style.height= q.heightPx+"px",q.K.scale(1,F)));Z=g.E(Z);for(B=Z.next();!B.done;B=Z.next()){F=q;var f=q.index,D=B.value;for(B=0;B+2>31)*2+1;var B=F>>>20&2047;Z=4294967296*(F&1048575)+Z;return B==2047?Z?NaN:q*Infinity:B==0?q*4.9E-324*Z:q*Math.pow(2,B-1075)*(Z+4503599627370496)}; Yp=function(q,Z,F,B,f){B=B===void 0?{}:B;if(!f||Math.random()<5E-4){Z=Z||null;F=F||null;q=q instanceof Error?q:new g.M2(q);if(q.args)for(var D=g.E(q.args),G=D.next();!G.done;G=D.next())G=G.value,G instanceof Object&&(B=Object.assign({},G,B));B.category="H5 Ads Control Flow";Z&&(B.slot=Z?"slot: "+Z.slotType:"");F&&(B.layout=iF(F),B.layoutId=F.layoutId);f&&(B.known_error_aggressively_sampled=!0);q.args=[B];g.bh(q)}}; ky=function(q,Z){q.coldHashData=Z;g.O9("yt.gcf.config.coldHashData",q.coldHashData||null)}; sO=function(q){this.Zl=q;this.D=!1}; n2K=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u,P,W){q=nK(q,"SLOT_TYPE_PLAYER_BYTES");B=GDZ(Z,G,B,f,q,N,S);if(B instanceof K)return B;var H;G=(H=qc(B.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:H.layoutId;if(!G)return new K("Invalid adNotify layout");Z=z5B(G,Z,F,f,D,b,n,N,l,U,u,P,W);return Z instanceof K?Z:[B].concat(g.YB(Z))}; g.oa=function(q,Z){return q in ju?ju[q]:Z}; bi6=function(q,Z,F,B,f){var D=q.index?CM(q.logger,function(){return RNZ(q.index,KOD(Z),F,B,f)},"W"):"u"; q.logger.hc(D)}; NDb=function(q){var Z=!q.C().sO&&q.getPresentingPlayerType()!==3;return q.isFullscreen()||Z}; Av9=function(q){var Z=new P$;UN(q,function(F,B,f){Z[B]=Vr(f)}); Z.cw=q.cw;return Z}; g29=function(q,Z){if(q.j)return!!q.j[Z.name];if(Z===lj.BITRATE&&q.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!q.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(Z===lj.AV1_CODECS)return q.isTypeSupported("video/mp4; codecs="+Z.valid)&&!q.isTypeSupported("video/mp4; codecs="+Z.ws);if(Z.video){var F='video/webm; codecs="vp9"';q.isTypeSupported(F)||(F='video/mp4; codecs="avc1.4d401e"')}else F='audio/webm; codecs="opus"', q.isTypeSupported(F)||(F='audio/mp4; codecs="mp4a.40.2"');return q.isTypeSupported(F+"; "+Z.name+"="+Z.valid)&&!q.isTypeSupported(F+"; "+Z.name+"="+Z.ws)}; SEK=function(q,Z,F){var B=q.uL[Z],f=g.MN[Z];return cu8(q,B?B.qualityLabel:f?f+"p":"Autom\u00e1tica",Z,F)}; l1B=function(q,Z,F,B){if(Iy.instance!==void 0){if(B=Iy.instance,q=[q!==B.iM,Z!==B.wY,F!==B.D,!1,!1,!1,void 0!==B.S],q.some(function(f){return f}))throw new g.M2("InnerTubeTransportService is already initialized",q); }else Iy.instance=new Iy(q,Z,F,B)}; eHD=function(q){if(!q)return!1;q=g.C(q.instreamAdPlayerOverlay,Co);var Z=g.C(q==null?void 0:q.skipOrPreviewRenderer,hR),F=g.C(q==null?void 0:q.adInfoRenderer,A1);return(g.C(q==null?void 0:q.skipOrPreviewRenderer,Ry)||Z)&&F?!0:!1}; cg=function(q){q.setAttribute("role","link")}; u38=function(q){var Z=Z===void 0?!1:Z;return wb(Wu(q,U$6),q,Z,"Trusted Ad Domain URL")}; Ppg=function(q){for(var Z=g.E(Object.values(q.Z)),F=Z.next();!F.done;F=Z.next())F.value.dispose();q.Z={};q.K=null;q.j=null;M$(q)}; JR=function(q,Z,F){var B;((B=q.Mp)==null?0:B.Nl())&&q.Mp.iL("rms",Z,F===void 0?!1:F)}; aB=function(q){return function F(){return E8(F,function(B){if(B.D==1)return g.KI(B,2),g.R(B,{UW:Yy(q)},4);if(B.D!=2)return B.return(B.K);g.nm(B);return g.mD(B,0)})}()}; PY6=function(q){tg(q.Z,q.element,["keymessage","webkitkeymessage"],q.l9);tg(q.Z,q.element,["keyerror","webkitkeyerror"],q.OR);tg(q.Z,q.element,["keyadded","webkitkeyadded"],q.f4)}; w8G=function(q,Z){ay.getInstance().estimate().then(function(F){F=Object.assign({},Z,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:rwG(F==null?void 0:F.usage),deviceStorageQuotaMbytes:rwG(F==null?void 0:F.quota)});q.D("idbQuotaExceeded",F)})}; Wl7=function(q){q.policy.Qh&&q.Nh&&!q.hF?q.hF=!0:q.nP.EJ()}; vX9=function(q){return q.data[q.D]||0}; Ek=function(q,Z,F){this.instance=q;this.D=F;this.exports=this.instance.exports;Z.wasi_snapshot_preview1.exports=this.exports;q=Math.floor(Math.random()*256);Z=Math.floor(Math.random()*256);F=0;try{F=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,F,16)).fill(q);if(this.exports.sentinel(F,16,Z)!==Z*16%256)throw"wasm.wm.vi";for(var B=new Uint8Array(this.exports.memory.buffer,F,16),f=0;f<16;f++)if(B[f]!==(q+Z)%256)throw"wasm.wm.vi"+f;}finally{F!==0&&this.exports.free(F)}}; g.Kc=function(q,Z){return{itag:+q.itag,lmt:Z?0:q.lastModified,xtags:q.D||""}}; g.Lg=function(q){return q.flavor==="fairplay"}; tR=function(q){var Z;if(Z=q.PG&&q.S!=null)q=q.S,Z=!(!q.D||!q.D.keyStatuses);return Z}; kXD=function(q){fX.call(this,q);var Z=this;this.events=new g.pO(q);g.y(this,this.events);this.events.N(q,"standardControlsInitialized",function(){var F=new po(q);g.y(Z,F);q.k7(F,"RIGHT_CONTROLS_LEFT")})}; ywb=function(q,Z,F){var B=qc(Z.clientMetadata,"metadata_type_sodar_extension_data");if(B)try{Gf6(F,B)}catch(f){Yp("Unexpected error when loading Sodar",q,Z,{error:f})}}; lPG=function(q,Z){Z.includeDomain&&(q=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+q);var F=g.oa("XSRF_FIELD_NAME");if(Z=Z.urlParams)Z[F]&&delete Z[F],q=vU(q,Z);return q}; g.gX6=function(q){var Z=Z===void 0?{}:Z;var F=F===void 0?"":F;var B=B===void 0?window:B;q=g.gJ(q,Z);wW(q);F=g.ST(q+F);B=B.location;F=VR(F);F!==void 0&&(B.href=F)}; dM=function(q){this.D=q;this.offset=0}; V6=function(q,Z,F,B,f,D,G){oP.call(this,F,q,Z,B);this.G=f;this.Zl=D;this.GP=G}; eu=function(q){if(q instanceof VK)return q.D;throw Error("");}; LlB=function(q){q.D.unsubscribe("internalvideodatachange",q.YH,q);q.K.unsubscribe("internalvideodatachange",q.YH,q);q.gq.C().U("html5_gapless_use_format_info_fix")&&(q.D.unsubscribe("internalvideoformatchange",q.YH,q),q.K.unsubscribe("internalvideoformatchange",q.YH,q));q.D.unsubscribe("mediasourceattached",q.YH,q);q.K.unsubscribe("statechange",q.zg,q)}; S4=function(q,Z){q=q===void 0?null:q;Z=Z===void 0?null:Z;if(q==null)return g.bh(Error("Got null or undefined adText object")),"";var F=g.lg(q.text);if(!q.isTemplated)return F;if(Z==null)return g.bh(Error("Missing required parameters for a templated message")),F;q=g.E(Object.entries(Z));for(Z=q.next();!Z.done;Z=q.next()){var B=g.E(Z.value);Z=B.next().value;B=B.next().value;F=F.replace("{"+Z+"}",B)}return F}; HiK=function(q,Z,F,B){var f=nK(q.K.get(),"SLOT_TYPE_IN_PLAYER");return y1D(q,f,Z,F,B)}; Oi8=function(q){q.S.length?q.K=g.uU(g.uU(q.S).info.TP):q.G.K.length?q.K=q.G.fv().info:q.K=TJ(q)}; x$D=function(q,Z,F,B,f){var D=nK(q.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");B=[new SU({getAdBreakUrl:B.getAdBreakUrl,rS:0,Zd:0}),new Qj(!0)];q=Z.pauseDurationMs?Z.lactThresholdMs?{slotId:D,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new B_(q.D,D),slotFulfillmentTriggers:[new Q_g(q.D)],slotExpirationTriggers:[new g4(q.D,f),new $H(q.D,D)],bL:"core",clientMetadata:new zX(B),adSlotLoggingData:F}:new K("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new K("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return q instanceof K?q:[q]}; g.nh=function(q,Z,F){F=F===void 0?{}:F;var B=g.Ik;g.oa("ytLoggingEventsDefaultDisabled",!1)&&g.Ik===g.Ik&&(B=null);z1(q,Z,B,F)}; Aw6=function(q){for(var Z=g.E("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),F=Z.next();!F.done;F=Z.next())q.zj.N(q.mediaElement,F.value,q.tU,q);q.J.P3&&q.mediaElement.H2()&&(q.zj.N(q.mediaElement,"webkitplaybacktargetavailabilitychanged",q.zWl,q),q.zj.N(q.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",q.nkU,q))}; Tt=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u){c$.call(this,q,Z,F,B,f,G,n,b,N,l);this.ES=D;this.qE=S;this.nB=U;this.GP=u;this.fp=this.Fe=null}; v2G=function(q){var Z=1,F;for(F in q.K)F.length>Z&&(Z=F.length);return 3997-Z-q.S.length-1}; Mh=function(q,Z){q.B.setOption("captions","track",Z)}; oH=function(q,Z){if(q.currentState>1){g.bh(new g.M2("Exit already started",{current:q.currentState}));var F=!1}else F=!0;if(!F)return!1;q.currentState=2;q.D=Z;return!0}; X8B=function(q){var Z=d5(q.D)>>>0;return gaB(q.D,Z)}; gA=function(q,Z){this.triggeringSlotId=Z;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=q(this.triggerType)}; KlK=function(q,Z,F,B){F=F===void 0?0:F;if(q!==I4b(F)||Z!==g.oa(qk(F)))if(r1X(q,B,F),lo9(q,F),eJ(qk(F),Z),Z=function(){setTimeout(function(){q&&g.nh("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:E26,clientScreenNonce:q})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(Z)}catch(f){Z()}else Z()}; $$B=function(q){/[^a-zA-Z0-9;.!_-]/.test(q)&&(q=q.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return q}; T9K=function(q,Z){q.D=Z;q.element.classList.toggle(au.NOTIFICATIONS_ENABLED,q.D);var F=q.api.getVideoData();F?(Z=Z?F.bP:F.lP)?(q=q.api.Y6())?Z0(q,Z):g.mM(Error("No innertube service available when updating notification preferences.")):g.mM(Error("No update preferences command available.")):g.mM(Error("No video data when updating notification preferences."))}; g.BZ=function(q,Z,F,B){g.J.call(this);var f=this;this.api=q;this.J=Z;this.playback=F;this.app=B;this.uL=new g.Hw;this.K=new Map;this.Tb=new Map;this.Y$=new Map;this.dU=null;this.w2=NaN;this.Jn=this.Gb=null;this.KB=new g.im(function(){a16(f,f.w2,f.Gb||void 0)}); this.events=new g.pO(this);this.eU=15E3;this.X=new g.im(function(){f.V=!0;f.playback.mS(f.eU);W$(f);if(f.playback.getVideoData().tP()){var D;f.S$({togab:(D=f.j)==null?void 0:D.identifier})}f.Cy(!1)},this.eU); this.V=!1;this.Z=new Map;this.HG=[];this.j=null;this.ac=new Set;this.PG=[];this.I_=[];this.X3=[];this.LB=[];this.WG=new Set;this.qY=0;this.Dl=!1;this.G0=new Set;this.Lp=new Set;this.bb=new Set;this.vG=new Set;this.Hg=this.Nx=0;this.nQ=this.VO=!1;this.EP=this.S="";this.zP=null;this.logger=new g.Wz("dai");this.QC="";this.Oc=!0;this.BG=new Map;this.j$=new Map;this.JZ={hsc:function(){return f.K}, i8:function(){return f.D.JZ.i8()}, qYr:function(){return f.S}, UfG:function(D){f.onCueRangeEnter(f.K.get(D))}, NVl:function(D){f.onCueRangeExit(f.K.get(D))}, Mtl:function(D,G){f.K.set(D,G)}, DYU:function(D){f.EP=D}, ji:function(){return f.ji()}, xfr:function(D){return f.D.D.get(D)}, eUU:function(){return f.zP}, DY:function(){return f.D.JZ.DY()}, W5:function(D,G){f.W5(D,G)}, MFL:function(){return f.Tb}, zF:function(D){f.zF(D)}}; this.playback.getPlayerType();this.D=new e6(this.J);this.playback.a9(this);this.o_=this.J.Nl();g.y(this,this.KB);g.y(this,this.events);g.y(this,this.X);(this.yC=this.J.U("html5_use_new_ssdai_transition_detector"))?this.playback.subscribe("playbackstarted",this.W5,this):(this.events.N(this.api,g.UK("serverstitchedcuerange"),this.onCueRangeEnter),this.events.N(this.api,g.s2("serverstitchedcuerange"),this.onCueRangeExit));this.J0=this.J.U("html5_ssdai_report_stitch_error_after_skip_ad");FA(this.app.I1(), this.playback,!1)}; f9=function(q,Z){var F=null;return(new g.at(function(B,f){F=g.YX(function(){B(Z)},q); F==-1&&f(Error("Failed to schedule timer."))})).Kz(function(B){g.W5.clearTimeout(F); throw B;})}; D0=function(q){q.G=void 0;q.K=0;q.S=0}; kDy=function(q){var Z;if((Z=q[m$b])!=null)q=Z;else{if(GI!==GI)throw Error();q=q[m$b]=ii8(q.D)}return q}; hQ=function(q){if(!q)return new zI(0,0);var Z=Number(q.start);q=Number(q.end);if(!isNaN(Z)&&!isNaN(q)&&(Z=new zI(Z,q),Z.length>0))return Z}; vR=function(q){g.xl.call(this);var Z=this;this.Z=this.K=0;this.Lk=q!=null?q:{ET:function(f,D){return setTimeout(f,D)}, RS:function(f){clearTimeout(f)}}; var F,B;this.D=(B=(F=window.navigator)==null?void 0:F.onLine)!=null?B:!0;this.S=function(){return g.h(function(f){return g.R(f,n9(Z),0)})}; window.addEventListener("offline",this.S);window.addEventListener("online",this.S);this.Z||this.pP()}; s_B=function(q){q.tV()===q.M8.length-1&&Yp("Unexpected skip with target requested during the last sublayout")}; Hu=function(q,Z){var F=q.search(B2),B=yJ(q,0,Z,F);if(B<0)return null;var f=q.indexOf("&",B);if(f<0||f>F)f=F;B+=Z.length+1;return N8(q.slice(B,f!==-1?f:0))}; bx=function(q,Z,F){this.videoData=q;this.J=Z;this.Mp=F;this.D=void 0}; j_6=function(q,Z){q.D=Z}; gw=function(q,Z,F,B,f){var D=q.Ec,G=D[Sm]|0;B=ra(q,G)?1:B;f=!!f||B===3;B===2&&j7(q)&&(D=q.Ec,G=D[Sm]|0);q=nD(D,Z);var n=q===E3?7:q[Sm]|0,b=Nk(n,G);var N=4&b?!1:!0;if(N){4&b&&(q=Vr(q),n=0,b=ef(b,G),G=h8(D,G,Z,q));for(var S=0,l=0;S2?B[2]:"",f.remoteClient=D,q.remoteContexts?q.remoteContexts.push(f):q.remoteContexts=[f],F=!0)}); return F}; Jwy=function(){var q=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];YP().forEach(function(Z){q.push(Z)}); return{m0:q,FN:["LAYOUT_TYPE_PANEL"]}}; S1=function(q){this.value=q}; Pl=function(q,Z,F){q.UI[q.S8+q.Wu*2]=Z>>>8&255;q.UI[q.S8+q.Wu*2+1]=Z&255;q.UI[q.JG+q.Wu]=F&255;q.Wu++;Z===0?q.wp[F*2]++:(q.matches++,Z--,q.wp[(ad[F]+256+1)*2]++,q.g7[(Z<256?kX[Z]:kX[256+(Z>>>7)])*2]++);return q.Wu===q.Vu-1}; pg=function(){ZJ.apply(this,arguments)}; lx=function(q,Z){w1.call(this,"Reproducci\u00f3n autom\u00e1tica",g.Wf.Wc);this.B=q;this.Pg=Z;this.D=!1;this.K=[];this.N(q,"presentingplayerstatechange",this.Cw);this.subscribe("select",this.onSelect,this);q.createClientVe(this.element,this,113682);this.Cw()}; YE9=function(q,Z){if(window.fetch&&Z.format!=="XML"){var F={method:Z.method||"GET",credentials:"same-origin"};Z.headers&&(F.headers=Z.headers);Z.priority&&(F.priority=Z.priority);q=lPG(q,Z);var B=URD(q,Z);B&&(F.body=B);Z.withCredentials&&(F.credentials="include");var f=Z.context||g.W5,D=!1,G;fetch(q,F).then(function(n){if(!D){D=!0;G&&g.L4(G);var b=n.ok,N=function(S){S=S||{};b?Z.onSuccess&&Z.onSuccess.call(f,S,n):Z.onError&&Z.onError.call(f,S,n);Z.onFinish&&Z.onFinish.call(f,S,n)}; (Z.format||"JSON")==="JSON"&&(b||n.status>=400&&n.status<500)?n.json().then(N,function(){N(null)}):N(null)}}).catch(function(){Z.onError&&Z.onError.call(f,{},{})}); q=Z.timeout||0;Z.onFetchTimeout&&q>0&&(G=g.OT(function(){D||(D=!0,g.L4(G),Z.onFetchTimeout.call(Z.context||g.W5))},q))}else g.QN(q,Z)}; An=function(q,Z){return q?Z?decodeURI(q.replace(/%25/g,"%2525")):decodeURIComponent(q):""}; tYK=function(q,Z){var F,B;return(F=r5(q,"macroMarkersListEntity",Z))==null?void 0:(B=F.markersList)==null?void 0:B.markerType}; UH=function(){return{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z", fill:"white"}}]}}; ux=function(q,Z,F){if(isNaN(Z))return NaN;var B=q.PZ();F=q.G3(F);return q.U("html5_clamp_invalid_seek_to_min_seekable_time")&&!q.videoData.isLivePlayback&&Z>F+1&&Z=2||QL()>0||!VY8())return!1;var Z=q.lk.get("aitags");if(!Z)return!1;Z=N8(Z).split(",");for(var F=[],B=g.E(q.l1),f=B.next();!f.done;f=B.next())f=f.value,g.r1(Z,f)&&F.push(f);if(!F.length)return!1;q.lk.set("altitags",g.y5(F.join(",")));return!0}; TDg=function(q){q.tY&&(q.xhr.status=q.tY,q.lw=q.tY)}; Ai=function(q){var Z=q.queue;Z.D.length&&Z.D[0].isEncrypted&&!Z.K&&(Z.D.length=0);Z=g.E(Object.keys(q.D));for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var B=q.D[F];if(!B.FO){var f=q.queue;f.D.push({videoId:B.videoId,formatId:F,isEncrypted:!1});f.K||xs(f)}}}; vZ=function(q,Z){return q.md(Z)?q.Dv():Z}; FyD=function(){this.S=void 0;this.K=this.j=0;this.Z=-1;this.Be=new UJ;ZL(this.Be,"mv",MYk).D=!0;ZL(this.Be,"omid",XA);ZL(this.Be,"epoh",XA).D=!0;ZL(this.Be,"epph",XA).D=!0;ZL(this.Be,"umt",XA).D=!0;ZL(this.Be,"phel",XA).D=!0;ZL(this.Be,"phell",XA).D=!0;ZL(this.Be,"oseid",o0K).D=!0;var q=this.Be;q.D.sloi||(q.D.sloi=new EH);q.D.sloi.D=!0;ZL(this.Be,"mm",K9);ZL(this.Be,"ovms",qND).D=!0;ZL(this.Be,"xdi",XA).D=!0;ZL(this.Be,"amp",XA).D=!0;ZL(this.Be,"prf",XA).D=!0;ZL(this.Be,"gtx",XA).D=!0;ZL(this.Be, "mvp_lv",XA).D=!0;ZL(this.Be,"ssmol",XA).D=!0;ZL(this.Be,"fmd",XA).D=!0;ZL(this.Be,"gen204simple",XA);this.D=new CK6(VB(),this.Be);this.G=!1;this.flags=new ZZX}; BOX=function(q){for(var Z=g.E(q.He),F=Z.next();!F.done;F=Z.next()){var B=g.E(F.value);F=B.next().value;B=B.next().value;B.Oe||pb(q,F)}}; G6B=function(q,Z,F,B,f,D,G){f=f===void 0?{}:f;var n=Math.round((0,g.Le)()),b=q.size,N=f3K(G);q=g.E(q);var S=q.next();for(G={};!S.done;G={NU:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,RU:void 0,L9:void 0},S=q.next()){var l=g.E(S.value);S=l.next().value;l=l.next().value;G.batchRequest=g.Mf({context:g.Uw(Z.config_||g.CB())});if(!g.J_(l)&&!g.cz("throw_err_when_logevent_malformed_killswitch")){B();break}G.batchRequest.events=l;(l=$s[S])&&Pm6(G.batchRequest,S,l);delete $s[S];G.dangerousLogToVisitorSession= S==="visitorOnlyApprovedKey";u1X(G.batchRequest,n,G.dangerousLogToVisitorSession);DSy(f);G.RU=function(U){g.cz("start_client_gcf")&&g.kN.ET(function(){return g.h(function(u){return g.R(u,wT8(U),0)})}); b--;b||F()}; G.NU=0;G.L9=function(U){return function(){U.NU++;if(f.bypassNetworkless&&U.NU===1)try{g.aH(Z,N,U.batchRequest,Ag({writeThenSend:!0},U.dangerousLogToVisitorSession,U.RU,U.L9,D)),mS=!1}catch(u){g.vf(u),B()}b--;b||F()}}(G); try{g.aH(Z,N,G.batchRequest,Ag(f,G.dangerousLogToVisitorSession,G.RU,G.L9,D)),mS=!1}catch(U){g.vf(U),B()}}}; g.ix=function(q,Z){var F=g.Xc();Z!==F[q]&&(Z!==0?F[q]=Z:delete F[q],g.zbX(F))}; n08=function(q){return g.r1(q,"UHD2")||g.r1(q,"UHD2HDR")?"highres":g.r1(q,"UHD1")||g.r1(q,"UHD1HDR")?"hd2160":g.r1(q,"HD")||g.r1(q,"HDHDR")?"hd1080":g.r1(q,"HD720")||g.r1(q,"HD720HDR")?"hd720":"large"}; cA=function(q){this.B=q}; AS=function(q){return q.FE==="MAC3"||q.FE==="MEAC3"||q.FE==="M"||q.FE==="I"}; bZK=function(q,Z,F,B,f){return y1D(q,Z,F,B,f)}; ks=function(q,Z){g.u$(q.D,"width",Z)}; NOB=function(q){return jCD()===1?g.uh(q,PW):q}; OW7=function(q){var Z=Z===void 0?{}:Z;var F,B;return g.h(function(f){if(f.D==1)return g.R(f,g.$M(),2);if(f.D!=3){F=f.K;if(!F)return f.return();iQ(q);return g.R(f,g0D(q,F),3)}B=f.K;return g.R(f,Nhg(B,Z,F),0)})}; l3B=function(q){var Z=q[SN8];if(!Z){var F=rS(mV,iK,kH,q);Z=function(B,f){return JgK(B,f,F)}; q[SN8]=Z}return Z}; sH=function(q){q=(q.D.cookie||"").split(";");for(var Z=[],F=[],B,f,D=0;D=11;q=q.api.C().X&&j1;return!(!Z&&!q)}; Vl6=function(q){q=q===void 0?null:q;return q!=null&&(q=q.thumbnail,q!=null&&q.thumbnails!=null&&q.thumbnails.length!=0&&q.thumbnails[0].width!=null&&q.thumbnails[0].height!=null)?new g.d8(q.thumbnails[0].width||0,q.thumbnails[0].height||0):new g.d8(0,0)}; g.TL=function(q,Z){typeof q==="function"&&(q=g.jJ(q));return window.setInterval(q,Z)}; w$Z=function(q){var Z=document.createElement("a");g.F1(Z,q);q=Z.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+C9(q)}; hi=function(q){var Z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};q&&(Z.interpreterHash=q);return Z}; cZ=function(q,Z,F){for(var B in q.D){var f=vp(q.D[B].info.mimeType)||q.D[B].info.jB();if(F===f&&(f=q.D[B].index)!=null){var D=RH(f,Z);D>=0&&f.segments.splice(D,1)}}}; ypZ=function(q){if(q==null)return q;var Z=typeof q;if(Z==="bigint")return String(Wy9(64,q));if(AM(q)){if(Z==="string")return AM(q),Z=vm(Number(q)),XQ(Z)&&Z>=0?q=String(Z):(Z=q.indexOf("."),Z!==-1&&(q=q.substring(0,Z)),q[0]==="-"?Z=!1:(Z=q.length,Z=Z<20?!0:Z===20&&q<="18446744073709551615"),Z||(Bf(q),q=Ah(KK,$v))),q;if(Z==="number")return AM(q),q=vm(q),q>=0&&XQ(q)||(EM(q),q=re(KK,$v)),q}}; CUB=function(q,Z,F,B,f,D){function G(N){return xm(Z,N)} var n=B.DD.inPlayerSlotId,b={layoutId:B.DD.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",bL:"core"};F={slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bL:"core",slotEntryTrigger:new Fj(G,q),slotFulfillmentTriggers:[new Nl(G,n)],slotExpirationTriggers:[new $H(G,n),new g4(G,F)]};q=Object.assign({},b,{layoutExitNormalTriggers:[new Qs(G,q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],ud:new Map,clientMetadata:new zX([new Ji(B.DD), new QA(B.adPlacementConfig),f]),Xe:Ou(D,F)(b),adLayoutLoggingData:B.DD.adLayoutLoggingData});return Object.assign({},F,{clientMetadata:new zX([new Si(q)])})}; fq=function(){var q=[new HK(aa)],Z=ug(dz);Z.K=q;b57(Z,function(){T4("i")})?Pz.done||(KDg(),rH()):T4("i")}; c1=function(q,Z){var F=g.ym("yt.logging.transport.enableScrapingForTest"),B=Al("il_payload_scraping");B=(B!==void 0?String(B):"")==="enable_il_payload_scraping";if(!F)if(B)Ys=[],g.O9("yt.logging.transport.enableScrapingForTest",!0),g.O9("yt.logging.transport.scrapedPayloadsForTesting",Ys),g.O9("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.O9("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.O9("yt.logging.transport.scrapeClientEvent",!0);else return;F=g.ym("yt.logging.transport.scrapedPayloadsForTesting");B=g.ym("yt.logging.transport.payloadToScrape");Z&&(Z=Z.payload,(Z=g.ym("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Z)())&&F.push(Z));Z=g.ym("yt.logging.transport.scrapeClientEvent");if(B&&B.length>=1)for(var f=0;fP?new K("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:B,offsetEndMs:P},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",P===F&&B-500<=P):new jA(B,P),q=F instanceof K?F:new NF(az,Z,F,!1,q.id)):q=new K("Not able to create MediaTimeRangeTrigger")}else if(q.contentVideoIdEndedTrigger)q=q.contentVideoIdEndedTrigger?new e1(az,Z,!1,q.id):new K("Not able to create ContentVideoIdEndedTrigger"); else{if(q.layoutIdEnteredTrigger){var W;Z=(W=q.layoutIdEnteredTrigger)!=null&&W.triggeringLayoutId?new Fj(az,q.layoutIdEnteredTrigger.triggeringLayoutId,q.id):new K("Not able to create LayoutIdEnteredTrigger")}else if(q.timeRelativeToLayoutEnterTrigger){var H;Z=(H=q.timeRelativeToLayoutEnterTrigger)!=null&&H.triggeringLayoutId?new TI(az,Number(q.timeRelativeToLayoutEnterTrigger.durationMs),q.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,q.id):new K("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(q.onDifferentLayoutIdEnteredTrigger){var X; Z=(X=q.onDifferentLayoutIdEnteredTrigger)!=null&&X.triggeringLayoutId&&q.onDifferentLayoutIdEnteredTrigger.slotType&&q.onDifferentLayoutIdEnteredTrigger.layoutType?new Mk(az,q.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,q.onDifferentLayoutIdEnteredTrigger.slotType,q.onDifferentLayoutIdEnteredTrigger.layoutType,q.id):new K("Not able to create CloseRequestedTrigger")}else{if(q.liveStreamBreakStartedTrigger)q=q.liveStreamBreakStartedTrigger&&q.id?new eR(az,q.id):new K("Not able to create LiveStreamBreakStartedTrigger"); else if(q.liveStreamBreakEndedTrigger)q=q.liveStreamBreakEndedTrigger&&q.id?new kq(az,q.id):new K("Not able to create LiveStreamBreakEndedTrigger");else{if(q.liveStreamBreakScheduledDurationMatchedTrigger){var Q;Z=(Q=q.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&Q.breakDurationMs?new GS(Number(q.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,q.id):new K("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(q.liveStreamBreakScheduledDurationNotMatchedTrigger){var a; Z=(a=q.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&a.breakDurationMs?new cb(Number(q.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,q.id):new K("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(q.newSlotScheduledWithBreakDurationTrigger){var m;Z=(m=q.newSlotScheduledWithBreakDurationTrigger)!=null&&m.breakDurationMs?new og(Number(q.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,q.id):new K("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else Z= q.prefetchCacheExpiredTrigger?new hH(az,q.id):new K("Not able to convert an AdsControlflowTrigger.");q=Z}Z=q}q=Z}Z=q}q=Z}Z=q}q=Z}Z=q}q=Z}Z=q}q=Z}return q}; E0D=function(q){return W6[z[9]](this,64,q)}; g.Pv=function(q,Z){var F=Math.abs(Math.floor(q)),B=Math.floor(F/86400),f=Math.floor(F%86400/3600),D=Math.floor(F%3600/60);F=Math.floor(F%60);if(Z){Z="";B>0&&(Z+=" "+B+" d\u00edas");if(B>0||f>0)Z+=" "+f+" horas";Z+=" "+D+" minutos";Z+=" "+F+" segundos";B=Z.trim()}else{Z="";B>0&&(Z+=B+":",f<10&&(Z+="0"));if(B>0||f>0)Z+=f+":",D<10&&(Z+="0");Z+=D+":";F<10&&(Z+="0");B=Z+F}return q>=0?B:"-"+B}; KyX=function(q){var Z=q.Vs();if(q.U("html5_disable_loop_range_for_shorts_ads")&&Z.getVideoData().isAd()?0:NM(Z.getVideoData())&&!Z.ul())Z=Zn(q)*1E3-q.getVideoData().nu,q.U("html5_gapless_new_slr")?(q=q.Wt,FB(q.app,"gaplessshortslooprange"),Z=new g.u8(0,Z,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(q=q.app.Vs())&&q.addCueRange(Z)):q.setLoopRange({startTimeMs:0,endTimeMs:Z,type:"shortsLoop"})}; B9=function(q,Z,F,B){N$.call(this,q,Z,F,B,"ytp-video-ad-top-bar-title","ad-title")}; $SG=function(){var q=PT().S,Z=Fd>=0?F0()-Fd:-1,F=Ps?F0()-r8:-1,B=ZP>=0?F0()-ZP:-1;if(q==947190542)return 100;if(q==79463069)return 200;q=[2E3,4E3];var f=[250,500,1E3];pI(637,Error(),.001);var D=Z;F!=-1&&F1500&&B<4E3?500:G}; ff=function(q){var Z=FJ();g.jJ(function(){var F=g.Td(q);Zt(Z,F);return F})()}; Dn=function(q){g.J.call(this);var Z=this;this.D=q;this.instance=null;this.addOnDisposeCallback(function(){g.dN(Z.instance);Z.instance=null})}; a3K=function(q,Z){mx(q,1,Z.defaultPolicy);mx(q,2,Z.smooth);mx(q,3,Z.visibility);mx(q,4,Z.s5);mx(q,5,Z.performance);mx(q,6,Z.speed)}; iZ8=function(q,Z,F,B,f){mSy=!1;var D=(0,g.Le)();Z.ticks.gelc=D;zo++;g.cz("disable_compression_due_to_performance_degredation")&&D-Z.startTime>=nmD&&(nb++,g.cz("abandon_compression_after_N_slow_zips")?zo===g.bk("compression_disable_point")&&nb>NbZ&&(Go=!1):Go=!1);gmB(Z);B.headers||(B.headers={});B.headers["Content-Encoding"]="gzip";B.postBody=q;B.postParams=void 0;f(F,B)}; N5=function(){return gE()?!1:lm("Opera")}; zX=function(q){var Z=new Map;q.forEach(function(F){Z.set(F.D(),F)}); this.D=Z}; Ij=function(q){g.J.call(this);var Z=this;this.options=q;this.j=new g.VW;this.tN=this.j.promise;this.Z=new g.VW;this.V=1;this.S=new g.VW;this.G=[];this.tI=q.tI||function(){}; this.logger=new Gr(hN7(q.JR||{}));WJb(this,q.bD,q.Dzl,q.Trc,q.mYc,Object.assign({},k6K,q.EG||{}));this.addOnDisposeCallback(function(){return void i46(Z)})}; g.zr=function(q,Z){return q.D?q.D.getResponseHeader(Z):null}; nf=function(){qu.apply(this,arguments)}; bV=function(){var q=g.sY("yt-player-proxima-pref");return q==null?null:q}; sZ8=function(){return{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]}}; ydZ=function(q){jZ9=2592E3*(q||1)}; Iv=function(q,Z){var F=this;this.TP=q;this.G=this.D=null;this.Z=this.pE=NaN;this.GY=this.requestId=null;this.JZ={g3U:function(){return F.range}}; this.m6=q[0].D.m6;this.K=Z||"";this.TP[0].range&&this.TP[0].S>0&&(j4D(q)?(this.range=I3X(q),this.S=this.range.length):(this.range=this.TP[this.TP.length-1].range,this.S=Cfg(q)))}; Nt=function(q){g.J.call(this);this.D=q;this.Bg=new Map}; hb9=function(q){return cy(q.slot,q.GP.get())?new gR(q):new St(q)}; Rb8=function(){var q=g.sY("yt-player-quality");if(q instanceof Object&&q.quality&&q.previousQuality){if(q.quality>q.previousQuality)return 1;if(q.quality=P9(G)+n):Z=q.getDuration()>=G.getDuration(),Z=!Z;Z&&Z76(F)&&(Z=q.Y$,pV?(n=wcG(F),G=1/n,n=P9(q,n),Z=P9(Z)+G-n):Z=Z.getDuration()- q.getDuration(),Z=1+Z/F.info.duration,wvD(g.Xd(F),Z))}else{G=!1;q.j||(oSD(F),F.D&&(q.j=F.D,G=!0,f=F.info,D=F.D.HY,f.X="updateWithEmsg",f.Uc=D,f=F.D,f.a6&&(D=q.Z.index,D.K=!f.a6,D.S="emsg"),f=F.info.D.info,D=g.Xd(F),g.Wv(f)?qG(D,1701671783):f.cL()&&rR([408125543],307544935,D)));a:if((f=ZS(F,q.policy.G0))&&rg6(F))n=WoD(q,F),q.V+=n,f-=n,q.Dl+=f,q.S=q.policy.Ds?q.S+f:NaN;else{if(q.policy.aK){if(D=b=q.loader.kH(g.Q9(F),1),q.S>=0&&F.info.type!==6){if(q.policy.Ds&&isNaN(q.HG)){g.bh(new g.M2("Missing duration while processing previous chunk", F.info.wq()));q.loader.isOffline()&&!q.policy.zY||JEZ(q,F,D);GP(q,"m");break a}B=b-q.S;var N=B-q.V,S=F.info.Uc,l=q.dU?q.dU.Uc:-1,U=q.eU,u=q.HG,P=q.policy.f8&&B>q.policy.f8,W=Math.abs(N)>10,H=Math.abs(q.S-D)<1E-7;if(Math.abs(N)>1E-4){q.WG+=1;var X=(n=q.j)==null?void 0:Jp6(n);n={audio:""+ +q.B1(),sq:S.toFixed(),sliceStart:b,lastSq:l.toFixed(),lastSliceStart:U,lastSliceDuration:u,totalDrift:(B*1E3).toFixed(),segDrift:(N*1E3).toFixed(),skipRewrite:""+ +(P||W)};if(X==null?0:X.length)n.adCpn=X[0];q.loader.handleError("qoe.avsync", n);q.o_=S}P||W||H||(D=q.S);n=WoD(q,F,b);f-=n;q.V=B+n}}else D=isNaN(q.S)?F.info.startTime:q.S;JEZ(q,F,D)&&(q.Dl+=f,q.S=D+f,q.policy.cC&&q.WG>=q.policy.cC&&(q.WG=0,q.loader.Mb({resetForRewrites:"count"})))}q.dU=F.info;q.HG=wR(F);F.S>=0&&(q.eU=F.S);if(G&&q.j){G=YND(q,!0);W9(F.info,G);q.D&&W9(q.D.info,G);Z=g.E(Z);for(n=Z.next();!n.done;n=Z.next())n=n.value,f=void 0,q.policy.Z&&n.Uc!==((f=q.j)==null?void 0:f.HY)||W9(n,G);(F.info.G||q.D&&q.D.info.G)&&F.info.type!==6||(q.uL=G,q.policy.K?(Z=tG7(q.j),q.loader.d9(q.Z, G,Z)):(Z=q.loader,Z.Np.isManifestless&&p$6(Z,G,null,!!q.Z.info.video)),q.policy.SW||dS7(q))}}ZWb(q,F);q.timestampOffset&&zk6(F,q.timestampOffset)}; aP=function(){this.K=this.S=this.G=this.D=0}; VY8=function(){return!!g.sY("yt-player-headers-readable")}; ebX=function(){var q={};var Z=q.url;var F=q.interval;q=q.retries;this.url=Z;this.interval=F;this.retries=q}; Lf=function(q,Z,F,B,f,D,G,n,b){Z=Bs(q.K.get(),F,Z);var N={layoutId:Z,layoutType:F,bL:"core"},S=[new Mk(q.D,f,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];b&&S.push(new HR(q.D,b,["normal"]));return{layoutId:Z,layoutType:F,ud:new Map,layoutExitNormalTriggers:S,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:new zX([B,new QA(D),new yY(f)]),Xe:G(N),adLayoutLoggingData:n}}; H9=function(q,Z,F,B){(new Uint8Array(q.data.buffer,q.offset,B)).set(new Uint8Array(Z.buffer,F+Z.byteOffset,B));q.offset+=B}; OQ=function(q,Z,F,B,f,D){f=f===void 0?!1:f;D=D===void 0?!1:D;km.call(this,q,{Y:"button",W:"ytp-ad-button-vm"},"ad-button",Z,F,B);this.buttonText=this.buttonIcon=null;this.hide();this.D=f;this.K=D}; TOK=function(q){switch(q){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"}}; NI9=function(q,Z,F,B){return new QY(q,Z,{opacity:F},{opacity:B},{property:"opacity",duration:Z,timing:"ease-in",delay:0})}; MGb=function(q){return{Kt:Ta(q,3),kF:Ta(q,4),hB:Ta(q,5),yCE:xK(q,8),JM$:Ta(q,10),wb:Ta(q,12),U7:Ta(q,13),Gp:Ta(q,14),zp:Ta(q,15),fg:Ta(q,16)}}; oWB=function(q,Z,F,B){var f=nK(q.K.get(),"SLOT_TYPE_PLAYER_UNDERLAY");F=new Fj(q.D,F);var D=[new Nl(q.D,f)];q=[new g4(q.D,Z),new $H(q.D,f)];return{slotId:f,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:D,slotExpirationTriggers:q,bL:"core",clientMetadata:new zX([new Si(B({slotId:f,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,bL:"core",slotEntryTrigger:F,slotFulfillmentTriggers:D,slotExpirationTriggers:q}))])}}; IS=function(q,Z,F){Ao.call(this,q,Z);this.Z=F;q=this.index=new g.W1;q.K=!1;q.S="d"}; v9=function(q,Z,F){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(F===void 0?0:F)&&Symbol.for&&q?Symbol.for(q):q!=null?Symbol(q):Symbol():Z}; g.EQ=function(q){var Z,F,B;q=g.C((Z=q.getWatchNextResponse())==null?void 0:(F=Z.playerOverlays)==null?void 0:(B=F.playerOverlayRenderer)==null?void 0:B.decoratedPlayerBarRenderer,XB);return g.C(q==null?void 0:q.playerBar,qFy)}; ZbD=function(q,Z){var F=[];F.push(new QA(Xk(q)));F.push(new yY(Z.layoutId));(q=qc(Z.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&F.push(new xE(q));(q=qc(Z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&F.push(new Cm(q));(q=qc(Z.clientMetadata,"metadata_type_remote_slots_data"))&&F.push(new xM(q));(q=qc(Z.clientMetadata,"metadata_type_ad_next_params"))&&F.push(new Kf(q));(q=qc(Z.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&F.push(new $K(q));(q= qc(Z.clientMetadata,"metadata_type_ad_pod_info"))&&F.push(new ag(q));(Z=qc(Z.clientMetadata,"metadata_type_ad_video_id"))&&F.push(new Zv(Z));return F}; GDZ=function(q,Z,F,B,f,D,G){var n=nK(q.K.get(),"SLOT_TYPE_IN_PLAYER"),b=Bs(q.K.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",n);B=hVG(q,B,D,G,b);if(B instanceof K)return B;G=[new Nl(q.D,n)];f=[new g4(q.D,D),new Nl(q.D,f),new mR(q.D,f)];F=Ou(F,{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bL:"core",slotEntryTrigger:B,slotFulfillmentTriggers:G,slotExpirationTriggers:f});q=q.S.get();D={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",bL:"core"};Z={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", ud:new Map,layoutExitNormalTriggers:[new V6X(q.D,b,Z.durationMs)],layoutExitSkipTriggers:[new FpD(q.D,b,Z.durationMs)],layoutExitUserCancelledTriggers:[new B09(q.D,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],bL:"core",clientMetadata:new zX([new iV(Z)]),Xe:F(D)};return{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bL:"core",slotEntryTrigger:B,slotFulfillmentTriggers:G,slotExpirationTriggers:f,clientMetadata:new zX([new Si(Z)])}}; kK=function(q){return!!(q.S&&q.S.videoInfos&&q.S.videoInfos.length)}; fWk=function(q,Z,F){Gf.call(this,"ad-message",q,void 0,Z,F)}; Rg=function(q,Z){var F=Z.raw_watch_next_response;if(!F){var B=Z.watch_next_response;B&&(F=JSON.parse(B))}if(F){q.BG=F;var f=q.BG.playerCueRangeSet;f&&g.yr(q,f);var D=q.BG.playerOverlays;if(D){var G=D.playerOverlayRenderer;if(G){var n=G.autonavToggle;n&&(q.autoplaySwitchButtonRenderer=g.C(n,DaX),q.U("web_player_autonav_use_server_provided_state")&&jN(q)&&(q.autonavState=q.autoplaySwitchButtonRenderer.enabled?2:1));var b=G.videoDetails;if(b){var N=b.embeddedPlayerOverlayVideoDetailsRenderer;var S=b.playerOverlayVideoDetailsRenderer; S&&(S.title&&(Z.title=g.HD(S.title)),S.subtitle&&(Z.subtitle=g.HD(S.subtitle)))}g.H_(q.Qs)&&(q.Lm=!!G.addToMenu);Gok(q,G.shareButton);G.startPosition&&G.endPosition&&(q.progressBarStartPosition=G.startPosition,q.progressBarEndPosition=G.endPosition);var l=G.gatedActionsOverlayRenderer;l&&(q.cn$=g.C(l,z_7));var U,u,P,W=g.C((U=q.getWatchNextResponse())==null?void 0:(u=U.playerOverlays)==null?void 0:(P=u.playerOverlayRenderer)==null?void 0:P.infoPanel,nWB);if(W){q.jh=Number(W==null?void 0:W.durationMs)|| NaN;if(W==null?0:W.infoPanelOverviewViewModel)q.ix=W==null?void 0:W.infoPanelOverviewViewModel;if(W==null?0:W.infoPanelDetailsViewModel)q.zY=W==null?void 0:W.infoPanelDetailsViewModel}q.showSeekingControls=!!G.showSeekingControls}}var H,X,Q=(H=q.getWatchNextResponse())==null?void 0:(X=H.contents)==null?void 0:X.twoColumnWatchNextResults;if(Q){var a=Q.desktopOverlay&&g.C(Q.desktopOverlay,bbD);a&&(a.suppressShareButton&&(q.showShareButton=!1),a.suppressWatchLaterButton&&(q.Lm=!1))}N&&N0b(q,Z,N);var m= Ax(0,Z.autoplay_count),c=q.getWatchNextResponse(),e,Y=(e=c.contents)==null?void 0:e.twoColumnWatchNextResults,Zg,GZ,FD,Ny=(Zg=c.playerOverlays)==null?void 0:(GZ=Zg.playerOverlayRenderer)==null?void 0:(FD=GZ.autoplay)==null?void 0:FD.playerOverlayAutoplayRenderer,qy=gW7(q),y9,dX=(y9=c.contents)==null?void 0:y9.singleColumnWatchNextResults;if(dX){var z0;if(((z0=dX.autoplay)==null?0:z0.autoplay)&&!dX.playlist){var G0=dX.autoplay.autoplay.sets,aG={},$B=new sQ(q.C()),T0=null,v5;if(G0){for(var aE=g.E(G0), v=aE.next();!v.done;v=aE.next()){var tB=v.value.autoplayVideoRenderer;if(tB&&tB.compactVideoRenderer){T0=tB.compactVideoRenderer;break}}if(v5=G0[0].autoplayVideo){var n7=v5.clickTrackingParams;n7&&(aG.itct=n7);aG.autonav="1";aG.playnext=String(m)}}else aG.feature="related-auto";var Km=g.C(v5,g.jt);if(T0){$B.videoId=T0.videoId;var O=T0.shortBylineText;O&&($B.author=g.HD(O));var M=T0.title;M&&($B.title=g.HD(M))}else Km!=null&&Km.videoId&&($B.videoId=Km.videoId);$B.RH=aG;q.suggestions=[];q.zy=$B}}if(qy){for(var Ws= [],GX=g.E(qy),pe=GX.next();!pe.done;pe=GX.next()){var qM=pe.value,My=void 0,TZ=null;if(qM.endScreenVideoRenderer){var AY=qM.endScreenVideoRenderer,x=AY.title;TZ=new sQ(q.C());TZ.videoId=AY.videoId;TZ.lengthSeconds=AY.lengthInSeconds||0;var L=AY.publishedTimeText;L&&(TZ.publishedTimeText=g.HD(L));var A=AY.shortBylineText;A&&(TZ.author=g.HD(A));var k=AY.shortViewCountText;k&&(TZ.shortViewCount=g.HD(k));if(x){TZ.title=g.HD(x);var d=x.accessibility;if(d){var zZ=d.accessibilityData;zZ&&zZ.label&&(TZ.ariaLabel= zZ.label)}}var t=AY.navigationEndpoint;if(t){My=t.clickTrackingParams;var BD=g.C(t,g.jt),I=g.C(t,g.ZH);BD?TZ.HR=BD:I!=null&&(TZ.watchUrl=I.url)}var AK=AY.thumbnailOverlays;if(AK)for(var i8=g.E(AK),WD=i8.next();!WD.done;WD=i8.next()){var EK=WD.value.thumbnailOverlayTimeStatusRenderer;if(EK)if(EK.style==="LIVE"){TZ.isLivePlayback=!0;break}else if(EK.style==="UPCOMING"){TZ.isUpcoming=!0;break}}TZ.V=Ig(AY.thumbnail)}else if(qM.endScreenPlaylistRenderer){var B5=qM.endScreenPlaylistRenderer,L7=B5.navigationEndpoint; if(!L7)continue;var af=g.C(L7,g.jt);if(!af)continue;var eB=af.videoId;TZ=new Cf(q.C());TZ.playlistId=B5.playlistId;TZ.playlistLength=Number(B5.videoCount)||0;TZ.D=eB||null;TZ.videoId=eB;var Fq=B5.title;Fq&&(TZ.title=g.HD(Fq));var K7=B5.shortBylineText;K7&&(TZ.author=g.HD(K7));My=L7.clickTrackingParams;TZ.V=Ig(B5.thumbnail)}TZ&&(My&&(TZ.sessionData={itct:My}),Ws.push(TZ))}q.suggestions=Ws}if(Ny){q.xp=!!Ny.preferImmediateRedirect;q.bb=q.bb||!!Ny.webShowNewAutonavCountdown;q.KR=q.KR||!!Ny.webShowBigThumbnailEndscreen; if(q.bb||q.KR){var iN=Y||null,kB=new sQ(q.C());kB.videoId=Ny.videoId;var Oj=Ny.videoTitle;if(Oj){kB.title=g.HD(Oj);var RG=Oj.accessibility;if(RG){var IQ=RG.accessibilityData;IQ&&IQ.label&&(kB.ariaLabel=IQ.label)}}var Qm=Ny.byline;Qm&&(kB.author=g.HD(Qm));var M5=Ny.publishedTimeText;M5&&(kB.publishedTimeText=g.HD(M5));var fe=Ny.shortViewCountText;fe&&(kB.shortViewCount=g.HD(fe));var RE=Ny.thumbnailOverlays;if(RE)for(var sj=g.E(RE),LK=sj.next();!LK.done;LK=sj.next()){var kp=LK.value.thumbnailOverlayTimeStatusRenderer; if(kp)if(kp.style==="LIVE"){kB.isLivePlayback=!0;break}else if(kp.style==="UPCOMING"){kB.isUpcoming=!0;break}else if(kp.style==="DEFAULT"&&kp.text){kB.lengthText=g.HD(kp.text);var l0=kp.text.accessibility;if(l0){var Ut=l0.accessibilityData;Ut&&Ut.label&&(kB.BV=Ut.label||"")}break}}kB.V=Ig(Ny.background);var Zq=Ny.nextButton;if(Zq){var FM=Zq.buttonRenderer;if(FM){var Nc=FM.navigationEndpoint;if(Nc){var O3=g.C(Nc,g.jt);O3&&(kB.HR=O3)}}}if(Ny.topBadges){var Bz=Ny.topBadges[0];if(Bz){var fn=g.C(Bz,SFg); fn&&fn.style==="BADGE_STYLE_TYPE_PREMIUM"&&(kB.az_=!0)}}var Dq=Ny.alternativeTitle;Dq&&(kB.zo=g.HD(Dq));var u0={autonav:"1",playnext:String(m)};kB.playlistId&&(u0.autoplay="1");if(iN){var Cw,QK,oo,xR,A_=(Cw=iN.autoplay)==null?void 0:(QK=Cw.autoplay)==null?void 0:(oo=QK.sets)==null?void 0:(xR=oo[0])==null?void 0:xR.autoplayVideo;if(A_){var Gy=A_.clickTrackingParams;Gy&&(u0.itct=Gy);var zy=g.C(A_,g.jt);zy&&(kB.fu=zy)}}else if(Ny){var vj,nn,bg,dk=(vj=Ny.nextButton)==null?void 0:(nn=vj.buttonRenderer)== null?void 0:(bg=nn.navigationEndpoint)==null?void 0:bg.clickTrackingParams;dk&&(u0.itct=dk)}u0.itct||(u0.feature="related-auto");kB.RH=u0;q.suggestions||(q.suggestions=[]);q.zy=kB}Ny.countDownSecs!=null&&(q.Tj=Ny.countDownSecs*1E3);Ny.countDownSecsForFullscreen!=null&&(q.gH=Ny.countDownSecsForFullscreen>=0?Ny.countDownSecsForFullscreen*1E3:-1);q.U("web_autonav_color_transition")&&Ny.watchToWatchTransitionRenderer&&(q.watchToWatchTransitionRenderer=g.C(Ny.watchToWatchTransitionRenderer,lW7))}var XK= gW7(q);if(XK){var kT,AW,sb,E_=XK==null?void 0:(kT=XK[0])==null?void 0:(AW=kT.endScreenVideoRenderer)==null?void 0:(sb=AW.navigationEndpoint)==null?void 0:sb.clickTrackingParams,Nr=g.rp(q);E_&&Nr&&(Nr.sessionData={itct:E_})}q.BG.currentVideoThumbnail&&(q.V=Ig(q.BG.currentVideoThumbnail));var YV,PA,jF,IX,r7,tu=(YV=q.BG)==null?void 0:(PA=YV.contents)==null?void 0:(jF=PA.twoColumnWatchNextResults)==null?void 0:(IX=jF.results)==null?void 0:(r7=IX.results)==null?void 0:r7.contents;if(tu&&tu[0]){var vX= tu[0].videoPrimaryInfoRenderer;vX&&vX&&vX.subtitle&&(q.N$=g.HD(vX.subtitle))}if(tu&&tu[1]){var EP,w7,HY,zf,KX=(EP=tu[1].videoSecondaryInfoRenderer)==null?void 0:(w7=EP.owner)==null?void 0:(HY=w7.videoOwnerRenderer)==null?void 0:(zf=HY.thumbnail)==null?void 0:zf.thumbnails;KX&&KX.length&&(q.profilePicture=KX[KX.length-1].url)}var K3=Ze(Z),CP,lS=(CP=q.getWatchNextResponse())==null?void 0:CP.onResponseReceivedEndpoints;if(lS)for(var UW=g.E(lS),NW=UW.next();!NW.done;NW=UW.next()){var Oy=NW.value;g.C(Oy, ho)&&(q.VI=g.C(Oy,ho));var uS=g.C(Oy,UaD),KN=void 0;if((KN=uS)==null?0:KN.entityKeys)q.Mx=uS.entityKeys||[],uS.visibleOnLoadKeys&&(q.visibleOnLoadKeys=uS.visibleOnLoadKeys)}if(q.U("web_key_moments_markers")){var uV=g.Pe.getState().entities,WA=g.NG("visibility_override","markersVisibilityOverrideEntity");var $z=r5(uV,"markersVisibilityOverrideEntity",WA);q.eU=($z==null?void 0:$z.videoId)===(q.videoId||K3)&&($z==null?0:$z.visibilityOverrideMarkersKey)?$z.visibilityOverrideMarkersKey:q.visibleOnLoadKeys; q.visibleOnLoadKeys=[].concat(g.YB(q.eU))}}}; WX=function(q,Z){if(!Z.D.D)return q.Z?new ob(0,360,!1,"b"):wH;for(var F=!1,B=!1,f=g.E(Z.D.videoInfos),D=f.next();!D.done;D=f.next())g8(D.value)?F=!0:B=!0;F=F&&B;B=0;f=g.Ce(q.J.experiments,"html5_performance_cap_floor");f=q.J.K?240:f;Z=g.E(Z.D.videoInfos);for(D=Z.next();!D.done;D=Z.next()){var G=D.value;if(!F||!g8(G))if(D=c9(G.FE,G.video.fps,q.S),G=G.video.qualityOrdinal,Math.max(D,f)>=G){B=G;break}}return new ob(0,B,!1,"b")}; xE=function(q){this.value=q}; ubK=function(q,Z,F){Z.bL!=="core"&&q.yO.KD("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Z,F,void 0)}; PkG=function(q,Z,F){var B,f=-1,D=Z[1],G=0,n=7,b=4;D===0&&(n=138,b=3);for(B=0;B<=F;B++){var N=D;D=Z[(B+1)*2+1];if(!(++G0&&(e.push(X),e.push(new oU(c.adPodSkipTarget)));(D=N.get(c.externalVideoId))&&e.push(new xM(D));D=e}else D=new K("Invalid vod media renderer")}if(D instanceof K)return D;q=Object.assign({},G,B,{ud:a,renderingContent:F.renderingContent,clientMetadata:new zX(D),Xe:Ou(S,q)(G),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData});F=g.C(F.renderingContent,hB);if(!F||!fO(F))return new K("Invalid meida renderer");l=kG(l,F.externalVideoId);l.instreamVideoAdRenderer=F;l.Av="AD_PLACEMENT_KIND_START";return u?(b=EL(U,q,b,W,S,H,P,X,!1),b instanceof K?b:r7D(q.layoutId,U)&&b?{layout:Object.assign({},q,{clientMetadata:new zX(D.concat(new qE(b)))})}:{layout:q,xa:b}): {layout:q}}; Zu=function(q,Z,F,B,f,D){f=f===void 0?[]:f;km.call(this,q,{Y:"div",rU:["ytp-ad-confirm-dialog-background"],T:[{Y:"div",W:"ytp-ad-confirm-dialog-container",T:[{Y:"div",rU:["ytp-ad-confirm-dialog"].concat(f),L:{role:"dialog",tabindex:"-1"},T:[{Y:"div",W:"ytp-ad-confirm-dialog-title",Ka:"{{title}}"},{Y:"div",W:"ytp-ad-confirm-dialog-messages"},{Y:"div",W:"ytp-ad-confirm-dialog-confirm-container",T:[{Y:"button",W:"ytp-ad-confirm-dialog-cancel-button",Ka:"{{cancelLabel}}"},{Y:"button",W:"ytp-ad-confirm-dialog-confirm-button", Ka:"{{confirmLabel}}"}]}]}]},{Y:"button",rU:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],T:[{Y:"span",W:"ytp-ad-button-icon",T:[g.t$()]}]}]},D===void 0?"confirm-dialog":D,Z,F,B);this.V=this.cG("ytp-ad-confirm-dialog-close-overlay-button");this.G=this.cG("ytp-ad-confirm-dialog-cancel-button");this.Z=this.cG("ytp-ad-confirm-dialog-confirm-button");this.uL=this.cG("ytp-ad-confirm-dialog-messages");this.S=null;this.D=new t8;g.y(this,this.D);this.K=null;this.hide()}; BC=function(q,Z){this.request=q;this.cursor=Z}; Wp8=function(q,Z,F){if(q.K!==0&&F&&Z.TP[0].jB()){var B=Z.TP[0].Uc,f=Z.TP[0].Z;Z=Z.isDecorated();w3y(q,B,f,Z,F)}}; Cny=function(q,Z){if(Z<0)return!0;var F=q.F3();return Zq.vZ&&(F=q.vZ);F!==0&&(Fo.pF(q.output,Z.UI,Z.OB,F,q.iE),q.iE+=F,Z.OB+=F,q.mT+=F,q.vZ-=F,Z.pending-=F,Z.pending===0&&(Z.OB=0))}; BV=function(q,Z,F){return q.split(Z).er.split(F).J_}; qi=function(q,Z){ow(q,"cat",Z)}; y7K=function(q){var Z=TJ(q);return Z?Z.j-q.loader.getCurrentTime():0}; Lp9=function(q,Z,F){q instanceof String&&(q=String(q));for(var B=q.length-1;B>=0;B--){var f=q[B];if(Z.call(F,f,B,q))return{ZQ:B,dB:f}}return{ZQ:-1,dB:void 0}}; fH=function(q,Z,F,B,f,D,G,n,b){this.Uc=q;this.startTime=Z;this.duration=F;this.ingestionTime=B;this.sourceURL=f;this.SC=b;this.endTime=Z+F;this.D=G||0;this.range=D||null;this.pending=n||!1;this.SC=b||null}; Hbb=function(q){if(qc(q.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var Z=iaX(q,q.slot);Yq(q.D.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[Z]})}}; ls7=function(q){var Z=q.B.getPlayerSize(),F=q.B.C(),B=q.B.getVideoData(),f=g.FQ(F)&&g.SH(q.B)&&g.p(q.B.getPlayerStateObject(),128),D=F.S;return F.Lm&&Z.width>=240&&!B.isAd()&&B.Lm&&!f&&!B.z3&&!q.B.isEmbedsShortsMode()&&!D}; Obg=function(q){var Z=LX(q.experiments,"html5_web_po_request_key");return Z?Z:g.em(q)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; Q$B=function(){for(var q=["metadata_type_invideo_overlay_ad_renderer"],Z=g.E(YP()),F=Z.next();!F.done;F=Z.next())q.push(F.value);return{m0:q,FN:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; p_X=function(q,Z,F,B){if(q instanceof g.at)return xaK(q,Z,F,B),!0;if(q)try{var f=!!q.$goog_Thenable}catch(G){f=!1}else f=!1;if(f)return q.then(Z,F,B),!0;if(g.yF(q))try{var D=q.then;if(typeof D==="function")return A78(q,D,Z,F,B),!0}catch(G){return F.call(B,G),!0}return!1}; Ch=function(q,Z,F){F=F===void 0?!1:F;if(q.g2){var B=q.g2.nw(),f=Qr(B,Z),D=NaN,G=TJ(q);G&&(D=Qr(B,G.D.index.getStartTime(G.Uc)));if(f===D&&q.K&&q.K.S&&snG($y(q),0))return Z}q=Du(q,Z,F);return q>=0?q:NaN}; vWg=function(q,Z){return Z==null?null:q.S.find(function(F){return F.hn().layoutId===Z})||null}; X3b=function(q){if(!q.K){q.K=!0;var Z=q.Mp.getPlayerState();Z=Z.isPaused()||Z.isSuspended();q.Mp.e5();Z&&!GR(q.videoData)||q.Mp.publish("signatureexpired")}}; EWD=function(q){var Z=this;var F=F===void 0?0:F;var B=B===void 0?g.ap():B;this.S=F;this.scheduler=B;this.K=new g.VW;this.D=q;for(q={s9:0};q.s90){var B=W6(89,Z.substring(F+1));g.Hh(B,function(f,D){this.set(D,f)},q); Z=Z.substring(0,F)}Z=K5(40,Z);g.Hh(Z,function(f,D){this.set(D,f)},q)}; g.aWX=function(q,Z,F,B){var f=q.Yk;Z===2&&(f=new gQ(q.J));return new g.zu(q.J,Z,f,q.template,function(D,G,n){q.lL.publish(D,G,n)},function(){return q.lL.getVisibilityState()},q.visibility,q,q.Zv,F,B)}; g.ma6=function(q){return g.O4(q.D,function(Z){return vp(Z.info.mimeType)})}; ZB9=function(q,Z,F){q.D.set(Z,F);q.K.set(Z,F);q.G&&q.G.set(Z,F)}; g.wc=function(q,Z){g.In.call(this);var F=this;this.Qs=q;this.adaptiveFormats="";this.KU=this.adQueryId=this.u2=null;this.M2={start:NaN,end:NaN};this.cueRanges=this.Ni=null;this.hH=new Map;this.drmProduct=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.WG="";this.Gy=!1;this.xA=null;this.SW=this.PX=!1;this.G=null;this.CS=this.vX=!1;this.yd=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec= 0;this.Uh=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.P3=0;this.PY=!1;this.cycToken=null;this.author="";this.Ft=!1;this.J0=0;this.s$=!1;this.qa=null;this.Gw=[];this.RJ=this.mF=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Jn=this.QC="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.KB=0;this.zs=this.Oc=this.K=null;this.Z8="";this.loading=!1;this.w2=this.TZ=0;this.e6=this.pipable= this.Vm=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.Pf=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.vG=this.isPrivate=this.isListed=this.hC=!1;this.UU="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.NL=this.zP=this.OZ=!1;this.latencyClass="UNKNOWN";this.NZ=this.X1=this.s4=this.qk=this.YL=this.e4=this.Yz=this.E9=this.enableServerStitchedDai=this.md=this.isMdxPlayback=this.isUpcoming= this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Tb=0;this.reloadReason="";this.Rt=this.zH=!1;this.keywords={};this.G0="";this.tT=0;this.KW=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.v2=null;this.Eb=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.FI=this.paygated=!1;this.Xk=[];this.E$=!1;this.Y$=[];this.oV=null;this.r5=this.racyCheckOk=!1;this.on={};this.isProximaLatencyEligible=!1;this.m4=0;this.S=null;this.autonavState= 1;this.fu=null;this.shortDescription="";this.PG=this.W4=!1;this.Lp=this.Gb=this.startSeconds=0;this.ll=this.sF=this.nH=wH;this.zy=this.suggestions=null;this.Fq=this.Tc=void 0;this.isExternallyHostedPodcast=!1;this.Gs=null;this.N$=this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.eU=[];this.nE=[];this.hlsFormats=this.gj="";this.Jy=this.pY=this.sX=this.X3=this.o_=this.Uf=this.Md=null;this.Fk="vvt";this.TY=!1;this.nW=null;this.gg="";this.lJ=NaN;this.JJ=this.aK=this.Qm=this.LH= this.h$=this.mD=this.c5=this.eK=this.AJ=this.IK="";this.Aj=null;this.zl=!1;this.clipStart=0;this.clipEnd=Infinity;this.Se=!1;this.heartbeatToken="";this.GR=this.E4=NaN;this.UT=this.M4=this.GA=this.KM=this.Xg=!1;this.uu=!0;this.V={};this.captionTracks=[];this.D8=[];this.Ae=0;this.u4=[];this.f8=[];this.cC=!1;this.O4={};this.JV=new g.nH("und",new g.w4("Default","und",!0));this.w4=0;this.Z=null;this.Kk=[];this.RL=!1;this.Qh=this.lx="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.reelItemWatchResponse= this.BG=this.g4=this.Ue=this.playerResponse=this.eY=this.Du=this.vu=this.VT=null;this.kL=!1;this.ac=null;this.isInlinePlaybackNoAd=this.nD=this.Ak=this.useCobaltWidevine=this.F5=this.lA=!1;this.MZ=!0;this.OP=this.cH=NaN;this.defraggedFromSubfragments=this.ut=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.I_=new Set;this.sabrContextUpdates=new Map;this.gatewayExperimentGroup="";this.sb=this.HG=this.oa=!1;this.interstitials=[];this.z3=this.NN=!1;this.Lx="";this.allowImaMonetization= !1;this.aO="";this.Xp=!1;this.bI="";this.Si=[];this.u1=[];this.fp="";this.i4=this.X=this.eT=!1;this.P5="";this.uc=this.Vl=this.Jr=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.t3=!1;this.Sr=this.Lm=!0;this.errorDetail=this.userGenderAge="";this.lP=this.bP=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.r3=this.errorReason= this.errorCode=null;this.aZ=!1;this.qj=[];this.VO=this.k$=this.j$=this.WH=this.Ra=0;this.fetchType=null;this.xp=!0;this.transitionEndpointAtEndOfStream=void 0;this.gH=this.Tj=-1;this.KR=this.bb=!1;this.yC=null;this.Dl="";this.watchUrl=null;this.Mx=[];this.visibleOnLoadKeys=[];this.aY=[];this.inlineMetricEnabled=this.nz=!1;this.IZ=this.embedsRctn=this.embedsRct="";this.jh=NaN;this.authorizedFormats=[];this.yr=(0,g.Le)();this.Ob=this.b_=0;this.kc=null;this.LS=this.sO=this.Ov=!1;this.jj=0;this.D9={}; this.E8=!1;this.LO=.25;this.H6=2;this.Dd=!1;this.Hg=this.Qs.experiments.qp("html5_use_triple_equals");this.nu=g.Ce(this.Qs.experiments,"html5_gapless_loop_seek_offset_in_milli");this.JZ={setData:function(B){F.setData(B)}, z_:function(){F.z_()}, VF:function(B){F.VF(B)}}; this.bb=this.U("web_new_autonav_countdown");this.KR=this.U("web_new_big_thumbnail_endscreen");this.E8=this.Qs.experiments.qp("html5_audio_gain_null_coalescing");this.Qs.uu&&(this.uL=this.Qs.uu);this.setData(Z);this.lF=new bZ;g.y(this,this.lF)}; nv=function(q,Z){Z=String(Z);q.contentType==="application/xhtml+xml"&&(Z=Z.toLowerCase());return q.createElement(Z)}; tW=function(q,Z){Ya(q.D,pd,1,Z);NE(Z,1)||pTD(Z);q.qf||(Z=tA(q),gj(Z,5)||QO(Z,5,q.locale));q.uach&&(Z=tA(q),Ib(Z,mp,9)||Ya(Z,mp,9,q.uach))}; bQ=function(q,Z,F,B,f,D,G){var n={};Z&&(n.Z7=Z);if(!q)return n;n.playbackCookie=F==null?void 0:F.playbackCookie;f&&(n.b1=f);n.Qi=[];n.Ub=[];if(G==null?0:G.size)for(Z=g.E(G.values()),F=Z.next();!F.done;F=Z.next())n.Ub.push(F.value);if(q.sabrContextUpdates.size>0)for(Z=g.E(q.sabrContextUpdates.values()),F=Z.next();!F.done;F=Z.next())ib6(n,F.value,B);Im(q)&&D&&ib6(n,D,B);B=q.C().D;n.clientInfo={clientName:koX[B.c.toUpperCase()]||0};B.cbrand&&(n.clientInfo.deviceMake=B.cbrand);B.cmodel&&(n.clientInfo.deviceModel= B.cmodel);B.cver&&(n.clientInfo.clientVersion=B.cver);B.cos&&(n.clientInfo.osName=B.cos);B.cosver&&(n.clientInfo.osVersion=B.cosver);B=q.C();B.U("html5_sabr_enable_server_xtag_selection")&&B.Lp&&(n.clientInfo.hl=B.Lp);q.kc&&(n.kc=q.kc);return n}; SP=function(q,Z,F,B){q.D=3;q.j="The stream is broken @"+q.PG+"/"+F+". Error: "+B+". With input:\n"+Z;throw Error(q.j);}; s$B=function(q,Z){return""+q+"|"+(Z?"v":"a")}; Ug=function(q,Z){lZ(Z)?q.b6(1):g.YM(Z,4)&&!g.YM(Z,2)&&q.g8();dL(Z,4)<0&&!(dL(Z,2)<0)&&q.ol()}; uZ=function(q,Z,F){for(var B=q.OI[F],f=F<<1;f<=q.xK;){f>>=1)if(Z&1&&q.wp[F*2]!==0)return 0;if(q.wp[18]!==0||q.wp[20]!==0||q.wp[26]!==0)return 1;for(F=32;F<256;F++)if(q.wp[F*2]!==0)return 1;return 0}; ZN6=function(q){var Z=new qkX;Z.G=q.U("h5_gapless_support_types_diff");Z.V=!1;Z.Dl=q.U("html5_gapless_use_format_info_fix");Z.j=q.U("html5_gapless_disable_on_av1")&&!q.U("html5_gapless_enable_on_av1");Z.Z=q.U("html5_gapless_check_codec_diff_strictly");Z.PG=q.U("html5_gapless_on_ad_autoplay");Z.X=q.U("html5_gapless_disable_diff_aspect_radio");Z.K=q.U("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!q.U("html5_disable_loop_range_for_shorts_ads");Z.D=q.U("html5_pseudogapless_shorts_seek_to_next_start"); Z.S=q.U("html5_gapless_ad_autoplay_on_video_to_ad_only");return Z}; AC=function(q,Z,F,B,f){g.w.call(this,{Y:"div",W:"ytp-horizonchart"});this.j=Z;this.sampleCount=F;this.G=B;this.Z=f;this.index=0;this.heightPx=-1;this.S=this.K=null;this.D=Math.round(q/F);this.element.style.width=this.D*this.sampleCount+"px";this.element.style.height=this.j+"em"}; BCg=function(q){if(q.K.getVideoData().S){var Z=q.gq.C().U("html5_gapless_suspend_next_loader")&&q.Z===1;q.K.VJ(q.G,Z,Fj9(q));rX(q,3);LlB(q);var F=F5(q);Z=F.oe;F=F.Vo;Z.subscribe("updateend",q.DC,q);F.subscribe("updateend",q.DC,q);q.DC(Z);q.DC(F)}}; Oh=function(q){this.value=q}; g.pW=function(q){return{fieldType:3,fieldName:q}}; NP=function(q){var Z,F=(Z=qc(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Z.current;if(!F)return null;Z=qc(q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var B=q.layoutId,f=qc(q.clientMetadata,"metadata_type_content_cpn"),D=qc(q.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),G=qc(q.clientMetadata,"metadata_type_player_overlay_layout_renderer"),n=qc(q.clientMetadata,"metadata_type_player_underlay_renderer"),b=qc(q.clientMetadata, "metadata_type_ad_placement_config"),N=qc(q.clientMetadata,"metadata_type_video_length_seconds");var S=Kh(q.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?qc(q.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Kh(q.clientMetadata,"metadata_type_layout_enter_ms")&&Kh(q.clientMetadata,"metadata_type_layout_exit_ms")?(qc(q.clientMetadata,"metadata_type_layout_exit_ms")-qc(q.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{v5:B,contentCpn:f,gi:F,VP:Z,instreamAdPlayerOverlayRenderer:D, playerOverlayLayoutRenderer:G,instreamAdPlayerUnderlayRenderer:n,adPlacementConfig:b,videoLengthSeconds:N,qZ:S,inPlayerLayoutId:qc(q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:qc(q.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Dfb=function(q,Z,F){CrZ([{settingItemId:Z,settingOptionValue:F}]);nN(q.Y6(),function(B){fUZ(B,Z,F)})}; gE=function(){return Ey||KV?!!TX&&TX.brands.length>0:!1}; EW=function(q,Z){this.D=q;this.pos=0;this.start=Z||0}; jS=function(q,Z,F,B,f,D,G,n,b){oP.call(this,q,Z,F,B);this.Zl=f;this.wU=D;this.j=G;this.Z=n;this.GP=b;this.G=!1;this.X=qc(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; GdD=function(q){q=q.adPlacementRenderer.config.adPlacementConfig;if(q.prefetchModeConfig&&q.prefetchModeConfig.cacheFetchRefreshDurationMs&&(q=Number(q.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(q)||q<=0)))return q}; Aq=function(q,Z,F){q=NN(q,Z===void 0?0:Z,F===void 0?-1:F);Z=new Uint8Array(q.length);try{Z.set(q)}catch(B){for(F=0;F1&&(f=!1);q.Wv&&f===Z||(B=B.lock(f?"portrait":"landscape"),B!=null&&B.catch(function(){}),q.Wv=!0)}else q.Wv&&(q.Wv=!1,B.unlock())}; ZcX=function(q,Z){for(var F=q.D.length,B=0,f=g.E(q.D),D=f.next();!D.done;D=f.next())if(D=D.value,D.width!==0)if(Z>D.width)Z-=D.width,Z-=uE(q),B++;else break;return B===F?F-1:B}; KH=function(q){g.J.call(this);var Z=this;this.provider=q;this.D=-1;this.Z=!1;this.K=-1;this.playerState=new g.h1;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.G=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.im(this.send,6E4,this);this.S=!1;this.jsErrorCount=0;this.JZ={G_:function(){Z.G_()}}; this.G_=function(){Z.jsErrorCount++}; g.y(this,this.delay);window.addEventListener("error",this.G_);window.addEventListener("unhandledrejection",this.G_)}; gD8=function(q,Z,F){if(!q.D.has(Z)){q.D.add(Z);var B={};q.params.Di.S$(Z,Object.assign({},F,(B.p_ac=q.params.adCpn,B.p_isv=q.params.n$F&&q.params.jB,B)))}}; $f=function(q,Z){g.w.call(this,{Y:"button",rU:["ytp-button","ytp-overflow-button"],L:{title:q.U("player_tooltip_data_title_killswitch")?"M\u00e1s":"","data-tooltip-title":"M\u00e1s","aria-haspopup":"true","aria-owns":Z.element.id},T:[{Y:"div",W:"ytp-overflow-icon",T:[{Y:"svg",L:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},T:[{Y:"path",L:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]}); var F=this;this.B=q;this.N8=Z;this.visible=!1;q.createClientVe(this.element,this,16499);this.N(q,"videoplayerreset",this.ys);this.N(q,"appresize",this.ys);this.N(q,"fullscreentoggled",this.ys);this.N(q,"presentingplayerstatechange",this.ys);this.ys();b8(q,this.element,this);this.listen("click",function(){q.logClick(F.element);l6(Z,F.element,!1)}); this.N(Z.closeButton,"click",function(){F.focus()})}; RQ6=function(q,Z){var F=LO6();F&&(q?RL(q,61,Sk7[F]):Z&&(Z.client.connectionType=F));g.cz("web_log_effective_connection_type")&&(F=H1G())&&(q?RL(q,94,lUX[F]):Z&&(Z.client.effectiveConnectionType=F))}; mP=function(q){var Z=q.U("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";w1.call(this,Z,g.Wf.hf);var F=this;this.B=q;this.D=!1;this.K=new g.im(function(){g.vc(F.element,"ytp-menuitem-highlighted")},0); this.Pg=q.HH();q=q.U("delhi_modern_web_player_icons")?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(q);this.subscribe("select",this.S,this);this.listen(aU,this.G);g.y(this,this.K)}; ey=function(q){return q.Oc&&q.isManifestless?q.isLiveHeadPlayable:q.isLive}; N0b=function(q,Z,F){var B=F.channelThumbnail;B&&(B=B.thumbnails)&&(B=B[0])&&(Z.profile_picture=B.url);var f;if(B=g.C((f=g.C(F==null?void 0:F.channelThumbnailEndpoint,UfD))==null?void 0:f.urlEndpoint,g.ZH))Z.channel_path=B.url;if(f=F.collapsedRenderer)if(f=g.C(f,u77)){if(B=f.title)Z.title=g.HD(B);if(f=f.subtitle)Z.subtitle=g.HD(f)}if(F=F.expandedRenderer)if(F=g.C(F,PWg)){if(f=F.title)Z.expanded_title=g.HD(f);if(f=F.subtitle)Z.expanded_subtitle=g.HD(f);if(F=F.subscribeButton)q.subscribeButtonRenderer= g.C(F,g.iZ),q.subscribeButtonRenderer&&(Z.ucid=q.subscribeButtonRenderer.channelId,Z.subscribed=q.subscribeButtonRenderer.subscribed,q.Sr=!!q.subscribeButtonRenderer.notificationPreferenceToggleButton,q.subscribeButtonRenderer.notificationPreferenceToggleButton&&q.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(Z=q.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,Z.isToggled?(q.bP=Z.toggledServiceEndpoint||null,q.lP=Z.defaultServiceEndpoint|| null):(q.bP=Z.defaultServiceEndpoint||null,q.lP=Z.toggledServiceEndpoint||null)))}}; g.kf=function(q){return q.ZE.get("annotations_module")}; sg=function(q){var Z=Z===void 0?-1:Z;var F=F===void 0?Infinity:F;EHD(q,Z,F);for(var B=g.E(q.K.values()),f=B.next();!f.done;f=B.next())f=f.value,f.start>=Z&&f.end<=F&&(q.playback.removeCueRange(f),q.K.delete(f.getId()),q.S$({rmAdCR:1}));B=cC(q,Z/1E3);Z=B.yQ;B=B.KL;Z&&(B=B*1E3-Z.Rc,Bd7(q,Z,B,Z.Rc+B),B=q.K.get(Z.cpn))&&(B.start=Z.Rc,B.end=Z.Rc+Z.durationMs);if(Z=cC(q,F/1E3).yQ){var D;B="playback_timelinePlaybackId_"+Z.fp+"_video_id_"+((D=Z.videoData)==null?void 0:D.videoId)+"_durationMs_"+Z.durationMs+ "_enterTimeMs_"+Z.Rc+"_parentReturnTimeMs_"+Z.Ya;q.gp("Invalid_clearEndTimeMs_"+F+"_that_falls_during_"+B+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; g.jP=function(q,Z){if(q.classList)Array.prototype.forEach.call(Z,function(f){g.e$(q,f)}); else{var F={};Array.prototype.forEach.call(AE(q),function(f){F[f]=!0}); Array.prototype.forEach.call(Z,function(f){F[f]=!0}); Z="";for(var B in F)Z+=Z.length>0?" "+B:B;g.xd(q,Z)}}; Ui=function(q,Z,F){q.J.dU&&(q.TA=Z,Z.muted||IU(q,!1),F&&q.J.storeUserVolume&&!q.J.G0&&(F={volume:Math.floor(Z.volume),muted:Z.muted},F.unstorable||(g.e0("yt-player-volume",F),g.e0("yt-player-volume",F,2592E3))),Ok(q),F=g.l2&&q.mediaElement&&!q.mediaElement.pD(),q.J.G0&&!F||q.lL.NE("onVolumeChange",{muted:Z.muted,volume:Z.volume,unstorable:!q.J.storeUserVolume}))}; rk9=function(q){this.Ec=rE(q)}; wwb=function(q,Z,F){var B=q.index.oB(Z),f=q.index.getStartTime(Z),D=q.index.getDuration(Z);F?D=F=0:F=q.info.Ml*D;return new Iv([new b6(3,q,void 0,"otfCreateRequestInfoForSegment",Z,f,D,0,F)],B)}; WjD=function(q){var Z,F;if((Z=q.Dl)==null?0:(F=Z.Im)==null?0:F.itagDenylist){var B;q.w9((B=q.Dl)==null?void 0:B.Im.itagDenylist)}var f;if((f=q.Dl)==null?0:f.playbackStartPolicy){var D,G;UV(q.policy,(D=q.Dl)==null?void 0:D.playbackStartPolicy,3,(G=q.Dl)==null?void 0:G.HE())}if(q.policy.wx){Z=q.Vd();var n;(F=Z?(n=q.Dl)==null?void 0:n.O7.get(Z):void 0)&&q.K.tJ(F,-1)}if(!q.Np.Dl){var b;n=(b=q.Dl)==null?void 0:b.Tr;(n==null?0:n.Kt)&&(n==null?0:n.kF)&&q.Np.d2&&CH(q.Np,n.Kt,n.kF)}var N;((N=q.Dl)==null?0: N.rZ)&&(b=q.Dl.rZ.get(q.Vd()||""))&&q.Np&&b.formatId&&(q=q.Np.S.get(EB(b.formatId)))&&(q.info.debugInfo=b.debugInfo)}; Z4=function(q,Z,F,B,f,D){D=D===void 0?0:D;Ao.call(this,q,Z,B,void 0);this.Z=F;this.iI=D;this.index=f||new g.W1}; ykX=function(q,Z){q.DK=q.DK.filter(function(F){return F!==Z})}; hq=function(q){this.value=q}; YK=function(q){this.value=q}; HuZ=function(q,Z){q.Z=!0;g.iJ(function(){q.Z&&NJK.call(null,Z)})}; pj=function(q){var Z=0;q=g.E(q.questions);for(var F=q.next();!F.done;F=q.next())if(F=F.value,F=g.C(F,OY)||g.C(F,Qp)){var B=void 0;Z+=((B=F.surveyAdQuestionCommon)==null?void 0:B.durationMilliseconds)||0}return Z}; Nck=function(q,Z,F,B){Z.CPN=u6(function(){var f;(f=q.getVideoData(1))?f=f.clientPlaybackNonce:(g.bh(Error("Video data is null.")),f=null);return f}); Z.AD_MT=u6(function(){if(B!=null)var f=B;else{var D=F;q.C().U("html5_ssap_use_cpn_to_get_time")||(D=void 0);if(q.C().U("enable_h5_shorts_ad_fill_ad_mt_macro")||q.C().U("enable_desktop_discovery_pings_ad_mt_macro")||fd(q.C())){var G=q.getPresentingPlayerType(!0),n;f=((n=q.getVideoData(G))==null?0:n.isAd())?Lj6(q,G,D):0}else f=Lj6(q,2,D)}return HND(f)}); Z.MT=u6(function(){return HND(q.getCurrentTime(1,!1))}); Z.P_H=u6(function(){return q.Ca().ZI().height.toString()}); Z.P_W=u6(function(){return q.Ca().ZI().width.toString()}); Z.PV_H=u6(function(){return q.Ca().getVideoContentRect().height.toString()}); Z.PV_W=u6(function(){return q.Ca().getVideoContentRect().width.toString()})}; g.Sq=function(q,Z){var F=q.D[q.D.length-1];F!==Z&&(q.D.push(Z),RU(q,F,Z))}; ON6=function(q){return q.name==="TypeError"&&q.stack.includes("/s/player/")&&RR()<=105}; Q5X=function(q,Z){var F=Number(Z==null?void 0:Z.maxVisibleDurationMilliseconds);F&&(cV(q),q.uL=setTimeout(function(){if(q.D!==void 0&&(Z==null?void 0:Z.cueRangeId)===q.D){q.PG=!1;var B=ijG(q,q.D);B&&q.api.a_("innertubeCommand",B)}},F))}; Akk=function(){return{get opener(){return null},get closed(){return!0},get location(){xfb()},get document(){xfb()},postMessage:function(){}, close:function(){}, focus:function(){}}}; g.ti=function(q,Z,F,B){q=B||q;return(Z=Z&&Z!="*"?String(Z).toUpperCase():"")||F?q.querySelectorAll(Z+(F?"."+F:"")):q.getElementsByTagName("*")}; Jq=function(q,Z,F,B,f){B=B===void 0?!1:B;g.J.call(this);this.Qs=Z;this.useCobaltWidevine=B;this.iL=f;this.K=[];this.S={};this.D={};this.callback=null;this.Z=!1;this.G=[];this.initialize(q,!F)}; XDy=function(q,Z,F){var B=[];q=g.E(q);for(var f=q.next();!f.done;f=q.next())if(f=f.value,g.C(f,hB)){f=c5(g.C(f,hB),Z,F);if(f instanceof JB)return new K(f);B.push(f.XD)}return B}; Yf=function(q){return Array.from(q.D.keys())}; EbB=function(q){var Z=new g.wc(q.J,q.SZ);q.lL.publish("initialvideodatacreated",Z);return iu(q,1,Z,!1)}; g.mm=function(q,Z){q.style.display=Z?"":"none"}; DD=function(q){var Z="";if(q.UU)return q.UU;q.isLivePlayback&&(Z=q.allowLiveDvr?"dvr":q.isPremiere?"lp":q.zP?"window":"live");q.OZ&&(Z="post");return Z}; tq=function(q,Z){var F=0;q=g.E(q);for(var B=q.next();!(B.done||B.value.startTime>Z);B=q.next())F++;return F===0?F:F-1}; bKD=function(q){return q.j&&U_(q).size>0}; vDg=function(q){g.V2(q.j);q.j=NaN}; pH=function(){this.G=this.D=this.K=0;this.S=!1}; W7=function(q,Z,F){q.bQ>16-F?(q.yc|=Z<>16-q.bQ,q.bQ+=F-16):(q.yc|=Z<32?Math.min(B,f.video.width):B},Infinity); F32||B.video.width0)){n.An(5);break}f.g5=1E3*Math.pow(2,B-1)+Math.random()*1E3;return g.R(n,new Promise(function(b){return function(N){g.Aw(0,function(){N(void 0)},b.g5)}}(f)),5); case 5:return g.s4(n,7),g.R(n,ol(q,Z),9);case 9:return D=n.K,n.return(j5y(D));case 7:F=G=g.If(n),G instanceof Error&&g.bh(G);case 8:B++;f={g5:void 0};n.An(2);break;case 4:throw F;}})}; I$K=function(q){q=q.G;if(!q)return"";var Z=qL("uap",q.platform)+qL("uapv",q.platformVersion)+qL("uafv",q.uaFullVersion)+qL("uaa",q.architecture)+qL("uam",q.model)+qL("uab",q.bitness);q.fullVersionList&&(Z+="&uafvl="+encodeURIComponent(q.fullVersionList.map(function(F){return encodeURIComponent(F.brand)+";"+encodeURIComponent(F.version)}).join("|"))); q.wow64!=null&&(Z+="&uaw="+Number(q.wow64));return Z.slice(1)}; hkB=function(q,Z,F,B){B=B===void 0?1:B;F>=0&&(Z in q.D||(q.D[Z]=new uD),q.D[Z].Vk(F,B))}; C$K=function(){return{Y:"svg",L:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},T:[{Y:"path",L:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",fill:"#c00"}},{Y:"path",L:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ", fill:"#fff","fill-rule":"nonzero"}}]}}; dgK=function(q,Z,F){q.GY===void 0&&(q.GY=q.m6.GY(Z,F));return q.GY}; CWK=function(q,Z,F){Z&&(q.p9=Z);F&&(q.qn=F)}; hvX=function(q,Z){if(!q)return!1;var F,B=(F=g.C(q,DOy))==null?void 0:F.signal;if(B&&Z.Wh)return!!Z.Wh[B];var f;if((F=(f=g.C(q,GND))==null?void 0:f.request)&&Z.Ok)return!!Z.Ok[F];for(var D in q)if(Z.Bd[D])return!0;return!1}; Zw=function(){qu.apply(this,arguments)}; RvD=function(q,Z,F,B){var f=Ip(),D=(F=f||F&&hv())?["com.youtube.fairplay"]:["com.widevine.alpha"];Z&&D.unshift("com.youtube.widevine.l3");f&&B&&D.unshift("com.youtube.fairplay.sbdl");return F?D:q?[].concat(g.YB(D),g.YB(F6.playready)):[].concat(g.YB(F6.playready),g.YB(D))}; Q6=function(q,Z,F){for(;F>0||Z>127;)q.D.push(Z&127|128),Z=(Z>>>7|F<<25)>>>0,F>>>=7;q.D.push(Z)}; efK=function(q){g.Hh(q.D,function(Z){Z.D>1E5||++Z.D})}; ck9=function(q){q.updateValue("icon",lE());if(q.api.C().K)q.tooltip.fI(q.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{q.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");q.updateValue("tooltip-title","Se copi\u00f3 el v\u00ednculo en el portapapeles");q.tooltip.Q$();q.tooltip.fI(q.element);var Z=q.listen("mouseleave",function(){q.Op(Z);q.ys();q.tooltip.S7()})}}; Zi=function(q,Z){for(var F=0;FF.NP)){var W=g.Ce(q.C().experiments,"html5_drm_byterate_soft_cap");W>0&&V28(P)&&P.Ml>W||(U?(G.push(u),n_(u,G,q)):(P=bl(F,P,f),P===!0?(U=!0,G.push(u),n_(u,G,q)):b[u]=P))}}}S=g.E(S);for(N=S.next();!N.done;N=S.next())for(N=g.E(N.value),U=N.next();!U.done;U=N.next())if(U=U.value,(l=ev7(U))&&l.audio&&(q.U("html5_onesie_51_audio")||!xF(l)&&!AS(l)))if(l=bl(F,l,f),l===!0){n.push(U);n_(U,n,q);break}else b[U]=l;if(!q.U("html5_enable_audio_quality_setting"))for(q= g.E(["141","774"]),S=q.next();!S.done;S=q.next())S=S.value,n.includes(S)&&(g.NL(n,S),b[S]="blkhqa");F.K&&Z("orfmts",b);if(B)return f.K&&(f.K=!1,f_=Dw=void 0),D?f_={video:G,audio:n}:Dw={video:G,audio:n};Dw={video:G,audio:n};f.K=!1;return Dw}; CiZ=function(q,Z){if(q.endpoint==="log_event"){g.cz("more_accurate_gel_parser")&&Wg().storePayload({isJspb:!1},q.payload);c1(q);var F=J1(q),B=new Map;B.set(F,[q.payload]);var f=m_K(q.payload)||"";Z&&(YH=new Z);return new g.at(function(D,G){YH&&YH.isReady()?G6B(B,YH,D,G,{bypassNetworkless:!0},!0,t1(f)):D()})}}; ll=function(q,Z,F){this.D=void 0;this.experimentIds=q?q.split(","):[];this.flags=gK(Z||"","&");q={};Z=g.E(this.experimentIds);for(var B=Z.next();!B.done;B=Z.next())q[B.value]=!0;this.experiments=q;F=new Sw(F);this.S=new M2b(F);this.K=new oGK(F)}; yy=function(q,Z,F,B,f){f=f===void 0?!1:f;var D={startTime:(0,g.Le)(),ticks:{},infos:{}};if(Go)try{var G=UJy(Z);if(G!=null&&(G>DmG||G200&&(m="manifest.net.badstatus",P===400&&(X=2)),GZ.return(Promise.reject(new g.xX(m,a,X)));Z.loading=!1;g.On(Z,{raw_player_response:H},!0); c=H;g.H_(Z.C())&&c&&c.trackingParams&&ff(c.trackingParams);if(Z.errorCode)return e={ec:Z.errorCode,ed:Z.errorDetail,es:Z.r3||""},GZ.return(Promise.reject(new g.xX("auth",e,2)));if(!Z.loading&&!Qi(Z))return Y=Z.isAd()?"auth":"manifest.net.retryexhausted",Zg=Z.isAd()?2:1,GZ.return(Promise.reject(new g.xX(Y,{successButUnplayable:"1",hasMedia:g.x6(Z)?"1":"0"},Zg)));g.C7(GZ)}})}; Xe9=function(){function q(){f[0]=1732584193;f[1]=4023233417;f[2]=2562383102;f[3]=271733878;f[4]=3285377520;S=N=0} function Z(){var l=[],U=S*8;N<56?B(n,56-N):B(n,64-(N-56));for(var u=63;u>=56;u--)D[u]=U&255,U>>>=8;F(D);for(u=U=0;u<5;u++)for(var P=24;P>=0;P-=8)l[U++]=f[u]>>P&255;return l} function F(l){for(var U=G,u=0;u<64;u+=4)U[u/4]=l[u]<<24|l[u+1]<<16|l[u+2]<<8|l[u+3];for(u=16;u<80;u++)l=U[u-3]^U[u-8]^U[u-14]^U[u-16],U[u]=(l<<1|l>>>31)&4294967295;l=f[0];var P=f[1],W=f[2],H=f[3],X=f[4];for(u=0;u<80;u++){if(u<40)if(u<20){var Q=H^P&(W^H);var a=1518500249}else Q=P^W^H,a=1859775393;else u<60?(Q=P&W|H&(P|W),a=2400959708):(Q=P^W^H,a=3395469782);Q=((l<<5|l>>>27)&4294967295)+Q+X+a+U[u]&4294967295;X=H;H=W;W=(P<<30|P>>>2)&4294967295;P=l;l=Q}f[0]=f[0]+l&4294967295;f[1]=f[1]+P&4294967295;f[2]= f[2]+W&4294967295;f[3]=f[3]+H&4294967295;f[4]=f[4]+X&4294967295} function B(l,U){if(typeof l==="string"){l=unescape(encodeURIComponent(l));for(var u=[],P=0,W=l.length;P=f.K&&F50&&f.K.shift())),f=q.D,GEB(f,F,Z===void 0?!0:Z),dH9(f,F),Z&&UlG(q,!0));B!==q.j$&&(Z=q.getCurrentTime()-q.Jn<=500,F=q.Gb>=1E3,Z||F||(Z=q.Mp.Oy,Z.qoe&&(Z=Z.qoe,F=g.$w(Z.provider), g.zR(Z,F,"lh",[B?"1":"0"])),q.j$=B,q.Gb++,q.Jn=q.getCurrentTime()))}; bv9=function(q,Z){return q.enabledEngageTypes.has(Z.toString())||nGb.includes(Z)}; vr=function(q,Z,F,B){eq.call(this,q);this.G=Z;this.j=F;this.D="m";this.K="x";this.Z=0;TR(this,B)}; NqG=function(q,Z,F){var B=OM(Qt,Z);B||(B=F.opt_nativeTime||-1,B=xv(q,Z,OW(q),B),F.opt_osdId&&(B.o_=F.opt_osdId));return B}; Lc=function(q,Z,F,B,f,D){D=D===void 0?function(){}:D; km.call(this,q,{Y:"div",W:"ytp-ad-survey-question",T:[{Y:"div",rU:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{Y:"div",rU:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{Y:"div",rU:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{Y:"div",W:"ytp-ad-survey-question-background"}]},f,Z,F,B);this.k$=D;this.G=null;this.K=[];this.D=null;this.V=this.api.C().experiments.qp("a11y_h5_associate_survey_question");this.question=this.cG("ytp-ad-survey-question"); this.BG=this.cG("ytp-ad-survey-question-background");this.questionText=this.cG("ytp-ad-survey-question-text");this.answers=this.cG("ytp-ad-survey-answers");this.playerOverlay=this.cG("ytp-ad-survey-question-player-overlay");this.S=Date.now()}; mJZ=function(q){q.then(function(){},function(){})}; X6=function(q,Z){g.xl.call(this);this.zP=q;this.j=Z;this.Z=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.PG=new Headers;this.K=null;this.uL="GET";this.Dl="";this.D=!1;this.X=this.S=this.G=null;this.V=new AbortController}; gGX=function(q){return q.B.C().experiments.qp("html5_load_empty_player_in_media_break_sub_lra")}; En=function(q,Z,F,B,f,D,G,n,b,N,S,l,U){oP.call(this,D,q,Z,f);this.wU=F;this.G=G;this.V=n;this.Zl=b;this.tZ=N;this.GP=S;this.j=l;this.Z=U;this.La=Szk(Z,F)}; $6=function(q,Z,F,B,f){km.call(this,q,{Y:"div",W:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",Z,F,B,f===void 0?null:f);var D=this;this.D=null;this.S=new K_(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,["ytp-ad-instream-user-sentiment-like-button"]);g.y(this,this.S);this.S.R_(this.element);this.K=new K_(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,["ytp-ad-instream-user-sentiment-dislike-button"]);g.y(this,this.K);this.K.R_(this.element); this.G=new g.L3(this,400,!1,500,function(){return D.hide()}); g.y(this,this.G);this.hide()}; qL=function(q,Z){return Z?"&"+q+"="+encodeURIComponent(Z):""}; Qsb=function(){return{Y:"svg",L:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},T:[{Y:"path",L:{d:"M 12.75 4.5 L 9.75 4.5 C 9.15 4.5 8.58 4.73 8.15 5.15 C 7.73 5.58 7.5 6.15 7.5 6.75 L 7.5 29.25 C 7.5 29.84 7.73 30.41 8.15 30.84 C 8.58 31.26 9.15 31.5 9.75 31.5 L 12.75 31.5 C 13.34 31.5 13.91 31.26 14.34 30.84 C 14.76 30.41 15 29.84 15 29.25 L 15 6.75 C 15 6.15 14.76 5.58 14.34 5.15 C 13.91 4.73 13.34 4.5 12.75 4.5 Z M 26.25 4.5 L 23.25 4.5 C 22.65 4.5 22.08 4.73 21.65 5.15 C 21.23 5.58 21 6.15 21 6.75 V 29.25 C 21 29.84 21.23 30.41 21.65 30.84 C 22.08 31.26 22.65 31.5 23.25 31.5 L 26.25 31.5 C 26.84 31.5 27.41 31.26 27.84 30.84 C 28.26 30.41 28.5 29.84 28.5 29.25 V 6.75 L 28.5 6.75 C 28.5 6.15 28.26 5.58 27.84 5.15 C 27.41 4.73 26.84 4.5 26.25 4.5 Z", fill:"white"}}]}}; mn=function(){var q;return(q=al())==null?void 0:q.get("LAST_RESULT_ENTRY_KEY",!0)}; il=function(q,Z,F){Z&&(Z=q.Nr({playerType:F}))&&Z===q.Dv()&&(Z.getVideoData().zH=!0)}; lBX=function(q,Z,F){q.S=!1;throw Error("The stream is broken @"+q.K+". Error: "+F+". With input:\n"+Z);}; Jb=function(q,Z){g.nh("adsClientStateChange",Z)}; k6=function(q){if(q.D){var Z=q.D.getAttribute("data-tooltip-text");if(q.S&&q.D.getAttribute("aria-label")!==q.S)var F=q.S;var B=q.D.getAttribute("aria-keyshortcuts"),f=q.D.getAttribute("data-title-no-tooltip");B&&f&&(F=g.wz("$BUTTON_TITLE combinaci\u00f3n de teclas $SHORTCUT_KEY",{BUTTON_TITLE:f,SHORTCUT_KEY:B}));F&&q.D.setAttribute("aria-label",F);if(Z&&!q.X){UID(q,!0);var D=q.D;q.updateValue("text",Z);F=D.getAttribute("data-duration");q.update({title:q.S,duration:F});D=D.getAttribute("data-preview"); q.env.U("delhi_modern_web_player")?(q.updateValue("title",f),q.updateValue("keyBoardShortcutTitle",B.toUpperCase())):UID(q,!1);B=243*q.scale;f=141*q.scale;q.bg.style.width=B+"px";q.bg.style.height=f+"px";q.bg.style.backgroundImage=D?"url("+D+")":"";q.bg.style.backgroundSize=B+"px "+f+"px";q.wrapper.style.width=B+"px";g.jP(q.element,["ytp-text-detail","ytp-preview"]);g.hK(q.element,"ytp-has-duration",!!F)}else f&&B&&q.env.U("delhi_modern_web_player")?(q.updateValue("text",f),q.updateValue("keyBoardShortcut", B.toUpperCase())):q.updateValue("text",q.S),g.el(q.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);F=q.D;F.hasAttribute("data-tooltip-offset-y")?(F=Number(F.getAttribute("data-tooltip-offset-y")),F=isNaN(F)?0:F):F=0;uUy(q,!!Z,void 0,F)}}; Iu=function(q,Z){q.api.getPresentingPlayerType()!==1?q.vG.style.removeProperty("clip-path"):(Z||(Z=BB(q,q.Dl,cp(q))),q.vG.style.clipPath='path("'+(q.yd?yV7(q,8,Z,q.Z?50:36,0,6):yV7(q,4,Z,q.Z?34:24,2,3))+'")')}; sJD=function(q,Z,F,B,f,D,G,n){var b=IB(q.XE.get(),1);if(ply(q.GP.get())){var N=fo(q.K.get(),F,B,f,b.clientPlaybackNonce,b.x6,b.daiEnabled,b,D,G);P96(q,N);Yq(q.D.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return N},Z)}else Yq(q.D.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return fo(q.K.get(),F,B,f,b.clientPlaybackNonce,b.x6,b.daiEnabled,b,D,G,n)},Z)}; qYb=function(q,Z,F){var B;return g.h(function(f){switch(f.D){case 1:var D=q.D;var G=hV();D=G?new sn(D.K,G):void 0;B=D;if(!B){f.An(2);break}g.s4(f,3);return g.R(f,B.encrypt(Z,F),5);case 5:return f.return(f.K);case 3:g.If(f);case 2:return f.return(jw(q,Z,F))}})}; Il=function(){this.Z=this.S=null;this.K=this.D=0;this.G=[];this.j=!1}; wMb=function(q,Z,F,B){B=B===void 0?!0:B;if(F&&!q.k$.has(Z.Uc)){for(var f=Z.startTime,D=[],G=0;G=n,b=q.Np.isManifestless,G){var N;if(((N=q.D)==null?void 0:N.SC.event)==="predictStart"&&q.D.Ucq.Y$&&ADG(q)}; ZvD=function(){var q=q===void 0?vG6():q;return q.map(function(Z){return d4(Z)})}; Jt=function(q,Z){q=sR(q);var F={};if(Z){Z=g.E(Z.split(","));for(var B=Z.next();!B.done;B=Z.next())(B=B.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(F[B[1]]={width:B[2],height:B[3]})}Z=g.E(q);for(B=Z.next();!B.done;B=Z.next()){B=B.value;var f=F[B.itag];f&&(B.width=f.width,B.height=f.height)}return q}; RH=function(q,Z){return nd(q.segments,function(F){return Z-F.Uc})}; g.mD=function(q,Z,F){F=q.PG.splice(F||0)[0];(F=q.S=q.S||F)?F.Ug?q.D=q.j||q.Z:F.An!=void 0&&q.Z0;return q.yq.length>0||Z}return!(q==null||!q.Oe)&&!(q==null||!q.eB.totalLength)}; n_=function(q,Z,F){var B=XMK[q]||[];F.U("html5_shorts_onesie_mismatched_fix")&&(B=EGG[q]||[]);Z.push.apply(Z,g.YB(B));F.U("html5_early_media_for_drm")&&Z.push.apply(Z,g.YB(KCg[q]||[]))}; $Ik=function(q){q.menuItem||(q.menuItem=new mP(q.api),g.y(q,q.menuItem),q.menuItem.ys(q.D))}; ivg=function(q,Z){oy(q.ME)&&(q.uL=Z.reason==="m"||Z.reason==="l"?!0:!1);Z.reason==="m"?Z.isLocked()&&aBb(q,Z.D):mIZ(q,Z)?tt(q,Z.K,Z.D):q.videoInfos=q.j;q.K=Z}; g.kEK=function(q){if(q.videoData&&q.videoData.Z3){for(var Z=[q.videoData.Z3],F=g.E(Object.keys(q.D)),B=F.next();!B.done;B=F.next())B=B.value,q.GQ[B]&&q.D[B]&&(B=q.D[B](q.GQ))&&Z.push(B);return Z.join("&")}return null}; g.cz=function(q){q=Al(q);return typeof q==="string"&&q==="false"?!1:!!q}; PyG=function(q){var Z={},F=q.experiments,B=F.aH();F=F.A1();var f=B.D.Q5(srB);p_(f)&&Number(f)>0&&(Z.SetPreferMinimalPostProcessing=Q7("SetPreferMinimalPostProcessing",Number(f)===1?1:0));if(F.D.Q5(jrB))(q=B.D.Q5(IBy))&&(Z["MediaSource.EnableUsingMediaSourceBufferedRange"]=Q7("MediaSource.EnableUsingMediaSourceBufferedRange",q===1?1:0)),(q=B.D.Q5(C98))&&(Z.HTTP3=Q7("HTTP3",q===1?1:0)),(q=B.D.Q5(hBb))&&(Z["MediaSource.EnableUsingMediaSourceAttachmentMethods"]=Q7("MediaSource.EnableUsingMediaSourceAttachmentMethods", q===1?1:0)),(q=B.D.Q5(RBZ))&&(Z.QUIC=Q7("QUIC",q===1?1:0)),(q=B.D.Q5(cDK))&&(Z["Media.PlayerConfiguration.DecodeToTexturePreferred"]=Q7("Media.PlayerConfiguration.DecodeToTexturePreferred",q===1?1:0)),(q=B.D.Q5(JD6))&&(Z["Media.AudioWriteDurationLocal"]=Q7("Media.AudioWriteDurationLocal",Number(q)));else for(B=Object.keys(q.experiments.flags),B=g.E(B),F=B.next();!F.done;F=B.next())F=F.value,F.startsWith("cobalt_h5vcc")&&(F.startsWith("cobalt_h5vcc_string")?(f=TtK(F,"cobalt_h5vcc_string"),F=LX(q.experiments, F),f&&F&&(Z[f]=Q7(f,F))):F.startsWith("cobalt_h5vcc")&&(f=TtK(F,"cobalt_h5vcc"),F=g.Ce(q.experiments,F),f&&F&&(Z[f]=Q7(f,F))));return Z}; dK=function(q,Z){return(q=q.D.get(Z))?q:new Map}; wR=function(q){g.Wv(q.info.D.info)||q.info.D.info.cL();if(q.D&&q.info.type===6)return q.D.iI;if(g.Wv(q.info.D.info)){var Z=g.Xd(q);var F=0;Z=g.Vi(Z,1936286840);Z=g.E(Z);for(var B=Z.next();!B.done;B=Z.next())B=Yzy(B.value),F+=B.iG[0]/B.timescale;F=F||NaN;if(!(F>=0))a:{F=g.Xd(q);Z=q.info.D.D;for(var f=B=0,D=0;on(F,B);){var G=qg(F,B);if(G.type===1836476516)f=g.dC(G);else if(G.type===1836019558){!f&&Z&&(f=Vq(Z));if(!f){F=NaN;break a}var n=ZA(G.data,G.dataOffset,1953653094),b=n;n=f;var N=ZA(b.data,b.dataOffset, 1952868452);b=ZA(b.data,b.dataOffset,1953658222);var S=Uk(N);Uk(N);S&2&&Uk(N);N=S&8?Uk(N):0;var l=Uk(b),U=l&1;S=l&4;var u=l&256,P=l&512,W=l&1024;l&=2048;var H=UQ(b);U&&Uk(b);S&&Uk(b);for(var X=U=0;X=480;return B}; pM8=function(q){S7(q,"impression")&&!S7(q,"seek")&&q.PH("audio_measurable")}; dI8=function(q,Z){q.Rx.D===2&&Z!==q.rA()&&Yp("onClipEntered: unknown cpn",q.slot,q.layout,{cpn:Z})}; gK=function(q,Z){Z=q.split(Z);for(var F={},B=0,f=Z.length;B0&&!(o19()>(0,g.Le)()-q*1E3))return 0;q=g.sY("yt-player-quality");if(typeof q==="string"){if(q=g.MN[q],q>0)return q}else if(q instanceof Object)return q.quality;return 0}; Bn=function(q,Z,F){if(F&&!F.includes(q.layoutType))return!1;Z=g.E(Z);for(F=Z.next();!F.done;F=Z.next())if(!Kh(q.clientMetadata,F.value))return!1;return!0}; un6=function(q){if(q.Cx&&typeof q.Cx=="function")return q.Cx();if(!q.pQ||typeof q.pQ!="function"){if(typeof Map!=="undefined"&&q instanceof Map)return Array.from(q.keys());if(!(typeof Set!=="undefined"&&q instanceof Set)){if(g.J_(q)||typeof q==="string"){var Z=[];q=q.length;for(var F=0;FZ?1:q=315):!q.J8():!1}; fYD=function(){var q=["pbs","pbu"];g.jJ(function(){dH("").info.actionType="watch";q&&eJ("TIMING_AFT_KEYS",q);eJ("TIMING_ACTION","watch");var Z=a$y(g.oa("TIMING_INFO",{}));Object.keys(Z).length>0&&Ra(Z);Z={isNavigation:!0,actionType:Mr(g.oa("TIMING_ACTION"))};var F=g.oa("PREVIOUS_ACTION");F&&(Z.previousAction=Mr(F));if(F=g.oa("CLIENT_PROTOCOL"))Z.httpProtocol=F;if(F=g.oa("CLIENT_TRANSPORT"))Z.transportProtocol=F;(F=g.qx())&&F!=="UNDEFINED_CSN"&&(Z.clientScreenNonce=F);F=mig();if(F===1||F===-1)Z.isVisible= !0;F=Cd().loadType==="cold";var B=ZsX();F||(F=B.yt_lt==="cold");if(F){Z.loadType="cold";F=ZsX();B=Xhb();var f=b3(),D=g.oa("CSI_START_TIMESTAMP_MILLIS",0);D>0&&!g.cz("embeds_web_enable_csi_start_override_killswitch")&&(f=D);f&&(oZ("srt",B.responseStart),F.prerender!==1&&Ty(f));F=CuK();F>0&&oZ("fpt",F);F=Xhb();F.isPerformanceNavigationTiming&&Ra({performanceNavigationTiming:!0},void 0);oZ("nreqs",F.requestStart,void 0);oZ("nress",F.responseStart,void 0);oZ("nrese",F.responseEnd,void 0);F.redirectEnd- F.redirectStart>0&&(oZ("nrs",F.redirectStart,void 0),oZ("nre",F.redirectEnd,void 0));F.domainLookupEnd-F.domainLookupStart>0&&(oZ("ndnss",F.domainLookupStart,void 0),oZ("ndnse",F.domainLookupEnd,void 0));F.connectEnd-F.connectStart>0&&(oZ("ntcps",F.connectStart,void 0),oZ("ntcpe",F.connectEnd,void 0));F.secureConnectionStart>=b3()&&F.connectEnd-F.secureConnectionStart>0&&(oZ("nstcps",F.secureConnectionStart,void 0),oZ("ntcpe",F.connectEnd,void 0));tp&&"getEntriesByType"in tp&&FU9();F=[];if(document.querySelector&& tp&&tp.getEntriesByName)for(var G in ND)ND.hasOwnProperty(G)&&(B=ND[G],Beb(G,B)&&F.push(B));if(F.length>0)for(Z.resourceInfo=[],G=g.E(F),F=G.next();!F.done;F=G.next())Z.resourceInfo.push({resourceCache:F.value})}Ra(Z);Z=pZ();Z.preLoggedGelInfos||(Z.preLoggedGelInfos=[]);G=Z.preLoggedGelInfos;Z=S3g();F=void 0;for(B=0;B0&&q.api.getPlayerSize().width<=F;q=q.api.getRootNode();q.classList.toggle("ytp-delhi-modern-compact-controls",Z);F=Z?"8px":"12px";var B=Z?"56px":"72px",f=Z?"56px":"64px",D=Z?"48px":"56px",G=Z?"12px":"20px",n=Z?"72px":"96px";q.style.setProperty("--yt-delhi-pill-height",Z?"40px":"48px");q.style.setProperty("--yt-delhi-pill-top-height", F);q.style.setProperty("--yt-delhi-bottom-controls-height",B);q.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",f);q.style.setProperty("--yt-delhi-big-mode-pill-height",D);q.style.setProperty("--yt-delhi-big-mode-pill-top-height",G);q.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",n)}; g1g=function(q,Z){var F=q.lL.getAvailablePlaybackRates();Z=Number(Z.toFixed(2));q=F[0];F=F[F.length-1];Z<=q?Z=q:Z>=F?Z=F:(q=Math.floor(Z*100+.001)%5,Z=q===0?Z:Math.floor((Z-q*.01)*100+.001)/100);return Z}; SsD=function(q,Z){q.array=q.array.filter(function(F){return!Z.has(F)})}; g.h4=function(q,Z,F,B){B=B===void 0?{}:B;if(!q||!q.addEventListener&&!q.attachEvent)return"";var f=xRb(q,Z,F,B);if(f)return f;f=++lYD.count+"";var D=!(Z!="mouseenter"&&Z!="mouseleave"||!q.addEventListener||"onmouseenter"in document);var G=D?function(n){n=new r3(n);if(!SF(n.relatedTarget,function(b){return b==q},!0))return n.currentTarget=q,n.type=Z,F.call(q,n)}:function(n){n=new r3(n); n.currentTarget=q;return F.call(q,n)}; G=g.jJ(G);q.addEventListener?(Z=="mouseenter"&&D?Z="mouseover":Z=="mouseleave"&&D?Z="mouseout":Z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Z="MozMousePixelScroll"),Xu9()||typeof B==="boolean"?q.addEventListener(Z,G,B):q.addEventListener(Z,G,!!B.capture)):q.attachEvent("on"+Z,G);VN[f]=[q,Z,F,G,B];return f}; uEK=function(q,Z){if(Z.authorizedFormats)for(var F=0;F0?{Y:"svg",L:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},T:[{Y:"path",rU:["ytp-circle-arrow","ytp-svg-fill"],L:{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"}}, {Y:"text",rU:["ytp-jump-button-text","ytp-svg-fill"],L:{x:"7.05",y:"15.05"}}]}:{Y:"svg",L:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},T:[{Y:"path",rU:["ytp-circle-arrow","ytp-svg-fill"],L:{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"}}, {Y:"text",rU:["ytp-jump-button-text","ytp-svg-fill"],L:{x:"6.5",y:"15"}}]}]});var F=this;this.B=q;this.D=Z;this.K=new g.im(function(){F.S?(F.S=!1,F.K.start()):F.element.classList.remove("ytp-jump-spin","backwards")},250); this.S=!1;(Z=Z>0)?this.B.createClientVe(this.element,this,36843):this.B.createClientVe(this.element,this,36844);var B=g.wz(Z?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.D).toString()});this.B.U("player_tooltip_data_title_killswitch")?this.update({title:B,"data-title-no-tooltip":B,"aria-keyshortcuts":Z?"\u2192":"\u2190"}):this.update({"tooltip-title":B,"data-title-no-tooltip":B,"aria-keyshortcuts":Z?"\u2192":"\u2190"});this.G=this.element.querySelector(".ytp-jump-button-text"); this.G.textContent=Math.abs(this.D).toString();this.listen("click",this.onClick,this);b8(q,this.element,this)}; QYk=function(){var q=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];YP().forEach(function(Z){q.push(Z)}); return{m0:q,FN:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; xj9=function(q){if(q=q.Q5("html5_web_po_experiment_ids"))if(q=q.replace(/\[ *(.*?) *\]/,"$1"))return q.split(",").map(Number);return[]}; j5y=function(q){if(!q)throw Error("Fetching Attestation challenge returned falsy");if(!q.challenge)throw Error("Missing Attestation challenge");var Z=q.challenge,F=L8(Z);if("c1a"in F&&(!q.bgChallenge||!q.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},q,{pLs:Z,R0p:F})}; ATD=function(q){return an(q)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; v1b=function(q){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(q)}; GK=function(q,Z){return dK(q,Z.slotType+"_"+Z.slotPhysicalPosition).get(Z.slotId)}; g.iJ=function(q,Z){Yu||$TZ();X2X||(Yu(),X2X=!0);E19.add(q,Z)}; $jD=function(q,Z,F,B,f,D,G,n,b,N){Z=KUG(q,Z,F,B,D,new Map,G,function(S){return n(S,b)},void 0,Hn(q,F,f.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); q=new dm(q.D,Z.hI);F=new is(Z.hI);N=new et(N);return{dR:{layoutId:Z.layoutId,layoutType:Z.layoutType,ud:Z.ud,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:Z.bL,clientMetadata:new zX([].concat(g.YB(Z.WR),[F,N])),Xe:Z.Xe,adLayoutLoggingData:Z.adLayoutLoggingData},zQ:Z.layoutExitSkipTriggers,Ze:Z.layoutExitMuteTriggers,fF:[].concat(g.YB(Z.layoutExitUserInputSubmittedTriggers),[q]),N2:Z.layoutExitUserCancelledTriggers, xa:Z.xa}}; QFK=function(q,Z,F){var B=[],f=[];if((Array.isArray(F)?2:1)==1)return f=[Z,q],g.yn(B,function(n){f.push(n)}),ES9(f.join(" ")); var D=[],G=[];g.yn(F,function(n){G.push(n.key);D.push(n.value)}); F=Math.floor((new Date).getTime()/1E3);f=D.length==0?[F,Z,q]:[D.join(":"),F,Z,q];g.yn(B,function(n){f.push(n)}); q=ES9(f.join(" "));q=[F,q];G.length==0||q.push(G.join(""));return q.join("_")}; u6=function(q){return{toString:function(){return q()}}}; B3=function(q){var Z=q.hours||0;var F=q.minutes||0,B=q.seconds||0;Z=B+F*60+Z*3600+(q.days||0)*86400+(q.weeks||0)*604800+(q.months||0)*2629800+(q.years||0)*31557600;Z<=0?Z={hours:0,minutes:0,seconds:0}:(q=Z,Z=Math.floor(q/3600),q%=3600,F=Math.floor(q/60),B=Math.floor(q%60),Z={hours:Z,minutes:F,seconds:B});var f=Z.hours===void 0?0:Z.hours;F=Z.minutes===void 0?0:Z.minutes;q=Z.seconds===void 0?0:Z.seconds;B=f>0;Z=[];if(B){f=(new Intl.NumberFormat("en-u-nu-latn")).format(f);var D=["fr"],G="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(" "); f="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(Op)?f.replace(",","\u00a0"):D.includes(Op)?f.replace(",","\u202f"):G.includes(Op)?f.replace(",","."):f;Z.push(f)}B=B===void 0?!1:B;F=(["af","be","lt"].includes(Op)||B)&&F<10?aY8().format(F):(new Intl.NumberFormat("en-u-nu-latn")).format(F);Z.push(F);F=aY8().format(q);Z.push(F);F=":";"da fi id si sr sr-Latn".split(" ").includes(Op)&&(F=".");return Z.join(F)}; vM=function(q){this.value=q}; Qe=function(q,Z,F,B,f,D,G,n,b,N){kl.call(this,q,Z,F,B,f,D,G,b);this.nk=n;this.XE=N}; isD=function(q){ZL(q,"od",mj7);ZL(q,"opac",XA).D=!0;ZL(q,"sbeos",XA).D=!0;ZL(q,"prf",XA).D=!0;ZL(q,"mwt",XA).D=!0;ZL(q,"iogeo",XA)}; kK8=function(q,Z){this.S=q;this.G=Z;this.K=0;this.D=null}; DB=function(){V0.call(this,"Biscotti ID is missing from server")}; g.sY6=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,L:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z", fill:"#fff"}}]}}; p6=function(q,Z,F,B){var f=this;this.X=q;this.Np=Z;this.policy=F;this.logger=B;this.O$=[];this.z0=[];this.D=-1;this.g2=null;this.j=this.timestampOffset=0;this.K=10;this.Z=new Set;this.JZ={HM:function(D){return f.HM(D)}}; this.G=Z.d2?0:1;F.C8>0&&(this.K=F.C8)}; g.CF=function(){for(var q=Number(this),Z=[],F=q;F=q.provider.videoData.KB;return!!Z}; g.Xs=function(q){var Z=g.vn(q);cTB.includes(Z)&&(Z="www.youtube.com");return q.protocol+"://"+Z}; p29=function(q,Z){if(JT8(q)){Z=Ysk(q,Z);q.D.push(Z);var F;(F=q.WG)==null||trG(F,q.Np.PG);q.PG>0&&q.dU.bJ++}}; Mry=function(q){var Z=q.api.C(),F=Obg(Z);F=djX(F);var B=F.A5.bind(F);F.A5=function(n){var b;return g.h(function(N){if(N.D==1)return g.R(N,B(n),2);b=N.K;q.api.iL("itr",{});return N.return(b)})}; try{var f=nzZ({bD:F,EG:{maxAttempts:5},JR:{GU:"CLEn",disable:Z.experiments.qp("html5_web_po_disable_remote_logging"),G$:xj9(Z.experiments),iP:function(n){var b=Vrb.get(n);b||(b=new q7Z(n),b=new g.Kb(b),Vrb.set(n,b));return b}, CLp:q.U("wpo_dis_lfdms")?0:1E3},IvE:g.bh});var D=new ey9({DE:f,bD:F,onError:g.bh});TeZ(D.kN()).then(function(){q.D=!0;q.Z.resolve()}); q.U("html5_web_po_token_disable_caching")||D.h9(150);g.y(q,f);g.y(q,D);q.K=D}catch(n){g.bh(n);var G;(G=f)==null||G.dispose()}}; ftD=function(q,Z,F,B){B=B===void 0?0:B;if(q.G){var f=q.G.K+q.G.S;if(F.info.K>0)if(F.info.Uc===q.G.Uc&&F.info.K=0&&q.G.Uc>=0&&!z$(q.G,F.info))throw new g.M2("improper_continuation",q.G.wq(),F.info.wq());qVD(q.G,F.info)||GP(q,"d")}else if(F.info.K>0)throw new g.M2("continuation_of_null",F.info.wq());q.G=F.info;q.Z=F.info.D;if(F.info.K===0){if(q.D)if(!q.loader.isOffline()||q.policy.zY)q.loader.iL("slice_not_fully_processed", {buffered:q.D.info.wq(),push:F.info.wq()});else throw new g.M2("slice_not_fully_processed",q.D.info.wq(),F.info.wq());Ep(q);q.BG=B}else{if(q.BG&&B&&q.BG!==B)throw q=new g.M2("lmt_mismatch",F.info.Uc,q.BG,B),q.level="WARNING",q;!F.info.D.j7()&&q.j&&(B=F.info,f=q.j.HY,B.X="updateWithEmsg",B.Uc=f)}if(q.D){B=g.K8(q.D,F);if(!B)throw new g.M2("failed_to_merge",q.D.info.wq(),F.info.wq());q.D=B}else q.D=F;a:{F=g.Wv(q.D.info.D.info);if(q.D.info.type!==3){if(!q.D.info.G)break a;q.D.info.type===6?VGD(q,Z,q.D): B5b(q,q.D);q.D=null}for(;q.D;){B=q.D.K.totalLength;if(q.zP<=0&&q.PG===0){var D=q.D.K,G=-1;f=-1;if(F){for(var n=0;n+80))break;if(l!==408125543)if(l===524531317)n=!0,S>=0&&(f=D.kE()+S,b=!0);else{if(n&&(l===160||l===163)&&(G<0&&(G=N),b))break;l===163&&(G=Math.max(0,G),f=D.kE()+S);if(l===160){G<0&&(f=G=D.kE()+ S);break}D.skip(S)}}G<0&&(f=-1)}if(G<0)break;q.zP=G;q.PG=f-G}if(q.zP>B)break;q.zP?(B=F86(q,q.zP),B.Z&&qw7(q,B),VGD(q,Z,B),BLD(q,B),q.zP=0):q.PG&&(B=F86(q,q.PG<0?Infinity:q.PG),q.PG-=B.K.totalLength,BLD(q,B))}}q.D&&q.D.info.G&&(BLD(q,q.D),q.D=null)}; btb=function(q,Z,F,B,f,D,G,n,b,N,S,l){var U=c5(B,F,N);return U instanceof JB?new K(U):N.B.C().experiments.qp("html5_refactor_in_player_slot_generation")?function(u){var P=new Yt(0,[U.XD]);u=D4K(Z,U.layoutId,U.A3,F,pm(U.playerVars,U.Wb,D,b,P),U.XD,f,P,G(u),n.get(U.A3.externalVideoId),l);P=[];if(U.A3.playerOverlay.instreamAdPlayerOverlayRenderer){var W=G_X(u);if(!W)return Yp("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,u),{layout:u,Xo:[]}; P=[zMB(q,W.contentCpn,W.v5,function(X){return go(Z,X.slotId,"core",W,Ou(S,X))},W.inPlayerSlotId)].concat(g.YB(P)); if(W.instreamAdPlayerUnderlayRenderer&&Mm(N)){var H=W.instreamAdPlayerUnderlayRenderer;P=[oWB(q,W.contentCpn,W.v5,function(X){return nMK(Z,X.slotId,H,W.adPlacementConfig,W.v5,Ou(S,X))})].concat(g.YB(P))}}return{layout:u, Xo:P}}:function(u){var P=new Yt(0,[U.XD]); return{layout:D4K(Z,U.layoutId,U.A3,F,pm(U.playerVars,U.Wb,D,b,P),U.XD,f,P,G(u),n.get(U.A3.externalVideoId),l),Xo:[]}}}; gM8=function(q){return cy(q.slot,q.GP.get())?new vw(q):new NL7(q)}; SVg=function(q,Z,F){q=q.map(function(b){return BW(g.C(b.renderingContent,hB),!1)}); var B=q.map(function(b){return b.videoLengthSeconds}),f=B.map(function(b,N){return new Yt(N,B)}),D=Z,G=F,n=[]; q.forEach(function(b,N){G=Math.min(D+b.videoLengthSeconds*1E3,F);Bu(b.playerVars,f[N]);n.push({CA:b,HD:D,cQ:G,ag:N,WK:f[N]});D=G}); return n}; i2=function(q,Z,F,B,f){var D=g.ym("yt.logging.errors.log");D?D(q,"WARNING",Z,F,B,void 0,f):(D=g.oa("ERRORS",[]),D.push([q,"WARNING",Z,F,B,void 0,f]),eJ("ERRORS",D))}; IiZ=function(q,Z,F,B,f){var D=!Z.hideCueRangeMarker;switch(Z.kind){case "AD_PLACEMENT_KIND_START":return new Ka(q.D,F);case "AD_PLACEMENT_KIND_MILLISECONDS":return q=LbK(Z,B),q instanceof K?q:f(q.JS,D);case "AD_PLACEMENT_KIND_END":return new e1(q.D,F,D);default:return new K("Cannot construct entry trigger",{kind:Z.kind})}}; ZP9=function(q,Z,F){function B(){Z(q.result);D()} function f(){F(q.error);D()} function D(){try{q.removeEventListener("success",B),q.removeEventListener("error",f)}catch(G){}} q.addEventListener("success",B);q.addEventListener("error",f)}; Pj6=function(q,Z,F,B){B.info.D.wR();var f=B.info.D.D;if(!f||!F.j_()||F.Vt()===f)return!1;var D=f,G=F.t_();if(q.policy.ll&&G&&F.isView()&&g.Wv(B.info.D.info)){var n=new DataView(f.buffer,f.byteOffset,f.byteLength);(G=ltZ(n,G))?D=new Uint8Array(G.buffer,G.byteOffset,G.byteLength):q.iL("fenc",{})}q.policy.eK&&(G=R3Z(q,B,new bN([D])))&&(D=NN(G));var b;(G=B.info.D.IJ(0,B.info.clipId))&&(b=G.TP[0]);if(B===q.G0){if(q.dU+=1,q.Mp.getVideoData().U("html5_shorts_gapless_restart_on_init_seg_retries")&&q.dU>5)return q.dU= 0,q.Mp.Mb({initSegStuck:1,as:B.info.wq()}),!0}else q.dU=0,q.G0=B;q.policy.gH&&(F.abort(),(G=Z.PG)!=null&&(nZ(G,4),G.flush()));f=t_D(q,F,D,b,f);(Z=Z.PG)!=null&&(Z.flush(),Z.K=b,nZ(Z,3,f));if(f!==0)return q.policy.UU&&NM(q.Mp.getVideoData())?(q.Mp.IE()||U48(q,"sepInit",f,B.info),uJX(q.Mp,"sie")):U48(q,"sepInit",f,B.info),!0;B.info.jB()?(b=q.timing,b.dU||(b.dU=(0,g.Le)(),g.XY("vis_a",b.dU,b.D))):(b=q.timing,b.X||(b.X=(0,g.Le)(),g.XY("ais_a",b.X,b.D)));(B=B.info.D.Q3)&&q.Mp.x_(new JM(B.key,B.type));return F.Xr()}; PR=function(q){this.K=q}; R2K=function(q,Z){var F={slotId:nK(Z,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],bL:"surface",clientMetadata:new zX([])},B=Object,f=B.assign;Z=Bs(Z,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",F.slotId);Z={layoutId:Z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",ud:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], bL:"surface",clientMetadata:new zX([]),Xe:rHK(!1,F.slotId,F.slotType,F.slotPhysicalPosition,F.bL,F.slotEntryTrigger,F.slotFulfillmentTriggers,F.slotExpirationTriggers,Z,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return f.call(B,{},q,{PLU:!0,slot:F,layout:Z})}; wtZ=function(q){g.w.call(this,{Y:"div",W:"ytp-gated-actions-overlay",T:[{Y:"div",W:"ytp-gated-actions-overlay-background",T:[{Y:"div",W:"ytp-gated-actions-overlay-background-overlay"}]},{Y:"button",rU:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],L:{"aria-label":"Cerrar"},T:[g.t$()]},{Y:"div",W:"ytp-gated-actions-overlay-bar",T:[{Y:"div",W:"ytp-gated-actions-overlay-text-container",T:[{Y:"div",W:"ytp-gated-actions-overlay-title",Ka:"{{title}}"},{Y:"div",W:"ytp-gated-actions-overlay-subtitle", Ka:"{{subtitle}}"}]},{Y:"div",W:"ytp-gated-actions-overlay-button-container"}]}]});var Z=this;this.api=q;this.background=this.cG("ytp-gated-actions-overlay-background");this.K=this.cG("ytp-gated-actions-overlay-button-container");this.D=[];this.N(this.cG("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){Z.api.a_("onCloseMiniplayer")}); this.hide()}; kQ=function(q,Z,F){F=F===void 0?0:F;var B=q.mimeType||"",f=q.itag;var D=q.xtags;f=f?f.toString():"";D&&(f+=";"+D);D=f;if(Is(B)){var G=q.width||640;f=q.height||360;var n=q.fps,b=q.qualityLabel,N=q.qualityOrdinal,S=q.colorInfo,l=q.projectionType,U;q.stereoLayout&&(U=W8X[q.stereoLayout]);var u=yHX(q)||void 0;if(S==null?0:S.primaries)var P=L8B[S.primaries]||void 0;G=new C1(G,f,n,l,U,void 0,b,N&&Ht6[N],u,P);B=hE(B,G,Rs[q.itag||""]);cc&&(B+="; enableflushduringseek=true");JE&&(B+="; enableresetaudiodecoder=true")}var W; if(Yd(B)){var H=q.audioSampleRate;U=q.audioTrack;H=new tE(H?+H:void 0,q.audioChannels,q.spatialAudioType,q.isDrc,q.loudnessDb,q.trackAbsoluteLoudnessLkfs,q.audioQuality||"AUDIO_QUALITY_UNKNOWN",q.isVb);U&&(P=U.displayName,f=U.id,U=U.audioIsDefault,P&&(W=new g.w4(P,f||"",!!U)))}var X;q.captionTrack&&(b=q.captionTrack,U=b.displayName,P=b.vssId,f=b.languageCode,n=b.kind,b=b.id,U&&P&&f&&(X=new Wk7(U,P,f,n,q.xtags,b)));U=Number(q.bitrate)/8;P=Number(q.contentLength);f=Number(q.lastModified);b=q.drmFamilies; n=q.type;F=F&&P?P/F:0;q=Number(q.approxDurationMs);if(Z&&b){var Q={};b=g.E(b);for(N=b.next();!N.done;N=b.next())(N=Oty[N.value])&&(Q[N]=Z[N])}return new p1(D,B,{audio:H,video:G,fB:W,Ni:Q,Ml:U,Rp:F,contentLength:P,lastModified:f,captionTrack:X,streamType:n,approxDurationMs:q})}; Na=function(q){return q.indexOf("/mp4")>=0?1:q.indexOf("/webm")>=0?2:q.indexOf("/x-flv")>=0?3:q.indexOf("/vtt")>=0?4:0}; qKK=function(q,Z){q.hZ(Z.width>=350)}; N5G=function(q,Z){if(Z.video&&Z.video.length){q.title=Z.title||"";q.description=Z.description;q.views=Z.views;q.likes=Z.likes;q.dislikes=Z.dislikes;q.author=Z.author||"";var F=Z.loop;F&&(q.loop=F);F=g.uw(q);q.items=[];for(var B=g.E(Z.video),f=B.next();!f.done;f=B.next())if(f=f.value)f.video_id=f.encrypted_id,q.items.push(f);q.length=q.items.length;(Z=Z.index)?q.index=Z:q.findIndex(F);q.setShuffle(!1);q.loaded=!0;q.K++;q.D&&q.D()}}; iE=function(q,Z,F){g.jJ(function(){if(!I$(F)||dP(q,F))return!1;n4(q,Z,F);return!0})()}; QRk=function(q,Z){if(q=q.flags.get(""+Z))if(q=q.replace(/\[ *(.*?) *\]/,"$1"))return q.split(",").map(Number);return[]}; IB=function(q,Z){var F=q.B.getVideoData(Z);return F?q.pA(F,Z||q.B.getPresentingPlayerType(!0)):null}; Xt6=function(q,Z,F,B){B=B===void 0?{}:B;q.K.add(B.layer||0);q.G=function(){x49(q,Z,F,B);var G=g.q4(B.layer);if(G){for(var n=g.E(q.X),b=n.next();!b.done;b=n.next())b=b.value,Zt(q,b[0],b[1]||G,B.layer);G=g.E(q.V);for(n=G.next();!n.done;n=G.next())n=n.value,AHb(q,n[0],n[1])}}; F||g.qx(B.layer)||q.G();if(B.jD)for(var f=g.E(B.jD),D=f.next();!D.done;D=f.next())vMb(q,D.value,B.layer);else g.mM(Error("Delayed screen needs a data promise."))}; bcb=function(q,Z,F){Z==2?q.S.call(q.context,F):q.K&&q.K.call(q.context,F)}; $8=function(){g.In.call(this);this.items={}}; $4y=function(q,Z,F){if(q.policy.o_&&ng(Z))return!1;if(F.xj())return!0;if(!F.j_())return!1;var B=oM(Z);if(!B||B.info.type===6)return!1;var f;if(q.policy.uD||((f=q.S)==null?0:EMk(f,Z,B.info.Uc)))q.HG=0;else return q.W1.isSeeking()&&aF(q),q.HG=q.HG||(0,g.Le)(),!1;if(!aV(q,Z,F,B.info))return!1;if(q.Np.K&&B.info.K===0){if(F.Vt()==null){f=TJ(Z);var D;if(!(D=!f||f.D!==B.info.D)){b:if(f=f.PG,D=B.info.PG,f.length!==D.length)f=!1;else{for(var G=0;GD)return q.policy.D&&(Z===q.videoTrack?q.o_=q.o_||(0,g.Le)():q.Oc=q.Oc||(0,g.Le)()),q.policy.YZ&&d39(Z.G,D,!1),!1;Z===q.videoTrack?q.o_=0:q.Oc=0;var n;q.policy.lx&&F===((n=q.gU)==null?void 0:n.D)&&q.KB&&(F.IB()===0?(q.KB=!1,q.policy.lx=!1):q.Gb=F.IB());a:{n=q.policy.LB?(0,g.Le)():0;G=B.Z&&B.info.D.D||void 0;D=B.K;B.Z&&(D=R3Z(q,B,D)||D);var b=NN(D);D=q.policy.LB?(0,g.Le)():0;F=t_D(q,F,b,B.info,G);(G=Z.PG)!=null&&(b=B.info,n=D-n,D=(0,g.Le)()-D,!G.K||qVD(G.K, b)&&G.K.Uc===b.Uc||G.flush(),G.G+=n,G.S+=D,n=1,!G.K&&b.K&&(n=2),nZ(G,n,F),D=Math.ceil(b.K/1024),n===2&&G.D.add(D),G.D.add(Math.ceil((b.K+b.S)/1024)-D),G.K=b);q.dU=0;if(F===0)q.WG&&(q.WG=!1,q.VO=!1),q.w2=0,F=!0;else{if(F===2||F===5)U48(q,"checked",F,B.info);else{if(F===1){if(!q.WG){q.WG=!0;F=!1;break a}if(!q.VO){q.VO=!0;q.Mp.seekTo(q.getCurrentTime(),{V5:"quotaExceeded",kH:!0});F=!1;break a}B.info.jB()?(n=q.policy,n.WG=Math.floor(n.WG*.8),n.Y$=Math.floor(n.Y$*.8)):(n=q.policy,n.Jn=Math.floor(n.Jn* .8),n.Y$=Math.floor(n.Y$*.8));q.policy.D?mu(q.G.D,B.info.D,!1):i3(q.D,B.info.D)}q.Mp.Mb({reattachOnAppend:F})}F=!1}}if(!F)return!1;q.policy.o_&&B.info.a6()?(q.Mp.C().Nl()&&q.iL("eosl",{ls:B.info.wq()}),B.isLocked=!0):(Z.gS(B),MsG(q.D,B.info));f&&(Z=B.info.D.Q3)&&q.Mp.x_(new JM(Z.key,Z.type));return!0}; at7=function(q){return(q==null?void 0:q.durationMs)!=null&&(q==null?void 0:q.durationMs)>0}; m4D=function(q){var Z={};return l5((Z.dlt=q.downloadedEndTime.toString(),Z.mket=q.maxKnownEndTime.toString(),Z.avbr=q.averageByteRate.toString(),Z))}; k_K=function(q,Z,F,B,f){if(!B.info.G){if(F.length===0)F.push(B);else{var D;(q=(D=F.pop())==null?void 0:g.K8(D,B))?F.push(q):F.push(B)}return f}var G;(F=(G=F.pop())==null?void 0:g.K8(G,B))||(F=B);if(F.info.K)return q.logger&&q.logger({incompleteSegment:F.info.wq()}),f;B=q.HM(F);f=B.Uc;B={clipId:B.clipId,formatId:B.formatId,startTimeMs:B.startTimeMs,durationMs:B.HI,BE:f,zD:f};f=it8(Z,B.startTimeMs);if(D=F=f>=0?Z[f]:null){D=B;var n=f;G=F.startTimeMs+F.durationMs;var b=D.startTimeMs+D.durationMs;if(D.startTimeMs- G>q.K)D=!1;else if(I7B(q,F.formatId,D.formatId))F.durationMs=Math.max(G,b)-F.startTimeMs,F.zD=Math.max(F.zD,D.zD),D=!0;else if(Math.abs(F.startTimeMs-D.startTimeMs)<=q.K)if(F.durationMs>D.durationMs+q.K){var N=F.formatId,S=F.BE;n=F.zD;F.formatId=D.formatId;F.durationMs=D.durationMs;F.BE=D.BE;F.zD=D.zD;D.formatId=N;D.startTimeMs=b;D.durationMs=G-b;D.BE=S;D.zD=n;D=!1}else F.formatId=D.formatId,D=!0;else G>D.startTimeMs&&(G>b&&(Z.splice(n+1,0,{formatId:F.formatId,startTimeMs:b,durationMs:G-b,BE:D.zD+ 1,zD:F.zD}),q.logger&&q.logger({splitOldStart:(N=F.startTimeMs)==null?void 0:N.toFixed(3),splitOldEnd:G==null?void 0:G.toFixed(3),splitNewStart:(S=D.startTimeMs)==null?void 0:S.toFixed(3),splitNewEnd:b==null?void 0:b.toFixed(3)})),F.durationMs=D.startTimeMs-F.startTimeMs,F.zD=D.BE-1),D=!1}D?B=F:(f+=1,Z.splice(f,0,B));N=0;for(S=f+1;S=b+F.K?F=!0:n+F.K0&&q.seekTo(0),q.Zw(),q.load(),d4D(q,null));delete q.S}; OV8=function(){var q=XMLHttpRequest.prototype.fetch;return!!q&&q.length===3}; eMX=function(q,Z){var F=[],B=IV(Z.type,"auto",Z.itag);F.push(new C8(B,Z.url));return Kk(q.Z,F,!1,!0)}; TLK=function(q,Z){var F;g.LO(q.C())&&(F={Y:"div",W:"ytp-panel-footer-content",T:[{Y:"span",Ka:"Ajusta la calidad de descarga en la "},{Y:"a",W:"ytp-panel-footer-content-link",Ka:"Configuraci\u00f3n",L:{href:"/account_downloads"}}]});g.qB.call(this,"Calidad",g.Wf.Ad,q,Z,void 0,void 0,F);this.B=q;this.uL={};this.j={};this.K={};this.zP=new Set;this.D=this.G=!1;this.Z="unknown";this.X="";this.Dl=new g.hm;g.y(this,this.Dl);this.G=this.B.U("web_player_use_new_api_for_quality_pullback");this.D=this.B.U("web_player_enable_premium_hbr_playback_cap"); q.U("web_settings_menu_icons")&&(Z=q.U("delhi_modern_web_player_icons")?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(Z));g.e$(this.qr.element,"ytp-quality-menu");this.N(q,"videodatachange",this.Cw);this.N(q,"videoplayerreset",this.Cw);this.N(q,"onPlaybackQualityChange",this.Kl);this.Cw();q.createClientVe(this.element,this,137721)}; OH=function(q){return q.TP[q.TP.length-1].type===4}; g.Rf=function(q,Z){JAK(q,{san:g.Ce(Z.experiments,"bg_vm_reinit_threshold"),cspNonce:Z.cspNonce,JW:Z.JW||""})}; oi8=function(q,Z,F,B,f){g.J.call(this);var D=this,G=mG(function(){return new ii(D.GP)}); g.y(this,G);var n=mG(function(){return new kZ(G,D.GP)}); g.y(this,n);var b=mG(function(){return new jv}); g.y(this,b);var N=mG(function(){return new IA(q)}); g.y(this,N);var S=mG(function(){return new CG(G,n,D.GP)}); g.y(this,S);var l=mG(function(){return new hx}); g.y(this,l);this.ub=mG(function(){return new RA(Z)}); g.y(this,this.ub);this.tZ=mG(function(){return new cl(f)}); g.y(this,this.tZ);this.rq=mG(function(){return new Jx(Z)}); g.y(this,this.rq);this.YS=mG(function(){return new YZ(Z)}); g.y(this,this.YS);this.kS=mG(function(){return new tx(Z)}); g.y(this,this.kS);this.Ep=mG(function(){return new pG(Z)}); g.y(this,this.Ep);this.GP=mG(function(){return new dy(Z)}); g.y(this,this.GP);var U=mG(function(){return new Fx(B)}); g.y(this,U);var u=mG(function(){return new Vj(D.GP)}); g.y(this,u);var P=mG(function(){return new ev(G,S,n,D.GP,u,null,null,D.gY,D.Ia)}); g.y(this,P);this.yX=mG(function(){return new Tz(Z)}); g.y(this,this.yX);this.q4=mG(function(){return new dj}); g.y(this,this.q4);this.XE=mG(function(){return new CI(Z,l,D.GP)}); g.y(this,this.XE);var W=MX({XE:this.XE,GP:this.GP,Kw:u}),H=W.context,X=W.Fy;this.yO=W.yO;this.LP=mG(function(){return new bF(Z,D.GP,D.wU)}); this.Zl=mG(function(){return new da(Z,D.XE,D.GP)}); g.y(this,this.Zl);this.ke=mG(function(){return new ok}); g.y(this,this.ke);this.nB=mG(function(){return new iD(D.Zl,Z,D.GP)}); g.y(this,this.nB);this.wU=mG(function(){return new qq(Z,b,D.nB,D.XE,D.yO,D.GP,X)}); g.y(this,this.wU);this.qE=mG(function(){return new ZT(D.GP)}); g.y(this,this.qE);this.Lz=new Fi(NP,Bh,function(a,m,c,e){return go(n.get(),a,m,c,e)},N,S,n,u,this.GP,this.XE); g.y(this,this.Lz);this.wh=new fB(N,P,F,this.GP,q,this.XE,this.Zl,this.rq);g.y(this,this.wh);var Q=new DT(Z,this.wh,this.Zl,this.XE,this.LP);this.Xw=mG(function(){return Q}); this.Th=Q;this.gY=new Nh(N,S,this.Xw,this.LP,this.Zl,this.GP,this.wU);g.y(this,this.gY);this.VX=new GQ(N,S,this.YS,this.Xw,H);g.y(this,this.VX);this.UZ=new zQ(this.GP,N,S,P,this.XE,this.VX,F,this.kS);g.y(this,this.UZ);this.YV=mG(function(){return new nB(U,n,u,D.GP,D.wU,D.Zl)}); g.y(this,this.YV);this.AC=mG(function(){return new bn}); g.y(this,this.AC);this.cf=new Nq(q,this.ub,this.GP);g.y(this,this.cf);this.Ih=new gI(q);g.y(this,this.Ih);this.d7=new Nt(q);g.y(this,this.d7);this.y$=new Sa(q,this.Xw,H);g.y(this,this.y$);this.T8=new ln(q,this.YS,this.Zl,this.XE,H);g.y(this,this.T8);this.rj=new UU(q);g.y(this,this.rj);this.VM=new un(q);g.y(this,this.VM);this.yh=new AQ(q);g.y(this,this.yh);this.A0=mG(function(){return new Ph(Z)}); g.y(this,this.A0);this.XN=new rI(q);g.y(this,this.XN);this.Ia=new Su(q,this.LP,this.Zl,this.wU,this.Xw,this.gY);g.y(this,this.Ia);this.z8=mG(function(){return new wI}); g.y(this,this.z8);this.aS=mG(function(){return new Wh(D.Zl)}); g.y(this,this.aS);this.AV=mG(function(){return new dt(D.UZ,N,G)}); g.y(this,this.AV);this.UX=mG(function(){return new yS(D.GP,D.wU,D.rj,D.nB)}); g.y(this,this.UX);this.Pa=mG(function(){return new McG(D.ub,D.Zl,D.wU,b,D.nB,D.d7,D.yh,D.tZ,D.GP,F)}); g.y(this,this.Pa);this.HX=mG(function(){return new LB(q,D.XN,D.rj,D.wU,D.nB,D.qE,D.kS,D.XE,D.Zl,D.ke,D.YS,D.rq,D.Ep,D.tZ,D.yX,D.GP,D.A0,H,X)}); g.y(this,this.HX);this.oT=new Vb(q,this.q4,G);g.y(this,this.oT);this.ND={Yi:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.UZ],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gY],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lz],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.wh],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.VX]]),yW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.YV],["SLOT_TYPE_FORECASTING",this.AC],["SLOT_TYPE_IN_PLAYER",this.AC], ["SLOT_TYPE_PLAYER_BYTES",this.AC]]),CQ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ih],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ih],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ih],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ih],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ih],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ih],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ih],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ih],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ih], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Ih],["TRIGGER_TYPE_CLOSE_REQUESTED",this.d7],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.y$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.T8],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.T8],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.T8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rj],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.y$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VM],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.yh],["TRIGGER_TYPE_AD_BREAK_STARTED",this.XN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Ia],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Ia],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Ia],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Ia],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Ia]]),n8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.z8],["SLOT_TYPE_FORECASTING",this.z8],["SLOT_TYPE_IN_PLAYER",this.z8],["SLOT_TYPE_PLAYER_BYTES",this.aS]]), k_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.AV],["SLOT_TYPE_FORECASTING",this.UX],["SLOT_TYPE_IN_PLAYER",this.Pa],["SLOT_TYPE_PLAYER_BYTES",this.HX]])};this.listeners=[b.get()];this.eq={UZ:this.UZ,Zs:this.GP.get(),x$:this.tZ.get(),r_:this.Zl.get(),wh:this.wh,JH:G.get(),oR:this.q4.get(),F8:this.cf,Nd:b.get(),uw:this.XE.get()}}; RV=function(q){var Z=q.B.getRootNode();return q.B.U("web_watch_pip")||q.B.U("web_shorts_pip")?bw(Z):document}; qk=function(q){q=q===void 0?0:q;return q===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+q}; qSK=function(q){q=q.adPlacementRenderer.config.adPlacementConfig;if(!q.prefetchModeConfig||!q.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;q=Number(q.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(q)||q<=0?0:Math.floor(Math.random()*q)}; WOk=function(q,Z,F){this.D=q;this.slot=Z;this.layout=F}; cn=function(){}; pbk=function(q,Z){var F={};g.FQ(q.api.C())&&(g.ct(q.api,"addEmbedsConversionTrackingParams",[F]),Z=g.gJ(Z,F));return Z}; Zqb=function(q,Z){switch(q){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 Z(q),8}}; FIg=function(q,Z,F,B){var f=Pig(Qt,F);f!==null&&f.kx!==Z&&(q.Fv(f),f=null);f||(Z=q.EB(F,F0(),!1,Z),Qt.K.length==0&&(PT().S=79463069),nlg([Z]),f=Z,f.G=OW(q),B&&(f.o_=B));return f}; gR=function(){Rl.apply(this,arguments)}; var xWy=function(){return Yl[z[9]](this,28)}; Jm=function(q,Z){Z=q.indexOf(Z);Z>-1&&q.splice(Z,1)}; tm=function(q){g.w.call(this,{Y:"button",rU:["ytp-size-button","ytp-button"],L:{title:q.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"t","data-priority":"9","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Ka:"{{icon}}"});this.api=q;this.aV=null;this.transition=new Y8;g.y(this,this.transition);this.N(q,"sizestylechange",this.ys);this.N(q,"fullscreentoggled",this.ys);this.N(q,"presentingplayerstatechange",this.ys);q.createClientVe(this.element, this,139116);this.ys();this.listen("click",this.onClick);b8(q,this.element,this)}; oXD=function(q){var Z={},F=[],B=[];if(!q.data)return Z;for(var f=0;f=2)return null;var f=new DataView(Z.buffer,Z.byteOffset,Z.length),D=g.pN(f,0,1937011556);if(!D)return null;Z=f.getUint32(D.dataOffset+8);B=f.getUint32(D.dataOffset+12);if(B!==1701733217&&B!==1701733238)return null;B=new iK6(q.byteLength+Z);H9(B,q,0,F.offset+12);B.data.setInt32(B.offset,2);B.offset+=4;H9(B,q,F.offset+16,F.size-16);H9(B,f,f.byteOffset+D.dataOffset+8,Z);H9(B,q,F.offset+F.size,q.byteLength- (F.offset+F.size));F=g.E([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(f=F.next();!f.done;f=F.next())f=g.pN(q,0,f.value),B.data.setUint32(f.offset,f.size+Z);q=g.pN(B.data,0,1953654136);B.data.setUint32(q.offset+16,2);return B.data}; g.ni7=function(q,Z){Z=K4(q,Z);Z>=0&&g.rt(q,Z)}; TcK=function(q){a:{var Z=q.initData;try{for(var F=0,B=new DataView(Z.buffer);F0){var G=B.getUint32(F+28);D+=G*16+4}var n=B.getUint32(F+D-4);try{var b=bq6(Z.subarray(F+D,F+D+n));if(b!==null){var N=b;break a}}catch(S){}}F+=f}N=null;break a}catch(S){N=null;break a}N=void 0}if(N!=null)for(Z=ee(T8(N,7,void 0,NAB)),Z==null||q.cL||(q.cryptoPeriodIndex=Z),Z=ee(T8(N,10,void 0,NAB)),Z!=null&&Z> 0&&!q.cL&&(q.D=Z),N=gw(N,2,gi7,void 0===SSD?2:4),N=g.E(N),B=N.next();!B.done;B=N.next())Z=q.S,F=Z.push,B=MD(B.value),B=g.MR(B,4),F.call(Z,B)}; uLB=function(q,Z,F){Z=Z.dialog&&g.C(Z.dialog,lQD)||null;Z==null?g.mM(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(q.D=new UFD(q.api,q.layoutId,q.interactionLoggingClientData,q.x$,q.G),g.y(q,q.D),q.D.init(kV("ad-info-dialog"),Z,F),q.D.R_(q.G),q.D.subscribe("d",function(){return q.publish("f")}),q.D.subscribe("c",function(){return q.publish("e")}))}; F0=function(){return Date.now()-PCB}; rIg=function(q,Z,F,B){if(!q.D||!q.K)return null;var f=q.D.isView()?q.D.cZ:q.D,D=q.K.isView()?q.K.cZ:q.K,G=new o6(q.mediaElement,q.gU,!0);G.S=q.S;OsK(G,new qs(f,Z,F,B),new qs(D,Z,F,B));sh(q)||q.D.Da(q.D.oh());return G}; WIk=function(q){(q===void 0?0:q)?(q=wdg().filter(function(Z){return Z.startsWith("1")}),g.e0("yt-player-performance-cap-active-set",q,2592E3)):g.e0("yt-player-performance-cap-active-set",[],2592E3)}; ZO=function(q){if(!q.userDisplayImage)return"";var Z=q.userDisplayImage.split("/");if(Z.length===5)return q=Z[Z.length-1].split("="),q[1]="s20-c",Z[Z.length-1]=q.join("="),Z.join("/");if(Z.length===8)return Z.splice(7,0,"s20-c"),Z.join("/");if(Z.length===9)return Z[7]+="-s20-c",Z.join("/");g.bh(new g.M2("Profile image not a FIFE URL.",q.userDisplayImage));return q.userDisplayImage}; q$=function(q){if(window.crypto&&window.crypto.getRandomValues)try{var Z=Array(q),F=new Uint8Array(q);window.crypto.getRandomValues(F);for(var B=0;B=Z)return q.G.set(Z,B),B;q.G.set(Z,F-1);return F-1}; YSZ=function(q,Z){if(!q)return{GG:[],adSlots:[],uP:!0,ssdaiAdsConfig:void 0};q.trackingParams&&ff(q.trackingParams);if(q.adThrottled)return{GG:[],adSlots:[],uP:!0,ssdaiAdsConfig:void 0};var F,B=(F=q.adSlots)!=null?F:[],f;F=(f=q.playerAds)!=null?f:[];if(!(F&&F.length||B.length))return{GG:[],adSlots:B,uP:!1,ssdaiAdsConfig:void 0};f=F.map(function(G){return G.adPlacementRenderer}).filter(function(G){return!(!G||!G.renderer)}); if(!f.length&&!B.length)return{GG:[],adSlots:B,uP:!1,ssdaiAdsConfig:void 0};if(Z.end>0){var D=Z.end.toString();f.forEach(function(G){(G=G.config&&G.config.adPlacementConfig)&&G.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&G.adTimeOffset&&G.adTimeOffset.offsetEndMilliseconds==="-1"&&G.adTimeOffset.offsetEndMilliseconds!==D&&(G.adTimeOffset.offsetEndMilliseconds=D)}); B.map(function(G){return g.C(G,mZ)}).forEach(function(G){var n; (G=G==null?void 0:(n=G.slotEntryTrigger)==null?void 0:n.mediaTimeRangeTrigger)&&G.offsetEndMilliseconds==="-1"&&(G.offsetEndMilliseconds=D)})}return{GG:f, adSlots:B,uP:!1,ssdaiAdsConfig:q.ssdaiAdsConfig}}; tUD=function(q,Z,F,B,f){nX.call(this,q,{Y:"div",W:"ytp-ad-message-overlay",T:[{Y:"div",W:"ytp-ad-message-slot"}]},"ad-message",Z,F,B,f);var D=this;this.Z=-1;this.S=0;this.uL=!1;this.k$=this.cG("ytp-ad-message-slot");this.K=new g.xT({Y:"span",W:"ytp-ad-message-container"});this.K.R_(this.k$);g.y(this,this.K);this.messageText=new N$(this.api,this.layoutId,this.interactionLoggingClientData,B,"ytp-ad-message-text");g.y(this,this.messageText);this.messageText.R_(this.K.element);this.G=new g.L3(this.K, 400,!1,100,function(){D.hide()}); g.y(this,this.G);this.hide()}; hQ8=function(q,Z,F){if(q.appInstallData)if(Z){var B;F=(B=Ib(Z,yc,62))!=null?B:new yc;QO(F,6,q.appInstallData);Ya(Z,yc,62,F)}else F&&(F.client.configInfo=F.client.configInfo||{},F.client.configInfo.appInstallData=q.appInstallData)}; QS=function(q){q=pn(q);q.tick||(q.tick={});return q.tick}; dF9=function(q,Z){if(q.D&&q.loader){var F=!1;Z?F=!0:q.videoData.isLowLatencyLiveStream||q.videoData.latencyClass==="LOW"||q.videoData.latencyClass==="ULTRALOW"?F=pdK(q.D):q.I_&&(q.I_=!1,F=pdK(q.D,!0));F&&(Z=q.Mp.Oy,F=q.D,F=P1(F)*F.D,Z.qoe&&(Z=Z.qoe,g.zR(Z,g.$w(Z.provider),"lra",[F]),Z.iL("live-readahead-seconds",{v:F})));Z=q.loader;F=q.D.D;q=q.D;q=(q.D-1+q.policy.D)*P1(q);var B=NaN,f=Z.X3;f===2||f===-1?nt(Z.Mp.getVideoData())&&(B=Z.policy.JN):--F;F=Math.max(F,0);f=Z.j;f.pE=F;f.PG=B;Z.V&&(Z.V.Dl=q)}}; bo=function(q,Z,F){q.insertBefore(Z,q.childNodes[F]||null)}; VUb=function(q){var Z;return!((Z=q.Rh)==null||!Z.postId)&&q.api.getPresentingPlayerType()!==2}; ea6=function(q,Z,F){Z=g.DC(Z,function(B){return new iVB(B,F,B.id)}); q.B.a_("onAdUxUpdate",Z)}; ozk=function(){var q=this;this.D=new Map;this.S=new Map;this.K=new Map;this.JZ={rMl:function(){return new Map(q.D)}}}; TAg=function(){}; $m=function(q,Z){if(q!=null){var F;var B=(F=MUy)!=null?F:MUy={};F=B[q]||0;F>=Z||(B[q]=F+1,q=Error(),NNK(q,"incident"),Zm(q))}}; zG=function(){var q=g.ym("_lact",window);return q==null?-1:Math.max(Date.now()-q,0)}; Ns=function(q){q=q.split("-");var Z=Number(q[0]),F=Number(q[1]);if(!isNaN(Z)&&!isNaN(F)&&q.length===2&&(q=new zI(Z,F),!isNaN(q.start)&&!isNaN(q.end)&&!isNaN(q.length)&&q.length>0))return q}; qI=function(q){var Z=[],F=0,B;for(B in q)Z[F++]=q[B];return Z}; g.Mf=function(q){if(!q||typeof q!=="object")return q;if(typeof q.clone==="function")return q.clone();if(typeof Map!=="undefined"&&q instanceof Map)return new Map(q);if(typeof Set!=="undefined"&&q instanceof Set)return new Set(q);if(q instanceof Date)return new Date(q.getTime());var Z=Array.isArray(q)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(q)||q instanceof DataView?{}:new q.constructor(q.length),F;for(F in q)Z[F]=g.Mf(q[F]);return Z}; Rp=function(){var q=mo()&&!lY(29),Z=g.Vd("google tv")&&g.Vd("chrome")&&!lY(30);return q||Z?!1:oQB()}; KZ=function(q,Z){return q.lastIndexOf(Z,0)==0}; gn=function(q){this.vH=q;this.D={};this.url=""}; Sk=function(q,Z,F){return arguments.length<=2?Array.prototype.slice.call(q,Z):Array.prototype.slice.call(q,Z,F)}; lo=function(q){var Z=$d(q,!0),F=0;Z===4?F=q.D.getFloat32(q.pos):Z===8&&(F=q.D.getFloat64(q.pos));q.pos+=Z;return F}; cA6=function(q,Z){if(q){var F;g.iv.isLoading()?F=!1:F=!hY||(0,g.Le)()-hY>Z;q=F}else q=!1;return q}; BZD=function(q){var Z=q.getVideoData(),F=q.T3;qfb(F)||F.oF();!X7&&F.B.U("html5_allow_asmjs")&&ZkZ(F);Pb(F,"embed");Pb(F,"kids");Pb(F,"remote");Pb(F,"miniplayer");Pb(F,"offline");Pb(F,"unplugged");Pb(F,"ypc",!1,!0);Pb(F,"webgl",!1,!0);FgZ(F)||(Pb(F,"captions",!0),Pb(F,"endscreen"),F.VG(),Pb(F,"creatorendscreen",!0));F.AF();F.B.publish("modulesCreated");q.lL.publish("videoready",Z)}; fvK=function(q,Z){Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next())zK(q,F.value.slot,!1)}; VCB=function(q){g.Hh(q.D,function(Z){Z.S>1E5||++Z.S})}; DuD=function(q,Z){if(!(R_||hv()||Ip()))return null;q=G09(Z,q.U("html5_filter_fmp4_in_hls"));if(!q)return null;Z=[];for(var F={},B=g.E(Object.keys(q)),f=B.next();!f.done;f=B.next()){f=g.E(q[f.value]);for(var D=f.next();!D.done;D=f.next()){var G=D.value;G.fB&&(D=G.fB.getId(),F[D]||(G=new g.nH(D,G.fB),F[D]=G,Z.push(G)))}}return Z.length>0?Z:null}; eq=function(q){g.J.call(this);this.logger=q;this.S=new g.VW}; Ux=function(q){var Z=g.D4(q.Z);g.yn(Z,function(F){F.AR(q.D)}); q.D!=q||Ggk(q)}; zJZ=function(q){if(g.cz("offline_error_handling")){var Z=AZ().get("errors",!0)||{};Z[q.message]={name:q.name,stack:q.stack};q.level&&(Z[q.message].level=q.level);AZ().set("errors",Z,2592E3,!0)}}; nQK=function(q,Z,F){return F.layoutId!==uo(q,Z,F)?(Yp("onSkipRequested for a PlayerBytes layout that is not currently active",q.bd(),q.hn()),!1):!0}; bkK=function(q){var Z,F;(F=(Z=window).onerror)==null||F.call(Z,q.message,"",0,0,q)}; ex=function(q){if(q.prerendering)return 3;var Z;return(Z={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[q.visibilityState||q.webkitVisibilityState||q.mozVisibilityState||""])!=null?Z:0}; PF=function(q,Z,F){for(var B=[],f=[],D=0;DF||(B.push(Math.max(Z,q.start(D))-Z),f.push(Math.min(F,q.end(D))-Z));return WR(B,f)}; u8Z=function(q){var Z=navigator.mediaCapabilities;if(Z==null||!Z.decodingInfo||q.FE==="f")return Promise.resolve();var F={type:q.audio&&q.video?"file":"media-source"};q.video&&(F.video={contentType:q.mimeType,width:q.video.width||640,height:q.video.height||360,bitrate:q.Ml*8||1E6,framerate:q.video.fps||30});q.audio&&(F.audio={contentType:q.mimeType,channels:""+(q.audio.numChannels||2),bitrate:q.Ml*8||128E3,samplerate:q.audio.sampleRate||44100});return Z.decodingInfo(F).then(function(B){q.K=B})}; JYZ=function(q){fX.call(this,q);var Z=this;this.events=new g.pO(q);g.y(this,this.events);this.events.N(q,"onSnackbarMessage",function(F){switch(F){case 1:Z.api.getPlayerStateObject().isBuffering()&&Z.api.a_("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl video se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Descubre los motivos"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; NZK=function(q){return g.O4(q.D,function(Z){return!!Z.info.video&&Z.info.video.isHdr()})}; gQK=function(q,Z){var F=Z.FE,B=Z.video.fps,f=Z.video.qualityOrdinal-1,D=q.S;Z=""+F+(B>49?"p60":B>32?"p48":"");F=c9(F,B,D);f>0&&(F=Math.min(F,f));if(!rn.has(Z)&&wdg().includes(Z)){var G=F;F=wn();+F[Z]>0&&(G=Math.min(+F[Z],G));F[Z]!==G&&(F[Z]=G,g.e0("yt-player-performance-cap",F,2592E3))}else if(rn.has(Z)||D==null){a:{G=G===void 0?!0:G;B=wdg().slice();if(G){if(B.includes(Z))break a;B.push(Z)}else{if(!B.includes(Z))break a;B.splice(B.indexOf(Z),1)}g.e0("yt-player-performance-cap-active-set",B,2592E3)}WF.set(Z, F)}else rn.add(Z),D==null||D.set(Z,F);q.Mp.cK()}; GSK=function(q,Z){return Sf9(q,Z,ViZ)}; skK=function(q,Z,F){var B=g.Z6(q.D,Z);if(B>=0)return Z;Z=-B-1;return Z>=q.D.length||q.D[Z]>F?null:q.D[Z]}; g.U2=function(q,Z){q.src=jz(Z);lvK(q)}; g.yE=function(q){var Z=q.C(),F=g.l2||g.tw?{style:"will-change: opacity"}:void 0,B=Z.G,f=["ytp-modern-videowall-still"];Z.K&&f.push("ytp-videowall-show-text");g.w.call(this,{Y:"a",rU:f,L:{href:"{{url}}",target:B?Z.PG:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},T:[{Y:"div",W:"ytp-modern-videowall-still-image",L:{style:"{{background}}"},T:[{Y:"span",W:"ytp-modern-videowall-still-info-duration",Ka:"{{duration}}"}]},{Y:"span",W:"ytp-modern-videowall-still-info", L:{"aria-hidden":"true"},T:[{Y:"span",W:"ytp-modern-videowall-still-info-bg",T:[{Y:"span",W:"ytp-modern-videowall-still-info-content",L:F,T:[{Y:"span",W:"ytp-modern-videowall-still-info-title",Ka:"{{title}}"},{Y:"span",W:"ytp-modern-videowall-still-info-author",Ka:"{{author}}"},{Y:"span",W:"ytp-modern-videowall-still-view-count-and-date-info",Ka:"{{views_and_publish_time}}"},{Y:"span",W:"ytp-modern-videowall-still-info-live",Ka:"En vivo"}]}]}]},{Y:"span",rU:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],L:{"aria-hidden":"true"},T:[{Y:"span",W:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{Y:"span",W:"ytp-modern-videowall-still-listlabel-length",T:[" (",{Y:"span",Ka:"{{playlist_length}}"},")"]}]},{Y:"span",rU:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],L:{"aria-hidden":"true"},T:[{Y:"span",W:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{Y:"span",W:"ytp-modern-videowall-still-listlabel-length",Ka:" (50+)"}]}]}); this.suggestion=null;this.K=B;this.api=q;this.D=new g.pO(this);g.y(this,this.D);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.D.N(q,"videodatachange",this.onVideoDataChange);q.createServerVe(this.element,this);this.onVideoDataChange()}; UuD=function(q,Z){var F;return g.h(function(B){if(!Z)return B.return(Z);F=new g.LE(q.K);return B.return(F.encrypt(Z,q.D))})}; AHb=function(q,Z,F,B){B=B===void 0?0:B;var f=g.qx(B);Z=Z||g.q4(B);f&&Z&&(q=q.client,B=Mq({cttAuthInfo:ot(f)||void 0},f),F={csn:f,ve:Z.getAsJson(),clientData:F},f==="UNDEFINED_CSN"?G1("visualElementStateChanged",B,F):q?z1("visualElementStateChanged",F,q,B):g.nh("visualElementStateChanged",F,B))}; g.hK=function(q,Z,F){F?g.e$(q,Z):g.vc(q,Z)}; Ox=function(q,Z,F,B,f,D,G,n,b){if(Z===q)if(b){if(b===n.layoutId){a:{q=g.E(F.keys());for(Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.slotType==="SLOT_TYPE_PLAYER_BYTES"&&D===F.get(Z).layoutId){F=!0;break a}F=!1}F?HF(B,1):f?f():Yp("Tried to call engagePingCallback but it is null",G,n)}}else Yp("Companion AdUxClick received without a layoutId",G,n)}; wyD=function(q,Z,F){if(!(F in Z))return!1;Z=Z[F];Array.isArray(Z)||(Z=[Z]);Z=g.E(Z);for(F=Z.next();!F.done;F=Z.next()){F=F.value;var B={CPN:q.api.getVideoData().clientPlaybackNonce};F=g.VT(F,B);B=void 0;B=B===void 0?!1:B;(B=wb(Wu(F,ucG),F,B,"Active View 3rd Party Integration URL"))||(B=void 0,B=B===void 0?!1:B,B=wb(Wu(F,P_K),F,B,"Google/YouTube Brand Lift URL"));B||(B=void 0,B=B===void 0?!1:B,B=wb(Wu(F,rQ6),F,B,"Nielsen OCR URL"));g.ka(F,void 0,B)}return!0}; WgB=function(q){q=q.D;for(var Z in q){var F=q[Z].index;if(F.isLoaded())return F.F3()+1}return 0}; xc=function(q,Z,F){q.B.U("delhi_modern_web_player")?Z.R_(q.S.cG(QE[F])):Z.R_(q.S.element)}; N6=function(q,Z){var F=q.api.Ca().ZI(),B=q.api.dA(!0,!1);return(Z=yQg(F,F.height-(B.height+B.top),Z))?(q.WG&&Z&&(F=g.Js(q.macros),F.ERRORCODE=Z.Gj.toString(),F.ERROR_MSG=Z.errorMessage,q.layoutId?PB(q.x$,q.WG,q.layoutId,F):g.mM(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; LgK=function(q){var Z;return!((Z=q.Qs.getWebPlayerContextConfig())==null||!Z.enableProximaLowLatency)}; Iz=function(q){return q.Qs.G&&q.isPrivate}; xuy=function(q){var Z=q.ZI(),F=1,B=!1,f=HkG(q,Z,q.getVideoAspectRatio()),D=q.app.C(),G=D.U("enable_desktop_player_underlay"),n=g78(),b=g.Ce(D.experiments,"player_underlay_min_player_width");b=G&&q.bH&&q.getPlayerSize().width>b;if(A6(q)){var N=Ok6(q);var S=isNaN(N)||g.oV||D5&&g.GW||b;R_&&!g.Jw(601)?N=f.aspectRatio:S=S||D.controlsType==="3";S?b?(S=D.U("place_shrunken_video_on_left_of_player")?16:q.getPlayerSize().width-Z.width-16,N=Math.max((q.getPlayerSize().height-Z.height)/2,0),S=new g.vF(S,N,Z.width, Z.height),q.Pe.style.setProperty("border-radius","12px")):S=new g.vF(0,0,Z.width,Z.height):(F=f.aspectRatio/N,S=new g.vF((Z.width-f.width/F)/2,(Z.height-f.height)/2,f.width/F,f.height),F===1&&g.GW&&(N=S.width-Z.height*N,N>0&&(S.width+=N,S.height+=N)));g.hK(q.element,"ytp-fit-cover-video",Math.max(S.width-f.width,S.height-f.height)<1);if(n||q.Hl)q.Pe.style.display="";q.EL=!0}else{S=-Z.height;R_?S*=window.devicePixelRatio:g.pi&&(S-=window.screen.height);S=new g.vF(0,S,Z.width,Z.height);if(n||q.Hl)q.Pe.style.display= "none";q.EL=!1}QS8(q.iW,S)||(q.iW=S,g.dh(D)?(q.Pe.style.setProperty("width",S.width+"px","important"),q.Pe.style.setProperty("height",S.height+"px","important")):g.TF(q.Pe,S.getSize()),B=new g.e_(S.left,S.top),g.B7(q.Pe,Math.round(B.x),Math.round(B.y)),B=!0);Z=new g.vF((Z.width-f.width)/2,(Z.height-f.height)/2,f.width,f.height);QS8(q.w_,Z)||(q.w_=Z,B=!0);g.u$(q.Pe,"transform",F===1?"":"scaleX("+F+")");G&&b!==q.vO&&(b&&(q.Pe.addEventListener(aU,q.f0),q.Pe.addEventListener("transitioncancel",q.f0), q.Pe.classList.add(g.jL.VIDEO_CONTAINER_TRANSITIONING)),q.vO=b,q.app.lL.publish("playerUnderlayVisibilityChange",q.vO?"transitioning":"hidden"));return B}; AQK=function(q){var Z,F;return!!((Z=q.playerResponse)==null?0:(F=Z.playerConfig)==null?0:F.granularVariableSpeedConfig)}; vQG=function(){var q=window.document;return q&&typeof q.elementFromPoint==="function"}; Xy6=function(){var q={};this.K=(q.vs=[1,0],q.vw=[0,1],q.am=[2,2],q.a=[4,4],q.f=[8,8],q.bm=[16,16],q.b=[32,32],q.avw=[0,64],q.avs=[64,0],q.pv=[256,256],q.gdr=[0,512],q.p=[0,1024],q.r=[0,2048],q.m=[0,4096],q.um=[0,8192],q.ef=[0,16384],q.s=[0,32768],q.pmx=[0,16777216],q.mut=[33554432,33554432],q.umutb=[67108864,67108864],q.tvoff=[134217728,134217728],q);this.D={};for(var Z in this.K)this.K[Z][1]>0&&(this.D[Z]=0);this.S=0}; b47=function(q){return EQk(q,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; avD=function(q,Z,F,B,f,D){var G=Z.cpn,n=Z.docid||Z.video_id||Z.videoId||Z.id,b=q.D;D=D===void 0?f+B:D;if(f>D)return Xe(q,"enterAfterReturn enterTimeMs="+f+" is greater than parentReturnTimeMs="+D.toFixed(3),G,n),"";var N=b.PZ()*1E3;if(fN)return b="returnAfterDuration parentReturnTimeMs="+D.toFixed(3)+" is greater than parentDurationMs="+N+". And timestampOffset in seconds is "+ b.oh(),Xe(q,b,G,n),"";N=null;for(var S=g.E(q.K),l=S.next();!l.done;l=S.next()){l=l.value;if(f>=l.Rc&&fl.Rc)return Xe(q,"overlappingReturn",G,n),"";if(D===l.Rc)return Xe(q,"outOfOrder",G,n),"";f===l.Ya&&(N=l)}G="cs_childplayback_"+Kg8++;n={o1:OL(B,!0),qg:Infinity,target:null};var U={fp:G,playerVars:Z,playerType:F,durationMs:B,Rc:f,Ya:D,Wp:n};q.K=q.K.concat(U).sort(function(W,H){return W.Rc-H.Rc}); N?E9Z(q,N,{o1:OL(N.durationMs,!0),qg:N.Wp.qg,target:U}):(Z={o1:OL(f,!1),qg:f,target:U},q.Z.set(Z.o1,Z),b.addCueRange(Z.o1));Z=!0;if(q.D===q.app.Vs()&&(b=b.getCurrentTime()*1E3,b>=U.Rc&&b>>=8,q++;Z=B.start+B.pos;var f=$d(B,!0);B=q+(B.start+B.pos-Z)+f;B=B>9?IvD(B-9,8):IvD(B-2,1);q=Z-q;F.setUint8(q++,236);for(Z=0;Z1E5||++Z.G})}; Zi8=function(q,Z,F){var B=!(!Z||Z.D!==q.D||Z.type!==q.type||Z.Uc!==q.Uc);return F?B&&!!Z&&(q.range&&Z.range?Z.range.end===q.range.end:Z.range===q.range)&&Z.K+Z.S===q.K+q.S:B}; C_g=function(){var q=this;this.proc_exit=function(){}; this.fd_write=function(Z,F,B){if(!q.exports)return 1;Z=new Uint32Array(q.exports.memory.buffer,F,B*2);F=[];for(var f=0;f=0&&(F.element.style.width=Z+"px")}; bY=function(q){return q===1||q===2}; du8=function(q,Z,F,B,f,D){D=D===void 0?new ae:D;kc.call(this,Z,F,B);this.fX=f;this.Tv=0;this.lQ={};this.a4=new Xy6;this.S2={};this.kx="";this.o_=null;this.Gb=!1;this.D=[];this.sA=D.K();this.j=D.S();this.G=null;this.S=-1;this.WG=this.PG=void 0;this.uL=this.Dl=0;this.k$=-1;this.I_=this.eU=!1;this.Y$=this.V=this.K=this.Y4=this.KB=0;new $V;this.dU=this.Oc=0;this.HG=-1;this.oS=0;this.X=g.Ww;this.zP=[this.lM()];this.j$=2;this.Hh={};this.Hh.pause="p";this.Hh.resume="r";this.Hh.skip="s";this.Hh.mute="m"; this.Hh.unmute="um";this.Hh.exitfullscreen="ef";this.Z=null;this.vG=this.Jn=!1;this.w2=Math.floor(Date.now()/1E3-1704067200);this.BG=0}; VfK=function(q,Z,F){Z.W3().currentState<2&&(F=sx(F,q.GP),Z.KP(Z.hn(),F));F=Z.W3().D;q.Wd(q.slot,Z.hn(),F)}; jk=function(q,Z){q=g.W5[q];return q&&q.prototype?(Z=Object.getOwnPropertyDescriptor(q.prototype,Z))&&Z.get||null:null}; oGK=function(q){this.D=q}; N1=function(){if(!eJD){var q=eJD=new hcZ;q.Jm.length=0;q.wV.length=0;TZ9(q,Mfy)}return eJD}; oU9=function(q){q=q||"";var Z=KrZ();Z[q]&&delete Z[q];var F=iC(),B={timerName:q,info:{},tick:{},span:{},jspbInfo:[]};F.push(B);Z[q]=B}; Mk=function(q,Z,F,B,f){this.D=Z;this.slotType=F;this.layoutType=B;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=f||q(this.triggerType)}; ZT=function(q){this.GP=q}; qi8=function(q){var Z;(Z=q.D)==null||Z.dG();var F;(F=q.K)==null||F.dG();q.Z=!1}; GzD=function(q){q.bQ>8?FE(q,q.yc):q.bQ>0&&(q.UI[q.pending++]=q.yc);q.yc=0;q.bQ=0}; FHK=function(q,Z,F){this.D=q;this.K=Z;this.S=F}; Z69=function(q,Z){if(q.B.C().dU){var F=g.UP(q.B,"Silenciar","m"),B=g.UP(q.B,"Activar sonido","m");F=Z?B:F;q.B.C().U("player_tooltip_data_title_killswitch")?q.updateValue("title",F):q.update({"tooltip-title":F,"aria-label":F});q.update({"data-title-no-tooltip":Z?"Activar sonido":"Silenciar"});q.tooltip.Q$()}}; g.xT=function(q){g.w.call(this,q);this.eU=new g.In;g.y(this,this.eU)}; JJ=function(q){if(q.j){var Z=q.api.getProgressState(),F=q.api.getVideoData();if(!(F&&F.enableServerStitchedDai&&F.e4)||isFinite(Z.current)){var B;if(((B=q.api.getVideoData())==null?0:Lj(B))&&Z.airingStart&&Z.airingEnd)var f=I6(q,Z.airingStart,Z.airingEnd);else if(q.api.getPresentingPlayerType()===2){var D,G,n;f=(F=(f=q.api.getVideoData())==null?void 0:(D=f.getPlayerResponse())==null?void 0:(G=D.playerConfig)==null?void 0:(n=G.webPlayerConfig)==null?void 0:n.skippableAdProgressBarDuration)?I6(q,Z.seekableStart, F/1E3):I6(q,Z.seekableStart,Z.seekableEnd)}else f=I6(q,Z.seekableStart,Z.seekableEnd);D=s7(f,Z.loaded,0);Z=s7(f,Z.current,0);G=q.S.K!==f.K||q.S.D!==f.D;q.S=f;c6(q,Z,D);G&&CsG(q);Yq9(q);Z=48;f=q.api.C();D=g.Ce(q.api.C().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");D=q.api.U("delhi_modern_web_player_compact_controls")||D>0&&q.api.getPlayerSize().width<=D;q.api.U("delhi_modern_web_player")?Z=q.api.getPlayerSize().width<=528?D?56:64:q.Z?D?72:96:D?56:72:q.Z?Z=54:g.FQ(f)&& !f.K&&(Z=40);q.zP=Z}}}; F$8=function(q){var Z;return((Z=q.audio)==null?void 0:Z.K)===!0}; zJ=function(){g.J.apply(this,arguments);this.element=null;this.j=new Set;this.X={};this.V={};this.D={};this.PG=new Set;this.S=new GJ;this.K=new GJ;this.G=new GJ;this.Z=new GJ}; f8G=function(q,Z){if(!q.nQ){var F=void 0;q.EP&&(F=q.D.Nr({cpn:q.EP}));if(!F){F=B6D(q,Z*1E3);var B,f=(B=F)==null?void 0:B.cpn;q.EP?f&&q.EP!==f&&q.S$({cpcnm:f+"_"+q.EP,cmt:Z.toFixed(3)}):q.S$({cpcna:f,cmt:Z.toFixed(3)})}var D;return(D=F)==null?void 0:D.videoData}}; F1K=function(q){if(q.Mp.BH().isInline())return wH;q=D8B[QL()];return g.CE("auto",q,!1,"s")}; yQg=function(q,Z,F){F=F===void 0?G4b:F;F.widthq.width*q.height*.2)return{yv:3,Gj:501,errorMessage:"ad("+h6(F)+") to container("+h6(q)+") ratio exceeds limit."};if(F.height>q.height/3-Z)return{yv:3,Gj:501,errorMessage:"ad("+h6(F)+") covers container("+h6(q)+") center."}}; zZ9=function(q){var Z;(Z=navigator.mediaCapabilities)!=null&&Z.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(F){F.smooth&&F.powerEfficient&&(q.uL=2160)})}; wb=function(q,Z,F,B){!q&&(F===void 0?0:F)&&g.bh(Error("Player URL validator detects invalid url. "+(B===void 0?"":B)+": "+Z));return q}; nUK=function(q){var Z=lX(q.playerVars),F=Number(Z.length_seconds);isNaN(F)&&(F=0,Yp("Expected valid length seconds in player vars but got NaN"));return{playerVars:Z,Wb:q.playerVars,XD:F}}; viX=function(q,Z){q.D=Z;g.O9("yt.gcf.config.coldConfigGroup",q.D||null)}; D8=function(q){var Z=Z===void 0?!1:Z;return wb(Wu(q,b6D),q,Z,"Trusted Stream URL")}; dO=function(q,Z){DM[Z]=DM[Z]||{count:0};var F=DM[Z];F.count++;F.time=(0,g.Le)();q.D||(q.D=g.Aw(0,function(){var B=(0,g.Le)(),f;for(f in DM)DM[f]&&B-DM[f].time>6E4&&delete DM[f];q&&(q.D=0)},5E3)); return F.count>5?(F.count===6&&Math.random()*1E5<1&&(F=new g.M2("CSI data exceeded logging limit with key",Z.split("_")),Z.indexOf("plev")>=0||g.bh(F)),!0):!1}; SiD=function(q,Z,F){var B;return g.h(function(f){if(f.D==1)return q.We("oprd_s"),N6K(q)?g.R(f,gUX(q.jE,Z,F),3):(B=q.jE.decrypt(Z,F),f.An(2));f.D!=2&&(B=f.K);q.We("oprd_c");return f.return(B)})}; U8D=function(q){var Z=new EW(q);Z.xH();if(K1(Z,[408125543,374648427,174,224]))Z=$c(Z);else return null;for(var F=q=null;!rj(Z);){var B=$d(Z,!1);if(B===21432)switch(DS(Z)){default:q=0;break;case 1:q=1;break;case 3:q=2;break;case 15:q=255}else B===30320?F=$c(Z):as(Z)}if(!F)return null;for(var f,D=B=Z=null;!rj(F);)switch($d(F,!1)){case 30321:if(DS(F)!==3)return null;break;case 30324:Z=lo(F);break;case 30323:D=lo(F);break;case 30325:B=lo(F);break;case 30322:f=$d(F,!0);f=Se(F,f);f=new DataView(f.buffer, f.byteOffset,f.byteLength);break;default:as(F)}return f?new l87(q,Z,D,B,f):null}; IV=function(q,Z,F,B,f,D,G){var n=new tE;Z in g.MN||(Z="small");Z==="light"&&(Z="tiny");B&&f?(f=Number(f),B=Number(B)):(f=g.MN[Z],B=Math.round(f*16/9));D=new C1(B,f,0,null,void 0,Z,D,G);q=unescape(q.replace(/"/g,'"'));return new p1(F,q,{audio:n,video:D})}; W$9=function(q,Z){var F={};if(q.app.C().uL){q=g.E(uwk);for(var B=q.next();!B.done;B=q.next())B=B.value,Z.hasOwnProperty(B)&&(F[B]=Z[B]);if(Z=F.qoe_cat)q="",typeof Z==="string"&&Z.length>0&&(q=Z.split(",").filter(function(f){return PAk.includes(f)}).join(",")),F.qoe_cat=q; r4B(F)}else for(q=g.E(w67),B=q.next();!B.done;B=q.next())B=B.value,Z.hasOwnProperty(B)&&(F[B]=Z[B]);return F}; Fk=function(q){var Z,F;return(F=q==null?void 0:(Z=q.activeViewTracking)==null?void 0:Z.trafficType)!=null?F:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; nI=function(q,Z,F){this.gB=q;this.oX=Z;q=gO(y4B);this.D=!!q&&F===q||!1}; my=function(q){var Z=g.CF.apply(1,arguments).filter(Boolean).join("&");if(!Z)return q;var F=q.match(/[?&]adurl=/);return F?q.slice(0,F.index+1)+Z+"&"+q.slice(F.index+1):q+(q.indexOf("?")<0?"?":"&")+Z}; Kq=function(q,Z){mx(q,13,Z.timeSinceLastManualFormatSelectionMs);var F=Z.lastManualDirection;F!==void 0&&(k7(q,112),k7(q,F<<1^F>>31));mx(q,16,Z.kPU);mx(q,17,Z.detailedNetworkType);mx(q,18,Z.uq);mx(q,19,Z.iq);mx(q,21,Z.s4a);mx(q,23,Z.qC);mx(q,28,Z.hx);mx(q,29,Z.Ylc);mx(q,34,Z.visibility);F=Z.playbackRate;if(F!==void 0){var B=new ArrayBuffer(4);(new Float32Array(B))[0]=F;F=(new Uint32Array(B))[0];if(F!==void 0)for(k7(q,285),nW(q,4),B=0;B<4;)q.view.setUint8(q.pos,F&255),F>>=8,q.pos+=1,B+=1}mx(q,36,Z.a5); UE(q,38,Z.mediaCapabilities,AZD,3);mx(q,39,Z.A1l);mx(q,40,Z.ph);mx(q,44,Z.playerState);Wt(q,46,Z.Vp);mx(q,48,Z.Wz);mx(q,50,Z.pK);mx(q,51,Z.lU);mx(q,54,Z.hJ);if(Z.Wm)for(F=0;F=0&&Z.push(F);return parseFloat(Z.join("."))}; UFD=function(q,Z,F,B,f){km.call(this,q,{Y:"div",W:"ytp-ad-info-dialog-background",T:[{Y:"div",W:"ytp-ad-info-dialog-container",T:[{Y:"div",W:"ytp-ad-info-dialog-form",L:{role:"dialog",tabindex:"-1"},T:[{Y:"div",W:"ytp-ad-info-dialog-title",Ka:"{{title}}"},{Y:"ul",W:"ytp-ad-info-dialog-ad-reasons"},{Y:"div",W:"ytp-ad-info-dialog-message"},{Y:"div",W:"ytp-ad-info-dialog-mute-container"},{Y:"div",W:"ytp-ad-info-dialog-confirm-container",T:[{Y:"button",W:"ytp-ad-info-dialog-confirm-button",Ka:"{{confirmLabel}}"}]}]}]}]}, "ad-info-dialog",Z,F,B);this.D=this.K=null;this.V=this.cG("ytp-ad-info-dialog-confirm-button");this.o_=this.cG("ytp-ad-info-dialog-mute-container");this.Oc=this.cG("ytp-ad-info-dialog-message");this.BG=this.cG("ytp-ad-info-dialog-ad-reasons");this.G=this.S=null;this.k$=f;this.Z=null;this.WG=!1;this.uL=null;this.hide()}; L$B=function(q){q.isInitialized&&(q.enabled=q.isVisible,q.uL=q.isVisible,tI(q),q.S5(),q.thumbnailImage.hZ(q.isVisible),q.shouldHideDismissButton||q.dismissButton.hZ(q.isVisible),q.shouldShowOverflowButton&&q.overflowButton.hZ(q.isVisible))}; oj=function(q,Z,F,B,f){g.J.call(this);this.webPlayerContextConfig=Z;this.mD=B;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.UT=this.KB=this.J0=this.GA=this.userDisplayName=this.userDisplayImage=this.nE="";this.D={};this.j$={};this.controlsType="0";this.w2=NaN;this.I_=!1;this.yd=(0,g.Le)();this.Gb=0;this.Aj=this.wx=!1;this.zY=!0;this.preferGapless=this.Gs=this.OP=this.S=this.ix=!1;this.bI=[];this.gj=!1;this.zE=0;q=q?g.Js(q):{};Z&&Z.csiPageType&&(this.csiPageType=Z.csiPageType);Z&&Z.csiServiceName&& (this.csiServiceName=Z.csiServiceName);Z&&Z.preferGapless&&(this.preferGapless=Z.preferGapless);this.experiments=new ll(Z?Z.serializedExperimentIds:q.fexp,Z?Z.serializedExperimentFlags:q.fflags,Z!=null?Z:{});this.forcedExperiments=Z?Z.serializedForcedExperimentIds:bU("",q.forced_experiments)||void 0;this.cspNonce=(Z==null?0:Z.cspNonce)?Z.cspNonce:bU("",q.csp_nonce);H67(this.U("web_player_deprecated_uvr_killswitch"));try{var D=document.location.toString()}catch(Zg){D=""}this.yC=D;this.ancestorOrigins= (B=window.location.ancestorOrigins)?Array.from(B):[];this.G=eA(!1,Z?Z.isEmbed:q.is_embed);Z&&Z.device?O68(this,Z.device):(this.D.c=q.c||"web",this.D.cver=q.cver||"html5",this.D.cplayer="UNIPLAYER");this.loaderUrl=Z?this.G||ATD(this)&&Z.loaderUrl?Z.loaderUrl||"":this.yC:this.G||ATD(this)&&q.loaderUrl?bU("",q.loaderUrl):this.yC;this.G&&g.O9("yt.embedded_player.embed_url",this.loaderUrl);this.V=Wu(this.loaderUrl,Qey);this.lJ=u38(this.loaderUrl);this.Hg=eA(!1,q.privembed);this.protocol=this.yC.indexOf("http:")=== 0?"http":"https";this.JW=x89((Z?Z.customBaseYoutubeUrl:q.BASE_YT_URL)||"")||x89(this.yC)||this.protocol+"://www.youtube.com/";this.k$=A48(this,Z?Z.eventLabel:q.el);pe6();B=null;D=Z?Z.playerStyle:q.ps;var G=g.r1(vUg,D);!D||G&&!this.V||(B=D);this.playerStyle=B;this.j=g.r1(vUg,this.playerStyle);this.houseBrandUserStatus=Z==null?void 0:Z.houseBrandUserStatus;this.uL=this.j&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.AJ=!this.uL;this.WG=eA(!1,q.disableplaybackui);this.disablePaidContentOverlay= eA(!1,Z==null?void 0:Z.disablePaidContentOverlay);this.disableSeek=eA(!1,Z==null?void 0:Z.disableSeek);this.enableSpeedOptions=(Z==null?void 0:Z.enableSpeedOptions)||(lG().defaultPlaybackRate?qW||g.c8||eT?g.Y2&&lY("20")||g.l2&&lY("4")||g.tw&&lY("11")||yO():!(g.tw&&!g.Vd("chrome")||qW||g.Vd("android")||g.Vd("silk")):!1);this.jA=eA(!1,q.enable_faster_speeds);var n;this.supportsVarispeedExtendedFeatures=(n=Z==null?void 0:Z.supportsVarispeedExtendedFeatures)!=null?n:!1;this.K=eA(this.playerStyle==="blazer", q.is_html5_mobile_device||Z&&Z.isMobileDevice);this.Oc=fK()||Bm();this.Qm=this.U("mweb_allow_background_playback")?!1:this.K&&!this.j;this.dU=Zb();this.KU=g.X6k;var b;this.E$=!!(Z==null?0:(b=Z.embedsHostFlags)==null?0:b.optOutApiDeprecation);var N;Z?Z.hideInfo!==void 0&&(N=!Z.hideInfo):N=q.showinfo;this.D9=g.FQ(this)&&!this.E$||eA(!Gl(this)&&!ph(this)&&!this.j,N);this.M4=Z?!!Z.mobileIphoneSupportsInlinePlayback:eA(!1,q.playsinline);n=this.K&&EUb&&zl!=null&&zl>0&&zl<=2.3;b=Z?Z.useNativeControls:q.use_native_controls; this.X=g.FQ(this)&&this.K;N=this.K&&!this.X;b=g.Us(this)||!n&&eA(N,b)?"3":"1";this.disableOrganicUi=!(Z==null||!Z.disableOrganicUi);N=Z?Z.controlsType:q.controls;this.controlsType=this.disableOrganicUi||N==="0"||N===0?"0":b;this.nz=this.K;this.color=x0("red",Z?Z.progressBarColor:q.color,K$9);this.qj=this.controlsType==="3";this.VO=!this.G;this.uc=(b=!this.VO&&!ph(this)&&!this.uL&&!this.j&&!Gl(this))&&!this.qj&&this.controlsType==="1";this.bb=g.H_(this)&&b&&this.controlsType==="0"&&!this.uc&&!(Z== null?0:Z.embedsEnableEmc3ds);this.cC=this.u2=n;this.G0=(this.controlsType==="3"||this.K||eA(!1,q.use_media_volume))&&!this.X;this.Kk=Z7&&!g.Jw(601)?!1:!0;this.c5=this.G||!1;this.lx=ph(this)?"":(this.loaderUrl||q.post_message_origin||"").substring(0,128);this.widgetReferrer=bU("",Z?Z.widgetReferrer:q.widget_referrer);var S;Z?Z.disableCastApi&&(S=!1):S=q.enablecastapi;S=!this.V||eA(!0,S);n=!0;Z&&Z.disableMdxCast&&(n=!1);this.fD=this.U("enable_cast_for_web_unplugged")&&g.dh(this)&&n||g.SQ(this)&&n|| S&&n&&this.controlsType==="1"&&!this.K&&(ph(this)||g.H_(this)||g.QF(this));this.nU=!!window.document.pictureInPictureEnabled||qT();S=Z?!!Z.supportsAutoplayOverride:eA(!1,q.autoplayoverride);this.SW=!(this.K&&!g.FQ(this))&&!g.Vd("nintendo wiiu")||S;this.zH=(Z?!!Z.enableMutedAutoplay:eA(!1,q.mutedautoplay))&&!1;S=(ph(this)||Gl(this))&&this.playerStyle==="blazer";this.sO=Z?!!Z.disableFullscreen:!eA(!0,q.fs);n=g.pP(g.VZ(this))&&g.FQ(this);this.Jn=!this.sO&&(S||g.By())&&!n;this.Tc=this.U("html5_picture_in_picture_logging_onresize"); var l;this.EY=(l=g.Ce(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?l:.33;this.s$=this.U("html5_picture_in_picture_blocking_onresize");this.vu=this.U("html5_picture_in_picture_blocking_ontimeupdate");this.Fq=this.U("html5_picture_in_picture_blocking_document_fullscreen");this.Jr=this.U("html5_picture_in_picture_blocking_standard_api");l=mo()&&lY(58)&&!Bm();S=R_||typeof MediaSource==="undefined";this.Ds=this.U("uniplayer_block_pip")&&(l||S)||this.s$||this.vu||this.Jr;l= g.FQ(this)&&!this.E$;var U;Z?Z.disableRelatedVideos!==void 0&&(U=!Z.disableRelatedVideos):U=q.rel;this.X3=l||eA(!this.j,U);this.zy=eA(!1,Z?Z.enableContentOwnerRelatedVideos:q.co_rel);this.PG=Bm()&&zl>0&&zl<=4.4?"_top":"_blank";this.hC=g.QF(this);this.Md=eA(this.playerStyle==="blazer",Z?Z.enableCsiLogging:q.enablecsi);switch(this.playerStyle){case "blogger":U="bl";break;case "discover-ads":U="dd";break;case "gmail":U="gm";break;case "gac":U="ga";break;case "ads-preview":U="ap";break;case "books":U= "gb";break;case "docs":case "flix":U="gd";break;case "duo":U="gu";break;case "google-live":U="gl";break;case "google-one":U="go";break;case "play":case "play-ads":U="gp";break;case "chat":U="hc";break;case "hangouts-meet":U="hm";break;case "photos-edu":case "picasaweb":U="pw";break;default:U="yt"}this.Dl=U;this.zP=bU("",Z?Z.authorizedUserIndex:q.authuser);this.Tb=g.FQ(this)&&(this.Hg||!bSb()||this.Oc);var u;Z?Z.disableWatchLater!==void 0&&(u=!Z.disableWatchLater):u=q.showwatchlater;this.Lm=((U=!this.Tb)|| !!this.zP&&U)&&eA(!this.uL,this.V?u:void 0);this.QC=Z?Z.isMobileDevice||!!Z.disableKeyboardControls:eA(!1,q.disablekb);this.loop=eA(!1,q.loop);this.pageId=bU("",Z?Z.initialDelegatedSessionId:q.pageid);this.Gy=eA(!0,q.canplaylive);this.rV=2;this.vG=eA(!1,q.livemonitor);this.disableSharing=eA(this.j,Z?Z.disableSharing:q.ss);this.Si=hLD(Z&&this.U("fill_video_container_size_override_from_wpcc")?Z.videoContainerOverride:q.video_container_override);this.mute=Z?!!Z.startMuted:eA(!1,q.mute);this.storeUserVolume= !this.mute&&eA(this.controlsType!=="0",Z?Z.storeUserVolume:q.store_user_volume);u=Z?Z.annotationsLoadPolicy:q.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:x0(void 0,u,n$);this.captionsLanguagePreference=Z?Z.captionsLanguagePreference||"":bU("",q.cc_lang_pref);u=x0(2,Z?Z.captionsLanguageLoadPolicy:q.cc_load_policy,n$);this.controlsType==="3"&&u===2&&(u=3);this.PY=u;this.Lp=Z?Z.hl||"en_US":bU("en_US",q.hl);this.region=Z?Z.contentRegion||"US":bU("US",q.cr);this.hostLanguage=Z? Z.hostLanguage||"en":bU("en",q.host_language);this.Uf=!this.Hg&&Math.random()>1;G>=1;G--)uZ(q,F,G);b=D;do G=q.OI[1],q.OI[1]=q.OI[q.xK--],uZ(q,F,1),B=q.OI[1],q.OI[--q.pJ]=G,q.OI[--q.pJ]=B,F[b*2]=F[G*2]+F[B*2],q.depth[b]=(q.depth[G]>=q.depth[B]?q.depth[G]:q.depth[B])+1,F[G*2+1]=F[B*2+1]=b,q.OI[1]=b++,uZ(q,F,1);while(q.xK>= 2);q.OI[--q.pJ]=q.OI[1];G=Z.yN;b=Z.sD;B=Z.mJ.ij;f=Z.mJ.PS;D=Z.mJ.cB;var N=Z.mJ.z$,S=Z.mJ.xpc,l,U=0;for(l=0;l<=15;l++)q.BC[l]=0;G[q.OI[q.pJ]*2+1]=0;for(Z=q.pJ+1;Z<573;Z++){var u=q.OI[Z];l=G[G[u*2+1]*2+1]+1;l>S&&(l=S,U++);G[u*2+1]=l;if(!(u>b)){q.BC[l]++;var P=0;u>=N&&(P=D[u-N]);var W=G[u*2];q.Q4+=W*(l+P);f&&(q.Dj+=W*(B[u*2+1]+P))}}if(U!==0){do{for(l=S-1;q.BC[l]===0;)l--;q.BC[l]--;q.BC[l+1]+=2;q.BC[S]--;U-=2}while(U>0);for(l=S;l!==0;l--)for(u=q.BC[l];u!==0;)B=q.OI[--Z],B>b||(G[B*2+1]!==l&&(q.Q4+=(l- G[B*2+1])*G[B*2],G[B*2+1]=l),u--)}ZdX(F,n,q.BC)}; EQk=function(q,Z){Z=(Z===void 0?0:Z)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Z="EMBEDDED_PLAYER_MODE_PFL");var F=q.raw_embedded_player_response;if(!F&&(q=q.embedded_player_response))try{F=JSON.parse(q)}catch(B){return Z}return F?x0(Z,F.embeddedPlayerMode,eZ7):Z}; Y7=function(q){return g.O4(q.D,function(Z){return Yl(24,Z.m6.D)})}; ELD=function(q){q.indexOf("watchtime")!==-1&&g.nh("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:q}})}; T6g=function(q,Z){Z=Z===void 0?NaN:Z;if(isNaN(Z))var F=q.size;else for(F=q.D;F=Z)}; fXB=function(q,Z){q.dataset.version=Z}; DGb=function(q){q=q.K;return q.requestAnimationFrame||q.webkitRequestAnimationFrame||q.mozRequestAnimationFrame||q.oRequestAnimationFrame||q.msRequestAnimationFrame||null}; GcG=function(q){switch(typeof q){case "number":return Number.isFinite(q)?q:""+q;case "bigint":return p_(q)?Number(q):""+q;case "boolean":return q?1:0;case "object":if(Array.isArray(q)){var Z=q[Sm]|0;return q.length===0&&Z&1?void 0:rO(q,Z,GcG)}if(q!=null&&q[uN]===P_)return sM(q);if(q instanceof yd){Z=q.D;if(Z==null)q="";else if(typeof Z==="string")q=Z;else{if(z$b){for(var F="",B=0,f=Z.length-10240;B0&&(q.Z=q.Kk[0],q.Qs.Nl())){F={};B=g.E(Object.entries(q.Z.D));for(f=B.next();!f.done;f=B.next()){var D=g.E(f.value);f=D.next().value;D=D.next().value;var G="unk";(f=f.match(/(.*)codecs="(.*)"/))&&(G=f[2]);F[G]=D}q.iL("drmProbe",F)}q.z_()})}; g.K8=function(q,Z,F,B){F=F===void 0?!1:F;B=B===void 0?0:B;if(q.isLocked||Z.isLocked||!z$(q.info,Z.info)||q.info.G)return null;if(B){if(q.K.totalLength+Z.K.totalLength>B)return null}else if(F&&(F=q.K,B=Z.K,F=!(B.D.length?kjk(F,B.D[0]):1)),F)return null;F=new b6(q.info.type,q.info.D,q.info.range,q.info.X,q.info.Uc,q.info.startTime,q.info.duration,q.info.K,q.info.S,q.info.G,q.info.De,q.info.clipId);B=Z.info;F.S+=B.S;F.range&&(F.V+=B.V);F.j=B.j;F.G=B.G;B=new bN;VJ(B,q.K);VJ(B,Z.K);F=new Hz(F,B);F.D!= null&&Z.D!=null&&g.md("dash",414627957,"merged slice emsg overridden; prev: "+F.D.vp()+" next: "+Z.D.vp());F.D=Z.D||q.D;F.S=q.S!==-1?q.S:Z.S;F.G=q.G!==-1?q.G:Z.G;return F}; Su8=function(q,Z){Z=g.Z6(q.K,{Ya:Z},function(F,B){return F.Ya-B.Ya}); return Z>=0?q.K[Z]:null}; lXX=function(){}; XE=function(){qu.apply(this,arguments)}; UGG=function(q){this.value=q}; iF=function(q){return q?"layout: "+q.layoutType:""}; PcX=function(q,Z){q.GT()&&!uhD(q.Rx.K)||q.callback.ZJ(q.slot,q.layout,Z)}; Pa=function(q){return q=="\r"||q=="\n"||q==" "||q=="\t"}; M_=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u,P,W,H){g.J.call(this);var X=this;this.Gn=q;this.slot=Z;this.layout=F;this.wU=B;this.nB=f;this.XE=D;this.Zl=G;this.rq=n;this.tZ=b;this.b6=N;this.position=l;this.j=U;this.GP=u;this.Qz=P;this.Fy=W;this.context=H;this.Fw=!0;this.Z=!1;this.Fe="not_rendering";this.K=!1;this.S=new rlB;q=qc(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(F.ud,this.wU,q,F.layoutId);var Q;q=((Q=wj(this))==null?void 0:Q.progressCommands)||[];this.G=new fm8(b, q,F.layoutId,function(){return X.iA()}); this.D=new w7X({adCpn:this.layout.layoutId,Di:H.Di,n$F:this.Qz,jB:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; jv=function(){g.J.apply(this,arguments);this.Fw=!0;this.rF=new Map;this.D=new Map}; UjK=function(q,Z){mx(q,1,Z.trackType);Wt(q,2,Z.isHdr)}; WcX=function(q,Z,F,B){var f=JU(null,null,null);f.D=new g.at(function(D,G){f.S=Z?function(n){try{var b=Z.call(B,n);D(b)}catch(N){G(N)}}:D; f.K=F?function(n){try{var b=F.call(B,n);b===void 0&&n instanceof X8?G(n):D(b)}catch(N){G(N)}}:G}); f.D.S=q;YS(q,f);return f.D}; k0=function(q){return window.navigator.msPointerEnabled?"MSPointer"+q.charAt(0).toUpperCase()+q.substring(1):"mouse"+q}; ma=function(q,Z){return Bn(q,Z.m0,Z.FN)?!0:!1}; Lc7=function(q){return ylK()===2?g.uh(q,F$8):q}; LVD=function(q){var Z;(Z=!q)||(Z=q.adSlotMetadata,Z=!((Z==null?void 0:Z.slotId)!==void 0&&(Z==null?void 0:Z.slotType)!==void 0));if(Z||!(OG8(q)||q.slotEntryTrigger&&q.slotFulfillmentTriggers&&q.slotExpirationTriggers))return!1;var F;q=(F=q.fulfillmentContent)==null?void 0:F.fulfilledLayout;return(F=g.C(q,QZ))?x1(F):(F=g.C(q,Es))?vZk(F):(F=g.C(q,HDD))?OD8(F):(F=g.C(q,$Xg))?Le6(F):(F=g.C(q,mXZ))?Vt(F.adLayoutMetadata)?g.C(F.renderingContent,ei)?!0:!1:!1:(F=g.C(q,$1))?aY(F):(q=g.C(q,EZ9))?Vt(q.adLayoutMetadata)? g.C(q.renderingContent,Ks)?!0:!1:!1:!1}; NGK=function(q,Z,F,B,f,D,G){if(q.D)return q.D;var n={},b=new Set,N={};if(Y7(B)){for(var S in B.D)B.D.hasOwnProperty(S)&&(q=B.D[S],N[q.info.FE]=[q.info]);return N}S=Qzg(Z,B,n);D&&f({aftsrt:z8(S)});for(var l={},U=g.E(Object.keys(S)),u=U.next();!u.done;u=U.next()){u=u.value;for(var P=g.E(S[u]),W=P.next();!W.done;W=P.next()){W=W.value;var H=W.itag,X=void 0,Q=u+"_"+(((X=W.video)==null?void 0:X.fps)||0);l.hasOwnProperty(Q)?l[Q]===!0?N[u].push(W):n[H]=l[Q]:(X=bl(Z,W,F,B.isLive,b),X!==!0?(G.add(u),n[H]=X, X==="disablevp9hfr"&&(l[Q]="disablevp9hfr")):(N[u]=N[u]||[],N[u].push(W),l[Q]=!0))}}D&&f({bfflt:z8(N)});for(var a in N)N.hasOwnProperty(a)&&(B=a,N[B]&&N[B][0].jB()&&(N[B]=N[B],N[B]=xG9(Z,N[B],n),N[B]=Xw6(N[B],n)));D&&Object.keys(n).length>0&&f({rjr:NJ(n)});Z=g.E(b.values());for(B=Z.next();!B.done;B=Z.next())(B=F.G.get(B.value))&&--B.Rf;D&&f({aftflt:z8(N)});q.D=g.MA(N,function(m){return!!m.length}); return q.D}; g.A0=function(q){return(q=g.rl(q.pB()))?q.h_():{}}; N4=function(q){return q.Qs.U("html5_disable_av1")?!0:!1}; AlD=function(q){q=(q.renderer.linearAdSequenceRenderer||{}).linearAds;return q!=null&&q.length?q.filter(function(Z){var F,B;return((F=g.C(Z,hB))==null?void 0:(B=F.playerOverlay)==null?void 0:B.instreamSurveyAdRenderer)!=null}).length:0}; vq7=function(q,Z){return wM(q)?Z!==1&&Z!==2&&Z!==0?"AUTOPLAY_STATUS_UNAVAILABLE":q.Ft?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; IZ=function(q,Z,F){return q=rE(q,Z[0],Z[1],F?1:2)}; wl=function(q,Z){this.version=q;this.args=Z}; Wa=function(q){var Z,F;var B=!!q.PG&&!((Z=q.api.getVideoData())==null?0:Z.isLivePlayback)&&!q.api.pw()&&q.api.getPresentingPlayerType()!==2&&!g.p(q.api.getPlayerStateObject(),2)&&!((F=g.jR(q.api))==null?0:F.J8())&&!q.api.isEmbedsShortsMode()&&X7b(q.api.BH());q.G!==B&&(q.G=B,q.G?q.D.subscribe("dragstart",q.uL,q):(q.D.unsubscribe("dragstart",q.uL,q),q.D.unsubscribe("dragmove",q.j,q),q.D.unsubscribe("dragend",q.Z,q),TM(q)))}; g.EqD=function(q){var Z;q.responseType&&q.responseType!=="text"?q.responseType==="arraybuffer"&&(Z=Og(new Uint8Array(q.response))):Z=q.responseText;return!Z||Z.length>2048?"":Z.indexOf("https://")===0?Z:""}; w3y=function(q,Z,F,B,f){var D;Z!==((D=q.D)==null?void 0:D.Uc)||q.K===1||B||q.D.SC.event==="predictStart"||q.iL("sdai",{undecevt:1,sq:Z,mt:F,evt:q.D.SC.event},!0);Z>q.j&&(q.j=NaN,q.X=NaN);q.D&&q.D.Uc===Z?KcD(q,Z,F,q.D,f):q.K===1&&ez(q,5,"noad")}; $Gg=function(q,Z,F){F=F===void 0?!1:F;g.mM(Z);q.Up.lastError="player.exception";q.errorMessage=Z.name+"_"+Z.message;F?g.iJ(function(){yo(q.Up)}):yo(q.Up)}; Beb=function(q,Z){q=document.querySelector(q);if(!q)return!1;var F="",B=q.nodeName;B==="SCRIPT"?(F=q.src,F||(F=q.getAttribute("data-timing-href"))&&(F=window.location.protocol+F)):B==="LINK"&&(F=q.href);L$(document)&&q.setAttribute("nonce",L$(document));return F?(q=tp.getEntriesByName(F))&&q[0]&&(q=q[0],F=b3(),oZ("rsf_"+Z,F+Math.round(q.fetchStart)),oZ("rse_"+Z,F+Math.round(q.responseEnd)),q.transferSize!==void 0&&q.transferSize===0)?!0:!1:!1}; g.Rw=function(q,Z){Z>=q.ZT()&&q.cR();var F=hn(q,Z),B=q.columns*q.rows,f=Z%B;Z=f%q.columns;f=Math.floor(f/q.columns);var D=q.cR()+1-B*F;if(D=0;B--)if(q.D[B].width>0){mGD(q.D[B],0);var f=Math.floor(q.D[B].width);q.D[B].width=f;ks(q.D[B],f+"px");break}q.D[F].width=0;ks(q.D[F],"0")}else F===q.D.length-1?(B=Math.floor(q.D[F].width+Z),q.D[F].width=B,ks(q.D[F],B+"px")):(Z=q.D[F].width+Z,B=Math.round(Z),Z-=B,q.D[F].width=B,ks(q.D[F],B+"px"));F=0;if(q.G.length===q.D.length)for(Z=0;Z< q.G.length;Z++)B=q.D[Z].width,q.G[Z].element.style.width=B+"px",q.G[Z].element.style.left=F+"px",F+=B+uE(q);q.api.U("delhi_modern_web_player")&&(q.D.length===1?q.D[0].K.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(q.D[0].K.classList.remove("ytp-progress-bar-end"),q.D[0].K.classList.add("ytp-progress-bar-start"),q.D[q.D.length-1].K.classList.add("ytp-progress-bar-end")))}; Ha=function(q){var Z=q.wU.get();return YF(Z,q.X)}; Lj6=function(q,Z,F){return F!==void 0?q.getCurrentTime(Z,!1,F):q.getCurrentTime(Z,!1)}; szb=function(q){var Z=iDb;q.K&&(g.ch(q.D,function(F,B){return kcD(B,F)?1:kcD(F,B)?-1:0}),q.K=!1); return lb(q.D,function(F,B){B=Z(B);return""+F+(F!=""&&B!=""?"&":"")+B},"")}; Mt=function(q){this.value=q}; jzD=function(q,Z){this.callback=q;this.slot=Z}; Vs=function(q){t8.call(this);this.D=q;this.N(this.D,"onAdUxUpdate",this.Z)}; HjK=function(q,Z){var F,B=(F=qc(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:F.current;if(!B)return null;F=IXg(q,Z);return{f_:CcD(q,Z),adPlacementConfig:qc(q.clientMetadata,"metadata_type_ad_placement_config"),yy:F,contentCpn:qc(q.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:qc(q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:qc(q.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:qc(q.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,qZ:void 0,gi:B,v5:q.layoutId,videoLengthSeconds:qc(q.clientMetadata,"metadata_type_video_length_seconds")}}; ol=function(q,Z){var F;return g.h(function(B){F=q.K;if(!F||F.Bf())return B.return(ol(q.network,Z));iE("att_pna",void 0,"attestation_challenge_fetch");return B.return(new Promise(function(f){F.xt("publicytnetworkstatus-online",function(){ol(q.network,Z).then(f)})}))})}; kh=function(q){var Z=g.ym("yt.scheduler.instance.setPriorityThreshold");Z&&Z(q)}; JU=function(q,Z,F){var B=gx7.get();B.S=q;B.K=Z;B.context=F;return B}; HBK=function(q,Z){q.X.push(Z);g.y(q,Z);Z.R_(q.UT,q.UT.children.length)}; W3D=function(q,Z,F,B){if(!q.jU()){B&&(SR={keySystem:Z.keySystem,keySystemAccess:F,zJP:JSON.stringify(B)});Z.keySystemAccess=F;if(Xx(Z)){F=lG();B=g.E(Object.keys(q.D[Z.flavor]));for(var f=B.next();!f.done;f=B.next())f=f.value,Z.D[f]=!!F.canPlayType(f)}else{F=Z.keySystemAccess.getConfiguration();if(F.audioCapabilities)for(B=g.E(F.audioCapabilities),f=B.next();!f.done;f=B.next())Z.D[f.value.contentType]=!0;if(F.videoCapabilities)for(F=g.E(F.videoCapabilities),B=F.next();!B.done;B=F.next())Z.D[B.value.contentType]= !0}q.G.push(Z);q.useCobaltWidevine||q.U("html5_enable_vp9_fairplay")&&Rn(Z)?(q.K.shift(),xS(q)):q.callback(q.G)}}; h$b=function(q,Z,F,B){var f=qc(Z.hn().clientMetadata,"metadata_type_ad_pod_skip_target");if(f&&f>0&&f0?this.K=B:(q=q.getAvailableAudioTracks(),this.K=q.length>0?YuD(q):[]);q=g.E(tRZ);for(F=q.next();!F.done;F=q.next())F=F.value,this.D[F]=p7B[F](this.K);this.un()}; y97=function(){var q=["metadata_type_ad_action_interstitial_renderer"];YP().forEach(function(Z){q.push(Z)}); return{m0:q,FN:["LAYOUT_TYPE_ENDCAP"]}}; qm=function(q){var Z,F,B;return((Z=q.playerResponse)==null?void 0:(F=Z.playerConfig)==null?void 0:(B=F.compositeVideoConfig)==null?void 0:B.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; Az=function(q,Z){q.D=Z;q.update({slidervalue:q.D,ariaValueNow:q.D});q.K.valueAsNumber=q.D;VR9(q,Z)}; $i=function(q,Z){UE(q,1,Z.clientInfo,e$8,3);aL(q,2,Z.b1);aL(q,3,Z.playbackCookie);aL(q,4,Z.kc);if(Z.Ub)for(var F=0;F1?Z.push(Bo7(F,B,f,n.BP.instreamVideoAdRenderer.elementId,N.Qw.adSlotLoggingData, function(S,l){return function(U){return S.Qw.bC(U,l.BP.instreamVideoAdRenderer.elementId,S.Qw.b3,S.Qw.associatedCompositePlayerBytesLayoutId)}}(N,n))):Z.push(Bo7(F,B,f,n.BP.instreamVideoAdRenderer.elementId,N.Qw.adSlotLoggingData,b))}return Z}; fkK=function(q){this.Qs=q;this.G0=this.v3=this.dU=this.Z=this.G=this.HG=this.Oc=this.Dl=!1;this.X=this.j=0;this.I_=!1;this.uL=!0;this.eU=!1;this.NP=0;this.KA=this.Y$=!1;this.X3=!0;this.WG=this.BG=!1;this.D={};this.Gb=this.w2=this.LB=this.disableAv1=this.Jn=this.J0=this.vG=this.KB=this.K=this.V=!1;this.zP=0;this.QC=this.Qs.U("html5_disable_aac_preference");this.Hg=Infinity;this.k$=0;this.VO=this.Qs.Nl();this.j$=this.Qs.experiments.qp("html5_enable_vp9_fairplay");this.ix=this.Qs.U("html5_force_av1_for_testing"); this.o_=g.Ce(this.Qs.experiments,"html5_av1_ordinal_cap");this.yC=this.Qs.U("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Lp=this.Qs.U("html5_account_onesie_format_selection_during_format_filter");this.Ml=g.Ce(this.Qs.experiments,"html5_max_byterate");this.Tb=this.Qs.U("html5_enable_iamf_audio");this.ac=this.Qs.experiments.qp("html5_allow_capability_merge");this.bb=this.Qs.U("html5_enable_encrypted_av1")}; sf=function(q,Z){q.D[Z.info.id]=Z;q.S.set(EB(g.Kc(Z.info,q.d2)),Z)}; DPg=function(q,Z){var F,B,f,D,G,n,b,N;return g.h(function(S){if(S.D==1){F=Hj(q,"redirector.googlevideo.com");F.set("alr","yes");F.set("id",""+Math.round(Math.random()*1E5));if(Z===1||Z===2)F.set("cmo=sensitive_content","yes"),F.set("sc","yes");Z===2&&F.set("cmo=td","c.youtube.com");B={format:"RAW",timeout:5E3};return g.R(S,ER(F.fP(),B),2)}f=S.K;if(f.xhr.status!==200||!f.xhr.responseText)return S.return(Promise.reject(new g.M2("b204258371_no_host",F.fP(),f.xhr.status)));D=new g.O_(f.xhr.responseText); G=p7(91,D);n=D.get("ms");b=Hj(q,G);N=D.get("mm");b.set("ms",n);b.set("mm",N);return G&&v1b(G)?Z!==2||LP(G)?S.return(b):S.return(Promise.reject(new g.M2("b204258371_untrusted",G,n))):S.return(Promise.reject(new g.M2("b204258371_invalid",G,n)))})}; S2Z=function(q){for(var Z=[],F=0;F0&&q.every(x1)}; soZ=function(q,Z,F){F=F===void 0?{}:F;this.error=q;this.meta=F;this.context=Z.context;this.msg=Z.message||"";this.id=Z.id||"jserror"}; kFK=function(q,Z){function F(b){for(;B>4);G!=64&&(Z(D<<4&240|G>>2),n!=64&&Z(G<<6&192|n))}}; t0=function(q,Z,F){this.uw=q;this.D=Z;this.wU=F;Ds(fg(),{zZ:GbK,wB:UBZ})}; zo6=function(q){var Z;return g.h(function(F){if(F.D==1){if(!q.DE.wpc)throw new m0(30,"NWA");return q.D?F.return(q.D):g.R(F,q.DE.wpc(),2)}Z=F.K;q.D=new EX(Z);return F.return(q.D)})}; NoG=function(q,Z,F){if(q.policy.nE)return!1;var B;var f=q.D,D=((B=Z.K)==null?void 0:B.Uc)||-1;!f.policy.oa&&f.K===3&&D+1>=f.G?(f.iL("sdai",{haltrq:D+1,est:f.G}),B=!1):B=f.K!==2;if(!B||!b_(Z.K?Z.K.D.m6:Z.D.m6,q.policy,q.G,q.loader.Ix())||q.loader.isSuspended&&(!by(q.schedule)||q.loader.E_))return!1;if(q.policy.G&&K$>=5)return g.$t(q.loader.CJ),!1;if(q.Np.isManifestless){if(Z.S.length>0&&Z.K&&Z.K.Uc===-1||Z.S.length>=q.policy.nU||!q.policy.LS&&Z.S.length>0&&!q.policy.V.dF)return!1;if(Z.X)return!q.Np.isLive|| !isNaN(q.pE)}if(nJK(Z))return!1;if(!Z.K){if(!Z.D.wR())return!1;x3(Z,q.loader.getCurrentTime())}if(oM(Z)&&(Z.fv()!==oM(Z)||q.loader.isSuspended))return!1;f=(B=q.policy.Sh)&&!Z.S.length&&qO(Z,!0)=q.policy.O4)return!1;B=Z.K;if(!B)return!0;B.type===4&&B.D.wR()&&(Z.K=g.uU(B.D.Or(B)),B=Z.K);if(!B.a6()&&!B.D.Mz(B))return!1;D=q.Np.OZ||q.Np.G;if(q.Np.isManifestless&& D){D=Z.D.index.F3();var G=F.D.index.F3();D=Math.min(D,G);if(Z.D.index.oH()>0&&D>0&&B.Uc>=D)return Z.k$=D,F.k$=D,!1}if(B.D.info.audio&&B.type===4||B.a6())return!1;D=!Z.Z&&!F.Z;if(f=!f)f=B.j,f=!!(F.K&&!MW(F.K)&&F.K.jbz7(q,Z)?(bz7(q,Z),!1):(q=Z.g2)&&q.isLocked()?!1:!0}; ki=function(q){q.D.update();q=q.D;q.segments.length&&q.D===q.S||$3(q);var Z=q.segments;q.segments=[];return Z}; rwG=function(q){return typeof q==="undefined"?"-1":String(Math.ceil(q/1048576))}; g.YJ=function(q){g.J.call(this);this.callback=q;this.D=new aW(0,0,.4,0,.2,1,1,1);this.delay=new g.S2(this.next,window,this);g.y(this,this.delay)}; gJg=function(q){return q.linearAds!=null&&Vt(q.adLayoutMetadata)}; Bf=function(q){if(q.length<16)EM(Number(q));else if(ib())q=BigInt(q),KK=Number(q&BigInt(4294967295))>>>0,$v=Number(q>>BigInt(32)&BigInt(4294967295));else{var Z=+(q[0]==="-");$v=KK=0;for(var F=q.length,B=0+Z,f=(F-Z)%6+Z;f<=F;B=f,f+=6)B=Number(q.slice(B,f)),$v*=1E6,KK=KK*1E6+B,KK>=4294967296&&($v+=Math.trunc(KK/4294967296),$v>>>=0,KK>>>=0);Z&&(Z=g.E(xb(KK,$v)),q=Z.next().value,Z=Z.next().value,KK=q,$v=Z)}}; SL9=function(q){var Z,F=(Z=q.api.getVideoData())==null?void 0:Z.tP();return q.api.getPresentingPlayerType(F)!==2}; UPD=function(){this.D={};var q=a$();mq(this,q,document);var Z=lkB();try{if("1"==Z){for(var F=q.parent;F!=q.top;F=F.parent)mq(this,F,F.document);mq(this,q.top,q.top.document)}}catch(B){}}; M38=function(q){return g.aX(ukD(),q)}; Pvk=function(q){return q.U("html5_onesie_host_probing")||q.Z2?s_:!1}; wW9=function(q,Z){g.w.call(this,{Y:"div",W:"ytp-user-info-panel",L:{"aria-label":"Informaci\u00f3n del usuario"},T:q.C().zP&&!q.U("embeds_web_always_enable_signed_out_state")?[{Y:"div",W:"ytp-user-info-panel-icon",Ka:"{{icon}}"},{Y:"div",W:"ytp-user-info-panel-content",T:[{Y:"div",W:"ytp-user-info-panel-info",L:{tabIndex:"{{userInfoFocusable}}",role:"text"},Ka:"{{watchingAsUsername}}"},{Y:"div",W:"ytp-user-info-panel-info",L:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Ka:"{{watchingAsEmail}}"}]}]: [{Y:"div",W:"ytp-user-info-panel-icon",Ka:"{{icon}}"},{Y:"div",W:"ytp-user-info-panel-content",T:[{Y:"div",T:[{Y:"text",L:{tabIndex:"{{userInfoFocusable}}"},Ka:"Saliste de la cuenta"}]},{Y:"div",W:"ytp-user-info-panel-login",T:[{Y:"a",L:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Ka:q.C().Tb?"":"Acceder a YouTube"}]}]}]});this.lL=q;this.sourceElement=Z;q.C().zP||q.C().Tb||this.N(this.cG("ytp-user-info-panel-login"),"click",this.I7);this.closeButton=new g.w({Y:"button",rU:["ytp-collapse","ytp-button"], L:{title:"Cerrar"},T:[g.rnK()]});this.closeButton.R_(this.element);g.y(this,this.closeButton);this.N(window,"blur",this.hide);this.N(document,"click",this.a7);this.ys()}; W67=function(q,Z){Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next()){var B=F.value,f=void 0;F=Number((f=B.playbackRelativePosition)==null?void 0:f.utcTimeMs)/1E3;var D=void 0;f=F+Number((D=B.duration)==null?void 0:D.seconds);D="composite_embargo_"+F;B.onEnter&&(B=B.onEnter.filter(q.Z),B.length&&(q.K.set(D,B),q.api.addUtcCueRange(D,F,f,"compositeembargo",!1)))}}; dxy=function(q){var Z=g.NQ("LOGGED_IN",function(F){q.apply(void 0,arguments);g.B8(Z)})}; L6k=function(q){q.IU=!1;var Z=q.t7,F=Z!==void 0?Z.Vq:q.producers;if(F!==void 0){if(Ev(q)){do F=ynX(F);while(F!==void 0)}Z!==void 0?Z.Vq=void 0:q.producers=void 0}}; HzK=function(q){q.Z=(0,g.Le)();q.started=0;q.timedOut=0;q.D=0}; OzK=function(q,Z){Z=Z===void 0?{}:Z;var F;return g.h(function(B){if(B.D==1)return g.R(B,g.$M(),2);if(B.D!=3){F=B.K;if(!F)return B.return();iQ(q);return g.R(B,YG(q,Z),3)}return g.R(B,Wd(q,F),0)})}; Am=function(q,Z,F){var B=q.K[Z];B||(B=[],q.K[Z]=B);B.push(F)}; ov=function(q,Z){q=Qr(q,Z);return q>=0?q-Z:0}; TG=function(q){fX.call(this,q);hC(q,"createClientVe",this.createClientVe.bind(this));hC(q,"createServerVe",this.createServerVe.bind(this));hC(q,"destroyVe",this.destroyVe.bind(this));hC(q,"hasVe",this.hasVe.bind(this));hC(q,"logClick",this.logClick.bind(this));hC(q,"logVisibility",this.logVisibility.bind(this));hC(q,"setTrackingParams",this.setTrackingParams.bind(this))}; g.FQ=function(q){return q.G&&g.H_(q)&&!Gl(q)&&!q.j}; EdK=function(q,Z,F,B){function f(n){n&&Z.appendChild(typeof n==="string"?q.createTextNode(n):n)} for(;B0)f(D);else{a:{if(D&&typeof D.length=="number"){if(g.yF(D)){var G=typeof D.item=="function"||typeof D.item=="string";break a}if(typeof D==="function"){G=typeof D.item=="function";break a}}G=!1}g.yn(G?g.D4(D):D,f)}}}; W9=function(q,Z){var F=Z.Uc;q.X="updateWithSegmentInfo";q.Uc=F;if(q.startTime!==Z.startTime||q.duration!==Z.duration)q.startTime=Z.startTime+0,q.duration=Z.duration,Qwy(q)}; Yzy=function(q){q=new xPB(q.data,q.offset,q.size,q.type,q.K);var Z=d0(q);q.skip(7);var F=UQ(q);if(Z===0){Z=UQ(q);var B=UQ(q)}else Z=mE(q),B=mE(q);q.skip(2);for(var f=lV(q),D=[],G=[],n=0;n0&&(f.push(N),f.push(new oU(F.adPodSkipTarget)),B=[]);f.push(new et(n.adPodIndex));F.isCritical&&(B=[new HR(q.D,Z.layoutId,["error"])].concat(g.YB(B)));return{dR:{layoutId:Z.layoutId,layoutType:Z.layoutType,ud:Z.ud,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], bL:Z.bL,clientMetadata:new zX(f),Xe:Z.Xe,adLayoutLoggingData:Z.adLayoutLoggingData},zQ:B,Ze:Z.layoutExitMuteTriggers,fF:Z.layoutExitUserInputSubmittedTriggers,N2:Z.layoutExitUserCancelledTriggers}}; c9=function(q,Z,F){q=""+q+(Z>49?"p60":Z>32?"p48":"");Z=wn()[q];if(Z!=null&&Z>0)return Z;Z=WF.get(q);if(Z!=null&&Z>0)return Z;F=F==null?void 0:F.get(q);return F!=null&&F>0?F:8192}; shD=function(q){var Z=[],F=[];g.Hh(q,function(B,f){if(!(f in Object.prototype)&&typeof B!="undefined")switch(Array.isArray(B)&&(B=B.join(",")),B=[f,"=",B].join(""),f){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":Z.unshift(B);break;case "req":case "url":case "referrer":case "iframe_loc":F.push(B);break;default:Z.push(B)}}); return Z.concat(F)}; ZG=function(q){var Z=new DyK,F;Z.S=((F=OmB(q).cc)==null?void 0:F.toString())||"-";Z.playbackRate=q.Mp.getPlaybackRate();F=q.Mp.getVisibilityState();F!==0&&(Z.visibilityState=F);q.J.I_&&(Z.K=1);Z.G=q.videoData.CH;Z.compositeLiveStatusToken=q.videoData.compositeLiveStatusToken;Z.heartbeatLoggingToken=q.videoData.heartbeatLoggingToken;F=q.Mp.getAudioTrack();F.fB&&F.fB.id&&F.fB.id!=="und"&&(Z.audioId=F.fB.id);Z.connectionType=Rob(q);Z.volume=q.Mp.getVolume();Z.muted=q.Mp.isMuted();Z.clipId=q.Mp.EM()|| "-";Z.D=q.videoData.Vn||"-";return Z}; cnB=function(q,Z,F,B){F=F===void 0?!1:F;B=B===void 0?!1:B;var f=[];f.push({offset:0,transform:"translateX("+(q.K===-1?20:-20)+"px)",opacity:F?"0":"1"});F&&f.push({offset:.5,opacity:"1"});f.push({offset:1,transform:"translateX(0)",opacity:"1"});F=Z.animate(f,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});Z=Z.querySelector("path");f=[];var D={offset:0,d:q.K===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};B&&(D.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");f.push(D); B&&f.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});q={offset:1,d:q.K===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};B&&(q.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");f.push(q);Z.animate(f,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return F}; DO=function(){return g.ym("yt.gcf.config.coldConfigGroup")}; sJ=function(q,Z){Z.length!==0&&(q.S.push(Z),q.K+=Z.length)}; g.Jnb=function(q){var Z=q.creation;q=q.expiration;return!!q&&qg.i$()}; mj=function(q){return an(q)==="WEB_KIDS"}; X_b=function(q,Z,F,B){var f,D,G,n,b,N;return g.h(function(S){switch(S.D){case 1:return D=(f=Error().stack)!=null?f:"",g.R(S,g.$M(),2);case 2:G=S.K;if(!G)throw n=g.mJ("openDbImpl",q,Z),g.cz("ytidb_async_stack_killswitch")||(n.stack=n.stack+"\n"+D.substring(D.indexOf("\n")+1)),uv(n),n;iQ(q);b=F?{actualName:q,publicName:q,userIdentifier:void 0}:AAb(q);g.s4(S,3);return g.R(S,TqD(b,G),5);case 5:return g.R(S,Lob(b.actualName,Z,B),6);case 6:return S.return(S.K);case 3:return N=g.If(S),g.s4(S,7),g.R(S,Wd(b.actualName, G),9);case 9:g.jB(S,8);break;case 7:g.If(S);case 8:throw N;}})}; Bx=function(q){fX.call(this,q);var Z=this;this.K=new Map;this.G=this.D=void 0;this.compositeVideoState=null;this.S=void 0;this.events=new g.pO(q);g.y(this,this.events);this.events.N(q,"modulecreated",function(F){var B;a:{var f,D,G,n=(f=Z.api.getVideoData())==null?void 0:(D=f.getPlayerResponse())==null?void 0:(G=D.overlay)==null?void 0:G.playerControlsOverlayRenderer;if(n&&(f=g.C(n.compositeVideoOverlay,YL9),f==null?0:(B=f.sources)==null?0:B.length))for(B=g.E(f==null?void 0:f.sources),f=B.next();!f.done;f= B.next())if(f=f.value,f.isActive){B=f;break a}B=void 0}F==="captions"&&(B==null?void 0:B.topLeftCornerX)!==void 0&&(B==null?void 0:B.topLeftCornerY)!==void 0&&(B==null?void 0:B.width)!==void 0&&(B==null?void 0:B.height)!==void 0&&Z.api.RX({top:B.topLeftCornerY,right:1-B.topLeftCornerX-B.width,bottom:1-B.topLeftCornerY-B.height,left:B.topLeftCornerX})}); this.events.N(q,"videodatachange",function(F){var B=Z.api.getVideoData();Z.D=void 0;Z.K.clear();Z.api.WZ("compositeembargo",1);var f=B==null?void 0:B.hH.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(f==null?0:f.length)?W67(Z,f.filter(function(D){return An9(Z,D)})):(B==null?0:B.cueRanges)&&W67(Z,B.cueRanges.filter(function(D){return An9(Z,D)})); F==="dataupdated"&&(B==null?void 0:B.compositeLiveStatusToken)!==Z.G&&(Z.G=B==null?void 0:B.compositeLiveStatusToken,Z.api.CG())}); this.events.N(q,g.UK("compositeembargo"),function(F){var B;if(((B=Z.D)==null?void 0:B.id)!==F.id&&(Z.api.vE(!0),Z.K.has(F.id))){var f=Z.K.get(F.id);B=Z.api.getVideoData();f=g.E(f);for(var D=f.next();!D.done;D=f.next()){var G=void 0;D=(G=D.value.compositeEmbargo)==null?void 0:G.embargoStatusToken;B.CH!==D&&(B.CH=D,Z.api.CG());tL8(Z,F)}}}); this.events.N(q,g.s2("compositeembargo"),function(F){var B;if(((B=Z.D)==null?void 0:B.id)===F.id&&(Z.api.vE(!1),Z.K.has(F.id))){if(F=Z.api.getVideoData())F.CH=void 0;Z.api.CG();tL8(Z)}}); this.events.N(q,"heartbeatRequest",function(F){Z.compositeVideoState!==null&&(F.playbackState||(F.playbackState={}),F.playbackState.compositeVideoState=Z.compositeVideoState)}); this.events.N(q,"internalaudioformatchange",function(F,B){var f=Z.api.getVideoData(void 0,!0);f==null||f.iL("atrkchg",{id:F,m:B});if(f&&MI(f))for(B=Z.api.getAvailableAudioTracks(),B=g.E(B),f=B.next();!f.done;f=B.next())if(f.value.getLanguageInfo().getId()===F){Z.api.C().eU=F;break}}); this.events.N(q,"onPlaybackAudioChange",function(){Z.api.CG();var F=q.getVideoData();if(F==null?0:F.C().U("html5_preload_on_mosaic_audio_track_change")){if(F==null)F=void 0;else{var B,f,D,G;F=(G=(B=F.playerResponse)==null?void 0:(f=B.playerConfig)==null?void 0:(D=f.compositeVideoConfig)==null?void 0:D.sourceConfigs)!=null?G:[]}if(f=F)for(B=q.getAudioTrack().fB.getId(),f=g.E(f),D=f.next();!D.done;D=f.next())for(D=D.value,F=void 0,G=g.E((F=D.audioTracks)!=null?F:[]),F=G.next();!F.done;F=G.next())F.value.id=== B&&q.preloadVideoByPlayerVars({videoId:D.videoId,Dd:!0},1)}}); hC(q,"setCompositeParam",function(F){Z.compositeVideoState=F}); this.api.U("web_watch_enable_multiview_manager")&&hC(q,"setCompositeVideoOverlayRendererComponent",function(F){Z.setCompositeVideoOverlayRendererComponent(F)})}; pWk=function(q){return g.yA(q.info.TP,function(Z){return Z.type===3})}; QG=function(q){var Z={ns:q.Hg,el:q.eventLabel,cpn:q.clientPlaybackNonce,ver:2,cmt:q.K(q.D),fmt:q.ac,fs:q.Tb?"1":"0",rt:q.K(q.bb),adformat:q.adFormat,content_v:q.contentVideoId,euri:q.lx,lact:q.Lp,live:q.hC,cl:(814261735).toString(),mos:q.Lm,state:q.playerState,volume:q.SW};q.subscribed&&(Z.subscribed="1");Object.assign(Z,q.J0);q.V==="all"?Object.assign(Z,q.j$):q.V==="once"&&q.S&&Object.assign(Z,q.j$);q.autoplay&&(Z.autoplay="1");q.X3&&(Z.sautoplay="1");q.w2&&(Z.dni="1");!q.Z&&q.WG&&(Z.epm=dP8[q.WG]); q.isFinal&&(Z["final"]="1");q.o_&&(Z.splay="1");q.KB&&(Z.delay=q.KB);q.HG&&(Z.hl=q.HG);q.region&&(Z.cr=q.region);q.userGenderAge&&(Z.uga=q.userGenderAge);q.userAge!==void 0&&q.vG&&(Z.uga=q.vG+q.userAge);q.BG!==void 0&&(Z.len=q.K(q.BG));!q.Z&&q.experimentIds.length>0&&(Z.fexp=q.experimentIds.toString());q.X!==null&&(Z.rtn=q.K(q.X));q.GE&&(Z.feature=q.GE);q.R6&&(Z.ctrl=q.R6);q.qB&&(Z.ytr=q.qB);q.Jn&&(Z.afmt=q.Jn);q.offlineDownloadUserChoice&&(Z.ODUC=q.offlineDownloadUserChoice);q.Dl&&(Z.lio=q.K(q.Dl)); q.Z?(Z.idpj=q.QC,Z.ldpj=q.yC,q.delayThresholdMet&&(Z.dtm="1"),q.PG!=null&&(Z.rti=q.K(q.PG)),q.EY&&(Z.ald=q.EY),q.compositeLiveIngestionOffsetToken&&(Z.clio=q.compositeLiveIngestionOffsetToken)):q.adType!==void 0&&(Z.at=q.adType);q.LB&&(q.S||q.Z)&&(Z.size=q.LB);q.S&&q.j.length&&(Z.pbstyle=q.j.join(","));q.G0!=null&&(q.S||q.Z)&&(Z.inview=q.K(q.G0));q.Z&&(Z.volume=C$(q,g.DC(q.segments,function(B){return B.volume})),Z.st=C$(q,g.DC(q.segments,function(B){return B.startTime})),Z.et=C$(q,g.DC(q.segments, function(B){return B.endTime})),cU(q.segments,function(B){return B.playbackRate!==1})&&(Z.rate=C$(q,g.DC(q.segments,function(B){return B.playbackRate}))),cU(q.segments,function(B){return B.D!=="-"})&&(Z.als=g.DC(q.segments,function(B){return B.D}).join(",")),cU(q.segments,function(B){return B.previouslyEnded})&&(Z.pe=g.DC(q.segments,function(B){return""+ +B.previouslyEnded}).join(","))); Z.muted=C$(q,g.DC(q.segments,function(B){return B.muted?1:0})); cU(q.segments,function(B){return B.visibilityState!==0})&&(Z.vis=C$(q,g.DC(q.segments,function(B){return B.visibilityState}))); cU(q.segments,function(B){return B.connectionType!==0})&&(Z.conn=C$(q,g.DC(q.segments,function(B){return B.connectionType}))); cU(q.segments,function(B){return B.K!==0})&&(Z.blo=C$(q,g.DC(q.segments,function(B){return B.K}))); cU(q.segments,function(B){return!!B.G})&&(Z.blo=g.DC(q.segments,function(B){return B.G}).join(",")); cU(q.segments,function(B){return!!B.compositeLiveStatusToken})&&(Z.cbs=g.DC(q.segments,function(B){return B.compositeLiveStatusToken}).join(",")); cU(q.segments,function(B){return!!B.heartbeatLoggingToken})&&(Z.hb_data=g.DC(q.segments,function(B){return B.heartbeatLoggingToken}).join(",")); cU(q.segments,function(B){return B.S!=="-"})&&(Z.cc=g.DC(q.segments,function(B){return B.S}).join(",")); cU(q.segments,function(B){return B.clipId!=="-"})&&(Z.clipid=g.DC(q.segments,function(B){return B.clipId}).join(",")); if(cU(q.segments,function(B){return!!B.audioId})){var F="au"; q.S&&(F="au_d");Z[F]=g.DC(q.segments,function(B){return B.audioId}).join(",")}Ec()&&q.uL&&(Z.ctt=q.uL,Z.cttype=q.Gb,Z.mdx_environment=q.mdxEnvironment); q.yd&&(Z.etype=q.zP!==void 0?q.zP:0);q.I_&&(Z.uoo=q.I_);q.livingRoomAppMode&&q.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(Z.clram=VLk[q.livingRoomAppMode]||q.livingRoomAppMode);q.G?PfB(q,Z):(Z.docid=q.videoId,Z.referrer=q.referrer,Z.ei=q.eventId,Z.of=q.JN,Z.osid=q.osid,Z.vm=q.videoMetadata,q.adQueryId&&(Z.aqi=q.adQueryId),q.autonav&&(Z.autonav="1"),q.playlistId&&(Z.list=q.playlistId),q.jA&&(Z.ssrt="1"),q.Rs&&(Z.upt=q.Rs));q.S&&(q.embedsRct&&(Z.rct=q.embedsRct),q.embedsRctn&&(Z.rctn= q.embedsRctn),q.compositeLiveIngestionOffsetToken&&(Z.clio=q.compositeLiveIngestionOffsetToken));q.Oc&&(Z.host_cpn=q.Oc);return Z}; eog=function(q,Z,F,B){Gf.call(this,"survey-interstitial",q,Z,F,B)}; dp=function(q,Z,F,B){sk.call(this);var f=this;this.S=-1;this.D={};this.G=new g.im(this.Z,0,this);g.y(this,this.G);this.K=new g.im(function(){f.jU()||(f.G.start(Math.random()*F),f.K.start(Z))},q,this); g.y(this,this.K);B.subscribe("fairplay_next_need_key_info",this.j,this)}; JV=function(q,Z,F){var B=0;return function(f){g.W5.clearTimeout(B);var D=arguments;B=g.W5.setTimeout(function(){q.apply(F,D)},Z)}}; Xn=function(q,Z){return Z>=q.hq()-hz(q)}; hd=function(q){return q?function(){try{return q.apply(this,arguments)}catch(Z){g.mM(Z)}}:q}; ToK=function(q,Z){q.D=Z}; MLZ=function(q){q=q.getAttribute("aria-label");return q==null||q==void 0?"":String(q)}; of=function(q,Z){return q.B.C().U(Z)}; mu=function(q,Z,F){if(F===void 0?0:F)q.j=!0;++q.Z;F=6E4*Math.pow(2,q.Z);F=(0,g.Le)()+F;q.S.set(Z.info.id,F)}; Ya=function(q,Z,F,B,f){B=oyD(B,Z);Rh(q,F,B,f);B&&!ra(B)&&$p(q.Ec);return q}; g.ch=function(q,Z){q.sort(Z||wZ)}; Yy=function(q){return qOy(q)?q:RW(q)?new aw(function(Z,F){q.then(Z,F)}):new aw(function(Z){Z(q)})}; I3X=function(q){q.length===1||g.yA(q,function(F){return!!F.range}); for(var Z=1;Z1)return Y3(q,q.D-1);if(q.policy.V)return Y3(q,q.D+1)}return q.D}; Uh9=function(q,Z,F,B,f){var D=F.DRIFT_FROM_HEAD_MS&&!Number.isNaN(F.DRIFT_FROM_HEAD_MS)?Math.trunc(F.DRIFT_FROM_HEAD_MS):0,G=Dh8.exec(Z);G=G!=null&&G.length>=2?G[1]:"";var n=Gty.test(Z),b=ziG.exec(Z);b=b!=null&&b.length>=2?b[1]:"";var N=nyK.exec(Z);N=N!=null&&N.length>=2&&!Number.isNaN(Number(N[1]))?Number(N[1]):1;var S=boD.exec(Z);S=S!=null&&S.length>=2?S[1]:"0";var l=tz(q.player.C().JW),U=q.player.getVideoData(1),u=g.CN(U.uL,!0),P="BISCOTTI_ID"in F?F.BISCOTTI_ID:"";NM6(q,u,Z,P.toString(),q.player.C(), U);U={splay:!1,lactMilliseconds:F.LACT.toString(),playerHeightPixels:Math.trunc(F.P_H),playerWidthPixels:Math.trunc(F.P_W),vis:Math.trunc(F.VIS),signatureTimestamp:20363,autonavState:S0(q.player.C())};B&&(B={},cwD(B,F.YT_REMOTE)&&(U.mdxContext=B));if(B=gyg.includes(l)?void 0:g.$0("PREF")){for(var W=B.split(RegExp("[:&]")),H=0,X=W.length;H1&&Q[1].toUpperCase()==="TRUE"){u.user.lockedSafetyMode=!0;break}}U.autoCaptionsDefaultOn= SOB(B)}Z=lbb.exec(Z);(Z=Z!=null&&Z.length>=2?Z[1]:"")&&b&&(u.user.credentialTransferTokens=[{token:Z,scope:"VIDEO"}]);Z={contentPlaybackContext:U};G={adBlock:Math.trunc(F.AD_BLOCK),params:G,breakIndex:N,breakPositionMs:S,clientPlaybackNonce:F.CPN,topLevelDomain:l,isProxyAdTagRequest:n,context:u,adSignalsInfoString:l5(Kj(P.toString())),overridePlaybackContext:Z};f!==void 0&&(G.cueProcessedMs=Math.round(f).toString());b&&(G.videoId=b);F.LIVE_TARGETING_CONTEXT&&(G.liveTargetingParams=F.LIVE_TARGETING_CONTEXT); F.AD_BREAK_LENGTH&&(G.breakLengthMs=Math.trunc(F.AD_BREAK_LENGTH*1E3).toString());D&&(G.driftFromHeadMs=D.toString());G.currentMediaTimeMs=Math.round(q.player.getCurrentTime(1)*1E3);(q=q.player.getGetAdBreakContext())&&(G.getAdBreakContext=q);return G}; YP=function(){return["metadata_type_ad_placement_config"]}; uj8=function(){return{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]}}; g.VW=function(){var q=this;this.promise=new Promise(function(Z,F){q.resolve=Z;q.reject=F})}; QQ=function(q){var Z,F,B;return q.playerResponse&&q.playerResponse.paidContentOverlay&&q.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.C((Z=q.BG)==null?void 0:(F=Z.playerOverlays)==null?void 0:(B=F.playerOverlayRenderer)==null?void 0:B.playerDisclosure,PFD)||null}; rRK=function(q){return!!q.KK||!!q.Aa||!!q.iD||!!q.uD||q.FI}; p$=function(q,Z){try{if(Z.length){q.Dl||(q.Dl=F0());var F=wgk(Z),B=WvX(q.element,q.K.D.S),f=B.x,D=B.y;q.S=new gV(Math.round(D),Math.round(f)+F.boundingClientRect.width,Math.round(D)+F.boundingClientRect.height,Math.round(f));q.D=d_k(q,q.S);var G=uxG(F.intersectionRect);q.j=Pg(G,q.S.left-G.left,q.S.top-G.top)}}catch(n){q.unobserve(),pI(299,n)}}; F6D=function(q,Z,F,B,f,D,G){var n=nK(q.K.get(),Z);return yRg(q,n,Z,new HR(q.D,f,["normal"]),[new g4(q.D,F),new $H(q.D,n),new HR(q.D,B,["error"])],D,G)}; Lvk=function(q,Z){Z&&Z.screen&&(q.G=new g.d8(Z.screen.width,Z.screen.height))}; Hob=function(q){switch(q){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}}; Ae=function(q,Z){for(var F in Z)if(xu(Z[F])){if(F in q&&!xu(q[F]))throw Error("Cannot merge an object into a non-object.");F in q||(q[F]={});Ae(q[F],Z[F])}else if(vh(Z[F])){if(F in q&&!vh(q[F]))throw Error("Cannot merge an array into a non-array.");F in q||(q[F]=[]);PE7(q[F],Z[F])}else q[F]=Z[F];return q}; Ew=function(q){q=q[KW];return q instanceof SA?q:null}; Qn=function(q,Z,F,B){Z=Z===void 0?0:Z;F=F===void 0?q.length:F;var f=0;for(B&&(f=Qn(B));Z0){Z=g.E(Z.TP);for(var F=Z.next();!F.done;F=Z.next()){var B=void 0;q+=((B=F.value.range)==null?void 0:B.length)||0}return q}if(Z.Ct.length>0)for(F=g.E(Z.Ct),B=F.next();!B.done;B=F.next())q+=B.value.Xq||0;return q+Z.QB}; xhZ=function(q,Z){Z=(Z.jC+1)*1E3;var F=void 0;q=g.E(q.Bg.values());for(var B=q.next();!B.done;B=q.next()){var f=B.value;B=f.trigger;f=f.slot;B instanceof GS&&B.breakDurationMs<=Z&&(!F||B.breakDurationMs>F.trigger.breakDurationMs)&&(F={slot:f,trigger:B})}return F}; I6=function(q,Z,F){return VUb(q)?new dl(Math.max(Z,q.Rh.startTimeMs/1E3),Math.min(F,q.Rh.endTimeMs/1E3)):new dl(Z,F)}; Qwy=function(q){q.Z=q.startTime;q.V=q.duration;q.j=q.Z+q.V}; kt=function(q){return q.B.C().experiments.qp("html5_load_ads_instead_of_cue")}; ARk=function(q){var Z=[];q=g.E(q.Bg.values());for(var F=q.next();!F.done;F=q.next())F=F.value.trigger,F instanceof GS&&Z.push(F.breakDurationMs);return Z}; QM6=function(q,Z){mx(q,1,Z.audioCodec);mx(q,2,Z.numChannels);mx(q,3,Z.maxBitrateBps);mx(q,6,Z.spatialCapabilityBitmask)}; XgD=function(q){var Z={},F={};q=g.E(q);for(var B=q.next();!B.done;B=q.next()){var f=B.value,D=f.split("|");f.match(g.vyk)?(B=Number(D.pop()),isNaN(B)?F[f]="?":(D=D.join("|"),(f=Z[D])?(D=f[f.length-1],B===D.end+1?D.end=B:f.push({start:B,end:B})):Z[D]=[{start:B,end:B}])):F[f]="?"}q=g.E(Object.keys(Z));for(B=q.next();!B.done;B=q.next())B=B.value,F[B]=Z[B].map(function(G){return G.start+"-"+G.end}).join(","); return F}; Ggk=function(q){var Z=g.D4(q.Z);g.yn(Z,function(F){F.EH(q.G)})}; GZ8=function(q,Z){g.Wv(q.info.D.info)||q.info.D.info.cL();q.S=Z;if(g.Wv(q.info.D.info)){var F=g.Xd(q);q=q.info.D.D;for(var B=NaN,f=NaN,D=0;on(F,D);){var G=qg(F,D);isNaN(B)&&(G.type===1936286840?B=G.data.getUint32(G.dataOffset+8):G.type===1836476516&&(B=g.dC(G)));if(G.type===1952867444){!B&&q&&(B=Vq(q));var n=g.EyB(G);isNaN(f)&&(f=Math.round(Z*B)-n);var b=G;n+=f;if(b.data.getUint8(b.dataOffset)){var N=b.data;b=b.dataOffset+4;N.setUint32(b,Math.floor(n/4294967296));N.setUint32(b+4,n&4294967295)}else b.data.setUint32(b.dataOffset+ 4,n)}D=PV(G.type)?D+8:D+G.size}return!0}F=new EW(g.Xd(q));q=q.Z?F:new EW(new DataView(q.info.D.D.buffer));B=F$(q);q=F.pos;F.pos=0;if(B1(F)&&fa(F,231))if(f=$d(F,!0),Z=Math.floor(Z*1E9/B),Math.ceil(Math.log(Z)/Math.log(2)/8)>f)Z=!1;else{for(B=f-1;B>=0;B--)F.D.setUint8(F.pos+B,Z&255),Z>>>=8;F.pos=q;Z=!0}else Z=!1;return Z}; Kv8=function(){return hk(wn(),function(q){return""+q})}; Ot=function(q){fX.call(this,q);this.events=new g.pO(q);g.y(this,this.events);hC(q,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));hC(q,"setCreatorEndscreenHideButton",this.D.bind(this))}; $hD=function(q){q&&(q.t7=void 0,q.IU=!0);return je(q)}; Up=function(q,Z){this.type=q||"";this.id=Z||""}; iok=function(q){var Z=Qt;if(abb(Z,q)){switch(q.sf()){case 0:var F=function(){return null}; case 2:F=function(){return mhK(Z,q.kx)}; break;case 1:F=function(){return OM(Z,q.kx)}}for(var B=F();B;B=F())abb(Z,B)}}; kt6=function(q,Z,F){g.mM(F);q.S&&(F instanceof DOMException&&(Z+=";n."+F.name+";m."+F.message),q.S(Z))}; syX=function(q){var Z=null,F="Tu navegador no permite cambiar el volumen. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK".split(/\$(BEGIN|END)_LINK/);Z=new g.$P(q.B,{Y:"span",rU:["ytp-popup","ytp-generic-popup"],L:{tabindex:"0"},T:[F[0],{Y:"a",L:{href:"https://support.google.com/youtube/?p=noaudio",target:q.B.C().PG},Ka:F[2]},F[4]]},100,!0);g.y(q,Z);Z.hide();Z.subscribe("show",function(B){q.B.kq(Z,B)}); g.C5(q.B,Z.element,4)}; WWX=function(q){q.j||(q.j=!0,g.iJ(q.SS,q))}; qVD=function(q,Z){return q.Uc!==Z.Uc&&Z.Uc!==q.Uc+1||q.type!==Z.type?!1:z$(q,Z)?!0:Math.abs(q.Z-Z.Z)<=1E-6&&q.Uc===Z.Uc?!1:rWb(q,Z)}; kc=function(q,Z,F){g.J.call(this);this.position=jyZ.clone();this.eZ=this.lM();this.Qj=-2;this.timeCreated=Date.now();this.jz=-1;this.mx=Z;this.Wq=null;this.AT=!1;this.mq=null;this.opacity=-1;this.requestSource=F;this.BYp=!1;this.p9=function(){}; this.qn=function(){}; this.rp=new L1Z;this.rp.wm=q;this.rp.D=q;this.DL=!1;this.tH={tA:null,jO:null};this.LN=!0;this.hN=null;this.jq=this.zFn=!1;PT().j++;this.tW=this.ey();this.ZS=-1;this.bk=null;this.hasCompleted=this.KrP=!1;this.Be=new UJ;isD(this.Be);H47(this);this.requestSource==1?fF(this.Be,"od",1):fF(this.Be,"od",0)}; EJ=function(q,Z){Z=Z===void 0?0:Z;var F,B,f,D,G,n,b,N,S,l,U,u;return g.h(function(P){switch(P.D){case 1:F=hi(E6().D);if(g.cz("att_fet_ks"))return g.s4(P,7),g.R(P,ol(q,F),9);g.s4(P,4);return g.R(P,IUK(q,F),6);case 6:G=P.K;f=G.pLs;D=G.R0p;B=G;g.jB(P,3);break;case 4:return g.If(P),g.bh(Error("Failed to fetch attestation challenge after "+(Z+" attempts; not retrying for 24h."))),tk(q,864E5),P.return({challenge:"",GQ:{},DE:void 0,bgChallenge:void 0});case 9:B=P.K;if(!B)throw Error("Fetching Attestation challenge returned falsy"); if(!B.challenge)throw Error("Missing Attestation challenge");f=B.challenge;D=L8(f);if("c1a"in D&&(!B.bgChallenge||!B.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.jB(P,3);break;case 7:n=g.If(P);g.bh(n);Z++;if(Z>=5)return g.bh(Error("Failed to fetch attestation challenge after "+(Z+" attempts; not retrying for 24h."))),tk(q,864E5),P.return({challenge:"",GQ:{},DE:void 0,bgChallenge:void 0});b=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return P.return(new Promise(function(W){g.Aw(0, function(){W(EJ(q,Z))},b)})); case 3:N=Number(D.t)||7200;tk(q,N*1E3);S=void 0;if(!("c1a"in D&&B.bgChallenge)){P.An(10);break}l=Ib7(B.bgChallenge);g.s4(P,11);return g.R(P,uq7(E6(),l),13);case 13:g.jB(P,12);break;case 11:return U=g.If(P),g.bh(U),P.return({challenge:f,GQ:D,DE:S,bgChallenge:l});case 12:return g.s4(P,14),S=new ih({challenge:l,JR:{GU:"aGIf"}}),g.R(P,S.tN,16);case 16:g.jB(P,10);break;case 14:u=g.If(P),g.bh(u),S=void 0;case 10:return P.return({challenge:f,GQ:D,DE:S,bgChallenge:l})}})}; g.Hf=function(q){switch(vL(q)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; TZ9=function(q,Z){Z.Jm&&q.Jm.push.apply(q.Jm,Z.Jm);Z.wV&&q.wV.push.apply(q.wV,Z.wV)}; G1=function(q,Z,F){Cv.push({payloadName:q,payload:F,QxF:void 0,options:Z});hD||(hD=CFD())}; P9=function(q,Z){Z=(Z=Z===void 0?0:Z)?Math.round(q.timestampOffset*Z)/Z:q.timestampOffset;q.Z.G&&Z&&(Z+=q.Z.G.D);return Z+q.getDuration()}; f8=function(q){this.value=q}; DU=function(q,Z){Z=Z===void 0?!1:Z;if(!q.mediaElement||!q.videoData.S)return!1;var F=Z;F=F===void 0?!1:F;var B=null;var f;if((f=q.videoData.S)==null?0:f.D){B=JSX(q,F);var D;(D=q.loader)==null||D.resume()}else Tw(q),q.videoData.o_&&(B=q.videoData.o_.ML());f=q.mediaElement.OF();F=!1;f&&f.equals(B)||(Li6(q,B),F=!0);g.p(q.playerState,2)||(B=q.t0,Z=Z===void 0?!1:Z,B.Z||!(B.S>0)||B.mediaElement&&B.mediaElement.getCurrentTime()>0||(Z={V5:"seektimeline_resumeTime",mR:Z},B.videoData.PG||(Z.seekSource=15), B.seekTo(B.S,Z)));a:{Z=F;if(Im(q.videoData)){if(!q.videoData.sI())break a}else if(!g.b2(q.videoData))break a;if(q.mediaElement)if((B=q.videoData.Z)&&q.mediaElement.H2()){f=q.mediaElement.QO();if(q.JP)if(f!==q.JP.element)Yi(q);else if(Z&&B.flavor==="fairplay"&&!Ip())Yi(q);else break a;if(q.U("html5_report_error_for_unsupported_tvos_widevine")&&Ip()&&B.flavor==="widevine")q.PL("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{q.JP=new eH(f,q.videoData,q.J,q.mediaElement); q.JP.subscribe("licenseerror",q.UV,q);q.JP.subscribe("qualitychange",q.PbU,q);q.JP.subscribe("heartbeatparams",q.EE,q);q.JP.subscribe("keystatuseschange",q.US,q);q.JP.subscribe("ctmp",q.iL,q);Z=g.E(q.Rj.keys);for(B=Z.next();!B.done;B=Z.next())B=q.Rj.get(B.value),q.JP.x_(B);q.U("html5_eme_loader_sync")||q.Rj.removeAll()}}else q.PL("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return F}; Vo=function(q,Z,F,B){for(var f=Number(Z.getAttribute("data-overlay-order"))||0,D=0,G=null,n=g.E(F.children),b=n.next();!b.done;b=n.next()){b=b.value;if(B&&b.classList.contains("ytp-overlay-inline-container")){G=b;break}if(f<(Number(b.getAttribute("data-overlay-order"))||0))break;D++}G?Vo(q,Z,G,!1):B?(q=document.createElement("div"),q.classList.add("ytp-overlay-inline-container"),q.setAttribute("data-overlay-order",""+f),G=q,G.appendChild(Z),bo(F,G,D)):bo(F,Z,D)}; Opy=function(q){return cU(q,function(Z){return"FORMAT_STREAM_TYPE_OTF"===Z.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; hiX=function(q,Z,F,B,f){Z=ph7(Z,B);Z!=null&&(F=dq7(q,F),f(Z,q),MjD(q,F))}; iu=function(q,Z,F,B,f){q=g.aWX(q,Z,F,f);q=new g.a4(q);B&&q.F2();return q}; kcD=function(q,Z){return q.SZ.S?!1:q.KZ.K?!1:typeof q.Dtypeof Z.D?!1:q.D0;){for(var b=0;b=0;)D.push(q.substring(B,f)),B=Math.min(q.indexOf("&",f)+1||F,F);D.push(q.slice(B));return D.join("").replace(osK,"$1")}; c0Z=function(q){if(!q)return 0;var Z=q.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return Z?(Number(Z[2])|0)*3600+(Number(Z[4])|0)*60+(Number(Z[6])|0):Number(q)|0}; $R=function(q){try{return VP(q)}catch(Z){return null}}; eV=function(q){g.w.call(this,{Y:"div",rU:["ytp-player-content","ytp-iv-player-content"],T:[{Y:"div",W:"ytp-free-preview-countdown-timer",T:[{Y:"span",Ka:"{{label}}"},{Y:"span",W:"ytp-free-preview-countdown-timer-separator",Ka:"\u2022"},{Y:"span",Ka:"{{duration}}"}]}]});this.api=q;this.D=null;this.S=this.K=0;this.N(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; L7K=function(q){var Z,F;if(F=(Z=q.player.getVideoData(1))==null||!Z.RJ)Z=q.player.C(),F=ge(Z)&&!g.Za(Z)&&Z.playerStyle==="desktop-polymer";F&&(q=q.player.getInternalApi(),q.addEventListener("updateKevlarOrC3Companion",BqX),q.addEventListener("updateEngagementPanelAction",qHg),q.addEventListener("changeEngagementPanelVisibility",Z9b),window.addEventListener("yt-navigate-start",acG))}; FSB=function(q){if(q!==GI)throw Error();}; OU=function(){this.D=BwG[0].toLowerCase()}; g.md=function(q,Z){CGZ.apply(null,[5,q instanceof g.Wz?q.tag:q,Z].concat(g.YB(g.CF.apply(2,arguments))))}; f0k=function(q,Z){if(q.policy.GR){var F=Z.info.Ml,B=k2(q.schedule);Z=Z.index.Te();F=Math.max(1,B/F);q.V=Math.round(Math.max(((F-1)*Z+q.policy.ac)/F,Z-q.policy.zs)*1E3)}}; Tl=function(q,Z,F){F=F===void 0?!1:F;Z.UL&&((F===void 0?0:F)||!Z.info.TP[0].D.nY())&&(q=q.G,q.uL&&!q.policy.e4&&(F=q.loader,F.Np.isManifestless&&cZ(F.Np,q.uL.Uc,!!q.Z.info.video)),q.uL=null,q.j=null,q.G=q.I_,q.S=q.G?q.S-q.Dl:NaN,Ep(q));Z.dispose()}; mhK=function(q,Z){return g.s3(q.K,function(F){return F.sf()==2&&F.kx==Z})}; qr=function(q,Z){q.K.add(Z)}; GIG=function(q,Z,F,B){km.call(this,q,{Y:"div",W:"ytp-ad-overlay-slot",T:[{Y:"div",W:"ytp-ad-overlay-container"}]},"invideo-overlay",Z,F,B);this.V=[];this.I_=this.k$=this.G=this.o_=this.WG=null;this.Oc=!1;this.Z=null;this.uL=0;q=this.cG("ytp-ad-overlay-container");this.BG=new Cp(q,45E3,6E3,.3,.4);g.y(this,this.BG);this.S=oT9(this);g.y(this,this.S);this.S.R_(q);this.K=MAk(this);g.y(this,this.K);this.K.R_(q);this.D=DkD(this);g.y(this,this.D);this.D.R_(q);this.hide()}; B6=function(q,Z){return Z.uy?Z.uy:Z.oG?CM(q.logger,function(){return Z.uy=YU(Z.oG)},"c"):[]}; QC=function(q){this.D=q}; zlX=function(q){for(var Z=0,F=0;F0?Math.min(f,U):U;return n(S).then(function(){D&&D(l,N-1);return G(ER(q,Z),N-1,u)})})} function n(b){return new g.at(function(N){setTimeout(N,b)})} f=f===void 0?-1:f;return G(ER(q,Z),F-1,B)}; MsG=function(q,Z){if(Z.D.info.video&&Z.G){var F=(Z.K+Z.S)/Z.duration,B=Z.D.info.Ml;F&&B&&(q.eU.sT(1,F/B),q.policy.S&&F/B>1.5&&q.loader.iL("overshoot",{sq:Z.Uc,br:F,max:B}))}}; ADG=function(q){q.dU=Math.max(q.dU,q.Z-q.Hg);q.uL=Math.max(q.uL,q.X-q.LB);q.Y$=0}; SHy=function(q,Z,F,B){function f(){q.jU()||B.call(q)} function D(){q.jU()||F.call(q)} for(var G=g.jm("SCRIPT"),n=!1,b,N=0;N1&&N.set(S[0].toString(),decodeURIComponent(S[1].toString()))}); N.has("bid")&&(b.bid=N.get("bid"));b.params=[];QHD.forEach(function(S){N.has(S)&&(S={key:S,value:N.get(S)},b.params.push(S))}); Ta8(q,b);Z.adSignalsInfo=b}Z.client.unpluggedAppInfo||(Z.client.unpluggedAppInfo={});Z.client.unpluggedAppInfo.enableFilterMode=!1;F=f.D.cosver;F!=null&&F!=="cosver"&&(Z.client.osVersion=F);F=f.D.cplatform;F!=null&&F!=="cplatform"&&F!==""&&(Z.client.platform=F);F=f.D.cmodel;F!=null&&F!=="cmodel"&&(Z.client.deviceModel=F);F=f.D.cplayer;F!=null&&F!=="cplayer"&&(Z.client.playerType=F);F=f.D.cbrand;F!=null&&F!=="cbrand"&&(Z.client.deviceMake=F);Z.user||(Z.user={});Z.user.lockedSafetyMode=!1;g.H_(f)&& lD8(Z,D,q.player.getPlayerState(1));if(q=f.livingRoomPoTokenId)Z.client.tvAppInfo=Object.assign({},Z.client.tvAppInfo,{livingRoomPoTokenId:q})}; S8y=function(q,Z,F){function B(n,b){(b=F[b])&&(D[n]=b)} function f(n,b){(b=F[b])&&(D[n]=G(b))} if(!F||g.q_(F))return q;var D=Object.assign({},q),G=Z?encodeURIComponent:function(n){return n}; f("DV_VIEWABILITY","doubleVerifyViewability");f("IAS_VIEWABILITY","integralAdsViewability");f("MOAT_INIT","moatInit");f("MOAT_VIEWABILITY","moatViewability");B("GOOGLE_VIEWABILITY","googleViewability");B("VIEWABILITY","viewability");return D}; Gr=function(q){RF.call(this);var Z=this;this.logger=q;this.JZ={uqa:function(){return Z.logger}, M9:function(){return Z.logger.JZ.M9()}}; this.addOnDisposeCallback(function(){return void Z.logger.dispose()})}; Rr=function(q){q=q.S.Cm();return q>0?q:1}; xk7=function(q,Z,F){var B;Jl(q.wU.get(),"ads_qua","cpn."+qc(q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((B=IB(q.XE.get(),2))==null?void 0:B.clientPlaybackNonce)+";qt."+Z+";clr."+F)}; AiX=function(q,Z){return new g.Mu("INCOMPATIBLE_DB_VERSION",{dbName:q.name,oldVersion:q.options.version,newVersion:Z})}; vs9=function(q,Z,F){q.yO.KD("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Z,F,void 0);q=g.E(q.K);for(var B=q.next();!B.done;B=q.next())B.value.ql(Z,F)}; KSg=function(q,Z){var F,B,f,D,G;return g.h(function(n){switch(n.D){case 1:q.jn.We("oprgz_s");if(!vtG){n.An(2);break}g.s4(n,3);return g.R(n,X5D(Z),5);case 5:return F=n.K,q.jn.We("oprgz_n"),q.jn.iL("oprsgz",{i:"n"}),n.return(F);case 3:B=g.If(n),q.jn.iL("gzerr",{impl:"native",err:""+B});case 2:if(f=q.jn.C().nD)try{var b=nO.oo(),N=f.WP(Z),S=f,l=N!=null?N:Z,U=l.byteOffset,u=l.byteLength,P=S.exports.getInflatedSize(U,u);if(P===0)throw Error("wasm_gz: bad input");var W=S.malloc(P),H=S.exports.inflateGzip(U, u,W);if(H)throw S.free(W),Error("wasm_gz: fail"+H);var X=new Uint8Array(S.exports.memory.buffer,W,P);N&&f.free(N.byteOffset);var Q=f.sU(X);nO.q2("gzwb",b,Math.ceil(Q.byteLength/16));D=Q;q.jn.We("oprgz_w");q.jn.iL("oprsgz",{i:"w"});return n.return(D)}catch(a){q.jn.iL("gzerr",{impl:"wasm",err:""+a})}b=nO.oo();N=g.XZ8(new g.EsD(Z));nO.q2("gzjb",b,Math.ceil(N.byteLength/16));G=N;q.jn.We("oprgz_p");q.jn.iL("oprsgz",{i:"j"});return n.return(G)}})}; g.DA=function(q){return q.indexOf("?")!==-1?(q=(q||"").split("#")[0],q=q.split("?",2),lX(q.length>1?q[1]:q[0])):{}}; Au=function(q){var Z=q3();q=Z?Z.createHTML(q):q;return new Bp(q)}; xgD=function(q,Z){var F=$y(q.videoTrack).find(function(B){return B.startTime>=Z&&SBB(q,B.startTime,!1)}); return F&&F.startTime=0}else q=!1;return F||B||q?Z:null}; Jyy=function(){this.D=1;this.K=new rlB}; erg=function(q){q.D||(q.D=!0,q.api.logVisibility(q.element,!0))}; XAk=function(q){this.D=q;q.i6("/client_streamz/bg/po/cwsc",g.pW("su"),g.pW("mk"))}; dk7=function(q){g.e0("yt-player-bandwidth",q,2592E3)}; V16=function(q,Z){if((q=q.Mp.Mi())&&(Z.errorCode==="fmt.unplayable"||Z.errorCode==="html5.invalidstate")){var F=q.Hf();Z.details.merr=F?F.toString():"0";Z.details.mmsg=q.nm()}}; g.el9=function(){return g.TP()&&(g.Vd("ps4 vr")||g.Vd("ps4 pro vr"))}; bj=function(q,Z,F,B){Z=Z===void 0?{}:Z;if(B===void 0?0:B)return Z.disabled=1,0;if(Sc(q.Z,lj.AV1_CODECS)&&Sc(q.Z,lj.HEIGHT)&&Sc(q.Z,lj.BITRATE))return Z.isCapabilityUsable=1,8192;try{var f=Twy();if(f&&!q.U("disable_av1_setting"))return Z.localPref=f}catch(n){}B=1080;f=navigator.hardwareConcurrency;f<=2&&(B=480);Z.coreCount=f;if(f=g.Ce(q.experiments,"html5_default_av1_threshold"))B=Z["default"]=f;if(q=q.Z.uL)Z.mcap=q,B=Math.max(B,q);if(F){var D,G;if(q=(D=F.videoInfos.find(function(n){return g8(n)}))== null?void 0:(G=D.K)==null?void 0:G.powerEfficient)B=8192,Z.isEfficient=1; F=F.videoInfos[0].video;D=Math.min(c9("1",F.fps),c9("1",30));Z.perfCap=D;B=Math.min(B,D);F.isHdr()&&!q&&(Z.hdr=1,B*=.75)}else F=c9("1",30),Z.perfCap30=F,B=Math.min(B,F),F=c9("1",60),Z.perfCap60=F,B=Math.min(B,F);return Z.av1Threshold=B}; Cf=function(q,Z){this.Qs=q;this.author="";this.RH=null;this.playlistLength=0;this.D=this.sessionData=null;this.V={};this.title="";if(Z){this.author=Z.author||Z.playlist_author||"";this.title=Z.playlist_title||"";if(q=Z.session_data)this.sessionData=gK(q,"&");var F;this.D=((F=Z.thumbnail_ids)==null?void 0:F.split(",")[0])||null;this.V=SZ(Z,"playlist_");this.videoId=Z.video_id||void 0;if(F=Z.list)switch(Z.listType){case "user_uploads":this.playlistId=(new Up("UU","PLAYER_"+F)).toString();break;default:if(q= Z.playlist_length)this.playlistLength=Number(q)||0;this.playlistId=u3(F).toString();if(Z=Z.video)this.videoId=(Z[0]||null).video_id||void 0}else Z.playlist&&(this.playlistLength=Z.playlist.toString().split(",").length)}}; $K=function(q){this.value=q}; BzK=function(q){return g.O4(q.D,function(Z){return Z.info.video?Z.info.video.stereoLayout===1:!1})}; oR7=function(q){q.BG?q.BG=!1:q.PG=(0,g.Le)();q.Dl=!1;q.WG=!1;return new Bv(q.X,q.S,q.D.reason)}; T6=function(q,Z,F){this.client=q;this.S3=Z;this.D=F}; qT=function(){var q=lG();return!(!q.webkitSupportsPresentationMode||typeof q.webkitSetPresentationMode!=="function")}; g.SY=function(q){if(!q.length)return"";try{if(ld)return ld.decode(q);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(q)}catch(G){}for(var Z=0,F=[],B=q.length;Z>10;D=56320|D&1023}Uo[f++]=D}}D=String.fromCharCode.apply(String,Uo); f<1024&&(D=D.substring(0,f));F.push(D)}return F.join("")}; zRB=function(q){var Z;for(Z=0;Z<286;Z++)q.wp[Z*2]=0;for(Z=0;Z<30;Z++)q.g7[Z*2]=0;for(Z=0;Z<19;Z++)q.MP[Z*2]=0;q.wp[512]=1;q.Q4=q.Dj=0;q.Wu=q.matches=0}; M1Z=function(){return{Y:"svg",L:{viewBox:"0 0 24 24"},T:[{Y:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{Y:"path",L:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}}; WHb=function(q){if(!q.G){var Z=q.D[q.K];q.G=new DataView(Z.buffer,Z.byteOffset,Z.length)}return q.G}; yRg=function(q,Z,F,B,f,D,G){q=[new B_(q.D,Z)];return{slotId:Z,slotType:F,slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:q,slotExpirationTriggers:f,bL:"core",clientMetadata:new zX([new Si(G({slotId:Z,slotType:F,slotPhysicalPosition:1,bL:"core",slotEntryTrigger:B,slotFulfillmentTriggers:q,slotExpirationTriggers:f}))]),adSlotLoggingData:D}}; bp=function(q){return!q.keySystemAccess&&!!hg()&&q.keySystem==="com.apple.fps.1_0"}; jj=function(q){var Z;if(!(Z=s_&&q.d2()&&q.sI()&&(q.drmProduct==="1"?!1:!0)&&q.U("html5_sabr_live_drm_streaming_xhr"))){Z=q.d2()&&!q.sI()&&s_;var F=q.d2()&&q.latencyClass!=="ULTRALOW"&&!q.isLowLatencyLiveStream&&q.U("html5_sabr_live_normal_latency_streaming_xhr"),B=q.isLowLatencyLiveStream&&q.U("html5_sabr_live_low_latency_streaming_xhr"),f=q.latencyClass==="ULTRALOW"&&q.U("html5_sabr_live_ultra_low_latency_streaming_xhr");Z=Z&&(F||B||f)}F=Z;Z=q.enableServerStitchedDai&&F&&q.U("html5_enable_sabr_ssdai_streaming_xhr"); F=!q.enableServerStitchedDai&&F;B=q.d2()&&!s_&&q.U("html5_enable_sabr_live_non_streaming_xhr");q=s_&&(q.tP()||Od(q)&&q.U("html5_enable_sabr_for_lifa_eligible_streams"));return Z||F||B||q}; qQ9=function(q){q=MM(q);if(q=="")return null;var Z=String(q.slice(0,4)).toLowerCase();if(("url("1||q&&q.split(")"),null;if(q.indexOf("(")>0){if(/"|'/.test(q))return null;Z=/([\-\w]+)\(/g;for(var F;F=Z.exec(q);)if(!(F[1].toLowerCase()in oKy))return null}return q}; ZfK=function(q){if(!q.D)return!1;q=q.K.get(q.D);return q&&q.event!=="predictStart"&&q.kV===5?(q==null?0:q.oC)&&Date.now()-(q==null?NaN:q.oC)>1E4?(q.kV=1,!1):!0:!1}; r7D=function(q,Z){Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next())if(F=F.value,F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var B=g.C(F.fulfillmentContent.fulfilledLayout,Es);if(B&&(B=g.C(B.renderingContent,ud))&&B.associatedPlayerBytesLayoutId===q)return F}}; muG=function(q,Z,F,B,f,D,G,n,b,N,S,l,U){q=KUG(q,Z,F,f,D,G,n,b,l,Hn(q,F,B.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),U);Z=q.WR;F=new is(q.hI);B=q.layoutExitSkipTriggers;N>0&&(Z.push(F),Z.push(new oU(N)),B=[]);Z.push(new et(S));return{dR:{layoutId:q.layoutId,layoutType:q.layoutType,ud:q.ud,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:q.bL,clientMetadata:new zX(Z),Xe:q.Xe, adLayoutLoggingData:q.adLayoutLoggingData},zQ:B,Ze:q.layoutExitMuteTriggers,fF:q.layoutExitUserInputSubmittedTriggers,N2:q.layoutExitUserCancelledTriggers,xa:q.xa}}; ZsX=function(){var q=pn();q.info||(q.info={});return q.info}; g.Xd=function(q){return k2K(q.K)}; aW=function(q,Z,F,B,f,D,G,n){this.D=q;this.X=Z;this.S=F;this.Z=B;this.G=f;this.j=D;this.K=G;this.V=n}; foK=function(){function q(F){return Z.call(q.src,q.listener,F)} var Z=FRy;return q}; k9=function(q){return ov(q.eW(),q.getCurrentTime())}; dCG=function(){PO==null&&(PO=new sD);return PO}; gD=function(q,Z){if(TS(q,Z)){Z=M1(q);var F=NN(q.D,q.pos,Z);q.pos+=Z;return F}}; gSK=function(){this.D=g.oa("ALT_PREF_COOKIE_NAME","PREF");this.K=g.oa("ALT_PREF_COOKIE_DOMAIN","youtube.com");var q=g.$0(this.D);q&&this.parse(q)}; Bp=function(q){this.D=q}; ru=function(q,Z,F){F=F===void 0?0:F;return g.Ce(q.Qs.experiments,Z)||F}; HkG=function(q,Z,F,B){var f=F,D=D1(Z.width,Z.height);q.Cu?f=FD?{width:Z.width,height:Z.width/f,aspectRatio:f}:ff?q.width=q.height*F:FF.time?Z:F},q[0])}; vG6=function(){function q(n,b){return n==null?b:n} var Z=wq(),F=Math.max(Z.length-1,0),B=Bm9(Z);Z=B.D;var f=B.K,D=B.S,G=[];D&&G.push(new RC([D.url,D.D?2:0],q(D.depth,1)));f&&f!=D&&G.push(new RC([f.url,2],0));Z.url&&Z!=D&&G.push(new RC([Z.url,0],q(Z.depth,F)));B=g.DC(G,function(n,b){return G.slice(0,G.length-b)}); !Z.url||(D||f)&&Z!=D||(f=Grg(Z.url))&&B.push([new RC([f,1],q(Z.depth,F))]);B.push([]);return g.DC(B,function(n){return leb(F,n)})}; rG=function(q,Z){q.UI[q.pending++]=Z>>>8&255;q.UI[q.pending++]=Z&255}; t3G=function(q){g.e0("yt-player-watch-later-pending",q)}; a5X=function(q,Z,F,B){if(q)if(Array.isArray(q)){var f=B;for(B=0;B500));B++);B=f}else if(typeof q==="object")for(f in q){if(q[f]){var D=f;var G=q[f],n=Z,b=F;D=typeof G!=="string"||D!=="clickTrackingParams"&&D!=="trackingParams"?0:(G=vp9(atob(G.replace(/-/g,"+").replace(/_/g,"/"))))?YfK(D+".ve",G,n,b):0;B+=D;B+=YfK(f,q[f],Z,F);if(B>500)break}}else F[Z]=bP(q),B+=F[Z].length;else F[Z]=bP(q),B+=F[Z].length;return B}; sh=function(q){try{return WO(q)==="open"}catch(Z){return!1}}; et=function(q){this.value=q}; yX=function(q,Z,F,B,f,D){D=D===void 0?function(){}:D; km.call(this,q,{Y:"div",W:"ytp-ad-survey-answer"},"survey-answer",Z,F,B);this.index=f;this.onSelected=D;this.D=null;this.toggledLoggingParams="";this.answer=this.cG("ytp-ad-survey-answer");this.hide()}; e8K=function(q){return hb9(Object.assign({},q,{Gn:q.callback,b6:function(){}}))}; vL=function(q){return q&&"status"in q?q.status:-1}; zYK=function(q,Z){Z=Z===void 0?{}:Z;var F,B;return g.h(function(f){if(f.D==1)return g.R(f,g.$M(),2);if(f.D!=3){F=f.K;if(!F)return f.return();iQ(q);B=AAb(q);return g.R(f,YG(B.actualName,Z),3)}return g.R(f,Wd(B.actualName,F),0)})}; nKy=function(q,Z){return V$(q,Z)?(q.wZ?q.wZ.start():q.Lu(),!0):!1}; KTy=function(){for(var q;q=E19.remove();){try{q.D.call(q.scope)}catch(Z){Zm(Z)}f58(bf8,q)}X2X=!1}; P6=function(q,Z){if(q+1<16&&((q|3)&11)>=10)for(var F=Z[z[1]];F;)Z[z[3]](Z[z[34]](--F,1)[0]);if(q>>1<29&&(q-5&11)>=9){Hs(3,Z);F=decodeURIComponent(Z[z[46]](z[19])||z[15])[z[37]](z[8]);var B=Z[z[23]]===z[60]&&F[z[1]]>1&&!!F[1]}(q-1|3)>=q&&(q-8|17)>5<4&&(q<<2&15)>=9){F=64;for(var f=[];++F-f[z[1]]-32;)switch(F){case 58:F=96;continue;case 91:F=44;break;case 65:F=47;continue;case 46:F=153;case 123:F-=58;default:f[z[3]](String[z[27]](F))}B=f}return B}; NRg=function(q,Z,F){g.kx(q.provider.J,g.he(q.provider.videoData)).then(function(B){var f=!1;Z.includes("&dt=")||Z.includes("&cotn=")?f=!0:q.provider.J.U("qoe_with_networkless")&&(f=!0);var D=q.provider.J.U("qoe_send_and_write"),G=q.provider.J;B=sB(Z,G,q.provider.J.pageId,q.provider.J.sendVisitorIdHeader?q.provider.videoData.visitorData:void 0,B);G.U("html5_simplify_pings")&&(B=B||{});B?(B.method="POST",B.postBody=F,rC(Z,B,{token:q.provider.videoData.j,nO:q.provider.videoData.Fk,mdxEnvironment:q.provider.videoData.mdxEnvironment}, G,void 0,f,D&&q.k$)):f?(f=q.provider.J.U("networkless_ajax"),G={method:"POST",postBody:F},D&&q.k$?xq().sendAndWrite(Z,G):f?g.QN(Z,{method:"POST",postBody:F}):xq().sendThenWrite(Z,G)):(D=F,D=D===void 0?"":D,CQG(Z,D)||g.ka(Z,void 0,void 0,void 0,D))})}; iw=function(q){if(!Z)var Z=window.location.href;var F=g.oi(q)[1]||null,B=g.Mg(q);F&&B?(q=g.oi(q),Z=g.oi(Z),q=q[3]==Z[3]&&q[1]==Z[1]&&q[4]==Z[4]):q=B?g.Mg(Z)===B&&(Number(g.oi(Z)[4]||null)||null)===(Number(g.oi(q)[4]||null)||null):!0;return q}; xHk=function(q){return q.displayName||q.name||"unknown type name"}; mO=function(q){var Z={};q=q.split("\r\n");for(var F=0;F>>1),b=void 0;F?b=Z.call(void 0,q[n],n,q):b=Z(B,q[n]);b>0?f=n+1:(D=n,G=!b)}return G?f:-f-1}; nVX=function(q,Z){Z=Z===void 0?{}:Z;q.P7=Z.P7===void 0?!1:Z.P7}; SQk=function(q,Z,F,B,f){B.vp?ez(q,4,"cue"):(q.j=Z,q.X=F,q.iL("sdai",{joinad:q.K,sg:q.j,st:q.X.toFixed(3)}),q.PG=Date.now(),ez(q,2,q.K===3?"staftpred":"join"),f.q7(B.SC))}; ln7=function(q,Z,F){!q.J.U("html5_tv_ignore_capable_constraint")&&g.em(q.J)&&(F=F.compose(q.JT(Z)));return F}; SB=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; S3g=function(q){q=pZ(q);q.gelInfos||(q.gelInfos={});return q.gelInfos}; g.ZY=function(q){q=q$(q);for(var Z=[],F=0;F0?F:0;F=B?Date.now()+B*1E3:0;if((B=B?g.o7.V3():g.o7.PW())&&window.JSON){typeof Z!=="string"&&(Z=JSON.stringify(Z,void 0));try{B.set(q,Z,F)}catch(f){B.remove(q)}}}; cV=function(q){q.uL&&clearTimeout(q.uL);q.uL=void 0;q.PG=!1}; ax9=function(q){fX.call(this,q);var Z=this;this.events=new g.pO(q);g.y(this,this.events);this.events.N(q,"basechromeinitialized",function(){Z.D=new eV(q);g.y(Z,Z.D);g.C5(q,Z.D.element,4);Z.D.hide()})}; QvK=function(q,Z){for(var F;;){if(q.e$===0&&(DL(q),q.e$===0)){if(Z===0)return 1;break}q.Qd=0;F=Pl(q,0,q.window[q.AZ]);q.e$--;q.AZ++;if(F&&(ry(q,!1),q.VC.vZ===0))return 1}q.qD=0;return Z===4?(ry(q,!0),q.VC.vZ===0?3:4):q.Wu&&(ry(q,!1),q.VC.vZ===0)?1:2}; WR8=function(q){if(g.cz("web_lifecycle_error_handling_killswitch"))return q();try{return q()}catch(Z){bkK(Z)}}; A3=function(q){this.Ec=rE(q,0,A3.messageId)}; Sc=function(q,Z){Z.name in q.V||(q.V[Z.name]=g29(q,Z));return q.V[Z.name]}; yo7=function(q,Z){mx(q,1,Z.AYL);mx(q,2,Z.dzn)}; EH=function(){C6.call(this)}; g.Pd=function(q,Z,F){for(var B=Object.assign({},q),f=g.E(Object.keys(Z)),D=f.next();!D.done;D=f.next()){D=D.value;var G=q[D],n=Z[D];if(n===void 0)delete B[D];else if(G===void 0)B[D]=n;else if(Array.isArray(n)&&Array.isArray(G))B[D]=F?[].concat(g.YB(G),g.YB(n)):n;else if(!Array.isArray(n)&&g.yF(n)&&!Array.isArray(G)&&g.yF(G))B[D]=g.Pd(G,n,F);else if(typeof n===typeof G)B[D]=n;else return Z=new g.M2("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:D,gXU:G,updateValue:n}),g.mM(Z), q}return B}; LRB=function(q){this.Ec=rE(q)}; Hf8=function(q){var Z;switch((Z=q.J.playerCanaryStage)==null?void 0:Z.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"}}; Of7=function(q){if(!vO(q)){var Z=yV(q.T3);Z&&!Z.created&&g0(q.T3)&&Z.create()}}; JS=function(q,Z){q=g.E(q.D.values());for(var F=q.next();!F.done;F=q.next()){F=g.E(F.value);for(var B=F.next();!B.done;B=F.next())if(B=B.value,B.layoutId===Z)return B}Yp("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.lO(Z)),layoutId:Z})}; nD9=function(q,Z){if(!Z)return!1;var F=q.api.Mi();if(F.H2()&&(F=F.QO())&&g.yT(F,Z))return F.controls;for(F=0;F-1&&(0,g.Le)()-q.uL>3E4&&(dk7(cM(q)),q.uL=(0,g.Le)(),q.Dl=!0)}; Hr=function(q){var Z=a5();$W(Z,q);return g.Eo(Z,xtk())}; t$Z=function(q,Z,F,B){var f=Ao7(Z,2)*1E3;if(f<=0)throw new m0(31,"TTM:Invalid");if(gj(Z,4))return new uq(q.logger,gj(Z,4),f);if(!Ao7(Z,3))return new Mi(q.logger,MD(Kx(Z,1)),f);if(!B)throw new m0(4,"PMD:Undefined");B=B(MD(Kx(Z,1)));if(!(B instanceof Function))throw new m0(16,"APF:Failed");q.j=Math.floor((Date.now()+f)/1E3);q=new vr(q.logger,B,Ao7(Z,3),f);q.addOnDisposeCallback(function(){return void F.resolve()}); return q}; ED=function(q){return JWy(g.oi(q)[5]||null)}; g.MA=function(q,Z,F){var B={},f;for(f in q)Z.call(F,q[f],f,q)&&(B[f]=q[f]);return B}; vKZ=function(q){var Z=[],F=[].concat(g.YB(q.O$));q.z0.forEach(function(G){Z.push(Object.assign({},G))}); for(var B=q.D,f=g.E(q.X.Uz()),D=f.next();!D.done;D=f.next())B=k_K(q,Z,F,D.value,B);Z.forEach(function(G){G.startTimeMs&&(G.startTimeMs+=q.timestampOffset*1E3)}); return{z0:Z,O$:F}}; X96=function(q,Z,F){q.D[Z]=F}; Ev=function(q){return q.N_||q.Mq!==void 0}; $4=function(q){return q&&q.baseUrl||""}; PK=function(q){q.onreadystatechange&&q.onreadystatechange.call(q)}; L0K=function(){return{m0:["metadata_type_valid_ad_message_renderer"],FN:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; EKG=function(){return g.Vd("smart-tv")&&g.Vd("samsung")}; g.GF=function(){return g.W5.ytPubsubPubsubInstance}; EMk=function(q,Z,F){if(q.policy.Qm&&q.policy.K)return!(q.K===1||q.K===2||!q.policy.oa&&q.K===3&&F>=q.G);if(q.K===1||q.K===2)return!1;if(q.K!==0&&Z===q.audioTrack){if(q.policy.K)return KRG(q.videoTrack,F)||KRG(q.videoTrack,F+1);q=ZW(q.videoTrack);if(F>(q?q.Uc:-1))return!1}return!0}; ii=function(q){this.GP=q;this.K=new Map;this.D=new Map;this.S=new Map}; UHk=function(q){if(!q.jU())if(q.J.U("html5_drm_set_server_cert")||Rn(q.D)){var Z=q.G.setServerCertificate();Z?Z.then(hd(function(F){q.J.Nl()&&q.publish("ctmp","ssc",{success:F})}),hd(function(F){q.publish("ctmp","ssce",{n:F.name, m:F.message})})).then(hd(function(){Dm(q)})):Dm(q)}else Dm(q)}; Tf=function(q){return q.FE==="9"||q.FE==="("||q.FE==="9h"||q.FE==="(h"}; ac=function(){}; m_=function(q,Z){this.K=Z;this.D=new g.xT({Y:"label",W:"ytp-ad-feedback-dialog-reason-label",T:[{Y:"input",W:"ytp-ad-feedback-dialog-reason-input",L:{type:"radio",name:"feedback-reason-group"}},{Y:"span",W:"ytp-ad-feedback-dialog-reason-text",Ka:g.HD(q)}]});this.S=this.D.cG("ytp-ad-feedback-dialog-reason-input")}; $tk=function(q){g.Lx.call(this,q,"ytp-settings-menu");var Z=this;this.SB=new g.o3(this.B);this.QG=this.aU=this.settingsButton=null;this.isInitialized=this.V0=!1;g.y(this,this.SB);this.hide();g.Sq(this,this.SB);q.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(f){Z.Lw(f)}); this.N(q,"highlightSettingsMenu",function(){Z.V0=!0;Z.Ic()}); this.N(q,"openSettingsMenuItem",function(f){if(f&&(Z.V0=!0,Z.Ic(),f==="menu_item_video_quality_advanced")){var D;(D=Z.aU)==null||D.open()}}); var F,B;((F=this.B.C())==null?0:(B=F.getWebPlayerContextConfig())==null?0:B.enableFullscreenComponentsFeature)&&this.N(this.element,"wheel",function(f){f.stopPropagation()})}; any=function(q){q.k$=0;q.j$=0;q.VO=0}; eE=function(q){q=KaB(q);return q===null?!1:q[0]==="com"&&q[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; DS=function(q){for(var Z=$d(q,!0),F=id(q),B=1;B10&&ak.shift()))}; QS8=function(q,Z){return q==Z?!0:q&&Z?q.left==Z.left&&q.width==Z.width&&q.top==Z.top&&q.height==Z.height:!1}; sd=function(q,Z,F){q.jU();q.D.get(Z)&&g.mM(Error("Extension name "+Z+" already registered"));q.D.set(Z,F)}; Vty=function(q){return{token:eQ(q,1),videoId:eQ(q,2)}}; qC=function(q){C6.call(this);this.G=q}; Ic=function(){function q(){throw Error();} Object.setPrototypeOf(q,q.prototype);return q}; hmb=function(q,Z){var F=q.B.C();g.Us(F)||F.controlsType!=="3"||q.B.Ca().bW(Z)}; Cx=function(q,Z,F){return hl(q,q.state|Z,null,F===void 0?null:F)}; Sr=function(q,Z,F,B,f){w1.call(this,"Mejora de voces",g.Wf.ue);this.B=q;this.S=Z;this.K=F;this.hasVoiceBoostAudioTrack=B;this.getVoiceBoostState=f;this.D=!1;this.Pg=this.B.U("html5_enable_new_audio_settings_menu")?q.HH().QG:q.HH();this.N(q,"videodatachange",this.Cw.bind(this));this.N(q,"onPlaybackAudioChange",this.Cw);this.B.U("html5_enable_new_audio_settings_menu")||this.setIcon(sZ8());this.subscribe("select",this.G,this);this.Cw()}; D68=function(q,Z,F){var B={Zv:q.Zv,MF:function(b,N){q.Mp.Ci(b,N)}, pk:q.policy.t3,M7:q.policy.S};q.Zv.K.j&&(B.yk=(q.videoTrack.D.info.Ml||0)+(q.audioTrack.D.info.Ml||0));q.policy.KR&&(B.jW=q.audioTrack.D.index.Te(),B.pk=!1);var f=dgK(Z,q.policy,q.G)?2:1;f!==q.uL&&(q.uL=f,Zu7(q));F=eYy(q,F);if(q.policy.Dl&&q.policy.S&&F.f5){for(var D=f="",G=g.E(F.f5),n=G.next();!n.done;n=G.next())n=n.value,q.videoData.sabrContextUpdates.has(n)||q.policy.Dl&&F.Pw&&F.Pw.type===n?f+="_"+n:D+="_"+n;q.loader.iL("sabrbldrqs",{ctxts:f,misctxts:D})}!Z.setData(F,q.policy,q.G)&&q.policy.Dl&& q.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);B=new QJ(q.policy,Z,q.Np,q.G,q,B,q.loader.Sq());h3(q.timing);q.policy.X&&q.loader.iL("sabrcrq",{rn:B.HE(),probe:Z.eM()});return B}; TR7=function(q){return q.linearAd!=null&&q.adVideoStart!=null}; Mtg=function(q,Z){q=g.Z1(q.components,Z.id,null);q==null&&g.bh(Error("Component not found for element id: "+Z.id));return q||null}; Qi=function(q){if(q.U("html5_onesie")&&q.errorCode)return!1;var Z=g.r1(q.Y$,"ypc");q.ypcPreview&&(Z=!1);return q.hP()&&!q.loading&&(g.x6(q)||g.r1(q.Y$,"heartbeat")||Z)}; D56=function(q){this.itag=q.itag;this.url=q.url;this.codecs=q.codecs;this.width=q.width;this.height=q.height;this.fps=q.fps;this.bitrate=q.bitrate;var Z;this.K=((Z=q.audioItag)==null?void 0:Z.split(","))||[];this.Rq=q.Rq;this.Ni=q.Ni||"";this.fB=q.fB;this.audioChannels=q.audioChannels;this.D=""}; ofb=function(q){q=q.charCodeAt(0);return"%"+(q>>4&15).toString(16)+(q&15).toString(16)}; vB=function(q,Z,F){this.K=q;this.G=Z;this.fields=F||[];this.D=new Map}; LUX=function(q,Z){Z=Z?Z.GE:!1;q.G||(q.G=Mj(27,q.K,Z));return q.G}; O57=function(){if(!G5.instance){var q=new G5;G5.instance=q}return G5.instance}; Rc=function(){p8.apply(this,arguments)}; kZ=function(q,Z){var F=this;this.K=q;this.GP=Z;this.D=function(B){return xm(F.K.get(),B)}}; $fK=function(q,Z,F,B){Z=Z===void 0?[]:Z;q.jU();var f=[],D=[];Z=g.E(Z);for(var G=Z.next();!G.done;G=Z.next())G=G.value,g.C(G,qgK)||g.C(G,ZHZ)?f.push(G):D.push(G);f=g.E(f);for(Z=f.next();!Z.done;Z=f.next())No(q,Z.value,F,B);D=g.E(D);for(f=D.next();!f.done;f=D.next())No(q,f.value,F,B)}; FPD=function(q){if(!(q.K<0)){var Z=g.$w(q.provider),F=Z-q.G;q.G=Z;q.playerState.state===8?q.playTimeSecs+=F:q.playerState.isBuffering()&&!g.p(q.playerState,16)&&(q.rebufferTimeSecs+=F)}}; cO=function(q){return qc(q.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; $2=function(q){ec9(eG);var Z=q.D;Z=Z==null||RL7&&Z!=null&&Z instanceof Uint8Array?Z:typeof Z==="string"?f$X(Z):null;return Z==null?Z:q.D=Z}; Bj6=function(q,Z,F,B,f,D){oP.call(this,q,Z,F,B);this.wU=f;this.vg=D;this.Fw=!0;qr(this.vg(),this);q=qc(F.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(F.ud,this.wU,q,F.layoutId)}; g.$P=function(q,Z,F,B){B=B===void 0?!1:B;g.xT.call(this,Z);var f=this;this.B=q;this.Dl=B;this.Z=new g.pO(this);this.fade=new g.L3(this,F,!0,void 0,void 0,function(){f.v4()}); g.y(this,this.Z);g.y(this,this.fade)}; Wq8=function(q){for(var Z=new Set,F=g.E(Object.values(q)),B=F.next();!B.done;B=F.next())B=B.value,B.length&&(B=B[0],B.height&&B.codecs.startsWith("vp09")&&Z.add(B.height));F=[];if(Z.size){B=g.E(Object.keys(q));for(var f=B.next();!f.done;f=B.next())if(f=f.value,q[f].length){var D=q[f][0];D.height&&Z.has(D.height)&&!D.codecs.startsWith("vp09")&&F.push(f)}}Z=g.E(F);for(F=Z.next();!F.done;F=Z.next())delete q[F.value]}; CO9=function(q,Z,F,B,f){this.B2=Z;this.D=F;this.visible=B;this.layoutId=f;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=q(this.triggerType)}; g.AV=function(q){return nv(document,q)}; fuB=function(q){var Z=[];q.D.forEach(function(F){F=g.E(F.values());for(var B=F.next();!B.done;B=F.next())Z.push(B.value.slot)}); return Z}; cB=function(q){g.w.call(this,{Y:"div",rU:["ytp-overlays-container"],T:[{Y:"div",W:"ytp-overlay-top-left"},{Y:"div",W:"ytp-overlay-top-right"},{Y:"div",W:"ytp-overlay-bottom-left"},{Y:"div",W:"ytp-overlay-bottom-right"}]});this.S=this.cG("ytp-overlay-top-left");this.G=this.cG("ytp-overlay-top-right");this.D=this.cG("ytp-overlay-bottom-left");this.K=this.cG("ytp-overlay-bottom-right");g.C5(q,this.element,4)}; Nl=function(q,Z,F){this.triggeringSlotId=Z;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=F||q(this.triggerType)}; vMb=function(q,Z,F){F=F===void 0?0:F;g.jJ(function(){Z.then(function(B){q.K.has(F)&&q.G&&q.G();var f=g.qx(F),D=g.q4(F);if(f&&D){var G={automatedLogEventSource:3},n;(B==null?0:(n=B.response)==null?0:n.trackingParams)&&g.y$(q.client,f,D,g.Td(B.response.trackingParams),!1,G);var b;(B==null?0:(b=B.playerResponse)==null?0:b.trackingParams)&&g.y$(q.client,f,D,g.Td(B.playerResponse.trackingParams),!1,G)}})})()}; Y4=function(q){this.state=q;this.plugins=[];this.S=void 0;this.G={};J3&&DE8(this.state)}; MlD=function(q,Z){if(!q.Gb){var F=Ub(q,"start",ub());F=q.fX.D(F).D;var B={id:"lidarv"};B.r=Z;B.sv="968";Xo!==null&&(B.v=Xo);g6(F,function(f,D){return B[f]=f=="mtos"||f=="tos"?D:encodeURIComponent(D)}); Z=GuD();g6(Z,function(f,D){return B[f]=encodeURIComponent(D)}); Z="//pagead2.googlesyndication.com/pagead/gen_204?"+szb(Ng(new V9,B));LB6(Z);q.Gb=!0}}; zzK=function(q,Z,F,B,f,D,G){Z={id:Z,namespace:G!=null?G:"appapi"};D==="chapter"?(Z.style=t3.CHAPTER_MARKER,Z.visible=!0):isNaN(f)||(D==="ad"?Z.style=t3.AD_MARKER:(Z.style=t3.TIME_MARKER,Z.color=f),Z.visible=!0);q.Go([new g.u8(F*1E3,B*1E3,Z)],1);return!0}; Ia=function(q){var Z=g.CF.apply(1,arguments);if(!xu(q)||Z.some(function(B){return!xu(B)}))throw Error("Only objects may be merged."); Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next())Ae(q,F.value)}; a16=function(q,Z,F){var B=q.Jn||q.app.Vs().getPlayerState();G$(q,!0);q.playback.seekTo(Z,F);q=q.app.Vs();Z=q.getPlayerState();B.isOrWillBePlaying()&&!Z.isOrWillBePlaying()?q.playVideo():B.isPaused()&&!Z.isPaused()&&q.pauseVideo()}; nf8=function(q,Z,F){F=F===void 0?q.C().schedule:F;var B,f,D,G,n,b,N,S,l,U,u,P,W,H,X,Q,a,m,c,e,Y,Zg,GZ,FD,Ny,qy;return g.h(function(y9){if(y9.D==1)return Z.fetchType="onesie",B=oNy(Z,q.getPlayerSize(),q.getVisibilityState()),f=new xx(q,B,F),g.R(y9,f.fetch(),2);D=y9.K;G={player_response:D};Z.loading=!1;n=q.gq.Wa;if(f.A8){b=g.E(f.A8.entries());for(N=b.next();!N.done;N=b.next())S=N.value,l=g.E(S),U=l.next().value,u=l.next().value,P=U,W=u,n.D.set(P,W,180),P===Z.videoId&&(H=W.ox(),Z.u1=H);n.bD=f}X=g.E(f.MR.entries()); for(Q=X.next();!Q.done;Q=X.next())a=Q.value,m=g.E(a),c=m.next().value,e=m.next().value,Y=c,Zg=e,n.K.set(Y,Zg,180);g.On(Z,G,!0);if(Z.loading||Qi(Z))return y9.return(Promise.resolve());n.D.removeAll();n.K.removeAll();Z.u1=[];GZ={};FD="onesie.response";Ny=0;Z.errorCode?(FD="auth",GZ.ec=Z.errorCode,GZ.ed=Z.errorDetail,GZ.es=Z.r3||"",Ny=2):(GZ.successButUnplayable="1",GZ.disposed=""+ +Z.jU(),GZ.afmts=""+ +/adaptiveFormats/.test(D),GZ.cpn=Z.clientPlaybackNonce);qy=new g.xX(FD,GZ,Ny);return y9.return(Promise.reject(qy))})}; Ehk=function(q,Z){g.J.call(this);var F=this;this.callback=q;this.K=Z;this.D=-Z;this.addOnDisposeCallback(function(){return void clearTimeout(F.timer)})}; AIk=function(){g.J.call(this);this.K=[];this.D=[];var q=g.ym("yt.gcf.config.hotUpdateCallbacks");q?(this.K=[].concat(g.YB(q)),this.D=q):(this.D=[],g.O9("yt.gcf.config.hotUpdateCallbacks",this.D))}; bHK=function(q){return q===-0x8000000000000?"BEFORE_MEDIA_START":q===0?"MEDIA_START":q===0x7ffffffffffff?"MEDIA_END":q===0x8000000000000?"AFTER_MEDIA_END":q.toString()}; fJ6=function(q){q.S=!0;return q}; gfD=function(q,Z,F){var B,f,D,G,n,b,N;return g.h(function(S){if(S.D==1){D=((B=Z)==null?void 0:(f=B.nK)==null?void 0:f.identity)||px;b=(G=Z)==null?void 0:(n=G.nK)==null?void 0:n.sessionIndex;var l=g.du(q.D.XR(D,{sessionIndex:b}));return g.R(S,l,2)}N=S.K;return S.return(Promise.resolve(Object.assign({},Nj7(F),N)))})}; aY=function(q){return Vt(q.adLayoutMetadata)?(q=g.C(q.renderingContent,VX))&&q.pings?!0:!1:!1}; SgB=function(q){return window.PressureObserver&&new window.PressureObserver(q)}; UEK=function(q){var Z=[];q=q.match(lug);for(var F=0;Fthis.policy.fq?!1:!0:!1)Z=null,this.policy.YI&& this.policy.BX?Z=[1]:W&&(Z=[]),Z!=null&&(this.policy.Tj&&Z.push(2),this.lk.set("defsel",Z.join(",")));this.Up=new oq(this,this.policy,this.lk,this.info.m6,this.timing,this.logger,B,l);this.l1=n||null;this.pL=e5G(this);WPG(this.Up);B=void 0;if(this.policy.NN||this.CR||this.policy.BG)B={method:"POST"},n=(0,g.HV)([120,0]),l={},this.policy.WJ&&G&&(G=bQ(void 0,G),l.xD=G),this.policy.h$&&this.oV&&(l.videoPlaybackUstreamerConfig=this.oV),this.policy.BG&&(G=this.info.G)&&Object.assign(l,G),Object.keys(l).length> 0?B.body=g.q7(l,g.a7):B.body=n;if(this.Ol&&this.oV){this.lk.set("iwts","1");B={method:"POST"};G={Wz:this.Ol*1E3};var X;n=(X=this.info.G)==null?void 0:X.FX;X=g.q7({kX:G,FX:n||void 0,videoPlaybackUstreamerConfig:this.oV},g.a7);B.body=X}try{this.xhr=p4(this.lk,this.policy.V,this.timing,q,B),this.Up.K.start(),D&&(this.yz=new g.im(this.AO,D,this),this.yz.start(D+(this.timing.Zv.V.Cm()||0)*1E3)),this.policy.Du&&n8(this.timing,this.fP()),g.iJ(function(){})}catch(Q){$Gg(this,Q,!0)}}; P2=function(q){var Z=q.K,F=q.D,B=Z[F+0],f=Z[F+1],D=Z[F+2];Z=Z[F+3];RB(q,q.D+4);return(B<<0|f<<8|D<<16|Z<<24)>>>0}; AX=function(q){fX.call(this,q);var Z=this;this.D=null;this.events=new g.pO(q);g.y(this,this.events);this.events.N(q,"applicationvideodatachange",function(){Z.gJ()})}; KRG=function(q,Z){var F;return!((F=q.V)==null||!F.Z.has(Z))||TWB(q.G,Z)}; Yz=function(q){return q.S?!1:!q.keySystemAccess&&!!hg()&&q.keySystem==="com.microsoft.playready"}; yqg=function(q){Z2(q)&&!q.nh&&(q.D=!0,q.Je&&Math.random()<=q.fA&&q.CE.Sw(q.sP),q.Wk(),q.wY.Bf()&&q.Kq(),q.wY.listen(q.wi,q.Kq.bind(q)),q.wY.listen(q.OE,q.Sv.bind(q)))}; LPD=function(q){for(var Z in VN)VN[Z][0]==q&&g.Cb(Z)}; ob=function(q,Z,F,B,f){this.K=q;this.D=Z;this.S=F;this.reason=B;this.Ml=f===void 0?0:f}; OHK=function(q,Z,F){F=F===void 0?HHZ:F;q=T8(q,Z);Z=typeof q;q=q==null?q:Z==="bigint"?Pm(RX(64,q)):AM(q)?Z==="string"?Lzy(q):ZKD(q):void 0;return q!=null?q:F}; cxk=function(q,Z){return isNaN(Z)?!0:isNaN(q.D)?!1:Z>>0;return Z}; g.rnK=function(){return{Y:"svg",L:{height:"100%",viewBox:"0 0 16 16",width:"100%"},T:[{Y:"path",L:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}}; WDG=function(q,Z){Z&&!q.G&&($J(q),q.S=null,q.D.forEach(function(F,B){var f=B.toLowerCase();B!=f&&(this.remove(B),g.KPK(this,f,F))},q)); q.G=Z}; $E7=function(q,Z){Z=tq(q,Z)+1;return Z0&&(F=((0,g.Le)()-q.loader.SO)/1E3,Z=Math.min(Z,q.policy.j$+q.policy.UT*F));Z=q.loader.getCurrentTime()+Z;return q.policy.s4&&(F=jU6(q.loader)+q.policy.s4,F=B.length)return;if(F<0)throw Error("Missing data");q.G=q.S;q.K=0}for(f={};F>>0;this.D=Z>>>0}; CZD=function(){if(!XH.instance){var q=g.ym("yt.networkStatusManager.instance")||new XH;g.O9("yt.networkStatusManager.instance",q);XH.instance=q}return XH.instance}; g.Ff=function(q){return!!q.D&&hz9(q.D)}; LX=function(q,Z){return(q=q.Q5(Z))?q.toString():""}; S_D=function(q,Z){return q.K+Z*(q.D-q.K)}; FV6=function(){return RzK.loaded||(RzK.loaded="loaded".replace(/\-([a-z])/g,function(q,Z){return Z.toUpperCase()}))}; cq8=function(q,Z,F){return F.renderingContent===void 0&&F.layoutId!==uo(q,Z,F)?(Yp("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",q.bd(),q.hn(),{requestingSlot:Z,requestingLayout:F}),!1):!0}; ph=function(q){return q.k$==="detailpage"}; w99=function(q,Z){Z.push('"',q.replace(JqD,function(F){var B=Yg9[F];B||(B="\\u"+(F.charCodeAt(0)|65536).toString(16).slice(1),Yg9[F]=B);return B}),'"')}; YuD=function(q){return q.map(function(Z){return new p1(Z.id,"application/x-mpegURL",{fB:Z.fB})})}; nt=function(q){return q.Hg?q.isLowLatencyLiveStream&&q.D!=null&&fE(q.D)>=5:q.isLowLatencyLiveStream&&q.D!=void 0&&fE(q.D)>=5}; eLD=function(){this.D={}}; tP6=function(q){var Z=q.timing.pU();Z.shost=p7(40,q.lk.vH);return Z}; pVk=function(){qu.apply(this,arguments)}; ezK=function(q,Z){if(!dEB(q,Z)&&!q.K)return!1;Z.details.sts="20363";if(sGK(q))return bY(Z.severity)&&(Z=Object.assign({e:Z.errorCode},Z.details),Z=new g.xX("qoe.restart",Z)),q.Zt(Z.errorCode,Z.details),X3b(q),!0;(0,g.Le)()-q.Qs.yd>6048E5&&VP6(q,"signature");return!1}; fC=function(q,Z){Z=Z===void 0?2:Z;g.In.call(this);this.api=q;this.D=null;this.handler=new t8(this);g.y(this,this.handler);this.K=TjG;this.handler.N(this.api,"presentingplayerstatechange",this.n1);this.D=this.handler.N(this.api,"progresssync",this.y5);this.Yc=Z;this.Yc===1&&this.y5()}; hg=function(){var q=window,Z=q.MSMediaKeys;hv()&&!Z&&(Z=q.WebKitMediaKeys);return Z&&Z.isTypeSupported?Z:null}; MPK=function(q,Z){var F=Z.totalLength,B=!1;switch(q.S){case 0:q.nX(Z,q.G).then(function(f){var D=q.jn;D.We("oprr");D.playerResponse=f;D.Rv||(D.nI=!1);$L(D)},function(f){q.jn.fail(f)}); break;case 2:q.We("ormk");Z=NN(Z);q.queue.decrypt(Z);break;default:B=!0}q.jn.Z2&&q.jn.iL("ombup","id.11;pt."+q.S+";len."+F+(B?";ignored.1":""));q.S=null}; L$=function(q){q=q===void 0?document:q;var Z,F;q=(F=(Z=q).querySelector)==null?void 0:F.call(Z,"script[nonce]");return q==null?"":q.nonce||q.getAttribute("nonce")||""}; o6K=function(q,Z){return Z.getUserAudio51Preference()?g.uh(q,vC):q}; qnK=function(q,Z){hw(g.vn(q.B.C()),"wl_button",function(){t3G({videoId:Z});window.location.reload()})}; g.FnD=function(q){var Z=this;this.videoData=q;q={};this.D=(q.c1a=function(){var F=[];if(g.iv.isInitialized()){var B="";Z.videoData&&Z.videoData.Z3&&(B=Z.videoData.Z3+("&r1b="+Z.videoData.clientPlaybackNonce));var f={};B=(f.atr_challenge=B,f);iE("bg_v",void 0,"player_att");(B=Z_G(B))?(iE("bg_s",void 0,"player_att"),F.push("r1a="+B)):(iE("bg_e",void 0,"player_att"),F.push("r1c=2"))}else iE("bg_e",void 0,"player_att"),window.trayride||window.botguard?F.push("r1c=1"):F.push("r1c=4");F.push("r1d="+g.iv.getState()); return F.join("&")},q.c6a=function(F){return"r6a="+(Number(F.c)^yD())},q.c6b=function(F){return"r6b="+(Number(F.c)^Number(g.oa("CATSTAT",0)))},q); this.videoData&&this.videoData.Z3?this.GQ=lX(this.videoData.Z3):this.GQ={}}; oQB=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; fw9=function(q){mT(q.videoData,"html5_set_debugging_opt_in")&&(q=g.nF(),q.Q5(183)||(BKG(183,!0),q.save()))}; dS7=function(q){var Z=q.j,F=wab(Z);F&&(F.startSecs+=q.k$,q.loader.uH(q.Z,F,Z.HY,Z.vp()))}; cl=function(q){this.D=q}; tug=function(q,Z){return(q==null?void 0:q.maxWidth)>(Z==null?void 0:Z.maxWidth)||(q==null?void 0:q.maxHeight)>(Z==null?void 0:Z.maxHeight)}; RPK=function(q){if((q=q.V)==null)q=void 0;else if(q.z0.length===0||q.policy.mD&&q.D<0)q=null;else{var Z=q.z0[q.D]?q.z0[q.D].formatId:null;q=Z?(q=q.Np.S.get(EB(Z)))?q.info:null:null}return q||null}; $uD=function(q,Z,F,B,f){var D=Va(q,Z);if(!D){Z.playerVars.prefer_gapless=!0;var G=new g.wc(q.J,Z.playerVars);G.fp=Z.fp;q.api.Ba(G,Z.playerType)}G=q.app.Vs();D||G.addCueRange(Z.Wp.o1);G.seekTo(F,Object.assign({},{V5:"application_timelinemanager"},B));WEy(q,f)}; D2=function(q){q=q.AP();q.hP();return bS(q)}; g.u8=function(q,Z,F){F=F===void 0?{}:F;this.start=q;this.end=Z;this.active=!0;this.color="";this.K=yzZ++;this.id=F.id||"";this.priority=F.priority||9;this.visible=F.visible||!1;this.style=F.style||t3.AD_MARKER;this.namespace=F.namespace||"";if(q=F.color)q=q.toString(16),this.color="#"+Array(7-q.length).join("0")+q;this.tooltip=F.tooltip;this.icons=F.icons?F.icons.filter(function(B){return g.yA(B.thumbnails,function(f){return g.ys(f.url)})}):null; this.associatedClipId=F.associatedClipId;this.markerPositionMs=F.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start}; H$D=function(q,Z,F,B,f){try{if(q.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var D=F(q.state.value);D instanceof g.Wc?LEX(q,Z,D,B,f):B(D)}catch(G){f(G)}}; Gk=function(q){var Z;!(Z=q.D.info.FE==="f")&&(Z=q.policy.G)&&(Z=q.G,Z=!!Z.X&&xB(Z.X));if(Z)return!0;Z=TJ(q);if(!Z)return!1;var F=MW(Z)&&Z.G;return q.isManifestless&&q.k$>0?F||Z.Uc>=q.k$:F}; O$y=function(q){switch(q){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 GT(q,"Unexpected cuepoint event")}}; xob=function(q,Z){var F=QWk;return Object.prototype.hasOwnProperty.call(F,q)?F[q]:F[q]=Z(q)}; s8=function(q,Z,F,B){Z=Z===void 0?!1:Z;F=F===void 0?!1:F;B=B===void 0?!1:B;if(!q)return null;switch(q.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return F?{Y:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},T:[{Y:"path",L:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:nG();case "CHECK_BOX":return{Y:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},T:[{Y:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{Y:"path",L:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{Y:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},T:[{Y:"path",L:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{Y:"path",L:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.t$();case "INFO_OUTLINE":return Z?{Y:"svg",L:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},T:[{Y:"path",L:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}: fLk();case "REMOVE_CIRCLE":return{Y:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},T:[{Y:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{Y:"path",L:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return Azb();case "SKIP_NEXT_NEW":return B?$OD():{Y:"svg",L:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},T:[{Y:"path",L:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return M1Z(); case "DISLIKE":return CCk();default:return g.bh(new g.M2("Unexpected icon:",q)),null}}; g.TF=function(q,Z,F){if(Z instanceof g.d8)F=Z.height,Z=Z.width;else if(F==void 0)throw Error("missing height argument");q.style.width=g.xN(Z,!0);q.style.height=g.xN(F,!0)}; v3K=function(q){var Z=q.api.getRootNode();if(g.p(q.api.getPlayerStateObject(),256)||g.p(q.api.getPlayerStateObject(),32)||g.p(q.api.getPlayerStateObject(),16))var F=q.X;else if(q.dU&&q.api.getPlayerStateObject().isPaused()){var B;F=(((B=q.Z)==null?void 0:B.element.clientWidth)||0)*.5625/3*q.BG||q.Y$}else F=q.Y$;q.X=F;Z.style.setProperty("--ytp-grid-peek-height",q.X+"px");g.hK(Z,"ytp-disable-bottom-gradient",q.X<=12&&q.j===0)}; yIX=function(q,Z,F,B){var f,D;return g.h(function(G){f=q.D();var n=new Xab;n=QR(n,1,q.S3);D=QR(n,2,Z);n=G.return;var b=F.Lt,N=q.S3,S=q.client;var l=S.D;S=S.K+"/$rpc/google.internal.waa.v1.Waa/GenerateIT";var U=D,u=f||{},P=E37,W=void 0;W=W===void 0?{}:W;l=WGK(l,S,U,u,P,W);return n.call(G,b.call(F,"g",N,B,l))})}; zk=function(q,Z){this.K=q;this.S=Z===void 0?!1:Z;this.D={}}; ZB=function(){this.K=-1;var q=g.oa("LOCATION_PLAYABILITY_TOKEN");g.oa("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=kgZ(this))&&(q=this.localStorage.get("yt-location-playability-token"));q&&(this.locationPlayabilityToken=q,this.D=void 0)}; KED=function(q,Z){(0,g.Le)();var F;if((F=q.D.D)==null)var B=void 0;else a:{q=q.iv;try{var f=QbK(F,Z,q),D=F.D.WP(q),G=F.D,n=F.G,b=new Uint8Array(G.exports.memory.buffer,G.malloc(32),32);G.exports.Sha256Hmac(n.byteOffset,n.byteLength,D.byteOffset,D.byteLength,f.byteOffset,f.byteLength,b.byteOffset);F.D.free(D.byteOffset);B={JX:F.D.sU(f),signature:F.D.sU(b)};break a}catch(N){g.bh(Error("ocwceas: wasm encryptAndSign failed: "+N))}B=void 0}return B}; $o7=function(q){return q.replace(/(\d+)---/g,function(Z,F){Z=Number(F);return(Z===1?2:Z-1)+"---"})}; g.nH=function(q,Z){this.id=q;this.fB=Z;this.captionTracks=[];this.S=this.G=null;this.xtags="";this.Z=!1;this.D=null;this.K="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";q=this.fB.id.split(".");q.length>1&&(this.Z=q[1]==="2")}; g.KPK=function(q,Z,F){q.remove(Z);F.length>0&&(q.S=null,q.D.set(nC(q,Z),g.D4(F)),q.K=q.K+F.length)}; M2b=function(q){this.D=q}; Xh=function(q){this.value=q}; aM6=function(q){var Z;return((Z=IB(q.XE.get(),2))==null?void 0:Z.clientPlaybackNonce)||""}; wvD=function(q,Z){var F=g.pN(q,0,1952868452);q=g.pN(q,0,1953658222);if(F&&q){F.skip(1);var B=d0(F)<<16|lV(F);F.skip(4);B&1&&F.skip(8);B&2&&F.skip(4);if(B&8){B=F.D;var f=UQ(F);F.data.setUint32(F.offset+B,Z>1?Math.ceil(f*Z):Math.floor(f*Z))}q.skip(1);F=d0(q)<<16|lV(q);if(F&256){B=F&1;f=F&4;var D=F&512,G=F&1024,n=F&2048;F=UQ(q);B&&q.skip(4);f&&q.skip(4);B=(D?4:0)+(G?4:0)+(n?4:0);for(f=0;f1?Math.ceil(G*Z):Math.floor(G*Z)),q.skip(B)}}}; YND=function(q,Z){var F,B=q.j;if(F=wab(B))F.startSecs+=q.k$;return new fH(B.HY,q.k$,Z?B.iI:q.Dl,B.ingestionTime,"sq/"+B.HY,void 0,void 0,Z,F)}; g.Lx=function(q,Z){g.$P.call(this,q,{Y:"div",rU:["ytp-popup",Z||""],T:[{Y:"div",W:"ytp-focus-trap-before",L:{tabindex:"0"}},{Y:"div",W:"ytp-popup-content"},{Y:"div",W:"ytp-focus-trap-after",L:{tabindex:"0"}}]},100,!0);this.D=[];this.G=this.S=null;this.maxHeight=this.maxWidth=0;this.size=new g.d8(0,0);this.content=this.cG("ytp-popup-content");this.listen("keydown",this.eN);this.N(this.cG("ytp-focus-trap-before"),"focus",this.Cds);this.N(this.cG("ytp-focus-trap-after"),"focus",this.qys)}; moG=function(){var q=navigator;return new Promise(function(Z,F){var B;(B=q.webkitTemporaryStorage)!=null&&B.queryUsageAndQuota?q.webkitTemporaryStorage.queryUsageAndQuota(function(f,D){Z({usage:f,quota:D})},function(f){F(f)}):F(Error("webkitTemporaryStorage is not supported."))})}; J_B=function(q,Z,F){if(q.V){var B=g.uh(q.S,function(f){return f.id===q.V}); return As(B,F).includes(Z)}B=g.uh(q.S,function(f){var D;return!((D=f.fB)==null||!D.isDefault)}); return B.length>0?As(B,F).includes(Z):As(q.S,F).includes(Z)}; bL=function(q){var Z=q.U("web_enable_pip_on_miniplayer");g.w.call(this,{Y:"button",rU:["ytp-miniplayer-button","ytp-button"],L:{title:q.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},T:["{{icon}}"]});this.B=q;this.visible=!1;this.listen("click",this.onClick);this.N(q,"fullscreentoggled",this.ys);this.B.U("player_tooltip_data_title_killswitch")? this.update({title:g.UP(q,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:i$b(this,Z)}):this.update({"tooltip-title":g.UP(q,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:i$b(this,Z)});b8(q,this.element,this);q.createClientVe(this.element,this,62946);this.ys()}; Sz=function(q){var Z=q(),F=Z&127;if(Z<128)return F;Z=q();F|=(Z&127)<<7;if(Z<128)return F;Z=q();F|=(Z&127)<<14;if(Z<128)return F;Z=q();return Z<128?F|(Z&127)<<21:Infinity}; g.AA=function(q){g.J.call(this);this.lL=q;this.K=new klZ;this.S=null;this.Z=[];this.V=[]}; ot7=function(q){return q.end==null?{start:String(q.start)}:{start:String(q.start),end:String(q.end)}}; N7=function(q,Z){return OP(T8(q,Z,void 0,NAB))}; gT=function(q,Z){var F=this;this.cg=q;this.requestNumber=++sWZ;this.D=this.now();this.V=this.PG=NaN;this.X=this.D;this.S=this.Tb=this.Z=0;this.j=this.D;this.I_=this.uL=this.dU=this.LB=this.Hg=this.Y$=this.K=this.G=0;this.Dl=this.isActive=!1;this.Gb=this.vG=0;this.JZ={cYp:function(){return F.pk}}; this.Zv=Z.Zv;this.snapshot=cM(this.Zv);this.policy=this.Zv.K;this.HK=!!Z.HK;this.MF=Z.MF;this.yk=Z.yk||0;this.jW=Z.jW||0;Z.M7&&(this.k$=new vI);var B;this.pk=(B=Z.pk)!=null?B:!1;this.HK||IoZ(this.Zv)}; e7=function(q){return q.D.eq}; SK=function(q,Z,F){F=F===void 0?1:F;if(Z.hP()){var B=iu(q,F,Z,!1);q.cancelPlayback(4,F);q.l5(B);B.F2();F===1&&(q.H5(1),g.FQ(q.J)&&!Fh(Z)?(Z.dispose(),q.Dv().dispose()):jWb(q))}else Z.dispose(),(Z=q.Nr({playerType:F}))&&Z.dispose(),LV(q.AP())&&F===2&&q.O_()}; XdB=function(q,Z){var F;return q.D.equals(Z)&&(!q.Z.D||!q.D.isLocked()||((F=q.nextVideo)==null?void 0:F.info.id)===q.Z.D)}; Od=function(q){var Z,F,B;return!!((Z=q.playerResponse)==null?0:(F=Z.playerConfig)==null?0:(B=F.mediaCommonConfig)==null?0:B.splitScreenEligible)}; IMB=function(q){this.iL=q;this.D={}}; YjD=function(q){for(var Z,F=[];!(Z=q.next()).done;)F.push(Z.value);return F}; ot=function(q){return gFg()[q]}; Q4X=function(q,Z,F,B,f,D){function G(U){return Ou(q.Kw.get(),U)} var n=[];Z=g.E(Z);for(var b=Z.next();!b.done;b=Z.next()){b=b.value;var N=b.renderer,S=N.sandwichedLinearAdRenderer,l=N.linearAdSequenceRenderer;S&&CqD(S)?(Yp("Found AdNotify with SandwichedLinearAdRenderer"),l=g.C(S.adVideoStart,gt),S=g.C(S.linearAd,hB),sz(D,N,b.config.adPlacementConfig.kind),N=void 0,l=hSg((N=l)==null?void 0:N.layout.layoutId,q.K.get(),q.D.get(),b.config.adPlacementConfig,b.adSlotLoggingData,S,F,B,G,f,q.loadPolicy,q.GP.get(),q.Kw.get()),l instanceof K?Yp(l):n.push.apply(n,g.YB(l))): l&&(!l.adLayoutMetadata&&nvB(l)||l.adLayoutMetadata&&uA7(l))&&(Yp("Found AdNotify with LinearAdSequenceRenderer"),sz(D,N,b.config.adPlacementConfig.kind),N=void 0,S=z5B((N=g.C(l.adStart,gt))==null?void 0:N.layout.layoutId,q.K.get(),q.D.get(),b.config.adPlacementConfig,b.adSlotLoggingData,l.linearAds,Vt(l.adLayoutMetadata)?l.adLayoutMetadata:void 0,F,B,G,f,q.loadPolicy,q.GP.get()),S instanceof K?Yp(S):n.push.apply(n,g.YB(S)))}return n}; RSG=function(q){var Z,F;return g.h(function(B){return B.D==1?g.R(B,oz(q),2):B.D!=3?(Z=B.K,F=void 0,g.R(B,g.e4(Z,["coldConfigStore"],{mode:"readwrite",Wg:!0},function(f){return g.NX(f.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(D){F=D.getValue()})}),3)):B.return(F)})}; g.lL=function(q){q=q.split(cz8);for(var Z=[],F=0;F=0})}; pak=function(q){return{label:eQ(q,1),text:eQ(q,2)}}; U$=function(q,Z,F,B,f){this.Dh=q;this.hFs=Z;this.PdG=F;this.o$U=B;this.func=f}; g.zu=function(q,Z,F,B,f,D,G,n,b,N,S){b=b===void 0?q.schedule:b;N=N===void 0?new g.wc(q):N;S=S===void 0?!0:S;g.In.call(this);var l=this;this.J=q;this.playerType=Z;this.Yk=F;this.Er=B;this.getVisibilityState=D;this.visibility=G;this.gq=n;this.Zv=b;this.videoData=N;this.Jd=S;this.logger=new g.Wz("VideoPlayer");this.JP=null;this.Rj=new C3;this.dV=null;this.qR=!0;this.gU=this.loader=null;this.Y3=[];this.pG=new uL;this.mY=this.XZ=null;this.Rd=new uL;this.FQ=null;this.J6=this.Kb=!1;this.TJ=NaN;this.hU=!1; this.playerState=new g.h1;this.sV=[];this.zj=new g.pO;this.mediaElement=null;this.kJ=this.GJ=!1;this.GZ=NaN;this.nA=!1;this.FU=0;this.cq=!1;this.jZ=NaN;this.XM=0;this.loop=!1;this.playbackRate=1;this.uX=0;this.O6=!1;this.EV=[];this.PT=this.b7=0;this.nV=this.vQ=!1;this.RZ=this.eF=0;this.DS=!1;this.hk=this.t4=this.cN=this.h0=null;this.Lw=function(){var U=l.Oy;U.provider.J.ix||U.provider.Mp.getVisibilityState()===3||(U.provider.J.ix=!0);U.O9();if(U.K){var u=U.K;u.Z&&u.D<0&&u.provider.Mp.getVisibilityState()!== 3&&NSk(u)}U.qoe&&(U=U.qoe,U.o_&&U.S<0&&U.provider.J.ix&&bpk(U),U.G&&PH(U));l.loader&&rT(l);Gd(l)}; this.JZ={US:function(U){l.US(U)}, KR_:function(U){l.JP=U}, Ujc:function(){return l.Oy}, Ar:function(){return l.gU}, a3c:function(){return l.Tu}, I3U:function(){return l.EQ}, fR$:function(){}, C:function(){return l.J}, Mi:function(){return l.mediaElement}, OyG:function(U){l.tU(U)}, Id$:function(){return l.Er}}; this.RW=new ZQ(this);this.dM=new g.im(this.DrG,15E3,this);this.MO=new wT(new Map([["bufferhealth",function(){return At(l.t0)}], ["bandwidth",function(){return l.W7()}], ["networkactivity",function(){return l.Zv.zP}], ["livelatency",function(){return l.isAtLiveHead()&&l.isPlaying()?doZ(l):NaN}], ["rawlivelatency",function(){return doZ(l)}]])); this.t0=new iR(this);this.gf=new g.im(this.KT,0,this);this.iBr=[this.zj,this.gf,this.dM,this.MO];this.HJ=new QnD(this.J);this.Aq=new WH(this.J,this.Er,this,this.Zv);this.GD=new g.y3(this,function(U,u){U!==g.UK("endcr")||g.p(l.playerState,32)||l.uF();f(U,u,l.playerType);if(U===g.UK("transitiondetector")&&(U=l.loader)!=null&&(U=U.eU)!=null){var P=g.E(Js9(u.id));P.next();P=P.next().value;lU(U,P,u.start/1E3-U.Mp.oh(),UD(U.S))}}); g.y(this,this.GD);g.y(this,this.t0);VVD(this,N);this.videoData.subscribe("dataupdated",this.G8E,this);this.videoData.subscribe("dataloaded",this.m1,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.iL,this);this.videoData.subscribe("ctmpstr",this.qs,this);!this.Oy||this.Oy.jU();this.Oy=new g.LC(new bx(this.videoData,this.J,this));Xfb(this.Lw);this.visibility.subscribe("visibilitystatechange",this.Lw);this.Tu=new g.im(this.yF,g.Ce(this.J.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.EQ=new g.im(this.yF,g.Ce(this.J.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.zC=new g.IF(this.cPP,350,this);g.y(this,this.zC)}; qE=function(q){this.value=q}; BLD=function(q,Z){if(Z.info.G){q.I_=Z.info;if(q.j){var F=q.j,B=YND(q,!1);F=tG7(F);q.loader.d9(q.Z,B,F);q.uL||q.policy.SW||dS7(q);q.uL=null}Ep(q)}q.X&&Fk9(q.X,Z);if(B=q.fv())if(B=g.K8(B,Z,q.policy.u4,q.policy.yd)){q.K.pop();q.K.push(B);return}q.K.push(Z)}; eS9=function(q){var Z;if(Z=!!q.cotn)Z=q.videoId,Z=!!Z&&g.wu(Z)===1;return Z&&!q.aZ}; HH=function(q){q.D&&q.V===-1&&(q.V=q.D.subscribe("h",q.xu,q),q.WG=q.D.subscribe("g",q.gs,q),q.xu())}; TlK=function(q){q=g.E(e7(q.D).Nd.rF.values());for(var Z=q.next();!Z.done;Z=q.next())if(Z.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; adg=function(q){return O$(function(){var Z;return(Z=q.ZE.get("asmjs"))!=null?Z:ZkZ(q)})}; Pb=function(q,Z,F,B,f){var D;F=F===void 0?!1:F;B=B===void 0?!1:B;var G=q.ZE.get(Z);if(!G||B)if(f||(f=function(){Pb(q,Z,F,B)}),D||(D=function(){Q3(q,Z)}),G=G||MVD(q,Z,o4b(q,Z),f,D))q.ZE.set(Z,G),G.create(),q.B.publish("modulecreated",Z),F&&q.B.NE("onApiChange")}; hn=function(q,Z){return Math.floor(Z/(q.columns*q.rows))}; zK=function(q,Z,F){if(DY(q.D,Z)){a:switch(GK(q.D,Z).D){case "exit_requested":var B=!0;break a;default:B=!1}if(!B)a:switch(GK(q.D,Z).D){case "rendering_stop_requested":B=!0;break a;default:B=!1}if(B&&(GK(q.D,Z).Z=!0,!F))return;if(rA(GK(q.D,Z)))GK(q.D,Z).Z=!0,qoB(q,Z,F);else{a:switch(GK(q.D,Z).G){case "fill_requested":F=!0;break a;default:F=!1}if(F)GK(q.D,Z).Z=!0,DY(q.D,Z)&&(q.yO.cX("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",Z),Z=GK(q.D,Z),Z.G="fill_cancel_requested",Z.X.KZ());else{F= SV(q.D,Z);(B=q.GP.get().B.C().experiments.qp("h5_enable_layout_unscheduling_events"))&&(F?q.Ye(Z,F):Yp(Error("Layout is null for LayoutUnscheduled event."),Z,F,void 0,!1));q.yO.cX("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",Z);var f=GK(q.D,Z),D=Z.slotEntryTrigger,G=f.zP.get(D.triggerId);G&&(G.EX(D),f.zP.delete(D.triggerId));D=g.E(Z.slotFulfillmentTriggers);for(G=D.next();!G.done;G=D.next()){G=G.value;var n=f.Dl.get(G.triggerId);n&&(n.EX(G),f.Dl.delete(G.triggerId))}D=g.E(Z.slotExpirationTriggers); for(G=D.next();!G.done;G=D.next())if(G=G.value,n=f.PG.get(G.triggerId))n.EX(G),f.PG.delete(G.triggerId);f.layout!=null&&(D=f.layout,xC(f,D.layoutExitNormalTriggers),xC(f,D.layoutExitSkipTriggers),xC(f,D.layoutExitMuteTriggers),xC(f,D.layoutExitUserInputSubmittedTriggers),xC(f,D.layoutExitUserCancelledTriggers));f.X=void 0;f.K!=null&&(f.K.release(),f.K=void 0);f.S!=null&&(f.S.release(),f.S=void 0);f=q.D;GK(f,Z)&&(f=dK(f,Z.slotType+"_"+Z.slotPhysicalPosition))&&f.delete(Z.slotId);q.yO.cX("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED", Z);q=g.E(q.K);for(f=q.next();!f.done;f=q.next())f=f.value,f.Wf(Z),F&&!B&&f.Ye(Z,F)}}}}; nMK=function(q,Z,F,B,f,D){F=new zX([new eL(F),new QA(B)]);Z=Bs(q.K.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Z);B={layoutId:Z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",bL:"core"};return{layoutId:Z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",ud:new Map,layoutExitNormalTriggers:[new Qs(function(G){return xm(q.K.get(),G)},f)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:F,Xe:D(B),adLayoutLoggingData:void 0}}; Zx9=function(q,Z){var F=[];if(!Z.length)return F;Z.sort(g.nu);Z=g.E(Z);for(var B=Z.next();!B.done;B=Z.next())B=B.value,q.K.splice(q.K.indexOf(B),1),F.push([2,B]);return F}; F_6=function(q){this.Ec=rE(q)}; g.AG=function(q){for(var Z=0,F=arguments.length;Z1;)q.D.pop().dispose();ks(q.D[0],"100%");q.D[0].startTime=0;q.D[0].title=""}; Gv6=function(q,Z,F){q.V&&clearTimeout(q.V);q.D===0&&g.vc(q.api.getRootNode(),"ytp-grid-scrolling");Z?DUK(q,F):q.D<.1&&(q.V=window.setTimeout(function(){DUK(q)},1E3))}; g.dh=function(q){return an(q)==="WEB_UNPLUGGED"}; reb=function(q,Z){var F=q.length-Z.length;return F>=0&&q.indexOf(Z,F)==F}; bs=function(q){g.w.call(this,{Y:"div",rU:["html5-video-player"],L:{tabindex:q.C().disableOrganicUi?"":"-1",id:q.webPlayerContextConfig.rootElementId},T:[{Y:"div",W:g.jL.VIDEO_CONTAINER,L:{"data-layer":"0"}}]});var Z=this;this.app=q;this.jb=this.cG(g.jL.VIDEO_CONTAINER);this.w_=new g.vF(0,0,0,0);this.Pe=null;this.iW=new g.vF(0,0,0,0);this.zi=this.wJ=this.BT=NaN;this.Pq=this.vO=this.bH=this.Cu=!1;this.fZ=NaN;this.EL=!1;this.IR=null;this.U6=new g.im(function(){Z.app.C().U("web_enable_smart_zoom")&&Z.app.lL.getInternalApi().isAutocropEnabled()|| Z.resize()},100); this.C9=function(){Z.element.focus({preventScroll:!0})}; this.f0=function(){Z.app.lL.publish("playerUnderlayVisibilityChange","visible");Z.Pe.classList.remove(g.jL.VIDEO_CONTAINER_TRANSITIONING);Z.Pe.removeEventListener(aU,Z.f0);Z.Pe.removeEventListener("transitioncancel",Z.f0)}; this.Gq=this.PK=!1;var F=this.element.addEventListener,B=this.element.removeEventListener;this.addEventListener=function(D,G,n){F.apply(Z.element,[D,G,n])}; this.removeEventListener=function(D,G,n){B.apply(Z.element,[D,G,n])}; var f=q.C();f.transparentBackground&&this.SH("ytp-transparent");f.controlsType==="0"&&this.SH("ytp-hide-controls");g.e$(this.element,"ytp-exp-bottom-control-flexbox");g.e$(this.element,"ytp-modern-caption");f.U("enable_new_paid_product_placement")&&!g.d9(f)&&g.e$(this.element,"ytp-exp-ppp-update");g.e$(this.element,"ytp-livebadge-color");fXB(this.element,RdZ(q));this.Hl=!1;this.U1=new g.d8(NaN,NaN);zwk(this);this.N(q.lL,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.y(this,this.U6)}; n47=function(q){S7(q,"impression")&&!S7(q,"seek")&&q.PH("active_view_viewable")}; g.Vi=function(q,Z){for(var F=0,B=[];on(q,F);){var f=qg(q,F);f.type===Z&&B.push(f);F=PV(f.type)?F+8:F+f.size}return B}; bxb=function(q,Z){return Xp(q,Z.m0,Z.slotType)?!0:!1}; NuG=function(q,Z,F,B,f,D,G,n){this.callback=q;this.slot=Z;this.layout=F;this.Zl=B;this.wU=f;this.GP=G;this.nB=n;this.D=!1;q=qc(F.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(F.ud,this.wU,q,F.layoutId);var b;q=((b=qc(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:b.progressCommands)||[];var N=qc(F.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.K=new fm8(D,q,F.layoutId,function(){return N*1E3})}; E$=function(q,Z){q.Z||(Z=new g.H3(Z.state,new g.h1),q.Z=!0);return Z}; lT9=function(q){return{startTicks:Ta(q,1),mM:Ta(q,2),timescale:Ta(q,3)}}; tSB=function(q){var Z,F;g.h(function(B){if(B.D==1)return k4(q,"swpo_i"),q.S=QT(),KC(q),g.R(B,HX(),2);if(B.D!=3)return Z=B.K,k4(q,"swpo_co"),g.R(B,zo6(Z),3);F=B.K;q.U("html5_web_po_token_disable_caching")||F.h9(150);q.K=F;k4(q,"swpo_cc");TeZ(F.kN()).then(function(){q.D=!0;q.Z.resolve();k4(q,"swpo_re")}); g.OT(function(){x2(q);k4(q,"swpo_si")},0); g.C7(B)})}; F9=function(q,Z){g.qB.call(this,"Traducci\u00f3n autom\u00e1tica",0,q,Z);this.B=q;this.languages={};q.createClientVe(this.element,this,127301);q.logVisibility(this.element,!0)}; g.$C=function(q){var Z,F=Z=0,B=!1;q=q.split(g49);for(var f=0;f.4?-1:1;return(Z==0?null:Z)==-1?"rtl":"ltr"}; PdD=function(){aq.apply(this,arguments)}; U3=function(q,Z){lf||Sm in q||RcK(q,cvD);q[Sm]|=Z}; rJZ=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}}; r3D=function(q){return q.B.C().experiments.qp("html5_ssdai_enable_media_end_cue_range")}; wOD=function(q){q.contentCpn=null;q.adCpn=null;q.videoId=null;q.adVideoId=null;q.adFormat=null;q.G="AD_PLACEMENT_KIND_UNKNOWN";q.actionType="unknown_type";q.S=!1;q.K=!1}; EX=function(q){g.J.call(this);this.wpc=q}; g.w=function(q){g.i0.call(this,q);this.zb=!0;this.PG=!1;this.listeners=[]}; ZWb=function(q,Z){if(q.isDrm()){if(Z.info.D.info.cL()){var F=new EW(g.Xd(Z));if(K1(F,[408125543,374648427,174,28032,25152,20533,18402])){var B=$d(F,!0);F=B!==16?null:Se(F,B)}else F=null;B="webm"}else Z.info.PG=CVD(g.Xd(Z)),F=GG8(Z.info.PG),B="cenc";F&&F.length&&(F=new JM(F,B),q.policy.H_&&g.Wv(Z.info.D.info)&&(B=W_G(g.Xd(Z)))&&(F.K=B),F.cL=Z.info.D.info.cL(),Z.D&&Z.D.cryptoPeriodIndex&&(F.cryptoPeriodIndex=Z.D.cryptoPeriodIndex),Z.D&&Z.D.K&&(F.D=Z.D.K),q.loader.x_(F))}}; ef=function(q,Z){return q=(2&Z?q|2:q&-3)&-273}; Fj=function(q,Z,F){this.triggeringLayoutId=Z;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=F||q(this.triggerType)}; y3X=function(q,Z,F){if(q.D){var B=ED(Ge(Z,"key"))||"/UNKNOWN_PATH";q.D.start(B)}q=F;g.cz("wug_networking_gzip_request")&&(q=Sc7(F));return new window.Request(Z,q)}; L_y=function(q){var Z=q.Aq;q=q.videoData;var F=rV(Z,q);Z.U("html5_disable_client_autonav_cap_for_onesie")||F.compose(wV(Z,q));return F}; mA=function(q,Z,F,B,f,D,G,n,b,N){Z=Bs(q.K.get(),F,Z);var S={layoutId:Z,layoutType:F,bL:"core"},l=new Map;G&&l.set("impression",G);G=[new Mk(q.D,f,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];N&&G.push(new HR(q.D,N,["normal"]));return{layoutId:Z,layoutType:F,ud:l,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:new zX([B,new QA(D),new yY(f)]),Xe:n(S),adLayoutLoggingData:b}}; iL=function(q){return!!q.Rh&&!!q.Rh.postId&&q.api.getPresentingPlayerType()!==2&&(!q.Rh.type||q.Rh.type==="clips")}; HxX=function(q,Z){if(q.g2){var F=q.g2.nw();if(F.length!==0){if(q.S&&Z){var B=q.S,f=B.info.Z;!tC(F,f)&&B.info.V>0&&(0,g.Le)()-q.j<5E3&&(q.logger&&q.logger({dend:B.info.wq()}),F=jPG(F,f,f+.01))}q.policy.mD&&q.logger&&q.logger({cbri:""+q.D});B=[];for(var D=f=0;f=G){var S=Object.assign({},q.z0[D]),l=q.Np.S.get(EB(q.z0[D].formatId)),U=Math.max(b,G);G=l.index.eI(U+q.K/ 1E3);b=l.index.getStartTime(G);var u=G+ +(Math.abs(b-U)>q.K/1E3);U=u+q.G;u=l.index.getStartTime(u)*1E3;D!==q.D||Z?(S.BE=U,S.startTimeMs=u):(q.logger&&q.logger({pEvict:"1",og:S.startTimeMs,adj:b*1E3}),S.BE=G+q.G,S.startTimeMs=b*1E3);G=void 0;b=((G=q.S)==null?void 0:G.info.duration)||11;D===q.D&&nq.K/1E3);G=b+q.G;l=l.index.h5(b)*1E3;S.zD=G;S.durationMs=l-S.startTimeMs;S.BE<=S.zD&&B.push(S)}N0&&V28(l)&&l.Ml>U)&&bl(Z,l,B)===!0){f.push({videoCodec:OxZ[Rs[S]],maxWidth:l.video.width,maxHeight:l.video.height,maxFramerate:l.video.fps});break}}}}G=g.E(b);for(q=G.next();!q.done;q=G.next())for(q=g.E(q.value),b=q.next();!b.done;b=q.next())if(b=b.value,(n=ev7(b))&&n.audio&&(F.U("html5_onesie_51_audio")||!xF(n)&&!AS(n))&&bl(Z,n,B)===!0){D.push({audioCodec:QcZ[Rs[b]],numChannels:n.audio.numChannels});break}return{videoFormatCapabilities:f,audioFormatCapabilities:D}}; KN7=function(q,Z){q.B.setOption("captions","sampleSubtitles",Z)}; tH=function(q){g.L4(q.Z);q.Z=NaN}; A39=function(q,Z,F,B,f,D,G,n){this.callback=q;this.slot=Z;this.layout=F;this.Zl=B;this.wU=f;this.GP=D;this.nB=G;this.XE=n;this.D=!1;q=qc(F.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(F.ud,this.wU,q,F.layoutId)}; v48=function(q,Z,F,B){Z={c8:Z,SY:F,GW:q.playback.getCurrentTime(),qIc:B};kC(q,Z)}; yj=function(q){var Z=q>>>0;KK=Z;$v=(q-Z)/4294967296>>>0}; g.Hh=function(q,Z,F){for(var B in q)Z.call(F,q[B],B,q)}; ikD=function(q,Z,F,B,f,D,G,n){var b={layoutId:Z,layoutType:D,bL:"core"};return{layoutId:Z,layoutType:D,ud:new Map,layoutExitNormalTriggers:[new Qs(q.D,F)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:new zX([new QA(B)].concat(g.YB(G))),Xe:f(b),adLayoutLoggingData:n}}; op6=function(q,Z,F){if(q&&Z!==null&&Z!=Z.top){if(!Z.top)return new g.d8(-12245933,-12245933);Z=Z.top}try{return(F===void 0?0:F)?(new g.d8(Z.innerWidth,Z.innerHeight)).round():D_K(Z||window).round()}catch(B){return new g.d8(-12245933,-12245933)}}; vJG=function(q){q&&(q.dataset?q.dataset[FV6()]="true":SdX(q))}; Ae7=function(q,Z){Z>0&&(q.K=Z,q.X.style.height=q.K+"px")}; hSg=function(q,Z,F,B,f,D,G,n,b,N,S,l,U){F=btb(Z,F,B,D,G,n,b,N,S,l,U);if(F instanceof K)return F;q=XOZ(Z,q,G,f,F);return q instanceof K?q:[].concat(g.YB(q.Xo),[q.iU])}; myk=function(q,Z,F,B,f,D,G,n){function b(l,U){var u=l.slotId;l=G(l);u=Bs(Z.K.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",u);return ikD(Z,u,U,F,l,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new E4Z(f),D],f.adLayoutLoggingData)} function N(l){return HiK(q,l,B,b)} if(!K_B(f))return new K("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:f});var S=f.timeoutSeconds*1E3;return function(l){var U=l.slotId,u={impressionCommands:f.impressionCommands,completeCommands:f.timeoutCommands,skipCommands:f.dismissCommands};l=G(l);U=KUG(Z,U,F,S,u,new Map,l,N,void 0,Hn(Z,F,f.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));u=new is(U.hI);l=new et(n);return{dR:{layoutId:U.layoutId,layoutType:U.layoutType,ud:U.ud,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:U.bL,clientMetadata:new zX([].concat(g.YB(U.WR),[u,l])),Xe:U.Xe,adLayoutLoggingData:U.adLayoutLoggingData},zQ:[],Ze:U.layoutExitMuteTriggers,fF:U.layoutExitUserInputSubmittedTriggers,N2:U.layoutExitUserCancelledTriggers,xa:U.xa}}}; vVB=function(q,Z){for(var F=0;F0?Wg().getSequenceCount({cttAuthInfo:void 0,isJspb:q,tier:Z})>=sc9&&F():F()},f); B.K=f}; jcK=function(q,Z){if(Z.info.type===1)if(Z.info.D.info.video){var F=q.timing;F.BG||(F.BG=(0,g.Le)(),g.XY("vis_r",F.BG,F.D))}else F=q.timing,F.V||(F.V=(0,g.Le)(),g.XY("ais_r",F.V,F.D));B5b(q.G,Z);q=q.loader;q.videoTrack.D.wR()&&q.audioTrack.D.wR()&&q.policy.D&&!q.Np.d2&&(Z=q.audioTrack.getDuration(),F=q.videoTrack.getDuration(),Math.abs(Z-F)>1&&q.iL("trBug",{af:""+g.Kc(q.audioTrack.D.info,!1),vf:""+g.Kc(q.videoTrack.D.info,!1),a:""+Z,v:""+F}))}; dH=function(q){q=q||"";var Z=KrZ();if(Z[q])return Z[q];var F=iC(),B={timerName:q,info:{},tick:{},span:{},jspbInfo:[]};F.push(B);return Z[q]=B}; IyK=function(q){q.Cp=g.YX(function(){q.Cp=null;q.D&&!q.K&&(q.D=!1,IyK(q))},q.Ke); var Z=q.S;q.S=null;q.G.apply(null,Z)}; Cd9=function(q,Z,F,B,f){Gf.call(this,"ads-engagement-panel-layout",q,Z,F,B,f)}; jK=function(q,Z,F,B,f){km.call(this,q,{Y:"div",W:"ytp-ad-survey-player-overlay",T:[{Y:"div",W:"ytp-ad-survey-player-overlay-instream-info"},{Y:"div",W:"ytp-ad-survey-player-overlay-skip-preview-submit",T:[{Y:"div",W:"ytp-ad-survey-player-overlay-skip-or-preview"},{Y:"div",W:"ytp-ad-survey-player-overlay-submit"}]},{Y:"div",W:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",Z,F,B);this.G=f;this.K=this.D=null;this.S=this.cG("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.cG("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.cG("ytp-ad-survey-player-overlay-submit");g.y(this,this.G);this.hide()}; J3K=function(q){if(q.isExternallyHostedPodcast)return Ef();var Z=Jt(q.gj,q.Z8);if(q.hlsvp){var F=hwK(q.hlsvp,q.clientPlaybackNonce,q.w2);Z.push(F)}return Rwy(q.Qs,q.isAd(),Z,c3D(q)).then(function(B){HM(q,B)})}; JzG=function(q,Z){function F(D){return B.Dl!=="yt"&&(f.partnerId===38&&B.playerStyle==="books"||f.partnerId===30&&B.playerStyle==="docs"||f.partnerId===33&&B.playerStyle==="google-live")?YoG(q,f,D):tZk(q,f).then(function(){B.U("embeds_enable_shorts")&&q.C().b_&&f.isEmbedsShortsMode(new g.d8(0,0),!!f.playlistId)?pOy(q,f):Iq(q,f)},function(G){Iq(q,f,!0); throw G;})} Z=Z===void 0?q.C().schedule:Z;var B=q.C(),f=q.getVideoData();f.jU();f.loading=!0;return e7Z(q)?nf8(q,f,Z).then(function(){Iq(q,f)},function(D){D=cs(D); if(bY(D.severity))return Iq(q,f,!0),Promise.reject(D);D.errorCode==="onesie.response.badproxystatus"&&""+D.details.st==="3"&&(VJy=!0);q.handleError(D);return F("onesie")}):F("gvi")}; dUX=function(q,Z,F){var B;if(B=q.playback.getVideoData().tP())B=(B=q.D.Nr({cpn:Z}))&&B.m2?(q=q.D.D.get(B==null?void 0:B.m2))&&q.slice(-1)[0].cpn===Z:!1;return B&&F===2?1E3:0}; QA=function(q){this.value=q}; Et=function(q){fX.call(this,q);var Z=this;this.loaded=!1;this.overlay=null;this.events=new g.pO(q);g.y(this,this.events);this.D=new g.pO(q);g.y(this,this.D);this.events.N(q,"modulesCreated",function(){Z.Hu()&&Z.load()}); this.events.N(q,"modulesDestroyed",function(F){var B=!0;switch(F){case 2:case 3:B=!1;break;case 4:B=Z.api.getPresentingPlayerType()===1}B&&Z.unload()})}; d_=function(q,Z,F,B,f){this.loader=q;this.policy=Z;this.schedule=F;this.XJ=B;this.PG=f;this.Dl=NaN;this.K=this.X=this.G=null;this.D=this.Z=this.j=this.startTimeSecs=NaN;this.S=!1;this.V=NaN}; VZK=function(q,Z,F,B,f){try{if(q.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var D=F(q.state.reason);D instanceof g.Wc?LEX(q,Z,D,B,f):B(D)}catch(G){f(G)}}; Kx=function(q,Z){q=T8(q,Z,void 0,void 0,gi7);return q==null?zg():q}; CC=function(q){w1.call(this,"En bucle",g.Wf.Pn);this.B=q;var Z=q.U("delhi_modern_web_player_icons")?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:ew7();this.setIcon(Z);this.subscribe("select",this.K,this);q.createClientVe(this.element,this,28661);this.N(q,"settingsMenuVisibilityChanged",this.D);this.listen("click",this.logClick);this.N(q,"onLoopChange",this.onLoopChange);NC(this,q.getLoopVideo());q.HH().Mr(this)}; g.sY=function(q){var Z=g.o7.PW(),F=g.o7.V3();if(!Z&&!F||!window.JSON)return null;try{var B=Z.get(q)}catch(f){}if(typeof B!=="string")try{B=F.get(q)}catch(f){}if(typeof B!=="string")return null;try{B=JSON.parse(B,void 0)}catch(f){}return B}; MZg=function(q,Z){if(!Z2(q))throw Error("IndexedDB is not supported: updateRequestHandlers");var F=Z.options.onError?Z.options.onError:function(){}; Z.options.onError=function(f,D){var G,n,b,N;return g.h(function(S){switch(S.D){case 1:G=Tug(D);(n=YRK(D))&&q.qp&&q.qp("web_enable_error_204")&&q.handleError(Error("Request failed due to compression"),Z.url,D);if(!(q.qp&&q.qp("nwl_consider_error_code")&&G||q.qp&&!q.qp("nwl_consider_error_code")&&q.potentialEsfErrorCounter<=q.JI)){S.An(2);break}if(!q.wY.gK){S.An(3);break}return g.R(S,q.wY.gK(),3);case 3:if(q.wY.Bf()){S.An(2);break}F(f,D);if(!q.qp||!q.qp("nwl_consider_error_code")||((b=Z)==null?void 0: b.id)===void 0){S.An(6);break}return g.R(S,q.CE.Sa(Z.id,q.sP,!1),6);case 6:return S.return();case 2:if(q.qp&&q.qp("nwl_consider_error_code")&&!G&&q.potentialEsfErrorCounter>q.JI)return S.return();q.potentialEsfErrorCounter++;if(((N=Z)==null?void 0:N.id)===void 0){S.An(8);break}return Z.sendCount=q.uL}; FAK=function(q,Z,F,B,f){++q.S;Z&&++q.Z;p7(59,F.vH).startsWith("redirector.")&&(q.D=q.K.clone(),delete q.G,B.sF&&delete f[p7(40,q.D)])}; g.X2=function(q){return(!("button"in q)||typeof q.button!=="number"||q.button===0)&&!("shiftKey"in q&&q.shiftKey)&&!("altKey"in q&&q.altKey)&&!("metaKey"in q&&q.metaKey)&&!("ctrlKey"in q&&q.ctrlKey)}; E8=function(q,Z){Z=new eWK(new huK(Z));ip&&q.prototype&&ip(Z,q.prototype);return Z}; g.va=function(q){var Z=[];if(q.displayName)Z.push(q.displayName);else{var F=q.languageName||"";Z.push(F);q.kind==="asr"&&F.indexOf("(")===-1&&Z.push(" (Subt\u00edtulos autom\u00e1ticos)");q.name&&Z.push(" - "+q.name)}q.translationLanguage&&Z.push(" >> "+q.translationLanguage.languageName);return Z.join("")}; seg=function(q,Z){g.J.call(this);if(!Z&&q)try{Z=JSON.parse(q)}catch(f){}if(Z){q=Z.clientKey?$R(Z.clientKey):null;var F=Z.encryptedClientKey?$R(Z.encryptedClientKey):null,B=Z.keyExpiresInSeconds?Number(Z.keyExpiresInSeconds)*1E3+(0,g.Le)():null;q&&F&&B&&(this.D=new s7X(q,F,B),g.y(this,this.D));Z.onesieUstreamerConfig&&(this.onesieUstreamerConfig=$R(Z.onesieUstreamerConfig)||void 0);this.baseUrl=Z.baseUrl}}; Rq=function(q,Z){Z=Z===void 0?240:Z;g.w.call(this,{Y:"button",rU:["ytp-button","ytp-search-button"],L:{title:q.U("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.FQ(q.C()))},T:[{Y:"div",W:"ytp-search-icon",Ka:"{{icon}}"},{Y:"div",W:"ytp-search-title",Ka:"Buscar"}]});this.api=q;this.K=Z;this.visible=!1;this.updateValue("icon",{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},T:[{Y:"path",W:"ytp-svg-fill",L:{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"}}]}); q.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.D();this.N(q,"appresize",this.D);this.N(q,"videodatachange",this.D);b8(q,this.element,this)}; WPG=function(q){q.m6.PG=(0,g.Le)();q=cH(q);q.K=(0,g.Le)();q.started+=1}; f29=function(q){q.K&&q.K.send();if(q.qoe){var Z=q.qoe;if(Z.G){Z.CP==="PL"&&(Z.CP="N");var F=g.$w(Z.provider);g.zR(Z,F,"vps",[Z.CP]);Z.X||(Z.S>=0&&Z.D.set("user_intent",[Z.S.toString()]),Z.X=!0);Z.provider.J.Nl()&&Z.iL("finalized",{});Z.k$=!0;Z.reportStats(F)}}if(q.provider.videoData.enableServerStitchedDai)for(Z=g.E(q.S.values()),F=Z.next();!F.done;F=Z.next())BT7(F.value);else q.D&&BT7(q.D);q.dispose()}; PD=function(q,Z,F,B,f,D){D=D===void 0?0:D;g.J.call(this);var G=this;this.policy=q;this.D=Z;this.K=F;this.gq=f;this.Z=D;this.G=this.S=null;this.currentVideoDuration=this.j=-1;this.X=!1;this.FG=new l8;this.qg=B-Z.oh()*1E3;this.FG.then(void 0,function(){}); this.timeout=new g.im(function(){G.uo("timeout")},1E4); g.y(this,this.timeout);this.V=isFinite(B)||this.gq.C().experiments.qp("html5_pseudogapless_shorts")&&NM(Z.getVideoData());this.status={status:0,error:null}}; JG=function(q,Z,F){F=F===void 0?!1:F;var B=q.Z();if(B){for(;q.G=0;G--){var n=f.K[G];n.info.Uc>=Z&&(f.K.pop(),f.S-=ZS(n,f.policy.G0),D=n.info)}D&&(f.G=f.K.length>0?f.K[f.K.length-1].info:f.Oc,f.K.length!==0||f.G||GP(f,"r"));f.loader.iL("mdstm",{rollbk:1,itag:D?D.D.info.itag:"",popped:D?D.Uc:-1,sq:Z,lastslc:f.G?f.G.Uc:-1,lastfraget:f.S.toFixed(3)});if(q.policy.D)return q.K=null,!0;B>F?x3(q,B):q.K=q.D.Pp(Z-1,!1).TP[0]}catch(b){return Z=cs(b),Z.details.reason="rollbkerr", q.loader.handleError(Z.errorCode,Z.details,Z.severity),!1}return!0}; YC=function(q,Z,F){return q.protocol+"://i1.ytimg.com/vi/"+Z+"/"+(F||"hqdefault.jpg")}; xC=function(q,Z){Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var B=q.uL.get(F.triggerId);B&&(B.EX(F),q.uL.delete(F.triggerId))}}; FWD=function(q,Z,F,B){q=q.isView()?q.mediaElement:q;return new g.cj(q,Z,F,B)}; LEX=function(q,Z,F,B,f){Z===F?f(new TypeError("Circular promise chain detected.")):F.then(function(D){D instanceof g.Wc?LEX(q,Z,D,B,f):B(D)},function(D){f(D)})}; $gG=function(q,Z,F){var B=qn;return H1(PT().D.D,function(){try{if(B.Cp&&B.Cp.D){var f=B.Cp.start(q.toString(),3);var D=Z();B.Cp.end(f)}else D=Z()}catch(n){var G=B.ea;try{UrK(f),G=B.K(q,new xw(Gky(n)),void 0,F)}catch(b){B.kU(217,b)}if(!G)throw n;}return D})()}; tG=function(q,Z,F){q.PG&&q.PG.HL(Z,F)}; tj6=function(q){q.Y$||(q.Y$=(0,g.Le)(),g.XY("ovfs_rp",q.Y$,q.D))}; Ap=function(q){return q.k$==="leanback"}; vY9=function(q){return new Promise(function(Z){var F=g.AV("SCRIPT");if(q){var B=N7(q,6);B=B===null||B===void 0?null:vvK(B)}else B=null;F.textContent=eu(B);lvK(F);(g.jm("HEAD")[0]||document.documentElement).appendChild(F);g.X_(F);Z()})}; g.e_=function(q,Z){this.x=q!==void 0?q:0;this.y=Z!==void 0?Z:0}; aXG=function(q,Z){var F=0,B=!1,f=q.D.length,D=q.S.D*1E3;D===0&&(D=q.api.getProgressState().seekableEnd*1E3);if(D>0&&q.j>0){for(var G=q.j-uE(q)*q.BG,n=q.w2===0?3:G*q.w2,b=g.E(q.D),N=b.next();!N.done;N=b.next())N.value.width=0;for(;F1);N=(D===0?0:b/D*G)+q.D[F].width;if(N>n)q.D[F].width=N;else{q.D[F].width=0;var S=q,l=F,U=S.D[l-1];U!==void 0&&U.width>0? U.width+=N:lq.w2&&(q.w2=b/D),B=!0)}F++}}return B}; zt8=function(q){Yw.call(this,"audio_audible",q)}; HR=function(q,Z,F,B){this.triggeringLayoutId=Z;this.D=F;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=B||q(this.triggerType)}; oQ=function(q){fX.call(this,q);var Z=this;hC(q,"getAvailableQualityData",function(){return Z.getAvailableQualityData()}); hC(q,"getAvailableQualityDataAndMessaging",function(){return Z.getAvailableQualityDataAndMessaging()})}; ft=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; lIZ=function(){}; pC=function(q,Z,F,B){km.call(this,q,{Y:"div",W:"ytp-ad-details-line"},"ad-details-line",Z,F,B);this.D=[];this.hide()}; VxZ=function(q){var Z=q.sampleInterval,F=q.maxBufferSize;if(Z>0&&F>0&&!q.K&&q.S<1E7)try{q.G=q.Z({sampleInterval:Z,maxBufferSize:F});var B;(B=q.G)==null||B.addEventListener("samplebufferfull",function(){return g.h(function(f){if(f.D==1)return g.R(f,q.stop(),2);VxZ(q);g.C7(f)})})}catch(f){q.K=$$B(f.message)}}; dT=function(q){this.data=window.Float32Array?new Float32Array(q):Array(q);this.K=this.D=q-1}; bd=function(q){if(q!=null&&typeof q!=="string")throw Error();return q}; nCK=function(q,Z){var F;Jl(q.wU.get(),"ads_imp","acpn."+((F=IB(q.XE.get(),2))==null?void 0:F.clientPlaybackNonce)+";clr."+Z)}; CyD=function(){var q,Z=(q=tp.getEntriesByType)==null?void 0:q.call(tp,"mark");Z&&Z.forEach(function(F){if(F.name.startsWith("mark_")){var B;(B=tp.clearMarks)==null||B.call(tp,F.name)}})}; hH=function(q,Z){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=Z||q(this.triggerType)}; bCy=function(q,Z,F,B,f){this.callback=q;this.slot=Z;this.layout=F;this.wU=B;this.q8=f;q=qc(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(F.ud,this.wU,q,F.layoutId)}; NT7=function(q,Z,F){if(Z){var B=Z.adLayoutLoggingData;g.Aw(g.ap(),function(){q.K!=null&&B&&g.nh("adsSeenClientLogging",{serializedAdServingDataEntry:B.serializedAdServingDataEntry})},F!=null?F:0)}}; g.TP=function(){return g.Vd("cobalt")}; gCK=function(q){var Z=q.api.rY();q.S!==Z&&(q.S=Z,Dg(q,q.api.getVolume(),q.api.isMuted()))}; Df=function(q){AM(q);q=vm(q);XQ(q)?q=String(q):(EM(q),q=uMD());return q}; kH=function(q,Z,F,B){var f,D,G=F.oX;q[Z]=function(n,b,N){return G(n,b,N,D||(D=rS(mV,iK,kH,B).FM),f||(f=l3B(B)))}}; WM=function(q,Z){q=GK(q,Z);if(Z=q.layout!=null)a:switch(q.D){case "rendering":case "rendering_stop_requested":Z=!0;break a;default:Z=!1}return Z}; xD=function(q){var Z=q.api.C(),F=q.api.getVideoData(),B=g.Xs(Z)+F.Jn;g.ty(F)&&(B="https://music.youtube.com"+F.Jn);if(!g.FQ(Z))return B;Z={};g.ct(q.api,"addEmbedsConversionTrackingParams",[Z]);return g.gJ(B,Z)}; V3=function(q){g.mM(q)}; YZ=function(q){g.J.call(this);this.B=q;this.D=new Map;this.K=new t8(this);g.y(this,this.K);this.K.N(this.B,g.UK("ad"),this.onCueRangeEnter,this);this.K.N(this.B,g.s2("ad"),this.onCueRangeExit,this)}; sM=function(q){q=q.Ec;return rO(q,q[Sm]|0,GcG)}; S$D=function(q,Z,F){var B=[];return g.NX(q,{query:Z},function(f){if(!(F!==void 0&&B.length>=F))return B.push(f.getValue()),g.pX(f)}).then(function(){return B})}; UR=function(q){var Z=q.videoTrack.j!==-1,F=q.audioTrack.j!==-1;if(!Z||!F)if(Z=!Z&&oM(q.videoTrack),F=!F&&oM(q.audioTrack),Z||F){F=Z?q.videoTrack:q.audioTrack;Z=Z?q.audioTrack:q.videoTrack;F.j=oM(F).info.Uc;if(q.policy.Z){var B;Z.j=((B=oM(Z))==null?void 0:B.info.Uc)||Z.j}if(Z.j!==-1){var f=Math.max(Z.D.index.getStartTime(Z.j),F.D.index.getStartTime(F.j));np(q.Np)&&Math.abs(f-np(q.Np))>432E3&&any(q.Np);q.K&&(f=q.K,q.K=0);g.iJ(function(){q.policy.Z||uu(q,f,102)}); q.loader.iL("initManifestlessSync",{st:f,ost:f+q.loader.oh(),a:q.audioTrack.j,v:q.videoTrack.j});q.S&&(q.S.resolve(f+.1),q.S=null);q.policy.Z&&uu(q,f,102)}}}; eK=function(q,Z,F){if(typeof q==="string")return{videoId:q,startSeconds:Z,suggestedQuality:F};Z={};F=g.E(l29);for(var B=F.next();!B.done;B=F.next())B=B.value,q[B]&&(Z[B]=q[B]);if(q=q.embedConfig||q.embed_config)if(typeof q==="string")Z.embed_config=q;else if(g.yF(q))try{var f=JSON.stringify(q);Z.embed_config=f}catch(D){console.error("Invalid embedConfig JSON",D)}return Z}; U7b=function(q,Z){Z=g.wz("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:Z.toString()});q.updateValue("seekTime",Z)}; fUZ=function(q,Z,F){var B,f,D;g.h(function(G){if(G.D==1)return B={context:g.CN(),settingItemId:Z,newValue:F},f=g.x7(upB),g.R(G,g.Av(q,B,f),2);D=G.K;if(!D||D.errorMetadata)return PLX("SetSettingRequest",D),G.return(void 0);g.C7(G)})}; g.Tk=function(q,Z){if("textContent"in q)q.textContent=Z;else if(q.nodeType==3)q.data=String(Z);else if(q.firstChild&&q.firstChild.nodeType==3){for(;q.lastChild!=q.firstChild;)q.removeChild(q.lastChild);q.firstChild.data=String(Z)}else g.kP(q),q.appendChild(bw(q).createTextNode(String(Z)))}; g.VZ=function(q){var Z,F;if(!((Z=q.webPlayerContextConfig)==null?0:(F=Z.embedsHostFlags)==null?0:F.enableLiteUx)||q.Hg||q.j||q.S||q.Y$==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";q=g.Ce(q.experiments,"embeds_web_lite_mode");return q===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":q>=0&&qF.duration?B:F},{duration:0}))&&Z.startTime>0&&Z.responseEnd>0&&(oZ("wffs",Kt(Z.startTime)),oZ("wffe",Kt(Z.responseEnd)))}; LAD=function(q){var Z;g.h(function(F){switch(F.D){case 1:return g.s4(F,2),g.R(F,q.G,4);case 4:g.jB(F,3);break;case 2:g.If(F);case 3:(Z=q.S)==null||Z.disconnect(),g.C7(F)}})}; g.wQ=function(){return g.sY("yt-remote-session-screen-id")}; Qqk=function(q){if(!g.p(q.playerState,128))if(q.videoData.isLoaded(),q.Y3=g.D4(q.videoData.Y$),g.x6(q.videoData)){q.Yk.tick("bpd_s");M7(q).then(function(){q.Yk.tick("bpd_c");if(!q.jU()){q.Kb&&(q.ib(Cx(Cx(q.playerState,512),1)),DU(q));var B=q.videoData;B.endSeconds&&B.endSeconds>B.startSeconds&&o9(q,B.endSeconds);q.pG.finished=!0;HC(q,"dataloaded");q.Rd.z7()&&HCB(q);OCk(q.Aq,q.mY)}}); q.U("html5_log_media_perf_info")&&q.iL("loudness",{v:q.videoData.yd.toFixed(3)},!0);var Z,F=(Z=q.mediaElement)==null?void 0:Z.QO();if(F&&"disablePictureInPicture"in F&&q.J.Jr)try{F.disablePictureInPicture=q.J.Ds&&!q.videoData.backgroundable}catch(B){g.bh(B)}fw9(q);q.hk=new dG7(q.videoData)}else HC(q,"dataloaded")}; x77=function(){}; g.Z1=function(q,Z,F){return q!==null&&Z in q?q[Z]:F}; q9=function(q,Z){Z===q.ip&&(q.ip=void 0)}; Xk=function(q){switch(q){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}}; BhD=function(){VB();var q=aa.document;return!!(q&&q.body&&q.body.getBoundingClientRect&&typeof aa.setInterval==="function"&&typeof aa.clearInterval==="function"&&typeof aa.setTimeout==="function"&&typeof aa.clearTimeout==="function")}; g.SC=function(q,Z,F){if(VA(Z.C())&&Z.getPresentingPlayerType()!==2){if(g.X2(F))return Z.isFullscreen()&&!Z.C().externalFullscreen&&Z.toggleFullscreen(),F.preventDefault(),!0}else{var B=g.X2(F);B&&Z.pauseVideo();g.WL(q,void 0,!0);B&&(g.ZE(q),F.preventDefault())}return!1}; nK=function(q,Z){if(FcZ(q.GP.get())){var F=q.K.get(Z)||0;F++;q.K.set(Z,F);return Z+"_"+F}return g.ZY(16)}; AGD=function(q){q.D.forEach(function(Z){Z.delay.dispose()}); q.D.clear()}; Ym=function(q){q.Z.textContent=mr(q,q.D)+"x"}; vCb=function(q){vz.call(this,"audio_measurable",q)}; XHK=function(){aa&&typeof aa.google_measure_js_timing!="undefined"&&(aa.google_measure_js_timing||A9.disable())}; uUy=function(q,Z,F,B){var f=Math.min(q.Gg,300*q.scale);q.element.style.maxWidth=Z?"":f+"px";q.dU.KH(q.element,q.D,F,q.type===1,B);q.element.style.top?g.e$(q.element,"ytp-bottom"):q.element.style.bottom&&g.e$(q.element,"ytp-top");q.type===3&&q.zP.start()}; c$=function(q,Z,F,B,f,D,G,n,b,N){this.callback=q;this.slot=Z;this.layout=F;this.XE=B;this.A0=f;this.LP=D;this.Zl=G;this.La=n;this.wU=b;this.Z=N;this.driftRecoveryMs=qc(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.G=qc(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0}; pJ=function(){}; g.KAy=function(q,Z,F,B){var f=q.j!==F,D=q.Z!==B;q.jN=Z;q.j=F;q.Z=B;L5(q)&&(Z=q.K)!=null&&(Z.scale=B?1.5:1);CsG(q);q.D.length===1&&(q.D[0].width=F||0);f&&g.cL(q);q.K&&D&&L5(q)&&(q.K.isEnabled&&(F=q.Z?135:90,B=F-q.zP,q.Jn.style.height=F+"px",g.u$(q.uL,"transform","translateY("+-B+"px)"),g.u$(q.progressBar,"transform","translateY("+-B+"px)")),EC8(q.K))}; $7y=function(q,Z,F,B){F=new g.vT({Y:"div",rU:["ytp-menuitem"],L:{tabindex:"0",role:"menuitemradio","aria-checked":B?"true":"false"},T:[{Y:"div",rU:["ytp-menuitem-label"],T:[{Y:"div",rU:["ytp-menuitem-container-with-badge"],T:[{Y:"div",Ka:"{{label}}"},q.j]}]}]},F,q.QM(Z));F.listen("click",function(){q.xI(Z)}); q.B.logVisibility(q.j.element,!0);return F}; a2B=function(q,Z,F,B){Gf.call(this,"player-overlay-layout",q,{},F,B);this.videoAdDurationSeconds=Z;this.interactionLoggingClientData=B}; m7G=function(q,Z,F){F=F===void 0?{}:F;var B={};g.oa("EOM_VISITOR_DATA")?B={"X-Goog-EOM-Visitor-Id":g.oa("EOM_VISITOR_DATA")}:B={"X-Goog-Visitor-Id":F.visitorData||g.oa("VISITOR_DATA","")};if(Z&&Z.includes("www.youtube-nocookie.com"))return B;Z=F.tX||g.oa("AUTHORIZATION");Z||(q?Z="Bearer "+g.ym("gapi.auth.getToken")().access_token:(q=fGb().XR(px),g.cz("pageid_as_header_web")||delete q["X-Goog-PageId"],B=Object.assign({},B,q)));Z&&(B.Authorization=Z);return B}; gu=function(q,Z){return jAb(q.K,Z===void 0?!0:Z)}; qu=function(q){this.value=q}; sq6=function(){var q=f9(1E3,"NO_BID");return g.tU(qBK([iCX(),q]).Kz(kkK),function(){q.cancel()})}; I2D=function(q,Z){var F=document.createElement("img");q.crossOrigin&&(F.crossOrigin=q.crossOrigin);F.src=q.levels[Z.qm].fP(Z.Ws);F.onload=function(){var B=Z.qm,f=Z.Ws;q.D!==null&&(q.D.onload=null,q.D=null);B=q.levels[B];B.loaded.add(f);jqD(q);var D=B.columns*B.rows;f*=D;B=Math.min(f+D-1,B.dE()-1);f=[f,B];q.publish("l",f[0],f[1])}; return F}; Oa7=function(q,Z,F,B,f,D,G,n,b,N,S,l){function U(Q){return Ou(q.Kw.get(),Q)} var u=F.renderer,P=F.config.adPlacementConfig,W=P.kind,H=F.adSlotLoggingData,X=n.d$&&W==="AD_PLACEMENT_KIND_START";X=D&&!X;if(u.adsEngagementPanelRenderer!=null)return Fr(Z,F.elementId,W,u.adsEngagementPanelRenderer.isContentVideoEngagementPanel,u.adsEngagementPanelRenderer.adVideoId,u.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,P,H,function(Q,a,m,c){var e=q.D.get(),Y=Q.slotId,Zg=u.adsEngagementPanelRenderer;Q=Ou(q.Kw.get(),Q);return mA(e,Y,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new CLy(Zg),a,m,Zg.impressionPings,Q,u.adsEngagementPanelRenderer.adLayoutLoggingData,c)}),[]; if(u.adsEngagementPanelLayoutViewModel)return Fr(Z,F.elementId,W,u.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,u.adsEngagementPanelLayoutViewModel.adVideoId,u.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,P,H,function(Q,a,m,c){var e=q.D.get(),Y=Q.slotId,Zg=u.adsEngagementPanelLayoutViewModel;Q=Ou(q.Kw.get(),Q);return Lf(e,Y,"LAYOUT_TYPE_PANEL",new hq(Zg),a,m,Q,u.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,c)}),[]; if(u.actionCompanionAdRenderer!=null){if(u.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return jvk(q.K.get(),q.S,q.D.get(),u.actionCompanionAdRenderer,P,H,B,U);Fr(Z,F.elementId,W,u.actionCompanionAdRenderer.isContentVideoCompanion,u.actionCompanionAdRenderer.adVideoId,u.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,P,H,function(Q,a,m,c){var e=q.D.get(),Y=Q.slotId,Zg=u.actionCompanionAdRenderer;Q=Ou(q.Kw.get(),Q);return mA(e,Y,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Xh(Zg),a,m,Zg.impressionPings,Q,u.actionCompanionAdRenderer.adLayoutLoggingData,c)})}else if(u.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(u.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return i5D(q.K.get(),q.S,q.D.get(),u.topBannerImageTextIconButtonedLayoutViewModel,P,H,B,U); Fr(Z,F.elementId,W,u.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,u.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,u.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,P,H,function(Q,a,m,c){var e=q.D.get(),Y=Q.slotId,Zg=u.topBannerImageTextIconButtonedLayoutViewModel;Q=Ou(q.Kw.get(),Q);return Lf(e,Y,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new O8(Zg),a,m,Q,u.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,c)})}else if(u.imageCompanionAdRenderer)Fr(Z, F.elementId,W,u.imageCompanionAdRenderer.isContentVideoCompanion,u.imageCompanionAdRenderer.adVideoId,u.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,P,H,function(Q,a,m,c){var e=q.D.get(),Y=Q.slotId,Zg=u.imageCompanionAdRenderer; Q=Ou(q.Kw.get(),Q);return mA(e,Y,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new S1(Zg),a,m,Zg.impressionPings,Q,u.imageCompanionAdRenderer.adLayoutLoggingData,c)}); else if(u.bannerImageLayoutViewModel)Fr(Z,F.elementId,W,u.bannerImageLayoutViewModel.isContentVideoCompanion,u.bannerImageLayoutViewModel.adVideoId,u.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,P,H,function(Q,a,m,c){var e=q.D.get(),Y=Q.slotId,Zg=u.bannerImageLayoutViewModel;Q=Ou(q.Kw.get(),Q);return Lf(e,Y,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new c3(Zg),a,m,Q,u.bannerImageLayoutViewModel.adLayoutLoggingData,c)}); else if(u.shoppingCompanionCarouselRenderer)Fr(Z,F.elementId,W,u.shoppingCompanionCarouselRenderer.isContentVideoCompanion,u.shoppingCompanionCarouselRenderer.adVideoId,u.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,P,H,function(Q,a,m,c){var e=q.D.get(),Y=Q.slotId,Zg=u.shoppingCompanionCarouselRenderer;Q=Ou(q.Kw.get(),Q);return mA(e,Y,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new htK(Zg),a,m,Zg.impressionPings,Q,u.shoppingCompanionCarouselRenderer.adLayoutLoggingData,c)}); else if(u.adBreakServiceRenderer){if(!RtD(F))return[];if(W==="AD_PLACEMENT_KIND_PAUSE")return x$D(q.K.get(),P,H,F.renderer.adBreakServiceRenderer,B);if(W!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&W!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return H79(q.K.get(),P,H,F.renderer.adBreakServiceRenderer,B,f,D);n.d2||Yp("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:W,adPlacementConfig:P,daiEnabledForContentVideo:String(D),isServedFromLiveInfra:String(n.d2),clientPlaybackNonce:n.clientPlaybackNonce}); if(W==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!q.Zl)return new K("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!q.Ia)return new K("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");q.Ia.eO({adPlacementRenderer:F,contentCpn:B,x6:f});f=q.Zl.get().getCurrentTimeSec(1,!1);return Jeg(q.K.get(),F.renderer.adBreakServiceRenderer,P,f,B,H,D)}if(!q.gY)return new K("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); q.gY.eO({adPlacementRenderer:F,contentCpn:B,x6:f})}else{if(u.clientForecastingAdRenderer)return cGk(q.K.get(),q.D.get(),P,H,u.clientForecastingAdRenderer,B,f,U);if(u.invideoOverlayAdRenderer)return JG8(q.K.get(),q.D.get(),P,H,u.invideoOverlayAdRenderer,B,f,U);if(u.instreamAdPlayerOverlayRenderer)return LNG(q.K.get(),q.D.get(),P,H,u.instreamAdPlayerOverlayRenderer,B,U);if((u.linearAdSequenceRenderer||u.instreamVideoAdRenderer)&&X)return Y$G(q.K.get(),q.D.get(),F,B,U,N,!q.GP.get().B.C().U("html5_override_ad_video_length_killswitch"), l);if(u.linearAdSequenceRenderer&&!X){if(G)return[];sz(Z,u,W);if(u.linearAdSequenceRenderer.adLayoutMetadata){if(!gJg(u.linearAdSequenceRenderer))return new K("Received invalid LinearAdSequenceRenderer.")}else if(u.linearAdSequenceRenderer.linearAds==null)return new K("Received invalid LinearAdSequenceRenderer.");if(g.C(u.linearAdSequenceRenderer.adStart,gt)){Yp("Found AdNotify in LinearAdSequenceRenderer");F=g.C(u.linearAdSequenceRenderer.adStart,gt);if(!at7(F))return new K("Invalid AdMessageRenderer."); D=u.linearAdSequenceRenderer.linearAds;return n2K(q.G.get(),q.K.get(),q.D.get(),q.Kw.get(),P,H,F,Vt(u.linearAdSequenceRenderer.adLayoutMetadata)?u.linearAdSequenceRenderer.adLayoutMetadata:void 0,D,B,f,n,U,b,q.loadPolicy,q.GP.get())}return es9(q.K.get(),q.D.get(),P,H,u.linearAdSequenceRenderer.linearAds,Vt(u.linearAdSequenceRenderer.adLayoutMetadata)?u.linearAdSequenceRenderer.adLayoutMetadata:void 0,B,f,n,U,b,q.loadPolicy,q.GP.get(),S)}if(!u.remoteSlotsRenderer||D){if(u.instreamVideoAdRenderer&& !X){if(G)return[];sz(Z,u,W);return tKk(q.K.get(),q.D.get(),P,H,u.instreamVideoAdRenderer,B,f,n,U,b,q.loadPolicy,q.GP.get(),q.Kw.get(),S)}if(u.instreamSurveyAdRenderer)return pHX(q.K.get(),q.D.get(),u.instreamSurveyAdRenderer,P,H,B,U,of(q.GP.get(),"supports_multi_step_on_desktop"));if(u.sandwichedLinearAdRenderer!=null)return TR7(u.sandwichedLinearAdRenderer)?g.C(u.sandwichedLinearAdRenderer.adVideoStart,gt)?(Yp("Found AdNotify in SandwichedLinearAdRenderer"),F=g.C(u.sandwichedLinearAdRenderer.adVideoStart, gt),at7(F)?(D=g.C(u.sandwichedLinearAdRenderer.linearAd,hB))?d78(F,D,P,q.G.get(),q.K.get(),q.D.get(),q.Kw.get(),H,B,f,n,U,b,q.loadPolicy,q.GP.get()):new K("Missing IVAR from Sandwich"):new K("Invalid AdMessageRenderer.")):es9(q.K.get(),q.D.get(),P,H,[u.sandwichedLinearAdRenderer.adVideoStart,u.sandwichedLinearAdRenderer.linearAd],void 0,B,f,n,U,b,q.loadPolicy,q.GP.get()):new K("Received invalid SandwichedLinearAdRenderer.");if(u.videoAdTrackingRenderer!=null)return nsZ(q.K.get(),q.D.get(),u.videoAdTrackingRenderer, P,H,B,f,n.Sg,U)}}return[]}; g.Eo=function(q,Z){if(!VKX){var F=fg();Ds(F,{zZ:etB,wB:B0});var B={Bd:{feedbackEndpoint:fR(DE),modifyChannelNotificationPreferenceEndpoint:fR(Gn),playlistEditEndpoint:fR(zn),shareEntityEndpoint:fR(oY),subscribeEndpoint:fR(ac),unsubscribeEndpoint:fR(cn),webPlayerShareEntityServiceEndpoint:fR(pk)}},f=ZB.getInstance(),D={};f&&(D.client_location=f);q===void 0&&(q=fGb());Z===void 0&&(Z=F.resolve(etB));l1B(B,Z,q,D);Ds(F,{zZ:TTX,NO:Iy.instance});VKX=F.resolve(TTX)}return VKX}; MK9=function(q,Z){var F=q.liveBadge.element,B=q.api.isLifaAdPlaying();F.disabled=B||Z;!nR(q)||q.V===Z&&q.X===q.liveIndicatorText&&q.j===q.isPremiere||(q.V=Z,q.X=q.liveIndicatorText,q.j=q.isPremiere,q.y5(),Z?F.classList.add("ytp-live-badge-is-livehead"):F.classList.remove("ytp-live-badge-is-livehead"),q.api.U("web_player_misc_bugfix_c")&&q.liveIndicatorText?q.liveBadge.setContent(q.liveIndicatorText):q.liveBadge.setContent(q.isPremiere?"Estreno":"En vivo"),Z?q.D&&(q.D(),q.D=null,F.removeAttribute("data-tooltip-title")): (F.setAttribute("data-tooltip-title","Sigue adelante hasta alcanzar la transmisi\u00f3n en directo."),q.D=g.BY(q.tooltip,q.liveBadge.element)))}; ojK=function(q,Z,F){var B,f=Z==null?void 0:(B=Z.text)==null?void 0:B.simpleText;f&&(F=tib(q,F,f,Z==null?void 0:Z.icon,Z==null?void 0:Z.secondaryIcon),Z.navigationEndpoint&&F.listen("click",function(){q.B.a_("innertubeCommand",Z.navigationEndpoint);q.hide()},q))}; Tug=function(q){var Z;return(q=q==null?void 0:(Z=q.error)==null?void 0:Z.code)&&q>=400&&q<=599?!1:!0}; ba=function(q){this.Ec=rE(q)}; g.KI=function(q,Z){q.j=0;q.Z=Z||0}; kJ=function(q,Z){q.D-=Z;q.register>>=Z}; g.NX=function(q,Z,F){q=q.D.openCursor(Z.query===void 0?null:Z.query,Z.direction===void 0?"next":Z.direction);return fp(q).then(function(B){return Hy(B,F)})}; hl=function(q,Z,F,B){if(!(Z===q.state&&F===q.xb&&B===q.seekSource||Z!==void 0&&(Z&128&&!F||Z&2&&Z&16))){var f;if(f=Z)f=Z||q.state,f=!!(f&16||f&32);q=new g.h1(Z,F,f?B?B:q.seekSource:null)}return q}; qZ7=function(q){var Z=PT(),F=ug(wN);q&&!Z.G&&(Z.G=!0,F.BG=!0,F.X&&F.fail("w",!0))}; N9=function(q,Z){if(q.simpleText){a:{q=q.simpleText;if(Z&&(Z=ZR8(q))){Z=r0("SPAN",null,Z);break a}Z=g.T$(q)}return Z}var F=[];if(q.runs)for(var B=0;B0?(Z=new SO(q.api,q.D), Z.R_(q.playerOverlay),g.y(q,Z)):(q=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(Z)),g.mM(q))}}else g.mM(Error("addCommonComponents() needs to be called before starting countdown."))}; rby=function(q,Z,F){var B,f,D,G;return g.h(function(n){if(n.D==1){if(!g.cz("start_client_gcf"))return n.An(0);ky(q,Z);return(B=$N())?F?n.An(4):g.R(n,RSG(B),5):n.An(0)}n.D!=4&&(f=n.K,F=(D=f)==null?void 0:D.config);if(!F)return n.An(0);G=F.configData;return g.R(n,D9K(F,Z,G,B),0)})}; Ki9=function(q){for(var Z=[],F=0;F=q.S&&q.vk()}; RS=function(q){return q.U("html5_live_head_playable")&&vA(q)&&q.Qs.Dl==="yt"?q.isLiveHeadPlayable:q.isLivePlayback}; z6K=function(q,Z){var F,B;q=((F=q.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(B=F.videoAuthorizationToken)==null?void 0:B.credentialTransferTokens)||[];for(F=0;Fq.G3()||Z0;return Z>=0&&(q=q.Gm(),q.length||!F)?tC(q,Z):F}; Ss=function(q){q.policy.X3&&q.policy.mO&&Math.min(y7K(q.videoTrack),y7K(q.audioTrack))*1E3>q.policy.Vn?g.$t(q.Hg):q.pP()}; Hc7=function(q){var Z=q.layoutId,F=q.CU,B=q.uw;q.Vw&&(q={},ea(B,"sleo",(q.xc=Z,q.is=F,q.ctp=TQ(Z),q)),Yyy(B))}; JxZ=function(q,Z){return q.PG(q.D,!0)?!1:(tT(q,NaN,"ns",Z),q.clear(),!0)}; GJy=function(q){if(q.I_.length){var Z=q.I_,F=function(B,f){if(B.info.FE==="f"||Z.includes(EB(g.Kc(B.info,q.Np.d2))))return B;for(var D={},G=0;G=Z)return F}q=g.E(q.K.values());for(F=q.next();!F.done;F=q.next())if(F=F.value,F.start<=Z&&F.end>=Z)return F}; vjK=function(q,Z,F){typeof q==="string"&&(q={mediaContentUrl:q,startSeconds:Z,suggestedQuality:F});a:{if((Z=q.mediaContentUrl)&&(Z=/\/([ve]|embed)\/([^#?]+)/.exec(Z))&&Z[2]){Z=Z[2];break a}Z=null}q.videoId=Z;return eK(q)}; X07=function(q,Z){wl.call(this,1,arguments);this.timer=Z}; g.yk=function(q){var Z=bw(q),F=new g.e_(0,0);if(q==(Z?bw(Z):document).documentElement)return F;q=tY(q);Z=S_(Z);Z=q3D(Z.D);F.x=q.left+Z.x;F.y=q.top+Z.y;return F}; K4K=function(q){q=g.E(q);for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.itag&&EjD.has(Z.itag))return!0;return!1}; er=function(q){return q.D7&&q.getVideoData().mutedAutoplay}; MF=function(){C6.call(this)}; $99=function(q,Z,F){var B,f=-1,D=Z[1],G=0,n=7,b=4;D===0&&(n=138,b=3);Z[(F+1)*2+1]=65535;for(B=0;B<=F;B++){var N=D;D=Z[(B+1)*2+1];++G=0)return B;var f;(f=q.V)==null||aEK(f,Z,F);B=Math;f=B.min;var D=q.G;if(D.X)if(D=D.X,D.MA&&D.MA.type===3)D=D.MA.startTime;else if(D.S>0){var G=D.D.index;G=g.Z6(G.offsets.subarray(0,G.count),D.S*D.chunkSize);D=D.D.index.getStartTime(G>=0?G:Math.max(0,-G-2))}else D=0;else D=Infinity;Z=f.call(B,Z,D);q.K=q.policy.uL?null:q.D.Ly(Z).TP[0];Gk(q)&&(q.policy.IK&&(F==null?void 0:F.seekSource)===60||q.g2&&q.g2.abort(),q.policy.nH&&(F=q.V)!=null&&(F.S=void 0));q.BG= 0;return q.K?q.K.startTime:Z}; LZ=function(q,Z){Z.method="POST";Z.postParams||(Z.postParams={});return g.QN(q,Z)}; iRD=function(q){g.J.call(this);this.We=q;this.D=null;this.K=m98;this.We("ismp_i")}; ICD=function(q){if(!q)return knX||(knX=new oS(0,0));if(!/^\d+$/.test(q))return null;Bf(q);return new oS(KK,$v)}; pD=function(q){return q.B.C().experiments.qp("html5_cuepoint_identifier_logging")}; Gw=function(q,Z,F){var B=q.Ec;return v_(q,B,B[Sm]|0,Z,F,void 0===SSD?2:4,void 0,!1,!0)}; eYy=function(q,Z){var F=LR(q.loader)&&Z&&Z.Sj!==void 0&&!Z.Ym?Z.Sj*1E3+(q.loader.oh()||0):s9G(q);if(q.policy.hC){var B=q.Y$;var f=q.k$}else B=H0(q,q.audioTrack),f=H0(q,q.videoTrack);var D=[].concat(g.YB(B.z0),g.YB(f.z0));sW(q)&&D.push.apply(D,g.YB(q.Z));var G=[].concat(g.YB(B.oW),g.YB(f.oW)),n=q.loader.gE();if(q.policy.AJ&&!q.videoData.isLivePlayback){var b=q.videoData.lengthSeconds*1E3;F>=b&&q.loader.iL("invalidSabrCmt",{cmt:F,vd:b})}var N,S;b=q.Zv;var l=q.Mp,U=q.Np,u=q.K,P=q.videoData.I_,W=q.policy, H=q.loader.SO,X=jU6(q.loader)*1E3,Q=(N=q.BG)==null?void 0:N.pK;N=(S=q.BG)==null?void 0:S.lU;var a;S=Number((a=q.S.G)==null?void 0:a.info.itag)||0;var m;a=Number((m=q.S.Z)==null?void 0:m.info.itag)||0;m=q.hJ;var c=q.Mp.OW();var e=(Z==null?0:Z.hj)?Z.hj:q.loader.isSuspended?4:void 0;F={Zv:b,Mp:l,Np:U,z0:D,oW:G,IC:F,nextRequestPolicy:u,f5:P,ME:W,XI:H,xf:X,pK:Q,lU:N,hJ:m,RFF:S,Ycl:a,Z7:n,wy:c,hj:e};D=q.loader.Os();G=$R(D);D&&(F.b1=G);if(Z=LR(q.loader)&&(Z==null?0:Z.Ym)?Z.Sj:q.Mp.eb())F.Wz=Z*1E3;var Y; Z=q.S;D=Z.Dl;if(((Y=Z.ME)==null?0:oy(Y))&&!D)for(Y=g.E(Z.S),G=Y.next();!G.done;G=Y.next())if(G.value.fB){D=!0;break}Y=oy(Z.ME)&&!D?[]:j9G(Z,Z.S);F.kD=Y;Y=q.S;oy(Y.ME)&&!Y.uL?Y=[]:(Z=ruy(Y),Z.length===0&&(Z=Y.j),Y=j9G(Y,Z));F.Ro=Y;F.pI=sW(q)?[q.j]:void 0;q.policy.EF&&(F.e0=DAg(q.loader,q.audioTrack),F.qM=DAg(q.loader,q.videoTrack));if(q.policy.K){Y=q.loader.getCurrentTime();B=L9(q,B.z0,Y);f=L9(q,f.z0,Y);f=Math.min(B,f);sW(q)&&(B=L9(q,q.Z,Y),q.Mp.Nl()&&B0&&q.D[0].uC()&&(F.Pw=q.D[0].sW());return F}; R68=function(q,Z){zj(q,{createkeysession:1});q.status="gr";n4("drm_gk_s",void 0,q.videoData.Dl);q.url=Ca6(q);try{q.S=Z.createSession(q.V,function(F){zj(q,{m:F})})}catch(F){Z="t.g"; F instanceof DOMException&&(Z+=";c."+F.code);q.publish("licenseerror","drm.unavailable",1,Z,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}q.S&&(h68(q.S,function(F,B){DRD(q,F,B)},function(F,B,f){if(!q.jU()){B=void 0; var D=1;g.Lg(q.K)&&g.dh(q.J)&&q.J.U("html5_enable_safari_fairplay")&&f===1212433232&&(B="ERROR_HDCP",D=q.J.U("html5_safari_fairplay_ignore_hdcp")?0:D);q.error("drm.keyerror",D,F,B)}},function(){q.jU()||(zj(q,{onkyadd:1}),q.Dl||(q.publish("sessionready"),q.Dl=!0))},function(F){q.US(F)}),g.y(q,q.S))}; VD=function(){var q=g.sY("yt-player-user-settings"),Z=new Map;if(q){q=g.E(Object.entries(q));for(var F=q.next();!F.done;F=q.next()){var B=g.E(F.value);F=B.next().value;B=B.next().value;Z.set(F,B)}}return Z}; rV=function(q,Z){var F=q.Mp.BH();return F.isInline()&&!Z.i4?new ob(0,480,!1,"v"):Im(Z)?wH:F.isBackground()&&zG()/1E3>60&&!g.em(q.J)?new ob(0,360,!1,"v"):wH}; VU=function(){this.K={};this.D=null}; g.x6=function(q){return!!(q.LB||q.gj||q.Gs||q.hlsvp||q.TG())}; ca7=function(q,Z){q=g.E(q.itemData);for(var F=q.next();!F.done;F=q.next())F=F.value,F.B.logVisibility(F.element,Z)}; aEK=function(q,Z,F){F!=null&&F.mR||(q.O$=[]);q.policy.mD?(Z=g.Z6(q.z0,{startTimeMs:Z*1E3},function(B,f){return B.startTimeMs-f.startTimeMs}),q.D!==Z&&(q.D=-1,q.S=void 0)):(HxX(q,!0),q.D=it8(q.z0,Z*1E3))}; g.Za=function(q){return g.dh(q)||an(q)==="TV_UNPLUGGED_CAST"||CV(q)}; Qk=function(q,Z,F){q.K=Z;var B;(B=q.Z)==null||B.xS(Z,F);var f;(f=q.Dl)==null||f.xS(Z);q.D=0;OZ(q);JaK(q,Z)}; qjD=function(){this.dF=!1}; g.jJ=function(q){return q&&window.yterr?function(){try{return q.apply(this,arguments)}catch(Z){g.vf(Z)}}:q}; YZg=function(q,Z,F,B,f,D){var G=nK(q.K.get(),"SLOT_TYPE_PLAYER_BYTES"),n=nK(q.K.get(),"SLOT_TYPE_IN_PLAYER"),b=Bs(q.K.get(),"LAYOUT_TYPE_SURVEY",n);B=Dk(q,Z,F,B);var N=[new Nl(q.D,G)];F=[new $H(q.D,G),new g4(q.D,F),new Q$(q.D,b)];if(B instanceof K)return B;n=D({slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bL:"core",slotEntryTrigger:B,slotFulfillmentTriggers:N,slotExpirationTriggers:F},{slotId:n,layoutId:b});D=n.Lrl;n=n.F4;return[{slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:xG(q,Z,G,B),slotFulfillmentTriggers:AD(q,Z,G,N),slotExpirationTriggers:F,bL:"core",clientMetadata:new zX([new Si(D),new vM(XU(Z)),new Ez({St:q.St(Z)})]),adSlotLoggingData:f},n]}; tOD=function(q,Z){var F,B;(B=(q=(F=q.A8)==null?void 0:F.get(Z))==null)||(Z=q.S?!1:q.S=!0,B=!Z);return!B}; xj=function(q){this.Ec=rE(q)}; qs=function(q,Z,F,B){g.In.call(this);var f=this;this.cZ=q;this.start=Z;this.end=F;this.isActive=B;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.eP={error:function(){!f.jU()&&f.isActive&&f.publish("error",f)}, updateend:function(){!f.jU()&&f.isActive&&f.publish("updateend",f)}}; this.cZ.e7(this.eP);this.mj=this.isActive}; p0Z=function(q,Z){if(q.Rx.K.currentState<2){var F=sx(Z,q.GP);F==="error"?q.callback.Dz(q.slot,q.layout,new JB("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:Z},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):E7(q.q8,q.layout,F)}}; MI=function(q){var Z;return!((Z=q.playerResponse)==null||!Z.compositePlayabilityStatus)}; Pb6=function(q,Z,F){var B,f,D;return g.h(function(G){switch(G.D){case 1:if(!g.cz("start_client_gcf")){G.An(0);break}F&&NI(q,F);q.fG(Z);B=$N();if(!B){G.An(3);break}if(F){G.An(4);break}return g.R(G,vLb(B),5);case 5:f=G.K,F=(D=f)==null?void 0:D.config;case 4:return g.R(G,gsb(F,Z,B),3);case 3:if(F)for(var n=F,b=g.E(q.j.D),N=b.next();!N.done;N=b.next())N=N.value,N(n);g.C7(G)}})}; Aa=function(q,Z,F){var B=q.D.S,f=d5(q.D)>>>0;f=q.D.D+f;var D=f-B;D<=0&&(q.D.S=f,F(Z,q,void 0,void 0,void 0),D=f-q.D.D);if(D)throw Error();q.D.D=f;q.D.S=B}; g.Aw=function(q,Z,F){return YD(Z,0,F)}; B0=function(q){this.D=q}; d97=function(q,Z){Z=Z===void 0?!1:Z;q.gU&&q.gU.D&&q.gU.K&&(q.gU.D.wI(q.I_,q),q.gU.K.wI(q.I_,q));dS(q.audioTrack,null,Z);dS(q.videoTrack,null,Z);q.gU&&(q.gU.G=!1);q.gU=null}; VOX=function(){}; e6y=function(q,Z){q.timestampOffset!==Z&&(q.timestampOffset=Z,q.policy.OP&&Ej(q.Np),q.S.V=q.timestampOffset,q.Mp.Z$(q.timestampOffset),q.Np.isManifestless&&(q.Np.timestampOffset=q.timestampOffset),q.videoTrack.Da(q.timestampOffset),q.audioTrack.Da(q.timestampOffset))}; TgK=function(q,Z){for(var F=[],B=g.E(Object.keys(q.D)),f=B.next();!f.done;f=B.next())f=f.value,F.push(f+"_"+q.D[f].type+"_"+q.D[f].status);return F.join(Z)}; MOy=function(q){q.timelyActions&&(q.G=q.timelyActions.reduce(function(Z,F){if(F.cueRangeId===void 0)return Z;Z[F.cueRangeId]=0;return Z},{}))}; UWD=function(q){var Z=q.api.C(),F=q.api.getVideoData(),B=q.api.Ca().getPlayerSize().width;Z=Z.S;return!!F.videoId&&B>=q.K&&F.t3&&!F.z3&&!q.api.isEmbedsShortsMode()&&!Z}; kWg=function(q,Z){var F=Z.params||{};q={urlParams:{a:"logerror",t:"jserror",type:Z.name,msg:Z.message.substr(0,250),line:Z.lineNumber,level:q,"client.name":F.name},postParams:{url:g.oa("PAGE_NAME",window.location.href),file:Z.fileName},method:"POST"};F.version&&(q["client.version"]=F.version);if(q.postParams){Z.stack&&(q.postParams.stack=Z.stack);Z=g.E(Object.keys(F));for(var B=Z.next();!B.done;B=Z.next())B=B.value,q.postParams["client."+B]=F[B];if(F=g.oa("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(Z= g.E(Object.keys(F)),B=Z.next();!B.done;B=Z.next())B=B.value,q.postParams[B]=F[B];(F=g.oa("LAVA_VERSION"))&&(q.postParams["lava.version"]=F);F=g.oa("SERVER_NAME");Z=g.oa("SERVER_VERSION");F&&Z&&(q.postParams["server.name"]=F,q.postParams["server.version"]=Z)}g.QN(g.oa("ECATCHER_REPORT_HOST","")+"/error_204",q)}; K4=function(q,Z,F){for(var B=q.length,f=typeof q==="string"?q.split(""):q,D=0;D>6|192:((f&64512)===55296&&B+1>18|240,Z[F++]=f>>12&63|128):Z[F++]=f>>12|224,Z[F++]=f>>6&63|128),Z[F++]=f&63|128)}return F}; Odg=function(q){var Z=v0(q.B.pB());return Z?q.D?Z.jr():Z.MS():!1}; Zyb=function(q,Z,F){var B=g.$w(q.provider);qlD(q,B,Z,0,F);PH(q,B);nk(q)}; ZkZ=function(q){var Z,F;return g.h(function(B){if(B.D==1)return g.R(B,NQK(q),2);F=Z=B.K;return B.return(F)})}; FQZ=function(q){this.D=q;this.iv=(0,g.HV)(q$(16))}; BF7=function(q,Z){if(Z=Z.find(function(F){return!(!F||!F.tooltipRenderer)}))q.tooltipRenderer=Z.tooltipRenderer}; WO=function(q){if(q.gU)return q.gU.readyState;switch(q.Xy.webkitSourceState){case q.Xy.SOURCE_OPEN:return"open";case q.Xy.SOURCE_ENDED:return"ended";default:return"closed"}}; $Y=function(q,Z,F){this.S=q;this.WG=F===void 0?"na":F;this.Z=[];this.isInitialized=!1;this.G=new N_(-1,!0,this);this.D=this;this.V=Z;this.Dl=this.PG=!1;this.k$="uk";this.Y$=!1;this.j=!0}; fl9=function(q,Z){this.statusCode=q;this.message=Z;this.K=this.heartbeatParams=this.errorMessage=null;this.D={};this.nextFairplayKeyId=null}; M8K=function(q){var Z=!(q==null?0:q.KA())&&(q==null?void 0:q.d2())&&EKG(),F;if(!(F=q==null)){F=g.Br(q);q=q.C().Z;var B=zH("243");F=!(B&&bl(F,B,q,!0)===!0)}return{supportsVp9Encoding:!(F||Z),supportXhr:s_}}; Dw6=function(q){q.sourceElement&&(document.activeElement&&g.yT(q.element,document.activeElement)&&q.sourceElement.focus(),q.sourceElement.setAttribute("aria-expanded","false"),q.sourceElement=void 0);g.DJ(q.Z);q.j=void 0}; h68=function(q,Z,F,B,f){q.Z=Z;q.S=F;q.j=B;q.X=f}; hn6=function(q,Z,F){if(!Cny(q,Z))return 0;if(!q.dF||!isNaN(F)&&F>0)return 2;if(Z<0)return 1;F=q.F3();return Z=q.length)throw Error();}; zIy=function(q){switch(q){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:GT(q,"unknown transitionReason")}}; g.Xr=function(q){g.w.call(this,{Y:"div",rU:["ytp-error"],L:{role:"alert"},T:[{Y:"div",W:"ytp-error-content",T:[{Y:"div",W:"ytp-error-icon-container",T:[{Y:"svg",L:{fill:"#fff",viewBox:"0 0 48 48"},T:[{Y:"path",L:{d:"M0 0h48v48H0V0z",fill:"none"}},{Y:"path",L:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{Y:"div",W:"ytp-error-content-wrap", T:[{Y:"div",W:"ytp-error-content-wrap-reason",Ka:"{{content}}"},{Y:"div",W:"ytp-error-content-wrap-subreason",Ka:"{{subreason}}"}]}]}]});this.api=q;this.keys=[];this.S=!1;q.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.zb)}; Nh=function(q,Z,F,B,f,D,G,n){g.J.call(this);var b=this;this.K=q;this.S=Z;this.LP=B;this.Zl=f;this.GP=D;this.wU=G;this.A0=n;this.D=null;F.get().addListener(this);this.addOnDisposeCallback(function(){F.jU()||F.get().removeListener(b)}); B.get().addListener(this);this.addOnDisposeCallback(function(){B.jU()||B.get().removeListener(b)})}; EZ=function(q,Z){if(q.policy.YL)return!1;var F=Z.getResponseHeader("content-type"),B=Z.fh();q=!B||B<=q.policy.lF;return(!Z.Ay()||!F||F.indexOf("text/plain")!==-1)&&q}; ZR8=function(q){q=q.split(/(?:\r\n|\r|\n)/g);if(q.length>1){for(var Z=[q[0]],F=1;F(0,g.Le)()?0:1}; g.QU=function(q,Z){return q.classList?q.classList.contains(Z):g.r1(AE(q),Z)}; g.r1=function(q,Z){return gIB(q,Z)>=0}; thk=function(q,Z,F,B){function f(){uP({writeThenSend:!0},Z,F.tier)} Z=Z===void 0?!1:Z;B=B===void 0?!1:B;q&&(YH=new q);q=g.bk("tvhtml5_logging_max_batch_ads_fork")||g.bk("tvhtml5_logging_max_batch")||g.bk("web_logging_max_batch")||100;var D=(0,g.Le)(),G=It(Z,F.tier),n=G.G;B&&(G.S=!0);B=0;F&&(B=Wg().getSequenceCount(F));B>=1E3?f():B>=q?Slk||(Slk=ew(function(){f();Slk=void 0},0)):D-n>=10&&(JIZ(Z,F.tier),G.G=D)}; k2K=function(q,Z,F){Z=Z===void 0?0:Z;F=F===void 0?-1:F;if(!q.totalLength||!F)return new DataView(new ArrayBuffer(0));F<0&&(F=q.totalLength-Z);q.focus(Z);if(!zb(q,Z,F)){var B=q.K,f=q.S;q.focus(Z+F-1);f=new Uint8Array(q.S+q.D[q.K].length-f);for(var D=0,G=B;G<=q.K;G++)f.set(q.D[G],D),D+=q.D[G].length;q.D.splice(B,q.K-B+1,f);D0(q);q.focus(Z)}B=q.D[q.K];return new DataView(B.buffer,B.byteOffset+Z-q.S,F)}; $Q8=function(q,Z){Z=HjK(q,Z);if(!Z)return null;var F;Z.qZ=(F=qc(q.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:F.adBreakRemainingLengthSeconds;return Z}; hz9=function(q){return g.O4(q.D,function(Z){return Z.info.video?Z.info.video.projectionType==="EQUIRECTANGULAR":!1})}; g.YM=function(q,Z){return dL(q,Z)>0}; vU=function(q,Z){return llX(q,Z||{},!0)}; uz8=function(q){return Object.values(UwZ).includes(q)}; g.ia=function(q){g.J.call(this);var Z=this;this.provider=q;this.logger=new g.Wz("qoe");this.D=new Map;this.sequenceNumber=1;this.uL=NaN;this.CP="N";this.V=this.d_=this.Ur=this.Dl=this.K=0;this.VO=this.BG=this.j=this.Oc="";this.LB=this.WG=NaN;this.Hg=0;this.X3=-1;this.G0=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.KB=this.isEmbargoed=this.k$=this.isOffline=this.isBuffering=!1;this.Lp=[];this.PG=null;this.Jn=this.G=this.vG=this.X=!1;this.S=-1;this.o_=!1;this.bb=new g.im(this.Zh,750,this);this.Y7= this.adCpn=this.Y$=this.contentCpn="";this.adFormat=void 0;this.QC=0;this.I_=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.J0=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Gb=!1;this.Tb=NaN;this.dU=0;this.w2=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.j$=!1;this.ac=new Set;this.JZ={eE:function(D){Z.eE(D)}, BSl:function(){return Z.Z}, rA:function(){return Z.contentCpn}, JmL:function(){return Z.Y$}, reportStats:function(){Z.reportStats()}, FnG:function(){return Z.D.get("cat")||[]}, yL:function(D){return Z.D.get(D)||[]}, C5U:function(){return Z.D}, sdn:function(){return 0}, bUU:function(){return{adCpn:Z.adCpn,Y7:Z.Y7,adFormat:Z.adFormat}}}; this.zP=this.provider.J.U("html5_qoe_relaxed_reporting");var F=g.Ce(this.provider.J.experiments,"html5_qoe_proto_mock_length");F&&!m4.length&&(m4=Pek(F));g.y(this,this.bb);try{var B,f;(f=(B=navigator).getBattery)==null||f.call(B).then(function(D){Z.PG=D})}catch(D){}g.zR(this,0,"vps",["N"]); q.J.Nl()&&(this.dU=(0,g.Le)(),this.Tb=g.TL(function(){var D=(0,g.Le)(),G=D-Z.dU;G>500&&Z.iL("vmlock",{diff:G.toFixed()});Z.dU=D},250)); this.provider.videoData.R6&&(this.remoteControlMode=rf8[this.provider.videoData.R6]||0);this.provider.videoData.qB&&(F=wEk(this.provider.videoData.qB),F==null?0:F.length)&&(this.remoteConnectedDevices=F);q.J.Nl()&&(this.eU=new WQg,g.y(this,this.eU));lSK(q.J)&&(this.HG=new XW,g.y(this,this.HG))}; yf7=function(q,Z,F){var B=0;q=q.D.D.get(F);if(!q)return-1;q=g.E(q);for(F=q.next();!F.done;F=q.next()){if(F.value.cpn===Z)return B;B++}return-1}; VO=function(q){this.value=q}; w5=function(q){q.K.hide();q.banner.update({vendor:We(q)})}; ZZX=function(){this.D={}}; kj=function(q){this.Ec=rE(q)}; ntB=function(q,Z,F,B){B=B===void 0?!1:B;var f=q.K.get(Z),D=q.G.getStartTime(Z),G=q.G.getDuration(Z);q.j=!1;q.X=Z;var n=D,b;((b=f==null?void 0:f.D)!=null?b:[q.cpn]).forEach(function(N,S){var l,U=(l=f==null?void 0:f.K[S])!=null?l:G;if(F>=n&&F=((S=F.video)==null?void 0:S.height)){N=!1;break a}}N=!0}N&&(N=F.itag,Z=G?G:{itag:N,FE:Z,B1:D},D?Z.numChannels=F.audio.numChannels:(D=F.video,Z.maxWidth=D==null?void 0:D.width,Z.maxHeight=D==null?void 0:D.height,Z.maxFramerate=f,Sc(q,lj.BITRATE)&&(Z.maxBitrateBps=F.Ml* 8),Z.kt=D==null?void 0:D.isHdr()),q.D.set(B,Z))}; mR=function(q,Z){this.triggeringSlotId=Z;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=q(this.triggerType)}; Hy6=function(q){return g.sY("yt-player-drc-pref")?g.uh(q,o4):q}; OyD=function(q,Z){q.NB("dataloaded",Z,Z.getVideoData());q.seekTo(Infinity);q.playVideo()}; QO8=function(q,Z){if(q.D){Z=Math.floor(Z*.4);Z=Math.max(Z,47);var F=Z+2;if(q.S!==F){q.S=F;q.K.height=F;q.D.clearRect(0,0,1,F);var B=q.D.createLinearGradient(0,2,0,2+Z),f=Z-42;B.addColorStop(0,"rgba(0, 0, 0, 0)");B.addColorStop(f/Z,"rgba(0, 0, 0, 0.3)");B.addColorStop(1,"rgba(0, 0, 0, 0.68)");q.D.fillStyle=B;q.D.fillRect(0,2,1,Z);q.element.style.height=F+"px";try{q.element.style.backgroundImage="url("+q.K.toDataURL()+")"}catch(D){}}}}; cY=function(q){return q==null?q:xwB(q)}; Afb=function(q){q.Fe="rendering_start_requested";q.b6(-1)}; vIZ=function(q,Z){return(q=B6D(q,Z*1E3))?q.durationMs/1E3:0}; Q_g=function(q){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=q(this.triggerType)}; XEZ=function(q){var Z;(Z=q.B.getVideoData(1))!=null&&Z.PG&&(q.K=!1,Z={},q.D&&q.videoId&&(Z.cttAuthInfo={token:q.D,videoId:q.videoId}),BX("video_to_ad",Z))}; I9=function(q,Z,F){return(F<0||F===q.j)&&!isNaN(q.X)?q.X:Z}; g.so=function(){CR.apply(this,arguments)}; ha=function(q){g.DJ(q.G,!q.D)}; eZ=function(q,Z){gT.call(this,q,Z);this.Jn=this.w2=!1;this.BG=this.zP=Infinity;this.WG=NaN;this.KB=!1;this.eU=NaN;this.VO=this.Oc=this.HG=0;this.LF=Z.LF||1;this.Ux=Z.Ux||this.LF;this.Oq=Z.Oq;this.Uc=Z.Uc;this.pE=Z.pE;RnK(this);this.sx(this.D);this.j$=(this.eU-this.D)/1E3}; BQK=function(q,Z){var F;Z&&(F=g.s3(q.G.D,function(f){return f.id===Z})); if(!F&&(F=g.s3(q.G.D,function(f){var D;return!((D=f.fB)==null||!D.isDefault)}),Z)){var B; q.iL("iaf",{id:Z,sid:(B=F)==null?void 0:B.id})}return F}; zj=function(q,Z){var F=F===void 0?!1:F;NJ(Z);(F||q.J.Nl())&&q.publish("ctmp","drmlog",Z)}; EIK=function(q,Z,F,B){return Z&&F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&q instanceof Ka?new Wj(function(f){return xm(B,f)},F.adSlotMetadata.slotId):q}; R9=function(q,Z,F){this.K=q;this.isAsync=Z;this.D=F}; KQB=function(q,Z,F){var B=g.uw(Z,F),f=B.fm("default.jpg");g.w.call(this,{Y:"a",rU:["ytp-video-menu-item","ytp-button"],L:{role:"menuitemradio","aria-label":B.title,href:q.C().getVideoUrl(B.videoId,Z.listId?Z.listId.toString():null)},T:[{Y:"div",W:"ytp-video-menu-item-index",Ka:String(F+1)},{Y:"div",W:"ytp-video-menu-item-now-playing",Ka:"\u25b6"},{Y:"div",W:"ytp-video-menu-item-thumbnail",L:{style:f?"background-image: url("+f+");":void 0}},{Y:"div",W:"ytp-video-menu-item-title",Ka:B.title},{Y:"div", W:"ytp-video-menu-item-author",Ka:B.author}]});this.api=q;this.index=F;this.listen("click",this.onClick)}; mwX=function(q){if(q=q.getWatchNextResponse()){var Z,F;q=(Z=q.playerOverlays)==null?void 0:(F=Z.playerOverlayRenderer)==null?void 0:F.timelyActionsOverlayViewModel;Z=g.C(q,$w9);if(Z!=null&&Z.timelyActions)return Z==null?void 0:Z.timelyActions.map(function(B){return g.C(B,al8)}).filter(function(B){return!!B})}}; iyy=function(q){var Z=q.api.getRootNode(),F,B=q.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((F=Z.parentElement)==null?void 0:F.parentElement)||Z:Z;q.D=new Jv(B,function(f){f!=null&&(q.api.C().KR=f,q.api.C().Sr="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.y(q,q.D);q.events.N(q.api,"videoStatsPingCreated",function(f){var D=q.D;D=D.D==null?null:Math.round(D.D*100)/100;f.inview=D!=null?D:void 0;D=q.api.getPlayerSize();if(D.height>0&&D.width>0){D=[Math.round(D.width),Math.round(D.height)];var G=g.xh();G>1&&D.push(G);D=D.join(":")}else D=void 0;f.size=D})}; ya9=function(q){var Z=W46(q);if(Z.binP)return Z.binP;Z.binP=Promise.resolve().then(function(){return fetch(q)}).then(function(F){if(!F.ok)throw Error("HTTP"+F.statusText); return F.arrayBuffer()}); Z.binP.then(function(F){Z.bin=F},function(){L4D(q)}); return Z.binP}; FX=function(q,Z,F,B){g.J.call(this);this.policy=q;this.K=Z;this.gq=F;this.o_=B;this.zP=this.Oc=0;this.uL=-1;this.Y$=this.Z=0;this.Dl=!1;this.interruptions=[];this.G=[{stamp:0,net:0,max:0}];this.BG=this.j=(0,g.Le)();this.V=new c0(4,1,.6,.4);this.k$=new c0(4,1,.6,.4);this.X=new c0(20,1,.5,.4);q.uL?this.S=new jRD(q.D):q.K?this.S=new cI(q.D):this.S=new c0(q.D,20,.5,.4);this.dU=new c0(5,1,.25);this.PG=new c0(30,1,.5);q=g.sY("yt-player-bandwidth")||{};Z=this.policy.S;if(q.byterate>0)Z=q.byterate,this.Dl= !0;else{var f;F=(((f=navigator.connection)==null?void 0:f.downlink)||0)*64*1024;F>0&&(Z=F,this.Dl=!0)}this.S.sT(this.policy.j,Z);q.delay>0&&this.V.sT(1,Math.min(q.delay,2));q.stall>0&&this.X.sT(1,q.stall);q.init>0&&(this.BG=Math.min(q.init,this.BG));q.interruptions&&(this.G=this.G.concat(q.interruptions),this.G.length>16&&this.G.pop());this.uL=(0,g.Le)();this.policy.X>0&&(this.WG=new g.im(this.HG,this.policy.X,this),g.y(this,this.WG),this.WG.start())}; xC8=function(q){var Z=[new yY(q.v5),new UGG(q.gi),new QA(q.adPlacementConfig),new dR(q.videoLengthSeconds),new eI(q.qZ)];q.instreamAdPlayerOverlayRenderer&&Z.push(new av(q.instreamAdPlayerOverlayRenderer));q.playerOverlayLayoutRenderer&&Z.push(new to(q.playerOverlayLayoutRenderer));q.VP&&Z.push(new Cm(q.VP));return Z}; Aqg=function(q,Z){if(Z>=q.D.length)return q.j;for(var F=0,B=0;B0)for(var Z=g.E(q.videoData.sabrContextUpdates.keys()),F=Z.next();!F.done;F=Z.next()){F=F.value;var B=void 0;((B=q.videoData.sabrContextUpdates.get(F))==null?0:B.sendByDefault)&&q.videoData.I_.add(F)}if(q.policy.Dl&&q.D.length)for(Z=g.E(q.D),F=Z.next();!F.done;F=Z.next())(F=F.value.sW())&&F.type&&F.sendByDefault&&q.videoData.I_.add(F.type)}; g.ta=function(q){if(g.dh(q.B.C()))return q.ZE.get("unplugged")}; g.NL=function(q,Z){Z=gIB(q,Z);var F;(F=Z>=0)&&g.rt(q,Z);return F}; td9=function(){var q,Z;return{UW:new aw(function(F,B){q=F;Z=B}), resolve:q,reject:Z}}; fE=function(q){if(!isNaN(q.BG))return q.BG;var Z=q.D,F;for(F in Z){var B=Z[F].index;if(B.isLoaded()&&!vp(Z[F].info.mimeType)){Z=0;for(F=B.X8();F<=B.F3();F++)Z+=B.getDuration(F);Z/=B.KJ();Z=Math.round(Z/.5)*.5;B.KJ()>10&&(q.BG=Z);return Z}if(q.isLive&&(B=Z[F],B.iI))return B.iI}return NaN}; xtk=function(){zL.instance||(zL.instance=new zL);return zL.instance}; pR=function(q,Z){var F={};if(q!==void 0)if(Z!=null)for(var B in Z){var f=Z[B];B in Object.prototype||f!=null&&(F[B]=typeof f==="function"?f(q):q[f])}else g.gN(F,q);return szb(Ng(new V9,F))}; EN8=function(q){fX.call(this,q);var Z=this;Oo(this.api,"getPlaybackRate",function(){return Z.api.getPlaybackRate()}); Oo(this.api,"setPlaybackRate",function(F){typeof F==="number"&&Z.api.setPlaybackRate(F)})}; nW=function(q,Z){Z=q.pos+Z;if(!(q.D.length>=Z)){for(var F=q.D.length*2;F0;b--)F.push(n)}F.length!==G?Z.error=!0:(D=F.slice(-D),F.length=f,dw7(Z,F,D));break;case 1:dw7(Z,la,bRK);break;case 0:kJ(Z, Z.D&7);F=J7(Z,16);f=J7(Z,16);(F^f)!==65535&&(Z.error=!0);Z.output.set(Z.data.subarray(Z.K,Z.K+F),Z.S);Z.K+=F;Z.S+=F;break;default:Z.error=!0}q.S>q.output.length&&(q.output=new Uint8Array(q.S*2),q.S=0,q.K=0,q.G=!1,q.D=0,q.register=0)}q.output.length!==q.S&&(q.output=q.output.subarray(0,q.S));return q.error?new Uint8Array(0):q.output}; b3k=function(q,Z,F,B){var f=nK(q.K.get(),"SLOT_TYPE_IN_PLAYER");F=new Fj(q.D,F);var D=[new Nl(q.D,f)],G=[new $H(q.D,f),new g4(q.D,Z)];D={slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bL:"core",slotEntryTrigger:F,slotFulfillmentTriggers:D,slotExpirationTriggers:G};return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:[new Nl(q.D,f)],slotExpirationTriggers:[new g4(q.D,Z),new $H(q.D,f)],bL:"core",clientMetadata:new zX([new Si(B(D))])}}; O4G=function(q,Z){mx(q,1,Z.videoCodec);mx(q,3,Z.maxHeight);mx(q,4,Z.maxWidth);mx(q,11,Z.maxFramerate);mx(q,12,Z.maxBitrateBps);Wt(q,15,Z.is10BitSupported)}; AKX=function(q){q.channel.classList.remove("ytp-title-show-collapsed");q.channel.classList.remove("ytp-title-show-expanded")}; $BK=function(q){q.Fh();var Z=q.SZ;dg(q);q.events.N(window,"resize",q.diU);var F=q.AP();q.lL.NE("onVolumeChange",q.TA);if(Z&&Vd7(Z)){var B=VA(q.J);B&&!q.gF&&(Z.fetch=0);var f=g.FQ(q.J);f&&!q.gF&&(Z.fetch=0);l_(q,Z);g.FQ(q.J)&&q.Yk.tick("ep_pr_s");if(!B||q.gF)if(f&&!q.gF)L1(q);else if(!F.hP())q.playlist.onReady(function(){yU(q)})}q.l5(q.Dv(),!1,!0); g.p(q.Dv().getPlayerState(),128)||(Z=eI7(!q.J.deviceIsAudioOnly),Z==="fmt.noneavailable"?q.uo("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):Z==="html5.missingapi"?q.uo(Z,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):F&&F.hP()&&D2(q)&&(q.J.SW||q.J.zH)?Vk(q):F.Xp?q.lL.mutedAutoplay({durationMode:F.mutedAutoplayDurationMode}):g.sY("yt-player-playback-on-reload")?(g.nh("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!q.J.zP}),g.e0("yt-player-playback-on-reload",!1),Vk(q)): Ap(q.J)||jWb(q),g.LO(q.J)||an(q.J)==="MWEB"?(g.Aw(g.ap(),function(){eO(q)}),g.Aw(g.ap(),function(){l49()})):(eO(q),l49()))}; wsK=function(q,Z){q.jU()||(q.K=Z,q.logger.update(Z.qh()),q.Z.resolve(),q.j.resolve(void 0),q.tI())}; NEX=function(q,Z){var F=Z&2147483648;F&&(q=~q+1>>>0,Z=~Z>>>0,q==0&&(Z=Z+1>>>0));q=re(q,Z);return typeof q==="number"?F?-q:q:F?"-"+q:q}; g.FtD=function(q){this.Qs=q;this.V=new qjD;this.E4=this.TT=!1;this.O4=2;this.WG=20971520;this.Jn=8388608;this.Y$=120;this.Rs=this.D9=this.PR=2;this.Sr=this.zE=!1;this.u2=1E3;this.j$=15;this.UT=1;this.PG=1.15;this.zP=1.05;this.uc=1;this.sX=this.GA=!1;this.JV=6;this.S=!1;this.Eb=100;this.PX=10;this.nW=6;this.fD=!1;this.nU=1;this.BX=this.Lm=!1;this.nz=2;this.E$=this.aK=this.nD=!1;this.Gb=!0;this.ix=this.jN=this.HG=this.QC=!1;this.c5=!0;this.ll=!1;this.G="";this.zH=[];this.Kk=this.LB=!1;this.NP=0;this.sO= "";this.wx=this.CH=this.KU=this.E9=this.nE=this.Z=this.iD=this.jA=this.bI=this.D=this.vG=this.k$=this.nH=this.Aj=this.Dl=this.SW=this.IK=!1;this.lx=!0;this.Mx=this.qj=this.vX=this.t3=this.FP=this.K=this.eU=!1;this.o_=!0;this.yC=this.LH=this.uL=this.cH=this.VO=this.dU=!1;this.Ob=3;this.J$=this.KK=this.OP=this.bb=this.sb=this.uD=this.hH=this.M2=!1;this.Si=0;this.Hg=this.JJ=this.YZ=!1;this.KB=1;this.Jy=this.v2=this.zy=this.j=this.AJ=!1;this.IZ=g.Ce(this.Qs.experiments,"html5_min_readbehind_secs");this.i4= g.Ce(this.Qs.experiments,"html5_min_readbehind_cap_secs");this.zY=this.Qs.U("html5_offline_reset_media_stream_on_unresumable_slices");this.Ml=NaN;this.PY=ru(this,"html5_request_size_min_kb",64)*1024;this.Oc=2097152;this.Sh=ru(this,"html5_bypass_contention_secs");this.pY=1048576;this.gj=ru(this,"html5_repredict_interval_ms",1800);this.N$=ru(this,"html5_head_miss_secs",5);this.Gw=ru(this,"html5_min_upgrade_health_secs",10);this.KW=ru(this,"html5_min_seconds_between_format_selections",8);this.Xp=ru(this, "html5_max_buffer_health_for_downgrade_secs",15);this.mO=s_;this.Md=g.Ce(this.Qs.experiments,"html5_min_startup_buffered_media_duration_secs");this.s4=g.Ce(this.Qs.experiments,"html5_post_interrupt_readahead");this.YL=this.Qs.U("html5_disable_classic_alr");this.PP=g.Ce(this.Qs.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.qa=ru(this,"html5_ssdai_failure_retry_limit",3);this.GE=this.Qs.experiments.qp("html5_clone_original_for_fallback_location");this.ac=g.Ce(this.Qs.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); this.zs=g.Ce(this.Qs.experiments,"html5_subsegment_readahead_timeout_secs");this.Xg=g.Ce(this.Qs.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Gs=g.Ce(this.Qs.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.eT=g.Ce(this.Qs.experiments,"html5_subsegment_readahead_min_load_speed");this.TZ=g.Ce(this.Qs.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.KM=g.Ce(this.Qs.experiments,"html5_subsegment_readahead_seek_latency_fudge"); this.TY=ru(this,"html5_hopeless_secs",15);this.Nu=this.Qs.U("html5_restrict_streaming_xhr_on_sqless_requests");this.fq=g.Ce(this.Qs.experiments,"html5_max_headm_for_streaming_xhr");this.LS=this.Qs.U("html5_pipeline_manifestless_allow_nonstreaming");this.CS=this.Qs.U("html5_prefer_server_bwe3");this.Aa=this.Qs.U("html5_last_slice_transition");this.Se=this.Qs.U("html5_store_xhr_headers_readable");this.f8=g.Ce(this.Qs.experiments,"html5_max_drift_per_track_secs");this.e4=this.Qs.U("html5_no_placeholder_rollbacks"); this.GR=this.Qs.U("html5_subsegment_readahead_enable_mffa");this.w2=this.Qs.U("html5_allow_video_keyframe_without_audio");this.E$=g.em(this.Qs)&&!g.TP()&&this.Qs.U("html5_adjust_media_time_for_non_cobalt_tv");this.H_=this.Qs.U("html5_enable_vp9_fairplay");this.Z8=1048576;this.Ue=this.Qs.U("html5_woffle_resume");this.Jr=this.Qs.U("html5_abs_buffer_health");this.Vl=this.Qs.U("html5_interruption_resets_seeked_time");this.lP=g.Ce(this.Qs.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800; this.UK=this.Qs.U("html5_report_captions_ctmp_qoe");this.Fq=this.Qs.U("html5_explicitly_dispose_xhr");this.u4=!this.Qs.U("html5_encourage_array_coalescing");this.Qs.U("html5_limit_media_merge_size")?s_?p3()<21?this.yd=786432:this.yd=8388608:this.yd=262144:this.yd=0;this.w4=this.Qs.U("html5_filter_non_efficient_formats_for_safari");this.Qs.U("html5_format_hybridization");this.gH=this.Qs.U("html5_abort_before_separate_init");this.TF=yO();this.Bq=this.Qs.U("html5_serialize_server_stitched_ad_request"); this.P3=this.Qs.U("html5_attach_po_token_to_bandaid");this.lF=g.Ce(this.Qs.experiments,"html5_max_redirect_response_length")||8192;this.Ds=this.Qs.U("html5_rewrite_timestamps_for_webm");this.G0=this.Qs.U("html5_only_media_duration_for_discontinuities");this.Ae=g.Ce(this.Qs.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Qs.U("html5_onesie_live");this.Q6=g.Ce(this.Qs.experiments,"html5_onesie_live_ttl_secs")||8;this.qF=g.Ce(this.Qs.experiments,"html5_attach_num_random_bytes_to_bandaid"); this.Yz=this.Qs.U("html5_update_container_type_on_codec_family_change");this.Qs.U("html5_apply_ssap_slice_info_adjustment");this.Tb=this.Qs.U("html5_enable_sabr_host_fallback");this.UU=this.Qs.U("html5_gapless_fallback_on_append_error");this.Uh=this.Qs.U("html5_shorts_stop_request_when_buffer_to_end");this.Ov=this.Qs.U("html5_vod_stop_request_when_buffer_to_end");this.BG=this.Qs.U("html5_ssdai_use_post_for_media")&&this.Qs.U("gab_return_sabr_ssdai_config");this.NN=this.Qs.U("html5_use_post_for_media"); this.J0=this.Qs.U("html5_use_live_ump_heartbeat");this.useUmp=this.Qs.U("html5_use_ump");this.qk=this.Qs.gj;this.sF=this.Qs.U("html5_reset_primary_stats_on_redirector_failure");this.Ft=this.Qs.U("html5_remap_to_original_host_when_redirected");this.zw=this.Qs.U("html5_iterative_seeking_buffered_time");this.s$=this.Qs.U("html5_use_network_error_code_enums");this.kL=this.Qs.U("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.Qs.U("html5_enable_server_driven_request_cancellation"); this.X1=this.Qs.U("html5_enable_sabr_request_timing");this.lJ=this.Qs.U("html5_enable_server_format_filter");this.jh=this.Qs.U("html5_enable_lawnmower");this.w3=this.Qs.Nl()?g.Ce(this.Qs.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.JN=g.Ce(this.Qs.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.kI=this.Qs.U("html5_live_defrag_only_h264_playbacks");this.YI=this.Qs.U("html5_live_defrag_only_h264_formats");this.Du=this.Qs.U("html5_record_now");this.b_=g.Ce(this.Qs.experiments, "html5_drm_byterate_soft_cap");this.P5=g.Ce(this.Qs.experiments,"html5_drm_live_byterate_soft_cap");this.X=this.Qs.U("html5_sabr_log_request_creation");this.hC=this.Qs.U("html5_use_buffer_timeline_for_sabr_request_creation");this.Lp=this.Qs.U("html5_sabr_report_request_cancellation_info");this.eK=this.Qs.U("html5_spoof_4k");this.aZ=ru(this,"html5_min_media_duration_for_cabr_slice");this.bP=ru(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.Tj=this.Qs.U("html5_remove_defrag_without_frame_level_streaming"); this.cJ=this.Qs.U("html5_consume_all_buffered_bytes_one_poll");this.RL=this.Qs.U("html5_disable_urgent_adaptation");this.D8=this.Qs.U("html5_apply_constraints_in_client_for_sabr");this.h$=this.Qs.U("html5_send_video_playback_ustreamer_config");this.cC=ru(this,"html5_max_discontinuity_rewrite_count");this.Tc=ru(this,"html5_fixed_media_duration_for_request");this.M4=this.Qs.U("html5_apply_fix_for_missing_seg_info_without_logger");this.jN=this.Qs.U("html5_enable_audio_quality_setting");this.Qs.U("html5_enable_audio_quality_setting_feature"); this.vu=ru(this,"html5_sabr_request_limit_per_period");this.eY=ru(this,"html5_sabr_request_limit_per_period_for_low_latency");this.MZ=ru(this,"html5_sabr_request_limit_per_period_for_ultra_low_latency");this.uu=this.Qs.U("html5_sabr_dispose_media_objects");this.T6=this.Qs.U("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.WJ=this.Qs.U("html5_enable_d6de4");this.Qs.U("html5_high_res_seek_logging");this.Uf=this.Qs.U("html5_disable_chunk_synchronization_sabr_seek");this.Qs.U("html5_enable_ssap_multi_audio_format_filtering"); this.C8=g.Ce(this.Qs.experiments,"html5_override_micro_discontinuities_threshold_ms");this.EY=this.Qs.U("html5_byterate_constraints");this.g4=this.Qs.U("html5_refactor_sabr_audio_format_selection_logging");this.NL=this.Qs.U("enable_sabr_snackbar_message");this.Qs.U("html5_reinit_source_buffer_by_new_element");this.u1=this.Qs.U("html5_refactor_sabr_video_format_selection_logging");this.jj=this.Qs.U("html5_log_slice_info_in_sbu");this.X3=ru(this,"html5_paced_poll_ms");this.Vn=ru(this,"html5_paced_poll_min_health_ms"); this.pW=this.Qs.U("html5_disable_sabr_fallback");this.mD=this.Qs.U("html5_track_current_buffered_range_at_sync");this.FI=g.em(this.Qs)?500:2E3;this.KR=this.Qs.U("html5_sabr_live_timing");this.mF=this.Qs.U("html5_count_updating_slice_for_buffer_health");this.EF=this.Qs.U("html5_report_max_buffer_bytes_limit_to_sabr");this.Qh=this.Qs.U("html5_sabr_live_audio_early_return_fix");this.aY=g.Ce(this.Qs.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.Ak=this.Qs.U("html5_cuepoint_identifier_logging"); this.Qm=this.Qs.U("html5_new_sabr_ssdai_cuepoint_logic");this.dH=this.Qs.U("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.NZ=this.Qs.U("html5_skip_client_drm_license_constraint");this.oa=this.Qs.U("html5_ssdai_not_block_on_predict_start");this.IK=this.Qs.U("html5_pseudogapless_shorts_skip_abort_on_transition");this.wH=this.Qs.U("html5_live_metadata_resets_timeout");this.AJ=this.Qs.U("html5_sabr_log_invalid_sabr_current_time");this.I_=this.Qs.U("html5_ssdai_new_decoration_logic");this.tT= this.Qs.U("html5_enable_smooth_audio_offset");this.zy=this.Qs.U("html5_ssdai_log_missing_ad_config_reason");this.Gy=this.Qs.U("html5_enable_playback_cookie_logging")}; TFX=function(q,Z){var F;if((F=oM(Z))!=null&&F.isLocked&&Y9b(Z)){if(q.Mp.C().Nl()){var B;q.iL("eosl",{munlock:(B=oM(Z))==null?void 0:B.info.wq()})}qJ(q,Z===q.audioTrack)}}; Md9=function(q){return g.oa(qk(q===void 0?0:q))}; Ri=function(q){this.wU=q}; nrG=function(q,Z){var F=Z.raw_embedded_player_response;if(!F){var B=Z.embedded_player_response;B&&(F=JSON.parse(B))}F&&(q.VT=F);if(q.VT){q.embeddedPlayerConfig=q.VT.embeddedPlayerConfig||null;if(F=q.VT.videoFlags)F.playableInEmbed&&(q.allowEmbed=!0),F.isPrivate&&(q.isPrivate=!0),F.userDisplayName&&(Z.user_display_name=F.userDisplayName),F.userDisplayImage&&(Z.user_display_image=F.userDisplayImage);if(F=q.VT.embedPreview){F=F.thumbnailPreviewRenderer;orX(q,F.controlBgHtml);if(B=F.defaultThumbnail)q.V= Ig(B);q.U("embeds_web_enable_search_button")&&F.searchButton&&(B=g.C(F.searchButton,g.jQ))&&(q.u9U=g.C(B.navigationEndpoint,g.Tn));(B=g.C(F==null?void 0:F.videoDetails,q16))&&N0b(q,Z,B);B=g.C(F==null?void 0:F.videoDetails,ZYG);q.Lm=!!F.addToWatchLaterButton;Gok(q,F.shareButton);if(B==null?0:B.musicVideoType)q.musicVideoType=B.musicVideoType;var f,D,G,n,b;if(B=g.C((f=q.getEmbeddedPlayerResponse())==null?void 0:(D=f.embedPreview)==null?void 0:(G=D.thumbnailPreviewRenderer)==null?void 0:(n=G.playButton)== null?void 0:(b=n.buttonRenderer)==null?void 0:b.navigationEndpoint,g.jt))FXB(q,B),q.videoId=B.videoId||q.videoId;F.videoDurationSeconds&&(q.lengthSeconds=Mn(F.videoDurationSeconds));F.webPlayerActionsPorting&&Bx6(q,F.webPlayerActionsPorting);if(f=g.C(F==null?void 0:F.playlist,frG)){q.E$=!0;D=[];G=Number(f.currentIndex);if(f.contents)for(n=0,b=f.contents.length;n0){var G;(G=q.w2)==null||G.start()}}; uID=function(q,Z){Nd(q,1,Z.token)}; cVX=function(q){var Z;return((Z=q.S)==null?void 0:Z.currentVideoDuration)||-1}; PH9=function(q,Z,F,B,f){if(Z&&typeof Z==="object"){var D=function(G){return RkD(q,G,F,B,f)}; if(RW(Z))return Z.then(D);if(qOy(Z))return nN(Z,D)}return RkD(q,Z,F,B,f)}; rF7=function(q,Z){q.rateLimit?q.D?(g.kN.RS(q.G),q.G=g.kN.ET(function(){q.S!==Z&&(q.dispatchEvent(Z),q.S=Z,q.D=(0,g.Le)())},q.rateLimit-((0,g.Le)()-q.D))):(q.dispatchEvent(Z),q.S=Z,q.D=(0,g.Le)()):q.dispatchEvent(Z)}; FcZ=function(q){return q.B.C().experiments.qp("enable_ads_control_flow_deterministic_id_generation")}; LR=function(q){return q.policy.v2||q.policy.Jy}; M9=function(q){this.t9=3;this.XA=q;this.defaultValue=!1;this.Rw="bool"}; bN=function(q){var Z=this;q=q===void 0?[]:q;this.D=[];this.S=this.K=0;this.G=void 0;this.totalLength=0;q.forEach(function(F){Z.append(F)})}; c46=function(){if(g.cz("bg_st_hr"))return"havuokmhhs-0";var q,Z=((q=globalThis.performance)==null?void 0:q.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Z)}; Ha8=function(q){var Z=new Map;q=g.E(q);for(var F=q.next();!F.done;F=q.next())(F=F.value.renderer.remoteSlotsRenderer)&&F.hostElementId&&Z.set(F.hostElementId,F);return Z}; sAg=function(q,Z,F){q=g.DC(q.D,function(B){return Z(B)}); return F?q:wGg(q)}; wq=function(){var q=g.W5,Z=[],F=null;do{var B=q;if(PM(B)){var f=B.location.href;F=B.document&&B.document.referrer||null}else f=F,F=null;Z.push(new qDb(f||""));try{q=B.parent}catch(D){q=null}}while(q&&B!==q);B=0;for(q=Z.length-1;B<=q;++B)Z[B].depth=q-B;B=g.W5;if(B.location&&B.location.ancestorOrigins&&B.location.ancestorOrigins.length===Z.length-1)for(q=1;q=0&&q.K.splice(F,1);q.S.delete(Z.cpn);Z.fp&&q.G.delete(Z.fp)}; LXX=function(){return{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}}; Dd=function(q,Z,F,B,f){A8(q);var D=q.Ec;h8(D,D[Sm]|0,Z,(B==="0"?Number(F)===0:F===B)?void 0:F,f);return q}; HY8=function(q){if(q.D)return q.D;if(q.experimentIds.length<=1)return q.D=q.experimentIds,q.D;var Z=[].concat(g.YB(q.experimentIds)).map(function(B){return Number(B)}); Z.sort();for(var F=Z.length-1;F>0;--F)Z[F]-=Z[F-1];q.D=Z.map(function(B){return B.toString()}); q.D.unshift("v1");return q.D}; OY9=function(q){if(!g.cz("universal_csi_network_ticks"))return"";q=ED(q)||"";for(var Z=Object.keys(XUb),F=0;FZ.length)return!1;if(q.lengthf)return!1;if(BZ)){var G=Z-F.end(D);G=20)?(q.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),Z):B}; k7X=function(q,Z){q=g.E(q.actionButtons);for(var F=q.next();!F.done;F=q.next())F.value.DJ(Z)}; g.qw=function(){}; OD8=function(q){if(!Vt(q.adLayoutMetadata))return!1;q=q.renderingContent;return g.C(q,Vm)||g.C(q,RM)||g.C(q,s0X)||g.C(q,iY)||g.C(q,sT)?!0:!1}; f1b=function(q,Z,F){if(!q||!Z)return!1;Z=Pg(q.clone(),-Z.left,-Z.top);q=(Z.left+Z.right)/2;Z=(Z.top+Z.bottom)/2;PM(window.top)&&window.top&&window.top.document&&(window=window.top);if(!vQG())return!1;q=window.document.elementFromPoint(q,Z);if(!q)return!1;Z=(Z=(Z=bw(F))&&Z.defaultView&&Z.defaultView.frameElement)&&j08(Z,q);var B=q===F;q=!B&&q&&SF(q,function(f){return f===F}); return!(Z||B||q)}; IrZ=function(q,Z){if(q.policy.useUmp&&Z.jU())return!1;try{var F=Z.info.TP[0].D,B=F.info.video?q.videoTrack:q.audioTrack;if(q.Np.isManifestless&&B){q.j=0;B.X&&(Z.jU(),Z.isComplete()||Z.ya(),B.X=!1);Z.No()&&q.loader.Ee.sT(1,Z.No());var f=Z.oH(),D=Z.mA();CH(q.Np,f,D)}if(Z.info.pk()&&!zt(Z.info))for(var G=g.E(Z.aW()),n=G.next();!n.done;n=G.next())jcK(B,n.value);for(q.loader.getCurrentTime();B.S.length&&B.S[0].state===4;){var b=B.S.shift();qhb(B,b);B.WG=b.Kj()}B.S.length&&qhb(B,B.S[0]);var N=!!oM(B);N&& Z instanceof xL&&(F.info.B1()?Y_X(q.timing):tj6(q.timing));return N}catch(S){Z=Z.qb();Z.origin="hrhs";a:{q=q.loader;F=S;if(F instanceof Error){Z.msg||(Z.msg=""+F.message);Z.name||(Z.name=""+F.name);if(F instanceof g.M2&&F.args)for(B=g.E(Object.entries(F.args)),f=B.next();!f.done;f=B.next())D=g.E(f.value),f=D.next().value,D=D.next().value,Z["arg"+f]=""+D;g.bh(F);if(F.level==="WARNING"){q.Mp.Mb(Z);break a}}q.handleError("fmt.unplayable",Z,1)}return!1}}; yU=function(q,Z){var F=g.FQ(q.J)&&!q.J.uL,B=F&&Z?Z:g.uw(q.playlist);Z=F&&Z?Z:q.getVideoData();B&&(Z.Pf&&(q.J.SW||q.J.zH)||!q.mV?(Z=Z.zH,B=q.Ba(B,1),Z&&il(q,B)):SK(q,B,1));g.FQ(q.J)&&q.Yk.tick("ep_p_l");q.xJ=!1;q.lL.Ry("onPlaylistUpdate")}; Zl=function(q,Z,F,B,f,D,G){nX.call(this,q,{Y:"span",W:G?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",Z,F,B,f);this.videoAdDurationSeconds=D;this.K=null;G&&this.api.C().K&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),R_&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Fz=function(q){var Z;return Gk(q)||MW((Z=q.G.fv())==null?void 0:Z.info)}; kPX=function(q){var Z=NA(q)?"custom_metric_viewable":q;q=d1(gm,function(F){return F==Z}); return Eb[q]}; XOZ=function(q,Z,F,B,f){Z=R76(q,Z);q=CHD(q,Z,F);f=f({slotId:q.slotId,slotType:q.slotType,slotPhysicalPosition:q.slotPhysicalPosition,slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers,slotExpirationTriggers:q.slotExpirationTriggers,bL:q.bL});return f instanceof K?f:{iU:Object.assign({},q,{clientMetadata:new zX([new Si(f.layout)]),adSlotLoggingData:B}),Xo:f.Xo}}; hEb=function(q,Z){if(q.K&&!q.U("html5_disable_d6de4_mint_debug")){var F=Z.videoId;q.S=3;q.Yk.KE("pt_ms");try{q.K.requestToken(F).then(function(B){q.Yk.KE("pt_mf");if(B=$R(B))Z.Sh={jal:B}}).catch(function(B){q.Yk.KE("pt_me"); BE(B,"player_generate");q.handleError(B,Z)})}catch(B){BE(B,"player_generate_catch"),q.handleError(B,Z)}}}; LD=function(q,Z,F,B){q.S.sT(B===void 0?Z:B,F/Z);q.j=(0,g.Le)()}; REK=function(q,Z){var F=g.Pe.getState().entities;q=tYK(F,q);Z=g.E(Z.eU);for(var B=Z.next();!B.done;B=Z.next())if(q===tYK(F,B.value))return!0;return!1}; cFD=function(){g.w.call(this,{Y:"div",W:"ytp-fine-scrubbing-chapter-title",T:[{Y:"div",W:"ytp-fine-scrubbing-chapter-title-content",Ka:"{{chapterTitle}}"}]})}; JFD=function(q,Z,F){for(var B=[],f=0;f0&&DTB(q,Z,D)}else DTB(q,Z)}; H0=function(q,Z){s9G(q);q.loader.oh();return eEy(Z,q.loader.isSeeking())}; Fw=function(q,Z,F){eq.call(this,q);this.G=Z;this.clientState=F;this.D="S";this.K="q"}; DE=function(){}; jr=function(q,Z,F,B){(B===void 0?0:B)&&!Z.Oc&&(SB()||(B=Z.g2)&&!B.Yf(F.info)&&q.Mp.k6(),Z.Oc=!0);Z.D!==F&&(Z.D=F)}; Tx7=function(q){Yw.call(this,"fully_viewable_audible_half_duration_impression",q)}; G9K=function(q,Z,F,B,f,D,G){function n(c){return!!l[c]} var b=Z.K||!!f,N=b&&Z.VO?D:void 0,S=new Set,l=NGK(q,Z,F,B,D,b,S);G_(B)&&(l=MD9(F,l,f,b,D,Z),b&&D({enflt:z8(l)}));Z.vG=onX(l,Z);var U=qIK(Z);q=[];f=g.E(Object.values(l));for(var u=f.next();!u.done;u=f.next()){u=u.value;var P=void 0;((P=u)==null?0:P.length)&&u[0].B1()&&q.push.apply(q,g.YB(u))}if(Y7(B))return D=g.s3(Object.values(l),function(c){return!!c.length&&!!c[0].audio}),b=g.s3(Object.values(l),function(c){return!!c.length&&!!c[0].video}),D&&b||Ef(),T1(new Lv(b,D,N,q)); f=l.a;u=!1;Z.HG&&U[0]!=="a"&&Z0K(f)&&(U.unshift("a"),u=!0);b&&(D({audioPrefOrder:U.join("_")}),D({preferHighQualityAudio:Z.HG}),D({forcedAacForHqa:u}));f=[];if(Z.LB){U=g.uh(U,n);u=new Set;P=g.E(U);for(var W=P.next();!W.done;W=P.next()){var H=new Set;W=g.E(l[W.value]);for(var X=W.next();!X.done;X=W.next()){X=X.value;var Q=void 0,a=(Q=X.fB)==null?void 0:Q.id;a&&(u.has(a)?H.has(a)&&f.push(X):(H.add(a),u.add(a),f.push(X)))}}if(f.length===0){if(U.length===0)return b&&D({noaudio:1}),Ef();f=l[U[0]]}}else{f= g.s3(U,n);if(!f)return b&&D({noaudio:1}),Ef();f=l[f]}l["9"]&&l.h&&B.d2&&!Z.WG&&(b&&D({dltvp9:1}),delete l["9"]);if(G){b&&D({bfsflt:z8(l),bfsflta:F96(F)});BiX(F,S);b&&D({bfsfltb:F96(F)});for(var m in l)if(l.hasOwnProperty(m)&&(G=m,!(G==="f"||Z.k$===0&&fZZ.has(G))))for(S=g.E(l[G]),U=S.next();!U.done;U=S.next())U=U.value,Z.ac?DvK(F,G,U):LQB(F,G,U);b&&D({aftsflt:F96(F)})}G=l["1h"]?"1h":"1";F=l["9h"]?"9h":"9";U=l[G];u=l[F];U&&U.length&&(Z.D.highestAv1Resolution=U[U.length-1].video.qualityOrdinal);u&&u.length&& (Z.D.highestVp9Resolution=u[u.length-1].video.qualityOrdinal);m=[];S=[];if(Z.ix&&U)m=U,S=[G],D({forceAv1:G});else if(Z.V&&!Z.v3)for(S=NZK(B)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],b&&D({newhybpref:S.join(".")}),U=g.E(S),u=U.next();!u.done;u=U.next())m=m.concat(l[u.value]).filter(function(c){return c}); else Z.NP>0&&u&&U&&(S=[G,F],m=U.concat(u).filter(function(c){return c})); if(m.length&&!Z.v3){Db(m,S);if(b){b=[];Z=g.E(m);for(B=Z.next();!B.done;B=Z.next())b.push(B.value.itag);D({hbdfmt:b.join(".")})}return T1(new Lv(m,f,N,q))}m=H9G(Z);m=g.s3(m,n);if(!m){if(l[G])return D=l[G],Db(D),T1(new Lv(D,f,N,q));b&&D({novideo:1});return Ef()}Z.X3&&(m==="1"||m==="1h")&&l[F]&&(G=iq(l[m]),S=iq(l[F]),S>G?m=F:S===G&&K4K(l[F])&&(m=F));m==="9"&&l.h&&iq(l.h)>iq(l["9"])&&(m="h");Z.KB&&B.isLive&&m==="("&&l.H&&iq(l["("])<1440&&(m="H");b&&D({vfmly:G8(m)});Z=l[m];if(!Z.length)return b&&D({novfmly:G8(m)}), Ef();Db(Z);return T1(new Lv(Z,f,N,q))}; z4K=function(q){var Z,F,B,f;return(Z=q.api.getVideoData().getWatchNextResponse())==null?void 0:(F=Z.playerOverlays)==null?void 0:(B=F.playerOverlayRenderer)==null?void 0:(f=B.browserMediaSession)==null?void 0:f.browserMediaSessionRenderer}; Uf=function(q,Z,F){q.jU();var B=th(q);F?(q.K|=Z,Z&1&&q.PG.start(),Z&2&&q.Dl.start(),Z&2048&&q.uL.start()):(q.K&=~Z,Z&1&&q.PG.stop(),Z&2&&q.Dl.stop(),Z&2048&&q.uL.stop(),Z&512&&q.zP.stop());q.K&512&&!(q.K&128)&&g.$t(q.zP,q.k$);Z=th(q);B!==Z&&q.publish("autohideupdate",Z)}; nng=function(q){Gs("play",function(){q.api.playVideo()}); Gs("pause",function(){q.api.pauseVideo()}); Gs("seekbackward",function(){q.api.seekBy(-5*q.api.getPlaybackRate())}); Gs("seekforward",function(){q.api.seekBy(5*q.api.getPlaybackRate())}); Gs("seekto",function(Z){Z=Z.seekTime;Z!=null&&q.api.seekTo(Z)})}; b08=function(q){this.Ec=rE(q)}; hfG=function(q,Z,F,B,f){this.callback=q;this.slot=Z;this.K=F;this.Kw=B;this.GP=f;this.D=null}; Nib=function(q){var Z=!!Uy(PT().Be,"umt");return q.PG||!Z&&!q.WG?0:1}; gh=function(q,Z,F){F=F===void 0?null:F;var B=B===void 0?0:B;return new SE(g.Ce(q.J.experiments,Z)||B,F?q.J.U(F):!1)}; SID=function(q,Z){Z=Z===void 0?!1:Z;var F=gnD(q);if(F===1){Z=-1;for(F=0;F<7;F++){var B=gnD(q);Z===-1&&B!==255&&(Z=0);Z>-1&&(Z=Z*256+B)}return Z}B=128;for(var f=0;f<6&&B>F;f++)F=F*256+gnD(q),B*=128;return Z?F:F-B}; XN=function(q){Y4.call(this,q===void 0?"none":q);this.D=null;this.S=10;this.transitions=[{from:"none",to:"application_navigating",action:this.Z},{from:"application_navigating",to:"none",action:this.j},{from:"application_navigating",to:"application_navigating",action:function(){}}, {from:"none",to:"none",action:function(){}}]}; Lv=function(q,Z,F,B){this.videoInfos=q;this.D=Z;this.audioTracks=[];this.K=B||[];if(this.D){q=new Set;F==null||F({ainfolen:this.D.length});Z=g.E(this.D);for(B=Z.next();!B.done;B=Z.next())if(B=B.value,!B.fB||q.has(B.fB.id)){var f=void 0,D=void 0,G=void 0;(G=F)==null||G({atkerr:!!B.fB,itag:B.itag,xtag:B.D,lang:((f=B.fB)==null?void 0:f.name)||"",langid:((D=B.fB)==null?void 0:D.id)||""})}else f=new g.nH(B.id,B.fB),q.add(B.fB.id),this.audioTracks.push(f);F==null||F({atklen:this.audioTracks.length})}}; lZK=function(){}; g.Q9=function(q){g.Wv(q.info.D.info)||q.info.D.info.cL();if(q.S!==-1)return q.S;if(q.D&&YVb(q.D))return q.S=YVb(q.D),q.S;if(g.Wv(q.info.D.info)){var Z=g.Xd(q);for(var F=q.info.D.D,B=NaN,f=NaN,D=0;on(Z,D);){var G=qg(Z,D);G.type===1936286840?f=G.data.getUint32(G.dataOffset+8):G.type===1836476516?f=g.dC(G):G.type===1952867444&&isNaN(B)&&(B=g.EyB(G));D=PV(G.type)?D+8:D+G.size}!f&&F&&(f=Vq(F));Z=B/f}else Z=new EW(g.Xd(q)),F=q.Z?Z:new EW(new DataView(q.info.D.D.buffer)),B=F$(F),F=Z.pos,Z.pos=0,B1(Z)?fa(Z, 231)?(B=DS(Z)*B/1E9,Z.pos=F,Z=B):(Z.pos=F,Z=NaN):(Z.pos=F,Z=NaN);q.S=Z||q.info.Z;return q.S}; zs=function(q,Z){q.element.setAttribute("aria-haspopup",String(Z))}; cu=function(q,Z,F,B,f,D,G){g.w.call(this,{Y:"div",W:"ytp-slider-section",L:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},T:[{Y:"div",W:"ytp-slider",T:[{Y:"div",W:"ytp-slider-handle"}]}]});this.X=q;this.V=Z;this.K=F;this.S=B;this.Dl=f;this.k$=D;this.range=this.S-this.K;this.dU=this.cG("ytp-slider-section");this.G=this.cG("ytp-slider");this.uL=this.cG("ytp-slider-handle");this.j=new g.oG(this.G, !0);this.D=G?G:F;g.y(this,this.j);this.j.subscribe("dragmove",this.M5,this);this.N(this.element,"keydown",this.Pj);this.N(this.element,"wheel",this.Jf);this.init()}; g.ny=function(q,Z,F){var B=q.length,f=typeof q==="string"?q.split(""):q;for(--B;B>=0;B--)if(B in f&&Z.call(F,f[B],B,q))return B;return-1}; UvB=function(q,Z){var F=0;GTb(q,function(B,f){Z.call(void 0,B,f,q)&&g.rt(q,f)&&F++})}; g.kW=function(q,Z){Z=Z===void 0?!1:Z;return Rp()&&q.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!Z&&q.canPlayType(lG(),"application/x-mpegURL")?!0:!1}; Vd7=function(q){return!!(q.playlist||q.list||q.api)}; iS=function(q,Z){this.data=q;this.uri=Z||"http://youtube.com/streaming/metadata/segment/102015";this.HY=sp(this,"Sequence-Number");this.G=sp(this,"Segment-Count");this.Z=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=sp(this,"Ingestion-Walltime-Us")/1E6;this.D=(sp(this,"First-Frame-Time-Us")+sp(this,"First-Frame-Uncertainty-Us"))/1E6;this.iI=sp(this,"Target-Duration-Us")/1E6;this.a6=this.data["Stream-Finished"]==="T";this.S=this.data.Streamable==="T";this.cryptoPeriodIndex=sp(this,"Crypto-Period-Index"); this.K=sp(this,"Crypto-Period-Seconds")}; be=function(q,Z,F){if(q==null)throw new TypeError("The 'this' value for String.prototype."+F+" must not be null or undefined");if(Z instanceof RegExp)throw new TypeError("First argument to String.prototype."+F+" must not be a regular expression");return q+""}; uVX=function(q){q.isChecked=q.isChecked;q.cG("ytp-autonav-toggle-button").setAttribute("aria-checked",String(q.isChecked));var Z=q.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";q.B.C().U("player_tooltip_data_title_killswitch")?q.update({title:Z,label:Z}):q.update({"data-tooltip-title":Z,label:Z});q.B.Q$()}; PM9=function(q,Z,F){q=q.Ec;return CO(Io(q),q,void 0,Z)===F?F:-1}; ee=function(q){if(q==null)return q;if(typeof q==="string"&&q)q=+q;else if(typeof q!=="number")return;return T2(q)?q>>>0:void 0}; Y9=function(q,Z){if(!q)return-1;try{for(var F=0;F=Z)return F}catch(B){}return-1}; iCX=function(){try{var q=g.ym("yt.ads.biscotti.getId_");return q?q():JZX()}catch(Z){return HI(Z)}}; dg=function(q){q.mediaElement=q.J.deviceIsAudioOnly?new g.I4(g.AV("AUDIO")):Qy.pop()||new g.I4(g.AV("VIDEO"));g.y(q,q.mediaElement);q.Vs().setMediaElement(q.mediaElement);try{q.J.G0?(q.Zj&&q.events.Op(q.Zj),q.Zj=q.events.N(q.mediaElement,"volumechange",q.nSU)):(q.mediaElement.Hb(q.TA.muted),q.mediaElement.setVolume(q.TA.volume/100))}catch(f){q.uo("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(f&&typeof f==="object"&&"message"in f&&typeof f.message==="string"&&f.message.replace(/[;:,]/g, "_")));return}g.DJ(q.tD);nR7(q);var Z=q.template,F=q.mediaElement.QO();Z.Pe=F;Z.Pq=!1;Z.Pe.parentNode||bo(Z.jb,Z.Pe,0);Z.iW=new g.vF(0,0,0,0);xuy(Z);Nw(Z);F=Z.Pe;g.e$(F,"video-stream");g.e$(F,g.jL.MAIN_VIDEO);var B=Z.app.C();B.sO&&F.setAttribute("data-no-fullscreen","true");B.U("html5_local_playsinline")?"playsInline"in lG()&&(F.playsInline=!0):B.M4&&(F.setAttribute("webkit-playsinline",""),F.setAttribute("playsinline",""));B.u2&&Z.Pe&&Z.N(F,"click",F.play,F);try{q.mediaElement.activate()}catch(f){q.uo("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(f&&typeof f==="object"&&"message"in f&&typeof f.message==="string"&&f.message.replace(/[;:,]/g,"_")))}}; W0=function(q,Z,F){q.D&&(VJ(q.D,Z),Z=q.D,q.D=null);for(var B=0,f=0,D=g.E(q.TP),G=D.next();!G.done;G=D.next())if(G=G.value,G.range&&B+G.S<=q.K)B+=G.S;else{if(KR(G)&&!F&&q.K+Z.totalLength-f200&&(a="manifest.net.badstatus",H===400&&(X=2));return Promise.reject(new g.xX(a,Q,X))}} var f,D,G,n,b,N,S,l,U,u,P,W;return g.h(function(H){if(H.D==1){q.fetchType="gvi";f=q.C();var X={};q.dH&&(X.ytrext=q.dH);(n=g.q_(X)?void 0:X)?(D={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:n},G=Z8(Z,{action_display_post:1})):(D={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},G=Z);b={};f.sendVisitorIdHeader&&q.visitorData&&(b["X-Goog-Visitor-Id"]=q.visitorData);(N=LX(f.experiments,"debug_sherlog_username"))&&(b["X-Youtube-Sherlog-Username"]=N);Object.keys(b).length> 0&&(D.headers=b);S=(0,g.Le)();return g.R(H,byD(ER,G,D).then(void 0,F),2)}l=H.K;if(!l||!l.responseText)return H.return(B(l));q.loading=!1;U=lX(l.responseText);g.On(q,U,!0);if(q.errorCode)return u={ec:q.errorCode,ed:q.errorDetail,es:q.r3||""},H.return(Promise.reject(new g.xX("auth",u,2)));if(!q.loading&&!Qi(q))return P=q.isAd()?"auth":"manifest.net.retryexhausted",W=q.isAd()?2:1,H.return(Promise.reject(new g.xX(P,{successButUnplayable:"1"},W)));g.C7(H)})}; L98=function(q,Z,F){var B=q.api.getCurrentTime()*1E3=B&&n.target&&n.target.Ya<=f&&(q.D.removeCueRange(G),q.Z.delete(G))}B=Z;f=F;D=[];G=g.E(q.K);for(n=G.next();!n.done;n=G.next())if(n=n.value,n.Rc>=B&&n.Ya<=f){var b=q;b.X===n&&Ke(b);Va(b,n)&&b.app.pH()}else D.push(n);q.K=D;B=K6D(q,Z/1E3);Z=B.yQ;B=B.KL;Z&&(B*=1E3,ke8(q,Z,B,Z.Ya===Z.Rc+Z.durationMs?Z.Rc+B:Z.Ya));(Z=K6D(q,F/1E3).yQ)&& Xe(q,"Invalid clearEndTimeMs="+F+" that falls during playback={timelinePlaybackId="+(Z.fp+" video_id="+Z.playerVars.video_id+" durationMs="+Z.durationMs+" enterTimeMs="+Z.Rc+" parentReturnTimeMs="+Z.Ya+"}.Child playbacks can only have duration updated not their start."))}; g.ue=function(q){return f6D(q,q)}; WAZ=function(q,Z,F,B,f,D,G,n,b){D=D===void 0?F.schedule:D;var N=q.Kf,S=q.S0;q=q.f6E;var l=N!==void 0&&S!==void 0,U=B.getVideoData(),u,P=Z.D.encryptedClientKey;Z=l?Z.iv:void 0;l=D;l=l===void 0?F.schedule:l;l=k2(l,!0);f=f||!!hV()&&l>1572864;return{innertubeRequest:{NY$:q,Td:N,S0:S,encryptedClientKey:P,iv:Z,Wdn:!0,ew:!0,ou:"DecompressionStream"in window||!f,L3L:F.experiments.qp("html5_use_jsonformatter_to_parse_player_response")},kX:EwZ({Zv:D,Qs:F,Mp:B,IC:U.startSeconds*1E3}),onesieUstreamerConfig:G, kc:n,xD:bQ(U),reloadPlaybackParams:(u=U.zE)==null?void 0:u.reloadPlaybackParams,v$E:b}}; EnB=function(q,Z,F,B,f,D){this.slot=Z;this.D=F;this.K=new hfG(q,Z,B,f,D)}; g.sy=function(q,Z){var F=Array.prototype.slice.call(arguments,1);return function(){var B=F.slice();B.push.apply(B,arguments);return q.apply(this,B)}}; zb=function(q,Z,F){q.isFocused(Z);return Z-q.S+F<=q.D[q.K].length}; VP6=function(q,Z){try{Z={detail:"pr."+Z},(fd(q.Qs)||an(q.Qs)==="TVHTML5_FOR_KIDS")&&q.Qs.U("html5_reload_by_kabuki_app")?q.Mp.PL("qoe.restart",1,void 0,NJ(Z),"7"):(q.Zt("qoe.restart",Z),window.location.reload())}catch(F){}}; $vg=function(q,Z){Z&&K9X(q.Mp,new PE(Z.video,Z.reason));q.D.HG&&(Z=we6(q.D,"a"),q.Mp.sN(new PE(Z.audio,Z.reason)))}; $3=function(q){q.K.startTime=q.S;q.K.endTime=q.D;var Z=!1;q.segments.length&&g.uU(q.segments).isEmpty()?(q.segments[q.segments.length-1].previouslyEnded&&(q.K.previouslyEnded=!0),q.segments[q.segments.length-1]=q.K,Z=!0):q.segments.length&&q.K.isEmpty()||(q.segments.push(q.K),Z=!0);Z?q.K.endTime===0&&(q.previouslyEnded=!1):q.K.previouslyEnded&&(q.previouslyEnded=!0);q.Z+=q.D-q.S;q.K=ZG(q.provider);q.K.previouslyEnded=q.previouslyEnded;q.previouslyEnded=!1;q.S=q.D}; aZ8=function(q,Z){g.w.call(this,{Y:"button",rU:["ytp-fullscreen-button","ytp-button"],L:{title:q.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Ka:"{{icon}}"});this.B=q;this.K=Z;this.message=null;this.D=g.BY(this.K.Iy(),this.element);this.S=new g.im(this.uY,2E3,this);g.y(this,this.S);this.N(q,"fullscreentoggled",this.LR); this.N(q,"presentingplayerstatechange",this.ys);this.N(q,"resize",this.ys);this.listen("click",this.onClick);g.By()&&(Z=this.B.Ca(),this.N(Z,m59(),this.T5),this.N(Z,AyD(document),this.EN));q.C().Jn||q.C().X||this.disable();q.createClientVe(this.element,this,139117);this.ys();this.LR(q.isFullscreen())}; XzD=function(q,Z){var F=2,B={};try{var f=mv9(Z);F=nP(f,1);var D=f.getMessage();Gw(f,xF8,3).length&&(B["grpc-web-status-details-bin"]=Z)}catch(G){q.xhr&&q.xhr.getStatus()===404?(F=5,D="Not Found: "+String(q.xhr.V)):(F=14,D="Unable to parse RpcStatus: "+G)}return{code:F,details:D,metadata:B}}; fB=function(q,Z,F,B,f,D,G,n){g.J.call(this);this.K=q;this.D=Z;this.S=F;this.GP=B;this.G=f;this.XE=D;this.Zl=G;this.rq=n}; sDK=function(q,Z){Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var B=F.interstitials.map(function(G){var n=g.C(G,i0Z);if(n)return{is_yto_interstitial:!0,raw_player_response:n};if(G=g.C(G,k9K))return Object.assign({is_yto_interstitial:!0},lX(G))}); B=g.E(B);for(var f=B.next();!f.done;f=B.next())switch(f=f.value,F.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":q.interstitials=q.interstitials.concat({time:0,playerVars:f,Yc:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":q.interstitials=q.interstitials.concat({time:0x7ffffffffffff,playerVars:f,Yc:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var D=Number(F.podConfig.timeToInsertAtMillis);q.interstitials=q.interstitials.concat({time:D,playerVars:f, Yc:D===0?5:7})}}}; qw7=function(q,Z){var F=g.Xd(Z);if(jDB(Z.info.D.info)&&Z.info.D.info.video.primaries==="bt2020"){var B=new EW(F);K1(B,[408125543,374648427,174,224,21936,21937])&&(B=B.start+B.pos,F.getUint8(B)===129&&F.getUint8(B+1)===1&&F.setUint8(B+1,9))}B=Z.info.D.info;Tf(B)&&!jDB(B)&&(B=g.Xd(Z),(new EW(B)).xH(),rR([408125543,374648427,174,224],21936,B));Z.info.D.info.jB()&&(B=Z.info.D,B.info&&B.info.video&&B.info.video.projectionType==="MESH"&&!B.K&&(g.Wv(B.info)?B.K=CAZ(F):B.info.cL()&&(B.K=U8D(F))));Z.info.D.info.cL()&& Z.info.jB()&&(F=g.Xd(Z),(new EW(F)).xH(),rR([408125543,374648427,174,224],30320,F)&&rR([408125543,374648427,174,224],21432,F));if(q.policy.TF&&Z.info.D.info.cL()){F=g.Xd(Z);var f=new EW(F);if(K1(f,[408125543,374648427,174,29637])){B=$d(f,!0);f=f.start+f.pos;for(var D=0;D0&&(q.D.start(),n=!0,F.delayed="1",--q.S); f=q.Mp.loader;n||!((B==null?0:g8(B))||(B==null?0:Tf(B)))||D||(Fv8(q.Qs.Z,B.FE),G=n=!0,F.cfallexp=B.FE);if(!n)return wZG(q,F);D=!1;q.Z?q.XM=(0,g.Le)():D=q.Z=!0;n=q.videoData;if(n.o_){n=n.o_.nj();var b=Date.now()/1E3+1800;n=n=2160})}; dnb=function(q,Z,F,B){Z=Dk(q,Z,F,B);return Z instanceof K?Z:CHD(q,Z,F)}; pkD=function(q){return qJB(q.D,function(Z){return Z.info.video?Z.Ox():!0})}; wF=function(q,Z){this.D=q;this.K=Z}; A78=function(q,Z,F,B,f){function D(b){n||(n=!0,F.call(f,b))} function G(b){n||(n=!0,B.call(f,b))} var n=!1;try{Z.call(q,D,G)}catch(b){G(b)}}; dvy=function(q){var Z={};g.yn(q,function(F){var B=F.event,f=Z[B];Z.hasOwnProperty(B)?f!==null&&(F.equals(f)||(Z[B]=null)):Z[B]=F}); UvB(q,function(F){return Z[F.event]===null})}; zwk=function(q){function Z(G){q.Pe&&Nw(q);A6(q)!==q.EL&&q.resize();q.app.C().U("web_enable_smart_zoom")&&q.IF&&(G.state.isPaused()?q.IF.pause():g.YM(G,8)&&q.IF.playState==="paused"&&q.IF.play())} function F(G,n){q.NB(G,n)} function B(G){G.getVideoData()&&q.updateVideoData(G.getVideoData())} function f(){q.iW=new g.vF(0,0,0,0);q.w_=new g.vF(0,0,0,0)} var D=q.app.lL;D.addEventListener("initializingmode",f);D.addEventListener("videoplayerreset",B);D.addEventListener("videodatachange",F);D.addEventListener("presentingplayerstatechange",Z);q.addOnDisposeCallback(function(){D.removeEventListener("initializingmode",f);D.removeEventListener("videoplayerreset",B);D.removeEventListener("videodatachange",F);D.removeEventListener("presentingplayerstatechange",Z)})}; VXB=function(q,Z){var F=q.adCpn||q.provider.videoData.clientPlaybackNonce,B=q.provider.getCurrentTime(F);g.zR(q,Z,"cmt",[B.toFixed(3)]);F=B=q.provider.rR(F);if((!q.Z||q.provider.J.U("html5_shorts_gapless_no_gllat")&&NM(q.provider.videoData)?0:F*1E3>q.Z.lm+100)&&q.Z){var f=q.Z;F=f.isAd;B=B*1E3-f.lm;q.VV=Z*1E3-f.p1p-B-f.JCE;f=(0,g.Le)()-B;Z=q.VV;B=q.provider.videoData;var D=B.isAd();if(F||D){D=(F?"ad":"video")+"_to_"+(D?"ad":"video");var G={};B.j&&(G.cttAuthInfo={token:B.j,videoId:B.videoId});G.startTime= f-Z;BX(D,G);g.ZR({targetVideoId:B.videoId,targetCpn:B.clientPlaybackNonce},D);n4("pbs",f,D)}else f=q.provider.Mp.QT(),f.j!==B.clientPlaybackNonce?(f.Z=B.clientPlaybackNonce,f.K=Z):B.Sg()||g.bh(new g.M2("CSI timing logged before gllat",{cpn:B.clientPlaybackNonce}));q.iL("gllat",{l:q.VV.toFixed(),prev_ad:+F});delete q.Z}}; aV=function(q,Z,F,B){var f=TJ(Z);!f||f.G||z$(f,B)||(F.abort(),q.policy.Aj&&(f=Z.V)!=null&&(f.S=void 0),(Z=Z.PG)!=null&&(nZ(Z,4),Z.flush()));if(!F.hT()||SB())try{q.policy.Yz?F.zt(B.D.info.containerType,B.D.info.FE)&&F.wc(B.D.info.containerType,B.D.info.FE,B.D.info.mimeType):F.B6(B.D.info.containerType,B.D.info.mimeType)}catch(D){return F=D,g.bh(F),q.iL("ctexp",{name:F.name,msg:F.message}),!1}else B.D.info.containerType!==F.hT()&&q.iL("ctu",{ct:SB(),prev_c:F.hT(),curr_c:B.D.info.containerType});Z=B.D.G; q.policy.c5&&Z&&(B=0+Z.duration,Z=-Z.D,0===F.WM()&&B===F.RB()||F.Bw(0,B),Z!==F.oh()&&(F.Da(Z),pV&&o99(q.audioTrack.Lf(),F.iO())));return!0}; WE=function(q,Z,F,B){F=F===void 0?!0:F;B=B===void 0?function(){return!0}:B; return function(f){var D=f[q];if(Array.isArray(D)&&B(f))return svB(D,Z,F)}}; wab=function(q){return q.data["Cuepoint-Type"]?new IC(-(Number(q.data["Cuepoint-Playhead-Time-Sec"])||0),Number(q.data["Cuepoint-Total-Duration-Sec"])||0,q.data["Cuepoint-Context"],q.data["Cuepoint-Identifier"]||"",e4K[q.data["Cuepoint-Event"]||""]||"unknown",(Number(q.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; TiB=function(q,Z,F,B){km.call(this,q,{Y:"div",W:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",Z,F,B);this.button=null;this.D=this.cG("ytp-ad-survey-none-of-the-above");this.hide()}; MXb=function(q,Z){for(var F in q.D)if(q.D[F].type===Z)return q.D[F].status}; xq=function(){var q=g.ym("yt.networklessRequestController.instance");q||(q=new y1,g.O9("yt.networklessRequestController.instance",q),g.cz("networkless_logging")&&g.$M().then(function(Z){q.sP=Z;yqg(q);q.S.resolve();q.Je&&Math.random()<=q.fA&&q.sP&&oqg(q.sP);g.cz("networkless_immediately_drop_sw_health_store")&&pIB(q)})); return q}; HE=function(q,Z,F,B,f,D,G){B=B===void 0?!1:B;f=f===void 0?!1:f;G=G===void 0?!0:G;f||(f=q.api.C().G);var n=q.api.getVideoData();Z=g.wz(g.Ly[Z]||"",B?{CPN:n.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);B=[];D&&B.push({Y:"h2",Ka:D});B.push(Z[0]);G&&B.push({Y:"br"});B.push({Y:"a",L:{href:F,target:f?"_blank":null},W:"ytp-error-link",Ka:Z[2]});q.S=!0;B.push(Z[4]);return{Y:"span",T:B}}; AVZ=function(q,Z,F,B,f){if(q.DL)return{"if":0,vs:0};var D=q.xX().clone().round(),G=q.bk?q.bk.S:null,n=EY(),b=PT(),N=q.Vc(),S=q.bk?q.bk.getName():"ns",l={};l["if"]=n.S?1:void 0;l.sdk=q.G?q.G:void 0;l.t=q.timeCreated;l.p=[D.top,D.left,D.bottom,D.right];D&&G&&!Ol(G,D)&&(D=G.round(),l.cp=[D.top,D.left,D.bottom,D.right]);l.tos=MP(N.K,!1);l.mtos=gu(N);l.mcvt=N.HG.S;l.ps=void 0;D=oO8(N,F0(),q.H3());l.vht=D;l.mut=N.Jn.S;l.a=WZ(q.tW.volume);l.mv=WZ(N.j);l.fs=q.jq?1:0;l.ft=N.Dl.D;l.at=N.Z.D;l.as=N.G>0?1:0; l.atos=MP(N.D);l.ssb=MP(N.vG,!1);l.amtos=jAb(N.D,!1);l.uac=q.KB;l.vpt=N.S.D;S=="nio"&&(l.nio=1,l.avms="nio");l.gmm="4";l.gdr=ra6(q,N.S.D,!0)?1:0;l.efpf=q.j$;if(S=="gsv"||S=="nis")S=q.bk,S.X>0&&(l.nnut=S.X);l.tcm=Nib(q);l.nmt=q.Oc;l.bt=q.dU;l.pst=q.HG;l.vpaid=q.PG;l.dur=q.S;l.vmtime=q.Dl;l.is=q.a4.S;q.D.length>=1&&(l.i0=q.D[0].mE,l.a0=[q.D[0].b4],l.c0=[q.D[0].oy],l.ss0=[q.D[0].Cz],S=q.D[0].position,D=q.D[0].PM,l.p0=S?P8(S):void 0,S&&D&&!Ol(D,S)&&(l.cp0=P8(D)));q.D.length>=2&&(l.i1=q.D[1].mE,l.a1=ts(q.D[1].T1, q.D[1].b4,q.D[1].V2),l.c1=ts(q.D[1].Eh,q.D[1].oy,q.D[1].Hq),l.ss1=ts(q.D[1].Mt,q.D[1].Cz,q.D[1].Lg),S=q.D[1].position,D=q.D[1].PM,l.p1=S?P8(S):void 0,S&&D&&!Ol(D,S)&&(l.cp1=P8(D)),l.mtos1=q.D[1].Dn);q.D.length>=3&&(l.i2=q.D[2].mE,l.a2=ts(q.D[2].T1,q.D[2].b4,q.D[2].V2),l.c2=ts(q.D[2].Eh,q.D[2].oy,q.D[2].Hq),l.ss2=ts(q.D[2].Mt,q.D[2].Cz,q.D[2].Lg),S=q.D[2].position,D=q.D[2].PM,l.p2=S?P8(S):void 0,S&&D&&!Ol(D,S)&&(l.cp2=P8(D)),l.mtos2=q.D[2].Dn);q.D.length>=4&&(l.i3=q.D[3].mE,l.a3=ts(q.D[3].T1,q.D[3].b4, q.D[3].V2),l.c3=ts(q.D[3].Eh,q.D[3].oy,q.D[3].Hq),l.ss3=ts(q.D[3].Mt,q.D[3].Cz,q.D[3].Lg),S=q.D[3].position,D=q.D[3].PM,l.p3=S?P8(S):void 0,S&&D&&!Ol(D,S)&&(l.cp3=P8(D)),l.mtos3=q.D[3].Dn);l.cs=eQ9(q.a4);Z&&(l.ic=SyX(q.a4),l.dvpt=N.S.K,l.dvs=EV(N.K,.5),l.dfvs=EV(N.K,1),l.davs=EV(N.D,.5),l.dafvs=EV(N.D,1),F&&(N.S.K=0,tcK(N.K),tcK(N.D)),q.Fn()&&(l.dtos=N.Y$,l.dav=N.PG,l.dtoss=q.Tv+1,F&&(N.Y$=0,N.PG=0,q.Tv++)),l.dat=N.Z.K,l.dft=N.Dl.K,F&&(N.Z.K=0,N.Dl.K=0));l.ps=[n.Z.width,n.Z.height];l.bs=[f1(n.D), n.D.getHeight()];l.scs=[n.G.width,n.G.height];l.dom=n.domain;q.Y4&&(l.vds=q.Y4);if(q.j.length>0||q.sA)Z=g.D4(q.j),q.sA&&Z.push(q.sA),l.pings=g.DC(Z,function(U){return U.toString()}); Z=g.DC(g.uh(q.j,function(U){return U.j()}),function(U){return U.getId()}); BA6(Z);l.ces=Z;q.K&&(l.vmer=q.K);q.V&&(l.vmmk=q.V);q.Y$&&(l.vmiec=q.Y$);l.avms=q.bk?q.bk.getName():"ns";q.bk&&g.gN(l,q.bk.hY());B?(l.c=ww(q.tW.oy,2),l.ss=ww(q.tW.Cz,2)):l.tth=F0()-qA7;l.mc=ww(N.uL,2);l.nc=ww(N.X,2);l.mv=WZ(N.j);l.nv=WZ(N.G);l.lte=ww(q.Qj,2);B=hu(q,f);gu(N);l.qmtos=gu(B);l.qnc=ww(B.X,2);l.qmv=WZ(B.j);l.qnv=WZ(B.G);l.qas=B.G>0?1:0;l.qi=q.kx;l.avms||(l.avms="geo");l.psm=N.dU.D;l.psv=N.dU.getValue();l.psfv=N.eU.getValue();l.psa=N.o_.getValue();b=eTD(b.Be);b.length&&(l.veid=b);q.Z&&g.gN(l, ZQ7(q.Z));l.avas=q.ZD();l.vs=q.yH();l.co=$rk(q);l.tm=N.BG;l.tu=N.WG;return l}; OJB=function(q){this.D=q;q.Ls("/client_streamz/bg/frs",g.pW("mk"))}; g.Wc=function(q){function Z(f){if(B.state.status==="PENDING"){B.state={status:"FULFILLED",value:f};f=g.E(B.D);for(var D=f.next();!D.done;D=f.next())D=D.value,D()}} function F(f){if(B.state.status==="PENDING"){B.state={status:"REJECTED",reason:f};f=g.E(B.K);for(var D=f.next();!D.done;D=f.next())D=D.value,D()}} var B=this;this.state={status:"PENDING"};this.D=[];this.K=[];q=q.D;try{q(Z,F)}catch(f){F(f)}}; var QjD=function(q){return P6[z[9]](this,8,q)}; F5K=function(q,Z){if(Z+1<=q.totalLength){var F=nz(q,Z);F=F<128?1:F<192?2:F<224?3:F<240?4:5}else F=0;if(F<1||!(Z+F<=q.totalLength))return[-1,Z];if(F===1)q=nz(q,Z++);else if(F===2)F=nz(q,Z++),q=nz(q,Z++),q=(F&63)+64*q;else if(F===3){F=nz(q,Z++);var B=nz(q,Z++);q=nz(q,Z++);q=(F&31)+32*(B+256*q)}else if(F===4){F=nz(q,Z++);B=nz(q,Z++);var f=nz(q,Z++);q=nz(q,Z++);q=(F&15)+16*(B+256*(f+256*q))}else F=Z+1,q.focus(F),zb(q,F,4)?q=WHb(q).getUint32(F-q.S,!0):(B=nz(q,F+2)+256*nz(q,F+3),q=nz(q,F)+256*(nz(q,F+1)+ 256*B)),Z+=5;return[q,Z]}; T7Z=function(q){return new ZJ(Object.assign({},q,{b6:function(Z){q.Ep.get().F6("onAdIntroStateChange",Z)}}))}; iV=function(q){this.value=q}; w7X=function(q){this.params=q;this.D=new Set}; B$8=function(q,Z){var F=NaN;q=g.E(q.array);for(var B=q.next();!B.done;B=q.next())if(B=B.value,B.contains(Z)&&(isNaN(F)||B.endZ&&(isNaN(F)||B.start0?{associatedSlotId:F}:{},B.length>0?{slots:B}:{})); return Z}; Grg=function(q){var Z,F;return(F=(Z=/https?:\/\/[^\/]+/.exec(q))==null?void 0:Z[0])!=null?F:""}; GPk=function(q){if(q!==void 0&&q.trim()!==""&&(q=Math.trunc(Number(q.trim())),!(isNaN(q)||q<0)))return q}; DBy=function(){this.D=new Map}; fA7=function(q){q=D0X.includes("es-419")?q.U("delhi_modern_web_player_icons")?UH():{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,L:{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"}}]}:q.U("delhi_modern_web_player_icons")?enK():{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,L:{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"}}]};q.W="ytp-subtitles-button-icon"; return q}; di6=function(q){var Z=QB("_start",q),F=iuZ(q),B=!Gx7;Z&&F&&B&&(dp9(zDD,new X07(Math.round(F-Z),q)),Gx7=!0)}; WC=function(q){Q1.call(this,q.getAvailablePlaybackRates()[0],q.getAvailablePlaybackRates()[q.getAvailablePlaybackRates().length-1],.05,q.getPlaybackRate(),{Y:"div",W:"ytp-speedslider-indicator-container",T:[{Y:"div",W:"ytp-speedslider-badge"},{Y:"p",W:"ytp-speedslider-text"}]});this.B=q;this.Dl=JV(this.zP,50,this);g.e$(this.K,"ytp-speedslider");this.V=this.cG("ytp-speedslider-text");this.uL=this.cG("ytp-speedslider-badge");xa(this);this.N(this.K,"change",this.Y$)}; xI=function(q,Z,F){this.D=q;this.K=Z;this.expiration=F;this.m6=null}; RtD=function(q){var Z,F;return((Z=q.renderer)==null?void 0:(F=Z.adBreakServiceRenderer)==null?void 0:F.getAdBreakUrl)!==void 0}; tE8=function(q){var Z;return g.h(function(F){if(F.D==1)return g.R(F,M38(q),2);Z=F.K;return g.R(F,Z.clear("SWHealthLog"),0)})}; g.CB=function(){return{innertubeApiKey:g.oa("INNERTUBE_API_KEY"),innertubeApiVersion:g.oa("INNERTUBE_API_VERSION"),G1:g.oa("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),yD:g.oa("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),kT:g.oa("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.oa("INNERTUBE_CONTEXT_CLIENT_VERSION"),oE:g.oa("INNERTUBE_CONTEXT_HL"),gT:g.oa("INNERTUBE_CONTEXT_GL"),po:g.oa("INNERTUBE_HOST_OVERRIDE")||"",RD:!!g.oa("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),E0:!!g.oa("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.oa("SERIALIZED_CLIENT_CONFIG_DATA")}}; nOk=function(q){var Z={},F=window.h5vcc;Z.hwConcurrency=navigator.hardwareConcurrency;q.D&&(Z.cpe=q.D.message);q.K&&(Z.cpt=q.K.time,Z.cps=q.K.state);if(F==null?0:F.cVal)Z.cb2s=F.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),Z.cb5s=F.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),Z.cb30s=F.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return Z}; wIg=function(q){dJ=q}; Af=function(q,Z,F,B,f,D,G,n,b,N,S,l){oP.call(this,D,q,Z,f);this.wU=F;this.G=G;this.Zl=n;this.tZ=b;this.GP=N;this.j=S;this.Z=l;this.La=Szk(Z,F)}; wh=function(q,Z,F){return q.parseFromString(Yx(Z),F)}; oMD=function(q,Z){Z=Math.min(Z,q.info.S);var F=q.K.split(Z),B=F.er;F=new Hz(new b6(q.info.type,q.info.D,q.info.range,q.info.X,q.info.Uc,q.info.startTime,q.info.duration,q.info.K,Z,!1,q.info.De,q.info.clipId),F.J_);F.G=q.G;F.S=q.S;Z=new Hz(new b6(q.info.type,q.info.D,q.info.range,q.info.X,q.info.Uc,q.info.startTime,q.info.duration,q.info.K+Z,q.info.S-Z,q.info.G,q.info.De,q.info.clipId),B);Z.G=q.G;Z.S=q.S;return[F,Z]}; bQy=function(q){q.B.isFullscreen()?g.C5(q.B,q.element,10):q.R_(RV(q).body)}; p6k=function(q){if(!q.isRequestPending){q.isRequestPending=!0;q.ys(3);var Z=q.B.getVideoData();Z=q.D?Z.removeFromWatchLaterCommand:Z.addToWatchLaterCommand;var F=q.B.Y6(),B=q.D?function(){q.D=!1;q.isRequestPending=!1;q.ys(2);q.B.C().V&&q.B.a_("WATCH_LATER_VIDEO_REMOVED")}:function(){q.D=!0; q.isRequestPending=!1;q.ys(1);q.B.C().K&&q.B.fI(q.element);q.B.C().V&&q.B.a_("WATCH_LATER_VIDEO_ADDED")}; Z0(F,Z).then(B,function(){q.isRequestPending=!1;q.ys(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");q.B.C().V&&q.B.a_("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; zt=function(q){return!KR(q.TP[q.TP.length-1])}; TY=function(q){this.D=q}; j$8=function(q,Z,F,B){var f=Z*2,D=F*2;return q[f]0&&(this.Li=g.ZY(this.policy.qF));this.policy.w3&&(this.V=new jy(this.loader,this.policy,this.schedule),g.y(this,this.V))}; Wb=function(q){uF(q);q.setLoopVideo(!1);q.setLoopRange(null);q.lL.publish("legacyadtrackingpingreset");q.ST={};q.yJ=[];N$K(q.Yk);if(q.EZ){var Z=q.EZ,F=q.Dv();F.getPlayerType();G$(Z,!1);sg(Z);gOG(Z);Z.playback=F}Z=q.h0;q=q.Dv();q.getPlayerType()!==1&&Xe(Z,"invalidParentVideoPlayerType");sX(Z,!1);XkZ(Z);Z.D=q}; SAg=function(q,Z,F,B,f,D){nX.call(this,q,{Y:"div",rU:["ytp-flyout-cta","ytp-flyout-cta-inactive"],T:[{Y:"div",W:"ytp-flyout-cta-icon-container"},{Y:"div",W:"ytp-flyout-cta-body",T:[{Y:"div",W:"ytp-flyout-cta-text-container",T:[{Y:"div",W:"ytp-flyout-cta-headline-container"},{Y:"div",W:"ytp-flyout-cta-description-container"}]},{Y:"div",W:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",Z,F,B,f);this.S=new Ht(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,"ytp-flyout-cta-icon"); g.y(this,this.S);this.S.R_(this.cG("ytp-flyout-cta-icon-container"));this.S.element.classList.add("ytp-flyout-cta-icon-rounded");this.Z=new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,"ytp-flyout-cta-headline");g.y(this,this.Z);this.Z.R_(this.cG("ytp-flyout-cta-headline-container"));this.G=new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,"ytp-flyout-cta-description");g.y(this,this.G);this.G.R_(this.cG("ytp-flyout-cta-description-container"));q=["ytp-flyout-cta-action-button"]; this.api.C().U("web_modern_buttons")&&q.push("ytp-flyout-cta-action-button-rounded");this.K=new qa(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,q);g.y(this,this.K);this.K.R_(this.cG("ytp-flyout-cta-action-button-container"));this.K.element.setAttribute("tabIndex","-1");cg(this.K.element);this.uL=null;this.k$=0;this.BG=D;this.hide()}; Q$=function(q,Z,F){this.D=Z;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=F||q(this.triggerType)}; ljD=function(q,Z){q.G||(q.G=!0,q.K&&(Z?q.K.uL.hide():q.K.hide()),Z?(q=q.S,q.I_.show(),q.show()):q.S.show())}; U0D=function(q){return q.B.C().experiments.qp("enable_progres_commands_lr_feeds")}; g.q7=function(q,Z){var F=new $CK(4096);Z(F,q);return new Uint8Array(F.D.buffer,F.D.byteOffset,F.pos)}; ua6=function(q,Z){var F=wZ;g.ch(q,function(B,f){return F(Z(B),Z(f))})}; vE=function(q,Z,F,B,f,D,G){D=D===void 0?!1:D;G=G===void 0?!1:G;km.call(this,q,{Y:"span",W:"ytp-ad-simple-ad-badge"},"simple-ad-badge",Z,F,B);this.S=f;this.D=this.cG("ytp-ad-simple-ad-badge");(this.K=D)&&this.D.classList.add("ytp-ad-simple-ad-badge--clean-player");G&&this.D.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; hrB=function(q){fX.call(this,q);var Z=this;this.events=new g.pO(q);g.y(this,this.events);this.events.N(q,"applicationInitialized",function(){iyy(Z)})}; dp9=function(q,Z){var F=H$();F&&F.publish.call(F,q.toString(),q,Z)}; g.f6=function(q,Z,F){q.D=F?An(Z,!0):Z}; Pzb=function(q,Z,F){q.isPaused()||q.getCurrentTime()>Z||F>10||(q.play(),g.OT(function(){Pzb(q,q.getCurrentTime(),F+1)},500))}; wiB=function(q,Z){var F,B,f,D;return g.h(function(G){if(G.D==1)return g.s4(G,2),F=Hr(Z),B={context:g.GG(q),playerRequest:{videoId:q.videoId},disablePlayerResponse:!0},f=g.x7(r58),g.R(G,g.Av(F,B,f),4);if(G.D!=2)return D=G.K,!D||"error"in D&&D.error||g.On(q,{raw_reel_item_watch_response:D}),g.jB(G,0);g.If(G);g.C7(G)})}; oO8=function(q,Z,F){var B=q.Oc;Ps||F||q.V==-1||(B+=Z-q.V);return B}; dw=function(q,Z,F){Yp("Slot stage was "+Z+" when calling method "+F,q)}; Yt=function(q,Z){this.adPodIndex=q;this.D=Z.length;this.adBreakLengthSeconds=Z.reduce(function(B,f){return B+f},0); var F=0;for(q+=1;q-1)return Z.apply(null,g.YB(F));try{return q.D=q.S.D.now(),Z.apply(null,g.YB(F))}finally{q.G+=q.S.D.now()-q.D,q.D=-1,q.K+=1}}}; Ah9=function(q){if(q.J.storeUserVolume){q=g.sY("yt-player-volume")||{};var Z=q.volume;q={volume:isNaN(Z)?100:g.JY(Math.floor(Z),0,100),muted:!!q.muted}}else q={volume:100,muted:q.J.mute};return q}; iQB=function(q){var Z={},F,B=(F=q.e3)==null?void 0:F.wF/1E3;B!=null&&(Z.SURVEY_ELAPSED_MS=u6(function(){return Math.round(B*1E3).toString()})); Z.SURVEY_LOCAL_TIME_EPOCH_S=u6(function(){return Math.round(Date.now()/1E3).toString()}); return Z}; uhD=function(q){if(q.currentState!==2)return!1;q.currentState=3;return!0}; FpD=function(q,Z,F){this.layoutId=Z;this.offsetMs=F;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=q(this.triggerType)}; Zs=function(q){g.J.call(this);var Z=this;this.J=q;this.D=new Map;this.G=[];this.K=!hV();this.PG=g.Ce(this.J.experiments,"html5_onesie_prewarm_interval_ms");this.V=new g.im(this.X,this.PG,this);this.j=-1;this.JZ={kcE:function(){return Z.D}, wzU:function(){return Z.Z}, pzE:function(){return kxD}}; g.y(this,this.V);s8X(this,g.sY("yt-player-bandaid-host"));this.Z=this.load();this.PG&&this.Z.then(function(){Z.X()})}; TID=function(q,Z){Z=Z===void 0?!1:Z;return wb(Wu(q,j8B),q,Z,"Captions URL")}; IjK=function(q){q.N(q.B,g.UK("shopping_overlay_visible"),function(){q.Lw(!0)}); q.N(q.B,g.s2("shopping_overlay_visible"),function(){q.Lw(!1)}); q.N(q.B,g.UK("shopping_overlay_expanded"),function(){q.uL=!0;tI(q)}); q.N(q.B,g.s2("shopping_overlay_expanded"),function(){q.uL=!1;tI(q)}); q.N(q.B,g.UK("shopping_overlay_preview_collapsed"),function(){q.D=!0;Ky(q)}); q.N(q.B,g.s2("shopping_overlay_preview_collapsed"),function(){q.D=!1;Ky(q)}); q.N(q.B,g.UK("shopping_overlay_preview_expanded"),function(){q.K=!0;Ky(q)}); q.N(q.B,g.s2("shopping_overlay_preview_expanded"),function(){q.K=!1;Ky(q)})}; IdB=function(q){var Z=q!==q.top,F=q.top===Frk(q),B=-1,f=0;if(Z&&F&&q.top.mraid){B=3;var D=q.top.mraid}else B=(D=q.mraid)?Z?F?2:1:0:-1;D&&(D.IS_GMA_SDK||(f=2),qJB(CzD,function(G){return typeof D[G]==="function"})||(f=1)); return{Ck:D,compatibility:f,eJE:B}}; $I=function(q,Z,F,B,f,D){F=F===void 0?!0:F;var G=q.Nr({playerType:f});if(!G||(G.getPlayerType()!==2||q.md(G))&&!g.z_(G.getVideoData())){var n=q.Kp.X9;n?n.seekTo(Z,{zf:!F,RO:B,V5:"application",seekSource:D}):(G&&G===q.Dv()&&q.Rh&&!hDg(q,Z)&&q.setLoopRange(null),q.seekTo(Z,F,B,f,D,"_request"))}}; A6=function(q){if(q.app.getAppState()===1)return!1;if(q.app.getAppState()===6)return!0;var Z=q.app.Vs();if(!Z||Z.tj())return!1;q=q.app.lL.getPlayerStateObject();Z=!g.p(q,2)||Z&&Z.getVideoData().X;var F=g.p(q,1024);return q&&Z&&!F&&!q.isCued()}; RD9=function(q){this.Ec=rE(q)}; vbK=function(q){var Z="",F=RdZ(q);F.indexOf("//")===0&&(F=q.J.protocol+":"+F);var B=F.lastIndexOf("/base.js");B!==-1&&(Z=F.substring(0,B+1));if(F=Error().stack)if(F=F.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))F=F[1],F.includes(Z)||g.bh(Error("Player module URL mismatch: "+(F+" vs "+Z+".")));Z=new Kv(q.lL,Z);F={};YQ9(Z,(F.destroyed=function(){q.onApiChange()},F)); return Z}; c0=function(q,Z,F,B){F=F===void 0?.5:F;B=B===void 0?0:B;this.resolution=Z;this.K=0;this.S=!1;this.VQ=!0;this.D=Math.round(q*this.resolution);this.values=Array(this.D);for(q=0;q f&&(f=n.width,D="url("+n.url+")")}F.background.style.backgroundImage=D;CM8(F,B.actionButtons||[]);F.show()}else F.hide()}); g.C5(this.api,this.D.element,4)}; d0Z=function(q){if(q.B.U("web_player_rtr_ctrls")&&q.B.Ca().PK)return 0;var Z=q.B.rY(),F=q.B.getVideoData().z3,B=0;q.B.rY()&&q.B.isEmbedsShortsMode()&&(B=(q.B.Ca().getPlayerSize().width-q.B.getVideoContentRect().width)/2);return 12*(F?0:Z?2:1)+B}; mQ=function(q){this.value=q}; i$b=function(q,Z){return q.B.U("delhi_modern_web_player_icons")?LXX():Z?{Y:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},T:[{Y:"g",L:{transform:"translate(96, -96) scale(0.8)"},T:[{Y:"path",Sn:!0,L:{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"}}]}]}:xEK()}; iG9=function(q,Z,F,B,f,D){var G={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,bL:"core"};Z=X3(q,Z,F);return Z instanceof K?Z:(F=g.C(q.renderingContent,VX))&&F.pings?Object.assign({},G,{renderingContent:q.renderingContent,ud:Zk(F.pings)},Z,{Xe:Ou(B,f)(G),clientMetadata:new zX([new QA(Xk(D))]),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData}):new K("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; eDZ=function(q,Z){q.D||(q.K=Z,q.S=(0,g.Le)(),q.D=new g.S2(function(){Vgy(q)},null),Vgy(q))}; T$Z=function(q){q.D||(q.D=new KD);return q.D}; Ck=function(q,Z,F,B){Ao.call(this,q,Z,F,B);var f=this;this.Z=null;this.JZ={qq:function(D,G,n,b){return f.qq(D,G,n,b)}}; this.index=new g.R4y}; qm9=function(q,Z,F){F=Mgk(q,F);var B=Z.getElementsByTagName("path")[0],f=B.getAttribute("d");if(B.getAttribute("id")){var D=qf();Z=Z.getElementsByTagName("use");for(var G=0;G=0;)q[Z]=0}; sl=function(q){g.$P.call(this,q,{Y:"button",rU:["ytp-skip-intro-button","ytp-popup","ytp-button"],T:[{Y:"div",W:"ytp-skip-intro-button-text",Ka:"Omitir introducci\u00f3n"}]},100);var Z=this;this.K=!1;this.D=new g.im(function(){Z.hide()},5E3); this.OP=this.cH=NaN;g.y(this,this.D);this.X=function(){Z.show()}; this.G=function(){Z.hide()}; this.S=function(){var F=Z.B.getCurrentTime();F>Z.cH/1E3&&F127;)q.D.push(Z&127|128),Z>>>=7;q.D.push(Z)}; orX=function(q,Z){Z!=null?(q.Lx=Z,q.z3=!0):(q.Lx="",q.z3=!1)}; QZD=function(q){this.api=q;this.D={}}; g.Hmb=function(q){var Z=q.vssId;q.translationLanguage&&Z&&(Z="t"+Z+"."+g.Qw(q));return Z}; DYX=function(q,Z,F,B,f,D,G,n,b,N,S,l,U){this.callback=q;this.slot=Z;this.layout=F;this.A0=B;this.La=f;this.Zl=D;this.ES=G;this.nB=n;this.qE=b;this.GP=N;this.wU=S;this.XE=l;this.YS=U;this.pg=!0;this.fp=this.Fe=null;this.adCpn=void 0;this.D=!1}; jd=function(q){this.player=q;this.S=this.D=1}; SWD=function(){this.env=new GCB;this.wasi_snapshot_preview1=new C_g}; zAB=function(q,Z,F){F-=q.mx;return Z===q.D&&F>.5}; nkX=function(){this.S=!0;this.K=0;this.D=""}; g.b2=function(q){return hA(q)&&q.Oc?(q={},q.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",q):q.K&&q.K.Ni||null}; ow9=function(q){for(var Z="",F=0;FZ&&q.j0&&g.kP(Z.K.element);B.classList.add("ytp-timely-actions-overlay");Z.K.element.appendChild(B)}); g.y(this,this.K);this.U("web_player_overlay_positioned_layout")?this.events.N(q,"basechromeinitialized",function(){Z.api.hW(Z.K.element,4,!0);Z.K.element.setAttribute("data-overlay-order","10")}):g.C5(this.api,this.K.element,4)}; wS6=function(){vK={contentCpn:"",Tw:new Map}}; qqD=function(q,Z,F){var B=Z instanceof QJ&&!q.S&&!q.K,f=!q.S&&(F==null?void 0:F.info.video);F=!q.K&&(F==null?void 0:F.info.audio);Z.state===3?((f||B)&&q.tick("vrr"),(F||B)&&q.tick("arr")):Z.state===4?f?(q.S=Z.fP(),g.ap(),kh(4)):F&&(q.K=Z.fP()):Z instanceof OX&&Z.cV()&&f&&(g.ap(),kh(4))}; JQg=function(q){var Z;return g.h(function(F){if(q.jU())throw Error("Already disposed");(Z=q.D)!=null&&(Z.endTimeMs=0,Z.wQ(1));return g.R(F,q.S.promise,0)})}; ry=function(q,Z){var F=q.pR>=0?q.pR:-1,B=q.AZ-q.pR,f=0;if(q.level>0){q.VC.CZ===2&&(q.VC.CZ=oDZ(q));V39(q,q.dn);V39(q,q.e_);$99(q,q.wp,q.dn.sD);$99(q,q.g7,q.e_.sD);V39(q,q.hX);for(f=18;f>=3&&q.MP[WYD[f]*2+1]===0;f--);q.Q4+=3*(f+1)+5+5+4;var D=q.Q4+3+7>>>3;var G=q.Dj+3+7>>>3;G<=D&&(D=G)}else D=G=B+5;if(B+4<=D&&F!==-1)W7(q,Z?1:0,3),zKZ(q,F,B);else if(q.strategy===4||G===D)W7(q,2+(Z?1:0),3),fSg(q,sq,j4);else{W7(q,4+(Z?1:0),3);F=q.dn.sD+1;B=q.e_.sD+1;f+=1;W7(q,F-257,5);W7(q,B-1,5);W7(q,f-4,4);for(D=0;D< f;D++)W7(q,q.MP[WYD[D]*2+1],3);PkG(q,q.wp,F-1);PkG(q,q.g7,B-1);fSg(q,q.wp,q.g7)}zRB(q);Z&&GzD(q);q.pR=q.AZ;wG(q.VC)}; FXB=function(q,Z){var F;if(Z=Z==null?void 0:(F=Z.watchEndpointSupportedOnesieConfig)==null?void 0:F.html5PlaybackOnesieConfig)q.y0=new UnD(Z)}; yP9=function(q){if(q.isExternallyHostedPodcast&&q.gj){var Z=Jt(q.gj);if(!Z[0])return Ef();q.Xa=Z[0];return eMX(q.Qs,Z[0]).then(function(F){HM(q,F)})}return q.Gs&&q.Rt?lEZ(q.Qs,q.isAd(),q.Gs).then(function(F){HM(q,F)}):Ef()}; Sf9=function(q,Z,F){A8(q);var B=q.Ec,f=B[Sm]|0;if(Z==null)return h8(B,f,3),q;if(!Array.isArray(Z))throw M4();var D=Z===E3?7:Z[Sm]|0,G=D,n=dZ(D),b=n||Object.isFrozen(Z);n||(D=0);b||(Z=Vr(Z),G=0,D=ef(D,f),b=!1);D|=5;n=4&D?512&D?512:1024&D?1024:0:void 0;n=n!=null?n:0;for(var N=0;N=Math.floor(D*16/9)*1.3||q>=D*1.3)return Z;Z=f}return"tiny"}; C4=function(q,Z,F,B,f,D){oP.call(this,F,q,Z,B);this.Zl=f;this.GP=D}; J1=function(q,Z){var F="";if(q.dangerousLogToVisitorSession)F="visitorOnlyApprovedKey";else if(q.cttAuthInfo){if(Z===void 0?0:Z){Z=q.cttAuthInfo.token;F=q.cttAuthInfo;var B=new xj;F.videoId?B.setVideoId(F.videoId):F.playlistId&&Mo(B,2,hf,bd(F.playlistId));RO[Z]=B}else Z=q.cttAuthInfo,F={},Z.videoId?F.videoId=Z.videoId:Z.playlistId&&(F.playlistId=Z.playlistId),$s[q.cttAuthInfo.token]=F;F=q.cttAuthInfo.token}return F}; qE8=function(q,Z){return q.D!==Z.D?!1:q.range&&Z.range?q.range.start+q.K>=Z.range.start+Z.K&&q.range.start+q.K+q.S<=Z.range.start+Z.K+Z.S:q.Uc===Z.Uc&&q.K>=Z.K&&(q.K+q.S<=Z.K+Z.S||Z.G)}; swy=function(q,Z){var F=this;this.G=q;this.iL=Z;this.D="";this.S=new Set;this.K=new Map;this.JZ={Dj$:function(){return F.S}}}; yeK=function(q){for(var Z=q.D,F=[],B=0;B>>0&255);q.D.push(Z>>>8&255);q.D.push(Z>>>16&255);q.D.push(Z>>>24&255)}; Tg=function(q){var Z=this;this.D=q;this.S=new Map;this.K=!1;this.done=new Promise(function(F,B){Z.D.addEventListener("complete",function(){F()}); Z.D.addEventListener("error",function(f){f.currentTarget===f.target&&B(Z.D.error)}); Z.D.addEventListener("abort",function(){var f=Z.D.error;if(f)B(f);else if(!Z.K){f=g.Mu;for(var D=Z.D.objectStoreNames,G=[],n=0;n=Z){Z=D;break a}}Z=f}return Z<0?NaN:snG(q,F?Z:0)?q[Z].startTime:NaN}; g.$Y9=function(){}; Jf=function(q,Z){switch(Z){case "normal":q.xk("complete");break;case "skipped":q.xk("skip");break;case "abandoned":S7(q.La,"impression")&&q.xk("abandon")}}; L8=function(q){var Z={};q=q.split("&");q=g.E(q);for(var F=q.next();!F.done;F=q.next())F=F.value.split("="),F.length===2&&(Z[F[0]]=F[1]);return Z}; aND=function(q){if(q.api.C().U("web_player_log_click_before_generating_ve_conversion_params"))for(var Z=Math.floor(-q.scrollPosition/(q.G+8)),F=Math.min(Z+q.columns,q.suggestionData.length)-1;Z<=F;Z++)q.api.logVisibility(q.D[Z].element,!0)}; mYK=function(q){var Z=q.Dv();if(!(g.p(Z.getPlayerState(),64)&&q.AP().isLivePlayback&&q.Rh.startTimeMs<5E3)){if(q.Rh.type==="repeatChapter"){var F,B=(F=VsG(q.pB()))==null?void 0:F.o6(),f;F=(f=q.getVideoData())==null?void 0:f.nE;B instanceof g.ZI&&F&&(f=F[tq(F,q.Rh.startTimeMs)],B.renderChapterSeekingAnimation(0,f.title));isNaN(Number(q.Rh.loopCount))?q.Rh.loopCount=0:q.Rh.loopCount++;q.Rh.loopCount===1&&q.lL.a_("innertubeCommand",q.getVideoData().iDr)}B={V5:"application_loopRangeStart"};if(q.Rh.type=== "clips"||q.Rh.type==="shortsLoop")B.seekSource=58;Z.seekTo(q.Rh.startTimeMs*.001,B)}}; iT8=function(q,Z){for(var F=0;F+1B}; kC8=function(q,Z){q.D&&JvD(q.D,Z)}; var Ld8=function(){return P6[z[9]](this,23)}; N6K=function(q,Z){return q.U("html5_onesie_sync_request_encryption")||(Z==null?0:Z.XY)||g.d9(q.J)&&q.U("html5_embed_onesie_use_sync_encryption")?!1:!!hV()}; s2K=function(q,Z){Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var B=F[1];F[0]===1?q.X(g.UK(B.namespace),B):q.X(g.s2(B.namespace),B)}}; YI=function(q,Z,F,B,f,D){nX.call(this,q,{Y:"div",W:"ytp-ad-skip-ad-slot"},"skip-ad",Z,F,B,f);this.uL=D;this.G=!1;this.Z=0;this.S=this.K=null;this.hide()}; hV=function(){if(!oc&&!g.oV){if(tf)return tf;var q;tf=(q=window.crypto)==null?void 0:q.subtle;var Z,F,B;if(((Z=tf)==null?0:Z.importKey)&&((F=tf)==null?0:F.sign)&&((B=tf)==null?0:B.encrypt))return tf;tf=void 0}}; j2D=function(q,Z,F,B){q.S=B;q.api.uM(q.D,F,Z)}; g.ST=function(q,Z){Z=Z===void 0?INb:Z;a:if(Z=Z===void 0?INb:Z,!(q instanceof cx)){for(var F=0;F=q.S&&!Z}; eJ=function(){var q=arguments,Z=ju;q.length>1?Z[q[0]]=q[1]:q.length===1&&Object.assign(Z,q[0])}; A09=function(q){this.D=q;q.i6("/client_streamz/bg/po/csc",M6("cs"),g.pW("mk"))}; dT8=function(q){return window.Profiler&&new window.Profiler(q)}; RfG=function(q,Z){if(TS(q,Z))return Z=NN(q.D,q.pos,8),q.pos+=8,(new DataView(Z.buffer,Z.byteOffset,Z.byteLength)).getFloat64(0,!0)}; Rwy=function(q,Z,F,B){var f=[];F=g.E(F);for(var D=F.next();!D.done;D=F.next()){var G=D.value;if(G.url){D=new g.O_(G.url,!0);if(G.s){var n=D,b=G.sp,N=p7(32,decodeURIComponent(G.s));n[z[5]](b,encodeURIComponent(N))}n=g.E(Object.keys(B));for(b=n.next();!b.done;b=n.next())b=b.value,D.set(b,B[b]);G=IV(G.type,G.quality,G.itag,G.width,G.height);f.push(new wF(G,D))}}return Kk(q.Z,f,$Q(q,Z),!1)}; izb=function(q,Z,F){q.Np=Z;q.ME=F;Z=g.E(q.He);for(F=Z.next();!F.done;F=Z.next()){var B=g.E(F.value);F=B.next().value;B=B.next().value;for(var f=g.E(B.pV),D=f.next();!D.done;D=f.next()){D=D.value;var G=jpK(q,F,D);YmG(q,D.iJ,B,G)}}}; t5y=function(){var q=null;iCX().then(function(Z){return q=Z},function(Z){return q=kkK(Z)}); return q}; byD=function(q,Z,F){Z.match(pSb);return q(Z,F).then(function(B){var f=g.EqD(B.xhr);return f?byD(q,f,F):B.xhr})}; V5D=function(q){for(var Z=q.suggestionData.length,F=0;F=0?Z:g.$w(q.provider);var F=q.provider.Mp.Ch(),B=F.eF-(q.WG||0);B>0&&g.zR(q,Z,"bwm",[B,(F.RZ-(q.LB||0)).toFixed(3)]);isNaN(q.WG)&&F.eF&&q.isOffline&&q.eE(!1);q.WG=F.eF;q.LB=F.RZ;isNaN(F.bandwidthEstimate)||g.zR(q,Z,"bwe",[F.bandwidthEstimate.toFixed(0)]);q.provider.J.Nl()&&Object.keys(F.D).length!==0&&q.iL("bwinfo",F.D);if(q.provider.J.Nl()||q.provider.J.U("html5_log_meminfo"))B=rMg(),Object.values(B).some(function(D){return D!==void 0})&&q.iL("meminfo",B); if(q.provider.J.Nl()){var f;(B=(f=q.eU)==null?void 0:nOk(f))&&Object.values(B).some(function(D){return D!=null})&&q.iL("cpuinfo",B)}q.HG&&q.iL("jsprof",q.HG.flush()); q.PG&&g.zR(q,Z,"bat",[q.PG.level,q.PG.charging?"1":"0"]);f=q.provider.Mp.getVisibilityState();q.X3!==f&&(g.zR(q,Z,"vis",[f]),q.X3=f);VXB(q,Z);(f=Rob(q.provider))&&f!==q.Hg&&(g.zR(q,Z,"conn",[f]),q.Hg=f);lp(q,Z,F)}; Ts=function(q,Z,F){Lu(Pz,[q],!ub());Png(q,F);F!=4&&pu9(q.zP,F,q.lM);return Ub(q,Z,ub())}; nC=function(q,Z){Z=String(Z);q.G&&(Z=Z.toLowerCase());return Z}; ZUX=function(q,Z){var F=!!q.D;q.D=Z;q.D?(F||(q.events.N(q.api,"videodatachange",function(){ZUX(q,q.api.RV())}),q.events.N(q.api,"progresssync",q.onProgress),q.events.N(q.api,"appresize",q.G)),q.frameIndex=NaN,xf(q),q.fade.show(200)):(F&&g.DJ(q.events),q.fade.hide(),q.fade.stop())}; wV=function(q,Z,F){if(q.J.experiments.qp("html5_disable_client_autonav_cap_for_onesie")&&Z.fetchType==="onesie"||g.em(q.J)&&(QL(-1)>=1080||Z.osid))return wH;var B=g.Ce(q.J.experiments,"html5_autonav_quality_cap"),f=g.Ce(q.J.experiments,"html5_autonav_cap_idle_secs");return B&&Z.isAutonav&&zG()/1E3>f?(F&&(B=QBX(q,F,B)),new ob(0,B,!1,"e")):wH}; NF6=function(q,Z,F){return p7(60,Z?LUX(q,F):q.D)}; cy=function(q,Z){var F=qc(q.clientMetadata,"metadata_type_eligible_for_ssap");return F===void 0?(Yp("Expected SSAP eligibility in PlayerBytes factory",q),!1):Z.wj(F)}; var A$y=function(q,Z){return O6[z[9]](this,25,q,Z)}; tZ=function(q,Z,F,B){var f=this;B=B===void 0?{}:B;this.policy=Z;this.cg=F;this.status=0;this.D=new bN;this.K=0;this.jU=this.G=this.S=!1;this.xhr=new XMLHttpRequest;this.xhr.open(B.method||"GET",q);if(B.headers)for(q=B.headers,Z=g.E(Object.keys(q)),F=Z.next();!F.done;F=Z.next())F=F.value,this.xhr.setRequestHeader(F,q[F]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return f.nL()}; this.xhr.onload=function(){return f.onDone()}; this.xhr.onerror=function(){return f.onError()}; this.xhr.fetch(function(D){f.D.append(D);f.K+=D.length;D=(0,g.Le)();f.cg.cz(D,f.K)},function(){},B.body||null)}; kMk=function(q,Z){q.nD=Z;var F,B;(F=q.LB)!=null&&(B=F.D)!=null&&(B.D=new o$(Z,B.K,B.S),g.y(B,B.D))}; $H=function(q,Z,F){this.triggeringSlotId=Z;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=F||q(this.triggerType)}; lG=function(){var q=g.ym("yt.player.utils.videoElement_");q||(q=g.AV("VIDEO"),g.O9("yt.player.utils.videoElement_",q));return q}; jfK=function(q){fX.call(this,q);this.events=new g.pO(q);g.y(this,this.events);this.events.N(q,"videoready",function(Z){if(q.getPresentingPlayerType()===1){var F,B,f={playerDebugData:{pmlSignal:!!((F=Z.getPlayerResponse())==null?0:(B=F.adPlacements)==null?0:B.some(function(D){var G;return D==null?void 0:(G=D.adPlacementRenderer)==null?void 0:G.renderer})), contentCpn:Z.clientPlaybackNonce}};g.nh("adsClientStateChange",f)}})}; DeZ=function(q,Z){var F=q.mediaElement,B=Z.type;switch(B){case "seeking":var f=F.getCurrentTime()+q.timestampOffset;if(!q.G||q.uL&&f!==q.K){q.G=new l8;q.G.then(function(G){pB(q,G)},function(){te(q)}); if(q.videoData.isAd()){var D;FFy({adCpn:q.videoData.clientPlaybackNonce,contentCpn:(D=q.videoData.H_)!=null?D:""},Z.D)}q.WG=f;j_6(q.Dl,F.getCurrentTime());q.seekTo(f,{seekSource:104,V5:"seektimeline_mediaElementEvent"});q.uL=!0}break;case "seeked":BYy(q);break;case "loadedmetadata":Do(q.Mp)||fpK(q);mi(q);break;case "progress":mi(q);break;case "pause":q.X=q.getCurrentTime()}q.X&&((B==="play"||B==="playing"||B==="timeupdate"||B==="progress")&&q.getCurrentTime()-q.X>10&&(q.U("html5_sky_skip_pause_jump")? q.Mp.iL("skipPauseJump",{evt:B,cmt:q.getCurrentTime(),lpt:q.X}):q.seekTo(q.X,{V5:"pauseJump"})),B!=="pause"&&B!=="play"&&B!=="playing"&&B!=="progress"&&(q.X=0))}; IcK=function(q,Z,F,B,f){if(!x1(Z))return new K("Invalid PlayerBytesAdLayoutRenderer");var D=g.C(Z.renderingContent,Vm);if(!D||D.durationMilliseconds===void 0)return new K("Invalid endcap renderer");var G={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,bL:"adapter"};B=[new yZ(D.durationMilliseconds),new Te({impressionCommands:void 0,abandonCommands:D.abandonCommands?[{commandExecutorCommand:D.abandonCommands}]:void 0,completeCommands:D.completionCommands}),new QA(B), new Sy("LAYOUT_TYPE_ENDCAP")];if(f){B.push(new et(f.WK.adPodIndex-1));B.push(new gG(f.WK.adPodIndex));var n;B.push(new oU((n=f.adPodSkipTarget)!=null?n:-1))}return Object.assign({},G,vW,{renderingContent:Z.renderingContent,clientMetadata:new zX(B),ud:D.skipPings?new Map([["skip",D.skipPings]]):new Map,Xe:Ou(F,q)(G),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData})}; Gm9=function(q,Z,F){var B=q.D.get(Z);B?(B.push(F),g.ch(B,function(f,D){return f.Rc-D.Rc})):q.D.set(Z,[F])}; g4=function(q,Z,F){this.D=Z;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=F||q(this.triggerType)}; BD9=function(q,Z){return $gG(q,Z)}; Ou=function(q,Z){return function(F){return rHK(Kz(q),Z.slotId,Z.slotType,Z.slotPhysicalPosition,Z.bL,Z.slotEntryTrigger,Z.slotFulfillmentTriggers,Z.slotExpirationTriggers,F.layoutId,F.layoutType,F.bL)}}; zGD=function(q,Z,F){var B=[];for(Z=pfG(q,Z);ZF)break}return B}; Mw=function(q,Z){gT.call(this,q,Z);this.BG=!0;this.zP=!1;this.Oc=this.WG=0;this.HG=NaN}; Y8=function(){g.J.call(this);this.K=null;this.startTime=this.duration=0;this.delay=new g.S2(this.D,null,this);g.y(this,this.delay)}; UQ=function(q){var Z=q.data.getUint32(q.offset+q.D);q.D+=4;return Z}; g.s2=function(q){return"crx_"+q}; trG=function(q,Z){Yl(24,Z.D)||(q.m6=Z,q.K=0,g.$t(q.delay))}; tI=function(q,Z){var F=q.Fg();q.expanded!==F&&(q.expanded=F,Z===void 0||Z?(q.Jn.stop(),q.eU.stop(),q.vG.stop(),q.Jn.start()):(q.S.hZ(q.expanded),g.hK(q.badge.element,"ytp-suggested-action-badge-expanded",q.expanded)),q.Ir())}; qp=function(q,Z,F,B){o0("https://"+Z+"/videoplayback?probe=1",F,function(f){!B.U("html5_onesie_host_racing")||B.videoData.isLivePlayback||B.U("html5_onesie_probe_ec_hosts")||B.Ac||B.ZO();q.G.push(f)},function(f){q.G.push(f.details)})}; fdZ=function(){if(Zr)return Zr();var q={};Zr=g.ic("LogsDatabaseV2",{KG:(q.LogsRequestsStore={mp:2},q),shared:!1,upgrade:function(Z,F,B){F(2)&&g.UF(Z,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});F(3);F(5)&&(B=B.objectStore("LogsRequestsStore"),B.D.indexNames.contains("newRequest")&&B.D.deleteIndex("newRequest"),g.ZX(B,"newRequestV2",["status","interface","timestamp"]));F(7)&&FI(Z,"sapisid");F(9)&&FI(Z,"SWHealthLog")}, version:9});return Zr()}; dP=function(q,Z){return g.jJ(function(){var F=QS(Z);return q in F})()}; Z9b=function(q){wo=q}; noX=function(q,Z,F,B,f,D,G){var n={layoutId:Z,layoutType:F,bL:"core"};return{layoutId:Z,layoutType:F,ud:new Map,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[new Q$(q.D,Z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:new zX([new pVk(B),new QA(f)]),Xe:D(n),adLayoutLoggingData:B.adLayoutLoggingData}}; bU6=function(q){q.B.cueVideoByPlayerVars({videoId:"empty_video"},2)}; Ob=function(q,Z,F,B,f,D){this.videoData=q;this.D=Z;this.reason=F;this.K=B;this.token=f;this.videoId=D}; NYB=function(q){S7(q,"impression")&&q.PH("clickthrough")}; klZ=function(){this.K=[];this.D=[]}; H1G=function(){var q=goD();if(q!=null&&q.effectiveType)return Srb.hasOwnProperty(q.effectiveType)?Srb[q.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"}; BG=function(q,Z){if(!q.K){if(q.S)try{return q.S(Z)}catch(D){g.bh(D)}return""}try{q.Yk.KE(q.D?"pot_cms":"pot_csms");var F={jL:!0,tO:!0,oG:Z};q.U("html5_web_po_token_disable_caching")||(F.AY={Pd:Z,d5:!0,Sz:!0});var B=q.K.Tk(F);q.Yk.KE(q.D?"pot_cmf":"pot_csmf");if(q.D){var f;(f=q.G)==null||f.resolve();q.G=null;q.j&&(q.j=!1,q.api.app.Vs().Xf(!1))}return B}catch(D){return g.bh(D),""}}; lpB=function(q){function Z(F){return{toString:function(){return F()}}} q.macros.SURVEY_LOCAL_TIME_EPOCH_S=Z(function(){var F=new Date;return(Math.round(F.valueOf()/1E3)+-1*F.getTimezoneOffset()*60).toString()}); q.macros.SURVEY_ELAPSED_MS=Z(function(){return(Date.now()-q.S).toString()})}; b9=function(q,Z){g.Hh(Z,function(F,B){B=="style"?q.style.cssText=F:B=="class"?q.className=F:B=="for"?q.htmlFor=F:Ue9.hasOwnProperty(B)?q.setAttribute(Ue9[B],F):KZ(B,"aria-")||KZ(B,"data-")?q.setAttribute(B,F):q[B]=F})}; SZ=function(q,Z){for(var F={},B=g.E(Object.keys(um7)),f=B.next();!f.done;f=B.next()){f=f.value;var D=Z?Z+f:f;D=q[D+"_webp"]||q[D];g.ys(D)&&(F[um7[f]]=D)}return F}; fY=function(q){this.Ec=rE(q)}; Dr=function(q,Z,F,B){q.yO.KD(O99(B),Z,F,void 0);q=g.E(q.K);for(var f=q.next();!f.done;f=q.next())f.value.ZJ(Z,F,B)}; KIg=function(q){q.api.onAdUxClicked("ad-info-icon-button",q.layoutId)}; P7K=function(q){q.D&&(q.D.D=[]);g.Hh(q.K,function(Z){Z.D=[]}); g.Hh(q.S,function(Z){Z.D=[]})}; rLK=function(q,Z){if(dJ){var F=0;q=q.He.get(Z);if(q==null||!q.I6)return 0;q=g.E(q.I6.values());for(Z=q.next();!Z.done;Z=q.next())F+=Z.value.data.totalLength;return F}return((F=q.He.get(Z))==null?void 0:F.eB.totalLength)||0}; yG=function(q,Z,F){W7(q,F[Z*2],F[Z*2+1])}; fx=function(q){g.vT.call(this,g.MH({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var Z=this;this.B=q;this.K=this.D=!1;this.Pg=q.HH();q.createServerVe(this.element,this,!0);this.N(this.B,"settingsMenuVisibilityChanged",function(F){Z.DJ(F)}); this.N(this.B,"videodatachange",this.G);this.listen("click",this.onClick);this.G()}; Ax6=function(q,Z,F,B,f,D,G,n,b,N,S,l){if((l==null?void 0:l.rS)===void 0||(l==null?void 0:l.Zd)===void 0)return new K("Cached ad break range from cue point is missing");var U=X3(F,f,B.x6);if(U instanceof K)return U;U={layoutExitMuteTriggers:[],layoutExitNormalTriggers:U.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.C(F.renderingContent,hB))return q=XW9(q,Z,F,U,f,D,n,b,B.x6,G,l.rS,l.Zd),q instanceof K?q:q.xa===void 0? new K("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:q.layout,Xo:[q.xa]};var u=g.C(F.renderingContent,EE);if(u){if(!Vt(F.adLayoutMetadata))return new K("Invalid ad layout metadata");if(!Ki(u))return new K("Invalid sequential layout");u=u.sequentialLayouts.map(function(P){return P.playerBytesAdLayoutRenderer}); q=wNB(q,Z,F,U,u,f,B,D,G,b,n,N,l.rS,l.Zd,S);return q instanceof K?q:{layout:q.wv,Xo:q.Xo}}return new K("Not able to convert a sequential layout")}; f78=function(q){for(var Z=g.E(WFb),F=Z.next();!F.done;F=Z.next())q=Ge(q,F.value);return"ST-"+C9(q).toString(36)}; G7=function(q,Z){q=q.element.element;Z?q.setAttribute("aria-hidden","true"):q.removeAttribute("aria-hidden")}; g.Av=function(q,Z,F,B,f){function D(){} f=f===void 0?{nK:{identity:px}}:f;var G=G===void 0?!0:G;D=KHb(OY9(F));Z.context||(Z.context=g.CN(B,G));return new g.at(function(n){var b,N,S,l,U;return g.h(function(u){if(u.D==1)return b=wO(F),N=iw(b)?"same-origin":"cors",q.D.mP?(S=yLg(q,f,N),u.An(2)):g.R(u,gfD(q,f,N),3);u.D!=2&&(S=u.K);l=LFy(wO(F));U={input:l,DU:kz(l),Kv:Z,config:f};n(Psk(q,U,S,D));g.C7(u)})})}; Qa8=function(q){var Z=q.index+1;return Z>=q.length?0:Z}; HUK=function(q,Z){Z=Z===void 0?"":Z;var F=$R(Z)||void 0;if(!Z||!F){var B;q.S$({adcfg:(B=Z)==null?void 0:B.length,dcfg:F==null?void 0:F.length})}return F}; Lxy=function(q,Z){this.videoData=q;this.D=Z}; z7=function(q){return q&&OUD?bw(q)||document:document}; DK=function(q){return q.mimeType==="application/x-mpegURL"}; KC=function(q){var Z,F,B,f;g.h(function(D){if(!q.U("html5_generate_session_po_token")||q.useLivingRoomPoToken)return D.return();Z=q.api.C();F=g.oa("EOM_VISITOR_DATA")||g.oa("VISITOR_DATA");B=Z.sX?Z.datasyncId:F;f=LX(Z.experiments,"html5_mock_content_binding_for_session_token")||Z.livingRoomPoTokenId||B;Z.oa=BG(q,f);g.C7(D)})}; g.lv=function(q){q=aID(q);return FK(q)}; QNG=function(){var q=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];YP().forEach(function(Z){q.push(Z)}); return{m0:q,FN:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; nY=function(q,Z,F,B){km.call(this,q,{Y:"span",W:"ytp-ad-pod-index"},"ad-pod-index",Z,F,B);this.api.C().K&&(this.element.classList.add("ytp-ad-pod-index--mweb"),R_&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; xeX=function(q){q.updateValue("clipicon",{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},T:[{Y:"path",L:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); q.RR&&!q.K?q.updateValue("watchfullvideo","Mirar la transmisi\u00f3n en vivo"):q.updateValue("watchfullvideo","Mirar video completo");g.hK(q.element,"ytp-clip",iL(q));g.hK(q.element,"ytp-live",nR(q))}; P6b=function(q){ALG=q}; WvX=function(q,Z){var F=new g.e_(0,0),B=a$(bw(q));if(!AY8(B,"parent"))return F;do{var f=B==Z?g.yk(q):H3G(q);F.x+=f.x;F.y+=f.y}while(B&&B!=Z&&B!=B.parent&&(q=B.frameElement)&&(B=B.parent));return F}; XNK=function(q,Z){var F=WI(Z,"id");F=F.replace(":",";");var B=WI(Z,"mimeType"),f=WI(Z,"codecs");B=f?B+'; codecs="'+f+'"':B;f=Number(WI(Z,"bandwidth"))/8;var D=Number(bH(Z,"BaseURL").getAttribute(q.j+":contentLength")),G=q.duration&&D?D/q.duration:0;if(Is(B)){var n=Number(WI(Z,"width"));var b=Number(WI(Z,"height")),N=Number(WI(Z,"frameRate")),S=nI6(WI(Z,q.j+":projectionType"));a:switch(WI(Z,q.j+":stereoLayout")){case "layout_left_right":var l=1;break a;case "layout_top_bottom":l=2;break a;default:l= 0}n=new C1(n,b,N,S,l)}if(Yd(B)){var U=Number(WI(Z,"audioSamplingRate"));var u=Number(WI(Z.getElementsByTagName("AudioChannelConfiguration")[0],"value"));b=TOK(WI(Z,q.j+":spatialAudioType"));U=new tE(U,u,b);a:{u=WI(Z,"lang")||"und";if(b=bH(Z,"Role"))if(S=WI(b,"value")||"",g.w8(vo9,S)){b=u+"."+vo9[S];N=S==="main";q=WI(Z,q.j+":langName")||u+" - "+S;u=new g.w4(q,b,N);break a}u=void 0}}if(Z=bH(Z,"ContentProtection"))if(Z.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var P={};for(Z= Z.firstChild;Z!=null;Z=Z.nextSibling)Z instanceof Element&&/SystemURL/.test(Z.nodeName)&&(q=Z.getAttribute("type"),b=Z.textContent,q&&b&&(P[q]=b.trim()))}else P=void 0;return new p1(F,B,{audio:U,video:n,fB:u,Ni:P,Ml:f,Rp:G,contentLength:D})}; CLy=function(q){this.value=q}; ySD=function(q,Z){for(var F=g.E(Object.keys(q)),B=F.next();!B.done;B=F.next()){B=B.value;var f=q[B][0];if(!f.width&&f.Ni===Z.Ni&&!f.audioChannels)return B}return""}; g.eS=function(q,Z){for(var F in q)if(!(F in Z)||q[F]!==Z[F])return!1;for(var B in Z)if(!(B in q))return!1;return!0}; QtZ=function(q,Z,F){var B;return(B=q.D)==null?void 0:wD(B,function(){return B6(q,Z)},F,function(f){var D; if(q.D instanceof vr&&((D=Z.AY)==null?0:D.Sz))try{var G;(G=q.cache)==null||bi6(G,B6(q,Z),f,Z.AY.Pd,q.j-120)}catch(n){q.reportError(new m0(24,"ELX:write",n))}})}; Eoy=function(q){if(!fa(q,440786851,!0))return null;var Z=q.pos;$d(q,!1);var F=$d(q,!0)+q.pos-Z;q.pos=Z+F;if(!fa(q,408125543,!1))return null;$d(q,!0);if(!fa(q,357149030,!0))return null;var B=q.pos;$d(q,!1);var f=$d(q,!0)+q.pos-B;q.pos=B+f;if(!fa(q,374648427,!0))return null;var D=q.pos;$d(q,!1);var G=$d(q,!0)+q.pos-D,n=new Uint8Array(F+12+f+G),b=new DataView(n.buffer);n.set(new Uint8Array(q.D.buffer,q.D.byteOffset+Z,F));b.setUint32(F,408125543);b.setUint32(F+4,33554431);b.setUint32(F+8,4294967295); n.set(new Uint8Array(q.D.buffer,q.D.byteOffset+B,f),F+12);n.set(new Uint8Array(q.D.buffer,q.D.byteOffset+D,G),F+12+f);return n}; Ao=function(q,Z,F,B){this.initRange=F;this.indexRange=B;this.D=null;this.S=!1;this.j=0;this.G=this.Q3=this.K=null;this.info=Z;this.m6=new M5y(q)}; CR=function(){Rc.apply(this,arguments)}; KFX=function(q){var Z=new Set,F=new Map,B={};q=g.E(q);for(var f=q.next();!f.done;f=q.next()){f=f.value;var D=f.quality,G=f.isPlayable,n=f.qualityLabel;n&&D&&(G&&F.has(D)&&F.get(D)!==n?Z.add(D):G&&F.set(D,n),B[n]||(B[n]=f))}F=[];B=g.E(Object.values(B));for(q=B.next();!q.done;q=B.next())f=q.value,(q=f.quality)&&!Z.has(q)&&(f.formatId=void 0),F.push(f);return F}; $e6=function(q,Z){g.vT.call(this,g.MH({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.B=q;this.Pg=Z;this.N(this.element,"click",this.onClick);this.Pg.Mr(this)}; kI7=function(q){this.Ec=rE(q)}; Vgy=function(q){var Z=Math,F=Z.round,B=Math.min((0,g.Le)()-q.S,q.K);Z=F.call(Z,(q.K-B)/1E3);q.updateValue("duration",B3({seconds:Z}));Z<=0&&q.D?q.stopTimer():q.D&&q.D.start()}; vt=function(){g.w.call(this,{Y:"div",W:"ytp-timed-marker"});this.D=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; FRy=function(q,Z){if(q.removed)q=!0;else{Z=new Np(Z,this);var F=q.listener,B=q.handler||q.src;q.U_&&$S(q);q=F.call(B,Z)}return q}; kF=function(q,Z){Z=Z===void 0?"0":Z;g.J.call(this);this.logSource=q;this.sessionIndex=Z;this.wr="https://play.google.com/log?format=json&hasfast=true";this.K=null;this.G=!1;this.network=null;this.componentId="";this.D=this.SK=null;this.S=!1;this.pageId=null}; tBX=function(q){fX.call(this,q);var Z=this;hC(this.api,"getAudioTrackState",function(){return Z.api.Us(0)})}; ap8=function(q){this.D=q}; oP9=function(q){return q in me6?me6[q]:me6[q]="on"+q}; kR=function(q,Z){if(!Z)return q;var F=q.indexOf("#");F<0&&(F=q.length);var B=q.indexOf("?");if(B<0||B>F){B=F;var f=""}else f=q.substring(B+1,F);q=[q.slice(0,B),f,q.slice(F)];F=q[1];q[1]=Z?F?F+"&"+Z:Z:F;return q[0]+(q[1]?"?"+q[1]:"")+q[2]}; K8K=function(q){if(!q.j){if(g.Wv(q.info.D.info)){var Z=g.Xd(q);var F=ZA(Z,0,1836019574);if(F){F=F.offset+F.size;var B=new Uint8Array(F);B.set(new Uint8Array(Z.buffer,Z.byteOffset,F));Z=B}else Z=null}else Z=Eoy(new EW(g.Xd(q)));Z&&(q.info.D.D=Z,q.j=!0)}}; Aub=function(q){switch(q){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; YmG=function(q,Z,F,B){F.TP.push.apply(F.TP,g.YB(B));if(dJ){F.yK.has(Z)||F.yK.set(Z,[]);var f;(f=F.yK.get(Z)).push.apply(f,g.YB(B))}else if(F.pm)for(q=g.E(B),Z=q.next();!Z.done;Z=q.next())F.pm.TP.push(Z.value);else{F.pm=new gx(q.ME,[].concat(g.YB(F.TP)));var D;((D=q.ME)==null?0:D.uu)&&g.y(q,F.pm)}}; mW=function(){if(iU7===null){iU7=new km9;ug(Ma).K="b";var q=ug(Ma),Z=OW(q)=="h"||OW(q)=="b",F=!(PT(),!1);Z&&F&&(q.Z=!0,q.j=new UPD)}return iU7}; sND=function(q,Z){o0(Z,"cms",function(F){q.policy.S&&q.iL("pathprobe",F)},function(F){q.Mp.handleError(F)})}; DrD=function(q){q.S.read().then(q.V,q.onError).then(void 0,V3)}; l7X=function(q,Z,F){F=F===void 0?1:F;var B=Z.itag;if(B==="0")return!0;var f=Z.mimeType;if(Z.FE==="1e"&&!q.Z)return"dav1enc";if(g8(Z)&&q.Dl)return"dav1";if(Z.video&&(Z.video.isHdr()||Z.video.primaries==="bt2020")&&!(Sc(q,lj.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(B==="338"&&!(g.l2?lY(53):g.Y2&&lY(64)))return"dopus";var D=F;D=D===void 0?1: D;F={};Z.video&&(Z.video.width&&(F[lj.WIDTH.name]=Z.video.width),Z.video.height&&(F[lj.HEIGHT.name]=Z.video.height),Z.video.fps&&(F[lj.FRAMERATE.name]=Z.video.fps*D),Z.video.D&&(F[lj.EOTF.name]=Z.video.D),Z.Ml&&(F[lj.BITRATE.name]=Z.Ml*8*D),Z.FE==="("&&(F[lj.CRYPTOBLOCKFORMAT.name]="subsample"),Z.video.projectionType==="EQUIRECTANGULAR"||Z.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Z.video.projectionType==="MESH")&&(F[lj.DECODETOTEXTURE.name]="true");var G;((G=Z.audio)==null?0:G.numChannels)&& Z.FE!=="i"&&Z.FE!=="I"&&(F[lj.CHANNELS.name]=Z.audio.numChannels);q.S&&Tf(Z)&&(F[lj.EXPERIMENTAL.name]="allowed");G=g.E(Object.keys(lj));for(D=G.next();!D.done;D=G.next()){D=lj[D.value];var n;if(n=F[D.name])if(n=!(D===lj.EOTF&&Z.mimeType.indexOf("vp09.02")>0)){n=D;var b=Z;n=!(q.experiments.qp("html5_ignore_h264_framerate_cap")&&n===lj.FRAMERATE&&J$6(b))}if(n)if(Sc(q,D))if(q.j){if(q.j[D.name]1080&&Z.Ni&&(f+="; hdcp=2.2");return B==="227"?"hqcenc":B!=="585"&&B!=="588"&&B!=="583"&&B!=="586"&&B!=="584"&&B!=="587"&&B!=="591"&&B!=="592"||q.experiments.qp("html5_enable_new_hvc_enc")?Ip()&&p3()>=21&&g.Vd("appletv5")&&(B==="410"||B==="845")?!0:q.isTypeSupported(f)?!0:"tpus":"newhvc"}; Pw=function(q,Z,F,B,f){Lc.call(this,q,Z,F,B,"survey-question-single-select",function(G){D.api.C().U("supports_multi_step_on_desktop")&&f([G])}); var D=this;this.hide()}; MHD=function(q,Z,F,B,f,D){B=B===void 0?{}:B;var G=Math.round((0,g.Le)()),n={value:q.size},b=new Map([].concat(g.YB(q)));b=g.E(b);for(var N=b.next();!N.done;N=b.next()){var S=g.E(N.value).next().value,l=q.get(S);N=new Wsb;var U=Z.config_||g.CB(),u=new Cc,P=new yN;QO(P,1,U.oE);QO(P,2,U.gT);RL(P,16,U.kT);QO(P,17,U.innertubeContextClientVersion);if(U.G1){var W=U.G1,H=new yc;W.coldConfigData&&QO(H,1,W.coldConfigData);W.appInstallData&&QO(H,6,W.appInstallData);W.coldHashData&&QO(H,3,W.coldHashData);W.hotHashData&& H.fG(W.hotHashData);Ya(P,yc,62,H)}(W=g.W5.devicePixelRatio)&&W!=1&&Rh(P,65,GM(W));W=g5();W!==""&&QO(P,54,W);W=SN();if(W.length>0){H=new jN9;for(var X=0;X=0;)q[Z]=0}; JLK=function(q){var Z=q.Dl.map(yl);q.K&&Z.push(q.K);q.Qk(Z);q.D=null;q.Z=null;Z=q.B.getPlaybackRate();wP(q.B)&&Ek7(q,Z);!q.Dl.includes(Z)||q.G?q.SN(q.D):q.SN(yl(Z))}; Tz=function(q){this.B=q}; g.YrX=function(q){var Z,F;return g.h(function(B){if(B.D==1)return g.R(B,g.$M(),2);if(B.D!=3){Z=B.K;if(!Z)throw g.mJ("ri");return g.R(B,g.ms(Z),3)}F=B.K;return B.return(g.e4(F,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(f){var D=IDBKeyRange.bound(q+"|",q+"~");return f.objectStore("index").getAll(D).then(function(G){return G.map(function(n){return n?n.format:{}})})}))})}; tbD=function(q){return{UE:Ta(q,1),Jc:Ta(q,2),minReadaheadMs:Ta(q,3)}}; UQy=function(q,Z){var F=q[Z];if(F)return F;if(F=q.extensions)if(F=F[Z]){F=K16(F);var B=F[0].oX;if(F=F[1]){var f=l3B(F),D=rS(mV,iK,kH,F).FM;F=q.dO?cRZ(D,f):function(G,n,b){return B(G,n,b,D,f)}}else F=B; return q[Z]=F}}; FgZ=function(q){var Z=q.B.getVideoData(),F=q.j&&!Z.isInlinePlaybackNoAd;q.B.U("html5_defer_modules_on_ads_only")&&!Z.isAd()&&(F=!1);return F}; x49=function(q,Z,F,B){B=B===void 0?{}:B;var f=void 0;B.layer||(B.layer=0);f=B.parentLayer!==void 0?B.parentLayer:B.layer;var D=g.qx(f);f=g.q4(f);var G=F||f,n;G&&(B.parentCsn!==void 0?n={clientScreenNonce:B.parentCsn,visualElement:G}:D&&D!=="UNDEFINED_CSN"&&(n={clientScreenNonce:D,visualElement:G}));var b,N=g.oa("EVENT_ID");D==="UNDEFINED_CSN"&&N&&(b={servletData:{serializedServletEventId:N}});g.cz("combine_ve_grafts")&&D&&GY(q,D);g.cz("no_client_ve_attach_unless_shown")&&G&&D&&fh(G,D);try{var S=pN7(q.client, Z,n,B.Z5,B.cttAuthInfo,b,B.implicitGestureType,B.loggingExpectations)}catch(u){de8(u,{m4:Z,rootVe:f,byG:F,SAl:D,hDl:n,Z5:B.Z5});g.mM(u);return}KlK(S,Z,B.layer,B.cttAuthInfo);D&&D!=="UNDEFINED_CSN"&&f&&!VbD(D)&&XCb(q.client,D,f,!0);q.D[q.D.length-1]&&!q.D[q.D.length-1].csn&&(q.D[q.D.length-1].csn=S||"");g.ZR({clientScreenNonce:S});U1.instance||(U1.instance=new U1);g.jJ(uC().D).bind(uC())();var l=g.q4(B.layer);D&&D!=="UNDEFINED_CSN"&&l&&(g.cz("web_mark_root_visible")||g.cz("music_web_mark_root_visible"))&& g.Bt(S,l);q.K.delete(B.layer||0);q.G=void 0;var U;(U=q.zP.get(B.layer))==null||U.forEach(function(u,P){u?Zt(q,P,u,B.layer):l&&Zt(q,P,l,B.layer)}); l6G(q)}; eG8=function(q){var Z=q.B.Ca().getPlayerSize().width;return Math.max(Z-d0Z(q)*2,100)}; TYK=function(){var q=hg();if(q){var Z=q.isTypeSupported;return function(B,f){return Z(f,B)}}var F=lG(); return F&&(F.addKey||F.webkitAddKey)?function(B,f){return!!F.canPlayType(B,f)}:function(){return!1}}; K6D=function(q,Z){var F=0;q=g.E(q.K);for(var B=q.next();!B.done;B=q.next()){B=B.value;var f=B.Rc/1E3+F,D=f+B.durationMs/1E3;if(f>Z)break;if(D>Z)return{yQ:B,KL:Z-f};F=D-B.Ya/1E3}return{yQ:null,KL:Z-F}}; uH=function(q,Z){if((q=q.D.get(Z))==null)q=void 0;else{q=q.buffer;for(Z=[];q.K!==q.D;)q.K=(q.K+1)%q.data.length,Z.push(q.data[q.K]);q=Z}return q||[]}; X1y=function(q,Z){for(var F=[],B=g.E(q.K),f=B.next();!f.done;f=B.next())f=f.value,Z(f)||F.push(f);if(q.J.U("html5_sstm_fixes"))for(B=g.E(q.K),f=B.next();!f.done;f=B.next())f=f.value,Z(f)&&(q.S.delete(f.cpn),f.fp&&q.G.delete(f.fp));q.K=F}; JW=function(q){return q.adFormat&&(q.Hg?q.adFormat!=="1_5":q.adFormat!="1_5")?"adunit":q.eventLabel||q.Qs.k$}; g.o_D=function(q,Z){if(q.D!=null&&g.Mb6(Z,q.D)&&q.D.D.rawcc!=null)return!0;if(!q.d2())return!1;Z=!!q.D&&q.D.isManifestless&&Object.values(q.D.D).some(function(F){return g.Sd(F,"386")}); q=!!q.D&&!q.D.isManifestless&&g.ma6(q.D);return Z||q}; P3=function(){if(!g.W5.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.W5.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.W5.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.W5.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.W5.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(q){return"WEB_DISPLAY_MODE_UNKNOWN"}}; wGg=function(q){return g.DC(q,function(Z,F,B){return F>0?B[F]-B[F-1]:B[F]})}; vaB=function(){this.K=this.D=NaN}; zv=function(q){this.Ec=rE(q)}; tN9=function(q,Z){var F=window;q=q===void 0?!1:q;Z=Z===void 0?!0:Z;g.h4(F.document,"keydown",LG);g.h4(F.document,"keyup",LG);g.h4(F.document,"mousedown",LG);g.h4(F.document,"mouseup",LG);q?g.h4(F,"touchmove",function(){Ov("touchmove",200)},{passive:!0}):(g.h4(F,"resize",function(){Ov("resize",200)}),Z&&g.h4(F,"scroll",function(){Ov("scroll",200)})); g.h4(F.document,"touchstart",LG,{passive:!0});g.h4(F.document,"touchend",LG,{passive:!0})}; qCX=function(q,Z,F){if(q.logger){for(var B=[],f=0;f>6|192;else{if(D>=55296&&D<=57343){if(D<=56319&&f=56320&&G<=57343){D=(D-55296)*1024+ G-56320+65536;B[F++]=D>>18|240;B[F++]=D>>12&63|128;B[F++]=D>>6&63|128;B[F++]=D&63|128;continue}else f--}if(Z)throw Error("Found an unpaired surrogate");D=65533}B[F++]=D>>12|224;B[F++]=D>>6&63|128}B[F++]=D&63|128}}q=F===B.length?B:B.subarray(0,F)}return q}; DZG=function(q,Z,F){if(q.tV()===q.M8.length-1){var B,f;Yp("Unexpected skip requested during the last sublayout",(B=q.vL())==null?void 0:B.bd(),(f=q.vL())==null?void 0:f.hn(),{requestingSlot:Z,requestingLayout:F})}}; G3G=function(q,Z){var F=q[Z];F!==void 0&&F>0&&(q[Z]=Math.floor(F*1E3))}; NR=function(q){g.In.call(this);this.D=null;this.S=new PdD;this.D=null;this.j=new Set;this.crossOrigin=q||""}; PG=function(q){return D8B[q.D||q.K]||"auto"}; CGZ=function(q,Z,F){var B=g.CF.apply(3,arguments),f=q===6?"ERROR":"WARNING",D="b"+F;g.mM(new (Function.prototype.bind.apply(g.M2,[null,D].concat(g.YB(B)))),f);B.unshift(D);B=B.join(", ");f=zCK.get(Z);if(!f){f="ytplog."+Z;D=5;try{window.localStorage&&!isNaN(+window.localStorage[f])&&(D=+window.localStorage[f]),window.sessionStorage&&!isNaN(+window.sessionStorage[f])&&(D=+window.sessionStorage[f])}catch(b){}zCK.set(Z,D);f=D}if(!(q0&&(f.D=Math.min(f.D+G,10),f.K=D);f.D>0?(f.D--,f=!0):f=!1;if(f)typeof B==="function"&&(B=B()),console.log("plyr."+Z,B);else{var n;B=((n=b2K.get(Z))!=null?n:0)+1;b2K.set(Z,B);B%100===1&&console.warn("plyr","plyr."+Z+" is chatty, dropping logs.")}}}; g.EyB=function(q){if(q.data.getUint8(q.dataOffset)){var Z=q.data;q=q.dataOffset+4;Z=Z.getUint32(q)*4294967296+Z.getUint32(q+4)}else Z=q.data.getUint32(q.dataOffset+4);return Z}; g.rx=function(q){if(!(q.D.length<=1)){var Z=q.D.pop(),F=q.D[0];q.D=[F];RU(q,Z,F,!0)}}; $kZ=function(q){this.Mp=q;this.D=new Map}; l_D=function(q,Z,F){g.o3.call(this,q);var B=this;this.Pg=Z;this.gh=F;this.getVideoUrl=new Dl(6);this.lc=new Dl(5);this.tS=new Dl(4);this.Ey=new Dl(3);this.Dg=new g.vT(g.MH({href:"{{href}}",target:this.B.C().PG},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.vT(g.MH(),1,"Estad\u00edsticas");this.l$=new g.xT({Y:"div",rU:["ytp-copytext","ytp-no-contextmenu"],L:{draggable:"false",tabindex:"1"},Ka:"{{text}}"});this.m$=new rm(this.B,this.l$);this.KS=this.MY=null;g.FQ(this.B.C())&& (this.closeButton=new g.w({Y:"button",rU:["ytp-collapse","ytp-button"],L:{title:"Cerrar"},T:[g.rnK()]}),g.y(this,this.closeButton),this.closeButton.R_(this.element),this.closeButton.listen("click",this.n6,this));g.FQ(this.B.C())&&(this.IW=new g.vT(g.MH(),8,"Cuenta"),g.y(this,this.IW),this.Mr(this.IW,!0),this.IW.listen("click",this.ata,this),q.createClientVe(this.IW.element,this.IW,137682));this.B.C().zY&&(this.fR=new w1("En bucle",7),g.y(this,this.fR),this.Mr(this.fR,!0),this.fR.listen("click",this.u3L, this),q.createClientVe(this.fR.element,this.fR,28661));this.B.U("web_player_miniplayer_in_context_menu")&&(this.Pz=new g.vT(g.MH(),6,"Reproductor en miniatura"),g.y(this,this.Pz),this.Mr(this.Pz,!0),this.Pz.listen("click",this.c0P,this),q.createClientVe(this.Pz.element,this.Pz,62946));g.y(this,this.getVideoUrl);this.Mr(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.shG,this);q.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.y(this,this.lc);this.Mr(this.lc,!0);this.lc.listen("click", this.vkc,this);q.createClientVe(this.lc.element,this.lc,28660);g.y(this,this.tS);this.Mr(this.tS,!0);this.tS.listen("click",this.Eka,this);q.createClientVe(this.tS.element,this.tS,28658);g.y(this,this.Ey);this.Mr(this.Ey,!0);this.Ey.listen("click",this.T2U,this);g.y(this,this.Dg);this.Mr(this.Dg,!0);this.Dg.listen("click",this.wZ_,this);g.y(this,this.showVideoInfo);this.Mr(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.Itp,this);g.y(this,this.l$);this.l$.listen("click",this.OBF,this); g.y(this,this.m$);N2b()&&(this.MY=new g.w({Y:"textarea",W:"ytp-html5-clipboard",L:{readonly:"",tabindex:"-1"}}),g.y(this,this.MY),this.MY.R_(this.element));var f;(f=this.IW)==null||f.setIcon(g_D());var D;(D=this.fR)==null||D.setIcon(ew7());var G;(G=this.Pz)==null||G.setIcon(this.B.U("delhi_modern_web_player_icons")?LXX():xEK());this.Ey.setIcon({Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{"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.Dg.setIcon(uj8());this.showVideoInfo.setIcon(fLk());this.N(q,"onLoopChange",this.onLoopChange);this.N(q,"videodatachange",this.onVideoDataChange);this.N(q,"fullscreentoggled",function(){sCD(B)}); IPB(this);SC6(this,this.B.getVideoData())}; C$=function(q,Z){return g.DC(Z,q.K).join(",")}; UZG=function(q){qfb(q)&&q.oF();FgZ(q)&&(Pb(q,"captions",!0),Pb(q,"endscreen"),q.VG(),Pb(q,"creatorendscreen",!0))}; g.UdG=function(q){var Z=ZA(q,0,1701671783);if(!Z)return null;var F=uPX(Z),B=F.ZmE;F=mO(F.R3);if(q=ZA(q,Z.offset+Z.size,1701671783))if(q=uPX(q),q=mO(q.R3),F&&q){Z=g.E(Object.keys(q));for(var f=Z.next();!f.done;f=Z.next())f=f.value,F[f]=q[f]}return F?new iS(F,B):null}; Qfg=function(q){if(q.playlist&&g.H_(q.J)&&q.Nq()){var Z=q.J.U("html5_player_autonav_logging");q.nextVideo(!1,Z);return!0}return!1}; PT8=function(q){var Z,F;g.h(function(B){if(B.D==1){var f;if(f=g.TP()){var D;f=!((D=q.G.K)==null||!D.getMetrics)}return f?g.R(B,q.G.getMetrics(),2):B.return()}Z=B.K;if(!Z)return B.return();UM(Z)||(Z=g.SY(Z));F=/^[A-Za-z0-9_-]+={0,3}$/;F.test(Z)||(Z=g.oX(Z,void 0,!0));q.publish("ctmp","drm",{metrics:Z});g.C7(B)})}; Vk=function(q){var Z=q.Dv();if(g.p(Z.getPlayerState(),128))return!1;Z=Z.getVideoData();D2(q)&&q.J.zH&&(Qy.length&&q.D7?(Ui(q,{muted:!1,volume:q.TA.volume},!1),IU(q,!1)):Qy.length||q.TA.muted||(Ui(q,{muted:!0,volume:q.TA.volume},!1),IU(q,!0)));D2(q)&&g.FQ(q.J)&&Z.mutedAutoplay&&(Ui(q,{muted:!0,volume:q.TA.volume},!1),IU(q,!0));Z.CS&&Ui(q,{muted:!0,volume:q.TA.volume},!1);m3(q,1,Z,!1);var F=q.Dv();q.lL.publish("initializingmode");q.l5(F);q.H5(3);var B;if(!(B=!q.J.Kk)){if(B=q.HZ){B=q.HZ;var f=q.mediaElement; B=!!f&&f===B.mediaElement}B=B&&q.Al}B&&(q.OT(),dg(q),F.setMediaElement(q.mediaElement));F.M$();if(g.p(F.getPlayerState(),128))return!1;Z.nz||Rb(q,3);return q.Al=!0}; wx=function(q,Z){this.D=q;this.K=Z}; rrD=function(){return VV()?TX.platform==="macOS":lm("Macintosh")}; KpK=function(q){return-((q.Z.offsetWidth||(q.frameCount-1)*q.j*q.scale)-q.D/2)}; g.Bt=function(q,Z,F,B){g.jJ(MEK)(void 0,q,Z,F,B,void 0)}; l3=function(q,Z,F,B,f,D,G,n){G=G===void 0?!0:G;lZ(F)&&bO(f,0,null)&&(!S7(q,"impression")&&n&&n(),q.xk("impression"));S7(q,"impression")&&(g.YM(F,4)&&!g.YM(F,2)&&q.PH("pause"),dL(F,4)<0&&!(dL(F,2)<0)&&q.PH("resume"),g.YM(F,16)&&f>=.5&&q.PH("seek"),G&&g.YM(F,2)&&i6(q,F.state,Z,B,f,D))}; Twy=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(q){return 0}}; wJ8=function(){}; Wfb=function(q,Z,F){Z.N(F,"keyboardserviceglobalkeydown",function(B,f){q.S&&B.keyCode===86&&!B.repeat&&q.K!==0&&(f&&(f.QI=!0),q.uL("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); Z.N(q.api.getRootNode(),"wheel",function(B){if(!q.PG){var f;if(q.S&&(f=q.Z)!=null&&f.element&&!g.p(q.api.getPlayerStateObject(),2)&&q.K!==0&&WG(q))if(g.e$(q.api.getRootNode(),"ytp-grid-scrolling"),q.G===0&&(q.G=window.innerHeight),q.K===1)q.G!==0&&(q.D+=B.deltaY/q.G,q.D=g.JY(q.D,0,.7),OZ(q),Gv6(q,q.X/q.G+q.D>=.7,2));else if(q.K===2){f=B.deltaY<0;var D,G,n=((G=(D=q.Z)==null?void 0:D.D)==null?void 0:G.scrollTop)===0;D=q.D!==0;f&&n||D&&!f?q.G!==0&&(q.D=Math.max(0,q.D-B.deltaY/q.G),OZ(q),Gv6(q,q.X/q.G+ Math.abs(q.D)>=.7,1)):q.D!==0&&(q.D=0,OZ(q))}}},q,!0); Z.N(F,"standardControlsInitialized",function(){if(!q.Z){q.Z=new L6(q.api,q.WG.bind(q));q.k$&&(q.Dl=new GB(q.api),g.y(q,q.Dl),q.Dl.element.setAttribute("data-overlay-order","12"),q.api.hW(q.Dl.element,4),q.Dl.listen("click",q.uL,q));g.y(q,q.Z);var B=q.api.getRootNode().querySelector(".ytp-chrome-bottom");B&&B.parentNode&&B.parentNode.insertBefore(q.Z.element,B.nextSibling);v3K(q)}}); Z.N(F,"presentingplayerstatechange",function(){y_(q)}); Z.N(F,"autonavvisibility",function(){y_(q)}); q.api.BH().subscribe("visibilitystatechange",function(){y_(q)}); JaK(q,q.K)}; Su=function(q,Z,F,B,f,D){g.J.call(this);var G=this;this.j=q;this.LP=Z;this.Zl=F;this.wU=B;this.gY=D;this.D=null;this.G=!1;this.Fw=!0;this.Bg=new Map;Z.get().addListener(this);this.addOnDisposeCallback(function(){Z.jU()||Z.get().removeListener(G)}); f.get().addListener(this);this.addOnDisposeCallback(function(){f.jU()||f.get().removeListener(G)})}; v9B=function(q){q=q.D;q.Sc();q.Kr();var Z=EY();Z.X=l$(!1,q.S,Z.isMobileDevice);AgG(EY(),q.S);q.G.D=q.NR()}; yrD=function(q){if(q.range)return q.S;q=q.TP[0];return Math.round(q.V*q.D.info.Ml)}; gnD=function(q){if(q.offset>=q.D.totalLength)throw Error();return nz(q.D,q.offset++)}; V28=function(q){return q.FE==="("||q.FE==="(h"||q.FE==="H"||AI&&q.FE==="1e"}; JK9=function(q){var Z,F,B,f,D,G;return g.h(function(n){switch(n.D){case 1:if(q.K)return n.return(Gh());if(!q.Z)return Z=g.mJ("getHotConfig IDB not initialized"),i2(Z),n.return(Promise.reject(Z));F=$N();B=g.oa("TIME_CREATED_MS");if(!F){f=g.mJ("getHotConfig token error");i2(f);n.An(2);break}return g.R(n,vLb(F),3);case 3:if((D=n.K)&&D.timestamp>B)return NI(q,D.config),q.fG(D.hashData),n.return(Gh());case 2:Kt8(q);if(!(F&&q.K&&q.hotHashData)){n.An(4);break}return g.R(n,gsb(q.K,q.hotHashData,F,B),4);case 4:return q.K? n.return(Gh()):(G=new g.M2("Config not available in ytConfig"),i2(G),n.return(Promise.reject(G)))}})}; A8=function(q){if(!j7(q)&&ra(q,q.Ec[Sm]|0))throw Error();}; Lf8=function(q,Z,F,B){km.call(this,q,{Y:"div",W:"ytp-ad-grid-card-text",T:[{Y:"div",W:"ytp-ad-grid-card-text__metadata",T:[{Y:"div",W:"ytp-ad-grid-card-text__metadata__headline"},{Y:"div",W:"ytp-ad-grid-card-text__metadata__description",T:[{Y:"div",W:"ytp-ad-grid-card-text__metadata__description__line"},{Y:"div",W:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{Y:"div",W:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",Z,F,B);this.headline=new Lz(this.api,this.layoutId,this.interactionLoggingClientData, this.x$);g.y(this,this.headline);this.headline.R_(this.cG("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new OQ(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,!0);g.y(this,this.moreInfoButton);this.moreInfoButton.R_(this.cG("ytp-ad-grid-card-text__button"))}; pI=function(q,Z,F,B){qn.kU(q,Z,F,B)}; B6D=function(q,Z){var F="";(Z=gt9(q,Z))&&(F=Z.getId());return F?q.D.Nr({cpn:F}):void 0}; nz=function(q,Z){q.focus(Z);return q.D[q.K][Z-q.S]}; GEB=function(q,Z,F){Z=Xn(q,Z);F||Z?Z&&(q.S=!0):q.S=!1;q.X=q.policy.S===2||q.policy.S===3&&q.S}; H2X=function(q,Z,F,B,f){for(var D=[],G=g.E(q.Bg.values()),n=G.next();!n.done;n=G.next()){var b=n=n.value,N=b.trigger;b=b.slot;if(N.triggerType===Z){if(N instanceof GS||N instanceof cb||N instanceof og){if(f&&N.breakDurationMs!==F)continue;if(!f&&N.breakDurationMs===F)continue;if(B.has(b.slotId))continue}D.push(n)}}D.length>0&&j2(q.j(),D)}; eWK=function(q){this.next=function(Z){vs(q.D);q.D.G?Z=Xq(q,q.D.G.next,Z,q.D.V):(q.D.V(Z),Z=E4(q));return Z}; this.throw=function(Z){vs(q.D);q.D.G?Z=Xq(q,q.D.G["throw"],Z,q.D.V):(zT(q.D,Z),Z=E4(q));return Z}; this.return=function(Z){return cKk(q,Z)}; this[Symbol.iterator]=function(){return this}}; JMB=function(q){g.jJ(function(){I$(q)&&n4("aa",void 0,q);oU9(q);De(q)})()}; Y9b=function(q){var Z,F=(Z=oM(q))==null?void 0:Z.info;return!F||q.Gh(Math.min(F.Z+ah,F.j))}; O27=function(q){if(q.name==="JavaException")return!0;q=q.stack;return q.includes("chrome://")||q.includes("-extension://")||q.includes("webkit-masked-url://")}; LY=function(q){q.hZ(!1);q.K&&q.B.logVisibility(q.element,q.zb)}; ow=function(q,Z,F){var B=q.D.get(Z);B?B.push(F):q.D.set(Z,[F])}; CcD=function(q,Z){return Kh(q.clientMetadata,"metadata_type_ad_info_ad_metadata")?qc(q.clientMetadata,"metadata_type_ad_info_ad_metadata"):Z?{channelId:Z.Fr,channelThumbnailUrl:Z.profilePicture,channelTitle:Z.author,videoTitle:Z.title}:(Yp("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; rhk=function(){if(YAg()&&!QIb){var q=function(F){F=F.data;if(F.op==="serializedGelBatch"){var B=SD.get(F.key);B&&(RG6(F.serializedBatch,B.client,B.resolve,B.networklessOptions,B.isIsolated,B.useVSSEndpoint,B.dangerousLogToVisitorSession,B.requestsOutstanding),SD.delete(F.key))}},Z=ul(); Z&&(Z.addEventListener("message",q),Z.onerror=function(){SD.clear()}); QIb=!0}}; W_G=function(q){var Z=g.pN(q,0,1937011556);if(!Z)return null;var F=q.getUint32(Z.dataOffset+12);if(F!==1701733217&&F!==1701733238)return null;Z=ZA(q,Z.offset+24+(F===1701733217?28:78),1936289382);if(!Z)return null;F=ZA(q,Z.offset+8,1935894637);if(!F||q.getUint32(F.offset+12)!==1667392371)return null;Z=ZA(q,Z.offset+8,1935894633);if(!Z)return null;Z=ZA(q,Z.offset+8,1952804451);if(!Z)return null;F=new Uint8Array(16);for(var B=0;B<16;B++)F[B]=q.getInt8(Z.offset+16+B);return F}; Cj=function(q){return q.U("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; ZS=function(q,Z){Z=Z===void 0?!1:Z;var F=wR(q);q=Z?0:q.info.V;return F||q}; b9B=function(q){q=q.tabIndex;return typeof q==="number"&&q>=0&&q<32768}; xP=function(q){fX.call(this,q);var Z=this;this.events=new g.pO(q);g.y(this,this.events);var F=this.api.U("html5_enable_voice_boost");F&&this.events.N(q,"settingsMenuInitialized",function(){rxB(Z)}); hC(this.api,"getVoiceBoostUserPreference",function(){return F?Z.getVoiceBoostUserPreference():0}); hC(this.api,"setVoiceBoostUserPreference",function(f){F&&Z.setVoiceBoostUserPreference(f)}); hC(this.api,"hasVoiceBoostAudioTrack",function(){return F?Z.hasVoiceBoostAudioTrack():!1}); hC(this.api,"getVoiceBoostState",function(){return F?Z.getVoiceBoostState():1}); var B;this.D=(B=ylK())!=null?B:0;this.updateEnvironmentData()}; FN=function(q,Z){g.O9("ytglobal.timing"+(Z||"")+"ready_",q)}; XKB=function(q,Z){var F=Z.onError?Z.onError:function(){}; Z.onError=function(f,D){G4().requestComplete(q,!1);F(f,D)}; var B=Z.onSuccess?Z.onSuccess:function(){}; Z.onSuccess=function(f,D){G4().requestComplete(q,!0);B(f,D)}}; aH6=function(q,Z,F,B,f,D,G){var n={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,bL:"core"};Z=X3(q,Z,F);if(Z instanceof K)return Z;F=[];F.push(new QA(Xk(D)));D==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&G!==void 0&&F.push(new yY(G));return Object.assign({},n,{renderingContent:q.renderingContent,ud:new Map([["impression",QrD(q)]])},Z,{Xe:Ou(B,f)(n),clientMetadata:new zX(F),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})}; o9=function(q,Z){q.dV&&Nx8(q);q.dV=new g.u8(Z*1E3,0x7ffffffffffff);q.dV.namespace="endcr";q.addCueRange(q.dV)}; xZ9=function(q){var Z=q.B.getVideoData();q=q.B.C();var F=g.el9(),B=q.U("enable_spherical_kabuki"),f=g.dD(q);if(g.fI(Z))return F||B||f;if(g.Ff(Z))return f||F||B;if(g.BK(Z))return f||F||!1;if(g.Z$(Z))return f||!1;F=Z.K&&Z.K.video&&Z.K.video.isHdr();return f&&!g.b2(Z)&&!F&&q.U("enable_webgl_noop")}; Bx6=function(q,Z){Z.subscribeCommand&&(q.subscribeCommand=Z.subscribeCommand);Z.unsubscribeCommand&&(q.unsubscribeCommand=Z.unsubscribeCommand);Z.addToWatchLaterCommand&&(q.addToWatchLaterCommand=Z.addToWatchLaterCommand);Z.removeFromWatchLaterCommand&&(q.removeFromWatchLaterCommand=Z.removeFromWatchLaterCommand);Z.getSharePanelCommand&&(q.getSharePanelCommand=Z.getSharePanelCommand)}; ArZ=function(q,Z){g.w.call(this,{Y:"div",W:"ytp-info-panel-preview",L:{"aria-live":"assertive","aria-atomic":"true","aria-owns":Z.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.FQ(q.C()))},T:[{Y:"div",W:"ytp-info-panel-preview-text",Ka:"{{text}}"},{Y:"div",W:"ytp-info-panel-preview-chevron",Ka:"{{chevron}}"}]});var F=this;this.B=q;this.CP=this.D=this.videoId=null;this.isDismissed=this.S=this.showControls=this.K=!1;this.N(this.element,"click",function(){q.logClick(F.element);q.jM(); l6(Z)}); this.fade=new g.L3(this,250,!1,100);g.y(this,this.fade);this.B.createServerVe(this.element,this,!0);this.N(q,"videodatachange",this.onVideoDataChange);this.N(q,"presentingplayerstatechange",this.TL);this.N(this.B,"paidcontentoverlayvisibilitychange",this.CC);this.N(this.B,"infopaneldetailvisibilitychange",this.CC);var B=q.getVideoData()||{};Vm7(B)&&Ih(this,B);this.N(q,"onShowControls",this.Fz);this.N(q,"onHideControls",this.C4);this.N(this.B,"infopaneldetaildismissed",function(){q.U("embeds_enable_info_panel_dismissal")&& (F.isDismissed=!0,F.hide())})}; v_g=function(q,Z){var F;Z===1?F=q.B.U("delhi_modern_web_player_icons")?{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:SS():F=q.K;q.zP=Z;if(q.B.U("delhi_modern_web_player_icons"))q.K.cG("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-Z+") translate(-18,-12)")),q.K.cG("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(q.X-Z+") translate(-22, -12)"));else{for(var B=20*Z,f=0;f0?(F=Math.floor(F-D.D/1E3),q.Z!==F&&q.iL("sdai",{updateSt:F,old:q.Z}),q.Z=F):q.G>0&&(F=Z+Math.max(Math.ceil(-D.D/5E3),1),q.G!==F&&(q.iL("sdai",{updateSt:F,old:q.G}),q.G=F)):q.policy.oa&&q.K===3&&SQk(q,Z,F,B,f)}else q.iL("sdai",{nulldec:1,sq:Z,mt:F.toFixed(3),evt:(B==null?void 0:(D=B.SC)==null?void 0:D.event)|| "none"})}; EFZ=function(q,Z,F){var B=new Promise(function(f,D){try{var G=Z(q);F&&q.commit();G.then(function(n){f(n)}).catch(D)}catch(n){D(n),q.abort()}}); return Promise.all([B,q.done]).then(function(f){return g.E(f).next().value})}; JfZ=function(q){this.value=q}; JUk=function(q){var Z=!1;Z=Z===void 0?!1:Z;aa.google_image_requests||(aa.google_image_requests=[]);var F=E_6("IMG",aa.document);Z&&(F.attributionSrc="");F.src=q;aa.google_image_requests.push(F)}; a8B=function(q,Z,F){F=F===void 0?!1:F;q.KB=bU(q.KB,Z.video_id);q.J0=bU(q.J0,Z.eventid);q.J0&&(Fe=q.J0);for(var B=[],f=g.E(Object.keys(Kfk)),D=f.next();!D.done;D=f.next()){D=Kfk[D.value];var G=Z[D];G!=null&&(G!==q.D[D]&&B.push(D),q.D[D]=G)}!F&&B.length>0&&q.JJ&&(B.sort(),g.bh(new g.M2("Player client parameters changed after startup",B)));q.userAge=Ax(q.userAge,Z.user_age);q.nE=bU(q.nE,Z.user_display_email);q.userDisplayImage=bU(q.userDisplayImage,Z.user_display_image);g.ys(q.userDisplayImage)||(q.userDisplayImage= "");q.userDisplayName=bU(q.userDisplayName,Z.user_display_name);q.GA=bU(q.GA,Z.user_gender);q.csiPageType=bU(q.csiPageType,Z.csi_page_type);q.csiServiceName=bU(q.csiServiceName,Z.csi_service_name);q.Md=eA(q.Md,Z.enablecsi);q.pageId=bU(q.pageId,Z.pageid);if(F=Z.enabled_engage_types)q.enabledEngageTypes=new Set(F.split(","));Z.living_room_session_po_token&&(q.oa=Z.living_room_session_po_token.toString())}; ig=function(q,Z,F,B){Zu.call(this,q,Z,F,B,[],"ad-mute-confirm-dialog")}; zQ=function(q,Z,F,B,f,D,G,n){g.J.call(this);this.GP=q;this.D=Z;this.K=B;this.XE=f;this.G=D;this.S=G;this.kS=n}; J1D=function(q){if(g.cz("enable_web_tiered_gel")){q=aC9[q||""];var Z,F,B,f=fg().resolve(new DG(G5))==null?void 0:(Z=Y0())==null?void 0:(F=Z.loggingHotConfig)==null?void 0:(B=F.eventLoggingConfig)==null?void 0:B.payloadPolicies;if(f)for(Z=0;Z0&&PX(Z.videoData.nH)&&(q=F.lG,Z.videoData.nH=new ob(0,q,!1,"u"));return Z.videoData.nH}; jI9=function(q,Z,F,B,f){Z=L38(Z,F,B,f);(F=g.FQ(q.J)&&!q.J.uL)&&!q.gF&&(Z.fetch=0);l_(q,Z);g.FQ(q.J)&&q.Yk.tick("ep_a_pr_s");if(F&&!q.gF)F=q.AP(),sIk(F,Z).then(function(D){q.xJ=!0;L1(q,D)}); else q.playlist.onReady(function(){yU(q)}); g.FQ(q.J)&&q.Yk.tick("ep_a_pr_r")}; fw=function(q){fX.call(this,q);var Z=this;jZ(this.api,"getSphericalProperties",function(){return Z.getSphericalProperties()}); jZ(this.api,"setSphericalProperties",function(){Z.setSphericalProperties.apply(Z,g.YB(g.CF.apply(0,arguments)))}); Oo(this.api,"getSphericalProperties",function(){return Z.api.getPresentingPlayerType()===2?{}:Z.getSphericalProperties()}); Oo(this.api,"setSphericalProperties",function(){var F=g.CF.apply(0,arguments);Z.api.getPresentingPlayerType()!==2&&Z.setSphericalProperties.apply(Z,g.YB(F))})}; I_K=function(){var q=q$(16);for(var Z=[],F=0;F>>6:(D<65536?n[F++]=224|D>>>12:(n[F++]=240|D>>>18,n[F++]=128|D>>>12&63),n[F++]=128|D>>> 6&63),n[F++]=128|D&63);return n}; g.J4=function(q){for(var Z=[],F=0,B=0;B>6|192:((f&64512)==55296&&B+1>18|240,Z[F++]=f>>12&63|128):Z[F++]=f>>12|224,Z[F++]=f>>6&63|128),Z[F++]=f&63|128)}return Z}; jOK=function(q,Z){Z=Z===void 0?"":Z;return q.sX?Yy(!0):zd(nN(Yy(g.kx(q,Z)),function(F){return Yy(!!F)}),function(){return Yy(!1)})}; JrK=function(q,Z){cU(q.j,function(F){return F.G==Z.G})||q.j.push(Z)}; ln=function(q,Z,F,B,f){g.J.call(this);var D=this;this.K=q;this.YS=Z;this.Zl=F;this.XE=B;this.context=f;this.Fw=!0;this.Bg=new Map;this.D=new Set;F.get().addListener(this);this.addOnDisposeCallback(function(){F.jU()||F.get().removeListener(D)})}; uPX=function(q){q.skip(4);return{ZmE:T6g(q,0),value:T6g(q,0),timescale:UQ(q),IRl:UQ(q),eventDuration:UQ(q),id:UQ(q),R3:T6g(q),offset:q.offset}}; YCK=function(q){if(q.requestFullscreen)q=q.requestFullscreen(void 0);else if(q.webkitRequestFullscreen)q=q.webkitRequestFullscreen();else if(q.mozRequestFullScreen)q=q.mozRequestFullScreen();else if(q.msRequestFullscreen)q=q.msRequestFullscreen();else if(q.webkitEnterFullscreen)q=q.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return q instanceof Promise?q:Promise.resolve()}; HG=function(q){g.In.call(this);this.D=!1;this.wF=0;this.handler=new t8(this);g.y(this,this.handler);this.durationMs=q;this.timer=new g.EF(100);g.y(this,this.timer);this.handler.N(this.timer,"tick",this.y5);this.K={seekableStart:0,seekableEnd:q/1E3,current:0};this.start()}; g_D=function(){return{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",W:"ytp-svg-fill",L:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}}; tpZ=function(q){switch(q){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; lN8=function(){return{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}}; agB=function(q,Z,F,B,f,D,G,n,b,N){N=N===void 0?!1:N;var S=pj(f);if(!z2k(f,N))return new K("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:f});if(S<=0)return new K("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:f});var l=pJZ(q,Z,f,D,F,B,G);return l instanceof K?l:function(U){return $jD(Z,U.slotId,F,S,f,xV(f),G(U),l,n,b)}}; dZg=function(q,Z){if(Z<0)return"0";q=Math.floor(Math.min(Z,q.api.getDuration())*1E3);return q>2147483647?"0":String(q)}; O1=function(q,Z,F,B){km.call(this,q,{Y:"div",W:"ytp-ad-survey-interstitial",T:[{Y:"div",W:"ytp-ad-survey-interstitial-contents",T:[{Y:"div",W:"ytp-ad-survey-interstitial-logo",T:[{Y:"div",W:"ytp-ad-survey-interstitial-logo-image"}]},{Y:"div",W:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",Z,F,B);this.D=this.actionButton=null;this.interstitial=this.cG("ytp-ad-survey-interstitial");this.K=this.cG("ytp-ad-survey-interstitial-contents");this.text=this.cG("ytp-ad-survey-interstitial-text"); this.logoImage=this.cG("ytp-ad-survey-interstitial-logo-image");this.transition=new g.L3(this,500,!1,300);g.y(this,this.transition)}; it8=function(q,Z){q=g.Z6(q,{startTimeMs:Z},function(F,B){return F.startTimeMs-B.startTimeMs}); return q>=0?q:-q-2}; rj=function(q){return q.pos>=q.D.byteLength}; IsX=function(q,Z){var F=q.HG[Z];Z=q.LB[Z];var B=cp(q),f=s7(q.S,F.start/1E3,0),D=VpG(F,q.Z)/B.width;var G=s7(q.S,F.end/1E3,1);D!==Number.POSITIVE_INFINITY&&(f=g.JY(f,0,G-D));G=Math.min(G,f+D);F.color&&(Z.style.background=F.color);F=f;Z.style.left=Math.max(F*B.D+B.G,0)+"px";dq(q,Z,g.JY((G-F)*B.D+B.G,0,B.width),B.width,!0)}; eC6=function(q,Z){var F=q.j[Z.sessionId];!F&&q.G&&(F=q.G,q.G=null,F.sessionId=Z.sessionId,q.j[Z.sessionId]=F);return F}; Mgk=function(q,Z){if(Z.Y==="path")return Z.L.d;if(Z.T)for(var F=0;F>>0;q=q.D;var F=lfB(q,Z);q=q.K;if(ZAD){var B=q,f;(f=Fw6)||(f=Fw6=new TextDecoder("utf-8",{fatal:!0}));Z=F+Z;B=F===0&&Z===B.length?B:B.subarray(F,Z);try{var D=f.decode(B)}catch(N){if(Q_===void 0){try{f.decode(new Uint8Array([128]))}catch(S){}try{f.decode(new Uint8Array([97])),Q_=!0}catch(S){Q_=!1}}!Q_&&(Fw6=void 0);throw N;}}else{D=F;Z=D+Z;F=[];for(var G=null,n,b;D=Z?Ni():(b=q[D++],n<194||(b&192)!==128?(D--,Ni()):F.push((n&31)<<6|b& 63)):n<240?D>=Z-1?Ni():(b=q[D++],(b&192)!==128||n===224&&b<160||n===237&&b>=160||((f=q[D++])&192)!==128?(D--,Ni()):F.push((n&15)<<12|(b&63)<<6|f&63)):n<=244?D>=Z-2?Ni():(b=q[D++],(b&192)!==128||(n<<28)+(b-144)>>30!==0||((f=q[D++])&192)!==128||((B=q[D++])&192)!==128?(D--,Ni()):(n=(n&7)<<18|(b&63)<<12|(f&63)<<6|B&63,n-=65536,F.push((n>>10&1023)+55296,(n&1023)+56320))):Ni(),F.length>=8192&&(G=BUX(G,F),F.length=0);D=BUX(G,F)}return D}; Fk9=function(q,Z){if(!xB(q)&&!q.jU()){if(!(q.zP||(q.zP=!0,q.S>0))){var F=BRy(q);F=vD(q.policy.G,q.D.info,XD(q),F,q.policy.vG);sK(q,F)}if(Z.info.type===1){if(q.MA){j6(q,Error("Woffle: Expect INIT slices to always start us off"));return}q.initRange=js(0,Z.K.totalLength)}else if(Z.info.type===2)q.MA&&q.MA.type===1||j6(q,Error("Woffle: Index before init")),q.indexRange=js(q.initRange.end+1,Z.K.totalLength);else if(Z.info.type===3){if(!q.MA){j6(q,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(q.MA.type===3&&!z$(q.MA,Z.info)&&(q.PG=[],Z.info.Uc!==r4(q.MA)||Z.info.K!==0))return;if(Z.info.G){F=g.E(q.PG);for(var B=F.next();!B.done;B=F.next())IuG(q,B.value);q.PG=[]}else{q.PG.push(Z);q.MA=Z.info;return}}else{j6(q,Error("Woffle: Unexpected slice type"));return}q.MA=Z.info;IuG(q,Z);NXD(q)}}; sOk=function(q,Z){var F;return Z.split(".")[0]!==""&&((F=q.api.getVideoData())==null?void 0:!MI(F))}; Mn=function(q){var Z=Number(q);return Z==0&&g.lO(q)?NaN:Z}; Dzg=function(q){var Z=qc(q.clientMetadata,"metadata_type_ad_placement_config").kind,F=qc(q.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:q.layoutId,adType:tpZ(F),adBreakType:G2(Z)}}; sm8=function(q,Z){var F={};Z=g.E(Z);for(var B=Z.next();!B.done;B=Z.next())if((B=B.value)&&B.video){var f=B.video.qualityOrdinal,D=F[f],G=D&&g8(D)&&D.video.qualityOrdinal>q.policy.NP,n=f<=q.policy.NP?g8(B):Tf(B);if(!D||G||n)F[f]=B}return F}; rT9=function(q,Z,F,B,f,D,G,n){n=n===void 0?!1:n;if(Z.Lp&&G&&G.length>1&&!(Z.NP>0||Z.V)){for(var b=Z.K||!!f,N=b&&Z.VO?D:void 0,S=Qzg(Z,B),l=[],U=[],u={},P=0;Pq.K&&Z.K+Z.S<=q.K+q.S}; zFK=function(q){var Z=fk(!0);return Z&&(Z===q.template.element||q.mediaElement&&Z===q.mediaElement.QO())?Z:null}; xr=function(q,Z,F,B){var f=q[Sm]|0,D=n1(f);f=Ro(q,f,F,Z,D);h8(q,f,Z,B,D)}; XT=function(q){fX.call(this,q);var Z=this;this.events=new g.pO(q);g.y(this,this.events);var F=this.api.U("html5_enable_audio_quality_setting_feature");hC(this.api,"getUserAudioQualitySetting",function(){return F?Z.getUserAudioQualitySetting():2}); hC(this.api,"setUserAudioQualitySetting",function(B){F&&Z.setUserAudioQualitySetting(B)}); hC(this.api,"hasHqaAudioTrack",function(){return F?Z.hasHqaAudioTrack():!1}); hC(this.api,"getAudioQualitySettingState",function(){return F?Z.api.Us(4):1}); this.rV=jCD();this.updateEnvironmentData()}; n59=function(q,Z,F){q.noneOfTheAbove=new TiB(q.api,q.layoutId,q.interactionLoggingClientData,q.x$);q.noneOfTheAbove.R_(q.answers);q.noneOfTheAbove.init(kV("survey-none-of-the-above"),Z,F)}; AF=function(q,Z,F){g.qB.call(this,"Pista de audio",g.Wf.AUDIO,q,Z);this.B=q;this.D=F;this.tracks={};g.e$(this.element,"ytp-audio-menu-item");this.countLabel=new g.w({Y:"div",T:[{Y:"span",Ka:"Pista de audio"},{Y:"span",W:"ytp-menuitem-label-count",Ka:"{{content}}"}]});q.U("web_settings_menu_icons")&&!this.B.U("html5_enable_new_audio_settings_menu")&&(Z=q.U("delhi_modern_web_player_icons")?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:sZ8(),this.setIcon(Z));g.y(this,this.countLabel);g.Ab(this,this.countLabel);this.B.U("html5_enable_audio_ve_logging")&&(q.createClientVe(this.element,this,273318),this.listen("click",this.onClick));this.N(q,"videodatachange",this.ys);this.N(q,"onPlaybackAudioChange",this.ys);this.ys()}; lX=function(q){q.charAt(0)==="?"&&(q=q.substring(1));return gK(q,"&")}; bAG=function(q,Z){var F=q.Nr({playerType:1});if(F){if(F.getVideoData().clientPlaybackNonce===Z)return F;if((q=q.jg.D)&&q.getVideoData().clientPlaybackNonce===Z)return q}return null}; NU6=function(q,Z,F){var B=q.getVideoData(),f=Z.getVideoData();if(!B.C().supportsGaplessShorts())return{nq:"env"};if((!F.PG||B.Pf&&!B.isAd()||f.Pf&&!f.isAd())&&(!F.K||B.Pf&&!B.isAd()||f.Pf)&&(!F.S||f.Pf&&!f.isAd()||B.Pf)&&(B.Pf||f.Pf))return{nq:"autoplay"};if(B.endSeconds>0)return{nq:"endcr"};if(!B.X)return{nq:"client"};if(!q.d1())return{nq:"no-empty"};q=U4(F,q,Z,Infinity);return q!=null?{nq:q.msg}:null}; yS=function(q,Z,F,B){this.GP=q;this.wU=Z;this.q8=F;this.nB=B}; TE=function(q){if(!q.isProximaLatencyEligible)return 0;var Z=bV();return LgK(q)?2:Z===1?1:q.U("html5_enable_proxima")?2:0}; vG=function(q,Z,F,B,f,D,G,n){Z?Z.test(F)?(q.Zt(f,Z,G),Z.j||D()):(!Z.K||Z.G?F=!1:(F=(0,g.Le)(),B?Z.D||(Z.D=F):Z.D=0,D=!B&&F-Z.K>3E4,F=Z.D&&F-Z.D>1E3||D?Z.G=!0:!1),F&&(n=Object.assign({},q.Ey(Z),n),n.wn=G,n.we=f,n.wsuc=B,q.Mp.iL("workaroundReport",n),B&&(Z.reset(),q.S[f]=!1))):q.Mp.PL("auth",2,"BROWSER_OR_EXTENSION_ERROR",NJ({source:"watchdog",name:G}))}; ZQ7=function(q){var Z={};var F=g.i$()-q.Z;Z=(Z.ptlt=F,Z);(F=q.K)&&(Z.pnk=F);(F=q.S)&&(Z.pnc=F);(F=q.G)&&(Z.pnmm=F);(q=q.D)&&(Z.pns=q);return Z}; g.Ab=function(q,Z){q.updateValue("label",Z)}; g5D=function(q){return!!q.Ni&&!!q.Ni.fairplay&&(q.FE==="("||q.FE==="(h"||q.FE==="A"||q.FE==="MEAC3")||AI&&!!q.Ni&&q.FE==="1e"}; S5B=function(q){return[q.auth===void 0?"undefined":q.auth,q.isJspb===void 0?"undefined":q.isJspb,q.cttAuthInfo===void 0?"undefined":q.cttAuthInfo,q.tier===void 0?"undefined":q.tier].join("/")}; Cfg=function(q){var Z=0;q=g.E(q);for(var F=q.next();!F.done;F=q.next())Z+=F.value.range.length;return Z}; Qr=function(q,Z){if(!q)return NaN;Z=Y9(q,Z);return Z>=0?q.end(Z):NaN}; lzZ=function(q){q.playlist&&q.playlist.unsubscribe("shuffle",q.onVideoDataChange,q)}; qP=function(q,Z){var F=q.G;F||(q.G=new l8,F=q.G,mi(q,Z));return F}; rOD=function(q,Z,F,B){return new b6(q.type,q.D,q.range,"reslice"+q.X,q.Uc,q.startTime,q.duration,Z,F,B,q.De,q.clipId)}; g.a3=function(q){g.In.call(this);this.loaded=!1;this.player=q}; uRX=function(q){var Z=Z===void 0?!1:Z;return wb(Wu(q,Uz8),q,Z,"Drm Licensor URL")}; Ysk=function(q,Z){q.policy.X&&q.loader.iL("sabrcrq",{create:1});return D68(q,new gW(0,q.Np.PG,q),Z)}; js=function(q,Z){return new zI(q,q+Z-1)}; jXG=function(q){if(!q)return null;q=N7(q,4);return q===null||q===void 0?null:FK(q)}; P18=function(q,Z){g.hK(q.element,"ytp-preview",Z>=0);if(!(Z<0||Z===q.G)){q.G=Z;Z=243*q.scale;var F=141*q.scale,B=pU9(q.K,q.G,Z);M0g(q.bg,B,Z,F,!0);q.uL.start()}}; X$B=function(q){switch(q){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new K("Invalid layout exit reason: "+ q)}}; DV=function(){qu.apply(this,arguments)}; z5B=function(q,Z,F,B,f,D,G,n,b,N,S,l,U){F=i7G(Z,F,B,D,G,n,b,N,S,l,U);pcX(D)?(B=R76(Z,q),q=nK(Z.K.get(),"SLOT_TYPE_IN_PLAYER"),D=Bs(Z.K.get(),"LAYOUT_TYPE_SURVEY",q),n=CHD(Z,B,n),Z=[].concat(g.YB(n.slotExpirationTriggers),[new Q$(Z.D,D)]),q=F({slotId:n.slotId,slotType:n.slotType,slotPhysicalPosition:n.slotPhysicalPosition,slotEntryTrigger:n.slotEntryTrigger,slotFulfillmentTriggers:n.slotFulfillmentTriggers,slotExpirationTriggers:Z,bL:n.bL},{slotId:q,layoutId:D}),f=q instanceof K?q:{iU:Object.assign({}, n,{slotExpirationTriggers:Z,clientMetadata:new zX([new Si(q.layout)]),adSlotLoggingData:f}),Xo:q.Xo}):f=XOZ(Z,q,n,f,F);return f instanceof K?f:[].concat(g.YB(f.Xo),[f.iU])}; Cd=function(q){q=pn(q);q.metadata||(q.metadata={});return q.metadata}; bF=function(q,Z,F){g.J.call(this);this.B=q;this.GP=Z;this.wU=F;this.listeners=[];this.G=!1;this.Gf=[];this.D=null;this.Z=new zk(this,kfK(Z.get()));this.S=new GFG;this.K=null}; TGD=function(q,Z){mx(q,1,Z.type);aL(q,2,Z.value)}; XI=function(q,Z,F,B){var f=g.MT(q.api.pB());if(f&&f.loaded){var D=q.api.getSubtitlesUserSettings();f=void 0;for(var G=0;G=F.Rc-1E3&&B<=f+F.durationMs+1E3){B=F;break a}}B=void 0}F={yQ:B,KL:Z}}else F=cC(q,Z),((B=F)==null?0:B.yQ)||(F=cC(q,Z,1));var D;return(D=F)==null?void 0:D.yQ}; $r=function(q,Z){var F=Z||q.EP,B=q.D.Nr({cpn:F});if(B){Z=B.videoData;var f,D;F=B.R2||((D=(f=q.K.get(F))==null?void 0:f.start)!=null?D:0)/1E3;q=q.playback.getCurrentTime()-F;Z.J0=q>0?q:0}else q.ji().videoData.J0=q.playback.getCurrentTime()}; KJ8=function(q){fX.call(this,q);var Z=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.pO(q);g.y(this,this.events);this.events.N(q,"heartbeatRequest",function(F){if(Z.freePreviewUsageDetails.length||Z.freePreviewWatchedDuration!==null)F.heartbeatRequestParams||(F.heartbeatRequestParams={}),F.heartbeatRequestParams.unpluggedParams||(F.heartbeatRequestParams.unpluggedParams={}),Z.freePreviewUsageDetails.length>0?F.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= Z.freePreviewUsageDetails:F.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+Z.freePreviewWatchedDuration}}); hC(q,"setFreePreviewWatchedDuration",function(F){Z.freePreviewWatchedDuration=F}); hC(q,"setFreePreviewUsageDetails",function(F){Z.freePreviewUsageDetails=F})}; po=function(q){g.w.call(this,{Y:"button",rU:["ytp-button","ytp-autonav-toggle"],L:{title:q.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},T:[{Y:"div",W:"ytp-autonav-toggle-button-container",T:[{Y:"div",W:"ytp-autonav-toggle-button",L:{"aria-checked":"true"}}]}]});this.B=q;this.K=[];this.D=!1;this.isChecked=!0;q.createClientVe(this.element,this, 113681);this.N(q,"presentingplayerstatechange",this.PJ);this.listen("click",this.onClick);this.K.push(this.N(this.B,"videodatachange",this.PJ));this.K.push(this.N(this.B,"videoplayerreset",this.PJ));this.K.push(this.N(this.B,"onPlaylistUpdate",this.PJ));this.K.push(this.N(this.B,"autonavchange",this.wW));b8(q,this.element,this);this.PJ()}; mfb=function(q,Z,F,B,f,D,G,n,b,N){this.ub=q;this.Zl=Z;this.wU=F;this.G=B;this.nB=f;this.K=D;this.S=G;this.tZ=n;this.GP=b;this.D=N}; xPB=function(q,Z,F,B,f){f=f===void 0?!1:f;this.data=q;this.offset=Z;this.size=F;this.type=B;this.D=(this.K=f)?0:8;this.dataOffset=this.offset+this.D}; rL=function(q,Z){var F;(F=q.loader)==null||zS(F,Z)}; g.a0=function(q,Z){g.xT.call(this,{Y:"div",W:"ytp-progress-bar-container",L:{"aria-disabled":"true"},T:[{Y:"div",rU:["ytp-heat-map-container"],T:[{Y:"div",W:"ytp-heat-map-edu"}]},{Y:"div",rU:["ytp-progress-bar"],L:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},T:[{Y:"div",W:"ytp-chapters-container"},{Y:"div",W:"ytp-timed-markers-container"}, {Y:"div",W:"ytp-clip-start-exclude"},{Y:"div",W:"ytp-clip-end-exclude"},{Y:"div",W:"ytp-scrubber-container",T:[{Y:"div",rU:["ytp-scrubber-button","ytp-swatch-background-color"],T:[{Y:"div",W:"ytp-scrubber-pull-indicator"},{Y:"img",rU:["ytp-decorated-scrubber-button"]}]}]}]},{Y:"div",rU:["ytp-fine-scrubbing-container"],T:[{Y:"div",W:"ytp-fine-scrubbing-edu"}]},{Y:"div",W:"ytp-bound-time-left",Ka:"{{boundTimeLeft}}"},{Y:"div",W:"ytp-bound-time-right",Ka:"{{boundTimeRight}}"},{Y:"div",W:"ytp-clip-start", L:{title:"{{clipstarttitle}}"},Ka:"{{clipstarticon}}"},{Y:"div",W:"ytp-clip-end",L:{title:"{{clipendtitle}}"},Ka:"{{clipendicon}}"}]});this.api=q;this.nE=!1;this.Lm=this.bI=this.I_=this.zP=this.j=this.jN=0;this.gj=null;this.yd=!1;this.HG={};this.LB={};this.clipEnd=Infinity;this.VO=this.cG("ytp-clip-end");this.ac=new g.oG(this.VO,!0);this.Lp=this.cG("ytp-clip-end-exclude");this.J0=this.cG("ytp-clip-start-exclude");this.clipStart=0;this.Hg=this.cG("ytp-clip-start");this.QC=new g.oG(this.Hg,!0);this.Dl= this.Gb=0;this.progressBar=this.cG("ytp-progress-bar");this.j$={};this.o_={};this.vG=this.cG("ytp-chapters-container");this.UT=this.cG("ytp-timed-markers-container");this.D=[];this.X=[];this.SW={};this.GA=null;this.dU=-1;this.w2=this.BG=0;this.OP=this.V=null;this.oa=this.cG("ytp-scrubber-button");this.Y$=this.cG("ytp-decorated-scrubber-button");this.fD=this.cG("ytp-scrubber-container");this.KB=new g.e_;this.bb=0;this.nD=new ElK;this.S=new dl(0,0);this.Rh=null;this.Z=this.zH=!1;this.cH=null;this.uL= this.cG("ytp-heat-map-container");this.ix=this.cG("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.Jn=this.cG("ytp-fine-scrubbing-container");this.yC=this.cG("ytp-fine-scrubbing-edu");this.K=void 0;this.WG=this.lx=this.Oc=!1;this.tooltip=Z.Iy();this.addOnDisposeCallback(g.BY(this.tooltip,this.VO));g.y(this,this.ac);this.ac.subscribe("hoverstart",this.I3,this);this.ac.subscribe("hoverend",this.LC,this);this.N(this.VO,"click",this.p$);this.addOnDisposeCallback(g.BY(this.tooltip,this.Hg)); g.y(this,this.QC);this.QC.subscribe("hoverstart",this.I3,this);this.QC.subscribe("hoverend",this.LC,this);this.N(this.Hg,"click",this.p$);fy6(this);this.N(q,"resize",this.CB);this.N(q,"presentingplayerstatechange",this.RP);this.N(q,"videodatachange",this.NB);this.N(q,"videoplayerreset",this.pT);this.N(q,"cuerangesadded",this.hja);this.N(q,"cuerangesremoved",this.imU);this.N(q,"onLoopRangeChange",this.DN);this.N(q,"innertubeCommand",this.onClickCommand);this.N(q,"onRetroModeChanged",this.jyP);this.N(q, g.UK("timedMarkerCueRange"),this.MBc);this.N(q,"updatemarkervisibility",this.Ea);this.N(q,"serverstitchedvideochange",this.bEl);this.updateVideoData(q.getVideoData(),!0);this.DN(q.getLoopRange());L5(this)&&!this.K&&(this.K=new dQ(this.api,this.tooltip),q=g.yk(this.element).x||0,this.K.CB(q,this.j),this.K.R_(this.Jn),g.y(this,this.K),this.N(this.K.dismissButton,"click",this.xZ),this.N(this.K.playButton,"click",this.YN),this.N(this.K.element,"dblclick",this.YN));this.api.createClientVe(this.uL,this, 139609,!0);this.api.createClientVe(this.ix,this,140127,!0);this.api.createClientVe(this.yC,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; Np=function(q,Z){g.SL.call(this,q?q.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.D=null;q&&this.init(q,Z)}; g.SH=function(q){var Z=v0(q.pB());return q.app.gF&&!q.isFullscreen()||q.getPresentingPlayerType()===3&&Z&&Z.jr()&&Z.MS()||!!q.getPlaylist()}; r5=function(q,Z,F){return q[Z]?q[Z][F]||null:null}; j08=function(q,Z){if(!q||!Z)return!1;for(var F=0;q!==null&&F++<100;){if(q===Z)return!0;try{if(q=q.parentElement||q){var B=bw(q),f=B&&a$(B),D=f&&f.frameElement;D&&(q=D)}}catch(G){break}}return!1}; g.Tv=function(q,Z,F){F=q.GY===null?q.m6.GY(Z,F,q.TP[0].type):q.GY;if(q.D){Z=F?Mj(91,q.D,Z.GE):q.D;var B=new gn(Z);B.get("alr")||B.set("alr","yes");q.K&&$aX(B,q.K)}else/http[s]?:\/\//.test(q.K)?B=new gn(new g.O_(q.K)):(B=Ca(q.m6,F,Z),q.K&&$aX(B,q.K));(Z=q.range)?B.set("range",Z.toString()):q.TP[0].D.nY()&&q.TP.length===1&&q.TP[0].K&&B.set("range",q.TP[0].K+"-");q.requestId&&B.set("req_id",q.requestId);isNaN(q.pE)||B.set("headm",q.pE.toString());isNaN(q.Z)||B.set("mffa",q.Z+"ms");q.urlParams&&g.Hh(q.urlParams, function(f,D){B.set(D,f)}); return B}; LwD=function(q,Z){Z&&g.Tk(q.element,S4(q.D,Z))}; g.mX=function(q){q&=16777215;var Z=[(q&16711680)>>16,(q&65280)>>8,q&255];q=Z[0];var F=Z[1];Z=Z[2];q=Number(q);F=Number(F);Z=Number(Z);if(q!=(q&255)||F!=(F&255)||Z!=(Z&255))throw Error('"('+q+","+F+","+Z+'") is not a valid RGB color');F=q<<16|F<<8|Z;return q<16?"#"+(16777216|F).toString(16).slice(1):"#"+F.toString(16)}; pz=function(q,Z){mx(q,1,Z.itag);mx(q,2,Z.lmt);Nd(q,3,Z.xtags)}; UX=function(q,Z,F,B,f){var D=q.U("html5_enable_new_audio_settings_menu");w1.call(this,"Volumen estable",D?HA7.N3:g.Wf.N3);this.B=q;this.S=Z;this.K=F;this.hasDrcAudioTrack=B;this.getDrcState=f;this.enableNewAudioSettingsMenu=this.D=!1;g.e$(this.element,"ytp-drc-menu-item");this.Pg=(this.enableNewAudioSettingsMenu=D)?q.HH().QG:q.HH();q.addEventListener("videodatachange",this.Cw.bind(this));q.U("mta_drc_mutual_exclusion_removal")&&this.N(q,"onPlaybackAudioChange",this.Cw);q.U("html5_enable_audio_ve_logging")&& (q.createClientVe(this.element,this,273317),this.listen("click",this.Z));Z=this.K()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(q=q.U("delhi_modern_web_player_icons")?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]},this.setIcon(q));this.subscribe("select",this.G,this);this.enableNewAudioSettingsMenu?this.Cw():(this.setEnabled(this.hasDrcAudioTrack()),NC(this,Z),this.Pg.Mr(this))}; OA9=function(q,Z){var F=Z.filter(function(f){return lc(q,f)===10}),B=Z.filter(function(f){return lc(q,f)!==10}); return q.G.YJP?function(){var f=g.CF.apply(0,arguments);return g.h(function(D){if(D.D==1)return g.R(D,q.YIl.apply(q,[F].concat(g.YB(f))),2);q.lB.apply(q,[B].concat(g.YB(f)));g.C7(D)})}:function(){var f=g.CF.apply(0,arguments); q.kDp.apply(q,[F].concat(g.YB(f)));q.lB.apply(q,[B].concat(g.YB(f)))}}; QK8=function(q,Z){var F=[];q=g.E(q.values());for(var B=q.next();!B.done;B=q.next())B=B.value,B.slot.slotId===Z&&F.push(B);return F}; WG=function(q){return q.api.isFullscreen()||q.Oc&&q.api.aV()}; qa=function(q,Z,F,B,f,D,G,n,b){f=f===void 0?[]:f;G=G===void 0?!1:G;b=b===void 0?!1:b;f={Y:"button",rU:["ytp-ad-button"].concat(f)};n!=null&&(f.L={tabindex:n});km.call(this,q,f,D===void 0?"button":D,Z,F,B);this.D=this.K=this.S=null;this.Z=G;this.G=b;this.hide()}; PLX=function(q,Z){Z?Z.errorMetadata&&g.bh(new g.M2(q+" failed with status "+Z.errorMetadata.status)):g.bh(new g.M2(q+" failed with empty response"))}; xzX=function(q,Z,F,B,f,D){if(Array.isArray(F))for(var G=0;G0&&Math.abs(Z-F)>=5&&q.K===4&&ez(q,5,"sk2t")}; xu=function(q){return typeof q==="object"&&!Array.isArray(q)}; zg=function(){return A2X||(A2X=new yd(null,eG))}; v5y=function(q){g.J.call(this);this.D=q;this.z2=x3Z(this)}; Nk=function(q,Z){2&Z&&(q|=2);return q|1}; X4D=function(q){return!!q.playlist&&!q.D&&!!q.videoData&&!q.videoData.isLivePlayback&&q.B.getCurrentTime()>=3&&q.B.getPresentingPlayerType()!==2}; v0=function(q){if(q.B.C().fD)return q.ZE.get("remote")}; CFD=function(){var q=ZGD,Z=UOK(function(F){q.apply(void 0,arguments);E56(Z)}); return Z}; KwK=function(q,Z){var F=(Z(q.error.message)+":"+Z(q.error.stack)).substring(0,2048);Z=F.length+1;F=YU(F);var B=new Uint8Array(4+F.length);B.set([42,Z&127|128,Z>>7,q.error.code]);B.set(F,4);return B}; U1y=function(){if(kr===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(Z){}a:{try{var q=!!self.localStorage}catch(Z){q=!1}if(q&&(q=g.oB(g.nJ()+"::yt-player"))){kr=new BH(q);break a}kr=void 0}}return kr}; $zB=function(){var q=window.H5vccPlatformService,Z="";if(q&&q.has("dev.cobalt.coat.clientloginfo")&&(q=q.open("dev.cobalt.coat.clientloginfo",function(){}))){var F=q.send(new ArrayBuffer(0)); F&&(Z=String.fromCharCode.apply(String,g.YB(new Uint8Array(F))));q.close()}return Z}; VbD=function(q){for(var Z=g.E(Object.values(azG)),F=Z.next();!F.done;F=Z.next())if(g.qx(F.value)===q)return!0;return!1}; mzZ=function(q,Z){var F=S5B(Z);if(q.K[F])return q.K[F];var B=Object.keys(q.store)||[];if(B.length<=1&&S5B(Z)===B[0])return B;for(var f=[],D=0;Dq.G.length;)B= void 0,(B=q.thumbnails.pop())==null||B.dispose();for(;q.thumbnails.lengthF.length;)B=void 0,(B=q.K.pop())==null||B.dispose(); for(;q.K.length0){var U=Y9(l,b);U>=0&&(S=(l.end(U)-b+.1)*1E3)}D.push({formatId:g.Kc(n.info.D.info,q.Np.d2), De:n.info.De,sequenceNumber:n.info.Uc+q.G,Yy:N,ID:n.info.S,H4:S})}q={z0:Z,oW:D}}return(B=q)!=null?B:F}; g.J_=function(q){var Z=qH(q);return Z=="array"||Z=="object"&&typeof q.length=="number"}; Zrb=function(q,Z){var F;if(((F=q.Rh)==null?void 0:F.type)==="repeatChapter"||(Z==null?void 0:Z.type)==="repeatChapter")Z&&(Z=q.D[tq(q.D,Z.startTimeMs)],g.hK(Z.D,"ytp-repeating-chapter",!1)),q.Rh&&(Z=q.D[tq(q.D,q.Rh.startTimeMs)],g.hK(Z.D,"ytp-repeating-chapter",!0)),q.D.forEach(function(B){g.hK(B.D,"ytp-exp-chapter-hover-container",!q.Rh)})}; FKG=function(q){var Z=q.S[q.G];if(Z){var F=q.X[Z];Z=F.playerVars;F=F.playerType;q.D=!0;q.G++;var B=q.api.getVideoData(1);Z=Object.assign({oauth_token:B.oauthToken},Z);q.api.loadVideoByPlayerVars(Z,!0,F,!0);q.D=!1}}; Si=function(q){this.value=q}; pKX=function(){var q,Z,F,B;return((B=fg().resolve(new DG(G5))==null?void 0:(q=Y0())==null?void 0:(Z=q.loggingHotConfig)==null?void 0:(F=Z.csiConfig)==null?void 0:F.debugTicks)!=null?B:[]).map(function(f){return Object.values(f)[0]})}; Xab=function(q){this.Ec=rE(q)}; Bs7=function(q,Z){var F=this;this.handleError=q;this.D=Z;this.K=!1;self.document===void 0||self.addEventListener("beforeunload",function(){F.K=!0}); this.S=Math.random()<=.2}; g.LCK=function(q){if(q.fq)return null;var Z=q.xA;Z||(Z=q.playerResponse&&q.playerResponse.endscreen&&q.playerResponse.endscreen.endscreenUrlRenderer&&q.playerResponse.endscreen.endscreenUrlRenderer.url);return Z||null}; rdX=function(q){fFy(function(){for(var Z=g.E(Object.keys(lj)),F=Z.next();!F.done;F=Z.next())Sc(q,lj[F.value])})}; Db9=function(q){return q.currentTime+q.timestampOffset}; PE=function(q,Z,F){this.D=q;this.reason=Z;this.token=F;this.videoId=void 0}; vs=function(q){if(q.X)throw new TypeError("Generator is already running");q.X=!0}; M$D=function(){var q=null;if(!Gik)return q;try{var Z=function(F){return F}; q=Gik.createPolicy("goog#html",{createHTML:Z,createScript:Z,createScriptURL:Z})}catch(F){}return q}; g.ZE=function(q,Z,F,B,f){f=f===void 0?!1:f;F&&rW(q,F);F=g.ST(q);var D=g.JX(F);q!=D&&i2(Error("Unsafe window.open URL: "+q));q=D;Z=Z||C9(q).toString(36);try{if(f)return f=q,f=PKB(f),wW(f),g.IP(window,f,Z,"attributionsrc")}catch(G){g.vf(G)}wW(q);return g.IP(window,F,Z,B)}; zpK=function(q){this.Z=q;this.S=this.K=0;this.G=new dT(50)}; R0=function(q,Z){for(var F in q.D)if(q.D[F].status==="usable"&&q.D[F].type===Z)return!0;return!1}; cG=function(q,Z,F){g.In.call(this);this.videoData=q;this.experiments=Z;this.Z=F;this.K=[];this.rG=0;this.S=!0;this.G=!1;this.j=0;F=new aqB;q.latencyClass==="ULTRALOW"&&(F.V=!1);q.vG?F.S=3:g.z_(q)&&(F.S=2);q.latencyClass==="NORMAL"&&(F.Z=!0);F.Dl=Im(q);if(q.latencyClass==="LOW"||q.latencyClass==="ULTRALOW")F.Z=!0;var B=g.Ce(Z,"html5_liveness_drift_proxima_override");if(TE(q)!==0&&B){F.D=B;var f;((f=q.D)==null?0:XID(f))&&F.D--}Im(q)&&Z.qp("html5_sabr_parse_live_metadata_playback_boundaries")&&(F.uL= !0);if(g.Vd("trident/")||g.Vd("edge/"))f=g.Ce(Z,"html5_platform_minimum_readahead_seconds")||3,F.G=Math.max(F.G,f);g.Ce(Z,"html5_minimum_readahead_seconds")&&(F.G=g.Ce(Z,"html5_minimum_readahead_seconds"));g.Ce(Z,"html5_maximum_readahead_seconds")&&(F.PG=g.Ce(Z,"html5_maximum_readahead_seconds"));if(Z=g.Ce(Z,"html5_liveness_drift_chunk_override"))F.D=Z;nt(q)&&(F.D=(F.D+1)/5,q.latencyClass==="LOW"&&(F.D*=2));!Im(q)||q.latencyClass!=="ULTRALOW"&&q.latencyClass!=="LOW"||(F.X=3,F.j=25);this.policy=F; this.X=this.policy.S!==1;this.D=Y3(this,EED(this,isNaN(q.liveChunkReadahead)?3:q.liveChunkReadahead,q))}; s9G=function(q){var Z,F=q.policy.Z&&((Z=q.loader)==null?void 0:Z.r4());Z=q.loader.getCurrentTime()||0;Z=iYD(q,Z);if(q.policy.E$&&q.loader.isSeeking()){var B=Du(q.videoTrack,Z);q.loader.iL("asmtfnctv",{b:Z,a:B});isNaN(B)||(Z=B)}B=q.loader.oh()||0;Z+=B;B=Jz(q.videoData)||g.z_(q.videoData);var f=0;F?(B&&(f=Number.MAX_SAFE_INTEGER),q.videoData.zP&&(f=Math.ceil(q.videoData.k$*1E3))):f=Math.ceil(Z*1E3);return Math.min(Number.MAX_SAFE_INTEGER,f)}; rq=function(){return(Ey||KV)&&TX?!TX.mobile&&(lm("iPad")||lm("Android")||lm("Silk")):lm("iPad")||lm("Android")&&!lm("Mobile")||lm("Silk")}; g.XY=function(q,Z,F){dP(q,F)||iE(q,Z,F);dP(q,"video_to_ad")||iE(q,Z,"video_to_ad");dP(q,"ad_to_video")||iE(q,Z,"ad_to_video");dP(q,"ad_to_ad")||iE(q,Z,"ad_to_ad")}; P$=function(){}; neb=function(q,Z){Array.isArray(Z)||(Z=[Z]);Z=Z.map(function(F){return typeof F==="string"?F:F.property+" "+F.duration+"s "+F.timing+" "+F.delay+"s"}); g.u$(q,"transition",Z.join(","))}; bn=function(){}; g.brk=function(q,Z){if(q.suggestion!==Z){q.suggestion=Z;var F=q.api.C(),B="hqdefault.jpg";Z.fm("sddefault.jpg")&&(B="sddefault.jpg");g.JF(q,Z,B);g.FQ(F)&&!q.api.U("web_player_log_click_before_generating_ve_conversion_params")&&(F=Z.Le(),B={},g.ct(q.api,"addEmbedsConversionTrackingParams",[B]),F=g.gJ(F,B),q.updateValue("url",F));(Z=(Z=Z.sessionData)&&Z.itct)&&q.api.setTrackingParams(q.element,Z)}}; hR9=function(){return{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"rect",L:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Y:"rect",L:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Y:"path",L:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{Y:"defs",T:[{Y:"linearGradient",L:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},T:[{Y:"stop",L:{offset:"0.3","stop-color":"#E1002D"}},{Y:"stop",L:{offset:"0.9","stop-color":"#E01378"}}]}]}]}}; wNB=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u,P){var W=SVg(f,U,u);if(W instanceof K)return W;var H=[],X=[];W=g.E(W);for(var Q=W.next();!Q.done;Q=W.next()){var a=Q.value;Q=q;var m=f[a.ag],c=a,e=Z;a=D;var Y=G,Zg=n,GZ=b,FD=N,Ny=S,qy=Jo(m);if(qy instanceof K)Q=qy;else{var y9={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,bL:"adapter"};c=py7(e,m,c,a);c instanceof K?Q=c:(Q=Object.assign({},y9,vW,{ud:qy,renderingContent:m.renderingContent,clientMetadata:new zX(c),Xe:Ou(Zg,Q)(y9), adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData}),Q=(m=EL(Ny,Q,a,Y.x6,Zg,GZ,FD,void 0,!0))?m instanceof K?m:{layout:Q,xa:m}:new K("Expecting associatedInPlayerSlot"))}if(Q instanceof K)return Q;H.push(Q.layout);X.push(Q.xa)}f={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,bL:"core"};Z=[new io(Number(F.driftRecoveryMs)),new f8(U),new aR(u),new QA(Xk(Z)),new mQ(l),new v2({})];P&&Z.push(new Ct({}));return{wv:Object.assign({},f,B,{Ig:H,ud:new Map,clientMetadata:new zX(Z), Xe:Ou(n,q)(f)}),Xo:X}}; CTK=function(q,Z,F){F=F===void 0?!1:F;q.nU=void 0;q.D=Z;g.y(q,Z);Z.Ra=q.Ra;Z.WH=q.WH;Z.k$=q.k$;Z.j$=q.j$;Z.VO=q.VO;q.fD&&(Z.PG=new M5y(q.fD));(q.HW()||g.Z$(q))&&q.Y$.push("webgl");q.D.isLive||(q.isLivePlayback=!1);var B=Z.sourceUrl.split("/");if(q.Hg?B.indexOf("manifest_duration")!==-1:B.indexOf("manifest_duration")!=-1)q.v2=Number(B[B.indexOf("manifest_duration")+1]);if(Z.K||Z.isManifestless)Z.subscribe("clienttemp",q.iL,q),F?Z.subscribe("refresh",q.Fj,q):Z.subscribe("cuepointsadded",q.Tl,q);G_(Z)? q.M4=!0:SR=void 0;q.zP&&(Z.G=q.zP,Z.isLive=!0,q.isLivePlayback=!0);Z.isPremiere=q.isPremiere;Z.isLiveHeadPlayable=q.isLiveHeadPlayable}; Yr=function(q,Z){x9.call(this,q,Z,"chapterCueRange","Ver cap\u00edtulo");this.X=""}; Xz=function(q,Z){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.index=q;this.objectStore=Z;Object.setPrototypeOf(this,Xz.prototype)}; pp=function(q,Z,F,B){tF.call(this,q,Z);this.GP=q;this.XE=F;this.context=B}; $a=function(){pY.apply(this,arguments)}; NsZ=function(q,Z){sh(q)?g.iJ(function(){Z(q)}):q.callback=Z}; F0k=function(q,Z){if(!q.jU())if(zj(q,{onlcsrsp:1}),q.status="rr",Z.statusCode!==0)q.error("drm.auth",1,"t.f;c."+Z.statusCode,Z.errorMessage||void 0);else{n4("drm_kr_s",void 0,q.videoData.Dl);if(Z.heartbeatParams&&Z.heartbeatParams.url&&q.videoData.U("outertube_streaming_data_always_use_staging_license_service")){var F=q.K.K.match(/(.*)youtube.com/g);F&&(Z.heartbeatParams.url=F[0]+Z.heartbeatParams.url)}Z.heartbeatParams&&q.publish("newlicense",Z.heartbeatParams);Z.K&&(q.G=Z.K,q.videoData.RL||q.publish("newlicense", new ebX),q.videoData.RL=!0,q.X=cU(q.G,function(B){return B.includes("HDR")})); Z.D&&(q.J.U("html5_enable_vp9_fairplay")&&Rn(q.K)?(F=g.MR(WTD(q.fairplayKeyId),4),q.D[F]={type:Z.D[F],status:"unknown"}):q.D=hk(Z.D,function(B){return{type:B,status:"unknown"}})); vv(q.K)&&(Z.message=geD(g.MR(Z.message)));q.S&&(zj(q,{updtks:1}),q.status="ku",q.S.update(Z.message).then(function(){n4("drm_kr_f",void 0,q.videoData.Dl);tR(q)||(zj(q,{ksApiUnsup:1}),q.publish("keystatuseschange",q))},function(B){B="msuf.req."+q.requestNumber+";msg."+g.oX(B.message,3); q.error("drm.keyerror",1,B)})); g.Lg(q.K)&&q.publish("fairplay_next_need_key_info",q.baseUrl,Z.nextFairplayKeyId);q.J.U("html5_enable_vp9_fairplay")&&Rn(q.K)&&q.publish("qualitychange",n08(q.G));Z.sabrLicenseConstraint&&q.publish("sabrlicenseconstraint",Z.sabrLicenseConstraint)}}; zQb=function(q){e1G(function(){var Z=Seg();q.K!=null&&(Z.sdk=q.K);var F=ug(dz);F.D!=null&&(Z.avms=F.D.getName());return Z})}; lF9=function(q,Z,F,B,f,D){B.index&&(f.playlistIndex=String(Number(B.index)+1));f.videoId=F?F:"";Z&&D.qp("embeds_enable_per_video_embed_config")?f.serializedThirdPartyEmbedConfig=Z:q&&(f.serializedThirdPartyEmbedConfig=q)}; iG=function(q){return J8(q)/q.playbackRate}; DWZ=function(q){var Z=q.policy.zP,F=iG(q.zP)/Z-Pj(q,q.K.info);Z=g.ny(q.G,function(B){return Pj(this,B)=0&&(D.substring(0,5)===")]}'\n"&&(D=D.substring(5)),f=JSON.parse(D));break;case "XML":if(q=(q=F.responseXML)?wK9(q):null)f={},g.yn(q.getElementsByTagName("*"),function(G){f[G.tagName]=$Uk(G)})}B&&wh6(f); return f}; J0=function(q){this.wU=q}; bJ9=function(q,Z,F,B,f,D,G){this.ub=q;this.Zl=Z;this.wU=F;this.K=B;this.nk=f;this.D=D;this.XE=G}; LK6=function(q){var Z=q.B.getVideoData();return!!Z.QC||!!Z.captionTracks.length||g.o_D(Z,q.B)}; Hr9=function(q){var Z="Off 10 15 20 30 45 60".split(" "),F;((F=q.B.getVideoData())==null?0:F.isLivePlayback)||Z.push("End of video");F=q.B.getPlaylist();var B;F&&((B=F.listId)==null?void 0:B.type)!=="RD"&&Z.push("End of playlist");q.Qk(g.DC(Z,q.DQ));q.j=g.Gp(Z,q.DQ,q);Z=q.DQ("End of video");q.options[Z]&&g.Ab(q.options[Z],q.K)}; dy=function(q){this.B=q}; Or8=function(q,Z){if(Z.WY()||Z.jU()){var F=q.loader,B=F.iL,f=Z.state;q=q.Vd();var D,G;if((Z=(D=Z.A8)==null?void 0:D.get(q))==null)Z=void 0;else{D=0;q=Z.ox();for(var n=0;n0&&(this.PG=B.rti)):(this.Lm=B.mos,this.SW=B.volume,B.at&&(this.adType=B.at)),B.autonav&&(this.autonav=B.autonav),B.inview!=null&&(this.G0=B.inview),B.size&&(this.LB=B.size),B.playerwidth&&(this.OP=B.playerwidth),B.playerheight&&(this.ix=B.playerheight));this.J0=g.Js(Z.D);this.V=LX(Z.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.V==="all"||this.V==="once")this.j$=g.Js(Z.j$);this.lx=Z.lx;this.experimentIds=HY8(Z.experiments);this.HG=Z.Lp;this.Hg=Z.Dl;this.region=Z.region; this.userAge=Z.userAge;this.vG=Z.GA;this.Lp=zG();this.sendVisitorIdHeader=Z.sendVisitorIdHeader;this.k$=Z.U("vss_pings_using_networkless")||Z.U("kevlar_woffle");this.gj=Z.U("vss_final_ping_send_and_write");this.dU=Z.U("vss_use_send_and_write");this.pageId=Z.pageId;this.oa=Z.U("vss_playback_use_send_and_write");Z.livingRoomAppMode&&(this.livingRoomAppMode=Z.livingRoomAppMode);g.FQ(Z)&&(this.WG=Z.Y$);g.pP(g.VZ(Z))&&this.j.push(1);this.accessToken=g.he(q);q.D9[this.VO]?this.G=q.D9[this.VO]:q.D9.playback&& (this.G=q.D9.playback);this.adFormat=q.adFormat;this.adQueryId=q.adQueryId;this.autoplay=JB7(q);this.S&&(this.X3=q.Vm&&JW(q)==="adunit"?!0:!1);this.autonav=q.isAutonav||this.autonav;this.contentVideoId=TH(q);this.clientPlaybackNonce=q.clientPlaybackNonce;this.w2=q.z3;q.j&&(this.uL=q.j,this.Gb=q.Fk);q.mdxEnvironment&&(this.mdxEnvironment=q.mdxEnvironment);this.D=q.J0;this.KB=q.KB;q.K&&(this.ac=q.K.itag,q.G&&q.G.itag!==this.ac&&(this.Jn=q.G.itag));q.D&&Y7(q.D)&&(this.offlineDownloadUserChoice="1"); this.eventLabel=JW(q);this.o_=q.hC?!1:q.zH;this.QC=q.TZ;if(Z=DD(q))this.hC=Z;this.yC=q.Eb;this.partnerId=q.partnerId;this.eventId=q.eventId;this.playlistId=q.g$||q.playlistId;this.YZ=q.YZ;this.R6=q.R6;this.qB=q.qB;this.jA=q.jA;this.subscribed=q.subscribed;this.videoId=q.videoId;this.videoMetadata=q.videoMetadata;this.visitorData=q.visitorData;this.osid=q.osid;this.JN=q.JN;this.referrer=q.referrer;this.GE=q.Sp||q.GE;this.I_=q.J$;this.Rs=q.Rs;this.userGenderAge=q.userGenderAge;this.EY=q.EY;this.embedsRct= q.embedsRct;this.embedsRctn=q.embedsRctn;g.FQ(this.J)&&q.mutedAutoplay&&(q.mutedAutoplayDurationMode===2&&q.limitedPlaybackDurationInSeconds===0&&q.endSeconds===0?this.j.push(7):this.j.push(2));q.isEmbedsShortsMode(new g.d8(this.OP,this.ix),!!this.playlistId)&&this.j.push(3);g.ty(q)&&this.j.push(4);this.Oc=q.H_;q.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=q.compositeLiveIngestionOffsetToken)}; C7k=function(q){switch(q){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}}; XoZ=function(q){var Z=[];if(q.D.reason==="m"||q.D.reason==="s")return Z;if(pkD(q.Np)){for(var F=Math.max(0,q.V-2);F=0?f=Z:f=s1X(q,Z,F);f&&(B?F?f.tabIndex>B.tabIndex&&(B=f):f.tabIndex=0&&!(q.counter[G]=-~q.counter[G]);G--);for(var n,b,N=4;N<40;)G=jU[F>>>24]^Cq[B>>16&255]^hI[f>>8&255]^R7[D&255]^Z[N++],n=jU[B>>>24]^Cq[f>>16&255]^hI[D>>8&255]^R7[F&255]^Z[N++],b=jU[f>>>24]^Cq[D>>16&255]^hI[F>>8&255]^R7[B&255]^Z[N++],D=jU[D>>>24]^Cq[F>>16&255]^hI[B>>8&255]^R7[f&255]^Z[N++],F=G,B=n,f=b;q=q.K;G=Z[40];q[0]=sS[F>>>24]^G>>>24;q[1]=sS[B>>16&255]^G>>16&255;q[2]=sS[f>>8&255]^ G>>8&255;q[3]=sS[D&255]^G&255;G=Z[41];q[4]=sS[B>>>24]^G>>>24;q[5]=sS[f>>16&255]^G>>16&255;q[6]=sS[D>>8&255]^G>>8&255;q[7]=sS[F&255]^G&255;G=Z[42];q[8]=sS[f>>>24]^G>>>24;q[9]=sS[D>>16&255]^G>>16&255;q[10]=sS[F>>8&255]^G>>8&255;q[11]=sS[B&255]^G&255;G=Z[43];q[12]=sS[D>>>24]^G>>>24;q[13]=sS[F>>16&255]^G>>16&255;q[14]=sS[B>>8&255]^G>>8&255;q[15]=sS[f&255]^G&255}; Iq=function(q,Z,F){F=F===void 0?!1:F;var B,f,D,G;g.h(function(n){if(n.D==1){B=q.C();if(F&&(!g.d9(B)||JW(Z)!=="embedded")||Z.kL||JW(Z)!=="adunit"&&(g.em(B)||mj(B)||g.SQ(B)||g.gL(B)||g.dh(B)||an(B)==="WEB_CREATOR"))return n.return();f=g.kx(B,g.he(Z));return f.D?g.R(n,f.D,3):(D=f.getValue(),n.An(2))}n.D!=2&&(D=n.K);G=D;return n.return(hpb(q,Z,G))})}; Rp6=function(q){S7(q,"impression")&&!S7(q,"seek")&&q.PH("audio_audible")}; cNZ=function(q){var Z;(Z=q.A0)==null||Z.get().Vz(qc(q.slot.clientMetadata,"metadata_type_cue_point").identifier)}; qfb=function(q){q=q.B.getVideoData();var Z;if(Z=q.U("web_player_defer_ad")){if(g.r1(q.Y$,"ad")||rRK(q)||q.enableServerStitchedDai)q=!1;else{Z=q.playerResponse;q=q.startSeconds;var F=Z==null?void 0:Z.adPlacements;if(Z=F){Z=Number.MAX_VALUE;F=g.E(F);for(var B=F.next();!B.done;B=F.next())if(B=B.value.adPlacementRenderer){var f=void 0,D=(f=B.config)==null?void 0:f.adPlacementConfig;f=void 0;if(((f=D)==null?void 0:f.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var G=f=void 0;D=Number((f=D)==null?void 0:(G= f.adTimeOffset)==null?void 0:G.offsetStartMilliseconds)||0;G=f=void 0;B=Number(((f=B.renderer)==null?void 0:(G=f.adBreakServiceRenderer)==null?void 0:G.prefetchMilliseconds)||0);B=D-B;B=3&&q.AZ>0&&(B=q.AZ-1,F=D[B],F===D[++B]&&F===D[++B]&&F===D[++B])){for(f=q.AZ+258;F===D[++B]&&F===D[++B]&&F===D[++B]&&F===D[++B]&&F===D[++B]&&F===D[++B]&&F===D[++B]&&F===D[++B]&&Bq.e$&&(q.Qd=q.e$)}q.Qd>=3?(F=Pl(q,1,q.Qd-3),q.e$-=q.Qd,q.AZ+=q.Qd,q.Qd=0):(F=Pl(q,0,q.window[q.AZ]),q.e$--,q.AZ++);if(F&&(ry(q,!1),q.VC.vZ===0))return 1}q.qD=0;return Z=== 4?(ry(q,!0),q.VC.vZ===0?3:4):q.Wu&&(ry(q,!1),q.VC.vZ===0)?1:2}; g.vH=function(q,Z){return Z?q.D.concat(q.K):q.D}; lkB=function(){var q=document.documentElement;try{if(!PM(a$().top))return"2";var Z=[],F=a$(q.ownerDocument);for(q=F;q!=F.top;q=q.parent)if(q.frameElement)Z.push(q.frameElement);else break;return Z&&Z.length!=0?"1":"0"}catch(B){return"2"}}; TU6=function(q,Z){Z.inlineMetricEnabled&&(q.inlineMetricEnabled=!0);Z.playback_progress_0s_url&&(q.uD=new rEb(Z));if(Z=Z.video_masthead_ad_quartile_urls)q.Aa=Z.quartile_0_url,q.qK=Z.quartile_25_url,q.Cr=Z.quartile_50_url,q.FV=Z.quartile_75_url,q.Vr=Z.quartile_100_url,q.iD=Z.quartile_0_urls,q.kI=Z.quartile_25_urls,q.wH=Z.quartile_50_urls,q.UK=Z.quartile_75_urls,q.YI=Z.quartile_100_urls}; ryG=function(q){this.xhr=q}; H0K=function(q,Z){var F;return g.h(function(B){if(B.D==1){if(!Z)return B.return(Z);F=new g.LE(q.K);return g.R(B,F.decrypt(Z,q.D),2)}return B.return(B.K)})}; i1K=function(){var q=q===void 0?2E3:q;var Z=Z===void 0?15:Z;var F=F===void 0?5:F;var B=B===void 0?2:B;return window&&"requestIdleCallback"in window?new aw(function(f){requestIdleCallback(function(){f()},{timeout:q})}):oHD(q,Z,F,B)}; bpk=function(q){q.S>=0||(q.provider.J.ix||q.provider.Mp.getVisibilityState()!==3?q.S=g.$w(q.provider):q.o_=!0)}; aSk=function(q,Z,F,B,f,D,G,n){this.ub=q;this.Zl=Z;this.wU=F;this.K=B;this.nk=f;this.D=D;this.GP=G;this.XE=n}; T7=function(q){return!!q.D||!!q.K}; dbb=function(q,Z){return g.h(function(F){if(F.D==1)return g.s4(F,2),g.R(F,navigator.clipboard.writeText(Z),4);if(F.D!=2)return F.return(!0);g.If(F);var B=F.return,f=!1,D=g.AV("TEXTAREA");D.value=Z;D.setAttribute("readonly","");var G=q.api.getRootNode();G.appendChild(D);if(R_){var n=window.getSelection();n.removeAllRanges();var b=document.createRange();b.selectNodeContents(D);n.addRange(b);D.setSelectionRange(0,Z.length)}else D.select();try{f=document.execCommand("copy")}catch(N){}G.removeChild(D); return B.call(F,f)})}; FFy=function(q,Z){var F=[];Z?Z.isTrusted===!0?F.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):Z.isTrusted===!1?F.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):F.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):F.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");ES(0,"a.s_",{metadata:q,states:F});eJ("ASDSTAT",0)}; g.aH=function(q,Z,F,B){function f(N){try{if((N===void 0?0:N)&&B.retry&&!B.networklessOptions.bypassNetworkless)D.method="POST",B.networklessOptions.writeThenSend?xq().writeThenSend(b,D):xq().sendAndWrite(b,D);else if(B.compress){var S=!B.networklessOptions.writeThenSend;if(D.postBody){var l=D.postBody;typeof l!=="string"&&(l=JSON.stringify(D.postBody));yy(b,l,D,g.QN,S)}else yy(b,JSON.stringify(D.postParams),D,LZ,S)}else g.cz("web_all_payloads_via_jspb")?g.QN(b,D):LZ(b,D)}catch(U){if(U.name==="InvalidAccessError")i2(Error("An extension is blocking network request.")); else throw U;}} !g.oa("VISITOR_DATA")&&Z!=="visitor_id"&&Math.random()<.01&&i2(new g.M2("Missing VISITOR_DATA when sending innertube request.",Z,F,B));if(!q.isReady())throw q=new g.M2("innertube xhrclient not ready",Z,F,B),g.vf(q),q;var D={headers:B.headers||{},method:"POST",postParams:F,postBody:B.postBody,postBodyFormat:B.postBodyFormat||"JSON",onTimeout:function(){B.onTimeout()}, onFetchTimeout:B.onTimeout,onSuccess:function(N,S){if(B.onSuccess)B.onSuccess(S)}, onFetchSuccess:function(N){if(B.onSuccess)B.onSuccess(N)}, onProgress:function(N){if(B.onProgress)B.onProgress(N)}, onError:function(N,S){if(B.onError)B.onError(S)}, onFetchError:function(N){if(B.onError)B.onError(N)}, timeout:B.timeout,withCredentials:!0,compress:B.compress};D.headers["Content-Type"]||(D.headers["Content-Type"]="application/json");F="";var G=q.config_.po;G&&(F=G);G=q.config_.RD||!1;var n=m7G(G,F,B);Object.assign(D.headers,n);D.headers.Authorization&&!F&&G&&(D.headers["x-origin"]=window.location.origin);var b=vU(""+F+("/youtubei/"+q.config_.innertubeApiVersion+"/"+Z),{alt:"json"});g.ym("ytNetworklessLoggingInitializationOptions")&&VM8.isNwlInitialized?cH9().then(function(N){f(N)}):f(!1)}; epD=function(q){var Z=Z===void 0?!1:Z;q.mediaElement&&(q.gU?(Yi(q),q.ym(),JSX(q,Z)):(q.videoData.o_&&q.videoData.o_.Zf(),q.mediaElement.stopVideo()),q.playVideo())}; IEk=function(q){return q.s4||q.X1}; dc7=function(q){if(hg()&&(g.GW||Z7))q.G.push(new NU("fairplay","com.apple.fps.1_0","",q.Qs.experiments));else{var Z=TYK(),F=g.s3(q.K,function(B){var f=q.S[B],D=!1,G=!1,n;for(n in q.D[f.flavor])Z(n,B)&&(f.D[n]=!0,D=D||n.indexOf("audio/")===0,G=G||n.indexOf("video/")===0);return D&&G}); F&&q.G.push(q.S[F]);q.K=[]}q.callback(q.G)}; NS=function(q,Z,F,B){km.call(this,q,{Y:"div",W:"ytp-ad-feedback-dialog-background",T:[{Y:"div",W:"ytp-ad-feedback-dialog-container",T:[{Y:"div",W:"ytp-ad-feedback-dialog-form",L:{role:"dialog",tabindex:"-1"},T:[{Y:"div",W:"ytp-ad-feedback-dialog-title",T:[{Y:"span",Ka:"{{title}}"}]},{Y:"span",W:"ytp-ad-info-dialog-feedback-options-title",Ka:"{{reasonsTitle}}"},{Y:"div",W:"ytp-ad-info-dialog-feedback-options"},{Y:"div",W:"ytp-ad-feedback-dialog-confirm-container",T:[{Y:"button",W:"ytp-ad-feedback-dialog-cancel-button", Ka:"{{cancelLabel}}"},{Y:"button",W:"ytp-ad-feedback-dialog-confirm-button",Ka:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",Z,F,B);this.G=[];this.D=null;this.Z=this.cG("ytp-ad-feedback-dialog-cancel-button");this.V=this.cG("ytp-ad-feedback-dialog-confirm-button");this.uL=this.cG("ytp-ad-info-dialog-feedback-options");this.k$=this.cG("ytp-ad-feedback-dialog-title");this.S=this.K=null;this.hide()}; Ts7=function(q){var Z=hF9(q);if(Z)return q.videoData.getAvailableAudioTracks().find(function(F){return F.fB.getName()===Z})}; EfK=function(q){if(XVg()){q.Yk=q.api.QT();var Z=g.Ce(q.api.C().experiments,"html5_d6de4_cloud_project_number");q.Yk.KE("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:Z}).then(function(B){q.K=B;var f;(f=q.D)==null||f.resolve();q.Yk.KE("pt_pif")}).catch(function(B){BE(B,"player_start"); q.Yk.KE("pt_pie");var f;(f=q.D)==null||f.reject(B)})}catch(B){BE(B,"player_start_catch"); q.api.iL("pfes",{});var F;(F=q.D)==null||F.reject(B)}}}; g.F_=function(q,Z,F,B){Array.prototype.splice.apply(q,Sk(arguments,1))}; wK=function(q,Z,F){F=F===void 0?!1:F;q.D.has(Z)?uA(q,Z,[]):q.xk(Z,F)}; QR=function(q,Z,F,B){return Dd(q,Z,bd(F),"",B)}; py=function(q){kb.call(this,q,!1,!0);this.isCounterfactual=this.K=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.X=!0;this.overflowButton=new g.w({Y:"button",rU:["ytp-featured-product-overflow-icon","ytp-button"],L:{"aria-haspopup":"true"}});this.overflowButton.hide();g.y(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.w({Y:"img",W:"ytp-suggested-action-badge-img",L:{src:"{{url}}"}}); this.thumbnailImage.hide();g.y(this,this.thumbnailImage);this.thumbnailIcon=new g.w({Y:"div",W:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.y(this,this.thumbnailIcon);this.banner=new g.w({Y:"a",W:"ytp-suggested-action-container",T:[this.thumbnailImage,this.thumbnailIcon,{Y:"div",W:"ytp-suggested-action-details",T:[{Y:"text",W:"ytp-suggested-action-title",Ka:"{{title}}"},{Y:"text",W:"ytp-suggested-action-subtitle",Ka:"{{subtitle}}"},{Y:"text",W:"ytp-suggested-action-metadata-text", Ka:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.y(this,this.banner);this.banner.R_(this.S.element);this.N(this.B,"videodatachange",this.onVideoDataChange);this.N(this.B,g.UK("suggested_action_view_model"),this.avG);this.N(this.B,g.s2("suggested_action_view_model"),this.eWc);this.N(this.overflowButton.element,"click",this.yS);this.N(q,"featuredproductdismissed",this.o8);this.B.createServerVe(this.banner.element,this.banner,!0)}; rlB=function(){this.currentState=1;this.D="unknown"}; MMX=function(q,Z){UE(q,1,Z.kX,Kq,3);if(Z.Xx)for(var F=0;F>>0;this.D=Z>>>0}; MS=function(){RF.apply(this,arguments)}; nN=function(q,Z,F){var B=td9(),f=B.UW,D=B.resolve,G=B.reject;q.K.push(function(n){if(Z)try{var b=Z(n);D(b)}catch(N){G(N)}else D(n)}); q.S.push(function(n){if(F)try{var b=F(n);D(b)}catch(N){G(N)}else G(n)}); OTZ(q);return f}; YJZ=function(q){switch(q){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}}; yY=function(q){this.value=q}; o19=function(){var q=g.o7.V3();if(q&&(q=q.QV("yt-player-quality")))return q.creation}; ZlK=function(){var q=q===void 0?{}:q;g.jJ(function(){I$()&&n4("aa",void 0,void 0);oU9();De();FN(!1);q.cttAuthInfo&&(pn().cttAuthInfo=q.cttAuthInfo);eJ("TIMING_AFT_KEYS",[]);q.zDG?g.ZR({loadType:"hot"}):g.ZR({loadType:"warm"});eJ("TIMING_ACTION","");delete g.oa("TIMING_INFO",{}).yt_lt;g.jJ(Ty)(q.startTime,void 0)})()}; F2D=function(q){q.K=m98;q.D&&(q.D.dispose(),q.We("ismp_d"));q.D=null}; W8=function(q,Z){eq.call(this,q);this.error=Z;this.D="e";this.K="y"}; Bv7=function(q,Z,F,B,f){var D=this;this.loader=q;this.policy=Z;this.Zv=F;this.m6=B;this.GY=f;this.done=!1;this.onTimeout=function(){D.done||(D.done=!0,D.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*k2(this.Zv)));this.timing=new eZ(this,{Zv:this.Zv,LF:this.size,HK:!0,MF:function(){}, M7:this.policy.S});q=Ca(this.m6,this.GY,this.policy).vH.clone();Hs(2,q);q[z[23]]!=="/videogoodput"&&(q[z[23]]="/videogoodput",q[z[11]]=z[15]);this.location=new gn(q);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=p4(this.location,this.policy.V,this.timing,this.policy.mO,{});setTimeout(this.onTimeout,1E4)}; QY=function(q,Z,F,B,f){g.H8.call(this);this.K=q;this.Z=Z;this.j=F;this.G=B;this.X=Array.isArray(f)?f:[f]}; CXD=function(q,Z){var F=q.nC,B=q.AZ,f=q.bu,D=q.gb,G=q.AZ>q.tq-262?q.AZ-(q.tq-262):0,n=q.window,b=q.XP,N=q.OS,S=q.AZ+258,l=n[B+f-1],U=n[B+f];q.bu>=q.oQ&&(F>>=2);D>q.e$&&(D=q.e$);do{var u=Z;if(n[u+f]===U&&n[u+f-1]===l&&n[u]===n[B]&&n[++u]===n[B+1]){B+=2;for(u++;n[++B]===n[++u]&&n[++B]===n[++u]&&n[++B]===n[++u]&&n[++B]===n[++u]&&n[++B]===n[++u]&&n[++B]===n[++u]&&n[++B]===n[++u]&&n[++B]===n[++u]&&Bf){q.Tm=Z;f=u;if(u>=D)break;l=n[B+f-1];U=n[B+f]}}}while((Z=N[Z&b])>G&&--F!== 0);return f<=q.e$?f:q.e$}; oD=function(q){var Z=WG(q);g.hK(q.api.getRootNode(),"ytp-full-bleed-player",Z);q.zP&&g.mm(q.zP,Z);q.playerOverlayVideoDetailsRenderer&&g.mm(q.playerOverlayVideoDetailsRenderer,Z);q.S&&y_(q)}; Eq=function(q,Z){q.msg=cR[Z];return Z}; VR9=function(q,Z){q.K.style.setProperty("--yt-slider-shape-gradient-percent",(Z-q.S)/(q.Z-q.S)*100+"%")}; e1=function(q,Z,F,B){this.B2=Z;this.visible=F;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=B||q(this.triggerType)}; dZ=function(q){return!!(2&q)&&!!(4&q)||!!(256&q)}; CPK=function(q){var Z=Z===void 0?51:Z;var F=[];Gw(q,zw,6).forEach(function(B){nP(B,2)<=Z&&F.push(nP(B,1))}); return F}; qHg=function(q){WW=q}; fhD=function(q){return{XB:Ta(q,1),httpStatus:Ta(q,2),body:gD(q,4)}}; Fb=function(q,Z,F,B){B=B===void 0?0:B;g.a4.call(this,F.SX());var f=this;this.h0=q;this.videoData=Z;this.duration=B;this.D=this.startTimeSecs=0;this.K=this.S=!0;this.G=new IMB(function(D,G){return void f.iL(D,G)})}; e_K=function(q,Z,F){return(q=q.levels[Z])?q.bS(F):-1}; tS=function(q){var Z=qc(q.clientMetadata,"metadata_type_ad_placement_config");q=qc(q.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:Z,YP:q}}; as=function(q){var Z=$d(q,!0);q.pos+=Z}; Qok=function(){if(OO7)throw Error("carr");$m(DK9,5)}; g.O9=function(q,Z,F){q=q.split(".");F=F||g.W5;for(var B;q.length&&(B=q.shift());)q.length||Z===void 0?F[B]&&F[B]!==Object.prototype[B]?F=F[B]:F=F[B]={}:F[B]=Z}; YT6=function(q){q.K&&(q.G=new l8,q.Z.promise.then(function(){q.Yk.KE("pot_if");KC(q)}))}; lZ=function(q){return!q.oldState.isPlaying()&&q.state.isPlaying()}; GVy=function(q,Z){var F=[];Z=Array.from(Z.getElementsByTagName("SegmentTimeline"));Z=g.E(Z);for(var B=Z.next();!B.done;B=Z.next()){B=B.value;var f=B.parentNode.parentNode,D=null;f.nodeName==="Period"?D=T$Z(q):f.nodeName==="AdaptationSet"?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",D=IzZ(q,f)):f.nodeName==="Representation"&&(f=f.getAttribute("id")||"",D=Imy(q,f));if(D==null)return;D.update(B);g.Uq(F,mRX(D))}g.Uq(q.G,F);ua6(q.G,function(G){return G.startSecs*1E3+G.D})}; zjg=function(q,Z){g.w.call(this,{Y:"div",L:{tabindex:"0",title:q.U("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},rU:["ytp-volume-popover"]});var F=this;this.isVisible=!1;this.tooltip=Z.Iy();this.K=new qv(q);g.y(this,this.K);this.K.R_(this.element);this.D=new g.im(function(){W2(F,!1)},300); this.listen("mouseenter",function(){F.D.stop()}); this.listen("mouseleave",function(){F.D.start()}); this.listen("focus",function(){F.D.stop()}); this.N(this.K.K,"focus",function(){F.D.stop()}); this.listen("focusout",function(){F.D.start();F.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.BY(Z.Iy(),this.element));g.y(this,this.D)}; g.kP=function(q){for(var Z;Z=q.firstChild;)q.removeChild(Z)}; g.Xu=function(q){this.G=q.D8$||null;this.S=q.GK||!1;this.K=void 0}; tL8=function(q,Z){var F;((F=q.D)==null?void 0:F.id)!==(Z==null?void 0:Z.id)&&(q.D&&(q.K.delete(q.D.id),q.api.MB([q.D],1)),q.D=Z)}; blD=function(q,Z){var F=[];Z=g.E(Z);for(var B=Z.next();!B.done;B=Z.next()){B=B.value;var f=ngD[B]||0;q.D&&f>q.D||F.push(B)}return F}; goD=function(){var q=g.W5.navigator;return q?q.connection:void 0}; Nvg=function(){return VV()?TX.platform==="Android":lm("Android")}; vZk=function(q){if(!Vt(q.adLayoutMetadata))return!1;if(g.C(q.renderingContent,ggg)||g.C(q.renderingContent,Ks))return!0;var Z=g.C(q.renderingContent,ud);return g.C(q.renderingContent,SGg)||g.C(Z==null?void 0:Z.sidePanel,lhX)||g.C(Z==null?void 0:Z.sidePanel,UK8)||g.C(Z==null?void 0:Z.sidePanel,uOB)?!0:!1}; gx=function(q,Z){g.J.call(this);var F=this;this.policy=q;this.TP=Z;this.K=0;this.D=null;this.eB=[];this.S=null;this.JZ={Tn:function(){return F.TP}}; this.TP.length===1||g.yA(this.TP,function(B){return!!B.range})}; rj9=function(q){yi.call(this,"onesie");this.jn=q;this.D={};this.G=!0;this.S=null;this.queue=new PBb(this);this.Z={}}; bw=function(q){return q.nodeType==9?q:q.ownerDocument||q.document}; W2K=function(){this.done=!1;this.D={NC:0,Y0:0,EXE:0,Om:0,lO:-1,Zc:0,R5:0,BI:0,J8s:0};this.Z=null;this.j=!1;this.S=null;this.X=0;this.K=new wq8(this)}; ZZ=function(q,Z,F,B){km.call(this,q,{Y:"div",W:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",Z,F,B);this.hide()}; FV=function(q,Z,F){return new g.u8(q*1E3,Z*1E3,{priority:9,namespace:F})}; CqD=function(q){if(!TR7(q))return!1;var Z=g.C(q.adVideoStart,gt);return Z?g.C(q.linearAd,hB)&&Sj(Z)?!0:(Yp("Invalid Sandwich with notify"),!1):!1}; rPD=function(q){var Z={veType:253246};return g.jJ(function(){if(!Z.veType)return V3(new g.M2("Error: Trying to graft a client VE without a veType.")),null;if(Z.visibilityTypes){var F=Z.visibilityTypes.reduce(function(B,f){return B|f}); F={visibility:{types:String(F)}}}F=i3D(Z.veType,Z.visualElement,Z.elementIndex,Z.clientYouTubeData,void 0,F);return Zt(q,F)?F:null})()}; yj9=function(q,Z){q.We("ismp_p");F2D(q);q.K=Z}; L2k=function(q){if(!y_X(q))return!1;var Z;q=(Z=q.mediaElement)==null?void 0:Z.audioTracks();return!!(q&&q.length>1)}; f0=function(q){g.w.call(this,{Y:"div",W:Bk.TITLE,T:[{Y:"div",rU:[Bk.TEXT,q.U("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],T:[{Y:"a",rU:[Bk.LINK,Bk.SESSIONLINK],L:{target:q.C().PG,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Ka:"{{title}}"},{Y:"div",W:Bk.SUBTEXT,T:["{{subtextElement}}"]}]}]});this.api=q;this.D=null;this.link=this.cG(Bk.LINK);q.createClientVe(this.element,this,23851);this.N(q,"videodatachange",this.ys); this.N(q,"videoplayerreset",this.ys);this.ys()}; uL=function(){this.finished=this.started=!1}; HlG=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u,P,W,H,X,Q,a,m,c,e){function Y(){var Ny,qy=(Ny=B.Ig)!=null?Ny:qc(B.clientMetadata,"metadata_type_sub_layouts");Ny=gM8({LG:q,XE:l,A0:m,kS:S,Zl:U,ke:u,rq:W,SA:Z,slot:F,layout:B,XN:D,q8:G,vg:f,GP:a});for(var y9=[],dX={vP:0};dX.vPq.j)return"max"+q.j;if(q.I_&&Z.FE==="h"&&Z.video&&Z.video.qualityOrdinal>1080)return"blkhigh264";if(Z.FE==="(h"&&!F.X)return"enchdr";if((B===void 0?0:B)&&AS(Z)&&!q.BG)return"blk51live";if((Z.FE==="MAC3"||Z.FE==="mac3")&&!q.G)return"blkac3";if((Z.FE==="MEAC3"||Z.FE==="meac3")&&!q.Z)return"blkeac3";if(Z.FE==="M"||Z.FE==="m")return"blkaac51"; if((Z.FE==="so"||Z.FE==="sa")&&!q.Dl)return"blkamb";if(!q.j$&&g5D(Z)&&(!F.Z||Z.FE!=="1e"))return"cbc";if(!F.Z&&g5D(Z)&&Z.FE==="1e")return"cbcav1";if((Z.FE==="i"||Z.FE==="I")&&!q.Tb)return"blkiamf";var D;if(q.w2&&((D=Z.audio)==null?void 0:D.K)===!0)return"blkvbcabr";var G,n;if(q.o_&&(Z.FE==="1"||Z.FE==="1h"||F.Z&&Z.FE==="1e")&&((G=Z.video)==null?0:G.qualityOrdinal)&&((n=Z.video)==null?void 0:n.qualityOrdinal)>q.o_)return"av1cap";B=F.G.get(Z.FE);if(!q.Gb&&B&&B.Rf>0)return f.add(Z.FE),"byerr";var b; if((b=Z.video)==null?0:b.fps>32){if(!F.Y$&&!Sc(F,lj.FRAMERATE))return"capHfr";if(q.eU&&Z.video.qualityOrdinal>=4320)return"blk8khfr";if(Tf(Z)&&q.yC&&Z.Ni&&Z.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(q.Ml&&Z.Ml>q.Ml)return"ratecap";if(q.zP>0&&Z.jB()&&Z.video.height>q.zP)return"mvhcap";q=l7X(F,Z);return q!==!0?q:!0}; DY=function(q,Z){return GK(q,Z)!=null}; Qxk=function(q,Z){if(q.D==void 0)return 0;switch(q.Z){case "mtos":return q.K?j79(Z.D,q.D):j79(Z.K,q.D);case "tos":return q.K?dc(Z.D,q.D):dc(Z.K,q.D)}return 0}; lk=function(q){this.D=q}; g.zbX=function(q){var Z=U1y();Z&&(q=JSON.stringify(q),Z.set("yt-player-lv",q))}; xKg=function(){var q=R$;this.D=rk9;this.isRepeated=0;this.K=Ib;this.defaultValue=void 0;this.S=q.messageId!=null?zM:void 0}; DZ=function(q,Z,F,B,f){km.call(this,q,{Y:"div",W:"ytp-ad-player-overlay-layout",T:[{Y:"div",W:"ytp-ad-player-overlay-layout__player-card-container"},{Y:"div",W:"ytp-ad-player-overlay-layout__ad-info-container"},{Y:"div",W:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{Y:"div",W:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",Z,F,B);this.K=f;this.k$=this.cG("ytp-ad-player-overlay-layout__player-card-container");this.D=this.cG("ytp-ad-player-overlay-layout__ad-info-container"); this.V=this.cG("ytp-ad-player-overlay-layout__skip-or-preview-container");this.uL=this.cG("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; JT8=function(q){if(!VEB(q,q.dU)||Fz(q.audioTrack)&&Fz(q.videoTrack))return!1;if(q.policy.K)if(q.policy.j){var Z;if((Z=q.V)==null?0:ZfK(Z))return!1}else{Z=!1;if(q.zP.K===2)Z=!0;else if(q.zP.K===3){s9G(q);q.loader.oh();var F=eEy(q.audioTrack,q.loader.isSeeking()).z0;var B=eEy(q.videoTrack,q.loader.isSeeking()).z0;var f=q.loader.getCurrentTime()||0;F=L9(q,F,f);B=L9(q,B,f);B=Math.min(F,B);f=q.zP;B>=f.Z?(f.iL("sdai",{haltrq:B,est:f.Z}),B=!0):B=!1;B&&(Z=!0)}Z&&q.policy.X&&q.loader.iL("sabrcrq",{waitad:1}); if(Z)return!1}q.policy.hC&&(q.Y$=H0(q,q.audioTrack),q.k$=H0(q,q.videoTrack));if(!q.K)return q.policy.X&&q.loader.iL("sabrcrq",{nopolicy:1}),!0;if(q.Mp.eb())return q.policy.X&&q.loader.iL("sabrcrq",{utc:1}),!0;if(q.S.X)return q.policy.X&&q.loader.iL("sabrcrq",{audio:1}),!0;if(!q.K.targetAudioReadaheadMs||!q.K.targetVideoReadaheadMs)return q.policy.X&&q.loader.iL("sabrcrq",{noreadahead:1}),!0;if(q.policy.Z&&q.loader.r4())return q.policy.X&&q.loader.iL("sabrcrq",{seekToHead:1}),!0;Z=Math.min(c7(q.loader, q.audioTrack)*1E3,q.K.targetAudioReadaheadMs);B=Math.min(c7(q.loader,q.videoTrack)*1E3,q.K.targetVideoReadaheadMs);var D=Math.min(Z,B),G=q.Mp.getCurrentTime()*1E3,n=Ajk(q,G);f=n.r$;F=n.Um;var b=n.mu;n=n.XL;var N=f1?"#"+B[1]:"";var f=q.split("?",2);q=f[0];f=lX(f[1]||"");for(var D in Z)if(F||!g.w8(f,D))f[D]=Z[D];return g.gJ(q,f)+B}; wu8=function(q,Z){mx(q,1,Z.clientState);UE(q,2,Z.jxr,yo7,1)}; Np9=function(q){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=q(this.triggerType)}; LO6=function(){var q=goD();if(q){var Z=vgK[q.type||"unknown"]||"CONN_UNKNOWN";q=vgK[q.effectiveType||"unknown"]||"CONN_UNKNOWN";Z==="CONN_CELLULAR_UNKNOWN"&&q!=="CONN_UNKNOWN"&&(Z=q);if(Z!=="CONN_UNKNOWN")return Z;if(q!=="CONN_UNKNOWN")return q}}; s7=function(q,Z,F){return q.D-q.K?g.JY((Z-q.K)/(q.D-q.K),0,1):F!=null?F:Infinity}; NaZ=function(){PT();var q=EY();return q.S||q.K?0:2}; oZD=function(q){var Z=[],F=q.sandwichedLinearAdRenderer&&q.sandwichedLinearAdRenderer.linearAd&&g.C(q.sandwichedLinearAdRenderer.linearAd,hB);if(F)return Z.push(F),Z;if(q.instreamVideoAdRenderer)return Z.push(q.instreamVideoAdRenderer),Z;if(q.linearAdSequenceRenderer&&q.linearAdSequenceRenderer.linearAds){q=g.E(q.linearAdSequenceRenderer.linearAds);for(F=q.next();!F.done;F=q.next())F=F.value,g.C(F,hB)&&Z.push(g.C(F,hB));return Z}return null}; XqB=function(q){this.Ec=rE(q)}; ra6=function(q,Z,F){return Z>=15E3?!0:q.eU?(F===void 0?0:F)?!0:q.S>0?Z>=q.S/2:q.k$>0?Z>=q.k$:!1:!1}; EgZ=function(q,Z){q=new Set(q.map(Z));q.delete(void 0);return q.size>=2}; C_=function(q,Z,F){Z.startSecs+=isNaN(q.V)?0:q.V;q=q.Np;q.Y$.push(Z);q.publish("cuepointsadded",F)}; NA=function(q){return KZ(q,"custom_metric_viewable")}; K26=function(q,Z){if(Z&&q.hlsvp)return Ef();if(q.hlsFormats){Z=Jt(q.hlsFormats);var F;if(((F=q.yC)==null?0:F.K)&&Z){F=[];for(var B=g.E(Z),f=B.next();!f.done;f=B.next())F.push(f.value.itag);q.iL("hlsfmt",{itags:F.join(".")})}q.Md=DuD(q.Qs,Z);q.Md&&$_k(q,q.Md);F=q.clientPlaybackNonce;var D,G,n,b;return HpK(q.Qs,q.isAd(),Z,(b=(D=q.playerResponse)==null?void 0:(G=D.captions)==null?void 0:(n=G.playerCaptionsRenderer)==null?void 0:n.baseUrl)!=null?b:null,q.w2,F,function(N){return q.publish("ctmp","hlsflt", N)}).then(function(N){for(var S=0,l=[],U=g.E(N),u=U.next();!u.done;u=U.next()){u=u.value; var P=void 0;l.push((P=u.getInfo())==null?void 0:P.itag);var W=P=void 0;((P=u.getInfo())==null?void 0:(W=P.audio)==null?void 0:W.numChannels)>S&&(S=u.getInfo().audio.numChannels)}S>2&&q.iL("hlschl",{mn:S});var H;((H=q.yC)==null?0:H.K)&&q.iL("hlsfmtaf",{itags:l.join(".")});var X;if(q.U("html5_enable_vp9_fairplay")&&((X=q.Z)==null?0:Rn(X)))for(q.iL("drm",{sbdlfbk:1}),S=g.E(q.Kk),l=S.next();!l.done;l=S.next())if(l=l.value,vv(l)){q.Z=l;break}HM(q,N)})}return Ef()}; $KB=function(q,Z,F,B){Uv.call(this,q,Z,F,B);this.uL=this.Dl=this.X=this.V=this.G=null}; ahB=function(q,Z,F,B,f,D){oP.call(this,q,Z,F,B);this.wU=f;this.vg=D;this.Fw=!0;qr(this.vg(),this);q=qc(F.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(F.ud,this.wU,q,F.layoutId)}; p$6=function(q,Z,F,B,f){var D=q.Np;var G=q.policy.D,n=!1,b=-1,N;for(N in D.D){var S=vp(D.D[N].info.mimeType)||D.D[N].info.jB();if(B===S)if(S=D.D[N].index,S.g3(Z.Uc)){n=S;var l=Z,U=n.B3(l.Uc);U&&U.startTime!==l.startTime?(n.segments=[],n.oY(l),n=!0):n=!1;n?b=Z.Uc:!Z.pending&&G&&(l=S.getDuration(Z.Uc),l!==Z.duration&&(D.publish("clienttemp","mfldurUpdate",{itag:D.D[N].info.itag,seg:Z.Uc,od:l,nd:Z.duration},!1),S.oY(Z),n=!0))}else S.oY(Z),n=!0}b>=0&&(G={},D.publish("clienttemp","resetMflIndex",(G[B? "v":"a"]=b,G),!1));D=n;N_D(q.W1,Z,B,D);if(q.policy.I_&&q.policy.K&&(b=Z.SC||null)){var u;G=(u=q.K)==null?void 0:mKk(u).requestNumber;var P;(P=q.uL)==null||IGK(P,b,G,Z.Uc)}q.S.d9(Z,F,B,f);Z.Uc===q.Np.Ra&&D&&np(q.Np)&&Z.startTime>np(q.Np)&&(q.Np.k$=Z.startTime+(isNaN(q.timestampOffset)?0:q.timestampOffset),q.W1.isSeeking()&&q.W1.targetTime1E3;!(D.length>1)&&D[0].isEmpty()||n||(G.X=pt(q,f));G.send();q.PG++}},(f-F)*1E3); return q.G=f}; L4D=function(q){var Z=window;Z.ywc&&delete Z.ywc[q]}; VVD=function(q,Z){if(q.playerType===2||q.J.lJ)Z.Rt=!0;var F=pZK(Z.lx,Z.Qh,q.J.G,q.J.V);F&&(Z.adFormat=F);q.playerType===2&&(Z.Pf=!0);if(q.isFullscreen()||q.J.G)F=g.sY("yt-player-autonavstate"),Z.autonavState=F||(q.J.G?2:q.videoData.autonavState);Z.endSeconds&&Z.endSeconds>Z.startSeconds&&o9(q,Z.endSeconds)}; PP=function(q,Z){g.r1(q.Z,Z)||(q.Z.push(Z),Z.AR(q.D),Z.EH(q.G),Z.x9()&&(q.PG=!0))}; Ihb=function(q){kb.call(this,q);this.K=this.D=this.isContentForward=this.j=!1;this.element.setAttribute("data-overlay-order","8");IjK(this);this.N(this.B,"changeProductsInVideoVisibility",this.Pk_);this.N(this.B,"videodatachange",this.onVideoDataChange)}; Nv=function(q){this.D=q}; CBb=function(q){Uf(q,4,!1);q.X&&(q.D.Op(q.X),q.X=null,q.S=q.D.N(q.target,"mouseover",q.hK));q.S&&(q.D.Op(q.S),q.S=q.D.N(q.target,"mouseover",q.hK))}; hj7=function(q,Z){Jb(q.wU.get(),{cuepointTrigger:{event:O$y(Z.event),cuepointId:Z.identifier,totalCueDurationMs:Z.jC*1E3,playheadTimeMs:Z.D,cueStartTimeMs:Z.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:q.B.getVideoData(1).clientPlaybackNonce}})}; g.rl=function(q){return q.ZE.get("webgl")}; g.N9G=function(q,Z,F){var B=Z.query;Z=Z.direction;q="openKeyCursor"in IDBObjectStore.prototype?q.D.openKeyCursor(B,Z):q.D.openCursor(B,Z);return d6X(q).then(function(f){return Hy(f,F)})}; Rj6=function(q){if(g.Vd("cobalt")&&g.Vd("nintendo switch")){var Z=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;q.iL("nxdock",{d:Z})}}; fu=function(q,Z){for(var F=0;F=F&&Z<=B}; f7=function(q,Z,F,B,f){var D=q.D||q.isDragging||q.K||q.lI;q.D=Z;q.isDragging=F;q.K=B;q.lI=f;Z=q.D||q.isDragging||q.K||q.lI;D!==Z&&(Z?q.Z=q.N(q.element,"wheel",q.uf):(q.Op(q.Z),q.Z=null),g.hK(q.j,"ytp-volume-slider-active",Z))}; JjB=function(q){q.PG=q.Z.length?cU(q.Z,function(Z){return Z.x9()}):!1}; rh=function(q,Z){for(var F=[];TS(q,Z);)F.push(M1(q));return F.length?F:void 0}; g.Mb6=function(q,Z){var F;return q.C().U("safari_live_drm_captions_fix")&&((F=q.getVideoData())==null?0:F.sI())?!1:g.Za(q.C())&&!Z.isManifestless}; YGB=function(q){g.w.call(this,{Y:"div",W:"ytp-doubletap-ui-legacy",T:[{Y:"div",W:"ytp-doubletap-fast-forward-ve"},{Y:"div",W:"ytp-doubletap-rewind-ve"},{Y:"div",W:"ytp-doubletap-static-circle",T:[{Y:"div",W:"ytp-doubletap-ripple"}]},{Y:"div",W:"ytp-doubletap-overlay-a11y"},{Y:"div",W:"ytp-doubletap-seek-info-container",T:[{Y:"div",W:"ytp-doubletap-arrows-container",T:[{Y:"span",W:"ytp-doubletap-base-arrow"},{Y:"span",W:"ytp-doubletap-base-arrow"},{Y:"span",W:"ytp-doubletap-base-arrow"}]},{Y:"div", W:"ytp-doubletap-tooltip",T:[{Y:"div",W:"ytp-seek-icon-text-container",T:[{Y:"div",W:"ytp-seek-icon",Ka:"{{seekIcon}}"},{Y:"div",W:"ytp-chapter-seek-text-legacy",Ka:"{{seekText}}"}]},{Y:"div",W:"ytp-doubletap-tooltip-label",Ka:"{{seekTime}}"}]}]}]});this.B=q;this.G=new g.im(this.show,10,this);this.K=new g.im(this.hide,700,this);this.j=this.S=0;this.Dl=this.Z=!1;this.D=this.cG("ytp-doubletap-static-circle");g.y(this,this.G);g.y(this,this.K);this.hide();this.X=this.cG("ytp-doubletap-fast-forward-ve"); this.V=this.cG("ytp-doubletap-rewind-ve");this.B.createClientVe(this.X,this,28240);this.B.createClientVe(this.V,this,28239);this.B.logVisibility(this.X,!0);this.B.logVisibility(this.V,!0);this.Z=q.U("web_show_cumulative_seek_time");this.Dl=q.U("web_center_static_circles")}; t9D=function(q,Z){var F=F===void 0?y4B:F;return new nI(q,Z,F)}; pq7=function(q,Z){q.settingsButton=Z;q.element.id=Z.element.getAttribute("aria-controls")}; LyK=function(q,Z){this.K=this.D=0;this.D=Z.x-q.x;this.K=Z.y-q.y}; S1k=function(q,Z,F,B,f){if((q=q.D.get(Z))&&typeof q==="function")try{q(F,B,f)}catch(D){g.mM(D)}else Z=new g.M2("Unhandled field",Z),g.bh(Z)}; E_6=function(q,Z){Z=Z===void 0?document:Z;return Z.createElement(String(q).toLowerCase())}; S7=function(q,Z){return q.D.has(Z)}; TNG=function(q,Z,F,B,f){var D,G,n,b,N;return g.h(function(S){if(S.D==1)return D=tlg(W5g(iOg(new F_6,q.S3),Z),F),G=q.D(),g.R(S,B.Lt("c",q.S3,f,q.client.create(D,G)),2);n=S.K;b=MD(Kx(n,2));if(b.length)return S.return(CM(B,function(){for(var l=new Uint8Array(b.length),U=0;UMath.max(G.maxWidth||0,G.maxHeight||0)?n:G,Z={itag:F.itag,FE:Z,B1:D,maxWidth:Math.max(n.maxWidth||0,G.maxWidth|| 0),maxHeight:Math.max(n.maxHeight||0,G.maxHeight||0),maxFramerate:f,kt:F.kt},Sc(q,lj.BITRATE)&&(Z.maxBitrateBps=F.maxBitrateBps),q.D.set(B,Z)):q.D.set(B,G)}; o5K=function(q,Z){if(!q.jU()&&!Z.videoData.jU()){q.mY=Z;o$6(q.t0,q.mY);if(q.videoData.isLivePlayback){var F=LTZ(q.gq.Wa,q.videoData.videoId)||q.loader&&!isNaN(q.loader.k$);F=q.U("html5_onesie_live")&&F;Do(q)||q.videoData.Gb>0&&!vA(q.videoData)||F||q.seekTo(q.G3(),{V5:"videoplayer_playbackData",seekSource:18})}if(q.videoData.S.D){if(woX(q.videoData)){q.PL("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",NJ({missabrurl:1}));return}q.loader?g.bh(Error("Duplicated Loader")):(F=g.Ce(q.J.experiments,"html5_onesie_defer_content_loader_ms"))&& q.hS()&<Z(q.gq.Wa,q.videoData.J1G)?g.OT(function(){q.jU()||q.loader||wL(q)},F):wL(q)}else!q.videoData.S.D&&GR(q.videoData)&&q.vV(new RP(q.videoData.videoId||"",4)); q.Mf();PuG(Z).then(function(){var B={};q.cK(B);q.J.Nl()&&q.U("html5_log_media_perf_info")&&q.iL("av1Info",B);rT(q)})}}; PBb=function(q){this.fQ=q;this.K=!1;this.D=[]}; qa6=function(q){return!!q.K&&q.K.Uc!==-1&&q.K.Uc0&&(n=(f.U("html5_use_date_now_for_local_storage")?Date.now():(0,g.Le)())-n,f.U("html5_use_date_now_for_local_storage")?n>0&&(F.timeSinceLastManualFormatSelectionMs=n):F.timeSinceLastManualFormatSelectionMs=n));n=f.U("html5_use_streamer_bandwidth_for_low_latency_live")&&G.isLowLatencyLiveStream;if(D.Dl&&!n){var S; n=f.U("html5_disable_bandwidth_cofactors_for_sabr_live")?!((S=q.ME)==null||!S.sX):!1;F.qC=k2(D,!n)}n=g.MN.medium;N=Math.floor(n*16/9);(S=G.Sg())||(G.D&&G.S&&G.S.videoInfos.length!==0?(S=G.S.videoInfos[0],S=!!S.video&&S.video.width0?{authorizedFormats:q.authorizedFormats}:{authorizedFormats:Z};q.sabrLicenseConstraint&&(F.Co.sabrLicenseConstraint=q.sabrLicenseConstraint);if(f.U("html5_onesie_media_capabilities")||f.U("html5_enable_server_format_filter"))F.ph= 3;f.U("html5_onesie_audio_only_playback")&&KS(G)&&(F.ph=1);var Q;((Q=q.ME)==null?0:Q.yC)&&q.iaU&&(F.ph=F.ph===void 0?7:F.ph|4);Q=G.yC?G.yC:g.Br(G);f.U("html5_onesie_media_capabilities")&&(F.mediaCapabilities=g.xU9(G,Q,f));var a;if((a=q.ME)==null?0:oy(a)){U=f.Z;a=[];Z=[];u=new Map;P=Array.from(U.D.values());P=g.E(P);for(W=P.next();!W.done;W=P.next())H=W.value,H.B1?Z.push({audioCodec:QcZ[H.FE],numChannels:H.numChannels,spatialCapabilityBitmask:ZLX[H.FE]}):(X=OxZ[H.FE],W={videoCodec:X,maxWidth:H.maxWidth|| 0,maxHeight:H.maxHeight||0,maxFramerate:H.maxFramerate||0,is10BitSupported:H.kt||!1},H.maxBitrateBps&&(W.maxBitrateBps=H.maxBitrateBps,b=zH(H.itag),S=void 0,((S=b)==null?0:S.video)&&bl(Q,b,U)===!0&&(b=b.Ml*8,b>W.maxBitrateBps&&(W.maxBitrateBps=b))),H=X+"_"+H.kt,X=u.get(H)||[],X.push(W),u.set(H,X));a=pgG(a,u);U={};f.U("html5_ssff_denylist_opus_low")&&(U={itagDenylist:[249,350]});F.mediaCapabilities={videoFormatCapabilities:a,audioFormatCapabilities:Z,hdrModeBitmask:3,perPlaybackAttributes:U}}var m; if((m=q.ME)==null?0:m.D){F.v3=Q.v3;var c;F.NP=(c=q.ME)==null?void 0:c.NP}f.gj&&(F.Vp=f.gj);F.hx=q.IC;F.e0=q.e0;F.qM=q.qM;F.Wz=q.Wz;q.XI&&(F.Ylc=(0,g.Le)()-q.XI);q.hj&&f.U("html5_report_prefetch_requests")&&(F.hj=q.hj);s_||(F.FrF=!0);m=c_(D)*1E3;m>0&&(F.Yl=m);var e;((e=q.ME)==null?0:e.E9)&&q.xf&&q.xf0?Y:D.interruptions[0]||0;var Zg;if((Zg=q.ME)==null?0:Zg.Tb)F.r7=q.r7;f.eU&&(F.audioTrackId=f.eU);MI(G)&&!F.audioTrackId&&(f.U("html5_fill_default_mosaic_audio_track_id")||(q=qrK(G,f.U("html5_cdm_use_first_as_default_audio_track")),F.audioTrackId=q),G==null||G.iL("misstrkchg",{"default":F.audioTrackId}));if(G=kQK())F.detailedNetworkType=Fhy[G]||Fhy.other;f.U("html5_enable_voice_boost")&&(F.TYn=f.zE);return F}; SX=function(q,Z,F,B){km.call(this,q,{Y:"div",W:"ytp-image-background",T:[{Y:"img",W:"ytp-image-background-image"}]},"image-background",Z,F,B);this.hide()}; mkD=function(q){if(typeof q!=="string")throw Error();return q}; o29=function(q){if(!q)return BfB||(BfB=new AR(0,0));if(!/^-?\d+$/.test(q))return null;Bf(q);return new AR(KK,$v)}; f9K=function(q){J3&&q&&DE8(q)}; DVy=function(q,Z){var F=oM(q);return F&&F.info.type!==6?!EMk(Z,q,F.info.Uc):!1}; $6D=function(q){return D0X.includes("es-419")?q?UH():{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:q?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},T:[{Y:"path",L:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; tZk=function(q,Z){var F,B,f,D,G,n,b,N,S,l,U;return g.h(function(u){switch(u.D){case 1:F=Z.isAd(),B=!F,f=F?1:3,D=0;case 2:if(!(D0)){u.An(5);break}return g.R(u,f9(5E3),6);case 6:G=new g.M2("Retrying OnePlatform request",{attempt:D}),g.bh(G);case 5:return g.s4(u,7),g.R(u,DIg(q,Z),9);case 9:return u.return();case 7:n=g.If(u);b=cs(n);N=b.errorCode;S=q.C();l=S.U("html5_use_network_error_code_enums")?401:"401";B&&N==="manifest.net.badstatus"&&b.details.rc===l&&(B=!1,D===f-1&&(f+= 1));if(D===f-1)return U=Gqk(F,b.details),U.details.backend="op",U.details.originec=N,u.return(Promise.reject(U));if(N==="auth"||N==="manifest.net.retryexhausted")return u.return(Promise.reject(b));q.handleError(b);if(bY(b.severity)){u.An(4);break}case 3:D++;u.An(2);break;case 4:return u.return(Promise.reject(Gqk(F,{backend:"op"})))}})}; Zn=function(q,Z){Z=q.Nr({playerType:Z});if(!Z)return q.Kp.D.xx();Z=vZ(q,Z);return xA(q,Z.xx(),Z)}; zUD=function(q){return{enterMs:qc(q.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:qc(q.clientMetadata,"metadata_type_layout_exit_ms")}}; MaK=function(q){q=new g.pq(q);g.dA(q,document.location.protocol);g.f6(q,document.location.hostname);document.location.port&&g.O0(q,document.location.port);return q.toString()}; n$k=function(q,Z,F,B){if(!Z||!F||!Z.videoData.K)return!1;var f=g.Ce(q.J.experiments,"html5_df_downgrade_thresh"),D=q.U("html5_log_media_perf_info");if(!((0,g.Le)()-q.G<5E3?0:D||f>0))return!1;var G=((0,g.Le)()-q.G)/1E3;q.G=(0,g.Le)();F=F.getVideoPlaybackQuality();if(!F)return!1;var n=F.droppedVideoFrames-q.j,b=F.totalVideoFrames-q.V;q.j=F.droppedVideoFrames;q.V=F.totalVideoFrames;var N=F.displayCompositedVideoFrames===0?0:F.displayCompositedVideoFrames||-1;D&&q.J.Nl()&&q.Mp.iL("ddf",{dr:F.droppedVideoFrames, de:F.totalVideoFrames,comp:N});if(B)return q.D=0,!1;if((b-n)/G>q.PG||!f||g.em(q.J))return!1;q.D=(b>60?n/b:0)>f?q.D+1:0;if(q.D!==3)return!1;gQK(q,Z.videoData.K);q.Mp.iL("dfd",Object.assign({dr:F.droppedVideoFrames,de:F.totalVideoFrames},Kv8()));return!0}; a_9=function(q){return!!q.videoData.startSeconds&&isFinite(q.videoData.startSeconds)&&q.videoData.startSeconds>1E9}; bLb=function(q,Z){this.location=q;this.D=Z}; I4b=function(q){return g.oa("client-screen-nonce-store",{})[q===void 0?0:q]}; Jg=function(q,Z,F){F=F===void 0?!1:F;g.J.call(this);this.element=q;this.D=Z;this.X=F;this.j={};this.G=null;this.Z=new g.pO(this);this.S=this.K=null;g.y(this,this.Z)}; y_=function(q){if(q.S)if(g.vc(q.api.getRootNode(),"ytp-grid-scrolling"),q.api.getPresentingPlayerType()===2||q.api.pw()||q.api.isMinimized())Qk(q,0);else{var Z=g.p(q.api.getPlayerStateObject(),2);if(Z)Qk(q,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(q.isEnded&&!Z){var F=WG(q)?1:0;q.isEnded=Z;Qk(q,F)}else WG(q)?q.K!==2&&Qk(q,1):Qk(q,0);q.isEnded=Z}}; NfK=function(q){if(q.A8&&!q.U("html5_onesie_media_capabilities")){q.We("ogsf_s");var Z=TCX(q.Mp.getVideoData(),function(B,f){q.iL(B,f)}),F=L_y(q.Mp); Z.video=blD(F,Z.video);q.We("ogsf_c");if(Z.video.length)return Z;q.iL("ombspf","l."+F.K+";u."+F.D+";o."+F.S+";r."+F.reason)}}; Iy=function(q,Z,F,B){this.iM=q;this.wY=Z;this.D=F;this.G=B;this.S=void 0;this.K=new Map;q.Wh||(q.Wh={});q.Wh=Object.assign({},g$b,q.Wh)}; Q1=function(q,Z,F,B,f,D){D=D===void 0?!1:D;var G={Y:"div",rU:["ytp-input-slider-section"],T:[{Y:"input",W:"ytp-input-slider",L:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};f&&G.T.unshift(f);D&&G.rU.push("ytp-vertical-slider");g.w.call(this,G);this.S=q;this.Z=Z;this.X=F;this.initialValue=B;this.header=f;this.K=this.cG("ytp-input-slider"); this.D=B?B:q;this.init();this.N(this.K,"input",this.G);this.N(this.K,"keydown",this.j)}; NE=function(q,Z){var F=F===void 0?0:F;q=T8(q,Z);q=q==null?q:T2(q)?q|0:void 0;return q!=null?q:F}; t7=function(q,Z){if((Z=q.He.get(Z))&&!Z.TD){Z.TD=!0;if(Z.onProgress)Z.onProgress();a:{Z=g.E(q.He.values());for(var F=Z.next();!F.done;F=Z.next())if(!F.value.TD){Z=!1;break a}Z=!0}Z&&q.G.hO()}}; Q2=function(q){return navigator.requestMediaKeySystemAccess?g.l2&&!g.TP()?lY("45"):g.oV||g.D7?q.qp("edge_nonprefixed_eme"):g.Y2?lY("47"):g.GW&&q.qp("html5_enable_safari_fairplay")?!1:!0:!1}; g.UI=function(q,Z,F){g.AA.call(this,q);this.videoData=Z;this.audioTrack=F;this.D=null;this.G=!1;this.Z=Z.f8;this.V=Z.u4;this.G=g.lM(Z)}; qDb=function(q,Z){this.url=q;this.D=!!Z;this.depth=null}; g.LC=function(q,Z){g.J.call(this);var F=this;this.provider=q;this.S=new Map;this.CP=new g.h1;this.JZ={ldP:function(){return F.qoe}, E3a:function(){return F.D}, AML:function(){return F.K}}; this.provider.videoData.hP()&&!this.provider.videoData.Gs&&(this.D=new Zo(this.provider),this.D.K=0,g.y(this,this.D),this.qoe=new g.ia(this.provider,Z),g.y(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.h1=this.provider.videoData.clientPlaybackNonce)&&this.S.set(this.h1,this.D));if(q.J.playerCanaryState==="canary"||q.J.playerCanaryState==="holdback")this.K=new KH(this.provider),g.y(this,this.K)}; a6=function(q){this.D=q===void 0?null:q;this.S=0;this.K=null}; Z0=function(q,Z,F){var B=B===void 0?px:B;var f=zgB(q,Z);return f?new g.at(function(D,G){var n,b,N,S,l;return g.h(function(U){switch(U.D){case 1:return g.R(U,f,2);case 2:n=U.K;b=n.Z(Z,F,B);if(!b){G(new g.M2("Error: Failed to build request for command.",Z));U.An(0);break}wW(b.input);S=((N=b.DU)==null?void 0:N.mode)==="cors"?"cors":void 0;if(q.D.mP){l=yLg(q,b.config,S);U.An(4);break}return g.R(U,gfD(q,b.config,S),5);case 5:l=U.K;case 4:D(Psk(q,b,l)),g.C7(U)}})}):HI(new g.M2("Error: No request builder found for command.", Z))}; HSG=function(){}; Sak=function(){g.jJ(function(){var q=Ju();requestAnimationFrame(function(){setTimeout(function(){q===Ju()&&n4("ftl",void 0,void 0)},0)})})()}; HqD=function(){return g.ym("yt.ads.biscotti.lastId_")||""}; uM=function(q){var Z=null;try{Z=q.toLocaleString("es-419",{style:"percent"})}catch(F){Z=q.toLocaleString(void 0,{style:"percent"})}return Z}; sX=function(q,Z){q.Dl=NaN;q.PG=null;q.V.stop();q.G&&Z&&q.G.CF();q.j=null;q.G=null}; sKK=function(){g.w.call(this,{Y:"div",W:"ytp-fine-scrubbing-thumbnail"})}; l9y=function(q){var Z=g.uK("html5-video-player");Z&&g.hK(Z,"ytp-ad-display-override",q)}; jU6=function(q){var Z=q.V$().filter(function(B){return B.namespace==="ad"}); Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next())if(F=F.value,F.start/1E3>q.getCurrentTime())return F.start/1E3;return Infinity}; UVG=function(q,Z,F,B,f){var D=JS(q.K.get(),F);D?(F=YF(q,tS(D),D,void 0,void 0,B),Z.hasOwnProperty("baseUrl")?q.G.send(Z,F):q.S.send(Z,F,{},f)):Yp("Trying to ping from an unknown layout",void 0,void 0,{layoutId:F})}; g.rp=function(q){var Z;return q.zy||((Z=q.suggestions)==null?void 0:Z[0])||null}; pd=function(q){this.Ec=rE(q)}; Nyg=function(q,Z){if(DY(q.D,Z)&&rA(GK(q.D,Z))&&SV(q.D,Z)&&!WM(q.D,Z)){var F;q.yO.KD("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",Z,(F=SV(q.D,Z))!=null?F:void 0);q=GK(q.D,Z);q.D!=="entered"&&dw(q.slot,q.D,"enterLayoutForSlot");q.D="rendering";q.S.startRendering(q.layout)}}; Pk=function(q){return q.K.every(function(Z){return Z.hasOwnProperty("offsetMilliseconds")})}; zp=function(q,Z,F){Uv.call(this,null,q,Z,F);this.V=q.isActive();this.X=0}; O$=function(q){try{return Yy(q())}catch(Z){return gd7(Z)}}; ulG=function(q,Z){if(N6(q,g_)||q.api.isMinimized())return!1;var F=S4(Z.title),B=S4(Z.description);if(g.lO(F)||g.lO(B))return!1;q.createServerVe(q.K.element,Z.trackingParams||null);q.K.updateValue("title",S4(Z.title));q.K.updateValue("description",S4(Z.description));q.K.updateValue("displayUrl",S4(Z.displayUrl));q.K.updateValue("imageUrl",eqg(Z.image));Z.navigationEndpoint&&g.Uq(q.V,Z.navigationEndpoint);q.o_=Z.imageNavigationEndpoint||null;q.K.show();q.BG.start();q.logVisibility(q.K.element,!0);q.N(q.K.element, "mouseover",function(){q.uL++}); return!0}; XVg=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; CH=function(q,Z,F){for(var B in q.D){var f=q.D[B].index,D=Z,G=F;f.AS&&(D&&(f.D_=Math.max(f.D_,D)),G&&(f.Bu=Math.max(f.Bu||0,G)))}F&&(q.zP=F/1E3)}; ZVK=function(q,Z,F){q.onSuccess=Z;q.onError=F}; QP=function(q){fX.call(this,q);var Z=this;this.j=this.D=this.K=0;this.V=null;this.X=this.G=0;this.isEnded=!1;this.PG=null;var F=new g.pO(q);g.y(this,F);this.Y$=g.Ce(this.api.C().experiments,"web_player_default_peeking_px");this.dU=this.api.U("delhi_modern_player_enable_pause_peeking");this.BG=g.Ce(this.api.C().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.Oc=this.api.U("web_player_imax_theater_mode");this.S=this.api.U("web_player_enable_fullscreen_grid_components");this.k$=this.api.U("web_player_enable_more_videos_button"); g.e$(this.api.getRootNode(),"ytp-grid-scrollable");F.N(q,"fullscreentoggled",function(){oD(Z)}); F.N(q,"videodatachange",function(){if(Z.S){var B=Z.api.getVideoData(1);Z.videoData!==B&&Z.K===2&&(g.vc(Z.api.getRootNode(),"ytp-grid-scrolling"),Qk(Z,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));Z.videoData=B}},this); F.N(q,"sizestylechange",function(){Z.S&&oD(Z)}); hC(this.api,"setFullscreenQuickActions",function(B){Z.setFullscreenQuickActions(B)}); hC(this.api,"setPlayerOverlayVideoDetailsRenderer",function(B){Z.setPlayerOverlayVideoDetailsRenderer(B)}); this.S&&Wfb(this,F,q)}; P4k=function(q){if(q.S){var Z=q.options[q.S];Z.element.getAttribute("aria-checked");Z.element.setAttribute("aria-checked","false");q.S=null}}; ri=function(q,Z,F){if(iy(q.params.Di.GP.get(),!0)){var B=F.flush,f={};gD8(q,Z,(f.cts=F.currentTimeSec,f.f=B,f))}}; tF=function(q,Z){g.J.call(this);this.GP=q;this.D=Z;this.eventCount=0;this.K=OSK()()}; wQX=function(q,Z){g.w.call(this,{Y:"button",rU:["ytp-subtitles-button","ytp-button"],L:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:q.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},T:[q.U("delhi_modern_web_player_icons")?{Y:"div",W:"ytp-subtitles-button-icon",Ka:"{{icon}}"}:fA7(q)]});this.B=q;this.tooltip=Z.Iy();q.U("delhi_modern_web_player_icons")&&this.updateValue("icon", rcB(this));this.N(q,"videodatachange",this.ys);this.N(q,"appresize",this.ys);this.N(q,"promotooltipacceptbuttonclicked",this.DEL);this.N(q,"onApiChange",this.ys);this.N(q,"onCaptionsTrackListChanged",this.ys);this.N(q,"captionschanged",this.ys);this.B.createClientVe(this.element,this,127299);this.ys();this.listen("click",this.onClick);this.addOnDisposeCallback(g.BY(Z.Iy(),this.element))}; id=function(q){return q.D.getUint8(q.pos++)}; iSK=function(q,Z){q.publish("settingChange",q.setting+"Override",!Z);q.Pg.Yx()}; WhD=function(q,Z){if(Z.title){var F=g.HD(Z.title);q.updateValue("title",F)}if(Z.dialogMessages){F=g.E(Z.dialogMessages);for(var B=F.next();!B.done;B=F.next())B=N9(B.value),q.uL.appendChild(B)}Z.cancelLabel&&(F=g.HD(Z.cancelLabel),q.updateValue("cancelLabel",F),q.D.N(q.G,"click",function(f){return q.Ao(f)})); Z.confirmLabel&&(Z=g.HD(Z.confirmLabel),q.updateValue("confirmLabel",Z),q.D.N(q.Z,"click",function(f){return q.bX(f)})); q.D.N(q.V,"click",function(f){return q.hA(f)})}; ycB=function(q,Z,F){if(q.PG.length)for(var B=g.E(q.PG),f=B.next(),D={};!f.done;D={y7:void 0},f=B.next()){D.y7=f.value;f=D.y7.startSecs*1E3;var G=D.y7.jC*1E3+f;if(Z>f&&Zf&&F0&&(this.items=[]);q=g.E(q);for(F=q.next();!F.done;F=q.next())(F=F.value)&& this.items.push({video_id:F});this.length=this.items.length;if(q=Z.video)this.items=q.slice(0),this.loaded=!0}this.setShuffle(!!Z.shuffle);if(q=Z.suggestedQuality)this.quality=q;this.V=SZ(Z,"playlist_");this.S=(Z=Z.thumbnail_ids)?Z.split(","):[]}; rcB=function(q){if(q.B.U("delhi_modern_web_player_icons"))return q=D0X.includes("es-419")?oF(q)&&q.isEnabled()?{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z", fill:"white"}}]}:UH():oF(q)&&q.isEnabled()?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z", fill:"white"}}]}:enK()}; S6=function(q,Z){Z=Z===void 0?!1:Z;if(q.K){if(q.j){var F=q.K;q.app.lL.removeEventListener(g.UK("vqueued"),q.X);F.removeCueRange(q.j)}q.K=null;q.j=null}q.S&&(q.S.status.status!==6&&(F=q.S,F.status.status!==Infinity&&F.Z!==1&&F.uo("Canceled")),q.S=null);q.G=null;q.D&&!Z&&q.D!==q.app.Dv()&&q.D!==q.app.Vs()&&q.D.dispose();q.D&&Z&&q.D.ym();q.D=null;q.V=!1}; DSy=function(q){g.cz("always_send_and_write")&&(q.writeThenSend=!1)}; Dv=function(q,Z){var F;cU(q,function(B){F=Z[B];return!!F}); return F}; St=function(q){j3.call(this,q.Gn,q.slot,q.dR,q.wU,q.nB,q.XE,q.Zl,q.rq,q.Ep,q.tZ,q.b6,q.uJ,q.ag,q.vD,q.GP,q.Qz,q.Fy,q.context)}; XU=function(q){return q.kind==="AD_PLACEMENT_KIND_START"}; nJK=function(q){return cU(q.S,function(Z){return Z.pL})}; BUX=function(q,Z){Z=String.fromCharCode.apply(null,Z);return q==null?Z:q+Z}; AcD=function(q){q.Dl=NaN;q.V=0;q.X=q.S}; QJ=function(q,Z,F,B,f,D,G){g.J.call(this);this.policy=q;this.info=Z;this.Np=F;this.cg=f;this.logger=new g.Wz("sabr");this.CR=new MU(this);this.Ui=new nqk(this);this.P1=new bv(this);this.state=1;this.wP=!1;this.MH=0;this.clipId="";this.HY=-1;this.GB=0;this.ev=-1;this.hF=this.AK=this.w5=!1;this.policy.X1?this.nP=new Mw(this,D):this.nP=new eZ(this,D);this.lk=this.policy.Tb?Z.lW:VH8(Z,this.policy,B);this.lk.set("rn",""+this.HE());this.lk.set("alr","yes");izb(this.P1,F,q);this.Up=new oq(this,this.policy, this.lk,Z.m6,this.nP,this.logger,B,G,this.policy.enableServerDrivenRequestCancellation);WPG(this.Up);var n;if((n=this.policy)==null?0:n.uu)g.y(this,this.P1),g.y(this,this.Up);q=Z.K;Z={method:"POST",body:q};q&&(this.GB=q.length);try{this.xhr=p4(this.lk,this.policy.V,this.nP,s_,Z),this.policy.Du&&n8(this.nP,this.fP()),this.Up.K.start()}catch(b){g.bh(b)}}; b7y=function(q){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(q.D.index.fU()),averageByteRate:Math.round(q.D.info.Rp)}}; BYy=function(q){q.G&&(q.G.resolve(q.mediaElement.getCurrentTime()),q.Dl.K=null)}; jD=function(q,Z){var F;for(F=0;F0&&F.push(g.AV("BR"));F.push(g.T$(D))}):F.push(g.T$(B))}return F}; Ko=function(q){return q.type===3||q.type===6}; KdB=function(q,Z){Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next()){var B=F.value;F=B.reason;if(F==null)g.bh(Error("AdFeedbackReason.reason was not set."));else if(B=B.endpoint,B==null)g.bh(Error("AdFeedbackReason.endpoint was not set."));else{F=new m_(F,B);g.y(q,F);B=q.uL;var f=F.QO();B.appendChild(f);q.G.push(F)}}}; kqk=function(q){if(g.lO(g.lg(q)))return!1;if(q.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var Z=new g.pq(q)}catch(F){return g.s3(mVb,function(B){return q.search(B)>0})!=null}return Z.j.match(iL8)?!0:g.s3(mVb,function(F){return q.match(F)!=null})!=null}; TqD=function(q,Z){var F;return g.h(function(B){if(B.D==1)return g.R(B,g.aX(IR,Z),2);F=B.K;return B.return(g.e4(F,["databases"],{Wg:!0,mode:"readwrite"},function(f){var D=f.objectStore("databases");return D.get(q.actualName).then(function(G){if(G?q.actualName!==G.actualName||q.publicName!==G.publicName||q.userIdentifier!==G.userIdentifier:1)return g.TB(D,q).then(function(){})})}))})}; Sw=function(q){var Z;q=gK((Z=q.serializedClientExperimentFlags)!=null?Z:"","&");this.flags=new Map(Object.entries(q).map(function(F){var B=g.E(F);F=B.next().value;B=B.next().value;return typeof B==="string"?[F,B]:[F,B[0]]}))}; sTZ=function(q){if(!q.stack)return!0;var Z=!q.stack.includes("\n");return Z&&q.stack.includes("ErrorType: ")||Z&&q.stack.includes("Anonymous function (Unknown script")||q.stack.toLowerCase()==="not available"||q.fileName==="user-script"||q.fileName.startsWith("user-script:")?!0:!1}; I9B=function(q,Z){var F=sp6(Z),B=Ubb(Z);if(!Z.SW||!q.B.tj())if(q.D||q.B.U("enable_paid_content_overlay_bugfix")){if(Z.videoId&&Z.videoId!==q.videoId){var f;(f=q.D)==null||g.HP(f);!q.B.U("enable_paid_content_overlay_bugfix")||F&&B?(q.videoId=Z.videoId,q.S=!!B,q.S&&F&&jTb(q,B,F,Z)):q.S=!1}}else F&&B&&!q.B.U("enable_paid_content_overlay_bugfix")&&jTb(q,B,F,Z)}; C4K=function(q,Z){Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var B=void 0,f=Number((B=F.playbackPosition)==null?void 0:B.utcTimeMillis)/1E3,D=void 0;B=f+Number((D=F.duration)==null?void 0:D.seconds);D="embargo_"+f;q.api.addUtcCueRange(D,f,B,"embargo",!1);F.onEnter&&(q.D[D]=F.onEnter.filter(q.K))}}; a0K=function(q){var Z,F,B=(F=(Z=q.Mp.Mi())==null?void 0:Z.getCurrentTime())!=null?F:q.Mp.getCurrentTime(),f=q.G.eI(B);ntB(q,f,B,!0);q.isSeeking=!1;Array.from(q.K.keys()).sort(function(D,G){return D-G}).forEach(function(D){D>f?X0(q,D,q.K.get(D)):D===f&&X0(q,D,q.K.get(D),B-q.G.getStartTime(D))})}; c6=function(q,Z,F){q.Dl=Z;q.Gb=F;var B=cp(q),f=q.S.D,D=S_D(q.S,q.Dl),G=g.wz("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.Pv(D,!0),DURATION:g.Pv(f,!0)}),n=tq(q.D,D*1E3);n=q.D[n].title;q.update({ariamin:Math.floor(q.S.K),ariamax:Math.floor(f),arianow:Math.floor(D),arianowtext:n?n+" "+G:G});f=q.clipStart;D=q.clipEnd;q.Rh&&q.api.getPresentingPlayerType()!==2&&(f=q.Rh.startTimeMs/1E3,D=q.Rh.endTimeMs/1E3);f=s7(q.S,f,0);n=s7(q.S,D,1);G=q.api.getVideoData();D=g.JY(Z,f,n);F=(G==null?0:g.X4(G))?1:g.JY(F, f,n);Z=BB(q,Z,B);g.u$(q.fD,"transform","translateX("+Z+"px)");q.api.U("delhi_modern_web_player")&&q.api.U("delhi_modern_web_player_cutout")&&Iu(q,Z);HU(q,B,f,D,"PLAY_PROGRESS");(G==null?0:Lj(G))?(Z=q.api.getProgressState().seekableEnd)&&HU(q,B,D,s7(q.S,Z),"LIVE_BUFFER"):HU(q,B,f,F,"LOAD_PROGRESS");if(q.api.U("web_player_heat_map_played_bar")){var b;(b=q.G[0])!=null&&b.j.setAttribute("width",(D*100).toFixed(2)+"%")}}; eI7=function(q){try{var Z=Pf('video/mp4; codecs="avc1.42001E"')||Pf('video/webm; codecs="vp9"');return(Pf('audio/mp4; codecs="mp4a.40.2"')||Pf('audio/webm; codecs="opus"'))&&(Z||!q)||UT('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(F){return"html5.missingapi"}}; hU=function(q,Z,F){if(Array.isArray(Z))for(var B=0;BB)return viX(q,D.config),YF6(q,D.configData),ky(q,D.hashData),n.return(DO());case 2:Eu7(q);if(!(F&&q.D&&q.coldHashData&&q.configData)){n.An(4);break}return g.R(n,D9K(q.D, q.coldHashData,q.configData,F,B),4);case 4:return q.D?n.return(DO()):(G=new g.M2("Config not available in ytConfig"),i2(G),n.return(Promise.reject(G)))}})}; M0g=function(q,Z,F,B,f){var D=Z.gM/Z.rows,G=Math.min(F/(Z.EU/Z.columns),B/D),n=Z.EU*G,b=Z.gM*G;n=Math.floor(n/Z.columns)*Z.columns;b=Math.floor(b/Z.rows)*Z.rows;var N=n/Z.columns,S=b/Z.rows,l=-Z.column*N,U=-Z.row*S;f&&D<=45&&(S-=1/G);N-=2/G;q=q.style;q.width=N+"px";q.height=S+"px";f||(B=(B-S)/2,F=(F-N)/2,q.marginTop=Math.floor(B)+"px",q.marginBottom=Math.ceil(B)+"px",q.marginLeft=Math.floor(F)+"px",q.marginRight=Math.ceil(F)+"px");q.background="url("+Z.url+") "+l+"px "+U+"px/"+n+"px "+b+"px"}; rg6=function(q){return q.info.D.info.cL()&&nz(q.K,0)===160}; FG=function(q,Z,F){return typeof q==="string"?(q=encodeURI(q).replace(Z,ofb),F&&(q=q.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),q):null}; j9G=function(q,Z){var F=[];Z=g.E(Z);for(var B=Z.next();!B.done;B=Z.next())F.push(g.Kc(B.value,q.Np.d2));return F}; RUK=function(q){q.Oy.onProgress();if(RS(q.videoData)&&Date.now()>q.uX+6283){if(q.U("html5_unified_live_latency_reporting")){var Z=q.Oy;Z.qoe&&hUy(Z.qoe)}else!q.isAtLiveHead()||q.videoData.D&&iU(q.videoData.D)||(Z=q.Oy,Z.qoe&&hUy(Z.qoe));Z=g.Za(q.J);var F=q.U("html5_always_log_rawlat");(Z||F)&&q.iL("rawlat",{l:Rv(q.MO,"rawlivelatency").toFixed(3)});q.uX=Date.now()}q.videoData.K&&DK(q.videoData.K)&&(Z=q.qz())&&Z.videoHeight!==q.PT&&(q.PT=Z.videoHeight,Qa(q,"a",cBy(q,q.videoData.o_)))}; Fj9=function(q){return q.gq.C().U("html5_gapless_no_clear_buffer_timeline")&&q.Z===1&&Im(q.D.getVideoData())}; o0=function(q,Z,F,B){function f(G){var n=!(G.status!==204&&G.status!==200&&!G.response),b;G={succ:""+ +n,rc:G.status,lb:((b=G.response)==null?void 0:b.byteLength)||0,rt:((0,g.Le)()-D).toFixed(),shost:g.Mg(q),trigger:Z};Q88(G,q);F&&F(G);B&&!n&&B(new g.xX("pathprobe.net",G))} var D=(0,g.Le)();g.QN(q,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:f,onTimeout:f})}; Sj=function(q){return!!(q.PLU&&q.slot&&q.layout)}; yW=function(q,Z){var F,B=ccD(q,(F=Z.D)==null?void 0:F.videoInfos);F=q.Mp.getPlaybackRate();return F>1&&B?(q=UTK(q.J.Z,Z.D.videoInfos,F),new ob(0,q,!0,"o")):new ob(0,0,!1,"o")}; JcZ=function(q,Z,F){if(F>=q.D.length)return!1;var B=q.j-uE(q)*q.BG;return Math.abs(Z-q.D[F].startTime/1E3)/q.S.D*B<4}; qoB=function(q,Z,F){if(DY(q.D,Z)&&rA(GK(q.D,Z))){var B=SV(q.D,Z);if(B&&WM(q.D,Z))hsK(q,Z,B,F?"error":"abandoned");else{q.yO.cX("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",Z);try{var f=GK(q.D,Z);if(!f)throw new K("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");f.D!=="enter_requested"&&f.D!=="entered"&&f.D!=="rendering"&&dw(f.slot,f.D,"exitSlot");f.D="exit_requested";if(f.K===void 0)throw f.D="scheduled",new K("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");f.K.n3()}catch(D){D instanceof K&&D.Yu?(q.yO.Mg("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",D.Yu,Z),Yp(D,Z,void 0,void 0,D.zG)):(q.yO.Mg("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Z),Yp(D,Z))}}}}; Lk=function(q){this.D=q}; Ao7=function(q,Z){var F=F===void 0?0:F;var B;return(B=ee(T8(q,Z)))!=null?B:F}; Ya6=function(q,Z){aL(q,2,Z.Td);aL(q,5,Z.encryptedClientKey);aL(q,6,Z.iv);aL(q,7,Z.S0);Wt(q,10,Z.Wdn);Wt(q,13,Z.ew);Wt(q,14,Z.ou);aL(q,16,Z.NY$);Wt(q,17,Z.L3L)}; yL=function(q,Z){var F=0,B=-1;q=g.E(q);for(var f=q.next();!f.done;f=q.next())if(f=f.value,!(f.startTimeMs+f.durationMsZ||B>=0&&f.BE>B+1)break;F=Math.max(F,f.startTimeMs+f.durationMs);B=Math.max(B,f.zD)}return Math.max(0,F-Z)}; tWK=function(q,Z){q=g.E(q.Dl);for(var F=q.next();!F.done;F=q.next())if(F=F.value,F.HY===Z)return F.vep?2:1;return 0}; vV=function(q){q=q||window.event;var Z;q.composedPath&&typeof q.composedPath==="function"?Z=q.composedPath():Z=q.path;Z&&Z.length?q=Z[0]:(q=q||window.event,q=q.target||q.srcElement,q.nodeType==3&&(q=q.parentNode));return q}; RVb=function(q,Z,F){var B;(B=q.D.get(F))==null||B.delay.dispose();q.D.delete(F);return new Promise(function(f){f={id:F,mediaTime:Z,delay:new g.im(function(){}), resolve:f};q.D.set(F,f);DP(q,f)})}; jqD=function(q){if(!q.D&&!q.S.isEmpty()){var Z=q.S.remove();q.D=I2D(q,Z)}}; qvG=function(q){if(!q)return null;switch(q.iconType){case "ACCOUNT_CIRCLE":return{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{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{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{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 uj8();case "HIDE":return{Y:"svg",L:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"g",T:[{Y:"path",L:{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 nG()}}; FI=function(q,Z){q.D.objectStoreNames.contains(Z)&&q.D.deleteObjectStore(Z)}; Bay=function(q,Z){var F=4320;!q.J.K||g.H_(q.J)||q.J.U("hls_for_vod")||q.J.U("mweb_remove_360p_cap")||(F=g.MN.medium);var B=g.Ce(q.J.experiments,"html5_default_quality_cap");B&&Z.D.D&&(q.J.U("html5_always_apply_default_quality_cap")||!Z.videoData.R6&&!Z.videoData.Ni)&&(F=Math.min(F,B));B=g.Ce(q.J.experiments,"html5_random_playback_cap");var f=/[a-h]$/;B&&f.test(Z.videoData.clientPlaybackNonce)&&(F=Math.min(F,B));if(f=B=g.Ce(q.J.experiments,"html5_hfr_quality_cap"))a:{f=Z.D;if(f.D){f=g.E(f.videoInfos); for(var D=f.next();!D.done;D=f.next())if(D.value.video.fps>32){f=!0;break a}}f=!1}f&&(F=Math.min(F,B));(B=g.Ce(q.J.experiments,"html5_live_quality_cap"))&&Z.videoData.isLivePlayback&&(F=Math.min(F,B));F=QBX(q,Z,F);q=g.Ce(q.J.experiments,"html5_byterate_soft_cap");return new ob(0,F===4320?0:F,!1,"d",q)}; vA=function(q){return!(!q.D||!q.D.isManifestless)}; hoZ=function(q,Z,F,B,f,D,G,n,b,N,S,l,U){var u={layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA",bL:F};f=[new QA(f),new ag(b),new Zv(B.externalVideoId),new pf(n),new Te({impressionCommands:B.impressionCommands,abandonCommands:B.onAbandonCommands,completeCommands:B.completeCommands,progressCommands:B.adVideoProgressCommands}),new Ad(D),new xE({current:null}),new dR(G)];(D=B.playerOverlay.instreamAdPlayerOverlayRenderer)&&f.push(new av(D));(G=B.playerOverlay.playerOverlayLayoutRenderer)&&f.push(new to(G)); l&&f.push(new Mt(l));(l=B.playerUnderlay)&&f.push(new eL(l));n=nK(q.K.get(),"SLOT_TYPE_IN_PLAYER");l=(l=D?D.elementId:G==null?void 0:G.layoutId)?l:Bs(q.K.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",n);f.push(new is(l));f.push(new YK(n));f.push(new gG(b.adPodIndex));B.adNextParams&&f.push(new Kf(B.adNextParams));B.shrunkenPlayerBytesConfig&&f.push(new lW(B.shrunkenPlayerBytesConfig));B.clickthroughEndpoint&&f.push(new $K(B.clickthroughEndpoint));B.legacyInfoCardVastExtension&&f.push(new nf(B.legacyInfoCardVastExtension)); B.sodarExtensionData&&f.push(new lC(B.sodarExtensionData));S&&f.push(new xM(S));f.push(new VY(Fk(B.pings)));b=Zk(B.pings);if(U){a:{U=g.E(U);for(S=U.next();!S.done;S=U.next())if(S=S.value,S.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(D=g.C(S.fulfillmentContent.fulfilledLayout,Es))&&(D=g.C(D.renderingContent,ud))&&D.associatedPlayerBytesLayoutId===Z){U=S;break a}U=void 0}U&&f.push(new Tr(U))}return{layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA",ud:b,layoutExitNormalTriggers:[new Dx(q.D,Z)],layoutExitSkipTriggers:B.skipOffsetMilliseconds? [new Xi(q.D,l)]:[],layoutExitMuteTriggers:[new Xi(q.D,l)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:F,M0:f,Xe:N(u),adLayoutLoggingData:B.adLayoutLoggingData}}; wJ=function(q){var Z=q.getStatus();a:switch(Z){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var F=!0;break a;default:F=!1}if(!F){if(Z=Z===0)q=g.oi(String(q.V))[1]||null,!q&&g.W5.self&&g.W5.self.location&&(q=g.W5.self.location.protocol.slice(0,-1)),Z=!pQ9.test(q?q.toLowerCase():"");F=Z}return F}; VW8=function(q){var Z;return(Z=q[dVb])!=null?Z:q[dVb]=new Map(USD(kDy(q)).map(function(F){return[F.getName(),nP(F,2)]}))}; a49=function(q,Z,F,B){if(Z&&!Z.hasAttribute)q=new g.M2("showElementTooltip called with non-element.",Z.toString()),g.mM(q);else{isNaN(q.G)||(q.G=NaN,q.bg.style.background="");g.vc(q.element,"ytp-tooltip-progress-bar-style");q.D=Z;q.X=!!B;B?q.S=B:(q.env.U("player_tooltip_data_title_killswitch")?q.S=Z.getAttribute("title"):q.S=Z.getAttribute("data-tooltip-title"),q.env.U("player_tooltip_data_title_killswitch")?Z.removeAttribute("title"):Z.removeAttribute("data-tooltip-title"));g.xd(q.element,"ytp-tooltip"); var f=Z.getAttribute("data-tooltip-image");f&&(q.image.style.backgroundImage="url("+f+")");B?q.update({ariaHidden:"false"}):q.update({ariaHidden:"true"});g.hK(q.element,"ytp-tooltip-image-enabled",!!f);Z=Z.getAttribute("data-tooltip-opaque");g.hK(q.element,"ytp-tooltip-opaque",!!Z);q.type=F;q.api.addEventListener("appresize",q.Dl);q.j&&(k6(q),q.fade.show(0))}}; w5b=function(q,Z){if(!q.jU()){q.X$({onInitData:1});if(q.J.U("html5_eme_loader_sync")&&q.videoData.S&&q.videoData.S.D){var F=q.X.get(Z.initData);Z=q.j.get(Z.initData);if(!F||!Z)return;Z=F;F=Z.initData;q.j.remove(F);q.X.remove(F)}q.X$({initd:Z.initData.length,ct:Z.contentType});if(q.D.flavor==="widevine")if(q.k$&&!q.videoData.isLivePlayback)fS(q);else{if(!(q.J.U("vp9_drm_live")&&q.videoData.isLivePlayback&&Z.cL)){q.k$=!0;F=Z.cryptoPeriodIndex;var B=Z.D;TcK(Z);Z.cL||(B&&Z.D!==B?q.publish("ctmp","cpsmm", {emsg:B,pssh:Z.D}):F&&Z.cryptoPeriodIndex!==F&&q.publish("ctmp","cpimm",{emsg:F,pssh:Z.cryptoPeriodIndex}));q.publish("widevine_set_need_key_info",Z)}}else q.ZF(Z)}}; OL=function(q,Z){return new g.u8(Math.max(0,q-5E3),Z?0x8000000000000:q-1,{namespace:"childplayback",priority:9})}; d78=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u,P){B=nK(B,"SLOT_TYPE_PLAYER_BYTES");q=GDZ(f,q,G,F,B,b,N);if(q instanceof K)return q;var W;N=(W=qc(q.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:W.layoutId;if(!N)return new K("Invalid adNotify layout");Z=hSg(N,f,D,F,n,Z,b,S,l,U,u,P,G);return Z instanceof K?Z:[q].concat(g.YB(Z))}; $d=function(q,Z){var F=id(q);if(F===1){for(Z=F=0;Z<7;Z++)F=F*256+id(q);return F}for(var B=128,f=0;f<6&&B>F;f++)F=F*256+id(q),B*=128;return Z?F-B:F}; g.vn=function(q){q=tz(q.JW);return q==="www.youtube-nocookie.com"?"www.youtube.com":q}; Wk=function(q,Z,F){F=F===void 0?!1:F;var B=q.C().dU?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:q.U("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};B=q.U("delhi_modern_web_player")?{Y:"div",W:"ytp-mute-button",T:[{Y:"button",L:B,rU:["ytp-volume-icon", "ytp-button"],Ka:"{{icon}}"}]}:{Y:"button",rU:["ytp-mute-button","ytp-button"],L:B,T:[{Y:"div",W:"ytp-volume-icon",Ka:"{{icon}}"}]};g.w.call(this,B);this.B=q;this.BG=F;this.K=null;this.j=this.zP=this.V=this.X=NaN;this.k$=this.Dl=null;this.Z=[];this.G=[];this.visible=!1;this.S=this.D=this.uL=null;q.U("delhi_modern_web_player")&&this.update({"data-priority":4});F=this.B.C();this.updateValue("icon",SS());this.tooltip=Z.Iy();this.updateValue("dataTooltipOffsetY",0);this.S=g.uK("ytp-volume-icon",this.element); B=this.B.U("delhi_modern_web_player_icons")?{Y:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",rU:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],L:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{Y:"path",W:"ytp-svg-volume-animation-small-ripple",L:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{Y:"path",W:"ytp-svg-volume-animation-big-ripple",L:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"defs",T:[{Y:"clipPath",L:{id:"ytp-svg-volume-animation-mask"},T:[{Y:"path",L:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Y:"path",L:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{Y:"path",W:"ytp-svg-volume-animation-mover",L:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{Y:"clipPath",L:{id:"ytp-svg-volume-animation-slash-mask"},T:[{Y:"path",W:"ytp-svg-volume-animation-mover", L:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{Y:"path",Sn:!0,rU:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],L:{"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"}},{Y:"path",Sn:!0,rU:["ytp-svg-fill","ytp-svg-volume-animation-hider"],L:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.K=new g.i0(B);g.y(this,this.K);this.Dl=this.K.cG("ytp-svg-volume-animation-speaker");this.k$=this.Dl.getAttribute("d");this.Z=g.Fn("ytp-svg-volume-animation-mover",this.K.element);this.B.U("delhi_modern_web_player_icons");this.G=g.Fn("ytp-svg-volume-animation-hider",this.K.element);this.B.U("delhi_modern_web_player_icons");this.dU=new Y8;g.y(this,this.dU);this.Y$=new Y8;g.y(this,this.Y$);this.N(q,"appresize",this.PU);this.N(q,"onVolumeChange",this.onVolumeChange);q.U("delhi_modern_web_player")? this.listen("click",this.z0p):this.listen("click",this.GM);F.dU?(q.U("delhi_modern_web_player")&&!q.U("delhi_modern_web_player_horizontal_volume_controls")&&(this.D=new zjg(q,Z),this.D.R_(this.element),g.y(this,this.D),this.N(this.S,"mouseover",this.My),this.N(this.S,"focus",this.My),this.N(this.S,"mouseout",this.Db),this.N(this.S,"blur",this.Db)),F=q.U("delhi_modern_web_player")?this.S:this.element,this.addOnDisposeCallback(g.BY(Z.Iy(),F))):syX(this);this.message=null;q.createClientVe(this.element, this,28662);this.PU(q.Ca().getPlayerSize());this.setVolume(q.getVolume(),q.isMuted())}; M_K=function(q,Z){zj(q,{sdpvrq:1});q.j=Date.now();if(q.K.flavor!=="widevine")q.error("drm.provision",1,"e.flavor;f."+q.K.flavor+";l."+Z.byteLength);else{var F={cpn:q.videoData.clientPlaybackNonce};Object.assign(F,q.J.D);F=g.gJ("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",F);Z={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,Z)}), responseType:"arraybuffer"};g.Zy(F,Z,3,500).then(hd(function(B){B=B.xhr;if(!q.jU()){B=new Uint8Array(B.response);var f=String.fromCharCode.apply(null,B);try{var D=JSON.parse(f)}catch(G){}D&&D.signedResponse?(q.publish("ctmp","drminfo",{provisioning:1}),D=(Date.now()-q.j)/1E3,q.j=NaN,q.publish("ctmp","provs",{et:D.toFixed(3)}),q.S&&q.S.update(B)):(D=D&&D.error&&D.error.message,B="e.parse",D&&(B+=";m."+D),q.error("drm.provision",1,B))}}),hd(function(B){q.jU()||q.error("drm.provision",1,"e."+B.errorCode+ ";c."+(B.xhr&&B.xhr.status))}))}}; doZ=function(q){if(!RS(q.videoData))return NaN;var Z=0;q.loader&&q.videoData.D&&(Z=vA(q.videoData)?q.loader.Ee.Cm()||0:q.videoData.D.dU);return(0,g.Le)()/1E3-q.rh()-Z}; eO=function(q){if(!q.U("use_rta_for_player"))if(q.U("fetch_att_independently"))g.$t(q.jp);else{var Z=q.getVideoData().botguardData;Z&&g.Rf(Z,q.J,q.getVideoData().Z3||"")}}; eU6=function(q,Z){q.Gf.push(Z);for(var F=!1,B=g.E(q.listeners),f=B.next();!f.done;f=B.next())F=f.value.zM(Z)||F;q.G=F;pD(q.GP.get())&&Jl(q.wU.get(),"onci","cpi."+Z.identifier+";cpe."+Z.event+";cps."+Z.startSecs+";cbi."+F)}; TfG=function(q,Z){return Z.priority-q.priority}; MWK=function(q){var Z=q.provider.videoData.TZ,F=q.provider.videoData.Eb,B=[10+Z,10,10,40+F-Z,40],f,D=(f=q.provider.videoData.getPlayerResponse())==null?void 0:f.playbackTracking,G=D==null?void 0:D.videostatsScheduledFlushWalltimeSeconds;f=D==null?void 0:D.videostatsDefaultFlushIntervalSeconds;if(!(G&&G.length>0&&f))return B;Z=[G[0]+Z].concat(g.YB(G.slice(1).map(function(n,b){return n-G[b]})),[f+F-Z, f]);return Z.some(function(n){return n<0})?(g.md(q.logger,347111855,"Neg vss scheduled pings "+G+" "+f),B):Z}; g.h1=function(q,Z,F){this.xb=Z===void 0?null:Z;this.seekSource=F===void 0?null:F;this.state=q||64}; oBE=function(q,Z){q.index=g.JY(Z,0,q.length-1);q.startSeconds=0}; gW=function(q,Z,F){var B=this;this.requestType=q;this.m6=Z;this.cg=F;this.K=null;this.JZ={hj:function(){var f;return(f=B.data)==null?void 0:f.hj}, b1:function(){var f;return(f=B.data)==null?void 0:f.b1}, Wz:function(){var f;return(f=B.data)==null?void 0:f.Wz}}}; qKj=function(q,Z){Yp(Z+": undefined adapter",q.slot,q.layout)}; g.zR=function(q,Z,F,B){ow(q,F,Z.toFixed(3)+":"+B.join(":"))}; dAD=function(q,Z){if(Z.k0)for(var F=0;F0){for(var B=g.E(Z),f=B.next();!f.done;f=B.next())f=f.value,f.startTime-=q.K,f.endTime-=q.K;F.D-=q.K}else F.D=q.D.D;F.segments=Z;return F}; Z78=function(q,Z,F){for(var B=!1,f=g.E(q.rF.entries()),D=f.next();!D.done;D=f.next())D=g.E(D.value).next().value,D.slotType==="SLOT_TYPE_PLAYER_BYTES"&&D.bL==="core"&&(B=!0);if(B){a:if(!F){q=g.E(q.rF.entries());for(F=q.next();!F.done;F=q.next())if(B=g.E(F.value),F=B.next().value,B=B.next().value,F.slotType==="SLOT_TYPE_IN_PLAYER"&&F.bL==="core"){F=B.layoutId;break a}F=void 0}F?Z.Yj(F):Yp("No triggering layout ID available when attempting to mute.")}}; xBD=function(){this.csn=g.qx();this.clientPlaybackNonce=null;this.elements=new Set;this.S=new Set;this.D=new Set;this.K=new Set}; W9D=function(q,Z){var F=q.Rh!==Z;q.Rh=Z;F&&xeX(q)}; Ds=function(q,Z){q.D.set(Z.zZ,Z);var F=q.S.get(Z.zZ);if(F)try{F.wQ(q.resolve(Z.zZ))}catch(B){F.TM(B)}}; U48=function(q,Z,F,B){var f="fmt.unplayable",D=1;F===5||F===3?(f="fmt.unparseable",q.policy.D?!B.D.info.video||U_(q.G.D).size>0||mu(q.G.D,B.D,!1):!B.D.info.video||U_(q.D.Z).size>0||i3(q.D,B.D)):F===2&&(q.w2<15?(q.w2++,f="html5.invalidstate",D=0):f="fmt.unplayable");B=Nn(B);var G;B.mrs=(G=q.gU)==null?void 0:WO(G);B.origin=Z;B.reason=F;B.trg="appenderr";q.handleError(f,B,D)}; F$=function(q){var Z=q.pos;q.pos=0;var F=1E6;K1(q,[408125543,357149030,2807729])&&(F=DS(q));q.pos=Z;return F}; okB=function(q,Z,F){q.K=Z;q.startTime=(0,g.Le)();q.duration=F;q.D()}; Z_G=function(q){q=q===void 0?{}:q;return g.iv.invoke(q)}; Fb0=function(q){if(q.started&&!q.jU()){q.G.stop();var Z=q.Mp.getPlayerState();g.p(Z,32)&&q.V.start();for(var F=bGG(q),B=q.isEnded(Z,F),f=[],D=[],G=g.E(q.K),n=G.next();!n.done;n=G.next())n=n.value,n.active&&(B?n.end<0x8000000000000:!n.contains(F))&&D.push(n);f=f.concat(Zx9(q,D));G=D=null;B?(Z=UL(q.D,0x7ffffffffffff),D=Z.filter(function(b){return b.end<0x8000000000000}),G=dJ6(q.D)):Z=q.S<=F&&Oi(Z)?zGD(q.D,q.S,F):UL(q.D,F); f=f.concat(tDk(q,Z));D&&(f=f.concat(Zx9(q,D)));G&&(f=f.concat(tDk(q,G)));q.S=F;s2K(q,f)}}; jgD=function(q,Z){if(Z>q.F3())q.segments=[];else{var F=K4(q.segments,function(B){return B.Uc>=Z},q); F>0&&q.segments.splice(0,F)}}; VpG=function(q,Z){switch(q.style){case t3.CHAPTER_MARKER:return Z?8:5;case t3.AD_MARKER:return 6;case t3.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; yf=function(q,Z){g.e$(q.B.getRootNode(),Z)}; QA6=function(q){var Z;return(q==null?void 0:(Z=q.adSlotMetadata)==null?void 0:Z.slotType)==="SLOT_TYPE_IN_PLAYER"}; L0=function(q){ZlK();fYD();q.timerName=""}; G_X=function(q){var Z,F=(Z=qc(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Z.current;if(!F)return null;Z=qc(q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var B=q.layoutId,f=qc(q.clientMetadata,"metadata_type_content_cpn"),D=qc(q.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),G=qc(q.clientMetadata,"metadata_type_player_underlay_renderer"),n=qc(q.clientMetadata,"metadata_type_ad_placement_config"),b=qc(q.clientMetadata,"metadata_type_video_length_seconds"); var N=Kh(q.clientMetadata,"metadata_type_layout_enter_ms")&&Kh(q.clientMetadata,"metadata_type_layout_exit_ms")?(qc(q.clientMetadata,"metadata_type_layout_exit_ms")-qc(q.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{v5:B,contentCpn:f,gi:F,VP:Z,instreamAdPlayerOverlayRenderer:D,instreamAdPlayerUnderlayRenderer:G,adPlacementConfig:n,videoLengthSeconds:b,qZ:N,inPlayerLayoutId:qc(q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:qc(q.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; zH=function(q,Z){Z=Z===void 0?!1:Z;var F=Rs[q],B=cOK[F],f=BXm[q];if(!f||!B)return null;Z=new C1(Z?f.height:f.width,Z?f.width:f.height,f.fps);B=hE(B,Z,F);return new p1(q,B,{video:Z,Ml:f.bitrate/8})}; MVD=function(q,Z,F,B,f){try{if(F){var D=b$.get(Z);if(D)return new D(q.B);bMX(q,Z,B,f)}else Q3(q,Z)}catch(G){Q3(q,Z),g.mM(G)}return null}; fg5=function(q,Z,F,B,f,D,G){g.u8.call(this,Z,F,{id:q,namespace:"ad",priority:f,visible:B,associatedClipId:D,markerPositionMs:G})}; XlK=function(q,Z,F,B,f,D,G){if(q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(G=g.C(q.renderingContent,ud))if(G=g.C(G.sidePanel,UK8)){var n={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,bL:"core"};Z=X3(q,Z,F);q=Z instanceof K?Z:Object.assign({},n,{renderingContent:q.renderingContent,ud:new Map([["impression",G.impressionPings||[]],["resume",G.resumePings||[]]])},Z,{Xe:Ou(B,f)(n),clientMetadata:new zX([new QA(Xk(D))]),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})}else q= new K("DismissablePanelTextPortraitImageRenderer is missing");else q=new K("SqueezebackPlayerSidePanelRenderer is missing");else q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.C(q.renderingContent,ggg)?(G={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,bL:"core"},Z=X3(q,Z,F),q=Z instanceof K?Z:Object.assign({},G,{renderingContent:q.renderingContent,ud:new Map},Z,{Xe:Ou(B,f)(G),clientMetadata:new zX([new QA(Xk(D))]),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})): q=new K("CounterfactualRenderer is missing"):q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?q=new K("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?q=new K("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.C(q.renderingContent,SGg)?(D={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType, bL:"core"},Z=X3(q,Z,F),q=Z instanceof K?Z:G?Object.assign({},D,{renderingContent:q.renderingContent,ud:new Map},Z,{Xe:Ou(B,f)(D),clientMetadata:new zX([new yY(G)]),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData}):new K("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):q=new K("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.C(q.renderingContent,Ks)?(D= {layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,bL:"core"},Z=X3(q,Z,F),q=Z instanceof K?Z:Object.assign({},D,{renderingContent:q.renderingContent,ud:new Map([])},Z,{Xe:Ou(B,f)(D),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new zX([])})):q=new K("AdsEngagementPanelSectionListViewModel is missing"):q=new K("LayoutType ["+q.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return q}; DyB=function(q){return{targetAudioReadaheadMs:Ta(q,1),targetVideoReadaheadMs:Ta(q,2),backoffTimeMs:Ta(q,4),playbackCookie:gD(q,7),videoId:eQ(q,8)}}; IU=function(q,Z){Z!==q.D7&&(q.D7=Z,q.lL.Ry("onMutedAutoplayChange",Z))}; g.he=function(q){return q.oauthToken||q.Qs.UT}; GZm=function(q){if(q.J.Nl()){q.EV.sort(function(B,f){return+B.rt-+f.rt}); for(var Z=g.E(q.EV),F=Z.next();!F.done;F=Z.next())F=F.value,q.iL("vpe",Object.assign({t:F.rt},F));q.EV=[];q.b7=0}}; rC=function(q,Z,F,B,f,D,G,n){Ec()&&F.token&&(q=vU(q,{ctt:F.token,cttype:F.nO,mdx_environment:F.mdxEnvironment}));B.U("net_pings_low_priority")&&(Z||(Z={}),Z.priority="low");D||n&&B.U("nwl_skip_retry")?(Z==null?Z={}:zLD(q,B.U("html5_assert_cpn_with_regex")),G?xq().sendAndWrite(q,Z):xq().sendThenWrite(q,Z,n)):Z?(zLD(q,B.U("html5_assert_cpn_with_regex")),YE9(q,Z)):g.ka(q,f)}; oU=function(q){this.value=q}; N2b=function(){var q=document.queryCommandSupported&&document.queryCommandSupported("copy");tF8("Chromium")>=43&&(q=!0);tF8("Firefox")<=40&&(q=!1);return q}; zk8=function(q){q.provider.videoData.googleRemarketingUrl&&!q.uL&&(wC(q,q.provider.videoData.googleRemarketingUrl),q.uL=!0)}; nBE=function(q){var Z=[];if(!q||!q.thumbnails)return Z;q=g.E(q.thumbnails);for(var F=q.next();!F.done;F=q.next())F=F.value,F.url&&(!F.width||F.width<=0||!F.height||F.height<=0||g.ys(F.url)&&Z.push({src:F.url||"",sizes:F.width+"x"+F.height,type:"image/jpeg"}));return Z}; bMX=function(q,Z,F,B){if(q.G){var f=b75[Z];SHy(q,q.G+f,function(){q.S.add(f);F.call(q)},B)}}; cZb=function(q,Z){Z=new NX_(Z);vdZ("");OE=Ef(Z);q>0&&Xck(12E4,q-1);throw Z;}; VV=function(){return Ey||KV?!!TX&&!!TX.platform:!1}; b_=function(q,Z,F,B){(B===void 0?0:B)>1?Z=Z.FI:(F=Wn(F,NF6(q,q.GY(Z,F),Z)),Z=Math.max(q.Z,F.timedOut)+Z.Ae*(q.S-q.Z)+.25*q.X,Z=Z>3?1E3*Math.pow(1.6,Z-3):0);return Z===0?!0:q.PG+Z<(0,g.Le)()}; lgZ=function(q,Z){(0,g.yn)(Z.D,function(F){q.add(F.K,F.D,wYD(F))})}; xmB=function(q,Z){if(g.r1(gBE,Z))return!0;var F=q.lQ[Z];return F!==void 0?(q.lQ[Z]=!0,!F):!1}; SKE=function(q,Z,F,B,f,D){km.call(this,q,{Y:"div",W:"ytp-ad-action-interstitial",L:{tabindex:"0"},T:[{Y:"div",W:"ytp-ad-action-interstitial-background-container"},{Y:"div",W:"ytp-ad-action-interstitial-slot",T:[{Y:"div",W:"ytp-ad-action-interstitial-instream-info"},{Y:"div",W:"ytp-ad-action-interstitial-card",T:[{Y:"div",W:"ytp-ad-action-interstitial-image-container"},{Y:"div",W:"ytp-ad-action-interstitial-headline-container"},{Y:"div",W:"ytp-ad-action-interstitial-description-container"},{Y:"div", W:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",Z,F,B);this.Hw=f;this.C$=D;this.navigationEndpoint=this.D=this.skipButton=this.K=this.actionButton=null;this.WG=this.cG("ytp-ad-action-interstitial-instream-info");this.BG=this.cG("ytp-ad-action-interstitial-image-container");this.V=new Ht(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,"ytp-ad-action-interstitial-image");g.y(this,this.V);this.V.R_(this.BG);this.k$=this.cG("ytp-ad-action-interstitial-headline-container"); this.Z=new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,"ytp-ad-action-interstitial-headline");g.y(this,this.Z);this.Z.R_(this.k$);this.uL=this.cG("ytp-ad-action-interstitial-description-container");this.S=new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,"ytp-ad-action-interstitial-description");g.y(this,this.S);this.S.R_(this.uL);this.I_=this.cG("ytp-ad-action-interstitial-background-container");this.Oc=new Ht(this.api,this.layoutId,this.interactionLoggingClientData, this.x$,"ytp-ad-action-interstitial-background",!0);g.y(this,this.Oc);this.Oc.R_(this.I_);this.o_=this.cG("ytp-ad-action-interstitial-action-button-container");this.slot=this.cG("ytp-ad-action-interstitial-slot");this.bx=this.cG("ytp-ad-action-interstitial-card");this.G=new t8;g.y(this,this.G);this.hide()}; dw7=function(q,Z,F){Z=JQ(Z);F=JQ(F);for(var B=q.data,f=q.output,D=q.S,G=q.register,n=q.D,b=q.K;;){if(n<15){if(b>B.length){q.error=!0;break}G|=(B[b+1]<<8)+B[b]<>=7;N<0;)N=Z[(G&1)-N],G>>=1;else G>>=N&15;n-=N&15;N>>=4;if(N<256)f[D++]=N;else if(q.register=G,q.D=n,q.K=b,N>256){G=ua[N];G+=J7(q,UZ[N]);b=YDD(q,F);n=P0[b];n+=J7(q,NgK[b]);if(lg0&&G0&&f>0&&(F.width+=f,g.u$(Z.element,"width",F.width+"px")));q.size=F}}; Yq=function(q,Z,F,B){q.D().gR(Z,B);F=F();q=q.D();q.yO.yn("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Z,B,F);Z=g.E(F);for(F=Z.next();!F.done;F=Z.next())a:{B=q;F=F.value;B.yO.cX("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",F);B.yO.cX("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",F);try{var f=B.D;if(g.lO(F.slotId))throw new K("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(GK(f,F))throw new K("Duplicate registration for slot.",{slotId:F.slotId,slotEntryTriggerType:F.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!f.ND.yW.has(F.slotType))throw new K("No fulfillment adapter factory registered for slot of type: "+F.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!f.ND.n8.has(F.slotType))throw new K("No SlotAdapterFactory registered for slot of type: "+F.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");YQ(f,"TRIGGER_CATEGORY_SLOT_ENTRY",F.slotEntryTrigger?[F.slotEntryTrigger]:[]);YQ(f,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", F.slotFulfillmentTriggers);YQ(f,"TRIGGER_CATEGORY_SLOT_EXPIRATION",F.slotExpirationTriggers);var D=B.D,G=F.slotType+"_"+F.slotPhysicalPosition,n=dK(D,G);if(GK(D,F))throw new K("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");n.set(F.slotId,new Qgy(F));D.D.set(G,n)}catch(Zg){Zg instanceof K&&Zg.Yu?(B.yO.Mg("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Zg.Yu,F),Yp(Zg,F,void 0,void 0,Zg.zG)):(B.yO.Mg("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", F),Yp(Zg,F));break a}GK(B.D,F).j=!0;try{var b=B.D,N=GK(b,F),S=F.slotEntryTrigger,l=b.ND.CQ.get(S.triggerType);l&&(l.IS("TRIGGER_CATEGORY_SLOT_ENTRY",S,F,null),N.zP.set(S.triggerId,l));for(var U=g.E(F.slotFulfillmentTriggers),u=U.next();!u.done;u=U.next()){var P=u.value,W=b.ND.CQ.get(P.triggerType);W&&(W.IS("TRIGGER_CATEGORY_SLOT_FULFILLMENT",P,F,null),N.Dl.set(P.triggerId,W))}for(var H=g.E(F.slotExpirationTriggers),X=H.next();!X.done;X=H.next()){var Q=X.value,a=b.ND.CQ.get(Q.triggerType);a&&(a.IS("TRIGGER_CATEGORY_SLOT_EXPIRATION", Q,F,null),N.PG.set(Q.triggerId,a))}var m=b.ND.yW.get(F.slotType).get().build(b.S,F);N.X=m;var c=b.ND.n8.get(F.slotType).get().build(b.Z,F);c.init();N.K=c}catch(Zg){Zg instanceof K&&Zg.Yu?(B.yO.Mg("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Zg.Yu,F),Yp(Zg,F,void 0,void 0,Zg.zG)):(B.yO.Mg("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",F),Yp(Zg,F));zK(B,F,!0);break a}B.yO.cX("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",F);B.D.h8(F);for(var e=g.E(B.K),Y=e.next();!Y.done;Y= e.next())Y.value.h8(F);Nj(B,F)}}; uDm=function(q,Z,F){var B=q.pA(Z,F);q.fK=B;q.listeners.forEach(function(f){f.je(B)})}; P8j=function(q,Z,F){q.cpn&&(Z=g.gJ(Z,{cpn:q.cpn}));F&&(Z=g.gJ(Z,{paired:F}));return Z}; gUX=function(q,Z,F){var B;return g.h(function(f){(0,g.Le)();if(q.D.D)return f.return(qYb(q,Z,F));B=Zny(q.D);return f.return(B.decrypt(Z,F))})}; LqG=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u){for(var P=0,W="",H=g.E(q),X=H.next();!X.done;X=H.next())X=X.value,W||(W=X.itag),X.audioChannels&&X.audioChannels>P&&(P=X.audioChannels,W=X.itag);f=new p1(f,"application/x-mpegURL",{audio:new tE(0,P),video:new C1(D,G,n,null,void 0,N,void 0,void 0,U),Ni:l,uV:W});q=new Bp7(q,Z,F?[F]:[],B,!!u);q.G=S?S:1369843;return new xI(f,q,b)}; re=function(q,Z){var F=Z*4294967296+(q>>>0);return Number.isSafeInteger(F)?F:Ah(q,Z)}; qv=function(q){var Z=q.isMuted()?0:q.getVolume();Q1.call(this,0,100,1,Z,void 0,!0);this.B=q;this.Dl=JV(this.zP,10,this);this.V=!1;this.N(q,"onVolumeChange",this.onVolumeChange);this.N(this.element,"wheel",this.uL)}; fR=function(q){return function(){return new q}}; siX=function(q){q.D=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];q.X=[];q.X.length=64;q.G=0;q.K=0}; U1=function(){}; rKE=function(q,Z,F,B){F.adFormat=F.lx;var f=Z.Mp;Z=new Zo(new bx(F,Z.J,{getDuration:function(){return F.lengthSeconds}, getCurrentTime:function(){return f.getCurrentTime()}, rR:function(){return f.rR()}, yE:function(){return f.yE()}, Ch:function(){return f.Ch()}, getPlayerSize:function(){return f.getPlayerSize()}, getAudioTrack:function(){return F.getAudioTrack()}, getPlaybackRate:function(){return f.getPlaybackRate()}, vM:function(){return f.vM()}, getVisibilityState:function(){return f.getVisibilityState()}, QT:function(){return f.QT()}, gV:function(){return f.gV()}, getVolume:function(){return f.getVolume()}, isMuted:function(){return f.isMuted()}, Su:function(){return f.Su()}, EM:function(){return f.EM()}, getProximaLatencyPreference:function(){return f.getProximaLatencyPreference()}, Ax:function(){f.Ax()}, iL:function(D,G){f.iL(D,G)}, t5:function(){return f.t5()}, oh:function(){return f.oh()}})); Z.K=B;g.y(q,Z);return Z}; Xfb=function(q){var Z=i2D();Z&&document.addEventListener(Z,q,!1)}; jf=function(q,Z,F){F=F===void 0?{}:F;Z4.call(this,q,Z,"",void 0,void 0,F.iI||0);this.index=new La(F)}; SU=function(q){this.value=q}; Hk=function(q,Z,F,B,f,D){g.In.call(this);var G=this;this.g2=q;this.Xy=Z;this.id=F;this.containerType=B;this.FE=f;this.jB=D;this.iX=this.tv=this.MA=null;this.lZ=!1;this.appendWindowStart=this.timestampOffset=0;this.D1=WR([],[]);this.IL=!1;this.j0=[];this.lE=OS?[]:void 0;this.handler=function(b){return G.publish(b.type,G)}; var n;if((n=this.g2)==null?0:n.addEventListener)this.g2.addEventListener("updateend",this.handler),this.g2.addEventListener("error",this.handler)}; y_X=function(q){var Z;return!!(q.U("html5_native_audio_track_switching")&&g.GW&&((Z=q.videoData.K)==null?0:DK(Z)))}; PY=function(q){var Z=q[wD5];if(Z!=null)return Z;var F=rS(wS,WY,yR,q);Z=F.dO?function(B,f){return Ri6(B,f,F)}:function(B,f){for(;ff6(f)&&f.K!=4;){var D=f.S,G=F[D]; if(G==null){var n=F.extensions;n&&(n=n[D])&&(n=$N9(n),n!=null&&(G=F[D]=n))}if(G==null||!G(f,B,D)){n=f;G=n.G;QD(n);if(n.P7)var b=void 0;else{var N=n.D.D-G;n.D.D=G;b=gaB(n.D,N)}N=n=G=void 0;var S=B;b&&((G=(n=(N=S[SG])!=null?N:S[SG]=new P$)[D])!=null?G:n[D]=[]).push(b)}}if(B=uf(B))B.cw=F.C_[Wbu];return!0}; q[wD5]=Z;q[Wbu]=yKE.bind(q);return Z}; Lbj=function(q,Z){var F,B,f,D;return g.h(function(G){if(G.D==1)return F={startTime:(0,g.Le)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.R(G,Vn(Z),2);if(G.D!=3)return B=G.K,f=Object.assign({},q,{options:JSON.parse(JSON.stringify(q.options)),interface:g.oa("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.R(G,g.qU(B,"LogsRequestsStore",f),3);D=G.K;F.ticks.tc=(0,g.Le)();kLG(F);return G.return(D)})}; OI=function(q){g.w.call(this,{Y:"button",rU:["ytp-airplay-button","ytp-button"],L:{title:q.U("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},Ka:"{{icon}}"});this.B=q;this.listen("click",this.onClick);this.N(q,"airplayactivechange",this.ys);this.N(q,"airplayavailabilitychange",this.ys);this.ys();b8(q,this.element,this)}; JaK=function(q,Z){var F=q.api.getRootNode();g.hK(F,"ytp-fullscreen-grid-peeking",Z===1);g.hK(F,"ytp-fullscreen-grid-active",Z===2);Z===1&&v3K(q)}; qQ=function(){this.K=new hAy;this.D=z6()?new BO:new zP}; H7m=function(q,Z){var F=!g.QU(q,Z);g.hK(q,Z,F)}; c7=function(q,Z){if(q.policy.uL&&q.WG&&!q.z6)return q.policy.Ob;if(q.WG&&!q.z6)return 3;if(q.isSuspended)return 1;var F;if((F=q.gU)==null?0:F.gU&&F.gU.streaming===!1)return 4;F=(Z.D.info.audio?q.policy.Jn:q.policy.WG)/(Z.Ml*q.policy.uc);if(q.policy.IZ>0&&q.gU&&sh(q.gU)&&(Z=Z.D.info.video?q.gU.K:q.gU.D)&&!Z.Xr()){Z=Z.nw();var B=Y9(Z,q.getCurrentTime());B>=0&&(Z=q.getCurrentTime()-Z.start(B),F+=Math.max(0,Math.min(Z-q.policy.IZ,q.policy.i4)))}q.policy.Y$>0&&(F=Math.min(F,q.policy.Y$));return F}; O76=function(q,Z,F){g.pO.call(this);var B=this;this.B=q;this.Y$=Z;this.Fo=F;this.vG=NaN;this.zP=this.HG=this.playButton=this.Z=this.j=this.Oc=this.BG=this.uL=this.Dl=this.D=this.V=this.o_=this.OU=this.I_=null;this.G=new $tk(this.B);this.progressBar=new g.a0(this.B,this.Y$);this.V4=new g.gF(this.B,this.Y$);this.eU=new aZ8(this.B,this.Y$);this.PG=new g.S2(this.G2,null,this);F=q.C();this.Fo.subscribe("autohideupdate",this.SR,this);var f=!q.getPlayerStateObject().isCued(),D;(this.KB=!q.U("delhi_modern_web_player")&& q.C().U("html5_player_dynamic_bottom_gradient"))?this.o_=D=new q5g(q):D=new g.w({Y:"div",W:"ytp-gradient-bottom"});g.y(this,D);g.C5(q,D.element,9);this.dU=new g.L3(D,250,f,100);g.y(this,this.dU);this.K=new g.w({Y:"div",W:"ytp-chrome-bottom",T:[{Y:"div",W:"ytp-chrome-controls"}]});g.y(this,this.K);g.C5(q,this.K.element,9);this.k$=new g.L3(this.K,250,f,100);g.y(this,this.k$);this.WG=this.K.element.children[0];g.y(this,this.G);g.C5(q,this.G.element,6);this.G.subscribe("show",function(N){B.B.dw(!N);q.XH(B.G, N)}); g.y(this,this.progressBar);this.progressBar.R_(this.K.element,0);f=new fz(q,Z);g.y(this,f);g.C5(q,f.element,4);f=new g.i0({Y:"div",W:"ytp-left-controls"});g.y(this,f);f.R_(this.WG);q.U("delhi_modern_web_player")||(D=new g.Qf(q,Z,!1),g.y(this,D),D.R_(f.element));q.U("web_render_jump_buttons")&&(this.Dl=new ye(q,-10),g.y(this,this.Dl),this.Dl.R_(f.element));F.WG||(this.playButton=new g.xn(q,Z),g.y(this,this.playButton),this.playButton.R_(f.element));q.U("web_render_jump_buttons")&&(this.uL=new ye(q, 10),g.y(this,this.uL),this.uL.R_(f.element));q.U("delhi_modern_web_player_remove_nav_buttons")||(q.U("delhi_modern_web_player")&&(D=new g.Qf(q,Z,!1),g.y(this,D),D.R_(f.element)),D=new g.Qf(q,Z,!0),g.y(this,D),D.R_(f.element));if(!q.U("delhi_modern_web_player")||q.U("delhi_modern_web_player_horizontal_volume_controls"))if(D=new g.w({Y:"span",W:"ytp-volume-area"}),g.y(this,D),D.R_(f.element),!F.G0&&(this.D=new Wk(q,Z),g.y(this,this.D),this.D.R_(D.element),F.dU&&!F.X)){var G=new gX(q,this.K.element); this.HG=G;g.y(this,G);G.R_(D.element);D=new g.oG(D.element);g.y(this,D);D.subscribe("hoverstart",function(){var N;(N=B.HG)==null||jE7(N,!0)}); D=new g.oG(f.element);g.y(this,D);D.subscribe("hoverend",function(){var N;(N=B.HG)==null||jE7(N,!1)})}q.U("delhi_modern_web_player_lhs_volume_controls")&&!q.U("delhi_modern_web_player_horizontal_volume_controls")&&(f.element.classList.add("ytp-left-controls-with-volume"),this.D=new Wk(q,Z),g.y(this,this.D),this.D.R_(f.element),this.D.element.classList.add("ytp-standalone-mute-button")); g.y(this,this.V4);this.V4.R_(f.element);this.BG=new Yr(q,this.progressBar);g.y(this,this.BG);this.BG.R_(f.element);F.U("web_key_moments_markers")&&(this.Oc=new oR(q,this.progressBar),g.y(this,this.Oc),this.Oc.R_(f.element));q.U("delhi_modern_web_player")?this.S=new g.i0({Y:"div",W:"ytp-right-controls",T:[{Y:"div",W:QE.RIGHT_CONTROLS_LEFT},{Y:"div",W:QE.RIGHT_CONTROLS_RIGHT}]}):this.S=new g.i0({Y:"div",W:"ytp-right-controls"});g.y(this,this.S);this.S.R_(this.WG);q.U("delhi_modern_web_player")&&(this.V= new AO(q),g.y(this,this.V),this.V.R_(this.S.cG(QE.RIGHT_CONTROLS_LEFT)),q.U("delhi_modern_web_player_lhs_volume_controls")||q.U("delhi_modern_web_player_horizontal_volume_controls")||(this.D=new Wk(q,Z),g.y(this,this.D),this.D.R_(this.S.cG(QE.RIGHT_CONTROLS_LEFT))));this.Jn=new wQX(q,Z);g.y(this,this.Jn);xc(this,this.Jn,"RIGHT_CONTROLS_LEFT");this.settingsButton=new ZU(q,this.G);g.y(this,this.settingsButton);pq7(this.G,this.settingsButton);xc(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");f=q.getVideoData(); if(F.uc||f.z3&&F.controlsType==="1")this.j=new Hg(q,Z),g.y(this,this.j),this.j.R_(this.S.element);F.showMiniplayerButton&&!q.U("web_player_miniplayer_in_context_menu")&&(this.Z=new bL(q),g.y(this,this.Z),xc(this,this.Z,"RIGHT_CONTROLS_RIGHT"));F.fD&&(Z=new cE(q,this.G),g.y(this,Z),xc(this,Z,"RIGHT_CONTROLS_RIGHT"));F.P3&&(Z=new OI(q),g.y(this,Z),xc(this,Z,"RIGHT_CONTROLS_RIGHT"));g.y(this,this.eU);xc(this,this.eU,"RIGHT_CONTROLS_RIGHT");g.y(this,this.PG);this.N(q,"appresize",this.CB);this.N(q,"fullscreentoggled", this.CB);var n;(n=this.V)==null||n.subscribe("small-mode-expand-right-bottom-controls",function(){NzX(B)}); var b;(b=this.V)==null||b.subscribe("small-mode-collapse-right-bottom-controls",function(){NzX(B)}); this.N(q,"presentingplayerstatechange",this.tB);this.N(q,"videodatachange",this.onVideoDataChange);this.CB()}; kLG=function(q){g.cz("nwl_csi_killswitch")||vrb("networkless_performance",q,{sampleRate:1})}; g.L3=function(q,Z,F,B,f,D){g.J.call(this);this.element=q;this.state=null;F||q.hide();this.K=Z;this.S=B===void 0?Z:B;this.D=D;this.onHidden=f;this.delay=new g.im(this.fS,0,this);g.y(this,this.delay)}; ku8=function(q,Z){var F={type:Z.layoutType,controlFlowManagerLayer:Fqk.get(Z.bL)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q&&(F.debugData={layoutId:Z.layoutId});return F}; Tby=function(q,Z,F,B,f,D,G,n,b){B.every(function(S){return Bn(S,[],["LAYOUT_TYPE_MEDIA"])})||Yp("Unexpect subLayout type for DAI composite layout"); Z=Bs(q.K.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Z);var N={layoutId:Z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bL:"core"};return{layoutId:Z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ud:new Map,layoutExitNormalTriggers:[new kq(q.D)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:new zX([new f8(F),new aR(n),new ne(B),new QA(f),new io(D),new v2({}),new mQ(b)]),Xe:G(N)}}; QG5=function(q){return g.FQ(q.B.C())?q.IW:q.fR}; ssG=function(q){this.end=this.start=q}; vk=function(q,Z,F){var B=F.Ky,f=F.nS,D=F.listener,G=F.Wn;F=F.Vw===void 0?!1:F.Vw;if(q.D.has(Z))Yp("Unexpected registration of layout in LidarApi");else{if(G){if(q.K.has(G))return;q.K.add(G)}q.D.set(Z,D);fF(PT().Be,"fmd",1);ByK(ug(Ma),B);var n=F?Z:void 0;X96(mW(),Z,{by:function(){if(!f)return{};var b=q.B.getPresentingPlayerType(!0),N;return(N=q.B.getVideoData(b))!=null&&N.isAd()?{currentTime:q.Zl.get().getCurrentTimeSec(b,!1,n),duration:f,isPlaying:v6(q.Zl.get(),b).isPlaying(),isVpaid:!1,isYouTube:!0, volume:q.Zl.get().isMuted()?0:q.Zl.get().getVolume()/100}:{}}})}}; AKE=function(q,Z){var F=g.ym("ytDebugData.callbacks");F||(F={},g.O9("ytDebugData.callbacks",F));if(g.cz("web_dd_iu")||xyE.includes(q))F[q]=Z}; te=function(q){q.K=NaN;q.j=NaN;q.WG=NaN;q.G=null;q.zP=null;q.Z=null;q.k$=!1;q.uL=!1;q.Oc=0;q.dU.stop();q.HG.stop()}; vBt=function(q,Z,F){if(Array.isArray(Z)){var B=Z[Sm]|0;if(B&4)return Z;for(var f=0,D=0;fG.startTime&&G.width>0&&f++;B=f<0?0:f;f=F.D-uE(q)*q.BG;return Z*f+uE(q)*B+F.G}; XD5=function(q,Z,F,B,f,D){if(!q.nQ)if(g.Uu(q,F))q.S$({gdu:"undec",seg:F,itag:f});else if(Z=kM(q,Z,F,B,D),!(q.playback.getVideoData().tP()&&(Z==null?0:Z.X7)))return Z}; jxb=function(q){wl.call(this,1,arguments);this.csn=q}; jWb=function(q){q.lL.publish("initializingmode");q.H5(2);Pb(q.T3,"remote");Pb(q.T3,"miniplayer")}; K9X=function(q,Z){Qa(q,Z.reason,Z.D.info,Z.token,Z.videoId)}; lF=function(q,Z,F,B,f,D,G,n,b,N,S,l,U,u,P,W,H,X,Q,a,m,c){this.vg=q;this.XN=Z;this.q8=F;this.XE=B;this.A0=f;this.Zl=D;this.ke=G;this.wU=n;this.ES=b;this.LP=N;this.nB=S;this.qE=l;this.kS=U;this.YS=u;this.rq=P;this.Ep=W;this.tZ=H;this.yX=X;this.GP=Q;this.D=a;this.context=m;this.Fy=c}; vI=function(){this.data=new Uint8Array(2048);this.pos=0;EI||(EI=xU("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; wHG=function(q,Z){Nd(q,1,Z.url);if(Z.X0)for(var F=0;F=2147483648&&(F=0),mt("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:D,transactionDuration:Z,transactionCount:q.transactionCount,dbDuration:F}),q.K=!0),x0G(q,!1,B,D,Z,G.tag),uv(f)):x0G(q,!0,B,D,Z, G.tag)}; tt=function(q,Z,F){q.videoInfos=q.j;q.videoInfos=g.uh(q.videoInfos,function(B){return B.video.qualityOrdinal>=Z&&B.video.qualityOrdinal<=F})}; T06=function(q,Z,F){F=Cz(q,F);for(var B,f;F>=0;F--)if(B=q.levels[F],f=hn(B,Z),!B.isLoaded(f)){B=q;var D=F,G=D+"-"+f;B.j.has(G)||(B.j.add(G),B.S.enqueue(D,{qm:D,Ws:f}))}jqD(q)}; K0=function(q,Z,F,B,f,D,G,n){B=B||qc(F.clientMetadata,D);q=Ha(q);var b=oJ(function(){f.ql(Z,F)}); n.push(G(B,q,F.layoutId,{adsClientData:F.Xe},function(){b()}))}; hlK=function(q){this.D=q||g.W5.document||document}; g.y3=function(q,Z){g.J.call(this);this.Mp=q;this.X=Z;this.S=NaN;this.Z=this.j=this.started=!1;this.K=[];this.V=new g.im(this.sync,250,this);g.y(this,this.V);this.G=new g.im(this.sync,0,this);g.y(this,this.G);this.D=new inK}; Xx=function(q){return q.keySystem==="com.microsoft.playready"}; EBE=function(q,Z,F,B){kAX(q,Z,F,"skipped",function(){$n(q,B)})}; xwB=function(q){var Z=0;Z=Z===void 0?0:Z;if(!AM(q))throw M4("int64");var F=typeof q;switch(Z){case 512:switch(F){case "string":return td(q);case "bigint":return String(RX(64,q));default:return Df(q)}case 1024:switch(F){case "string":return Lzy(q);case "bigint":return Pm(RX(64,q));default:return ZKD(q)}case 0:switch(F){case "string":return td(q);case "bigint":return Pm(RX(64,q));default:return aC(q)}default:return GT(Z,"Unknown format requested type for int64")}}; Kbj=function(q,Z){q="https://"+p7(59,Z.location)+"/initplayback?c="+an(q.J)+"&owc=1";o0(q,"pw",function(F){F.ht=Z.D})}; xb=function(q,Z){Z=~Z;q?q=~q+1:Z+=1;return[q,Z]}; mqB=function(q,Z,F){q=new mI(q.D);q.update(Z);q.update(F);Z=ji6(q);q.update(q.Z);q.update(Z);Z=ji6(q);q.reset();return Z}; Va=function(q,Z){q=q.app.Vs();return!!q&&q.getVideoData().fp===Z.fp}; g.kx=function(q,Z){Z=Z===void 0?"":Z;if(q.mD){var F=new l8,B,f=q.mD();f.signedOut?B="":f.token?B=f.token:f.pendingResult.then(function(D){f.signedOut?F.resolve(""):F.resolve(D.token)},function(D){g.bh(new g.M2("b189348328_oauth_callback_failed",{error:D})); F.resolve(Z)}); return B!==void 0?T1(B):new a6(F)}return T1(Z)}; $ye=function(q){return Math.max(q.bottom-q.top,0)*Math.max(q.right-q.left,0)}; s1=function(q){return{uw:q.XE.get(),CU:!1,Vw:q.wj()}}; agt=function(q){switch(q){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen"; case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile"; case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null; default:return null}}; myu=function(q,Z){return tq(q,Z)-1}; Ei=function(q,Z){q.actionButtons.includes(Z)||(q.actionButtons.push(Z),q.updateValue("buttons",q.actionButtons))}; x_G=function(q,Z,F){var B;if((B=Z.AY)!=null&&B.d5)try{var f,D=(f=q.cache)==null?void 0:Cxk(f,B6(q,Z),Z.AY.Pd);return D?F?CM(q.logger,function(){return g.MR(D,2)},"a"):D:void 0}catch(G){q.reportError(new m0(23,"RXO:read",G))}}; f1=function(q){return q.right-q.left}; Yh=function(q,Z){this.Nd=q;this.F8=Z}; Nj7=function(q){var Z={"Content-Type":"application/json"};g.oa("EOM_VISITOR_DATA")?Z["X-Goog-EOM-Visitor-Id"]=g.oa("EOM_VISITOR_DATA"):g.oa("VISITOR_DATA")&&(Z["X-Goog-Visitor-Id"]=g.oa("VISITOR_DATA"));Z["X-Youtube-Bootstrap-Logged-In"]=g.oa("LOGGED_IN",!1);g.oa("DEBUG_SETTINGS_METADATA")&&(Z["X-Debug-Settings-Metadata"]=g.oa("DEBUG_SETTINGS_METADATA"));if(q!=="cors"){var F=g.oa("INNERTUBE_CONTEXT_CLIENT_NAME");F&&(Z["X-Youtube-Client-Name"]=F);(F=g.oa("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Z["X-Youtube-Client-Version"]= F);(F=g.oa("CHROME_CONNECTED_HEADER"))&&(Z["X-Youtube-Chrome-Connected"]=F);(F=g.oa("DOMAIN_ADMIN_STATE"))&&(Z["X-Youtube-Domain-Admin-State"]=F)}g.oa("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(q=g.oa("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Z["X-YouTube-Lava-Device-Context"]=q):q!=="cors"&&g.oa("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(q=g.oa("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Z["X-YouTube-Lava-Device-Context"]=q);return Z}; aD=function(q,Z){var F={};F[q]=Z;return[F]}; Xf=function(q,Z){return Uy0(Z.call(q))}; J4X=function(){try{var q,Z;return!!((q=window)==null?0:(Z=q.top)==null?0:Z.location.href)&&!1}catch(F){return!0}}; gOG=function(q){q.uL.clearAll();q.K.clear();q.D.clear();q.Z.clear();q.HG=[];q.j=null;q.ac.clear();q.J.experiments.qp("html5_ssdai_log_missing_ad_config_reason")&&q.WG.clear();q.PG=[];q.I_=[];q.X3=[];q.LB=[];q.G0.clear();q.Lp.clear();q.bb.clear();q.vG.clear();q.V=!1;q.qY=0;q.Dl=!1;q.Oc=!1;q.Nx=0;q.Hg=0;q.VO=!1;q.nQ=!1;q.S="";Ppg(q.app.I1());FA(q.app.I1(),q.playback,!1);q.Y$.clear();q.X.isActive()&&Eu(q)}; i7E=function(q,Z){Z=Array.prototype.splice.call(q,Z,1);Array.prototype.splice.call(q,0,0,Z[0])}; cMg=function(q){if(!q.api.C().Tb){var Z=q.api.getVideoData(),F=new g.BL("Suscribirse",null,"Suscrito/a",null,!0,!1,Z.Fr,Z.subscribed,"channel_avatar",null,q.api,!0);q.api.createServerVe(F.element,q);var B;q.api.setTrackingParams(F.element,((B=Z.subscribeButtonRenderer)==null?void 0:B.trackingParams)||null);q.N(F.element,"click",function(){q.api.logClick(F.element)}); q.subscribeButton=F;g.y(q,q.subscribeButton);q.subscribeButton.R_(q.element)}}; Jh=function(q){g.w.call(this,{Y:"div",W:"ytp-spinner",T:[Wm(),{Y:"div",W:"ytp-spinner-message",Ka:"Si la reproducci\u00f3n no comienza en breve, intenta reiniciar el dispositivo."}]});this.api=q;this.message=this.cG("ytp-spinner-message");this.D=new g.im(this.show,500,this);g.y(this,this.D);this.N(q,"presentingplayerstatechange",this.onStateChange);this.N(q,"playbackstalledatstart",this.K);this.xS(q.getPlayerStateObject())}; hUy=function(q){var Z=q.provider.Mp.Ch(),F=g.$w(q.provider);lp(q,F,Z);var B=Z.S;Z=Z.G;isNaN(B)||(q.provider.J.U("html5_unified_live_latency_reporting")&&!isNaN(Z)&&Z?g.zR(q,F,"e2el",[B.toFixed(3),Z.toFixed(3)]):g.zR(q,F,"e2el",[B.toFixed(3)]))}; g.Br=function(q){var Z=q.X;q.U("html5_gapless_unlimit_format_selection")&&NM(q)&&(Z=!1);var F=!!q.D&&q.D.d2,B=q.Qs,f=q.HW(),D=KS(q),G=q.HG,n=Z,b=q.isOtf();Z=q.KA();var N=q.vG,S=q.getUserAudio51Preference(),l=N4(q),U=qm(q),u=new fkK(B);if(B.Nl()||B.U("html5_logging_format_selection"))u.K=!0;u.Oc=D;u.HG=G&&B.V;u.k$=S;g.Vd("windows nt 5.1")&&!g.Y2&&(u.v3=!0);if(D=f)D=g.dD(B)?kZm(B):!1;D&&(u.Dl=!0);n&&(u.v3=!0,u.G0=!0);b&&!B.U("html5_otf_prefer_vp9")&&(u.v3=!0);B.playerStyle==="picasaweb"&&(b&&(u.v3= !1),u.uL=!1);N&&(u.v3=!0);Sc(B.Z,lj.CHANNELS)&&(B.U("html5_enable_ac3")&&(u.G=!0),B.U("html5_enable_eac3")&&(u.Z=!0),B.U("html5_enable_ac3_gapless")&&(u.dU=!0));B.U("html5_block_8k_hfr")&&(u.eU=!0);u.j=g.Ce(B.experiments,"html5_max_selectable_quality_ordinal");u.X=g.Ce(B.experiments,"html5_min_selectable_quality_ordinal");eT&&(u.Hg=480);if(F||f)u.uL=!1;u.I_=!1;u.disableAv1=l;F=bj(B,u.D,void 0,u.disableAv1);F>0&&F<2160&&(SB()||B.U("html5_format_hybridization"))&&(u.D.supportsChangeType=+SB(),u.NP= F);F>=2160&&(u.Y$=!0);Twy()&&!B.U("disable_av1_setting")&&(u.D.serveVp9OverAv1IfHigherRes=0,u.X3=!1);u.KA=Z;u.WG=g.oV||EKG()&&!Z?!1:!0;u.V=B.U("html5_format_hybridization");u.KB=B.U("html5_disable_encrypted_vp9_live_non_2k_4k");u.Gb=U;Im(q)&&(u.LB=q.U("html5_prefer_language_over_codec"));Ip()&&q.playerResponse&&q.playerResponse.playerConfig&&q.playerResponse.playerConfig.webPlayerConfig&&q.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(u.G=!0,u.Z=!0);q.X&&q.isAd()&&(q.Tc&& (u.PG=q.Tc),q.Fq&&(u.S=q.Fq));q.Sg()&&(u.zP=g.Ce(q.Qs.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));u.BG=q.isLivePlayback&&q.sI()&&q.Qs.U("html5_drm_live_audio_51");u.Jn=q.Ak;u.w2=!Im(q);return q.yC=u}; fsK=function(q){var Z=g.s3(q.j.D,function(B){return B.audio.D}),F=g.s3(q.j.D,function(B){return!B.audio.D}); return Z?q.policy.qk?Z:F:null}; Ca6=function(q){var Z=q.baseUrl;uRX(Z)||q.error("drm.net",2,"t.x");if(!Hu(Z,"fexp")){var F=["23898307","23914062","23916106","23883098"].filter(function(f){return q.J.experiments.experiments[f]}); F.length>0&&(q.Z.fexp=F.join())}F=g.E(Object.keys(q.Z));for(var B=F.next();!B.done;B=F.next())B=B.value,Z=aik(Z,B,q.Z[B]);return Z}; g.Qf=function(q,Z,F){g.w.call(this,{Y:"a",rU:[F?"ytp-next-button":"ytp-prev-button","ytp-button"],L:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},T:[UYD(F,q.U("delhi_modern_web_player_icons"))]}); var B=this;this.B=q;this.D=F;this.playlist=this.videoData=null;this.j=!1;this.G=this.Z=this.K=null;this.S=!1;this.tooltip=Z.Iy();F?q.createClientVe(this.element,this,6193):q.createClientVe(this.element,this,6194);this.N(q,"fullscreentoggled",this.onVideoDataChange);this.N(q,"videodatachange",this.onVideoDataChange);this.N(q,"onPlaylistUpdate",this.onVideoDataChange);this.N(q,"onLoopRangeChange",this.onVideoDataChange);this.D||this.N(q,"appresize",this.h4);this.N(q,"mdxpreviousnextchange",function(){wp(B); B.h4()}); this.onVideoDataChange()}; xG9=function(q,Z,F){return Z=Z.filter(function(B){if(B.video.qualityOrdinal<=q.Hg)return!0;F[B.itag]="maxquality";return!1})}; aeD=function(q){function Z(F){F.stack&&F.stack.indexOf("player")!==-1&&q.Vs().Zn(F)} lP.subscribe("handleError",Z);Md.push(Z);return function(){lP.unsubscribe("handleError",Z);var F=Md.indexOf(Z);F!==-1&&Md.splice(F,1)}}; g.sGB=function(q){if(q.info.D.j7())return q.info.duration;q.G===-1&&(q.G=wR(q));return q.G||q.info.duration}; g.m9=function(q){if(typeof DOMParser!="undefined")return wh(new DOMParser,mly(q),"application/xml");throw Error("Your browser does not support loading xml documents");}; Xsy=function(q){fX.call(this,q);var Z=this;hC(q,"getStatsForNerds",function(){return wjk(Z.api)}); Oo(q,"showVideoInfo",function(){Vob(Z,!0)}); Oo(q,"hideVideoInfo",function(){Vob(Z,!1)}); Oo(q,"isVideoInfoVisible",function(){return uuZ(Z)})}; jG5=function(q,Z){Z=$ye(Z);return Z===0?0:$ye(q)/Z}; K=function(q,Z,F,B){B=B===void 0?!1:B;V0.call(this,q);this.Yu=F;this.zG=B;this.args=[];Z&&this.args.push(Z)}; Ig6=function(q){q.G0&&!e&&!m?(a.length===2&&(a=["noreferrer"]),g.IP(u,W,U,a[0]),u=Akk()):(H=Q.join(","),RZ()&&u.navigator&&u.navigator.standalone&&U&&U!="_self"?(H=g.AV("A"),g.F1(H,W),H.target=U,X&&(H.rel="noreferrer"),((P=P.attributionsrc)||P==="")&&H.setAttribute("attributionsrc",P),P=document.createEvent("MouseEvent"), P.initMouseEvent("click",!0,!0,u,1),H.dispatchEvent(P),u=Akk()):X?(u=g.IP(u,"",U,H),P=g.JX(W),u&&(u.opener=null,P===""&&(P="javascript:''"),P='',P=Au(P),(W=u.document)&&W.write&&(W.write(Yx(P)),W.close()))):((u=g.IP(u,W,U,H))&&P.noopener&&(u.opener=null),u&&P.noreferrer&&(u.opener=null)));u&&(u.opener||(u.opener=window),u.focus());l.preventDefault()}}}(f)); f.xE.addOnDisposeCallback(g.BY(q.tooltip,f.xE.element));n==="Facebook"?q.api.createClientVe(f.xE.element,f.xE,164504):n==="Twitter"&&q.api.createClientVe(f.xE.element,f.xE,164505);q.N(f.xE.element,"click",function(S){return function(){q.api.logClick(S.xE.element)}}(f)); q.api.logVisibility(f.xE.element,!0);q.K.push(f.xE);B++}}var b=Z.more||Z.moreLink,N=new g.w({Y:"a",rU:["ytp-share-panel-service-button","ytp-button"],T:[{Y:"span",W:"ytp-share-panel-service-button-more",T:[{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},T:[{Y:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Y:"path",L:{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"}}]}]}],L:{href:b,target:"_blank",title:"M\u00e1s"}});N.listen("click",function(S){var l=b;q.api.logClick(q.moreButton.element);l=pbk(q,l);g.SC(l,q.api,S)&&q.api.a_("SHARE_CLICKED")}); N.addOnDisposeCallback(g.BY(q.tooltip,N.element));q.api.createClientVe(N.element,N,164506);q.N(N.element,"click",function(){q.api.logClick(N.element)}); q.api.logVisibility(N.element,!0);q.K.push(N);q.moreButton=N;q.updateValue("buttons",q.K)}; iM=function(q,Z){if(q.length<2)return!1;var F=Z(q[0]);return q.some(function(B){return Z(B)!==F})}; tX6=function(q){return q?(q=q.privateDoNotAccessOrElseSafeScriptWrappedValue)?vvK(q):null:null}; U_8=function(q){OUD=q}; cKu=function(q,Z){var F=q.j*q.scale;Z-=q.D/2;return Z>-F?-Z/F*q.interval*.5:-(Z+F/2)/F*q.interval}; We=function(q){if(q.B.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Z,F,B;return q.K.zb?null:(Z=q.D)==null?void 0:(F=Z.bannerData)==null?void 0:(B=F.itemData)==null?void 0:B.vendorName}var f,D,G,n,b,N;return q.K.zb||q.Z.zb||((f=q.D)==null?0:(D=f.bannerData)==null?0:(G=D.itemData)==null?0:G.affiliateDisclaimer)?null:(n=q.D)==null?void 0:(b=n.bannerData)==null?void 0:(N=b.itemData)==null?void 0:N.vendorName}; JKm=function(q){if(q.D==null)q.callback.XQ(q.slot);else try{q.D.cancel(),q.D=null,q.callback.XQ(q.slot)}catch(Z){q.D=null,BrD(q.callback,q.slot,new K(Z,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; YKm=function(q){if(nJK(q.videoTrack))return"ssf";if(q.policy.o_&&ng(q.videoTrack)&&ng(q.audioTrack))return"updateEnd";if(Fz(q.audioTrack)||Fz(q.videoTrack)&&q.videoTrack.D.info.FE!=="f")return"";if(q.W1.isSeeking()){var Z=q.PG;var F=q.videoTrack;var B=q.audioTrack;if(Z.policy.D){var f=Z.policy.Md;$l(Z.policy)&&(f=cm(Z,!1,iG(Z)));Z=f;F=qO(B,!0)>=Z&&qO(F,!0)>=Z}else F.S.length||B.S.length?(f=F.D.info.Ml+B.D.info.Ml,f=10*(1-iG(Z)/f),Z=Math.max(f,Z.policy.Md),F=qO(B,!0)>=Z&&qO(F,!0)>=Z):F=!0;if(!F)return"abr"; F=q.videoTrack;if(F.S.length>0&&F.G.K.length===1&&Fo8(F.G).info.V360);B=$l(q.policy)&&q.policy.jA;if(!q.z6||!B&&F)return"";F=q.policy.JV;$l(q.policy)&&(F=cm(q.PG,q.z6,iG(q.PG)));F=Smk(q.videoTrack,q.getCurrentTime(),F)||Smk(q.audioTrack,q.getCurrentTime(),F);return $l(q.policy)?F?"mbnm":"":(q.videoTrack.S.length> 0||q.audioTrack.S.length>0||NoG(q.j,q.videoTrack,q.audioTrack)||NoG(q.j,q.audioTrack,q.videoTrack))&&F?"nord":""}; DUK=function(q,Z){q.V&&(clearTimeout(q.V),q.V=null);q.G=0;q.S&&q.K!==0&&(Z?Qk(q,Z):Math.abs(q.D)>=.15&&q.uL("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),q.D=0,OZ(q),g.vc(q.api.getRootNode(),"ytp-grid-scrolling"))}; J0G=function(q){return q.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?q+"Z":q}; VP=function(q){var Z=q.length,F=Z*3/4;F%3?F=Math.floor(F):g.Bj("=.",q[Z-1])&&(F=g.Bj("=.",q[Z-2])?F-2:F-1);var B=new Uint8Array(F),f=0;kFK(q,function(D){B[f++]=D}); return f!==F?B.subarray(0,f):B}; Xck=function(q,Z){g.OT(function(){ER("//googleads.g.doubleclick.net/pagead/id",hWZ).then(RWX,function(F){return cZb(Z,F)}).Kz(g.Ww)},q)}; Y$G=function(q,Z,F,B,f,D,G,n){G=G===void 0?!1:G;var b=[];try{var N=[];if(F.renderer.linearAdSequenceRenderer)var S=function(H){H=odD(H.slotId,F,Z,f(H),B,D,G);N=H.SlF;return H.lY}; else if(F.renderer.instreamVideoAdRenderer)S=function(H){var X=H.slotId;H=f(H);var Q=G,a=F.config.adPlacementConfig,m=VTG(a),c=m.xB,e=m.au;m=F.renderer.instreamVideoAdRenderer;var Y;if(m==null?0:(Y=m.playerOverlay)==null?0:Y.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var Zg=BW(m,Q);Y=Math.min(c+Zg.videoLengthSeconds*1E3,e);Q=new Yt(0,[Zg.videoLengthSeconds]);e=Zg.videoLengthSeconds;var GZ=Zg.playerVars,FD=Zg.instreamAdPlayerOverlayRenderer,Ny= Zg.playerOverlayLayoutRenderer,qy=Zg.adVideoId,y9=MT8(F),dX=Zg.ud;Zg=Zg.Ky;var z0=m==null?void 0:m.adLayoutLoggingData;m=m==null?void 0:m.sodarExtensionData;X=Bs(Z.K.get(),"LAYOUT_TYPE_MEDIA",X);var G0={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA",bL:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA",ud:dX,layoutExitNormalTriggers:[new kq(Z.D)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bL:"core",clientMetadata:new zX([new pf(B), new dR(e),new Ad(GZ),new f8(c),new aR(Y),FD&&new av(FD),Ny&&new to(Ny),new QA(a),new Zv(qy),new ag(Q),new io(y9),m&&new lC(m),new xE({current:null}),new v2({}),new VY(Zg)].filter(MF8)),Xe:H(G0),adLayoutLoggingData:z0}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var l=MI8(q,B,F.adSlotLoggingData,S,n);b.push(l);for(var U=g.E(N),u=U.next();!u.done;u=U.next()){var P=u.value,W=P(q,f);if(W instanceof K)return W;b.push.apply(b,g.YB(W))}}catch(H){return new K(H,{errorMessage:H.message,AdPlacementRenderer:F,numberOfSurveyRenderers:AlD(F)})}return b}; g9K=function(q){q.V||(q.V=Kg());try{return(new URL(q.V)).toString()}catch(Z){return(new URL(q.V,a$().location.origin)).toString()}}; tfy=function(q){return q!=null}; t6E=function(q){var Z=q.K;Z&&Z.Uc===-1&&(q=q.G.fv())&&Ko(q.info)&&(q=q.info.Uc,Z.X="updateLastSliceRequested",Z.Uc=q)}; DpZ=function(q){return q&&pDm[q]?pDm[q]:null}; aJ=function(q,Z,F,B){var f=f===void 0?!1:f;F=OJ(B,F);pw(q,Z,F,{capture:f})}; o6=function(q,Z,F){F=F===void 0?!1:F;g.J.call(this);this.mediaElement=q;this.gU=Z;this.isView=F;this.j=0;this.G=!1;this.Z=!0;this.PG=0;this.callback=null;this.V=!1;this.gU||(this.Xy=this.mediaElement.QO());this.events=new g.pO(this);g.y(this,this.events);this.S=new vd(this.gU?window.URL.createObjectURL(this.gU):this.Xy.webkitMediaSourceURL,!0);q=this.gU||this.Xy;tg(this.events,q,["sourceopen","webkitsourceopen"],this.F0F);tg(this.events,q,["sourceclose","webkitsourceclose"],this.CkL);this.X={updateend:this.tL}}; BE=function(q,Z){q.message&&g.bh(Error(Z+"_"+q.message))}; dy5=function(q){return q.U("web_settings_menu_surface_custom_playback")&&q.U("web_settings_use_input_slider")}; kn=function(q,Z,F,B){km.call(this,q,{Y:"div",W:"ytp-visit-advertiser-link"},"visit-advertiser-link",Z,F,B);this.hide()}; x2=function(q){var Z=q.api.C();q.Yk.KE("pot_ist");q.K||Mry(q);q.U("html5_bandaid_attach_content_po_token")||(q.U("html5_generate_session_po_token")&&(KC(q),YT6(q)),Z=g.Ce(Z.experiments,"html5_session_po_token_interval_time_ms")||0,Z>0&&(q.X=g.TL(function(){KC(q)},Z)),q.V=!0)}; dq7=function(q,Z){XF(q,Z,2);Z=q.D.end();sJ(q,Z);Z.push(q.K);return Z}; sI=function(q,Z){var F;Z=(F=q.XE.get().Hx.get(Z))!=null?F:null;if(Z===null)return Yp("Expected ad video start time on playback timeline"),0;q=q.B.getCurrentTime(2,!0);return qZ.D&&Z.reason==="b";B||f||F?(q.Mp.Mb({reattachOnConstraint:B?"u":f?"drm":"perf",lo:Z.K,up:Z.D}), q.policy.T6||(q.G.D.K=!1)):(q.policy.T6&&(q.G.D.K=!1),aF(q))}}else!XdB(q.D,Z)&&q.videoTrack&&(f=q.D.D,$vg(q,EiD(q.D,Z)),IY(q),F=Z.isLocked()&&Z.reason==="m"&&q.D.uL,B=q.policy.nD&&Z.reason==="l"&&rg(q.videoTrack),Z=f.D>Z.D&&Z.reason==="b",f=q.D.o_&&!SB(),F||B||Z||f?q.Mp.Mb({reattachOnConstraint:F?"u":B?"drm":f?"codec":"perf"}):aF(q))}}; ekm=function(q,Z){S7(q,"impression")&&q.PH(Z?"fullscreen":"end_fullscreen")}; emb=function(q,Z){Va(q,Z)||Xe(q,"childPlaybackIsNotPresenting");return Z.Ya===Z.Rc+Z.durationMs?Z.Rc+q.app.Vs().getCurrentTime()*1E3:Z.Ya}; TXu=function(q,Z,F,B){if(Math.random()<(B||q.D))try{if(F instanceof fJ)var f=F;else f=new fJ,pK(F,function(G,n){var b=f,N=b.G++;G=aD(n,G);b.D.push(N);b.K[N]=G}); var D=f.fP(q.K,"pagead2.googlesyndication.com","/pagead/gen_204?id="+Z+"&");D&&(VB(),JUk(D))}catch(G){}}; M68=function(q,Z,F,B){F&&(q.OT(),dg(q));F=q.Vs();F.YM(Z);var f=q.getVideoData(),D={};D.video_id=f.videoId;D.adformat=f.adFormat;f.isLivePlayback||(D.start=F.getCurrentTime(),D.resume="1");f.isLivePlayback&&vA(f)&&g.Za(q.J)&&(D.live_utc_start=F.rh(),D.resume="1");f.dU&&(D.vvt=f.dU);f.j&&(D.vss_credentials_token=f.j,D.vss_credentials_token_type=f.Fk);f.oauthToken&&(D.oauth_token=f.oauthToken);D.autoplay=1;D.reload_count=f.Tb+1;D.reload_reason=Z;f.J$&&(D.unplugged_partner_opt_out=f.J$);f.TY&&(D.ypc_is_premiere_trailer= f.TY);f.playerParams&&(D.player_params=f.playerParams);f.uL&&(D.itct=f.uL);q.loadVideoByPlayerVars(D,void 0,!0,void 0,void 0,B);Z==="signature"&&q.EZ&&Of7(q)}; otm=function(q,Z,F){F=F===void 0?0:F;var B,f;return g.h(function(D){if(D.D==1)return B=[],B.push(Z.load()),F>0&&B.push(ROg(F)),g.R(D,Promise.race(B),2);f=SMb(q,Z);return D.return(f)})}; sIk=function(q,Z){var F,B,f,D,G,n,b;return g.h(function(N){if(N.D==1){F=g.Eo();var S=q.C(),l={context:g.GG(q),playbackContext:{contentPlaybackContext:{ancestorOrigins:S.ancestorOrigins}}},U=S.getWebPlayerContextConfig();if(U==null?0:U.encryptedHostFlags)l.playbackContext.contentPlaybackContext.encryptedHostFlags=U.encryptedHostFlags;if(U==null?0:U.hideInfo)l.playerParams={showinfo:!1};U=S.embedConfig;var u=q.IZ;var P=Z.docid||Z.video_id||Z.videoId||Z.id;if(!P){P=Z.raw_embedded_player_response;if(!P){var W= Z.embedded_player_response;W&&(P=JSON.parse(W))}if(P){var H,X,Q,a,m,c;P=((c=g.C((H=P)==null?void 0:(X=H.embedPreview)==null?void 0:(Q=X.thumbnailPreviewRenderer)==null?void 0:(a=Q.playButton)==null?void 0:(m=a.buttonRenderer)==null?void 0:m.navigationEndpoint,g.jt))==null?void 0:c.videoId)||null}else P=null}H=(H=P)?H:void 0;X=q.playlistId?q.playlistId:Z.list;Q=Z.listType;if(X){var e;Q==="user_uploads"?e={username:X}:e={playlistId:X};lF9(U,u,H,Z,e,S.experiments);l.playlistRequest=e}else Z.playlist? (e={templistVideoIds:Z.playlist.toString().split(",")},lF9(U,u,H,Z,e,S.experiments),l.playlistRequest=e):H&&(e={videoId:H},u&&S.U("embeds_enable_per_video_embed_config")?e.serializedThirdPartyEmbedConfig=u:U&&(e.serializedThirdPartyEmbedConfig=U),l.singleVideoRequest=e);B=l;f=g.x7(qj_);g.s4(N,2);return g.R(N,g.Av(F,B,f),4)}if(N.D!=2)return D=N.K,G=q.C(),Z.raw_embedded_player_response=D,G.Y$=EQk(Z,g.FQ(G)),G.S=G.Y$==="EMBEDDED_PLAYER_MODE_PFL",D&&(n=D,n.trackingParams&&ff(n.trackingParams)),N.return(new g.wc(G, Z));b=g.If(N);b instanceof Error||(b=Error("b259802748"));g.mM(b);return N.return(q)})}; gi7=function(q){return cd8(q,!0)}; O1K=function(){var q=O57(),Z=(0,g.Le)()-q.S;if(!(q.S!==0&&Z0&&lK(q.mediaElement)>0&&(q.K=ux(q,q.K,!1)),Z=q.U("html5_pseudogapless_shorts_seek_to_next_start")&&(Z==null?void 0:Z.seekSource)===60,!q.mediaElement||!sMB(q,Z))q.w2.start(750);else if(!isNaN(q.K)&&isFinite(q.K)&&(Z=q.WG-(q.K-q.timestampOffset),!(Z===0||Math.abs(Z)<.005)))if(Z=q.mediaElement.getCurrentTime()-q.K,Math.abs(Z)<=q.Oc||Math.abs(Z)<.005)BYy(q);else{if(q.videoData.YL)q.videoData.YL= !1;else if(!RS(q.videoData)&&q.K>=q.G3()-.1){q.K=q.G3();q.G.resolve(q.G3());q.J.Nl()&&q.Mp.iL("setEndedInSeek",{tgt:""+q.K,maxst:""+q.G3()});q.Mp.uF();return}try{var F=q.K-q.timestampOffset;q.mediaElement.seekTo(F);q.Dl.D=F;q.WG=F;q.S=q.K;q.uL=!1}catch(B){}}}; jh=function(q,Z,F){g.SL.call(this,Z,q);this.D=F}; qg=function(q,Z){var F=q.getUint32(Z),B=q.getUint32(Z+4);return new xPB(q,Z,F,B)}; ynX=function(q){var Z=q.K$,F=q.Vq,B=q.OJ,f=q.Pk;q.OJ=void 0;q.Pk=void 0;B!==void 0?B.Pk=f:Z.xg=f;if(f!==void 0)f.OJ=B;else if(Z.Mq=B,!Ev(Z))for(q=Z.producers;q!==void 0;)q=ynX(q);return F}; MU=function(q){this.cg=q;this.D=new bN}; Zm_=function(q,Z){var F=[];if(Z=q.D.get(Z.layoutId)){Z=g.E(Z);for(var B=Z.next();!B.done;B=Z.next())(B=q.K.get(B.value.triggerId))&&F.push(B)}return F}; Zzy=function(q){if(q.instreamVideoAdRenderer===void 0)return Yp("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var Z=g.E(q.xo),F=Z.next();!F.done;F=Z.next()){F=F.value;if(F.bC===void 0)return!1;if(F.b3===void 0)return Yp("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(q.Av===void 0||F.PN===void 0||q.Av!==F.PN&&F.PN!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(q.instreamVideoAdRenderer.elementId===void 0)return Yp("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:q.Av,"matching APSR kind":F.PN}),!1}return!0}; KZK=function(q){var Z=q.Dv();Z.setPlaybackRate(q.J.G?1:g1g(q,Number(g.sY("yt-player-playback-rate"))||1));Z.e7(q.Cs,q);Z.F2()}; M1=function(q){var Z=nz(q.D,q.pos);++q.pos;if(Z<128)return Z;for(var F=Z&127,B=1;Z>=128;)Z=nz(q.D,q.pos),++q.pos,B*=128,F+=(Z&127)*B;return F}; Wd=function(q,Z){var F;return g.h(function(B){if(B.D==1)return q?g.R(B,g.aX(IR,Z),2):B.return();F=B.K;return B.return(F.delete("databases",q))})}; MSk=function(q,Z,F){for(var B=[],f=g.E(q),D=f.next();!D.done;D=f.next())if(D=g.C(D.value.renderingContent,hB)){if(!fO(D))return new K("Invalid vod media renderer");B.push(nUK(D))}f=B.map(function(l){return l.XD}); D=[];for(var G=0,n=0;n0;)switch(Z=ak.shift(),Z.type){case "ERROR":$u.gp(Z.payload);break;case "EVENT":$u.logEvent(Z.eventType,Z.payload)}}); hC(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));hC(this.api,"updateDownloadState",this.updateDownloadState.bind(this));hC(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));hC(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));hC(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));hC(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));hC(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; pf=function(q){this.value=q}; b6=function(q,Z,F,B,f,D,G,n,b,N,S,l){B=B===void 0?"":B;this.type=q;this.D=Z;this.range=F;this.source=B;this.De=S;this.clipId=l===void 0?"":l;this.PG=[];this.X="";this.Uc=-1;this.Dl=0;this.X=B;this.Uc=f>=0?f:-1;this.startTime=D||0;this.duration=G||0;this.K=n||0;this.S=b>=0?b:this.range?this.range.length:NaN;this.G=this.range?this.K+this.S===this.range.length:N===void 0?!!this.S:N;this.range?(this.Z=this.startTime+this.duration*this.K/this.range.length,this.V=this.duration*this.S/this.range.length, this.j=this.Z+this.V):Qwy(this)}; BE0=function(q,Z){var F,B,f;Z=g.C((F=Z.getWatchNextResponse())==null?void 0:(B=F.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,XB);if(Z==null?0:Z.progressColor)for(F=0;F1E3){var B=q.interruptions;B.push(Math.ceil(F));B.sort(function(f,D){return D-f}); B.length>16&&B.pop()}q.Y$+=F}}q.Z=Z}; $n=function(q,Z){if(q.tV()===q.M8.length-1)q.l4++,E7(q.q8,q.layout,"normal"),q.wj()||iAK(q.rq.get());else a:{if(q.tV()===-1&&(q.callback.ql(q.slot,q.layout),Z>0)){Yp("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",q.slot,q.layout,{indexToPlay:Z,layoutId:q.layout.layoutId});break a}q.l4=Z;Z=q.vL();if(q.tV()>0&&!q.wj()){var F=q.rq.get();F.K=!1;var B={};F.D&&F.videoId&&(B.cttAuthInfo={token:F.D,videoId:F.videoId});BX("ad_to_ad",B)}F=g.C(Z.hn().renderingContent,Vm);if(F==null?0: F.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var f;F=!((f=q.ke.get().Nja.get(F.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&f)}else F=!1;F?$n(q,q.tV()+1):q.Jh(Z)}}; f6_=function(q,Z){UE(q,2,Z.kX,Kq,3);UE(q,3,Z.innertubeRequest,Ya6,3);aL(q,4,Z.onesieUstreamerConfig);aL(q,9,Z.kc);UE(q,10,Z.xD,$i,3);UE(q,15,Z.reloadPlaybackParams,uID,3);Nd(q,18,Z.v$E)}; hO=function(q){return q===void 0||q.startSec===void 0||q.endSec===void 0?!1:!0}; Y4G=function(q){fX.call(this,q);var Z=this;q.addEventListener("settingsMenuInitialized",function(){Z.menuItem||(Z.menuItem=new CC(Z.api),g.y(Z,Z.menuItem))}); q.addEventListener("videodatachange",function(F,B){F=Z.api.getPresentingPlayerType()===2;var f;(f=Z.menuItem)==null||f.hZ(!B.isLivePlayback&&!F)})}; g.$M=function(){var q=$N();return q?Promise.resolve(q):cH9().then(function(Z){(Z=Z?qD:void 0)&&g.O9("ytglobal.idbToken_",Z);return Z})}; D58=function(q,Z){var F=qf();g.$P.call(this,q,{Y:"div",W:"ytp-info-panel-detail-skrim",T:[{Y:"div",W:"ytp-info-panel-detail",L:{role:"dialog",id:F},T:[{Y:"div",W:"ytp-info-panel-detail-header",T:[{Y:"div",W:"ytp-info-panel-detail-title",Ka:"{{title}}"},{Y:"button",rU:["ytp-info-panel-detail-close","ytp-button"],L:{"aria-label":"Cerrar"},T:[g.t$()]}]},{Y:"div",W:"ytp-info-panel-detail-body",Ka:"{{body}}"},{Y:"div",W:"ytp-info-panel-detail-items"}]}]},250);var B=this;this.D=Z;this.items=this.cG("ytp-info-panel-detail-items"); this.K=new g.pO(this);this.itemData=[];this.S=F;this.N(this.cG("ytp-info-panel-detail-close"),"click",this.Uy);this.N(this.cG("ytp-info-panel-detail-skrim"),"click",this.Uy);this.N(this.cG("ytp-info-panel-detail"),"click",function(f){f.stopPropagation()}); this.N(this.B,"infopaneldetaildismissed",function(){q.U("embeds_enable_info_panel_dismissal")&&B.Uy()}); g.y(this,this.K);this.B.createServerVe(this.element,this,!0);this.N(q,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",q.getVideoData());this.hide()}; jN9=function(q){this.Ec=rE(q)}; S$=function(q){G0m.test(q)&&(q.indexOf("&")!=-1&&(q=q.replace(zum,"&")),q.indexOf("<")!=-1&&(q=q.replace(ntt,"<")),q.indexOf(">")!=-1&&(q=q.replace(bm_,">")),q.indexOf('"')!=-1&&(q=q.replace(NEE,""")),q.indexOf("'")!=-1&&(q=q.replace(gtm,"'")),q.indexOf("\x00")!=-1&&(q=q.replace(Sj8,"�")));return q}; l6E=function(q,Z){return q.X?Sk(q.X.G,Z):q.Y$.length?Sk(q.Y$,Z):[]}; RD=function(q){return q.j$?q.j$-(q.V||q.timestampOffset):0}; je8=function(q,Z){q=q===void 0?{}:q;Z=Z===void 0?{}:Z;g.J.call(this);var F=this;this.values=q;this.MM=Z;this.K={};this.S=this.D=0;this.G=new g.im(function(){P58(F)},1E4); g.y(this,this.G)}; U55=function(q,Z,F,B,f,D,G,n){oP.call(this,q,Z,F,B);this.wU=f;this.vg=D;this.j=n;this.Fw=!0;this.G=null;this.Z=qc(F.clientMetadata,"metadata_type_linked_player_bytes_layout_id");qr(this.vg(),this);this.adPlacementConfig=qc(F.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(F.ud,this.wU,this.adPlacementConfig,F.layoutId)}; u_m=function(q,Z){if(!Z)return!1;for(var F=0;F0&&!vA(q.videoData)||Z||Do(q)||(q.seekTo(Infinity,{V5:"videoplayer_readying",seekSource:18}),q.isBackground()&&(q.kJ=!0));Z=q.Oy;if(Z.qoe){Z=Z.qoe;for(var F=Z.provider.videoData, B=Z.provider.J,f=g.E(B.bI),D=f.next();!D.done;D=f.next())qi(Z,D.value);if(Z.provider.U("html5_enable_qoe_cat_list"))for(f=g.E(F.Si),D=f.next();!D.done;D=f.next())qi(Z,D.value);else F.bI&&qi(Z,Z.provider.videoData.bI);F.d2()&&(f=F.D,vA(F)&&qi(Z,"manifestless"),f&&fE(f)&&qi(Z,"live-segment-"+fE(f).toFixed(1)));Im(F)?qi(Z,"sabr"):Z.Y5(TE(F));if(Od(F)||F.tP())F.tP()&&qi(Z,"ssa"),qi(Z,"lifa");qm(F)&&qi(Z,"cdm");Z.provider.videoData.Dd&&qi(Z,"mvtile");F.gatewayExperimentGroup&&(f=F.gatewayExperimentGroup, f==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?f="spkadtrt":f==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(f="spkadctrl"),qi(Z,f));B.Dl!=="yt"&&Z.D.set("len",[F.lengthSeconds.toFixed(2)]);F.cotn&&!GR(F)&&Z.eE(!0);B.Nl()&&(F=$zB())&&Z.iL("cblt",{m:F});if(B.U("html5_log_screen_diagonal")){B=Z.iL;var G;F=((G=window.H5vccScreen)==null?0:G.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;B.call(Z,"cbltdiag",{v:F})}}q.publish("playbackready");dP("pl_c",q.Yk.timerName)||(q.Yk.tick("pl_c"),iE("pl_c",void 0, "video_to_ad"));dP("pbr",q.Yk.timerName)||(q.Yk.tick("pbr"),iE("pbr",void 0,"video_to_ad"))}}}; b1Z=function(){var q=g.CF.apply(0,arguments);return function(Z){return function(F,B){function f(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} F=Z(F,B);var D={getState:F.getState,dispatch:function(G){return f.apply(null,[G].concat(g.YB(g.CF.apply(1,arguments))))}}; B=q.map(function(G){return G(D)}); f=ndk.apply(null,g.YB(B))(F.dispatch);return Object.assign({},F,{dispatch:f})}}}; a$=function(q){return q?q.defaultView:window}; o$6=function(q,Z){q.playbackData=Z;q.videoData.isLivePlayback&&(q.V=new zpK(function(){a:{if(q.playbackData&&q.playbackData.D.D){if(vA(q.videoData)&&q.loader){var B=q.loader.Ee.Cm()||0;break a}if(q.videoData.D){B=q.videoData.D.dU;break a}}B=0}return B}),q.D=new cG(q.videoData,q.J.experiments,function(){return q.G3(!0)})); if(Do(q.Mp)){var F;(F=q.videoData.zE)!=null&&F.ih||(Z=njg(q),Z.Uv?(Im(q.videoData)&&q.UY(Z.Uv,Z.startSeconds),q.S=Z.startSeconds):Z.startSeconds>0&&q.seekTo(Z.startSeconds,{V5:"seektimeline_startPlayback",seekSource:15}));q.PG=!1}else a_9(q)||(q.S=q.S||q.videoData.startSeconds||0,q.videoData.isLivePlayback||(Z=q.Mp.videoData.G3(),q.S>Z&&(q.U("html5_sabr_log_invalid_sabr_current_time")&&q.Mp.iL("invalidSabrCmtStart",{rt:q.S,mst:Z}),q.U("html5_sabr_vod_invalid_start_time_fallback")&&(q.S=0))))}; gg=function(q,Z){g.In.call(this);this.api=q;this.durationMs=Z;this.D=null;this.handler=new t8(this);g.y(this,this.handler);this.K=TjG;this.handler.N(this.api,"presentingplayerstatechange",this.j9);this.D=this.handler.N(this.api,"onAdPlaybackProgress",this.y5)}; m87=function(q,Z,F){this.experiments=q;this.Y$=Z;this.k$=F===void 0?!1:F;this.PG=!!g.ym("cast.receiver.platform.canDisplayType");this.V={};this.Dl=!1;this.G=new Map;this.X=!0;this.K=this.S=!1;this.D=new Map;this.uL=0;this.zP=this.experiments.qp("html5_disable_vp9_encrypted");this.Z=this.experiments.qp("html5_enable_encrypted_av1");q=g.ym("cast.receiver.platform.getValue");this.j=!this.PG&&q&&q("max-video-resolution-vpx")||null;zZ9(this);this.S=!!(Ip()&&p3()>=21)}; lH=function(q){this.Ec=rE(q,500)}; bW=function(q){var Z=(484).toString();q&&(Z=(483).toString());return Z}; g.oG=function(q,Z,F,B,f){Z=Z===void 0?!1:Z;B=B===void 0?!1:B;f=f===void 0?!1:f;g.In.call(this);this.PG=f;this.X=!1;this.G=new t8(this);this.Z=this.j=null;this.S=this.K=!1;g.y(this,this.G);this.target=q;this.D=Z;this.V=F||q;this.X=B;Z&&(g.YN&&this.target.setAttribute("draggable","true"),f||(this.target.style.touchAction="none"));sN(this)}; Pm8=function(){this.G=this.D=this.S=this.K=this.Z=0}; rBE=function(q,Z){q=g.E(g.vH(q,!0));for(var F=q.next();!F.done;F=q.next())if(F=F.value,uNZ(F)){var B={potc:"1",pot:Z};F.url&&(F.url=vU(F.url,B))}}; UD=function(q){var Z,F;return(F=(Z=q.Mp.Mi())==null?void 0:Z.getCurrentTime())!=null?F:q.Mp.getCurrentTime()}; jDB=function(q){return q.FE==="9h"||q.FE==="(h"}; VY=function(){qu.apply(this,arguments)}; w5e=function(q,Z,F,B,f){nX.call(this,q,{Y:"div",rU:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],T:[{Y:"div",W:"ytp-ad-avatar-lockup-card__avatar_and_text_container",T:[{Y:"div",W:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",Z,F,B,f);this.startMilliseconds=0;this.adAvatar=new v3(this.api,this.layoutId,this.interactionLoggingClientData,this.x$);g.y(this,this.adAvatar);bo(this.element,this.adAvatar.element,0);this.headline=new Lz(this.api,this.layoutId, this.interactionLoggingClientData,this.x$);g.y(this,this.headline);this.headline.R_(this.cG("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.x$);g.y(this,this.description);this.description.R_(this.cG("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new OQ(this.api, this.layoutId,this.interactionLoggingClientData,this.x$);g.y(this,this.adButton);this.adButton.R_(this.element);this.hide()}; ccD=function(q,Z){return Z&&g.em(q.J)?Z.some(function(F){return F.video.fps>32}):!1}; ck=function(q,Z,F){zp.call(this,q,Z,F)}; B9Z=function(q,Z){this.D=q;this.index=Z}; Mm=function(q){return q.B.C().experiments.qp("enable_desktop_player_underlay")}; We6=function(){this.next=this.scope=this.D=null}; $88=function(q,Z){q.AJ?(Z=Z.vss_host||"s.youtube.com",Z==="s.youtube.com"&&(Z=tz(q.JW)||"www.youtube.com")):Z="video.google.com";return Z}; J2K=function(q,Z){var F=EB(g.Kc(Z.D.info,q.Np.d2)),B,f=((B=q.zP)==null?void 0:B.Tn(F))||[];if(f.length===0)return q.iL("ombmsi",{}),!1;f=new Iv(f);if(B=!q.policy.uL||isFinite(q.getCurrentTime())||q.Mp.eb()){a:{B=q.getCurrentTime();f=g.E(f.TP);for(var D=f.next();!D.done;D=f.next())if(D=D.value,D.type===3&&B>=D.Z&&B<=D.j){B=!0;break a}B=!1}B=!B}if(B)return q.iL("ostmf",{ct:q.getCurrentTime(),a:Z.D.info.B1()}),!1;(q=q.zP)!=null&&(q.He.get(F).Oe=!0);return!0}; yBm=function(q){var Z,F,B,f=((Z=g.C(q.acceptButton,g.jQ))==null?void 0:(F=Z.text)==null?void 0:(B=F.runs)==null?void 0:B.length)&&!!g.C(q.acceptButton,g.jQ).text.runs[0].text,D,G,n;Z=((D=g.C(q.dismissButton,g.jQ))==null?void 0:(G=D.text)==null?void 0:(n=G.runs)==null?void 0:n.length)&&!!g.C(q.dismissButton,g.jQ).text.runs[0].text;return f||Z}; IvD=function(q,Z){Z||(Z=Math.ceil(Math.log(q+2)/Math.log(2)/7));for(var F=1<<8-Z,B=[];B.length=H},W); W.done.catch(function(H){f(H)})}catch(H){f(H)}}); G.addEventListener("success",function(){var u=G.result;b&&u.addEventListener("versionchange",function(){b(D())}); u.addEventListener("close",function(){mt("IDB_UNEXPECTEDLY_CLOSED",{dbName:R5(q),dbVersion:u.version});N&&N()}); B(D())}); G.addEventListener("error",function(){f(G.error)}); n&&G.addEventListener("blocked",function(){n()})})}; r6=function(q){this.Ec=rE(q)}; liD=function(q,Z){var F=q.He.get(Z),B=Qy6(q,Z),f=!B&&!!F.bytesReceived;if(dJ){var D;if((D=q.Np)==null?0:D.d2){q=g.E(F.I6.values());for(Z=q.next();!Z.done;Z=q.next())if(!Z.value.Sd)return!1;return f}}else if(D=q.Dy(Z),f&&q.D&&D!==void 0)return D;return(f||F.bytesReceived===B)&&F.wG+rLK(q,Z)===F.bytesReceived}; MD9=function(q,Z,F,B,f,D){var G={},n={};g.Hh(Z,function(b,N){b=b.filter(function(S){var l=S.itag;if(!S.Ni)return n[l]="noenc",!1;if(D.j$&&S.FE==="(h"&&D.Jn)return n[l]="lichdr",!1;if(!q.Z&&S.FE==="1e")return n[l]="noav1enc",!1;if(S.FE==="("||S.FE==="(h"){if(q.S&&F&&F.flavor==="widevine"){var U=S.mimeType+"; experimental=allowed";(U=!!S.Ni[F.flavor]&&!!F.D[U])||(n[l]=S.Ni[F.flavor]?"unspt":"noflv");return U}if(!Sc(q,lj.CRYPTOBLOCKFORMAT)&&!q.k$||q.zP)return n[l]=q.zP?"disvp":"vpsub",!1}return F&&S.Ni[F.flavor]&& F.D[S.mimeType]?!0:(n[l]=F?S.Ni[F.flavor]?"unspt":"noflv":"nosys",!1)}); b.length&&(G[N]=b)}); B&&Object.entries(n).length&&f({rjr:NJ(n)});return G}; xXG=function(q,Z,F,B,f){var D=EIK(qt(q.slotEntryTrigger,F,B),f,q,Z);if(D instanceof K)return D;for(var G=[],n=g.E(q.slotFulfillmentTriggers),b=n.next();!b.done;b=n.next()){b=qt(b.value,F,B);if(b instanceof K)return b;G.push(b)}G=nb8(G,f,q,Z);Z=[];q=g.E(q.slotExpirationTriggers);for(f=q.next();!f.done;f=q.next()){f=qt(f.value,F,B);if(f instanceof K)return f;Z.push(f)}return{slotEntryTrigger:D,slotFulfillmentTriggers:G,slotExpirationTriggers:Z}}; V0=function(q,Z){if(Error.captureStackTrace)Error.captureStackTrace(this,V0);else{var F=Error().stack;F&&(this.stack=F)}q&&(this.message=String(q));Z!==void 0&&(this.cause=Z)}; y1=function(){var q=JO.call;QEj||(QEj=new g.hm({RDs:!0,ZUU:!0}));q.call(JO,this,{CE:{Sw:jSD,gG:qu9,ZY:suG,llU:S9Z,Sa:bWD,set:Lbj},wY:QEj,handleError:function(Z,F,B){var f,D=B==null?void 0:(f=B.error)==null?void 0:f.code;if(D===400||D===415){var G;Z=new g.M2(Z.message,F,B==null?void 0:(G=B.error)==null?void 0:G.code);i2(Z,void 0,void 0,void 0,!0)}else g.vf(Z)}, YF:i2,sendFn:E7G,now:g.Le,Af:zJZ,Lk:g.ap(),wi:"publicytnetworkstatus-online",OE:"publicytnetworkstatus-offline",Je:!0,fA:.1,JI:g.bk("potential_esf_error_limit",10),qp:g.cz,nh:!(g.bE()&&g.Mg(document.location.toString())!=="www.youtube-nocookie.com")});this.S=new g.VW;g.cz("networkless_immediately_drop_all_requests")&&ksy();OzK("LogsDatabaseV2")}; kZm=function(q){if(g.H_(q)&&EUb)return!1;if(g.Y2){if(!g.Jw(47)||!g.Jw(52)&&g.Jw(51))return!1}else if(g.GW)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; g.x5E=function(q){return q.captionsLanguagePreference||q.Qs.captionsLanguagePreference||g.Vy(q,"yt:cc_default_lang")||q.Qs.Lp}; AB0=function(){IO.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; g.p=function(q,Z){return!!(q.state&Z)}; cCb=function(q,Z){var F=O1K();if(F){var B=F.coldConfigData,f=F.coldHashData;F=F.hotHashData;if(q){var D;Z=(D=Ib(q,yc,62))!=null?D:new yc;B=QO(Z,1,B);QO(B,3,f).fG(F);Ya(q,yc,62,Z)}else Z&&(Z.client.configInfo=Z.client.configInfo||{},B&&(Z.client.configInfo.coldConfigData=B),f&&(Z.client.configInfo.coldHashData=f),F&&(Z.client.configInfo.hotHashData=F))}}; NL7=function(q){wm.call(this,q.LG,q.XE,q.A0,q.kS,q.Zl,q.ke,q.rq,q.SA,q.slot,q.layout,q.XN,q.q8,q.vg,q.GP)}; Wh=function(q){this.Zl=q}; vtE=function(q,Z,F){var B=[],f=Z?156595:151874;q=g.E(q);for(var D=q.next();!D.done;D=q.next()){var G=D.value;D=G.video;G={formatId:G.id,qualityLabel:D.qualityLabel,quality:D.quality,isPlayable:Z};if(D=F.get(D.qualityLabel))G.paygatedQualityDetails={paygatedIndicatorText:D.paygatedIndicatorText,endpoint:D.endpoint,veType:f,trackingParams:D.trackingParams};B.push(G)}return B}; X5_=function(q,Z){var F=q.j[Z],B=F==="End of video"||F==="End of playlist";F==="Off"&&(q.D="");q.B.getPlayerState()!==0&&q.B.getPlayerState()!==5||!B?(q.G=Z,g.qB.prototype.GH.call(q,Z),q.SN(Z),q.B.a_("onSleepTimerSettingsChanged",F)):q.B.a_("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; g1=function(q){q.Y$=[];q.sB();q.B.WZ("featured_product")}; EL=function(q,Z,F,B,f,D,G,n,b){q=q.filter(function(l){return l.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&l.adSlotMetadata.triggeringSourceLayoutId===Z.layoutId}); if(q.length!==0){if(q.length!==1)return new K("Invalid InPlayer slot association for the given PlayerBytes layout");q=q[0];G=xXG(q,D,F,B,G);if(G instanceof K)return G;var N;D={slotId:q.adSlotMetadata.slotId,slotType:q.adSlotMetadata.slotType,slotPhysicalPosition:(N=q.adSlotMetadata.slotPhysicalPosition)!=null?N:1,bL:"core",slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:G.slotExpirationTriggers};N=g.C(q.fulfillmentContent.fulfilledLayout, HDD);if(!N||!OD8(N))return new K("Invalid InPlayerAdLayoutRenderer");G={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,bL:"core"};F=X3(N,F,B);if(F instanceof K)return F;B=[];var S=N.adLayoutMetadata.layoutType;b&&B.push(new v2({}));if(S==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")B.push.apply(B,g.YB(ZbD(q.adSlotMetadata.triggerEvent,Z))),(n=Kjy(F,Z.layoutId))&&B.push(new To(n));else if(S==="LAYOUT_TYPE_ENDCAP"||S==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){B.push(new QA(Xk(q.adSlotMetadata.triggerEvent))); if(S==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new K("Cannot parse endcap layout since AdUxReadyApi is not provided");n&&B.push(n)}else return new K("Not able to parse an SDF InPlayer layout");f=Object.assign({},G,F,{renderingContent:N.renderingContent,ud:new Map,Xe:Ou(f,D)(G),clientMetadata:new zX(B),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},D,{fulfilledLayout:f,clientMetadata:new zX([])})}}; IIZ=function(q,Z,F){tp&&tp.measure&&(q.startsWith("measure_")||(q="measure_"+q),F?tp.measure(q,Z,F):Z?tp.measure(q,Z):tp.measure(q))}; oE=function(q,Z,F,B,f,D,G,n,b){D=D===void 0?!1:D;G=G===void 0?[]:G;b=b===void 0?!1:b;km.call(this,q,{Y:"span",rU:["ytp-ad-hover-text-button"].concat(G)},n===void 0?"ad-hover-text-button":n,Z,F,B);this.button=this.K=null;this.V=D;this.Z=f;this.S=b;this.hide()}; E56=function(q){var Z=H$();Z&&(typeof q==="number"&&(q=[q]),g.yn(q,function(F){Z.unsubscribeByKey(F);delete Gc[F]}))}; Yn=function(q,Z){Z.forEach(function(F){bC(q,F)})}; g.Cy=function(q){q=q.pB();var Z=q.ZE.get("endscreen");return Z&&Z.Hu()?!0:q.XS()}; A48=function(q,Z){var F="detailpage";Z==="adunit"?F=q.G?"embedded":"detailpage":Z==="embedded"||q.V?F=x0(F,Z,Etm):Z&&(F="embedded");return F}; p9=function(q,Z,F,B){Z in q.D||(F=new g.u8(F,B,{id:Z,priority:2,namespace:"appad"}),q.api.sZ([F],1),q.D[Z]=F)}; Ajk=function(q,Z){var F=Em8(q),B=F.mu;F=F.XL;if(q.policy.hC){var f=yL(q.Y$.z0,Z);q=yL(q.k$.z0,Z)}else f=B,q=F;return{r$:f,Um:q,mu:B,XL:F}}; yKE=function(q,Z,F,B){var f=this[wS],D=this[wD5],G=IZ(void 0,f.FM,!1),n=uf(q);if(n){var b=!1,N=f.extensions;if(N){f=function(P,W,H){if(H.length!==0)if(N[W])for(P=g.E(H),W=P.next();!W.done;W=P.next()){W=aD6(W.value);try{b=!0,D(G,W)}finally{W.free()}}else B==null||B(q,W,H)}; if(Z==null)UN(n,f);else if(n!=null){var S=n[Z];S&&f(n,Z,S)}if(b){var l=q[Sm]|0;if(l&2&&l&2048&&(F==null||!F.mAr))throw Error();var U=n1(l),u=function(P,W){if(hM(q,P,U)!=null)switch(F==null?void 0:F.FvL){case 1:return;default:throw Error();}W!=null&&(l=h8(q,l,P,W,U));delete n[P]}; Z==null?jMD(G,G[Sm]|0,function(P,W){u(P,W)}):u(Z,hM(G,Z,U))}}}}; D4K=function(q,Z,F,B,f,D,G,n,b,N,S){q=hoZ(q,Z,"core",F,B,f,D,G,n,b,N,void 0,S);return{layoutId:q.layoutId,layoutType:q.layoutType,ud:q.ud,layoutExitNormalTriggers:q.layoutExitNormalTriggers,layoutExitSkipTriggers:q.layoutExitSkipTriggers,layoutExitMuteTriggers:q.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:q.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:q.layoutExitUserCancelledTriggers,bL:q.bL,clientMetadata:new zX(q.M0),Xe:q.Xe,adLayoutLoggingData:q.adLayoutLoggingData}}; iAK=function(q){q.K=!1;var Z={};q.D&&q.videoId&&(Z.cttAuthInfo={token:q.D,videoId:q.videoId});BX("ad_to_video",Z);z76(q)}; KeE=function(q){q.D&&q.D.listen("click",q.At,q);g.h4(q.V,"click",function(){return q.At()})}; $p=function(q,Z){Z===void 0&&(Z=q[Sm]|0);Z&32&&!(Z&4096)&&KO(q,Z|4096)}; $5E=function(q){Object.keys(q).forEach(function(Z){var F=q[Z];if(typeof F(void 0,{type:Pn})==="undefined")throw Error('The slice reducer for key "'+Z+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof F(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+gd()})==="undefined")throw Error('The slice reducer for key "'+ Z+"\" returned undefined when probed with a random type. Don't try to handle '"+(Pn+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}; tO=function(q,Z,F,B,f){oP.call(this,F,q,Z,B);this.wU=f;q=qc(Z.clientMetadata,"metadata_type_ad_placement_config");this.La=new gH(Z.ud,f,q,Z.layoutId)}; p0=function(q,Z){q.add(Z==null||isNaN(Z)?0:Z+1)}; JO=function(q){var Z=this;this.ZM=this.D=!1;this.potentialEsfErrorCounter=this.K=0;this.handleError=function(){}; this.YF=function(){}; this.now=Date.now;this.nh=!1;this.JZ={ibU:function(S){Z.sP=S}, ttc:function(){Z.Kq()}, MJ:function(){Z.Sv()}, zk:function(S){return g.h(function(l){return g.R(l,Z.zk(S),0)})}, wK:function(S,l){return Z.wK(S,l)}, Wk:function(){Z.Wk()}}; var F;this.kd=(F=q.kd)!=null?F:100;var B;this.rP=(B=q.rP)!=null?B:1;var f;this.Sx=(f=q.Sx)!=null?f:2592E6;var D;this.MQ=(D=q.MQ)!=null?D:12E4;var G;this.Zq=(G=q.Zq)!=null?G:5E3;var n;this.sP=(n=q.sP)!=null?n:void 0;this.Je=!!q.Je;var b;this.fA=(b=q.fA)!=null?b:.1;var N;this.JI=(N=q.JI)!=null?N:10;q.handleError&&(this.handleError=q.handleError);q.YF&&(this.YF=q.YF);q.nh&&(this.nh=q.nh);q.ZM&&(this.ZM=q.ZM);this.qp=q.qp;this.Lk=q.Lk;this.CE=q.CE;this.wY=q.wY;this.sendFn=q.sendFn;this.wi=q.wi;this.OE= q.OE;Z2(this)&&(!this.qp||this.qp("networkless_logging"))&&yqg(this)}; jsD=function(){return(Ey||KV)&&TX?TX.mobile:!rq()&&(lm("iPod")||lm("iPhone")||lm("Android")||lm("IEMobile"))}; a6j=function(q,Z){g.fm(q.K,Z,function(F,B){return F.Rc===B.Rc?F.durationMs-B.durationMs:F.Rc-B.Rc}); q.S.set(Z.cpn,Z);Z.fp&&!q.Z&&q.G.set(Z.fp,Z);Z.m2&&Gm9(q,Z.m2,Z)}; m5m=function(q){var Z=Ywy(g.W5==null?void 0:g.W5.location.href),F=[];if(eRD()){Z=Z.indexOf("https:")==0||Z.indexOf("chrome-extension:")==0||Z.indexOf("chrome-untrusted://new-tab-page")==0||Z.indexOf("moz-extension:")==0;var B=Z?g.W5.__SAPISID:g.W5.__APISID;B||typeof document==="undefined"||(B=new GL(document),B=B.get(Z?"SAPISID":"APISID")||B.get("__Secure-3PAPISID"));(B=B?iF6(B,Z?"SAPISIDHASH":"APISIDHASH",q):null)&&F.push(B);Z&&((Z=kGD("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",q))&&F.push(Z), (q=kGD("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",q))&&F.push(q))}return F.length==0?null:F.join(" ")}; imE=function(q){var Z=q.videoData;YXk(q,q.Zv).then(void 0,function(F){q.videoData!==Z||Z.jU()||(F=cs(F),F.errorCode==="auth"&&q.videoData.errorDetail&&q.videoData.errorDetail!=="7"?q.PL(F.errorCode,2,unescape(q.videoData.errorReason),NJ(F.details),q.videoData.errorDetail,q.videoData.r3||void 0):q.handleError(F))})}; k0m=function(q,Z,F,B){km.call(this,q,{Y:"div",W:"ytp-ad-underlay-companion",T:[{Y:"div",W:"ytp-ad-underlay-side-container",T:[{Y:"div",W:"ytp-ad-underlay-image-container"},{Y:"div",W:"ytp-ad-underlay-description-container"},{Y:"div",W:"ytp-ad-underlay-headline-container"},{Y:"div",W:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",Z,F,B);this.actionButton=null;this.k$=this.cG("ytp-ad-underlay-image-container");this.S=new Ht(this.api,this.layoutId,this.interactionLoggingClientData, this.x$,"ytp-ad-underlay-image");g.y(this,this.S);this.S.R_(this.k$);this.uL=this.cG("ytp-ad-underlay-headline-container");this.K=new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,"ytp-ad-underlay-headline");g.y(this,this.K);this.K.R_(this.uL);this.V=this.cG("ytp-ad-underlay-description-container");this.G=new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,"ytp-ad-underlay-description");g.y(this,this.G);this.G.R_(this.V);this.Z=this.cG("ytp-ad-underlay-action-button-container"); this.D=this.cG("ytp-ad-underlay-side-container");this.hide()}; sE5=function(q,Z,F,B,f,D,G,n){f=f===void 0?F.schedule:f;var b,N,S;return g.h(function(l){if(l.D==1)return b=g.q7(q,wHG),g.R(l,F7y(Z,b),2);if(l.D!=3)return N=l.K,g.R(l,pzD(Z,N),3);S=l.K;return l.return(WAZ({Kf:N,S0:S},Z,F,B,!!q.XY,f,D,G,n))})}; Y3=function(q,Z){Z=Math.max(Math.max(1,Math.ceil(q.policy.G/P1(q))),Z);return Math.min(Math.min(8,Math.floor(q.policy.PG/P1(q))),Z)}; YoG=function(q,Z,F){function B(P){P=cs(P);if(bY(P.severity))return Promise.reject(P);q.handleError(P);return!1} function f(){return!0} var D,G,n,b,N,S,l,U,u;return g.h(function(P){switch(P.D){case 1:var W=q.C();q.getPlayerSize();q.getVisibilityState();q.isFullscreen();if(Z.partnerId===38&&W.playerStyle==="books")W=Z.videoId.indexOf(":"),W=g.gJ("//play.google.com/books/volumes/"+Z.videoId.slice(0,W)+"/content/media",{aid:Z.videoId.slice(W+1),sig:Z.qlE});else if(Z.partnerId===30&&W.playerStyle==="docs")W=g.gJ("https://docs.google.com/get_video_info",{docid:Z.videoId,authuser:Z.LT,authkey:Z.qPp,eurl:W.lx});else if(Z.partnerId===33&& W.playerStyle==="google-live")W=g.gJ("//google-liveplayer.appspot.com/get_video_info",{key:Z.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+W.Dl);D=W;n=(G=Z.isAd())?1:3;b=0;case 2:if(!(b0)){P.An(5);break}return g.R(P,f9(5E3),6);case 6:S={playerretry:b,playerretrysrc:F},G||(S.recover="embedded"),N=Z8(D,S);case 5:return g.R(P,yOD(Z,N).then(f,B),7);case 7:if(l=P.K)return P.return();b++;P.An(2);break;case 4:U=G?"auth":"manifest.net.retryexhausted";u= G?2:1;if(!G&&Math.random()<1E-4)try{g.bh(new g.M2("b/152131571",btoa(D)))}catch(H){}return P.return(Promise.reject(new g.xX(U,{backend:"gvi"},u)))}})}; djX=function(q){var Z=new JJg,F={},B=(F["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",F);return new T6(Z,q,function(){return B})}; u2D=function(q,Z){this.D=Z;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=q(this.triggerType)}; GCB=function(){}; Nf=function(q){var Z;if((Z=VD())==null?0:Z.size){var F;nN(jOK(q.api.C(),(F=q.api.getVideoData())==null?void 0:g.he(F)),function(B){(B=p3k(B))&&sOk(q,B)&&(q.api.C().eU=B)})}}; jEm=function(){var q=["metadata_type_invideo_overlay_ad_renderer"];YP().forEach(function(Z){q.push(Z)}); return{m0:q,FN:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Y_X=function(q){q.zP||(q.zP=(0,g.Le)(),g.XY("oafs_rp",q.zP,q.D))}; IXg=function(q,Z){return Kh(q.clientMetadata,"metadata_ad_video_is_listed")?qc(q.clientMetadata,"metadata_ad_video_is_listed"):Z?Z.isListed:(Yp("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; g.q4=function(q){return(q=Md9(q===void 0?0:q))?new QC({veType:q,youtubeData:void 0,jspbYoutubeData:void 0}):null}; gP=function(q,Z){this.D=q===Sn&&Z||""}; kC=function(q,Z){q.S||q.Dl||$r(q,q.EP);var F=Z.c8,B=Z.SY;if(B.cpn===q.EP)q.S$({igtranssame:1,enter:B.cpn,exit:F.cpn});else{var f=q.Dl,D=!!q.S;q.S="";var G=Z.GW,n=F.playerType===2?F.Rc/1E3+F.videoData.J0:q.ji().videoData.J0;q.api.U("html5_ssdai_enable_media_end_cue_range")&&(D||f||F.playerType!==2?(f||D)&&q.S$({mecr:0,seek:f,skip:D}):q.api.ZU(F.cpn));if(F.playerType===2&&B.playerType===2)D?q.S$({igtransskip:1,enter:B.cpn,exit:F.cpn,seek:f,skip:q.S}):aRb(q,F,B,n,G,f,D);else{q.EP=B.cpn;q.To(B.cpn,B.startTimeSecs|| G);Z=Z.qIc;if(F.playerType===1&&B.playerType===2){q.qY=0;$xD(q,B);var b=Q5(q,"c2a",B);q.S$(b);q.Nx++}else if(F.playerType===2&&B.playerType===1){q.api.publish("serverstitchedvideochange");b=Q5(q,"a2c");q.S$(b);q.Nx=0;q.qY=n;b=F.cpn;var N=q.qY;if(b!==q.playback.qA()){var S=q.Y$.get(b);S?S.D=N:q.S$({nop_e:b})}q.zF(F.m2)}q.playback.FZ(F,B,n,G,f,D,Z)}f4B(q)}}; H67=function(){}; xB=function(q){return!!q.MA&&q.MA.a6()}; wmX=function(q,Z){var F=[];for(Z=Z||0;Z0}); for(var f=0,D=0,G=0,n=/^(\d+)/,b=/r=(\d+)/,N=0;Nq.G3()||F0&&n.set(f,b),(g.cz("web_fp_via_jspb_and_json")&&F.writeThenSend||!g.cz("web_fp_via_jspb_and_json"))&& delete Lo[f];MHD(n,G,q,F,!1,D)}else{n=g.E(Object.keys(Lo));for(N=n.next();!N.done;N=n.next())N=N.value,S=g.cz("enable_web_tiered_gel")?Wg().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:N,tier:f},{isJspb:!1,cttAuthInfo:N}],sizeLimit:1E3}):Wg().extractMatchingEntries({isJspb:!1,cttAuthInfo:N}),S.length>0&&b.set(N,S),(g.cz("web_fp_via_jspb_and_json")&&F.writeThenSend||!g.cz("web_fp_via_jspb_and_json"))&&delete Lo[N];G6B(b,G,q,Z,F,!1,D)}}; tx=function(q){this.B=q}; t8_=function(q){return q.errorCode==="net.badstatus"&&(q.severity===1||!!q.details.fmt_unav)}; RG6=function(q,Z,F,B,f,D,G,n){B=B===void 0?{}:B;n=n===void 0?{value:0}:n;D=f3K(D);B=Ag(B,G,function(b){g.cz("start_client_gcf")&&g.kN.ET(function(){return g.h(function(N){return g.R(N,wT8(b),0)})}); n.value--;n.value||F()},function(){n.value--; n.value||F()},f); B.headers["Content-Type"]="application/json+protobuf";B.postBodyFormat="JSPB";B.postBody=q;g.aH(Z,D,"",B);mS=!1}; p5j=function(q,Z){q=KkK(q.Np.D,function(F){return F.info.itag===Z}); if(!q)throw Error("Itag "+Z+" from server not known.");return q}; g.I3=function(q){var Z=["ytp-cued-thumbnail-overlay"];q.C().j&&Z.push("ytp-exp-contain-thumbnail");g.w.call(this,{Y:"div",rU:Z,T:[{Y:"div",W:"ytp-cued-thumbnail-overlay-image"}]});Z=this.cG("ytp-cued-thumbnail-overlay");var F=new g.E1(q);g.y(this,F);F.R_(Z);this.K=new g.pO(this);g.y(this,this.K);this.api=q;this.G=this.cG("ytp-cued-thumbnail-overlay-image");this.S=F;this.fade=new g.L3(this,250);g.y(this,this.fade);this.D=new g.im(this.ys,0,this);g.y(this,this.D);this.ys();this.N(q,"appresize",this.CB); this.N(q,"presentingplayerstatechange",this.onStateChange);this.N(q,"ypcStateChanged",this.ACU);ph(q.C())&&this.N(q,"videoplayerreset",this.onReset)}; g.gN=function(q,Z){for(var F,B,f=1;f1&&!q.policy.HG){if(!q.policy.jN){var F=g.s3(Z,function(B){return B.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); F&&(q.K=q.Np.D[F.id])}F=!1;if(F=q.policy.QC?!0:q.D.isLocked()?q.D.D<240:iT8(q,q.K))q.K=q.Np.D[g.uU(Z).id]}}}; Yx=function(q){if(q instanceof Bp)return q.D;throw Error("");}; A$=function(q,Z,F){Z.W3().currentState>=2||(Z.KP(Z.hn(),F),uhD(Z.W3())&&(Dr(q.SA,q.slot,Z.hn(),F),q.UP=void 0))}; ew7=function(){return{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}}; g.t$=function(){return{Y:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},T:[{Y:"path",L:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}}; SOB=function(q){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in V8e))return!1;q=q.split(RegExp("[:&]"));var Z=V8e.FLAG_AUTO_CAPTIONS_DEFAULT_ON,F="f"+(1+Math.floor(Z/31)).toString();Z=1<=2)||G.isComplete()||G.yR()||!(!q.loader.gU||q.loader.isSuspended||qO(N)>3)){var S=fi8(G,q.policy,q.G);S===1&&(q.zP=!0);OuX(q,G,S);if(G.isComplete()||G.jU()&&n<3){if(q.policy.S){var l=G.timing.pU();l.rst=G.state;l.strm=G.xhr.Ay();l.cncl=G.xhr&&G.Up.Z?1:0;q.loader.iL("rqs",l)}G.Wl&&q.loader.iL("sbwe3",{},!0)}if(!q.jU()&&G.state>=2){qqD(q.timing,G,b);var U=q.loader;q.Ol&&G.BN&&U&&(q.Ol=NaN,q.loader.l0(G.BN),q.loader.F1(),q.loader.iL("cabrUtcSeek",{mediaTimeSeconds:G.BN}));G.g_&&q.Ol&&G.g_&& !G.g_.action&&(q.loader.UJ(q.Ol),q.Ol=NaN,q.loader.iL("cabrUtcSeekFallback",{targetUtcTimeSeconds:q.Ol}));G.Cv&&q.loader.Lb(G.Cv);q.policy.J0&&(q.Rz=G.Rz);if(G.state===3){jD(N,G);OH(G.info)&&no(q,N,b,!0);if(q.K){var u=G.info.Jg();u&&q.K.XX(G.info.TP[0].Uc,b.info.id,u)}q.loader.pP()}else if(G.isComplete()&&G.info.TP[0].type===5){if(G.state!==4)G.WY()&&q.loader.handleError(G.Hf(),G.qb());else{var P=(G.info.TP[0].D.info.video?q.videoTrack:q.audioTrack).S[0]||null;P&&P instanceof OX&&P.yR()&&P.rI()}G.dispose()}else{if(!G.WY()&& G.pL&&G.state>=2&&G.state!==3){var W=G.xhr.getResponseHeader("X-Response-Itag");if(W){var H=p5j(q.S,W),X=G.info.S;if(X){var Q=X-H.Iw();H.S=!0;G.info.TP[0].D.S=!1;var a=H.IJ(Q);G.info=a;if(G.pm){var m=G.pm,c=a.TP;(c.length!==m.TP.length||c.length=q.policy.qa&&q.K&&G.info.isDecorated()&&y9==="net.badstatus"&&q.K.b$(G0,z0))){var aG=(qy.info.video&&qy.m6.S>1||G.lw===410||G.lw===500||G.lw===503)&&!(U_(q.S.Z).size>0)&&!Yl(25,qy.m6.D),$B=G.qb(),T0=qy.info.video?q.videoTrack:q.audioTrack;aG&&($B.stun="1");q.loader.handleError(y9,$B);q.jU()||(aG&&i3(q.S,qy),jD(T0,G),q.loader.pP())}}else H=1,q.K&&G.info.isDecorated()&& y9==="net.badstatus"&&q.K.b$(G0,z0)&&(H=0),q.Np.isLive&&G.Hf()==="net.badstatus"&&q.j<=q.policy.PX*2?(rsK(q.Np),q.Np.OZ||q.Np.isPremiere?LW(q.loader,0,{V5:"badStatusWorkaround"}):q.Np.G?LW(q.loader,q.Np.k$,{V5:"badStatusWorkaround",kH:!0}):XV(q.loader)):q.loader.handleError(y9,G.qb(),H);isNaN(q.Ol)||(q.loader.UJ(q.Ol),q.Ol=NaN)}q.policy.X3&&!G.isComplete()?Ss(q.loader):q.loader.pP();var v5=B_G(G,q.policy,q.G);OuX(q,G,v5)}}}}}catch(aE){y9=q.uL?1:0,q.uL=!0,G=bY(y9),y9=cs(aE,y9),q.loader.handleError(y9.errorCode, y9.details,y9.severity),G||q.loader.PE()}},B)}; vO=function(q){q=v0(q.T3);return!!q&&q.loaded}; Vf=function(){this.D=null;this.K=0;this.S=new nkX;this.G=new Qb}; aBb=function(q,Z){var F=q.D.D;if(F){q.videoInfos=q.j;var B=g.s3(q.videoInfos,function(f){return f.id===F}); B&&B.video.qualityOrdinal===Z?q.videoInfos=[B]:(B=q.videoInfos.map(function(f){return f.id}),q.loader.iL("sabrpf",{pfid:""+F, vfids:""+B.join(".")}),tt(q,Z,Z),uR(q.D,""))}else tt(q,Z,Z)}; vy=function(q){return q&&q.length?q.end(q.length-1):NaN}; uJX=function(q,Z){q.gq.d1()||(q.iL("sgap",{f:Z}),q.gq.clearQueue(!1,Z==="pe"))}; g.M8j=function(q,Z){return q.JW+"timedtext_video?ref=player&v="+Z.videoId}; LFy=function(q){var Z={};g.cz("json_condensed_response")&&(Z.prettyPrint="false");return q=Z8(q,Z)}; g.eX=function(q){return(new CJK).D6(q)}; g.BL=function(q,Z,F,B,f,D,G,n,b,N,S,l){q=q.charAt(0)+q.substring(1).toLowerCase();F=F.charAt(0)+F.substring(1).toLowerCase();if(Z==="0"||Z==="-1")Z=null;if(B==="0"||B==="-1")B=null;var U=S.C(),u=U.userDisplayName&&g.H_(U);g.w.call(this,{Y:"div",rU:["ytp-button","ytp-sb"],T:[{Y:"div",W:"ytp-sb-subscribe",L:u?{title:S.C().U("player_tooltip_data_title_killswitch")?g.wz("Suscribirse como $USER_NAME",{USER_NAME:U.userDisplayName}):"","data-tooltip-title":g.wz("Suscribirse como $USER_NAME",{USER_NAME:U.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":ZO(U),"data-tooltip-opaque":String(g.FQ(U)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},T:[{Y:"div",W:"ytp-sb-text",T:[{Y:"div",W:"ytp-sb-icon"},q]},Z?{Y:"div",W:"ytp-sb-count",Ka:Z}:""]},{Y:"div",W:"ytp-sb-unsubscribe",L:u?{title:S.U("player_tooltip_data_title_killswitch")?g.wz("Suscrito como $USER_NAME",{USER_NAME:U.userDisplayName}):"","data-tooltip-title":g.wz("Suscrito como $USER_NAME",{USER_NAME:U.userDisplayName}), "aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":ZO(U),"data-tooltip-opaque":String(g.FQ(U)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},T:[{Y:"div",W:"ytp-sb-text",T:[{Y:"div",W:"ytp-sb-icon"},F]},B?{Y:"div",W:"ytp-sb-count",Ka:B}:""]}],L:{"aria-live":"polite"}});var P=this;this.channelId=G;this.B=S;this.S=l;var W=this.cG("ytp-sb-subscribe"),H=this.cG("ytp-sb-unsubscribe");D&&g.e$(this.element,"ytp-sb-classic");if(f){n?this.D():this.K(); var X=function(){var a=P.channelId;if(b||N){var m=S.getVideoData();Z0(S.Y6(),m.unsubscribeCommand,{feature:b});S.a_("UNSUBSCRIBE",a)}W.focus();W.removeAttribute("aria-hidden");H.setAttribute("aria-hidden","true")},Q=function(){if(U.zP){var a=P.channelId; if(b||N){var m={c:a};var c;g.iv.isInitialized()&&(c=Z_G(m));m=c||"";if(c=S.getVideoData())if(c=c.subscribeCommand){var e=S.Y6();e?(Z0(e,c,{botguardResponse:m,feature:b}),S.a_("SUBSCRIBE",a)):g.mM(Error("No innertube service available when updating subscriptions."))}else g.mM(Error("No subscribe command in videoData."));else g.mM(Error("No video data available when updating subscription."))}H.focus();H.removeAttribute("aria-hidden");W.setAttribute("aria-hidden","true")}else hw(g.vn(P.B.C()),"sb_button", P.G)}; this.N(W,"click",Q);this.N(H,"click",X);this.N(W,"keypress",function(a){a.keyCode===13&&Q(a)}); this.N(H,"keypress",function(a){a.keyCode===13&&X(a)}); this.N(S,"SUBSCRIBE",this.D);this.N(S,"UNSUBSCRIBE",this.K);this.S&&u&&(iM8(S),b8(S,W,this),b8(S,H,this))}else g.e$(W,"ytp-sb-disabled"),g.e$(H,"ytp-sb-disabled")}; g.lO=function(q){return/^[\s\xa0]*$/.test(q)}; R4=function(q,Z,F,B,f){var D=q.D;D!==q.app.Vs()&&q.app.pH();q.J.U("html5_sabr_csdai_seek_log")||(f="");var G;D.seekTo(Z,Object.assign({},{V5:"application_timelinemanager"+((G=f)!=null?G:"")},F));WEy(q,B)}; C2g=function(q){fX.call(this,q);this.D=new dF(this.api);g.y(this,this.D);g.C5(this.api,this.D.element,4)}; oN5=function(q,Z){return new Promise(function(F){g.Aw(0,function(){F(Z())},q)})}; gW7=function(q){var Z,F,B=(Z=q.getWatchNextResponse())==null?void 0:(F=Z.contents)==null?void 0:F.twoColumnWatchNextResults,f,D,G,n,b;q=(f=q.getWatchNextResponse())==null?void 0:(D=f.playerOverlays)==null?void 0:(G=D.playerOverlayRenderer)==null?void 0:(n=G.endScreen)==null?void 0:(b=n.watchNextEndScreenRenderer)==null?void 0:b.results;if(!q){var N,S;q=B==null?void 0:(N=B.endScreen)==null?void 0:(S=N.endScreen)==null?void 0:S.results}return q}; C1=function(q,Z,F,B,f,D,G,n,b,N){this.width=q;this.height=Z;this.K=n;this.quality=D||APB(q,Z);this.qualityOrdinal=g.MN[this.quality];this.fps=F||0;this.stereoLayout=!f||B!=null&&B!=="UNKNOWN"&&B!=="RECTANGULAR"?0:f;this.projectionType=B?B==="EQUIRECTANGULAR"&&f===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":B:"UNKNOWN";(q=G)||(q=g.MN[this.quality],q===0?q="Autom\u00e1tica":(Z=this.fps,F=this.projectionType,q=q.toString()+(F==="EQUIRECTANGULAR"||F==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||F==="MESH"?"s":"p")+ (Z>55?"60":Z>49?"50":Z>39?"48":"")));this.qualityLabel=q;this.D=b||"";this.primaries=N||""}; yLg=function(q,Z,F){var B,f=(Z==null?void 0:(B=Z.nK)==null?void 0:B.identity)||px,D;Z=Z==null?void 0:(D=Z.nK)==null?void 0:D.sessionIndex;q=q.D.XR(f,{sessionIndex:Z});return Object.assign({},Nj7(F),q)}; on=function(q,Z){if(q.byteLength-Z<8)return!1;var F=q.getUint32(Z);if(F<8||q.byteLength-Z122)return!1}return!0}; i2D=function(){if(document.visibilityState)var q="visibilitychange";else{if(!document[sR6+"VisibilityState"])return"";q=sR6+"visibilitychange"}return q}; Vr=function(q){return Array.prototype.slice.call(q)}; wI=function(){}; ZtD=function(q){try{var Z=SID(q,!0),F=SID(q,!1);return{id:Z,size:F}}catch(B){return{id:-1,size:-1}}}; zn=function(){}; HK=function(q){q=q===void 0?aa:q;wd.call(this,new $Y(q,2))}; Rob=function(q){var Z=kQK();if(Z)return q4E[Z]||q4E.other;if(g.em(q.J)){q=navigator.userAgent;if(/[Ww]ireless[)]/.test(q))return 3;if(/[Ww]ired[)]/.test(q))return 30}return 0}; Zej=function(){this.D=[];this.K=[]}; FJj=function(q){var Z=q[0];q[0]=q[3];q[3]=Z;Z=q[1];q[1]=q[2];q[2]=Z;Z=q[4];q[4]=q[5];q[5]=Z;Z=q[6];q[6]=q[7];q[7]=Z}; Pu=function(q){this.value=q}; FA=function(q,Z,F){q.Z[Z.qA()]=Z;q.K=Z;F&&(q.j=Z);M$(q)}; rCb=function(q){return{minBandwidthBytesPerSec:Ta(q,1),minReadaheadMs:Ta(q,2)}}; T9=function(q,Z,F){var B=q.api.getCurrentTime(),f=dZg(q,B);q=dZg(q,B+Z);return{startMediaTimeMs:f,endMediaTimeMs:q,seekSource:F}}; cW9=function(q,Z){B85(q,Z).then(void 0,function(){te(q)}); qP(q,Z).then(function(F){pB(q,F)},function(){te(q)}); q.Mp.rz(Z);if(q.J.Nl()||TkK(q))Z=q.Ey(),Z["native"]=""+ +q.uL,Z.tgt=""+q.K,Z.otgt=""+(q.K+q.timestampOffset),Z.maxst=""+q.G3(),q.D&&q.U("html5_high_res_seek_logging")&&(Z.tht=""+q.D.Z(),Z.ht=""+q.D.hq(),Z.adft=""+hz(q.D)),q.U("html5_sabr_parse_live_metadata_playback_boundaries")&&q.videoData.D&&Im(q.videoData)&&(Z.minst=""+q.videoData.D.wx,Z.cminst=""+(q.videoData.D.PZ()+q.timestampOffset),Z.maxst=""+q.videoData.D.Ds,Z.hts=""+q.videoData.D.zP,Z.cmaxst=""+(q.videoData.D.G3()+q.timestampOffset)),q.Mp.iL("startSeek", Z)}; bH=function(q,Z){for(;q;q=q.parentNode){var F=q.getElementsByTagName(Z);if(F.length>0)return F[0]}return null}; WK=function(q){q=q===void 0?aa:q;wd.call(this,new $Y(q,2))}; AO=function(q){g.xT.call(this,{Y:"button",rU:["ytp-expand-right-bottom-section-button","ytp-button"],L:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},T:[g.Fc()]});this.D=!1;this.listen("click",this.K);q.createClientVe(this.element,this,276954)}; GR=function(q){return!(!q.aZ||!q.Qs.V)&&q.TG()}; Ig=function(q){var Z={};if(!q||!q.thumbnails)return Z;q=q.thumbnails.filter(function(n){return!!n.url}); q.sort(function(n,b){return n.width-b.width||n.height-b.height}); for(var F=g.E(Object.keys(fx_)),B=F.next();!B.done;B=F.next()){var f=Number(B.value);B=fx_[f];for(var D=g.E(q),G=D.next();!G.done;G=D.next())if(G=G.value,G.width>=f){f=st8(G.url);g.ys(f)&&(Z[B]=f);break}}(q=q.pop())&&q.width>=1280&&(q=st8(q.url),g.ys(q)&&(Z["maxresdefault.jpg"]=q));return Z}; Hl=function(q){this.X=q;this.D=null;this.G=0;this.j=null;this.Z=0;this.K=[];for(q=0;q<4;q++)this.K.push(0);this.S=0;this.uL=g.h4(window,"mousemove",(0,g.Jy)(this.PG,this));this.V=g.TL((0,g.Jy)(this.Dl,this),25)}; DME=function(q){var Z=q.api.getPlayerSize();return g.FQ(q.api.C())&&Z.width>=524}; Tr=function(q){this.value=q}; go=function(q,Z,F,B,f){var D=xC8(B);return Abb(Z,F,B,new zX(D),f,q.K.get())}; wq8=function(q){this.S=q;this.K=0;this.D=null}; QiB=function(q){this.D=q;q.i6("/client_streamz/bg/ec",g.pW("en"),g.pW("mk"))}; Xp=function(q,Z,F){if(F&&F!==q.slotType)return!1;Z=g.E(Z);for(F=Z.next();!F.done;F=Z.next())if(!Kh(q.clientMetadata,F.value))return!1;return!0}; GX8=function(q,Z){if(q.J.Nl()&&q.mediaElement){var F=q.mediaElement.Ey();F.omt=(q.mediaElement.getCurrentTime()+q.oh()).toFixed(3);F.ps=q.playerState.state.toString(16);F.rt=(g.$w(q.Oy.provider)*1E3).toFixed();F.e=Z;q.EV[q.b7++%5]=F}}; YF=function(q,Z,F,B,f,D){var G=F?iQB(q):{},n=F?Pxb(q,F.layoutId):{},b=kUK(q),N,S=f!=null?f:(N=IB(q.XE.get(),2))==null?void 0:N.clientPlaybackNonce;f=void 0;if(F){var l;if((l=q.Fy.D.get(F.layoutId))==null?0:l.Vw)f=F.layoutId}l={};q=Object.assign({},SJD(q.B,f,B),ipX(Z.adPlacementConfig,(F==null?void 0:F.renderingContent)!==void 0),n,G,b,(l.FINAL=u6(function(){return"1"}),l.AD_CPN=u6(function(){return S||""}),l)); (F==null?void 0:F.renderingContent)!==void 0||(q.SLOT_POS=u6(function(){return(Z.YP||0).toString()})); F={};D=Object.assign({},q,D);q=g.E(Object.values(zr_));for(B=q.next();!B.done;B=q.next())B=B.value,G=D[B],G!=null&&G.toString()!=null&&(F[B]=G.toString());return F}; nNt=function(q){var Z;return((Z=((q==null?void 0:q.messageRenderers)||[]).find(function(F){return!!F.timeCounterRenderer}))==null?void 0:Z.timeCounterRenderer)||null}; mKk=function(q){var Z,F;return{requestNumber:((Z=q.Oc)==null?void 0:Z.HE())||-1,isDecorated:(F=q.Oc)==null?void 0:F.info.isDecorated()}}; uq7=function(q,Z){return yJb(q,Ib(Z,Sx,1,zM),Ib(Z,ba,2,zM),gj(Z,3,void 0,zM))}; Vb=function(q,Z){g.J.call(this);this.q4=Z;this.q4.get().addListener(this)}; Nw=function(q){var Z=q.app.C().controlsType==="3"&&!q.Pq&&A6(q)&&!q.app.D7||!1;q.Pe.controls=Z;q.Pe.tabIndex=Z?0:-1;q.app.C().G&&(q.Pe.ariaHidden="true");Z?q.Pe.removeEventListener("focus",q.C9):q.Pe.addEventListener("focus",q.C9)}; pG=function(q){this.B=q}; beE=function(q){var Z=g.zr(q,"Content-Type");if(!Z)return null;Z=Z.toLowerCase();return Z.startsWith("application/json")?Z.startsWith("application/json+protobuf")?new Il:new OF:Z.startsWith("application/x-protobuf")?(q=g.zr(q,"Content-Transfer-Encoding"))?q.toLowerCase()=="base64"?new Vf:null:new Qb:null}; FJ=function(){fD.instance||(fD.instance=new fD);return fD.instance}; cu8=function(q,Z,F,B){Z={Y:"span",rU:B,T:[Z]};var f;B="ytp-swatch-color";if(q.G||q.D)B="ytp-swatch-color-white";F==="highres"?f="8K":F==="hd2880"?f="5K":F==="hd2160"?f="4K":F.indexOf("hd")===0&&F!=="hd720"&&(f="HD");f&&(Z.T.push(" "),Z.T.push({Y:"sup",W:B,Ka:f}));return Z}; Og=function(q){return q.length?ld?ld.decode(q):String.fromCharCode.apply(null,q):""}; Mv=function(q){q.V.removeAll();if(q.D){var Z=q.D;q.D=null;Z.abort();Z.dispose()}}; vf7=function(q,Z,F){F=q.D[Z].QO(F);dq(q,F,0,q.D[Z].width)}; G_=function(q){return g.O4(q.D,function(Z){return!!Z.info.Ni})}; gNE=function(q,Z,F,B,f,D,G,n,b){var N=ycB(q,D,D+f);q.V&&q.S$({adaftto:1});F||q.S$({missadcon:1,enter:D,len:f,aid:n});q.G&&!q.G.Ja&&(q.G.Ja=n);q.nQ&&q.S$({adfbk:1,enter:D,len:f,aid:n});var S=q.playback;D>G&&Oz(q,{reason:"enterTime_greater_than_return",Rc:D,Ya:G});var l=S.PZ()*1E3;DS&&Oz(q,{reason:"parent_return_greater_than_content_duration",Ya:G,oXE:S});(S=Su8(q.D,D))&&S.Ya>D&&tAG(q,Z.video_id|| "",D,G,S);if(N&&S)for(l=0;l=0}; CV=function(q){return an(q)==="TVHTML5_UNPLUGGED"}; uD8=[];Nm=typeof Object.defineProperties=="function"?Object.defineProperty:function(q,Z,F){if(q==Array.prototype||q==Object.prototype)return q;q[Z]=F.value;return q}; g.br=TmX(this);jn="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");g.br.BigInt64Array&&(jn.push("BigInt64"),jn.push("BigUint64"));El("Symbol",function(q){function Z(D){if(this instanceof Z)throw new TypeError("Symbol is not a constructor");return new F(B+(D||"")+"_"+f++,D)} function F(D,G){this.D=D;Nm(this,"description",{configurable:!0,writable:!0,value:G})} if(q)return q;F.prototype.toString=function(){return this.D}; var B="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",f=0;return Z}); El("Symbol.iterator",function(q){if(q)return q;q=Symbol("Symbol.iterator");Nm(Array.prototype,q,{configurable:!0,writable:!0,value:function(){return kZ9(nFb(this))}}); return q}); var GRG=typeof Object.create=="function"?Object.create:function(q){function Z(){} Z.prototype=q;return new Z},yY6=function(){function q(){function F(){} new F;Reflect.construct(F,[],function(){}); return new F instanceof F} if(typeof Reflect!="undefined"&&Reflect.construct){if(q())return Reflect.construct;var Z=Reflect.construct;return function(F,B,f){F=Z(F,B);f&&Reflect.setPrototypeOf(F,f.prototype);return F}}return function(F,B,f){f===void 0&&(f=F); f=GRG(f.prototype||Object.prototype);return Function.prototype.apply.call(F,f,B)||f}}(),LJu; if(typeof Object.setPrototypeOf=="function")LJu=Object.setPrototypeOf;else{var He8;a:{var Oe5={a:!0},Qf6={};try{Qf6.__proto__=Oe5;He8=Qf6.a;break a}catch(q){}He8=!1}LJu=He8?function(q,Z){q.__proto__=Z;if(q.__proto__!==Z)throw new TypeError(q+" is not extensible");return q}:null}var ip=LJu,xM8=typeof Object.assign=="function"?Object.assign:function(q,Z){if(q==null)throw new TypeError("No nullish arg"); q=Object(q);for(var F=1;F0&&F>0;)if(B[--F]!=Z[--f])return!1;return f<=0}}); El("Array.prototype.find",function(q){return q?q:function(Z,F){return gpK(this,Z,F).dB}}); El("Array.prototype.entries",function(q){return q?q:function(){return U6(this,function(Z,F){return[Z,F]})}}); El("Array.prototype.keys",function(q){return q?q:function(){return U6(this,function(Z){return Z})}}); El("String.prototype.startsWith",function(q){return q?q:function(Z,F){var B=be(this,Z,"startsWith");Z+="";var f=B.length,D=Z.length;F=Math.max(0,Math.min(F|0,B.length));for(var G=0;G=D}}); El("Number.isFinite",function(q){return q?q:function(Z){return typeof Z!=="number"?!1:!isNaN(Z)&&Z!==Infinity&&Z!==-Infinity}}); El("String.prototype.repeat",function(q){return q?q:function(Z){var F=be(this,null,"repeat");if(Z<0||Z>1342177279)throw new RangeError("Invalid count value");Z|=0;for(var B="";Z;)if(Z&1&&(B+=F),Z>>>=1)F+=F;return B}}); El("Object.entries",function(q){return q?q:function(Z){var F=[],B;for(B in Z)AB(Z,B)&&F.push([B,Z[B]]);return F}}); El("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); El("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); El("Array.from",function(q){return q?q:function(Z,F,B){F=F!=null?F:function(n){return n}; var f=[],D=typeof Symbol!="undefined"&&Symbol.iterator&&Z[Symbol.iterator];if(typeof D=="function"){Z=D.call(Z);for(var G=0;!(D=Z.next()).done;)f.push(F.call(B,D.value,G++))}else for(D=Z.length,G=0;G>>0;if(Z===0)return 32;var F=0;(Z&4294901760)===0&&(Z<<=16,F+=16);(Z&4278190080)===0&&(Z<<=8,F+=8);(Z&4026531840)===0&&(Z<<=4,F+=4);(Z&3221225472)===0&&(Z<<=2,F+=2);(Z&2147483648)===0&&F++;return F}}); El("Number.isNaN",function(q){return q?q:function(Z){return typeof Z==="number"&&isNaN(Z)}}); El("Array.prototype.values",function(q){return q?q:function(){return U6(this,function(Z,F){return F})}}); El("Array.prototype.fill",function(q){return q?q:function(Z,F,B){var f=this.length||0;F<0&&(F=Math.max(0,f+F));if(B==null||B>f)B=f;B=Number(B);B<0&&(B=Math.max(0,f+B));for(F=Number(F||0);F0&&F?F.repeat(Math.ceil(Z/F.length)).substring(0,Z):"")+B}}); El("Array.prototype.findIndex",function(q){return q?q:function(Z,F){return gpK(this,Z,F).ZQ}}); El("Promise.prototype.finally",function(q){return q?q:function(Z){return this.then(function(F){return Promise.resolve(Z()).then(function(){return F})},function(F){return Promise.resolve(Z()).then(function(){throw F; })})}}); El("Math.imul",function(q){return q?q:function(Z,F){Z=Number(Z);F=Number(F);var B=Z&65535,f=F&65535;return B*f+((Z>>>16&65535)*f+B*(F>>>16&65535)<<16>>>0)|0}}); El("Math.sign",function(q){return q?q:function(Z){Z=Number(Z);return Z===0||isNaN(Z)?Z:Z>0?1:-1}}); El("WeakSet",function(q){function Z(F){this.D=new WeakMap;if(F){F=g.E(F);for(var B;!(B=F.next()).done;)this.add(B.value)}} if(function(){if(!q||!Object.seal)return!1;try{var F=Object.seal({}),B=Object.seal({}),f=new q([F]);if(!f.has(F)||f.has(B))return!1;f.delete(F);f.add(B);return!f.has(F)&&f.has(B)}catch(D){return!1}}())return q; Z.prototype.add=function(F){this.D.set(F,!0);return this}; Z.prototype.has=function(F){return this.D.has(F)}; Z.prototype.delete=function(F){return this.D.delete(F)}; return Z}); El("Array.prototype.copyWithin",function(q){function Z(F){F=Number(F);return F===Infinity||F===-Infinity?F:F|0} return q?q:function(F,B,f){var D=this.length;F=Z(F);B=Z(B);f=f===void 0?D:Z(f);F=F<0?Math.max(D+F,0):Math.min(F,D);B=B<0?Math.max(D+B,0):Math.min(B,D);f=f<0?Math.max(D+f,0):Math.min(f,D);if(FB;)--f in this?this[--F]=this[f]:delete this[--F];return this}}); IJ("copyWithin",function(q){return q?q:Array.prototype.copyWithin}); El("Array.prototype.at",function(q){return q?q:U9}); IJ("at",function(q){return q?q:U9}); El("String.prototype.at",function(q){return q?q:U9}); El("Array.prototype.findLastIndex",function(q){return q?q:function(Z,F){return Lp9(this,Z,F).ZQ}}); IJ("findLastIndex",function(q){return q?q:function(Z,F){return Lp9(this,Z,F).ZQ}}); El("Number.parseInt",function(q){return q||parseInt});var Pp,rk,DMX;Pp=Pp||{};g.W5=this||self;rk="closure_uid_"+(Math.random()*1E9>>>0);DMX=0;g.JC(V0,Error);V0.prototype.name="CustomError";var RlK;var gIB,lb,cU;gIB=Array.prototype.indexOf?function(q,Z){return Array.prototype.indexOf.call(q,Z,void 0)}:function(q,Z){if(typeof q==="string")return typeof Z!=="string"||Z.length!=1?-1:q.indexOf(Z,0); for(var F=0;F=0;F--)if(F in q&&q[F]===Z)return F;return-1}; g.yn=Array.prototype.forEach?function(q,Z,F){Array.prototype.forEach.call(q,Z,F)}:function(q,Z,F){for(var B=q.length,f=typeof q==="string"?q.split(""):q,D=0;D=.3:this.oy>=.5};var XA={HeU:0,W2c:1},MYk={NONE:0,Yqs:1,oV$:2};var d5j="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");C6.prototype.getValue=function(){return this.K}; g.V(qC,C6);qC.prototype.S=function(q){this.K===null&&g.OB(this.G,q)&&(this.K=q)}; g.V(EH,C6);EH.prototype.S=function(q){this.K===null&&typeof q==="number"&&(this.K=q)}; g.V(MF,C6);MF.prototype.S=function(q){this.K===null&&typeof q==="string"&&(this.K=q)};UJ.prototype.disable=function(){this.K=!1}; UJ.prototype.enable=function(){this.K=!0}; UJ.prototype.isEnabled=function(){return this.K}; UJ.prototype.reset=function(){this.D={};this.K=!0;this.S={}};var TU=document,aa=window;var vNm=u2(1,!0),Ey=u2(610401301,!1);u2(899588437,!1);var Xs5=u2(772657768,!1),ENm=u2(513659523,!1),KJm=u2(568333945,!0),hkt=u2(1331761403,!1);u2(651175828,!1);u2(722764542,!1);u2(748402145,!1);u2(748402146,!1);var OO7=u2(748402147,!0);u2(333098724,!1);u2(2147483644,!1);u2(2147483645,!1);u2(2147483646,vNm);u2(2147483647,!0);var KV=!!g.ym("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var MM=String.prototype.trim?function(q){return q.trim()}:function(q){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(q)[1]},zum=/&/g,ntt=//g,NEE=/"/g,gtm=/'/g,Sj8=/\x00/g,G0m=/[\x00&<>"']/;var TX,$M0=g.W5.navigator;TX=$M0?$M0.userAgentData||null:null;var Gik=globalThis.trustedTypes,zN;Zf.prototype.toString=function(){return this.D+""};cx.prototype.toString=function(){return this.D}; var CID=new cx("about:invalid#zClosurez");var iWb=xt("tel"),ao6=xt("sms"),INb=[xt("data"),xt("http"),xt("https"),xt("mailto"),xt("ftp"),new H5(function(q){return/^[^:]*([/?#]|$)/.test(q)})],IT7=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Bp.prototype.toString=function(){return this.D+""};VK.prototype.toString=function(){return this.D+""};OU.prototype.toString=function(){return this.D};var jH={};g.axm=String.prototype.repeat?function(q,Z){return q.repeat(Z)}:function(q,Z){return Array(Z+1).join(q)};pF[" "]=function(){};var RJ,D5,bN6,mMB,ie5,kX5,qW,eT,sft;g.tw=N5();g.D7=P8K();g.oV=lm("Edge");g.pi=g.oV||g.D7;RJ=lm("Gecko")&&!(lJ(g.bm(),"WebKit")&&!lm("Edge"))&&!(lm("Trident")||lm("MSIE"))&&!lm("Edge");g.YN=lJ(g.bm(),"WebKit")&&!lm("Edge");D5=rrD();bN6=TXk();g.c8=Nvg();mMB=hp();ie5=lm("iPad");kX5=lm("iPod");qW=RZ();eT=lJ(g.bm(),"KaiOS"); a:{var jfj="",Ixt=function(){var q=g.bm();if(RJ)return/rv:([^\);]+)(\)|;)/.exec(q);if(g.oV)return/Edge\/([\d\.]+)/.exec(q);if(g.D7)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(q);if(g.YN)return/WebKit\/(\S+)/.exec(q);if(g.tw)return/(?:Version)[ \/]?(\S+)/.exec(q)}(); Ixt&&(jfj=Ixt?Ixt[1]:"");if(g.D7){var o8,C26=g.W5.document;o8=C26?C26.documentMode:void 0;if(o8!=null&&o8>parseFloat(jfj)){sft=String(o8);break a}}sft=jfj}var tVk=sft,QWk={};var Z7,Tp;g.Y2=um();Z7=hp()||lm("iPod");Tp=lm("iPad");g.X6k=Wbk();g.l2=Uj();g.GW=P5()&&!RZ();var yZD=!g.D7&&!P5();g.r=g.e_.prototype;g.r.clone=function(){return new g.e_(this.x,this.y)}; g.r.equals=function(q){return q instanceof g.e_&&Wp(this,q)}; g.r.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.r.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.r.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.r.scale=function(q,Z){this.x*=q;this.y*=typeof Z==="number"?Z:q;return this};g.r=g.d8.prototype;g.r.clone=function(){return new g.d8(this.width,this.height)}; g.r.aspectRatio=function(){return this.width/this.height}; g.r.isEmpty=function(){return!qh(this)}; g.r.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.r.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.r.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.r.scale=function(q,Z){this.width*=q;this.height*=typeof Z==="number"?Z:q;return this};gP.prototype.toString=function(){return this.D}; var Sn={};new gP(Sn,"");var vz8=/^[a-z][a-z\d-]*$/i,hqD="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),RqB="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Xvk=["action","formaction","href"];var Ue9={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.r=hlK.prototype;g.r.QO=function(q){return us(this.D,q)}; g.r.getElementsByTagName=function(q,Z){return(Z||this.D).getElementsByTagName(String(q))}; g.r.cG=function(q){return g.uK(q,this.D)}; g.r.setProperties=b9;g.r.createElement=function(q){return nv(this.D,q)}; g.r.appendChild=g.tM;g.r.append=function(q,Z){EdK(bw(q),q,arguments,1)}; g.r.canHaveChildren=function(q){if(q.nodeType!=1)return!1;switch(q.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.r.removeNode=g.X_;g.r.getChildren=function(q){return q.children!=void 0?q.children:Array.prototype.filter.call(q.childNodes,function(Z){return Z.nodeType==1})}; g.r.contains=g.yT;g.r.isFocusable=Nw9;zP.prototype.now=function(){return 0}; zP.prototype.K=function(){return 0}; zP.prototype.S=function(){return 0}; zP.prototype.D=function(){return 0};g.V(BO,zP);BO.prototype.now=function(){return z6()&&aa.performance.now?aa.performance.now():zP.prototype.now.call(this)}; BO.prototype.K=function(){return z6()&&aa.performance.memory?aa.performance.memory.totalJSHeapSize||0:zP.prototype.K.call(this)}; BO.prototype.S=function(){return z6()&&aa.performance.memory?aa.performance.memory.usedJSHeapSize||0:zP.prototype.S.call(this)}; BO.prototype.D=function(){return z6()&&aa.performance.memory?aa.performance.memory.jsHeapSizeLimit||0:zP.prototype.D.call(this)};var Ddb=function(){if(!g.W5.addEventListener||!Object.defineProperty)return!1;var q=!1,Z=Object.defineProperty({},"passive",{get:function(){q=!0}}); try{var F=function(){}; g.W5.addEventListener("test",F,Z);g.W5.removeEventListener("test",F,Z)}catch(B){}return q}();var xyG=OFG("AnimationEnd"),aU=OFG("TransitionEnd");g.r=gV.prototype;g.r.getHeight=function(){return this.bottom-this.top}; g.r.clone=function(){return new gV(this.top,this.right,this.bottom,this.left)}; g.r.contains=function(q){return this&&q?q instanceof gV?q.left>=this.left&&q.right<=this.right&&q.top>=this.top&&q.bottom<=this.bottom:q.x>=this.left&&q.x<=this.right&&q.y>=this.top&&q.y<=this.bottom:!1}; g.r.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.r.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.r.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.r.scale=function(q,Z){Z=typeof Z==="number"?Z:q;this.left*=q;this.right*=q;this.top*=Z;this.bottom*=Z;return this};g.r=g.vF.prototype;g.r.clone=function(){return new g.vF(this.left,this.top,this.width,this.height)}; g.r.contains=function(q){return q instanceof g.e_?q.x>=this.left&&q.x<=this.left+this.width&&q.y>=this.top&&q.y<=this.top+this.height:this.left<=q.left&&this.left+this.width>=q.left+q.width&&this.top<=q.top&&this.top+this.height>=q.top+q.height}; g.r.getSize=function(){return new g.d8(this.width,this.height)}; g.r.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.r.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.r.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.r.scale=function(q,Z){Z=typeof Z==="number"?Z:q;this.left*=q;this.width*=q;this.top*=Z;this.height*=Z;return this};var Z5G={};var uGZ=hG(function(){var q=!1;try{var Z=Object.defineProperty({},"passive",{get:function(){q=!0}}); g.W5.addEventListener("test",null,Z)}catch(F){}return q});hAy.prototype.isVisible=function(){return ex(TU)===1};var ZjD=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");fJ.prototype.fP=function(q,Z,F){q=q+"//"+Z+F;var B=v2G(this)-F.length;if(B<0)return"";this.D.sort(function(N,S){return N-S}); F=null;Z="";for(var f=0;f=b.length){B-=b.length;q+=b;Z=this.S;break}F=F==null?D:F}}B="";F!=null&&(B=""+Z+"trn="+F);return q+B};var Fe8=v7(function(q){return typeof q==="number"}),UM=v7(function(q){return typeof q==="string"}),BEZ=v7(function(q){return typeof q==="boolean"}),RW=v7(function(q){return q!=null&&typeof q==="object"&&typeof q.then==="function"}),hrt=v7(function(q){return!!q&&(typeof q==="object"||typeof q==="function")});var $0Z={wH_:"allow-forms",U8G:"allow-modals",d8n:"allow-orientation-lock",jVl:"allow-pointer-lock",tNs:"allow-popups",Wka:"allow-popups-to-escape-sandbox",XHc:"allow-presentation",N1P:"allow-same-origin",fIa:"allow-scripts",ODL:"allow-top-navigation",lIP:"allow-top-navigation-by-user-activation"},Q1K=hG(function(){return ajk()});qQ.prototype.setInterval=function(q,Z){return aa.setInterval(q,Z)}; qQ.prototype.clearInterval=function(q){aa.clearInterval(q)}; qQ.prototype.setTimeout=function(q,Z){return aa.setTimeout(q,Z)}; qQ.prototype.clearTimeout=function(q){aa.clearTimeout(q)};var Q_=void 0,Fw6,ZAD=typeof TextDecoder!=="undefined",f_8,B29=typeof String.prototype.isWellFormed==="function",FfG=typeof TextEncoder!=="undefined";var ZeK={},lh=null,FzX=RJ||g.YN||typeof g.W5.btoa=="function";var RL7=typeof Uint8Array!=="undefined",z$b=!g.D7&&typeof btoa==="function",QDb=/[-_.]/g,OK7={"-":"+",_:"/",".":"="},eG={};yd.prototype.isEmpty=function(){return this.D==null}; yd.prototype.sizeBytes=function(){var q=$2(this);return q?q.length:0}; var A2X;var MUy=void 0;var lf=typeof Symbol==="function"&&typeof Symbol()==="symbol",RrB=v9("jas",void 0,!0),ID=v9(void 0,"1oa"),SG=v9(void 0,Symbol()),cY5=v9(void 0,"0ub"),h18=v9(void 0,"0ubs"),u$X=v9(void 0,"0ubsb"),DK9=v9(void 0,"0actk"),uN=v9("m_m","wpl",!0),U5D=v9(void 0,"vps"),JY0=v9();Math.max.apply(Math,g.YB(Object.values({hhP:1,ou$:2,gu_:4,OQ_:8,Ia$:16,wuL:32,beU:64,F2G:128,Ozn:256,knU:512,gVE:1024,TpP:2048,Ug$:4096,Vrr:8192})));var cvD={vr:{value:0,configurable:!0,writable:!0,enumerable:!1}},RcK=Object.defineProperties,Sm=lf?RrB:"vr",E3,Y4E=[];KO(Y4E,7);E3=Object.freeze(Y4E);var P_={},CX={},SSD=Object.freeze({}),GI={},zM={};var u5=typeof g.W5.BigInt==="function"&&typeof g.W5.BigInt(0)==="bigint";var p_=v7(function(q){return u5?q>=tBE&&q<=psE:q[0]==="-"?$p8(q,dMm):$p8(q,VBm)}),dMm=Number.MIN_SAFE_INTEGER.toString(),tBE=u5?BigInt(Number.MIN_SAFE_INTEGER):void 0,VBm=Number.MAX_SAFE_INTEGER.toString(),psE=u5?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Nm7=typeof Uint8Array.prototype.slice==="function",KK=0,$v=0,$c8;var RX=typeof BigInt==="function"?BigInt.asIntN:void 0,Wy9=typeof BigInt==="function"?BigInt.asUintN:void 0,XQ=Number.isSafeInteger,T2=Number.isFinite,vm=Math.trunc,aJK=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var u_7={};var er6={mAr:!0};var i5;var ddb,VND;var HHZ=Pm(0),NAB={};gp.prototype.init=function(q,Z,F,B){var f=B===void 0?{}:B;B=f.uZ===void 0?!1:f.uZ;f=f.Qv===void 0?!1:f.Qv;this.uZ=B;this.Qv=f;q&&(q=a_(q,this.Qv),this.K=q.buffer,this.Z=q.D,this.G=Z||0,this.S=F!==void 0?this.G+F:this.K.length,this.D=this.G)}; gp.prototype.free=function(){this.clear();ie.length<100&&ie.push(this)}; gp.prototype.clear=function(){this.K=null;this.Z=!1;this.D=this.S=this.G=0;this.uZ=!1}; gp.prototype.reset=function(){this.D=this.G}; var ie=[];g9.prototype.free=function(){this.D.clear();this.K=this.S=-1;NB.length<100&&NB.push(this)}; g9.prototype.reset=function(){this.D.reset();this.G=this.D.D;this.K=this.S=-1}; var NB=[];var knX,BfB;oA.prototype.length=function(){return this.D.length}; oA.prototype.end=function(){var q=this.D;this.D=[];return q};var y4B=Ic(),T8_=Ic(),MBj=Ic(),ovm=Ic(),qMu=Ic(),ZK5=Ic(),FMj=Ic(),B48=Ic(),fIm=Ic(),Dl8=Ic(),GTe=Ic();y6.prototype.toJSON=function(){return ji(this)}; y6.prototype.D6=function(q){return JSON.stringify(ji(this,q))}; y6.prototype.clone=function(){var q=this.Ec,Z=q[Sm]|0;return wa(this,q,Z)?W_(this,q,!0):new this.constructor(lN(q,Z,!1))}; y6.prototype[uN]=P_;y6.prototype.toString=function(){return this.Ec.toString()};var JRg=t9D(function(q,Z,F,B,f){if(q.K!==2)return!1;Aa(q,CZ(Z,B,F),f);return!0},Va8),XYD=t9D(function(q,Z,F,B,f){if(q.K!==2)return!1; Aa(q,CZ(Z,B,F),f);return!0},Va8),mV=Symbol(),wS=Symbol(),wD5=Symbol(),SN8=Symbol(),Wbu=Symbol(),Ri6,cRZ;var zxe=EU(function(q,Z,F){if(q.K!==1)return!1;Uz(Z,F,mv(q.D));return!0},Be,fIm),nvt=EU(function(q,Z,F){if(q.K!==1)return!1; q=mv(q.D);Uz(Z,F,q===0?void 0:q);return!0},Be,fIm),bK5=EU(function(q,Z,F,B){if(q.K!==1)return!1; xr(Z,F,B,mv(q.D));return!0},Be,fIm),N4_=EU(function(q,Z,F){if(q.K!==0)return!1; Uz(Z,F,cK(q.D));return!0},vg,FMj),gvj=EU(function(q,Z,F){if(q.K!==0)return!1; q=cK(q.D);Uz(Z,F,q===0?void 0:q);return!0},vg,FMj),SMe=EU(function(q,Z,F,B){if(q.K!==0)return!1; xr(Z,F,B,cK(q.D));return!0},vg,FMj),lI0=EU(function(q,Z,F){if(q.K!==0)return!1; Uz(Z,F,d5(q.D));return!0},W3,ovm),UlE=EU(function(q,Z,F){if(q.K!==0)return!1; q=d5(q.D);Uz(Z,F,q===0?void 0:q);return!0},W3,ovm),uQ_=EU(function(q,Z,F,B){if(q.K!==0)return!1; xr(Z,F,B,d5(q.D));return!0},W3,ovm),P5m=EU(function(q,Z,F){if(q.K!==1)return!1; Uz(Z,F,we(q.D));return!0},function(q,Z,F){C66(q,F,ypZ(Z))},B48),rM6=nj(function(q,Z,F){if(q.K!==1&&q.K!==2)return!1; Z=oO(Z,Z[Sm]|0,F);if(q.K==2)for(F=d5(q.D)>>>0,F=q.D.D+F;q.D.D>>0);return!0},function(q,Z,F){Z=ee(Z); Z!=null&&Z!=null&&(XF(q,F,0),DW(q.D,Z))},qMu),Dj=EU(function(q,Z,F){if(q.K!==0)return!1; Uz(Z,F,d5(q.D));return!0},function(q,Z,F){Z=MB(Z); Z!=null&&(Z=parseInt(Z,10),XF(q,F,0),BbD(q.D,Z))},GTe);var IkB=new Map;g.V(Cv8,FSB);xKg.prototype.register=function(){pF(this)};g.V(h_,y6);h_.prototype.S=YPk([0,nvt,gvj,-2,UlE]);ZZX.prototype.Q5=function(q){var Z=this.D[q.key];if(q.valueType==="proto"){try{var F=JSON.parse(Z);if(Array.isArray(F))return F}catch(B){}return q.defaultValue}return typeof Z===typeof q.defaultValue?Z:q.defaultValue};var o0K={vEE:1,dL:2,Y$_:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};FyD.prototype.Vf=function(q){if(typeof q==="string"&&q.length!=0){var Z=this.Be;if(Z.K){q=q.split("&");for(var F=q.length-1;F>=0;F--){var B=q[F].split("="),f=decodeURIComponent(B[0]);B.length>1?(B=decodeURIComponent(B[1]),B=/^[0-9]+$/g.exec(B)?parseInt(B,10):B):B=1;(f=Z.D[f])&&f.S(B)}}}};var Gx=null;var O2=g.W5.performance,xlu=!!(O2&&O2.mark&&O2.measure&&O2.clearMarks),QI=hG(function(){var q;if(q=xlu){var Z=Z===void 0?window:Z;if(Gx===null){Gx="";try{q="";try{q=Z.top.location.hash}catch(B){q=Z.location.hash}if(q){var F=q.match(/\bdeid=([\d,]+)/);Gx=F?F[1]:""}}catch(B){}}Z=Gx;q=!!Z.indexOf&&Z.indexOf("1337")>=0}return q}); JH.prototype.disable=function(){this.D=!1;this.events!==this.K.google_js_reporting_queue&&(QI()&&g.yn(this.events,UrK),this.events.length=0)}; JH.prototype.start=function(q,Z){if(!this.D)return null;var F=Sbg()||ppb();q=new Di8(q,Z,F);Z="goog_"+q.label+"_"+q.uniqueId+"_start";O2&&QI()&&O2.mark(Z);return q}; JH.prototype.end=function(q){if(this.D&&typeof q.value==="number"){var Z=Sbg()||ppb();q.duration=Z-q.value;Z="goog_"+q.label+"_"+q.uniqueId+"_end";O2&&QI()&&O2.mark(Z);!this.D||this.events.length>2048||this.events.push(q)}};var zhK=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),B2=/#|$/,osK=/[?&]($|#)/;joK.prototype.kU=function(q,Z,F,B,f){f=f||this.VN;try{var D=new fJ;D.D.push(1);D.K[1]=aD("context",q);Z.error&&Z.meta&&Z.id||(Z=new xw(Gky(Z)));if(Z.msg){var G=Z.msg.substring(0,512);D.D.push(2);D.K[2]=aD("msg",G)}var n=Z.meta||{};if(this.aT)try{this.aT(n)}catch(u){}if(B)try{B(n)}catch(u){}B=[n];D.D.push(3);D.K[3]=B;var b=Bm9();if(b.K){var N=b.K.url||"";D.D.push(4);D.K[4]=aD("top",N)}var S={url:b.D.url||""};if(b.D.url){var l=g.oi(b.D.url);var U=yK(l[1],null,l[3],l[4])}else U="";N=[S,{url:U}];D.D.push(5); D.K[5]=N;TXu(this.D,f,D,F)}catch(u){try{TXu(this.D,f,{context:"ecmserr",rctx:q,msg:Gky(u),url:b&&b.D.url},F)}catch(P){}}return this.ea}; g.V(xw,soZ);var vY,qn,A9=new JH;vY=new function(){var q="https:";aa&&aa.location&&aa.location.protocol==="http:"&&(q="http:");this.K=q;this.D=.01}; qn=new joK;aa&&aa.document&&(aa.document.readyState=="complete"?XHK():A9.D&&pw(aa,"load",function(){XHK()}));var PCB=Date.now(),r8=-1,Fd=-1,qA7,ZP=-1,Ps=!1;N_.prototype.equals=function(q,Z){return!!q&&(!(Z===void 0?0:Z)||this.volume==q.volume)&&this.S==q.S&&Ol(this.D,q.D)&&!0};M8.prototype.QO=function(){return this.X}; M8.prototype.equals=function(q,Z){return this.G.equals(q.G,Z===void 0?!1:Z)&&this.X==q.X&&Ol(this.S,q.S)&&Ol(this.j,q.j)&&this.D==q.D&&this.Z==q.Z&&this.K==q.K&&this.V==q.V};var AMm={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},gm={R0:"start",e2:"firstquartile",uR:"midpoint",ZB:"thirdquartile",COMPLETE:"complete",ERROR:"error",iR:"metric",PAUSE:"pause",YG:"resume",kG:"skip",Ud:"viewable_impression",S1:"mute",Bn:"unmute",qI:"fullscreen",It:"exitfullscreen",OC:"bufferstart",f7:"bufferfinish",C7:"fully_viewable_audible_half_duration_impression",DB:"measurable_impression",Zk:"abandon",L7:"engagedview",Fa:"impression",xn:"creativeview",LOADED:"loaded", D4n:"progress",CLOSE:"close",gxa:"collapse",bQp:"overlay_resize",xgG:"overlay_unmeasurable_impression",V7r:"overlay_unviewable_impression",LKU:"overlay_viewable_immediate_impression",HQc:"overlay_viewable_end_of_session_impression",VA:"custom_metric_viewable",UC:"audio_audible",j2:"audio_measurable",dC:"audio_impression"},oLG="start firstquartile midpoint thirdquartile resume loaded".split(" "),qRX=["start","firstquartile","midpoint","thirdquartile"],gBE=["abandon"],Eb={UNKNOWN:-1,R0:0,e2:1,uR:2, ZB:3,COMPLETE:4,iR:5,PAUSE:6,YG:7,kG:8,Ud:9,S1:10,Bn:11,qI:12,It:13,C7:14,DB:15,Zk:16,L7:17,Fa:18,xn:19,LOADED:20,VA:21,OC:22,f7:23,dC:27,j2:28,UC:29};var CzD={m8a:"addEventListener",bza:"getMaxSize",xBE:"getScreenSize",V5E:"getState",Hzn:"getVersion",f9n:"removeEventListener",bRc:"isViewable"};CS9.prototype.update=function(q){q&&q.document&&(this.X=l$(!1,q,this.isMobileDevice),this.D=l$(!0,q,this.isMobileDevice),AgG(this,q),Lvk(this,q))};wq8.prototype.cancel=function(){VB().clearTimeout(this.D);this.D=null}; wq8.prototype.schedule=function(){var q=this,Z=VB(),F=PT().D.D;this.D=Z.setTimeout(H1(F,rw(143,function(){q.K++;q.S.sample()})),$SG())};g.r=$Y.prototype;g.r.EK=function(){return!1}; g.r.initialize=function(){return this.isInitialized=!0}; g.r.Py=function(){return this.D.k$}; g.r.Do=function(){return this.D.Dl}; g.r.fail=function(q,Z){if(!this.Dl||(Z===void 0?0:Z))this.Dl=!0,this.k$=q,this.V=0,this.D!=this||Ux(this)}; g.r.getName=function(){return this.D.WG}; g.r.hY=function(){return this.D.A6()}; g.r.A6=function(){return{}}; g.r.o2=function(){return this.D.V}; g.r.Kr=function(){var q=EY();q.D=l$(!0,this.S,q.isMobileDevice)}; g.r.Sc=function(){Lvk(EY(),this.S)}; g.r.NR=function(){return this.G.D}; g.r.sample=function(){}; g.r.isActive=function(){return this.D.j}; g.r.AR=function(q){var Z=this.D;this.D=q.o2()>=this.V?q:this;Z!==this.D?(this.j=this.D.j,Ux(this)):this.j!==this.D.j&&(this.j=this.D.j,Ux(this))}; g.r.EH=function(q){if(q.K===this.D){var Z=!this.G.equals(q,this.PG);this.G=q;Z&&Ggk(this)}}; g.r.x9=function(){return this.PG}; g.r.dispose=function(){this.Y$=!0}; g.r.jU=function(){return this.Y$};g.r=Uv.prototype;g.r.observe=function(){return!0}; g.r.unobserve=function(){}; g.r.j4=function(q){this.Z=q}; g.r.dispose=function(){if(!this.jU()){var q=this.K;g.NL(q.Z,this);q.PG&&this.x9()&&JjB(q);this.unobserve();this.zP=!0}}; g.r.jU=function(){return this.zP}; g.r.hY=function(){return this.K.hY()}; g.r.o2=function(){return this.K.o2()}; g.r.Py=function(){return this.K.Py()}; g.r.Do=function(){return this.K.Do()}; g.r.AR=function(){}; g.r.EH=function(){this.YX()}; g.r.x9=function(){return this.Y$};g.r=wd.prototype;g.r.o2=function(){return this.D.o2()}; g.r.Py=function(){return this.D.Py()}; g.r.Do=function(){return this.D.Do()}; g.r.create=function(q,Z,F){var B=null;this.D&&(B=this.Xt(q,Z,F),PP(this.D,B));return B}; g.r.Gz=function(){return this.sK()}; g.r.sK=function(){return!1}; g.r.init=function(q){return this.D.initialize()?(PP(this.D,this),this.G=q,!0):!1}; g.r.AR=function(q){q.o2()==0&&this.G(q.Py(),this)}; g.r.EH=function(){}; g.r.x9=function(){return!1}; g.r.dispose=function(){this.Z=!0}; g.r.jU=function(){return this.Z}; g.r.hY=function(){return{}};V9.prototype.add=function(q,Z,F){++this.S;q=new ig7(q,Z,F);this.D.push(new ig7(q.K,q.D,q.S+this.S/4096));this.K=!0;return this};UyZ.prototype.toString=function(){var q="//pagead2.googlesyndication.com//pagead/gen_204",Z=szb(this.D);Z.length>0&&(q+="?"+Z);return q};g.J.prototype.T6=!1;g.J.prototype.jU=function(){return this.T6}; g.J.prototype.dispose=function(){this.T6||(this.T6=!0,this.SU())}; g.J.prototype[Symbol.dispose]=function(){this.dispose()}; g.J.prototype.addOnDisposeCallback=function(q,Z){this.T6?Z!==void 0?q.call(Z):q():(this.w3||(this.w3=[]),Z&&(q=q.bind(Z)),this.w3.push(q))}; g.J.prototype.SU=function(){if(this.w3)for(;this.w3.length;)this.w3.shift()()};var vvB=[0,N4_,wmE,-1];aP.prototype.update=function(q,Z,F){q&&(this.D+=Z,this.K+=Z,this.G+=Z,this.S=Math.max(this.S,this.G));if(F===void 0?!q:F)this.G=0};var dBD=[1,.75,.5,.3,0];$V.prototype.update=function(q,Z,F,B,f,D){D=D===void 0?!0:D;Z=f?Math.min(q,Z):Z;for(f=0;f0&&Z>=G;G=!(q>0&&q>=G)||F;this.D[f].update(D&&n,B,!D||G)}};m7.prototype.update=function(q,Z,F,B){this.X=this.X!=-1?Math.min(this.X,Z.oy):Z.oy;this.uL=Math.max(this.uL,Z.oy);this.zP=this.zP!=-1?Math.min(this.zP,Z.Cz):Z.Cz;this.k$=Math.max(this.k$,Z.Cz);this.vG.update(Z.Cz,F.Cz,Z.D,q,B);this.BG+=q;Z.oy===0&&(this.WG+=q);this.K.update(Z.oy,F.oy,Z.D,q,B);F=B||F.KY!=Z.KY?F.isVisible()&&Z.isVisible():F.isVisible();Z=!Z.isVisible()||Z.D;this.HG.update(F,q,Z)}; m7.prototype.Fn=function(){return this.HG.S>=this.I_};if(TU&&TU.URL){var Xmm=TU.URL,EvE;a:{if(Xmm){var KMj=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var zx=KMj.exec(decodeURIComponent(Xmm));if(zx){EvE=zx[1]&&zx[1].length>1?zx[1].substring(1):"true";break a}}catch(q){}}EvE=""}qn.ea=!(EvE.length>0)};var $lm=new gV(0,0,0,0);var jyZ=new gV(0,0,0,0);g.V(kc,g.J);g.r=kc.prototype; g.r.SU=function(){if(this.rp.D){if(this.tH.tA){var q=this.rp.D;typeof q.removeEventListener==="function"&&q.removeEventListener("mouseover",this.tH.tA,tX());this.tH.tA=null}this.tH.jO&&(q=this.rp.D,typeof q.removeEventListener==="function"&&q.removeEventListener("mouseout",this.tH.jO,tX()),this.tH.jO=null)}this.hN&&this.hN.dispose();this.bk&&this.bk.dispose();delete this.eZ;delete this.p9;delete this.qn;delete this.rp.wm;delete this.rp.D;delete this.tH;delete this.hN;delete this.bk;delete this.Be; g.J.prototype.SU.call(this)}; g.r.xX=function(){return this.bk?this.bk.D:this.position}; g.r.Vf=function(q){PT().Vf(q)}; g.r.x9=function(){return!1}; g.r.lM=function(){return new m7}; g.r.Vc=function(){return this.eZ}; g.r.RQ=function(q){return MmG(this,q,1E4)}; g.r.ys=function(q,Z,F,B,f,D,G){this.DL||(this.AT&&(q=this.M_(q,F,f,G),B=B&&this.tW.oy>=(this.KY()?.3:.5),this.dc(D,q,B),this.mx=Z,q.oy>0&&-1===this.ZS&&(this.ZS=Z),this.jz==-1&&this.Fn()&&(this.jz=Z),this.Qj==-2&&(this.Qj=$ye(this.xX())?q.oy:-1),this.tW=q),this.p9(this))}; g.r.dc=function(q,Z,F){this.Vc().update(q,Z,this.tW,F)}; g.r.ey=function(){return new IO}; g.r.M_=function(q,Z,F,B){F=this.ey();F.D=Z;Z=VB().K;Z=ex(TU)===0?-1:Z.isVisible()?0:1;F.K=Z;F.oy=this.Uk(q);F.KY=this.KY();F.Cz=B;return F}; g.r.Uk=function(q){return this.opacity===0&&Uy(this.Be,"opac")===1?0:q}; g.r.KY=function(){return!1}; g.r.TR=function(){return this.KrP||this.zFn}; g.r.hK=function(){F0()}; g.r.Pb=function(){F0()}; g.r.sf=function(){return 0}; g.r.Fn=function(){return this.eZ.Fn()}; g.r.yH=function(){var q=this.AT;q=(this.hasCompleted||this.jU())&&!q;var Z=PT().K!==2||this.BYp;return this.DL||Z&&q?2:this.Fn()?4:3}; g.r.ZD=function(){return 0};g.qw.prototype.next=function(){return g.nQ}; g.nQ={done:!0,value:void 0};g.qw.prototype.Pu=function(){return this};g.V(AB0,IO);var bz=Vj7([void 0,1,2,3,4,8,16]),N0=Vj7([void 0,4,8,16]),aI5={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:kD("p0",N0),p1:kD("p1",N0),p2:kD("p2",N0),p3:kD("p3",N0),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:WE("mtos1",[0,2,4],!1,N0),mtos2:WE("mtos2",[0,2,4],!1,N0),mtos3:WE("mtos3",[0,2,4],!1,N0),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:kD("a0",N0),a1:kD("a1",N0),a2:kD("a2",N0),a3:kD("a3",N0),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:kD("c0",N0),c1:kD("c1",N0),c2:kD("c2",N0),c3:kD("c3",N0),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:kD("qmtos",bz),qnc:kD("qnc",bz),qmv:kD("qmv",bz),qnv:kD("qnv",bz), 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:kD("ss0",N0),ss1:kD("ss1",N0),ss2:kD("ss2",N0),ss3:kD("ss3",N0),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"},ml5=Object.assign({},aI5,{avid:v8("audio"),avas:"avas",vs:"vs"}),iK8={atos:"atos",avt:WE("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(q,Z){return function(F){return F[q]===void 0&&Z!==void 0?Z:F[q]}}("ss",0), t:"t"};Hb.prototype.getValue=function(){return this.K}; Hb.prototype.update=function(q,Z){q>=32||(this.D&1<=.5;TO(Z.volume)&&(this.G=this.G!=-1?Math.min(this.G,Z.volume):Z.volume,this.j=Math.max(this.j,Z.volume));D&&(this.Y$+=q,this.PG+=f?q:0);this.D.update(Z.oy,F.oy,Z.D,q,B,f);this.S.update(!0,q);this.Z.update(f,q);this.Dl.update(F.fullscreen,q);this.Jn.update(f&&!D,q);q=Math.floor(Z.mediaTime/1E3);this.dU.update(q,Z.isVisible());this.eU.update(q,Z.oy>=1);this.o_.update(q, M3(Z))}};Td9.prototype.K=function(q){this.S||(this.D(q)?(q=jhk(this.PG,this.G,q),this.Z|=q,q=q==0):q=!1,this.S=q)};g.V(Yw,Td9);Yw.prototype.D=function(){return!0}; Yw.prototype.j=function(){return!1}; Yw.prototype.getId=function(){var q=this,Z=d1(gm,function(F){return F==q.G}); return Eb[Z].toString()}; Yw.prototype.toString=function(){var q="";this.j()&&(q+="c");this.S&&(q+="s");this.Z>0&&(q+=":"+this.Z);return this.getId()+q};g.V(vz,Yw);vz.prototype.K=function(q,Z){Z=Z===void 0?null:Z;Z!=null&&this.X.push(Z);Yw.prototype.K.call(this,q)};g.V(ae,aFZ);ae.prototype.K=function(){return null}; ae.prototype.S=function(){return[]};g.V(ui,Uv);g.r=ui.prototype;g.r.iC=function(){if(this.element){var q=this.element,Z=this.K.D.S;try{try{var F=uxG(q.getBoundingClientRect())}catch(N){F=new gV(0,0,0,0)}var B=F.right-F.left,f=F.bottom-F.top,D=WvX(q,Z),G=D.x,n=D.y;var b=new gV(Math.round(n),Math.round(G+B),Math.round(n+f),Math.round(G))}catch(N){b=$lm.clone()}this.S=b;this.D=d_k(this,this.S)}}; g.r.V9=function(){this.j=this.K.G.D}; g.r.wO=function(q){var Z=Uy(this.Be,"od")==1;return D$X(q,this.j,this.element,Z)}; g.r.Hm=function(){this.timestamp=F0()}; g.r.YX=function(){this.Hm();this.iC();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var q=this.element;var Z=new g.d8(q.videoWidth,q.videoHeight);q=this.D;var F=f1(q),B=q.getHeight(),f=Z.width;Z=Z.height;f<=0||Z<=0||F<=0||B<=0||(f/=Z,Z=F/B,q=q.clone(),f>Z?(F/=f,B=(B-F)/2,B>0&&(B=q.top+B,q.top=Math.round(B),q.bottom=Math.round(B+F))):(B*=f,F=Math.round((F-B)/2),F>0&&(F=q.left+F,q.left=Math.round(F),q.right=Math.round(F+B))));this.D=q}this.V9(); q=this.D;F=this.j;q=q.left<=F.right&&F.left<=q.right&&q.top<=F.bottom&&F.top<=q.bottom?new gV(Math.max(q.top,F.top),Math.min(q.right,F.right),Math.min(q.bottom,F.bottom),Math.max(q.left,F.left)):new gV(0,0,0,0);F=q.top>=q.bottom||q.left>=q.right?new gV(0,0,0,0):q;q=this.K.G;Z=f=B=0;if((this.D.bottom-this.D.top)*(this.D.right-this.D.left)>0)if(this.wO(F))F=new gV(0,0,0,0);else{B=EY().G;Z=new gV(0,B.height,B.width,0);var D;B=jG5(F,(D=this.Z)!=null?D:this.D);f=jG5(F,EY().D);Z=jG5(F,Z)}D=F.top>=F.bottom|| F.left>=F.right?new gV(0,0,0,0):Pg(F,-this.D.left,-this.D.top);ub()||(f=B=0);this.PG=new M8(q,this.element,this.D,D,B,f,this.timestamp,Z)}; g.r.getName=function(){return this.K.getName()};var kT0=new gV(0,0,0,0);g.V(zp,ui);g.r=zp.prototype;g.r.observe=function(){this.G();return!0}; g.r.EH=function(){ui.prototype.YX.call(this)}; g.r.Hm=function(){}; g.r.iC=function(){}; g.r.YX=function(){this.G();ui.prototype.YX.call(this)}; g.r.AR=function(q){q=q.isActive();q!==this.V&&(q?this.G():(EY().D=new gV(0,0,0,0),this.D=new gV(0,0,0,0),this.j=new gV(0,0,0,0),this.timestamp=-1));this.V=q};var g$={},vmK=(g$.firstquartile=0,g$.midpoint=1,g$.thirdquartile=2,g$.complete=3,g$);g.V(du8,kc);g.r=du8.prototype;g.r.x9=function(){return!0}; g.r.H3=function(){return this.oS==2}; g.r.RQ=function(q){return MmG(this,q,Math.max(1E4,this.S/3))}; g.r.ys=function(q,Z,F,B,f,D,G){var n=this,b=this.X(this)||{};g.gN(b,f);this.S=b.duration||this.S;this.PG=b.isVpaid||this.PG;this.WG=b.isYouTube||this.WG;VB();this.vG=!1;f=HOX(this,Z);Nib(this)===1&&(D=f);kc.prototype.ys.call(this,q,Z,F,B,b,D,G);this.sA&&this.sA.S&&g.yn(this.j,function(N){N.K(n)})}; g.r.dc=function(q,Z,F){kc.prototype.dc.call(this,q,Z,F);hu(this).update(q,Z,this.tW,F);this.I_=M3(this.tW)&&M3(Z);this.k$==-1&&this.eU&&(this.k$=this.Vc().S.D);this.a4.S=0;q=this.Fn();Z.isVisible()&&GE(this.a4,"vs");q&&GE(this.a4,"vw");TO(Z.volume)&&GE(this.a4,"am");M3(Z)?GE(this.a4,"a"):GE(this.a4,"mut");this.jq&&GE(this.a4,"f");Z.K!=-1&&(GE(this.a4,"bm"),Z.K==1&&(GE(this.a4,"b"),M3(Z)&&GE(this.a4,"umutb")));M3(Z)&&Z.isVisible()&&GE(this.a4,"avs");this.I_&&q&&GE(this.a4,"avw");Z.oy>0&&GE(this.a4, "pv");ra6(this,this.Vc().S.D,!0)&&GE(this.a4,"gdr");j79(this.Vc().K,1)>=2E3&&GE(this.a4,"pmx");this.vG&&GE(this.a4,"tvoff")}; g.r.lM=function(){return new O7}; g.r.Vc=function(){return this.eZ}; g.r.ey=function(){return new AB0}; g.r.M_=function(q,Z,F,B){q=kc.prototype.M_.call(this,q,Z,F,B===void 0?-1:B);q.fullscreen=this.jq;q.paused=this.H3();q.volume=F.volume;TO(q.volume)||(this.KB++,Z=this.tW,TO(Z.volume)&&(q.volume=Z.volume));F=F.currentTime;q.mediaTime=F!==void 0&&F>=0?F:-1;return q}; g.r.Uk=function(q){return EY(),this.jq?1:kc.prototype.Uk.call(this,q)}; g.r.sf=function(){return 1}; g.r.getDuration=function(){return this.S}; g.r.yH=function(){return this.DL?2:w0Z(this)?5:this.Fn()?4:3}; g.r.ZD=function(){return this.Jn?this.Vc().Z.S>=2E3?4:3:2}; g.r.j4=function(q){this.bk&&this.bk.j4(q)};var sC_=g.i$();Zej.prototype.reset=function(){this.D=[];this.K=[]}; var Qt=ug(Zej);g.V(LI,wd);g.r=LI.prototype;g.r.getName=function(){return(this.K?this.K:this.D).getName()}; g.r.hY=function(){return(this.K?this.K:this.D).hY()}; g.r.o2=function(){return(this.K?this.K:this.D).o2()}; g.r.init=function(q){var Z=!1;(0,g.yn)(this.S,function(F){F.initialize()&&(Z=!0)}); Z&&(this.G=q,PP(this.D,this));return Z}; g.r.dispose=function(){(0,g.yn)(this.S,function(q){q.dispose()}); wd.prototype.dispose.call(this)}; g.r.Gz=function(){return cU(this.S,function(q){return q.EK()})}; g.r.sK=function(){return cU(this.S,function(q){return q.EK()})}; g.r.Xt=function(q,Z,F){return new ui(q,this.D,Z,F)}; g.r.EH=function(q){this.K=q.K};var eAD={threshold:[0,.3,.5,.75,1]};g.V($KB,ui);g.r=$KB.prototype;g.r.observe=function(){var q=this;this.uL||(this.uL=F0());if(BD9(298,function(){return TrK(q)}))return!0; this.K.fail("msf");return!1}; g.r.unobserve=function(){if(this.G&&this.element)try{this.G.unobserve(this.element),this.V?(this.V.unobserve(this.element),this.V=null):this.X&&(this.X.disconnect(),this.X=null)}catch(q){}}; g.r.YX=function(){var q=uJ(this);q.length>0&&p$(this,q);ui.prototype.YX.call(this)}; g.r.iC=function(){}; g.r.wO=function(){return!1}; g.r.V9=function(){}; g.r.hY=function(){var q={};return Object.assign(this.K.hY(),(q.niot_obs=this.uL,q.niot_cbk=this.Dl,q))}; g.r.getName=function(){return"nio"};g.V(HK,wd);HK.prototype.getName=function(){return"nio"}; HK.prototype.sK=function(){return!EY().K&&this.D.D.S.IntersectionObserver!=null}; HK.prototype.Xt=function(q,Z,F){return new $KB(q,this.D,Z,F)};g.V(mB,$Y);mB.prototype.NR=function(){return EY().D}; mB.prototype.EK=function(){var q=NaZ();this.V!==q&&(this.D!=this&&q>this.D.V&&(this.D=this,Ux(this)),this.V=q);return q==2};W2K.prototype.sample=function(){Lu(this,Bc(),!1)}; W2K.prototype.G=function(){var q=ub(),Z=F0();q?(Ps||(r8=Z,g.yn(Qt.D,function(F){var B=F.Vc();B.Oc=oO8(B,Z,F.oS!=1)})),Ps=!0):(this.X=C8Z(this,Z),Ps=!1,qA7=Z,g.yn(Qt.D,function(F){F.AT&&(F.Vc().V=Z)})); Lu(this,Bc(),!q)}; var Pz=ug(W2K);var Zh7=null,e3="",DQ=!1;var uFB=c9k().gx,Xo=c9k().h3;var Y6B={XXE:"visible",Pnl:"audible",Zxs:"time",r3G:"timetype"},t7b={visible:function(q){return/^(100|[0-9]{1,2})$/.test(q)}, audible:function(q){return q=="0"||q=="1"}, timetype:function(q){return q=="mtos"||q=="tos"}, time:function(q){return/^(100|[0-9]{1,2})%$/.test(q)||/^([0-9])+ms$/.test(q)}}; Y16.prototype.setTime=function(q,Z,F){Z=="ms"?(this.S=q,this.G=-1):(this.S=-1,this.G=q);this.Z=F===void 0?"tos":F;return this};g.V(uc,Yw);uc.prototype.getId=function(){return this.X}; uc.prototype.j=function(){return!0}; uc.prototype.D=function(q){var Z=q.Vc(),F=q.getDuration();return cU(this.V,function(B){if(B.D!=void 0)var f=Qxk(B,Z);else b:{switch(B.Z){case "mtos":f=B.K?Z.Z.S:Z.S.D;break b;case "tos":f=B.K?Z.Z.D:Z.S.D;break b}f=0}f==0?B=!1:(B=B.S!=-1?B.S:F!==void 0&&F>0?B.G*F:-1,B=B!=-1&&f>=B);return B})};g.V(bJ,VOX);bJ.prototype.D=function(q){var Z=new WB9;Z.D=pR(q,aI5);Z.K=pR(q,iK8);return Z};g.V(Tx7,Yw);Tx7.prototype.D=function(q){return w0Z(q)};g.V(TY,aFZ);g.V(t9,Yw);t9.prototype.D=function(q){return q.Vc().Fn()};g.V(XM,vz);XM.prototype.D=function(q){var Z=g.r1(this.X,Uy(PT().Be,"ovms"));return!q.DL&&(q.oS!=0||Z)};g.V(LJ,TY);LJ.prototype.K=function(){return new XM(this.D)}; LJ.prototype.S=function(){return[new t9("viewable_impression",this.D),new Tx7(this.D)]};g.V(nq,zp);nq.prototype.G=function(){var q=g.ym("ima.admob.getViewability"),Z=Uy(this.Be,"queryid");typeof q==="function"&&Z&&q(Z)}; nq.prototype.getName=function(){return"gsv"};g.V(WK,wd);WK.prototype.getName=function(){return"gsv"}; WK.prototype.sK=function(){var q=EY();PT();return q.K&&!1}; WK.prototype.Xt=function(q,Z,F){return new nq(this.D,Z,F)};g.V(ck,zp);ck.prototype.G=function(){var q=this,Z=g.ym("ima.bridge.getNativeViewability"),F=Uy(this.Be,"queryid");typeof Z==="function"&&F&&Z(F,function(B){g.q_(B)&&q.X++;var f=B.opt_nativeViewVisibleBounds||{},D=B.opt_nativeViewHidden;q.D=M77(B.opt_nativeViewBounds||{});var G=q.K.G;G.D=D?kT0.clone():M77(f);q.timestamp=B.opt_nativeTime||-1;EY().D=G.D;B=B.opt_nativeVolume;B!==void 0&&(G.volume=B)})}; ck.prototype.getName=function(){return"nis"};g.V(yg,wd);yg.prototype.getName=function(){return"nis"}; yg.prototype.sK=function(){var q=EY();PT();return q.K&&!1}; yg.prototype.Xt=function(q,Z,F){return new ck(this.D,Z,F)};g.V(wN,$Y);g.r=wN.prototype;g.r.EK=function(){return this.K.Ck!=null}; g.r.A6=function(){var q={};this.dU&&(q.mraid=this.dU);this.zP&&(q.mlc=1);q.mtop=this.K.eJE;this.X&&(q.mse=this.X);this.BG&&(q.msc=1);q.mcp=this.K.compatibility;return q}; g.r.iF=function(q){var Z=g.CF.apply(1,arguments);try{return this.K.Ck[q].apply(this.K.Ck,Z)}catch(F){pI(538,F,.01,function(B){B.method=q})}}; g.r.initialize=function(){var q=this;if(this.isInitialized)return!this.Do();this.isInitialized=!0;if(this.K.compatibility===2)return this.X="ng",this.fail("w"),!1;if(this.K.compatibility===1)return this.X="mm",this.fail("w"),!1;EY().V=!0;this.S.document.readyState&&this.S.document.readyState=="complete"?S4E(this):aJ(this.S,"load",function(){VB().setTimeout(rw(292,function(){return S4E(q)}),100)},292); return!0}; g.r.Kr=function(){var q=EY(),Z=gjg(this,"getMaxSize");q.D=new gV(0,Z.width,Z.height,0)}; g.r.Sc=function(){EY().G=gjg(this,"getScreenSize")}; g.r.dispose=function(){sXK(this);$Y.prototype.dispose.call(this)};var jC_=new function(q,Z){this.key=q;this.defaultValue=Z===void 0?!1:Z;this.valueType="boolean"}("45378663");g.r=rz.prototype;g.r.Fv=function(q){Kn(q,!1);iok(q)}; g.r.L3=function(){}; g.r.EB=function(q,Z,F,B){var f=this;q=new du8(aa,q,F?Z:-1,7,this.xC(),this.YB());q.kx=B;jty(q.Be);fF(q.Be,"queryid",q.kx);q.Vf("");CWK(q,function(){return f.H9.apply(f,g.YB(g.CF.apply(0,arguments)))},function(){return f.Wr.apply(f,g.YB(g.CF.apply(0,arguments)))}); (B=ug(dz).D)&&wRk(q,B);this.S&&(q.j4(this.S),this.S=null);q.rp.wm&&ug(AC6);return q}; g.r.AR=function(q){switch(q.o2()){case 0:if(q=ug(dz).D)q=q.D,g.NL(q.Z,this),q.PG&&this.x9()&&JjB(q);fq();break;case 2:rH()}}; g.r.EH=function(){}; g.r.x9=function(){return!1}; g.r.Wr=function(q,Z){q.DL=!0;switch(q.sf()){case 1:MlD(q,Z);break;case 2:this.Ex(q)}}; g.r.V_=function(q){var Z=q.X(q);Z&&(Z=Z.volume,q.Jn=TO(Z)&&Z>0);Png(q,0);return Ub(q,"start",ub())}; g.r.m8=function(q,Z,F){Lu(Pz,[q],!ub());return this.vK(q,Z,F)}; g.r.vK=function(q,Z,F){return Ub(q,F,ub())}; g.r.O0=function(q){return Ts(q,"firstquartile",1)}; g.r.oP=function(q){q.eU=!0;return Ts(q,"midpoint",2)}; g.r.Hr=function(q){return Ts(q,"thirdquartile",3)}; g.r.X4=function(q){var Z=Ts(q,"complete",4);h9(q);return Z}; g.r.Nc=function(q){q.oS=3;return Ub(q,"error",ub())}; g.r.pN=function(q,Z,F){Z=ub();if(q.H3()&&!Z){var B=q.Vc(),f=F0();B.V=f}Lu(Pz,[q],!Z);q.H3()&&(q.oS=1);return Ub(q,F,Z)}; g.r.xW=function(q,Z){Z=this.m8(q,Z||{},"skip");h9(q);return Z}; g.r.y_=function(q,Z){Kn(q,!0);return this.m8(q,Z||{},"fullscreen")}; g.r.fT=function(q,Z){Kn(q,!1);return this.m8(q,Z||{},"exitfullscreen")}; g.r.Ns=function(q,Z,F){Z=q.Vc();var B=F0();Z.Oc=oO8(Z,B,q.oS!=1);Lu(Pz,[q],!ub());q.oS==1&&(q.oS=2);return Ub(q,F,ub())}; g.r.bv=function(q){Lu(Pz,[q],!ub());return q.K()}; g.r.rT=function(q){Lu(Pz,[q],!ub());this.KN(q);h9(q);return q.K()}; g.r.H9=function(){}; g.r.Ex=function(){}; g.r.KN=function(){}; g.r.zz=function(){}; g.r.Ve=function(){}; g.r.YB=function(){this.D||(this.D=this.Ve());return this.D==null?new ae:new LJ(this.D)}; g.r.xC=function(){return new bJ};g.V(zt8,Yw);zt8.prototype.D=function(q){return q.ZD()==4};g.V(vCb,vz);vCb.prototype.D=function(q){q=q.ZD();return q==3||q==4};g.V(Mx,TY);Mx.prototype.K=function(){return new vCb(this.D)}; Mx.prototype.S=function(){return[new zt8(this.D)]};g.V(wJ8,VOX);wJ8.prototype.D=function(q){q&&(q.e===28&&(q=Object.assign({},q,{avas:3})),q.vs===4||q.vs===5)&&(q=Object.assign({},q,{vs:3}));var Z=new WB9;Z.D=pR(q,ml5);Z.K=pR(q,iK8);return Z};gVD.prototype.K=function(){return g.ym(this.D)};g.V(Ma,rz);g.r=Ma.prototype;g.r.L3=function(q,Z){var F=this,B=ug(dz);if(B.D!=null)switch(B.D.getName()){case "nis":var f=UiK(this,q,Z);break;case "gsv":f=NqG(this,q,Z);break;case "exc":f=zu8(this,q)}f||(Z.opt_overlayAdElement?f=void 0:Z.opt_adElement&&(f=FIg(this,q,Z.opt_adElement,Z.opt_osdId)));f&&f.sf()==1&&(f.X==g.Ww&&(f.X=function(D){return F.zz(D)}),HG7(this,f,Z)); return f}; g.r.zz=function(q){q.K=0;q.Y$=0;if(q.G=="h"||q.G=="n"){PT();q.o_&&(PT(),OW(this)!="h"&&OW(this));var Z=g.ym("ima.common.getVideoMetadata");if(typeof Z==="function")try{var F=Z(q.kx)}catch(f){q.K|=4}else q.K|=2}else if(q.G=="b")if(Z=g.ym("ytads.bulleit.getVideoMetadata"),typeof Z==="function")try{F=Z(q.kx)}catch(f){q.K|=4}else q.K|=2;else if(q.G=="ml")if(Z=g.ym("ima.common.getVideoMetadata"),typeof Z==="function")try{F=Z(q.kx)}catch(f){q.K|=4}else q.K|=2;else q.K|=1;q.K||(F===void 0?q.K|=8:F===null? q.K|=16:g.q_(F)?q.K|=32:F.errorCode!=null&&(q.Y$=F.errorCode,q.K|=64));F==null&&(F={});Z=F;q.V=0;for(var B in AMm)Z[B]==null&&(q.V|=AMm[B]);G3G(Z,"currentTime");G3G(Z,"duration");TO(F.volume)&&TO()&&(F.volume*=NaN);return F}; g.r.Ve=function(){PT();OW(this)!="h"&&OW(this);var q=SwD(this);return q!=null?new gVD(q):null}; g.r.Ex=function(q){!q.D&&q.DL&&OL7(this,q,"overlay_unmeasurable_impression")&&(q.D=!0)}; g.r.KN=function(q){q.LN&&(q.Fn()?OL7(this,q,"overlay_viewable_end_of_session_impression"):OL7(this,q,"overlay_unviewable_impression"),q.LN=!1)}; g.r.H9=function(){}; g.r.EB=function(q,Z,F,B){if(PT().flags.Q5(jC_)){var f=Uy(PT().Be,"mm"),D={};(f=(D[K9.wC]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",D[K9.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",D)[f])&&ByK(this,f);this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&pI(1044,Error())}q=rz.prototype.EB.call(this,q,Z,F,B);this.Z&&(Z=this.j,q.Z==null&&(q.Z=new Pm8),Z.D[q.kx]=q.Z,q.Z.Z=sC_);return q}; g.r.Fv=function(q){q&&q.sf()==1&&this.Z&&delete this.j.D[q.kx];return rz.prototype.Fv.call(this,q)}; g.r.YB=function(){this.D||(this.D=this.Ve());return this.D==null?new ae:this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Mx(this.D):new LJ(this.D)}; g.r.xC=function(){return this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new wJ8:new bJ}; g.r.j4=function(q,Z,F,B,f){Z=new gV(F,Z+B,F+f,Z);(q=OM(Qt,q))?q.j4(Z):this.S=Z}; var II0=OJ(193,Wwg,void 0,Seg);g.O9("Goog_AdSense_Lidar_sendVastEvent",II0);var C5E=rw(194,function(q,Z){Z=Z===void 0?{}:Z;q=ZSZ(ug(Ma),q,Z);return V06(q)}); g.O9("Goog_AdSense_Lidar_getViewability",C5E);var hxj=OJ(195,function(){return FCy()}); g.O9("Goog_AdSense_Lidar_getUrlSignalsArray",hxj);var Rxm=rw(196,function(){return JSON.stringify(FCy())}); g.O9("Goog_AdSense_Lidar_getUrlSignalsList",Rxm);var bnB=g.ue(["//ep2.adtrafficquality.google/sodar/",""]),NHG=g.ue(["//tpc.googlesyndication.com/sodar/",""]);g.V(m0,Error);g.V(EX,g.J);EX.prototype.kN=function(){return this.wpc.f()}; EX.prototype.h9=function(q){this.wpc.c(q)}; EX.prototype.fb=function(q){return this.wpc.m(mTG(q))}; EX.prototype.Tk=function(q){return this.wpc.mws(mTG(q))}; g.V(zW,g.J);zW.prototype.snapshot=function(q){return this.DE.s(Object.assign({},q.oG&&{c:q.oG},q.Ie&&{s:q.Ie},q.CV!==void 0&&{p:q.CV}))}; zW.prototype.L0=function(q){this.DE.e(q)}; zW.prototype.qh=function(){return this.DE.l()};g.V(hs,g.J);hs.prototype.share=function(){if(this.jU())throw Error("E:AD");this.K++;return this}; hs.prototype.dispose=function(){--this.K||g.J.prototype.dispose.call(this)};OJB.prototype.Vk=function(q,Z){this.D.Vk("/client_streamz/bg/frs",q,Z)}; xTX.prototype.Vk=function(q,Z,F,B,f,D){this.D.Vk("/client_streamz/bg/wrl",q,Z,F,B,f,D)}; QiB.prototype.HL=function(q,Z){this.D.Jj("/client_streamz/bg/ec",q,Z)}; Fi9.prototype.Vk=function(q,Z,F){this.D.Vk("/client_streamz/bg/el",q,Z,F)}; lRG.prototype.HL=function(q,Z){this.D.Jj("/client_streamz/bg/cec",q,Z)}; A09.prototype.HL=function(q,Z){this.D.Jj("/client_streamz/bg/po/csc",q,Z)}; vhZ.prototype.HL=function(q,Z){this.D.Jj("/client_streamz/bg/po/ctav",q,Z)}; XAk.prototype.HL=function(q,Z){this.D.Jj("/client_streamz/bg/po/cwsc",q,Z)};g.V(zNZ,y6);g.V(E9,y6);var nx=[1,2,3];var cM6=[0,nx,HKB,uQ_,yMe];var JMt=[0,Zj,[0,zxe,N4_]];g.V(wE,y6);var i98=[1,2,3];var YMm=[0,i98,SMe,bK5,Bi,JMt];g.V(kI7,y6);var tie=[0,Zj,cM6,YMm];var pm_=[0,q0];g.V(pc,y6);var dl5=[0,q0,-1,WM5];var Vi0=[0,q0,-1,lI0,WM5];g.V(r6,y6);var oA7=[1,2,3];var exm=[0,oA7,Bi,dl5,Bi,Vi0,Bi,pm_];g.V(zv,y6);zv.prototype.Nf=function(){var q=gw(this,3,OP,3,!0);Gs6(q);return q[void 0]};zv.prototype.S=YPk([0,q0,exm,LMj,Zj,tie,P5m,rM6]);g.V(vnk,y6);g.r=GL.prototype;g.r.isEnabled=function(){if(!g.W5.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.r.set=function(q,Z,F){var B=!1;if(typeof F==="object"){var f=F.sameSite;B=F.secure||!1;var D=F.domain||void 0;var G=F.path||void 0;var n=F.maxAge}if(/[;=\s]/.test(q))throw Error('Invalid cookie name "'+q+'"');if(/[;\r\n]/.test(Z))throw Error('Invalid cookie value "'+Z+'"');n===void 0&&(n=-1);F=D?";domain="+D:"";G=G?";path="+G:"";B=B?";secure":"";n=n<0?"":n==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+n*1E3)).toUTCString();this.D.cookie=q+"="+Z+F+G+n+B+(f!=null? ";samesite="+f:"")}; g.r.get=function(q,Z){for(var F=q+"=",B=(this.D.cookie||"").split(";"),f=0,D;f=0;Z--)this.remove(q[Z])}; var Qq=new GL(typeof document=="undefined"?null:document);lZK.prototype.compress=function(q){var Z,F,B,f;return g.h(function(D){switch(D.D){case 1:return Z=new CompressionStream("gzip"),F=(new Response(Z.readable)).arrayBuffer(),B=Z.writable.getWriter(),g.R(D,B.write((new TextEncoder).encode(q)),2);case 2:return g.R(D,B.close(),3);case 3:return f=Uint8Array,g.R(D,F,4);case 4:return D.return(new f(D.K))}})}; lZK.prototype.isSupported=function(q){return q<1024?!1:typeof CompressionStream!=="undefined"};g.V(z5,y6);kY.prototype.setInterval=function(q){this.intervalMs=q;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; kY.prototype.start=function(){var q=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){q.tick()},this.intervalMs),this.K=this.D())}; kY.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; kY.prototype.tick=function(){var q=this;if(this.enabled){var Z=Math.max(this.D()-this.K,0);Z0?F:void 0));F=Rh(F,4,DR(f>0?f:void 0));F=Rh(F,5,DR(D>0?D:void 0));f=F.Ec;D=f[Sm]|0;F=ra(F,D)?F:wa(F,f,D)?W_(F,f):new F.constructor(lN(f,D,!0));Ya(G,Bw,10,F)}G=this.D.clone();F=Date.now().toString();G=Rh(G,4,cY(F));q=Ii(G,I0,3,q.slice());B&&(G=new gz,B=Rh(G,13,DR(B)),G=new jx, B=Ya(G,gz,2,B),G=new gZ,B=Ya(G,jx,1,B),B=RL(B,2,9),Ya(q,gZ,18,B));Z&&J9(q,14,Z);return q};g.ab.prototype.K=0;g.ab.prototype.reset=function(){this.D=this.S=this.G;this.K=0}; g.ab.prototype.getValue=function(){return this.S};g.V(R$,y6);var T4t=kS(R$);g.V(rk9,y6);var Sg;Sg=new xKg;g.V(sF,g.J);g.r=sF.prototype;g.r.SU=function(){Ay(this);this.K.stop();this.dU.stop();g.J.prototype.SU.call(this)}; g.r.dispatch=function(q){if(q instanceof I0)this.log(q);else try{var Z=new I0,F=q.D6();var B=QO(Z,8,F);this.log(B)}catch(f){tG(this,4,1)}}; g.r.log=function(q){tG(this,2,1);if(this.BG){q=q.clone();var Z=this.HG++;q=J9(q,21,Z);this.componentId&&QO(q,26,this.componentId);Z=q;var F=T8(Z,1);var B=B===void 0?!1:B;var f=typeof F;B=F==null?F:f==="bigint"?String(RX(64,F)):AM(F)?f==="string"?td(F):B?Df(F):aC(F):void 0;B==null&&(B=Date.now(),B=Number.isFinite(B)?B.toString():"0",Rh(Z,1,cY(B)));B=T8(Z,15);B!=null&&(typeof B==="bigint"?p_(B)?B=Number(B):(B=RX(64,B),B=p_(B)?Number(B):String(B)):B=AM(B)?typeof B==="number"?aC(B):td(B):void 0);B!=null|| J9(Z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(B=this.experimentIds.clone(),Ya(Z,z5,16,B));tG(this,1,1);Z=this.D.length-1E3+1;Z>0&&(this.D.splice(0,Z),this.G+=Z,tG(this,3,Z));this.D.push(q);this.ze||this.K.enabled||this.K.start()}}; g.r.flush=function(q,Z){var F=this;if(this.D.length===0)q&&q();else if(this.k$&&this.Dl)this.S.K=3,GM7(this);else{var B=Date.now();if(this.Oc>B&&this.Y$0&&(F.Y$=Date.now(),F.Oc=F.Y$+U);U=gO(SG);var W;lf&&U&&((W=u.Ec[U])==null?void 0:W[175237375])!=null&&$m(cY5,3);a:{var H=H===void 0?!1:H;if(gO(JY0)&&gO(SG)&&void 0===JY0){W=u.Ec;U=W[SG];if(!U)break a;if(U=U.cw)try{U(W,175237375,er6);break a}catch(X){Zm(X)}}H&&(H=u.Ec, (W=gO(SG))&&W in H&&(H=H[W])&&delete H[175237375])}H=Sg.D?Sg.K(u,Sg.D,175237375,Sg.S):Sg.K(u,175237375,null,Sg.S);if(H=H===null?void 0:H)H=nP(H,1,-1),H!==-1&&(F.Z=new g.ab(H<1?1:H,3E5,.1),F.K.setInterval(F.Z.getValue()))}}q&&q();F.j=0},S=function(U,u){var P=Gw(D,I0,3); var W=Number(OHK(D,14));g.mz(F.Z);F.K.setInterval(F.Z.getValue());U===401&&G&&(F.WG=G);W&&(F.G+=W);u===void 0&&(u=F.isRetryable(U));u&&(F.D=P.concat(F.D),F.ze||F.K.enabled||F.K.start());tG(F,7,1);Z&&Z("net-send-failed",U);++F.j},l=function(){F.network&&F.network.send(b,N,S)}; n?n.then(function(U){tG(F,5,f);b.requestHeaders["Content-Encoding"]="gzip";b.requestHeaders["Content-Type"]="application/binary";b.body=U;b.Fl=2;l()},function(){tG(F,6,f); l()}):l()}}}}; g.r.isRetryable=function(q){return 500<=q&&q<600||q===401||q===0};haK.prototype.send=function(q,Z,F){var B=this,f,D,G,n,b,N,S,l,U,u;return g.h(function(P){switch(P.D){case 1:return D=(f=B.j1?new AbortController:void 0)?setTimeout(function(){f.abort()},q.timeoutMillis):void 0,g.s4(P,2,3),G=Object.assign({},{method:q.requestType, headers:Object.assign({},q.requestHeaders)},q.body&&{body:q.body},q.withCredentials&&{credentials:"include"},{signal:q.timeoutMillis&&f?f.signal:null}),g.R(P,fetch(q.url,G),5);case 5:n=P.K;if(n.status!==200){(b=F)==null||b(n.status);P.An(3);break}if((N=Z)==null){P.An(7);break}return g.R(P,n.text(),8);case 8:N(P.K);case 7:case 3:g.nm(P);clearTimeout(D);g.mD(P,0);break;case 2:S=g.If(P);switch((l=S)==null?void 0:l.name){case "AbortError":(U=F)==null||U(408);break;default:(u=F)==null||u(400)}P.An(3)}})}; haK.prototype.H8=function(){return 4};g.V(kF,g.J);kF.prototype.Mo=function(){this.Z=!0;return this}; kF.prototype.build=function(){this.network||(this.network=new haK);var q=new sF({logSource:this.logSource,T4:this.T4?this.T4:m5m,sessionIndex:this.sessionIndex,VIs:this.wr,qf:this.G,ze:!1,Mo:this.Z,y9:this.y9,network:this.network});g.y(this,q);if(this.K){var Z=this.K,F=tA(q.S);QO(F,7,Z)}q.X=new lZK;this.componentId&&(q.componentId=this.componentId);this.SK&&(q.SK=this.SK);this.pageId&&(q.pageId=this.pageId);this.D&&((F=this.D)?(q.experimentIds||(q.experimentIds=new z5),Z=q.experimentIds,F=F.D6(), QO(Z,4,F)):q.experimentIds&&Rh(q.experimentIds,4));this.S&&(q.k$=q.Dl);rVK(q.S);this.network.ww&&this.network.ww(this.logSource);this.network.xAn&&this.network.xAn(q);return q};g.V(s0,g.J);s0.prototype.flush=function(q){q=q||[];if(q.length){for(var Z=new vnk,F=[],B=0;B-1?(Z=q[G],F||(Z.U_=!1)):(Z=new VuZ(Z,this.src,D,!!B,f),Z.U_=F,q.push(Z));return Z}; g.r.remove=function(q,Z,F,B){q=q.toString();if(!(q in this.listeners))return!1;var f=this.listeners[q];Z=m8(f,Z,F,B);return Z>-1?(cT(f[Z]),g.rt(f,Z),f.length==0&&(delete this.listeners[q],this.D--),!0):!1}; g.r.removeAll=function(q){q=q&&q.toString();var Z=0,F;for(F in this.listeners)if(!q||F==q){for(var B=this.listeners[F],f=0;f-1?q[f]:null}; g.r.hasListener=function(q,Z){var F=q!==void 0,B=F?q.toString():"",f=Z!==void 0;return g.O4(this.listeners,function(D){for(var G=0;G>>0);g.JC(g.xl,g.J);g.xl.prototype[oxD]=!0;g.r=g.xl.prototype;g.r.addEventListener=function(q,Z,F,B){g.od(this,q,Z,F,B)}; g.r.removeEventListener=function(q,Z,F,B){$i8(this,q,Z,F,B)}; g.r.dispatchEvent=function(q){var Z=this.jQ;if(Z){var F=[];for(var B=1;Z;Z=Z.jQ)F.push(Z),++B}Z=this.Xl;B=q.type||q;if(typeof q==="string")q=new g.SL(q,Z);else if(q instanceof g.SL)q.target=q.target||Z;else{var f=q;q=new g.SL(B,Z);g.gN(q,f)}f=!0;var D;if(F)for(D=F.length-1;!q.K&&D>=0;D--){var G=q.currentTarget=F[D];f=C0(G,B,!0,q)&&f}q.K||(G=q.currentTarget=Z,f=C0(G,B,!0,q)&&f,q.K||(f=C0(G,B,!1,q)&&f));if(F)for(D=0;!q.K&&D0){this.K--;var q=this.D;this.D=q.next;q.next=null}else q=this.S();return q};var poy;f3.prototype.add=function(q,Z){var F=bf8.get();F.set(q,Z);this.K?this.K.next=F:this.D=F;this.K=F}; f3.prototype.remove=function(){var q=null;this.D&&(q=this.D,this.D=this.D.next,this.D||(this.K=null),q.next=null);return q}; var bf8=new kK8(function(){return new We6},function(q){return q.reset()}); We6.prototype.set=function(q,Z){this.D=q;this.scope=Z;this.next=null}; We6.prototype.reset=function(){this.next=this.scope=this.D=null};var Yu,X2X=!1,E19=new f3;z17.prototype.reset=function(){this.context=this.K=this.S=this.D=null;this.G=!1}; var gx7=new kK8(function(){return new z17},function(q){q.reset()}); g.at.prototype.then=function(q,Z,F){return WcX(this,ce(typeof q==="function"?q:null),ce(typeof Z==="function"?Z:null),F)}; g.at.prototype.$goog_Thenable=!0;g.r=g.at.prototype;g.r.finally=function(q){var Z=this;q=ce(q);return new g.at(function(F,B){xaK(Z,function(f){q();F(f)},function(f){q(); B(f)})})}; g.r.Kz=function(q,Z){return WcX(this,null,ce(q),Z)}; g.r.catch=g.at.prototype.Kz;g.r.cancel=function(q){if(this.D==0){var Z=new X8(q);g.iJ(function(){FMK(this,Z)},this)}}; g.r.W3G=function(q){this.D=0;GO(this,2,q)}; g.r.Xfr=function(q){this.D=0;GO(this,3,q)}; g.r.SS=function(){for(var q;q=B46(this);)fI7(this,q,this.D,this.X);this.j=!1}; var NJK=Zm;g.JC(X8,V0);X8.prototype.name="cancel";g.JC(g.EF,g.xl);g.r=g.EF.prototype;g.r.enabled=!1;g.r.Cp=null;g.r.setInterval=function(q){this.Ke=q;this.Cp&&this.enabled?(this.stop(),this.start()):this.Cp&&this.stop()}; g.r.mDE=function(){if(this.enabled){var q=g.i$()-this.bz;q>0&&q0&&(this.getStatus(),this.j=setTimeout(this.BA.bind(this), this.Dl)),this.getStatus(),this.PG=!0,this.D.send(q),this.PG=!1}catch(G){this.getStatus(),gRZ(this,G)}}; g.r.BA=function(){typeof Pp!="undefined"&&this.D&&(this.G="Timed out after "+this.Dl+"ms, aborting",this.K=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.r.abort=function(q){this.D&&this.S&&(this.getStatus(),this.S=!1,this.Z=!0,this.D.abort(),this.Z=!1,this.K=q||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),GU(this))}; g.r.SU=function(){this.D&&(this.S&&(this.S=!1,this.Z=!0,this.D.abort(),this.Z=!1),GU(this,!0));g.vu.Km.SU.call(this)}; g.r.n2=function(){this.jU()||(this.zP||this.PG||this.Z?c_D(this):this.YZl())}; g.r.YZl=function(){c_D(this)}; g.r.isActive=function(){return!!this.D}; g.r.isComplete=function(){return g.rJ(this)==4}; g.r.getStatus=function(){try{return g.rJ(this)>2?this.D.status:-1}catch(q){return-1}}; g.r.getResponseHeader=function(q){if(this.D&&this.isComplete())return q=this.D.getResponseHeader(q),q===null?void 0:q}; g.r.getLastError=function(){return typeof this.G==="string"?this.G:String(this.G)};Wy.prototype.send=function(q,Z,F){Z=Z===void 0?function(){}:Z; F=F===void 0?function(){}:F; Tv8(q.url,function(B){B=B.target;wJ(B)?Z(g.q6(B)):F(B.getStatus())},q.requestType,q.body,q.requestHeaders,q.timeoutMillis,q.withCredentials)}; Wy.prototype.H8=function(){return 1};mL.prototype.done=function(){this.logger.tK(this.event,TW()-this.startTime)}; g.V(RF,hs);g.V(MS,RF);g.r=MS.prototype;g.r.Hi=function(){}; g.r.k9=function(){}; g.r.tK=function(){}; g.r.gp=function(){}; g.r.wS=function(){}; g.r.Lt=function(q,Z,F,B){return B}; g.r.bN=function(){}; g.r.Oh=function(){}; g.r.hc=function(){}; g.V(Gr,RF);g.r=Gr.prototype;g.r.update=function(q){this.logger.dispose();this.logger=q}; g.r.k9=function(q){this.logger.k9(q)}; g.r.tK=function(q,Z){this.logger.tK(q,Z)}; g.r.gp=function(q){this.logger.gp(q)}; g.r.wS=function(){this.logger.wS()}; g.r.Lt=function(q,Z,F,B){return this.logger.Lt(q,Z,F,B)}; g.r.bN=function(q){this.logger.bN(q)}; g.r.Oh=function(q){this.logger.Oh(q)}; g.r.hc=function(q){this.logger.hc(q)}; g.r.Hi=function(q){this.logger.Hi(q)}; g.V(Ehk,g.J);g.V(Rk,RF);g.r=Rk.prototype;g.r.Hi=function(q){this.metrics.CwU.Vk(q,this.GU)}; g.r.k9=function(q){this.metrics.eventCount.HL(q,this.GU)}; g.r.tK=function(q,Z){this.metrics.Kn.Vk(Z,q,this.GU)}; g.r.gp=function(q){this.metrics.errorCount.HL(q,this.GU)}; g.r.Lt=function(q,Z,F,B){function f(n){if(!D.jU()){var b=TW()-G;D.metrics.Eb$.Vk(b,q,F,n,Z,D.GU)}} var D=this,G=TW();B.then(function(){return void f(0)},function(n){return void f(n instanceof BR?n.code:-1)}); return B}; g.r.bN=function(q){this.metrics.vbn.HL(q,this.GU)}; g.r.Oh=function(q){this.metrics.vn.HL(q,this.GU)}; g.r.hc=function(q){this.metrics.s1U.HL(q,this.GU)}; g.V(Je,Rk);Je.prototype.wS=function(){oVB(this.D)};g.V(Sx,y6);g.V(ba,y6);g.V(A3,y6);var dKZ=kS(A3),oCB=function(q){return v7(function(Z){return Z instanceof q&&!ra(Z)})}(A3); A3.messageId="bfkj";g.V(zw,y6);g.V(riZ,y6);var q$B=kS(riZ);g.V(ih,g.J);ih.prototype.snapshot=function(q){if(this.jU())throw Error("Already disposed");this.logger.k9("n");var Z=this.logger.share();return this.S.then(function(F){var B=F.Hn;return new Promise(function(f){var D=new mL(Z,"n");B(function(G){D.done();Z.Hi(G.length);Z.wS();Z.dispose();f(G)},[q.oG, q.Ie,q.n7,q.CV])})})}; ih.prototype.FC=function(q){var Z=this;if(this.jU())throw Error("Already disposed");this.logger.k9("n");var F=CM(this.logger,function(){return Z.G([q.oG,q.Ie,q.n7,q.CV])},"n"); this.logger.Hi(F.length);this.logger.wS();return F}; ih.prototype.L0=function(q){this.S.then(function(Z){var F;(F=Z.rCr)==null||F(q)})}; ih.prototype.qh=function(){return this.logger.share()};g.V(F_6,y6);g.V(Xab,y6);T6.prototype.A5=function(q){return yIX(this,q,new MS,0)};g.V(Ij,g.J);Ij.prototype.snapshot=function(q){var Z=this;return g.h(function(F){switch(F.D){case 1:if(Z.jU())throw Error("Already disposed");if(Z.K||Z.X){F.An(2);break}return g.R(F,Z.Z.promise,2);case 2:if(!Z.K){F.An(4);break}return g.R(F,Z.K.snapshot(q),5);case 5:return F.return(F.K);case 4:throw Z.X;}})}; Ij.prototype.L0=function(q){var Z,F;(Z=this.K)==null||(F=Z.L0)==null||F.call(Z,q)}; Ij.prototype.handleError=function(q){if(!this.jU()){this.X=q;this.Z.resolve();var Z,F;(F=(Z=this.options).IvE)==null||F.call(Z,q)}}; Ij.prototype.qh=function(){return this.logger.share()}; var k6K={E2U:432E5,Rl:3E5,d8:10,p6:1E4,Ap:3E4,UpG:3E4,LdL:6E4,DH:1E3,PB:6E4,iK:6E5,uK:.25,MG:2,maxAttempts:10};var q35,OoG=(q35=Math.imul)!=null?q35:function(q,Z){return q*Z|0},X$=[196, 200,224,18];n3.prototype.D6=function(){return String(this.D)+","+this.K.join()}; n3.prototype.qD=function(q,Z){var F=void 0;if(this.K[this.D]!==q){var B=this.K.indexOf(q);B!==-1?(this.K.splice(B,1),B0;)Z[F++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(q%62),q=Math.floor(q/62);return Z.join("")}};g.V(eq,g.J);eq.prototype.Tk=function(q,Z){var F=this.fb(q);Z==null||Z(F);return CM(this.logger,function(){return g.MR(F,2)},this.K)}; g.V(vr,eq);vr.prototype.fb=function(q,Z){var F=this;this.logger.k9(this.D);++this.Z>=this.j&&this.S.resolve();var B=q();q=CM(this.logger,function(){return F.G(B)},"C"); if(q===void 0)throw new m0(17,"YNJ:Undefined");if(!(q instanceof Uint8Array))throw new m0(18,"ODM:Invalid");Z==null||Z(q);return q}; g.V(Mi,eq);Mi.prototype.fb=function(){return this.G}; g.V(uq,eq);uq.prototype.fb=function(){var q=this;return CM(this.logger,function(){return VP(q.G)},"d")}; uq.prototype.Tk=function(){return this.G}; g.V(W8,eq);W8.prototype.fb=function(){if(this.G)return this.G;this.G=KwK(this,function(q){return"_"+af7(q)}); return KwK(this,function(q){return q})}; g.V(Fw,eq);Fw.prototype.fb=function(){var q=Math.floor(Date.now()/1E3),Z=[Math.random()*255,Math.random()*255],F=Z.concat([this.G&255,this.clientState],[q>>24&255,q>>16&255,q>>8&255,q&255]);q=new Uint8Array(2+F.length);q[0]=34;q[1]=F.length;q.set(F,2);F=q.subarray(2);for(var B=Z=Z.length;B150))try{this.cache=new kY9(q,this.logger)}catch(Z){this.reportError(new m0(22,"GBJ:init",Z))}}; g.r.reportError=function(q){this.logger.gp(q.code);this.onError(q);return q}; var cQD=function(q){return v7(function(Z){if(!hrt(Z))return!1;for(var F=g.E(Object.entries(q)),B=F.next();!B.done;B=F.next()){var f=g.E(B.value);B=f.next().value;f=f.next().value;if(!(B in Z)){if(f.nX_===!0)continue;return!1}if(!f(Z[B]))return!1}return!0})}({DE:function(q){return v7(function(Z){return Z instanceof q})}(Ij)},"");var akX=(new Date).getTime();g.V(r28,y6);var ZO6=kS(r28);cyD.prototype.getMetadata=function(){return this.metadata};fW.prototype.getMetadata=function(){return this.metadata}; fW.prototype.getStatus=function(){return this.status};aO.prototype.X=function(q,Z){Z=Z===void 0?{}:Z;return new cyD(q,this,Z)}; aO.prototype.getName=function(){return this.name};var F1j=new aO("/google.internal.waa.v1.Waa/Create",F_6,r28,function(q){return q.D6()},ZO6);g.V(p4K,y6);var E37=new aO("/google.internal.waa.v1.Waa/GenerateIT",Xab,p4K,function(q){return q.D6()},kS(p4K));var A58=new Set(["SAPISIDHASH","APISIDHASH"]);g.V(xF8,y6);xF8.prototype.getValue=function(){var q=T8(this,2);if(Array.isArray(q)||q instanceof y6)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Kx(this,2)};g.V(bf,y6);bf.prototype.getMessage=function(){return gj(this,2)}; var mv9=kS(bf);qR.prototype.removeListener=function(q,Z){q==="data"?Jm(this.K,Z):q==="metadata"?Jm(this.G,Z):q==="status"?Jm(this.Z,Z):q==="end"?Jm(this.S,Z):q==="error"&&Jm(this.D,Z);return this}; qR.prototype.cancel=function(){this.xhr.abort()}; g.V(xr7,Error);g.JC(g.Xu,lLD);g.Xu.prototype.D=function(){var q=new X6(this.G,this.S);this.K&&q.setCredentialsMode(this.K);return q}; g.Xu.prototype.setCredentialsMode=function(q){this.K=q}; g.JC(X6,g.xl);g.r=X6.prototype;g.r.open=function(q,Z){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.uL=q;this.Dl=Z;this.readyState=1;PK(this)}; g.r.send=function(q){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.V.signal.aborted)throw this.abort(),Error("Request was aborted.");this.D=!0;var Z={headers:this.PG,method:this.uL,credentials:this.Z,cache:void 0,signal:this.V.signal};q&&(Z.body=q);(this.zP||g.W5).fetch(new Request(this.Dl,Z)).then(this.U0.bind(this),this.Eu.bind(this))}; g.r.abort=function(){this.response=this.responseText="";this.PG=new Headers;this.status=0;this.V.abort("Request was aborted.");this.S&&this.S.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.D&&this.readyState!=4&&(this.D=!1,rN(this));this.readyState=0}; g.r.U0=function(q){if(this.D&&(this.G=q,this.K||(this.status=this.G.status,this.statusText=this.G.statusText,this.K=q.headers,this.readyState=2,PK(this)),this.D&&(this.readyState=3,PK(this),this.D)))if(this.responseType==="arraybuffer")q.arrayBuffer().then(this.ra.bind(this),this.Eu.bind(this));else if(typeof g.W5.ReadableStream!=="undefined"&&"body"in q){this.S=q.body.getReader();if(this.j){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.X=new TextDecoder;uqm(this)}else q.text().then(this.Br.bind(this),this.Eu.bind(this))}; g.r.nT=function(q){if(this.D){if(this.j&&q.value)this.response.push(q.value);else if(!this.j){var Z=q.value?q.value:new Uint8Array(0);if(Z=this.X.decode(Z,{stream:!q.done}))this.response=this.responseText+=Z}q.done?rN(this):PK(this);this.readyState==3&&uqm(this)}}; g.r.Br=function(q){this.D&&(this.response=this.responseText=q,rN(this))}; g.r.ra=function(q){this.D&&(this.response=q,rN(this))}; g.r.Eu=function(){this.D&&rN(this)}; g.r.setRequestHeader=function(q,Z){this.PG.append(q,Z)}; g.r.getResponseHeader=function(q){return this.K?this.K.get(q.toLowerCase())||"":""}; g.r.getAllResponseHeaders=function(){if(!this.K)return"";for(var q=[],Z=this.K.entries(),F=Z.next();!F.done;)F=F.value,q.push(F[0]+": "+F[1]),F=Z.next();return q.join("\r\n")}; g.r.setCredentialsMode=function(q){this.Z=q}; Object.defineProperty(X6.prototype,"withCredentials",{get:function(){return this.Z==="include"}, set:function(q){this.setCredentialsMode(q?"include":"same-origin")}});g.pq.prototype.toString=function(){var q=[],Z=this.Z;Z&&q.push(FG(Z,Ba5,!0),":");var F=this.D;if(F||Z=="file")q.push("//"),(Z=this.V)&&q.push(FG(Z,Ba5,!0),"@"),q.push(g.y5(F).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),F=this.S,F!=null&&q.push(":",String(F));if(F=this.K)this.D&&F.charAt(0)!="/"&&q.push("/"),q.push(FG(F,F.charAt(0)=="/"?fDj:DN6,!0));(F=this.G.toString())&&q.push("?",F);(F=this.j)&&q.push("#",FG(F,Gf8));return q.join("")}; g.pq.prototype.resolve=function(q){var Z=this.clone(),F=!!q.Z;F?g.dA(Z,q.Z):F=!!q.V;F?Z.V=q.V:F=!!q.D;F?g.f6(Z,q.D):F=q.S!=null;var B=q.K;if(F)g.O0(Z,q.S);else if(F=!!q.K){if(B.charAt(0)!="/")if(this.D&&!this.K)B="/"+B;else{var f=Z.K.lastIndexOf("/");f!=-1&&(B=Z.K.slice(0,f+1)+B)}f=B;if(f==".."||f==".")B="";else if(g.Bj(f,"./")||g.Bj(f,"/.")){B=KZ(f,"/");f=f.split("/");for(var D=[],G=0;G1||D.length==1&&D[0]!="")&&D.pop(), B&&G==f.length&&D.push("")):(D.push(n),B=!0)}B=D.join("/")}else B=f}F?Z.K=B:F=q.G.toString()!=="";F?B$(Z,q.G.clone()):F=!!q.j;F&&(Z.j=q.j);return Z}; g.pq.prototype.clone=function(){return new g.pq(this)}; var Ba5=/[#\/\?@]/g,DN6=/[#\?:]/g,fDj=/[#\?]/g,yvb=/[#\?@]/g,Gf8=/#/g;g.r=Z3.prototype;g.r.add=function(q,Z){$J(this);this.S=null;q=nC(this,q);var F=this.D.get(q);F||this.D.set(q,F=[]);F.push(Z);this.K=this.K+1;return this}; g.r.remove=function(q){$J(this);q=nC(this,q);return this.D.has(q)?(this.S=null,this.K=this.K-this.D.get(q).length,this.D.delete(q)):!1}; g.r.clear=function(){this.D=this.S=null;this.K=0}; g.r.isEmpty=function(){$J(this);return this.K==0}; g.r.forEach=function(q,Z){$J(this);this.D.forEach(function(F,B){F.forEach(function(f){q.call(Z,f,B,this)},this)},this)}; g.r.Cx=function(){$J(this);for(var q=Array.from(this.D.values()),Z=Array.from(this.D.keys()),F=[],B=0;B0?String(q[0]):Z}; g.r.toString=function(){if(this.S)return this.S;if(!this.D)return"";for(var q=[],Z=Array.from(this.D.keys()),F=0;F>>3;D.S!=1&&D.S!=2&&D.S!=15&&SP(D,G,n,"unexpected tag");D.D=1;D.K=0;D.G=0} function F(){if(D.S<15){var b={};b[D.S]=D.Z;D.X.push(b)}D.D=0} function B(b){D.G++;D.G==5&&b&240&&SP(D,G,n,"message length too long");D.K|=(b&127)<<(D.G-1)*7;b&128||(D.D=2,D.V=0,typeof Uint8Array!=="undefined"?D.Z=new Uint8Array(D.K):D.Z=Array(D.K),D.K==0&&F())} function f(b){D.Z[D.V++]=b;D.V==D.K&&F()} for(var D=this,G=q instanceof Array?q:new Uint8Array(q),n=0;n0?q:null};Vf.prototype.isInputValid=function(){return this.D===null}; Vf.prototype.nm=function(){return this.D}; Vf.prototype.v_=function(){return!1}; Vf.prototype.parse=function(q){this.D!==null&&Z19(this,q,"stream already broken");var Z=null;try{var F=this.S;F.S||lBX(F,q,"stream already broken");F.D+=q;var B=Math.floor(F.D.length/4);if(B==0)var f=null;else{try{var D=s47(F.D.slice(0,B*4))}catch(G){lBX(F,F.D,G.message)}F.K+=B*4;F.D=F.D.slice(B*4);f=D}Z=f===null?null:this.G.parse(f)}catch(G){Z19(this,q,G.message)}this.K+=q.length;return Z};var npt={INIT:0,BJ:1,XU:2,Q7:3,B0:4,rH:5,STRING:6,jl:7,gW:8,v$:9,Jt:10,Me:11,qO:12,CO:13,Fu:14,Tx:15,H$:16,Lr:17,In:18,n_:19,Wx:20};g.r=OF.prototype;g.r.isInputValid=function(){return this.Z!=3}; g.r.nm=function(){return this.PG}; g.r.done=function(){return this.Z===2}; g.r.v_=function(){return!1}; g.r.parse=function(q){function Z(){for(;U1||(P||(P=l===-1?D.G+q.substring(S,U):q.substring(l,U)),D.Dl?D.j.push(P):D.j.push(JSON.parse(P)),l=U)} function B(){for(var P;;){P=q[U++];if(!P)break;D.S++;switch(D.D){case b.INIT:P==="{"?D.D=b.XU:P==="["?D.D=b.B0:Pa(P)||lA(D,q,U);continue;case b.jl:case b.XU:if(Pa(P))continue;if(D.D===b.jl)G.push(b.gW);else if(P==="}"){F("{}");D.D=f();continue}else G.push(b.Q7);P==='"'?D.D=b.STRING:lA(D,q,U);continue;case b.gW:case b.Q7:if(Pa(P))continue;P===":"?(D.D===b.Q7&&(G.push(b.Q7),D.K++),D.D=b.BJ):P==="}"?(D.K--,F(),D.D=f()):P===","?(D.D===b.Q7&&G.push(b.Q7),D.D=b.jl):lA(D,q,U);continue;case b.B0:case b.BJ:if(Pa(P))continue; if(D.D===b.B0)if(D.K++,D.D=b.BJ,P==="]"){D.K--;if(D.K===0){D.D=b.rH;return}F("[]");D.D=f();continue}else G.push(b.rH);P==='"'?D.D=b.STRING:P==="{"?D.D=b.XU:P==="["?D.D=b.B0:P==="t"?D.D=b.v$:P==="f"?D.D=b.qO:P==="n"?D.D=b.H$:P!=="-"&&("0123456789".indexOf(P)!==-1?D.D=b.Wx:lA(D,q,U));continue;case b.rH:if(P===",")G.push(b.rH),D.D=b.BJ,D.K===1&&(l=U);else if(P==="]"){D.K--;if(D.K===0)return;F();D.D=f()}else if(Pa(P))continue;else lA(D,q,U);continue;case b.STRING:var W=U;a:for(;;){for(;D.V>0;)if(P=q[U++], D.V===4?D.V=0:D.V++,!P)break a;if(P==='"'&&!D.X){D.D=f();break}if(P==="\\"&&!D.X&&(D.X=!0,P=q[U++],!P))break;if(D.X)if(D.X=!1,P==="u"&&(D.V=1),P=q[U++])continue;else break;n.lastIndex=U;P=n.exec(q);if(!P){U=q.length+1;break}U=P.index+1;P=q[P.index];if(!P)break}D.S+=U-W;continue;case b.v$:if(!P)continue;P==="r"?D.D=b.Jt:lA(D,q,U);continue;case b.Jt:if(!P)continue;P==="u"?D.D=b.Me:lA(D,q,U);continue;case b.Me:if(!P)continue;P==="e"?D.D=f():lA(D,q,U);continue;case b.qO:if(!P)continue;P==="a"?D.D=b.CO: lA(D,q,U);continue;case b.CO:if(!P)continue;P==="l"?D.D=b.Fu:lA(D,q,U);continue;case b.Fu:if(!P)continue;P==="s"?D.D=b.Tx:lA(D,q,U);continue;case b.Tx:if(!P)continue;P==="e"?D.D=f():lA(D,q,U);continue;case b.H$:if(!P)continue;P==="u"?D.D=b.Lr:lA(D,q,U);continue;case b.Lr:if(!P)continue;P==="l"?D.D=b.In:lA(D,q,U);continue;case b.In:if(!P)continue;P==="l"?D.D=f():lA(D,q,U);continue;case b.n_:P==="."?D.D=b.Wx:lA(D,q,U);continue;case b.Wx:if("0123456789.eE+-".indexOf(P)!==-1)continue;else U--,D.S--,D.D= f();continue;default:lA(D,q,U)}}} function f(){var P=G.pop();return P!=null?P:b.BJ} for(var D=this,G=D.uL,n=D.zP,b=npt,N=q.length,S=0,l=-1,U=0;U0?(u=D.j,D.j=[],u):null}return null};Il.prototype.isInputValid=function(){return this.Z===null}; Il.prototype.nm=function(){return this.Z}; Il.prototype.v_=function(){return!1}; Il.prototype.parse=function(q){function Z(){D.S=new OF({CJn:!0,gy:!0})} function F(b){if(b){(D.j||b.length>1)&&B("extra status: "+b);D.j=!0;var N={};N[2]=b[0];D.G.push(N)}} function B(b){D.K=6;D.Z="The stream is broken @"+D.D+"/"+G+". Error: "+b+". With input:\n";throw Error(D.Z);} function f(b){if(b)for(var N=0;N0?(q=D.G,D.G=[],q):null};oh.prototype.Gi=function(){return this.D}; oh.prototype.getStatus=function(){return this.Z}; oh.prototype.Dl=function(q){q=q.target;try{if(q==this.D)a:{var Z=g.rJ(this.D),F=this.D.K,B=this.D.getStatus(),f=g.q6(this.D);q=[];if(g.DX(this.D)instanceof Array){var D=g.DX(this.D);D.length>0&&D[0]instanceof Uint8Array&&(this.PG=!0,q=D)}if(!(Z<3||Z==3&&!f&&q.length==0))if(B=B==200||B==206,Z==4&&(F==8?ur(this,7):F==7?ur(this,8):B||ur(this,3)),this.K||(this.K=beE(this.D),this.K==null&&ur(this,5)),this.Z>2)Mv(this);else{if(q.length>this.S){var G=q.length;F=[];try{if(this.K.v_())for(var n=0;nthis.S){n=f.slice(this.S);this.S=f.length;try{var N=this.K.parse(n);N!=null&&this.G&&this.G(N)}catch(S){ur(this,5);Mv(this);break a}}Z==4?(f.length!= 0||this.PG?ur(this,2):ur(this,4),Mv(this)):ur(this,1)}}}catch(S){ur(this,6),Mv(this)}};g.r=w_k.prototype;g.r.addListener=function(q,Z){Am(this,q,Z);return this}; g.r.removeListener=function(q,Z){var F=this.K[q];F&&g.NL(F,Z);(q=this.D[q])&&g.NL(q,Z);return this}; g.r.once=function(q,Z){var F=this.D[q];F||(F=[],this.D[q]=F);F.push(Z);return this}; g.r.yZE=function(q){var Z=this.K.data;Z&&hP9(q,Z);(Z=this.D.data)&&hP9(q,Z);this.D.data=[]}; g.r.Thn=function(){switch(this.S.getStatus()){case 1:n5(this,"readable");break;case 5:case 6:case 4:case 7:case 3:n5(this,"error");break;case 8:n5(this,"close");break;case 2:n5(this,"end")}};cJD.prototype.serverStreaming=function(q,Z,F,B){var f=this,D=q.substring(0,q.length-B.name.length);return bYX(function(G){var n=G.rb,b=G.getMetadata(),N=ILy(f,!1);b=vOB(f,b,N,D+n.getName());var S=W1K(N,n.K,!0);G=n.D(G.nN);N.send(b,"POST",G);return S},this.zK).call(this,B.X(Z,F))};JJg.prototype.create=function(q,Z,F){var B=this.D,f=this.K+"/$rpc/google.internal.waa.v1.Waa/Create";Z=Z||{};F=F===void 0?{}:F;return WGK(B,f,q,Z,F1j,F)};var LZZ,wAy,jrB,Na0,gpj,fT7,DqG,HQK;LZZ=new M9(45724570);g.bOE=new M9(45728933);wAy=new M9(45728553);jrB=new M9(45725537);Na0=new M9(45727950);gpj=new M9(45727949);fT7=new M9(45728333);DqG=new Rj(45728334);HQK=new M9(45728181);var JD6=new Rj(45725542),cDK=new Rj(45725543),C98=new Rj(45725539),RBZ=new Rj(45725541),hBb=new Rj(45725540),IBy=new Rj(45725538),srB=new function(q,Z,F,B){this.t9=q;this.XA=Z;this.defaultValue=B;this.Rw="int"}(3,45721421,"h5vcc_set_prefer_minimal_post_processing",Pm("0"));var mVb="://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(" "),iL8=/\bocr\b/;var fHZ=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.V(zT9,y6);g.V(Cpk,y6);g.V(nc,y6);nc.prototype.getName=function(){return gj(this,1)}; nc.prototype.getOptions=function(){return Ib(this,Cpk,3)}; nc.prototype.clearOptions=function(){return Rh(this,3)};g.V(LRB,y6);g.r=LRB.prototype;g.r.getName=function(){return gj(this,1)}; g.r.getOptions=function(){return Ib(this,zT9,3)}; g.r.clearOptions=function(){return Rh(this,3)}; g.r.BH=function(){return NE(this,6)}; g.r.hZ=function(q){RL(this,6,q)};var ii8=function(q){return function(Z){Z=JSON.parse(Z);if(!Array.isArray(Z))throw Error("Expected jspb data to be an array, got "+qH(Z)+": "+Z);U3(Z,34);return new q(Z)}}(LRB);var m$b=Symbol();var dVb=Symbol();Object.assign({},{attributes:{},handleError:function(q){throw q;}},{cmP:!0, mfr:!0,Ama:!1,YAl:ENm,kyU:KJm,pCP:!1,RsL:!1,Fxl:!1,Q2n:!0,rmF:Xs5,nKp:!1,ymp:!1,YHp:!1});var X1=null,vl=!1,jKg=1,nSX=Symbol("SIGNAL"),lz={version:0,mzP:0,VQ:!1,producers:void 0,t7:void 0,Mq:void 0,xg:void 0,IU:!1,Xh:!1,N_:!1,kind:"unknown",TC:function(){return!1}, Eo:function(){}, zX:function(){}, unU:function(){}};var UA=Symbol("UNSET"),uz=Symbol("COMPUTING"),Pi=Symbol("ERRORED");Object.assign({},lz,{value:UA,VQ:!0,error:null,ZK:VQ,kind:"computed",TC:function(q){return q.value===UA||q.value===uz}, Eo:function(q){if(q.value===uz)throw Error("");var Z=q.value;q.value=uz;var F=$hD(q),B=!1;try{var f=q.Qp();je(null);B=Z!==UA&&Z!==Pi&&f!==Pi&&q.ZK(Z,f)}catch(D){f=Pi,q.error=D}finally{je(F),q&&L6k(q)}B?q.value=Z:(q.value=f,q.version++)}});Object.assign({},lz,{N_:!0,Xh:!0,VQ:!0,kind:"effect"});var ZJy=Object.assign({},lz,{ZK:VQ,value:void 0,kind:"signal"});Object.assign({},lz,{value:UA,VQ:!0,error:null,ZK:VQ,kind:"linkedSignal",TC:function(q){return q.value===UA||q.value===uz}, Eo:function(q){if(q.value===uz)throw Error("");var Z=q.value;q.value=uz;var F=$hD(q);try{var B=q.source();var f=q.Qp(B,Z===UA||Z===Pi?void 0:{source:q.TRa,value:Z});q.TRa=B}catch(D){f=Pi,q.error=D}finally{je(F),q&&L6k(q)}Z!==UA&&f!==Pi&&q.ZK(Z,f)?q.value=Z:(q.value=f,q.version++)}});Object.assign({},lz,{N_:!0,Xh:!1,zX:function(q){q.schedule!==null&&q.schedule(q.qHl)}, JJl:function(){}});g.V(vR,g.xl);vR.prototype.dispose=function(){window.removeEventListener("offline",this.S);window.removeEventListener("online",this.S);this.Lk.RS(this.Z);delete vR.instance}; vR.prototype.Bf=function(){return this.D}; vR.prototype.pP=function(){var q=this;this.Z=this.Lk.ET(function(){var Z;return g.h(function(F){if(F.D==1)return q.D?((Z=window.navigator)==null?0:Z.onLine)?F.An(3):g.R(F,n9(q),3):g.R(F,n9(q),3);q.pP();g.C7(F)})},3E4)};g.V(U9b,y6);var S36=mNX(U9b,[0,Dj,vvB,lI0,Dj,-2,lI0,N4_]);Oq8.prototype.set=function(q,Z){Z=Z===void 0?!0:Z;0<=q&&q<52&&Number.isInteger(q)&&this.data[q]!==Z&&(this.data[q]=Z,this.D=-1)}; Oq8.prototype.get=function(q){return!!this.data[q]};var GpZ;g.JC(g.S2,g.J);g.r=g.S2.prototype;g.r.start=function(){this.stop();this.G=!1;var q=DGb(this),Z=iHK(this);q&&!Z&&this.K.mozRequestAnimationFrame?(this.D=g.od(this.K,"MozBeforePaint",this.S),this.K.mozRequestAnimationFrame(null),this.G=!0):this.D=q&&Z?q.call(this.K,this.S):this.K.setTimeout(tHD(this.S),20)}; g.r.stop=function(){if(this.isActive()){var q=DGb(this),Z=iHK(this);q&&!Z&&this.K.mozRequestAnimationFrame?$S(this.D):q&&Z?Z.call(this.K,this.D):this.K.clearTimeout(this.D)}this.D=null}; g.r.isActive=function(){return this.D!=null}; g.r.UR=function(){this.G&&this.D&&$S(this.D);this.D=null;this.j.call(this.Z,g.i$())}; g.r.SU=function(){this.stop();g.S2.Km.SU.call(this)};g.JC(g.im,g.J);g.r=g.im.prototype;g.r.v0=0;g.r.SU=function(){g.im.Km.SU.call(this);this.stop();delete this.D;delete this.K}; g.r.start=function(q){this.stop();this.v0=g.YX(this.S,q!==void 0?q:this.Ke)}; g.r.stop=function(){this.isActive()&&g.W5.clearTimeout(this.v0);this.v0=0}; g.r.isActive=function(){return this.v0!=0}; g.r.Qr=function(){this.v0=0;this.D&&this.D.call(this.K)};g.V(g.IF,g.J);g.r=g.IF.prototype;g.r.Nk=function(q){this.S=arguments;this.Cp||this.K?this.D=!0:IyK(this)}; g.r.stop=function(){this.Cp&&(g.W5.clearTimeout(this.Cp),this.Cp=null,this.D=!1,this.S=null)}; g.r.pause=function(){this.K++}; g.r.resume=function(){this.K--;this.K||!this.D||this.Cp||(this.D=!1,IyK(this))}; g.r.SU=function(){g.J.prototype.SU.call(this);this.stop()};g.GD.prototype[Symbol.iterator]=function(){return this}; g.GD.prototype.next=function(){var q=this.D.next();return{value:q.done?void 0:this.K.call(void 0,q.value),done:q.done}};g.JC(g.H8,g.xl);g.r=g.H8.prototype;g.r.isPlaying=function(){return this.D==1}; g.r.isPaused=function(){return this.D==-1}; g.r.AI=function(){this.Z9("begin")}; g.r.Gc=function(){this.Z9("end")}; g.r.onFinish=function(){this.Z9("finish")}; g.r.onStop=function(){this.Z9("stop")}; g.r.Z9=function(q){this.dispatchEvent(q)};var lDm=hG(function(){var q=g.AV("DIV"),Z=g.YN?"-webkit":RJ?"-moz":null,F="transition:opacity 1s linear;";Z&&(F+=Z+"-transition:opacity 1s linear;");Z=c$7({style:F});if(q.nodeType===1&&/^(script|style)$/i.test(q.tagName))throw Error("");q.innerHTML=Yx(Z);return g.gb(q.firstChild,"transition")!=""});g.JC(QY,g.H8);g.r=QY.prototype;g.r.play=function(){if(this.isPlaying())return!1;this.AI();this.Z9("play");this.startTime=g.i$();this.D=1;if(lDm())return g.u$(this.K,this.j),this.S=g.YX(this.XLr,void 0,this),!0;this.mZ(!1);return!1}; g.r.XLr=function(){g.bD(this.K);neb(this.K,this.X);g.u$(this.K,this.G);this.S=g.YX((0,g.Jy)(this.mZ,this,!1),this.Z*1E3)}; g.r.stop=function(){this.isPlaying()&&this.mZ(!0)}; g.r.mZ=function(q){g.u$(this.K,"transition","");g.W5.clearTimeout(this.S);g.u$(this.K,this.G);this.endTime=g.i$();this.D=0;if(q)this.onStop();else this.onFinish();this.Gc()}; g.r.SU=function(){this.stop();QY.Km.SU.call(this)}; g.r.pause=function(){};var oKy={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};jk("Element","attributes")||jk("Node","attributes");jk("Element","innerHTML")||jk("HTMLElement","innerHTML");jk("Node","nodeName");jk("Node","nodeType");jk("Node","parentNode");jk("Node","childNodes");jk("HTMLElement","style")||jk("Element","style");jk("HTMLStyleElement","sheet");var krD=imX("getPropertyValue"),sgK=imX("setProperty");jk("Element","namespaceURI")||jk("Node","namespaceURI");var ifG={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var UUZ,dYk,lyB,g49,uyy;UUZ=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]");dYk=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.UN_=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.Sob=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]");lyB=/^http:\/\/.*/;g.utt=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");g49=/\s+/;uyy=/[\d\u06f0-\u06f9]/;uO.prototype.Pu=function(){return new PR(this.K())}; uO.prototype[Symbol.iterator]=function(){return new r_(this.K())}; uO.prototype.D=function(){return new r_(this.K())}; g.V(PR,g.qw);PR.prototype.next=function(){return this.K.next()}; PR.prototype[Symbol.iterator]=function(){return new r_(this.K)}; PR.prototype.D=function(){return new r_(this.K)}; g.V(r_,uO);r_.prototype.next=function(){return this.S.next()};aW.prototype.clone=function(){return new aW(this.D,this.X,this.S,this.Z,this.G,this.j,this.K,this.V)}; aW.prototype.equals=function(q){return this.D==q.D&&this.X==q.X&&this.S==q.S&&this.Z==q.Z&&this.G==q.G&&this.j==q.j&&this.K==q.K&&this.V==q.V};jA.prototype.clone=function(){return new jA(this.start,this.end)};(function(){if(bN6){var q=/Windows NT ([0-9.]+)/;return(q=q.exec(g.bm()))?q[1]:"0"}return D5?(q=/1[0|1][_.][0-9_.]+/,(q=q.exec(g.bm()))?q[0].replace(/_/g,"."):"10"):g.c8?(q=/Android\s+([^\);]+)(\)|;)/,(q=q.exec(g.bm()))?q[1]:""):mMB||ie5||kX5?(q=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(q=q.exec(g.bm()))?q[1].replace(/_/g,"."):""):""})();var WJe=function(){if(g.Y2)return Dy(/Firefox\/([0-9.]+)/);if(g.D7||g.oV||g.tw)return tVk;if(g.l2){if(RZ()||rrD()){var q=Dy(/CriOS\/([0-9.]+)/);if(q)return q}return Dy(/Chrome\/([0-9.]+)/)}if(g.GW&&!RZ())return Dy(/Version\/([0-9.]+)/);if(Z7||Tp){if(q=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.bm()))return q[1]+"."+q[2]}else if(g.X6k)return(q=Dy(/Android\s+([0-9.]+)/))?q:Dy(/Version\/([0-9.]+)/);return""}();g.JC(g.pu,g.J);g.r=g.pu.prototype;g.r.subscribe=function(q,Z,F){var B=this.K[q];B||(B=this.K[q]=[]);var f=this.j;this.D[f]=q;this.D[f+1]=Z;this.D[f+2]=F;this.j=f+3;B.push(f);return f}; g.r.unsubscribe=function(q,Z,F){if(q=this.K[q]){var B=this.D;if(q=q.find(function(f){return B[f+1]==Z&&B[f+2]==F}))return this.DI(q)}return!1}; g.r.DI=function(q){var Z=this.D[q];if(Z){var F=this.K[Z];this.G!=0?(this.S.push(q),this.D[q+1]=function(){}):(F&&g.NL(F,q),delete this.D[q],delete this.D[q+1],delete this.D[q+2])}return!!Z}; g.r.publish=function(q,Z){var F=this.K[q];if(F){var B=Array(arguments.length-1),f=arguments.length,D;for(D=1;D0&&this.G==0)for(;F=this.S.pop();)this.DI(F)}}return D!=0}return!1}; g.r.clear=function(q){if(q){var Z=this.K[q];Z&&(Z.forEach(this.DI,this),delete this.K[q])}else this.D.length=0,this.K={}}; g.r.SU=function(){g.pu.Km.SU.call(this);this.clear();this.S.length=0};g.ML.prototype.set=function(q,Z){Z===void 0?this.jt.remove(q):this.jt.set(q,g.eX(Z))}; g.ML.prototype.get=function(q){try{var Z=this.jt.get(q)}catch(F){return}if(Z!==null)try{return JSON.parse(Z)}catch(F){throw"Storage: Invalid value was encountered";}}; g.ML.prototype.remove=function(q){this.jt.remove(q)};g.JC(PI,g.ML);PI.prototype.set=function(q,Z){PI.Km.set.call(this,q,InG(Z))}; PI.prototype.QV=function(q){q=PI.Km.get.call(this,q);if(q===void 0||q instanceof Object)return q;throw"Storage: Invalid value was encountered";}; PI.prototype.get=function(q){if(q=this.QV(q)){if(q=q.data,q===void 0)throw"Storage: Invalid value was encountered";}else q=void 0;return q};g.JC(HZ,PI);HZ.prototype.set=function(q,Z,F){if(Z=InG(Z)){if(F){if(F=F.length)return g.nQ;var f=F.key(Z++);if(q)return g.a9(f);f=F.getItem(f);if(typeof f!=="string")throw"Storage mechanism: Invalid value was encountered";return g.a9(f)}; return B}; g.r.clear=function(){F8(this);this.D.clear()}; g.r.key=function(q){F8(this);return this.D.key(q)};g.JC(Tj,yw);g.JC(Q0b,yw);g.JC(MJ,MG);MJ.prototype.set=function(q,Z){this.K.set(this.D+q,Z)}; MJ.prototype.get=function(q){return this.K.get(this.D+q)}; MJ.prototype.remove=function(q){this.K.remove(this.D+q)}; MJ.prototype.Pu=function(q){var Z=this.K[Symbol.iterator](),F=this,B=new g.qw;B.next=function(){var f=Z.next();if(f.done)return f;for(f=f.value;f.slice(0,F.D.length)!=F.D;){f=Z.next();if(f.done)return f;f=f.value}return g.a9(q?f.slice(F.D.length):F.K.get(f))}; return B};wx.prototype.getValue=function(){return this.K}; wx.prototype.clone=function(){return new wx(this.D,this.K)};g.r=aq.prototype;g.r.qD=function(q,Z){var F=this.D;F.push(new wx(q,Z));q=F.length-1;Z=this.D;for(F=Z[q];q>0;){var B=q-1>>1;if(Z[B].D>F.D)Z[q]=Z[B],q=B;else break}Z[q]=F}; g.r.remove=function(){var q=this.D,Z=q.length,F=q[0];if(!(Z<=0)){if(Z==1)q.length=0;else{q[0]=q.pop();q=0;Z=this.D;for(var B=Z.length,f=Z[q];q>1;){var D=q*2+1,G=q*2+2;D=Gf.D)break;Z[q]=Z[D];q=D}Z[q]=f}return F.getValue()}}; g.r.pQ=function(){for(var q=this.D,Z=[],F=q.length,B=0;B>>16&65535|0;for(var D;F!==0;){D=F>2E3?2E3:F;F-=D;do f=f+Z[B++]|0,q=q+f|0;while(--D);f%=65521;q%=65521}return f|q<<16|0};for(var fP={},r$,y8j=[],w$=0;w$<256;w$++){r$=w$;for(var L10=0;L10<8;L10++)r$=r$&1?3988292384^r$>>>1:r$>>>1;y8j[w$]=r$}fP=function(q,Z,F,B){F=B+F;for(q^=-1;B>>8^y8j[(q^Z[B])&255];return q^-1};var cR={};cR={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 $X=[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],iO=[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],GYg=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],WYD=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],sq=Array(576);kI(sq);var j4=Array(60);kI(j4);var kX=Array(512);kI(kX);var ad=Array(256);kI(ad);var Ku=Array(29);kI(Ku);var mN=Array(30);kI(mN);var BV6,fRB,Dxb,q9g=!1;var Rd;Rd=[new U$(0,0,0,0,function(q,Z){var F=65535;for(F>q.l6-5&&(F=q.l6-5);;){if(q.e$<=1){DL(q);if(q.e$===0&&Z===0)return 1;if(q.e$===0)break}q.AZ+=q.e$;q.e$=0;var B=q.pR+F;if(q.AZ===0||q.AZ>=B)if(q.e$=q.AZ-B,q.AZ=B,ry(q,!1),q.VC.vZ===0)return 1;if(q.AZ-q.pR>=q.tq-262&&(ry(q,!1),q.VC.vZ===0))return 1}q.qD=0;if(Z===4)return ry(q,!0),q.VC.vZ===0?3:4;q.AZ>q.pR&&ry(q,!1);return 1}), new U$(4,4,8,4,FL),new U$(4,5,16,8,FL),new U$(4,6,32,32,FL),new U$(4,4,16,16,wy),new U$(8,16,32,32,wy),new U$(8,16,128,128,wy),new U$(8,32,128,256,wy),new U$(32,128,258,1024,wy),new U$(32,258,258,4096,wy)];var MJy={};MJy=function(){this.input=null;this.gQ=this.OO=this.HV=0;this.output=null;this.mT=this.vZ=this.iE=0;this.msg="";this.state=null;this.CZ=2;this.dh=0};var bd9=Object.prototype.toString; XS.prototype.push=function(q,Z){var F=this.VC,B=this.options.chunkSize;if(this.ended)return!1;var f=Z===~~Z?Z:Z===!0?4:0;typeof q==="string"?F.input=nYG(q):bd9.call(q)==="[object ArrayBuffer]"?F.input=new Uint8Array(q):F.input=q;F.HV=0;F.OO=F.input.length;do{F.vZ===0&&(F.output=new Fo.FY(B),F.iE=0,F.vZ=B);q=AJK(F,f);if(q!==1&&q!==0)return this.Gc(q),this.ended=!0,!1;if(F.vZ===0||F.OO===0&&(f===4||f===2))if(this.options.to==="string"){var D=Fo.LV(F.output,F.iE);Z=D;D=D.length;if(D<65537&&(Z.subarray&& W1B||!Z.subarray))Z=String.fromCharCode.apply(null,Fo.LV(Z,D));else{for(var G="",n=0;n0||F.vZ===0)&&q!==1);if(f===4)return(F=this.VC)&&F.state?(B=F.state.status,B!==42&&B!==69&&B!==73&&B!==91&&B!==103&&B!==113&&B!==666?q=Eq(F,-2):(F.state=null,q=B===113?Eq(F,-3):0)):q=-2,this.Gc(q),this.ended=!0,q===0;f===2&&(this.Gc(0),F.vZ=0);return!0}; XS.prototype.Gc=function(q){q===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Fo.Cc(this.chunks));this.chunks=[];this.err=q;this.msg=this.VC.msg};var Pn="@@redux/INIT"+gd(),n1D="@@redux/REPLACE"+gd();var bs7=typeof Symbol==="function"&&Symbol.observable||"@@observable";var HOE=[0,OKm,-3,fQ];g.V(XqB,y6);var bq6=mNX(XqB,[0,Dj,QC5,q0,OKm,q0,-1,fQ,OKm,fQ,-1,Dj,fQ,QC5,Zj,HOE,q0,-1,fQ]);var XbD=256840181;var OOm=function(q,Z){return function(){var F=new Cv8(q,Z,GI);return function(){return F}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var k$Z=new g.LH("adInfoDialogEndpoint");var ZHZ=new g.LH("adPingingEndpoint");var R_k=new g.LH("crossDeviceProgressCommand");var ei=new g.LH("actionCompanionAdRenderer");var Vm=new g.LH("adActionInterstitialRenderer");var Qou=new g.LH("adDurationRemainingRenderer");var A1=new g.LH("adHoverTextButtonRenderer");var lQD=new g.LH("adInfoDialogRenderer");var gt=new g.LH("adMessageRenderer");var Ry=new g.LH("adPreviewRenderer");var Ml=new g.LH("adsEngagementPanelRenderer");var UK8=new g.LH("dismissablePanelTextPortraitImageRenderer");var Ks=new g.LH("adsEngagementPanelSectionListViewModel");var xNm=new g.LH("flyoutCtaRenderer");var TT=new g.LH("imageCompanionAdRenderer");var iY=new g.LH("instreamAdPlayerOverlayRenderer");var BgX=new g.LH("instreamSurveyAdBackgroundImageRenderer");var Co=new g.LH("instreamSurveyAdPlayerOverlayRenderer");var e8=new g.LH("instreamSurveyAdRenderer"),Qp=new g.LH("instreamSurveyAdSingleSelectQuestionRenderer"),OY=new g.LH("instreamSurveyAdMultiSelectQuestionRenderer"),Wi=new g.LH("instreamSurveyAdAnswerRenderer"),A88=new g.LH("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var hB=new g.LH("instreamVideoAdRenderer");var vpm=new g.LH("textOverlayAdContentRenderer"),X_e=new g.LH("enhancedTextOverlayAdContentRenderer"),Epu=new g.LH("imageOverlayAdContentRenderer");var sT=new g.LH("playerOverlayLayoutRenderer");var RM=new g.LH("videoInterstitialButtonedCenteredLayoutRenderer");var $Xg=new g.LH("aboveFeedAdLayoutRenderer");var mXZ=new g.LH("belowPlayerAdLayoutRenderer");var HDD=new g.LH("inPlayerAdLayoutRenderer");var EZ9=new g.LH("inPlayerOrganicOverlayAdLayoutRenderer");var QZ=new g.LH("playerBytesAdLayoutRenderer");var $1=new g.LH("playerBytesSequenceItemAdLayoutRenderer");var Es=new g.LH("playerUnderlayAdLayoutRenderer");var dE=new g.LH("adIntroRenderer");var EE=new g.LH("playerBytesSequentialLayoutRenderer");var RYK=new g.LH("slidingTextPlayerOverlayRenderer");var Zx=new g.LH("surveyTextInterstitialRenderer");var VX=new g.LH("videoAdTrackingRenderer");var s0X=new g.LH("videoInterstitialCenteredLayoutViewModel");var K18=new g.LH("simpleAdBadgeRenderer");var hR=new g.LH("skipAdRenderer"),$Nm=new g.LH("skipButtonRenderer");var mZ=new g.LH("adSlotRenderer");var ud=new g.LH("squeezebackPlayerSidePanelRenderer");var aD8=new g.LH("timedPieCountdownRenderer");var z4=new g.LH("adAvatarViewModel");var n6=new g.LH("adBadgeViewModel");var bA=new g.LH("adButtonViewModel");var mNE=new g.LH("adDetailsLineViewModel");var iO6=new g.LH("adDisclosureBannerViewModel");var kfj=new g.LH("adPodIndexViewModel");var so0=new g.LH("imageBackgroundViewModel");var joB=new g.LH("adGridCardCollectionViewModel");var ID_=new g.LH("adGridCardTextViewModel");var CNm=new g.LH("adPreviewViewModel");var hPm=new g.LH("playerAdAvatarLockupCardButtonedViewModel");var RPB=new g.LH("skipAdButtonViewModel");var c8e=new g.LH("skipAdViewModel");var J8m=new g.LH("timedPieCountdownViewModel");var Y3E=new g.LH("visitAdvertiserLinkViewModel");var qN=new g.LH("bannerImageLayoutViewModel");var ZD=new g.LH("topBannerImageTextIconButtonedLayoutViewModel");var Ft=new g.LH("adsEngagementPanelLayoutViewModel");var SGg=new g.LH("displayUnderlayTextGridCardsLayoutViewModel");g.Tn=new g.LH("browseEndpoint");var tmu=new g.LH("confirmDialogEndpoint");var PIG=new g.LH("commandContext");var uoD=new g.LH("rawColdConfigGroup");var UC7=new g.LH("rawHotConfigGroup");g.x8=new g.LH("commandExecutorCommand");g.V(pA7,y6);var kBD={eol:0,uGP:1,k6c:32,w5r:61,No_:67,jzG:103,dSa:86,YSP:42,p5c:60,SSE:62,Boa:73,ZvE:76,tul:88,WxE:90,f_L:99,mSp:98,X5E:100,rJP:102,Ovs:41,l_G:69,yJr:70,g9n:71,dgc:2,jgE:27,ANDROID:3,o6c:54,hf_:14,CQ_:91,bD_:55,x8s:24,VNG:20,HDE:18,aIG:21,IIP:104,T1G:30,v6r:29,JWp:28,J3n:101,MgF:34,Fks:36,Lk_:38,IOS:5,pYG:15,WD_:92,RhF:40,rjs:25,BAU:17,wYG:19,Ud_:64,ddr:66,jWr:26,NA$:22,fsc:33,ORU:68,lsa:35,tr_:53,XYE:37,ZRL:39,XK$:7,NxL:57,OxP:43,gca:59,y3U:93,sVG:74,ocU:75,hoP:85,bxr:65,VAr:80,HxU:8,tA_:10, aaL:58,LOU:63,xbs:72,E6n:23,bvs:11,xSU:13,Oep:12,WOF:16,AJn:56,USE:31,rrG:77,L2F:84,RIF:87,Iec:89,aeE:94,S$E:95};g.V(yc,y6);yc.prototype.WB=function(){return gj(this,3)}; yc.prototype.gk=function(){return gj(this,5)}; yc.prototype.fG=function(q){return QO(this,5,q)};g.V(uk,y6);g.V(SYK,y6);g.V(yN,y6);g.r=yN.prototype;g.r.getDeviceId=function(){return gj(this,6)}; g.r.M9=function(q){var Z=gw(this,9,MB,3,!0);Gs6(Z,q);return Z[q]}; g.r.getPlayerType=function(){return NE(this,36)}; g.r.setHomeGroupInfo=function(q){return Ya(this,SYK,81,q)}; g.r.clearLocationPlayabilityToken=function(){return Rh(this,89)};g.V(m$,y6);m$.prototype.getValue=function(){return gj(this,PM9(this,IpG,2))}; var IpG=[2,3,4,5,6];g.V(n0,y6);n0.prototype.setTrackingParams=function(q){return Rh(this,1,cd8(q,!1))};g.V(jN9,y6);g.V(Fp,y6);Fp.prototype.M9=function(q){var Z=gw(this,5,ee,3,!0);Gs6(Z,q);return Z[q]};g.V(qS,y6);qS.prototype.getToken=function(){return N7(this,2)}; qS.prototype.setToken=function(q){return QO(this,2,q)};g.V(fY,y6);fY.prototype.setSafetyMode=function(q){return RL(this,5,q)};g.V(Cc,y6);Cc.prototype.BD=function(q){return Ya(this,yN,1,q)};var jX=new g.LH("thumbnailLandscapePortraitRenderer");g.p_E=new g.LH("changeEngagementPanelVisibilityAction");var GND=new g.LH("continuationCommand");g.dN_=new g.LH("openPopupAction");var Vmm=new g.LH("signalAction");g.y8=new g.LH("webCommandMetadata");var SFg=new g.LH("metadataBadgeRenderer");var DOy=new g.LH("signalServiceEndpoint");var qX=new g.LH("innertubeCommand");var Ce6=new g.LH("loggingDirectives");var eZ7={YXF:"EMBEDDED_PLAYER_MODE_UNKNOWN",QSL:"EMBEDDED_PLAYER_MODE_DEFAULT",AVP:"EMBEDDED_PLAYER_MODE_PFP",mBP:"EMBEDDED_PLAYER_MODE_PFL"};var UfD=new g.LH("channelThumbnailEndpoint");var zEZ=new g.LH("embeddedPlayerErrorMessageRenderer");var q16=new g.LH("embeddedPlayerOverlayVideoDetailsRenderer"),u77=new g.LH("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),PWg=new g.LH("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var nWB=new g.LH("embedsInfoPanelRenderer");var zz=new g.LH("feedbackEndpoint");var eP5=new g.LH("callToActionButtonViewModel");var Tam=new g.LH("interactionLoggingCommandMetadata");var Um8={Qzl:"WEB_DISPLAY_MODE_UNKNOWN",G6$:"WEB_DISPLAY_MODE_BROWSER",n9c:"WEB_DISPLAY_MODE_MINIMAL_UI",cJG:"WEB_DISPLAY_MODE_STANDALONE",zIp:"WEB_DISPLAY_MODE_FULLSCREEN"};g.V(kj,y6);kj.prototype.getPlayerType=function(){return NE(this,7)}; kj.prototype.Vd=function(){return gj(this,19)}; kj.prototype.setVideoId=function(q){return QO(this,19,q)};g.V(Yv,y6);g.V(GN,y6);g.V(lH,y6); var MmE=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530];var o9m=new g.LH("loggingContext");g.V(RD9,y6);g.V(xj,y6);xj.prototype.Vd=function(){return N7(this,PM9(this,hf,1))}; xj.prototype.setVideoId=function(q){return Mo(this,1,hf,bd(q))}; xj.prototype.getPlaylistId=function(){return N7(this,PM9(this,hf,2))}; var hf=[1,2];g.V(Wsb,y6);var ho=new g.LH("changeKeyedMarkersVisibilityCommand");var q6m=new g.LH("changeMarkersVisibilityCommand");var UaD=new g.LH("loadMarkersCommand");var ZFm=new g.LH("suggestedActionDataViewModel");var al8=new g.LH("timelyActionViewModel");var $w9=new g.LH("timelyActionsOverlayViewModel");var Hme=new g.LH("productListItemRenderer");var FzE=new g.LH("shoppingOverlayRenderer");var ZYG=new g.LH("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Bkj=new g.LH("adFeedbackEndpoint");var fK5=new g.LH("menuEndpoint");var mdK=new g.LH("phoneDialerEndpoint");var $dB=new g.LH("sendSmsEndpoint");var ErK=new g.LH("copyTextEndpoint");var Dc6=new g.LH("shareEndpoint"),GGm=new g.LH("shareEntityEndpoint"),zQe=new g.LH("shareEntityServiceEndpoint"),n9j=new g.LH("webPlayerShareEntityServiceEndpoint");g.ZH=new g.LH("urlEndpoint");g.jt=new g.LH("watchEndpoint");var bFm=new g.LH("watchPlaylistEndpoint");g.Nke=new g.LH("offlineOrchestrationActionCommand");var YL9=new g.LH("compositeVideoOverlayRenderer");var g9B=new g.LH("miniplayerRenderer");var PFD=new g.LH("paidContentOverlayRenderer");var S68=new g.LH("playerMutedAutoplayOverlayRenderer"),lKE=new g.LH("playerMutedAutoplayEndScreenRenderer");var i0Z=new g.LH("unserializedPlayerResponse"),UcB=new g.LH("unserializedPlayerResponse");var uFt=new g.LH("playlistEditEndpoint");var LQ;g.jQ=new g.LH("buttonRenderer");LQ=new g.LH("toggleButtonRenderer");var ggg=new g.LH("counterfactualRenderer");var Phm=new g.LH("resolveUrlCommandMetadata");var rCe=new g.LH("modifyChannelNotificationPreferenceEndpoint");var qgK=new g.LH("pingingEndpoint");var wP6=new g.LH("unsubscribeEndpoint");g.iZ=new g.LH("subscribeButtonRenderer");var Wz0=new g.LH("subscribeEndpoint");var IZZ=new g.LH("buttonViewModel");var lhX=new g.LH("qrCodeRenderer");var k4B={sWP:"LIVING_ROOM_APP_MODE_UNSPECIFIED",FDP:"LIVING_ROOM_APP_MODE_MAIN",Cuc:"LIVING_ROOM_APP_MODE_KIDS",TAl:"LIVING_ROOM_APP_MODE_MUSIC",Eua:"LIVING_ROOM_APP_MODE_UNPLUGGED",qqG:"LIVING_ROOM_APP_MODE_GAMING"};var DaX=new g.LH("autoplaySwitchButtonRenderer");var XB,Rum,qFy,XRb;XB=new g.LH("decoratedPlayerBarRenderer");Rum=new g.LH("chapteredPlayerBarRenderer");qFy=new g.LH("multiMarkersPlayerBarRenderer");XRb=new g.LH("chapterRenderer");g.LtK=new g.LH("markerRenderer");var Fem=new g.LH("decoratedPlayheadRenderer");var bbD=new g.LH("desktopOverlayConfigRenderer");var uOB=new g.LH("engagementPanelSectionListRenderer");var z_7=new g.LH("gatedActionsOverlayViewModel");var xqK=new g.LH("heatMarkerRenderer");var OBk=new g.LH("heatmapRenderer");var lW7=new g.LH("watchToWatchTransitionRenderer");var frG=new g.LH("playlistPanelRenderer");var yC_=new g.LH("productUpsellSuggestedActionViewModel");var Lz5=new g.LH("suggestedActionTimeRangeTrigger"),HF5=new g.LH("suggestedActionsRenderer"),OFE=new g.LH("suggestedActionRenderer");var vuk=new g.LH("timedMarkerDecorationRenderer");var Vv7=new g.LH("cipher");var k9K=new g.LH("playerVars");var Qbj=new g.LH("playerVars");var Hi=g.W5.window,xc0,AC8,ju=(Hi==null?void 0:(xc0=Hi.yt)==null?void 0:xc0.config_)||(Hi==null?void 0:(AC8=Hi.ytcfg)==null?void 0:AC8.data_)||{};g.O9("yt.config_",ju);var Md=[];var w1b=/^[\w.]*$/,eB7={q:!0,search_query:!0},Vy6=String(gK);var q8=new function(){var q=window.document;this.D=window;this.K=q}; g.O9("yt.ads_.signals_.getAdSignalsString",function(q){return l5(Kj(q))});g.i$();var HhK="XMLHttpRequest"in g.W5?function(){return new XMLHttpRequest}:null;var v9t="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.YB(v9t);var V4y={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"},hZX="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.YB(v9t)),zmX=!1,u07=aZ;g.V(Lh,V0);a6.prototype.then=function(q,Z,F){return this.D?this.D.then(q,Z,F):this.S===1&&q?(q=q.call(F,this.K))&&typeof q.then==="function"?q:T1(q):this.S===2&&Z?(q=Z.call(F,this.K))&&typeof q.then==="function"?q:Ef(q):this}; a6.prototype.getValue=function(){return this.K}; a6.prototype.$goog_Thenable=!0;var yM=!1;var R_=Z7||Tp;var m6K=/^([0-9\.]+):([0-9\.]+)$/;g.V(NX_,V0);NX_.prototype.name="BiscottiError";g.V(DB,V0);DB.prototype.name="BiscottiMissingError";var hWZ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},OE=null;var BwG=g.ue(["data-"]),RzK={};var XPB=0,sR6=g.YN?"webkit":RJ?"moz":g.D7?"ms":g.tw?"o":"",E90=g.ym("ytDomDomGetNextId")||function(){return++XPB}; g.O9("ytDomDomGetNextId",E90);var grG={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};r3.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; r3.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; r3.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var VN=g.W5.ytEventsEventsListeners||{};g.O9("ytEventsEventsListeners",VN);var lYD=g.W5.ytEventsEventsCounter||{count:0};g.O9("ytEventsEventsCounter",lYD);var cfG=hG(function(){var q=!1;try{var Z=Object.defineProperty({},"passive",{get:function(){q=!0}}); window.addEventListener("test",null,Z)}catch(F){}return q}),Xu9=hG(function(){var q=!1; try{var Z=Object.defineProperty({},"capture",{get:function(){q=!0}}); window.addEventListener("test",null,Z)}catch(F){}return q});var OA;OA=window;g.Le=OA.ytcsi&&OA.ytcsi.now?OA.ytcsi.now:OA.performance&&OA.performance.timing&&OA.performance.now&&OA.performance.timing.navigationStart?function(){return OA.performance.timing.navigationStart+OA.performance.now()}:function(){return(new Date).getTime()};g.JC(Hl,g.J);Hl.prototype.PG=function(q){q.D===void 0&&nLK(q);var Z=q.D;q.K===void 0&&nLK(q);this.D=new g.e_(Z,q.K)}; Hl.prototype.xX=function(){return this.D||new g.e_}; Hl.prototype.Dl=function(){if(this.D){var q=(0,g.Le)();if(this.G!=0){var Z=this.j,F=this.D,B=Z.x-F.x;Z=Z.y-F.y;B=Math.sqrt(B*B+Z*Z)/(q-this.G);this.K[this.S]=Math.abs((B-this.Z)/this.Z)>.5?1:0;for(F=Z=0;F<4;F++)Z+=this.K[F]||0;Z>=3&&this.X();this.Z=B}this.G=q;this.j=this.D;this.S=(this.S+1)%4}}; Hl.prototype.SU=function(){g.V2(this.V);g.Cb(this.uL)};g.V(t8,g.J);t8.prototype.N=function(q,Z,F,B,f){F=g.jJ((0,g.Jy)(F,B||this.Gb));F={target:q,name:Z,callback:F};var D;f&&cfG()&&(D={passive:!0});q.addEventListener(Z,F.callback,D);this.X.push(F);return F}; t8.prototype.Op=function(q){for(var Z=0;Z=c.mp)||H.D.version>=e||H.D.objectStoreNames.contains(m)||Q.push(m)}b=Q;if(b.length===0){W.An(5);break}N=Object.keys(F.options.KG);S=n.objectStoreNames();if(F.Z< g.bk("ytidb_reopen_db_retries",0))return F.Z++,n.close(),uv(new g.Mu("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:F.name,expectedObjectStores:N,foundObjectStores:S})),W.return(Z());if(!(F.GF.options.version+1)throw U.close(),F.S=!1,AiX(F,u);return W.return(U);case 8:throw q(),l instanceof Error&&!g.cz("ytidb_async_stack_killswitch")&& (l.stack=l.stack+"\n"+G.substring(G.indexOf("\n")+1)),JD(l,F.name,"",(P=F.options.version)!=null?P:-1);}})} var F=this;if(!this.S)throw AiX(this);if(this.D)return this.D;var B,f={blocking:function(D){D.close()}, closed:q,nbL:q,upgrade:this.options.upgrade};return this.D=B=Z()};var IR=new F7("YtIdbMeta",{KG:{databases:{mp:1}},upgrade:function(q,Z){Z(1)&&g.UF(q,"databases",{keyPath:"actualName"})}});var RMZ,qD=new function(){}(new function(){});new g.VW;g.V(uW,F7);uW.prototype.K=function(q,Z,F){F=F===void 0?{}:F;return(this.options.shared?R$G:Epk)(q,Z,Object.assign({},F))}; uW.prototype.delete=function(q){q=q===void 0?{}:q;return(this.options.shared?OzK:zYK)(this.name,q)};var IKt={},F3Z=g.ic("ytGcfConfig",{KG:(IKt.coldConfigStore={mp:1},IKt.hotConfigStore={mp:1},IKt),shared:!1,upgrade:function(q,Z){Z(1)&&(g.ZX(g.UF(q,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.ZX(g.UF(q,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.V(AIk,g.J);AIk.prototype.SU=function(){for(var q=g.E(this.K),Z=q.next();!Z.done;Z=q.next()){var F=this.D;Z=F.indexOf(Z.value);Z>=0&&F.splice(Z,1)}this.K.length=0;g.J.prototype.SU.call(this)};G5.prototype.fG=function(q){this.hotHashData=q;g.O9("yt.gcf.config.hotHashData",this.hotHashData||null)};var Ch6=typeof TextEncoder!=="undefined"?new TextEncoder:null,zOK=Ch6?function(q){return Ch6.encode(q)}:function(q){q=g.J4(q); for(var Z=new Uint8Array(q.length),F=0;F=Z?!1:!0}; g.r.Wk=function(){var q=this;if(!Z2(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.CE.ZY("QUEUED",this.sP).then(function(Z){Z&&!q.wK(Z,q.MQ)?q.Lk.ET(function(){return g.h(function(F){if(F.D==1)return Z.id===void 0?F.An(2):g.R(F,q.CE.Sa(Z.id,q.sP),2);q.Wk();g.C7(F)})}):q.wY.Bf()&&q.Kq()})};var Zr;var aC9={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72, visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337, tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359, activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378, browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396, gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419, sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4, musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440, embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463, getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488, unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513, connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530};var RQ8={},ukD=g.ic("ServiceWorkerLogsDatabase",{KG:(RQ8.SWHealthLog={mp:1},RQ8),shared:!0,upgrade:function(q,Z){Z(1)&&g.ZX(g.UF(q,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var HTD={},LYB=0;var Sv;Xb.prototype.requestComplete=function(q,Z){Z&&(this.K=!0);q=this.removeParams(q);this.D.get(q)||this.D.set(q,Z)}; Xb.prototype.isEndpointCFR=function(q){q=this.removeParams(q);return(q=this.D.get(q))?!1:q===!1&&this.K?!0:null}; Xb.prototype.removeParams=function(q){return q.split("?")[0]}; Xb.prototype.removeParams=Xb.prototype.removeParams;Xb.prototype.isEndpointCFR=Xb.prototype.isEndpointCFR;Xb.prototype.requestComplete=Xb.prototype.requestComplete;Xb.getInstance=G4;g.V(XH,g.xl);g.r=XH.prototype;g.r.Bf=function(){return this.D.Bf()}; g.r.bl=function(q){this.D.D=q}; g.r.Pr=function(){var q=window.navigator.onLine;return q===void 0?!0:q}; g.r.qJ=function(){this.K=!0}; g.r.listen=function(q,Z){return this.D.listen(q,Z)}; g.r.gK=function(q){q=n9(this.D,q);q.then(function(Z){g.cz("use_cfr_monitor")&&G4().requestComplete("generate_204",Z)}); return q}; XH.prototype.sendNetworkCheckRequest=XH.prototype.gK;XH.prototype.listen=XH.prototype.listen;XH.prototype.enableErrorFlushing=XH.prototype.qJ;XH.prototype.getWindowStatus=XH.prototype.Pr;XH.prototype.networkStatusHint=XH.prototype.bl;XH.prototype.isNetworkAvailable=XH.prototype.Bf;XH.getInstance=CZD;g.V(g.hm,g.xl);g.hm.prototype.Bf=function(){var q=g.ym("yt.networkStatusManager.instance.isNetworkAvailable");return q?q.bind(this.K)():!0}; g.hm.prototype.bl=function(q){var Z=g.ym("yt.networkStatusManager.instance.networkStatusHint").bind(this.K);Z&&Z(q)}; g.hm.prototype.gK=function(q){var Z=this,F;return g.h(function(B){F=g.ym("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Z.K);return g.cz("skip_network_check_if_cfr")&&G4().isEndpointCFR("generate_204")?B.return(new Promise(function(f){var D;Z.bl(((D=window.navigator)==null?void 0:D.onLine)||!0);f(Z.Bf())})):F?B.return(F(q)):B.return(!0)})};var QEj;g.V(y1,JO);y1.prototype.writeThenSend=function(q,Z){Z||(Z={});Z=kA(q,Z);g.bE()||(this.D=!1);JO.prototype.writeThenSend.call(this,q,Z)}; y1.prototype.sendThenWrite=function(q,Z,F){Z||(Z={});Z=kA(q,Z);g.bE()||(this.D=!1);JO.prototype.sendThenWrite.call(this,q,Z,F)}; y1.prototype.sendAndWrite=function(q,Z){Z||(Z={});Z=kA(q,Z);g.bE()||(this.D=!1);JO.prototype.sendAndWrite.call(this,q,Z)}; y1.prototype.awaitInitialization=function(){return this.S.promise};var VM8=g.W5.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.O9("ytNetworklessLoggingInitializationOptions",VM8);g.Ik.prototype.isReady=function(){!this.config_&&xik()&&(this.config_=g.CB());return!!this.config_};var cCe,zF,bK;cCe=g.W5.ytPubsubPubsubInstance||new g.pu;zF=g.W5.ytPubsubPubsubSubscribedKeys||{};bK=g.W5.ytPubsubPubsubTopicToKeys||{};g.na=g.W5.ytPubsubPubsubIsSynchronous||{};g.pu.prototype.subscribe=g.pu.prototype.subscribe;g.pu.prototype.unsubscribeByKey=g.pu.prototype.DI;g.pu.prototype.publish=g.pu.prototype.publish;g.pu.prototype.clear=g.pu.prototype.clear;g.O9("ytPubsubPubsubInstance",cCe);g.O9("ytPubsubPubsubTopicToKeys",bK);g.O9("ytPubsubPubsubIsSynchronous",g.na); g.O9("ytPubsubPubsubSubscribedKeys",zF);var STX={};g.V(jG,g.J);jG.prototype.append=function(q){if(!this.K)throw Error("This does not support the append operation");q=q.QO();this.QO().appendChild(q)}; g.V(T5,jG);T5.prototype.QO=function(){return this.D};g.V(Ci,g.J);Ci.prototype.onTouchStart=function(q){this.X=!0;this.K=q.touches.length;this.D.isActive()&&(this.D.stop(),this.Z=!0);q=q.touches;this.j=u_m(this,q)||q.length!=1;var Z=q.item(0);this.j||!Z?this.PG=this.V=Infinity:(this.V=Z.clientX,this.PG=Z.clientY);for(Z=this.S.length=0;Z=0)}if(Z||q&&Math.pow(q.clientX-this.V,2)+Math.pow(q.clientY-this.PG,2)>25)this.G=!0}; Ci.prototype.onTouchEnd=function(q){var Z=q.changedTouches;Z&&this.X&&this.K==1&&!this.G&&!this.Z&&!this.j&&u_m(this,Z)&&(this.Dl=q,this.D.start());this.K=q.touches.length;this.K===0&&(this.G=this.X=!1,this.S.length=0);this.Z=!1};var Fe=Date.now().toString();var xpK={};var JK=Symbol("injectionDeps");le.prototype.toString=function(){return"InjectionToken("+this.name+")"}; ozk.prototype.resolve=function(q){return q instanceof DG?tK(this,q.key,[],!0):tK(this,q,[])};var mH;var kU=window;var J3=g.cz("web_enable_lifecycle_monitoring")&&iA()!==0,lA7=g.cz("web_enable_lifecycle_monitoring");EWD.prototype.cancel=function(){for(var q=g.E(this.D),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.jobId===void 0||Z.uW||this.scheduler.RS(Z.jobId),Z.uW=!0;this.K.resolve()};g.r=Y4.prototype;g.r.install=function(q){this.plugins.push(q);return this}; g.r.uninstall=function(){var q=this;g.CF.apply(0,arguments).forEach(function(Z){Z=q.plugins.indexOf(Z);Z>-1&&q.plugins.splice(Z,1)})}; g.r.transition=function(q,Z){var F=this;J3&&WdK(this.state);var B=this.transitions.find(function(D){return Array.isArray(D.from)?D.from.find(function(G){return G===F.state&&D.to===q}):D.from===F.state&&D.to===q}); if(B){this.K&&(J7y(this.K),this.K=void 0);UgB(this,q,Z);this.state=q;J3&&DE8(this.state);B=B.action.bind(this);var f=this.plugins.filter(function(D){return D[q]}).map(function(D){return D[q]}); B(OA9(this,f),Z)}else throw Error("no transition specified from "+this.state+" to "+q);}; g.r.kDp=function(q){var Z=g.CF.apply(1,arguments);g.ap();for(var F=g.E(q),B=F.next(),f={};!B.done;f={hv:void 0},B=F.next())f.hv=B.value,Ju8(function(D){return function(){f9K(D.hv.name);WR8(function(){return D.hv.callback.apply(D.hv,g.YB(Z))}); V_(D.hv.name)}}(f))}; g.r.YIl=function(q){var Z=g.CF.apply(1,arguments),F,B,f,D;return g.h(function(G){G.D==1&&(g.ap(),F=g.E(q),B=F.next(),f={});if(G.D!=3){if(B.done)return G.An(0);f.ZL=B.value;f.GF=void 0;D=function(n){return function(){f9K(n.ZL.name);var b=WR8(function(){return n.ZL.callback.apply(n.ZL,g.YB(Z))}); RW(b)?n.GF=g.cz("web_lifecycle_error_handling_killswitch")?b.then(function(){V_(n.ZL.name)}):b.then(function(){V_(n.ZL.name)},function(N){bkK(N); V_(n.ZL.name)}):V_(n.ZL.name)}}(f); Ju8(D);return f.GF?g.R(G,f.GF,3):G.An(3)}f={ZL:void 0,GF:void 0};B=F.next();return G.An(2)})}; g.r.lB=function(q){var Z=g.CF.apply(1,arguments),F=this,B=q.map(function(f){return{sL:function(){f9K(f.name);WR8(function(){return f.callback.apply(f,g.YB(Z))}); V_(f.name)}, priority:lc(F,f)}}); B.length&&(this.K=new EWD(B))}; g.br.Object.defineProperties(Y4.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var xY;g.V(XN,Y4);XN.prototype.Z=function(q,Z){var F=this;this.D=g.Aw(0,function(){F.currentState==="application_navigating"&&F.transition("none")},5E3); q(Z==null?void 0:Z.event)}; XN.prototype.j=function(q,Z){this.D&&(g.kN.RS(this.D),this.D=null);q(Z==null?void 0:Z.event)};var Ys=[];g.O9("yt.logging.transport.getScrapedGelPayloads",function(){return Ys});aS.prototype.storePayload=function(q,Z){q=S5B(q);this.store[q]?this.store[q].push(Z):(this.K={},this.store[q]=[Z]);this.D++;g.cz("more_accurate_gel_parser")&&(Z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Z));return q}; aS.prototype.smartExtractMatchingEntries=function(q){if(!q.keys.length)return[];for(var Z=mzZ(this,q.keys.splice(0,1)[0]),F=[],B=0;B=0){B=!1;break a}}B=!0}B&&(Z=nV(Z))&&this.AN(Z)}}; g.r.vF=function(q){return q}; g.r.onTouchStart=function(q){this.zP.onTouchStart(q)}; g.r.onTouchMove=function(q){this.zP.onTouchMove(q)}; g.r.onTouchEnd=function(q){if(this.zP)this.zP.onTouchEnd(q)}; g.r.AN=function(q){this.layoutId?this.x$.executeCommand(q,this.layoutId):(q=new g.M2("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.mM(q))}; g.r.createServerVe=function(q,Z){this.api.createServerVe(q,this);this.api.setTrackingParams(q,Z)}; g.r.logVisibility=function(q,Z){this.api.hasVe(q)&&this.api.logVisibility(q,Z,this.interactionLoggingClientData)}; g.r.SU=function(){this.clear(null);this.Op(this.vG);for(var q=g.E(this.Y$),Z=q.next();!Z.done;Z=q.next())this.Op(Z.value);g.xT.prototype.SU.call(this)};g.V(qa,km); qa.prototype.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);this.D=Z;if(Z.text==null&&Z.icon==null)g.bh(Error("ButtonRenderer did not have text or an icon set."));else{switch(Z.style||null){case "STYLE_UNKNOWN":q="ytp-ad-button-link";break;default:q=null}q!=null&&g.e$(this.element,q);Z.text!=null&&(q=g.HD(Z.text),g.lO(q)||(this.element.setAttribute("aria-label",q),this.S=new g.xT({Y:"span",W:"ytp-ad-button-text",Ka:q}),g.y(this,this.S),this.S.R_(this.element)));Z.accessibilityData&&Z.accessibilityData.accessibilityData&& Z.accessibilityData.accessibilityData.label&&!g.lO(Z.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",Z.accessibilityData.accessibilityData.label);Z.icon!=null&&(Z=s8(Z.icon,this.G),Z!=null&&(this.K=new g.xT({Y:"span",W:"ytp-ad-button-icon",T:[Z]}),g.y(this,this.K)),this.Z?bo(this.element,this.K.element,0):this.K.R_(this.element))}}; qa.prototype.clear=function(){this.hide()}; qa.prototype.onClick=function(q){km.prototype.onClick.call(this,q);q=g.E(hMy(this));for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,this.layoutId?this.x$.executeCommand(Z,this.layoutId):g.mM(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.V(sD,g.J);sD.prototype.SU=function(){this.K&&g.Cb(this.K);this.D.clear();PO=null;g.J.prototype.SU.call(this)}; sD.prototype.register=function(q,Z){Z&&this.D.set(q,Z)}; var PO=null;g.V(oE,km); oE.prototype.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);q=Z.hoverText||null;Z=Z.button&&g.C(Z.button,g.jQ)||null;Z==null?g.mM(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new qa(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,void 0,void 0,void 0,void 0,this.S),g.y(this,this.button),this.button.init(kV("button"),Z,this.macros),q&&this.button.element.setAttribute("aria-label",g.HD(q)),this.button.R_(this.element),this.V&&!g.QU(this.button.element, "ytp-ad-clickable")&&g.e$(this.button.element,"ytp-ad-clickable"),this.S&&g.e$(this.button.element,"ytp-ad-hover-text-button--clean-player"),q&&(this.K=new g.xT({Y:"div",W:"ytp-ad-hover-text-container"}),this.Z&&(Z=new g.xT({Y:"div",W:"ytp-ad-hover-text-callout"}),Z.R_(this.K.element),g.y(this,Z)),g.y(this,this.K),this.K.R_(this.element),Z=N9(q),bo(this.K.element,Z,0)),this.show())}; oE.prototype.hide=function(){this.button&&this.button.hide();this.K&&this.K.hide();km.prototype.hide.call(this)}; oE.prototype.show=function(){this.button&&this.button.show();km.prototype.show.call(this)};g.V(Ht,km); Ht.prototype.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);F=(q=Z.thumbnail)&&Sh(q)||"";g.lO(F)?Math.random()<.01&&g.bh(Error("Found AdImage without valid image URL")):(this.D?g.u$(this.element,"backgroundImage","url("+F+")"):b9(this.element,{src:F}),b9(this.element,{alt:q&&q.accessibility&&q.accessibility.label||""}),Z&&Z.adRendererCommands&&Z.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Ht.prototype.clear=function(){this.hide()};g.V(Zu,km);g.r=Zu.prototype;g.r.hide=function(){km.prototype.hide.call(this);this.S&&this.S.focus()}; g.r.show=function(){this.S=document.activeElement;km.prototype.show.call(this);this.G.focus()}; g.r.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);this.K=Z;Z.dialogMessages||Z.title!=null?Z.confirmLabel==null?g.mM(Error("ConfirmDialogRenderer.confirmLabel was not set.")):Z.cancelLabel==null?g.mM(Error("ConfirmDialogRenderer.cancelLabel was not set.")):WhD(this,Z):g.mM(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.r.clear=function(){g.DJ(this.D);this.hide()}; g.r.hA=function(){this.hide()}; g.r.Ao=function(){var q=this.K.cancelEndpoint;q&&(this.layoutId?this.x$.executeCommand(q,this.layoutId):g.mM(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.r.bX=function(){var q=this.K.confirmNavigationEndpoint||this.K.confirmEndpoint;q&&(this.layoutId?this.x$.executeCommand(q,this.layoutId):g.mM(Error("Missing layoutId for confirm dialog.")));this.hide()};g.V(K_,km);g.r=K_.prototype; g.r.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);this.S=Z;if(Z.defaultText==null&&Z.defaultIcon==null)g.mM(Error("ToggleButtonRenderer must have either text or icon set."));else if(Z.defaultIcon==null&&Z.toggledIcon!=null)g.mM(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(Z.style){switch(Z.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":q="ytp-ad-toggle-button-default-style";break;default:q=null}q!=null&&g.e$(this.G,q)}q={};Z.defaultText? (F=g.HD(Z.defaultText),g.lO(F)||(q.buttonText=F,this.api.C().experiments.qp("a11y_h5_associate_survey_question")||this.D.setAttribute("aria-label",F),this.api.C().experiments.qp("fix_h5_toggle_button_a11y")&&this.K.setAttribute("aria-label",F))):g.mm(this.k$,!1);Z.defaultTooltip&&(q.tooltipText=Z.defaultTooltip,this.D.hasAttribute("aria-label")||this.K.setAttribute("aria-label",Z.defaultTooltip));Z.defaultIcon?(F=s8(Z.defaultIcon),this.updateValue("untoggledIconTemplateSpec",F),Z.toggledIcon?(this.uL= !0,F=s8(Z.toggledIcon),this.updateValue("toggledIconTemplateSpec",F)):(g.mm(this.V,!0),g.mm(this.Z,!1)),g.mm(this.D,!1)):g.mm(this.K,!1);g.q_(q)||this.update(q);Z.isToggled&&(g.e$(this.G,"ytp-ad-toggle-button-toggled"),this.toggleButton(Z.isToggled));oJ6(this);this.N(this.element,"change",this.mU);this.show()}}; g.r.onClick=function(q){this.Y$.length>0&&(this.toggleButton(!this.isToggled()),this.mU());km.prototype.onClick.call(this,q)}; g.r.mU=function(){g.hK(this.G,"ytp-ad-toggle-button-toggled",this.isToggled());for(var q=g.E(SvD(this,this.isToggled())),Z=q.next();!Z.done;Z=q.next())Z=Z.value,this.layoutId?this.x$.executeCommand(Z,this.layoutId):g.mM(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);oJ6(this)}; g.r.clear=function(){this.hide()}; g.r.toggleButton=function(q){g.hK(this.G,"ytp-ad-toggle-button-toggled",q);this.D.checked=q;oJ6(this)}; g.r.isToggled=function(){return this.D.checked};g.V(Vs,t8);Vs.prototype.Z=function(q){if(Array.isArray(q)){q=g.E(q);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z instanceof iVB&&this.S(Z)}};g.V(NS,km);g.r=NS.prototype;g.r.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);Z.reasons?Z.confirmLabel==null?g.mM(Error("AdFeedbackRenderer.confirmLabel was not set.")):(Z.cancelLabel==null&&g.bh(Error("AdFeedbackRenderer.cancelLabel was not set.")),Z.title==null&&g.bh(Error("AdFeedbackRenderer.title was not set.")),asD(this,Z)):g.mM(Error("AdFeedbackRenderer.reasons were not set."))}; g.r.clear=function(){LPD(this.Z);LPD(this.V);this.G.length=0;this.hide()}; g.r.hide=function(){this.D&&this.D.hide();this.K&&this.K.hide();km.prototype.hide.call(this);this.S&&this.S.focus()}; g.r.show=function(){this.D&&this.D.show();this.K&&this.K.show();this.S=document.activeElement;km.prototype.show.call(this);this.Z.focus()}; g.r.eL=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.r.KYL=function(){this.hide()}; m_.prototype.QO=function(){return this.D.element}; m_.prototype.getCommand=function(){return this.K}; m_.prototype.isChecked=function(){return this.S.checked};g.V(ig,Zu);ig.prototype.hA=function(q){Zu.prototype.hA.call(this,q);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ig.prototype.Ao=function(q){Zu.prototype.Ao.call(this,q);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ig.prototype.bX=function(q){Zu.prototype.bX.call(this,q);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.V(UFD,km);g.r=UFD.prototype; g.r.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);this.Z=Z;if(Z.dialogMessage==null&&Z.title==null)g.mM(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{Z.confirmLabel==null&&g.bh(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(q=Z.closeOverlayRenderer&&g.C(Z.closeOverlayRenderer,g.jQ)||null)this.D=new qa(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.y(this,this.D),this.D.init(kV("button"),q,this.macros),this.D.R_(this.element);Z.title&&(q=g.HD(Z.title),this.updateValue("title",q));if(Z.adReasons)for(q=Z.adReasons,F=0;F=this.BG?(this.uL.hide(),this.Oc=!0,this.publish("i")):this.S&&this.S.isTemplated()&&(q=Math.max(0,Math.ceil((this.BG-q)/1E3)),q!=this.o_&&(LwD(this.S,{TIME_REMAINING:String(q)}),this.o_=q)))}};g.V(SAg,nX);g.r=SAg.prototype; g.r.init=function(q,Z,F){nX.prototype.init.call(this,q,Z,F);if(Z.image&&Z.image.thumbnail)if(Z.headline)if(Z.description)if((q=Z.actionButton&&g.C(Z.actionButton,g.jQ))&&q.navigationEndpoint){var B=this.api.getVideoData(2);if(B!=null)if(Z.image&&Z.image.thumbnail){var f=Z.image.thumbnail.thumbnails;f!=null&&f.length>0&&g.lO(g.lg(f[0].url))&&(f[0].url=B.profilePicture)}else g.bh(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.S.init(kV("ad-image"),Z.image,F);this.Z.init(kV("ad-text"), Z.headline,F);this.G.init(kV("ad-text"),Z.description,F);this.K.init(kV("button"),q,F);F=MLZ(this.K.element);Ve(this.K.element,F+" This link opens in new tab");this.uL=q.navigationEndpoint;this.api.g0()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.Yp.bind(this));this.k$=Z.startMs||0;HH(this)}else g.mM(Error("FlyoutCtaRenderer has no valid action button."));else g.mM(Error("FlyoutCtaRenderer has no description AdText."));else g.mM(Error("FlyoutCtaRenderer has no headline AdText.")); else g.bh(Error("FlyoutCtaRenderer has no image."))}; g.r.onClick=function(q){nX.prototype.onClick.call(this,q);this.api.pauseVideo();!g.yT(this.K.element,q.target)&&this.uL&&(this.layoutId?this.x$.executeCommand(this.uL,this.layoutId):g.mM(Error("Missing layoutId for flyout cta.")))}; g.r.xu=function(){if(this.D){var q=this.D.getProgressState();(q&&q.current||this.BG)&&1E3*q.current>=this.k$&&(F2(this),g.vc(this.element,"ytp-flyout-cta-inactive"),this.K.element.removeAttribute("tabIndex"))}}; g.r.gs=function(){this.clear()}; g.r.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Yp.bind(this))}; g.r.show=function(){this.K&&this.K.show();nX.prototype.show.call(this)}; g.r.hide=function(){this.K&&this.K.hide();nX.prototype.hide.call(this)}; g.r.Yp=function(q){q=="hidden"?this.show():this.hide()};g.V($6,km);g.r=$6.prototype; g.r.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);this.D=Z;if(this.D.rectangle)for(q=this.D.likeButton&&g.C(this.D.likeButton,LQ),Z=this.D.dislikeButton&&g.C(this.D.dislikeButton,LQ),this.S.init(kV("toggle-button"),q,F),this.K.init(kV("toggle-button"),Z,F),this.N(this.element,"change",this.kp),this.G.show(100),this.show(),F=g.E(this.D&&this.D.impressionCommands||[]),q=F.next();!q.done;q=F.next())q=q.value,this.layoutId?this.x$.executeCommand(q,this.layoutId):g.mM(Error("Missing layoutId for instream user sentiment."))}; g.r.clear=function(){this.hide()}; g.r.hide=function(){this.S.hide();this.K.hide();km.prototype.hide.call(this)}; g.r.show=function(){this.S.show();this.K.show();km.prototype.show.call(this)}; g.r.kp=function(){H7m(this.element,"ytp-ad-instream-user-sentiment-selected");this.D.postMessageAction&&this.api.a_("onYtShowToast",this.D.postMessageAction);this.G.hide()}; g.r.onClick=function(q){this.Y$.length>0&&this.kp();km.prototype.onClick.call(this,q)};g.V(Cp,g.J);g.r=Cp.prototype;g.r.SU=function(){this.reset();g.J.prototype.SU.call(this)}; g.r.reset=function(){g.DJ(this.G);this.j=!1;this.D&&this.D.stop();this.Z.stop();this.S&&(this.S=!1,this.X.play())}; g.r.start=function(){this.reset();this.G.N(this.K,"mouseover",this.Zx,this);this.G.N(this.K,"mouseout",this.Rn,this);this.Dl&&(this.G.N(this.K,"focusin",this.Zx,this),this.G.N(this.K,"focusout",this.Rn,this));this.D?this.D.start():(this.j=this.S=!0,g.u$(this.K,{opacity:this.PG}))}; g.r.Zx=function(){this.S&&(this.S=!1,this.X.play());this.Z.stop();this.D&&this.D.stop()}; g.r.Rn=function(){this.j?this.Z.start():this.D&&this.D.start()}; g.r.X5=function(){this.S||(this.S=!0,this.V.play(),this.j=!0)};var Lrg=[new R9("b.f_",!1,0),new R9("j.s_",!1,2),new R9("r.s_",!1,4),new R9("e.h_",!1,6),new R9("i.s_",!0,8),new R9("s.t_",!1,10),new R9("p.h_",!1,12),new R9("s.i_",!1,14),new R9("f.i_",!1,16),new R9("a.b_",!1,18),new R9("a.o_",!1),new R9("g.o_",!1,22),new R9("p.i_",!1,24),new R9("p.m_",!1),new R9("n.k_",!0,20),new R9("i.f_",!1),new R9("a.s_",!0),new R9("m.c_",!1),new R9("n.h_",!1,26),new R9("o.p_",!1),new R9("m.p_",!0,28),new R9("o.a_",!1),new R9("d.p_",!1),new R9("e.i_",!1)].reduce(function(q,Z){q[Z.K]= Z;return q},{});g.V(hS,nX);g.r=hS.prototype; g.r.init=function(q,Z,F){nX.prototype.init.call(this,q,Z,F);this.uL=Z;(this.k$=IYK(this))&&g.bh(Error("hasAdControlInClickCommands_ is true."));if(!Z||g.q_(Z))g.mM(Error("SkipButtonRenderer was not specified or empty."));else if(!Z.message||g.q_(Z.message))g.mM(Error("SkipButtonRenderer.message was not specified or empty."));else if(q=this.Z?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},Z=this.api.C().U("delhi_modern_web_player_icons"),Z=s8(q,!1,!1,Z),Z==null?g.mM(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+q.iconType+ ".")):(this.api.C().U("disable_touch_events_on_skip_button")&&(Z.L=Object.assign({},Z.L,{"aria-hidden":"true",gKa:"false"})),this.S=new g.xT({Y:"button",rU:[this.Z?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],T:[{Y:"span",W:this.Z?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",T:[Z]}]}),g.y(this,this.S),this.S.R_(this.G.element),this.K=new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,"ytp-ad-skip-button-text"),this.Z&&this.K.element.classList.add("ytp-ad-skip-button-text-centered"), this.K.init(kV("ad-text"),this.uL.message,F),g.y(this,this.K),bo(this.S.element,this.K.element,0)),!this.api.C().U("disable_touch_events_on_skip_button")){var B=B===void 0?null:B;F=this.api.C();!(this.Y$.length>0)&&F.K&&(eT?0:"ontouchstart"in document.documentElement&&(jsD()||rq()))&&(this.Op(this.vG),B&&this.Op(B),this.Y$=[this.N(this.element,"touchstart",this.onTouchStart,this),this.N(this.element,"touchmove",this.onTouchMove,this),this.N(this.element,"touchend",this.onTouchEnd,this)])}}; g.r.clear=function(){this.BG.reset();this.hide()}; g.r.hide=function(){this.G.hide();this.K&&this.K.hide();F2(this);nX.prototype.hide.call(this)}; g.r.onClick=function(q){if(this.S!=null){if(q){var Z=q||window.event;Z.returnValue=!1;Z.preventDefault&&Z.preventDefault()}var F;if(IQg(q,{contentCpn:((F=this.api.getVideoData(1))==null?void 0:F.clientPlaybackNonce)||""})===0)this.api.a_("onAbnormalityDetected");else if(nX.prototype.onClick.call(this,q),this.publish("j"),this.api.a_("onAdSkip"),this.Oc||!this.k$)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.r.vF=function(q){if(!this.Oc)return this.k$&&Yp("SkipButton click commands not pruned while ALC exist"),q;var Z,F=(Z=g.C(q,g.x8))==null?void 0:Z.commands;if(!F)return q;q=[];for(Z=0;Z=this.Z&&ljD(this,!0)};g.V(xQ,qa);xQ.prototype.init=function(q,Z,F){qa.prototype.init.call(this,q,Z,F);q=!1;Z.text!=null&&(q=g.HD(Z.text),q=!g.lO(q));q?Z.navigationEndpoint==null?g.bh(Error("No visit advertiser clickthrough provided in renderer,")):Z.style!=="STYLE_UNKNOWN"?g.bh(Error("Button style was not a link-style type in renderer,")):this.show():g.bh(Error("No visit advertiser text was present in the renderer."))};g.V(vE,km); vE.prototype.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);q=Z.text;g.lO(S4(q))?g.bh(Error("SimpleAdBadgeRenderer has invalid or empty text")):(q&&q.text&&(Z=q.text,this.S&&!this.K&&(Z=this.api.C(),Z=q.text+" "+(Z&&Z.K?"\u2022":"\u00b7")),Z={text:Z,isTemplated:q.isTemplated},q.style&&(Z.style=q.style),q.targetId&&(Z.targetId=q.targetId),q=new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),q.init(kV("simple-ad-badge"),Z,F),q.R_(this.element),g.y(this,q)),this.show())}; vE.prototype.clear=function(){this.hide()};g.V(jI,Gf);g.V(gg,g.In);g.r=gg.prototype;g.r.B8=function(){return this.durationMs}; g.r.stop=function(){this.D&&this.handler.Op(this.D)}; g.r.y5=function(q){this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:q.current};this.publish("h")}; g.r.getProgressState=function(){return this.K}; g.r.j9=function(q){g.YM(q,2)&&this.publish("g")};g.V(HG,g.In);g.r=HG.prototype;g.r.B8=function(){return this.durationMs}; g.r.start=function(){this.D||(this.D=!0,this.timer.start())}; g.r.stop=function(){this.D&&(this.D=!1,this.timer.stop())}; g.r.y5=function(){this.wF+=100;var q=!1;this.wF>this.durationMs&&(this.wF=this.durationMs,this.timer.stop(),q=!0);this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.wF/1E3};this.publish("h");q&&this.publish("g")}; g.r.getProgressState=function(){return this.K};g.V(Zl,nX);g.r=Zl.prototype;g.r.init=function(q,Z,F){nX.prototype.init.call(this,q,Z,F);var B;if(Z==null?0:(B=Z.templatedCountdown)==null?0:B.templatedAdText){q=Z.templatedCountdown.templatedAdText;if(!q.isTemplated){g.bh(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.K=new N$(this.api,this.layoutId,this.interactionLoggingClientData,this.x$);this.K.init(kV("ad-text"),q,{});this.K.R_(this.element);g.y(this,this.K)}this.show()}; g.r.clear=function(){this.hide()}; g.r.hide=function(){F2(this);nX.prototype.hide.call(this)}; g.r.gs=function(){this.hide()}; g.r.xu=function(){if(this.D!=null){var q=this.D.getProgressState();if(q!=null&&q.current!=null&&this.K){var Z=this.D instanceof gg?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:q.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.D instanceof HG?q.seekableEnd:this.api.getDuration(2,!1);q=q.current;var F,B,f=((F=this.api.getVideoData())==null?0:(B=F.tP)==null?0:B.call(F))?Math.max(Z-q,0):Z-q;LwD(this.K,{FORMATTED_AD_DURATION_REMAINING:String(g.Pv(f)), TIME_REMAINING:String(Math.ceil(f))})}}}; g.r.show=function(){HH(this);nX.prototype.show.call(this)};g.V(B9,N$);B9.prototype.onClick=function(q){N$.prototype.onClick.call(this,q);this.api.onAdUxClicked(this.componentType)};g.V(Lz,km);Lz.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});if(q=Z.content){g.Tk(this.element,q);var F,B;Z=((F=Z.interaction)==null?void 0:(B=F.accessibility)==null?void 0:B.label)||q;this.element.setAttribute("aria-label",Z)}else g.mM(Error("AdSimpleAttributedString does not have text content"))}; Lz.prototype.clear=function(){this.hide()}; Lz.prototype.onClick=function(q){km.prototype.onClick.call(this,q)};g.V(HW,km); HW.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});(q=Z.label)&&q.content&&!g.lO(q.content)?(this.adBadgeText.init(kV("ad-simple-attributed-string"),new Yj(q)),(Z=Z.adPodIndex)&&Z.content&&!g.lO(Z.content)&&(this.D=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),this.D.R_(this.element),g.y(this,this.D),this.D.element.classList.add("ytp-ad-badge__pod-index"),this.D.init(kV("ad-simple-attributed-string"),new Yj(Z))),this.element.classList.add(this.K?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.mM(Error("No label is returned in AdBadgeViewModel."))}; HW.prototype.show=function(){this.adBadgeText.show();var q;(q=this.D)==null||q.show();km.prototype.show.call(this)}; HW.prototype.hide=function(){this.adBadgeText.hide();var q;(q=this.D)==null||q.hide();km.prototype.hide.call(this)};g.V(nY,km);nY.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});(q=Z.adPodIndex)&&q.content&&!g.lO(q.content)&&(this.D=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),this.D.R_(this.element),g.y(this,this.D),this.D.init(kV("ad-simple-attributed-string"),new Yj(q)),Z.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()}; nY.prototype.show=function(){var q;(q=this.D)==null||q.show();km.prototype.show.call(this)}; nY.prototype.hide=function(){var q;(q=this.D)==null||q.hide();km.prototype.hide.call(this)};g.V(ZZ,km); ZZ.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});if(Z!=null&&Z.text){var F;if(((F=Z.text)==null?0:F.content)&&!g.lO(Z.text.content)){this.D=new g.xT({Y:"div",W:"ytp-ad-disclosure-banner__text",Ka:Z.text.content});g.y(this,this.D);this.D.R_(this.element);if(this.api.C().U("enable_ad_disclosure_banner_a11y_fix")){var B,f,D=(B=Z.interaction)==null?void 0:(f=B.accessibility)==null?void 0:f.label;D||(D=Z.text.content+" This link opens in new tab");Ve(this.element,D)}else{var G;B=((D= Z.interaction)==null?void 0:(G=D.accessibility)==null?void 0:G.label)||Z.text.content;this.element.setAttribute("aria-label",B)}var n;if((n=Z.interaction)==null?0:n.onTap)this.K=new g.xT({Y:"div",W:"ytp-ad-disclosure-banner__chevron",T:[g.Fc()]}),g.y(this,this.K),this.K.R_(this.element),this.api.C().U("enable_ad_disclosure_banner_a11y_fix")&&(cg(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.eN));this.show()}}else g.mM(Error("No banner text found in AdDisclosureBanner."))}; ZZ.prototype.eN=function(q){if(q.key==="Enter"||q.key===" ")q.preventDefault(),this.element.click()}; ZZ.prototype.clear=function(){this.hide()};g.V(SO,g.xT);SO.prototype.y5=function(){var q=this.K.getProgressState(),Z=q.seekableEnd;this.api.getPresentingPlayerType()===2&&(Z=this.S?this.S/1E3:q.seekableEnd);this.progressBar.style.width=s7(new dl(q.seekableStart,Z),q.current,0)*100+"%"}; SO.prototype.onStateChange=function(){g.dh(this.api.C())||(this.api.getPresentingPlayerType()===2?this.D===-1&&(this.show(),this.D=this.K.subscribe("h",this.y5,this),this.y5()):this.D!==-1&&(this.hide(),this.K.DI(this.D),this.D=-1))};g.V(bM,km); bM.prototype.init=function(q,Z,F,B){km.prototype.init.call(this,q,Z,F);if(Z.skipOrPreviewRenderer){if(q=g.C(Z.skipOrPreviewRenderer,hR))F=new YI(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.K,this.V),F.R_(this.WG),F.init(kV("skip-button"),q,this.macros),g.y(this,F);if(q=g.C(Z.skipOrPreviewRenderer,hR))var f=q.skipOffsetMilliseconds}Z.brandInteractionRenderer&&(q=Z.brandInteractionRenderer.brandInteractionRenderer,F=new $6(this.api,this.layoutId,this.interactionLoggingClientData,this.x$), F.R_(this.k$),F.init(kV("instream-user-sentiment"),q,this.macros),g.y(this,F));if(q=g.C(Z,xNm))if(q=g.C(q,xNm))F=new SAg(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.K,!!Z.showWithoutLinkedMediaLayout),g.y(this,F),F.R_(this.Z),F.init(kV("flyout-cta"),q,this.macros);B=B&&B.videoAdDurationSeconds;Z.adBadgeRenderer&&(F=Z.adBadgeRenderer,q=g.C(F,n6),q!=null?(F=new HW(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,!1),g.y(this,F),F.R_(this.D),F.init(kV("ad-badge"), q,this.macros),this.S=F.element):(q=F.simpleAdBadgeRenderer,q==null&&(q={text:{text:"Anuncio",isTemplated:!1}}),F=new vE(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,!0),g.y(this,F),F.R_(this.D),F.init(kV("simple-ad-badge"),q,this.macros)));Z.adPodIndex&&(q=g.C(Z.adPodIndex,kfj),q!=null&&(F=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,F),F.R_(this.D),F.init(kV("ad-pod-index"),q)));Z.adDurationRemaining&&!Z.showWithoutLinkedMediaLayout&&(q=Z.adDurationRemaining.adDurationRemainingRenderer, q==null&&(q={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),B=new Zl(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.K,B,!1),g.y(this,B),B.R_(this.D),B.init(kV("ad-duration-remaining"),q,this.macros));Z.adInfoRenderer&&(B=g.C(Z.adInfoRenderer,A1))&&(q=new q5(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.element,void 0,!1),g.y(this,q),this.S!==null?this.D.insertBefore(q.element,this.S.nextSibling):q.R_(this.D), q.init(kV("ad-info-hover-text-button"),B,this.macros));Z.visitAdvertiserRenderer&&(q=g.C(Z.visitAdvertiserRenderer,g.jQ))&&(F=M4b(this)&&this.G?this.G:this.D)&&(B=new xQ(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,B),B.R_(F),B.init(kV("visit-advertiser"),q,this.macros),cg(B.element),q=MLZ(B.element),Ve(B.element,q+" This link opens in new tab"));!(B=this.api.C())||g.Us(B)||g.FQ(B)||B.controlsType!="3"&&!B.disableOrganicUi||(f=new SO(this.api,this.K,f,!1),f.R_(this.BG), g.y(this,f));Z.adDisclosureBannerRenderer&&(Z=g.C(Z.adDisclosureBannerRenderer,iO6))&&(f=new ZZ(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),f.R_(this.uL),f.init(kV("ad-disclosure-banner"),Z),g.y(this,f));this.api.C().U("enable_updated_html5_player_focus_style")&&g.e$(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; bM.prototype.clear=function(){this.hide()};g.$Y9.prototype.flush=function(q,Z){q=q===void 0?[]:q;Z=Z===void 0?!1:Z;if(g.cz("enable_client_streamz_web")){q=g.E(q);for(var F=q.next();!F.done;F=q.next())F=sHD(F.value),this.D&&Ya(F,r6,2,this.D),F={serializedIncrementBatch:g.MR(F.S())},g.nh("streamzIncremented",F,{sendIsolatedPayload:Z})}}; g.V(q7Z,g.$Y9);var Vrb=new Map;BH.prototype.set=function(q,Z,F){F=F!==void 0?Date.now()+F:void 0;this.D.set(q,Z,F)}; BH.prototype.get=function(q){return this.D.get(q)}; BH.prototype.remove=function(q){this.D.remove(q)};var S79=null;var yQ=null,WW=null,wo=null,$A7=null;g.O9("yt.www.ads.eventcache.getLastCompanionData",function(){return yQ}); g.O9("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.O9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return WW}); g.O9("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return wo}); g.O9("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return $A7});var dXk=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);or.prototype.handleResponse=function(q,Z){if(!Z)throw Error("request needs to be passed into ConsistencyService");var F,B;Z=((F=Z.Kv.context)==null?void 0:(B=F.request)==null?void 0:B.consistencyTokenJars)||[];var f;(q=(f=q.responseContext)==null?void 0:f.consistencyTokenJar)&&this.replace(Z,q)}; or.prototype.replace=function(q,Z){q=g.E(q);for(var F=q.next();!F.done;F=q.next())delete this.D[F.value.encryptedTokenJarContents];A1g(this,Z)};var V7e=window.location.hostname.split(".").slice(-2).join("."),EA;ZB.getInstance=function(){EA=g.ym("yt.clientLocationService.instance");EA||(EA=new ZB,g.O9("yt.clientLocationService.instance",EA));return EA}; g.r=ZB.prototype; g.r.setLocationOnInnerTubeContext=function(q){q.client||(q.client={});if(this.D)q.client.locationInfo||(q.client.locationInfo={}),q.client.locationInfo.latitudeE7=Math.floor(this.D.coords.latitude*1E7),q.client.locationInfo.longitudeE7=Math.floor(this.D.coords.longitude*1E7),q.client.locationInfo.horizontalAccuracyMeters=Math.round(this.D.coords.accuracy),q.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.S||this.locationPlayabilityToken)q.client.locationPlayabilityToken=this.S|| this.locationPlayabilityToken}; g.r.handleResponse=function(q){var Z;q=(Z=q.responseContext)==null?void 0:Z.locationPlayabilityToken;q!==void 0&&(this.locationPlayabilityToken=q,this.D=void 0,g.oa("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=kgZ(this))&&this.localStorage.set("yt-location-playability-token",q,15552E3):g.aA("YT_CL",JSON.stringify({loctok:q}),15552E3,V7e,!0))}; g.r.clearLocationPlayabilityToken=function(q){q==="TVHTML5"?(this.localStorage=kgZ(this))&&this.localStorage.remove("yt-location-playability-token"):g.L_("YT_CL");this.S=void 0;this.K!==-1&&(clearTimeout(this.K),this.K=-1)}; g.r.getCurrentPositionFromGeolocation=function(){var q=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var Z=!1,F=1E4;g.oa("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Z=!0,F=15E3);return new Promise(function(B,f){navigator.geolocation.getCurrentPosition(function(D){q.D=D;B(D)},function(D){f(D)},{enableHighAccuracy:Z, maximumAge:0,timeout:F})})}; g.r.createUnpluggedLocationInfo=function(q){var Z={};q=q.coords;if(q==null?0:q.latitude)Z.latitudeE7=Math.floor(q.latitude*1E7);if(q==null?0:q.longitude)Z.longitudeE7=Math.floor(q.longitude*1E7);if(q==null?0:q.accuracy)Z.locationRadiusMeters=Math.round(q.accuracy);return Z}; g.r.createLocationInfo=function(q){var Z={};q=q.coords;if(q==null?0:q.latitude)Z.latitudeE7=Math.floor(q.latitude*1E7);if(q==null?0:q.longitude)Z.longitudeE7=Math.floor(q.longitude*1E7);return Z};g.r=eLD.prototype;g.r.contains=function(q){return Object.prototype.hasOwnProperty.call(this.D,q)}; g.r.get=function(q){if(this.contains(q))return this.D[q]}; g.r.set=function(q,Z){this.D[q]=Z}; g.r.Cx=function(){return Object.keys(this.D)}; g.r.remove=function(q){delete this.D[q]};Nu.prototype.getModuleId=function(q){return q.serviceId.getModuleId()}; Nu.prototype.get=function(q){a:{var Z=this.mappings.get(q.toString());switch(Z.type){case "mapping":q=Z.value;break a;case "factory":Z=Z.value();this.mappings.set(q.toString(),{type:"mapping",value:Z});q=Z;break a;default:q=GT(Z)}}return q}; Nu.prototype.registerService=function(q,Z){this.mappings.set(q.toString(),{type:"mapping",value:Z});return q}; new Nu;var KQ={},kJy=(KQ.WEB_UNPLUGGED="^unplugged/",KQ.WEB_UNPLUGGED_ONBOARDING="^unplugged/",KQ.WEB_UNPLUGGED_OPS="^unplugged/",KQ.WEB_UNPLUGGED_PUBLIC="^unplugged/",KQ.WEB_CREATOR="^creator/",KQ.WEB_KIDS="^kids/",KQ.WEB_EXPERIMENTS="^experiments/",KQ.WEB_MUSIC="^music/",KQ.WEB_REMIX="^music/",KQ.WEB_MUSIC_EMBEDDED_PLAYER="^music/",KQ.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",KQ);ET.prototype.Z=function(q,Z,F){Z=Z===void 0?{}:Z;F=F===void 0?px:F;var B={context:g.CN(q.clickTrackingParams,!1,this.G)};var f=this.K(q);if(f){this.D(B,f,Z);var D;Z=g.x7(this.S());(f=(D=g.C(q.commandMetadata,g.y8))==null?void 0:D.apiUrl)&&(Z=f);D=LFy(wO(Z));q=Object.assign({},{command:q},void 0);B={input:D,DU:kz(D),Kv:B,config:q};B.config.nK?B.config.nK.identity=F:B.config.nK={identity:F};return B}F=new g.M2("Error: Failed to create Request from Command.",q);g.mM(F)}; g.br.Object.defineProperties(ET.prototype,{G:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.V(g3,ET);g.V(si,g3);si.prototype.Z=function(){return{input:"/getDatasyncIdsEndpoint",DU:kz("/getDatasyncIdsEndpoint","GET"),Kv:{}}}; si.prototype.S=function(){return[]}; si.prototype.K=function(){}; si.prototype.D=function(){};var eQm={},g$b=(eQm.GET_DATASYNC_IDS=fR(si),eQm);var $O={},Tkj=($O["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",$O["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",$O["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",$O["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",$O["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",$O["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",$O["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", $O["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",$O["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",$O["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",$O["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",$O["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",$O["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",$O["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",$O["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", $O["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",$O["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",$O["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",$O["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",$O["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",$O["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",$O["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", $O["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",$O.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",$O["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",$O["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",$O["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",$O["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",$O["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",$O["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", $O["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",$O["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",$O["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",$O["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",$O["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",$O["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",$O["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",$O["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",$O["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",$O["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",$O.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",$O["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",$O["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",$O["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",$O["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",$O["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",$O["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",$O["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",$O["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",$O["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",$O["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",$O["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",$O["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",$O["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",$O["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",$O["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",$O["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",$O["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",$O["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",$O["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",$O["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",$O["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", $O["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",$O["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",$O["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",$O["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",$O["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",$O["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",$O["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",$O["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",$O["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", $O["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",$O["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",$O["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",$O["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",$O["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",$O["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",$O["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",$O["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", $O),a8={},JBm=(a8.auto_search="LATENCY_ACTION_AUTO_SEARCH",a8.ad_to_ad="LATENCY_ACTION_AD_TO_AD",a8.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",a8.app_startup="LATENCY_ACTION_APP_STARTUP",a8.browse="LATENCY_ACTION_BROWSE",a8.cast_splash="LATENCY_ACTION_CAST_SPLASH",a8.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",a8.channels="LATENCY_ACTION_CHANNELS",a8.chips="LATENCY_ACTION_CHIPS",a8.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",a8.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", a8.editor="LATENCY_ACTION_EDITOR",a8.embed="LATENCY_ACTION_EMBED",a8.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",a8.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",a8.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",a8.explore="LATENCY_ACTION_EXPLORE",a8.favorites="LATENCY_ACTION_FAVORITES",a8.home="LATENCY_ACTION_HOME",a8.inboarding="LATENCY_ACTION_INBOARDING",a8.landing="LATENCY_ACTION_LANDING",a8.learning="LATENCY_ACTION_LEARNING", a8.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",a8.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",a8.library="LATENCY_ACTION_LIBRARY",a8.live="LATENCY_ACTION_LIVE",a8.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",a8.management="LATENCY_ACTION_MANAGEMENT",a8.mini_app="LATENCY_ACTION_MINI_APP_PLAY",a8.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",a8.onboarding="LATENCY_ACTION_ONBOARDING",a8.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", a8.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",a8.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",a8.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",a8.prebuffer="LATENCY_ACTION_PREBUFFER",a8.prefetch="LATENCY_ACTION_PREFETCH",a8.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",a8.profile_switcher="LATENCY_ACTION_LOGIN",a8.projects="LATENCY_ACTION_PROJECTS",a8.reel_watch="LATENCY_ACTION_REEL_WATCH",a8.results="LATENCY_ACTION_RESULTS",a8.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", a8.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",a8.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",a8.review="LATENCY_ACTION_REVIEW",a8.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",a8.search_ui="LATENCY_ACTION_SEARCH_UI",a8.search_suggest="LATENCY_ACTION_SUGGEST",a8.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",a8.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",a8.seek="LATENCY_ACTION_PLAYER_SEEK",a8.settings="LATENCY_ACTION_SETTINGS",a8.store="LATENCY_ACTION_STORE", a8.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",a8.tenx="LATENCY_ACTION_TENX",a8.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",a8.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",a8.watch="LATENCY_ACTION_WATCH",a8.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",a8["watch,watch7"]="LATENCY_ACTION_WATCH",a8["watch,watch7_html5"]="LATENCY_ACTION_WATCH",a8["watch,watch7ad"]="LATENCY_ACTION_WATCH",a8["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",a8.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", a8.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",a8.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",a8.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",a8.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",a8.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",a8.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",a8.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",a8);Object.assign(JBm,Tkj);g.V(X07,wl);var zDD=new l9("aft-recorded",X07);var M7m=g.W5.ytLoggingGelSequenceIdObj_||{};g.O9("ytLoggingGelSequenceIdObj_",M7m);var DM=g.W5.ytLoggingLatencyUsageStats_||{};g.O9("ytLoggingLatencyUsageStats_",DM);$F.prototype.tick=function(q,Z,F,B){dO(this,"tick_"+q+"_"+Z)||g.nh("latencyActionTicked",{tickName:q,clientActionNonce:Z},{timestamp:F,cttAuthInfo:B})}; $F.prototype.info=function(q,Z,F){var B=Object.keys(q).join("");dO(this,"info_"+B+"_"+Z)||(q=Object.assign({},q),q.clientActionNonce=Z,g.nh("latencyActionInfo",q,{cttAuthInfo:F}))}; $F.prototype.jspbInfo=function(q,Z,F){for(var B="",f=0;f=f.length?(Z.append(f),q-=f.length):q?(Z.append(new Uint8Array(f.buffer,f.byteOffset,q)),F.append(new Uint8Array(f.buffer,f.byteOffset+q,f.length-q)),q=0):F.append(f);return{J_:Z,er:F}}; bN.prototype.isFocused=function(q){return q>=this.S&&q=64&&(this.j.set(q.subarray(0,64-this.K),this.K),Z=64-this.K,this.K=0,MNy(this,this.j,0));for(;Z+64<=F;Z+=64)MNy(this,q,Z);Z=this.start&&(q=2&&F.ssdaiAdsConfig&&Yp("Unexpected ad placement renderers length",q.slot,null,{length:B.length});var f;((f=F.adSlots)==null?0:f.some(function(D){var G,n;return((G=g.C(D,mZ))==null?void 0:(n=G.adSlotMetadata)==null?void 0:n.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||B.some(function(D){var G,n,b,N; return!!((G=D.renderer)==null?0:(n=G.linearAdSequenceRenderer)==null?0:(b=n.linearAds)==null?0:b.length)||!((N=D.renderer)==null||!N.instreamVideoAdRenderer)})||cNZ(q)})}; PC.prototype.KZ=function(){JKm(this.D)};EnB.prototype.BM=function(){var q=this;fNB(this.K,function(){var Z=qc(q.slot.clientMetadata,"metadata_type_ad_break_request_data");return Z.cueProcessedMs?q.D.get().fetch({Xu:Z.getAdBreakUrl,aF:new g.u8(Z.rS,Z.Zd),cueProcessedMs:Z.cueProcessedMs}):q.D.get().fetch({Xu:Z.getAdBreakUrl,aF:new g.u8(Z.rS,Z.Zd)})})}; EnB.prototype.KZ=function(){JKm(this.K)};hI8.prototype.BM=function(){var q=this.slot.clientMetadata,Z,F=(Z=this.slot.fulfilledLayout)!=null?Z:qc(q,"metadata_type_fulfilled_layout");gZX(this.callback,this.slot,F)}; hI8.prototype.KZ=function(){BrD(this.callback,this.slot,new K("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")};TAg.prototype.build=function(q,Z){return Z.fulfilledLayout||bxb(Z,{m0:["metadata_type_fulfilled_layout"]})?new hI8(q,Z):this.S(q,Z)};g.V(nB,TAg); nB.prototype.S=function(q,Z){if(bxb(Z,{m0:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new PC(q,Z,this.D,this.K,this.Kw,this.GP,this.wU,this.Zl,this.A0);if(bxb(Z,{m0:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new EnB(q,Z,this.D,this.K,this.Kw,this.GP);throw new K("Unsupported slot with type: "+Z.slotType+" and client metadata: "+Yf(Z.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.V(bn,TAg);bn.prototype.S=function(q,Z){throw new K("Unsupported slot with type: "+Z.slotType+" and client metadata: "+Yf(Z.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.r=Xm7.prototype;g.r.bd=function(){return this.slot}; g.r.hn=function(){return this.layout}; g.r.init=function(){}; g.r.release=function(){}; g.r.startRendering=function(q){if(q.layoutId!==this.layout.layoutId)this.callback.Dz(this.slot,q,new JB("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 Z=qc(q.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.ql(this.slot,q),ci6(this.S, this.slot,Z)):Yp("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,q)}}; g.r.KP=function(q,Z){q.layoutId!==this.layout.layoutId?this.callback.Dz(this.slot,q,new JB("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.ZJ(this.slot,q,Z),Hbb(this),YlK(this))};g.V(oP,g.In);g.r=oP.prototype;g.r.bd=function(){return this.K.slot}; g.r.hn=function(){return this.K.layout}; g.r.init=function(){this.S.get().addListener(this)}; g.r.release=function(){this.S.get().removeListener(this);this.dispose()}; g.r.Yj=function(){}; g.r.QD=function(){}; g.r.cW=function(){}; g.r.C3=function(){}; g.r.startRendering=function(q){var Z=this;qj(this.K,q,function(){return void Z.Ej()})}; g.r.Ej=function(){this.S.get().Ej(this.D)}; g.r.KP=function(q,Z){var F=this;qj(this.K,q,function(){var B=F.S.get();ea6(B,F.D,3);F.D=[];F.callback.ZJ(F.slot,q,Z)})}; g.r.SU=function(){this.S.jU()||this.S.get().removeListener(this);g.In.prototype.SU.call(this)}; g.br.Object.defineProperties(oP.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.K.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.K.layout}}});gH.prototype.PH=function(q,Z){Z=Z===void 0?!1:Z;var F=(this.S.get(q)||[]).concat();if(Z=Z&&agt(q)){var B=this.S.get(Z);B&&F.push.apply(F,g.YB(B))}uA(this,q,F);this.D.add(q);Z&&this.D.add(Z)}; gH.prototype.xk=function(q,Z){Z=Z===void 0?!1:Z;if(!this.D.has(q)){var F=Z&&agt(q);F&&(Z=!this.D.has(F));this.PH(q,Z)}};g.V(Cd9,Gf);g.V(CD,oP);g.r=CD.prototype;g.r.QX=function(q,Z){Ox("ads-engagement-panel-layout",q,this.j.get().rF,this.wU.get(),this.G,this.Z,this.bd(),this.hn(),Z)}; g.r.startRendering=function(q){K0(this.La,this.bd(),this.hn(),g.C(this.hn().renderingContent,Ft),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(Z,F,B,f,D){return new Cd9(Z,F,B,f,D)},this.D); oP.prototype.startRendering.call(this,q)}; g.r.ql=function(q,Z){this.Z===Z.layoutId&&(this.G===null?this.G=this.wU.get().Yb():Yp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.r.ZJ=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.SU=function(){VC(this.vg(),this);oP.prototype.SU.call(this)};g.V(x5X,Gf);g.V(U55,oP);g.r=U55.prototype;g.r.QX=function(q,Z){Ox("banner-image",q,this.j.get().rF,this.wU.get(),this.G,this.Z,this.bd(),this.hn(),Z)}; g.r.startRendering=function(q){K0(this.La,this.bd(),this.hn(),g.C(this.hn().renderingContent,qN),this.callback,"metadata_type_banner_image_layout_view_model",function(Z,F,B,f,D){return new x5X(Z,F,B,f,D)},this.D); oP.prototype.startRendering.call(this,q)}; g.r.ql=function(q,Z){this.Z===Z.layoutId&&(this.G===null?this.G=this.wU.get().Yb():Yp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.r.ZJ=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.SU=function(){VC(this.vg(),this);oP.prototype.SU.call(this)};g.V(Pc,Gf);g.V(SJ,oP);g.r=SJ.prototype;g.r.QX=function(q,Z){Ox("action-companion",q,this.j.get().rF,this.wU.get(),this.G,this.Z,this.bd(),this.hn(),Z)}; g.r.startRendering=function(q){K0(this.La,this.bd(),this.hn(),g.C(this.hn().renderingContent,ei),this.callback,"metadata_type_action_companion_ad_renderer",function(Z,F,B,f,D){return new Pc(Z,F,B,f,D)},this.D); oP.prototype.startRendering.call(this,q)}; g.r.ql=function(q,Z){Z.layoutId===this.layout.layoutId?this.La.xk("impression"):this.Z===Z.layoutId&&(this.G===null?this.G=this.wU.get().Yb():Yp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.r.ZJ=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.SU=function(){VC(this.vg(),this);oP.prototype.SU.call(this)};g.V(mW9,Gf);g.V(mC,oP);g.r=mC.prototype;g.r.QX=function(q,Z){Ox("image-companion",q,this.j.get().rF,this.wU.get(),this.G,this.Z,this.bd(),this.hn(),Z)}; g.r.startRendering=function(q){K0(this.La,this.bd(),this.hn(),g.C(this.hn().renderingContent,TT),this.callback,"metadata_type_image_companion_ad_renderer",function(Z,F,B,f,D){return new mW9(Z,F,B,f,D)},this.D); oP.prototype.startRendering.call(this,q)}; g.r.ql=function(q,Z){Z.layoutId===this.layout.layoutId?this.La.xk("impression"):this.Z===Z.layoutId&&(this.G===null?this.G=this.wU.get().Yb():Yp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.r.ZJ=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.SU=function(){VC(this.vg(),this);oP.prototype.SU.call(this)};g.V(yMb,Gf);g.V(FU,oP);g.r=FU.prototype;g.r.QX=function(q,Z){Ox("shopping-companion",q,this.j.get().rF,this.wU.get(),this.G,this.Z,this.bd(),this.hn(),Z)}; g.r.startRendering=function(q){K0(this.La,this.bd(),this.hn(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(Z,F,B,f,D){return new yMb(Z,F,B,f,D)},this.D); oP.prototype.startRendering.call(this,q)}; g.r.ql=function(q,Z){Z.layoutId===this.layout.layoutId?this.La.xk("impression"):this.Z===Z.layoutId&&(this.G===null?this.G=this.wU.get().Yb():Yp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.r.ZJ=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.SU=function(){VC(this.vg(),this);oP.prototype.SU.call(this)};g.V(Bj6,oP);g.r=Bj6.prototype;g.r.startRendering=function(q){K0(this.La,this.bd(),this.hn(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(Z,F,B,f,D){return new Pc(Z,F,B,f,D)},this.D); oP.prototype.startRendering.call(this,q)}; g.r.ql=function(){}; g.r.ZJ=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.SU=function(){VC(this.vg(),this);oP.prototype.SU.call(this)}; g.r.QX=function(){};g.r=NuG.prototype;g.r.bd=function(){return this.slot}; g.r.hn=function(){return this.layout}; g.r.init=function(){this.Zl.get().addListener(this);this.Zl.get().DK.push(this);var q=qc(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Z=qc(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");A7(this.layout.ud)&&vk(this.nB.get(),this.layout.layoutId,{Ky:Z,nS:q,listener:this})}; g.r.release=function(){this.Zl.get().removeListener(this);ykX(this.Zl.get(),this);A7(this.layout.ud)&&Lt(this.nB.get(),this.layout.layoutId)}; g.r.startRendering=function(q){this.callback.ql(this.slot,q)}; g.r.KP=function(q,Z){nTK(this.GP.get())&&!this.D&&(this.La.xk("abandon"),this.D=!0);this.callback.ZJ(this.slot,q,Z)}; g.r.eg=function(q){switch(q.id){case "part2viewed":this.La.xk("start");this.La.xk("impression");break;case "videoplaytime25":this.La.xk("first_quartile");break;case "videoplaytime50":this.La.xk("midpoint");break;case "videoplaytime75":this.La.xk("third_quartile");break;case "videoplaytime100":nTK(this.GP.get())?this.D||(this.La.xk("complete"),this.D=!0):this.La.xk("complete");Pk(this.La)&&ku(this.La,Infinity,!0);U0D(this.GP.get())&&JG(this.K,Infinity,!0);break;case "engagedview":Pk(this.La)||this.La.xk("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Yp("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.r.onVolumeChange=function(){}; g.r.zU=function(){}; g.r.Ul=function(){}; g.r.Ce=function(){}; g.r.onFullscreenToggled=function(){}; g.r.o4=function(){}; g.r.IV=function(){}; g.r.xU=function(q){U0D(this.GP.get())&&JG(this.K,q*1E3,!1);Pk(this.La)&&ku(this.La,q*1E3,!1)}; g.r.TU=function(){}; g.r.CY=function(){this.La.xk("active_view_measurable")}; g.r.Ff=function(){this.La.xk("active_view_viewable")}; g.r.qW=function(){this.La.xk("active_view_fully_viewable_audible_half_duration")}; g.r.Is=function(){this.La.xk("audio_measurable")}; g.r.LY=function(){this.La.xk("audio_audible")};g.V(hZ,oP);g.r=hZ.prototype;g.r.init=function(){oP.prototype.init.call(this);var q=qc(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Z={adsClientData:this.layout.Xe};this.D.push(new jI(q,this.layout.layoutId,qc(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Z,!0))}; g.r.Z_=function(){this.G||this.Zl.get().resumeVideo(1)}; g.r.startRendering=function(q){oP.prototype.startRendering.call(this,q);yf(this.Zl.get(),"ad-showing");this.callback.ql(this.slot,q);this.Z.ip=this}; g.r.KP=function(q,Z){oP.prototype.KP.call(this,q,Z);di(this.Zl.get(),"ad-showing");q9(this.Z,this)}; g.r.QX=function(q){switch(q){case "ad-info-icon-button":(this.G=this.Zl.get().H3(1))||this.Zl.get().pauseVideo();break;case "visit-advertiser":this.Zl.get().pauseVideo()}}; g.r.SU=function(){oP.prototype.SU.call(this)};g.V(Xw,Gf);g.V(ahB,oP);g.r=ahB.prototype;g.r.startRendering=function(q){K0(this.La,this.bd(),this.hn(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Z,F,B,f,D){return new Xw(Z,F,B,f,D)},this.D); oP.prototype.startRendering.call(this,q)}; g.r.ql=function(){}; g.r.ZJ=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.SU=function(){VC(this.vg(),this);oP.prototype.SU.call(this)}; g.r.QX=function(){};g.V(E0,Gf);g.V(hJ,oP);hJ.prototype.init=function(){oP.prototype.init.call(this);this.D.push(new E0(g.C(this.layout.renderingContent,SGg),this.layout.layoutId,{adsClientData:this.layout.Xe}))}; hJ.prototype.QX=function(){bb(this.G.get(),this.Z)&&HF(this.wU.get(),3)}; hJ.prototype.startRendering=function(q){oP.prototype.startRendering.call(this,q);this.callback.ql(this.slot,q)}; hJ.prototype.SU=function(){oP.prototype.SU.call(this)};g.V(V1,Gf);g.V(IM,oP);IM.prototype.init=function(){oP.prototype.init.call(this);var q=g.C(this.layout.renderingContent,Vm)||qc(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),Z=Ha(this.La);this.D.push(new V1(q,Z,this.layout.layoutId,{adsClientData:this.layout.Xe},!0,!0))}; IM.prototype.startRendering=function(q){oP.prototype.startRendering.call(this,q);this.callback.ql(this.slot,q)}; IM.prototype.QX=function(q,Z){if(Z===this.layout.layoutId)switch(q){case "skip-button":var F;(q=(F=qc(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&q.wz(this.bd(),this.layout)}}; IM.prototype.SU=function(){oP.prototype.SU.call(this)};dt.prototype.build=function(q,Z,F,B){if(ma(B,{m0:["metadata_type_ad_break_response_data"],FN:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Xm7(q,F,B,this.K,this.S,this.D);throw new JB("Unsupported layout with type: "+B.layoutType+" and client metadata: "+Yf(B.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.V(j1K,Gf);g.V(Uc,oP);g.r=Uc.prototype;g.r.QX=function(q,Z){Ox("ads-engagement-panel",q,this.j.get().rF,this.wU.get(),this.G,this.Z,this.bd(),this.hn(),Z)}; g.r.startRendering=function(q){K0(this.La,this.bd(),this.hn(),g.C(this.hn().renderingContent,Ml),this.callback,"metadata_type_ads_engagement_panel_renderer",function(Z,F,B,f,D){return new j1K(Z,F,B,f,D)},this.D); oP.prototype.startRendering.call(this,q)}; g.r.ql=function(q,Z){Z.layoutId===this.layout.layoutId?this.La.xk("impression"):this.Z===Z.layoutId&&(this.G===null?this.G=this.wU.get().Yb():Yp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.r.ZJ=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.SU=function(){VC(this.vg(),this);oP.prototype.SU.call(this)};g.V(hJ7,oP);g.r=hJ7.prototype;g.r.QX=function(q,Z){Ox("top-banner-image-text-icon-buttoned",q,this.j.get().rF,this.wU.get(),this.G,this.Z,this.bd(),this.hn(),Z)}; g.r.startRendering=function(q){K0(this.La,this.bd(),this.hn(),g.C(this.hn().renderingContent,ZD),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Z,F,B,f,D){return new Xw(Z,F,B,f,D)},this.D); oP.prototype.startRendering.call(this,q)}; g.r.ql=function(q,Z){this.Z===Z.layoutId&&(this.G===null?this.G=this.wU.get().Yb():Yp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.r.ZJ=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.SU=function(){VC(this.vg(),this);oP.prototype.SU.call(this)};wbb.prototype.build=function(q,Z,F,B){if(ma(B,ov7())||g.C(B.renderingContent,Ml)!==void 0)return new Uc(q,F,B,this.ub,this.wU,this.vg,this.nB,this.D);if(ma(B,QYk())||g.C(B.renderingContent,ei)!==void 0)return new SJ(q,F,B,this.ub,this.wU,this.vg,this.nB,this.D);if(ma(B,pCZ())||g.C(B.renderingContent,TT)!==void 0)return new mC(q,F,B,this.ub,this.wU,this.vg,this.nB,this.D);if(ma(B,lHD()))return new FU(q,F,B,this.ub,this.wU,this.vg,this.nB,this.D);if(ma(B,ob8()))return new Bj6(q,F,B,this.ub,this.wU, this.vg,this.nB,this.D);if(ma(B,QNG())||g.C(B.renderingContent,qN)!==void 0)return new U55(q,F,B,this.ub,this.wU,this.vg,this.nB,this.D);if(ma(B,WXD())||g.C(B.renderingContent,ZD)!==void 0)return new hJ7(q,F,B,this.ub,this.wU,this.vg,this.nB,this.D);if(ma(B,au6()))return new ahB(q,F,B,this.ub,this.wU,this.vg,this.nB,this.D);if(ma(B,Jwy())||g.C(B.renderingContent,Ft)!==void 0)return new CD(q,F,B,this.ub,this.wU,this.vg,this.nB,this.D);throw new JB("Unsupported layout with type: "+B.layoutType+" and client metadata: "+ Yf(B.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};iN8.prototype.build=function(q,Z,F,B){if(ma(B,{m0:["metadata_type_linked_player_bytes_layout_id"],FN:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new hJ(q,F,B,this.ub,this.wU,this.D);throw new JB("Unsupported layout with type: "+B.layoutType+" and client metadata: "+Yf(B.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.r=bCy.prototype;g.r.bd=function(){return this.slot}; g.r.hn=function(){return this.layout}; g.r.init=function(){}; g.r.release=function(){}; g.r.startRendering=function(q){q.layoutId!==this.layout.layoutId?this.callback.Dz(this.slot,q,new JB("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.ql(this.slot,q),this.La.xk("impression"),E7(this.q8,q,"normal"))}; g.r.KP=function(q,Z){q.layoutId!==this.layout.layoutId?this.callback.Dz(this.slot,q,new JB("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.ZJ(this.slot,q,Z)};g.r=K56.prototype;g.r.bd=function(){return this.slot}; g.r.hn=function(){return this.layout}; g.r.init=function(){}; g.r.release=function(){}; g.r.startRendering=function(q){q.layoutId!==this.layout.layoutId?this.callback.Dz(this.slot,q,new JB("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.ql(this.slot,q),this.La.xk("impression"),E7(this.q8,q,"normal"))}; g.r.KP=function(q,Z){q.layoutId!==this.layout.layoutId?this.callback.Dz(this.slot,q,new JB("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.ZJ(this.slot,q,Z)};yS.prototype.build=function(q,Z,F,B){if(!this.GP.get().B.C().U("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(ma(B,DQk()))return new bCy(q,F,B,this.wU,this.q8)}else if(ma(B,{m0:[],FN:["LAYOUT_TYPE_FORECASTING"]}))return new K56(q,F,B,this.wU,this.q8);throw new JB("Unsupported layout with type: "+B.layoutType+" and client metadata: "+Yf(B.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.V(a2B,Gf);g.V(jS,oP);g.r=jS.prototype;g.r.init=function(){oP.prototype.init.call(this);var q=g.C(this.layout.renderingContent,sT)||qc(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Z={adsClientData:this.layout.Xe};this.D.push(new a2B(q,qc(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,Z))}; g.r.Z_=function(){this.G||this.Zl.get().resumeVideo(2)}; g.r.startRendering=function(q){oP.prototype.startRendering.call(this,q);this.callback.ql(this.slot,q);this.Z.ip=this}; g.r.KP=function(q,Z){oP.prototype.KP.call(this,q,Z);q9(this.Z,this)}; g.r.QX=function(q,Z){if(!of(this.GP.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Z===this.layout.layoutId){if(bb(this.j.get(),this.X))switch(q){case "visit-advertiser-link":HF(this.wU.get(),3)}switch(q){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.G||this.Zl.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.G=this.Zl.get().H3(2))||this.Zl.get().pauseVideo();break; case "visit-advertiser-link":this.Zl.get().pauseVideo();RFk(this).rK();break;case "skip-button":if(q=RFk(this),this.layout.renderingContent&&!Kh(this.layout.clientMetadata,"metadata_type_dai")||!q||!q.pg){var F;(q=(F=qc(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&q.wz(this.bd(),this.layout)}else Yp("Requesting to skip by LegacyPlayerBytes when components enabled"),q.Ma(this.bd(),this.layout)}}}; g.r.SU=function(){oP.prototype.SU.call(this)};g.V(kl,oP);g.r=kl.prototype;g.r.init=function(){oP.prototype.init.call(this);var q=g.C(this.layout.renderingContent,iY)||qc(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Z={adsClientData:this.layout.Xe},F;(F=!!this.layout.renderingContent)||(F=ZK(this),F=!(F&&F.pg));this.D.push(new jI(q,this.layout.layoutId,qc(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Z,F))}; g.r.Z_=function(){this.G||this.Zl.get().resumeVideo(2)}; g.r.startRendering=function(q){oP.prototype.startRendering.call(this,q);this.callback.ql(this.slot,q);this.Z.ip=this}; g.r.KP=function(q,Z){oP.prototype.KP.call(this,q,Z);q9(this.Z,this)}; g.r.QX=function(q,Z){if(!this.GP||!of(this.GP.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Z===this.layout.layoutId){if(bb(this.j.get(),this.X))switch(q){case "visit-advertiser":HF(this.wU.get(),3)}switch(q){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.G||this.Zl.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.G=this.Zl.get().H3(2))||this.Zl.get().pauseVideo();break; case "visit-advertiser":this.Zl.get().pauseVideo();ZK(this).rK();break;case "skip-button":if(q=ZK(this),this.layout.renderingContent&&!Kh(this.layout.clientMetadata,"metadata_type_dai")||!q||!q.pg){var F;(q=(F=qc(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&q.wz(this.bd(),this.layout)}else Yp("Requesting to skip by LegacyPlayerBytes"),q.Ma(this.bd(),this.layout)}}}; g.r.SU=function(){oP.prototype.SU.call(this)};g.V(fWk,Gf);g.V(C4,oP);g.r=C4.prototype;g.r.startRendering=function(q){var Z=this;qj(this.K,q,function(){Z.D.push(new fWk(qc(Z.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),q.layoutId,q.Xe));Z.Ej();Z.callback.ql(Z.slot,q);g.p(v6(Z.Zl.get(),1),512)&&Z.callback.Dz(Z.bd(),Z.hn(),new JB("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.r.IV=function(){}; g.r.o4=function(q){if(q.state.isError()){var Z;this.callback.Dz(this.bd(),this.hn(),new JB("A player error happened during adNotify",{playerErrorCode:(Z=q.state.xb)==null?void 0:Z.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.r.onFullscreenToggled=function(){}; g.r.Ul=function(){}; g.r.Ce=function(){}; g.r.zU=function(){}; g.r.onVolumeChange=function(){}; g.r.eg=function(){}; g.r.TU=function(){}; g.r.QX=function(){};g.V(AFD,Gf);g.V(cf,oP);cf.prototype.init=function(){oP.prototype.init.call(this);var q=g.C(this.layout.renderingContent,RM),Z=Ha(this.La);this.D.push(new AFD(q,Z,this.layout.layoutId,{adsClientData:this.layout.Xe}))}; cf.prototype.startRendering=function(q){oP.prototype.startRendering.call(this,q);this.callback.ql(this.slot,q)}; cf.prototype.QX=function(q,Z){if(Z===this.layout.layoutId)switch(q){case "skip-button":var F;(q=(F=qc(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&q.wz(this.bd(),this.layout)}}; cf.prototype.SU=function(){oP.prototype.SU.call(this)};zWg.prototype.build=function(q,Z,F,B){if(q=JZ(q,F,B,this.ub,this.Zl,this.wU,this.K,this.D,this.GP))return q;throw new JB("Unsupported layout with type: "+B.layoutType+" and client metadata: "+Yf(B.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.r=A39.prototype;g.r.bd=function(){return this.slot}; g.r.hn=function(){return this.layout}; g.r.init=function(){this.Zl.get().addListener(this);this.Zl.get().DK.push(this);if(this.layout.renderingContent){var q=this.XE.get();q=IB(q,1).oN/1E3}else q=qc(this.layout.clientMetadata,"metadata_type_video_length_seconds");var Z=g.C(this.layout.renderingContent,VX),F=Z?Fk(Z.pings):qc(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Z=Z?qc6(Z.pings):qc(this.layout.clientMetadata,"metadata_type_active_view_identifier");A7(this.layout.ud)&&vk(this.nB.get(),this.layout.layoutId, {Ky:F,nS:q,listener:this,Wn:Z})}; g.r.release=function(){this.Zl.get().removeListener(this);ykX(this.Zl.get(),this);A7(this.layout.ud)&&Lt(this.nB.get(),this.layout.layoutId)}; g.r.startRendering=function(q){this.callback.ql(this.slot,q)}; g.r.KP=function(q,Z){WKK(this,"abandon");this.callback.ZJ(this.slot,q,Z)}; g.r.eg=function(q){switch(q.id){case "part2viewed":this.La.xk("start");this.La.xk("impression");break;case "videoplaytime25":this.La.xk("first_quartile");break;case "videoplaytime50":this.La.xk("midpoint");break;case "videoplaytime75":this.La.xk("third_quartile");break;case "videoplaytime100":WKK(this,"complete");Pk(this.La)&&ku(this.La,Infinity,!0);break;case "engagedview":Pk(this.La)||this.La.xk("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Yp("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.r.onVolumeChange=function(){}; g.r.zU=function(){}; g.r.Ul=function(){}; g.r.Ce=function(){}; g.r.onFullscreenToggled=function(){}; g.r.o4=function(q){this.D||(g.YM(q,4)&&!g.YM(q,2)?wK(this.La,"pause"):dL(q,4)<0&&!(dL(q,2)<0)&&wK(this.La,"resume"))}; g.r.IV=function(){}; g.r.xU=function(q){Pk(this.La)&&ku(this.La,q*1E3,!1)}; g.r.TU=function(){WKK(this,"swipe")}; g.r.CY=function(){this.La.xk("active_view_measurable")}; g.r.Ff=function(){this.La.xk("active_view_viewable")}; g.r.qW=function(){this.La.xk("active_view_fully_viewable_audible_half_duration")}; g.r.Is=function(){this.La.xk("audio_measurable")}; g.r.LY=function(){this.La.xk("audio_audible")};aUk.prototype.build=function(q,Z,F,B){if(F.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.C(B.renderingContent,VX)!==void 0)return new A39(q,F,B,this.Zl,this.wU,this.GP,this.nB,this.XE);Z=["metadata_type_ad_placement_config"];for(var f=g.E(YP()),D=f.next();!D.done;D=f.next())Z.push(D.value);if(ma(B,{m0:Z,FN:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return F.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new A39(q,F,B,this.Zl,this.wU,this.GP,this.nB,this.XE):new NuG(q,F,B,this.Zl,this.wU, this.tZ,this.GP,this.nB);throw new JB("Unsupported layout with type: "+B.layoutType+" and client metadata: "+Yf(B.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var vK={contentCpn:"",Tw:new Map};G2g.prototype.S$=function(q,Z){var F={};Z=Object.assign({},Z,(F.cc=this.uw.rA(),F));this.uw.B.iL(q,Z)};var U25,jg; U25={yWF:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",iep:"AUTHENTICATION_MALFORMED",u$U:"AUTHENTICATION_MISSING",zA$:"BAD_REQUEST",pE_:"CAST_SESSION_DEVICE_MISMATCHED",RAr:"CAST_SESSION_VIDEO_MISMATCHED",Zec:"CAST_TOKEN_EXPIRED",rqG:"CAST_TOKEN_FAILED",BFa:"CAST_TOKEN_MALFORMED",wEF:"CGI_PARAMS_MALFORMED",UPG:"CGI_PARAMS_MISSING",Exn:"DEVICE_FALLBACK",rVc:"GENERIC_WITH_LINK_AND_CPN",Bpa:"ERROR_HDCP",wXF:"LICENSE",dBE:"VIDEO_UNAVAILABLE",feP:"FORMAT_UNAVAILABLE",htn:"GEO_FAILURE", Mrp:"HTML5_AUDIO_RENDERER_ERROR",Pu_:"GENERIC_WITHOUT_LINK",Ddr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",iRG:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",urs:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",KDl:"HTML5_SPS_UMP_STATUS_REJECTED",ksp:"INVALID_DRM_MESSAGE",Kpn:"PURCHASE_NOT_FOUND",SsG:"PURCHASE_REFUNDED",OkU:"RENTAL_EXPIRED",x4s:"RETRYABLE_ERROR",CcE:"SERVER_ERROR",ixU:"SIGNATURE_EXPIRED",c3E:"STOPPED_BY_ANOTHER_PLAYBACK",QGG:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",mbF:"STREAMING_NOT_ALLOWED", A3s:"STREAM_LICENSE_NOT_FOUND",wKs:"TOO_MANY_REQUESTS",Ubr:"TOO_MANY_REQUESTS_WITH_LINK",dbr:"TOO_MANY_STREAMS_PER_ENTITLEMENT",jGG:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",EcF:"VIDEO_FORBIDDEN",sGn:"VIDEO_NOT_FOUND",Aql:"BROWSER_OR_EXTENSION_ERROR"};jg={}; g.Ly=(jg.ALREADY_PINNED_ON_A_DEVICE="Este video ya se descarg\u00f3 en la cantidad m\u00e1xima de dispositivos permitidos por el propietario de los derechos de autor. Antes de que puedas reproducir el video en este dispositivo, debes desvincularlo de cualquier otro.",jg.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",jg.GENERIC_WITH_LINK_AND_CPN="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde (ID de reproducci\u00f3n: $CPN). $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", jg.LICENSE="Se produjo un error de licencia con este video.",jg.VIDEO_UNAVAILABLE="Video no disponible",jg.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",jg.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",jg.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",jg.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",jg.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",jg.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="En este momento, tu navegador no reconoce ninguno de los formatos de video disponibles. $BEGIN_LINKHaz clic aqu\u00ed para ver las preguntas frecuentes sobre el video HTML5.$END_LINK",jg.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",jg.HTML5_SPS_UMP_STATUS_REJECTED="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", jg.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",jg.PURCHASE_NOT_FOUND="Este es un video pagado.",jg.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",jg.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",jg.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",jg.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", jg.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",jg.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",jg.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",jg.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",jg.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",jg.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",jg.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",jg.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",jg.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", jg.TOO_MANY_REQUESTS="Accede para mirar el video.",jg.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",jg.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",jg.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",jg.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", jg.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",jg.VIDEO_NOT_FOUND="No se puede encontrar este video.",jg.BROWSER_OR_EXTENSION_ERROR="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",jg);var uTB;var P0m=g.bm(),rXE=P0m.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!rXE||rXE.length<2)uTB=void 0;else{var wx5=P0m.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);uTB=wx5&&wx5.length===6?Number(wx5[5].replace("_",".")):0}var IH=uTB,j1=IH>=0;g.V(g.pO,t8);g.pO.prototype.N=function(q,Z,F,B,f){return t8.prototype.N.call(this,q,Z,F,B,f)};var I8={},Oty=(I8.FAIRPLAY="fairplay",I8.PLAYREADY="playready",I8.WIDEVINE="widevine",I8.CLEARKEY=null,I8.FLASHACCESS=null,I8.UNKNOWN=null,I8.WIDEVINE_CLASSIC=null,I8);tE.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var CQ={},lj=(CQ.WIDTH={name:"width",video:!0,valid:640,ws:99999},CQ.HEIGHT={name:"height",video:!0,valid:360,ws:99999},CQ.FRAMERATE={name:"framerate",video:!0,valid:30,ws:9999},CQ.BITRATE={name:"bitrate",video:!0,valid:3E5,ws:2E9},CQ.EOTF={name:"eotf",video:!0,valid:"bt709",ws:"catavision"},CQ.CHANNELS={name:"channels",video:!1,valid:2,ws:99},CQ.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",ws:"invalidformat"},CQ.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", ws:"nope"},CQ.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",ws:"av99.0.05M.08"},CQ.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",ws:"invalid"},CQ.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",ws:"false"},CQ);var Wme=["h","H"],yXu=["9","("],Lmu=["9h","(h"],Hw0=["8","*"],OwE=["a","A"],QQB=["o","O"],x2j=["m","M"],AXm=["mac3","MAC3"],vPm=["meac3","MEAC3"],h5={},LSg=(h5.h=Wme,h5.H=Wme,h5["9"]=yXu,h5["("]=yXu,h5["9h"]=Lmu,h5["(h"]=Lmu,h5["8"]=Hw0,h5["*"]=Hw0,h5.a=OwE,h5.A=OwE,h5.o=QQB,h5.O=QQB,h5.m=x2j,h5.M=x2j,h5.mac3=AXm,h5.MAC3=AXm,h5.meac3=vPm,h5.MEAC3=vPm,h5),Xxm=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),fZZ=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var T={},Rs=(T["0"]="f",T["160"]="h",T["133"]="h",T["134"]="h",T["135"]="h",T["136"]="h",T["137"]="h",T["264"]="h",T["266"]="h",T["138"]="h",T["298"]="h",T["299"]="h",T["304"]="h",T["305"]="h",T["214"]="h",T["216"]="h",T["374"]="h",T["375"]="h",T["140"]="a",T["141"]="a",T["327"]="sa",T["258"]="m",T["380"]="mac3",T["328"]="meac3",T["161"]="H",T["142"]="H",T["143"]="H",T["144"]="H",T["222"]="H",T["223"]="H",T["145"]="H",T["224"]="H",T["225"]="H",T["146"]="H",T["226"]="H",T["227"]="H",T["147"]="H",T["384"]= "H",T["376"]="H",T["385"]="H",T["377"]="H",T["149"]="A",T["261"]="M",T["381"]="MAC3",T["329"]="MEAC3",T["598"]="9",T["278"]="9",T["242"]="9",T["243"]="9",T["244"]="9",T["775"]="9",T["776"]="9",T["777"]="9",T["778"]="9",T["779"]="9",T["780"]="9",T["781"]="9",T["782"]="9",T["783"]="9",T["247"]="9",T["248"]="9",T["353"]="9",T["355"]="9",T["356"]="9",T["271"]="9",T["577"]="9",T["313"]="9",T["579"]="9",T["272"]="9",T["302"]="9",T["303"]="9",T["407"]="9",T["408"]="9",T["308"]="9",T["315"]="9",T["330"]= "9h",T["331"]="9h",T["332"]="9h",T["333"]="9h",T["334"]="9h",T["335"]="9h",T["336"]="9h",T["337"]="9h",T["338"]="so",T["600"]="o",T["250"]="o",T["251"]="o",T["774"]="o",T["194"]="*",T["195"]="*",T["220"]="*",T["221"]="*",T["196"]="*",T["197"]="*",T["279"]="(",T["280"]="(",T["317"]="(",T["318"]="(",T["273"]="(",T["274"]="(",T["357"]="(",T["358"]="(",T["275"]="(",T["359"]="(",T["360"]="(",T["276"]="(",T["583"]="(",T["584"]="(",T["314"]="(",T["585"]="(",T["561"]="(",T["277"]="(",T["361"]="(h",T["362"]= "(h",T["363"]="(h",T["364"]="(h",T["365"]="(h",T["366"]="(h",T["591"]="(h",T["592"]="(h",T["367"]="(h",T["586"]="(h",T["587"]="(h",T["368"]="(h",T["588"]="(h",T["562"]="(h",T["409"]="(",T["410"]="(",T["411"]="(",T["412"]="(",T["557"]="(",T["558"]="(",T["394"]="1",T["395"]="1",T["396"]="1",T["397"]="1",T["398"]="1",T["399"]="1",T["720"]="1",T["721"]="1",T["400"]="1",T["401"]="1",T["571"]="1",T["402"]="1",T["694"]="1h",T["695"]="1h",T["696"]="1h",T["697"]="1h",T["698"]="1h",T["699"]="1h",T["700"]="1h", T["701"]="1h",T["702"]="1h",T["703"]="1h",T["386"]="3",T["387"]="w",T["406"]="6",T["787"]="1",T["788"]="1",T["548"]="1e",T["549"]="1e",T["550"]="1e",T["551"]="1e",T["809"]="1e",T["810"]="1e",T["552"]="1e",T["811"]="1e",T["812"]="1e",T["553"]="1e",T["813"]="1e",T["814"]="1e",T["554"]="1e",T["815"]="1e",T["816"]="1e",T["555"]="1e",T["817"]="1e",T["818"]="1e",T["572"]="1e",T["556"]="1e",T["645"]="(",T["646"]="(",T["647"]="(",T["648"]="(",T["649"]="(",T["650"]="(",T["651"]="(",T["652"]="(",T["653"]="(", T["654"]="(",T["655"]="(",T["656"]="(",T["657"]="(",T["658"]="(",T["659"]="(",T["660"]="(",T["661"]="(",T["662"]="(",T["663"]="(",T["664"]="(",T["665"]="(",T["666"]="(",T["667"]="(",T["668"]="(",T["669"]="(",T["670"]="(",T["671"]="(",T["672"]="(",T["673"]="(",T["674"]="(h",T["675"]="(h",T["676"]="(h",T["677"]="(h",T["678"]="(h",T["679"]="(h",T["680"]="(h",T["681"]="(h",T["682"]="(h",T["683"]="(h",T["684"]="(h",T["685"]="(h",T["686"]="(h",T["687"]="(h",T["688"]="A",T["689"]="A",T["690"]="A",T["691"]= "MEAC3",T["773"]="i",T["806"]="I",T["805"]="I",T["829"]="9",T["830"]="9",T["831"]="9",T["832"]="9",T["833"]="9",T["834"]="9",T["835"]="9",T["836"]="9",T["892"]="9",T["893"]="9",T["837"]="9",T["838"]="9",T["839"]="9",T["840"]="9",T["841"]="(",T["842"]="(",T["843"]="(",T["844"]="(",T["845"]="(",T["846"]="(",T["847"]="(",T["848"]="(",T["894"]="(",T["895"]="(",T["849"]="(",T["850"]="(",T["851"]="(",T["852"]="(",T["865"]="9",T["866"]="9",T["867"]="9",T["868"]="9",T["869"]="9",T["870"]="9",T["871"]="9", T["872"]="9",T["896"]="9",T["897"]="9",T["873"]="9",T["874"]="9",T["875"]="9",T["876"]="9",T["877"]="(",T["878"]="(",T["879"]="(",T["880"]="(",T["881"]="(",T["882"]="(",T["883"]="(",T["884"]="(",T["898"]="(",T["899"]="(",T["885"]="(",T["886"]="(",T["887"]="(",T["888"]="(",T);var R8={},W8X=(R8.STEREO_LAYOUT_UNKNOWN=0,R8.STEREO_LAYOUT_LEFT_RIGHT=1,R8.STEREO_LAYOUT_TOP_BOTTOM=2,R8);var UwZ={jb$:0,m4G:124,Qbc:144,kEn:220,YsF:240,RGU:340,p3F:360,ZkP:480,B3L:588,rSE:608,w3p:720,U4L:740,zGG:1080,nHL:1100,cS$:1440,ASL:2160,d4E:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var ci,D8B,J5,Ht6;ci={};g.MN=(ci.auto=0,ci.tiny=144,ci.light=144,ci.small=240,ci.medium=360,ci.large=480,ci.hd720=720,ci.hd1080=1080,ci.hd1440=1440,ci.hd2160=2160,ci.hd2880=2880,ci.highres=4320,ci);D8B={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};J5={}; Ht6=(J5.QUALITY_ORDINAL_UNKNOWN=0,J5.QUALITY_ORDINAL_144P_SAVER=124,J5.QUALITY_ORDINAL_144P=144,J5.QUALITY_ORDINAL_240P_SAVER=220,J5.QUALITY_ORDINAL_240P=240,J5.QUALITY_ORDINAL_360P_SAVER=340,J5.QUALITY_ORDINAL_360P=360,J5.QUALITY_ORDINAL_480P=480,J5.QUALITY_ORDINAL_608P_SAVER=588,J5.QUALITY_ORDINAL_608P=608,J5.QUALITY_ORDINAL_720P=720,J5.QUALITY_ORDINAL_720P_ENHANCED=740,J5.QUALITY_ORDINAL_1080P=1080,J5.QUALITY_ORDINAL_1080P_ENHANCED=1100,J5.QUALITY_ORDINAL_1440P=1440,J5.QUALITY_ORDINAL_2160P=2160, J5.QUALITY_ORDINAL_HIGHRES=9999,J5);var lq="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");C1.prototype.isHdr=function(){return this.D==="smpte2084"||this.D==="arib-std-b67"};p1.prototype.cL=function(){return this.containerType===2}; p1.prototype.isEncrypted=function(){return!!this.Ni}; p1.prototype.B1=function(){return!!this.audio}; p1.prototype.jB=function(){return!!this.video}; var AI=!1;g.V(qs,g.In);g.r=qs.prototype;g.r.appendBuffer=function(q,Z,F){if(this.cZ.WM()!==this.appendWindowStart+this.start||this.cZ.RB()!==this.appendWindowEnd+this.start||this.cZ.oh()!==this.timestampOffset+this.start)this.cZ.supports(1),this.cZ.Bw(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.cZ.Da(this.timestampOffset+this.start);this.cZ.appendBuffer(q,Z,F)}; g.r.abort=function(){this.cZ.abort()}; g.r.remove=function(q,Z){this.cZ.remove(q+this.start,Z+this.start)}; g.r.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.r.clear=function(){this.cZ.clear()}; g.r.Bw=function(q,Z){this.appendWindowStart=q;this.appendWindowEnd=Z}; g.r.iO=function(){return this.timestampOffset+this.start}; g.r.WM=function(){return this.appendWindowStart}; g.r.RB=function(){return this.appendWindowEnd}; g.r.Da=function(q){this.timestampOffset=q}; g.r.oh=function(){return this.timestampOffset}; g.r.nw=function(q){q=this.cZ.nw(q===void 0?!1:q);return PF(q,this.start,this.end)}; g.r.Xr=function(){return this.cZ.Xr()}; g.r.IB=function(){return this.cZ.IB()}; g.r.U$=function(){return this.cZ.U$()}; g.r.xj=function(){return this.cZ.xj()}; g.r.dG=function(){this.cZ.dG()}; g.r.Yf=function(q){return this.cZ.Yf(q)}; g.r.Vt=function(){return this.cZ.Vt()}; g.r.t_=function(){return this.cZ.t_()}; g.r.B6=function(q,Z,F){this.cZ.B6(q,Z,F)}; g.r.wc=function(q,Z,F){this.cZ.wc(q,Z,F)}; g.r.zt=function(q,Z){return this.cZ.zt(q,Z)}; g.r.supports=function(q){return this.cZ.supports(q)}; g.r.XF=function(){return this.cZ.XF()}; g.r.isView=function(){return!0}; g.r.j_=function(){return this.cZ.j_()?this.isActive:!1}; g.r.isLocked=function(){return this.mj&&!this.isActive}; g.r.Ey=function(q){q=this.cZ.Ey(q);q.vw=this.start+"-"+this.end;return q}; g.r.W8=function(){return this.cZ.W8()}; g.r.hT=function(){return this.cZ.hT()}; g.r.EW=function(){return this.cZ.EW()}; g.r.SU=function(){this.cZ.wI(this.eP);g.In.prototype.SU.call(this)};var pV=!1;g.V(Hk,g.In);g.r=Hk.prototype;g.r.appendBuffer=function(q,Z,F){this.IL=!1;F&&(this.tv=F);if(q.length){var B;((B=this.g2)==null?0:B.appendBuffer)?this.g2.appendBuffer(q):this.g2?this.g2.append(q):this.Xy&&this.Xy.webkitSourceAppend(this.id,q)}Z&&(Z.isEncrypted()&&(this.iX=this.tv),Z.type===3&&(this.MA=Z),this.j0.push(Z.wq()),this.j0.length>4&&this.j0.shift());this.lE&&(this.lE.length>=2||q.length>1048576?delete this.lE:this.lE.push(q))}; g.r.abort=function(){try{this.g2?this.g2.abort():this.Xy&&this.Xy.webkitSourceAbort(this.id)}catch(Z){if(lC6){var q=new g.M2("Error while abort the source buffer: "+Z.name+", "+Z.message);g.mM(q)}}this.tv=this.MA=null}; g.r.remove=function(q,Z,F){this.IL=!1;var B;if((B=this.g2)==null?0:B.remove)F&&F({b:HA(this.nw()),s:q,e:Z}),this.g2.remove(q,Z)}; g.r.removeAll=function(){this.remove(this.WM(),this.RB())}; g.r.clear=function(){this.U$()||(this.abort(),this.removeAll(),this.iX=this.tv=this.MA=null,this.appendWindowStart=this.timestampOffset=0,this.D1=WR([],[]),this.IL=!1,this.lE=OS?[]:void 0,this.lZ=!0)}; g.r.WM=function(){if(pV&&this.jB)return this.appendWindowStart;var q;return((q=this.g2)==null?void 0:q.appendWindowStart)||0}; g.r.RB=function(){var q;return((q=this.g2)==null?void 0:q.appendWindowEnd)||0}; g.r.Bw=function(q,Z){this.g2&&(pV&&this.jB?(this.appendWindowStart=q,this.g2.appendWindowEnd=Z):q>this.WM()?(this.g2.appendWindowEnd=Z,this.g2.appendWindowStart=q):(this.g2.appendWindowStart=q,this.g2.appendWindowEnd=Z))}; g.r.iO=function(){return this.timestampOffset}; g.r.Da=function(q){pV?this.timestampOffset=q:this.supports(1)&&(this.g2.timestampOffset=q)}; g.r.oh=function(){return pV?this.timestampOffset:this.supports(1)?this.g2.timestampOffset:0}; g.r.nw=function(q){if(q===void 0?0:q)return this.IL||this.Xr()||(this.D1=this.nw(!1),this.IL=!0),this.D1;try{return this.g2?this.g2.buffered:this.Xy?this.Xy.webkitSourceBuffered(this.id):WR([0],[Infinity])}catch(Z){return WR([],[])}}; g.r.Xr=function(){var q;return((q=this.g2)==null?void 0:q.updating)||!1}; g.r.U$=function(){return this.lZ}; g.r.xj=function(){return!this.lZ&&this.Xr()}; g.r.dG=function(){this.lZ=!1}; g.r.Yf=function(q){var Z=q==null?void 0:q.FE;q=q==null?void 0:q.containerType;return!Z&&!q||Z===this.FE&&q===this.containerType}; g.r.Vt=function(){return this.tv}; g.r.t_=function(){return this.iX}; g.r.zt=function(q,Z){return this.containerType!==q||this.FE!==Z}; g.r.B6=function(q,Z,F){if(this.containerType!==q||F&&this.zt(q,F))this.supports(4),SB()&&this.g2.changeType(Z),F&&(this.FE=F);this.containerType=q}; g.r.wc=function(q,Z,F){this.containerType&&this.zt(q,Z)&&SB()&&this.g2.changeType(F);this.containerType=q;this.FE=Z}; g.r.XF=function(){return this.MA}; g.r.isView=function(){return!1}; g.r.supports=function(q){switch(q){case 1:var Z;return((Z=this.g2)==null?void 0:Z.timestampOffset)!==void 0;case 0:var F;return!((F=this.g2)==null||!F.appendBuffer);case 2:var B;return!((B=this.g2)==null||!B.remove);case 3:var f,D;return!!(((f=this.g2)==null?0:f.addEventListener)&&((D=this.g2)==null?0:D.removeEventListener));case 4:return!(!this.g2||!this.g2.changeType);default:return!1}}; g.r.j_=function(){return!this.Xr()}; g.r.isLocked=function(){return!1}; g.r.Ey=function(q){q.to=this.oh();q.up=this.Xr();var Z,F=((Z=this.g2)==null?void 0:Z.appendWindowStart)||0,B;Z=((B=this.g2)==null?void 0:B.appendWindowEnd)||Infinity;q.aw=F.toFixed(3)+"-"+Z.toFixed(3);return q}; g.r.IB=function(){var q;return((q=this.g2)==null?void 0:q.writeHead)||0}; g.r.W8=function(){for(var q={},Z=0;Z=7&&(!Z||((B=this.Mp)==null?0:B.U("mweb_ios_allow_playback_workaround_when_ready")))&&QXb(this,function(){g.OT(function(){Pzb(q,q.getCurrentTime(),0)},500)})}return Z}; g.r.seekTo=function(q){this.cY()>0&&(j1&&IH<4&&(q=Math.max(.1,q)),this.setCurrentTime(q))}; g.r.e5=function(){if(!this.K&&this.gU)if(this.gU.Z)try{var q;JR(this,{l:"mer",sr:(q=this.Mp)==null?void 0:q.fE(),rs:WO(this.gU)});this.gU.clear();this.K=this.gU;this.gU=void 0}catch(Z){q=new g.M2("Error while clearing Media Source in MediaElement: "+Z.name+", "+Z.message),g.mM(q),this.stopVideo()}else this.stopVideo()}; g.r.stopVideo=function(){var q=this;if(!this.K){var Z;(Z=this.gU)==null||qi8(Z);if(y7){if(!this.S){var F=new l8;F.then(void 0,function(){}); this.S=F;gEK&&this.pause();g.OT(function(){q.S===F&&(Vcg(q),F.resolve())},200)}}else Vcg(this)}}; g.r.WX=function(){var q=this.eW();return Vl(q)&&this.getDuration()?Qr(q,this.getCurrentTime()):0}; g.r.aJ=function(){var q=this.getDuration();return q===Infinity?1:q?this.WX()/q:0}; g.r.Ey=function(){try{var q=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:HA(this.qx(),",",3),vbu:HA(this.eW()),vbs:HA(this.Gm()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.cY(),vns:""+this.Ou(),vec:""+this.Hf(),vemsg:this.nm(),vvol:""+this.getVolume(),vdom:""+ +this.VD(),vsrc:""+ +!!this.pD(),vw:""+q.width,vh:""+q.height}}catch(Z){return{}}}; g.r.hasError=function(){return this.Hf()>0}; g.r.addEventListener=function(q,Z){this.G.listen(q,Z,!1,this);this.Sy(q)}; g.r.removeEventListener=function(q,Z){this.G.Op(q,Z,!1,this)}; g.r.dispatchEvent=function(q){if(this.S&&q.type==="pause")return!1;if(Lq){var Z,F=((Z=q.D)==null?void 0:Z.timeStamp)||Infinity;Z=F>performance.now()?F-Date.now()+performance.now():F;F=this.K||this.gU;if((F==null?0:F.U$())||Z<=((F==null?void 0:F.j)||0)){var B;JR(this,{l:"mede",sr:(B=this.Mp)==null?void 0:B.fE(),et:q.type});return!1}if(this.iN)return JR(this,{l:"medes",et:q.type}),F&&q.type==="seeking"&&(F.j=performance.now(),this.iN=!1),!1}return this.G.dispatchEvent(q)}; g.r.iy=function(){this.X=!1}; g.r.Ek=function(){this.X=!0;this.Hb(!0)}; g.r.s6=function(){this.X&&!this.f3()&&this.Hb(!0)}; g.r.equals=function(q){return!!q&&q.QO()===this.QO()}; g.r.SU=function(){this.V&&this.removeEventListener("volumechange",this.s6);y7&&Vcg(this);g.J.prototype.SU.call(this)}; var y7=!1,gEK=!1,Lq=!1,Sh6=!1;g.r=g.h1.prototype;g.r.isPaused=function(){return g.p(this,4)}; g.r.isPlaying=function(){return g.p(this,8)&&!g.p(this,512)&&!g.p(this,64)&&!g.p(this,2)}; g.r.isOrWillBePlaying=function(){return g.p(this,8)&&!g.p(this,2)&&!g.p(this,1024)}; g.r.isCued=function(){return g.p(this,64)&&!g.p(this,8)&&!g.p(this,4)}; g.r.isBuffering=function(){return g.p(this,1)&&!g.p(this,2)}; g.r.isError=function(){return g.p(this,128)}; g.r.isSuspended=function(){return g.p(this,512)}; g.r.us=function(){return g.p(this,64)&&g.p(this,4)}; g.r.toString=function(){return"PSt."+this.state.toString(16)}; var YO={},t5=(YO.BUFFERING="buffering-mode",YO.CUED="cued-mode",YO.ENDED="ended-mode",YO.PAUSED="paused-mode",YO.PLAYING="playing-mode",YO.SEEKING="seeking-mode",YO.UNSTARTED="unstarted-mode",YO);g.V(M_,g.J);g.r=M_.prototype;g.r.W3=function(){return this.S}; g.r.bd=function(){return this.slot}; g.r.hn=function(){return this.layout}; g.r.init=function(){var q=qc(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Z=qc(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");A7(this.layout.ud)&&vk(this.nB.get(),this.layout.layoutId,{Ky:Z,nS:q,listener:this,Vw:this.wj()});LN(this.wU.get(),this);q=this.Fy;Z=this.layout.layoutId;var F={Vw:this.wj()};q.D.set(Z,F);this.uN()}; g.r.Wy=function(){}; g.r.release=function(){A7(this.layout.ud)&&Lt(this.nB.get(),this.layout.layoutId);u_(this.wU.get(),this);this.Fy.D.delete(this.layout.layoutId);this.k5()}; g.r.AM=function(){}; g.r.jF=function(){}; g.r.startRendering=function(q){Z2K(q1(this));if($PX(this,q)){var Z=this.D;iy(Z.params.Di.GP.get(),!0)&&gD8(Z,"p_sr",{});Afb(this);this.Na(q);this.wj()||this.Yg(!1)}}; g.r.ql=function(q,Z){if(Z.layoutId===this.layout.layoutId){this.Fe="rendering";this.K=this.Zl.get().isMuted()||this.Zl.get().getVolume()===0;this.xk("impression");this.xk("start");if(this.Zl.get().isMuted()){Wr(this,"mute");var F;q=((F=wj(this))==null?void 0:F.muteCommands)||[];hF(this.tZ.get(),q,this.layout.layoutId)}if(this.Zl.get().isFullscreen()){this.PH("fullscreen");var B;F=((B=wj(this))==null?void 0:B.fullscreenCommands)||[];hF(this.tZ.get(),F,this.layout.layoutId)}this.wj()||(B=this.rq.get(), B.S&&!B.K&&(B.Z=!1,B.K=!0,B.actionType!=="ad_to_video"&&(iE("pbs",void 0,B.actionType),g.cz("finalize_all_timelines")&&JMB(B.actionType))));this.b6(1);this.JA(Z);var f;Z=((f=wj(this))==null?void 0:f.impressionCommands)||[];hF(this.tZ.get(),Z,this.layout.layoutId)}}; g.r.n0=function(q,Z,F){this.X={yv:3,Gj:q==="load_timeout"?402:400,errorMessage:Z.message};this.xk("error");var B;q=((B=wj(this))==null?void 0:B.errorCommands)||[];hF(this.tZ.get(),q,this.layout.layoutId);this.wj()||this.Gn.Dz(this.slot,this.layout,Z,F)}; g.r.g8=function(){if(this.Fe==="rendering"){Wr(this,"pause");var q,Z=((q=wj(this))==null?void 0:q.pauseCommands)||[];hF(this.tZ.get(),Z,this.layout.layoutId);this.b6(2)}}; g.r.ol=function(){if(this.Fe==="rendering"){Wr(this,"resume");var q,Z=((q=wj(this))==null?void 0:q.resumeCommands)||[];hF(this.tZ.get(),Z,this.layout.layoutId)}}; g.r.oK=function(q,Z){Z=Z===void 0?!1:Z;if(this.Fe==="rendering"){var F={currentTimeSec:q,flush:Z};ri(this.D,"p_ip",F);ku(this.La,q*1E3,Z);this.K||ku(this.La,q*1E3,Z===void 0?!1:Z);var B=this.iA();if(B){B/=1E3;if(q>=B*.25||Z)this.xk("first_quartile"),ri(this.D,"p_fq",F);if(q>=B*.5||Z)this.xk("midpoint"),ri(this.D,"p_sq",F);if(q>=B*.75||Z)this.xk("third_quartile"),ri(this.D,"p_tq",F);this.GP.get().B.C().experiments.qp("enable_progress_command_flush_on_kabuki")?JG(this.G,q*1E3,Z):JG(this.G,q*1E3,c7X(this)? Z:!1)}}}; g.r.rA=function(){var q;return((q=IB(this.XE.get(),1))==null?void 0:q.clientPlaybackNonce)||""}; g.r.Vh=function(q,Z){q.layoutId!==this.layout.layoutId?this.Gn.Dz(this.slot,q,new JB("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"):Z()}; g.r.ZJ=function(q,Z,F){if(Z.layoutId===this.layout.layoutId)switch(this.Fe="not_rendering",this.layoutExitReason=void 0,this.wj()||(q=F!=="normal"||this.position+1===this.j)&&this.Yg(q),this.yg(F),this.b6(0),F){case "abandoned":if(S7(this.La,"impression")){var B,f=((B=wj(this))==null?void 0:B.abandonCommands)||[];hF(this.tZ.get(),f,this.layout.layoutId)}break;case "normal":B=((f=wj(this))==null?void 0:f.completeCommands)||[];hF(this.tZ.get(),B,this.layout.layoutId);break;case "skipped":var D;B=((D= wj(this))==null?void 0:D.skipCommands)||[];hF(this.tZ.get(),B,this.layout.layoutId)}}; g.r.uA=function(){return this.layout.layoutId}; g.r.dZ=function(){return this.X}; g.r.CY=function(){if(this.Fe==="rendering"){this.La.xk("active_view_measurable");var q,Z=((q=wj(this))==null?void 0:q.activeViewMeasurableCommands)||[];hF(this.tZ.get(),Z,this.layout.layoutId)}}; g.r.qW=function(){if(this.Fe==="rendering"){this.La.xk("active_view_fully_viewable_audible_half_duration");var q,Z=((q=wj(this))==null?void 0:q.activeViewFullyViewableAudibleHalfDurationCommands)||[];hF(this.tZ.get(),Z,this.layout.layoutId)}}; g.r.Ff=function(){if(this.Fe==="rendering"){this.La.xk("active_view_viewable");var q,Z=((q=wj(this))==null?void 0:q.activeViewViewableCommands)||[];hF(this.tZ.get(),Z,this.layout.layoutId)}}; g.r.LY=function(){if(this.Fe==="rendering"){this.La.xk("audio_audible");var q,Z=((q=wj(this))==null?void 0:q.activeViewAudioAudibleCommands)||[];hF(this.tZ.get(),Z,this.layout.layoutId)}}; g.r.Is=function(){if(this.Fe==="rendering"){this.La.xk("audio_measurable");var q,Z=((q=wj(this))==null?void 0:q.activeViewAudioMeasurableCommands)||[];hF(this.tZ.get(),Z,this.layout.layoutId)}}; g.r.Yg=function(q){this.rq.get().Yg(qc(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,q,this.position,this.j,!1)}; g.r.onFullscreenToggled=function(q){if(this.Fe==="rendering")if(q){this.PH("fullscreen");var Z,F=((Z=wj(this))==null?void 0:Z.fullscreenCommands)||[];hF(this.tZ.get(),F,this.layout.layoutId)}else this.PH("end_fullscreen"),Z=((F=wj(this))==null?void 0:F.endFullscreenCommands)||[],hF(this.tZ.get(),Z,this.layout.layoutId)}; g.r.onVolumeChange=function(){if(this.Fe==="rendering")if(this.Zl.get().isMuted()){Wr(this,"mute");var q,Z=((q=wj(this))==null?void 0:q.muteCommands)||[];hF(this.tZ.get(),Z,this.layout.layoutId)}else Wr(this,"unmute"),q=((Z=wj(this))==null?void 0:Z.unmuteCommands)||[],hF(this.tZ.get(),q,this.layout.layoutId)}; g.r.Ul=function(){}; g.r.Ce=function(){}; g.r.zU=function(){}; g.r.eg=function(){}; g.r.TU=function(){}; g.r.PH=function(q){this.La.PH(q,!this.K)}; g.r.xk=function(q){this.La.xk(q,!this.K)}; g.r.wj=function(){var q=qc(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return q===void 0?(Yp("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.GP.get().wj(q)};g.V(j3,M_);g.r=j3.prototype;g.r.uN=function(){}; g.r.k5=function(){var q=this.wU.get();q.e3===this&&(q.e3=null);this.timer.stop()}; g.r.AM=function(){this.timer.stop();M_.prototype.g8.call(this)}; g.r.jF=function(){uCb(this);M_.prototype.ol.call(this)}; g.r.iA=function(){return qc(this.hn().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.r.KP=function(q,Z){var F=this;this.Vh(q,function(){F.Fe!=="rendering_stop_requested"&&(F.Fe="rendering_stop_requested",F.layoutExitReason=Z,Jf(F,Z),F.timer.stop())})}; g.r.y5=function(){var q=Date.now(),Z=q-this.z5;this.z5=q;this.wF+=Z;this.wF>=this.iA()?this.h6():(this.oK(this.wF/1E3),$b(this,this.wF))}; g.r.yg=function(){}; g.r.IV=function(){}; g.V(St,j3);g.r=St.prototype;g.r.o4=function(q){if(this.Fe!=="not_rendering"){q=E$(this,q);var Z=this.Zl.get().getPresentingPlayerType()===2;this.Fe==="rendering_start_requested"?Z&&lZ(q)&&this.bZ():Z?g.YM(q,2)?Yp("Receive player ended event during MediaBreak",this.bd(),this.hn()):Ug(this,q):this.mf()}}; g.r.Na=function(){UAD(this);bU6(this.Zl.get());this.wU.get().e3=this;dP("pbp")||dP("pbs")||iE("pbp");dP("pbp","watch")||dP("pbs","watch")||iE("pbp",void 0,"watch");this.bZ()}; g.r.JA=function(q){this.rq.get();var Z=qc(q.clientMetadata,"metadata_type_ad_placement_config").kind,F=this.position===0;q=qc(q.clientMetadata,"metadata_type_linked_in_player_layout_type");q={adBreakType:G2(Z),adType:tpZ(q)};var B=void 0;F?Z!=="AD_PLACEMENT_KIND_START"&&(B="video_to_ad"):B="ad_to_ad";n4("ad_mbs",void 0,B);g.ZR(q,B);uCb(this)}; g.r.mf=function(){this.Jk()}; g.r.h6=function(){xdD(this);this.Jk()}; g.V(Rl,j3);g.r=Rl.prototype;g.r.o4=function(q){this.Fe!=="not_rendering"&&(q=E$(this,q),Ug(this,q))}; g.r.Na=function(){Yp("Not used in SSAP")}; g.r.JA=function(){uCb(this)}; g.r.mf=function(){Yp("Not used in SSAP")}; g.r.h6=function(){xdD(this);this.Gn.fL(this.bd(),this.hn(),"normal")}; g.V(gR,Rl);gR.prototype.KP=function(q,Z){var F=this;this.Vh(q,function(){oH(F.S,Z)&&(F.Fe="rendering_stop_requested",F.layoutExitReason=Z,Jf(F,Z),F.timer.stop())})}; gR.prototype.startRendering=function(q){Z2K(q1(this));$PX(this,q)&&(Afb(this),this.wU.get().e3=this)};g.V(ZJ,M_);g.r=ZJ.prototype;g.r.mf=function(){this.Jk()}; g.r.o4=function(q){if(this.Fe!=="not_rendering"){q=E$(this,q);var Z=this.Zl.get().getPresentingPlayerType()===2;this.Fe==="rendering_start_requested"?Z&&lZ(q)&&this.bZ():!Z||g.YM(q,2)?this.Jk():Ug(this,q)}}; g.r.uN=function(){qc(this.hn().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=qc(this.hn().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.r.k5=function(){qc(this.hn().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.m3){var q=this.context.Di,Z=this.m3,F=this.hn().layoutId;if(iy(q.GP.get(),!0)){var B={};q.S$("mccru",(B.cid=Z,B.p_ac=F,B))}this.YS.get().removeCueRange(this.m3)}this.m3=void 0;var f;(f=this.Cg)==null||f.dispose();this.vy&&this.vy.dispose()}; g.r.Na=function(q){var Z=kt(this.GP.get()),F=j8(this.GP.get());if(Z&&F&&!this.wj()){F=qc(q.clientMetadata,"metadata_type_preload_player_vars");var B=this.GP.get();B=g.Ce(B.B.C().experiments,"html5_preload_wait_time_secs");F&&this.vy&&this.vy.start(B*1E3)}qzD(this,q);UAD(this);Z?(F=this.kS.get(),q=qc(q.clientMetadata,"metadata_type_player_vars"),F.B.loadVideoByPlayerVars(q,!1,2)):sV(this.kS.get(),qc(q.clientMetadata,"metadata_type_player_vars"));var f;(f=this.Cg)==null||f.start();Z||this.kS.get().B.playVideo(2)}; g.r.JA=function(){var q;(q=this.Cg)==null||q.stop();this.cT();(this.adCpn=aM6(this))||Yp("Media layout confirmed started, but ad CPN not set.");this.Ep.get().F6("onAdStart",this.adCpn);this.pu=Date.now()}; g.r.iA=function(){var q;return(q=IB(this.XE.get(),2))==null?void 0:q.oN}; g.r.rK=function(){this.La.PH("clickthrough")}; g.r.KP=function(q,Z){var F=this;this.Vh(q,function(){if(F.Fe!=="rendering_stop_requested"){F.Fe="rendering_stop_requested";F.layoutExitReason=Z;Jf(F,Z);var B;(B=F.Cg)==null||B.stop();F.vy&&F.vy.stop();Rm9(F)}})}; g.r.onCueRangeEnter=function(q){if(q!==this.m3)Yp("Received CueRangeEnter signal for unknown layout.",this.bd(),this.hn(),{cueRangeId:q});else{var Z=this.context.Di,F=this.hn().layoutId;if(iy(Z.GP.get(),!0)){var B={};Z.S$("mccre",(B.cid=q,B.p_ac=F,B))}this.YS.get().removeCueRange(this.m3);this.m3=void 0;of(this.context.GP.get(),"html5_ssap_flush_at_stop_rendering")&&this.wj()||(q=qc(this.hn().clientMetadata,"metadata_type_video_length_seconds"),this.oK(q,!0),this.xk("complete"))}}; g.r.yg=function(q){q!=="abandoned"&&this.Ep.get().F6("onAdComplete");this.Ep.get().F6("onAdEnd",this.adCpn)}; g.r.cT=function(){this.m3="adcompletioncuerange:"+this.hn().layoutId;this.YS.get().addCueRange(this.m3,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var q=this.context.Di,Z=this.m3,F=this.hn().layoutId;if(iy(q.GP.get(),!0)){var B={};q.S$("mccr",(B.cid=Z,B.p_ac=F,B))}}; g.r.onCueRangeExit=function(){}; g.r.IV=function(q){this.Fe==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&q>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Zl.get().Lv(!0),this.oK(q))}; g.r.oK=function(q,Z){M_.prototype.oK.call(this,q,Z===void 0?!1:Z);Z=Date.now()-this.pu;var F=q*1E3,B={contentCpn:this.rA(),adCpn:aM6(this)};if(q-this.lz>=5){var f=Z=2||(this.T0.KP(this.layout,Z),q=of(this.params.context.GP.get(),"html5_ssap_pass_transition_reason")&&Z==="abandoned",this.z1()&&!q&&(of(this.params.context.GP.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(Z)||Yp("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:Z})),this.A0.get().finishSegmentByCpn(this.layout.layoutId, IB(this.XE.get(),1).clientPlaybackNonce,XX(Z,this.params.context.GP))),this.Zl.get().removeListener(this),this.GT()&&uhD(this.T0.W3())&&this.LG.ZJ(this.slot,this.layout,this.T0.W3().D))}; g.r.zI=function(q,Z,F){cLy({cpn:q,uw:this.XE.get(),CU:!0});this.hn().layoutId!==q||of(this.params.context.GP.get(),"html5_ssap_pass_transition_reason")&&F===5||(this.T0.W3().currentState<2&&(q=sx(F,this.params.context.GP),q==="error"?this.LG.Dz(this.slot,this.layout,new JB("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:F},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):E7(this.rj, this.layout,q)),of(this.params.context.GP.get(),"html5_ssap_exit_without_waiting_for_transition")||this.LG.ZJ(this.slot,this.layout,this.T0.W3().D))};g.V(wm,g.J);g.r=wm.prototype;g.r.bd=function(){return this.slot}; g.r.hn=function(){return this.layout}; g.r.je=function(){}; g.r.vL=function(){return this.M8[this.l4]}; g.r.tV=function(){return this.l4}; g.r.AM=function(q,Z){var F=this.vL();Z.layoutId!==uo(F,q,Z)?Yp("pauseLayout for a PlayerBytes layout that is not currently active",q,Z):F.AM()}; g.r.jF=function(q,Z){var F=this.vL();Z.layoutId!==uo(F,q,Z)?Yp("resumeLayout for a PlayerBytes layout that is not currently active",q,Z):F.jF()}; g.r.Ma=function(q,Z){var F=this.vL();DZG(this,q,Z);nQK(F,q,Z)&&this.QL(F.bd(),F.hn(),"skipped")}; g.r.wz=function(q,Z){var F=this.vL();s_B(this);cq8(F,q,Z)&&(q=h$b(this,F,q,Z),q!==void 0&&(this.wj()?Yp("Should not happen. Should delete"):EBE(this,F.bd(),F.hn(),q)))}; g.r.rd=function(q,Z){var F=Object.assign({},s1(this),{layoutId:Z.layoutId}),B=F.layoutId,f=F.CU;if(F.Vw){var D={};ea(F.uw,"wrse",(D.ec=B,D.is=f,D.ctp=TQ(B),D))}vs9(this.SA,q,Z)}; g.r.ql=function(q,Z){var F;(F=this.vL())==null||F.ql(q,Z)}; g.r.ZJ=function(q,Z,F){Z.layoutId===this.hn().layoutId&&(this.PV=!1,VC(this.vg(),this));var B;(B=this.vL())==null||B.ZJ(q,Z,F)}; g.r.IV=function(q){var Z;(Z=this.vL())==null||Z.IV(q)}; g.r.FF=function(q,Z,F){this.tV()===-1&&(this.callback.ql(this.slot,this.layout),this.l4++);var B=this.vL();B?(B.n0(q,Z,F),this.wj()&&this.callback.Dz(this.slot,this.layout,Z,F)):Yp("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.tV()),layoutId:this.hn().layoutId})}; g.r.onFullscreenToggled=function(q){var Z;(Z=this.vL())==null||Z.onFullscreenToggled(q)}; g.r.Ul=function(q){var Z;(Z=this.vL())==null||Z.Ul(q)}; g.r.zU=function(q){var Z;(Z=this.vL())==null||Z.zU(q)}; g.r.onVolumeChange=function(){var q;(q=this.vL())==null||q.onVolumeChange()}; g.r.Wd=function(q,Z,F){Dr(this.SA,q,Z,F)}; g.r.Jh=function(q){q.startRendering(q.hn())}; g.r.init=function(){var q=qc(this.hn().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");q&&(q.current=this);if(this.M8.length<1)throw new K("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.M8.length)});if(q=qc(this.hn().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))q.current=this;q=g.E(this.M8);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.init(),ubK(this.SA,this.slot,Z.hn()),LJk(this.SA,this.slot,Z.hn()); if(this.wj())for(this.XE.get().addListener(this),hYD(Y06(this),this.XE.get()),q=Y06(this),q=g.E(q),Z=q.next();!Z.done;Z=q.next())this.IT(Z.value)}; g.r.IT=function(q){var Z=qc(q.clientMetadata,"metadata_type_player_vars");Z?(q.layoutType!=="LAYOUT_TYPE_MEDIA"&&Yp("Non-video ad contains playerVars",this.slot,q),this.kS.get().addPlayerResponseForAssociation({playerVars:Z})):(q=Dzg(q),this.kS.get().addPlayerResponseForAssociation({Ru:q}))}; g.r.release=function(){var q=qc(this.hn().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");q&&(q.current=null);if(q=qc(this.hn().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))q.current=null;q=g.E(this.M8);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,E$k(this.SA,this.slot,Z.hn()),Z.release();this.wj()&&(this.XE.get().removeListener(this),wS6())}; g.r.Vh=function(q){return q.layoutId!==this.hn().layoutId?(this.callback.Dz(this.bd(),q,new JB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.hn().layoutId+("and LayoutType: "+this.hn().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.r.DM=function(){this.Zl.get().addListener(this);qr(this.vg(),this)}; g.r.o4=function(q){if(q.state.isError()){var Z,F;this.FF((Z=q.state.xb)==null?void 0:Z.errorCode,new JB("There was a player error during this media layout.",{playerErrorCode:(F=q.state.xb)==null?void 0:F.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(Z=this.vL())&&Z.o4(q)}; g.r.wj=function(){var q=qc(this.bd().clientMetadata,"metadata_type_eligible_for_ssap");return q===void 0?(Yp("Expected SSAP eligibility in PlayerBytes slots",this.bd(),this.hn()),!1):this.GP.get().wj(q)}; g.r.Ce=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.eg=function(){}; g.r.TU=function(){}; g.V(NL7,wm);g.r=NL7.prototype;g.r.wd=function(q,Z,F){this.QL(q,Z,F)}; g.r.BF=function(q,Z){this.QL(q,Z,"error")}; g.r.QL=function(q,Z,F){var B=this;kAX(this,q,Z,F,function(){$n(B,B.tV()+1)})}; g.r.startRendering=function(q){this.Vh(q)&&(this.DM(),XEZ(this.rq.get()),gGX(this.GP.get())||bU6(this.Zl.get()),this.tV()===-1&&$n(this,this.tV()+1))}; g.r.KP=function(q,Z){var F=this;this.PV=!0;this.tV()===this.M8.length?this.callback.ZJ(this.slot,this.layout,Z):(q=this.vL(),q.KP(q.hn(),Z),this.Ss=function(){F.callback.ZJ(F.slot,F.layout,Z)}); this.Zl.get().B.pH();sV(this.kS.get(),{});q=v6(this.Zl.get(),1);q.isPaused()&&!g.p(q,2)&&this.Zl.get().playVideo();this.Zl.get().removeListener(this);this.PV&&ISB(this)}; g.r.zI=function(){}; g.r.GI=function(){}; g.r.fL=function(){}; g.V(vw,wm);g.r=vw.prototype;g.r.wd=function(q,Z,F){q=Object.assign({},s1(this),{layoutId:Z.layoutId,layoutExitReason:F});Z=q.layoutId;F=q.layoutExitReason;var B={};ea(q.uw,"prse",(B.xc=Z,B.ler=F,B.ctp=TQ(Z),B))}; g.r.BF=function(){Yp("onSubLayoutError in SSAP")}; g.r.QL=function(){Yp("exitSubLayoutAndPlayNext in SSAP")}; g.r.vL=function(){return this.UP}; g.r.tV=function(){var q=this;return this.M8.findIndex(function(Z){var F;return Z.hn().layoutId===((F=q.UP)==null?void 0:F.hn().layoutId)})}; g.r.Jh=function(q){JI(this.UP===void 0,"replacing another adapter");this.UP=q;q.startRendering(q.hn())}; g.r.Wd=function(q,Z,F){Dr(this.SA,q,Z,F);var B;JI(Z.layoutId===((B=this.UP)==null?void 0:B.hn().layoutId),"currentAdapter does not match exiting layout",{slot:q?"slot: "+q.slotType:"",subLayout:iF(Z)})&&(this.UP=void 0)}; g.r.release=function(){wm.prototype.release.call(this);JI(this.UP===void 0,"currentAdapter is still active during release");this.UP=void 0}; g.r.z1=function(){return this.Zl.get().getPresentingPlayerType()===2}; g.r.KP=function(q,Z){function F(){if(this.UP){var D=this.UP;D.W3().currentState<2&&D.KP(D.hn(),Z);D=vb(this)&&Z==="abandoned";this.z1()&&!D&&(B.call(this),this.A0.get().finishSegmentByCpn(this.UP.hn().layoutId,IB(this.XE.get(),1).clientPlaybackNonce,XX(Z,this.GP)))}} function B(){vb(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(Z)||Yp("Composite stopRendering: Unexpected layout exit reason",this.slot,q,{layoutExitReason:Z}))} function f(){this.UP&&A$(this,this.UP,Z);if(this.z1()&&(!vb(this)||Z!=="abandoned")){B.call(this);var D;var G=((D=this.XE.get().B.getVideoData())==null?void 0:D.clientPlaybackNonce)||"";D=IB(this.XE.get(),1).clientPlaybackNonce;this.A0.get().finishSegmentByCpn(G,D,XX(Z,this.GP))}PcX(this,Z)} JI(q.layoutId===this.hn().layoutId,"StopRendering for wrong layout")&&oH(this.Rx.K,Z)&&(this.GT()?f.call(this):F.call(this))}; g.r.ZJ=function(q,Z,F){wm.prototype.ZJ.call(this,q,Z,F);Z.layoutId===this.hn().layoutId&&this.Zl.get().removeListener(this)}; g.r.rA=function(){return IB(this.XE.get(),1).clientPlaybackNonce}; g.r.zI=function(q,Z,F){cLy(Object.assign({},s1(this),{cpn:q}));if(!vb(this)||F!==5)if(this.GT()){if(this.UP&&this.UP.hn().layoutId!==Z){var B=this.UP.hn().layoutId;B!==q&&Yp("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:B,exitingCpn:q,enteringCpn:Z});q=sx(F,this.GP);A$(this,this.UP,q)}else this.UP&&Yp("onClipExited: active layout is entering again");Z===this.rA()&&p0Z(this,F)}else{if(this.UP&&this.UP.hn().layoutId===q)VfK(this,this.UP,F);else{var f;Yp("Exiting cpn does not match active cpn", this.slot,(B=this.UP)==null?void 0:B.hn(),{exitingCpn:q,transitionReason:F,activeCpn:(f=this.UP)==null?void 0:f.hn().layoutId})}Z===this.rA()&&(this.UP!==void 0&&(Yp("active adapter is not properly exited",this.slot,this.layout,{activeLayout:iF(this.UP.hn())}),VfK(this,this.UP,F)),p0Z(this,F),PcX(this,this.Rx.K.D))}}; g.r.GT=function(){return of(this.GP.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.r.startRendering=function(q){this.Vh(q)&&(q=this.Rx,JI(q.D===1,"tickStartRendering: state is not initial"),q.D=2,this.DM())}; g.r.GI=function(q){c1G(Object.assign({},s1(this),{cpn:q}));var Z=this.M8.find(function(F){return F.hn().layoutId===q}); Z?(this.Rx.D!==2&&(pL9(this.XN,this.slot.slotId),JI(this.Rx.D===2,"Expect started"),this.callback.ql(this.slot,this.layout)),this.Jh(Z),vs9(this.SA,this.slot,Z.hn())):dI8(this,q)}; g.r.Ma=function(q,Z){DZG(this,q,Z);var F=this.vL();F?nQK(F,q,Z)&&s37(this,"skipped"):qKj(this,"onSkipRequested")}; g.r.wz=function(q,Z){var F;a:{if(F=this.vL()){if(s_B(this),cq8(F,q,Z)&&(q=h$b(this,F,q,Z),q!==void 0)){F={td:F,GHa:this.M8[q]};break a}}else qKj(this,"SkipWithAdPodSkip");F=void 0}if(q=F)F=q.td,Z=q.GHa,q=F.hn().layoutId,this.GT()?A$(this,F,"skipped"):F.KP(F.hn(),"skipped"),F=Z.hn().layoutId,this.A0.get().finishSegmentByCpn(q,F,XX("skipped",this.GP))}; g.r.rd=function(){Yp("Not used in html5_ssap_fix_layout_exit")}; g.r.o4=function(q){var Z;(Z=this.vL())==null||Z.o4(q)}; g.r.FF=function(){Yp("Not used in html5_ssap_fix_layout_exit")}; g.r.fL=function(q,Z,F){var B;if(((B=this.vL())==null?void 0:B.hn().layoutId)!==Z.layoutId)return void Yp("requestToExitSubLayout: wrong layout");s37(this,F)};g.V(ei7,g.J);g.r=ei7.prototype;g.r.bd=function(){return this.T0.bd()}; g.r.hn=function(){return this.T0.hn()}; g.r.init=function(){var q=qc(this.hn().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");q&&(q.current=this);this.uN()}; g.r.uN=function(){this.T0.init()}; g.r.release=function(){var q=qc(this.hn().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");q&&(q.current=null);this.k5()}; g.r.k5=function(){this.T0.release()}; g.r.AM=function(){this.T0.AM()}; g.r.jF=function(){this.T0.jF()}; g.r.Ma=function(q,Z){Yp("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.bd(),this.hn(),{requestingSlot:q,requestingLayout:Z})}; g.r.startRendering=function(q){q.layoutId!==this.hn().layoutId?this.callback.Dz(this.bd(),q,new JB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.hn().layoutId+("and LayoutType: "+this.hn().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Zl.get().addListener(this),qr(this.vg(),this),XEZ(this.rq.get()),gGX(this.GP.get())||bU6(this.Zl.get()),this.T0.startRendering(q))}; g.r.KP=function(q,Z){this.PV=!0;this.T0.KP(q,Z);this.Zl.get().B.pH();sV(this.kS.get(),{});q=v6(this.Zl.get(),1);q.isPaused()&&!g.p(q,2)&&this.Zl.get().playVideo();this.Zl.get().removeListener(this);this.PV&&this.T0.mf()}; g.r.ql=function(q,Z){this.T0.ql(q,Z)}; g.r.ZJ=function(q,Z,F){Z.layoutId===this.hn().layoutId&&(this.PV=!1,VC(this.vg(),this));this.T0.ZJ(q,Z,F);Z.layoutId===this.hn().layoutId&&iAK(this.rq.get())}; g.r.IV=function(q){this.T0.IV(q)}; g.r.o4=function(q){if(q.state.isError()){var Z,F;this.FF((Z=q.state.xb)==null?void 0:Z.errorCode,new JB("There was a player error during this media layout.",{playerErrorCode:(F=q.state.xb)==null?void 0:F.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.T0.o4(q)}; g.r.FF=function(q,Z,F){this.T0.n0(q,Z,F)}; g.r.onFullscreenToggled=function(q){this.T0.onFullscreenToggled(q)}; g.r.Ul=function(q){this.T0.Ul(q)}; g.r.zU=function(q){this.T0.zU(q)}; g.r.onVolumeChange=function(){this.T0.onVolumeChange()}; g.r.Ce=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.eg=function(){}; g.r.TU=function(){};g.r=c$.prototype;g.r.bd=function(){return this.slot}; g.r.hn=function(){return this.layout}; g.r.init=function(){this.LP.get().addListener(this);this.Zl.get().addListener(this);var q=qc(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var Z=qc(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.G){var F=this.LP.get().Gf.slice(-1)[0];F!==void 0&&(q=F.startSecs*1E3,Z=(F.startSecs+F.jC)*1E3)}this.Wy(q,Z);var B;F=(B=this.XE.get().fK)==null?void 0:B.clientPlaybackNonce;B=this.layout.Xe.adClientDataEntry;Jb(this.wU.get(),{daiStateTrigger:{filledAdsDurationMs:Z-q,contentCpn:F, adClientData:B}});var f=this.LP.get();f=skK(f.S,q,Z);f!==null&&(Jb(this.wU.get(),{daiStateTrigger:{filledAdsDurationMs:f-q,contentCpn:F,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:B}}),this.A0.get().UM(f,Z))}; g.r.release=function(){this.k5();this.LP.get().removeListener(this);this.Zl.get().removeListener(this)}; g.r.startRendering=function(){this.Na();this.callback.ql(this.slot,this.layout)}; g.r.KP=function(q,Z){this.Kd(Z);this.driftRecoveryMs!==null&&(tb(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(jkD(this)-qc(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Zl.get().B.BY()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.ZJ(this.slot,this.layout,Z)}; g.r.zM=function(){return!1}; g.r.Vj=function(q){var Z=qc(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),F=qc(this.layout.clientMetadata,"metadata_type_layout_exit_ms");q*=1E3;if(Z<=q&&q0&&j2(this.D(),Z)}; g.r.Wf=function(q){this.Z.delete(q.slotId);for(var Z=[],F=g.E(this.Bg.values()),B=F.next();!B.done;B=F.next()){B=B.value;var f=B.trigger;f instanceof mR&&f.triggeringSlotId===q.slotId&&Z.push(B)}Z.length>0&&j2(this.D(),Z)}; g.r.dY=function(q){for(var Z=[],F=g.E(this.Bg.values()),B=F.next();!B.done;B=F.next()){B=B.value;var f=B.trigger;f instanceof u2D&&f.slotType===q.slotType&&f.D!==q.slotId&&Z.push(B)}Z.length>0&&j2(this.D(),Z)}; g.r.tC=function(q){this.S.add(q.slotId);for(var Z=[],F=g.E(this.Bg.values()),B=F.next();!B.done;B=F.next())B=B.value,B.trigger instanceof Nl&&q.slotId===B.trigger.triggeringSlotId&&Z.push(B);Z.length>0&&j2(this.D(),Z)}; g.r.WL=function(q){this.S.delete(q.slotId);this.G.add(q.slotId);for(var Z=[],F=g.E(this.Bg.values()),B=F.next();!B.done;B=F.next())if(B=B.value,B.trigger instanceof $H)q.slotId===B.trigger.triggeringSlotId&&Z.push(B);else if(B.trigger instanceof b5){var f=B.trigger;q.slotId===f.slotId&&this.K.has(f.triggeringLayoutId)&&Z.push(B)}Z.length>0&&j2(this.D(),Z)}; g.r.jI=function(q){for(var Z=[],F=g.E(this.Bg.values()),B=F.next();!B.done;B=F.next())B=B.value,B.trigger instanceof ej&&q.slotId===B.trigger.triggeringSlotId&&Z.push(B);Z.length>0&&j2(this.D(),Z)}; g.r.t1=function(q){for(var Z=[],F=g.E(this.Bg.values()),B=F.next();!B.done;B=F.next())B=B.value,B.trigger instanceof gA&&q.slotId===B.trigger.triggeringSlotId&&Z.push(B);Z.length>0&&j2(this.D(),Z)}; g.r.MD=function(q,Z){this.j.add(Z.layoutId)}; g.r.Ye=function(q,Z){this.j.delete(Z.layoutId)}; g.r.ql=function(q,Z){this.K.add(Z.layoutId);for(var F=[],B=g.E(this.Bg.values()),f=B.next();!f.done;f=B.next())if(f=f.value,f.trigger instanceof Fj)Z.layoutId===f.trigger.triggeringLayoutId&&F.push(f);else if(f.trigger instanceof Mk){var D=f.trigger;q.slotType===D.slotType&&Z.layoutType===D.layoutType&&Z.layoutId!==D.D&&F.push(f)}else f.trigger instanceof b5&&(D=f.trigger,Z.layoutId===D.triggeringLayoutId&&this.G.has(D.slotId)&&F.push(f));F.length>0&&j2(this.D(),F)}; g.r.ZJ=function(q,Z,F){this.K.delete(Z.layoutId);q=[];for(var B=g.E(this.Bg.values()),f=B.next();!f.done;f=B.next())if(f=f.value,f.trigger instanceof Qs&&Z.layoutId===f.trigger.triggeringLayoutId&&q.push(f),f.trigger instanceof HR){var D=f.trigger;Z.layoutId===D.triggeringLayoutId&&D.D.includes(F)&&q.push(f)}q.length>0&&j2(this.D(),q)}; g.r.gR=function(){}; g.r.qP=function(){this.G.clear()}; g.r.Ng=function(){};g.V(Nt,g.J);Nt.prototype.IS=function(q,Z,F,B){if(this.Bg.has(Z.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(Z instanceof Q$))throw new K("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in CloseRequestedTriggerAdapter");this.Bg.set(Z.triggerId,new Ul(q,Z,F,B))}; Nt.prototype.EX=function(q){this.Bg.delete(q.triggerId)};g.V(Sa,g.J);Sa.prototype.IS=function(q,Z,F,B){if(this.Bg.has(Z.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(Z instanceof Ka||Z instanceof g4))throw new K("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Bg.set(Z.triggerId,new Ul(q,Z,F,B))}; Sa.prototype.EX=function(q){this.Bg.delete(q.triggerId)}; Sa.prototype.qP=function(q){for(var Z=[],F=Z.push,B=F.apply,f=[],D=g.E(this.Bg.values()),G=D.next();!G.done;G=D.next())G=G.value,G.trigger instanceof Ka&&G.trigger.B2===q&&f.push(G);B.call(F,Z,g.YB(f));F=Z.push;B=F.apply;f=[];D=g.E(this.Bg.values());for(G=D.next();!G.done;G=D.next())G=G.value,G.trigger instanceof g4&&G.trigger.D!==q&&f.push(G);B.call(F,Z,g.YB(f));Z.length&&j2(this.D(),Z)}; Sa.prototype.Ng=function(q){for(var Z=[],F=Z.push,B=F.apply,f=[],D=g.E(this.Bg.values()),G=D.next();!G.done;G=D.next()){G=G.value;var n=G.trigger;n instanceof g4&&n.D===q&&f.push(G)}B.call(F,Z,g.YB(f));Z.length&&j2(this.D(),Z)};g.V(ln,g.J);g.r=ln.prototype;g.r.IS=function(q,Z,F,B){if(this.Bg.has(Z.triggerId))throw new K("Tried to register duplicate trigger for slot.");var f="adtriggercuerange:"+Z.triggerId;if(Z instanceof NF)xv6(this,q,Z,F,B,f,Z.D.start,Z.D.end,Z.B2,Z.visible);else if(Z instanceof e1)xv6(this,q,Z,F,B,f,0x7ffffffffffff,0x8000000000000,Z.B2,Z.visible);else throw new K("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in CueRangeTriggerAdapter");}; g.r.EX=function(q){var Z=this.Bg.get(q.triggerId);Z&&this.YS.get().removeCueRange(Z.cueRangeId);this.Bg.delete(q.triggerId)}; g.r.onCueRangeEnter=function(q){var Z=xS6(this,q);if(Z&&(Z=this.Bg.get(Z)))if(g.p(v6(this.Zl.get()),32))this.D.add(Z.cueRangeId);else{var F=Z==null?void 0:Z.LW.trigger;if(F instanceof NF||F instanceof e1){if(iy(this.context.GP.get())){var B=Z.LW.slot,f=Z.LW.layout,D={};this.context.Di.S$("cre",(D.ca=Z.LW.category,D.tt=F.triggerType,D.st=B.slotType,D.lt=f==null?void 0:f.layoutType,D.cid=q,D))}j2(this.K(),[Z.LW])}}}; g.r.onCueRangeExit=function(q){(q=xS6(this,q))&&(q=this.Bg.get(q))&&this.D.delete(q.cueRangeId)}; g.r.o4=function(q){if(dL(q,16)<0){q=g.E(this.D);for(var Z=q.next();!Z.done;Z=q.next())this.onCueRangeEnter(Z.value,!0);this.D.clear()}}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.ql=function(){}; g.r.ZJ=function(){}; g.r.gR=function(){}; g.r.IV=function(){}; g.r.onFullscreenToggled=function(){}; g.r.Ul=function(){}; g.r.Ce=function(){}; g.r.zU=function(){}; g.r.onVolumeChange=function(){}; g.r.eg=function(){}; g.r.TU=function(){};g.V(gM,g.J);g.r=gM.prototype; g.r.IS=function(q,Z,F,B){if(this.K.has(Z.triggerId)||this.S.has(Z.triggerId))throw new K("Tried to re-register the trigger.");q=new Ul(q,Z,F,B);if(q.trigger instanceof eR)this.K.set(q.trigger.triggerId,q);else if(q.trigger instanceof kq)this.S.set(q.trigger.triggerId,q);else throw new K("Incorrect TriggerType: Tried to register trigger of type "+q.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.K.has(q.trigger.triggerId)&&q.slot.slotId===this.D&&j2(this.G(),[q])}; g.r.EX=function(q){this.K.delete(q.triggerId);this.S.delete(q.triggerId)}; g.r.je=function(q){q=q.slotId;if(this.D!==q){var Z=[];this.D!=null&&Z.push.apply(Z,g.YB(QK8(this.S,this.D)));q!=null&&Z.push.apply(Z,g.YB(QK8(this.K,q)));this.D=q;Z.length&&j2(this.G(),Z)}}; g.r.zI=function(){}; g.r.GI=function(){};g.V(UU,g.J);g.r=UU.prototype;g.r.IS=function(q,Z,F,B){if(this.Bg.has(Z.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(Z instanceof Dx))throw new K("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Bg.set(Z.triggerId,new Ul(q,Z,F,B))}; g.r.EX=function(q){this.Bg.delete(q.triggerId)}; g.r.ql=function(){}; g.r.ZJ=function(){}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){};g.V(un,g.J);g.r=un.prototype;g.r.gR=function(q,Z){for(var F=[],B=g.E(this.Bg.values()),f=B.next();!f.done;f=B.next()){f=f.value;var D=f.trigger;D.opportunityType===q&&(D.associatedSlotId&&D.associatedSlotId!==Z||F.push(f))}F.length&&j2(this.D(),F)}; g.r.IS=function(q,Z,F,B){if(this.Bg.has(Z.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(Z instanceof HZD))throw new K("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in OpportunityEventTriggerAdapter");this.Bg.set(Z.triggerId,new Ul(q,Z,F,B))}; g.r.EX=function(q){this.Bg.delete(q.triggerId)}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.ql=function(){}; g.r.ZJ=function(){};g.V(Su,g.J);g.r=Su.prototype;g.r.IS=function(q,Z,F,B){q=new Ul(q,Z,F,B);if(Z instanceof GS||Z instanceof og||Z instanceof cb||Z instanceof hH||Z instanceof T4B){if(this.Bg.has(Z.triggerId))throw new K("Tried to register duplicate trigger for slot.");this.Bg.set(Z.triggerId,q)}else throw new K("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in PrefetchTriggerAdapter");}; g.r.EX=function(q){this.Bg.delete(q.triggerId)}; g.r.h8=function(q){var Z=q.slotFulfillmentTriggers.find(function(F){return F instanceof GS}); Z&&(H2X(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Z.breakDurationMs,new Set([q.slotId]),!0),Jl(this.wU.get(),"ads_css","sid."+q.slotId+";bd."+Z.breakDurationMs))}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.ql=function(){}; g.r.ZJ=function(){}; g.r.gR=function(){}; g.r.zM=function(q){var Z=this;if(!this.D)return Jl(this.wU.get(),"ads_nfi","a.pta"),!1;this.K&&this.K.stop();this.Z&&g.$t(this.Z);var F=xhZ(this,q);if(!F){var B=ARk(this),f=this.X!==void 0&&Date.now()<=this.X+1E4;Jl(this.wU.get(),"ads_ncfs","cid."+q.identifier+";cd."+q.jC.toFixed(3)+";ccs."+f+";cfa."+this.G+";bdc."+B.length+";"+B.slice(0,6).map(function(D){return";bd."+D}).join("")); return f?(dG(this.gY,this.D,q),!0):!1}(B=qc(F.slot.clientMetadata,"metadata_type_triggering_cue_point"))?B.current=q:Yp("Expected triggering cue point ref to be available",F.slot);(new g.im(function(){var D=F.trigger,G=F.slot;H2X(Z,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",D.breakDurationMs,new Set,!0);H2X(Z,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",D.breakDurationMs,new Set,!1);for(var n=0,b=g.E(Z.Bg.values()),N=b.next();!N.done;N=b.next()){N=N.value;var S= N.trigger;N.slot.slotId===G.slotId&&(Z.Bg.delete(S.triggerId),n++)}Jl(Z.wU.get(),"ads_csf","sid."+G.slotId+";bd."+D.breakDurationMs+";dt."+n)},10)).start(); return!0}; g.r.Vj=function(){}; g.r.qP=function(q){var Z=this;this.G=!1;this.X=Date.now();if(this.D&&this.D.contentCpn!==q)Yp("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:q,fetchInstructionsCpn:this.D.contentCpn}),o5(this);else{this.S=new g.im(function(){if(Z.G)delete Z.S;else{var B=Z.Zl.get().getGetAdBreakContext(),f;if(Number(B==null?void 0:(f=B.livePlaybackPosition)==null?void 0:f.utcTimeMillis)>0)delete Z.S,PVK(Z);else{var D;(D=Z.S)==null||D.start()}}},200); var F;(F=this.S)==null||F.start()}}; g.r.Ng=function(q){this.D&&this.D.contentCpn!==q&&Yp("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:q,fetchInstructionsCpn:this.D.contentCpn},!0);o5(this)}; g.r.eO=function(q){var Z=this;if(this.D)Yp("Unexpected multiple fetch instructions for the current content");else{this.D=q;q=GdD(q);this.K=new g.im(function(){PVK(Z)},q?q:6E5); this.K.start();this.Z=new g.im(function(){Z.D&&(Z.K&&(Z.K.stop(),Z.K.start()),d1B(Z,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},qSK(this.D)); q=this.Zl.get().getCurrentTimeSec(1,!1);for(var F=g.E(this.LP.get().Gf),B=F.next();!B.done;B=F.next())B=B.value,Jl(this.wU.get(),"nocache","ct."+Date.now()+";cmt."+q+";d."+B.jC.toFixed(3)+";tw."+(B.startSecs-q)+";cid."+B.identifier+";")}}; g.r.SU=function(){g.J.prototype.SU.call(this);o5(this)};g.V(AQ,g.J);g.r=AQ.prototype;g.r.IS=function(q,Z,F,B){if(this.Bg.has(Z.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(Z instanceof TI))throw new K("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Bg.set(Z.triggerId,new Ul(q,Z,F,B));q=this.D.has(Z.triggeringLayoutId)?this.D.get(Z.triggeringLayoutId):new Set;q.add(Z);this.D.set(Z.triggeringLayoutId,q)}; g.r.EX=function(q){this.Bg.delete(q.triggerId);if(!(q instanceof TI))throw new K("Incorrect TriggerType: Tried to unregister trigger of type "+q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var Z=this.K.get(q.triggerId);Z&&(Z.dispose(),this.K.delete(q.triggerId));if(Z=this.D.get(q.triggeringLayoutId))Z.delete(q),Z.size===0&&this.D.delete(q.triggeringLayoutId)}; g.r.h8=function(){}; g.r.Wf=function(){}; g.r.dY=function(){}; g.r.tC=function(){}; g.r.WL=function(){}; g.r.jI=function(){}; g.r.t1=function(){}; g.r.MD=function(){}; g.r.Ye=function(){}; g.r.gR=function(){}; g.r.ql=function(q,Z){var F=this;if(this.D.has(Z.layoutId)){q=this.D.get(Z.layoutId);q=g.E(q);var B=q.next();for(Z={};!B.done;Z={mW:void 0},B=q.next())Z.mW=B.value,B=new g.im(function(f){return function(){var D=F.Bg.get(f.mW.triggerId);j2(F.S(),[D])}}(Z),Z.mW.durationMs),B.start(),this.K.set(Z.mW.triggerId,B)}}; g.r.ZJ=function(){};g.V(rI,g.J);rI.prototype.IS=function(q,Z,F,B){if(this.Bg.has(Z.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(Z instanceof Wj))throw new K("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in VideoTransitionTriggerAdapter.");this.Bg.set(Z.triggerId,new Ul(q,Z,F,B))}; rI.prototype.EX=function(q){this.Bg.delete(q.triggerId)};CG.prototype.St=function(q){return q.kind==="AD_PLACEMENT_KIND_START"};g.V(tF,g.J);g.r=tF.prototype;g.r.logEvent=function(q){this.EA(q)}; g.r.cX=function(q,Z,F){this.EA(q,void 0,void 0,void 0,Z,void 0,void 0,void 0,Z.adSlotLoggingData,void 0,void 0,F)}; g.r.KD=function(q,Z,F,B){this.EA(q,void 0,void 0,void 0,Z,F?F:void 0,void 0,void 0,Z.adSlotLoggingData,F?F.adLayoutLoggingData:void 0,void 0,B);Z=fg().resolve(new DG(G5))==null?void 0:Y0();q=Z==null?void 0:Z.adsSeenHotConfig;Z=Z==null?void 0:Z.adsHotConfig;(q==null?0:q.logOnAdsSeen)&&(Z==null?0:Z.webEnablePremiumAdsSeenLogging)&&NT7(this,F?F:void 0,B)}; g.r.RT=function(q,Z,F,B){of(this.GP.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+q,"trigger:",F,"slot:",Z,"layout:",B);Kz(this.D.get())&&this.EA(q,void 0,void 0,void 0,Z,B?B:void 0,void 0,F,Z.adSlotLoggingData,B?B.adLayoutLoggingData:void 0)}; g.r.yn=function(q,Z,F,B,f){this.EA(q,Z,F,B,void 0,void 0,void 0,void 0,void 0,void 0,void 0,f)}; g.r.Mg=function(q,Z,F,B){this.EA("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,F,B,void 0,void 0,F.adSlotLoggingData,B?B.adLayoutLoggingData:void 0,{errorType:q,errorMessage:Z})}; g.r.EA=function(q,Z,F,B,f,D,G,n,b,N,S,l){var U=this;l=l===void 0?0:l;of(this.GP.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+q,"slot:",f,"layout:",D,"ping:",G,"Opportunity:",{opportunityType:Z,associatedSlotId:F,Bms:B,dYF:n,adSlotLoggingData:b,adLayoutLoggingData:N});try{var u=function(){if(!U.GP.get().B.C().U("html5_disable_client_tmp_logs")&&q!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){q||Yp("Empty PACF event type",f,D);var P=Kz(U.D.get()),W={eventType:q,eventOrder:++U.eventCount},H={}; f&&(H.slotData=rZ(P,f));D&&(H.layoutData=ku8(P,D));G&&(H.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:G.D.serializedAdPingMetadata,pingIndex:G.index});n&&(H.triggerData=Py(n.trigger,n.category));Z&&(H.opportunityData=fjD(P,Z,F,B));P={organicPlaybackContext:{contentCpn:IB(U.XE.get(),1).clientPlaybackNonce}};P.organicPlaybackContext.isLivePlayback=IB(U.XE.get(),1).d2;var X;P.organicPlaybackContext.isMdxPlayback=(X=IB(U.XE.get(),1))==null?void 0:X.isMdxPlayback; var Q;if((Q=IB(U.XE.get(),1))==null?0:Q.daiEnabled)P.organicPlaybackContext.isDaiContent=!0;var a;if(X=(a=IB(U.XE.get(),2))==null?void 0:a.clientPlaybackNonce)P.adVideoPlaybackContext={adVideoCpn:X};P&&(H.externalContext=P);W.adClientData=H;b&&(W.serializedSlotAdServingData=b.serializedSlotAdServingDataEntry);N&&(W.serializedAdServingData=N.serializedAdServingDataEntry);S&&(W.errorInfo=S);g.nh("adsClientStateChange",{adsClientEvent:W})}}; l&&l>0?g.Aw(g.ap(),function(){return u()},l):u()}catch(P){of(this.GP.get(),"html5_log_pacf_logging_errors")&&g.Aw(g.ap(),function(){Yp(P instanceof Error?P:String(P),f,D,{pacf_message:"exception during pacf logging"})})}};var Km6=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.V(pp,tF);g.r=pp.prototype; g.r.cX=function(q,Z,F){tF.prototype.cX.call(this,q,Z,F);iy(this.GP.get())&&(F={},this.context.Di.S$("pacf",(F.et=q,F.st=Z.slotType,F.si=Z.slotId,F)))}; g.r.KD=function(q,Z,F,B){var f=Km6.has(q);tF.prototype.KD.call(this,q,Z,F,B);iy(this.GP.get(),f)&&(B={},this.context.Di.S$("pacf",(B.et=q,B.st=Z.slotType,B.si=Z.slotId,B.lt=F==null?void 0:F.layoutType,B.li=F==null?void 0:F.layoutId,B.p_ac=F==null?void 0:F.layoutId,B)))}; g.r.yn=function(q,Z,F,B,f){tF.prototype.yn.call(this,q,Z,F,B,f);iy(this.GP.get())&&(F={},this.context.Di.S$("pacf",(F.et=q,F.ot=Z,F.ss=B==null?void 0:B.length,F)))}; g.r.RT=function(q,Z,F,B){tF.prototype.RT.call(this,q,Z,F,B);if(iy(this.GP.get())){var f={};this.context.Di.S$("pacf",(f.et=q,f.tt=F.trigger.triggerType,f.tc=F.category,f.st=Z.slotType,f.si=Z.slotId,f.lt=B==null?void 0:B.layoutType,f.li=B==null?void 0:B.layoutId,f.p_ac=B==null?void 0:B.layoutId,f))}}; g.r.Mg=function(q,Z,F,B){tF.prototype.Mg.call(this,q,Z,F,B);if(iy(this.GP.get(),!0)){var f={};this.context.Di.S$("perror",(f.ert=q,f.erm=Z,f.st=F.slotType,f.si=F.slotId,f.lt=B==null?void 0:B.layoutType,f.li=B==null?void 0:B.layoutId,f.p_ac=B==null?void 0:B.layoutId,f))}}; g.r.EA=function(q,Z,F,B,f,D,G,n,b,N,S){var l=this.GP.get();g.em(l.B.C())?(l=this.GP.get(),l=g.Ce(l.B.C().experiments,"H5_async_logging_delay_ms")):l=void 0;tF.prototype.EA.call(this,q,Z,F,B,f,D,G,n,b,N,S,l)};hx.prototype.clear=function(){this.D.clear()};aw.prototype.state=function(){return this.D==="fulfilled"?{state:"fulfilled",value:this.result}:this.D==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; aw.prototype.G=function(q){RW(q)||qOy(q)?nN(Yy(q),this.G.bind(this),this.reject.bind(this)):(this.D="fulfilled",this.result=q,OTZ(this))}; aw.prototype.reject=function(q){this.D="rejected";this.error=q;OTZ(this)}; var qOy=v7(function(q){return hrt(q)?q instanceof aw:!1});var Op=window.Hvl||"es-419";US.prototype.BD=function(q){this.client=q}; US.prototype.D=function(){this.clear();this.csn=g.qx()}; US.prototype.clear=function(){this.S.clear();this.K.clear();this.G.clear();this.csn=null};U1.prototype.BD=function(q){g.jJ(uC().BD).bind(uC())(q)}; U1.prototype.clear=function(){g.jJ(uC().clear).bind(uC())()};g.r=fD.prototype;g.r.BD=function(q){this.client=q}; g.r.kB=function(q,Z){var F=this;Z=Z===void 0?{}:Z;g.jJ(function(){var B,f,D,G=((B=g.C(q==null?void 0:q.commandMetadata,g.y8))==null?void 0:B.rootVe)||((f=g.C(q==null?void 0:q.commandMetadata,Tam))==null?void 0:(D=f.screenVisualElement)==null?void 0:D.uiType);if(G){B=g.C(q==null?void 0:q.commandMetadata,Phm);if(B==null?0:B.parentTrackingParams){var n=g.Td(B.parentTrackingParams);if(B.parentCsn)var b=B.parentCsn}else Z.clickedVisualElement?n=Z.clickedVisualElement:q.clickTrackingParams&&(n=g.Td(q.clickTrackingParams)); a:{B=g.C(q,g.jt);f=g.C(q,bFm);if(B){if(f=z6K(B,"VIDEO")){B={token:f,videoId:B.videoId};break a}}else if(f&&(B=z6K(f,"PLAYLIST"))){B={token:B,playlistId:f.playlistId};break a}B=void 0}Z=Object.assign({},{cttAuthInfo:B,parentCsn:b},Z);if(g.cz("expectation_logging")){var N;Z.loggingExpectations=((N=g.C(q==null?void 0:q.commandMetadata,Tam))==null?void 0:N.loggingExpectations)||void 0}ca(F,G,n,Z)}else g.bh(new g.M2("Error: Trying to create a new screen without a rootVeType",q))})()}; g.r.clickCommand=function(q,Z,F){q=q.clickTrackingParams;F=F===void 0?0:F;q?(F=g.qx(F===void 0?0:F))?(jY(this.client,F,g.Td(q),Z),Z=!0):Z=!1:Z=!1;return Z}; g.r.stateChanged=function(q,Z,F){this.visualElementStateChanged(g.Td(q),Z,F===void 0?0:F)}; g.r.visualElementStateChanged=function(q,Z,F){F=F===void 0?0:F;F===0&&this.K.has(F)?this.V.push([q,Z]):AHb(this,q,Z,F)};zL.prototype.fetch=function(q,Z,F){var B=this,f=iq7(q,Z,F);return new Promise(function(D,G){function n(){if(F==null?0:F.WC)try{var N=B.handleResponse(q,f.status,f.response,F);D(N)}catch(S){G(S)}else D(B.handleResponse(q,f.status,f.response,F))} f.onerror=n;f.onload=n;var b;f.send((b=Z.body)!=null?b:null)})}; zL.prototype.handleResponse=function(q,Z,F,B){F=F.replace(")]}'","");try{var f=JSON.parse(F)}catch(D){g.bh(new g.M2("JSON parsing failed after XHR fetch",q,Z,F));if((B==null?0:B.WC)&&F)throw new g.mc(1,"JSON parsing failed after XHR fetch");f={}}Z!==200&&(g.bh(new g.M2("XHR API fetch failed",q,Z,F)),f=Object.assign({},f,{errorMetadata:{status:Z}}));return f};ay.getInstance=function(){var q=g.ym("ytglobal.storage_");q||(q=new ay,g.O9("ytglobal.storage_",q));return q}; ay.prototype.estimate=function(){var q,Z,F;return g.h(function(B){q=navigator;return((Z=q.storage)==null?0:Z.estimate)?B.return(q.storage.estimate()):((F=q.webkitTemporaryStorage)==null?0:F.queryUsageAndQuota)?B.return(moG()):B.return()})}; g.O9("ytglobal.storageClass_",ay);Bs7.prototype.gp=function(q){this.handleError(q)}; Bs7.prototype.logEvent=function(q,Z){switch(q){case "IDB_DATA_CORRUPTED":g.cz("idb_data_corrupted_killswitch")||this.D("idbDataCorrupted",Z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.D("idbUnexpectedlyClosed",Z);break;case "IS_SUPPORTED_COMPLETED":g.cz("idb_is_supported_completed_killswitch")||this.D("idbIsSupportedCompleted",Z);break;case "QUOTA_EXCEEDED":w8G(this,Z);break;case "TRANSACTION_ENDED":this.S&&Math.random()<=.1&&this.D("idbTransactionEnded",Z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":q= Object.assign({},Z,{hasWindowUnloaded:this.K}),this.D("idbTransactionAborted",q)}};var pQ={},WzZ=g.ic("yt-player-local-media",{KG:(pQ.index={mp:2},pQ.media={mp:2},pQ.captions={mp:5},pQ),shared:!1,upgrade:function(q,Z){Z(2)&&(g.UF(q,"index"),g.UF(q,"media"));Z(5)&&g.UF(q,"captions");Z(6)&&(FI(q,"metadata"),FI(q,"playerdata"))}, version:5});var $2B={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},d$;a:{var V8=g.bm();V8=V8.toLowerCase();if(g.Bj(V8,"android")){var aam=V8.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(aam){var m25=parseFloat(aam[1]);if(m25<100){d$=m25;break a}}var iwe=V8.match("("+Object.keys($2B).join("|")+")");d$=iwe?$2B[iwe[0]]:0}else d$=void 0}var zl=d$,EUb=zl>=0;var bTK=hG(function(){var q,Z;return(Z=(q=window).matchMedia)==null?void 0:Z.call(q,"(prefers-reduced-motion: reduce)").matches});var hY;g.iv=new TD;hY=0;var s_=OV8()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.oV?!0:!1;var A4={Zr:function(q){q[z[67]]()}, FB:function(q,Z){var F=q[0];q[0]=q[Z%q[z[1]]];q[Z%q[z[1]]]=F}, Zp:function(q,Z){q[z[34]](0,Z)}};var Etm={rWr:"adunit",TFU:"detailpage",ztL:"editpage",cVU:"embedded",asG:"leanback",Jrc:"previewpage",PcU:"profilepage",wL:"unplugged",EEG:"playlistoverview",ncs:"sponsorshipsoffer",JSU:"shortspage",qXr:"handlesclaiming",GsU:"immersivelivepage",eAG:"creatormusic",zhn:"immersivelivepreviewpage",AWE:"admintoolyurt",vHP:"shortsaudiopivot",xP$:"consumption",SO$:"background_audio_playback"};var jZ9=2592E3;var eg,kaB,QE;eg={};g.jL=(eg.STOP_EVENT_PROPAGATION="html5-stop-propagation",eg.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",eg.IV_DRAWER_OPEN="ytp-iv-drawer-open",eg.MAIN_VIDEO="html5-main-video",eg.VIDEO_CONTAINER="html5-video-container",eg.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",eg.HOUSE_BRAND="house-brand",eg);kaB={};QE=(kaB.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",kaB.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",kaB);var tI7={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var RC6={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},euB={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"},rf8={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var eF6={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.nH.prototype.getLanguageInfo=function(){return this.fB}; g.nH.prototype.getXtags=function(){if(!this.xtags){var q=this.id.split(";");q.length>1&&(this.xtags=q[1])}return this.xtags}; g.nH.prototype.toString=function(){return this.fB.name}; g.nH.prototype.getLanguageInfo=g.nH.prototype.getLanguageInfo;ob.prototype.equals=function(q){return this.K===q.K&&this.D===q.D&&this.S===q.S&&this.reason===q.reason&&(!xi||this.Ml===q.Ml)}; ob.prototype.isLocked=function(){return this.S&&!!this.K&&this.K===this.D}; ob.prototype.compose=function(q){if(q.S&&PX(q))return wH;if(q.S||PX(this))return q;if(this.S||PX(q))return this;var Z=this.K&&q.K?Math.max(this.K,q.K):this.K||q.K,F=this.D&&q.D?Math.min(this.D,q.D):this.D||q.D;Z=Math.min(Z,F);var B=0;xi&&(B=this.Ml!==0&&q.Ml!==0?Math.min(this.Ml,q.Ml):this.Ml===0?q.Ml:this.Ml);return xi&&Z===this.K&&F===this.D&&B===this.Ml||!xi&&Z===this.K&&F===this.D?this:xi?new ob(Z,F,!1,F===this.D&&B===this.Ml?this.reason:q.reason,B):new ob(Z,F,!1,F===this.D?this.reason:q.reason)}; ob.prototype.G=function(q){return!q.video||xi&&this.Ml!==0&&this.Ml=0}; g.r.fU=function(){var q=this.segments[this.segments.length-1];return q?q.endTime:NaN}; g.r.PZ=function(){return this.segments[0].startTime}; g.r.KJ=function(){return this.segments.length}; g.r.kE=function(){return 0}; g.r.eI=function(q){return(q=this.Ip(q))?q.Uc:-1}; g.r.oB=function(q){return(q=this.B3(q))?q.sourceURL:""}; g.r.getStartTime=function(q){return(q=this.B3(q))?q.startTime:0}; g.r.h5=function(q){return this.getStartTime(q)+this.getDuration(q)}; g.r.VL=D6(1);g.r.isLoaded=function(){return this.segments.length>0}; g.r.B3=function(q){if(this.D&&this.D.Uc===q)return this.D;q=g.Z6(this.segments,new fH(q,0,0,0,""),function(Z,F){return Z.Uc-F.Uc}); return this.D=q>=0?this.segments[q]:null}; g.r.Ip=function(q){if(this.D&&this.D.startTime<=q&&q=0?this.segments[q]:this.segments[Math.max(0,-q-2)]}; g.r.append=function(q){if(q.length)if(q=g.D4(q),this.segments.length){var Z=this.segments.length?g.uU(this.segments).endTime:0,F=q[0].Uc-this.F3();F>1&&h8k(this.segments);for(F=F>0?0:-F+1;Fq.Uc&&this.index.X8()<=q.Uc+1}; g.r.update=function(q,Z,F){this.index.append(q);jgD(this.index,F);q=this.index;q.K=Z;q.S="update"}; g.r.wR=function(){return this.bA()?!0:Ao.prototype.wR.call(this)}; g.r.Pp=function(q,Z){var F=this.index.oB(q),B=this.index.getStartTime(q),f=this.index.getDuration(q),D;Z?f=D=0:D=this.info.Ml>0?this.info.Ml*f:1E3;return new Iv([new b6(3,this,void 0,"liveCreateRequestInfoForSegment",q,B,f,0,D,!Z)],F)}; g.r.Iw=function(){return this.bA()?0:this.initRange.length}; g.r.Ox=function(){return!1};KD.prototype.update=function(q){var Z=void 0;this.K&&(Z=this.K);var F=new KD,B=Array.from(q.getElementsByTagName("S"));if(B.length){var f=+WI(q,"timescale")||1,D=(+B[0].getAttribute("t")||0)/f,G=+WI(q,"startNumber")||0;F.G=D;var n=Z?Z.startSecs+Z.jC:0,b=Date.parse(J0G(WI(q,"yt:segmentIngestTime")))/1E3;F.Z=q.parentElement.tagName==="SegmentTemplate";F.Z&&(F.X=WI(q,"media"));q=Z?G-Z.Uc:1;F.j=q>0?0:-q+1;q=g.E(B);for(B=q.next();!B.done;B=q.next()){B=B.value;for(var N=+B.getAttribute("d")/f,S=(+B.getAttribute("yt:sid")|| 0)/f,l=+B.getAttribute("r")||0,U=0;U<=l;U++)if(Z&&G<=Z.Uc)G++;else{var u=new TzX(G,n,N,b+S,D);F.D.push(u);var P=B;var W=f,H=u.startSecs;u=P.getAttribute("yt:cuepointTimeOffset");var X=P.getAttribute("yt:cuepointDuration");if(u&&X){u=Number(u);H=-u/W+H;W=Number(X)/W;X=P.getAttribute("yt:cuepointContext")||null;var Q=P.getAttribute("yt:cuepointIdentifier")||"";P=P.getAttribute("yt:cuepointEvent")||"";P=new IC(H,W,X,Q,jQ0[P]||"unknown",u)}else P=null;P&&F.S.push(P);G++;n+=N;D+=N;b+=N+S}}F.D.length&& (F.K=g.uU(F.D))}this.j=F.j;this.K=F.K||this.K;g.Uq(this.D,F.D);g.Uq(this.S,F.S);this.Z=F.Z;this.X=F.X;this.G===-1&&(this.G=F.getStreamTimeOffset())}; KD.prototype.getStreamTimeOffset=function(){return this.G===-1?0:this.G};g.V(La,g.W1);g.r=La.prototype;g.r.Te=function(){return this.jW}; g.r.g3=function(q,Z){q=RH(this,q);return q>=0&&(Z||!this.segments[q].pending)}; g.r.X8=function(){return this.AS?this.segments.length?this.Ip(this.PZ()).Uc:-1:g.W1.prototype.X8.call(this)}; g.r.PZ=function(){if(this.OZ)return 0;if(!this.AS)return g.W1.prototype.PZ.call(this);if(!this.segments.length)return 0;var q=Math.max(g.uU(this.segments).endTime-this.UA,0);return this.Ra>0&&this.Ip(q).Uc0)return this.Bu/1E3;if(!this.segments.length)return g.W1.prototype.fU.call(this);var q=this.F3();if(!this.AS||q<=this.segments[this.segments.length-1].Uc)q=this.segments[this.segments.length-1];else{var Z=this.segments[this.segments.length-1];q=new fH(q,Math.max(0,Z.startTime-(Z.Uc-q)*this.jW),this.jW,0,"sq/"+q,void 0,void 0,!0)}return this.OZ?Math.min(this.UA,q.endTime):q.endTime}; g.r.KJ=function(){return this.AS?this.segments.length?this.F3()-this.X8()+1:0:g.W1.prototype.KJ.call(this)}; g.r.F3=function(){var q=Math.min(this.WH,Math.max(g.W1.prototype.F3.call(this),this.D_)),Z=this.UA*1E3;Z=this.Bu>0&&this.Bu0&&this.D_>0&&!Z&&(Z=this.Ip(this.UA))&&(q=Math.min(Z.Uc-1,q));return q}; g.r.HP=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.r.oY=function(q){var Z=RH(this,q.Uc);if(Z>=0)this.segments[Z]=q;else if(this.segments.splice(-(Z+1),0,q),this.ED&&q.Uc%(300/this.jW)===0){var F=this.segments[0].Uc,B=Math.floor(this.ED/this.jW);q=q.Uc-B;Z=-(Z+1)-B;Z>0&&q>F&&(this.segments=this.segments.slice(Z))}}; g.r.oH=function(){return this.D_}; g.r.Bi=function(q){return yC?!this.K&&q>=0&&this.F3()<=q:g.W1.prototype.Bi.call(this,q)}; g.r.Ip=function(q){if(!this.AS)return g.W1.prototype.Ip.call(this,q);if(!this.segments.length)return null;var Z=this.segments[this.segments.length-1];if(q=Z.endTime)Z=Z.Uc+Math.floor((q-Z.endTime)/this.jW+1);else{Z=nd(this.segments,function(B){return q=B.endTime?1:0}); if(Z>=0)return this.segments[Z];var F=-(Z+1);Z=this.segments[F-1];F=this.segments[F];Z=Math.floor((q-Z.endTime)/((F.startTime-Z.endTime)/(F.Uc-Z.Uc-1))+1)+Z.Uc}return this.B3(Z)}; g.r.B3=function(q){if(!this.AS)return g.W1.prototype.B3.call(this,q);if(!this.segments.length)return null;var Z=RH(this,q);if(Z>=0)return this.segments[Z];var F=-(Z+1);Z=this.jW;if(F===0)var B=Math.max(0,this.segments[0].startTime-(this.segments[0].Uc-q)*Z);else F===this.segments.length?(B=this.segments[this.segments.length-1],B=B.endTime+(q-B.Uc-1)*Z):(B=this.segments[F-1],Z=this.segments[F],Z=(Z.startTime-B.endTime)/(Z.Uc-B.Uc-1),B=B.endTime+(q-B.Uc-1)*Z);return new fH(q,B,Z,0,"sq/"+q,void 0,void 0, !0)}; var yC=!1;g.V(jf,Z4);g.r=jf.prototype;g.r.OD=function(){return!0}; g.r.wR=function(){return!0}; g.r.Mz=function(q){return this.nY()&&q.S&&!q.G||!q.D.index.Bi(q.Uc)}; g.r.IJ=function(){}; g.r.Ly=function(q,Z){return typeof q!=="number"||isFinite(q)?Z4.prototype.Ly.call(this,q,Z===void 0?!1:Z):new Iv([new b6(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.iI,void 0,this.iI*this.info.Ml)],"")}; g.r.Pp=function(q,Z){var F=F===void 0?!1:F;if(this.index.g3(q))return Z4.prototype.Pp.call(this,q,Z);var B=this.index.getStartTime(q),f=Math.round(this.iI*this.info.Ml),D=this.iI;Z&&(D=f=0);return new Iv([new b6(F?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",q,B,D,void 0,f,!Z)],q>=0?"sq/"+q:"")};g.V(IS,Ao);g.r=IS.prototype;g.r.j7=function(){return!1}; g.r.nY=function(){return!1}; g.r.OD=function(){return!1}; g.r.IJ=function(){return new Iv([new b6(1,this,void 0,"otfInit")],this.Z)}; g.r.nF=function(){return null}; g.r.Ji=function(q){this.Mz(q);return wwb(this,r4(q),!1)}; g.r.Ly=function(q,Z){Z=Z===void 0?!1:Z;q=this.index.eI(q);Z&&(q=Math.min(this.index.F3(),q+1));return wwb(this,q,!0)}; g.r.AG=function(q){q.info.type===1&&(this.D||(this.D=Aq(q.K)),q.D&&q.D.uri==="http://youtube.com/streaming/otf/durations/112015"&&huj(this,q.D))}; g.r.Mz=function(q){return q.S===0?!0:this.index.F3()>q.Uc&&this.index.X8()<=q.Uc+1}; g.r.Iw=function(){return 0}; g.r.Ox=function(){return!1};var zCK=new Map,b2K=new Map,n_9=new function(){var q=this;this.D=new Map;this.JZ={qAa:function(){return q.D}}};g.r=g.R4y.prototype;g.r.g3=function(q){return q<=this.F3()}; g.r.kE=function(q){return this.offsets[q]}; g.r.getStartTime=function(q){return this.startTicks[q]/this.D}; g.r.h5=function(q){return this.getStartTime(q)+this.getDuration(q)}; g.r.VL=D6(0);g.r.rh=function(){return NaN}; g.r.getDuration=function(q){q=this.SP(q);return q>=0?q/this.D:-1}; g.r.SP=function(q){return q+1=0}; g.r.fU=function(){return this.K?this.startTicks[this.count]/this.D:NaN}; g.r.PZ=function(){return 0}; g.r.KJ=function(){return this.count}; g.r.oB=function(){return""}; g.r.eI=function(q){q=g.Z6(this.startTicks.subarray(0,this.count),q*this.D);return q>=0?q:Math.max(0,-q-2)}; g.r.isLoaded=function(){return this.F3()>=0}; g.r.kQ=function(q,Z){if(q>=this.F3())return 0;var F=0;for(Z=this.getStartTime(q)+Z;qthis.getStartTime(q);q++)F=Math.max(F,UkX(this,q)/this.getDuration(q));return F}; g.r.resize=function(q){q+=2;var Z=this.offsets;this.offsets=new Float64Array(q+1);var F=this.startTicks;this.startTicks=new Float64Array(q+1);for(q=0;q0&&q&&(F=F.range.end+1,q=Math.min(q,this.info.contentLength-F),q>0&&B.push(new b6(4,this,js(F,q),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z)));return new Iv(B)}; g.r.AG=function(q){if(q.info.type===1){if(this.D)return;this.D=Aq(q.K)}else if(q.info.type===2){if(this.Z||this.index.F3()>=0)return;if(g.Wv(this.info)){var Z=this.index,F=g.Xd(q);q=q.info.range.start;var B=g.pN(F,0,1936286840);F=Yzy(B);Z.D=F.timescale;var f=F.L6;Z.offsets[0]=F.kR+q+B.size;Z.startTicks[0]=f;Z.K=!0;q=F.iG.length;for(B=0;B0&&q===D[0].gX)for(q=0;q=Z+F)break}f.length||(q=new g.M2("b189619593",""+q,""+Z,""+F),g.mM(q));return new Iv(f)}; g.r.rW=function(q){for(var Z=this.Or(q.info),F=q.info.range.start+q.info.K,B=[],f=0;f=this.index.kE(F+1);)F++;return this.qq(F,Z,q.S).TP}; g.r.Mz=function(q){q.a6();return this.wR()?!0:q.range.end+1this.info.contentLength&&(Z=new zI(Z.start,this.info.contentLength-1)),new Iv([new b6(4,q.D,Z,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,q.clipId)]);q.type===4&&(q=this.Or(q),q=q[q.length-1]);var F=0,B=q.range.start+q.K+q.S;q.type===3&&(q.a6(),F=q.Uc,B===q.range.end+1&&(F+=1));return this.qq(F,B,Z)}; g.r.Ji=function(){return null}; g.r.Ly=function(q,Z){Z=Z===void 0?!1:Z;q=this.index.eI(q);Z&&(q=Math.min(this.index.F3(),q+1));return this.qq(q,this.index.kE(q),0,void 0)}; g.r.j7=function(){return!0}; g.r.nY=function(){return!0}; g.r.OD=function(){return!1}; g.r.Iw=function(){return this.indexRange.length+this.initRange.length}; g.r.Ox=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var M0={},L8B=(M0.COLOR_PRIMARIES_BT709="bt709",M0.COLOR_PRIMARIES_BT2020="bt2020",M0.COLOR_PRIMARIES_UNKNOWN=null,M0.COLOR_PRIMARIES_UNSPECIFIED=null,M0),o2={},LIG=(o2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",o2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",o2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",o2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",o2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,o2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,o2);g.w4.prototype.getName=function(){return this.name}; g.w4.prototype.getId=function(){return this.id}; g.w4.prototype.getIsDefault=function(){return this.isDefault}; g.w4.prototype.toString=function(){return this.name}; g.w4.prototype.getName=g.w4.prototype.getName;g.w4.prototype.getId=g.w4.prototype.getId;g.w4.prototype.getIsDefault=g.w4.prototype.getIsDefault;var pSb=/action_display_post/;var crD,cc,JE;g.V(i_,g.In);g.r=i_.prototype;g.r.isLoading=function(){return this.state===1}; g.r.WY=function(){return this.state===3}; g.r.k8p=function(q){var Z=q.getElementsByTagName("Representation");if(q.getElementsByTagName("SegmentList").length>0||q.getElementsByTagName("SegmentTemplate").length>0){this.d2=this.K=!0;this.X||(this.X=new LWB);GVy(this.X,q);this.publish("refresh");for(q=0;q=0?S=Ns(U):l=l+"?range="+U}b.call(n,new fH(N.Uc,N.startSecs,N.jC,N.D,l,S,N.K))}B=f}F.update(B,this.isLive,this.HG)}P7K(this.X);return!0}this.duration=c0Z(WI(q,"mediaPresentationDuration"));a:{for(q= 0;q0))return this.G3()-q}}q=this.D;for(var Z in q){var F=q[Z].index;if(F.isLoaded()&&!vp(q[Z].info.mimeType))return F.PZ()}return 0}; g.r.getStreamTimeOffset=function(){return this.V}; g.r.rh=function(q){for(var Z in this.D){var F=this.D[Z].index;if(F.isLoaded()){var B=F.eI(q),f=F.rh(B);if(f)return f+q-F.getStartTime(B)}}return NaN}; var z9=null,Iat,mg=!((Iat=navigator.mediaCapabilities)==null||!Iat.decodingInfo),vo9={commentary:1,alternate:2,dub:3,main:4};var rn=new Set,WF=new Map;NU.prototype.clone=function(q){return new NU(this.flavor,q,this.K,this.experiments)}; NU.prototype.Ey=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; NU.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 C0m={},F6=(C0m.playready=["com.youtube.playready","com.microsoft.playready"],C0m.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],C0m),qY={},r0B=(qY.widevine="DRM_SYSTEM_WIDEVINE",qY.fairplay="DRM_SYSTEM_FAIRPLAY",qY.playready="DRM_SYSTEM_PLAYREADY",qY),ZN={},hXj=(ZN.widevine=1,ZN.fairplay=2,ZN.playready=3,ZN);var SR;g.V(Jq,g.J); Jq.prototype.initialize=function(q,Z){for(var F=this,B=g.E(Object.keys(q)),f=B.next();!f.done;f=B.next()){f=g.E(q[f.value]);for(var D=f.next();!D.done;D=f.next())if(D=D.value,D.Ni)for(var G=g.E(Object.keys(D.Ni)),n=G.next();!n.done;n=G.next()){var b=n.value;n=b;b=F6[b];!b&&this.U("html5_enable_vp9_fairplay")&&n==="fairplay"&&(b=["com.youtube.fairplay.sbdl"]);if(b){b=g.E(b);for(var N=b.next();!N.done;N=b.next())N=N.value,this.S[N]=this.S[N]||new NU(n,N,D.Ni[n],this.Qs.experiments),this.D[n]=this.D[n]|| {},this.D[n][D.mimeType]=!0}}}Ip()&&(this.S["com.youtube.fairplay"]=new NU("fairplay","com.youtube.fairplay","",this.Qs.experiments),this.U("html5_enable_vp9_fairplay")||(this.D.fairplay=this.D.fairplay||{},this.D.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.D.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.K=RvD(Z,this.useCobaltWidevine,this.U("html5_enable_safari_fairplay")&&!0,this.U("html5_enable_vp9_fairplay")).filter(function(S){return!!F.S[S]})}; Jq.prototype.U=function(q){return this.Qs.experiments.qp(q)};var RXE={"":"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"};Bb.prototype.U=function(q){return this.experiments.qp(q)};var K$9={RED:"red",o9s:"white"};Sw.prototype.Q5=function(q){if(q.t9!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return dtg(this,q)}; Sw.prototype.qp=function(q){return this.flags.get(""+q)==="true"};ll.prototype.A1=function(){return this.S}; ll.prototype.aH=function(){return this.K}; ll.prototype.qp=function(q){q=this.Q5(q);JSON.stringify(q);return q==="true"}; ll.prototype.Q5=function(q){return this.flags[q]};var A_X=Promise.resolve(),fFy=window.queueMicrotask?window.queueMicrotask.bind(window):vRK;m87.prototype.canPlayType=function(q,Z){q=q.canPlayType?q.canPlayType(Z):!1;R_?q=q||cXE[Z]:zl===2.2?q=q||JXe[Z]:mo()&&(q=q||YtE[Z]);return!!q}; m87.prototype.isTypeSupported=function(q){return this.PG?window.cast.receiver.platform.canDisplayType(q):Pf(q)}; var JXe={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},YtE={"application/x-mpegURL":"maybe"},cXE={"application/x-mpegURL":"maybe"};g.V($8,g.In);$8.prototype.add=function(q,Z){if(!this.items[q]&&(Z.Xv||Z.zv||Z.Oa)){var F=this.items,B=Z;Object.isFrozen&&!Object.isFrozen(Z)&&(B=Object.create(Z),Object.freeze(B));F[q]=B;this.publish("vast_info_card_add",q)}}; $8.prototype.remove=function(q){var Z=this.get(q);delete this.items[q];return Z}; $8.prototype.get=function(q){return this.items[q]||null}; $8.prototype.isEmpty=function(){return g.q_(this.items)};lR.prototype.encrypt=function(q){this.D.exports.AES128CTRCipher_encrypt(this.cipher,q.byteOffset,q.byteLength);return q}; lR.prototype.jU=function(){return this.cipher===0}; lR.prototype.dispose=function(){this.D.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};uD.prototype.Vk=function(q,Z){Z=Z===void 0?1:Z;this.Zu+=Z;this.K+=q;q/=Z;for(var F=0;F0)B+="."+UB[f].toFixed(0)+"_"+F.D[f].toFixed(0);else break;F=B}F&&(q[Z]=F)}this.D=new fKy;return q}; g.r.toString=function(){return""};g.r=lXX.prototype;g.r.isActive=function(){return!1}; g.r.Zb=function(){}; g.r.oo=function(){}; g.r.q2=function(){}; g.r.eQ=function(q,Z){Z()}; g.r.Fi=function(){return{}}; g.r.toString=function(){return""};var tQB=new lXX,px5=!!+U0("html5_enable_profiler"),d2_=!!+U0("html5_onesie_enable_profiler"),FC=px5||d2_?new Dcg:tQB,M9Z=px5?FC:tQB,nO=d2_?FC:tQB;GCB.prototype.emscripten_notify_memory_growth=function(){};g.r=Ek.prototype;g.r.malloc=function(q){return this.exports.malloc(q)}; g.r.free=function(q){this.exports.free(q)}; g.r.realloc=function(q,Z){return this.exports.realloc(q,Z)}; g.r.WP=function(q){if(q.buffer!==this.exports.memory.buffer){var Z=this.malloc(q.byteLength);Z=new Uint8Array(this.exports.memory.buffer,Z,q.byteLength);Z.set(q);return Z}}; g.r.sU=function(q){if(q.buffer===this.exports.memory.buffer){var Z=q.slice();this.free(q.byteOffset);return Z}}; var tz7=new function(){this.D=this.K="WebAssembly"in window},X7="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); nO.Zb(Ek,{WP:function(q){return{profile:"copyj2w",Zu:q===void 0?0:Math.ceil(q.byteLength/16)}}, sU:function(q){return{profile:"copyw2j",Zu:q===void 0?0:Math.ceil(q.byteLength/16)}}});o$.prototype.encrypt=function(q,Z){try{return this.D.sU(QbK(this,q,Z))}catch(F){g.bh(Error("ocwce: wasm encrypt failed: "+F))}}; o$.prototype.jU=function(){return this.S}; o$.prototype.dispose=function(){this.jU()||(g.dN(this.K),this.D.free(this.G.byteOffset),this.S=!0)};g.V(s7X,g.J);g.V(seg,g.J);var EI;vI.prototype.add=function(q){if(this.pos+20>this.data.length){var Z=new Uint8Array(this.data.length*2);Z.set(this.data);this.data=Z}for(;q>31;)this.data[this.pos++]=EI[(q&31)+32],q>>=5;this.data[this.pos++]=EI[q|0]}; vI.prototype.D6=function(){return g.SY(this.data.subarray(0,this.pos))}; vI.prototype.reset=function(){this.pos=0};cI.prototype.sT=function(q,Z){var F=Math.pow(this.alpha,q);this.D=Z*(1-F)+F*this.D;this.K+=q}; cI.prototype.Cm=function(){return this.D/(1-Math.pow(this.alpha,this.K))};jRD.prototype.sT=function(q,Z){for(var F=0;F<10;F++){var B=this.D[F],f=B+(F===0?q:0),D=1*Math.pow(2,F);if(f<=D)break;B=Math.min(1,(f-D*.5)/B);for(f=0;f<16;f++)D=this.values[F*16+f]*B,this.values[(F+1)*16+f]+=D,this.D[F+1]+=D,this.values[F*16+f]-=D,this.D[F]-=D}B=F=0;f=8192;Z>8192&&(F=Math.ceil(Math.log(Z/8192)/Math.log(2)),B=8192*Math.pow(2,F-1),f=B*2);F+2>16?this.values[15]+=q:(Z=(Z-B)/(f-B),this.values[F]+=q*(1-Z),this.values[F+1]+=q*Z);this.D[0]+=q}; jRD.prototype.Cm=function(){var q=q===void 0?this.K:q;var Z=Z===void 0?.02:Z;var F=F===void 0?.98:F;for(var B=this.S,f=0;f<16;f++)B[f]=this.values[f];f=this.D[0];for(var D=1;D<11;D++){var G=this.D[D];if(G===0)break;for(var n=Math.min(1,(q-f)/G),b=0;b<16;b++)B[b]+=this.values[D*16+b]*n;f+=G*n;if(n<1)break}for(D=q=G=0;D<16;D++){n=G+B[D]/f;q+=Math.max(0,Math.min(n,F)-Math.max(G,Z))*(D>0?8192*Math.pow(2,D-1):0);if(n>F)break;G=n}return q/(F-Z)};c0.prototype.sT=function(q,Z){q=Math.min(this.D,Math.max(1,Math.round(q*this.resolution)));q+this.K>=this.D&&(this.S=!0);for(;q--;)this.values[this.K]=Z,this.K=(this.K+1)%this.D;this.VQ=!0}; c0.prototype.percentile=function(q){var Z=this;if(!this.S&&this.K===0)return 0;this.VQ&&(g.ch(this.Z,function(F,B){return Z.values[F]-Z.values[B]}),this.VQ=!1); return this.values[this.Z[Math.round(q*((this.S?this.D:this.K)-1))]]||0}; c0.prototype.Cm=function(){return this.j?(this.percentile(this.G-this.j)+this.percentile(this.G)+this.percentile(this.G+this.j))/3:this.percentile(this.G)};g.V(FX,g.J);FX.prototype.HG=function(){var q;(q=this.WG)==null||q.start();by(this)&&this.policy.V&&(this.gq?this.gq.i5():this.o_())};kN9.prototype.U=function(q){return this.experiments.qp(q)};g.V(je8,g.J);var vUg="blogger discover-ads ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Kfk={efn:"caoe",qTr:"capsv",Q6r:"cbrand",mP$:"cbr",YOL:"cbrver",j6L:"cchip",liG:"ccappver",yql:"ccrv",Nps:"cfrmver",cjL:"c",AjF:"cver",mdc:"ctheme",QWF:"cplayer",ArP:"cmodel",GS:"cnetwork",hxc:"cos",OS_VERSION:"cosver",exL:"cplatform",gHa:"crqyear"};g.V(oj,g.J);g.r=oj.prototype;g.r.U=function(q){return this.experiments.qp(q)}; g.r.A1=function(){return this.experiments.A1()}; g.r.aH=function(){return this.experiments.aH()}; g.r.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.r.getVideoUrl=function(q,Z,F,B,f,D,G){Z={list:Z};F&&(f?Z.time_continue=F:Z.t=F);F=G?"music.youtube.com":g.vn(this);f=F==="www.youtube.com";!D&&B&&f?D="https://youtu.be/"+q:g.dh(this)?(D="https://"+F+"/fire",Z.v=q):(D&&f?(D=this.protocol+"://"+F+"/shorts/"+q,B&&(Z.feature="share")):(D=this.protocol+"://"+F+"/watch",Z.v=q),R_&&(q=HqD())&&(Z.ebc=q));return g.gJ(D,Z)}; g.r.getVideoEmbedCode=function(q,Z,F,B){Z="https://"+g.vn(this)+"/embed/"+Z;B&&(Z=g.gJ(Z,{list:B}));B=F.width;F=F.height;Z=S$(Z);q=S$(q!=null?q:"YouTube video player");return'')}; g.r.supportsGaplessAudio=function(){return g.l2&&!R_&&RR()>=74||g.Y2&&g.Jw(68)?!0:!1}; g.r.supportsGaplessShorts=function(){return!this.U("html5_enable_short_gapless")||this.Oc||g.GW?!1:!0}; g.r.getPlayerType=function(){return this.D.cplayer}; g.r.Nl=function(){return this.OP}; var cTB=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],rGB=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],nGb=[19];var BS={},JOK=(BS["140"]={numChannels:2},BS["141"]={numChannels:2},BS["251"]={audioSampleRate:48E3,numChannels:2},BS["774"]={audioSampleRate:48E3,numChannels:2},BS["380"]={numChannels:6},BS["328"]={numChannels:6},BS["773"]={},BS),fT={},cOK=(fT["1"]='video/mp4; codecs="av01.0.08M.08"',fT["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',fT["1e"]='video/mp4; codecs="av01.0.08M.08"',fT["9"]='video/webm; codecs="vp9"',fT["("]='video/webm; codecs="vp9"',fT["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', fT.h='video/mp4; codecs="avc1.64001e"',fT.H='video/mp4; codecs="avc1.64001e"',fT.o='audio/webm; codecs="opus"',fT.a='audio/mp4; codecs="mp4a.40.2"',fT.ah='audio/mp4; codecs="mp4a.40.2"',fT.mac3='audio/mp4; codecs="ac-3"; channels=6',fT.meac3='audio/mp4; codecs="ec-3"; channels=6',fT.i='audio/mp4; codecs="iamf.001.001.Opus"',fT),DN={},BXm=(DN["337"]={width:3840,height:2160,bitrate:3E7,fps:30},DN["336"]={width:2560,height:1440,bitrate:15E6,fps:30},DN["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, DN["702"]={width:7680,height:4320,bitrate:4E7,fps:60},DN["701"]={width:3840,height:2160,bitrate:2E7,fps:60},DN["700"]={width:2560,height:1440,bitrate:1E7,fps:60},DN["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},DN["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},DN["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},DN["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, DN["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},DN["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},DN["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},DN["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},DN["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},DN["315"]={width:3840,height:2160,bitrate:2E7,fps:60},DN["308"]={width:2560, height:1440,bitrate:1E7,fps:60},DN["303"]={width:1920,height:1080,bitrate:5E6,fps:60},DN["302"]={width:1280,height:720,bitrate:25E5,fps:60},DN["299"]={width:1920,height:1080,bitrate:75E5,fps:60},DN["298"]={width:1280,height:720,bitrate:35E5,fps:60},DN["571"]={width:7680,height:4320,bitrate:3E7,fps:60},DN["401"]={width:3840,height:2160,bitrate:15E6,fps:60},DN["400"]={width:2560,height:1440,bitrate:75E5,fps:60},DN["399"]={width:1920,height:1080,bitrate:2E6,fps:60},DN["398"]={width:1280,height:720,bitrate:1E6, fps:60},DN["397"]={width:854,height:480,bitrate:4E5,fps:30},DN["396"]={width:640,height:360,bitrate:25E4,fps:30},DN["787"]={width:1080,height:608,bitrate:2E5,fps:30},DN["788"]={width:1080,height:608,bitrate:4E5,fps:30},DN["572"]={width:7680,height:4320,bitrate:3E7,fps:60},DN["555"]={width:3840,height:2160,bitrate:15E6,fps:60},DN["554"]={width:2560,height:1440,bitrate:75E5,fps:60},DN["553"]={width:1920,height:1080,bitrate:2E6,fps:60},DN["552"]={width:1280,height:720,bitrate:1E6,fps:60},DN["551"]={width:854, height:480,bitrate:4E5,fps:30},DN["550"]={width:640,height:360,bitrate:25E4,fps:30},DN["313"]={width:3840,height:2160,bitrate:8E6,fps:30},DN["271"]={width:2560,height:1440,bitrate:4E6,fps:30},DN["248"]={width:1920,height:1080,bitrate:2E6,fps:30},DN["247"]={width:1280,height:720,bitrate:15E5,fps:30},DN["244"]={width:854,height:480,bitrate:52E4,fps:30},DN["243"]={width:640,height:360,bitrate:28E4,fps:30},DN["137"]={width:1920,height:1080,bitrate:4E6,fps:30},DN["136"]={width:1280,height:720,bitrate:3E6, fps:30},DN["135"]={width:854,height:480,bitrate:1E6,fps:30},DN["385"]={width:1920,height:1080,bitrate:6503313,fps:60},DN["376"]={width:1280,height:720,bitrate:5706960,fps:60},DN["384"]={width:1280,height:720,bitrate:3660979,fps:60},DN["225"]={width:1280,height:720,bitrate:5805E3,fps:30},DN["224"]={width:1280,height:720,bitrate:453E4,fps:30},DN["145"]={width:1280,height:720,bitrate:2682052,fps:30},DN);g.r=Nv.prototype;g.r.getInfo=function(){return this.D}; g.r.ML=function(){return null}; g.r.nj=function(){var q=this.ML();return q?(q=g.DA(q.m6),Number(q.expire)):NaN}; g.r.Zf=function(){}; g.r.getHeight=function(){return this.D.video.height};Bp7.prototype.build=function(){oFD(this);var q=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],Z={};a:if(this.D)var F=this.D;else{F="";for(var B=g.E(this.S),f=B.next();!f.done;f=B.next())if(f=f.value,f.fB){if(f.fB.getIsDefault()){F=f.fB.getId();break a}F||(F=f.fB.getId())}}B=g.E(this.S);for(f=B.next();!f.done;f=B.next())if(f=f.value,this.j||!f.fB||f.fB.getId()===F)Z[f.itag]||(Z[f.itag]=[]),Z[f.itag].push(f);F=g.E(this.K);for(B=F.next();!B.done;B=F.next())if(B=B.value,f=Z[B.D]){f=g.E(f);for(var D=f.next();!D.done;D= f.next()){var G=q,n=G.push;D=D.value;var b="#EXT-X-MEDIA:TYPE=AUDIO,",N="YES",S="audio";if(D.fB){S=D.fB;var l=S.getId().split(".")[0];l&&(b+='LANGUAGE="'+l+'",');(this.D?this.D===S.getId():S.getIsDefault())||(N="NO");S=S.getName()}l="";B!==null&&(l=B.itag.toString());l=P8j(this,D.url,l);b=b+('NAME="'+S+'",DEFAULT='+(N+',AUTOSELECT=YES,GROUP-ID="'))+(ET9(D,B)+'",URI="'+(l+'"'));n.call(G,b)}}F=g.E(this.Z);for(B=F.next();!B.done;B=F.next())B=B.value,f=VQ5,B=(G=B.fB)?'#EXT-X-MEDIA:URI="'+P8j(this,B.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+f+'",LANGUAGE="'+G.getId()+'",NAME="'+G.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,B&&q.push(B);F=this.Z.length>0?VQ5:void 0;B=g.E(this.K);for(f=B.next();!f.done;f=B.next())f=f.value,n=Z[f.D],G=void 0,((G=n)==null?void 0:G.length)>0&&(G=f,n=n[0],n="#EXT-X-STREAM-INF:BANDWIDTH="+(G.bitrate+n.bitrate)+',CODECS="'+(G.codecs+","+n.codecs+'",RESOLUTION=')+(G.width+"x"+G.height+',AUDIO="')+(ET9(n,G)+'",')+(F?'SUBTITLES="'+F+'",':"")+"CLOSED-CAPTIONS=NONE",G.fps>1&&(n+= ",FRAME-RATE="+G.fps),G.Rq&&(n+=",VIDEO-RANGE="+G.Rq),q.push(n),q.push(P8j(this,f.url,"")));return q.join("\n")}; var VQ5="text";g.V(xI,Nv);xI.prototype.nj=function(){return this.expiration}; xI.prototype.ML=function(){if(!this.m6||this.m6.jU()){var q=this.K.build();q="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(q);this.m6=new vd(q)}return this.m6};g.V(wF,Nv);wF.prototype.ML=function(){return new vd(this.K.fP())}; wF.prototype.Zf=function(){this.K=Mj(59,this.K)};g.V(C8,Nv);C8.prototype.ML=function(){return new vd(this.K)};var GC={},pDm=(GC.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",GC.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",GC.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",GC.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",GC);g.r=g.G9.prototype;g.r.getId=function(){return this.id}; g.r.getName=function(){return this.name}; g.r.isServable=function(){return this.D}; g.r.fP=function(){return this.url}; g.r.getXtags=function(){return this.xtags}; g.r.toString=function(){return this.languageCode+": "+g.va(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.r.equals=function(q){return q?this.toString()===q.toString():!1}; g.r.hP=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var JiD={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},YHy={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},t16=/^(\d*)_((\d*)_?(\d*))$/;var um7={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},fx_={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var zC={},eX5=(zC.ALWAYS=1,zC.BY_REQUEST=3,zC.UNKNOWN=void 0,zC),nT={},TBm=(nT.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",nT.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",nT.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",nT.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",nT);var zsg; zsg=function(q){for(var Z=Object.keys(q),F={},B=0;BB-Z?-1:q}; g.r.cR=function(){return this.K.F3()}; g.r.ZT=function(){return this.K.X8()}; g.r.B$=function(q){this.K=q};g.V(ed,gS);ed.prototype.K=function(q,Z){return gS.prototype.K.call(this,"$N|"+q,Z)}; ed.prototype.Z=function(q,Z,F){return new H2(q,Z,F,this.isLive)};g.V(g.wc,g.In);g.r=g.wc.prototype; g.r.setData=function(q){q=q||{};var Z=q.errordetail;Z!=null&&(this.errorDetail=Z);var F=q.errorcode;F!=null?this.errorCode=F:q.status==="fail"&&(this.errorCode="auth");var B=q.reason;B!=null&&(this.errorReason=B);var f=q.subreason;f!=null&&(this.r3=f);this.clientPlaybackNonce||(this.clientPlaybackNonce=q.cpn||(this.Qs.Nl()?"r"+g.ZY(15):g.ZY(16)));this.vG=eA(this.Qs.vG,q.livemonitor);nrG(this,q);var D=q.raw_player_response;if(D)this.g4=D;else{var G=q.player_response;G&&(D=JSON.parse(G))}D&&(this.playerResponse= D);if(this.playerResponse){var n=this.playerResponse.annotations;if(n)for(var b=g.E(n),N=b.next();!N.done;N=b.next()){var S=N.value.playerAnnotationsUrlsRenderer;if(S){S.adsOnly&&(this.Gy=!0);var l=S.loadPolicy;l&&(this.annotationsLoadPolicy=eX5[l]);var U=S.invideoUrl;U&&(this.WG=V7(U));break}}var u=this.playerResponse.attestation;u&&WN6(this,u);var P=this.playerResponse.cotn;P&&(this.cotn=P);var W=this.playerResponse.heartbeatParams;if(W){this.Se=!0;var H=W.heartbeatToken;H&&(this.drmSessionId=W.drmSessionId|| "",this.heartbeatToken=H,this.E4=Number(W.intervalMilliseconds),this.GR=Number(W.maxRetries),this.Xg=!!W.softFailOnError,this.KM=!!W.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=W.heartbeatServerData;var X;this.PY=!((X=W.heartbeatAttestationConfig)==null||!X.requiresAttestation)}var Q=this.playerResponse.messages;Q&&BF7(this,Q);var a=this.playerResponse.overlay;if(a){var m=a.playerControlsOverlayRenderer;if(m)if(orX(this,m.controlBgHtml),m.mutedAutoplay){var c=g.C(m.mutedAutoplay,S68);if(c&& c.endScreen){var e=g.C(c.endScreen,lKE);e&&e.text&&(this.aO=g.HD(e.text))}}else this.mutedAutoplay=!1}var Y=this.playerResponse.playabilityStatus;if(Y){var Zg=Y.backgroundability;Zg&&Zg.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var GZ,FD;if((GZ=Y.offlineability)==null?0:(FD=GZ.offlineabilityRenderer)==null?0:FD.offlineable)this.offlineable=!0;var Ny=Y.contextParams;Ny&&(this.contextParams=Ny);var qy=Y.pictureInPicture;qy&&qy.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);Y.playableInEmbed&&(this.allowEmbed=!0);var y9=Y.ypcClickwrap;if(y9){var dX=y9.playerLegacyDesktopYpcClickwrapRenderer,z0=y9.ypcRentalActivationRenderer;if(dX)this.P5=dX.durationMessage||"",this.SW=!0;else if(z0){var G0=z0.durationMessage;this.P5=G0?g.HD(G0):"";this.SW=!0}}var aG=Y.errorScreen;if(aG){if(aG.playerLegacyDesktopYpcTrailerRenderer){var $B=aG.playerLegacyDesktopYpcTrailerRenderer;this.JJ=$B.trailerVideoId||"";var T0=aG.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var v5=T0&&T0.ypcTrailerRenderer}else if(aG.playerLegacyDesktopYpcOfferRenderer)$B= aG.playerLegacyDesktopYpcOfferRenderer;else if(aG.ypcTrailerRenderer){v5=aG.ypcTrailerRenderer;var aE=v5.fullVideoMessage;this.c5=aE?g.HD(aE):"";var v,tB;this.JJ=((v=g.C(v5,UcB))==null?void 0:(tB=v.videoDetails)==null?void 0:tB.videoId)||""}$B&&(this.Qm=$B.itemTitle||"",$B.itemUrl&&(this.aK=$B.itemUrl),$B.itemBuyUrl&&(this.h$=$B.itemBuyUrl),this.LH=$B.itemThumbnail||"",this.eK=$B.offerHeadline||"",this.AJ=$B.offerDescription||"",this.mD=$B.offerId||"",this.IK=$B.offerButtonText||"",this.nW=$B.offerButtonFormattedText|| null,this.lJ=$B.overlayDurationMsec||NaN,this.c5=$B.fullVideoMessage||"",this.PX=!0);if(v5){var n7=g.C(v5,UcB);if(n7)this.Aj={raw_player_response:n7};else{var Km=g.C(v5,Qbj);this.Aj=Km?lX(Km):null}this.PX=!0}}}var O=this.playerResponse.playbackTracking;if(O){var M=q,Ws=$4(O.googleRemarketingUrl);Ws&&(this.googleRemarketingUrl=Ws);var GX=$4(O.youtubeRemarketingUrl);GX&&(this.youtubeRemarketingUrl=GX);var pe=O.heartbeatLoggingToken;pe&&(this.heartbeatLoggingToken=pe);var qM={},My=$4(O.ptrackingUrl); if(My){var TZ=ME(My),AY=TZ.oid;AY&&(this.v6=AY);var x=TZ.pltype;x&&(this.JB=x);var L=TZ.ptchn;L&&(this.s8=L);var A=TZ.ptk;A&&(this.PP=encodeURIComponent(A));var k=TZ.m;k&&(this.qF=k)}var d=$4(O.qoeUrl);if(d){for(var zZ=g.DA(d),t=g.E(Object.keys(zZ)),BD=t.next();!BD.done;BD=t.next()){var I=BD.value,AK=zZ[I];zZ[I]=Array.isArray(AK)?AK.join(","):AK}this.EF=zZ;var i8=zZ.cat;i8&&(this.U("html5_enable_qoe_cat_list")?this.Si=this.Si.concat(i8.split(",")):this.bI=i8);var WD=zZ.live;WD&&(this.UU=WD);var EK= zZ.drm_product;EK&&(this.drmProduct=EK)}var B5=$4(O.videostatsPlaybackUrl);if(B5){var L7=ME(B5),af=L7.adformat;if(af){M.adformat=af;var eB=this.C(),Fq=pZK(af,this.Qh,eB.G,eB.V);Fq&&(this.adFormat=Fq)}var K7=L7.aqi;K7&&(M.ad_query_id=K7);var iN=L7.autoplay;iN&&(this.Pf=iN=="1",this.Vm=iN=="1");var kB=L7.autonav;kB&&(this.isAutonav=kB=="1");var Oj=L7.delay;Oj&&(this.KB=Mn(Oj));var RG=L7.ei;RG&&(this.eventId=RG);var IQ=$R(L7.adcontext);if(IQ)try{var Qm=S36(IQ);Qm&&(this.IY=Qm)}catch(DW0){g.bh(Error("Malformed adContext"))}if(IQ|| af)this.Pf=!0;var M5=L7.feature;M5&&(this.GE=M5);var fe=L7.list;fe&&(this.playlistId=fe);var RE=L7.of;RE&&(this.JN=RE);var sj=L7.osid;sj&&(this.osid=sj);var LK=L7.referrer;LK&&(this.referrer=LK);var kp=L7.sdetail;kp&&(this.YZ=kp);var l0=L7.ssrt;l0&&(this.jA=l0=="1");var Ut=L7.subscribed;Ut&&(this.subscribed=Ut=="1");var Zq=L7.uga;Zq&&(this.userGenderAge=Zq);var FM=L7.upt;FM&&(this.Rs=FM);var Nc=L7.vm;Nc&&(this.videoMetadata=Nc);qM.playback=L7}var O3=$4(O.videostatsWatchtimeUrl);if(O3){var Bz=ME(O3), fn=Bz.ald;fn&&(this.EY=fn);qM.watchtime=Bz}var Dq=$4(O.atrUrl);if(Dq){var u0=ME(Dq);qM.atr=u0}var Cw=$4(O.engageUrl);if(Cw){var QK=ME(Cw);qM.engage=QK}this.D9=qM;if(O.promotedPlaybackTracking){var oo=O.promotedPlaybackTracking;oo.startUrls&&(this.iD=oo.startUrls);oo.firstQuartileUrls&&(this.kI=oo.firstQuartileUrls);oo.secondQuartileUrls&&(this.wH=oo.secondQuartileUrls);oo.thirdQuartileUrls&&(this.UK=oo.thirdQuartileUrls);oo.completeUrls&&(this.YI=oo.completeUrls);oo.engagedViewUrls&&(oo.engagedViewUrls.length> 1&&g.bh(new g.M2("There are more than one engaged_view_urls.")),this.KK=oo.engagedViewUrls[0])}}var xR=this.playerResponse.playerCueRanges;xR&&xR.length>0&&(this.cueRanges=xR);var A_=this.playerResponse.playerCueRangeSet;A_&&g.yr(this,A_);a:{var Gy=this.playerResponse.adPlacements;if(Gy)for(var zy=g.E(Gy),vj=zy.next();!vj.done;vj=zy.next()){var nn=void 0,bg=void 0,dk=(nn=vj.value.adPlacementRenderer)==null?void 0:(bg=nn.renderer)==null?void 0:bg.videoAdTrackingRenderer;if(dk){var XK=dk;break a}}XK= null}var kT=XK;O&&O.promotedPlaybackTracking&&kT&&g.bh(new g.M2("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var AW;if(!(AW=kT))a:{for(var sb=g.E(this.playerResponse.adSlots||[]),E_=sb.next();!E_.done;E_=sb.next()){var Nr=g.C(E_.value,mZ);if(Nr===void 0||!LVD(Nr))break;var YV=void 0,PA=(YV=Nr.fulfillmentContent)==null?void 0:YV.fulfilledLayout,jF=g.C(PA,$1);if(jF&&aY(jF)){AW=!0;break a}}AW=!1}AW&&(this.FI=!0);var IX=this.playerResponse.playerAds;if(IX)for(var r7= q,tu=g.E(IX),vX=tu.next();!vX.done;vX=tu.next()){var EP=vX.value;if(EP){var w7=EP.playerLegacyDesktopWatchAdsRenderer;if(w7){var HY=w7.playerAdParams;if(HY){HY.autoplay=="1"&&(this.Vm=this.Pf=!0);this.KU=HY.encodedAdSafetyReason||null;HY.showContentThumbnail!==void 0&&(this.uu=!!HY.showContentThumbnail);r7.enabled_engage_types=HY.enabledEngageTypes;break}}}}var zf=this.playerResponse.playerConfig;if(zf){var KX=zf.manifestlessWindowedLiveConfig;if(KX){var K3=Number(KX.minDvrSequence),CP=Number(KX.maxDvrSequence), lS=Number(KX.minDvrMediaTimeMs),UW=Number(KX.maxDvrMediaTimeMs),NW=Number(KX.startWalltimeMs);K3&&(this.Ra=K3);lS&&(this.k$=lS/1E3,this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&Im(this)&&(this.wx=lS/1E3));CP&&(this.WH=CP);UW&&(this.j$=UW/1E3,this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&Im(this)&&(this.Ds=UW/1E3));NW&&(this.VO=NW/1E3);(K3||lS)&&(CP||UW)&&(this.allowLiveDvr=this.isLivePlayback=this.zP=!0,this.OZ=!1)}var Oy=zf.daiConfig;if(Oy){if(Oy.enableDai){this.md= !0;var uS=Oy.enableServerStitchedDai;uS&&(this.enableServerStitchedDai=uS);var KN=Oy.enablePreroll;KN&&(this.e4=KN)}var uV;if(Oy.daiType==="DAI_TYPE_SS_DISABLED"||((uV=Oy.debugInfo)==null?0:uV.isDisabledUnpluggedChannel))this.s4=!0;Oy.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Yz=!0);Oy.allowUstreamerRequestAdconfig&&(this.E9=!0)}var WA=zf.audioConfig;if(WA){var $z=WA.loudnessDb;$z!=null&&(this.yd=$z);var DLZ=WA.trackAbsoluteLoudnessLkfs;DLZ!=null&&(this.Uh=DLZ);var GH7=WA.loudnessTargetLkfs;GH7!= null&&(this.loudnessTargetLkfs=GH7);WA.audioMuted&&(this.vX=!0);WA.muteOnStart&&(this.CS=!0);var Cs=WA.loudnessNormalizationConfig;if(Cs){Cs.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Cs.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var z9D=Cs.minimumLoudnessTargetLkfs;z9D!=null&&(this.minimumLoudnessTargetLkfs=z9D);var n6D=Cs.maxStatefulTimeThresholdSec;n6D!=null&&(this.maxStatefulTimeThresholdSec=n6D)}WA.playAudioOnly&&(this.oa=!0)}var ZwZ=zf.playbackEndConfig; if(ZwZ){var b_G=ZwZ.endSeconds,NK8=ZwZ.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(b_G&&(this.endSeconds=b_G),NK8&&(this.limitedPlaybackDurationInSeconds=NK8))}var R6=zf.fairPlayConfig;if(R6){var g66=R6.certificate;g66&&(this.Oc=$R(g66));var Sn9=Number(R6.keyRotationPeriodMs);Sn9>0&&(this.FP=Sn9);var lwD=Number(R6.keyPrefetchMarginMs);lwD>0&&(this.C8=lwD)}var YL=zf.playbackStartConfig;if(YL){this.uc=Number(YL.startSeconds);var ULB=YL.liveUtcStartSeconds,u6b=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0;ULB&&!u6b&&(this.liveUtcStartSeconds=Number(ULB));var Fmb=YL.startPosition;if(Fmb){var PlZ=Fmb.utcTimeMillis;PlZ&&!u6b&&(this.liveUtcStartSeconds=Number(PlZ)*.001);var rt6=Fmb.streamTimeMillis;rt6&&(this.Lp=Number(rt6)*.001)}this.progressBarStartPosition=YL.progressBarStartPosition;this.progressBarEndPosition=YL.progressBarEndPosition}else{var BB7=zf.skippableSegmentsConfig;if(BB7){var wrb=BB7.introSkipDurationMs;wrb&&(this.Jr=Number(wrb)/1E3);var WnK=BB7.outroSkipDurationMs;WnK&&(this.Vl=Number(WnK)/ 1E3)}}var faK=zf.skippableIntroConfig;if(faK){var ytD=Number(faK.startMs),Lny=Number(faK.endMs);isNaN(ytD)||isNaN(Lny)||(this.cH=ytD,this.OP=Lny)}var H_6=zf.streamSelectionConfig;H_6&&(this.w2=Number(H_6.maxBitrate));var O_X=zf.vrConfig;O_X&&(this.lA=O_X.partialSpherical=="1");var hT=zf.webDrmConfig;if(hT){hT.skipWidevine&&(this.F5=!0);var QlK=hT.widevineServiceCert;QlK&&(this.zs=$R(QlK));hT.useCobaltWidevine&&(this.useCobaltWidevine=!0);hT.startWithNoQualityConstraint&&(this.nD=!0)}var hh=zf.mediaCommonConfig; if(hh){var cF=hh.dynamicReadaheadConfig;if(cF){this.maxReadAheadMediaTimeMs=cF.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=cF.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=cF.readAheadGrowthRateMs||NaN;var xL7,Atk=hh==null?void 0:(xL7=hh.mediaUstreamerRequestConfig)==null?void 0:xL7.videoPlaybackUstreamerConfig;Atk&&(this.oV=$R(Atk));var D2D=hh==null?void 0:hh.sabrContextUpdates;if(D2D&&D2D.length>0)for(var v6b=g.E(D2D),Ga6=v6b.next();!Ga6.done;Ga6=v6b.next()){var Bl=Ga6.value; if(Bl.type&&Bl.value){var xiu={type:Bl.type,scope:Bl.scope,value:$R(Bl.value)||void 0,sendByDefault:Bl.sendByDefault};this.sabrContextUpdates.set(Bl.type,xiu)}}}var XrG=hh.serverPlaybackStartConfig;XrG&&(this.serverPlaybackStartConfig=XrG);hh.useServerDrivenAbr&&(this.sO=!0);var E6K=hh.requestPipeliningConfig;E6K&&(this.requestPipeliningConfig=E6K)}var Kn7=zf.inlinePlaybackConfig;Kn7&&(this.MZ=!!Kn7.showAudioControls);var J6=zf.embeddedPlayerConfig;if(J6){this.embeddedPlayerConfig=J6;var zXD=J6.embeddedPlayerMode; if(zXD){var $LG=this.C();$LG.Y$=zXD;$LG.S=zXD==="EMBEDDED_PLAYER_MODE_PFL"}var awb=J6.permissions;awb&&(this.allowImaMonetization=!!awb.allowImaMonetization)}var Yc=zf.webPlayerConfig;Yc&&(Yc.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Yc.gatewayExperimentGroup),Yc.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var R3=this.playerResponse.streamingData;if(R3){var nP6=R3.formats;if(nP6){for(var RY=[],mLB=g.E(nP6),bwG=mLB.next();!bwG.done;bwG=mLB.next()){var NBD=bwG.value;RY.push(NBD.itag+ "/"+NBD.width+"x"+NBD.height)}this.Z8=RY.join(",");RY=[];for(var i_Z=g.E(nP6),gP8=i_Z.next();!gP8.done;gP8=i_Z.next()){var c2=gP8.value,JT={itag:c2.itag,type:c2.mimeType,quality:c2.quality},kHX=c2.url;kHX&&(JT.url=kHX);var t6=K5(37,c2),Avm=t6.qL,v78=t6.gw,XKt=t6.s;t6.Cj&&(JT.url=Avm,JT.sp=v78,JT.s=XKt);RY.push(g.Ru(JT))}this.gj=RY.join(",")}var Stk=R3.hlsFormats;if(Stk){var slB=zf||null,pE={};if(slB){var lab=slB.audioPairingConfig;if(lab&&lab.pairs)for(var jl7=g.E(lab.pairs),U2y=jl7.next();!U2y.done;U2y= jl7.next()){var Iw8=U2y.value,uTK=Iw8.videoItag;pE[uTK]||(pE[uTK]=[]);pE[uTK].push(Iw8.audioItag)}}for(var Clg={},h9B=g.E(Stk),P07=h9B.next();!P07.done;P07=h9B.next()){var R97=P07.value;Clg[R97.itag]=R97.bitrate}for(var ctD=[],Jt9=g.E(Stk),rXG=Jt9.next();!rXG.done;rXG=Jt9.next()){var Vp=rXG.value,Ed={itag:Vp.itag,type:Vp.mimeType,url:Vp.url,bitrate:Vp.bitrate,width:Vp.width,height:Vp.height,fps:Vp.fps},dn=Vp.audioTrack;if(dn){var Ynk=dn.displayName;Ynk&&(Ed.name=Ynk,Ed.audio_track_id=dn.id,dn.audioIsDefault&& (Ed.is_default="1"))}if(Vp.drmFamilies){for(var twk=[],pr6=g.E(Vp.drmFamilies),wxD=pr6.next();!wxD.done;wxD=pr6.next())twk.push(Oty[wxD.value]);Ed.drm_families=twk.join(",")}var VE=pE[Vp.itag];if(VE&&VE.length){Ed.audio_itag=VE.join(",");var dLK=Clg[VE[0]];dLK&&(Ed.bitrate+=dLK)}var Vwk=yHX(Vp);Vwk&&(Ed.eotf=Vwk);Vp.audioChannels&&(Ed.audio_channels=Vp.audioChannels);ctD.push(g.Ru(Ed))}this.hlsFormats=ctD.join(",")}var Wmb=R3.licenseInfos;if(Wmb&&Wmb.length>0){for(var e97={},TKK=g.E(Wmb),yXk=TKK.next();!yXk.done;yXk= TKK.next()){var MwD=yXk.value,o88=MwD.drmFamily,qpG=MwD.url;o88&&qpG&&(e97[Oty[o88]]=qpG)}this.Ni=e97}var Z8g=R3.drmParams;Z8g&&(this.drmParams=Z8g);var Fuk=R3.dashManifestUrl;Fuk&&(this.LB=g.gJ(Fuk,{cpn:this.clientPlaybackNonce}));var B38=R3.hlsManifestUrl;B38&&(this.hlsvp=B38);var fVk=R3.probeUrl;fVk&&(this.probeUrl=V7(g.gJ(fVk,{cpn:this.clientPlaybackNonce})));var DDD=R3.serverAbrStreamingUrl;DDD&&(this.fD=new g.O_(DDD,!0))}var G8D=this.playerResponse.trackingParams;G8D&&(this.uL=G8D);var Hm=this.playerResponse.videoDetails; if(Hm){var KJ=q,Lmk=Hm.videoId;Lmk&&(this.videoId=Lmk,KJ.video_id||(KJ.video_id=Lmk));var HwZ=Hm.title;HwZ&&(this.title=HwZ,KJ.title||(KJ.title=HwZ));var OwX=Hm.lengthSeconds;OwX&&(this.lengthSeconds=Number(OwX),KJ.length_seconds||(KJ.length_seconds=OwX));var ze8=Hm.keywords;ze8&&(this.keywords=RAb(ze8));var QQK=Hm.channelId;QQK&&(this.Fr=QQK,KJ.ucid||(KJ.ucid=QQK));var n8B=Hm.viewCount;n8B&&(this.rawViewCount=Number(n8B));var x2K=Hm.author;x2K&&(this.author=x2K,KJ.author||(KJ.author=x2K));var b8Z= Hm.shortDescription;b8Z&&(this.shortDescription=b8Z);var N3G=Hm.isCrawlable;N3G&&(this.isListed=N3G);var g86=Hm.musicVideoType;g86&&(this.musicVideoType=g86);var AX8=Hm.isLive;AX8!=null&&(this.isLivePlayback=AX8);if(AX8||Hm.isUpcoming)this.isPremiere=!Hm.isLiveContent;var Sp9=Hm.thumbnail;Sp9&&(this.V=Ig(Sp9));var lVK=Hm.isExternallyHostedPodcast;lVK&&(this.isExternallyHostedPodcast=lVK);var vP9=Hm.viewerLivestreamJoinPosition;if(vP9==null?0:vP9.utcTimeMillis)this.Ob=Mn(vP9.utcTimeMillis);var UDB= zf||null,Xx7=q;Hm.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Hm.isUpcoming&&(this.isUpcoming=!0);if(Hm.isPostLiveDvr){this.OZ=!0;var usb=Hm.latencyClass;usb&&(this.latencyClass=TBm[usb]||"UNKNOWN");Hm.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var EPG=!1;this.vG?(this.allowLiveDvr=Rp()?!0:Tp&&IH<5?!1:!0,this.isLivePlayback=!0):Hm.isLive?(Xx7.livestream="1",this.allowLiveDvr=Hm.isLiveDvrEnabled?Rp()?!0:Tp&&IH<5?!1:!0:!1,this.partnerId=27,EPG=!0):Hm.isUpcoming&&(EPG= !0);if(Hm.isLive||this.vG){Hm.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var P3g=Hm.latencyClass;P3g&&(this.latencyClass=TBm[P3g]||"UNKNOWN");var rmk=Hm.liveChunkReadahead;rmk&&(this.liveChunkReadahead=rmk);var tJ=UDB&&UDB.livePlayerConfig;if(tJ){tJ.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);tJ.hasSubfragmentedWebm&&(this.ut=!0);tJ.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var wnB=tJ.liveExperimentalContentId;wnB&&(this.liveExperimentalContentId=Number(wnB)); var WuD=tJ.isLiveHeadPlayable;this.U("html5_live_head_playable")&&WuD!=null&&(this.isLiveHeadPlayable=WuD)}}EPG&&(this.isLivePlayback=!0,Xx7.adformat&&Xx7.adformat.split("_")[1]!=="8"||this.Y$.push("heartbeat"))}var ymy=Hm.isPrivate;ymy!==void 0&&(this.isPrivate=eA(this.isPrivate,ymy))}if(Y){var Lug=Hm||null,H8X=!1,uY=Y.errorScreen;H8X=uY&&(uY.playerLegacyDesktopYpcOfferRenderer||uY.playerLegacyDesktopYpcTrailerRenderer||uY.ypcTrailerRenderer)?!0:Lug&&Lug.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE", "FULLSCREEN_ONLY"].includes(Y.status);if(!H8X){this.errorCode=DpZ(Y.errorCode)||"auth";var ek=uY&&uY.playerErrorMessageRenderer;if(ek){this.playerErrorMessageRenderer=ek;var O8k=ek.reason;O8k&&(this.errorReason=g.HD(O8k));var Kmg=ek.subreason;Kmg&&(this.r3=g.HD(Kmg),this.TT=Kmg)}else this.errorReason=Y.reason||null;var $2K=Y.status;if($2K==="LOGIN_REQUIRED")this.errorDetail="1";else if($2K==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if($2K==="AGE_CHECK_REQUIRED"){var QVD=Y.errorScreen,xDD= QVD&&QVD.playerKavRenderer;this.errorDetail=xDD&&xDD.kavUrl?"4":"3"}else{var Am7,v8D,XnG,E7E=(XnG=uY==null?void 0:(Am7=uY.playerErrorMessageRenderer)==null?void 0:(v8D=Am7.proceedButton)==null?void 0:v8D.buttonRenderer)==null?void 0:XnG.command;if(Y.isBlockedInRestrictedMode)this.errorDetail="5";else{var E8Z;((E8Z=g.C(E7E,Vmm))==null?void 0:E8Z.signal)==="RELOAD_PAGE"?this.errorDetail="7":this.errorDetail="0"}}}}var Ku9=this.playerResponse.interstitialPods;Ku9&&sDK(this,Ku9);this.WG&&this.eventId&& (this.WG=Z8(this.WG,{ei:this.eventId}));var aa8=this.playerResponse.captions;if(aa8&&aa8.playerCaptionsTracklistRenderer)a:{var $h=aa8.playerCaptionsTracklistRenderer;this.captionTracks=[];if($h.captionTracks)for(var $Dg=g.E($h.captionTracks),m2y=$Dg.next();!m2y.done;m2y=$Dg.next()){var ai=m2y.value,aVk=oEK(ai.baseUrl);if(!aVk)break a;var iwb={is_translateable:!!ai.isTranslatable,languageCode:ai.languageCode,languageName:ai.name&&g.HD(ai.name),url:aVk,vss_id:ai.vssId,kind:ai.kind};iwb.name=ai.trackName; iwb.displayName=ai.name&&g.HD(ai.name);this.captionTracks.push(new g.G9(iwb))}this.D8=$h.audioTracks||[];this.Ae=$h.defaultAudioTrackIndex||0;this.f8=[];if($h.translationLanguages)for(var mDD=g.E($h.translationLanguages),kaK=mDD.next();!kaK.done;kaK=mDD.next()){var pS=kaK.value,fG={};fG.languageCode=pS.languageCode;fG.languageName=g.HD(pS.languageName);if(pS.translationSourceTrackIndices){fG.translationSourceTrackIndices=[];for(var i86=g.E(pS.translationSourceTrackIndices),sQk=i86.next();!sQk.done;sQk= i86.next())fG.translationSourceTrackIndices.push(sQk.value)}if(pS.excludeAudioTrackIndices){fG.excludeAudioTrackIndices=[];for(var k8y=g.E(pS.excludeAudioTrackIndices),jQZ=k8y.next();!jQZ.done;jQZ=k8y.next())fG.excludeAudioTrackIndices.push(jQZ.value)}this.f8.push(fG)}this.u4=[];if($h.defaultTranslationSourceTrackIndices)for(var sVD=g.E($h.defaultTranslationSourceTrackIndices),IaB=sVD.next();!IaB.done;IaB=sVD.next())this.u4.push(IaB.value);this.cC=!!$h.contribute&&!!$h.contribute.captionsMetadataRenderer}(this.clipConfig= this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.uc=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Bx6(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var jVg;this.compositeLiveIngestionOffsetToken=(jVg=this.playerResponse.playbackTracking)==null?void 0:jVg.compositeLiveIngestionOffsetToken; var IVK;this.compositeLiveStatusToken=(IVK=this.playerResponse.playbackTracking)==null?void 0:IVK.compositeLiveStatusToken;this.U("html5_fill_default_mosaic_audio_track_id")&&MI(this)&&(this.Qs.eU=qrK(this,this.U("html5_cdm_use_first_as_default_audio_track")));var C3X,heG,ReD=(C3X=this.playerResponse.playerConfig)==null?void 0:(heG=C3X.granularVariableSpeedConfig)==null?void 0:heG.minimumPlaybackRate,cmZ,Jm8,YpK=(cmZ=this.playerResponse.playerConfig)==null?void 0:(Jm8=cmZ.granularVariableSpeedConfig)== null?void 0:Jm8.maximumPlaybackRate;ReD&&YpK&&(this.LO=ReD/100,this.H6=YpK/100)}Rg(this,q);var teD=q.raw_reel_item_watch_response;teD&&(this.reelItemWatchResponse=teD);q.queue_info&&(this.queueInfo=q.queue_info);var pn8=q.hlsdvr;pn8!=null&&(this.allowLiveDvr=Number(pn8)===1?Rp()?!0:Tp&&IH<5?!1:!0:!1);this.adQueryId=q.ad_query_id||null;this.KU||(this.KU=q.encoded_ad_safety_reason||null);this.vX=eA(this.vX,q.infringe||q.muted);this.qPp=q.authkey;this.LT=q.authuser;this.mutedAutoplay=eA(this.mutedAutoplay, q&&q.playmuted);this.mutedAutoplayDurationMode=Ax(this.mutedAutoplayDurationMode,q&&q.muted_autoplay_duration_mode);this.Xp=eA(this.Xp,q&&q.mutedautoplay);var Th=q.length_seconds;Th&&(this.lengthSeconds=typeof Th==="string"?Mn(Th):Th);if(this.isAd()||this.E$||!g.pP(g.VZ(this.Qs)))this.endSeconds=Ax(this.endSeconds,this.Vl||q.end||q.endSeconds);else{var KD6=g.VZ(this.Qs),Ms=this.lengthSeconds;switch(KD6){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Ms>30?this.limitedPlaybackDurationInSeconds= 30:Ms<30&&Ms>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=Ms*.2}}this.uL=bU(this.uL,q.itct);this.NL=eA(this.NL,q.is_live_destination);this.isLivePlayback=eA(this.isLivePlayback,q.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.d2();q.isUpcoming&&(this.isUpcoming=eA(this.isUpcoming,q.isUpcoming));this.OZ=eA(this.OZ,q.post_live_playback);this.zP&&(this.OZ=!1);this.isMdxPlayback= eA(this.isMdxPlayback,q.mdx);var oW=q.mdx_control_mode;oW&&(this.mdxControlMode=typeof oW==="number"?oW:Mn(oW));this.isInlinePlaybackNoAd=eA(this.isInlinePlaybackNoAd,q.is_inline_playback_no_ad);this.Tb=Ax(this.Tb,q.reload_count);this.reloadReason=bU(this.reloadReason,q.reload_reason);this.uu=eA(this.uu,q.show_content_thumbnail);this.cycToken=q.cyc||null;var dDZ=SZ(q);Object.keys(dDZ).length>0&&(this.V=dDZ);this.dU=bU(this.dU,q.vvt);this.mdxEnvironment=bU(this.mdxEnvironment,q.mdx_environment);q.source_container_playlist_id&& (this.sourceContainerPlaylistId=q.source_container_playlist_id);q.serialized_mdx_metadata&&(this.serializedMdxMetadata=q.serialized_mdx_metadata);this.qlE=q.osig;this.eventId||(this.eventId=q.eventid);this.osid||(this.osid=q.osid);this.playlistId=bU(this.playlistId,q.list);q.index&&(this.playlistIndex=this.playlistIndex===void 0?Ax(0,q.index):Ax(this.playlistIndex,q.index));this.Tz=q.pyv_view_beacon_url;this.Pm=q.pyv_quartile25_beacon_url;this.DF=q.pyv_quartile50_beacon_url;this.Ku=q.pyv_quartile75_beacon_url; this.s3=q.pyv_quartile100_beacon_url;var VeK=q.session_data;!this.Sp&&VeK&&(this.Sp=gK(VeK,"&").feature);this.isFling=Ax(this.isFling?1:0,q.is_fling)===1;this.vnd=Ax(this.vnd,q.vnd);this.forceAdsUrl=bU(this.forceAdsUrl,q.force_ads_url);this.R6=bU(this.R6,q.ctrl);this.qB=bU(this.qB,q.ytr);this.vJ=q.ytrcc;this.Gl=q.ytrexp;this.dH=q.ytrext;this.lx=bU(this.lx,q.adformat);this.Qh=bU(this.Qh,q.attrib);this.slotPosition=Ax(this.slotPosition,q.slot_pos);this.breakType=q.break_type;this.jA=eA(this.jA,q.ssrt); this.videoId=Ze(q)||this.videoId;this.j=bU(this.j,q.vss_credentials_token);this.Fk=bU(this.Fk,q.vss_credentials_token_type);this.oa=eA(this.oa,q.audio_only);this.HG=eA(this.HG,q.aac_high);this.sb=eA(this.sb,q.prefer_low_quality_audio);this.i4=eA(this.i4,q.uncap_inline_quality);this.U("html5_enable_qoe_cat_list")?q.qoe_cat&&(this.Si=this.Si.concat(q.qoe_cat.split(","))):this.bI=bU(this.bI,q.qoe_cat);this.aZ=eA(this.aZ,q.download_media);var eeG=q.prefer_gapless;this.X=eeG!=null?eA(this.X,eeG):this.X? this.X:this.Qs.preferGapless&&this.Qs.supportsGaplessShorts();rvD(this.playerResponse)&&this.Y$.push("ad");var T3D=q.adaptive_fmts;T3D&&(this.adaptiveFormats=T3D,this.iL("adpfmts",{},!0));var Me6=q.allow_embed;Me6&&(this.allowEmbed=Number(Me6)===1);var oc6=q.backgroundable;oc6&&(this.backgroundable=Number(oc6)===1);var qxD=q.autonav;qxD&&(this.isAutonav=Number(qxD)===1);var ZEg=q.autoplay;ZEg&&(this.Pf=this.Vm=Number(ZEg)===1);var FL6=q.iv_load_policy;FL6&&(this.annotationsLoadPolicy=x0(this.annotationsLoadPolicy, FL6,n$));var BnB=q.cc_lang_pref;BnB&&(this.captionsLanguagePreference=bU(BnB,this.captionsLanguagePreference));var fOB=q.cc_load_policy;fOB&&(this.qa=x0(this.qa,fOB,n$));var Ds9;this.deviceCaptionsOn=(Ds9=q.device_captions_on)!=null?Ds9:void 0;var Ghy;this.TF=(Ghy=q.device_captions_lang_pref)!=null?Ghy:"";var z0y;this.Gw=(z0y=q.viewer_selected_caption_langs)!=null?z0y:[];var nc9=q.cached_load;nc9&&(this.RJ=eA(this.RJ,nc9));if(q.dash==="0"||q.dash===0||q.dash===!1)this.mF=!0;var bEg=q.dashmpd;bEg&& (this.LB=g.gJ(bEg,{cpn:this.clientPlaybackNonce}));var NnK=q.delay;NnK&&(this.KB=Mn(NnK));var C08=this.Vl||q.end;if(this.Hg?C08!=null:C08!=void 0)this.clipEnd=Ax(this.clipEnd,C08);var gc7=q.fmt_list;gc7&&(this.Z8=gc7);q.heartbeat_preroll&&this.Y$.push("heartbeat");MQj&&(this.TZ=-Math.floor(Math.random()*10),this.Eb=-Math.floor(Math.random()*40));var Sxy=q.is_listed;Sxy&&(this.isListed=eA(this.isListed,Sxy));var lOk=q.is_private;lOk&&(this.isPrivate=eA(this.isPrivate,lOk));var Usb=q.is_dni;Usb&&(this.z3= eA(this.z3,Usb));var ueG=q.dni_color;ueG&&(this.Lx=bU(this.Lx,ueG));var PoD=q.pipable;PoD&&(this.pipable=eA(this.pipable,PoD));this.W4=(this.e6=this.pipable&&this.Qs.nU)&&!this.Qs.showMiniplayerButton;var r6K=q.paid_content_overlay_duration_ms;r6K&&(this.paidContentOverlayDurationMs=Mn(r6K));var wFD=q.paid_content_overlay_text;wFD&&(this.paidContentOverlayText=wFD);var WLX=q.url_encoded_fmt_stream_map;WLX&&(this.gj=WLX);var y6D=q.hls_formats;y6D&&(this.hlsFormats=y6D);var LLB=q.hlsvp;LLB&&(this.hlsvp= LLB);var qo=q.live_start_walltime;qo&&(this.A8U=typeof qo==="number"?qo:Mn(qo));var ZM=q.live_manifest_duration;ZM&&(this.v2=typeof ZM==="number"?ZM:Mn(ZM));var HE9=q.player_params;HE9&&(this.playerParams=HE9);var OEX=q.partnerid;OEX&&(this.partnerId=Ax(this.partnerId,OEX));var Q6b=q.probe_url;Q6b&&(this.probeUrl=V7(g.gJ(Q6b,{cpn:this.clientPlaybackNonce})));var hXK=q.pyv_billable_url;hXK&&Vh6(hXK)&&(this.KK=hXK);var RXX=q.pyv_conv_url;RXX&&Vh6(RXX)&&(this.E3=RXX);TU6(this,q);this.startSeconds>0? this.U("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.uc||this.Jr||q.start||q.startSeconds)&&this.iL("lss",{css:this.startSeconds,pcss:this.uc,iss:this.Jr,ps:q.start||void 0,pss:q.startSeconds||void 0}):this.Gb=this.startSeconds=Ax(this.startSeconds,this.uc||this.Jr||q.start||q.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var xsD=q.live_utc_start;if(xsD!=null)this.liveUtcStartSeconds=Number(xsD);else{var cXG=this.startSeconds;cXG&&isFinite(cXG)&&cXG> 1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var A69=q.utc_start_millis;A69&&(this.liveUtcStartSeconds=Number(A69)*.001)}var vcb=q.stream_time_start_millis;vcb&&(this.Lp=Number(vcb)*.001);var JXb=this.Jr||q.start;(this.Hg?JXb==null||Number(q.resume)===1:JXb==void 0||q.resume=="1")||this.isLivePlayback||(this.clipStart=Ax(this.clipStart,JXb));var XF7=q.url_encoded_third_party_media;XF7&&(this.Gs=sR(XF7));var YtX=q.ypc_offer_button_formatted_text; if(YtX){var Eck=JSON.parse(YtX);this.nW=Eck!=null?Eck:null;this.gg=YtX}var KLD=q.ypc_offer_button_text;KLD&&(this.IK=KLD);var $sG=q.ypc_offer_description;$sG&&(this.AJ=$sG);var aOg=q.ypc_offer_headline;aOg&&(this.eK=aOg);var msD=q.ypc_full_video_message;msD&&(this.c5=msD);var iEG=q.ypc_offer_id;iEG&&(this.mD=iEG);var khb=q.ypc_buy_url;khb&&(this.h$=khb);var s6B=q.ypc_item_thumbnail;s6B&&(this.LH=s6B);var j68=q.ypc_item_title;j68&&(this.Qm=j68);var IOK=q.ypc_item_url;IOK&&(this.aK=IOK);var CoK=q.ypc_vid; CoK&&(this.JJ=CoK);q.ypc_overlay_timeout&&(this.lJ=Number(q.ypc_overlay_timeout));var h0D=q.ypc_trailer_player_vars;h0D&&(this.Aj=lX(h0D));var R0y=q.ypc_original_itct;R0y&&(this.yA=R0y);this.Fr=bU(this.Fr,q.ucid);this.pY=q.storyboard_spec||null;this.Jy=q.live_storyboard_spec||null;this.xA=q.iv_endscreen_url||null;this.PX=eA(this.PX,q.ypc_module);this.SW=eA(this.SW,q.ypc_clickwrap_module);this.PX&&this.Y$.push("ypc");this.SW&&this.Y$.push("ypcRentalActivation");this.on={video_id:q.video_id,eventid:q.eventid, cbrand:q.cbrand,cbr:q.cbr,cbrver:q.cbrver,c:q.c,cver:q.cver,ctheme:q.ctheme,cplayer:q.cplayer,cmodel:q.cmodel,cnetwork:q.cnetwork,cos:q.cos,cosver:q.cosver,cplatform:q.cplatform,user_age:q.user_age,user_display_image:q.user_display_image,user_display_name:q.user_display_name,user_gender:q.user_gender,csi_page_type:q.csi_page_type,csi_service_name:q.csi_service_name,enablecsi:q.enablecsi,enabled_engage_types:q.enabled_engage_types};Mok(this,q);var c6D=q.cotn;c6D&&(this.cotn=c6D);if(Z3K(this))hA(this)&& (this.isLivePlayback&&this.LB&&(this.GA=!0),this.Oc&&(this.M4=!0));else if(eS9(this))this.GA=!0;else{var J6X,YxX,tkg=((J6X=this.playerResponse)==null?void 0:(YxX=J6X.streamingData)==null?void 0:YxX.adaptiveFormats)||[],dW=null;if(tkg.length>0)dW=QJK(this,tkg);else if(!this.U("html5_deprecate_adaptive_formats_string")){this.iL("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var pFK=this.adaptiveFormats;if(pFK&&!hA(this)){this.Qs.Z.S&&(mg=!0);var Vc=Jt(pFK),tQK=this.Ni,ds9=this.lengthSeconds,a$5= this.isLivePlayback,Y1=this.OZ,es=this.Qs,mi6=gkk(Vc);if(a$5||Y1){var VkK=es==null?void 0:es.experiments,kw=new i_("",VkK,!0);kw.d2=!0;kw.isManifestless=!0;kw.K=!Y1;kw.isLive=!Y1;kw.OZ=Y1;for(var e0G=g.E(Vc),pxy=e0G.next();!pxy.done;pxy=e0G.next()){var TN=pxy.value,Tny=dd(TN,tQK),DH=fj(TN.url,TN.sp,TN.s),Mkk=DH.get("id");Mkk&&Mkk.includes("%7E")&&(kw.Dl=!0);var o3Z=void 0,iIm=(o3Z=VkK)==null?void 0:o3Z.qp("html5_max_known_end_time_rebase"),kRe=Number(TN.target_duration_sec)||5,sBm=Number(TN.max_dvr_duration_sec)|| 14400,qXb=Number(DH.get("mindsq")||DH.get("min_sq")||"0"),Z$K=Number(DH.get("maxdsq")||DH.get("max_sq")||"0")||Infinity;kw.Ra=kw.Ra||qXb;kw.WH=kw.WH||Z$K;var jBB=!vp(Tny.mimeType);DH&&sf(kw,new jf(DH,Tny,{iI:kRe,AS:jBB,UA:sBm,Ra:qXb,WH:Z$K,ED:300,OZ:Y1,uS:iIm}))}var FED=kw}else{if(mi6==="FORMAT_STREAM_TYPE_OTF"){var FZ=ds9;FZ=FZ===void 0?0:FZ;var MO=new i_("",es==null?void 0:es.experiments,!1);MO.duration=FZ||0;for(var Blg=g.E(Vc),d2D=Blg.next();!d2D.done;d2D=Blg.next()){var op=d2D.value,VQD=dd(op, tQK,MO.duration),eXD=fj(op.url,op.sp,op.s);if(eXD)if(VQD.streamType==="FORMAT_STREAM_TYPE_OTF")sf(MO,new IS(eXD,VQD,"sq/0"));else{var I$j=Ns(op.init),CQE=Ns(op.index);sf(MO,new Ck(eXD,VQD,I$j,CQE))}}MO.isOtf=!0;var fMg=MO}else{var Ba=ds9;Ba=Ba===void 0?0:Ba;var f$=new i_("",es==null?void 0:es.experiments,!1);f$.duration=Ba||0;for(var DoB=g.E(Vc),TB8=DoB.next();!TB8.done;TB8=DoB.next()){var qA=TB8.value,hc0=dd(qA,tQK,f$.duration),RcB=Ns(qA.init),cv_=Ns(qA.index),Gl7=fj(qA.url,qA.sp,qA.s);Gl7&&sf(f$, new Ck(Gl7,hc0,RcB,cv_))}fMg=f$}FED=fMg}var zSB=FED;if(Vc.length>0){var n3B=Vc[0];if(this.C().playerStyle==="hangouts-meet"&&n3B.url){var Jv5=g.DA(n3B.url);this.b_=this.b_||Number(Jv5.expire)}}var Y8t=this.isLivePlayback&&!this.OZ&&!this.zP&&!this.isPremiere;this.U("html5_live_head_playable")&&(!RS(this)&&Y8t&&this.iL("missingLiveHeadPlayable",{}),this.Qs.Dl==="yt"&&(zSB.Oc=!0));dW=zSB}else dW=null;this.iL("pafmts",{isManifestFilled:!!dW})}if(dW){CTK(this,dW);var b$G=!0}else b$G=!1;b$G?this.enableServerStitchedDai= this.enableServerStitchedDai&&vA(this):this.LB&&(this.Qs.Dl==="yt"&&this.d2()&&this.U("drm_manifestless_unplugged")&&this.U("html5_deprecate_manifestful_fallback")?this.iL("deprecateMflFallback",{}):this.GA=!0)}var MQK=q.adpings;MQK&&(this.u2=MQK?lX(MQK):null);var NlD=q.feature;NlD&&(this.GE=NlD);var g36=q.referrer;g36&&(this.referrer=g36);this.clientScreenNonce=bU(this.clientScreenNonce,q.csn);this.m4=Ax(this.m4,q.root_ve_type);this.tT=Ax(this.tT,q.kids_age_up_mode);this.Hg||q.kids_app_info==void 0|| (this.kidsAppInfo=q.kids_app_info);this.Hg&&q.kids_app_info!=null&&(this.kidsAppInfo=q.kids_app_info);this.KW=eA(this.KW,q.upg_content_filter_mode);this.unpluggedFilterModeType=Ax(this.unpluggedFilterModeType,q.unplugged_filter_mode_type);var SXK=q.unplugged_location_info;SXK&&(this.ac=SXK);var lM6=q.unplugged_partner_opt_out;lM6&&(this.J$=bU("",lM6));this.kL=eA(this.kL,q.disable_watch_next);this.WJ=bU(this.WJ,q.internal_ip_override);this.NN=!!q.is_yto_interstitial;this.interstitials.length&&this.Y$.push("playableSequences"); var Uoy=q.Xk;Uoy&&(this.Xk=Uoy);this.Dl=bU(this.Dl,q.csi_timer);q.watchUrl&&(this.watchUrl=q.watchUrl);var Gz=q.watch_endpoint;this.U("html5_attach_watch_endpoint_ustreamer_config")&&Gz&&FXB(this,Gz);if(Gz==null?0:Gz.ustreamerConfig)this.kc=$R(Gz.ustreamerConfig);var uZZ,PqD,rzK=Gz==null?void 0:(uZZ=Gz.loggingContext)==null?void 0:(PqD=uZZ.qoeLoggingContext)==null?void 0:PqD.serializedContextData;rzK&&(this.Kkn=rzK);g.FQ(this.Qs)&&this.Qs.Gs&&(this.embedsRct=bU(this.embedsRct,q.rct),this.embedsRctn= bU(this.embedsRctn,q.rctn));q.embed_config&&(this.IZ=q.embed_config);this.nz=this.nz||!!q.pause_at_start;q.default_active_source_video_id&&(this.defaultActiveSourceVideoId=q.default_active_source_video_id);this.Dd=this.Dd||!!q.Dd}; g.r.C=function(){return this.Qs}; g.r.U=function(q){return this.Qs.U(q)}; g.r.v1=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.r.hasSupportedAudio51Tracks=function(){var q;return!((q=this.yC)==null||!q.vG)}; g.r.getUserAudio51Preference=function(){var q=1;CV(this.Qs)&&this.U("html5_ytv_surround_toggle_default_off")?q=0:fd(this.Qs)&&this.isLivePlayback&&this.sI()&&(q=0);var Z;return(Z=g.sY("yt-player-audio51"))!=null?Z:q}; g.r.Fj=function(){this.jU()||(this.D.K||this.D.unsubscribe("refresh",this.Fj,this),this.Tl(-1))}; g.r.Tl=function(q){if(!this.isLivePlayback||!this.Z||this.Z.flavor!=="fairplay"){var Z=l6E(this.D,this.w4);if(Z.length>0){for(var F=g.E(Z),B=F.next();!B.done;B=F.next())B=B.value,B.startSecs=Math.max(B.startSecs,this.PZ()),this.U("html5_cuepoint_identifier_logging")&&B.event==="start"&&this.iL("cuepoint",{pubCue:B.identifier,segNum:q});this.publish("cuepointupdated",Z,q);this.w4+=Z.length;if(vA(this)&&this.Qs.Nl())for(Z=g.E(Z),F=Z.next();!F.done;F=Z.next())F=F.value,this.iL("cuepoint",{segNum:q,event:F.event, startSecs:F.startSecs,id:F.identifier.slice(-16)}),F.event==="start"&&(F=F.startSecs,this.M2.start=this.J0,this.M2.end=F+3)}}}; g.r.z_=function(){this.jU()||(this.loading=!1,this.publish("dataloaded"))}; g.r.sI=function(){return this.nU!==void 0?this.nU:this.nU=!!this.Ni||!!this.D&&G_(this.D)}; g.r.pA=function(q){var Z=this;if(this.jU())return Ef();this.X3=this.o_=this.S=null;mT(this,"html5_high_res_logging_always")&&(this.Qs.OP=!0);return w2B(this,q).then(void 0,function(){return K26(Z,q)}).then(void 0,function(){return yP9(Z)}).then(void 0,function(){return J3K(Z)})}; g.r.VF=function(q){this.S=q;$_k(this,this.S.getAvailableAudioTracks());if(this.S){q=g.E(this.S.videoInfos);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var F=Z.containerType;F!==0&&(this.O4[F]=Z.id)}}q=this.getAvailableAudioTracks();q=q.concat(this.JV);for(Z=0;Z0?this.S.getAvailableAudioTracks():this.Md||[]:[]}; g.r.getAudioTrack=function(){var q=this;if(this.G&&!DK(this.G)){var Z=g.s3(this.getAvailableAudioTracks(),function(f){return f.id===q.G.id}),F; if(!Z&&((F=this.G.fB)==null?0:F.id)){var B=this.G.fB.id;Z=g.s3(this.getAvailableAudioTracks(),function(f){return f.fB.id===B}); this.iL("nat",{id:this.G.id,track:!!Z})}return Z||this.JV}if(this.Md){if(!this.Uf)for(Z=g.E(this.Md),F=Z.next();!F.done;F=Z.next())if(F=F.value,F.fB.getIsDefault()){this.Uf=F;break}return this.Uf||this.JV}return this.JV}; g.r.getPlayerResponse=function(){return this.playerResponse}; g.r.getWatchNextResponse=function(){return this.BG}; g.r.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.r.getHeartbeatResponse=function(){return this.Ue}; g.r.Le=function(){return this.watchUrl?this.watchUrl:this.Qs.getVideoUrl(this.videoId)}; g.r.HW=function(){return!!this.D&&(hz9(this.D)||kiK(this.D)||BPb(this.D))}; g.r.getEmbeddedPlayerResponse=function(){return this.VT}; g.r.Sg=function(){return(this.eventLabel||this.Qs.k$)==="shortspage"}; g.r.isAd=function(){return this.Ov||!!this.adFormat}; g.r.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.r.tP=function(){var q,Z,F;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((q=this.playerResponse)==null?0:(Z=q.playerConfig)==null?0:(F=Z.daiConfig)==null?0:F.ssaEnabledPlayback)}; g.r.b0=function(){return this.Se}; g.r.XS=function(){return this.PX||this.TY}; g.r.KA=function(){return mT(this,"html5_samsung_vp9_live")}; g.r.iL=function(q,Z,F){this.publish("ctmp",q,Z,F)}; g.r.qs=function(q,Z,F){this.publish("ctmpstr",q,Z,F)}; g.r.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.r.getGetAdBreakContext=function(q,Z){q=q===void 0?NaN:q;Z=Z===void 0?NaN:Z;var F={isSabr:Im(this)},B,f=(B=this.getHeartbeatResponse())==null?void 0:B.adBreakHeartbeatParams;f&&(F.adBreakHeartbeatParams=f);if(this.U("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.D&&!isNaN(q)&&!isNaN(Z)){Z=q-Z;for(var D in this.D.D)if(B=this.D.D[D],B.info.jB()||B.info.B1())if(B=B.index,B.isLoaded()){D=B.eI(Z);B=B.rh(D)+Z-B.getStartTime(D);this.iL("gabc",{t:q.toFixed(3),mt:Z.toFixed(3),sg:D,igt:B.toFixed(3)}); F.livePlaybackPosition={utcTimeMillis:""+(B*1E3).toFixed(0)};break}}return F}; g.r.isEmbedsShortsMode=function(q,Z){if(!g.FQ(this.Qs)||(this.Qs.Y$||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||Z)return!1;if(this.U("embeds_enable_shorts")){var F,B;return!!((F=this.embeddedPlayerConfig)==null?0:(B=F.embeddedPlayerFlags)==null?0:B.isShortsExperienceEligible)}var f,D;return!!(((f=this.embeddedPlayerConfig)==null?0:(D=f.embeddedPlayerFlags)==null?0:D.isShortsExperienceEligible)&&q.width<=q.height)}; g.r.SU=function(){g.In.prototype.SU.call(this);this.u2=null;delete this.UEc;delete this.accountLinkingConfig;delete this.D;this.S=this.Ue=this.playerResponse=this.BG=null;this.gj=this.adaptiveFormats="";delete this.botguardData;this.eU=this.suggestions=this.zy=null;this.sabrContextUpdates.clear()}; var MQj=!0;var V8b={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},TEB={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},t8D={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},UND={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"},PN6={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},utB={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"},p5K={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.V(p8,g.J);g.r=p8.prototype;g.r.handleExternalCall=function(q,Z,F){var B=this.state.X[q],f=this.state.V[q],D=B;if(f)if(F&&Wu(F,lae))D=f;else if(!B)throw Error('API call from an untrusted origin: "'+F+'"');this.logApiCall(q,F);if(D){F=!1;B=g.E(Z);for(f=B.next();!f.done;f=B.next())if(String(f.value).includes("javascript:")){F=!0;break}F&&g.bh(Error('Dangerous call to "'+q+'" with ['+Z+"]."));return D.apply(this,Z)}throw Error('Unknown API method: "'+q+'".');}; g.r.logApiCall=function(q,Z,F){var B=this.app.C();B.Uf&&!this.state.PG.has(q)&&(this.state.PG.add(q),g.nh("webPlayerApiCalled",{callerUrl:B.loaderUrl,methodName:q,origin:Z||void 0,playerStyle:B.playerStyle||void 0,embeddedPlayerMode:B.Y$,errorCode:F}))}; g.r.publish=function(q){var Z=g.CF.apply(1,arguments);this.state.S.publish.apply(this.state.S,[q].concat(g.YB(Z)));if(q==="videodatachange"||q==="resize"||q==="cardstatechange")this.state.K.publish.apply(this.state.K,[q].concat(g.YB(Z))),this.state.G.publish.apply(this.state.G,[q].concat(g.YB(Z)))}; g.r.a_=function(q){var Z=g.CF.apply(1,arguments);this.state.S.publish.apply(this.state.S,[q].concat(g.YB(Z)));this.state.K.publish.apply(this.state.K,[q].concat(g.YB(Z)))}; g.r.Ry=function(q){var Z=g.CF.apply(1,arguments);this.state.S.publish.apply(this.state.S,[q].concat(g.YB(Z)));this.state.K.publish.apply(this.state.K,[q].concat(g.YB(Z)));this.state.G.publish.apply(this.state.G,[q].concat(g.YB(Z)))}; g.r.NE=function(q){var Z=g.CF.apply(1,arguments);this.state.S.publish.apply(this.state.S,[q].concat(g.YB(Z)));this.state.K.publish.apply(this.state.K,[q].concat(g.YB(Z)));this.state.G.publish.apply(this.state.G,[q].concat(g.YB(Z)));this.state.Z.publish.apply(this.state.Z,[q].concat(g.YB(Z)))}; g.r.U=function(q){return this.app.C().U(q)}; g.r.SU=function(){if(this.state.element){var q=this.state.element,Z;for(Z in this.state.D)this.state.D.hasOwnProperty(Z)&&(q[Z]=null);this.state.element=null}g.J.prototype.SU.call(this)};g.V(GJ,g.pu);GJ.prototype.publish=function(q){var Z=g.CF.apply(1,arguments);if(this.Z.has(q))return this.Z.get(q).push(Z),!0;var F=!1;try{for(Z=[Z],this.Z.set(q,Z);Z.length;)F=g.pu.prototype.publish.call.apply(g.pu.prototype.publish,[this,q].concat(g.YB(Z.shift())))}finally{this.Z.delete(q)}return F};g.V(zJ,g.J);zJ.prototype.SU=function(){this.Z.dispose();this.G.dispose();this.K.dispose();this.S.dispose();this.PG=this.D=this.V=this.X=this.j=void 0};var l29=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.V(Rc,p8);g.r=Rc.prototype;g.r.getApiInterface=function(){return Array.from(this.state.j)}; g.r.bR=function(q,Z){this.state.Z.subscribe(q,Z)}; g.r.PwL=function(q,Z){this.state.Z.unsubscribe(q,Z)}; g.r.getPlayerState=function(q){return OQG(this.app,q)}; g.r.HB=function(){return OQG(this.app)}; g.r.UAE=function(q,Z,F){TK(this)&&(il(this.app,!0,1),$I(this.app,q,Z,F,1))}; g.r.getCurrentTime=function(q,Z,F){var B=this.getPlayerState(q);if(this.app.getAppState()===2&&B===5){var f;return((f=this.app.getVideoData())==null?void 0:f.startSeconds)||0}return this.U("web_player_max_seekable_on_ended")&&B===0?Zn(this.app,q):q?this.app.getCurrentTime(q,Z,F):this.app.getCurrentTime(q)}; g.r.NG=function(){return this.app.getCurrentTime(1)}; g.r.oi=function(){var q=this.app.rh(1);return isNaN(q)?this.getCurrentTime(1):q}; g.r.lK=function(){return this.app.getDuration(1)}; g.r.I9=function(q,Z){q=g.JY(Math.floor(q),0,100);isFinite(q)&&Ui(this.app,{volume:q,muted:this.isMuted()},Z)}; g.r.Hmr=function(q){this.I9(q,!1)}; g.r.iV=function(q){Ui(this.app,{muted:!0,volume:this.getVolume()},q)}; g.r.Jnr=function(){this.iV(!1)}; g.r.pM=function(q){Ui(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},q)}; g.r.tIa=function(){er(this.app)||this.pM(!1)}; g.r.getPlayerMode=function(){var q={};this.app.getVideoData().z3&&(q.pfp={enableIma:this.app.AP().allowImaMonetization,autoplay:bS(this.app.AP()),mutedAutoplay:this.app.AP().mutedAutoplay});return q}; g.r.lH=function(){var q=this.app.getPresentingPlayerType();if(q===2&&!this.app.md()){var Z=yV(this.app.pB());if(!(vN7(Z)||g.FQ(this.app.C())&&g.p(this.app.Vs().getPlayerState(),1024))||TlK(Z))return}(Z=this.app.I1().X9)?Z.playVideo():this.app.playVideo(q)}; g.r.WYE=function(){il(this.app,!0,1);this.lH()}; g.r.pauseVideo=function(q){var Z=this.app.getPresentingPlayerType();if(Z!==2||this.app.md()||vN7(yV(this.app.pB()))){var F=this.app.I1().X9;F?F.pauseVideo():this.app.pauseVideo(Z,q)}}; g.r.MIL=function(){var q=this.app,Z=!1;q.J.VO&&(q.lL.publish("pageTransition"),Z=!0);q.stopVideo(Z)}; g.r.clearVideo=function(){}; g.r.getAvailablePlaybackRates=function(){var q=this.app.C();if(q.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(q.G?q.ancestorOrigins[0]:window.location.origin)||q.jA)return JC_;var Z=this.app.getVideoData();if(AQK(Z)){var F=Z.LO,B=Z.H6;return pPm.filter(function(f){return f>=F&&f<=B})}return q.supportsVarispeedExtendedFeatures?Y6t:q.U("web_remix_allow_up_to_3x_playback_rate")&&g.SQ(q)?t7e:Xa}return[1]}; g.r.getPlaybackQuality=function(q){return(q=this.app.dj(q))?q.getPlaybackQuality():"unknown"}; g.r.geE=function(){}; g.r.getAvailableQualityLevels=function(q){return(q=this.app.dj(q))?(q=g.DC(q.d3(),function(Z){return Z.quality}),q.length&&(q[0]==="auto"&&q.shift(),q=q.concat(["auto"])),q):[]}; g.r.jS=function(){return this.getAvailableQualityLevels(1)}; g.r.qG=function(){return this.l8()}; g.r.Cn=function(){return 1}; g.r.getVideoLoadedFraction=function(q){return this.app.getVideoLoadedFraction(q)}; g.r.l8=function(){return this.getVideoLoadedFraction()}; g.r.Ew=function(){return 0}; g.r.getSize=function(){var q=this.app.Ca().getPlayerSize();return{width:q.width,height:q.height}}; g.r.setSize=function(){this.app.Ca().resize()}; g.r.loadVideoById=function(q,Z,F,B){if(!q)return!1;q=eK(q,Z,F);return this.app.loadVideoByPlayerVars(q,B)}; g.r.dps=function(q,Z,F){q=this.loadVideoById(q,Z,F,1);il(this.app,q,1)}; g.r.cueVideoById=function(q,Z,F,B){q=eK(q,Z,F);this.app.cueVideoByPlayerVars(q,B)}; g.r.WI=function(q,Z,F){this.cueVideoById(q,Z,F,1)}; g.r.loadVideoByUrl=function(q,Z,F,B){q=vjK(q,Z,F);return this.app.loadVideoByPlayerVars(q,B)}; g.r.WrE=function(q,Z,F){q=this.loadVideoByUrl(q,Z,F,1);il(this.app,q,1)}; g.r.cueVideoByUrl=function(q,Z,F,B){q=vjK(q,Z,F);this.app.cueVideoByPlayerVars(q,B)}; g.r.f6=function(q,Z,F){this.cueVideoByUrl(q,Z,F,1)}; g.r.Jp=function(){var q=this.app.C();if(q.uL)return"";var Z=this.app.AP(),F=void 0;Z.isLivePlayback||(F=Math.floor(this.app.getCurrentTime(1)));return q.getVideoUrl(Z.videoId,this.getPlaylistId()||void 0,F)}; g.r.Ow=function(){return this.app.getDebugText()}; g.r.getVideoEmbedCode=function(){var q=this.app.C();if(q.uL)return"";var Z=this.app.AP();return q.getVideoEmbedCode(Z.isPrivate?"":Z.title,this.app.AP().videoId,this.app.Ca().getPlayerSize(),this.getPlaylistId()||void 0)}; g.r.o0=function(q,Z,F){return zzK(this.app,q,Z,F)}; g.r.removeCueRange=function(q){return this.app.R9(q)}; g.r.loadPlaylist=function(q,Z,F,B){this.app.loadPlaylist(q,Z,F,B)}; g.r.wGl=function(q,Z,F,B){this.loadPlaylist(q,Z,F,B);il(this.app,!0,1)}; g.r.cuePlaylist=function(q,Z,F,B){this.app.cuePlaylist(q,Z,F,B)}; g.r.nextVideo=function(q,Z){this.app.nextVideo(q,Z)}; g.r.M$G=function(){this.nextVideo();il(this.app,!0,1)}; g.r.previousVideo=function(q){this.app.previousVideo(q)}; g.r.VBs=function(){this.previousVideo();il(this.app,!0,1)}; g.r.playVideoAt=function(q){this.app.playVideoAt(q)}; g.r.tBU=function(q){this.playVideoAt(q);il(this.app,!0,1)}; g.r.setShuffle=function(q){var Z=this.app.getPlaylist();Z&&Z.setShuffle(q)}; g.r.setLoop=function(q){var Z=this.app.getPlaylist();Z&&(Z.loop=q)}; g.r.ai=function(){var q=this.app.getPlaylist();if(!q)return null;for(var Z=[],F=0;F=400)if(q=this.AP(),this.B.C().U("client_respect_autoplay_switch_button_renderer"))q=!!q.autoplaySwitchButtonRenderer;else{var Z,F,B,f;q=!!((Z=q.getWatchNextResponse())==null?0:(F=Z.contents)==null?0:(B=F.twoColumnWatchNextResults)==null?0:(f=B.autoplay)==null?0:f.autoplay)!==!1}q?this.D||(this.D=!0,this.hZ(this.D),Z=this.AP(),this.wW(Z.autonavState),this.B.logVisibility(this.element,this.D)): (this.D=!1,this.hZ(this.D))}; g.r.wW=function(q){ZXD(this)?this.isChecked=q!==1:((q=q!==1)||(q=g.nF(),q=g.cz("web_autonav_allow_off_by_default")&&!q.Q5(141)&&g.oa("AUTONAV_OFF_BY_DEFAULT")?!1:!q.Q5(140)),this.isChecked=q);uVX(this)}; g.r.onClick=function(){this.isChecked=!this.isChecked;this.B.Bk(this.isChecked?2:1);uVX(this);if(ZXD(this)){var q=this.AP().autoplaySwitchButtonRenderer;this.isChecked&&(q==null?0:q.onEnabledCommand)?this.B.a_("innertubeCommand",q.onEnabledCommand):!this.isChecked&&(q==null?0:q.onDisabledCommand)&&this.B.a_("innertubeCommand",q.onDisabledCommand)}this.B.logClick(this.element)}; g.r.getValue=function(){return this.isChecked}; g.r.AP=function(){return this.B.getVideoData(1)};g.V(kXD,fX);g.V(mP,w1);mP.prototype.ys=function(q){q?this.D||(this.Pg.Mr(this),this.D=!0):this.D&&(this.Pg.BL(this),this.D=!1);this.D&&NC(this,NrD())}; mP.prototype.G=function(){g.vc(this.element,"ytp-menuitem-highlight-transition-enabled")}; mP.prototype.S=function(q){var Z=NrD();q!==Z&&(Z=g.nF(),BKG(190,q),BKG(192,!0),Z.save(),this.B.a_("cinematicSettingsToggleChange",q))}; mP.prototype.SU=function(){this.D&&this.Pg.BL(this);w1.prototype.SU.call(this)};g.V(Da,fX);Da.prototype.updateCinematicSettings=function(q){this.D=q;var Z;(Z=this.menuItem)==null||Z.ys(q);this.api.publish("onCinematicSettingsVisibilityChange",q)};g.V(RrK,fX);g.V(Ot,fX);Ot.prototype.setCreatorEndscreenVisibility=function(q){var Z;(Z=fy(this.api.pB()))==null||Z.hZ(q)}; Ot.prototype.D=function(q){function Z(B){B==="creatorendscreen"&&(B=fy(F.api.pB()))&&B.lzP(F.hideButton)} var F=this;this.hideButton=q;this.events.N(this.api,"modulecreated",Z);Z("creatorendscreen")};g.V(psX,fX);g.V(UX,w1);UX.prototype.G=function(q){this.S(q?1:0)}; UX.prototype.Cw=function(){if(this.enableNewAudioSettingsMenu){var q=this.B.getPresentingPlayerType();q!==2&&q!==3||!this.D?(q=this.getDrcState(),q!==1?(q===0?(NC(this,this.K()===1),this.setEnabled(!0)):(NC(this,!1),this.setEnabled(!1)),this.D||(this.Pg.Mr(this),this.D=!0)):this.D&&(this.Pg.BL(this),this.D=!1)):(this.D=!1,this.Pg.BL(this))}else{q=this.hasDrcAudioTrack();var Z=this.K()===1&&q;NC(this,Z);this.setEnabled(q)}}; UX.prototype.SU=function(){this.Pg.BL(this);w1.prototype.SU.call(this)}; UX.prototype.Z=function(){this.B.logClick(this.element)};g.V(rB,fX);g.r=rB.prototype;g.r.getDrcUserPreference=function(){return this.D}; g.r.setDrcUserPreference=function(q){this.api.iL("drc_set",{pref:q});g.e0("yt-player-drc-pref",q,31536E3);q!==this.D&&(this.D=q,this.updateEnvironmentData(),this.wT()&&this.api.QQ(),this.api.un())}; g.r.updateEnvironmentData=function(){this.api.C().gj=this.D===1}; g.r.wT=function(){var q,Z,F=(q=this.api.getVideoData())==null?void 0:(Z=q.S)==null?void 0:Z.D;if(!F)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.U("mta_drc_mutual_exclusion_removal")){var B,f,D=(B=this.api.FJ())==null?void 0:(f=B.fB)==null?void 0:f.id;return cU(F,function(G){var n;return G.audio.D&&((n=G.fB)==null?void 0:n.id)===D})}return cU(F,function(G){var n; return((n=G.audio)==null?void 0:n.D)===!0})}; g.r.getDrcState=function(){return this.api.Us(3)};g.V(FT,fX);FT.prototype.onVideoDataChange=function(){var q=this,Z=this.api.getVideoData();this.api.WZ("embargo",1);var F=Z==null?void 0:Z.hH.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(F==null?0:F.length)?C4K(this,F.filter(function(B){return LDD(q,B)})):(Z==null?0:Z.cueRanges)&&C4K(this,Z.cueRanges.filter(function(B){return LDD(q,B)}))}; FT.prototype.K=function(q){return q.embargo!==void 0}; FT.prototype.SU=function(){fX.prototype.SU.call(this);this.D={}};g.V(za,fX); za.prototype.addEmbedsConversionTrackingParams=function(q){var Z=this.api.C(),F=Z.widgetReferrer,B=Z.lx,f=this.D,D="",G=Z.getWebPlayerContextConfig();G&&(D=G.embedsIframeOriginParam||"");F.length>0&&(q.embeds_widget_referrer=F);B.length>0&&(q.embeds_referring_euri=B);Z.G&&D.length>0&&(q.embeds_referring_origin=D);G&&G.embedsFeature&&(q.feature=G.embedsFeature);f.length>0&&(Z.U("embeds_web_enable_lite_experiment_control_arm_logging")?f.unshift(28572):g.pP(g.VZ(Z))&&f.unshift(159628),Z=f.join(","),Z= g.TP()?Z:g.oX(Z,4),q.source_ve_path=Z);this.D.length=0};g.V(iey,fX);g.V(mMK,fX);g.V(Jv,g.J);Jv.prototype.SU=function(){g.J.prototype.SU.call(this);this.D=null;this.K&&this.K.disconnect()};g.V(hrB,fX);g.V(eV,g.w);eV.prototype.show=function(){g.w.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; eV.prototype.stopTimer=function(){this.D&&(this.D.dispose(),this.D=null)}; eV.prototype.onVideoDataChange=function(q){var Z,F,B=(Z=this.api.getVideoData())==null?void 0:(F=Z.getPlayerResponse())==null?void 0:F.playabilityStatus;B&&(Z=nNt(B),g.p(this.api.getPlayerStateObject(),128)||q==="dataloaderror"||!Z?(this.K=0,this.stopTimer(),this.hide()):(q=(Z.remainingTimeSecs||0)*1E3,q>0&&(this.show(),this.updateValue("label",j0(Z.label)),eDZ(this,q))))}; eV.prototype.SU=function(){this.stopTimer();g.w.prototype.SU.call(this)};g.V(ax9,fX);g.V(Hv,g.w);Hv.prototype.onClick=function(){this.lL.logClick(this.element);this.lL.a_("onFullerscreenEduClicked")}; Hv.prototype.ys=function(){this.lL.isFullscreen()?this.D?this.fade.hide():this.fade.show():this.hide();this.lL.logVisibility(this.element,this.lL.isFullscreen()&&!this.D)};g.V(Ga,fX);Ga.prototype.updateFullerscreenEduButtonSubtleModeState=function(q){var Z;(Z=this.D)!=null&&(g.hK(Z.element,"ytp-fullerscreen-edu-button-subtle",q),q&&!Z.K&&(Z.lL.U("player_tooltip_data_title_killswitch")?Z.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"):Z.element.setAttribute("data-tooltip-title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),b8(Z.lL,Z.element,Z),Z.K=!0))}; Ga.prototype.updateFullerscreenEduButtonVisibility=function(q){var Z;(Z=this.D)!=null&&(Z.D=q,Z.ys())};g.V(wtZ,g.w);g.V($MZ,fX);g.V(fw,fX);fw.prototype.getSphericalProperties=function(){var q=g.rl(this.api.pB());return q?q.getSphericalProperties():{}}; fw.prototype.setSphericalProperties=function(q){if(q){var Z=g.rl(this.api.pB());Z&&Z.setSphericalProperties(q,!0)}};g.V(TG,fX);g.r=TG.prototype;g.r.createClientVe=function(q,Z,F,B){this.api.createClientVe(q,Z,F,B===void 0?!1:B)}; g.r.createServerVe=function(q,Z,F){this.api.createServerVe(q,Z,F===void 0?!1:F)}; g.r.setTrackingParams=function(q,Z){this.api.setTrackingParams(q,Z)}; g.r.logClick=function(q,Z){this.api.logClick(q,Z)}; g.r.logVisibility=function(q,Z,F){this.api.logVisibility(q,Z,F)}; g.r.hasVe=function(q){return this.api.hasVe(q)}; g.r.destroyVe=function(q){this.api.destroyVe(q)};var NY={},p7B=(NY[0]=function(q){return EgZ(q,function(Z){var F;return(F=Z.fB)==null?void 0:F.id})},NY[2]=function(q){return iM(q,vC)},NY[3]=function(q){return iM(q,o4)},NY[4]=function(q){return iM(q,PW)},NY[1]=function(q){return iM(q,F$8)},NY); dG7.prototype.Us=function(q){return this.S[q]}; dG7.prototype.un=function(){for(var q=this.K,Z={},F=g.E(tRZ),B=F.next();!B.done;B=F.next())if(B=B.value,this.D[B]){q=oRm[B].wD(q,this.videoData);for(var f=g.E(tRZ),D=f.next();!D.done;D=f.next())D=D.value,Z[D]!==void 0||cU(q,oRm[D].S6)||(Z[D]=oRm[B].nt);Z[B]===void 0&&(Z[B]=0)}else Z[B]=1;this.S=Z}; var tRZ=[0,1,2,3,4],gr={},oRm=(gr[0]={nt:2,S6:vS7,wD:x6K},gr[2]={nt:4,S6:vC,wD:o6K},gr[3]={nt:5,S6:o4,wD:Hy6},gr[1]={nt:3,S6:F$8,wD:Lc7},gr[4]={nt:6,S6:PW,wD:NOB},gr);var rqD=!1;wA.prototype.setPlaybackRate=function(q){this.playbackRate=Math.max(1,q)}; wA.prototype.getPlaybackRate=function(){return this.playbackRate};p6.prototype.HM=function(q){var Z=g.Kc(q.info.D.info,this.Np.d2),F=q.info.Uc+this.G,B=q.info.startTime*1E3;if(this.policy.eU)try{B=this.policy.eU?g.Q9(q)*1E3:q.info.startTime*1E3}catch(G){Math.random()>.99&&this.logger&&(B=Aq(q.K).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:q.info.wq(),encodedDataView:g.MR(B,4)})),B=q.info.startTime*1E3}var f=q.info.clipId,D=this.policy.eU?g.sGB(q)*1E3:q.info.duration*1E3;this.policy.eU&&(B<0||D<0)&&(this.logger&&(this.logger({missingSegInfo:q.info.wq(), startTimeMs:B,durationMs:D}),this.policy.M4||(B<0&&(B=q.info.startTime*1E3),D<0&&(D=q.info.duration*1E3))),this.policy.M4&&(B<0&&(B=q.info.startTime*1E3),D<0&&(D=q.info.duration*1E3)));return{formatId:Z,Uc:F,startTimeMs:B,clipId:f,HI:D}}; p6.prototype.Da=function(q){this.timestampOffset=q};xJ.prototype.seek=function(q,Z){q!==this.targetTime&&(this.seekCount=0);this.targetTime=q;var F=this.videoTrack.K,B=this.audioTrack.K,f=this.audioTrack.g2,D=JlG(this,this.videoTrack,q,this.videoTrack.g2,Z);Z=JlG(this,this.audioTrack,this.policy.w2?q:D,f,Z);q=Math.max(q,D,Z);this.G=!0;this.Np.isManifestless&&(tsk(this,this.videoTrack,F),tsk(this,this.audioTrack,B));return q}; xJ.prototype.isSeeking=function(){return this.G}; xJ.prototype.l0=function(q){this.K=q}; var cl9=2/24;var sWZ=0;g.r=gT.prototype;g.r.I8=function(){this.PG=this.now();xID(this.Zv,this.PG);this.cg.I8()}; g.r.cz=function(q,Z){var F=this.policy.K?(0,g.Le)():0;cr(this,q,Z);q-this.j<10&&this.K>0||this.L8(q,Z);this.cg.cz(q,Z);this.policy.K&&(q=(0,g.Le)()-F,this.Gb+=q,this.vG=Math.max(q,this.vG))}; g.r.L8=function(q,Z){var F=(q-this.j)/1E3,B=Z-this.S;this.HK||(C1D(this.Zv,F,B),this.MF(F,B));this.j=q;this.S=Z}; g.r.Es=function(){this.Y$&&ADG(this);this.cg.Es()}; g.r.zc=function(q){this.Y$||(this.Y$=this.Z-this.Tb+q,this.Hg=this.Z,this.LB=this.X)}; g.r.EJ=function(q,Z){q=q===void 0?this.X:q;Z=Z===void 0?this.Z:Z;this.K>0||(this.V=q,this.K=Z,this.Dl=this.isActive=!0)}; g.r.N7=function(){return this.jW||2}; g.r.Dq=function(){}; g.r.pU=function(){var q,Z={rn:this.requestNumber,rt:(this.X-this.D).toFixed(),lb:this.Z,stall:(1E3*this.G).toFixed(),ht:(this.PG-this.D).toFixed(),elt:(this.V-this.D).toFixed(),elb:this.K,d:(q=this.k$)==null?void 0:q.D6()};this.url&&Q88(Z,this.url);this.policy.K&&(Z.mph=this.vG.toFixed(),Z.tph=this.Gb.toFixed());Z.ulb=this.dU;Z.ult=this.uL;return Z}; g.r.now=function(){return(0,g.Le)()}; g.r.deactivate=function(){this.isActive&&(this.isActive=!1)};g.V(eZ,gT);g.r=eZ.prototype;g.r.pU=function(){var q=gT.prototype.pU.call(this);q.pb=this.LF;q.pt=(1E3*this.j$).toFixed();q.se=this.VO;return q}; g.r.IG=function(){var q=this.cg;this.o_||(this.o_=q.IG?q.IG():1);return this.o_}; g.r.C5=function(){return this.Oq?this.IG()!==1:!1}; g.r.f9=function(q,Z,F){if(!this.w2){this.w2=!0;if(!this.HK){cr(this,q,Z);this.L8(q,Z);var B=this.IG();this.VO=F;if(!this.HK)if(B===2){B=q-this.V0)||H7(this,B,Z),this.K>0&&jO(this.Zv,Z,this.G));q=(q-this.D)/ 1E3||.01;this.policy.V&&!(this.K>0)||Xy(this.Zv,q,this.S,GUg(this),this.pk)}this.deactivate()}}; g.r.Ha=function(q,Z,F){F&&(this.o_=2);q<0&&this.jW&&(q=this.jW);Z?this.HG+=q:this.Oc+=q}; g.r.N7=function(){return this.Oc||this.HG||gT.prototype.N7.call(this)}; g.r.L8=function(q,Z){var F=(q-this.j)/1E3,B=Z-this.S,f=this.IG();this.isActive?f===1&&((B>0||this.policy.Z)&&(F>.2||B<1024)?(this.G+=F,B>0&&F>.2&&H7(this,this.yk?F:.05,B),this.Jn=!0):B>0&&(H7(this,F,B),this.Jn=!0)):Z&&Z>=this.policy.D&&this.EJ(q,Z);gT.prototype.L8.call(this,q,Z)}; g.r.cO=function(q){if(!this.HK){cr(this,q,this.Z);var Z=(q-this.D)/1E3;this.IG()!==2&&this.K>0&&(this.G+=(q-this.j)/1E3,jO(this.Zv,this.S,this.G));Xy(this.Zv,Z,this.S,GUg(this),this.pk,!0);q=(q-this.j)/1E3;C1D(this.Zv,q,0);this.MF(q,0)}}; g.r.EJ=function(q,Z){q=q===void 0?this.X:q;Z=Z===void 0?this.Z:Z;if(!(this.K>0)&&(gT.prototype.EJ.call(this,q,Z),this.IG()===1)){Z=(this.PG-this.D)/1E3;var F=(q-this.PG)/1E3;this.Oq&&jc(this,this.now());this.KB||this.HK||(this.jW&&(F=Math.max(0,F-this.jW)),q=this.Zv,q.V.sT(1,Z),q.k$.sT(1,F))}}; g.r.dg=function(){this.Oq&&jc(this,this.now());return this.WG}; g.r.cV=function(){var q;if(q=this.S>this.Ux)q=(q=this.S)?q>=this.policy.D:!1;return q}; g.r.Cf=function(){return this.eU}; g.r.sx=function(q){q=q===void 0?this.now():q;if(this.Oq){jc(this,q);if(this.o_?this.C5():this.zP!==this.BG){var Z=this.BG;if(q0?F+q:F+Math.max(q,Z)}; g.r.wE=function(){return this.now()-this.V}; g.r.FT=function(){return(this.S-this.K)*1E3/this.wE()||0}; g.r.t6=function(){return this.V};MU.prototype.feed=function(q){VJ(this.D,q);this.pP()}; MU.prototype.pP=function(){if(this.G){if(!this.D.totalLength)return;var q=this.D.split(this.S-this.K),Z=q.J_;q=q.er;if(!this.cg.zc(this.G,Z,this.K,this.S))return;this.K+=Z.totalLength;this.D=q;this.K===this.S&&(this.G=this.S=this.K=void 0)}for(;;){var F=0;q=g.E(F5K(this.D,F));Z=q.next().value;F=q.next().value;F=g.E(F5K(this.D,F));q=F.next().value;F=F.next().value;if(Z<0||q<0)break;if(!(F+q<=this.D.totalLength)){if(!(this.cg.zc&&F+1<=this.D.totalLength))break;F=this.D.split(F).er;this.cg.zc(Z,F,0, q)&&(this.G=Z,this.K=F.totalLength,this.S=q,this.D=new bN([]));break}q=this.D.split(F).er.split(q);F=q.er;this.cg.A7(Z,q.J_);this.D=F}}; MU.prototype.dispose=function(){this.D=new bN};g.r=OR.prototype;g.r.No=function(){return 0}; g.r.oH=function(){return null}; g.r.mA=function(){return null}; g.r.z7=function(){return this.state>=1}; g.r.isComplete=function(){return this.state>=3}; g.r.WY=function(){return this.state===5}; g.r.onStateChange=function(){}; g.r.xS=function(q){var Z=this.state;this.state=q;this.onStateChange(Z);this.callback&&this.callback(this,Z)}; g.r.uE=function(q){q&&this.state=this.xhr.HEADERS_RECEIVED}; g.r.getResponseHeader=function(q){try{return this.xhr.getResponseHeader(q)}catch(Z){return""}}; g.r.fh=function(){return+this.getResponseHeader("content-length")}; g.r.YE=function(){return this.K}; g.r.mG=function(){return this.status>=200&&this.status<300&&!!this.K}; g.r.HC=function(){return this.D.totalLength>0}; g.r.t$=function(){var q=this.D;this.D=new bN;return q}; g.r.C0=function(){return this.D}; g.r.abort=function(){this.jU=!0;this.xhr.abort()}; g.r.Ay=function(){return!0}; g.r.n$=function(){return this.S}; g.r.nm=function(){return""};g.r=HV8.prototype; g.r.run=function(){var q=this,Z,F,B,f,D,G,n,b,N,S,l,U,u,P,W;return g.h(function(H){if(H.D==1){q.status=200;Z=q.D.get("docid");F=N8(q.D.get("fmtid")||"");B=q.D.get("lmt")||"0";f=+(q.D.get("csz")||0);if(!Z||!F||!f)throw Error("Invalid local URL");q.D.get("ck")&&q.D.get("civ")&&(D=new Rg6(q.D.get("ck"),q.D.get("civ")));G=q.range;n=Math.floor(G.start/f);b=Math.floor(G.end/f);N=n}if(H.D!=5)return N<=b?g.R(H,O0K(Z,F,B,N,D),5):H.An(0);S=H.K;if(S===void 0)throw Error("invariant: data is undefined");l=N*f; U=(N+1)*f;u=Math.max(0,G.start-l);P=Math.min(G.end+1,U)-(u+l);W=new Uint8Array(S.buffer,u,P);q.K.append(W);q.loaded+=P;q.loaded=200&&this.status<300&&!!this.K}; g.r.HC=function(){return!!this.D.totalLength}; g.r.t$=function(){var q=this.D;this.D=new bN;return q}; g.r.C0=function(){return this.D}; g.r.jU=function(){return this.Z}; g.r.abort=function(){this.S&&this.S.cancel().catch(function(){}); this.G&&this.G.abort();this.Z=!0}; g.r.Ay=function(){return!0}; g.r.n$=function(){return this.j}; g.r.nm=function(){return this.errorMessage};g.r=QhK.prototype;g.r.onDone=function(){if(!this.jU){this.status=this.xhr.status;try{this.response=this.xhr.response,this.K=this.response.byteLength}catch(q){}this.D=!0;this.cg.Es()}}; g.r.nL=function(){this.xhr.readyState===2&&this.cg.I8()}; g.r.onProgress=function(q){this.jU||(this.status=this.xhr.status,this.D||(this.K=q.loaded),this.cg.cz((0,g.Le)(),q.loaded))}; g.r.sH=function(){return this.xhr.readyState>=2}; g.r.getResponseHeader=function(q){try{return this.xhr.getResponseHeader(q)}catch(Z){return g.bh(Error("Could not read XHR header "+q)),""}}; g.r.fh=function(){return+this.getResponseHeader("content-length")}; g.r.YE=function(){return this.K}; g.r.mG=function(){return this.status>=200&&this.status<300&&this.D&&!!this.K}; g.r.HC=function(){return this.D&&!!this.response&&!!this.response.byteLength}; g.r.t$=function(){var q=this.response;this.response=void 0;return new bN([new Uint8Array(q)])}; g.r.C0=function(){return new bN([new Uint8Array(this.response)])}; g.r.abort=function(){this.jU=!0;this.xhr.abort()}; g.r.Ay=function(){return!1}; g.r.n$=function(){return!1}; g.r.nm=function(){return""};g.V(gx,g.J);gx.prototype.aW=function(){if(!this.eB.length)return[];var q=this.eB;this.eB=[];this.S=g.uU(q).info;return q}; gx.prototype.Nv=function(){return this.eB}; gx.prototype.SU=function(){g.J.prototype.SU.call(this);this.D=null;this.eB.length=0;this.TP.length=0;this.S=null};g.V(oq,g.J);g.r=oq.prototype; g.r.SIG=function(){if(!this.jU()){var q=(0,g.Le)(),Z=!1;if(this.policy.Sr){var F=this.timing.K>0?this.timing.V:this.timing.D;this.policy.wH&&this.S&&(F=this.S);q=q-F-(this.policy.J$?this.policy.Si:this.timing.N7()*1E3);F=CK(cH(this),!1);q>=2E3*F?Z=!0:q>=this.policy.u2*F&&(this.D=this.policy.nz)}else if(this.timing.K>0){if(this.j){this.policy.bb&&(this.D=0);return}q=this.timing.Cf();this.timing.sx();this.timing.Cf()-q>=this.policy.gj*.8?(this.D++,Z=this.D>=5):this.D=0}else Z=q-this.timing.dg(),this.policy.nz&& Z>0&&(this.D+=1),q=CK(cH(this),!1)*this.policy.N$,Z=Z>q*1E3;this.D>0&&this.cg.p5();Z?this.rI():this.K.start()}}; g.r.rI=function(){this.Z=!0;this.cg.mB();this.lastError="net.timeout";yo(this)}; g.r.canRetry=function(q){var Z=cH(this);q=q?this.policy.qa:this.policy.PX;return Z.timedOut0&&(Z=nz(Z.D,0),q.ubyte=Z,F===1&&Z===0&&(q.b248180278=!0))}this.lw&&(q.rc=this.policy.s$?this.lw:this.lw.toString());this.policy.J0&&this.Ua&&(q.tr=this.Ua);q.itag=this.info.TP[0].D.info.itag;q.ml=""+ +this.info.TP[0].D.wR();q.sq=""+this.info.TP[0].Uc;this.lk&&(q.ifi=""+ +P6(4,this.info.m6.K));this.lw!==410&&this.lw!==500&&this.lw!==503||(q.fmt_unav="true");var B;(F=this.errorMessage||((B=this.xhr)==null?void 0: B.nm()))&&(q.msg=F);this.VK&&(q.smb="1");this.info.isDecorated()&&(q.sdai="1");return q}; g.r.Kj=function(){return qLK(this.timing)}; g.r.nm=function(){return this.xhr.nm()||""}; g.r.cV=function(){return this.isComplete()||this.timing.cV()}; g.r.cz=function(){!this.jU()&&this.xhr&&(this.lw=this.xhr.status,this.policy.aZ&&this.pm&&this.Rg(!1),this.ya()?this.uE(2):!this.v9&&this.cV()&&(this.uE(),this.v9=!0))}; g.r.I8=function(){if(!this.jU()&&this.xhr){if(!this.XJ&&this.xhr.sH()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var q=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.XJ=((0,g.Le)()-q)/1E3}this.xhr.sH()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Se&&!VY8()&&g.e0("yt-player-headers-readable",!0,2592E3);q=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var Z=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),F;(F=this.yz)==null||F.stop();this.D_=q||this.D_; this.Bu=Z||this.Bu}}; g.r.Es=function(){var q=this.xhr;if(!this.jU()&&q){this.lw=q.status;q=this.BW(q);if(this.policy.J0){var Z;(Z=this.yz)==null||Z.stop()}q===5?yo(this.Up):this.xS(q);this.Up.K.stop()}}; g.r.BW=function(q){TDg(this);if(s9(this.Up,this.xhr.status,this.tY?this.timing.Dl||this.kz:this.xhr.mG(),!1,this.AK))return 5;var Z="";EZ(this.Up,this.xhr)&&(Z=xb9(this.Up,this.xhr));if(Z)return HzK(cH(this.Up)),this.info.XX(this.lk,Z),3;Z=q.YE();if(this.CR){this.Rg(!0);TDg(this);if(s9(this.Up,this.xhr.status,this.timing.Dl||this.kz,!1,this.AK))return 5;if(!this.HQ){if(this.kz)return HzK(cH(this.Up)),3;this.Up.lastError="net.closed";return 5}}else{if(s9(this.Up,this.xhr.status,this.xhr.mG(),!1,this.AK))return 5; var F=this.info.S;if(F&&F!==Z||q.n$())return this.Up.lastError="net.closed",5;this.Rg(!0)}F=pWk(this)?q.getResponseHeader("X-Bandwidth-Est"):0;if(q=pWk(this)?q.getResponseHeader("X-Bandwidth-Est3"):0)this.Wl=!0,this.policy.CS&&(F=q);$bD(this.Up,Z,F?Number(F):0,this.info.TP[0].type===5);return 4}; g.r.canRetry=function(){this.jU();var q=this.info.isDecorated();return this.Up.canRetry(q)}; g.r.onStateChange=function(){this.isComplete()&&(this.policy.Fq?this.mB():this.timing.deactivate())}; g.r.rI=function(){this.Up.rI()}; g.r.p5=function(){this.callback&&this.callback(this,this.state)}; g.r.yR=function(){return this.Up.yR()}; g.r.dispose=function(){OR.prototype.dispose.call(this);this.Up.dispose();var q;(q=this.yz)==null||q.dispose();this.policy.Fq||this.mB()}; g.r.mB=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.r.aW=function(){if(!this.Nv().length)return[];this.UL=!0;return this.pm.aW()}; g.r.ya=function(){if(this.state<1)return!1;if(this.pm&&this.pm.eB.length)return!0;var q;return((q=this.xhr)==null?0:q.HC())?!0:!1}; g.r.Nv=function(){this.Rg(!1);return this.pm?this.pm.Nv():[]}; g.r.Rg=function(q){try{if(q||this.xhr.sH()&&this.xhr.HC()&&!EZ(this.Up,this.xhr)&&!this.pL)this.pm||(this.pm=new gx(this.policy,this.info.TP)),this.xhr.HC()&&(this.CR?this.CR.feed(this.xhr.t$()):W0(this.pm,this.xhr.t$(),q&&!this.xhr.HC()))}catch(Z){this.CR?$Gg(this,Z):g.bh(Z)}}; g.r.A7=function(q,Z){switch(q){case 21:q=Z.split(1).er;x99(this,q);break;case 22:this.HQ=!0;W0(this.pm,new bN([]),!0);break;case 43:if(q=eQ(new dB(Z),1))this.info.XX(this.lk,q),this.kz=!0;break;case 45:Z=gy(new dB(Z));q=Z.f$;Z=Z.YJ;q&&Z&&(this.BN=q/Z);break;case 44:this.g_=Zp7(new dB(Z));var F,B,f;!this.timing.Dl&&((F=this.g_)==null?void 0:F.action)===4&&((B=this.g_)==null?0:(f=B.Bl)==null?0:f.tY)&&(this.tY=this.g_.Bl.tY);break;case 53:this.policy.J0&&(q=w4X(new dB(Z)).Rz)&&(this.yz||(this.Rz=q,this.yz= new g.im(this.AO,q,this)),this.yz.start());break;case 60:this.Im=Gb(new dB(Z));break;case 58:if(q=kpy(new dB(Z)))this.Cv=q,q.Cv===3&&(this.AK=!0)}}; g.r.zc=function(q,Z,F,B){F||this.timing.zc(B);if(q!==21)return!1;if(q=this.policy.aZ)if(q*=this.info.TP[0].D.info.Ml,Z.totalLength+F!==B&&Z.totalLength0)return!1;if(!this.xhr.sH())return!0;if(this.CR)var q=!this.info.S;else this.xhr.fh()?q=!1:(q=this.xhr.getResponseHeader("content-type"),q=q==="audio/mp4"||q==="video/mp4"||q==="video/webm");if(!q)return!1;if(isNaN(this.info.pE)){q=this.xhr.getResponseHeader("x-head-seqnum");var Z=this.timing.policy.X?1:0;if(q&&Number(q)>this.info.TP[0].Uc+Z)return!1}return!0}; g.r.J5=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.r.oH=function(){this.xhr&&(this.D_=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.D_}; g.r.mA=function(){this.xhr&&(this.Bu=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Bu}; g.r.Hf=function(){return this.Up.Hf()}; g.r.AO=function(){if(!this.jU()&&this.xhr){this.Ua="heartbeat";var q=this.Up;q.D+=2;this.p5()}};g.V(Mw,gT);g.r=Mw.prototype;g.r.L8=function(q,Z){var F=(q-this.j)/1E3,B=Z-this.S;this.K>0?B>0&&(this.zP&&(F>.2||B<1024?(this.G+=F,F>.2&&mEK(this,.05,B)):mEK(this,F,B)),this.BG&&(this.WG+=B,this.Oc+=F)):Z>this.policy.D&&this.EJ(q,Z);gT.prototype.L8.call(this,q,Z)}; g.r.f9=function(q,Z){cr(this,q,Z);this.L8(q,Z);this.zP&&(Z=this.S*this.snapshot.stall+this.S/this.snapshot.byterate,this.K>0&&jO(this.Zv,this.WG,this.G),q=(q-this.D)/1E3||.01,this.policy.V&&!(this.K>0)||Xy(this.Zv,q,this.S,Z,!1))}; g.r.cO=function(q){cr(this,q,this.Z);var Z=(q-this.j)/1E3;C1D(this.Zv,Z,0);this.MF(Z,0);!this.zP&&this.K>0||(Z=this.S*this.snapshot.stall+this.S/this.snapshot.byterate,this.K>0&&(this.G+=(q-this.j)/1E3,jO(this.Zv,this.WG,this.G)),Xy(this.Zv,(q-this.D)/1E3||.01,this.S,Z,!1,!0))}; g.r.UB=function(q){q=q.Jo||2147483647;(q&2)!==2&&(this.BG=!1);(q&1)===1&&(this.zP=!0)}; g.r.Ql=function(q){q=q.Jo||2147483647;(q&2)===2&&(this.BG=!1);(q&1)===1&&(this.zP=!1)}; g.r.t6=function(){return this.V}; g.r.wE=function(){var q=this.BG?this.now()-this.j:0;return Math.max(this.Oc*1E3+q,1)}; g.r.FT=function(){return this.WG*1E3/this.wE()}; g.r.EJ=function(q,Z){q=q===void 0?this.X:q;Z=Z===void 0?this.Z:Z;this.K>0||(gT.prototype.EJ.call(this,q,Z),Z=this.Zv,q=(q-this.PG)/1E3,Z.V.sT(1,(this.PG-this.D)/1E3),Z.k$.sT(1,q))}; g.r.Dq=function(q){this.HG=q}; g.r.pU=function(){var q=gT.prototype.pU.call(this);q.rbw=this.FT();q.rbe=+this.BG;q.gbe=+this.zP;q.ackt=(this.HG-this.D).toFixed();return q}; g.r.sx=function(){}; g.r.Cf=function(){return NaN}; g.r.dg=function(){return this.D+this.snapshot.delay*1E3};yi.prototype.A7=function(q,Z){switch(q){case 20:q=new dB(Z);q={iJ:Ta(q,1),videoId:eQ(q,2),itag:Ta(q,3),lmt:Ta(q,4),xtags:eQ(q,5),h7:Ta(q,6),xH:xK(q,8),Zi:Ta(q,9),Gya:Ta(q,10),startMs:Ta(q,11),durationMs:Ta(q,12),Xq:Ta(q,14),timeRange:ps(q,15,lT9),De:Ta(q,16),Q0:Ta(q,17),clipId:eQ(q,1E3)};this.iH(q);break;case 21:this.Po(Z,!1);break;case 22:this.ju(Z);break;case 31:q=T_(Z,MGb);this.hD(q);break;case 52:q=T_(Z,Vty);this.QJ(q);break;default:this.Iv(q,Z)}}; yi.prototype.iH=function(){}; yi.prototype.Iv=function(){};g.V(nqk,yi);g.r=nqk.prototype; g.r.Iv=function(q,Z){switch(q){case 35:this.tJ(Z);break;case 44:this.RM(Z);break;case 43:this.YO(Z);break;case 53:this.Qf(Z);break;case 56:this.YY();break;case 57:this.JK(Z);break;case 42:this.F_(Z);break;case 45:this.XG(Z);break;case 59:this.kY(Z);break;case 51:this.Bv(Z);break;case 49:this.UB(Z);break;case 50:this.Ql(Z);break;case 47:this.ZW(Z);break;case 58:this.Lb(Z);break;case 61:this.cg.nP.Dq((0,g.Le)());break;case 66:this.nG(Z);break;case 46:this.m9(Z);break;case 67:this.onSnackbarMessage(Z);break; case 69:this.SF(Z)}}; g.r.Bv=function(q){q=new dB(q);q={vXs:$T(q,1,ec),sxU:$T(q,2,ec)};this.cg.Bv(q)}; g.r.kY=function(q){var Z=new dB(q);q=rh(Z,1);var F=rh(Z,2);Z=rh(Z,3);this.cg.kY(q,F,Z)}; g.r.XG=function(q){q=gy(new dB(q));this.cg.XG(q)}; g.r.ZW=function(q){q=T_(q,wPg);this.cg.ZW(q)}; g.r.F_=function(q){q=new dB(q);q={videoId:eQ(q,1),formatId:ps(q,2,ec),endTimeMs:Ta(q,3),wCn:Ta(q,4),mimeType:eQ(q,5),mC:ps(q,6,Pa8),indexRange:ps(q,7,Pa8),B7:ps(q,8,bab)};this.cg.F_(q)}; g.r.JK=function(q){q=new dB(q);q={type:Ta(q,1),scope:Ta(q,2),value:gD(q,3),sendByDefault:xK(q,4),writePolicy:Ta(q,5)};this.cg.JK(q)}; g.r.YY=function(){this.cg.YY()}; g.r.tJ=function(q){q=DyB(new dB(q));this.cg.tJ(q)}; g.r.Qf=function(q){q=w4X(new dB(q));this.cg.Qf(q)}; g.r.RM=function(q){q=Zp7(new dB(q));this.cg.RM(q)}; g.r.YO=function(q){q={redirectUrl:eQ(new dB(q),1)};this.cg.YO(q)}; g.r.Po=function(q){var Z=nz(q,0);if(q.totalLength!==1){q=q.split(1).er;var F=this.K[Z]||null;F&&eC(this.cg.P1,Z,F,q)}}; g.r.ju=function(q){q=nz(q,0);var Z=this.K[q]||null;Z&&this.cg.ju(q,Z)}; g.r.QJ=function(q){this.cg.QJ(q)}; g.r.iH=function(q){var Z=q.iJ,F=q.xH,B=q.h7,f=q.Q0,D=q.De,G=q.Zi,n=q.startMs,b=q.durationMs,N=q.timeRange,S=q.Xq,l=q.clipId,U=EB(q);q=Xxm.has(Rs[""+q.itag]);this.K[Z]=U;this.cg.Ha(U,q,{iJ:Z,xH:!!F,h7:B!=null?B:-1,Zi:G!=null?G:-1,startMs:n!=null?n:-1,durationMs:b!=null?b:-1,Xq:S,Q0:f,De:D,clipId:l,timeRange:N})}; g.r.UB=function(q){q={Jo:Ta(new dB(q),1)};this.cg.UB(q)}; g.r.Ql=function(q){q={Jo:Ta(new dB(q),1)};this.cg.Ql(q)}; g.r.hD=function(q){this.cg.hD(q)}; g.r.Lb=function(q){q=kpy(new dB(q));this.cg.Lb(q)}; g.r.nG=function(q){q={Yt:ps(new dB(q),1,TP6)};this.cg.nG(q)}; g.r.onSnackbarMessage=function(q){q=Ta(new dB(q),1);this.cg.onSnackbarMessage(q)}; g.r.SF=function(q){q={aC:$T(new dB(q),1,UqK)};this.cg.SF(q)}; g.r.m9=function(q){q=new dB(q);q={reloadPlaybackParams:ps(q,1,EJk),ih:xK(q,2)};this.cg.m9(q)};g.V(bv,g.J);g.r=bv.prototype;g.r.ox=function(){return Array.from(this.He.keys())}; g.r.gS=function(q){q=this.He.get(q);var Z=q.eB;q.wG+=Z.totalLength;q.eB=new bN;return Z}; g.r.TD=function(q){return this.He.get(q).TD}; g.r.Dy=function(q){return this.He.get(q).Dy}; g.r.Ha=function(q,Z,F){this.He.get(q)||this.He.set(q,{eB:new bN,wG:0,bytesReceived:0,QB:0,Ho:!1,TD:!1,Dy:!1,B1:Z,pV:[],TP:[],Ct:[],Oe:!1,I6:new Map,yK:new Map,yq:[]});Z=this.He.get(q);this.Np?(q=jpK(this,q,F),YmG(this,F.iJ,Z,q)):(F.xH?Z.QB=F.Xq:Z.Ct.push(F),Z.pV.push(F))}; g.r.Tn=function(q){var Z;return((Z=this.He.get(q))==null?void 0:Z.TP)||[]}; g.r.uE=function(){for(var q=g.E(this.He.values()),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.Ho){if(Z.onProgress)Z.onProgress();Z.Ho=!1}}; g.r.ju=function(q,Z){Z=this.He.get(Z);dJ?Z&&!Z.TD&&(Z.I6.get(q)?Z.I6.get(q).Sd=!0:Z.I6.set(q,{data:new bN,rX:0,Sd:!0}),Z.Dy=!0):Z&&!Z.Dy&&(Z.Dy=!0)}; g.r.aW=function(q){if(dJ){var Z=this.He.get(q);if(Z)for(var F=g.E(Z.I6),B=F.next();!B.done;B=F.next()){var f=g.E(B.value);B=f.next().value;f=f.next().value;var D=Z.yK.get(B);if(KR(D[0])){if(!f.Sd)continue;var G=f.data,n=0,b=[];D=g.E(D);for(var N=D.next();!N.done;N=D.next()){N=N.value;var S=N.S,l=BV(G,n,S);n+=S;b.push(new Hz(N,l))}Z.yq.push.apply(Z.yq,g.YB(b))}else if(f.data.totalLength>0||!D[0].range&&f.Sd)G=void 0,n=D[0],b=f.rX,D=f.data,n.range||(G=f.Sd),G=new Hz(rOD(n,n.K+b,D.totalLength,G),D), f.rX+=G.info.S,Z.yq.push(G);Z.I6.get(B).data=new bN;f.Sd&&Z.I6.delete(B)}q=this.He.get(q);if(!q)return[];Z=q.yq;q.yq=[];F=g.E(Z);for(B=F.next();!B.done;B=F.next())q.wG+=B.value.info.S;return Z||[]}F=(Z=this.He.get(q))==null?void 0:Z.pm;if(!F)return[];this.Rg(q,F);return F.aW()}; g.r.ya=function(q){if(dJ)return Qc(this,q);var Z,F,B;return!!((F=(Z=this.He.get(q))==null?void 0:Z.pm)==null?0:(B=F.Nv())==null?0:B.length)||Qc(this,q)}; g.r.Rg=function(q,Z){for(;Qc(this,q);){var F=this.gS(q);var B=q;B=this.He.get(B).TD&&!rLK(this,B);W0(Z,F,B&&liD(this,q))}}; g.r.SU=function(){g.J.prototype.SU.call(this);for(var q=g.E(this.He.keys()),Z=q.next();!Z.done;Z=q.next())t7(this,Z.value);var F;if((F=this.ME)==null?0:F.uu)for(q=g.E(this.He.values()),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.I6.clear(),Z.yK.clear(),Z.yq.length=0,Z.TP.length=0,Z.pV.length=0,Z.Ct.length=0;this.He.clear()}; var dJ=!1;g.V(QJ,g.J);g.r=QJ.prototype;g.r.cz=function(){!this.jU()&&this.xhr&&(this.Rg(!1),lu(this.cg,this))}; g.r.I8=function(){}; g.r.Es=function(){if(!this.jU()&&this.xhr){var q=this.BW();q===5?yo(this.Up):this.xS(q);this.Up.K.stop();var Z;(Z=this.KI)==null||Z.stop()}}; g.r.BW=function(){var q="";EZ(this.Up,this.xhr)&&(q=xb9(this.Up,this.xhr));if(q)return this.info.m6.XX(this.lk,q),3;this.Rg(!0);if(s9(this.Up,this.xhr.status,this.xhr.mG(),this.info.eM(),this.AK))return 5;if(this.wP)return 3;$bD(this.Up,this.xhr.YE(),0,this.eM());this.policy.Lp&&m0k(this.cg);return 4}; g.r.Rg=function(q){var Z=this.xhr;!q&&EZ(this.Up,this.xhr)||!Z.HC()||(q=Z.t$(),this.CR.feed(q))}; g.r.A7=function(q,Z){this.xhr.Ay()&&q===21&&Wl7(this);this.Ui.A7(q,Z)}; g.r.zc=function(q,Z,F,B){F||(this.nP.zc(B),this.policy.Qh&&q===21&&Wl7(this));if(q!==21)return!1;this.nP.Dl=!0;q=Z.totalLength;F||(this.ev=nz(Z,0),Z=Z.split(1).er);var f=this.policy.bP,D=this.Ui.K[this.ev],G=this.Np.S.get(D);if(f&&G&&(f*=G.info.Ml,q+F!==B&&q0){this.policy.Sr&&this.Up.K.stop();q=this.nP.wE();Z=this.nP.FT();var F=uBK(this,q);if(!(Z>F.Jc||F.dJ>0&&this.info.gZ()>F.dJ)){this.MH=(0,g.Le)();var B;(B=this.KI)==null||B.stop();this.policy.Lp&&(B=this.cg,q={pK:Math.round(Z*q/1E3),lU:q},B.policy.Lp&&(B.BG=q,B.hJ++));this.rI()}}}}; g.r.rI=function(){this.Up.rI()}; g.r.RM=function(q){this.cg.RM(q,this.HE())}; g.r.YO=function(q){this.wP=!0;this.info.m6.XX(this.lk,q.redirectUrl)}; g.r.UB=function(q){this.nP instanceof Mw&&this.nP.UB(q)}; g.r.Ql=function(q){this.nP instanceof Mw&&this.nP.Ql(q)}; g.r.F_=function(q){var Z=q.formatId,F=EB({itag:Z.itag,lmt:Z.lmt,xtags:Z.xtags}),B,f,D=new zI(((B=q.mC)==null?void 0:B.first)||0,((f=q.mC)==null?void 0:f.Og)||0),G,n;B=new zI(((G=q.indexRange)==null?void 0:G.first)||0,((n=q.indexRange)==null?void 0:n.Og)||0);this.Np.S.get(F)||(F=q.B7||{},F.mimeType=q.mimeType,F.itag=Z.itag,F.lastModified=""+(Z.lmt||0),F.xtags=Z.xtags,q=this.Np,Z=fj(""),F=kQ(F,null),sf(q,new Ck(Z,F,D,B)))}; g.r.XG=function(q){this.cg.XG(q,this.HE())}; g.r.onSnackbarMessage=function(q){if(this.policy.NL)this.cg.onSnackbarMessage(q)}; g.r.SF=function(q){this.policy.j&&this.cg.SF(q,this.HE())}; g.r.hD=function(q){this.Nh=q;this.Up.S=(0,g.Le)();this.cg.hD(q)}; g.r.kY=function(q,Z,F){this.cg.kY(q,Z,F)}; g.r.JK=function(q){q.scope===2&&(this.Ah=q);this.cg.JK(q)}; g.r.YY=function(){this.w5=!0;this.cg.YY()}; g.r.Bv=function(q){this.policy.lJ&&this.cg.Bv(q)}; g.r.ZW=function(q){this.cg.ZW(q,this.HE())}; g.r.Lb=function(q){q.Cv===3&&(this.AK=!0);this.cg.Lb(q)}; g.r.nG=function(q){this.cg.nG(q)}; g.r.m9=function(q){this.cg.m9(q)}; g.r.canRetry=function(){this.jU();return this.Up.canRetry(!1)}; g.r.dispose=function(){if(!this.jU()){g.J.prototype.dispose.call(this);this.Up.dispose();var q;(q=this.KI)==null||q.dispose();this.xS(-1);this.mB()}}; g.r.xS=function(q){this.state=q;lu(this.cg,this)}; g.r.eM=function(){return this.info.eM()}; g.r.uC=function(){return this.w5}; g.r.sW=function(){return this.Ah}; g.r.Ha=function(q,Z,F){F.clipId&&(this.clipId=F.clipId);this.policy.K&&!Z&&(this.HY=F.Zi);if(this.info.isDecorated()){var B=this.info,f,D;var G=((f=B.data)==null?0:(D=f.FX)==null?0:D.J7)?B.data.FX.J7:-1;G>=0&&G>F.Zi&&this.cg.loader.iL("sdai",{skpsqmismatch:"1",stsq:G,rcvsq:F.Zi,a:Z})}this.P1.Ha(q,Z,F);this.policy.KR&&this.Nh&&this.nP instanceof eZ&&(G=this.Nh.Kt,this.nP.Ha(F.durationMs/1E3,Z,G>0&&F.Zi+1>=G));this.P1.He.get(q).Oe=!0}; g.r.ju=function(q,Z){this.P1.ju(q,Z)}; g.r.QJ=function(q){this.requestIdentifier=q}; g.r.aW=function(q){return this.P1.aW(q)}; g.r.Tn=function(q){return this.P1.Tn(q)}; g.r.ya=function(q){return this.P1.ya(q)}; g.r.ox=function(){return this.P1.ox()}; g.r.IG=function(){return 1}; g.r.HE=function(){return this.nP.requestNumber}; g.r.TV=function(){return this.requestIdentifier}; g.r.fP=function(){return this.lk.fP()}; g.r.hO=function(){this.mB()}; g.r.mB=function(){this.nP.deactivate();var q;(q=this.xhr)==null||q.abort()}; g.r.isComplete=function(){return this.state>=3}; g.r.WS=function(){return this.state===3}; g.r.WY=function(){return this.state===5}; g.r.Nm=function(){return this.state===4}; g.r.Mm=function(){return this.isComplete()}; g.r.z7=function(){return this.state>=1}; g.r.yR=function(){return this.policy.bb?this.Up.yR():0}; g.r.p5=function(){this.policy.bb&&lu(this.cg,this)}; g.r.W9=function(){return mAb(this.info)}; g.r.Hf=function(){return this.Up.Hf()}; g.r.qb=function(){var q=tP6(this.Up);Object.assign(q,oXD(this.info));q.req="sabr";q.rn=this.HE();var Z;if((Z=this.xhr)==null?0:Z.status)q.rc=this.policy.s$?this.xhr.status:this.xhr.status.toString();var F;(Z=(F=this.xhr)==null?void 0:F.nm())&&(q.msg=Z);this.MH&&(F=uBK(this,this.MH-this.nP.t6()),q.letm=F.Ans,q.mrbps=F.Jc,q.mram=F.dJ);return q};mPB.prototype.tick=function(q,Z){this.ticks[q]=Z?window.performance.timing.navigationStart+Z:(0,g.Le)()};g.V(gq,g.In);g.r=gq.prototype; g.r.d9=function(q,Z,F,B){if(this.policy.Qm&&this.policy.K){var f=q.SC||null;f?(KcD(this,q.Uc,I9(this,q.startTime,q.Uc),{SC:f,Uc:q.Uc,vp:!!Z,jB:F},this.S),B&&this.S&&this.S.mN(q.Uc,q.startTime,this.K,(Z==null?void 0:Z.D)||[],(Z==null?void 0:Z.K)||[],(Z==null?void 0:Z.G)||[],F,(Z==null?void 0:Z.Ag)||0,(Z==null?void 0:Z.S)||void 0)):this.K===1&&ez(this,5,"noad")}else{var D=!1;this.policy.K&&(D=F?this.Y$===q.Uc:this.zP===q.Uc);if(this.S&&B&&!D){B=[];D=[];var G=[],n=void 0,b=0;Z&&(B=Z.D,D=Z.K,G=Z.G,n= Z.S,b=Z.Ag,this.iL("sdai",{sq:q.Uc,ssvicpns:B.join("."),ssvid:D.join(".")}));this.policy.K&&(F?this.Y$=q.Uc:this.zP=q.Uc);this.S.mN(q.Uc,q.startTime,this.K,B,D,G,F,b,n)}this.policy.K?F&&(this.K===1&&ez(this,5,"noad"),q.Uc!==((f=this.D)==null?void 0:f.Uc)&&(wMb(this,q,Z,F),isNaN(q.startTime)||w3y(this,q.Uc,I9(this,q.startTime,q.Uc),!!Z,this.S))):F&&wMb(this,q,Z)}}; g.r.uH=function(q,Z,F){var B=this.videoTrack.D.index.F3()<=Z;this.D={SC:q,Uc:Z,vp:F};B&&C_(this,q,Z)}; g.r.FK=function(){this.S&&this.S.FK()}; g.r.iL=function(q,Z,F){(q!=="sdai"||this.policy.JJ||(F===void 0?0:F))&&this.loader.iL(q,Z)}; g.r.LQ=function(q,Z){var F=this.videoTrack.D.index.eI(q);if(F>=0){var B;var f=((B=Z.h0.zm(F,2))==null?void 0:B.lD)||"";if(this.policy.K||f)return Z.qS(q,F),Ja(this.loader,q,q,F),this.iL("sdai",{cmskpad:1,t:q.toFixed(3),sq:F}),!0}this.iL("sdai",{cmskpad:0,t:q.toFixed(3),sq:F});return!1};g.r=swy.prototype;g.r.y4=function(q,Z,F){var B=q||this.D;this.iL("clsdai",{setadcfg:1,ocid:q,cid:B,acpn:F,acfglen:(Z==null?void 0:Z.length)||0});this.K.has(B)||(this.iL("clsdai",{setadcfg:"noentry",cid:B}),this.K.set(B,{event:"unknown",startTimeSecs:0,jC:0,iZ:[],oC:Date.now(),yu:-1,kV:6}));(q=this.K.get(B))?Z?(q.kV=6,q.iZ.push(F),q.y6=Z):q.kV=2:this.iL("clsdai",{setadcfg:"notfound",cid:B})}; g.r.P2=function(q){q=q||this.D;var Z=this.K.get(q);Z?(Z.y6="",Z.kV=4):this.iL("clsdai",{rmadcfg:"notfound",cid:q})}; g.r.SF=function(q,Z,F){var B;if(!((((B=q.aC)==null?void 0:B.length)||0)<=0)&&(q=q.aC[0],q.SC)){var f;B=-(((f=q.SC)==null?void 0:f.VY)||0);q.timeRange&&(B+=(q.timeRange.startTicks||0)/(q.timeRange.timescale||1));var D,G,n,b,N;f=new IC(B,((D=q.SC)==null?void 0:D.pf_)||0,((G=q.SC)==null?void 0:G.O5)||"",((n=q.SC)==null?void 0:n.identifier)||"",gNX((b=q.SC)==null?void 0:b.event),(((N=q.SC)==null?void 0:N.VY)||0)*1E3);IGK(this,f,Z,q.Zi||0,F)}}; g.r.qS=function(q,Z,F){var B=q;this.G&&(B+=F);this.D4(B);B=this.K.get(this.D);if(!B||B.OG)return this.iL("clsdai",{skipadfail:1,cid:this.D,sn:Z,mt:q.toFixed(3),of:F.toFixed(3),skipsq:(B==null?void 0:B.OG)||-1}),!1;this.iL("clsdai",{skipadsuc:1,cid:this.D,sn:Z,mt:q.toFixed(3),of:F.toFixed(3)});B.OG=Z;return!0}; g.r.cD=function(){this.iL("clsdai",{rstskipad:1});for(var q=g.E(this.K.values()),Z=q.next();!Z.done;Z=q.next())Z.value.OG=NaN}; g.r.D4=function(q,Z){Z&&(this.Z=Z);if(this.D&&(Z=this.K.get(this.D))&&Z.startTimeSecs<=q&&q<=Z.startTimeSecs+Z.jC)return;Z=this.D||"";a:{for(var F="",B=g.E(this.K.entries()),f=B.next();!f.done;f=B.next()){var D=g.E(f.value);f=D.next().value;D=D.next().value;var G=void 0,n=void 0,b=void 0;if(((G=D)==null?void 0:G.startTimeSecs)<=q&&q<=((n=D)==null?void 0:n.startTimeSecs)+((b=D)==null?void 0:b.jC)){q=f;break a}n=G=void 0;F+=f+":"+((G=D)==null?void 0:G.startTimeSecs.toFixed(3))+":"+((n=D)==null?void 0: n.jC.toFixed(3))+";"}this.iL("clsdai",{no_cid:1,mt:q.toFixed(3),adConfigMap:F.substring(0,1024)});q=""}this.D=q;this.iL("clsdai",{updateccid:1,cid:this.D,ocid:Z})};g.V(yp,g.J);yp.prototype.cK=function(q,Z,F){F=F===void 0?{}:F;this.policy.NP=bj(q,F,this.G,Z===void 0?!1:Z)};YE.prototype.w9=function(q){var Z=this;if(this.policy.jh){var F=new Set(q);F.size===this.k$.size&&[].concat(g.YB(F)).every(function(B){return Z.k$.has(B)})||(this.loader.iL("lwnmow",{itagDenylist:[].concat(g.YB(q)).join(",")}),this.loader.rQ(!!F.size),this.PG=-1,this.k$=F,wt(this,this.D),this.WG=!0)}}; YE.prototype.cK=function(q,Z,F){F=F===void 0?{}:F;var B=this.policy.NP;this.Z.cK(q,Z===void 0?!1:Z,F);if(B!==this.policy.NP){wt(this,this.D);k1(this);var f,D;B>this.policy.NP&&((f=this.S)==null?0:g8(f.info))&&((D=this.nextVideo)==null||!g8(D.info))&&(this.Dl=!0)}};var m98={Sj:-1,Ym:!1,hj:0};g.V(iRD,g.J);iRD.prototype.SU=function(){F2D(this);g.J.prototype.SU.call(this)};iP.prototype.Da=function(q){this.timestampOffset=q;this.flush()}; iP.prototype.flush=function(){if(this.D.pos>0){var q={a:this.track.B1(),u:this.D.D6(),pd:Math.round(this.G),ad:Math.round(this.S)},Z=this.K;if(Z){var F=Z.D.info;q.itag=F.itag;F.D&&(q.xtags=F.D);q.sq=Z.Uc;q.st=Z.startTime;q.sd=Z.duration;this.track.policy.jj&&(q.si=Z.wq());Z.G&&(q.esl=Z.K+Z.S);Z.a6()&&(q.eos=1)}isNaN(this.timestampOffset)||(q.to=this.timestampOffset);var B;if(Z=(B=this.track.g2)==null?void 0:B.Ey({})){for(var f in Z)this.j[f]!==Z[f]&&(q["sb_"+f]=Z[f]);this.j=Z}this.track.iL("sbu", q);this.D.reset();this.buffered=[];this.Z=this.S=this.G=0;this.timestampOffset=this.K=void 0}};$q.prototype.dispose=function(){this.uL=!0}; $q.prototype.jU=function(){return this.uL}; g.V(IG,Error);dM.prototype.skip=function(q){this.offset+=q}; dM.prototype.kE=function(){return this.offset};g.r=dWk.prototype;g.r.Uz=function(){return this.K}; g.r.fv=function(){return this.K.length?this.K[this.K.length-1]:null}; g.r.PE=function(){this.K=[];Ep(this);y0(this)}; g.r.gS=function(q){this.Oc=this.K.shift().info;q.info.equals(this.Oc)}; g.r.Tn=function(){return g.DC(this.K,function(q){return q.info})}; g.r.B1=function(){return!!this.Z.info.audio}; g.r.isDrm=function(){return!!this.Z.info.Ni}; g.r.getDuration=function(){return this.Z.index.fU()};g.V(xL,OR);g.r=xL.prototype;g.r.onStateChange=function(){this.jU()&&(pb(this.P1,this.formatId),this.D.dispose())}; g.r.qb=function(){var q=Qy6(this.P1,this.formatId),Z;var F=((Z=this.P1.He.get(this.formatId))==null?void 0:Z.bytesReceived)||0;var B;Z=((B=this.P1.He.get(this.formatId))==null?void 0:B.wG)||0;return{expected:q,received:F,bytesShifted:Z,sliceLength:rLK(this.P1,this.formatId),isAnyMediaEndReceived:this.P1.Dy(this.formatId)}}; g.r.Kj=function(){return 0}; g.r.cV=function(){return!0}; g.r.aW=function(){return this.P1.aW(this.formatId)}; g.r.Nv=function(){return[]}; g.r.ya=function(){return this.P1.ya(this.formatId)}; g.r.Hf=function(){return this.lastError}; g.r.yR=function(){return 0};g.V(d6,g.J);g.r=d6.prototype;g.r.B1=function(){return!!this.D.info.audio}; g.r.fv=function(){return this.G.fv()}; g.r.gS=function(q){this.G.gS(q);var Z;(Z=this.V)!=null&&(Z.Z.add(q.info.Uc),Z.D=k_K(Z,Z.z0,Z.O$,q,Z.D),Z.S=q,Z.j=(0,g.Le)());this.Ml=Math.max(this.Ml,q.info.D.info.Ml||0)}; g.r.getDuration=function(){return this.D.index.fU()}; g.r.PE=function(){Qo(this);this.G.PE()}; g.r.Lf=function(){return this.G}; g.r.Gh=function(q){return this.g2?tC(this.g2.nw(),q):!0}; g.r.isRequestPending=function(q){return this.S.length?q===this.S[this.S.length-1].info.TP[0].Uc:!1}; g.r.Da=function(q){var Z;(Z=this.V)==null||Z.Da(q);var F;(F=this.PG)==null||F.Da(q)}; g.r.iL=function(q,Z){this.loader.iL(q,Z)}; g.r.wA=function(){return this.loader.wA()}; g.r.dispose=function(){var q;(q=this.PG)==null||q.flush();g.J.prototype.dispose.call(this)};g.V(jy,g.J);jy.prototype.S=function(){this.K++>15||(this.D=!this.D,new Bv7(this.loader,this.policy,this.Zv,this.m6,this.D),this.delay.start())}; g.r=Bv7.prototype;g.r.I8=function(){}; g.r.cz=function(){}; g.r.Es=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.YE()===this.size)this.loader.iL("rqs",this.getInfo());else{var q="net.connect";this.xhr.status>200?q="net.badstatus":this.xhr.sH()&&(q="net.closed");this.onError(q)}}; g.r.onError=function(q){var Z=this;this.loader.handleError(q,this.getInfo());o0("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(F){Z.loader.iL("pathprobe",F)},function(F){Z.loader.handleError(F.errorCode,F.details)})}; g.r.getInfo=function(){var q=this.timing.pU();q.shost=p7(40,this.location.vH);q.pb=this.size;return q};g.V(jV,g.J); jV.prototype.X=function(q,Z){if(q.X){this.Np.isLive?(q=this.Np.Ra&&this.Np.G?q.D.Pp(this.Np.Ra,!1):q.D.Ly(Infinity),q.pE=this.pE):q=q.D.Pp(0,!1);if(this.Dl){var F=this.Dl;q.pE===0&&(q.Z=F.V)}else q.Z=this.PG;return q}F=q.K;if(!F.D.wR())return F.D.j7()?(q=sE(this.Z,q.D.info.Ml,Z.D.info.Ml,0),q=F.D.nF(F,q)):q=F.D.Ji(F),q;var B=F.j-this.loader.getCurrentTime(),f=!F.range||F.S===0&&F.K===0?0:F.range.length-(F.K+F.S),D=F.D;this.eX(q,B)&&f===0&&(this.Np.isManifestless?D=q.D:(D=F.startTime+ah,F.S&&(D+=F.duration), x3(q,D),F=q.K,D=F.D));D.j7()?(f=this.S,Z=sE(this.Z,D.info.Ml,Z.D.info.Ml,B,f.G.length>0&&f.V===0&&this.loader.z6),B=rg(q),q=F.D.nF(F,Z),(Z=q.S)&&q.TP.length>1&&(B||q.m6.S||q.TP[0].D!==F.D?q=F.D.nF(F,q.TP[0].S):(B=q.TP[q.TP.length-1],D=B.S/Z,!B.G&&D<.4&&(q=F.D.nF(F,Z-B.S))))):(F.Uc<0&&(Z=Nn(F),Z.pr=""+q.S.length,this.loader.isSeeking()&&(Z.sk="1"),Z.snss=F.X,this.loader.iL("nosq",Z)),q=D.Ji(F));if(this.policy.k$)for(F=g.E(q.TP),Z=F.next();!Z.done;Z=F.next())Z.value.type=6;return q}; jV.prototype.eX=function(q,Z){if(!rg(q)||!q.D.wR())return!1;var F;(F=this.S.WG)||(F=rg(q)&&q.D.wR()&&q.K.D.info.Ml=Z)return B.return();(F=q.D.get(0))&&Kbj(q,F);g.C7(B)})}; var kxD={Mip:0,eGL:1,WpL:2,qsU:3,Fhp:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};PBb.prototype.decrypt=function(q){var Z=this,F,B,f,D,G,n;return g.h(function(b){switch(b.D){case 1:if(Z.D.length&&!Z.D[0].isEncrypted)return b.return();Z.K=!0;Z.fQ.We("omd_s");F=new Uint8Array(16);hV()?B=new g.LE(q):f=new g.k8(q);case 2:if(!Z.D.length||!Z.D[0].isEncrypted){b.An(4);break}D=Z.D.shift();if(!B){G=f.decrypt(NN(D.buffer),F);b.An(5);break}return g.R(b,B.decrypt(NN(D.buffer),F),6);case 6:G=b.K;case 5:n=G;for(var N=0;N=4)){var Z=Fy(this),F=this.xhr;Z.rc=F.status;q&&(Z.ab=!0);if(F.nm()){var B="onesie.net";Z.msg=F.nm()}else F.status>=400?B="onesie.net.badstatus":F.mG()?this.sz||(B="onesie.response.noplayerresponse"):B=F.status===204?"onesie.net.nocontent":"onesie.net.connect";B?this.fail(new g.xX(B,Z)):(this.We("or_fs"),this.nP.f9((0,g.Le)(),F.YE(),0),this.xS(4),this.Z2&&this.iL("rqs",Z));this.Z2&&this.iL("ombre","ok."+ +!B);this.nI=!1;$L(this); Ai(this.fQ);if(!this.iS){this.tQ.stop();var f;(f=this.lV)==null||f.stop()}var D;if(q=(D=this.Rm)==null?void 0:vkK(D))for(D=0;D1E3){var q;(q=this.nP)==null||q.cO((0,g.Le)());q=Fy(this);if(this.J.Nl()&&this.xhr instanceof tZ){var Z=this.xhr;q.xrs=Z.xhr.readyState;q.xpb=Z.D.totalLength;q.xdc=Z.G}this.fail(new g.xX("net.timeout",q))}}else(0,g.Le)()-this.nP.D>1E4&&((Z=this.nP)==null||Z.cO((0,g.Le)()),this.ZO());this.isComplete()||this.Qe.start()}}; g.r.ZO=function(){this.nI=!1;if(!$L(this)){var q=Fy(this);q.timeout="1";this.fail(new g.xX("onesie.request",q))}}; g.r.fail=function(q){var Z=this;q=cs(q);this.N9?this.Mp.Zt(q):(this.FG.reject(q),this.N9=!0);Ai(this.fQ);this.iS||this.tQ.stop();this.We("or_fe");var F,B;(F=this.Rm)==null||(B=vkK(F))==null||B.forEach(function(f){Z.iL("pathprobe",f)}); this.xS(5);this.dispose()}; g.r.isComplete=function(){return this.state>=3}; g.r.Nm=function(){return this.state===4}; g.r.Mm=function(q){var Z,F;return this.isComplete()||!!((Z=this.A8)==null?0:(F=Z.get(q))==null?0:F.D)}; g.r.WS=function(){return!1}; g.r.WY=function(){return this.state===5}; g.r.notifySubscribers=function(q){for(var Z=0;Z102400&&!this.rO&&(this.We("or100k"),this.rO=!0);if(q.HC()){var Z=q.t$(),F=Z.totalLength;this.Z2&&this.iL("ombrss","len."+F);this.CR.feed(Z)}if(this.A8)for(var B=g.E(this.A8.keys()),f=B.next();!f.done;f=B.next()){var D=f.value;q=void 0;(q=this.A8.get(D))==null||q.uE();this.notifySubscribers(D)}}catch(G){this.fail(G)}}; g.r.HE=function(){return this.nP.requestNumber}; g.r.TV=function(q){return this.zB.get(q)};g.V(Ir,g.J);g.r=Ir.prototype;g.r.dS=function(q,Z){this.Dl=void 0;m0k(this);JFD(this,q,Z)}; g.r.aE=function(q){if(this.D.length===0)return!1;var Z=this.D[0];return Z instanceof xx?q===this.loader.getCurrentTime()*1E3:!(Z instanceof QJ&&FN8(Z.info))&&Math.abs(Z.W9()-q)<50}; g.r.tJ=function(q,Z){this.K=q;this.policy.Gy&&this.policy.K&&!q.playbackCookie&&this.loader.iL("sbrnocookie",{rn:Z!=null?Z:-1});this.Dl=(0,g.Le)()+(q.backoffTimeMs||0)}; g.r.RM=function(q,Z){if(q.action===void 0){var F=this.Mp.eb();F!==void 0&&this.loader.UJ(F)}else if(q.action!==0||!this.HG)if(q.action===0&&this.policy.pW&&(q.action=2),q.Hv==="sabr.malformed_config"&&this.o_++<3)this.loader.handleError("sabr.malformed_config",{action:q.action,rn:Z,retry:this.o_},0);else switch(q.Hv==="sabr.malformed_config"&&(q.action=2),F={},F.reason=q.Hv,F.action=q.action,F.rn=Z,q.action){case 1:this.policy.K&&this.X&&this.X.b$(void 0,void 0,F);break;case 0:this.HG=!0;this.videoData.tP()&& this.policy.K&&this.X&&this.X.b$(void 0,void 0,F,!1);this.loader.J9(F);break;case 2:ptB(q.Hv)!=="sabr.config"&&delete F.reason;this.loader.handleError(ptB(q.Hv),F,1);break;case 3:this.policy.Tb&&((q=this.Np.PG)!=null&&(q.V=!0),this.loader.handleError("sabr.hostfallback",F))}}; g.r.JK=function(q){q&&(this.loader.iL("sabrctxt",{onsbrctxt:q.type,scp:q.scope,dflt:q.sendByDefault}),q.type&&q.sendByDefault&&this.videoData.I_.add(q.type),q.scope!==2&&(q.type&&this.videoData.sabrContextUpdates.set(q.type,q),this.Mp.JK(q)))}; g.r.YY=function(){}; g.r.XG=function(q,Z){if(this.loader.G7)this.loader.iL("sdai",{ignSabrSeek:1,smt:q==null?void 0:q.f$,rn:Z});else if(q.f$!==void 0&&q.YJ){var F=q.f$/q.YJ;this.audioTrack.X=!1;this.videoTrack.X=!1;if(this.policy.uL||this.policy.cH||this.policy.Uf)this.loader.W1.D=!1;var B=this.loader.kH(F,1);this.policy.I_&&this.policy.K&&this.loader.D4(B,Z);this.Mp.getCurrentTime()!==F&&(Z={V5:"sabr_seek",mR:!0,qH:!0},q.seekSource&&(Z.seekSource=q.seekSource),LW(this.loader,F+.1,Z))}}; g.r.onSnackbarMessage=function(q){this.Mp.publish("onSnackbarMessage",q)}; g.r.SF=function(q,Z){this.policy.j&&!IEk(this.videoData)&&this.loader.SF(q,Z)}; g.r.hD=function(q){q.Kt&&q.kF&&CH(this.Np,q.Kt,q.kF);this.policy.FP&&(q.wb&&q.U7&&(this.Np.wx=q.wb/q.U7),q.Gp&&q.zp&&(this.Np.Ds=q.Gp/q.zp));Jz(this.videoData)&&!this.videoData.zP&&q.kF&&this.loader.kH(q.kF,1E3);q.fg!=null&&this.Mp.Y5(q.fg);q.hB&&(q=((0,g.Le)()-q.hB)/1E3,this.loader.Ee.sT(1,q))}; g.r.Lb=function(q){this.loader.Lb(q)}; g.r.hR=function(q){return this.videoData.I_.has(q)}; g.r.kY=function(q,Z,F){this.policy.S&&this.loader.iL("sabrctxtplc",{start:q?q.join("_"):"",stop:Z?Z.join("_"):"",discard:F?F.join("_"):""});if(q){q=g.E(q);for(var B=q.next();!B.done;B=q.next())this.videoData.I_.add(B.value)}if(Z)for(Z=g.E(Z),q=Z.next();!q.done;q=Z.next())q=q.value,this.videoData.I_.has(q)&&this.videoData.I_.delete(q);if(F)for(F=g.E(F),Z=F.next();!Z.done;Z=F.next())if(Z=Z.value,this.videoData.sabrContextUpdates.has(Z)&&this.videoData.sabrContextUpdates.delete(Z),this.policy.Dl&&this.D.length)for(q= g.E(this.D),B=q.next();!B.done;B=q.next())if(B=B.value,!(B instanceof xx)){var f=void 0;((f=B.Ah)==null?void 0:f.type)===Z&&(B.Ah=void 0)}}; g.r.Bv=function(){}; g.r.gP=function(q){this.j=q}; g.r.w6=function(q){this.Z=q}; g.r.ZW=function(q,Z){UV(this.policy,q,4,Z)}; g.r.nG=function(q){if(q==null?0:q.Yt)if(q=q.Yt.JF){q=g.E(q);for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.formatId){var F=this.Np.S.get(EB(Z.formatId));F&&F.info&&(F.info.debugInfo=Z.debugInfo)}}}; g.r.m9=function(q){this.Mp.publish("reloadplayer",q)}; g.r.Vd=function(){return this.Mp.Vd()||""}; g.r.gZ=function(){var q=Em8(this);return Math.min(q.mu,q.XL)}; g.r.S$=function(q,Z){this.loader.iL(q,Z)}; g.r.b8=function(q){$vg(this.loader,q_B(this.vG,q))}; g.r.SU=function(){g.J.prototype.SU.call(this);this.K=void 0;JFD(this,!0,"i");this.D=[]};IW.prototype.Dl=function(q){Oi(q.state)&&xN7(this.S)}; IW.prototype.clear=function(){AGD(this.S);this.Z.clear();this.K.clear();this.X=this.V=NaN;this.j=!1;this.h1=""}; IW.prototype.rz=function(){this.isSeeking=!0;this.D===1&&AGD(this.S);this.D===0&&this.GD.WZ("transitiondetector");this.j=!1};d_.prototype.pP=function(q,Z){if(this.G)return Yv7(this,Z);if(Z=oM(q)){var F=Z.D;F&&F.S&&F.D&&(q=q.S.length?q.S[0]:null)&&q.state>=2&&!q.WY()&&q.info.pE===0&&(this.G=q,this.X=F,this.K=Z.info,this.j=this.startTimeSecs=Date.now()/1E3,this.Z=this.K.startTime)}return NaN}; d_.prototype.clear=function(){this.K=this.X=this.G=null;this.D=this.Z=this.j=this.startTimeSecs=NaN;this.S=!1};g.V(WQg,g.J);WQg.prototype.SU=function(){LAD(this);g.J.prototype.SU.call(this)};var G1b=/[?&]cpn=/;g.V(XW,g.J);XW.prototype.flush=function(){var q={};this.K&&(q.pe=this.K);this.D.length>0&&(q.pt=this.D.join("."));this.D=[];return q}; XW.prototype.stop=function(){var q=this,Z,F,B;return g.h(function(f){if(f.D==1)return g.s4(f,2),g.R(f,(Z=q.G)==null?void 0:Z.stop(),4);if(f.D!=2)return(F=f.K)&&q.logTrace(F),g.jB(f,0);B=g.If(f);q.K=$$B(B.message);g.C7(f)})}; XW.prototype.logTrace=function(q){this.encoder.reset();this.encoder.add(1);this.encoder.add(q.resources.length);for(var Z=g.E(q.resources),F=Z.next();!F.done;F=Z.next()){F=F.value.replace("https://www.youtube.com/s/","");this.encoder.add(F.length);for(var B=0;B=0?q:g.$w(this.provider),this.zP?q_t.has(this.CP)&&(this.D.size||(this.CP==="PL"?q>=this.K+30:q<=this.Dl+30||q>=this.K+1200&&q<=this.Dl+86400))&&(g.zR(this,q,"vps",[this.CP]),this.K=q):["PL","B","S"].indexOf(this.CP)>-1&&(this.D.size||q>=this.K+30)&&(g.zR(this,q,"vps",[this.CP]),this.K=q),this.D.size)){this.sequenceNumber===7E3&&g.bh(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){PH(this,q);var Z=this.provider.Mp.t5(); Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next())F=F.value,this.iL(F.key,F.value);Z=q;F=this.provider.Mp.vM();var B=F.droppedVideoFrames||0,f=F.totalVideoFrames||0,D=B-this.Ur,G=f&&!this.d_;B>F.totalVideoFrames||D>5E3?Zyb(this,"html5.badframedropcount","df."+B+";tf."+F.totalVideoFrames):(D>0||G)&&g.zR(this,Z,"df",[D]);this.Ur=B;this.d_=f;this.V>0&&(g.zR(this,q,"glf",[this.V]),this.V=0);FC.isActive()&&(q=FC.Fi(),Object.keys(q).length>0&&this.iL("profile",q));this.w2&&qi(this,"lwnmow");this.provider.J.Nl()&& this.provider.U("html5_record_now")&&this.iL("now",{wt:(0,g.Le)()});q={};this.provider.videoData.K&&(q.fmt=this.provider.videoData.K.itag,(Z=this.provider.videoData.G)&&Z.itag!==q.fmt&&(q.afmt=Z.itag));q.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(q.adcpn=this.adCpn);this.Y7&&(q.addocid=this.Y7);this.contentCpn&&(q.ccpn=this.contentCpn);this.Y$&&(q.cdocid=this.Y$);this.provider.videoData.cotn&&(q.cotn=this.provider.videoData.cotn);q.el=JW(this.provider.videoData);q.content_v=TH(this.provider.videoData); q.ns=this.provider.J.Dl;q.fexp=HY8(this.provider.J.experiments).toString();q.cl=(814261735).toString();(Z=this.provider.videoData.adFormat||this.adFormat)&&(q.adformat=Z);(Z=DD(this.provider.videoData))&&(q.live=Z);this.provider.videoData.sI()&&(q.drm=1,this.provider.videoData.Z&&(q.drm_system=hXj[this.provider.videoData.Z.flavor]||0),this.provider.videoData.drmProduct&&(q.drm_product=this.provider.videoData.drmProduct));Ec()&&this.provider.videoData.j&&(q.ctt=this.provider.videoData.j,q.cttype=this.provider.videoData.Fk, this.provider.videoData.mdxEnvironment&&(q.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(q.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.X1&&(q.dai_fallback="1")):this.provider.videoData.fp?q.dai="cs":this.provider.videoData.s4&&(q.dai="disabled");q.seq=this.sequenceNumber++;if(this.provider.videoData.EF){if(Z=this.provider.videoData.EF,q&&Z)for(Z.ns==="3pp"&&(q.ns="3pp"),this.J0.has(Z.ns)&&qi(this,"hbps"), Z.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=Z.shbpslc),this.provider.J.experiments.qp("html5_use_server_qoe_el_value")&&this.I_.delete("el"),F=g.E(Object.keys(Z)),B=F.next();!B.done;B=F.next())B=B.value,this.I_.has(B)||(q[B]=Z[B])}else q.event="streamingstats",q.docid=this.provider.videoData.videoId,q.ei=this.provider.videoData.eventId;this.isEmbargoed&&(q.embargoed="1");Object.assign(q,this.provider.J.D);if(Z=q.seq)Z={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+Z, serializedWatchEndpointLoggingContext:this.provider.videoData.Kkn},this.serializedHouseBrandPlayerServiceLoggingContext&&(Z.serializedHouseBrandPlayerServiceLoggingContext=VP(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(Z.playerResponseCpn=this.provider.videoData.playerResponseCpn),m4.length&&(Z.decoderInfo=m4),this.remoteControlMode&&(Z.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(Z.remoteConnectedDevices= this.remoteConnectedDevices),Z=g.q7(Z,mO7),Z=g.MR(Z,4),this.D.set("qclc",[Z]);q=g.gJ("//"+this.provider.J.GE+"/api/stats/qoe",q);F=Z="";B=g.E(this.D.entries());for(f=B.next();!f.done;f=B.next())D=g.E(f.value),f=D.next().value,D=D.next().value,G=void 0,(G=D)!=null&&G.join&&(f="&"+f+"="+D.join(","),f.length>100?F+=f:Z+=f);NRg(this,q+Z,F.replace(/ /g,"%20"))}this.D.clear()}}; g.r.rQ=function(q){this.w2=q}; g.r.Oi=function(){if(this.provider.videoData.Z){var q=this.provider.videoData.Z;qi(this,"eme-"+(q.keySystemAccess?"final":Yz(q)?"ms":vv(q)?"ytfp":bp(q)?"safarifp":"nonfinal"))}}; g.r.gA=D6(53);g.r.vE=function(q){this.isEmbargoed=q}; g.r.TH=D6(30);g.r.El=D6(36);g.r.onPlaybackRateChange=function(q){var Z=g.$w(this.provider);q&&q!==this.G0&&(g.zR(this,Z,"rate",[q]),this.G0=q);this.zP||this.reportStats(Z)}; g.r.cE=D6(24);g.r.getPlayerState=function(q){if(g.p(q,128))return"ER";if(g.p(q,2048))return"B";if(g.p(q,512))return"SU";if(g.p(q,16)||g.p(q,32))return"S";if(q.isOrWillBePlaying()&&g.p(q,64))return"B";var Z=ZX_[cP(q)];g.em(this.provider.J)&&Z==="B"&&this.provider.Mp.getVisibilityState()===3&&(Z="SU");Z==="B"&&g.p(q,4)&&(Z="PB");return Z}; g.r.TI=function(q){var Z=g.$w(this.provider);g.zR(this,Z,"vfi",[q===0?"":""+q,q===0?"A":"M"])}; g.r.SU=function(){g.J.prototype.SU.call(this);g.V2(this.uL);g.V2(this.Tb)}; g.r.eE=function(q){this.isOffline=q;g.zR(this,g.$w(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.r.iL=function(q,Z,F){var B=this.Lp.indexOf(q)!==-1;B||this.Lp.push(q);if(!F||!B){Z=typeof Z!=="string"?NJ(Z):Z;Z=RTD(Z);if(!F&&!/^t[.]/.test(Z)){var f=g.$w(this.provider)*1E3;Z="t."+f.toFixed()+";"+Z}ow(this,"ctmp",q+":"+Z);nk(this);return f}}; g.r.va=function(q,Z,F){this.Z={p1p:Number(this.iL("glrem",{nst:q.toFixed(),rem:Z.toFixed(),ca:+F})),lm:q,JCE:Z,isAd:F}}; g.r.Bz=function(q,Z,F){g.zR(this,g.$w(this.provider),"ad_playback",[q,Z,F])}; g.r.sJ=function(q,Z){var F=g.$w(this.provider)*1E3;ow(this,"daism","t."+F.toFixed(0)+";smw."+(q*1E3).toFixed(0)+";smo."+(Z*1E3).toFixed(0))}; g.r.resume=function(){var q=this;isNaN(this.uL)?vwk(this):this.uL=g.TL(function(){q.reportStats()},1E4)}; var WS={},ZX_=(WS[5]="N",WS[-1]="N",WS[3]="B",WS[0]="EN",WS[2]="PA",WS[1]="PL",WS[-1E3]="ER",WS[1E3]="N",WS),q_t=new Set(["PL","B","S"]),m4=[];g.V(g.uj,g.J);g.r=g.uj.prototype;g.r.initialize=function(q,Z,F){q=q||0;this.policy.D||(Z=we6(this.D),K9X(this.Mp,new PE(Z.video,Z.reason)),this.Mp.sN(new PE(Z.audio,Z.reason)));this.policy.D&&kE(this);this.Np.isManifestless&&nNB(this.j);this.V&&f0k(this.V,this.videoTrack.D);Z=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var B=!this.Np.isManifestless;this.policy.Mx&&(B=B||this.Np.OZ);if(!this.policy.dU||this.policy.VO)this.currentTime=B?q:Z;this.policy.uL&&this.seek(this.getCurrentTime(),{}).Kz(function(){}); if(this.policy.D){var f;((f=this.Dl)==null?0:tOD(f,this.Vd()||""))&&DXB(this)&&J2K(this,this.videoTrack)&&J2K(this,this.audioTrack)&&(Or8(this.K,this.Dl),this.policy.Z&&WjD(this))}else this.zP&&(Y5D(this,this.videoTrack),Y5D(this,this.audioTrack),BOX(this.zP),delete this.zP);F?(zS(this,!1),g.$t(this.CJ)):(q=this.getCurrentTime()===0,no(this.j,this.videoTrack,this.videoTrack.D,q),no(this.j,this.audioTrack,this.audioTrack.D,q),this.policy.D&&p29(this.K,{hj:1}),this.policy.uL||this.seek(this.getCurrentTime(), {}).Kz(function(){}),this.timing.tick("gv")); (this.Np.Ra||this.Np.WH||this.Np.k$||this.Np.j$||this.Np.VO)&&this.Mp.qv(this.Np)}; g.r.resume=function(){if(this.isSuspended||this.z6){this.E_=this.z6=this.isSuspended=!1;try{this.pP()}catch(q){g.mM(q)}}}; g.r.ul=function(){return!this.policy.ix}; g.r.hg=function(q,Z){q=q===void 0?!1:q;Z=Z===void 0?!1:Z;d97(this);this.Mp.fE()&&(this.X=NaN);q?(this.policy.BG&&this.iL("loader",{setsmb:1}),this.policy.k$=!0,this.PE()):(zS(this,!1),Z||this.PE())}; g.r.setAudioTrack=function(q,Z,F){F=F===void 0?!1:F;if(!this.jU()){var B=!isNaN(Z);F&&B&&(this.audioTrack.uL=Date.now(),this.policy.lx&&(this.KB=!0));F=this.Mp.fE()&&!this.Mp.getVideoData().PG;if(this.policy.D){var f=this.G.jx(q.id,B);this.Mp.sN(f)}else f=this.D,f.K=f.Np.D[q.id],f.X=f.K,f=new Bv(f.X,f.S,B?"t":"m"),this.Mp.sN(new PE(f.audio,f.reason));B?(this.j$=Date.now(),B=this.audioTrack.D.index.eI(Z),this.iL("setAudio",{id:q.id,cmt:Z,sq:B}),B>=0&&(q=this.policy.tT?B+1:B,this.policy.D&&this.dS(!0, "mosaic"),D7y(this.audioTrack,q,NaN,NaN),!this.policy.OP&&this.Np.isLive&&cZ(this.Np,q,!1))):F||this.Mp.Mb()}}; g.r.setPlaybackRate=function(q){q!==this.PG.getPlaybackRate()&&this.PG.setPlaybackRate(q)}; g.r.eR=function(q){var Z=this.K.j;this.K.gP(q);this.iL("scfidc",{curr:EB(Z),"new":EB(q)});q&&EB(q)!==EB(Z)&&(this.dS(!0,"caption change"),this.pP())}; g.r.Ij=function(q){this.K.w6(q)}; g.r.BO=function(q){q.D.info.B1()?this.Mp.sN(q):K9X(this.Mp,q)}; g.r.b8=function(q){Ko(q.TP[q.TP.length-1])&&$vg(this,q_B(this.D,q.TP[0].D))}; g.r.Os=function(){return this.Mp.Os()}; g.r.gE=function(){return this.Mp.gE()}; g.r.Lb=function(q){this.Mp.C().Nl()&&this.iL("sps",{status:q.Cv||""});if(q.Cv===1)this.Mp.videoData.jj=0;else if(q.Cv===2||q.Cv===3){var Z=!1;if(q.Cv===3){Z=this.Mp.Ix();var F;this.Lp=(F=q.v2_)!=null?F:Infinity;this.Mp.videoData.jj=Z+1;(Z=NO(this))&&this.Xf(!0)}this.Mp.pX(!0,Z)}}; g.r.Sq=function(){return this.Mp.Sq()}; g.r.V$=function(){return this.Mp.V$()}; g.r.ri=function(q){this.Mp.ri(q)}; g.r.lEP=function(){var q,Z=(q=this.Mp.Mi())==null?void 0:q.getCurrentTime();Z?this.Mp.iL("rms",{cta:Z}):g.$t(this.bb)}; g.r.pP=function(){Tb(this);if(this.gU&&sh(this.gU)&&!this.gU.Xr()&&(!this.policy.dU||isFinite(this.getCurrentTime()))){var q=TJ(this.videoTrack);q=this.policy.Aa&&q&&q.a6();this.Np.isManifestless&&this.Np.G&&RD(this.Np)?(this.X=RD(this.Np),this.gU.Va(this.X)):ey(this.Np)&&!q?isNaN(this.X)?(this.X=this.getCurrentTime()+3600,this.gU.Va(this.X)):this.X<=this.getCurrentTime()+1800&&(this.X=Math.max(this.X+1800,this.getCurrentTime()+3600),this.gU.Va(this.X)):this.gU.isView||(q=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.X)||this.X!==q)&&q>0&&(this.gU.Va(q),this.X=q))}if(!this.jU())if(iU(this.Np)&&this.Np.WY()){var Z=this.Np;this.handleError("manifest.net.retryexhausted",Z.I_?{rc:Z.lw}:{rc:Z.lw.toString()},1)}else if(this.policy.D)a:{try{bu(this.K);this.Np.isManifestless&&this.policy.Z&&UR(this.W1);var F;((F=this.gU)==null?0:T7(F))&&this.Bb();p29(this.K);if(LR(this)&&this.BG){var B=this.K,f=this.BG,D=f.K.Sj;if(D===void 0?0:D>=0&&f.D===null){B.Mp.We("ismp_a");var G=f.K; var n=G.Sj;if(n===void 0)var b=!1;else{var N=G.Ym?B.Mp.OA(n):n,S;if(S=!B.loader.Gh(N)&&VEB(B,B.eU)){var l=B.Mp.getCurrentTime()*1E3,U=Ajk(B,l),u=U.Um;S=U.r$>=7E3&&u>=7E3}b=S}if(b){var P=Ysk(B,G);B.policy.vu>0&&B.eU.bJ++;P&&(f.D=P,B.Mp.We("ismp_rc"))}}}}catch(H){g.bh(H);Z=H;if(Z.message.includes("changeType")){this.iL("ctype",{exp:Z.name,msg:Z.message,s:Z.stack});break a}this.handleError("fmt.unplayable",{exp:Z.name,msg:Z.message,s:Z.stack,trg:"sabrslicerqt"},1)}Yj5(this);g.$t(this.vG)}else if(!this.Np.K|| !qa6(this.videoTrack)&&!qa6(this.audioTrack)||(this.videoTrack.Z||this.audioTrack.Z)&&this.policy.Gb?F=!1:(this.PE(),this.Mp.seekTo(Infinity,{V5:"checkLoaderTracksSync",kH:!0}),F=!0),!F){Tb(this);this.Np.isManifestless&&(t6E(this.videoTrack),t6E(this.audioTrack),UR(this.W1),(F=oM(this.videoTrack))&&F.D&&(F=F.D.S&&!this.policy.BX,this.iL(F===this.policy.V.dF?"strm":"strmbug",{strm:F,sfmp4:this.policy.V.dF,dfs:this.policy.BX},!0)));if(this.gU)this.Bb();else if(this.policy.G){var W;F=!1;if(this.policy.cJ)for(B= g.E([this.videoTrack,this.audioTrack]),f=B.next();!f.done;f=B.next()){D=f.value;for(f=oM(D);f&&D.fv()!==TJ(D);f=oM(D))D.gS(f);F=F||!!f}else(Z=oM(this.videoTrack))&&this.videoTrack.gS(Z),(W=oM(this.audioTrack))&&this.audioTrack.gS(W);Gk(this.videoTrack)&&Gk(this.audioTrack)||(Z||W||F)&&aF(this)}IY(this);no(this.j,this.videoTrack,this.videoTrack.D,!1);no(this.j,this.audioTrack,this.audioTrack.D,!1);if(!this.policy.RL&&(Z=this.videoTrack,B=this.audioTrack,(!this.gU||sh(this.gU)&&!this.policy.zE)&&!this.W1.isSeeking()&& (this.policy.D||rg(Z)&&Z.D.wR()&&this.D.Dl)))a:{if(W=this.getCurrentTime(),F=this.PG,B=sE(F,Z.D.info.Ml,B.D.info.Ml,0),f=c_(F.Zv)+B/k2(F.Zv),W+=Math.max(f,f+F.policy.Gw-B/Z.D.info.Ml),Z.S.length){if(Z.S[0].info.TP[0].startTime<=W)break a;Qo(Z)}F=Z.G;for(B=F.K.length-1;B>=0;B--)F.K[B].info.startTime>W&&F.K.pop();Oi8(Z);Z.K&&W5&&n.Dl.shift();Z=Z.Uc;var b;if((b=this.Mp.getVideoData())==null?0:b.enableServerStitchedDai)b=tWK(this.audioTrack,Z),F=tWK(this.videoTrack,Z),b!==0&&F!==0&&b!==F&&this.handleError("ssdai.avsync",{sq:Z,a:b,v:F},0)}}; g.r.uH=function(q,Z,F,B){q.info.video&&this.S.uH(Z,F,B)}; g.r.w9=function(q){this.D.w9(q)}; g.r.E1=D6(12);g.r.iY=function(){if(g.p(this.Mp.getPlayerState(),8)){var q,Z,F=(Z=(q=this.Mp.Mi())==null?void 0:q.getCurrentTime())!=null?Z:this.Mp.getCurrentTime(),B;(B=this.eU)==null||bmD(B,F)}var f;(f=this.Tb)==null||g.$t(f)}; g.r.r4=function(){return this.videoTrack.X||this.audioTrack.X}; g.r.seek=function(q,Z){if(this.jU())return HI();if(this.r4())return HI("seeking to head");if(this.policy.uL&&!isFinite(q))return wpg(this.W1),g.du(Infinity);Tb(this);kE(this);this.policy.D||IY(this,q);this.gU&&this.gU.D&&this.gU.K&&!this.Mp.getVideoData().qk&&(this.gU.D.isLocked()||this.gU.K.isLocked())&&this.Mp.Mb({reattachOnLockedBuffer:1,vsb:""+this.gU.K.isLocked(),asb:""+this.gU.D.isLocked()});var F=this.getCurrentTime(),B=this.W1.seek(q,Z);if(!this.policy.dU||this.policy.VO)this.currentTime= B;iH(this.S,q,F,this.policy.LH&&!Z.mR);aF(this);return g.du(B)}; g.r.aE=function(q){return this.policy.D&&this.K.aE(q)}; g.r.hR=function(q){return this.K.hR(q)}; g.r.dS=function(q,Z){this.K.dS(q,Z)}; g.r.getCurrentTime=function(){if(this.policy.dU){var q=this.oh()||0;return this.Mp.getCurrentTime(!0)-q}return this.currentTime}; g.r.ly=function(){return this.audioTrack.D.info}; g.r.eA=function(){return this.videoTrack.D.info}; g.r.sM=function(){return this.audioTrack.D.info.FE}; g.r.vR=function(){return this.videoTrack.D.info.FE}; g.r.SU=function(){try{this.hg(),Qo(this.audioTrack),Qo(this.videoTrack),dx(this.audioTrack),dx(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.J.prototype.SU.call(this)}catch(q){g.mM(q)}}; g.r.handleError=function(q,Z,F){F=F===void 0?0:F;var B=bY(F);q==="fmt.unplayable"&&this.Np.isLive&&(this.policy.mO=!1,Ej(this.Np));Z=new g.xX(q,Z,F);g.wk(this);NJ(Z.details);this.Mp.handleError(Z);q!=="html5.invalidstate"&&Z.errorCode!=="fmt.unplayable"&&q!=="fmt.unparseable"&&B&&this.dispose()}; g.r.Ey=function(){var q=TJ(this.audioTrack),Z=TJ(this.videoTrack);q={lct:this.getCurrentTime().toFixed(3),lsk:this.W1.isSeeking(),lmf:this.D.D.isLocked(),lbw:Rr(this.schedule).toFixed(3),lhd:c_(this.schedule).toFixed(3),lst:((this.schedule.X.Cm()||0)*1E9).toFixed(3),laa:q?q.wq():"",lva:Z?Z.wq():"",lar:this.audioTrack.K?this.audioTrack.K.wq():"",lvr:this.videoTrack.K?this.videoTrack.K.wq():"",laq:""+FH(this.audioTrack),lvq:""+FH(this.videoTrack)};this.gU&&!this.gU.TD()&&this.gU.D&&this.gU.K&&(q.lab= HA(this.gU.D.nw()),q.lvb=HA(this.gU.K.nw()));this.Y$&&(q.lapt=((0,g.Le)()-this.Y$).toFixed(0),q.lapr=YKm(this));this.Oc&&(q.lapmabht=((0,g.Le)()-this.Oc).toFixed(0),q.lapmabh=c7(this,this.audioTrack).toFixed(0));this.o_&&(q.lapmvbht=((0,g.Le)()-this.o_).toFixed(0),q.lapmvbh=c7(this,this.videoTrack).toFixed(0));this.HG&&(q.lapsdai=((0,g.Le)()-this.HG).toFixed(0));return q}; g.r.PE=function(){try{this.policy.D&&this.K.dS(!1,"pending"),this.audioTrack.PE(),this.videoTrack.PE()}catch(q){g.mM(q)}this.policy.G=""}; g.r.Gh=function(q){return this.videoTrack&&this.audioTrack?this.videoTrack.Gh(q)&&this.audioTrack.Gh(q):!0}; g.r.W7=function(){return J8(this.PG)}; g.r.iL=function(q,Z,F){this.Mp.iL(q,Z,F===void 0?!1:F)}; g.r.Vd=function(){return this.Mp.Vd()}; g.r.kH=function(q,Z){q/=Z;isNaN(this.timestampOffset)&&e6y(this,q-Math.min(q,this.policy.lP));return(q-this.timestampOffset)*Z}; g.r.oh=function(){return this.timestampOffset}; g.r.isSeeking=function(){return this.W1.isSeeking()}; g.r.FK=function(){this.S.FK()}; g.r.cK=function(q,Z,F){Z=Z===void 0?!1:Z;F=F===void 0?{}:F;this.policy.D?this.G.cK(q,Z,F):this.D.cK(q,Z,F)}; g.r.LQ=function(q,Z){if(this.policy.K&&(this.G7||this.isSeeking()))return this.iL("sdai",{ignoreSkip:"1",isSkip:this.G7,isSeek:this.isSeeking(),t:q.toFixed(3)}),!1;var F=this.policy.K&&(this.policy.j||this.policy.I_),B=this.videoTrack.D.index.eI(q),f=!1;if(F){var D;if(f=!((D=this.uL)==null||!D.qS(q,B,this.timestampOffset)))if(Ja(this,q,q,B),this.Z){var G;(G=this.Z)==null||G.qS(q,B)}}else this.Z&&(f=!!this.S.LQ(q,this.Z));if(!f)return this.handleError("ad.skipfailed",{dec:!!this.Z,t:q.toFixed(3),sq:B}), !1;this.policy.K&&(this.iL("sdai",{skipAdStd:"1"}),this.G7=!0);if(this.policy.Hg){var n;(n=this.eU)==null||n.clear()}e6y(this,this.timestampOffset-Z);aF(this);this.policy.K&&(Ej(this.Np),dx(this.audioTrack),dx(this.videoTrack),this.PE());return!0}; g.r.getManifest=function(){return this.Np}; g.r.isOffline=function(){return!!this.Mp.getVideoData().cotn}; g.r.Ci=function(q,Z){this.Mp.Ci(q,Z)}; g.r.UY=function(q){if(this.policy.D)this.K.dS(!0,"utc"),this.pP();else{var Z=this.Mp.getVideoData().oV;if(Z){var F=this.j;F.Ol=q;F.oV=Z;XV(this)}}}; g.r.UJ=function(q){this.videoTrack.X=!1;this.audioTrack.X=!1;this.W1.D=!1;this.Mp.UJ(q)}; g.r.l0=function(q){this.W1.l0(q-this.oh())}; g.r.F1=function(){this.Mp.F1()}; g.r.Xf=function(q){q!==this.policy.nE&&((this.policy.nE=q)||this.pP())}; g.r.Mb=function(q){this.Mp.Mb(q)}; g.r.rQ=function(q){this.Mp.rQ(q)}; g.r.y4=function(q,Z,F){var B;(B=this.uL)==null||B.y4(q,Z,F);this.policy.j&&(this.K.Dl=void 0,this.pP())}; g.r.P2=function(q){var Z;(Z=this.uL)==null||Z.P2(q)}; g.r.D4=function(q,Z){var F;(F=this.uL)==null||F.D4(q,Z)}; g.r.Ix=function(){return this.Mp.Ix()}; g.r.SF=function(q,Z){if(this.policy.j){var F,B=(F=q.aC)==null?void 0:F[0],f,D,G;this.iL("clidai",{onqlst:1,len:((f=q.aC)==null?void 0:f.length)||0,rn:Z,evt:gNX(B==null?void 0:(D=B.SC)==null?void 0:D.event),cid:(B==null?void 0:(G=B.SC)==null?void 0:G.identifier)||"null",sq:(B==null?void 0:B.Zi)||-1,trk:(B==null?void 0:B.trackType)||"null"});var n;(n=this.uL)==null||n.SF(q,Z,this.Z||void 0)}}; g.r.prefetchKeyPlay=function(q,Z){var F=this;LR(this)&&(this.BG||(this.BG=new iRD(function(B){F.Mp.We(B)}),g.y(this,this.BG)),yj9(this.BG,{Sj:q, Ym:Z,hj:2}),this.pP())};g.r=g.fN.prototype;g.r.Jg=function(q,Z,F,B,f,D){return this.h0.Jg(q,Z,F,B,f,D)}; g.r.aB=function(q,Z,F,B,f,D){return this.h0.aB(q,Z,F,B,f,D)}; g.r.M6=function(q){return this.h0.M6(q)}; g.r.q7=function(q){this.h0.q7(q)}; g.r.b$=function(q,Z,F,B){return this.h0.b$(q,Z,F,B)}; g.r.FK=function(){this.h0.FK()}; g.r.qS=function(q,Z){this.h0.qS(q,Z)}; g.r.cD=function(){this.h0.cD()}; g.r.O1=D6(56);g.r.XX=function(q,Z,F){this.h0.XX(q,Z,F)}; g.r.U4=D6(59);g.r.mN=function(q,Z,F,B,f,D,G,n,b){this.h0.mN(q,Z,F,B,f,D,G,n,b)}; g.r.g6=function(q){this.h0.g6(q)}; g.r.B5=function(q){return this.h0.B5(q)}; g.r.uO=function(q){return this.h0.uO(q)}; g.r.Dm=function(q){return this.h0.Dm(q)};g.V(sk,g.In);g.V(dp,sk);dp.prototype.j=function(q,Z){if(q&&Z){var F=Number(Hu(q,"cpi"))*1+1;isNaN(F)||F<=0||Fthis.S&&(this.S=F,g.q_(this.D)||(this.D={},this.G.stop(),this.K.stop())),this.D[Z]=q,g.$t(this.K))}}; dp.prototype.Z=function(){for(var q=g.E(Object.keys(this.D)),Z=q.next();!Z.done;Z=q.next()){var F=Z.value;Z=this.publish;for(var B=this.S,f=g.oi(this.D[F]),D=[],G=g.E(f[6].split("&")),n=G.next();!n.done;n=G.next())n=n.value,n.indexOf("cpi=")===0?D.push("cpi="+B.toString()):n.indexOf("ek=")===0?D.push("ek="+g.y5(F)):D.push(n);f[6]="?"+D.join("&");F="skd://"+f.slice(2).join("");f=F.length*2;B=new Uint8Array(f+4);B[0]=f%256;B[1]=(f-B[0])/256;for(f=0;f0)for(var F=g.E(this.D),B=F.next();!B.done;B=F.next())if(Z===B.value.info.cryptoPeriodIndex){Z=!0;break a}Z=!1}if(!Z){Z=(0,g.Le)();a:{F=q.cryptoPeriodIndex;if(!isNaN(F)){B=g.E(this.S.values());for(var f=B.next();!f.done;f=B.next())if(Math.abs(f.value.cryptoPeriodIndex-F)<=1){F=!0;break a}}F=!1}F?(F=q.D,F=Math.max(0,Math.random()*((isNaN(F)?120:F)-30))*1E3):F=0;this.publish("log_qoe",{wvagt:"delay."+F,cpi:q.cryptoPeriodIndex,reqlen:this.D.length}); F<=0?ABZ(this,q):(this.D.push({time:Z+F,info:q}),g.$t(this.K,F))}}; V5.prototype.SU=function(){this.D=[];sk.prototype.SU.call(this)};var yz={},KhB=(yz.DRM_TRACK_TYPE_AUDIO="AUDIO",yz.DRM_TRACK_TYPE_SD="SD",yz.DRM_TRACK_TYPE_HD="HD",yz.DRM_TRACK_TYPE_UHD1="UHD1",yz);g.V(qy9,g.J);g.V(Oc,g.In);g.r=Oc.prototype;g.r.US=function(q){var Z=this;if(!(this.jU()||q.size<=0)){var F={};q.forEach(function(B,f){var D=Xx(Z.K)?f:B;f=new Uint8Array(Xx(Z.K)?B:f);Xx(Z.K)&&FJj(f);B=g.MR(f,4);FJj(f);f=g.MR(f,4);Z.D[B]?Z.D[B].status=D:Z.D[f]?Z.D[f].status=D:Z.D[B]={type:"",status:D};rN8(Z,Z.D[B].type,F)}); TgK(this,",");zj(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.r.error=function(q,Z,F,B){this.jU()||(this.publish("licenseerror",q,Z,F,B),q==="drm.provision"&&(q=(Date.now()-this.j)/1E3,this.j=NaN,this.publish("ctmp","provf",{et:q.toFixed(3)})));bY(Z)&&this.dispose()}; g.r.shouldRetry=function(q,Z){return!q&&this.requestNumber===Z.requestNumber}; g.r.SU=function(){this.D={};g.In.prototype.SU.call(this)}; g.r.Ey=function(){var q={ctype:this.V.contentType||"",length:this.V.initData.length,requestedKeyIds:this.zP,cryptoPeriodIndex:this.cryptoPeriodIndex};this.S&&(q.keyStatuses=this.D);return q}; g.r.getInfo=function(){var q=this.G.join();if(tR(this)){var Z=new Set,F;for(F in this.D)this.D[F].status!=="usable"&&Z.add(this.D[F].type);q+="/UKS."+Array.from(Z)}return q+="/"+this.cryptoPeriodIndex}; g.r.fP=function(){return this.url};g.V(f4,g.J);g.r=f4.prototype;g.r.Nw=function(q){if(this.Z){var Z=q.messageType||"license-request";this.Z(new Uint8Array(q.message),Z)}}; g.r.US=function(){this.X&&this.X(this.D.keyStatuses)}; g.r.onClosed=function(){this.jU()||g.Vd("xboxone")&&this.S&&this.S("closedShouldNotRetry")}; g.r.u7=function(q){this.Z&&this.Z(q.message,"license-request")}; g.r.i7=function(q){if(this.S){if(this.K){var Z=this.K.error.code;q=this.K.error.systemCode}else Z=q.errorCode,q=q.systemCode;this.S("t.prefixedKeyError;c."+Z+";sc."+q,Z,q)}}; g.r.DX=function(){this.j&&this.j()}; g.r.update=function(q){var Z=this;if(this.D)return this.D.update(q).then(null,hd(function(F){kt6(Z,"t.update",F)})); this.K?this.K.update(q):this.element.addKey?this.element.addKey(this.V.keySystem,q,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.V.keySystem,q,this.initData,this.sessionId);return T1()}; g.r.SU=function(){this.D&&(this.PG?this.D.close().catch(g.bh):this.D.close());this.element=null;g.J.prototype.SU.call(this)};g.V(Jg,g.J);g.r=Jg.prototype;g.r.setServerCertificate=function(){return this.K.setServerCertificate?this.D.flavor==="widevine"&&this.D.zs?this.K.setServerCertificate(this.D.zs):Rn(this.D)&&this.D.Oc?this.K.setServerCertificate(this.D.Oc):null:null}; g.r.createSession=function(q,Z){var F=q.initData;if(this.D.keySystemAccess){Z&&Z("createsession");var B=this.K.createSession();vv(this.D)?F=Fak(F,this.D.Oc):Rn(this.D)&&(F=da7(F)||new Uint8Array(0));Z&&Z("genreq");q=B.generateRequest(q.contentType,F);var f=new f4(null,null,null,B,null,this.X);q.then(function(){Z&&Z("genreqsuccess")},hd(function(G){kt6(f,"t.generateRequest",G)})); return f}if(Yz(this.D))return gLD(this,F);if(bp(this.D))return B1B(this,F);if((B=this.element)==null?0:B.generateKeyRequest)this.element.generateKeyRequest(this.D.keySystem,F);else{var D;(D=this.element)==null||D.webkitGenerateKeyRequest(this.D.keySystem,F)}return this.G=new f4(this.element,this.D,F,null,null,this.X)}; g.r.l9=function(q){var Z=eC6(this,q);Z&&Z.u7(q)}; g.r.OR=function(q){var Z=eC6(this,q);Z&&Z.i7(q)}; g.r.f4=function(q){var Z=eC6(this,q);Z&&Z.DX(q)}; g.r.getMetrics=function(){var q=null;if(this.K&&this.K.getMetrics)try{q=this.K.getMetrics()}catch(Z){}return q}; g.r.SU=function(){this.S=this.K=null;var q;(q=this.G)==null||q.dispose();q=g.E(Object.values(this.j));for(var Z=q.next();!Z.done;Z=q.next())Z.value.dispose();this.j={};g.J.prototype.SU.call(this);delete this.element};g.r=C3.prototype;g.r.get=function(q){q=this.findIndex(q);return q!==-1?this.values[q]:null}; g.r.remove=function(q){q=this.findIndex(q);q!==-1&&(this.keys.splice(q,1),this.values.splice(q,1))}; g.r.removeAll=function(){this.keys=[];this.values=[]}; g.r.set=function(q,Z){var F=this.findIndex(q);F!==-1?this.values[F]=Z:(this.keys.push(q),this.values.push(Z))}; g.r.findIndex=function(q){return g.ny(this.keys,function(Z){return g.YR(q,Z)})};g.V(eH,g.In);g.r=eH.prototype;g.r.L6F=function(q){this.X$({onecpt:1});q.initData&&Weg(this,new Uint8Array(q.initData),q.initDataType)}; g.r.k0s=function(q){this.X$({onndky:1});Weg(this,q.initData,q.contentType)}; g.r.x_=function(q){this.X$({onneedkeyinfo:1});this.J.U("html5_eme_loader_sync")&&(this.X.get(q.initData)||this.X.set(q.initData,q));w5b(this,q)}; g.r.ZF=function(q){this.S.push(q);fS(this)}; g.r.createSession=function(q){var Z=e3X(this)?Ux9(q):g.MR(q.initData);this.K.get(Z);this.Y$=!0;q=new Oc(this.videoData,this.J,q,this.drmSessionId);this.K.set(Z,q);q.subscribe("ctmp",this.Hs,this);q.subscribe("keystatuseschange",this.US,this);q.subscribe("licenseerror",this.UV,this);q.subscribe("newlicense",this.JO,this);q.subscribe("newsession",this.M1,this);q.subscribe("sessionready",this.RN,this);q.subscribe("fairplay_next_need_key_info",this.Tp,this);this.J.U("html5_enable_vp9_fairplay")&&q.subscribe("qualitychange", this.W6,this);q.subscribe("sabrlicenseconstraint",this.oaa,this);R68(q,this.G)}; g.r.JO=function(q){this.jU()||(this.X$({onnelcswhb:1}),q&&!this.heartbeatParams&&(this.heartbeatParams=q,this.publish("heartbeatparams",q)))}; g.r.M1=function(){this.jU()||(this.X$({newlcssn:1}),this.S.shift(),this.Y$=!1,fS(this))}; g.r.RN=function(){if(Yz(this.D)&&(this.X$({onsnrdy:1}),this.BG--,this.BG===0)){var q=this.Dl,Z,F;(Z=q.element)==null||(F=Z.msSetMediaKeys)==null||F.call(Z,q.S)}}; g.r.US=function(q){if(!this.jU()){this.dU||(this.dU=!0,this.J.Nl()&&PT8(this));this.X$({onksch:1});var Z=this.W6;if(!tR(q)&&g.oV&&q.K.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var F="large";else{F=[];var B=!0;if(tR(q))for(var f=g.E(Object.keys(q.D)),D=f.next();!D.done;D=f.next())D=D.value,q.D[D].status==="usable"&&F.push(q.D[D].type),q.D[D].status!=="unknown"&&(B=!1);if(!tR(q)||B)F=q.G;F=n08(F)}Z.call(this,F);if(!tR(q))for(Z={},F=g.E(q.G),B=F.next();!B.done;B=F.next())rN8(q, B.value,Z);this.videoData.authorizedFormats=q.authorizedFormats;this.publish("keystatuseschange",q)}}; g.r.Hs=function(q,Z){this.jU()||this.publish("ctmp",q,Z)}; g.r.Tp=function(q,Z){this.jU()||this.publish("fairplay_next_need_key_info",q,Z)}; g.r.UV=function(q,Z,F,B){this.jU()||(this.videoData.U("html5_log_drm_metrics_on_error")&&PT8(this),this.publish("licenseerror",q,Z,F,B))}; g.r.LK=function(){return this.V}; g.r.W6=function(q){var Z=g.CE("auto",q,!1,"l");if(this.videoData.nD){if(this.V.equals(Z))return}else if(BGk(this.V,q))return;this.V=Z;this.publish("qualitychange");this.X$({updtlq:q})}; g.r.oaa=function(q){this.videoData.sabrLicenseConstraint=q}; g.r.SU=function(){var q,Z;this.D.keySystemAccess&&this.element&&!((q=this.mediaElement)==null?0:(Z=q.Mp)==null?0:Z.fE())&&(this.zP?this.element.setMediaKeys(null).catch(g.bh):this.element.setMediaKeys(null));this.element=null;this.S=[];q=g.E(this.K.values());for(Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.unsubscribe("ctmp",this.Hs,this),Z.unsubscribe("keystatuseschange",this.US,this),Z.unsubscribe("licenseerror",this.UV,this),Z.unsubscribe("newlicense",this.JO,this),Z.unsubscribe("newsession",this.M1, this),Z.unsubscribe("sessionready",this.RN,this),Z.unsubscribe("fairplay_next_need_key_info",this.Tp,this),this.J.U("html5_enable_vp9_fairplay")&&Z.unsubscribe("qualitychange",this.W6,this),Z.dispose();this.K.clear();this.j.removeAll();this.X.removeAll();this.heartbeatParams=null;g.In.prototype.SU.call(this)}; g.r.Ey=function(){for(var q={systemInfo:this.D.Ey(),sessions:[]},Z=g.E(this.K.values()),F=Z.next();!F.done;F=Z.next())q.sessions.push(F.value.Ey());return q}; g.r.getInfo=function(){return this.K.size<=0?"no session":""+this.K.values().next().value.getInfo()+(this.Z?"/KR":"")}; g.r.X$=function(q,Z){Z=Z===void 0?!1:Z;this.jU()||(NJ(q),(this.J.Nl()||Z)&&this.publish("ctmp","drmlog",q))};var XiK=!1,ALG=!1;g.V(ZQ,g.J);g.r=ZQ.prototype;g.r.P8=function(){return!!this.XM}; g.r.kf=function(){return this.K}; g.r.handleError=function(q){var Z=this;V16(this,q);var F;if(F=!((q.errorCode==="html5.invalidstate"||q.errorCode==="fmt.unplayable"||q.errorCode==="fmt.unparseable")&&S3(this,q.errorCode,q.details)))if(F=!ezK(this,q))this.videoData.errorDetail==="7"&&g.em(this.Qs)?(VP6(this,"innertube_player_reload_required"),F=!0):F=!1,F=!F;if(F)if(this.Qs.Dl!=="yt"&&dEB(this,q)&&this.videoData.b_&&(0,g.Le)()/1E3>this.videoData.b_&&this.Qs.Dl==="hm"&&(F=Object.assign({e:q.errorCode},q.details),F.stalesigexp="1", F.expire=this.videoData.b_,F.init=this.videoData.yr/1E3,F.now=(0,g.Le)()/1E3,F.systelapsed=((0,g.Le)()-this.videoData.yr)/1E3,q=new g.xX(q.errorCode,F,2),this.Mp.PL(q.errorCode,2,"SIGNATURE_EXPIRED",NJ(q.details))),bY(q.severity)){var B;F=(B=this.Mp.loader)==null?void 0:B.D.D;if(this.Qs.U("html5_use_network_error_code_enums"))if(t8_(q)&&F&&F.isLocked())var f="FORMAT_UNAVAILABLE";else if(this.Qs.j||q.errorCode!=="auth"||q.details.rc!==429)q.errorCode==="ump.spsrejectfailure"&&(f="HTML5_SPS_UMP_STATUS_REJECTED"); else{f="TOO_MANY_REQUESTS";var D="6"}else t8_(q)&&F&&F.isLocked()?f="FORMAT_UNAVAILABLE":this.Qs.j||q.errorCode!=="auth"||q.details.rc!=="429"?q.errorCode==="ump.spsrejectfailure"&&(f="HTML5_SPS_UMP_STATUS_REJECTED"):(f="TOO_MANY_REQUESTS",D="6");this.Mp.PL(q.errorCode,q.severity,f,NJ(q.details),D)}else this.Mp.publish("nonfatalerror",q),B=/^pp/.test(this.videoData.clientPlaybackNonce),this.Zt(q.errorCode,q.details),B&&q.errorCode==="manifest.net.connect"&&(q="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.Le)(),o0(q,"manifest",function(G){Z.j=!0;Z.iL("pathprobe",G)},function(G){Z.Zt(G.errorCode,G.details)}))}; g.r.iL=function(q,Z){this.Mp.Oy.iL(q,Z)}; g.r.Zt=function(q,Z){Z=NJ(Z);this.Mp.Oy.Zt(q,Z)};WH.prototype.jy=function(q){var Z=F1K(this);if(!q)return{yY:wH,tF:wH,CN:wH,GN:wH,bq:wH,Ei:wH,uj:Z};var F=wH;if(PX(Z)||this.U("html5_perf_cap_override_sticky"))F=WX(this,q);return{yY:F,tF:Bay(this,q),CN:I6D(this,q),GN:rV(this,q.videoData),bq:wV(this,q.videoData,q),Ei:yW(this,q),uj:Z}}; WH.prototype.JT=function(q){if(g.em(this.J)&&Sc(this.J.Z,lj.HEIGHT))var Z=q.D.videoInfos[0].video.qualityOrdinal;else{var F=this.rE(!!q.D.D);KS(q.videoData)||GR(q.videoData);q=q.D.videoInfos;if(q.length){var B=.85,f=q[0].video;f.projectionType!=="MESH"&&f.projectionType!=="EQUIRECTANGULAR"&&f.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||EUb||(B=.45);f=g.Ce(this.J.experiments,"html5_viewport_undersend_maximum");for(var D=0;D=0,stateAtSend:Z,joinLatencySecs:D,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:B,playerCanaryStage:f,isAd:this.provider.videoData.isAd(),liveMode:F,hasDrm:!!g.b2(this.provider.videoData),isGapless:this.provider.videoData.X,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Im(this.provider.videoData)};q||g.nh("html5PlayerHealthEvent",Z);this.S=!0;this.dispose()}}; KH.prototype.SU=function(){this.S||this.send();window.removeEventListener("error",this.G_);window.removeEventListener("unhandledrejection",this.G_);g.J.prototype.SU.call(this)}; var Fim=/\bnet\b/;qd.prototype.update=function(){if(this.X){var q=this.rR()||0,Z=g.$w(this.provider);q>=this.provider.Mp.getDuration()-.1&&(this.previouslyEnded=!0);if(q!==this.D||zAB(this,q,Z)){var F;if(!(F=qZ-this.mx+2||zAB(this,q,Z))){F=this.provider.Mp.getVolume();var B=F!==this.PG,f=this.provider.Mp.isMuted()?1:0;f!==this.V?(this.V=f,F=!0):(!B||this.G>=0||(this.PG=F,this.G=Z),F=Z-this.G,this.G>=0&&F>2?(this.G=-1,F=!0):F=!1)}F&&($3(this),this.S=q);this.mx=Z;this.D=q}}}; qd.prototype.rR=function(){var q=this.provider.Mp.rR();return qm(this.provider.videoData)?q+this.provider.Mp.oh():q};oL.prototype.send=function(q){var Z=this;if(!this.eU){var F=QG(this),B=g.gJ(this.uri,F);this.J.U("vss_through_gel_double")&&ELD(B);this.Y$&&!this.J.U("html5_simplify_pings")?dO9(this,B):jC(this,q).then(function(f){Z.J.U("html5_switch_vss_to_post")&&(f=f||{},f.method="POST");Z.Y$&&(f=f||{},f.method="POST",f.postParams={atr:Z.attestationResponse});rC(B,f,{token:Z.uL,nO:Z.Gb,mdxEnvironment:Z.mdxEnvironment},Z.J,q,Z.k$,Z.isFinal&&Z.gj||Z.dU||Z.S&&Z.oa)}); this.eU=!0}}; oL.prototype.K=function(q){q===void 0&&(q=NaN);return Number(q.toFixed(3)).toString()}; var LT={},VLk=(LT.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,LT.LIVING_ROOM_APP_MODE_MAIN=1,LT.LIVING_ROOM_APP_MODE_KIDS=2,LT.LIVING_ROOM_APP_MODE_MUSIC=3,LT.LIVING_ROOM_APP_MODE_UNPLUGGED=4,LT.LIVING_ROOM_APP_MODE_GAMING=5,LT),HS={},dP8=(HS.EMBEDDED_PLAYER_MODE_UNKNOWN=0,HS.EMBEDDED_PLAYER_MODE_DEFAULT=1,HS.EMBEDDED_PLAYER_MODE_PFP=2,HS.EMBEDDED_PLAYER_MODE_PFL=3,HS);g.V(Zo,g.J);g.r=Zo.prototype; g.r.W5=function(){if(!this.S){this.provider.videoData.m4===16623&&g.bh(Error("Playback for EmbedPage"));var q=Fu(this,"playback");this.X=MWK(this);EOD(this.D);q.X=pt(this);this.K>0&&(q.D-=this.K);q.send();if(this.provider.videoData.PP){q=this.provider.J;var Z=this.provider.videoData,F={html5:"1",video_id:Z.videoId,cpn:Z.clientPlaybackNonce,ei:Z.eventId,ptk:Z.PP,oid:Z.v6,ptchn:Z.s8,pltype:Z.JB,content_v:TH(Z)};Z.qF&&Object.assign(F,{m:Z.qF});q=g.gJ(q.JW+"ptracking",F);wC(this,q)}this.provider.videoData.KB|| (XG6(this),zk8(this));this.S=!0;q=this.D;q.D=q.rR();q.mx=g.$w(q.provider);!(q.S===0&&q.D<5)&&q.D-q.S>2&&(q.S=q.D);q.X=!0}}; g.r.onProgress=function(){this.D.update();RyK(this)&&(XG6(this),zk8(this))}; g.r.SU=function(){g.J.prototype.SU.call(this);tH(this);vDg(this.D)}; g.r.Ey=function(){return QG(Fu(this,"playback"))}; g.r.Yb=function(q){var Z=Fu(this,"engage");Z.zP=q;return K36(Z,$q6(this.provider))};DyK.prototype.isEmpty=function(){return this.endTime===this.startTime};bx.prototype.U=function(q){return this.J.U(q)}; bx.prototype.getCurrentTime=function(){return this.Mp.getCurrentTime()}; bx.prototype.rR=function(){return this.Mp.rR()}; var q4E={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.V(g.LC,g.J);g.r=g.LC.prototype;g.r.W5=function(){this.D&&this.D.W5();this.K&&this.K.W5()}; g.r.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.h1){var q;(q=this.S.get(this.h1))==null||q.onProgress()}else if(this.D)this.D.onProgress()}; g.r.vE=function(q){this.qoe&&this.qoe.vE(q)}; g.r.TH=D6(29);g.r.El=D6(35);g.r.sJ=function(q,Z){this.qoe&&this.qoe.sJ(q,Z)}; g.r.O9=function(){if(this.provider.videoData.enableServerStitchedDai&&this.h1){var q;(q=this.S.get(this.h1))!=null&&$3(q.D)}else this.D&&$3(this.D.D)}; g.r.Zt=function(q,Z){this.qoe&&Zyb(this.qoe,q,Z);if(this.K)this.K.onError(q)}; g.r.TI=function(q){var Z;(Z=this.qoe)==null||Z.TI(q)}; g.r.onPlaybackRateChange=function(q){if(this.qoe)this.qoe.onPlaybackRateChange(q);this.D&&$3(this.D.D)}; g.r.gA=D6(52);g.r.iL=function(q,Z,F){this.qoe&&this.qoe.iL(q,Z,F)}; g.r.va=function(q,Z,F){this.qoe&&this.qoe.va(q,Z,F)}; g.r.Y5=function(q){var Z;(Z=this.qoe)==null||Z.Y5(q)}; g.r.qv=function(q){var Z;(Z=this.qoe)==null||Z.qv(q)}; g.r.JD=function(q,Z,F,B){var f;(f=this.qoe)==null||f.JD(q,Z,F,B)}; g.r.rQ=function(q){this.qoe&&this.qoe.rQ(q)}; g.r.Bz=function(q,Z,F){this.qoe&&this.qoe.Bz(q,Z,F)}; g.r.cE=D6(23);g.r.bT=function(){if(this.qoe)return this.qoe.bT()}; g.r.Ey=function(){if(this.provider.videoData.enableServerStitchedDai&&this.h1){var q,Z;return(Z=(q=this.S.get(this.h1))==null?void 0:q.Ey())!=null?Z:{}}return this.D?this.D.Ey():{}}; g.r.VW=function(){var q;return(q=this.qoe)==null?void 0:q.VW()}; g.r.S4=function(q,Z){var F;(F=this.qoe)==null||F.S4(q,Z)}; g.r.Yb=function(q){return this.D?this.D.Yb(q):function(){}}; g.r.getVideoData=function(){return this.provider.videoData}; g.r.resume=function(){this.qoe&&this.qoe.resume()};g.V(g.y3,g.J);g.r=g.y3.prototype;g.r.sZ=function(q,Z){this.sync();Z&&this.D.array.length>=2E3&&this.oJ("captions",1E4);Z=this.D;if(q.length>1&&q.length>Z.array.length)Z.array=Z.array.concat(q),Z.array.sort(Z.D);else{q=g.E(q);for(var F=q.next();!F.done;F=q.next())F=F.value,!Z.array.length||Z.D(F,Z.array[Z.array.length-1])>0?Z.array.push(F):g.fm(Z.array,F,Z.D)}this.S=NaN;this.sync()}; g.r.MB=function(q){q.length>1E4&&g.bh(new g.M2("Over 10k cueRanges removal occurs with a sample: ",q[0]));if(!this.jU()){var Z=new Set(q);this.K=this.K.filter(function(F){return!Z.has(F)}); SsD(this.D,Z);this.sync()}}; g.r.R9=function(q,Z){if(!this.jU()){var F=this.V$().find(function(B){return B.id===Z&&B.namespace===q}); F&&this.MB([F])}}; g.r.oJ=function(q,Z){var F=(isNaN(this.S)?bGG(this):this.S)-Z;Z=this.V$().filter(function(B){return B.namespace===q&&B.endthis.D,D=g.p(F,8)&&g.p(F,16),G=this.Mp.BH().isBackground()||F.isSuspended();vG(this,this.o_,D&&!G,f,"qoe.slowseek",function(){},"timeout"); var n=isFinite(this.D);n=D&&n&&HRX(Z,this.D);var b=!B||Math.abs(B-this.D)>10,N=this.J.U("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),S=B===0&&this.K&&[11,10].includes(this.K);vG(this,this.eU,n&&b&&!G&&(!N||!S),f,"qoe.slowseek",function(){Z.seekTo(q.D)},"set_cmt"); b=n&&tC(Z.eW(),this.D);var l=this.Mp.loader;n=!l||l.ul();var U=function(){Z.seekTo(q.D+.001)}; vG(this,this.dU,b&&n&&!G,f,"qoe.slowseek",U,"jiggle_cmt");n=function(){return q.Mp.k6()}; vG(this,this.WG,b&&!G,f,"qoe.slowseek",n,"new_elem");var u=Oi(F);S=F.isBuffering();var P=Z.eW(),W=Y9(P,B),H=W>=0&&P.end(W)>B+5;b=u&&S&&H;N=this.Mp.getVideoData();vG(this,this.BG,B<.002&&this.D<.002&&D&&g.em(this.J)&&g.lM(N)&&!G,f,"qoe.slowseek",n,"slow_seek_shorts");vG(this,this.PG,N.Sg()&&D&&!G&&!N.PG,f,"qoe.slowseek",n,"slow_seek_gapless_shorts");vG(this,this.Dl,b&&!G,u&&!S,"qoe.longrebuffer",U,"jiggle_cmt");vG(this,this.uL,b&&!G,u&&!S,"qoe.longrebuffer",n,"new_elem_nnr");if(l){var X=l.getCurrentTime(); D=Z.qx();D=$mg(D,X);D=!l.isSeeking()&&B===D;vG(this,this.w2,u&&S&&D&&!G,u&&!S&&!D,"qoe.longrebuffer",function(){Z.seekTo(X)},"seek_to_loader")}D={}; U=Y9(P,Math.max(B-3.5,0));var Q=U>=0&&B>P.end(U)-1.1,a=U>=0&&U+1=0&&Q&&a<11;D.close2edge=Q;D.gapsize=a;D.buflen=P.length;this.K&&(D.seekSour=this.K);vG(this,this.zP,u&&S&&!G,u&&!S,"qoe.longrebuffer",function(){},"timeout",D); D=F.isSuspended();D=this.Mp.hS()&&!D;vG(this,this.X,D,!D,"qoe.start15s",function(){q.Mp.J1("ad")},"ads_preroll_timeout"); D=this.J.experiments.qp("html5_use_playback_rate_in_skip_slow_ad")?this.Mp.getPlaybackRate()*1E3:1E3;W=B-this.G5;vG(this,this.HG,g.lM(N)&&l,u&&!S,"qoe.longrebuffer",function(){q.Mp.Mb()},"reset_media_source"); vG(this,this.Oc,g.lM(N)&&l,u&&!S,"qoe.longrebuffer",n,"reset_media_element");this.G===0&&(this.j=B);l=S&&this.D===0&&B>1&&B===this.j;vG(this,this.k$,g.lM(N)&&l,u&&!S,"qoe.slowseek",function(){Z.seekTo(0)},"reseek_after_time_jump"); G=F.isOrWillBePlaying()&&!G;H=this.Mp.xx()-B<6&&!H&&this.Mp.I2();vG(this,this.V,N.Sg()&&G&&S&&H,u&&!S,"qoe.longrebuffer",function(){q.Mp.k6(!1,!0)},"handoff_end_long_buffer_reload"); G=this.K===104||this.Mp.DS;F=NM(N)&&N.isAd()&&!N.PG&&G&&(S||g.p(F,8)&&g.p(F,16));vG(this,this.I_,F,f,"qoe.start15s",n,"gapless_ad_slow_start");F=NM(N)&&!N.PG&&G&&b;vG(this,this.vG,F,f,"qoe.longrebuffer",n,"gapless_slow_start");this.G=B;this.Z.start()}}; am.prototype.Zt=function(q,Z,F){Z=this.Ey(Z);Z.wn=F;Z.wdup=this.S[q]?"1":"0";this.Mp.Zt(new g.xX(q,Z));this.S[q]=!0}; am.prototype.Ey=function(q){q=Object.assign(this.Mp.Ey(!0),q.Ey());this.D&&(q.stt=this.D.toFixed(3));this.Mp.getVideoData().isLivePlayback&&(q.ct=this.Mp.getCurrentTime().toFixed(3),q.to=this.Mp.oh().toFixed(3));delete q.uga;delete q.euri;delete q.referrer;delete q.fexp;delete q.vm;return q}; SE.prototype.reset=function(){this.D=this.K=this.S=this.startTimestamp=0;this.G=!1}; SE.prototype.test=function(q){if(!this.Z||this.K)return!1;if(!q)return this.reset(),!1;q=(0,g.Le)();if(!this.startTimestamp)this.startTimestamp=q,this.S=0;else if(this.S>=this.Z)return this.K=q,!0;this.S+=1;return!1}; SE.prototype.Ey=function(){var q={},Z=(0,g.Le)();this.startTimestamp&&(q.wsd=(Z-this.startTimestamp).toFixed());this.K&&(q.wtd=(Z-this.K).toFixed());this.D&&(q.wssd=(Z-this.D).toFixed());return q};g.V(iR,g.J);g.r=iR.prototype;g.r.setMediaElement=function(q){(this.mediaElement=q)?(this.mediaElement&&(this.Z||this.S||!this.mediaElement.u0()||this.seekTo(.01,{V5:"seektimeline_setupMediaElement"})),mi(this)):te(this)}; g.r.getCurrentTime=function(q){q=q===void 0?!1:q;if(Do(this.Mp)){if(this.U("html5_use_centralized_player_time")&&!q&&!isNaN(this.j))return this.j;if(!isNaN(this.K))return this.K}else{if(this.U("html5_use_centralized_player_time")&&!q&&!isNaN(this.j)&&isFinite(this.j))return this.j;if(!isNaN(this.K)&&isFinite(this.K))return this.K}return this.mediaElement&&sMB(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.S||0}; g.r.eb=function(){return this.eU}; g.r.rR=function(){return this.getCurrentTime()-this.oh()}; g.r.hq=function(){return this.D?this.D.hq():Infinity}; g.r.isAtLiveHead=function(q){if(!this.D)return!1;q===void 0&&(q=this.getCurrentTime());return Xn(this.D,q)}; g.r.G6=function(){return!!this.D&&this.D.G6()}; g.r.seekTo=function(q,Z){var F=Z===void 0?{}:Z;Z=F.zf===void 0?!1:F.zf;var B=F.RO===void 0?0:F.RO;var f=F.MW===void 0?!1:F.MW;var D=F.c6===void 0?0:F.c6;var G=F.V5===void 0?"":F.V5;var n=F.seekSource===void 0?void 0:F.seekSource;var b=F.kH===void 0?!1:F.kH;var N=F.mR===void 0?!1:F.mR;F=F.qH===void 0?!1:F.qH;b&&(q+=this.oh());Im(this.videoData)&&n===29&&(this.eU=void 0);b=q=this.G3())||!g.z_(this.videoData),W||(H={st:H,mst:this.G3()},this.D&&this.U("html5_high_res_seek_logging")&&(H.ht=this.D.hq(),H.adft=hz(this.D)),this.Mp.iL("seeknotallowed",H)),H=W));if(!H)return this.G&&(this.G=null,qP(this)),g.du(this.getCurrentTime());H=.005;N&&this.U("html5_sabr_seek_no_shift_tolerance")&&(H=0);if(Math.abs(q-this.K)<=H&&this.k$)return this.Z;G&&(H=q,this.J.Nl()||this.U("html5_log_seek_reasons"))&& (G={reason:G,tgt:H},this.U("html5_sabr_csdai_seek_log")&&(G.source=n),this.Mp.iL("seekreason",G));n&&(this.Dl.K=n);this.k$&&te(this);this.Z||(this.Z=new l8);q&&!isFinite(q)&&dF9(this,!1);(G=F||b)||(G=q,G=!(this.videoData.isLivePlayback&&this.videoData.S&&!this.videoData.S.D&&!(this.mediaElement&&this.mediaElement.cY()>0&&lK(this.mediaElement)>0)||vA(this.videoData)&&this.PZ()===this.G3(!1)?0:isFinite(G)||!vA(this.videoData)));G||(q=ux(this,q,f));q&&!isFinite(q)&&dF9(this,!1);this.U("html5_use_centralized_player_time")? this.j=q:this.K=this.S=q;this.Oc=D;this.X=0;this.D&&(f=this.D,D=q,GEB(f,D,!1),dH9(f,D));f=this.Mp;D=q;G={zf:Z,seekSource:n};f.t0.S=D;F=f.HJ;F.mediaTime=D;F.D=!0;G.zf&&f.P0(G);G=D>f.videoData.endSeconds&&D>f.videoData.limitedPlaybackDurationInSeconds;f.dV&&G&&isFinite(D)&&Nx8(f);DZ.start&&Nx8(this.Mp);return this.Z}; g.r.G3=function(q){if(!this.videoData.isLivePlayback)return this.Mp.videoData.G3();var Z;return Lj(this.videoData)&&((Z=this.mediaElement)==null?0:Z.isPaused())&&this.videoData.D?(q=this.getCurrentTime(),XSD(this.rh(q)*1E3)+q):this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&Im(this.videoData)&&this.videoData.D?q?this.videoData.D.zP||0:this.videoData.D.Ds||0:vA(this.videoData)&&this.videoData.zP&&this.videoData.D?this.videoData.D.G3()+this.timestampOffset:this.videoData.S&&this.videoData.S.D? !q&&this.D?this.D.hq():this.Mp.videoData.G3()+this.timestampOffset:this.mediaElement?Ip()?XSD(this.mediaElement.lS().getTime()):lK(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.r.PZ=function(){if(this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&Im(this.videoData)){var q;return((q=this.videoData.D)==null?void 0:q.wx)||0}q=this.videoData?this.videoData.PZ()+this.timestampOffset:this.timestampOffset;if(Lj(this.videoData)&&this.videoData.D){var Z,F=Number((Z=this.videoData.progressBarStartPosition)==null?void 0:Z.utcTimeMillis)/1E3;if(!isNaN(F)&&(Z=this.OA(F),!isNaN(Z)))return Math.max(q,Z)}return q}; g.r.Zm=function(){this.Z||this.seekTo(this.S,{V5:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.r.r4=function(){return this.k$&&!isFinite(this.K)}; g.r.SU=function(){eF(this,null);this.Dl.dispose();g.J.prototype.SU.call(this)}; g.r.Ey=function(){var q={};this.loader&&Object.assign(q,this.loader.Ey());this.mediaElement&&Object.assign(q,this.mediaElement.Ey());return q}; g.r.Z$=function(q){this.timestampOffset=q}; g.r.getStreamTimeOffset=function(){return vA(this.videoData)?0:this.videoData.D?this.videoData.D.getStreamTimeOffset():0}; g.r.oh=function(){return this.timestampOffset}; g.r.rh=function(q){return this.videoData&&this.videoData.D?this.videoData.D.rh(q-this.timestampOffset):NaN}; g.r.aJ=function(){if(!this.mediaElement)return 0;if(Jz(this.videoData)){var q=this.mediaElement,Z=q.eW();q=(Vl(Z)&&q.getDuration()?Z.end(Z.length-1):0)+this.timestampOffset-this.PZ();Z=this.G3()-this.PZ();return Math.max(0,Math.min(1,q/Z))}return this.mediaElement.aJ()}; g.r.sN=function(q){this.V&&(this.V.D=q)}; g.r.UY=function(q,Z){this.Mp.iL("requestUtcSeek",{time:q});Im(this.videoData)&&(this.eU=q);var F;(F=this.loader)==null||F.UY(q);Z&&(this.Y$=Z)}; g.r.UJ=function(q){Im(this.videoData)&&(this.eU=void 0);this.Y$?(this.Mp.iL("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Y$}),this.Mp.seekTo(this.Y$,{V5:"utcSeekingFallback_streamTime"}),this.Y$=0):(q=this.OA(q),isNaN(q)||(this.Mp.iL("utcSeekingFallback",{source:"estimate",timeSeconds:q}),this.Mp.seekTo(q,{V5:"utcSeekingFallback_estimate"})))}; g.r.F1=function(){this.Y$=0}; g.r.OA=function(q){var Z=this.getCurrentTime();if(isNaN(Z))return NaN;var F=this.rh(Z);return isNaN(F)?NaN:q-(F-Z)}; g.r.U=function(q){return this.J&&this.J.U(q)};g.V(wT,g.J);wT.prototype.start=function(){this.K.start()}; wT.prototype.stop=function(){this.K.stop()}; wT.prototype.clear=function(){for(var q=g.E(this.D.values()),Z=q.next();!Z.done;Z=q.next())Z.value.clear()}; wT.prototype.sample=function(){for(var q=g.E(this.S),Z=q.next();!Z.done;Z=q.next()){var F=g.E(Z.value);Z=F.next().value;F=F.next().value;this.D.has(Z)||this.D.set(Z,new qG6(Bt5.has(Z)));this.D.get(Z).update(F())}this.K.start()}; var Bt5=new Set(["networkactivity"]);qG6.prototype.update=function(q){this.K?(this.buffer.add(q-this.D||0),this.D=q):this.buffer.add(q)}; qG6.prototype.clear=function(){this.buffer.clear();this.D=0};uL.prototype.z7=function(){return this.started}; uL.prototype.start=function(){this.started=!0}; uL.prototype.reset=function(){this.finished=this.started=!1};var VJy=!1;g.V(g.zu,g.In);g.r=g.zu.prototype;g.r.SU=function(){g.V2(this.TJ);k3X(this.Lw);this.visibility.unsubscribe("visibilitystatechange",this.Lw);f29(this.Oy);g.dN(this.Oy);Tw(this);g.kN.RS(this.GZ);this.OT();this.mY=null;g.dN(this.videoData);g.dN(this.RW);g.dN(this.Tu);g.dN(this.EQ);g.AG(this.iBr);this.dV=null;g.In.prototype.SU.call(this)}; g.r.Bz=function(q,Z,F,B,f){if(this.J.U("html5_log_ad_playback_docid")){var D=this.Oy;if(D.qoe){D=D.qoe;var G=this.J.Dl||"yt";g.zR(D,g.$w(D.provider),"ad_playback",[q,Z,F,f,G])}}else this.Oy.Bz(q,Z,F);this.U("html5_log_media_perf_info")&&this.iL("adloudness",{ld:B.toFixed(3),cpn:q})}; g.r.sM=function(){var q;return(q=this.loader)==null?void 0:q.sM()}; g.r.vR=function(){var q;return(q=this.loader)==null?void 0:q.vR()}; g.r.eA=function(){var q;return(q=this.loader)==null?void 0:q.eA()}; g.r.ly=function(){var q;return(q=this.loader)==null?void 0:q.ly()}; g.r.sI=function(){return this.videoData.sI()}; g.r.fE=function(){return this.U("html5_not_reset_media_source")}; g.r.F2=function(){this.videoData.X&&(this.videoData.Fq=this.videoData.Fq||this.gq.Vs().sM(),this.videoData.Tc=this.videoData.Tc||this.gq.Vs().vR());if(G76(this.videoData)||!Fh(this.videoData)){var q=this.videoData.errorDetail;this.PL(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),q,q,this.videoData.r3||void 0)}this.U("html5_generate_content_po_token")&&this.x5();this.U("html5_enable_d6de4")&&this.Mk()}; g.r.getVideoData=function(){return this.videoData}; g.r.C=function(){return this.J}; g.r.jy=function(){return this.Aq.jy(this.mY)}; g.r.BH=function(){return this.visibility}; g.r.qz=function(){return this.mediaElement&&this.mediaElement.H2()?this.mediaElement.QO():null}; g.r.Mi=function(){return this.mediaElement}; g.r.U9=function(){if(this.videoData.errorCode)return!1;this.C().j&&this.C().houseBrandUserStatus&&this.iL("hbut",{status:this.C().houseBrandUserStatus},!0);if(this.videoData.hP())return!0;this.PL("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.r.x3=function(q){(q=q===void 0?!1:q)||Of(this.Oy);this.Kb=q;!this.U9()||this.pG.z7()?Pt(this)&&this.pG.z7()&&!this.pG.finished&&!this.Kb&&this.m1():(this.pG.start(),q=this.Oy,g.$w(q.provider),q.qoe&&vwk(q.qoe),this.m1())}; g.r.m1=function(){if(this.videoData.isLoaded()){var q=this.RW;g.Ce(q.Qs.experiments,"html5_player_min_build_cl")>0&&g.Ce(q.Qs.experiments,"html5_player_min_build_cl")>814261735&&VP6(q,"oldplayer");Qqk(this)}else this.videoData.GA||this.videoData.M4?this.Kb&&Pt(this)||(this.videoData.GA?hC8(this.videoData):(q=this.Oy,q.qoe&&(q=q.qoe,qi(q,"protected"),q.provider.videoData.Z?q.Oi():q.provider.videoData.subscribe("dataloaded",q.Oi,q)),gqD(this.videoData))):!this.videoData.loading&&this.Jd&&imE(this)}; g.r.a9=function(q){this.h0=q;this.loader&&(nug(this.loader,new g.fN(q)),this.iL("sdai",{sdsstm:1}))}; g.r.y4=function(q,Z,F){var B;(B=this.loader)==null||B.y4(q,Z,F)}; g.r.P2=function(q){var Z;(Z=this.loader)==null||Z.P2(q)}; g.r.N4=D6(8);g.r.isFullscreen=function(){return this.visibility.isFullscreen()}; g.r.isBackground=function(){return this.visibility.isBackground()}; g.r.QQ=function(){var q=this;M7(this).then(function(){return DU(q)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.r.M$=function(){this.mediaElement&&this.mediaElement.activate();this.x3();this.U9()&&!g.p(this.playerState,128)&&(this.Rd.z7()||(this.Rd.start(),this.videoData.nz?this.ib(Cx(this.playerState,4)):this.ib(Cx(Cx(this.playerState,8),1))),HCB(this))}; g.r.Qq=function(){return this.pG.finished}; g.r.sendAbandonmentPing=function(){g.p(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.yF(!0),f29(this.Oy),g.dN(this.Oy),g.kN.RS(this.GZ))}; g.r.uF=function(q,Z,F){q=q===void 0?!0:q;(Z===void 0||Z)&&this.mediaElement&&this.mediaElement.pause();q&&F&&this.loader&&vA(this.videoData)&&this.loader.JD(F);this.ib(q?new g.h1(14):new g.h1)}; g.r.CG=function(){this.Oy.O9()}; g.r.PL=function(q,Z,F,B,f,D){var G,n;g.OB(U25,F)?G=F:F?n=F:G="GENERIC_WITHOUT_LINK";B=(B||"")+(";a6s."+yD());if(q==="auth"||q==="drm.auth"||q==="heartbeat.stop")F&&(B+=";r."+F.replaceAll(" ","_")),D&&(B+="sr."+D.replaceAll(" ","_"));Z={errorCode:q,errorDetail:f,errorMessage:n||g.Ly[G]||"",GV:G,r3:D||"",zR:B,zW:Z,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=q;HC(this,"dataloaderror");this.ib(hl(this.playerState,128,Z));g.kN.RS(this.GZ);Tw(this);this.e5()}; g.r.J1=function(q){this.Y3=this.Y3.filter(function(Z){return q!==Z}); this.Rd.z7()&&HCB(this)}; g.r.tj=function(){var q;(q=!!this.Y3.length)||(q=this.GD.D.array[0],q=!!q&&q.start<=-0x8000000000000);return q}; g.r.G6=function(){return this.t0.G6()}; g.r.isPlaying=function(){return this.playerState.isPlaying()}; g.r.us=function(){return this.playerState.us()&&this.videoData.nz}; g.r.getPlayerState=function(){return this.playerState}; g.r.eR=function(q){var Z;(Z=this.loader)==null||Z.eR(q)}; g.r.Ij=function(q){var Z;(Z=this.loader)==null||Z.Ij(q)}; g.r.getPlayerType=function(){return this.playerType}; g.r.getPreferredQuality=function(){if(this.mY){var q=this.mY;q=q.videoData.ll.compose(q.videoData.sF);q=PG(q)}else q="auto";return q}; g.r.FD=D6(16);g.r.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.r.setMediaElement=function(q){if(this.mediaElement&&q.QO()===this.mediaElement.QO()&&(q.isView()||this.mediaElement.isView())){if(q.isView()||!this.mediaElement.isView())this.X2(),this.mediaElement=q,this.mediaElement.Mp=this,Aw6(this),this.t0.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.OT();if(!this.playerState.isError()){var Z=BF(this.playerState,512);g.p(Z,8)&&!g.p(Z,2)&&(Z=Cx(Z,1));q.isView()&&(Z=BF(Z,64));this.ib(Z)}this.mediaElement=q;this.mediaElement.Mp=this;!g.em(this.J)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Aw6(this);this.t0.setMediaElement(this.mediaElement);this.U("html5_prewarm_media_source")&&!this.RW.P8()&&l0D(this.mediaElement)}}; g.r.OT=function(q,Z,F){q=q===void 0?!1:q;Z=Z===void 0?!1:Z;F=F===void 0?!1:F;if(this.mediaElement){var B=this.getCurrentTime();B>0&&(this.t0.S=B);this.t0.setMediaElement(null);!q&&this.fE()?KzG(this):this.ym(F);this.loader&&(aF(this.loader),rL(this,Z));this.dM.stop();if(this.mediaElement&&(!this.Rd.z7()&&!this.hS()||this.playerState.isError()||g.p(this.playerState,2)||this.ib(Cx(this.playerState,512)),this.mediaElement)){this.X2();if(q||!this.mediaElement.isView())this.Yk.p8("mesv_s"),this.mediaElement.stopVideo(), Yi(this);this.mediaElement=this.mediaElement.Mp=null}}}; g.r.playVideo=function(q,Z){q=q===void 0?!1:q;Z=Z===void 0?!1:Z;var F=this,B,f,D,G,n,b;return g.h(function(N){if(N.D==1){var S=window.google_image_requests;S&&S.length>10&&(window.google_image_requests=S.slice(-10));if(g.p(F.playerState,128))return N.return();if(F.RW.kf())return F.publish("signatureexpired"),N.return();F.mediaElement&&Of(F.Oy);F.M$();(g.p(F.playerState,64)||q)&&F.ib(Cx(F.playerState,8));return F.Rd.finished&&F.mediaElement?F.mY||!F.XZ?N.An(2):g.R(N,F.XZ,3):N.return()}if(N.D!=2&&g.p(F.playerState, 128))return N.return();if(!F.videoData.S)return F.videoData.isLivePlayback&&!g.kW(F.J.Z,!0)?(B="html5.unsupportedlive",f=2):(B=F.videoData.sI()?"fmt.unplayable":"fmt.noneavailable",f=1),g.bh(Error("selectableFormats")),F.PL(B,f,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),N.return();if(F.Z6()&&F.videoData.S.D)return N.return(M7(F));if(Do(F))S=F.t0,RS(S.videoData)&&!S.isAtLiveHead(S.getCurrentTime())&&S.G6()&&S.Mp.seekTo(Infinity,{V5:"seektimeline_peggedToLive",seekSource:34});else if(RS(F.videoData)&& (D=F.getCurrentTime()G;if(!n||!G){f&&n&&(D=Math.max(D,f));var b;f=ccD(Z,(b=B.D)==null?void 0:b.videoInfos);b=Z.Mp.getPlaybackRate();b>1&&f&&(b=UTK(Z.J.Z,B.D.videoInfos,b),q.D!==0&&b=480;if(Z.U("html5_perf_cap_override_sticky")){N=Z.S;Z=Z.U("html5_perserve_av1_perf_cap");Z=Z===void 0?!1:Z;if(Z===void 0?0:Z){S=wn();q=g.E(Object.keys(S));for(D=q.next();!D.done;D=q.next())D=D.value,D.indexOf("1")!==0&&delete S[D];g.e0("yt-player-performance-cap",S,2592E3)}else g.qF("yt-player-performance-cap");WIk(Z);if(Z){Z=g.E(WF.keys()); for(S=Z.next();!S.done;S=Z.next())S=S.value,S.startsWith("1")||WF.delete(S);Z=g.E(rn.values());for(S=Z.next();!S.done;S=Z.next())S=S.value,S.startsWith("1")||rn.delete(S);Z=g.E(N.keys());for(S=Z.next();!S.done;S=Z.next())S=S.value,S.startsWith("1")||N.delete(S)}else WF.clear(),rn.clear(),N.clear()}}}}this.loader&&(Z=this.loader,F=F||"",Z.policy.D?uR(Z.G.D,F):uR(Z.D.Z,F));this.Mf()}; g.r.getUserPlaybackQualityPreference=function(){return this.videoData.S&&!this.videoData.S.D?PG(this.videoData.ll):D8B[QL()]}; g.r.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.r.setUserAudio51Preference=function(q,Z){this.getUserAudio51Preference()!==q&&(this.iL("toggle51",{pref:q}),g.e0("yt-player-audio51",q,Z?31536E3:2592E3),this.QQ())}; g.r.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.r.setProximaLatencyPreference=function(q){var Z=this.getProximaLatencyPreference();this.iL("proxima",{pref:q});g.e0("yt-player-proxima-pref",q,31536E3);Z!==q&&(q=this.t0,q.I_=!0,q.Mp.seekTo(Infinity,{V5:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.r.getProximaLatencyPreference=function(){var q;return(q=bV())!=null?q:0}; g.r.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.r.x5=function(){this.videoData.videoId?this.gq.x5(this.videoData):this.iL("povid",{})}; g.r.Mk=function(){this.videoData.videoId?this.gq.Mk(this.videoData):this.iL("piavid",{})}; g.r.Mf=function(){if(!this.jU()&&!g.p(this.playerState,128)&&this.videoData.S){if(this.videoData.S.D)rT(this);else{var q=Ld(this),Z=this.videoData;a:{var F=this.videoData.X3;if(q.D){for(var B=g.E(F),f=B.next();!f.done;f=B.next()){f=f.value;var D=f.getInfo(),G=g.MN[D.video.quality];if((!q.S||D.video.quality!=="auto")&&G<=q.D){F=f;break a}}F=F[F.length-1]}else F=F[0]}Z.o_=F;Qa(this,q.reason,cBy(this,this.videoData.o_))}if(this.U("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.t0.PG= !1,this.playVideo()}}; g.r.bU=function(q,Z){if(this.jU()||g.p(this.playerState,128))return!1;var F,B=!((F=this.videoData.S)==null||!F.D);F=B&&Z?this.getCurrentTime()-this.oh():NaN;if(q.fB&&q.fB.id){var f=this.Oy;if(f.qoe){f=f.qoe;var D=[q.fB.id,isNaN(F)?"m":"t"];g.zR(f,g.$w(f.provider),"afi",D)}}if(B)return Z&&(B=At(this.t0),this.iL("aswh",{id:q.id,xtags:q.xtags,bh:B.toFixed(3)})),this.loader.setAudioTrack(q,F,Z),!0;if(L2k(this)){a:{Z=this.mediaElement.audioTracks();for(B=0;BD.gU.getDuration()&&oBX(D,G)):oBX(D,N);var S=D.loader,l=D.gU;n=n===void 0?!1:n;b=b===void 0?!1:b;S.policy.k$&&(S.policy.BG&&S.iL("loader",{setsmb:0}),S.PE(),S.policy.k$=!1);d97(S,b);if(!T7(l)){var U=oM(S.videoTrack),u=oM(S.audioTrack),P=(U?U.info.D:S.videoTrack.D).info,W=(u?u.info.D:S.audioTrack.D).info,H=S.policy.sO, X=P.mimeType+(H===void 0?"":H),Q=W.mimeType,a=P.FE,m=W.FE,c;l.Dl=(c=l.gU)==null?void 0:c.addSourceBuffer(Q);var e;l.uL=X.split(";")[0]==="fakesb"?void 0:(e=l.gU)==null?void 0:e.addSourceBuffer(X);l.Xy&&(l.Xy.webkitSourceAddId("0",Q),l.Xy.webkitSourceAddId("1",X));var Y=new Hk(l.Dl,l.Xy,"0",Na(Q),m,!1),Zg=new Hk(l.uL,l.Xy,"1",Na(X),a,!0);OsK(l,Y,Zg)}U=n;u=b;U=U===void 0?!1:U;u=u===void 0?!1:u;dS(S.videoTrack,l.K||null,u);dS(S.audioTrack,l.D||null,u);S.gU=l;S.gU.G=!0;U||S.resume();l.D.e7(S.I_,S);l.K.e7(S.I_, S);try{S.pP()}catch(GZ){g.mM(GZ)}D.publish("mediasourceattached")}}catch(GZ){g.bh(GZ),D.handleError(new g.xX("fmt.unplayable",{msi:"1",ename:GZ&&typeof GZ==="object"&&"name"in GZ?String(GZ.name):void 0,trg:"setmediasrc"},1))}} var D=this;Z=Z===void 0?!1:Z;F=F===void 0?!1:F;$Zk(this,B===void 0?!1:B);this.gU=q;this.fE()&&WO(this.gU)==="open"?f(this.gU):NsZ(this.gU,f)}; g.r.x_=function(q){this.Rj.set(q.initData,q);this.JP&&(this.JP.x_(q),this.U("html5_eme_loader_sync")||this.Rj.remove(q.initData))}; g.r.ri=function(q){this.videoData.nH=g.CE("auto",q,!1,"u");rT(this)}; g.r.sN=function(q){var Z=q.reason,F=q.D.info,B=q.token,f=q.videoId,D=this.Oy,G=this.videoData;if(F!==G.G){var n=!G.G;G.G=F;Z!=="m"&&Z!=="t"&&(Z=n?"i":"a");var b=Z==="m"||Z==="t";this.J.experiments.qp("html5_refactor_sabr_audio_format_selection_logging")?this.cN=new Ob(G,F,Z,"",B,f):(Z=new Ob(G,F,Z,"",B),D.qoe&&(D=D.qoe,F=g.$w(D.provider),c8b(D,F,Z)));this.publish("internalaudioformatchange",G,!n&&b)}this.un();this.t0.sN(q.D.index)}; g.r.vV=function(q){this.publish("localmediachange",q)}; g.r.cK=function(q){q=q===void 0?{}:q;var Z;(Z=this.loader)==null||Z.cK(this.J,N4(this.videoData),q)}; g.r.kf=function(){return this.RW.kf()}; g.r.YM=function(q){this.Zt(new g.xX("staleconfig",{reason:q}))}; g.r.handleError=function(q){this.RW.handleError(q)}; g.r.P8=function(){return this.RW.P8()}; g.r.UJ=function(q){this.t0.UJ(q)}; g.r.k6=function(q,Z){q=q===void 0?!1:q;Z=Z===void 0?!1:Z;var F=this,B,f,D;return g.h(function(G){if(G.D==1){F.loader&&F.loader.FK();F.loader&&F.loader.jU()&&Tw(F);if(F.U("html5_enable_vp9_fairplay")&&F.sI()&&(B=F.videoData.D)!=null)for(var n in B.D)B.D.hasOwnProperty(n)&&(B.D[n].D=null,B.D[n].S=!1);F.ib(Cx(F.playerState,2048));F.publish("newelementrequired");return q?g.R(G,M7(F),2):G.An(2)}F.videoData.d2()&&((f=F.loader)==null?0:f.k$)&&!Do(F)&&((D=F.isAtLiveHead())&&RS(F.videoData)?F.seekTo(Infinity, {V5:"videoPlayer_getNewElement"}):F.videoData.OZ&&F.loader&&(n=F.loader,n.Np.d2&&(n.Np.OZ||n.Np.G||n.Np.isPremiere?(n.seek(0,{V5:"loader_resetSqless"}),n.videoTrack.X=!0,n.audioTrack.X=!0,n.videoTrack.Z=!0,n.audioTrack.Z=!0):ey(n.Np)&&XV(n))));Z&&F.seekTo(0,{seekSource:105});g.p(F.playerState,8)&&F.playVideo();g.C7(G)})}; g.r.CK=function(q){this.iL("hgte",{ne:+q});this.videoData.X=!1;q&&this.k6();this.loader&&cj8(this.loader)}; g.r.TW=function(q){this.iL("newelem",{r:q});this.k6()}; g.r.pauseVideo=function(q){q=q===void 0?!1:q;if((g.p(this.playerState,64)||g.p(this.playerState,2))&&!q)if(g.p(this.playerState,8))this.ib(KM(this.playerState,4,8));else if(this.us())DU(this);else return;g.p(this.playerState,128)||(q?this.ib(Cx(this.playerState,256)):this.ib(KM(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.z_(this.videoData)&&this.loader&&rL(this,!1)}; g.r.stopVideo=function(){this.pauseVideo();this.loader&&(rL(this,!1),this.loader.PE())}; g.r.e5=function(q,Z){q=q===void 0?!1:q;Z=Z===void 0?!1:Z;if(this.fE()&&Z){var F;(F=this.mediaElement)==null||F.e5()}else{var B;(B=this.mediaElement)==null||B.stopVideo()}Yi(this);Tw(this);g.p(this.playerState,128)||(q?this.ib(BF(BF(Cx(this.playerState,4),8),16)):this.ib(hl(this.playerState)));this.videoData.videoId&&this.J.BG.remove(this.videoData.videoId)}; g.r.seekTo=function(q,Z){Z=Z===void 0?{}:Z;g.p(this.playerState,2)&&DU(this);Z.rYU&&this.ib(Cx(this.playerState,2048));if((Z.seekSource===58||Z.seekSource===60)&&this.U("html5_update_vss_during_gapless_seeking")){var F=this.Oy;F.D&&(F=F.D,Z.seekSource===58?F.D.update():F.S&&(tH(F),g7(F).send(),F.G=NaN))}this.t0.seekTo(q,Z);this.GD.sync()}; g.r.P0=function(q){this.Yk.G.K=(0,g.Le)();g.p(this.playerState,32)||(this.ib(Cx(this.playerState,32,q==null?void 0:q.seekSource)),g.p(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.y5()}; g.r.CF=function(q){q=q==null?void 0:q.seekSource;g.p(this.playerState,32)?(this.ib(KM(this.playerState,16,32,q)),this.publish("endseeking")):g.p(this.playerState,2)||this.ib(Cx(this.playerState,16,q));q=this.Yk.G;var Z=this.videoData,F=this.playerState.isPaused();if(Z.clientPlaybackNonce&&!isNaN(q.D)){if(Math.random()<.01){F=F?"pbp":"pbs";var B={startTime:q.D};Z.j&&(B.cttAuthInfo={token:Z.j,videoId:Z.videoId});BX("seek",B);g.ZR({clientPlaybackNonce:Z.clientPlaybackNonce},"seek");isNaN(q.K)||n4("pl_ss", q.K,"seek");n4(F,(0,g.Le)(),"seek")}q.reset()}}; g.r.rz=function(q){this.CF(q)}; g.r.kO=function(){this.publish("SEEK_COMPLETE")}; g.r.JK=function(q){var Z=this.gq,F=this.videoData.clientPlaybackNonce,B=this.playerType;if(q.scope===4){var f=q.type;if(f){var D=Z.Dv(),G=D.getVideoData().clientPlaybackNonce;B===1&&(G=F);if(B=bAG(Z,G)){if(F=B.getVideoData())q.writePolicy===2&&F.sabrContextUpdates.has(f)||(q.sendByDefault&&F.I_.add(f),F.sabrContextUpdates.set(f,q)),Z.U("html5_enable_t1_enf_on_sabr")&&(q=f===5,f=rvD(F.playerResponse),q?(q=f?1:0,ES(q,"m.p_",{}),eJ("MBSTAT",q)):q=1,q===0&&Z.lL.a_("onAbnormalityDetected"))}else D.iL("scuset", {ncpf:"1",ccpn:G,crcpn:F})}else g.bh(Error("b/380308491: contextUpdateType is undefined"))}}; g.r.OW=function(){if(this.playerType===2)return this.gq.OW("")}; g.r.getCurrentTime=function(q){return this.t0.getCurrentTime(q===void 0?!1:q)}; g.r.eb=function(){return this.t0.eb()}; g.r.rR=function(){return this.t0.rR()}; g.r.yE=function(){return this.rR()}; g.r.hq=function(){return this.t0.hq()}; g.r.getPlaylistSequenceForTime=function(q){return this.videoData.getPlaylistSequenceForTime(q-this.oh())}; g.r.WX=function(){var q=NaN;this.mediaElement&&(q=this.mediaElement.WX());return q>=0?q:this.getCurrentTime()}; g.r.rh=function(){var q;return((q=this.videoData.D)==null?0:q.rh)?this.videoData.D.rh(this.getCurrentTime()-this.oh()):this.mediaElement&&(q=this.mediaElement.lS())&&(q=q.getTime(),!isNaN(q))?q/1E3+this.getCurrentTime():NaN}; g.r.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.oh():this.G3()?this.G3():0}; g.r.Ch=function(){var q=new jd8;if(this.loader){var Z=this.Zv,F=this.J.Nl();F=F===void 0?!1:F;q.eF=Z.zP;q.RZ=Z.Oc;q.bandwidthEstimate=k2(Z);if(F){F=(Z.V.Cm()*1E3).toFixed();var B=(Z.k$.Cm()*1E3).toFixed(),f=c_(Z).toFixed(2),D=((Z.X.Cm()||0)*1E9).toFixed(2),G=Z.S.Cm().toFixed(0),n=Z.dU.Cm().toFixed(0),b=Z.PG.percentile(.5).toFixed(2),N=Z.PG.percentile(.92).toFixed(2),S=Z.PG.percentile(.96).toFixed(2),l=Z.PG.percentile(.98).toFixed(2);Z.D?Z.D.reset():Z.D=new vI;Z.D.add(Z.Y$);Z.D.add(Z.interruptions.length); for(var U=0,u=Z.interruptions.length-1;u>=0;u--){var P=Z.interruptions[u];Z.D.add(P-U);U=P}U=0;for(u=Z.G.length-1;u>=0;u--){P=Z.G[u];var W=P.stamp/36E5;Z.D.add(W-U);U=W;Z.D.add(P.net/1E3);Z.D.add(P.max)}Z=Z.D.D6();q.D={ttr:F,ttm:B,d:f,st:D,bw:G,abw:n,v50:b,v92:N,v96:S,v98:l,"int":Z}}Z=this.loader;Z.gU&&Z.gU.G&&!Z.gU.TD()&&(q.kZ=qO(Z.videoTrack),q.K=qO(Z.audioTrack),Z.policy.S&&(F=FH(Z.videoTrack),B=FH(Z.audioTrack),f=HA(Z.gU.K.nw(),"_",5),D=HA(Z.gU.D.nw(),"_",5),Object.assign(q.D,{lvq:F,laq:B,lvb:f, lab:D})));q.bandwidthEstimate=J8(Z.PG);var H;(H=Z.audioTrack.PG)==null||H.flush();var X;(X=Z.videoTrack.PG)==null||X.flush()}else this.mediaElement&&(q.kZ=k9(this.mediaElement));q.eF=this.eF;q.RZ=this.RZ;q.S=this.isAtLiveHead()&&this.isPlaying()?doZ(this):NaN;H=this.t0;H=H.D?hz(H.D):0;q.G=H;return q}; g.r.Ci=function(q,Z){this.RZ+=q;this.eF+=Z}; g.r.aJ=function(){return this.mediaElement?g.z_(this.videoData)?1:Jz(this.videoData)?this.isAtLiveHead()||this.G6()?1:this.t0.aJ():this.mediaElement.aJ():0}; g.r.nJ=function(){var q=this.MO,Z=Rv(q,"bandwidth"),F=Rv(q,"bufferhealth"),B=Rv(q,"livelatency"),f=Rv(q,"networkactivity"),D=uH(q,"bandwidth"),G=uH(q,"bufferhealth"),n=uH(q,"livelatency");q=uH(q,"networkactivity");var b=this.vM(),N=b.droppedVideoFrames;b=b.totalVideoFrames;var S=this.getCurrentTime();if(this.JP){var l="IT/"+(this.JP.D.getInfo()+"/"+PG(this.LK()));l+="/"+this.JP.getInfo()}else l="";var U=this.isGapless(),u=this.d1(),P=this.bT(),W=g.HT(this),H=this.getPlayerState(),X=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var Q=0;var a="";if(this.h0){if(this.h0.nQ){a="D,";break a}Q=this.h0.Nx;a=this.h0.EP.substring(0,4)}Q>0?(Q="AD"+Q+", ",a&&(Q+=a+", "),a=Q):a=""}return{oI:D,rG:G,currentTime:S,Q3:l,droppedVideoFrames:N,isGapless:U,d1:u,VV:P,xT:Z,VB:F,Lo:B,aD:f,F7:n,Xj:q,f2:W,playerState:H,HF:X,w8:a,totalVideoFrames:b}}; g.r.Ey=function(q){var Z={};if(q===void 0?0:q){Object.assign(Z,this.Oy.Ey());this.mediaElement&&(Object.assign(Z,this.mediaElement.Ey()),q=this.vM(),Z.dvf=q.droppedVideoFrames,Z.tvf=q.totalVideoFrames);this.loader&&Object.assign(Z,this.loader.Ey());this.JP&&(Z.drm=JSON.stringify(this.JP.Ey()));Z.state=this.playerState.state.toString(16);g.p(this.playerState,128)&&(Z.debug_error=JSON.stringify(this.playerState.xb));this.tj()&&(Z.prerolls=this.Y3.join(","));this.videoData.w2&&(Z.ismb=this.videoData.w2); this.videoData.latencyClass!=="UNKNOWN"&&(Z.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(Z.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)Z.is_mosaic=1;this.videoData.cotn&&(Z.is_offline=1,Z.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(Z.playerResponseCpn=this.videoData.playerResponseCpn);this.gq.isOrchestrationLeader()&&(Z.leader=1);this.videoData.isLivePlayback&& (this.videoData.D&&fE(this.videoData.D)&&(Z.segduration=fE(this.videoData.D)),q=this.t0,Z.lat=q.V?vX9(q.V.G):0,Z.liveutcstart=this.videoData.liveUtcStartSeconds);Z.relative_loudness=this.videoData.yd.toFixed(3);if(q=g.HT(this))Z.optimal_format=q.video.qualityLabel;Z.user_qual=QL();Z.release_version=z[25]}Z.debug_videoId=this.videoData.videoId;return Z}; g.r.addCueRange=function(q){this.Go([q])}; g.r.removeCueRange=function(q){this.GD.MB([q])}; g.r.Rk=function(){var q=this.GD;if(q.Mp.C().U("html5_sort_cueranges_on_update")&&!(q.V$().length<=0||q.jU())){var Z=q.D;Z.array.sort(Z.D)}q.sync()}; g.r.oJ=function(q,Z){return this.GD.oJ(q,Z)}; g.r.Go=function(q,Z){this.GD.sZ(q,Z)}; g.r.RK=function(q){this.GD.MB(q)}; g.r.V$=function(){return this.GD.V$()||[]}; g.r.jY=function(){return this.cq}; g.r.Z6=function(){return this.visibility.Z6()}; g.r.i_=function(){this.mediaElement&&this.mediaElement.i_()}; g.r.G8E=function(){HC(this)}; g.r.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.r.X2=function(){g.DJ(this.zj)}; g.r.cPP=function(){this.y5();this.publish("onLoadProgress",this.aJ())}; g.r.tU=function(q){this.A1().D.Q5(Na0)&&Gd(this);var Z=q.target.pD();if(this.mediaElement&&this.mediaElement.pD()&&this.mediaElement.pD()===Z){GX8(this,q.type);switch(q.type){case "error":var F=yN6(this.mediaElement)||"",B=this.mediaElement.nm();if(F==="capability.changed"){this.U("html5_restart_on_capability_change")?(this.iL("capchg",{msg:B}),this.k6(!0)):M7(this);return}if(this.mediaElement.hasError()&&S3(this.RW,F,{msg:B,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.Hf()=== 4){this.e5();$A(this,"unplayable");return}break;case "durationchange":F=this.mediaElement.getDuration();isFinite(F)&&(!this.gU||F>0)&&F!==1&&this.Va(F);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());F=this.GD;F.started=!0;F.sync();this.Oy.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":this.A1().D.Q5(gpj)&&Gd(this);Rj6(this);this.publish("onLoadedMetadata");D3g(this);F=this.rh();this.videoData.Ob&&(this.videoData.Ob=F); break;case "loadstart":D3g(this);break;case "progress":case "suspend":this.zC.Nk();break;case "seeked":(F=this.loader)!=null&&F.policy.K&&F.G7&&(F.iL("sdai",{skipAdSked:"1"}),F.G7=!1);break;case "playing":this.A1().D.Q5(gpj)&&Gd(this);this.Yk.p8("plev");this.kJ&&!Do(this)&&(this.kJ=!1,this.isAtLiveHead()||this.seekTo(Infinity,{V5:"videoplayer_onPlaying"}));break;case "timeupdate":this.A1().D.Q5(gpj)&&Gd(this);F=this.mediaElement&&!this.mediaElement.getCurrentTime();B=this.mediaElement&&this.mediaElement.cY()=== 0;if(F&&(!this.GJ||B))return;this.GJ=this.GJ||!!this.mediaElement.getCurrentTime();eN(this);this.y5();if(!this.mediaElement||this.mediaElement.pD()!==Z)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.qx().length>0&&this.mediaElement.eW().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.U("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.cY()> 2||!this.mediaElement.isSeeking()&&tC(this.mediaElement.eW(),this.mediaElement.getCurrentTime()))&&(F=this.mediaElement.Ey(),F.bh=k9(this.mediaElement).toFixed(3),this.iL("uwe",F));break;case "resize":Rj6(this);this.videoData.K&&this.videoData.K.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.O6&&g.p(this.playerState,8)&&!g.p(this.playerState,1024)&&this.getCurrentTime()===0&&g.GW){$A(this,"safari_autoplay_disabled");return}}if(this.mediaElement&& this.mediaElement.pD()===Z){DeZ(this.t0,q);this.publish("videoelementevent",q);Z=this.playerState;B=this.HJ;var f=this.mediaElement;F=this.videoData.clientPlaybackNonce;if(!g.p(Z,128)){var D=Z.state;f=f?f:q.target;var G=f.getCurrentTime();if(!g.p(Z,64)||q.type!=="ended"&&q.type!=="pause"){var n=f.getDuration();n=f.isEnded()||G>1&&Math.abs(G-n)<1.1;var b=q.type==="pause"&&f.isEnded();G=q.type==="ended"||q.type==="waiting"||q.type==="timeupdate"&&!g.p(Z,4)&&!en(B,G);if(b||n&&G)f.Ou()>0&&f.pD()&&(D= 14);else switch(q.type){case "error":yN6(f)&&(D|=128);break;case "pause":g.p(Z,256)?(D^=256)||(D=64):g.p(Z,32)||g.p(Z,2)||g.p(Z,4)||(D=4,g.p(Z,1)&&g.p(Z,8)&&(D|=1));break;case "playing":G=D;D=(D|8)&-1093;G&4?(D|=1,Bd(B,f,!0)):en(B,f.getCurrentTime())&&(D&=-2);g.p(Z,1)&&Bd(B,f)&&(D|=1);break;case "seeking":D|=16;g.p(Z,8)&&(D|=1);D&=-3;break;case "seeked":D&=-17;Bd(B,f,!0);break;case "waiting":g.p(Z,2)||(D|=1);Bd(B,f);break;case "timeupdate":G=g.p(Z,16),n=g.p(Z,4),(g.p(Z,8)||G)&&!n&&en(B,f.getCurrentTime())&& (D=8),Bd(B,f)&&(D|=1)}}B=D;D=null;B&128&&(D=q.target,f=yN6(D),G=1,f?(f==="capability.changed"&&(G=2),n="GENERIC_WITHOUT_LINK",b=D.Ey(),b.mediaElem="1",b.trg="melem",/AUDIO_RENDERER/.test(D.nm())&&(n="HTML5_AUDIO_RENDERER_ERROR"),D={errorCode:f,errorMessage:g.Ly[n]||"",GV:n,zR:NJ(b),zW:G,cpn:Z.xb?Z.xb.cpn:""}):D=null,D&&(D.cpn=F));Z=hl(Z,B,D)}!g.p(this.playerState,1)&&g.p(Z,1)&&s6(this,"evt"+q.type);this.ib(Z)}}}; g.r.zWl=function(q){q=q.D.availability==="available";q!==this.cq&&(this.cq=q,this.publish("airplayavailabilitychange"))}; g.r.nkU=function(){var q=(0,g.Le)(),Z=this.mediaElement.Z6();this.iL("airplay",{ia:Z});!Z&&!isNaN(this.jZ)&&q-this.jZ<2E3||(this.jZ=q,Z!==this.Z6()&&(q=this.visibility,q.D!==Z&&(q.D=Z,q.Lw()),this.iL("airplay",{rbld:Z}),this.QQ()),this.publish("airplayactivechange"))}; g.r.Cy=function(q){if(this.loader){var Z=this.loader,F=Z.S,B=Z.getCurrentTime(),f=Date.now()-F.PG;F.PG=NaN;F.iL("sdai",{adfetchdone:q,d:f});q&&!isNaN(F.X)&&F.K!==3&&Ja(F.loader,B,F.X,F.j);F.policy.K?F.Z=NaN:F.G=NaN;ez(F,4,F.K===3?"adfps":"adf");aF(Z)}}; g.r.Pv=function(){g.V2(this.TJ);this.dM.stop();this.videoData.PG=!0;this.J.wx=!0;this.J.Gb=0;var q=this.RW;if(q.videoData.K){var Z=q.Qs.Z,F=q.videoData.K.FE;Z.G.has(F)&&(Z.G.delete(F),Z.K=!0)}q.D.stop();this.eh();g.p(this.playerState,8)&&this.ib(BF(this.playerState,65));this.Kb=!1;this.Oy.W5();g.$t(this.Tu);this.publish("playbackstarted");(q=g.ym("yt.scheduler.instance.clearPriorityThreshold"))?q():kh(0)}; g.r.eh=function(){var q=this.gq.AP(),Z={},F={};!dP("pbs",this.Yk.timerName)&&tp.measure&&tp.getEntriesByName&&(tp.getEntriesByName("mark_nr")[0]?C5X("mark_nr"):C5X());q.videoId&&(Z.videoId=q.videoId);q.clientPlaybackNonce&&!this.U("web_player_early_cpn")&&(Z.clientPlaybackNonce=q.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(F.isPausedOnLoad=!0);F.itag=q.K?Number(q.K.itag):-1;q.UT&&(F.preloadType=String(this.J6?2:1));Z.liveStreamMode=RXE[DD(q)];Z.playerInfo=F;this.Yk.infoGel(Z); if(this.loader){q=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(q.S&&(Z=window.performance.getEntriesByName(q.S),Z.length&&(Z=Z[0],q.tick("vri",Z.fetchStart),q.tick("vdns",Z.domainLookupEnd),q.tick("vreq",Z.requestStart),q.tick("vrc",Z.responseEnd))),q.K&&(Z=window.performance.getEntriesByName(q.K),Z.length&&(Z=Z[0],q.tick("ari",Z.fetchStart),q.tick("adns",Z.domainLookupEnd),q.tick("areq",Z.requestStart),q.tick("arc",Z.responseEnd))));q=q.ticks;for(var B in q)q.hasOwnProperty(B)&& this.Yk.tick(B,q[B])}}; g.r.y5=function(q){var Z=this;q=q===void 0?!1:q;if(this.mediaElement&&this.videoData){zB7(this.t0,this.isPlaying());var F=this.getCurrentTime();if(this.loader&&(g.p(this.playerState,4)&&g.z_(this.videoData)||g.p(this.playerState,32)&&Im(this.videoData)||Y3G(this.loader,F),this.U("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-Db9(this.loader))>10)){var B;this.iL("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(B=this.loader)==null?void 0:Db9(B)},!0)}F>5&&(this.t0.S= F);(B=g.Kd())?g.kN.RS(this.GZ):g.L4(this.GZ);var f=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!f||Lj(this.videoData))&&!g.p(this.playerState,128)){var D=function(){if(Z.mediaElement&&!g.p(Z.playerState,128)){Z.J.Nl()&&GX8(Z,"pfx");var G=Z.getCurrentTime();Z.U("html5_buffer_underrun_transition_fix")&&(G-=Z.oh());var n=k9(Z.mediaElement),b=g.p(Z.playerState,8),N=en(Z.HJ,G),S=Vqk(Z.HJ,G,(0,g.Le)(),n);b&&N?Z.ib(BF(Z.playerState,1)):b&&S?(b=Z.getDuration(),N=RS(Z.videoData),b&&Math.abs(b- G)<1.1?(Z.iL("setended",{ct:G,bh:n,dur:b,live:N}),Z.mediaElement.fk()?Z.seekTo(0,{V5:"videoplayer_loop",seekSource:37}):Z.uF()):(Z.playerState.isBuffering()||s6(Z,"progress_fix"),Z.ib(Cx(Z.playerState,1)))):(b&&!N&&!S&&G>0&&(b=(Date.now()-Z.XM)/1E3,N=Z.getDuration(),G>N-1&&Z.iL("misspg",{t:G.toFixed(2),d:N.toFixed(2),r:b.toFixed(2),bh:n.toFixed(2)})),Z.playerState.isPaused()&&Z.playerState.isBuffering()&&k9(Z.mediaElement)>5&&Z.ib(BF(Z.playerState,1)));Z.y5()}}; this.mediaElement.qx().length===0?this.GZ=B?g.kN.ET(D,100):g.OT(D,100):this.GZ=B?g.kN.ET(D,500):g.OT(D,500)}this.videoData.J0=F;!q&&this.isPlaying()&&RUK(this);n$k(this.Aq,this.mY,this.Mi(),this.isBackground())&&rT(this);this.publish("progresssync",q);f&&Lj(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.r.KT=function(){this.PL("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.r.bT=function(){return this.Oy.bT()}; g.r.W7=function(){return this.loader?this.loader.W7():k2(this.Zv,!0)}; g.r.ib=function(q){if(!g.Uh(this.playerState,q)){var Z=new g.H3(q,this.playerState);this.playerState=q;GZm(this);var F=!this.sV.length;this.sV.push(Z);var B=this.mediaElement&&this.mediaElement.isSeeking();g.YM(Z,1)&&this.loader&&JCD(this.loader);B=Z.oldState.state===8&&!B;if(g.YM(Z,1)&&B&&g.p(this.playerState,8)&&!g.p(this.playerState,64)&&this.loader){B=this.loader;B.z6=!0;if(B.policy.LB&&B.gU){var f,D,G,n;B.iL("lr_rb",{c:B.getCurrentTime(),s:B.isSeeking(),ab:HA(B.gU.D.nw()),ala:(f=TJ(B.audioTrack))== null?void 0:f.wq(),alr:(D=B.audioTrack.K)==null?void 0:D.wq(),vb:HA(B.gU.K.nw()),vla:(G=TJ(B.videoTrack))==null?void 0:G.wq(),vlr:(n=B.videoTrack.K)==null?void 0:n.wq()})}B.Mp.Ix()!==0&&B.iL("sps_rebuffer",{c:B.getCurrentTime()});this.mediaElement&&k9(this.mediaElement)>=5&&(f=this.Aq,D=this.mY,!D.videoData.K||f.U("html5_disable_performance_downgrade")?f=!1:(Date.now()-f.X>6E4&&(f.K=0),f.K++,f.X=Date.now(),f.K!==4?f=!1:(gQK(f,D.videoData.K),f=!0)),f&&rT(this))}(f=g.Ce(this.J.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.p(q,1)&&(g.p(q,8)||g.p(q,16))?this.gf.start(f):this.gf.stop();(dL(Z,8)<0||g.YM(Z,1024))&&this.dM.stop();!g.YM(Z,8)||this.videoData.PG||g.p(Z.state,1024)||this.dM.start();g.p(Z.state,8)&&dL(Z,16)<0&&!g.p(Z.state,32)&&!g.p(Z.state,2)&&this.playVideo();g.p(Z.state,2)&&Jz(this.videoData)&&(this.Va(this.getCurrentTime()),this.y5(!0));g.YM(Z,2)&&(this.yF(!0),this.J.Nl()&&this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&Im(this.videoData)&&this.videoData.D&&(q={minst:""+ this.videoData.D.wx,cminst:""+(this.videoData.D.PZ()+this.oh()),maxst:""+this.videoData.D.Ds,hts:""+this.videoData.D.zP,cmaxst:""+(this.videoData.D.G3()+this.oh())},this.iL("sabrSeekableBoundaries",q)));g.YM(Z,128)&&this.e5();this.videoData.D&&this.videoData.isLivePlayback&&!this.vQ&&(dL(Z,8)<0?(q=this.videoData.D,q.Z&&q.Z.stop()):g.YM(Z,8)&&this.videoData.D.resume());q=this.t0;g.$t(q.Dl.Z);if(q.mediaElement)if(Z.oldState.state===8&&Oi(Z.state)&&Z.state.isBuffering()){var b=q.mediaElement.getCurrentTime(); f=q.mediaElement.eW();D=q.U("manifestless_post_live_ufph")||q.U("manifestless_post_live")?Y9(f,Math.max(b-3.5,0)):Y9(f,b-3.5);D>=0&&b>f.end(D)-1.1&&D+10?(o9(q.Mp,q.getCurrentTime()+q.videoData.limitedPlaybackDurationInSeconds), q.o_=!0):q.videoData.isLivePlayback&&q.videoData.endSeconds>0&&(o9(q.Mp,q.getCurrentTime()+q.videoData.endSeconds),q.o_=!0));b=this.Oy;if(g.YM(Z,1024)||g.YM(Z,512)||g.YM(Z,4))b.K&&(q=b.K,q.K>=0||(q.D=-1,q.delay.stop())),b.qoe&&(q=b.qoe,q.X||(q.S=-1));if(b.provider.videoData.enableServerStitchedDai&&b.h1){var N;(N=b.S.get(b.h1))==null||Vw(N,Z)}else b.D&&Vw(b.D,Z);b.qoe&&(N=b.qoe,q=Z.state,f=g.$w(N.provider),D=N.getPlayerState(q),G=q.seekSource||void 0,D!==N.CP&&(N.zP||f=10&&N.playTimeSecs<=180&&(N.D.set("qoealert",["1"]),N.KB=!0)),D!=="B"||N.CP!=="PL"&&N.CP!=="PB"||(N.isBuffering=!0),N.K=f),N.CP==="PL"&&(D==="B"||D==="S")||N.provider.J.Nl()?PH(N,f):(N.Gb||D!=="PL"||(N.Gb=!0,lp(N,f,N.provider.Mp.Ch())),VXB(N,f)),D==="PL"&&g.$t(N.bb),n=[D],D==="S"&&G&&n.push("ss."+G),g.zR(N,f,"vps",n),N.CP=D,N.Dl=f,N.K=f,N.G=!0),D=q.xb,g.p(q,128)&&D&&(D.zR=D.zR||"",qlD(N,f,D.errorCode, D.zW,D.zR)),(g.p(q,2)||g.p(q,128))&&N.reportStats(f),q.isPlaying()&&!N.X&&(N.S>=0&&N.D.set("user_intent",[N.S.toString()]),N.X=!0),nk(N));b.K&&(N=b.K,FPD(N),N.playerState=Z.state,N.K>=0&&g.YM(Z,16)&&N.seekCount++,Z.state.isError()&&N.send());if(F&&!this.jU())try{for(var S=g.E(this.sV),l=S.next();!l.done;l=S.next()){var U=l.value,u=this.GD;if(u.started&&(u.sync(),g.p(U.oldState,16))){Z=u;var P=B$8(Z.D,Math.max(Z.S-2E3,0));!isNaN(P)&&P<0x7ffffffffffff&&Z.G.start()}this.publish("statechange",U)}}finally{this.sV.length= 0}}}; g.r.Ax=function(){this.Yk.tick("qoes")}; g.r.Zm=function(){this.t0.Zm()}; g.r.UV=function(q,Z,F,B){a:{var f=this.RW;B=B===void 0?"LICENSE":B;F=F.substring(0,256);var D=bY(Z);q==="drm.keyerror"&&this.JP&&this.JP.K.keys.length>1&&f.G<96&&(q="drm.sessionlimitexhausted",D=!1);var G=f.Qs.experiments.qp("html5_retry_on_drm_unavailable"),n=f.Qs.experiments.qp("html5_retry_on_drm_key_error"),b=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(G&&q==="drm.unavailable"||n&&q==="drm.keyerror"&&!F.match(b))f.Zt("qoe.restart",{retryOnDrmError:1,e:q,detail:F}),f.Mp.k6(!0);else{if(D)if(f.videoData.K&& f.videoData.K.video.isHdr())mp9(f,q);else{if(f.Mp.PL(q,Z,B,F),wZG(f,{detail:F}))break a}else f.Zt(q,{detail:F});q==="drm.sessionlimitexhausted"&&(f.iL("retrydrm",{sessionLimitExhausted:1}),f.G++,epD(f.Mp))}}}; g.r.PbU=function(){var q=this,Z=g.Ce(this.J.experiments,"html5_license_constraint_delay"),F=EKG();Z&&F?(Z=new g.im(function(){q.Mf();HC(q)},Z),g.y(this,Z),Z.start()):(this.Mf(),HC(this))}; g.r.EE=function(q){this.publish("heartbeatparams",q)}; g.r.US=function(q){this.iL("keystatuses",vey(q));var Z="auto",F=!1;this.videoData.K&&(Z=this.videoData.K.video.quality,F=this.videoData.K.video.isHdr());a:{switch(Z){case "highres":case "hd2880":Z="UHD2";break;case "hd2160":case "hd1440":Z="UHD1";break;case "hd1080":case "hd720":Z="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Z="SD";break;default:Z="";break a}F&&(Z+="HDR")}Z=tR(q)?R0(q,Z):q.G.includes(Z);if(this.U("html5_enable_vp9_fairplay")){if(F)if(q.X){var B;if((B= this.JP)==null?0:Rn(B.D))if((F=this.JP)==null)F=0;else{for(var f=B=void 0,D=g.E(F.K.values()),G=D.next();!G.done;G=D.next())G=G.value,B||(B=MXb(G,"SD")),f||(f=MXb(G,"AUDIO"));F.X$({sd:B,audio:f});F=B==="output-restricted"||f==="output-restricted"}else F=!Z;if(F){this.iL("drm",{dshdr:1});mp9(this.RW);return}}else{this.videoData.Ak||(this.videoData.Ak=!0,this.iL("drm",{dphdr:1}),this.k6(!0));return}var n;if((n=this.JP)==null?0:Rn(n.D))return}else if(n=q.X&&Z,F&&!n){mp9(this.RW);return}Z||R0(q,"AUDIO")&& R0(q,"SD")||(q=vey(q),this.nV?(this.publish("drmoutputrestricted"),this.U("html5_report_fatal_drm_restricted_error_killswitch")||this.PL("drm.keyerror",2,void 0,"info."+q)):(this.nV=!0,this.Zt(new g.xX("qoe.restart",Object.assign({},{retrydrm:1},q))),rT(this),epD(this)))}; g.r.DrG=function(){if(!this.videoData.PG&&this.mediaElement&&!this.isBackground()){var q="0";this.mediaElement.cY()>0&&k9(this.mediaElement)>=5&&this.videoData.S&&this.videoData.S.D&&(this.ib(Cx(this.playerState,1)),s6(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),q="1");GZm(this);var Z=this.videoData.S;q={restartmsg:q,mfmt:!kK(this.videoData),mdrm:!(!(Z&&Z.videoInfos&&Z.videoInfos.length&&Z.videoInfos[0].Ni)||this.JP),mfmtinfo:!this.videoData.K,prerolls:this.tj()?this.Y3.join(","): "0"};if(this.JP){Z=this.JP;if(Z.K.size<=0){var F="ns;";Z.PG||(F+="nr;");Z=F+="ql."+Z.S.length}else Z=vey(Z.K.values().next().value),Z=NJ(Z);q.drmp=Z}var B;Object.assign(q,((B=this.loader)==null?void 0:B.Ey())||{});var f;Object.assign(q,((f=this.mediaElement)==null?void 0:f.Ey())||{});this.Oy.Zt("qoe.start15s",NJ(q));this.publish("loadsofttimeout")}}; g.r.Va=function(q){this.videoData.lengthSeconds!==q&&(this.videoData.lengthSeconds=q,HC(this))}; g.r.yF=function(q,Z){var F=this;q=q===void 0?!1:q;if(!this.nA)if(dP("att_s","player_att")||iE("att_s",void 0,"player_att"),this.U("use_rta_for_player"))(function(){var f,D,G,n;return g.h(function(b){switch(b.D){case 1:if(!(f=q)){b.An(2);break}return g.R(b,g.WUD(),3);case 3:f=!b.K;case 2:if(f)return b.return();g.s4(b,4);D=xAK(F.Oy);if(!D)throw Error();G={};return g.R(b,g.pGg((G.cpn=F.videoData.clientPlaybackNonce,G.encryptedVideoId=F.videoData.videoId||"",G),3E4),6);case 6:n=b.K;if(F.nA)throw Error(); if(!n.challenge)throw g.bh(Error("Not sending attestation ping; no attestation challenge string")),Error();F.nA=!0;var N=[n.challenge];if(n.error){var S=OOm();S=VW8(S).get(n.error)||0;N.push("r1c="+S)}else n.webResponse&&N.push("r1a="+n.webResponse);var l;((l=n.adblockReporting)==null?void 0:l.reportingStatus)!==void 0&&N.push("r6a="+n.adblockReporting.reportingStatus);var U;((U=n.adblockReporting)==null?void 0:U.broadSpectrumDetectionResult)!==void 0&&N.push("r6b="+n.adblockReporting.broadSpectrumDetectionResult); D(N.join("&"));iE("att_f",void 0,"player_att");g.jB(b,0);break;case 4:g.If(b),iE("att_e",void 0,"player_att"),g.C7(b)}})})().then(function(){Z==null||Z()}); else{var B=new g.FnD(this.videoData);if("c1a"in B.GQ&&!g.iv.isInitialized()){iE("att_wb",void 0,"player_att");this.FU===2&&Math.random()<.01&&g.bh(Error("Botguard not available after 2 attempts"));if(q)return;if(this.FU<5){g.$t(this.EQ);this.FU++;return}}(B=g.kEK(B))?(iE("att_f",void 0,"player_att"),kC8(this.Oy,B),this.nA=!0):iE("att_e",void 0,"player_att")}}; g.r.xx=function(q){q=q===void 0?!1:q;return RS(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.G6()||g.z_(this.videoData))?this.getCurrentTime():this.G3(q)}; g.r.l2=function(){return this.PZ()}; g.r.G3=function(q){return this.t0.G3(q===void 0?!1:q)}; g.r.PZ=function(){return this.t0.PZ()}; g.r.oh=function(){return this.t0?this.t0.oh():0}; g.r.getStreamTimeOffset=function(){return this.t0?this.t0.getStreamTimeOffset():0}; g.r.Ef=function(){return this.getStreamTimeOffset()===0?this.oh():this.getStreamTimeOffset()}; g.r.setPlaybackRate=function(q){var Z;this.playbackRate!==q&&ccD(this.Aq,(Z=this.videoData.S)==null?void 0:Z.videoInfos)&&(this.playbackRate=q,rT(this));this.playbackRate=q;this.mediaElement&&this.mediaElement.setPlaybackRate(q)}; g.r.getPlaybackRate=function(){return this.playbackRate}; g.r.getPlaybackQuality=function(){var q="unknown";if(this.videoData.K&&(q=this.videoData.K.video.quality,q==="auto"&&this.mediaElement)){var Z=this.qz();Z&&Z.videoHeight>0&&(q=APB(Z.videoWidth,Z.videoHeight))}return q}; g.r.isHdr=function(){return!!(this.videoData.K&&this.videoData.K.video&&this.videoData.K.video.isHdr())}; g.r.sendVideoStatsEngageEvent=function(q,Z){var F=this.Oy;F.D?(F=Fu(F.D,"engage"),F.zP=q,F.send(Z)):Z&&Z()}; g.r.Yb=function(q){return this.Oy.Yb(q)}; g.r.isAtLiveHead=function(q,Z){Z=Z===void 0?!1:Z;return RS(this.videoData)&&(this.qR||Z)?this.t0.isAtLiveHead(q):!1}; g.r.BY=function(){var q=this.G3(),Z=this.getCurrentTime(),F;(F=!RS(this.videoData))||(F=this.t0,F=!(F.D&&F.D.S));return F||this.G6()||isNaN(q)||isNaN(Z)?0:Math.max(0,q-Z)}; g.r.rB=function(q){(this.qR=q)||this.dM.stop();if(this.videoData.D)if(q)this.videoData.D.resume();else{var Z=this.videoData.D;Z.Z&&Z.Z.stop()}this.loader&&(Z=this.videoData.U("html5_disable_preload_for_ssdai_with_preroll")&&this.hS()&&this.videoData.isLivePlayback,q&&!Z?this.loader.resume():rL(this,!0));g.p(this.playerState,2)||q?g.p(this.playerState,512)&&q&&this.ib(BF(this.playerState,512)):this.ib(Cx(this.playerState,512));Z=this.Oy;Z.qoe&&(Z=Z.qoe,g.zR(Z,g.$w(Z.provider),"stream",[q?"A":"I"]))}; g.r.Zn=function(q){this.Oy.Zt("player.exception",NJ({n:q.name,m:q.message}))}; g.r.cE=D6(22);g.r.gA=D6(51);g.r.vE=function(q){this.Oy.vE(q)}; g.r.Y5=function(q){this.Oy.Y5(q)}; g.r.rQ=function(q){this.Oy.rQ(q)}; g.r.TH=D6(28);g.r.El=D6(34);g.r.qv=function(q){this.Oy.qv(q)}; g.r.JD=function(q,Z,F,B){this.Oy.JD(q,Z,F,B)}; g.r.xm=function(){this.iL("hidden",{},!0)}; g.r.vM=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.r.ul=function(){return this.loader?this.loader.ul():!0}; g.r.setLoop=function(q){this.loop=q;this.mediaElement&&!g.em(this.J)&&this.mediaElement.setLoop(q)}; g.r.fk=function(){return this.mediaElement&&!g.em(this.J)?this.mediaElement.fk():this.loop}; g.r.Z$=function(q){this.iL("timestamp",{o:q.toString()});this.t0.Z$(q)}; g.r.We=function(q){this.Yk.tick(q)}; g.r.KE=function(q){return this.Yk.KE(q)}; g.r.p8=function(q){this.Yk.p8(q)}; g.r.iL=function(q,Z,F){this.Oy.iL(q,Z,F===void 0?!1:F)}; g.r.qs=function(q,Z,F){this.Oy.iL(q,Z,F===void 0?!1:F)}; g.r.Zt=function(q){this.Oy.Zt(q.errorCode,NJ(q.details));q=q.errorCode;if(this.videoData.isLivePlayback&&(q==="qoe.longrebuffer"||q==="qoe.slowseek")||q==="qoe.restart"){q=this.loader?I06(this.loader.videoTrack):{};var Z,F;this.iL("lasoe",Object.assign(this.loader?I06(this.loader.audioTrack):{},(Z=this.gU)==null?void 0:(F=Z.D)==null?void 0:F.W8()));var B,f;this.iL("lvsoe",Object.assign(q,(B=this.gU)==null?void 0:(f=B.K)==null?void 0:f.W8()))}if(this.U("html5_log_centralized_player_time")){var D;this.iL("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(D=this.loader)==null?void 0:Db9(D)})}}; g.r.va=function(q,Z,F){this.Oy.va(q,Z,F)}; g.r.FZ=function(q,Z,F,B,f,D,G,n){var b;if((b=this.videoData.D)!=null&&b.isLive){var N=Z.playerType===2?Z:q,S=q.videoData.videoId,l=Z.videoData.videoId;if(S&&l){b=this.Oy;if(b.qoe){var U=b.qoe,u=q.cpn,P=Z.cpn,W=N.videoData.lx,H=U.provider.videoData.clientPlaybackNonce,X=U.provider.videoData.videoId,Q=P!==H&&l!==X;H=u!==H&&S!==X;U.reportStats();U.adCpn&&U.adCpn!==u||(U.adCpn=H?u:"",U.Y7=H?S:"",U.adFormat=H?W:void 0,lcX(U,D?4:f?2:0,P,l,B),U.reportStats(),U.adCpn=Q?P:"",U.Y7=Q?l:"",U.adFormat=Q?W:void 0, lcX(U,D?5:f?3:1,u,S,F),U.reportStats())}F=q.cpn;if(b.S.has(F)){if(f=b.S.get(F),g7(f,!0).send(),tH(f),F!==b.provider.videoData.clientPlaybackNonce){BT7(f);var a;(a=b.D)==null||ki(a);b.S.delete(F)}}else b.h1=b.provider.videoData.clientPlaybackNonce,b.h1&&b.D&&(b.S.set(b.h1,b.D),g7(b.D).send(),tH(b.D));a=Z.cpn;N=N.videoData;B-=this.Ef();if(b.S.has(a)){B=b.S.get(a);var m=B.S&&isNaN(B.Z)?pt(B):NaN;B=NT(B,!1);isNaN(m)||(B.X=m);B.send()}else B=rKE(b,b.provider,N,B),b.S.set(a,B),Vw(B,new g.H3(Cx(new g.h1, 8),new g.h1)),B.W5(),(m=b.D)==null||tH(m);b.h1=a;if(this.U("html5_unify_csi_server_stitched_transition_logging")){if(b=this.Yk,m=Z.cpn,B=this.videoData.clientPlaybackNonce,Z=Z.videoData,q=(q.cpn===B?"video":"ad")+"_to_"+(m===B?"video":"ad"),q!=="video_to_ad"){B=q==="ad_to_video"?void 0:Z;N=B==null?void 0:B.Ru;a={};if(Z==null?0:Z.j)a.cttAuthInfo={token:Z.j,videoId:Z.videoId};G&&(a.startTime=G);BX(q,a);var c,e,Y;G={targetVideoId:(c=Z==null?void 0:Z.videoId)!=null?c:"empty_video",targetCpn:m,adVideoId:(e= B==null?void 0:B.videoId)!=null?e:"empty_video",adClientPlaybackNonce:(Y=N==null?void 0:N.cpn)!=null?Y:B==null?void 0:B.clientPlaybackNonce};N&&(G.adBreakType=N.adBreakType,G.adType=N.adType);g.ZR(G,q);v$(b,n,q)}}else c=this.Yk,Y=this.videoData.clientPlaybackNonce,e=Z.videoData,Y=(q.cpn===Y?"video":"ad")+"_to_"+(Z.cpn===Y?"video":"ad"),q={},e.j&&(q.cttAuthInfo={token:e.j,videoId:e.videoId}),G&&(q.startTime=G),BX(Y,q),g.ZR({targetVideoId:e.videoId,targetCpn:Z.cpn,isSsdai:!0},Y),G||v$(c,n,Y)}}else g.md(this.logger, 360717806,"SSTEvent for nonSS")}; g.r.t5=function(){var q=this.gq,Z=q.r6;q.r6=[];return Z}; g.r.J9=function(q){this.videoData.NZ=!0;this.Zt(new g.xX("sabr.fallback",q));this.k6(!0)}; g.r.s_=function(q,Z){this.videoData.X1=!0;if(Z===void 0||Z)this.Zt(new g.xX("qoe.restart",q)),this.k6(!0)}; g.r.mS=function(q){this.iL("sdai",{aftimeout:q});this.Zt(new g.xX("ad.fetchtimeout",{timeout:q}))}; g.r.Az=function(q,Z){this.iL("timelineerror",q);q=new g.xX("dai.timelineerror",q);Z?this.PL("dai.timelineerror",1,"RETRYABLE_ERROR",NJ(q.details)):this.Zt(q)}; g.r.wA=function(){return g.$w(this.Oy.provider)}; g.r.getPlayerSize=function(){return this.Er.getPlayerSize()}; g.r.ZI=function(){return this.Er.ZI()}; g.r.QT=function(){return this.Yk}; g.r.gV=function(){return this.gq.gV()}; g.r.getVolume=function(){return this.gq.getVolume()}; g.r.Su=function(){return this.gq.Su()}; g.r.isMuted=function(){return this.gq.isMuted()}; g.r.EM=function(){return this.gq.EM()}; g.r.xM=function(){this.vQ=!0}; g.r.U=function(q){return this.J.U(q)}; g.r.A1=function(){return this.J.A1()}; g.r.IM=function(q,Z,F,B,f){this.iL("xvt",{m:q,g:Z?1:0,tt:F?1:0,np:B?1:0,c:f})}; g.r.jT=function(){var q;(q=this.loader)==null||q.resume()}; g.r.hS=function(){return g.r1(this.Y3,"ad")}; g.r.LQ=function(){var q=this.getCurrentTime(),Z=q-this.oh();var F=this.mediaElement?vy(this.mediaElement.eW()):0;F=Math.floor(Math.max(F-Z,0))+100;var B;return((B=this.loader)==null?0:B.LQ(Z,F))?(this.iL("sdai",{skipad:1,ct:Z.toFixed(3),adj:F.toFixed(3)}),Im(this.videoData)&&this.loader.seek(Z+F,{seekSource:89,V5:"videoplayer_skipServerStitchedAd"}),PUK(this.t0,q),!0):!1}; g.r.Nl=function(){return this.J.Nl()}; g.r.Os=function(){if(this.U("html5_generate_content_po_token"))return this.videoData.Nu||"";this.gq.jo();return this.J.oa||""}; g.r.gE=function(){if(this.videoData.videoId)return this.videoData.Sh}; g.r.Vd=function(){return this.videoData.videoId}; g.r.Sq=function(){return this.gq.Dr}; g.r.yV=function(){return this.Kb}; g.r.I2=function(){return this.gq.I2()}; g.r.UY=function(q,Z,F){this.ib(Cx(this.playerState,16,F));this.t0.UY(q,Z)}; g.r.prefetchKeyPlay=function(q,Z){var F;(F=this.loader)==null||F.prefetchKeyPlay(q,Z)}; g.r.OA=function(q){return this.t0.OA(q)}; g.r.F1=function(){this.t0.F1()}; g.r.pX=function(q,Z){var F=this.U("html5_generate_content_po_token")?this.videoData:void 0;this.gq.pX(q,Z,F)}; g.r.S4=function(q,Z){this.Oy.S4(q,Z)}; g.r.VW=function(){return this.Oy.VW()}; g.r.Ix=function(){return this.videoData.jj}; g.r.d1=function(){return this.gq.d1()}; g.r.IE=function(){return this.gq.IE(this)}; g.r.Nt=function(){this.DS=!0}; g.r.Xf=function(q){var Z;(Z=this.loader)==null||Z.Xf(q)};g.V(cYy,fX);g.V(CC,w1);CC.prototype.D=function(q){q&&NC(this,this.B.getLoopVideo());this.B.logVisibility(this.element,q)}; CC.prototype.logClick=function(){this.B.logClick(this.element)}; CC.prototype.onLoopChange=function(q){NC(this,q)}; CC.prototype.K=function(q){this.B.setLoopVideo(q)};g.V(Y4G,fX);g.V(nw,fX);g.r=nw.prototype;g.r.seekToChapterWithAnimation=function(q){var Z=this;if(g.jR(this.api)&&!(q<0)){var F=this.api.getVideoData(),B=F.nE;if(B&&q=0)return;Z=~Z;g.F_(this.items,Z,0,q);bo(this.menuItems.element,q.element,Z)}q.subscribe("size-change",this.KX,this);this.menuItems.publish("size-change")}; g.r.TX=function(){IFK(this)||this.items[0].focus();return!0}; g.r.Em=function(){this.items[this.items.length-1].focus();return!0}; g.r.BL=function(q){q.unsubscribe("size-change",this.KX,this);this.jU()||(g.NL(this.items,q),this.menuItems.element.removeChild(q.element),this.menuItems.publish("size-change"))}; g.r.KX=function(){this.menuItems.publish("size-change")}; g.r.focus=function(){for(var q=0,Z=0;Z1&&g.rx(this)}; g.r.Ai=function(){YWG(this);this.zb&&(L5b(this),g.TF(this.element,this.size))}; g.r.Yx=function(){var q=this.D.pop();RU(this,q,this.D[this.D.length-1],!0)}; g.r.eN=function(q){if(!q.defaultPrevented)switch(q.keyCode){case 27:this.Uy();q.preventDefault();break;case 37:this.D.length>1&&this.Yx();q.preventDefault();break;case 39:q.preventDefault()}}; g.r.focus=function(){this.D.length&&this.D[this.D.length-1].focus()}; g.r.SU=function(){g.$P.prototype.SU.call(this);this.S&&this.S.dispose();this.G&&this.G.dispose()};g.V(HO,g.Lx);HO.prototype.open=function(q,Z){this.initialize(q.items)&&this.Ic(Z,!!Z)}; HO.prototype.initialize=function(q){g.Tc(this.SB);if(q===void 0||q.length===0)return!1;var Z=q.length;q=g.E(q);for(var F=q.next();!F.done;F=q.next())this.Mr(F.value,Z--);return!0}; HO.prototype.Mr=function(q,Z){q.menuNavigationItemRenderer?ojK(this,q.menuNavigationItemRenderer,Z):q.menuServiceItemRenderer&&pmD(this,q.menuServiceItemRenderer,Z)};g.V(py,kb);g.r=py.prototype;g.r.Ki=function(q){q.target!==this.dismissButton.element&&q.target!==this.overflowButton.element&&(this.fY(),this.onClickCommand&&this.B.a_("innertubeCommand",this.onClickCommand))}; g.r.o8=function(){this.enabled=!1;this.V.hide()}; g.r.zT=function(){return!!this.D&&this.enabled}; g.r.onVideoDataChange=function(q,Z){this.XC(Z);if(this.D){this.fN();a:if(!this.isCounterfactual){var F,B,f;this.banner.update({title:(F=this.D)==null?void 0:F.title,subtitle:(B=this.D)==null?void 0:B.subtitle,metadata:(f=this.D)==null?void 0:f.metadataText});var D;this.onClickCommand=g.C((D=this.D)==null?void 0:D.onTap,qX);var G;if(q=g.C((G=this.D)==null?void 0:G.onOverflow,qX))this.j=g.C(q,fK5);var n;if((n=this.D)==null?0:n.thumbnailImage){var b,N;G=((b=this.D)==null?void 0:(N=b.thumbnailImage)== null?void 0:N.sources)||[];if(G.length===0)break a;this.thumbnailImage.update({url:G[0].url})}else{var S;if((S=this.D)==null?0:S.thumbnailIconName){var l;this.thumbnailIcon.update({icon:(l=this.D)==null?void 0:l.thumbnailIconName})}}var U;this.shouldShowOverflowButton=!((U=this.D)==null||!U.shouldShowOverflowButton);var u;this.shouldHideDismissButton=!((u=this.D)==null||!u.shouldHideDismissButton)}var P;this.banner.element.setAttribute("aria-label",((P=this.D)==null?void 0:P.a11yLabel)||"");var W; this.HG=(W=this.D)==null?void 0:W.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;L$B(this)}}; g.r.avG=function(){this.isVisible=!0;L$B(this)}; g.r.eWc=function(){this.isVisible=!1;L$B(this)}; g.r.Ir=function(){kb.prototype.Ir.call(this);this.K&&this.B.logVisibility(this.banner.element,this.isVisible)}; g.r.fY=function(){kb.prototype.fY.call(this,!1);this.K&&this.B.logClick(this.banner.element)}; g.r.yS=function(q){this.Z||(this.Z=new HO(this.B),g.y(this,this.Z));var Z,F;if((Z=this.j)==null?0:(F=Z.menu)==null?0:F.menuRenderer)this.Z.open(this.j.menu.menuRenderer,q.target),q.preventDefault()}; g.r.XC=function(){}; g.r.fN=function(){}; g.r.SU=function(){this.B.WZ("suggested_action_view_model");kb.prototype.SU.call(this)};g.V(dF,py); dF.prototype.XC=function(q){var Z,F,B;this.productUpsellSuggestedActionViewModel=g.C((Z=q.getWatchNextResponse())==null?void 0:(F=Z.playerOverlays)==null?void 0:(B=F.playerOverlayRenderer)==null?void 0:B.suggestedActionViewModel,yC_);var f;if((f=this.productUpsellSuggestedActionViewModel)==null?0:f.content){var D;this.D=g.C((D=this.productUpsellSuggestedActionViewModel)==null?void 0:D.content,ZFm)}var G,n;if(this.K=!!((G=this.productUpsellSuggestedActionViewModel)==null?0:(n=G.loggingDirectives)==null? 0:n.trackingParams)){var b,N;this.B.setTrackingParams(this.banner.element,((b=this.productUpsellSuggestedActionViewModel)==null?void 0:(N=b.loggingDirectives)==null?void 0:N.trackingParams)||null)}var S;this.isCounterfactual=!((S=this.productUpsellSuggestedActionViewModel)==null||!S.isCounterfactualServing)}; dF.prototype.fN=function(){var q=[],Z,F=g.E(((Z=this.productUpsellSuggestedActionViewModel)==null?void 0:Z.ranges)||[]);for(Z=F.next();!Z.done;Z=F.next()){var B=Z.value;B&&(Z=Number(B.startTimeMilliseconds),B=Number(B.endTimeMilliseconds),isNaN(Z)||isNaN(B)||q.push(new g.u8(Z,B,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.B.sZ(q)};g.V(C2g,fX);g.V(Lw,fX);Lw.prototype.onVideoDataChange=function(q,Z){var F=this;if(!MI(Z)&&(q==="newdata"&&Nf(this),this.D&&q==="dataloaded")){this.D=!1;var B;zd(nN(jOK(this.api.C(),(B=this.api.getVideoData())==null?void 0:g.he(B)),function(f){tTK(F,f)}),function(){F.D=!0})}}; Lw.prototype.Y6=function(){var q=this;if(g.em(this.api.C())){var Z,F=g.kx(this.api.C(),(Z=this.api.getVideoData())==null?void 0:g.he(Z));return nN(Yy(F),function(B){var f=a5();$W(f,B);return q.api.Y6(f)})}return Yy(this.api.Y6())};g.V(g.qB,g.vT);g.r=g.qB.prototype;g.r.open=function(){g.Sq(this.Pg,this.qr)}; g.r.SN=function(q){P4k(this);var Z=this.options[q];Z&&(Z.element.setAttribute("aria-checked","true"),this.setContent(this.QM(q)),this.S=q)}; g.r.Qk=function(q){g.Tc(this.qr);for(var Z={},F=!1,B=0;B=0?this.D.playbackRate:1}catch(q){return 1}}; g.r.setPlaybackRate=function(q){this.getPlaybackRate()!==q&&(this.D.playbackRate=q);return q}; g.r.fk=function(){return this.D.loop}; g.r.setLoop=function(q){this.D.loop=q}; g.r.canPlayType=function(q,Z){return this.D.canPlayType(q,Z)}; g.r.isPaused=function(){return this.D.paused}; g.r.isSeeking=function(){return this.D.seeking}; g.r.isEnded=function(){return this.D.ended}; g.r.f3=function(){return this.D.muted}; g.r.Hb=function(q){Zb();this.D.muted=q}; g.r.qx=function(){return this.D.played||WR([],[])}; g.r.eW=function(){try{var q=this.D.buffered}catch(Z){}return q||WR([],[])}; g.r.Gm=function(){return this.D.seekable||WR([],[])}; g.r.lS=function(){var q=this.D;return q.getStartDate?q.getStartDate():null}; g.r.getCurrentTime=function(){return this.D.currentTime}; g.r.setCurrentTime=function(q){this.D.currentTime=q}; g.r.getDuration=function(){return this.D.duration}; g.r.load=function(){var q=this.D.playbackRate;try{this.D.load()}catch(Z){}this.D.playbackRate=q}; g.r.pause=function(){this.D.pause()}; g.r.play=function(){var q=this.D.play();if(!q||!q.then)return null;q.then(void 0,function(){}); return q}; g.r.cY=function(){return this.D.readyState}; g.r.Ou=function(){return this.D.networkState}; g.r.Hf=function(){return this.D.error?this.D.error.code:null}; g.r.nm=function(){return this.D.error?this.D.error.message:""}; g.r.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.D instanceof window.HTMLVideoElement&&this.D.getVideoPlaybackQuality)return this.D.getVideoPlaybackQuality();if(this.D){var q=this.D,Z=q.webkitDroppedFrameCount;if(q=q.webkitDecodedFrameCount)return{droppedVideoFrames:Z||0,totalVideoFrames:q}}return{}}; g.r.Z6=function(){return!!this.D.webkitCurrentPlaybackTargetIsWireless}; g.r.i_=function(){return!!this.D.webkitShowPlaybackTargetPicker()}; g.r.togglePictureInPicture=function(){var q=this.D,Z=window.document;window.document.pictureInPictureEnabled?this.D!==Z.pictureInPictureElement?q.requestPictureInPicture():Z.exitPictureInPicture():qT()&&q.webkitSetPresentationMode(q.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.r.xX=function(){var q=this.D;return new g.e_(q.offsetLeft,q.offsetTop)}; g.r.getSize=function(){return g.bD(this.D)}; g.r.setSize=function(q){g.TF(this.D,q)}; g.r.getVolume=function(){return this.D.volume}; g.r.setVolume=function(q){Zb();this.D.volume=q}; g.r.Sy=function(q){this.Z[q]||(this.D.addEventListener(q,this.listener),this.Z[q]=this.listener)}; g.r.setAttribute=function(q,Z){this.D.setAttribute(q,Z)}; g.r.removeAttribute=function(q){this.D.removeAttribute(q)}; g.r.hasAttribute=function(q){return this.D.hasAttribute(q)}; g.r.oL=D6(61);g.r.ao=D6(63);g.r.Io=D6(65);g.r.jm=D6(67);g.r.rD=function(){return Gg(this.D)}; g.r.SH=function(q){g.e$(this.D,q)}; g.r.FR=function(q){return g.gb(this.D,q)}; g.r.VD=function(){return g.yT(document.body,this.D)}; g.r.audioTracks=function(){var q=this.D;if("audioTracks"in q)return q.audioTracks}; g.r.SU=function(){for(var q=g.E(Object.keys(this.Z)),Z=q.next();!Z.done;Z=q.next())Z=Z.value,this.D.removeEventListener(Z,this.Z[Z]);Rm.prototype.SU.call(this)}; g.r.d6=function(q){this.D.disableRemotePlayback=q};g.V(AC,g.w);g.V(vP,g.w);vP.prototype.show=function(){g.w.prototype.show.call(this);this.ys()}; vP.prototype.hide=function(){g.w.prototype.hide.call(this);this.delay.stop();this.G.stop()}; vP.prototype.ys=function(){var q=(0,g.Le)(),Z=wjk(this.lL);EO(this.D,Z.bandwidth_samples);EO(this.j,Z.network_activity_samples);EO(this.S,Z.live_latency_samples);EO(this.K,Z.buffer_health_samples);var F={};Z=g.E(Object.entries(Z));for(var B=Z.next();!B.done;B=Z.next()){var f=g.E(B.value);B=f.next().value;f=f.next().value;this.X[B]!==f&&(F[B]=" "+String(f));this.X[B]=f}this.update(F);q=(0,g.Le)()-q>25?5E3:500;this.delay.start(q)}; vP.prototype.V=function(){this.Z?(this.position+=1,this.position>15&&(this.Z=!1)):(--this.position,this.position<=0&&(this.Z=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.G.start(2E4)};g.V(Xsy,fX);g.V(Y8,g.J);Y8.prototype.D=function(){var q=(0,g.Le)()-this.startTime;q=qthis.G[q])&&(this.D=q,this.NW())}; g.r.onCueRangeExit=function(q){var Z=ijG(this,q);Z&&this.D===q&&this.api.a_("innertubeCommand",Z);cV(this);this.D=void 0}; g.r.rz=function(q){this.S=q}; g.r.kO=function(){this.NW();this.S=void 0}; g.r.NW=function(){if(this.D!==void 0){var q=(q=e2(this,this.D))&&q.onCueRangeEnter?nV(q.onCueRangeEnter):void 0;var Z=e2(this,this.D);a:if(Z&&Z.additionalTrigger){var F=g.E(Z.additionalTrigger);for(var B=F.next();!B.done;B=F.next())if(B=B.value,B.type){var f=void 0,D=void 0;if((f=this.Y$[B.type])==null?0:f((D=B.args)!=null?D:{})){F=!0;break a}}F=!1}else F=!0;q&&F&&(this.api.a_("innertubeCommand",q),Q5X(this,Z),this.G[this.D]!==void 0&&this.G[this.D]++,this.PG=!0)}}; g.r.SU=function(){this.timelyActions=this.S=this.D=this.videoId=void 0;this.G={};this.MB();cV(this);fX.prototype.SU.call(this)};g.V(EN8,fX);g.V(Sr,w1);Sr.prototype.G=function(q){this.S(q?2:1)}; Sr.prototype.Cw=function(){var q=this.B.getPresentingPlayerType();q!==2&&q!==3||!this.D?this.B.U("html5_enable_new_audio_settings_menu")?(q=this.getVoiceBoostState(),q!==1?(q===0?(NC(this,this.K()===2),this.setEnabled(!0)):(NC(this,!1),this.setEnabled(!1)),this.D||(this.Pg.Mr(this),this.D=!0)):this.D&&(this.Pg.BL(this),this.D=!1)):this.D||(q=this.hasVoiceBoostAudioTrack(),this.setEnabled(q),q=this.K()===2&&q,NC(this,q),this.Pg.Mr(this),this.D=!0):(this.D=!1,this.Pg.BL(this))}; Sr.prototype.SU=function(){this.Pg.BL(this);w1.prototype.SU.call(this)};g.V(xP,fX);g.r=xP.prototype;g.r.getVoiceBoostUserPreference=function(){return this.D}; g.r.setVoiceBoostUserPreference=function(q){this.api.iL("vb_set",{pref:q});g.e0("yt-player-voice-boost",q);q!==this.D&&(this.D=q,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.QQ(),this.api.un())}; g.r.hasVoiceBoostAudioTrack=function(){var q,Z,F=(q=this.api.getVideoData())==null?void 0:(Z=q.S)==null?void 0:Z.D;return F?cU(F,function(B){var f;return((f=B.audio)==null?void 0:f.K)===!0}):!1}; g.r.getVoiceBoostState=function(){return this.api.Us(1)}; g.r.updateEnvironmentData=function(){this.api.C().zE=this.D};g.V(q2,fX);q2.prototype.SU=function(){this.X&&(g.V2(this.X),this.X=void 0);fX.prototype.SU.call(this)}; q2.prototype.jo=function(){(this.K?!this.D:this.S)&&KC(this)}; q2.prototype.CD=function(q,Z,F){var B=this;if(Bu9(q)){var f=F||"";if(this.D)Z=BG(this,f),rBE(q,Z);else{var D=new g.VW;Z.push(D.promise);this.Z.promise.then(function(){var G=BG(B,f);rBE(q,G);D.resolve()})}}}; q2.prototype.x5=function(q){var Z=this;if(this.K||this.S)q.Nu=BG(this,q.videoId),this.D||(this.G=new l8,this.Z.promise.then(function(){Z.Yk.KE("pot_if");q.Nu=BG(Z,q.videoId)}))};g.V(g.yE,g.w);g.yE.prototype.select=function(){this.api.TQ(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.HR||void 0)&&this.api.logClick(this.element)}; g.yE.prototype.onClick=function(q){if(g.FQ(this.api.C())&&this.api.U("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var Z=this.suggestion.Le(),F={};g.NH(this.api,F);Z=g.gJ(Z,F);g.SC(Z,this.api,q)}else g.lD(q,this.api,this.K,this.suggestion.sessionData||void 0)&&this.select()}; g.yE.prototype.onKeyPress=function(q){switch(q.keyCode){case 13:case 32:q.defaultPrevented||(this.select(),q.preventDefault())}}; g.yE.prototype.onVideoDataChange=function(){var q=this.api.getVideoData(),Z=this.api.C();this.K=q.z3?!1:Z.G};g.V(L6,g.w);L6.prototype.SU=function(){this.hide();g.DJ(this.K);g.AG(this.stills);this.stills.length=0;g.w.prototype.SU.call(this)}; L6.prototype.S=function(q){this.G&&this.G(q)}; L6.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var q,Z,F,B,f;var D=(((q=this.videoData)==null?0:(Z=q.suggestions)==null?0:Z.length)?(F=this.videoData)==null?void 0:F.suggestions:((B=this.videoData)==null?0:g.rp(B))?[(f=this.videoData)==null?void 0:g.rp(f)]:[]).slice(0,18);if((q=this.Z)&&this.D)if(g.kP(q),D.length)for(this.stills.length>D.length&&g.AG(this.stills.splice(D.length)),this.stills.length=D.length,Z=0;Z=0;q--)this.features[q].dispose();this.features.length=0;g.J.prototype.SU.call(this)};vaB.prototype.reset=function(){this.D=this.K=NaN};g.r=gQ.prototype;g.r.reset=function(){De(this.timerName)}; g.r.tick=function(q,Z){n4(q,Z,this.timerName)}; g.r.KE=function(q){return z2(q,void 0,this.timerName)}; g.r.p8=function(q){g.XY(q,void 0,this.timerName)}; g.r.infoGel=function(q){g.ZR(q,this.timerName)};g.V(Sf,g.In);g.r=Sf.prototype;g.r.jr=function(q){return this.loop||!!q||this.index+1=0}; g.r.setShuffle=function(q){this.shuffle=q;q=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var Z=0;Z=Z.top&&q.right<=Z.right&&q.bottom<=Z.bottom&&q.left>=Z.left))return}Uf(this,2,!1)}; g.r.hK=function(q){var Z=new g.e_(q.pageX,q.pageY);Wp(Z,this.G)||(this.G=Z,(q=q.target)&&this.WN(q)&&(Uf(this,4,!0),this.D.Op(this.S),this.S=this.D.N(this.target,"mouseover",this.Pb),this.X=this.D.N(this.target,"mouseout",this.Pb)))}; g.r.Pb=function(q){q=q.relatedTarget;q&&this.WN(q)||(this.G=new g.e_(NaN,NaN),CBb(this))}; g.r.mps=function(){Uf(this,1,!0)}; g.r.pn=function(q){q=q.target;q instanceof Element&&!(q.tabIndex>0)||Uf(this,1,!0)}; g.r.XV=function(){this.j=!0;this.D.Op(this.Z);this.Z=this.D.N(document,"mouseup",this.b9)}; g.r.b9=function(){this.j=!1;Uf(this,8,!1);this.D.Op(this.Z);this.Z=this.D.N(this.target,"mousedown",this.XV)}; g.r.NK=function(q){if(q=(q=q.changedTouches)&&q[0])this.Y$=q.identifier,this.D.Op(this.V),this.V=this.D.N(this.target,"touchend",this.x8,void 0,!0),Uf(this,1024,!0)}; g.r.x8=function(q){if(q=q.changedTouches)for(var Z=0;Z1280||f>720)if(Z=B.fm("maxresdefault.jpg"))break;if(D>640||f>480)if(Z=B.fm("maxresdefault.jpg"))break;if(D>320||f>180)if(Z=B.fm("sddefault.jpg")||B.fm("hqdefault.jpg")||B.fm("mqdefault.jpg"))break;if(Z=B.fm("default.jpg"))break}g.d9(q)&&(q=new Image,q.addEventListener("load", function(){Sak()}),q.src=Z?Z:"",this.api.QT().tick("ftr")); this.G.style.backgroundImage=Z?"url("+Z+")":""};g.V(g.Xr,g.w);g.Xr.prototype.resize=function(){}; g.Xr.prototype.K=function(q){var Z=this;this.S=!1;sUb(this);var F=q.GV,B=this.api.C();F!=="GENERIC_WITHOUT_LINK"||B.j?F==="TOO_MANY_REQUESTS"?(B=this.api.getVideoData(),this.setContent(HE(this,"TOO_MANY_REQUESTS_WITH_LINK",B.Le(),void 0,void 0,void 0,!1))):F!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||B.j?this.api.C().U("html5_enable_bandaid_error_screen")&&F==="HTML5_SPS_UMP_STATUS_REJECTED"&&!B.j?(B=B.hostLanguage,q="//support.google.com/youtube?p=videoError",B&&(q=g.gJ(q,{hl:B})),this.setContent(HE(this, "HTML5_SPS_UMP_STATUS_REJECTED",q))):this.api.C().U("enable_adb_handling_in_sabr")&&F==="BROWSER_OR_EXTENSION_ERROR"&&!B.j?(B=B.hostLanguage,q="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",B&&(q=g.gJ(q,{hl:B})),this.setContent(HE(this,"BROWSER_OR_EXTENSION_ERROR",q))):this.setContent(g.lL(q.errorMessage)):this.setContent(HE(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(q=B.hostLanguage,F= "//support.google.com/youtube/?p=player_error1",q&&(F=g.gJ(F,{hl:q})),this.setContent(HE(this,"GENERIC_WITH_LINK_AND_CPN",F,!0)),B.VO&&!B.G&&Lh7(this,function(D){if(g.lD(D,Z.api,!VA(Z.api.C()))){D={as3:!1,html5:!0,player:!0,cpn:Z.api.getVideoData().clientPlaybackNonce};var G=Z.api;G.Ry("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:D});G.isFullscreen()&&G.toggleFullscreen()}})); if(this.S){var f=this.cG("ytp-error-link");f&&(this.api.createClientVe(f,this,216104),this.api.logVisibility(f,!0),Lh7(this,function(){Z.api.logClick(f)}))}}; var cz8=/([^<>]+)<\/a>/;g.V(cB,g.w);cB.prototype.hW=function(q,Z,F){F=F===void 0?!1:F;switch(Z){case 1:Vo(this,q,this.S,F);break;case 2:Vo(this,q,this.G,F);break;case 3:Vo(this,q,this.D,F);break;case 4:Vo(this,q,this.K,F)}};g.V(p5,g.w);g.r=p5.prototype;g.r.onClick=function(q){this.innertubeCommand?(this.B.a_("innertubeCommand",this.innertubeCommand),q.preventDefault()):g.lD(q,this.B,!0);this.B.logClick(this.element)}; g.r.onVideoDataChange=function(q,Z){I9B(this,Z);this.CP&&n9K(this,this.CP)}; g.r.VS=function(q){var Z=this.B.getVideoData();this.videoId!==Z.videoId&&I9B(this,Z);this.D&&n9K(this,q.state);this.CP=q.state}; g.r.Ic=function(){this.fade.show();this.B.publish("paidcontentoverlayvisibilitychange",!0);this.B.logVisibility(this.element,!0)}; g.r.Uy=function(){this.fade.hide();this.B.publish("paidcontentoverlayvisibilitychange",!1);this.B.logVisibility(this.element,!1)};g.V(Jh,g.w);Jh.prototype.hide=function(){this.D.stop();this.message.style.display="none";g.w.prototype.hide.call(this)}; Jh.prototype.onStateChange=function(q){this.xS(q.state)}; Jh.prototype.xS=function(q){if(g.p(q,128)||this.api.yV())var Z=!1;else{var F;Z=this.api.U("web_watch_enable_multiview_manager")&&((F=this.api.getVideoData())==null?0:MI(F))?!1:g.p(q,16)||g.p(q,1)?!0:!1}Z?this.D.start():this.hide()}; Jh.prototype.K=function(){this.message.style.display="block"};g.V(aQ,g.$P);aQ.prototype.onMutedAutoplayChange=function(q){this.K&&(q?(erg(this),this.Ic()):(this.D&&this.logClick(),this.Uy()))}; aQ.prototype.Qc=function(q){this.api.isMutedByMutedAutoplay()&&g.YM(q,2)&&this.Uy()}; aQ.prototype.onClick=function(){this.api.unMute();this.logClick()}; aQ.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.V(g.ZI,g.pO);g.r=g.ZI.prototype;g.r.init=function(){var q=this.api,Z=q.getPlayerStateObject();this.Kg=q.getPlayerSize();this.ib(Z);this.PC();this.CB();this.api.publish("basechromeinitialized",this);this.DO()&&this.api.publish("standardControlsInitialized")}; g.r.onVideoDataChange=function(q,Z){var F=this.Wi!==Z.videoId;if(F||q==="newdata")q=this.api,q.isFullscreen()||(this.Kg=q.getPlayerSize());F&&(this.Wi=Z.videoId,F=this.Fo,F.k$=3E3,Uf(F,512,!0),this.PC());this.api.U("web_render_jump_buttons")&&Z.showSeekingControls&&(this.qQ=572)}; g.r.Urc=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.r.T_=function(){var q=this.api.pz()&&this.api.Nb(),Z=this.api.Rr();return this.lC||q||this.jX||Z}; g.r.dI=function(){var q=!this.T_();g.hK(this.api.getRootNode(),"ytp-menu-shown",!q)}; g.r.WN=function(q){try{if(!g.yT(this.api.getRootNode(),q))return!1}catch(Z){return!1}for(;q&&!Nw9(q);)q=q===this.api.getRootNode()?null:q.parentElement||null;return!!q}; g.r.SR=function(q){var Z=this.api.getRootNode();g.hK(Z,"ytp-autohide",q);g.hK(Z,"ytp-autohide-active",!0);this.Ne.start(q?250:100);q&&(this.nM=!1,g.vc(Z,"ytp-touch-mode"));this.ye=!q;this.api.bW(!q);this.api.U("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",q)}; g.r.ov=function(){var q=this.api.getRootNode();g.hK(q,"ytp-autohide-active",!1)}; g.r.ltP=function(){this.AB=!0}; g.r.OP$=function(q){if(this.api.C().U("player_doubletap_to_seek")||this.api.C().X)this.AB=!1,this.YA&&this.Op(this.YA),this.DW===0&&Eg(this,q)?(this.tG(),this.vN.start(),this.YA=this.N(this.api.Ca(),"touchmove",this.ltP,void 0,!0)):this.vN.stop();rp7(this)&&Eg(this,q)&&!this.api.C().X&&VI(this);var Z=this.ZZ.fz();if(!g.FQ(this.api.C())&&qW&&V6E(this,q))Z&&q.preventDefault();else if(this.nM=!0,g.e$(this.api.getRootNode(),"ytp-touch-mode"),this.Fo.sS(),this.api.C().U("player_doubletap_to_seek")||this.api.C().X)if(Z= this.api.getPlayerStateObject(),!(!this.api.v1()||g.p(Z,2)&&g.Cy(this.api)||g.p(Z,64))){Z=Date.now()-this.gO;this.DW+=1;if(Z<=350){this.cM=!0;Z=this.api.getPlayerSize().width/3;var F=this.api.getRootNode().getBoundingClientRect(),B=q.targetTouches[0].clientX-F.left;F=q.targetTouches[0].clientY-F.top;var f=(this.DW-1)*10;B>0&&BZ*2&&B=650,B=q.width<528;this.Fo.resize();if(this.api.U("web_player_use_screen_width_for_big_mode")){var f,D=q.width>=((f=g.Ce(this.api.C().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?f:2E3);g.hK(Z,"ytp-big-mode",D)}g.hK(Z,"ytp-fullscreen",this.api.isFullscreen());g.hK(Z,"ytp-large-width-mode",F);this.api.U("delhi_modern_web_player")?g.hK(Z,"ytp-xsmall-width-mode",B):g.hK(Z,"ytp-small-mode",this.J8()); g.hK(Z,"ytp-tiny-mode",this.ZG());g.hK(Z,"ytp-big-mode",this.rY());this.NA&&this.NA.resize(q)}; g.r.Qc=function(q){this.ib(q.state);this.PC()}; g.r.LL=D6(3);g.r.VE=function(){var q=!!this.Wi&&!this.api.pw()&&!this.di,Z=this.api.getPresentingPlayerType()===2,F=this.api.C();if(Z)return F=yV(this.api.pB()),q&&(F&&F.player?q=(q=F.player.getVideoData(2))?q.isListed&&!g.Za(F.player.C()):!1:(Yp("showInfoBarDuringAd: this is null"),q=!1)),q;Z=F.U("web_player_imax_theater_mode")&&this.api.aV()&&!this.api.isInline();return q&&(F.D9||Z||this.api.isFullscreen()||F.PX)}; g.r.PC=function(){var q=this.VE();this.ob!==q&&(this.ob=q,g.hK(this.api.getRootNode(),"ytp-hide-info-bar",!q))}; g.r.ib=function(q){var Z=q.isCued()||this.api.tj()&&this.api.getPresentingPlayerType()!==3;Z!==this.isCued&&(this.isCued=Z,this.kA&&this.Op(this.kA),this.kA=this.N(this.api.Ca(),"touchstart",this.OP$,void 0,Z));var F=this.Fo,B=q.isPlaying()&&!g.p(q,32)||this.api.Zo();Uf(F,128,!B);F=this.Fo;B=this.api.getPresentingPlayerType()===3;Uf(F,256,B);F=this.api.getRootNode();g.p(q,2)?B=[t5.ENDED]:(B=[],g.p(q,8)?B.push(t5.PLAYING):g.p(q,4)&&B.push(t5.PAUSED),g.p(q,1)&&!g.p(q,32)&&B.push(t5.BUFFERING),g.p(q, 32)&&B.push(t5.SEEKING),g.p(q,64)&&B.push(t5.UNSTARTED));g.YR(this.yP,B)||(g.el(F,this.yP),this.yP=B,g.jP(F,B));B=this.api.C();var f=g.p(q,2);a:{var D=this.api.C();var G=D.controlsType;switch(G){case "2":case "0":D=!1;break a}D=G==="3"&&!g.p(q,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:TlK(yV(this.api.pB())))||this.api.Rr()||g.FQ(D)&&this.api.getPresentingPlayerType()===2?!1:!0}g.hK(F,"ytp-hide-controls",!D);g.hK(F,"ytp-native-controls",B.controlsType==="3"&&!Z&&!f&&!this.jX);g.p(q, 128)&&!g.FQ(B)?(this.NA||(this.NA=new g.Xr(this.api),g.y(this,this.NA),g.C5(this.api,this.NA.element,4)),this.NA.K(q.xb),this.NA.show()):this.NA&&(this.NA.dispose(),this.NA=null)}; g.r.jM=function(){return this.api.pz()&&this.api.Nb()?(this.api.xi(!1,!1),!0):this.api.pw()?(g.d3(this.api,!0),!0):!1}; g.r.onMutedAutoplayChange=function(q){this.jX=q;this.dI()}; g.r.rY=function(){return!1}; g.r.J8=function(){return!this.rY()&&(this.api.getPlayerSize().width=0&&Z.left>=0&&Z.bottom>Z.top&&Z.right>Z.left?Z:null;Z=this.size;q=q.clone();Z=Z.clone();B&&(G=Z,f=5,(f&65)==65&&(q.x=B.right)&&(f&=-2),(f&132)==132&&(q.y=B.bottom)&&(f&=-5),q.xB.right&&(G.width=Math.min(B.right-q.x,D+G.width-B.left),G.width=Math.max(G.width,0))),q.x+G.width>B.right&&f&1&&(q.x=Math.max(B.right-G.width,B.left)),q.yB.bottom&&(G.height=Math.min(B.bottom-q.y,D+G.height-B.top),G.height=Math.max(G.height,0))),q.y+G.height>B.bottom&&f&4&&(q.y=Math.max(B.bottom-G.height,B.top)));B=new g.vF(0,0,0,0);B.left=q.x;B.top=q.y;B.width= Z.width;B.height=Z.height;g.B7(this.element,new g.e_(B.left,B.top));g.DJ(this.K);this.K.N(RV(this),"contextmenu",this.bBL);this.K.N(this.B,"fullscreentoggled",this.onFullscreenToggled);this.K.N(this.B,"pageTransition",this.e9)}; g.r.bBL=function(q){if(!q.defaultPrevented){var Z=vV(q);g.yT(this.element,Z)||this.Uy();this.B.C().disableNativeContextMenu&&q.preventDefault()}}; g.r.onFullscreenToggled=function(){this.Uy();bQy(this)}; g.r.e9=function(){this.Uy()};g.V(Ow,g.w);Ow.prototype.onClick=function(){var q=this,Z,F,B,f;return g.h(function(D){if(D.D==1)return Z=q.api.C(),F=q.api.getVideoData(),B=q.api.getPlaylistId(),f=Z.getVideoUrl(F.videoId,B,void 0,!0),g.R(D,dbb(q,f),2);D.K&&ck9(q);q.api.logClick(q.element);g.C7(D)})}; Ow.prototype.ys=function(){this.updateValue("icon",{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar v\u00ednculo");this.updateValue("tooltip-title","Copiar v\u00ednculo");this.visible= UWD(this);g.hK(this.element,"ytp-copylink-button-visible",this.visible);this.hZ(this.visible);this.tooltip.Q$();this.api.logVisibility(this.element,this.visible&&this.PG)}; Ow.prototype.DJ=function(q){g.w.prototype.DJ.call(this,q);this.api.logVisibility(this.element,this.visible&&q)}; Ow.prototype.SU=function(){g.w.prototype.SU.call(this);g.vc(this.element,"ytp-copylink-button-visible")};g.V(YGB,g.w);g.r=YGB.prototype;g.r.show=function(){g.w.prototype.show.call(this);g.$t(this.K)}; g.r.hide=function(){this.G.stop();this.S=0;this.cG("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.vc(this.element,"ytp-chapter-seek");g.vc(this.element,"ytp-time-seeking");g.w.prototype.hide.call(this)}; g.r.NV=function(q,Z,F,B){this.S=q===this.j?this.S+B:B;this.j=q;var f=q===-1?this.V:this.X;f&&this.B.logClick(f);this.Z?this.K.stop():g.HP(this.K);this.G.start();this.element.setAttribute("data-side",q===-1?"back":"forward");var D=3*this.B.Ca().getPlayerSize().height;f=this.B.Ca().getPlayerSize();f=f.width/3-3*f.height;this.D.style.width=D+"px";this.D.style.height=D+"px";q===1?(this.D.style.left="",this.D.style.right=f+"px"):q===-1&&(this.D.style.right="",this.D.style.left=f+"px");var G=D*2.5;D=G/ 2;var n=this.cG("ytp-doubletap-ripple");n.style.width=G+"px";n.style.height=G+"px";q===1?(q=this.B.Ca().getPlayerSize().width-Z+Math.abs(f),n.style.left="",n.style.right=q-D+"px"):q===-1&&(q=Math.abs(f)+Z,n.style.right="",n.style.left=q-D+"px");n.style.top="calc((33% + "+Math.round(F)+"px) - "+D+"px)";if(F=this.cG("ytp-doubletap-ripple"))F.classList.remove("ytp-doubletap-ripple"),F.classList.add("ytp-doubletap-ripple");U7b(this,this.Z?this.S:B)}; g.r.oz=function(q,Z,F){if(F=F===void 0?null:F){var B=q===-1?this.V.visualElement:this.X.visualElement;F={seekData:F};var f=g.qx();f&&HL(f,B,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",F)}this.S=q===this.j?this.S+Z:Z;this.j=q;B=this.B.Ca().getPlayerSize();this.Z?this.K.stop():g.HP(this.K);this.G.start();this.element.setAttribute("data-side",q===-1?"back":"forward");g.e$(this.element,"ytp-time-seeking");this.D.style.width="110px";this.D.style.height="110px";F=B.width*.1-15;q===1?this.Dl?(this.D.style.right= F+"px",this.D.style.left=""):(this.D.style.right="",this.D.style.left=B.width*.8-30+"px"):q===-1&&(this.Dl?(this.D.style.right="",this.D.style.left=F+"px"):(this.D.style.right="",this.D.style.left=B.width*.1-15+"px"));this.D.style.top=B.height*.5+15+"px";U7b(this,this.Z?this.S:Z)}; g.r.PD=function(q,Z,F){F=F===void 0?null:F;g.HP(this.K);this.G.start();switch(q){case -1:q="back";break;case 1:q="forward";break;default:q=""}this.element.setAttribute("data-side",q);this.D.style.width="0";this.D.style.height="0";g.e$(this.element,"ytp-chapter-seek");this.updateValue("seekText",Z);this.updateValue("seekTime","");Z=this.cG("ytp-seek-icon");if(F){a:if(F){switch(F){case "PREMIUM_STANDALONE":F=C$K();break a;case "PREMIUM_STANDALONE_CAIRO":F=hR9();break a}F=void 0}else F=null;this.updateValue("seekIcon", F);Z.style.display="inline-block"}else Z.style.display="none"};g.V(j$,kb);g.r=j$.prototype;g.r.qw=function(q){this.BG||(this.BG=new HO(this.B),g.y(this,this.BG));var Z,F;if((Z=this.KB)==null?0:(F=Z.menu)==null?0:F.menuRenderer)this.BG.open(this.KB.menu.menuRenderer,q.target),q.preventDefault()}; g.r.zT=function(){return!!this.D}; g.r.Fg=function(){return!!this.D}; g.r.Ki=function(q){q.target===this.overflowButton.element?q.preventDefault():(this.LB&&this.B.a_("innertubeCommand",this.LB),this.fY(!1))}; g.r.o8=function(){this.fY(!0);var q,Z;((q=this.D)==null?0:(Z=q.bannerData)==null?0:Z.dismissedStatusKey)&&this.j$.push(this.D.bannerData.dismissedStatusKey);this.sB()}; g.r.U3=function(){this.sB();g1(this)}; g.r.Om$=function(q){var Z=this,F;if(q.id!==((F=this.D)==null?void 0:F.identifier)){this.sB();F=g.E(this.Y$);for(var B=F.next();!B.done;B=F.next()){var f=B.value,D=void 0,G=void 0;if((B=(D=f)==null?void 0:(G=D.bannerData)==null?void 0:G.itemData)&&f.identifier===q.id){G=D=void 0;var n=((D=f)==null?void 0:(G=D.bannerData)==null?void 0:G.dismissedStatusKey)||"";if(this.j$.includes(n))return;this.D=f;this.banner.element.setAttribute("aria-label",B.accessibilityLabel||"");B.trackingParams&&(this.G=!0, this.B.setTrackingParams(this.badge.element,B.trackingParams));this.show();this.V.show();tI(this);this.k$.hZ(!B.stayInApp);ThK(this);fb(this);y2(this);this.LB=g.C(B.onTapCommand,qX);if(f=g.C(B.menuOnTap,qX))this.KB=g.C(f,fK5);f=void 0;this.banner.update({thumbnail:(f=(B.thumbnailSources||[])[0])==null?void 0:f.url,title:B.productTitle,price:B.priceReplacementText?B.priceReplacementText:B.price,salesOriginalPrice:y2Z(this),priceDropReferencePrice:HLK(this),promotionText:CRK(this),priceA11yText:S0K(this), affiliateDisclaimer:B.affiliateDisclaimer,vendor:We(this)});n=G=D=f=void 0;((f=B)==null?0:(D=f.hiddenProductOptions)==null?0:D.showDropCountdown)&&((G=B)==null?0:(n=G.hiddenProductOptions)==null?0:n.dropTimestampMs)&&(this.w2=new g.im(function(){UpD(Z)},1E3),this.k$.hide(),this.countdownTimer.show(),UpD(this)); this.B.U("web_player_enable_featured_product_banner_exclusives_on_desktop")&&tCD(this)&&(this.VO=new g.im(function(){Fxg(Z)},1E3),Fxg(this))}}this.B.getRootNode()&&g.e$(this.B.getRootNode(),"ytp-featured-product-shown")}}; g.r.sB=function(){this.D&&(this.D=void 0,this.S5(),this.B.getRootNode()&&g.vc(this.B.getRootNode(),"ytp-featured-product-shown"))}; g.r.onVideoDataChange=function(q,Z){var F=this;q==="dataloaded"&&g1(this);var B,f,D;q=g.C((B=Z.getWatchNextResponse())==null?void 0:(f=B.playerOverlays)==null?void 0:(D=f.playerOverlayRenderer)==null?void 0:D.productsInVideoOverlayRenderer,FzE);this.overflowButton.show();this.dismissButton.hide();var G=q==null?void 0:q.featuredProductsEntityKey;this.trendingOfferEntityKey=q==null?void 0:q.trendingOfferEntityKey;this.Y$.length||(zHK(this,G),y2(this));var n;(n=this.G0)==null||n.call(this);this.G0=g.Pe.subscribe(function(){zHK(F, G);y2(F)})}; g.r.SU=function(){g1(this);ThK(this);fb(this);kb.prototype.SU.call(this)};g.V(bi,g.w);bi.prototype.onClick=function(){this.B.logClick(this.element,this.S);if(this.B.U("embeds_enable_info_panel_dismissal")&&this.D&&this.feedbackToken){var q=this.B.Y6();if(q==null?0:hvX(this.D,q.iM))Z0(q,this.D,{feedbackTokens:[this.feedbackToken]}),this.B.publish("infopaneldetaildismissed")}};g.V(D58,g.$P);g.r=D58.prototype;g.r.show=function(){g.$P.prototype.show.call(this);this.B.publish("infopaneldetailvisibilitychange",!0);this.B.logVisibility(this.element,!0);ca7(this,!0)}; g.r.hide=function(){g.$P.prototype.hide.call(this);this.B.publish("infopaneldetailvisibilitychange",!1);this.B.logVisibility(this.element,!1);ca7(this,!1)}; g.r.getId=function(){return this.S}; g.r.mK=function(){return this.itemData.length}; g.r.onVideoDataChange=function(q,Z){if(Z){var F,B,f,D;this.update({title:((F=Z.zY)==null?void 0:(B=F.title)==null?void 0:B.content)||"",body:((f=Z.zY)==null?void 0:(D=f.bodyText)==null?void 0:D.content)||""});var G;q=((G=Z.zY)==null?void 0:G.trackingParams)||null;this.B.setTrackingParams(this.element,q);G=g.E(this.itemData);for(q=G.next();!q.done;q=G.next())q.value.dispose();this.itemData=[];var n;if((n=Z.zY)==null?0:n.ctaButtons)for(Z=g.E(Z.zY.ctaButtons),n=Z.next();!n.done;n=Z.next())if(n=g.C(n.value, eP5))n=new bi(this.B,n,this.D),n.hP&&(this.itemData.push(n),n.R_(this.items))}}; g.r.SU=function(){this.hide();g.$P.prototype.SU.call(this)};g.V(ArZ,g.w);g.r=ArZ.prototype;g.r.onVideoDataChange=function(q,Z){Ih(this,Z);this.CP&&oo8(this,this.CP)}; g.r.TL=function(q){var Z=this.B.getVideoData();this.videoId!==Z.videoId&&Ih(this,Z);oo8(this,q.state);this.CP=q.state}; g.r.CC=function(q){(this.S=q)?this.hide():this.D&&!this.isDismissed&&this.show()}; g.r.Fz=function(){this.K||this.Ic();this.showControls=!0}; g.r.C4=function(){this.K||this.Uy();this.showControls=!1}; g.r.Ic=function(){if(!this.isDismissed){var q,Z=(q=this.B)==null?void 0:q.getPlayerSize();q=Z.width<380;var F;Z=Z.height<(((F=this.B)==null?0:F.isEmbedsShortsMode())?400:280);var B,f;(((B=this.B)==null?0:B.getPlayerStateObject().isCued())||((f=this.B)==null?0:g.p(f.getPlayerStateObject(),1024)))&&q&&Z||!this.D||this.S||(this.fade.show(),this.B.publish("infopanelpreviewvisibilitychange",!0),this.B.logVisibility(this.element,!0))}}; g.r.Uy=function(){this.D&&!this.S&&(this.fade.hide(),this.B.publish("infopanelpreviewvisibilitychange",!1),this.B.logVisibility(this.element,!1))}; g.r.bmE=function(){this.K=!1;this.showControls||this.Uy()};var zhB={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(zhB).reduce(function(q,Z){q[zhB[Z]]=Z;return q},{}); var nRm={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(nRm).reduce(function(q,Z){q[nRm[Z]]=Z;return q},{}); var bXm={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(bXm).reduce(function(q,Z){q[bXm[Z]]=Z;return q},{});var Ntu,gR0;Ntu=[{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"}];gR0=[{option:0,text:uM(0)},{option:.25,text:uM(.25)},{option:.5,text:uM(.5)},{option:.75,text:uM(.75)},{option:1,text:uM(1)}]; g.$G=[{option:"fontFamily",text:"Familia de fuente",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Informal"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:Ntu},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:uM(.5)},{option:-1,text:uM(.75)},{option:0,text:uM(1)},{option:1, text:uM(1.5)},{option:2,text:uM(2)},{option:3,text:uM(3)},{option:4,text:uM(4)}]},{option:"background",text:"Color de fondo",options:Ntu},{option:"backgroundOpacity",text:"Opacidad de fondo",options:gR0},{option:"windowColor",text:"Color de la ventana",options:Ntu},{option:"windowOpacity",text:"Opacidad de la ventana",options:gR0},{option:"charEdgeStyle",text:"Estilo de borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"En relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de fuente",options:[{option:.25,text:uM(.25)},{option:.5,text:uM(.5)},{option:.75,text:uM(.75)},{option:1,text:uM(1)}]}];var S_5=[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.V(WB,g.pO);g.r=WB.prototype; g.r.Lj=function(q){q.repeat||(this.S.Gk=!1);var Z=!1,F=q.keyCode,B=vV(q),f=!q.altKey&&!q.ctrlKey&&!q.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||S_5.includes(F)),D=!1,G=!1,n=this.api.C();q.defaultPrevented?(f=!1,G=!0):n.QC&&!this.api.isMutedByEmbedsMutedAutoplay()&&(f=!1);if(F===9)Z=!0;else{if(B)switch(F){case 32:case 13:if(B.tagName==="BUTTON"||B.tagName==="A"||B.tagName==="INPUT")Z=!0,f=!1;else if(f){var b=B.getAttribute("role");!b||b!=="option"&&b!=="button"&&b.indexOf("menuitem")!==0|| (Z=!0,B.click(),D=!0)}break;case 37:case 39:case 36:case 35:Z=B.getAttribute("role")==="slider";break;case 38:case 40:b=B.getAttribute("role"),B=F===38?B.previousSibling:B.nextSibling,b==="slider"?Z=!0:f&&(b==="option"?(B&&B.getAttribute("role")==="option"&&B.focus(),D=Z=!0):b&&b.indexOf("menuitem")===0&&(B&&B.hasAttribute("role")&&B.getAttribute("role").indexOf("menuitem")===0&&B.focus(),D=Z=!0))}if(f&&!D)switch(F){case 38:D=Math.min(this.api.getVolume()+5,100);wi(this.gh,D,!1);this.api.setVolume(D); G=D=!0;break;case 40:D=Math.max(this.api.getVolume()-5,0);wi(this.gh,D,!0);this.api.setVolume(D);G=D=!0;break;case 36:this.api.v1()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),G=D=!0);break;case 35:this.api.v1()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),G=D=!0)}}Z&&w9(this,!0);(Z||G)&&this.Fo.sS();(D||f&&this.handleGlobalKeyDown(F,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code,q.repeat))&&q.preventDefault();n.V&&(q={keyCode:q.keyCode, altKey:q.altKey,ctrlKey:q.ctrlKey,metaKey:q.metaKey,shiftKey:q.shiftKey,handled:q.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.NE("onKeyPress",q))}; g.r.aQ=function(q){var Z=q.keyCode;!this.S.vW&&this.handleGlobalKeyUp(Z,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code)&&q.preventDefault()}; g.r.handleGlobalKeyUp=function(q,Z,F,B,f,D,G){this.api.publish("keyboardserviceglobalkeyup",{keyCode:q,shiftKey:Z,ctrlKey:F,altKey:B,metaKey:f,key:D,code:G});Z=!1;if(this.S.Gk)return Z;(D=g.rl(this.api.pB()))&&(D=D.b5)&&D.zb&&(D.VH(q),Z=!0);switch(q){case 9:w9(this,!0);Z=!0;break;case 32:if(this.api.U("web_speedmaster_spacebar_control")&&!this.api.C().QC){var n,b;q=(n=this.progressBar)==null?void 0:(b=n.K)==null?void 0:b.isEnabled;Z=this.Id(q)}break;case 39:(this.api.U("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(f||F&&B))&&(D5?B:F)&&this.api.v1()&&this.api.U("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),n=(n=this.api.getVideoData())?n.nE:[],b=$E7(n,this.api.getCurrentTime()*1E3),b!==-1&&this.D!=null&&(this.D.PD(1,n[b].title),this.api.seekTo(n[b].startTime/1E3,void 0,void 0,void 0,52),Z=!0))}return Z}; g.r.handleGlobalKeyDown=function(q,Z,F,B,f,D,G,n){n||(this.S.Gk=!1);var b=!1,N=this.api.C();if(N.QC&&!this.api.isMutedByEmbedsMutedAutoplay())return b;var S=g.rl(this.api.pB());if(S&&(S=S.b5)&&S.zb)switch(q){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:b=S.xQ(q)}N.j||b||(b=D||String.fromCharCode(q).toLowerCase(),this.K+=b,"awesome".indexOf(this.K)===0||this.api.U("web_player_rtr_ctrls")&&"bday".indexOf(this.K)===0?(b=!0,4===this.K.length&&this.K==="bday"&&this.api.U("web_player_rtr_ctrls")&& (Cb7(this.Z),this.Fo.sS()),7===this.K.length&&this.K==="awesome"&&H7m(this.api.getRootNode(),"ytp-color-party")):(this.K=b,b="awesome".indexOf(this.K)===0||"bday".indexOf(this.K)===0));if(!b&&(!this.api.isMutedByEmbedsMutedAutoplay()||S_5.includes(q))){var l=this.api.getVideoData(),U,u;S=(U=this.progressBar)==null?void 0:(u=U.K)==null?void 0:u.isEnabled;U=l?l.nE:[];u=D5?B:F;switch(q){case 80:Z&&!N.WG&&(WT(this.gh,lN8(),"Anterior"),this.api.previousVideo(),b=!0);break;case 78:Z&&!N.WG&&(WT(this.gh, Azb(),"Siguiente"),this.api.nextVideo(),b=!0);break;case 74:this.api.v1()&&(this.api.startSeekCsiAction(),this.D?this.api.U("enable_key_press_seek_logging")?(b=T9(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.D.oz(-1,10,b)):this.D.oz(-1,10):WT(this.gh,{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{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),b=!0);break;case 76:this.api.v1()&&(this.api.startSeekCsiAction(),this.D?this.api.U("enable_key_press_seek_logging")?(b=T9(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.D.oz(1,10,b)):this.D.oz(1,10):WT(this.gh,{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{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),b=!0);break;case 37:if(this.api.v1())if(this.api.startSeekCsiAction(),u){if(this.api.U("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(f||F&&B))u=myu(U,this.api.getCurrentTime()*1E3),u!==-1&&this.D!=null&&(this.D.PD(-1,U[u].title),this.api.seekTo(U[u].startTime/1E3,void 0,void 0,void 0,53),b=!0)}else this.D?this.api.U("enable_key_press_seek_logging")?(b=T9(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.D.oz(-1,5,b)):this.D.oz(-1,5):WT(this.gh,{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{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),b=!0;break;case 39:this.api.v1()&&(this.api.startSeekCsiAction(),u?this.api.U("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.U("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(f||F&&B)||(u=$E7(U,this.api.getCurrentTime()*1E3),u!==-1&&this.D!=null&&(this.D.PD(1,U[u].title),this.api.seekTo(U[u].startTime/1E3,void 0,void 0,void 0,52),b=!0)):(this.D!=null?this.api.U("enable_key_press_seek_logging")?(b=T9(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.D.oz(1,5,b)):this.D.oz(1,5):WT(this.gh,{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{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),b=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),wi(this.gh,this.api.getVolume(),!1)):(this.api.mute(),wi(this.gh,0,!0));b=!0;break;case 32:b=this.api.U("web_speedmaster_spacebar_control")?!this.api.C().WG:this.Id(S);break;case 75:b=this.Id(S);break;case 190:Z?N.enableSpeedOptions&&SL9(this)&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b+.25,!0),Nkb(this.gh,!1),b=!0):this.api.v1()&&(this.step(1),b=!0);break;case 188:Z? N.enableSpeedOptions&&SL9(this)&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b-.25,!0),Nkb(this.gh,!0),b=!0):this.api.v1()&&(this.step(-1),b=!0);break;case 70:NDb(this.api)&&(this.api.toggleFullscreen().catch(function(){}),b=!0); break;case 27:S?(this.progressBar.xZ(),b=!0):this.j()&&(b=!0)}if(N.controlsType!=="3")switch(q){case 67:g.MT(this.api.pB())&&(N=this.api.getOption("captions","track"),this.api.toggleSubtitles(),DgG(this.gh,!N||N&&!N.displayName),b=!0);break;case 79:XI(this,"textOpacity");break;case 87:XI(this,"windowOpacity");break;case 187:case 61:XI(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:XI(this,"fontSizeIncrement",!0,!0)}var P;Z||F||B||(q>=48&&q<=57?P=q-48:q>=96&&q<=105&&(P=q-96));P!=null&&this.api.v1()&& !this.api.U("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),N=this.api.getProgressState(),this.api.seekTo(P/10*(N.seekableEnd-N.seekableStart)+N.seekableStart,void 0,void 0,void 0,81),b=!0);b&&this.Fo.sS()}this.S.QI=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:q,shiftKey:Z,ctrlKey:F,altKey:B,metaKey:f,key:D,code:G,repeat:n},this.S);this.S.QI&&(b=!0,this.Fo.sS());return b}; g.r.step=function(q){this.api.v1();if(this.api.getPlayerStateObject().isPaused()){var Z=this.api.getVideoData().K;Z&&(Z=Z.video)&&this.api.seekBy(q/(Z.fps||30),void 0,void 0,q>0?77:78)}}; g.r.Id=function(q){if(!this.api.C().WG){var Z;var F,B=(Z=this.api.getVideoData())==null?void 0:(F=Z.getPlayerResponse())==null?void 0:F.playabilityStatus;if(B){var f;Z=((f=g.C(B.miniplayer,g9B))==null?void 0:f.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else Z=!1;Z&&this.api.a_("onExpandMiniplayer");q?this.progressBar.YN():(q=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.gh.NT(q),q?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.r.SU=function(){g.HP(this.G);g.pO.prototype.SU.call(this)};g.V($f,g.w);$f.prototype.ys=function(){var q=this.B.C(),Z=q.S||this.B.U("web_player_hide_overflow_button_if_empty_menu")&&this.N8.isEmpty();q=g.FQ(q)&&g.SH(this.B)&&g.p(this.B.getPlayerStateObject(),128);var F=this.B.getPlayerSize();this.visible=this.B.J8()&&!q&&F.width>=240&&!this.B.getVideoData().z3&&!Z&&!this.B.isEmbedsShortsMode();g.hK(this.element,"ytp-overflow-button-visible",this.visible);this.hZ(this.visible);this.visible&&this.B.Q$();this.B.logVisibility(this.element,this.visible&&this.PG)}; $f.prototype.DJ=function(q){g.w.prototype.DJ.call(this,q);this.B.logVisibility(this.element,this.visible&&q)}; $f.prototype.SU=function(){g.w.prototype.SU.call(this);g.vc(this.element,"ytp-overflow-button-visible")};g.V(ht,g.$P);g.r=ht.prototype;g.r.ER=function(q){q=vV(q);g.yT(this.element,q)&&(g.yT(this.D,q)||g.yT(this.closeButton,q)||l6(this))}; g.r.Uy=function(){g.$P.prototype.Uy.call(this);this.B.S7(this.element)}; g.r.show=function(){this.zb&&this.B.publish("OVERFLOW_PANEL_OPENED");g.$P.prototype.show.call(this);this.element.setAttribute("aria-modal","true");k7X(this,!0)}; g.r.hide=function(){g.$P.prototype.hide.call(this);this.element.removeAttribute("aria-modal");k7X(this,!1)}; g.r.onFullscreenToggled=function(q){!q&&this.fz()&&l6(this)}; g.r.isEmpty=function(){return this.actionButtons.length===0}; g.r.focus=function(){for(var q=g.E(this.actionButtons),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.zb){Z.focus();break}};g.V(KQB,g.w);KQB.prototype.onClick=function(q){g.lD(q,this.api)&&this.api.playVideoAt(this.index)};g.V(Jk,g.$P);g.r=Jk.prototype;g.r.show=function(){g.$P.prototype.show.call(this);this.D.N(this.api,"videodatachange",this.df);this.D.N(this.api,"onPlaylistUpdate",this.df);this.df()}; g.r.hide=function(){g.$P.prototype.hide.call(this);g.DJ(this.D);this.updatePlaylist(null)}; g.r.df=function(){this.updatePlaylist(this.api.getPlaylist());this.api.C().S&&(this.cG("ytp-playlist-menu-title-name").removeAttribute("href"),this.K&&(this.Op(this.K),this.K=null))}; g.r.Uj=function(){var q=this.playlist,Z=q.author,F=Z?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",B={CURRENT_POSITION:String(q.index+1),PLAYLIST_LENGTH:String(q.length)};Z&&(B.AUTHOR=Z);this.update({title:q.title,subtitle:g.wz(F,B),playlisturl:this.api.getVideoUrl(!0)});Z=q.K;if(Z===this.S)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[q.index];else{F=g.E(this.playlistData);for(B=F.next();!B.done;B=F.next())B.value.dispose(); F=q.length;this.playlistData=[];for(B=0;B=this.K&&!q.S&&!Z.isAd()&&!this.api.isEmbedsShortsMode()}else q=!1;this.visible=q;this.hZ(this.visible);g.hK(this.element,"ytp-search-button-visible",this.visible);g.hK(this.element,"ytp-show-search-title",!this.api.J8());this.api.logVisibility(this.element,this.visible&&this.PG)}; Rq.prototype.DJ=function(q){g.w.prototype.DJ.call(this,q);this.api.logVisibility(this.element,this.visible&&q)};g.V(KE,g.w); KE.prototype.trigger=function(q,Z,F,B){this.show();if(this.K&&q!==this.K){var f=1;this.S&&(f=Xj8(this));gAy(this,f,!1);WtX(this)}this.K=q;this.G=this.K===-1?this.X:this.V;q="";Z?(this.K===-1&&this.B.getCurrentTime()<=Z?this.Z=Z:this.Z+=Z,q=(this.K===-1?"\u2212":"+")+" "+this.Z):this.Z=0;this.updateValue(this.K===-1?"durationBack":"durationForward",q);if(this.D==="hidden"||this.D==="fading-out")Z=0,this.D==="fading-out"&&(Z=Xj8(this),dzK(this)),WaK(this,Z),this.D!=="fading-out"&&cnB(this,this.G.querySelector(".ytp-seek-overlay-arrow-persistent")), this.D="fading-in";else if(this.D==="fading-in"||this.D==="lingering")Z=this.G.querySelector(".ytp-seek-overlay-duration"),q=g.Ce(this.B.C().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,Z.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+q+")"},{offset:1,transform:"scale(1)"}],{duration:184}),dzK(this),this.D==="lingering"&&(this.j.stop(),this.j.start());F&&RRX(this, F,B)}; KE.prototype.NV=function(q,Z,F,B){this.trigger(q,B)}; KE.prototype.oz=function(q,Z,F){this.trigger(q,Z);F&&(q=q===-1?this.V.visualElement:this.X.visualElement,F={seekData:F},(Z=g.qx())&&HL(Z,q,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",F))}; KE.prototype.PD=function(q,Z,F){this.trigger(q,void 0,Z,F)};g.V(fV,g.w);fV.prototype.onClick=function(){var q=this,Z=this.api.C(),F=this.api.getVideoData(this.api.getPresentingPlayerType()),B=this.api.getPlaylistId();Z=this.api.U("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):Z.getVideoUrl(F.videoId,B,void 0,!0);if(navigator.share)try{var f=navigator.share({title:F.title,url:Z});f instanceof Promise&&f.catch(function(D){hO7(q,D)})}catch(D){D instanceof Error&&hO7(this,D)}else this.D.jM(),l6(this.K,this.element,!1); this.api.logClick(this.element)}; fV.prototype.ys=function(){var q=this.api.C(),Z=this.api.isEmbedsShortsMode();g.hK(this.element,"ytp-show-share-title",g.FQ(q)&&!Z);this.D.rY()&&Z?(q=(this.api.Ca().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.u$(this.element,"right",q+"px")):Z&&g.u$(this.element,"right","0px");this.updateValue("icon",{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{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=K6(this);g.hK(this.element,"ytp-share-button-visible",this.visible);this.hZ(this.visible);this.tooltip.Q$();this.api.logVisibility(this.element,K6(this)&&this.PG)}; fV.prototype.DJ=function(q){g.w.prototype.DJ.call(this,q);this.api.logVisibility(this.element,this.visible&&q)}; fV.prototype.SU=function(){g.w.prototype.SU.call(this);g.vc(this.element,"ytp-share-button-visible")};g.V(t4,g.$P);g.r=t4.prototype;g.r.MC=function(q){q=vV(q);g.yT(this.G,q)||g.yT(this.closeButton,q)||l6(this)}; g.r.Uy=function(){g.$P.prototype.Uy.call(this);this.tooltip.S7(this.element);this.api.logVisibility(this.D,!1);for(var q=g.E(this.K),Z=q.next();!Z.done;Z=q.next())Z=Z.value,this.api.hasVe(Z.element)&&this.api.logVisibility(Z.element,!1)}; g.r.show=function(){var q=this.zb;g.$P.prototype.show.call(this);this.ys();q||this.api.a_("onSharePanelOpened")}; g.r.Oaa=function(){this.zb&&this.ys()}; g.r.ys=function(){var q=this;g.e$(this.element,"ytp-share-panel-loading");g.vc(this.element,"ytp-share-panel-fail");var Z=this.api.getVideoData(),F=this.api.getPlaylistId()&&this.S.checked;Z.getSharePanelCommand&&Z0(this.api.Y6(),Z.getSharePanelCommand,{includeListId:F}).then(function(B){q.jU()||(g.vc(q.element,"ytp-share-panel-loading"),Rk5(q,B))}); Z=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",Z);this.updateValue("linkText",Z);this.updateValue("shareLinkWithUrl",g.wz("Compartir v\u00ednculo $URL",{URL:Z}));lQ(this.D);this.api.logVisibility(this.D,!0)}; g.r.onFullscreenToggled=function(q){!q&&this.fz()&&l6(this)}; g.r.focus=function(){this.D.focus()}; g.r.SU=function(){g.$P.prototype.SU.call(this);CjB(this)};g.V(Ihb,kb);g.r=Ihb.prototype;g.r.SU=function(){cW(this);kb.prototype.SU.call(this)}; g.r.Ki=function(q){q.target!==this.dismissButton.element&&(this.fY(!1),this.B.a_("innertubeCommand",this.onClickCommand))}; g.r.o8=function(){this.o_=!0;this.fY(!0);this.S5()}; g.r.Pk_=function(q){this.j=q;this.S5()}; g.r.onVideoDataChange=function(q,Z){if(q=!!Z.videoId&&this.videoId!==Z.videoId)this.videoId=Z.videoId,this.o_=!1,this.zP=!0,this.X=this.uL=!1,cW(this),aGg(this,!1),this.K=this.D=!1,Ky(this),V9K(this);if(q||!Z.videoId)this.Dl=this.G=!1;var F,B;if(Z==null?0:(F=Z.getPlayerResponse())==null?0:(B=F.videoDetails)==null?0:B.isLiveContent)this.Lw(!1);else{var f,D,G;Z=g.C((f=Z.getWatchNextResponse())==null?void 0:(D=f.playerOverlays)==null?void 0:(G=D.playerOverlayRenderer)==null?void 0:G.productsInVideoOverlayRenderer, FzE);this.j=this.enabled=!1;if(Z){if(f=Z==null?void 0:Z.featuredProductsEntityKey){D=g.Pe.getState().entities;var n;if((n=r5(D,"featuredProductsEntity",f))==null?0:n.productsData){this.Lw(!1);return}}if(!Z.text||!Z.onClickCommand||!Z.timing){this.Lw(!1);return}this.enabled=!0;if(!this.G){var b;n=(b=Z.badgeInteractionLogging)==null?void 0:b.trackingParams;(this.G=!!n)&&this.B.setTrackingParams(this.badge.element,n||null)}if(!this.Dl){var N;if(this.Dl=!((N=Z.dismissButton)==null||!N.trackingParams)){var S; this.B.setTrackingParams(this.dismissButton.element,((S=Z.dismissButton)==null?void 0:S.trackingParams)||null)}}Z.isContentForward&&(b=Z.productsData,aGg(this,!0),V9K(this),b=Omt(this,b),N=[],b.length>0&&N.push(b[0]),b.length>1&&(S=new g.w({Y:"div",W:"ytp-suggested-action-more-products-icon"}),g.y(this,S),N.push(S),N.push.apply(N,g.YB(b.slice(1)))),this.Z=new g.w({Y:"div",T:N,W:"ytp-suggested-action-content-forward-container"}),g.y(this,this.Z),this.dU.element.append(this.Z.element));this.text=g.HD(Z.text); var l;if(b=(l=Z.dismissButton)==null?void 0:l.a11yLabel)this.HG=g.HD(b);this.onClickCommand=Z.onClickCommand;this.timing=Z.timing;this.sZ()}VDk(this);tI(this);this.S5()}}; g.r.zT=function(){return!this.j&&this.enabled&&!this.o_&&!this.B.J8()&&!this.Gb&&(this.X||this.zP)}; g.r.kh=function(q){kb.prototype.kh.call(this,q);if(this.D||this.K)this.timing&&hO(this.timing.preview)&&(this.D=!1,Ky(this),this.K=!1,Ky(this),this.B.WZ("shopping_overlay_preview_collapsed"),this.B.WZ("shopping_overlay_preview_expanded"),q=FV(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),hO(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.B.WZ("shopping_overlay_expanded"),q.end=this.timing.expanded.endSec*1E3),this.B.sZ([q])), this.uL=!0,tI(this);Ky(this)}; g.r.Lw=function(q){(this.X=q)?(I_(this),tI(this,!1)):(cW(this),this.WG.start());this.S5()}; g.r.sZ=function(q){var Z=this.timing;q=(q===void 0?0:q)+this.B.getCurrentTime();var F=[],B=Z.visible,f=Z.preview;Z=Z.expanded;hO(B)&&(Lm(B,q),F.push(FV(B.startSec,B.endSec,"shopping_overlay_visible")));hO(f)&&(Lm(f,q),B=f.startSec+1,F.push(FV(f.startSec,B,"shopping_overlay_preview_collapsed")),F.push(FV(B,f.endSec,"shopping_overlay_preview_expanded")));hO(Z)&&(Lm(Z,q),F.push(FV(Z.startSec,Z.endSec,"shopping_overlay_expanded")));this.B.sZ(F)}; g.r.S5=function(){kb.prototype.S5.call(this);this.B.getRootNode()&&g.hK(this.B.getRootNode(),"ytp-shopping-pill-shown",this.zT())};g.V(Cn,g.w); Cn.prototype.ys=function(){var q=this.api.C();this.hZ(g.FQ(q)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.zb);var Z=this.api.getVideoData(),F=!1;this.api.getPresentingPlayerType()===2?F=!!Z.videoId&&!!Z.isListed&&!!Z.author&&!!Z.Jn&&!!Z.profilePicture:g.FQ(q)&&(F=!!Z.videoId&&!!Z.Jn&&!!Z.profilePicture&&!Z.z3&&!q.S&&!(q.X&&this.api.getPlayerSize().width<200));var B=Z.profilePicture;q=g.FQ(q)?Z.expandedTitle:Z.author;B=B===void 0?"": B;q=q===void 0?"":q;F?(this.K!==B&&(this.D.style.backgroundImage="url("+B+")",this.K=B),this.updateValue("channelLogoLabel",g.wz("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:q})),g.e$(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.vc(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.D,F&&this.PG);this.api.logVisibility(this.channelName,F&&this.PG);this.subscribeButton&&(this.subscribeButton.channelId=Z.Fr);this.updateValue("expandedTitle",Z.expandedTitle)};g.V(sl,g.$P);sl.prototype.show=function(){g.$P.prototype.show.call(this);this.D.start()}; sl.prototype.hide=function(){g.$P.prototype.hide.call(this);this.D.stop()}; sl.prototype.NB=function(q,Z){q==="dataloaded"&&((this.cH=Z.cH,this.OP=Z.OP,isNaN(this.cH)||isNaN(this.OP))?this.K&&(this.B.WZ("intro"),this.B.removeEventListener(g.UK("intro"),this.X),this.B.removeEventListener(g.s2("intro"),this.G),this.B.removeEventListener("onShowControls",this.S),this.hide(),this.K=!1):(this.B.addEventListener(g.UK("intro"),this.X),this.B.addEventListener(g.s2("intro"),this.G),this.B.addEventListener("onShowControls",this.S),q=new g.u8(this.cH,this.OP,{priority:9,namespace:"intro"}), this.B.sZ([q]),this.K=!0))};g.V(OI,g.w);OI.prototype.onClick=function(){this.B.i_()}; OI.prototype.ys=function(){var q=!0;g.FQ(this.B.C())&&(q=q&&this.B.Ca().getPlayerSize().width>=480);this.hZ(q);q=this.updateValue;var Z=this.B.U("delhi_modern_web_player_icons"),F=Z?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,L:{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"}}]};Z=Z?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{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"}}]};q.call(this,"icon",this.B.Z6()?F:Z)};g.V(q5g,g.w);q5g.prototype.SU=function(){this.D=null;g.w.prototype.SU.call(this)};g.V(x9,g.w);x9.prototype.onClick=function(){this.B.a_("innertubeCommand",this.K)}; x9.prototype.V=function(){if(this.B.U("delhi_modern_web_player")){var q=this.B.getPlayerSize();q.width&&(this.element.style.maxWidth=q.width*.25+"px")}}; x9.prototype.uL=function(q){q!==this.j&&(this.update({chapterTitle:q,ariaLabel:q}),this.j=q);q?this.show():this.hide()}; x9.prototype.Dl=function(){this.D.disabled=this.K==null;g.hK(this.D,"ytp-chapter-container-disabled",this.D.disabled);this.y5()};g.V(Yr,x9);Yr.prototype.onClickCommand=function(q){g.C(q,ho)&&this.y5()}; Yr.prototype.updateVideoData=function(q,Z){var F,B,f;q=g.C((F=Z.getWatchNextResponse())==null?void 0:(B=F.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,XB);F=g.C(q==null?void 0:q.playerBarActionButton,g.jQ);if(this.B.U("web_player_updated_entrypoint")){this.X=j0(F==null?void 0:F.text);var D;B=(D=F==null?void 0:F.tooltip)!=null?D:"Ver cap\u00edtulo";this.Z.setAttribute("title",B)}this.K=F==null?void 0:F.command;x9.prototype.Dl.call(this)}; Yr.prototype.y5=function(){var q=this.X,Z=this.G.D,F,B=((F=this.B.getLoopRange())==null?void 0:F.type)==="clips";if(Z.length>1&&!B){q=this.B.getProgressState().current*1E3;F=tq(Z,q);q=Z[F].title||"Cap\u00edtulos";if(F!==this.currentIndex||this.S)this.B.a_("innertubeCommand",Z[F].onActiveCommand),this.currentIndex=F;this.S=!1}else this.S=!0;x9.prototype.uL.call(this,q)};g.V(AO,g.xT);AO.prototype.K=function(){var q;(q=this.element.parentElement)==null||q.classList.contains("ytp-right-controls-left");(this.D=!this.D)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; AO.prototype.isExpanded=function(){return this.D};g.V(fz,g.w);fz.prototype.S=function(q){g.p(q.state,32)?ZUX(this,this.api.RV()):this.zb&&(g.p(q.state,16)||g.p(q.state,1))||this.fade.hide()}; fz.prototype.onProgress=function(){var q=this.api.getPlayerStateObject();(g.p(q,32)||g.p(q,16))&&xf(this)}; fz.prototype.G=function(){this.frameIndex=NaN;xf(this)}; fz.prototype.hide=function(){this.D&&ZUX(this,null);g.w.prototype.hide.call(this)};g.V(aZ8,g.w);g.r=aZ8.prototype;g.r.onClick=function(){var q=this;if(this.B.C().Jn||this.B.C().X){this.B.logClick(this.element);try{this.B.toggleFullscreen().catch(function(Z){q.Pi(Z)})}catch(Z){this.Pi(Z)}}else l6(this.message,this.element,!0)}; g.r.Pi=function(q){String(q).includes("fullscreen error")?g.bh(q):g.mM(q);this.T5()}; g.r.T5=function(){this.disable();this.message.Ic(this.element,!0)}; g.r.EN=function(){fk()===this.B.getRootNode()?this.S.start():(this.S.stop(),this.message&&this.message.hide())}; g.r.uY=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var q=window.screen.width*.9,Z=window.screen.height*.9,F=Math.max(window.outerWidth,window.innerWidth),B=Math.max(window.outerHeight,window.innerHeight);if(F>B!==q>Z){var f=F;F=B;B=f}q>F&&Z>B&&this.T5()}}; g.r.disable=function(){var q=this;if(!this.message){var Z=(Dv(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La opci\u00f3n de pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la opci\u00f3n de pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.$P(this.B,{Y:"div",rU:["ytp-popup","ytp-generic-popup"], L:{role:"alert",tabindex:"0"},T:[Z[0],{Y:"a",L:{href:"https://support.google.com/youtube/answer/6276924",target:this.B.C().PG},Ka:Z[2]},Z[4]]},100,!0);this.message.hide();g.y(this,this.message);this.message.subscribe("show",function(F){q.K.kq(q.message,F)}); g.C5(this.B,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.D)();this.D=null}}; g.r.ys=function(){var q=NDb(this.B),Z=this.B.C().X&&this.B.getPlayerSize().width<250;this.hZ(q&&!Z);this.B.logVisibility(this.element,this.zb)}; g.r.LR=function(q){if(q){var Z=g.UP(this.B,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.B.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(F){g.bh(F)})}else Z=g.UP(this.B,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); q=guG(this,q);Z=this.message?null:Z;this.B.C().U("player_tooltip_data_title_killswitch")?this.update({title:Z,icon:q}):this.update({"tooltip-title":Z,"aria-label":Z,icon:q});this.K.Iy().Q$()}; g.r.SU=function(){this.message||((0,this.D)(),this.D=null);g.w.prototype.SU.call(this)}; g.r.DJ=function(q){g.w.prototype.DJ.call(this,q)};g.V(ye,g.w);ye.prototype.onClick=function(){this.B.logClick(this.element);this.B.seekBy(this.D,!0);var q=this.D>0?1:-1,Z=Math.abs(this.D),F=this.B.o6().UH;F&&F.oz(q,Z);this.K.isActive()?this.S=!0:(q=["ytp-jump-spin"],this.D<0&&q.push("backwards"),this.element.classList.add.apply(this.element.classList,g.YB(q)),g.$t(this.K))};g.V(oR,x9);oR.prototype.onClickCommand=function(q){g.C(q,q6m)&&this.y5()}; oR.prototype.updateVideoData=function(){var q,Z;this.K=(q=aAK(this))==null?void 0:(Z=q.onTap)==null?void 0:Z.innertubeCommand;x9.prototype.Dl.call(this)}; oR.prototype.y5=function(){var q="",Z=this.G.X,F,B=(F=aAK(this))==null?void 0:F.headerTitle;F=B?g.HD(B):"";var f;B=((f=this.B.getLoopRange())==null?void 0:f.type)==="clips";Z.length>1&&!B&&(q=this.B.getProgressState().current*1E3,f=nA8(Z,q),q=f!=null?Z[f].title:F,f!=null&&f!==this.currentIndex&&(this.B.a_("innertubeCommand",Z[f].onActiveCommand),this.currentIndex=f));x9.prototype.uL.call(this,q)};g.V(bL,g.w);bL.prototype.onClick=function(){this.B.a_("onCollapseMiniplayer");this.B.logClick(this.element)}; bL.prototype.ys=function(){this.visible=!this.B.isFullscreen();this.hZ(this.visible);this.B.logVisibility(this.element,this.visible&&this.PG)}; bL.prototype.DJ=function(q){g.w.prototype.DJ.call(this,q);this.B.logVisibility(this.element,this.visible&&q)};g.V(Q1,g.w);Q1.prototype.init=function(){this.update({minvalue:this.S,maxvalue:this.Z,stepvalue:this.X,slidervalue:this.D,ariaValueNow:this.D,ariaMinValue:this.S,ariaMaxValue:this.Z});VR9(this,this.D)}; Q1.prototype.G=function(){Az(this,Number(this.K.value));this.K.focus()}; Q1.prototype.j=function(q){if(!q.defaultPrevented){switch(q.code){case "ArrowDown":q=-this.X;break;case "ArrowUp":q=this.X;break;default:return}Az(this,Math.min(this.Z,Math.max(Number((this.D+q).toFixed(2)),this.S)))}};g.V(qv,Q1);qv.prototype.onVolumeChange=function(q){if(this.V)this.V=!1;else{var Z=q.volume;Z===0||q.muted?Az(this,0):Az(this,Z)}}; qv.prototype.G=function(){Q1.prototype.G.call(this);this.Dl(this.D)}; qv.prototype.uL=function(q){var Z=-q.deltaY;Z=q.deltaMode===WheelEvent.DOM_DELTA_LINE||q.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.JY(this.D+Z,0,100):g.JY(this.D+g.JY(Z/10,-10,10),0,100);Z===0?Az(this,0):Az(this,Z);this.Dl(Z);q.preventDefault();q.stopPropagation()}; qv.prototype.zP=function(q,Z){this.V=!0;q===0||Z?this.B.mute():(this.B.isMuted()&&this.B.unMute(),this.B.setVolume(q))};g.V(zjg,g.w);g.V(Wk,g.w);g.r=Wk.prototype;g.r.My=function(){if(!this.B.lI()){this.updateValue("dataTooltipOffsetY",-120);var q;(q=this.D)!=null&&W2(q,!0);var Z;(Z=this.D)!=null&&Z.D.stop()}}; g.r.Db=function(){var q;(q=this.D)!=null&&q.D.start()}; g.r.PU=function(q){this.visible=q.width>=300||this.BG;this.hZ(this.visible);this.B.logVisibility(this.element,this.visible&&this.PG)}; g.r.GM=function(){this.B.C().dU?this.B.isMuted()?this.B.unMute():this.B.mute():l6(this.message,this.element,!0);this.B.logClick(this.element)}; g.r.z0p=function(q){if(this.B.C().dU&&this.D)if(q.target===this.S){var Z;if(!this.B.lI()||((Z=this.D)==null?0:Z.isVisible))this.GM();else{var F;(F=this.D)!=null&&W2(F,!0)}}else{var B;(B=this.D)!=null&&W2(B,!0)}else this.GM()}; g.r.onVolumeChange=function(q){this.setVolume(q.volume,q.muted)}; g.r.setVolume=function(q,Z){var F=this,B=Z?0:q/100;q=B===0?1:q>50?1:0;if(this.V!==q){var f=this.X;isNaN(f)?nXG(this,q):okB(this.dU,function(G){nXG(F,f+(F.V-f)*G)},250); this.V=q}B=B===0?1:0;if(this.j!==B){var D=this.zP;isNaN(D)?v_g(this,B):okB(this.Y$,function(G){v_g(F,D+(F.j-D)*G)},250); this.j=B}Z69(this,Z)}; g.r.DJ=function(q){g.w.prototype.DJ.call(this,q);this.B.logVisibility(this.element,this.visible&&q)}; var GBZ=["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"],zVy=["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.V(g.xn,g.w);g.r=g.xn.prototype;g.r.onStateChange=function(q){this.xS(q.state)}; g.r.xS=function(q){var Z=g.z_(this.B.getVideoData()),F=!1;q.isOrWillBePlaying()?q=Z?4:2:g.p(q,2)?(q=3,F=Z):q=1;this.element.disabled=F;if(this.D!==q){Z=null;switch(q){case 2:Z=g.UP(this.B,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:Z="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:Z=g.UP(this.B,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:Z="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}q=== 3?this.B.C().U("player_tooltip_data_title_killswitch")?this.update({title:Z,icon:BM(this,q)}):this.update({"tooltip-title":Z,icon:BM(this,q)}):(this.B.U("player_tooltip_data_title_killswitch")?this.update({title:Z}):this.update({"tooltip-title":Z}),(Z=BM(this,q))&&this.D&&this.D!==3?qm9(this.transition,this.element,Z):this.updateValue("icon",Z));this.tooltip.Q$();this.D=q}}; g.r.onVideoDataChange=function(){g.hK(this.element,"ytp-play-button-playlist",g.SH(this.B))}; g.r.Id=function(q){this.B.logClick(this.element);if(this.B.getPlayerStateObject().isOrWillBePlaying())this.B.pauseVideo();else{if(this.B.isMinimized()&&this.B.getPlayerStateObject().isCued()){var Z={},F;if((F=this.B.getVideoData())==null?0:F.j)Z.cttAuthInfo={token:this.B.getVideoData().j,videoId:this.B.getVideoData().videoId};BX("direct_playback",Z);this.B.QT().timerName="direct_playback"}this.B.playVideo()}this.B.isMinimized()&&(q==null?void 0:q.type)==="click"&&this.element.blur()}; g.r.DJ=function(q){g.w.prototype.DJ.call(this,q)};g.V(g.Qf,g.w);g.r=g.Qf.prototype;g.r.onVideoDataChange=function(){lzZ(this);this.G&&(this.Op(this.G),this.G=null);this.videoData=this.B.getVideoData(1);if(this.playlist=this.B.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.G=this.N(this.B,"progresssync",this.TN);this.S=X4D(this);wp(this);this.h4(this.B.Ca().getPlayerSize())}; g.r.h4=function(q){q=q===void 0?this.B.Ca().getPlayerSize():q;var Z,F=((Z=this.B.getLoopRange())==null?void 0:Z.type)==="clips";Z=g.SH(this.B)||this.D&&g.lw(this.B)&&!this.B.U("web_hide_next_button")||Odg(this);var B=!this.D&&q.width<400;q=this.B.U("delhi_modern_web_player_horizontal_volume_controls")&&q.width<640;F=Z&&!F&&!B&&!q;this.hZ(F);this.B.logVisibility(this.element,F)}; g.r.onClick=function(q){this.B.logClick(this.element);var Z=!0;this.j?Z=g.lD(q,this.B):q.preventDefault();Z&&(this.D&&this.B.getPresentingPlayerType()===5?this.B.publish("ytoprerollinternstitialnext"):this.D?(L0(this.B.QT()),this.B.publish("playlistnextbuttonclicked",this.element),this.B.nextVideo(!0)):this.S?this.B.seekTo(0):(L0(this.B.QT()),this.B.publish("playlistprevbuttonclicked",this.element),this.B.previousVideo(!0)))}; g.r.TN=function(){var q=X4D(this);q!==this.S&&(this.S=q,wp(this))}; g.r.SU=function(){this.K&&(this.K(),this.K=null);lzZ(this);g.w.prototype.SU.call(this)};g.V(dQ,g.w);g.r=dQ.prototype;g.r.sC=function(q){this.Vv(q.pageX);this.xz(q.pageX+q.deltaX);AcD(this)}; g.r.Vv=function(q){this.Dl=q-this.BG}; g.r.xz=function(q){q-=this.BG;!isNaN(this.Dl)&&this.thumbnails.length>0&&(this.V=q-this.Dl,this.thumbnails.length>0&&this.V!==0&&(this.S=this.X+this.V,q=cKu(this,this.S),this.S<=this.D/2&&this.S>=KpK(this)?(this.api.seekTo(q,!1,void 0,void 0,25),g.u$(this.zP,"transform","translateX("+(this.S-this.D/2)+"px)"),pM(this,q)):this.S=this.X))}; g.r.EC=function(){this.uL&&(this.uL.d0=!0);var q=(0,g.Le)()-this.Oc<300;if(Math.abs(this.V)<5&&!q){this.Oc=(0,g.Le)();q=this.Dl+this.V;var Z=this.D/2-q;this.Vv(q);this.xz(q+Z);AcD(this);this.api.logClick(this.Z)}AcD(this)}; g.r.vc=function(){Gu(this,this.api.getCurrentTime())}; g.r.play=function(q){this.api.seekTo(cKu(this,this.S),void 0,void 0,void 0,26);this.api.playVideo();q&&this.api.logClick(this.playButton)}; g.r.onExit=function(q){this.api.seekTo(this.WG,void 0,void 0,void 0,63);this.api.playVideo();q&&this.api.logClick(this.dismissButton)}; g.r.CB=function(q,Z){this.BG=q;this.D=Z;Gu(this,this.api.getCurrentTime())}; g.r.enable=function(){this.isEnabled||(this.isEnabled=!0,this.WG=this.api.getCurrentTime(),pM(this,this.WG),g.hK(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.dU=this.N(this.element,"wheel",this.sC),this.logVisibility(this.isEnabled))}; g.r.disable=function(){this.isEnabled=!1;this.hide();g.hK(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.dU&&this.Op(this.dU);this.logVisibility(this.isEnabled)}; g.r.reset=function(){this.disable();this.G=[];this.k$=!1}; g.r.logVisibility=function(q){this.api.logVisibility(this.element,q);this.api.logVisibility(this.Z,q);this.api.logVisibility(this.dismissButton,q);this.api.logVisibility(this.playButton,q)}; g.r.SU=function(){for(;this.K.length;){var q=void 0;(q=this.K.pop())==null||q.dispose()}g.w.prototype.SU.call(this)}; g.V(sKK,g.w);g.V(cFD,g.w);g.V(EvG,g.w);g.V(uQ,g.w);uQ.prototype.QO=function(q){return q==="PLAY_PROGRESS"?this.X:q==="LOAD_PROGRESS"?this.j:q==="LIVE_BUFFER"?this.Z:this.S};ElK.prototype.update=function(q,Z,F,B){F=F===void 0?0:F;this.width=Z;this.G=F;this.D=Z-F-(B===void 0?0:B);this.position=g.JY(q,F,F+this.D);this.S=this.position-F;this.K=this.S/this.D};g.V(vt,g.w);g.V(g.a0,g.xT);g.r=g.a0.prototype; g.r.Ea=function(){var q=!1,Z=this.api.getVideoData();if(!Z)return q;this.api.WZ("timedMarkerCueRange");AH(this);for(var F=g.E(Z.eU),B=F.next();!B.done;B=F.next()){B=B.value;var f=void 0,D=(f=this.o_[B])==null?void 0:f.markerType,G=void 0;f=(G=this.o_[B])==null?void 0:G.markers;if(!f)break;if(D==="MARKER_TYPE_TIMESTAMPS"){q=g.E(f);for(D=q.next();!D.done;D=q.next()){G=D.value;D=new vt;var n=void 0;D.title=((n=G.title)==null?void 0:n.simpleText)||"";D.timeRangeStartMillis=Number(G.startMillis);D.D=Number(G.durationMillis); var b=n=void 0;D.onActiveCommand=(b=(n=G.onActive)==null?void 0:n.innertubeCommand)!=null?b:void 0;HBK(this,D)}f5(this,this.X);q=this.X;D=this.SW;G=[];n=null;for(b=0;bN&&(n.end=N);N=y8K(N,N+l);G.push(N);n=N;D[N.id]=q[b].onActiveCommand}}this.api.sZ(G);a:{q=g.E(f);for(f=q.next();!f.done;f=q.next())if(f.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){q=!1;break a}q=!0}q&&(this.GA= this.o_[B]);q=!0}else if(D==="MARKER_TYPE_HEATMAP"){B=this.o_[B];S=N=D=b=n=G=void 0;if(B&&B.markers){f=(D=(S=B.markersMetadata)==null?void 0:(N=S.heatmapMetadata)==null?void 0:N.minHeightDp)!=null?D:0;D=(G=(b=B.markersMetadata)==null?void 0:(n=b.heatmapMetadata)==null?void 0:n.maxHeightDp)!=null?G:60;G=this.D.length;n=null;for(b=0;b=S&&P<=l&&N.push(u)}D>0&&(this.uL.style.height=D+"px");S=this.G[b];l=N;u=f;var W=D,H=b===0;H=H===void 0?!1:H;Ae7(S,W);U=l;P=S.K;H=H===void 0?!1:H;var X=1E3/U.length,Q=[];Q.push({x:0,y:100});for(var a=0;a0&&(n=N[N.length-1])}g.cL(this)}D=void 0;f=[];if(B=(D=B.markersDecoration)==null?void 0:D.timedMarkerDecorations)for(B=g.E(B),D=B.next();!D.done;D=B.next())D=D.value,b=n=G=void 0,f.push({visibleTimeRangeStartMillis:(G=D.visibleTimeRangeStartMillis)!=null?G:-1,visibleTimeRangeEndMillis:(n= D.visibleTimeRangeEndMillis)!=null?n:-1,decorationTimeMillis:(b=D.decorationTimeMillis)!=null?b:NaN,label:D.label?g.HD(D.label):""});B=f;this.heatMarkersDecorations=B}}Z.aY=this.X;g.hK(this.element,"ytp-timed-markers-enabled",q);return q}; g.r.CB=function(){g.cL(this);JJ(this);f5(this,this.X);if(this.K){var q=g.yk(this.element).x||0;this.K.CB(q,this.j)}}; g.r.jyP=function(){var q=this.api.getVideoData();q&&BE0(this,q)}; g.r.onClickCommand=function(q){if(q=g.C(q,ho)){var Z=q.key;q.isVisible&&Z&&XJ(this,Z)}}; g.r.MBc=function(q){this.api.a_("innertubeCommand",this.SW[q.id])}; g.r.y5=function(){JJ(this);var q=this.api.getCurrentTime();(qthis.clipEnd)&&this.p$()}; g.r.eN=function(q){if(!q.defaultPrevented){var Z=!1;switch(q.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);Z=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);Z=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);Z=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);Z=!0;break;case 38:this.api.U("enable_key_press_seek_logging")&&WV(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);Z=!0;break;case 40:this.api.U("enable_key_press_seek_logging")&&WV(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),Z=!0}Z&&q.preventDefault()}}; g.r.NB=function(q,Z){this.updateVideoData(Z,q==="newdata")}; g.r.pT=function(){this.NB("newdata",this.api.getVideoData())}; g.r.updateVideoData=function(q,Z){Z=Z===void 0?!1:Z;var F=!!q&&q.hP();F&&(Lj(q)||VUb(this)?this.zH=!1:this.zH=q.allowLiveDvr,g.hK(this.api.getRootNode(),"ytp-enable-live-buffer",!(q==null||!Lj(q))),BE0(this,q));CW(this,this.api.v1());if(Z){if(F){Z=q.clipEnd;this.clipStart=q.clipStart;this.clipEnd=Z;jl(this);for(c6(this,this.Dl,this.Gb);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.j$={};var B;(B=this.K)==null||B.reset();up(this);g.hK(this.api.getRootNode(),"ytp-fine-scrubbing-exp", L5(this))}else this.p$();this.w1()}if(q){var f;B=((f=this.Rh)==null?void 0:f.type)==="clips";if(f=!q.isLivePlayback){f=this.api.getVideoData();Z=g.EQ(f);F=cB5(f);var D;f=Z!=null||F!=null&&F.length>0||((D=f.Mx)==null?void 0:D.length)>0}if(f&&!B){D=this.api.getVideoData();B=g.EQ(D);f=!1;if(B==null?0:B.markersMap){f=this.api.getVideoData();var G;f.cJ=((G=B.visibleOnLoad)==null?void 0:G.key)||f.cJ;G=g.E(B.markersMap);for(B=G.next();!B.done;B=G.next())B=B.value,B.key&&B.value&&(this.j$[B.key]=B.value, B.value.onChapterRepeat&&(f.iDr=B.value.onChapterRepeat));f.cJ!=null&&XJ(this,f.cJ);f=!0}var n;if(((n=D.Mx)==null?void 0:n.length)>0){n=g.Pe.getState().entities;G=g.E(D.Mx);for(B=G.next();!B.done;B=G.next()){B=B.value;F=void 0;Z=(F=r5(n,"macroMarkersListEntity",B))==null?void 0:F.markersList;var b=F=void 0;if(((F=Z)==null?void 0:F.markerType)==="MARKER_TYPE_TIMESTAMPS"||((b=Z)==null?void 0:b.markerType)==="MARKER_TYPE_HEATMAP")this.o_[B]=Z}f=this.Ea()||f}!f&&(n=cB5(D))&&(EXD(this,n),D.nE=this.D,yeK(this)); Zrb(this,null);q.VI&&this.G.length===0&&(q=q.VI,n=q.key,q.isVisible&&n&&XJ(this,n))}else fy6(this),AH(this)}JJ(this)}; g.r.RP=function(q){this.V&&!g.p(q.state,32)&&this.api.getPresentingPlayerType()!==3&&this.V.cancel();var Z;((Z=this.K)==null?0:Z.isEnabled)&&g.p(q.state,8)&&this.api.pauseVideo();q=this.api.getPresentingPlayerType()===2||!this.api.v1()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.hK(this.oa,"ytp-hide-scrubber-button",q)}; g.r.DN=function(q){var Z=!!this.Rh!==!!q,F=this.Rh;this.Rh=q;Zrb(this,F);(q==null?void 0:q.type)!=="clips"&&q||(q?(this.updateValue("clipstarticon",yxD()),this.updateValue("clipendicon",yxD()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",T1D()),this.updateValue("clipendicon",$nZ()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),Z&&(this.updateVideoData(this.api.getVideoData(), !0),g.cL(this)),jl(this));c6(this,this.Dl,this.Gb)}; g.r.iPr=function(){this.api.publish("progressBarHoverStart")}; g.r.K0U=function(q,Z,F){var B=g.yk(this.element),f=cp(this).D,D=F?F.getAttribute("data-tooltip"):void 0,G=F?F.getAttribute("data-position"):void 0,n=F?F.getAttribute("data-offset-y"):void 0;n=n?Number(n):0;G&&(q=s7(this.S,Number(F.getAttribute("data-position")),0)*f+g.yk(this.progressBar).x);this.KB.x=q-B.x;this.KB.y=Z-B.y;q=cp(this);F=yB(this,q);Z=0;var b;if((b=this.api.getVideoData())==null?0:Lj(b))(b=this.api.getProgressState().seekableEnd)&&F>b&&(F=b,q.position=s7(this.S,b)*cp(this).D),Z=this.S.K; VUb(this)&&(Z=this.S.K);b=D||g.Pv(this.zH?F-this.S.D:F-Z);Z=q.position+this.jN;F-=this.api.oh();var N;if((N=this.K)==null||!N.isEnabled)if(this.api.RV()){if(this.D.length>1){N=Ud(this,this.KB.x,!0);if(!this.Rh)for(B=0;B1)for(B=0;B0)for(N=this.KB.x,B=g.E(this.X),f=B.next();!f.done;f=B.next())f=f.value,G=BB(this,f.timeRangeStartMillis/ (this.S.D*1E3),cp(this)),g.hK(f.element,"ytp-timed-marker-hover",G<=N&&G+6>=N);B=this.tooltip.scale;N=this.api.U("delhi_modern_web_player")?67:45;n=(isNaN(n)?0:n)-N*B;this.api.U("web_key_moments_markers")?this.GA?(N=nA8(this.X,F*1E3),N=N!=null?this.X[N].title:""):(N=tq(this.D,F*1E3),N=this.D[N].title):(N=tq(this.D,F*1E3),N=this.D[N].title);N||(n+=16*B);this.tooltip.scale===.6&&(g.LO(this.api.C())?(n=this.api.Ca().getPlayerSize().height-225,B=this.api.U("delhi_modern_web_player")?70:110,n=N?n+B:n+ B+16):n=N?110:126);B=tq(this.D,F*1E3);this.dU=JcZ(this,F,B)?B:JcZ(this,F,B+1)?B+1:-1;g.hK(this.api.getRootNode(),"ytp-progress-bar-snap",this.dU!==-1&&this.D.length>1);B=!1;f=g.E(this.heatMarkersDecorations);for(G=f.next();!G.done;G=f.next()){G=G.value;var S=F*1E3;S>=G.visibleTimeRangeStartMillis&&S<=G.visibleTimeRangeEndMillis&&(N=G.label,b=g.Pv(G.decorationTimeMillis/1E3),this.api.U("web_heat_marker_use_current_time")&&(b=g.Pv(yB(this,q))),B=!0)}this.lx!==B&&(this.lx=B,this.api.logVisibility(this.ix, this.lx));g.hK(this.api.getRootNode(),"ytp-progress-bar-decoration",B);B=160*this.tooltip.scale*2;f=N.length*(this.Z?8.55:5.7);f=f<=B?f:B;G=f<160*this.tooltip.scale;B=3;!G&&f/2>q.position&&(B=1);!G&&f/2>this.j-q.position&&(B=2);this.api.C().X&&(n-=10);this.G.length&&this.G[0].hP&&(n-=14*(this.Z?2:1),this.Oc||(this.Oc=!0,this.api.logVisibility(this.uL,this.Oc)));var l;if(L5(this)&&(((l=this.K)==null?0:l.isEnabled)||this.I_>0)){var U;n-=((U=this.K)==null?0:U.isEnabled)?(this.Z?135:90)-this.zP:this.I_}l= void 0;L5(this)&&!this.api.U("web_player_hide_fine_scrubbing_edu")&&(l="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa",this.WG||(this.WG=!0,this.api.logVisibility(this.yC,this.WG)));this.tooltip.sj(Z,F,b,!!D,n,N,B,l)}else this.tooltip.sj(Z,F,b,!!D,n);g.e$(this.api.getRootNode(),"ytp-progress-bar-hover");Yq9(this)}; g.r.uNP=function(){this.w1();g.vc(this.api.getRootNode(),"ytp-progress-bar-hover");this.Oc&&(this.Oc=!1,this.api.logVisibility(this.uL,this.Oc));this.WG&&(this.WG=!1,this.api.logVisibility(this.yC,this.WG));this.api.U("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.r.DiL=function(q,Z){var F=g.yk(this.element);this.bb=q-F.x;L5(this)&&this.K&&(this.K.k$?Gu(this.K,this.api.getCurrentTime()):EC8(this.K),this.K.show(),g.hK(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.K.isEnabled));this.gj&&(this.gj.dispose(),this.gj=null);this.bI=Z;this.Lm=this.api.getCurrentTime();this.D.length>1&&this.dU!==-1?this.api.seekTo(this.D[this.dU].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(yB(this,cp(this)),!1,void 0,void 0,7);g.e$(this.element,"ytp-drag");(this.nE= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.r.SZc=function(){if(L5(this)&&this.K){var q=(this.Z?135:90)-this.zP;this.I_>=q*.5?(this.K.enable(),Gu(this.K,this.api.getCurrentTime()),ZOg(this,q)):up(this)}if(g.p(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var Z;if((Z=this.K)==null?0:Z.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.D.length>1&&this.dU!==-1)this.api.U("html5_enable_progress_bar_slide_seek_logging")&&WV(this,this.Lm,this.D[this.dU].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.D[this.dU].startTime/1E3,void 0,void 0,void 0,7);else{q=yB(this,cp(this));this.api.U("html5_enable_progress_bar_slide_seek_logging")&&WV(this,this.Lm,q,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(q,void 0,void 0,void 0,7);Z=g.E(this.heatMarkersDecorations);for(var F=Z.next();!F.done;F=Z.next())F=F.value,q*1E3>=F.visibleTimeRangeStartMillis&&q*1E3<=F.visibleTimeRangeEndMillis&& this.api.logClick(this.ix)}g.vc(this.element,"ytp-drag");this.k$&&(this.Y$.src=this.k$);this.nE&&!g.p(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.r.G3_=function(q,Z){var F=this,B=cp(this),f=yB(this,B);this.api.Ca().PK||(B.position>this.bb+2?this.G0&&(this.Y$.src=this.G0):B.position1);this.hZ(q&&this.B.Ca().getPlayerSize().width>=400);this.B.logVisibility(this.element,this.zb);var Z=1;q&&this.isActive()&&(Z=2);if(this.D!==Z){this.D=Z;q=this.B.U("delhi_modern_web_player_icons");switch(Z){case 1:this.updateValue("icon",q?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{Y:"path",Sn:!0,L:{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", q?{Y:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},T:[{Y:"path",L:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.sY6())}g.hK(this.element,"ytp-remote-button-active",this.isActive())}}; cE.prototype.K=function(){if(this.B.getOption("remote","quickCast"))this.B.setOption("remote","quickCast",!0);else{var q=this.Pg,Z=this.element;if(q.fz())q.Uy();else{q.initialize();a:{var F=g.E(q.SB.items);for(var B=F.next();!B.done;B=F.next())if(B=B.value,B.priority===1){F=B;break a}F=null}F&&(F.open(),q.Ic(Z));q.Ic(Z)}}this.B.logClick(this.element)};g.V(ZU,g.w);ZU.prototype.D=function(q){var Z=this.B.C(),F=400;Z.j?F=300:Z.X&&(F=200);q=this.K&&q.width>=F;this.hZ(q);this.B.logVisibility(this.element,q)}; ZU.prototype.S=function(){if(this.Pg.zb)this.Pg.Uy();else{var q=g.MT(this.B.pB());q&&!q.loaded&&(q.zA("tracklist",{includeAsr:!0}).length||q.load());this.B.logClick(this.element);this.Pg.Ic(this.element)}}; ZU.prototype.updateBadge=function(){var q=this.B.isHdr(),Z=this.B.getPresentingPlayerType(),F=Z!==2&&Z!==3,B=g.A0(this.B),f=F&&!!g.rl(this.B.pB());Z=f&&B.displayMode===1;B=f&&B.displayMode===2;F=(f=Z||B)||!F?null:this.B.getPlaybackQuality();g.hK(this.element,"ytp-hdr-quality-badge",q);g.hK(this.element,"ytp-hd-quality-badge",!q&&(F==="hd1080"||F==="hd1440"));g.hK(this.element,"ytp-4k-quality-badge",!q&&F==="hd2160");g.hK(this.element,"ytp-5k-quality-badge",!q&&F==="hd2880");g.hK(this.element,"ytp-8k-quality-badge", !q&&F==="highres");g.hK(this.element,"ytp-3d-badge-grey",!q&&f&&Z);g.hK(this.element,"ytp-3d-badge",!q&&f&&B)};g.V(AF,g.qB);g.r=AF.prototype;g.r.ys=function(){var q=this.B.getAvailableAudioTracks();if(q.length>1){this.Qk(g.DC(q,this.Ht));this.tracks=g.Gp(q,this.Ht,this);this.countLabel.setContent(q.length?" ("+q.length+")":"");this.publish("size-change");q=this.Ht(this.B.getAudioTrack());this.SN(q);if(this.B.U("html5_enable_new_audio_settings_menu")){var Z;(Z=this.D)!=null&&Z.setContent(q.toString())}this.enable(!0)}else{if(this.B.U("html5_enable_new_audio_settings_menu")){var F;(F=this.D)!=null&&F.setContent("")}this.enable(!1)}}; g.r.GH=function(q){g.qB.prototype.GH.call(this,q);this.B.setAudioTrack(this.tracks[q]);this.Pg.Yx()}; g.r.Ht=function(q){return q.toString()}; g.r.DR=function(q){this.B.U("html5_enable_new_audio_settings_menu")?this.D&&(q?this.D.Mr(this):this.D.BL(this)):g.qB.prototype.DR.call(this,q)}; g.r.onClick=function(){this.B.logClick(this.element)};g.V(v$D,g.vT);g.r=v$D.prototype;g.r.un=function(){this.B.un()}; g.r.open=function(){this.qr.mK()>0&&g.Sq(this.Pg,this.qr)}; g.r.Cw=function(){this.qr.mK()>0&&this.B.getPresentingPlayerType()!==2&&this.B.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.r.eN=function(q){q.defaultPrevented||(this.open(),q.preventDefault())}; g.r.Mr=function(q){this.qr.Mr(q)}; g.r.BL=function(q){this.qr.BL(q)};g.V(lx,w1); lx.prototype.Cw=function(){var q=this.B.getPresentingPlayerType();if(q!==2&&q!==3&&g.lw(this.B))this.D||(this.Pg.Mr(this),this.D=!0,this.K.push(this.N(this.B,"videodatachange",this.Cw)),this.K.push(this.N(this.B,"videoplayerreset",this.Cw)),this.K.push(this.N(this.B,"onPlaylistUpdate",this.Cw)),this.K.push(this.N(this.B,"autonavchange",this.S)),q=this.B.getVideoData(),this.S(q.autonavState),this.B.logVisibility(this.element,this.D));else if(this.D){this.Pg.BL(this);this.D=!1;q=g.E(this.K);for(var Z= q.next();!Z.done;Z=q.next())this.Op(Z.value)}}; lx.prototype.S=function(q){NC(this,q!==1)}; lx.prototype.onSelect=function(q){this.B.Bk(q?2:1);this.D&&(this.B.logVisibility(this.element,this.D),this.B.logClick(this.element))}; lx.prototype.SU=function(){this.D&&this.Pg.BL(this);w1.prototype.SU.call(this)};g.V($e6,g.vT);$e6.prototype.onClick=function(q){q.preventDefault();var Z,F;(Z=g.jR(this.B))==null||(F=Z.HH())==null||F.Uy();var B,f;(B=g.jR(this.B))==null||(f=B.u8())==null||f.Ic(q.target)};g.V(TLK,g.qB);g.r=TLK.prototype; g.r.Cw=function(){var q=this.B.getPresentingPlayerType();if(q!==2&&q!==3){this.uL=this.B.d3();var Z=this.B.getAvailableQualityLevels();if(this.D){this.K={};q=g.ct(this.B,"getAvailableQualityData",[]);q=g.E(q);for(var F=q.next();!F.done;F=q.next())F=F.value,this.K[F.qualityLabel]=F;q=Object.keys(this.K);Z[Z.length-1]==="auto"&&q.push("auto");this.zP=new Set(Z)}else if(this.G){F=g.ct(this.B,"getAvailableQualityData",[]);q=[];F=g.E(F);for(var B=F.next();!B.done;B=F.next())B=B.value,this.j[B.quality]= B,B.quality&&q.push(B.quality);Z[Z.length-1]==="auto"&&q.push("auto")}else q=Z;g.xVK(this.B)&&this.B.TG()&&q.unshift("missing-qualities");Z=this.B.app.Vs();F=Z.getVideoData();if(!F.K||!F.K.video||F.K.video.qualityOrdinal<1080||F.eT)Z=!1;else{B=/^qsa/.test(F.clientPlaybackNonce);var f="r";F.K.id.indexOf(";")>=0&&(B=/^[a-p]/.test(F.clientPlaybackNonce),f="x");B?(Z.iL("iqss",{trigger:f},!0),Z=!0):Z=!1}Z&&q.unshift("inline-survey");this.Qk(q);Z=this.B.getVideoData().cotn?!0:!1;F=this.Dl.Bf();F=!g.LO(this.B.C())|| !(Z===void 0?0:Z)||!(F===void 0||F);Z=this.qr;F=F===void 0?!1:F;Z.Ta&&g.hK(Z.cG("ytp-panel-footer"),"ytp-panel-hide-footer",F===void 0?!1:F);if(q.length){this.Kl();this.enable(!0);return}}this.enable(!1)}; g.r.Kl=function(){if(this.D){var q=this.B.getPreferredQuality();this.zP.has(q)&&(this.Z=this.B.getPlaybackQuality(),this.X=this.B.getPlaybackQualityLabel(),q==="auto"?(this.SN(q),this.setContent(this.QM(q))):this.SN(this.X))}else q=this.B.getPreferredQuality(),this.options[q]&&(this.Z=this.B.getPlaybackQuality(),this.SN(q),q==="auto"&&this.setContent(this.QM(q)))}; g.r.GH=function(q){if(q!=="missing-qualities"){g.qB.prototype.GH.call(this,q);var Z=this.D?this.K[q]:this.j[q];var F=Z==null?void 0:Z.quality,B=Z==null?void 0:Z.formatId,f=Z==null?void 0:Z.paygatedQualityDetails;Z=f==null?void 0:f.endpoint;if(f){var D;f=(D=this.options[q])==null?void 0:D.element;this.B.logClick(f)}if(this.D){var G,n;if((G=g.C(Z,g.dN_))==null?0:(n=G.popup)==null?0:n.notificationActionRenderer)this.B.a_("innertubeCommand",Z);else if(Z){this.B.a_("innertubeCommand",Z);return}B?this.B.setPlaybackQuality(F, B):this.B.setPlaybackQuality(F)}else{if(this.G){var b,N;if((b=g.C(Z,g.dN_))==null?0:(N=b.popup)==null?0:N.notificationActionRenderer)this.B.a_("innertubeCommand",Z);else if(Z){this.B.a_("innertubeCommand",Z);return}}this.B.setPlaybackQuality(q)}this.Pg.Uy();this.Cw()}}; g.r.open=function(){for(var q=g.E(Object.values(this.options)),Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var F=void 0;this.B.hasVe((F=Z)==null?void 0:F.element)&&(F=void 0,this.B.logVisibility((F=Z)==null?void 0:F.element,!0))}g.qB.prototype.open.call(this);this.B.logClick(this.element)}; g.r.BR=function(q,Z,F){var B=this;if(q==="missing-qualities")return new g.vT({Y:"a",rU:["ytp-menuitem"],L:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.B.C().PG,tabindex:"0",role:"menuitemradio"},T:[{Y:"div",rU:["ytp-menuitem-label"],Ka:"{{label}}"}]},Z,this.QM(q));if(q!=="inline-survey"){var f,D=(f=this.D?this.K[q]:this.j[q])==null?void 0:f.paygatedQualityDetails;f=D==null?void 0:D.veType;D=D==null?void 0:D.trackingParams;Z=g.qB.prototype.BR.call(this,q,Z,F);D?(this.B.createServerVe(Z.element, this,!0),this.B.setTrackingParams(Z.element,D)):f&&this.B.createClientVe(Z.element,this,f,!0);return Z}q=[{Y:"span",Ka:"\u00bfSe ve bien?"}];F=g.E([!0,!1]);D=F.next();for(f={};!D.done;f={N6:void 0},D=F.next())f.N6=D.value,D=new g.w({Y:"span",W:"ytp-menuitem-inline-survey-response",T:[f.N6?M1Z():CCk()],L:{tabindex:"0",role:"button"}}),D.listen("click",function(G){return function(){var n=B.B.app.Vs();n.iL("iqsr",{tu:G.N6});n.getVideoData().eT=!0;B.Pg.Uy();B.Cw()}}(f)),q.push(D); return new g.vT({Y:"div",W:"ytp-menuitem",L:{"aria-disabled":"true"},T:[{Y:"div",rU:["ytp-menuitem-label"],T:q}]},Z)}; g.r.QM=function(q,Z){Z=Z===void 0?!1:Z;if(q==="missing-qualities")return{Y:"div",Ka:"\u00bfFaltan opciones?"};if(q==="inline-survey")return"";var F=this.G||this.D?[Oq(this,q,Z,!1)]:[SEK(this,q)];var B=this.B.getPreferredQuality();Z||B!=="auto"||q!=="auto"||(F.push(" "),this.D?F.push(Oq(this,this.X,Z,!0,["ytp-menu-label-secondary"])):this.G?F.push(Oq(this,this.Z,Z,!0,["ytp-menu-label-secondary"])):F.push(SEK(this,this.Z,["ytp-menu-label-secondary"])));return{Y:"div",T:F}};g.V(WC,Q1);WC.prototype.G=function(){Q1.prototype.G.call(this);this.V&&xa(this)}; WC.prototype.Y$=function(){this.Dl()}; WC.prototype.zP=function(){this.B.setPlaybackRate(this.D,!0)}; WC.prototype.j=function(q){Q1.prototype.j.call(this,q);this.Dl();xa(this);q.preventDefault()};g.V(cu,g.w);g.r=cu.prototype;g.r.init=function(){this.jK(this.D);this.updateValue("minvalue",this.K);this.updateValue("maxvalue",this.S)}; g.r.Pj=function(q){if(!q.defaultPrevented){switch(q.keyCode){case 37:case 40:var Z=-this.X;break;case 39:case 38:Z=this.X;break;default:return}this.jK(this.D+Z);q.preventDefault()}}; g.r.Jf=function(q){var Z=this.D;Z+=(q.deltaX||-q.deltaY)<0?-this.V:this.V;this.jK(Z);q.preventDefault()}; g.r.M5=function(q){q=(q-g.yk(this.G).x)/this.Dl*this.range+this.K;this.jK(q)}; g.r.jK=function(q,Z){Z=Z===void 0?"":Z;q=g.JY(q,this.K,this.S);Z===""&&(Z=q.toString());this.updateValue("valuenow",q);this.updateValue("valuetext",Z);this.uL.style.left=(q-this.K)/this.range*(this.Dl-this.k$)+"px";this.D=q}; g.r.focus=function(){this.dU.focus()};g.V(tV,cu);tV.prototype.zP=function(){this.B.setPlaybackRate(this.D,!0)}; tV.prototype.jK=function(q){cu.prototype.jK.call(this,q,mr(this,q).toString());this.Z&&(Ym(this),this.Y$())}; tV.prototype.updateValues=function(){var q=this.B.getPlaybackRate();mr(this,this.D)!==q&&(this.jK(q),Ym(this))};g.V(PU,g.xT);PU.prototype.focus=function(){this.D.focus()};g.V(rP,rm);g.V(Lp,g.qB);g.r=Lp.prototype;g.r.QM=function(q){return q==="1"?"Normal":q.toLocaleString()}; g.r.ys=function(){var q,Z=(q=this.B.getVideoData())==null?void 0:q.tP();q=this.B.getPresentingPlayerType(Z);this.enable(q!==2&&q!==3);JLK(this)}; g.r.Qk=function(q){g.qB.prototype.Qk.call(this,q);this.X&&this.X.K.focus()}; g.r.DR=function(q){g.qB.prototype.DR.call(this,q);q?(this.uL=this.N(this.B,"onPlaybackRateChange",this.onPlaybackRateChange),JLK(this),FYG(this,this.B.getPlaybackRate())):(this.Op(this.uL),this.uL=null)}; g.r.onPlaybackRateChange=function(q){var Z=this.B.getPlaybackRate();!this.G&&this.Dl.includes(Z)||Ek7(this,Z);FYG(this,q)}; g.r.BR=function(q,Z,F){if(q===this.D&&dy5(this.B))return g.qB.prototype.BR.call(this,q,Z,F,{Y:"div",W:"ytp-speed-slider-menu-footer",T:[this.X]});if(q===this.K&&YBy(this.B,this.zP))return $7y(this,q,Z,F);q=g.qB.prototype.BR.call(this,q,Z,F);this.B.createClientVe(q.element,this,278479);this.B.logVisibility(q.element,!0);return q}; g.r.GH=function(q){g.qB.prototype.GH.call(this,q);q===this.K?(this.B.logClick(this.j.element),this.B.a_("innertubeCommand",this.zP)):q===this.D?this.B.setPlaybackRate(this.Z,!0):this.B.setPlaybackRate(Number(q),!0);(!dy5(this.B)||q!==this.D&&q!==this.K)&&this.Pg.Yx()}; g.r.xI=function(q){var Z=q===this.D;this.G=!1;Z&&wP(this.B)&&!dy5(this.B)?(q=new rP(this.B),g.Sq(this.Pg,q)):g.qB.prototype.xI.call(this,q)};g.V(ar,g.qB);g.r=ar.prototype;g.r.SN=function(q){g.qB.prototype.SN.call(this,q)}; g.r.Sk=function(q){return q.option.toString()}; g.r.getOption=function(q){return this.settings[q]}; g.r.QM=function(q){return this.getOption(q).text||""}; g.r.GH=function(q){g.qB.prototype.GH.call(this,q);this.publish("settingChange",this.setting,this.settings[q].option)};g.V(Zc,g.o3);Zc.prototype.yT=function(q){for(var Z=g.E(Object.keys(q)),F=Z.next();!F.done;F=Z.next()){var B=F.value;if(F=this.X6[B]){var f=q[B].toString();B=!!q[B+"Override"];F.options[f]&&(F.SN(f),F.K.element.setAttribute("aria-checked",String(!B)),F.D.element.setAttribute("aria-checked",String(B)))}}}; Zc.prototype.xV=function(q,Z){this.publish("settingChange",q,Z)};g.V(F9,g.qB);F9.prototype.D=function(q){return q.languageCode}; F9.prototype.QM=function(q){return this.languages[q].languageName||""}; F9.prototype.GH=function(q){this.publish("select",q);this.B.logClick(this.element);g.rx(this.Pg)};g.V(BU,g.qB);g.r=BU.prototype;g.r.x4=function(q){return g.q_(q)?"__off__":q.displayName}; g.r.QM=function(q){return q==="__off__"?"Desactivados":q==="__translate__"?"Traducci\u00f3n autom\u00e1tica":q==="__contribute__"?"Agregar subt\u00edtulos":q==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(q==="__off__"?{}:this.tracks[q]).displayName}; g.r.GH=function(q){if(q==="__translate__")this.D.open();else if(q==="__contribute__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();var Z=g.M8j(this.B.C(),this.B.getVideoData());g.ZE(Z)}else if(q==="__correction__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();var F=mUK(this);Mh(this,F);g.qB.prototype.GH.call(this,this.x4(F));var B,f;F=(Z=this.B.getVideoData().getPlayerResponse())==null?void 0:(B=Z.captions)==null?void 0:(f=B.playerCaptionsTracklistRenderer)== null?void 0:f.openTranscriptCommand;this.B.a_("innertubeCommand",F);this.Pg.Yx();this.K&&this.B.logClick(this.K)}else{if(q==="__correction__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();Z=mUK(this);Mh(this,Z);g.qB.prototype.GH.call(this,this.x4(Z));var D,G;Z=(F=this.B.getVideoData().getPlayerResponse())==null?void 0:(D=F.captions)==null?void 0:(G=D.playerCaptionsTracklistRenderer)==null?void 0:G.openTranscriptCommand;this.B.a_("innertubeCommand",Z)}else this.B.logClick(this.element), Mh(this,q==="__off__"?{}:this.tracks[q]),g.qB.prototype.GH.call(this,q);this.Pg.Yx()}}; g.r.ys=function(){var q=this.B.getOptions();q=q&&q.indexOf("captions")!==-1;var Z=this.B.getVideoData(),F=Z&&Z.cC,B,f=!((B=this.B.getVideoData())==null||!g.X4(B));B={};if(q||F){var D;if(q){var G=this.B.getOption("captions","track");B=this.B.getOption("captions","tracklist",{includeAsr:!0});var n=f?[]:this.B.getOption("captions","translationLanguages");this.tracks=g.Gp(B,this.x4,this);f=g.DC(B,this.x4);var b,N;mUK(this)&&((D=Z.getPlayerResponse())==null?0:(b=D.captions)==null?0:(N=b.playerCaptionsTracklistRenderer)== null?0:N.openTranscriptCommand)&&f.push("__correction__");if(n.length&&!g.q_(G)){if((D=G.translationLanguage)&&D.languageName){var S=D.languageName;D=n.findIndex(function(l){return l.languageName===S}); i7E(n,D)}qey(this.D,n);f.push("__translate__")}D=this.x4(G)}else this.tracks={},f=[],D="__off__";f.unshift("__off__");this.tracks.__off__={};F&&f.unshift("__contribute__");this.tracks[D]||(this.tracks[D]=G,f.push(D));this.Qk(f);this.SN(D);G&&G.translationLanguage?this.D.SN(this.D.D(G.translationLanguage)):P4k(this.D);q&&this.G.yT(this.B.getSubtitlesUserSettings());this.countLabel.setContent(B&&B.length?" ("+B.length+")":"");this.publish("size-change");this.B.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.r.Dp=function(q){var Z=this.B.getOption("captions","track");Z=g.Js(Z);Z.translationLanguage=this.D.languages[q];Mh(this,Z)}; g.r.xV=function(q,Z){if(q==="reset")this.B.resetSubtitlesUserSettings();else{var F={};F[q]=Z;this.B.updateSubtitlesUserSettings(F)}KN7(this,!0);this.Z.start();this.G.yT(this.B.getSubtitlesUserSettings())}; g.r.L0n=function(q){q||g.HP(this.Z)}; g.r.SU=function(){g.HP(this.Z);g.qB.prototype.SU.call(this)}; g.r.open=function(){g.qB.prototype.open.call(this);this.options.__correction__&&!this.K&&(this.K=this.options.__correction__.element,this.B.createClientVe(this.K,this,167341),this.B.logVisibility(this.K,!0))};g.V($tk,g.Lx);g.r=$tk.prototype; g.r.initialize=function(){if(!this.isInitialized){var q=this.B.C();this.isInitialized=!0;try{this.aU=new TLK(this.B,this)}catch(F){g.bh(Error("QualityMenuItem creation failed"))}g.y(this,this.aU);var Z=new BU(this.B,this);g.y(this,Z);q.enableSpeedOptions&&(Z=new Lp(this.B,this),g.y(this,Z));(g.FQ(q)||q.j)&&(q.K||q.Oc)&&(Z=new $e6(this.B,this),g.y(this,Z));q.ac&&!q.U("web_player_move_autonav_toggle")&&(Z=new lx(this.B,this),g.y(this,Z));q.U("html5_enable_new_audio_settings_menu")?(this.QG=new v$D(this.B, this),g.y(this,this.QG)):(q=new AF(this.B,this),g.y(this,q));this.B.publish("settingsMenuInitialized");OO(this.settingsButton,this.SB.mK())}}; g.r.Mr=function(q){this.initialize();this.SB.Mr(q);OO(this.settingsButton,this.SB.mK())}; g.r.BL=function(q){this.jU()||(this.zb&&this.SB.mK()<=1&&this.hide(),this.SB.BL(q),OO(this.settingsButton,this.SB.mK()))}; g.r.Ic=function(q){this.initialize();this.SB.mK()>0&&g.Lx.prototype.Ic.call(this,q)}; g.r.Uy=function(){this.V0?this.V0=!1:g.Lx.prototype.Uy.call(this)}; g.r.show=function(){g.Lx.prototype.show.call(this);g.e$(this.B.getRootNode(),"ytp-settings-shown")}; g.r.hide=function(){g.Lx.prototype.hide.call(this);g.vc(this.B.getRootNode(),"ytp-settings-shown")}; g.r.Lw=function(q){this.B.logVisibility(this.element,q);this.B.publish("settingsMenuVisibilityChanged",q)};g.V(wQX,g.w);g.r=wQX.prototype;g.r.onClick=function(){if(oF(this)&&(this.B.toggleSubtitles(),this.B.logClick(this.element),!this.isEnabled())){var q=!1,Z=g.nF().Q5(65);g.LO(this.B.C())&&Z!=null&&(q=!Z);q&&this.B.C().U("web_player_nitrate_promo_tooltip")&&this.B.publish("showpromotooltip",this.element)}}; g.r.DEL=function(q){var Z,F;(Z=g.jR(this.B))==null||(F=Z.HH())==null||F.Ic(q)}; g.r.isEnabled=function(){var q=this.B.getOption("captions","track");return!(!q||!q.displayName)}; g.r.ys=function(){var q=oF(this),Z=300;this.B.C().X&&(Z=480);this.B.U("delhi_modern_web_player_icons")&&this.updateValue("icon",rcB(this));if(this.B.C().j){this.updateValue("title",g.UP(this.B,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.UP(this.B,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var F=q}else{if(q)(F=this.cG("ytp-subtitles-button-icon"))==null||F.setAttribute("fill-opacity","1"),this.B.C().U("player_tooltip_data_title_killswitch")?this.updateValue("title", g.UP(this.B,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.UP(this.B,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.B.U("delhi_modern_web_player_icons")){var B;(B=this.cG("ytp-subtitles-button-icon"))==null||B.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var f;(f=this.cG("ytp-subtitles-button-icon"))==null||f.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"tooltip-title":"Subt\u00edtulos no disponibles"}); this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}F=!0}this.tooltip.Q$();F=F&&this.B.Ca().getPlayerSize().width>=Z;this.hZ(F);this.B.logVisibility(this.element,F);q?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.r.DJ=function(q){g.w.prototype.DJ.call(this,q)};g.V(g.gF,g.w);g.r=g.gF.prototype;g.r.canShowCountdown=function(){return!iL(this)&&!nR(this)}; g.r.y5=function(){var q=this.api.Ca().getPlayerSize().width,Z=this.Dl;this.api.C().X&&(Z=400);Z=q>=Z&&(!nR(this)||!g.p(this.api.getPlayerStateObject(),64));this.hZ(Z);g.hK(this.element,"ytp-time-display-allow-autohide",Z&&q<400);q=this.api.getProgressState();if(Z){var F=this.api.getPresentingPlayerType();Z=this.api.getCurrentTime(F,!1);this.K&&(Z-=q.airingStart);iL(this)&&(Z-=this.Rh.startTimeMs/1E3);this.canShowCountdown()&&this.S&&(Z-=this.api.getDuration(F,!1));var B=g.Pv(Z);this.G!==B&&(this.updateValue("currenttime", B),this.G=B);F=iL(this)?(this.Rh.endTimeMs-this.Rh.startTimeMs)/1E3:this.api.getDuration(F,!1);B=g.Pv(F);this.Z!==B&&(this.updateValue("duration",B),this.Z=B,Z&&(Z=g.wz("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.Pv(Z,!0),DURATION:g.Pv(F,!0)}),this.updateValue("timeDisplayAriaLabel",Z)))}MK9(this,q.isAtLiveHead);W9D(this,this.api.getLoopRange())}; g.r.onLoopRangeChange=function(q){var Z=this.Rh!==q;this.Rh=q;Z&&(this.y5(),xeX(this))}; g.r.n2c=function(){this.api.setLoopRange(null)}; g.r.lvc=function(){this.S=!this.S;this.y5()}; g.r.onVideoDataChange=function(q,Z,F){this.updateVideoData((this.api.C().U("enable_topsoil_wta_for_halftime")||this.api.C().U("enable_topsoil_wta_for_halftime_live_infra"))&&F===2?this.api.getVideoData(1):Z);this.y5();xeX(this)}; g.r.updateVideoData=function(q){this.RR=q.isLivePlayback&&!q.vG;this.K=Lj(q);this.isPremiere=q.isPremiere;var Z,F,B;this.liveIndicatorText=(q=(Z=q.getWatchNextResponse())==null?void 0:(F=Z.playerOverlays)==null?void 0:(B=F.playerOverlayRenderer)==null?void 0:B.liveIndicatorText)?j0(q):null;g.hK(this.element,"ytp-live",nR(this));this.api.U("delhi_modern_web_player")&&this.cG("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.r.onClick=function(q){q.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.r.SU=function(){this.D&&this.D();g.w.prototype.SU.call(this)};g.V(gX,g.w);g.r=gX.prototype;g.r.EN=function(){gCK(this)}; g.r.pg_=function(q){qKK(this,q);this.V&&gCK(this)}; g.r.SV=function(q){if(!q.defaultPrevented){var Z=q.keyCode,F=null;Z===37?F=this.volume-5:Z===39?F=this.volume+5:Z===36?F=0:Z===35&&(F=100);F!==null&&(F=g.JY(F,0,100),F===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(F)),q.preventDefault())}}; g.r.uf=function(q){var Z=q.deltaX||-q.deltaY;q.deltaMode?this.api.setVolume(this.volume+(Z<0?-10:10)):this.api.setVolume(this.volume+g.JY(Z/10,-10,10));q.preventDefault();var F,B;((F=this.api.C())==null?0:(B=F.getWebPlayerContextConfig())==null?0:B.enableFullscreenComponentsFeature)&&q.stopPropagation()}; g.r.qZa=function(){f7(this,this.D,!0,this.K,this.api.lI());this.Dl=this.volume;this.api.isMuted()&&this.api.unMute()}; g.r.K1=function(q){var Z=this.S?78:52,F=this.S?18:12;q-=g.yk(this.X).x;F=g.JY((q-F/2)/(Z-F),0,1);this.V&&(F=g.JY(q/Z,0,1));Z=F;Z=this.api.U("web_player_non_linear_volume_controls")?Z<=.25?Z/.25*.1:.1+(Z-.25)/.75*.9:Z;this.api.setVolume(Z*100)}; g.r.erl=function(){f7(this,this.D,!1,this.K,this.api.lI());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Dl))}; g.r.onVolumeChange=function(q){Dg(this,q.volume,q.muted)}; g.r.E6=function(){f7(this,this.D,this.isDragging,this.K,this.api.lI())}; g.r.SU=function(){g.w.prototype.SU.call(this);g.vc(this.j,"ytp-volume-slider-active")};g.V(Hg,g.w); Hg.prototype.onVideoDataChange=function(){var q=this.api.C();this.CB();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).z3;this.hZ(this.visible);this.api.logVisibility(this.element,this.visible&&this.PG);if(this.visible){var Z=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",Z)}q.S&&(this.D&&(this.Op(this.D),this.D=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.e$(this.element,"no-link")); Z=this.api.C();q=this.api.getVideoData();var F="";Z.S||(Z=g.vn(Z),Z.indexOf("www.")===0&&(Z=Z.substring(4)),F=g.ty(q)?"Mirar en YouTube Music":Z==="youtube.com"?"Mirar en YouTube":g.wz("Mirar en $WEBSITE",{WEBSITE:Z}));this.api.U("player_tooltip_data_title_killswitch")?this.updateValue("title",F):this.updateValue("tooltip-title",F)}; Hg.prototype.onClick=function(q){this.api.U("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Z=this.api.C(),F=this.api.getVideoUrl(!g.X2(q),!1,!0,!0);if(g.FQ(Z)){var B={};g.FQ(Z)&&g.ct(this.api,"addEmbedsConversionTrackingParams",[B]);F=g.gJ(F,B)}g.SC(F,this.api,q);this.api.U("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Hg.prototype.CB=function(){var q={Y:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},T:[{Y:"path",Sn:!0,W:"ytp-svg-fill",L:{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 "}}]}, Z=28666,F=this.api.getVideoData();this.api.isEmbedsShortsMode()?q={Y:"svg",L:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},T:[{Y:"path",L:{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.ty(F)&&(q={Y:"svg",L:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},T:[{Y:"path",L:{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"}},{Y:"path",L:{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"}},{Y:"path",L:{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"}},{Y:"path",L:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Y:"path",L:{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"}},{Y:"path",L:{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"}},{Y:"path",L:{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"}},{Y:"path",L:{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"}},{Y:"path",L:{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"}},{Y:"path",L:{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"}},{Y:"path",L:{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"}},{Y:"path",L:{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"}}]},Z=216163);g.ty(F)?g.e$(this.element,"ytp-youtube-music-button"):g.vc(this.element,"ytp-youtube-music-button");q.L=Object.assign({},q.L,{"aria-hidden":"true"});this.updateValue("logoSvg",q);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,Z,!0)}; Hg.prototype.DJ=function(q){g.w.prototype.DJ.call(this,q);this.api.logVisibility(this.element,this.visible&&q)};g.V(O76,g.pO);g.r=O76.prototype;g.r.onProgress=function(){if(this.B.U("web_player_max_seekable_on_ended")||!g.p(this.B.getPlayerStateObject(),2))th(this.Fo),this.progressBar.y5(),this.V4.y5()}; g.r.SR=function(){this.tB();if(th(this.Fo))this.progressBar.w1();else this.onProgress()}; g.r.G2=function(){this.onProgress();this.PG.start()}; g.r.tB=function(){var q;if(q=!this.B.C().K){q=this.progressBar;var Z=2*g.xh()*q.j,F=q.S;q=(F.D-F.K)*1E3/q.api.getPlaybackRate()/Z<300}q=q&&this.B.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;Z=!q;th(this.Fo)&&(q=Z=!1);Z?this.zP||(this.zP=this.N(this.B,"progresssync",this.onProgress)):this.zP&&(this.Op(this.zP),this.zP=null);q?this.PG.isActive()||this.PG.start():this.PG.stop()}; g.r.CB=function(){var q=this.B.rY(),Z=this.B.Ca().getPlayerSize(),F=this.B.Ca().PK,B=d0Z(this),f=eG8(this),D=Math.max(Z.width-B*2,100);if(this.vG!==Z.width||this.I_!==q||this.B.U("web_player_rtr_ctrls")&&this.OU!==F)this.vG=Z.width,this.I_=q,this.OU=F,this.K.element.style.width=f+"px",this.K.element.style.left=B+"px",g.KAy(this.progressBar,B,f,q),this.B.Iy().Gg=f;F=this.G;D=Math.min(570*(q?1.5:1),D);q=Math.min(413*(q?1.5:1),Math.round((Z.height-Qd(this))*.82));F.maxWidth=D;F.maxHeight=q;F.Ai();this.tB(); this.KB&&QO8(this.o_,Z.height)}; g.r.onVideoDataChange=function(){var q=this.B.getVideoData();this.WG.style.background=q.z3?q.Lx:"";this.uL&&TMG(this.uL,q.showSeekingControls);this.Dl&&TMG(this.Dl,q.showSeekingControls)}; g.r.QO=function(){return this.K.element};g.V(I65,kb);g.r=I65.prototype;g.r.Ki=function(q){q.target!==this.dismissButton.element&&(this.onClickCommand&&this.B.a_("innertubeCommand",this.onClickCommand),this.o8())}; g.r.o8=function(){this.enabled=!1;this.V.hide()}; g.r.onVideoDataChange=function(q,Z){q==="dataloaded"&&XJK(this);q=[];var F,B,f,D;if(Z=(D=g.C((F=Z.getWatchNextResponse())==null?void 0:(B=F.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.suggestedActionsRenderer,HF5))==null?void 0:D.suggestedActions)for(F=g.E(Z),B=F.next();!B.done;B=F.next())(B=g.C(B.value,OFE))&&g.C(B.trigger,Lz5)&&q.push(B);if(q.length!==0){F=[];q=g.E(q);for(B=q.next();!B.done;B=q.next())if(B=B.value,f=g.C(B.trigger,Lz5))D=(D=B.title)?g.HD(D):"View Chapters", Z=f.timeRangeStartMillis,f=f.timeRangeEndMillis,Z!=null&&f!=null&&B.tapCommand&&(F.push(new g.u8(Z,f,{priority:9,namespace:"suggested_action_button_visible",id:D})),this.suggestedActions[D]=B.tapCommand);this.B.sZ(F)}}; g.r.zT=function(){return this.enabled}; g.r.Lw=function(){this.enabled?this.WG.start():I_(this);this.S5()}; g.r.SU=function(){XJK(this);kb.prototype.SU.call(this)};var vS={},Bk=(vS.CHANNEL_NAME="ytp-title-channel-name",vS.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",vS.LINK="ytp-title-link",vS.SESSIONLINK="yt-uix-sessionlink",vS.SUBTEXT="ytp-title-subtext",vS.TEXT="ytp-title-text",vS.TITLE="ytp-title",vS);g.V(f0,g.w);f0.prototype.onClick=function(q){this.api.logClick(this.element);var Z=this.api.C(),F=this.api.getVideoUrl(!g.X2(q),!1,!0);g.FQ(Z)&&(Z={},g.ct(this.api,"addEmbedsConversionTrackingParams",[Z]),F=g.gJ(F,Z));g.SC(F,this.api,q)}; f0.prototype.ys=function(){var q=this.api.getVideoData(),Z=this.api.C();this.updateValue("title",q.title);var F={Y:"a",W:Bk.CHANNEL_NAME,L:{href:"{{channelLink}}",target:"_blank"},Ka:"{{channelName}}"};this.api.C().S?F={Y:"span",W:Bk.CHANNEL_NAME,Ka:"{{channelName}}",L:{tabIndex:"{{channelSubtextFocusable}}"}}:q.N$&&(F={Y:"span",W:Bk.SUBTEXT,Ka:q.N$});this.updateValue("subtextElement",F);hxK(this);this.api.getPresentingPlayerType()===2&&(F=this.api.getVideoData(),F.videoId&&F.isListed&&F.author&& F.Jn&&F.profilePicture?(this.updateValue("channelLink",F.Jn),this.updateValue("channelName",F.author),this.updateValue("channelTitleFocusable","0")):hxK(this));F=Z.externalFullscreen||!this.api.isFullscreen()&&Z.PX;g.hK(this.link,Bk.FULLERSCREEN_LINK,F);Z.uL||!q.videoId||F||q.z3||Z.S?this.D&&(this.updateValue("url",null),this.Op(this.D),this.D=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.D||(this.D=this.N(this.link,"click",this.onClick)));Z.S&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.FQ(Z)?q.expandedTitle:q.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.V(g.Li,g.w);g.r=g.Li.prototype;g.r.setEnabled=function(q){if(this.type!=null)if(q)switch(this.type){case 3:case 2:k6(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.j=q}; g.r.sj=function(q,Z,F,B,f,D,G,n){if(!this.Y$||this.env.X){this.type===3&&this.w1();this.type!==1&&(g.xd(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.j&&this.fade.show(),this.K&&this.K.dispose(),(this.K=this.api.RV())&&this.K.subscribe("l",this.E7,this));if(n){var b=g.bD(this.bg).height||141;this.k$.style.bottom=b+2+"px"}else this.k$.style.display="none";this.env.U("delhi_modern_web_player")?(this.update({pillTimeStamp:F,pillTitle:D!=null?D:"",eduText:n!=null?n:""}),g.e$(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:F,title:D!=null?D:"",eduText:n!=null?n:""}),g.hK(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!D));this.api.isInline()&&g.e$(this.bottomText,"ytp-modern-tooltip-text");g.hK(this.element,"ytp-text-detail",!!B);F=-1;this.K&&(F=Cz(this.K,243*this.scale),this.env.U("web_l3_storyboard")&&this.K.levels.length===4&&(F=this.K.levels.length-1),F=e_K(this.K,F,Z));P18(this,F);if(G)switch(Z=g.bD(this.element).width,G){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=Z+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=Z/2+"px",this.title.style.textAlign="center"}uUy(this,!!B,q,f)}}; g.r.WW=function(){this.type===1&&this.w1()}; g.r.fI=function(q,Z){if(this.type)if(this.type===3)this.w1();else return;a49(this,q,3,Z)}; g.r.Q$=function(){this.D&&!this.X&&(this.env.U("player_tooltip_data_title_killswitch")?this.D.hasAttribute("title")&&(this.S=this.D.getAttribute("title")||"",this.D.removeAttribute("title"),this.j&&k6(this)):this.D.hasAttribute("data-tooltip-title")&&(this.S=this.D.getAttribute("data-tooltip-title")||"",this.D.removeAttribute("data-tooltip-title"),this.j&&k6(this)))}; g.r.E7=function(q,Z){q<=this.G&&this.G<=Z&&(q=this.G,this.G=NaN,P18(this,q))}; g.r.BUU=function(){T06(this.K,this.G,243*this.scale)}; g.r.w1=function(){switch(this.type){case 2:var q=this.D;q.removeEventListener("mouseout",this.V);q.addEventListener("mouseover",this.Z);q.removeEventListener("blur",this.V);q.addEventListener("focus",this.Z);omk(this);break;case 3:omk(this);break;case 1:this.K&&(this.K.unsubscribe("l",this.E7,this),this.K=null),this.api.removeEventListener("videoready",this.Dl),this.uL.stop()}this.type=null;this.j&&this.fade.hide()}; g.r.S7=function(){if(this.D)for(var q=0;q=0;Z--)if(this.gm[Z]===q){this.gm.splice(Z,1);break}Uf(this.Fo,64,this.gm.length>0)}; g.r.T_=function(){this.api.pz()&&this.api.Nb();return!!this.uT||ED9(this)||g.ZI.prototype.T_.call(this)}; g.r.dI=function(){var q=!this.T_(),Z=q&&this.api.pz()&&!g.p(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().z3&&!this.api.C().S&&!this.api.isEmbedsShortsMode(),F=this.LU&&g.SH(this.api)&&g.p(this.api.getPlayerStateObject(),128);q||F?(this.GO.show(),this.zO.show()):(this.GO.hide(),this.zO.hide(),this.api.S7(this.g1.element));Z?this.I4.Ic():this.I4.Uy();this.xe&&zvB(this.xe,this.YPF||!q);this.api.U("web_player_hide_overflow_button_if_empty_menu")&&$U(this);g.ZI.prototype.dI.call(this)}; g.r.KH=function(q,Z,F,B,f){q.style.left="";q.style.top="";q.style.bottom="";var D=g.bD(q),G=B||this.xe&&g.yT(this.xe.QO(),Z),n=B=null;F!=null&&G||(B=g.bD(Z),n=g.uy(Z,this.api.getRootNode()),F==null&&(F=n.x+B.width/2));F-=D.width/2;G?(Z=this.xe,B=d0Z(Z),n=eG8(Z),G=this.api.Ca().getPlayerSize().height,F=g.JY(F,B,B+n-D.width),D=G-Qd(Z)-D.height):g.yT(this.g1.element,Z)?(Z=this.api.Ca().getPlayerSize().width,F=g.JY(F,12,Z-D.width-12),D=this.rY()?this.YC:this.A9,this.api.C().playerStyle==="gvn"&&(D+=20), this.LU&&(D-=this.rY()?26:18)):(Z=this.api.Ca().getPlayerSize(),F=g.JY(F,12,Z.width-D.width-12),D=n.y>(Z.height-B.height)/2?n.y-D.height-12:n.y+B.height+12);q.style.top=D+(f||0)+"px";q.style.left=F+"px"}; g.r.SR=function(q){q&&(this.api.S7(this.g1.element),this.xe&&this.api.S7(this.xe.QO()));this.Q2&&(g.hK(this.contextMenu.element,"ytp-autohide",q),g.hK(this.contextMenu.element,"ytp-autohide-active",!0));g.ZI.prototype.SR.call(this,q)}; g.r.ov=function(){g.ZI.prototype.ov.call(this);this.Q2&&(g.hK(this.contextMenu.element,"ytp-autohide-active",!1),this.Q2&&(this.contextMenu.hide(),this.N8&&this.N8.hide()))}; g.r.dA=function(q,Z){var F=this.api.Ca().getPlayerSize();F=new g.vF(0,0,F.width,F.height);if(q||!th(this.Fo)&&!this.T_()){if(this.api.C().D9||Z)q=this.rY()?this.YC:this.A9,F.top+=q,F.height-=q;this.xe&&(F.height-=Qd(this.xe))}return F}; g.r.EN=function(q){var Z=this.api.getRootNode();q?Z.parentElement?(Z.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.C().externalFullscreen||(Z.parentElement.insertBefore(this.j8.element,Z),Z.parentElement.insertBefore(this.dD.element,Z.nextSibling))):g.mM(Error("Player not in DOM.")):(Z.setAttribute("aria-label","Reproductor de video de YouTube"),this.j8.detach(),this.dD.detach());this.CB();this.PC()}; g.r.rY=function(){if(this.api.U("web_player_use_screen_width_for_big_mode")){var q;return this.api.Ca().getPlayerSize().width>=((q=g.Ce(this.api.C().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?q:2E3)}q=this.api.C();return this.api.isFullscreen()&&!q.X||!1}; g.r.showControls=function(q){this.lC=!q;this.dI()}; g.r.CB=function(){var q=this.rY();this.tooltip.scale=q?1.5:1;this.contextMenu&&g.hK(this.contextMenu.element,"ytp-big-mode",q);this.dI();this.api.U("web_player_hide_overflow_button_if_empty_menu")||$U(this);this.PC();var Z=this.api.isEmbedsShortsMode();Z&&q?(q=(this.api.Ca().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.u$(this.g1.element,"padding-left",q+"px"),g.u$(this.g1.element,"padding-right",q+"px")):Z&&(g.u$(this.g1.element,"padding-left",""),g.u$(this.g1.element,"padding-right", ""));g.ZI.prototype.CB.call(this)}; g.r.VE=function(){if(ED9(this)&&!g.SH(this.api))return!1;var q=this.api.getVideoData();return!g.FQ(this.api.C())||this.api.getPresentingPlayerType()===2||!this.VT||((q=this.VT||q.VT)?(q=q.embedPreview)?(q=q.thumbnailPreviewRenderer,q=q.videoDetails&&g.C(q.videoDetails,q16)||null):q=null:q=null,q&&q.collapsedRenderer&&q.expandedRenderer)?g.ZI.prototype.VE.call(this):!1}; g.r.PC=function(){g.ZI.prototype.PC.call(this);this.api.logVisibility(this.title.element,!!this.ob);this.uU&&this.uU.DJ(!!this.ob);this.channelAvatar.DJ(!!this.ob);this.overflowButton&&this.overflowButton.DJ(this.J8()&&!!this.ob);this.shareButton&&this.shareButton.DJ(!this.J8()&&!!this.ob);this.Za&&this.Za.DJ(!this.J8()&&!!this.ob);this.searchButton&&this.searchButton.DJ(!this.J8()&&!!this.ob);this.copyLinkButton&&this.copyLinkButton.DJ(!this.J8()&&!!this.ob);if(!this.ob){this.api.S7(this.g1.element); for(var q=0;q5&&Z.iL("glrs",{cmt:F});Z.seekTo(0,{seekSource:58});Z.iL("glrre",{cmt:F})}}; U7.prototype.SU=function(){this.D=null;g.J.prototype.SU.call(this)};g.V(g.cj,Rm);g.r=g.cj.prototype;g.r.isView=function(){return!0}; g.r.u0=function(){var q=this.mediaElement.getCurrentTime();if(q1;tC(q.nw(),B-.01)&&!f&&(rX(this,4),F.isActive=!1,F.mj=F.mj||F.isActive,(this.Z===1?this.D:this.K).iL("sbh",{}),Z.isActive=!0,Z.mj=Z.mj||Z.isActive,this.Z!==0&&(this.D.getVideoData().qk=!0));q=this.G.K;if(this.G.D.isActive&&q.isActive&&(rX(this,5),this.Z!==0)){q=this.K.eA();F=this.D.eA(); this.D.iL("sbs",{citag:F==null?void 0:F.itag,nitag:q==null?void 0:q.itag});this.K.iL("gitags",{pitag:F==null?void 0:F.itag,citag:q==null?void 0:q.itag});var D;(D=this.K)==null||D.zJ()}}}; g.r.s7=function(){this.I2()&&this.uo("player-reload-after-handoff")}; g.r.uo=function(q,Z){Z=Z===void 0?{}:Z;if(!this.jU()&&this.status.status!==6){var F=this.status.status>=4&&q!=="player-reload-after-handoff";this.status={status:Infinity,error:q};if(this.D&&this.K){var B=this.K.getVideoData().clientPlaybackNonce;this.D.Zt(new g.xX("dai.transitionfailure",Object.assign(Z,{cpn:B,transitionTimeMs:this.qg,msg:q})));this.D.CK(F)}this.FG.reject(q);this.dispose()}}; g.r.I2=function(){return this.status.status>=4&&this.status.status<6}; g.r.SU=function(){LlB(this);this.D.unsubscribe("newelementrequired",this.s7,this);if(this.S){var q=this.S.K;this.S.D.cZ.unsubscribe("updateend",this.DC,this);q.cZ.unsubscribe("updateend",this.DC,this)}g.J.prototype.SU.call(this)}; g.r.zg=function(q){g.YM(q,128)&&this.uo("player-error-event")};g.V(ls,g.J);ls.prototype.clearQueue=function(q,Z){q=q===void 0?!1:q;Z=Z===void 0?!1:Z;this.G&&this.G.reject("Queue cleared");this.app.C().U("html5_gapless_fallback_on_qoe_restart_v2")||Z&&this.K&&this.K.CK(!1);S6(this,q)}; ls.prototype.d1=function(){return!this.D}; ls.prototype.I2=function(){var q;return((q=this.S)==null?void 0:q.I2())||!1}; ls.prototype.SU=function(){S6(this);g.J.prototype.SU.call(this)};g.V(fM,g.In);g.r=fM.prototype;g.r.getVisibilityState=function(q,Z,F,B,f,D,G,n){return q?4:f&&ALG?7:XiK&&!(Gv()||document.hasFocus&&document.hasFocus())||Gv()?3:Z?2:F?1:B?5:f&&!ALG?7:D?8:G?9:n?10:0}; g.r.LR=function(q){this.fullscreen!==q&&(this.fullscreen=q,this.Lw())}; g.r.setMinimized=function(q){this.K!==q&&(this.K=q,this.Lw())}; g.r.setInline=function(q){this.inline!==q&&(this.inline=q,this.Lw())}; g.r.K8=function(q){this.pictureInPicture!==q&&(this.pictureInPicture=q,this.Lw())}; g.r.setSqueezeback=function(q){this.S!==q&&(this.S=q,this.Lw())}; g.r.CL=function(q){this.G!==q&&(this.G=q,this.Lw())}; g.r.Z6=function(){return this.D}; g.r.Su=function(){return this.fullscreen!==0}; g.r.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.r.gD=function(){return this.fullscreen}; g.r.isMinimized=function(){return this.K}; g.r.isInline=function(){return this.inline}; g.r.isBackground=function(){return Gv()}; g.r.LD=function(){return this.pictureInPicture}; g.r.fJ=function(){return!1}; g.r.xF=function(){return this.S}; g.r.aV=function(){return this.G}; g.r.Lw=function(){this.publish("visibilitychange");var q=this.getVisibilityState(this.Z6(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.LD(),this.fJ(),this.xF(),this.aV());q!==this.j&&this.publish("visibilitystatechange");this.j=q}; g.r.SU=function(){k3X(this.Z);g.In.prototype.SU.call(this)};g.V(g.UY,g.J);g.r=g.UY.prototype;g.r.SU=function(){this.videoData=this.playerState=null;g.J.prototype.SU.call(this)}; g.r.addCueRange=function(){}; g.r.Go=function(){}; g.r.eh=function(){}; g.r.U9=function(){return!1}; g.r.QN=function(){return!1}; g.r.O9=function(){}; g.r.s_=function(){}; g.r.oJ=function(){return[]}; g.r.un=function(){}; g.r.CF=function(){}; g.r.Us=function(){return 1}; g.r.getAudioTrack=function(){return this.getVideoData().JV}; g.r.FJ=function(){return null}; g.r.getAvailableAudioTracks=function(){return[]}; g.r.d3=function(){return[]}; g.r.Xn=function(){return[]}; g.r.qA=function(){return""}; g.r.V$=function(){return[]}; g.r.sM=function(){}; g.r.rR=function(){return 0}; g.r.getCurrentTime=function(){return 0}; g.r.vR=function(){}; g.r.eA=function(){}; g.r.Ey=function(){return{}}; g.r.getDuration=function(){return 0}; g.r.hq=function(){return 0}; g.r.rh=function(){return 0}; g.r.jY=function(){return!1}; g.r.BY=function(){return 0}; g.r.WX=function(){return 0}; g.r.N4=D6(7);g.r.wA=function(){return 0}; g.r.fk=function(){return!1}; g.r.xx=function(){return 0}; g.r.Mi=function(){return null}; g.r.Ar=function(){return null}; g.r.PZ=function(){return 0}; g.r.l2=function(){return 0}; g.r.k6=function(){return g.h(function(q){g.C7(q)})}; g.r.FD=D6(15);g.r.getPlaybackQuality=function(){return"auto"}; g.r.getPlaybackRate=function(){return 1}; g.r.getPlayerState=function(){this.playerState||(this.playerState=new g.h1);return this.playerState}; g.r.getPlayerType=function(){return 0}; g.r.getPlaylistSequenceForTime=function(){return null}; g.r.Yb=function(){return function(){}}; g.r.Os=function(){return""}; g.r.getPreferredQuality=function(){return"unknown"}; g.r.VW=function(){}; g.r.getProximaLatencyPreference=function(){return 0}; g.r.bM=function(){return wH}; g.r.RV=function(){return null}; g.r.getStoryboardFormat=function(){return null}; g.r.getStreamTimeOffset=function(){return 0}; g.r.Ef=function(){return 0}; g.r.oh=function(){return 0}; g.r.nJ=function(){return{oI:[],rG:[],currentTime:0,Q3:"",droppedVideoFrames:0,isGapless:!1,d1:!0,VV:0,xT:0,VB:0,Lo:0,aD:0,F7:[],Xj:[],f2:null,playerState:this.getPlayerState(),HF:null,w8:"",totalVideoFrames:0}}; g.r.getUserAudio51Preference=function(){return 0}; g.r.getUserPlaybackQualityPreference=function(){return""}; g.r.getVideoData=function(){this.videoData||(this.videoData=new g.wc(this.J),g.y(this,this.videoData));return this.videoData}; g.r.SX=function(){return null}; g.r.qz=function(){return null}; g.r.Vd=function(){}; g.r.getVideoLoadedFraction=function(){return 0}; g.r.Cy=function(){}; g.r.handleError=function(){}; g.r.CK=function(){}; g.r.TW=function(){}; g.r.J3=D6(40);g.r.tj=function(){return!1}; g.r.hasSupportedAudio51Tracks=function(){return!1}; g.r.isAd=function(){return!1}; g.r.hS=function(){return!1}; g.r.Z6=function(){return!1}; g.r.isAtLiveHead=function(){return!1}; g.r.ul=function(){return!0}; g.r.isGapless=function(){return!1}; g.r.isHdr=function(){return!1}; g.r.us=function(){return!1}; g.r.Qq=function(){return!1}; g.r.yV=function(){return!1}; g.r.isProximaLatencyEligible=function(){return!1}; g.r.d1=function(){return!0}; g.r.hR=function(){return!1}; g.r.kf=function(){return!1}; g.r.xm=function(){}; g.r.Xf=function(){}; g.r.zJ=function(){}; g.r.i5=function(){}; g.r.Pv=function(){}; g.r.Rk=function(){}; g.r.Zn=function(){}; g.r.gA=D6(50);g.r.cE=D6(21);g.r.Nt=function(){}; g.r.pauseVideo=function(){}; g.r.prefetchKeyPlay=function(){}; g.r.playVideo=function(){return g.h(function(q){return q.return()})}; g.r.Bz=function(){}; g.r.TH=D6(27);g.r.El=D6(33);g.r.IM=function(){}; g.r.iL=function(){}; g.r.vE=function(){}; g.r.sJ=function(){}; g.r.va=function(){}; g.r.Zt=function(){}; g.r.mS=function(){}; g.r.Az=function(){}; g.r.FZ=function(){}; g.r.iB=function(){}; g.r.YM=function(){}; g.r.e5=function(){}; g.r.removeCueRange=function(){}; g.r.RK=function(){}; g.r.WZ=function(){return[]}; g.r.ym=function(){}; g.r.OT=function(){}; g.r.X2=function(){}; g.r.P2=function(){}; g.r.mH=function(){}; g.r.jT=function(){}; g.r.UY=function(){}; g.r.seekTo=function(){}; g.r.sendAbandonmentPing=function(){}; g.r.sendVideoStatsEngageEvent=function(){}; g.r.uF=function(){}; g.r.setLoop=function(){}; g.r.xM=function(){}; g.r.setMediaElement=function(){}; g.r.VJ=function(){}; g.r.setPlaybackRate=function(){}; g.r.PL=function(){}; g.r.S4=function(){}; g.r.J1=function(){}; g.r.setProximaLatencyPreference=function(){}; g.r.Ij=function(){}; g.r.eR=function(){}; g.r.y4=function(){}; g.r.F2=function(){}; g.r.a9=function(){}; g.r.setUserAudio51Preference=function(){}; g.r.j3=function(){}; g.r.fE=function(){return!1}; g.r.i_=function(){}; g.r.LQ=function(){return!1}; g.r.x3=function(){}; g.r.M$=function(){}; g.r.P0=function(){}; g.r.stopVideo=function(){}; g.r.subscribe=function(){return NaN}; g.r.e7=function(){}; g.r.togglePictureInPicture=function(){}; g.r.ZU=function(){return 0}; g.r.JQ=function(){}; g.r.unsubscribe=function(){return!1}; g.r.wI=function(){}; g.r.bU=function(){return!1}; g.r.Mf=function(){}; g.r.rB=function(){}; g.r.QQ=function(){};g.V(dI,g.J);g.r=dI.prototype;g.r.get=function(q){Cg(this);var Z=this.data.find(function(F){return F.key===q}); return Z?Z.value:null}; g.r.set=function(q,Z,F){this.remove(q,!0);Cg(this);q={key:q,value:Z,expire:Infinity};F&&isFinite(F)&&(F*=1E3,q.expire=(0,g.Le)()+F);for(this.data.push(q);this.data.length>this.S;)(F=this.data.shift())&&IL(this,F,!0);m1(this)}; g.r.remove=function(q,Z){Z=Z===void 0?!1:Z;var F=this.data.find(function(B){return B.key===q}); F&&(IL(this,F,Z),g.ni7(this.data,function(B){return B.key===q}),m1(this))}; g.r.removeAll=function(q){if(q=q===void 0?!1:q)for(var Z=g.E(this.data),F=Z.next();!F.done;F=Z.next())IL(this,F.value,q);this.data=[];m1(this)}; g.r.SU=function(){var q=this;g.J.prototype.SU.call(this);this.data.forEach(function(Z){IL(q,Z,!0)}); this.data=[]};g.V(g.Sl,g.J);g.r=g.Sl.prototype;g.r.SU=function(){for(var q=g.E(Object.values(this.G)),Z=q.next();!Z.done;Z=q.next())Z.value.dispose();Ppg(this);this.D.dispose();g.J.prototype.SU.call(this)}; g.r.dj=function(q){return q?q===1?this.V:this.S.getVideoData().enableServerStitchedDai&&q===2?this.S.getVideoData().e4?this.G[2]||this.S:this.S:this.G[q]||null:this.S}; g.r.Nr=function(q){var Z=q.cpn;q=q.playerType;if(Z)a:{q=g.E(Object.values(this.G));for(var F=q.next();!F.done;F=q.next())if(F=F.value,F.qA()===Z){Z=F;break a}Z=this.Z[Z]||null}else Z=q?this.dj(q):this.S;return Z}; g.r.Dv=function(){return this.V}; g.r.o9=function(q){this.V=q}; g.r.Vs=function(){return this.S}; g.r.l5=function(q){this.S=q;M$(this)}; g.r.UG=D6(46);g.r.vv=D6(48);g.V(Fb,g.a4);g.r=Fb.prototype;g.r.lq=function(){}; g.r.qA=function(){return this.videoData.clientPlaybackNonce}; g.r.getVideoData=function(){if(g.a4.prototype.getVideoData.call(this).U("html5_huli_ssdai_use_playback_state")){var q=f8G(this.h0,g.a4.prototype.getCurrentTime.call(this))||g.a4.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==q.clientPlaybackNonce&&Ptb(this.G,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:q.clientPlaybackNonce});return this.videoData}return f8G(this.h0,g.a4.prototype.getCurrentTime.call(this))||g.a4.prototype.getVideoData.call(this)}; g.r.getCurrentTime=function(q){var Z=g.a4.prototype.getCurrentTime.call(this);if(g.a4.prototype.getVideoData.call(this).U("html5_huli_ssdai_use_playback_state")){this.D===0?q||(Z-=this.startTimeSecs,g.a4.prototype.getVideoData.call(this).U("html5_ssdai_log_missed_ad_impressions")&&this.K&&this.S&&Z>1&&this.iL("sdai-admiss",{cpn:this.qA(),ct:Z.toFixed(3),pfs:this.S}),this.K=!1):q&&(Z=this.D);var F=q?this.h0.qY||g.a4.prototype.getCurrentTime.call(this):Sj6(this.h0,g.a4.prototype.getCurrentTime.call(this)); Z!==F&&Ptb(this.G,"time"+(q!=null?q:!1),{time:Z,ref:F,ct:q!=null?q:!1})}else Z=q?this.h0.qY||Z:Sj6(this.h0,Z);return Z}; g.r.getDuration=function(){if(g.a4.prototype.getVideoData.call(this).U("html5_huli_ssdai_use_playback_state")){var q=vIZ(this.h0,g.a4.prototype.getCurrentTime.call(this));this.duration!==q&&Ptb(this.G,"duration",{dur:this.duration,ref:q});return this.duration}return vIZ(this.h0,g.a4.prototype.getCurrentTime.call(this))}; g.r.Va=function(q){this.duration=q};g.Hw.prototype.zm=function(q,Z){if(Z===1)return this.D.get(q);if(Z===2)return this.S.get(q);if(Z===3)return this.K.get(q)}; g.Hw.prototype.U4=D6(58);g.Hw.prototype.mN=function(q,Z,F,B){F={lD:B,Ag:F};Z?this.S.set(q,F):this.D.set(q,F)}; g.Hw.prototype.clearAll=function(){this.D.clear();this.S.clear();this.K.clear()}; e6.prototype.clear=function(){this.K=[];this.S.clear();this.G.clear();this.D.clear()}; e6.prototype.Nr=function(q){var Z=q.cpn;q=q.fp;if(Z&&(Z=this.S.get(Z))||q&&(Z=(this.Z?this.S:this.G).get(q)))return Z}; g.V(g.BZ,g.J);g.r=g.BZ.prototype;g.r.onCueRangeEnter=function(q){var Z=q.getId();this.S$({oncueEnter:1,cpn:Z,start:q.start,end:q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.rR()||0).toFixed(3)});var F=this.D.Nr({cpn:Z});this.S$({enterAdCueRange:1});var B=this.EP||this.ji().cpn,f;B=(f=this.D.Nr({cpn:B}))!=null?f:this.ji();F&&(f=this.playback.getCurrentTime(),F.startTimeSecs=q.start/1E3,F={c8:B,SY:F,GW:f},xYZ(this,Z,q.start/1E3,f),kC(this,F));this.Oc=!1}; g.r.W5=function(q,Z,F){if(q&&Z)if((this.app.I1().Z[q]||null)===null){var B;this.S$({nocpn:q,active:(B=this.app.I1().K)==null?void 0:B.qA()})}else{this.Oc=F!=null?F:!1;var f;F=((f=this.app.I1().K)==null?void 0:f.qA())||this.playback.qA();var D;f=(D=this.D.Nr({cpn:F}))!=null?D:this.ji();var G;D=(G=this.D.Nr({cpn:q}))!=null?G:this.ji();D.startTimeSecs=Z;D.playerType===2&&(D.R2=D.R2!=null?Math.min(D.R2,Z):Z);G=this.playback.getCurrentTime();xYZ(this,F,Z,G);kC(this,{c8:f,SY:D,GW:G});if(this.playback.getVideoData().tP()&& q===this.playback.qA())if(Z=this.j$.get(F)){var n;q=g.E((n=this.BG.get(Z))!=null?n:[]);for(n=q.next();!n.done;n=q.next()){n=n.value;G=this.app.I1();if(F=G.Z[n])G.K===F&&(G.K=null),G.j===F&&(G.j=null),delete G.Z[n];this.Y$.delete(n);this.j$.delete(n)}this.BG.delete(Z)}else this.S$({no_abid:q})}}; g.r.To=function(q,Z){if(q===this.playback.qA())FA(this.app.I1(),this.playback,!1);else{var F=this.Y$.get(q);F?(q=!this.Oc,F.D=0,F.startTimeSecs=Z,F.S=q===void 0?!0:q,F.K=!0,FA(this.app.I1(),F,!0)):this.S$({nop_s:q})}}; g.r.onCueRangeExit=function(q){for(var Z=this.playback.getCurrentTime()*1E3,F=q.getId(),B=g.E(this.K.values()),f=B.next();!f.done;f=B.next())if(f=f.value,f.getId()!==F&&Z>=f.start&&Z<=f.end)return;if(F=this.D.Nr({cpn:F}))Z=this.playback.getCurrentTime(),B=this.ji(),B.startTimeSecs=q.end/1E3,F={c8:F,SY:B,GW:Z},xYZ(this,this.playback.qA(),q.end/1E3,Z),kC(this,F)}; g.r.ji=function(){return{cpn:this.playback.qA(),durationMs:0,Rc:0,playerType:1,Ya:0,videoData:this.playback.getVideoData(),errorCount:0,m2:""}}; g.r.seekTo=function(q,Z,F,B){q=q===void 0?0:q;Z=Z===void 0?{}:Z;F=F===void 0?!1:F;B=B===void 0?null:B;$r(this,this.EP);if(this.playback.getVideoData().tP()&&q<=this.qY)this.playback.pauseVideo(),this.qY=0,DF8(this,q);else if(this.Oc=this.Dl=!0,F)a16(this,q,Z);else{F=this.app.Vs();var f=F===this.dU?this.Jn:null;G$(this,!1);this.w2=q;this.Gb=Z;B!=null&&this.KB.start(B);F&&(this.Jn=f||F.getPlayerState(),F.P0(Z),this.dU=F)}}; g.r.SU=function(){G$(this,!1);sg(this);gOG(this);g.J.prototype.SU.call(this)}; g.r.g6=function(q){this.VO=q;this.S$({swebm:q})}; g.r.XX=function(q,Z,F){if(F&&Z){var B=this.Z.get(q);if(B){B.locations||(B.locations=new Map);var f=Number(Z.split(";")[0]);F=new g.O_(F);this.S$({hdlredir:1,itag:Z,seg:q,hostport:p7(93,F)});B.locations.set(f,F)}}}; g.r.aB=function(q,Z,F,B,f,D){var G=B===3,n=XD5(this,q,Z,B,F,D);if(!n){u9(this,Z,G);var b=g.Uu(this,Z)?"undec":"ncp";this.S$({gvprp:b,mt:q,seg:Z,tt:B,itag:F,ce:D});return null}G||this.Z.set(Z,n);D=n.m2;var N;B=((N=this.zm(Z-1,B,f))==null?void 0:N.lD)||"";B===""&&this.S$({eds:1});N=HUK(this,n.ssdaiAdsConfig);f=this.playback.getVideoData();var S;G=((S=f.K)==null?void 0:S.containerType)||0;S=f.O4[G];n=n.u_&&Z>=n.u_?n.u_:void 0;S={Sb:D?toD(this,D):[],adsConfig:N,lD:B,J7:n,fO:Mn(S.split(";")[0]),O8:S.split(";")[1]|| ""};n={FX:S};this.o_&&(q={gvprpro:"v",sq:Z,mt:q.toFixed(3),itag:F,acpns:((b=S.Sb)==null?void 0:b.join("_"))||"none",abid:D},this.S$(q));return n}; g.r.M6=function(q){a:{if(!this.nQ){var Z=ij(this,q);if(!(this.playback.getVideoData().tP()&&(Z==null?0:Z.X7)))break a}Z=void 0}var F=Z;if(!F)return this.S$({gvprp:"ncp",mt:q}),null;Z=F.m2;var B=HUK(this,F.ssdaiAdsConfig);F=F.u_&&F.Tq&&q>=F.Tq?F.u_:void 0;var f=this.playback.getVideoData(),D,G=((D=f.K)==null?void 0:D.containerType)||0;D=f.O4[G];D={Sb:Z?toD(this,Z):[],adsConfig:B,J7:F,fO:Mn(D.split(";")[0]),O8:D.split(";")[1]||""};var n;q={gvprpro:"v",mt:q.toFixed(3),acpns:((n=D.Sb)==null?void 0:n.join("_"))|| "none",abid:Z};this.S$(q);return D}; g.r.Jg=function(q,Z,F,B,f,D){var G=Number(F.split(";")[0]),n=B===3;q=XD5(this,q,Z,B,F,D);this.S$({gdu:1,seg:Z,itag:G,pb:""+!!q});if(!q)return u9(this,Z,n),null;q.locations||(q.locations=new Map);if(!q.locations.has(G)){var b,N;D=(b=q.videoData.getPlayerResponse())==null?void 0:(N=b.streamingData)==null?void 0:N.adaptiveFormats;if(!D)return this.S$({gdu:"noadpfmts",seg:Z,itag:G}),u9(this,Z,n),null;b=D.find(function(U){return U.itag===G}); if(!b||!b.url){var S=q.videoData.videoId;q=[];var l=g.E(D);for(B=l.next();!B.done;B=l.next())q.push(B.value.itag);this.S$({gdu:"nofmt",seg:Z,vid:S,itag:G,fullitag:F,itags:q.join(",")});u9(this,Z,n);return null}q.locations.set(G,new g.O_(b.url,!0))}D=q.locations.get(G);if(!D)return this.S$({gdu:"nourl",seg:Z,itag:G}),u9(this,Z,n),null;D=new gn(D);this.VO&&(D.get("dvc")?this.S$({dvc:D.get("dvc")||""}):D.set("dvc","webm"));(B=(l=this.zm(Z-1,B,f))==null?void 0:l.lD)&&D.set("daistate",B);q.u_&&Z>=q.u_&& D.set("skipsq",""+q.u_);(l=this.playback.getVideoData().clientPlaybackNonce)&&D.set("cpn",l);l=[];q.m2&&(l=toD(this,q.m2),l.length>0&&D.set("acpns",l.join(",")));n||this.Z.set(Z,q);n=null;n=D.get("aids");B=D.fP();(B==null?void 0:B.length)>2048&&this.S$({urltoolong:1,sq:Z,itag:G,len:B.length});this.o_&&(B&&(D=q.cpn,f=q.m2,Q2K(this,D,f),f&&!this.bb.has(f)&&(D=yf7(this,D,f),b=HFD(this,f),this.S$({iofa:D}),this.S$({noawnzd:b-D}),this.S$({acpns:l.join("."),aids:(S=n)==null?void 0:S.replace(/,/g,".")}), this.bb.add(f))),this.S$({gdu:"v",seg:Z,itag:F,ast:q.Rc.toFixed(3),alen:q.durationMs.toFixed(3),acpn:q.cpn,avid:q.videoData.videoId}));return B}; g.r.qS=function(q,Z,F){F=F===void 0?!1:F;var B=kM(this,q,Z);if(B){this.J0&&(this.k$=B);var f=void 0,D=B.m2;if(D){this.S$({skipadonsq:Z,sts:F,abid:D,acpn:B.cpn,avid:B.videoData.videoId});F=this.D.D.get(D);if(!F)return;F=g.E(F);for(D=F.next();!D.done;D=F.next())D=D.value,D.u_=Z,D.Tq=q,D.Rc>B.Rc&&(f=D)}$r(this,this.EP);this.S=B.cpn;JN8(this);this.api.U("html5_ssdai_enable_media_end_cue_range")&&this.playback.JQ(this.S);q=this.playback.getCurrentTime();aRb(this,B,f,q,q,!1,!0);f4B(this)}}; g.r.cD=function(){for(var q=g.E(this.D.K),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.u_=NaN,Z.Tq=NaN;JN8(this);this.S$({rsac:"resetSkipAd",sac:this.S});this.vG.delete(this.S);this.S="";this.J0&&(this.k$=void 0)}; g.r.zm=function(q,Z,F){return this.uL.zm(q,Z,F)}; g.r.U4=D6(57); g.r.mN=function(q,Z,F,B,f,D,G,n,b){B.length>0&&this.S$({onssinfo:1,sq:q,start:Z.toFixed(3),cpns:B.join(","),ds:f.join(","),isVideo:G?1:0});if(this.J0&&this.k$&&this.k$.u_&&B.length>0){F=g.E(B);for(var N=F.next();!N.done;N=F.next())if(N=N.value,N===this.k$.cpn){this.QC!==N&&(this.S$({skiperror:1,sq:q,acpn:this.k$.cpn,skipsq:this.k$.u_||0}),this.QC=N);break}}b&&this.uL.mN(q,G,n,b);if(G){if(B.length&&f.length)for(this.vG.has(B[0])&&this.S$({skipfail:1,sq:q,acpn:B[0]}),q=Z+this.Ef(),G=0;G0&&(this.Nx=0,this.EP="",this.J.U("html5_huli_ssdai_use_playback_state")&&this.To(this.playback.qA(),0),this.api.publish("serverstitchedvideochange"));this.playback.s_(F,B);return!0}; g.r.FK=function(){this.S$({rstdaist:1});this.uL.clearAll()}; g.r.Vz=function(q){var Z;if(q!==((Z=this.j)==null?void 0:Z.identifier))this.S$({ignorenoad:q});else{this.ac.add(q);this.S$({noadrcv:q});var F;((F=this.j)==null?void 0:F.identifier)===q&&Eu(this)}}; g.r.B5=function(q){if(this.nQ)return this.S$({dai_disabled:q.event}),!1;if(this.playback.getVideoData().tP()&&(q.event==="continue"||q.event==="stop"))return!1;var Z=yV(this.api.pB());if(Z=Z?Z.B5(q):!1)this.G={LZ:q.identifier,Mu:q.startSecs};else if(this.G&&this.G.LZ===q.identifier&&q.startSecs>this.G.Mu+1){this.S$({cueStChg:q.identifier,oldSt:this.G.Mu.toFixed(3),newSt:q.startSecs.toFixed(3),abid:this.G.Ja});if(this.G.Ja){var F=q.startSecs-this.G.Mu,B=this.D.D.get(this.G.Ja);if(B){B=g.E(B);for(var f= B.next();!f.done;f=B.next())f=f.value,f.Rc>=0&&(f.Rc+=F*1E3,this.J.U("html5_ssdai_update_timeline_on_start_time_change")&&(f.Ya+=F*1E3),this.S$({newApEt:f.Rc,newApPrt:f.Ya,acpn:f.cpn}))}}this.G.Mu=q.startSecs}this.J.U("html5_ssdai_log_missing_ad_config_reason")&&(Z?this.WG.add(q.identifier):this.WG.has(q.identifier)&&this.WG.delete(q.identifier));return Z}; g.r.uO=function(q){var Z="";q?q.event==="unknown"?Z="unknown":this.WG.has(q.identifier)?this.G&&this.G.LZ===q.identifier?this.G.LZ===q.identifier?Z="pending":cU(this.I_,function(F){return F.identifier===q.identifier})||(Z="noAdsAdded"):Z="wrongAdBreakInfo":Z="unscheduled":Z="noCuepoint"; return Z}; g.r.Dm=function(q){return this.nQ?!1:!!ij(this,q)}; g.r.FH=function(q){var Z=this;if(this.J.U("html5_lifa_ignore_multiple_skips")&&this.zP)return this.S$({ufs_ad:this.S,ufs_cur:this.EP,ufs_cont:this.ji().cpn}),!1;$r(this,this.EP);this.playback.pauseVideo();var F=this.playback.getCurrentTime(),B=this.D.Nr({cpn:this.EP});if(!B)return this.S$({skipFail:F}),!1;this.S=this.EP;this.Dl=!1;this.api.U("html5_ssdai_enable_media_end_cue_range")&&this.playback.JQ(this.S);this.zF(B.m2);v48(this,B,this.ji(),q);DF8(this,F,{seekSource:89,V5:"lifa_skip"});this.zP|| (this.zP=this.events.N(this.api,"progresssync",function(){v$(Z.api.QT(),(0,g.Le)(),"ad_to_video");Z.zP&&(Z.events.Op(Z.zP),Z.zP=null)})); return!0}; g.r.zF=function(q){if(this.playback.getVideoData().tP()){var Z=this.D.D.get(q);if(Z){Z=g.E(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var B=this.K.get(F.cpn);this.K.delete(F.cpn);B&&this.playback.removeCueRange(B);yFD(this.D,F)}this.Z.clear();Z=this.D;var f;F=(f=Z.D.get(q))!=null?f:[];f=g.E(F);for(F=f.next();!F.done;F=f.next())yFD(Z,F.value);Z.D.delete(q);(q=this.Tb.get(q))&&this.J.U("html5_ssdai_new_decoration_logic")&&this.playback.P2(q)}}}; g.r.S$=function(q,Z){((Z===void 0?0:Z)||this.o_||this.playback.getVideoData().tP())&&this.playback.iL("sdai",q)}; var N85=0;g.V(FF,g.J);g.r=FF.prototype;g.r.onCueRangeEnter=function(q){if(this.D===this.app.Vs()){var Z=this.Z.get(q);Z?$Vk(this,Z.target,Z.qg,q):this.Zt("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:q.toString()})}else if(Z=this.K.find(function(f){return f.Wp.o1===q})){var F=Z.Wp,B=F.target; F=F.qg;B?$Vk(this,B,F,q):j2D(this,Z.Ya,F,q)}}; g.r.onQueuedVideoLoaded=function(){var q=this.X;Ke(this);if(q){if(!Va(this,q)){var Z=this.app.Vs();this.Zt("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:Z==null?void 0:Z.getVideoData().clientPlaybackNonce,ccpn:""+q.playerVars.cpn})}this.app.Vs().addCueRange(q.Wp.o1)}}; g.r.seekTo=function(q,Z,F,B){q=q===void 0?0:q;Z=Z===void 0?{}:Z;B=B===void 0?null:B;if(F===void 0?0:F)Cmy(this,q,Z);else{F=this.app.Vs()||null;var f=F===this.G?this.j:null;sX(this,!1);this.Dl=q;this.PG=Z;B!=null&&this.V.start(B);F&&(this.j=f||F.getPlayerState(),F.P0(),this.G=F)}}; g.r.Qc=function(q){g.YM(q,128)&&TpZ(this)}; g.r.isManifestless=function(){return vA(this.D.getVideoData())}; g.r.SU=function(){sX(this,!1);XkZ(this);g.J.prototype.SU.call(this)}; g.r.Zt=function(q,Z){this.D.Zt(new g.xX(q,Z))}; var Kg8=0;var iXb="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.V(VS,g.J);VS.prototype.Uu=function(q){if(q)return this.K.get(q)}; VS.prototype.SU=function(){this.D.removeAll();this.K.removeAll();g.J.prototype.SU.call(this)};g.lft=hG(function(){var q=window.AudioContext||window.webkitAudioContext;try{return new q}catch(Z){return Z.name}});g.V(bs,g.w);g.r=bs.prototype;g.r.SH=function(){g.jP(this.element,g.CF.apply(0,arguments))}; g.r.OT=function(){this.Pe&&(this.Pe.removeEventListener("focus",this.C9),g.X_(this.Pe),this.Pe=null)}; g.r.Fh=function(){this.jU();var q=this.app.C();q.Kk||this.SH("tag-pool-enabled");q.j&&this.SH(g.jL.HOUSE_BRAND);q.playerStyle==="gvn"&&(this.SH("ytp-gvn"),this.element.style.backgroundColor="transparent");q.VO&&(this.fZ=g.NQ("yt-dom-content-change",this.resize,this));this.N(window,"orientationchange",this.resize,this);this.N(window,"resize",this.resize,this)}; g.r.bW=function(q){g.Us(this.app.C());this.Pq=!q;Nw(this)}; g.r.resize=function(){if(this.Pe){var q=this.ZI();if(!q.isEmpty()){this.app.lL.isFullscreen()&&mo()&&this.U6.start();var Z=!g.QW(q,this.w_.getSize()),F=xuy(this);Z&&(this.w_.width=q.width,this.w_.height=q.height);q=this.app.C();(F||Z||this.Gq||q.VO)&&this.app.lL.publish("resize",this.getPlayerSize())}}}; g.r.NB=function(q,Z){this.updateVideoData(Z)}; g.r.updateVideoData=function(q){if(this.Pe){var Z=this.app.C();R_&&(this.Pe.setAttribute("x-webkit-airplay","allow"),q.title?this.Pe.setAttribute("title",q.title):this.Pe.removeAttribute("title"));this.Pe.setAttribute("controlslist","nodownload");Z.cC&&q.videoId&&(this.Pe.poster=q.fm("default.jpg"))}Z=g.Vy(q,"yt:bgcolor");this.jb.style.backgroundColor=Z?Z:"";this.BT=ze(g.Vy(q,"yt:stretch"));this.wJ=ze(g.Vy(q,"yt:crop"),!0);g.hK(this.element,"ytp-dni",q.z3);this.resize()}; g.r.setGlobalCrop=function(q){this.zi=ze(q,!0);this.resize()}; g.r.setCenterCrop=function(q){this.Cu=q;this.resize()}; g.r.LR=function(){}; g.r.getPlayerSize=function(){var q=this.app.C(),Z=this.app.lL.isFullscreen(),F=q.externalFullscreen&&g.FQ(q);if(Z&&mo()&&!F)return new g.d8(window.outerWidth,window.outerHeight);F=!isNaN(this.U1.width)&&!isNaN(this.U1.height);var B=this.app.C().U("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.C().U("web_watch_enable_fs_squeezeback_panels");if(Z&&!F&&B)return new g.d8(this.element.clientWidth,this.element.clientHeight);if(Z||q.c5){if(window.matchMedia){q="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.IR&&this.IR.media===q||(this.IR=window.matchMedia(q));var f=this.IR&&this.IR.matches}if(f)return new g.d8(window.innerWidth,window.innerHeight)}else if(F)return this.U1.clone();return new g.d8(this.element.clientWidth,this.element.clientHeight)}; g.r.ZI=function(){var q=this.app.C().U("enable_desktop_player_underlay"),Z=this.getPlayerSize(),F=g.Ce(this.app.C().experiments,"player_underlay_min_player_width");return q&&this.bH&&Z.width>F?(q=g.Ce(this.app.C().experiments,"player_underlay_video_width_fraction"),new g.d8(Math.min(Z.height*this.getVideoAspectRatio(),Z.width*q),Math.min(Z.height,Z.width*q/this.getVideoAspectRatio()))):Z}; g.r.getVideoAspectRatio=function(){return isNaN(this.BT)?Ok6(this):this.BT}; g.r.getVideoContentRect=function(q){var Z=this.ZI();q=HkG(this,Z,this.getVideoAspectRatio(),q);return new g.vF((Z.width-q.width)/2,(Z.height-q.height)/2,q.width,q.height)}; g.r.Lv=function(q){this.bH=q;this.resize()}; g.r.g0=function(){return this.vO}; g.r.onMutedAutoplayChange=function(){Nw(this)}; g.r.setInternalSize=function(q){g.QW(this.U1,q)||(this.U1=q,this.resize())}; g.r.SU=function(){this.fZ&&g.B8(this.fZ);this.OT();g.w.prototype.SU.call(this)};g.r=xBD.prototype;g.r.click=function(q,Z){this.elements.has(q);this.D.has(q);var F=g.qx();F&&q.visualElement&&g.fv(F,q.visualElement,Z)}; g.r.createClientVe=function(q,Z,F,B){var f=this;B=B===void 0?!1:B;this.elements.has(q);this.elements.add(q);F=i3D(F);q.visualElement=F;var D=g.qx(),G=g.q4();D&&G&&(g.cz("combine_ve_grafts")?Zt(FJ(),F,G):g.jJ(g.y$)(void 0,D,G,F));Z.addOnDisposeCallback(function(){f.elements.has(q)&&f.destroyVe(q)}); B&&this.K.add(q)}; g.r.createServerVe=function(q,Z,F){var B=this;F=F===void 0?!1:F;this.elements.has(q);this.elements.add(q);Z.addOnDisposeCallback(function(){B.destroyVe(q)}); F&&this.K.add(q)}; g.r.destroyVe=function(q){this.elements.has(q);this.elements.delete(q);this.S.delete(q);this.D.delete(q);this.K.delete(q)}; g.r.kB=function(q,Z){this.clientPlaybackNonce!==Z&&(this.clientPlaybackNonce=Z,ca(FJ(),q),qU8(this))}; g.r.setTrackingParams=function(q,Z){this.elements.has(q);Z&&(q.visualElement=g.Td(Z))}; g.r.hZ=function(q,Z,F){this.elements.has(q);Z?this.D.add(q):this.D.delete(q);var B=g.qx(),f=q.visualElement;this.K.has(q)?B&&f&&(Z?g.fs(B,[f]):g.tQ(B,[f])):Z&&!this.S.has(q)&&(B&&f&&g.Bt(B,f,void 0,F),this.S.add(q))}; g.r.hasVe=function(q){return this.elements.has(q)};g.V(g.LM,g.J);g.LM.create=function(q,Z,F,B){try{var f=typeof q==="string"?q:"player"+g.wk(q),D=XC[f];if(D){try{D.dispose()}catch(n){g.mM(n)}XC[f]=null}var G=new g.LM(q,Z,F,B);G.addOnDisposeCallback(function(){XC[f]=null;G.al&&G.al()}); return XC[f]=G}catch(n){throw g.mM(n),(n&&n instanceof Error?n:Error(String(n))).stack;}}; g.r=g.LM.prototype;g.r.BH=function(){return this.visibility}; g.r.o9=function(q){var Z=this.Dv();if(q!==Z){q.getVideoData().autonavState=Z.getVideoData().autonavState;Z.wI(this.Cs,this);var F=Z.getPlaybackRate();Z.dispose();this.Kp.o9(q);q.setPlaybackRate(F);q.e7(this.Cs,this);Wb(this)}}; g.r.Y6=function(){this.hG||(this.hG=g.Eo(a5(),xtk()));return this.hG}; g.r.OT=function(q){if(this.mediaElement){this.Zj&&(this.events.Op(this.Zj),this.Zj=null);g.DJ(this.tD);this.Vs().OT(!0,!1,q);this.template.OT();try{this.U("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Zw()}catch(Z){g.bh(Z)}this.mediaElement=null}}; g.r.l5=function(q,Z,F){if(q!==this.Vs()){var B=null;if(F===void 0||!F){F=this.Vs();B=F.getPlayerState();Vg(this.T3,3);Mp(this,"cuerangesremoved",F.V$());this.jg&&!q.isGapless()&&F.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();F=q.fE()&&F.fE();this.Yk.p8("iv_s");F=F===void 0?!0:F;var f;if(f=this.HZ){f=this.HZ;var D=this.mediaElement;f=!!D&&D===f.mediaElement}f&&(this.OT(),dg(this));f=this.Vs();f.OT(!F);f.wI(this.eJ,this);f.getPlayerType()!==1&&f.dispose();F=this.Kp;F.S=F.D;M$(F)}q.getPlayerType()=== 1&&this.o9(q);F=q.getPlayerType();f=this.Kp.G[F]||null;q!==this.Dv()&&q!==f&&(f==null||f.dispose(),this.Kp.G[F]=q);this.Kp.l5(q);this.mediaElement&&q.setMediaElement(this.mediaElement);q.e7(this.eJ,this);q.kf()?M68(this,"setPresenting",!1):(this.NB("newdata",q,q.getVideoData()),B&&!g.Uh(B,q.getPlayerState())&&this.SJ(new g.H3(q.getPlayerState(),B)),Z=Z&&q.getPlayerType()===1,q.Qq()&&!Z&&this.NB("dataloaded",q,q.getVideoData()),(Z=(Z=q.getVideoData().K)&&Z.video)&&this.lL.NE("onPlaybackQualityChange", Z.quality),Mp(this,"cuerangesadded",q.V$()),Z=q.getPlayerState(),g.p(Z,2)?xM6(this):g.p(Z,8)?q.playVideo():q.us()&&q.pauseVideo(),Z=this.Dv(),q.getPlayerType()===2&&(q.getVideoData().H_=Z.getVideoData().clientPlaybackNonce),q.getPlayerType()!==2||this.md()||(q=q.getVideoData(),Z.Bz(q.clientPlaybackNonce,q.lx||"",q.breakType||0,q.yd,q.videoId||"")))}}; g.r.pH=function(){this.Dv()!==this.Vs()&&this.l5(this.Dv())}; g.r.I1=function(){return this.Kp}; g.r.Nr=function(q){return this.Kp.Nr(q)}; g.r.dj=function(q){return this.Kp.dj(q)}; g.r.Dv=function(){return this.Kp.Dv()}; g.r.Vs=function(){return this.Kp.Vs()}; g.r.iT=D6(44);g.r.AZG=function(){vO(this)||this.H5(5)}; g.r.Vnp=function(){if(!vO(this)){Ok(this);var q=this.Vs(),Z=q.getPlayerState();q.us()?this.pauseVideo():Z.isOrWillBePlaying()&&this.playVideo()}}; g.r.canPlayType=function(q){return UT(q)}; g.r.C=function(){return this.J}; g.r.getVideoData=function(){return this.Vs().getVideoData()}; g.r.E1=D6(11);g.r.AP=function(){return this.Dv().getVideoData()}; g.r.getVideoLoadedFraction=function(q){return(q=this.Nr({playerType:q}))?q.getVideoLoadedFraction():this.Kp.D.getVideoLoadedFraction()}; g.r.Ca=function(){return this.template}; g.r.pB=function(){return this.T3}; g.r.QT=function(){return this.Yk}; g.r.aj=function(q,Z,F){(Z=this.Nr({playerType:Z===void 0?1:Z}))&&Z.uF(q,void 0,F)}; g.r.gV=function(){var q=this.T3.gV();this.lL.publish("videoStatsPingCreated",q);return q}; g.r.getVolume=function(){return Math.round(this.lL.getVolume())}; g.r.isMuted=function(){return this.lL.isMuted()}; g.r.EM=function(){if(this.Dv()===this.Vs()&&this.Rh)return this.Rh.postId}; g.r.Tj_=function(){var q=this;this.U("use_rta_for_player")||(g.em(this.J)?g.kx(this.J,g.he(this.getVideoData())).then(function(Z){$W(a5(),Z);dyy(q.getVideoData(),q.J,q.Y6())}):dyy(this.getVideoData(),this.J,this.Y6()))}; g.r.x5=function(q){this.lL.publish("poTokenVideoBindingChange",q)}; g.r.Mk=function(q){this.lL.publish("d6de4videobindingchange",q)}; g.r.jo=function(){this.L2&&this.L2.jo()}; g.r.fV=function(q){this.L2=q}; g.r.xY=function(q){if(q===1){this.Yk.tick("vr");var Z=this.Vs();Z.eh();iI7(this.Yk,Z.getVideoData(),Vzb(this));UZG(this.T3)}Z=this.J;if(Ap(Z)&&Z.V||g.dh(Z)){var F;(((F=this.Vs().getVideoData())==null?0:F.enableServerStitchedDai)||!this.md())&&this.lL.NE("onAdStateChange",q)}}; g.r.setLoopVideo=function(q){var Z=this.Vs();Z===this.Dv()&&Z.fk()!==q&&(Z.setLoop(q),this.lL.a_("onLoopChange",q))}; g.r.getLoopVideo=function(){return this.Vs().fk()}; g.r.setLoopRange=function(q){var Z=!1;!!this.Rh!==!!q?Z=!0:this.Rh&&q&&(Z=this.Rh.startTimeMs!==q.startTimeMs||this.Rh.endTimeMs!==q.endTimeMs||this.Rh.postId!==q.postId||this.Rh.type!==q.type);if(Z){Z=this.Vs();NM(Z.getVideoData())&&Z.iL("slr",{et:(q==null?void 0:q.endTimeMs)||-1});Z=this.Dv();Z.WZ("applooprange");if(q){var F=new g.u8(q.startTimeMs,q.endTimeMs,{id:"looprange",namespace:"applooprange"});Z.addCueRange(F)}else{this.AP().clipConfig=void 0;var B;((F=this.Rh)==null?void 0:F.type)!=="repeatChapter"|| isNaN(Number((B=this.Rh)==null?void 0:B.loopCount))||(F={loopCount:String(this.Rh.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.nh("repeatChapterLoopEvent",F))}this.Rh=q;this.lL.a_("onLoopRangeChange",q||void 0);this.Dv()===this.Vs()&&(this.Oj(),Z.O9())}}; g.r.getLoopRange=function(){return this.Rh}; g.r.Oj=function(){var q="",Z=this.Dv();this.Rh?Z!==this.Vs()?q="pnea":hDg(this,Z.getCurrentTime())&&(this.Rh.loopCount=0,q="ilr"):q="nlr";var F=this.Vs();if(NM(F.getVideoData()))if(this.U("html5_gapless_log_loop_range_info")){var B,f;F.iL("slrre",{rej:q,ct:Z.getCurrentTime(),lst:(B=this.Rh)==null?void 0:B.startTimeMs,let:(f=this.Rh)==null?void 0:f.endTimeMs})}else F.iL("slrre",{});q||mYK(this)}; g.r.setPlaybackRate=function(q,Z){if(!isNaN(q)){q=g1g(this,q);var F=this.Dv();F.getPlaybackRate()!==q&&(F.setPlaybackRate(q),Z&&!this.J.G&&g.e0("yt-player-playback-rate",q),this.lL.NE("onPlaybackRateChange",q))}}; g.r.getCurrentTime=function(q,Z){Z=Z===void 0?!0:Z;var F=this.Kp.X9;if(F)return F.getCurrentTime();var B=q===2&&this.getVideoData().enableServerStitchedDai;F=null;B?F=this.Vs():F=this.Nr({playerType:q});return F?B&&this.EZ?(q=this.Kp.j)?q.getCurrentTime(Z):F.getCurrentTime():Z?(Z=KY(this,F),xA(this,Z.getCurrentTime(),Z)):F.getCurrentTime():this.Kp.D.getCurrentTime()}; g.r.WX=function(){var q=this.Nr({playerType:void 0});if(!q)return this.Kp.D.WX();q=KY(this,q);return xA(this,q.WX(),q)}; g.r.getDuration=function(q,Z){Z=Z===void 0?!0:Z;var F=this.Kp.X9;if(F)return F.getDuration();F=this.getVideoData();var B=q===2&&F.enableServerStitchedDai,f=null;B?f=this.Vs():f=this.Nr({playerType:q});if(!f)return this.Kp.D.getDuration();if(F.hasProgressBarBoundaries()&&!B){var D,G=Number((D=F.progressBarStartPosition)==null?void 0:D.utcTimeMillis),n;D=Number((n=F.progressBarEndPosition)==null?void 0:n.utcTimeMillis);if(!isNaN(G)&&!isNaN(D))return(D-G)/1E3}if(NM(F)&&!F.isLivePlayback)return Zn(this, q);if(Z)return q=vZ(this,f),xA(this,q.getDuration(),q);if(B&&this.EZ){if(this.U("html5_huli_ssdai_use_playback_state"))return q=this.Kp,q=q.K===q.j?q.K:null,(q==null?void 0:q.getDuration())||0;var b;return((b=this.Kp.j)==null?void 0:b.getDuration())||0}return f.getDuration()}; g.r.rh=function(q){var Z=this.Nr({playerType:q});return Z?this.md(Z)?(Z=vZ(this,Z),Z.rh()-Z.getCurrentTime()+this.getCurrentTime(q)):Z.rh():this.Kp.D.rh()}; g.r.finishSegmentByCpn=function(){return[]}; g.r.Fh=function(){this.template.Fh();var q=this.lL;q.state.element=this.template.element;var Z=q.state.element,F;for(F in q.state.D)q.state.D.hasOwnProperty(F)&&(Z[F]=q.state.D[F]);(q=AyD(this.template.element))&&this.events.N(this.template,q,this.onFullscreenChange)}; g.r.getDebugText=function(q){var Z=this.Dv().Ey(q),F=this.Vs();if(F!==this.Dv()){F=F.Ey(q);for(var B=g.E(Object.keys(F)),f=B.next();!f.done;f=B.next())f=f.value,Z["ad"+f]=F[f];if(q){F=Z;B={};if(f=us(document,"movie_player"))B.bounds=f.getBoundingClientRect(),B["class"]=f.className;f={};var D=g.uK("video-ads");D?(J5Z(D,f),f.html=D.outerHTML):f.missing=1;D={};var G=g.uK("videoAdUiSkipContainer"),n=g.uK("ytp-ad-skip-button-container"),b=g.uK("ytp-skip-ad-button"),N=G||n||b;N?(J5Z(N,D),D.ima=G?1:0,D.bulleit= n?1:0,D.component=b?1:0):D.missing=1;B=JSON.stringify({player:B,videoAds:f,skipButton:D});F.ad_skipBtnDbgInfo=B}}q&&this.mediaElement&&(Z["0sz"]=""+(+qh(this.mediaElement.getSize())===0),Z.op=this.mediaElement.FR("opacity"),F=this.mediaElement.xX().y+this.mediaElement.getSize().height,Z.yof=""+(+F<=0),Z.dis=this.mediaElement.FR("display"));q&&((q=(0,g.D$)())&&(Z.gpu=q),(q=this.J.playerStyle)&&(Z.ps=q),this.J.Oc&&(Z.webview=1),(q=this.webPlayerContextConfig.jsUrl)&&(Z.js=q));Z.debug_playbackQuality= this.lL.getPlaybackQuality(1);Z.debug_date=(new Date).toString();Z.origin=window.origin;Z.timestamp=Date.now();delete Z.uga;delete Z.q;return JSON.stringify(Z,null,2)}; g.r.getFeedbackProductData=function(){var q={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.C().experiments.experimentIds.join(", "),player_release:z[25]},Z=this.getPlayerStateObject().xb;Z&&(q.player_error_code=Z.errorCode,q.player_error_details=JSON.stringify(Z.errorDetail));return q}; g.r.getPresentingPlayerType=function(q){if(this.appState===1)return 1;if(vO(this))return 3;var Z,F,B;return(q&&this.J.A1().D.Q5(HQK)?(B=(Z=this.Kp.K)==null?void 0:Z.isAd())!=null&&B:(F=this.EZ)==null?0:Gj(F,this.getCurrentTime()))?2:this.Vs().getPlayerType()}; g.r.Rr=function(){return!1}; g.r.getPlayerStateObject=function(q){var Z=this.Kp.X9;return Z?Z.getPlayerState():this.Nr({playerType:q}).getPlayerState()}; g.r.getAppState=function(){return this.appState}; g.r.vSa=function(q){switch(q.type){case "loadedmetadata":this.dK.start();q=g.E(this.yJ);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,wsB(this,Z.id,Z.ejc,Z.I6G,void 0,!1);this.yJ=[];break;case "loadstart":this.Yk.p8("gv");break;case "progress":case "timeupdate":vy(q.target.eW())>=2&&this.Yk.p8("l2s");break;case "playing":g.pi&&this.dK.start();if(g.em(this.J))q=!1;else{Z=g.rl(this.pB());q=this.mediaElement.FR("display")==="none"||qh(this.mediaElement.getSize())===0;var F=A6(this.template),B=this.Vs().getVideoData(), f=g.SQ(this.J);B=KS(B);Z=!F||Z||f||B||this.J.I_;q=q&&!Z}q&&(q=this.Vs(),q.xm(),this.getVideoData().Tb||(this.getVideoData().Tb=1,this.K2(),q.playVideo()))}}; g.r.oSE=function(q){this.lL.Ry("onLoadProgress",q)}; g.r.TqG=function(){this.lL.publish("playbackstalledatstart")}; g.r.IJU=function(q,Z){this.lL.publish("sabrCaptionsDataLoaded",q,Z)}; g.r.ga$=function(q){this.Vs().eR(q)}; g.r.yPs=function(q){this.Vs().Ij(q)}; g.r.MCP=function(q){q=KY(this,this.Vs());q=xA(this,q.getCurrentTime(),q);this.lL.NE("onVideoProgress",q);this.J.vu&&V$(this,this.visibility.LD())&&this.pauseVideo()}; g.r.Xes=function(){this.lL.NE("onAutoplayBlocked");var q=this.Vs().getVideoData();q&&(q.Ft=!0);g.FQ(this.J)&&(q={autoplayBrowserPolicy:Iw(),autoplayIntended:wM(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.nh("embedsAutoplayStatusChanged",q))}; g.r.LsE=function(){this.lL.publish("progresssync")}; g.r.xra=function(){this.lL.Ry("onPlaybackPauseAtStart")}; g.r.kba=function(q){if(this.getPresentingPlayerType()===1){g.YM(q,1)&&!g.p(q.state,64)&&this.AP().isLivePlayback&&this.Dv().isAtLiveHead()&&this.lL.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.YM(q,2)){if(this.Rh&&this.Rh.endTimeMs>=(this.getDuration()-1)*1E3){mYK(this);return}xM6(this)}if(g.p(q.state,128)){var Z=q.state;this.cancelPlayback(5);Z=Z.xb;JSON.stringify({errorData:Z,debugInfo:this.getDebugText(!0)});this.lL.NE("onError",PQX(Z.errorCode));this.lL.Ry("onDetailedError",{errorCode:Z.errorCode, errorDetail:Z.errorDetail,message:Z.errorMessage,messageKey:Z.GV,cpn:Z.cpn});(0,g.Le)()-this.J.yd>6048E5&&this.lL.Ry("onReloadRequired")}Z={};if(q.state.isPlaying()&&!q.state.isBuffering()&&!dP("pbresume","ad_to_video")&&dP("_start","ad_to_video")){var F=this.getVideoData();Z.clientPlaybackNonce=F.clientPlaybackNonce;F.videoId&&(Z.videoId=F.videoId);g.ZR(Z,"ad_to_video");n4("pbresume",void 0,"ad_to_video");UZG(this.T3)}this.lL.publish("applicationplayerstatechange",q)}}; g.r.SJ=function(q){this.Kp.X9||this.lL.publish("presentingplayerstatechange",q)}; g.r.Qc=function(q){Rb(this,cP(q.state));g.p(q.state,1024)&&this.lL.isMutedByMutedAutoplay()&&(Ui(this,{muted:!1,volume:this.TA.volume},!1),IU(this,!1))}; g.r.onPlayerRequestSent=function(q){this.lL.a_("onPlayerRequestSent",q)}; g.r.gJ=function(q,Z){q==="newdata"&&Wb(this);this.lL.publish("applicationvideodatachange",q,Z)}; g.r.Wsr=function(q,Z){this.U("html5_afmt_change_update_volume")&&Ok(this);this.lL.Ry("onPlaybackAudioChange",this.lL.getAudioTrack().fB.name);this.lL.publish("internalaudioformatchange",this.lL.getAudioTrack().fB.id,Z)}; g.r.J0_=function(q){var Z=this.Vs().getVideoData();q===Z&&this.lL.NE("onPlaybackQualityChange",q.K.video.quality)}; g.r.O_=function(){var q=this.Kp.G[2]||null;q&&(q=q.getVideoData(),this.Vs().iL("ssdai",{cleanaply:1,acpn:q==null?void 0:q.clientPlaybackNonce,avid:q.videoId,isDai:this.AP().enableServerStitchedDai?1:0}),delete this.Kp.G[2])}; g.r.ESs=function(q,Z){this.NB(q,this.Vs(),Z)}; g.r.NB=function(q,Z,F){this.J.Nl()&&Z.iL("vdc",{type:q,vid:F.videoId||"",cpn:F.clientPlaybackNonce||""});Z===this.Dv()&&(this.J.UT=F.oauthToken);Z===this.Dv()&&(this.getVideoData().enableServerStitchedDai&&!this.EZ?(this.Dv().iL("sdai",{initSstm:1}),this.EZ=new g.BZ(this.lL,this.J,this.Dv(),this)):!this.getVideoData().enableServerStitchedDai&&this.EZ&&(this.EZ.dispose(),this.EZ=null));if(q==="newdata")Vg(this.T3,2),this.lL.publish("videoplayerreset",Z);else{if(!this.mediaElement)return;if(q==="dataloaded")if(this.Dv()=== this.Vs()){if(a8B(F.Qs,F.on),!this.Dv().getPlayerState().isError()){var B=vO(this);this.AP().isLoaded();B&&this.H5(6);BZD(this);qfb(this.T3)||Of7(this)}}else BZD(this);if(Z.getPlayerType()===1&&(this.J.dU&&tnX(this),this.getVideoData().isLivePlayback&&!this.J.Gy&&this.uo("html5.unsupportedlive",2,"DEVICE_FALLBACK"),F.isLoaded()&&((rRK(F)||this.getVideoData().u2)&&this.lL.publish("legacyadtrackingpingchange",this.getVideoData()),F.hasProgressBarBoundaries()))){var f;B=Number((f=this.getVideoData().progressBarEndPosition)== null?void 0:f.utcTimeMillis)/1E3;!isNaN(B)&&(f=this.rh())&&(f-=this.getCurrentTime(),B=(B-f)*1E3,f=this.ST.progressEndBoundary,(f==null?void 0:f.start)!==B&&(f&&this.RK([f]),B=new g.u8(B,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.Dv().addCueRange(B),this.ST.progressEndBoundary=B))}this.lL.publish("videodatachange",q,F,Z.getPlayerType())}this.lL.NE("onVideoDataChange",{type:q,playertype:Z.getPlayerType()});this.Oj();(q=F.m4)?this.VR.kB(q,F.clientPlaybackNonce): qU8(this.VR)}; g.r.pZ=function(){l_(this,null);this.lL.Ry("onPlaylistUpdate")}; g.r.zrE=function(q){delete this.ST[q.getId()];this.Dv().removeCueRange(q);a:{q=this.getVideoData();var Z,F,B,f,D,G,n,b,N,S,l=((Z=q.BG)==null?void 0:(F=Z.contents)==null?void 0:(B=F.singleColumnWatchNextResults)==null?void 0:(f=B.autoplay)==null?void 0:(D=f.autoplay)==null?void 0:D.sets)||((G=q.BG)==null?void 0:(n=G.contents)==null?void 0:(b=n.twoColumnWatchNextResults)==null?void 0:(N=b.autoplay)==null?void 0:(S=N.autoplay)==null?void 0:S.sets);if(l)for(Z=g.E(l),F=Z.next();!F.done;F=Z.next())if(F= F.value,f=B=void 0,F=F.autoplayVideo||((B=F.autoplayVideoRenderer)==null?void 0:(f=B.autoplayEndpointRenderer)==null?void 0:f.endpoint),B=g.C(F,g.jt),D=f=void 0,F!=null&&((f=B)==null?void 0:f.videoId)===q.videoId&&((D=B)==null?0:D.continuePlayback)){q=F;break a}q=null}(Z=g.C(q,g.jt))&&this.lL.a_("onPlayVideo",{sessionData:{autonav:"1",itct:q==null?void 0:q.clickTrackingParams},videoId:Z.videoId,watchEndpoint:Z})}; g.r.H5=function(q){q!==this.appState&&(q===2&&this.getPresentingPlayerType()===1&&(Rb(this,-1),Rb(this,5)),this.appState=q,this.lL.publish("appstatechange",q))}; g.r.uo=function(q,Z,F,B,f){this.Dv().PL(q,Z,F,B,f)}; g.r.Iz=D6(13);g.r.isAtLiveHead=function(q,Z){Z=Z===void 0?!1:Z;var F=this.Nr({playerType:q});if(!F)return this.Kp.D.isAtLiveHead();q=vZ(this,F);F=KY(this,F);return q!==F?q.isAtLiveHead(xA(this,F.getCurrentTime(),F),!0):q.isAtLiveHead(void 0,Z)}; g.r.BY=function(){var q=this.Nr({playerType:void 0});return q?vZ(this,q).BY():this.Kp.D.BY()}; g.r.seekTo=function(q,Z,F,B,f,D){Z=Z!==!1;if(B=this.Nr({playerType:B}))if(this.appState===2&&Vk(this),this.md(B))QM(this)?this.EZ.seekTo(q,{seekSource:f},Z,F):this.h0.seekTo(q,{seekSource:f},Z,F);else{this.U("html5_sabr_csdai_seek_log")||(D="");var G;B.seekTo(q,{zf:!Z,RO:F,V5:"application"+((G=D)!=null?G:""),seekSource:f})}}; g.r.seekBy=function(q,Z,F,B){this.seekTo(this.getCurrentTime()+q,Z,F,B,void 0,"_by")}; g.r.e7P=function(){this.lL.NE("SEEK_COMPLETE")}; g.r.drF=function(){this.lL.a_("onAbnormalityDetected")}; g.r.FsE=function(q){this.lL.a_("onSnackbarMessage",q)}; g.r.qp_=function(q){var Z=this.Vs(),F=Z.getVideoData();if(this.appState===1||this.appState===2)F.startSeconds=q;this.appState===2?g.p(Z.getPlayerState(),512)||Vk(this):this.lL.NE("SEEK_TO",q)}; g.r.jcn=function(){this.lL.publish("airplayactivechange")}; g.r.tnU=function(){this.lL.publish("airplayavailabilitychange")}; g.r.showAirplayPicker=function(){this.Vs().i_()}; g.r.Nq_=function(){this.lL.publish("beginseeking")}; g.r.Opp=function(){this.lL.publish("endseeking")}; g.r.getStoryboardFormat=function(q){return(q=this.Nr({playerType:q}))?vZ(this,q).getStoryboardFormat():this.Kp.D.getStoryboardFormat()}; g.r.RV=function(q){return(q=this.Nr({playerType:q}))?vZ(this,q).getVideoData().RV():this.Kp.D.RV()}; g.r.md=function(q){q=(q||this.Vs()).getVideoData();if(QM(this))q=q===this.EZ.playback.getVideoData();else a:{var Z=this.h0;if(q===Z.D.getVideoData()&&Z.K.length)q=!0;else{Z=g.E(Z.K);for(var F=Z.next();!F.done;F=Z.next())if(q.fp===F.value.fp){q=!0;break a}q=!1}}return q}; g.r.gt=function(q,Z,F,B,f,D,G,n){var b=QM(this);this.Vs().iL("appattl",{sstm:this.EZ?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:b});b?(F=gNE(this.EZ,q,Z,F,B,f,D,G,n),q=(F==null?void 0:F.fp)||"",(this.U("html5_ssdai_new_decoration_logic")||this.Dv().getVideoData().E9)&&this.Dv().y4(n||"",Z,(F==null?void 0:F.clientPlaybackNonce)||"")):q=avD(this.h0,q,F,B,f,D);return q}; g.r.Qu=function(q,Z,F,B,f,D,G,n){if(QM(this)){var b;(b=this.EZ)==null||gNE(b,q,Z,F,B,f,D,G,n)}}; g.r.Vz=function(q){(this.U("html5_ssdai_new_decoration_logic")||this.Dv().getVideoData().E9)&&this.Dv().y4(q,"","");var Z;(Z=this.EZ)==null||Z.Vz(q)}; g.r.UM=function(q,Z){q=q===void 0?-1:q;Z=Z===void 0?Infinity:Z;QM(this)||XkZ(this.h0,q,Z)}; g.r.P_=function(q,Z,F){if(QM(this)){var B=this.EZ,f=B.D.Nr({fp:q});f?(F===void 0&&(F=f.Ya),Bd7(B,f,Z,F)):B.gp("Invalid_timelinePlaybackId_"+q+"_specified")}else{B=this.h0;f=null;for(var D=g.E(B.K),G=D.next();!G.done;G=D.next())if(G=G.value,G.fp===q){f=G;break}f?(F===void 0&&(F=f.Ya),ke8(B,f,Z,F)):Xe(B,"InvalidTimelinePlaybackId timelinePlaybackId="+q)}}; g.r.enqueueVideoByPlayerVars=function(q,Z,F,B){F=F===void 0?Infinity:F;B=B===void 0?"":B;this.md();q=new g.wc(this.J,q);B&&(q.fp=B);kL(this,q,Z,F)}; g.r.queueNextVideo=function(q,Z,F,B,f){F=F===void 0?NaN:F;q=this.preloadVideoByPlayerVars(q,Z===void 0?1:Z,F,B===void 0?"":B,f===void 0?"":f);Z=this.Vs();q&&(this.U("html5_check_queue_on_data_loaded")?this.C().supportsGaplessShorts()&&Z.getVideoData().X&&(F=this.Wt,B=this.jg.Z,F.G!==q&&(F.K=Z,F.G=q,F.S=1,F.D=q.getVideoData(),F.Z=B,F.D.isLoaded()?F.j():F.D.subscribe("dataloaded",F.j,F))):(F=NU6(Z,q,this.jg.Z),F!=null?(Z.iL("sgap",F),Z.getVideoData().X&&Z.CK(!1)):(q=q.getVideoData(),Z=this.Wt,Z.D!== q&&(Z.D=q,Z.S=1,q.isLoaded()?Z.X():Z.D.subscribe("dataloaded",Z.X,Z)))))}; g.r.uM=function(q,Z,F,B){var f=this;F=F===void 0?0:F;B=B===void 0?0:B;vZ(this,this.Vs()).xM();BX7(this.jg,q,Z,F,B).then(function(){f.lL.Ry("onQueuedVideoLoaded")},function(){})}; g.r.d1=function(){return this.jg.d1()}; g.r.IE=function(q){var Z=this.jg.D;return Z?Z.QN(q):!1}; g.r.clearQueue=function(q,Z){this.jg.clearQueue(q===void 0?!1:q,Z===void 0?!1:Z)}; g.r.loadVideoByPlayerVars=function(q,Z,F,B,f,D){Z=Z===void 0?1:Z;var G=this.Dv();if(Z===2&&this.AP().enableServerStitchedDai&&G&&!G.hS())return G.iL("lvonss",{vid:(q==null?void 0:q.videoId)||"",ptype:Z}),!1;var n=!1;G=new g.wc(this.J,q);G.zE=D;g.d9(this.J)&&!G.Pf&&L0(this.Yk);var b;D=this.Yk;var N=(b=G.Dl)!=null?b:"";D.timerName=N;this.Yk.KE("pl_i");this.U("web_player_early_cpn")&&G.clientPlaybackNonce&&this.Yk.infoGel({clientPlaybackNonce:G.clientPlaybackNonce});M8K(G).supportsVp9Encoding===!1&& this.Vs().iL("noVp9enc",{});if(this.C().supportsGaplessShorts()){b=JVK(this.jg,G,Z);if(b==null){Rb(this,-1);var S;((S=this.jg.D)==null?0:S.getVideoData().isAd())||uF(this);q=this.jg;q.app.C().U("html5_gapless_new_slr")?FB(q.app,"gaplessshortslooprange"):q.app.setLoopRange(null);q.app.getVideoData().YL=!0;var l;(l=q.D)==null||l.jT();var U;(U=q.D)==null||U.iB();F={V5:"gapless_to_next_video",seekSource:60,qH:q.Z.D};B=g.Ce(q.app.C().experiments,"html5_gapless_seek_offset");f=cVX(q);if(q.Z.D){var u;G= ((u=q.S)==null?void 0:jE(u))||{};u=G.w$;G=G.K0;G!=null&&u!=null&&(f=G-u+.001)}var P;(P=q.app.Vs())==null||P.seekTo(f+B,F);if(!q.app.getPlayerStateObject(Z).isPlaying()){var W;(W=q.app.Vs())==null||W.playVideo(!0)}var H;(H=q.app.Vs())==null||H.X2();q.X();return!0}P=this.U("html5_shorts_gapless_preload_fallback");W=this.jg.D;P&&W&&!W.jU()&&(H=W.getVideoData(),this.Kp.X.set(UO(Z,H),W,3600));this.jg.clearQueue(P);this.Vs().iL("sgap",{f:b})}if(f){for(;G.Xk.length&&G.Xk[0].isExpired();)G.Xk.shift();P=G.Xk.length- 1;n=P>0&&f.K(G.Xk[P])&&f.K(G.Xk[P-1]);G.Xk.push(f)}F||(q&&Vd7(q)?(VA(this.J)&&!this.gF&&(q.fetch=0),l_(this,q)):this.playlist&&l_(this,null),q&&(this.gF=eA(!1,q.external_list)));this.lL.publish("loadvideo");P=this.Ba(G,Z,B);n&&this.uo("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+G.Xk.join()).replace(/[;:,]/g,"_"));return P}; g.r.preloadVideoByPlayerVars=function(q,Z,F,B,f){Z=Z===void 0?1:Z;F=F===void 0?NaN:F;f=f===void 0?"":f;B=Z;var D=f,G=Ze(q);if(B=this.Kp.X.get(B+"_"+G+"_"+D+"_"+ +(q.autonav==="1"||q.autonav===!0)+ +(q.autoplay==="1"||q.autoplay===!0||q.autoplay===1))||null)return B;q=new g.wc(this.J,q);f&&(q.fp=f);f=UO(Z,q);B=this.Vs();D=UO(B.getPlayerType(),B.getVideoData());f===D?(B.x3(!0),q.dispose(),F=null):(q.UT=!0,B=iu(this,Z,q,!0),(Z!==1||!CV(this.J)||this.J.U("html5_allow_multiview_tile_preload")&&q.Dd)&& B.x3(!0),this.Kp.X.set(f,B,F||3600),F=B);return F}; g.r.setMinimized=function(q){this.visibility.setMinimized(q);(q=Et9(this.T3))&&(this.isMinimized()?q.load():q.unload());this.lL.publish("minimized")}; g.r.setInline=function(q){this.visibility.setInline(q)}; g.r.setInlinePreview=function(q){this.visibility.setInline(q)}; g.r.K8=function(q){nKy(this,q)||this.visibility.K8(q)}; g.r.setSqueezeback=function(q){this.visibility.setSqueezeback(q)}; g.r.Lu=function(){var q,Z=(q=this.mediaElement)==null?void 0:q.QO();Z&&(this.J.Fq&&zd(O$(function(){return document.exitFullscreen()}),function(){}),zd(O$(function(){return Gg(Z)}),function(){}))}; g.r.hr$=function(){this.mediaElement.QO();this.mediaElement.QO().webkitPresentationMode==="picture-in-picture"?this.K8(!0):this.K8(!1)}; g.r.togglePictureInPicture=function(){this.Vs().togglePictureInPicture()}; g.r.Ba=function(q,Z,F){var B=this;Z=Z===void 0?1:Z;dP("_start",this.Yk.timerName)||g.jJ(Ty)(void 0,this.Yk.timerName);var f=!1,D=m3(this,Z,q,!1);D?(f=!0,q.dispose()):(D=iu(this,Z,q,!0,F),(this.U("html5_onesie")||this.U("html5_load_before_stop"))&&D.U9()&&D.x3(),this.dK.stop(),Z===1&&Z!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,Z),this.l5(D));D===this.Dv()&&(this.J.UT=q.oauthToken);if(!D.U9())return!1;if(D===this.Dv()){this.H5(1);if(this.J.U("html5_allow_multiview_tile_preload")&& f&&D.getVideoData().Dd)return D.iL("app_lv",{pdl:D.Qq()}),D.Qq()?OyD(this,D):D.subscribe("internalvideodatachange",function(G){G==="dataloaded"&&OyD(B,D)},this),!0; q=Vk(this);f&&this.U("html5_player_preload_ad_fix")&&D.getPlayerType()===1&&D.Qq()&&this.NB("dataloaded",D,D.getVideoData());return q}D.M$();return!0}; g.r.cueVideoByPlayerVars=function(q,Z){var F=this;Z=Z===void 0?1:Z;var B=this.Dv();if(this.AP().enableServerStitchedDai&&B&&!B.hS()&&q&&Object.keys(q).length>0)B.iL("qvonss",{vid:(q==null?void 0:q.videoId)||"",ptype:Z});else if(q&&Vd7(q))if(this.mV=!0,l_(this,q),(q=g.uw(this.playlist))&&q.hP())SK(this,q,Z);else this.playlist.onReady(function(){yU(F)}); else{Z||(Z=this.getPresentingPlayerType());Z===1&&this.pZ();B=new g.wc(this.J,q);var f=g.FQ(this.J)&&!this.J.uL&&Z===1&&!B.isAd()&&!B.lx;this.lL.publish("cuevideo");f?(this.Vs().getVideoData().loading=!0,sIk(B,q?q:{}).then(function(D){SK(F,D,Z)}),B.dispose()):SK(this,B,Z)}}; g.r.TQ=function(q,Z,F,B,f,D,G){if(!q&&!F)throw Error("Playback source is invalid");if(ph(this.J)||g.Za(this.J))return Z=Z||{},Z.lact=zG(),Z.vis=this.lL.getVisibilityState(),this.lL.a_("onPlayVideo",{videoId:q,watchEndpoint:D,sessionData:Z,listId:F}),!1;N$K(this.Yk);this.Yk.reset();q={video_id:q};B&&(q.autoplay="1");B&&(q.autonav="1");D&&(q.player_params=D.playerParams);G&&(q.oauth_token=G);F?(q.list=F,this.loadPlaylist(q)):this.loadVideoByPlayerVars(q,1);return!0}; g.r.cuePlaylist=function(q,Z,F,B){this.mV=!0;jI9(this,q,Z,F,B)}; g.r.loadPlaylist=function(q,Z,F,B){this.mV=!1;jI9(this,q,Z,F,B)}; g.r.Nq=function(){return this.lL.isMutedByMutedAutoplay()?!1:this.Kp.X9?!0:!(!this.playlist||!this.playlist.jr())}; g.r.gr=D6(5); g.r.nextVideo=function(q,Z){var F=g.rp(this.Dv().getVideoData());g.lw(this.lL)&&F?this.TQ(F.videoId,Z?F.RH:F.sessionData,F.playlistId,Z,void 0,F.fu||void 0):this.gF?this.lL.Ry("onPlaylistNext"):this.getPresentingPlayerType()===3?v0(this.T3).nextVideo():!this.playlist||VA(this.J)&&!this.lL.isFullscreen()||(this.playlist.jr(q)&&oBE(this.playlist,Qa8(this.playlist)),this.playlist.loaded?(q=Z&&this.J.U("html5_player_autonav_logging"),Z&&this.lL.publish("playlistautonextvideo"),this.Ba(g.uw(this.playlist,void 0, Z,q),1)):this.mV=!1)}; g.r.previousVideo=function(q){this.gF?this.lL.Ry("onPlaylistPrevious"):this.getPresentingPlayerType()===3?v0(this.T3).Dw():!this.playlist||VA(this.J)&&!this.lL.isFullscreen()||(this.playlist.MS(q)&&oBE(this.playlist,xx9(this.playlist)),this.playlist.loaded?this.Ba(g.uw(this.playlist),1):this.mV=!1)}; g.r.playVideoAt=function(q){this.gF?this.lL.Ry("onPlaylistIndex",q):this.playlist&&(this.playlist.loaded?this.Ba(g.uw(this.playlist,q),1):this.mV=!1,oBE(this.playlist,q))}; g.r.getPlaylist=function(){return this.playlist}; g.r.Lh=D6(19);g.r.R9=function(q){this.yJ=g.uh(this.yJ,function(D){return D.id!==q}); for(var Z=this.Dv(),F=Z.V$(),B=0;B0&&(b=Math.floor(N/1E3))}b=Z?Z.jC:b;var S={AD_BLOCK:this.D++,AD_BREAK_LENGTH:b,AUTONAV_STATE:S0(this.player.C()),CA_TYPE:"image",CPN:n.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.BY()*1E3,LACT:zG(),LIVE_INDEX:Z?this.S++:1,LIVE_TARGETING_CONTEXT:Z&&Z.context?Z.context:"",MIDROLL_POS:D? Math.round(D.start/1E3):0,MIDROLL_POS_MS:D?Math.round(D.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Ca().ZI().height,P_W:this.player.Ca().ZI().width,YT_REMOTE:f?f.join(","):""},l=oe(q8);Object.keys(l).forEach(function(u){l[u]!=null&&(S[u.toUpperCase()]=l[u].toString())}); F!==""&&(S.BISCOTTI_ID=F);F={};eE(q)&&(F.sts="20363",(Z=this.player.C().forcedExperiments)&&(F.forced_experiments=Z));var U=Z8(g.VT(q,S),F);return U.split("?").length!==2?HI(Error("Invalid AdBreakInfo URL")):g.kx(this.player.C(),n==null?void 0:n.oauthToken).then(function(u){if(u&&Ec()){var P=a5();$W(P,u)}u=B.player.Y6(P);P=Uh9(B,U,S,n.isMdxPlayback,G);return g.Av(u,P,"/youtubei/v1/player/ad_break").then(function(W){return W})})}; jd.prototype.reset=function(){this.S=this.D=1};g.V(EeK,jd); EeK.prototype.K=function(q,Z,F){Z=Z===void 0?{}:Z;var B=Z.XK;var f=Z.o1;var D=Z.cueProcessedMs;F=F===void 0?"":F;Z=this.D;this.D++;var G=this.player.C().U("h5_disable_macro_substitution_in_get_ad_break")?q:m16(this,q,{XK:B,o1:f,cueProcessedMs:D},F,Z);if(G.split("?").length!==2)return Math.random()<.1&&g.bh(Error("Invalid AdBreakInfo URL")),HI(Error("Invalid AdBreakInfo URL"));var n=this.player.getVideoData(1).isMdxPlayback,b=F;F=Dh8.exec(G);F=F!=null&&F.length>=2?F[1]:"";q=Gty.test(G);var N=ziG.exec(G); N=N!=null&&N.length>=2?N[1]:"";var S=nyK.exec(G);S=S!=null&&S.length>=2&&!Number.isNaN(Number(S[1]))?Number(S[1]):1;var l=boD.exec(G);l=l!=null&&l.length>=2?l[1]:"0";var U=tz(this.player.C().JW),u=g.CN(this.player.getVideoData(1).uL,!0);NM6(this,u,G,b===""?"":b,this.player.C(),this.player.getVideoData(1));b={splay:!1,lactMilliseconds:String(zG()),playerHeightPixels:Math.trunc(this.player.Ca().ZI().height),playerWidthPixels:Math.trunc(this.player.Ca().ZI().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20363,autonavState:S0(this.player.C())};if(n){n={};var P=this.player.C().jN;cwD(n,P?P.join(","):"")&&(b.mdxContext=n)}if(n=gyg.includes(U)?void 0:g.$0("PREF")){P=n.split(RegExp("[:&]"));for(var W=0,H=P.length;W1&&X[1].toUpperCase()==="TRUE"){u.user.lockedSafetyMode=!0;break}}b.autoCaptionsDefaultOn=SOB(n)}G=lbb.exec(G);(G=G!=null&&G.length>=2?G[1]:"")&&N&&(u.user.credentialTransferTokens= [{token:G,scope:"VIDEO"}]);G={contentPlaybackContext:b};b=this.player.getVideoData(1).getGetAdBreakContext();n=this.player.getVideoData(1).clientPlaybackNonce;P=D!==void 0?Math.round(D).toString():void 0;W=(B==null?0:B.context)?B.context:void 0;H=0;D&&f&&!B&&(f=f.end-f.start,f>0&&(H=Math.floor(f/1E3)));B=(B=Math.trunc((B?B.jC:H)*1E3))?String(B):void 0;f=this.player.BY()*1E3;f=Number.isNaN(f)?0:Math.trunc(f);Z={adBlock:Z,params:F,breakIndex:S,breakPositionMs:l,clientPlaybackNonce:n,topLevelDomain:U, isProxyAdTagRequest:q,context:u,overridePlaybackContext:G,cueProcessedMs:P,videoId:N?N:void 0,liveTargetingParams:W,breakLengthMs:B,driftFromHeadMs:f?String(f):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:b?b:void 0};return fn9(this,Z)};var uKB={l9p:"replaceUrlMacros",yrE:"onAboutThisAdPopupClosed",t5p:"executeCommand"};Ri.prototype.Nf=function(){return"adPingingEndpoint"}; Ri.prototype.FA=function(q,Z,F){UVG(this.wU.get(),q,Z,F)};cA.prototype.Nf=function(){return"changeEngagementPanelVisibilityAction"}; cA.prototype.FA=function(q){this.B.a_("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:q})};J0.prototype.Nf=function(){return"loggingUrls"}; J0.prototype.FA=function(q,Z,F){q=g.E(q);for(var B=q.next();!B.done;B=q.next())B=B.value,UVG(this.wU.get(),B.baseUrl,Z,F,B.attributionSrcMode)};g.V(v5y,g.J);g.V(DT,g.J);g.r=DT.prototype;g.r.addListener=function(q){this.listeners.push(q)}; g.r.removeListener=function(q){this.listeners=this.listeners.filter(function(Z){return Z!==q})}; g.r.qP=function(q,Z,F,B,f,D,G,n){if(q==="")Yp("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(q!==this.D||F){this.D=q;this.Zl.get().qP(q,Z,F,B,f,D,G,n);this.XE.get().qP(q,Z,F,B,f,D,G,n);var b;(b=this.LP)==null||b.get().qP(q,Z,F,B,f,D,G,n);this.K.qP(q,Z,F,B,f,D,G,n);b=g.E(this.listeners);for(var N=b.next();!N.done;N=b.next())N.value.qP(q,Z,F,B,f,D,G,n)}else Yp("Duplicate content video loaded signal")}; g.r.JZU=function(){this.D&&this.Ng(this.D)}; g.r.Ng=function(q){this.D=void 0;for(var Z=g.E(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.Ng(q)};Jx.prototype.Yg=function(q,Z,F,B,f){wOD(this);this.Z=!Z&&F===0;var D=this.B.getVideoData(1),G=this.B.getVideoData(2);D&&(this.contentCpn=D.clientPlaybackNonce,this.videoId=D.videoId,this.D=D.j);G&&(this.adCpn=G.clientPlaybackNonce,this.adVideoId=G.videoId,this.adFormat=G.adFormat);this.G=q;B<=0?(wOD(this),this.Z=!Z&&F===0):(this.actionType=this.Z?Z?"unknown_type":"video_to_ad":Z?"ad_to_video":"ad_to_ad",this.videoStreamType=f?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.S=!0,dP("_start",this.actionType)&&z76(this)))}; Jx.prototype.reset=function(){return new Jx(this.B)};g.V(YZ,g.J);YZ.prototype.addCueRange=function(q,Z,F,B,f,D,G,n,b){D=D===void 0?3:D;G=G===void 0?1:G;this.D.has(q)?Yp("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:q}):(q=new fg5(q,Z,F,B,D,n,b),this.D.set(q.id,{o1:q,listener:f,Yc:G}),this.B.sZ([q],G))}; YZ.prototype.removeCueRange=function(q){var Z=this.D.get(q);Z?(this.B.MB([Z.o1],Z.Yc),this.D.delete(Z.o1.id)):Yp("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:q})}; YZ.prototype.onCueRangeEnter=function(q){if(this.D.has(q.id))this.D.get(q.id).listener.onCueRangeEnter(q.id)}; YZ.prototype.onCueRangeExit=function(q){if(this.D.has(q.id))this.D.get(q.id).listener.onCueRangeExit(q.id)}; g.V(fg5,g.u8);tx.prototype.addPlayerResponseForAssociation=function(q){this.B.addPlayerResponseForAssociation(q)};pG.prototype.xY=function(q){this.B.xY(q)}; pG.prototype.F6=function(q){var Z=g.CF.apply(1,arguments);q==="onAdStart"||q==="onAdEnd"?this.B.NE.apply(this.B,[q].concat(g.YB(Z))):this.B.a_.apply(this.B,[q].concat(g.YB(Z)))};dy.prototype.wj=function(q){return q&&VF(this)};var iU7=null;g.V(km9,g.In);km9.prototype.by=function(q){return this.D.hasOwnProperty(q)?this.D[q].by():{}}; g.O9("ytads.bulleit.getVideoMetadata",function(q){return mW().by(q)}); g.O9("ytads.bulleit.triggerExternalActivityEvent",function(q,Z,F){var B=mW();F=Hob(F);F!==null&&B.publish(F,{queryId:q,viewabilityString:Z})});g.r=iD.prototype;g.r.PH=function(q,Z){if(!this.D.has(q))return{};if(Z==="seek"){Z=!1;Z=Z===void 0?!1:Z;var F=ug(Ma).L3(q,{});F?h9(F):Z&&(q=ug(Ma).EB(null,F0(),!1,q),q.oS=3,nlg([q]));return{}}Z=WCg(Z);if(Z===null)return{};var B=this.B.qz();if(!B)return{};var f=this.B.getPresentingPlayerType(!0);if((F=this.B.getVideoData(f))==null||!F.isAd())return{};F={opt_adElement:B,opt_fullscreen:this.Zl.get().isFullscreen()};return Wwg(Z,q,F)}; g.r.j4=function(q,Z,F,B,f){this.D.has(q)&&(B<=0||f<=0||ug(Ma).j4(q,Z,F,B,f))}; g.r.CY=function(q){var Z;(Z=this.D.get(q.queryId))==null||Z.CY()}; g.r.qW=function(q){var Z;(Z=this.D.get(q.queryId))==null||Z.qW()}; g.r.Ff=function(q){var Z;(Z=this.D.get(q.queryId))==null||Z.Ff()}; g.r.LY=function(q){var Z;(Z=this.D.get(q.queryId))==null||Z.LY()}; g.r.Is=function(q){var Z;(Z=this.D.get(q.queryId))==null||Z.Is()};MhG.prototype.send=function(q,Z,F,B){try{l$6(this,q,Z,F,B===void 0?!1:B)}catch(f){}};g.V(Fl8,MhG);d$b.prototype.send=function(q,Z,F,B){var f=!1;try{if(B==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||B==="ATTRIBUTION_SRC_MODE_XHR_OPTION")f=!0,q=PKB(q);B=f;var D=g.oi(q);if(D[1]==="https")var G=q;else D[1]="https",G=yK("https",D[2],D[3],D[4],D[5],D[6],D[7]);var n=kqk(G);D=[];var b=eV6(G)&&this.GP.get().B.C().experiments.qp("add_auth_headers_to_remarketing_google_dot_com_ping");if(eE(G)||b)D.push({headerType:"USER_AUTH"}),D.push({headerType:"PLUS_PAGE_ID"}),D.push({headerType:"VISITOR_ID"}),D.push({headerType:"EOM_VISITOR_ID"}), D.push({headerType:"AUTH_USER"}),D.push({headerType:"DATASYNC_ID"});this.D.send({baseUrl:G,scrubReferrer:n,headers:D},Z,F,B)}catch(N){}};qq.prototype.Yb=function(){return this.B.Yb(1)};g.V(CI,g.J);g.r=CI.prototype;g.r.rA=function(){return this.B.getVideoData(1).clientPlaybackNonce}; g.r.addListener=function(q){this.listeners.push(q)}; g.r.removeListener=function(q){this.listeners=this.listeners.filter(function(Z){return Z!==q})}; g.r.qP=function(){this.Hx.clear();this.n9=null;this.ES.get().clear()}; g.r.Ng=function(){}; g.r.SPF=function(q,Z,F,B,f){Z.videoId==="nPpU29QrbiU"&&this.B.iL("ads_ssm_vdc_s",{pt:F,dvt:q});tl(this.GP.get())&&q!=="dataloaded"||uDm(this,Z,F);if(VF(this.GP.get())&&q==="newdata"&&f!==void 0){q=this.rA();var D=Z.clientPlaybackNonce,G={};ea(this,"rte",(G.ec=D,G.xc=B==null?void 0:B.clientPlaybackNonce,G.tr=f,G.pt=F,G.ia=D!==q,G.ctp=TQ(D),G));Z=Z.clientPlaybackNonce;B=B==null?void 0:B.clientPlaybackNonce;f=cEX(f);if(f!==1)if(B!==void 0)for(F=g.E(this.listeners),q=F.next();!q.done;q=F.next())q.value.zI(B, Z,f);else Yp("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:Z,transitionReason:String(f)});f=g.E(this.listeners);for(B=f.next();!B.done;B=f.next())B.value.GI(Z)}}; g.r.VC$=function(q,Z){q!==void 0&&(this.n9=q,Z===void 0?Yp("Expected ad video start time on SS video changed"):this.Hx.set(q,Z));var F=this.B.getPresentingPlayerType(!0),B=this.B.getVideoData(F),f;q===void 0?f=null:f=this.ES.get().D.get(q)||null;this.B.getVideoData(1).iL("ads_ssvc",{pt:F,cpn:B==null?void 0:B.clientPlaybackNonce,crtt:this.B.getCurrentTime(1,!1),atlh:this.B.isAtLiveHead(),adstt:Z,pid:q,slid:f==null?void 0:f.layoutId});B?uDm(this,B,F):Yp("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.B.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:q})}; g.r.pA=function(q,Z){var F=q.author,B=q.clientPlaybackNonce,f=q.isListed,D=q.fp,G=q.title,n=q.R6,b=q.qB,N=q.isMdxPlayback,S=q.Fk,l=q.mdxEnvironment,U=q.isAutonav,u=q.Vm,P=q.Pf,W=q.RJ,H=q.videoId||"",X=q.profilePicture||"",Q=q.Fr||"",a=q.Sg()||!1,m=q.tP()||!1;q=q.vJ||void 0;D=this.ES.get().D.get(D)||{layoutId:null,slotId:null};var c=this.B.getVideoData(1),e=c.d2();c=c.getPlayerResponse();Z=1E3*this.B.getDuration(Z);var Y=1E3*this.B.getDuration(1),Zg,GZ,FD=(c==null?void 0:(Zg=c.playerConfig)==null? void 0:(GZ=Zg.daiConfig)==null?void 0:GZ.enableDai)||!1,Ny,qy;Zg=(c==null?void 0:(Ny=c.playerConfig)==null?void 0:(qy=Ny.daiConfig)==null?void 0:qy.enablePreroll)||!1;return Object.assign({},D,{videoId:H,author:F,clientPlaybackNonce:B,oN:Z,x6:Y,daiEnabled:FD,d$:Zg,isListed:f,d2:e,profilePicture:X,title:G,Fr:Q,R6:n,qB:b,vJ:q,isMdxPlayback:N,Fk:S,mdxEnvironment:l,isAutonav:U,Vm:u,Pf:P,RJ:W,Sg:a,tP:m})}; g.r.SU=function(){this.listeners.length=0;this.fK=null;g.J.prototype.SU.call(this)};g.V(da,g.J);g.r=da.prototype;g.r.qP=function(){var q=this;VF(this.GP.get())||(this.D=oJ(function(){q.B.jU()||q.B.J1("ad",1)}))}; g.r.Ng=function(){}; g.r.addListener=function(q){this.listeners.push(q)}; g.r.removeListener=function(q){this.listeners=this.listeners.filter(function(Z){return Z!==q})}; g.r.xU=function(){}; g.r.playVideo=function(){this.B.playVideo()}; g.r.pauseVideo=function(){this.B.pauseVideo()}; g.r.resumeVideo=function(q){this.H3(q)&&this.B.playVideo()}; g.r.H3=function(q){return this.B.getPlayerState(q)===2}; g.r.getCurrentTimeSec=function(q,Z,F){var B=this.XE.get().n9;if(q===2&&!Z&&B!==null)return sI(this,B);of(this.GP.get(),"html5_ssap_use_cpn_to_get_time")||(F=void 0);return F!==void 0?this.B.getCurrentTime(q,Z,F):this.B.getCurrentTime(q,Z)}; g.r.getVolume=function(){return this.B.getVolume()}; g.r.isMuted=function(){return this.B.isMuted()}; g.r.getPresentingPlayerType=function(){return this.B.getPresentingPlayerType(!0)}; g.r.getPlayerState=function(q){return this.B.getPlayerState(q)}; g.r.getGetAdBreakContext=function(){return this.B.getGetAdBreakContext()}; g.r.isFullscreen=function(){return this.B.isFullscreen()}; g.r.isAtLiveHead=function(){return this.B.isAtLiveHead()}; g.r.Lv=function(q){this.B.Lv(q)}; g.r.QyU=function(){var q=this.B.getPresentingPlayerType(!0),Z=this.getCurrentTimeSec(q,!1);if(q===2){q=g.E(this.listeners);for(var F=q.next();!F.done;F=q.next())F.value.IV(Z)}else if(q===1)for(q=g.E(this.DK),F=q.next();!F.done;F=q.next())F.value.xU(Z)}; g.r.Hpn=function(q){for(var Z=g.E(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.o4(q,this.getPresentingPlayerType())}; g.r.onFullscreenToggled=function(q){for(var Z=g.E(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.onFullscreenToggled(q)}; g.r.onVolumeChange=function(){for(var q=g.E(this.listeners),Z=q.next();!Z.done;Z=q.next())Z.value.onVolumeChange()}; g.r.Ul=function(){for(var q=this.B.isMinimized(),Z=g.E(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.Ul(q)}; g.r.Ce=function(q){for(var Z=g.E(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.Ce(q)}; g.r.CB=function(){for(var q=this.B.Ca().ZI(),Z=g.E(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.zU(q)}; g.r.eg=function(q){for(var Z=g.E(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.eg(q)}; g.r.TU=function(){for(var q=g.E(this.listeners),Z=q.next();!Z.done;Z=q.next())Z.value.TU()};g.V(ar8,g.J);g.V(Vb,g.J);Vb.prototype.SU=function(){this.q4.jU()||this.q4.get().removeListener(this);g.J.prototype.SU.call(this)};Fx.prototype.fetch=function(q){var Z=q.aF;return this.D.fetch(q.Xu,{XK:q.XK===void 0?void 0:q.XK,o1:Z,cueProcessedMs:q.cueProcessedMs===void 0?0:q.cueProcessedMs}).then(function(F){return YSZ(F,Z)})};g.V(RA,g.J);g.r=RA.prototype;g.r.addListener=function(q){this.listeners.push(q)}; g.r.removeListener=function(q){this.listeners=this.listeners.filter(function(Z){return Z!==q})}; g.r.Ej=function(q){ea6(this,q,1)}; g.r.onAdUxClicked=function(q,Z){MQ(this,function(F){F.QX(q,Z)})}; g.r.yj=function(q){MQ(this,function(Z){Z.QD(q)})}; g.r.lX=function(q){MQ(this,function(Z){Z.cW(q)})}; g.r.Gbn=function(q){MQ(this,function(Z){Z.C3(q)})};zk.prototype.reduce=function(q){switch(q.event){case "unknown":return}var Z=q.identifier;var F=this.D[Z];F?Z=F:(F={Kh:null,HS:-Infinity},Z=this.D[Z]=F);F=q.startSecs+q.D/1E3;if(!(F=this.D.startSecs&&F.startSecs<=this.D.startSecs+this.D.jC)){var B=void 0;if(pD(this.GP.get())&&F.identifier!==((B=this.D)==null?void 0:B.identifier)){var f=B=void 0,D=void 0,G=void 0;Jl(this.wU.get(),"ocud","ccpi."+F.identifier+";ccpe."+F.event+";ccps."+F.startSecs+";\n ccpd."+F.jC+";pcpi."+((B=this.D)==null?void 0:B.identifier)+ ";pcpe."+((f=this.D)==null?void 0:f.event)+";\n pcps."+((D=this.D)==null?void 0:D.startSecs)+";pcpd."+((G=this.D)==null?void 0:G.jC)+";")}B=void 0;F.identifier!==((B=this.D)==null?void 0:B.identifier)&&Yp("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.D=F,eU6(this,F)}}; g.r.SU=function(){this.K!=null&&(this.K.unsubscribe("cuepointupdated",this.HT,this),this.K=null);this.listeners.length=0;this.Gf.length=0;g.J.prototype.SU.call(this)};g.r=Ph.prototype;g.r.gt=function(q,Z,F,B,f,D,G,n){return this.B.gt(q,Z,F,B,f,D,G,n)}; g.r.UM=function(q,Z){this.B.UM(q,Z)}; g.r.P_=function(q,Z,F){this.B.P_(q,Z,F)}; g.r.Vz=function(q){this.B.Vz(q)}; g.r.Qu=function(q,Z,F,B,f,D,G,n){this.B.Qu(q,Z,F,B,f,D,G,n)}; g.r.LQ=function(q){return this.B.LQ(q)}; g.r.finishSegmentByCpn=function(q,Z,F){F=zIy(F);this.B.finishSegmentByCpn(q,Z,F)};g.V(ok,g.J);g.V(kd6,g.J);g.V(oi8,g.J);g.V(LHX,g.J);g.V(N7b,g.J);g.V(mQb,g.J);g.V(pv,g.J);pv.prototype.S=function(){return this.K};g.V(LS,Vs); LS.prototype.S=function(q){var Z=q.content;if(Z.componentType==="shopping-companion")switch(q.actionType){case 1:case 2:q=this.D.getVideoData(1);this.D.a_("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId,shoppingCompanionCarouselRenderer:Z.renderer,layoutId:Z.layoutId,macros:Z.macros,onLayoutVisibleCallback:Z.D,interactionLoggingClientData:Z.interactionLoggingClientData});break;case 3:this.D.a_("updateKevlarOrC3Companion",{})}else if(Z.componentType==="action-companion")switch(q.actionType){case 1:case 2:q=this.D.getVideoData(1); this.D.a_("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId,actionCompanionAdRenderer:Z.renderer,layoutId:Z.layoutId,macros:Z.macros,onLayoutVisibleCallback:Z.D,interactionLoggingClientData:Z.interactionLoggingClientData});break;case 3:Z.renderer&&(Z=this.D.getVideoData(1),this.D.a_("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId})),this.D.a_("updateKevlarOrC3Companion",{})}else if(Z.componentType==="image-companion")switch(q.actionType){case 1:case 2:q=this.D.getVideoData(1);this.D.a_("updateKevlarOrC3Companion", {contentVideoId:q&&q.videoId,imageCompanionAdRenderer:Z.renderer,layoutId:Z.layoutId,macros:Z.macros,onLayoutVisibleCallback:Z.D,interactionLoggingClientData:Z.interactionLoggingClientData});break;case 3:Z=this.D.getVideoData(1),this.D.a_("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId}),this.D.a_("updateKevlarOrC3Companion",{})}else if(Z.componentType==="top-banner-image-text-icon-buttoned")switch(q.actionType){case 1:case 2:q=this.D.getVideoData(1);this.D.a_("updateKevlarOrC3Companion", {contentVideoId:q&&q.videoId,topBannerImageTextIconButtonedLayoutViewModel:Z.renderer,layoutId:Z.layoutId,macros:Z.macros,onLayoutVisibleCallback:Z.D,interactionLoggingClientData:Z.interactionLoggingClientData});break;case 3:Z.renderer&&(Z=this.D.getVideoData(1),this.D.a_("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId})),this.D.a_("updateKevlarOrC3Companion",{})}else if(Z.componentType==="banner-image")switch(q.actionType){case 1:case 2:q=this.D.getVideoData(1);this.D.a_("updateKevlarOrC3Companion", {contentVideoId:q&&q.videoId,bannerImageLayoutViewModel:Z.renderer,layoutId:Z.layoutId,macros:Z.macros,onLayoutVisibleCallback:Z.D,interactionLoggingClientData:Z.interactionLoggingClientData});break;case 3:Z=this.D.getVideoData(1),this.D.a_("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId}),this.D.a_("updateKevlarOrC3Companion",{})}else if(Z.componentType==="ads-engagement-panel")switch(Z=Z.renderer,q.actionType){case 1:case 2:this.D.a_("updateEngagementPanelAction",Z.addAction);this.D.a_("changeEngagementPanelVisibility", Z.expandAction);break;case 3:this.D.a_("changeEngagementPanelVisibility",Z.hideAction),this.D.a_("updateEngagementPanelAction",Z.removeAction)}else if(Z.componentType==="ads-engagement-panel-layout"){var F=Z.renderer;switch(q.actionType){case 1:case 2:this.D.a_("updateEngagementPanelAction",{action:nV(F.addAction),layoutId:Z.layoutId,onLayoutVisibleCallback:Z.D,interactionLoggingClientData:Z.interactionLoggingClientData});this.D.a_("changeEngagementPanelVisibility",nV(F.expandAction));break;case 3:this.D.a_("changeEngagementPanelVisibility", nV(F.hideAction)),this.D.a_("updateEngagementPanelAction",{action:nV(F.removeAction)})}}};g.V(Eh,nX);g.r=Eh.prototype;g.r.init=function(q,Z,F){nX.prototype.init.call(this,q,Z,F);g.u$(this.S,"stroke-dasharray","0 "+this.K);this.S.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.Z.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.G.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.r.clear=function(){this.hide()}; g.r.hide=function(){F2(this);nX.prototype.hide.call(this)}; g.r.show=function(){HH(this);nX.prototype.show.call(this)}; g.r.gs=function(){this.hide()}; g.r.xu=function(){if(this.D){var q=this.D.getProgressState();q!=null&&q.current!=null&&g.u$(this.S,"stroke-dasharray",q.current/q.seekableEnd*this.K+" "+this.K)}};g.V(SKE,km);g.r=SKE.prototype; g.r.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);if(Z.image&&Z.image.thumbnail)if(Z.headline)if(Z.description)if(Z.backgroundImage&&Z.backgroundImage.thumbnail)if(Z.actionButton&&g.C(Z.actionButton,g.jQ))if(q=Z.durationMilliseconds||0,typeof q!=="number"||q<=0)g.mM(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+q));else if(Z.navigationEndpoint){var B=this.api.getVideoData(2);if(B!=null){var f=Z.image.thumbnail.thumbnails;f!=null&& f.length>0&&g.lO(g.lg(f[0].url))&&(f[0].url=B.profilePicture,g.lO(g.lg(B.profilePicture))&&hyK("VideoPlayer",239976093,"Expected non-empty profile picture."));f=Z.backgroundImage.thumbnail.thumbnails;f!=null&&f.length>0&&g.lO(g.lg(f[0].url))&&(f[0].url=B.fm());f=Z.headline;f!=null&&g.lO(g.lg(f.text))&&(f.text=B.author)}this.V.init(kV("ad-image"),Z.image,F);this.Z.init(kV("ad-text"),Z.headline,F);this.S.init(kV("ad-text"),Z.description,F);this.Oc.init(kV("ad-image"),Z.backgroundImage,F);B=["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.Z.element.classList.add("ytp-ad-action-interstitial-headline-light");this.S.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.C().U("enable_default_mono_cta_migration_web_client")?B.push("ytp-ad-action-interstitial-action-button-mono-dark"):B.push("ytp-ad-action-interstitial-action-button-dark");this.api.C().K&&(B.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.C().U("enable_default_mono_cta_migration_web_client")?B.push("ytp-ad-action-interstitial-action-button-mono-dark"):B.push("ytp-ad-action-interstitial-action-button-dark"));this.api.C().U("enable_unified_action_endcap_on_web")&&!this.api.C().K&&(this.api.C().U("enable_default_mono_cta_migration_web_client")?B.push("ytp-ad-action-interstitial-action-button-unified-mono"):B.push("ytp-ad-action-interstitial-action-button-unified"),this.o_.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.V.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.I_.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.bx.classList.add("ytp-ad-action-interstitial-card-unified"),this.uL.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.k$.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.BG.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.WG.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new qa(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,B);g.y(this,this.actionButton);this.actionButton.R_(this.o_);this.actionButton.init(kV("button"),g.C(Z.actionButton,g.jQ),F);cg(this.actionButton.element);B=MLZ(this.actionButton.element);Ve(this.actionButton.element, B+" This link opens in new tab");this.navigationEndpoint=Z.navigationEndpoint;this.G.N(this.BG,"click",this.zV,this);this.G.N(this.uL,"click",this.zV,this);this.api.C().K||this.G.N(this.k$,"click",this.zV,this);this.D=this.Hw?new gg(this.api,q):new HG(q);g.y(this,this.D);if(Z.skipButton){(q=g.C(Z.skipButton,$Nm))&&this.D&&(this.skipButton=new hS(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.D,this.C$),g.y(this,this.skipButton),this.skipButton.R_(this.element),this.skipButton.init(kV("skip-button"), q,F));if(F=Z.adBadgeRenderer)if(F=g.C(F,K18))q=new vE(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,!0,!0),q.R_(this.WG),q.init(kV("simple-ad-badge"),F,this.macros),g.y(this,q);if(F=Z.adInfoRenderer)if(F=g.C(F,A1))q=new q5(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.element,void 0,!0),q.R_(this.WG),q.init(kV("ad-info-hover-text-button"),F,this.macros),g.y(this,q)}else Z.nonskippableOverlayRenderer&&(q=g.C(Z.nonskippableOverlayRenderer,Ry))&&this.D&&(this.K= new OV(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.D,!1),g.y(this,this.K),this.K.R_(this.element),this.K.init(kV("ad-preview"),q,F));Z.countdownRenderer&&(Z=Z.countdownRenderer,g.C(Z,aD8)&&this.D&&(F=new Eh(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.D),g.y(this,F),F.R_(this.element),F.init(kV("timed-pie-countdown"),g.C(Z,aD8),this.macros)));this.show();this.element.focus()}else g.mM(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.mM(Error("AdActionInterstitialRenderer has no button."));else g.mM(Error("AdActionInterstitialRenderer has no background AdImage."));else g.mM(Error("AdActionInterstitialRenderer has no description AdText."));else g.mM(Error("AdActionInterstitialRenderer has no headline AdText."));else g.mM(Error("AdActionInterstitialRenderer has no image."))}; g.r.clear=function(){g.DJ(this.G);this.hide()}; g.r.show=function(){O3k(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.K&&this.K.show();km.prototype.show.call(this)}; g.r.hide=function(){O3k(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.K&&this.K.hide();km.prototype.hide.call(this)}; g.r.zV=function(){this.navigationEndpoint&&(this.layoutId?this.x$.executeCommand(this.navigationEndpoint,this.layoutId):g.mM(Error("Missing layoutId for ad action interstitial.")))};var jq={iconType:"CLOSE"},g_=new g.d8(320,63);g.V(GIG,km);g.r=GIG.prototype; g.r.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);this.G=Z;this.V=g.D4(this.G.onClickCommands||[]);this.WG=this.G.onErrorCommand||null;if(q=this.G.contentSupportedRenderer)q=this.G.contentSupportedRenderer,Z=this.G.adInfoRenderer||null,g.C(q,vpm)?(this.Z=g.uK("ytp-ad-overlay-ad-info-button-container",this.S.element),v1(this,Z),q=sPB(this,g.C(q,vpm))):g.C(q,X_e)?(this.Z=g.uK("ytp-ad-overlay-ad-info-button-container",this.K.element),v1(this,Z),q=ulG(this,g.C(q,X_e))):g.C(q,Epu)?(this.Z=g.uK("ytp-ad-overlay-ad-info-button-container", this.D.element),v1(this,Z),q=TQk(this,g.C(q,Epu))):(g.mM(Error("InvideoOverlayAdRenderer content could not be initialized.")),q=!1);q&&(this.show(),KV9(this,!0))}; g.r.clear=function(){KV9(this,!1);this.BG.reset();this.uL=0;this.S.hide();this.logVisibility(this.S.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.D.hide();this.logVisibility(this.D.element,!1);this.hide();this.dispose()}; g.r.va$=function(){this.o_&&(this.layoutId?this.x$.executeCommand(this.o_,this.layoutId):g.mM(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.r.LM=function(){a:{if(this.G&&this.G.closeButton&&this.G.closeButton.buttonRenderer){var q=this.G.closeButton.buttonRenderer;if(q.serviceEndpoint){q=[q.serviceEndpoint];break a}}q=[]}q=g.E(q);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,this.layoutId?this.x$.executeCommand(Z,this.layoutId):g.mM(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.r.K6E=function(){this.Oc||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.r.SQ=function(){this.Oc||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.SQ("invideo-overlay")}; g.r.SyU=function(q){q.target===this.Z&&g.uK("ytp-ad-button",this.I_.element).click()};g.V(tUD,nX);g.r=tUD.prototype;g.r.init=function(q,Z,F){nX.prototype.init.call(this,q,Z,F);q=Z.durationMs;this.S=q==null||q===0?0:q+this.D.getProgressState().current*1E3;if(Z.text)var B=Z.text.templatedAdText;else Z.staticMessage&&(B=Z.staticMessage);this.messageText.init(kV("ad-text"),B,F);this.messageText.R_(this.K.element);this.G.show(100);this.show()}; g.r.clear=function(){this.hide()}; g.r.hide=function(){h49(this,!1);nX.prototype.hide.call(this);this.K.hide();this.messageText.hide();F2(this)}; g.r.show=function(){h49(this,!0);nX.prototype.show.call(this);HH(this);this.K.show();this.messageText.show()}; g.r.gs=function(){this.hide()}; g.r.xu=function(){if(this.D!=null){var q=this.D.getProgressState();q!=null&&q.current!=null&&(q=1E3*q.current,!this.uL&&q>=this.S?(this.G.hide(),this.uL=!0):this.messageText&&this.messageText.isTemplated()&&(q=Math.max(0,Math.ceil((this.S-q)/1E3)),q!==this.Z&&(LwD(this.messageText,{TIME_REMAINING:String(q)}),this.Z=q)))}};g.V(k0m,km);g.r=k0m.prototype; g.r.init=function(q,Z,F){km.prototype.init.call(this,q,Z,{});Z.image&&Z.image.thumbnail?Z.headline?Z.description?Z.actionButton&&g.C(Z.actionButton,g.jQ)?(this.S.init(kV("ad-image"),Z.image,F),this.K.init(kV("ad-text"),Z.headline,F),this.G.init(kV("ad-text"),Z.description,F),this.actionButton=new qa(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,["ytp-ad-underlay-action-button"]),Z.backgroundColor&&g.u$(this.element,"background-color",g.mX(Z.backgroundColor)),g.y(this,this.actionButton), this.actionButton.R_(this.Z),this.actionButton.init(kV("button"),g.C(Z.actionButton,g.jQ),F),q=g.Ce(this.api.C().experiments,"player_underlay_video_width_fraction"),this.api.C().U("place_shrunken_video_on_left_of_player")?(Z=this.D,g.vc(Z,"ytp-ad-underlay-left-container"),g.e$(Z,"ytp-ad-underlay-right-container"),g.u$(this.D,"margin-left",Math.round((q+.02)*100)+"%")):(Z=this.D,g.vc(Z,"ytp-ad-underlay-right-container"),g.e$(Z,"ytp-ad-underlay-left-container")),g.u$(this.D,"width",Math.round((1-q- .04)*100)+"%"),this.api.g0()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Qb.bind(this)),this.api.addEventListener("resize",this.cU.bind(this))):g.mM(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.mM(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.mM(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.mM(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.r.show=function(){l9y(!0);this.actionButton&&this.actionButton.show();km.prototype.show.call(this)}; g.r.hide=function(){l9y(!1);this.actionButton&&this.actionButton.hide();km.prototype.hide.call(this)}; g.r.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Qb.bind(this));this.api.removeEventListener("resize",this.cU.bind(this));this.hide()}; g.r.onClick=function(q){km.prototype.onClick.call(this,q);this.actionButton&&g.yT(this.actionButton.element,q.target)&&this.api.pauseVideo()}; g.r.Qb=function(q){q==="transitioning"?(this.D.classList.remove("ytp-ad-underlay-clickable"),this.show()):q==="visible"?this.D.classList.add("ytp-ad-underlay-clickable"):q==="hidden"&&(this.hide(),this.D.classList.remove("ytp-ad-underlay-clickable"))}; g.r.cU=function(q){q.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):q.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.u$(this.K.element,"font-size",q.width/40+"px")};g.V(yX,km); yX.prototype.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);Z.toggledLoggingParams&&(this.toggledLoggingParams=Z.toggledLoggingParams);Z.answer&&g.C(Z.answer,g.jQ)?(q=new qa(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),q.R_(this.answer),q.init(kV("ytp-ad-survey-answer-button"),g.C(Z.answer,g.jQ),F),q.show()):Z.answer&&g.C(Z.answer,LQ)&&(this.D=new K_(this.api,this.layoutId,this.interactionLoggingClientData,this.x$, ["ytp-ad-survey-answer-toggle-button"]),this.D.R_(this.answer),g.y(this,this.D),this.D.init(kV("survey-answer-button"),g.C(Z.answer,LQ),F));this.show()}; yX.prototype.AN=function(q){this.layoutId?PB(this.x$,q,this.layoutId,this.macros):(q=new g.M2("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.mM(q))}; yX.prototype.onClick=function(q){km.prototype.onClick.call(this,q);if(this.api.C().U("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; yX.prototype.clear=function(){this.hide()};g.V(TiB,km);TiB.prototype.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);Z.answer&&g.C(Z.answer,LQ)&&(this.button=new K_(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.R_(this.D),this.button.init(kV("survey-none-of-the-above-button"),g.C(Z.answer,LQ),F));this.show()};g.V(sZ,qa);sZ.prototype.init=function(q,Z,F){qa.prototype.init.call(this,q,Z,F);q=!1;Z.text&&(Z=g.HD(Z.text),q=!g.lO(Z));q||g.bh(Error("No submit text was present in the renderer."))}; sZ.prototype.onClick=function(q){this.publish("l");qa.prototype.onClick.call(this,q)};g.V(jK,km); jK.prototype.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);if(q=Z.skipOrPreviewRenderer)g.C(q,hR)?(q=g.C(q,hR),F=new YI(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.G,!0),F.R_(this.skipOrPreview),F.init(kV("skip-button"),q,this.macros),g.y(this,F),this.D=F):g.C(q,Ry)&&(q=g.C(q,Ry),F=new OV(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.G,!1),F.R_(this.skipOrPreview),F.init(kV("ad-preview"),q,this.macros),F.uL.show(100),F.show(),g.y(this,F), this.D=F);this.D==null&&(q=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(Z)),g.mM(q));Z.submitButton&&(q=Z.submitButton,g.C(q,g.jQ)&&(q=g.C(q,g.jQ),F=new sZ(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),F.R_(this.submitButton),F.init(kV("survey-submit"),q,this.macros),g.y(this,F),this.K=F));if(q=Z.adBadgeRenderer)q=g.C(q,K18),F=new vE(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,!0,!0,!0),F.R_(this.S),F.init(kV("simple-ad-badge"), q,this.macros),this.adBadge=F.element,g.y(this,F);if(q=Z.adDurationRemaining)q=g.C(q,Qou),F=new Zl(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.G,void 0,!0),F.R_(this.S),F.init(kV("ad-duration-remaining"),q,this.macros),g.y(this,F);(Z=Z.adInfoRenderer)&&g.C(Z,A1)&&(q=new q5(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.element,void 0,!0),g.y(this,q),this.adBadge!==void 0?this.S.insertBefore(q.element,this.adBadge.nextSibling):q.R_(this.S),q.init(kV("ad-info-hover-text-button"), g.C(Z,A1),this.macros));this.show()}; jK.prototype.clear=function(){this.hide()};g.V(Lc,km);Lc.prototype.init=function(q,Z,F){km.prototype.init.call(this,q,Z,F);lpB(this)}; Lc.prototype.show=function(){this.S=Date.now();km.prototype.show.call(this)}; Lc.prototype.uB=function(){};g.V(Hp,Lc);g.r=Hp.prototype;g.r.init=function(q,Z,F){var B=this;Lc.prototype.init.call(this,q,Z,F);Z.questionText&&Q9Z(this,Z.questionText);Z.answers&&Z.answers.forEach(function(f,D){g.C(f,Wi)&&a9X(B,g.C(f,Wi),F,D)}); this.Z=new Set(this.K.map(function(f){return f.D.D})); (q=Z.noneOfTheAbove)&&(q=g.C(q,A88))&&n59(this,q,F);Z.surveyAdQuestionCommon&&fEb(this,Z.surveyAdQuestionCommon);Z.submitEndpoints&&(this.submitEndpoints=Z.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()}; g.r.uB=function(){aQb(this,!1);this.G.K.subscribe("l",this.Eaa,this)}; g.r.onChange=function(q){q.target===this.noneOfTheAbove.button.D?mFX(this):this.Z.has(q.target)&&(this.noneOfTheAbove.button.toggleButton(!1),aQb(this,!0))}; g.r.Eaa=function(){var q=[],Z=this.K.reduce(function(f,D,G){var n=D.toggledLoggingParams;D.D&&D.D.isToggled()&&n&&(f.push(n),q.push(G));return f},[]).join("&"),F=this.submitEndpoints.map(function(f){if(!f.loggingUrls)return f; f=g.Mf(f);f.loggingUrls=f.loggingUrls.map(function(D){D.baseUrl&&(D.baseUrl=Dc(D.baseUrl,Z));return D}); return f}); if(F){F=g.E(F);for(var B=F.next();!B.done;B=F.next())B=B.value,this.layoutId?PB(this.x$,B,this.layoutId,this.macros):g.mM(Error("Missing layoutId for multi_select_question."))}this.api.C().U("supports_multi_step_on_desktop")&&this.uL(q)}; g.r.clear=function(){this.api.C().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.V(Pw,Lc);Pw.prototype.init=function(q,Z,F){var B=this;Lc.prototype.init.call(this,q,Z,F);Z.questionText&&Q9Z(this,Z.questionText);Z.answers&&Z.answers.forEach(function(f,D){g.C(f,Wi)&&a9X(B,g.C(f,Wi),F,D)}); Z.surveyAdQuestionCommon?fEb(this,Z.surveyAdQuestionCommon):V3(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(Z)));this.show()}; Pw.prototype.clear=function(){this.api.C().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.V(sc,km);sc.prototype.init=function(q,Z,F){var B=this;km.prototype.init.call(this,q,Z,F);if(this.api.C().U("supports_multi_step_on_desktop")){var f;this.conditioningRules=(f=Z.conditioningRules)!=null?f:[];var D;this.K=(D=Z.questions)!=null?D:[];var G;((G=Z.questions)==null?0:G.length)&&XQ8(this,0)}else(Z.questions||[]).forEach(function(n){g.C(n,Qp)?FO7(B,g.C(n,Qp),F):g.C(n,OY)&&MpG(B,g.C(n,OY),F)}); this.show()}; sc.prototype.clear=function(){this.api.C().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; sc.prototype.G=function(q){var Z=this;if(this.api.C().U("supports_multi_step_on_desktop")){var F;if((F=this.conditioningRules)==null?0:F.length){var B;if(q.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(f){return f.questionIndex===Z.D})==null)g.mM(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(f){if(f.questionIndex===Z.D)switch(f.condition){case "CONDITION_ALL_OF":var D;if((D=f.answerIndices)==null?0:D.every(function(n){return q.includes(n)}))B=f.nextQuestionIndex; break;case "CONDITION_ANY_OF":var G;if((G=f.answerIndices)==null?0:G.some(function(n){return q.includes(n)}))B=f.nextQuestionIndex; break;default:g.mM(Error("Expected specified condition in survey conditioning rules."))}}),B!=null)XQ8(this,B); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.mM(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.V(O1,km); O1.prototype.init=function(q,Z,F){var B=this;km.prototype.init.call(this,q,Z,F);q=Z.timeoutSeconds||0;if(typeof q!=="number"||q<0)g.mM(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+q));else if(Z.timeoutCommands)if(Z.text)if(Z.ctaButton&&g.C(Z.ctaButton,g.jQ))if(Z.brandImage)if(Z.backgroundImage&&g.C(Z.backgroundImage,jX)&&g.C(Z.backgroundImage,jX).landscape){this.layoutId||g.mM(Error("Missing layoutId for survey interstitial."));wfB(this.interstitial,g.C(Z.backgroundImage, jX).landscape);wfB(this.logoImage,Z.brandImage);g.Tk(this.text,g.HD(Z.text));var f=["ytp-ad-survey-interstitial-action-button"];f.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new qa(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,f);g.y(this,this.actionButton);this.actionButton.R_(this.K);this.actionButton.init(kV("button"),g.C(Z.ctaButton,g.jQ),F);this.actionButton.show();this.D=new gg(this.api,q*1E3);this.D.subscribe("g",function(){B.transition.hide()}); g.y(this,this.D);this.N(this.element,"click",function(D){var G=D.target===B.interstitial;D=B.actionButton.element.contains(D.target);if(G||D)if(B.transition.hide(),G)B.api.onAdUxClicked(B.componentType,B.layoutId)}); this.transition.show(100)}else g.mM(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.mM(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.mM(Error("SurveyTextInterstitialRenderer has no button."));else g.mM(Error("SurveyTextInterstitialRenderer has no text."));else g.mM(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; O1.prototype.clear=function(){this.hide()}; O1.prototype.show=function(){ir6(!0);km.prototype.show.call(this)}; O1.prototype.hide=function(){ir6(!1);km.prototype.hide.call(this)};g.V(ml,nX);g.r=ml.prototype; g.r.init=function(q,Z){nX.prototype.init.call(this,q,Z,{});if(Z.durationMilliseconds){if(Z.durationMilliseconds<0){g.mM(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+Z.durationMilliseconds));return}this.K=Z.durationMilliseconds}else this.K=this.D.B8();var F;if((F=Z.previewText)==null||!F.text||g.lO(Z.previewText.text))g.mM(Error("No text is returned for AdPreview."));else{this.Z=Z.previewText;Z.previewText.isTemplated||g.Tk(this.S,Z.previewText.text);var B; if(((B=this.api.getVideoData(1))==null?0:B.uu)&&Z.previewImage){var f,D;(q=((D=xH(((f=Z.previewImage)==null?void 0:f.sources)||[],52,!1))==null?void 0:D.url)||"")&&q.length?(this.previewImage=new g.xT({Y:"img",W:"ytp-preview-ad__image",L:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",q),g.y(this,this.previewImage),this.previewImage.R_(this.element)):g.mM(Error("Failed to get imageUrl in AdPreview."))}else this.S.classList.add("ytp-preview-ad__text--padding--wide")}}; g.r.clear=function(){this.hide()}; g.r.hide=function(){F2(this);nX.prototype.hide.call(this)}; g.r.show=function(){HH(this);nX.prototype.show.call(this)}; g.r.gs=function(){this.hide()}; g.r.xu=function(){if(this.D){var q=this.D.getProgressState();if(q!=null&&q.current)if(q=1E3*q.current,q>=this.K)this.transition.hide();else{var Z;if((Z=this.Z)==null?0:Z.isTemplated)if(Z=Math.max(0,Math.ceil((this.K-q)/1E3)),Z!==this.G){var F,B;(q=(F=this.Z)==null?void 0:(B=F.text)==null?void 0:B.replace("{TIME_REMAINING}",String(Z)))&&g.Tk(this.S,q);this.G=Z}}}};g.V(v3,km); v3.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});var F,B;if((q=((B=xH(((F=Z.image)==null?void 0:F.sources)||[],npB(Z),!0))==null?void 0:B.url)||"")&&q.length){F=this.cG("ytp-ad-avatar");F.src=q;var f,D;if(B=(f=Z.interaction)==null?void 0:(D=f.accessibility)==null?void 0:D.label)F.alt=B;switch(Z.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(Z.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.mM(Error("Failed to get imageUrl in AdAvatar."))}; v3.prototype.clear=function(){this.hide()}; v3.prototype.onClick=function(q){km.prototype.onClick.call(this,q)};g.V(OQ,km); OQ.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});var F;q=(F=Z.label)==null?void 0:F.content;if((F=q!=null&&!g.lO(q))||Z.iconImage){F&&(this.buttonText=new g.xT({Y:"span",W:"ytp-ad-button-vm__text",Ka:q}),g.y(this,this.buttonText),this.buttonText.R_(this.element));var B,f,D=((B=Z.interaction)==null?0:(f=B.accessibility)==null?0:f.label)||F?q:"";D&&Ve(this.element,D+" This link opens in new tab");cg(this.element);if(Z.iconImage){B=void 0;if(Z.iconImage){a:{f=Z.iconImage;if(f.sources)for(f= g.E(f.sources),q=f.next();!q.done;q=f.next())if(q=q.value,D=void 0,(D=q.clientResource)==null?0:D.imageName){f=q;break a}f=void 0}if(f){var G;B={iconType:(G=f.clientResource)==null?void 0:G.imageName}}}G=s8(B,!1,this.K);G!=null&&(this.buttonIcon=new g.xT({Y:"span",W:"ytp-ad-button-vm__icon",T:[G]}),g.y(this,this.buttonIcon),Z.iconLeading?(bo(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):F?(this.buttonIcon.R_(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.R_(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(Z.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.U("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.D?"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(Z.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.bh(Error("AdButton does not have label or an icon."))}; OQ.prototype.clear=function(){this.hide()}; OQ.prototype.onClick=function(q){km.prototype.onClick.call(this,q)};g.V(w5e,nX);g.r=w5e.prototype; g.r.init=function(q,Z){nX.prototype.init.call(this,q,Z,{});if(q=g.C(Z.avatar,z4)){var F=Z.headline;if(F){var B=Z.description;if(B){var f=g.C(Z.button,bA);f?(this.adAvatar.init(kV("ad-avatar"),q),this.headline.init(kV("ad-simple-attributed-string"),new Yj(F)),this.description.init(kV("ad-simple-attributed-string"),new Yj(B)),F.content&&F.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(kV("ad-button"),f), this.startMilliseconds=Z.startMs||0,this.api.g0()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.mz.bind(this)),HH(this)):g.mM(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mM(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mM(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mM(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.r.xu=function(){if(this.D){var q=this.D.getProgressState();q&&q.current&&1E3*q.current>=this.startMilliseconds&&(F2(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.r.gs=function(){this.clear()}; g.r.onClick=function(q){this.api.pauseVideo();nX.prototype.onClick.call(this,q)}; g.r.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.mz.bind(this))}; g.r.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();nX.prototype.show.call(this)}; g.r.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();nX.prototype.hide.call(this)}; g.r.mz=function(q){q==="hidden"?this.show():this.hide()};g.V(gi,km);g.r=gi.prototype; g.r.init=function(q,Z){km.prototype.init.call(this,q,Z,{});if(!Z.label||g.lO(Z.label))g.mM(Error("No label is returned for SkipAdButton."));else if(g.Tk(this.G,Z.label),q=s8({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.U("delhi_modern_web_player_icons")),q==null)g.mM(Error("Unable to retrieve icon for SkipAdButton"));else if(this.S=new g.xT({Y:"span",W:"ytp-skip-ad-button__icon",T:[q]}),g.y(this,this.S),this.S.R_(this.element),this.api.C().experiments.qp("enable_skip_to_next_messaging")&&(Z=g.lg(Z.targetId)))this.K= !0,this.element.setAttribute("data-tooltip-target-id",Z),this.element.setAttribute("data-tooltip-target-fixed","")}; g.r.onClick=function(q){q&&q.preventDefault();var Z,F;IQg(q,{contentCpn:(F=(Z=this.api.getVideoData(1))==null?void 0:Z.clientPlaybackNonce)!=null?F:""})===0?this.api.a_("onAbnormalityDetected"):(km.prototype.onClick.call(this,q),this.api.a_("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.r.clear=function(){this.D.reset();this.hide()}; g.r.hide=function(){km.prototype.hide.call(this)}; g.r.show=function(){this.D.start();km.prototype.show.call(this);this.K&&this.api.C().experiments.qp("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.V(Cm5,nX);g.r=Cm5.prototype; g.r.init=function(q,Z){nX.prototype.init.call(this,q,Z,{});q=g.C(Z.preskipState,CNm);var F;if((F=this.api.getVideoData())==null?0:F.isDaiEnabled()){if(!q){g.mM(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.K=new ml(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.D);g.y(this,this.K);this.K.R_(this.element);var B;(B=this.K)==null||B.init(kV("preview-ad"),q);(F=this.K)!=null&&(F.transition.show(100),F.show())}(F=g.C(Z.skippableState,RPB))?(Z.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=Z.skipOffsetMilliseconds:(g.bh(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.S.init(kV("skip-button"),F),this.show()):g.mM(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.r.show=function(){HH(this);nX.prototype.show.call(this)}; g.r.hide=function(){!this.isSkippable&&this.K?this.K.hide():this.S&&this.S.hide();F2(this);nX.prototype.hide.call(this)}; g.r.clear=function(){var q;(q=this.K)==null||q.clear();this.S&&this.S.clear();F2(this);nX.prototype.hide.call(this)}; g.r.gs=function(){this.hide()}; g.r.xu=function(){if(1E3*this.D.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var q;(q=this.K)!=null&&q.transition.hide();(q=this.S)!=null&&(q.transition.show(),q.show())}};g.V(kn,km); kn.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});if(Z.label){var F;((F=Z.label)==null?0:F.content)&&!g.lO(Z.label.content)&&(this.linkText=new g.xT({Y:"span",W:"ytp-visit-advertiser-link__text",Ka:Z.label.content}),g.y(this,this.linkText),this.linkText.R_(this.element));var B,f;if((B=Z.interaction)==null?0:(f=B.accessibility)==null?0:f.label)Ve(this.element,Z.interaction.accessibility.label+" This link opens in new tab");else{var D;((D=Z.label)==null?0:D.content)&&!g.lO(Z.label.content)&&Ve(this.element, Z.label.content+" This link opens in new tab")}cg(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.mM(Error("No label found in VisitAdvertiserLink."))}; kn.prototype.onClick=function(q){km.prototype.onClick.call(this,q);this.api.onAdUxClicked(this.componentType,this.layoutId)}; kn.prototype.clear=function(){this.hide()};g.V(DZ,km); DZ.prototype.init=function(q,Z,F,B){km.prototype.init.call(this,q,Z,{});if(Z.skipOrPreview){F=Z.skipOrPreview;q=g.C(F,c8e);F=g.C(F,CNm);if(q)this.qS=new Cm5(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.K),g.y(this,this.qS),this.qS.R_(this.V),this.qS.init(kV("skip-ad"),q);else{var f;F&&((f=this.api.getVideoData())==null?0:f.isDaiEnabled())&&(this.G=new ml(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.K,1),g.y(this,this.G),this.G.R_(this.V),this.G.init(kV("ad-preview"), F),f=this.G,f.transition.show(100),f.show())}if(f=g.C(Z.skipOrPreview,c8e))var D=f.skipOffsetMilliseconds}Z.playerAdCard&&(f=g.C(Z.playerAdCard,hPm))&&(this.playerAdCard=new w5e(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.K),g.y(this,this.playerAdCard),this.playerAdCard.R_(this.k$),this.playerAdCard.init(kV("ad-avatar-lockup-card"),f));Z.adBadgeRenderer&&((f=g.C(Z.adBadgeRenderer,n6))?(this.S=new HW(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,!0),g.y(this, this.S),this.S.R_(this.D),this.S.init(kV("ad-badge"),f)):g.mM(Error("AdBadgeViewModel is not found in player overlay layout.")));Z.adPodIndex&&(f=g.C(Z.adPodIndex,kfj))&&(this.adPodIndex=new nY(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,this.adPodIndex),this.adPodIndex.R_(this.D),this.adPodIndex.init(kV("ad-pod-index"),f));Z.adInfoRenderer&&((f=g.C(Z.adInfoRenderer,A1))?(this.adInfoButton=new q5(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.element, void 0,!0),g.y(this,this.adInfoButton),this.S!==void 0?this.D.insertBefore(this.adInfoButton.element,this.S.element.nextSibling):this.adInfoButton.R_(this.D),this.adInfoButton.init(kV("ad-info-hover-text-button"),f,this.macros)):g.bh(Error("AdInfoRenderer is not found in player overlay layout.")));var G;f=(G=this.api.getVideoData())==null?void 0:G.isDaiEnabled();Z.adDurationRemaining&&f&&(G=g.C(Z.adDurationRemaining,Qou))&&(this.adDurationRemaining=new Zl(this.api,this.layoutId,this.interactionLoggingClientData, this.x$,this.K,B.videoAdDurationSeconds,!0),g.y(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.D.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.R_(this.D),this.adDurationRemaining.init(kV("ad-duration-remaining"),G,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));Z.visitAdvertiserLink&&(B=g.C(Z.visitAdvertiserLink,Y3E))&&(this.visitAdvertiserLink=new kn(this.api,this.layoutId, this.interactionLoggingClientData,this.x$),g.y(this,this.visitAdvertiserLink),this.visitAdvertiserLink.R_(this.D),this.visitAdvertiserLink.init(kV("visit-advertiser-link"),B));Z.adDisclosureBanner&&(Z=g.C(Z.adDisclosureBanner,iO6))&&(this.adDisclosureBanner=new ZZ(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,this.adDisclosureBanner),this.adDisclosureBanner.R_(this.uL),this.adDisclosureBanner.init(kV("ad-disclosure-banner"),Z));this.Z=new SO(this.api,this.K,D,!0);g.y(this, this.Z);g.C5(this.api,this.Z.element,4);this.show()}; DZ.prototype.clear=function(){this.hide()};g.V(Lf8,km);g.r=Lf8.prototype; g.r.init=function(q,Z){km.prototype.init.call(this,q,Z,{});if(Z!=null&&Z.title)if(q=Z.title)if(this.headline.init(kV("ad-simple-attributed-string"),new Yj(q)),q=g.C(Z.moreInfoButton,bA)){if(this.moreInfoButton.init(kV("ad-button"),q),Z.descriptions)Z.descriptions.length>0&&(q=Z.descriptions[0])&&(this.D=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,this.D),this.D.R_(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.D.init(kV("ad-simple-attributed-string"), new Yj(q))),Z.descriptions.length>1&&(Z=Z.descriptions[1])&&(this.K=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,this.K),this.K.R_(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.K.init(kV("ad-simple-attributed-string"),new Yj(Z)))}else g.mM(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.mM(Error("No headline found in AdGridCardText."));else g.mM(Error("No headline found in AdGridCardText."))}; g.r.onClick=function(q){km.prototype.onClick.call(this,q);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.r.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var q;(q=this.D)==null||q.clear();var Z;(Z=this.K)==null||Z.clear()}; g.r.hide=function(){this.headline.hide();this.moreInfoButton.hide();var q;(q=this.D)==null||q.hide();var Z;(Z=this.K)==null||Z.hide();km.prototype.hide.call(this)}; g.r.show=function(){km.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var q;(q=this.D)==null||q.show();var Z;(Z=this.K)==null||Z.show()};g.V(eP,km);eP.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});if(Z!=null&&Z.gridCards)if(Z.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.mM(Error("Only single column style is currently supported in AdGridCardCollection."));else for(q=g.E(Z.gridCards),Z=q.next();!Z.done;Z=q.next()){if(Z=g.C(Z.value,ID_)){var F=new Lf8(this.api,this.layoutId,this.interactionLoggingClientData,this.x$);g.y(this,F);F.R_(this.element);F.init(kV("ad-grid-card-text"),Z);this.D.push(F)}}else g.mM(Error("No grid cards found in AdGridCardCollection."))}; eP.prototype.show=function(){for(var q=g.E(this.D),Z=q.next();!Z.done;Z=q.next())Z.value.show();km.prototype.show.call(this)}; eP.prototype.clear=function(){this.hide();for(var q=g.E(this.D),Z=q.next();!Z.done;Z=q.next())Z.value.clear()}; eP.prototype.hide=function(){for(var q=g.E(this.D),Z=q.next();!Z.done;Z=q.next())Z.value.hide();km.prototype.hide.call(this)};g.V(eD,nX);g.r=eD.prototype;g.r.init=function(q,Z,F,B,f){f=f===void 0?0:f;nX.prototype.init.call(this,q,Z,F,B);this.playerProgressOffsetMs=f;HH(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.IQ.bind(this));this.api.addEventListener("resize",this.Aw.bind(this));this.api.g0()?(this.K=!0,this.api.Lv(!0),this.show()):this.hide()}; g.r.xu=function(){if(this.D){var q=this.D.getProgressState();q&&q.current&&!this.K&&1E3*q.current>=this.playerProgressOffsetMs&&(this.K=!0,this.api.Lv(!0),this.show())}}; g.r.gs=function(){this.K&&this.api.Lv(!1);this.hide()}; g.r.clear=function(){this.api.Lv(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.IQ.bind(this));this.api.removeEventListener("resize",this.Aw.bind(this));F2(this);this.hide()}; g.r.hide=function(){UMj(!1);nX.prototype.hide.call(this)}; g.r.show=function(){UMj(!0);nX.prototype.show.call(this)};g.V(kVD,eD);g.r=kVD.prototype; g.r.init=function(q,Z,F,B){if(Z!=null&&Z.adGridCardCollection)if(Z!=null&&Z.adButton){var f=Number(Z.playerProgressOffsetMs||"0");isNaN(f)?eD.prototype.init.call(this,q,Z,F,B):eD.prototype.init.call(this,q,Z,F,B,f);q=Z.headline;F=g.C(Z.adAvatar,z4);q&&F?(this.headline=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,this.headline),this.headline.R_(this.cG("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(kV("ad-simple-attributed-string"),new Yj(q)), this.adAvatar=new v3(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,this.adAvatar),this.adAvatar.R_(this.cG("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(kV("ad-avatar"),F)):this.G.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");q=g.C(Z.adGridCardCollection,joB);this.adGridCardCollection.init(kV("ad-grid-card-collection"),q);Z=g.C(Z.adButton,bA);this.adButton.init(kV("ad-button"),Z); this.hide()}else g.mM(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.mM(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.r.onClick=function(q){(this.adButton&&g.yT(this.adButton.element,q.target)||this.adAvatar&&g.yT(this.adAvatar.element,q.target))&&this.api.pauseVideo();eD.prototype.onClick.call(this,q);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.r.Aw=function(){}; g.r.clear=function(){this.hide();var q;(q=this.headline)==null||q.clear();var Z;(Z=this.adAvatar)==null||Z.clear();this.adGridCardCollection.clear();this.adButton.clear();eD.prototype.clear.call(this)}; g.r.show=function(){var q;(q=this.headline)==null||q.show();var Z;(Z=this.adAvatar)==null||Z.show();this.adGridCardCollection.show();this.adButton.show();eD.prototype.show.call(this)}; g.r.hide=function(){var q;(q=this.headline)==null||q.hide();var Z;(Z=this.adAvatar)==null||Z.hide();this.adGridCardCollection.hide();this.adButton.hide();eD.prototype.hide.call(this)}; g.r.IQ=function(q){q==="transitioning"?(this.S.classList.remove("ytp-ad-underlay-clickable"),this.show()):q==="visible"?this.S.classList.add("ytp-ad-underlay-clickable"):q==="hidden"&&(this.hide(),this.S.classList.remove("ytp-ad-underlay-clickable"))};g.V(pC,km); pC.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});if(Z.attributes===void 0)g.mM(Error("No attributes found in AdDetailsLineViewModel."));else if(Z.style===void 0)g.mM(Error("No style found in AdDetailsLineViewModel."));else{q=g.E(Z.attributes);for(var F=q.next();!F.done;F=q.next())if(F=F.value,F.text!==void 0){F=F.text;var B=Z.style,f=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.x$);g.y(this,f);f.R_(this.element);a:switch(B){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":B="ytp-ad-details-line__text--style-responsive"; break a;default:B="ytp-ad-details-line__text--style-standard"}f.element.classList.add(B);f.init(kV("ad-simple-attributed-string"),new Yj(F));this.D.push(f)}this.show()}}; pC.prototype.show=function(){this.D.forEach(function(q){q.show()}); km.prototype.show.call(this)}; pC.prototype.clear=function(){this.hide()}; pC.prototype.hide=function(){this.D.forEach(function(q){q.hide()}); km.prototype.hide.call(this)};g.V(SX,km);SX.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});var F,B;(q=((B=xH(((F=Z.image)==null?void 0:F.sources)||[]))==null?void 0:B.url)||"")&&q.length?(F=this.cG("ytp-image-background-image"),g.u$(F,"backgroundImage","url("+q+")"),Z.blurLevel!==void 0&&g.u$(F,"filter","blur("+Z.blurLevel+"px)"),Z.gradient!==void 0&&(Z=new g.w({Y:"div",rU:["ytp-image-background--gradient-vertical"]}),g.y(this,Z),Z.R_(this.element)),this.show()):g.mM(Error("Failed to get imageUrl in ImageBackground."))}; SX.prototype.clear=function(){this.hide()};g.V(bR,nX);g.r=bR.prototype;g.r.init=function(q,Z){nX.prototype.init.call(this,q,Z,{});g.u$(this.S,"stroke-dasharray","0 "+this.K);this.show()}; g.r.clear=function(){this.hide()}; g.r.hide=function(){F2(this);nX.prototype.hide.call(this)}; g.r.show=function(){HH(this);nX.prototype.show.call(this)}; g.r.gs=function(){this.hide()}; g.r.xu=function(){if(this.D){var q=this.D.getProgressState();q!=null&&q.current!=null&&g.u$(this.S,"stroke-dasharray",q.current/q.seekableEnd*this.K+" "+this.K)}};g.V(s$,km); s$.prototype.init=function(q,Z){km.prototype.init.call(this,q,Z,{});if(IJ6(Z)){this.adAvatar=new v3(this.api,this.layoutId,this.interactionLoggingClientData,this.x$);g.y(this,this.adAvatar);this.adAvatar.R_(this.cG("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(kV("ad-avatar"),g.C(Z.adAvatar,z4));this.headline=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.x$);g.y(this,this.headline);this.headline.R_(this.cG("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(kV("ad-simple-attributed-string"),new Yj(Z.headline));if(q=g.C(Z.adDetailsLine,mNE))this.detailsLine=new pC(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,this.detailsLine),this.detailsLine.R_(this.cG("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(kV("ad-details-line"),q);this.adButton=new OQ(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,!0);g.y(this,this.adButton); this.adButton.R_(this.cG("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(kV("ad-button"),g.C(Z.adButton,bA));this.adBadge=new HW(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,!0);g.y(this,this.adBadge);this.adBadge.R_(this.G);this.adBadge.init(kV("ad-badge"),g.C(Z.adBadge,n6));this.adInfoButton=new q5(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.element,void 0,!0);g.y(this,this.adInfoButton);this.adInfoButton.R_(this.G); this.adInfoButton.init(kV("ad-info-hover-text-button"),g.C(Z.adInfoRenderer,A1),this.macros);if(q=g.C(Z.skipAdButton,RPB))this.skipAdButton=new gi(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,this.skipAdButton),this.skipAdButton.R_(this.element),this.skipAdButton.init(kV("skip-button"),q);this.K=new HG(Z.durationMilliseconds);g.y(this,this.K);if(q=g.C(Z.countdownViewModel,J8m))this.D=new bR(this.api,this.layoutId,this.interactionLoggingClientData,this.x$,this.K),g.y(this, this.D),this.D.R_(this.cG("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.D.init(kV("timed-pie-countdown"),q);if(Z=g.C(Z.imageBackground,so0))this.imageBackground=new SX(this.api,this.layoutId,this.interactionLoggingClientData,this.x$),g.y(this,this.imageBackground),this.imageBackground.R_(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(kV("image-background"), Z);this.show();this.element.focus()}}; s$.prototype.clear=function(){g.DJ(this.S);this.hide()}; s$.prototype.show=function(){JdZ(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();km.prototype.show.call(this)}; s$.prototype.hide=function(){JdZ(!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.D&&this.D.hide();this.imageBackground&&this.imageBackground.hide();km.prototype.hide.call(this)};g.V(fC,g.In);g.r=fC.prototype;g.r.B8=function(){return 1E3*this.api.getDuration(this.Yc,!1)}; g.r.stop=function(){this.D&&this.handler.Op(this.D)}; g.r.y5=function(){var q=this.api.getProgressState(this.Yc);this.K={seekableStart:q.seekableStart,seekableEnd:q.seekableEnd,current:this.api.getCurrentTime(this.Yc,!1)};this.publish("h")}; g.r.getProgressState=function(){return this.K}; g.r.n1=function(q){g.YM(q,2)&&this.publish("g")};var PR0="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.V(os,Vs); os.prototype.S=function(q){var Z=q.id,F=q.content,B=F.componentType;if(!PR0.includes(B))switch(q.actionType){case 1:q=this.api;var f=this.x$,D=F.layoutId,G=F.interactionLoggingClientData,n=F instanceof V1?F.Hw:!1,b=F instanceof V1||F instanceof jI?F.C$:!1;G=G===void 0?{}:G;n=n===void 0?!1:n;b=b===void 0?!1:b;switch(B){case "invideo-overlay":q=new GIG(q,D,G,f);break;case "player-overlay":q=new bM(q,D,G,f,new fC(q),b);break;case "player-overlay-layout":q=new DZ(q,D,G,f,new fC(q));break;case "survey":q= new sc(q,D,G,f);break;case "ad-action-interstitial":q=new SKE(q,D,G,f,n,b);break;case "video-interstitial-buttoned-centered":q=new s$(q,D,G,f);break;case "survey-interstitial":q=new O1(q,D,G,f);break;case "ad-message":q=new tUD(q,D,G,f,new fC(q,1));break;case "player-underlay":q=new k0m(q,D,G,f);break;case "display-underlay-text-grid-cards":q=new kVD(q,D,G,f,new fC(q));break;default:q=null}if(!q){g.bh(Error("No UI component returned from ComponentFactory for type: "+B));break}g.w8(this.components, Z)?g.bh(Error("Ad UI component already registered: "+Z)):this.components[Z]=q;q.bind(F);F instanceof E0?this.K?this.K.append(q.Qx):g.bh(Error("Underlay view was not created but UnderlayRenderer was created")):this.G.append(q.Qx);break;case 2:Z=Mtg(this,q);if(Z==null)break;Z.bind(F);break;case 3:F=Mtg(this,q),F!=null&&(g.dN(F),g.w8(this.components,Z)?(F=this.components,Z in F&&delete F[Z]):g.bh(Error("Ad UI component does not exist: "+Z)))}}; os.prototype.SU=function(){g.AG(Object.values(this.components));this.components={};Vs.prototype.SU.call(this)};g.V(KK7,g.a3);g.r=KK7.prototype;g.r.create=function(){try{sSK(this),this.load(),this.created=!0,sSK(this)}catch(q){Yp(q instanceof Error?q:String(q))}}; g.r.load=function(){try{HnX(this)}finally{VF(e7(this.D).Zs)&&this.player.J1("ad",1)}}; g.r.destroy=function(){var q=this.player.getVideoData(1);this.D.D.Th.Ng(q&&q.clientPlaybackNonce||"");this.unload();this.created=!1}; g.r.unload=function(){g.a3.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(Z){Yp(Z instanceof Error?Z:String(Z))}if(this.K!=null){var q=this.K;this.K=null;q.dispose()}this.S.reset()}; g.r.hM=function(){return!1}; g.r.getAdState=function(){return-1}; g.r.getOptions=function(){return Object.values(uKB)}; g.r.zA=function(q,Z){Z=Z===void 0?{}:Z;switch(q){case "replaceUrlMacros":return q=Z,q.url?(Z=SJD(this.player),Object.assign(Z,q.eIa),q=g.VT(q.url,Z)):q=null,q;case "onAboutThisAdPopupClosed":this.Z_(Z);break;case "executeCommand":q=Z;q.command&&q.layoutId&&this.executeCommand(q);break;default:return null}}; g.r.B5=function(q){var Z;return!((Z=this.D.D.LP)==null||!Z.get().B5(q))}; g.r.Z_=function(q){q.isMuted&&Z78(e7(this.D).Nd,e7(this.D).F8,q.layoutId);this.ip&&this.ip.Z_()}; g.r.executeCommand=function(q){e7(this.D).x$.executeCommand(q.command,q.layoutId)};g.O9("yt.player.Application.create",g.LM.create);g.O9("yt.player.Application.createAlternate",g.LM.create);TZ9(N1(),U3m);var r_m=g.ym("ytcsi.tick");r_m&&r_m("pe");g.Nx("ad",KK7);g.V(g.YJ,g.J);g.YJ.prototype.start=function(q,Z,F){this.config={from:q,to:Z,duration:F,startTime:(0,g.Le)()};this.next()}; g.YJ.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.YJ.prototype.next=function(){if(this.config){var q=this.config,Z=q.from,F=q.to,B=q.duration;q=q.startTime;var f=(0,g.Le)()-q;q=this.D;B=bjX(q,f/B);if(B==0)q=q.X;else if(B==1)q=q.V;else{f=Xj(q.X,q.Z,B);var D=Xj(q.Z,q.j,B);q=Xj(q.j,q.V,B);f=Xj(f,D,B);D=Xj(D,q,B);q=Xj(f,D,B)}q=g.JY(q,0,1);this.callback(Z+(F-Z)*q);q<1&&this.delay.start()}};g.V(g.tn,g.w);g.r=g.tn.prototype;g.r.hasSuggestions=function(){return this.suggestionData.length>0}; g.r.cj=function(){this.K&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.r.show=function(){g.w.prototype.show.call(this);aND(this)}; g.r.QZ=function(){this.K&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.r.EN=function(){this.CB(this.api.Ca().getPlayerSize())}; g.r.CB=function(q){var Z=this.api.isEmbedsShortsMode()?.5625:16/9,F=this.api.rY();q=q.width-(F?112:58);F=Math.ceil(q/(F?320:192));var B=(q-F*8)/F;Z=Math.floor(B/Z);for(var f=g.E(this.D),D=f.next();!D.done;D=f.next())D=D.value.cG("ytp-suggestion-image"),D.style.width=B+"px",D.style.height=Z+"px";this.suggestions.element.style.height=Z+"px";this.G=B;this.X=Z;this.containerWidth=q;this.columns=F;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.cD(this)}; g.r.onVideoDataChange=function(){var q=this.api.C(),Z=this.api.getVideoData();this.Z=Z.z3?!1:q.G;this.suggestionData=Z.suggestions?g.uh(Z.suggestions,function(F){return F&&!F.playlistId}):[]; V5D(this);Z.z3?this.title.update({title:g.wz("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:Z.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.r.scrollTo=function(q){q=g.JY(q,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.j.start(this.scrollPosition,q,1E3);this.scrollPosition=q;g.cD(this);aND(this)};})(_yt_player);