var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var K="slice{set{/videoplayback{length{splice{local{:{/api/manifest{startsWith{{&{Kkj5T{/,;[;{youtube.player.web_20250827_22_RC00{GY{={path{push{J{X{lA{rr?[1-9].*\\.c\\.youtube\\.com${W{scheme{\\.googlevideo\\.com${1{replace{url{rJLWTWwwfaw6J4Bl-H-_w8_{Ag{split{s{join{DQ{indexOf{redirector.googlevideo.com{signatureCipher{cmo=pf{---{clone{cmo=td{Z{fromCharCode{cmo={prototype{toString{mn{assign{n{/{/initplayback{kN{r{1970-01-01T05:15:02.000+05:15{reverse{rr{match{1970-01-01T01:36:23.000+02:00{pop{unshift{Untrusted URL{1969-12-31T15:16:03.000-08:45{undefined{playerfallback{://{get{sp{1969-12-31T21:45:37.000-02:15{\\.a1\\.googlevideo\\.com${//{1969-12-31T20:46:18.000-03:15{cmo{fvip{fallback_count{,{1969-12-31T14:02:24.000-10:00{file{pow{bA{www.youtube.com{https://local{a1.googlevideo.com{http://local{forEach{1970-01-01T10:46:03.000+10:45{[\u22da\\\\{index.m3u8{/file/index.m3u8{?{1970-01-01T07:45:05.000+07:45{%3D".split("{"), na,qJs,Mku,OJ,iad,c_d,YJU,Wd,GUs,y1,sJ,Xm,jk,KCs,kU_,A_,mC,baC,$s,dR1,Zs,aj,NdC,oj,wd,zU,J_,xs,Oaa,Q1,tF,gsC,Esd,huJ,eS,WCs,y_d,hF,sjC,Xds,sF,SJd,Isd,mK,fsJ,wT,Haf,LCJ,RG,Pfs,vs1,Td1,lsa,pQ,Mk,URd,uma,Yu,OC,Bda,sC,XV,jL,SL,IT,f3,mRd,H7,L3,P7,$R_,Zad,lV,asd,DR,m3,oT,zZ,Jf,Vn,Rua,os_,C3,Qn,r0,wds,zuf,J_s,VkJ,r_1,n_,qc,Mc,ii,tE,Gd,K_,nwd,bi,Nc,Op,gi,e5,hE,Wg,qFR,yl,sp,j5,iQs,tSs,cFd,IR,Hg,L_,Td,li,ui,Bg,OQj,gwk,edC,EwU,Dy,hds,AE,mS,$6,WKJ,FC,yFd,XsR,oR,zd,C_,x6,Ql,IAm,SFs,vwu,LKk,t2,cT,bP,uOs,DDd,BTa, NE,gK,AFd,OS,yf,iP,$Ds,mDm,L7,SO,n7,FKj,PT,TV,vT,ZQa,US,aAJ,BT,Dx,A2,mT,$Z,FL,Zx,Rp,op,Vf,C7,Qf,ow1,zdk,ws_,JFd,VSm,tl,cn,Yq,rFa,Gf,xDd,QGd,KH,psd,i3d,kq,MLU,nus,bE,Ow,cfj,K3k,YCJ,gk,ei,kZ1,Ew,b3u,hl,N0C,dka,O3u,guj,ji,Si,eRd,Eua,hR1,Ig,fH,W3d,jTC,Hn,SCk,IRs,vuu,Tf,PVJ,fRs,lRj,B01,Uw,Bn,Al,DB,Dkd,md,$q,Fp,Rg,og,wk,Jl,aRC,VD,RRd,QD,q3,zRs,tS,Yv,K0,JfU,Gx,VLu,CVd,kv,cb,bK,dr,rff,N3,gr,QTm,e2,EP,yj,qpj,Il,M5R,i_U,t5R,cEd,S2,j2,sP,p7s,n6m,YpJ,KSs,kdk,b_j,L0,Pb,vb,dca,UP,Bb,Dv,AS,NiC,g6k,Zv,e2f,ol,Rl, sRk,zx,wr,jRd,IyJ,C0,JS,fyk,rr,xv,Qj,Vj,nf,p0,MX,qX,G0,H_k,iY,cW,Kf,LSs,kK,Pis,bY,dD,el,EU,sU,NX,gD,OU,Sl,v6C,IP,Tis,ff,Uc_,HW,uCC,Lf,YK,PW,vW,T0,Dcs,lY,UU,BW,DI,Ar,me,$K,FP,ZI,aP,oP,RP,wD,z0,Jr,V0,Cf,AER,$cf,xK,FSs,Z_j,ayd,pf,k3,Nh,o6J,Oa,z2u,gu,V5m,eT,Ea,hh,CiU,WZ,rEC,yU,xcU,QRu,sa,pgj,X2,jT,ST,nZm,fd,HZ,MOR,vZ,c2k,qSJ,Tc,Ua,uA,KTR,YSU,DP,mt,kVm,dEs,NKf,wu,zc,Jh,VU,ru,x3,QU,e3d,EZ1,h31,y2U,spk,XTs,nN,qu,jp_,Mu,SSm,Ixs,PPs,tC,vZu,TKJ,lx1,UEJ,uLs,YO,BKj,KN,A2d,d$,Nu,$Ea,Ou,g$,ey,FTa,Z7k,WV,yK,jy, IV,R3U,oZm,wTf,T8,vV,PV,z3a,J2J,VOd,lm,Uu,um,r2f,$O,FM,Qpk,pTm,nqu,Zz,aV,qwa,MiR,RV,iH_,tiC,cl1,YwR,JC,w$,VK,CN,r$,Gfk,Kds,kfJ,xO,QK,bH_,pN,dvR,NkC,OHJ,nP,gqd,qf,Mf,eER,Eqm,hEC,Wd_,yl_,sgJ,cl,Yr,GN,kr,Swm,bz,dJ,IBR,jgm,KP,fBk,Nf,OI,gJ,EI,eN,HHU,Ldf,PEa,hg,TkJ,Wl,Uvs,ups,BkJ,Dv_,Ald,D3s,ASf,m3J,fP,Hl,LP,Fau,$3f,Z0J,avd,vl,RAC,TN,ova,wbC,lz,UI,uz,zAs,Bl,DL,JSd,mM,$r,FX,ZL,as,Rs,os,wJ,V2f,CKk,rSm,x3U,zN,QlJ,nKR,pbu,VL,CP,Mlm,qUf,crm,Kej,G01,rJ,k01,bff,dXu,Ofa,NDC,gKa,xr,eCk,EKj,pP,hCf,Wes,yrm,sPs,nq, XW1,q8,jPj,M8,ij,IIU,tT,fIa,cm,YF,Hff,Lek,Gn,kF,vKU,bj,PYk,TDs,lIU,UXd,BD1,d4,DXs,g4,ea,mXU,$Xs,aId,RCk,EO,hT,Wm,yo,sO,Xb,Sa,Iy,fq,Hm,Lq,Pm,vm,JrJ,zCJ,Vlk,rrd,CY_,QPC,wW1,xXj,oKR,Tn,lj,n3s,qak,MTf,Dn,AT,ay,UO,tTJ,Ry,pWu,Yak,Gcj,ch_,oy,w4,zn,JT,Ktf,ida,kcm,Vo,bd1,dhd,Nuj,Ods,g3k,h0d,Wtd,yh_,sxd,Cq,r4,XZf,jxC,fPu,Hdf,xF,pq,PAu,nC,Qo,Tus,v3_,lPj,Uh1,u2d,MO,i9,Bu1,Dhf,Ah1,mhJ,$hm,Ftm,Zdd,aP_,R0R,o3U,cL,Yb,Gv,KC,kb,b9,wZj,VTj,CAU,rhu,Qxu,xhU,pZJ,OZ,gl,nOu,qu1,Myf,eZ,EZ,ht,WL,yV,sZ,X7,jZ,iNf,Iq,cCC,HL, Yum,G8m,LC,PL,vL,l9,Tv,KBu,bNk,UZ,pd,WTm,mJ,duf,N$J,$b,ONk,At,eqs,gOj,D8,F7,Z8,EOm,hqm,WB1,yCm,aq,sVd,Rq,Jhd,z0R,oq,wl,Jt,VV,Suf,CC,rl,QV,IzU,fzj,pC,T$U,k4,LBk,vOs,Me,qe,ON,gM,lzU,W5,Uum,yc,sN,uMd,Dum,muj,TD,UN,azj,Rqs,oOf,ug,Vyk,P5,FBk,rCC,JCm,wVd,zqJ,xuR,CmR,D5,$4,pVu,nrj,qIJ,MNR,iPC,Z5,tN1,R9,cgm,KMJ,kN1,o9,dfs,OPs,NJ_,grj,zD,C1,p1,qA,MA,i$,tQ,c2,hmC,WMd,ygJ,YC,GM,nY,KY,kC,b$,qO,dQ,ssj,Oo,SId,gQ,eP,fLu,ILR,HPU,LMJ,PzC,Eo,vrC,TJU,lLm,hQ,W2,uXU,Agj,mfC,ya,aLC,ZP1,Rm1,ord,wlu,so,zmd,$f_,Xy,JgJ,VNd, jP,rgk,xfC,QsC,plR,nFC,I8,qOR,MaJ,iqa,taj,GnJ,cTs,fY,H2,LY,P2,v2,TM,l$,Uo,K6m,B2,u$,knd,AQ,N4m,Dm,Oqf,gFs,yTs,eFk,EFU,hF1,W6a,mR,$C,Fy,syd,Zm,a8,R8,o8,wQ,zM,fn1,Xma,rQ,Inj,xC,SOs,CY,JQ,jyU,Va,pY,L6u,qb,nO,Pjk,vFu,T4s,YD,Gw,kD,ub_,KO,Nb,B4k,O$,lna,m8a,$8f,F6m,E$,hd,WC,ZqC,yx,s$,XW,jw,anR,Sw,ID,fO,RFu,oFd,HC,wmd,DfC,JTf,Vaf,Cjs,rT1,Qyk,zF_,pmm,nbf,qZa,MZs,iCd,YZs,PC,Tw,KJf,kvu,bCR,Nlm,OCu,dO1,U$,hwJ,Ebs,uM,DD,ytm,BC,sqk,FW,XLC,ZD,RD,oD,jqd,SZJ,xD,I81,pO,f8j,HCs,K4,LJu,vb_,ki,Tl_,l8a,Atu,UO_,OX,gY,eA, hs,WX,a8s,yA,sX,XA,obf,I7,wLk,zwu,f4,VZ_,L4,PX,vX,TS,C9f,lC,uC,BX,DH,As,rtk,xO_,Qqu,$i,FA,ZH,a7,R7,o7,pL1,n4a,qNd,Mgu,i1_,tgm,wY,cbd,QA,YNd,GDU,K5k,p4,qw,Mw,iW,Yd,G7,Kr,b1U,dS,Nw,Ok,def,NMk,gS,O1_,g41,Ek,j9j,SNf,I5s,ho,f5f,H1j,v4f,y8,l5k,TMj,Ue1,BMd,DeU,jU,SU,AbC,IZ,fr,HA,Lr,PA,vA,T7,lW,Uk,uW,BA,DT,Ao,Fa,mek,$ek,F5_,aZ,oZ,Z11,V8,Cr,rS,xd,Q8,np,qs,w5C,Ms,il,tP,Jbf,zcu,a5d,GH,Ye,xed,Kp,Wk,e6,yY,sH,p5J,j6,iYd,qos,MPJ,cQm,bYd,Yoj,KRj,kMu,Q9U,IN,S6,NQ_,Hk,Lp,Pk,OY1,Bk,gC_,D_,AP,m_,F$,eMd,aN,RN,ECf,oN, wO,WRf,VY,rO,xe,QY,pp,nL,qy,My,iJ,tJ,s8d,cf,KL,GJ,j8s,HYf,ImR,fmf,LRs,P$j,TQu,lmk,vCC,uyR,dF,Ny,eo,BQJ,DAs,gF,Eg,mAC,$Aa,RMU,amd,sg,XY,jo,So,IE,w2s,zMs,Ug,uJ,JQs,VPk,C$J,mA,FY,Z1,rQk,xA_,p21,q$s,wF,Mwm,V9,zJ,xj,Q9,nM,iOs,GY,KM,kc,bQ,NH,Ol,et,KXd,kwJ,hx,bOj,dbC,yW,NEd,OOa,sl,X0,gDf,eBa,hBC,St,H6,ydU,sD_,Ia,XCC,jDs,IDm,S$m,TY,WXm,HOd,LXd,Ax,B6,PM1,vDs,mu,$c,TEs,lDf,aa,UbC,uWd,BEU,Db1,Jx,Adk,mbu,$bd,FXs,ZOs,aDk,RBU,oDU,CM,wC_,xc,JdU,Vwu,CMf,rdd,xb1,QW,tW,pCU,MAu,Gq,i4k,csd,QDC,YXu,GSJ,Kvf,nia,qXC,pM, nE,ix,tAj,M2,q2,kS1,b4a,dNm,NYs,O4j,gia,ysf,eQ1,dw,N2,gw,j71,fHU,IH_,OY,hW,H4a,sY,Lvu,vid,fE,PCs,$N1,TY_,mNd,v9,Fvf,RQk,Tq,P9,Z4f,aHk,oif,UY,zQC,Js1,VAC,CCu,rsJ,xNa,Q7s,wXu,ndu,qkd,MUR,tUm,irk,YkC,AW,G7k,m8,$T,Ft,K7R,k7d,Rk,ok,dwa,bru,ww,NSu,gda,Ed_,eka,hks,sZf,W7k,YH,kH,KB,XAu,GE,ba,dB,Ni,Oc,jZ1,ez,ITa,Wh,hY,sc,Xv,jz,Sz,fTa,Ir,Hh,Hr1,Ph,PWs,TE,la,vdU,TSJ,lT1,UwU,Uc,Bh,uak,Dd,AY,mH,Dwk,$H,Fv,Aoa,ar,wB,or,Rr,zE,JY,F7R,zkk,VUC,wAR,odd,Jos,rB,pB,QZm,CW_,rod,xws,$w1,GHa,k7,YHR,bpu,cPU,CB,bo,io,Gs,K_s, qo,aTs,ZrC,Rkd,Qp,t6j,ge,Ee_,es,W_j,yP1,sNd,hq,XkU,jN1,SHR,f_f,Hp_,sy,PlU,X_,veR,TOJ,UsC,u$d,BOd,Ss,Ds1,msd,I4,$sj,fy,HJ,iQ,wka,rPm,Uy,QNj,qgJ,BJ,iLf,tod,cJd,zs,Yg1,GJR,o4,SXJ,a4,we,R4,DN,py,qB,n$,i8,c4,kJR,YR,K$,kR,bLC,dyR,NB,OLa,gjs,el1,Em,Ejd,hl_,WAU,yJC,sEd,XfC,jEa,ha,Sgs,W4,sm,I1_,f1C,HLJ,LAd,Xx,jd,Sd,PJu,vjJ,TFd,l1s,UyU,uYf,BFa,Dy_,L$,P4,v4,AJ_,T2,myu,Um,FAJ,$yC,B4,DX,Aa,my,ZLd,$R,Fx,a1k,Rl_,ZX,az,JJs,ojJ,zld,wfs,Rz,oz,wW,VoC,CJ_,rJU,z2,QEJ,qlm,nc1,Ja,VX,C$,rW,xR,p$,nz,qZ,MZ,iU,tB,Mts,iMf,ttJ, cD,YB,Gt,Kz,bU,NZ,GYs,YlJ,gU,Ku1,e3,Ev,hB,WD,yQ,S3,IM,fz,HD,Lz,PD,vD,Tt,dH1,lU,Uv,uU,Nzd,gca,mf,eia,$B,FB,Wud,yxm,sa_,jas,Igs,zt,fgd,VQ,JB,PQd,vcC,Tzd,rU,xB,UHu,pz,nD,qK,MK,Bz_,iZ,tI,c_,DHa,Y2,u0a,Gj,KD,mHs,Axk,k2,bZ,d5,NK,g5,Fuu,ZM1,Eq,hI,yT,sq,ags,W_,w6a,zij,JxU,VtR,CQj,rxs,xHu,jh,Xs,ock,nTJ,Sh,M7a,iEj,P_,t7C,fD,H_,cW1,v_,Gqu,kqu,Tj,lZ,bEs,Uq,Nw1,uZ,W8d,ET1,OEd,ey1,gTj,Df,AI,mG,$2,Fs,Zf,at,ot,skJ,SYJ,JI,LtJ,VT,IEu,L8s,r5,no,x2,pD,QT,TwR,vTd,PxC,lEU,qt,U2R,AWm,Mt,tN,$2_,cY,YV,Go,Ko,F8k,ZEs,kV,bS, db,aEJ,Ry_,O4,hN,WY,yN,s4,Xd,j4,oT1,S4,I1,fo,HY,Lo,PY,vY,w91,zys,To,lS,U4,uS,BY,zo,JWR,V7C,JN,xV,x2J,QkU,QN,po,cK,nHf,KT,kn,qck,N9,Mz_,tza,iBC,cYR,Ycs,GEs,KHC,kE_,bBf,NBm,dik,OBu,EHm,WHC,eIa,yYs,srs,jrs,e_,EK,Ids,Sca,hn,WK,yE,HBJ,sK,XQ,j_,Paf,vHU,S_,LHd,In,UiJ,fT,HK,LT,PK,vK,T4,lT,UK,uT,BK,De,An,ml,$n,FQ,Ze,an,Rn,on,wc,z4,Jn,VE,CT,rc,xn,QE,pT,nj,q1,M1,i0,tm,ce,Yg,Gm,Kj,kg,b0,dN,N1,OT,gN,eR,ET,hm,We,yM,sT,Xi,jR,SR,IK,fj,He,Lj,Pe,ve,Tm,l0,UT,u0,Be,D3,Am,$g,Fi,Z3,aK,RK,oK,zm,Jm,BBa,VM,r,Cj,wN,rN,xg, QM,AYf,nK,$if,pj,FHJ,Mp,ZB1,ti,qp,cH,Y8,GG,k8,RIu,oHd,whk,zIR,WH,yS,gj,s6,VzC,Cak,rYd,xiu,ads,Qrm,KK,pha,n7C,j$,LK,S$,dj,qy1,bc,Xj,IJ,PH,iyR,Np,O6,HH,fK,tsu,vH,TG,lc,U6,cqf,uc,BH,D4,Ai,mq,YyR,Gsk,ksR,byd,Z4,aJ,Nes,RJ,E7j,W9d,s4a,XJ_,wj,Syd,INC,x8,fNs,QS,pK,n5,qY,MY,i7,Hyk,Pom,v7k,L9f,TeU,lNf,Gp,K5,b7,NY,Ox,gH,UoR,e9,u_a,Ex,h5,ko,sx,XE,j9,S9,BeC,ym,Aqs,IS,moj,$oa,f5,F9k,Hj,L5,ZyC,aNd,Pj,Rvd,o7m,vj,wJf,zvs,Jqd,Vsj,Tp,l7,Co_,rqd,Ux,u7,Bj,xoC,D2,A5,mz,$o,Q4d,FE,Z2,pJU,aS,nRa,RS,qm1,Md1,i$C,td1,caa,Ymj, oS,G2s,Kyd,k2J,wH,b$j,zp,dBm,J5,NWm,Vm,O$R,gRU,C5,n8,en_,qP,MP,i_,tU,ERC,ct,YJ,GX,hnk,Wy1,kJ,b_,szC,dy,X4d,jzd,ya1,Smu,IXs,fXs,Ot,H$m,gy,Et,hU,Ly_,Wt,yv,jV,P8J,SV,Ic,vRJ,Ht,UBU,BW1,DBR,uxj,vt,l_,TX,Aas,mBU,Fym,$B_,L8,Z$_,aXj,Rn_,oRa,Pt,Vda,C8U,rak,Ja_,zna,w4d,xBm,Ut,TWs,Qzs,lXd,p4_,nBj,izC,qvj,u_,M3f,Yva,t3j,cBR,Kfu,GtR,ktk,bza,Dr,Oz_,dZs,gBd,NUk,eTm,EBj,hTC,WfC,yB1,sMs,XDR,jMm,Svd,Iq1,fqJ,Hz_,AU,PU_,Fq,m4,oc,wy,vBs,zX,TUk,Vv,C8,ry,lqa,Qv,UZj,nW,qG,iN,ac,tA,c3,YG,uB_,Ga,KW,kG,BUd,bN,df,NG,O_,gf,eK, hA,W3,yg,s_,DZj,ABU,mZU,Ie,XD,fW,H3,$Zu,Ffj,ZzR,LW,P3,v3,aqs,RTm,SK,oBd,wDR,Ta,zT1,lN,U_,B3,D$,AA,mW,$G,Z$,ae,oe,wf,za,JA,Re,CUs,rBd,CW,rf,xG,xZ1,pW,pD1,ns,q7,n2J,M7,t0,Y1,qqd,cP,Ge,Ks,k1,Mhj,N7,thu,cI1,Yq1,gA,O0,Gjs,KGa,kju,ec,dKU,Qg,bDj,N5j,E0,ODf,h0,g21,WP,eHm,E2k,hHC,WG_,yId,yr,X_C,stf,s0,Sc,jtR,IQ,Squ,fs,Ifk,ffk,HP,HDm,LGs,PZm,v2j,Ls,T51,PP,UKf,Te,lX,B5C,usC,DK1,AIu,mKu,uX,BP,D7,$Ks,FGf,ZDu,afa,RH_,o21,w_u,zH_,JIU,Vhk,mQ,$1,CZm,rIs,Fh,Z7,xKs,aQ,RQ,wA,QtU,ze,J0,Vr,p_d,Cs,nVd,rA,q4d,x1,M4C,iou, Qr,t4u,cNU,Y4j,ps,nh,q4,M4,i2,Gou,KEm,tO,cI,Ym,kod,Gi,Kh,km,b2,dq,bom,dts,N4,O7,NbU,gq,eb,E7,hO,K9d,Ooj,gVm,WI,ePR,EVU,hP1,yy,s7,Xl,jb,Sb,IF,l2,U7,u2,BI,Dw,WER,yNk,RF,oF,XYm,wq,Qy,JO,q_,HoC,Utu,LEd,udd,Dtj,ANj,Bbm,mtf,$tu,FEd,gt,RP_,zPk,wYd,V4R,CS1,rNf,WU,yC,Q1J,pYd,iTf,sD,t_m,nns,XN,jB,SB,I2,YK1,k4s,G4C,Ncu,ynd,Wla,OTU,snj,HU,eS1,gnd,SKj,HTd,feU,Tc_,Lls,Lw,PU,D9J,lk,An1,wK1,ond,RSj,ZTk,aem,$91,V_s,JnC,Flf,pKd,Qnm,ngm,Ap,ijj,qTC,MRa,m9f,tRU,cmU,UD,BU,rnJ,CTJ,x91,YTk,uk,zSs,KbJ,bjd,NNJ,ggs,h51,Wbu, sK_,Xe1,STd,jKs,P0a,f3J,I3d,vgJ,U1R,ui1,BNU,D1a,VC,ED,$1j,Ama,xW,ng,qL,a3J,R51,Zjm,ML,ogs,iG,tj,t5,cc,ata,Yh,GR,Kg,wek,z5s,kh,Jmf,VR1,C0f,bG,dL,NL,OE,gL,eG,EE,hj,Wc,rmu,x1k,yz,QKf,sE,jc,XK,jG,q6f,pek,SG,M$d,iKk,t$U,Ih,n8s,fg,cik,Hc,Y6s,GGf,JNf,Kqd,Lg,cj,Fj,mV,kGm,bKd,vc,Bcs,vU,dp1,Cw,rt,FN,$W,fw,a2,e5j,ymR,ZY,leC,TNj,Nja,XKs,Ens,TR,FbU,hp,g8k,OKa,cns,EgU,ets,l3s,zP,U9C,uQm,IeJ,Oj_,d1s,d9a,Kl_,M_J,qKJ,xtu,Gm1,hSs,Hj_,PTf,vnu,o2,wt,R2,LbJ,km1,ht_,E8U,lG,UE,L7_,uG,Wqf,Bc,DJ,Aj,yia,FK,ZJ,ah,oh,wL,sJm, Rh,zR,Jj,XHJ,Vz,Cg,rL,Qz,S6k,I4C,pg,n9,ql,Ml,iv,tc,cR,Yy,Pcd,K9,v8d,GF,Tjj,HK_,Lqj,l41,ky,bv,Upd,ujf,dX,Bjk,MH,Aid,DpU,$pf,ZKd,a41,Fqu,wHj,ztf,V$1,hc,WR,Ccm,riU,yh,sM,xpJ,QJJ,pHd,nod,jW,qxm,M9U,If,f9,t9m,c5d,Yxd,kpR,L9,TF,UM,b5a,uv,BR,DG,gom,EoR,eLm,WzU,LzR,sSJ,of,mk,hLd,O5a,NHj,dYu,Rf,$y,af,C9,rX,THs,Qh,p9,Vh,BHm,l21,UYm,DYd,nS,qT,mYJ,iI,tG,ca,YM,GB,KS,kM,$Y1,Fzd,bI,dV,OA,a2s,RLa,NT,oof,J5U,V9_,gV,C7u,hG,r5f,Wa,sA,xYU,yO,XJ,QSf,Sf,nJ_,qtU,fS,Ha,lI,i8k,Pa,UA,Ba,tVu,AG,TB,uI,cUU,mr,Ytd,$M,GXk,LS,va, MVm,DZ,FJ,K4_,kXd,ZZ,b8U,a$,R$,o$,wV,dPf,JG,zB,VO,CS,Nys,O8u,rV,xM,QO,pS,nu,gJs,q5,M5,e8J,EJu,ih,ty,c$,W4k,h8u,YQ,yUU,sc1,Xtk,GW,jc_,Stu,IrU,frj,H8d,Ku,kQ,bh,dm,L4d,P__,Ob,vJj,gm,er,TyJ,lrs,Eb,UPd,uqa,mPs,$Pd,By_,DPs,AUs,W$,yZ,sb,Xu,F4U,Z8s,arf,R8j,Sr,z8s,IX,VVm,rUf,C_s,v$,P$,QcU,pts,nGC,q_s,TW,MK1,Ub,uh,iWC,cAk,Y_d,Dc,Fu,bWd,f21,F4,Nf_,OWa,gGd,eZa,EGj,Ac,Ay,RX,oX,ses,X3C,jef,wm,HWa,S_d,I$J,PNk,vGk,zW,Tfj,LWs,l$k,Jy,VZ,Cu,UGj,uDf,rm,xQ,Bfs,QZ,DGC,pu,Zc,id,AAC,H5f,y5a,t4,cr,G5,Kx,k$,bd,dh,Y$,gh,$Gs, E8,ZWC,h4,RZm,a$R,FWd,oGJ,w3R,jF,CNf,zZ1,VKd,JAJ,SF,Id,rAU,xG1,p3u,fx,vo1,Hr,Mcj,tc_,wX,c0U,Y0k,ZG,Xjf,SxR,I2d,n1d,Pr,vr,ld,Ges,KQs,kef,bsa,d7f,NAs,Os_,g1s,e7U,E11,y0m,WQs,sQu,XP_,jQU,U8,S0J,Dj,I7s,f7f,Hsm,A4,LQs,$$,FH,Zj,ad,Rd,PXJ,od,wh,v1C,TAs,z5,J4,Vt,Cx,rh,x$,U7C,l7d,Qt,uhm,D7R,px,A01,BAk,WN,ER,yb,XT,j0,s8,m7j,z7k,E6,h8,HN,r0s,QQ_,Yl,l4,cN,UR,Du,nmm,e0,A8,tbd,mN,$l,cOJ,Y7R,Giu,K1k,FT,kiJ,bhs,Zu,d4m,Emf,eos,Nqj,gms,Ohd,aW,hoU,RW,W1_,yOd,XId,jFu,S71,Iwf,vm_,Vb,Cl,U4f,r1,xl,ulj,AOu,m4d,$4R,F1J,Qb, pl,nt,qS,Zha,RoC,omu,bB,pIs,Vbm,C2s,qDC,d8,MBJ,tBd,iwC,cpa,Oh,Eh,YDd,NS,hK,WO,GPu,kPd,jm,ft,TT,uB,SDC,IY_,$p,mO,Z6,ai,fYm,LVm,Pkj,oi,Ri,vWs,lYm,U_f,BtR,JK,uNU,D_J,Ap1,Ct,r8,$_u,X1,zT,eWJ,KV1,ypU,Mm,F1,Tt_,kt,lB,dZ,Nm,x_j,pU1,Q2_,Uh,BO,nhk,gZ,E9,MGC,hv,Wo,iga,D6,yG,HwU,XU,oWs,jn,Owd,Ntu,bwj,Sn,cjf,fi,YE1,e4J,ghd,h41,W$1,Po,T1,l3,vo,u3,Bo,yj1,D9,Xcu,Av,SEJ,FU,jhu,Z9,am,L$s,TLJ,lJs,wZ,ULs,DLU,i6,c8,Yz,kz,Aju,b6,d6,ej,E3,hV,W8,y_,mLs,s3,XF,aJJ,jj,Sj,R4R,ohU,I5,wcj,fI,z4J,Jjs,VGm,CGU,H8,LI,rj1,xLa,QhJ, l6,U3,DO,AV,pcd,nyJ,mi,qMu,$z,FF,ZO,i9f,tWJ,a5,ccd,YMf,R5,Kk_,GFj,kFJ,o5,dld,b9s,NXm,w6,z6,O91,ebd,Eys,JV,V_,xz,hb1,ycs,XRC,SMC,sfs,Wka,IGJ,jfJ,Q_,fGC,Lkj,pI,Pvu,q$,vyu,TXu,nn,M$,iD,t$,u4U,Dlk,lGJ,BXa,Acd,Ulj,mlR,$l1,cE,Fk1,aGs,wRu,JcU,zbd,O1,N$,E1,Cvf,h$,WE,yR,xlu,s1,Qfs,rcs,Xz,qAa,jp,Sp,MfR,II,iS_,JOJ,QFJ,tfR,YAs,cGu,GBU,fn,HE,Ln,PE,KrU,dTf,lD,U1,uD,OSJ,NVs,vE,gMf,ers,EMu,Wrm,BE,Lrs,uJd,Fz,BVk,Gg,AGm,mTj,$TU,Fru,ZSU,aI,aZf,RI,oI,wp,Rr_,VR,oMm,waC,Cn,rp,zrm,JGf,Vf_,CId,rGs,xX,J$,xTd,Q$s,QR,nQJ,qbj, MrR,pn,iuU,trj,cyd,Ybs,GWU,Kcm,kWs,bu1,d5J,Nma,nU,gQJ,qa,EQu,eak,Wcd,haJ,sXJ,cy,Oud,Ma,Yk,X$s,jXj,Sbs,Ic_,fca,GO,KU,kk,b1,dI,HuU,Na,Lca,gI,U5d,D5k,Ayd,m51,$5d,hL,FcU,Bm1,lcd,Zua,e8,acj,oQs,Oz,Ez,vQj,Tmd,Wy,w$U,za_,uuU,Ph1,JyR,sz,VrC,X6,j8,Chs,S8,QXC,ryj,x5d,Io,p$k,fU,Hy,LU,Py,n$u,q8j,MFf,vy,tFf,c4k,TO,Y8s,l1,Uz,G5m,Kms,k5d,bxC,d0U,Nhs,hNa,g$C,Rbf,By,y4s,sd_,eNa,E$u,OxU,mI,fjm,AL,Do,WmC,Lmu,Ij_,S8R,jdf,Xrj,F6,Pdd,YX,Zo,ao,Ro,v$m,oo,Th_,wI,ljm,ep,U0d,zO,kX,dp,Z9C,VP,rI,A4f,m0u,$0U,QP,CU,JL,pU,Bhm,uHu, D0d,nv,FmC,Zx1,tL,yyf,Kn,qq,aju,xk,RNU,o$k,wrC,zNU,J4d,VFC,Cd1,r4s,x0j,QdC,prk,RaC,$X,iu,qRd,Mq,M0s,pRa,nMJ,tz,il_,t0C,c8C,YRJ,cQ,k3d,G3j,bld,Olu,KNa,glm,El_,eDU,y8J,YE,kE,XN_,sWU,fus,SRa,Hlj,LNj,jWC,Iuj,P4u,bu,vld,lus,T1d,dv,pau,UUU,uT_,B1s,DU_,A8k,$Uu,FNf,Zl_,auk,RD1,mUJ,Nq,bSC,Od,zDd,gv,wNs,J81,V0k,kBm,Tg,C4J,r8a,Ed,itf,Mmj,Xw,tmu,qhC,KOd,kTU,btC,dSa,N8d,OtR,gpJ,e6R,Epu,h6f,WOu,yKj,sid,XOU,IO,eY,Shk,I6d,jY,Htk,jik,SY,LOk,PBC,l6j,B8R,USm,HQ,DSR,Lv,vp1,fv,PQ,T8m,Vw,FOa,a6J,Ztd,R6f,$Sj,opk,wOd,z6J, AKd,JK1,Vma,rKd,xSk,Qis,CBC,nts,Mnm,q9s,Y9C,tnd,pOR,iif,G1C,cvm,KZJ,k1_,bik,Oif,NZ_,dmm,Cv,gt1,eUk,Et1,hUR,WZu,smf,jmm,S9U,I9s,f9_,HiJ,rv,LZU,P3s,TZ1,l9R,nb,uUR,MM,Av1,Dmj,mmk,$ms,FZs,a9d,Zif,wod,zUm,Jvd,VnR,ir,C3d,RU_,ota,xms,Qmu,poR,nzU,q3d,Mjd,i1,iIa,tjk,cVd,G6s,Y3j,Ki1,bIk,dWu,k6J,Jz,hDs,OI1,gzu,es1,j5R,Wid,yVa,s5k,S3s,fOs,Hxd,cF,hsJ,Ez_,IOJ,gp,X8s,u1,bD,u1d,T6s,vzf,lOu,UWm,B6m,DWU,rvm,Kv,G_,Lik,CuJ,P6C,rzJ,N1U,xq_,dUd,mSR,HIC,WNk,Kb,k9,pQ1,br,n9J,qLJ,M1U,ibk,t1k,YL1,Gla,dMa,KDs,bbd,N9j,NM,E9U, g9_,ef_,y3d,s0d,XFa,OL,j0f,d9,SL1,WDj,Obs,g9,Il1,klU,fl1,e1,LDd,HbC,v9s,T9J,lld,Pr_,EL,B9U,uRd,mM_,A31,DMd,$MU,FDU,h3,Zbm,alf,o91,wFd,Rfj,zf_,xMk,V1k,CrU,r3d,Q0C,pF_,na1,MJR,qrJ,iAJ,tJC,cH1,WF,Yrd,Gya,kyk,Kok,bAj,dQd,OA1,gas,Eaa,Wom,e9a,yHd,swR,Xpm,NCa,jw1,h9s,sL,SrC,ISs,fSs,HAa,S1,Psu,LoC,vas,TCd,lS_,BCs,UQR,mQC,I0,uSa,$Qf,fb,oaa,Fof,Lb,PF,wps,HF,z9m,vF,Csj,VJR,aSu,R9a,rH_,xQJ,QwR,ZAm,ppC,Tl,nxR,JHd,BZm,j1,MCU,ieR,tCm,cXj,Y5d,GKa,KPJ,kKf,bed,dVC,Noj,gxa,UL,eXd,OeR,Ex_,hXJ,WPj,yXu,sbd,X0a,IhC,S5s, jbs,fhd,BF,V31,Hek,LPd,Dl,Pyj,vxf,mD,UVj,ugu,FR,Boa,DVR,$9,lhd,Zl,A3,To_,o0,a0,AXf,w9,R0,ZeJ,oxm,zXm,JXC,Cyd,$Vu,w0U,rXj,FPd,xV_,QbJ,p0U,r9,zl,MEJ,iVs,n51,V7,c9u,Yi1,RXd,ahs,tEf,Gb_,VCs,qif,mVC,x9,Q7,pb,Khs,nA,g5m,dF1,egs,N2C,bVR,E5k,kba,y9a,hgC,qQ,sBf,jB_,IWs,fWu,PLd,cp,v5R,HVf,Cb,UFm,u3f,bs,f6m,MQ,B21,DFf,mFd,A9C,$Fs,lWa,Gy,FhR,ZV_,aWd,o5J,Rgk,N6J,Ya,wBf,J9U,zgs,CLR,VEs,Sim,xFf,r9C,KA,is,QBd,NQ,pBf,n0f,q2j,MIf,imd,dC,Lha,QOf,J3,tIa,Or,ck1,Y2C,GkR,K2k,kkJ,gC,eJ,N3j,Oms,g0m,bmm,dJk,Er,W2J,E0m,hKd, ykd,s_s,hH,Xi_,j_k,S2U,Wp,I0k,HmC,L2u,Pqm,yu,f0u,sr,XS,v0s,T3m,l0m,UJR,ucj,B3f,DJJ,Iw,jJ,SJ,Aku,fA,mJU,$J_,F2d,Zmm,RKJ,a0J,ls,wis,zKU,o0_,Jkj,Ur,VI1,us,Cqm,Bp,rk1,xJU,nYj,iXC,Q_s,qGk,DS,pid,Mqu,tqa,cuf,YGs,Grs,mo,Kp_,ZS,$a,krd,aw,Rw,dnC,NGJ,wC,zy,OXs,ow,JH,ehR,gYd,CA,rC,xa,Wpf,EYs,hhU,Qu,yu_,SGs,XSm,sAs,jAC,pA,fkJ,vY1,TGm,ne,lks,HXs,Unm,qV,Lp1,Dnu,MV,mnm,AuC,$nU,Fpm,ZXm,akd,c0,wSk,zh_,Juf,Yx,oYu,ruR,tX,GK,Ke,Rhu,pSC,QAk,qQ1,nNs,go,MxC,icd,YQ1,eC,NV,hX,O5,c1j,tx1,E5,GQU,W0,KsU,kQJ,bcC,yJ,s5,djd,N_m, OcU,gNd,eGf,ENf,hGJ,sLU,WsC,XM_,jL1,fa_,Hca,uej,ly,A1s,Fsm,$jd,mja,laC,UjJ,Lsm,vNa,B_j,U5,uy,aaf,rZ,IJk,RGk,Dh,mP,oNR,wMC,PtC,Djs,J1d,VxU,Ct1,Fg,$x,JX,xj1,QL_,pMf,VJ,nPk,MQJ,qVd,ikd,Ce,ro,tQ_,Gzm,KjR,pe,YVC,kz_,bk_,cMs,MF,ddC,Nn_,qF,Okk,gPf,eJm,EPj,Wjd,hJa,Xu1,jYs,yMC,IVJ,fVu,sYk,cB,Y5,Hkj,lVJ,Gb,Ljk,Pbk,TnR,vP1,Udj,Bns,u8U,DdC,KV,AMf,mdJ,$ds,Fj1,ZkU,aVu,RJj,wuf,oP1,zJU,JMs,VQd,Cba,rMs,QYu,bL,k5,d2,pu1,nAf,xdm,cwd,Yf_,GCs,b6d,kCf,KYf,dIf,NgJ,NF,Oi,O6f,gAR,eOd,EAj,WYm,ywC,eE,s6s,g2,h9,hOa,WB,Xzm,j6f, Sf1,IFJ,fFR,yB,H6a,LYs,Tg_,si,lF1,vA1,X3,jE,SE,u5a,Bgd,DIs,UId,mIU,Awk,$Iu,IB,FYj,Z61,ROs,zOJ,aFU,oAa,fV,JwR,Cwk,rwj,Q6C,pzm,HB,LV,nL_,VeJ,iFk,MHd,qWk,PB,vB,ceU,tHm,Tb,lL,Ui,YWj,uL,G$1,KwJ,k$U,bF1,BB,d6d,DW,NPs,A9,OFj,mh,$5,gLd,F3,ezJ,ZW,aB,hz1,sUC,Xqs,ELm,jUk,fUU,HFd,Lwd,IUJ,SWm,vLC,Peu,TPk,ufu,w2,D6f,BPC,lUd,U6j,Aea,m6J,zb,J9,$6m,Fwk,ZFa,aUu,RzJ,oLj,zz_,Jes,qeR,reC,x6J,VHf,iRd,pV,qJ,KFd,kAd,tk,bRJ,ci,dCj,tXk,QB,Km,Gk,MJ,ORk,gUd,k0,EUC,WFC,hVj,bq,iq,x5,eVk,Y0,c7d,NsU,svs,VB,d3,XGk,jvu,nm,Ye_,NJ, O2,Ses,g3,eI,Ipj,E2,fp_,HRd,PRU,vUs,LFR,hk,Tsa,Wi,yi,lps,UCa,ukm,Bsa,A7f,mCR,FFR,$C_,ZRf,Xc,s2,DCm,apf,oU1,RVC,jI,SI,wGs,J7R,VXs,I_,zVR,CR_,r7m,Qv_,fm,xCf,pGs,n_1,qB_,Lm,Pi,iG1,MD1,tDu,vi,Tk,YBR,c6d,G9J,k9_,Kgf,bGj,U2,dxR,NRs,Bi,OGf,ejJ,g_m,Ak,E_k,hja,Wgs,sCm,X1R,jCm,y6d,SBs,ICm,fCJ,HGa,LgJ,PH1,v_s,TRa,lCk,Fc,Ux1,uZU,BRR,A61,ZGd,$xm,DxC,R_,mx1,a_,FgU,o_,Rjk,aC1,w3,w1C,zjs,J6d,J3_,Cm,BLd,Jk,r3,Vi,Qi,VDu,pm,p1R,nIk,qn_,iJj,Muj,tus,cZC,Ynu,Gud,kuf,bJ1,dz_,Nxf,Kna,yZm,sHm,WnJ,Xvu,Sn1,fbJ,HJd,LnR,tu,Iba, jH_,OJs,cS,Txa,lbC,vIU,POa,Bxk,uIm,Dzs,AZd,mzU,$zs,YY,Fnd,EIJ,Mn,ZJR,abC,Rx1,oIf,gIs,exf,ip,KX,JZd,VuU,CO1,wvm,Gr,zxC,xzd,qsk,bp,MMd,iZf,pvR,Nn,tMm,cRU,rZm,Ysu,nSd,GIj,OG,dG,KLd,bZJ,kIa,kY,NaU,gG,T2d,OZ1,ES1,e1j,WLd,yRs,h1f,EG,eq,Xxa,j3d,Ssd,IMs,ARu,UrJ,uod,lMk,Taf,y2,ZZd,$ru,aMk,R1d,WS,Xr,jq,JRs,z1a,wxd,IA,Drd,PS,C5d,LX,Sq,xra,Q3s,pxR,mr1,lp,up,nff,BaR,VMf,fX,qjm,sG,MvC,i2m,tv_,Au,rR_,cDJ,Yjd,mp,$Y,GhR,HS,FLk,K0d,khC,UG,b2_,vS,dgJ,Tr,$t,N7C,gfd,Fr,Zk,e$f,EfJ,h$C,Dk,BS,W0s,gSJ,yDa,suj,Xwk,juC,Sjk, aA,RA,H2d,vfa,lQm,fQm,F0u,Z2J,aQC,R$j,ofC,wwC,z$C,Vva,JDk,oA,wG,zr,CFd,rDd,xgd,Xh,Qu1,Ju,pwj,V2,nsL,CX,rG,qJw,NP,xY,$8,Mkd,QC,m1k,iaT,TP,tkA,bX,dA,c_s,Pc,YJL,GUA,pw,oVs,KCA,kUF,baK,Q2,NdK,OaQ,pX,qj,Mj,gsK,huF,WCA,t1,y_T,euw,Xdw,Ess,sjK,jjn,SJs,IsT,fsF,cM,LCF,Dos,dH,vP,Pfw,vss,U0,Han,Wj,Tds,lsQ,URs,YN,Vg,BdQ,DRs,GQ,Kc,A_T,kN,bt,nc,mRT,$RF,iDC,d_,Nj,FCD,OQ,g_,ZaT,ex,ass,EQ,h1,RuQ,osF,lfs,WM,wdA,J_w,zun,y$,sQ,VkF,Xe,CfA,r_s,xRK,Qjs,pdF,nwT,MSd,Sx,qFD,iQw,tSw,cFs,YFS,bQD,GLQ,KKQ,kLG,NTQ,gwS,edK,EwL,OQG, IL,hdA,WKF,yFs,sGF,XsD,HM,jGs,Lc,PM,vM,SFA,IAO,HQF,LKS,PnA,vwd,lAQ,TTT,UDw,TQ,lt,DDs,uOw,BTQ,UQ,AFs,mDO,ut,BM,$DA,Da,FKG,A1,ZQQ,ms,$N,aAF,Fe,Za,RdL,ows,aL,RL,wsF,oL,zdS,JFs,V$,Cc,VSO,CnD,rFQ,psT,QGs,r_,nuA,qCT,MLL,Zom,xDs,tLn,cfG,GZn,nsU,NR;na=function(n){return function(){return nsU[n].apply(this,arguments)}}; g.cd=function(n,q){return nsU[n]=q}; qJs=function(n){var q=0;return function(){return q=this.length))return this[n]}; xs=function(n){return n?n:J_}; Oaa=function(n,q,M){n instanceof String&&(n=String(n));for(var t=n.length-1;t>=0;t--){var c=n[t];if(q.call(M,c,t,n))return{GM:t,g2:c}}return{GM:-1,g2:void 0}}; Q1=function(n){return n?n:function(q,M){return Oaa(this,q,M).GM}}; g.nQ=function(n,q,M){n=n.split(".");M=M||g.pa;for(var t;n.length&&(t=n.shift());)n.length||q===void 0?M[t]&&M[t]!==Object.prototype[t]?M=M[t]:M=M[t]={}:M[t]=q}; tF=function(n,q){var M=g.qD("CLOSURE_FLAGS");n=M&&M[n];return n!=null?n:q}; g.qD=function(n,q){n=n.split(".");q=q||g.pa;for(var M=0;M2){var t=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,t);return n.apply(q,c)}}return function(){return n.apply(q,arguments)}}; g.bn=function(n,q,M){g.bn=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Esd:huJ;return g.bn.apply(null,arguments)}; g.dT=function(n,q){var M=Array.prototype.slice.call(arguments,1);return function(){var t=M.slice();t.push.apply(t,arguments);return n.apply(this,t)}}; g.OF=function(){return Date.now()}; eS=function(n){return n}; g.EF=function(n,q){function M(){} M.prototype=q.prototype;n.u7=q.prototype;n.prototype=new M;n.prototype.constructor=n;n.eL=function(t,c,Y){for(var G=Array(arguments.length-2),k=2;k=0;--M)M in t&&q.call(void 0,t[M],M,n)}; g.XO=function(n,q,M){q=sF(n,q,M);return q<0?null:typeof n==="string"?n.charAt(q):n[q]}; sF=function(n,q,M){for(var t=n.length,c=typeof n==="string"?n.split(""):n,Y=0;Y=0;t--)if(t in c&&q.call(M,c[t],t,n))return t;return-1}; g.SS=function(n,q){return jjf(n,q)>=0}; SJd=function(n){if(!Array.isArray(n))for(var q=n.length-1;q>=0;q--)delete n[q];n.length=0}; g.fQ=function(n,q){q=jjf(n,q);var M;(M=q>=0)&&g.IG(n,q);return M}; g.IG=function(n,q){return Array.prototype.splice.call(n,q,1).length==1}; g.ln=function(n,q){q=sF(n,q);q>=0&&g.IG(n,q)}; Isd=function(n,q){var M=0;Xds(n,function(t,c){q.call(void 0,t,c,n)&&g.IG(n,c)&&M++})}; g.UF=function(n){return Array.prototype.concat.apply([],arguments)}; g.un=function(n){var q=n.length;if(q>0){for(var M=Array(q),t=0;t>>1),b=void 0;M?b=q.call(void 0,n[k],k,n):b=q(t,n[k]);b>0?c=k+1:(Y=k,G=!b)}return G?c:-c-1}; g.Vs=function(n,q){n.sort(q||RG)}; LCJ=function(n,q){var M=RG;g.Vs(n,function(t,c){return M(q(t),q(c))})}; g.CQ=function(n,q,M){if(!g.cs(n)||!g.cs(q)||n.length!=q.length)return!1;var t=n.length;M=M||Pfs;for(var c=0;cq?1:n0&&(q[c]=t)},n); return q}; $R_=function(n){n=P7(n);var q=[];g.n3(n,function(M,t){t in Object.prototype||typeof M!="undefined"&&q.push([t,":",M].join(""))}); return q}; Zad=function(n){f3(n,"od",FCR);f3(n,"opac",TZ).X=!0;f3(n,"sbeos",TZ).X=!0;f3(n,"prf",TZ).X=!0;f3(n,"mwt",TZ).X=!0;f3(n,"iogeo",TZ)}; lV=function(n,q){return n.lastIndexOf(q,0)==0}; asd=function(n,q){var M=n.length-q.length;return M>=0&&n.indexOf(q,M)==M}; g.UC=function(n){return/^[\s\xa0]*$/.test(n)}; g.B7=function(n,q){return n.indexOf(q)!=-1}; DR=function(n,q){return g.B7(n.toLowerCase(),q.toLowerCase())}; g.$u=function(n,q){var M=0;n=Af(String(n)).split(".");q=Af(String(q)).split(".");for(var t=Math.max(n.length,q.length),c=0;M==0&&cq?1:0}; g.FV=function(){var n=g.pa.navigator;return n&&(n=n.userAgent)?n:""}; oT=function(n){if(!ZR&&!aT||!RT)return!1;for(var q=0;q0:!1}; Vn=function(){return Jf()?!1:zZ("Opera")}; Rua=function(){return Jf()?!1:zZ("Trident")||zZ("MSIE")}; os_=function(){return Jf()?oT("Microsoft Edge"):zZ("Edg/")}; C3=function(){return zZ("Firefox")||zZ("FxiOS")}; Qn=function(){return zZ("Safari")&&!(r0()||(Jf()?0:zZ("Coast"))||Vn()||(Jf()?0:zZ("Edge"))||os_()||(Jf()?oT("Opera"):zZ("OPR"))||C3()||zZ("Silk")||zZ("Android"))}; r0=function(){return Jf()?oT("Chromium"):(zZ("Chrome")||zZ("CriOS"))&&!(Jf()?0:zZ("Edge"))||zZ("Silk")}; wds=function(){return zZ("Android")&&!(r0()||C3()||Vn()||zZ("Silk"))}; zuf=function(n){var q={};n.forEach(function(M){q[M[0]]=M[1]}); return function(M){return q[M.find(function(t){return t in q})]||""}}; J_s=function(n){var q=g.FV();if(n==="Internet Explorer"){if(Rua())if((n=/rv: *([\d\.]*)/.exec(q))&&n[1])q=n[1];else{n="";var M=/MSIE +([\d\.]+)/.exec(q);if(M&&M[1])if(q=/Trident\/(\d.\d)/.exec(q),M[1]=="7.0")if(q&&q[1])switch(q[1]){case "4.0":n="8.0";break;case "5.0":n="9.0";break;case "6.0":n="10.0";break;case "7.0":n="11.0"}else n="7.0";else n=M[1];q=n}else q="";return q}var t=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");M=[];for(var c;c=t.exec(q);)M.push([c[1],c[2],c[3]||void 0]); q=zuf(M);switch(n){case "Opera":if(Vn())return q(["Version","Opera"]);if(Jf()?oT("Opera"):zZ("OPR"))return q(["OPR"]);break;case "Microsoft Edge":if(Jf()?0:zZ("Edge"))return q(["Edge"]);if(os_())return q(["Edg"]);break;case "Chromium":if(r0())return q(["Chrome","CriOS","HeadlessChrome"])}return n==="Firefox"&&C3()||n==="Safari"&&Qn()||n==="Android Browser"&&wds()||n==="Silk"&&zZ("Silk")?(q=M[2])&&q[1]||"":""}; VkJ=function(n){if(Jf()&&n!=="Silk"){var q=RT.brands.find(function(M){return M.brand===n}); if(!q||!q.version)return NaN;q=q.version.split(".")}else{q=J_s(n);if(q==="")return NaN;q=q.split(".")}return q.length===0?NaN:Number(q[0])}; r_1=function(){var n=null;if(!Cfs)return n;try{var q=function(M){return M}; n=Cfs.createPolicy("goog#html",{createHTML:q,createScript:q,createScriptURL:q})}catch(M){}return n}; n_=function(){p3===void 0&&(p3=r_1());return p3}; qc=function(n){this.X=n}; Mc=function(n){var q=n_();n=q?q.createScriptURL(n):n;return new qc(n)}; ii=function(n){if(n instanceof qc)return n.X;throw Error("");}; tE=function(n){this.X=n}; g.Y6=function(n){if(n instanceof tE)return n.X;throw Error("");}; Gd=function(n){this.ET=n}; K_=function(n){return new Gd(function(q){return q.substr(0,n.length+1).toLowerCase()===n+":"})}; g.k6=function(n,q){q=q===void 0?xRC:q;a:if(q=q===void 0?xRC:q,!(n instanceof tE)){for(var M=0;M4);c++)q[Hg(n[c])]||(M+="\nInner error "+t++ +": ",n[c].stack&&n[c].stack.indexOf(n[c].toString())==0||(M+=typeof n[c]==="string"?n[c]:n[c].message+"\n"),M+=IR(n[c],q));c")!=-1&&(n=n.replace(kLj,">")),n.indexOf('"')!=-1&&(n=n.replace(bQR,""")),n.indexOf("'")!=-1&&(n=n.replace(dDU,"'")),n.indexOf("\x00")!=-1&&(n=n.replace(NTa,"�")));return n}; g.Up=function(n){return n==null?"":String(n)}; ui=function(n){for(var q=0,M=0;M>>0;return q}; Bg=function(n){var q=Number(n);return q==0&&g.UC(n)?NaN:q}; OQj=function(n){return String(n).replace(/\-([a-z])/g,function(q,M){return M.toUpperCase()})}; gwk=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; edC=function(n){return n.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(q,M,t){return M+t.toUpperCase()})}; EwU=function(n){var q=1;n=n.split(":");for(var M=[];q>0&&n.length;)M.push(n.shift()),q--;n.length&&M.push(n.join(":"));return M}; Dy=function(){return ZR||aT?!!RT&&!!RT.platform:!1}; hds=function(){return Dy()?RT.platform==="Android":zZ("Android")}; AE=function(){return zZ("iPhone")&&!zZ("iPod")&&!zZ("iPad")}; mS=function(){return AE()||zZ("iPad")||zZ("iPod")}; $6=function(){return Dy()?RT.platform==="macOS":zZ("Macintosh")}; WKJ=function(){return Dy()?RT.platform==="Windows":zZ("Windows")}; FC=function(n){FC[" "](n);return n}; yFd=function(n,q){try{return FC(n[q]),!0}catch(M){}return!1}; XsR=function(n,q){var M=sG_;return Object.prototype.hasOwnProperty.call(M,n)?M[n]:M[n]=q(n)}; g.Zy=function(n){return XsR(n,function(){return g.$u(jGd,n)>=0})}; g.aR=function(n,q,M){return Math.min(Math.max(n,q),M)}; g.RR=function(n,q){n%=q;return n*q<0?n+q:n}; oR=function(n,q,M){return n+M*(q-n)}; g.wi=function(n,q){this.x=n!==void 0?n:0;this.y=q!==void 0?q:0}; zd=function(n,q){return n==q?!0:n&&q?n.x==q.x&&n.y==q.y:!1}; g.JE=function(n,q){this.width=n;this.height=q}; g.Vl=function(n,q){return n==q?!0:n&&q?n.width==q.width&&n.height==q.height:!1}; C_=function(n){return n.width*n.height}; x6=function(n,q){this.X=n===ri&&q||""}; Ql=function(n){if(n instanceof Op)return n;n=String(n).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return gi(n)}; IAm=function(n){return SFs(n)}; SFs=function(n){var q=Ql("");return gi(n.map(function(M){return e5(Ql(M))}).join(e5(q).toString()))}; vwu=function(n){var q;if(!fAa.test("div"))throw Error("");if(HQJ.indexOf("DIV")!==-1)throw Error("");var M="":(n=IAm(q.map(function(t){return t instanceof Op?t:Ql(String(t))})),M+=">"+n.toString()+""); return gi(M)}; LKk=function(n){for(var q="",M=Object.keys(n),t=0;t2&&AFd(c,G,t,2);return G}; AFd=function(n,q,M,t){function c(k){k&&q.appendChild(typeof k==="string"?n.createTextNode(k):k)} for(;t0)c(Y);else{a:{if(Y&&typeof Y.length=="number"){if(g.Yw(Y)){var G=typeof Y.item=="function"||typeof Y.item=="string";break a}if(typeof Y==="function"){G=typeof Y.item=="function";break a}}G=!1}g.xw(G?g.un(Y):Y,c)}}}; g.eO=function(n){return OS(document,n)}; OS=function(n,q){q=String(q);n.contentType==="application/xhtml+xml"&&(q=q.toLowerCase());return n.createElement(q)}; g.ES=function(n){return document.createTextNode(String(n))}; g.h2=function(n,q){n.appendChild(q)}; g.WT=function(n){for(var q;q=n.firstChild;)n.removeChild(q)}; yf=function(n,q,M){n.insertBefore(q,n.childNodes[M]||null)}; g.sS=function(n){return n&&n.parentNode?n.parentNode.removeChild(n):null}; g.XL=function(n,q){if(!n||!q)return!1;if(n.contains&&q.nodeType==1)return n==q||n.contains(q);if(typeof n.compareDocumentPosition!="undefined")return n==q||!!(n.compareDocumentPosition(q)&16);for(;q&&n!=q;)q=q.parentNode;return q==n}; iP=function(n){return n.nodeType==9?n:n.ownerDocument||n.document}; g.jO=function(n,q){if("textContent"in n)n.textContent=q;else if(n.nodeType==3)n.data=String(q);else if(n.firstChild&&n.firstChild.nodeType==3){for(;n.lastChild!=n.firstChild;)n.removeChild(n.lastChild);n.firstChild.data=String(q)}else g.WT(n),n.appendChild(iP(n).createTextNode(String(q)))}; $Ds=function(n){return n.tagName=="A"&&n.hasAttribute("href")||n.tagName=="INPUT"||n.tagName=="TEXTAREA"||n.tagName=="SELECT"||n.tagName=="BUTTON"?!n.disabled&&(!n.hasAttribute("tabindex")||mDm(n)):n.hasAttribute("tabindex")&&mDm(n)}; mDm=function(n){n=n.tabIndex;return typeof n==="number"&&n>=0&&n<32768}; L7=function(n,q,M){if(!q&&!M)return null;var t=q?String(q).toUpperCase():null;return SO(n,function(c){return(!t||c.nodeName==t)&&(!M||typeof c.className==="string"&&g.SS(c.className.split(/\s+/),M))},!0)}; SO=function(n,q,M){n&&!M&&(n=n.parentNode);for(M=0;n;){if(q(n))return n;n=n.parentNode;M++}return null}; n7=function(n){this.X=n||g.pa.document||document}; FKj=function(){this.X=this.jl=null}; PT=function(){}; TV=function(){if(!vT())throw Error();}; vT=function(){return!(!lP||!lP.performance)}; ZQa=function(n){return g.dK?"webkit"+n:n.toLowerCase()}; US=function(n){return function(){return n}}; g.uP=function(){}; aAJ=function(n){var q=q||0;return function(){return n.apply(this,Array.prototype.slice.call(arguments,0,q))}}; BT=function(n){var q=!1,M;return function(){q||(M=n(),q=!0);return M}}; Dx=function(n){var q=n;return function(){if(q){var M=q;q=null;M()}}}; A2=function(n,q,M){var t=0;return function(c){g.pa.clearTimeout(t);var Y=arguments;t=g.pa.setTimeout(function(){n.apply(M,Y)},q)}}; mT=function(n,q,M,t){this.top=n;this.right=q;this.bottom=M;this.left=t}; $Z=function(n){return n.right-n.left}; FL=function(n,q){return n==q?!0:n&&q?n.top==q.top&&n.right==q.right&&n.bottom==q.bottom&&n.left==q.left:!1}; Zx=function(n,q,M){q instanceof g.wi?(n.left+=q.x,n.right+=q.x,n.top+=q.y,n.bottom+=q.y):(n.left+=q,n.right+=q,typeof M==="number"&&(n.top+=M,n.bottom+=M));return n}; g.ap=function(n,q,M,t){this.left=n;this.top=q;this.width=M;this.height=t}; Rp=function(n,q){return n==q?!0:n&&q?n.left==q.left&&n.width==q.width&&n.top==q.top&&n.height==q.height:!1}; g.wK=function(n,q,M){if(typeof q==="string")(q=op(n,q))&&(n.style[q]=M);else for(var t in q){M=n;var c=q[t],Y=op(M,t);Y&&(M.style[Y]=c)}}; op=function(n,q){var M=RdU[q];if(!M){var t=OQj(q);M=t;n.style[t]===void 0&&(t=(g.dK?"Webkit":zV?"Moz":null)+edC(t),n.style[t]!==void 0&&(M=t));RdU[q]=M}return M}; g.J2=function(n,q){var M=n.style[OQj(q)];return typeof M!=="undefined"?M:n.style[op(n,q)]||""}; Vf=function(n,q){var M=iP(n);return M.defaultView&&M.defaultView.getComputedStyle&&(n=M.defaultView.getComputedStyle(n,null))?n[q]||n.getPropertyValue(q)||"":""}; C7=function(n,q){return Vf(n,q)||(n.currentStyle?n.currentStyle[q]:null)||n.style&&n.style[q]}; g.xZ=function(n,q,M){if(q instanceof g.wi){var t=q.x;q=q.y}else t=q,q=M;n.style.left=g.rK(t,!1);n.style.top=g.rK(q,!1)}; Qf=function(n){try{return n.getBoundingClientRect()}catch(q){return{left:0,top:0,right:0,bottom:0}}}; ow1=function(n){var q=iP(n),M=C7(n,"position"),t=M=="fixed"||M=="absolute";for(n=n.parentNode;n&&n!=q;n=n.parentNode)if(n.nodeType==11&&n.host&&(n=n.host),M=C7(n,"position"),t=t&&M=="static"&&n!=q.documentElement&&n!=q.body,!t&&(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight||M=="fixed"||M=="absolute"||M=="relative"))return n;return null}; g.p7=function(n){var q=iP(n),M=new g.wi(0,0);if(n==(q?iP(q):document).documentElement)return M;n=Qf(n);q=t2(q);q=DDd(q.X);M.x=n.left+q.x;M.y=n.top+q.y;return M}; zdk=function(n,q){var M=new g.wi(0,0),t=NE(iP(n));if(!yFd(t,"parent"))return M;do{var c=t==q?g.p7(n):ws_(n);M.x+=c.x;M.y+=c.y}while(t&&t!=q&&t!=t.parent&&(n=t.frameElement)&&(t=t.parent));return M}; g.nH=function(n,q){n=JFd(n);q=JFd(q);return new g.wi(n.x-q.x,n.y-q.y)}; ws_=function(n){n=Qf(n);return new g.wi(n.left,n.top)}; JFd=function(n){if(n.nodeType==1)return ws_(n);n=n.changedTouches?n.changedTouches[0]:n;return new g.wi(n.clientX,n.clientY)}; g.qv=function(n,q,M){if(q instanceof g.JE)M=q.height,q=q.width;else if(M==void 0)throw Error("missing height argument");n.style.width=g.rK(q,!0);n.style.height=g.rK(M,!0)}; g.rK=function(n,q){typeof n=="number"&&(n=(q?Math.round(n):n)+"px");return n}; g.Mv=function(n){var q=VSm;if(C7(n,"display")!="none")return q(n);var M=n.style,t=M.display,c=M.visibility,Y=M.position;M.visibility="hidden";M.position="absolute";M.display="inline";n=q(n);M.display=t;M.position=Y;M.visibility=c;return n}; VSm=function(n){var q=n.offsetWidth,M=n.offsetHeight,t=g.dK&&!q&&!M;return(q===void 0||t)&&n.getBoundingClientRect?(n=Qf(n),new g.JE(n.right-n.left,n.bottom-n.top)):new g.JE(q,M)}; g.iE=function(n,q){n.style.display=q?"":"none"}; tl=function(n){return n?n.passive&&CnR()?n:n.capture||!1:!1}; cn=function(n,q,M,t){return typeof n.addEventListener==="function"?(n.addEventListener(q,M,tl(t)),!0):!1}; Yq=function(n){if(n.prerendering)return 3;var q;return(q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[n.visibilityState||n.webkitVisibilityState||n.mozVisibilityState||""])!=null?q:0}; rFa=function(){}; Gf=function(n){try{return!!n&&n.location.href!=null&&yFd(n,"foo")}catch(q){return!1}}; xDd=function(n){for(var q=n;n&&n!=n.parent;)n=n.parent,Gf(n)&&(q=n);return q}; QGd=function(){return(ZR||aT)&&RT?RT.mobile:!KH()&&(zZ("iPod")||zZ("iPhone")||zZ("Android")||zZ("IEMobile"))}; KH=function(){return(ZR||aT)&&RT?!RT.mobile&&(zZ("iPad")||zZ("Android")||zZ("Silk")):zZ("iPad")||zZ("Android")&&!zZ("Mobile")||zZ("Silk")}; psd=function(n){var q,M;return(M=(q=/https?:\/\/[^\/]+/.exec(n))==null?void 0:q[0])!=null?M:""}; i3d=function(n){n=n||kq();for(var q=new nus(g.pa.location.href,!1),M=null,t=n.length-1,c=t;c>=0;--c){var Y=n[c];!M&&qCd.test(Y.url)&&(M=Y);if(Y.url&&!Y.X){q=Y;break}}c=null;Y=n.length&&n[t].url;q.depth!==0&&Y&&(c=n[t]);return new MLU(q,c,M)}; kq=function(){var n=g.pa,q=[],M=null;do{var t=n;if(Gf(t)){var c=t.location.href;M=t.document&&t.document.referrer||null}else c=M,M=null;q.push(new nus(c||""));try{n=t.parent}catch(Y){n=null}}while(n&&t!==n);t=0;for(n=q.length-1;t<=n;++t)q[t].depth=n-t;t=g.pa;if(t.location&&t.location.ancestorOrigins&&t.location.ancestorOrigins.length===q.length-1)for(n=1;nq&&(q=M.length);return 3997-q-n.Z.length-1}; hl=function(n,q){this.X=n;this.depth=q}; N0C=function(){function n(k,b){return k==null?b:k} var q=kq(),M=Math.max(q.length-1,0),t=i3d(q);q=t.X;var c=t.W,Y=t.Z,G=[];Y&&G.push(new hl([Y.url,Y.X?2:0],n(Y.depth,1)));c&&c!=Y&&G.push(new hl([c.url,2],0));q.url&&q!=Y&&G.push(new hl([q.url,0],n(q.depth,M)));t=g.Wn(G,function(k,b){return G.slice(0,G.length-b)}); !q.url||(Y||c)&&q!=Y||(c=psd(q.url))&&t.push([new hl([c,1],n(q.depth,M))]);t.push([]);return g.Wn(t,function(k){return dka(M,k)})}; dka=function(n,q){g.yD(q,function(c){return c.depth>=0}); var M=Xp(q,function(c,Y){return Math.max(c,Y.depth)},-1),t=vs1(M+2); t[0]=n;g.xw(q,function(c){return t[c.depth+1]=c.X}); return t}; O3u=function(){var n=n===void 0?N0C():n;return n.map(function(q){return Ew(q)})}; guj=function(n){var q=!1;q=q===void 0?!1:q;lP.google_image_requests||(lP.google_image_requests=[]);var M=YCJ("IMG",lP.document);q&&(M.attributionSrc="");M.src=n;lP.google_image_requests.push(M)}; ji=function(n){var q="SC";if(n.SC&&n.hasOwnProperty(q))return n.SC;var M=new n;n.SC=M;n.hasOwnProperty(q);return M}; Si=function(){this.W=new rFa;this.X=vT()?new TV:new PT}; eRd=function(){Ig();var n=lP.document;return!!(n&&n.body&&n.body.getBoundingClientRect&&typeof lP.setInterval==="function"&&typeof lP.clearInterval==="function"&&typeof lP.setTimeout==="function"&&typeof lP.clearTimeout==="function")}; Eua=function(){Ig();return O3u()}; hR1=function(){}; Ig=function(){var n=ji(hR1);if(!n.X){if(!lP)throw Error("Context has not been set and window is undefined.");n.X=ji(Si)}return n.X}; fH=function(){throw Error("Invalid UTF8");}; W3d=function(n,q){q=String.fromCharCode.apply(null,q);return n==null?q:n+q}; jTC=function(n){var q=!1;q=q===void 0?!1:q;if(yfa){if(q&&(sTU?!n.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(n)))throw Error("Found an unpaired surrogate");n=(X7C||(X7C=new TextEncoder)).encode(n)}else{for(var M=0,t=new Uint8Array(3*n.length),c=0;c>6|192;else{if(Y>=55296&&Y<=57343){if(Y<=56319&&c=56320&&G<=57343){Y=(Y-55296)*1024+ G-56320+65536;t[M++]=Y>>18|240;t[M++]=Y>>12&63|128;t[M++]=Y>>6&63|128;t[M++]=Y&63|128;continue}else c--}if(q)throw Error("Found an unpaired surrogate");Y=65533}t[M++]=Y>>12|224;t[M++]=Y>>6&63|128}t[M++]=Y&63|128}}n=M===t.length?t:t.subarray(0,M)}return n}; Hn=function(n){g.pa.setTimeout(function(){throw n;},0)}; SCk=function(n){return Array.prototype.map.call(n,function(q){q=q.toString(16);return q.length>1?q:"0"+q}).join("")}; IRs=function(n){for(var q=[],M=0;M>6|192:((c&64512)==55296&&t+1>18|240,q[M++]=c>>12&63|128):q[M++]=c>>12|224,q[M++]=c>>6&63|128),q[M++]=c&63|128)}return q}; g.Pn=function(n,q){q===void 0&&(q=0);fRs();q=H3j[q];for(var M=Array(Math.floor(n.length/3)),t=q[64]||"",c=0,Y=0;c>2];G=q[(G&3)<<4|k>>4];k=q[(k&15)<<2|b>>6];b=q[b&63];M[Y++]=""+d+G+k+b}d=0;b=t;switch(n.length-c){case 2:d=n[c+1],b=q[(d&15)<<2]||t;case 1:n=n[c],M[Y]=""+q[n>>2]+q[(n&3)<<4|d>>4]+b+t}return M.join("")}; g.vn=function(n,q,M){if(L3f&&!q)n=g.pa.btoa(n);else{for(var t=[],c=0,Y=0;Y255){var k=Error("go/unicode-to-byte-error");if(M)throw k;t[c++]=G&255;G>>=8}t[c++]=G}n=g.Pn(t,q)}return n}; vuu=function(n){var q=[];PVJ(n,function(M){q.push(M)}); return q}; Tf=function(n){var q=n.length,M=q*3/4;M%3?M=Math.floor(M):g.B7("=.",n[q-1])&&(M=g.B7("=.",n[q-2])?M-2:M-1);var t=new Uint8Array(M),c=0;PVJ(n,function(Y){t[c++]=Y}); return c!==M?t.subarray(0,c):t}; PVJ=function(n,q){function M(b){for(;t>4);G!=64&&(q(Y<<4&240|G>>2),k!=64&&q(G<<6&192|k))}}; fRs=function(){if(!lE){lE={};for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),q=["+/=","+/","-_=","-_.","-_"],M=0;M<5;M++){var t=n.concat(q[M].split(""));H3j[M]=t;for(var c=0;c=q||(t[n]=M+1,n=Error(),tSs(n,"incident"),Hn(n))}}; Fp=function(n,q,M){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(M===void 0?0:M)&&Symbol.for&&n?Symbol.for(n):n!=null?Symbol(n):Symbol():q}; Rg=function(n,q){ZB||ag in n||F3U(n,Z3_);n[ag]|=q}; og=function(n,q){ZB||ag in n||F3U(n,Z3_);n[ag]=q}; wk=function(){return typeof BigInt==="function"}; Jl=function(n,q){return q===void 0?n.X!==zf&&!!(2&(n.MP[ag]|0)):!!(2&q)&&n.X!==zf}; aRC=function(n,q){if(n!=null)if(typeof n==="string")n=n?new Uw(n,uE):Bn();else if(n.constructor!==Uw)if(mkm&&n!=null&&n instanceof Uint8Array)n=n.length?new Uw(new Uint8Array(n),uE):Bn();else{if(!q)throw Error();n=void 0}return n}; VD=function(n,q){if(typeof q!=="number"||q<0||q>=n.length)throw Error();}; RRd=function(n,q,M){var t=q&128?0:-1,c=n.length,Y;if(Y=!!c)Y=n[c-1],Y=Y!=null&&typeof Y==="object"&&Y.constructor===Object;var G=c+(Y?-1:0);for(q=q&128?1:0;qq.length)return!1;if(n.lengthc)return!1;if(t>>0;M3=q;iK=(n-q)/4294967296>>>0}; Yv=function(n){if(n<0){tS(0-n);var q=g.S(cb(M3,iK));n=q.next().value;q=q.next().value;M3=n>>>0;iK=q>>>0}else tS(n)}; K0=function(n,q){var M=q*4294967296+(n>>>0);return Number.isSafeInteger(M)?M:Gx(n,q)}; JfU=function(n,q){var M=q&2147483648;M&&(n=~n+1>>>0,q=~q>>>0,n==0&&(q=q+1>>>0));n=K0(n,q);return typeof n==="number"?M?-n:n:M?"-"+n:n}; Gx=function(n,q){q>>>=0;n>>>=0;if(q<=2097151)var M=""+(4294967296*q+n);else wk()?M=""+(BigInt(q)<>>24|q<<8)&16777215,q=q>>16&65535,n=(n&16777215)+M*6777216+q*6710656,M+=q*8147497,q*=2,n>=1E7&&(M+=n/1E7>>>0,n%=1E7),M>=1E7&&(q+=M/1E7>>>0,M%=1E7),M=q+VLu(M)+VLu(n));return M}; VLu=function(n){n=String(n);return"0000000".slice(n.length)+n}; CVd=function(){var n=M3,q=iK;q&2147483648?wk()?n=""+(BigInt(q|0)<>>0)):(q=g.S(cb(n,q)),n=q.next().value,q=q.next().value,n="-"+Gx(n,q)):n=Gx(n,q);return n}; kv=function(n){if(n.length<16)Yv(Number(n));else if(wk())n=BigInt(n),M3=Number(n&BigInt(4294967295))>>>0,iK=Number(n>>BigInt(32)&BigInt(4294967295));else{var q=+(n[0]==="-");iK=M3=0;for(var M=n.length,t=0+q,c=(M-q)%6+q;c<=M;t=c,c+=6)t=Number(n.slice(t,c)),iK*=1E6,M3=M3*1E6+t,M3>=4294967296&&(iK+=Math.trunc(M3/4294967296),iK>>>=0,M3>>>=0);q&&(q=g.S(cb(M3,iK)),n=q.next().value,q=q.next().value,M3=n,iK=q)}}; cb=function(n,q){q=~q;n?n=~n+1:q+=1;return[n,q]}; bK=function(n){return Array.prototype.slice.call(n)}; dr=function(n){if(n!=null&&typeof n!=="number")throw Error("Value of float/double field must be a number, found "+typeof n+": "+n);return n}; rff=function(n){return n.displayName||n.name||"unknown type name"}; N3=function(n){if(n!=null&&typeof n!=="boolean")throw Error("Expected boolean but got "+gsC(n)+": "+n);return n}; gr=function(n){switch(typeof n){case "bigint":return!0;case "number":return OP(n);case "string":return xka.test(n);default:return!1}}; QTm=function(n){if(typeof n!=="number")throw md("int32");if(!OP(n))throw md("int32");return n|0}; e2=function(n){return n==null?n:QTm(n)}; EP=function(n){if(n==null)return n;if(typeof n==="string"&&n)n=+n;else if(typeof n!=="number")return;return OP(n)?n|0:void 0}; yj=function(n){if(n==null)return n;if(typeof n==="string"&&n)n=+n;else if(typeof n!=="number")return;return OP(n)?n>>>0:void 0}; qpj=function(n){var q=0;q=q===void 0?0:q;if(!gr(n))throw md("int64");var M=typeof n;switch(q){case 512:switch(M){case "string":return sP(n);case "bigint":return String(X9(64,n));default:return j2(n)}case 1024:switch(M){case "string":return p7s(n);case "bigint":return q3(X9(64,n));default:return n6m(n)}case 0:switch(M){case "string":return sP(n);case "bigint":return q3(X9(64,n));default:return S2(n)}default:return Nc(q,"Unknown format requested type for int64")}}; Il=function(n){return n==null?n:qpj(n)}; M5R=function(n){if(n[0]==="-")return!1;var q=n.length;return q<20?!0:q===20&&Number(n.substring(0,6))<184467}; i_U=function(n){var q=n.length;return n[0]==="-"?q<20?!0:q===20&&Number(n.substring(0,7))>-922337:q<19?!0:q===19&&Number(n.substring(0,6))<922337}; t5R=function(n){if(n<0){Yv(n);var q=Gx(M3,iK);n=Number(q);return f0(n)?n:q}q=String(n);if(M5R(q))return q;Yv(n);return K0(M3,iK)}; cEd=function(n){if(i_U(n))return n;kv(n);return CVd()}; S2=function(n){gr(n);n=Hb(n);f0(n)||(Yv(n),n=JfU(M3,iK));return n}; j2=function(n){gr(n);n=Hb(n);if(f0(n))n=String(n);else{var q=String(n);i_U(q)?n=q:(Yv(n),n=CVd())}return n}; sP=function(n){gr(n);var q=Hb(Number(n));if(f0(q))return String(q);q=n.indexOf(".");q!==-1&&(n=n.substring(0,q));return cEd(n)}; p7s=function(n){var q=Hb(Number(n));if(f0(q))return q3(q);q=n.indexOf(".");q!==-1&&(n=n.substring(0,q));return wk()?q3(X9(64,BigInt(n))):q3(cEd(n))}; n6m=function(n){return f0(n)?q3(S2(n)):q3(j2(n))}; YpJ=function(n){if(n==null)return n;var q=typeof n;if(q==="bigint")return String(X9(64,n));if(gr(n)){if(q==="string")return sP(n);if(q==="number")return S2(n)}}; KSs=function(n){if(n==null)return n;var q=typeof n;if(q==="bigint")return String(Gdd(64,n));if(gr(n)){if(q==="string")return gr(n),q=Hb(Number(n)),f0(q)&&q>=0?n=String(q):(q=n.indexOf("."),q!==-1&&(n=n.substring(0,q)),M5R(n)||(kv(n),n=Gx(M3,iK))),n;if(q==="number")return gr(n),n=Hb(n),n>=0&&f0(n)?n:t5R(n)}}; kdk=function(n){if(n==null||typeof n=="string"||n instanceof Uw)return n}; b_j=function(n){if(typeof n!=="string")throw Error();return n}; L0=function(n){if(n!=null&&typeof n!=="string")throw Error();return n}; Pb=function(n){return n==null||typeof n==="string"?n:void 0}; vb=function(n,q){if(!(n instanceof q))throw Error("Expected instanceof "+rff(q)+" but got "+(n&&rff(n.constructor)));return n}; dca=function(n,q,M){if(n!=null&&n[Tx]===lK)return n;if(Array.isArray(n)){var t=n[ag]|0;M=t|M&32|M&2;M!==t&&og(n,M);return new q(n)}}; UP=function(n){return n}; Bb=function(n){var q=eS(uK);return q?n[q]:void 0}; Dv=function(){}; AS=function(n,q){for(var M in n)!isNaN(M)&&q(n,+M,n[M])}; NiC=function(n){var q=new Dv;AS(n,function(M,t,c){q[t]=bK(c)}); q.Xp=n.Xp;return q}; g6k=function(n,q){q<100||$q(O_d,1)}; Zv=function(n,q,M,t){var c=t!==void 0;t=!!t;var Y=eS(uK),G;!c&&ZB&&Y&&(G=n[Y])&&AS(G,g6k);Y=[];var k=n.length;G=4294967295;var b=!1,d=!!(q&64),N=d?q&128?0:-1:void 0;if(!(q&1)){var O=k&&n[k-1];O!=null&&typeof O==="object"&&O.constructor===Object?(k--,G=k):O=void 0;if(d&&!(q&128)&&!c){b=!0;var e;G=((e=F9)!=null?e:UP)(G-N,N,n,O,void 0)+N}}q=void 0;for(e=0;e=G){var h=e-N,I=void 0;((I=q)!=null?I:q={})[h]=E}else Y[e]=E}if(O)for(var L in O)k=O[L],k!= null&&(k=M(k,t))!=null&&(e=+L,E=void 0,d&&!Number.isNaN(e)&&(E=e+N)0?void 0:n===0?yEs||(yEs=[0,void 0]):[-n,void 0];case "string":return[0,n];case "object":return n}}; zx=function(n,q,M){return n=wr(n,q[0],q[1],M?1:2)}; wr=function(n,q,M,t){t=t===void 0?0:t;if(n==null){var c=32;M?(n=[M],c|=128):n=[];q&&(c=c&-8380417|(q&1023)<<13)}else{if(!Array.isArray(n))throw Error("narr");c=n[ag]|0;if(Xgm&&1&c)throw Error("rfarr");2048&c&&!(2&c)&&jRd();if(c&256)throw Error("farr");if(c&64)return t!==0||c&2048||og(n,c|2048),n;if(M&&(c|=128,M!==n[0]))throw Error("mid");a:{M=n;c|=64;var Y=M.length;if(Y){var G=Y-1,k=M[G];if(k!=null&&typeof k==="object"&&k.constructor===Object){q=c&128?0:-1;G-=q;if(G>=1024)throw Error("pvtlmt");for(var b in k)Y= +b,Y1024)throw Error("spvt");c=c&-8380417|(b&1023)<<13}}}c|=64;t===0&&(c|=2048);og(n,c);return n}; jRd=function(){if(Xgm)throw Error("carr");$q(Sp1,5)}; IyJ=function(n,q){if(typeof n!=="object")return n;if(Array.isArray(n)){var M=n[ag]|0;n.length===0&&M&1?n=void 0:M&2||(!q||4096&M||16&M?n=JS(n,M,!1,q&&!(M&16)):(Rg(n,34),M&4&&Object.freeze(n)));return n}if(n!=null&&n[Tx]===lK)return q=n.MP,M=q[ag]|0,Jl(n,M)?n:Vj(n,q,M)?C0(n,q):JS(q,M);if(n instanceof Uw)return n}; C0=function(n,q,M){n=new n.constructor(q);M&&(n.X=zf);n.W=zf;return n}; JS=function(n,q,M,t){t!=null||(t=!!(34&q));n=Zv(n,q,IyJ,t);t=32;M&&(t|=2);q=q&8380609|t;og(n,q);return n}; fyk=function(n){var q=n.MP,M=q[ag]|0;return Jl(n,M)?Vj(n,q,M)?C0(n,q,!0):new n.constructor(JS(q,M,!1)):n}; rr=function(n){if(n.X!==zf)return!1;var q=n.MP;q=JS(q,q[ag]|0);Rg(q,2048);n.MP=q;n.X=void 0;n.W=void 0;return!0}; xv=function(n){if(!rr(n)&&Jl(n,n.MP[ag]|0))throw Error();}; Qj=function(n,q){q===void 0&&(q=n[ag]|0);q&32&&!(q&4096)&&og(n,q|4096)}; Vj=function(n,q,M){return M&2?!0:M&32&&!(M&4096)?(og(q,M|2),n.X=zf,!0):!1}; nf=function(n,q,M,t,c){Object.isExtensible(n);q=p0(n.MP,q,M,c);if(q!==null||t&&n.W!==zf)return q}; p0=function(n,q,M,t){if(q===-1)return null;var c=q+(M?0:-1),Y=n.length-1;if(!(Y<1+(M?0:-1))){if(c>=Y){var G=n[Y];if(G!=null&&typeof G==="object"&&G.constructor===Object){M=G[q];var k=!0}else if(c===Y)M=G;else return}else M=n[c];if(t&&M!=null){t=t(M);if(t==null)return t;if(!Object.is(t,M))return k?G[q]=t:n[c]=t,t}return M}}; MX=function(n,q,M,t){xv(n);var c=n.MP;qX(c,c[ag]|0,q,M,t);return n}; qX=function(n,q,M,t,c){var Y=M+(c?0:-1),G=n.length-1;if(G>=1+(c?0:-1)&&Y>=G){var k=n[G];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[M]=t,q}if(Y<=G)return n[Y]=t,q;if(t!==void 0){var b;G=((b=q)!=null?b:q=n[ag]|0)>>13&1023||536870912;M>=G?t!=null&&(Y={},n[G+(c?0:-1)]=(Y[M]=t,Y)):n[Y]=t}return q}; G0=function(n,q,M,t,c){var Y=n.MP,G=Y[ag]|0;t=Jl(n,G)?1:t;c=!!c||t===3;t===2&&rr(n)&&(Y=n.MP,G=Y[ag]|0);n=iY(Y,q);var k=n===tr?7:n[ag]|0,b=cW(k,G);var d=4&b?!1:!0;if(d){4&b&&(n=bK(n),k=0,b=YK(b,G),G=qX(Y,G,q,n));for(var N=0,O=0;N32)for(M|=(G&127)>>4,t=3;t<32&&G&128;t+=7)G=c[Y++],M|=(G&127)<>>0,M>>>0);throw Error();}; RP=function(n,q){n.X=q;if(q>n.Z)throw Error();}; wD=function(n){var q=n.W,M=n.X,t=q[M++],c=t&127;if(t&128&&(t=q[M++],c|=(t&127)<<7,t&128&&(t=q[M++],c|=(t&127)<<14,t&128&&(t=q[M++],c|=(t&127)<<21,t&128&&(t=q[M++],c|=t<<28,t&128&&q[M++]&128&&q[M++]&128&&q[M++]&128&&q[M++]&128&&q[M++]&128)))))throw Error();RP(n,M);return c}; z0=function(n){var q=n.W,M=n.X,t=q[M+0],c=q[M+1],Y=q[M+2];q=q[M+3];RP(n,n.X+4);return(t<<0|c<<8|Y<<16|q<<24)>>>0}; Jr=function(n){var q=z0(n);n=z0(n);return K0(q,n)}; V0=function(n){var q=z0(n),M=z0(n);n=(M>>31)*2+1;var t=M>>>20&2047;q=4294967296*(M&1048575)+q;return t==2047?q?NaN:n*Infinity:t==0?n*4.9E-324*q:n*Math.pow(2,t-1075)*(q+4503599627370496)}; Cf=function(n){for(var q=0,M=n.X,t=M+10,c=n.W;Mn.Z)throw Error();n.X=q;return M}; $cf=function(n,q){if(q==0)return Bn();var M=AER(n,q);n.vL&&n.S?M=n.W.subarray(M,M+q):(n=n.W,q=M+q,M=M===q?new Uint8Array(0):mcd?n.slice(M,q):new Uint8Array(n.subarray(M,q)));return M.length==0?Bn():new Uw(M,uE)}; xK=function(n,q,M,t){if(rD.length){var c=rD.pop();c.init(n,q,M,t);n=c}else n=new aP(n,q,M,t);this.X=n;this.J=this.X.X;this.W=this.Z=-1;FSs(this,t)}; FSs=function(n,q){q=q===void 0?{}:q;n.Kc=q.Kc===void 0?!1:q.Kc}; Z_j=function(n,q,M,t){if(Q0.length){var c=Q0.pop();FSs(c,t);c.X.init(n,q,M,t);return c}return new xK(n,q,M,t)}; ayd=function(n){var q=n.X;if(q.X==q.Z)return!1;n.J=n.X.X;var M=wD(n.X)>>>0;q=M>>>3;M&=7;if(!(M>=0&&M<=5))throw Error();if(q<1)throw Error();n.Z=q;n.W=M;return!0}; pf=function(n){switch(n.W){case 0:n.W!=0?pf(n):Cf(n.X);break;case 1:n=n.X;RP(n,n.X+8);break;case 2:if(n.W!=2)pf(n);else{var q=wD(n.X)>>>0;n=n.X;RP(n,n.X+q)}break;case 5:n=n.X;RP(n,n.X+4);break;case 3:q=n.Z;do{if(!ayd(n))throw Error();if(n.W==4){if(n.Z!=q)throw Error();break}pf(n)}while(1);break;default:throw Error();}}; k3=function(n,q,M){var t=n.X.Z,c=wD(n.X)>>>0;c=n.X.X+c;var Y=c-t;Y<=0&&(n.X.Z=c,M(q,n,void 0,void 0,void 0),Y=c-n.X.X);if(Y)throw Error();n.X.X=c;n.X.Z=t}; Nh=function(n){var q=wD(n.X)>>>0;n=n.X;var M=AER(n,q);n=n.W;if(R2J){var t=n,c;(c=bA)||(c=bA=new TextDecoder("utf-8",{fatal:!0}));q=M+q;t=M===0&&q===t.length?t:t.subarray(M,q);try{var Y=c.decode(t)}catch(d){if(du===void 0){try{c.decode(new Uint8Array([128]))}catch(N){}try{c.decode(new Uint8Array([97])),du=!0}catch(N){du=!1}}!du&&(bA=void 0);throw d;}}else{Y=M;q=Y+q;M=[];for(var G=null,k,b;Y=q?fH():(b=n[Y++],k<194||(b&192)!==128?(Y--,fH()):M.push((k&31)<<6|b&63)): k<240?Y>=q-1?fH():(b=n[Y++],(b&192)!==128||k===224&&b<160||k===237&&b>=160||((c=n[Y++])&192)!==128?(Y--,fH()):M.push((k&15)<<12|(b&63)<<6|c&63)):k<=244?Y>=q-2?fH():(b=n[Y++],(b&192)!==128||(k<<28)+(b-144)>>30!==0||((c=n[Y++])&192)!==128||((t=n[Y++])&192)!==128?(Y--,fH()):(k=(k&7)<<18|(b&63)<<12|(c&63)<<6|t&63,k-=65536,M.push((k>>10&1023)+55296,(k&1023)+56320))):fH(),M.length>=8192&&(G=W3d(G,M),M.length=0);Y=W3d(G,M)}return Y}; o6J=function(n){var q=wD(n.X)>>>0;return $cf(n.X,q)}; Oa=function(n,q){this.W=n>>>0;this.X=q>>>0}; z2u=function(n){if(!n)return wgu||(wgu=new Oa(0,0));if(!/^\d+$/.test(n))return null;kv(n);return new Oa(M3,iK)}; gu=function(n,q){this.W=n>>>0;this.X=q>>>0}; V5m=function(n){if(!n)return JEU||(JEU=new gu(0,0));if(!/^-?\d+$/.test(n))return null;kv(n);return new gu(M3,iK)}; eT=function(){this.X=[]}; Ea=function(n,q,M){for(;M>0||q>127;)n.X.push(q&127|128),q=(q>>>7|M<<25)>>>0,M>>>=7;n.X.push(q)}; hh=function(n,q){for(;q>127;)n.X.push(q&127|128),q>>>=7;n.X.push(q)}; CiU=function(n,q){if(q>=0)hh(n,q);else{for(var M=0;M<9;M++)n.X.push(q&127|128),q>>=7;n.X.push(1)}}; WZ=function(n,q){n.X.push(q>>>0&255);n.X.push(q>>>8&255);n.X.push(q>>>16&255);n.X.push(q>>>24&255)}; rEC=function(){this.Z=[];this.W=0;this.X=new eT}; yU=function(n,q){q.length!==0&&(n.Z.push(q),n.W+=q.length)}; xcU=function(n,q){sa(n,q,2);q=n.X.end();yU(n,q);q.push(n.W);return q}; QRu=function(n,q){var M=q.pop();for(M=n.W+n.X.length()-M;M>127;)q.push(M&127|128),M>>>=7,n.W++;q.push(M);n.W++}; sa=function(n,q,M){hh(n.X,q*8+M)}; pgj=function(n,q,M){if(M!=null){switch(typeof M){case "string":z2u(M)}sa(n,q,1);switch(typeof M){case "number":n=n.X;tS(M);WZ(n,M3);WZ(n,iK);break;case "bigint":M=BigInt.asUintN(64,M);M=new Oa(Number(M&BigInt(4294967295)),Number(M>>BigInt(32)));n=n.X;q=M.X;WZ(n,M.W);WZ(n,q);break;default:M=z2u(M),n=n.X,q=M.X,WZ(n,M.W),WZ(n,q)}}}; X2=function(n,q,M){sa(n,q,2);hh(n.X,M.length);yU(n,n.X.end());yU(n,M)}; jT=function(){function n(){throw Error();} Object.setPrototypeOf(n,n.prototype);return n}; ST=function(n,q,M){this.MP=wr(n,q,M)}; nZm=function(n,q){if(q==null||q=="")return new n;q=JSON.parse(q);if(!Array.isArray(q))throw Error("dnarr");Rg(q,32);return new n(q)}; fd=function(n,q,M){this.lf=n;this.fV=q;n=eS(Ix);this.X=!!n&&M===n||!1}; HZ=function(n,q){var M=M===void 0?Ix:M;return new fd(n,q,M)}; MOR=function(n,q,M,t,c){q=qSJ(q,t);q!=null&&(M=xcU(n,M),c(q,n),QRu(n,M))}; vZ=function(n,q,M,t){var c=t[n];if(c)return c;c={};c.Eg=t;c.T4=sRk(t[0]);var Y=t[1],G=1;Y&&Y.constructor===Object&&(c.extensions=Y,Y=t[++G],typeof Y==="function"&&(c.Pf=!0,Ld!=null||(Ld=Y),PZ!=null||(PZ=t[G+1]),Y=t[G+=2]));for(var k={};Y&&Array.isArray(Y)&&Y.length&&typeof Y[0]==="number"&&Y[0]>0;){for(var b=0;b>BigInt(32)));Ea(n.X,M.W,M.X);break;default:M=V5m(q),Ea(n.X,M.W,M.X)}}}; QU=function(n,q,M){q=EP(q);q!=null&&q!=null&&(sa(n,M,0),CiU(n.X,q))}; e3d=function(n,q,M){q=q==null||typeof q==="boolean"?q:typeof q==="number"?!!q:void 0;q!=null&&(sa(n,M,0),n.X.X.push(q?1:0))}; EZ1=function(n,q,M){q=Pb(q);q!=null&&X2(n,M,jTC(q))}; h31=function(n,q,M,t,c){q=qSJ(q,t);q!=null&&(M=xcU(n,M),c(q,n),QRu(n,M))}; y2U=function(){var n=pd;this.X=WTm;this.isRepeated=0;this.W=IP;this.defaultValue=void 0;this.Z=n.messageId!=null?CH:void 0}; spk=function(n,q){return function(M,t){var c={XL:!0};t&&Object.assign(c,t);M=Z_j(M,void 0,void 0,c);try{var Y=new n,G=Y.MP;uA(q)(G,M);var k=Y}finally{M.free()}return k}}; XTs=function(n){return function(){var q=new rEC;dEs(this.MP,q,vZ(Ah,DP,mt,n));yU(q,q.X.end());for(var M=new Uint8Array(q.W),t=q.Z,c=t.length,Y=0,G=0;G-1)return q.apply(null,g.EJ(M));try{return n.X=n.Z.X.now(),q.apply(null,g.EJ(M))}finally{n.J+=n.Z.X.now()-n.X,n.X=-1,n.W+=1}}}; SSm=function(n,q){this.W=n;this.Z=q;this.X=new jp_(n)}; Ixs=function(){this.X={}}; PPs=function(){this.Z=void 0;this.W=this.C=0;this.S=-1;this.qn=new IT;f3(this.qn,"mv",fxm).X=!0;f3(this.qn,"omid",TZ);f3(this.qn,"epoh",TZ).X=!0;f3(this.qn,"epph",TZ).X=!0;f3(this.qn,"umt",TZ).X=!0;f3(this.qn,"phel",TZ).X=!0;f3(this.qn,"phell",TZ).X=!0;f3(this.qn,"oseid",H71).X=!0;var n=this.qn;n.X.sloi||(n.X.sloi=new jL);n.X.sloi.X=!0;f3(this.qn,"mm",im);f3(this.qn,"ovms",LTU).X=!0;f3(this.qn,"xdi",TZ).X=!0;f3(this.qn,"amp",TZ).X=!0;f3(this.qn,"prf",TZ).X=!0;f3(this.qn,"gtx",TZ).X=!0;f3(this.qn, "mvp_lv",TZ).X=!0;f3(this.qn,"ssmol",TZ).X=!0;f3(this.qn,"fmd",TZ).X=!0;f3(this.qn,"gen204simple",TZ);this.X=new SSm(Ig(),this.qn);this.J=!1;this.flags=new Ixs}; tC=function(){return ji(PPs)}; vZu=function(n,q,M,t){if(Math.random()<(t||n.X))try{if(M instanceof gk)var c=M;else c=new gk,Ow(M,function(G,k){var b=c,d=b.J++;G=ei(k,G);b.X.push(d);b.W[d]=G}); var Y=c.Ag(n.W,"pagead2.googlesyndication.com","/pagead/gen_204?id="+q+"&");Y&&(Ig(),guj(Y))}catch(G){}}; TKJ=function(n,q,M){M=M===void 0?{}:M;this.error=n;this.meta=M;this.context=q.context;this.msg=q.message||"";this.id=q.id||"jserror"}; lx1=function(){var n=n===void 0?g.pa:n;return(n=n.performance)&&n.now&&n.timing?Math.floor(n.now()+n.timing.navigationStart):g.OF()}; UEJ=function(){var n=n===void 0?g.pa:n;return(n=n.performance)&&n.now?n.now():null}; uLs=function(n,q,M){this.label=n;this.type=q;this.value=M;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; YO=function(){var n=window;this.events=[];this.W=n||g.pa;var q=null;n&&(n.google_js_reporting_queue=n.google_js_reporting_queue||[],this.events=n.google_js_reporting_queue,q=n.google_measure_js_timing);this.X=cV()||(q!=null?q:Math.random()<1)}; BKj=function(n){n&&G8&&cV()&&(G8.clearMarks("goog_"+n.label+"_"+n.uniqueId+"_start"),G8.clearMarks("goog_"+n.label+"_"+n.uniqueId+"_end"))}; KN=function(n,q,M,t,c,Y,G){var k="";n&&(k+=n+":");M&&(k+="//",q&&(k+=q+"@"),k+=M,t&&(k+=":"+t));c&&(k+=c);Y&&(k+="?"+Y);G&&(k+="#"+G);return k}; g.kO=function(n){return n.match(DEf)}; A2d=function(n){return n?decodeURI(n):n}; g.bm=function(n){return A2d(g.kO(n)[3]||null)}; d$=function(n){return A2d(g.kO(n)[5]||null)}; g.mEJ=function(n){n=g.kO(n);return KN(n[1],n[2],n[3],n[4])}; Nu=function(n){n=g.kO(n);return KN(null,null,null,null,n[5],n[6],n[7])}; $Ea=function(n){var q=n.indexOf("#");return q<0?n:n.slice(0,q)}; Ou=function(n,q){if(n){n=n.split("&");for(var M=0;M=0){var Y=n[M].substring(0,t);c=n[M].substring(t+1)}else Y=n[M];q(Y,c?Td(c):"")}}}; g$=function(n,q){if(!q)return n;var M=n.indexOf("#");M<0&&(M=n.length);var t=n.indexOf("?");if(t<0||t>M){t=M;var c=""}else c=n.substring(t+1,M);n=[n.slice(0,t),c,n.slice(M)];M=n[1];n[1]=q?M?M+"&"+q:q:M;return n[0]+(n[1]?"?"+n[1]:"")+n[2]}; ey=function(n,q,M){if(Array.isArray(q))for(var t=0;t=0&&qM)c=M;t+=q.length+1;return Td(n.slice(t,c!==-1?c:0))}; IV=function(n,q){for(var M=n.search(XM),t=0,c,Y=[];(c=yK(n,t,q,M))>=0;)Y.push(n.substring(t,c)),t=Math.min(n.indexOf("&",c)+1||M,M);Y.push(n.slice(t));return Y.join("").replace(ax1,"$1")}; R3U=function(n,q,M){return WV(IV(n,q),q,M)}; oZm=function(){var n=fN;this.X=HV;this.hk="jserror";this.K4=!0;this.oD=null;this.W=this.Rn;this.Eq=n===void 0?null:n}; wTf=function(n,q,M){var t=LN;return Mu(tC().X.X,function(){try{if(t.Eq&&t.Eq.X){var c=t.Eq.start(n.toString(),3);var Y=q();t.Eq.end(c)}else Y=q()}catch(k){var G=t.K4;try{BKj(c),G=t.W(n,new PV(vV(k)),void 0,M)}catch(b){t.Rn(217,b)}if(!G)throw k;}return Y})()}; T8=function(n,q,M,t){return Mu(tC().X.X,function(){var c=g.Fm.apply(0,arguments);return wTf(n,function(){return q.apply(M,c)},t)})}; vV=function(n){var q=n.toString();n.name&&q.indexOf(n.name)==-1&&(q+=": "+n.name);n.message&&q.indexOf(n.message)==-1&&(q+=": "+n.message);if(n.stack)a:{n=n.stack;var M=q;try{n.indexOf(M)==-1&&(n=M+"\n"+n);for(var t;n!=t;)t=n,n=n.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");q=n.replace(/\n */g,"\n");break a}catch(c){q=M;break a}q=void 0}return q}; PV=function(n){TKJ.call(this,Error(n),{message:n})}; z3a=function(){lP&&typeof lP.google_measure_js_timing!="undefined"&&(lP.google_measure_js_timing||fN.disable())}; J2J=function(n){LN.oD=function(q){g.xw(n,function(M){M(q)})}}; VOd=function(n,q){return wTf(n,q)}; lm=function(n,q){return T8(n,q)}; Uu=function(n,q,M,t){LN.Rn(n,q,M,t)}; um=function(){return Date.now()-CPJ}; r2f=function(){var n=tC().Z,q=BV>=0?um()-BV:-1,M=Dz?um()-AC:-1,t=mB>=0?um()-mB:-1;if(n==947190542)return 100;if(n==79463069)return 200;n=[2E3,4E3];var c=[250,500,1E3];Uu(637,Error(),.001);var Y=q;M!=-1&&M1500&&t<4E3?500:G}; $O=function(n,q,M){var t=new mT(0,0,0,0);this.time=n;this.volume=null;this.Z=q;this.X=t;this.W=M}; FM=function(n,q,M,t,c,Y,G,k){this.J=n;this.N=q;this.Z=M;this.C=t;this.X=c;this.S=Y;this.W=G;this.B=k}; Qpk=function(n){var q=n!==n.top,M=n.top===xDd(n),t=-1,c=0;if(q&&M&&n.top.mraid){t=3;var Y=n.top.mraid}else t=(Y=n.mraid)?q?M?2:1:0:-1;Y&&(Y.IS_GMA_SDK||(c=2),URd(xEJ,function(G){return typeof Y[G]==="function"})||(c=1)); return{M6:Y,compatibility:c,Kvt:t}}; pTm=function(){var n=window.document;return n&&typeof n.elementFromPoint==="function"}; nqu=function(n,q,M){if(n&&q!==null&&q!=q.top){if(!q.top)return new g.JE(-12245933,-12245933);q=q.top}try{return(M===void 0?0:M)?(new g.JE(q.innerWidth,q.innerHeight)).round():uOs(q||window).round()}catch(t){return new g.JE(-12245933,-12245933)}}; Zz=function(n,q,M){try{if(n){if(!q.top)return new mT(-12245933,-12245933,-12245933,-12245933);q=q.top}var t=nqu(n,q,M),c=t.height,Y=t.width;if(Y===-12245933)return new mT(Y,Y,Y,Y);var G=t2(q.document);var k=DDd(G.X);var b=k.x,d=k.y;return new mT(d,b+Y,d+c,b)}catch(N){return new mT(-12245933,-12245933,-12245933,-12245933)}}; aV=function(n,q){q=Math.pow(10,q);return Math.floor(n*q)/q}; qwa=function(n){return new mT(n.top,n.right,n.bottom,n.left)}; MiR=function(n){var q=n.top||0,M=n.left||0;return new mT(q,M+(n.width||0),q+(n.height||0),M)}; RV=function(n){return n!=null&&n>=0&&n<=1}; iH_=function(){var n=g.FV();return n?oV("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(q){return DR(n,q)})||DR(n,"OMI/")&&!DR(n,"XiaoMi/")?!0:DR(n,"Presto")&&DR(n,"Linux")&&!DR(n,"X11")&&!DR(n,"Android")&&!DR(n,"Mobi"):!1}; tiC=function(){this.Z=!Gf(lP.top);this.isMobileDevice=KH()||QGd();var n=kq();this.domain=n.length>0&&n[n.length-1]!=null&&n[n.length-1].url!=null?g.bm(n[n.length-1].url)||"":"";this.X=new mT(0,0,0,0);this.J=new g.JE(0,0);this.S=new g.JE(0,0);this.N=new mT(0,0,0,0);this.frameOffset=new g.wi(0,0);this.C=0;this.B=!1;this.W=!(!lP||!Qpk(lP).M6);this.update(lP)}; cl1=function(n,q){q&&q.screen&&(n.J=new g.JE(q.screen.width,q.screen.height))}; YwR=function(n,q){a:{var M=n.X?new g.JE($Z(n.X),n.X.getHeight()):new g.JE(0,0);q=q===void 0?lP:q;q!==null&&q!=q.top&&(q=q.top);var t=0,c=0;try{var Y=q.document,G=Y.body,k=Y.documentElement;if(Y.compatMode=="CSS1Compat"&&k.scrollHeight)t=k.scrollHeight!=M.height?k.scrollHeight:k.offsetHeight,c=k.scrollWidth!=M.width?k.scrollWidth:k.offsetWidth;else{var b=k.scrollHeight,d=k.scrollWidth,N=k.offsetHeight,O=k.offsetWidth;k.clientHeight!=N&&(b=G.scrollHeight,d=G.scrollWidth,N=G.offsetHeight,O=G.offsetWidth); b>M.height?b>N?(t=b,c=d):(t=N,c=O):b0||n.B)return!0;n=Ig().W.isVisible();var q=Yq(z8)===0;return n||q}; w$=function(){return ji(tiC)}; VK=function(n){this.Z=n;this.W=0;this.X=null}; CN=function(n,q,M){this.Z=n;this.rJ=M===void 0?"na":M;this.S=[];this.isInitialized=!1;this.J=new $O(-1,!0,this);this.X=this;this.B=q;this.xl=this.U=!1;this.IL="uk";this.jX=!1;this.C=!0}; r$=function(n,q){g.SS(n.S,q)||(n.S.push(q),q.jS(n.X),q.LU(n.J),q.HO()&&(n.U=!0))}; Gfk=function(n){n=n.X;n.MX();n.Q3();var q=w$();q.N=Zz(!1,n.Z,q.isMobileDevice);YwR(w$(),n.Z);n.J.X=n.YN()}; Kds=function(n){n.U=n.S.length?oV(n.S,function(q){return q.HO()}):!1}; kfJ=function(n){var q=g.un(n.S);g.xw(q,function(M){M.LU(n.J)})}; xO=function(n){var q=g.un(n.S);g.xw(q,function(M){M.jS(n.X)}); n.X!=n||kfJ(n)}; QK=function(n,q,M,t){this.element=n;this.X=new mT(0,0,0,0);this.J=null;this.C=new mT(0,0,0,0);this.W=q;this.qn=M;this.jX=t;this.wJ=!1;this.timestamp=-1;this.U=new FM(q.J,this.element,this.X,new mT(0,0,0,0),0,0,um(),0);this.S=void 0}; bH_=function(n,q){return n.S?new mT(Math.max(q.top+n.S.top,q.top),Math.min(q.left+n.S.right,q.right),Math.min(q.top+n.S.bottom,q.bottom),Math.max(q.left+n.S.left,q.left)):q.clone()}; pN=function(n){this.S=!1;this.X=n;this.J=function(){}}; dvR=function(n,q,M){this.Z=M===void 0?0:M;this.W=n;this.X=q==null?"":q}; NkC=function(n){switch(Math.trunc(n.Z)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; OHJ=function(n,q){return n.Zq.Z?!1:n.Wq.W?!1:typeof n.Xtypeof q.X?!1:n.X0?t[M]-t[M-1]:t[M]})}; Nf=function(){this.W=new Yr;this.rJ=this.SX=0;this.V1=new cl;this.RL=this.N=-1;this.eX=1E3;this.Ux=new Yr([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.IL=this.wJ=-1}; OI=function(n,q){return Swm(n.W,q===void 0?!0:q)}; gJ=function(n,q,M,t){var c=c===void 0?!1:c;M=T8(t,M);cn(n,q,M,{capture:c})}; EI=function(n,q){q=eN(q);return q===0?0:eN(n)/q}; eN=function(n){return Math.max(n.bottom-n.top,0)*Math.max(n.right-n.left,0)}; HHU=function(n,q){if(!n||!q)return!1;for(var M=0;n!==null&&M++<100;){if(n===q)return!0;try{if(n=n.parentElement||n){var t=iP(n),c=t&&NE(t),Y=c&&c.frameElement;Y&&(n=Y)}}catch(G){break}}return!1}; Ldf=function(n,q,M){if(!n||!q)return!1;q=Zx(n.clone(),-q.left,-q.top);n=(q.left+q.right)/2;q=(q.top+q.bottom)/2;Gf(window.top)&&window.top&&window.top.document&&(window=window.top);if(!pTm())return!1;n=window.document.elementFromPoint(n,q);if(!n)return!1;q=(q=(q=iP(M))&&q.defaultView&&q.defaultView.frameElement)&&HHU(q,n);var t=n===M;n=!t&&n&&SO(n,function(c){return c===M}); return!(q||t||n)}; PEa=function(n,q,M,t){return w$().Z?!1:$Z(n)<=0||n.getHeight()<=0?!0:M&&t?VOd(208,function(){return Ldf(n,q,M)}):!1}; hg=function(n,q,M){g.F.call(this);this.position=vqa.clone();this.sL=this.ol();this.Qz=-2;this.timeCreated=Date.now();this.Sq=-1;this.Sp=q;this.nH=null;this.gh=!1;this.RA=null;this.opacity=-1;this.requestSource=M;this.SNt=!1;this.Wu=function(){}; this.KD=function(){}; this.z$=new FKj;this.z$.jl=n;this.z$.X=n;this.vJ=!1;this.GR={dQ:null,jo:null};this.V_=!0;this.o6=null;this.Cp=this.wbd=!1;tC().C++;this.ag=this.PQ();this.Ij=-1;this.nu=null;this.hasCompleted=this.WdE=!1;this.qn=new IT;Zad(this.qn);TkJ(this);this.requestSource==1?H7(this.qn,"od",1):H7(this.qn,"od",0)}; TkJ=function(n){n=n.z$.jl;var q;if(q=n&&n.getAttribute)q=/-[a-z]/.test("googleAvInapp")?!1:lBd&&n.dataset?"googleAvInapp"in n.dataset:n.hasAttribute?n.hasAttribute("data-"+gwk()):!!n.getAttribute("data-"+gwk());q&&(w$().W=!0)}; Wl=function(n,q){q!=n.Cp&&(n.Cp=q,n=w$(),q?n.C++:n.C>0&&n.C--)}; Uvs=function(n,q){if(n.nu){if(q.getName()===n.nu.getName())return;n.nu.dispose();n.nu=null}q=q.create(n.z$.X,n.qn,n.HO());if(q=q!=null&&q.observe()?q:null)n.nu=q}; ups=function(n,q,M){if(!n.nH||n.Sp==-1||q.W===-1||n.nH.W===-1)return 0;n=q.W-n.nH.W;return n>M?0:n}; BkJ=function(n,q,M){if(n.nu){n.nu.Ii();var t=n.nu.U,c=t.J,Y=c.X;if(t.C!=null){var G=t.Z;n.RA=new g.wi(G.left-Y.left,G.top-Y.top)}Y=n.KA()?Math.max(t.X,t.S):t.X;G={};c.volume!==null&&(G.volume=c.volume);c=n.Gu(t);n.nH=t;n.Cm(Y,q,M,!1,G,c,t.B)}}; Dv_=function(n){if(n.gh&&n.o6){var q=L3(n.qn,"od")==1,M=w$().X,t=n.o6,c=n.nu?n.nu.getName():"ns",Y=n.RA,G=new g.JE($Z(M),M.getHeight());M=n.KA();n={vMd:c,RA:Y,ErE:G,KA:M,Pm:n.ag.Pm,KRL:q};if(q=t.W){q.Ii();c=q.U;Y=c.J.X;var k=G=null;c.C!=null&&Y&&(G=c.Z,G=new g.wi(G.left-Y.left,G.top-Y.top),k=new g.JE(Y.right-Y.left,Y.bottom-Y.top));c=M?Math.max(c.X,c.S):c.X;M={vMd:q.getName(),RA:G,ErE:k,KA:M,KRL:!1,Pm:c}}else M=null;M&&sgJ(t,n,M)}}; Ald=function(n,q,M){q&&(n.Wu=q);M&&(n.KD=M)}; g.yL=function(){}; g.Is=function(n){return{value:n,done:!1}}; D3s=function(){this.J=this.X=this.Z=this.W=this.S=0}; ASf=function(n){var q={};var M=g.OF()-n.S;q=(q.ptlt=M,q);(M=n.W)&&(q.pnk=M);(M=n.Z)&&(q.pnc=M);(M=n.J)&&(q.pnmm=M);(n=n.X)&&(q.pns=n);return q}; m3J=function(){pQ.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; fP=function(n){return RV(n.volume)&&n.volume>0}; Hl=function(n,q,M,t){M=M===void 0?!0:M;t=t===void 0?function(){return!0}:t; return function(c){var Y=c[n];if(Array.isArray(Y)&&t(c))return $3f(Y,q,M)}}; LP=function(n,q){return function(M){return q(M)?M[n]:void 0}}; Fau=function(n){return function(q){for(var M=0;M0?Y[c-1]+1:0,t+1).reduce(function(G,k){return G+k},0)})}; Z0J=function(){this.W=this.X=""}; avd=function(){}; vl=function(n,q){var M={};if(n!==void 0)if(q!=null)for(var t in q){var c=q[t];t in Object.prototype||c!=null&&(M[t]=typeof c==="function"?c(n):n[c])}else g.yn(M,n);return Mf(qf(new nP,M))}; RAC=function(){var n={};this.W=(n.vs=[1,0],n.vw=[0,1],n.am=[2,2],n.a=[4,4],n.f=[8,8],n.bm=[16,16],n.b=[32,32],n.avw=[0,64],n.avs=[64,0],n.pv=[256,256],n.gdr=[0,512],n.p=[0,1024],n.r=[0,2048],n.m=[0,4096],n.um=[0,8192],n.ef=[0,16384],n.s=[0,32768],n.pmx=[0,16777216],n.mut=[33554432,33554432],n.umutb=[67108864,67108864],n.tvoff=[134217728,134217728],n);this.X={};for(var q in this.W)this.W[q][1]>0&&(this.X[q]=0);this.Z=0}; TN=function(n,q){var M=n.W[q],t=M[1];n.Z+=M[0];t>0&&n.X[q]==0&&(n.X[q]=1)}; ova=function(n){var q=g.GZ(n.W),M=0,t;for(t in n.X)g.SS(q,t)&&n.X[t]==1&&(M+=n.W[t][1],n.X[t]=2);return M}; wbC=function(n){var q=0,M;for(M in n.X){var t=n.X[M];if(t==1||t==2)q+=n.W[M][1]}return q}; lz=function(){this.X=this.W=0}; UI=function(){Nf.call(this);this.Z=new cl;this.AE=this.U=this.jX=0;this.B=-1;this.QS=new cl;this.S=new cl;this.X=new Yr;this.C=this.J=-1;this.xl=new cl;this.eX=2E3;this.nm=new lz;this.Yl=new lz;this.hE=new lz}; uz=function(n,q,M){var t=n.AE;Dz||M||n.B==-1||(t+=q-n.B);return t}; zAs=function(){this.Z=!1}; Bl=function(n,q){this.Z=!1;this.J=n;this.U=q;this.S=0}; DL=function(n,q){Bl.call(this,n,q);this.N=[]}; JSd=function(){}; mM=function(){}; $r=function(n,q,M,t){QK.call(this,n,q,M,t)}; FX=function(n,q,M){QK.call(this,null,n,q,M);this.B=n.isActive();this.N=0}; ZL=function(n){return[n.top,n.left,n.bottom,n.right]}; as=function(n,q,M,t,c,Y){Y=Y===void 0?new mM:Y;hg.call(this,q,M,t);this.fM=c;this.Yv=0;this.qW={};this.EC=new RAC;this.M4={};this.R9="";this.hE=null;this.uG=!1;this.X=[];this.RK=Y.W();this.C=Y.Z();this.J=null;this.Z=-1;this.rJ=this.U=void 0;this.RL=this.xl=0;this.IL=-1;this.eX=this.Yl=!1;this.jX=this.B=this.W=this.lE=this.Wg=0;new Yr;this.nm=this.AE=0;this.V1=-1;this.hP=0;this.N=g.uP;this.wJ=[this.ol()];this.Yi=2;this.y0={};this.y0.pause="p";this.y0.resume="r";this.y0.skip="s";this.y0.mute="m";this.y0.unmute= "um";this.y0.exitfullscreen="ef";this.S=null;this.Ux=this.QS=!1;this.Fh=Math.floor(Date.now()/1E3-1704067200);this.SX=0}; Rs=function(n){n.hasCompleted=!0;n.hP!=0&&(n.hP=3)}; os=function(n){return n===void 0?n:Number(n)?aV(n,3):0}; wJ=function(n,q){return n.wJ[q!=null&&qMath.max(1E4,n.Z/3)?0:q);var M=n.N(n)||{};M=M.currentTime!==void 0?M.currentTime:n.xl;var t=M-n.xl,c=0;t>=0?(n.RL+=q,n.nm+=Math.max(q-t,0),c=Math.min(t,n.RL)):n.AE+=Math.abs(t);t!=0&&(n.RL=0);n.V1==-1&&t>0&&(n.V1=mB>=0?um()-mB:-1);n.xl=M;return c}; rSm=function(n,q){oV(n.C,function(M){return M.J==q.J})||n.C.push(q)}; x3U=function(n){var q=kr(n.A9().X,1);return zN(n,q)}; zN=function(n,q,M){return q>=15E3?!0:n.Yl?(M===void 0?0:M)?!0:n.Z>0?q>=n.Z/2:n.IL>0?q>=n.IL:!1:!1}; QlJ=function(n){var q=aV(n.ag.Pm,2),M=n.EC.Z,t=n.ag,c=wJ(n),Y=os(c.J),G=os(c.C),k=os(t.volume),b=aV(c.N,2),d=aV(c.RL,2),N=aV(t.Pm,2),O=aV(c.wJ,2),e=aV(c.IL,2);t=aV(t.QC,2);var E=n.YE().clone().round();n=n.TY()?n.TY().clone().round():null;c=OI(c,!1);return{LRl:q,I7:M,H9:Y,P9:G,yj:k,eZ:b,OL:d,Pm:N,EL:O,YG:e,QC:t,position:E,Xt:n,UL:c}}; nKR=function(n,q){pbu(n.X,q,function(){return{LRl:0,I7:void 0,H9:-1,P9:-1,yj:-1,eZ:-1,OL:-1,Pm:-1,EL:-1,YG:-1,QC:-1,position:void 0,Xt:void 0,UL:[]}}); n.X[q]=QlJ(n)}; pbu=function(n,q,M){for(var t=n.length;t0?1:0;O.atos=GN(d.X); O.ssb=GN(d.Ux,!1);O.amtos=Swm(d.X,!1);O.uac=n.Wg;O.vpt=d.Z.X;N=="nio"&&(O.nio=1,O.avms="nio");O.gmm="4";O.gdr=zN(n,d.Z.X,!0)?1:0;O.efpf=n.Yi;if(N=="gsv"||N=="nis")N=n.nu,N.N>0&&(O.nnut=N.N);O.tcm=V2f(n);O.nmt=n.AE;O.bt=n.nm;O.pst=n.V1;O.vpaid=n.U;O.dur=n.Z;O.vmtime=n.xl;O.is=n.EC.Z;n.X.length>=1&&(O.i0=n.X[0].I7,O.a0=[n.X[0].yj],O.c0=[n.X[0].Pm],O.ss0=[n.X[0].QC],N=n.X[0].position,Y=n.X[0].Xt,O.p0=N?ZL(N):void 0,N&&Y&&!FL(Y,N)&&(O.cp0=ZL(Y)));n.X.length>=2&&(O.i1=n.X[1].I7,O.a1=CP(n.X[1].H9,n.X[1].yj, n.X[1].P9),O.c1=CP(n.X[1].eZ,n.X[1].Pm,n.X[1].OL),O.ss1=CP(n.X[1].EL,n.X[1].QC,n.X[1].YG),N=n.X[1].position,Y=n.X[1].Xt,O.p1=N?ZL(N):void 0,N&&Y&&!FL(Y,N)&&(O.cp1=ZL(Y)),O.mtos1=n.X[1].UL);n.X.length>=3&&(O.i2=n.X[2].I7,O.a2=CP(n.X[2].H9,n.X[2].yj,n.X[2].P9),O.c2=CP(n.X[2].eZ,n.X[2].Pm,n.X[2].OL),O.ss2=CP(n.X[2].EL,n.X[2].QC,n.X[2].YG),N=n.X[2].position,Y=n.X[2].Xt,O.p2=N?ZL(N):void 0,N&&Y&&!FL(Y,N)&&(O.cp2=ZL(Y)),O.mtos2=n.X[2].UL);n.X.length>=4&&(O.i3=n.X[3].I7,O.a3=CP(n.X[3].H9,n.X[3].yj,n.X[3].P9), O.c3=CP(n.X[3].eZ,n.X[3].Pm,n.X[3].OL),O.ss3=CP(n.X[3].EL,n.X[3].QC,n.X[3].YG),N=n.X[3].position,Y=n.X[3].Xt,O.p3=N?ZL(N):void 0,N&&Y&&!FL(Y,N)&&(O.cp3=ZL(Y)),O.mtos3=n.X[3].UL);O.cs=wbC(n.EC);q&&(O.ic=ova(n.EC),O.dvpt=d.Z.W,O.dvs=dJ(d.W,.5),O.dfvs=dJ(d.W,1),O.davs=dJ(d.X,.5),O.dafvs=dJ(d.X,1),M&&(d.Z.W=0,IBR(d.W),IBR(d.X)),n.MZ()&&(O.dtos=d.jX,O.dav=d.U,O.dtoss=n.Yv+1,M&&(d.jX=0,d.U=0,n.Yv++)),O.dat=d.S.W,O.dft=d.xl.W,M&&(d.S.W=0,d.xl.W=0));O.ps=[k.S.width,k.S.height];O.bs=[$Z(k.X),k.X.getHeight()]; O.scs=[k.J.width,k.J.height];O.dom=k.domain;n.lE&&(O.vds=n.lE);if(n.C.length>0||n.RK)q=g.un(n.C),n.RK&&q.push(n.RK),O.pings=g.Wn(q,function(e){return e.toString()}); q=g.Wn(g.Pl(n.C,function(e){return e.C()}),function(e){return e.getId()}); fsJ(q);O.ces=q;n.W&&(O.vmer=n.W);n.B&&(O.vmmk=n.B);n.jX&&(O.vmiec=n.jX);O.avms=n.nu?n.nu.getName():"ns";n.nu&&g.yn(O,n.nu.PJ());t?(O.c=aV(n.ag.Pm,2),O.ss=aV(n.ag.QC,2)):O.tth=um()-tls;O.mc=aV(d.RL,2);O.nc=aV(d.N,2);O.mv=os(d.C);O.nv=os(d.J);O.lte=aV(n.Qz,2);t=wJ(n,c);OI(d);O.qmtos=OI(t);O.qnc=aV(t.N,2);O.qmv=os(t.C);O.qnv=os(t.J);O.qas=t.J>0?1:0;O.qi=n.R9;O.avms||(O.avms="geo");O.psm=d.nm.X;O.psv=d.nm.getValue();O.psfv=d.Yl.getValue();O.psa=d.hE.getValue();b=$R_(b.qn);b.length&&(O.veid=b);n.S&&g.yn(O, ASf(n.S));O.avas=n.gB();O.vs=n.VD();O.co=crm(n);O.tm=d.SX;O.tu=d.rJ;return O}; qUf=function(n,q){if(g.SS(YU1,q))return!0;var M=n.qW[q];return M!==void 0?(n.qW[q]=!0,!M):!1}; crm=function(n){var q=n.SX.toString(10).padStart(2,"0");q=""+n.Fh+q;n.SX<99&&n.SX++;return q}; Kej=function(){this.X={};var n=NE();rJ(this,n,document);var q=G01();try{if("1"==q){for(var M=n.parent;M!=n.top;M=M.parent)rJ(this,M,M.document);rJ(this,n.top,n.top.document)}}catch(t){}}; G01=function(){var n=document.documentElement;try{if(!Gf(NE().top))return"2";var q=[],M=NE(n.ownerDocument);for(n=M;n!=M.top;n=n.parent)if(n.frameElement)q.push(n.frameElement);else break;return q&&q.length!=0?"1":"0"}catch(t){return"2"}}; rJ=function(n,q,M){gJ(M,"mousedown",function(){return k01(n)},301); gJ(q,"scroll",function(){return bff(n)},302); gJ(M,"touchmove",function(){return dXu(n)},303); gJ(M,"mousemove",function(){return NDC(n)},304); gJ(M,"keydown",function(){return Ofa(n)},305)}; k01=function(n){g.n3(n.X,function(q){q.Z>1E5||++q.Z})}; bff=function(n){g.n3(n.X,function(q){q.X>1E5||++q.X})}; dXu=function(n){g.n3(n.X,function(q){q.X>1E5||++q.X})}; Ofa=function(n){g.n3(n.X,function(q){q.W>1E5||++q.W})}; NDC=function(n){g.n3(n.X,function(q){q.J>1E5||++q.J})}; gKa=function(){this.X=[];this.W=[]}; xr=function(n,q){return g.XO(n.X,function(M){return M.R9==q})}; eCk=function(n,q){return q?g.XO(n.X,function(M){return M.z$.jl==q}):null}; EKj=function(n,q){return g.XO(n.W,function(M){return M.Mo()==2&&M.R9==q})}; pP=function(){var n=QL;return n.X.length==0?n.W:n.W.length==0?n.X:g.UF(n.W,n.X)}; hCf=function(n,q){n=q.Mo()==1?n.X:n.W;var M=sF(n,function(t){return t==q}); return M!=-1?(n.splice(M,1),q.nu&&q.nu.unobserve(),q.dispose(),!0):!1}; Wes=function(n){var q=QL;if(hCf(q,n)){switch(n.Mo()){case 0:var M=function(){return null}; case 2:M=function(){return EKj(q,n.R9)}; break;case 1:M=function(){return xr(q,n.R9)}}for(var t=M();t;t=M())hCf(q,t)}}; yrm=function(n){var q=QL;n=g.Pl(n,function(M){return!eCk(q,M.z$.jl)}); q.X.push.apply(q.X,g.EJ(n))}; sPs=function(n){var q=[];g.xw(n,function(M){oV(QL.X,function(t){return t.z$.jl===M.z$.jl&&t.R9===M.R9})||(QL.X.push(M),q.push(M))})}; nq=function(){this.X=this.W=null}; XW1=function(n,q){function M(t,c){q(t,c)} if(n.W==null)return!1;n.X=g.XO(n.W,function(t){return t!=null&&t.xI()}); n.X&&(n.X.init(M)?Gfk(n.X.X):q(n.X.X.QK(),n.X));return n.X!=null}; q8=function(n){n=jPj(n);pN.call(this,n.length?n[n.length-1]:new CN(lP,0));this.Z=n;this.W=null}; jPj=function(n){if(!n.length)return[];n=(0,g.Pl)(n,function(M){return M!=null&&M.Xe()}); for(var q=1;qM.time?q:M},n[0])}; cm=function(n){n=n===void 0?lP:n;pN.call(this,new CN(n,2))}; YF=function(){var n=Hff();CN.call(this,lP.top,n,"geo")}; Hff=function(){tC();var n=w$();return n.Z||n.W?0:2}; Lek=function(){}; Gn=function(){this.done=!1;this.X={rM:0,uF:0,KlE:0,Ak:0,G6:-1,au:0,gL:0,S0:0,B8m:0};this.S=null;this.C=!1;this.Z=null;this.N=0;this.W=new VK(this)}; kF=function(){var n=Kq;n.C||(n.C=!0,PYk(n,function(){return n.J.apply(n,g.EJ(g.Fm.apply(0,arguments)))}),n.J())}; vKU=function(){ji(Lek);var n=ji(nq);n.X!=null&&n.X.X?Gfk(n.X.X):w$().update(lP)}; bj=function(n,q,M){if(!n.done&&(n.W.cancel(),q.length!=0)){n.Z=null;try{vKU();var t=um();tC().S=t;if(ji(nq).X!=null)for(var c=0;c=0?um()-BV:-1,k=um();c.X.G6==-1&&(G=k);var b=w$(),d=tC(),N=P7(d.qn),O=pP();try{if(O.length>0){var e=b.X;e&&(N.bs=[$Z(e),e.getHeight()]);var E=b.S;E&&(N.ps=[E.width,E.height]);lP.screen&&(N.scs=[lP.screen.width,lP.screen.height])}else N.url=encodeURIComponent(lP.location.href.substring(0,512)),Y.referrer&&(N.referrer=encodeURIComponent(Y.referrer.substring(0,512))); N.tt=G;N.pt=BV;N.bin=d.W;lP.google_osd_load_pub_page_exp!==void 0&&(N.olpp=lP.google_osd_load_pub_page_exp);N.deb=[1,c.X.rM,c.X.uF,c.X.Ak,c.X.G6,0,c.W.W,c.X.au,c.X.gL,c.X.S0,c.X.B8m,-1].join(";");N.tvt=lIU(c,k);b.W&&(N.inapp=1);if(lP!==null&&lP!=lP.top){O.length>0&&(N.iframe_loc=encodeURIComponent(lP.location.href.substring(0,512)));var h=b.N;N.is=[$Z(h),h.getHeight()]}}catch(I){N.error=1}Kq.Z=N}e=g.hf(Kq.Z);E=tC().X;L3(E.Z,"prf")==1?(h=new qu,c=E.X,Y=0,c.X>-1&&(Y=c.Z.X.now()-c.X),h=bY(h,1,dr(c.J+ Y),0),c=E.X,h=bY(h,5,e2(c.X>-1?c.W+1:c.W),0),h=bY(h,2,Il(E.W.X.Z()),"0"),h=bY(h,3,Il(E.W.X.W()),"0"),E=bY(h,4,Il(E.W.X.X()),"0"),h={},E=(h.pf=g.Pn(E.Z()),h)):E={};g.yn(e,E);g.yn(q,t,M,e,n())}])}; BD1=function(){var n=uPd||lP;if(!n)return"";var q=[];if(!n.location||!n.location.href)return"";q.push("url="+encodeURIComponent(n.location.href.substring(0,512)));n.document&&n.document.referrer&&q.push("referrer="+encodeURIComponent(n.document.referrer.substring(0,512)));return q.join("&")}; d4=function(){var n="youtube.player.web_20250827_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250827_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250827_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250827_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),q;if(((q=n)==null?void 0:q.length)==2)return n[1];n="youtube.player.web_20250827_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var M;return((M=n)==null?void 0:M.length)==3?"20"+n[1]+n[2]:null}; DXs=function(){return"av.default_js".includes("ima_html5_sdk")?{YV:"ima",Vf:null}:"av.default_js".includes("ima_native_sdk")?{YV:"nima",Vf:null}:"av.default_js".includes("admob-native-video-javascript")?{YV:"an",Vf:null}:"youtube.player.web_20250827_22_RC00".includes("cast_js_sdk")?{YV:"cast",Vf:d4()}:"youtube.player.web_20250827_22_RC00".includes("youtube.player.web")?{YV:"yw",Vf:d4()}:"youtube.player.web_20250827_22_RC00".includes("outstream_web_client")?{YV:"out",Vf:d4()}:"youtube.player.web_20250827_22_RC00".includes("drx_rewarded_web")? {YV:"r",Vf:d4()}:"youtube.player.web_20250827_22_RC00".includes("gam_native_web_video")?{YV:"n",Vf:d4()}:"youtube.player.web_20250827_22_RC00".includes("admob_interstitial_video")?{YV:"int",Vf:d4()}:{YV:"j",Vf:null}}; g4=function(n,q){var M={sv:"968"};N8!==null&&(M.v=N8);M.cb=ArU;M.nas=QL.X.length;M.msg=n;q!==void 0&&(n=mXU(q))&&(M.e=OO[n]);return M}; ea=function(n){return lV(n,"custom_metric_viewable")}; mXU=function(n){var q=ea(n)?"custom_metric_viewable":n.toLowerCase();return OC(Jg,function(M){return M==q})}; $Xs=function(){this.X=void 0;this.W=!1;this.Z=0;this.J=-1;this.S="tos"}; aId=function(n){try{var q=n.split(",");return q.length>g.GZ(Fef).length?null:Xp(q,function(M,t){t=t.toLowerCase().split("=");if(t.length!=2||ZfJ[t[0]]===void 0||!ZfJ[t[0]](t[1]))throw Error("Entry ("+t[0]+", "+t[1]+") is invalid.");M[t[0]]=t[1];return M},{})}catch(M){return null}}; RCk=function(n,q){if(n.X==void 0)return 0;switch(n.S){case "mtos":return n.W?bz(q.X,n.X):bz(q.W,n.X);case "tos":return n.W?kr(q.X,n.X):kr(q.W,n.X)}return 0}; EO=function(n,q,M,t){Bl.call(this,q,t);this.N=n;this.B=M}; hT=function(){}; Wm=function(n){Bl.call(this,"fully_viewable_audible_half_duration_impression",n)}; yo=function(n){this.X=n}; sO=function(n,q){Bl.call(this,n,q)}; Xb=function(n){DL.call(this,"measurable_impression",n)}; Sa=function(){yo.apply(this,arguments)}; Iy=function(n,q,M){FX.call(this,n,q,M)}; fq=function(n){n=n===void 0?lP:n;pN.call(this,new CN(n,2))}; Hm=function(n,q,M){FX.call(this,n,q,M)}; Lq=function(n){n=n===void 0?lP:n;pN.call(this,new CN(n,2))}; Pm=function(){CN.call(this,lP,2,"mraid");this.nm=0;this.RL=this.wJ=!1;this.N=null;this.W=Qpk(this.Z);this.J.X=new mT(0,0,0,0);this.SX=!1}; vm=function(n,q,M){n.UY("addEventListener",q,M)}; JrJ=function(n){tC().J=!!n.UY("isViewable");vm(n,"viewableChange",oKR);n.UY("getState")==="loading"?vm(n,"ready",wW1):zCJ(n)}; zCJ=function(n){typeof n.W.M6.AFMA_LIDAR==="string"?(n.wJ=!0,Vlk(n)):(n.W.compatibility=3,n.N="nc",n.fail("w"))}; Vlk=function(n){n.RL=!1;var q=L3(tC().qn,"rmmt")==1,M=!!n.UY("isViewable");(q?!M:1)&&Ig().setTimeout(lm(524,function(){n.RL||(CY_(n),Uu(540,Error()),n.N="mt",n.fail("w"))}),500); rrd(n);vm(n,n.W.M6.AFMA_LIDAR,xXj)}; rrd=function(n){var q=L3(tC().qn,"sneio")==1,M=n.W.M6.AFMA_LIDAR_EXP_1!==void 0,t=n.W.M6.AFMA_LIDAR_EXP_2!==void 0;(q=q&&t)&&(n.W.M6.AFMA_LIDAR_EXP_2=!0);M&&(n.W.M6.AFMA_LIDAR_EXP_1=!q)}; CY_=function(n){n.UY("removeEventListener",n.W.M6.AFMA_LIDAR,xXj);n.wJ=!1}; QPC=function(n,q){if(n.UY("getState")==="loading")return new g.JE(-1,-1);q=n.UY(q);if(!q)return new g.JE(-1,-1);n=parseInt(q.width,10);q=parseInt(q.height,10);return isNaN(n)||isNaN(q)?new g.JE(-1,-1):new g.JE(n,q)}; wW1=function(){try{var n=ji(Pm);n.UY("removeEventListener","ready",wW1);zCJ(n)}catch(q){Uu(541,q)}}; xXj=function(n,q){try{var M=ji(Pm);M.RL=!0;var t=n?new mT(n.y,n.x+n.width,n.y+n.height,n.x):new mT(0,0,0,0);var c=um(),Y=JC();var G=new $O(c,Y,M);G.X=t;G.volume=q;M.LU(G)}catch(k){Uu(542,k)}}; oKR=function(n){var q=tC(),M=ji(Pm);n&&!q.J&&(q.J=!0,M.SX=!0,M.N&&M.fail("w",!0))}; Tn=function(){this.isInitialized=!1;this.X=this.W=null;var n={};this.N=(n.start=this.Na,n.firstquartile=this.m_,n.midpoint=this.OE,n.thirdquartile=this.sE,n.complete=this.A6,n.error=this.o_,n.pause=this.rr,n.resume=this.d_,n.skip=this.Y8,n.viewable_impression=this.xo,n.mute=this.GV,n.unmute=this.GV,n.fullscreen=this.Ps,n.exitfullscreen=this.CY,n.fully_viewable_audible_half_duration_impression=this.xo,n.measurable_impression=this.xo,n.abandon=this.rr,n.engagedview=this.xo,n.impression=this.xo,n.creativeview= this.xo,n.progress=this.GV,n.custom_metric_viewable=this.xo,n.bufferstart=this.rr,n.bufferfinish=this.d_,n.audio_measurable=this.xo,n.audio_audible=this.xo,n);n={};this.B=(n.overlay_resize=this.t6,n.abandon=this.uC,n.close=this.uC,n.collapse=this.uC,n.overlay_unmeasurable_impression=function(q){return VL(q,"overlay_unmeasurable_impression",JC())},n.overlay_viewable_immediate_impression=function(q){return VL(q,"overlay_viewable_immediate_impression",JC())},n.overlay_unviewable_impression=function(q){return VL(q, "overlay_unviewable_impression",JC())},n.overlay_viewable_end_of_session_impression=function(q){return VL(q,"overlay_viewable_end_of_session_impression",JC())},n); tC().W=3;pWu(this);this.Z=null}; lj=function(n,q,M,t){n=n.Ed(null,t,!0,q);n.J=M;yrm([n]);return n}; n3s=function(n,q,M){lsa(q);var t=n.X;g.xw(q,function(c){var Y=g.Wn(c.criteria,function(G){var k=aId(G);if(k==null)G=null;else if(G=new $Xs,k.visible!=null&&(G.X=k.visible/100),k.audible!=null&&(G.W=k.audible==1),k.time!=null){var b=k.timetype=="mtos"?"mtos":"tos",d=asd(k.time,"%")?"%":"ms";k=parseInt(k.time,10);d=="%"&&(k/=100);G.setTime(k,d,b)}return G}); oV(Y,function(G){return G==null})||rSm(M,new EO(c.id,c.event,Y,t))})}; qak=function(){var n=[],q=tC();n.push(ji(YF));L3(q.qn,"mvp_lv")&&n.push(ji(Pm));q=[new fq,new Lq];q.push(new q8(n));q.push(new cm(lP));return q}; MTf=function(n){if(!n.isInitialized){n.isInitialized=!0;try{var q=um(),M=tC(),t=w$();BV=q;M.Z=79463069;n.W!=="o"&&(uPd=xDd(lP));if(eRd()){Kq.X.uF=0;Kq.X.G6=um()-q;var c=qak(),Y=ji(nq);Y.W=c;XW1(Y,function(){UO()})?Kq.done||(TDs(),r$(Y.X.X,n),kF()):t.Z?UO():kF()}else uj=!0}catch(G){throw QL.reset(),G; }}}; Dn=function(n){Kq.W.cancel();Bm=n;Kq.done=!0}; AT=function(n){if(n.W)return n.W;var q=ji(nq).X;if(q)switch(q.getName()){case "nis":n.W="n";break;case "gsv":n.W="m"}n.W||(n.W="h");return n.W}; ay=function(n,q,M){if(n.X==null)return q.lE|=4,!1;n=ida(n.X,M,q);q.lE|=n;return n==0}; UO=function(){var n=[new cm(lP)],q=ji(nq);q.W=n;XW1(q,function(){Dn("i")})?Kq.done||(TDs(),kF()):Dn("i")}; tTJ=function(n,q){if(!n.uG){var M=VL(n,"start",JC());M=n.fM.X(M).X;var t={id:"lidarv"};t.r=q;t.sv="968";N8!==null&&(t.v=N8);Ou(M,function(c,Y){return t[c]=c=="mtos"||c=="tos"?Y:encodeURIComponent(Y)}); q=BD1();Ou(q,function(c,Y){return t[c]=encodeURIComponent(Y)}); q="//pagead2.googlesyndication.com/pagead/gen_204?"+Mf(qf(new nP,t));Wd_(q);n.uG=!0}}; Ry=function(n,q,M){bj(Kq,[n],!JC());nKR(n,M);M!=4&&pbu(n.wJ,M,n.ol);return VL(n,q,JC())}; pWu=function(n){UXd(function(){var q=ch_();n.W!=null&&(q.sdk=n.W);var M=ji(nq);M.X!=null&&(q.avms=M.X.getName());return q})}; Yak=function(n,q,M,t){var c=eCk(QL,M);c!==null&&c.R9!==q&&(n.KZ(c),c=null);c||(q=n.Ed(M,um(),!1,q),QL.W.length==0&&(tC().Z=79463069),sPs([q]),c=q,c.J=AT(n),t&&(c.hE=t));return c}; Gcj=function(n,q){var M=n[q];M!==void 0&&M>0&&(n[q]=Math.floor(M*1E3))}; ch_=function(){var n=w$(),q={},M={},t={};return Object.assign({},(q.sv="968",q),N8!==null&&(M.v=N8,M),(t["if"]=n.Z?"1":"0",t.nas=String(QL.X.length),t))}; oy=function(n){Bl.call(this,"audio_audible",n)}; w4=function(n){DL.call(this,"audio_measurable",n)}; zn=function(){yo.apply(this,arguments)}; JT=function(){}; Ktf=function(n){this.X=n}; ida=function(n,q,M){n=n.W();if(typeof n==="function"){var t={};var c={};t=Object.assign({},N8!==null&&(t.v=N8,t),(c.sv="968",c.cb=ArU,c.e=kcm(q),c));c=VL(M,q,JC());g.yn(t,c);M.M4[q]=c;t=M.Mo()==2?hEC(t).join("&"):M.fM.X(t).X;try{return n(M.R9,t,q),0}catch(Y){return 2}}else return 1}; kcm=function(n){var q=ea(n)?"custom_metric_viewable":n;n=OC(Jg,function(M){return M==q}); return OO[n]}; Vo=function(){Tn.call(this);this.C=null;this.S=!1;this.J="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; bd1=function(n,q,M){M=M.opt_configurable_tracking_events;n.X!=null&&Array.isArray(M)&&n3s(n,M,q)}; dhd=function(n,q,M){var t=xr(QL,q);t||(t=M.opt_nativeTime||-1,t=lj(n,q,AT(n),t),M.opt_osdId&&(t.hE=M.opt_osdId));return t}; Nuj=function(n,q,M){var t=xr(QL,q);t||(t=lj(n,q,"n",M.opt_nativeTime||-1));return t}; Ods=function(n,q){var M=xr(QL,q);M||(M=lj(n,q,"h",-1));return M}; g3k=function(n){tC();switch(AT(n)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; h0d=function(n,q,M,t){M=M===void 0?{}:M;var c={};g.yn(c,{opt_adElement:void 0,opt_fullscreen:void 0},M);var Y=n.Vo(q,M);M=Y?Y.fM:n.Gx();if(c.opt_bounds)return M.X(g4("ol",t));if(t!==void 0)if(mXU(t)!==void 0)if(uj)n=g4("ue",t);else if(MTf(n),Bm=="i")n=g4("i",t),n["if"]=0;else if(q=n.Vo(q,c)){b:{Bm=="i"&&(q.vJ=!0);Y=c.opt_fullscreen;Y!==void 0&&Wl(q,!!Y);var G;if(Y=!w$().W)(Y=DR(g.FV(),"CrKey")&&!(DR(g.FV(),"CrKey")&&DR(g.FV(),"SmartSpeaker"))||DR(g.FV(),"PlayStation")||DR(g.FV(),"Roku")||iH_()||DR(g.FV(), "Xbox"))||(Y=g.FV(),Y=DR(Y,"AppleTV")||DR(Y,"Apple TV")||DR(Y,"CFNetwork")||DR(Y,"tvOS")),Y||(Y=g.FV(),Y=DR(Y,"sdk_google_atv_x86")||DR(Y,"Android TV")),Y=!Y;Y&&(Ig(),Y=Yq(z8)===0);if(G=Y){switch(q.Mo()){case 1:tTJ(q,"pv");break;case 2:n.LM(q)}Dn("pv")}Y=t.toLowerCase();if(G=!G)G=L3(tC().qn,"ssmol")&&Y==="loaded"?!1:g.SS(e0j,Y);if(G&&q.hP==0){Bm!="i"&&(Kq.done=!1);G=c!==void 0?c.opt_nativeTime:void 0;mB=G=typeof G==="number"?G:um();q.gh=!0;var k=JC();q.hP=1;q.qW={};q.qW.start=!1;q.qW.firstquartile= !1;q.qW.midpoint=!1;q.qW.thirdquartile=!1;q.qW.complete=!1;q.qW.resume=!1;q.qW.pause=!1;q.qW.skip=!1;q.qW.mute=!1;q.qW.unmute=!1;q.qW.viewable_impression=!1;q.qW.measurable_impression=!1;q.qW.fully_viewable_audible_half_duration_impression=!1;q.qW.fullscreen=!1;q.qW.exitfullscreen=!1;q.Yv=0;k||(q.A9().B=G);bj(Kq,[q],!k)}(G=q.y0[Y])&&TN(q.EC,G);L3(tC().qn,"fmd")||g.SS(E3a,Y)&&q.RK&&q.RK.W(q,null);switch(q.Mo()){case 1:var b=ea(Y)?n.N.custom_metric_viewable:n.N[Y];break;case 2:b=n.B[Y]}if(b&&(t=b.call(n, q,c,t),L3(tC().qn,"fmd")&&g.SS(E3a,Y)&&q.RK&&q.RK.W(q,null),t!==void 0)){c=g4(void 0,Y);g.yn(c,t);t=c;break b}t=void 0}q.hP==3&&n.KZ(q);n=t}else n=g4("nf",t);else n=void 0;else uj?n=g4("ue"):Y?(n=g4(),g.yn(n,Mlm(Y,!0,!1,!1))):n=g4("nf");return typeof n==="string"?M.X():M.X(n)}; Wtd=function(n,q){q&&(n.J=q)}; yh_=function(n){var q={};return q.viewability=n.X,q.googleViewability=n.W,q}; sxd=function(n,q,M){M=M===void 0?{}:M;n=h0d(ji(Vo),q,M,n);return yh_(n)}; Cq=function(n){var q=g.Fm.apply(1,arguments).filter(Boolean).join("&");if(!q)return n;var M=n.match(/[?&]adurl=/);return M?n.slice(0,M.index+1)+q+"&"+n.slice(M.index+1):n+(n.indexOf("?")<0?"?":"&")+q}; r4=function(n,q){return q?"&"+n+"="+encodeURIComponent(q):""}; XZf=function(n){var q=n.url;n=n.aGk;this.W=q;this.J=n;this.Z=(new Date).getTime()-17040672E5;this.X={};for(var M=/[?&]([^&=]+)=([^&]*)/g;n=M.exec(q);)this.X[n[1]]=n[2]}; jxC=function(n){n=n.J;if(!n)return"";var q=r4("uap",n.platform)+r4("uapv",n.platformVersion)+r4("uafv",n.uaFullVersion)+r4("uaa",n.architecture)+r4("uam",n.model)+r4("uab",n.bitness);n.fullVersionList&&(q+="&uafvl="+encodeURIComponent(n.fullVersionList.map(function(M){return encodeURIComponent(M.brand)+";"+encodeURIComponent(M.version)}).join("|"))); n.wow64!=null&&(q+="&uaw="+Number(n.wow64));return q.slice(1)}; fPu=function(n,q,M,t,c){var Y=window;var G=G===void 0?!1:G;var k;M?k=(G===void 0?0:G)?"//ep1.adtrafficquality.google/bg/"+li(M)+".js":"//pagead2.googlesyndication.com/bg/"+li(M)+".js":k="";G=G===void 0?!1:G;M=Y.document;var b={};q&&(b._scs_=q);b._bgu_=k;b._bgp_=t;b._li_="v_h.3.0.0.0";c&&(b._upb_=c);(q=Y.GoogleTyFxhY)&&typeof q.push=="function"||(q=Y.GoogleTyFxhY=[]);q.push(b);q=t2(M).createElement("SCRIPT");q.type="text/javascript";q.async=!0;n=(G===void 0?0:G)?g.p_(Sau,li(n)+".js"):g.p_(IPs,li(n)+ ".js");g.XC(q,n);(Y=(Y.GoogleTyFxhYEET||{})[q.src])?Y():M.getElementsByTagName("head")[0].appendChild(q)}; Hdf=function(){try{var n,q;return!!((n=window)==null?0:(q=n.top)==null?0:q.location.href)&&!1}catch(M){return!0}}; xF=function(n,q,M){M=M===void 0?Error():M;var t=Error.call(this);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=n;q+=":";M instanceof Error?(this.message=q+M.message,this.stack=M.stack||""):(this.message=q+String(M),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; pq=function(){var n=LtJ();n=n===void 0?"bevasrsg":n;return new Promise(function(q){var M=window===window.top?window:Hdf()?window:window.top,t=M[n],c;((c=t)==null?0:c.bevasrs)?q(new Qo(t.bevasrs)):(t||(t={},t=(t.nqfbel=[],t),M[n]=t),t.nqfbel.push(function(Y){q(new Qo(Y))}))})}; PAu=function(n){var q={c:n.N6,e:n.ew,mc:n.mU,me:n.PS};n.pU&&(q.co={c:n.pU.K0,a:n.pU.g5,s:n.pU.MU});return q}; nC=function(n){g.F.call(this);this.wpc=n}; Qo=function(n){g.F.call(this);var q=this;this.WA=n;this.Z="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.W=void 0;this.Gq=this.WA.p;this.J=this.PN.bind(this);this.addOnDisposeCallback(function(){return void v3_(q)})}; Tus=function(n){var q;return g.u(function(M){if(M.X==1){if(!n.WA.wpc)throw new xF(30,"NWA");return n.X?M.return(n.X):g.U(M,n.WA.wpc(),2)}q=M.W;n.X=new nC(q);return M.return(n.X)})}; v3_=function(n){n.W!==void 0&&(n.Z.forEach(function(q){var M;(M=n.W)==null||M.removeEventListener(q,n.J)}),n.W=void 0)}; lPj=function(n){var q=q===void 0?51:q;var M=[];ff(n,qO,6).forEach(function(t){vW(t,2)<=q&&M.push(vW(t,1))}); return M}; Uh1=function(n){var q=q===void 0?51:q;var M=[];ff(n,qO,6).forEach(function(t){vW(t,2)>q&&M.push(vW(t,1))}); return M}; u2d=function(n){n.then(function(){},function(){})}; MO=function(){g.F.apply(this,arguments);this.W=1}; i9=function(n){return{fieldType:2,fieldName:n}}; g.tt=function(n){return{fieldType:3,fieldName:n}}; Bu1=function(n){this.X=n;n.DX("/client_streamz/bg/frs",g.tt("mk"))}; Dhf=function(n){this.X=n;n.DX("/client_streamz/bg/wrl",g.tt("mn"),i9("ac"),i9("sc"),g.tt("rk"),g.tt("mk"))}; Ah1=function(n){this.X=n;n.dw("/client_streamz/bg/ec",g.tt("en"),g.tt("mk"))}; mhJ=function(n){this.X=n;n.DX("/client_streamz/bg/el",g.tt("en"),g.tt("mk"))}; $hm=function(n){this.X=n;n.dw("/client_streamz/bg/cec",i9("ec"),g.tt("mk"))}; Ftm=function(n){this.X=n;n.dw("/client_streamz/bg/po/csc",i9("cs"),g.tt("mk"))}; Zdd=function(n){this.X=n;n.dw("/client_streamz/bg/po/ctav",g.tt("av"),g.tt("mk"))}; aP_=function(n){this.X=n;n.dw("/client_streamz/bg/po/cwsc",g.tt("su"),g.tt("mk"))}; R0R=function(n){this.MP=wr(n)}; o3U=function(n,q){return Pis(n,q,QTm)}; cL=function(n){this.MP=wr(n)}; Yb=function(n){this.MP=wr(n)}; Gv=function(n){this.MP=wr(n)}; KC=function(n){this.MP=wr(n)}; kb=function(n){this.MP=wr(n)}; b9=function(n){this.MP=wr(n)}; wZj=function(n){this.MP=wr(n)}; VTj=function(n){var q=new b9;q=Ar(q,1,n.W);var M=z0R(n);q=Pis(q,M,b_j);M=[];for(var t=[],c=g.S(n.X.keys()),Y=c.next();!Y.done;Y=c.next())t.push(Y.value.split(","));for(c=0;c>>31)&4294967295;O=c[0];var h=c[1],I=c[2],L=c[3],T=c[4];for(E=0;E<80;E++){if(E<40)if(E<20){var v=L^h&(I^L);var B=1518500249}else v=h^I^L,B=1859775393;else E<60?(v=h&I|L&(h|I),B=2400959708):(v=h^I^L,B=3395469782);v=((O<<5|O>>>27)&4294967295)+v+T+B+e[E]&4294967295;T=L;L=I;I=(h<<30|h>>>2)&4294967295;h=O;O=v}c[0]=c[0]+O&4294967295;c[1]=c[1]+h&4294967295;c[2]= c[2]+I&4294967295;c[3]=c[3]+L&4294967295;c[4]=c[4]+T&4294967295} function M(O,e){if(typeof O==="string"){O=unescape(encodeURIComponent(O));for(var E=[],h=0,I=O.length;h=56;E--)Y[E]=e&255,e>>>=8;q(Y);for(E=e=0;E<5;E++)for(var h=24;h>=0;h-=8)O[e++]=c[E]>>h&255;return O} for(var c=[],Y=[],G=[],k=[128],b=1;b<64;++b)k[b]=0;var d,N;n();return{reset:n,update:M,digest:t,t7:function(){for(var O=t(),e="",E=0;E1)));G=G.next)c||(Y=G);c&&(M.X==0&&t==1?oOf(M,q):(Y?(t=Y,t.next==M.J&&(M.J=t),t.next=t.next.next):wVd(M),zqJ(M,c,3,q)))}n.Z=null}else P5(n,3,q)}; ug=function(n,q){n.W||n.X!=2&&n.X!=3||JCm(n);n.J?n.J.next=q:n.W=q;n.J=q}; Vyk=function(n,q,M,t){var c=TD(null,null,null);c.X=new g.v5(function(Y,G){c.Z=q?function(k){try{var b=q.call(t,k);Y(b)}catch(d){G(d)}}:Y; c.W=M?function(k){try{var b=M.call(t,k);b===void 0&&k instanceof D5?G(k):Y(b)}catch(d){G(d)}}:G}); c.X.Z=n;ug(n,c);return c.X}; P5=function(n,q,M){n.X==0&&(n===M&&(q=3,M=new TypeError("Promise cannot resolve to itself")),n.X=1,FBk(M,n.lib,n.rBJ,n)||(n.N=M,n.X=q,n.Z=null,JCm(n),q!=3||M instanceof D5||CmR(n,M)))}; FBk=function(n,q,M,t){if(n instanceof g.v5)return Rqs(n,q,M,t),!0;if(n)try{var c=!!n.$goog_Thenable}catch(G){c=!1}else c=!1;if(c)return n.then(q,M,t),!0;if(g.Yw(n))try{var Y=n.then;if(typeof Y==="function")return rCC(n,Y,q,M,t),!0}catch(G){return M.call(t,G),!0}return!1}; rCC=function(n,q,M,t,c){function Y(b){k||(k=!0,t.call(c,b))} function G(b){k||(k=!0,M.call(c,b))} var k=!1;try{q.call(n,G,Y)}catch(b){Y(b)}}; JCm=function(n){n.C||(n.C=!0,g.L1(n.Zr,n))}; wVd=function(n){var q=null;n.W&&(q=n.W,n.W=q.next,q.next=null);n.W||(n.J=null);return q}; zqJ=function(n,q,M,t){if(M==3&&q.W&&!q.J)for(;n&&n.S;n=n.Z)n.S=!1;if(q.X)q.X.Z=null,xuR(q,M,t);else try{q.J?q.Z.call(q.context):xuR(q,M,t)}catch(c){QVm.call(null,c)}lzU($um,q)}; xuR=function(n,q,M){q==2?n.Z.call(n.context,M):n.W&&n.W.call(n.context,M)}; CmR=function(n,q){n.S=!0;g.L1(function(){n.S&&QVm.call(null,q)})}; D5=function(n){hF.call(this,n)}; g.Ab=function(n,q){g.Ne.call(this);this.b$=n||1;this.yd=q||g.pa;this.CK=(0,g.bn)(this.JBm,this);this.yk=g.OF()}; g.m5=function(n,q,M){if(typeof n==="function")M&&(n=(0,g.bn)(n,M));else if(n&&typeof n.handleEvent=="function")n=(0,g.bn)(n.handleEvent,n);else throw Error("Invalid listener argument");return Number(q)>2147483647?-1:g.pa.setTimeout(n,q||0)}; $4=function(n,q){var M=null;return(new g.v5(function(t,c){M=g.m5(function(){t(q)},n); M==-1&&c(Error("Failed to schedule timer."))})).M9(function(t){g.pa.clearTimeout(M); throw t;})}; g.FG=function(n){g.F.call(this);this.N=n;this.J=0;this.Z=100;this.S=!1;this.W=new Map;this.C=new Set;this.flushInterval=3E4;this.X=new g.Ab(this.flushInterval);this.X.listen("tick",this.EV,!1,this);g.Z(this,this.X)}; pVu=function(n){n.X.enabled||n.X.start();n.J++;n.J>=n.Z&&n.EV()}; nrj=function(n,q){return n.C.has(q)?void 0:n.W.get(q)}; qIJ=function(n){for(var q=0;q2?n.X.statusText:""}catch(M){q=""}n.J=q+" ["+n.getStatus()+"]";NJ_(n)}}finally{zD(n)}}}; zD=function(n,q){if(n.X){n.C&&(clearTimeout(n.C),n.C=null);var M=n.X;n.X=null;q||n.dispatchEvent("ready");try{M.onreadystatechange=null}catch(t){}}}; C1=function(n){var q=n.getStatus();a:switch(q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var M=!0;break a;default:M=!1}if(!M){if(q=q===0)n=g.kO(String(n.B))[1]||null,!n&&g.pa.self&&g.pa.self.location&&(n=g.pa.self.location.protocol.slice(0,-1)),q=!emC.test(n?n.toLowerCase():"");M=q}return M}; g.Vc=function(n){return n.X?n.X.readyState:0}; g.rM=function(n){try{return n.X?n.X.responseText:""}catch(q){return""}}; g.x4=function(n){try{if(!n.X)return null;if("response"in n.X)return n.X.response;switch(n.jX){case "":case "text":return n.X.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in n.X)return n.X.mozResponseArrayBuffer}return null}catch(q){return null}}; g.Er_=function(n){var q={};n=(n.X&&g.Vc(n)>=2?n.X.getAllResponseHeaders()||"":"").split("\r\n");for(var M=0;M>1,q),jP(n,n.length>>1)]}; xfC=function(n){var q=g.S(rgk(n,SP));n=q.next().value;q=q.next().value;return n.toString(16)+q.toString(16)}; QsC=function(n,q){var M=rgk(q);n=new Uint32Array(n.buffer);q=n[0];var t=g.S(M);M=t.next().value;t=t.next().value;for(var c=1;c>>8|G<<24,G+=Y|0,G^=k+38293,Y=Y<<3|Y>>>29,Y^=G,b=b>>>8|b<<24,b+=k|0,b^=d+38293,k=k<<3|k>>>29,k^=b;Y=[Y,G];n[c]^=Y[0];c+1=M?(globalThis.sessionStorage.removeItem(n),["e"]):["a",new Uint8Array(t.buffer,q+4)]}; I8=function(n,q,M){M=M===void 0?[]:M;this.maxItems=n;this.X=q===void 0?0:q;this.W=M}; qOR=function(n){var q=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!q)return new I8(n);var M=q.split(",");if(M.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new I8(n);q=M.slice(1);q.length===1&&q[0]===""&&(q=[]);M=Number(M[0]);return isNaN(M)||M<0||M>q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new I8(n)):new I8(n,M,q)}; MaJ=function(n,q){this.logger=q;try{var M=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(t){M=!1}M&&(this.index=qOR(n))}; iqa=function(n,q,M,t,c){var Y=n.index?i$(n.logger,function(){return plR(n.index,xfC(q),M,t,c)},"W"):"u"; n.logger.oo(Y)}; taj=function(n,q,M){var t=g.S(n.index?i$(n.logger,function(){return nFC(xfC(q),M)},"R"):["u"]),c=t.next().value; t=t.next().value;n.logger.Db(c);return t}; GnJ=function(n){function q(){M-=t;M-=c;M^=c>>>13;t-=c;t-=M;t^=M<<8;c-=M;c-=t;c^=t>>>13;M-=t;M-=c;M^=c>>>12;t-=c;t-=M;t^=M<<16;c-=M;c-=t;c^=t>>>5;M-=t;M-=c;M^=c>>>3;t-=c;t-=M;t^=M<<10;c-=M;c-=t;c^=t>>>15} n=cTs(n);for(var M=2654435769,t=2654435769,c=314159265,Y=n.length,G=Y,k=0;G>=12;G-=12,k+=12)M+=fY(n,k),t+=fY(n,k+4),c+=fY(n,k+8),q();c+=Y;switch(G){case 11:c+=n[k+10]<<24;case 10:c+=n[k+9]<<16;case 9:c+=n[k+8]<<8;case 8:t+=n[k+7]<<24;case 7:t+=n[k+6]<<16;case 6:t+=n[k+5]<<8;case 5:t+=n[k+4];case 4:M+=n[k+3]<<24;case 3:M+=n[k+2]<<16;case 2:M+=n[k+1]<<8;case 1:M+=n[k+0]}q();return YOf.toString(c)}; cTs=function(n){for(var q=[],M=0;M>7,n.error.code]);t.set(M,4);return t}; B2=function(n,q,M){H2.call(this,n);this.J=q;this.clientState=M;this.X="S";this.W="q"}; u$=function(n){return globalThis.TextEncoder?(new TextEncoder).encode(n):g.LH(n)}; knd=function(n,q,M){return n instanceof W2?Agj(n,M,q,1):n.ME(M)}; AQ=function(n){g.F.call(this);var q=this;this.Z=new g.NA;this.J=0;this.W=void 0;this.state=2;this.WA=n.WA;this.Or=n.Or;this.Hc=Object.assign({},bqk,n.Hc||{});this.logger=n.WA.sV();var M;this.onError=(M=n.onError)!=null?M:function(){}; this.IM=n.IM||!1;if(d8_(n)){var t=this.WA;this.S=function(){return aLC(t).catch(function(G){G=q.reportError(new xF(q.X?20:32,"TRG:Disposed",G));q.W=G;var k;(k=q.X)==null||k.dispose();q.X=void 0;q.Z.reject(G)})}; Rm1(t,function(){return void Dm(q)}); t.B===2&&Dm(this)}else this.S=n.qWX,Dm(this);var c=this.logger.share();c.Gj("o");var Y=new qA(c,"o");this.Z.promise.then(function(){Y.done();c.DY();c.dispose()},function(){return void c.dispose()}); this.addOnDisposeCallback(function(){q.X?(q.X.dispose(),q.X=void 0):q.W?q.logger.DY():(q.W=q.reportError(new xF(32,"TNP:Disposed")),q.logger.DY(),q.Z.reject(q.W))}); g.Z(this,this.logger)}; N4m=function(n,q){if(!(q instanceof xF))if(q instanceof Z5){var M=Error(q.toString());M.stack=q.stack;q=new xF(11,"EBH:Error",M)}else q=new xF(12,"BSO:Unknown",q);return n.reportError(q)}; Dm=function(n){var q,M,t,c,Y,G,k,b,d,N,O,e,E,h,I;return g.u(function(L){switch(L.X){case 1:q=void 0;n.J++;M=new g.NA;n.WA instanceof ya&&n.WA.J.push(M.promise);if(!n.IM){L.Fy(2);break}t=new g.NA;setTimeout(function(){return void t.resolve()}); return g.U(L,t.promise,2);case 2:return c=n.logger.share(),g.Ij(L,4,5),n.state=5,Y={},G=[],g.U(L,Xy(n.WA.snapshot({N6:Y,RM:G}),n.Hc.eUX,function(){return Promise.reject(new xF(15,"MDA:Timeout"))}),7); case 7:k=L.W;if(n.qm())throw new xF(n.X?20:32,"MDA:Disposed");b=G[0];n.state=6;return g.U(L,Xy(knd(n.Or,c,k),n.Hc.dS,function(){return Promise.reject(new xF(10,"BWB:Timeout"))}),8); case 8:d=L.W;if(n.qm())throw new xF(n.X?20:32,"BWB:Disposed");n.state=7;q=i$(c,function(){var v=Oqf(n,d,M,b);v.Z.promise.then(function(){return void n.S()}); return v},"i"); case 5:g.Bd(L);c.dispose();g.Ds(L,6);break;case 4:N=g.TU(L);(O=q)==null||O.dispose();if(!n.W){e=N4m(n,N);M.resolve();var T;if(T=n.WA instanceof ya&&n.J<2)a:if(N instanceof xF)T=N.code!==32&&N.code!==20&&N.code!==10;else{if(N instanceof Z5)switch(N.code){case 2:case 13:case 14:case 4:break;default:T=!1;break a}T=!0}if(T)return E=(1+Math.random()*.25)*(n.X?6E4:1E3),h=setTimeout(function(){return void n.S()},E),n.addOnDisposeCallback(function(){return void clearTimeout(h)}),L.return(); n.W=e}c.Vh(n.X?13:14);n.Z.reject(n.W);return L.return();case 6:n.state=8,n.J=0,(I=n.X)==null||I.dispose(),n.X=q,n.Z.resolve(),g.Sk(L)}})}; Oqf=function(n,q,M,t){var c=T0(q,2)*1E3;if(c<=0)throw new xF(31,"TTM:Invalid");if(lY(q,4))return new l$(n.logger,lY(q,4),c);if(!T0(q,3))return new TM(n.logger,Al(kK(q,1)),c);if(!t)throw new xF(4,"PMD:Undefined");t=t(Al(kK(q,1)));if(!(t instanceof Function))throw new xF(16,"APF:Failed");n.C=Math.floor((Date.now()+c)/1E3);n=new v2(n.logger,t,T0(q,3),c);n.addOnDisposeCallback(function(){return void M.resolve()}); return n}; gFs=function(n,q){q=q instanceof xF?q:new xF(5,"TVD:error",q);return n.reportError(q)}; yTs=function(n,q,M){try{if(n.qm())throw new xF(21,"BNT:disposed");if(!n.X&&n.W)throw n.W;var t,c;return(c=(t=eFk(n,q,M))!=null?t:EFU(n,q,M))!=null?c:hF1(n,q,M)}catch(Y){if(!q.PS)throw gFs(n,Y);return W6a(n,M,Y)}}; eFk=function(n,q,M){var t;return(t=n.X)==null?void 0:P2(t,function(){return mR(n,q)},M,function(c){var Y; if(n.X instanceof v2&&((Y=q.pU)==null?0:Y.MU))try{var G;(G=n.cache)==null||iqa(G,mR(n,q),c,q.pU.K0,n.C-120)}catch(k){n.reportError(new xF(24,"ELX:write",k))}})}; EFU=function(n,q,M){var t;if((t=q.pU)!=null&&t.g5)try{var c,Y=(c=n.cache)==null?void 0:taj(c,mR(n,q),q.pU.K0);return Y?M?i$(n.logger,function(){return g.Pn(Y,2)},"a"):Y:void 0}catch(G){n.reportError(new xF(23,"RXO:read",G))}}; hF1=function(n,q,M){var t={stack:[],error:void 0,hasError:!1};try{if(!q.mU)throw new xF(29,"SDF:notready");return P2(WCs(t,new B2(n.logger,0,n.state)),function(){return mR(n,q)},M)}catch(c){t.error=c,t.hasError=!0}finally{y_d(t)}}; W6a=function(n,q,M){var t={stack:[],error:void 0,hasError:!1};try{var c=gFs(n,M);return P2(WCs(t,new Uo(n.logger,c)),function(){return[]},q)}catch(Y){t.error=Y,t.hasError=!0}finally{y_d(t)}}; mR=function(n,q){return q.ew?q.ew:q.N6?i$(n.logger,function(){return q.ew=u$(q.N6)},"c"):[]}; $C=function(){var n=0,q;return function(M){q||(q=new tQ);var t=new B2(q,n,1),c=P2(t,function(){return u$(M)},!0); t.dispose();n++;return c}}; Fy=function(n){this.MP=wr(n)}; syd=function(n,q,M){this.JM=n;this.f7=q;this.metadata=M}; Zm=function(n,q){q=q===void 0?{}:q;this.RUE=n;this.metadata=q;this.status=null}; a8=function(n,q,M,t,c){this.name=n;this.methodType="unary";this.requestType=q;this.responseType=M;this.X=t;this.W=c}; R8=function(n){this.MP=wr(n)}; o8=function(n){this.MP=wr(n)}; wQ=function(n){this.MP=wr(n)}; zM=function(n,q){this.N=n.Qmg;this.B=q;this.X=n.xhr;this.Z=[];this.S=[];this.C=[];this.J=[];this.W=[];this.N&&Xma(this)}; fn1=function(n,q){var M=new jyU;g.n1(n.X,"complete",function(){if(C1(n.X)){var t=g.rM(n.X);if(q&&n.X.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");t=atob(t)}try{var c=n.B(t)}catch(k){JQ(n,Va(new Z5(13,"Error when deserializing response data; error: "+k+(", response: "+t)),M));return}t=MNR(n.X.getStatus());CY(n,rQ(n));t==0?SOs(n,c):JQ(n,Va(new Z5(t,"Xhr succeeded but the status code is not 200"),M))}else{t=g.rM(n.X);c=rQ(n);if(t){var Y=Inj(n, t);t=Y.code;var G=Y.details;Y=Y.metadata}else t=2,G="Rpc failed due to xhr error. uri: "+String(n.X.B)+", error code: "+n.X.W+", error: "+n.X.getLastError(),Y=c;CY(n,c);JQ(n,Va(new Z5(t,G,Y),M))}})}; Xma=function(n){n.N.FH("data",function(q){if("1"in q){var M=q["1"];try{var t=n.B(M)}catch(c){JQ(n,new Z5(13,"Error when deserializing response data; error: "+c+(", response: "+M)))}t&&SOs(n,t)}if("2"in q)for(q=Inj(n,q["2"]),M=0;M-1&&n.splice(q,1)}; SOs=function(n,q){for(var M=0;M>4&15).toString(16)+(n&15).toString(16)}; KO=function(n,q){this.W=this.X=null;this.Z=n||null;this.J=!!q}; Nb=function(n){n.X||(n.X=new Map,n.W=0,n.Z&&Ou(n.Z,function(q,M){n.add(Td(q),M)}))}; B4k=function(n,q){Nb(n);q=O$(n,q);return n.X.has(q)}; g.D8s=function(n,q,M){n.remove(q);M.length>0&&(n.Z=null,n.X.set(O$(n,q),g.un(M)),n.W=n.W+M.length)}; O$=function(n,q){q=String(q);n.J&&(q=q.toLowerCase());return q}; lna=function(n,q){q&&!n.J&&(Nb(n),n.Z=null,n.X.forEach(function(M,t){var c=t.toLowerCase();t!=c&&(this.remove(t),g.D8s(this,c,M))},n)); n.J=q}; g.ATd=function(n){var q="";g.n3(n,function(M,t){q+=t;q+=":";q+=M;q+="\r\n"}); return q}; g.gE=function(n,q,M){if(g.g0(M))return n;M=g.ATd(M);if(typeof n==="string")return WV(n,g.Pg(q),M);g.bM(n,q,M);return n}; g.ew=function(n){g.F.call(this);this.W=n;this.X={}}; m8a=function(n,q,M,t,c,Y){if(Array.isArray(M))for(var G=0;G=0)return!0;try{var q=new g.Mb(n)}catch(M){return g.XO(tZu,function(t){return n.search(t)>0})!=null}return q.C.match(ctd)?!0:g.XO(tZu,function(M){return n.match(M)!=null})!=null}; g.LO=function(n,q){return n.replace(Gvk,function(M,t){try{var c=g.eL(q,t);if(c==null||c.toString()==null)return M;c=c.toString();if(c==""||!g.UC(g.Up(c)))return encodeURIComponent(c).replace(/%2C/g,",")}catch(Y){}return M})}; PC=function(n,q){return Object.is(n,q)}; Tw=function(n){var q=vC;vC=n;return q}; KJf=function(n){if(n.xP!==void 0){var q=lM;lM=!0;try{for(var M=n.xP;M!==void 0;M=M.i_){var t=M.Qi;t.KR||(n=void 0,t.KR=!0,KJf(t),(n=t.Mw)==null||n.call(t,t))}}finally{lM=q}}}; kvu=function(){var n;return((n=vC)==null?void 0:n.JS)!==!1}; bCR=function(n){n&&(n.Y2=void 0,n.hR=!0);return Tw(n)}; Nlm=function(n,q){Tw(q);if(n){n.hR=!1;q=n.Y2;var M=q!==void 0?q.YY:n.producers;if(M!==void 0){if(U$(n)){do M=dO1(M);while(M!==void 0)}q!==void 0?q.YY=void 0:n.producers=void 0}}}; OCu=function(n,q){var M=n.CZ,t=U$(n);M!==void 0?(q.i_=M.i_,M.i_=q):(q.i_=void 0,n.xP=q);q.eP=M;n.CZ=q;if(!t)for(n=n.producers;n!==void 0;n=n.YY)OCu(n.U6,n)}; dO1=function(n){var q=n.U6,M=n.YY,t=n.i_,c=n.eP;n.i_=void 0;n.eP=void 0;t!==void 0?t.eP=c:q.CZ=c;if(c!==void 0)c.i_=t;else if(q.xP=t,!U$(q))for(n=q.producers;n!==void 0;)n=dO1(n);return M}; U$=function(n){return n.Iq||n.xP!==void 0}; hwJ=function(n){function q(){a:{if(lM)throw Error("");if(vC!==null){var t=vC.Y2;if(t===void 0||t.U6!==M){var c=void 0,Y=vC.hR;if(Y&&(c=t!==void 0?t.YY:vC.producers,c!==void 0&&c.U6===M)){vC.Y2=c;c.akJ=M.version;break a}var G=M.CZ,k;if(!(k=G===void 0||G.Qi!==vC)){if(Y){b:{k=vC;Y=k.Y2;if(Y!==void 0){k=k.producers;do{if(k===G){Y=!0;break b}if(k===Y)break;k=k.YY}while(k!==void 0)}Y=!1}Y=!Y}k=Y}k&&(Y=U$(vC),c={U6:M,Qi:vC,YY:c,eP:G,akJ:M.version,i_:void 0},vC.Y2=c,t!==void 0?t.YY=c:vC.producers=c,Y&&OCu(M, c))}}}return M.value} var M=Object.create(gbk);M.value=n;q[ewa]=M;return[q,function(t){return Ebs(M,t)}, function(t){if(!kvu())throw Error();Ebs(M,t(M.value))}]}; Ebs=function(n,q){if(!kvu())throw Error();n.nQ(n.value,q)||(n.value=q,n.version++,WJC++,KJf(n))}; uM=function(n,q){q=q===void 0?"":q;n=hwJ(n)[0][ewa];var M;q=(M=q)!=null?M:"[signal]";n.debugName=q}; DD=function(n){g.Ne.call(this);var q=this;this.S=this.W=0;this.cw=n!=null?n:{yP:function(c,Y){return setTimeout(c,Y)}, gT:function(c){clearTimeout(c)}}; var M,t;this.X=(t=(M=window.navigator)==null?void 0:M.onLine)!=null?t:!0;this.Z=function(){return g.u(function(c){return g.U(c,BC(q),0)})}; window.addEventListener("offline",this.Z);window.addEventListener("online",this.Z);this.S||this.iY()}; ytm=function(){var n=g.$D;DD.instance||(DD.instance=new DD(n));return DD.instance}; BC=function(n,q){return n.J?n.J:n.J=new Promise(function(M){var t,c,Y,G;return g.u(function(k){switch(k.X){case 1:return t=window.AbortController?new window.AbortController:void 0,Y=(c=t)==null?void 0:c.signal,G=!1,g.Ij(k,2,3),t&&(n.W=n.cw.yP(function(){t.abort()},q||2E4)),g.U(k,fetch("/generate_204",{method:"HEAD", signal:Y}),5);case 5:G=!0;case 3:g.Bd(k);n.J=void 0;n.W&&(n.cw.gT(n.W),n.W=0);G!==n.X&&(n.X=G,n.X?n.dispatchEvent("networkstatus-online"):n.dispatchEvent("networkstatus-offline"));M(G);g.Ds(k,0);break;case 2:g.TU(k),G=!1,k.Fy(3)}})})}; sqk=function(n){this.MP=wr(n)}; FW=function(){this.data=[];this.X=-1}; XLC=function(n){n.X===-1&&(n.X=n.data.reduce(function(q,M,t){return q+(M?Math.pow(2,t):0)},0)); return n.X}; ZD=function(n){n.setAttribute("role","link")}; RD=function(n,q){Array.isArray(q)&&(q=q.join(" "));q===""||q==void 0?(aD||(q={},aD=(q.atomic=!1,q.autocomplete="none",q.dropeffect="none",q.haspopup=!1,q.live="off",q.multiline=!1,q.multiselectable=!1,q.orientation="vertical",q.readonly=!1,q.relevant="additions text",q.required=!1,q.sort="none",q.busy=!1,q.disabled=!1,q.hidden=!1,q.invalid="false",q)),q=aD,"label"in q?n.setAttribute("aria-label",q.label):n.removeAttribute("aria-label")):n.setAttribute("aria-label",q)}; oD=function(n){n=n.getAttribute("aria-label");return n==null||n==void 0?"":String(n)}; g.wE=function(n,q,M){g.F.call(this);this.X=null;this.J=!1;this.C=n;this.S=M;this.W=q||window;this.Z=(0,g.bn)(this.pX,this)}; jqd=function(n){n=n.W;return n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||null}; SZJ=function(n){n=n.W;return n.cancelAnimationFrame||n.cancelRequestAnimationFrame||n.webkitCancelRequestAnimationFrame||n.mozCancelRequestAnimationFrame||n.oCancelRequestAnimationFrame||n.msCancelRequestAnimationFrame||null}; g.zw=function(n,q,M){g.F.call(this);this.X=n;this.b$=q||0;this.W=M;this.Z=(0,g.bn)(this.W6,this)}; g.Jd=function(n,q){n.isActive()||n.start(q)}; g.Vx=function(n){n.stop();n.W6()}; g.CO=function(n){n.isActive()&&g.Vx(n)}; g.rE=function(n,q,M){g.F.call(this);this.J=M!=null?n.bind(M):n;this.b$=q;this.Z=null;this.X=!1;this.W=0;this.Eq=null}; xD=function(n){n.Eq=g.m5(function(){n.Eq=null;n.X&&!n.W&&(n.X=!1,xD(n))},n.b$); var q=n.Z;n.Z=null;n.J.apply(null,q)}; g.Qx=function(n,q){this.X=n[g.pa.Symbol.iterator]();this.W=q}; I81=function(n){return typeof n.className=="string"?n.className:n.getAttribute&&n.getAttribute("class")||""}; pO=function(n){return n.classList?n.classList:I81(n).match(/\S+/g)||[]}; g.n4=function(n,q){typeof n.className=="string"?n.className=q:n.setAttribute&&n.setAttribute("class",q)}; g.qN=function(n,q){return n.classList?n.classList.contains(q):g.SS(pO(n),q)}; g.MN=function(n,q){if(n.classList)n.classList.add(q);else if(!g.qN(n,q)){var M=I81(n);g.n4(n,M+(M.length>0?" "+q:q))}}; g.iC=function(n,q){if(n.classList)Array.prototype.forEach.call(q,function(c){g.MN(n,c)}); else{var M={};Array.prototype.forEach.call(pO(n),function(c){M[c]=!0}); Array.prototype.forEach.call(q,function(c){M[c]=!0}); q="";for(var t in M)q+=q.length>0?" "+t:t;g.n4(n,q)}}; g.ts=function(n,q){n.classList?n.classList.remove(q):g.qN(n,q)&&g.n4(n,Array.prototype.filter.call(pO(n),function(M){return M!=q}).join(" "))}; g.cX=function(n,q){n.classList?Array.prototype.forEach.call(q,function(M){g.ts(n,M)}):g.n4(n,Array.prototype.filter.call(pO(n),function(M){return!g.SS(q,M)}).join(" "))}; g.Yi=function(n,q,M){M?g.MN(n,q):g.ts(n,q)}; f8j=function(n,q){var M=!g.qN(n,q);g.Yi(n,q,M)}; g.GS=function(){g.Ne.call(this);this.X=0;this.endTime=this.startTime=null}; HCs=function(n,q){Array.isArray(q)||(q=[q]);q=q.map(function(M){return typeof M==="string"?M:M.property+" "+M.duration+"s "+M.timing+" "+M.delay+"s"}); g.wK(n,"transition",q.join(","))}; K4=function(n,q,M,t,c){g.GS.call(this);this.W=n;this.S=q;this.C=M;this.J=t;this.N=Array.isArray(c)?c:[c]}; LJu=function(n,q,M,t){return new K4(n,q,{opacity:M},{opacity:t},{property:"opacity",duration:q,timing:"ease-in",delay:0})}; vb_=function(n){n=Af(n);if(n=="")return null;var q=String(n.slice(0,4)).toLowerCase();if(("url("1||n&&n.split(")"),null;if(n.indexOf("(")>0){if(/"|'/.test(n))return null;q=/([\-\w]+)\(/g;for(var M;M=q.exec(n);)if(!(M[1].toLowerCase()in P9k))return null}return n}; ki=function(n,q){n=g.pa[n];return n&&n.prototype?(q=Object.getOwnPropertyDescriptor(n.prototype,q))&&q.get||null:null}; Tl_=function(n){var q=g.pa.CSSStyleDeclaration;return q&&q.prototype&&q.prototype[n]||null}; l8a=function(n,q,M,t){if(n)return n.apply(q,t);if(g.bC&&document.documentMode<10){if(!q[M].call)throw Error("IE Clobbering detected");}else if(typeof q[M]!="function")throw Error("Clobbering detected");return q[M].apply(q,t)}; Atu=function(n){if(!n)return"";var q=document.createElement("div").style;UO_(n).forEach(function(M){var t=g.dK&&M in u7a?M:M.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");lV(t,"--")||lV(t,"var")||(M=l8a(Bls,n,n.getPropertyValue?"getPropertyValue":"getAttribute",[M])||"",M=vb_(M),M!=null&&l8a(DOR,q,q.setProperty?"setProperty":"setAttribute",[t,M]))}); return q.cssText||""}; UO_=function(n){g.cs(n)?n=g.un(n):(n=g.GZ(n),g.fQ(n,"cssText"));return n}; g.NN=function(n){var q,M=q=0,t=!1;n=n.split(mOa);for(var c=0;c.4?-1:1;return(q==0?null:q)==-1?"rtl":"ltr"}; g.EX=function(n){if(n instanceof OX||n instanceof gY||n instanceof eA)return n;if(typeof n.next=="function")return new OX(function(){return n}); if(typeof n[Symbol.iterator]=="function")return new OX(function(){return n[Symbol.iterator]()}); if(typeof n.Iw=="function")return new OX(function(){return n.Iw()}); throw Error("Not an iterator or iterable.");}; OX=function(n){this.W=n}; gY=function(n){this.W=n}; eA=function(n){OX.call(this,function(){return n}); this.Z=n}; hs=function(n,q,M,t,c,Y,G,k){this.X=n;this.N=q;this.Z=M;this.S=t;this.J=c;this.C=Y;this.W=G;this.B=k}; WX=function(n,q){if(q==0)return n.X;if(q==1)return n.W;var M=oR(n.X,n.Z,q),t=oR(n.Z,n.J,q);n=oR(n.J,n.W,q);M=oR(M,t,q);t=oR(t,n,q);return oR(M,t,q)}; a8s=function(n,q){var M=(q-n.X)/(n.W-n.X);if(M<=0)return 0;if(M>=1)return 1;for(var t=0,c=1,Y=0,G=0;G<8;G++){Y=WX(n,M);var k=(WX(n,M+1E-6)-Y)/1E-6;if(Math.abs(Y-q)<1E-6)return M;if(Math.abs(k)<1E-6)break;else Y1E-6&&G<8;G++)Y=0}; g.jA=function(n){g.F.call(this);this.C=1;this.Z=[];this.J=0;this.X=[];this.W={};this.N=!!n}; obf=function(n,q,M){g.L1(function(){n.apply(q,M)})}; g.SA=function(n){this.X=n}; I7=function(n){this.X=n}; wLk=function(n){this.data=n}; zwu=function(n){return n===void 0||n instanceof wLk?n:new wLk(n)}; f4=function(n){this.X=n}; g.Jt1=function(n){var q=n.creation;n=n.expiration;return!!n&&ng.OF()}; g.HX=function(n){this.X=n}; VZ_=function(){}; L4=function(){}; PX=function(n){this.X=n;this.W=null}; vX=function(n){if(n.X==null)throw Error("Storage mechanism: Storage unavailable");n.isAvailable()||Hn(Error("Storage mechanism: Storage unavailable"))}; TS=function(){var n=null;try{n=g.pa.localStorage||null}catch(q){}PX.call(this,n)}; C9f=function(){var n=null;try{n=g.pa.sessionStorage||null}catch(q){}PX.call(this,n)}; lC=function(n,q){this.W=n;this.X=q+"::"}; g.UX=function(n){var q=new TS;return q.isAvailable()?n?new lC(q,n):q:null}; uC=function(n,q){this.X=n;this.W=q}; BX=function(n){this.X=[];if(n)a:{if(n instanceof BX){var q=n.c$();n=n.CL();if(this.X.length<=0){for(var M=this.X,t=0;t>>6:(Y<65536?k[M++]=224|Y>>>12:(k[M++]=240|Y>>>18,k[M++]=128|Y>>>12&63),k[M++]=128|Y>>> 6&63),k[M++]=128|Y&63);return k}; $i=function(n){for(var q=n.length;--q>=0;)n[q]=0}; FA=function(n,q,M,t,c){this.vK=n;this.pP=q;this.J3=M;this.Hx=t;this.sLs=c;this.ZP=n&&n.length}; ZH=function(n,q){this.Cf=n;this.R0=0;this.Xc=q}; a7=function(n,q){n.qv[n.pending++]=q&255;n.qv[n.pending++]=q>>>8&255}; R7=function(n,q,M){n.C_>16-M?(n.Gr|=q<>16-n.C_,n.C_+=M-16):(n.Gr|=q<>>=1,M<<=1;while(--q>0);return M>>>1}; n4a=function(n,q,M){var t=Array(16),c=0,Y;for(Y=1;Y<=15;Y++)t[Y]=c=c+M[Y-1]<<1;for(M=0;M<=q;M++)c=n[M*2+1],c!==0&&(n[M*2]=pL1(t[c]++,c))}; qNd=function(n){var q;for(q=0;q<286;q++)n.G$[q*2]=0;for(q=0;q<30;q++)n.oV[q*2]=0;for(q=0;q<19;q++)n.L_[q*2]=0;n.G$[512]=1;n.zD=n.JN=0;n.Vw=n.matches=0}; Mgu=function(n){n.C_>8?a7(n,n.Gr):n.C_>0&&(n.qv[n.pending++]=n.Gr);n.Gr=0;n.C_=0}; i1_=function(n,q,M){Mgu(n);a7(n,M);a7(n,~M);mv.Sv(n.qv,n.window,q,M,n.pending);n.pending+=M}; tgm=function(n,q,M,t){var c=q*2,Y=M*2;return n[c]>>7)];o7(n,G,M);k=rY[G];k!==0&&(c-=xi[G],R7(n,c,k))}}while(t>1;G>=1;G--)wY(n,M,G);b=Y;do G=n.C9[1],n.C9[1]=n.C9[n.E3--],wY(n,M,1),t=n.C9[1],n.C9[--n.zM]=G,n.C9[--n.zM]=t,M[b*2]=M[G*2]+M[t*2],n.depth[b]=(n.depth[G]>=n.depth[t]?n.depth[G]:n.depth[t])+1,M[G*2+1]=M[t*2+1]=b,n.C9[1]=b++,wY(n,M,1);while(n.E3>= 2);n.C9[--n.zM]=n.C9[1];G=q.Cf;b=q.R0;t=q.Xc.vK;c=q.Xc.ZP;Y=q.Xc.pP;var d=q.Xc.J3,N=q.Xc.sLs,O,e=0;for(O=0;O<=15;O++)n.rI[O]=0;G[n.C9[n.zM]*2+1]=0;for(q=n.zM+1;q<573;q++){var E=n.C9[q];O=G[G[E*2+1]*2+1]+1;O>N&&(O=N,e++);G[E*2+1]=O;if(!(E>b)){n.rI[O]++;var h=0;E>=d&&(h=Y[E-d]);var I=G[E*2];n.zD+=I*(O+h);c&&(n.JN+=I*(t[E*2+1]+h))}}if(e!==0){do{for(O=N-1;n.rI[O]===0;)O--;n.rI[O]--;n.rI[O+1]+=2;n.rI[N]--;e-=2}while(e>0);for(O=N;O!==0;O--)for(E=n.rI[O];E!==0;)t=n.C9[--q],t>b||(G[t*2+1]!==O&&(n.zD+=(O- G[t*2+1])*G[t*2],G[t*2+1]=O),E--)}n4a(M,k,n.rI)}; YNd=function(n,q,M){var t,c=-1,Y=q[1],G=0,k=7,b=4;Y===0&&(k=138,b=3);q[(M+1)*2+1]=65535;for(t=0;t<=M;t++){var d=Y;Y=q[(t+1)*2+1];++G>>=1)if(q&1&&n.G$[M*2]!==0)return 0;if(n.G$[18]!==0||n.G$[20]!==0||n.G$[26]!==0)return 1;for(M=32;M<256;M++)if(n.G$[M*2]!==0)return 1;return 0}; p4=function(n,q,M){n.qv[n.wh+n.Vw*2]=q>>>8&255;n.qv[n.wh+n.Vw*2+1]=q&255;n.qv[n.yG+n.Vw]=M&255;n.Vw++;q===0?n.G$[M*2]++:(n.matches++,q--,n.G$[(zS[M]+256+1)*2]++,n.oV[(q<256?C4[q]:C4[256+(q>>>7)])*2]++);return n.Vw===n.YL-1}; qw=function(n,q){n.msg=nr[q];return q}; Mw=function(n){for(var q=n.length;--q>=0;)n[q]=0}; iW=function(n){var q=n.state,M=q.pending;M>n.MV&&(M=n.MV);M!==0&&(mv.Sv(n.output,q.qv,q.lK,M,n.I0),n.I0+=M,q.lK+=M,n.JU+=M,n.MV-=M,q.pending-=M,q.pending===0&&(q.lK=0))}; Yd=function(n,q){var M=n.rP>=0?n.rP:-1,t=n.g7-n.rP,c=0;if(n.level>0){n.V6.Oa===2&&(n.V6.Oa=K5k(n));QA(n,n.il);QA(n,n.VJ);YNd(n,n.G$,n.il.R0);YNd(n,n.oV,n.VJ.R0);QA(n,n.oR);for(c=18;c>=3&&n.L_[kDR[c]*2+1]===0;c--);n.zD+=3*(c+1)+5+5+4;var Y=n.zD+3+7>>>3;var G=n.JN+3+7>>>3;G<=Y&&(Y=G)}else Y=G=t+5;if(t+4<=Y&&M!==-1)R7(n,q?1:0,3),i1_(n,M,t);else if(n.strategy===4||G===Y)R7(n,2+(q?1:0),3),cbd(n,to,cA);else{R7(n,4+(q?1:0),3);M=n.il.R0+1;t=n.VJ.R0+1;c+=1;R7(n,M-257,5);R7(n,t-1,5);R7(n,c-4,4);for(Y=0;Y>>8&255;n.qv[n.pending++]=q&255}; b1U=function(n,q){var M=n.gt,t=n.g7,c=n.Lb,Y=n.VN,G=n.g7>n.g9-262?n.g7-(n.g9-262):0,k=n.window,b=n.Sf,d=n.No,N=n.g7+258,O=k[t+c-1],e=k[t+c];n.Lb>=n.hW&&(M>>=2);Y>n.Ld&&(Y=n.Ld);do{var E=q;if(k[E+c]===e&&k[E+c-1]===O&&k[E]===k[t]&&k[++E]===k[t+1]){t+=2;for(E++;k[++t]===k[++E]&&k[++t]===k[++E]&&k[++t]===k[++E]&&k[++t]===k[++E]&&k[++t]===k[++E]&&k[++t]===k[++E]&&k[++t]===k[++E]&&k[++t]===k[++E]&&tc){n.Mu=q;c=E;if(E>=Y)break;O=k[t+c-1];e=k[t+c]}}}while((q=d[q&b])>G&&--M!== 0);return c<=n.Ld?c:n.Ld}; dS=function(n){var q=n.g9,M;do{var t=n.Zl-n.Ld-n.g7;if(n.g7>=q+(q-262)){mv.Sv(n.window,n.window,q,q,0);n.Mu-=q;n.g7-=q;n.rP-=q;var c=M=n.B2;do{var Y=n.head[--c];n.head[c]=Y>=q?Y-q:0}while(--M);c=M=q;do Y=n.No[--c],n.No[c]=Y>=q?Y-q:0;while(--M);t+=q}if(n.V6.ir===0)break;c=n.V6;M=n.window;Y=n.g7+n.Ld;var G=c.ir;G>t&&(G=t);G===0?M=0:(c.ir-=G,mv.Sv(M,c.input,c.Ns,G,Y),c.state.wrap===1?c.qM=kd(c.qM,M,G,Y):c.state.wrap===2&&(c.qM=bW(c.qM,M,G,Y)),c.Ns+=G,c.Yc+=G,M=G);n.Ld+=M;if(n.Ld+n.eC>=3)for(t=n.g7-n.eC, n.L8=n.window[t],n.L8=(n.L8<=3&&(n.L8=(n.L8<=3)if(M=p4(n,n.g7-n.Mu,n.jR-3),n.Ld-=n.jR,n.jR<=n.XU&&n.Ld>=3){n.jR--;do n.g7++,n.L8=(n.L8<=3&&(n.L8=(n.L8<4096)&&(n.jR=2));if(n.Lb>=3&&n.jR<=n.Lb){t=n.g7+n.Ld-3;M=p4(n,n.g7-1-n.UM,n.Lb-3);n.Ld-=n.Lb-1;n.Lb-=2;do++n.g7<=t&&(n.L8=(n.L8<=3&&n.g7>0&&(t=n.g7-1,M=Y[t],M===Y[++t]&&M===Y[++t]&&M===Y[++t])){for(c=n.g7+258;M===Y[++t]&&M===Y[++t]&&M===Y[++t]&&M===Y[++t]&&M===Y[++t]&&M===Y[++t]&&M===Y[++t]&&M===Y[++t]&&tn.Ld&&(n.jR=n.Ld)}n.jR>=3?(M=p4(n,1,n.jR-3),n.Ld-=n.jR,n.g7+=n.jR,n.jR=0):(M=p4(n,0,n.window[n.g7]),n.Ld--,n.g7++);if(M&&(Yd(n,!1),n.V6.MV===0))return 1}n.eC=0;return q=== 4?(Yd(n,!0),n.V6.MV===0?3:4):n.Vw&&(Yd(n,!1),n.V6.MV===0)?1:2}; NMk=function(n,q){for(var M;;){if(n.Ld===0&&(dS(n),n.Ld===0)){if(q===0)return 1;break}n.jR=0;M=p4(n,0,n.window[n.g7]);n.Ld--;n.g7++;if(M&&(Yd(n,!1),n.V6.MV===0))return 1}n.eC=0;return q===4?(Yd(n,!0),n.V6.MV===0?3:4):n.Vw&&(Yd(n,!1),n.V6.MV===0)?1:2}; gS=function(n,q,M,t,c){this.ZZ=n;this.NJE=q;this.ksm=M;this.YxJ=t;this.func=c}; O1_=function(){this.V6=null;this.status=0;this.qv=null;this.wrap=this.pending=this.lK=this.eK=0;this.SG=null;this.Hw=0;this.method=8;this.E1=-1;this.Sf=this.tU=this.g9=0;this.window=null;this.Zl=0;this.head=this.No=null;this.VN=this.hW=this.strategy=this.level=this.XU=this.gt=this.Lb=this.Ld=this.Mu=this.g7=this.l6=this.UM=this.jR=this.rP=this.LC=this.ea=this.pB=this.B2=this.L8=0;this.G$=new mv.IF(1146);this.oV=new mv.IF(122);this.L_=new mv.IF(78);Mw(this.G$);Mw(this.oV);Mw(this.L_);this.oR=this.VJ= this.il=null;this.rI=new mv.IF(16);this.C9=new mv.IF(573);Mw(this.C9);this.zM=this.E3=0;this.depth=new mv.IF(573);Mw(this.depth);this.C_=this.Gr=this.eC=this.matches=this.JN=this.zD=this.wh=this.Vw=this.YL=this.yG=0}; g41=function(n,q){if(!n||!n.state||q>5||q<0)return n?qw(n,-2):-2;var M=n.state;if(!n.output||!n.input&&n.ir!==0||M.status===666&&q!==4)return qw(n,n.MV===0?-5:-2);M.V6=n;var t=M.E1;M.E1=q;if(M.status===42)if(M.wrap===2)n.qM=0,G7(M,31),G7(M,139),G7(M,8),M.SG?(G7(M,(M.SG.text?1:0)+(M.SG.UW?2:0)+(M.SG.extra?4:0)+(M.SG.name?8:0)+(M.SG.comment?16:0)),G7(M,M.SG.time&255),G7(M,M.SG.time>>8&255),G7(M,M.SG.time>>16&255),G7(M,M.SG.time>>24&255),G7(M,M.level===9?2:M.strategy>=2||M.level<2?4:0),G7(M,M.SG.os& 255),M.SG.extra&&M.SG.extra.length&&(G7(M,M.SG.extra.length&255),G7(M,M.SG.extra.length>>8&255)),M.SG.UW&&(n.qM=bW(n.qM,M.qv,M.pending,0)),M.Hw=0,M.status=69):(G7(M,0),G7(M,0),G7(M,0),G7(M,0),G7(M,0),G7(M,M.level===9?2:M.strategy>=2||M.level<2?4:0),G7(M,3),M.status=113);else{var c=8+(M.tU-8<<4)<<8;c|=(M.strategy>=2||M.level<2?0:M.level<6?1:M.level===6?2:3)<<6;M.g7!==0&&(c|=32);M.status=113;Kr(M,c+(31-c%31));M.g7!==0&&(Kr(M,n.qM>>>16),Kr(M,n.qM&65535));n.qM=1}if(M.status===69)if(M.SG.extra){for(c= M.pending;M.Hw<(M.SG.extra.length&65535)&&(M.pending!==M.eK||(M.SG.UW&&M.pending>c&&(n.qM=bW(n.qM,M.qv,M.pending-c,c)),iW(n),c=M.pending,M.pending!==M.eK));)G7(M,M.SG.extra[M.Hw]&255),M.Hw++;M.SG.UW&&M.pending>c&&(n.qM=bW(n.qM,M.qv,M.pending-c,c));M.Hw===M.SG.extra.length&&(M.Hw=0,M.status=73)}else M.status=73;if(M.status===73)if(M.SG.name){c=M.pending;do{if(M.pending===M.eK&&(M.SG.UW&&M.pending>c&&(n.qM=bW(n.qM,M.qv,M.pending-c,c)),iW(n),c=M.pending,M.pending===M.eK)){var Y=1;break}Y=M.Hwc&&(n.qM=bW(n.qM,M.qv,M.pending-c,c));Y===0&&(M.Hw=0,M.status=91)}else M.status=91;if(M.status===91)if(M.SG.comment){c=M.pending;do{if(M.pending===M.eK&&(M.SG.UW&&M.pending>c&&(n.qM=bW(n.qM,M.qv,M.pending-c,c)),iW(n),c=M.pending,M.pending===M.eK)){Y=1;break}Y=M.Hwc&&(n.qM=bW(n.qM,M.qv,M.pending-c,c));Y===0&&(M.status=103)}else M.status= 103;M.status===103&&(M.SG.UW?(M.pending+2>M.eK&&iW(n),M.pending+2<=M.eK&&(G7(M,n.qM&255),G7(M,n.qM>>8&255),n.qM=0,M.status=113)):M.status=113);if(M.pending!==0){if(iW(n),n.MV===0)return M.E1=-1,0}else if(n.ir===0&&(q<<1)-(q>4?9:0)<=(t<<1)-(t>4?9:0)&&q!==4)return qw(n,-5);if(M.status===666&&n.ir!==0)return qw(n,-5);if(n.ir!==0||M.Ld!==0||q!==0&&M.status!==666){t=M.strategy===2?NMk(M,q):M.strategy===3?def(M,q):eU[M.level].func(M,q);if(t===3||t===4)M.status=666;if(t===1||t===3)return n.MV===0&&(M.E1= -1),0;if(t===2&&(q===1?(R7(M,2,3),o7(M,256,to),M.C_===16?(a7(M,M.Gr),M.Gr=0,M.C_=0):M.C_>=8&&(M.qv[M.pending++]=M.Gr&255,M.Gr>>=8,M.C_-=8)):q!==5&&(R7(M,0,3),i1_(M,0,0),q===3&&(Mw(M.head),M.Ld===0&&(M.g7=0,M.rP=0,M.eC=0))),iW(n),n.MV===0))return M.E1=-1,0}if(q!==4)return 0;if(M.wrap<=0)return 1;M.wrap===2?(G7(M,n.qM&255),G7(M,n.qM>>8&255),G7(M,n.qM>>16&255),G7(M,n.qM>>24&255),G7(M,n.Yc&255),G7(M,n.Yc>>8&255),G7(M,n.Yc>>16&255),G7(M,n.Yc>>24&255)):(Kr(M,n.qM>>>16),Kr(M,n.qM&65535));iW(n);M.wrap>0&& (M.wrap=-M.wrap);return M.pending!==0?0:1}; Ek=function(n){if(!(this instanceof Ek))return new Ek(n);n=this.options=mv.assign({level:-1,method:8,chunkSize:16384,zo:15,Hmd:8,strategy:0,to:""},n||{});n.raw&&n.zo>0?n.zo=-n.zo:n.wH&&n.zo>0&&n.zo<16&&(n.zo+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.V6=new ec1;this.V6.MV=0;var q=this.V6;var M=n.level,t=n.method,c=n.zo,Y=n.Hmd,G=n.strategy;if(q){var k=1;M===-1&&(M=6);c<0?(k=0,c=-c):c>15&&(k=2,c-=16);if(Y<1||Y>9||t!==8||c<8||c>15||M<0||M>9||G<0||G>4)q=qw(q,-2);else{c===8&&(c=9); var b=new O1_;q.state=b;b.V6=q;b.wrap=k;b.SG=null;b.tU=c;b.g9=1<>=7;Y<30;Y++)for(xi[Y]=G<<7,c=0;c<1<=d.g9&&(q===0&&(Mw(d.head),d.g7=0,d.rP=0,d.eC=0),M=new mv.UX(d.g9),mv.Sv(M,Y,G-d.g9,d.g9,0),Y=M,G=d.g9);M=n.ir;t=n.Ns;c=n.input;n.ir=G;n.Ns=0;n.input=Y;for(dS(d);d.Ld>=3;){Y=d.g7;G=d.Ld-2;do d.L8=(d.L8<7||((0,M[77])(M[43],M[80]),K[9]))&&(0,M[38])(M[18],M[25])}catch(t){(0,M[41])(M[65],M[25])}try{M[61]>-7&&((((0,M[15])(M[28],M[61]),M[77])(M[23],M[80]),M[17])(M[25],M[45]),M[41])(M[52],M[80]),(M[new Date(K[70])/1E3]!==3||((0,M[63])(M[25],M[53]),(0,M[44])(M[50],M[5],(0,M[1428+new Date(K[57])/1E3])()),0))&&(0,M[42])(M[53],M[75])/(0,M[78])(M[27],M[50]),(M[9]!=-9||((0,M[49])(M[39],(0,M[4])((0,M[20])(M[50], M[new Date(K[84])/1E3],(0,M[31])()),M[20],M[33],M[63],(0,M[32])()),(0,M[18])(M[29],M[28]),((0,M[20])(M[33],M[new Date(K[61])/1E3],(0,M[31])()),M[39])(M[74],M[26]),(0,M[18])(M[81],M[73]),M[8],M[48]),0))&&(((((0,M[21])(M[81]),M[65])(M[0],M[34]),M[39])(M[9],M[48]),M[63])(M[31],M[Math[K[77]](8,new Date(K[89])/1E3)+182-32924]),((0,M[63])(M[52],M[17]),M[39])(M[44],M[45]),M[57])(M[30]),(0,M[7])((0,M[21])(M[new Date(K[67])/1E3],M[52]),M[45],M[14],M[53])}catch(t){M[4]!==30-Math[K[77]](6,new Date(K[53])/1E3)% 248&&(M[54]!==4||((0,M[42])(M[38],M[36]),0))&&(0,M[81])(M[9],M[52]),M[6]!==-9&&(M[50]>-8||((0,M[7])((0,M[21])(M[29],M[79]),M[60],M[26],M[51]),0))&&(0,M[7])((0,M[81])(M[62],M[51]),M[42],M[28],M[51]),M[70]!==-1&&(M[75]<=-2?((0,M[45])(M[18],M[29]),(0,M[5])((0,M[19])(M[53],M[12]),M[45],(0,M[21])(M[52],M[6]),M[68],M[54])):(((0,M[41])(M[77]),M[48])(M[61],M[8],(0,M[14])()),(0,M[67])(M[51],M[54]),M[48])(M[61],M[8],(0,M[60])())),M[65]>=7?(0,M[44])(M[76],M[66]):(0,M[67])(M[16],M[78])}finally{M[38]==-5?((0,M[32])((0,M[46])(M[61], M[25]),M[67],M[69],M[76]),M[67])(M[5],M[61]):(((0,M[70])(M[26],M[61]),M[67])(M[20],M[78]),M[23])(M[6],M[61]),(M[19]<7||((0,M[32])((0,M[67])(M[50],M[78]),M[49],M[54]),K[9]))&&(0,M[32])((0,M[3])(M[57],M[69]),M[23],M[58],M[54])}try{M[20]<1&&(0,M[48])(M[54],M[8],(0,M[15])()),M[68]!==8?(0,M[32])((0,M[23])(M[80],M[78]),M[41],M[76]):(0,M[51])((0,M[73763-new Date(K[75])/1E3*512])(M[22],M[75],(0,M[68])()),M[60],M[70],M[6]),M[52]!=5&&(M[58]<0&&((0,M[51])((0,M[51])((0,M[16])(M[48],M[22]),M[39],M[26],M[71]), M[34],M[22]),(0,M[13])(M[55],M[22]),1)||((0,M[37])(M[29],M[1]),(0,M[16])(M[18],M[29]),M[42])(M[6])>(0,M[42])(M[5])),M[50]!==-9&&(0,M[51])(((0,M[13])(M[43],M[26]),(0,M[66])(M[49],M[77]),(0,M[40])(M[16],M[49]),(0,M[43])(M[37],M[32]),M[64])(M[34],M[72]),M[25],M[82])}catch(t){(0,M[55])(M[70],M[10]),(0,M[50])(M[66]),(0,M[41])((0,M[55])(M[63],M[54]),M[55],M[63],M[80])}}catch(t){return K[28]+n}return q[K[32]](K[9])}; g.Xa=function(n){this.name=n}; DeU=function(n){this.MP=wr(n)}; jU=function(n){this.MP=wr(n)}; SU=function(n){this.MP=wr(n)}; AbC=function(n){this.MP=wr(n)}; IZ=function(n){this.MP=wr(n)}; fr=function(n){this.MP=wr(n)}; HA=function(n){this.MP=wr(n)}; Lr=function(n){this.MP=wr(n)}; PA=function(n){this.MP=wr(n)}; vA=function(n){this.MP=wr(n)}; T7=function(n){this.MP=wr(n)}; lW=function(n){this.MP=wr(n)}; Uk=function(n){this.MP=wr(n)}; uW=function(n){this.MP=wr(n)}; BA=function(n){this.MP=wr(n)}; DT=function(n){this.MP=wr(n,500)}; Ao=function(n){this.MP=wr(n)}; Fa=function(n){this.MP=wr(n)}; mek=function(n){this.MP=wr(n)}; $ek=function(){return g.qD("yt.ads.biscotti.lastId_")||""}; F5_=function(n){g.nQ("yt.ads.biscotti.lastId_",n)}; aZ=function(){var n=arguments,q=ZT;n.length>1?q[n[0]]=n[1]:n.length===1&&Object.assign(q,n[0])}; g.RZ=function(n,q){return n in ZT?ZT[n]:q}; oZ=function(n){var q=ZT.EXPERIMENT_FLAGS;return q?q[n]:void 0}; Z11=function(n){wS.forEach(function(q){return q(n)})}; g.Jo=function(n){return n&&window.yterr?function(){try{return n.apply(this,arguments)}catch(q){g.z7(q)}}:n}; g.z7=function(n){var q=g.qD("yt.logging.errors.log");q?q(n,"ERROR",void 0,void 0,void 0,void 0,void 0):(q=g.RZ("ERRORS",[]),q.push([n,"ERROR",void 0,void 0,void 0,void 0,void 0]),aZ("ERRORS",q));Z11(n)}; V8=function(n,q,M,t,c){var Y=g.qD("yt.logging.errors.log");Y?Y(n,"WARNING",q,M,t,void 0,c):(Y=g.RZ("ERRORS",[]),Y.push([n,"WARNING",q,M,t,void 0,c]),aZ("ERRORS",Y))}; Cr=function(n,q){q=n.split(q);for(var M={},t=0,c=q.length;t1?n[1]:n[0])):{}}; np=function(n,q){return w5C(n,q||{},!0)}; qs=function(n,q){return w5C(n,q||{},!1)}; w5C=function(n,q,M){var t=n.split("#",2);n=t[0];t=t.length>1?"#"+t[1]:"";var c=n.split("?",2);n=c[0];c=xd(c[1]||"");for(var Y in q)if(M||!g.d0(c,Y))c[Y]=q[Y];return g.hC(n,c)+t}; Ms=function(n){if(!q)var q=window.location.href;var M=g.kO(n)[1]||null,t=g.bm(n);M&&t?(n=g.kO(n),q=g.kO(q),n=n[3]==q[3]&&n[1]==q[1]&&n[4]==q[4]):n=t?g.bm(q)===t&&(Number(g.kO(q)[4]||null)||null)===(Number(g.kO(n)[4]||null)||null):!0;return n}; il=function(n){n||(n=document.location.href);n=g.kO(n)[1]||null;return n!==null&&n==="https"}; tP=function(n){n=zcu(n);return n===null?!1:n[0]==="com"&&n[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; Jbf=function(n){n=zcu(n);return n===null?!1:n[1]==="google"?!0:n[2]==="google"?n[0]==="au"&&n[1]==="com"?!0:n[0]==="uk"&&n[1]==="co"?!0:!1:!1}; zcu=function(n){n=g.bm(n);return n!==null?n.split(".").reverse():null}; a5d=function(n){return n&&n.match(VgR)?n:Td(n)}; GH=function(n){var q=ck;n=n===void 0?$ek():n;var M=Object,t=M.assign,c=Ye(q);var Y=q.X;try{var G=Y.screenX;var k=Y.screenY}catch(T){}try{var b=Y.outerWidth;var d=Y.outerHeight}catch(T){}try{var N=Y.innerWidth;var O=Y.innerHeight}catch(T){}try{var e=Y.screenLeft;var E=Y.screenTop}catch(T){}try{N=Y.innerWidth,O=Y.innerHeight}catch(T){}try{var h=Y.screen.availWidth;var I=Y.screen.availTop}catch(T){}Y=[e,E,G,k,h,I,b,d,N,O];G=nqu(!1,q.X.top);k={};var L=L===void 0?g.pa:L;b=new FW;"SVGElement"in L&&"createElementNS"in L.document&&b.set(0);d=K3k();d["allow-top-navigation-by-user-activation"]&&b.set(1);d["allow-popups-to-escape-sandbox"]&&b.set(2);L.crypto&&L.crypto.subtle&&b.set(3);"TextDecoder"in L&&"TextEncoder"in L&&b.set(4);L=XLC(b);q=(k.bc=L,k.bih=G.height,k.biw=G.width,k.brdim=Y.join(),k.vis=Yq(q.W),k.wgl=!!lP.WebGLRenderingContext,k);M=t.call(M,c,q);M.ca_type="image";n&&(M.bid=n);return M}; Ye=function(n){var q={};q.dt=Cga;q.flash="0";a:{try{var M=n.X.top.location.href}catch(d){n=2;break a}n=M?M===n.W.location.href?0:1:2}q=(q.frm=n,q);try{q.u_tz=-(new Date).getTimezoneOffset();try{var t=lP.history.length}catch(d){t=0}q.u_his=t;var c;q.u_h=(c=lP.screen)==null?void 0:c.height;var Y;q.u_w=(Y=lP.screen)==null?void 0:Y.width;var G;q.u_ah=(G=lP.screen)==null?void 0:G.availHeight;var k;q.u_aw=(k=lP.screen)==null?void 0:k.availWidth;var b;q.u_cd=(b=lP.screen)==null?void 0:b.colorDepth}catch(d){}return q}; xed=function(){if(!rbR)return null;var n=rbR();return"open"in n?n:null}; g.ke=function(n){switch(Kp(n)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Kp=function(n){return n&&"status"in n?n.status:-1}; g.bl=function(n,q){typeof n==="function"&&(n=g.Jo(n));return window.setTimeout(n,q)}; g.dO=function(n,q){typeof n==="function"&&(n=g.Jo(n));return window.setInterval(n,q)}; g.Ns=function(n){window.clearTimeout(n)}; g.OH=function(n){window.clearInterval(n)}; g.EH=function(n){n=e6(n);return typeof n==="string"&&n==="false"?!1:!!n}; g.hP=function(n,q){n=e6(n);return n===void 0&&q!==void 0?q:Number(n||0)}; Wk=function(){return g.RZ("EXPERIMENTS_TOKEN","")}; e6=function(n){return g.RZ("EXPERIMENT_FLAGS",{})[n]}; yY=function(){for(var n=[],q=g.RZ("EXPERIMENTS_FORCED_FLAGS",{}),M=g.S(Object.keys(q)),t=M.next();!t.done;t=M.next())t=t.value,n.push({key:t,value:String(q[t])});M=g.RZ("EXPERIMENT_FLAGS",{});t=g.S(Object.keys(M));for(var c=t.next();!c.done;c=t.next())c=c.value,c.startsWith("force_")&&q[c]===void 0&&n.push({key:c,value:String(M[c])});return n}; sH=function(n,q,M,t,c,Y,G,k,b){function d(){(N&&"readyState"in N?N.readyState:0)===4&&q&&g.Jo(q)(N)} M=M===void 0?"GET":M;t=t===void 0?"":t;k=k===void 0?!1:k;var N=xed();if(!N)return null;"onloadend"in N?N.addEventListener("loadend",d,!1):N.onreadystatechange=d;g.EH("debug_forward_web_query_parameters")&&(n=Q9U(n));N.open(M,n,!0);Y&&(N.responseType=Y);G&&(N.withCredentials=!0);M=M==="POST"&&(window.FormData===void 0||!(t instanceof FormData));if(c=p5J(n,c))for(var O in c)N.setRequestHeader(O,c[O]),"content-type"===O.toLowerCase()&&(M=!1);M&&N.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); b&&"onprogress"in N&&(N.onprogress=function(){b(N.responseText)}); if(k&&"setAttributionReporting"in XMLHttpRequest.prototype){n={eventSourceEligible:!0,triggerEligible:!1};try{N.setAttributionReporting(n)}catch(e){V8(e)}}N.send(t);return N}; p5J=function(n,q){q=q===void 0?{}:q;var M=Ms(n),t=g.RZ("INNERTUBE_CLIENT_NAME"),c=g.EH("web_ajax_ignore_global_headers_if_set"),Y;for(Y in nCJ){var G=g.RZ(nCJ[Y]),k=Y==="X-Goog-AuthUser"||Y==="X-Goog-PageId";Y!=="X-Goog-Visitor-Id"||G||(G=g.RZ("VISITOR_DATA"));var b;if(!(b=!G)){if(!(b=M||(g.bm(n)?!1:!0))){b=n;var d;if(d=g.EH("add_auth_headers_to_remarketing_google_dot_com_ping")&&Y==="Authorization"&&(t==="TVHTML5"||t==="TVHTML5_UNPLUGGED"||t==="TVHTML5_SIMPLY")&&Jbf(b))b=d$(b)||"",b=b.split("/"), b="/"+(b.length>1?b[1]:""),d=b==="/pagead";b=d?!0:!1}b=!b}b||c&&q[Y]!==void 0||t==="TVHTML5_UNPLUGGED"&&k||(q[Y]=G)}"X-Goog-EOM-Visitor-Id"in q&&"X-Goog-Visitor-Id"in q&&delete q["X-Goog-Visitor-Id"];if(M||!g.bm(n))q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(M||!g.bm(n)){try{var N=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(O){}N&&(q["X-YouTube-Time-Zone"]=N)}document.location.hostname.endsWith("youtubeeducation.com")||!M&&g.bm(n)||(q["X-YouTube-Ad-Signals"]= rS(GH()));return q}; j6=function(n,q){q.method="POST";q.postParams||(q.postParams={});return g.X$(n,q)}; iYd=function(n,q){if(window.fetch&&q.format!=="XML"){var M={method:q.method||"GET",credentials:"same-origin"};q.headers&&(M.headers=q.headers);q.priority&&(M.priority=q.priority);n=qos(n,q);var t=MPJ(n,q);t&&(M.body=t);q.withCredentials&&(M.credentials="include");var c=q.context||g.pa,Y=!1,G;fetch(n,M).then(function(k){if(!Y){Y=!0;G&&g.Ns(G);var b=k.ok,d=function(N){N=N||{};b?q.onSuccess&&q.onSuccess.call(c,N,k):q.onError&&q.onError.call(c,N,k);q.onFinish&&q.onFinish.call(c,N,k)}; (q.format||"JSON")==="JSON"&&(b||k.status>=400&&k.status<500)?k.json().then(d,function(){d(null)}):d(null)}}).catch(function(){q.onError&&q.onError.call(c,{},{})}); n=q.timeout||0;q.onFetchTimeout&&n>0&&(G=g.bl(function(){Y||(Y=!0,g.Ns(G),q.onFetchTimeout.call(q.context||g.pa))},n))}else g.X$(n,q)}; g.X$=function(n,q){var M=q.format||"JSON";n=qos(n,q);var t=MPJ(n,q),c=!1,Y=tPk(n,function(b){if(!c){c=!0;k&&g.Ns(k);var d=g.ke(b),N=null,O=400<=b.status&&b.status<500,e=500<=b.status&&b.status<600;if(d||O||e)N=cQm(n,M,b,q.convertToSafeHtml);d&&(d=Yoj(M,b,N));N=N||{};O=q.context||g.pa;d?q.onSuccess&&q.onSuccess.call(O,b,N):q.onError&&q.onError.call(O,b,N);q.onFinish&&q.onFinish.call(O,b,N)}},q.method,t,q.headers,q.responseType,q.withCredentials,!1,q.onProgress); t=q.timeout||0;if(q.onTimeout&&t>0){var G=q.onTimeout;var k=g.bl(function(){c||(c=!0,Y.abort(),g.Ns(k),G.call(q.context||g.pa,Y))},t)}return Y}; qos=function(n,q){q.includeDomain&&(n=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+n);var M=g.RZ("XSRF_FIELD_NAME");if(q=q.urlParams)q[M]&&delete q[M],n=np(n,q);return n}; MPJ=function(n,q){var M=g.RZ("XSRF_FIELD_NAME"),t=g.RZ("XSRF_TOKEN"),c=q.postBody||"",Y=q.postParams,G=g.RZ("XSRF_FIELD_NAME"),k;q.headers&&(k=q.headers["Content-Type"]);q.excludeXsrf||g.bm(n)&&!q.withCredentials&&g.bm(n)!==document.location.hostname||q.method!=="POST"||k&&k!=="application/x-www-form-urlencoded"||q.postParams&&q.postParams[G]||(Y||(Y={}),Y[M]=t);(g.EH("ajax_parse_query_data_only_when_filled")&&Y&&Object.keys(Y).length>0||Y)&&typeof c==="string"&&(c=xd(c),g.yn(c,Y),c=q.postBodyFormat&& q.postBodyFormat==="JSON"?JSON.stringify(c):g.Eu(c));Y=c||Y&&!g.g0(Y);!GMa&&Y&&q.method!=="POST"&&(GMa=!0,g.z7(Error("AJAX request with postData should use POST")));return c}; cQm=function(n,q,M,t){var c=null;switch(q){case "JSON":try{var Y=M.responseText}catch(G){throw t=Error("Error reading responseText"),t.params=n,V8(t),G;}n=M.getResponseHeader("Content-Type")||"";Y&&n.indexOf("json")>=0&&(Y.substring(0,5)===")]}'\n"&&(Y=Y.substring(5)),c=JSON.parse(Y));break;case "XML":if(n=(n=M.responseXML)?KRj(n):null)c={},g.xw(n.getElementsByTagName("*"),function(G){c[G.tagName]=kMu(G)})}t&&bYd(c); return c}; bYd=function(n){if(g.Yw(n))for(var q in n)q==="html_content"||asd(q,"_html")?n[q]=gi(n[q]):bYd(n[q])}; Yoj=function(n,q,M){if(q&&q.status===204)return!0;switch(n){case "JSON":return!!M;case "XML":return Number(M&&M.return_code)===0;case "RAW":return!0;default:return!!M}}; KRj=function(n){return n?(n=("responseXML"in n?n.responseXML:n).getElementsByTagName("root"))&&n.length>0?n[0]:null:null}; kMu=function(n){var q="";g.xw(n.childNodes,function(M){q+=M.nodeValue}); return q}; Q9U=function(n){var q=window.location.search,M=g.bm(n);g.EH("debug_handle_relative_url_for_query_forward_killswitch")||!M&&Ms(n)&&(M=document.location.hostname);var t=d$(n);t=(M=M&&(M.endsWith("youtube.com")||M.endsWith("youtube-nocookie.com")))&&t&&t.startsWith("/api/");if(!M||t)return n;var c=xd(q),Y={};g.xw(dAm,function(G){c[G]&&(Y[G]=c[G])}); return qs(n,Y)}; IN=function(n,q){var M=g.hf(q),t;return(new g.v5(function(c,Y){M.onSuccess=function(G){g.ke(G)?c(new NQ_(G)):Y(new S6("Request failed, status="+Kp(G),"net.badstatus",G))}; M.onError=function(G){Y(new S6("Unknown request error","net.unknown",G))}; M.onTimeout=function(G){Y(new S6("Request timed out","net.timeout",G))}; t=g.X$(n,M)})).M9(function(c){if(c instanceof D5){var Y; (Y=t)==null||Y.abort()}return UN(c)})}; g.fp=function(n,q,M,t,c,Y){function G(b,d,N){return b.M9(function(O){if(d<=0||Kp(O.xhr)===403)return UN(new S6("Request retried too many times","net.retryexhausted",O.xhr,O));var e=Math.pow(2,M-d+1)*N,E=c>0?Math.min(c,e):e;return k(N).then(function(){Y&&Y(O,d-1);return G(IN(n,q),d-1,E)})})} function k(b){return new g.v5(function(d){setTimeout(d,b)})} c=c===void 0?-1:c;return G(IN(n,q),M-1,t)}; S6=function(n,q,M){hF.call(this,n+", errorCode="+q);this.errorCode=q;this.xhr=M;this.name="PromiseAjaxError"}; NQ_=function(n){this.xhr=n}; Hk=function(n){this.X=n===void 0?null:n;this.Z=0;this.W=null}; Lp=function(n){var q=new Hk;n=n===void 0?null:n;q.Z=2;q.W=n===void 0?null:n;return q}; Pk=function(n){var q=new Hk;n=n===void 0?null:n;q.Z=1;q.W=n===void 0?null:n;return q}; g.ll=function(n,q,M,t,c){vk||TH.set(""+n,q,{yQ:M,path:"/",domain:t===void 0?"youtube.com":t,secure:c===void 0?!1:c})}; g.UH=function(n,q){if(!vk)return TH.get(""+n,q)}; g.ul=function(n,q,M){vk||TH.remove(""+n,q===void 0?"/":q,M===void 0?"youtube.com":M)}; OY1=function(){if(g.EH("embeds_web_enable_cookie_detection_fix")){if(!g.pa.navigator.cookieEnabled)return!1}else if(!TH.isEnabled())return!1;if(!TH.isEmpty())return!0;g.EH("embeds_web_enable_cookie_detection_fix")?TH.set("TESTCOOKIESENABLED","1",{yQ:60,Fvt:"none",secure:!0}):TH.set("TESTCOOKIESENABLED","1",{yQ:60});if(TH.get("TESTCOOKIESENABLED")!=="1")return!1;TH.remove("TESTCOOKIESENABLED");return!0}; g.R=function(n,q){if(n)return n[q.name]}; Bk=function(n){var q=g.RZ("INNERTUBE_HOST_OVERRIDE");q&&(n=String(q)+String(Nu(n)));return n}; gC_=function(n){var q={};g.EH("json_condensed_response")&&(q.prettyPrint="false");return n=qs(n,q)}; D_=function(n,q){var M=M===void 0?{}:M;n={method:q===void 0?"POST":q,mode:Ms(n)?"same-origin":"cors",credentials:Ms(n)?"same-origin":"include"};q={};for(var t=g.S(Object.keys(M)),c=t.next();!c.done;c=t.next())c=c.value,M[c]&&(q[c]=M[c]);Object.keys(q).length>0&&(n.headers=q);return n}; AP=function(){var n=/Chrome\/(\d+)/.exec(g.FV());return n?parseFloat(n[1]):NaN}; m_=function(){var n=/\sCobalt\/(\S+)\s/.exec(g.FV());if(!n)return NaN;var q=[];n=g.S(n[1].split("."));for(var M=n.next();!M.done;M=n.next())M=parseInt(M.value,10),M>=0&&q.push(M);return parseFloat(q.join("."))}; F$=function(){return g.$e("android")&&g.$e("chrome")&&!(g.$e("trident/")||g.$e("edge/"))&&!g.$e("cobalt")}; eMd=function(){return g.$e("armv7")||g.$e("aarch64")||g.$e("android")}; g.Z_=function(){return g.$e("cobalt")}; aN=function(){return g.$e("cobalt")&&g.$e("appletv")}; RN=function(){return g.$e("(ps3; leanback shell)")||g.$e("ps3")&&g.Z_()}; ECf=function(){return g.$e("(ps4; leanback shell)")||g.$e("ps4")&&g.Z_()}; g.hMR=function(){return g.Z_()&&(g.$e("ps4 vr")||g.$e("ps4 pro vr"))}; oN=function(){var n=/WebKit\/([0-9]+)/.exec(g.FV());return!!(n&&parseInt(n[1],10)>=600)}; wO=function(){var n=/WebKit\/([0-9]+)/.exec(g.FV());return!!(n&&parseInt(n[1],10)>=602)}; WRf=function(){return g.$e("iemobile")||g.$e("windows phone")&&g.$e("edge")}; VY=function(){return(zH||JP)&&g.$e("applewebkit")&&!g.$e("version")&&(!g.$e("safari")||g.$e("gsa/"))}; rO=function(){return g.Cp&&g.$e("version/")}; xe=function(){return g.$e("smart-tv")&&g.$e("samsung")}; g.$e=function(n){var q=g.FV();return q?q.toLowerCase().indexOf(n)>=0:!1}; QY=function(){return nOu()||VY()||rO()?!0:g.RZ("EOM_VISITOR_DATA")?!1:!0}; pp=function(n,q){return q===void 0||q===null?n:q==="1"||q===!0||q===1||q==="True"?!0:!1}; nL=function(n,q,M){for(var t in M)if(M[t]==q)return M[t];return n}; qy=function(n,q){return q===void 0||q===null?n:Number(q)}; My=function(n,q){return q===void 0||q===null?n:q.toString()}; iJ=function(n,q){if(q){if(n==="fullwidth")return Infinity;if(n==="fullheight")return 0}return n&&(q=n.match(yQs))&&(n=Number(q[2]),q=Number(q[1]),!isNaN(n)&&!isNaN(q)&&n>0)?q/n:NaN}; tJ=function(n){var q=n.docid||n.video_id||n.videoId||n.id;if(q)return q;q=n.raw_player_response;q||(n=n.player_response)&&(q=JSON.parse(n));return q&&q.videoDetails&&q.videoDetails.videoId||null}; s8d=function(n){return cf(n,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.Yj=function(n){return n==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||n==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; cf=function(n,q){q=(q===void 0?0:q)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(q="EMBEDDED_PLAYER_MODE_PFL");var M=n.raw_embedded_player_response;if(!M&&(n=n.embedded_player_response))try{M=JSON.parse(n)}catch(t){return q}return M?nL(q,M.embeddedPlayerMode,X2d):q}; KL=function(n){hF.call(this,n.message||n.description||n.name);this.isMissing=n instanceof GJ;this.isTimeout=n instanceof S6&&n.errorCode=="net.timeout";this.isCanceled=n instanceof D5}; GJ=function(){hF.call(this,"Biscotti ID is missing from server")}; j8s=function(){if(g.EH("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!QY())return Error("User has not consented - not fetching biscotti id.");var n=g.RZ("PLAYER_VARS",{});if(g.eL(n,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(s8d(n))return Error("Biscotti id fetching has been disabled for pfl.")}; HYf=function(){var n=j8s();if(n!==void 0)return UN(n);kj||(kj=IN("//googleads.g.doubleclick.net/pagead/id",SoC).then(ImR).M9(function(q){return fmf(2,q)})); return kj}; ImR=function(n){n=n.xhr.responseText;if(!lV(n,")]}'"))throw new GJ;n=JSON.parse(n.substr(4));if((n.type||1)>1)throw new GJ;n=n.id;F5_(n);kj=Pk(n);LRs(18E5,2);return n}; fmf=function(n,q){q=new KL(q);F5_("");kj=Lp(q);n>0&&LRs(12E4,n-1);throw q;}; LRs=function(n,q){g.bl(function(){IN("//googleads.g.doubleclick.net/pagead/id",SoC).then(ImR,function(M){return fmf(q,M)}).M9(g.uP)},n)}; P$j=function(){try{var n=g.qD("yt.ads.biscotti.getId_");return n?n():HYf()}catch(q){return UN(q)}}; TQu=function(n){n&&(n.dataset?n.dataset[vCC()]="true":iQs(n))}; lmk=function(n){return n?n.dataset?n.dataset[vCC()]:n.getAttribute("data-loaded"):null}; vCC=function(){return UAm.loaded||(UAm.loaded="loaded".replace(/\-([a-z])/g,function(n,q){return q.toUpperCase()}))}; uyR=function(){var n=document;if("visibilityState"in n)return n.visibilityState;var q=bJ+"VisibilityState";if(q in n)return n[q]}; dF=function(n,q){var M;oV(n,function(t){M=q[t];return!!M}); return M}; Ny=function(n){if(n.requestFullscreen)n=n.requestFullscreen(void 0);else if(n.webkitRequestFullscreen)n=n.webkitRequestFullscreen();else if(n.mozRequestFullScreen)n=n.mozRequestFullScreen();else if(n.msRequestFullscreen)n=n.msRequestFullscreen();else if(n.webkitEnterFullscreen)n=n.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return n instanceof Promise?n:Promise.resolve()}; eo=function(n){var q;g.Og()?gF()==n&&(q=document):q=n;return q&&(n=dF(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],q))?(q=n.call(q),q instanceof Promise?q:Promise.resolve()):Promise.resolve()}; BQJ=function(n){return g.XO(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(q){return"on"+q.toLowerCase()in n})}; DAs=function(){var n=document;return g.XO(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(q){return"on"+q.toLowerCase()in n})}; g.Og=function(){return!!dF(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; gF=function(n){n=n===void 0?!1:n;var q=dF(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(n)for(;q&&q.shadowRoot;)q=q.shadowRoot.fullscreenElement;return q?q:null}; Eg=function(n){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(n=n||window.event){this.event=n;for(var q in n)q in AQ_||(this[q]=n[q]);this.scale=n.scale;this.rotation=n.rotation;var M=n.target||n.srcElement;M&&M.nodeType==3&&(M=M.parentNode);this.target=M;var t=n.relatedTarget; if(t)try{t=t.nodeName?t:null}catch(c){t=null}else this.type=="mouseover"?t=n.fromElement:this.type=="mouseout"&&(t=n.toElement);this.relatedTarget=t;this.clientX=n.clientX!=void 0?n.clientX:n.pageX;this.clientY=n.clientY!=void 0?n.clientY:n.pageY;this.keyCode=n.keyCode?n.keyCode:n.which;this.charCode=n.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=n.altKey;this.ctrlKey=n.ctrlKey;this.shiftKey=n.shiftKey;this.metaKey=n.metaKey;this.X=n.pageX;this.W=n.pageY}}catch(c){}}; mAC=function(n){if(document.body&&document.documentElement){var q=document.body.scrollTop+document.documentElement.scrollTop;n.X=n.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);n.W=n.clientY+q}}; $Aa=function(n,q,M,t){t=t===void 0?{}:t;n.addEventListener&&(q!="mouseenter"||"onmouseenter"in document?q!="mouseleave"||"onmouseenter"in document?q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"):q="mouseout":q="mouseover");return OC(hJ,function(c){var Y=typeof c[4]==="boolean"&&c[4]==!!t,G=g.Yw(c[4])&&g.Yw(t)&&g.EC(c[4],t);return!!c.length&&c[0]==n&&c[1]==q&&c[2]==M&&(Y||G)})}; g.Wf=function(n,q,M,t){t=t===void 0?{}:t;if(!n||!n.addEventListener&&!n.attachEvent)return"";var c=$Aa(n,q,M,t);if(c)return c;c=++FRR.count+"";var Y=!(q!="mouseenter"&&q!="mouseleave"||!n.addEventListener||"onmouseenter"in document);var G=Y?function(k){k=new Eg(k);if(!SO(k.relatedTarget,function(b){return b==n},!0))return k.currentTarget=n,k.type=q,M.call(n,k)}:function(k){k=new Eg(k); k.currentTarget=n;return M.call(n,k)}; G=g.Jo(G);n.addEventListener?(q=="mouseenter"&&Y?q="mouseover":q=="mouseleave"&&Y?q="mouseout":q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"),ZYj()||typeof t==="boolean"?n.addEventListener(q,G,t):n.addEventListener(q,G,!!t.capture)):n.attachEvent("on"+q,G);hJ[c]=[n,q,M,G,t];return c}; RMU=function(n){return amd(n,function(q){return g.qN(q,"ytp-ad-has-logging-urls")})}; amd=function(n,q){var M=document.body||document;return g.Wf(M,"click",function(t){var c=SO(t.target,function(Y){return Y===M||q(Y)},!0); c&&c!==M&&!c.disabled&&(t.currentTarget=c,n.call(c,t))})}; g.y9=function(n){n&&(typeof n=="string"&&(n=[n]),g.xw(n,function(q){if(q in hJ){var M=hJ[q],t=M[0],c=M[1],Y=M[3];M=M[4];t.removeEventListener?ZYj()||typeof M==="boolean"?t.removeEventListener(c,Y,M):t.removeEventListener(c,Y,!!M.capture):t.detachEvent&&t.detachEvent("on"+c,Y);delete hJ[q]}}))}; sg=function(n){for(var q in hJ)hJ[q][0]==n&&g.y9(q)}; XY=function(n){n=n||window.event;var q;n.composedPath&&typeof n.composedPath==="function"?q=n.composedPath():q=n.path;q&&q.length?n=q[0]:(n=n||window.event,n=n.target||n.srcElement,n.nodeType==3&&(n=n.parentNode));return n}; jo=function(n){this.N=n;this.X=null;this.J=0;this.C=null;this.S=0;this.W=[];for(n=0;n<4;n++)this.W.push(0);this.Z=0;this.RL=g.Wf(window,"mousemove",(0,g.bn)(this.U,this));this.B=g.dO((0,g.bn)(this.xl,this),25)}; So=function(n){g.F.call(this);this.N=[];this.uG=n||this}; IE=function(n,q,M,t){for(var c=0;c0?M:0;M=t?Date.now()+t*1E3:0;if((t=t?(0,g.Hf)():LL())&&window.JSON){typeof q!=="string"&&(q=JSON.stringify(q,void 0));try{t.set(n,q,M)}catch(c){t.remove(n)}}}; g.vf=function(n){var q=LL(),M=(0,g.Hf)();if(!q&&!M||!window.JSON)return null;try{var t=q.get(n)}catch(c){}if(typeof t!=="string")try{t=M.get(n)}catch(c){}if(typeof t!=="string")return null;try{t=JSON.parse(t,void 0)}catch(c){}return t}; w2s=function(){var n=(0,g.Hf)();if(n&&(n=n.W("yt-player-quality")))return n.creation}; g.TJ=function(n){try{var q=LL(),M=(0,g.Hf)();q&&q.remove(n);M&&M.remove(n)}catch(t){}}; g.lJ=function(){return g.vf("yt-remote-session-screen-id")}; zMs=function(n){var q=this;this.W=void 0;this.X=!1;n.addEventListener("beforeinstallprompt",function(M){M.preventDefault();q.W=M}); n.addEventListener("appinstalled",function(){q.X=!0},{once:!0})}; Ug=function(){if(!g.pa.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.pa.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.pa.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.pa.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.pa.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(n){return"WEB_DISPLAY_MODE_UNKNOWN"}}; uJ=function(){this.u3=!0}; JQs=function(){uJ.instance||(uJ.instance=new uJ);return uJ.instance}; VPk=function(n){switch(n){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}}; C$J=function(){this.X=g.RZ("ALT_PREF_COOKIE_NAME","PREF");this.W=g.RZ("ALT_PREF_COOKIE_DOMAIN","youtube.com");var n=g.UH(this.X);n&&this.parse(n)}; g.D1=function(){Bf||(Bf=new C$J);return Bf}; mA=function(n,q){var M="f"+(Math.floor(n/31)+1);n=1<0;)switch(n=c6.shift(),n.type){case "ERROR":qH.Vh(n.payload);break;case "EVENT":qH.logEvent(n.eventType,n.payload)}}; GY=function(n){Yc||(qH?qH.Vh(n):(c6.push({type:"ERROR",payload:n}),c6.length>10&&c6.shift()))}; KM=function(n,q){Yc||(qH?qH.logEvent(n,q):(c6.push({type:"EVENT",eventType:n,payload:q}),c6.length>10&&c6.shift()))}; kc=function(n){if(n.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; bQ=function(n){return n.substr(0,n.indexOf(":"))||n}; g.dz=function(n,q,M,t,c){q=q===void 0?{}:q;M=M===void 0?twu[n]:M;t=t===void 0?cdf[n]:t;c=c===void 0?Y$j[n]:c;g.aE.call(this,M,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:n},q));this.type=n;this.message=M;this.level=t;this.X=c;Object.setPrototypeOf(this,g.dz.prototype)}; NH=function(n,q){g.dz.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:q,foundObjectStores:n},twu.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,NH.prototype)}; Ol=function(n,q){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.index=n;this.objectStore=q;Object.setPrototypeOf(this,Ol.prototype)}; et=function(n,q,M,t){q=bQ(q);var c=n instanceof Error?n:Error("Unexpected error: "+n);if(c instanceof g.dz)return c;n={objectStoreNames:M,dbName:q,dbVersion:t};if(c.name==="QuotaExceededError")return new g.dz("QUOTA_EXCEEDED",n);if(g.gz&&c.name==="UnknownError")return new g.dz("QUOTA_MAYBE_EXCEEDED",n);if(c instanceof Ol)return new g.dz("MISSING_INDEX",Object.assign({},n,{objectStore:c.objectStore,index:c.index}));if(c.name==="InvalidStateError"&&Gwk.some(function(Y){return c.message.includes(Y)}))return new g.dz("EXECUTE_TRANSACTION_ON_CLOSED_DB", n); if(c.name==="AbortError")return new g.dz("UNKNOWN_ABORT",n,c.message);c.args=[Object.assign({},n,{name:"IdbError",DL:c.name})];c.level="WARNING";return c}; g.El=function(n,q,M){var t=nM();return new g.dz("IDB_NOT_SUPPORTED",{context:{caller:n,publicName:q,version:M,hasSucceededOnce:t==null?void 0:t.hasSucceededOnce}})}; KXd=function(n){if(!n)throw Error();throw n;}; kwJ=function(n){return n}; hx=function(n){this.X=n}; g.W6=function(n){function q(c){if(t.state.status==="PENDING"){t.state={status:"REJECTED",reason:c};c=g.S(t.W);for(var Y=c.next();!Y.done;Y=c.next())Y=Y.value,Y()}} function M(c){if(t.state.status==="PENDING"){t.state={status:"FULFILLED",value:c};c=g.S(t.X);for(var Y=c.next();!Y.done;Y=c.next())Y=Y.value,Y()}} var t=this;this.state={status:"PENDING"};this.X=[];this.W=[];n=n.X;try{n(M,q)}catch(c){q(c)}}; bOj=function(n,q,M,t,c){try{if(n.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var Y=M(n.state.value);Y instanceof g.W6?yW(n,q,Y,t,c):t(Y)}catch(G){c(G)}}; dbC=function(n,q,M,t,c){try{if(n.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var Y=M(n.state.reason);Y instanceof g.W6?yW(n,q,Y,t,c):t(Y)}catch(G){c(G)}}; yW=function(n,q,M,t,c){q===M?c(new TypeError("Circular promise chain detected.")):M.then(function(Y){Y instanceof g.W6?yW(n,q,Y,t,c):t(Y)},function(Y){c(Y)})}; NEd=function(n,q,M){function t(){M(n.error);Y()} function c(){q(n.result);Y()} function Y(){try{n.removeEventListener("success",c),n.removeEventListener("error",t)}catch(G){}} n.addEventListener("success",c);n.addEventListener("error",t)}; OOa=function(n){return new Promise(function(q,M){NEd(n,q,M)})}; sl=function(n){return new g.W6(new hx(function(q,M){NEd(n,q,M)}))}; X0=function(n,q){return new g.W6(new hx(function(M,t){function c(){var Y=n?q(n):null;Y?Y.then(function(G){n=G;c()},t):M()} c()}))}; gDf=function(n,q){this.request=n;this.cursor=q}; eBa=function(n){return sl(n).then(function(q){return q?new gDf(n,q):null})}; g.ED1=function(n){n.cursor.continue(void 0);return eBa(n.request)}; hBC=function(n,q){this.X=n;this.options=q;this.transactionCount=0;this.Z=Math.round((0,g.jt)());this.W=!1}; St=function(){return g.EH("idb_immediate_commit")}; g.fM=function(n,q,M){n=n.X.createObjectStore(q,M);return new Ia(n)}; H6=function(n,q){n.X.objectStoreNames.contains(q)&&n.X.deleteObjectStore(q)}; g.v6=function(n,q,M){return g.LM(n,[q],{mode:"readwrite",fd:!0,commit:St()},function(t){return g.P6(t.objectStore(q),M)})}; g.LM=function(n,q,M,t){var c,Y,G,k,b,d,N,O,e,E,h,I;return g.u(function(L){switch(L.X){case 1:var T={mode:"readonly",fd:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof M==="string"?T.mode=M:Object.assign(T,M);c=T;n.transactionCount++;Y=c.fd?3:1;G=0;case 2:if(k){L.Fy(4);break}G++;b=Math.round((0,g.jt)());g.Ij(L,5);d=n.X.transaction(q,c.mode);T=!!c.commit;var v=new TY(d);T=WXm(v,t,T);return g.U(L,T,7);case 7:return N=L.W,O=Math.round((0,g.jt)()),ydU(n,b,O,G,void 0,q.join(),c),L.return(N);case 5:e=g.TU(L); E=Math.round((0,g.jt)());h=et(e,n.X.name,q.join(),n.X.version);if((I=h instanceof g.dz&&!h.X)||G>=Y)ydU(n,b,E,G,h,q.join(),c),k=h;L.Fy(2);break;case 4:return L.return(Promise.reject(k))}})}; ydU=function(n,q,M,t,c,Y,G){q=M-q;c?(c instanceof g.dz&&(c.type==="QUOTA_EXCEEDED"||c.type==="QUOTA_MAYBE_EXCEEDED")&&KM("QUOTA_EXCEEDED",{dbName:bQ(n.X.name),objectStoreNames:Y,transactionCount:n.transactionCount,transactionMode:G.mode}),c instanceof g.dz&&c.type==="UNKNOWN_ABORT"&&(M-=n.Z,M<0&&M>=2147483648&&(M=0),KM("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:Y,transactionDuration:q,transactionCount:n.transactionCount,dbDuration:M}),n.W=!0),sD_(n,!1,t,Y,q,G.tag),GY(c)):sD_(n,!0,t,Y,q, G.tag)}; sD_=function(n,q,M,t,c,Y){KM("TRANSACTION_ENDED",{objectStoreNames:t,connectionHasUnknownAbortedTransaction:n.W,duration:c,isSuccessful:q,tryCount:M,tag:Y===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":Y})}; Ia=function(n){this.X=n}; g.lQ=function(n,q,M){n.X.createIndex(q,M,{unique:!1})}; XCC=function(n,q){return g.Ul(n,{query:q},function(M){return M.delete().then(function(){return g.uQ(M)})}).then(function(){})}; jDs=function(n,q,M){var t=[];return g.Ul(n,{query:q},function(c){if(!(M!==void 0&&t.length>=M))return t.push(c.getValue()),g.uQ(c)}).then(function(){return t})}; IDm=function(n){return"getAllKeys"in IDBObjectStore.prototype?sl(n.X.getAllKeys(void 0,void 0)):S$m(n)}; S$m=function(n){var q=[];return g.fDJ(n,{query:void 0},function(M){q.push(M.cursor.primaryKey);return g.ED1(M)}).then(function(){return q})}; g.P6=function(n,q,M){return sl(n.X.put(q,M))}; g.Ul=function(n,q,M){n=n.X.openCursor(q.query,q.direction);return B6(n).then(function(t){return X0(t,M)})}; g.fDJ=function(n,q,M){var t=q.query;q=q.direction;n="openKeyCursor"in IDBObjectStore.prototype?n.X.openKeyCursor(t,q):n.X.openCursor(t,q);return eBa(n).then(function(c){return X0(c,M)})}; TY=function(n){var q=this;this.X=n;this.Z=new Map;this.W=!1;this.done=new Promise(function(M,t){q.X.addEventListener("complete",function(){M()}); q.X.addEventListener("error",function(c){c.currentTarget===c.target&&t(q.X.error)}); q.X.addEventListener("abort",function(){var c=q.X.error;if(c)t(c);else if(!q.W){c=g.dz;for(var Y=q.X.objectStoreNames,G=[],k=0;k=M))return t.push(c.getValue()),g.uQ(c)}).then(function(){return t})}; g.Dg=function(n,q,M){n=n.X.openCursor(q.query===void 0?null:q.query,q.direction===void 0?"next":q.direction);return B6(n).then(function(t){return X0(t,M)})}; Ax=function(n,q){this.request=n;this.cursor=q}; B6=function(n){return sl(n).then(function(q){return q?new Ax(n,q):null})}; g.uQ=function(n){n.cursor.continue(void 0);return B6(n.request)}; PM1=function(n,q,M){return new Promise(function(t,c){function Y(){e||(e=new hBC(G.result,{closed:O}));return e} var G=q!==void 0?self.indexedDB.open(n,q):self.indexedDB.open(n);var k=M.blocked,b=M.blocking,d=M.uXs,N=M.upgrade,O=M.closed,e;G.addEventListener("upgradeneeded",function(E){try{if(E.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(G.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");E.dataLoss&&E.dataLoss!=="none"&&KM("IDB_DATA_CORRUPTED",{reason:E.dataLossMessage||"unknown reason",dbName:bQ(n)});var h=Y(),I=new TY(G.transaction); N&&N(h,function(L){return E.oldVersion=L},I); I.done.catch(function(L){c(L)})}catch(L){c(L)}}); G.addEventListener("success",function(){var E=G.result;b&&E.addEventListener("versionchange",function(){b(Y())}); E.addEventListener("close",function(){KM("IDB_UNEXPECTEDLY_CLOSED",{dbName:bQ(n),dbVersion:E.version});d&&d()}); t(Y())}); G.addEventListener("error",function(){c(G.error)}); k&&G.addEventListener("blocked",function(){k()})})}; vDs=function(n,q,M){M=M===void 0?{}:M;return PM1(n,q,M)}; mu=function(n,q){q=q===void 0?{}:q;var M,t,c,Y;return g.u(function(G){if(G.X==1)return g.Ij(G,2),M=self.indexedDB.deleteDatabase(n),t=q,(c=t.blocked)&&M.addEventListener("blocked",function(){c()}),g.U(G,OOa(M),4); if(G.X!=2)return g.vd(G,0);Y=g.TU(G);throw et(Y,n,"",-1);})}; $c=function(n,q){this.name=n;this.options=q;this.Z=!0;this.S=this.J=0}; TEs=function(n,q){return new g.dz("INCOMPATIBLE_DB_VERSION",{dbName:n.name,oldVersion:n.options.version,newVersion:q})}; g.F0=function(n,q){if(!q)throw g.El("openWithToken",bQ(n.name));return n.open()}; lDf=function(n,q){var M;return g.u(function(t){if(t.X==1)return g.U(t,g.F0(Zg,q),2);M=t.W;return t.return(g.LM(M,["databases"],{fd:!0,mode:"readwrite"},function(c){var Y=c.objectStore("databases");return Y.get(n.actualName).then(function(G){if(G?n.actualName!==G.actualName||n.publicName!==G.publicName||n.userIdentifier!==G.userIdentifier:1)return g.P6(Y,n).then(function(){})})}))})}; aa=function(n,q){var M;return g.u(function(t){if(t.X==1)return n?g.U(t,g.F0(Zg,q),2):t.return();M=t.W;return t.return(M.delete("databases",n))})}; UbC=function(n,q){var M,t;return g.u(function(c){return c.X==1?(M=[],g.U(c,g.F0(Zg,q),2)):c.X!=3?(t=c.W,g.U(c,g.LM(t,["databases"],{fd:!0,mode:"readonly"},function(Y){M.length=0;return g.Ul(Y.objectStore("databases"),{},function(G){n(G.getValue())&&M.push(G.getValue());return g.uQ(G)})}),3)):c.return(M)})}; uWd=function(n,q){return UbC(function(M){return M.publicName===n&&M.userIdentifier!==void 0},q)}; BEU=function(){var n,q,M,t;return g.u(function(c){switch(c.X){case 1:n=nM();if((q=n)==null?0:q.hasSucceededOnce)return c.return(!0);if(Ra&&oN()&&!wO()||g.oa)return c.return(!1);try{if(M=self,!(M.indexedDB&&M.IDBIndex&&M.IDBKeyRange&&M.IDBObjectStore))return c.return(!1)}catch(Y){return c.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return c.return(!1);g.Ij(c,2);t={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.U(c,lDf(t,wz),4);case 4:return g.U(c,aa("yt-idb-test-do-not-use",wz),5);case 5:return c.return(!0);case 2:return g.TU(c),c.return(!1)}})}; Db1=function(){if(zY!==void 0)return zY;Yc=!0;return zY=BEU().then(function(n){Yc=!1;var q;if((q=pL())!=null&&q.X){var M;q={hasSucceededOnce:((M=nM())==null?void 0:M.hasSucceededOnce)||n};var t;(t=pL())==null||t.set("LAST_RESULT_ENTRY_KEY",q,2592E3,!0)}return n})}; Jx=function(){return g.qD("ytglobal.idbToken_")||void 0}; g.VW=function(){var n=Jx();return n?Promise.resolve(n):Db1().then(function(q){(q=q?wz:void 0)&&g.nQ("ytglobal.idbToken_",q);return q})}; Adk=function(n){if(!g.oE())throw n=new g.dz("AUTH_INVALID",{dbName:n}),GY(n),n;var q=g.RE();return{actualName:n+":"+q,publicName:n,userIdentifier:q}}; mbu=function(n,q,M,t){var c,Y,G,k,b,d;return g.u(function(N){switch(N.X){case 1:return Y=(c=Error().stack)!=null?c:"",g.U(N,g.VW(),2);case 2:G=N.W;if(!G)throw k=g.El("openDbImpl",n,q),g.EH("ytidb_async_stack_killswitch")||(k.stack=k.stack+"\n"+Y.substring(Y.indexOf("\n")+1)),GY(k),k;kc(n);b=M?{actualName:n,publicName:n,userIdentifier:void 0}:Adk(n);g.Ij(N,3);return g.U(N,lDf(b,G),5);case 5:return g.U(N,vDs(b.actualName,q,t),6);case 6:return N.return(N.W);case 3:return d=g.TU(N),g.Ij(N,7),g.U(N,aa(b.actualName, G),9);case 9:g.vd(N,8);break;case 7:g.TU(N);case 8:throw d;}})}; $bd=function(n,q,M){M=M===void 0?{}:M;return mbu(n,q,!1,M)}; FXs=function(n,q,M){M=M===void 0?{}:M;return mbu(n,q,!0,M)}; ZOs=function(n,q){q=q===void 0?{}:q;var M,t;return g.u(function(c){if(c.X==1)return g.U(c,g.VW(),2);if(c.X!=3){M=c.W;if(!M)return c.return();kc(n);t=Adk(n);return g.U(c,mu(t.actualName,q),3)}return g.U(c,aa(t.actualName,M),0)})}; aDk=function(n,q,M){n=n.map(function(t){return g.u(function(c){return c.X==1?g.U(c,mu(t.actualName,q),2):g.U(c,aa(t.actualName,M),0)})}); return Promise.all(n).then(function(){})}; RBU=function(n){var q=q===void 0?{}:q;var M,t;return g.u(function(c){if(c.X==1)return g.U(c,g.VW(),2);if(c.X!=3){M=c.W;if(!M)return c.return();kc(n);return g.U(c,uWd(n,M),3)}t=c.W;return g.U(c,aDk(t,q,M),0)})}; oDU=function(n,q){q=q===void 0?{}:q;var M;return g.u(function(t){if(t.X==1)return g.U(t,g.VW(),2);if(t.X!=3){M=t.W;if(!M)return t.return();kc(n);return g.U(t,mu(n,q),3)}return g.U(t,aa(n,M),0)})}; CM=function(n,q){$c.call(this,n,q);this.options=q;kc(n)}; wC_=function(n,q){var M;return function(){M||(M=new CM(n,q));return M}}; g.rz=function(n,q){return wC_(n,q)}; xc=function(n){return g.F0(zBa(),n)}; JdU=function(n,q,M,t){var c,Y,G;return g.u(function(k){switch(k.X){case 1:return c={config:n,hashData:q,timestamp:t!==void 0?t:(0,g.jt)()},g.U(k,xc(M),2);case 2:return Y=k.W,g.U(k,Y.clear("hotConfigStore"),3);case 3:return g.U(k,g.v6(Y,"hotConfigStore",c),4);case 4:return G=k.W,k.return(G)}})}; Vwu=function(n,q,M,t,c){var Y,G,k;return g.u(function(b){switch(b.X){case 1:return Y={config:n,hashData:q,configData:M,timestamp:c!==void 0?c:(0,g.jt)()},g.U(b,xc(t),2);case 2:return G=b.W,g.U(b,G.clear("coldConfigStore"),3);case 3:return g.U(b,g.v6(G,"coldConfigStore",Y),4);case 4:return k=b.W,b.return(k)}})}; CMf=function(n){var q,M;return g.u(function(t){return t.X==1?g.U(t,xc(n),2):t.X!=3?(q=t.W,M=void 0,g.U(t,g.LM(q,["coldConfigStore"],{mode:"readwrite",fd:!0},function(c){return g.Dg(c.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(Y){M=Y.getValue()})}),3)):t.return(M)})}; rdd=function(n){var q,M;return g.u(function(t){return t.X==1?g.U(t,xc(n),2):t.X!=3?(q=t.W,M=void 0,g.U(t,g.LM(q,["hotConfigStore"],{mode:"readwrite",fd:!0},function(c){return g.Dg(c.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(Y){M=Y.getValue()})}),3)):t.return(M)})}; xb1=function(){return g.u(function(n){return g.U(n,RBU("ytGcfConfig"),0)})}; QW=function(){g.F.call(this);this.W=[];this.X=[];var n=g.qD("yt.gcf.config.hotUpdateCallbacks");n?(this.W=[].concat(g.EJ(n)),this.X=n):(this.X=[],g.nQ("yt.gcf.config.hotUpdateCallbacks",this.X))}; tW=function(){var n=this;this.S=!1;this.Z=this.J=0;this.C=new QW;this.vg={UZL:function(){n.S=!0}, ezx:function(){return n.X}, vEy:function(q){pM(n,q)}, tf:function(q){n.tf(q)}, EEb:function(q){nE(n,q)}, oB:function(){return n.coldHashData}, NC:function(){return n.hotHashData}, wUg:function(){return n.W}, QKt:function(){return q2()}, xZ1:function(){return M2()}, MQx:function(){return g.qD("yt.gcf.config.coldHashData")}, XUd:function(){return g.qD("yt.gcf.config.hotHashData")}, dYg:function(){QDC(n)}, siJ:function(){n.tf(void 0);ix(n);delete tW.instance}, BRm:function(q){n.Z=q}, czt:function(){return n.Z}}}; pCU=function(){if(!tW.instance){var n=new tW;tW.instance=n}return tW.instance}; MAu=function(n){var q;g.u(function(M){if(M.X==1)return g.EH("start_client_gcf")||g.EH("delete_gcf_config_db")?g.EH("start_client_gcf")?g.U(M,g.VW(),3):M.Fy(2):M.return();M.X!=2&&((q=M.W)&&g.oE()&&!g.EH("delete_gcf_config_db")?(n.S=!0,QDC(n)):(nia(n),qXC(n)));return g.EH("delete_gcf_config_db")?g.U(M,xb1(),0):M.Fy(0)})}; Gq=function(){var n;return(n=M2())!=null?n:g.RZ("RAW_HOT_CONFIG_GROUP")}; i4k=function(n){var q,M,t,c,Y,G;return g.u(function(k){switch(k.X){case 1:if(n.W)return k.return(M2());if(!n.S)return q=g.El("getHotConfig IDB not initialized"),V8(q),k.return(Promise.reject(q));M=Jx();t=g.RZ("TIME_CREATED_MS");if(!M){c=g.El("getHotConfig token error");V8(c);k.Fy(2);break}return g.U(k,rdd(M),3);case 3:if((Y=k.W)&&Y.timestamp>t)return pM(n,Y.config),n.tf(Y.hashData),k.return(M2());case 2:qXC(n);if(!(M&&n.W&&n.hotHashData)){k.Fy(4);break}return g.U(k,JdU(n.W,n.hotHashData,M,t),4);case 4:return n.W? k.return(M2()):(G=new g.aE("Config not available in ytConfig"),V8(G),k.return(Promise.reject(G)))}})}; csd=function(n){var q,M,t,c,Y,G;return g.u(function(k){switch(k.X){case 1:if(n.X)return k.return(q2());if(!n.S)return q=g.El("getColdConfig IDB not initialized"),V8(q),k.return(Promise.reject(q));M=Jx();t=g.RZ("TIME_CREATED_MS");if(!M){c=g.El("getColdConfig");V8(c);k.Fy(2);break}return g.U(k,CMf(M),3);case 3:if((Y=k.W)&&Y.timestamp>t)return nE(n,Y.config),tAj(n,Y.configData),ix(n,Y.hashData),k.return(q2());case 2:nia(n);if(!(M&&n.X&&n.coldHashData&&n.configData)){k.Fy(4);break}return g.U(k,Vwu(n.X, n.coldHashData,n.configData,M,t),4);case 4:return n.X?k.return(q2()):(G=new g.aE("Config not available in ytConfig"),V8(G),k.return(Promise.reject(G)))}})}; QDC=function(n){if(!n.W||!n.X){if(!Jx()){var q=g.El("scheduleGetConfigs");V8(q)}n.J||(n.J=g.$D.yP(function(){return g.u(function(M){switch(M.X){case 1:return g.Ij(M,2),g.U(M,i4k(n),4);case 4:g.vd(M,3);break;case 2:g.TU(M);case 3:return g.Ij(M,5),g.U(M,csd(n),7);case 7:g.vd(M,6);break;case 5:g.TU(M);case 6:n.J&&(n.J=0),g.Sk(M)}})},100))}}; YXu=function(n,q,M){var t,c,Y;return g.u(function(G){switch(G.X){case 1:if(!g.EH("start_client_gcf")){G.Fy(0);break}M&&pM(n,M);n.tf(q);t=Jx();if(!t){G.Fy(3);break}if(M){G.Fy(4);break}return g.U(G,rdd(t),5);case 5:c=G.W,M=(Y=c)==null?void 0:Y.config;case 4:return g.U(G,JdU(M,q,t),3);case 3:if(M)for(var k=M,b=g.S(n.C.X),d=b.next();!d.done;d=b.next())d=d.value,d(k);g.Sk(G)}})}; GSJ=function(n,q,M){var t,c,Y,G;return g.u(function(k){if(k.X==1){if(!g.EH("start_client_gcf"))return k.Fy(0);ix(n,q);return(t=Jx())?M?k.Fy(4):g.U(k,CMf(t),5):k.Fy(0)}k.X!=4&&(c=k.W,M=(Y=c)==null?void 0:Y.config);if(!M)return k.Fy(0);G=M.configData;return g.U(k,Vwu(M,q,G,t),0)})}; Kvf=function(){var n=pCU(),q=(0,g.jt)()-n.Z;if(!(n.Z!==0&&q0&&(q.request={internalExperimentFlags:M});b4a(n,void 0,q);dNm(void 0,q);NYs(void 0,q);O4j(n,void 0,q);gia(void 0,q);g.EH("start_client_gcf")&&eQ1(void 0,q);g.RZ("DELEGATED_SESSION_ID")&& !g.EH("pageid_as_header_web")&&(q.user={onBehalfOfUser:g.RZ("DELEGATED_SESSION_ID")});!g.EH("fill_delegate_context_in_gel_killswitch")&&(n=g.RZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(q.user=Object.assign({},q.user,{serializedDelegationContext:n}));n=g.RZ("INNERTUBE_CONTEXT");var t;if(g.EH("enable_persistent_device_token")&&(n==null?0:(t=n.client)==null?0:t.rolloutToken)){var c;q.client.rolloutToken=n==null?void 0:(c=n.client)==null?void 0:c.rolloutToken}t=Object;c=t.assign;n=q.client; M={};for(var Y=g.S(Object.entries(xd(g.RZ("DEVICE","")))),G=Y.next();!G.done;G=Y.next()){var k=g.S(G.value);G=k.next().value;k=k.next().value;G==="cbrand"?M.deviceMake=k:G==="cmodel"?M.deviceModel=k:G==="cbr"?M.browserName=k:G==="cbrver"?M.browserVersion=k:G==="cos"?M.osName=k:G==="cosver"?M.osVersion=k:G==="cplatform"&&(M.platform=k)}q.client=c.call(t,n,M);return q}; b4a=function(n,q,M){n=n.nB;if(n==="WEB"||n==="MWEB"||n===1||n===2)if(q){M=IP(q,SU,96)||new SU;var t=Ug();t=Object.keys(Eid).indexOf(t);t=t===-1?null:t;t!==null&&$K(M,3,t);HW(q,SU,96,M)}else M&&(M.client.mainAppWebInfo=(t=M.client.mainAppWebInfo)!=null?t:{},M.client.mainAppWebInfo.webDisplayMode=Ug())}; dNm=function(n,q){var M=g.qD("yt.embedded_player.embed_url");M&&(n?(q=IP(n,PA,7)||new PA,Ar(q,4,M),HW(n,PA,7,q)):q&&(q.thirdParty={embedUrl:M}))}; NYs=function(n,q){var M;if(g.EH("web_log_memory_total_kbytes")&&((M=g.pa.navigator)==null?0:M.deviceMemory)){var t;M=(t=g.pa.navigator)==null?void 0:t.deviceMemory;n?MX(n,95,Il(M*1E6)):q&&(q.client.memoryTotalKbytes=""+M*1E6)}}; O4j=function(n,q,M){if(n.appInstallData)if(q){var t;M=(t=IP(q,jU,62))!=null?t:new jU;Ar(M,6,n.appInstallData);HW(q,jU,62,M)}else M&&(M.client.configInfo=M.client.configInfo||{},M.client.configInfo.appInstallData=n.appInstallData)}; gia=function(n,q){var M=p21();M&&(n?$K(n,61,hQf[M]):q&&(q.client.connectionType=M));g.EH("web_log_effective_connection_type")&&(M=q$s())&&(n?$K(n,94,Wvd[M]):q&&(q.client.effectiveConnectionType=M))}; ysf=function(n,q,M){M=M===void 0?{}:M;var t={};g.RZ("EOM_VISITOR_DATA")?t={"X-Goog-EOM-Visitor-Id":g.RZ("EOM_VISITOR_DATA")}:t={"X-Goog-Visitor-Id":M.visitorData||g.RZ("VISITOR_DATA","")};if(q&&q.includes("www.youtube-nocookie.com"))return t;q=M.zw||g.RZ("AUTHORIZATION");q||(n?q="Bearer "+g.qD("gapi.auth.getToken")().access_token:(n=JQs().CQ(bx),g.EH("pageid_as_header_web")||delete n["X-Goog-PageId"],t=Object.assign({},t,n)));q&&(t.Authorization=q);return t}; eQ1=function(n,q){var M=Kvf();if(M){var t=M.coldConfigData,c=M.coldHashData;M=M.hotHashData;if(n){var Y;q=(Y=IP(n,jU,62))!=null?Y:new jU;t=Ar(q,1,t);Ar(t,3,c).tf(M);HW(n,jU,62,q)}else q&&(q.client.configInfo=q.client.configInfo||{},t&&(q.client.configInfo.coldConfigData=t),c&&(q.client.configInfo.coldHashData=c),M&&(q.client.configInfo.hotHashData=M))}}; dw=function(n,q){this.version=n;this.args=q}; N2=function(n,q){this.topic=n;this.X=q}; gw=function(n,q){var M=OY();M&&M.publish.call(M,n.toString(),n,q)}; j71=function(n){var q=s7d,M=OY();if(!M)return 0;var t=M.subscribe(q.toString(),function(c,Y){var G=g.qD("ytPubsub2Pubsub2SkipSubKey");G&&G==t||(G=function(){if(e7[t])try{if(Y&&q instanceof N2&&q!=c)try{var k=q.X,b=Y;if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!k.gF){var d=new k;k.gF=d.version}var N=k.gF}catch(O){}if(!N||b.version!=N)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{Y=Reflect.construct(k, g.un(b.args))}catch(O){throw O.message="yt.pubsub2.Data.deserialize(): "+O.message,O;}}catch(O){throw O.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+q.toString()+": "+O.message,O;}n.call(window,Y)}catch(O){g.z7(O)}},XXm[q.toString()]?g.rF()?g.$D.yP(G):g.bl(G,0):G())}); e7[t]=!0;EY[q.toString()]||(EY[q.toString()]=[]);EY[q.toString()].push(t);return t}; fHU=function(){var n=SXJ,q=j71(function(M){n.apply(void 0,arguments);IH_(q)}); return q}; IH_=function(n){var q=OY();q&&(typeof n==="number"&&(n=[n]),g.xw(n,function(M){q.unsubscribeByKey(M);delete e7[M]}))}; OY=function(){return g.qD("ytPubsub2Pubsub2Instance")}; hW=function(n,q,M){M=M===void 0?{sampleRate:.1}:M;Math.random()lHm||G=DNs&&(LE++,g.EH("abandon_compression_after_N_slow_zips")?H9===g.hP("compression_disable_point")&&LE>Ask&&(S7=!1):S7=!1);mNd(q);t.headers||(t.headers={});t.headers["Content-Encoding"]="gzip";t.postBody=n;t.postParams=void 0;c(M,t)}; $N1=function(n){var q=q===void 0?!1:q;var M=M===void 0?!1:M;var t=(0,g.jt)(),c={startTime:t,ticks:{},infos:{}},Y=q?g.qD("yt.logging.gzipForFetch",!1):!0;if(S7&&Y){if(!n.body)return n;try{var G=M?n.body:typeof n.body==="string"?n.body:JSON.stringify(n.body);Y=G;if(!M&&typeof G==="string"){var k=TY_(G);if(k!=null&&(k>lHm||k=DNs)if(LE++,g.EH("abandon_compression_after_N_slow_zips")||g.EH("abandon_compression_after_N_slow_zips_lr")){q=LE/H9;var d=Ask/g.hP("compression_disable_point");H9>0&&H9%g.hP("compression_disable_point")===0&&q>=d&&(S7=!1)}else S7=!1;mNd(c)}}n.headers=Object.assign({},{"Content-Encoding":"gzip"},n.headers||{});n.body=Y;return n}catch(N){return V8(N),n}}else return n}; TY_=function(n){try{return(new Blob(n.split(""))).size}catch(q){return V8(q),null}}; mNd=function(n){g.EH("gel_compression_csi_killswitch")||!g.EH("log_gel_compression_latency")&&!g.EH("log_gel_compression_latency_lr")||hW("gel_compression",n,{sampleRate:.1})}; v9=function(n){var q=this;this.pZ=this.X=!1;this.potentialEsfErrorCounter=this.W=0;this.handleError=function(){}; this.ge=function(){}; this.now=Date.now;this.Iv=!1;this.vg={Uys:function(N){q.kB=N}, gHm:function(){q.jF()}, cq:function(){q.EJ()}, Jd:function(N){return g.u(function(O){return g.U(O,q.Jd(N),0)})}, pA:function(N,O){return q.pA(N,O)}, d1:function(){q.d1()}}; var M;this.JX=(M=n.JX)!=null?M:100;var t;this.Sk=(t=n.Sk)!=null?t:1;var c;this.uo=(c=n.uo)!=null?c:2592E6;var Y;this.k_=(Y=n.k_)!=null?Y:12E4;var G;this.aT=(G=n.aT)!=null?G:5E3;var k;this.kB=(k=n.kB)!=null?k:void 0;this.Ec=!!n.Ec;var b;this.q1=(b=n.q1)!=null?b:.1;var d;this.yn=(d=n.yn)!=null?d:10;n.handleError&&(this.handleError=n.handleError);n.ge&&(this.ge=n.ge);n.Iv&&(this.Iv=n.Iv);n.pZ&&(this.pZ=n.pZ);this.Hb=n.Hb;this.cw=n.cw;this.LT=n.LT;this.qj=n.qj;this.sendFn=n.sendFn;this.zG=n.zG;this.GB= n.GB;P9(this)&&(!this.Hb||this.Hb("networkless_logging"))&&Fvf(this)}; Fvf=function(n){P9(n)&&!n.Iv&&(n.X=!0,n.Ec&&Math.random()<=n.q1&&n.LT.Ru(n.kB),n.d1(),n.qj.nT()&&n.jF(),n.qj.listen(n.zG,n.jF.bind(n)),n.qj.listen(n.GB,n.EJ.bind(n)))}; RQk=function(n,q){if(!P9(n))throw Error("IndexedDB is not supported: updateRequestHandlers");var M=q.options.onError?q.options.onError:function(){}; q.options.onError=function(c,Y){var G,k,b,d;return g.u(function(N){switch(N.X){case 1:G=Z4f(Y);(k=aHk(Y))&&n.Hb&&n.Hb("web_enable_error_204")&&n.handleError(Error("Request failed due to compression"),q.url,Y);if(!(n.Hb&&n.Hb("nwl_consider_error_code")&&G||n.Hb&&!n.Hb("nwl_consider_error_code")&&n.potentialEsfErrorCounter<=n.yn)){N.Fy(2);break}if(!n.qj.fA){N.Fy(3);break}return g.U(N,n.qj.fA(),3);case 3:if(n.qj.nT()){N.Fy(2);break}M(c,Y);if(!n.Hb||!n.Hb("nwl_consider_error_code")||((b=q)==null?void 0: b.id)===void 0){N.Fy(6);break}return g.U(N,n.LT.kf(q.id,n.kB,!1),6);case 6:return N.return();case 2:if(n.Hb&&n.Hb("nwl_consider_error_code")&&!G&&n.potentialEsfErrorCounter>n.yn)return N.return();n.potentialEsfErrorCounter++;if(((d=q)==null?void 0:d.id)===void 0){N.Fy(8);break}return q.sendCount=400&&n<=599?!1:!0}; aHk=function(n){var q;n=n==null?void 0:(q=n.error)==null?void 0:q.code;return!(n!==400&&n!==415)}; oif=function(){if(lx)return lx();var n={};lx=g.rz("LogsDatabaseV2",{IK:(n.LogsRequestsStore={nx:2},n),shared:!1,upgrade:function(q,M,t){M(2)&&g.fM(q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});M(3);M(5)&&(t=t.objectStore("LogsRequestsStore"),t.X.indexNames.contains("newRequest")&&t.X.deleteIndex("newRequest"),g.lQ(t,"newRequestV2",["status","interface","timestamp"]));M(7)&&H6(q,"sapisid");M(9)&&H6(q,"SWHealthLog")}, version:9});return lx()}; UY=function(n){return g.F0(oif(),n)}; zQC=function(n,q){var M,t,c,Y;return g.u(function(G){if(G.X==1)return M={startTime:(0,g.jt)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.U(G,UY(q),2);if(G.X!=3)return t=G.W,c=Object.assign({},n,{options:JSON.parse(JSON.stringify(n.options)),interface:g.RZ("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.U(G,g.v6(t,"LogsRequestsStore",c),3);Y=G.W;M.ticks.tc=(0,g.jt)();wXu(M);return G.return(Y)})}; Js1=function(n,q){var M,t,c,Y,G,k,b,d,N;return g.u(function(O){if(O.X==1)return M={startTime:(0,g.jt)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.U(O,UY(q),2);if(O.X!=3)return t=O.W,c=g.RZ("INNERTUBE_CONTEXT_CLIENT_NAME",0),Y=[n,c,0],G=[n,c,(0,g.jt)()],k=IDBKeyRange.bound(Y,G),b="prev",g.EH("use_fifo_for_networkless")&&(b="next"),d=void 0,N=n==="NEW"?"readwrite":"readonly",g.EH("use_readonly_for_get_most_recent_by_status_killswitch")&&(N="readwrite"),g.U(O,g.LM(t,["LogsRequestsStore"], {mode:N,fd:!0},function(e){return g.Dg(e.objectStore("LogsRequestsStore").index("newRequestV2"),{query:k,direction:b},function(E){E.getValue()&&(d=E.getValue(),n==="NEW"&&(d.status="QUEUED",E.update(d)))})}),3); M.ticks.tc=(0,g.jt)();wXu(M);return O.return(d)})}; VAC=function(n,q){var M;return g.u(function(t){if(t.X==1)return g.U(t,UY(q),2);M=t.W;return t.return(g.LM(M,["LogsRequestsStore"],{mode:"readwrite",fd:!0},function(c){var Y=c.objectStore("LogsRequestsStore");return Y.get(n).then(function(G){if(G)return G.status="QUEUED",g.P6(Y,G).then(function(){return G})})}))})}; CCu=function(n,q,M,t){M=M===void 0?!0:M;var c;return g.u(function(Y){if(Y.X==1)return g.U(Y,UY(q),2);c=Y.W;return Y.return(g.LM(c,["LogsRequestsStore"],{mode:"readwrite",fd:!0},function(G){var k=G.objectStore("LogsRequestsStore");return k.get(n).then(function(b){return b?(b.status="NEW",M&&(b.sendCount+=1),t!==void 0&&(b.options.compress=t),g.P6(k,b).then(function(){return b})):g.W6.resolve(void 0)})}))})}; rsJ=function(n,q){var M;return g.u(function(t){if(t.X==1)return g.U(t,UY(q),2);M=t.W;return t.return(M.delete("LogsRequestsStore",n))})}; xNa=function(n){var q,M;return g.u(function(t){if(t.X==1)return g.U(t,UY(n),2);q=t.W;M=(0,g.jt)()-2592E6;return g.U(t,g.LM(q,["LogsRequestsStore"],{mode:"readwrite",fd:!0},function(c){return g.Ul(c.objectStore("LogsRequestsStore"),{},function(Y){if(Y.getValue().timestamp<=M)return Y.delete().then(function(){return g.uQ(Y)})})}),0)})}; Q7s=function(){g.u(function(n){return g.U(n,RBU("LogsDatabaseV2"),0)})}; wXu=function(n){g.EH("nwl_csi_killswitch")||hW("networkless_performance",n,{sampleRate:1})}; ndu=function(n){return g.F0(pXd(),n)}; qkd=function(n){var q,M;g.u(function(t){if(t.X==1)return g.U(t,ndu(n),2);q=t.W;M=(0,g.jt)()-2592E6;return g.U(t,g.LM(q,["SWHealthLog"],{mode:"readwrite",fd:!0},function(c){return g.Ul(c.objectStore("SWHealthLog"),{},function(Y){if(Y.getValue().timestamp<=M)return Y.delete().then(function(){return g.uQ(Y)})})}),0)})}; MUR=function(n){var q;return g.u(function(M){if(M.X==1)return g.U(M,ndu(n),2);q=M.W;return g.U(M,q.clear("SWHealthLog"),0)})}; g.ux=function(n,q,M,t,c,Y,G){c=c===void 0?"":c;Y=Y===void 0?!1:Y;G=G===void 0?!1:G;if(n)if(M&&!g.Z_())V8(new g.aE("Legacy referrer-scrubbed ping detected")),n&&irk(n,void 0,{scrubReferrer:!0});else if(c)sH(n,q,"POST",c,t);else if(g.RZ("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||t||G)sH(n,q,"GET","",t,void 0,Y,G);else{b:{try{c:{var k=new XZf({url:n});if(k.X.dsh==="1")var b=null;else{var d=k.X.ae;if(d==="1"){var N=k.X.adurl;if(N)try{b={version:3,Y1:decodeURIComponent(N),yB:Cq(k.W,"act=1","ri=1",jxC(k))}; break c}catch(E){}}b=d==="2"?{version:4,Y1:Cq(k.W,"dct=1","suid="+k.Z,""),yB:Cq(k.W,"act=1","ri=1","suid="+k.Z)}:null}}if(b){var O=d$(n);var e=!(!O||!O.endsWith("/aclk")||jy(n,"ri")!=="1");break b}}catch(E){}e=!1}e?tUm(n)?(q&&q(),M=!0):M=!1:M=!1;M||irk(n,q)}}; tUm=function(n,q){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(n,q===void 0?"":q))return!0}catch(M){}return!1}; irk=function(n,q,M){M=M===void 0?{}:M;var t=new Image,c=""+cod++;B9[c]=t;t.onload=t.onerror=function(){q&&B9[c]&&q();delete B9[c]}; M.scrubReferrer&&(t.referrerPolicy="no-referrer");t.src=n}; YkC=function(n){var q;return((q=document.featurePolicy)==null?0:q.allowedFeatures().includes("attribution-reporting"))?n+"&nis=6":n+"&nis=5"}; AW=function(){DE||(DE=new Q9("yt.offline"));return DE}; G7k=function(n){if(g.EH("offline_error_handling")){var q=AW().get("errors",!0)||{};q[n.message]={name:n.name,stack:n.stack};n.level&&(q[n.message].level=n.level);AW().set("errors",q,2592E3,!0)}}; m8=function(){this.X=new Map;this.W=!1}; $T=function(){if(!m8.instance){var n=g.qD("yt.networkRequestMonitor.instance")||new m8;g.nQ("yt.networkRequestMonitor.instance",n);m8.instance=n}return m8.instance}; Ft=function(){g.Ne.call(this);var n=this;this.W=!1;this.X=ytm();this.X.listen("networkstatus-online",function(){if(n.W&&g.EH("offline_error_handling")){var q=AW().get("errors",!0);if(q){for(var M in q)if(q[M]){var t=new g.aE(M,"sent via offline_errors");t.name=q[M].name;t.stack=q[M].stack;t.level=q[M].level;g.z7(t)}AW().set("errors",{},2592E3,!0)}}})}; K7R=function(){if(!Ft.instance){var n=g.qD("yt.networkStatusManager.instance")||new Ft;g.nQ("yt.networkStatusManager.instance",n);Ft.instance=n}return Ft.instance}; g.ZE=function(n){n=n===void 0?{}:n;g.Ne.call(this);var q=this;this.X=this.J=0;this.W=K7R();var M=g.qD("yt.networkStatusManager.instance.listen").bind(this.W);M&&(n.rateLimit?(this.rateLimit=n.rateLimit,M("networkstatus-online",function(){k7d(q,"publicytnetworkstatus-online")}),M("networkstatus-offline",function(){k7d(q,"publicytnetworkstatus-offline")})):(M("networkstatus-online",function(){q.dispatchEvent("publicytnetworkstatus-online")}),M("networkstatus-offline",function(){q.dispatchEvent("publicytnetworkstatus-offline")})))}; k7d=function(n,q){n.rateLimit?n.X?(g.$D.gT(n.J),n.J=g.$D.yP(function(){n.Z!==q&&(n.dispatchEvent(q),n.Z=q,n.X=(0,g.jt)())},n.rateLimit-((0,g.jt)()-n.X))):(n.dispatchEvent(q),n.Z=q,n.X=(0,g.jt)()):n.dispatchEvent(q)}; Rk=function(){var n=v9.call;ak||(ak=new g.ZE({wJt:!0,IMl:!0}));n.call(v9,this,{LT:{Ru:xNa,Yd:rsJ,nN:Js1,Ptd:VAC,kf:CCu,set:zQC},qj:ak,handleError:function(q,M,t){var c,Y=t==null?void 0:(c=t.error)==null?void 0:c.code;if(Y===400||Y===415){var G;q=new g.aE(q.message,M,t==null?void 0:(G=t.error)==null?void 0:G.code);V8(q,void 0,void 0,void 0,!0)}else g.z7(q)}, ge:V8,sendFn:bru,now:g.jt,wv:G7k,cw:g.CL(),zG:"publicytnetworkstatus-online",GB:"publicytnetworkstatus-offline",Ec:!0,q1:.1,yn:g.hP("potential_esf_error_limit",10),Hb:g.EH,Iv:!(g.oE()&&g.bm(document.location.toString())!=="www.youtube-nocookie.com")});this.Z=new g.NA;g.EH("networkless_immediately_drop_all_requests")&&Q7s();oDU("LogsDatabaseV2")}; ok=function(){var n=g.qD("yt.networklessRequestController.instance");n||(n=new Rk,g.nQ("yt.networklessRequestController.instance",n),g.EH("networkless_logging")&&g.VW().then(function(q){n.kB=q;Fvf(n);n.Z.resolve();n.Ec&&Math.random()<=n.q1&&n.kB&&qkd(n.kB);g.EH("networkless_immediately_drop_sw_health_store")&&dwa(n)})); return n}; dwa=function(n){var q;g.u(function(M){if(!n.kB)throw q=g.El("clearSWHealthLogsDb"),q;return M.return(MUR(n.kB).catch(function(t){n.handleError(t)}))})}; bru=function(n,q,M,t){t=t===void 0?!1:t;q=g.EH("web_fp_via_jspb")?Object.assign({},q):q;g.EH("use_cfr_monitor")&&NSu(n,q);if(g.EH("use_request_time_ms_header"))q.headers&&Ms(n)&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.jt)())));else{var c;if((c=q.postParams)==null?0:c.requestTimeMs)q.postParams.requestTimeMs=Math.round((0,g.jt)())}M&&Object.keys(q).length===0?g.ux(n):q.compress?q.postBody?(typeof q.postBody!=="string"&&(q.postBody=JSON.stringify(q.postBody)),fE(n,q.postBody, q,g.X$,t)):fE(n,JSON.stringify(q.postParams),q,j6,t):g.X$(n,q)}; ww=function(n,q){g.EH("use_event_time_ms_header")&&Ms(n)&&(q.headers||(q.headers={}),q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.jt)())));return q}; NSu=function(n,q){var M=q.onError?q.onError:function(){}; q.onError=function(c,Y){$T().requestComplete(n,!1);M(c,Y)}; var t=q.onSuccess?q.onSuccess:function(){}; q.onSuccess=function(c,Y){$T().requestComplete(n,!0);t(c,Y)}}; g.zq=function(n){this.config_=null;n?this.config_=n:kS1()&&(this.config_=g.KE())}; g.JW=function(n,q,M,t){function c(d){try{if((d===void 0?0:d)&&t.retry&&!t.networklessOptions.bypassNetworkless)Y.method="POST",t.networklessOptions.writeThenSend?ok().writeThenSend(b,Y):ok().sendAndWrite(b,Y);else if(t.compress){var N=!t.networklessOptions.writeThenSend;if(Y.postBody){var O=Y.postBody;typeof O!=="string"&&(O=JSON.stringify(Y.postBody));fE(b,O,Y,g.X$,N)}else fE(b,JSON.stringify(Y.postParams),Y,j6,N)}else g.EH("web_all_payloads_via_jspb")?g.X$(b,Y):j6(b,Y)}catch(e){if(e.name==="InvalidAccessError")V8(Error("An extension is blocking network request.")); else throw e;}} !g.RZ("VISITOR_DATA")&&q!=="visitor_id"&&Math.random()<.01&&V8(new g.aE("Missing VISITOR_DATA when sending innertube request.",q,M,t));if(!n.isReady())throw n=new g.aE("innertube xhrclient not ready",q,M,t),g.z7(n),n;var Y={headers:t.headers||{},method:"POST",postParams:M,postBody:t.postBody,postBodyFormat:t.postBodyFormat||"JSON",onTimeout:function(){t.onTimeout()}, onFetchTimeout:t.onTimeout,onSuccess:function(d,N){if(t.onSuccess)t.onSuccess(N)}, onFetchSuccess:function(d){if(t.onSuccess)t.onSuccess(d)}, onProgress:function(d){if(t.onProgress)t.onProgress(d)}, onError:function(d,N){if(t.onError)t.onError(N)}, onFetchError:function(d){if(t.onError)t.onError(d)}, timeout:t.timeout,withCredentials:!0,compress:t.compress};Y.headers["Content-Type"]||(Y.headers["Content-Type"]="application/json");M="";var G=n.config_.q3;G&&(M=G);G=n.config_.lw||!1;var k=ysf(G,M,t);Object.assign(Y.headers,k);Y.headers.Authorization&&!M&&G&&(Y.headers["x-origin"]=window.location.origin);var b=np(""+M+("/youtubei/"+n.config_.innertubeApiVersion+"/"+q),{alt:"json"});g.qD("ytNetworklessLoggingInitializationOptions")&&Orf.isNwlInitialized?Db1().then(function(d){c(d)}):c(!1)}; g.Qd=function(n,q,M){var t=g.Vd();if(t&&q){var c=t.subscribe(n,function(){function Y(){CE[c]&&q.apply&&typeof q.apply=="function"&&q.apply(M||window,G)} var G=arguments;try{g.rw[n]?Y():g.bl(Y,0)}catch(k){g.z7(k)}},M); CE[c]=!0;xT[n]||(xT[n]=[]);xT[n].push(c);return c}return 0}; gda=function(n){var q=g.Qd("LOGGED_IN",function(M){n.apply(void 0,arguments);g.pE(q)})}; g.pE=function(n){var q=g.Vd();q&&(typeof n==="number"?n=[n]:typeof n==="string"&&(n=[parseInt(n,10)]),g.xw(n,function(M){q.unsubscribeByKey(M);delete CE[M]}))}; g.nB=function(n,q){var M=g.Vd();return M?M.publish.apply(M,arguments):!1}; Ed_=function(n){var q=g.Vd();if(q)if(q.clear(n),n)eka(n);else for(var M in xT)eka(M)}; g.Vd=function(){return g.pa.ytPubsubPubsubInstance}; eka=function(n){xT[n]&&(n=xT[n],g.xw(n,function(q){CE[q]&&delete CE[q]}),n.length=0)}; g.qi=function(n,q,M){hks(n,q,M===void 0?null:M)}; hks=function(n,q,M){M=M===void 0?null:M;var t=W7k(typeof n==="string"?n:n.toString()),c=document.getElementById(t),Y=c&&lmk(c),G=c&&!Y;Y?q&&q():(q&&(Y=g.Qd(t,q),q=""+g.KQ(q),yoa[q]=Y),G||(c=sZf(n,t,function(){lmk(c)||(TQu(c),g.nB(t),g.bl(function(){Ed_(t)},0))},M)))}; sZf=function(n,q,M,t){t=t===void 0?null:t;var c=g.eO("SCRIPT");c.id=q;c.onload=function(){M&&setTimeout(M,0)}; c.onreadystatechange=function(){switch(c.readyState){case "loaded":case "complete":c.onload()}}; t&&c.setAttribute("nonce",t);g.XC(c,typeof n==="string"?g.sk(n):n);n=document.getElementsByTagName("head")[0]||document.body;n.insertBefore(c,n.firstChild);return c}; W7k=function(n){var q=document.createElement("a");g.di(q,n);n=q.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+ui(n)}; YH=function(n,q){if(n===q)n=!0;else if(Array.isArray(n)&&Array.isArray(q))n=g.CQ(n,q,YH);else if(g.Yw(n)&&g.Yw(q))a:if(g.GZ(n).length!=g.GZ(q).length)n=!1;else{for(var M in n)if(!YH(n[M],q[M])){n=!1;break a}n=!0}else n=!1;return n}; kH=function(n){var q=g.Fm.apply(1,arguments);if(!GE(n)||q.some(function(t){return!GE(t)}))throw Error("Only objects may be merged."); q=g.S(q);for(var M=q.next();!M.done;M=q.next())KB(n,M.value)}; KB=function(n,q){for(var M in q)if(GE(q[M])){if(M in n&&!GE(n[M]))throw Error("Cannot merge an object into a non-object.");M in n||(n[M]={});KB(n[M],q[M])}else if(ba(q[M])){if(M in n&&!ba(n[M]))throw Error("Cannot merge an array into a non-array.");M in n||(n[M]=[]);XAu(n[M],q[M])}else n[M]=q[M];return n}; XAu=function(n,q){q=g.S(q);for(var M=q.next();!M.done;M=q.next())M=M.value,GE(M)?n.push(KB({},M)):ba(M)?n.push(XAu([],M)):n.push(M);return n}; GE=function(n){return typeof n==="object"&&!Array.isArray(n)}; ba=function(n){return typeof n==="object"&&Array.isArray(n)}; dB=function(n){g.F.call(this);this.W=n}; Ni=function(n){dB.call(this,!0);this.X=n}; Oc=function(n,q){g.F.call(this);var M=this;this.Z=[];this.N=!1;this.W=0;this.S=this.C=this.J=!1;this.xl=null;var t=(0,g.bn)(n,q);this.X=new g.zw(function(){return t(M.xl)},300); g.Z(this,this.X);this.U=this.B=Infinity}; jZ1=function(n,q){if(!q)return!1;for(var M=0;M-1)throw Error("Deps cycle for: "+q);if(n.W.has(q))return n.W.get(q);if(!n.X.has(q)){if(t)return;throw Error("No provider for: "+q);}t=n.X.get(q);M.push(q);if(t.ox!==void 0)var c=t.ox;else if(t.VCl)c=t[fB]?Hr1(n,t[fB],M):[],c=t.VCl.apply(t,g.EJ(c));else if(t.j6){c=t.j6;var Y=c[fB]?Hr1(n,c[fB],M):[];c=new (Function.prototype.bind.apply(c,[null].concat(g.EJ(Y))))}else throw Error("Could not resolve providers for: "+q);M.pop();t.p5x||n.W.set(q,c); return c}; Hr1=function(n,q,M){return q?q.map(function(t){return t instanceof jz?Hh(n,t.key,M,!0):Hh(n,t,M)}):[]}; Ph=function(){LB||(LB=new fTa);return LB}; PWs=function(){var n=L7_;return function(){var q=Ph();q.resolve(Sz(n))||Ir(q,{Zd:n,j6:n});return q.resolve(n)}}; TE=function(){var n,q;return"h5vcc"in vh&&((n=vh.h5vcc.traceEvent)==null?0:n.traceBegin)&&((q=vh.h5vcc.traceEvent)==null?0:q.traceEnd)?1:"performance"in vh&&vh.performance.mark&&vh.performance.measure?2:0}; la=function(n){var q=TE();switch(q){case 1:vh.h5vcc.traceEvent.traceBegin("YTLR",n);break;case 2:vh.performance.mark(n+"-start");break;case 0:break;default:Nc(q,"unknown trace type")}}; vdU=function(n){var q=TE();switch(q){case 1:vh.h5vcc.traceEvent.traceEnd("YTLR",n);break;case 2:q=n+"-start";var M=n+"-end";vh.performance.mark(M);vh.performance.measure(n,q,M);break;case 0:break;default:Nc(q,"unknown trace type")}}; TSJ=function(n){var q,M;(M=(q=window).onerror)==null||M.call(q,n.message,"",0,0,n)}; lT1=function(n){var q=this;var M=M===void 0?0:M;var t=t===void 0?g.CL():t;this.Z=M;this.scheduler=t;this.W=new g.NA;this.X=n;for(n={cZ:0};n.cZ=1E3?c():t>=n?Mo||(Mo=io(function(){c();Mo=void 0},0)):Y-k>=10&&(CW_(q,M.tier),G.J=Y)}; odd=function(n,q){if(n.endpoint==="log_event"){g.EH("more_accurate_gel_parser")&&JY().storePayload({isJspb:!1},n.payload);CB(n);var M=rB(n),t=new Map;t.set(M,[n.payload]);var c=ZrC(n.payload)||"";q&&(ny=new q);return new g.v5(function(Y,G){ny&&ny.isReady()?rod(t,ny,Y,G,{bypassNetworkless:!0},!0,Qp(c)):Y()})}}; Jos=function(n,q,M){if(q.endpoint==="log_event"){CB(void 0,q);var t=rB(q,!0),c=new Map;c.set(t,[ol(q.payload)]);M&&(ny=new M);return new g.v5(function(Y){ny&&ny.isReady()?xws(c,ny,Y,{bypassNetworkless:!0},!0,Qp(n)):Y()})}}; rB=function(n,q){var M="";if(n.dangerousLogToVisitorSession)M="visitorOnlyApprovedKey";else if(n.cttAuthInfo){if(q===void 0?0:q){q=n.cttAuthInfo.token;M=n.cttAuthInfo;var t=new Fa;M.videoId?t.setVideoId(M.videoId):M.playlistId&&el(t,2,tq,L0(M.playlistId));cJ[q]=t}else q=n.cttAuthInfo,M={},q.videoId?M.videoId=q.videoId:q.playlistId&&(M.playlistId=q.playlistId),Y7[n.cttAuthInfo.token]=M;M=n.cttAuthInfo.token}return M}; pB=function(n,q,M){n=n===void 0?{}:n;q=q===void 0?!1:q;new g.v5(function(t,c){var Y=qo(q,M),G=Y.Z;Y.Z=!1;Gs(Y.W);Gs(Y.X);Y.X=0;ny&&ny.isReady()?M===void 0&&g.EH("enable_web_tiered_gel")?QZm(t,c,n,q,300,G):QZm(t,c,n,q,M,G):(CW_(q,M),t())})}; QZm=function(n,q,M,t,c,Y){var G=ny;M=M===void 0?{}:M;t=t===void 0?!1:t;c=c===void 0?200:c;Y=Y===void 0?!1:Y;var k=new Map,b=new Map,d={isJspb:t,cttAuthInfo:void 0,tier:c},N={isJspb:t,cttAuthInfo:void 0};if(t){q=g.S(Object.keys(xH));for(c=q.next();!c.done;c=q.next())c=c.value,b=g.EH("enable_web_tiered_gel")?JY().smartExtractMatchingEntries({keys:[d,N],sizeLimit:1E3}):JY().extractMatchingEntries({isJspb:!0,cttAuthInfo:c}),b.length>0&&k.set(c,b),(g.EH("web_fp_via_jspb_and_json")&&M.writeThenSend||!g.EH("web_fp_via_jspb_and_json"))&& delete xH[c];xws(k,G,n,M,!1,Y)}else{k=g.S(Object.keys(xH));for(d=k.next();!d.done;d=k.next())d=d.value,N=g.EH("enable_web_tiered_gel")?JY().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:d,tier:c},{isJspb:!1,cttAuthInfo:d}],sizeLimit:1E3}):JY().extractMatchingEntries({isJspb:!1,cttAuthInfo:d}),N.length>0&&b.set(d,N),(g.EH("web_fp_via_jspb_and_json")&&M.writeThenSend||!g.EH("web_fp_via_jspb_and_json"))&&delete xH[d];rod(b,G,n,q,M,!1,Y)}}; CW_=function(n,q){function M(){pB({writeThenSend:!0},n,q)} n=n===void 0?!1:n;q=q===void 0?200:q;var t=qo(n,q),c=t===pAa||t===neC?5E3:qHs;g.EH("web_gel_timeout_cap")&&!t.X&&(c=io(function(){M()},c),t.X=c); Gs(t.W);c=g.RZ("LOGGING_BATCH_TIMEOUT",g.hP("web_gel_debounce_ms",1E4));g.EH("shorten_initial_gel_batch_timeout")&&Ky&&(c=M6k);c=io(function(){g.hP("gel_min_batch_size")>0?JY().getSequenceCount({cttAuthInfo:void 0,isJspb:n,tier:q})>=ipd&&M():M()},c); t.W=c}; rod=function(n,q,M,t,c,Y,G){c=c===void 0?{}:c;var k=Math.round((0,g.jt)()),b=n.size,d=t6j(G);n=g.S(n);var N=n.next();for(G={};!N.done;G={So:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,FC:void 0,tZ:void 0},N=n.next()){var O=g.S(N.value);N=O.next().value;O=O.next().value;G.batchRequest=g.W7({context:g.kT(q.config_||g.KE())});if(!g.cs(O)&&!g.EH("throw_err_when_logevent_malformed_killswitch")){t();break}G.batchRequest.events=O;(O=Y7[N])&&cPU(G.batchRequest,N,O);delete Y7[N];G.dangerousLogToVisitorSession= N==="visitorOnlyApprovedKey";YHR(G.batchRequest,k,G.dangerousLogToVisitorSession);GHa(c);G.FC=function(e){g.EH("start_client_gcf")&&g.$D.yP(function(){return g.u(function(E){return g.U(E,K_s(e),0)})}); b--;b||M()}; G.So=0;G.tZ=function(e){return function(){e.So++;if(c.bypassNetworkless&&e.So===1)try{g.JW(q,d,e.batchRequest,k7({writeThenSend:!0},e.dangerousLogToVisitorSession,e.FC,e.tZ,Y)),Ky=!1}catch(E){g.z7(E),t()}b--;b||M()}}(G); try{g.JW(q,d,G.batchRequest,k7(c,G.dangerousLogToVisitorSession,G.FC,G.tZ,Y)),Ky=!1}catch(e){g.z7(e),t()}}}; xws=function(n,q,M,t,c,Y){t=t===void 0?{}:t;var G=Math.round((0,g.jt)()),k={value:n.size},b=new Map([].concat(g.EJ(n)));b=g.S(b);for(var d=b.next();!d.done;d=b.next()){var N=g.S(d.value).next().value,O=n.get(N);d=new mek;var e=q.config_||g.KE(),E=new lW,h=new IZ;Ar(h,1,e.lC);Ar(h,2,e.qg);$K(h,16,e.nt);Ar(h,17,e.innertubeContextClientVersion);if(e.ul){var I=e.ul,L=new jU;I.coldConfigData&&Ar(L,1,I.coldConfigData);I.appInstallData&&Ar(L,6,I.appInstallData);I.coldHashData&&Ar(L,3,I.coldHashData);I.hotHashData&& L.tf(I.hotHashData);HW(h,jU,62,L)}(I=g.pa.devicePixelRatio)&&I!=1&&MX(h,65,dr(I));I=Wk();I!==""&&Ar(h,54,I);I=yY();if(I.length>0){L=new Lr;for(var T=0;T65535&&(n=1);aZ("BATCH_CLIENT_COUNTER",n);return n}; cPU=function(n,q,M){if(M.videoId)var t="VIDEO";else if(M.playlistId)t="PLAYLIST";else return;n.credentialTransferTokenTargetId=M;n.context=n.context||{};n.context.user=n.context.user||{};n.context.user.credentialTransferTokens=[{token:q,scope:t}]}; CB=function(n,q){var M=g.qD("yt.logging.transport.enableScrapingForTest"),t=e6("il_payload_scraping");t=(t!==void 0?String(t):"")==="enable_il_payload_scraping";if(!M)if(t)No=[],g.nQ("yt.logging.transport.enableScrapingForTest",!0),g.nQ("yt.logging.transport.scrapedPayloadsForTesting",No),g.nQ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.nQ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.nQ("yt.logging.transport.scrapeClientEvent",!0);else return;M=g.qD("yt.logging.transport.scrapedPayloadsForTesting");t=g.qD("yt.logging.transport.payloadToScrape");q&&(q=q.payload,(q=g.qD("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(q)())&&M.push(q));q=g.qD("yt.logging.transport.scrapeClientEvent");if(t&&t.length>=1)for(var c=0;c0&&veR(n,q,Y)}else veR(n,q)}; veR=function(n,q,M){n=TOJ(n);q=q?g.Eu(q):"";M=M||5;QY()&&g.ll(n,q,M)}; TOJ=function(n){for(var q=g.S(l_d),M=q.next();!M.done;M=q.next())n=IV(n,M.value);return"ST-"+ui(n).toString(36)}; UsC=function(n){if(n.name==="JavaException")return!0;n=n.stack;return n.includes("chrome://")||n.includes("-extension://")||n.includes("webkit-masked-url://")}; u$d=function(n){if(!n.stack)return!0;var q=!n.stack.includes("\n");return q&&n.stack.includes("ErrorType: ")||q&&n.stack.includes("Anonymous function (Unknown script")||n.stack.toLowerCase()==="not available"||n.fileName==="user-script"||n.fileName.startsWith("user-script:")?!0:!1}; BOd=function(){this.fC=[];this.uD=[]}; Ss=function(){if(!js){var n=js=new BOd;n.uD.length=0;n.fC.length=0;Ds1(n,APs)}return js}; Ds1=function(n,q){q.uD&&n.uD.push.apply(n.uD,q.uD);q.fC&&n.fC.push.apply(n.fC,q.fC)}; msd=function(n){function q(){return n.charCodeAt(t++)} var M=n.length,t=0;do{var c=I4(q);if(c===Infinity)break;var Y=c>>3;switch(c&7){case 0:c=I4(q);if(Y===2)return c;break;case 1:if(Y===2)return;t+=8;break;case 2:c=I4(q);if(Y===2)return n.substr(t,c);t+=c;break;case 5:if(Y===2)return;t+=4;break;default:return}}while(t500));t++);t=c}else if(typeof n==="object")for(c in n){if(n[c]){var Y=c;var G=n[c],k=q,b=M;Y=typeof G!=="string"||Y!=="clickTrackingParams"&&Y!=="trackingParams"?0:(G=msd(atob(G.replace(/-/g,"+").replace(/_/g,"/"))))?fy(Y+".ve",G,k,b):0;t+=Y;t+=fy(c,n[c],q,M);if(t>500)break}}else M[q]=HJ(n),t+=M[q].length;else M[q]=HJ(n),t+=M[q].length;return t}; fy=function(n,q,M,t){M+="."+n;n=HJ(q);t[M]=n;return M.length+n.length}; HJ=function(n){try{return(typeof n==="string"?n:String(JSON.stringify(n))).substr(0,500)}catch(q){return"unable to serialize "+typeof n+" ("+q.message+")"}}; iQ=function(n){g.Ly(n)}; g.PJ=function(n){g.Ly(n,"WARNING")}; g.Ly=function(n,q){var M=M===void 0?{}:M;M.name=g.RZ("INNERTUBE_CONTEXT_CLIENT_NAME",1);M.version=g.RZ("INNERTUBE_CONTEXT_CLIENT_VERSION");q=q===void 0?"ERROR":q;var t=!1;q=q===void 0?"ERROR":q;t=t===void 0?!1:t;if(n){n.hasOwnProperty("level")&&n.level&&(q=n.level);if(g.EH("console_log_js_exceptions")){var c=[];c.push("Name: "+n.name);c.push("Message: "+n.message);n.hasOwnProperty("params")&&c.push("Error Params: "+JSON.stringify(n.params));n.hasOwnProperty("args")&&c.push("Error args: "+JSON.stringify(n.args)); c.push("File name: "+n.fileName);c.push("Stacktrace: "+n.stack);window.console.log(c.join("\n"),n)}if(!(F_k>=5)){c=[];for(var Y=g.S(Zpa),G=Y.next();!G.done;G=Y.next()){G=G.value;try{G()&&c.push(G())}catch(I){}}c=[].concat(g.EJ(a_1),g.EJ(c));var k=cFd(n);Y=k.message||"Unknown Error";G=k.name||"UnknownError";var b=k.stack||n.W||"Not available";if(b.startsWith(G+": "+Y)){var d=b.split("\n");d.shift();b=d.join("\n")}d=k.lineNumber||"Not available";k=k.fileName||"Not available";var N=0;if(n.hasOwnProperty("args")&& n.args&&n.args.length)for(var O=0;O=500);O++);else if(n.hasOwnProperty("params")&&n.params){var e=n.params;if(typeof n.params==="object")for(O in e){if(e[O]){var E="params."+O,h=HJ(e[O]);M[E]=h;N+=E.length+h.length;if(N>500)break}}else M.params=HJ(e)}if(c.length)for(O=0;O=500);O++);navigator.vendor&&!M.hasOwnProperty("vendor")&&(M["device.vendor"]=navigator.vendor);M={message:Y,name:G,lineNumber:d, fileName:k,stack:b,params:M,sampleWeight:1};O=Number(n.columnNumber);isNaN(O)||(M.lineNumber=M.lineNumber+":"+O);if(n.level==="IGNORED")n=0;else a:{n=Ss();O=g.S(n.uD);for(c=O.next();!c.done;c=O.next())if(c=c.value,M.message&&M.message.match(c.WU)){n=c.weight;break a}n=g.S(n.fC);for(O=n.next();!O.done;O=n.next())if(O=O.value,O.callback(M)){n=O.weight;break a}n=1}M.sampleWeight=n;n=g.S(R_u);for(O=n.next();!O.done;O=n.next())if(O=O.value,O.O6[M.name])for(Y=g.S(O.O6[M.name]),c=Y.next();!c.done;c=Y.next())if(G= c.value,c=M.message.match(G.eA)){M.params["params.error.original"]=c[0];Y=G.groups;G={};for(d=0;d1E3&&g.PJ(new g.aE("IL Attach cache exceeded limit"))}k= a4(M,q);Aq.has(k)?R4(M,q):$7.set(k,!0)}}t=t.filter(function(N){N.csn!==q?(N.csn=q,N=!0):N=!1;return N}); M={csn:q,parentVe:M.getAsJson(),childVes:g.Wn(t,function(N){return N.getAsJson()})}; q==="UNDEFINED_CSN"?o4("visualElementAttached",Y,M):n?ge("visualElementAttached",M,n,Y):g.tx("visualElementAttached",M,Y)}; tod=function(n,q,M,t,c){we(M,q);t=DN({cttAuthInfo:sy(q)||void 0},q);M={csn:q,ve:M.getAsJson(),eventType:1};c&&(M.clientData=c);q==="UNDEFINED_CSN"?o4("visualElementShown",t,M):n?ge("visualElementShown",M,n,t):g.tx("visualElementShown",M,t)}; cJd=function(n,q,M,t){var c=(t=t===void 0?!1:t)?16:8;t=DN({cttAuthInfo:sy(q)||void 0,endOfSequence:t},q);M={csn:q,ve:M.getAsJson(),eventType:c};q==="UNDEFINED_CSN"?o4("visualElementHidden",t,M):n?ge("visualElementHidden",M,n,t):g.tx("visualElementHidden",M,t)}; zs=function(n,q,M,t,c){Yg1(n,q,M,void 0,t,c)}; Yg1=function(n,q,M,t,c){we(M,q);t=t||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var Y=DN({cttAuthInfo:sy(q)||void 0},q);M={csn:q,ve:M.getAsJson(),gestureType:t};c&&(M.clientData=c);q==="UNDEFINED_CSN"?o4("visualElementGestured",Y,M):n?ge("visualElementGestured",M,n,Y):g.tx("visualElementGestured",M,Y)}; GJR=function(){var n=ez(16);for(var q=[],M=0;M0&&M.push(g.eO("BR"));M.push(g.ES(Y))}):M.push(g.ES(t))}return M}; YR=function(n,q,M,t){if(M==="child"){g.WT(q);var c;t===void 0?c=void 0:c=!Array.isArray(t)||t&&typeof t.j==="string"?[t]:t;M=kJR(n,c);M=g.S(M);for(n=M.next();!n.done;n=M.next())q.appendChild(n.value)}else M==="style"?g.wK(q,"cssText",t?t:""):t===null||t===void 0?q.removeAttribute(M):(n=t.toString(),M==="href"&&(n=g.Y6(g.k6(n))),q.setAttribute(M,n))}; g.w=function(n){g.ta.call(this,n);this.Zn=!0;this.B=!1;this.listeners=[]}; g.G2=function(n){g.w.call(this,n);this.hE=new g.MB;g.Z(this,this.hE)}; K$=function(n,q,M,t,c,Y,G){G=G===void 0?null:G;g.G2.call(this,q);this.api=n;this.macros={};this.componentType=M;this.C=this.N=null;this.QS=G;this.layoutId=t;this.interactionLoggingClientData=c;this.Nm=Y;this.V1=null;this.RX=new Ni(this.element);g.Z(this,this.RX);this.Ux=this.V(this.element,"click",this.onClick);this.jX=[];this.wJ=new Oc(this.onClick,this);g.Z(this,this.wJ);this.Wg=!1;this.nm=this.xl=null}; kR=function(n,q){n=n===void 0?null:n;q=q===void 0?null:q;if(n==null)return g.PJ(Error("Got null or undefined adText object")),"";var M=g.Up(n.text);if(!n.isTemplated)return M;if(q==null)return g.PJ(Error("Missing required parameters for a templated message")),M;n=g.S(Object.entries(q));for(q=n.next();!q.done;q=n.next()){var t=g.S(q.value);q=t.next().value;t=t.next().value;M=M.replace("{"+q+"}",t)}return M}; bLC=function(n){n=n===void 0?null:n;return n!=null&&(n=n.thumbnail,n!=null&&n.thumbnails!=null&&n.thumbnails.length!=0&&n.thumbnails[0].url!=null)?g.Up(n.thumbnails[0].url):""}; dyR=function(n){n=n===void 0?null:n;return n!=null&&(n=n.thumbnail,n!=null&&n.thumbnails!=null&&n.thumbnails.length!=0&&n.thumbnails[0].width!=null&&n.thumbnails[0].height!=null)?new g.JE(n.thumbnails[0].width||0,n.thumbnails[0].height||0):new g.JE(0,0)}; g.b8=function(n){if(n.simpleText)return n.simpleText;if(n.runs){var q=[];n=g.S(n.runs);for(var M=n.next();!M.done;M=n.next())M=M.value,M.text&&q.push(M.text);return q.join("")}return""}; g.dW=function(n){if(n.simpleText)return n=document.createTextNode(n.simpleText),n;var q=[];if(n.runs)for(var M=0;M1){for(var q=[n[0]],M=1;M0&&(this.X=new g.zw(this.Gw,q,this),g.Z(this,this.X));this.S=new g.zw(this.Gw,M,this);g.Z(this,this.S);this.B=LJu(this.W,c,1,t);g.Z(this,this.B);this.N=LJu(this.W,0,t,1);g.Z(this,this.N);this.J=new So;g.Z(this,this.J)}; tB=function(n,q,M){this.W=n;this.isAsync=q;this.X=M}; Mts=function(n){switch(n){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Nc(n,"unknown result type")}}; iMf=function(n,q){var M=1;n.isTrusted===!1&&(M=0);aZ("ISDSTAT",M);cD(M,"i.s_",{triggerContext:"sk",metadata:q});return M}; ttJ=function(n,q){var M=[];q?q.isTrusted===!0?M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):q.isTrusted===!1?M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");cD(0,"a.s_",{metadata:n,states:M});aZ("ASDSTAT",0)}; cD=function(n,q,M){q=cxu[q];var t,c,Y={detected:n===0,source:""+q.W+((t=M.triggerContext)!=null?t:"")+((c=M.At)!=null?c:""),detectionStates:M.states,durationMs:M.DK};M.metadata&&(Y.contentCpn=M.metadata.contentCpn,Y.adCpn=M.metadata.adCpn);g.tx("biscottiBasedDetection",Y);q.X!==void 0&&(M=Number(g.RZ("CATSTAT",0)),q.X!==void 0?(q=q.X,n=Mts(n),n=M&~(3<0}; NZ=function(n,q,M,t,c,Y){C$.call(this,n,{j:"div",Y:"ytp-ad-skip-button-slot"},"skip-button",q,M,t,c);var G=this;this.RL=null;this.IL=!1;this.AE=Y;this.S=this.api.T().experiments.Hb("enable_modern_skip_button_on_web");this.Yl=!1;this.J=new g.G2({j:"span",aL:["ytp-ad-skip-button-container"]});this.S&&this.J.element.classList.add("ytp-ad-skip-button-container-detached");g.Z(this,this.J);this.J.dJ(this.element);this.W=this.Z=null;this.eX=new g.QX(this.J,500,!1,100,function(){return G.hide()}); g.Z(this,this.eX);this.SX=new iU(this.J.element,15E3,5E3,.5,.5,this.S);g.Z(this,this.SX);this.hide()}; GYs=function(n){n=n.RL&&n.RL.adRendererCommands;return(n&&n.clickCommand&&g.R(n.clickCommand,g.Ov)&&g.R(n.clickCommand,g.Ov).commands||[]).some(function(q){return q.adLifecycleCommand?YlJ(q.adLifecycleCommand):!1})}; YlJ=function(n){return n.action==="END_LINEAR_AD"||n.action==="END_LINEAR_AD_PLACEMENT"}; gU=function(n,q,M,t,c,Y){C$.call(this,n,{j:"div",Y:"ytp-ad-skip-ad-slot"},"skip-ad",q,M,t,c);this.RL=Y;this.J=!1;this.S=0;this.Z=this.W=null;this.hide()}; Ku1=function(n,q){n.J||(n.J=!0,n.W&&(q?n.W.RL.hide():n.W.hide()),q?(n=n.Z,n.eX.show(),n.show()):n.Z.show())}; e3=function(n,q,M,t){v4.call(this,n,q,M,t,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Ev=function(n,q,M,t,c,Y,G){Y=Y===void 0?!1:Y;G=G===void 0?!1:G;K$.call(this,n,{j:"span",Y:"ytp-ad-simple-ad-badge"},"simple-ad-badge",q,M,t);this.Z=c;this.X=this.JE("ytp-ad-simple-ad-badge");(this.W=Y)&&this.X.classList.add("ytp-ad-simple-ad-badge--clean-player");G&&this.X.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; hB=function(n,q,M,t,c){c=c===void 0?!1:c;qB.call(this,"player-overlay",n,{},q,t);this.videoAdDurationSeconds=M;this.interactionLoggingClientData=t;this.V2=c}; WD=function(n,q){g.MB.call(this);this.api=n;this.durationMs=q;this.X=null;this.handler=new So(this);g.Z(this,this.handler);this.W=kY1;this.handler.V(this.api,"presentingplayerstatechange",this.Ir);this.X=this.handler.V(this.api,"onAdPlaybackProgress",this.Oq)}; yQ=function(n){g.MB.call(this);this.X=!1;this.I9=0;this.handler=new So(this);g.Z(this,this.handler);this.durationMs=n;this.timer=new g.Ab(100);g.Z(this,this.timer);this.handler.V(this.timer,"tick",this.Oq);this.W={seekableStart:0,seekableEnd:n/1E3,current:0};this.start()}; g.XB=function(n,q){var M=Math.abs(Math.floor(n)),t=Math.floor(M/86400),c=Math.floor(M%86400/3600),Y=Math.floor(M%3600/60);M=Math.floor(M%60);if(q){q="";t>0&&(q+=" "+t+" d\u00edas");if(t>0||c>0)q+=" "+c+" horas";q+=" "+Y+" minutos";q+=" "+M+" segundos";t=q.trim()}else{q="";t>0&&(q+=t+":",c<10&&(q+="0"));if(t>0||c>0)q+=c+":",Y<10&&(q+="0");q+=Y+":";M<10&&(q+="0");t=q+M}return n>=0?t:"-"+t}; g.j3=function(n){return(!("button"in n)||typeof n.button!=="number"||n.button===0)&&!("shiftKey"in n&&n.shiftKey)&&!("altKey"in n&&n.altKey)&&!("metaKey"in n&&n.metaKey)&&!("ctrlKey"in n&&n.ctrlKey)}; S3=function(n,q,M,t,c,Y,G){C$.call(this,n,{j:"span",Y:G?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",q,M,t,c);this.videoAdDurationSeconds=Y;this.W=null;G&&this.api.T().W&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),Ra&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; IM=function(n,q,M,t){Ja.call(this,n,q,M,t,"ytp-video-ad-top-bar-title","ad-title")}; fz=function(n){this.content=n.content;if(n.commandRuns){n=g.S(n.commandRuns);for(var q=n.next();!q.done;q=n.next())q=q.value,this.loggingDirectives=g.R(q,bMd),q.onTap&&(this.interaction={onTap:q.onTap})}}; HD=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ad-simple-attributed-string"},"ad-simple-attributed-string",q,M,t);this.hide()}; Lz=function(n,q,M,t,c){K$.call(this,n,{j:"span",Y:c?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",q,M,t);this.W=c;this.adBadgeText=new HD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);this.adBadgeText.dJ(this.element);g.Z(this,this.adBadgeText);c?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Ra&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; PD=function(n,q,M,t){K$.call(this,n,{j:"span",Y:"ytp-ad-pod-index"},"ad-pod-index",q,M,t);this.api.T().W&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Ra&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; vD=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",q,M,t);this.hide()}; Tt=function(n,q){this.W=n;this.X=q}; dH1=function(n,q){return n.W+q*(n.X-n.W)}; lU=function(n,q,M){return n.X-n.W?g.aR((q-n.W)/(n.X-n.W),0,1):M!=null?M:Infinity}; Uv=function(n,q,M,t){t=t===void 0?!1:t;g.G2.call(this,{j:"div",Y:"ytp-ad-persistent-progress-bar-container",L:[{j:"div",Y:"ytp-ad-persistent-progress-bar"}]});this.api=n;this.W=q;this.Z=M;t&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.Z(this,this.W);this.progressBar=this.JE("ytp-ad-persistent-progress-bar");this.X=-1;this.V(n,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; uU=function(n,q,M,t,c,Y){K$.call(this,n,{j:"div",Y:"ytp-ad-player-overlay",L:[{j:"div",Y:"ytp-ad-player-overlay-flyout-cta"},{j:"div",Y:"ytp-ad-player-overlay-instream-info"},{j:"div",Y:"ytp-ad-player-overlay-skip-or-preview"},{j:"div",Y:"ytp-ad-player-overlay-progress-bar"},{j:"div",Y:"ytp-ad-player-overlay-instream-user-sentiment"},{j:"div",Y:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",q,M,t);this.U=Y;this.S=this.JE("ytp-ad-player-overlay-flyout-cta");this.S.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.X=this.JE("ytp-ad-player-overlay-instream-info");this.J=null;Nzd(this)&&(n=gK("div"),g.MN(n,"ytp-ad-player-overlay-top-bar-gradients"),q=this.X,q.parentNode&&q.parentNode.insertBefore(n,q),(q=this.api.getVideoData(2))&&q.isListed&&q.title&&(M=new IM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),M.dJ(n),M.init(n$("ad-title"),{text:q.title},this.macros),g.Z(this,M)),this.J=n);this.Z=null;this.rJ=this.JE("ytp-ad-player-overlay-skip-or-preview");this.SX=this.JE("ytp-ad-player-overlay-progress-bar"); this.IL=this.JE("ytp-ad-player-overlay-instream-user-sentiment");this.RL=this.JE("ytp-ad-player-overlay-ad-disclosure-banner");this.W=c;g.Z(this,this.W);this.hide()}; Nzd=function(n){n=n.api.T();return g.BD(n)&&n.W}; g.Dq=function(n){n&=16777215;var q=[(n&16711680)>>16,(n&65280)>>8,n&255];n=q[0];var M=q[1];q=q[2];n=Number(n);M=Number(M);q=Number(q);if(n!=(n&255)||M!=(M&255)||q!=(q&255))throw Error('"('+n+","+M+","+q+'") is not a valid RGB color');M=n<<16|M<<8|q;return n<16?"#"+(16777216|M).toString(16).slice(1):"#"+M.toString(16)}; g.AB=function(){}; gca=function(n){var q=new kb;var M=new KC;M=Ar(M,1,"botguard");n=Ar(M,2,n);this.X=uCC(q,KC,1,OM1,n)}; mf=function(n){this.X=new f4(n)}; eia=function(){var n=!1;try{n=!!window.sessionStorage.getItem("session_logininfo")}catch(q){n=!0}return(g.RZ("INNERTUBE_CLIENT_NAME")==="WEB"||g.RZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&n}; $B=function(){var n=n===void 0?!0:n;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");aZ("LOGIN_INFO","");n&&window.sessionStorage.setItem("from_switch_account","1");n=!0;n=n===void 0?!1:n;var q,M=Ecu;M||(M=document.querySelector("#persist_identity"));if(q=M){var t=q.src?(new URL(q.src)).origin:"*";if(n){var c;(c=q.contentWindow)==null||c.postMessage({action:"clear"},t)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var Y=window.sessionStorage.getItem("session_logininfo");if(Y){var G;(G=q.contentWindow)==null||G.postMessage({loginInfo:Y},t)}}}}catch(k){}}; FB=function(n){n&&(n.startsWith("https://accounts.google.com/AddSession")?$B():n.startsWith("https://accounts.google.com/ServiceLogin")?$B():n.startsWith("https://myaccount.google.com")&&g.dE(n).W.endsWith("/youtubeoptions")&&$B());if(g.RZ("LOGGED_IN",!0)&&eia()){var q=g.RZ("VALID_SESSION_TEMPDATA_DOMAINS",[]);var M=g.bm(window.location.href);M&&q.push(M);M=g.bm(n);g.SS(q,M)||!M&&lV(n,"/")?(q=Nu(n),(q=$Ea(q))?(q=TOJ(q),q=(q=g.UH(q)||null)?xd(q):{}):q=null):q=null;q==null&&(q={});M=q;var t=void 0; eia()?(t||(t=g.RZ("LOGIN_INFO")),t?(M.session_logininfo=t,M=!0):M=!1):M=!1;M&&X_(n,q)}}; g.hid=function(n){var q=q===void 0?{}:q;var M=M===void 0?"":M;var t=t===void 0?window:t;n=g.hC(n,q);FB(n);M=g.k6(n+M);t=t.location;M=bi(M);M!==void 0&&(t.href=M)}; g.Zq=function(n,q,M){q=q===void 0?{}:q;M=M===void 0?!1:M;var t=g.RZ("EVENT_ID");t&&(q.ei||(q.ei=t));q&&X_(n,q);M||(FB(n),g.hid(n))}; g.aM=function(n,q,M,t,c){c=c===void 0?!1:c;M&&X_(n,M);M=g.k6(n);var Y=g.Y6(M);n!=Y&&V8(Error("Unsafe window.open URL: "+n));n=Y;q=q||ui(n).toString(36);try{if(c)return c=n,c=YkC(c),FB(c),g.Ep(window,c,q,"attributionsrc")}catch(G){g.z7(G)}FB(n);return g.Ep(window,M,q,t)}; Wud=function(n){RM=n}; yxm=function(n){oM=n}; sa_=function(n){wU=n}; jas=function(){X6u=wU=oM=RM=null}; Igs=function(){var n=n===void 0?window.location.href:n;if(g.EH("kevlar_disable_theme_param"))return null;var q=d$(n);if(g.EH("enable_dark_theme_only_on_shorts")&&q!=null&&q.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var M=g.pr(n).theme;return Slu.get(M)||null}catch(t){}return null}; zt=function(){this.X={};if(this.W=OY1()){var n=g.UH("CONSISTENCY");n&&fgd(this,{encryptedTokenJarContents:n})}}; fgd=function(n,q){if(q.encryptedTokenJarContents&&(n.X[q.encryptedTokenJarContents]=q,typeof q.expirationSeconds==="string")){var M=Number(q.expirationSeconds);setTimeout(function(){delete n.X[q.encryptedTokenJarContents]},M*1E3); n.W&&g.ll("CONSISTENCY",q.encryptedTokenJarContents,M,void 0,!0)}}; VQ=function(){this.W=-1;var n=g.RZ("LOCATION_PLAYABILITY_TOKEN");g.RZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=JB(this))&&(n=this.localStorage.get("yt-location-playability-token"));n&&(this.locationPlayabilityToken=n,this.X=void 0)}; JB=function(n){return n.localStorage===void 0?new Q9("yt-client-location"):n.localStorage}; g.Cz=function(n,q,M){q=q===void 0?!1:q;M=M===void 0?!1:M;var t=g.RZ("INNERTUBE_CONTEXT");if(!t)return g.Ly(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};t=g.W7(t);g.EH("web_no_tracking_params_in_shell_killswitch")||delete t.clickTracking;t.client||(t.client={});var c=t.client;c.clientName==="MWEB"&&c.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(c.clientFormFactor=g.RZ("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");c.screenWidthPoints=window.innerWidth;c.screenHeightPoints= window.innerHeight;c.screenPixelDensity=Math.round(window.devicePixelRatio||1);c.screenDensityFloat=window.devicePixelRatio||1;c.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var Y=Y===void 0?!1:Y;var G=g.D1(),k="USER_INTERFACE_THEME_LIGHT";G.OT(165)?k="USER_INTERFACE_THEME_DARK":G.OT(174)?k="USER_INTERFACE_THEME_LIGHT":!g.EH("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (k="USER_INTERFACE_THEME_DARK");Y=Y?k:Igs()||k;c.userInterfaceTheme=Y;if(!q){if(Y=p21())c.connectionType=Y;g.EH("web_log_effective_connection_type")&&(Y=q$s())&&(t.client.effectiveConnectionType=Y)}var b;if(g.EH("web_log_memory_total_kbytes")&&((b=g.pa.navigator)==null?0:b.deviceMemory)){var d;b=(d=g.pa.navigator)==null?void 0:d.deviceMemory;t.client.memoryTotalKbytes=""+b*1E6}g.EH("web_gcf_hashes_innertube")&&(Y=Kvf())&&(d=Y.coldConfigData,b=Y.coldHashData,Y=Y.hotHashData,t.client.configInfo=t.client.configInfo|| {},d&&(t.client.configInfo.coldConfigData=d),b&&(t.client.configInfo.coldHashData=b),Y&&(t.client.configInfo.hotHashData=Y));d=g.pr(g.pa.location.href);!g.EH("web_populate_internal_geo_killswitch")&&d.internalcountrycode&&(c.internalGeo=d.internalcountrycode);c.clientName==="MWEB"||c.clientName==="WEB"?(c.mainAppWebInfo||(c.mainAppWebInfo={}),c.mainAppWebInfo.graftUrl=g.pa.location.href,g.EH("kevlar_woffle")&&zMs.instance&&(d=zMs.instance,c.mainAppWebInfo.pwaInstallabilityStatus=!d.X&&d.W?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),c.mainAppWebInfo.webDisplayMode=Ug(),c.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):c.clientName==="TVHTML5"&&(!g.EH("web_lr_app_quality_killswitch")&&(d=g.RZ("LIVING_ROOM_APP_QUALITY"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{appQuality:d})),d=g.RZ("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{certificationScope:d}));if(!g.EH("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var N=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(a){}N=void 0}N&&(c.timeZone=N)}(N=Wk())?c.experimentsToken=N:delete c.experimentsToken;N=yY();zt.instance||(zt.instance=new zt);t.request=Object.assign({},t.request,{internalExperimentFlags:N,consistencyTokenJars:Yu(zt.instance.X)});!g.EH("web_prequest_context_killswitch")&&(N=g.RZ("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(t.request.externalPrequestContext=N);c=g.D1();N=c.OT(58);c=c.get("gsml","");t.user=Object.assign({}, t.user);N&&(t.user.enableSafetyMode=N);c&&(t.user.lockedSafetyMode=!0);g.EH("warm_op_csn_cleanup")?M&&(q=g.ye())&&(t.clientScreenNonce=q):!q&&(q=g.ye())&&(t.clientScreenNonce=q);n&&(t.clickTracking={clickTrackingParams:n});if(n=g.qD("yt.mdx.remote.remoteClient_"))t.remoteClient=n;VQ.getInstance().setLocationOnInnerTubeContext(t);try{var O=GH(),e=O.bid;delete O.bid;t.adSignalsInfo={params:[],bid:e};for(var E=g.S(Object.entries(O)),h=E.next();!h.done;h=E.next()){var I=g.S(h.value),L=I.next().value, T=I.next().value;O=L;e=T;n=void 0;(n=t.adSignalsInfo.params)==null||n.push({key:O,value:""+e})}var v,B;if(((v=t.client)==null?void 0:v.clientName)==="TVHTML5"||((B=t.client)==null?void 0:B.clientName)==="TVHTML5_UNPLUGGED"){var m=g.RZ("INNERTUBE_CONTEXT");m.adSignalsInfo&&(t.adSignalsInfo.advertisingId=m.adSignalsInfo.advertisingId,t.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",t.adSignalsInfo.limitAdTracking=m.adSignalsInfo.limitAdTracking)}}catch(a){g.Ly(a)}return t}; PQd=function(n,q){if(!n)return!1;var M,t=(M=g.R(n,HMa))==null?void 0:M.signal;if(t&&q.AC)return!!q.AC[t];var c;if((M=(c=g.R(n,Lus))==null?void 0:c.request)&&q.jw)return!!q.jw[M];for(var Y in n)if(q.Rq[Y])return!0;return!1}; vcC=function(n){var q={"Content-Type":"application/json"};g.RZ("EOM_VISITOR_DATA")?q["X-Goog-EOM-Visitor-Id"]=g.RZ("EOM_VISITOR_DATA"):g.RZ("VISITOR_DATA")&&(q["X-Goog-Visitor-Id"]=g.RZ("VISITOR_DATA"));q["X-Youtube-Bootstrap-Logged-In"]=g.RZ("LOGGED_IN",!1);g.RZ("DEBUG_SETTINGS_METADATA")&&(q["X-Debug-Settings-Metadata"]=g.RZ("DEBUG_SETTINGS_METADATA"));if(n!=="cors"){var M=g.RZ("INNERTUBE_CONTEXT_CLIENT_NAME");M&&(q["X-Youtube-Client-Name"]=M);(M=g.RZ("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(q["X-Youtube-Client-Version"]= M);(M=g.RZ("CHROME_CONNECTED_HEADER"))&&(q["X-Youtube-Chrome-Connected"]=M);(M=g.RZ("DOMAIN_ADMIN_STATE"))&&(q["X-Youtube-Domain-Admin-State"]=M)}g.RZ("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(n=g.RZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=n):n!=="cors"&&g.RZ("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(n=g.RZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=n);return q}; Tzd=function(){this.X={}}; rU=function(){this.mappings=new Tzd}; xB=function(n){return function(){return new n}}; UHu=function(n){var q=q===void 0?"UNKNOWN_INTERFACE":q;if(n.length===1)return n[0];var M=lgU[q];if(M){M=new RegExp(M);for(var t=g.S(n),c=t.next();!c.done;c=t.next())if(c=c.value,M.exec(c))return c}var Y=[];Object.entries(lgU).forEach(function(G){var k=g.S(G);G=k.next().value;k=k.next().value;q!==G&&Y.push(k)}); M=new RegExp(Y.join("|"));n.sort(function(G,k){return G.length-k.length}); t=g.S(n);for(c=t.next();!c.done;c=t.next())if(c=c.value,!M.exec(c))return c;return n[0]}; g.QQ=function(n){return"/youtubei/v1/"+UHu(n)}; pz=function(){}; nD=function(){}; qK=function(){}; MK=function(n){return g.qD("ytcsi."+(n||"")+"data_")||u0a(n)}; Bz_=function(){var n=MK();n.info||(n.info={});return n.info}; iZ=function(n){n=MK(n);n.metadata||(n.metadata={});return n.metadata}; tI=function(n){n=MK(n);n.tick||(n.tick={});return n.tick}; c_=function(n){n=MK(n);if(n.gel){var q=n.gel;q.gelInfos||(q.gelInfos={});q.gelTicks||(q.gelTicks={})}else n.gel={gelTicks:{},gelInfos:{}};return n.gel}; DHa=function(n){n=c_(n);n.gelInfos||(n.gelInfos={});return n.gelInfos}; Y2=function(n){var q=MK(n).nonce;q||(q=g.Ec(16),MK(n).nonce=q);return q}; u0a=function(n){var q={tick:{},info:{}};g.nQ("ytcsi."+(n||"")+"data_",q);return q}; Gj=function(){var n=g.qD("ytcsi.debug");n||(n=[],g.nQ("ytcsi.debug",n),g.nQ("ytcsi.reference",{}));return n}; KD=function(n){n=n||"";var q=Axk();if(q[n])return q[n];var M=Gj(),t={timerName:n,info:{},tick:{},span:{},jspbInfo:[]};M.push(t);return q[n]=t}; mHs=function(n){n=n||"";var q=Axk();q[n]&&delete q[n];var M=Gj(),t={timerName:n,info:{},tick:{},span:{},jspbInfo:[]};M.push(t);q[n]=t}; Axk=function(){var n=g.qD("ytcsi.reference");if(n)return n;Gj();return g.qD("ytcsi.reference")}; k2=function(n){return $Ha[n]||"LATENCY_ACTION_UNKNOWN"}; bZ=function(n,q){dw.call(this,1,arguments);this.timer=q}; d5=function(){this.X=0}; NK=function(){d5.instance||(d5.instance=new d5);return d5.instance}; g5=function(n,q){Oq[q]=Oq[q]||{count:0};var M=Oq[q];M.count++;M.time=(0,g.jt)();n.X||(n.X=g.JJ(0,function(){var t=(0,g.jt)(),c;for(c in Oq)Oq[c]&&t-Oq[c].time>6E4&&delete Oq[c];n&&(n.X=0)},5E3)); return M.count>5?(M.count===6&&Math.random()*1E5<1&&(M=new g.aE("CSI data exceeded logging limit with key",q.split("_")),q.indexOf("plev")>=0||g.PJ(M)),!0):!1}; Fuu=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; ZM1=function(){var n;if(g.EH("csi_use_performance_navigation_timing")){var q,M,t,c=eh==null?void 0:(n=eh.getEntriesByType)==null?void 0:(q=n.call(eh,"navigation"))==null?void 0:(M=q[0])==null?void 0:(t=M.toJSON)==null?void 0:t.call(M);c?(c.requestStart=Eq(c.requestStart),c.responseEnd=Eq(c.responseEnd),c.redirectStart=Eq(c.redirectStart),c.redirectEnd=Eq(c.redirectEnd),c.domainLookupEnd=Eq(c.domainLookupEnd),c.connectStart=Eq(c.connectStart),c.connectEnd=Eq(c.connectEnd),c.responseStart=Eq(c.responseStart), c.secureConnectionStart=Eq(c.secureConnectionStart),c.domainLookupStart=Eq(c.domainLookupStart),c.isPerformanceNavigationTiming=!0,n=c):n=eh.timing}else n=g.EH("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(eh.timing)):eh.timing;return n}; Eq=function(n){return Math.round(hI()+n)}; hI=function(){return(g.EH("csi_use_time_origin")||g.EH("csi_use_time_origin_tvhtml5"))&&eh.timeOrigin?Math.floor(eh.timeOrigin):eh.timing.navigationStart}; yT=function(n,q){W_("_start",n,q)}; sq=function(n,q){if(!g.EH("web_csi_action_sampling_enabled")||!MK(q).actionDisabled){var M=KD(q||"");kH(M.info,n);n.loadType&&(M=n.loadType,iZ(q).loadType=M);kH(DHa(q),n);M=Y2(q);q=MK(q).cttAuthInfo;NK().info(n,M,q)}}; ags=function(){var n,q,M,t;return((t=Ph().resolve(Sz(tW))==null?void 0:(n=Gq())==null?void 0:(q=n.loggingHotConfig)==null?void 0:(M=q.csiConfig)==null?void 0:M.debugTicks)!=null?t:[]).map(function(c){return Object.values(c)[0]})}; W_=function(n,q,M){if(!g.EH("web_csi_action_sampling_enabled")||!MK(M).actionDisabled){var t=Y2(M),c;if(c=g.EH("web_csi_debug_sample_enabled")&&t){(Ph().resolve(Sz(tW))==null?0:Gq())&&!Rik&&(Rik=!0,W_("gcfl",(0,g.jt)(),M));var Y,G,k;c=(Ph().resolve(Sz(tW))==null?void 0:(Y=Gq())==null?void 0:(G=Y.loggingHotConfig)==null?void 0:(k=G.csiConfig)==null?void 0:k.debugSampleWeight)||0;if(Y=c!==0)b:{Y=ags();if(Y.length>0)for(G=0;GM.duration?t:M},{duration:0}))&&q.startTime>0&&q.responseEnd>0&&(W_("wffs",Eq(q.startTime)),W_("wffe",Eq(q.responseEnd)))}; rxs=function(n,q,M){eh&&eh.measure&&(n.startsWith("measure_")||(n="measure_"+n),M?eh.measure(n,q,M):q?eh.measure(n,q):eh.measure(n))}; xHu=function(n){var q=Xs("aft",n);if(q)return q;q=g.RZ((n||"")+"TIMING_AFT_KEYS",["ol"]);for(var M=q.length,t=0;t0&&sq(q);q={isNavigation:!0,actionType:k2(g.RZ("TIMING_ACTION"))};var M=g.RZ("PREVIOUS_ACTION");M&&(q.previousAction=k2(M));if(M=g.RZ("CLIENT_PROTOCOL"))q.httpProtocol=M;if(M=g.RZ("CLIENT_TRANSPORT"))q.transportProtocol=M;(M=g.ye())&&M!=="UNDEFINED_CSN"&&(q.clientScreenNonce=M);M=zij();if(M===1||M===-1)q.isVisible= !0;M=iZ().loadType==="cold";var t=Bz_();M||(M=t.yt_lt==="cold");if(M){q.loadType="cold";M=Bz_();t=ZM1();var c=hI(),Y=g.RZ("CSI_START_TIMESTAMP_MILLIS",0);Y>0&&!g.EH("embeds_web_enable_csi_start_override_killswitch")&&(c=Y);c&&(W_("srt",t.responseStart),M.prerender!==1&&yT(c));M=nTJ();M>0&&W_("fpt",M);M=ZM1();M.isPerformanceNavigationTiming&&sq({performanceNavigationTiming:!0},void 0);W_("nreqs",M.requestStart,void 0);W_("nress",M.responseStart,void 0);W_("nrese",M.responseEnd,void 0);M.redirectEnd- M.redirectStart>0&&(W_("nrs",M.redirectStart,void 0),W_("nre",M.redirectEnd,void 0));M.domainLookupEnd-M.domainLookupStart>0&&(W_("ndnss",M.domainLookupStart,void 0),W_("ndnse",M.domainLookupEnd,void 0));M.connectEnd-M.connectStart>0&&(W_("ntcps",M.connectStart,void 0),W_("ntcpe",M.connectEnd,void 0));M.secureConnectionStart>=hI()&&M.connectEnd-M.secureConnectionStart>0&&(W_("nstcps",M.secureConnectionStart,void 0),W_("ntcpe",M.connectEnd,void 0));eh&&"getEntriesByType"in eh&&CQj();M=[];if(document.querySelector&& eh&&eh.getEntriesByName)for(var G in It)It.hasOwnProperty(G)&&(t=It[G],VtR(G,t)&&M.push(t));if(M.length>0)for(q.resourceInfo=[],G=g.S(M),M=G.next();!M.done;M=G.next())q.resourceInfo.push({resourceCache:M.value})}sq(q);q=c_();q.preLoggedGelInfos||(q.preLoggedGelInfos=[]);G=q.preLoggedGelInfos;q=DHa();M=void 0;for(t=0;t-1&&(delete lf["@type"],V=lf);I&&n.W.has(I)&&n.W.delete(I);((gT=q.config)==null?0:gT.WvJ)&&H_(q.config.WvJ);if(V||(ND=n.Z)==null||!ND.eQ1(q.input,q.Ji)){uf.Fy(15);break}return g.U(uf,n.Z.u1J(q.input,q.Ji),16);case 16:V=uf.W;case 15:return W8d(n, V,q),((V1=q.config)==null?0:V1.s1J)&&H_(q.config.s1J),t(),uf.return(V||void 0)}})}; OEd=function(n,q){a:{n=n.Ea;var M,t=(M=g.R(q,HMa))==null?void 0:M.signal;if(t&&n.AC&&(M=n.AC[t])){var c=M();break a}var Y;if((M=(Y=g.R(q,Lus))==null?void 0:Y.request)&&n.jw&&(Y=n.jw[M])){c=Y();break a}for(c in q)if(n.Rq[c]&&(q=n.Rq[c])){c=q();break a}c=void 0}if(c!==void 0)return Promise.resolve(c)}; ey1=function(n,q,M){var t,c,Y,G,k,b,d;return g.u(function(N){if(N.X==1){Y=((t=q)==null?void 0:(c=t.XN)==null?void 0:c.identity)||bx;b=(G=q)==null?void 0:(k=G.XN)==null?void 0:k.sessionIndex;var O=g.lg(n.X.CQ(Y,{sessionIndex:b}));return g.U(N,O,2)}d=N.W;return N.return(Promise.resolve(Object.assign({},vcC(M),d)))})}; gTj=function(n,q,M){var t,c=(q==null?void 0:(t=q.XN)==null?void 0:t.identity)||bx,Y;q=q==null?void 0:(Y=q.XN)==null?void 0:Y.sessionIndex;n=n.X.CQ(c,{sessionIndex:q});return Object.assign({},vcC(M),n)}; Df=function(){}; AI=function(){}; mG=function(n){this.C=n}; $2=function(){}; Fs=function(){}; Zf=function(){}; at=function(){}; g.Rt=function(n,q){var M=g.Fm.apply(2,arguments);n=n===void 0?0:n;g.aE.call(this,q,M);this.errorType=n;Object.setPrototypeOf(this,this.constructor.prototype)}; ot=function(n,q,M,t){this.X=n;this.W=q;this.Z=M;this.J=t}; skJ=function(n,q,M){if(n.X){var t=d$(IV(q,"key"))||"/UNKNOWN_PATH";n.X.start(t)}t=M;g.EH("wug_networking_gzip_request")&&(t=$N1(M));var c;return new ((c=n.J)!=null?c:window.Request)(q,t)}; g.zj=function(n,q){if(!w5){var M=Ph();Ir(M,{Zd:X9k,j6:ot});var t={Rq:{feedbackEndpoint:xB($2),modifyChannelNotificationPreferenceEndpoint:xB(Fs),playlistEditEndpoint:xB(Zf),shareEntityEndpoint:xB(mG),subscribeEndpoint:xB(Df),unsubscribeEndpoint:xB(AI),webPlayerShareEntityServiceEndpoint:xB(at)}},c=VQ.getInstance(),Y={};c&&(Y.client_location=c);n===void 0&&(n=JQs());q===void 0&&(q=M.resolve(X9k));Nw1(t,q,n,Y);Ir(M,{Zd:jkm,ox:Uq.instance});w5=M.resolve(jkm)}return w5}; SYJ=function(n){var q=new b$;if(n.interpreterJavascript){var M=v4f(n.interpreterJavascript);M=yl(M).toString();var t=new KY;Ar(t,6,M);HW(q,KY,1,t,CH)}else n.interpreterUrl&&(M=y8(n.interpreterUrl),M=ii(M).toString(),t=new kC,Ar(t,4,M),HW(q,kC,2,t,CH));n.interpreterHash&&me(q,3,n.interpreterHash,CH);n.program&&me(q,4,n.program,CH);n.globalName&&me(q,5,n.globalName,CH);n.clientExperimentsStateBlob&&me(q,7,n.clientExperimentsStateBlob,CH);return q}; JI=function(n){var q={};n=n.split("&");n=g.S(n);for(var M=n.next();!M.done;M=n.next())M=M.value.split("="),M.length===2&&(q[M[0]]=M[1]);return q}; LtJ=function(){if(g.EH("bg_st_hr"))return"havuokmhhs-0";var n,q=((n=globalThis.performance)==null?void 0:n.timeOrigin)||0;return"havuokmhhs-"+Math.floor(q)}; VT=function(n){this.X=n}; IEu=function(){return new Promise(function(n){var q=window;q.ntpevasrs!==void 0?n(new VT(q.ntpevasrs)):(q.ntpqfbel===void 0&&(q.ntpqfbel=[]),q.ntpqfbel.push(function(M){n(new VT(M))}))})}; L8s=function(){if(QY()){var n=g.RZ("PLAYER_VARS",{});if(g.eL(n,"privembed",!1)!="1"&&!s8d(n)){var q=function(){CD=!0;"google_ad_status"in window?aZ("DCLKSTAT",1):aZ("DCLKSTAT",2)}; try{g.qi(fEC,q)}catch(M){}HE1.push(g.$D.yP(function(){if(!(CD||"google_ad_status"in window)){try{if(fEC.toString()&&q){var M=""+g.KQ(q),t=yoa[M];t&&g.pE(t)}}catch(c){}CD=!0;aZ("DCLKSTAT",3)}},5E3))}}}; r5=function(){var n=Number(g.RZ("DCLKSTAT",0));return isNaN(n)?0:n}; no=function(n,q,M){var t=this;this.network=n;this.options=q;this.W=M;this.X=null;if(q.SYx){var c=new g.NA;this.X=c.promise;g.pa.ytAtRC&&zJ(function(){var Y,G;return g.u(function(k){if(k.X==1){if(!g.pa.ytAtRC)return k.return();Y=x2(null);return g.U(k,QT(t,Y),2)}G=k.W;g.pa.ytAtRC&&g.pa.ytAtRC(JSON.stringify(G));g.Sk(k)})},2); IEu().then(function(Y){var G,k,b,d;return g.u(function(N){if(N.X==1)return Y.bindInnertubeChallengeFetcher(function(O){return QT(t,x2(O))}),g.U(N,pq(),2); G=N.W;k=Y.getLatestChallengeResponse();b=k.challenge;if(!b)throw Error("BGE_MACIL");d={challenge:b,Gn:JI(b),WA:G,bgChallenge:new b$};c.resolve(d);Y.registerChallengeFetchedCallback(function(O){O=O.challenge;if(!O)throw Error("BGE_MACR");O={challenge:O,Gn:JI(O),WA:G,bgChallenge:new b$};t.X=Promise.resolve(O)}); g.Sk(N)})})}else q.preload&&PxC(this,new Promise(function(Y){g.JJ(0,function(){Y(pD(t))},0)}))}; x2=function(n){var q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};n&&(q.interpreterHash=n);return q}; pD=function(n,q){q=q===void 0?0:q;var M,t,c,Y,G,k,b,d,N,O,e,E;return g.u(function(h){switch(h.X){case 1:M=x2(eP().X);if(g.EH("att_fet_ks"))return g.Ij(h,7),g.U(h,QT(n,M),9);g.Ij(h,4);return g.U(h,vTd(n,M),6);case 6:G=h.W;c=G.pAm;Y=G.I6b;t=G;g.vd(h,3);break;case 4:return g.TU(h),g.PJ(Error("Failed to fetch attestation challenge after "+(q+" attempts; not retrying for 24h."))),qt(n,864E5),h.return({challenge:"",Gn:{},WA:void 0,bgChallenge:void 0});case 9:t=h.W;if(!t)throw Error("Fetching Attestation challenge returned falsy"); if(!t.challenge)throw Error("Missing Attestation challenge");c=t.challenge;Y=JI(c);if("c1a"in Y&&(!t.bgChallenge||!t.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.vd(h,3);break;case 7:k=g.TU(h);g.PJ(k);q++;if(q>=5)return g.PJ(Error("Failed to fetch attestation challenge after "+(q+" attempts; not retrying for 24h."))),qt(n,864E5),h.return({challenge:"",Gn:{},WA:void 0,bgChallenge:void 0});b=1E3*Math.pow(2,q-1)+Math.random()*1E3;return h.return(new Promise(function(I){g.JJ(0, function(){I(pD(n,q))},b)})); case 3:d=Number(Y.t)||7200;qt(n,d*1E3);N=void 0;if(!("c1a"in Y&&t.bgChallenge)){h.Fy(10);break}O=SYJ(t.bgChallenge);g.Ij(h,11);return g.U(h,fLu(eP(),O),13);case 13:g.vd(h,12);break;case 11:return e=g.TU(h),g.PJ(e),h.return({challenge:c,Gn:Y,WA:N,bgChallenge:O});case 12:return g.Ij(h,14),N=new Oo({challenge:O,uq:{ke:"aGIf"}}),g.U(h,N.Gq,16);case 16:g.vd(h,10);break;case 14:E=g.TU(h),g.PJ(E),N=void 0;case 10:return h.return({challenge:c,Gn:Y,WA:N,bgChallenge:O})}})}; QT=function(n,q){var M;return g.u(function(t){M=n.W;if(!M||M.nT())return t.return(QT(n.network,q));lZ("att_pna",void 0,"attestation_challenge_fetch");return t.return(new Promise(function(c){M.td("publicytnetworkstatus-online",function(){QT(n.network,q).then(c)})}))})}; TwR=function(n){if(!n)throw Error("Fetching Attestation challenge returned falsy");if(!n.challenge)throw Error("Missing Attestation challenge");var q=n.challenge,M=JI(q);if("c1a"in M&&(!n.bgChallenge||!n.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},n,{pAm:q,I6b:M})}; vTd=function(n,q){var M,t,c,Y,G;return g.u(function(k){switch(k.X){case 1:M=void 0,t=0,c={};case 2:if(!(t<5)){k.Fy(4);break}if(!(t>0)){k.Fy(5);break}c.D0=1E3*Math.pow(2,t-1)+Math.random()*1E3;return g.U(k,new Promise(function(b){return function(d){g.JJ(0,function(){d(void 0)},b.D0)}}(c)),5); case 5:return g.Ij(k,7),g.U(k,QT(n,q),9);case 9:return Y=k.W,k.return(TwR(Y));case 7:M=G=g.TU(k),G instanceof Error&&g.PJ(G);case 8:t++;c={D0:void 0};k.Fy(2);break;case 4:throw M;}})}; PxC=function(n,q){n.X=q}; lEU=function(n){var q,M,t;return g.u(function(c){if(c.X==1)return g.U(c,Promise.race([n.X,null]),2);q=c.W;var Y=pD(n);n.X=Y;(M=q)==null||(t=M.WA)==null||t.dispose();g.Sk(c)})}; qt=function(n,q){function M(){var c;return g.u(function(Y){c=t-Date.now();return c<1E3?g.U(Y,lEU(n),0):(zJ(M,0,Math.min(c,6E4)),Y.Fy(0))})} var t=Date.now()+q;M()}; U2R=function(n,q){return new Promise(function(M){g.JJ(0,function(){M(q())},n)})}; g.uts=function(n,q){var M;return g.u(function(t){var c=g.qD("yt.aba.att");return(M=c?c:no.instance!==void 0?no.instance.Z.bind(no.instance):null)?t.return(M("ENGAGEMENT_TYPE_PLAYBACK",n,q)):t.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.Bwj=function(){var n;return(n=(n=g.qD("yt.aba.att2"))?n:no.instance!==void 0?no.instance.J.bind(no.instance):null)?n():Promise.resolve(!1)}; AWm=function(n,q){var M=g.qD("ytDebugData.callbacks");M||(M={},g.nQ("ytDebugData.callbacks",M));if(g.EH("web_dd_iu")||D2d.includes(n))M[n]=q}; Mt=function(){var n=m2R;var q=q===void 0?[]:q;var M=M===void 0?[]:M;q=SNf.apply(null,[I5s.apply(null,g.EJ(q))].concat(g.EJ(M)));this.store=H1j(n,void 0,q)}; g.iS=function(n,q,M){for(var t=Object.assign({},n),c=g.S(Object.keys(q)),Y=c.next();!Y.done;Y=c.next()){Y=Y.value;var G=n[Y],k=q[Y];if(k===void 0)delete t[Y];else if(G===void 0)t[Y]=k;else if(Array.isArray(k)&&Array.isArray(G))t[Y]=M?[].concat(g.EJ(G),g.EJ(k)):k;else if(!Array.isArray(k)&&g.Yw(k)&&!Array.isArray(G)&&g.Yw(G))t[Y]=g.iS(G,k,M);else if(typeof k===typeof G)t[Y]=k;else return q=new g.aE("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:Y,rcl:G,updateValue:k}),g.Ly(q), n}return t}; tN=function(n){var q=this;n=n===void 0?[]:n;this.X=[];this.Z=this.W=0;this.J=void 0;this.totalLength=0;n.forEach(function(M){q.append(M)})}; $2_=function(n,q){return n.X.length===0?!1:(n=n.X[n.X.length-1])&&n.buffer===q.buffer&&n.byteOffset+n.length===q.byteOffset}; cY=function(n,q){q=g.S(q.X);for(var M=q.next();!M.done;M=q.next())n.append(M.value)}; YV=function(n,q,M){return n.split(q).vR.split(M).b5}; Go=function(n){n.J=void 0;n.W=0;n.Z=0}; Ko=function(n,q,M){n.isFocused(q);return q-n.Z+M<=n.X[n.W].length}; F8k=function(n){if(!n.J){var q=n.X[n.W];n.J=new DataView(q.buffer,q.byteOffset,q.length)}return n.J}; ZEs=function(n,q,M){q=q===void 0?0:q;M=M===void 0?-1:M;if(!n.totalLength||!M)return new DataView(new ArrayBuffer(0));M<0&&(M=n.totalLength-q);n.focus(q);if(!Ko(n,q,M)){var t=n.W,c=n.Z;n.focus(q+M-1);c=new Uint8Array(n.Z+n.X[n.W].length-c);for(var Y=0,G=t;G<=n.W;G++)c.set(n.X[G],Y),Y+=n.X[G].length;n.X.splice(t,n.W-t+1,c);Go(n);n.focus(q)}t=n.X[n.W];return new DataView(t.buffer,t.byteOffset+q-n.Z,M)}; kV=function(n,q,M){n=ZEs(n,q===void 0?0:q,M===void 0?-1:M);return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}; bS=function(n,q,M){n=kV(n,q===void 0?0:q,M===void 0?-1:M);q=new Uint8Array(n.length);try{q.set(n)}catch(t){for(M=0;M>10;Y=56320|Y&1023}gb[c++]=Y}}Y=String.fromCharCode.apply(String,gb); c<1024&&(Y=Y.substring(0,c));M.push(Y)}return M.join("")}; hN=function(n,q){var M;if((M=E4)==null?0:M.encodeInto)return q=E4.encodeInto(n,q),q.read>6|192:((c&64512)===55296&&t+1>18|240,q[M++]=c>>12&63|128):q[M++]=c>>12|224,q[M++]=c>>6&63|128),q[M++]=c&63|128)}return M}; WY=function(n){if(E4)return E4.encode(n);var q=new Uint8Array(Math.ceil(n.length*1.2)),M=hN(n,q);q.lengthM&&(q=q.subarray(0,M));return q}; yN=function(n){this.X=n;this.pos=0;this.W=-1}; s4=function(n){var q=db(n.X,n.pos);++n.pos;if(q<128)return q;for(var M=q&127,t=1;q>=128;)q=db(n.X,n.pos),++n.pos,t*=128,M+=(q&127)*t;return M}; Xd=function(n,q){var M=n.W;for(n.W=-1;n.pos+1<=n.X.totalLength;){M<0&&(M=s4(n));var t=M>>3,c=M&7;if(t===q)return!0;if(t>q){n.W=M;break}M=-1;switch(c){case 0:s4(n);break;case 1:n.pos+=8;break;case 2:t=s4(n);n.pos+=t;break;case 5:n.pos+=4}}return!1}; j4=function(n,q){if(Xd(n,q))return s4(n)}; oT1=function(n,q){if(Xd(n,q))return q=kV(n.X,n.pos,8),n.pos+=8,(new DataView(q.buffer,q.byteOffset,q.byteLength)).getFloat64(0,!0)}; S4=function(n,q){if(Xd(n,q))return!!s4(n)}; I1=function(n,q){if(Xd(n,q)){q=s4(n);var M=kV(n.X,n.pos,q);n.pos+=q;return M}}; fo=function(n,q){if(n=I1(n,q))return g.e4(n)}; HY=function(n,q,M){if(n=I1(n,q))return M(new yN(new tN([n])))}; Lo=function(n,q){for(var M=[];Xd(n,q);)M.push(s4(n));return M.length?M:void 0}; PY=function(n,q,M){for(var t=[],c;c=I1(n,q);)t.push(M(new yN(new tN([c]))));return t.length?t:void 0}; vY=function(n,q){n=n instanceof Uint8Array?new tN([n]):n;return q(new yN(n))}; w91=function(n,q){n=new Uint8Array(n);q&&n.set(q);return n}; zys=function(n){this.pos=0;this.W=[];this.X=w91(n===void 0?4096:n);this.view=new DataView(this.X.buffer,this.X.byteOffset,this.X.byteLength)}; To=function(n,q){q=n.pos+q;if(!(n.X.length>=q)){for(var M=n.X.length*2;M268435455){To(n,4);for(var M=q&1073741823,t=0;t<4;t++)n.view.setUint8(n.pos,M&127|128),M>>=7,n.pos+=1;q=Math.floor(q/268435456)}for(To(n,4);q>127;)n.view.setUint8(n.pos,q&127|128),q>>=7,n.pos+=1;n.view.setUint8(n.pos,q);n.pos+=1}; U4=function(n,q,M){M!==void 0&&(lS(n,q*8),lS(n,M))}; uS=function(n,q,M){M!==void 0&&U4(n,q,M?1:0)}; BY=function(n,q,M){M!==void 0&&(lS(n,q*8+2),q=M.length,lS(n,q),To(n,q),n.X.set(M,n.pos),n.pos+=q)}; zo=function(n,q,M){M!==void 0&&(JWR(n,q,Math.ceil(Math.log2(M.length*4+2)/7)),To(n,M.length*1.2),q=hN(M,n.X.subarray(n.pos)),n.pos+q>n.X.length&&(To(n,q),q=hN(M,n.X.subarray(n.pos))),n.pos+=q,V7C(n))}; JWR=function(n,q,M){M=M===void 0?2:M;lS(n,q*8+2);n.W.push(n.pos);n.W.push(M);n.pos+=M}; V7C=function(n){for(var q=n.W.pop(),M=n.W.pop(),t=n.pos-M-q;q--;){var c=q?128:0;n.view.setUint8(M++,t&127|c);t>>=7}}; JN=function(n,q,M,t,c){M&&(JWR(n,q,c===void 0?3:c),t(n,M),V7C(n))}; g.VN=function(n,q){var M=new zys(4096);q(M,n);return new Uint8Array(M.X.buffer,M.X.byteOffset,M.pos)}; g.Co=function(n){var q=new yN(new tN([Tf(decodeURIComponent(n))]));n=fo(q,2);q=j4(q,4);var M=Cxu[q];if(typeof M==="undefined")throw n=new g.aE("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:q}),g.Ly(n),n;return{Q7:q,entityType:M,entityId:n}}; g.rb=function(n,q){var M=M===void 0?0:M;var t=new zys;BY(t,2,WY(n));n=rWC[q];if(typeof n==="undefined")throw M=new g.aE("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:q}),g.Ly(M),M;U4(t,4,n);U4(t,5,1);q=new Uint8Array(t.X.buffer,t.X.byteOffset,t.pos);return encodeURIComponent(g.Pn(q,M))}; xV=function(n,q,M,t){if(t===void 0)return t=Object.assign({},n[q]||{}),M=(delete t[M],t),t={},Object.assign({},n,(t[q]=M,t));var c={},Y={};return Object.assign({},n,(Y[q]=Object.assign({},n[q],(c[M]=t,c)),Y))}; x2J=function(n,q,M,t,c){var Y=n[q];if(Y==null||!Y[M])return n;t=g.iS(Y[M],t,c==="REPEATED_FIELDS_MERGE_OPTION_APPEND");c={};Y={};return Object.assign({},n,(Y[q]=Object.assign({},n[q],(c[M]=t,c)),Y))}; QkU=function(n,q){n=n===void 0?{}:n;switch(q.type){case "ENTITY_LOADED":return q.payload.reduce(function(t,c){var Y,G=(Y=c.options)==null?void 0:Y.persistenceOption;if(G&&G!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&G!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return t;if(!c.entityKey)return g.Ly(Error("Missing entity key")),t;if(c.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!c.payload)return c=new g.aE("REPLACE entity mutation is missing a payload",{entityKey:c.entityKey}),g.Ly(c),t;var k=g.tf(c.payload); return xV(t,k,c.entityKey,c.payload[k])}if(c.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{c=c.entityKey;try{var b=g.Co(c).entityType;k=xV(t,b,c);break a}catch(O){if(O instanceof Error){c=new g.aE("Failed to deserialize entity key",{entityKey:c,originalMessage:O.message});g.Ly(c);k=t;break a}throw O;}k=void 0}return k}if(c.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!c.payload)return c=new g.aE("UPDATE entity mutation is missing a payload",{entityKey:c.entityKey}),g.Ly(c),t;k=g.tf(c.payload);var d,N;return x2J(t, k,c.entityKey,c.payload[k],(d=c.fieldMask)==null?void 0:(N=d.mergeOptions)==null?void 0:N.repeatedFieldsMergeOption)}return t},n); case "REPLACE_ENTITY":var M=q.payload;return xV(n,M.entityType,M.key,M.vx);case "REPLACE_ENTITIES":return Object.keys(q.payload).reduce(function(t,c){var Y=q.payload[c];return Object.keys(Y).reduce(function(G,k){return xV(G,c,k,Y[k])},t)},n); case "UPDATE_ENTITY":return M=q.payload,x2J(n,M.entityType,M.key,M.vx,M.IVx);default:return n}}; QN=function(n,q,M){return n[q]?n[q][M]||null:null}; po=function(n){return window.Int32Array?new Int32Array(n):Array(n)}; cK=function(n){g.F.call(this);this.counter=[0,0,0,0];this.W=new Uint8Array(16);this.X=16;if(!p9f){var q,M=new Uint8Array(256),t=new Uint8Array(256);var c=1;for(q=0;q<256;q++)M[c]=q,t[q]=c,c^=c<<1^(c>>7&&283);nT=new Uint8Array(256);q9=po(256);M9=po(256);iT=po(256);tn=po(256);for(var Y=0;Y<256;Y++){c=Y?t[255^M[Y]]:0;c^=c<<1^c<<2^c<<3^c<<4;c=c&255^c>>>8^99;nT[Y]=c;q=c<<1^(c>>7&&283);var G=q^c;q9[Y]=q<<24|c<<16|c<<8|G;M9[Y]=G<<24|q9[Y]>>>8;iT[Y]=c<<24|M9[Y]>>>8;tn[Y]=c<<24|iT[Y]>>>8}p9f=!0}c=po(44);for(M= 0;M<4;M++)c[M]=n[4*M]<<24|n[4*M+1]<<16|n[4*M+2]<<8|n[4*M+3];for(t=1;M<44;M++)n=c[M-1],M%4||(n=(nT[n>>16&255]^t)<<24|nT[n>>8&255]<<16|nT[n&255]<<8|nT[n>>>24],t=t<<1^(t>>7&&283)),c[M]=c[M-4]^n;this.key=c}; nHf=function(n){for(var q=n.key,M=n.counter[0]^q[0],t=n.counter[1]^q[1],c=n.counter[2]^q[2],Y=n.counter[3]^q[3],G=3;G>=0&&!(n.counter[G]=-~n.counter[G]);G--);for(var k,b,d=4;d<40;)G=q9[M>>>24]^M9[t>>16&255]^iT[c>>8&255]^tn[Y&255]^q[d++],k=q9[t>>>24]^M9[c>>16&255]^iT[Y>>8&255]^tn[M&255]^q[d++],b=q9[c>>>24]^M9[Y>>16&255]^iT[M>>8&255]^tn[t&255]^q[d++],Y=q9[Y>>>24]^M9[M>>16&255]^iT[t>>8&255]^tn[c&255]^q[d++],M=G,t=k,c=b;n=n.W;G=q[40];n[0]=nT[M>>>24]^G>>>24;n[1]=nT[t>>16&255]^G>>16&255;n[2]=nT[c>>8&255]^ G>>8&255;n[3]=nT[Y&255]^G&255;G=q[41];n[4]=nT[t>>>24]^G>>>24;n[5]=nT[c>>16&255]^G>>16&255;n[6]=nT[Y>>8&255]^G>>8&255;n[7]=nT[M&255]^G&255;G=q[42];n[8]=nT[c>>>24]^G>>>24;n[9]=nT[Y>>16&255]^G>>16&255;n[10]=nT[M>>8&255]^G>>8&255;n[11]=nT[t&255]^G&255;G=q[43];n[12]=nT[Y>>>24]^G>>>24;n[13]=nT[M>>16&255]^G>>16&255;n[14]=nT[t>>8&255]^G>>8&255;n[15]=nT[c&255]^G&255}; KT=function(){if(!Yn&&!g.oa){if(G4)return G4;var n;G4=(n=window.crypto)==null?void 0:n.subtle;var q,M,t;if(((q=G4)==null?0:q.importKey)&&((M=G4)==null?0:M.sign)&&((t=G4)==null?0:t.encrypt))return G4;G4=void 0}}; g.dc=function(n){var q=KT();q&&(this.X=new kn(n,q));this.W=new g.bT(n)}; kn=function(n,q){this.W=n;this.subtleCrypto=q}; qck=function(n,q,M){var t,c;return g.u(function(Y){switch(Y.X){case 1:if(n.X){Y.Fy(2);break}return g.U(Y,n.subtleCrypto.importKey("raw",n.W,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:n.X=Y.W;case 2:return t={name:"AES-CTR",counter:M,length:128},g.U(Y,n.subtleCrypto.encrypt(t,n.X,q),4);case 4:return c=Y.W,Y.return(new Uint8Array(c))}})}; g.bT=function(n){this.W=n}; N9=function(n){this.S=new Uint8Array(64);this.Z=new Uint8Array(64);this.J=0;this.C=new Uint8Array(64);this.W=0;this.S.set(n);this.Z.set(n);for(n=0;n<64;n++)this.S[n]^=92,this.Z[n]^=54;this.reset()}; Mz_=function(n,q,M){for(var t=n.N,c=n.X[0],Y=n.X[1],G=n.X[2],k=n.X[3],b=n.X[4],d=n.X[5],N=n.X[6],O=n.X[7],e,E,h,I=0;I<64;)I<16?(t[I]=h=q[M]<<24|q[M+1]<<16|q[M+2]<<8|q[M+3],M+=4):(e=t[I-2],E=t[I-15],h=t[I-7]+t[I-16]+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+((E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3),t[I]=h),e=O+OK[I]+h+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&d^~b&N),E=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&Y^c&G^Y&G),O=e+E,k+=e,I++,I<16?(t[I]=h=q[M]<<24|q[M+1]<<16|q[M+2]<<8|q[M+3],M+=4):(e= t[I-2],E=t[I-15],h=t[I-7]+t[I-16]+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+((E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3),t[I]=h),e=N+OK[I]+h+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&b^~k&d),E=((O>>>2|O<<30)^(O>>>13|O<<19)^(O>>>22|O<<10))+(O&c^O&Y^c&Y),N=e+E,G+=e,I++,I<16?(t[I]=h=q[M]<<24|q[M+1]<<16|q[M+2]<<8|q[M+3],M+=4):(e=t[I-2],E=t[I-15],h=t[I-7]+t[I-16]+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+((E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3),t[I]=h),e=d+OK[I]+h+((G>>>6|G<<26)^(G>>>11|G<<21)^(G>>>25|G<<7))+(G&k^ ~G&b),E=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&O^N&c^O&c),d=e+E,Y+=e,I++,I<16?(t[I]=h=q[M]<<24|q[M+1]<<16|q[M+2]<<8|q[M+3],M+=4):(e=t[I-2],E=t[I-15],h=t[I-7]+t[I-16]+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+((E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3),t[I]=h),e=b+OK[I]+h+((Y>>>6|Y<<26)^(Y>>>11|Y<<21)^(Y>>>25|Y<<7))+(Y&G^~Y&k),E=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&N^d&O^N&O),h=O,O=k,k=h,h=N,N=G,G=h,h=d,d=Y,Y=h,b=c+e,c=e+E,I++;n.X[0]=c+n.X[0]|0;n.X[1]=Y+n.X[1]|0;n.X[2]=G+n.X[2]|0;n.X[3]= k+n.X[3]|0;n.X[4]=b+n.X[4]|0;n.X[5]=d+n.X[5]|0;n.X[6]=N+n.X[6]|0;n.X[7]=O+n.X[7]|0}; tza=function(n){var q=new Uint8Array(32),M=64-n.W;n.W>55&&(M+=64);var t=new Uint8Array(M);t[0]=128;for(var c=n.J*8,Y=1;Y<9;Y++){var G=c%256;t[M-Y]=G;c=(c-G)/256}n.update(t);for(M=0;M<8;M++)q[M*4]=n.X[M]>>>24,q[M*4+1]=n.X[M]>>>16&255,q[M*4+2]=n.X[M]>>>8&255,q[M*4+3]=n.X[M]&255;iBC(n);return q}; iBC=function(n){n.X=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];n.N=[];n.N.length=64;n.J=0;n.W=0}; cYR=function(n){this.X=n}; Ycs=function(n,q,M){n=new N9(n.X);n.update(q);n.update(M);q=tza(n);n.update(n.S);n.update(q);q=tza(n);n.reset();return q}; GEs=function(n){this.W=n}; KHC=function(n,q,M,t){var c,Y,G;return g.u(function(k){switch(k.X){case 1:if(n.X){k.Fy(2);break}return g.U(k,t.importKey("raw",n.W,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:n.X=k.W;case 2:return c=new Uint8Array(q.length+M.length),c.set(q),c.set(M,q.length),Y={name:"HMAC",hash:"SHA-256"},g.U(k,t.sign(Y,n.X,c),4);case 4:return G=k.W,k.return(new Uint8Array(G))}})}; kE_=function(n,q,M){n.Z||(n.Z=new cYR(n.W));return Ycs(n.Z,q,M)}; bBf=function(n,q,M){var t,c;return g.u(function(Y){if(Y.X==1){t=KT();if(!t)return Y.return(kE_(n,q,M));g.Ij(Y,3);return g.U(Y,KHC(n,q,M,t),5)}if(Y.X!=3)return Y.return(Y.W);c=g.TU(Y);g.PJ(c);Yn=!0;return Y.return(kE_(n,q,M))})}; NBm=function(n){for(var q="",M=0;M=0||yK(n,0,"gad_source",n.search(XM))>=0}; srs=function(){this.X=new Map}; jrs=function(n,q){var M=Ph().resolve(XhC);if(yYs(q)){var t=jy(q,"gclid");q={handleEvent:function(k){n&&!n.closed&&typeof n.postMessage==="function"&&k&&k.origin&&k.source===n&&k.data&&k.data.action==="gcl_setup"&&n.postMessage(Object.assign({},{action:"gcl_transfer"},t&&{gclid:t},{gadSource:2}),k.origin)}}; for(var c=g.S(M.X),Y=c.next();!Y.done;Y=c.next()){var G=g.S(Y.value);Y=G.next().value;G=G.next().value;if(Y.closed)try{window.removeEventListener("message",G),M.X.delete(Y)}catch(k){g.Ly(k)}}n&&M.X.size<15&&(M.X.set(n,q),window.addEventListener("message",q))}}; e_=function(n,q,M){if(!q)return n.length>=1?n[n.length-1]:null;for(var t=g.S(n),c=t.next();!c.done;c=t.next())if(c=c.value,c.width&&c.height&&(M&&c.width>=q||!M&&c.height>=q))return c;for(q=n.length-1;q>=0;q--)if(M&&n[q].width||!M&&n[q].height)return n[q];return n[0]}; EK=function(){this.state=1;this.WA=null;this.AG=void 0}; Ids=function(n,q,M,t,c,Y){var G=G===void 0?"trayride":G;M?(n.Va(2),g.qi(g.sk(M),function(){if(window[G])Sca(n,t,G,c);else{n.Va(3);var k=W7k(M),b=document.getElementById(k);b&&(Ed_(k),b.parentNode.removeChild(b));g.PJ(new g.aE("BL:ULB",""+M))}},Y)):q?(Y=g.eO("SCRIPT"),q instanceof Wg?(Y.textContent=yl(q),sp(Y)):Y.textContent=q,Y.nonce=hE(document),document.head.appendChild(Y),document.head.removeChild(Y),window[G]?Sca(n,t,G,c):(n.Va(4),g.PJ(new g.aE("BL:ULBJ")))):g.PJ(new g.aE("BL:ULV"))}; Sca=function(n,q,M,t){n.Va(5);var c=!!n.AG&&fdU.includes(g.bm(n.AG)||"");try{var Y=new Oo({program:q,globalName:M,uq:{disable:!g.EH("att_web_record_metrics")||!g.EH("att_skip_metrics_for_cookieless_domains_ks")&&c,ke:"aGIf"}});Y.Gq.then(function(){n.Va(6);t&&t(q)}); n.Dz(Y)}catch(G){n.Va(7),G instanceof Error&&g.PJ(G)}}; hn=function(){var n=g.qD("yt.abuse.playerAttLoader");return n&&["bgvma","bgvmb","bgvmc"].every(function(q){return q in n})?n:null}; WK=function(){EK.apply(this,arguments)}; yE=function(){}; HBJ=function(n,q,M){for(var t=!1,c=g.S(n.w9.entries()),Y=c.next();!Y.done;Y=c.next())Y=g.S(Y.value).next().value,Y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Y.Ox==="core"&&(t=!0);if(t){a:if(!M){n=g.S(n.w9.entries());for(M=n.next();!M.done;M=n.next())if(t=g.S(M.value),M=t.next().value,t=t.next().value,M.slotType==="SLOT_TYPE_IN_PLAYER"&&M.Ox==="core"){M=t.layoutId;break a}M=void 0}M?q.x6(M):Kz("No triggering layout ID available when attempting to mute.")}}; sK=function(n,q){this.VC=n;this.xV=q}; XQ=function(){}; j_=function(){}; Paf=function(n){g.F.call(this);var q=this;this.vn=n;this.X=new Map;S_(this,"commandExecutorCommand",function(M,t,c){LHd(q,M.commands,t,c)}); S_(this,"clickTrackingParams",function(){})}; vHU=function(n,q){S_(n,q.O3(),function(M,t,c){q.eg(M,t,c)})}; S_=function(n,q,M){n.qm();n.X.get(q)&&g.Ly(Error("Extension name "+q+" already registered"));n.X.set(q,M)}; LHd=function(n,q,M,t){q=q===void 0?[]:q;n.qm();var c=[],Y=[];q=g.S(q);for(var G=q.next();!G.done;G=q.next())G=G.value,g.R(G,TBf)||g.R(G,ldU)?c.push(G):Y.push(G);c=g.S(c);for(q=c.next();!q.done;q=c.next())In(n,q.value,M,t);Y=g.S(Y);for(c=Y.next();!c.done;c=Y.next())In(n,c.value,M,t)}; In=function(n,q,M,t){n.qm();q.loggingUrls&&UiJ(n,"loggingUrls",q.loggingUrls,M,t);q=g.S(Object.entries(q));for(var c=q.next();!c.done;c=q.next()){var Y=g.S(c.value);c=Y.next().value;Y=Y.next().value;c==="openPopupAction"?n.vn.get().YH("innertubeCommand",{openPopupAction:Y}):c==="confirmDialogEndpoint"?n.vn.get().YH("innertubeCommand",{confirmDialogEndpoint:Y}):uvu.hasOwnProperty(c)||UiJ(n,c,Y,M,t)}}; UiJ=function(n,q,M,t,c){if((n=n.X.get(q))&&typeof n==="function")try{n(M,t,c)}catch(Y){g.Ly(Y)}else q=new g.aE("Unhandled field",q),g.PJ(q)}; fT=function(n,q,M){this.WI=n;this.X=q;this.Gs=M;Ir(Ph(),{Zd:XhC,j6:srs})}; HK=function(n){this.value=n}; LT=function(n){this.value=n}; PK=function(n){this.value=n}; vK=function(n){this.value=n}; T4=function(n){this.value=n}; lT=function(n){this.value=n}; UK=function(n){this.value=n}; uT=function(){HK.apply(this,arguments)}; BK=function(n){this.value=n}; De=function(n){this.value=n}; An=function(n){this.value=n}; ml=function(n){this.value=n}; $n=function(n){this.value=n}; FQ=function(n){this.value=n}; Ze=function(n){this.value=n}; an=function(n){this.value=n}; Rn=function(n){this.value=n}; on=function(n){this.value=n}; wc=function(){HK.apply(this,arguments)}; z4=function(n){this.value=n}; Jn=function(n){this.value=n}; VE=function(n){this.value=n}; CT=function(n){this.value=n}; rc=function(n){this.value=n}; xn=function(n){this.value=n}; QE=function(n){this.value=n}; pT=function(n){this.value=n}; nj=function(n){this.value=n}; q1=function(n){this.value=n}; M1=function(n){this.value=n}; i0=function(n){this.value=n}; tm=function(n){this.value=n}; ce=function(n){this.value=n}; Yg=function(n){this.value=n}; Gm=function(n){this.value=n}; Kj=function(n){this.value=n}; kg=function(n){this.value=n}; b0=function(n){this.value=n}; dN=function(n){this.value=n}; N1=function(n){this.value=n}; OT=function(n){this.value=n}; gN=function(n){this.value=n}; eR=function(n){this.value=n}; ET=function(n){this.value=n}; hm=function(n){this.value=n}; We=function(n){this.value=n}; yM=function(n){this.value=n}; sT=function(n){this.value=n}; Xi=function(n){this.value=n}; jR=function(n){this.value=n}; SR=function(n){this.value=n}; IK=function(n){this.value=n}; fj=function(n){this.value=n}; He=function(n){this.value=n}; Lj=function(n){this.value=n}; Pe=function(n){this.value=n}; ve=function(n){this.value=n}; Tm=function(n){this.value=n}; l0=function(){HK.apply(this,arguments)}; UT=function(n){this.value=n}; u0=function(){HK.apply(this,arguments)}; Be=function(){HK.apply(this,arguments)}; D3=function(){HK.apply(this,arguments)}; Am=function(){HK.apply(this,arguments)}; $g=function(){HK.apply(this,arguments)}; Fi=function(n){this.value=n}; Z3=function(n){this.value=n}; aK=function(n){this.value=n}; RK=function(n){this.value=n}; oK=function(n){this.value=n}; zm=function(n,q,M){if(M&&!M.includes(n.layoutType))return!1;q=g.S(q);for(M=q.next();!M.done;M=q.next())if(!wN(n.clientMetadata,M.value))return!1;return!0}; Jm=function(){return""}; BBa=function(n,q){switch(n){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return q(n),8}}; VM=function(n,q,M,t){t=t===void 0?!1:t;hF.call(this,n);this.l0=M;this.xx=t;this.args=[];q&&this.args.push(q)}; r=function(n,q,M,t){t=t===void 0?!1:t;hF.call(this,n);this.l0=M;this.xx=t;this.args=[];q&&this.args.push(q)}; Cj=function(n){var q=new Map;n.forEach(function(M){q.set(M.X(),M)}); this.X=q}; wN=function(n,q){return n.X.has(q)}; rN=function(n,q){n=n.X.get(q);if(n!==void 0)return n.get()}; xg=function(n){return Array.from(n.X.keys())}; QM=function(n,q,M){if(M&&M!==n.slotType)return!1;q=g.S(q);for(M=q.next();!M.done;M=q.next())if(!wN(n.clientMetadata,M.value))return!1;return!0}; AYf=function(n){var q;return((q=Dif.get(n))==null?void 0:q.ma)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; nK=function(n,q){var M={type:q.slotType,controlFlowManagerLayer:mis.get(q.Ox)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q.slotEntryTrigger&&(M.entryTriggerType=q.slotEntryTrigger.triggerType);q.slotPhysicalPosition!==1&&(M.slotPhysicalPosition=q.slotPhysicalPosition);if(n){M.debugData={slotId:q.slotId};if(n=q.slotEntryTrigger)M.debugData.slotEntryTriggerData=pj(n);n=q.slotFulfillmentTriggers;M.debugData.fulfillmentTriggerData=[];n=g.S(n);for(var t=n.next();!t.done;t=n.next())M.debugData.fulfillmentTriggerData.push(pj(t.value)); q=q.slotExpirationTriggers;M.debugData.expirationTriggerData=[];q=g.S(q);for(n=q.next();!n.done;n=q.next())M.debugData.expirationTriggerData.push(pj(n.value))}return M}; $if=function(n,q){var M={type:q.layoutType,controlFlowManagerLayer:mis.get(q.Ox)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};n&&(M.debugData={layoutId:q.layoutId});return M}; pj=function(n,q){var M={type:n.triggerType};q!=null&&(M.category=q);n.triggeringSlotId!=null&&(M.triggerSourceData||(M.triggerSourceData={}),M.triggerSourceData.associatedSlotId=n.triggeringSlotId);n.triggeringLayoutId!=null&&(M.triggerSourceData||(M.triggerSourceData={}),M.triggerSourceData.associatedLayoutId=n.triggeringLayoutId);return M}; FHJ=function(n,q,M,t){q={opportunityType:q};n&&(t||M)&&(t=g.Wn(t||[],function(c){return nK(n,c)}),q.debugData=Object.assign({},M&&M.length>0?{associatedSlotId:M}:{},t.length>0?{slots:t}:{})); return q}; Mp=function(n,q){return function(M){return ZB1(qp(n),q.slotId,q.slotType,q.slotPhysicalPosition,q.Ox,q.slotEntryTrigger,q.slotFulfillmentTriggers,q.slotExpirationTriggers,M.layoutId,M.layoutType,M.Ox)}}; ZB1=function(n,q,M,t,c,Y,G,k,b,d,N){return{adClientDataEntry:{slotData:nK(n,{slotId:q,slotType:M,slotPhysicalPosition:t,Ox:c,slotEntryTrigger:Y,slotFulfillmentTriggers:G,slotExpirationTriggers:k,clientMetadata:new Cj([])}),layoutData:$if(n,{layoutId:b,layoutType:d,Ox:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Rm:new Map,clientMetadata:new Cj([]),Dn:{}})}}}; ti=function(n){this.Zk=n;n=Math.random();var q=this.Zk.get();q=g.ic(q.G.T().experiments,"html5_debug_data_log_probability");q=Number.isFinite(q)&&q>=0&&q<=1?q:0;this.X=n1){g.PJ(new g.aE("Exit already started",{current:n.currentState}));var M=!1}else M=!0;if(!M)return!1;n.currentState=2;n.X=q;return!0}; GX=function(n){if(n.currentState!==2)return!1;n.currentState=3;return!0}; hnk=function(n,q){var M=new Map;n=g.S(n);for(var t=n.next();!t.done;t=n.next()){t=t.value;if(t.layoutType==="LAYOUT_TYPE_MEDIA")var c="v";else t.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(c=rN(t.clientMetadata,"metadata_type_linked_in_player_layout_type"),c=c==="LAYOUT_TYPE_ENDCAP"||c==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":c==="LAYOUT_TYPE_SURVEY"?"s":c==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):c="u";M.set(t.layoutId,c);if(c==="u"){var Y={};c=q;t=(Y.c=t.layoutId,Y);c.G.Xy("uct",t)}}n= q.AI();K8={contentCpn:n,vW:M};t={};M=(t.ct=M.size,t.c=n,t);q.G.Xy("acc",M)}; Wy1=function(){K8={contentCpn:"",vW:new Map}}; kJ=function(n){var q;return(q=K8.vW.get(n))!=null?q:"u"}; b_=function(n,q,M){n.G.Xy(q,M);ya1(n)}; szC=function(n){var q=n.layoutId,M=n.QZ;if(n.Bw){var t={};b_(n.WI,"slso",(t.ec=q,t.is=M,t.ctp=kJ(q),t))}}; dy=function(n){var q=n.layoutId,M=n.QZ;if(n.Bw){var t={};b_(n.WI,"slse",(t.ec=q,t.is=M,t.ctp=kJ(q),t))}}; X4d=function(n){var q=n.layoutId,M=n.QZ,t=n.WI;n.Bw&&(n={},b_(t,"sleo",(n.xc=q,n.is=M,n.ctp=kJ(q),n)),ya1(t))}; jzd=function(n){var q=n.cpn,M=n.WI;n=n.QZ;var t=M.AI(),c={};b_(M,"ce",(c.ec=q,c.ia=q!==t,c.r=K8.vW.has(q),c.is=n,c.ctp=kJ(q),c))}; ya1=function(n){if(n.AI()!==K8.contentCpn){var q={};q=(q.c=K8.contentCpn,q);n.G.Xy("ccm",q)}}; Smu=function(n){var q=n.cpn,M=n.WI;n=n.QZ;var t=M.AI(),c={};b_(M,"cx",(c.xc=q,c.ia=q!==t,c.r=K8.vW.has(q),c.is=n,c.ctp=kJ(q),c))}; IXs=function(n){this.params=n;this.X=new Set}; fXs=function(n,q,M){if(!n.X.has(q)){n.X.add(q);var t={};n.params.Tp.Jq(q,Object.assign({},M,(t.p_ac=n.params.adCpn,t.p_isv=n.params.JEs&&n.params.Cu,t)))}}; Ot=function(n,q,M){if(NP(n.params.Tp.Zk.get(),!0)){var t=M.flush,c={};fXs(n,q,(c.cts=M.currentTimeSec,c.f=t,c))}}; H$m=function(n,q){this.WI=n;this.Zk=q}; gy=function(n){var q=[];if(n){n=g.S(Object.entries(n));for(var M=n.next();!M.done;M=n.next()){var t=g.S(M.value);M=t.next().value;t=t.next().value;t!==void 0&&(t=typeof t==="boolean"?""+ +t:(""+t).replace(/[:,=]/g,"_"),q.push(M+"."+t))}}return q.join(";")}; g.eV=function(n,q,M){q=q===void 0?{}:q;this.errorCode=n;this.details=q;this.severity=M===void 0?0:M}; Et=function(n){return n===1||n===2}; hU=function(n,q){q=q===void 0?0:q;if(n instanceof g.eV)return n;n=n&&n instanceof Error?n:Error(""+n);Et(q)?g.Ly(n):g.PJ(n);return new g.eV(q===1?"player.fatalexception":"player.exception",{name:""+n.name,message:""+n.message},q)}; Ly_=function(n,q){function M(){var t=g.Fm.apply(0,arguments);n.removeEventListener("playing",M);q.apply(null,g.EJ(t))} n.addEventListener("playing",M)}; Wt=function(){var n=g.qD("yt.player.utils.videoElement_");n||(n=g.eO("VIDEO"),g.nQ("yt.player.utils.videoElement_",n));return n}; yv=function(n){var q=Wt();return!!(q&&q.canPlayType&&q.canPlayType(n))}; jV=function(n){if(/opus/.test(n)&&g.Xq&&!XA("38")&&!g.Z_())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(n);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(n);if(/webm/.test(n)&&!ECf())return!1;n==='audio/mp4; codecs="mp4a.40.2"'&&(n='video/mp4; codecs="avc1.4d401f"');return!!yv(n)}; P8J=function(n){try{var q=jV('video/mp4; codecs="avc1.42001E"')||jV('video/webm; codecs="vp9"');return(jV('audio/mp4; codecs="mp4a.40.2"')||jV('audio/webm; codecs="opus"'))&&(q||!n)||yv('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(M){return"html5.missingapi"}}; SV=function(){var n=Wt();return!(!n.webkitSupportsPresentationMode||typeof n.webkitSetPresentationMode!=="function")}; Ic=function(){var n=Wt();try{var q=n.muted;n.muted=!q;return n.muted!==q}catch(M){}return!1}; vRJ=function(){var n;return((n=navigator.connection)==null?void 0:n.type)||""}; g.f8=function(){So.apply(this,arguments)}; Ht=function(n,q,M,t,c,Y,G,k){this.sampleRate=n===void 0?0:n;this.numChannels=q===void 0?0:q;this.spatialAudioType=M===void 0?"SPATIAL_AUDIO_TYPE_NONE":M;this.X=t===void 0?!1:t;this.Z=c;this.J=Y;this.audioQuality=G===void 0?"AUDIO_QUALITY_UNKNOWN":G;this.W=k===void 0?!1:k}; UBU=function(n,q){JN(n,2,q.F1,L8,3);JN(n,3,q.innertubeRequest,TWs,3);BY(n,4,q.onesieUstreamerConfig);BY(n,9,q.nR);JN(n,10,q.Ck,Pt,3);JN(n,15,q.reloadPlaybackParams,lXd,3)}; BW1=function(n,q){JN(n,1,q.formatId,vt,3);U4(n,2,q.startTimeMs);U4(n,3,q.durationMs);U4(n,4,q.J9);U4(n,5,q.Je);JN(n,9,q.VpL,uxj,3);JN(n,11,q.oEE,TX,1);JN(n,12,q.qx,TX,1)}; DBR=function(n,q){zo(n,1,q.videoId);U4(n,2,q.lmt)}; uxj=function(n,q){if(q.Z0)for(var M=0;M>31));U4(n,16,q.gly);U4(n,17,q.detailedNetworkType);U4(n,18,q.UF);U4(n,19,q.Tw);U4(n,21,q.T8y);U4(n,23,q.LW);U4(n,28,q.P7);U4(n,29,q.Iis);U4(n,34,q.visibility);M=q.playbackRate;if(M!==void 0){var t=new ArrayBuffer(4);(new Float32Array(t))[0]=M;M=(new Uint32Array(t))[0];if(M!==void 0)for(lS(n,285),To(n,4),t=0;t<4;)n.view.setUint8(n.pos,M&255),M>>=8,n.pos+=1,t+=1}U4(n,36,q.yl); JN(n,38,q.mediaCapabilities,Z$_,3);U4(n,39,q.pHJ);U4(n,40,q.iH);U4(n,44,q.playerState);uS(n,46,q.Vl);U4(n,48,q.n6);U4(n,50,q.pE);U4(n,51,q.OX);U4(n,54,q.yW);if(q.iF)for(M=0;M>31));zo(n,2,q.message)}; rak=function(n,q){U4(n,1,q.clientState);JN(n,2,q.gEx,Vda,1)}; Ja_=function(n,q){BY(n,1,q.zut);JN(n,2,q.ShX,C8U,3);JN(n,3,q.coldStartInfo,rak,3)}; zna=function(n,q){U4(n,1,q.type);BY(n,2,q.value)}; w4d=function(n,q){zo(n,1,q.hl);zo(n,12,q.deviceMake);zo(n,13,q.deviceModel);U4(n,16,q.clientName);zo(n,17,q.clientVersion);zo(n,18,q.osName);zo(n,19,q.osVersion)}; xBm=function(n,q){zo(n,1,q.name);zo(n,2,q.value)}; Ut=function(n,q){zo(n,1,q.url);if(q.gz)for(var M=0;M55?"60":q>49?"50":q>39?"48":"")));this.qualityLabel=n;this.X=b||"";this.primaries=d||""}; m4=function(n,q){var M=Math.max(n,q);n=Math.min(n,q);q=Zr[0];for(var t=0;t=Math.floor(Y*16/9)*1.3||n>=Y*1.3)return q;q=c}return"tiny"}; oc=function(n,q,M){M=M===void 0?{}:M;this.id=n;this.mimeType=q;M.Bb>0||(M.Bb=16E3);Object.assign(this,M);n=g.S(this.id.split(";"));this.itag=n.next().value;this.X=n.next().value;this.containerType=ac(q);this.Ts=Rc[this.itag]||""}; wy=function(n){return n.Ts==="9"||n.Ts==="("||n.Ts==="9h"||n.Ts==="(h"}; vBs=function(n){return n.Ts==="H"||n.Ts==="h"}; zX=function(n){return n.Ts==="9h"||n.Ts==="(h"}; TUk=function(n){return!!n.f8&&!!n.f8.fairplay&&(n.Ts==="("||n.Ts==="(h"||n.Ts==="A"||n.Ts==="MEAC3")||JU&&!!n.f8&&n.Ts==="1e"}; Vv=function(n){return n.Ts==="1"||n.Ts==="1h"||JU&&n.Ts==="1e"}; C8=function(n){return n.Ts==="mac3"||n.Ts==="meac3"||n.Ts==="m"||n.Ts==="i"}; ry=function(n){return n.Ts==="MAC3"||n.Ts==="MEAC3"||n.Ts==="M"||n.Ts==="I"}; g.xJ=function(n){return n.containerType===1}; lqa=function(n){return n.Ts==="("||n.Ts==="(h"||n.Ts==="H"||JU&&n.Ts==="1e"}; Qv=function(n){return n.mimeType==="application/x-mpegURL"}; g.p8=function(n,q){return{itag:+n.itag,lmt:q?0:n.lastModified,xtags:n.X||""}}; UZj=function(n){var q=navigator.mediaCapabilities;if(q==null||!q.decodingInfo||n.Ts==="f")return Promise.resolve();var M={type:n.audio&&n.video?"file":"media-source"};n.video&&(M.video={contentType:n.mimeType,width:n.video.width||640,height:n.video.height||360,bitrate:n.Bb*8||1E6,framerate:n.video.fps||30});n.audio&&(M.audio={contentType:n.mimeType,channels:""+(n.audio.numChannels||2),bitrate:n.Bb*8||128E3,samplerate:n.audio.sampleRate||44100});return q.decodingInfo(M).then(function(t){n.W=t})}; nW=function(n){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(n)}; qG=function(n){return/(vp9|vp09|vp8|avc1|av01)/.test(n)}; iN=function(n){return n.includes("vtt")||n.includes("text/mp4")}; ac=function(n){return n.indexOf("/mp4")>=0?1:n.indexOf("/webm")>=0?2:n.indexOf("/x-flv")>=0?3:n.indexOf("/vtt")>=0?4:0}; tA=function(n,q,M,t,c,Y,G){var k=new Ht;q in g.$J||(q="small");q==="light"&&(q="tiny");t&&c?(c=Number(c),t=Number(t)):(c=g.$J[q],t=Math.round(c*16/9));Y=new Fq(t,c,0,null,void 0,q,Y,G);n=unescape(n.replace(/"/g,'"'));return new oc(M,n,{audio:k,video:Y})}; c3=function(n){var q="id="+n.id;n.video&&(q+=", res="+n.video.qualityLabel);var M,t;return q+", byterate=("+((M=n.WZ)==null?void 0:M.toFixed(0))+", "+((t=n.Bb)==null?void 0:t.toFixed(0))+")"}; YG=function(n,q){return{start:function(M){return n[M]}, end:function(M){return q[M]}, length:n.length}}; uB_=function(n,q,M){for(var t=[],c=[],Y=0;Y=q)return M}catch(t){}return-1}; kG=function(n,q){return KW(n,q)>=0}; BUd=function(n,q){if(!n)return NaN;q=KW(n,q);return q>=0?n.start(q):NaN}; bN=function(n,q){if(!n)return NaN;q=KW(n,q);return q>=0?n.end(q):NaN}; df=function(n){return n&&n.length?n.end(n.length-1):NaN}; NG=function(n){return df(n)>0}; O_=function(n,q){n=bN(n,q);return n>=0?n-q:0}; gf=function(n,q,M){for(var t=[],c=[],Y=0;YM||(t.push(Math.max(q,n.start(Y))-q),c.push(Math.min(M,n.end(Y))-q));return YG(t,c)}; eK=function(n,q,M,t){g.MB.call(this);var c=this;this.p8=n;this.start=q;this.end=M;this.isActive=t;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Bo={error:function(){!c.qm()&&c.isActive&&c.publish("error",c)}, updateend:function(){!c.qm()&&c.isActive&&c.publish("updateend",c)}}; this.p8.xR(this.Bo);this.uB=this.isActive}; hA=function(n,q,M,t,c,Y){g.MB.call(this);var G=this;this.Pg=n;this.CT=q;this.id=M;this.containerType=t;this.Ts=c;this.Cu=Y;this.LB=this.fg=this.xM=null;this.rl=!1;this.appendWindowStart=this.timestampOffset=0;this.yO=YG([],[]);this.Ut=!1;this.rj=[];this.y5=E_?[]:void 0;this.handler=function(b){return G.publish(b.type,G)}; var k;if((k=this.Pg)==null?0:k.addEventListener)this.Pg.addEventListener("updateend",this.handler),this.Pg.addEventListener("error",this.handler)}; W3=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; yg=function(n,q){this.d7=n;this.X=q===void 0?!1:q;this.W=!1}; s_=function(n,q,M){M=M===void 0?!1:M;g.F.call(this);this.mediaElement=n;this.md=q;this.isView=M;this.C=0;this.J=!1;this.S=!0;this.U=0;this.callback=null;this.B=!1;this.md||(this.CT=this.mediaElement.ji());this.events=new g.f8(this);g.Z(this,this.events);this.Z=new yg(this.md?window.URL.createObjectURL(this.md):this.CT.webkitMediaSourceURL,!0);n=this.md||this.CT;IE(this.events,n,["sourceopen","webkitsourceopen"],this.ygx);IE(this.events,n,["sourceclose","webkitsourceclose"],this.KqJ);this.N={updateend:this.FG}}; DZj=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; ABU=function(n,q){XD(n)?g.L1(function(){q(n)}):n.callback=q}; mZU=function(n,q,M){if(jK){var t;SK(n.mediaElement,{l:"mswssb",sr:(t=n.mediaElement.Mm)==null?void 0:t.Zf()},!1);q.xR(n.N,n);M.xR(n.N,n)}n.X=q;n.W=M;g.Z(n,q);g.Z(n,M)}; Ie=function(n){return!!n.X||!!n.W}; XD=function(n){try{return fW(n)==="open"}catch(q){return!1}}; fW=function(n){if(n.md)return n.md.readyState;switch(n.CT.webkitSourceState){case n.CT.SOURCE_OPEN:return"open";case n.CT.SOURCE_ENDED:return"ended";default:return"closed"}}; H3=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; $Zu=function(n){XD(n)&&(n.md?n.md.endOfStream():n.CT.webkitSourceEndOfStream(n.CT.EOS_NO_ERROR))}; Ffj=function(n,q,M,t){if(!n.X||!n.W)return null;var c=n.X.isView()?n.X.p8:n.X,Y=n.W.isView()?n.W.p8:n.W,G=new s_(n.mediaElement,n.md,!0);G.Z=n.Z;mZU(G,new eK(c,q,M,t),new eK(Y,q,M,t));XD(n)||n.X.pR(n.X.NP());return G}; ZzR=function(n){var q;(q=n.X)==null||q.rq();var M;(M=n.W)==null||M.rq();n.S=!1}; LW=function(){var n=this;this.ez=this.ip=sjC;this.promise=new g.v5(function(q,M){n.ip=q;n.ez=M})}; P3=function(){g.F.call(this);this.xG=!1;this.d7=null;this.N=this.C=!1;this.J=new g.Ne;this.Mm=null;g.Z(this,this.J)}; v3=function(n){n=n.uL();return n.length<1?NaN:n.end(n.length-1)}; aqs=function(n){!n.W&&DZj()&&(n.Z?n.Z.then(function(){return aqs(n)}):n.JG()||(n.W=n.D8()))}; RTm=function(n){n.W&&(n.W.dispose(),n.W=void 0)}; SK=function(n,q,M){var t;((t=n.Mm)==null?0:t.Aq())&&n.Mm.Xy("rms",q,M===void 0?!1:M)}; oBd=function(n,q,M){n.isPaused()||n.getCurrentTime()>q||M>10||(n.play(),g.bl(function(){oBd(n,n.getCurrentTime(),M+1)},500))}; wDR=function(n,q){n.d7&&n.d7.equals(q)||(n.d7&&n.d7.dispose(),n.d7=q)}; Ta=function(n){return O_(n.UC(),n.getCurrentTime())}; zT1=function(n,q){if(n.dP()===0||n.hasError())return!1;var M=n.getCurrentTime()>0;return q>=0&&(n=n.uL(),n.length||!M)?kG(n,q):M}; lN=function(n){n.JG()&&(n.Mm&&n.Mm.uJ("rs_s"),Ra&&n.getCurrentTime()>0&&n.seekTo(0),n.Zv(),n.load(),wDR(n,null));delete n.Z}; U_=function(n){switch(n.yr()){case 2:return"progressive.net.retryexhausted";case 3:return n=n.p9(),(n==null?0:n.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||JBa&&(n==null?0:n.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.uN=function(n,q,M){this.Vr=q===void 0?null:q;this.seekSource=M===void 0?null:M;this.state=n||64}; B3=function(n,q,M){M=M===void 0?!1:M;return V31(n,q.getCurrentTime(),(0,g.jt)(),Ta(q),M)}; D$=function(n,q,M,t){if(!(q===n.state&&M===n.Vr&&t===n.seekSource||q!==void 0&&(q&128&&!M||q&2&&q&16))){var c;if(c=q)c=q||n.state,c=!!(c&16||c&32);n=new g.uN(q,M,c?t?t:n.seekSource:null)}return n}; AA=function(n,q,M){return D$(n,n.state|q,null,M===void 0?null:M)}; mW=function(n,q){return D$(n,n.state&~q,null,null)}; $G=function(n,q,M,t){return D$(n,(n.state|q)&~M,null,t===void 0?null:t)}; g.C=function(n,q){return!!(n.state&q)}; g.FD=function(n,q){return q.state===n.state&&q.Vr===n.Vr}; Z$=function(n){return n.isPlaying()&&!g.C(n,16)&&!g.C(n,32)}; ae=function(n){return g.C(n,128)?-1:g.C(n,2)?0:g.C(n,2048)?3:g.C(n,64)?-1:g.C(n,1)&&!g.C(n,32)?3:g.C(n,8)?1:g.C(n,4)?2:-1}; oe=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E,h,I,L){g.F.call(this);var T=this;this.dU=n;this.slot=q;this.layout=M;this.Gs=t;this.w7=c;this.Dk=Y;this.gJ=G;this.GX=k;this.qP=b;this.Tn=d;this.position=O;this.C=e;this.Zk=E;this.RO=h;this.EN=I;this.context=L;this.cI=!0;this.S=!1;this.U9="not_rendering";this.W=!1;this.Z=new ct;n=rN(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.sx=new Ex(M.Rm,this.Gs,n,M.layoutId);var v;n=((v=Re(this))==null?void 0:v.progressCommands)||[];this.J=new Vsj(b, n,M.layoutId,function(){return T.xg()}); this.X=new IXs({adCpn:this.layout.layoutId,Tp:L.Tp,JEs:this.RO,Cu:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; wf=function(n){return{layoutId:n.Xo(),QZ:n.RO,WI:n.Dk.get(),Bw:n.D6()}}; za=function(n,q){return q.layoutId!==n.layout.layoutId?(n.dU.RQ(n.slot,q,new VM("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+n.layout.layoutId+("and LayoutType: "+n.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; JA=function(n){n.U9="rendering_start_requested";n.Tn(-1)}; Re=function(n){return rN(n.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; CUs=function(n){Kz("Received layout exit signal when not in layout exit flow.",n.slot,n.layout)}; rBd=function(n){var q;return((q=Vg(n.Dk.get(),2))==null?void 0:q.clientPlaybackNonce)||""}; CW=function(n,q){switch(q){case "normal":n.hq("complete");break;case "skipped":n.hq("skip");break;case "abandoned":j9(n.sx,"impression")&&n.hq("abandon")}}; rf=function(n,q){n.S||(q=new g.kB(q.state,new g.uN),n.S=!0);return q}; xG=function(n,q){qP(q)?n.Tn(1):g.dU(q,4)&&!g.dU(q,2)&&n.D$();bU(q,4)<0&&!(bU(q,2)<0)&&n.AX()}; xZ1=function(n){n.position===0&&(n.GX.get(),n=rN(n.layout.clientMetadata,"metadata_type_ad_placement_config").kind,n={adBreakType:Qg(n)},H_("ad_bl"),g.LD(n))}; pW=function(n,q){sx(n.sx,q,!n.W)}; pD1=function(n){var q;return(((q=Re(n))==null?void 0:q.progressCommands)||[]).findIndex(function(M){return!!g.R(M==null?void 0:M.command,QMk)})!==-1}; ns=function(n,q){var M=rN(n.clientMetadata,"metadata_type_eligible_for_ssap");return M===void 0?(Kz("Expected SSAP eligibility in PlayerBytes factory",n),!1):q.D6(M)}; q7=function(n,q){if(!$8(q.get(),"html5_ssap_pass_transition_reason"))return 3;switch(n){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Kz("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Kz("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:n}),3;default:Nc(n,"unknown layoutExitReason")}}; n2J=function(n){Kz("getExitReason: unexpected reason",void 0,void 0,{reason:n})}; M7=function(n,q){if($8(q.get(),"html5_ssap_pass_transition_reason"))switch(n){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return n2J(n),"abandoned";case 3:case 1:return n2J(n),"error";default:Nc(n,"unexpected transition reason")}else switch(n){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Kz("getExitReason: unexpected reason",void 0,void 0,{reason:n}),"error";default:Nc(n,"unexpected transition reason")}}; g.iX=function(n,q,M){v_(n,M)||lZ(n,q,M);v_(n,"video_to_ad")||lZ(n,q,"video_to_ad");v_(n,"ad_to_video")||lZ(n,q,"ad_to_video");v_(n,"ad_to_ad")||lZ(n,q,"ad_to_ad")}; t0=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E,h,I,L,T){oe.call(this,n,q,M,t,c,Y,G,k,d,N,O,e,E,h,I,L,T);var v=this;this.vn=b;this.wC=O;this.FF=!0;this.cD=this.I9=0;this.oy=Dx(function(){szC(wf(v));v.dU.E9(v.slot,v.layout)}); this.Mz=Dx(function(){X4d(wf(v));v.U9!=="rendering_stop_requested"&&v.wC(v);v.layoutExitReason?v.dU.zX(v.slot,v.layout,v.layoutExitReason):CUs(v)}); this.timer=new g.Ab(200);this.timer.listen("tick",function(){v.Oq()}); g.Z(this,this.timer)}; Y1=function(n){n.cD=Date.now();cP(n,n.I9);n.timer.start()}; qqd=function(n){n.I9=n.xg();n.NI(n.I9/1E3,!0);cP(n,n.I9)}; cP=function(n,q){q={current:q/1E3,duration:n.xg()/1E3};n.vn.get().YH("onAdPlaybackProgress",q)}; Ge=function(n){t0.call(this,n.dU,n.slot,n.l7,n.Gs,n.w7,n.Dk,n.gJ,n.GX,n.vn,n.qP,n.Tn,n.wC,n.Qq,n.Lk,n.Zk,n.RO,n.EN,n.context)}; Ks=function(n){t0.call(this,n.dU,n.slot,n.l7,n.Gs,n.w7,n.Dk,n.gJ,n.GX,n.vn,n.qP,n.Tn,n.wC,n.Qq,n.Lk,n.Zk,n.RO,n.EN,n.context)}; k1=function(){Ks.apply(this,arguments)}; Mhj=function(n){return ns(n.slot,n.Zk.get())?new k1(n):new Ge(n)}; N7=function(n){oe.call(this,n.callback,n.slot,n.l7,n.Gs,n.w7,n.Dk,n.gJ,n.GX,n.qP,n.Tn,n.wC,n.Qq,n.Lk,n.Zk,n.RO,n.EN,n.context);var q=this;this.adCpn="";this.s_=this.w5=0;this.oy=Dx(function(){szC(wf(q));q.dU.E9(q.slot,q.layout)}); this.Mz=Dx(function(){X4d(wf(q));q.U9!=="rendering_stop_requested"&&q.wC(q);q.layoutExitReason?q.dU.zX(q.slot,q.layout,q.layoutExitReason):CUs(q)}); this.Uh=n.Uh;this.jc=n.jc;this.FV=n.FV;this.vn=n.vn;this.Nv=n.Nv;this.wC=n.wC;if(!this.D6()){$8(this.Zk.get(),"html5_disable_media_load_timeout")||(this.KH=new g.zw(function(){q.M8("load_timeout",new VM("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); n=bX(this.Zk.get());var M=dA(this.Zk.get());n&&M&&(this.WF=new g.zw(function(){var t=rN(q.layout.clientMetadata,"metadata_type_preload_player_vars");t&&q.jc.get().G.preloadVideoByPlayerVars(t,2,300)}))}}; thu=function(n,q){var M=rN(q.clientMetadata,"metadata_type_ad_video_id"),t=rN(q.clientMetadata,"metadata_type_legacy_info_card_vast_extension");M&&t&&n.Nv.get().G.T().SX.add(M,{GS:t});(q=rN(q.clientMetadata,"metadata_type_sodar_extension_data"))&&YyR(n.Uh.get(),q);iDC(n.gJ.get(),!1)}; cI1=function(n){iDC(n.gJ.get(),!0);var q;((q=n.shrunkenPlayerBytesConfig)==null?0:q.shouldRequestShrunkenPlayerBytes)&&n.gJ.get().Tj(!1)}; Yq1=function(n){return new O0(n)}; gA=function(){N7.apply(this,arguments)}; O0=function(){gA.apply(this,arguments)}; Gjs=function(n){return Mhj(Object.assign({},n,{dU:n.callback,Tn:function(){}}))}; KGa=function(n){return new N7(Object.assign({},n,{Tn:function(q){n.vn.get().YH("onAdIntroStateChange",q)}}))}; kju=function(n){function q(M){n.vn.get().Pi(M)} return ns(n.slot,n.Zk.get())?Yq1(Object.assign({},n,{Tn:q})):new N7(Object.assign({},n,{Tn:q}))}; ec=function(n){for(var q=n.l7,M=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],t=g.S(h5()),c=t.next();!c.done;c=t.next())M.push(c.value);if(FE(q,{II:M,UT:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Gjs(n);q=n.l7;M=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];t=g.S(h5());for(c=t.next();!c.done;c=t.next())M.push(c.value);if(FE(q,{II:M,UT:["LAYOUT_TYPE_MEDIA"]}))return wN(n.l7.clientMetadata,"metadata_type_ad_intro")?KGa(n):kju(n)}; dKU=function(n){var q=rN(n.clientMetadata,"metadata_type_ad_placement_config").kind,M=rN(n.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:n.layoutId,adType:bDj(M),adBreakType:Qg(q)}}; Qg=function(n){switch(n){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; bDj=function(n){switch(n){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; N5j=function(n){try{return new E0(n.L3,n.slot,n.layout,n.lY,n.lI,n.Dk,n.I8,n.jc,n.cg,n.gJ,n.kyX,n)}catch(q){}}; E0=function(n,q,M,t,c,Y,G,k,b,d,N,O){g.F.call(this);this.L3=n;this.slot=q;this.layout=M;this.lY=t;this.lI=c;this.Dk=Y;this.I8=G;this.jc=k;this.cg=b;this.gJ=d;this.params=O;this.cI=!0;n=ec(N);if(!n)throw Error("Invalid params for sublayout");this.Bn=n}; ODf=function(){this.X=1;this.W=new ct}; h0=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E){g.F.call(this);this.callback=n;this.Dk=q;this.I8=M;this.jc=t;this.gJ=c;this.g8=Y;this.GX=G;this.jb=k;this.slot=b;this.layout=d;this.lY=N;this.NW=O;this.cg=e;this.Zk=E;this.cI=!0;this.Ms=!1;this.BH=[];this.Nb=-1;this.fB=!1;this.dR=new ODf}; g21=function(n){var q;return(q=n.layout.MD)!=null?q:rN(n.layout.clientMetadata,"metadata_type_sub_layouts")}; WP=function(n){return{WI:n.Dk.get(),QZ:!1,Bw:n.D6()}}; eHm=function(n,q,M){if(n.f1()===n.BH.length-1){var t,c;Kz("Unexpected skip requested during the last sublayout",(t=n.Qx())==null?void 0:t.s9(),(c=n.Qx())==null?void 0:c.Pb(),{requestingSlot:q,requestingLayout:M})}}; E2k=function(n,q,M){return M.layoutId!==yr(n,q,M)?(Kz("onSkipRequested for a PlayerBytes layout that is not currently active",n.s9(),n.Pb()),!1):!0}; hHC=function(n){n.f1()===n.BH.length-1&&Kz("Unexpected skip with target requested during the last sublayout")}; WG_=function(n,q,M){return M.renderingContent===void 0&&M.layoutId!==yr(n,q,M)?(Kz("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",n.s9(),n.Pb(),{requestingSlot:q,requestingLayout:M}),!1):!0}; yId=function(n,q,M,t){var c=rN(q.Pb().clientMetadata,"metadata_type_ad_pod_skip_target");if(c&&c>0&&c0)){Kz("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",n.slot,n.layout,{indexToPlay:q,layoutId:n.layout.layoutId});break a}n.Nb=q;q=n.Qx();if(n.f1()>0&&!n.D6()){var M=n.GX.get();M.W=!1;var t={};M.X&&M.videoId&&(t.cttAuthInfo={token:M.X,videoId:M.videoId});P_("ad_to_ad",t)}M=g.R(q.Pb().renderingContent,Qm);if(M==null?0: M.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var c;M=!((c=n.g8.get().qhd.get(M.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&c)}else M=!1;M?s0(n,n.f1()+1):n.BV(q)}}; Sc=function(n){h0.call(this,n.L3,n.Dk,n.I8,n.jc,n.gJ,n.g8,n.GX,n.jb,n.slot,n.layout,n.lY,n.NW,n.cg,n.Zk)}; jtR=function(n){(n=n.Qx())&&n.Is()}; IQ=function(n){h0.call(this,n.L3,n.Dk,n.I8,n.jc,n.gJ,n.g8,n.GX,n.jb,n.slot,n.layout,n.lY,n.NW,n.cg,n.Zk);this.A1=void 0}; Squ=function(n,q){n.kH()&&!GX(n.dR.W)||n.callback.zX(n.slot,n.layout,q)}; fs=function(n){return $8(n.Zk.get(),"html5_ssap_pass_transition_reason")}; Ifk=function(n,q,M){q.ND().currentState<2&&(M=M7(M,n.Zk),q.RI(q.Pb(),M));M=q.ND().X;n.wK(n.slot,q.Pb(),M)}; ffk=function(n,q){if(n.dR.W.currentState<2){var M=M7(q,n.Zk);M==="error"?n.callback.RQ(n.slot,n.layout,new VM("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):jc(n.NW,n.layout,M)}}; HP=function(n,q,M){q.ND().currentState>=2||(q.RI(q.Pb(),M),GX(q.ND())&&(yS(n.jb,n.slot,q.Pb(),M),n.A1=void 0))}; HDm=function(n,q){n.dR.X===2&&q!==n.AI()&&Kz("onClipEntered: unknown cpn",n.slot,n.layout,{cpn:q})}; LGs=function(n,q){var M=n.Qx();if(M){var t=M.Pb().layoutId,c=n.f1()+1;n.kH()?HP(n,M,q):M.RI(M.Pb(),q);c>=0&&cc&&G.UB(N,c-t);return N}; AIu=function(n,q,M){var t=rN(q.clientMetadata,"metadata_type_sodar_extension_data");if(t)try{YyR(M,t)}catch(c){Kz("Unexpected error when loading Sodar",n,q,{error:c})}}; mKu=function(n,q,M,t,c,Y,G){uX(n,q,new g.kB(M,new g.uN),t,c,G,!1,Y)}; uX=function(n,q,M,t,c,Y,G,k){G=G===void 0?!0:G;qP(M)&&MP(c,0,null)&&(!j9(n,"impression")&&k&&k(),n.hq("impression"));j9(n,"impression")&&(g.dU(M,4)&&!g.dU(M,2)&&n.bS("pause"),bU(M,4)<0&&!(bU(M,2)<0)&&n.bS("resume"),g.dU(M,16)&&c>=.5&&n.bS("seek"),G&&g.dU(M,2)&&BP(n,M.state,q,t,c,Y))}; BP=function(n,q,M,t,c,Y,G,k,b){j9(n,"impression")&&(Y?(Y=c-t,Y=Y>=-1&&Y<=2):Y=Math.abs(t-c)<=1,D7(n,q,Y?t:c,M,t,G,k&&Y),Y&&!b&&n.hq("complete"))}; D7=function(n,q,M,t,c,Y,G){XE(n,M*1E3,G);c<=0||M<=0||(q==null?0:g.C(q,16))||(q==null?0:g.C(q,32))||(MP(M,c*.25,t)&&(Y&&!j9(n,"first_quartile")&&Y("first"),n.hq("first_quartile")),MP(M,c*.5,t)&&(Y&&!j9(n,"midpoint")&&Y("second"),n.hq("midpoint")),MP(M,c*.75,t)&&(Y&&!j9(n,"third_quartile")&&Y("third"),n.hq("third_quartile")))}; $Ks=function(n,q){j9(n,"impression")&&n.bS(q?"fullscreen":"end_fullscreen")}; FGf=function(n){j9(n,"impression")&&n.bS("clickthrough")}; ZDu=function(n){n.bS("active_view_measurable")}; afa=function(n){j9(n,"impression")&&!j9(n,"seek")&&n.bS("active_view_fully_viewable_audible_half_duration")}; RH_=function(n){j9(n,"impression")&&!j9(n,"seek")&&n.bS("active_view_viewable")}; o21=function(n){j9(n,"impression")&&!j9(n,"seek")&&n.bS("audio_audible")}; w_u=function(n){j9(n,"impression")&&!j9(n,"seek")&&n.bS("audio_measurable")}; zH_=function(n,q,M,t,c,Y,G,k,b,d,N,O,e){this.callback=n;this.slot=q;this.layout=M;this.I8=t;this.sx=c;this.gJ=Y;this.vO=G;this.w7=k;this.Uh=b;this.Zk=d;this.Gs=N;this.Dk=O;this.FV=e;this.FF=!0;this.DH=this.U9=null;this.adCpn=void 0;this.X=!1}; JIU=function(n,q,M){var t;U0(n.Gs.get(),"ads_qua","cpn."+rN(n.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((t=Vg(n.Dk.get(),2))==null?void 0:t.clientPlaybackNonce)+";qt."+q+";clr."+M)}; Vhk=function(n,q){var M,t;U0(n.Gs.get(),"ads_imp","cpn."+rN(n.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((M=Vg(n.Dk.get(),2))==null?void 0:M.clientPlaybackNonce)+";clr."+q+";skp."+!!g.R((t=rN(n.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:t.skipOrPreviewRenderer,A0))}; mQ=function(n){return{enterMs:rN(n.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:rN(n.clientMetadata,"metadata_type_layout_exit_ms")}}; $1=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E){PP.call(this,n,q,M,t,c,G,k,b,d,O);this.vO=Y;this.Uh=N;this.w7=e;this.Zk=E;this.DH=this.U9=null}; CZm=function(n,q){var M;U0(n.Gs.get(),"ads_imp","acpn."+((M=Vg(n.Dk.get(),2))==null?void 0:M.clientPlaybackNonce)+";clr."+q)}; rIs=function(n,q,M){var t;U0(n.Gs.get(),"ads_qua","cpn."+rN(n.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((t=Vg(n.Dk.get(),2))==null?void 0:t.clientPlaybackNonce)+";qt."+q+";clr."+M)}; Fh=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E,h,I,L,T,v,B,m,a){this.cg=n;this.lY=q;this.NW=M;this.Dk=t;this.I8=c;this.gJ=Y;this.g8=G;this.Gs=k;this.vO=b;this.Hm=d;this.w7=N;this.Uh=O;this.jc=e;this.FV=E;this.GX=h;this.vn=I;this.qP=L;this.Nv=T;this.Zk=v;this.X=B;this.context=m;this.EN=a}; Z7=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E,h,I,L,T,v){this.cg=n;this.lY=q;this.NW=M;this.Gs=t;this.w7=c;this.Uh=Y;this.jc=G;this.Dk=k;this.gJ=b;this.g8=d;this.FV=N;this.GX=O;this.vn=e;this.qP=E;this.Nv=h;this.Zk=I;this.I8=L;this.context=T;this.EN=v}; xKs=function(n,q,M,t){qB.call(this,"survey-interstitial",n,q,M,t)}; aQ=function(n,q,M,t,c){K5.call(this,M,n,q,t);this.Gs=c;n=rN(q.clientMetadata,"metadata_type_ad_placement_config");this.sx=new Ex(q.Rm,c,n,q.layoutId)}; RQ=function(n){return Math.round(n.width)+"x"+Math.round(n.height)}; wA=function(n,q,M){M=M===void 0?oQ:M;M.widthn.width*n.height*.2)return{qG:3,Mq:501,errorMessage:"ad("+RQ(M)+") to container("+RQ(n)+") ratio exceeds limit."};if(M.height>n.height/3-q)return{qG:3,Mq:501,errorMessage:"ad("+RQ(M)+") covers container("+RQ(n)+") center."}}; QtU=function(n,q){var M=rN(n.clientMetadata,"metadata_type_ad_placement_config");return new Ex(n.Rm,q,M,n.layoutId)}; ze=function(n){return rN(n.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; J0=function(n,q,M,t){qB.call(this,"invideo-overlay",n,q,M,t);this.interactionLoggingClientData=t}; Vr=function(n,q,M,t,c,Y,G,k,b,d,N,O){K5.call(this,Y,n,q,c);this.Gs=M;this.J=G;this.gJ=k;this.qP=b;this.Zk=d;this.C=N;this.S=O;this.sx=QtU(q,M)}; p_d=function(){var n=["metadata_type_invideo_overlay_ad_renderer"];h5().forEach(function(q){n.push(q)}); return{II:n,UT:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Cs=function(n,q,M,t,c,Y,G,k,b,d,N,O,e){K5.call(this,Y,n,q,c);this.Gs=M;this.J=G;this.B=k;this.gJ=b;this.qP=d;this.Zk=N;this.C=O;this.S=e;this.sx=QtU(q,M)}; nVd=function(){for(var n=["metadata_type_invideo_overlay_ad_renderer"],q=g.S(h5()),M=q.next();!M.done;M=q.next())n.push(M.value);return{II:n,UT:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; rA=function(n){this.gJ=n;this.X=!1}; q4d=function(n,q,M){qB.call(this,"survey",n,{},q,M)}; x1=function(n,q,M,t,c,Y,G){K5.call(this,M,n,q,t);this.J=c;this.gJ=Y;this.Zk=G}; M4C=function(n,q,M,t,c,Y,G,k,b,d){this.XV=n;this.gJ=q;this.Gs=M;this.J=t;this.w7=c;this.W=Y;this.Z=G;this.qP=k;this.Zk=b;this.X=d}; iou=function(n,q,M,t,c,Y,G,k,b,d){this.XV=n;this.gJ=q;this.Gs=M;this.J=t;this.w7=c;this.W=Y;this.Z=G;this.qP=k;this.Zk=b;this.X=d}; Qr=function(n,q,M,t,c,Y,G,k,b,d){zp.call(this,n,q,M,t,c,Y,G,b);this.i4=k;this.Dk=d}; t4u=function(){var n=dBm();n.II.push("metadata_type_ad_info_ad_metadata");return n}; cNU=function(n,q,M,t,c,Y,G){this.XV=n;this.gJ=q;this.Gs=M;this.W=t;this.i4=c;this.X=Y;this.Dk=G}; Y4j=function(n,q,M,t,c,Y,G,k){this.XV=n;this.gJ=q;this.Gs=M;this.W=t;this.i4=c;this.X=Y;this.Zk=G;this.Dk=k}; ps=function(n,q){this.slotId=q;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=n(this.triggerType)}; nh=function(n,q){this.adPodIndex=n;this.X=q.length;this.adBreakLengthSeconds=q.reduce(function(t,c){return t+c},0); var M=0;for(n+=1;n0}; RF=function(n){return!!(n.QLE&&n.slot&&n.layout)}; oF=function(n){var q,M=(q=n.config)==null?void 0:q.adPlacementConfig;n=n.renderer;return!(!M||M.kind==null||!n)}; XYm=function(n){if(!Dw(n.adLayoutMetadata))return!1;n=n.renderingContent;return g.R(n,Qm)||g.R(n,p5)||g.R(n,s1d)||g.R(n,rH)||g.R(n,xo)?!0:!1}; wq=function(n){return n.playerVars!==void 0&&n.pings!==void 0&&n.externalVideoId!==void 0}; Qy=function(n){if(!Dw(n.adLayoutMetadata))return!1;n=n.renderingContent;var q=g.R(n,zi);return q?JO(q):(q=g.R(n,Vy))?wq(q):(q=g.R(n,Ch))?q.playerVars!==void 0:(q=g.R(n,Qm))?q.durationMilliseconds!==void 0:g.R(n,rq)||g.R(n,xm)?!0:!1}; JO=function(n){n=(n.sequentialLayouts||[]).map(function(q){return g.R(q,ph)}); return n.length>0&&n.every(Qy)}; q_=function(n){return Dw(n.adLayoutMetadata)?(n=g.R(n.renderingContent,nw))&&n.pings?!0:!1:!1}; HoC=function(n){if(!Dw(n.adLayoutMetadata))return!1;if(g.R(n.renderingContent,j1_)||g.R(n.renderingContent,M_))return!0;var q=g.R(n.renderingContent,ik);return g.R(n.renderingContent,tp)||g.R(q==null?void 0:q.sidePanel,S4j)||g.R(q==null?void 0:q.sidePanel,ItR)||g.R(q==null?void 0:q.sidePanel,ftd)?!0:!1}; Utu=function(n){var q;(q=!n)||(q=n.adSlotMetadata,q=!((q==null?void 0:q.slotId)!==void 0&&(q==null?void 0:q.slotType)!==void 0));if(q||!(LEd(n)||n.slotEntryTrigger&&n.slotFulfillmentTriggers&&n.slotExpirationTriggers))return!1;var M;n=(M=n.fulfillmentContent)==null?void 0:M.fulfilledLayout;return(M=g.R(n,ph))?Qy(M):(M=g.R(n,cU))?HoC(M):(M=g.R(n,PSs))?XYm(M):(M=g.R(n,vVs))?WER(M):(M=g.R(n,TbR))?Dw(M.adLayoutMetadata)?g.R(M.renderingContent,AO)?!0:!1:!1:(M=g.R(n,YW))?q_(M):(n=g.R(n,ltU))?Dw(n.adLayoutMetadata)? g.R(n.renderingContent,M_)?!0:!1:!1:!1}; LEd=function(n){var q;n=g.R((q=n.fulfillmentContent)==null?void 0:q.fulfilledLayout,cU);var M;return n&&((M=n.adLayoutMetadata)==null?void 0:M.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&n.layoutExitNormalTriggers===void 0}; udd=function(n){var q;return(n==null?void 0:(q=n.adSlotMetadata)==null?void 0:q.slotType)==="SLOT_TYPE_IN_PLAYER"}; Dtj=function(n,q){var M;if((M=n.questions)==null||!M.length||!n.playbackCommands||(q===void 0||!q)&&n.questions.length!==1)return!1;n=g.S(n.questions);for(q=n.next();!q.done;q=n.next()){q=q.value;var t=M=void 0,c=((M=g.R(q,GP))==null?void 0:M.surveyAdQuestionCommon)||((t=g.R(q,Kw))==null?void 0:t.surveyAdQuestionCommon);if(!Bbm(c))return!1}return!0}; ANj=function(n){n=((n==null?void 0:n.playerOverlay)||{}).instreamSurveyAdRenderer;var q;if(n)if(n.playbackCommands&&n.questions&&n.questions.length===1){var M,t=((q=g.R(n.questions[0],GP))==null?void 0:q.surveyAdQuestionCommon)||((M=g.R(n.questions[0],Kw))==null?void 0:M.surveyAdQuestionCommon);q=Bbm(t)}else q=!1;else q=!1;return q}; Bbm=function(n){if(!n)return!1;n=g.R(n.instreamAdPlayerOverlay,kW);var q=g.R(n==null?void 0:n.skipOrPreviewRenderer,A0),M=g.R(n==null?void 0:n.adInfoRenderer,bk);return(g.R(n==null?void 0:n.skipOrPreviewRenderer,dt)||q)&&M?!0:!1}; mtf=function(n){return n.linearAds!=null&&Dw(n.adLayoutMetadata)}; $tu=function(n){return n.linearAd!=null&&n.adVideoStart!=null}; FEd=function(n){if(isNaN(Number(n.timeoutSeconds))||!n.text||!n.ctaButton||!g.R(n.ctaButton,g.N_)||!n.brandImage)return!1;var q;return n.backgroundImage&&g.R(n.backgroundImage,OD)&&((q=g.R(n.backgroundImage,OD))==null?0:q.landscape)?!0:!1}; gt=function(n,q,M,t,c,Y,G,k){g.F.call(this);this.Zk=n;this.X=q;this.W=t;this.Dk=c;this.J=Y;this.Z=G;this.jc=k}; RP_=function(n,q,M){var t,c=((t=M.adSlots)!=null?t:[]).map(function(k){return g.R(k,eB)}); if(M.F4)if(rN(q.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))t5(n.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId); else{if(n.Zk.get().G.T().D("h5_check_forecasting_renderer_for_throttled_midroll")){var Y=M.M2.filter(function(k){var b;return((b=k.renderer)==null?void 0:b.clientForecastingAdRenderer)!=null}); Y.length!==0?Zom(n.Z,Y,c,q.slotId,M.ssdaiAdsConfig):t5(n.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId)}else t5(n.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId); ata(n.J,q)}else{var G;t={rA:Math.round(((Y=rN(q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:Y.rA)||0),lD:(G=rN(q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:G.lD};Y=rN(q.clientMetadata,"metadata_type_cue_point");Zom(n.Z,M.M2,c,q.slotId,M.ssdaiAdsConfig,t,Y)}}; zPk=function(n,q,M,t,c,Y,G,k){var b=Vg(n.Dk.get(),1);if(oVs(n.Zk.get())){var d=ED(n.W.get(),M,t,c,b.clientPlaybackNonce,b.m8,b.daiEnabled,b,Y,G);wYd(n,d);t5(n.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return d},q)}else t5(n.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return ED(n.W.get(),M,t,c,b.clientPlaybackNonce,b.m8,b.daiEnabled,b,Y,G,k)},q)}; wYd=function(n,q){q=g.S(q);for(var M=q.next();!M.done;M=q.next()){var t=M.value;if(t.slotType==="SLOT_TYPE_PLAYER_BYTES"&&t.fulfilledLayout)if(M=void 0,t.fulfilledLayout.renderingContent)M=rN(t.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(t.fulfilledLayout.MD){t=g.S(t.fulfilledLayout.MD);for(var c=t.next();!c.done&&(c=c.value,!c.renderingContent||!(M=rN(c.clientMetadata,"metadata_type_player_vars")));c=t.next());}}else M=void 0;if(M){n.jc.get().G.preloadVideoByPlayerVars(M, 2,300);break}}}; V4R=function(n,q,M,t,c,Y,G){q=JNf(q,Y,Number(t.prefetchMilliseconds)||0,G);n=q instanceof r?q:hp(n,t,c,q,M);return n instanceof r?n:[n]}; CS1=function(n,q,M,t,c){var Y=cj(n.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");t=[new He({getAdBreakUrl:t.getAdBreakUrl,rA:0,lD:0}),new aK(!0)];n=q.pauseDurationMs?q.lactThresholdMs?{slotId:Y,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new IF(n.X,Y),slotFulfillmentTriggers:[new KEm(n.X)],slotExpirationTriggers:[new hO(n.X,c),new Xl(n.X,Y)],Ox:"core",clientMetadata:new Cj(t),adSlotLoggingData:M}:new r("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new r("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return n instanceof r?n:[n]}; rNf=function(n){var q,M;return((q=n.renderer)==null?void 0:(M=q.adBreakServiceRenderer)==null?void 0:M.getAdBreakUrl)!==void 0}; WU=function(n,q,M){if(n.beforeContentVideoIdStartedTrigger)n=n.beforeContentVideoIdStartedTrigger?new q4(Jm,q,n.id):new r("Not able to create BeforeContentVideoIdStartedTrigger");else{if(n.layoutIdExitedTrigger){var t;q=(t=n.layoutIdExitedTrigger)!=null&&t.triggeringLayoutId?new Gi(Jm,n.layoutIdExitedTrigger.triggeringLayoutId,n.id):new r("Not able to create LayoutIdExitedTrigger")}else{if(n.layoutExitedForReasonTrigger){var c,Y;((c=n.layoutExitedForReasonTrigger)==null?0:c.triggeringLayoutId)&&((Y= n.layoutExitedForReasonTrigger)==null?0:Y.layoutExitReason)?(q=kod(n.layoutExitedForReasonTrigger.layoutExitReason),n=q instanceof r?q:new Ym(Jm,n.layoutExitedForReasonTrigger.triggeringLayoutId,[q],n.id)):n=new r("Not able to create LayoutIdExitedForReasonTrigger")}else{if(n.onLayoutSelfExitRequestedTrigger){var G;q=(G=n.onLayoutSelfExitRequestedTrigger)!=null&&G.triggeringLayoutId?new E7(Jm,n.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,n.id):new r("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(n.onNewPlaybackAfterContentVideoIdTrigger)n= n.onNewPlaybackAfterContentVideoIdTrigger?new hO(Jm,q,n.id):new r("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(n.skipRequestedTrigger){var k;q=(k=n.skipRequestedTrigger)!=null&&k.triggeringLayoutId?new yy(Jm,n.skipRequestedTrigger.triggeringLayoutId,n.id):new r("Not able to create SkipRequestedTrigger")}else if(n.slotIdEnteredTrigger){var b;q=(b=n.slotIdEnteredTrigger)!=null&&b.triggeringSlotId?new s7(Jm,n.slotIdEnteredTrigger.triggeringSlotId,n.id):new r("Not able to create SlotIdEnteredTrigger")}else if(n.slotIdExitedTrigger){var d; q=(d=n.slotIdExitedTrigger)!=null&&d.triggeringSlotId?new Xl(Jm,n.slotIdExitedTrigger.triggeringSlotId,n.id):new r("Not able to create SkipRequestedTrigger")}else if(n.surveySubmittedTrigger){var N;q=(N=n.surveySubmittedTrigger)!=null&&N.triggeringLayoutId?new U7(Jm,n.surveySubmittedTrigger.triggeringLayoutId,n.id):new r("Not able to create SurveySubmittedTrigger")}else{if(n.mediaResumedTrigger)n=n.mediaResumedTrigger&&n.id?new bom(n.id):new r("Not able to create MediaResumedTrigger");else{if(n.closeRequestedTrigger){var O; q=(O=n.closeRequestedTrigger)!=null&&O.triggeringLayoutId?new M4(Jm,n.closeRequestedTrigger.triggeringLayoutId,n.id):new r("Not able to create CloseRequestedTrigger")}else if(n.slotIdScheduledTrigger){var e;q=(e=n.slotIdScheduledTrigger)!=null&&e.triggeringSlotId?new IF(Jm,n.slotIdScheduledTrigger.triggeringSlotId,n.id):new r("Not able to create SlotIdScheduledTrigger")}else{if(n.mediaTimeRangeTrigger){var E;t=Number((E=n.mediaTimeRangeTrigger)==null?void 0:E.offsetStartMilliseconds);var h;G=Number((h= n.mediaTimeRangeTrigger)==null?void 0:h.offsetEndMilliseconds);isFinite(t)&&isFinite(G)?(h=G,h===-1&&(h=M),M=t>h?new r("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:t,offsetEndMs:h},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",h===M&&t-500<=h):new yA(t,h),n=M instanceof r?M:new N4(Jm,q,M,!1,n.id)):n=new r("Not able to create MediaTimeRangeTrigger")}else if(n.contentVideoIdEndedTrigger)n=n.contentVideoIdEndedTrigger?new i2(Jm,q,!1,n.id):new r("Not able to create ContentVideoIdEndedTrigger"); else{if(n.layoutIdEnteredTrigger){var I;q=(I=n.layoutIdEnteredTrigger)!=null&&I.triggeringLayoutId?new cI(Jm,n.layoutIdEnteredTrigger.triggeringLayoutId,n.id):new r("Not able to create LayoutIdEnteredTrigger")}else if(n.timeRelativeToLayoutEnterTrigger){var L;q=(L=n.timeRelativeToLayoutEnterTrigger)!=null&&L.triggeringLayoutId?new u2(Jm,Number(n.timeRelativeToLayoutEnterTrigger.durationMs),n.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,n.id):new r("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(n.onDifferentLayoutIdEnteredTrigger){var T; q=(T=n.onDifferentLayoutIdEnteredTrigger)!=null&&T.triggeringLayoutId&&n.onDifferentLayoutIdEnteredTrigger.slotType&&n.onDifferentLayoutIdEnteredTrigger.layoutType?new gq(Jm,n.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,n.onDifferentLayoutIdEnteredTrigger.slotType,n.onDifferentLayoutIdEnteredTrigger.layoutType,n.id):new r("Not able to create CloseRequestedTrigger")}else{if(n.liveStreamBreakStartedTrigger)n=n.liveStreamBreakStartedTrigger&&n.id?new dq(Jm,n.id):new r("Not able to create LiveStreamBreakStartedTrigger"); else if(n.liveStreamBreakEndedTrigger)n=n.liveStreamBreakEndedTrigger&&n.id?new Kh(Jm,n.id):new r("Not able to create LiveStreamBreakEndedTrigger");else{if(n.liveStreamBreakScheduledDurationMatchedTrigger){var v;q=(v=n.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&v.breakDurationMs?new km(Number(n.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,n.id):new r("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(n.liveStreamBreakScheduledDurationNotMatchedTrigger){var B; q=(B=n.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&B.breakDurationMs?new b2(Number(n.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,n.id):new r("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(n.newSlotScheduledWithBreakDurationTrigger){var m;q=(m=n.newSlotScheduledWithBreakDurationTrigger)!=null&&m.breakDurationMs?new O7(Number(n.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,n.id):new r("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else q= n.prefetchCacheExpiredTrigger?new WI(Jm,n.id):new r("Not able to convert an AdsControlflowTrigger.");n=q}q=n}n=q}q=n}n=q}q=n}n=q}q=n}n=q}q=n}n=q}return n}; yC=function(n,q){q.X>=2&&(n.slot_pos=q.adPodIndex);n.autoplay="1"}; Q1J=function(n,q,M,t,c,Y,G,k){return q===null?new r("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:q,ActionCompanionAdRenderer:t}):[xtu(n,q,G,Y,function(b){var d=b.slotId;b=k(b);var N=t.adLayoutLoggingData,O=new Cj([new LT(t),new FQ(c)]);d=Fj(M.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",d);var e={layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ox:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Rm:new Map, layoutExitNormalTriggers:[new hO(M.X,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:O,Dn:b(e),adLayoutLoggingData:N}})]}; pYd=function(n,q,M,t,c,Y,G,k){return q===null?new r("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:q,TopBannerImageTextIconButtonedLayoutViewModel:t}):[xtu(n,q,G,Y,function(b){var d=b.slotId;b=k(b);var N=t.adLayoutLoggingData,O=new Cj([new PK(t),new FQ(c)]);d=Fj(M.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",d);var e={layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ox:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Rm:new Map,layoutExitNormalTriggers:[new hO(M.X,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:O,Dn:b(e),adLayoutLoggingData:N}})]}; iTf=function(n,q,M,t,c,Y){if(!Y)for(q=g.S(q),Y=q.next();!Y.done;Y=q.next())Y=Y.value,sD(n,Y.renderer,Y.config.adPlacementConfig.kind);n=Array.from(n.values()).filter(function(N){return nns(N)}); q=[];Y=g.S(n);for(var G=Y.next(),k={};!G.done;k={dE:void 0},G=Y.next()){k.dE=G.value;G=g.S(k.dE.qp);for(var b=G.next(),d={};!b.done;d={Gd:void 0},b=G.next())d.Gd=b.value,b=function(N,O){return function(e){return N.Gd.zx(e,O.dE.instreamVideoAdRenderer.elementId,N.Gd.n0)}}(d,k),d.Gd.isContentVideoCompanion?q.push(qKJ(M,t,c,k.dE.instreamVideoAdRenderer.elementId,d.Gd.associatedCompositePlayerBytesLayoutId,d.Gd.adSlotLoggingData,b)):n.length>1?q.push(M_J(M,t,c,k.dE.instreamVideoAdRenderer.elementId,d.Gd.adSlotLoggingData, function(N,O){return function(e){return N.Gd.zx(e,O.dE.instreamVideoAdRenderer.elementId,N.Gd.n0,N.Gd.associatedCompositePlayerBytesLayoutId)}}(d,k))):q.push(M_J(M,t,c,k.dE.instreamVideoAdRenderer.elementId,d.Gd.adSlotLoggingData,b))}return q}; sD=function(n,q,M){if(q=t_m(q)){q=g.S(q);for(var t=q.next();!t.done;t=q.next())if((t=t.value)&&t.externalVideoId){var c=XN(n,t.externalVideoId);c.instreamVideoAdRenderer||(c.instreamVideoAdRenderer=t,c.FE=M)}else Kz("InstreamVideoAdRenderer without externalVideoId")}}; t_m=function(n){var q=[],M=n.sandwichedLinearAdRenderer&&n.sandwichedLinearAdRenderer.linearAd&&g.R(n.sandwichedLinearAdRenderer.linearAd,Vy);if(M)return q.push(M),q;if(n.instreamVideoAdRenderer)return q.push(n.instreamVideoAdRenderer),q;if(n.linearAdSequenceRenderer&&n.linearAdSequenceRenderer.linearAds){n=g.S(n.linearAdSequenceRenderer.linearAds);for(M=n.next();!M.done;M=n.next())M=M.value,g.R(M,Vy)&&q.push(g.R(M,Vy));return q}return null}; nns=function(n){if(n.instreamVideoAdRenderer===void 0)return Kz("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var q=g.S(n.qp),M=q.next();!M.done;M=q.next()){M=M.value;if(M.zx===void 0)return!1;if(M.n0===void 0)return Kz("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(n.FE===void 0||M.BL===void 0||n.FE!==M.BL&&M.BL!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(n.instreamVideoAdRenderer.elementId===void 0)return Kz("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:n.FE,"matching APSR kind":M.BL}),!1}return!0}; XN=function(n,q){n.has(q)||n.set(q,{instreamVideoAdRenderer:void 0,FE:void 0,adVideoId:q,qp:[]});return n.get(q)}; jB=function(n,q,M,t,c,Y,G,k,b){c?XN(n,c).qp.push({Y5b:q,BL:M,isContentVideoCompanion:t,n0:G,associatedCompositePlayerBytesLayoutId:Y,adSlotLoggingData:k,zx:b}):Kz("Companion AdPlacementSupportedRenderer without adVideoId")}; SB=function(n){var q=0;n=g.S(n.questions);for(var M=n.next();!M.done;M=n.next())if(M=M.value,M=g.R(M,GP)||g.R(M,Kw)){var t=void 0;q+=((t=M.surveyAdQuestionCommon)==null?void 0:t.durationMilliseconds)||0}return q}; I2=function(n){var q,M,t,c,Y=((M=g.R((q=n.questions)==null?void 0:q[0],GP))==null?void 0:M.surveyAdQuestionCommon)||((c=g.R((t=n.questions)==null?void 0:t[0],Kw))==null?void 0:c.surveyAdQuestionCommon),G;q=[].concat(g.EJ(((G=n.playbackCommands)==null?void 0:G.instreamAdCompleteCommands)||[]),g.EJ((Y==null?void 0:Y.timeoutCommands)||[]));var k,b,d,N,O,e,E,h,I,L,T,v,B,m,a,x,V,bf,Ka,dd;return{impressionCommands:(k=n.playbackCommands)==null?void 0:k.impressionCommands,errorCommands:(b=n.playbackCommands)== null?void 0:b.errorCommands,muteCommands:(d=n.playbackCommands)==null?void 0:d.muteCommands,unmuteCommands:(N=n.playbackCommands)==null?void 0:N.unmuteCommands,pauseCommands:(O=n.playbackCommands)==null?void 0:O.pauseCommands,rewindCommands:(e=n.playbackCommands)==null?void 0:e.rewindCommands,resumeCommands:(E=n.playbackCommands)==null?void 0:E.resumeCommands,skipCommands:(h=n.playbackCommands)==null?void 0:h.skipCommands,progressCommands:(I=n.playbackCommands)==null?void 0:I.progressCommands,Uom:(L= n.playbackCommands)==null?void 0:L.clickthroughCommands,fullscreenCommands:(T=n.playbackCommands)==null?void 0:T.fullscreenCommands,activeViewViewableCommands:(v=n.playbackCommands)==null?void 0:v.activeViewViewableCommands,activeViewMeasurableCommands:(B=n.playbackCommands)==null?void 0:B.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(m=n.playbackCommands)==null?void 0:m.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(a=n.playbackCommands)== null?void 0:(x=a.activeViewTracking)==null?void 0:x.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(V=n.playbackCommands)==null?void 0:(bf=V.activeViewTracking)==null?void 0:bf.activeViewAudioMeasurableCommands,endFullscreenCommands:(Ka=n.playbackCommands)==null?void 0:Ka.endFullscreenCommands,abandonCommands:(dd=n.playbackCommands)==null?void 0:dd.abandonCommands,completeCommands:q}}; YK1=function(n,q,M,t,c,Y,G){return function(k,b){return cns(n,b.slotId,k,Y,function(d,N){var O=b.layoutId;d=G(d);return fw(q,O,N,c,d,"LAYOUT_TYPE_SURVEY",[new M1(M),t],M.adLayoutLoggingData)})}}; k4s=function(n,q,M,t,c,Y,G){if(!G4C(n))return new r("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:n});var k=n.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Kl_(Y,q,M,t,function(b){var d=b.slotId;b=G(b);d=Fj(c.W.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",d);var N={layoutId:d,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ox:"core"},O=new Gi(c.X,t);return{layoutId:d,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Rm:new Map,layoutExitNormalTriggers:[O], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:new Cj([new i0(k)]),Dn:b(N)}})]}; G4C=function(n){n=g.R(n==null?void 0:n.additionalPlayerOverlay,bTJ);if(!n)return!1;var q=n.slidingMessages;return n.title&&q&&q.length!==0?!0:!1}; Ncu=function(n,q,M,t,c){var Y;if((Y=n.playerOverlay)==null||!Y.instreamSurveyAdRenderer)return function(){return[]}; if(!ANj(n))return function(){return new r("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:n})}; var G=n.playerOverlay.instreamSurveyAdRenderer,k=SB(G);return k<=0?function(){return new r("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:G})}:function(b,d){var N=d9a(b,M,t,function(O){var e=O.slotId; O=d(O);var E=I2(G);e=Fj(c.W.get(),"LAYOUT_TYPE_SURVEY",e);var h={layoutId:e,layoutType:"LAYOUT_TYPE_SURVEY",Ox:"core"},I=new Gi(c.X,t),L=new yy(c.X,e),T=new U7(c.X,e),v=new gVm(c.X);return{layoutId:e,layoutType:"LAYOUT_TYPE_SURVEY",Rm:new Map,layoutExitNormalTriggers:[I,v],layoutExitSkipTriggers:[L],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[T],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:new Cj([new q1(G),new FQ(q),new ve(k/1E3),new u0(E)]),Dn:O(h),adLayoutLoggingData:G.adLayoutLoggingData}}); b=k4s(n,M,N.slotId,t,c,b,d);return b instanceof r?b:[N].concat(g.EJ(b))}}; ynd=function(n,q,M,t,c,Y,G){G=G===void 0?!1:G;var k=[];try{var b=[];if(M.renderer.linearAdSequenceRenderer)var d=function(I){I=OTU(I.slotId,M,q,c(I),t,Y,G);b=I.XHx;return I.m6}; else if(M.renderer.instreamVideoAdRenderer)d=function(I){var L=I.slotId;I=c(I);var T=G,v=M.config.adPlacementConfig,B=gnd(v),m=B.Vi,a=B.Lf;B=M.renderer.instreamVideoAdRenderer;var x;if(B==null?0:(x=B.playerOverlay)==null?0:x.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var V=HU(B,T);x=Math.min(m+V.videoLengthSeconds*1E3,a);T=new nh(0,[V.videoLengthSeconds]);a=V.videoLengthSeconds;var bf=V.playerVars,Ka=V.instreamAdPlayerOverlayRenderer,dd=V.playerOverlayLayoutRenderer, gd=V.adVideoId,MR=eS1(M),lf=V.Rm;V=V.WJ;var rd=B==null?void 0:B.adLayoutLoggingData;B=B==null?void 0:B.sodarExtensionData;L=Fj(q.W.get(),"LAYOUT_TYPE_MEDIA",L);var gT={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",Ox:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",Rm:lf,layoutExitNormalTriggers:[new Kh(q.X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:new Cj([new z4(t),new gN(a),new eR(bf), new We(m),new yM(x),Ka&&new Jn(Ka),dd&&new VE(dd),new FQ(v),new wc(gd),new Ze(T),new IK(MR),B&&new hm(B),new kg({current:null}),new Xi({}),new Am(V)].filter(Ens)),Dn:I(gT),adLayoutLoggingData:rd}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var N=hSs(n,t,M.adSlotLoggingData,d);k.push(N);for(var O=g.S(b),e=O.next();!e.done;e=O.next()){var E=e.value,h=E(n,c);if(h instanceof r)return h;k.push.apply(k,g.EJ(h))}}catch(I){return new r(I,{errorMessage:I.message,AdPlacementRenderer:M,numberOfSurveyRenderers:Wla(M)})}return k}; Wla=function(n){n=(n.renderer.linearAdSequenceRenderer||{}).linearAds;return n!=null&&n.length?n.filter(function(q){var M,t;return((M=g.R(q,Vy))==null?void 0:(t=M.playerOverlay)==null?void 0:t.instreamSurveyAdRenderer)!=null}).length:0}; OTU=function(n,q,M,t,c,Y,G){var k=q.config.adPlacementConfig,b=gnd(k),d=b.Vi,N=b.Lf;b=(q.renderer.linearAdSequenceRenderer||{}).linearAds;if(b==null||!b.length)throw new TypeError("Expected linear ads");var O=[],e={Pc:d,Qq:0,Qcs:O};b=b.map(function(h){return snj(n,h,e,M,t,k,c,N,G)}).map(function(h,I){I=new nh(I,O); return h(I)}); var E=b.map(function(h){return h.Px}); return{m6:XKs(M,n,d,E,k,eS1(q),t,N,Y),XHx:b.map(function(h){return h.xj1})}}; snj=function(n,q,M,t,c,Y,G,k,b){var d=HU(g.R(q,Vy),b),N=M.Pc,O=M.Qq,e=Math.min(N+d.videoLengthSeconds*1E3,k);M.Pc=e;M.Qq++;M.Qcs.push(d.videoLengthSeconds);var E,h,I=(E=g.R(q,Vy))==null?void 0:(h=E.playerOverlay)==null?void 0:h.instreamSurveyAdRenderer;if(d.adVideoId==="nPpU29QrbiU"&&I==null)throw new TypeError("Survey slate media has no survey overlay");return function(L){yC(d.playerVars,L);var T,v,B=d.videoLengthSeconds,m=d.playerVars,a=d.Rm,x=d.WJ,V=d.instreamAdPlayerOverlayRenderer,bf=d.playerOverlayLayoutRenderer, Ka=d.adVideoId,dd=(T=g.R(q,Vy))==null?void 0:T.adLayoutLoggingData;T=(v=g.R(q,Vy))==null?void 0:v.sodarExtensionData;v=Fj(t.W.get(),"LAYOUT_TYPE_MEDIA",n);var gd={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",Ox:"adapter"};L={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",Rm:a,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"adapter",clientMetadata:new Cj([new z4(G),new gN(B),new eR(m),new We(N),new yM(e), new sT(O),new kg({current:null}),V&&new Jn(V),bf&&new VE(bf),new FQ(Y),new wc(Ka),new Ze(L),T&&new hm(T),I&&new D3(I),new Xi({}),new Am(x)].filter(Ens)),Dn:c(gd),adLayoutLoggingData:dd};B=Ncu(g.R(q,Vy),Y,G,L.layoutId,t);return{Px:L,xj1:B}}}; HU=function(n,q){if(!n)throw new TypeError("Expected instream video ad renderer");if(!n.playerVars)throw new TypeError("Expected player vars in url encoded string");var M=xd(n.playerVars),t=Number(M.length_seconds);if(isNaN(t))throw new TypeError("Expected valid length seconds in player vars");var c=Number(n.trimmedMaxNonSkippableAdDurationMs);t=isNaN(c)?t:Math.min(t,c/1E3);c=n.playerOverlay||{};c=c.instreamAdPlayerOverlayRenderer===void 0?null:c.instreamAdPlayerOverlayRenderer;var Y=n.playerOverlay|| {};Y=Y.playerOverlayLayoutRenderer===void 0?null:Y.playerOverlayLayoutRenderer;var G=M.video_id;G||(G=(G=n.externalVideoId)?G:void 0);if(!G)throw new TypeError("Expected valid video id in IVAR");if(q&&t===0){var k;q=(k=jnd[G])!=null?k:t}else q=t;return{playerVars:M,videoLengthSeconds:q,instreamAdPlayerOverlayRenderer:c,playerOverlayLayoutRenderer:Y,adVideoId:G,Rm:n.pings?e9(n.pings):new Map,WJ:gH(n.pings)}}; eS1=function(n){n=Number(n.driftRecoveryMs);return isNaN(n)||n<=0?null:n}; gnd=function(n){var q=n.adTimeOffset||{};n=q.offsetEndMilliseconds;q=Number(q.offsetStartMilliseconds);if(isNaN(q))throw new TypeError("Expected valid start offset");n=Number(n);if(isNaN(n))throw new TypeError("Expected valid end offset");return{Vi:q,Lf:n}}; SKj=function(n){var q,M=(q=rN(n.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current;if(!M)return null;q=rN(n.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var t=n.layoutId,c=rN(n.clientMetadata,"metadata_type_content_cpn"),Y=rN(n.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),G=rN(n.clientMetadata,"metadata_type_player_underlay_renderer"),k=rN(n.clientMetadata,"metadata_type_ad_placement_config"),b=rN(n.clientMetadata,"metadata_type_video_length_seconds"); var d=wN(n.clientMetadata,"metadata_type_layout_enter_ms")&&wN(n.clientMetadata,"metadata_type_layout_exit_ms")?(rN(n.clientMetadata,"metadata_type_layout_exit_ms")-rN(n.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{MH:t,contentCpn:c,CM:M,lZ:q,instreamAdPlayerOverlayRenderer:Y,instreamAdPlayerUnderlayRenderer:G,adPlacementConfig:k,videoLengthSeconds:b,Vy:d,inPlayerLayoutId:rN(n.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:rN(n.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; HTd=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E,h){t=cj(t,"SLOT_TYPE_PLAYER_BYTES");n=IeJ(c,n,G,M,t,b,d);if(n instanceof r)return n;var I;d=(I=rN(n.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:I.layoutId;if(!d)return new r("Invalid adNotify layout");q=feU(d,c,Y,M,k,q,b,N,O,e,E,h,G);return q instanceof r?q:[n].concat(g.EJ(q))}; feU=function(n,q,M,t,c,Y,G,k,b,d,N,O,e){M=Lls(q,M,t,Y,G,k,b,d,N,O,e);if(M instanceof r)return M;n=PTf(q,n,G,c,M);return n instanceof r?n:[].concat(g.EJ(n.Oh),[n.Q0])}; Tc_=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E){q=Lls(n,q,M,c,Y,k,b,d,N,O,e,E);if(q instanceof r)return q;n=vnu(n,M,Y,G,t,k.r7,q);return n instanceof r?n:n.Oh.concat(n.Q0)}; Lls=function(n,q,M,t,c,Y,G,k,b,d,N,O){var e=Lw(t,M,d);return e instanceof VM?new r(e):d.G.T().experiments.Hb("html5_refactor_in_player_slot_generation")?function(E){var h=new nh(0,[e.CR]);E=leC(q,e.layoutId,e.zY,M,PU(e.playerVars,e.Nu,Y,b,h),e.CR,c,h,G(E),k.get(e.zY.externalVideoId),O);h=[];if(e.zY.playerOverlay.instreamAdPlayerOverlayRenderer){var I=SKj(E);if(!I)return Kz("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,E),{layout:E,Oh:[]}; h=[U9C(n,I.contentCpn,I.MH,function(T){return vU(q,T.slotId,"core",I,Mp(N,T))},I.inPlayerSlotId)].concat(g.EJ(h)); if(I.instreamAdPlayerUnderlayRenderer&&TP(d)){var L=I.instreamAdPlayerUnderlayRenderer;h=[uQm(n,I.contentCpn,I.MH,function(T){return Bcs(q,T.slotId,L,I.adPlacementConfig,I.MH,Mp(N,T))})].concat(g.EJ(h))}}return{layout:E, Oh:h}}:function(E){var h=new nh(0,[e.CR]); return{layout:leC(q,e.layoutId,e.zY,M,PU(e.playerVars,e.Nu,Y,b,h),e.CR,c,h,G(E),k.get(e.zY.externalVideoId),O),Oh:[]}}}; Lw=function(n,q,M){if(!n.playerVars)return new VM("No playerVars available in InstreamVideoAdRenderer.");var t,c;if(n.elementId==null||n.playerVars==null||n.playerOverlay==null||((t=n.playerOverlay)==null?void 0:t.instreamAdPlayerOverlayRenderer)==null&&((c=n.playerOverlay)==null?void 0:c.playerOverlayLayoutRenderer)==null||n.pings==null||n.externalVideoId==null)return new VM("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:n});t=xd(n.playerVars);c=Number(t.length_seconds); isNaN(c)&&(c=0,Kz("Expected valid length seconds in player vars but got NaN"));if(M.D6(q.kind==="AD_PLACEMENT_KIND_START")){if(n.layoutId===void 0)return new VM("Expected server generated layout ID in instreamVideoAdRenderer");q=n.layoutId}else q=n.elementId;return{layoutId:q,zY:n,playerVars:t,Nu:n.playerVars,CR:c}}; PU=function(n,q,M,t,c){n.iv_load_policy=t;q=xd(q);if(q.cta_conversion_urls)try{n.cta_conversion_urls=JSON.parse(q.cta_conversion_urls)}catch(Y){Kz(Y)}M.We&&(n.ctrl=M.We);M.v_&&(n.ytr=M.v_);M.QI&&(n.ytrcc=M.QI);M.isMdxPlayback&&(n.mdx="1");n.vvt&&(n.vss_credentials_token=n.vvt,M.Ww&&(n.vss_credentials_token_type=M.Ww),M.mdxEnvironment&&(n.mdx_environment=M.mdxEnvironment));yC(n,c);return n}; D9J=function(n){var q=new Map;n=g.S(n);for(var M=n.next();!M.done;M=n.next())(M=M.value.renderer.remoteSlotsRenderer)&&M.hostElementId&&q.set(M.hostElementId,M);return q}; lk=function(n){return n.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; An1=function(n){return n!=null}; wK1=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E,h){for(var I=[],L=g.S(n),T=L.next();!T.done;T=L.next())if(T=T.value,!LEd(T)&&!udd(T)){var v=lk(T)&&!!T.slotEntryTrigger.beforeContentVideoIdStartedTrigger,B=b.D6(v),m=m9f(T,d,t,M.m8,B);if(m instanceof r)return m;var a=void 0,x={slotId:T.adSlotMetadata.slotId,slotType:T.adSlotMetadata.slotType,slotPhysicalPosition:(a=T.adSlotMetadata.slotPhysicalPosition)!=null?a:1,Ox:"core",slotEntryTrigger:m.slotEntryTrigger,slotFulfillmentTriggers:m.slotFulfillmentTriggers, slotExpirationTriggers:m.slotExpirationTriggers},V=g.R(T.fulfillmentContent.fulfilledLayout,ph);if(V){if(!Qy(V))return new r("Invalid PlayerBytesAdLayoutRenderer");a=O&&!(lk(T)&&T.slotEntryTrigger.beforeContentVideoIdStartedTrigger);m=m.slotFulfillmentTriggers.some(function(bf){return bf instanceof km}); B=a?$91(x,T.adSlotMetadata.triggerEvent,V,M,t,Y,d,n,B,e,m,E):Flf(x,T.adSlotMetadata.triggerEvent,V,q,M,t,c,Y,G,k,b,d,n,N,B,T.adSlotMetadata.triggeringSourceLayoutId);if(B instanceof r)return B;m=[];h?m.push(new OT({current:h})):m.push(new OT({current:null}));lk(T)&&m.push(new RK({MY:lk(T)&&!!T.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));a&&m.push(new Xi({}));M.r7&&m.push(new Be({}));m.push(new Z3(v));T=Object.assign({},x,{clientMetadata:new Cj(m),fulfilledLayout:B.layout,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData}); I.push.apply(I,g.EJ(B.Oh));I.push(T)}else if(v=g.R(T.fulfillmentContent.fulfilledLayout,cU)){if(!HoC(v))return new r("Invalid PlayerUnderlayAdLayoutRenderer");v=ZTk(v,t,M.m8,Y,x,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof r)return v;T=Object.assign({},x,{clientMetadata:new Cj([]),fulfilledLayout:v,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});I.push(T)}else if(v=g.R(T.fulfillmentContent.fulfilledLayout,ltU)){if(!Dw(v.adLayoutMetadata)||!g.R(v.renderingContent, M_))return new r("Invalid InPlayerOrganicOverlayAdLayoutRenderer");v=v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?aem(v,t,M.m8,Y,x):new r("LayoutType ["+v.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(v instanceof r)return v;T=Object.assign({},x,{clientMetadata:new Cj([]),fulfilledLayout:v,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});I.push(T)}else if(v=g.R(T.fulfillmentContent.fulfilledLayout,vVs)){if(!WER(v))return new r("Invalid AboveFeedAdLayoutRenderer"); v=RSj(v,t,M.m8,Y,x,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof r)return v;T=Object.assign({},x,{clientMetadata:new Cj([]),fulfilledLayout:v,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});I.push(T)}else if(v=g.R(T.fulfillmentContent.fulfilledLayout,TbR)){if(!Dw(v.adLayoutMetadata)||!g.R(v.renderingContent,AO))return new r("Invalid BelowPlayerAdLayoutRenderer");v=RSj(v,t,M.m8,Y,x,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId); if(v instanceof r)return v;T=Object.assign({},x,{clientMetadata:new Cj([]),fulfilledLayout:v,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});I.push(T)}else if(v=g.R(T.fulfillmentContent.fulfilledLayout,YW)){if(!q_(v))return new r("Invalid PlayerBytesSequenceItemAdLayoutRenderer");v=ond(v,t,M.m8,Y,x,T.adSlotMetadata.triggerEvent);if(v instanceof r)return v;T=Object.assign({},x,{clientMetadata:new Cj([]),fulfilledLayout:v,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});I.push(T)}else return new r("Unable to retrieve a client slot ["+ x.slotType+"] from a given AdSlotRenderer")}return I}; ond=function(n,q,M,t,c,Y){var G={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Ox:"core"};q=UD(n,q,M);return q instanceof r?q:(M=g.R(n.renderingContent,nw))&&M.pings?Object.assign({},G,{renderingContent:n.renderingContent,Rm:e9(M.pings)},q,{Dn:Mp(t,c)(G),clientMetadata:new Cj([new FQ(uk(Y))]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData}):new r("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; RSj=function(n,q,M,t,c,Y,G){var k={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Ox:"core"};q=UD(n,q,M);if(q instanceof r)return q;M=[];M.push(new FQ(uk(Y)));Y==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&G!==void 0&&M.push(new tm(G));return Object.assign({},k,{renderingContent:n.renderingContent,Rm:new Map([["impression",zSs(n)]])},q,{Dn:Mp(t,c)(k),clientMetadata:new Cj(M),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})}; ZTk=function(n,q,M,t,c,Y,G){if(n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(G=g.R(n.renderingContent,ik))if(G=g.R(G.sidePanel,ItR)){var k={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Ox:"core"};q=UD(n,q,M);n=q instanceof r?q:Object.assign({},k,{renderingContent:n.renderingContent,Rm:new Map([["impression",G.impressionPings||[]],["resume",G.resumePings||[]]])},q,{Dn:Mp(t,c)(k),clientMetadata:new Cj([new FQ(uk(Y))]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})}else n= new r("DismissablePanelTextPortraitImageRenderer is missing");else n=new r("SqueezebackPlayerSidePanelRenderer is missing");else n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.R(n.renderingContent,j1_)?(G={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Ox:"core"},q=UD(n,q,M),n=q instanceof r?q:Object.assign({},G,{renderingContent:n.renderingContent,Rm:new Map},q,{Dn:Mp(t,c)(G),clientMetadata:new Cj([new FQ(uk(Y))]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})): n=new r("CounterfactualRenderer is missing"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?n=new r("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?n=new r("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.R(n.renderingContent,tp)?(Y={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType, Ox:"core"},q=UD(n,q,M),n=q instanceof r?q:G?Object.assign({},Y,{renderingContent:n.renderingContent,Rm:new Map},q,{Dn:Mp(t,c)(Y),clientMetadata:new Cj([new tm(G)]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData}):new r("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):n=new r("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.R(n.renderingContent,M_)?(Y= {layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Ox:"core"},q=UD(n,q,M),n=q instanceof r?q:Object.assign({},Y,{renderingContent:n.renderingContent,Rm:new Map([])},q,{Dn:Mp(t,c)(Y),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Cj([])})):n=new r("AdsEngagementPanelSectionListViewModel is missing"):n=new r("LayoutType ["+n.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return n}; aem=function(n,q,M,t,c){if(!g.R(n.renderingContent,M_))return new r("AdsEngagementPanelSectionListViewModel is missing");var Y={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Ox:"core"};q=UD(n,q,M);return q instanceof r?q:Object.assign({},Y,{renderingContent:n.renderingContent,Rm:new Map([])},q,{Dn:Mp(t,c)(Y),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Cj([])})}; $91=function(n,q,M,t,c,Y,G,k,b,d,N,O){if((O==null?void 0:O.rA)===void 0||(O==null?void 0:O.lD)===void 0)return new r("Cached ad break range from cue point is missing");var e=UD(M,c,t.m8);if(e instanceof r)return e;e={layoutExitMuteTriggers:[],layoutExitNormalTriggers:e.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.R(M.renderingContent,Vy))return n=JnC(n,q,M,e,c,Y,k,b,t.m8,G,O.rA,O.lD),n instanceof r?n:n.Yy===void 0? new r("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:n.layout,Oh:[n.Yy]};var E=g.R(M.renderingContent,zi);if(E){if(!Dw(M.adLayoutMetadata))return new r("Invalid ad layout metadata");if(!JO(E))return new r("Invalid sequential layout");E=E.sequentialLayouts.map(function(h){return h.playerBytesAdLayoutRenderer}); n=V_s(n,q,M,e,E,c,t,Y,G,b,k,d,O.rA,O.lD,N);return n instanceof r?n:{layout:n.WG,Oh:n.Oh}}return new r("Not able to convert a sequential layout")}; V_s=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E,h){var I=CTJ(c,e,E);if(I instanceof r)return I;var L=[],T=[];I=g.S(I);for(var v=I.next();!v.done;v=I.next()){var B=v.value;v=n;var m=c[B.Qq],a=B,x=q;B=Y;var V=G,bf=k,Ka=b,dd=d,gd=N,MR=BU(m);if(MR instanceof r)v=MR;else{var lf={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Ox:"adapter"};a=rnJ(x,m,a,B);a instanceof r?v=a:(v=Object.assign({},lf,DY,{Rm:MR,renderingContent:m.renderingContent,clientMetadata:new Cj(a),Dn:Mp(bf,v)(lf), adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData}),v=(m=Ap(gd,v,B,V.m8,bf,Ka,dd,void 0,!0))?m instanceof r?m:{layout:v,Yy:m}:new r("Expecting associatedInPlayerSlot"))}if(v instanceof r)return v;L.push(v.layout);T.push(v.Yy)}c={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,Ox:"core"};q=[new IK(Number(M.driftRecoveryMs)),new We(e),new yM(E),new FQ(uk(q)),new Fi(O),new Xi({})];h&&q.push(new oK({}));return{WG:Object.assign({},c,t,{MD:L,Rm:new Map,clientMetadata:new Cj(q), Dn:Mp(k,n)(c)}),Oh:T}}; JnC=function(n,q,M,t,c,Y,G,k,b,d,N,O){if(!Qy(M))return new r("Invalid PlayerBytesAdLayoutRenderer");var e=BU(M);if(e instanceof r)return e;var E={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,Ox:"core"},h=g.R(M.renderingContent,Vy);if(!h)return new r("Invalid rendering content for DAI media layout");h=HU(h,!1);N={hm:h,Qq:0,Pc:N,Rj:Math.min(N+h.videoLengthSeconds*1E3,O),oN:new nh(0,[h.videoLengthSeconds])};var I;O=(I=Number(M.driftRecoveryMs))!=null?I:void 0;q=rnJ(q, M,N,c,O);if(q instanceof r)return q;n=Object.assign({},E,t,{Rm:e,renderingContent:M.renderingContent,clientMetadata:new Cj(q),Dn:Mp(Y,n)(E),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData});return(c=Ap(G,n,c,b,Y,d,k,void 0,!0))?c instanceof r?c:{layout:n,Yy:c}:new r("Expecting associatedInPlayerSlot")}; Flf=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E,h,I){var L=UD(M,Y,c.m8);if(L instanceof r)return L;if(g.R(M.renderingContent,Vy)){b=x91([M],c,b);if(b instanceof r)return b;if(b.length!==1)return new r("Only expected one media layout.");n=Qnm(n,q,M,L,b[0],void 0,"core",t,Y,G,k,d,e,E,h,c.m8,O,void 0,I);return n instanceof r?n:{layout:n.layout,Oh:n.Yy?[n.Yy]:[]}}var T=g.R(M.renderingContent,zi);if(T){if(!Dw(M.adLayoutMetadata))return new r("Invalid ad layout metadata");if(!JO(T))return new r("Invalid sequential layout"); T=T.sequentialLayouts.map(function(v){return v.playerBytesAdLayoutRenderer}); n=pKd(n,q,M.adLayoutMetadata,L,T,t,Y,c,b,G,k,d,N,O,h,e,E,I);return n instanceof r?n:{layout:n.WG,Oh:n.Oh}}return new r("Not able to convert a sequential layout")}; pKd=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E,h,I,L,T){var v=new on({current:null}),B=x91(c,k,b);if(B instanceof r)return B;b=[];for(var m=[],a=void 0,x=0;x0&&(x.push(T),x.push(new Rn(a.adPodSkipTarget)));(Y=d.get(a.externalVideoId))&&x.push(new Pe(Y));Y=x}else Y=new r("Invalid vod media renderer")}if(Y instanceof r)return Y;n=Object.assign({},G,t,{Rm:B,renderingContent:M.renderingContent,clientMetadata:new Cj(Y),Dn:Mp(N,n)(G),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData});M=g.R(M.renderingContent,Vy);if(!M||!wq(M))return new r("Invalid meida renderer");O=XN(O,M.externalVideoId);O.instreamVideoAdRenderer=M;O.FE="AD_PLACEMENT_KIND_START";return E?(b=Ap(e,n,b,I,N,L,h,T,!1),b instanceof r?b:MRa(n.layoutId,e)&&b?{layout:Object.assign({},n,{clientMetadata:new Cj(Y.concat(new xn(b)))})}:{layout:n,Yy:b}): {layout:n}}; ngm=function(n,q,M,t,c){if(!Qy(q))return new r("Invalid PlayerBytesAdLayoutRenderer");var Y=g.R(q.renderingContent,Qm);if(!Y||Y.durationMilliseconds===void 0)return new r("Invalid endcap renderer");var G={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,Ox:"adapter"};t=[new Tm(Y.durationMilliseconds),new u0({impressionCommands:void 0,abandonCommands:Y.abandonCommands?[{commandExecutorCommand:Y.abandonCommands}]:void 0,completeCommands:Y.completionCommands}),new FQ(t), new Yg("LAYOUT_TYPE_ENDCAP")];if(c){t.push(new an(c.oN.adPodIndex-1));t.push(new sT(c.oN.adPodIndex));var k;t.push(new Rn((k=c.adPodSkipTarget)!=null?k:-1))}return Object.assign({},G,DY,{renderingContent:q.renderingContent,clientMetadata:new Cj(t),Rm:Y.skipPings?new Map([["skip",Y.skipPings]]):new Map,Dn:Mp(M,n)(G),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})}; Ap=function(n,q,M,t,c,Y,G,k,b){n=n.filter(function(O){return O.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&O.adSlotMetadata.triggeringSourceLayoutId===q.layoutId}); if(n.length!==0){if(n.length!==1)return new r("Invalid InPlayer slot association for the given PlayerBytes layout");n=n[0];G=m9f(n,Y,M,t,G);if(G instanceof r)return G;var d;Y={slotId:n.adSlotMetadata.slotId,slotType:n.adSlotMetadata.slotType,slotPhysicalPosition:(d=n.adSlotMetadata.slotPhysicalPosition)!=null?d:1,Ox:"core",slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:G.slotExpirationTriggers};d=g.R(n.fulfillmentContent.fulfilledLayout, PSs);if(!d||!XYm(d))return new r("Invalid InPlayerAdLayoutRenderer");G={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,Ox:"core"};M=UD(d,M,t);if(M instanceof r)return M;t=[];var N=d.adLayoutMetadata.layoutType;b&&t.push(new Xi({}));if(N==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")t.push.apply(t,g.EJ(ijj(n.adSlotMetadata.triggerEvent,q)));else if(N==="LAYOUT_TYPE_ENDCAP"||N==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){t.push(new FQ(uk(n.adSlotMetadata.triggerEvent))); if(N==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new r("Cannot parse endcap layout since AdUxReadyApi is not provided");k&&t.push(k)}else return new r("Not able to parse an SDF InPlayer layout");c=Object.assign({},G,M,{renderingContent:d.renderingContent,Rm:new Map,Dn:Mp(c,Y)(G),clientMetadata:new Cj(t),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},Y,{fulfilledLayout:c,clientMetadata:new Cj([])})}}; ijj=function(n,q){var M=[];M.push(new FQ(uk(n)));M.push(new tm(q.layoutId));(n=rN(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&M.push(new kg(n));(n=rN(q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&M.push(new on(n));(n=rN(q.clientMetadata,"metadata_type_remote_slots_data"))&&M.push(new Pe(n));(n=rN(q.clientMetadata,"metadata_type_ad_next_params"))&&M.push(new lT(n));(n=rN(q.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&M.push(new UK(n));(n= rN(q.clientMetadata,"metadata_type_ad_pod_info"))&&M.push(new Ze(n));(q=rN(q.clientMetadata,"metadata_type_ad_video_id"))&&M.push(new wc(q));return M}; qTC=function(n,q,M,t,c,Y){function G(d){return mV(q,d)} var k=t.b9.inPlayerSlotId,b={layoutId:t.b9.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Ox:"core"};M={slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:new cI(G,n),slotFulfillmentTriggers:[new s7(G,k)],slotExpirationTriggers:[new Xl(G,k),new hO(G,M)]};n=Object.assign({},b,{layoutExitNormalTriggers:[new Gi(G,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Rm:new Map,clientMetadata:new Cj([new pT(t.b9), new FQ(t.adPlacementConfig),c]),Dn:Mp(Y,M)(b),adLayoutLoggingData:t.b9.adLayoutLoggingData});return Object.assign({},M,{clientMetadata:new Cj([new fj(n)])})}; MRa=function(n,q){q=g.S(q);for(var M=q.next();!M.done;M=q.next())if(M=M.value,M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var t=g.R(M.fulfillmentContent.fulfilledLayout,cU);if(t&&(t=g.R(t.renderingContent,ik))&&t.associatedPlayerBytesLayoutId===n)return M}}; m9f=function(n,q,M,t,c){var Y=tRU(WU(n.slotEntryTrigger,M,t),c,n,q);if(Y instanceof r)return Y;for(var G=[],k=g.S(n.slotFulfillmentTriggers),b=k.next();!b.done;b=k.next()){b=WU(b.value,M,t);if(b instanceof r)return b;G.push(b)}G=cmU(G,c,n,q);q=[];n=g.S(n.slotExpirationTriggers);for(c=n.next();!c.done;c=n.next()){c=WU(c.value,M,t);if(c instanceof r)return c;q.push(c)}return{slotEntryTrigger:Y,slotFulfillmentTriggers:G,slotExpirationTriggers:q}}; tRU=function(n,q,M,t){return q&&M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&n instanceof q4?new ps(function(c){return mV(t,c)},M.adSlotMetadata.slotId):n}; cmU=function(n,q,M,t){return q&&M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?n.map(function(c){return c instanceof s7?new IF(function(Y){return mV(t,Y)},M.adSlotMetadata.slotId):c}):n}; UD=function(n,q,M){for(var t=[],c=g.S(n.layoutExitNormalTriggers||[]),Y=c.next();!Y.done;Y=c.next()){Y=WU(Y.value,q,M);if(Y instanceof r)return Y;t.push(Y)}c=[];Y=g.S(n.layoutExitSkipTriggers||[]);for(var G=Y.next();!G.done;G=Y.next()){G=WU(G.value,q,M);if(G instanceof r)return G;c.push(G)}Y=[];G=g.S(n.layoutExitMuteTriggers||[]);for(var k=G.next();!k.done;k=G.next()){k=WU(k.value,q,M);if(k instanceof r)return k;Y.push(k)}G=[];n=g.S(n.layoutExitUserInputSubmittedTriggers||[]);for(k=n.next();!k.done;k= n.next()){k=WU(k.value,q,M);if(k instanceof r)return k;G.push(k)}return{layoutExitNormalTriggers:t,layoutExitSkipTriggers:c,layoutExitMuteTriggers:Y,layoutExitUserInputSubmittedTriggers:G,layoutExitUserCancelledTriggers:[]}}; BU=function(n){var q=g.R(n.renderingContent,Vy);if(q==null?0:q.pings)return e9(q.pings);n=g.R(n.renderingContent,Qm);return(n==null?0:n.skipPings)?new Map([["skip",n.skipPings]]):new Map}; rnJ=function(n,q,M,t,c){q=g.R(q.renderingContent,Vy);if(!q)return new r("Invalid rendering content for DAI media layout");n=[new z4(t),new gN(M.hm.videoLengthSeconds),new eR(M.hm.playerVars),new We(M.Pc),new yM(M.Rj),new sT(M.Qq),new FQ(uk(n)),new wc(M.hm.adVideoId),new Ze(M.oN),q.sodarExtensionData&&new hm(q.sodarExtensionData),new kg({current:null}),new Xi({}),new Am(gH(q.pings))].filter(An1);c!==void 0&&n.push(new IK(c));return n}; CTJ=function(n,q,M){n=n.map(function(b){return HU(g.R(b.renderingContent,Vy),!1)}); var t=n.map(function(b){return b.videoLengthSeconds}),c=t.map(function(b,d){return new nh(d,t)}),Y=q,G=M,k=[]; n.forEach(function(b,d){G=Math.min(Y+b.videoLengthSeconds*1E3,M);yC(b.playerVars,c[d]);k.push({hm:b,Pc:Y,Rj:G,Qq:d,oN:c[d]});Y=G}); return k}; x91=function(n,q,M){for(var t=[],c=g.S(n),Y=c.next();!Y.done;Y=c.next())if(Y=g.R(Y.value.renderingContent,Vy)){if(!wq(Y))return new r("Invalid vod media renderer");t.push(YTk(Y))}c=t.map(function(O){return O.CR}); Y=[];for(var G=0,k=0;k0?dd:-1;else if(lf= g.R(MR,Qm)){MR=h51(n,q,M,lf,Y,I,k,V,dd);if(MR instanceof r){E=MR;break a}MR=MR(e);L.push(MR.l7);T=[].concat(g.EJ(MR.nL),g.EJ(T));v=[].concat(g.EJ(MR.S8),g.EJ(v));MR.Yy&&(Ka=[MR.Yy].concat(g.EJ(Ka)))}else if(lf=g.R(MR,rq)){if(E===void 0){E=new r("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:lf});break a}MR=sK_(n,q,M,Y,lf,x,k,E,I,$8(N,"supports_multi_step_on_desktop"));if(MR instanceof r){E=MR;break a}MR=MR(e);L.push(MR.l7);MR.Yy&&Ka.push(MR.Yy); T=[].concat(g.EJ(MR.nL),g.EJ(T));v=[].concat(g.EJ(MR.S8),g.EJ(v));B=[].concat(g.EJ(MR.mH),g.EJ(B));m=[].concat(g.EJ(MR.Cy),g.EJ(m));a=[x].concat(g.EJ(a))}else if(MR=g.R(MR,xm)){MR=Xe1(n,q,M,Y,MR,x,k,I);if(MR instanceof r){E=MR;break a}MR=MR(e);L.push(MR.l7);MR.Yy&&Ka.push(MR.Yy);v=[].concat(g.EJ(MR.S8),g.EJ(v))}else{E=new r("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}E={MD:L,layoutExitSkipTriggers:T,layoutExitUserInputSubmittedTriggers:B,layoutExitUserCancelledTriggers:m,layoutExitMuteTriggers:v, AF:a,Oh:Ka}}}else a:if(I=vgJ(t,M,N),I instanceof r)E=I;else{L=0;T=[];v=[];B=[];m=[];a=[];x=[];V=new b0({current:null});bf=new on({current:null});Ka=!1;gd=[];dd=-1;h=g.S(t);for(MR=h.next();!MR.done;MR=h.next())if(MR=MR.value,g.R(MR,Ch)){MR=Wbu(q,M,g.R(MR,Ch),k);if(MR instanceof r){E=MR;break a}MR=MR(e);T.push(MR.l7);v=[].concat(g.EJ(MR.nL),g.EJ(v));B=[].concat(g.EJ(MR.S8),g.EJ(B));MR.Yy&&(gd=[MR.Yy].concat(g.EJ(gd)))}else if(g.R(MR,Vy)){dd=Lw(g.R(MR,Vy),M,N);if(dd instanceof VM){E=new r(dd);break a}MR= new nh(L,I);MR=TNj(q,dd.layoutId,dd.zY,M,PU(dd.playerVars,dd.Nu,G,d,MR),dd.CR,Y,MR,k(e),bf,b.get(dd.zY.externalVideoId),void 0,O);L++;T.push(MR.l7);v=[].concat(g.EJ(MR.nL),g.EJ(v));B=[].concat(g.EJ(MR.S8),g.EJ(B));Ka||(x.push(bf),Ka=!0);dd=(dd=dd.zY.adPodSkipTarget)&&dd>0?dd:-1}else if(g.R(MR,Qm)){MR=h51(n,q,M,g.R(MR,Qm),Y,L,k,bf,dd);if(MR instanceof r){E=MR;break a}MR=MR(e);T.push(MR.l7);v=[].concat(g.EJ(MR.nL),g.EJ(v));B=[].concat(g.EJ(MR.S8),g.EJ(B));MR.Yy&&(gd=[MR.Yy].concat(g.EJ(gd)))}else if(g.R(MR, rq)){if(E===void 0){E=new r("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.R(MR,rq)});break a}MR=sK_(n,q,M,Y,g.R(MR,rq),V,k,E,L,$8(N,"supports_multi_step_on_desktop"));if(MR instanceof r){E=MR;break a}MR=MR(e);T.push(MR.l7);MR.Yy&&gd.push(MR.Yy);v=[].concat(g.EJ(MR.nL),g.EJ(v));B=[].concat(g.EJ(MR.S8),g.EJ(B));m=[].concat(g.EJ(MR.mH),g.EJ(m));a=[].concat(g.EJ(MR.Cy),g.EJ(a));x=[V].concat(g.EJ(x))}else if(g.R(MR,xm)){MR=Xe1(n,q,M,Y,g.R(MR,xm), V,k,L);if(MR instanceof r){E=MR;break a}MR=MR(e);T.push(MR.l7);MR.Yy&&gd.push(MR.Yy);B=[].concat(g.EJ(MR.S8),g.EJ(B))}else{E=new r("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}E={MD:T,layoutExitSkipTriggers:v,layoutExitUserInputSubmittedTriggers:m,layoutExitUserCancelledTriggers:a,layoutExitMuteTriggers:B,AF:x,Oh:gd}}E instanceof r?e=E:(a=e.slotId,I=E.MD,L=E.layoutExitSkipTriggers,T=E.layoutExitMuteTriggers,v=E.layoutExitUserInputSubmittedTriggers,B=E.AF,e=k(e),m=c?c.layoutType: "LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",a=c?c.layoutId:Fj(q.W.get(),m,a),x={layoutId:a,layoutType:m,Ox:"core"},e={layout:{layoutId:a,layoutType:m,Rm:new Map,layoutExitNormalTriggers:[new E7(q.X,a)],layoutExitSkipTriggers:L,layoutExitMuteTriggers:T,layoutExitUserInputSubmittedTriggers:v,layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:new Cj([new dN(I)].concat(g.EJ(B))),Dn:e(x)},Oh:E.Oh});return e}}; vgJ=function(n,q,M){var t=[];n=g.S(n);for(var c=n.next();!c.done;c=n.next())if(c=c.value,g.R(c,Vy)){c=Lw(g.R(c,Vy),q,M);if(c instanceof VM)return new r(c);t.push(c.CR)}return t}; U1R=function(n,q,M,t,c,Y,G,k){if(!Dtj(M,k===void 0?!1:k))return new r("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:M});var b=SB(M);if(b<=0)return new r("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:M});var d=new b0({current:null}),N=YK1(n,q,M,d,t,Y,G);return l3s(n,t,Y,b,c,function(O,e){var E=O.slotId,h=I2(M);O=G(O);var I,L=(I=a2(q,t,M.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?I: Fj(q.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",E);E={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ox:"core"};I=N(L,e);var T=rN(I.clientMetadata,"metadata_type_fulfilled_layout");T||Kz("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");h=[new FQ(t),new Tm(b),new u0(h),d];T&&h.push(new Yg(T.layoutType));return{Kdl:{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Rm:new Map,layoutExitNormalTriggers:[new E7(q.X,L)],layoutExitSkipTriggers:[new yy(q.X, e.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new U7(q.X,e.layoutId)],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:new Cj(h),Dn:O(E)},LY:I}})}; ui1=function(n){if(!$tu(n))return!1;var q=g.R(n.adVideoStart,Jp);return q?g.R(n.linearAd,Vy)&&RF(q)?!0:(Kz("Invalid Sandwich with notify"),!1):!1}; BNU=function(n){if(n.linearAds==null)return!1;n=g.R(n.adStart,Jp);return n?RF(n)?!0:(Kz("Invalid LASR with notify"),!1):!1}; D1a=function(n){if(!mtf(n))return!1;n=g.R(n.adStart,Jp);return n?RF(n)?!0:(Kz("Invalid LASR with notify"),!1):!1}; VC=function(n,q,M,t,c,Y,G,k,b,d){this.J=n;this.W=q;this.X=M;this.Zk=t;this.wO=c;this.Z=Y;this.gJ=G;this.Nj=k;this.Eh=b;this.loadPolicy=d===void 0?1:d}; ED=function(n,q,M,t,c,Y,G,k,b,d,N){var O=[];if(q.length===0&&t.length===0&&M.length===0)return O;q=q.filter(oF);var e=M.filter(Utu),E=t.filter(oF),h=new Map,I=D9J(q),L=M.some(function(ND){var V1;return(ND==null?void 0:(V1=ND.adSlotMetadata)==null?void 0:V1.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),T=M.some(function(ND){var V1; return(ND==null?void 0:(V1=ND.adSlotMetadata)==null?void 0:V1.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),v=M.some(function(ND){var V1; return(ND==null?void 0:(V1=ND.adSlotMetadata)==null?void 0:V1.slotType)==="SLOT_TYPE_IN_PLAYER"}),B=M.some(function(ND){var V1,uf; return(ND==null?void 0:(V1=ND.adSlotMetadata)==null?void 0:V1.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(ND==null?void 0:(uf=ND.adSlotMetadata)==null?void 0:uf.slotType)==="SLOT_TYPE_ABOVE_FEED"}),m=M.some(function(ND){var V1; return(ND==null?void 0:(V1=ND.adSlotMetadata)==null?void 0:V1.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); M=M.some(function(ND){var V1;return(ND==null?void 0:(V1=ND.adSlotMetadata)==null?void 0:V1.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(L||T||v||B||m||M)d=wK1(e,q,k,c,I,n.wO.get(),n.loadPolicy,h,n.Zk.get(),n.J.get(),v,G,b,d,N),d instanceof r?Kz(d,void 0,void 0,{contentCpn:c}):O.push.apply(O,g.EJ(d));d=g.S(q);for(N=d.next();!N.done;N=d.next())N=N.value,M=Ama(n,h,N,c,Y,G,L,k,I,b,e),M instanceof r?Kz(M,void 0,void 0,{renderer:N.renderer,config:N.config.adPlacementConfig,kind:N.config.adPlacementConfig.kind,contentCpn:c,daiEnabled:G}):O.push.apply(O,g.EJ(M));m1k(n.Zk.get())||(Y=$1j(n,E,c,k,I,h),O.push.apply(O,g.EJ(Y)));if(n.Z===null|| G&&!k.Se){var a,x,V;n=k.r7&&q.length===1&&((a=q[0].config)==null?void 0:(x=a.adPlacementConfig)==null?void 0:x.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((V=q[0].renderer)==null?void 0:V.adBreakServiceRenderer);if(!O.length&&!n){var bf,Ka,dd,gd;Kz("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":q.length,contentCpn:c,"first APR kind":(bf=q[0])==null?void 0:(Ka=bf.config)==null?void 0:(dd=Ka.adPlacementConfig)==null?void 0:dd.kind,renderer:(gd= q[0])==null?void 0:gd.renderer})}return O}a=t.filter(oF);O.push.apply(O,g.EJ(iTf(h,a,n.W.get(),n.Z,c,L)));if(!O.length){var MR,lf,rd,gT;Kz("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":q.length,contentCpn:c,daiEnabled:G.toString(),"first APR kind":(MR=q[0])==null?void 0:(lf=MR.config)==null?void 0:(rd=lf.adPlacementConfig)==null?void 0:rd.kind,renderer:(gT=q[0])==null?void 0:gT.renderer})}return O}; $1j=function(n,q,M,t,c,Y){function G(e){return Mp(n.wO.get(),e)} var k=[];q=g.S(q);for(var b=q.next();!b.done;b=q.next()){b=b.value;var d=b.renderer,N=d.sandwichedLinearAdRenderer,O=d.linearAdSequenceRenderer;N&&ui1(N)?(Kz("Found AdNotify with SandwichedLinearAdRenderer"),O=g.R(N.adVideoStart,Jp),N=g.R(N.linearAd,Vy),sD(Y,d,b.config.adPlacementConfig.kind),d=void 0,O=feU((d=O)==null?void 0:d.layout.layoutId,n.W.get(),n.X.get(),b.config.adPlacementConfig,b.adSlotLoggingData,N,M,t,G,c,n.loadPolicy,n.Zk.get(),n.wO.get()),O instanceof r?Kz(O):k.push.apply(k,g.EJ(O))): O&&(!O.adLayoutMetadata&&BNU(O)||O.adLayoutMetadata&&D1a(O))&&(Kz("Found AdNotify with LinearAdSequenceRenderer"),sD(Y,d,b.config.adPlacementConfig.kind),d=void 0,N=jKs((d=g.R(O.adStart,Jp))==null?void 0:d.layout.layoutId,n.W.get(),n.X.get(),b.config.adPlacementConfig,b.adSlotLoggingData,O.linearAds,Dw(O.adLayoutMetadata)?O.adLayoutMetadata:void 0,M,t,G,c,n.loadPolicy,n.Zk.get()),N instanceof r?Kz(N):k.push.apply(k,g.EJ(N)))}return k}; Ama=function(n,q,M,t,c,Y,G,k,b,d,N){function O(T){return Mp(n.wO.get(),T)} var e=M.renderer,E=M.config.adPlacementConfig,h=E.kind,I=M.adSlotLoggingData,L=k.Se&&h==="AD_PLACEMENT_KIND_START";L=Y&&!L;if(e.adsEngagementPanelRenderer!=null)return jB(q,M.elementId,h,e.adsEngagementPanelRenderer.isContentVideoEngagementPanel,e.adsEngagementPanelRenderer.adVideoId,e.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,E,I,function(T,v,B,m){var a=n.X.get(),x=T.slotId,V=e.adsEngagementPanelRenderer;T=Mp(n.wO.get(),T);return Cw(a,x,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new vK(V),v,B,V.impressionPings,T,e.adsEngagementPanelRenderer.adLayoutLoggingData,m)}),[]; if(e.adsEngagementPanelLayoutViewModel)return jB(q,M.elementId,h,e.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,e.adsEngagementPanelLayoutViewModel.adVideoId,e.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,E,I,function(T,v,B,m){var a=n.X.get(),x=T.slotId,V=e.adsEngagementPanelLayoutViewModel;T=Mp(n.wO.get(),T);return rt(a,x,"LAYOUT_TYPE_PANEL",new T4(V),v,B,T,e.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,m)}),[]; if(e.actionCompanionAdRenderer!=null){if(e.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Q1J(n.W.get(),n.Z,n.X.get(),e.actionCompanionAdRenderer,E,I,t,O);jB(q,M.elementId,h,e.actionCompanionAdRenderer.isContentVideoCompanion,e.actionCompanionAdRenderer.adVideoId,e.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,E,I,function(T,v,B,m){var a=n.X.get(),x=T.slotId,V=e.actionCompanionAdRenderer;T=Mp(n.wO.get(),T);return Cw(a,x,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new LT(V),v,B,V.impressionPings,T,e.actionCompanionAdRenderer.adLayoutLoggingData,m)})}else if(e.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(e.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return pYd(n.W.get(),n.Z,n.X.get(),e.topBannerImageTextIconButtonedLayoutViewModel,E,I,t,O); jB(q,M.elementId,h,e.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,e.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,e.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,E,I,function(T,v,B,m){var a=n.X.get(),x=T.slotId,V=e.topBannerImageTextIconButtonedLayoutViewModel;T=Mp(n.wO.get(),T);return rt(a,x,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new PK(V),v,B,T,e.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,m)})}else if(e.imageCompanionAdRenderer)jB(q, M.elementId,h,e.imageCompanionAdRenderer.isContentVideoCompanion,e.imageCompanionAdRenderer.adVideoId,e.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,E,I,function(T,v,B,m){var a=n.X.get(),x=T.slotId,V=e.imageCompanionAdRenderer; T=Mp(n.wO.get(),T);return Cw(a,x,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new BK(V),v,B,V.impressionPings,T,e.imageCompanionAdRenderer.adLayoutLoggingData,m)}); else if(e.bannerImageLayoutViewModel)jB(q,M.elementId,h,e.bannerImageLayoutViewModel.isContentVideoCompanion,e.bannerImageLayoutViewModel.adVideoId,e.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,E,I,function(T,v,B,m){var a=n.X.get(),x=T.slotId,V=e.bannerImageLayoutViewModel;T=Mp(n.wO.get(),T);return rt(a,x,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new De(V),v,B,T,e.bannerImageLayoutViewModel.adLayoutLoggingData,m)}); else if(e.shoppingCompanionCarouselRenderer)jB(q,M.elementId,h,e.shoppingCompanionCarouselRenderer.isContentVideoCompanion,e.shoppingCompanionCarouselRenderer.adVideoId,e.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,E,I,function(T,v,B,m){var a=n.X.get(),x=T.slotId,V=e.shoppingCompanionCarouselRenderer;T=Mp(n.wO.get(),T);return Cw(a,x,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new An(V),v,B,V.impressionPings,T,e.shoppingCompanionCarouselRenderer.adLayoutLoggingData,m)}); else if(e.adBreakServiceRenderer){if(!rNf(M))return[];if(h==="AD_PLACEMENT_KIND_PAUSE")return CS1(n.W.get(),E,I,M.renderer.adBreakServiceRenderer,t);if(h!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&h!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return V4R(n.W.get(),E,I,M.renderer.adBreakServiceRenderer,t,c,Y);k.r7||Kz("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:h,adPlacementConfig:E,daiEnabledForContentVideo:String(Y),isServedFromLiveInfra:String(k.r7),clientPlaybackNonce:k.clientPlaybackNonce}); if(h==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!n.gJ)return new r("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!n.Eh)return new r("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");n.Eh.Nk({adPlacementRenderer:M,contentCpn:t,m8:c});c=n.gJ.get().getCurrentTimeSec(1,!1);return FbU(n.W.get(),M.renderer.adBreakServiceRenderer,E,c,t,I,Y)}if(!n.Nj)return new r("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); n.Nj.Nk({adPlacementRenderer:M,contentCpn:t,m8:c})}else{if(e.clientForecastingAdRenderer)return bjd(n.W.get(),n.X.get(),E,I,e.clientForecastingAdRenderer,t,c,O);if(e.invideoOverlayAdRenderer)return ggs(n.W.get(),n.X.get(),E,I,e.invideoOverlayAdRenderer,t,c,O);if(e.instreamAdPlayerOverlayRenderer)return NNJ(n.W.get(),n.X.get(),E,I,e.instreamAdPlayerOverlayRenderer,t,O);if((e.linearAdSequenceRenderer||e.instreamVideoAdRenderer)&&L)return ynd(n.W.get(),n.X.get(),M,t,O,d,!n.Zk.get().G.T().D("html5_override_ad_video_length_killswitch")); if(e.linearAdSequenceRenderer&&!L){if(G)return[];sD(q,e,h);if(e.linearAdSequenceRenderer.adLayoutMetadata){if(!mtf(e.linearAdSequenceRenderer))return new r("Received invalid LinearAdSequenceRenderer.")}else if(e.linearAdSequenceRenderer.linearAds==null)return new r("Received invalid LinearAdSequenceRenderer.");if(g.R(e.linearAdSequenceRenderer.adStart,Jp)){Kz("Found AdNotify in LinearAdSequenceRenderer");M=g.R(e.linearAdSequenceRenderer.adStart,Jp);if(!yNk(M))return new r("Invalid AdMessageRenderer."); Y=e.linearAdSequenceRenderer.linearAds;return STd(n.J.get(),n.W.get(),n.X.get(),n.wO.get(),E,I,M,Dw(e.linearAdSequenceRenderer.adLayoutMetadata)?e.linearAdSequenceRenderer.adLayoutMetadata:void 0,Y,t,c,k,O,b,n.loadPolicy,n.Zk.get())}return P0a(n.W.get(),n.X.get(),E,I,e.linearAdSequenceRenderer.linearAds,Dw(e.linearAdSequenceRenderer.adLayoutMetadata)?e.linearAdSequenceRenderer.adLayoutMetadata:void 0,t,c,k,O,b,n.loadPolicy,n.Zk.get(),N)}if(!e.remoteSlotsRenderer||Y){if(e.instreamVideoAdRenderer&& !L){if(G)return[];sD(q,e,h);return Tc_(n.W.get(),n.X.get(),E,I,e.instreamVideoAdRenderer,t,c,k,O,b,n.loadPolicy,n.Zk.get(),n.wO.get(),N)}if(e.instreamSurveyAdRenderer)return U1R(n.W.get(),n.X.get(),e.instreamSurveyAdRenderer,E,I,t,O,$8(n.Zk.get(),"supports_multi_step_on_desktop"));if(e.sandwichedLinearAdRenderer!=null)return $tu(e.sandwichedLinearAdRenderer)?g.R(e.sandwichedLinearAdRenderer.adVideoStart,Jp)?(Kz("Found AdNotify in SandwichedLinearAdRenderer"),M=g.R(e.sandwichedLinearAdRenderer.adVideoStart, Jp),yNk(M)?(Y=g.R(e.sandwichedLinearAdRenderer.linearAd,Vy))?HTd(M,Y,E,n.J.get(),n.W.get(),n.X.get(),n.wO.get(),I,t,c,k,O,b,n.loadPolicy,n.Zk.get()):new r("Missing IVAR from Sandwich"):new r("Invalid AdMessageRenderer.")):P0a(n.W.get(),n.X.get(),E,I,[e.sandwichedLinearAdRenderer.adVideoStart,e.sandwichedLinearAdRenderer.linearAd],void 0,t,c,k,O,b,n.loadPolicy,n.Zk.get()):new r("Received invalid SandwichedLinearAdRenderer.");if(e.videoAdTrackingRenderer!=null)return KbJ(n.W.get(),n.X.get(),e.videoAdTrackingRenderer, E,I,t,c,k.m4,O)}}return[]}; xW=function(n,q,M,t,c,Y,G,k){g.F.call(this);var b=this;this.W=n;this.Z=q;this.Hm=t;this.gJ=c;this.Zk=Y;this.Gs=G;this.I8=k;this.X=null;M.get().addListener(this);this.addOnDisposeCallback(function(){M.qm()||M.get().removeListener(b)}); t.get().addListener(this);this.addOnDisposeCallback(function(){t.qm()||t.get().removeListener(b)})}; ng=function(n,q,M){var t=n.gJ.get().getCurrentTimeSec(1,!1);n.Zk.get().G.T().Aq()&&U0(n.Gs.get(),"sdai","onopp.1;evt."+M.event+";start."+M.startSecs.toFixed(3)+";d."+M.Dy.toFixed(3));t5(n.W.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var c=n.Z.get(),Y=q.adPlacementRenderer.renderer.adBreakServiceRenderer,G=q.contentCpn,k=q.adPlacementRenderer.adSlotLoggingData;QC(n.Zk.get());var b=n.Gs;var d=c.Zk.get();d=g.ic(d.G.T().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var N=c.Zk.get();var O=g.ic(N.G.T().experiments,"min_prefetch_offset_sec_for_livestream_optimization");N=M.startSecs*1E3;N={ZN:new yA(N,N+M.Dy*1E3),VV:!1,cueProcessedMs:t*1E3};var e=M.startSecs+M.Dy;if(t===0)N.eb=new yA(0,e*1E3);else{O=M.startSecs-O;var E=O-t;N.eb=E<=0?new yA(O*1E3,e*1E3):new yA(Math.floor(t+Math.random()*Math.min(E,d))*1E3,e*1E3)}Y=hp(c,Y,G,N,k,[new N1(M)]);pw(c.Zk.get())&&U0(b.get(),"abrsm","cpi."+M.identifier+";cps."+M.startSecs+";cpd."+M.Dy+";cts."+t+";rbf."+N.eb.start);b.get().G.hv(M.startSecs- t,N.eb.start/1E3-t);return[Y]})}; qL=function(n){var q,M=(q=rN(n.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current;if(!M)return null;q=rN(n.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var t=n.layoutId,c=rN(n.clientMetadata,"metadata_type_content_cpn"),Y=rN(n.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),G=rN(n.clientMetadata,"metadata_type_player_overlay_layout_renderer"),k=rN(n.clientMetadata,"metadata_type_player_underlay_renderer"),b=rN(n.clientMetadata, "metadata_type_ad_placement_config"),d=rN(n.clientMetadata,"metadata_type_video_length_seconds");var N=wN(n.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?rN(n.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):wN(n.clientMetadata,"metadata_type_layout_enter_ms")&&wN(n.clientMetadata,"metadata_type_layout_exit_ms")?(rN(n.clientMetadata,"metadata_type_layout_exit_ms")-rN(n.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{MH:t,contentCpn:c,CM:M,lZ:q,instreamAdPlayerOverlayRenderer:Y, playerOverlayLayoutRenderer:G,instreamAdPlayerUnderlayRenderer:k,adPlacementConfig:b,videoLengthSeconds:d,Vy:N,inPlayerLayoutId:rN(n.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:rN(n.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; a3J=function(n,q){return Zjm(n,q)}; R51=function(n,q){q=Zjm(n,q);if(!q)return null;var M;q.Vy=(M=rN(n.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:M.adBreakRemainingLengthSeconds;return q}; Zjm=function(n,q){var M,t=(M=rN(n.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:M.current;if(!t)return null;M=Kyd(n,q);return{fW:G2s(n,q),adPlacementConfig:rN(n.clientMetadata,"metadata_type_ad_placement_config"),oE:M,contentCpn:rN(n.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:rN(n.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:rN(n.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:rN(n.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Vy:void 0,CM:t,MH:n.layoutId,videoLengthSeconds:rN(n.clientMetadata,"metadata_type_video_length_seconds")}}; ML=function(n,q,M,t,c,Y,G,k,b){g.F.call(this);this.J=n;this.C=q;this.S=M;this.Z=t;this.X=c;this.W=Y;this.wO=G;this.Zk=k;this.Dk=b;this.cI=!0}; ogs=function(n,q,M){return uQm(n.X.get(),q.contentCpn,q.MH,function(t){return Bcs(n.W.get(),t.slotId,M,q.adPlacementConfig,q.MH,Mp(n.wO.get(),t))})}; iG=function(n,q,M,t,c,Y,G,k){g.F.call(this);this.W=n;this.X=q;this.Z=M;this.Zk=t;this.J=c;this.Dk=Y;this.gJ=G;this.GX=k}; tj=function(n){g.F.call(this);this.X=n}; t5=function(n,q,M,t){n.X().sC(q,t);M=M();n=n.X();n.mA.Do("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",q,t,M);q=g.S(M);for(M=q.next();!M.done;M=q.next())a:{t=n;M=M.value;t.mA.wT("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",M);t.mA.wT("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",M);try{var c=t.X;if(g.UC(M.slotId))throw new r("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(dj(c,M))throw new r("Duplicate registration for slot.",{slotId:M.slotId,slotEntryTriggerType:M.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!c.mR.Ac.has(M.slotType))throw new r("No fulfillment adapter factory registered for slot of type: "+M.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!c.mR.Ml.has(M.slotType))throw new r("No SlotAdapterFactory registered for slot of type: "+M.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");PH(c,"TRIGGER_CATEGORY_SLOT_ENTRY",M.slotEntryTrigger?[M.slotEntryTrigger]:[]);PH(c,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", M.slotFulfillmentTriggers);PH(c,"TRIGGER_CATEGORY_SLOT_EXPIRATION",M.slotExpirationTriggers);var Y=t.X,G=M.slotType+"_"+M.slotPhysicalPosition,k=S$(Y,G);if(dj(Y,M))throw new r("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");k.set(M.slotId,new n7C(M));Y.X.set(G,k)}catch(bf){bf instanceof r&&bf.l0?(t.mA.ww("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",bf.l0,M),Kz(bf,M,void 0,void 0,bf.xx)):(t.mA.ww("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", M),Kz(bf,M));break a}dj(t.X,M).C=!0;try{var b=t.X,d=dj(b,M),N=M.slotEntryTrigger,O=b.mR.Rz.get(N.triggerType);O&&(O.B_("TRIGGER_CATEGORY_SLOT_ENTRY",N,M,null),d.wJ.set(N.triggerId,O));for(var e=g.S(M.slotFulfillmentTriggers),E=e.next();!E.done;E=e.next()){var h=E.value,I=b.mR.Rz.get(h.triggerType);I&&(I.B_("TRIGGER_CATEGORY_SLOT_FULFILLMENT",h,M,null),d.xl.set(h.triggerId,I))}for(var L=g.S(M.slotExpirationTriggers),T=L.next();!T.done;T=L.next()){var v=T.value,B=b.mR.Rz.get(v.triggerType);B&&(B.B_("TRIGGER_CATEGORY_SLOT_EXPIRATION", v,M,null),d.U.set(v.triggerId,B))}var m=b.mR.Ac.get(M.slotType).get().build(b.Z,M);d.N=m;var a=b.mR.Ml.get(M.slotType).get().build(b.S,M);a.init();d.W=a}catch(bf){bf instanceof r&&bf.l0?(t.mA.ww("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",bf.l0,M),Kz(bf,M,void 0,void 0,bf.xx)):(t.mA.ww("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",M),Kz(bf,M));KK(t,M,!0);break a}t.mA.wT("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",M);t.X.K9(M);for(var x=g.S(t.W),V=x.next();!V.done;V= x.next())V.value.K9(M);gj(t,M)}}; cc=function(n,q,M,t,c){g.F.call(this);var Y=this;this.W=n;this.Z=q;this.FV=M;this.context=c;this.X=new Map;t.get().addListener(this);this.addOnDisposeCallback(function(){t.qm()||t.get().removeListener(Y)})}; ata=function(n,q){var M=0x8000000000000,t=0,c=0x8000000000000;var Y=g.S(q.slotFulfillmentTriggers);for(var G=Y.next();!G.done;G=Y.next())if(G=G.value,G instanceof N4){var k=G.X.start;M=Math.min(M,k);t=Math.max(t,G.X.end);G.visible&&(c=Math.min(c,k))}else Kz("Found unexpected fulfillment trigger for throttled slot.",q,null,{fulfillmentTrigger:G});Y=M;c=c<0x8000000000000&&M0&&s6(n.C(),M)}; SG=function(n,q,M,t,c){for(var Y=[],G=g.S(n.Gk.values()),k=G.next();!k.done;k=G.next()){var b=k=k.value,d=b.trigger;b=b.slot;if(d.triggerType===q){if(d instanceof km||d instanceof b2||d instanceof O7){if(c&&d.breakDurationMs!==M)continue;if(!c&&d.breakDurationMs===M)continue;if(t.has(b.slotId))continue}Y.push(k)}}Y.length>0&&s6(n.C(),Y)}; M$d=function(n,q){q=(q.Dy+1)*1E3;var M=void 0;n=g.S(n.Gk.values());for(var t=n.next();!t.done;t=n.next()){var c=t.value;t=c.trigger;c=c.slot;t instanceof km&&t.breakDurationMs<=q&&(!M||t.breakDurationMs>M.trigger.breakDurationMs)&&(M={slot:c,trigger:t})}return M}; iKk=function(n){n=n.adPlacementRenderer.config.adPlacementConfig;if(!n.prefetchModeConfig||!n.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;n=Number(n.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(n)||n<=0?0:Math.floor(Math.random()*n)}; t$U=function(n){n=n.adPlacementRenderer.config.adPlacementConfig;if(n.prefetchModeConfig&&n.prefetchModeConfig.cacheFetchRefreshDurationMs&&(n=Number(n.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(n)||n<=0)))return n}; Ih=function(n){n.X=null;n.Gk.clear();n.W&&n.W.stop();n.S&&n.S.stop();var q;(q=n.Z)==null||q.stop();delete n.Z}; n8s=function(n){var q=[];n=g.S(n.Gk.values());for(var M=n.next();!M.done;M=n.next())M=M.value.trigger,M instanceof km&&q.push(M.breakDurationMs);return q}; fg=function(n){g.F.call(this);this.Z=n;this.cI=!0;this.Gk=new Map;this.X=new Map;this.W=new Map}; cik=function(n,q){var M=[];if(q=n.X.get(q.layoutId)){q=g.S(q);for(var t=q.next();!t.done;t=q.next())(t=n.W.get(t.value.triggerId))&&M.push(t)}return M}; Hc=function(n){g.F.call(this);this.X=n;this.Gk=new Map}; Y6s=function(n,q){for(var M=[],t=g.S(n.Gk.values()),c=t.next();!c.done;c=t.next())c=c.value,c.trigger instanceof ps&&c.trigger.slotId===q&&M.push(c);M.length>=1&&s6(n.X(),M)}; GGf=function(n,q){var M={slotId:cj(q,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ox:"surface",clientMetadata:new Cj([])},t=Object,c=t.assign;q=Fj(q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",M.slotId);q={layoutId:q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Rm:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], Ox:"surface",clientMetadata:new Cj([]),Dn:ZB1(!1,M.slotId,M.slotType,M.slotPhysicalPosition,M.Ox,M.slotEntryTrigger,M.slotFulfillmentTriggers,M.slotExpirationTriggers,q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return c.call(t,{},n,{QLE:!0,slot:M,layout:q})}; JNf=function(n,q,M,t){var c=n.kind;t=t?!1:!n.hideCueRangeMarker;switch(c){case "AD_PLACEMENT_KIND_START":return t={ZN:new yA(-0x8000000000000,-0x8000000000000),VV:t},M!=null&&(t.eb=new yA(-0x8000000000000,-0x8000000000000)),t;case "AD_PLACEMENT_KIND_END":return t={ZN:new yA(0x7ffffffffffff,0x8000000000000),VV:t},M!=null&&(t.eb=new yA(Math.max(0,q-M),0x8000000000000)),t;case "AD_PLACEMENT_KIND_MILLISECONDS":c=n.adTimeOffset;c.offsetStartMilliseconds||Kz("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); c.offsetEndMilliseconds||Kz("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");n=Number(c.offsetStartMilliseconds);c=Number(c.offsetEndMilliseconds);c===-1&&(c=q);if(Number.isNaN(n)||Number.isNaN(c)||n>c)return new r("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:n,offsetEndMs:c},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",c===q&&n-500<=c);t={ZN:new yA(n,c),VV:t};if(M!=null){n=Math.max(0,n-M);if(n===c)return t;t.eb=new yA(n,c)}return t; default:return new r("AdPlacementKind not supported in convertToRange.",{kind:c,adPlacementConfig:n})}}; Kqd=function(n){if(!n||!n.adPlacements&&!n.adSlots)return!1;for(var q=g.S(n.adPlacements||[]),M=q.next();!M.done;M=q.next())if(M=M.value)if(M=M.adPlacementRenderer,M!=null&&(M.config&&M.config.adPlacementConfig&&M.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;n=g.S(n.adSlots||[]);for(q=n.next();!q.done;q=n.next()){var t=M=void 0;if(((M=g.R(q.value,eB))==null?void 0:(t=M.adSlotMetadata)==null?void 0:t.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Lg=function(n){this.Zk=n;this.W=new Map;this.X=new Map;this.Z=new Map}; cj=function(n,q){if(Pc(n.Zk.get())){var M=n.W.get(q)||0;M++;n.W.set(q,M);return q+"_"+M}return g.Ec(16)}; Fj=function(n,q,M){if(Pc(n.Zk.get())){var t=n.X.get(q)||0;t++;n.X.set(q,t);return M+"_"+q+"_"+t}return g.Ec(16)}; mV=function(n,q){if(Pc(n.Zk.get())){var M=n.Z.get(q)||0;M++;n.Z.set(q,M);return q+"_"+M}return g.Ec(16)}; kGm=function(n){var q=[new tm(n.MH),new Kj(n.CM),new FQ(n.adPlacementConfig),new gN(n.videoLengthSeconds),new ve(n.Vy)];n.instreamAdPlayerOverlayRenderer&&q.push(new Jn(n.instreamAdPlayerOverlayRenderer));n.playerOverlayLayoutRenderer&&q.push(new VE(n.playerOverlayLayoutRenderer));n.lZ&&q.push(new on(n.lZ));return q}; bKd=function(n,q,M,t,c,Y){n=M.inPlayerLayoutId?M.inPlayerLayoutId:Fj(Y,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",n);var G,k,b=M.instreamAdPlayerOverlayRenderer?(G=M.instreamAdPlayerOverlayRenderer)==null?void 0:G.adLayoutLoggingData:(k=M.playerOverlayLayoutRenderer)==null?void 0:k.adLayoutLoggingData;G={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ox:q};return{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Rm:new Map,layoutExitNormalTriggers:[new Gi(function(d){return mV(Y, d)},M.MH)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:q,clientMetadata:t,Dn:c(G),adLayoutLoggingData:b}}; vc=function(n,q){var M=this;this.W=n;this.Zk=q;this.X=function(t){return mV(M.W.get(),t)}}; Bcs=function(n,q,M,t,c,Y){M=new Cj([new CT(M),new FQ(t)]);q=Fj(n.W.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",q);t={layoutId:q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ox:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Rm:new Map,layoutExitNormalTriggers:[new Gi(function(G){return mV(n.W.get(),G)},c)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:M,Dn:Y(t),adLayoutLoggingData:void 0}}; vU=function(n,q,M,t,c){var Y=kGm(t);return bKd(q,M,t,new Cj(Y),c,n.W.get())}; dp1=function(n,q,M,t,c){var Y=kGm(t);Y.push(new ml(t.fW));Y.push(new $n(t.oE));return bKd(q,M,t,new Cj(Y),c,n.W.get())}; Cw=function(n,q,M,t,c,Y,G,k,b,d){q=Fj(n.W.get(),M,q);var N={layoutId:q,layoutType:M,Ox:"core"},O=new Map;G&&O.set("impression",G);G=[new gq(n.X,c,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];d&&G.push(new Ym(n.X,d,["normal"]));return{layoutId:q,layoutType:M,Rm:O,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:new Cj([t,new FQ(Y),new tm(c)]),Dn:k(N),adLayoutLoggingData:b}}; rt=function(n,q,M,t,c,Y,G,k,b){q=Fj(n.W.get(),M,q);var d={layoutId:q,layoutType:M,Ox:"core"},N=[new gq(n.X,c,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];b&&N.push(new Ym(n.X,b,["normal"]));return{layoutId:q,layoutType:M,Rm:new Map,layoutExitNormalTriggers:N,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:new Cj([t,new FQ(Y),new tm(c)]),Dn:G(d),adLayoutLoggingData:k}}; FN=function(n,q,M){var t=[];t.push(new eb(n.X,M));q&&t.push(q);return t}; $W=function(n,q,M,t,c,Y,G){var k={layoutId:q,layoutType:M,Ox:"core"};return{layoutId:q,layoutType:M,Rm:new Map,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[new M4(n.X,q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:new Cj([new uT(t),new FQ(c)]),Dn:Y(k),adLayoutLoggingData:t.adLayoutLoggingData}}; fw=function(n,q,M,t,c,Y,G,k){var b={layoutId:q,layoutType:Y,Ox:"core"};return{layoutId:q,layoutType:Y,Rm:new Map,layoutExitNormalTriggers:[new Gi(n.X,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:new Cj([new FQ(t)].concat(g.EJ(G))),Dn:c(b),adLayoutLoggingData:k}}; a2=function(n,q,M,t){if(n.Zk.get().D6(q.kind==="AD_PLACEMENT_KIND_START"))if(M===void 0)Kz("Expected SSAP layout ID in renderer",void 0,void 0,{caller:t});else return M}; e5j=function(n,q,M,t,c,Y,G,k,b,d,N,O,e){n=ZY(n,q,M,c,Y,G,k,b,O,a2(n,M,t.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),e);q=n.AF;M=new ce(n.AL);t=n.layoutExitSkipTriggers;d>0&&(q.push(M),q.push(new Rn(d)),t=[]);q.push(new an(N));return{l7:{layoutId:n.layoutId,layoutType:n.layoutType,Rm:n.Rm,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:n.Ox,clientMetadata:new Cj(q),Dn:n.Dn, adLayoutLoggingData:n.adLayoutLoggingData},nL:t,S8:n.layoutExitMuteTriggers,mH:n.layoutExitUserInputSubmittedTriggers,Cy:n.layoutExitUserCancelledTriggers,Yy:n.Yy}}; ymR=function(n,q,M,t,c,Y,G,k,b,d){q=ZY(n,q,M,t,Y,new Map,G,function(N){return k(N,b)},void 0,a2(n,M,c.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); n=new U7(n.X,q.AL);M=new ce(q.AL);d=new an(d);return{l7:{layoutId:q.layoutId,layoutType:q.layoutType,Rm:q.Rm,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:q.Ox,clientMetadata:new Cj([].concat(g.EJ(q.AF),[M,d])),Dn:q.Dn,adLayoutLoggingData:q.adLayoutLoggingData},nL:q.layoutExitSkipTriggers,S8:q.layoutExitMuteTriggers,mH:[].concat(g.EJ(q.layoutExitUserInputSubmittedTriggers),[n]),Cy:q.layoutExitUserCancelledTriggers, Yy:q.Yy}}; ZY=function(n,q,M,t,c,Y,G,k,b,d,N){q=d!=null?d:Fj(n.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",q);d={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ox:"adapter"};k=k(q);var O=rN(k.clientMetadata,"metadata_type_fulfilled_layout");O||Kz("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var e=O?O.layoutId:"";M=[new FQ(M),new Tm(t),new u0(c)];O&&M.push(new Yg(O.layoutType));N&&M.push(new sT(N));return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", Rm:Y,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new yy(n.X,e)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"adapter",AF:M,Dn:G(d),adLayoutLoggingData:b,Yy:k,AL:e}}; leC=function(n,q,M,t,c,Y,G,k,b,d,N){n=Nja(n,q,"core",M,t,c,Y,G,k,b,d,void 0,N);return{layoutId:n.layoutId,layoutType:n.layoutType,Rm:n.Rm,layoutExitNormalTriggers:n.layoutExitNormalTriggers,layoutExitSkipTriggers:n.layoutExitSkipTriggers,layoutExitMuteTriggers:n.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:n.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:n.layoutExitUserCancelledTriggers,Ox:n.Ox,clientMetadata:new Cj(n.e2),Dn:n.Dn,adLayoutLoggingData:n.adLayoutLoggingData}}; TNj=function(n,q,M,t,c,Y,G,k,b,d,N,O,e){q=Nja(n,q,"adapter",M,t,c,Y,G,k,b,N,O,e);t=q.layoutExitSkipTriggers;c=q.e2;M.adPodSkipTarget&&M.adPodSkipTarget>0&&(c.push(d),c.push(new Rn(M.adPodSkipTarget)),t=[]);c.push(new an(k.adPodIndex));M.isCritical&&(t=[new Ym(n.X,q.layoutId,["error"])].concat(g.EJ(t)));return{l7:{layoutId:q.layoutId,layoutType:q.layoutType,Rm:q.Rm,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], Ox:q.Ox,clientMetadata:new Cj(c),Dn:q.Dn,adLayoutLoggingData:q.adLayoutLoggingData},nL:t,S8:q.layoutExitMuteTriggers,mH:q.layoutExitUserInputSubmittedTriggers,Cy:q.layoutExitUserCancelledTriggers}}; Nja=function(n,q,M,t,c,Y,G,k,b,d,N,O,e){var E={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",Ox:M};c=[new FQ(c),new Ze(b),new wc(t.externalVideoId),new z4(k),new u0({impressionCommands:t.impressionCommands,abandonCommands:t.onAbandonCommands,completeCommands:t.completeCommands,progressCommands:t.adVideoProgressCommands}),new eR(Y),new kg({current:null}),new gN(G)];(Y=t.playerOverlay.instreamAdPlayerOverlayRenderer)&&c.push(new Jn(Y));(G=t.playerOverlay.playerOverlayLayoutRenderer)&&c.push(new VE(G)); O&&c.push(new ET(O));(O=t.playerUnderlay)&&c.push(new CT(O));k=cj(n.W.get(),"SLOT_TYPE_IN_PLAYER");O=(O=Y?Y.elementId:G==null?void 0:G.layoutId)?O:Fj(n.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",k);c.push(new ce(O));c.push(new Gm(k));c.push(new sT(b.adPodIndex));t.adNextParams&&c.push(new lT(t.adNextParams));t.shrunkenPlayerBytesConfig&&c.push(new QE(t.shrunkenPlayerBytesConfig));t.clickthroughEndpoint&&c.push(new UK(t.clickthroughEndpoint));t.legacyInfoCardVastExtension&&c.push(new l0(t.legacyInfoCardVastExtension)); t.sodarExtensionData&&c.push(new hm(t.sodarExtensionData));N&&c.push(new Pe(N));c.push(new Am(gH(t.pings)));b=e9(t.pings);if(e){a:{e=g.S(e);for(N=e.next();!N.done;N=e.next())if(N=N.value,N.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(Y=g.R(N.fulfillmentContent.fulfilledLayout,cU))&&(Y=g.R(Y.renderingContent,ik))&&Y.associatedPlayerBytesLayoutId===q){e=N;break a}e=void 0}e&&c.push(new rc(e))}return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",Rm:b,layoutExitNormalTriggers:[new E7(n.X,q)],layoutExitSkipTriggers:t.skipOffsetMilliseconds? [new yy(n.X,O)]:[],layoutExitMuteTriggers:[new yy(n.X,O)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:M,e2:c,Dn:d(E),adLayoutLoggingData:t.adLayoutLoggingData}}; XKs=function(n,q,M,t,c,Y,G,k,b){t.every(function(N){return zm(N,[],["LAYOUT_TYPE_MEDIA"])})||Kz("Unexpect subLayout type for DAI composite layout"); q=Fj(n.W.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",q);var d={layoutId:q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ox:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Rm:new Map,layoutExitNormalTriggers:[new Kh(n.X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Ox:"core",clientMetadata:new Cj([new We(M),new yM(k),new dN(t),new FQ(c),new IK(Y),new Xi({}),new Fi(b)]),Dn:G(d)}}; Ens=function(n){return n!=null}; TR=function(n,q,M){var t=this;this.W=n;this.Z=q;this.Zk=M;this.X=function(c){return mV(t.W.get(),c)}}; FbU=function(n,q,M,t,c,Y,G){if(!M.prefetchModeConfig)return new r("AdPlacementConfig for Live Prefetch is missing prefetch_config");M=M.prefetchModeConfig;t*=1E3;var k=[];if(!M.breakLengthMs)return new r("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var b=g.S(M.breakLengthMs),d=b.next();!d.done;d=b.next())if(d=d.value,Number(d)>0){var N=t+Number(M.startTimeOffsetMs),O=N+Number(M.cacheFetchSmearingDurationMs);d={ZN:new yA(O,O+Number(d)),VV:!1,eb:new yA(Math.floor(N+Math.random()* Number(M.cacheFetchSmearingDurationMs)),O),cueProcessedMs:t?t:N};N=[];N.push(new oK({}));O=[];O.push(new WI(n.X));O.push(new Gou(n.X));G&&N.push(new Xi({}));k.push(hp(n,q,c,d,Y,N,O))}return k}; hp=function(n,q,M,t,c,Y,G){Y=Y===void 0?[]:Y;var k=cj(n.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");G||(G=[],t.eb&&t.eb.start!==t.ZN.start&&G.push(new N4(n.X,M,new yA(t.eb.start,t.ZN.start),!1)),G.push(new N4(n.X,M,new yA(t.ZN.start,t.ZN.end),t.VV)));t={getAdBreakUrl:q.getAdBreakUrl,rA:t.ZN.start,lD:t.ZN.end,cueProcessedMs:t.cueProcessedMs};q=new Sb(n.X,k);Y=[new He(t)].concat(g.EJ(Y));return{slotId:k,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:G, slotExpirationTriggers:[new hO(n.X,M),new Xl(n.X,k),new jb(n.X,k)],Ox:"core",clientMetadata:new Cj(Y),adSlotLoggingData:c}}; g8k=function(n,q,M){var t=[];M=g.S(M);for(var c=M.next();!c.done;c=M.next())t.push(OKa(n,q,c.value));return t}; OKa=function(n,q,M){return M.triggeringSlotId!=null&&M.triggeringSlotId===n?M.clone(q):M}; cns=function(n,q,M,t,c){return ets(n,q,M,t,c)}; EgU=function(n,q,M,t){var c=cj(n.W.get(),"SLOT_TYPE_IN_PLAYER");return ets(n,c,q,M,t)}; ets=function(n,q,M,t,c){var Y=new cI(n.X,M),G=[new s7(n.X,q)];n=[new Xl(n.X,q),new hO(n.X,t)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:G,slotExpirationTriggers:n,Ox:"core",clientMetadata:new Cj([new fj(c({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:G,slotExpirationTriggers:n},M))]),adSlotLoggingData:void 0}}; l3s=function(n,q,M,t,c,Y){var G=cj(n.W.get(),"SLOT_TYPE_PLAYER_BYTES"),k=cj(n.W.get(),"SLOT_TYPE_IN_PLAYER"),b=Fj(n.W.get(),"LAYOUT_TYPE_SURVEY",k);t=lG(n,q,M,t);var d=[new s7(n.X,G)];M=[new Xl(n.X,G),new hO(n.X,M),new M4(n.X,b)];if(t instanceof r)return t;k=Y({slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:t,slotFulfillmentTriggers:d,slotExpirationTriggers:M},{slotId:k,layoutId:b});Y=k.Kdl;k=k.LY;return[{slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:o2(n,q,G,t),slotFulfillmentTriggers:wt(n,q,G,d),slotExpirationTriggers:M,Ox:"core",clientMetadata:new Cj([new fj(Y),new Z3(zP(q)),new RK({MY:n.MY(q)})]),adSlotLoggingData:c},k]}; zP=function(n){return n.kind==="AD_PLACEMENT_KIND_START"}; U9C=function(n,q,M,t,c){c=c?c:cj(n.W.get(),"SLOT_TYPE_IN_PLAYER");M=new cI(n.X,M);var Y=[new s7(n.X,c)];n=[new hO(n.X,q),new Xl(n.X,c)];return{slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:Y,slotExpirationTriggers:n,Ox:"core",clientMetadata:new Cj([new fj(t({slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:M,slotFulfillmentTriggers:Y,slotExpirationTriggers:n}))])}}; uQm=function(n,q,M,t){var c=cj(n.W.get(),"SLOT_TYPE_PLAYER_UNDERLAY");M=new cI(n.X,M);var Y=[new s7(n.X,c)];n=[new hO(n.X,q),new Xl(n.X,c)];return{slotId:c,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:Y,slotExpirationTriggers:n,Ox:"core",clientMetadata:new Cj([new fj(t({slotId:c,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:M,slotFulfillmentTriggers:Y,slotExpirationTriggers:n}))])}}; IeJ=function(n,q,M,t,c,Y,G){var k=cj(n.W.get(),"SLOT_TYPE_IN_PLAYER"),b=Fj(n.W.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",k);t=E8U(n,t,Y,G,b);if(t instanceof r)return t;G=[new s7(n.X,k)];c=[new hO(n.X,Y),new s7(n.X,c),new l2(n.X,c)];M=Mp(M,{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:t,slotFulfillmentTriggers:G,slotExpirationTriggers:c});n=n.Z.get();Y={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ox:"core"};q={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Rm:new Map,layoutExitNormalTriggers:[new ePR(n.X,b,q.durationMs)],layoutExitSkipTriggers:[new hP1(n.X,b,q.durationMs)],layoutExitUserCancelledTriggers:[new EVU(n.X,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ox:"core",clientMetadata:new Cj([new UT(q)]),Dn:M(Y)};return{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:t,slotFulfillmentTriggers:G,slotExpirationTriggers:c,clientMetadata:new Cj([new fj(q)])}}; Oj_=function(n,q,M,t,c,Y){q=lG(n,q,M,t);if(q instanceof r)return q;var G=q instanceof N4?new NbU(n.X,M,q.X):null;t=cj(n.W.get(),"SLOT_TYPE_IN_PLAYER");var k=[new s7(n.X,t)];n=[new hO(n.X,M),new Xl(n.X,t)];Y=Y({slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:q,slotFulfillmentTriggers:k,slotExpirationTriggers:n},G);return Y instanceof VM?new r(Y):{slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:k,slotExpirationTriggers:n, Ox:"core",clientMetadata:new Cj([new fj(Y)]),adSlotLoggingData:c}}; d1s=function(n,q,M,t){var c=cj(n.W.get(),"SLOT_TYPE_IN_PLAYER"),Y=new q4(n.X,q),G=[new IF(n.X,c)];n=[new hO(n.X,q),new Xl(n.X,c)];return{slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:G,slotExpirationTriggers:n,Ox:"core",clientMetadata:new Cj([new fj(t({slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:G,slotExpirationTriggers:n}))]),adSlotLoggingData:M}}; d9a=function(n,q,M,t){var c=cj(n.W.get(),"SLOT_TYPE_IN_PLAYER");M=new cI(n.X,M);var Y=[new s7(n.X,c)],G=[new Xl(n.X,c),new hO(n.X,q)];Y={slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:M,slotFulfillmentTriggers:Y,slotExpirationTriggers:G};return{slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:[new s7(n.X,c)],slotExpirationTriggers:[new hO(n.X,q),new Xl(n.X,c)],Ox:"core",clientMetadata:new Cj([new fj(t(Y))])}}; Kl_=function(n,q,M,t,c){var Y=cj(n.W.get(),"SLOT_TYPE_IN_PLAYER");M=new tO(n.X,t,M);t=[new s7(n.X,Y)];n=[new hO(n.X,q)];return{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:t,slotExpirationTriggers:n,Ox:"core",clientMetadata:new Cj([new fj(c({slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:M,slotFulfillmentTriggers:t,slotExpirationTriggers:n}))])}}; M_J=function(n,q,M,t,c,Y){var G=cj(n.W.get(),q);return UE(n,G,q,new cI(n.X,t),[new hO(n.X,M),new Xl(n.X,G),new Ym(n.X,t,["error"])],c,Y)}; qKJ=function(n,q,M,t,c,Y,G){var k=cj(n.W.get(),q);return UE(n,k,q,new Ym(n.X,c,["normal"]),[new hO(n.X,M),new Xl(n.X,k),new Ym(n.X,t,["error"])],Y,G)}; xtu=function(n,q,M,t,c){var Y=cj(n.W.get(),q);return UE(n,Y,q,new q4(n.X,M),[new hO(n.X,M),new Xl(n.X,Y)],t,c)}; Gm1=function(n,q,M,t,c){M=M?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var Y=cj(n.W.get(),M);q=new q4(n.X,q);var G=[new s7(n.X,Y)];n=[new Xl(n.X,Y)];return{slotId:Y,slotType:M,slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:G,slotExpirationTriggers:n,Ox:"core",clientMetadata:new Cj([new fj(c({slotId:Y,slotType:M,slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:q,slotFulfillmentTriggers:G,slotExpirationTriggers:n}))]),adSlotLoggingData:t}}; hSs=function(n,q,M,t){var c=cj(n.W.get(),"SLOT_TYPE_PLAYER_BYTES"),Y=new dq(n.X),G=[new IF(n.X,c)];n=[new hO(n.X,q)];return{slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:G,slotExpirationTriggers:n,Ox:"core",clientMetadata:new Cj([new fj(t({slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:G,slotExpirationTriggers:n})),new Xi({})]),adSlotLoggingData:M}}; Hj_=function(n,q){return m1k(n.Zk.get())?new Ym(n.X,q,["normal","error","skipped"]):new Ym(n.X,q,["normal"])}; PTf=function(n,q,M,t,c){q=Hj_(n,q);n=R2(n,q,M);c=c({slotId:n.slotId,slotType:n.slotType,slotPhysicalPosition:n.slotPhysicalPosition,slotEntryTrigger:n.slotEntryTrigger,slotFulfillmentTriggers:n.slotFulfillmentTriggers,slotExpirationTriggers:n.slotExpirationTriggers,Ox:n.Ox});return c instanceof r?c:{Q0:Object.assign({},n,{clientMetadata:new Cj([new fj(c.layout)]),adSlotLoggingData:t}),Oh:c.Oh}}; vnu=function(n,q,M,t,c,Y,G){M=LbJ(n,q,M,t);if(M instanceof r)return M;G=G({slotId:M.slotId,slotType:M.slotType,slotPhysicalPosition:M.slotPhysicalPosition,slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers,Ox:M.Ox});if(G instanceof r)return G;t=[new Z3(zP(q)),new fj(G.layout),new RK({MY:n.MY(q)})];Y&&t.push(new Be({}));return{Q0:{slotId:M.slotId,slotType:M.slotType,slotPhysicalPosition:M.slotPhysicalPosition,slotEntryTrigger:o2(n, q,M.slotId,M.slotEntryTrigger),slotFulfillmentTriggers:wt(n,q,M.slotId,M.slotFulfillmentTriggers),slotExpirationTriggers:M.slotExpirationTriggers,Ox:M.Ox,clientMetadata:new Cj(t),adSlotLoggingData:c},Oh:G.Oh}}; o2=function(n,q,M,t){return n.Zk.get().D6(zP(q))?new ps(n.X,M):t}; wt=function(n,q,M,t){return n.Zk.get().D6(zP(q))?[new IF(n.X,M)]:t}; R2=function(n,q,M){var t=cj(n.W.get(),"SLOT_TYPE_PLAYER_BYTES"),c=[new s7(n.X,t)];n=[new Xl(n.X,t),new hO(n.X,M)];return{slotId:t,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:c,slotExpirationTriggers:n,Ox:"core"}}; LbJ=function(n,q,M,t){q=lG(n,q,M,t);return q instanceof r?q:R2(n,q,M)}; km1=function(n,q,M,t,c,Y){var G=cj(n.W.get(),"SLOT_TYPE_FORECASTING");q=lG(n,q,M,t);if(q instanceof r)return q;t=[new s7(n.X,G)];n=[new Xl(n.X,G),new hO(n.X,M)];return{slotId:G,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:t,slotExpirationTriggers:n,Ox:"core",clientMetadata:new Cj([new fj(Y({slotId:G,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:q,slotFulfillmentTriggers:t,slotExpirationTriggers:n}))]),adSlotLoggingData:c}}; ht_=function(n,q,M,t,c){var Y=!q.hideCueRangeMarker;switch(q.kind){case "AD_PLACEMENT_KIND_START":return new q4(n.X,M);case "AD_PLACEMENT_KIND_MILLISECONDS":return n=JNf(q,t),n instanceof r?n:c(n.ZN,Y);case "AD_PLACEMENT_KIND_END":return new i2(n.X,M,Y);default:return new r("Cannot construct entry trigger",{kind:q.kind})}}; E8U=function(n,q,M,t,c){return ht_(n,q,M,t,function(Y,G){return new dts(n.X,M,Y,G,c)})}; lG=function(n,q,M,t){return ht_(n,q,M,t,function(c,Y){return new N4(n.X,M,c,Y)})}; UE=function(n,q,M,t,c,Y,G){n=[new IF(n.X,q)];return{slotId:q,slotType:M,slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:n,slotExpirationTriggers:c,Ox:"core",clientMetadata:new Cj([new fj(G({slotId:q,slotType:M,slotPhysicalPosition:1,Ox:"core",slotEntryTrigger:t,slotFulfillmentTriggers:n,slotExpirationTriggers:c}))]),adSlotLoggingData:Y}}; L7_=function(){}; uG=function(n,q){g.F.call(this);this.Zk=n;this.X=q;this.eventCount=0;this.W=PWs()()}; Wqf=function(n,q,M){if(q){var t=q.adLayoutLoggingData;g.JJ(g.CL(),function(){n.W!=null&&t&&g.tx("adsSeenClientLogging",{serializedAdServingDataEntry:t.serializedAdServingDataEntry})},M!=null?M:0)}}; Bc=function(n,q,M,t){uG.call(this,n,q);this.Zk=n;this.Dk=M;this.context=t}; DJ=function(){this.X=new Map}; Aj=function(n){this.X="pending";this.W=[];this.Z=[];try{n(this.J.bind(this),this.reject.bind(this))}catch(q){this.reject(q)}}; yia=function(){var n,q;return{j3:new Aj(function(M,t){n=M;q=t}), resolve:n,reject:q}}; FK=function(n){return m$(n)?n:$h(n)?new Aj(function(q,M){n.then(q,M)}):new Aj(function(q){q(n)})}; ZJ=function(n){return new Aj(function(q,M){M(n)})}; ah=function(n){try{return FK(n())}catch(q){return ZJ(q)}}; oh=function(n,q,M){var t=yia(),c=t.j3,Y=t.resolve,G=t.reject;n.W.push(function(k){if(q)try{var b=q(k);Y(b)}catch(d){G(d)}else Y(k)}); n.Z.push(function(k){if(M)try{var b=M(k);Y(b)}catch(d){G(d)}else G(k)}); Rh(n);return c}; wL=function(n,q){return oh(n,void 0,q)}; sJm=function(n,q){oh(n,function(M){return oh(FK(q()),function(){return M})},function(M){return oh(FK(q()),function(){return ZJ(M)})})}; Rh=function(n){if(n.X==="fulfilled"){var q=n.W;n.W=[];n.Z=[];q=g.S(q);for(var M=q.next();!M.done;M=q.next())M=M.value,M(n.result)}else if(n.X==="rejected")for(q=n.Z,n.W=[],n.Z=[],q=g.S(q),M=q.next();!M.done;M=q.next())M=M.value,M(n.error)}; zR=function(n,q){return XHJ(q.call(n))}; Jj=function(n){return function M(){return $s(M,function(t){if(t.X==1)return g.fa(t,2),g.U(t,{j3:FK(n)},4);if(t.X!=2)return t.return(t.W);g.Bd(t);return g.Ds(t,0)})}()}; XHJ=function(n){return ah(function(){return Vz(n,n.next())})}; Vz=function(n,q){return q.done?FK(q.value):wL(oh(q.value.j3,function(M){return Vz(n,n.next(M))}),function(M){return Vz(n,n.throw(M))})}; Cg=function(n,q){if(n.length===0)return FK(NaN);var M=yia(),t=M.j3,c=M.resolve,Y=n.length;n=g.S(n.entries());var G=n.next();for(M={};!G.done;M={SD:void 0},G=n.next()){var k=g.S(G.value);G=k.next().value;k=k.next().value;M.SD=G;sJm(k,function(b){return function(){t.X==="pending"&&(jJd(q)&&q(b.SD)&&t.X==="pending"?c(b.SD):(--Y,Y===0&&c(NaN)))}}(M))}return t}; rL=function(n){return n.map(function(q){return FK(q)})}; Qz=function(n){var q=n.hours||0;var M=n.minutes||0,t=n.seconds||0;q=t+M*60+q*3600+(n.days||0)*86400+(n.weeks||0)*604800+(n.months||0)*2629800+(n.years||0)*31557600;q<=0?q={hours:0,minutes:0,seconds:0}:(n=q,q=Math.floor(n/3600),n%=3600,M=Math.floor(n/60),t=Math.floor(n%60),q={hours:q,minutes:M,seconds:t});var c=q.hours===void 0?0:q.hours;M=q.minutes===void 0?0:q.minutes;n=q.seconds===void 0?0:q.seconds;t=c>0;q=[];if(t){c=(new Intl.NumberFormat("en-u-nu-latn")).format(c);var Y=["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(" "); c="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(xh)?c.replace(",","\u00a0"):Y.includes(xh)?c.replace(",","\u202f"):G.includes(xh)?c.replace(",","."):c;q.push(c)}t=t===void 0?!1:t;M=(["af","be","lt"].includes(xh)||t)&&M<10?S6k().format(M):(new Intl.NumberFormat("en-u-nu-latn")).format(M);q.push(M);M=S6k().format(n);q.push(M);M=":";"da fi id si sr sr-Latn".split(" ").includes(xh)&&(M=".");return q.join(M)}; S6k=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; I4C=function(n,q){var M,t;n=((M=n.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(t=M.videoAuthorizationToken)==null?void 0:t.credentialTransferTokens)||[];for(M=0;Mq;n=M}else n=!1;return n}; g.gX=function(n,q){return n.AG+"timedtext_video?ref=player&v="+q.videoId}; g.Rtm=function(n){var q=this;this.videoData=n;n={};this.X=(n.c1a=function(){var M=[];if(g.Nl.isInitialized()){var t="";q.videoData&&q.videoData.qH&&(t=q.videoData.qH+("&r1b="+q.videoData.clientPlaybackNonce));var c={};t=(c.atr_challenge=t,c);lZ("bg_v",void 0,"player_att");(t=a41(t))?(lZ("bg_s",void 0,"player_att"),M.push("r1a="+t)):(lZ("bg_e",void 0,"player_att"),M.push("r1c=2"))}else lZ("bg_e",void 0,"player_att"),window.trayride||window.botguard?M.push("r1c=1"):M.push("r1c=4");M.push("r1d="+g.Nl.getState()); return M.join("&")},n.c6a=function(M){return"r6a="+(Number(M.c)^r5())},n.c6b=function(M){return"r6b="+(Number(M.c)^Number(g.RZ("CATSTAT",0)))},n); this.videoData&&this.videoData.qH?this.Gn=xd(this.videoData.qH):this.Gn={}}; g.o8f=function(n){if(n.videoData&&n.videoData.qH){for(var q=[n.videoData.qH],M=g.S(Object.keys(n.X)),t=M.next();!t.done;t=M.next())t=t.value,n.Gn[t]&&n.X[t]&&(t=n.X[t](n.Gn))&&q.push(t);return q.join("&")}return null}; g.eW=function(n,q){ZKd(n,{LFm:g.ic(q.experiments,"bg_vm_reinit_threshold"),cspNonce:q.cspNonce,AG:q.AG||""})}; wHj=function(){var n=XMLHttpRequest.prototype.fetch;return!!n&&n.length===3}; ztf=function(n){n=n[K[30]](K[9]);EM[K[14]](n,1);EM[K[20]](n,4);EM[K[14]](n,1);EM[K[20]](n,52);EM[K[20]](n,65);EM[K[20]](n,4);EM[K[14]](n,1);return n[K[32]](K[9])}; V$1=function(n){Jid=2592E3*(n||1)}; hc=function(n){n=n===void 0?Jid:n;if(n>0&&!(w2s()>(0,g.jt)()-n*1E3))return 0;n=g.vf("yt-player-quality");if(typeof n==="string"){if(n=g.$J[n],n>0)return n}else if(n instanceof Object)return n.quality;return 0}; WR=function(){var n=g.vf("yt-player-proxima-pref");return n==null?null:n}; Ccm=function(){var n=g.vf("yt-player-quality");if(n instanceof Object&&n.quality&&n.previousQuality){if(n.quality>n.previousQuality)return 1;if(n.quality0&&q[0]?n.getAutoplayPolicy(q[0]):n.getAutoplayPolicy("mediaelement");if(i5m[M])return i5m[M]}}catch(t){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; f9=function(n){return n.i7||n.xr||n.mutedAutoplay}; t9m=function(n,q){return f9(n)?q!==1&&q!==2&&q!==0?"AUTOPLAY_STATUS_UNAVAILABLE":n.h5?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; c5d=function(n,q,M){var t=q.T();n.thirdParty||(n.thirdParty={});t.ancestorOrigins&&(n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{ancestorOrigins:t.ancestorOrigins}));t.D("embeds_enable_autoplay_and_visibility_signals")&&(t.I2!=null&&(n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(t.I2)})),t.Fw&&(n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{visibilityFractionSource:t.Fw})), n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:If(),autoplayIntended:f9(q),autoplayStatus:t9m(q,M)}))}; Yxd=function(n){var q=[];n=g.S(n.split(","));for(var M=n.next();!M.done;M=n.next()){var t=M.value;t&&((M=t.startsWith("!"))&&(t=t.substring(1)),t=t.split("-"),t.length<3||q.push({ek:t[0],platform:t[1],deviceVersion:t[2],jH:M}))}return q}; kpR=function(n){return Yxd(n).map(function(q){return{deviceInterface:GpU[Kzj[q.ek]]||0,deviceVersion:q.deviceVersion||"",isSleeping:q.jH}})}; g.HR=function(n,q){this.id=n;this.tq=q;this.captionTracks=[];this.Z=this.J=null;this.xtags="";this.S=!1;this.X=null;this.W="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";n=this.tq.id.split(".");n.length>1&&(this.S=n[1]==="2")}; L9=function(n,q,M,t,c){this.W=n;this.X=q;this.Z=M;this.reason=t;this.Bb=c===void 0?0:c}; g.PR=function(n,q,M,t){return new L9(g.$J[n]||0,g.$J[q]||0,M,t)}; TF=function(n){if(vR&&n.Bb)return!1;var q=g.$J.auto;return n.W===q&&n.X===q}; UM=function(n){return lv[n.X||n.W]||"auto"}; b5a=function(n,q){q=g.$J[q];return n.W<=q&&(!n.X||n.X>=q)}; uv=function(n){return"["+n.W+"-"+n.X+", override: "+(n.Z+", reason: "+n.reason+"]")}; BR=function(n,q,M,t){this.videoInfos=n;this.X=q;this.audioTracks=[];this.W=t||[];if(this.X){n=new Set;M==null||M({ainfolen:this.X.length});q=g.S(this.X);for(t=q.next();!t.done;t=q.next())if(t=t.value,!t.tq||n.has(t.tq.id)){var c=void 0,Y=void 0,G=void 0;(G=M)==null||G({atkerr:!!t.tq,itag:t.itag,xtag:t.X,lang:((c=t.tq)==null?void 0:c.name)||"",langid:((Y=t.tq)==null?void 0:Y.id)||""})}else c=new g.HR(t.id,t.tq),n.add(t.tq.id),this.audioTracks.push(c);M==null||M({atklen:this.audioTracks.length})}}; DG=function(){g.F.apply(this,arguments);this.X=null}; gom=function(n,q,M,t,c,Y,G){if(n.X)return n.X;var k={},b=new Set,d={};if(Ac(t)){for(var N in t.X)t.X.hasOwnProperty(N)&&(n=t.X[N],d[n.info.Ts]=[n.info]);return d}N=dYu(q,t,k);Y&&c({aftsrt:mk(N)});for(var O={},e=g.S(Object.keys(N)),E=e.next();!E.done;E=e.next()){E=E.value;for(var h=g.S(N[E]),I=h.next();!I.done;I=h.next()){I=I.value;var L=I.itag,T=void 0,v=E+"_"+(((T=I.video)==null?void 0:T.fps)||0);O.hasOwnProperty(v)?O[v]===!0?d[E].push(I):k[L]=O[v]:(T=$y(q,I,M,t.isLive,b),T!==!0?(G.add(E),k[L]=T, T==="disablevp9hfr"&&(O[v]="disablevp9hfr")):(d[E]=d[E]||[],d[E].push(I),O[v]=!0))}}Y&&c({bfflt:mk(d)});for(var B in d)d.hasOwnProperty(B)&&(t=B,d[t]&&d[t][0].Cu()&&(d[t]=d[t],d[t]=NHj(q,d[t],k),d[t]=O5a(d[t],k)));Y&&Object.keys(k).length>0&&c({rjr:gy(k)});q=g.S(b.values());for(t=q.next();!t.done;t=q.next())(t=M.J.get(t.value))&&--t.g_;Y&&c({aftflt:mk(d)});n.X=g.qk(d,function(m){return!!m.length}); return n.X}; EoR=function(n,q,M,t,c,Y,G,k){k=k===void 0?!1:k;if(q.Wm&&G&&G.length>1&&!(q.zr>0||q.B)){for(var b=q.W||!!c,d=b&&q.yS?Y:void 0,N=dYu(q,t),O=[],e=[],E={},h=0;h0&&E&&e&&(N=[G,M],m=e.concat(E).filter(function(a){return a})); if(m.length&&!q.W$){af(m,N);if(b){b=[];q=g.S(m);for(t=q.next();!t.done;t=q.next())b.push(t.value.itag);Y({hbdfmt:b.join(".")})}return Pk(new BR(m,c,d,n))}m=H5f(q);m=g.XO(m,k);if(!m){if(O[G])return Y=O[G],af(Y),Pk(new BR(Y,c,d,n));b&&Y({novideo:1});return Lp()}q.TX&&(m==="1"||m==="1h")&&O[M]&&(G=Rf(O[m]),N=Rf(O[M]),N>G?m=M:N===G&&LzR(O[M])&&(m=M));m==="9"&&O.h&&Rf(O.h)>Rf(O["9"])&&(m="h");q.uG&&t.isLive&&m==="("&&O.H&&Rf(O["("])<1440&&(m="H");b&&Y({vfmly:of(m)});q=O[m];if(!q.length)return b&&Y({novfmly:of(m)}), Lp();af(q);return Pk(new BR(q,c,d,n))}; WzU=function(n,q){var M=!(!n.m&&!n.M),t=!(!n.mac3&&!n.MAC3),c=!(!n.meac3&&!n.MEAC3);n=!(!n.i&&!n.I);q.K8=n;return M||t||c||n}; LzR=function(n){n=g.S(n);for(var q=n.next();!q.done;q=n.next())if(q=q.value,q.itag&&P7J.has(q.itag))return!0;return!1}; sSJ=function(n){n=g.S(n);for(var q=n.next();!q.done;q=n.next())if(q.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; of=function(n){switch(n){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return n}}; mk=function(n){var q=[],M;for(M in n)if(n.hasOwnProperty(M)){var t=M;q.push(of(t));t=g.S(n[t]);for(var c=t.next();!c.done;c=t.next())q.push(c.value.itag)}return q.join(".")}; hLd=function(n,q,M,t,c,Y){var G={},k={};g.n3(q,function(b,d){b=b.filter(function(N){var O=N.itag;if(!N.f8)return k[O]="noenc",!1;if(Y.O9&&N.Ts==="(h"&&Y.Wg)return k[O]="lichdr",!1;if(!n.S&&N.Ts==="1e")return k[O]="noav1enc",!1;if(N.Ts==="("||N.Ts==="(h"){if(n.Z&&M&&M.flavor==="widevine"){var e=N.mimeType+"; experimental=allowed";(e=!!N.f8[M.flavor]&&!!M.X[e])||(k[O]=N.f8[M.flavor]?"unspt":"noflv");return e}if(!wX(n,zF.CRYPTOBLOCKFORMAT)&&!n.IL||n.wJ)return k[O]=n.wJ?"disvp":"vpsub",!1}return M&&N.f8[M.flavor]&& M.X[N.mimeType]?!0:(k[O]=M?N.f8[M.flavor]?"unspt":"noflv":"nosys",!1)}); b.length&&(G[d]=b)}); t&&Object.entries(k).length&&c({rjr:gy(k)});return G}; O5a=function(n,q){var M=Xp(n,function(t,c){return c.video.fps>32?Math.min(t,c.video.width):t},Infinity); M32||t.video.widthn.C)return"max"+n.C;if(n.eX&&q.Ts==="h"&&q.video&&q.video.qualityOrdinal>1080)return"blkhigh264";if(q.Ts==="(h"&&!M.N)return"enchdr";if((t===void 0?0:t)&&ry(q)&&!n.SX)return"blk51live";if((q.Ts==="MAC3"||q.Ts==="mac3")&&!n.J)return"blkac3";if((q.Ts==="MEAC3"||q.Ts==="meac3")&&!n.S)return"blkeac3";if(q.Ts==="M"||q.Ts==="m")return"blkaac51"; if((q.Ts==="so"||q.Ts==="sa")&&!n.xl)return"blkamb";if(!n.O9&&TUk(q)&&(!M.S||q.Ts!=="1e"))return"cbc";if(!M.S&&TUk(q)&&q.Ts==="1e")return"cbcav1";if((q.Ts==="i"||q.Ts==="I")&&!n.Kd)return"blkiamf";var Y;if(n.Yi&&((Y=q.audio)==null?void 0:Y.W)===!0)return"blkvbcabr";var G,k;if(n.hE&&(q.Ts==="1"||q.Ts==="1h"||M.S&&q.Ts==="1e")&&((G=q.video)==null?0:G.qualityOrdinal)&&((k=q.video)==null?void 0:k.qualityOrdinal)>n.hE)return"av1cap";t=M.J.get(q.Ts);if(!n.Fh&&t&&t.g_>0)return c.add(q.Ts),"byerr";var b; if((b=q.video)==null?0:b.fps>32){if(!M.jX&&!wX(M,zF.FRAMERATE))return"capHfr";if(n.Yl&&q.video.qualityOrdinal>=4320)return"blk8khfr";if(wy(q)&&n.Z6&&q.f8&&q.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(n.Bb&&q.Bb>n.Bb)return"ratecap";if(n.wJ>0&&q.Cu()&&q.video.height>n.wJ)return"mvhcap";n=vo1(M,q);return n!==!0?n:!0}; af=function(n,q){q=q===void 0?[]:q;g.Vs(n,function(M,t){var c=t.Bb-M.Bb;if(!M.Cu()||!t.Cu())return c;var Y=t.video.height*t.video.width-M.video.height*M.video.width;!Y&&q&&q.length>0&&(M=q.indexOf(M.Ts)+1,t=q.indexOf(t.Ts)+1,Y=M===0||t===0?t||-1:M-t);Y||(Y=c);return Y})}; g.Jc=function(n,q){this[K[22]]=n;this[K[18]]=q===void 0?!1:q;this[K[41]]=this[K[16]]=this[K[23]]=K[9];this[K[19]]={};this[K[27]]=K[9]}; C9=function(n){Vh(n);return n[K[41]]}; rX=function(n){return n[K[22]]?n[K[22]][K[8]](K[5]):n[K[23]]===K[5]}; THs=function(n){Vh(n);return g.iV(n[K[19]],function(q){return q!==null})}; Qh=function(n){Vh(n);var q=decodeURIComponent(n[K[65]](K[46])||K[9])[K[30]](K[74]);return n[K[16]]===K[2]&&q[K[3]]>1&&!!q[1]}; p9=function(n,q){q=q===void 0?!1:q;Vh(n);if(n[K[16]]!==K[2]){var M=n[K[39]]();M[K[1]](K[63],K[25]);return M}var t=n[K[29]]();M=new g.Mb(t);var c=n[K[65]](K[72]),Y=decodeURIComponent(n[K[65]](K[46])||K[9])[K[30]](K[74]);if(c&&Y&&Y[K[3]]>1&&Y[1])return t=M.X,n=t[K[26]](/^[^.]*/,K[9]),g.td(M,(t[K[34]](K[55])===0?K[55]:K[52])+c+K[38]+Y[1]+n),M=new g.Jc(M[K[45]]()),M[K[1]](K[73],K[25]),M;if(q)return M=n[K[39]](),M[K[1]](K[73],K[25]),M;c=M.X[K[56]](K[68]);M.X[K[56]](K[24])?(g.td(M,K[35]),t=M[K[45]]()): M.X[K[56]](K[21])?(g.td(M,K[79]),t=M[K[45]]()):(M=XJ_(t),RJ(M)&&(t=M));M=new g.Jc(t);M[K[1]](K[37],K[25]);c&&M[K[1]](K[40],K[81]);return M}; Vh=function(n){if(n[K[22]]){if(!(RJ(n[K[22]])||n[K[22]][K[8]](K[5])||n[K[22]][K[8]](K[80])||n[K[22]][K[8]](K[82])))throw new g.aE(K[60],n[K[22]]);var q=g.dE(n[K[22]]);n[K[23]]=q.S;n[K[41]]=q.X+(q.Z!=null?K[6]+q.Z:K[9]);var M=q.W;if(M[K[8]](K[2]))n[K[16]]=K[2],M=M[K[0]](14);else if(M[K[8]](K[50]))n[K[16]]=K[50],M=M[K[0]](13);else if(M[K[8]](K[7])){var t=M[K[34]](K[49],12),c=M[K[34]](K[49],t+1);t>0&&c>0?(n[K[16]]=M[K[0]](0,c),M=M[K[0]](c+1)):(n[K[16]]=M,M=K[9])}else n[K[16]]=M,M=K[9];t=n[K[19]];n[K[19]]= l21(M);Object[K[47]](n[K[19]],UYm(q.J.toString()));Object[K[47]](n[K[19]],t);n[K[19]][K[76]]===K[86]&&(delete n[K[19]][K[76]],n[K[16]]+=K[87]);n[K[22]]=K[9];n[K[27]]=K[9];n[K[18]]&&(Vh(n),q=n[K[19]][K[48]]||null)&&(q=uEJ[0](q),n[K[1]](K[48],q))}}; BHm=function(n){Vh(n);var q=n[K[23]]+(n[K[23]]?K[64]:K[69])+n[K[41]]+n[K[16]];if(THs(n)){var M=[];g.n3(n[K[19]],function(t,c){t!==null&&M[K[17]](c+K[15]+t)}); q+=K[88]+M[K[32]](K[10])}return q}; l21=function(n){n=n[K[30]](K[49]);var q=0;n[0]||q++;for(var M={};q0?DYd(q,t[K[0]](0,c),t[K[0]](c+1)):t&&(q[t]=K[9])}return q}; DYd=function(n,q,M){if(q===K[71]){var t;(t=M[K[34]](K[15]))>=0?(q=K[43]+M[K[0]](0,t),M=M[K[0]](t+1)):(t=M[K[34]](K[90]))>=0&&(q=K[43]+M[K[0]](0,t),M=M[K[0]](t+3))}n[q]=M}; nS=function(n){var q=g.R(n,A5f)||n[K[36]];n={kN:!1,bA:K[9],DQ:K[9],s:K[9]};if(!q)return n;q=xd(q);n[K[51]]=!0;n[K[78]]=q[K[27]];n[K[33]]=q[K[66]];n[K[31]]=q[K[31]];return n}; qT=function(n,q,M,t,c,Y,G,k,b){this.zs=n;this.startTime=q;this.duration=M;this.ingestionTime=t;this.sourceURL=c;this.aI=b;this.endTime=q+M;this.X=G||0;this.range=Y||null;this.pending=k||!1;this.aI=b||null}; g.MT=function(){this.segments=[];this.X=null;this.W=!0;this.Z=""}; mYJ=function(n,q){if(q>n.Uq())n.segments=[];else{var M=sF(n.segments,function(t){return t.zs>=q},n); M>0&&n.segments.splice(0,M)}}; iI=function(n,q,M,t,c){c=c===void 0?!1:c;this.data=n;this.offset=q;this.size=M;this.type=t;this.X=(this.W=c)?0:8;this.dataOffset=this.offset+this.X}; tG=function(n){var q=n.data.getUint8(n.offset+n.X);n.X+=1;return q}; ca=function(n){var q=n.data.getUint16(n.offset+n.X);n.X+=2;return q}; YM=function(n){var q=n.data.getInt32(n.offset+n.X);n.X+=4;return q}; GB=function(n){var q=n.data.getUint32(n.offset+n.X);n.X+=4;return q}; KS=function(n){var q=n.data;var M=n.offset+n.X;q=q.getUint32(M)*4294967296+q.getUint32(M+4);n.X+=8;return q}; kM=function(n,q){q=q===void 0?NaN:q;if(isNaN(q))var M=n.size;else for(M=n.X;M1?Math.ceil(c*q):Math.floor(c*q))}n.skip(1);M=tG(n)<<16|ca(n);if(M&256){t=M&1;c=M&4;var Y=M&512,G=M&1024,k=M&2048;M=GB(n);t&&n.skip(4);c&&n.skip(4);t=(Y?4:0)+(G?4:0)+(k?4:0);for(c=0;c1?Math.ceil(G*q):Math.floor(G*q)),n.skip(t)}}}; hG=function(n){n=new DataView(n.buffer,n.byteOffset,n.byteLength);return(n=g.ef(n,0,1836476516))?g.EA(n):NaN}; r5f=function(n){var q=g.ef(n,0,1937011556);if(!q)return null;q=Wa(n,q.dataOffset+8,1635148593)||Wa(n,q.dataOffset+8,1635135537);if(!q)return null;var M=Wa(n,q.dataOffset+78,1936995172),t=Wa(n,q.dataOffset+78,1937126244);if(!t)return null;q=null;if(M)switch(M.skip(4),tG(M)){default:q=0;break;case 1:q=2;break;case 2:q=1;break;case 3:q=255}var c=M=null,Y=null;if(t=Wa(n,t.dataOffset,1886547818)){var G=Wa(n,t.dataOffset,1886546020),k=Wa(n,t.dataOffset,2037673328);if(!k&&(k=Wa(n,t.dataOffset,1836279920), !k))return null;G&&(G.skip(4),M=YM(G)/65536,Y=YM(G)/65536,c=YM(G)/65536);n=$Y1(k);n=new DataView(n.buffer,n.byteOffset+8,n.byteLength-8);return new V9_(q,M,Y,c,n)}return null}; Wa=function(n,q,M){for(;yO(n,q);){var t=sA(n,q);if(t.type===M)return t;q+=t.size}return null}; g.ef=function(n,q,M){for(;yO(n,q);){var t=sA(n,q);if(t.type===M)return t;q=XJ(t.type)?q+8:q+t.size}return null}; g.jf=function(n){if(n.data.getUint8(n.dataOffset)){var q=n.data;n=n.dataOffset+4;q=q.getUint32(n)*4294967296+q.getUint32(n+4)}else q=n.data.getUint32(n.dataOffset+4);return q}; sA=function(n,q){var M=n.getUint32(q),t=n.getUint32(q+4);return new iI(n,q,M,t)}; g.EA=function(n){var q=n.data.getUint8(n.dataOffset)?20:12;return n.data.getUint32(n.dataOffset+q)}; xYU=function(n){n=new iI(n.data,n.offset,n.size,n.type,n.W);var q=tG(n);n.skip(7);var M=GB(n);if(q===0){q=GB(n);var t=GB(n)}else q=KS(n),t=KS(n);n.skip(2);for(var c=ca(n),Y=[],G=[],k=0;k122)return!1}return!0}; XJ=function(n){return n===1701082227||n===1836019558||n===1836019574||n===1835297121||n===1835626086||n===1937007212||n===1953653094||n===1953653099||n===1836475768}; QSf=function(n){n.skip(4);return{jQs:kM(n,0),value:kM(n,0),timescale:GB(n),tgy:GB(n),eventDuration:GB(n),id:GB(n),qT:kM(n),offset:n.offset}}; g.pjd=function(n){var q=Wa(n,0,1701671783);if(!q)return null;var M=QSf(q),t=M.jQs;M=gV(M.qT);if(n=Wa(n,q.offset+q.size,1701671783))if(n=QSf(n),n=gV(n.qT),M&&n){q=g.S(Object.keys(n));for(var c=q.next();!c.done;c=q.next())c=c.value,M[c]=n[c]}return M?new OA(M,t):null}; Sf=function(n,q){for(var M=Wa(n,0,q);M;){var t=M;t.type=1936419184;t.data.setUint32(t.offset+4,1936419184);M=Wa(n,M.offset+M.size,q)}}; g.I$=function(n,q){for(var M=0,t=[];yO(n,M);){var c=sA(n,M);c.type===q&&t.push(c);M=XJ(c.type)?M+8:M+c.size}return t}; nJ_=function(n,q){var M=g.ef(n,0,1937011556),t=g.ef(n,0,1953654136);if(!M||!t||n.getUint32(M.offset+12)>=2)return null;var c=new DataView(q.buffer,q.byteOffset,q.length),Y=g.ef(c,0,1937011556);if(!Y)return null;q=c.getUint32(Y.dataOffset+8);t=c.getUint32(Y.dataOffset+12);if(t!==1701733217&&t!==1701733238)return null;t=new Fzd(n.byteLength+q);bI(t,n,0,M.offset+12);t.data.setInt32(t.offset,2);t.offset+=4;bI(t,n,M.offset+16,M.size-16);bI(t,c,c.byteOffset+Y.dataOffset+8,q);bI(t,n,M.offset+M.size,n.byteLength- (M.offset+M.size));M=g.S([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(c=M.next();!c.done;c=M.next())c=g.ef(n,0,c.value),t.data.setUint32(c.offset,c.size+q);n=g.ef(t.data,0,1953654136);t.data.setUint32(n.offset+16,2);return t.data}; qtU=function(n){var q=g.ef(n,0,1937011556);if(!q)return null;var M=n.getUint32(q.dataOffset+12);if(M!==1701733217&&M!==1701733238)return null;q=Wa(n,q.offset+24+(M===1701733217?28:78),1936289382);if(!q)return null;M=Wa(n,q.offset+8,1935894637);if(!M||n.getUint32(M.offset+12)!==1667392371)return null;q=Wa(n,q.offset+8,1935894633);if(!q)return null;q=Wa(n,q.offset+8,1952804451);if(!q)return null;M=new Uint8Array(16);for(var t=0;t<16;t++)M[t]=n.getInt8(q.offset+16+t);return M}; fS=function(n,q){this.X=n;this.pos=0;this.start=q||0}; Ha=function(n){return n.pos>=n.X.byteLength}; lI=function(n,q,M){var t=new fS(M);if(!LS(t,n))return!1;t=Pa(t);if(!va(t,q))return!1;for(n=0;q;)q>>>=8,n++;q=t.start+t.pos;var c=TB(t,!0);t=n+(t.start+t.pos-q)+c;t=t>9?MVm(t-9,8):MVm(t-2,1);n=q-n;M.setUint8(n++,236);for(q=0;qM;c++)M=M*256+AG(n),t*=128;return q?M-t:M}; uI=function(n){var q=TB(n,!0);n.pos+=q}; cUU=function(n){if(!va(n,440786851,!0))return null;var q=n.pos;TB(n,!1);var M=TB(n,!0)+n.pos-q;n.pos=q+M;if(!va(n,408125543,!1))return null;TB(n,!0);if(!va(n,357149030,!0))return null;var t=n.pos;TB(n,!1);var c=TB(n,!0)+n.pos-t;n.pos=t+c;if(!va(n,374648427,!0))return null;var Y=n.pos;TB(n,!1);var G=TB(n,!0)+n.pos-Y,k=new Uint8Array(M+12+c+G),b=new DataView(k.buffer);k.set(new Uint8Array(n.X.buffer,n.X.byteOffset+q,M));b.setUint32(M,408125543);b.setUint32(M+4,33554431);b.setUint32(M+8,4294967295); k.set(new Uint8Array(n.X.buffer,n.X.byteOffset+t,c),M+12);k.set(new Uint8Array(n.X.buffer,n.X.byteOffset+Y,G),M+12+c);return k}; mr=function(n){var q=n.pos;n.pos=0;var M=1E6;LS(n,[408125543,357149030,2807729])&&(M=UA(n));n.pos=q;return M}; Ytd=function(n,q){var M=n.pos;n.pos=0;if(n.X.getUint8(n.pos)!==160&&!$M(n)||!va(n,160))return n.pos=M,NaN;TB(n,!0);var t=n.pos;if(!va(n,161))return n.pos=M,NaN;TB(n,!0);AG(n);var c=AG(n)<<8|AG(n);n.pos=t;if(!va(n,155))return n.pos=M,NaN;t=UA(n);n.pos=M;return(c+t)*q/1E9}; $M=function(n){if(!GXk(n)||!va(n,524531317))return!1;TB(n,!0);return!0}; GXk=function(n){if(n.U2()){if(!va(n,408125543))return!1;TB(n,!0)}return!0}; LS=function(n,q){for(var M=0;M0){var t=UYm(q.substring(M+1));g.n3(t,function(c,Y){this.set(Y,c)},n); q=q.substring(0,M)}q=l21(q);g.n3(q,function(c,Y){this.set(Y,c)},n)}; kXd=function(n){var q=n.eL.Ag(),M=[];g.n3(n.X,function(c,Y){M.push(Y+"="+c)}); if(!M.length)return q;var t=M.join("&");n=THs(n.eL)?"&":"?";return q+n+t}; ZZ=function(n,q){var M=new g.Jc(q);(q=M.get("req_id"))&&n.set("req_id",q);g.n3(n.X,function(t,c){M["set"](c,null)}); return M}; b8U=function(){this.J=this.Z=this.X=this.timedOut=this.started=this.S=this.W=0}; a$=function(n){n.S=(0,g.jt)();n.started=0;n.timedOut=0;n.X=0}; R$=function(n,q){var M=n.started+n.X*4;q&&(M+=n.Z);M=Math.max(0,M-3);return Math.pow(1.6,M)}; o$=function(n,q){n[q]||(n[q]=new b8U);return n[q]}; wV=function(n){this.U=this.N=this.S=this.Z=0;this.B=this.C=!1;this.X=n;this.W=n.clone()}; dPf=function(n,q,M){if(rX(n.X))return!1;var t=o$(M,C9(n.X));if(t.timedOut<1&&t.X<1)return!1;t=t.timedOut+t.X;n=zB(n,q);M=o$(M,C9(n));return M.timedOut+M.X+01?q=q.ao:(M=o$(M,VO(n,n.XJ(q,M),q)),q=Math.max(n.S,M.timedOut)+q.HL*(n.Z-n.S)+.25*n.N,q=q>3?1E3*Math.pow(1.6,q-3):0);return q===0?!0:n.U+q<(0,g.jt)()}; Nys=function(n,q,M){n.X.set(q,M);n.W.set(q,M);n.J&&n.J.set(q,M)}; O8u=function(n,q,M,t,c){++n.Z;q&&++n.S;C9(M.eL).startsWith("redirector.")&&(n.X=n.W.clone(),delete n.J,t.yL&&delete c[C9(n.X)])}; rV=function(n){return n?(n.itag||"")+";"+(n.lmt||0)+";"+(n.xtags||""):""}; xM=function(n,q,M,t){this.initRange=M;this.indexRange=t;this.X=null;this.Z=!1;this.C=0;this.J=this.jT=this.W=null;this.info=q;this.d7=new wV(n)}; QO=function(n,q){this.start=n;this.end=q;this.length=q-n+1}; pS=function(n){n=n.split("-");var q=Number(n[0]),M=Number(n[1]);if(!isNaN(q)&&!isNaN(M)&&n.length===2&&(n=new QO(q,M),!isNaN(n.start)&&!isNaN(n.end)&&!isNaN(n.length)&&n.length>0))return n}; nu=function(n,q){return new QO(n,n+q-1)}; gJs=function(n){return n.end==null?{start:String(n.start)}:{start:String(n.start),end:String(n.end)}}; q5=function(n){if(!n)return new QO(0,0);var q=Number(n.start);n=Number(n.end);if(!isNaN(q)&&!isNaN(n)&&(q=new QO(q,n),q.length>0))return q}; M5=function(n,q,M,t,c,Y,G,k,b,d,N,O){t=t===void 0?"":t;this.type=n;this.X=q;this.range=M;this.source=t;this.Tr=N;this.clipId=O===void 0?"":O;this.U=[];this.N="";this.zs=-1;this.xl=0;this.N=t;this.zs=c>=0?c:-1;this.startTime=Y||0;this.duration=G||0;this.W=k||0;this.Z=b>=0?b:this.range?this.range.length:NaN;this.J=this.range?this.W+this.Z===this.range.length:d===void 0?!!this.Z:d;this.range?(this.S=this.startTime+this.duration*this.W/this.range.length,this.B=this.duration*this.Z/this.range.length,this.C= this.S+this.B):e8J(this)}; e8J=function(n){n.S=n.startTime;n.B=n.duration;n.C=n.S+n.B}; EJu=function(n,q,M){var t=!(!q||q.X!==n.X||q.type!==n.type||q.zs!==n.zs);return M?t&&!!q&&(n.range&&q.range?q.range.end===n.range.end:q.range===n.range)&&q.W+q.Z===n.W+n.Z:t}; ih=function(n){return n.type===1||n.type===2}; ty=function(n){return n.type===3||n.type===6}; c$=function(n,q){return n.X===q.X?n.range&&q.range?n.range.start+n.W+n.Z===q.range.start+q.W:n.zs===q.zs?n.W+n.Z===q.W:n.zs+1===q.zs&&q.W===0&&n.J:!1}; W4k=function(n,q){return n.zs!==q.zs&&q.zs!==n.zs+1||n.type!==q.type?!1:c$(n,q)?!0:Math.abs(n.S-q.S)<=1E-6&&n.zs===q.zs?!1:h8u(n,q)}; h8u=function(n,q){return c$(n,q)||Math.abs(n.C-q.S)<=1E-6||n.zs+1===q.zs&&q.W===0&&n.J?!0:!1}; YQ=function(n){return n.zs+(n.J?1:0)}; yUU=function(n){n.length===1||g.yD(n,function(M){return!!M.range}); for(var q=1;q=q.range.start+q.W&&n.range.start+n.W+n.Z<=q.range.start+q.W+q.Z:n.zs===q.zs&&n.W>=q.W&&(n.W+n.Z<=q.W+q.Z||q.J)}; H8d=function(n,q){return n.X!==q.X?!1:n.type===4&&q.type===3&&n.X.n9()?(n=n.X.Kv(n),oV(n,function(M){return H8d(M,q)})):n.zs===q.zs&&!!q.Z&&q.W+q.Z>n.W&&q.W+q.Z<=n.W+n.Z}; Ku=function(n,q){var M=q.zs;n.N="updateWithSegmentInfo";n.zs=M;if(n.startTime!==q.startTime||n.duration!==q.duration)n.startTime=q.startTime+0,n.duration=q.duration,e8J(n)}; kQ=function(n,q){var M=this;this.Ex=n;this.J=this.X=null;this.S=this.ac=NaN;this.XJ=this.requestId=null;this.vg={rft:function(){return M.range}}; this.d7=n[0].X.d7;this.W=q||"";this.Ex[0].range&&this.Ex[0].Z>0&&(sc1(n)?(this.range=yUU(n),this.Z=this.range.length):(this.range=this.Ex[this.Ex.length-1].range,this.Z=Xtk(n)))}; bh=function(n){return!ih(n.Ex[n.Ex.length-1])}; dm=function(n){return n.Ex[n.Ex.length-1].type===4}; g.N5=function(n,q,M){M=n.XJ===null?n.d7.XJ(q,M,n.Ex[0].type):n.XJ;if(n.X){q=M?p9(n.X,q.zd):n.X;var t=new FJ(q);t.get("alr")||t.set("alr","yes");n.W&&K4_(t,n.W)}else/http[s]?:\/\//.test(n.W)?t=new FJ(new g.Jc(n.W)):(t=JG(n.d7,M,q),n.W&&K4_(t,n.W));(q=n.range)?t.set("range",q.toString()):n.Ex[0].X.ZO()&&n.Ex.length===1&&n.Ex[0].W&&t.set("range",n.Ex[0].W+"-");n.requestId&&t.set("req_id",n.requestId);isNaN(n.ac)||t.set("headm",n.ac.toString());isNaN(n.S)||t.set("mffa",n.S+"ms");n.urlParams&&g.n3(n.urlParams, function(c,Y){t.set(Y,c)}); return t}; L4d=function(n){if(n.range)return n.Z;n=n.Ex[0];return Math.round(n.B*n.X.info.Bb)}; P__=function(n,q){return Math.max(0,n.Ex[0].S-q)}; Ob=function(n,q,M,t,c,Y){Y=Y===void 0?0:Y;xM.call(this,n,q,t,void 0);this.S=M;this.Be=Y;this.index=c||new g.MT}; vJj=function(n,q,M,t,c){this.zs=n;this.startSecs=q;this.Dy=M;this.X=t||NaN;this.W=c||NaN}; gm=function(n,q,M){for(;n;n=n.parentNode)if(n.attributes&&(!M||n.nodeName===M)){var t=n.getAttribute(q);if(t)return t}return""}; er=function(n,q){for(;n;n=n.parentNode){var M=n.getElementsByTagName(q);if(M.length>0)return M[0]}return null}; TyJ=function(n){if(!n)return 0;var q=n.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return q?(Number(q[2])|0)*3600+(Number(q[4])|0)*60+(Number(q[6])|0):Number(n)|0}; lrs=function(n){return n.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?n+"Z":n}; Eb=function(){this.X=[];this.W=null;this.C=0;this.Z=[];this.S=!1;this.N="";this.J=-1}; UPd=function(n){var q=n.Z;n.Z=[];return q}; uqa=function(){this.J=[];this.X=null;this.W={};this.Z={}}; mPs=function(n,q){var M=[];q=Array.from(q.getElementsByTagName("SegmentTimeline"));q=g.S(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;var c=t.parentNode.parentNode,Y=null;c.nodeName==="Period"?Y=By_(n):c.nodeName==="AdaptationSet"?(c=c.getAttribute("id")||c.getAttribute("mimetype")||"",Y=DPs(n,c)):c.nodeName==="Representation"&&(c=c.getAttribute("id")||"",Y=AUs(n,c));if(Y==null)return;Y.update(t);g.Bs(M,UPd(Y))}g.Bs(n.J,M);LCJ(n.J,function(G){return G.startSecs*1E3+G.X})}; $Pd=function(n){n.X&&(n.X.X=[]);g.n3(n.W,function(q){q.X=[]}); g.n3(n.Z,function(q){q.X=[]})}; By_=function(n){n.X||(n.X=new Eb);return n.X}; DPs=function(n,q){n.W[q]||(n.W[q]=new Eb);return n.W[q]}; AUs=function(n,q){n.Z[q]||(n.Z[q]=new Eb);return n.Z[q]}; W$=function(n){var q=n===void 0?{}:n;n=q.Be===void 0?0:q.Be;var M=q.qD===void 0?!1:q.qD;var t=q.DM===void 0?0:q.DM;var c=q.qV===void 0?0:q.qV;var Y=q.SL===void 0?Infinity:q.SL;var G=q.XA===void 0?0:q.XA;var k=q.C8===void 0?!1:q.C8;q=q.vc===void 0?!1:q.vc;g.MT.call(this);this.Ow=this.uT=-1;this.r8=n;this.DM=t;this.qD=M;this.qV=c;this.SL=Y;this.XA=G;((this.C8=k)||isFinite(Y)&&this.SL>0)&&M&&hy&&(this.W=!1,this.Z="postLive");this.vc=q}; yZ=function(n,q){return wT(n.segments,function(M){return q-M.zs})}; sb=function(n,q,M){M=M===void 0?{}:M;Ob.call(this,n,q,"",void 0,void 0,M.Be||0);this.index=new W$(M)}; Xu=function(n,q,M){xM.call(this,n,q);this.S=M;n=this.index=new g.MT;n.W=!1;n.Z="d"}; F4U=function(n,q,M){var t=n.index.Oz(q),c=n.index.getStartTime(q),Y=n.index.getDuration(q);M?Y=M=0:M=n.info.Bb*Y;return new kQ([new M5(3,n,void 0,"otfCreateRequestInfoForSegment",q,c,Y,0,M)],t)}; Z8s=function(n,q){if(!n.index.isLoaded()){var M=[],t=q.J;q=q.S.split(",").filter(function(N){return N.length>0}); for(var c=0,Y=0,G=0,k=/^(\d+)/,b=/r=(\d+)/,d=0;d0&&(c.X=Math.min(c.X+G,10),c.W=Y);c.X>0?(c.X--,c=!0):c=!1;if(c)typeof t==="function"&&(t=t()),console.log("plyr."+q,t);else{var k;t=((k=JUu.get(q))!=null?k:0)+1;JUu.set(q,t);t%100===1&&console.warn("plyr","plyr."+q+" is chatty, dropping logs.")}}}; z8s=function(){this.X=10;this.W=Date.now()}; IX=function(n,q){this.info=n;this.W=q;this.X=null;this.J=this.Z=-1;this.timestampOffset=0;this.isLocked=this.C=!1;this.S=this.info.X.H0()&&!this.info.W}; g.fu=function(n){return ZEs(n.W)}; VVm=function(n,q){q=Math.min(q,n.info.Z);var M=n.W.split(q),t=M.vR;M=new IX(new M5(n.info.type,n.info.X,n.info.range,n.info.N,n.info.zs,n.info.startTime,n.info.duration,n.info.W,q,!1,n.info.Tr,n.info.clipId),M.b5);M.J=n.J;M.Z=n.Z;q=new IX(new M5(n.info.type,n.info.X,n.info.range,n.info.N,n.info.zs,n.info.startTime,n.info.duration,n.info.W+q,n.info.Z-q,n.info.J,n.info.Tr,n.info.clipId),t);q.J=n.J;q.Z=n.Z;return[M,q]}; g.H$=function(n,q,M,t){M=M===void 0?!1:M;t=t===void 0?0:t;if(n.isLocked||q.isLocked||!c$(n.info,q.info)||n.info.J)return null;if(t){if(n.W.totalLength+q.W.totalLength>t)return null}else if(M&&(M=n.W,t=q.W,M=!(t.X.length?$2_(M,t.X[0]):1)),M)return null;M=new M5(n.info.type,n.info.X,n.info.range,n.info.N,n.info.zs,n.info.startTime,n.info.duration,n.info.W,n.info.Z,n.info.J,n.info.Tr,n.info.clipId);t=q.info;M.Z+=t.Z;M.range&&(M.B+=t.B);M.C=t.C;M.J=t.J;t=new tN;cY(t,n.W);cY(t,q.W);M=new IX(M,t);M.X!= null&&q.X!=null&&(new g.jr("dash")).X(414627957,"merged slice emsg overridden; prev: "+M.X.Tt()+" next: "+q.X.Tt());M.X=q.X||n.X;M.Z=n.Z!==-1?n.Z:q.Z;M.J=n.J!==-1?n.J:q.J;return M}; g.Lu=function(n){g.xJ(n.info.X.info)||n.info.X.info.Fm();if(n.Z!==-1)return n.Z;if(n.X&&RLa(n.X))return n.Z=RLa(n.X),n.Z;if(g.xJ(n.info.X.info)){var q=g.fu(n);for(var M=n.info.X.X,t=NaN,c=NaN,Y=0;yO(q,Y);){var G=sA(q,Y);G.type===1936286840?c=G.data.getUint32(G.dataOffset+8):G.type===1836476516?c=g.EA(G):G.type===1952867444&&isNaN(t)&&(t=g.jf(G));Y=XJ(G.type)?Y+8:Y+G.size}!c&&M&&(c=hG(M));q=t/c}else q=new fS(g.fu(n)),M=n.S?q:new fS(new DataView(n.info.X.X.buffer)),t=mr(M),M=q.pos,q.pos=0,$M(q)?va(q, 231)?(t=UA(q)*t/1E9,q.pos=M,q=t):(q.pos=M,q=NaN):(q.pos=M,q=NaN);n.Z=q||n.info.S;return n.Z}; rUf=function(n,q){n.timestampOffset>0&&(q-=n.timestampOffset);var M=g.Lu(n)+q;C_s(n,M);n.timestampOffset=q}; C_s=function(n,q){g.xJ(n.info.X.info)||n.info.X.info.Fm();n.Z=q;if(g.xJ(n.info.X.info)){var M=g.fu(n);n=n.info.X.X;for(var t=NaN,c=NaN,Y=0;yO(M,Y);){var G=sA(M,Y);isNaN(t)&&(G.type===1936286840?t=G.data.getUint32(G.dataOffset+8):G.type===1836476516&&(t=g.EA(G)));if(G.type===1952867444){!t&&n&&(t=hG(n));var k=g.jf(G);isNaN(c)&&(c=Math.round(q*t)-k);var b=G;k+=c;if(b.data.getUint8(b.dataOffset)){var d=b.data;b=b.dataOffset+4;d.setUint32(b,Math.floor(k/4294967296));d.setUint32(b+4,k&4294967295)}else b.data.setUint32(b.dataOffset+ 4,k)}Y=XJ(G.type)?Y+8:Y+G.size}return!0}M=new fS(g.fu(n));n=n.S?M:new fS(new DataView(n.info.X.X.buffer));t=mr(n);n=M.pos;M.pos=0;if($M(M)&&va(M,231))if(c=TB(M,!0),q=Math.floor(q*1E9/t),Math.ceil(Math.log(q)/Math.log(2)/8)>c)q=!1;else{for(t=c-1;t>=0;t--)M.X.setUint8(M.pos+t,q&255),q>>>=8;M.pos=n;q=!0}else q=!1;return q}; v$=function(n,q){q=q===void 0?!1:q;var M=P$(n);n=q?0:n.info.B;return M||n}; P$=function(n){g.xJ(n.info.X.info)||n.info.X.info.Fm();if(n.X&&n.info.type===6)return n.X.Be;if(g.xJ(n.info.X.info)){var q=g.fu(n);var M=0;q=g.I$(q,1936286840);q=g.S(q);for(var t=q.next();!t.done;t=q.next())t=xYU(t.value),M+=t.k5[0]/t.timescale;M=M||NaN;if(!(M>=0))a:{M=g.fu(n);q=n.info.X.X;for(var c=t=0,Y=0;yO(M,t);){var G=sA(M,t);if(G.type===1836476516)c=g.EA(G);else if(G.type===1836019558){!c&&q&&(c=hG(q));if(!c){M=NaN;break a}var k=Wa(G.data,G.dataOffset,1953653094),b=k;k=c;var d=Wa(b.data,b.dataOffset, 1952868452);b=Wa(b.data,b.dataOffset,1953658222);var N=YM(d);YM(d);N&2&&YM(d);d=N&8?YM(d):0;var O=YM(b),e=O&1;N=O&4;var E=O&256,h=O&512,I=O&1024;O&=2048;var L=GB(b);e&&YM(b);N&&YM(b);for(var T=e=0;T2048?"":q.indexOf("https://")===0?q:""}; Dc=function(n,q,M){q.match(KWk);return n(q,M).then(function(t){var c=g.Gak(t.xhr);return c?Dc(n,c,M):t.xhr})}; Fu=function(n,q,M){n=n===void 0?"":n;q=q===void 0?null:q;M=M===void 0?!1:M;g.MB.call(this);var t=this;this.sourceUrl=n;this.isLivePlayback=M;this.V1=this.duration=0;this.isPremiere=this.C8=this.J=this.isLiveHeadPlayable=this.isLive=this.W=!1;this.SL=this.qV=0;this.isOtf=this.r7=!1;this.rJ=(0,g.jt)();this.RL=Infinity;this.X={};this.Z=new Map;this.state=this.YM=0;this.C=null;this.isManifestless=!1;this.IL=[];this.N=null;this.nm=0;this.S="";this.SX=NaN;this.jX=this.Fh=this.timestampOffset=this.B=0;this.ZJ= this.DN=NaN;this.O9=0;this.AE=this.xl=!1;this.hE=[];this.Yl={};this.wJ=NaN;this.vg={NCm:function(k){Ay(t,k)}}; var c;this.eX=(c=q)==null?void 0:c.Hb("html5_use_network_error_code_enums");ka_=!!q&&q.Hb("html5_modern_vp9_mime_type");var Y;mc=!((Y=q)==null||!Y.Hb("html5_enable_flush_during_seek"))&&g.Z_();var G;$Q=!((G=q)==null||!G.Hb("html5_enable_reset_audio_decoder"))&&g.Z_()}; bWd=function(n){return g.iV(n.X,function(q){return!!q.info.video&&q.info.video.qualityOrdinal>=2160})}; f21=function(n){return g.iV(n.X,function(q){return!!q.info.video&&q.info.video.isHdr()})}; F4=function(n){return g.iV(n.X,function(q){return!!q.info.f8})}; g.dGa=function(n){return g.iV(n.X,function(q){return iN(q.info.mimeType)})}; Nf_=function(n){return g.iV(n.X,function(q){return q.info.video?q.info.video.projectionType==="EQUIRECTANGULAR":!1})}; OWa=function(n){return g.iV(n.X,function(q){return q.info.video?q.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; gGd=function(n){return g.iV(n.X,function(q){return q.info.video?q.info.video.projectionType==="MESH":!1})}; eZa=function(n){return g.iV(n.X,function(q){return q.info.video?q.info.video.stereoLayout===1:!1})}; EGj=function(n){return URd(n.X,function(q){return q.info.video?q.Dx():!0})}; Ac=function(n){return g.iV(n.X,function(q){return rX(q.d7.X)})}; Ay=function(n,q){n.X[q.info.id]=q;n.Z.set(rV(g.p8(q.info,n.r7)),q)}; RX=function(n,q,M){M=M===void 0?0:M;var t=n.mimeType||"",c=n.itag;var Y=n.xtags;c=c?c.toString():"";Y&&(c+=";"+Y);Y=c;if(qG(t)){var G=n.width||640;c=n.height||360;var k=n.fps,b=n.qualityLabel,d=n.qualityOrdinal,N=n.colorInfo,O=n.projectionType,e;n.stereoLayout&&(e=hZd[n.stereoLayout]);var E=cAk(n)||void 0;if(N==null?0:N.primaries)var h=WWd[N.primaries]||void 0;G=new Fq(G,c,k,O,e,void 0,b,d&&yAs[d],E,h);t=Zc(t,G,Rc[n.itag||""]);mc&&(t+="; enableflushduringseek=true");$Q&&(t+="; enableresetaudiodecoder=true")}var I; if(nW(t)){var L=n.audioSampleRate;e=n.audioTrack;L=new Ht(L?+L:void 0,n.audioChannels,n.spatialAudioType,n.isDrc,n.loudnessDb,n.trackAbsoluteLoudnessLkfs,n.audioQuality||"AUDIO_QUALITY_UNKNOWN",n.isVb);e&&(h=e.displayName,c=e.id,e=e.audioIsDefault,h&&(I=new g.B$(h,c||"",!!e)))}var T;n.captionTrack&&(b=n.captionTrack,e=b.displayName,h=b.vssId,c=b.languageCode,k=b.kind,b=b.id,e&&h&&c&&(T=new iWC(e,h,c,k,n.xtags,b)));e=Number(n.bitrate)/8;h=Number(n.contentLength);c=Number(n.lastModified);b=n.drmFamilies; k=n.type;M=M&&h?h/M:0;n=Number(n.approxDurationMs);if(q&&b){var v={};b=g.S(b);for(d=b.next();!d.done;d=b.next())(d=aX[d.value])&&(v[d]=q[d])}return new oc(Y,t,{audio:L,video:G,tq:I,f8:v,Bb:e,WZ:M,contentLength:h,lastModified:c,captionTrack:T,streamType:k,approxDurationMs:n})}; oX=function(n,q,M){M=M===void 0?0:M;var t=n.type;var c=n.itag;var Y=n.xtags;Y&&(c=n.itag+";"+Y);if(qG(t)){var G=(n.size||"640x360").split("x");G=new Fq(+G[0],+G[1],+n.fps,n.projection_type,+n.stereo_layout,void 0,n.quality_label,+n.quality_ordinal,n.eotf,n.primaries);t=Zc(t,G,Rc[n.itag]);mc&&(t+="; enableflushduringseek=true");$Q&&(t+="; enableresetaudiodecoder=true")}var k;if(nW(t)){var b=new Ht(+n.audio_sample_rate||void 0,+n.audio_channels||0,n.spatial_audio_type,!!n.drc);n.name&&(k=new g.B$(n.name, n.audio_track_id,n.isDefault==="1"))}var d;n.caption_display_name&&n.caption_vss_id&&n.caption_language_code&&(d=new iWC(n.caption_display_name,n.caption_vss_id,n.caption_language_code,n.caption_kind,n.xtags,n.caption_id));Y=Number(n.bitrate)/8;var N=Number(n.clen),O=Number(n.lmt);M=M&&N?N/M:0;if(q&&n.drm_families){var e={};for(var E=g.S(n.drm_families.split(",")),h=E.next();!h.done;h=E.next())h=h.value,e[h]=q[h]}return new oc(c,t,{audio:b,video:G,tq:k,f8:e,Bb:Y,WZ:M,contentLength:N,lastModified:O, captionTrack:d,streamType:n.stream_type,approxDurationMs:Number(n.approx_duration_ms)})}; ses=function(n){return oV(n,function(q){return"FORMAT_STREAM_TYPE_OTF"===q.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; X3C=function(n){return oV(n,function(q){return"FORMAT_STREAM_TYPE_OTF"===q.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; jef=function(n,q){return n.C?mK(n.C.J,q):n.IL.length?mK(n.IL,q):[]}; wm=function(n,q,M){q=q===void 0?"":q;M=M===void 0?"":M;n=new g.Jc(n,!0);n.set("alr","yes");M&&(M=ztf(decodeURIComponent(M)),n[K[1]](q,encodeURIComponent(M)));return n}; HWa=function(n,q){var M=gm(q,"id");M=M.replace(":",";");var t=gm(q,"mimeType"),c=gm(q,"codecs");t=c?t+'; codecs="'+c+'"':t;c=Number(gm(q,"bandwidth"))/8;var Y=Number(er(q,"BaseURL").getAttribute(n.S+":contentLength")),G=n.duration&&Y?Y/n.duration:0;if(qG(t)){var k=Number(gm(q,"width"));var b=Number(gm(q,"height")),d=Number(gm(q,"frameRate")),N=S_d(gm(q,n.S+":projectionType"));a:switch(gm(q,n.S+":stereoLayout")){case "layout_left_right":var O=1;break a;case "layout_top_bottom":O=2;break a;default:O= 0}k=new Fq(k,b,d,N,O)}if(nW(t)){var e=Number(gm(q,"audioSamplingRate"));var E=Number(gm(q.getElementsByTagName("AudioChannelConfiguration")[0],"value"));b=I$J(gm(q,n.S+":spatialAudioType"));e=new Ht(e,E,b);a:{E=gm(q,"lang")||"und";if(b=er(q,"Role"))if(N=gm(b,"value")||"",g.d0(f$d,N)){b=E+"."+f$d[N];d=N==="main";n=gm(q,n.S+":langName")||E+" - "+N;E=new g.B$(n,b,d);break a}E=void 0}}if(q=er(q,"ContentProtection"))if(q.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var h={};for(q= q.firstChild;q!=null;q=q.nextSibling)q instanceof Element&&/SystemURL/.test(q.nodeName)&&(n=q.getAttribute("type"),b=q.textContent,n&&b&&(h[n]=b.trim()))}else h=void 0;return new oc(M,t,{audio:e,video:k,tq:E,f8:h,Bb:c,WZ:G,contentLength:Y})}; S_d=function(n){switch(n){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; I$J=function(n){switch(n){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"}}; PNk=function(n,q){q=q===void 0?"":q;n.state=1;n.rJ=(0,g.jt)();return Y_d(q||n.sourceUrl).then(function(M){if(!n.qm()){n.YM=M.status;M=M.responseText;var t=new DOMParser;M=L_(t,l5k(M),"text/xml").getElementsByTagName("MPD")[0];n.RL=TyJ(gm(M,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(M.attributes){t=g.S(M.attributes);for(var c=t.next();!c.done;c=t.next())if(c=c.value,c.value==="http://youtube.com/yt/2012/10/10"){t=c.name.split(":")[1];break b}}t=""}n.S=t;n.isLive=n.RL=n.RL}; Tfj=function(n){n.N&&n.N.stop()}; LWs=function(n){var q=n.RL;isFinite(q)&&(zW(n)?n.refresh():(q=Math.max(0,n.rJ+q-(0,g.jt)()),n.N||(n.N=new g.zw(n.refresh,q,n),g.Z(n,n.N)),n.N.start(q)))}; l$k=function(n){n=n.X;for(var q in n){var M=n[q].index;if(M.isLoaded())return M.Uq()+1}return 0}; Jy=function(n){return n.Fh?n.Fh-(n.B||n.timestampOffset):0}; VZ=function(n){return n.jX?n.jX-(n.B||n.timestampOffset):0}; Cu=function(n){if(!isNaN(n.SX))return n.SX;var q=n.X,M;for(M in q){var t=q[M].index;if(t.isLoaded()&&!iN(q[M].info.mimeType)){q=0;for(M=t.s2();M<=t.Uq();M++)q+=t.getDuration(M);q/=t.Rs();q=Math.round(q/.5)*.5;t.Rs()>10&&(n.SX=q);return q}if(n.isLive&&(t=q[M],t.Be))return t.Be}return NaN}; UGj=function(n,q){n=Bda(n.X,function(t){return t.index.isLoaded()}); if(!n)return NaN;n=n.index;var M=n.HH(q);return n.getStartTime(M)===q?q:M=0&&c.segments.splice(Y,1)}}}; Bfs=function(n){for(var q in n.X)iN(n.X[q].info.mimeType)||mYJ(n.X[q].index,Infinity)}; QZ=function(n,q,M){for(var t in n.X){var c=n.X[t].index,Y=q,G=M;c.qD&&(Y&&(c.uT=Math.max(c.uT,Y)),G&&(c.Ow=Math.max(c.Ow||0,G)))}M&&(n.wJ=M/1E3)}; DGC=function(n){n.jX=0;n.Fh=0;n.O9=0}; pu=function(n){return n.AE&&n.isManifestless?n.isLiveHeadPlayable:n.isLive}; Zc=function(n,q,M){nx===null&&(nx=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(ka_&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return nx||M!=="9"&&M!=="("?nx||M!=="9h"&&M!=="(h"||(n='video/webm; codecs="vp9.2"'):n='video/webm; codecs="vp9"',n;if(!nx&&!q0||n!=='video/webm; codecs="vp9"'&&n!=='video/webm; codecs="vp9.2"')return n; M="00";var t="08",c="01",Y="01",G="01";n==='video/webm; codecs="vp9.2"'&&(M="02",t="10",q.primaries==="bt2020"&&(G=c="09"),q.X==="smpte2084"&&(Y="16"),q.X==="arib-std-b67"&&(Y="18"));return'video/webm; codecs="'+["vp09",M,"51",t,"01",c,Y,G,"00"].join(".")+'"'}; id=function(n,q,M){n=""+n+(q>49?"p60":q>32?"p48":"");q=yh()[n];if(q!=null&&q>0)return q;q=M0.get(n);if(q!=null&&q>0)return q;M=M==null?void 0:M.get(n);return M!=null&&M>0?M:8192}; AAC=function(n){this.pm=n;this.Kn=this.W$=this.nm=this.S=this.J=this.V1=this.AE=this.xl=!1;this.N=this.C=0;this.eX=!1;this.RL=!0;this.Yl=!1;this.zr=0;this.QJ=this.jX=!1;this.TX=!0;this.rJ=this.SX=!1;this.X={};this.Fh=this.Yi=this.o8=this.disableAv1=this.Wg=this.K8=this.QS=this.uG=this.W=this.B=!1;this.wJ=0;this.Ux=!1;this.uI=this.pm.D("html5_disable_aac_preference");this.JQ=Infinity;this.IL=0;this.yS=this.pm.Aq();this.O9=this.pm.experiments.Hb("html5_enable_vp9_fairplay");this.SR=this.pm.D("html5_force_av1_for_testing"); this.hE=g.ic(this.pm.experiments,"html5_av1_ordinal_cap");this.Z6=this.pm.D("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Wm=this.pm.D("html5_account_onesie_format_selection_during_format_filter");this.Bb=g.ic(this.pm.experiments,"html5_max_byterate");this.Kd=this.pm.D("html5_enable_iamf_audio");this.rZ=this.pm.experiments.Hb("html5_allow_capability_merge");this.cn=this.pm.D("html5_enable_encrypted_av1");this.wJ=g.ic(this.pm.experiments,"html5_hard_cap_max_vertical_resolution");this.Ux= this.pm.D("html5_enable_audio_feature_manager")}; H5f=function(n){if(n.AE)return["f"];if(g.$e("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var q=["9h","9","h","8"];n.cn&&q.push("1e");q=q.concat(["(h","(","H","*"]);n.jX&&(q.unshift("1"),q.unshift("1h"));n.W$&&q.unshift("h");n.U&&(q=(mGd[n.U]||[n.U]).concat(q));return q}; y5a=function(n){var q=["o","a","A"];n.IL===1&&(n.J&&(q=["mac3","MAC3"].concat(q)),n.S&&(q=["meac3","MEAC3"].concat(q)),n.Kd&&(q=["i","I"].concat(q)));n.xl&&(q=["so","sa"].concat(q));!n.Kn||n.nm||n.Z||n.uI||q.unshift("a");n.Z&&(q=(mGd[n.Z]||[n.Z]).concat(q));return q}; t4=function(n,q,M,t){q=q===void 0?{}:q;if(t===void 0?0:t)return q.disabled=1,0;if(wX(n.S,zF.AV1_CODECS)&&wX(n.S,zF.HEIGHT)&&wX(n.S,zF.BITRATE))return q.isCapabilityUsable=1,8192;try{var c=nod();if(c&&!n.D("disable_av1_setting"))return q.localPref=c}catch(k){}t=1080;c=navigator.hardwareConcurrency;c<=2&&(t=480);q.coreCount=c;if(c=g.ic(n.experiments,"html5_default_av1_threshold"))t=q["default"]=c;!n.D("html5_disable_av1_arm_check")&&eMd()&&(q.isArm=1,t=240);if(n=n.S.RL)q.mcap=n,t=Math.max(t,n);if(M){var Y, G;if(n=(Y=M.videoInfos.find(function(k){return Vv(k)}))==null?void 0:(G=Y.W)==null?void 0:G.powerEfficient)t=8192,q.isEfficient=1; M=M.videoInfos[0].video;Y=Math.min(id("1",M.fps),id("1",30));q.perfCap=Y;t=Math.min(t,Y);M.isHdr()&&!n&&(q.hdr=1,t*=.75)}else M=id("1",30),q.perfCap30=M,t=Math.min(t,M),M=id("1",60),q.perfCap60=M,t=Math.min(t,M);return q.av1Threshold=t}; cr=function(n,q,M,t){this.flavor=n;this.keySystem=q;this.W=M;this.experiments=t;this.X={};this.AE=this.keySystemAccess=null;this.ys=this.Hj=-1;this.S_=null;this.Z=!!t&&t.Hb("edge_nonprefixed_eme");t&&t.Hb("html5_enable_vp9_fairplay")}; G5=function(n){return n.Z?!1:!n.keySystemAccess&&!!Y$()&&n.keySystem==="com.microsoft.playready"}; Kx=function(n){return n.keySystem==="com.microsoft.playready"}; k$=function(n){return!n.keySystemAccess&&!!Y$()&&n.keySystem==="com.apple.fps.1_0"}; bd=function(n){return n.keySystem==="com.youtube.fairplay"}; dh=function(n){return n.keySystem==="com.youtube.fairplay.sbdl"}; g.N0=function(n){return n.flavor==="fairplay"}; Y$=function(){var n=window,q=n.MSMediaKeys;oN()&&!q&&(q=n.WebKitMediaKeys);return q&&q.isTypeSupported?q:null}; gh=function(n){return navigator.requestMediaKeySystemAccess?g.Xq&&!g.Z_()?XA("45"):g.oa||g.bC?n.Hb("edge_nonprefixed_eme"):g.O8?XA("47"):g.gz&&n.Hb("html5_enable_safari_fairplay")?!1:!0:!1}; $Gs=function(n,q,M,t){var c=aN(),Y=(M=c||M&&oN())?["com.youtube.fairplay"]:["com.widevine.alpha"];q&&Y.unshift("com.youtube.widevine.l3");c&&t&&Y.unshift("com.youtube.fairplay.sbdl");return M?Y:n?[].concat(g.EJ(Y),g.EJ(eF.playready)):[].concat(g.EJ(eF.playready),g.EJ(Y))}; E8=function(n,q,M,t,c){t=t===void 0?!1:t;g.F.call(this);this.pm=q;this.useCobaltWidevine=t;this.Xy=c;this.W=[];this.Z={};this.X={};this.callback=null;this.S=!1;this.J=[];this.initialize(n,!M)}; ZWC=function(n,q){n.callback=q;n.J=[];gh(n.pm.experiments)?h4(n):FWd(n)}; h4=function(n){if(!n.qm())if(n.W.length===0)n.callback(n.J);else{var q=n.W[0],M=n.Z[q],t=a$R(n,M);if(Wr&&Wr.keySystem===q&&Wr.xvX===JSON.stringify(t))n.Xy("remksa",{re:!0}),RZm(n,M,Wr.keySystemAccess);else{var c,Y;n.Xy("remksa",{re:!1,ok:(Y=(c=Wr)==null?void 0:c.keySystem)!=null?Y:""});Wr=void 0;navigator.requestMediaKeySystemAccess(q,t).then(n9(function(G){RZm(n,M,G,t)}),n9(function(){n.S=!n.S&&n.Z[n.W[0]].flavor==="widevine"; n.S||n.W.shift();h4(n)}))}}}; RZm=function(n,q,M,t){if(!n.qm()){t&&(Wr={keySystem:q.keySystem,keySystemAccess:M,xvX:JSON.stringify(t)});q.keySystemAccess=M;if(Kx(q)){M=Wt();t=g.S(Object.keys(n.X[q.flavor]));for(var c=t.next();!c.done;c=t.next())c=c.value,q.X[c]=!!M.canPlayType(c)}else{M=q.keySystemAccess.getConfiguration();if(M.audioCapabilities)for(t=g.S(M.audioCapabilities),c=t.next();!c.done;c=t.next())q.X[c.value.contentType]=!0;if(M.videoCapabilities)for(M=g.S(M.videoCapabilities),t=M.next();!t.done;t=M.next())q.X[t.value.contentType]= !0}n.J.push(q);n.useCobaltWidevine||n.D("html5_enable_vp9_fairplay")&&dh(q)?(n.W.shift(),h4(n)):n.callback(n.J)}}; a$R=function(n,q){var M={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(n.D("html5_enable_vp9_fairplay")&&bd(q))return M.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),M.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[M];Kx(q)&&(M.initDataTypes=["keyids","cenc"]);for(var t=g.S(Object.keys(n.X[q.flavor])),c=t.next();!c.done;c=t.next()){c=c.value;var Y=c.indexOf("audio/")===0,G=Y?M.audioCapabilities:M.videoCapabilities;q.flavor!== "widevine"||n.S?G.push({contentType:c}):Y?G.push({contentType:c,robustness:"SW_SECURE_CRYPTO"}):(g.Xq&&g.$e("windows nt")&&!n.D("html5_drm_enable_moho")||G.push({contentType:c,robustness:"HW_SECURE_ALL"}),Y=c,n.pm.S.Z&&c.includes("vp09")&&(Y=c+"; experimental=allowed"),G.push({contentType:Y,robustness:"SW_SECURE_DECODE"}),s8(n.pm)==="MWEB"&&(rO()||F$())&&(n.Xy("swcrypto",{}),G.push({contentType:c,robustness:"SW_SECURE_CRYPTO"})))}return[M]}; FWd=function(n){if(Y$()&&(g.gz||zH))n.J.push(new cr("fairplay","com.apple.fps.1_0","",n.pm.experiments));else{var q=oGJ(),M=g.XO(n.W,function(t){var c=n.Z[t],Y=!1,G=!1,k;for(k in n.X[c.flavor])q(k,t)&&(c.X[k]=!0,Y=Y||k.indexOf("audio/")===0,G=G||k.indexOf("video/")===0);return Y&&G}); M&&n.J.push(n.Z[M]);n.W=[]}n.callback(n.J)}; oGJ=function(){var n=Y$();if(n){var q=n.isTypeSupported;return function(t,c){return q(c,t)}}var M=Wt(); return M&&(M.addKey||M.webkitAddKey)?function(t,c){return!!M.canPlayType(t,c)}:function(){return!1}}; w3R=function(n){this.experiments=n;this.X=2048;this.J=0;this.xl=(this.N=this.D("html5_streaming_resilience"))?.5:.25;var q=q===void 0?0:q;this.Z=g.ic(this.experiments,"html5_media_time_weight_prop")||q;this.U=(this.S=this.experiments.Hb("html5_consider_end_stall"))&&XH;this.W=this.experiments.Hb("html5_measure_max_progress_handling");this.B=this.D("html5_treat_requests_pre_elbow_as_metadata");this.C=this.D("html5_media_time_weight")||!!this.Z;this.D("html5_sabr_live_audio_early_return_fix")&&XH&& (this.X=65536)}; jF=function(n){var q;n=Cr((q=n.serializedClientExperimentFlags)!=null?q:"","&");this.flags=new Map(Object.entries(n).map(function(M){var t=g.S(M);M=t.next().value;t=t.next().value;return typeof t==="string"?[M,t]:[M,t[0]]}))}; CNf=function(n,q){switch(q.B8){case "bool":return n.Hb(q.Yx);case "int":return n=zZ1(n,q.Yx),q3(n);case "double":return zZ1(n,q.Yx);case "string":return JAJ(n,q.Yx);case "int32_list":return VKd(n,q.Yx);case "int64_list":return VKd(n,q.Yx).map(function(M){return q3(M)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; zZ1=function(n,q){n=n.flags.get(""+q);return Number(n)||0}; VKd=function(n,q){if(n=n.flags.get(""+q))if(n=n.replace(/\[ *(.*?) *\]/,"$1"))return n.split(",").map(Number);return[]}; JAJ=function(n,q){return(n=n.flags.get(""+q))?n.toString():""}; SF=function(n,q,M){this.X=void 0;this.experimentIds=n?n.split(","):[];this.flags=Cr(q||"","&");n={};q=g.S(this.experimentIds);for(var t=q.next();!t.done;t=q.next())n[t.value]=!0;this.experiments=n;this.Hb("html5_player_intkey")&&(M=new jF(M),this.Z=new iCd(M),this.W=new MZs(M))}; g.ic=function(n,q){n=n.OT(q);JSON.stringify(n);return Number(n)||0}; Id=function(n,q){return(n=n.OT(q))?n.toString():""}; rAU=function(n){if(n=n.OT("html5_web_po_experiment_ids"))if(n=n.replace(/\[ *(.*?) *\]/,"$1"))return n.split(",").map(Number);return[]}; xG1=function(n){if(n.X)return n.X;if(n.experimentIds.length<=1)return n.X=n.experimentIds,n.X;var q=[].concat(g.EJ(n.experimentIds)).map(function(t){return Number(t)}); q.sort();for(var M=q.length-1;M>0;--M)q[M]-=q[M-1];n.X=q.map(function(t){return t.toString()}); n.X.unshift("v1");return n.X}; p3u=function(n){return QeR.then(n)}; fx=function(n,q,M){this.experiments=n;this.jX=q;this.IL=M===void 0?!1:M;this.U=!!g.qD("cast.receiver.platform.canDisplayType");this.B={};this.xl=!1;this.J=new Map;this.N=!0;this.W=this.Z=!1;this.X=new Map;this.RL=0;this.wJ=this.experiments.Hb("html5_disable_vp9_encrypted");this.S=this.experiments.Hb("html5_enable_encrypted_av1");n=g.qD("cast.receiver.platform.getValue");this.C=!this.U&&n&&n("max-video-resolution-vpx")||null;n1d(this);this.Z=!!(aN()&&m_()>=21)}; vo1=function(n,q,M){M=M===void 0?1:M;var t=q.itag;if(t==="0")return!0;var c=q.mimeType;if(q.Ts==="1e"&&!n.S)return"dav1enc";if(Vv(q)&&n.xl)return"dav1";if(q.video&&(q.video.isHdr()||q.video.primaries==="bt2020")&&!(wX(n,zF.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(t==="338"&&!(g.Xq?XA(53):g.O8&&XA(64)))return"dopus";var Y=M;Y=Y===void 0?1: Y;M={};q.video&&(q.video.width&&(M[zF.WIDTH.name]=q.video.width),q.video.height&&(M[zF.HEIGHT.name]=q.video.height),q.video.fps&&(M[zF.FRAMERATE.name]=q.video.fps*Y),q.video.X&&(M[zF.EOTF.name]=q.video.X),q.Bb&&(M[zF.BITRATE.name]=q.Bb*8*Y),q.Ts==="("&&(M[zF.CRYPTOBLOCKFORMAT.name]="subsample"),q.video.projectionType==="EQUIRECTANGULAR"||q.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||q.video.projectionType==="MESH")&&(M[zF.DECODETOTEXTURE.name]="true");var G;((G=q.audio)==null?0:G.numChannels)&& (q.Ts!=="i"&&q.Ts!=="I"||!q0U)&&(M[zF.CHANNELS.name]=q.audio.numChannels);n.Z&&wy(q)&&(M[zF.EXPERIMENTAL.name]="allowed");G=g.S(Object.keys(zF));for(Y=G.next();!Y.done;Y=G.next()){Y=zF[Y.value];var k;if(k=M[Y.name])if(k=!(Y===zF.EOTF&&q.mimeType.indexOf("vp09.02")>0)){k=Y;var b=q;k=!(n.experiments.Hb("html5_ignore_h264_framerate_cap")&&k===zF.FRAMERATE&&vBs(b))}if(k)if(wX(n,Y))if(n.C){if(n.C[Y.name]1080&&q.f8&&(c+="; hdcp=2.2");return t==="227"?"hqcenc":t!=="585"&&t!=="588"&&t!=="583"&&t!=="586"&&t!=="584"&&t!=="587"&&t!=="591"&&t!=="592"||n.experiments.Hb("html5_enable_new_hvc_enc")?aN()&&m_()>=21&&g.$e("appletv5")&&(t==="410"||t==="845")?!0:n.isTypeSupported(c)?!0:"tpus":"newhvc"}; Hr=function(){var n=F$()&&!XA(29),q=g.$e("google tv")&&g.$e("chrome")&&!XA(30);return n||q?!1:DZj()}; Mcj=function(n,q,M){var t=480;q=g.S(q);for(var c=q.next();!c.done;c=q.next()){c=c.value;var Y=c.video.qualityOrdinal;Y<=1080&&Y>t&&vo1(n,c,M)===!0&&(t=Y)}return t}; g.Lx=function(n,q){q=q===void 0?!1:q;return Hr()&&n.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!q&&n.canPlayType(Wt(),"application/x-mpegURL")?!0:!1}; tc_=function(n){isd(function(){for(var q=g.S(Object.keys(zF)),M=q.next();!M.done;M=q.next())wX(n,zF[M.value])})}; wX=function(n,q){q.name in n.B||(n.B[q.name]=c0U(n,q));return n.B[q.name]}; c0U=function(n,q){if(n.C)return!!n.C[q.name];if(q===zF.BITRATE&&n.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!n.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(q===zF.AV1_CODECS)return n.isTypeSupported("video/mp4; codecs="+q.valid)&&!n.isTypeSupported("video/mp4; codecs="+q.t_);if(q.video){var M='video/webm; codecs="vp9"';n.isTypeSupported(M)||(M='video/mp4; codecs="avc1.4d401e"')}else M='audio/webm; codecs="opus"', n.isTypeSupported(M)||(M='audio/mp4; codecs="mp4a.40.2"');return n.isTypeSupported(M+"; "+q.name+"="+q.valid)&&!n.isTypeSupported(M+"; "+q.name+"="+q.t_)}; Y0k=function(n,q){var M=0;n.J.has(q)&&(M=n.J.get(q).IB);n.J.set(q,{IB:M+1,g_:Math.pow(2,M+1)});n.W=!0}; ZG=function(n){for(var q=[],M=g.S(n.X.keys()),t=M.next();!t.done;t=M.next()){t=t.value;var c=n.X.get(t);q.push(t+"_"+c.maxWidth+"_"+c.maxHeight)}return q.join(".")}; Xjf=function(n,q){for(var M=new Map,t=g.S(n.X.keys()),c=t.next();!c.done;c=t.next()){c=c.value;var Y=c.split("_")[0];q.has(Y)||M.set(c,n.X.get(c))}n.X=M}; SxR=function(n,q,M){var t,c=((t=M.video)==null?void 0:t.fps)||0;t=q+"_"+c;var Y=!!M.audio,G={itag:M.itag,Ts:q,OC:Y};if(Y)G.numChannels=M.audio.numChannels;else{var k=M.video;G.maxWidth=k==null?void 0:k.width;G.maxHeight=k==null?void 0:k.height;G.maxFramerate=c;wX(n,zF.BITRATE)&&(G.maxBitrateBps=M.Bb*8);G.dj=k==null?void 0:k.isHdr()}k=n.X.get(t);k?Y||(M=Math.max(k.maxWidth||0,k.maxHeight||0)>Math.max(G.maxWidth||0,G.maxHeight||0)?k:G,q={itag:M.itag,Ts:q,OC:Y,maxWidth:Math.max(k.maxWidth||0,G.maxWidth|| 0),maxHeight:Math.max(k.maxHeight||0,G.maxHeight||0),maxFramerate:c,dj:M.dj},wX(n,zF.BITRATE)&&(q.maxBitrateBps=M.maxBitrateBps),n.X.set(t,q)):n.X.set(t,G)}; I2d=function(n,q,M){var t,c=((t=M.video)==null?void 0:t.fps)||0;t=q+"_"+c;var Y=!!M.audio,G=n.X.get(t);a:{var k=n.X.get(t),b=!!M.audio;if(k){if(b){var d=!1;break a}var N;if(!b&&((d=M.video)==null?0:d.height)&&k.maxHeight&&k.maxHeight>=((N=M.video)==null?void 0:N.height)){d=!1;break a}}d=!0}d&&(d=M.itag,q=G?G:{itag:d,Ts:q,OC:Y},Y?q.numChannels=M.audio.numChannels:(Y=M.video,q.maxWidth=Y==null?void 0:Y.width,q.maxHeight=Y==null?void 0:Y.height,q.maxFramerate=c,wX(n,zF.BITRATE)&&(q.maxBitrateBps=M.Bb* 8),q.dj=Y==null?void 0:Y.isHdr()),n.X.set(t,q))}; n1d=function(n){var q;(q=navigator.mediaCapabilities)!=null&&q.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(M){M.smooth&&M.powerEfficient&&(n.RL=2160)})}; Pr=function(){g.MB.call(this);this.items={}}; vr=function(n,q){this.X=n;this.cipher=this.X.exports.AES128CTRCipher_create(q.byteOffset)}; ld=function(){this.W=this.FN=0;this.X=Array.from({length:T5.length}).fill(0)}; Ges=function(){}; KQs=function(){this.startTimeMs=(0,g.jt)();this.X=!1}; kef=function(){this.X=new Ges}; bsa=function(n,q,M,t){t=t===void 0?1:t;M>=0&&(q in n.X||(n.X[q]=new ld),n.X[q].TF(M,t))}; d7f=function(n,q,M,t,c){var Y=(0,g.jt)(),G=c?c(q):void 0,k;c=(k=G==null?void 0:G.FN)!=null?k:1;if(c!==0){var b;k=(b=G==null?void 0:G.profile)!=null?b:M;bsa(n,k,Y-t,c)}return q}; NAs=function(n,q,M,t,c){if(q&&typeof q==="object"){var Y=function(G){return d7f(n,G,M,t,c)}; if($h(q))return q.then(Y);if(m$(q))return oh(q,Y)}return d7f(n,q,M,t,c)}; Os_=function(){}; g1s=function(n){var q=window;q.ywc||(q.ywc={});var M=q.ywc[n];if(M)return M;M={};return q.ywc[n]=M}; e7U=function(n){var q=window;q.ywc&&delete q.ywc[n]}; E11=function(n){var q=g1s(n);if(q.binP)return q.binP;q.binP=Promise.resolve().then(function(){return fetch(n)}).then(function(M){if(!M.ok)throw Error("HTTP"+M.statusText); return M.arrayBuffer()}); q.binP.then(function(M){q.bin=M},function(){e7U(n)}); return q.binP}; y0m=function(n,q){return zR(h7s,function(){var M=this;return function c(){var Y,G,k;return $s(c,function(b){switch(b.X){case 1:g.fa(b,2);if(!M.W)throw"wasm.ps.ns";Y=n;G=Zs;return jk(b,Jj(WQs(M,q)),4);case 4:k=G(b.W);if(!k)throw"wasm.ps.um";if(M.X)try{return b.return(new WebAssembly.Instance(k,Y))}catch(d){M.X=!1}return jk(b,Jj(WebAssembly.instantiate(k,Y)),5);case 5:return b.return(b.W);case 2:g.Bd(b),g.Ds(b,0)}})}()})}; WQs=function(n,q){return zR(n,function(){var M=this;return function c(){var Y,G,k,b,d,N,O,e,E;return $s(c,function(h){switch(h.X){case 1:g.fa(h,2);Y=[];G=function(){return"wasm.ps.c: ["+Y.map(function(I){return'"'+I+'"'}).join(", ")+"]"}; k=g1s(q);if(k.mod)return h.return(k.mod);if(!k.modP){h.Fy(4);break}g.Ij(h,5);b=Zs;return jk(h,Jj(k.modP),7);case 7:return h.return(b(h.W));case 5:g.TU(h),Y.unshift("pcm");case 4:if((d=k.bin)||!k.binP){h.Fy(8);break}g.Ij(h,9);N=Zs;return jk(h,Jj(k.binP),11);case 11:d=N(h.W);g.vd(h,8);break;case 9:g.TU(h),Y.unshift("pfb");case 8:if(d){h.Fy(12);break}g.Ij(h,13);O=Zs;return jk(h,Jj(E11(q)),15);case 15:d=O(h.W);g.vd(h,12);break;case 13:throw g.TU(h),M.W=!1,Y.unshift("fb"),G();case 12:if(M.X)try{return h.return(new WebAssembly.Module(d))}catch(I){M.X= !1,Y.unshift("cs")}g.Ij(h,16);e=Zs;return jk(h,Jj(WebAssembly.compile(d)),18);case 18:return h.return(e(h.W));case 16:E=g.TU(h),e7U(q),Y.unshift("ca: "+E);case 17:throw G();case 2:g.Bd(h),g.Ds(h,0)}})}()})}; sQu=function(){}; XP_=function(){var n=this;this.proc_exit=function(){}; this.fd_write=function(q,M,t){if(!n.exports)return 1;q=new Uint32Array(n.exports.memory.buffer,M,t*2);M=[];for(var c=0;c0)q=n.byterate,this.xl=!0;else{var t; M=(((t=navigator.connection)==null?void 0:t.downlink)||0)*64*1024;M>0&&(q=M,this.xl=!0)}this.Z.Hk(this.policy.C,q);n.delay>0&&this.B.Hk(1,Math.min(n.delay,2));n.stall>0&&this.N.Hk(1,n.stall);n.init>0&&(this.SX=Math.min(n.init,this.SX));n.interruptions&&(this.J=this.J.concat(n.interruptions),this.J.length>16&&this.J.pop());this.RL=(0,g.jt)();this.policy.N>0&&(this.rJ=new g.zw(this.V1,this.policy.N,this),g.Z(this,this.rJ),this.rJ.start())}; wh=function(n,q,M,t){n.Z.Hk(t===void 0?q:t,M/q);n.C=(0,g.jt)()}; v1C=function(n){n.S||(n.S=(0,g.jt)());n.policy.U&&(n.C=(0,g.jt)())}; TAs=function(n,q){if(n.S){var M=q-n.S;if(M<6E4){if(M>1E3){var t=n.interruptions;t.push(Math.ceil(M));t.sort(function(c,Y){return Y-c}); t.length>16&&t.pop()}n.jX+=M}}n.S=q}; z5=function(n,q,M,t,c,Y){Y=Y===void 0?!1:Y;n.nm.Hk(q,M/q);n.C=(0,g.jt)();c||n.U.Hk(1,q-t);Y||(n.S=0);n.RL>-1&&(0,g.jt)()-n.RL>3E4&&l7d(n)}; J4=function(n,q,M){q=Math.max(q,n.W.X);n.N.Hk(1,M/q)}; Vt=function(n){n=n.B.BI()+n.IL.BI()||0;n=isNaN(n)?.5:n;return n=Math.min(n,5)}; Cx=function(n,q,M){isNaN(M)||(n.wJ+=M);isNaN(q)||(n.AE+=q)}; rh=function(n){n=n.Z.BI();return n>0?n:1}; x$=function(n,q,M){q=q===void 0?!1:q;M=M===void 0?1048576:M;var t=rh(n);t=1/((n.N.BI()||0)*n.policy.xl+1/t);var c=n.nm.BI();c=c>0?c:1;var Y=Math.max(t,c);n.policy.S>0&&c=4E3}; uhm=function(n){this.experiments=n;this.X=17;this.Z=13E4;this.C=.5;this.J=this.W=!1;this.RL=this.D("html5_use_histogram_for_bandwidth");this.S=g.ic(this.experiments,"html5_auxiliary_estimate_weight");this.xl=g.ic(this.experiments,"html5_stall_factor")||1;this.N=g.ic(this.experiments,"html5_check_for_idle_network_interval_ms");this.B=this.experiments.Hb("html5_trigger_loader_when_idle_network");this.U=this.experiments.Hb("html5_sabr_fetch_on_idle_network_preloaded_players")}; D7R=function(n,q){n=n===void 0?{}:n;q=q===void 0?{}:q;g.F.call(this);var M=this;this.values=n;this.yg=q;this.W={};this.Z=this.X=0;this.J=new g.zw(function(){BAk(M)},1E4); g.Z(this,this.J)}; px=function(n,q){A01(n,q);return n.values[q]&&n.yg[q]?n.values[q]/Math.pow(2,n.X/n.yg[q]):0}; A01=function(n,q){n.values[q]||(q=riU(),n.values=q.values||{},n.yg=q.halfLives||{},n.W=q.values?Object.assign({},q.values):{})}; BAk=function(n){var q=riU();if(q.values){q=q.values;for(var M={},t=g.S(Object.keys(n.values)),c=t.next();!c.done;c=t.next())c=c.value,q[c]&&n.W[c]&&(n.values[c]+=q[c]-n.W[c]),M[c]=px(n,c);n.W=M}q=n.yg;M={};M.values=n.W;M.halfLives=q;g.Pf("yt-player-memory",M,2592E3)}; WN=function(n,q,M,t,c){g.F.call(this);this.webPlayerContextConfig=q;this.zF=t;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.g4=this.Wg=this.K8=this.Wk=this.userDisplayName=this.userDisplayImage=this.tB="";this.X={};this.Fh={};this.controlsType="0";this.JQ=NaN;this.eX=!1;this.VA=(0,g.jt)();this.uG=0;this.GF=this.fR=!1;this.uh=!0;this.preferGapless=this.S_=this.NV=this.Z=this.YB=!1;this.yh=[];this.h1=!1;this.zd=0;n=n?g.hf(n):{};q&&q.csiPageType&&(this.csiPageType=q.csiPageType);q&&q.csiServiceName&& (this.csiServiceName=q.csiServiceName);q&&q.preferGapless&&(this.preferGapless=q.preferGapless);this.experiments=new SF(q?q.serializedExperimentIds:n.fexp,q?q.serializedExperimentFlags:n.fflags,q!=null?q:{});this.forcedExperiments=q?q.serializedForcedExperimentIds:My("",n.forced_experiments)||void 0;this.cspNonce=(q==null?0:q.cspNonce)?q.cspNonce:My("",n.csp_nonce);this.D("web_player_deprecated_uvr_killswitch");try{var Y=document.location.toString()}catch(bf){Y=""}this.Z6=Y;this.ancestorOrigins=(t= window.location.ancestorOrigins)?Array.from(t):[];this.J=pp(!1,q?q.isEmbed:n.is_embed);if(q&&q.device){if(t=q.device,t.androidOsExperience&&(this.X.caoe=""+t.androidOsExperience),t.androidPlayServicesVersion&&(this.X.capsv=""+t.androidPlayServicesVersion),t.brand&&(this.X.cbrand=t.brand),t.browser&&(this.X.cbr=t.browser),t.browserVersion&&(this.X.cbrver=t.browserVersion),t.cobaltReleaseVehicle&&(this.X.ccrv=""+t.cobaltReleaseVehicle),this.X.c=t.interfaceName||"WEB",this.X.cver=t.interfaceVersion|| "html5",t.interfaceTheme&&(this.X.ctheme=t.interfaceTheme),this.X.cplayer=t.interfacePlayerType||"UNIPLAYER",t.model&&(this.X.cmodel=t.model),t.network&&(this.X.cnetwork=t.network),t.os&&(this.X.cos=t.os),t.osVersion&&(this.X.cosver=t.osVersion),t.platform&&(this.X.cplatform=t.platform),Y=Id(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),Y==="all"||Y==="once")t.chipset&&(this.Fh.cchip=t.chipset),t.cobaltAppVersion&&(this.Fh.ccappver=t.cobaltAppVersion),t.firmwareVersion&&(this.Fh.cfrmver= t.firmwareVersion),t.deviceYear&&(this.Fh.crqyear=t.deviceYear)}else this.X.c=n.c||"web",this.X.cver=n.cver||"html5",this.X.cplayer="UNIPLAYER";this.loaderUrl=q?this.J||m7j(this)&&q.loaderUrl?q.loaderUrl||"":this.Z6:this.J||m7j(this)&&n.loaderUrl?My("",n.loaderUrl):this.Z6;this.J&&g.nQ("yt.embedded_player.embed_url",this.loaderUrl);this.B=aJ(this.loaderUrl,$7R);t=this.loaderUrl;var G=G===void 0?!1:G;this.s5=Z4(aJ(t,FQU),t,G,"Trusted Ad Domain URL");this.Kd=pp(!1,n.privembed);this.protocol=this.Z6.indexOf("http:")=== 0?"http":"https";this.AG=Nes((q?q.customBaseYoutubeUrl:n.BASE_YT_URL)||"")||Nes(this.Z6)||this.protocol+"://www.youtube.com/";G=q?q.eventLabel:n.el;t="detailpage";G==="adunit"?t=this.J?"embedded":"detailpage":G==="embedded"||this.B?t=nL(t,G,Zsd):G&&(t="embedded");this.IL=t;ITa();G=null;t=q?q.playerStyle:n.ps;Y=g.SS(a7a,t);!t||Y&&!this.B||(G=t);this.playerStyle=G;this.C=g.SS(a7a,this.playerStyle);this.houseBrandUserStatus=q==null?void 0:q.houseBrandUserStatus;this.RL=this.C&&this.playerStyle!=="play"&& this.playerStyle!=="jamboard";this.zj=!this.RL;this.rJ=pp(!1,n.disableplaybackui);this.disablePaidContentOverlay=pp(!1,q==null?void 0:q.disablePaidContentOverlay);this.disableSeek=pp(!1,q==null?void 0:q.disableSeek);this.enableSpeedOptions=(q==null?void 0:q.enableSpeedOptions)||(Wt().defaultPlaybackRate?nl||g.Cp||qU?g.O8&&XA("20")||g.Xq&&XA("4")||g.MU&&XA("11")||wO():!(g.MU&&!g.$e("chrome")||nl||g.$e("android")||g.$e("silk")):!1);this.A2=pp(!1,n.enable_faster_speeds);var k;this.supportsVarispeedExtendedFeatures= (k=q==null?void 0:q.supportsVarispeedExtendedFeatures)!=null?k:!1;this.W=pp(this.playerStyle==="blazer",n.is_html5_mobile_device||q&&q.isMobileDevice);this.AE=VY()||rO();this.gC=this.D("mweb_allow_background_playback")?!1:this.W&&!this.C;this.nm=Ic();this.pC=g.i4;var b;this.qS=!!(q==null?0:(b=q.embedsHostFlags)==null?0:b.optOutApiDeprecation);var d;q?q.hideInfo!==void 0&&(d=!q.hideInfo):d=n.showinfo;this.Iz=g.t8(this)&&!this.qS||pp(!cN(this)&&!Yl(this)&&!this.C,d);this.wp=q?!!q.mobileIphoneSupportsInlinePlayback: pp(!1,n.playsinline);k=this.W&&G3&&Kl!=null&&Kl>0&&Kl<=2.3;b=q?q.useNativeControls:n.use_native_controls;this.N=g.t8(this)&&this.W;d=this.W&&!this.N;b=g.kl(this)||!k&&pp(d,b)?"3":"1";this.disableOrganicUi=!(q==null||!q.disableOrganicUi);d=q?q.controlsType:n.controls;this.controlsType=this.disableOrganicUi||d==="0"||d===0?"0":b;this.Z7=this.W;this.color=nL("red",q?q.progressBarColor:n.color,R7k);this.ZM=this.controlsType==="3";this.O9=!this.J;this.F$=(b=!this.O9&&!Yl(this)&&!this.RL&&!this.C&&!cN(this))&& !this.ZM&&this.controlsType==="1";this.cn=g.b4(this)&&b&&this.controlsType==="0"&&!this.F$&&!(q==null?0:q.embedsEnableEmc3ds);this.aF=this.Jz=k;this.Kn=(this.controlsType==="3"||this.W||pp(!1,n.use_media_volume))&&!this.N;this.jd=zH&&!g.Zy(601)?!1:!0;this.dC=this.J||!1;this.yS=Yl(this)?"":(this.loaderUrl||n.post_message_origin||"").substring(0,128);this.widgetReferrer=My("",q?q.widgetReferrer:n.widget_referrer);var N;q?q.disableCastApi&&(N=!1):N=n.enablecastapi;N=!this.B||pp(!0,N);k=!0;q&&q.disableMdxCast&& (k=!1);this.He=this.D("enable_cast_for_web_unplugged")&&g.d1(this)&&k||g.BD(this)&&k||N&&k&&this.controlsType==="1"&&!this.W&&(Yl(this)||g.b4(this)||g.NU(this));this.gI=!!window.document.pictureInPictureEnabled||SV();N=q?!!q.supportsAutoplayOverride:pp(!1,n.autoplayoverride);this.i7=!(this.W&&!g.t8(this))&&!g.$e("nintendo wiiu")||N;this.JB=(q?!!q.enableMutedAutoplay:pp(!1,n.mutedautoplay))&&!1;N=(Yl(this)||cN(this))&&this.playerStyle==="blazer";this.Es=q?!!q.disableFullscreen:!pp(!0,n.fs);k=g.Yj(g.OR(this))&& g.t8(this);this.QS=!this.Es&&(N||g.Og())&&!k;this.bD=this.D("html5_picture_in_picture_logging_onresize");var O;this.cU=(O=g.ic(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?O:.33;this.J_=this.D("html5_picture_in_picture_blocking_onresize");this.pL=this.D("html5_picture_in_picture_blocking_ontimeupdate");this.BU=this.D("html5_picture_in_picture_blocking_document_fullscreen");this.ZW=this.D("html5_picture_in_picture_blocking_standard_api");O=F$()&&XA(58)&&!rO();N=Ra||typeof MediaSource=== "undefined";this.wP=this.D("uniplayer_block_pip")&&(O||N)||this.J_||this.pL||this.ZW;O=g.t8(this)&&!this.qS;var e;q?q.disableRelatedVideos!==void 0&&(e=!q.disableRelatedVideos):e=n.rel;this.TX=O||pp(!this.C,e);this.dI=pp(!1,q?q.enableContentOwnerRelatedVideos:n.co_rel);this.U=rO()&&Kl>0&&Kl<=4.4?"_top":"_blank";this.ZU=g.NU(this);this.W_=pp(this.playerStyle==="blazer",q?q.enableCsiLogging:n.enablecsi);switch(this.playerStyle){case "blogger":e="bl";break;case "discover-ads":e="da";break;case "gmail":e= "gm";break;case "gac":e="ga";break;case "ads-preview":e="ap";break;case "books":e="gb";break;case "docs":case "flix":e="gd";break;case "duo":e="gu";break;case "google-live":e="gl";break;case "google-one":e="go";break;case "play":case "play-ads":e="gp";break;case "chat":e="hc";break;case "hangouts-meet":e="hm";break;case "photos-edu":case "picasaweb":e="pw";break;default:e="yt"}this.xl=e;this.wJ=My("",q?q.authorizedUserIndex:n.authuser);this.Yi=g.t8(this)&&(this.Kd||!OY1()||this.AE);var E;q?q.disableWatchLater!== void 0&&(E=!q.disableWatchLater):E=n.showwatchlater;this.L9=((e=!this.Yi)||!!this.wJ&&e)&&pp(!this.RL,this.B?E:void 0);this.uI=q?q.isMobileDevice||!!q.disableKeyboardControls:pp(!1,n.disablekb);this.loop=pp(!1,n.loop);this.pageId=My("",q?q.initialDelegatedSessionId:n.pageid);this.Fj=pp(!0,n.canplaylive);E=g.ic(this.experiments,"html5_default_audio_quality_setting_lr");var h;this.lM=(h=o11[o11[E]])!=null?h:0;this.Ux=pp(!1,n.livemonitor);this.disableSharing=pp(this.C,q?q.disableSharing:n.ss);(h=q&& this.D("fill_video_container_size_override_from_wpcc")?q.videoContainerOverride:n.video_container_override)?(E=h.split("x"),E.length!==2?h=null:(h=Number(E[0]),E=Number(E[1]),h=isNaN(h)||isNaN(E)||h*E<=0?null:new g.JE(h,E))):h=null;this.gp=h;this.mute=q?!!q.startMuted:pp(!1,n.mute);this.storeUserVolume=!this.mute&&pp(this.controlsType!=="0",q?q.storeUserVolume:n.store_user_volume);h=q?q.annotationsLoadPolicy:n.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:nL(void 0,h,g1);this.captionsLanguagePreference= q?q.captionsLanguagePreference||"":My("",n.cc_lang_pref);h=nL(2,q?q.captionsLanguageLoadPolicy:n.cc_load_policy,g1);this.controlsType==="3"&&h===2&&(h=3);this.ZJ=h;this.Wm=q?q.hl||"en_US":My("en_US",n.hl);this.region=q?q.contentRegion||"US":My("US",n.cr);this.hostLanguage=q?q.hostLanguage||"en":My("en",n.host_language);this.DN=!this.Kd&&Math.random()=480;this.schedule=new od(O,new w3R(this.experiments),c);g.Z(this,this.schedule);var I;this.enableSafetyMode=(I=q==null?void 0:q.initialEnableSafetyMode)!=null?I:pp(!1,n.enable_safety_mode);c=this.rJ?!1:Yl(this)&&this.playerStyle!== "blazer";var L;q?q.disableAutonav!=null&&(L=!q.disableAutonav):L=n.allow_autonav;this.rZ=pp(c,!this.RL&&L);this.sendVisitorIdHeader=q?!!q.sendVisitorIdHeader:pp(!1,n.send_visitor_id_header);var T;this.playerStyle==="docs"&&(q?T=q.disableNativeContextMenu:T=n.disable_native_context_menu);this.disableNativeContextMenu=pp(!1,T);this.WO=E6(this)&&this.D("enable_skip_intro_button");this.embedConfig=My("",q?q.serializedEmbedConfig:n.embed_config);this.jX=cf(n,g.t8(this));this.Z=this.jX==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(q==null||!q.embedsErrorLinks);this.Xw=pp(!1,n.full_window);var v;this.hE=!((v=this.webPlayerContextConfig)==null?0:v.chromeless);var B;this.livingRoomAppMode=nL("LIVING_ROOM_APP_MODE_UNSPECIFIED",n.living_room_app_mode||(q==null?void 0:(B=q.device)==null?void 0:B.livingRoomAppMode),J0j);var m;L=qy(NaN,q==null?void 0:(m=q.device)==null?void 0:m.deviceYear);isNaN(L)||(this.deviceYear=L);this.transparentBackground=q?!!q.transparentBackground:pp(!1,n.transparent_background);this.showMiniplayerButton= q?!!q.showMiniplayerButton:pp(!1,n.show_miniplayer_button);var a;g.t8(this)&&!(q==null?0:(a=q.embedsHostFlags)==null?0:a.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=q?!!q.externalFullscreen:pp(!1,n.external_fullscreen);this.showMiniplayerUiWhenMinimized=q?!!q.showMiniplayerUiWhenMinimized:pp(!1,n.use_miniplayer_ui);var x;this.uh=(x=n.show_loop_video_toggle)!=null?x:!0;this.x9=Math.random()<1E-4;if(n.onesie_hot_config||(q==null?0:q.onesieHotConfig))this.o8=new LQs(n.onesie_hot_config, q==null?void 0:q.onesieHotConfig),g.Z(this,this.o8);this.isTectonic=q?!!q.isTectonic:!!n.isTectonic;this.playerCanaryState=M;this.playerCanaryStage=q==null?void 0:q.canaryStage;this.SR=new D7R;g.Z(this,this.SR);this.datasyncId=(q==null?void 0:q.datasyncId)||g.RZ("DATASYNC_ID");this.WR=g.RZ("LOGGED_IN",!1);this.jL=(q==null?void 0:q.allowWoffleManagement)||!1;this.u0=Infinity;this.Rk=NaN;this.livingRoomPoTokenId=q==null?void 0:q.livingRoomPoTokenId;this.D("html5_high_res_logging_always")?this.NV=!0: this.NV=Math.random()*100=0&&n0&&n.x9&&(t.sort(),g.PJ(new g.aE("Player client parameters changed after startup",t)));n.userAge=qy(n.userAge,q.user_age);n.tB=My(n.tB,q.user_display_email);n.userDisplayImage=My(n.userDisplayImage,q.user_display_image);g.oJ(n.userDisplayImage)||(n.userDisplayImage= "");n.userDisplayName=My(n.userDisplayName,q.user_display_name);n.Wk=My(n.Wk,q.user_gender);n.csiPageType=My(n.csiPageType,q.csi_page_type);n.csiServiceName=My(n.csiServiceName,q.csi_service_name);n.W_=pp(n.W_,q.enablecsi);n.pageId=My(n.pageId,q.pageid);if(M=q.enabled_engage_types)n.enabledEngageTypes=new Set(M.split(","));q.living_room_session_po_token&&(n.Ku=q.living_room_session_po_token.toString())}; yb=function(n,q){return!n.C&&F$()&&XA(55)&&n.controlsType==="3"&&!q}; g.sR=function(n){n=e0(n.AG);return n==="www.youtube-nocookie.com"?"www.youtube.com":n}; XT=function(n,q,M){return n.protocol+"://i1.ytimg.com/vi/"+q+"/"+(M||"hqdefault.jpg")}; j0=function(n){return Yl(n)&&!g.d1(n)}; g.kl=function(n){return n.D("html5_local_playsinline")?zH&&!g.Zy(602)&&!("playsInline"in Wt()):zH&&!n.wp||g.$e("nintendo wiiu")?!0:!1}; s8=function(n){return n.X.c}; g.hi=function(n){return/^TVHTML5/.test(s8(n))}; g.S0=function(n){return s8(n)==="TVHTML5"}; m7j=function(n){return s8(n)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; z7k=function(n){return n.X.cmodel==="CHROMECAST ULTRA/STEAK"||n.X.cmodel==="CHROMECAST/STEAK"}; g.IW=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; E6=function(n){return/web/i.test(s8(n))}; g.fl=function(n){return s8(n).toUpperCase()==="WEB"}; h8=function(n){return s8(n)==="WEB_KIDS"}; g.d1=function(n){return s8(n)==="WEB_UNPLUGGED"}; HN=function(n){return s8(n)==="TVHTML5_UNPLUGGED"}; g.e$=function(n){return g.d1(n)||s8(n)==="TV_UNPLUGGED_CAST"||HN(n)}; g.BD=function(n){return s8(n)==="WEB_REMIX"}; g.Ll=function(n){return s8(n)==="WEB_MUSIC_INTEGRATIONS"}; g.PN=function(n){return s8(n)==="WEB_EMBEDDED_PLAYER"}; g.T3=function(n){return(n.deviceIsAudioOnly||!g.Xq||Ra||n.controlsType==="3"?!1:g.Cp?n.J&&g.Zy(51):!0)||(n.deviceIsAudioOnly||!g.O8||Ra||n.controlsType==="3"?!1:g.Cp?n.J&&g.Zy(48):g.Zy(38))||(n.deviceIsAudioOnly||!g.MU||Ra||n.controlsType==="3"?!1:g.Cp?n.J&&g.Zy(37):g.Zy(27))||!n.deviceIsAudioOnly&&g.vN&&!WRf()&&g.Zy(11)||!n.deviceIsAudioOnly&&g.gz&&g.Zy("604.4")}; r0s=function(n){if(g.b4(n)&&G3)return!1;if(g.O8){if(!g.Zy(47)||!g.Zy(52)&&g.Zy(51))return!1}else if(g.gz)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; QQ_=function(n,q){return n.enabledEngageTypes.has(q.toString())||x7a.includes(q)}; Yl=function(n){return n.IL==="detailpage"}; g.b4=function(n){return n.IL==="embedded"}; l4=function(n){return n.IL==="leanback"}; cN=function(n){return n.IL==="adunit"||n.playerStyle==="gvn"}; g.NU=function(n){return n.IL==="profilepage"}; g.t8=function(n){return n.J&&g.b4(n)&&!cN(n)&&!n.C}; UR=function(n){if(!n.userDisplayImage)return"";var q=n.userDisplayImage.split("/");if(q.length===5)return n=q[q.length-1].split("="),n[1]="s20-c",q[q.length-1]=n.join("="),q.join("/");if(q.length===8)return q.splice(7,0,"s20-c"),q.join("/");if(q.length===9)return q[7]+="-s20-c",q.join("/");g.PJ(new g.aE("Profile image not a FIFE URL.",n.userDisplayImage));return n.userDisplayImage}; g.u4=function(n){var q=g.sR(n);pP1.includes(q)&&(q="www.youtube.com");return n.protocol+"://"+q}; g.BN=function(n,q){q=q===void 0?"":q;if(n.zF){var M=new LW,t,c=n.zF();c.signedOut?t="":c.token?t=c.token:c.pendingResult.then(function(Y){c.signedOut?M.resolve(""):M.resolve(Y.token)},function(Y){g.PJ(new g.aE("b189348328_oauth_callback_failed",{error:Y})); M.resolve(q)}); return t!==void 0?Pk(t):new Hk(M)}return Pk(q)}; Du=function(n,q){q=q===void 0?"":q;return n.WR?FK(!0):wL(oh(FK(g.BN(n,q)),function(M){return FK(!!M)}),function(){return FK(!1)})}; nmm=function(n,q){q==null||oh(q,function(M){n.u$=M;var t,c;(t=n.o8)!=null&&(c=t.X)!=null&&(c.X=new Dj(M,c.W,c.Z),g.Z(c,c.X))})}; e0=function(n){var q=g.bm(n);return(n=Number(g.kO(n)[4]||null)||null)?q+":"+n:q}; A8=function(n,q){q=q===void 0?!1:q;var M=Rc[n],t=q7U[M],c=Mbk[n];if(!c||!t)return null;q=new Fq(q?c.height:c.width,q?c.width:c.height,c.fps);t=Zc(t,q,M);return new oc(n,t,{video:q,Bb:c.bitrate/8})}; tbd=function(n){var q=q7U[Rc[n]],M=ihj[n];return M&&q?new oc(n,q,{audio:new Ht(M.audioSampleRate,M.numChannels)}):null}; mN=function(n){this.X=n}; $l=function(n,q,M,t){if(M)return Lp();M={};var c=Wt();q=g.S(q);for(var Y=q.next();!Y.done;Y=q.next())if(Y=Y.value,n.canPlayType(c,Y.getInfo().mimeType)||t){var G=Y.X.video.quality;if(!M[G]||M[G].getInfo().Fm())M[G]=Y}n=[];M.auto&&n.push(M.auto);t=g.S(Zr);for(c=t.next();!c.done;c=t.next())(c=M[c.value])&&n.push(c);return n.length?Pk(n):Lp()}; cOJ=function(n){this.itag=n.itag;this.url=n.url;this.codecs=n.codecs;this.width=n.width;this.height=n.height;this.fps=n.fps;this.bitrate=n.bitrate;var q;this.W=((q=n.audioItag)==null?void 0:q.split(","))||[];this.rd=n.rd;this.f8=n.f8||"";this.tq=n.tq;this.audioChannels=n.audioChannels;this.X=""}; Y7R=function(n,q,M,t){q=q===void 0?!1:q;M=M===void 0?!0:M;t=t===void 0?{}:t;var c={};n=g.S(n);for(var Y=n.next();!Y.done;Y=n.next()){Y=Y.value;if(q&&MediaSource&&MediaSource.isTypeSupported){var G=Y.type;Y.audio_channels&&(G=G+"; channels="+Y.audio_channels);if(!MediaSource.isTypeSupported(G)){t[Y.itag]="tpus";continue}}if(M||!Y.drm_families||Y.eotf!=="smpte2084"&&Y.eotf!=="arib-std-b67"){G=void 0;var k={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},b=Y.type.match(/codecs="([^"]*)"/); b=b?b[1]:"";Y.audio_track_id&&(G=new g.B$(Y.name,Y.audio_track_id,!!Y.is_default));var d=Y.eotf;Y=new cOJ({itag:Y.itag,url:Y.url,codecs:b,width:Number(Y.width),height:Number(Y.height),fps:Number(Y.fps),bitrate:Number(Y.bitrate),audioItag:Y.audio_itag,rd:d?k[d]:void 0,f8:Y.drm_families,tq:G,audioChannels:Number(Y.audio_channels)});c[Y.itag]=c[Y.itag]||[];c[Y.itag].push(Y)}else t[Y.itag]="enchdr"}return c}; Giu=function(n,q,M,t,c){this.Z=n;this.W=q;this.S=M;this.cpn=t;this.C=c;this.J=0;this.X=""}; K1k=function(n,q){n.Z.some(function(M){var t;return((t=M.tq)==null?void 0:t.getId())===q}); n.X=q}; FT=function(n,q,M){n.cpn&&(q=g.hC(q,{cpn:n.cpn}));M&&(q=g.hC(q,{paired:M}));return q}; kiJ=function(n,q){n=n.itag.toString();q!==null&&(n+=q.itag.toString());return n}; bhs=function(n){for(var q=[],M=[],t=g.S(n.W),c=t.next();!c.done;c=t.next())c=c.value,c.bitrate<=n.J?q.push(c):M.push(c);q.sort(function(Y,G){return G.bitrate-Y.bitrate}); M.sort(function(Y,G){return Y.bitrate-G.bitrate}); n.W=q.concat(M)}; Zu=function(n,q,M){this.X=n;this.W=q;this.expiration=M;this.d7=null}; d4m=function(n,q){if(!(Ra||oN()||aN()))return null;n=Y7R(q,n.D("html5_filter_fmp4_in_hls"));if(!n)return null;q=[];for(var M={},t=g.S(Object.keys(n)),c=t.next();!c.done;c=t.next()){c=g.S(n[c.value]);for(var Y=c.next();!Y.done;Y=c.next()){var G=Y.value;G.tq&&(Y=G.tq.getId(),M[Y]||(G=new g.HR(Y,G.tq),M[Y]=G,q.push(G)))}}return q.length>0?q:null}; Emf=function(n,q,M,t,c,Y,G){if(!(Ra||oN()||aN()))return Lp();var k={},b=Nqj(M),d=Y7R(M,n.D("html5_filter_fmp4_in_hls"),n.S.N,k);if(!d)return G({noplst:1}),Lp();Ohd(d);M={};var N=(M.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",M),O;M=[];var e=[],E=[],h=null,I="";t=t&&t.match(/hls_timedtext_playlist/)?new cOJ({itag:"0",url:t,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,tq:new g.B$("English","en",!1)}):null;for(var L=g.S(Object.keys(d)),T=L.next();!T.done;T=L.next())if(T=T.value,!n.D("html5_disable_drm_hfr_1080")|| T!=="383"&&T!=="373"){T=g.S(d[T]);for(var v=T.next();!v.done;v=T.next())if(v=v.value,v.width){for(var B=g.S(v.W),m=B.next();!m.done;m=B.next())if(m=m.value,d[m]){v.X=m;break}v.X||(v.X=gms(d,v));if(B=d[v.X])if(M.push(v),v.f8==="fairplay"&&(O=N),m="",v.rd==="PQ"?m="smpte2084":v.rd==="HLG"&&(m="arib-std-b67"),m&&(I=m),E.push(eos(B,[v],t,Y,v.itag,v.width,v.height,v.fps,b,void 0,void 0,O,m)),!h||v.width*v.height*v.fps>h.width*h.height*h.fps)h=v}else e.push(v)}else k[T]="disdrmhfr";E.reduce(function(a, x){return x.getInfo().isEncrypted()&&a},!0)&&(O=N); c=Math.max(c,0);N=h||{};d=N.fps===void 0?0:N.fps;h=N.width===void 0?0:N.width;N=N.height===void 0?0:N.height;L=n.D("html5_native_audio_track_switching");E.push(eos(e,M,t,Y,"93",h,N,d,b,"auto",c,O,I,L));Object.entries(k).length&&G(k);return $l(n.S,E,yb(n,q),!1)}; eos=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E){for(var h=0,I="",L=g.S(n),T=L.next();!T.done;T=L.next())T=T.value,I||(I=T.itag),T.audioChannels&&T.audioChannels>h&&(h=T.audioChannels,I=T.itag);c=new oc(c,"application/x-mpegURL",{audio:new Ht(0,h),video:new Fq(Y,G,k,null,void 0,d,void 0,void 0,e),f8:O,bl:I});n=new Giu(n,q,M?[M]:[],t,!!E);n.J=N?N:1369843;return new Zu(c,n,b)}; Nqj=function(n){n=g.S(n);for(var q=n.next();!q.done;q=n.next())if(q=q.value,q.url&&(q=q.url.split("expire/"),!(q.length<=1)))return+q[1].split("/")[0];return NaN}; gms=function(n,q){for(var M=g.S(Object.keys(n)),t=M.next();!t.done;t=M.next()){t=t.value;var c=n[t][0];if(!c.width&&c.f8===q.f8&&!c.audioChannels)return t}return""}; Ohd=function(n){for(var q=new Set,M=g.S(Object.values(n)),t=M.next();!t.done;t=M.next())t=t.value,t.length&&(t=t[0],t.height&&t.codecs.startsWith("vp09")&&q.add(t.height));M=[];if(q.size){t=g.S(Object.keys(n));for(var c=t.next();!c.done;c=t.next())if(c=c.value,n[c].length){var Y=n[c][0];Y.height&&q.has(Y.height)&&!Y.codecs.startsWith("vp09")&&M.push(c)}}q=g.S(M);for(M=q.next();!M.done;M=q.next())delete n[M.value]}; aW=function(n,q){this.X=n;this.W=q}; hoU=function(n,q,M,t){var c=[];M=g.S(M);for(var Y=M.next();!Y.done;Y=M.next()){var G=Y.value;if(G.url){Y=new g.Jc(G.url,!0);if(G.s){var k=Y,b=G.sp,d=ztf(decodeURIComponent(G.s));k[K[1]](b,encodeURIComponent(d))}k=g.S(Object.keys(t));for(b=k.next();!b.done;b=k.next())b=b.value,Y.set(b,t[b]);G=tA(G.type,G.quality,G.itag,G.width,G.height);c.push(new aW(G,Y))}}return $l(n.S,c,yb(n,q),!1)}; RW=function(n,q){this.X=n;this.W=q}; W1_=function(n,q,M){var t=[];M=g.S(M);for(var c=M.next();!c.done;c=M.next())if((c=c.value)&&c.url){var Y=tA(c.type,"medium","0");t.push(new RW(Y,c.url))}return $l(n.S,t,yb(n,q),!1)}; yOd=function(n,q){var M=[],t=tA(q.type,"auto",q.itag);M.push(new RW(t,q.url));return $l(n.S,M,!1,!0)}; XId=function(n){return n&&sFu[n]?sFu[n]:null}; jFu=function(n){switch(n){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return n;default:return"sabr.config"}}; S71=function(n){if(n=n.commonConfig)this.url=n.url,this.urlQueryOverride=n.urlQueryOverride,n.ustreamerConfig&&(this.nR=A4(n.ustreamerConfig)||void 0)}; Iwf=function(n,q){var M;if(q=q==null?void 0:(M=q.watchEndpointSupportedOnesieConfig)==null?void 0:M.html5PlaybackOnesieConfig)n.fS=new S71(q)}; g.oW=function(n){n=n===void 0?{}:n;this.languageCode=n.languageCode||"";this.languageName=n.languageName||null;this.kind=n.kind||"";this.name=n.name===void 0?null:n.name;this.displayName=n.displayName||null;this.id=n.id||null;this.X=n.is_servable||!1;this.isTranslateable=n.is_translateable||!1;this.url=n.url||null;this.vssId=n.vss_id||"";this.isDefault=n.is_default||!1;this.translationLanguage=n.translationLanguage||null;this.xtags=n.xtags||"";this.captionId=n.captionId||""}; g.z3=function(n){var q={languageCode:n.languageCode,languageName:n.languageName,displayName:g.w1(n),kind:n.kind,name:n.name,id:n.id,is_servable:n.X,is_default:n.isDefault,is_translateable:n.isTranslateable,vss_id:n.vssId};n.xtags&&(q.xtags=n.xtags);n.captionId&&(q.captionId=n.captionId);n.translationLanguage&&(q.translationLanguage=n.translationLanguage);return q}; g.J8=function(n){return n.translationLanguage?n.translationLanguage.languageCode:n.languageCode}; g.fw1=function(n){var q=n.vssId;n.translationLanguage&&q&&(q="t"+q+"."+g.J8(n));return q}; g.w1=function(n){var q=[];if(n.displayName)q.push(n.displayName);else{var M=n.languageName||"";q.push(M);n.kind==="asr"&&M.indexOf("(")===-1&&q.push(" (Subt\u00edtulos autom\u00e1ticos)");n.name&&q.push(" - "+n.name)}n.translationLanguage&&q.push(" >> "+n.translationLanguage.languageName);return q.join("")}; vm_=function(n,q,M,t){n||(n=q&&HhJ.hasOwnProperty(q)&&L1U.hasOwnProperty(q)?L1U[q]+"_"+HhJ[q]:void 0);q=n;if(!q)return null;n=q.match(P2a);if(!n||n.length!==5)return null;if(n=q.match(P2a)){var c=Number(n[3]),Y=[7,8,10,5,6];n=!(Number(n[1])===1&&c===8)&&Y.indexOf(c)>=0}else n=!1;return M||t||n?q:null}; Vb=function(n,q){for(var M={},t=g.S(Object.keys(Tqd)),c=t.next();!c.done;c=t.next()){c=c.value;var Y=q?q+c:c;Y=n[Y+"_webp"]||n[Y];g.oJ(Y)&&(M[Tqd[c]]=Y)}return M}; Cl=function(n){var q={};if(!n||!n.thumbnails)return q;n=n.thumbnails.filter(function(k){return!!k.url}); n.sort(function(k,b){return k.width-b.width||k.height-b.height}); for(var M=g.S(Object.keys(lwd)),t=M.next();!t.done;t=M.next()){var c=Number(t.value);t=lwd[c];for(var Y=g.S(n),G=Y.next();!G.done;G=Y.next())if(G=G.value,G.width>=c){c=U4f(G.url);g.oJ(c)&&(q[t]=c);break}}(n=n.pop())&&n.width>=1280&&(n=U4f(n.url),g.oJ(n)&&(q["maxresdefault.jpg"]=n));return q}; U4f=function(n){return n.startsWith("//")?"https:"+n:n}; r1=function(n){return n&&n.baseUrl||""}; xl=function(n){n=g.pr(n);for(var q=g.S(Object.keys(n)),M=q.next();!M.done;M=q.next()){M=M.value;var t=n[M];n[M]=Array.isArray(t)?t[0]:t}return n}; ulj=function(n,q){n.botguardData=q.playerAttestationRenderer.botguardData;q=q.playerAttestationRenderer.challenge;q!=null&&(n.qH=q)}; AOu=function(n,q){q=g.S(q);for(var M=q.next();!M.done;M=q.next()){M=M.value;var t=M.interstitials.map(function(G){var k=g.R(G,Bqd);if(k)return{is_yto_interstitial:!0,raw_player_response:k};if(G=g.R(G,D4_))return Object.assign({is_yto_interstitial:!0},xd(G))}); t=g.S(t);for(var c=t.next();!c.done;c=t.next())switch(c=c.value,M.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":n.interstitials=n.interstitials.concat({time:0,playerVars:c,X5:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":n.interstitials=n.interstitials.concat({time:0x7ffffffffffff,playerVars:c,X5:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var Y=Number(M.podConfig.timeToInsertAtMillis);n.interstitials=n.interstitials.concat({time:Y,playerVars:c, X5:Y===0?5:7})}}}; m4d=function(n,q){if(q=q.find(function(M){return!(!M||!M.tooltipRenderer)}))n.tooltipRenderer=q.tooltipRenderer}; $4R=function(n,q){q.subscribeCommand&&(n.subscribeCommand=q.subscribeCommand);q.unsubscribeCommand&&(n.unsubscribeCommand=q.unsubscribeCommand);q.addToWatchLaterCommand&&(n.addToWatchLaterCommand=q.addToWatchLaterCommand);q.removeFromWatchLaterCommand&&(n.removeFromWatchLaterCommand=q.removeFromWatchLaterCommand);q.getSharePanelCommand&&(n.getSharePanelCommand=q.getSharePanelCommand)}; F1J=function(n,q){q!=null?(n.H$=q,n.wZ=!0):(n.H$="",n.wZ=!1)}; Qb=function(n,q){this.type=n||"";this.id=q||""}; pl=function(n){return new Qb(n.substring(0,2),n.substring(2))}; nt=function(n,q){this.pm=n;this.author="";this.G2=null;this.playlistLength=0;this.X=this.sessionData=null;this.B={};this.title="";if(q){this.author=q.author||q.playlist_author||"";this.title=q.playlist_title||"";if(n=q.session_data)this.sessionData=Cr(n,"&");var M;this.X=((M=q.thumbnail_ids)==null?void 0:M.split(",")[0])||null;this.B=Vb(q,"playlist_");this.videoId=q.video_id||void 0;if(M=q.list)switch(q.listType){case "user_uploads":this.playlistId=(new Qb("UU","PLAYER_"+M)).toString();break;default:if(n= q.playlist_length)this.playlistLength=Number(n)||0;this.playlistId=pl(M).toString();if(q=q.video)this.videoId=(q[0]||null).video_id||void 0}else q.playlist&&(this.playlistLength=q.playlist.toString().split(",").length)}}; qS=function(n,q){this.pm=n;this.wR=this.author="";this.G2=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Sn=this.lengthText="";this.sessionData=null;this.B={};this.title="";if(q){this.ariaLabel=q.aria_label||void 0;this.author=q.author||"";this.wR=q.wR||"";if(n=q.endscreen_autoplay_session_data)this.G2=Cr(n,"&");this.Ky=q.Ky;this.isLivePlayback=q.live_playback==="1";this.isUpcoming=!!q.isUpcoming;if(n=q.length_seconds)this.lengthSeconds=typeof n==="string"?Number(n):n;this.lengthText= q.lengthText||"";this.Sn=q.Sn||"";this.publishedTimeText=q.publishedTimeText||void 0;if(n=q.session_data)this.sessionData=Cr(n,"&");this.shortViewCount=q.short_view_count_text||void 0;this.B=Vb(q);this.title=q.title||"";this.videoId=q.docid||q.video_id||q.videoId||q.id||void 0;this.watchUrl=q.watchUrl||void 0}}; Zha=function(n){var q,M,t=(q=n.getWatchNextResponse())==null?void 0:(M=q.contents)==null?void 0:M.twoColumnWatchNextResults,c,Y,G,k,b;n=(c=n.getWatchNextResponse())==null?void 0:(Y=c.playerOverlays)==null?void 0:(G=Y.playerOverlayRenderer)==null?void 0:(k=G.endScreen)==null?void 0:(b=k.watchNextEndScreenRenderer)==null?void 0:b.results;if(!n){var d,N;n=t==null?void 0:(d=t.endScreen)==null?void 0:(N=d.endScreen)==null?void 0:N.results}return n}; g.iB=function(n){var q,M,t;n=g.R((q=n.getWatchNextResponse())==null?void 0:(M=q.playerOverlays)==null?void 0:(t=M.playerOverlayRenderer)==null?void 0:t.decoratedPlayerBarRenderer,MS);return g.R(n==null?void 0:n.playerBar,awC)}; RoC=function(n){this.X=n.playback_progress_0s_url;this.Z=n.playback_progress_2s_url;this.W=n.playback_progress_10s_url}; omu=function(){if(tK===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(q){}a:{try{var n=!!self.localStorage}catch(q){n=!1}if(n&&(n=g.UX(g.RE()+"::yt-player"))){tK=new mf(n);break a}tK=void 0}}return tK}; g.cO=function(){var n=omu();if(!n)return{};try{var q=n.get("yt-player-lv");return JSON.parse(q||"{}")}catch(M){return{}}}; g.wIs=function(n){var q=omu();q&&(n=JSON.stringify(n),q.set("yt-player-lv",n))}; g.Yp=function(n){return g.cO()[n]||0}; g.GT=function(n,q){var M=g.cO();q!==M[n]&&(q!==0?M[n]=q:delete M[n],g.wIs(M))}; g.Kt=function(n){return g.u(function(q){return q.return(g.F0(zok(),n))})}; bB=function(n,q,M,t,c,Y,G,k){var b,d,N,O,e,E;return g.u(function(h){switch(h.X){case 1:return b=g.Yp(n),b===4?h.return(4):g.U(h,g.VW(),2);case 2:d=h.W;if(!d)throw g.El("wiac");if(!k||G===void 0){h.Fy(3);break}return g.U(h,JOJ(k,G),4);case 4:G=h.W;case 3:return N=M.lastModified||"0",g.U(h,g.Kt(d),5);case 5:return O=h.W,g.Ij(h,6),kp++,g.U(h,g.LM(O,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",fd:!0},function(I){if(Y!==void 0&&G!==void 0){var L=""+n+"|"+q.id+"|"+N+"|"+String(Y).padStart(10, "0");L=g.P6(I.objectStore("media"),G,L)}else L=g.W6.resolve(void 0);var T=Vbm(n,q.Cu()),v=Vbm(n,!q.Cu()),B={fmts:C2s(t),format:M||{}};T=g.P6(I.objectStore("index"),B,T);var m=t.downloadedEndTime===-1;B=m?I.objectStore("index").get(v):g.W6.resolve(void 0);var a={fmts:"music",format:{}};I=m&&c&&!q.Cu()?g.P6(I.objectStore("index"),a,v):g.W6.resolve(void 0);return g.W6.all([I,B,L,T]).then(function(x){x=g.S(x);x.next();x=x.next().value;kp--;var V=g.Yp(n);if(V!==4&&m&&c||x!==void 0&&g.rOm(x.fmts))V=1,g.GT(n, V);return V})}),8); case 8:return h.return(h.W);case 6:e=g.TU(h);kp--;E=g.Yp(n);if(E===4)return h.return(E);g.GT(n,4);throw e;}})}; g.x41=function(n){var q,M;return g.u(function(t){if(t.X==1)return g.U(t,g.VW(),2);if(t.X!=3){q=t.W;if(!q)throw g.El("ri");return g.U(t,g.Kt(q),3)}M=t.W;return t.return(g.LM(M,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(c){var Y=IDBKeyRange.bound(n+"|",n+"~");return c.objectStore("index").getAll(Y).then(function(G){return G.map(function(k){return k?k.format:{}})})}))})}; pIs=function(n,q,M,t,c){var Y,G,k;return g.u(function(b){if(b.X==1)return g.U(b,g.VW(),2);if(b.X!=3){Y=b.W;if(!Y)throw g.El("rc");return g.U(b,g.Kt(Y),3)}G=b.W;k=g.LM(G,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(d){var N=""+n+"|"+q+"|"+M+"|"+String(t).padStart(10,"0");return d.objectStore("media").get(N)}); return c?b.return(k.then(function(d){if(d===void 0)throw Error("No data from indexDb");return QFJ(c,d)}).catch(function(d){throw new g.aE("Error while reading chunk: "+d.name+", "+d.message); })):b.return(k)})}; g.rOm=function(n){return n?n==="music"?!0:n.includes("dlt=-1")||!n.includes("dlt="):!1}; Vbm=function(n,q){return""+n+"|"+(q?"v":"a")}; C2s=function(n){var q={};return rS((q.dlt=n.downloadedEndTime.toString(),q.mket=n.maxKnownEndTime.toString(),q.avbr=n.averageByteRate.toString(),q))}; qDC=function(n){var q={},M={};n=g.S(n);for(var t=n.next();!t.done;t=n.next()){var c=t.value,Y=c.split("|");c.match(g.nWs)?(t=Number(Y.pop()),isNaN(t)?M[c]="?":(Y=Y.join("|"),(c=q[Y])?(Y=c[c.length-1],t===Y.end+1?Y.end=t:c.push({start:t,end:t})):q[Y]=[{start:t,end:t}])):M[c]="?"}n=g.S(Object.keys(q));for(t=n.next();!t.done;t=n.next())t=t.value,M[t]=q[t].map(function(G){return G.start+"-"+G.end}).join(","); return M}; d8=function(n){g.MB.call(this);this.X=null;this.Z=new DH;this.X=null;this.C=new Set;this.crossOrigin=n||""}; MBJ=function(n,q,M){for(M=NS(n,M);M>=0;){var t=n.levels[M];if(t.isLoaded(Oh(t,q))&&(t=g.g8(t,q)))return t;M--}return g.g8(n.levels[0],q)}; tBd=function(n,q,M){M=NS(n,M);for(var t,c;M>=0;M--)if(t=n.levels[M],c=Oh(t,q),!t.isLoaded(c)){t=n;var Y=M,G=Y+"-"+c;t.C.has(G)||(t.C.add(G),t.Z.enqueue(Y,{Bf:Y,OP:c}))}iwC(n)}; iwC=function(n){if(!n.X&&!n.Z.isEmpty()){var q=n.Z.remove();n.X=cpa(n,q)}}; cpa=function(n,q){var M=document.createElement("img");n.crossOrigin&&(M.crossOrigin=n.crossOrigin);M.src=n.levels[q.Bf].Ag(q.OP);M.onload=function(){var t=q.Bf,c=q.OP;n.X!==null&&(n.X.onload=null,n.X=null);t=n.levels[t];t.loaded.add(c);iwC(n);var Y=t.columns*t.rows;c*=Y;t=Math.min(c+Y-1,t.Gc()-1);c=[c,t];n.publish("l",c[0],c[1])}; return M}; g.em=function(n,q,M,t){this.level=n;this.J=q;this.loaded=new Set;this.level=n;this.J=q;n=M.split("#");this.width=Math.floor(Number(n[0]));this.height=Math.floor(Number(n[1]));this.frameCount=Math.floor(Number(n[2]));this.columns=Math.floor(Number(n[3]));this.rows=Math.floor(Number(n[4]));this.X=Math.floor(Number(n[5]));this.Z=n[6];this.signature=n[7];this.videoLength=t}; Oh=function(n,q){return Math.floor(q/(n.columns*n.rows))}; g.g8=function(n,q){q>=n.QO()&&n.wq();var M=Oh(n,q),t=n.columns*n.rows,c=q%t;q=c%n.columns;c=Math.floor(c/n.columns);var Y=n.wq()+1-t*M;if(Y1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; YDd=function(n,q,M){return(n=n.levels[q])?n.oY(M):-1}; NS=function(n,q){var M=n.J.get(q);if(M)return M;M=n.levels.length;for(var t=0;t=q)return n.J.set(q,t),t;n.J.set(q,M-1);return M-1}; hK=function(n,q,M,t){M=M.split("#");M=[M[1],M[2],0,M[3],M[4],-1,M[0],""].join("#");g.em.call(this,n,q,M,0);this.W=null;this.S=t?2:0}; WO=function(n,q,M,t){Eh.call(this,n,0,void 0,q,!(t===void 0||!t));for(n=0;n=0?gd.countDownSecsForFullscreen*1E3:-1);n.D("web_autonav_color_transition")&&gd.watchToWatchTransitionRenderer&&(n.watchToWatchTransitionRenderer=g.R(gd.watchToWatchTransitionRenderer, XUC))}var y0=Zha(n);if(y0){var Nv,Kd,sI,XX=y0==null?void 0:(Nv=y0[0])==null?void 0:(Kd=Nv.endScreenVideoRenderer)==null?void 0:(sI=Kd.navigationEndpoint)==null?void 0:sI.clickTrackingParams,m6=g.Lt(n);XX&&m6&&(m6.sessionData={itct:XX})}n.nm.currentVideoThumbnail&&(n.B=Cl(n.nm.currentVideoThumbnail));var ZP,ax,Rx,ig,$F,Sy=(ZP=n.nm)==null?void 0:(ax=ZP.contents)==null?void 0:(Rx=ax.twoColumnWatchNextResults)==null?void 0:(ig=Rx.results)==null?void 0:($F=ig.results)==null?void 0:$F.contents;if(Sy&&Sy[1]){var Fb, tb,ox,HT,XP=(Fb=Sy[1].videoSecondaryInfoRenderer)==null?void 0:(tb=Fb.owner)==null?void 0:(ox=tb.videoOwnerRenderer)==null?void 0:(HT=ox.thumbnail)==null?void 0:HT.thumbnails;XP&&XP.length&&(n.profilePicture=XP[XP.length-1].url)}var m7=tJ(q),c5,jN=(c5=n.getWatchNextResponse())==null?void 0:c5.onResponseReceivedEndpoints;if(jN)for(var Y4=g.S(jN),Zn=Y4.next();!Zn.done;Zn=Y4.next()){var SN=Zn.value;g.R(SN,PO)&&(n.V9=g.R(SN,PO));var c9=g.R(SN,j2d),MG=void 0;if((MG=c9)==null?0:MG.entityKeys)n.Bj=c9.entityKeys|| [],c9.visibleOnLoadKeys&&(n.visibleOnLoadKeys=c9.visibleOnLoadKeys)}if(n.D("web_key_moments_markers")){var en=g.vO.getState().entities,K1=g.rb("visibility_override","markersVisibilityOverrideEntity");var $d=QN(en,"markersVisibilityOverrideEntity",K1);n.Yl=($d==null?void 0:$d.videoId)===(n.videoId||m7)&&($d==null?0:$d.visibilityOverrideMarkersKey)?$d.visibilityOverrideMarkersKey:n.visibleOnLoadKeys;n.visibleOnLoadKeys=[].concat(g.EJ(n.Yl))}}}; ft=function(n){var q;return((q=n.autoplaySwitchButtonRenderer)==null?void 0:q.enabled)!==void 0}; TT=function(n){return!!(n.Z&&n.Z.videoInfos&&n.Z.videoInfos.length)}; g.AK=function(n){var q=n.N;n.D("html5_gapless_unlimit_format_selection")&&lB(n)&&(q=!1);var M=!!n.X&&n.X.r7,t=n.pm,c=n.oP(),Y=Uh(n),G=n.V1,k=q,b=n.isOtf();q=n.QJ();var d=n.Ux,N=n.getUserAudio51Preference(),O=uB(n),e=BO(n),E=new AAC(t);if(t.Aq()||t.D("html5_logging_format_selection"))E.W=!0;E.AE=Y;E.V1=G&&t.B;E.IL=N;g.$e("windows nt 5.1")&&!g.O8&&(E.W$=!0);if(Y=c)Y=g.T3(t)?r0s(t):!1;Y&&(E.xl=!0);k&&(E.W$=!0,E.Kn=!0);b&&!t.D("html5_otf_prefer_vp9")&&(E.W$=!0);t.playerStyle==="picasaweb"&&(b&&(E.W$= !1),E.RL=!1);d&&(E.W$=!0);wX(t.S,zF.CHANNELS)&&(t.D("html5_enable_ac3")&&(E.J=!0),t.D("html5_enable_eac3")&&(E.S=!0),t.D("html5_enable_ac3_gapless")&&(E.nm=!0));t.D("html5_block_8k_hfr")&&(E.Yl=!0);E.C=g.ic(t.experiments,"html5_max_selectable_quality_ordinal");E.N=g.ic(t.experiments,"html5_min_selectable_quality_ordinal");qU&&(E.JQ=480);if(M||c)E.RL=!1;E.eX=!1;E.disableAv1=O;M=t4(t,E.X,void 0,E.disableAv1);M>0&&M<2160&&(W3()||t.D("html5_format_hybridization"))&&(E.X.supportsChangeType=+W3(),E.zr= M);M>=2160&&(E.jX=!0);nod()&&!t.D("disable_av1_setting")&&(E.X.serveVp9OverAv1IfHigherRes=0,E.TX=!1);E.QJ=q;E.rJ=g.oa||xe()&&!q?!1:!0;E.B=t.D("html5_format_hybridization");E.uG=t.D("html5_disable_encrypted_vp9_live_non_2k_4k");E.Fh=e;D6(n)&&(E.o8=n.D("html5_prefer_language_over_codec"));aN()&&n.playerResponse&&n.playerResponse.playerConfig&&n.playerResponse.playerConfig.webPlayerConfig&&n.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(E.J=!0,E.S=!0);n.N&&n.isAd()&&(n.Jz&& (E.U=n.Jz),n.cU&&(E.Z=n.cU));E.SX=n.isLivePlayback&&n.G8()&&n.pm.D("html5_drm_live_audio_51");E.Wg=n.iA;E.Yi=!D6(n);return n.uI=E}; uB=function(n){return n.pm.D("html5_disable_av1")?!0:!1}; SDC=function(n){H_("drm_pb_s",void 0,n.U);n.AE||n.X&&F4(n.X);var q={};n.X&&(q=gom(n.Nl,g.AK(n),n.pm.S,n.X,function(M){return n.publish("ctmp","fmtflt",M)},!0,new Set)); q=new E8(q,n.pm,n.IR,n.useCobaltWidevine?aN()?mO(n):!1:!1,function(M,t){n.Xy(M,t)}); g.Z(n,q);n.J4=!1;n.loading=!0;ZWC(q,function(M){H_("drm_pb_f",void 0,n.U);for(var t=g.S(M),c=t.next();!c.done;c=t.next())switch(c=c.value,c.flavor){case "fairplay":c.AE=n.AE;c.Hj=n.Hj;c.ys=n.ys;break;case "widevine":c.S_=n.S_}n.gp=M;if(n.gp.length>0&&(n.S=n.gp[0],n.pm.Aq())){M={};t=g.S(Object.entries(n.S.X));for(c=t.next();!c.done;c=t.next()){var Y=g.S(c.value);c=Y.next().value;Y=Y.next().value;var G="unk";(c=c.match(/(.*)codecs="(.*)"/))&&(G=c[2]);M[G]=Y}n.Xy("drmProbe",M)}n.SV()})}; IY_=function(n,q){if(q.length===0||$p(n))return null;n.pm.S.Z&&(q0=!0);var M=n.f8;var t=n.lengthSeconds,c=n.isLivePlayback,Y=n.C8,G=n.pm,k=X3C(q);if(c||Y){G=G.experiments;t=new Fu("",G,!0);t.W=!Y;t.r7=!0;t.isManifestless=!0;t.isLive=!Y;t.C8=Y;q=g.S(q);for(c=q.next();!c.done;c=q.next()){var b=c.value;c=RX(b,M);k=nS(b);k=wm(k.bA||b.url||"",k.DQ,k.s);var d=k.get("id");d&&d.includes("%7E")&&(t.xl=!0);var N=void 0;d=(N=G)==null?void 0:N.Hb("html5_max_known_end_time_rebase");N=Number(b.targetDurationSec|| 5);b=Number(b.maxDvrDurationSec||14400);var O=Number(k.get("mindsq")||k.get("min_sq")||"0"),e=Number(k.get("maxdsq")||k.get("max_sq")||"0")||Infinity;t.qV=t.qV||O;t.SL=t.SL||e;var E=!iN(c.mimeType);k&&Ay(t,new sb(k,c,{Be:N,qD:E,DM:b,qV:O,SL:e,XA:300,C8:Y,vc:d}))}M=t}else if(k==="FORMAT_STREAM_TYPE_OTF"){t=t===void 0?0:t;Y=new Fu("",G.experiments,!1);Y.duration=t||0;G=g.S(q);for(t=G.next();!t.done;t=G.next())t=t.value,q=RX(t,M,Y.duration),c=nS(t),(c=wm(c.bA||t.url||"",c.DQ,c.s))&&(q.streamType==="FORMAT_STREAM_TYPE_OTF"? Ay(Y,new Xu(c,q,"sq/0")):Ay(Y,new uh(c,q,q5(t.initRange),q5(t.indexRange))));Y.isOtf=!0;M=Y}else{t=t===void 0?0:t;Y=new Fu("",G.experiments,!1);Y.duration=t||0;G=g.S(q);for(t=G.next();!t.done;t=G.next())k=t.value,t=RX(k,M,Y.duration),q=q5(k.initRange),c=q5(k.indexRange),d=nS(k),(k=wm(d.bA||k.url||"",d.DQ,d.s))&&Ay(Y,new uh(k,t,q,c));M=Y}Y=n.isLivePlayback&&!n.C8&&!n.RL&&!n.isPremiere;n.D("html5_live_head_playable")&&(!F1(n)&&Y&&n.Xy("missingLiveHeadPlayable",{}),n.pm.xl==="yt"&&(M.AE=!0));return M}; $p=function(n){return aN()?!mO(n):oN()?!(!n.AE||!n.D("html5_enable_safari_fairplay")&&Hr()):!1}; mO=function(n){return n.D("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Ii=function(n,q){q=g.S(q);for(var M=q.next();!M.done;M=q.next())if(M=M.value,M.cueRangeSetIdentifier){var t=void 0;n.Ok.set(M.cueRangeSetIdentifier,(t=M.playerCueRanges)!=null?t:[])}}; Z6=function(n){return!(!n.X||!n.X.isManifestless)}; ai=function(n){return n.Kd?n.isLowLatencyLiveStream&&n.X!=null&&Cu(n.X)>=5:n.isLowLatencyLiveStream&&n.X!=void 0&&Cu(n.X)>=5}; fYm=function(n){return aN()&&mO(n)?!1:$p(n)&&(g.e$(n.pm)?!n.isLivePlayback:n.hlsvp)||!Hr()||n.Sh?!0:!1}; LVm=function(n){n.loading=!0;n.tB=!1;if(HwU(n))g.x41(n.videoId).then(function(t){var c;if((c=n.playerResponse)!=null&&c.streamingData){c=[];t=g.S(t);for(var Y=t.next();!Y.done;Y=t.next())Y=Object.assign({},Y.value),Y.signatureCipher="",c.push(Y);c.length<2&&n.Xy("offmlf",{len:c.length});c=IY_(n,c);Uh(n)&&uDf(c,!1);Ri(n,c);n.Xy("dlr",{})}else n.Xy("offsdm",{cotn:n.mE?n.mE.cotn:"0",cpn:n.clientPlaybackNonce})}).then(function(){n.SV()}); else{RJ(n.yS)||g.PJ(new g.aE("DASH MPD Origin invalid: ",n.yS));var q=n.yS,M=g.ic(n.pm.experiments,"dash_manifest_version")||4;q=g.hC(q,{mpd_version:M});n.isLowLatencyLiveStream&&n.latencyClass!=="NORMAL"||(q=g.hC(q,{pacing:0}));vGk(q,n.pm.experiments,n.isLivePlayback).then(function(t){n.qm()||(Ri(n,t,!0),H_("mrc",void 0,n.U),n.SV())},function(t){n.qm()||(n.loading=!1,n.publish("dataloaderror",new g.eV("manifest.net.retryexhausted",{backend:"manifest", rc:t.status},1)))}); H_("mrs",void 0,n.U)}}; Pkj=function(n){var q;return!((q=n.pm.getWebPlayerContextConfig())==null||!q.enableProximaLowLatency)}; oi=function(n){if(!n.isProximaLatencyEligible)return 0;var q=WR();return Pkj(n)?2:q===1?1:n.D("html5_enable_proxima")?2:0}; Ri=function(n,q,M){M=M===void 0?!1:M;n.Go=void 0;n.X=q;g.Z(n,q);q.qV=n.qV;q.SL=n.SL;q.jX=n.jX;q.Fh=n.Fh;q.O9=n.O9;n.yH&&(q.U=new wV(n.yH));(n.oP()||g.w8(n))&&n.wJ.push("webgl");n.X.isLive||(n.isLivePlayback=!1);var t=q.sourceUrl.split("/");if(n.Kd?t.indexOf("manifest_duration")!==-1:t.indexOf("manifest_duration")!=-1)n.To=Number(t[t.indexOf("manifest_duration")+1]);if(q.W||q.isManifestless)q.subscribe("clienttemp",n.Xy,n),M?q.subscribe("refresh",n.cS,n):q.subscribe("cuepointsadded",n.hK,n);F4(q)? n.J4=!0:Wr=void 0;n.RL&&(q.J=n.RL,q.isLive=!0,n.isLivePlayback=!0);q.isPremiere=n.isPremiere;q.isLiveHeadPlayable=n.isLiveHeadPlayable}; vWs=function(n,q){var M=q||fYm(n)||n.isExternallyHostedPodcast;if(!n.X||M)return n.Xy("skipDash",{dm:!!n.X,air:q,dd:n.Sh,mss:Hr(),"3pp":n.isExternallyHostedPodcast}),Lp();Uh(n)&&uDf(n.X,n.isLivePlayback);return Pk().then(function(){return EoR(n.Nl,g.AK(n),n.pm.S,n.X,n.S,function(t){return n.publish("ctmp","fmtflt",t)},n.Mr,D6(n)&&n.D("html5_enable_server_format_filter")).then(function(t){n.CA(t); n.Nl.X=null;/^av/.test(n.clientPlaybackNonce)&&n.uI&&n.Xy("av1",n.uI.X)})})}; lYm=function(n,q){if(q&&n.hlsvp)return Lp();if(n.hlsFormats){q=zT(n.hlsFormats);var M;if(((M=n.uI)==null?0:M.W)&&q){M=[];for(var t=g.S(q),c=t.next();!c.done;c=t.next())M.push(c.value.itag);n.Xy("hlsfmt",{itags:M.join(".")})}n.Rk=d4m(n.pm,q);n.Rk&&Tt_(n,n.Rk);M=n.clientPlaybackNonce;var Y,G,k,b;return Emf(n.pm,n.isAd(),q,(b=(Y=n.playerResponse)==null?void 0:(G=Y.captions)==null?void 0:(k=G.playerCaptionsRenderer)==null?void 0:k.baseUrl)!=null?b:null,n.JQ,M,function(d){return n.publish("ctmp","hlsflt", d)}).then(function(d){for(var N=0,O=[],e=g.S(d),E=e.next();!E.done;E=e.next()){E=E.value; var h=void 0;O.push((h=E.getInfo())==null?void 0:h.itag);var I=h=void 0;((h=E.getInfo())==null?void 0:(I=h.audio)==null?void 0:I.numChannels)>N&&(N=E.getInfo().audio.numChannels)}N>2&&n.Xy("hlschl",{mn:N});var L;((L=n.uI)==null?0:L.W)&&n.Xy("hlsfmtaf",{itags:O.join(".")});var T;if(n.D("html5_enable_vp9_fairplay")&&((T=n.S)==null?0:dh(T)))for(n.Xy("drm",{sbdlfbk:1}),N=g.S(n.gp),O=N.next();!O.done;O=N.next())if(O=O.value,bd(O)){n.S=O;break}JK(n,d)})}return Lp()}; U_f=function(n){if(n.isExternallyHostedPodcast&&n.VA){var q=zT(n.VA);if(!q[0])return Lp();n.Xks=q[0];return yOd(n.pm,q[0]).then(function(M){JK(n,M)})}return n.Fw&&n.pI?W1_(n.pm,n.isAd(),n.Fw).then(function(M){JK(n,M)}):Lp()}; BtR=function(n){if(n.isExternallyHostedPodcast)return Lp();var q=zT(n.VA,n.fG);if(n.hlsvp){var M=GPu(n.hlsvp,n.clientPlaybackNonce,n.JQ);q.push(M)}return hoU(n.pm,n.isAd(),q,uNU(n)).then(function(t){JK(n,t)})}; JK=function(n,q){n.Kn=q;n.CA(new BR(g.Wn(n.Kn,function(M){return M.getInfo()})))}; uNU=function(n){var q={cpn:n.clientPlaybackNonce,c:n.pm.X.c,cver:n.pm.X.cver};n.bJ&&(q.ptk=n.bJ,q.oid=n.B3,q.ptchn=n.Up,q.pltype=n.bN,n.Ko&&(q.m=n.Ko));return q}; g.V3=function(n){return $p(n)&&n.AE?(n={},n.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",n):n.W&&n.W.f8||null}; D_J=function(n){var q=Ct(n);return q&&q.text?g.b8(q.text):n.paidContentOverlayText}; Ap1=function(n){var q=Ct(n);return q&&q.durationMs?Bg(q.durationMs):n.paidContentOverlayDurationMs}; Ct=function(n){var q,M,t;return n.playerResponse&&n.playerResponse.paidContentOverlay&&n.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.R((q=n.nm)==null?void 0:(M=q.playerOverlays)==null?void 0:(t=M.playerOverlayRenderer)==null?void 0:t.playerDisclosure,m__)||null}; r8=function(n){var q="";if(n.qJ)return n.qJ;n.isLivePlayback&&(q=n.allowLiveDvr?"dvr":n.isPremiere?"lp":n.RL?"window":"live");n.C8&&(q="post");return q}; g.xp=function(n,q){return typeof n.keywords[q]!=="string"?null:n.keywords[q]}; $_u=function(n){return!!n.PZ||!!n.Zo||!!n.vj||!!n.wE||n.yy}; g.Q3=function(n){return!!(n.yS||n.VA||n.Fw||n.hlsvp||n.Ur())}; X1=function(n){if(n.D("html5_onesie")&&n.errorCode)return!1;var q=g.SS(n.wJ,"ypc");n.ypcPreview&&(q=!1);return n.ET()&&!n.loading&&(g.Q3(n)||g.SS(n.wJ,"heartbeat")||q)}; zT=function(n,q){n=Q8(n);var M={};if(q){q=g.S(q.split(","));for(var t=q.next();!t.done;t=q.next())(t=t.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(M[t[1]]={width:t[2],height:t[3]})}q=g.S(n);for(t=q.next();!t.done;t=q.next()){t=t.value;var c=M[t.itag];c&&(t.width=c.width,t.height=c.height)}return n}; eWJ=function(n,q){n.showShareButton=!!q;var M,t,c=((M=g.R(q,g.N_))==null?void 0:M.navigationEndpoint)||((t=g.R(q,g.N_))==null?void 0:t.command);c&&(n.WO=!!g.R(c,FVk))}; KV1=function(n,q){var M=q.raw_embedded_player_response;if(!M){var t=q.embedded_player_response;t&&(M=JSON.parse(t))}M&&(n.Pk=M);if(n.Pk){n.embeddedPlayerConfig=n.Pk.embeddedPlayerConfig||null;if(M=n.Pk.videoFlags)M.playableInEmbed&&(n.allowEmbed=!0),M.isPrivate&&(n.isPrivate=!0),M.userDisplayName&&(q.user_display_name=M.userDisplayName),M.userDisplayImage&&(q.user_display_image=M.userDisplayImage);if(M=n.Pk.embedPreview){M=M.thumbnailPreviewRenderer;F1J(n,M.controlBgHtml);if(t=M.defaultThumbnail)n.B= Cl(t);n.D("embeds_web_enable_search_button")&&M.searchButton&&(t=g.R(M.searchButton,g.N_))&&(n.MLs=g.R(t.navigationEndpoint,g.pt));(t=g.R(M==null?void 0:M.videoDetails,ZwU))&&ypU(n,q,t);t=g.R(M==null?void 0:M.videoDetails,aYf);n.L9=!!M.addToWatchLaterButton;eWJ(n,M.shareButton);if(t==null?0:t.musicVideoType)n.musicVideoType=t.musicVideoType;var c,Y,G,k,b;if(t=g.R((c=n.getEmbeddedPlayerResponse())==null?void 0:(Y=c.embedPreview)==null?void 0:(G=Y.thumbnailPreviewRenderer)==null?void 0:(k=G.playButton)== null?void 0:(b=k.buttonRenderer)==null?void 0:b.navigationEndpoint,g.HO))Iwf(n,t),n.videoId=t.videoId||n.videoId;M.videoDurationSeconds&&(n.lengthSeconds=Bg(M.videoDurationSeconds));M.webPlayerActionsPorting&&$4R(n,M.webPlayerActionsPorting);if(c=g.R(M==null?void 0:M.playlist,RWd)){n.J_=!0;Y=[];G=Number(c.currentIndex);if(c.contents)for(k=0,b=c.contents.length;k0:n.Ku?!1:n.pm.i7||n.pm.JB||!g.t8(n.pm)?!0:!1:(n.Ku?0:n.i7)&&g.t8(n.pm)?!0:!1;n.D("html5_log_detailpage_autoplay")&&kt(n)==="detailpage"&&n.Xy("autoplay_info",{autoplay:n.xr,autonav:n.isAutonav,wasDompaused:n.Ku,result:q});return q}; g.O9=function(n){return n.oauthToken||n.pm.g4}; pU1=function(n){if(n.D("html5_stateful_audio_normalization")){var q=1,M=g.ic(n.pm.experiments,"html5_default_ad_gain");M&&n.isAd()&&(q=M);var t,c;M=(c=(t=n.J)==null?void 0:t.audio.J)!=null?c:n.z3;if(M==null||isNaN(M))n=Q2_(n);else{t=(0,g.jt)();n.Iz=2;c=t-n.pm.Rk<=n.maxStatefulTimeThresholdSec*1E3;n.applyStatefulNormalization&&c?n.Iz=4:c||(n.pm.u0=Infinity,n.pm.Rk=NaN);c=(n.Iz===4?g.aR(n.pm.u0,n.minimumLoudnessTargetLkfs,n.loudnessTargetLkfs):n.loudnessTargetLkfs)-M;if(n.Iz!==4){var Y,G,k,b,d=((Y= n.playerResponse)==null?void 0:(G=Y.playerConfig)==null?void 0:(k=G.audioConfig)==null?void 0:(b=k.loudnessNormalizationConfig)==null?void 0:b.statelessLoudnessAdjustmentGain)||0;c+=d}c=Math.min(c,0);n.preserveStatefulLoudnessTarget&&(n.pm.u0=M+c,n.pm.Rk=t);n=Math.min(1,Math.pow(10,c/20))||q}}else n=Q2_(n);return n}; Q2_=function(n){var q=1,M=g.ic(n.pm.experiments,"html5_default_ad_gain");M&&n.isAd()&&(q=M);if(n.H3){var t,c;M=((t=n.J)==null?void 0:t.audio.Z)!=null?(c=n.J)==null?void 0:c.audio.Z:n.NV}else{var Y;M=((Y=n.J)==null?void 0:Y.audio.Z)||n.NV}isNaN(M)||(n.Iz=1);return Math.min(1,Math.pow(10,-M/20))||q}; Uh=function(n){var q=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],M=s8(n.pm)==="TVHTML5_SIMPLY"&&n.pm.X.ctheme==="MUSIC";!n.h1&&(g.BD(n.pm)||g.Ll(n.pm)||M)&&(q.includes(n.musicVideoType)||n.isExternallyHostedPodcast)&&(n.h1=!0);if(q=g.Z_())q=/Starboard\/([0-9]+)/.exec(g.FV()),q=(q?parseInt(q[1],10):NaN)<10;M=n.pm;M=(s8(M)==="TVHTML5_CAST"||s8(M)==="TVHTML5"&&(M.X.cver.startsWith("6.20130725")||M.X.cver.startsWith("6.20130726")))&&n.pm.X.ctheme==="MUSIC";var t;if(t=!n.h1)M||(M= n.pm,M=s8(M)==="TVHTML5"&&M.X.cver.startsWith("7")),t=M;t&&!q&&(q=n.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",M=(n.D("cast_prefer_audio_only_for_atv_and_uploads")||n.D("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&n.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",q||M||n.isExternallyHostedPodcast)&&(n.h1=!0);return n.pm.deviceIsAudioOnly||n.h1&&n.pm.B}; BO=function(n){var q,M,t;return((q=n.playerResponse)==null?void 0:(M=q.playerConfig)==null?void 0:(t=M.compositeVideoConfig)==null?void 0:t.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; nhk=function(n){var q,M,t,c=(q=n.playerResponse)==null?void 0:(M=q.playerConfig)==null?void 0:(t=M.compositeVideoConfig)==null?void 0:t.sourceConfigs,Y,G,k;n=(Y=n.playerResponse)==null?void 0:(G=Y.playerConfig)==null?void 0:(k=G.compositeVideoConfig)==null?void 0:k.defaultActiveSourceVideoId;if(!c||!n)return"";c=g.S(c);for(Y=c.next();!Y.done;Y=c.next())if(Y=Y.value,Y.videoId===n&&Y.audioTracks)for(Y=g.S(Y.audioTracks),G=Y.next();!G.done;G=Y.next())if(G=G.value,G.isDefaultForSource)return G.id||""; return""}; g.qEf=function(n){return n.r7()&&D6(n)}; gZ=function(n){var q,M,t;return!!((q=n.playerResponse)==null?0:(M=q.playerConfig)==null?0:(t=M.mediaCommonConfig)==null?0:t.splitScreenEligible)}; E9=function(n){var q;return!((q=n.playerResponse)==null||!q.compositePlayabilityStatus)}; MGC=function(n){return isNaN(n)?0:Math.max((Date.now()-n)/1E3-30,0)}; hv=function(n){return!(!n.s7||!n.pm.B)&&n.Ur()}; Wo=function(n){return n.hj&&n.enableServerStitchedDai}; iga=function(n){return n.He&&!n.yH}; D6=function(n){var q=n.D("html5_enable_sabr_on_drive")&&n.pm.xl==="gd";if(n.ll)return n.He&&n.Xy("fds",{fds:!0},!0),!1;if(n.pm.xl!=="yt"&&!q)return n.He&&n.Xy("dsvn",{ns:n.pm.xl},!0),!1;if(n.cotn||!n.X||n.X.isOtf&&!n.D("html5_enable_sabr_otf_in_client")||n.Z&&!n.Z.X||n.uf&&!n.D("html5_enable_sabr_csdai"))return!1;if(n.D("html5_use_sabr_requests_for_debugging"))return!0;n.He&&n.Xy("esfw",{usbc:n.He,hsu:!!n.yH},!0);if(n.He&&n.yH)return!0;if(n.D("html5_remove_client_sabr_determination"))return!1;var M= !n.X.r7&&!n.G8();q=M&&XH&&n.D("html5_enable_sabr_vod_streaming_xhr");M=M&&!XH&&n.D("html5_enable_sabr_vod_non_streaming_xhr");var t=yG(n),c=n.D("html5_enable_sabr_drm_vod_streaming_xhr")&&XH&&n.G8()&&!n.X.r7&&(n.drmProduct==="1"?!1:!0);(q=q||M||t||c)&&!n.yH&&n.Xy("sabr",{loc:"m"},!0);return q&&!!n.yH}; yG=function(n){var q;if(!(q=XH&&n.r7()&&n.G8()&&(n.drmProduct==="1"?!1:!0)&&n.D("html5_sabr_live_drm_streaming_xhr"))){q=n.r7()&&!n.G8()&&XH;var M=n.r7()&&n.latencyClass!=="ULTRALOW"&&!n.isLowLatencyLiveStream&&n.D("html5_sabr_live_normal_latency_streaming_xhr"),t=n.isLowLatencyLiveStream&&n.D("html5_sabr_live_low_latency_streaming_xhr"),c=n.latencyClass==="ULTRALOW"&&n.D("html5_sabr_live_ultra_low_latency_streaming_xhr");q=q&&(M||t||c)}M=q;q=n.enableServerStitchedDai&&M&&n.D("html5_enable_sabr_ssdai_streaming_xhr"); M=!n.enableServerStitchedDai&&M;t=n.r7()&&!XH&&n.D("html5_enable_sabr_live_non_streaming_xhr");n=XH&&(n.oI()||gZ(n)&&n.D("html5_enable_sabr_for_lifa_eligible_streams"));return q||M||t||n}; HwU=function(n){var q;if(q=!!n.cotn)q=n.videoId,q=!!q&&g.Yp(q)===1;return q&&!n.s7}; g.s9=function(n){if(!n.X||!n.W||!n.J)return!1;var q=n.X.X,M=!!q[n.W.id]&&rX(q[n.W.id].d7.X);q=!!q[n.J.id]&&rX(q[n.J.id].d7.X);return(n.W.itag==="0"||M)&&q}; XU=function(n){return n.cj?["OK","LIVE_STREAM_OFFLINE"].includes(n.cj.status):!0}; oWs=function(n){return(n=n.ZW)&&n.showError?n.showError:!1}; jn=function(n,q){return n.D(q)?!0:(n.fflags||"").includes(q+"=true")}; Owd=function(n,q){q.inlineMetricEnabled&&(n.inlineMetricEnabled=!0);q.playback_progress_0s_url&&(n.wE=new RoC(q));if(q=q.video_masthead_ad_quartile_urls)n.Zo=q.quartile_0_url,n.mT=q.quartile_25_url,n.sO=q.quartile_50_url,n.V3=q.quartile_75_url,n.C5=q.quartile_100_url,n.vj=q.quartile_0_urls,n.J5=q.quartile_25_urls,n.Cq=q.quartile_50_urls,n.mS=q.quartile_75_urls,n.wc=q.quartile_100_urls}; Ntu=function(n){var q={};n=g.S(n);for(var M=n.next();!M.done;M=n.next()){M=M.value;var t=M.split("=");t.length===2?q[t[0]]=t[1]:q[M]=!0}return q}; bwj=function(n){if(n){if(s4a(n))return n;n=XJ_(n);if(s4a(n,!0))return n}return""}; g.tGa=function(n){return n.captionsLanguagePreference||n.pm.captionsLanguagePreference||g.xp(n,"yt:cc_default_lang")||n.pm.Wm}; Sn=function(n){return!(!n.isLivePlayback||!n.hasProgressBarBoundaries())}; g.Lt=function(n){var q;return n.aF||((q=n.suggestions)==null?void 0:q[0])||null}; g.Im=function(n){var q,M;return!!((q=n.embeddedPlayerConfig)==null?0:(M=q.embeddedPlayerFlags)==null?0:M.enableMusicUx)}; cjf=function(n){return n.N||n.D("web_player_media_session_infinity")&&n.isLivePlayback}; fi=function(n){return n.pm.J&&n.isPrivate}; YE1=function(n){var q,M;return!!((q=n.playerResponse)==null?0:(M=q.playerConfig)==null?0:M.granularVariableSpeedConfig)}; g.Li=function(n){var q=n.T(),M=g.Ho(q),t=q.yS;(q.D("embeds_web_enable_iframe_api_send_full_embed_url")||q.D("embeds_web_enable_rcat_validation_in_havs")||q.D("embeds_enable_autoplay_and_visibility_signals"))&&g.b4(q)&&(t&&(M.thirdParty=Object.assign({},M.thirdParty,{embedUrl:t})),c5d(M,n));if(t=n.SX)M.clickTracking={clickTrackingParams:t};else if(g.b4(n.T())&&g.RZ("EVENT_ID"))M.clickTracking={clickTrackingParams:g.RZ("EVENT_ID")};else if(q.D("html5_log_missing_itct")){var c;t=new g.aE("Missing ITCT in InnerTubeContext", {isAd:n.isAd(),vo1:(c=q.getWebPlayerContextConfig())==null?void 0:c.contextId});g.Ly(t)}c=M.client||{};t="EMBED";var Y=kt(n);Y==="leanback"?t="WATCH":q.D("gvi_channel_client_screen")&&Y==="profilepage"?t="CHANNEL":n.Ux?t="LIVE_MONITOR":Y==="detailpage"?t="WATCH_FULL_SCREEN":Y==="adunit"?t="ADUNIT":Y==="sponsorshipsoffer"&&(t="UNKNOWN");c.clientScreen=t;if(q=n.kidsAppInfo)c.kidsAppInfo=JSON.parse(q);(t=n.A0)&&!q&&(c.kidsAppInfo={contentSettings:{ageUpMode:GRj[t]}});if(q=n.Fe)c.unpluggedAppInfo={enableFilterMode:!0}; (t=n.unpluggedFilterModeType)&&!q&&(c.unpluggedAppInfo={filterModeType:K$1[t]});if(q=n.Wm)c.unpluggedLocationInfo=q;M.client=c;c=M.request||{};n.jL&&(c.isPrefetch=!0);if(q=n.mdxEnvironment)c.mdxEnvironment=q;if(q=n.mdxControlMode)c.mdxControlMode=kRC[q];M.request=c;c=M.user||{};if(q=n.IL)c.credentialTransferTokens=[{token:q,scope:"VIDEO"}];if(q=n.o8)c.delegatePurchases={oauthToken:q},c.kidsParent={oauthToken:q};M.user=c;if(c=n.contextParams)M.activePlayers=[{playerContextParams:c}];if(n=n.clientScreenNonce)M.clientScreenNonce= n;return M}; g.Ho=function(n){var q=g.Cz(),M=q.client||{};if(n.forcedExperiments){var t=n.forcedExperiments.split(","),c=[];t=g.S(t);for(var Y=t.next();!Y.done;Y=t.next())c.push(Number(Y.value));M.experimentIds=c}if(c=n.homeGroupInfo)M.homeGroupInfo=JSON.parse(c);if(c=n.getPlayerType())M.playerType=c;if(c=n.X.ctheme)M.theme=c;if(c=n.livingRoomAppMode)M.tvAppInfo=Object.assign({},M.tvAppInfo,{livingRoomAppMode:c});c=n.deviceYear;n.D("html5_propagate_device_year")&&c&&(M.tvAppInfo=Object.assign({},M.tvAppInfo,{deviceYear:c})); if(c=n.livingRoomPoTokenId)M.tvAppInfo=Object.assign({},M.tvAppInfo,{livingRoomPoTokenId:c});q.client=M;M=q.user||{};n.enableSafetyMode&&(M=Object.assign({},M,{enableSafetyMode:!0}));n.pageId&&(M=Object.assign({},M,{onBehalfOfUser:n.pageId}));q.user=M;M=n.yS;n.D("embeds_web_enable_iframe_api_send_full_embed_url")||n.D("embeds_web_enable_rcat_validation_in_havs")||n.D("embeds_enable_autoplay_and_visibility_signals")||!M||(q.thirdParty={embedUrl:M});return q}; e4J=function(n,q,M){var t=n.videoId,c=g.Li(n),Y=n.T(),G={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(sc()),referer:document.location.toString(),signatureTimestamp:20328},k=g.D1();n.isAutonav&&(G.autonav=!0);k.OT(141)&&(G.autonavState=k.OT(140)?"STATE_OFF":"STATE_ON");G.autoCaptionsDefaultOn=k.OT(66);x_j(n)&&(G.autoplay=!0);Y.B&&n.cycToken&&(G.cycToken=n.cycToken);Y.enablePrivacyFilter&&(G.enablePrivacyFilter=!0);n.isFling&&(G.fling=!0);var b=n.forceAdsUrl;if(b){k={};var d=[];b=b.split(","); b=g.S(b);for(var N=b.next();!N.done;N=b.next()){N=N.value;var O=N.split("|");O.length!==3||N.includes("=")||(O[0]="breaktype="+O[0],O[1]="offset="+O[1],O[2]="url="+O[2]);N={adtype:"video_ad"};O=g.S(O);for(var e=O.next();!e.done;e=O.next()){var E=g.S(e.value.split("="));e=E.next().value;E=c_d(E);N[e]=E.join("=")}O=N.url;e=N.presetad;E=N.viralresponseurl;var h=Number(N.campaignid);if(N.adtype==="in_display_ad")O&&(k.url=O),e&&(k.presetAd=e),E&&(k.viralAdResponseUrl=E),h&&(k.viralCampaignId=String(h)); else if(N.adtype==="video_ad"){var I={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(N.offset)||0)}};if(N=bgR[N.breaktype])I.breakType=N;O&&(I.url=O);e&&(I.presetAd=e);E&&(I.viralAdResponseUrl=E);h&&(I.viralCampaignId=String(h));d.push(I)}}G.forceAdParameters={videoAds:d,inDisplayAd:k}}n.isInlinePlaybackNoAd&&(G.isInlinePlaybackNoAd=!0);n.isLivingRoomDeeplink&&(G.isLivingRoomDeeplink=!0);k=n.hux;if(k!=null){k={startWalltime:String(k)};if(d=n.To)k.manifestDuration=String(d||14400);G.liveContext= k}if(n.mutedAutoplay){G.mutedAutoplay=!0;k=Y.getWebPlayerContextConfig();var L,T;(k==null?0:(L=k.embedsHostFlags)==null?0:L.allowMutedAutoplayDurationMode)&&(k==null?0:(T=k.embedsHostFlags)==null?0:T.allowMutedAutoplayDurationMode.includes(dL_[n.mutedAutoplayDurationMode]))&&(G.mutedAutoplayDurationMode=dL_[n.mutedAutoplayDurationMode])}if(n.Ku?0:n.i7)G.splay=!0;L=n.vnd;L===5&&(G.vnd=L);L={};if(T=n.isMdxPlayback)L.triggeredByMdx=T;if(T=n.QI)L.skippableAdsSupported=T.split(",").includes("ska");if(d= n.v_){T=n.PE;k=[];d=g.S(Yxd(d));for(b=d.next();!b.done;b=d.next()){b=b.value;N=b.platform;b={applicationState:b.jH?"INACTIVE":"ACTIVE",clientFormFactor:NLa[N]||"UNKNOWN_FORM_FACTOR",clientName:Kzj[b.ek]||"UNKNOWN_INTERFACE",clientVersion:b.deviceVersion||"",platform:Ogs[N]||"UNKNOWN_PLATFORM"};N={};if(T){O=void 0;try{O=JSON.parse(T)}catch(B){g.PJ(B)}O&&(N={params:[{key:"ms",value:O.ms}]},O.advertising_id&&(N.advertisingId=O.advertising_id),O.limit_ad_tracking!==void 0&&O.limit_ad_tracking!==null&& (N.limitAdTracking=O.limit_ad_tracking),b.osName=O.os_name,b.userAgent=O.user_agent,b.windowHeightPoints=O.window_height_points,b.windowWidthPoints=O.window_width_points)}k.push({adSignalsInfo:N,remoteClient:b})}L.remoteContexts=k}T=n.sourceContainerPlaylistId;k=n.serializedMdxMetadata;if(T||k)d={},T&&(d.mdxPlaybackContainerInfo={sourceContainerPlaylistId:T}),k&&(d.serializedMdxMetadata=k),L.mdxPlaybackSourceContext=d;G.mdxContext=L;L=q.width;L>0&&(G.playerWidthPixels=Math.round(L));if(q=q.height)G.playerHeightPixels= Math.round(q);M!==0&&(G.vis=M);if(M=Y.widgetReferrer)G.widgetReferrer=M.substring(0,128);g.t8(Y)&&G&&(G.ancestorOrigins=Y.ancestorOrigins);n.defaultActiveSourceVideoId&&(G.compositeVideoContext={defaultActiveSourceVideoId:n.defaultActiveSourceVideoId});if(Y=Y.getWebPlayerContextConfig())G.encryptedHostFlags=Y.encryptedHostFlags;t={videoId:t,context:c,playbackContext:{contentPlaybackContext:G}};if(n.fR){var v;t.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(v=n.fR)==null?void 0:v.reloadPlaybackParams}}n.contentCheckOk&& (t.contentCheckOk=!0);if(v=n.clientPlaybackNonce)t.cpn=v;if(v=n.playerParams)t.params=v;if(v=n.playlistId)t.playlistId=v;n.racyCheckOk&&(t.racyCheckOk=!0);v=n.T();c=v.embedConfig;n.Vs&&v.D("embeds_enable_per_video_embed_config")?t.serializedThirdPartyEmbedConfig=n.Vs:c&&(t.serializedThirdPartyEmbedConfig=c);t.captionParams={};c=g.D1().OT(65);n.deviceCaptionsOn!=null?t.captionParams.deviceCaptionsOn=n.deviceCaptionsOn:g.fl(v)&&(t.captionParams.deviceCaptionsOn=c!=null?!c:!1);n.yJ&&(t.captionParams.deviceCaptionsLangPref= n.yJ);n.dY.length?t.captionParams.viewerSelectedCaptionLangs=n.dY:g.fl(v)&&(c=g.X4(),c==null?0:c.length)&&(t.captionParams.viewerSelectedCaptionLangs=c);c=n.fetchType==="onesie"&&n.D("html5_onesie_attach_po_token");G=n.fetchType!=="onesie"&&n.D("html5_non_onesie_attach_po_token");if(c||G)c=n.T(),c.Ku&&(t.serviceIntegrityDimensions={},t.serviceIntegrityDimensions.poToken=c.Ku);v.D("fetch_att_independently")&&(t.attestationRequest={omitBotguardData:!0});t.playbackContext||(t.playbackContext={});t.playbackContext.devicePlaybackCapabilities= ghd(n);t.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&n.Xy("noVp9",{});return t}; ghd=function(n){var q=!(n==null?0:n.QJ())&&(n==null?void 0:n.r7())&&xe(),M;if(!(M=n==null)){M=g.AK(n);n=n.T().S;var t=A8("243");M=!(t&&$y(M,t,n,!0)===!0)}return{supportsVp9Encoding:!(M||q),supportXhr:XH}}; h41=function(n,q){var M,t,c;return g.u(function(Y){if(Y.X==1)return M={context:g.Ho(n.T()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:n.videoId,cpn:n.clientPlaybackNonce}}]},t=g.QQ(Ehu),g.U(Y,g.B_(q,M,t),2);c=Y.W;return Y.return(c)})}; W$1=function(n,q,M){var t=g.ic(q.experiments,"bg_vm_reinit_threshold");(!OM||(0,g.jt)()-OM>t)&&h41(n,M).then(function(c){c&&(c=c.botguardData)&&g.eW(c,q)},function(c){n.qm()||(c=hU(c),n.Xy("attf",c.details))})}; Po=function(n,q){g.F.call(this);this.app=n;this.state=q}; T1=function(n,q,M){n.state.X.hasOwnProperty(q)||vo(n,q,M);n.state.N[q]=function(){return M.apply(n,g.Fm.apply(0,arguments))}; n.state.C.add(q)}; l3=function(n,q,M){n.state.X.hasOwnProperty(q)||vo(n,q,M);n.app.T().B&&(n.state.B[q]=function(){return M.apply(n,g.Fm.apply(0,arguments))},n.state.C.add(q))}; vo=function(n,q,M){n.state.X[q]=function(){return M.apply(n,g.Fm.apply(0,arguments))}}; g.U9=function(n,q,M){return n.state.X[q].apply(n.state.X,g.EJ(M))}; u3=function(){g.jA.call(this);this.S=new Map}; Bo=function(){g.F.apply(this,arguments);this.element=null;this.C=new Set;this.N={};this.B={};this.X={};this.U=new Set;this.Z=new u3;this.W=new u3;this.J=new u3;this.S=new u3}; yj1=function(n,q,M){typeof n==="string"&&(n={mediaContentUrl:n,startSeconds:q,suggestedQuality:M});a:{if((q=n.mediaContentUrl)&&(q=/\/([ve]|embed)\/([^#?]+)/.exec(q))&&q[2]){q=q[2];break a}q=null}n.videoId=q;return D9(n)}; D9=function(n,q,M){if(typeof n==="string")return{videoId:n,startSeconds:q,suggestedQuality:M};q={};M=g.S(shd);for(var t=M.next();!t.done;t=M.next())t=t.value,n[t]&&(q[t]=n[t]);if(n=n.embedConfig||n.embed_config)if(typeof n==="string")q.embed_config=n;else if(g.Yw(n))try{var c=JSON.stringify(n);q.embed_config=c}catch(Y){console.error("Invalid embedConfig JSON",Y)}return q}; Xcu=function(n,q,M,t){if(g.Yw(n)&&!Array.isArray(n)){q="playlist list listType index startSeconds suggestedQuality".split(" ");M={};for(t=0;t32&&t.push("hfr");q.isHdr()&&t.push("hdr");q.primaries==="bt2020"&&t.push("wcg");M.video_quality_features=t}}if(n=n.getPlaylistId())M.list=n;return M}; Z9=function(){Av.apply(this,arguments)}; am=function(n,q){var M={};if(n.app.T().RL){n=g.S(fJk);for(var t=n.next();!t.done;t=n.next())t=t.value,q.hasOwnProperty(t)&&(M[t]=q[t]);if(q=M.qoe_cat)n="",typeof q==="string"&&q.length>0&&(n=q.split(",").filter(function(c){return Hgd.includes(c)}).join(",")),M.qoe_cat=n; L$s(M)}else for(n=g.S(PGf),t=n.next();!t.done;t=n.next())t=t.value,q.hasOwnProperty(t)&&(M[t]=q[t]);return M}; L$s=function(n){var q=n.raw_player_response;if(!q){var M=n.player_response;M&&(q=JSON.parse(M))}delete n.player_response;delete n.raw_player_response;if(q){n.raw_player_response={streamingData:q.streamingData,playerConfig:q.playerConfig};var t;if((t=q.playbackTracking)==null?0:t.qoeUrl)n.raw_player_response=Object.assign({},n.raw_player_response,{playbackTracking:{qoeUrl:q.playbackTracking.qoeUrl}});q.videoDetails&&(q.videoDetails.videoId||q.videoDetails.lengthSeconds)&&(M={},q.videoDetails.videoId&& (M.videoId=q.videoDetails.videoId),q.videoDetails.lengthSeconds&&(M.lengthSeconds=q.videoDetails.lengthSeconds),n.raw_player_response=Object.assign({},n.raw_player_response,{videoDetails:M}))}}; TLJ=function(n){var q=q===void 0?5:q;return n?vhU[n]||q:q}; g.Rm=function(){Z9.apply(this,arguments)}; lJs=function(n){vo(n,"getInternalApiInterface",n.getInternalApiInterface);vo(n,"addEventListener",n.Og);vo(n,"removeEventListener",n.UVL);vo(n,"cueVideoByPlayerVars",n.DD);vo(n,"loadVideoByPlayerVars",n.rEd);vo(n,"preloadVideoByPlayerVars",n.CIb);vo(n,"getAdState",n.getAdState);vo(n,"sendAbandonmentPing",n.sendAbandonmentPing);vo(n,"setLoopRange",n.setLoopRange);vo(n,"getLoopRange",n.getLoopRange);vo(n,"setAutonavState",n.setAutonavState);vo(n,"seekTo",n.aUg);vo(n,"seekBy",n.dvm);vo(n,"seekToLiveHead", n.seekToLiveHead);vo(n,"requestSeekToWallTimeSeconds",n.requestSeekToWallTimeSeconds);vo(n,"seekToStreamTime",n.seekToStreamTime);vo(n,"prefetchKeyPlay",n.prefetchKeyPlay);vo(n,"startSeekCsiAction",n.startSeekCsiAction);vo(n,"getStreamTimeOffset",n.getStreamTimeOffset);vo(n,"getVideoData",n.kC);vo(n,"setInlinePreview",n.setInlinePreview);vo(n,"getAppState",n.getAppState);vo(n,"updateLastActiveTime",n.updateLastActiveTime);vo(n,"setBlackout",n.setBlackout);vo(n,"setUserEngagement",n.setUserEngagement); vo(n,"updateSubtitlesUserSettings",n.updateSubtitlesUserSettings);vo(n,"getPresentingPlayerType",n.mV);vo(n,"canPlayType",n.canPlayType);vo(n,"updatePlaylist",n.updatePlaylist);vo(n,"updateVideoData",n.updateVideoData);vo(n,"updateEnvironmentData",n.updateEnvironmentData);vo(n,"sendVideoStatsEngageEvent",n.Gym);vo(n,"productsInVideoVisibilityUpdated",n.productsInVideoVisibilityUpdated);vo(n,"setSafetyMode",n.setSafetyMode);vo(n,"isAtLiveHead",function(q){return n.isAtLiveHead(void 0,q)}); vo(n,"getVideoAspectRatio",n.getVideoAspectRatio);vo(n,"getPreferredQuality",n.getPreferredQuality);vo(n,"getPlaybackQualityLabel",n.getPlaybackQualityLabel);vo(n,"setPlaybackQualityRange",n.mv1);vo(n,"onAdUxClicked",n.onAdUxClicked);vo(n,"getFeedbackProductData",n.getFeedbackProductData);vo(n,"getStoryboardFrame",n.getStoryboardFrame);vo(n,"getStoryboardFrameIndex",n.getStoryboardFrameIndex);vo(n,"getStoryboardLevel",n.getStoryboardLevel);vo(n,"getNumberOfStoryboardLevels",n.getNumberOfStoryboardLevels); vo(n,"getCaptionWindowContainerId",n.getCaptionWindowContainerId);vo(n,"getAvailableQualityLabels",n.getAvailableQualityLabels);vo(n,"addCueRange",n.addCueRange);vo(n,"addUtcCueRange",n.addUtcCueRange);vo(n,"showAirplayPicker",n.showAirplayPicker);vo(n,"dispatchReduxAction",n.dispatchReduxAction);vo(n,"getPlayerResponse",n.y7);vo(n,"getWatchNextResponse",n.R_);vo(n,"getHeartbeatResponse",n.YC);vo(n,"getCurrentTime",n.CP);vo(n,"getDuration",n.wx);vo(n,"getPlayerState",n.getPlayerState);vo(n,"getPlayerStateObject", n.Hv);vo(n,"getVideoLoadedFraction",n.getVideoLoadedFraction);vo(n,"getProgressState",n.getProgressState);vo(n,"getVolume",n.getVolume);vo(n,"setVolume",n.YO);vo(n,"isMuted",n.isMuted);vo(n,"mute",n.B9);vo(n,"unMute",n.w2);vo(n,"loadModule",n.loadModule);vo(n,"unloadModule",n.unloadModule);vo(n,"getOption",n.fN);vo(n,"getOptions",n.getOptions);vo(n,"setOption",n.setOption);vo(n,"loadVideoById",n.Rf);vo(n,"loadVideoByUrl",n.WS);vo(n,"playVideo",n.AR);vo(n,"loadPlaylist",n.loadPlaylist);vo(n,"nextVideo", n.nextVideo);vo(n,"previousVideo",n.previousVideo);vo(n,"playVideoAt",n.playVideoAt);vo(n,"getDebugText",n.getDebugText);vo(n,"getWebPlayerContextConfig",n.getWebPlayerContextConfig);vo(n,"notifyShortsAdSwipeEvent",n.notifyShortsAdSwipeEvent);vo(n,"getVideoContentRect",n.getVideoContentRect);vo(n,"setSqueezeback",n.setSqueezeback);vo(n,"toggleSubtitlesOn",n.toggleSubtitlesOn);vo(n,"isSubtitlesOn",n.isSubtitlesOn);vo(n,"reportPlaybackIssue",n.reportPlaybackIssue);vo(n,"setAutonav",n.setAutonav);vo(n, "isNotServable",n.isNotServable);vo(n,"channelSubscribed",n.channelSubscribed);vo(n,"channelUnsubscribed",n.channelUnsubscribed);vo(n,"togglePictureInPicture",n.togglePictureInPicture);vo(n,"supportsGaplessAudio",n.supportsGaplessAudio);vo(n,"supportsGaplessShorts",n.supportsGaplessShorts);vo(n,"enqueueVideoByPlayerVars",function(q){return void n.enqueueVideoByPlayerVars(q)}); vo(n,"clearQueue",n.clearQueue);vo(n,"getAudioTrack",n.nP);vo(n,"setAudioTrack",n.qCJ);vo(n,"getAvailableAudioTracks",n.fP);vo(n,"getMaxPlaybackQuality",n.getMaxPlaybackQuality);vo(n,"getUserPlaybackQualityPreference",n.getUserPlaybackQualityPreference);vo(n,"getSubtitlesUserSettings",n.getSubtitlesUserSettings);vo(n,"resetSubtitlesUserSettings",n.resetSubtitlesUserSettings);vo(n,"setMinimized",n.setMinimized);vo(n,"setOverlayVisibility",n.setOverlayVisibility);vo(n,"confirmYpcRental",n.confirmYpcRental); vo(n,"queueNextVideo",n.queueNextVideo);vo(n,"handleExternalCall",n.handleExternalCall);vo(n,"logApiCall",n.logApiCall);vo(n,"isExternalMethodAvailable",n.isExternalMethodAvailable);vo(n,"setScreenLayer",n.setScreenLayer);vo(n,"getCurrentPlaylistSequence",n.getCurrentPlaylistSequence);vo(n,"getPlaylistSequenceForTime",n.getPlaylistSequenceForTime);vo(n,"shouldSendVisibilityState",n.shouldSendVisibilityState);vo(n,"syncVolume",n.syncVolume);vo(n,"highlightSettingsMenuItem",n.highlightSettingsMenuItem); vo(n,"openSettingsMenuItem",n.openSettingsMenuItem);vo(n,"getEmbeddedPlayerResponse",n.getEmbeddedPlayerResponse);vo(n,"getVisibilityState",n.getVisibilityState);vo(n,"isMutedByMutedAutoplay",n.isMutedByMutedAutoplay);vo(n,"isMutedByEmbedsMutedAutoplay",n.isMutedByEmbedsMutedAutoplay);vo(n,"setGlobalCrop",n.setGlobalCrop);vo(n,"setInternalSize",n.setInternalSize);vo(n,"setFauxFullscreen",n.setFauxFullscreen);vo(n,"setAppFullscreen",n.setAppFullscreen)}; wZ=function(n,q,M){n=g.om(n.eG(),q);return M?(M.addOnDisposeCallback(n),null):n}; g.z1=function(n,q,M){return n.app.T().uI?q:g.Yo("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:q,SHORTCUT:M})}; ULs=function(n){n.eG().element.setAttribute("aria-live","polite")}; g.Jv=function(n,q){g.Rm.call(this,n,q);lJs(this);l3(this,"addEventListener",this.NO);l3(this,"removeEventListener",this.bu1);l3(this,"cueVideoByPlayerVars",this.A7);l3(this,"loadVideoByPlayerVars",this.fkx);l3(this,"preloadVideoByPlayerVars",this.mVd);l3(this,"loadVideoById",this.Rf);l3(this,"loadVideoByUrl",this.WS);l3(this,"playVideo",this.AR);l3(this,"loadPlaylist",this.loadPlaylist);l3(this,"nextVideo",this.nextVideo);l3(this,"previousVideo",this.previousVideo);l3(this,"playVideoAt",this.playVideoAt); l3(this,"getVideoData",this.Ne);l3(this,"seekBy",this.gMt);l3(this,"seekTo",this.zUy);l3(this,"showControls",this.showControls);l3(this,"hideControls",this.hideControls);l3(this,"cancelPlayback",this.cancelPlayback);l3(this,"getProgressState",this.getProgressState);l3(this,"isInline",this.isInline);l3(this,"setInline",this.setInline);l3(this,"setLoopVideo",this.setLoopVideo);l3(this,"getLoopVideo",this.getLoopVideo);l3(this,"getVideoContentRect",this.getVideoContentRect);l3(this,"getVideoStats",this.x8); l3(this,"getCurrentTime",this.Pv);l3(this,"getDuration",this.wx);l3(this,"getPlayerState",this.LP);l3(this,"getVideoLoadedFraction",this.Qv);l3(this,"mute",this.B9);l3(this,"unMute",this.w2);l3(this,"setVolume",this.YO);l3(this,"loadModule",this.loadModule);l3(this,"unloadModule",this.unloadModule);l3(this,"getOption",this.fN);l3(this,"getOptions",this.getOptions);l3(this,"setOption",this.setOption);l3(this,"addCueRange",this.addCueRange);l3(this,"getDebugText",this.getDebugText);l3(this,"getStoryboardFormat", this.getStoryboardFormat);l3(this,"toggleFullscreen",this.toggleFullscreen);l3(this,"isFullscreen",this.isFullscreen);l3(this,"getPlayerSize",this.getPlayerSize);l3(this,"toggleSubtitles",this.toggleSubtitles);l3(this,"setCenterCrop",this.setCenterCrop);l3(this,"setFauxFullscreen",this.setFauxFullscreen);l3(this,"setSizeStyle",this.setSizeStyle);l3(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);l3(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);SEJ(this)}; g.VG=function(n){n=n.zk();var q=n.R1.get("endscreen");return q&&q.vt()?!0:n.qL()}; g.Ci=function(n,q){n.getPresentingPlayerType()===3?n.publish("mdxautoplaycancel"):n.Km("onAutonavCancelled",q)}; g.xt=function(n){var q=rZ(n.zk());return n.app.qc&&!n.isFullscreen()||n.getPresentingPlayerType()===3&&q&&q.tI()&&q.Ra()||!!n.getPlaylist()}; g.QG=function(n,q){g.U9(n,"addEmbedsConversionTrackingParams",[q])}; g.nI=function(n){return(n=g.pi(n.zk()))?n.tV():{}}; g.uK_=function(n){n=(n=n.getVideoData())&&n.W;return!!n&&!(!n.audio||!n.video)&&n.mimeType!=="application/x-mpegURL"}; g.qW=function(n,q,M){n=n.Lm().element;var t=wT(n.children,function(c){c=Number(c.getAttribute("data-layer"));return M-c||1}); t<0&&(t=-(t+1));yf(n,q,t);q.setAttribute("data-layer",String(M))}; g.MW=function(n){var q=n.T();if(!q.rZ)return!1;var M=n.getVideoData();if(!M||n.getPresentingPlayerType()===3)return!1;var t=(!M.isLiveDefaultBroadcast||q.D("allow_poltergust_autoplay"))&&!Sn(M);t=M.isLivePlayback&&(!q.D("allow_live_autoplay")||!t);var c=M.isLivePlayback&&q.D("allow_live_autoplay_on_mweb");n=n.getPlaylist();n=!!n&&n.tI();var Y=M.nm&&M.nm.playerOverlays||null;Y=!!(Y&&Y.playerOverlayRenderer&&Y.playerOverlayRenderer.autoplay);Y=M.wZ&&Y;return!M.ypcPreview&&(!t||c)&&!g.SS(M.wJ,"ypc")&& !n&&(!g.t8(q)||Y)}; DLU=function(n,q){n=BLd(n.app.Uu().S);n=g.S(n);for(var M=n.next();!M.done;M=n.next()){M=M.value;var t=M.getAvailableAudioTracks(),c=null;t=g.S(t);for(var Y=t.next();!Y.done;Y=t.next())if(Y=Y.value,Y.getLanguageInfo().getId()===q){c=Y;break}c&&M.V0(c,!0)}}; i6=function(){uJ.apply(this,arguments);this.requestHeaders={}}; c8=function(){tV||(tV=new i6);return tV}; Yz=function(n,q){q?n.requestHeaders.Authorization="Bearer "+q:delete n.requestHeaders.Authorization}; g.G6=function(n){g.F.call(this);var q=this;this.Mm=n;this.vg={Uo:function(){return q.Mm}}}; g.KI=function(n,q,M,t){t=t===void 0?!1:t;g.G2.call(this,q);var c=this;this.G=n;this.RL=t;this.C=new g.f8(this);this.fade=new g.QX(this,M,!0,void 0,void 0,function(){c.QD()}); g.Z(this,this.C);g.Z(this,this.fade)}; kz=function(n){var q=n.G.getRootNode();return n.G.D("web_watch_pip")||n.G.D("web_shorts_pip")?iP(q):document}; Aju=function(n){n.W&&(document.activeElement&&g.XL(n.element,document.activeElement)&&n.W.focus(),n.W.setAttribute("aria-expanded","false"),n.W=void 0);g.fL(n.C);n.N=void 0}; b6=function(n,q,M){n.Ol()?n.lG():n.Hn(q,M)}; d6=function(n,q,M,t){t=new g.w({j:"div",aL:["ytp-linked-account-popup-button"],Wb:t,K:{role:"button",tabindex:"0"}});q=new g.w({j:"div",Y:"ytp-linked-account-popup",K:{role:"dialog","aria-modal":"true",tabindex:"-1"},L:[{j:"div",Y:"ytp-linked-account-popup-title",Wb:q},{j:"div",Y:"ytp-linked-account-popup-description",Wb:M},{j:"div",Y:"ytp-linked-account-popup-buttons",L:[t]}]});g.KI.call(this,n,{j:"div",Y:"ytp-linked-account-popup-container",L:[q]},100);var c=this;this.dialog=q;g.Z(this,this.dialog); t.listen("click",function(){c.lG()}); g.Z(this,t);g.qW(this.G,this.element,4);this.hide()}; g.O3=function(n,q,M,t){g.G2.call(this,n);this.priority=q;M&&g.NW(this,M);t&&this.kQ(t)}; g.g6=function(n,q,M,t){n=n===void 0?{}:n;q=q===void 0?[]:q;M=M===void 0?!1:M;t=t===void 0?!1:t;q.push("ytp-menuitem");var c=n;"role"in c||(c.role="menuitem");M||(c=n,"tabindex"in c||(c.tabindex="0"));n={j:M?"a":"div",aL:q,K:n,L:[{j:"div",Y:"ytp-menuitem-icon",Wb:"{{icon}}"},{j:"div",Y:"ytp-menuitem-label",Wb:"{{label}}"},{j:"div",Y:"ytp-menuitem-content",Wb:"{{content}}"}]};t&&n.L.push({j:"div",Y:"ytp-menuitem-secondary-icon",Wb:"{{secondaryIcon}}"});return n}; g.NW=function(n,q){n.updateValue("label",q)}; ej=function(n){g.O3.call(this,g.g6({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var q=this;this.G=n;this.W=this.X=!1;this.xi=n.Bk();n.createServerVe(this.element,this,!0);this.V(this.G,"settingsMenuVisibilityChanged",function(M){q.xQ(M)}); this.V(this.G,"videodatachange",this.J);this.listen("click",this.onClick);this.J()}; E3=function(n){return n?g.b8(n):""}; hV=function(n){g.F.call(this);this.api=n}; W8=function(n){hV.call(this,n);var q=this;vo(n,"setAccountLinkState",function(M){q.setAccountLinkState(M)}); vo(n,"updateAccountLinkingConfig",function(M){q.updateAccountLinkingConfig(M)}); n.addEventListener("videodatachange",function(M,t){q.onVideoDataChange(t)}); n.addEventListener("settingsMenuInitialized",function(){q.menuItem=new ej(q.api);g.Z(q,q.menuItem)})}; y_=function(n){hV.call(this,n);var q=this;this.X=null;this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"applicationvideodatachange",function(){q.rQ()})}; mLs=function(n){this.api=n;this.X={}}; s3=function(n,q,M,t){q in n.X||(M=new g.Ji(M,t,{id:q,priority:2,namespace:"appad"}),n.api.y6([M],1),n.X[q]=M)}; XF=function(n){hV.call(this,n);var q=this;this.events=new g.f8(this);g.Z(this,this.events);this.X=new mLs(this.api);this.events.V(this.api,"legacyadtrackingpingreset",function(){q.X.X={}}); this.events.V(this.api,"legacyadtrackingpingchange",function(M){var t=q.X;s3(t,"part2viewed",1,0x8000000000000);s3(t,"engagedview",Math.max(1,M.Wg*1E3),0x8000000000000);if(!M.isLivePlayback){var c=M.lengthSeconds*1E3;lB(M)&&t.api.D("html5_shorts_gapless_ads_duration_fix")&&(c=t.api.getProgressState().seekableEnd*1E3-M.MN);s3(t,"videoplaytime25",c*.25,c);s3(t,"videoplaytime50",c*.5,c);s3(t,"videoplaytime75",c*.75,c);s3(t,"videoplaytime100",c,0x8000000000000);s3(t,"conversionview",c,0x8000000000000); s3(t,"videoplaybackstart",1,c);s3(t,"videoplayback2s",2E3,c);s3(t,"videoplayback10s",1E4,c)}}); this.events.V(this.api,g.CK("appad"),this.W);this.events.V(this.api,g.rj("appad"),this.W)}; aJJ=function(n,q,M){if(!(M in q))return!1;q=q[M];Array.isArray(q)||(q=[q]);q=g.S(q);for(M=q.next();!M.done;M=q.next()){M=M.value;var t={CPN:n.api.getVideoData().clientPlaybackNonce};M=g.LO(M,t);t=void 0;t=t===void 0?!1:t;(t=Z4(aJ(M,$Lj),M,t,"Active View 3rd Party Integration URL"))||(t=void 0,t=t===void 0?!1:t,t=Z4(aJ(M,F$f),M,t,"Google/YouTube Brand Lift URL"));t||(t=void 0,t=t===void 0?!1:t,t=Z4(aJ(M,Zgu),M,t,"Nielsen OCR URL"));g.ux(M,void 0,t)}return!0}; jj=function(n,q){R4R(n,q).then(function(M){g.ux(q,void 0,void 0,M)})}; Sj=function(n,q){q.forEach(function(M){jj(n,M)})}; R4R=function(n,q){return g.hi(n.api.T())&&tP(q)&&il(q)?g.BN(n.api.T(),g.O9(n.api.getVideoData())).then(function(M){var t;M&&(t={Authorization:"Bearer "+M});return t},void 0):Pk()}; ohU=function(n){hV.call(this,n);this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"videoready",function(q){if(n.getPresentingPlayerType()===1){var M,t,c={playerDebugData:{pmlSignal:!!((M=q.getPlayerResponse())==null?0:(t=M.adPlacements)==null?0:t.some(function(Y){var G;return Y==null?void 0:(G=Y.adPlacementRenderer)==null?void 0:G.renderer})), contentCpn:q.clientPlaybackNonce}};g.tx("adsClientStateChange",c)}})}; I5=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);vo(this.api,"getUserAudioQualitySetting",function(){return q.getUserAudioQualitySetting()}); vo(this.api,"setUserAudioQualitySetting",function(M){q.setUserAudioQualitySetting(M)}); vo(this.api,"hasHqaAudioTrack",function(){return q.hasHqaAudioTrack()}); this.lM=M9U();this.updateEnvironmentData()}; wcj=function(n){hV.call(this,n);var q=this;vo(this.api,"getAudioTrackState",function(){return q.api.LR(0)})}; fI=function(n){g.w.call(this,{j:"button",aL:["ytp-button","ytp-autonav-toggle"],K:{title:n.D("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"},L:[{j:"div",Y:"ytp-autonav-toggle-button-container",L:[{j:"div",Y:"ytp-autonav-toggle-button",K:{"aria-checked":"true"}}]}]});this.G=n;this.W=[];this.X=!1;this.isChecked=!0;n.createClientVe(this.element,this, 113681);this.V(n,"presentingplayerstatechange",this.wY);this.listen("click",this.onClick);this.G.T().D("web_player_autonav_toggle_always_listen")&&z4J(this);wZ(n,this.element,this);this.wY()}; z4J=function(n){n.W.push(n.V(n.G,"videodatachange",n.wY));n.W.push(n.V(n.G,"videoplayerreset",n.wY));n.W.push(n.V(n.G,"onPlaylistUpdate",n.wY));n.W.push(n.V(n.G,"autonavchange",n.gV))}; Jjs=function(n){n.isChecked=n.isChecked;n.JE("ytp-autonav-toggle-button").setAttribute("aria-checked",String(n.isChecked));var q=n.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";n.G.T().D("player_tooltip_data_title_killswitch")?n.update({title:q,label:q}):n.update({"data-tooltip-title":q,label:q});n.G.Ic()}; VGm=function(n){return n.G.T().D("web_player_autonav_use_server_provided_state")&&ft(n.F_())}; CGU=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"standardControlsInitialized",function(){var M=new fI(n);g.Z(q,M);n.a$(M,"RIGHT_CONTROLS_LEFT")})}; H8=function(n,q){g.O3.call(this,g.g6({role:"menuitemcheckbox","aria-checked":"false"}),q,n,{j:"div",Y:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; LI=function(n,q){n.checked=q;n.element.setAttribute("aria-checked",String(n.checked))}; rj1=function(n){var q=!n.T().Es&&n.getPresentingPlayerType()!==3;return n.isFullscreen()||q}; g.P8=function(n,q,M,t){var c=n.currentTarget;if((M===void 0||!M)&&g.j3(n))return n.preventDefault(),!0;q.pauseVideo();n=c.getAttribute("href");g.Zq(n,t,!0);return!1}; g.v8=function(n,q,M){if(j0(q.T())&&q.getPresentingPlayerType()!==2){if(g.j3(M))return q.isFullscreen()&&!q.T().externalFullscreen&&q.toggleFullscreen(),M.preventDefault(),!0}else{var t=g.j3(M);t&&q.pauseVideo();g.Zq(n,void 0,!0);t&&(g.aM(n),M.preventDefault())}return!1}; xLa=function(n){n=T6.includes("es-419")?n.D("delhi_modern_web_player_icons")?Em():{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,K:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:n.D("delhi_modern_web_player_icons")?Dy_():{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,K:{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"}}]};n.Y="ytp-subtitles-button-icon"; return n}; QhJ=function(n){return T6.includes("es-419")?n?Em():{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:n?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},L:[{j:"path",K:{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"}}]}:{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; l6=function(){return{j:"div",Y:"ytp-spinner-container",L:[{j:"div",Y:"ytp-spinner-rotator",L:[{j:"div",Y:"ytp-spinner-left",L:[{j:"div",Y:"ytp-spinner-circle"}]},{j:"div",Y:"ytp-spinner-right",L:[{j:"div",Y:"ytp-spinner-circle"}]}]}]}}; U3=function(n){if(document.createRange){var q=document.createRange();q&&(q.selectNodeContents(n),n=window.getSelection())&&(n.removeAllRanges(),n.addRange(q))}}; DO=function(n){var q=n.D("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";H8.call(this,q,g.u6.Py);var M=this;this.G=n;this.X=!1;this.W=new g.zw(function(){g.ts(M.element,"ytp-menuitem-highlighted")},0); this.xi=n.Bk();n=n.D("delhi_modern_web_player_icons")?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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(n);this.subscribe("select",this.Z,this);this.listen(B8,this.J);g.Z(this,this.W)}; AV=function(n){hV.call(this,n);var q=this;this.X=!1;n.addEventListener("settingsMenuInitialized",function(){pcd(q)}); n.addEventListener("highlightSettingsMenu",function(M){pcd(q);var t=q.menuItem;M==="menu_item_cinematic_lighting"&&(g.MN(t.element,"ytp-menuitem-highlighted"),g.MN(t.element,"ytp-menuitem-highlight-transition-enabled"),t.W.start())}); vo(n,"updateCinematicSettings",function(M){q.updateCinematicSettings(M)})}; pcd=function(n){n.menuItem||(n.menuItem=new DO(n.api),g.Z(n,n.menuItem),n.menuItem.Cm(n.X))}; nyJ=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"applicationvideodatachange",function(M,t){t=t.clipConfig;M==="dataloaded"&&t&&t.startTimeMs!=null&&t.endTimeMs!=null&&q.api.setLoopRange({startTimeMs:Math.floor(Number(t.startTimeMs)),endTimeMs:Math.floor(Number(t.endTimeMs)),postId:t.postId,type:"clips"})})}; mi=function(n){hV.call(this,n);this.events=new g.f8(n);g.Z(this,this.events);vo(n,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));vo(n,"setCreatorEndscreenHideButton",this.X.bind(this))}; qMu=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"videodatachange",function(){var M=q.api.isHdr()||q.api.D("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";q.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",M);M=q.api.D("delhi_modern_web_player_compact_controls");var t=q.api.getRootNode(),c=M?"8px":"12px",Y=M?"56px":"72px",G=M?"48px":"56px",k=M?"12px":"20px",b=M?"72px":"96px";t.style.setProperty("--yt-delhi-pill-height", M?"40px":"48px");t.style.setProperty("--yt-delhi-pill-top-height",c);t.style.setProperty("--yt-delhi-bottom-controls-height",Y);t.style.setProperty("--yt-delhi-big-mode-pill-height",G);t.style.setProperty("--yt-delhi-big-mode-pill-top-height",k);t.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",b)})}; $z=function(n,q,M,t,c){var Y=n.D("html5_enable_new_audio_settings_menu");H8.call(this,"Volumen estable",Y?MWJ.gy:g.u6.gy);this.G=n;this.Z=q;this.W=M;this.hasDrcAudioTrack=t;this.getDrcState=c;this.enableNewAudioSettingsMenu=this.X=!1;g.MN(this.element,"ytp-drc-menu-item");this.xi=(this.enableNewAudioSettingsMenu=Y)?n.Bk().Wh:n.Bk();n.addEventListener("videodatachange",this.BA.bind(this));n.D("mta_drc_mutual_exclusion_removal")&&this.V(n,"onPlaybackAudioChange",this.BA);n.D("html5_enable_audio_ve_logging")&& (n.createClientVe(this.element,this,273317),this.listen("click",this.S));q=this.W()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(n=n.D("delhi_modern_web_player_icons")?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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(n));this.subscribe("select",this.J,this);this.enableNewAudioSettingsMenu?this.BA():(this.setEnabled(this.hasDrcAudioTrack()),LI(this,q),this.xi.Qa(this))}; FF=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);n.D("html5_show_drc_toggle")&&n.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new $z(q.api,q.setDrcUserPreference.bind(q),q.getDrcUserPreference.bind(q),q.wz.bind(q),q.getDrcState.bind(q)),g.Z(q,q.menuItem))}); vo(this.api,"setDrcUserPreference",function(t){q.setDrcUserPreference(t)}); vo(this.api,"getDrcUserPreference",function(){return q.getDrcUserPreference()}); vo(this.api,"hasDrcAudioTrack",function(){return q.wz()}); vo(this.api,"getDrcState",function(){return q.getDrcState()}); var M;this.X=(M=g.vf("yt-player-drc-pref"))!=null?M:1;this.updateEnvironmentData()}; ZO=function(n){hV.call(this,n);var q=this;this.X={};this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"videodatachange",function(){q.onVideoDataChange()}); this.events.V(n,g.CK("embargo"),function(M){q.api.Ul(!0);var t,c=(t=q.X[M.id])!=null?t:[];t=g.S(c);for(c=t.next();!c.done;c=t.next()){var Y=c.value;q.api.hideControls();q.api.gO("auth",2,"This video isn't available in your current playback area",gy({embargoed:1,id:M.id,idx:M.W,start:M.start}));c=void 0;(Y=(c=Y.embargo)==null?void 0:c.onTrigger)&&q.api.Km("innertubeCommand",Y)}})}; i9f=function(n,q){var M;return(M=q.onEnter)==null?void 0:M.some(n.W)}; tWJ=function(n,q){q=g.S(q);for(var M=q.next();!M.done;M=q.next()){M=M.value;var t=void 0,c=Number((t=M.playbackPosition)==null?void 0:t.utcTimeMillis)/1E3,Y=void 0;t=c+Number((Y=M.duration)==null?void 0:Y.seconds);Y="embargo_"+c;n.api.addUtcCueRange(Y,c,t,"embargo",!1);M.onEnter&&(n.X[Y]=M.onEnter.filter(n.W))}}; a5=function(n){hV.call(this,n);var q=this;this.X=[];this.events=new g.f8(n);g.Z(this,this.events);vo(n,"addEmbedsConversionTrackingParams",function(M){q.addEmbedsConversionTrackingParams(M)}); this.events.V(n,"veClickLogged",function(M){q.api.hasVe(M)&&(M=M.visualElement.getAsJspb(),M=vW(M,2),q.X.push(M))})}; ccd=function(n){hV.call(this,n);vo(n,"isEmbedsShortsMode",function(){return n.isEmbedsShortsMode()})}; YMf=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"initialvideodatacreated",function(M){Yy(cR(),16623);q.X=g.ye();var t=n.T().i7&&!M.Ku;if(Nm(M)&&t){Yy(cR(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(M.getWatchNextResponse()){var c,Y=(c=M.getWatchNextResponse())==null?void 0:c.trackingParams;Y&&K9(Y)}if(M.getPlayerResponse()){var G;(M=(G=M.getPlayerResponse())==null?void 0:G.trackingParams)&&K9(M)}}else Yy(cR(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),M.getEmbeddedPlayerResponse()&&(G=(Y=M.getEmbeddedPlayerResponse())==null?void 0:Y.trackingParams)&&K9(G)}); this.events.V(n,"loadvideo",function(){Yy(cR(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:q.X})}); this.events.V(n,"cuevideo",function(){Yy(cR(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:q.X})}); this.events.V(n,"largeplaybuttonclicked",function(M){Yy(cR(),27240,M.visualElement)}); this.events.V(n,"playlistnextbuttonclicked",function(M){Yy(cR(),27240,M.visualElement)}); this.events.V(n,"playlistprevbuttonclicked",function(M){Yy(cR(),27240,M.visualElement)}); this.events.V(n,"playlistautonextvideo",function(){Yy(cR(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; R5=function(n,q){g.F.call(this);var M=this;this.X=null;this.Z=q;q=[];for(var t=0;t<=100;t++)q.push(t/100);q={threshold:q,trackVisibility:!0,delay:1E3};(this.W=window.IntersectionObserver?new IntersectionObserver(function(c){c=c[c.length-1];var Y=null;typeof c.isVisible==="undefined"?document.visibilityState==="visible"&&c.isIntersecting&&c.intersectionRatio>0?Y=c.intersectionRatio:document.visibilityState==="hidden"?Y=0:Y=null:Y=c.isVisible?c.intersectionRatio:0;Y!=null&&(Y=Math.max(Y,0),Y=Math.min(Y, 1));M.X=Y;typeof M.Z==="function"&&M.Z(M.X)},q):null)&&this.W.observe(n)}; Kk_=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"applicationInitialized",function(){GFj(q)})}; GFj=function(n){var q=n.api.getRootNode(),M,t=n.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((M=q.parentElement)==null?void 0:M.parentElement)||q:q;n.X=new R5(t,function(c){c!=null&&(n.api.T().I2=c,n.api.T().Fw="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.Z(n,n.X);n.events.V(n.api,"videoStatsPingCreated",function(c){var Y=n.X;Y=Y.X==null?null:Math.round(Y.X*100)/100;c.inview=Y!=null?Y:void 0;Y=n.api.getPlayerSize();if(Y.height>0&&Y.width>0){Y=[Math.round(Y.width),Math.round(Y.height)];var G=g.IW();G>1&&Y.push(G);Y=Y.join(":")}else Y=void 0;c.size=Y})}; kFJ=function(n){var q;return((q=((n==null?void 0:n.messageRenderers)||[]).find(function(M){return!!M.timeCounterRenderer}))==null?void 0:q.timeCounterRenderer)||null}; o5=function(n){g.w.call(this,{j:"div",aL:["ytp-player-content","ytp-iv-player-content"],L:[{j:"div",Y:"ytp-free-preview-countdown-timer",L:[{j:"span",Wb:"{{label}}"},{j:"span",Y:"ytp-free-preview-countdown-timer-separator",Wb:"\u2022"},{j:"span",Wb:"{{duration}}"}]}]});this.api=n;this.X=null;this.Z=this.W=0;this.V(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; dld=function(n,q){n.X||(n.W=q,n.Z=(0,g.jt)(),n.X=new g.wE(function(){b9s(n)},null),b9s(n))}; b9s=function(n){var q=Math,M=q.round,t=Math.min((0,g.jt)()-n.Z,n.W);q=M.call(q,(n.W-t)/1E3);n.updateValue("duration",Qz({seconds:q}));q<=0&&n.X?n.stopTimer():n.X&&n.X.start()}; NXm=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"basechromeinitialized",function(){q.X=new o5(n);g.Z(q,q.X);g.qW(n,q.X.element,4);q.X.hide()})}; w6=function(n){g.w.call(this,{j:"button",aL:["ytp-fullerscreen-edu-button","ytp-button"],L:[{j:"div",aL:["ytp-fullerscreen-edu-text"],Wb:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{j:"div",aL:["ytp-fullerscreen-edu-chevron"],L:[{j:"svg",K:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",K:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],K:{"data-priority":"2"}});this.oL=n;this.fade=new g.QX(this,250,void 0,100);this.W=this.X= !1;n.createClientVe(this.element,this,61214);g.Z(this,this.fade);this.V(n,"fullscreentoggled",this.Cm);this.V(n,"presentingplayerstatechange",this.Cm);this.listen("click",this.onClick);this.Cm()}; z6=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);vo(this.api,"updateFullerscreenEduButtonSubtleModeState",function(t){q.updateFullerscreenEduButtonSubtleModeState(t)}); vo(this.api,"updateFullerscreenEduButtonVisibility",function(t){q.updateFullerscreenEduButtonVisibility(t)}); var M=n.T();n.D("external_fullscreen_with_edu")&&M.externalFullscreen&&j0(M)&&M.controlsType==="1"&&this.events.V(n,"standardControlsInitialized",function(){q.X=new w6(n);g.Z(q,q.X);n.a$(q.X)})}; O91=function(n){g.w.call(this,{j:"div",Y:"ytp-gated-actions-overlay",L:[{j:"div",Y:"ytp-gated-actions-overlay-background",L:[{j:"div",Y:"ytp-gated-actions-overlay-background-overlay"}]},{j:"button",aL:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],K:{"aria-label":"Cerrar"},L:[g.ed()]},{j:"div",Y:"ytp-gated-actions-overlay-bar",L:[{j:"div",Y:"ytp-gated-actions-overlay-text-container",L:[{j:"div",Y:"ytp-gated-actions-overlay-title",Wb:"{{title}}"},{j:"div",Y:"ytp-gated-actions-overlay-subtitle", Wb:"{{subtitle}}"}]},{j:"div",Y:"ytp-gated-actions-overlay-button-container"}]}]});var q=this;this.api=n;this.background=this.JE("ytp-gated-actions-overlay-background");this.W=this.JE("ytp-gated-actions-overlay-button-container");this.X=[];this.V(this.JE("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){q.api.Km("onCloseMiniplayer")}); this.hide()}; ebd=function(n,q){var M=0;M=0;for(var t={};M c&&(c=k.width,Y="url("+k.url+")")}M.background.style.backgroundImage=Y;ebd(M,t.actionButtons||[]);M.show()}else M.hide()}); g.qW(this.api,this.X.element,4)}; JV=function(n){hV.call(this,n);var q=this;l3(this.api,"getSphericalProperties",function(){return q.getSphericalProperties()}); l3(this.api,"setSphericalProperties",function(){q.setSphericalProperties.apply(q,g.EJ(g.Fm.apply(0,arguments)))}); T1(this.api,"getSphericalProperties",function(){return q.api.getPresentingPlayerType()===2?{}:q.getSphericalProperties()}); T1(this.api,"setSphericalProperties",function(){var M=g.Fm.apply(0,arguments);q.api.getPresentingPlayerType()!==2&&q.setSphericalProperties.apply(q,g.EJ(M))})}; V_=function(n){hV.call(this,n);vo(n,"createClientVe",this.createClientVe.bind(this));vo(n,"createServerVe",this.createServerVe.bind(this));vo(n,"destroyVe",this.destroyVe.bind(this));vo(n,"hasVe",this.hasVe.bind(this));vo(n,"logClick",this.logClick.bind(this));vo(n,"logVisibility",this.logVisibility.bind(this));vo(n,"setTrackingParams",this.setTrackingParams.bind(this))}; xz=function(n){this.W={};this.X={};this.videoData=n;var q;this.Z=((q=n.Z)==null?void 0:q.W)||[];n=g.S(CI);for(q=n.next();!q.done;q=n.next())q=q.value,this.W[q]=oV(this.Z,r6[q].QL);this.n1()}; hb1=function(n,q){var M=q.getAudioTrack();return M.id!=="und"?g.Pl(n,function(t){var c;return((c=t.tq)==null?void 0:c.name)===M.getLanguageInfo().name}):n}; ycs=function(n,q){return q.getUserAudio51Preference()?g.Pl(n,Wka):n}; XRC=function(n){return g.vf("yt-player-drc-pref")?g.Pl(n,sfs):n}; SMC=function(n){return qxm()===2?g.Pl(n,jfJ):n}; sfs=function(n){var q;return((q=n.audio)==null?void 0:q.X)===!0}; Wka=function(n){return C8(n)||ry(n)}; IGJ=function(n){return n.tq!==void 0}; jfJ=function(n){var q;return((q=n.audio)==null?void 0:q.W)===!0}; Q_=function(n,q,M,t){function c(G){var k=!(G.status!==204&&G.status!==200&&!G.response),b;G={succ:""+ +k,rc:G.status,lb:((b=G.response)==null?void 0:b.byteLength)||0,rt:((0,g.jt)()-Y).toFixed(),shost:g.bm(n),trigger:q};fGC(G,n);M&&M(G);t&&!k&&t(new g.eV("pathprobe.net",G))} var Y=(0,g.jt)();g.X$(n,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:c,onTimeout:c})}; fGC=function(n,q){var M;((M=window.performance)==null?0:M.getEntriesByName)&&(q=performance.getEntriesByName(q))&&q.length&&(q=q[0],n.pedns=(q.domainLookupEnd-q.startTime).toFixed(),n.pecon=(q.connectEnd-q.domainLookupEnd).toFixed(),n.perqs=(q.requestStart-q.connectEnd).toFixed(),H9j&&(n.perqsa=q.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; Lkj=function(n){H9j=n}; pI=function(n,q){this.iz=n;this.policy=q;this.playbackRate=1}; Pvu=function(n,q){var M=Math.min(2.5,Vt(n.iz));n=nn(n);return q-M*n}; q$=function(n,q,M,t,c){c=c===void 0?!1:c;if(n.policy.Jz)return Math.ceil(n.policy.Jz*q);n.policy.J4&&(t=Math.abs(t));t/=n.playbackRate;var Y=1/x$(n.iz);M=Math.max(.9*(t-3),Vt(n.iz)+n.iz.W.X*Y)/Y*.8/(q+M);M=Math.min(M,t);n.policy.R2>0&&c&&(M=Math.max(M,n.policy.R2));return vyu(n,M,q)}; vyu=function(n,q,M){return Math.ceil(Math.max(Math.max(n.policy.wP,n.policy.BZ*M),Math.min(Math.min(n.policy.AE,31*M),Math.ceil(q*M))))||n.policy.wP}; TXu=function(n,q,M){M=q$(n,q.X.info.Bb,M.X.info.Bb,0);var t=Vt(n.iz)+M/x$(n.iz);return Math.max(t,t+n.policy.pG-M/q.X.info.Bb)}; nn=function(n){return x$(n.iz,!n.policy.WR,n.policy.PZ)}; M$=function(n){return nn(n)/n.playbackRate}; iD=function(n,q,M){var t=n.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],c=n.policy.playbackStartPolicy.startMinReadaheadPolicy||[];n=Infinity;q=g.S(q&&t.length>0?t:c);for(t=q.next();!t.done;t=q.next())t=t.value,c=t.minReadaheadMs||0,M<(t.minBandwidthBytesPerSec||0)||n>c&&(n=c);return n0&&(this.W=M.hj)}; u4U=function(n,q,M,t,c){if(!t.info.J){if(M.length===0)M.push(t);else{var Y;(n=(Y=M.pop())==null?void 0:g.H$(Y,t))?M.push(n):M.push(t)}return c}var G;(M=(G=M.pop())==null?void 0:g.H$(G,t))||(M=t);if(M.info.W)return n.logger&&n.logger({incompleteSegment:M.info.Sc()}),c;t=n.yI(M);c=t.zs;t={clipId:t.clipId,formatId:t.formatId,startTimeMs:t.startTimeMs,durationMs:t.h7,J9:c,Je:c};c=lGJ(q,t.startTimeMs);if(Y=M=c>=0?q[c]:null){Y=t;var k=c;G=M.startTimeMs+M.durationMs;var b=Y.startTimeMs+Y.durationMs;if(Y.startTimeMs- G>n.W)Y=!1;else if(Ulj(n,M.formatId,Y.formatId))M.durationMs=Math.max(G,b)-M.startTimeMs,M.Je=Math.max(M.Je,Y.Je),Y=!0;else if(Math.abs(M.startTimeMs-Y.startTimeMs)<=n.W)if(M.durationMs>Y.durationMs+n.W){var d=M.formatId,N=M.J9;k=M.Je;M.formatId=Y.formatId;M.durationMs=Y.durationMs;M.J9=Y.J9;M.Je=Y.Je;Y.formatId=d;Y.startTimeMs=b;Y.durationMs=G-b;Y.J9=N;Y.Je=k;Y=!1}else M.formatId=Y.formatId,Y=!0;else G>Y.startTimeMs&&(G>b&&(q.splice(k+1,0,{formatId:M.formatId,startTimeMs:b,durationMs:G-b,J9:Y.Je+ 1,Je:M.Je}),n.logger&&n.logger({splitOldStart:(d=M.startTimeMs)==null?void 0:d.toFixed(3),splitOldEnd:G==null?void 0:G.toFixed(3),splitNewStart:(N=Y.startTimeMs)==null?void 0:N.toFixed(3),splitNewEnd:b==null?void 0:b.toFixed(3)})),M.durationMs=Y.startTimeMs-M.startTimeMs,M.Je=Y.J9-1),Y=!1}Y?t=M:(c+=1,q.splice(c,0,t));d=0;for(N=c+1;N=b+M.W?M=!0:k+M.W=0?n:-n-2}; BXa=function(n,q){if(n.Pg){var M=n.Pg.Xm();if(M.length!==0){if(n.Z&&q){var t=n.Z,c=t.info.S;!kG(M,c)&&t.info.B>0&&(0,g.jt)()-n.C<5E3&&(n.logger&&n.logger({dend:t.info.Sc()}),M=uB_(M,c,c+.01))}n.policy.J_&&n.logger&&n.logger({cbri:""+n.X});t=[];for(var Y=c=0;c=G){var N=Object.assign({},n.pn[Y]),O=n.fm.Z.get(rV(n.pn[Y].formatId)),e=Math.max(b,G);G=O.index.HH(e+n.W/ 1E3);b=O.index.getStartTime(G);var E=G+ +(Math.abs(b-e)>n.W/1E3);e=E+n.J;E=O.index.getStartTime(E)*1E3;Y!==n.X||q?(N.J9=e,N.startTimeMs=E):(n.logger&&n.logger({pEvict:"1",og:N.startTimeMs,adj:b*1E3}),N.J9=G+n.J,N.startTimeMs=b*1E3);G=void 0;b=((G=n.Z)==null?void 0:G.info.duration)||11;Y===n.X&&kn.W/1E3);G=b+n.J;O=O.index.l2(b)*1E3;N.Je=G;N.durationMs=O-N.startTimeMs;N.J9<=N.Je&&t.push(N)}d=0&&kX(n.audioTrack,n.targetTime)>=0&&Y?((n.videoTrack.S||n.audioTrack.S)&&n.loader.Xy("iterativeSeeking",{status:"done",count:n.seekCount}),n.videoTrack.S=!1,n.audioTrack.S=!1):t&&g.L1(function(){if(n.X||!n.policy.uG)N$(n);else{var G=q.startTime,k=q.duration;if(!n.policy.S){var b=M?n.videoTrack.S:n.audioTrack.S,d=n.videoTrack.C!==-1&&n.audioTrack.C!==-1,N=n.targetTime>=G&&n.targetTime432E3&&DGC(n.fm);n.W&&(c=n.W,n.W=0);g.L1(function(){n.policy.S||O1(n,c,102)}); n.loader.Xy("initManifestlessSync",{st:c,ost:c+n.loader.NP(),a:n.audioTrack.C,v:n.videoTrack.C});n.Z&&(n.Z.resolve(c+.1),n.Z=null);n.policy.S&&O1(n,c,102)}}}; E1=function(n,q){var M=this;this.Im=n;this.requestNumber=++VWf;this.X=this.now();this.B=this.U=NaN;this.N=this.X;this.Z=this.O9=this.S=0;this.C=this.X;this.eX=this.RL=this.nm=this.JQ=this.yS=this.jX=this.W=this.J=0;this.xl=this.isActive=!1;this.Fh=this.Ux=0;this.vg={Mgg:function(){return M.DW}}; this.iz=q.iz;this.snapshot=U7C(this.iz);this.policy=this.iz.W;this.yf=!!q.yf;this.H5=q.H5;this.yC=q.yC||0;this.r8=q.r8||0;q.Uc&&(this.IL=new $$);var t;this.DW=(t=q.DW)!=null?t:!1;this.yf||v1C(this.iz)}; Cvf=function(n){n.nm=Math.max(n.nm,n.S-n.yS);n.RL=Math.max(n.RL,n.N-n.JQ);n.jX=0}; h$=function(n,q,M){TAs(n.iz,q);n.IL&&(n.IL.add(Math.ceil(q)-Math.ceil(n.N)),n.IL.add(Math.max(0,Math.ceil(M/1024)-Math.ceil(n.S/1024))));var t=q-n.N,c=M-n.S;n.O9=c;n.eX=Math.max(n.eX,c/(t+.01)*1E3);n.N=q;n.S=M;n.jX&&M>n.jX&&Cvf(n)}; WE=function(n,q){n.url=q;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; yR=function(n,q){E1.call(this,n,q);this.Wg=this.Yi=!1;this.SX=this.wJ=Infinity;this.rJ=NaN;this.uG=!1;this.Yl=NaN;this.Kd=this.AE=this.V1=0;this.yR=q.yR||1;this.i8=q.i8||this.yR;this.Kb=q.Kb;this.zs=q.zs;this.ac=q.ac;rcs(this);this.ES(this.X);this.QS=(this.Yl-this.X)/1E3}; xlu=function(n){var q=n.AE||n.V1;return q?n.snapshot.delay+Math.min(n.r8,(n.B-n.U)/1E3)+q:n.QS}; s1=function(n,q,M){if(!n.yf){q=Math.max(q,.01);var t=n.yC?Math.max(q,M/n.yC):q,c=n.iz.W.Z;c&&(t=q,n.yC&&(t=Math.max(q,M/n.yC*c)));wh(n.iz,q,M,t)}}; Qfs=function(n){return(n.C-n.X)/1E3}; rcs=function(n){n.rJ=n.X+n.snapshot.delay*1E3;n.uG=!1}; Xz=function(n,q){if(n.Kb&&n.zs!==void 0&&n.ac!==void 0){var M=Math,t=M.min,c=n.wJ;var Y=n.Kb;var G=n.X;if(pRa(Y,n.zs))Y=q;else{var k=0;Y.jA&&(k=.2);Y=G+(Y.r8+k)*1E3}n.wJ=t.call(M,c,Y);M=Math;t=M.min;c=n.SX;Y=n.Kb;G=n.X;k=nMJ(Y,n.zs,n.ac);k!==2&&(q=k?q:G+Y.r8*1E3,Y.jA&&(q+=Y.r8*1E3));n.SX=t.call(M,c,q);n.wJ<=n.X?rcs(n):(n.rJ=n.wJ,n.uG=!0)}}; qAa=function(n,q){if(q+1<=n.totalLength){var M=db(n,q);M=M<128?1:M<192?2:M<224?3:M<240?4:5}else M=0;if(M<1||!(q+M<=n.totalLength))return[-1,q];if(M===1)n=db(n,q++);else if(M===2)M=db(n,q++),n=db(n,q++),n=(M&63)+64*n;else if(M===3){M=db(n,q++);var t=db(n,q++);n=db(n,q++);n=(M&31)+32*(t+256*n)}else if(M===4){M=db(n,q++);t=db(n,q++);var c=db(n,q++);n=db(n,q++);n=(M&15)+16*(t+256*(c+256*n))}else M=q+1,n.focus(M),Ko(n,M,4)?n=F8k(n).getUint32(M-n.Z,!0):(t=db(n,M+2)+256*db(n,M+3),n=db(n,M)+256*(db(n,M+1)+ 256*t)),q+=5;return[n,q]}; jp=function(n){this.Im=n;this.X=new tN}; Sp=function(n,q){this.info=n;this.callback=q;this.state=1;this.fv=this.Js=!1;this.aQ=null}; MfR=function(n){return g.yD(n.info.Ex,function(q){return q.type===3})}; II=function(n,q,M,t){var c=this;t=t===void 0?{}:t;this.policy=q;this.Im=M;this.status=0;this.X=new tN;this.W=0;this.qm=this.J=this.Z=!1;this.xhr=new XMLHttpRequest;this.xhr.open(t.method||"GET",n);if(t.headers)for(n=t.headers,q=g.S(Object.keys(n)),M=q.next();!M.done;M=q.next())M=M.value,this.xhr.setRequestHeader(M,n[M]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return c.zA()}; this.xhr.onload=function(){return c.onDone()}; this.xhr.onerror=function(){return c.onError()}; this.xhr.fetch(function(Y){c.X.append(Y);c.W+=Y.length;Y=(0,g.jt)();c.Im.SQ(Y,c.W)},function(){},t.body||null)}; iS_=function(n,q){this.W=(new TextEncoder).encode(n);this.X=(new TextEncoder).encode(q)}; JOJ=function(n,q){var M;return g.u(function(t){if(!q)return t.return(q);M=new g.dc(n.W);return t.return(M.encrypt(q,n.X))})}; QFJ=function(n,q){var M;return g.u(function(t){if(t.X==1){if(!q)return t.return(q);M=new g.dc(n.W);return g.U(t,M.decrypt(q,n.X),2)}return t.return(t.W)})}; tfR=function(n,q){var M=this;this.X=n;this.Im=q;this.loaded=this.status=0;this.error="";n=pS(this.X.get("range")||"");if(!n)throw Error("bad range");this.range=n;this.W=new tN;this.run().then(function(){M.Im.RN()},function(t){M.error=""+t||"unknown_err"; M.Im.RN()})}; YAs=function(n,q,M,t){var c=this;t=t===void 0?{}:t;this.policy=q;this.Im=M;this.N=t;this.status=0;this.response=void 0;this.W=0;this.S=this.C=!1;this.errorMessage="";this.U=function(Y){if(Y)if(c.status=Y.status,Y.ok&&Y.body&&c.status!==204)c.status=c.status||242,c.Z=Y.body.getReader(),c.qm()?c.Z.cancel().catch(function(){}):(c.responseHeaders=Y.headers,c.Im.P5(),cGu(c)); else c.onDone();else c.onError(Error("null_response"))}; this.B=function(Y){var G=(0,g.jt)();c.qm()||(Y.done?(c.Z=void 0,c.onDone()):(Y=Y.value,c.W+=Y.length,c.X.append(Y),cGu(c),c.Im.SQ(G,c.W)))}; this.onError=function(Y){c.errorMessage=String(Y);c.C=!0;c.onDone()}; this.X=new tN;this.J=window.AbortController?new AbortController:void 0;this.start(n)}; cGu=function(n){n.Z.read().then(n.B,n.onError).then(void 0,iQ)}; GBU=function(n,q,M){var t=this;M=M===void 0?{}:M;this.Im=q;this.W=this.status=0;this.qm=this.X=!1;this.xhr=new XMLHttpRequest;this.xhr.open(M.method||"GET",n);if(M.headers){n=M.headers;q=g.S(Object.keys(n));for(var c=q.next();!c.done;c=q.next())c=c.value,this.xhr.setRequestHeader(c,n[c])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(Y){t.zA(Y)}; n=n9(function(Y){t.onDone(Y)}); this.xhr.addEventListener("load",n,!1);this.xhr.addEventListener("error",n,!1);M.body?this.xhr.send(M.body):this.xhr.send();this.xhr.addEventListener("progress",n9(function(Y){t.onProgress(Y)}),!1)}; fn=function(n,q,M,t,c){if(rX(n.eL))return new tfR(n,M);n=n.Ag();return t?wHj()?new II(n,q,M,c):new YAs(n,q,M,c):new GBU(n,M,c)}; HE=function(n,q){g.F.call(this);var M=this;this.policy=n;this.Ex=q;this.W=0;this.X=null;this.T0=[];this.Z=null;this.vg={kV:function(){return M.Ex}}; this.Ex.length===1||g.yD(this.Ex,function(t){return!!t.range})}; Ln=function(n,q,M){n.X&&(cY(n.X,q),q=n.X,n.X=null);for(var t=0,c=0,Y=g.S(n.Ex),G=Y.next();!G.done;G=Y.next())if(G=G.value,G.range&&t+G.Z<=n.W)t+=G.Z;else{if(ih(G)&&!M&&n.W+q.totalLength-c=400?(n.lastError="net.badstatus",!0):(c===void 0?0:c)?(n.lastError="ump.spsrejectfailure",!0):M||t!==void 0&&t?!1:(n.lastError=q===204?"net.nocontent":"net.connect",!0)}; uD=function(n,q){if(n.policy.Sh)return!1;var M=q.getResponseHeader("content-type"),t=q.Pa();n=!t||t<=n.policy.tj;return(!q.R3()||!M||M.indexOf("text/plain")!==-1)&&n}; OSJ=function(n,q){var M="";q=q.YW();q.totalLength<=n.policy.tj&&(M=NVs(n,kV(q)));return M}; NVs=function(n,q){var M=O4(q);return RJ(M)?(n.logger.debug(function(){return"Redirecting to "+M}),M):""}; vE=function(n){return o$(n.J,C9(n.GU.eL))}; gMf=function(n){var q=n.timing.nC();q.shost=C9(n.GU.eL);return q}; ers=function(n,q){return(n==null?void 0:n.maxWidth)>(q==null?void 0:q.maxWidth)||(n==null?void 0:n.maxHeight)>(q==null?void 0:q.maxHeight)}; EMu=function(n,q){for(var M=g.S(q.keys()),t=M.next();!t.done;t=M.next())if(t=q.get(t.value),t.length!==0){g.Vs(t,function(k,b){return b.maxFramerate-k.maxFramerate}); for(var c=[t[0]],Y=0,G=1;Gn.X||M.push(t)}return M}; BE=function(n,q,M){var t=yGj[n]||[];M.D("html5_shorts_onesie_mismatched_fix")&&(t=s$s[n]||[]);q.push.apply(q,g.EJ(t));M.D("html5_early_media_for_drm")&&q.push.apply(q,g.EJ(XaC[n]||[]))}; Lrs=function(n,q){var M=g.AK(n),t=n.T(),c=t.S;t=t.D("html5_shorts_onesie_mismatched_fix");var Y=n.m4();if(t){if(!c.W){if(Y&&DK)return DK;if(A$)return A$}}else if(A$&&!c.W)return A$;var G=[],k=[],b={},d=mU.concat(j$f);t&&(d=mU.concat(SAs));n.D("html5_early_media_for_drm")&&(d=d.concat(IZU),n.D("allow_vp9_1080p_mq_enc")&&d.push(fZU));var N=[].concat(g.EJ(HSj));n.D("html5_iamf_audio_onesie_fmt")&&N.push(["773"]);d=g.S(d);for(var O=d.next();!O.done;O=d.next()){var e=!1;O=g.S(O.value);for(var E=O.next();!E.done;E= O.next()){E=E.value;var h=A8(E,Y&&t);if(h&&h.video&&!(Vv(h)&&!M.jX&&h.video.qualityOrdinal>M.zr)){var I=g.ic(n.T().experiments,"html5_drm_byterate_soft_cap");I>0&&lqa(h)&&h.Bb>I||(e?(G.push(E),BE(E,G,n)):(h=$y(M,h,c),h===!0?(e=!0,G.push(E),BE(E,G,n)):b[E]=h))}}}N=g.S(N);for(d=N.next();!d.done;d=N.next())for(d=g.S(d.value),e=d.next();!e.done;e=d.next())if(e=e.value,(O=tbd(e))&&O.audio&&(n.D("html5_onesie_51_audio")||!C8(O)&&!ry(O)))if(O=$y(M,O,c),O===!0){k.push(e);BE(e,k,n);break}else b[e]=O;if(!n.D("html5_enable_audio_quality_setting"))for(n= g.S(["141","774"]),N=n.next();!N.done;N=n.next())N=N.value,k.includes(N)&&(g.fQ(k,N),b[N]="blkhqa");M.W&&q("orfmts",b);if(t)return c.W&&(c.W=!1,DK=A$=void 0),Y?DK={video:G,audio:k}:A$={video:G,audio:k};A$={video:G,audio:k};c.W=!1;return A$}; g.TVm=function(n,q,M){var t=M.S,c=[],Y=[],G=M.D("html5_shorts_onesie_mismatched_fix");n=n.m4();var k=mU.concat(j$f);G&&(k=mU.concat(SAs));M.D("html5_early_media_for_drm")&&(k=k.concat(IZU),M.D("allow_vp9_1080p_mq_enc")&&k.push(fZU));var b=[].concat(g.EJ(HSj));M.D("html5_iamf_audio_onesie_fmt")&&b.push(["773"]);k=g.S(k);for(var d=k.next();!d.done;d=k.next()){d=g.S(d.value);for(var N=d.next();!N.done;N=d.next()){N=N.value;var O=A8(N,n&&G);if(O&&O.video){var e=g.ic(M.experiments,"html5_drm_byterate_soft_cap"); if(!(e>0&&lqa(O)&&O.Bb>e)&&$y(q,O,t)===!0){c.push({videoCodec:PIj[Rc[N]],maxWidth:O.video.width,maxHeight:O.video.height,maxFramerate:O.video.fps});break}}}}G=g.S(b);for(n=G.next();!n.done;n=G.next())for(n=g.S(n.value),b=n.next();!b.done;b=n.next())if(b=b.value,(k=tbd(b))&&k.audio&&(M.D("html5_onesie_51_audio")||!C8(k)&&!ry(k))&&$y(q,k,t)===!0){Y.push({audioCodec:vMC[Rc[b]],numChannels:k.audio.numChannels});break}return{videoFormatCapabilities:c,audioFormatCapabilities:Y}}; uJd=function(n){var q,M={},t=n.Mm,c=n.pm,Y=t.getVideoData(),G=hc(0),k=t.getVisibilityState(),b;if((b=n.Bm)==null?0:b.yh)M.lM=c.lM;G&&(M.gly=G,M.lastManualDirection=Ccm(),G=w2s()||0,G>0&&(G=(c.D("html5_use_date_now_for_local_storage")?Date.now():(0,g.jt)())-G,c.D("html5_use_date_now_for_local_storage")?G>0&&(M.timeSinceLastManualFormatSelectionMs=G):M.timeSinceLastManualFormatSelectionMs=G));G=c.D("html5_use_streamer_bandwidth_for_low_latency_live")&&Y.isLowLatencyLiveStream;if(c.schedule.xl&&!G){var d; G=c.D("html5_disable_bandwidth_cofactors_for_sabr_live")?!((d=n.Bm)==null||!d.WR):!1;M.LW=x$(c.schedule,!G)}G=g.$J.medium;b=Math.floor(G*16/9);(d=Y.m4())||(Y.X&&Y.Z&&Y.Z.videoInfos.length!==0?(d=Y.Z.videoInfos[0],d=!!d.video&&d.video.width0?{authorizedFormats:n.authorizedFormats}:{authorizedFormats:q};n.sabrLicenseConstraint&&(M.cf.sabrLicenseConstraint=n.sabrLicenseConstraint);if(c.D("html5_onesie_media_capabilities")||c.D("html5_enable_server_format_filter"))M.iH= 3;c.D("html5_onesie_audio_only_playback")&&Uh(Y)&&(M.iH=1);var T;((T=n.Bm)==null?0:T.K8)&&n.Xby&&(M.iH=M.iH===void 0?7:M.iH|4);T=Y.uI?Y.uI:g.AK(Y);c.D("html5_onesie_media_capabilities")&&(M.mediaCapabilities=g.TVm(Y,T,c));var v;if((v=n.Bm)==null?0:$X(v)){O=c.S;v=[];q=[];e=new Map;E=Array.from(O.X.values());E=g.S(E);for(h=E.next();!h.done;h=E.next())I=h.value,I.OC?q.push({audioCodec:vMC[I.Ts],numChannels:I.numChannels,spatialCapabilityBitmask:lZ_[I.Ts]}):(L=PIj[I.Ts],h={videoCodec:L,maxWidth:I.maxWidth|| 0,maxHeight:I.maxHeight||0,maxFramerate:I.maxFramerate||0,is10BitSupported:I.dj||!1},I.maxBitrateBps&&(h.maxBitrateBps=I.maxBitrateBps,k=A8(I.itag),d=void 0,((d=k)==null?0:d.video)&&$y(T,k,O)===!0&&(k=k.Bb*8,k>h.maxBitrateBps&&(h.maxBitrateBps=k))),I=L+"_"+I.dj,L=e.get(I)||[],L.push(h),e.set(I,L));v=EMu(v,e);O={};c.D("html5_ssff_denylist_opus_low")&&(O={itagDenylist:[249,350]});M.mediaCapabilities={videoFormatCapabilities:v,audioFormatCapabilities:q,hdrModeBitmask:3,perPlaybackAttributes:O}}var B; if((B=n.Bm)==null?0:B.X){M.W$=T.W$;var m;M.zr=(m=n.Bm)==null?void 0:m.zr}c.h1&&(M.Vl=c.h1);M.P7=n.N1;M.HB=n.HB;M.Lg=n.Lg;M.n6=n.n6;n.qR&&(M.Iis=(0,g.jt)()-n.qR);n.qZ&&c.D("html5_report_prefetch_requests")&&(M.qZ=n.qZ);XH||(M.TJs=!0);B=Vt(c.schedule)*1E3;B>0&&(M.j0=B);var a;((a=n.Bm)==null?0:a.wE)&&n.OR&&n.OR0?x:c.schedule.interruptions[0]||0;var V;if((V=n.Bm)==null?0:V.O9)M.j7=n.j7;c.Yl&&(M.audioTrackId=c.Yl);E9(Y)&&!M.audioTrackId&&(c.D("html5_fill_default_mosaic_audio_track_id")||(n=nhk(Y),M.audioTrackId=n),Y==null||Y.Xy("misstrkchg",{"default":M.audioTrackId}));if(Y=vRJ())M.detailedNetworkType=UTJ[Y]||UTJ.other;c.D("html5_enable_voice_boost")&&(M.Tat=c.zd);return M}; Fz=function(n,q,M,t,c,Y,G){var k={};q&&(k.A$=q);if(!n)return k;k.playbackCookie=M==null?void 0:M.playbackCookie;c&&(k.CO=c);k.iE=[];k.G5=[];if(G==null?0:G.size)for(q=g.S(G.values()),M=q.next();!M.done;M=q.next())k.G5.push(M.value);if(n.sabrContextUpdates.size>0)for(q=g.S(n.sabrContextUpdates.values()),M=q.next();!M.done;M=q.next())BVk(k,M.value,t);D6(n)&&Y&&BVk(k,Y,t);t=n.T().X;k.clientInfo={clientName:DTs[t.c.toUpperCase()]||0};t.cbrand&&(k.clientInfo.deviceMake=t.cbrand);t.cmodel&&(k.clientInfo.deviceModel= t.cmodel);t.cver&&(k.clientInfo.clientVersion=t.cver);t.cos&&(k.clientInfo.osName=t.cos);t.cosver&&(k.clientInfo.osVersion=t.cosver);t=n.T();t.D("html5_sabr_enable_server_xtag_selection")&&t.Wm&&(k.clientInfo.hl=t.Wm);n.nR&&(k.nR=n.nR);return k}; BVk=function(n,q,M){var t=q.type||0;(M==null?0:M.has(t))?n.G5.push(q):n.iE.push(t)}; Gg=function(n,q,M,t,c,Y){var G=Y===void 0?{}:Y;var k=G.rN===void 0?[]:G.rN;var b=G.m2===void 0?!1:G.m2;var d=G.JY===void 0?0:G.JY;var N=G.poToken===void 0?"":G.poToken;var O=G.kY===void 0?void 0:G.kY;var e=G.Nr===void 0?"":G.Nr;var E=G.PH===void 0?0:G.PH;var h=G.f_===void 0?new Uint8Array(0):G.f_;var I=G.UV===void 0?!1:G.UV;Y=G.qo===void 0?0:G.qo;G=G.A$===void 0?void 0:G.A$;Sp.call(this,q,c);var L=this;this.policy=n;this.logger=new g.jr("dash/request");this.o$=this.YM=0;this.D4=!1;this.Ow=this.uT= null;this.Rp=!1;this.f_=this.PH=null;this.Zt=this.tX=!1;this.F6=null;this.qo=this.qy=0;this.pF=!1;this.vg={Va:function(v){L.Va(v)}, Afd:function(){return L.aQ}, Mly:function(v){L.aQ=v}, QOt:function(v){L.YM=v}, ktX:function(v){L.fn.lastError=v}, BQ:function(){return L.xhr}}; this.timing=new yR(this,M);this.m2=b;this.PH=E;this.f_=h;this.GU=g.N5(this.info,this.policy,t);this.GU.set("rn",this.AP().toString());this.GU.set("rbuf",(d*1E3).toFixed().toString());this.m2&&this.GU.set("smb","1");this.policy.F$&&N&&this.GU.set("pot",N);e&&this.GU.set("bbs",e);this.policy.useUmp&&!rX(this.GU.eL)&&(this.MK=new jp(this),this.GU.set("ump","1"),this.GU.set("srfvp","1"));if(n=this.policy.uM?this.policy.u9&&!isNaN(this.info.ac)&&this.info.ac>this.policy.YK?!1:!0:!1)q=null,this.policy.EB&& this.policy.ih?q=[1]:I&&(q=[]),q!=null&&(this.policy.h5&&q.push(2),this.GU.set("defsel",q.join(",")));this.fn=new PE(this,this.policy,this.GU,this.info.d7,this.timing,this.logger,t,O);this.rN=k||null;this.fv=AGm(this);KrU(this.fn);t=void 0;if(this.policy.cM||this.MK||this.policy.SX)t={method:"POST"},k=(0,g.ZK)([120,0]),O={},this.policy.Dw&&G&&(G=Fz(void 0,G),O.Ck=G),this.policy.p6&&this.f_&&(O.videoPlaybackUstreamerConfig=this.f_),this.policy.SX&&(G=this.info.J)&&Object.assign(O,G),Object.keys(O).length> 0?t.body=g.VN(O,g.Bt):t.body=k;if(this.PH&&this.f_){this.GU.set("iwts","1");t={method:"POST"};G={n6:this.PH*1E3};var T;k=(T=this.info.J)==null?void 0:T.MS;T=g.VN({F1:G,MS:k||void 0,videoPlaybackUstreamerConfig:this.f_},g.Bt);t.body=T}try{this.xhr=fn(this.GU,this.policy.B,this.timing,n,t),this.fn.W.start(),Y&&(this.GP=new g.zw(this.zL,Y,this),this.GP.start(Y+(this.timing.iz.B.BI()||0)*1E3)),this.policy.U7&&WE(this.timing,this.Ag()),this.logger.debug(function(){return"Sent, itag="+L.GU.get("itag")+ " seg="+L.info.Ex[0].zs+" range="+L.GU.get("range")+" time="+Math.round(L.info.Ex[0].S)+"-"+Math.round(g.Ws(L.info.Ex).C)+" rtp="+(L.timing.P2()-Date.now()).toFixed(0)}),g.L1(function(){})}catch(v){mTj(this,v,!0)}}; AGm=function(n){if(!(dm(n.info)&&n.info.DW()&&n.policy.VA&&n.rN)||n.info.d7.Z>=2||hc()>0||!pHd())return!1;var q=n.GU.get("aitags");if(!q)return!1;q=Td(q).split(",");for(var M=[],t=g.S(n.rN),c=t.next();!c.done;c=t.next())c=c.value,g.SS(q,c)&&M.push(c);if(!M.length)return!1;n.GU.set("altitags",g.Pg(M.join(",")));return!0}; mTj=function(n,q,M){M=M===void 0?!1:M;g.Ly(q);n.fn.lastError="player.exception";n.errorMessage=q.name+"_"+q.message;M?g.L1(function(){lD(n.fn)}):lD(n.fn)}; $TU=function(n,q){n.timing.xl=!0;n.xhr.R3()&&n.timing.V$();if(n.policy.Wm){var M;(M=n.GP)==null||M.stop()}Ln(n.aQ,q,!1)}; Fru=function(n,q){n.info=q;if(n.aQ){var M=n.aQ;q=q.Ex;(q.length!==M.Ex.length||q.length0){q=g.S(q.Ex);for(var M=q.next();!M.done;M=q.next()){var t=void 0;n+=((t=M.value.range)==null?void 0:t.length)||0}return n}if(q.En.length>0)for(M=g.S(q.En),t=M.next();!t.done;t=M.next())n+=t.value.OA||0;return n+q.SH}; Cn=function(n,q){if(zg){var M=0;n=n.ya.get(q);if(n==null||!n.Pe)return 0;n=g.S(n.Pe.values());for(q=n.next();!q.done;q=n.next())M+=q.value.data.totalLength;return M}return((M=n.ya.get(q))==null?void 0:M.T0.totalLength)||0}; rp=function(n,q){n=n.ya.get(q);if(zg){if(n==null||!n.Y7)return!1;q=n.Pe.size>0;return n.oC.length>0||q}return!(n==null||!n.Y7)&&!(n==null||!n.T0.totalLength)}; zrm=function(n,q){var M=n.ya.get(q),t=waC(n,q),c=!t&&!!M.bytesReceived;if(zg){var Y;if((Y=n.fm)==null?0:Y.r7){n=g.S(M.Pe.values());for(q=n.next();!q.done;q=n.next())if(!q.value.u6)return!1;return c}}else if(Y=n.xY(q),c&&n.X&&Y!==void 0)return Y;return(c||M.bytesReceived===t)&&M.qF+Cn(n,q)===M.bytesReceived}; JGf=function(n,q,M){n.ya.set(q,{T0:new tN,qF:0,bytesReceived:0,SH:0,Nx:!1,vI:!1,xY:!1,OC:M,Ja:[],Ex:[],En:[],Y7:!1,Pe:new Map,fk:new Map,oC:[]});n.logger.debug(function(){return"[initStream] formatId: "+q})}; Vf_=function(n,q,M,t){M.Ex.push.apply(M.Ex,g.EJ(t));if(zg){M.fk.has(q)||M.fk.set(q,[]);var c;(c=M.fk.get(q)).push.apply(c,g.EJ(t))}else if(M.aQ)for(n=g.S(t),q=n.next();!q.done;q=n.next())M.aQ.Ex.push(q.value);else{M.aQ=new HE(n.Bm,[].concat(g.EJ(M.Ex)));var Y;((Y=n.Bm)==null?0:Y.I2)&&g.Z(n,M.aQ)}}; CId=function(n,q,M){var t,c=(t=n.fm)==null?void 0:t.Z.get(q);if(!c)return[];if(M.U2){var Y;return((Y=c.yU(0,M.clipId))==null?void 0:Y.Ex)||[]}if(c.NK()){var G=M.startMs,k=M.durationMs;t=1E3;var b;if(((b=n.Bm)==null?0:b.X)&&M.timeRange){var d;G=(d=M.timeRange.startTicks)!=null?d:-1;var N;k=(N=M.timeRange.dh)!=null?N:-1;var O;t=(O=M.timeRange.timescale)!=null?O:-1}if(M.Lv<0||M.Us<0||k<0||G<0||M.OA<0||t<0)return VR(n,q),[];n=nu(M.Lv,M.OA);q=M.Xg||0;return[new M5(3,c,n,"makeSliceInfosMediaBytes",M.Us- 1,G/t,k/t,q,n.length-q,void 0,M.Tr,M.clipId)]}if(M.Us<0)return VR(n,q),[];var e;return((e=n.fm)==null?0:e.r7)?(q=c.Be,b=q*c.info.Bb,d=M.Xg,((k=n.Bm)==null?0:k.Bp)&&M.timeRange&&!d&&(G=M.timeRange.startTicks/M.timeRange.timescale),[new M5(3,c,void 0,"makeSliceInfosMediaBytes",M.Us,G,q,d,b,!0,M.Tr,M.clipId)]):[]}; rGs=function(n,q,M){n.fm=q;n.Bm=M;q=g.S(n.ya);for(M=q.next();!M.done;M=q.next()){var t=g.S(M.value);M=t.next().value;t=t.next().value;for(var c=g.S(t.Ja),Y=c.next();!Y.done;Y=c.next()){Y=Y.value;var G=CId(n,M,Y);Vf_(n,Y.Z2,t,G)}}}; xX=function(n,q,M,t){n.logger.debug(function(){return"[addStreamData] formatId: "+M+",headerId: "+q+" bytes: "+t.totalLength}); (n=n.ya.get(M))&&!n.vI&&(zg?(n.Pe.has(q)||n.Pe.set(q,{data:new tN,Iy:0,u6:!1}),cY(n.Pe.get(q).data,t)):cY(n.T0,t),n.bytesReceived+=t.totalLength,n.Nx=!0)}; J$=function(n,q){n.logger.debug(function(){return"[closeStream] formatId: "+q}); var M=n.ya.get(q);if(M&&!M.vI){M.vI=!0;if(M.onProgress)M.onProgress();xTd(n)&&n.J.K7()}}; xTd=function(n){n=g.S(n.ya.values());for(var q=n.next();!q.done;q=n.next())if(!q.value.vI)return!1;return!0}; Q$s=function(n){zg=n}; QR=function(n,q,M,t,c,Y,G){g.F.call(this);this.policy=n;this.info=q;this.fm=M;this.Im=c;this.logger=new g.jr("sabr");this.MK=new jp(this);this.nz=new oI(this);this.Xb=new wp(this);this.state=1;this.Gb=!1;this.US=0;this.clipId="";this.UQ=-1;this.Z4=0;this.PG=-1;this.Nw=this.pF=this.j2=!1;this.policy.CG?this.Jg=new aI(this,Y):this.Jg=new yR(this,Y);this.GU=this.policy.O9?q.nA:pau(q,this.policy,t);this.GU.set("rn",""+this.AP());this.GU.set("alr","yes");rGs(this.Xb,M,n);this.fn=new PE(this,this.policy, this.GU,q.d7,this.Jg,this.logger,t,G,this.policy.enableServerDrivenRequestCancellation);KrU(this.fn);var k;if((k=this.policy)==null?0:k.I2)g.Z(this,this.Xb),g.Z(this,this.fn);n=q.W;q={method:"POST",body:n};n&&(this.Z4=n.length);try{this.xhr=fn(this.GU,this.policy.B,this.Jg,XH,q),this.policy.U7&&WE(this.Jg,this.Ag()),this.fn.W.start()}catch(b){g.PJ(b)}}; nQJ=function(n){n.policy.Au&&n.Su&&!n.Nw?n.Nw=!0:n.Jg.V$()}; qbj=function(n,q){var M=-1,t=-1,c=-1,Y;if((Y=n.TG)==null?0:Y.items)for(n=g.S(n.TG.items),Y=n.next();!Y.done;Y=n.next())Y=Y.value,q=k,b=n.fm.isManifestless,G){var d;if(((d=n.X)==null?void 0:d.aI.event)==="predictStart"&&n.X.zsn.C&&(n.C=NaN,n.N=NaN);n.X&&n.X.zs===q?haJ(n,q,M,n.X,c):n.W===1&&Ma(n,5,"noad")}; Wcd=function(n,q,M,t,c){t.Tt?Ma(n,4,"cue"):(n.C=q,n.N=M,n.Xy("sdai",{joinad:n.W,sg:n.C,st:n.N.toFixed(3)}),n.U=Date.now(),Ma(n,2,n.W===3?"staftpred":"join"),c.e3(t.aI))}; haJ=function(n,q,M,t,c){if(c&&t){var Y=t.aI,G=c.rC(Y);Y.event==="predictStart"&&(n.RL=q);n.Xy("sdai",{onqevt:Y.event,sq:q,mt:M,gab:G,cst:Y.startSecs,cueid:n.policy.gY&&(G||Y.event==="start")?Y.identifier:void 0},!0);if(G)Y.event!=="predictStart"?(Y.event==="start"&&n.RL===q-1&&n.Xy("sdai",{gabonstart:q}),Wcd(n,q,M,t,c)):n.policy.ZU?Ma(n,3,"predict"):(q+=Math.max(Math.ceil(-Y.X/5E3),1),Y=Math.floor(M-Y.X/1E3),n.policy.W?n.S=Y:n.J=q,n.Xy("sdai",{onpred:M,estsq:q,estmt:Y.toFixed(3)}),i1(n.loader,Y,Y, q),n.U=Date.now(),Ma(n,3,"predict"),c.e3(t.aI));else if(n.W===1){var k;((k=n.Z)==null?0:k.yE(M))?(i1(n.loader,M,M,q),Ma(n,4,"sk2head")):Ma(n,5,"nogab")}else Y.event==="predictStart"?n.policy.W&&n.S>0?(M=Math.floor(M-Y.X/1E3),n.S!==M&&n.Xy("sdai",{updateSt:M,old:n.S}),n.S=M):n.J>0&&(M=q+Math.max(Math.ceil(-Y.X/5E3),1),n.J!==M&&(n.Xy("sdai",{updateSt:M,old:n.J}),n.J=M)):n.policy.ZU&&n.W===3&&Wcd(n,q,M,t,c)}else n.Xy("sdai",{nulldec:1,sq:q,mt:M.toFixed(3),evt:(t==null?void 0:(Y=t.aI)==null?void 0:Y.event)|| "none"})}; sXJ=function(n,q,M){if(n.policy.s5&&n.policy.W)return!(n.W===1||n.W===2||!n.policy.ZU&&n.W===3&&M>=n.J);if(n.W===1||n.W===2)return!1;if(n.W!==0&&q===n.audioTrack){if(n.policy.W)return yyf(n.videoTrack,M)||yyf(n.videoTrack,M+1);n=tL(n.videoTrack);if(M>(n?n.zs:-1))return!1}return!0}; cy=function(n,q,M){return(M<0||M===n.C)&&!isNaN(n.N)?n.N:q}; Oud=function(n,q){if(n.X){var M=n.X.aI.Dy-(q.startTime+n.B-n.X.aI.startSecs);M<=0||(M=new dV(n.X.aI.startSecs-(isNaN(n.B)?0:n.B),M,n.X.aI.context,n.X.aI.identifier,"stop",n.X.aI.X+q.duration*1E3),n.Xy("cuepointdiscontinuity",{segNum:q.zs}),qa(n,M,q.zs))}}; Ma=function(n,q,M){n.W!==q&&(n.Xy("sdai",{setsst:q,old:n.W,r:M}),n.W=q)}; Yk=function(n,q,M,t){(t===void 0?0:t)?Ma(n,1,"seek"):q>0&&Math.abs(q-M)>=5&&n.W===4&&Ma(n,5,"sk2t")}; X$s=function(n,q){var M=this;this.J=n;this.Xy=q;this.W="";this.Z=new Set;this.X=new Map;this.vg={TIy:function(){return M.Z}}}; jXj=function(n,q,M,t,c){if(n.X.has(q.identifier)){var Y=n.X.get(q.identifier);t>Y.Cg&&(Y.startTimeSecs=q.startSecs,Y.Dy=q.Dy,Y.event==="predictStart"&&Y.F5===5&&q.event!=="predictStart"&&(Y.Am=Date.now()),Y.event=q.event)}else Y={event:q.event,startTimeSecs:q.startSecs,Dy:q.Dy,cL:[],Cg:t,F5:0},n.X.set(q.identifier,Y);c&&Y.F5===0&&(c.rC(q)?Y.F5=5:(Y.F5=2,Y.Uj=""),Y.Am=Date.now(),Y.Cg=t);t>Y.Cg&&(c==null||c.rC(q),Y.Cg=t);n.S&&M>-1&&M1E4?(n.F5=1,!1):!0:!1}; fca=function(n){switch(n){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; GO=function(n,q,M){this.audio=n;this.video=q;this.reason=M}; KU=function(n,q,M){this.X=n;this.reason=q;this.token=M;this.videoId=void 0}; kk=function(n,q,M){g.F.call(this);this.policy=n;this.J=q;this.Xy=M;this.Z=new Map;this.S=0;this.C=!1;this.X="";this.W=!1}; b1=function(n,q,M){if(M===void 0?0:M)n.C=!0;++n.S;M=6E4*Math.pow(2,n.S);M=(0,g.jt)()+M;n.Z.set(q.info.id,M)}; dI=function(n){for(var q=g.S(n.Z.entries()),M=q.next();!M.done;M=q.next()){var t=g.S(M.value);M=t.next().value;t=t.next().value;t<(0,g.jt)()&&n.Z.delete(M)}return n.Z}; HuU=function(n){return n.C&&dI(n).size>0}; Na=function(n,q){n.X!==q&&(n.X=q,n.W=!0)}; Lca=function(n,q){var M;q&&(M=g.XO(n.J.X,function(c){return c.id===q})); if(!M&&(M=g.XO(n.J.X,function(c){var Y;return!((Y=c.tq)==null||!Y.isDefault)}),q)){var t; n.Xy("iaf",{id:q,sid:(t=M)==null?void 0:t.id})}return M}; gI=function(n,q,M,t,c,Y){var G=this;Y=Y===void 0?[]:Y;this.loader=n;this.wJ=q;this.policy=M;this.fm=t;this.C=c;this.eX=Y;this.logger=new g.jr("dash/abr");this.X=y3;this.Z=this.N=null;this.U=-1;this.SX=!1;this.nextVideo=this.W=null;this.J=[];this.AE=new Set;this.nm={};this.Yl=new Zj(1);this.B=0;this.V1=this.RL=this.xl=!1;this.jX=0;this.hE=!1;this.IL=new Set;this.rJ=!1;this.vg={r_:function(){Oz(G)}}; this.S=new kk(this.policy,c,function(k,b){G.loader.Xy(k,b)})}; U5d=function(n,q,M){e8(n,q);q=Lca(n.S,M);M||q||(q=Ph1(n));q=q||n.C.X[0];n.W=n.fm.X[q.id];Oz(n);n.N=n.W;vQj(n);Tmd(n);n.Z=n.nextVideo;n.N=n.W;return lcd(n)}; D5k=function(n,q){if(uuU(n,q))return null;if(q.reason==="m"&&q.isLocked())return n.logger.debug(function(){return"User sets constraint to: "+uv(q)}),e8(n,q),n.B=n.J.length-1,Oz(n),Ez(n),n.RL=n.RL||n.Z!==n.nextVideo,n.Z=n.nextVideo,new GO(n.W,n.Z,q.reason); q.reason==="r"&&(n.U=-1);e8(n,q);Ez(n);if(q.reason==="r"&&n.nextVideo===n.Z)return new GO(n.W,n.nextVideo,q.reason);Bm1(n);return null}; Ayd=function(n,q,M){n.W=n.fm.X[q];n.N=n.W;return new GO(n.N,n.Z,M?"t":"m")}; m51=function(n,q){if(q.info.video){if(n.Z!==q)return n.Z=q,lcd(n)}else n.V1=n.N!==q,n.N=q;return null}; $5d=function(n,q){if(q.X.info.video&&q.J){var M=(q.W+q.Z)/q.duration,t=q.X.info.Bb;M&&t&&(n.Yl.Hk(1,M/t),n.policy.Z&&M/t>1.5&&n.loader.Xy("overshoot",{sq:q.zs,br:M,max:t}))}}; hL=function(n,q,M){b1(n.S,q,M===void 0?!1:M);n.U=-1;e8(n,n.X)}; FcU=function(n,q){return new GO(n.N,n.Z,q||n.X.reason)}; Bm1=function(n){if(n.Z&&n.nextVideo&&Wy(n,n.Z.info)n.policy.zr,k=c<=n.policy.zr?Vv(t):wy(t);if(!Y||G||k)M[c]=t}return M}; e8=function(n,q){n.X=q;var M=n.C.videoInfos;if(!n.X.isLocked()){var t=(0,g.jt)();M=g.Pl(M,function(k){if(k.Bb>this.policy.Bb)return!1;var b=this.fm.X[k.id];return dI(this.S).get(k.id)>t?!1:b.d7.Z>4||b.C>4?(this.logger.debug(function(){return"Remove "+c3(k)+"; 4 load failures"}),!1):this.IL.has(+k.itag)?!1:!0},n); HuU(n.S)&&(M=g.Pl(M,function(k){return k.video.width<=854&&k.video.height<=480}))}M.length||(M=n.C.videoInfos); var c=M;n.policy.pC&&(c=acj(n,c,q));c=g.Pl(c,q.J,q);if(n.X.isLocked()&&n.S.X){var Y=g.XO(M,function(k){return k.id===n.S.X}); Y?c=[Y]:Na(n.S,"")}n.policy.pC||(c=acj(n,c,q));c.length||(c=[M[0]]);c.sort(function(k,b){return Wy(n,k)-Wy(n,b)}); q={};for(M=1;Mq.sJ.video.width?(g.IG(c,M),M--):Wy(n,q.aD)*n.policy.U>Wy(n,q.sJ)&&(g.IG(c,M-1),M--);var G=c[c.length-1];n.hE=!!n.Z&&!!n.Z.info&&n.Z.info.Ts!==G.Ts;n.logger.debug(function(){return"Constraint: "+uv(n.X)+", "+c.length+" fmts selectable, max selectable fmt: "+c3(G)}); n.J=c;n.AE.clear();q=!1;for(M=0;M=1080&&(q=!0);RaC(n.policy,G,n.fm.r7)}; acj=function(n,q,M){var t=M.reason==="m"||M.reason==="s";n.policy.Ot&&yP&&g.gz&&(!t||M.X<1080)&&(q=q.filter(function(d){return d.video&&(!d.W||d.W.powerEfficient)})); if(q.length>0)if(W3()){var c=Zua(n,q);q=q.filter(function(d){return!!d&&!!d.video&&d.Ts===c[d.video.qualityOrdinal].Ts})}else{var Y,G,k=(Y=q[0])==null?void 0:(G=Y.video)==null?void 0:G.qualityOrdinal; if(k){M=q.filter(function(d){return!!d&&!!d.video&&d.video.qualityOrdinal===k}); var b=Zua(n,M)[k].Ts;q=q.filter(function(d){return!!d&&!!d.video&&d.Ts===b})}}return q}; oQs=function(n,q){for(var M=0;M+1t}; Oz=function(n){if(!n.W||!n.policy.J&&!n.W.info.tq){var q=n.C.X;n.W&&(q=q.filter(function(t){return t.audio.X===n.W.info.audio.X}),q.length||(q=n.C.X)); n.W=n.fm.X[q[0].id];if(q.length>1&&!n.policy.V1){if(!n.policy.yh){var M=g.XO(q,function(t){return t.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); M&&(n.W=n.fm.X[M.id])}M=!1;if(M=n.policy.rZ?!0:n.X.isLocked()?n.X.X<240:oQs(n,n.W))n.W=n.fm.X[g.Ws(q).id]}}}; Ez=function(n){if(!n.nextVideo||!n.policy.J)if(n.X.isLocked())n.nextVideo=n.X.X<=360?n.fm.X[n.J[0].id]:n.fm.X[g.Ws(n.J).id],n.logger.debug(function(){return"Select max fmt: "+c3(n.nextVideo.info)}); else{for(var q=Math.min(n.B,n.J.length-1),M=M$(n.wJ),t=Wy(n,n.W.info),c=M/n.policy.wJ-t;q>0&&!(Wy(n,n.J[q])<=c);q--);for(var Y=M/n.policy.U-t;q=Y);q++);n.nextVideo=n.fm.X[n.J[q].id];n.B!==q&&n.logger.info(function(){return"Adapt to: "+c3(n.nextVideo.info)+", bandwidth: "+M.toFixed(0)+", bandwidth to downgrade: "+c.toFixed(0)+", bandwidth to upgrade: "+Y.toFixed(0)+", constraint: "+uv(n.X)}); n.B=q}}; vQj=function(n){var q=n.policy.wJ,M=M$(n.wJ),t=M/q-Wy(n,n.W.info);q=g.jS(n.J,function(c){return Wy(this,c)Y?c=0:t[G]>n.buffered[G]&&(G===Y-1?c=2:G===Y-2&&t[G+1]>n.buffered[G+1]&&(c=3))}n.X.add(q<<3|(M&&4)|c);q=Math.ceil(n.track.Cb()*1E3);n.X.add(q-n.S);n.S=q;if(c===1)for(n.X.add(Y),G=q=0;G=2&&n.X.add(t[Y- 1]-n.buffered[Y-1]);M&&n.X.add(M);n.buffered=t}; j8=function(n,q,M){var t=this;this.policy=n;this.X=q;this.jX=M;this.J=this.W=0;this.xM=null;this.xl=new Set;this.U=[];this.indexRange=this.initRange=null;this.B=new LW;this.RL=this.wJ=!1;this.vg={nzs:function(){return t.Z}, HCl:function(){return t.chunkSize}, taL:function(){return t.N}, OCg:function(){return t.C}}; (q=Chs(this))?(this.chunkSize=q.csz,this.Z=Math.floor(q.clen/q.csz),this.N=q.ck,this.C=q.civ):(this.chunkSize=n.qb,this.Z=0,this.N=g.Ec(16),this.C=g.Ec(16));this.S=new Uint8Array(this.chunkSize);this.N&&this.C&&(this.crypto=new iS_(this.N,this.C))}; Chs=function(n){if(n.policy.tB&&n.policy.rY)for(var q=g.S(n.policy.tB),M=q.next(),t={};!M.done;t={xv:void 0,rK:void 0},M=q.next())if(M=g.pr(M.value),t.xv=+M.clen,t.rK=+M.csz,t.xv>0&&t.rK>0&&n.policy.J===M.docid&&n.X.info.id===M.fmtid&&n.X.info.lastModified===+M.lmt)return n={},n.clen=t.xv,n.csz=t.rK,n.ck=M.ck,n.civ=M.civ,n}; S8=function(n){return!!n.xM&&n.xM.Ci()}; QXC=function(n,q){if(!S8(n)&&!n.qm()){if(!(n.wJ||(n.wJ=!0,n.Z>0))){var M=Io(n);M=bB(n.policy.J,n.X.info,fU(n),M,n.policy.Ux);Hy(n,M)}if(q.info.type===1){if(n.xM){LU(n,Error("Woffle: Expect INIT slices to always start us off"));return}n.initRange=nu(0,q.W.totalLength)}else if(q.info.type===2)n.xM&&n.xM.type===1||LU(n,Error("Woffle: Index before init")),n.indexRange=nu(n.initRange.end+1,q.W.totalLength);else if(q.info.type===3){if(!n.xM){LU(n,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(n.xM.type===3&&!c$(n.xM,q.info)&&(n.U=[],q.info.zs!==YQ(n.xM)||q.info.W!==0))return;if(q.info.J){M=g.S(n.U);for(var t=M.next();!t.done;t=M.next())ryj(n,t.value);n.U=[]}else{n.U.push(q);n.xM=q.info;return}}else{LU(n,Error("Woffle: Unexpected slice type"));return}n.xM=q.info;ryj(n,q);x5d(n)}}; ryj=function(n,q){var M=0,t=kV(q.W);if(n.J=t.length)return;if(M<0)throw Error("Missing data");n.J=n.Z;n.W=0}for(c={};M0){var G=t.getUint32(M+28);Y+=G*16+4}var k=t.getUint32(M+Y-4);try{var b=ixd(q.subarray(M+Y,M+Y+k));if(b!==null){var d=b;break a}}catch(N){}}M+=c}d=null;break a}catch(N){d=null;break a}d=void 0}if(d!=null)for(q=yj(nf(d,7,void 0,uY)),q==null||n.Fm||(n.cryptoPeriodIndex=q),q=yj(nf(d,10,void 0,uY)),q!=null&&q>0&& !n.Fm&&(n.X=q),d=G0(d,2,LSs,void 0===lys?2:4),d=g.S(d),t=d.next();!t.done;t=d.next())q=n.Z,M=q.push,t=Al(t.value),t=g.Pn(t,4),M.call(q,t)}; c4k=function(n){return isNaN(n.cryptoPeriodIndex)?g.Pn(n.initData):""+n.cryptoPeriodIndex}; TO=function(n,q,M){var t=M===void 0?{}:M;M=t.videoDuration===void 0?0:t.videoDuration;var c=t.An===void 0?void 0:t.An;t=t.MR===void 0?!1:t.MR;this.videoId=n;this.status=q;this.videoDuration=M;this.An=c;this.MR=t}; Y8s=function(n,q,M,t,c){this.videoId=n;this.u2=q;this.W=M;this.bytesDownloaded=t;this.X=c}; l1=function(n){this.X=n;this.offset=0}; Uz=function(n){if(n.offset>=n.X.totalLength)throw Error();return db(n.X,n.offset++)}; G5m=function(n,q){q=q===void 0?!1:q;var M=Uz(n);if(M===1){q=-1;for(M=0;M<7;M++){var t=Uz(n);q===-1&&t!==255&&(q=0);q>-1&&(q=q*256+t)}return q}t=128;for(var c=0;c<6&&t>M;c++)M=M*256+Uz(n),t*=128;return q?M:M-t}; Kms=function(n){try{var q=G5m(n,!0),M=G5m(n,!1);return{id:q,size:M}}catch(t){return{id:-1,size:-1}}}; k5d=function(n){for(var q=new l1(n),M=-1,t=0,c=0;!t||!c;){var Y=Kms(q),G=Y.id;Y=Y.size;if(G<0)return;if(G===176){if(Y!==2)return;t=q.ow()}else if(G===186){if(Y!==2)return;c=q.ow()}G===374648427?M=q.ow()+Y:G!==408125543&&G!==174&&G!==224&&q.skip(Y)}q=bS(n,0,M);M=new DataView(q.buffer);M.setUint16(t,3840);M.setUint16(c,2160);t=new tN([q]);cY(t,n);return t}; bxC=function(n,q,M){var t=this;this.loader=n;this.policy=q;this.S=M;this.logger=new g.jr("dash");this.W=[];this.X=null;this.wJ=-1;this.U=0;this.IL=NaN;this.xl=0;this.Z=NaN;this.B=this.SX=0;this.hE=-1;this.nm=this.J=this.C=this.jX=null;this.Yl=this.V1=NaN;this.N=this.RL=this.AE=this.eX=null;this.Ux=!1;this.rJ=this.timestampOffset=0;this.vg={oH:function(){return t.W}}; if(this.policy.J){var c=this.S,Y=this.policy.J;this.policy.Ux&&n.Xy("atv",{ap:this.policy.Ux});this.N=new j8(this.policy,c,function(G,k,b){u1(n,new TO(t.policy.J,2,{An:new Y8s(Y,G,c.info,k,b)}))}); this.N.B.promise.then(function(G){t.N=null;G===1?u1(n,new TO(t.policy.J,G)):t.loader.Xy("offlineerr",{status:G.toString()})},function(G){var k=(G.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); G instanceof Py&&!G.X?(t.logger.info(function(){return"Assertion failed: "+k}),t.loader.Xy("offlinenwerr",{em:k}),By(t),u1(n,new TO(t.policy.J,4))):(t.logger.info(function(){return"Failed to write to disk: "+k}),t.loader.Xy("dldbwerr",{em:k}),By(t),u1(n,new TO(t.policy.J,4,{MR:!0})))})}}; d0U=function(n){return n.W.length?n.W[0]:null}; Nhs=function(n,q){return n.W.some(function(M){return M.info.zs===q})}; hNa=function(n,q,M,t){t=t===void 0?0:t;if(n.J){var c=n.J.W+n.J.Z;if(M.info.W>0)if(M.info.zs===n.J.zs&&M.info.W=0&&n.J.zs>=0&&!c$(n.J,M.info))throw new g.aE("improper_continuation",n.J.Sc(),M.info.Sc());W4k(n.J,M.info)||Do(n,"d")}else if(M.info.W>0)throw new g.aE("continuation_of_null",M.info.Sc());n.J=M.info;n.S=M.info.X;if(M.info.W===0){if(n.X)if(!n.loader.isOffline()||n.policy.Z7)n.loader.Xy("slice_not_fully_processed", {buffered:n.X.info.Sc(),push:M.info.Sc()});else throw new g.aE("slice_not_fully_processed",n.X.info.Sc(),M.info.Sc());AL(n);n.SX=t}else{if(n.SX&&t&&n.SX!==t)throw n=new g.aE("lmt_mismatch",M.info.zs,n.SX,t),n.level="WARNING",n;!M.info.X.NK()&&n.C&&(t=M.info,c=n.C.UQ,t.N="updateWithEmsg",t.zs=c)}if(n.X){t=g.H$(n.X,M);if(!t)throw new g.aE("failed_to_merge",n.X.info.Sc(),M.info.Sc());n.X=t}else n.X=M;a:{M=g.xJ(n.X.info.X.info);if(n.X.info.type!==3){if(!n.X.info.J)break a;n.X.info.type===6?OxU(n,q,n.X): g$C(n,n.X);n.X=null}for(;n.X;){t=n.X.W.totalLength;if(n.wJ<=0&&n.U===0){var Y=n.X.W,G=-1;c=-1;if(M){for(var k=0;k+80))break;if(O!==408125543)if(O===524531317)k=!0,N>=0&&(c=Y.ow()+N,b=!0);else{if(k&&(O===160||O===163)&&(G<0&&(G=d),b))break;O===163&&(G=Math.max(0,G),c=Y.ow()+N);if(O===160){G<0&&(c=G=Y.ow()+ N);break}Y.skip(N)}}G<0&&(c=-1)}if(G<0)break;n.wJ=G;n.U=c-G}if(n.wJ>t)break;n.wJ?(t=eNa(n,n.wJ),t.S&&E$u(n,t),OxU(n,q,t),mI(n,t),n.wJ=0):n.U&&(t=eNa(n,n.U<0?Infinity:n.U),n.U-=t.W.totalLength,mI(n,t))}}n.X&&n.X.info.J&&(mI(n,n.X),n.X=null)}; g$C=function(n,q){!q.info.X.NK()&&q.info.W===0&&(g.xJ(q.info.X.info)||q.info.X.info.Fm())&&nGC(q);if(q.info.type===1)try{E$u(n,q),WmC(n,q)}catch(c){g.Ly(c);var M=GW(q.info);M.hms="1";n.loader.handleError("fmt.unparseable",M||{},1)}M=q.info.X;M.Mg(q);n.N&&QXC(n.N,q);if(M.n9()&&n.policy.X)a:{n=n.loader.fm;q=q.info.clipId;M=g.p8(M.info,n.r7);if(q){var t=rV({itag:M.itag,lmt:n.r7?0:M.lmt||0,xtags:M.xtags});if(n.Yl[t])break a;n.Yl[t]=q}n.hE.push(M)}}; Rbf=function(n,q,M){if(n.W.length!==0&&(M||n.W.some(function(Y){return Y.info.S=F6(G)+k):q=n.getDuration()>=G.getDuration(),q=!q;q&&Xrj(M)&&(q=n.jX,$k?(k=QcU(M),G=1/k,k=F6(n,k),q=F6(q)+G-k):q=q.getDuration()- n.getDuration(),q=1+q/M.info.duration,C7u(g.fu(M),q))}else{G=!1;n.C||(nGC(M),M.X&&(n.C=M.X,G=!0,c=M.info,Y=M.X.UQ,c.N="updateWithEmsg",c.zs=Y,c=M.X,c.Ci&&(Y=n.S.index,Y.W=!c.Ci,Y.Z="emsg"),c=M.info.X.info,Y=g.fu(M),g.xJ(c)?Sf(Y,1701671783):c.Fm()&&lI([408125543],307544935,Y)));a:if((c=v$(M,n.policy.JQ))&&pts(M))k=jdf(n,M),n.B+=k,c-=k,n.xl+=c,n.Z=n.policy.JI?n.Z+c:NaN;else{if(n.policy.sX){if(Y=b=n.loader.rp(g.Lu(M),1),n.Z>=0&&M.info.type!==6){if(n.policy.JI&&isNaN(n.V1)){g.PJ(new g.aE("Missing duration while processing previous chunk", M.info.Sc()));n.loader.isOffline()&&!n.policy.Z7||S8R(n,M,Y);Do(n,"m");break a}t=b-n.Z;var d=t-n.B,N=M.info.zs,O=n.nm?n.nm.zs:-1,e=n.Yl,E=n.V1,h=n.policy.ql&&t>n.policy.ql,I=Math.abs(d)>10,L=Math.abs(n.Z-Y)<1E-7;if(Math.abs(d)>1E-4){n.rJ+=1;var T=(k=n.C)==null?void 0:oof(k);k={audio:""+ +n.OC(),sq:N.toFixed(),sliceStart:b,lastSq:O.toFixed(),lastSliceStart:e,lastSliceDuration:E,totalDrift:(t*1E3).toFixed(),segDrift:(d*1E3).toFixed(),skipRewrite:""+ +(h||I)};if(T==null?0:T.length)k.adCpn=T[0];n.loader.handleError("qoe.avsync", k);n.hE=N}h||I||L||(Y=n.Z);k=jdf(n,M,b);c-=k;n.B=t+k}}else Y=isNaN(n.Z)?M.info.startTime:n.Z;S8R(n,M,Y)&&(n.xl+=c,n.Z=Y+c,n.policy.Go&&n.rJ>=n.policy.Go&&(n.rJ=0,n.loader.wU({resetForRewrites:"count"})))}n.nm=M.info;n.V1=P$(M);M.Z>=0&&(n.Yl=M.Z);if(G&&n.C){G=Ij_(n,!0);Ku(M.info,G);n.X&&Ku(n.X.info,G);q=g.S(q);for(k=q.next();!k.done;k=q.next())k=k.value,c=void 0,n.policy.S&&k.zs!==((c=n.C)==null?void 0:c.UQ)||Ku(k,G);(M.info.J||n.X&&n.X.info.J)&&M.info.type!==6||(n.RL=G,n.policy.W?(q=fjm(n.C),n.loader.aA(n.S, G,q)):(q=n.loader,q.fm.isManifestless&&Hxd(q,G,null,!!n.S.info.video)),n.policy.JB||Lmu(n))}}WmC(n,M);n.timestampOffset&&rUf(M,n.timestampOffset)}; mI=function(n,q){if(q.info.J){n.eX=q.info;if(n.C){var M=n.C,t=Ij_(n,!1);M=fjm(M);n.loader.aA(n.S,t,M);n.RL||n.policy.JB||Lmu(n);n.RL=null}AL(n)}n.N&&QXC(n.N,q);if(t=n.O5())if(t=g.H$(t,q,n.policy.yc,n.policy.L9)){n.W.pop();n.W.push(t);return}n.W.push(q)}; fjm=function(n){if(n.Tt()){var q=n.data["Stitched-Video-Id"]?n.data["Stitched-Video-Id"].split(",").slice(0,-1):[],M=oof(n),t=[];if(n.data["Stitched-Video-Duration-Us"])for(var c=g.S(n.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),Y=c.next();!Y.done;Y=c.next())t.push((Number(Y.value)||0)/1E6);c=[];if(n.data["Stitched-Video-Start-Frame-Index"]){Y=g.S(n.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var G=Y.next();!G.done;G=Y.next())c.push(Number(G.value)||0)}c=[]; if(n.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(Y=g.S(n.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),G=Y.next();!G.done;G=Y.next())c.push((Number(G.value)||0)/1E6);n=new MFf(q,M,t,c,g.wju(n),g.zLd(n))}else n=null;return n}; AL=function(n){n.X=null;n.wJ=-1;n.U=0;n.C=null;n.IL=NaN;n.xl=0;n.RL=null}; Do=function(n,q){q={rst4disc:q,cd:n.B.toFixed(3),sq:n.nm?n.nm.zs:-1};n.Z=NaN;n.B=0;n.hE=-1;n.nm=null;n.Yl=NaN;n.V1=NaN;n.AE=null;n.loader.Xy("mdstm",q)}; WmC=function(n,q){if(n.isDrm()){if(q.info.X.info.Fm()){var M=new fS(g.fu(q));if(LS(M,[408125543,374648427,174,28032,25152,20533,18402])){var t=TB(M,!0);M=t!==16?null:DZ(M,t)}else M=null;t="webm"}else q.info.U=n$u(g.fu(q)),M=q8j(q.info.U),t="cenc";M&&M.length&&(M=new vy(M,t),n.policy.zz&&g.xJ(q.info.X.info)&&(t=qtU(g.fu(q)))&&(M.W=t),M.Fm=q.info.X.info.Fm(),q.X&&q.X.cryptoPeriodIndex&&(M.cryptoPeriodIndex=q.X.cryptoPeriodIndex),q.X&&q.X.W&&(M.X=q.X.W),n.loader.UR(M))}}; Lmu=function(n){var q=n.C,M=a2s(q);M&&(M.startSecs+=n.IL,n.loader.Qb(n.S,M,q.UQ,q.Tt()))}; Ij_=function(n,q){var M,t=n.C;if(M=a2s(t))M.startSecs+=n.IL;return new qT(t.UQ,n.IL,q?t.Be:n.xl,t.ingestionTime,"sq/"+t.UQ,void 0,void 0,q,M)}; S8R=function(n,q,M){if(!C_s(q,M))return q=GW(q.info),q.smst="1",n.loader.handleError("fmt.unparseable",q||{},1),!1;isNaN(n.IL)&&(n.IL=M);return!0}; jdf=function(n,q,M){var t=0;if(q.info.X.info.Fm()&&!pts(q))return 0;if(n.jX&&!n.OC()){var c=0;M&&g.xJ(q.info.X.info)?c=M-n.Z:q.info.X.info.Fm()&&(c=n.B);var Y=q.info.zs;M=v$(q,n.policy.JQ);var G=n.jX;var k=G.hE;G=G.B;var b=Math.abs(G-c)>.02;if((Y===k||Y>k&&Y>n.hE)&&b){t=Math.max(.95,Math.min(1.05,(M-(G-c))/M));if(g.xJ(q.info.X.info))C7u(g.fu(q),t);else if(q.info.X.info.Fm()&&(Y=c-G,!g.xJ(q.info.X.info)&&(q.info.X.info.Fm(),t=new fS(g.fu(q)),k=q.S?t:new fS(new DataView(q.info.X.X.buffer)),v$(q,!0)))){var d= Y*1E3,N=mr(k);k=t.pos;t.pos=0;if(t.X.getUint8(t.pos)===160||$M(t))if(va(t,160))if(TB(t,!0),va(t,155)){if(Y=t.pos,b=TB(t,!0),t.pos=Y,d=d*1E9/N,N=UA(t),d=N+Math.max(-N*.7,Math.min(N,d)),d=Math.sign(d)*Math.floor(Math.abs(d)),!(Math.ceil(Math.log(d)/Math.log(2)/8)>b)){t.pos=Y+1;for(Y=b-1;Y>=0;Y--)t.X.setUint8(t.pos+Y,d&255),d>>>=8;t.pos=k}}else t.pos=k;else t.pos=k;else t.pos=k}t=v$(q,n.policy.JQ);t=M-t}t&&q.info.X.info.Fm()&&n.loader.Xy("webmDurationAdjustment",{durationAdjustment:t,videoDrift:c+t, audioDrift:G})}return t}; Xrj=function(n){return n.info.X.NK()&&n.info.zs===n.info.X.index.Uq()}; F6=function(n,q){q=(q=q===void 0?0:q)?Math.round(n.timestampOffset*q)/q:n.timestampOffset;n.S.J&&q&&(q+=n.S.J.X);return q+n.getDuration()}; Pdd=function(n,q){q<0||(n.W.forEach(function(M){rUf(M,q)}),n.timestampOffset=q)}; YX=function(n,q,M,t,c){Sp.call(this,M,c);var Y=this;this.policy=n;this.formatId=q;this.Xb=t;this.lastError=null;this.onProgress=function(){Y.qm()||(Y.Xb.ya.has(Y.formatId)?(Y.isComplete()||Y.X.start(),rp(Y.Xb,Y.formatId)&&Y.FA(2),Y.Xb.vI(Y.formatId)&&(zrm(Y.Xb,Y.formatId)?Y.Va(4):(Y.lastError="net.closed",Y.Va(5)))):(Y.lastError="player.exception",Y.Va(5)))}; this.X=new g.zw(function(){Y.isComplete()||(Y.lastError="net.timeout",Y.Va(5))},1E3); this.X.start();Rr_(this.Xb,this.formatId,this.onProgress);g.L1(this.onProgress)}; Zo=function(n,q,M,t){g.F.call(this);var c=this;this.loader=n;this.policy=q;this.X=M;this.timing=t;this.logger=new g.jr("dash");this.Z=[];this.jX=[];this.W=this.Pg=null;this.AE=!1;this.SX=this.rJ=0;this.C=-1;this.wJ=!1;this.IL=-1;this.nm=null;this.RL=NaN;this.xl=[];this.vg={CJ:function(){return c.J}, i3b:function(){return c.Z}, Vat:function(){return c.B}}; this.J=new bxC(n,q,M);this.policy.X&&(this.B=new t$(this.J,this.loader.getManifest(),this.policy,function(Y){c.policy.dI&&c.Xy("buftl",Y)})); this.policy.yS&&(this.U=new sz(this));this.Bb=M.info.Bb;this.N=this.policy.RL?!1:M.s1();this.isManifestless=M.s1();this.S=this.N;g.Z(this,this.nm)}; ao=function(n,q,M){M=M===void 0?!1:M;q&&$k&&Pdd(n.J,q.LJ());if(!M){var t;(t=n.B)==null||$l1(t)}n.Pg=q;(q=n.B)!=null&&(q.Pg=n.Pg)}; Ro=function(n){var q=n.Pg&&n.Pg.rB();if(n.policy.pL){if((n=n.B)==null)n=void 0;else{var M;n=(M=n.Z)==null?void 0:M.info}return n||null}return q}; v$m=function(n){for(var q={},M=0;M4&&n.jX.shift()}; Th_=function(n,q){if(q.LL()){var M=q.b0();M=g.S(M);for(var t=M.next();!t.done;t=M.next())t=t.value,n.policy.Z&&q instanceof YX&&n.Xy("omblss",{s:t.info.Sc()}),wI(n,q.info.Ex,t,q.KJ())}}; wI=function(n,q,M,t){t=t===void 0?0:t;isNaN(n.RL)||(n.Xy("aswm",{sq:q[0].zs,id:q[0].X.info.itag,xtag:q[0].X.info.X,ep:Date.now()-n.RL}),n.RL=NaN);switch(M.info.type){case 1:case 2:ljm(n,M);break;case 4:var c=M.info.X,Y=c.jO(M),G;((G=n.W)==null?0:G.type===4)&&frj(M.info,n.W)&&(n.W=c.Kv(n.W).pop());M=g.S(Y);for(c=M.next();!c.done;c=M.next())wI(n,q,c.value,t);break;case 3:M.info.X.info.video?(c=n.timing,c.IL||(c.IL=(0,g.jt)(),g.iX("fvb_r",c.IL,c.X))):(c=n.timing,c.C||(c.C=(0,g.jt)(),g.iX("fab_r",c.C, c.X)));hNa(n.J,q,M,t);n.policy.X&&U0d(n);break;case 6:hNa(n.J,q,M,t),n.W=M.info}}; ljm=function(n,q){if(q.info.type===1)if(q.info.X.info.video){var M=n.timing;M.SX||(M.SX=(0,g.jt)(),g.iX("vis_r",M.SX,M.X))}else M=n.timing,M.B||(M.B=(0,g.jt)(),g.iX("ais_r",M.B,M.X));g$C(n.J,q);n=n.loader;n.videoTrack.X.n9()&&n.audioTrack.X.n9()&&n.policy.X&&!n.fm.r7&&(q=n.audioTrack.getDuration(),M=n.videoTrack.getDuration(),Math.abs(q-M)>1&&n.Xy("trBug",{af:""+g.p8(n.audioTrack.X.info,!1),vf:""+g.p8(n.videoTrack.X.info,!1),a:""+q,v:""+M}))}; ep=function(n){return d0U(n.J)}; U0d=function(n){n.Z.length?n.W=g.Ws(g.Ws(n.Z).info.Ex):n.J.W.length?n.W=n.J.O5().info:n.W=Ro(n)}; zO=function(n,q){var M={pn:[],e_:[]},t;if((n=n.B)==null)n=void 0;else{mlR(n,n.pn,"og");BXa(n,q);mlR(n,n.pn,"trim");var c=Acd(n);q=c.pn;c=c.Ht;for(var Y=[],G=0;G0){var e=KW(O,b);e>=0&&(N=(O.end(e)-b+.1)*1E3)}Y.push({formatId:g.p8(k.info.X.info,n.fm.r7), Tr:k.info.Tr,sequenceNumber:k.info.zs+n.J,Ff:d,U_:k.info.Z,Kf:N})}n={pn:q,e_:Y}}return(t=n)!=null?t:M}; kX=function(n,q,M){M=M===void 0?!1:M;if(n.Pg){var t=n.Pg.Xm(),c=bN(t,q),Y=NaN,G=Ro(n);G&&(Y=bN(t,G.X.index.getStartTime(G.zs)));if(c===Y&&n.W&&n.W.Z&&uHu(Bhm(n),0))return q}n=D0d(n,q,M);return n>=0?n:NaN}; dp=function(n,q,M){n.X.n9();var t=D0d(n,q);if(t>=0)return t;var c;(c=n.B)==null||Dlk(c,q,M);t=Math;c=t.min;var Y=n.J;if(Y.N)if(Y=Y.N,Y.xM&&Y.xM.type===3)Y=Y.xM.startTime;else if(Y.Z>0){var G=Y.X.index;G=g.oG(G.offsets.subarray(0,G.count),Y.Z*Y.chunkSize);Y=Y.X.index.getStartTime(G>=0?G:Math.max(0,-G-2))}else Y=0;else Y=Infinity;q=c.call(t,q,Y);n.W=n.policy.RL?null:n.X.Ve(q).Ex[0];JL(n)&&(n.policy.Hp&&(M==null?void 0:M.seekSource)===60||n.Pg&&n.Pg.abort(),n.policy.dG&&(M=n.B)!=null&&(M.Z=void 0)); n.SX=0;return n.W?n.W.startTime:q}; Z9C=function(n){n.N=!0;n.S=!0;n.C=-1;dp(n,Infinity)}; VP=function(n){for(var q=0,M=g.S(n.Z),t=M.next();!t.done;t=M.next())q+=L4d(t.value.info);return q+=y4s(n.J)}; rI=function(n,q){q=q===void 0?!1:q;var M=n.loader.getCurrentTime(),t=n.J.O5(),c=(t==null?void 0:t.info.C)||0;if((t==null?0:t.info.X.s1())&&!t.info.J)if(n.policy.u0)c=t.info.S;else if(n.policy.bD){var Y=t.info;c=Y.range?Y.C:Math.min(Y.startTime+Math.min(Y.duration*Y.W/Y.X.info.Bb,Y.duration)+(Y.range?Y.B:Math.min(Y.duration,Y.duration*Y.Z/Y.X.info.Bb)),Y.startTime+Y.duration)}if(!n.Pg)return n.policy.X&&q&&!isNaN(M)&&t?c-M:0;if((Y=Ro(n))&&CU(Y))return Y.C;var G=n.Pg.Xm(!0);if(q&&t)return Y=0,n.policy.X&& (Y=O_(G,c+.02)),Y+c-M;q=O_(G,M);n.policy.jh&&Y&&(t=KW(G,M),G=KW(G,Y.S-.02),t===G&&(M=Y.C-M,n.policy.Z&&M>q+.02&&n.Xy("abh",{bh:q,bhtls:M}),q=Math.max(q,M)));return q}; A4f=function(n){var q=Ro(n);return q?q.C-n.loader.getCurrentTime():0}; m0u=function(n,q){if(n.Z.length){if(n.Z[0].info.Ex[0].startTime<=q)return;Kn(n)}for(var M=n.J,t=M.W.length-1;t>=0;t--)M.W[t].info.startTime>q&&M.W.pop();U0d(n);n.W&&q=0;G--){var k=c.W[G];k.info.zs>=q&&(c.W.pop(),c.Z-=v$(k,c.policy.JQ),Y=k.info)}Y&&(c.J=c.W.length>0?c.W[c.W.length-1].info:c.AE,c.W.length!==0||c.J||Do(c,"r"));c.loader.Xy("mdstm",{rollbk:1,itag:Y?Y.X.info.itag:"",popped:Y?Y.zs:-1,sq:q,lastslc:c.J?c.J.zs:-1,lastfraget:c.Z.toFixed(3)});if(n.policy.X)return n.W=null,!0;t>M?dp(n,t):n.W=n.X.xE(q-1,!1).Ex[0]}catch(b){return q=hU(b),q.details.reason="rollbkerr", n.loader.handleError(q.errorCode,q.details,q.severity),!1}return!0}; QP=function(n,q){var M;for(M=0;M0?M||q.zs>=n.IL:M}; pU=function(n){var q;return JL(n)||CU((q=n.J.O5())==null?void 0:q.info)}; Bhm=function(n){var q=[],M=Ro(n);M&&q.push(M);q=g.UF(q,n.J.kV());M=g.S(n.Z);for(var t=M.next();!t.done;t=M.next()){t=t.value;for(var c=g.S(t.info.Ex),Y=c.next(),G={};!Y.done;G={Xx:void 0},Y=c.next())G.Xx=Y.value,t.Js&&(q=g.Pl(q,function(k){return function(b){return!frj(b,k.Xx)}}(G))),(ty(G.Xx)||G.Xx.type===4)&&q.push(G.Xx)}n.W&&!EJu(n.W,g.Ws(q),n.W.X.NK())&&q.push(n.W); return q}; uHu=function(n,q){if(!n.length)return!1;for(q+=1;q=q){q=Y;break a}}q=c}return q<0?NaN:uHu(n,M?q:0)?n[q].startTime:NaN}; nv=function(n){return!(!n.W||n.W.X===n.X)}; FmC=function(n){return nv(n)&&n.X.n9()&&n.W.X.info.Bbq&&n.C1080&&!n.ys&&(n.rJ=36700160,n.QS=5242880,n.AE=Math.max(4194304,n.AE),n.ys=!0);q.video.qualityOrdinal>2160&&!n.Hj&&(n.rJ=104857600,n.Bb=13107200,n.Hj=!0);g.ic(n.pm.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?q.isEncrypted()&&g.Z_()&&g.$e("samsung")&&(g.$e("kant")||g.$e("muse"))&&(n.Bb=g.ic(n.pm.experiments,"html5_samsung_kant_limit_max_bitrate")):q.isEncrypted()&&g.Z_()&&g.$e("kant")&&(n.Bb=1310720);n.dC!==0&&q.isEncrypted()&& (n.Bb=n.dC);n.gC!==0&&q.isEncrypted()&&M&&(n.Bb=n.gC);q.Bb&&(n.PZ=Math.max(n.wP,Math.min(n.AE,5*q.Bb)))}; $X=function(n){return n.X&&n.ZM}; iu=function(n){return n.X&&n.yH&&n.playbackStartPolicy}; qRd=function(n,q,M,t){n.yH&&(n.playbackStartPolicy=q,n.t5=M,n.Oj=t)}; Mq=function(n,q,M){M=M===void 0?0:M;return g.ic(n.pm.experiments,q)||M}; M0s=function(n){var q=n===void 0?{}:n;n=q.ih;var M=q.jA;var t=q.r8;var c=q.Uq;q=q.VU;this.ih=n;this.jA=M;this.r8=t;this.Uq=c;this.VU=q}; pRa=function(n,q){if(q<0)return!0;var M=n.Uq();return q0)return 2;if(q<0)return 1;M=n.Uq();return q(0,g.jt)()?0:1}; cQ=function(n,q,M,t,c,Y,G,k,b,d,N,O,e,E){E=E===void 0?null:E;g.F.call(this);var h=this;this.loader=n;this.policy=q;this.videoTrack=M;this.audioTrack=t;this.J=c;this.X=Y;this.timing=G;this.S=k;this.schedule=b;this.fm=d;this.Z=N;this.xl=O;this.UV=e;this.f_=E;this.RL=!1;this.Nr="";this.Kb=null;this.ac=NaN;this.wJ=!1;this.W=null;this.PH=this.U=NaN;this.qo=this.C=0;this.logger=new g.jr("dash");this.vg={OI:function(I,L){return h.OI(I,L)}}; this.policy.Vs>0&&(this.Nr=g.Ec(this.policy.Vs));this.policy.jL&&(this.B=new tz(this.loader,this.policy,this.schedule),g.Z(this,this.B))}; k3d=function(n,q,M){var t=q.W?q.W.X.d7:q.X.d7;var c=n.J,Y;(Y=!n.policy.sj)||(Y=C9(t.X)===C9(t.W));Y?t=!1:(c=o$(c,C9(t.W)),Y=6E4*Math.pow(c.J,1.6),(0,g.jt)()=c.J?(c.Xy("sdai",{haltrq:Y+1,est:c.J}),t=!1):t=c.W!==2;if(!t||!CS(q.W?q.W.X.d7:q.X.d7,n.policy,n.J,n.loader.hc())||n.loader.isSuspended&&(!Qt(n.schedule)||n.loader.Hh))return!1;if(n.policy.J&&kp>=5)return g.Jd(n.loader.v0),!1;if(n.fm.isManifestless){if(q.Z.length>0&&q.W&&q.W.zs===-1||q.Z.length>=n.policy.aF||!n.policy.mx&&q.Z.length>0&&!n.policy.B.jA)return!1;if(q.N)return!n.fm.isLive|| !isNaN(n.ac)}if(wrC(q))return n.logger.debug("Pending request with server-selectable format found"),!1;if(!q.W){if(!q.X.n9())return!1;dp(q,n.loader.getCurrentTime())}if(ep(q)&&(q.O5()!==ep(q)||n.loader.isSuspended))return!1;c=(t=n.policy.eF)&&!q.Z.length&&rI(q,!0)=n.policy.lJ)return!1;t=q.W;if(!t)return!0;t.type===4&&t.X.n9()&&(q.W=g.Ws(t.X.Kv(t)),t= q.W);if(!t.Ci()&&!t.X.My(t))return!1;Y=n.fm.C8||n.fm.J;if(n.fm.isManifestless&&Y){Y=q.X.index.Uq();var G=M.X.index.Uq();Y=Math.min(Y,G);if(q.X.index.sZ()>0&&Y>0&&t.zs>=Y)return q.IL=Y,M.IL=Y,!1}if(t.X.info.audio&&t.type===4||t.Ci())return!1;Y=!q.S&&!M.S;if(c=!c)c=t.C,c=!!(M.W&&!CU(M.W)&&M.W.Cbld(n,q)?(bld(n,q),!1):(n=q.Pg)&&n.isLocked()?!1:!0}; bld=function(n,q){var M=n.X;M=M.X?M.X.aI:null;if(n.policy.IL&&M)return M.startSecs+M.Dy+15;q=bD(n.loader,q);n.policy.Yi>0&&(M=((0,g.jt)()-n.loader.BD)/1E3,q=Math.min(q,n.policy.Yi+n.policy.g4*M));q=n.loader.getCurrentTime()+q;return n.policy.Lo&&(M=dUd(n.loader)+n.policy.Lo,M=0||q.d7.C2("defrag")==="1"||q.d7.C2("otf")==="1"){q=null;break a}c=nu(0,4096)}c=new kQ([new M5(5,t.X,c,"createProbeRequestInfo"+t.N,t.zs)],q.W);c.XJ=M;c.X=q.X;q=c}q&&KNa(n,q)}}; KNa=function(n,q){n.loader.yD(q);var M=L4d(q),t=n.loader.mC();M={iz:n.schedule,yR:M,i8:Pvu(n.S,M),DW:ih(q.Ex[0]),yf:rX(q.d7.X),Uc:n.policy.Z,H5:function(G,k){n.loader.Hi(G,k)}}; if(n.schedule.W.C){var c,Y;M.yC=(((c=n.videoTrack.X)==null?void 0:c.info.Bb)||0)+(((Y=n.audioTrack.X)==null?void 0:Y.info.Bb)||0)}n.Kb&&(M.zs=q.Ex[0].zs,M.ac=q.ac,M.Kb=n.Kb);t={JY:P__(q,n.loader.getCurrentTime()),rN:n.policy.VA&&dm(q)&&q.Ex[0].X.info.video?za_(n.Z):void 0,m2:n.policy.IL,poToken:n.loader.Kx(),kY:n.loader.W0(),Nr:n.Nr,PH:isNaN(n.PH)?null:n.PH,f_:n.f_,UV:n.UV,qo:n.qo,A$:t};return new Gg(n.policy,q,M,n.J,function(G,k){try{a:{var b=G.info.Ex[0].X,d=b.info.video?n.videoTrack:n.audioTrack; if(!(G.state>=2)||G.isComplete()||G.s3()||!(!n.loader.md||n.loader.isSuspended||rI(d)>3)){var N=c8C(G,n.policy,n.J);N===1&&(n.wJ=!0);Olu(n,G,N);if(G.isComplete()||G.qm()&&k<3){if(n.policy.Z){var O=G.timing.nC();O.rst=G.state;O.strm=G.xhr.R3();O.cncl=G.xhr&&G.fn.S?1:0;n.loader.Xy("rqs",O)}G.D4&&n.loader.Xy("sbwe3",{},!0)}if(!n.qm()&&G.state>=2){d5J(n.timing,G,b);var e=n.loader;n.PH&&G.F6&&e&&(n.PH=NaN,n.loader.f4(G.F6),n.loader.cW(),n.loader.Xy("cabrUtcSeek",{mediaTimeSeconds:G.F6}));G.eV&&n.PH&&G.eV&& !G.eV.action&&(n.loader.d6(n.PH),n.PH=NaN,n.loader.Xy("cabrUtcSeekFallback",{targetUtcTimeSeconds:n.PH}));G.BO&&n.loader.oO(G.BO);n.policy.Wm&&(n.qo=G.qo);if(G.state===3){QP(d,G);dm(G.info)&&YE(n,d,b,!0);if(n.W){var E=G.info.vz();E&&n.W.P_(G.info.Ex[0].zs,b.info.id,E)}n.loader.iY()}else if(G.isComplete()&&G.info.Ex[0].type===5){if(G.state!==4)G.NS()&&n.loader.handleError(G.yr(),G.B$());else{var h=(G.info.Ex[0].X.info.video?n.videoTrack:n.audioTrack).Z[0]||null;h&&h instanceof Gg&&h.s3()&&h.Jj()}G.dispose()}else{G.NS()|| glm(n,G);var I;((I=G.U1)==null?0:I.itagDenylist)&&n.loader.Fg(G.U1.itagDenylist);if(G.state===4)eDU(n,G),n.X&&EQu(n.X,G.info,n.W);else if(n.policy.uM&&G.LL()&&!G.isComplete()&&!eDU(n,G)&&!G.NS())break a;G.NS()&&(El_(n,G),isNaN(n.PH)||(n.loader.d6(n.PH),n.PH=NaN));n.policy.o8&&!G.isComplete()?hDs(n.loader):n.loader.iY();var L=YRJ(G,n.policy,n.J);Olu(n,G,L)}}}}}catch(T){k=n.RL?1:0,n.RL=!0,G=Et(k),k=hU(T,k),n.loader.handleError(k.errorCode,k.details,k.severity),G||n.loader.Eu()}},t)}; glm=function(n,q){if(q.fv&&q.state>=2&&q.state!==3){var M=q.xhr.getResponseHeader("X-Response-Itag");if(M){n.logger.debug(function(){return"Applying streamer-selected format "+M}); var t=w$U(n.Z,M),c=q.info.Z;c&&(c-=t.mB(),t.Z=!0,q.info.Ex[0].X.Z=!1,Fru(q,t.yU(c)),G_(n.loader,n.videoTrack,t),zNU(n.videoTrack,t),n.loader.gr(t.info.video.quality),(c=q.KJ())&&t.info.lastModified&&t.info.lastModified!==+c&&QP(n.videoTrack,q))}else q.fv=!1}}; El_=function(n,q){var M=q.info.Ex[0].X,t=q.yr();if(rX(M.d7.X)){var c=g.vn(q.p9(),3);n.loader.Xy("dldbrerr",{em:c||"none"})}c=q.info.Ex[0].zs;var Y=cy(n.X,q.info.Ex[0].S,c);t==="net.badstatus"&&(n.C+=1);if(q.canRetry()&&WNk(n.loader)){if(!(q.info.d7.Z>=n.policy.L6&&n.W&&q.info.isDecorated()&&t==="net.badstatus"&&n.W.s$(Y,c))){c=(M.info.video&&M.d7.Z>1||q.YM===410||q.YM===500||q.YM===503)&&!(dI(n.Z.S).size>0)&&!rX(M.d7.X);Y=q.B$();var G=M.info.video?n.videoTrack:n.audioTrack;c&&(Y.stun="1");n.loader.handleError(t, Y);n.qm()||(c&&(n.logger.debug(function(){return"Stunning format "+M.info.id}),hL(n.Z,M)),QP(G,q),n.loader.iY())}}else G=1,n.W&&q.info.isDecorated()&&t==="net.badstatus"&&n.W.s$(Y,c)&&(G=0),n.fm.isLive&&q.yr()==="net.badstatus"&&n.C<=n.policy.cO*2?(Bfs(n.fm),n.fm.C8||n.fm.isPremiere?gp(n.loader,0,{hQ:"badStatusWorkaround"}):n.fm.J?gp(n.loader,n.fm.jX,{hQ:"badStatusWorkaround", rp:!0}):Kv(n.loader)):n.loader.handleError(t,q.B$(),G)}; eDU=function(n,q){if(n.policy.useUmp&&q.qm())return!1;try{var M=q.info.Ex[0].X,t=M.info.video?n.videoTrack:n.audioTrack;if(n.fm.isManifestless&&t){n.C=0;t.N&&(q.qm(),q.isComplete()||q.LL(),t.N=!1);q.du()&&n.loader.k7.Hk(1,q.du());var c=q.sZ(),Y=q.Fu();QZ(n.fm,c,Y)}if(q.info.DW()&&!bh(q.info))for(var G=g.S(q.b0()),k=G.next();!k.done;k=G.next())ljm(t,k.value);for(n.loader.getCurrentTime();t.Z.length&&t.Z[0].state===4;){var b=t.Z.shift();Th_(t,b);t.rJ=b.ud()}t.Z.length&&Th_(t,t.Z[0]);var d=!!ep(t);d&& q instanceof YX&&(M.info.OC()?trj(n.timing):iuU(n.timing));return d}catch(N){q=q.B$();q.origin="hrhs";a:{n=n.loader;M=N;if(M instanceof Error){q.msg||(q.msg=""+M.message);q.name||(q.name=""+M.name);if(M instanceof g.aE&&M.args)for(t=g.S(Object.entries(M.args)),c=t.next();!c.done;c=t.next())Y=g.S(c.value),c=Y.next().value,Y=Y.next().value,q["arg"+c]=""+Y;g.PJ(M);if(M.level==="WARNING"){n.Mm.wU(q);break a}}n.handleError("fmt.unplayable",q,1)}return!1}}; y8J=function(n){var q=n.videoTrack.X.index;n.Kb=new M0s({ih:n.policy.ih,jA:n.policy.B.jA,r8:q.va(),Uq:function(){return q.Uq()}, VU:function(){return q.VU()}})}; YE=function(n,q,M,t){if(!(M.n9()||M.H0()||M.Z||!CS(M.d7,n.policy,n.J,n.loader.hc())||M.info.Ts==="f"||n.policy.X)){if(t){t=n.S;var c=M.info;t=vyu(t,c.video?t.policy.kc:t.policy.jd,c.Bb)}else t=0;t=M.yU(t);n=KNa(n,t);bh(t)&&oo(q,n);M.Z=!0}}; kE=function(n,q,M,t,c,Y,G,k){g.F.call(this);var b=this;this.loader=n;this.Bm=q;this.videoTrack=M;this.audioTrack=t;this.fm=c;this.U=Y;this.isAudioOnly=G;this.B=k;this.W=y3;this.wJ=!1;this.logger=new g.jr("sabr");this.N=this.RL=this.xl=!1;this.videoInfos=this.C=this.U.videoInfos;this.Z=this.jX=this.U.X;this.X=new kk(q,Y,function(d,N){b.loader.Xy(d,N)}); this.isAudioOnly&&sWU(this,this.fm.X["0"])}; XN_=function(n,q){var M=[];q=g.S(q);for(var t=q.next();!t.done;t=q.next())M.push(g.p8(t.value,n.fm.r7));return M}; sWU=function(n,q,M){q!==n.J&&(n.J&&(n.wJ=!0),n.J=q,n.IA(q,n.videoTrack,M))}; fus=function(n,q){n.logger.debug("setConstraint: "+uv(q));$X(n.Bm)&&(n.RL=q.reason==="m"||q.reason==="l"?!0:!1);q.reason==="m"?q.isLocked()&&jWC(n,q.X):SRa(n,q)?Iuj(n,q.W,q.X):n.videoInfos=n.C;n.W=q}; SRa=function(n,q){return n.Bm.oS&&q.reason==="b"||n.Bm.v2&&q.reason==="l"||n.Bm.VL?!1:n.Bm.hN?!0:q.reason==="l"||q.reason==="b"||q.reason==="o"}; Hlj=function(n,q){return q.isLocked()&&n.X.W||n.W===void 0?!1:q.equals(n.W)}; LNj=function(n,q){var M,t=(M=n.J)==null?void 0:M.info.video.qualityOrdinal;return n.wJ?!0:n.J?q!==t?!0:!n.X.W||n.Bm.Xw&&n.X.X===n.J.info.itag?!1:!0:!1}; jWC=function(n,q){var M=n.X.X;if(M){n.videoInfos=n.C;var t=g.XO(n.videoInfos,function(c){return c.id===M}); t&&t.video.qualityOrdinal===q?n.videoInfos=[t]:(t=n.videoInfos.map(function(c){return c.id}),n.loader.Xy("sabrpf",{pfid:""+M, vfids:""+t.join(".")}),Iuj(n,q,q),Na(n.X,""))}else Iuj(n,q,q)}; Iuj=function(n,q,M){n.videoInfos=n.C;n.videoInfos=g.Pl(n.videoInfos,function(t){return t.video.qualityOrdinal>=q&&t.video.qualityOrdinal<=M})}; P4u=function(n,q,M){if(n.B){var t=g.Pl(n.Z,function(c){return c.id===n.B}); return bu(t,M).includes(q)}t=g.Pl(n.Z,function(c){var Y;return!((Y=c.tq)==null||!Y.isDefault)}); return t.length>0?bu(t,M).includes(q):bu(n.Z,M).includes(q)}; bu=function(n,q){return n.map(function(M){return rV(g.p8(M,q))})}; vld=function(n){var q;if((q=n.W)==null?0:q.isLocked())return n.videoInfos;var M=dI(n.X);q=g.Pl(n.videoInfos,function(t){return t.Bb>n.Bm.Bb?!1:!M.has(t.id)}); HuU(n.X)&&(q=g.Pl(q,function(t){return t.video.width<=854&&t.video.height<=480})); return q}; lus=function(n,q,M,t){var c=n.fm,Y=n.Mm.getVideoData(),G=n.Fx,k=uJd({pm:Y.T(),Mm:n.Mm,N1:n.N1,Bm:n.Bm,qR:n.qR,OR:n.OR,pE:n.pE,OX:n.OX,yW:n.yW,qZ:n.qZ,LK:n.LK,sabrLicenseConstraint:Y.sabrLicenseConstraint,n6:n.n6,j7:n.j7,HB:n.HB,Lg:n.Lg,Xby:!!G,authorizedFormats:Y.authorizedFormats}),b=Fz(Y,n.A$,n.nextRequestPolicy,n.z6,n.CO,n.B7,n.zI);M&&q&&(M=b.G5?b.G5.map(function(e){return e.type}):[],q("sabr",{stmctxt:M.join("_"), unsntctxt:b.iE?b.iE.join("_"):""}));q=n.I6;M=n.jj;if(M===void 0&&q===void 0){var d;M=T1d(c.r7,(d=n.Ug)==null?void 0:d.video);var N;q=T1d(c.r7,(N=n.Ug)==null?void 0:N.audio)}if(Y.f_)var O=Y.f_;Y={F1:k,e_:n.e_,I6:q,jj:M,Fx:G,videoPlaybackUstreamerConfig:O,Ck:b};t&&n.B5?n.B5.length>0&&(Y.B5=n.B5):n.MS&&(Y.MS=n.MS);Y.pn=n.pn;Y.O1=c.hE;return Y}; T1d=function(n,q){return q?[g.p8(q.info,n)]:[]}; dv=function(n,q,M){var t=this;this.requestType=n;this.d7=q;this.Im=M;this.W=null;this.vg={qZ:function(){var c;return(c=t.data)==null?void 0:c.qZ}, CO:function(){var c;return(c=t.data)==null?void 0:c.CO}}}; pau=function(n,q,M){q=JG(n.d7,UUU(n,q,M),q);n.vl()&&q.set("probe","1");return q}; UUU=function(n,q,M){n.XJ===void 0&&(n.XJ=n.d7.XJ(q,M));return n.XJ}; uT_=function(n){var q,M;return((q=n.X)==null?void 0:(M=q.F1)==null?void 0:M.P7)||0}; B1s=function(n){var q,M;return!!((q=n.X)==null?0:(M=q.F1)==null?0:M.n6)}; DU_=function(n){var q={},M=[],t=[];if(!n.data)return q;for(var c=0;c0;b--)M.push(k)}M.length!==G?q.error=!0:(Y=M.slice(-Y),M.length=c,itf(q,M,Y));break;case 1:itf(q,hz,xU1);break;case 0:tmu(q, q.X&7);M=Xw(q,16);c=Xw(q,16);(M^c)!==65535&&(q.error=!0);q.output.set(q.data.subarray(q.W,q.W+M),q.Z);q.W+=M;q.Z+=M;break;default:q.error=!0}n.Z>n.output.length&&(n.output=new Uint8Array(n.Z*2),n.Z=0,n.W=0,n.J=!1,n.X=0,n.register=0)}n.output.length!==n.Z&&(n.output=n.output.subarray(0,n.Z));return n.error?new Uint8Array(0):n.output}; itf=function(n,q,M){q=qhC(q);M=qhC(M);for(var t=n.data,c=n.output,Y=n.Z,G=n.register,k=n.X,b=n.W;;){if(k<15){if(b>t.length){n.error=!0;break}G|=(t[b+1]<<8)+t[b]<>=7;d<0;)d=q[(G&1)-d],G>>=1;else G>>=d&15;k-=d&15;d>>=4;if(d<256)c[Y++]=d;else if(n.register=G,n.X=k,n.W=b,d>256){G=yw[d];G+=Xw(n,WQ[d]);b=Mmj(n,M);k=sd[b];k+=Xw(n,QWu[b]);if(YhR&&GM.length&&(n.error=!0);n.register|=(M[t+1]<<8)+M[t]<=0)return tmu(n,M&15),M>>4;for(tmu(n,7);M<0;)M=q[Xw(n,1)-M];return M>>4}; Xw=function(n,q){for(;n.X=n.data.length)return n.error=!0,0;n.register|=n.data[n.W++]<>=q;n.X-=q;return M}; tmu=function(n,q){n.X-=q;n.register>>=q}; qhC=function(n){for(var q=[],M=g.S(n),t=M.next();!t.done;t=M.next())t=t.value,q[t]||(q[t]=0),q[t]++;var c=q[0]=0;M=[];var Y=0;t=0;for(var G=1;G7&&(Y+=q[G]);for(c=1;c>b&1;k=Y<<4|G;if(G<=7)for(b=1<<7-G;b--;)t[b<>=7;G--;){t[b]||(t[b]=-q,q+=2);var d=c&1;c>>=1;b=d-t[b]}t[b]=k}}return t}; KOd=function(n){var q,M,t,c,Y,G,k,b,d;return g.u(function(N){switch(N.X){case 1:if(!GTC)throw Error("DecompressionStream is not supported");q=ud.AD();M=new DecompressionStream("gzip");t=M.writable.getWriter();t.write(n);t.close();c=M.readable.getReader();Y=new tN([]);case 2:return g.U(N,c.read(),5);case 5:G=N.W;k=G.value;if(b=G.done){N.Fy(4);break}Y.append(k);N.Fy(2);break;case 4:return d=kV(Y),ud.Ly("gznb",q,Math.ceil(d.byteLength/16)),N.return(d)}})}; kTU=function(n){RI.call(this,"onesie");this.YQ=n;this.X={};this.J=!0;this.Z=null;this.queue=new r8a(this);this.S={}}; btC=function(n){var q=n.queue;q.X.length&&q.X[0].isEncrypted&&!q.W&&(q.X.length=0);q=g.S(Object.keys(n.X));for(var M=q.next();!M.done;M=q.next()){M=M.value;var t=n.X[M];if(!t.Qk){var c=n.queue;c.X.push({videoId:t.videoId,formatId:M,isEncrypted:!1});c.W||Ed(c)}}}; dSa=function(n,q){var M=q.totalLength,t=!1;switch(n.Z){case 0:n.W7(q,n.J).then(function(c){var Y=n.YQ;Y.bz("oprr");Y.playerResponse=c;Y.un||(Y.Wc=!1);jY(Y)},function(c){n.YQ.fail(c)}); break;case 2:n.bz("ormk");q=kV(q);n.queue.decrypt(q);break;default:t=!0}n.YQ.Pt&&n.YQ.Xy("ombup","id.11;pt."+n.Z+";len."+M+(t?";ignored.1":""));n.Z=null}; N8d=function(n,q){var M,t,c,Y,G;return g.u(function(k){switch(k.X){case 1:n.YQ.bz("oprgz_s");if(!GTC){k.Fy(2);break}g.Ij(k,3);return g.U(k,KOd(q),5);case 5:return M=k.W,n.YQ.bz("oprgz_n"),k.return(M);case 3:t=g.TU(k),n.YQ.Xy("gzerr",{impl:"native",err:""+t});case 2:if(c=n.YQ.T().u$)try{var b=ud.AD(),d=c.nE(q),N=c,O=d!=null?d:q,e=O.byteOffset,E=O.byteLength,h=N.exports.getInflatedSize(e,E);if(h===0)throw Error("wasm_gz: bad input");var I=N.malloc(h),L=N.exports.inflateGzip(e,E,I);if(L)throw N.free(I), Error("wasm_gz: fail"+L);var T=new Uint8Array(N.exports.memory.buffer,I,h);d&&c.free(d.byteOffset);var v=c.bO(T);ud.Ly("gzwb",b,Math.ceil(v.byteLength/16));Y=v;n.YQ.bz("oprgz_w");return k.return(Y)}catch(B){n.YQ.Xy("gzerr",{impl:"wasm",err:""+B})}b=ud.AD();d=g.cKu(new g.pNa(q));ud.Ly("gzjb",b,Math.ceil(d.byteLength/16));G=d;n.YQ.bz("oprgz_p");return k.return(G)}})}; OtR=function(n){return new Promise(function(q){setTimeout(q,n)})}; gpJ=function(n,q){var M=n.T();M=n.jL&&M.D("html5_onesie_preload_use_content_owner");var t=n.fS;M=M===void 0?!1:M;var c=Id(q.Q1.experiments,"debug_bandaid_hostname");if(c)q=Od(q,c);else if(M&&(t==null?0:t.url)&&!q.W){var Y=C9(new g.Jc(t.url));q=Od(q,Y)}else q=(Y=q.X.get(0))==null?void 0:Y.location.clone();if(q&&n.videoId){Y=A4(n.videoId);n=[];if(Y)for(Y=g.S(Y),M=Y.next();!M.done;M=Y.next())n.push(M.value.toString(16).padStart(2,"0"));q.set("id",n.join(""));return q}}; e6R=function(n,q,M){M=M===void 0?0:M;var t,c;return g.u(function(Y){if(Y.X==1)return t=[],t.push(q.load()),M>0&&t.push(OtR(M)),g.U(Y,Promise.race(t),2);c=gpJ(n,q);return Y.return(c)})}; Epu=function(n,q,M,t){t=t===void 0?!1:t;n.set("cpn",q.clientPlaybackNonce);n.set("opr","1");var c=q.T();n.set("por","1");KT()||n.set("onem","1");q.startSeconds>0&&n.set("osts",""+q.startSeconds);t||(c.D("html5_onesie_disable_partial_segments")&&n.set("oses","1"),q=c.D("html5_gapless_onesie_no_media_bytes")&&lB(q)&&q.jL,M&&!q?(q=M.audio,n.set("pvi",M.video.join(",")),c.D("html5_onesie_disable_audio_bytes")||n.set("pai",q.join(",")),XH||n.set("osh","1")):(n.set("oad","0"),n.set("ovd","0"),n.set("oaad", "0"),n.set("oavd","0")))}; h6f=function(n,q,M,t,c){c=c===void 0?!1:c;var Y="https://youtubei.googleapis.com/youtubei/"+q.R2.innertubeApiVersion+"/player",G=[{name:"Content-Type",value:"application/json"}];t&&G.push({name:"Authorization",value:"Bearer "+t});G.push({name:"User-Agent",value:g.FV()});g.RZ("EOM_VISITOR_DATA")?G.push({name:"X-Goog-EOM-Visitor-Id",value:g.RZ("EOM_VISITOR_DATA")}):(M=M.visitorData||g.RZ("VISITOR_DATA"))&&G.push({name:"X-Goog-Visitor-Id",value:M});(M=g.RZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&G.push({name:"X-YouTube-Lava-Device-Context", value:M});(q=Id(q.experiments,"debug_sherlog_username"))&&G.push({name:"X-Youtube-Sherlog-Username",value:q});n=WY(JSON.stringify(n));return{url:Y,gz:G,postBody:n,VR1:c,oU:c}}; WOu=function(n,q,M,t,c,Y,G){var k=n.Lc,b=n.Zp;n=n.ABs;var d=k!==void 0&&b!==void 0,N=t.getVideoData(),O,e=q.X.encryptedClientKey;q=d?q.iv:void 0;d=x$(M.schedule,!0);c=c||!!KT()&&d>1572864;return{innertubeRequest:{Djl:n,UG:k,Zp:b,encryptedClientKey:e,iv:q,nMx:!0,e0:!0,YX:"DecompressionStream"in window||!c,hax:M.experiments.Hb("html5_use_jsonformatter_to_parse_player_response")},F1:uJd({pm:M,Mm:t,N1:N.startSeconds*1E3}),onesieUstreamerConfig:Y,nR:G,Ck:Fz(N),reloadPlaybackParams:(O=N.fR)==null?void 0: O.reloadPlaybackParams}}; yKj=function(n,q,M,t,c,Y){var G=g.VN(n,Ut),k;if(!n.oU)if(k=FNf(q,G)){var b=k.Hd;k=k.signature}else k=b=q.encrypt(G),(0,g.jt)(),k=Ycs(new cYR(q.X.Z),k,q.iv);return WOu(b&&k?{Lc:b,Zp:k}:{ABs:G},q,M,t,!!n.oU,c,Y)}; sid=function(n,q,M,t,c,Y){var G,k,b;return g.u(function(d){if(d.X==1)return G=g.VN(n,Ut),g.U(d,$Uu(q,G),2);if(d.X!=3)return k=d.W,g.U(d,Zl_(q,k),3);b=d.W;return d.return(WOu({Lc:k,Zp:b},q,M,t,!!n.oU,c,Y))})}; XOU=function(n,q,M,t,c,Y){var G=g.VN(n,Ut);if(G=FNf(q,G))return WOu({Lc:G.Hd,Zp:G.signature},q,M,t,!!n.oU,c,Y)}; IO=function(n,q){g.F.call(this);var M=this;this.Mm=n;this.playerRequest=q;this.logger=new g.jr("onesie");this.xhr=null;this.state=1;this.bT=new LW;this.XZ=!1;this.playerResponse="";this.MK=new jp(this);this.yw=new kTU(this);this.tv="";this.Io=this.DP=!1;this.Sz="";this.enableCompression=this.un=this.Yg=!1;this.OB=[];this.UQ=-1;this.pz=0;this.Q1=this.Mm.T();this.videoData=this.Mm.getVideoData();this.Pt=this.Q1.Aq();this.Y3=this.Q1.o8;this.zi=new A8k(this.Y3.X);this.bW=this.Q1.D("html5_onesie_check_timeout"); this.bZ=new g.zw(this.XS,500,this);this.iK=new g.zw(this.WD,1E4,this);this.rb=new g.zw(function(){if(!M.isComplete()){var t=SY(M);M.fail(new g.eV("net.timeout",t))}},1E3); this.DR=new g.zw(this.VXl,2E3,this);this.iL=this.Mm.W0();this.Wc=this.D("html5_onesie_wait_for_media_availability");g.Z(this.videoData,this);g.Z(this,this.bZ);g.Z(this,this.iK);g.Z(this,this.DR);n=Hr();XH&&n&&(this.jY=new Map);this.xN=new Map;this.NT=new Map;this.w_=new Map;this.WQ=new Map}; eY=function(n,q){var M;return(M=n.jY)==null?void 0:M.get(q)}; Shk=function(n,q,M){var t;return g.u(function(c){if(c.X==1)return n.bz("oprd_s"),jik(n)?g.U(c,auk(n.zi,q,M),3):(t=n.zi.decrypt(q,M),c.Fy(2));c.X!=2&&(t=c.W);n.bz("oprd_c");return c.return(t)})}; I6d=function(n){return n.D("html5_onesie_host_probing")||n.Pt?XH:!1}; jY=function(n){if(!n.playerResponse)return!1;if(n.Yg)return!0;var q=n.videoData.D("html5_onesie_audio_only_playback")&&Uh(n.videoData);if(n.jY&&n.Wc){if(!n.jY.has(n.tv))return!1;var M=n.jY.get(n.tv),t;if(t=M){t=!1;for(var c=g.S(M.ya.keys()),Y=c.next();!Y.done;Y=c.next())if(Y=M.ya.get(Y.value))for(var G=g.S(Y.En),k=G.next();!k.done;k=G.next())k.value.OA>0&&(Y.OC?t=!0:q=!0);t=!(q&&t)}if(t)return!1}n.bz("ofr");n.bT.resolve(n.playerResponse);if(!n.bW){var b;(b=n.rb)==null||b.start();n.iK.start()}return n.Yg= !0}; Htk=function(n){if(n.jY&&!n.D("html5_onesie_media_capabilities")){n.bz("ogsf_s");var q=Lrs(n.Mm.getVideoData(),function(t,c){n.Xy(t,c)}),M=f6m(n.Mm); q.video=Wrm(M,q.video);n.bz("ogsf_c");if(q.video.length)return q;n.Xy("ombspf","l."+M.W+";u."+M.X+";o."+M.Z+";r."+M.reason)}}; jik=function(n,q){return n.D("html5_onesie_sync_request_encryption")||(q==null?0:q.oU)||g.PN(n.Q1)&&n.D("html5_embed_onesie_use_sync_encryption")?!1:!!KT()}; SY=function(n){if(!n.Jg)return{};var q=n.Jg.nC(),M;q.d=(M=n.Jg.IL)==null?void 0:M.XX();q.shost=n.nA;q.ty="o";return q}; LOk=function(n,q){var M,t;(t=(n=(M=n.jY)==null?void 0:M.get(q))==null)||(q=n.Z?!1:n.Z=!0,t=!q);return!t}; PBC=function(n,q,M,t,c,Y,G,k,b,d,N,O){g.F.call(this);var e=this;this.Mm=n;this.loader=q;this.policy=M;this.audioTrack=t;this.videoTrack=c;this.fm=Y;this.iz=G;this.Yl=k;this.Z=b;this.timing=d;this.B=N;this.U=O;this.X=[];this.J={};this.AE=this.hE=!1;this.RL=this.V1=this.yW=0;this.IL={je:0,TP:0};this.N=null;this.wJ={pn:[],e_:[]};this.jX={pn:[],e_:[]};this.C=null;this.S=[];this.vg={DZL:function(){return e.X}, UHg:function(){return e.J}, TCJ:function(){e.X.length=0}, Jfs:function(){return e.videoData.eX}, Wry:function(){return e.RL}, ccb:function(E){e.RL=E}, xYs:function(E){e.IL.TP=E}, OH:function(E){e.C=E}, gf:function(E){e.S=E}}; this.videoData=this.Mm.getVideoData();this.policy.jL&&(this.SX=new tz(this.loader,this.policy,this.iz),g.Z(this,this.SX))}; l6j=function(n,q){q=q===void 0?!1:q;if(vp1(n)){q=q===void 0?!1:q;n.policy.N&&n.loader.Xy("sabrcrq",{create:1});q=T8m(n,new dv(0,n.fm.U,n),q);n.X.push(q);var M;(M=n.SX)==null||il_(M,n.fm.U);n.policy.Ku>0&&n.IL.TP++}}; B8R=function(n,q){var M=USm(n);if(n.policy.i7){var t=n.wJ;var c=n.jX}else t=fv(n,n.audioTrack),c=fv(n,n.videoTrack);var Y=[].concat(g.EJ(t.pn),g.EJ(c.pn));HQ(n)&&Y.push.apply(Y,g.EJ(n.S));var G=[].concat(g.EJ(t.e_),g.EJ(c.e_)),k=n.loader.mC();if(n.policy.x9&&!n.videoData.isLivePlayback){var b=n.videoData.lengthSeconds*1E3;M>=b&&n.loader.Xy("invalidSabrCmt",{cmt:M,vd:b})}var d,N;b=n.Mm;var O=n.fm,e=n.W,E=n.videoData.eX,h=n.policy,I=n.loader.BD,L=dUd(n.loader)*1E3,T=(d=n.nm)==null?void 0:d.pE;d=(N= n.nm)==null?void 0:N.OX;var v;N=Number((v=n.Z.J)==null?void 0:v.info.itag)||0;var B;v=Number((B=n.Z.S)==null?void 0:B.info.itag)||0;M={Mm:b,fm:O,pn:Y,e_:G,N1:M,nextRequestPolicy:e,z6:E,Bm:h,qR:I,OR:L,pE:T,OX:d,yW:n.yW,Sxm:N,dmy:v,A$:k,zI:n.Mm.aJ()};Y=n.loader.Kx();G=A4(Y);Y&&(M.CO=G);if(Y=n.Mm.HZ())M.n6=Y*1E3;var m;Y=n.Z;G=Y.xl;if(((m=Y.Bm)==null?0:$X(m))&&!G)for(m=g.S(Y.Z),k=m.next();!k.done;k=m.next())if(k.value.tq){G=!0;break}m=$X(Y.Bm)&&!G?[]:XN_(Y,Y.Z);M.I6=m;m=n.Z;$X(m.Bm)&&!m.RL?m=[]:(Y=vld(m), Y.length===0&&(Y=m.C),m=XN_(m,Y));M.jj=m;M.Fx=HQ(n)?[n.C]:void 0;n.policy.Kh&&(M.HB=u1d(n.loader,n.audioTrack),M.Lg=u1d(n.loader,n.videoTrack));if(n.policy.W){m=n.loader.getCurrentTime();t=Lv(n,t.pn,m);c=Lv(n,c.pn,m);c=Math.min(t,c);HQ(n)&&(t=Lv(n,n.S,m),n.Mm.Aq()&&t0&&n.X[0].eE()&&(M.B7=n.X[0].Vt());q?M.qZ=1:n.loader.isSuspended&&(M.qZ=4);return M}; USm=function(n){var q,M=n.policy.S&&((q=n.loader)==null?void 0:q.z4());q=n.loader.getCurrentTime()||0;q=DSR(n,q);if(n.policy.ZW&&n.loader.isSeeking()){var t=D0d(n.videoTrack,q);n.loader.Xy("asmtfnctv",{b:q,a:t});q=t}t=n.loader.NP()||0;q+=t;t=Mm(n.videoData)||g.qm(n.videoData);var c=0;M?(t&&(c=Number.MAX_SAFE_INTEGER),n.videoData.RL&&(c=Math.ceil(n.videoData.jX*1E3))):c=Math.ceil(q*1E3);return Math.min(Number.MAX_SAFE_INTEGER,c)}; HQ=function(n){return n.policy.K8&&!!n.C}; DSR=function(n,q){if(n.loader.isSeeking())return q;var M=n.Mm.Q6();if(!M)return q;M=M.UC();if(M.length===0||kG(M,q))return q;if(!J4d(n.videoTrack,q)&&!J4d(n.audioTrack,q))return n.loader.Xy("sundrn",{b:0,lt:q}),q;for(var t=q,c=Infinity,Y=0;Yq)){var G=q-M.end(Y);G=20)?(n.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),q):t}; Lv=function(n,q,M){n=n.loader.NP()||0;return PQ(q,(M+n)*1E3)/1E3+M}; vp1=function(n){a:{var q=n.IL;if(n.policy.Ku>0){var M=Math.floor((0,g.jt)()/1E4);if(M===q.je){if(q.TP>=n.policy.Ku){q.TP===n.policy.Ku&&(M={reason:"toomanyrequests"},M.limit=q.TP,n.loader.handleError("player.exception",M),q.TP+=1);q=!1;break a}}else q.je=M,q.TP=0}q=!0}if(!q||n.loader.isSuspended&&n.loader.Hh)return!1;if(n.xl&&(0,g.jt)()0)||n.policy.xl&&n.X.length===1&&n.X[0].eE()))){var t;q=!((t=n.fm.U)!=null&&CS(t,n.policy,n.J,n.loader.hc()))}if(q|| pU(n.audioTrack)&&pU(n.videoTrack))return!1;if(n.policy.W)if(n.policy.C){var c;if((c=n.U)==null?0:Ic_(c))return!1}else if(t=!1,n.B.W===2?t=!0:n.B.W===3&&(USm(n),n.loader.NP(),M=zO(n.audioTrack,n.loader.isSeeking()).pn,c=zO(n.videoTrack,n.loader.isSeeking()).pn,q=n.loader.getCurrentTime()||0,M=Lv(n,M,q),c=Lv(n,c,q),c=Math.min(M,c),q=n.B,c>=q.S?(q.Xy("sdai",{haltrq:c,est:q.S}),c=!0):c=!1,c&&(t=!0)),t&&n.policy.N&&n.loader.Xy("sabrcrq",{waitad:1}),t)return!1;n.policy.i7&&(n.wJ=fv(n,n.audioTrack),n.jX= fv(n,n.videoTrack));if(!n.W)return n.policy.N&&n.loader.Xy("sabrcrq",{nopolicy:1}),!0;if(n.Mm.HZ())return n.policy.N&&n.loader.Xy("sabrcrq",{utc:1}),!0;if(n.Z.N)return n.policy.N&&n.loader.Xy("sabrcrq",{audio:1}),!0;if(!n.W.targetAudioReadaheadMs||!n.W.targetVideoReadaheadMs)return n.policy.N&&n.loader.Xy("sabrcrq",{noreadahead:1}),!0;if(n.policy.S&&n.loader.z4())return n.policy.N&&n.loader.Xy("sabrcrq",{seekToHead:1}),!0;t=Math.min(bD(n.loader,n.audioTrack)*1E3,n.W.targetAudioReadaheadMs);c=Math.min(bD(n.loader, n.videoTrack)*1E3,n.W.targetVideoReadaheadMs);M=Math.min(t,c);var Y=n.Mm.getCurrentTime()*1E3,G=AKd(n);q=G.S2;G=G.QF;if(n.policy.i7){var k=PQ(n.wJ.pn,Y);var b=PQ(n.jX.pn,Y)}else k=q,b=G;var d=kq||t>=0&&c.J9>t+1)break;M=Math.max(M,c.startTimeMs+c.durationMs);t=Math.max(t,c.Je)}return Math.max(0,M-q)}; T8m=function(n,q,M){var t={iz:n.iz,H5:function(b,d){n.Mm.Hi(b,d)}, DW:n.policy.WO,Uc:n.policy.Z};n.iz.W.C&&(t.yC=(n.videoTrack.X.info.Bb||0)+(n.audioTrack.X.info.Bb||0));n.policy.S_&&(t.r8=n.audioTrack.X.index.va(),t.DW=!1);var c=UUU(q,n.policy,n.J)?2:1;c!==n.RL&&(n.RL=c,$Sj(n));M=B8R(n,M);if(n.policy.xl&&n.policy.Z&&M.z6){for(var Y=c="",G=g.S(M.z6),k=G.next();!k.done;k=G.next())k=k.value,n.videoData.sabrContextUpdates.has(k)||n.policy.xl&&M.B7&&M.B7.type===k?c+="_"+k:Y+="_"+k;n.loader.Xy("sabrbldrqs",{ctxts:c,misctxts:Y})}!q.setData(M,n.policy,n.J)&&n.policy.xl&& n.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);t=new QR(n.policy,q,n.fm,n.J,n,t,n.loader.W0());pn(n.timing);n.policy.N&&n.loader.Xy("sabrcrq",{rn:t.AP(),probe:q.vl()});return t}; Vw=function(n,q){if(q.qm()||n.qm())n.policy.A2||(n.policy.S?Jz(n.loader):n.loader.iY());else{if(n.policy.Z&&q.isComplete()&&q instanceof QR){var M=n.loader,t=M.Xy,c,Y,G=Object.assign(q.Jg.nC(),{rst:q.state,strm:q.xhr.R3(),d:(c=q.Jg.IL)==null?void 0:c.XX(),cncl:q.xhr&&q.fn.S?1:0,rqb:q.Z4,cwt:q.fn.Z,swt:(Y=q.Su)==null?void 0:Y.Yk});c=Object.assign(DU_(q.info),G);t.call(M,"rqs",c)}if(q.isComplete()&&q.vl()&&q instanceof QR)n.policy.Kn?q.Y$()?(q.dispose(),n.X.length===0?n.loader.iY():(n=n.X[0],n instanceof QR&&n.s3()&&n.Jj())):q.NS()&&n.loader.handleError(q.yr(),q.B$()):(q.dispose(),n.loader.iY());else{if(q.O_())q instanceof QR&&d5J(n.timing,q),$Sj(n),FOa(n);else if(q.NS())M=n.Mm.HZ(),q instanceof QR&&B1s(q.info)&&M&&n.loader.d6(M),q instanceof IO?n.X.pop():(M=1,q.canRetry()&&WNk(n.loader)&&(Ztd(n,q),M=0),n.loader.handleError(q.yr(),q.B$(),M));else{if(n.loader.isSuspended&&!q.isComplete())return;FOa(n)}q.qm()||q instanceof IO||(q.isComplete()?M=YRJ(q,n.policy,n.J):(M=c8C(q,n.policy,n.J),M===1&&(n.hE= !0)),M!==0&&(t=new dv(1,q.info.d7),t.XJ=M===2,T8m(n,t)));n.policy.o8&&!q.isComplete()?hDs(n.loader):n.loader.iY()}}}; FOa=function(n){for(;n.X.length&&n.X[0].uw(n.HA());){var q=n.X.shift();a6J(n,q)}n.X.length&&a6J(n,n.X[0])}; a6J=function(n,q){q instanceof QR&&(n.rJ=q);var M=new Set(q.CU(n.HA()));M=g.S(M);for(var t=M.next();!t.done;t=M.next()){var c=t.value;if(!(t=!(q instanceof IO))){t=n.Z;var Y=t.fm.r7,G=bu(t.videoInfos,Y);Y=P4u(t,c,Y);var k=G.includes(c);!t.Bm.Cq||Y||k||t.loader.Xy("sabrcpf",{fid:""+c,vfids:""+G.join("."),said:t.B||""});t=Y||G.includes(c)}if(t&&(t=q.kV(c,n.HA()),G=n.policy.K8&&iN(t[0].X.info.mimeType),q.LL(c,n.HA())))for(c=q.b0(c,n.HA()),c=g.S(c),Y=c.next();!Y.done;Y=c.next())if(Y=Y.value,n.policy.Z&& q instanceof IO&&n.loader.Xy("omblss",{s:Y.info.Sc()}),G)k=n.timing,k.xl||(k.xl=(0,g.jt)(),g.iX("fcb_r",k.xl,k.X)),k=n,k.videoData.r7()&&k.C&&rV(k.C)===rV(g.p8(Y.info.X.info,k.fm.r7))&&k.Mm.publish("sabrCaptionsDataLoaded",Y,k.gf.bind(k));else{k=Y.info.X.info.OC();var b=Y.info.X;if(k){var d=void 0;var N=n.Z,O=(d=q.Yn(n.HA()))==null?void 0:d.token;N.N&&b!==N.S?d=!0:(N.N=!1,b!==N.S&&(N.S=b,N.IA(b,N.audioTrack,O)),d=!1);if(d)continue}else d=void 0,sWU(n.Z,b,(d=q.Yn(n.HA()))==null?void 0:d.token);d=k? n.audioTrack:n.videoTrack;q instanceof IO&&(d.N=!1,q instanceof IO&&(k?trj(n.timing):iuU(n.timing)));try{wI(d,t,Y)}catch(e){Y=hU(e),n.loader.handleError(Y.errorCode,Y.details,Y.severity),d.Eu(),n.oK(!1,"pushSlice"),Jz(n.loader)}}}}; Ztd=function(n,q){n.policy.xl?n.X.splice(n.X.indexOf(q)).forEach(function(M){M.dispose()}):(n.X.pop(),q==null||q.dispose())}; R6f=function(n,q,M){for(var t=[],c=0;c0)for(var q=g.S(n.videoData.sabrContextUpdates.keys()),M=q.next();!M.done;M=q.next()){M=M.value;var t=void 0;((t=n.videoData.sabrContextUpdates.get(M))==null?0:t.sendByDefault)&&n.videoData.eX.add(M)}if(n.policy.xl&&n.X.length)for(q=g.S(n.X),M=q.next();!M.done;M=q.next())(M=M.value.Vt())&&M.type&&M.sendByDefault&&n.videoData.eX.add(M.type)}; opk=function(n){n.policy.TX&&(n.nm=void 0,n.yW=0)}; wOd=function(n,q){if(q.NS()||q.qm()){var M=n.loader,t=M.Xy,c=q.state;n=n.HA();var Y,G;if((q=(Y=q.jY)==null?void 0:Y.get(n))==null)q=void 0;else{Y=0;n=q.CU();for(var k=0;k=q.mediaTime?(q.resolve([q.mediaTime,q.id]),n.X.delete(q.id)):(q.delay.dispose(),M=(q.mediaTime-M)*1E3/n.Mm.getPlaybackRate(),q.delay=new g.zw(function(){CBC(n,q)},M/2),q.delay.start()))}; nts=function(n,q,M,t){var c=this;this.Z=n;this.cpn=q;this.Mm=M;this.X=t;this.W=new Map;this.S=new Map;this.N=this.B=NaN;this.C=!1;this.Rg="";this.isSeeking=!1;this.U=0;this.J=new JK1(M);this.w8=M.w8;this.Mm.subscribe("statechange",this.xl,this);this.Mm.subscribe("SEEK_TO",function(){c.dN()}); this.Mm.subscribe("SEEK_COMPLETE",function(){pOR(c)})}; Mnm=function(n,q){if(!n.isSeeking&&n.U!==q&&!isNaN(n.B)){n.U=q;var M=n.C?n.N:n.Z.HH(q);(M!==n.N||n.C)&&q9s(n,M,q)}}; q9s=function(n,q,M){var t=n.W.get(q),c=n.Z.getStartTime(q),Y=n.Z.getDuration(q);n.C=!1;n.N=q;var G=c,k;((k=t==null?void 0:t.X)!=null?k:[n.cpn]).forEach(function(b,d){var N,O=(N=t==null?void 0:t.W[d])!=null?N:Y;if(M>=G&&Mc?Y9C(n,Y,n.W.get(Y)):Y===c&&Y9C(n,Y,n.W.get(Y),t-n.Z.getStartTime(Y))})}; iif=function(n,q,M,t){q!==n.Rg&&(n.Mm.Xy("ssevt",{tag:n.X===0?"sstd-cr":n.X===1?"sstd-tm":n.X===2?"sstd-poll":n.X===3?"sstd-poll100":"sstd-unknown",ad:n.cpn!==q,cpn:q,st:M.toFixed(3),late:Math.round(n.isSeeking?0:(t-M)*1E3)}),n.Rg=q,n.Mm.publish("playbackstarted",q,M+n.Mm.NP()))}; G1C=function(n){var q=g.S(n.split("."));n=q.next().value;q=q.next().value;return[Number(n),q]}; cvm=function(n,q,M,t){M=q+"."+M;n.S.has(q)?n.S.get(q).push(M):n.S.set(q,[M]);n.X===1&&xSk(n.J,t,M).then(function(c){var Y=g.S(c);c=Y.next().value;Y=Y.next().value;Y=g.S(G1C(Y));Y.next();Y=Y.next().value;iif(n,Y,c,Vma(n.J))}); n.X===0&&(n.w8.uR("transitiondetector",M),q=(t+n.Mm.NP())*1E3,n.w8.y6([new g.Ji(q,q+5E3,{id:M,namespace:"transitiondetector",priority:9})]))}; KZJ=function(n,q,M,t,c){this.loader=n;this.policy=q;this.schedule=M;this.o$=t;this.U=c;this.xl=NaN;this.W=this.N=this.J=null;this.X=this.S=this.C=this.startTimeSecs=NaN;this.Z=!1;this.B=NaN}; k1_=function(n,q,M,t,c,Y){return q.He&&q.Fh&&M===3?new KZJ(n,q,t,c,Y):null}; bik=function(n,q){if(n.policy.ll){var M=q.info.Bb,t=x$(n.schedule);q=q.index.va();M=Math.max(1,t/M);n.B=Math.round(Math.max(((M-1)*q+n.policy.cn)/M,q-n.policy.qS)*1E3)}}; Oif=function(n,q){var M=Date.now()/1E3,t=M-n.startTimeSecs,c=M-n.C,Y=c>=n.policy.iJ,G=!1;if(Y){var k=0;!isNaN(q)&&q>n.S&&(k=q-n.S,n.S=q);k/c=n.policy.qS&&!n.Z;if(!Y&&!M&&dmm(n,q))return NaN;M&&(n.Z=!0);a:{t=G;M=(0,g.jt)()/1E3-(n.o$.BI()||0)-n.N.X-n.policy.cn;Y=n.W.startTime;M=Y+M;if(t){if(isNaN(q)){Cv(n,NaN,"n",q);Y=NaN;break a}t=q-n.policy.GF;t0&&(k.headers=b);Y&&(k.onFinish=Y);return Object.keys(k).length>1?k:null}; S9U=function(n,q,M,t,c,Y,G,k){il()&&M.token&&(n=np(n,{ctt:M.token,cttype:M.uN,mdx_environment:M.mdxEnvironment}));t.D("net_pings_low_priority")&&(q||(q={}),q.priority="low");Y||k&&t.D("nwl_skip_retry")?(q==null?q={}:smf(n,t.D("html5_assert_cpn_with_regex")),G?ok().sendAndWrite(n,q):ok().sendThenWrite(n,q,k)):q?(smf(n,t.D("html5_assert_cpn_with_regex")),iYd(n,q)):g.ux(n,c)}; I9s=function(n){for(var q=[],M=0;M0&&M>0&&!n.W&&n.Z<1E7)try{n.J=n.S({sampleInterval:q,maxBufferSize:M});var t;(t=n.J)==null||t.addEventListener("samplebufferfull",function(){return g.u(function(c){if(c.X==1)return g.U(c,n.stop(),2);LZU(n);g.Sk(c)})})}catch(c){n.W=HiJ(c.message)}}; P3s=function(n,q){var M,t;return!!((M=window.h5vcc)==null?0:(t=M.settings)==null?0:t.set(n,q))}; TZ1=function(){var n,q,M,t=(n=window.h5vcc)==null?void 0:(q=n.settings)==null?void 0:(M=q.getPersistentSettingAsString)==null?void 0:M.call(q,"cpu_usage_tracker_intervals");if(t!=null){var c;n=(c=JSON.parse(t))!=null?c:[];c=n.filter(function(d){return d.type==="total"}).map(function(d){return d.seconds}); q=g.S(vtj);for(M=q.next();!M.done;M=q.next())M=M.value,c.indexOf(M)===-1&&n.push({type:"total",seconds:M});var Y,G;(Y=window.h5vcc)==null||(G=Y.settings)==null||G.set("cpu_usage_tracker_intervals_enabled",1);var k,b;(k=window.h5vcc)==null||(b=k.settings)==null||b.set("cpu_usage_tracker_intervals",JSON.stringify(n))}}; l9R=function(){var n=window.H5vccPlatformService,q="";if(n&&n.has("dev.cobalt.coat.clientloginfo")&&(n=n.open("dev.cobalt.coat.clientloginfo",function(){}))){var M=n.send(new ArrayBuffer(0)); M&&(q=String.fromCharCode.apply(String,g.EJ(new Uint8Array(M))));n.close()}return q}; g.pv=function(n){g.F.call(this);var q=this;this.provider=n;this.logger=new g.jr("qoe");this.X=new Map;this.sequenceNumber=1;this.RL=NaN;this.TU="N";this.B=this.OD=this.PF=this.xl=this.W=0;this.Kd=this.SX=this.C=this.AE="";this.JQ=this.rJ=NaN;this.yS=0;this.Kn=-1;this.o8=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Wg=this.isEmbargoed=this.IL=this.isOffline=this.isBuffering=!1;this.cn=[];this.U=null;this.QS=this.J=this.Ux=this.N=!1;this.Z=-1;this.hE=!1;this.TX=new g.zw(this.nY,750,this);this.FQ= this.adCpn=this.jX=this.contentCpn="";this.adFormat=void 0;this.K8=0;this.eX=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.rZ=new Set(["gd","pw","gp","gm"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.uG=!1;this.O9=NaN;this.nm=0;this.Fh=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Yi=!1;this.Wm=new Set;this.vg={KO:function(Y){q.KO(Y)}, IYE:function(){return q.S}, AI:function(){return q.contentCpn}, Lgx:function(){return q.jX}, reportStats:function(){q.reportStats()}, hz1:function(){return q.X.get("cat")||[]}, C2:function(Y){return q.X.get(Y)||[]}, sKE:function(){return q.X}, yfm:function(){return 0}, CMt:function(){return{adCpn:q.adCpn,FQ:q.FQ,adFormat:q.adFormat}}}; this.wJ=this.provider.Q1.D("html5_qoe_relaxed_reporting");var M=g.ic(this.provider.Q1.experiments,"html5_qoe_proto_mock_length");M&&!xE.length&&(xE=I9s(M));g.Z(this,this.TX);try{var t,c;(c=(t=navigator).getBattery)==null||c.call(t).then(function(Y){q.U=Y})}catch(Y){}g.Qw(this,0,"vps",["N"]); n.Q1.Aq()&&(this.nm=(0,g.jt)(),this.O9=g.dO(function(){var Y=(0,g.jt)(),G=Y-q.nm;G>500&&q.Xy("vmlock",{diff:G.toFixed()});q.nm=Y},250)); this.provider.videoData.We&&(this.remoteControlMode=Umf[this.provider.videoData.We]||0);this.provider.videoData.v_&&(M=kpR(this.provider.videoData.v_),M==null?0:M.length)&&(this.remoteConnectedDevices=M);n.Q1.Aq()&&(this.Yl=new Et1,g.Z(this,this.Yl));M=g.ic(n.Q1.experiments,"html5_js_self_profiler_sample_interval_ms");n=g.ic(n.Q1.experiments,"html5_js_self_profiler_max_samples");M>0&&n>0&&(this.V1=new rv(M,n),g.Z(this,this.V1))}; nb=function(n,q,M){var t=n.X.get(q);t?t.push(M):n.X.set(q,[M])}; g.Qw=function(n,q,M,t){nb(n,M,q.toFixed(3)+":"+t.join(":"))}; uUR=function(n,q){var M=n.adCpn||n.provider.videoData.clientPlaybackNonce,t=n.provider.getCurrentTime(M);g.Qw(n,q,"cmt",[t.toFixed(3)]);M=t=n.provider.Gy(M);if((!n.S||n.provider.Q1.D("html5_shorts_gapless_no_gllat")&&lB(n.provider.videoData)?0:M*1E3>n.S.sP+100)&&n.S){var c=n.S;M=c.isAd;t=t*1E3-c.sP;n.Lp=q*1E3-c.pIl-t-c.TOx;c=(0,g.jt)()-t;q=n.Lp;t=n.provider.videoData;var Y=t.isAd();if(M||Y){Y=(M?"ad":"video")+"_to_"+(Y?"ad":"video");var G={};t.C&&(G.cttAuthInfo={token:t.C,videoId:t.videoId});G.startTime= c-q;P_(Y,G);g.LD({targetVideoId:t.videoId,targetCpn:t.clientPlaybackNonce},Y);H_("pbs",c,Y)}else c=n.provider.Mm.Zu(),c.C!==t.clientPlaybackNonce?(c.S=t.clientPlaybackNonce,c.W=q):t.m4()||g.PJ(new g.aE("CSI timing logged before gllat",{cpn:t.clientPlaybackNonce}));n.Xy("gllat",{l:n.Lp.toFixed(),prev_ad:+M});delete n.S}}; MM=function(n,q){q=q===void 0?NaN:q;q=q>=0?q:g.qM(n.provider);var M=n.provider.Mm.Ba(),t=M.TD-(n.rJ||0);t>0&&g.Qw(n,q,"bwm",[t,(M.ZE-(n.JQ||0)).toFixed(3)]);isNaN(n.rJ)&&M.TD&&n.isOffline&&n.KO(!1);n.rJ=M.TD;n.JQ=M.ZE;isNaN(M.bandwidthEstimate)||g.Qw(n,q,"bwe",[M.bandwidthEstimate.toFixed(0)]);n.provider.Q1.Aq()&&Object.keys(M.X).length!==0&&n.Xy("bwinfo",M.X);if(n.provider.Q1.Aq()||n.provider.Q1.D("html5_log_meminfo"))t=gt1(),Object.values(t).some(function(Y){return Y!==void 0})&&n.Xy("meminfo", t); if(n.provider.Q1.Aq()){var c;(t=(c=n.Yl)==null?void 0:hUR(c))&&Object.values(t).some(function(Y){return Y!=null})&&n.Xy("cpuinfo",t)}n.V1&&n.Xy("jsprof",n.V1.flush()); n.U&&g.Qw(n,q,"bat",[n.U.level,n.U.charging?"1":"0"]);c=n.provider.Mm.getVisibilityState();n.Kn!==c&&(g.Qw(n,q,"vis",[c]),n.Kn=c);uUR(n,q);(c=BZm(n.provider))&&c!==n.yS&&(g.Qw(n,q,"conn",[c]),n.yS=c);Dmj(n,q,M)}; Av1=function(n){var q=n.provider.Mm.Ba(),M=g.qM(n.provider);Dmj(n,M,q);var t=q.Z;q=q.J;isNaN(t)||(n.provider.Q1.D("html5_unified_live_latency_reporting")&&!isNaN(q)&&q?g.Qw(n,M,"e2el",[t.toFixed(3),q.toFixed(3)]):g.Qw(n,M,"e2el",[t.toFixed(3)]))}; Dmj=function(n,q,M){if(!isNaN(M.JY)){var t=M.JY;M.W96E3&&(new g.zw(n.reportStats,0,n)).start()}}; FZs=function(n){n.provider.videoData.jL&&ir(n,"prefetch");n.provider.videoData.Yi&&n.Xy("reload",{r:n.provider.videoData.reloadReason,ct:n.provider.videoData.Yi});n.provider.videoData.Ux&&ir(n,"monitor");n.provider.videoData.isLivePlayback&&ir(n,"live");XH&&ir(n,"streaming");n.provider.videoData.We&&n.Xy("ctrl",{mode:n.provider.videoData.We},!0);if(n.provider.videoData.v_){var q=n.provider.videoData.v_.replace(/,/g,"_");n.Xy("ytp",{type:q},!0)}n.provider.videoData.kI&&(q=n.provider.videoData.kI.replace(/,/g, "."),n.Xy("ytrexp",{ids:q},!0));q=n.provider.videoData;var M=n.provider.Q1.D("enable_white_noise")||n.provider.Q1.D("enable_webgl_noop"),t=g.w8(q)||g.i3(q)||g.tv(q)||g.co(q);(M||t)&&(M=(0,g.t3)())&&n.X.set("gpu",[M]);hv(n.provider.videoData)&&g.Qw(n,g.qM(n.provider),"dt",["1"]);q.cotn&&!hv(q)&&n.KO(!0);n.provider.Q1.Aq()&&(q=(0,g.jt)()-n.provider.Q1.VA,n.Xy("playerage",{secs:Math.pow(1.6,Math.round(Math.log(q/1E3)/Math.log(1.6))).toFixed()}));n.J=!0;n.RL=g.dO(function(){n.reportStats()},1E4)}; a9d=function(n,q,M){var t=g.qM(n.provider);Zif(n,t,q,0,M);MM(n,t);$ms(n)}; Zif=function(n,q,M,t,c){var Y=n.provider.Q1.X.cbrver;n.provider.Q1.X.cbr==="Chrome"&&/^96[.]/.test(Y)&&M==="net.badstatus"&&/rc\.500/.test(c)&&RU_(n,3);n.provider.Q1.D("html5_use_ump")&&/b248180278/.test(c)&&RU_(n,4);Y=n.provider.getCurrentTime(n.adCpn||n.provider.videoData.clientPlaybackNonce);t=t===1?"fatal":"";M=[M,t,Y.toFixed(3)];t&&(c+=";a6s."+r5());c&&M.push(ota(c));g.Qw(n,q,"error",M);n.J=!0}; wod=function(n,q){var M=g.qM(n.provider);if(!n.provider.Q1.experiments.Hb("html5_refactor_sabr_video_format_selection_logging")||q.X.id!==n.AE){var t=[q.X.id,q.W,n.AE,q.reason];q.token&&t.push(q.token);g.Qw(n,M,"vfs",t);n.AE=q.X.id;t=n.provider.Mm.getPlayerSize();if(t.width>0&&t.height>0){t=[Math.round(t.width),Math.round(t.height)];var c=g.IW();c>1&&t.push(c);g.Qw(n,M,"view",t)}n.Ux||(n.provider.Q1.Aq()&&ir(n,"rqs2"),n.provider.videoData.X&&Ac(n.provider.videoData.X)&&n.X.set("preload",["1"]));n.Ux= !0;n.J=!0}q.reason==="m"&&++n.K8===100&&RU_(n,2);g.Qw(n,M,"vps",[n.TU]);n.wJ||n.reportStats(M)}; zUm=function(n){n.Z>=0||(n.provider.Q1.YB||n.provider.Mm.getVisibilityState()!==3?n.Z=g.qM(n.provider):n.hE=!0)}; Jvd=function(n,q,M){var t=g.qM(n.provider);g.Qw(n,t,"vfi",[q==="A"?"":""+(M!=null?M:0),q])}; VnR=function(n,q,M){if(n.provider.Q1.experiments.Hb("html5_refactor_sabr_audio_format_selection_logging")){q=M.X;var t=[q.audio&&q.video?q.bl?q.bl:"":q.id];q.tq&&q.tq.id&&t.push(q.tq.id);q=t.join(";");q!==n.C&&(t=[q,n.C,M.reason],M.token&&t.push(M.token),g.Qw(n,g.qM(n.provider),"afs",t),n.C=q)}else M.X.id!==n.C&&(t=[M.X.id,n.C,M.reason],M.token&&t.push(M.token),g.Qw(n,q,"afs",t),n.C=M.X.id)}; ir=function(n,q){nb(n,"cat",q)}; C3d=function(n,q,M,t,c){var Y=g.qM(n.provider);q!==1&&q!==3&&q!==5||g.Qw(n,Y,"vps",[n.TU]);nb(n,"xvt","t."+Y.toFixed(3)+";m."+c.toFixed(3)+";g.2;tt."+q+";np.0;c."+M+";d."+t)}; RU_=function(n,q){n.QS||(nb(n,"fcnz",""+q),n.QS=!0)}; ota=function(n){/[^a-zA-Z0-9;.!_-]/.test(n)&&(n=n.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return n}; g.Y9=function(n,q,M,t,c,Y,G,k,b,d){k=k===void 0?!1:k;g.F.call(this);var N=this;this.Mm=n;this.schedule=q;this.policy=M;this.fm=t;this.wJ=b;this.Wm=d;this.md=null;this.AE=this.V1=this.rJ=this.RL=0;this.jp=this.Hh=this.isSuspended=!1;this.eX="";this.rZ={};this.Fh=NaN;this.uG=0;this.B=null;this.O9=this.SX=!1;this.BD=0;this.Ux=!1;this.nm=this.QS=0;this.JQ=null;this.xH=!1;this.Cb=function(){return N.Mm.Cb()}; this.timing=new MrR(this.Wm);this.U=new pI(this.schedule,this.policy);this.yS=new g.zw(this.iY,0,this);this.Kd=new g.zw(this.iY,this.policy.o8,this);this.v0=new g.zw(this.iY,1E3,this);this.cn=new g.zw(this.iY,void 0,this);this.Yl=new g.zw(function(){N.isSuspended||N.iY()},1E4,this); this.Kn=new g.zw(this.f6y,250,this);this.C=this.currentTime=NaN;this.k7=new Zj(5);this.IL=this.timestampOffset=NaN;this.logger=new g.jr("dash");this.TX=Infinity;this.vg={yzs:function(){return N.DU}, E9s:function(){return N.Z}, getAudioTrack:function(){return N.audioTrack}, hb1:function(){return N.videoTrack}, bCm:function(){return N.jX}, getManifest:function(){return N.fm}, mZs:function(){return N.W}, iY:function(){N.iY()}, Cv:function(){N.RL=0;N.Cv()}, OUy:function(e){return cF(N,N.videoTrack,N.md.W,e)}}; n=b&&b.CU();b&&(rGs(b,this.fm,this.policy),this.IL=Date.now());this.X=new gI(this,this.U,M,this.fm,c,n);M=U5d(this.X,Y,G&&G.id);this.audioTrack=new Zo(this,this.policy,M.audio,this.timing);this.videoTrack=new Zo(this,this.policy,M.video,this.timing);this.videoTrack.J.jX=this.audioTrack.CJ();this.hE={updateend:this.di,error:this.pgL};g.Z(this,this.yS);g.Z(this,this.Kd);g.Z(this,this.v0);g.Z(this,this.cn);g.Z(this,this.Yl);M=this.policy.Zo&&this.policy.ih?!vBs(this.videoTrack.X.info):!1;this.o8=JyR({jA:this.policy.B.jA|| M,ih:this.policy.ih&&!M,uM:this.policy.uM});this.N=k1_(this,this.policy,this.o8,this.schedule,this.k7,function(e,E){return rvm(N,e,E)}); this.Z=new nU(this,this.fm,this.policy,this.videoTrack,this.audioTrack,k);this.policy.eX&&this.policy.W&&(this.jX=new X$s(this.policy.C,function(e,E){N.Xy(e,E)})); this.DU=new cE(this,this.fm,this.videoTrack,this.audioTrack,this.policy);k=this.policy.p6?this.Mm.getVideoData().f_:null;this.S=new cQ(this,this.policy,this.videoTrack,this.audioTrack,this.rZ,this.Z,this.timing,this.U,this.schedule,this.fm,this.X,this.N,M,k);g.Z(this,this.S);this.J=new kE(this,this.policy,this.videoTrack,this.audioTrack,this.fm,c,Uh(this.Mm.getVideoData()),G==null?void 0:G.id);g.Z(this,this.J);fus(this.J,Y);this.W=new PBC(this.Mm,this,this.policy,this.audioTrack,this.videoTrack,this.fm, this.schedule,this.X,this.J,this.timing,this.Z,this.jX);g.Z(this,this.W);this.xl=this.Mm.Nn.aO.Or;this.policy.S||xms(this);if(this.policy.NV){var O;this.Wg=new nts(this.videoTrack.X.index,(O=this.Mm.getVideoData().clientPlaybackNonce)!=null?O:"",this.Mm,this.policy.Wg);this.policy.Wg===3&&(this.Yi=new g.zw(this.Ql,200,this),this.Yi.start(),g.Z(this,this.Yi))}this.logger.debug("Created")}; xms=function(n){var q,M;if((q=n.xl)==null?0:(M=q.U1)==null?0:M.itagDenylist){var t;n.Fg((t=n.xl)==null?void 0:t.U1.itagDenylist)}var c;if((c=n.xl)==null?0:c.playbackStartPolicy){var Y,G;qRd(n.policy,(Y=n.xl)==null?void 0:Y.playbackStartPolicy,3,(G=n.xl)==null?void 0:G.AP())}if(n.policy.DN){q=n.HA();var k;(M=q?(k=n.xl)==null?void 0:k.NT.get(q):void 0)&&n.W.oa(M)}if(!n.fm.xl){var b;k=(b=n.xl)==null?void 0:b.QN;(k==null?0:k.uO)&&(k==null?0:k.SS)&&n.fm.r7&&QZ(n.fm,k.uO,k.SS)}var d;((d=n.xl)==null?0:d.WQ)&& (b=n.xl.WQ.get(n.HA()||""))&&n.fm&&b.formatId&&(n=n.fm.Z.get(rV(b.formatId)))&&(n.info.debugInfo=b.debugInfo)}; Qmu=function(n,q){var M=rV(g.p8(q.X.info,n.fm.r7)),t,c=((t=n.wJ)==null?void 0:t.kV(M))||[];if(c.length===0)return n.Xy("ombmsi",{}),!1;c=new kQ(c);if(t=!n.policy.RL||isFinite(n.getCurrentTime())||n.Mm.HZ()){a:{t=n.getCurrentTime();c=g.S(c.Ex);for(var Y=c.next();!Y.done;Y=c.next())if(Y=Y.value,Y.type===3&&t>=Y.S&&t<=Y.C){t=!0;break a}t=!1}t=!t}if(t)return n.Xy("ostmf",{ct:n.getCurrentTime(),a:q.X.info.OC()}),!1;(n=n.wJ)!=null&&(n.ya.get(M).Y7=!0);return!0}; poR=function(n){if(!n.fm.r7)return!0;var q=n.Mm.getVideoData();if(n.Mm.Td())return n.Xy("ombpa",{}),!1;var M,t;if(!!((M=n.xl)==null?0:(t=M.QN)==null?0:t.DVm)!==n.fm.C8)return n.Xy("ombplmm",{}),!1;M=q.uG||q.liveUtcStartSeconds||q.cn;if(n.fm.C8&&M)return n.Xy("ombplst",{}),!1;if(n.fm.xl)return n.Xy("ombab",{}),!1;M=Date.now();return pu(n.fm)&&!isNaN(n.IL)&&M-n.IL>n.policy.dY*1E3?(n.Xy("ombttl",{}),!1):n.fm.qV&&n.fm.J||!n.policy.g1&&n.fm.isPremiere||oi(q)!==0&&!n.policy.X||q.D("html5_disable_onesie_media_for_mosaic")&& E9(q)||q.D("html5_disable_onesie_media_for_lifa_eligible")&&gZ(q)?!1:!0}; nzU=function(n,q){var M=q.X,t=n.fm.r7;if(poR(n))if(n.wJ&&n.wJ.ya.has(rV(g.p8(M.info,t)))){if(t=rV(g.p8(M.info,t)),Qmu(n,q)){var c=new kQ(n.wJ.kV(t)),Y=function(G){try{if(G.NS())n.handleError(G.yr(),G.B$()),QP(q,G),dm(G.info)&&YE(n.S,q,M,!0),n.iY();else if(eDU(n.S,G)){var k;(k=n.Z)==null||EQu(k,G.info,n.B);n.iY()}}catch(b){G=hU(b),n.handleError(G.errorCode,G.details,G.severity),n.Eu()}}; M.Z=!0;bh(c)&&(oo(q,new YX(n.policy,t,c,n.wJ,Y)),pn(n.timing))}}else n.Xy("ombfmt",{})}; q3d=function(n,q){q=q||n.videoTrack&&n.videoTrack.W&&n.videoTrack.W.startTime||n.getCurrentTime();var M=G_,t=n.videoTrack,c=n.X;q=c.nextVideo&&c.nextVideo.index.HH(q)||0;c.jX!==q&&(c.nm={},c.jX=q,e8(c,c.X));q=!c.X.isLocked()&&c.U>-1&&(0,g.jt)()-c.Uq.X&&q.reason==="b";t||c||M?(n.Mm.wU({reattachOnConstraint:t?"u":c?"drm":"perf",lo:q.W,up:q.X}),n.policy.Xw||(n.J.X.W=!1)):(n.policy.Xw&&(n.J.X.W=!1),Jz(n))}}else if(!uuU(n.X,q)&&n.videoTrack){n.logger.debug(function(){return"Setting constraint: r="+q.reason+" u="+q.X}); M=n.X.X;k6J(n,D5k(n.X,q));q3d(n);t=q.isLocked()&&q.reason==="m"&&n.X.RL;c=n.policy.u$&&q.reason==="l"&&nv(n.videoTrack);M=M.X>q.X&&q.reason==="b";var Y=n.X.hE&&!W3();t||c||M||Y?n.Mm.wU({reattachOnConstraint:t?"u":c?"drm":Y?"codec":"perf"}):Jz(n)}}; dWu=function(n,q,M){if((!n.md||XD(n.md)&&!n.policy.fR)&&!n.DU.isSeeking()&&(n.policy.X||nv(q)&&q.X.n9()&&n.X.xl)){var t=n.getCurrentTime()+TXu(n.U,q,M);n.logger.debug(function(){return"Clearing back to "+t.toFixed(3)}); m0u(q,t)}}; k6J=function(n,q){q&&(n.logger.debug(function(){return"Logging new format: "+c3(q.video.info)}),N6J(n.Mm,new KU(q.video,q.reason))); if(n.X.V1){var M=FcU(n.X,"a");n.Mm.T_(new KU(M.audio,M.reason))}}; Jz=function(n){g.Jd(n.yS)}; hDs=function(n){n.policy.o8&&n.policy.uM&&Math.min(A4f(n.videoTrack),A4f(n.audioTrack))*1E3>n.policy.aS?g.Jd(n.Kd):n.iY()}; OI1=function(n,q){var M=(0,g.jt)()-q,t=rI(n.audioTrack,!0)*1E3,c=rI(n.videoTrack,!0)*1E3;n.logger.debug(function(){return"Appends paused for "+M}); if(n.policy.Z&&(n.Xy("apdpe",{dur:M.toFixed(),abuf:t.toFixed(),vbuf:c.toFixed()}),iu(n.policy))){var Y=M$(n.U);n.Xy("sdps",{ct:q,ah:t.toFixed(),vh:c.toFixed(),mr:iD(n.U,n.jp,Y),bw:Y.toFixed(),js:n.isSeeking(),re:+n.jp,ps:(n.policy.t5||"").toString(),rn:(n.policy.Oj||"").toString()})}}; gzu=function(n){if(wrC(n.videoTrack))return n.logger.debug("Pausing appends for server-selectable format"),"ssf";if(n.policy.hE&&VFC(n.videoTrack)&&VFC(n.audioTrack))return"updateEnd";if(pU(n.audioTrack)||pU(n.videoTrack)&&n.videoTrack.X.info.Ts!=="f")return"";if(n.DU.isSeeking()){var q=n.U;var M=n.videoTrack;var t=n.audioTrack;if(q.policy.X){var c=q.policy.uh;iu(q.policy)&&(c=iD(q,!1,M$(q)));q=c;M=rI(t,!0)>=q&&rI(M,!0)>=q}else M.Z.length||t.Z.length?(c=M.X.info.Bb+t.X.info.Bb,c=10*(1-M$(q)/c),q= Math.max(c,q.policy.uh),M=rI(t,!0)>=q&&rI(M,!0)>=q):M=!0;if(!M)return"abr";M=n.videoTrack;if(M.Z.length>0&&M.J.W.length===1&&d0U(M.J).info.B360);t=iu(n.policy)&&n.policy.h2;if(!n.jp||!t&&M)return"";M=n.policy.W_;iu(n.policy)&&(M=iD(n.U,n.jp,M$(n.U)));M=Zx1(n.videoTrack,n.getCurrentTime(),M)||Zx1(n.audioTrack,n.getCurrentTime(), M);return iu(n.policy)?M?"mbnm":"":(n.videoTrack.Z.length>0||n.audioTrack.Z.length>0||G3j(n.S,n.videoTrack,n.audioTrack)||G3j(n.S,n.audioTrack,n.videoTrack))&&M?"nord":""}; es1=function(n){if(n.N){var q=n.N.iY(n.audioTrack,df(n.md.W.Xm()));q&&n.Mm.seekTo(q,{Qm:!0,hQ:"pollSubsegmentReadahead",rp:!0})}}; j5R=function(n,q,M){if(n.policy.hE&&VFC(q))return!1;if(M.Ds())return!0;if(!M.zS())return!1;var t=ep(q);if(!t||t.info.type===6)return!1;var c;if(n.policy.Bj||((c=n.Z)==null?0:sXJ(c,q,t.info.zs)))n.AE=0;else return n.DU.isSeeking()&&Jz(n),n.AE=n.AE||(0,g.jt)(),!1;if(!cF(n,q,M,t.info))return!1;if(n.fm.W&&t.info.W===0){if(c=Ez_(q,M,t)){var Y=Ro(q);n.Xy("initchg",{it:t.info.X.info.id,sr:!!Y&&Y.X===t.info.X,ty:t.info.type,seg:t.info.zs})}Y=g.xJ(t.info.X.info);n.policy.Z6&&Y&&!c&&q_s(t)}Y=n.N&&!!n.N.J&& q.X.info.audio;c=n.fm.isManifestless||t.S;if(!(n.fm.W&&t.info.W!==0||c&&!Y)&&hsJ(n,q,M,t))return!0;if(Y)return!1;Y=bD(n,q);Y=n.getCurrentTime()+Y;if(t.info.S>Y)return n.policy.X&&Wid(n,q),n.policy.cj&&Rbf(q.J,Y,!1),!1;yVa(n,q);var G;n.policy.YB&&M===((G=n.md)==null?void 0:G.X)&&n.Ux&&(M.K2()===0?(n.Ux=!1,n.policy.YB=!1):n.QS=M.K2());if(!s5k(n,M,t,q))return!1;n.policy.hE&&t.info.Ci()?(n.Mm.T().Aq()&&n.Xy("eosl",{ls:t.info.Sc()}),t.isLocked=!0):(q.VZ(t),$5d(n.X,t.info),n.logger.debug(function(){return"Appended "+ t.info.Sc()+", buffered: "+Ga(M.Xm())})); c&&X8s(n,t.info.X.jT);return!0}; Wid=function(n,q){q===n.videoTrack?n.V1=n.V1||(0,g.jt)():n.rJ=n.rJ||(0,g.jt)()}; yVa=function(n,q){q===n.videoTrack?n.V1=0:n.rJ=0}; s5k=function(n,q,M,t){var c=n.policy.yS?(0,g.jt)():0,Y=M.S&&M.info.X.X||void 0,G=M.W;M.S&&(G=S3s(n,M,G)||G);var k=kV(G);G=n.policy.yS?(0,g.jt)():0;q=IOJ(n,q,k,M.info,Y);(t=t.U)!=null&&(Y=M.info,c=G-c,G=(0,g.jt)()-G,!t.W||W4k(t.W,Y)&&t.W.zs===Y.zs||t.flush(),t.J+=c,t.Z+=G,c=1,!t.W&&Y.W&&(c=2),X6(t,c,q),G=Math.ceil(Y.W/1024),c===2&&t.X.add(G),t.X.add(Math.ceil((Y.W+Y.Z)/1024)-G),t.W=Y);n.nm=0;if(q===0)return n.SX&&(n.logger.debug("Retry succeed, back to normal append logic."),n.SX=!1,n.O9=!1),n.uG= 0,!0;if(q===2||q===5)return fOs(n,"checked",q,M.info),!1;if(q===1){if(!n.SX)return n.logger.debug("QuotaExceeded, retrying."),n.SX=!0,!1;if(!n.O9)return n.O9=!0,n.Mm.seekTo(n.getCurrentTime(),{hQ:"quotaExceeded",rp:!0}),!1;M.info.Cu()?(c=n.policy,c.rJ=Math.floor(c.rJ*.8),c.jX=Math.floor(c.jX*.8)):(c=n.policy,c.QS=Math.floor(c.QS*.8),c.jX=Math.floor(c.jX*.8));n.policy.X?b1(n.J.X,M.info.X,!1):hL(n.X,M.info.X)}n.Mm.wU({reattachOnAppend:q});return!1}; S3s=function(n,q,M){var t;if(t=n.policy.e9&&n.md&&!n.md.B&&!n.Mm.Bh())q=q.info.X.info,t=q.Fm()&&wy(q)&&q.video&&q.video.width<3840&&q.video.width>q.video.height;if(t&&(n.md.B=!0,jV('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return M=k5d(M),n.policy.Z&&n.Xy("sp4k",{s:!!M}),M}; fOs=function(n,q,M,t){var c="fmt.unplayable",Y=1;M===5||M===3?(c="fmt.unparseable",n.policy.X?!t.X.info.video||dI(n.J.X).size>0||b1(n.J.X,t.X,!1):!t.X.info.video||dI(n.X.S).size>0||hL(n.X,t.X)):M===2&&(n.uG<15?(n.uG++,c="html5.invalidstate",Y=0):c="fmt.unplayable");t=GW(t);var G;t.mrs=(G=n.md)==null?void 0:fW(G);t.origin=q;t.reason=M;t.trg="appenderr";n.handleError(c,t,Y)}; Hxd=function(n,q,M,t,c){var Y=n.fm;var G=n.policy.X,k=!1,b=-1,d;for(d in Y.X){var N=iN(Y.X[d].info.mimeType)||Y.X[d].info.Cu();if(t===N)if(N=Y.X[d].index,N.Lx(q.zs)){k=N;var O=q,e=k.mz(O.zs);e&&e.startTime!==O.startTime?(k.segments=[],k.A5(O),k=!0):k=!1;k?b=q.zs:!q.pending&&G&&(O=N.getDuration(q.zs),O!==q.duration&&(Y.publish("clienttemp","mfldurUpdate",{itag:Y.X[d].info.itag,seg:q.zs,od:O,nd:q.duration},!1),N.A5(q),k=!0))}else N.A5(q),k=!0}b>=0&&(G={},Y.publish("clienttemp","resetMflIndex",(G[t? "v":"a"]=b,G),!1));Y=k;JcU(n.DU,q,t,Y);if(n.policy.eX&&n.policy.W&&(b=q.aI||null)){var E;G=(E=n.W)==null?void 0:z6J(E).requestNumber;var h;(h=n.jX)==null||jXj(h,b,G,q.zs)}n.Z.aA(q,M,t,c);q.zs===n.fm.qV&&Y&&VZ(n.fm)&&q.startTime>VZ(n.fm)&&(n.fm.jX=q.startTime+(isNaN(n.timestampOffset)?0:n.timestampOffset),n.DU.isSeeking()&&n.DU.targetTime5)return n.nm= 0,n.Mm.wU({initSegStuck:1,as:t.info.Sc()}),!0}else n.nm=0,n.JQ=t;n.policy.Nh&&(M.abort(),(G=q.U)!=null&&(X6(G,4),G.flush()));c=IOJ(n,M,Y,b,c);var d;(d=q.U)==null||VrC(d,c,b);if(c!==0)return HIC(n,c,t),!0;t.info.Cu()?GWU(n.timing):Kcm(n.timing);n.logger.debug(function(){return"Appended init for "+t.info.X.info.id}); X8s(n,t.info.X.jT);return M.sQ()}; Ez_=function(n,q,M){if(q.N2()==null){n=Ro(n);if(!(q=!n||n.X!==M.info.X)){a:if(n=n.U,M=M.info.U,n.length!==M.length)M=!1;else{for(q=0;q1)return 6;G.nm=new g.zw(function(){var k=ep(G);n.qm()||k==null||!k.isLocked?n.Mm.T().Aq()&&n.Xy("eosl",{delayA:k==null?void 0:k.info.Sc()}):Lik(G)?(n.Mm.T().Aq()&&n.Xy("eosl",{dunlock:k==null?void 0:k.info.Sc()}),P6C(n,G===n.audioTrack)):(n.Xy("nue",{ls:k.info.Sc()}),k.info.xl+=1,n.md&&n.Cv())},1E4,n); n.Mm.T().Aq()&&n.Xy("eosl",{delayS:t.Sc()});G.nm.start()}n.policy.vp&&(t==null?void 0:t.X)instanceof Ob&&t.Ci()&&n.Xy("poseos",{itag:t.X.info.itag,seg:t.zs,lseg:t.X.index.Uq(),es:t.X.index.Z});q.appendBuffer(M,t,c)}catch(k){if(k instanceof DOMException){if(k.code===11)return 2;if(k.code===12)return 5;if(k.code===22||k.message.indexOf("Not enough storage")===0)return q=Object.assign({name:"QuotaExceededError",buffered:Ga(q.Xm()).replace(/,/g,"_"),vheap:VP(n.videoTrack),aheap:VP(n.audioTrack),message:g.vn(k.message, 3),track:n.md?q===n.md.W?"v":"a":"u"},gt1()),n.handleError("player.exception",q),1;g.Ly(k)}return 4}return n.md.vI()?3:0}; gp=function(n,q,M){iIa(n,M.hQ||"unknown");n.Mm.seekTo(q,M)}; X8s=function(n,q){q&&n.Mm.UR(new vy(q.key,q.type))}; u1=function(n,q){n.Mm.gb(q)}; bD=function(n,q){if(n.policy.RL&&n.SX&&!n.jp)return n.policy.JC;if(n.SX&&!n.jp)return 3;if(n.isSuspended)return 1;var M;if((M=n.md)==null?0:M.md&&M.md.streaming===!1)return 4;M=(q.X.info.audio?n.policy.QS:n.policy.rJ)/(q.Bb*n.policy.gp);if(n.policy.Nl>0&&n.md&&XD(n.md)&&(q=q.X.info.video?n.md.W:n.md.X)&&!q.sQ()){q=q.Xm();var t=KW(q,n.getCurrentTime());t>=0&&(q=n.getCurrentTime()-q.start(t),M+=Math.max(0,Math.min(q-n.policy.Nl,n.policy.HE)))}n.policy.jX>0&&(M=Math.min(M,n.policy.jX));return M}; u1d=function(n,q){return(bD(n,q)+n.policy.PL)*q.Bb}; T6s=function(n){n.eX&&!n.isSuspended&&Qt(n.schedule)&&(vzf(n,n.eX),n.eX="")}; vzf=function(n,q){Q_(q,"cms",function(M){n.policy.Z&&n.Xy("pathprobe",M)},function(M){n.Mm.handleError(M)})}; lOu=function(n,q){if(n.md&&n.md.J&&!n.md.vI()&&(q.JY=rI(n.videoTrack),q.W=rI(n.audioTrack),n.policy.Z)){var M=VP(n.videoTrack),t=VP(n.audioTrack),c=Ga(n.md.W.Xm(),"_",5),Y=Ga(n.md.X.Xm(),"_",5);Object.assign(q.X,{lvq:M,laq:t,lvb:c,lab:Y})}q.bandwidthEstimate=nn(n.U);var G;(G=n.audioTrack.U)==null||G.flush();var k;(k=n.videoTrack.U)==null||k.flush();n.logger.debug(function(){return gy(q.X)})}; UWm=function(n,q){n.B=q;n.Z&&(n.Z.Z=q);n.B.Aa(n.videoTrack.X.info.Fm());n.S.W=n.B;n.policy.W&&(n.W.N=n.B)}; B6m=function(n,q){if(n.md&&n.md.W){if(n.policy.G4){var M=r4s(n.audioTrack);if(M&&M.OC()){var t=n.Mm;if(t.Ry&&(t.Ry.X=M,M=t.Cd,M.qoe)){M=M.qoe;t=t.Ry;var c=g.qM(M.provider);VnR(M,c,t)}}}n.policy.qJ&&(M=r4s(n.videoTrack))&&M.Cu()&&(t=n.Mm,t.zH&&(t.zH.X=M,M=t.Cd,M.qoe&&wod(M.qoe,t.zH)));q-=isNaN(n.timestampOffset)?0:n.timestampOffset;n.getCurrentTime()!==q&&n.resume();n.DU.isSeeking()&&n.md&&!n.md.vI()&&(t=n.getCurrentTime()<=q&&q=q&&rvm(n,t.startTime,!1)}); return M&&M.startTimen.getCurrentTime())return M.start/1E3;return Infinity}; mSR=function(n){if(n.Mm.getVideoData().isLivePlayback)return!1;var q=n.Mm.Q6();if(!q)return!1;q=q.getDuration();if(n.md&&n.md.X&&n.md.W){var M=n.getCurrentTime(),t=n.md.X.Xm();n=n.md.W.Xm();t=t?bN(t,M):M;M=n?bN(n,M):M;M=Math.min(t,M);q=isNaN(M)?!1:M>=q-.01}else q=!1;return q}; HIC=function(n,q,M){n.policy.A0&&lB(n.Mm.getVideoData())?(n.Mm.PD()||fOs(n,"sepInit",q,M.info),QOf(n.Mm,"sie")):fOs(n,"sepInit",q,M.info)}; WNk=function(n){return n.Mm.hc()0){var t=M.X.shift();n9J(M,t.info)}M.X.length>0&&(t=M.X[0].time-(0,g.jt)(),M.W.start(Math.max(0,t)))}},0); g.Z(this,this.W);q.subscribe("widevine_set_need_key_info",this.J,this)}; n9J=function(n,q){a:{var M=q.cryptoPeriodIndex;if(isNaN(M)&&n.Z.size>0)M=!0;else{for(var t=g.S(n.Z.values()),c=t.next();!c.done;c=t.next())if(c.value.cryptoPeriodIndex===M){M=!0;break a}M=!1}}n.publish("log_qoe",{wvagt:"reqnews",canskip:M});M||n.publish("rotated_need_key_info_ready",q)}; qLJ=function(){var n={};var q=n.url;var M=n.interval;n=n.retries;this.url=q;this.interval=M;this.retries=n}; M1U=function(n,q){this.statusCode=n;this.message=q;this.W=this.heartbeatParams=this.errorMessage=null;this.X={};this.nextFairplayKeyId=null}; ibk=function(n,q,M){M=M===void 0?"":M;g.F.call(this);this.message=n;this.requestNumber=q;this.timer=M;this.onError=this.onSuccess=null;this.X=new g.u9(5E3,2E4,.2)}; t1k=function(n,q,M){n.onSuccess=q;n.onError=M}; YL1=function(n,q,M,t){var c={timeout:3E4,onSuccess:function(Y){if(!n.qm()){H_("drm_net_r",void 0,n.timer);var G=Y.status==="LICENSE_STATUS_OK"?0:9999,k=null;if(Y.license)try{k=Tf(Y.license)}catch(h){g.Ly(h)}if(G!==0||k){k=new M1U(G,k);G!==0&&Y.reason&&(k.errorMessage=Y.reason);if(Y.authorizedFormats){G={};for(var b=[],d={},N=g.S(Y.authorizedFormats),O=N.next();!O.done;O=N.next())if(O=O.value,O.trackType&&O.keyId){var e=c3m[O.trackType];if(e){e==="HD"&&Y.isHd720&&(e="HD720");O.isHdr&&(e+="HDR");G[e]|| (b.push(e),G[e]=!0);var E=null;try{E=Tf(O.keyId)}catch(h){g.Ly(h)}E&&(d[g.Pn(E,4)]=e)}}k.W=b;k.X=d}Y.nextFairplayKeyId&&(k.nextFairplayKeyId=Y.nextFairplayKeyId);Y.sabrLicenseConstraint&&(k.sabrLicenseConstraint=Tf(Y.sabrLicenseConstraint));Y=k}else Y=null;if(Y)n.onSuccess(Y,n.requestNumber);else n.onError(n,"drm.net","t.p;p.i")}}, onError:function(Y){if(!n.qm())if(Y&&Y.error)Y=Y.error,n.onError(n,"drm.net.badstatus","t.r;p.i;c."+Y.code+";s."+Y.status,Y.code);else n.onError(n,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){n.onError(n,"drm.net","rt.req."+n.requestNumber)}}; t&&(c.zw="Bearer "+t);g.JW(M,"player/get_drm_license",q,c)}; Gla=function(n,q,M,t){g.MB.call(this);this.videoData=n;this.Q1=q;this.B=M;this.sessionId=t;this.S={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.xl=this.RL=!1;this.Z=null;this.wJ=[];this.J=[];this.authorizedFormats=[];this.N=!1;this.X={};this.status="";this.C=NaN;this.W=n.S;this.cryptoPeriodIndex=M.cryptoPeriodIndex;n={};Object.assign(n,this.Q1.X);n.cpn=this.videoData.clientPlaybackNonce;this.videoData.IL&&(n.vvt=this.videoData.IL,this.videoData.mdxEnvironment&&(n.mdx_environment= this.videoData.mdxEnvironment));this.Q1.wJ&&(n.authuser=this.Q1.wJ);this.Q1.pageId&&(n.pageid=this.Q1.pageId);isNaN(this.cryptoPeriodIndex)||(n.cpi=this.cryptoPeriodIndex.toString());var c=(c=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.FV()))?c[1]:"";c==="ATV"&&(n.cdt=c);this.S=n;this.S.session_id=t;this.U=!0;this.W.flavor==="widevine"&&(this.S.hdr="1");this.W.flavor==="playready"&&(q=Number(Id(q.experiments,"playready_first_play_expiration")),!isNaN(q)&&q>=0&&(this.S.mfpe=""+q),this.U=!1);q="";g.N0(this.W)? dh(this.W)?(t=M.W)&&(q="https://www.youtube.com/api/drm/fps?ek="+SCk(t)):(q=M.initData.subarray(4),q=new Uint16Array(q.buffer,q.byteOffset,q.byteLength/2),q=String.fromCharCode.apply(null,q).replace("skd://","https://")):q=this.W.W;this.baseUrl=q;this.fairplayKeyId=jy(this.baseUrl,"ek")||"";if(q=jy(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(q);this.wJ=M.Fm?[g.Pn(M.initData,4)]:M.Z;d9(this,{sessioninit:M.cryptoPeriodIndex});this.status="in"}; dMa=function(n,q){d9(n,{createkeysession:1});n.status="gr";H_("drm_gk_s",void 0,n.videoData.U);n.url=KDs(n);try{n.Z=q.createSession(n.B,function(M){d9(n,{m:M})})}catch(M){q="t.g"; M instanceof DOMException&&(q+=";c."+M.code);n.publish("licenseerror","drm.unavailable",1,q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}n.Z&&(klU(n.Z,function(M,t){bbd(n,M,t)},function(M,t,c){if(!n.qm()){t=void 0; var Y=1;g.N0(n.W)&&g.d1(n.Q1)&&n.Q1.D("html5_enable_safari_fairplay")&&c===1212433232&&(t="ERROR_HDCP",Y=n.Q1.D("html5_safari_fairplay_ignore_hdcp")?0:Y);n.error("drm.keyerror",Y,M,t)}},function(){n.qm()||(d9(n,{onkyadd:1}),n.xl||(n.publish("sessionready"),n.xl=!0))},function(M){n.D2(M)}),g.Z(n,n.Z))}; KDs=function(n){var q=n.baseUrl;W9d(q)||n.error("drm.net",2,"t.x");if(!jy(q,"fexp")){var M=["23898307","23914062","23916106","23883098"].filter(function(c){return n.Q1.experiments.experiments[c]}); M.length>0&&(n.S.fexp=M.join())}M=g.S(Object.keys(n.S));for(var t=M.next();!t.done;t=M.next())t=t.value,q=R3U(q,t,n.S[t]);return q}; bbd=function(n,q,M){if(!n.qm())if(q){d9(n,{onkmtyp:M});n.status="km";switch(M){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":N9j(n,q);return;default:n.publish("ctmp","message_type",{t:M,l:q.byteLength})}n.RL||(H_("drm_gk_f",void 0,n.videoData.U),n.RL=!0,n.publish("newsession",n));if(Kx(n.W)&&(q=Obs(q),!q))return;q=new ibk(q,++n.requestNumber,n.videoData.U);t1k(q,function(t){g9_(n,t)},function(t,c,Y){if(!n.qm()){var G=0; t.X.W>=3&&(G=1,c="drm.net.retryexhausted");d9(n,{onlcsrqerr:c,info:Y});n.error(c,G,Y);n.shouldRetry(Et(G),t)&&ef_(n,t)}}); g.Z(n,q);E9U(n,q)}else n.error("drm.unavailable",1,"km.empty")}; N9j=function(n,q){d9(n,{sdpvrq:1});n.C=Date.now();if(n.W.flavor!=="widevine")n.error("drm.provision",1,"e.flavor;f."+n.W.flavor+";l."+q.byteLength);else{var M={cpn:n.videoData.clientPlaybackNonce};Object.assign(M,n.Q1.X);M=g.hC("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",M);q={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, q)}),responseType:"arraybuffer"};g.fp(M,q,3,500).then(n9(function(t){t=t.xhr;if(!n.qm()){t=new Uint8Array(t.response);var c=String.fromCharCode.apply(null,t);try{var Y=JSON.parse(c)}catch(G){}Y&&Y.signedResponse?(n.publish("ctmp","drminfo",{provisioning:1}),Y=(Date.now()-n.C)/1E3,n.C=NaN,n.publish("ctmp","provs",{et:Y.toFixed(3)}),n.Z&&n.Z.update(t)):(Y=Y&&Y.error&&Y.error.message,t="e.parse",Y&&(t+=";m."+Y),n.error("drm.provision",1,t))}}),n9(function(t){n.qm()||n.error("drm.provision",1,"e."+t.errorCode+ ";c."+(t.xhr&&t.xhr.status))}))}}; NM=function(n){var q;if(q=n.U&&n.Z!=null)n=n.Z,q=!(!n.X||!n.X.keyStatuses);return q}; E9U=function(n,q){n.status="km";H_("drm_net_s",void 0,n.videoData.U);var M=new g.zq(n.Q1.R2),t={context:g.kT(M.config_||g.KE())};t.drmSystem=hfj[n.W.flavor];t.videoId=n.videoData.videoId;t.cpn=n.videoData.clientPlaybackNonce;t.sessionId=n.sessionId;t.licenseRequest=g.Pn(q.message);t.drmParams=n.videoData.drmParams;isNaN(n.cryptoPeriodIndex)||(t.isKeyRotated=!0,t.cryptoPeriodIndex=n.cryptoPeriodIndex);var c,Y,G=!!((c=n.videoData.W)==null?0:(Y=c.video)==null?0:Y.isHdr());t.drmVideoFeature=G?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(t.context&&t.context.client){if(c=n.Q1.X)t.context.client.deviceMake=c.cbrand,t.context.client.deviceModel=c.cmodel,t.context.client.browserName=c.cbr,t.context.client.browserVersion=c.cbrver,t.context.client.osName=c.cos,t.context.client.osVersion=c.cosver;t.context.user=t.context.user||{};t.context.request=t.context.request||{};n.videoData.IL&&(t.context.user.credentialTransferTokens=[{token:n.videoData.IL,scope:"VIDEO"}]);t.context.request.mdxEnvironment=n.videoData.mdxEnvironment|| t.context.request.mdxEnvironment;n.videoData.o8&&(t.context.user.kidsParent={oauthToken:n.videoData.o8});g.N0(n.W)&&(t.fairplayKeyId=g.Pn(IRs(n.fairplayKeyId)));g.BN(n.Q1,g.O9(n.videoData)).then(function(k){YL1(q,t,M,k);n.status="rs"})}else n.error("drm.net",2,"t.r;ic.0")}; g9_=function(n,q){if(!n.qm())if(d9(n,{onlcsrsp:1}),n.status="rr",q.statusCode!==0)n.error("drm.auth",1,"t.f;c."+q.statusCode,q.errorMessage||void 0);else{H_("drm_kr_s",void 0,n.videoData.U);if(q.heartbeatParams&&q.heartbeatParams.url&&n.videoData.D("outertube_streaming_data_always_use_staging_license_service")){var M=n.W.W.match(/(.*)youtube.com/g);M&&(q.heartbeatParams.url=M[0]+q.heartbeatParams.url)}q.heartbeatParams&&n.publish("newlicense",q.heartbeatParams);q.W&&(n.J=q.W,n.videoData.rY||n.publish("newlicense", new qLJ),n.videoData.rY=!0,n.N=oV(n.J,function(t){return t.includes("HDR")})); q.X&&(n.Q1.D("html5_enable_vp9_fairplay")&&dh(n.W)?(M=g.Pn(IRs(n.fairplayKeyId),4),n.X[M]={type:q.X[M],status:"unknown"}):n.X=Mk(q.X,function(t){return{type:t,status:"unknown"}})); bd(n.W)&&(q.message=Ry_(g.Pn(q.message)));n.Z&&(d9(n,{updtks:1}),n.status="ku",n.Z.update(q.message).then(function(){H_("drm_kr_f",void 0,n.videoData.U);NM(n)||(d9(n,{ksApiUnsup:1}),n.publish("keystatuseschange",n))},function(t){t="msuf.req."+n.requestNumber+";msg."+g.vn(t.message,3); n.error("drm.keyerror",1,t)})); g.N0(n.W)&&n.publish("fairplay_next_need_key_info",n.baseUrl,q.nextFairplayKeyId);n.Q1.D("html5_enable_vp9_fairplay")&&dh(n.W)&&n.publish("qualitychange",WDj(n.J));q.sabrLicenseConstraint&&n.publish("sabrlicenseconstraint",q.sabrLicenseConstraint)}}; ef_=function(n,q){var M=q.X.getValue();M=new g.zw(function(){E9U(n,q)},M); g.Z(n,M);M.start();g.BL(q.X);d9(n,{rtyrq:1})}; y3d=function(n,q){for(var M=[],t=g.S(Object.keys(n.X)),c=t.next();!c.done;c=t.next())c=c.value,M.push(c+"_"+n.X[c].type+"_"+n.X[c].status);return M.join(q)}; s0d=function(n){var q={};q[n.status]=NM(n)?y3d(n,"."):n.J.join(".");return q}; XFa=function(n,q,M){var t={};t.isHdr=q.includes("HDR");switch(q.replace("HDR","").replace("720","")){case "AUDIO":t.trackType=1;break;case "SD":t.trackType=2;break;case "HD":t.trackType=3;break;case "UHD1":t.trackType=4;break;case "UHD2":t.trackType=5;break;default:t.trackType=0}!t.trackType||M[q]||NM(n)&&!OL(n,q)||(n.authorizedFormats.push(t),M[q]=!0)}; OL=function(n,q){for(var M in n.X)if(n.X[M].status==="usable"&&n.X[M].type===q)return!0;return!1}; j0f=function(n,q){for(var M in n.X)if(n.X[M].type===q)return n.X[M].status}; d9=function(n,q){var M=M===void 0?!1:M;gy(q);(M||n.Q1.Aq())&&n.publish("ctmp","drmlog",q)}; SL1=function(n){var q=n[0];n[0]=n[3];n[3]=q;q=n[1];n[1]=n[2];n[2]=q;q=n[4];n[4]=n[5];n[5]=q;q=n[6];n[6]=n[7];n[7]=q}; WDj=function(n){return g.SS(n,"UHD2")||g.SS(n,"UHD2HDR")?"highres":g.SS(n,"UHD1")||g.SS(n,"UHD1HDR")?"hd2160":g.SS(n,"HD")||g.SS(n,"HDHDR")?"hd1080":g.SS(n,"HD720")||g.SS(n,"HD720HDR")?"hd720":"large"}; Obs=function(n){for(var q="",M=0;M'.charCodeAt(t);n=n.Z.createSession("video/mp4",q,M);return new g9(null,null,null,null,n)}; lld=function(n,q){var M=n.C[q.sessionId];!M&&n.J&&(M=n.J,n.J=null,M.sessionId=q.sessionId,n.C[q.sessionId]=M);return M}; Pr_=function(n,q){var M=n.subarray(4);M=new Uint16Array(M.buffer,M.byteOffset,M.byteLength/2);M=String.fromCharCode.apply(null,M).match(/ek=([0-9a-f]+)/)[1];for(var t="",c=0;c19.2999?(n=M.Hj,M=M.ys,M>=n&&(M=n* .75),q=(n-M)*.5,M=new k9(q,n,n-q-M,this)):M=null;break a;case "widevine":M=new br(q,this,n);break a;default:M=null}if(this.S=M)g.Z(this,this.S),this.S.subscribe("rotated_need_key_info_ready",this.pK,this),this.S.subscribe("log_qoe",this.SA,this);gh(this.Q1.experiments);this.SA({cks:this.X.getInfo()})}; uRd=function(n){var q=LDd(n.J);q?q.then(n9(function(){DMd(n)}),n9(function(M){if(!n.qm()){g.Ly(M); var t="t.a";M instanceof DOMException&&(t+=";n."+M.name+";m."+M.message);n.publish("licenseerror","drm.unavailable",1,t,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(n.SA({mdkrdy:1}),n.U=!0); n.xl&&(q=LDd(n.xl))}; mM_=function(n,q,M){n.rJ=!0;M=new vy(q,M);n.Q1.D("html5_eme_loader_sync")&&(n.C.get(q)||n.C.set(q,M));A31(n,M)}; A31=function(n,q){if(!n.qm()){n.SA({onInitData:1});if(n.Q1.D("html5_eme_loader_sync")&&n.videoData.Z&&n.videoData.Z.X){var M=n.N.get(q.initData);q=n.C.get(q.initData);if(!M||!q)return;q=M;M=q.initData;n.C.remove(M);n.N.remove(M)}n.SA({initd:q.initData.length,ct:q.contentType});if(n.X.flavor==="widevine")if(n.IL&&!n.videoData.isLivePlayback)h3(n);else{if(!(n.Q1.D("vp9_drm_live")&&n.videoData.isLivePlayback&&q.Fm)){n.IL=!0;M=q.cryptoPeriodIndex;var t=q.X;tFf(q);q.Fm||(t&&q.X!==t?n.publish("ctmp","cpsmm", {emsg:t,pssh:q.X}):M&&q.cryptoPeriodIndex!==M&&n.publish("ctmp","cpimm",{emsg:M,pssh:q.cryptoPeriodIndex}));n.publish("widevine_set_need_key_info",q)}}else n.pK(q)}}; DMd=function(n){if(!n.qm())if(n.Q1.D("html5_drm_set_server_cert")||dh(n.X)){var q=n.J.setServerCertificate();q?q.then(n9(function(M){n.Q1.Aq()&&n.publish("ctmp","ssc",{success:M})}),n9(function(M){n.publish("ctmp","ssce",{n:M.name, m:M.message})})).then(n9(function(){$MU(n)})):$MU(n)}else $MU(n)}; $MU=function(n){n.qm()||(n.U=!0,n.SA({onmdkrdy:1}),h3(n))}; FDU=function(n){return n.X.flavor==="widevine"&&n.videoData.D("html5_drm_cpi_license_key")}; h3=function(n){if(n.rJ&&n.U&&!n.jX){for(;n.Z.length;){var q=n.Z[0],M=FDU(n)?c4k(q):g.Pn(q.initData);if(dh(n.X)&&!q.W)n.Z.shift();else{if(n.W.get(M))if(n.X.flavor!=="fairplay"||dh(n.X)){n.Z.shift();continue}else n.W.delete(M);tFf(q);break}}n.Z.length&&n.createSession(n.Z[0])}}; Zbm=function(n){var q,M;g.u(function(t){if(t.X==1){var c;if(c=g.Z_()){var Y;c=!((Y=n.J.W)==null||!Y.getMetrics)}return c?g.U(t,n.J.getMetrics(),2):t.return()}q=t.W;if(!q)return t.return();pH(q)||(q=g.e4(q));M=/^[A-Za-z0-9_-]+={0,3}$/;M.test(q)||(q=g.vn(q,void 0,!0));n.publish("ctmp","drm",{metrics:q});g.Sk(t)})}; alf=function(){var n=uyR();return!(!n||n==="visible")}; o91=function(n){var q=Rfj();q&&document.addEventListener(q,n,!1)}; wFd=function(n){var q=Rfj();q&&document.removeEventListener(q,n,!1)}; Rfj=function(){if(document.visibilityState)var n="visibilitychange";else{if(!document[bJ+"VisibilityState"])return"";n=bJ+"visibilitychange"}return n}; zf_=function(n){g.F.call(this);var q=this;this.Mm=n;this.Ad=0;this.C=this.W=this.S=!1;this.J=0;this.pm=this.Mm.T();this.videoData=this.Mm.getVideoData();this.Z=g.ic(this.pm.experiments,"html5_delayed_retry_count");this.X=new g.zw(function(){q.Mm.w4()},g.ic(this.pm.experiments,"html5_delayed_retry_delay_ms")); g.Z(this,this.X)}; xMk=function(n,q,M){var t=n.videoData.W,c=n.videoData.J,Y=n.pm.D("html5_disable_codec_fallback_for_drm")&&n.videoData.G8();lB(n.Mm.getVideoData())&&n.pm.D("html5_gapless_fallback_on_qoe_restart")&&QOf(n.Mm,"pe");if((q==="progressive.net.retryexhausted"||q==="fmt.unplayable"||q==="fmt.decode")&&!n.Mm.xm.S&&t&&t.itag==="22")return n.Mm.xm.S=!0,n.gZ("qoe.restart",{reason:"fmt.unplayable.22"}),n.Mm.Xj(),!0;var G=!1;if(n.videoData.isExternallyHostedPodcast){if(G=n.videoData.Xks)M.mimeType=G.type,n.Xy("3pp", {url:G.url});M.ns="3pp";n.Mm.gO(q,1,"VIDEO_UNAVAILABLE",gy((new g.eV(q,M,1)).details));return!0}var k=n.Ad+3E4<(0,g.jt)()||n.X.isActive();if(n.pm.D("html5_empty_src")&&n.videoData.isAd()&&q==="fmt.unplayable"&&/Empty src/.test(""+M.msg))return M.origin="emptysrc",n.gZ("auth",M),!0;k||J3_(n.Mm.C1())||(M.nonfg="paused",k=!0,n.Mm.pauseVideo());(q==="fmt.decode"||q==="fmt.unplayable")&&(c==null?0:C8(c)||ry(c))&&(Y0k(n.pm.S,c.Ts),M.acfallexp=c.Ts,G=k=!0);!k&&n.Z>0&&(n.X.start(),k=!0,M.delayed="1",--n.Z); c=n.Mm.loader;k||!((t==null?0:Vv(t))||(t==null?0:wy(t)))||Y||(Y0k(n.pm.S,t.Ts),G=k=!0,M.cfallexp=t.Ts);if(!k)return V1k(n,M);Y=!1;n.S?n.Ad=(0,g.jt)():Y=n.S=!0;k=n.videoData;if(k.hE){k=k.hE.JW();var b=Date.now()/1E3+1800;k=k6048E5&&qrJ(n,"signature");return!1}; qrJ=function(n,q){try{q={detail:"pr."+q},g.S0(n.pm)&&n.pm.D("html5_reload_by_kabuki_app")?n.Mm.gO("qoe.restart",1,void 0,gy(q),"7"):(n.gZ("qoe.restart",q),window.location.reload())}catch(M){}}; iAJ=function(n){var q=n.pm.D("html5_enable_lr_reload_side_sheet");return n.videoData.errorDetail==="7"&&g.S0(n.pm)&&q?(qrJ(n,"innertube_player_reload_required"),!0):!1}; tJC=function(n,q){var M=n.pm.S;M.N=!1;M.W=!0;n.gZ("qoe.restart",{e:q===void 0?"fmt.noneavailable":q,detail:"hdr"});n.Mm.w4(!0)}; cH1=function(n,q,M,t,c,Y){this.videoData=n;this.X=q;this.reason=M;this.W=t;this.token=c;this.videoId=Y}; WF=function(n,q,M){this.Q1=n;this.WE=q;this.Mm=M;this.B=this.C=this.X=this.J=this.N=this.W=0;this.S=!1;this.U=g.ic(this.Q1.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Z=new Map}; Yrd=function(n,q,M){!n.Q1.D("html5_tv_ignore_capable_constraint")&&g.hi(n.Q1)&&(M=M.compose(n.xL(q)));return M}; Gya=function(n){if(n.Mm.C1().isInline())return y3;var q;n.D("html5_exponential_memory_for_sticky")?q=px(n.Q1.SR,"sticky-lifetime")<.5?"auto":lv[hc()]:q=lv[hc()];return g.PR("auto",q,!1,"s")}; kyk=function(n,q){var M,t=Kok(n,(M=q.X)==null?void 0:M.videoInfos);M=n.Mm.getPlaybackRate();return M>1&&t?(n=Mcj(n.Q1.S,q.X.videoInfos,M),new L9(0,n,!0,"o")):new L9(0,0,!1,"o")}; Kok=function(n,q){return q&&g.hi(n.Q1)?q.some(function(M){return M.video.fps>32}):!1}; bAj=function(n,q){if(n.D("html5_disable_ustreamer_constraint_for_sabr")&&D6(q.videoData))return y3;var M=n.Mm.i5();n.D("html5_use_video_quality_cap_for_ustreamer_constraint")&&M&&M.P3>0&&TF(q.videoData.p6)&&(n=M.P3,q.videoData.p6=new L9(0,n,!1,"u"));return q.videoData.p6}; dQd=function(n,q){var M;a:if((M=q.X)&&M.videoInfos.length){for(var t=g.S(M.videoInfos),c=t.next();!c.done;c=t.next()){c=c.value;var Y=void 0;if((Y=c.W)==null?0:Y.smooth){M=c.video.qualityOrdinal;break a}}M=M.videoInfos[0].video.qualityOrdinal}else M=0;eMd()&&!g.hi(n.Q1)&&wy(q.X.videoInfos[0])&&(M=Math.min(M,g.$J.large));t=g.ic(n.Q1.experiments,"html5_chipset_soft_cap");t>0&&(M=Math.min(M,t));if(t=g.ic(n.Q1.experiments,"html5_max_vertical_resolution")){c=4320;for(Y=0;Yt&&(c=Math.min(c,G.video.qualityOrdinal))}if(c<4320){for(G=Y=0;G32){c=!0;break a}}c=!1}c&&(M=Math.min(M,t));(t=g.ic(n.Q1.experiments,"html5_live_quality_cap"))&&q.videoData.isLivePlayback&&(M=Math.min(M,t));M=NCa(n,q,M);n=g.ic(n.Q1.experiments,"html5_byterate_soft_cap");return new L9(0,M===4320?0:M,!1,"d",n)}; gas=function(n){var q,M,t,c;return g.u(function(Y){switch(Y.X){case 1:return n.X.X&&typeof((q=navigator.mediaCapabilities)==null?void 0:q.decodingInfo)==="function"?g.U(Y,Promise.resolve(),2):Y.return(Promise.resolve());case 2:M=g.S(n.X.videoInfos),t=M.next();case 3:if(t.done){Y.Fy(0);break}c=t.value;return g.U(Y,UZj(c),4);case 4:t=M.next(),Y.Fy(3)}})}; Eaa=function(n,q){if(!q.videoData.W||n.D("html5_disable_performance_downgrade"))return!1;Date.now()-n.N>6E4&&(n.W=0);n.W++;n.N=Date.now();if(n.W!==4)return!1;e9a(n,q.videoData.W);return!0}; Wom=function(n,q,M,t){if(!q||!M||!q.videoData.W)return!1;var c=g.ic(n.Q1.experiments,"html5_df_downgrade_thresh"),Y=n.D("html5_log_media_perf_info");if(!((0,g.jt)()-n.J<5E3?0:Y||c>0))return!1;var G=((0,g.jt)()-n.J)/1E3;n.J=(0,g.jt)();M=M.getVideoPlaybackQuality();if(!M)return!1;var k=M.droppedVideoFrames-n.C,b=M.totalVideoFrames-n.B;n.C=M.droppedVideoFrames;n.B=M.totalVideoFrames;var d=M.displayCompositedVideoFrames===0?0:M.displayCompositedVideoFrames||-1;Y&&n.Q1.Aq()&&n.Mm.Xy("ddf",{dr:M.droppedVideoFrames, de:M.totalVideoFrames,comp:d});if(t)return n.X=0,!1;if((b-k)/G>n.U||!c||g.hi(n.Q1))return!1;n.X=(b>60?k/b:0)>c?n.X+1:0;if(n.X!==3)return!1;e9a(n,q.videoData.W);n.Mm.Xy("dfd",Object.assign({dr:M.droppedVideoFrames,de:M.totalVideoFrames},h9s()));return!0}; e9a=function(n,q){var M=q.Ts,t=q.video.fps,c=q.video.qualityOrdinal-1,Y=n.Z;q=""+M+(t>49?"p60":t>32?"p48":"");M=id(M,t,Y);c>0&&(M=Math.min(M,c));if(!y7.has(q)&&sM().includes(q)){var G=M;M=yh();+M[q]>0&&(G=Math.min(+M[q],G));M[q]!==G&&(M[q]=G,g.Pf("yt-player-performance-cap",M,2592E3))}else if(y7.has(q)||Y==null){a:{G=G===void 0?!0:G;t=sM().slice();if(G){if(t.includes(q))break a;t.push(q)}else{if(!t.includes(q))break a;t.splice(t.indexOf(q),1)}g.Pf("yt-player-performance-cap-active-set",t,2592E3)}M0.set(q, M)}else y7.add(q),Y==null||Y.set(q,M);n.Mm.Sb()}; yHd=function(n,q){if(!q.X.X)return n.S?new L9(0,360,!1,"b"):y3;for(var M=!1,t=!1,c=g.S(q.X.videoInfos),Y=c.next();!Y.done;Y=c.next())Vv(Y.value)?M=!0:t=!0;M=M&&t;t=0;c=g.ic(n.Q1.experiments,"html5_performance_cap_floor");c=n.Q1.W?240:c;q=g.S(q.X.videoInfos);for(Y=q.next();!Y.done;Y=q.next()){var G=Y.value;if(!M||!Vv(G))if(Y=id(G.Ts,G.video.fps,n.Z),G=G.video.qualityOrdinal,Math.max(Y,c)>=G){t=G;break}}return new L9(0,t,!1,"b")}; swR=function(n,q){var M=n.Mm.C1();return M.isInline()&&!q.pG?new L9(0,480,!1,"v"):D6(q)?y3:M.isBackground()&&sc()/1E3>60&&!g.hi(n.Q1)?new L9(0,360,!1,"v"):y3}; Xpm=function(n,q,M){if(n.Q1.experiments.Hb("html5_disable_client_autonav_cap_for_onesie")&&q.fetchType==="onesie"||g.hi(n.Q1)&&(hc(-1)>=1080||q.osid))return y3;var t=g.ic(n.Q1.experiments,"html5_autonav_quality_cap"),c=g.ic(n.Q1.experiments,"html5_autonav_cap_idle_secs");return t&&q.isAutonav&&sc()/1E3>c?(M&&(t=NCa(n,M,t)),new L9(0,t,!1,"e")):y3}; NCa=function(n,q,M){if(n.D("html5_optimality_defaults_chooses_next_higher")&&M)for(n=q.X.videoInfos,q=1;q=0||(n.provider.Mm.getVisibilityState()===3?n.S=!0:(n.X=g.qM(n.provider),n.delay.start()))}; ISs=function(n){if(!(n.W<0)){var q=g.qM(n.provider),M=q-n.J;n.J=q;n.playerState.state===8?n.playTimeSecs+=M:n.playerState.isBuffering()&&!g.C(n.playerState,16)&&(n.rebufferTimeSecs+=M)}}; fSs=function(n){var q;switch((q=n.Q1.playerCanaryStage)==null?void 0:q.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; HAa=function(n){this.provider=n;this.N=!1;this.X=0;this.J=-1;this.Sp=NaN;this.Z=0;this.segments=[];this.C=this.S=0;this.previouslyEnded=!1;this.U=this.provider.Mm.getVolume();this.B=this.provider.Mm.isMuted()?1:0;this.W=j1(this.provider)}; S1=function(n){n.W.startTime=n.Z;n.W.endTime=n.X;var q=!1;n.segments.length&&g.Ws(n.segments).isEmpty()?(n.segments[n.segments.length-1].previouslyEnded&&(n.W.previouslyEnded=!0),n.segments[n.segments.length-1]=n.W,q=!0):n.segments.length&&n.W.isEmpty()||(n.segments.push(n.W),q=!0);q?n.W.endTime===0&&(n.previouslyEnded=!1):n.W.previouslyEnded&&(n.previouslyEnded=!0);n.S+=n.X-n.Z;n.W=j1(n.provider);n.W.previouslyEnded=n.previouslyEnded;n.previouslyEnded=!1;n.Z=n.X}; Psu=function(n){LoC(n);n.C=g.dO(function(){n.update()},100); n.Sp=g.qM(n.provider);n.W=j1(n.provider)}; LoC=function(n){g.OH(n.C);n.C=NaN}; vas=function(n,q,M){M-=n.Sp;return q===n.X&&M>.5}; TCd=function(n,q,M,t){this.Q1=q;this.Kd=M;this.segments=[];this.experimentIds=[];this.hE=this.O9=this.isFinal=this.delayThresholdMet=this.Fh=this.Kn=this.autoplay=this.autonav=!1;this.yS="yt";this.C=[];this.N=this.U=null;this.sendVisitorIdHeader=this.Yl=!1;this.B=this.pageId="";this.S=M==="watchtime";this.Z=M==="playback";this.jX=M==="atr";this.L9=M==="engage";this.sendVisitorIdHeader=!1;this.uri=this.jX?"/api/stats/"+M:"//"+q.Sd+"/api/stats/"+M;t&&(this.O9=t.fs,t.rtn&&(this.N=t.rtn),this.S?(this.playerState= t.state,t.rti>0&&(this.U=t.rti)):(this.VA=t.mos,this.i7=t.volume,t.at&&(this.adType=t.at)),t.autonav&&(this.autonav=t.autonav),t.inview!=null&&(this.o8=t.inview),t.size&&(this.JQ=t.size),t.playerwidth&&(this.SR=t.playerwidth),t.playerheight&&(this.Z6=t.playerheight));this.rZ=g.hf(q.X);this.B=Id(q.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.B==="all"||this.B==="once")this.Yi=g.hf(q.Fh);this.NV=q.yS;this.experimentIds=xG1(q.experiments);this.V1=q.Wm;this.yS=q.xl;this.region=q.region; this.userAge=q.userAge;this.Ux=q.Wk;this.cn=sc();this.sendVisitorIdHeader=q.sendVisitorIdHeader;this.IL=q.D("vss_pings_using_networkless")||q.D("kevlar_woffle");this.h1=q.D("vss_final_ping_send_and_write");this.nm=q.D("vss_use_send_and_write");this.pageId=q.pageId;this.Ku=q.D("vss_playback_use_send_and_write");q.livingRoomAppMode&&(this.livingRoomAppMode=q.livingRoomAppMode);this.YB=q.J&&q.D("embeds_append_synth_ch_headers");g.t8(q)&&(this.rJ=q.jX);g.Yj(g.OR(q))&&this.C.push(1);this.accessToken=g.O9(n); n.F$[this.Kd]?this.J=n.F$[this.Kd]:n.F$.playback&&(this.J=n.F$.playback);this.adFormat=n.adFormat;this.adQueryId=n.adQueryId;this.autoplay=x_j(n);this.Z&&(this.Kn=n.Le&&kt(n)==="adunit"?!0:!1);this.autonav=n.isAutonav||this.autonav;this.contentVideoId=dZ(n);this.clientPlaybackNonce=n.clientPlaybackNonce;this.Fh=n.wZ;n.C&&(this.RL=n.C,this.uG=n.Ww);n.mdxEnvironment&&(this.mdxEnvironment=n.mdxEnvironment);this.X=n.rZ;this.Wg=n.Wg;n.W&&(this.Wm=n.W.itag,n.J&&n.J.itag!==this.Wm&&(this.QS=n.J.itag));n.X&& Ac(n.X)&&(this.offlineDownloadUserChoice="1");this.eventLabel=kt(n);this.hE=n.Ku?!1:n.i7;this.K8=n.Bp;if(q=r8(n))this.ZU=q;this.uI=n.vp;this.partnerId=n.partnerId;this.eventId=n.eventId;this.playlistId=n.nf||n.playlistId;this.BZ=n.BZ;this.We=n.We;this.v_=n.v_;this.h2=n.h2;this.subscribed=n.subscribed;this.videoId=n.videoId;this.videoMetadata=n.videoMetadata;this.visitorData=n.visitorData;this.osid=n.osid;this.EB=n.EB;this.referrer=n.referrer;this.zd=n.v6||n.zd;this.eX=n.Nh;this.Au=n.Au;this.userGenderAge= n.userGenderAge;this.pC=n.pC;this.embedsRct=n.embedsRct;this.embedsRctn=n.embedsRctn;g.t8(this.Q1)&&n.mutedAutoplay&&(n.mutedAutoplayDurationMode===2&&n.limitedPlaybackDurationInSeconds===0&&n.endSeconds===0?this.C.push(7):this.C.push(2));n.isEmbedsShortsMode(new g.JE(this.SR,this.Z6),!!this.playlistId)&&this.C.push(3);g.Im(n)&&this.C.push(4);this.AE=n.PL;n.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=n.compositeLiveIngestionOffsetToken)}; lS_=function(n,q){var M=n.sendVisitorIdHeader?n.visitorData:void 0;return g.BN(n.Q1,n.accessToken).then(function(t){return jmm(n.uri,n.Q1,n.pageId,M,t,q,n.YB)})}; BCs=function(n,q){return function(){n.Q1.D("html5_simplify_pings")?(n.X=n.SX,n.TX=q(),n.cn=0,n.send()):lS_(n).then(function(M){var t=UQR(n);t.cmt=t.len;t.lact="0";var c=q().toFixed(3);t.rt=Number(c).toString();t=g.hC(n.uri,t);n.Q1.D("vss_through_gel_double")&&uSa(t);n.IL?(M==null&&(M={}),n.nm?ok().sendAndWrite(t,M):ok().sendThenWrite(t,M)):M?g.X$(t,M):g.ux(t)})}}; UQR=function(n){var q={ns:n.yS,el:n.eventLabel,cpn:n.clientPlaybackNonce,ver:2,cmt:n.W(n.X),fmt:n.Wm,fs:n.O9?"1":"0",rt:n.W(n.TX),adformat:n.adFormat,content_v:n.contentVideoId,euri:n.NV,lact:n.cn,live:n.ZU,cl:(800254696).toString(),mos:n.VA,state:n.playerState,volume:n.i7};n.subscribed&&(q.subscribed="1");Object.assign(q,n.rZ);n.B==="all"?Object.assign(q,n.Yi):n.B==="once"&&n.Z&&Object.assign(q,n.Yi);n.autoplay&&(q.autoplay="1");n.Kn&&(q.sautoplay="1");n.Fh&&(q.dni="1");!n.S&&n.rJ&&(q.epm=DQu[n.rJ]); n.isFinal&&(q["final"]="1");n.hE&&(q.splay="1");n.Wg&&(q.delay=n.Wg);n.V1&&(q.hl=n.V1);n.region&&(q.cr=n.region);n.userGenderAge&&(q.uga=n.userGenderAge);n.userAge!==void 0&&n.Ux&&(q.uga=n.Ux+n.userAge);n.SX!==void 0&&(q.len=n.W(n.SX));!n.S&&n.experimentIds.length>0&&(q.fexp=n.experimentIds.toString());n.N!==null&&(q.rtn=n.W(n.N));n.zd&&(q.feature=n.zd);n.We&&(q.ctrl=n.We);n.v_&&(q.ytr=n.v_);n.QS&&(q.afmt=n.QS);n.offlineDownloadUserChoice&&(q.ODUC=n.offlineDownloadUserChoice);n.xl&&(q.lio=n.W(n.xl)); n.S?(q.idpj=n.K8,q.ldpj=n.uI,n.delayThresholdMet&&(q.dtm="1"),n.U!=null&&(q.rti=n.W(n.U)),n.pC&&(q.ald=n.pC),n.compositeLiveIngestionOffsetToken&&(q.clio=n.compositeLiveIngestionOffsetToken)):n.adType!==void 0&&(q.at=n.adType);n.JQ&&(n.Z||n.S)&&(q.size=n.JQ);n.Z&&n.C.length&&(q.pbstyle=n.C.join(","));n.o8!=null&&(n.Z||n.S)&&(q.inview=n.W(n.o8));n.S&&(q.volume=I0(n,g.Wn(n.segments,function(t){return t.volume})),q.st=I0(n,g.Wn(n.segments,function(t){return t.startTime})),q.et=I0(n,g.Wn(n.segments,function(t){return t.endTime})), oV(n.segments,function(t){return t.playbackRate!==1})&&(q.rate=I0(n,g.Wn(n.segments,function(t){return t.playbackRate}))),oV(n.segments,function(t){return t.X!=="-"})&&(q.als=g.Wn(n.segments,function(t){return t.X}).join(",")),oV(n.segments,function(t){return t.previouslyEnded})&&(q.pe=g.Wn(n.segments,function(t){return""+ +t.previouslyEnded}).join(","))); q.muted=I0(n,g.Wn(n.segments,function(t){return t.muted?1:0})); oV(n.segments,function(t){return t.visibilityState!==0})&&(q.vis=I0(n,g.Wn(n.segments,function(t){return t.visibilityState}))); oV(n.segments,function(t){return t.connectionType!==0})&&(q.conn=I0(n,g.Wn(n.segments,function(t){return t.connectionType}))); oV(n.segments,function(t){return t.W!==0})&&(q.blo=I0(n,g.Wn(n.segments,function(t){return t.W}))); oV(n.segments,function(t){return!!t.Z})&&(q.blo=g.Wn(n.segments,function(t){return t.Z}).join(",")); oV(n.segments,function(t){return!!t.compositeLiveStatusToken})&&(q.cbs=g.Wn(n.segments,function(t){return t.compositeLiveStatusToken}).join(",")); oV(n.segments,function(t){return t.J!=="-"})&&(q.cc=g.Wn(n.segments,function(t){return t.J}).join(",")); oV(n.segments,function(t){return t.clipId!=="-"})&&(q.clipid=g.Wn(n.segments,function(t){return t.clipId}).join(",")); if(oV(n.segments,function(t){return!!t.audioId})){var M="au"; n.Z&&(M="au_d");q[M]=g.Wn(n.segments,function(t){return t.audioId}).join(",")}il()&&n.RL&&(q.ctt=n.RL,q.cttype=n.uG,q.mdx_environment=n.mdxEnvironment); n.L9&&(q.etype=n.wJ!==void 0?n.wJ:0);n.eX&&(q.uoo=n.eX);n.livingRoomAppMode&&n.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(q.clram=AHC[n.livingRoomAppMode]||n.livingRoomAppMode);n.J?mQC(n,q):(q.docid=n.videoId,q.referrer=n.referrer,q.ei=n.eventId,q.of=n.EB,q.osid=n.osid,q.vm=n.videoMetadata,n.adQueryId&&(q.aqi=n.adQueryId),n.autonav&&(q.autonav="1"),n.playlistId&&(q.list=n.playlistId),n.h2&&(q.ssrt="1"),n.Au&&(q.upt=n.Au));n.Z&&(n.embedsRct&&(q.rct=n.embedsRct),n.embedsRctn&&(q.rctn= n.embedsRctn),n.compositeLiveIngestionOffsetToken&&(q.clio=n.compositeLiveIngestionOffsetToken));n.AE&&(q.host_cpn=n.AE);return q}; mQC=function(n,q){if(q&&n.J){var M=new Set(["q","feature","mos"]),t=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),c=new Set(["aqi","autonav","list","ssrt","upt"]);n.J.ns==="3pp"&&(q.ns="3pp");for(var Y=g.S(Object.keys(n.J)),G=Y.next();!G.done;G=Y.next())G=G.value,t.has(G)||M.has(G)||c.has(G)&&!n.J[G]||(q[G]=n.J[G])}}; I0=function(n,q){return g.Wn(q,n.W).join(",")}; uSa=function(n){n.indexOf("watchtime")!==-1&&g.tx("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:n}})}; $Qf=function(n,q){n.attestationResponse&&lS_(n).then(function(M){M=M||{};M.method="POST";M.postParams={atr:n.attestationResponse};n.IL?n.nm?ok().sendAndWrite(q,M):ok().sendThenWrite(q,M):g.X$(q,M)})}; fb=function(n){g.F.call(this);this.provider=n;this.C="paused";this.S=NaN;this.N=[10,10,10,40];this.U=this.B=0;this.RL=this.jX=this.wJ=this.xl=this.Z=!1;this.W=this.J=NaN;this.logger=new g.jr("vss");this.X=new HAa(n)}; oaa=function(n){if(!n.Z){n.provider.videoData.wk===16623&&g.PJ(Error("Playback for EmbedPage"));var q=HF(n,"playback");n.N=Fof(n);Psu(n.X);q.N=Lb(n);n.W>0&&(q.X-=n.W);q.send();if(n.provider.videoData.bJ){q=n.provider.Q1;var M=n.provider.videoData,t={html5:"1",video_id:M.videoId,cpn:M.clientPlaybackNonce,ei:M.eventId,ptk:M.bJ,oid:M.B3,ptchn:M.Up,pltype:M.bN,content_v:dZ(M)};M.Ko&&Object.assign(t,{m:M.Ko});q=g.hC(q.AG+"ptracking",t);ZAm(n,q)}n.provider.videoData.Wg||(aSu(n),R9a(n));n.Z=!0;n=n.X;n.X= n.Gy();n.Sp=g.qM(n.provider);!(n.Z===0&&n.X<5)&&n.X-n.Z>2&&(n.Z=n.X);n.N=!0}}; Fof=function(n){var q=n.provider.videoData.Bp,M=n.provider.videoData.vp,t=[10+q,10,10,40+M-q,40],c,Y=(c=n.provider.videoData.getPlayerResponse())==null?void 0:c.playbackTracking,G=Y==null?void 0:Y.videostatsScheduledFlushWalltimeSeconds;c=Y==null?void 0:Y.videostatsDefaultFlushIntervalSeconds;if(!(G&&G.length>0&&c))return n.logger.info("Missing valid scheduled pings config "+G+" "+c),t;q=[G[0]+q].concat(g.EJ(G.slice(1).map(function(k,b){return k-G[b]})),[c+M-q, c]);return q.some(function(k){return k<0})?(n.logger.X(347111855,"Neg vss scheduled pings "+G+" "+c),t):q}; Lb=function(n,q){q=q===void 0?NaN:q;var M=g.qM(n.provider);q=isNaN(q)?M:q;q=Math.ceil(q);var t=n.N[n.B];n.B+11E3;!(Y.length>1)&&Y[0].isEmpty()||k||(G.N=Lb(n,c));G.send();n.U++}},(c-M)*1E3); return n.J=c}; PF=function(n){g.Ns(n.S);n.S=NaN}; wps=function(n){n.X.update();n=n.X;n.segments.length&&n.X===n.Z||S1(n);var q=n.segments;n.segments=[];return q}; HF=function(n,q){var M=JHd(n.provider);Object.assign(M,{state:n.C});q=new TCd(n.provider.videoData,n.provider.Q1,q,M);q.X=n.provider.Mm.Gy();M=n.provider.videoData.clientPlaybackNonce;q.X=n.provider.Mm.Gh(M);n.provider.videoData.isLivePlayback||(q.SX=n.provider.Mm.getDuration(M));n.provider.videoData.X&&(M=n.provider.videoData.X.uY(q.X))&&(q.xl=M-q.X,n.provider.Q1.D("html5_disable_live_dvr_shrink_for_cdm_vss")&&BO(n.provider.videoData)&&(q.X+=n.provider.Mm.NP(),q.xl-=n.provider.Mm.NP()));q.TX=g.qM(n.provider); q.segments=[j1(n.provider)];return q}; z9m=function(n,q){var M=HF(n,"watchtime");VJR(n)&&(M.delayThresholdMet=!0,n.wJ=!0);if(n.W>0){for(var t=g.S(q),c=t.next();!c.done;c=t.next())c=c.value,c.startTime-=n.W,c.endTime-=n.W;M.X-=n.W}else M.X=n.X.X;M.segments=q;return M}; vF=function(n,q){var M=Csj(n,!isNaN(n.J));q&&(n.J=NaN);return M}; Csj=function(n,q){var M=z9m(n,wps(n));!isNaN(n.J)&&q&&(M.U=n.J);return M}; VJR=function(n){var q;if(q=n.provider.videoData.isLoaded()&&n.provider.videoData.Wg&&n.Z&&!n.wJ)q=n.X,q=q.S+q.Gy()-q.Z>=n.provider.videoData.Wg;return!!q}; aSu=function(n){n.provider.videoData.youtubeRemarketingUrl&&!n.jX&&(ZAm(n,n.provider.videoData.youtubeRemarketingUrl),n.jX=!0)}; R9a=function(n){n.provider.videoData.googleRemarketingUrl&&!n.RL&&(ZAm(n,n.provider.videoData.googleRemarketingUrl),n.RL=!0)}; rH_=function(n){if(!n.qm()&&n.Z){n.C="paused";var q=vF(n);q.isFinal=!0;q.send();n.dispose()}}; xQJ=function(n,q){if(!n.qm())if(g.C(q.state,2)||g.C(q.state,512)){if(n.C="paused",g.dU(q,2)||g.dU(q,512))g.dU(q,2)&&(n.X.previouslyEnded=!0),n.Z&&(PF(n),vF(n).send(),n.J=NaN)}else if(g.C(q.state,8)){n.C="playing";var M=n.Z&&isNaN(n.S)?Lb(n):NaN;if(!isNaN(M)&&(bU(q,64)<0||bU(q,512)<0)){var t=Csj(n,!1);t.N=M;t.send()}g.dU(q,16)&&q.state.seekSource===58&&(n.X.previouslyEnded=!0)}else n.C="paused"}; QwR=function(n,q,M){if(!n.xl){M||(M=HF(n,"atr"));M.attestationResponse=q;try{M.send()}catch(t){if(t.message!=="Unknown Error")throw t;}n.xl=!0}}; ZAm=function(n,q){var M=n.provider.Q1;g.BN(n.provider.Q1,g.O9(n.provider.videoData)).then(function(t){var c=n.provider.Q1.pageId,Y=n.provider.Q1.sendVisitorIdHeader?n.provider.videoData.visitorData:void 0,G=n.provider.Q1.D("vss_pings_using_networkless")||n.provider.Q1.D("kevlar_woffle"),k=n.provider.Q1.D("allow_skip_networkless");t=jmm(q,M,c,Y,t);S9U(q,t,{token:n.provider.videoData.C,uN:n.provider.videoData.Ww,mdxEnvironment:n.provider.videoData.mdxEnvironment},M,void 0,G&&!k,!1,!0)})}; ppC=function(){this.endTime=this.startTime=-1;this.J="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.W=0;this.compositeLiveStatusToken=this.Z=void 0;this.volume=this.connectionType=0;this.muted=!1;this.X=this.clipId="-";this.previouslyEnded=!1}; Tl=function(n,q,M){this.videoData=n;this.Q1=q;this.Mm=M;this.X=void 0}; g.qM=function(n){return nxR(n)()}; nxR=function(n){if(!n.X){var q=g.dT(function(t){var c=(0,g.jt)();t&&c<=631152E6&&(n.Mm.Xy("ytnerror",{issue:28799967,value:""+c}),c=(new Date).getTime()+2);return c},n.Q1.D("html5_validate_yt_now")),M=q(); n.X=function(){return Math.round(q()-M)/1E3}; n.Mm.wr()}return n.X}; JHd=function(n){var q=n.Mm.Vg()||{};q.fs=n.Mm.Ia();q.volume=n.Mm.getVolume();q.muted=n.Mm.isMuted()?1:0;q.mos=q.muted;q.clipid=n.Mm.Bz();var M;q.playerheight=((M=n.Mm.getPlayerSize())==null?void 0:M.height)||0;var t;q.playerwidth=((t=n.Mm.getPlayerSize())==null?void 0:t.width)||0;n=n.videoData;M={};n.W&&(M.fmt=n.W.itag,n.J&&(n.Kd?n.J.itag!==n.W.itag:n.J.itag!=n.W.itag)&&(M.afmt=n.J.itag));M.ei=n.eventId;M.list=n.playlistId;M.cpn=n.clientPlaybackNonce;n.videoId&&(M.v=n.videoId);n.WR&&(M.infringe=1); (n.Ku?0:n.i7)&&(M.splay=1);(t=r8(n))&&(M.live=t);n.Le&&(M.sautoplay=1);n.xr&&(M.autoplay=1);n.BZ&&(M.sdetail=n.BZ);n.partnerId&&(M.partnerid=n.partnerId);n.osid&&(M.osid=n.osid);n.gY&&(M.cc=g.fw1(n.gY));return Object.assign(q,M)}; BZm=function(n){var q=vRJ();if(q)return q5s[q]||q5s.other;if(g.hi(n.Q1)){n=navigator.userAgent;if(/[Ww]ireless[)]/.test(n))return 3;if(/[Ww]ired[)]/.test(n))return 30}return 0}; j1=function(n){var q=new ppC,M;q.J=((M=JHd(n).cc)==null?void 0:M.toString())||"-";q.playbackRate=n.Mm.getPlaybackRate();M=n.Mm.getVisibilityState();M!==0&&(q.visibilityState=M);n.Q1.eX&&(q.W=1);q.Z=n.videoData.BU;q.compositeLiveStatusToken=n.videoData.compositeLiveStatusToken;M=n.Mm.getAudioTrack();M.tq&&M.tq.id&&M.tq.id!=="und"&&(q.audioId=M.tq.id);q.connectionType=BZm(n);q.volume=n.Mm.getVolume();q.muted=n.Mm.isMuted();q.clipId=n.Mm.Bz()||"-";q.X=n.videoData.mx||"-";return q}; g.lr=function(n,q){g.F.call(this);var M=this;this.provider=n;this.Z=new Map;this.TU=new g.uN;this.vg={qAm:function(){return M.qoe}, Krs:function(){return M.X}, Rbt:function(){return M.W}}; this.provider.videoData.ET()&&!this.provider.videoData.Fw&&(this.X=new fb(this.provider),this.X.W=0,g.Z(this,this.X),this.qoe=new g.pv(this.provider,q),g.Z(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Rg=this.provider.videoData.clientPlaybackNonce)&&this.Z.set(this.Rg,this.X));if(n.Q1.playerCanaryState==="canary"||n.Q1.playerCanaryState==="holdback")this.W=new sL(this.provider),g.Z(this,this.W)}; MCU=function(n){n.W&&SrC(n.W);n.qoe&&zUm(n.qoe)}; ieR=function(n){if(n.qoe){n=n.qoe;for(var q=n.provider.videoData,M=n.provider.Q1,t=g.S(M.yh),c=t.next();!c.done;c=t.next())ir(n,c.value);if(n.provider.D("html5_enable_qoe_cat_list"))for(t=g.S(q.Sd),c=t.next();!c.done;c=t.next())ir(n,c.value);else q.yh&&ir(n,n.provider.videoData.yh);q.r7()&&(t=q.X,Z6(q)&&ir(n,"manifestless"),t&&Cu(t)&&ir(n,"live-segment-"+Cu(t).toFixed(1)));D6(q)?ir(n,"sabr"):n.j9(oi(q));if(gZ(q)||q.oI())q.oI()&&ir(n,"ssa"),ir(n,"lifa");BO(q)&&ir(n,"cdm");q.gatewayExperimentGroup&& (t=q.gatewayExperimentGroup,t==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?t="spkadtrt":t==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(t="spkadctrl"),ir(n,t));M.xl!=="yt"&&n.X.set("len",[q.lengthSeconds.toFixed(2)]);q.cotn&&!hv(q)&&n.KO(!0);M.Aq()&&(q=l9R())&&n.Xy("cblt",{m:q});if(M.D("html5_log_screen_diagonal")){M=n.Xy;var Y;q=((Y=window.H5vccScreen)==null?0:Y.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;M.call(n,"cbltdiag",{v:q})}}}; tCm=function(n,q){n.X&&(n=n.X,q===58?n.X.update():n.Z&&(PF(n),vF(n).send(),n.J=NaN))}; cXj=function(n,q){if(g.dU(q,1024)||g.dU(q,512)||g.dU(q,4)){if(n.W){var M=n.W;M.W>=0||(M.X=-1,M.delay.stop())}n.qoe&&(M=n.qoe,M.N||(M.Z=-1))}if(n.provider.videoData.enableServerStitchedDai&&n.Rg){var t;(t=n.Z.get(n.Rg))==null||xQJ(t,q)}else n.X&&xQJ(n.X,q);if(n.qoe){t=n.qoe;M=q.state;var c=g.qM(t.provider),Y=t.getPlayerState(M),G=M.seekSource||void 0;if(Y!==t.TU){t.wJ||c= 10&&t.playTimeSecs<=180&&(t.X.set("qoealert",["1"]),t.Wg=!0)),Y!=="B"||t.TU!=="PL"&&t.TU!=="PB"||(t.isBuffering=!0),t.W=c);t.TU==="PL"&&(Y==="B"||Y==="S")||t.provider.Q1.Aq()?MM(t,c):(t.uG||Y!=="PL"||(t.uG=!0,Dmj(t,c,t.provider.Mm.Ba())),uUR(t,c));Y==="PL"&&g.Jd(t.TX);var k=[Y];Y==="S"&&G&&k.push("ss."+G);g.Qw(t,c,"vps",k);t.TU=Y;t.xl=c;t.W=c;t.J=!0}Y=M.Vr;g.C(M,128)&&Y&&(Y.cN=Y.cN||"",Zif(t,c,Y.errorCode,Y.Rl,Y.cN));(g.C(M,2)||g.C(M,128))&&t.reportStats(c);M.isPlaying()&&!t.N&&(t.Z>=0&&t.X.set("user_intent", [t.Z.toString()]),t.N=!0);$ms(t)}n.W&&(n=n.W,ISs(n),n.playerState=q.state,n.W>=0&&g.dU(q,16)&&n.seekCount++,q.state.isError()&&n.send())}; Y5d=function(n){n.W&&n.W.send();if(n.qoe){var q=n.qoe;if(q.J){q.TU==="PL"&&(q.TU="N");var M=g.qM(q.provider);g.Qw(q,M,"vps",[q.TU]);q.N||(q.Z>=0&&q.X.set("user_intent",[q.Z.toString()]),q.N=!0);q.provider.Q1.Aq()&&q.Xy("finalized",{});q.IL=!0;q.reportStats(M)}}if(n.provider.videoData.enableServerStitchedDai)for(q=g.S(n.Z.values()),M=q.next();!M.done;M=q.next())rH_(M.value);else n.X&&rH_(n.X);n.dispose()}; GKa=function(n,q,M){switch(q){case "M":var t;(t=n.qoe)==null||Jvd(t,q,M);break;case "A":var c;(c=n.qoe)==null||Jvd(c,q)}}; KPJ=function(n,q){n.X&&QwR(n.X,q)}; kKf=function(n){if(!n.X)return null;var q=HF(n.X,"atr");return function(M){n.X&&QwR(n.X,M,q)}}; bed=function(n,q,M,t){M.adFormat=M.YB;var c=q.Mm;q=new fb(new Tl(M,q.Q1,{getDuration:function(){return M.lengthSeconds}, getCurrentTime:function(){return c.getCurrentTime()}, Gy:function(){return c.Gy()}, Gh:function(){return c.Gh()}, Ba:function(){return c.Ba()}, getPlayerSize:function(){return c.getPlayerSize()}, getAudioTrack:function(){return M.getAudioTrack()}, getPlaybackRate:function(){return c.getPlaybackRate()}, MJ:function(){return c.MJ()}, getVisibilityState:function(){return c.getVisibilityState()}, Zu:function(){return c.Zu()}, Vg:function(){return c.Vg()}, getVolume:function(){return c.getVolume()}, isMuted:function(){return c.isMuted()}, Ia:function(){return c.Ia()}, Bz:function(){return c.Bz()}, getProximaLatencyPreference:function(){return c.getProximaLatencyPreference()}, wr:function(){c.wr()}, Xy:function(Y,G){c.Xy(Y,G)}, IJ:function(){return c.IJ()}, NP:function(){return c.NP()}})); q.W=t;g.Z(n,q);return q}; dVC=function(){this.JY=0;this.J=this.Z=this.ZE=this.TD=this.W=NaN;this.X={};this.bandwidthEstimate=NaN}; Noj=function(){this.X=g.VS;this.array=[]}; gxa=function(n,q,M){var t=[];for(q=OeR(n,q);qM)break}return t}; UL=function(n,q){var M=[];n=g.S(n.array);for(var t=n.next();!t.done&&!(t=t.value,t.contains(q)&&M.push(t),t.start>q);t=n.next());return M}; eXd=function(n){return n.array.slice(OeR(n,0x7ffffffffffff),n.array.length)}; OeR=function(n,q){n=wT(n.array,function(M){return q-M.start||1}); return n<0?-(n+1):n}; Ex_=function(n,q){var M=NaN;n=g.S(n.array);for(var t=n.next();!t.done;t=n.next())if(t=t.value,t.contains(q)&&(isNaN(M)||t.endq&&(isNaN(M)||t.startn.mediaTime+n.S&&q1)n.J=!0;if((c===void 0?0:c)||isNaN(n.W))n.W=q;if(n.X)q!==n.mediaTime&&(n.X=!1);else if(q>0&&n.mediaTime===q){c=1500;if(n.Q1.D("html5_buffer_underrun_transition_fix")){c=g.ic(n.Q1.experiments,"html5_min_playback_advance_for_steady_state_secs");var Y=g.ic(n.Q1.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");c=c>0&&Y>0&&Math.abs(q-n.W)(t||!n.J?c:400)}n.mediaTime=q;n.Z=M;return!1}; Hek=function(n,q){this.videoData=n;this.X=q}; LPd=function(n,q,M){return q.wl(M).then(function(){return Pk(new Hek(q,q.Z))},function(t){t instanceof Error&&g.PJ(t); var c=yv('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Y=jV('audio/mp4; codecs="mp4a.40.2"'),G=c||Y,k=q.isLivePlayback&&!g.Lx(n.S,!0);t="fmt.noneavailable";k?t="html5.unsupportedlive":G||(t="html5.missingapi");G=k||!G?2:1;c={buildRej:"1",a:q.Ur(),d:!!q.yS,drm:q.G8(),f18:q.VA.indexOf("itag=18")>=0,c18:c};q.X&&(q.G8()?(c.f142=!!q.X.X["142"],c.f149=!!q.X.X["149"],c.f279=!!q.X.X["279"]):(c.f133=!!q.X.X["133"],c.f140=!!q.X.X["140"],c.f242=!!q.X.X["242"]),c.cAAC=Y,c.cAVC=jV('video/mp4; codecs="avc1.42001E"'), c.cVP9=jV('video/webm; codecs="vp9"'));q.S&&(c.drmsys=q.S.keySystem,Y=0,q.S.X&&(Y=Object.keys(q.S.X).length),c.drmst=Y);return new g.eV(t,c,G)})}; Dl=function(n){this.data=window.Float32Array?new Float32Array(n):Array(n);this.W=this.X=n-1}; Pyj=function(n){return n.data[n.X]||0}; vxf=function(n){this.S=n;this.Z=this.W=0;this.J=new Dl(50)}; mD=function(n,q,M){g.MB.call(this);this.videoData=n;this.experiments=q;this.S=M;this.W=[];this.iP=0;this.Z=!0;this.J=!1;this.C=0;M=new To_;n.latencyClass==="ULTRALOW"&&(M.B=!1);n.Ux?M.Z=3:g.qm(n)&&(M.Z=2);n.latencyClass==="NORMAL"&&(M.S=!0);M.xl=D6(n);if(n.latencyClass==="LOW"||n.latencyClass==="ULTRALOW")M.S=!0;var t=g.ic(q,"html5_liveness_drift_proxima_override");if(oi(n)!==0&&t){M.X=t;var c;((c=n.X)==null?0:bWd(c))&&M.X--}D6(n)&&q.Hb("html5_sabr_parse_live_metadata_playback_boundaries")&&(M.RL= !0);if(g.$e("trident/")||g.$e("edge/"))c=g.ic(q,"html5_platform_minimum_readahead_seconds")||3,M.J=Math.max(M.J,c);g.ic(q,"html5_minimum_readahead_seconds")&&(M.J=g.ic(q,"html5_minimum_readahead_seconds"));g.ic(q,"html5_maximum_readahead_seconds")&&(M.U=g.ic(q,"html5_maximum_readahead_seconds"));if(q=g.ic(q,"html5_liveness_drift_chunk_override"))M.X=q;ai(n)&&(M.X=(M.X+1)/5,n.latencyClass==="LOW"&&(M.X*=2));!D6(n)||n.latencyClass!=="ULTRALOW"&&n.latencyClass!=="LOW"||(M.N=3,M.C=25);this.policy=M;this.N= this.policy.Z!==1;this.X=A3(this,lhd(this,isNaN(n.liveChunkReadahead)?3:n.liveChunkReadahead,n))}; UVj=function(n,q){if(q)return q=n.videoData,q=lhd(n,isNaN(q.liveChunkReadahead)?3:q.liveChunkReadahead,q),A3(n,q);if(n.W.length){if(Math.min.apply(null,n.W)>1)return A3(n,n.X-1);if(n.policy.B)return A3(n,n.X+1)}return n.X}; ugu=function(n,q){if(!n.W.length)return!1;var M=n.X;n.X=UVj(n,q===void 0?!1:q);if(q=M!==n.X)n.W=[],n.iP=0;return q}; FR=function(n,q){return q>=n.r9()-$9(n)}; Boa=function(n,q,M){q=FR(n,q);M||q?q&&(n.Z=!0):n.Z=!1;n.N=n.policy.Z===2||n.policy.Z===3&&n.Z}; DVR=function(n,q){q=FR(n,q);n.J!==q&&n.publish("livestatusshift",q);n.J=q}; $9=function(n){var q=n.policy.X;n.J||(q=Math.max(q-1,0));return q*Zl(n)}; lhd=function(n,q,M){M.Ux&&q--;ai(M)&&(q=1);if(oi(M)!==0&&(n=g.ic(n.experiments,"html5_live_chunk_readahead_proxima_override"))){q=n;var t;((t=M.X)==null?0:bWd(t))&&q++}return q}; Zl=function(n){return n.videoData.X?Cu(n.videoData.X)||5:5}; A3=function(n,q){q=Math.max(Math.max(1,Math.ceil(n.policy.J/Zl(n))),q);return Math.min(Math.min(8,Math.floor(n.policy.U/Zl(n))),q)}; To_=function(){this.J=0;this.U=Infinity;this.B=!0;this.W=this.X=2;this.Z=1;this.S=!1;this.C=10;this.RL=!1;this.N=1;this.xl=!1}; o0=function(n){g.F.call(this);this.Mm=n;this.X=0;this.W=null;this.C=this.J=0;this.Z={};this.Q1=this.Mm.T();this.S=new g.zw(this.iY,1E3,this);this.hE=a0(this,"html5_seek_timeout_delay_ms");this.wJ=a0(this,"html5_long_rebuffer_threshold_ms");this.Yl=a0(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.nm=a0(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.rJ=a0(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Fh=a0(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.xl=a0(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.RL=new R0(2E4);this.SX=a0(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.V1=a0(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.AE=a0(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.IL=a0(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.B=a0(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.U=a0(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.eX=a0(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.Ux=a0(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.N=a0(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.QS=new R0(g.ic(this.Q1.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Q1.D("html5_report_slow_ads_as_error"));this.Wg=new R0(g.ic(this.Q1.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Q1.D("html5_skip_slow_buffering_ad"));this.uG=a0(this,"html5_slow_start_timeout_delay_ms");this.jX=a0(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.Z(this,this.S)}; a0=function(n,q,M){M=M===void 0?null:M;var t=t===void 0?0:t;return new R0(g.ic(n.Q1.experiments,q)||t,M?n.Q1.D(M):!1)}; AXf=function(n,q){n.X=q}; w9=function(n,q,M,t,c,Y,G,k){q?q.test(M)?(n.gZ(c,q,G),q.C||Y()):(!q.W||q.J?M=!1:(M=(0,g.jt)(),t?q.X||(q.X=M):q.X=0,Y=!t&&M-q.W>3E4,M=q.X&&M-q.X>1E3||Y?q.J=!0:!1),M&&(k=Object.assign({},n.Bg(q),k),k.wn=G,k.we=c,k.wsuc=t,n.Mm.Xy("workaroundReport",k),t&&(q.reset(),n.Z[c]=!1))):n.Mm.gO("auth",2,"BROWSER_OR_EXTENSION_ERROR",gy({source:"watchdog",name:G}))}; R0=function(n,q){this.C=q===void 0?!1:q;this.X=this.W=this.Z=this.startTimestamp=0;this.J=!1;this.S=Math.ceil(n/1E3)}; ZeJ=function(n){g.F.call(this);var q=this;this.Mm=n;this.B=this.X=this.loader=this.mediaElement=this.playbackData=null;this.Z=0;this.S=this.wJ=this.J=null;this.IL=!1;this.uG=0;this.RL=!1;this.timestampOffset=0;this.U=!0;this.V1=0;this.Yl=this.Yi=!1;this.N=0;this.Ux=!1;this.jX=0;this.vg={OW:function(M){return q.OW(M)}}; this.Q1=this.Mm.T();this.videoData=this.Mm.getVideoData();this.policy=new mVC;this.xl=new o0(this.Mm);this.QS=this.AE=this.rJ=this.C=this.W=NaN;this.SX=new g.zw(function(){$Vu(q,!1)},2E3); this.Fh=new g.zw(function(){zl(q)}); this.hE=new g.zw(function(){FPd(q,{})}); this.Wg=NaN;this.nm=new g.zw(function(){var M=q.Q1.SR;M.X+=1E4/36E5;M.X-M.Z>1/6&&(BAk(M),M.Z=M.X);q.nm.start()},1E4); g.Z(this,this.xl);g.Z(this,this.SX);g.Z(this,this.hE);g.Z(this,this.Fh);g.Z(this,this.nm)}; oxm=function(n,q){n.playbackData=q;n.videoData.isLivePlayback&&(n.B=new vxf(function(){a:{if(n.playbackData&&n.playbackData.X.X){if(Z6(n.videoData)&&n.loader){var t=n.loader.k7.BI()||0;break a}if(n.videoData.X){t=n.videoData.X.nm;break a}}t=0}return t}),n.X=new mD(n.videoData,n.Q1.experiments,function(){return n.Zy(!0)})); if(J3(n.Mm)){var M;(M=n.videoData.fR)!=null&&M.cY||(q=ahs(n),q.d2?(D6(n.videoData)&&n.Af(q.d2,q.startSeconds),n.Z=q.startSeconds):q.startSeconds>0&&n.seekTo(q.startSeconds,{hQ:"seektimeline_startPlayback",seekSource:15}));n.U=!1}else RXd(n)||(n.Z=n.Z||n.videoData.startSeconds||0,n.videoData.isLivePlayback||(q=n.Mm.videoData.Zy(),n.Z>q&&(n.D("html5_sabr_log_invalid_sabr_current_time")&&n.Mm.Xy("invalidSabrCmtStart",{rt:n.Z,mst:q}),n.D("html5_sabr_vod_invalid_start_time_fallback")&&(n.Z=0))))}; zXm=function(n,q){(n.loader=q)?w0U(n,!0):V7(n)}; JXC=function(n,q){g.Jd(n.xl.S);n.D("html5_exponential_memory_for_sticky")&&(q.state.isPlaying()?g.Jd(n.nm):n.nm.stop());if(n.mediaElement)if(q.oldState.state===8&&Z$(q.state)&&q.state.isBuffering()){q=n.mediaElement.getCurrentTime();var M=n.mediaElement.UC();var t=n.D("manifestless_post_live_ufph")||n.D("manifestless_post_live")?KW(M,Math.max(q-3.5,0)):KW(M,q-3.5);t>=0&&q>M.end(t)-1.1&&t+10?(Cb(n.Mm,n.getCurrentTime()+n.videoData.limitedPlaybackDurationInSeconds),n.Yl=!0):n.videoData.isLivePlayback&&n.videoData.endSeconds>0&&(Cb(n.Mm,n.getCurrentTime()+n.videoData.endSeconds),n.Yl=!0))}; Cyd=function(n,q){var M=n.getCurrentTime(),t=n.isAtLiveHead(M);if(n.B&&t){var c=n.B;if(c.X&&!(M>=c.W&&M50&&c.W.shift())),c=n.X,Boa(c,M,q===void 0?!0:q),DVR(c,M),q&&$Vu(n,!0));t!==n.Yi&&(q=n.getCurrentTime()-n.QS<=500,M=n.uG>=1E3,q||M||(q=n.Mm.Cd,q.qoe&&(q=q.qoe,M=g.qM(q.provider), g.Qw(q,M,"lh",[t?"1":"0"])),n.Yi=t,n.uG++,n.QS=n.getCurrentTime()))}; $Vu=function(n,q){if(n.X){var M=n.X;var t=n.getCurrentTime(),c=M.r9();var Y=M.policy.W;M.J||(Y=Math.max(Y-1,0));Y*=Zl(M);t>=c-Y||!M.FI()?M=tM+1&&q0&&v3(n.mediaElement)>0&&(n.W=r9(n,n.W,!1)),q=n.D("html5_pseudogapless_shorts_seek_to_next_start")&&(q==null?void 0:q.seekSource)===60,!n.mediaElement||!MEJ(n,q))n.Fh.start(750);else if(!isNaN(n.W)&&isFinite(n.W)&&(q=n.AE-(n.W-n.timestampOffset),!(q===0||Math.abs(q)<.005)))if(q=n.mediaElement.getCurrentTime()-n.W,Math.abs(q)<=n.V1||Math.abs(q)<.005)iVs(n);else{if(n.videoData.Gz)n.videoData.Gz= !1;else if(!F1(n.videoData)&&n.W>=n.Zy()-.1){n.W=n.Zy();n.J.resolve(n.Zy());n.Q1.Aq()&&n.Mm.Xy("setEndedInSeek",{tgt:""+n.W,maxst:""+n.Zy()});n.Mm.b_();return}try{var M=n.W-n.timestampOffset;n.mediaElement.seekTo(M);n.xl.X=M;n.AE=M;n.Z=n.W;n.RL=!1}catch(t){}}}; MEJ=function(n,q){q=q===void 0?!1:q;if(!n.mediaElement||n.mediaElement.dP()===0||n.mediaElement.hasError())return!1;var M=n.mediaElement.getCurrentTime()>0;return n.videoData.Z&&n.videoData.Z.X||n.videoData.isLivePlayback||!n.videoData.G8()?n.W>=0&&!q&&(q=n.mediaElement.uL(),q.length||!M)?kG(q,n.W-n.timestampOffset):M:M}; iVs=function(n){n.J&&(n.J.resolve(n.mediaElement.getCurrentTime()),n.xl.W=null)}; n51=function(n,q){n.S&&(n.S.resolve(q),n.Mm.pM(),n.Q1.Aq()||qif(n))&&(q=n.Bg(),q["native"]=""+ +n.RL,q.otgt=""+(n.W+n.timestampOffset),n.Mm.Xy("seekEnd",q));V7(n)}; V7=function(n){n.W=NaN;n.C=NaN;n.AE=NaN;n.J=null;n.wJ=null;n.S=null;n.IL=!1;n.RL=!1;n.V1=0;n.SX.stop();n.hE.stop()}; c9u=function(n,q){var M=n.mediaElement,t=q.type;switch(t){case "seeking":var c=M.getCurrentTime()+n.timestampOffset;if(!n.J||n.RL&&c!==n.W){n.J=new LW;n.J.then(function(G){n51(n,G)},function(){V7(n)}); if(n.videoData.isAd()){var Y;ttJ({adCpn:n.videoData.clientPlaybackNonce,contentCpn:(Y=n.videoData.PL)!=null?Y:""},q.X)}n.AE=c;AXf(n.xl,M.getCurrentTime());n.seekTo(c,{seekSource:104,hQ:"seektimeline_mediaElementEvent"});n.RL=!0}break;case "seeked":iVs(n);break;case "loadedmetadata":J3(n.Mm)||tEf(n);zl(n);break;case "progress":zl(n);break;case "pause":n.N=n.getCurrentTime()}n.N&&((t==="play"||t==="playing"||t==="timeupdate"||t==="progress")&&n.getCurrentTime()-n.N>10&&(n.D("html5_sky_skip_pause_jump")? n.Mm.Xy("skipPauseJump",{evt:t,cmt:n.getCurrentTime(),lpt:n.N}):n.seekTo(n.N,{hQ:"pauseJump"})),t!=="pause"&&t!=="play"&&t!=="playing"&&t!=="progress"&&(n.N=0))}; Yi1=function(n){return(Mm(n.videoData)||!!n.videoData.liveUtcStartSeconds)&&(!!n.videoData.liveUtcStartSeconds||RXd(n))&&!!n.videoData.X}; RXd=function(n){return!!n.videoData.startSeconds&&isFinite(n.videoData.startSeconds)&&n.videoData.startSeconds>1E9}; ahs=function(n){var q=0,M=NaN,t="";if(!n.U)return{startSeconds:q,d2:M,source:t};n.videoData.RL?q=n.videoData.jX:F1(n.videoData)&&(q=Infinity);if(g.qm(n.videoData))return{startSeconds:q,d2:M,source:t};n.videoData.startSeconds?(t="ss",q=n.videoData.startSeconds):n.videoData.cn&&(t="stss",q=n.videoData.cn);n.videoData.liveUtcStartSeconds&&(M=n.videoData.liveUtcStartSeconds);if(isFinite(q)&&(q>n.Zy()||qn.Zy()||M 0?(t.onesie="0",n.handleError(new g.eV("html5.missingapi",t)),!1):!0}; egs=function(n){var q=c8();Yz(q,n);return g.zj(q,Upd())}; N2C=function(n,q){var M,t,c,Y,G,k,b,d,N,O,e,E,h,I,L,T,v,B,m,a,x,V,bf,Ka,dd,gd;return g.u(function(MR){if(MR.X==1)return q.fetchType="onesie",M=e4J(q,n.getPlayerSize(),n.getVisibilityState()),t=new IO(n,M),g.U(MR,t.fetch(),2);c=MR.W;Y={player_response:c};q.loading=!1;G=n.Nn.aO;if(t.jY){k=g.S(t.jY.entries());for(b=k.next();!b.done;b=k.next())d=b.value,N=g.S(d),O=N.next().value,e=N.next().value,E=O,h=e,G.X.set(E,h,180),E===q.videoId&&(I=h.CU(),q.Mr=I);G.Or=t}L=g.S(t.xN.entries());for(T=L.next();!T.done;T= L.next())v=T.value,B=g.S(v),m=B.next().value,a=B.next().value,x=m,V=a,G.W.set(x,V,180);g.Sm(q,Y,!0);if(q.loading||X1(q))return MR.return(Promise.resolve());G.X.removeAll();G.W.removeAll();q.Mr=[];bf={};Ka="onesie.response";dd=0;q.errorCode?(Ka="auth",bf.ec=q.errorCode,bf.ed=q.errorDetail,bf.es=q.Cx||"",dd=2):(bf.successButUnplayable="1",bf.disposed=""+ +q.qm(),bf.afmts=""+ +/adaptiveFormats/.test(c),bf.cpn=q.clientPlaybackNonce);gd=new g.eV(Ka,bf,dd);return MR.return(Promise.reject(gd))})}; bVR=function(n,q){var M,t,c,Y,G,k,b,d,N,O,e;return g.u(function(E){switch(E.X){case 1:M=q.isAd(),t=!M,c=M?1:3,Y=0;case 2:if(!(Y0)){E.Fy(5);break}return g.U(E,$4(5E3),6);case 6:G=new g.aE("Retrying OnePlatform request",{attempt:Y}),g.PJ(G);case 5:return g.Ij(E,7),g.U(E,E5k(n,q),9);case 9:return E.return();case 7:k=g.TU(E);b=hU(k);d=b.errorCode;N=n.T();O=N.D("html5_use_network_error_code_enums")?401:"401";t&&d==="manifest.net.badstatus"&&b.details.rc===O&&(t=!1,Y===c-1&&(c+= 1));if(Y===c-1)return e=hgC(M,b.details),e.details.backend="op",e.details.originec=d,E.return(Promise.reject(e));if(d==="auth"||d==="manifest.net.retryexhausted")return E.return(Promise.reject(b));n.handleError(b);if(Et(b.severity)){E.Fy(4);break}case 3:Y++;E.Fy(2);break;case 4:return E.return(Promise.reject(hgC(M,{backend:"op"})))}})}; E5k=function(n,q){function M(Ka){Ka.readyState===2&&n.bz("ps_c")} var t,c,Y,G,k,b,d,N,O,e,E,h,I,L,T,v,B,m,a,x,V,bf;return g.u(function(Ka){switch(Ka.X){case 1:q.fetchType="gp";t=n.T();c=g.BN(t,g.O9(q));if(!c.X){Y=c.getValue();Ka.Fy(2);break}return g.U(Ka,c.X,3);case 3:Y=Ka.W;case 2:return G=Y,k=egs(G),b=e4J(q,n.getPlayerSize(),n.getVisibilityState()),d=g.QQ(Whd),N=g.O9(q),O=(0,g.jt)(),e=!1,E="empty",h=0,n.bz("psns"),I={zA:M},g.U(Ka,g.B_(k,b,d,void 0,I),4);case 4:L=Ka.W;n.bz("psnr");if(q.qm())return Ka.return();L?"error"in L&&L.error?(e=!0,E="esf:"+L.error.message, h=L.error.code):L.errorMetadata&&(e=!0,E="its",h=L.errorMetadata.status):e=!0;if(e)return T=0,v=((0,g.jt)()-O).toFixed(),B={},B=t.D("html5_use_network_error_code_enums")?{backend:"op",rc:h,rt:v,reason:E,has_kpt:q.o8?"1":"0",has_mdx_env:q.mdxEnvironment?"1":"0",has_omit_key_flag:g.RZ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:t.pageId?"1":"0",has_token:N?"1":"0",has_vvt:q.IL?"1":"0",is_mdx:q.isMdxPlayback?"1":"0",mdx_ctrl:q.We||"",token_eq:N===g.O9(q)?"1":"0"}:{backend:"op", rc:""+h,rt:v,reason:E,has_kpt:q.o8?"1":"0",has_mdx_env:q.mdxEnvironment?"1":"0",has_omit_key_flag:g.RZ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:t.pageId?"1":"0",has_token:N?"1":"0",has_vvt:q.IL?"1":"0",is_mdx:q.isMdxPlayback?"1":"0",mdx_ctrl:q.We||"",token_eq:N===g.O9(q)?"1":"0"},m="manifest.net.connect",h===429?(m="auth",T=2):h>200&&(m="manifest.net.badstatus",h===400&&(T=2)),Ka.return(Promise.reject(new g.eV(m,B,T)));q.loading=!1;g.Sm(q,{raw_player_response:L},!0); a=L;g.b4(q.T())&&a&&a.trackingParams&&K9(a.trackingParams);if(q.errorCode)return x={ec:q.errorCode,ed:q.errorDetail,es:q.Cx||""},Ka.return(Promise.reject(new g.eV("auth",x,2)));if(!q.loading&&!X1(q))return V=q.isAd()?"auth":"manifest.net.retryexhausted",bf=q.isAd()?2:1,Ka.return(Promise.reject(new g.eV(V,{successButUnplayable:"1",hasMedia:g.Q3(q)?"1":"0"},bf)));g.Sk(Ka)}})}; kba=function(n,q,M){function t(h){h=hU(h);if(Et(h.severity))return Promise.reject(h);n.handleError(h);return!1} function c(){return!0} var Y,G,k,b,d,N,O,e,E;return g.u(function(h){switch(h.X){case 1:var I=n.T();n.getPlayerSize();n.getVisibilityState();n.isFullscreen();if(q.partnerId===38&&I.playerStyle==="books")I=q.videoId.indexOf(":"),I=g.hC("//play.google.com/books/volumes/"+q.videoId.slice(0,I)+"/content/media",{aid:q.videoId.slice(I+1),sig:q.Z9d});else if(q.partnerId===30&&I.playerStyle==="docs")I=g.hC("https://docs.google.com/get_video_info",{docid:q.videoId,authuser:q.uX,authkey:q.a6x,eurl:I.yS});else if(q.partnerId===33&& I.playerStyle==="google-live")I=g.hC("//google-liveplayer.appspot.com/get_video_info",{key:q.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+I.xl);Y=I;k=(G=q.isAd())?1:3;b=0;case 2:if(!(b0)){h.Fy(5);break}return g.U(h,$4(5E3),6);case 6:N={playerretry:b,playerretrysrc:M},G||(N.recover="embedded"),d=qs(Y,N);case 5:return g.U(h,y9a(q,d).then(c,t),7);case 7:if(O=h.W)return h.return();b++;h.Fy(2);break;case 4:e=G?"auth":"manifest.net.retryexhausted";E= G?2:1;if(!G&&Math.random()<1E-4)try{g.PJ(new g.aE("b/152131571",btoa(Y)))}catch(L){}return h.return(Promise.reject(new g.eV(e,{backend:"gvi"},E)))}})}; y9a=function(n,q){function M(L){return t(L.xhr)} function t(L){if(!n.qm()){L=L?L.status:-1;var T=0,v=((0,g.jt)()-N).toFixed();v=c.D("html5_use_network_error_code_enums")?{backend:"gvi",rc:L,rt:v}:{backend:"gvi",rc:""+L,rt:v};var B="manifest.net.connect";L===429?(B="auth",T=2):L>200&&(B="manifest.net.badstatus",L===400&&(T=2));return Promise.reject(new g.eV(B,v,T))}} var c,Y,G,k,b,d,N,O,e,E,h,I;return g.u(function(L){if(L.X==1){n.fetchType="gvi";c=n.T();var T={};n.PE&&(T.ytrext=n.PE);(k=g.g0(T)?void 0:T)?(Y={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:k},G=qs(q,{action_display_post:1})):(Y={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},G=q);b={};c.sendVisitorIdHeader&&n.visitorData&&(b["X-Goog-Visitor-Id"]=n.visitorData);(d=Id(c.experiments,"debug_sherlog_username"))&&(b["X-Youtube-Sherlog-Username"]=d);Object.keys(b).length> 0&&(Y.headers=b);N=(0,g.jt)();return g.U(L,Dc(IN,G,Y).then(void 0,M),2)}O=L.W;if(!O||!O.responseText)return L.return(t(O));n.loading=!1;e=xd(O.responseText);g.Sm(n,e,!0);if(n.errorCode)return E={ec:n.errorCode,ed:n.errorDetail,es:n.Cx||""},L.return(Promise.reject(new g.eV("auth",E,2)));if(!n.loading&&!X1(n))return h=n.isAd()?"auth":"manifest.net.retryexhausted",I=n.isAd()?2:1,L.return(Promise.reject(new g.eV(h,{successButUnplayable:"1"},I)));g.Sk(L)})}; hgC=function(n,q){return new g.eV(n?"auth":"manifest.net.retryexhausted",q,n?2:1)}; qQ=function(n,q,M){M=M===void 0?!1:M;var t,c,Y,G;g.u(function(k){if(k.X==1){t=n.T();if(M&&(!g.PN(t)||kt(q)!=="embedded")||q.nG||kt(q)!=="adunit"&&(g.hi(t)||h8(t)||g.BD(t)||g.Ll(t)||g.d1(t)||s8(t)==="WEB_CREATOR"))return k.return();c=g.BN(t,g.O9(q));return c.X?g.U(k,c.X,3):(Y=c.getValue(),k.Fy(2))}k.X!=2&&(Y=k.W);G=Y;return k.return(sBf(n,q,G))})}; sBf=function(n,q,M){var t,c,Y,G,k;return g.u(function(b){if(b.X==1){g.Ij(b,2);t=egs(M);var d=q.T(),N=g.D1(),O={context:g.Li(q),videoId:q.videoId,racyCheckOk:q.racyCheckOk,contentCheckOk:q.contentCheckOk,autonavState:"STATE_NONE"};kt(q)==="adunit"&&(O.isAdPlayback=!0);d.embedConfig&&(O.serializedThirdPartyEmbedConfig=d.embedConfig);d.dI&&(O.showContentOwnerOnly=!0);q.xJ&&(O.showShortsOnly=!0);N.OT(141)&&(O.autonavState=N.OT(140)?"STATE_OFF":"STATE_ON");if(g.fl(d)){N=N.OT(65);N=N!=null?!N:!1;var e= !!g.vf("yt-player-sticky-caption");O.captionsRequested=N&&e}var E;if(d=(E=d.getWebPlayerContextConfig())==null?void 0:E.encryptedHostFlags)O.playbackContext={encryptedHostFlags:d};c=O;Y=g.QQ(XBJ);n.bz("wn_s");return g.U(b,g.B_(t,c,Y),4)}if(b.X!=2)return G=b.W,n.bz("wn_r"),!G||"error"in G&&G.error||(k=G,g.b4(q.T())&&k.trackingParams&&K9(k.trackingParams),g.Sm(q,{raw_watch_next_response:G},!1)),g.vd(b,0);g.TU(b);g.Sk(b)})}; jB_=function(n){n.bz("vir");n.bz("ps_s");lZ("vir",void 0,"video_to_ad");var q=g5m(n);q.then(function(){n.bz("virc");lZ("virc",void 0,"video_to_ad");n.bz("ps_r");lZ("ps_r",void 0,"video_to_ad")},function(){n.bz("virc"); lZ("virc",void 0,"video_to_ad")}); return q}; g.tH=function(n,q,M,t,c,Y,G,k,b,d){b=b===void 0?new g.sh(n):b;d=d===void 0?!0:d;g.MB.call(this);var N=this;this.Q1=n;this.playerType=q;this.Si=M;this.WE=t;this.getVisibilityState=Y;this.visibility=G;this.Nn=k;this.videoData=b;this.by=d;this.logger=new g.jr("VideoPlayer");this.xB=null;this.DB=new EL;this.Az=null;this.bd=!0;this.md=this.loader=null;this.Yo=[];this.GD=new nA;this.dO=this.nO=null;this.n3=new nA;this.N8=null;this.Wf=this.Q$=!1;this.s6=NaN;this.N0=!1;this.playerState=new g.uN;this.hL=[]; this.x4=new g.f8;this.mediaElement=null;this.wf=this.kG=!1;this.Wp=NaN;this.X6=!1;this.OJ=0;this.Jr=!1;this.G3=NaN;this.Ad=0;this.loop=!1;this.playbackRate=1;this.T6=0;this.lF=!1;this.Vn=[];this.eD=this.sM=0;this.x5=this.Ee=!1;this.ZE=this.TD=0;this.cK=!1;this.KG=this.zH=this.Ry=this.tQ=null;this.Lu=function(){var O=N.Cd;O.provider.Q1.YB||O.provider.Mm.getVisibilityState()===3||(O.provider.Q1.YB=!0);O.Dg();if(O.W){var e=O.W;e.S&&e.X<0&&e.provider.Mm.getVisibilityState()!==3&&SrC(e)}O.qoe&&(O=O.qoe, O.hE&&O.Z<0&&O.provider.Q1.YB&&zUm(O),O.J&&MM(O));N.loader&&MQ(N);N.Q1.gC&&!N.videoData.backgroundable&&N.mediaElement&&!N.z8()&&(N.isBackground()&&N.mediaElement.lB()?(N.Xy("bgmobile",{suspend:1}),N.c_(!0,!0)):N.isBackground()||is(N)&&N.Xy("bgmobile",{resume:1}))}; this.vg={D2:function(O){N.D2(O)}, bUX:function(O){N.xB=O}, jKk:function(){return N.Cd}, D8:function(){return N.md}, Y3L:function(){return N.tH}, NI1:function(){return N.Yt}, Gtm:function(){}, T:function(){return N.Q1}, Q6:function(){return N.mediaElement}, nEx:function(O){N.rg(O)}, tQE:function(){return N.WE}}; this.fb=new zf_(this);this.G_=new g.zw(this.kkx,15E3,this);this.bv=new x9(new Map([["bufferhealth",function(){return VCs(N.Pn)}], ["bandwidth",function(){return N.Fk()}], ["networkactivity",function(){return N.Q1.schedule.wJ}], ["livelatency",function(){return N.isAtLiveHead()&&N.isPlaying()?Sim(N):NaN}], ["rawlivelatency",function(){return Sim(N)}]])); this.Pn=new ZeJ(this);this.iZ=new g.zw(this.J6,0,this);this.Mim=[this.x4,this.iZ,this.G_,this.bv];this.logger.debug(function(){return"creating, type "+q}); this.LG=new fhd(this.Q1);this.xm=new WF(this.Q1,this.WE,this);this.w8=new g.ur(this,function(O,e){O!==g.CK("endcr")||g.C(N.playerState,32)||N.b_();c(O,e,N.playerType);if(O===g.CK("transitiondetector")&&(O=N.loader)!=null&&(O=O.Wg)!=null){var E=g.S(G1C(e.id));E.next();E=E.next().value;iif(O,E,e.start/1E3-O.Mm.NP(),Vma(O.J))}}); g.Z(this,this.w8);g.Z(this,this.Pn);IWs(this,b);this.videoData.subscribe("dataupdated",this.MRm,this);this.videoData.subscribe("dataloaded",this.cT,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Xy,this);this.videoData.subscribe("ctmpstr",this.yb,this);!this.Cd||this.Cd.qm();this.Cd=new g.lr(new Tl(this.videoData,this.Q1,this));o91(this.Lu);this.visibility.subscribe("visibilitystatechange",this.Lu);this.tH=new g.zw(this.lR,g.ic(this.Q1.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Yt=new g.zw(this.lR,g.ic(this.Q1.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.pw=new g.rE(this.RjX,350,this);g.Z(this,this.pw)}; IWs=function(n,q){if(n.playerType===2||n.Q1.s5)q.pI=!0;var M=vm_(q.YB,q.Pp,n.Q1.J,n.Q1.B);M&&(q.adFormat=M);n.playerType===2&&(q.xr=!0);if(n.isFullscreen()||n.Q1.J)M=g.vf("yt-player-autonavstate"),q.autonavState=M||(n.Q1.J?2:n.videoData.autonavState);q.endSeconds&&q.endSeconds>q.startSeconds&&Cb(n,q.endSeconds)}; fWu=function(n){var q=n.videoData;jB_(n).then(void 0,function(M){if(n.videoData===q&&!q.qm()){M=hU(M);var t=n.Q1.D("html5_enable_lr_reload_side_sheet")&&n.videoData.errorDetail==="7";M.errorCode==="auth"&&n.videoData.errorDetail&&!t?n.gO(M.errorCode,2,unescape(n.videoData.errorReason),gy(M.details),n.videoData.errorDetail,n.videoData.Cx||void 0):n.handleError(M)}})}; PLd=function(n){if(!g.C(n.playerState,128))if(n.videoData.isLoaded(),n.logger.debug("finished loading playback data"),n.Yo=g.un(n.videoData.wJ),g.Q3(n.videoData)){n.Si.tick("bpd_s");cp(n).then(function(){n.Si.tick("bpd_c");if(!n.qm()){n.Q$&&(n.Wn(AA(AA(n.playerState,512),1)),is(n));var t=n.videoData;t.endSeconds&&t.endSeconds>t.startSeconds&&Cb(n,t.endSeconds);n.GD.finished=!0;Ya(n,"dataloaded");n.n3.XR()&&HVf(n);jw1(n.xm,n.dO)}}); n.D("html5_log_media_perf_info")&&n.Xy("loudness",{v:n.videoData.NV.toFixed(3)},!0);var q,M=(q=n.mediaElement)==null?void 0:q.ji();if(M&&"disablePictureInPicture"in M&&n.Q1.ZW)try{M.disablePictureInPicture=n.Q1.wP&&!n.videoData.backgroundable}catch(t){g.PJ(t)}Lha(n);n.D("html5_enable_audio_feature_manager")&&(n.KG=new xz(n.videoData))}else Ya(n,"dataloaded")}; cp=function(n){Gy(n);n.dO=null;var q=LPd(n.Q1,n.videoData,n.z8());n.nO=q;n.nO.then(function(M){v5R(n,M)},function(M){n.qm()||(M=hU(M),n.visibility.isBackground()?(KA(n,"vp_none_avail"),n.nO=null,n.GD.reset()):(n.GD.finished=!0,n.gO(M.errorCode,M.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",gy(M.details))))}); return q}; v5R=function(n,q){if(!n.qm()&&!q.videoData.qm()){n.logger.debug("finished building playback data");n.dO=q;oxm(n.Pn,n.dO);if(n.videoData.isLivePlayback){var M=T2d(n.Nn.aO,n.videoData.videoId)||n.loader&&!isNaN(n.loader.IL);M=n.D("html5_onesie_live")&&M;J3(n)||n.videoData.uG>0&&!Z6(n.videoData)||M||n.seekTo(n.Zy(),{hQ:"videoplayer_playbackData",seekSource:18})}if(n.videoData.Z.X){if(iga(n.videoData)){n.gO("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",gy({missabrurl:1}));return}n.loader?g.PJ(Error("Duplicated Loader")): (M=g.ic(n.Q1.experiments,"html5_onesie_defer_content_loader_ms"))&&n.Td()&&T2d(n.Nn.aO,n.videoData.eaX)?g.bl(function(){n.qm()||n.loader||lWa(n)},M):lWa(n)}else!n.videoData.Z.X&&hv(n.videoData)&&n.gb(new TO(n.videoData.videoId||"",4)); n.RF();gas(q).then(function(){var t={};n.Sb(t);n.Q1.Aq()&&n.D("html5_log_media_perf_info")&&n.Xy("av1Info",t);MQ(n)})}}; HVf=function(n){n.qm();n.logger.debug("try finish readying playback");if(n.n3.finished)n.logger.debug("already finished readying");else if(n.GD.finished)if(g.C(n.playerState,128))n.logger.debug("cannot finish readying because of error");else if(n.Yo.length)n.logger.debug(function(){return"cannot finish readying because of pending preroll: "+n.Yo}); else if(n.w8.started||WPj(n.w8),n.Yw())n.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{n.loader&&(n.Wf=Nma(n.loader.timing));n.n3.finished||(n.n3.finished=!0);var q=n.D("html5_onesie_live")&&n.loader&&!isNaN(n.loader.IL);!n.videoData.isLivePlayback||n.videoData.uG>0&&!Z6(n.videoData)||q||J3(n)||(n.logger.debug("seek to head for live"),n.seekTo(Infinity,{hQ:"videoplayer_readying",seekSource:18}),n.isBackground()&&(n.wf=!0));ieR(n.Cd);n.logger.debug("finished readying playback"); n.publish("playbackready");v_("pl_c",n.Si.timerName)||(n.Si.tick("pl_c"),lZ("pl_c",void 0,"video_to_ad"));v_("pbr",n.Si.timerName)||(n.Si.tick("pbr"),lZ("pbr",void 0,"video_to_ad"))}else n.logger.debug("playback data not loaded")}; Cb=function(n,q){n.Az&&UFm(n);n.Az=new g.Ji(q*1E3,0x7ffffffffffff);n.Az.namespace="endcr";n.addCueRange(n.Az)}; UFm=function(n){n.removeCueRange(n.Az);n.Az=null}; u3f=function(n,q,M,t,c){var Y=n.Cd,G=n.videoData;G.W=M;var k=g.ka(n);M=new cH1(G,M,q,k?k.itag:"",t);n.Q1.experiments.Hb("html5_refactor_sabr_video_format_selection_logging")?(M.videoId=c,n.zH=M):Y.qoe&&wod(Y.qoe,M);c=n.xm;c.W=0;c.X=0;n.publish("internalvideoformatchange",G,q==="m")}; g.ka=function(n){var q=bs(n);return TF(q)||!n.dO?null:g.XO(n.dO.X.videoInfos,function(M){return q.J(M)})}; bs=function(n){if(n.dO){var q=n.xm;var M=n.dO;n=n.hY();var t=Gya(q);if(TF(t)){if(t=q.xL(M).compose(dQd(q,M)).compose(OA1(q,M)).compose(swR(q,M.videoData)).compose(Xpm(q,M.videoData,M)).compose(yHd(q,M)).compose(kyk(q,M)),TF(n)||q.D("html5_apply_pbr_cap_for_drm"))t=t.compose(bAj(q,M))}else q.D("html5_perf_cap_override_sticky")&&(t=t.compose(yHd(q,M))),q.D("html5_ustreamer_cap_override_sticky")&&(t=t.compose(bAj(q,M)));t=t.compose(kyk(q,M));q=M.videoData.JC.compose(t).compose(M.videoData.HL).compose(n)}else q= y3;return q}; f6m=function(n){var q=n.xm;n=n.videoData;var M=swR(q,n);q.D("html5_disable_client_autonav_cap_for_onesie")||M.compose(Xpm(q,n));return M}; MQ=function(n){if(n.videoData.Z&&n.videoData.Z.X){var q=bs(n);n.loader&&bIk(n.loader,q)}}; B21=function(n){var q;return!!(n.D("html5_native_audio_track_switching")&&g.gz&&((q=n.videoData.W)==null?0:Qv(q)))}; DFf=function(n){if(!B21(n))return!1;var q;n=(q=n.mediaElement)==null?void 0:q.audioTracks();return!!(n&&n.length>1)}; mFd=function(n){var q=A9C(n);if(q)return n.videoData.getAvailableAudioTracks().find(function(M){return M.tq.getName()===q})}; A9C=function(n){var q;if(n=(q=n.mediaElement)==null?void 0:q.audioTracks())for(q=0;q0&&(q.tB=M.bD));q.u$=M.Wk;q.zr=t4(t,{},M.Z||void 0,uB(M));q.Ux=Uh(M)&&(g.BD(t)||g.Ll(t));D6(M)&&(q.S=!0,q.bD=t.D("html5_estimate_live_partial_slice_duration"),g.hi(t)&&!g.Z_()&&t.D("html5_force_audio_to_cover_video_keyframe")?q.Fh=!1:q.Fh=!0,t.D("html5_sabr_report_partial_segment_estimated_duration")&& (q.vj=!0),q.X=!0,q.h2=t.D("html5_disable_client_resume_policy_for_sabr"),q.EX=t.D("html5_trigger_loader_when_idle_network"),q.Ko=t.D("html5_sabr_parse_live_metadata_playback_boundaries"),q.DN=t.D("html5_consume_onesie_next_request_policy_for_sabr"),q.wE=t.D("html5_sabr_report_next_ad_break_time"),q.dI=t.D("html5_log_high_res_buffer_timeline")&&t.Aq(),q.cj=t.D("html5_remove_stuck_slices_beyond_max_buffer_limits"),q.pL=t.D("html5_gapless_sabr_btl_last_slice")&&lB(M),q.dG=t.D("html5_reset_last_appended_slice_on_seek")&& lB(M),Z6(M)?(q.bJ=!0,q.WO=t.D("html5_disable_variability_tracker_for_live"),q.Yl=!0,t.D("html5_simplified_backup_timeout_sabr_live")&&(q.zF=!0,q.h1=q.Fj)):q.Kn=t.D("html5_probe_request_on_sabr_request_progress"),q.E7=t.D("html5_serve_start_seconds_seek_for_post_live_sabr"),q.SR=t.D("html5_flush_index_on_updated_timestamp_offset"),q.xl=D6(M),q.u0=t.D("html5_ignore_partial_segment_from_live_readahead"),t.D("html5_include_partial_segment_for_jumbo_ll")&&ai(M)&&(q.u0=!1),q.vp=t.D("html5_use_non_active_broadcast_for_post_live"), q.nm=t.D("html5_use_centralized_player_time"),q.Kd=t.D("html5_log_centralized_player_time"),q.Pw=t.D("html5_consume_onesie_sabr_seek"),q.RL=t.D("html5_enable_sabr_seek_loader_refactor"),q.JC=g.ic(t.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),q.Bp=t.D("html5_update_segment_start_time_from_media_header"),M.enableServerStitchedDai&&(q.W=!0,q.Pp=t.D("html5_reset_server_stitch_state_for_non_sabr_seek"),q.Bj=t.D("html5_remove_ssdai_append_pause")&&!M.oI(),q.NV=t.D("html5_ssdai_log_ssevt_in_loader")|| t.D("html5_ssdai_log_ssevt_in_loader_200ms")||t.D("html5_ssdai_log_ssevt_in_loader_timers")||t.D("html5_ssdai_log_ssevt_in_loader_cuerange"),t.D("html5_ssdai_log_ssevt_in_loader_timers")?q.Wg=1:t.D("html5_ssdai_log_ssevt_in_loader_200ms")?q.Wg=3:t.D("html5_ssdai_log_ssevt_in_loader_cuerange")&&(q.Wg=0)),q.BU=t.Aq()||M.oI());q.K8=g.qEf(M);wX(t.S,zF.BITRATE)&&(q.Bb=NaN);if(k=g.ic(t.experiments,"html5_request_size_max_kb"))q.AE=k*1024;t.S.Z?q.Es="; "+zF.EXPERIMENTAL.name+"=allowed":t.D("html5_enable_cobalt_tunnel_mode")&& g.Z_()&&(k=zF.TUNNELMODE,q.Es="; "+k.name+"="+k.valid);M=M.serverPlaybackStartConfig;(M==null?0:M.enable)&&(M==null?0:M.playbackStartPolicy)&&(q.yH=!0,qRd(q,M.playbackStartPolicy,2));M=$Fs(n);n.DB.removeAll();a:{k=n.Nn.aO;if(t=n.videoData.videoId)if(c=k.X.get(t)){k.X.remove(t);k=c;break a}k=void 0}n.loader=new g.Y9(n,n.Q1.schedule,q,n.videoData.X,n.videoData.Z,bs(n),M,n.videoData.enableServerStitchedDai,k,n.videoData.U);q=n.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&n.videoData.isLivePlayback&& n.Td()?!0:n.Q$&&g.hi(n.Q1)&&n.videoData.isLivePlayback;n.loader.initialize(n.getCurrentTime(),bs(n),q);n.videoData.probeUrl&&(n.loader.eX=n.videoData.probeUrl);if(n.Yo.length||n.Q$)n.videoData.cotn||dC(n,!1);zXm(n.Pn,n.loader);n.tQ&&(UWm(n.loader,new g.Gl(n.tQ)),n.Xy("sdai",{sdl:1}));g.s9(n.videoData)&&(n=n.loader,n.policy.cO=n.policy.Fe)}; Gy=function(n){n.loader&&(n.loader.dispose(),n.loader=null,zXm(n.Pn,null));n.Zf()?FhR(n):n.VW()}; FhR=function(n){if(n.md)if(n.logger.debug("release media source"),n.NF(),n.md.S)try{n.Q1.Aq()&&n.Xy("rms",{l:"vprms",sr:n.Zf(),rs:fW(n.md)});n.md.clear();var q;(q=n.mediaElement)!=null&&(q.W=n.md);n.md=null}catch(M){q=new g.aE("Error while clearing Media Source in VideoPlayer: "+M.name+", "+M.message),q=hU(q),n.handleError(q),n.VW()}else n.VW()}; ZV_=function(n,q){q=q===void 0?!1:q;if(n.md)return n.md.Z;n.logger.debug("update media source");a:{q=q===void 0?!1:q;try{g.Z_()&&n.videoData.oP()&&RTm(n.mediaElement);var M=n.mediaElement.D8(n.Uv(),n.SJ())}catch(c){if(xMk(n.fb,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",c);n.gO("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}n.UD(M,!1,!1,q)}var t;return((t=n.D8())==null?void 0:t.Z)||null}; aWd=function(n,q){q=q===void 0?!1:q;if(n.loader){n.videoData.enableServerStitchedDai&&xq_(n.loader);var M=n.getCurrentTime()-n.NP();n.loader.seek(M,{W5:q}).M9(function(){})}else lWa(n)}; o5J=function(n,q,M,t){M=M===void 0?!1:M;t=t===void 0?!1:t;if(n.md&&(!q||n.md===q)){n.logger.debug("media source opened");var c=n.getDuration();!c&&Z6(n.videoData)&&(c=25200);if(n.md.isView){var Y=c;n.logger.debug(function(){return"Set media source duration to "+Y+", video duration "+c}); Y>n.md.getDuration()&&Rgk(n,Y)}else Rgk(n,c);G6s(n.loader,n.md,M,t);n.publish("mediasourceattached")}}; Rgk=function(n,q){if(n.md){n.md.Bt(q);var M;(M=n.loader)!=null&&M.policy.nm&&(M.C=q)}}; N6J=function(n,q){u3f(n,q.reason,q.X.info,q.token,q.videoId)}; Ya=function(n,q){n.publish("internalvideodatachange",q===void 0?"dataupdated":q,n.videoData)}; wBf=function(n){for(var q=g.S("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),M=q.next();!M.done;M=q.next())n.x4.V(n.mediaElement,M.value,n.rg,n);n.Q1.J4&&n.mediaElement.Pj()&&(n.x4.V(n.mediaElement,"webkitplaybacktargetavailabilitychanged",n.uhy,n),n.x4.V(n.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",n.ZdJ,n))}; J9U=function(n){g.OH(n.s6);zgs(n)||(n.s6=g.dO(function(){return zgs(n)},100))}; zgs=function(n){var q=n.mediaElement;q&&n.kG&&!n.videoData.xl&&!v_("vfp",n.Si.timerName)&&q.dP()>=2&&!q.isEnded()&&NG(q.UC())&&n.Si.tick("vfp");return(q=n.mediaElement)&&!n.videoData.xl&&q.getDuration()>0&&(q.isPaused()&&q.dP()>=2&&NG(q.UC())&&(v_("pbp",n.Si.timerName)||n.Si.tick("pbp"),!n.videoData.uh||n.N0||q.isSeeking()||(n.N0=!0,n.publish("onPlaybackPauseAtStart"))),q=q.getCurrentTime(),BF(n.LG,q))?(n.kL(),!0):!1}; CLR=function(n){n.Cd.onProgress();if(F1(n.videoData)&&Date.now()>n.T6+6283){if(n.D("html5_unified_live_latency_reporting")){var q=n.Cd;q.qoe&&Av1(q.qoe)}else!n.isAtLiveHead()||n.videoData.X&&zW(n.videoData.X)||(q=n.Cd,q.qoe&&Av1(q.qoe));q=g.e$(n.Q1);var M=n.D("html5_always_log_rawlat");(q||M)&&n.Xy("rawlat",{l:pb(n.bv,"rawlivelatency").toFixed(3)});n.T6=Date.now()}n.videoData.W&&Qv(n.videoData.W)&&(q=n.ye())&&q.videoHeight!==n.eD&&(n.eD=q.videoHeight,u3f(n,"a",VEs(n,n.videoData.hE)))}; VEs=function(n,q){if(q.X.video.quality==="auto"&&Qv(q.getInfo())&&n.videoData.Kn)for(var M=g.S(n.videoData.Kn),t=M.next();!t.done;t=M.next())if(t=t.value,t.getHeight()===n.eD&&t.X.video.quality!=="auto")return t.getInfo();return q.getInfo()}; Sim=function(n){if(!F1(n.videoData))return NaN;var q=0;n.loader&&n.videoData.X&&(q=Z6(n.videoData)?n.loader.k7.BI()||0:n.videoData.X.nm);return(0,g.jt)()/1E3-n.uY()-q}; xFf=function(n){n.mediaElement&&n.mediaElement.z8()&&(n.G3=(0,g.jt)());n.Q1.pC?g.bl(function(){r9C(n)},0):r9C(n)}; r9C=function(n){var q;if((q=n.md)==null||!q.Yp()){if(n.mediaElement)try{n.N8=n.mediaElement.playVideo()}catch(t){KA(n,"err."+t)}if(n.N8){var M=n.N8;M.then(void 0,function(t){n.logger.debug(function(){return"playMediaElement failed: "+t}); if(!g.C(n.playerState,4)&&!g.C(n.playerState,256)&&n.N8===M)if(t&&t.name==="AbortError"&&t.message&&t.message.includes("load"))n.logger.debug(function(){return"ignore play media element failure: "+t.message}); else{var c="promise";t&&t.name&&(c+=";m."+t.name);KA(n,c);n.lF=!0;n.videoData.Ku=!0}})}}}; KA=function(n,q){g.C(n.playerState,128)||(n.Wn($G(n.playerState,1028,9)),n.Xy("dompaused",{r:q}),n.publish("onAutoplayBlocked"))}; is=function(n,q){q=q===void 0?!1:q;if(!n.mediaElement||!n.videoData.Z)return!1;var M=q;M=M===void 0?!1:M;var t=null;var c;if((c=n.videoData.Z)==null?0:c.X){t=ZV_(n,M);var Y;(Y=n.loader)==null||Y.resume()}else Gy(n),n.videoData.hE&&(t=n.videoData.hE.Zw());c=n.mediaElement.lB();M=!1;c&&c.equals(t)||(QBd(n,t),M=!0);g.C(n.playerState,2)||(t=n.Pn,q=q===void 0?!1:q,t.S||!(t.Z>0)||t.mediaElement&&t.mediaElement.getCurrentTime()>0||(q={hQ:"seektimeline_resumeTime",W5:q},t.videoData.xl||(q.seekSource=15), t.seekTo(t.Z,q)));a:{q=M;if(D6(n.videoData)){if(!n.videoData.G8())break a}else if(!g.V3(n.videoData))break a;if(n.mediaElement)if((t=n.videoData.S)&&n.mediaElement.Pj()){c=n.mediaElement.ji();if(n.xB)if(c!==n.xB.element)NQ(n);else if(q&&t.flavor==="fairplay"&&!aN())NQ(n);else break a;if(n.D("html5_report_error_for_unsupported_tvos_widevine")&&aN()&&t.flavor==="widevine")n.gO("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{n.xB=new B9U(c,n.videoData,n.Q1);n.xB.subscribe("licenseerror", n.jP,n);n.xB.subscribe("qualitychange",n.viJ,n);n.xB.subscribe("heartbeatparams",n.yz,n);n.xB.subscribe("keystatuseschange",n.D2,n);n.xB.subscribe("ctmp",n.Xy,n);q=g.S(n.DB.keys);for(t=q.next();!t.done;t=q.next())t=n.DB.get(t.value),n.xB.UR(t);n.D("html5_eme_loader_sync")||n.DB.removeAll()}}else n.gO("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return M}; QBd=function(n,q){n.Si.tick("vta");lZ("vta",void 0,"video_to_ad");n.getCurrentTime()>0&&rXj(n.Pn,n.getCurrentTime());n.mediaElement.activate(q);n.md&&xj(4);!n.videoData.xl&&n.playerState.isOrWillBePlaying()&&n.G_.start();if(B21(n)){var M;if(q=(M=n.mediaElement)==null?void 0:M.audioTracks())q.onchange=function(){n.publish("internalaudioformatchange",n.videoData,!0)}}}; NQ=function(n){n.xB&&(n.xB.dispose(),n.xB=null)}; pBf=function(n){var q=q===void 0?!1:q;n.logger.debug("reattachVideoSource");n.mediaElement&&(n.md?(NQ(n),n.VW(),ZV_(n,q)):(n.videoData.hE&&n.videoData.hE.Fp(),n.mediaElement.stopVideo()),n.playVideo())}; n0f=function(n,q){n.Q1.D("html5_log_rebuffer_reason")&&(q={r:q,lact:sc()},n.mediaElement&&(q.bh=Ta(n.mediaElement)),n.Xy("bufreason",q))}; q2j=function(n,q){if(n.Q1.Aq()&&n.mediaElement){var M=n.mediaElement.Bg();M.omt=(n.mediaElement.getCurrentTime()+n.NP()).toFixed(3);M.ps=n.playerState.state.toString(16);M.rt=(g.qM(n.Cd.provider)*1E3).toFixed();M.e=q;n.Vn[n.sM++%5]=M}try{if(q==="timeupdate"||q==="progress")return}catch(t){}n.logger.debug(function(){return"video element event "+q})}; MIf=function(n){if(n.Q1.Aq()){n.Vn.sort(function(t,c){return+t.rt-+c.rt}); for(var q=g.S(n.Vn),M=q.next();!M.done;M=q.next())M=M.value,n.Xy("vpe",Object.assign({t:M.rt},M));n.Vn=[];n.sM=0}}; imd=function(n){if(g.$e("cobalt")&&g.$e("nintendo switch")){var q=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;n.Xy("nxdock",{d:q})}}; dC=function(n,q){var M;(M=n.loader)==null||Mjd(M,q)}; Lha=function(n){jn(n.videoData,"html5_set_debugging_opt_in")&&(n=g.D1(),n.OT(183)||(mA(183,!0),n.save()))}; QOf=function(n,q){n.Nn.d4()||(n.Xy("sgap",{f:q}),n.Nn.clearQueue(!1,q==="pe"))}; J3=function(n){return n.D("html5_disable_video_player_initiated_seeks")&&D6(n.videoData)}; tIa=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);vo(this.api,"isLifaAdPlaying",function(){return q.api.isLifaAdPlaying()}); this.events.V(n,"serverstitchedvideochange",function(){var M;(M=q.api.getVideoData())!=null&&M.oI()&&(q.api.isLifaAdPlaying()?(q.playbackRate=q.api.getPlaybackRate(),q.api.setPlaybackRate(1)):q.api.setPlaybackRate(q.playbackRate))}); this.playbackRate=1}; Or=function(n){H8.call(this,"En bucle",g.u6.v4);this.G=n;var q=n.D("delhi_modern_web_player_icons")?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:l1s();this.setIcon(q);this.subscribe("select",this.W,this);n.createClientVe(this.element,this,28661);this.V(n,"settingsMenuVisibilityChanged",this.X);this.listen("click",this.logClick);this.V(n,"onLoopChange",this.onLoopChange);LI(this,n.getLoopVideo());n.Bk().Qa(this)}; ck1=function(n){hV.call(this,n);var q=this;n.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new Or(q.api),g.Z(q,q.menuItem))}); n.addEventListener("videodatachange",function(M,t){M=q.api.getPresentingPlayerType()===2;var c;(c=q.menuItem)==null||c.VS(!t.isLivePlayback&&!M)})}; Y2C=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);vo(this.api,"seekToChapterWithAnimation",function(M){q.seekToChapterWithAnimation(M)}); vo(this.api,"seekToTimeWithAnimation",function(M,t){q.seekToTimeWithAnimation(M,t)}); vo(this.api,"renderChapterSeekingAnimation",function(M,t,c){q.api.renderChapterSeekingAnimation(M,t,c)}); vo(this.api,"setMacroMarkers",function(M){q.setMacroMarkers(n,M)}); vo(this.api,"changeMarkerVisibility",function(M,t,c){q.changeMarkerVisibility(M,t,c)}); vo(this.api,"isSameMarkerTypeVisible",function(M){return q.isSameMarkerTypeVisible(M)})}; GkR=function(n,q,M){var t=n.api.getCurrentTime()*1E30&&c>0&&(M.width+=c,g.wK(q.element,"width",M.width+"px")));n.size=M}}; g.vp=function(n,q){var M=n.X[n.X.length-1];M!==q&&(n.X.push(q),Zmm(n,M,q))}; g.Ty=function(n){if(!(n.X.length<=1)){var q=n.X.pop(),M=n.X[0];n.X=[M];Zmm(n,q,M,!0)}}; Zmm=function(n,q,M,t){a0J(n);q&&(q.unsubscribe("size-change",n.qh,n),q.unsubscribe("back",n.X3,n));M.subscribe("size-change",n.qh,n);M.subscribe("back",n.X3,n);if(n.Zn){g.MN(M.element,t?"ytp-panel-animate-back":"ytp-panel-animate-forward");M.dJ(n.content);M.focus();n.element.scrollLeft=0;n.element.scrollTop=0;var c=n.size;F2d(n);g.qv(n.element,c);n.J=new g.zw(function(){RKJ(n,q,M,t)},20,n); n.J.start()}else M.dJ(n.content),q&&q.detach()}; RKJ=function(n,q,M,t){n.J.dispose();n.J=null;g.MN(n.element,"ytp-popup-animating");t?(g.MN(q.element,"ytp-panel-animate-forward"),g.ts(M.element,"ytp-panel-animate-back")):(g.MN(q.element,"ytp-panel-animate-back"),g.ts(M.element,"ytp-panel-animate-forward"));g.qv(n.element,n.size);n.S=new g.zw(function(){g.ts(n.element,"ytp-popup-animating");q.detach();g.cX(q.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);n.S.dispose();n.S=null},250,n); n.S.start()}; a0J=function(n){n.J&&g.Vx(n.J);n.S&&g.Vx(n.S)}; ls=function(n){g.Pp.call(this,n,"ytp-shopping-product-menu");this.J1=new g.Hp(this.G);g.Z(this,this.J1);this.hide();g.vp(this,this.J1);g.qW(this.G,this.element,4)}; wis=function(n,q,M){var t,c=q==null?void 0:(t=q.text)==null?void 0:t.simpleText;c&&(M=o0_(n,M,c,q==null?void 0:q.icon,q==null?void 0:q.secondaryIcon),q.navigationEndpoint&&M.listen("click",function(){n.G.Km("innertubeCommand",q.navigationEndpoint);n.hide()},n))}; zKU=function(n,q,M){var t,c=q==null?void 0:(t=q.text)==null?void 0:t.simpleText;c&&o0_(n,M,c,q==null?void 0:q.icon).listen("click",function(){var Y;(q==null?void 0:(Y=q.icon)==null?void 0:Y.iconType)==="HIDE"?n.G.publish("featuredproductdismissed"):q.serviceEndpoint&&n.G.Km("innertubeCommand",q.serviceEndpoint);n.hide()},n)}; o0_=function(n,q,M,t,c){q=new g.O3(g.g6({},[],!1,!!c),q,M);c&&q.updateValue("secondaryIcon",Jkj(c));q.setIcon(Jkj(t));g.Z(n,q);n.J1.Qa(q,!0);return q}; Jkj=function(n){if(!n)return null;switch(n.iconType){case "ACCOUNT_CIRCLE":return{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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 yJC();case "HIDE":return{j:"svg",K:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"g",L:[{j:"path",K:{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 sm()}}; Ur=function(n){Iw.call(this,n,!1,!0);this.isCounterfactual=this.W=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.N=!0;this.overflowButton=new g.w({j:"button",aL:["ytp-featured-product-overflow-icon","ytp-button"],K:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Z(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.w({j:"img",Y:"ytp-suggested-action-badge-img",K:{src:"{{url}}"}}); this.thumbnailImage.hide();g.Z(this,this.thumbnailImage);this.thumbnailIcon=new g.w({j:"div",Y:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.Z(this,this.thumbnailIcon);this.banner=new g.w({j:"a",Y:"ytp-suggested-action-container",L:[this.thumbnailImage,this.thumbnailIcon,{j:"div",Y:"ytp-suggested-action-details",L:[{j:"text",Y:"ytp-suggested-action-title",Wb:"{{title}}"},{j:"text",Y:"ytp-suggested-action-subtitle",Wb:"{{subtitle}}"},{j:"text",Y:"ytp-suggested-action-metadata-text", Wb:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.Z(this,this.banner);this.banner.dJ(this.Z.element);this.V(this.G,"videodatachange",this.onVideoDataChange);this.V(this.G,g.CK("suggested_action_view_model"),this.yqk);this.V(this.G,g.rj("suggested_action_view_model"),this.eHy);this.V(this.overflowButton.element,"click",this.nX);this.V(n,"featuredproductdismissed",this.r6);this.G.createServerVe(this.banner.element,this.banner,!0)}; VI1=function(n){n.isInitialized&&(n.enabled=n.isVisible,n.RL=n.isVisible,SJ(n),n.xb(),n.thumbnailImage.VS(n.isVisible),n.shouldHideDismissButton||n.dismissButton.VS(n.isVisible),n.shouldShowOverflowButton&&n.overflowButton.VS(n.isVisible))}; us=function(){Ur.apply(this,arguments)}; Cqm=function(n){hV.call(this,n);this.X=new us(this.api);g.Z(this,this.X);g.qW(this.api,this.X.element,4)}; Bp=function(n){hV.call(this,n);var q=this;this.X=!0;var M=new g.f8(n);g.Z(this,M);M.V(n,"internalaudioformatchange",function(t,c){rk1(q,t,c)}); M.V(n,"videoplayerreset",function(){xJU(q)}); M.V(n,"videodatachange",function(t,c){q.onVideoDataChange(t,c)})}; rk1=function(n,q,M){if(M){var t="";Q_s(n,q)&&(t=q,n.api.T().Yl=q);if(t&&pid(n,t)){DLU(n.api,t);var c;oh(Du(n.api.T(),(c=n.api.getVideoData())==null?void 0:g.O9(c)),function(Y){nYj(n,t,Y)})}}}; xJU=function(n){var q;if((q=jW())==null?0:q.size){var M;oh(Du(n.api.T(),(M=n.api.getVideoData())==null?void 0:g.O9(M)),function(t){(t=qGk(t))&&pid(n,t)&&(n.api.T().Yl=t)})}}; nYj=function(n,q,M){qGk(M)!==q&&(Mqu([{settingItemId:DS(M),settingOptionValue:{stringValue:q}}]),oh(n.Ou(),function(t){WHC(t,DS(M),{stringValue:q})}))}; iXC=function(n,q){wL(oh(oh(n.Ou(),function(M){return EHm(M,[DS(q)])}),function(M){if(M){M=g.S(M); for(var t=M.next();!t.done;t=M.next()){var c=t.value;t=c.key;c=c.value;t&&c&&(Mqu([{settingItemId:t,settingOptionValue:c}]),xJU(n))}}}),function(){n.X=!0})}; Q_s=function(n,q){n=n.api.getAvailableAudioTracks();n=g.S(n);for(var M=n.next();!M.done;M=n.next())if(M=M.value,M.getLanguageInfo().getId()===q)return M;return null}; qGk=function(n){n=DS(n);var q=jW();n=q?q.get(n):void 0;return n&&n.stringValue?n.stringValue:""}; DS=function(n){var q=(484).toString();n&&(q=(483).toString());return q}; pid=function(n,q){var M;return q.split(".")[0]!==""&&((M=n.api.getVideoData())==null?void 0:!E9(M))}; Mqu=function(n){var q=jW();q||(q=new Map);n=g.S(n);for(var M=n.next();!M.done;M=n.next())M=M.value,q.set(M.settingItemId,M.settingOptionValue);q=JSON.stringify(Object.fromEntries(q));g.Pf("yt-player-user-settings",q,2592E3)}; g.AH=function(n,q,M,t,c,Y,G){g.O3.call(this,g.g6({"aria-haspopup":"true"}),q,n);this.xi=t;this.U=!1;this.Z=null;this.options={};this.Ln=new g.Hp(M,void 0,n,c,Y,G);g.Z(this,this.Ln);this.listen("keydown",this.Ym);this.listen("click",this.open)}; tqa=function(n){if(n.Z){var q=n.options[n.Z];q.element.getAttribute("aria-checked");q.element.setAttribute("aria-checked","false");n.Z=null}}; cuf=function(n,q){g.AH.call(this,"Temporizador de apagado",g.u6.SLEEP_TIMER,n,q);this.G=n;this.C={};this.J=this.Md("Off");this.S=this.X="";n.D("web_settings_menu_icons")&&(q=n.D("delhi_modern_web_player_icons")?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(q)); this.W=new g.w({j:"div",aL:["ytp-menuitem-label-wrapper"],L:[{j:"div",Wb:"Fin del video"},{j:"div",aL:["ytp-menuitem-sublabel"],Wb:"{{content}}"}]});g.Z(this,this.W);this.listen("click",this.onClick);this.V(n,"videodatachange",this.onVideoDataChange);this.V(n,"presentingplayerstatechange",this.Cm);this.V(n,"settingsMenuVisibilityChanged",this.qt);n.createClientVe(this.element,this,218889);this.Cm();this.G.Km("onSleepTimerFeatureAvailable")}; YGs=function(n){var q="Off 10 15 20 30 45 60".split(" "),M;((M=n.G.getVideoData())==null?0:M.isLivePlayback)||q.push("End of video");M=n.G.getPlaylist();var t;M&&((t=M.listId)==null?void 0:t.type)!=="RD"&&q.push("End of playlist");n.gP(g.Wn(q,n.Md));n.C=g.Qs(q,n.Md,n);q=n.Md("End of video");n.options[q]&&g.NW(n.options[q],n.W)}; Grs=function(n,q){var M=n.C[q],t=M==="End of video"||M==="End of playlist";M==="Off"&&(n.X="");n.G.getPlayerState()!==0&&n.G.getPlayerState()!==5||!t?(n.J=q,g.AH.prototype.Zi.call(n,q),n.xe(q),n.G.Km("onSleepTimerSettingsChanged",M)):n.G.Km("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; mo=function(n){hV.call(this,n);var q=this;n.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new cuf(q.api,q.api.Bk()),g.Z(q,q.menuItem))}); n.addEventListener("openSettingsMenuItem",function(M){if(M==="menu_item_sleep_timer"){if(!q.menuItem){var t;(t=q.api.Bk())==null||t.Hn()}q.menuItem.open()}}); vo(n,"resetSleepTimerMenuSettings",function(){q.resetSleepTimerMenuSettings()}); vo(n,"setSleepTimerTimeLeft",function(M){q.setSleepTimerTimeLeft(M)}); vo(n,"setVideoTimeLeft",function(M){q.setVideoTimeLeft(M)})}; Kp_=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"onSnackbarMessage",function(M){switch(M){case 1:M=q.api.getPlayerStateObject(),M.isBuffering()&&(q.api.D("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.C(M,8)&&g.C(M,16))&&q.api.Km("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl video se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Descubre los motivos"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}}, durationHintMs:5E3,popupType:"TOAST"}})}})}; g.FS=function(n,q,M,t,c){q=q===void 0?!1:q;t=t===void 0?!1:t;c=c===void 0?!1:c;g.MB.call(this);this.U=c;this.N=!1;this.J=new So(this);this.S=this.C=null;this.Z=this.W=!1;g.Z(this,this.J);this.target=n;this.X=q;this.B=M||n;this.N=t;q&&(g.dK&&this.target.setAttribute("draggable","true"),c||(this.target.style.touchAction="none"));$a(this)}; ZS=function(n){g.fL(n.J,!n.X)}; $a=function(n){n.S=null;n.C=null;n.V(aw("over"),n.mI);n.V("touchstart",n.xt);n.X&&n.V(aw("down"),n.BJm)}; krd=function(n,q){for(var M=0;MN.start&&M>=5;I+=T}c=I.substr(0,4)+" "+I.substr(4,4)+" "+I.substr(8,4)+" "+(I.substr(12,4)+" "+I.substr(16,4))}else c="";G={video_id_and_cpn:String(q.videoId)+" / "+c,codecs:"",dims_and_frames:"",bandwidth_kbps:G.toFixed(0)+" Kbps",buffer_health_seconds:b.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:d?"":"display:none",drm:d,debug_info:M,extra_debug_info:"",bandwidth_style:e,network_activity_style:e,network_activity_bytes:k.toFixed(0)+" KB",shader_info:O,shader_info_style:O?"":"display:none",playback_categories:""};k=t.clientWidth+"x"+t.clientHeight+(N>1?"*"+N.toFixed(2):"");b="-";Y.totalVideoFrames&&(b=(Y.droppedVideoFrames||0)+" dropped of "+Y.totalVideoFrames);G.dims_and_frames=k+" / "+b;n=n.getVolume();k=pU1(q);var B;if((B=q.J)==null?0:B.audio.W)B= "VB";else{var m;B=((m=q.J)==null?0:m.audio.X)?"DRC":Math.round(n*k)+"%"}m=Math.round(n)+"% / "+B;B=q.NV.toFixed(1);isFinite(Number(B))&&(m+=" (content loudness "+B+"dB)");G.volume=m;G.resolution=t.videoWidth+"x"+t.videoHeight;if(t=q.W){if(m=t.video)B=m.fps,B>1&&(G.resolution+="@"+B),(B=Y.Cw)&&B.video&&(G.resolution+=" / "+B.video.width+"x"+B.video.height,B.video.fps>1&&(G.resolution+="@"+B.video.fps)),G.codecs=gYd(t),!q.J||t.audio&&t.video?t.bl&&(G.codecs+=" / "+t.bl+"A"):G.codecs+=" / "+gYd(q.J), m.X||m.primaries?(B=m.X||"unknown",B==="smpte2084"?B+=" (PQ)":B==="arib-std-b67"&&(B+=" (HLG)"),G.color=B+" / "+(m.primaries||"unknown"),G.color_style=""):G.color_style="display:none";if(t.debugInfo)for(G.fmt_debug_info="",t=g.S(t.debugInfo),m=t.next();!m.done;m=t.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"}t=q.isLivePlayback;m=q.C8;G.live_mode_style=t||m?"":"display:none";G.live_latency_style=t?"": "display:none";if(m)G.live_mode="Post-Live"+(Z6(q)?" Manifestless":"");else if(t){m=Y.E_;G.live_latency_secs=m.toFixed(2)+"s";t=Z6(q)?"Manifestless, ":"";q.RL&&(t+="Windowed, ");B="Uncertain";if(m>=0&&m<120)if(q.latencyClass&&q.latencyClass!=="UNKNOWN")switch(q.latencyClass){case "NORMAL":B="Optimized for Normal Latency";break;case "LOW":B="Optimized for Low Latency";break;case "ULTRALOW":B="Optimized for Ultra Low Latency";break;default:B="Unknown Latency Setting"}else B=q.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";t+=B;(m=Y.Kw)&&(t+=", seq "+m.sequence);G.live_mode=t}!Y.isGapless||lB(q)&&Y.d4||(G.playback_categories+="Gapless ");G.playback_categories_style=G.playback_categories?"":"display:none";G.bandwidth_samples=Y.AK;G.network_activity_samples=Y.t8;G.live_latency_samples=Y.k$;G.buffer_health_samples=Y.iP;Y=g.s9(q);if(q.cotn||Y)G.cotn_and_local_media=(q.cotn?q.cotn:"null")+" / "+Y;G.cotn_and_local_media_style=G.cotn_and_local_media?"":"display:none"; jn(q,"web_player_release_debug")?(G.release_name=K[13],G.release_style=""):G.release_style="display:none";G.debug_info&&E.length>0&&G.debug_info.length+E.length<=60?G.debug_info+=" "+E:G.extra_debug_info=E;G.extra_debug_info_style=G.extra_debug_info&&G.extra_debug_info.length>0?"":"display:none";return G}; gYd=function(n){var q=/codecs="([^"]*)"/.exec(n.mimeType);return q&&q[1]?q[1]+" ("+n.itag+")":n.itag}; CA=function(n,q,M,t,c){g.w.call(this,{j:"div",Y:"ytp-horizonchart"});this.C=q;this.sampleCount=M;this.J=t;this.S=c;this.index=0;this.heightPx=-1;this.Z=this.W=null;this.X=Math.round(n/M);this.element.style.width=this.X*this.sampleCount+"px";this.element.style.height=this.C+"em"}; rC=function(n,q){if(n.heightPx===-1){var M=null;try{M=g.eO("CANVAS"),n.W=M.getContext("2d")}catch(k){}if(n.W){var t=n.X*n.sampleCount;n.Z=M;n.Z.width=t;n.Z.style.width=t+"px";n.element.appendChild(n.Z)}else for(n.sampleCount=Math.floor(n.sampleCount/4),n.X*=4,M=0;M1?2:1,n.Z.height=n.heightPx*M,n.Z.style.height= n.heightPx+"px",n.W.scale(1,M)));q=g.S(q);for(t=q.next();!t.done;t=q.next()){M=n;var c=n.index,Y=t.value;for(t=0;t+20&&g.WT(q.W.element);t.classList.add("ytp-timely-actions-overlay");q.W.element.appendChild(t)}); g.Z(this,this.W);this.D("web_player_overlay_positioned_layout")?this.events.V(n,"basechromeinitialized",function(){q.api.Du(q.W.element,4,!0);q.W.element.setAttribute("data-overlay-order","10")}):g.qW(this.api,this.W.element,4)}; TGm=function(n){n.timelyActions&&(n.J=n.timelyActions.reduce(function(q,M){if(M.cueRangeId===void 0)return q;q[M.cueRangeId]=0;return q},{}))}; ne=function(n,q){if(n.timelyActions){n=g.S(n.timelyActions);for(var M=n.next();!M.done;M=n.next())if(M=M.value,M.cueRangeId===q)return M}}; lks=function(n,q){if((n=ne(n,q))&&n.onCueRangeExit)return Uy(n.onCueRangeExit)}; HXs=function(n,q){return n.Z===void 0?!1:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(q.seekLengthMilliseconds)===5E3?n.Z===72:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(q.seekLengthMilliseconds)===1E4?n.Z===74:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(q.seekLengthMilliseconds)===5E3?n.Z===71:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(q.seekLengthMilliseconds)===1E4?n.Z===73:!1}; Unm=function(n,q){var M=Number(q==null?void 0:q.maxVisibleDurationMilliseconds);M&&(qV(n),n.RL=setTimeout(function(){if(n.X!==void 0&&(q==null?void 0:q.cueRangeId)===n.X){n.U=!1;var t=lks(n,n.X);t&&n.api.Km("innertubeCommand",t)}},M))}; qV=function(n){n.RL&&clearTimeout(n.RL);n.RL=void 0;n.U=!1}; Lp1=function(n){if(n=n.getWatchNextResponse()){var q,M;n=(q=n.playerOverlays)==null?void 0:(M=q.playerOverlayRenderer)==null?void 0:M.timelyActionsOverlayViewModel;q=g.R(n,ur1);if(q!=null&&q.timelyActions)return q==null?void 0:q.timelyActions.map(function(t){return g.R(t,BGu)}).filter(function(t){return!!t})}}; Dnu=function(n){hV.call(this,n);var q=this;T1(this.api,"getPlaybackRate",function(){return q.api.getPlaybackRate()}); T1(this.api,"setPlaybackRate",function(M){typeof M==="number"&&q.api.setPlaybackRate(M)})}; MV=function(n,q,M,t,c){H8.call(this,"VOICE_BOOST",g.u6.c6);this.G=n;this.Z=q;this.W=M;this.hasVoiceBoostAudioTrack=t;this.getVoiceBoostState=c;this.X=!1;this.xi=this.G.D("html5_enable_new_audio_settings_menu")?n.Bk().Wh:n.Bk();this.V(n,"videodatachange",this.BA.bind(this));this.V(n,"onPlaybackAudioChange",this.BA);this.G.D("html5_enable_new_audio_settings_menu")||this.setIcon(LAd());this.subscribe("select",this.J,this);this.BA()}; mnm=function(n){hV.call(this,n);var q=this;this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"settingsMenuInitialized",function(){AuC(q)}); vo(this.api,"getVoiceBoostUserPreference",function(){return q.getVoiceBoostUserPreference()}); vo(this.api,"setVoiceBoostUserPreference",function(t){q.setVoiceBoostUserPreference(t)}); vo(this.api,"hasVoiceBoostAudioTrack",function(){return q.hasVoiceBoostAudioTrack()}); vo(this.api,"getVoiceBoostState",function(){return q.getVoiceBoostState()}); var M;this.X=(M=qxm())!=null?M:0;this.updateEnvironmentData()}; AuC=function(n){n.menuItem||(n.menuItem=new MV(n.api,function(q){n.setVoiceBoostUserPreference(q)},function(){return n.getVoiceBoostUserPreference()},function(){return n.hasVoiceBoostAudioTrack()},function(){return n.getVoiceBoostState()}),g.Z(n,n.menuItem))}; $nU=function(n){n=n.Ag();if(!n)return!1;n=g.pr(n).exp||"";return n.includes("xpv")||n.includes("xpe")}; Fpm=function(n){n=g.S(g.iy(n,!0));for(var q=n.next();!q.done;q=n.next())if($nU(q.value))return!0;return!1}; ZXm=function(n,q){n=g.S(g.iy(n,!0));for(var M=n.next();!M.done;M=n.next())if(M=M.value,$nU(M)){var t={potc:"1",pot:q};M.url&&(M.url=np(M.url,t))}}; akd=function(n){return g.u(function(q){if(q.X==1)return g.Ij(q,2),g.U(q,n,4);if(q.X!=2)return g.vd(q,0);g.TU(q);g.Sk(q)})}; c0=function(n){hV.call(this,n);var q=this;this.useLivingRoomPoToken=!1;this.S=new g.NA;this.X=!1;this.Si=null;this.B=!1;this.J=null;this.C=!1;var M=n.T().getWebPlayerContextConfig();this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"spsumpreject",function(t,c,Y){q.C=c;t&&q.B&&!q.J&&(q.D("html5_generate_content_po_token")&&Y?q.hC(Y):q.D("html5_generate_session_po_token")&&Rhu(q));q.J||q.api.Xy("stp",{s:+q.B,b:+q.C})}); this.events.V(n,"poTokenVideoBindingChange",function(t){q.hC(t)}); this.useLivingRoomPoToken=!(M==null||!M.useLivingRoomPoToken);n.addEventListener("csiinitialized",function(){q.Si=n.Zu();var t=(q.D("html5_generate_session_po_token")||q.D("html5_generate_content_po_token"))&&!q.useLivingRoomPoToken;try{if(q.D("html5_use_shared_owl_instance"))oYu(q);else if(t){q.Si.WH("pot_isc");var c=g.ic(q.api.T().experiments,"html5_webpo_kaios_defer_timeout_ms");c?(q.Z=$C(),g.bl(function(){tX(q)},c)):q.D("html5_webpo_idle_priority_job")?(q.Z=$C(),g.JJ(g.CL(),function(){tX(q)})): tX(q)}}catch(Y){Y instanceof Error&&g.PJ(Y)}}); n.addEventListener("trackListLoaded",this.VP.bind(this));n.q$(this)}; wSk=function(n){var q=Id(n.experiments,"html5_web_po_request_key");return q?q:g.hi(n)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; zh_=function(n){var q=new pmm,M={},t=(M["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",M);return new W2(q,n,function(){return t})}; Juf=function(n){return new ya(n)}; Yx=function(n,q){n.D("html5_webpo_bge_ctmp")&&n.api.Xy(q,{hwpo:!!n.W,hwpor:n.X})}; oYu=function(n){var q,M;g.u(function(t){if(t.X==1)return Yx(n,"swpo_i"),n.Z=$C(),GK(n),g.U(t,pq(),2);if(t.X!=3)return q=t.W,Yx(n,"swpo_co"),g.U(t,Tus(q),3);M=t.W;n.D("html5_web_po_token_disable_caching")||M.Sw(150);n.W=M;Yx(n,"swpo_cc");akd(M.Xk()).then(function(){n.X=!0;n.S.resolve();Yx(n,"swpo_re")}); g.bl(function(){tX(n);Yx(n,"swpo_si")},0); g.Sk(t)})}; ruR=function(n){var q=n.api.T(),M=wSk(q);M=zh_(M);var t=M.ME.bind(M);M.ME=function(k){var b;return g.u(function(d){if(d.X==1)return g.U(d,t(k),2);b=d.W;n.api.Xy("itr",{});return d.return(b)})}; try{var c=Juf({Or:M,Hc:{maxAttempts:5},uq:{ke:"CLEn",disable:q.experiments.Hb("html5_web_po_disable_remote_logging")||Vqu.includes(g.bm(q.AG)||""),wS:rAU(q.experiments),Id:q.experiments.Hb("wpo_gel_strz")?function(k){var b=Cpu.get(k);b||(b=new gca(k),b=new g.FG(b),Cpu.set(k,b));return b}:void 0, ElE:n.D("wpo_dis_lfdms")?0:1E3},Hdt:g.PJ});var Y=new AQ({WA:c,Or:M,onError:g.PJ});akd(Y.Xk()).then(function(){n.X=!0;n.S.resolve()}); n.D("html5_web_po_token_disable_caching")||Y.Sw(150);g.Z(n,c);g.Z(n,Y);n.W=Y}catch(k){g.PJ(k);var G;(G=c)==null||G.dispose()}}; tX=function(n){var q=n.api.T();n.Si.WH("pot_ist");n.W||ruR(n);n.D("html5_bandaid_attach_content_po_token")||(n.D("html5_generate_session_po_token")&&(GK(n),Rhu(n)),q=g.ic(q.experiments,"html5_session_po_token_interval_time_ms")||0,q>0&&(n.N=g.dO(function(){GK(n)},q)),n.B=!0)}; GK=function(n){var q,M,t,c;g.u(function(Y){if(!n.D("html5_generate_session_po_token")||n.useLivingRoomPoToken)return Y.return();q=n.api.T();M=g.RZ("EOM_VISITOR_DATA")||g.RZ("VISITOR_DATA");t=q.WR?q.datasyncId:M;c=Id(q.experiments,"html5_mock_content_binding_for_session_token")||q.livingRoomPoTokenId||t;q.Ku=Ke(n,c);g.Sk(Y)})}; Ke=function(n,q){if(!n.W){if(n.Z)try{return n.Z(q)}catch(Y){g.PJ(Y)}return""}try{n.Si.WH(n.X?"pot_cms":"pot_csms");var M={mU:!0,PS:!0,N6:q};n.D("html5_web_po_token_disable_caching")||(M.pU={K0:q,g5:!0,MU:!0});var t=n.W.Un(M);n.Si.WH(n.X?"pot_cmf":"pot_csmf");if(n.X){var c;(c=n.J)==null||c.resolve();n.J=null;n.C&&(n.C=!1,n.api.app.tE().rG(!1))}return t}catch(Y){return g.PJ(Y),""}}; Rhu=function(n){n.W&&(n.J=new LW,n.S.promise.then(function(){n.Si.WH("pot_if");GK(n)}))}; g.kx=function(n,q,M){g.Yi(n.element,"ytp-suggestion-set",!!q.videoId);var t=q.playlistId;M=q.b7(M?M:"mqdefault.jpg");var c=null,Y=null;q instanceof qS&&(q.lengthText?(c=q.lengthText||null,Y=q.Sn||null):q.lengthSeconds&&(c=g.XB(q.lengthSeconds),Y=g.XB(q.lengthSeconds,!0)));var G=!!t;t=G&&pl(t).type==="RD";var k=q instanceof qS?q.isLivePlayback:null,b=q instanceof qS?q.isUpcoming:null,d=q.author,N=q.shortViewCount,O=q.publishedTimeText,e=[],E=[];d&&e.push(d);N&&(e.push(N),E.push(N));O&&E.push(O);M= {title:q.title,author:d,author_and_views:e.join(" \u2022 "),aria_label:q.ariaLabel||g.Yo("Ver $TITLE",{TITLE:q.title}),duration:c,timestamp:Y,url:q.o9(),is_live:k,is_upcoming:b,is_list:G,is_mix:t,background:M?"background-image: url("+M+")":"",views_and_publish_time:E.join(" \u2022 "),autoplayAlternativeHeader:q.wR};q instanceof nt&&(M.playlist_length=q.playlistLength);n.update(M)}; g.by=function(n){var q=n.T(),M=g.Xq||g.MU?{style:"will-change: opacity"}:void 0,t=q.J,c=["ytp-modern-videowall-still"];q.W&&c.push("ytp-videowall-show-text");g.w.call(this,{j:"a",aL:c,K:{href:"{{url}}",target:t?q.U:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},L:[{j:"div",Y:"ytp-modern-videowall-still-image",K:{style:"{{background}}"},L:[{j:"span",Y:"ytp-modern-videowall-still-info-duration",Wb:"{{duration}}"}]},{j:"span",Y:"ytp-modern-videowall-still-info", K:{"aria-hidden":"true"},L:[{j:"span",Y:"ytp-modern-videowall-still-info-bg",L:[{j:"span",Y:"ytp-modern-videowall-still-info-content",K:M,L:[{j:"span",Y:"ytp-modern-videowall-still-info-title",Wb:"{{title}}"},{j:"span",Y:"ytp-modern-videowall-still-info-author",Wb:"{{author}}"},{j:"span",Y:"ytp-modern-videowall-still-view-count-and-date-info",Wb:"{{views_and_publish_time}}"},{j:"span",Y:"ytp-modern-videowall-still-info-live",Wb:"En vivo"}]}]}]},{j:"span",aL:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],K:{"aria-hidden":"true"},L:[{j:"span",Y:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{j:"span",Y:"ytp-modern-videowall-still-listlabel-length",L:[" (",{j:"span",Wb:"{{playlist_length}}"},")"]}]},{j:"span",aL:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],K:{"aria-hidden":"true"},L:[{j:"span",Y:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{j:"span",Y:"ytp-modern-videowall-still-listlabel-length",Wb:" (50+)"}]}]}); this.suggestion=null;this.W=t;this.api=n;this.X=new g.f8(this);g.Z(this,this.X);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.X.V(n,"videodatachange",this.onVideoDataChange);n.createServerVe(this.element,this);this.onVideoDataChange()}; g.xn1=function(n,q){if(n.suggestion!==q){n.suggestion=q;var M=n.api.T();g.kx(n,q,"hqdefault.jpg");if(g.t8(M)&&!n.api.D("web_player_log_click_before_generating_ve_conversion_params")){M=q.o9();var t={};g.U9(n.api,"addEmbedsConversionTrackingParams",[t]);M=g.hC(M,t);n.updateValue("url",M)}(q=(q=q.sessionData)&&q.itct)&&n.api.setTrackingParams(n.element,q)}}; pSC=function(n,q){g.w.call(this,{j:"div",aL:["ytp-fullscreen-grid"],L:[{j:"div",Y:"ytp-fullscreen-grid-hover-overlay",K:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},L:[{j:"div",Y:"ytp-fullscreen-grid-hover-overlay-chevron",L:[{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"g",K:{filter:"url(#filter0_d_3104_799356)"},L:[{j:"path",K:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{j:"defs",L:[{j:"filter",K:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},L:[{j:"feFlood",K:{"flood-opacity":"0",result:"BackgroundImageFix"}},{j:"feColorMatrix",K:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{j:"feOffset"},{j:"feGaussianBlur",K:{stdDeviation:"0.5"}},{j:"feComposite",K:{in2:"hardAlpha",operator:"out"}},{j:"feColorMatrix",K:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {j:"feBlend",K:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{j:"feBlend",K:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{j:"div",Y:"ytp-fullscreen-grid-main-content",L:[{j:"div",Y:"ytp-fullscreen-grid-header",L:[{j:"div",Y:"ytp-fullscreen-grid-header-buttons",L:[{j:"button",aL:["ytp-grid-replay-button","ytp-button"],K:{title:"Volver a reproducir","aria-keyshortcuts":"k","aria-label":"Volver a reproducir","data-title-no-tooltip":"Volver a reproducir"}, L:[UyU()]},{j:"button",Y:"ytp-fullscreen-grid-header-button",K:{"aria-label":"{{ariaLabel}}"}}]},{j:"button",aL:["ytp-grid-menu-close","ytp-button"],K:{"aria-label":"Cerrar"},L:[g.ed()]}]},{j:"div",Y:"ytp-fullscreen-grid-stills-container"}]}]});var M=this;this.player=n;this.stills=[];this.videoData=null;this.currentState=0;this.C=this.JE("ytp-fullscreen-grid-main-content");this.S=this.JE("ytp-fullscreen-grid-header");n=this.JE("ytp-fullscreen-grid-header-buttons");this.Z=this.JE("ytp-grid-menu-close"); this.W=this.JE("ytp-grid-replay-button");this.X=this.JE("ytp-fullscreen-grid-header-button");this.U=this.JE("ytp-fullscreen-grid-stills-container");this.J=new g.f8(this);g.Z(this,this.J);this.N=q;if(this.S&&this.C&&n&&this.U&&this.X&&this.Z){if(q=this.JE("ytp-fullscreen-grid-hover-overlay"))this.V(q,"click",this.Fo),wZ(this.player,q,this);this.W&&(this.V(this.W,"click",function(t){M.RT(t)}),wZ(this.player,this.W,this)); this.X&&this.V(this.X,"click",this.Fo);this.Z&&this.V(this.Z,"click",this.Fo);if(q=this.player.getVideoData(1))this.videoData=q,QAk(this);this.player.createClientVe(this.S,this,223051);this.J.V(this.player,"videodatachange",this.onVideoDataChange);this.J.V(this.player,"presentingplayerstatechange",this.i$)}}; QAk=function(n){var q=n.player.getPlayerStateObject();g.Yi(n.player.getRootNode(),"ytp-grid-ended-state",g.C(q,2))}; qQ1=function(n){g.w.call(this,{j:"div",aL:["ytp-more-videos-button","ytp-button"],K:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},L:[{j:"div",Y:"ytp-more-videos-button-thumbnail"},{j:"span",Y:"ytp-more-videos-button-title",Wb:"{{title}}"}]});this.G=n;this.W=this.JE("ytp-more-videos-button-thumbnail");this.Z=this.JE("ytp-more-videos-button-title");this.X=new g.f8(this);g.Z(this,this.X);this.X.V(this.G,"videodatachange",this.Xz);this.Xz();this.listen("click",this.onClick);nNs(this, 0);this.hide()}; nNs=function(n,q){switch(q){case 2:q="Ocultar videos";var M="Hide recommendations grid";break;default:q="M\u00e1s videos",M="Show recommendations grid"}n.updateValue("title",q);n.element.ariaLabel=M;n.Z.textContent=q}; go=function(n){hV.call(this,n);var q=this;this.C=this.X=this.W=0;this.B=null;this.N=this.J=0;this.isEnded=!1;this.U=null;var M=new g.f8(n);g.Z(this,M);this.jX=g.ic(this.api.T().experiments,"web_player_default_peeking_px");this.nm=this.api.D("delhi_modern_player_enable_pause_peeking");this.SX=g.ic(this.api.T().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.AE=this.api.D("web_player_imax_theater_mode");this.Z=this.api.D("web_player_enable_fullscreen_grid_components");this.IL=this.api.D("web_player_enable_more_videos_button"); g.MN(this.api.getRootNode(),"ytp-grid-scrollable");M.V(n,"fullscreentoggled",function(){NV(q)}); M.V(n,"videodatachange",function(){if(q.Z){var t=q.api.getVideoData(1);q.videoData!==t&&q.W===2&&(g.ts(q.api.getRootNode(),"ytp-grid-scrolling"),O5(q,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));q.videoData=t}},this); M.V(n,"sizestylechange",function(){q.Z&&NV(q)}); vo(this.api,"setFullscreenQuickActions",function(t){q.setFullscreenQuickActions(t)}); vo(this.api,"setPlayerOverlayVideoDetailsRenderer",function(t){q.setPlayerOverlayVideoDetailsRenderer(t)}); this.Z&&MxC(this,M,n)}; MxC=function(n,q,M){q.V(M,"keyboardserviceglobalkeydown",function(t,c){n.Z&&t.keyCode===86&&!t.repeat&&n.W!==0&&(c&&(c.w$=!0),n.RL("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); q.V(n.api.getRootNode(),"wheel",function(t){if(!n.U){var c;if(n.Z&&(c=n.S)!=null&&c.element&&n.W!==0&&eC(n))if(g.MN(n.api.getRootNode(),"ytp-grid-scrolling"),n.J===0&&(n.J=window.innerHeight),n.W===1)n.J!==0&&(n.X+=t.deltaY/n.J,n.X=g.aR(n.X,0,.7),E5(n),icd(n,n.N/n.J+n.X>=.7,2));else if(n.W===2){c=t.deltaY<0;var Y,G=((Y=n.S)==null?void 0:Y.element.scrollTop)===0;Y=n.X!==0;c&&G||Y&&!c?n.J!==0&&(n.X+=t.deltaY/n.J,E5(n),icd(n,n.N/n.J+Math.abs(n.X)>=.7,1)):n.X!==0&&(n.X=0,E5(n))}}},n,!0); q.V(M,"standardControlsInitialized",function(){if(!n.S){n.S=new pSC(n.api,n.rJ.bind(n));n.IL&&(n.xl=new qQ1(n.api),g.Z(n,n.xl),n.xl.element.setAttribute("data-overlay-order","12"),n.api.Du(n.xl.element,4),n.xl.listen("click",n.RL,n));g.Z(n,n.S);var t=n.api.getRootNode().querySelector(".ytp-chrome-bottom");t&&t.parentNode&&t.parentNode.insertBefore(n.S.element,t.nextSibling);tx1(n)}}); q.V(M,"presentingplayerstatechange",function(){hX(n)}); q.V(M,"autonavvisibility",function(){hX(n)}); n.api.C1().subscribe("visibilitystatechange",function(){hX(n)}); c1j(n,n.W)}; icd=function(n,q,M){n.B&&clearTimeout(n.B);n.X===0&&g.ts(n.api.getRootNode(),"ytp-grid-scrolling");q?YQ1(n,M):n.X<.1&&(n.B=window.setTimeout(function(){YQ1(n)},1E3))}; YQ1=function(n,q){n.B&&(clearTimeout(n.B),n.B=null);n.J=0;n.Z&&n.W!==0&&(q?O5(n,q):Math.abs(n.X)>=.15&&n.RL("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),n.X=0,E5(n),g.ts(n.api.getRootNode(),"ytp-grid-scrolling"))}; eC=function(n){return n.api.isFullscreen()||n.AE&&n.api.tG()}; NV=function(n){var q=eC(n);g.Yi(n.api.getRootNode(),"ytp-full-bleed-player",q);n.wJ&&g.iE(n.wJ,q);n.playerOverlayVideoDetailsRenderer&&g.iE(n.playerOverlayVideoDetailsRenderer,q);n.Z&&hX(n)}; hX=function(n){if(n.Z)if(n.api.getPresentingPlayerType()===2||n.api.G0()||n.api.isMinimized())O5(n,0);else{var q=g.C(n.api.getPlayerStateObject(),2);if(q)O5(n,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(n.isEnded&&!q){var M=eC(n)?1:0;n.isEnded=q;O5(n,M)}else eC(n)?n.W!==2&&O5(n,1):O5(n,0);n.isEnded=q}}; O5=function(n,q,M){n.W=q;var t;(t=n.S)==null||t.Va(q,M);var c;(c=n.xl)==null||c.Va(q);n.X=0;E5(n);c1j(n,q)}; c1j=function(n,q){var M=n.api.getRootNode();g.Yi(M,"ytp-fullscreen-grid-peeking",q===1);g.Yi(M,"ytp-fullscreen-grid-active",q===2);q===1&&tx1(n)}; tx1=function(n){var q=n.api.getRootNode();if(g.C(n.api.getPlayerStateObject(),256)||g.C(n.api.getPlayerStateObject(),32)||g.C(n.api.getPlayerStateObject(),16))var M=n.N;else if(n.nm&&n.api.getPlayerStateObject().isPaused()){var t;M=(((t=n.S)==null?void 0:t.element.clientWidth)||0)*.5625/3*n.SX||n.jX}else M=n.jX;n.N=M;q.style.setProperty("--ytp-grid-peek-height",n.N+"px");g.Yi(q,"ytp-disable-bottom-gradient",n.N<=12&&n.C===0)}; E5=function(n){n.X===0&&n.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var q=n.X-n.C,M=q;n.X!==0&&(M=g.aR(q,-.01,.01));n.C+=M;n.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+n.C.toString());n.C!==n.X&&E5(n)})}; GQU=function(n){hV.call(this,n);var q=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.f8(n);g.Z(this,this.events);this.events.V(n,"heartbeatRequest",function(M){if(q.freePreviewUsageDetails.length||q.freePreviewWatchedDuration!==null)M.heartbeatRequestParams||(M.heartbeatRequestParams={}),M.heartbeatRequestParams.unpluggedParams||(M.heartbeatRequestParams.unpluggedParams={}),q.freePreviewUsageDetails.length>0?M.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= q.freePreviewUsageDetails:M.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+q.freePreviewWatchedDuration}}); vo(n,"setFreePreviewWatchedDuration",function(M){q.freePreviewWatchedDuration=M}); vo(n,"setFreePreviewUsageDetails",function(M){q.freePreviewUsageDetails=M})}; W0=function(n){g.F.call(this);this.features=[];var q=this.X,M=new V_(n),t=new W8(n),c=new hH(n),Y=new c0(n);var G=g.e$(n.T())?void 0:new ZO(n);var k=new Er(n),b=new Wpf(n),d=new Dnu(n),N=new JV(n);var O=g.e$(n.T())?new GQU(n):void 0;var e;var E=(e=n.T().getWebPlayerContextConfig())!=null&&e.cinematicSettingsAvailable?new AV(n):void 0;e=new z6(n);var h=n.D("enable_courses_player_overlay_purchase")?new Eys(n):void 0;var I=g.fl(n.T())?new NXm(n):void 0;var L=new a5(n);var T=n.T().J?new YMf(n):void 0; var v=g.t8(n.T())?new ccd(n):void 0;var B=n.D("web_player_move_autonav_toggle")&&n.T().rZ?new CGU(n):void 0;var m=g.fl(n.T())?new Y2C(n):void 0;var a=n.D("web_enable_speedmaster")&&g.fl(n.T())?new wC(n):void 0;var x=n.T().Xw?void 0:new fkJ(n);var V=n.D("report_pml_debug_signal")?new ohU(n):void 0;var bf=new ykd(n),Ka=new XS(n);var dd=g.BD(n.T())?new DJJ(n):void 0;var gd=navigator.mediaSession&&window.MediaMetadata&&n.T().h2?new gC(n):void 0;var MR=n.D("html5_enable_drc")&&!n.T().C?new FF(n):void 0; var lf=new XF(n);var rd=g.fl(n.T())?new Cqm(n):void 0;var gT=n.D("html5_enable_d6de4")?new Wp(n):void 0;var ND=g.fl(n.T())&&n.D("web_sleep_timer")?new mo(n):void 0;var V1=g.t8(n.T())?new Kk_(n):void 0;var uf=new Bp(n),K3=new nyJ(n),$w=new tIa(n);var zL=n.D("enable_sabr_snackbar_message")?new Kp_(n):void 0;var ku=n.D("web_enable_timely_actions")?new vY1(n):void 0;var l=new mi(n);var uV,LQ;var t_=((uV=n.T())==null?0:(LQ=uV.getWebPlayerContextConfig())==null?0:LQ.enableFullscreenComponentsFeature)?new go(n): void 0;uV=n.D("html5_enable_voice_boost")?new mnm(n):void 0;LQ=n.D("web_player_loop_settings_menu")&&n.T().uh?new ck1(n):void 0;var Ps=g.e$(n.T())?void 0:new y_(n);var f=new T3m(n);var qR=n.D("html5_enable_audio_quality_setting")&&n.D("html5_enable_audio_quality_setting_feature")?new I5(n):void 0;var v7=new s_s(n),xu=new wcj(n);n=g.fl(n.T())&&n.T().D("delhi_modern_web_player")?new qMu(n):void 0;q.call(this,M,t,c,Y,G,k,b,d,N,O,E,e,h,I,L,T,v,B,m,a,x,V,bf,Ka,dd,void 0,gd,MR,lf,void 0,rd,gT,ND,V1,void 0, uf,K3,$w,void 0,zL,ku,l,t_,uV,void 0,LQ,void 0,Ps,f,qR,v7,xu,n)}; KsU=function(){this.W=this.X=NaN}; kQJ=function(n,q){this.Q1=n;this.timerName="";this.Z=!1;this.W=NaN;this.J=new KsU;this.X=q||null;this.Z=!1}; bcC=function(n,q,M){var t=g.b4(q.pm)&&!q.pm.C;if(q.pm.W_&&(Yl(q.pm)||q.pm.IL==="shortspage"||l4(q.pm)||t)&&!n.Z){n.Z=!0;n.C=q.clientPlaybackNonce;g.RZ("TIMING_ACTION")||aZ("TIMING_ACTION",n.Q1.csiPageType);n.Q1.csiServiceName&&aZ("CSI_SERVICE_NAME",n.Q1.csiServiceName);if(n.X){t=n.X.Zu();for(var c=g.S(Object.keys(t)),Y=c.next();!Y.done;Y=c.next())Y=Y.value,H_(Y,t[Y],n.timerName);t=g.Jo(JxU)(n.X.Oc);g.LD(t,n.timerName);t=n.X;t.X={};t.Oc={}}g.LD({playerInfo:{visibilityState:g.Jo(zij)()},playerType:"LATENCY_PLAYER_HTML5"}, n.timerName);n.S!==q.clientPlaybackNonce||Number.isNaN(n.W)||(v_("_start",n.timerName)?M=g.Jo(Xs)("_start",n.timerName)+n.W:g.PJ(new g.aE("attempted to log gapless pbs before CSI timeline started",{cpn:q.clientPlaybackNonce})));M&&!v_("pbs",n.timerName)&&yJ(n,M)}}; yJ=function(n,q,M){H_("pbs",q!=null?q:(0,g.jt)(),M!=null?M:n.timerName)}; s5=function(n){iEj();M7a();n.timerName=""}; djd=function(n){if(n.X){var q=n.X;q.X={};q.Oc={}}n.Z=!1;n.S=void 0;n.W=NaN}; N_m=function(n,q){g.MB.call(this);this.pm=n;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.X=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.B={};this.W=0;if(n=q.session_data)this.sessionData=Cr(n,"&");this.index=Math.max(0,Number(q.index)||0);this.loop=!!q.loop;this.startSeconds=Number(q.startSeconds)||0;this.title=q.playlist_title||"";this.description=q.playlist_description||"";this.author= q.author||q.playlist_author||"";q.video_id&&(this.items[this.index]=q);if(n=q.api)typeof n==="string"&&n.length===16?q.list="PL"+n:q.playlist=n;if(n=q.list)switch(q.listType){case "user_uploads":this.listId=new Qb("UU","PLAYER_"+n);break;default:var M=q.playlist_length;M&&(this.length=Number(M)||0);this.listId=pl(n);if(n=q.video)this.items=n.slice(0),this.loaded=!0}else if(q.playlist){n=q.playlist.toString().split(",");this.index>0&&(this.items=[]);n=g.S(n);for(M=n.next();!M.done;M=n.next())(M=M.value)&& this.items.push({video_id:M});this.length=this.items.length;if(n=q.video)this.items=n.slice(0),this.loaded=!0}this.setShuffle(!!q.shuffle);if(n=q.suggestedQuality)this.quality=n;this.B=Vb(q,"playlist_");this.Z=(q=q.thumbnail_ids)?q.split(","):[]}; OcU=function(n){return!!(n.playlist||n.list||n.api)}; gNd=function(n){var q=n.index+1;return q>=n.length?0:q}; eGf=function(n){var q=n.index-1;return q<0?n.length-1:q}; g.Xg=function(n,q,M,t){q=q!==void 0?q:n.index;q=n.items&&q in n.items?n.items[n.order[q]]:null;var c=null;q&&(M&&(q.autoplay="1"),t&&(q.autonav="1"),c=new g.sh(n.pm,q),g.Z(n,c),c.J_=!0,c.startSeconds=n.startSeconds||c.clipStart||0,n.listId&&(c.playlistId=n.listId.toString()));return c}; ENf=function(n,q){n.index=g.aR(q,0,n.length-1);n.startSeconds=0}; hGJ=function(n,q){if(q.video&&q.video.length){n.title=q.title||"";n.description=q.description;n.views=q.views;n.likes=q.likes;n.dislikes=q.dislikes;n.author=q.author||"";var M=q.loop;M&&(n.loop=M);M=g.Xg(n);n.items=[];for(var t=g.S(q.video),c=t.next();!c.done;c=t.next())if(c=c.value)c.video_id=c.encrypted_id,n.items.push(c);n.length=n.items.length;(q=q.index)?n.index=q:n.findIndex(M);n.setShuffle(!1);n.loaded=!0;n.W++;n.X&&n.X()}}; sLU=function(n,q){var M,t,c,Y,G,k,b;return g.u(function(d){if(d.X==1){M=g.zj();var N=n.T(),O={context:g.Li(n),playbackContext:{contentPlaybackContext:{ancestorOrigins:N.ancestorOrigins}}},e=N.getWebPlayerContextConfig();if(e==null?0:e.encryptedHostFlags)O.playbackContext.contentPlaybackContext.encryptedHostFlags=e.encryptedHostFlags;if(e==null?0:e.hideInfo)O.playerParams={showinfo:!1};e=N.embedConfig;var E=n.Vs;var h=q.docid||q.video_id||q.videoId||q.id;if(!h){h=q.raw_embedded_player_response;if(!h){var I= q.embedded_player_response;I&&(h=JSON.parse(I))}if(h){var L,T,v,B,m,a;h=((a=g.R((L=h)==null?void 0:(T=L.embedPreview)==null?void 0:(v=T.thumbnailPreviewRenderer)==null?void 0:(B=v.playButton)==null?void 0:(m=B.buttonRenderer)==null?void 0:m.navigationEndpoint,g.HO))==null?void 0:a.videoId)||null}else h=null}L=(L=h)?L:void 0;T=n.playlistId?n.playlistId:q.list;v=q.listType;if(T){var x;v==="user_uploads"?x={username:T}:x={playlistId:T};WsC(e,E,L,q,x,N.experiments);O.playlistRequest=x}else q.playlist? (x={templistVideoIds:q.playlist.toString().split(",")},WsC(e,E,L,q,x,N.experiments),O.playlistRequest=x):L&&(x={videoId:L},E&&N.D("embeds_enable_per_video_embed_config")?x.serializedThirdPartyEmbedConfig=E:e&&(x.serializedThirdPartyEmbedConfig=e),O.singleVideoRequest=x);t=O;c=g.QQ(y1m);g.Ij(d,2);return g.U(d,g.B_(M,t,c),4)}if(d.X!=2)return Y=d.W,G=n.T(),q.raw_embedded_player_response=Y,G.jX=cf(q,g.t8(G)),G.Z=G.jX==="EMBEDDED_PLAYER_MODE_PFL",Y&&(k=Y,k.trackingParams&&K9(k.trackingParams)),d.return(new g.sh(G, q));b=g.TU(d);b instanceof Error||(b=Error("b259802748"));g.Ly(b);return d.return(n)})}; WsC=function(n,q,M,t,c,Y){t.index&&(c.playlistIndex=String(Number(t.index)+1));c.videoId=M?M:"";q&&Y.Hb("embeds_enable_per_video_embed_config")?c.serializedThirdPartyEmbedConfig=q:n&&(c.serializedThirdPartyEmbedConfig=n)}; g.SC=function(n,q){jC.get(n);jC.set(n,q)}; g.Ib=function(n){g.MB.call(this);this.loaded=!1;this.player=n}; XM_=function(){this.W=[];this.X=[]}; g.iy=function(n,q){return q?n.X.concat(n.W):n.X}; g.fe=function(n,q){switch(q.kind){case "asr":jL1(q,n.W);break;default:jL1(q,n.X)}}; jL1=function(n,q){g.XO(q,function(M){return n.equals(M)})||q.push(n)}; g.H0=function(n){g.F.call(this);this.oL=n;this.W=new XM_;this.Z=null;this.S=[];this.B=[]}; g.Le=function(n,q,M){g.H0.call(this,n);this.videoData=q;this.audioTrack=M;this.X=null;this.J=!1;this.S=q.lJ;this.B=q.IS;this.J=g.b3(q)}; g.SQu=function(n,q){var M;return n.T().D("safari_live_drm_captions_fix")&&((M=n.getVideoData())==null?0:M.G8())?!1:g.e$(n.T())&&!q.isManifestless}; g.P0=function(n,q){return iN(n.info.mimeType)?q?n.info.itag===q:!0:!1}; g.Ias=function(n,q){if(n.X!=null&&g.SQu(q,n.X)&&n.X.X.rawcc!=null)return!0;if(!n.r7())return!1;q=!!n.X&&n.X.isManifestless&&Object.values(n.X.X).some(function(M){return g.P0(M,"386")}); n=!!n.X&&!n.X.isManifestless&&g.dGa(n.X);return q||n}; g.v0=function(n,q,M,t,c,Y){g.H0.call(this,n);this.videoId=M;this.dW=c;this.eventId=Y;this.C={};this.X=null;n=t||g.pr(q).hl||"";n=n.split("_").join("-");this.J=np(q,{hl:n})}; fa_=function(n,q){g.F.call(this);var M=this;this.G=n;this.J=q;this.Oc={};this.X={};this.W=null;this.Z=new Set;this.S=new g.f8(this);this.vg={CDJ:function(){return M.J}}; this.C=this.G.D("web_player_defer_modules");this.R1=new Map;g.Z(this,this.S);this.S.V(n,"videodatachange",this.onVideoDataChange)}; Hca=function(n,q){n.W=q}; g.TK=function(n){return n.R1.get("captions")}; uej=function(n,q){switch(q){case "ad":return Lsm(n);case "annotations_module":return n.G.isEmbedsShortsMode()?n=!1:(q=n.G,n=q.T(),q=q.getVideoData(),n=n.Z||q.Jy||n.controlsType==="3"?!1:n.SX.isEmpty()&&n.playerStyle!=="annotation-editor"&&n.playerStyle!=="live-dashboard"?!!q.rJ||!!g.G1(q)||!!g.Ki(q):!0),n;case "asmjs":return PtC(n);case "creatorendscreen":return vNa(n);case "embed":return g.t8(n.G.T());case "endscreen":return g.T_j(n);case "heartbeat":return n.mu();case "kids":return h8(n.G.T()); case "remote":return n.G.T().He;case "miniplayer":return n.G.T().showMiniplayerUiWhenMinimized;case "offline":return n.G.T().jL;case "captions":return laC(n);case "unplugged":return g.d1(n.G.T());case "ux":return n.G.T().hE;case "webgl":return UjJ(n);case "ypc":return n.qL();case "yto":return!1;default:return g.Ly(Error("Module descriptor "+q+" does not match")),!1}}; ly=function(n,q,M,t,c){var Y;M=M===void 0?!1:M;t=t===void 0?!1:t;var G=n.R1.get(q);if(!G||t)if(c||(c=function(){ly(n,q,M,t)}),Y||(Y=function(){n.G.fu(q)}),G=G||B_j(n,q,uej(n,q),c,Y))n.R1.set(q,G),G.create(),n.G.publish("modulecreated",q),M&&n.G.t1("onApiChange")}; A1s=function(n){var q=q===void 0?!1:q;var M,t,c,Y,G;return g.u(function(k){if(k.X==1)return(M=n.R1.get("asmjs"))&&!q?k.return(M):(t=jC.get("asmjs"))!=null?(c=t,k.Fy(2)):g.U(k,new Promise(function(b,d){Djs(n,"asmjs",function(){var N=jC.get("asmjs");N?b(N):d("cannot load module asmjs")},d)}),3); k.X!=2&&(c=k.W);Y=c;if(!Y)return k.return(Promise.reject("cannot load module asmjs"));G=new Y(n.G);n.R1.set("asmjs",G);G.create();return k.return(G)})}; Fsm=function(n){mja(n)&&n.aq();$jd(n)&&(ly(n,"captions",!0),ly(n,"endscreen"),n.Ph(),ly(n,"creatorendscreen",!0))}; $jd=function(n){var q=n.G.getVideoData(),M=n.C&&!q.isInlinePlaybackNoAd;n.G.D("html5_defer_modules_on_ads_only")&&!q.isAd()&&(M=!1);return M}; mja=function(n){n=n.G.getVideoData();var q;if(q=n.D("web_player_defer_ad")){if(g.SS(n.wJ,"ad")||$_u(n)||n.enableServerStitchedDai)n=!1;else{q=n.playerResponse;n=n.startSeconds;var M=q==null?void 0:q.adPlacements;if(q=M){q=Number.MAX_VALUE;M=g.S(M);for(var t=M.next();!t.done;t=M.next())if(t=t.value.adPlacementRenderer){var c=void 0,Y=(c=t.config)==null?void 0:c.adPlacementConfig;c=void 0;if(((c=Y)==null?void 0:c.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var G=c=void 0;Y=Number((c=Y)==null?void 0:(G= c.adTimeOffset)==null?void 0:G.offsetStartMilliseconds)||0;G=c=void 0;t=Number(((c=t.renderer)==null?void 0:(G=c.adBreakServiceRenderer)==null?void 0:G.prefetchMilliseconds)||0);t=Y-t;t=11;n=n.api.T().N&&Zh;return!(!q&&!n)}; pe=function(n,q){return!n.api.isInline()&&!Gzm(n,XY(q))&&g.j3(q)}; YVC=function(n){n.bI.Qg();if(n.MG&&n.gK)n.gK=!1;else if(!n.api.T().rJ&&!n.oF()){var q=n.api.getPlayerStateObject();g.C(q,2)&&g.VG(n.api)||n.lW(q);!n.api.T().QS||q.isCued()||g.C(q,1024)?n.EA():n.vM.isActive()?(n.FO(),n.vM.stop()):n.vM.start()}}; kz_=function(n,q){var M;if((M=n.api.getVideoData())==null?0:M.mutedAutoplay){var t,c;if((t=q.target)==null?0:(c=t.className)==null?0:c.includes("ytp-info-panel"))return!1}return g.j3(q)&&n.api.isMutedByMutedAutoplay()?(n.api.unMute(),n.api.getPresentingPlayerType()===2&&n.api.playVideo(),q=n.api.getPlayerStateObject(),!g.C(q,4)||g.C(q,8)||g.C(q,2)||n.EA(),!0):!1}; bk_=function(n,q,M){n.api.isFullscreen()?M<1-q&&n.api.toggleFullscreen():M>1+q&&n.api.toggleFullscreen()}; cMs=function(n){var q=F$()&&AP()>=67&&!n.api.T().N;n=n.api.T().disableOrganicUi;return!g.$e("tizen")&&!qU&&!q&&!n}; g.nV=function(n){g.w.call(this,{j:"div",L:[{j:"div",Y:"ytp-bezel-text-wrapper",L:[{j:"div",Y:"ytp-bezel-text",Wb:"{{title}}"}]},{j:"div",Y:"ytp-bezel",K:{role:"status","aria-label":"{{label}}"},L:[{j:"div",Y:"ytp-bezel-icon",Wb:"{{icon}}"}]}]});this.G=n;this.W=new g.zw(this.show,10,this);n=this.G.D("delhi_modern_web_player")?1E3:500;this.X=new g.zw(this.hide,n,this);g.Z(this,this.W);g.Z(this,this.X);this.hide()}; MF=function(n,q,M){if(q<=0){M=L$();q="silenciado";var t=0}else M=M?{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,K:{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"}}]}:{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,K:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},t=Math.floor(q),q=t+"volumen";qF(n,M,q,t+"%")}; ddC=function(n,q){q=q?{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{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"}}]}:WAU();var M=n.G.getPlaybackRate(),t=g.Yo("La velocidad es de $RATE",{RATE:String(M)});qF(n,q,t,M+"x")}; Nn_=function(n,q){q=q?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";qF(n,xLa(n.G),q)}; qF=function(n,q,M,t){t=t===void 0?"":t;n.updateValue("label",M===void 0?"":M);n.updateValue("icon",q);g.CO(n.X);n.W.start();n.updateValue("title",t);g.Yi(n.element,"ytp-bezel-text-hide",!t)}; Okk=function(n,q){g.w.call(this,{j:"button",aL:["ytp-button","ytp-cards-button"],K:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.t8(n.T()))},L:[{j:"span",Y:"ytp-cards-button-icon-default",L:[{j:"div",Y:"ytp-cards-button-icon",L:[n.T().D("player_new_info_card_format")?XfC():{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{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"}}]}]}, {j:"div",Y:"ytp-cards-button-title",Wb:"Informaci\u00f3n"}]},{j:"span",Y:"ytp-cards-button-icon-shopping",L:[{j:"div",Y:"ytp-cards-button-icon",L:[{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",Y:"ytp-svg-shadow",K:{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"}},{j:"path",Y:"ytp-svg-fill",K:{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"}},{j:"path",Y:"ytp-svg-shadow-fill",K:{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"}}]}]},{j:"div", Y:"ytp-cards-button-title",Wb:"Shopping"}]}]});this.G=n;this.W=q;this.X=null;this.fade=new g.QX(this,250,!0,100);g.Z(this,this.fade);g.Yi(this.W,"ytp-show-cards-title",g.t8(n.T()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.zq(!0)}; gPf=function(n,q){g.w.call(this,{j:"div",Y:"ytp-cards-teaser",L:[{j:"div",Y:"ytp-cards-teaser-box"},{j:"div",Y:"ytp-cards-teaser-text",L:n.T().D("player_new_info_card_format")?[{j:"button",Y:"ytp-cards-teaser-info-icon",K:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},L:[XfC()]},{j:"img",Y:"ytp-cards-teaser-channel-avatar",K:{alt:"","aria-hidden":"true"}},{j:"span",Y:"ytp-cards-teaser-label",Wb:"{{text}}"},{j:"button",Y:"ytp-cards-teaser-close-button",K:{"aria-label":"Cerrar"},L:[g.ed()]}]: [{j:"span",Y:"ytp-cards-teaser-label",Wb:"{{text}}"}]}]});var M=this;this.G=n;this.Ty=q;this.fade=new g.QX(this,250,!1,250);this.X=null;this.C=new g.zw(this.JQk,300,this);this.S=new g.zw(this.wnl,2E3,this);this.J=[];this.W=null;this.N=new g.zw(function(){M.element.style.margin="0"},250); this.onClickCommand=this.Z=null;g.Z(this,this.fade);g.Z(this,this.C);g.Z(this,this.S);g.Z(this,this.N);n.T().D("player_new_info_card_format")?(g.MN(n.getRootNode(),"ytp-cards-teaser-dismissible"),this.V(this.JE("ytp-cards-teaser-close-button"),"click",this.CX),this.V(this.JE("ytp-cards-teaser-info-icon"),"click",this.MB),this.V(this.JE("ytp-cards-teaser-label"),"click",this.MB)):this.listen("click",this.MB);this.V(q.element,"mouseover",this.lm);this.V(q.element,"mouseout",this.qX);this.V(n,"cardsteasershow", this.LqL);this.V(n,"cardsteaserhide",this.lG);this.V(n,"cardstatechange",this.HY);this.V(n,"presentingplayerstatechange",this.HY);this.V(n,"appresize",this.RD);this.V(n,"onShowControls",this.RD);this.V(n,"onHideControls",this.ZD);this.listen("mouseenter",this.P4)}; eJm=function(n){g.w.call(this,{j:"button",aL:[iL.BUTTON,iL.TITLE_NOTIFICATIONS],K:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},L:[{j:"div",Y:iL.TITLE_NOTIFICATIONS_ON,K:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},L:[g.yX()]},{j:"div",Y:iL.TITLE_NOTIFICATIONS_OFF,K:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},L:[{j:"svg",K:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},L:[{j:"path",K:{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=n;this.X=!1;n.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")}; EPj=function(n,q){n.X=q;n.element.classList.toggle(iL.NOTIFICATIONS_ENABLED,n.X);var M=n.api.getVideoData();M?(q=q?M.Lq:M.HE)?(n=n.api.Ou())?uZ(n,q):g.Ly(Error("No innertube service available when updating notification preferences.")):g.Ly(Error("No update preferences command available.")):g.Ly(Error("No video data when updating notification preferences."))}; Wjd=function(n,q,M){var t=t===void 0?800:t;var c=c===void 0?600:c;var Y=document.location.protocol;n=Z7k(Y+"//"+n+"/signin?context=popup","feature",q,"next",Y+"//"+location.hostname+"/post_login");hJa(n,M,t,c)}; hJa=function(n,q,M,t){M=M===void 0?800:M;t=t===void 0?600:t;if(n=g.Ep(window,n,"loginPopup","width="+M+",height="+t+",resizable=yes,scrollbars=yes"))gda(function(){q()}),n.moveTo((screen.width-M)/2,(screen.height-t)/2)}; g.t9=function(n,q,M,t,c,Y,G,k,b,d,N,O){n=n.charAt(0)+n.substring(1).toLowerCase();M=M.charAt(0)+M.substring(1).toLowerCase();if(q==="0"||q==="-1")q=null;if(t==="0"||t==="-1")t=null;var e=N.T(),E=e.userDisplayName&&g.b4(e);g.w.call(this,{j:"div",aL:["ytp-button","ytp-sb"],L:[{j:"div",Y:"ytp-sb-subscribe",K:E?{title:N.T().D("player_tooltip_data_title_killswitch")?g.Yo("Suscribirse como $USER_NAME",{USER_NAME:e.userDisplayName}):"","data-tooltip-title":g.Yo("Suscribirse como $USER_NAME",{USER_NAME:e.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":UR(e),"data-tooltip-opaque":String(g.t8(e)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},L:[{j:"div",Y:"ytp-sb-text",L:[{j:"div",Y:"ytp-sb-icon"},n]},q?{j:"div",Y:"ytp-sb-count",Wb:q}:""]},{j:"div",Y:"ytp-sb-unsubscribe",K:E?{title:N.D("player_tooltip_data_title_killswitch")?g.Yo("Suscrito como $USER_NAME",{USER_NAME:e.userDisplayName}):"","data-tooltip-title":g.Yo("Suscrito como $USER_NAME",{USER_NAME:e.userDisplayName}), "aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":UR(e),"data-tooltip-opaque":String(g.t8(e)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},L:[{j:"div",Y:"ytp-sb-text",L:[{j:"div",Y:"ytp-sb-icon"},M]},t?{j:"div",Y:"ytp-sb-count",Wb:t}:""]}],K:{"aria-live":"polite"}});var h=this;this.channelId=G;this.G=N;this.Z=O;var I=this.JE("ytp-sb-subscribe"),L=this.JE("ytp-sb-unsubscribe");Y&&g.MN(this.element,"ytp-sb-classic");if(c){k?this.X():this.W(); var T=function(){if(e.wJ){var B=h.channelId;if(b||d){var m={c:B};var a;g.Nl.isInitialized()&&(a=a41(m));m=a||"";if(a=N.getVideoData())if(a=a.subscribeCommand){var x=N.Ou();x?(uZ(x,a,{botguardResponse:m,feature:b}),N.Km("SUBSCRIBE",B)):g.Ly(Error("No innertube service available when updating subscriptions."))}else g.Ly(Error("No subscribe command in videoData."));else g.Ly(Error("No video data available when updating subscription."))}L.focus();L.removeAttribute("aria-hidden");I.setAttribute("aria-hidden", "true")}else Wjd(g.sR(h.G.T()),"sb_button",h.J)},v=function(){var B=h.channelId; if(b||d){var m=N.getVideoData();uZ(N.Ou(),m.unsubscribeCommand,{feature:b});N.Km("UNSUBSCRIBE",B)}I.focus();I.removeAttribute("aria-hidden");L.setAttribute("aria-hidden","true")}; this.V(I,"click",T);this.V(L,"click",v);this.V(I,"keypress",function(B){B.keyCode===13&&T(B)}); this.V(L,"keypress",function(B){B.keyCode===13&&v(B)}); this.V(N,"SUBSCRIBE",this.X);this.V(N,"UNSUBSCRIBE",this.W);this.Z&&E&&(ULs(N),wZ(N,I,this),wZ(N,L,this))}else g.MN(I,"ytp-sb-disabled"),g.MN(L,"ytp-sb-disabled")}; Xu1=function(n){g.w.call(this,{j:"div",Y:"ytp-title-channel",L:[{j:"div",Y:"ytp-title-beacon"},{j:"a",Y:"ytp-title-channel-logo",K:{href:"{{channelLink}}",target:n.T().U,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{j:"div",Y:"ytp-title-expanded-overlay",K:{"aria-hidden":"{{flyoutUnfocusable}}"},L:[{j:"div",Y:"ytp-title-expanded-heading",L:[{j:"div",Y:"ytp-title-expanded-title",L:[{j:"a",Wb:"{{expandedTitle}}",K:{href:"{{channelTitleLink}}",target:n.T().U,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{j:"div",Y:"ytp-title-expanded-subtitle",Wb:"{{expandedSubtitle}}",K:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var q=this;this.api=n;this.channel=this.JE("ytp-title-channel");this.W=this.JE("ytp-title-channel-logo");this.channelName=this.JE("ytp-title-expanded-title");this.S=this.JE("ytp-title-expanded-overlay");this.Z=this.X=this.subscribeButton=null;this.J=!1;n.createClientVe(this.W,this,36925);n.createClientVe(this.channelName,this, 37220);g.t8(this.api.T())&&yMC(this);this.V(n,"videodatachange",this.Cm);this.V(n,"videoplayerreset",this.Cm);this.V(this.channelName,"click",function(M){q.api.logClick(q.channelName);g.Ep(window,sYk(q));M.preventDefault()}); this.V(this.W,"click",this.q9k);this.Cm()}; jYs=function(n){if(!n.api.T().Yi){var q=n.api.getVideoData(),M=new g.t9("Suscribirse",null,"Suscrito/a",null,!0,!1,q.xp,q.subscribed,"channel_avatar",null,n.api,!0);n.api.createServerVe(M.element,n);var t;n.api.setTrackingParams(M.element,((t=q.subscribeButtonRenderer)==null?void 0:t.trackingParams)||null);n.V(M.element,"click",function(){n.api.logClick(M.element)}); n.subscribeButton=M;g.Z(n,n.subscribeButton);n.subscribeButton.dJ(n.S);n.subscribeButton.hide();var c=new eJm(n.api);n.X=c;g.Z(n,c);c.dJ(n.S);c.hide();n.V(n.api,"SUBSCRIBE",function(){q.I2&&(c.show(),n.api.logVisibility(c.element,!0))}); n.V(n.api,"UNSUBSCRIBE",function(){q.I2&&(c.hide(),n.api.logVisibility(c.element,!1),EPj(c,!1))})}}; yMC=function(n){var q=n.api.T();jYs(n);n.updateValue("flyoutUnfocusable","true");n.updateValue("channelTitleFocusable","-1");n.updateValue("shouldHideExpandedTitleForA11y","true");n.updateValue("shouldHideExpandedSubtitleForA11y","true");q.W||q.AE||(n.V(n.channel,"mouseenter",n.cG),n.V(n.channel,"mouseleave",n.Xq),n.V(n.channel,"focusin",n.cG),n.V(n.channel,"focusout",function(M){n.channel.contains(M.relatedTarget)||n.Xq()})); n.Z=new g.zw(function(){n.isExpanded()&&(n.api.logVisibility(n.channelName,!1),n.subscribeButton&&(n.subscribeButton.hide(),n.api.logVisibility(n.subscribeButton.element,!1)),n.X&&(n.X.hide(),n.api.logVisibility(n.X.element,!1)),n.channel.classList.remove("ytp-title-expanded"),n.channel.classList.add("ytp-title-show-collapsed"))},500); g.Z(n,n.Z);n.V(n.channel,SVs,function(){IVJ(n)}); n.V(n.api,"onHideControls",n.v7);n.V(n.api,"appresize",n.v7);n.V(n.api,"fullscreentoggled",n.v7)}; IVJ=function(n){n.channel.classList.remove("ytp-title-show-collapsed");n.channel.classList.remove("ytp-title-show-expanded")}; fVu=function(n){var q=n.api.getPlayerSize();return g.t8(n.api.T())&&q.width>=524}; sYk=function(n){var q=n.api.T(),M=n.api.getVideoData(),t=g.u4(q)+M.QS;g.Im(M)&&(t="https://music.youtube.com"+M.QS);if(!g.t8(q))return t;q={};g.U9(n.api,"addEmbedsConversionTrackingParams",[q]);return g.hC(t,q)}; cB=function(n){var q=g.g6({"aria-haspopup":"true"});g.O3.call(this,q,n);this.listen("keydown",this.Ym)}; Y5=function(n,q){n.element.setAttribute("aria-haspopup",String(q))}; Hkj=function(n,q){g.w.call(this,{j:"div",Y:"ytp-user-info-panel",K:{"aria-label":"Informaci\u00f3n del usuario"},L:n.T().wJ&&!n.D("embeds_web_always_enable_signed_out_state")?[{j:"div",Y:"ytp-user-info-panel-icon",Wb:"{{icon}}"},{j:"div",Y:"ytp-user-info-panel-content",L:[{j:"div",Y:"ytp-user-info-panel-info",K:{tabIndex:"{{userInfoFocusable}}",role:"text"},Wb:"{{watchingAsUsername}}"},{j:"div",Y:"ytp-user-info-panel-info",K:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Wb:"{{watchingAsEmail}}"}]}]: [{j:"div",Y:"ytp-user-info-panel-icon",Wb:"{{icon}}"},{j:"div",Y:"ytp-user-info-panel-content",L:[{j:"div",L:[{j:"text",K:{tabIndex:"{{userInfoFocusable}}"},Wb:"Saliste de la cuenta"}]},{j:"div",Y:"ytp-user-info-panel-login",L:[{j:"a",K:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Wb:n.T().Yi?"":"Acceder a YouTube"}]}]}]});this.oL=n;this.X=q;n.T().wJ||n.T().Yi||this.V(this.JE("ytp-user-info-panel-login"),"click",this.YS);this.closeButton=new g.w({j:"button",aL:["ytp-collapse","ytp-button"],K:{title:"Cerrar"}, L:[g.H4()]});this.closeButton.dJ(this.element);g.Z(this,this.closeButton);this.V(window,"blur",this.hide);this.V(document,"click",this.Oy);this.Cm()}; lVJ=function(n,q,M){g.Hp.call(this,n);var t=this;this.xi=q;this.mq=M;this.getVideoUrl=new cB(6);this.yq=new cB(5);this.YR=new cB(4);this.Bg=new cB(3);this.Qd=new g.O3(g.g6({href:"{{href}}",target:this.G.T().U},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.O3(g.g6(),1,"Estad\u00edsticas");this.O$=new g.G2({j:"div",aL:["ytp-copytext","ytp-no-contextmenu"],K:{draggable:"false",tabindex:"1"},Wb:"{{text}}"});this.XW=new fA(this.G,this.O$);this.kT=this.BJ=null;g.t8(this.G.T())&& (this.closeButton=new g.w({j:"button",aL:["ytp-collapse","ytp-button"],K:{title:"Cerrar"},L:[g.H4()]}),g.Z(this,this.closeButton),this.closeButton.dJ(this.element),this.closeButton.listen("click",this.wL,this));g.t8(this.G.T())&&(this.cR=new g.O3(g.g6(),8,"Cuenta"),g.Z(this,this.cR),this.Qa(this.cR,!0),this.cR.listen("click",this.NZE,this),n.createClientVe(this.cR.element,this.cR,137682));this.G.T().uh&&(this.hI=new H8("En bucle",7),g.Z(this,this.hI),this.Qa(this.hI,!0),this.hI.listen("click",this.McL, this),n.createClientVe(this.hI.element,this.hI,28661));this.G.D("web_player_miniplayer_in_context_menu")&&(this.wA=new g.O3(g.g6(),6,"Reproductor en miniatura"),g.Z(this,this.wA),this.Qa(this.wA,!0),this.wA.listen("click",this.Znm,this),n.createClientVe(this.wA.element,this.wA,62946));g.Z(this,this.getVideoUrl);this.Qa(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.UPb,this);n.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.Z(this,this.yq);this.Qa(this.yq,!0);this.yq.listen("click", this.B7s,this);n.createClientVe(this.yq.element,this.yq,28660);g.Z(this,this.YR);this.Qa(this.YR,!0);this.YR.listen("click",this.T7s,this);n.createClientVe(this.YR.element,this.YR,28658);g.Z(this,this.Bg);this.Qa(this.Bg,!0);this.Bg.listen("click",this.Eib,this);g.Z(this,this.Qd);this.Qa(this.Qd,!0);this.Qd.listen("click",this.gyk,this);g.Z(this,this.showVideoInfo);this.Qa(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.sIg,this);g.Z(this,this.O$);this.O$.listen("click",this.oit,this); g.Z(this,this.XW);Ljk()&&(this.BJ=new g.w({j:"textarea",Y:"ytp-html5-clipboard",K:{readonly:"",tabindex:"-1"}}),g.Z(this,this.BJ),this.BJ.dJ(this.element));var c;(c=this.cR)==null||c.setIcon(HLJ());var Y;(Y=this.hI)==null||Y.setIcon(l1s());var G;(G=this.wA)==null||G.setIcon(Xx());this.Bg.setIcon({j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{"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.Qd.setIcon(yJC());this.showVideoInfo.setIcon(sEd());this.V(n,"onLoopChange",this.onLoopChange);this.V(n,"videodatachange",this.onVideoDataChange);this.V(n,"fullscreentoggled",function(){Pbk(t)}); vP1(this);TnR(this,this.G.getVideoData())}; Gb=function(n,q){var M=!1;if(n.BJ){var t=n.BJ.element;t.value=q;t.select();try{M=document.execCommand("copy")}catch(c){}}M?n.xi.lG():(n.O$.kQ(q,"text"),g.vp(n.xi,n.XW),U3(n.O$.element),n.BJ&&(n.BJ=null,vP1(n)));return M}; Ljk=function(){var n=document.queryCommandSupported&&document.queryCommandSupported("copy");VkJ("Chromium")>=43&&(n=!0);VkJ("Firefox")<=40&&(n=!1);return n}; Pbk=function(n){var q;(q=n.wA)==null||q.VS(!n.G.isFullscreen()&&n.G.getPresentingPlayerType()!==2&&n.G.T().showMiniplayerButton)}; TnR=function(n,q){var M=n.G.T(),t=n.G.getPresentingPlayerType()===2,c=!t||q.isListed;c=!M.RL&&!!q.videoId&&c;M.playerStyle!=="play"?M="https://support.google.com/youtube/?p=report_playback":(M={contact_type:"playbackissue",html5:1,ei:q.eventId,v:q.videoId,p:"movies_playback"},q.W&&(M.fmt=q.W.itag),q.clientPlaybackNonce&&(M.cpn=q.clientPlaybackNonce),q.partnerId&&(M.partnerid=q.partnerId),M=g.hC("//support.google.com/googleplay/",M));n.YR.VS(c&&q.allowEmbed);n.getVideoUrl.VS(c);n.yq.VS(c&&!q.isLivePlayback); n.Qd.kQ(M,"href");var Y;(Y=n.hI)==null||Y.VS(!q.isLivePlayback&&!t);Pbk(n);var G;(G=n.cR)==null||G.VS(!t)}; vP1=function(n){var q=!!n.BJ;g.NW(n.Bg,q?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");Y5(n.Bg,!q);g.NW(n.YR,q?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");Y5(n.YR,!q);g.NW(n.getVideoUrl,q?"Copiar URL del video":"Obtener la URL del video");Y5(n.getVideoUrl,!q);g.NW(n.yq,q?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");Y5(n.yq,!q);n.YR.setIcon(q?Ejd():null);n.getVideoUrl.setIcon(q? ha():null);n.yq.setIcon(q?ha():null)}; Udj=function(n){return g.t8(n.G.T())?n.cR:n.hI}; Bns=function(n,q){g.Pp.call(this,n);this.mq=q;this.Z=new g.f8(this);this.U=new g.zw(this.cgy,1E3,this);this.xl=this.Ln=null;g.Z(this,this.Z);g.Z(this,this.U);q=this.G.T();n.createClientVe(this.element,this,28656);g.MN(this.element,"ytp-contextmenu");this.G.T().experiments.Hb("delhi_modern_web_player")&&g.fl(q)&&g.MN(this.element,"ytp-delhi-modern-contextmenu");u8U(this);this.hide()}; u8U=function(n){g.fL(n.Z);var q=n.G.T();q.playerStyle==="gvn"||q.W||q.AE||(q=n.G.Lm(),n.Z.V(q,"contextmenu",n.DPk),n.Z.V(q,"touchstart",n.onTouchStart,null,!0),n.Z.V(q,"touchmove",n.q0,null,!0),n.Z.V(q,"touchend",n.q0,null,!0))}; DdC=function(n){n.G.isFullscreen()?g.qW(n.G,n.element,10):n.dJ(kz(n).body)}; KV=function(n,q,M){M=M===void 0?240:M;g.w.call(this,{j:"button",aL:["ytp-button","ytp-copylink-button"],K:{title:n.D("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.t8(n.T()))},L:[{j:"div",Y:"ytp-copylink-icon",Wb:"{{icon}}"},{j:"div",Y:"ytp-copylink-title",Wb:"Copiar v\u00ednculo",K:{"aria-hidden":"true"}}]});this.api=n;this.X=q;this.W=M;this.visible=!1;this.tooltip=this.X.eG();q=n.T();this.tooltip.element.setAttribute("aria-live", "polite");g.Yi(this.element,"ytp-show-copylink-title",g.t8(q));n.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.V(n,"videodatachange",this.Cm);this.V(n,"videoplayerreset",this.Cm);this.V(n,"appresize",this.Cm);this.Cm();this.addOnDisposeCallback(g.om(this.tooltip,this.element))}; AMf=function(n){var q=n.api.T(),M=n.api.getVideoData(),t=n.api.Lm().getPlayerSize().width;q=q.Z;return!!M.videoId&&t>=n.W&&M.WO&&!M.wZ&&!n.api.isEmbedsShortsMode()&&!q}; mdJ=function(n){n.updateValue("icon",NB());if(n.api.T().W)n.tooltip.rk(n.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{n.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");n.updateValue("tooltip-title","Se copi\u00f3 el v\u00ednculo en el portapapeles");n.tooltip.Ic();n.tooltip.rk(n.element);var q=n.listen("mouseleave",function(){n.AQ(q);n.Cm();n.tooltip.zn()})}}; $ds=function(n,q){return g.u(function(M){if(M.X==1)return g.Ij(M,2),g.U(M,navigator.clipboard.writeText(q),4);if(M.X!=2)return M.return(!0);g.TU(M);var t=M.return,c=!1,Y=g.eO("TEXTAREA");Y.value=q;Y.setAttribute("readonly","");var G=n.api.getRootNode();G.appendChild(Y);if(Ra){var k=window.getSelection();k.removeAllRanges();var b=document.createRange();b.selectNodeContents(Y);k.addRange(b);Y.setSelectionRange(0,q.length)}else Y.select();try{c=document.execCommand("copy")}catch(d){}G.removeChild(Y); return t.call(M,c)})}; Fj1=function(n){g.w.call(this,{j:"div",Y:"ytp-doubletap-ui-legacy",L:[{j:"div",Y:"ytp-doubletap-fast-forward-ve"},{j:"div",Y:"ytp-doubletap-rewind-ve"},{j:"div",Y:"ytp-doubletap-static-circle",L:[{j:"div",Y:"ytp-doubletap-ripple"}]},{j:"div",Y:"ytp-doubletap-overlay-a11y"},{j:"div",Y:"ytp-doubletap-seek-info-container",L:[{j:"div",Y:"ytp-doubletap-arrows-container",L:[{j:"span",Y:"ytp-doubletap-base-arrow"},{j:"span",Y:"ytp-doubletap-base-arrow"},{j:"span",Y:"ytp-doubletap-base-arrow"}]},{j:"div", Y:"ytp-doubletap-tooltip",L:[{j:"div",Y:"ytp-seek-icon-text-container",L:[{j:"div",Y:"ytp-seek-icon",Wb:"{{seekIcon}}"},{j:"div",Y:"ytp-chapter-seek-text-legacy",Wb:"{{seekText}}"}]},{j:"div",Y:"ytp-doubletap-tooltip-label",Wb:"{{seekTime}}"}]}]}]});this.G=n;this.J=new g.zw(this.show,10,this);this.W=new g.zw(this.hide,700,this);this.C=this.Z=0;this.xl=this.S=!1;this.X=this.JE("ytp-doubletap-static-circle");g.Z(this,this.J);g.Z(this,this.W);this.hide();this.N=this.JE("ytp-doubletap-fast-forward-ve"); this.U=this.JE("ytp-doubletap-rewind-ve");this.G.createClientVe(this.N,this,28240);this.G.createClientVe(this.U,this,28239);this.G.logVisibility(this.N,!0);this.G.logVisibility(this.U,!0);this.S=n.D("web_show_cumulative_seek_time");this.xl=n.D("web_center_static_circles")}; ZkU=function(n,q){q=g.Yo("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:q.toString()});n.updateValue("seekTime",q)}; aVu=function(n){Iw.call(this,n,!1,!0);this.jX=[];this.O9=[];this.element.setAttribute("data-overlay-order","9");this.N=!0;this.badge.element.classList.add("ytp-featured-product");this.IL=new g.w({j:"div",Y:"ytp-featured-product-open-in-new"});g.Z(this,this.IL);this.countdownTimer=new g.w({j:"text",Y:"ytp-featured-product-countdown",Wb:"{{content}}"});this.countdownTimer.hide();g.Z(this,this.countdownTimer);this.W=new g.w({j:"div",Y:"ytp-featured-product-trending",L:[{j:"div",Y:"ytp-featured-product-trending-icon"}, {j:"text",Y:"ytp-featured-product-trending-text",Wb:"{{trendingOffer}}"}]});this.W.hide();g.Z(this,this.W);this.overflowButton=new g.w({j:"button",aL:["ytp-featured-product-overflow-icon","ytp-button"],K:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Z(this,this.overflowButton);this.C=new g.w({j:"text",Y:"ytp-featured-product-exclusive-countdown",Wb:"{{content}}",K:{id:"exclusiveCountdown","aria-hidden":"true"}});this.C.hide();g.Z(this,this.C);this.S=new g.w({j:"div",Y:"ytp-featured-product-exclusive-container", K:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},L:[{j:"div",Y:"ytp-featured-product-exclusive-badge-container",L:[{j:"div",Y:"ytp-featured-product-exclusive-badge",L:[{j:"text",Y:"ytp-featured-product-exclusive-badge-text",Wb:"{{exclusive}}",K:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.C]});this.S.hide();g.Z(this,this.S);this.banner=new g.w({j:"a",Y:"ytp-featured-product-container",L:[{j:"div",Y:"ytp-featured-product-thumbnail",L:[{j:"img",K:{src:"{{thumbnail}}"}},this.IL]},{j:"div", Y:"ytp-featured-product-details",L:[{j:"text",Y:"ytp-featured-product-title",Wb:"{{title}}"},this.G.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",Y:"ytp-featured-product-price-container",K:{"aria-label":"{{priceA11yText}}"},L:[{j:"text",Y:"ytp-featured-product-price-when-promotion-text-enabled",Wb:"{{price}}",K:{"aria-hidden":"true"}},{j:"text",Y:"ytp-featured-product-promotion-text",Wb:"{{promotionText}}",K:{"aria-hidden":"true"}}]}:{j:"div",K:{"aria-label":"{{priceA11yText}}"}, L:[{j:"text",Y:"ytp-featured-product-price",Wb:"{{price}}",K:{"aria-hidden":"true"}},{j:"text",Y:"ytp-featured-product-sales-original-price",Wb:"{{salesOriginalPrice}}",K:{"aria-hidden":"true"}},{j:"text",Y:"ytp-featured-product-price-drop-reference-price",Wb:"{{priceDropReferencePrice}}",K:{"aria-hidden":"true"}}]},this.G.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",Y:"ytp-featured-product-when-promotion-text-enabled",L:[{j:"text",Y:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", Wb:"{{affiliateDisclaimer}}"},this.W,{j:"text",Y:"ytp-featured-product-vendor-when-promotion-text-enabled",Wb:"{{vendor}}"}]}:{j:"div",L:[{j:"text",Y:"ytp-featured-product-affiliate-disclaimer",Wb:"{{affiliateDisclaimer}}"},this.G.D("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.S:null,this.W,{j:"text",Y:"ytp-featured-product-vendor",Wb:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.Z(this,this.banner);this.banner.dJ(this.Z.element);this.V(this.G,g.CK("featured_product"), this.DvE);this.V(this.G,g.rj("featured_product"),this.Ti);this.V(this.G,"videodatachange",this.onVideoDataChange);this.V(this.overflowButton.element,"click",this.sy);this.V(n,"featuredproductdismissed",this.r6)}; RJj=function(n){var q,M;n=(q=n.X)==null?void 0:(M=q.bannerData)==null?void 0:M.itemData;var t,c,Y;return(n==null||!n.affiliateDisclaimer)&&(n==null?0:(t=n.exclusivesData)==null?0:t.exclusiveOfferLabelText)&&(n==null?0:(c=n.exclusivesData)==null?0:c.expirationTimestampMs)&&(n==null?0:(Y=n.exclusivesData)==null?0:Y.exclusiveOfferCountdownText)?!0:!1}; wuf=function(n){var q,M,t,c,Y=(q=n.X)==null?void 0:(M=q.bannerData)==null?void 0:(t=M.itemData)==null?void 0:(c=t.exclusivesData)==null?void 0:c.expirationTimestampMs;q=(Number(Y)-Date.now())/1E3;if(q>0){if(q<604800){var G,k,b,d;M=(G=n.X)==null?void 0:(k=G.bannerData)==null?void 0:(b=k.itemData)==null?void 0:(d=b.exclusivesData)==null?void 0:d.exclusiveOfferCountdownText;if(M!==void 0)for(G=Date.now(),k=g.S(M),b=k.next();!b.done;b=k.next())if(b=b.value,b!==void 0&&b.text!==void 0&&(d=Number(b.textDisplayStartTimestampMs), !isNaN(d)&&G>=d)){b.insertCountdown?(q=b.text.replace(/\$0/,String(Qz({seconds:q}))),n.C.kQ(q)):n.C.kQ(b.text);n.C.show();break}}var N,O,e,E;n.S.update({exclusive:(N=n.X)==null?void 0:(O=N.bannerData)==null?void 0:(e=O.itemData)==null?void 0:(E=e.exclusivesData)==null?void 0:E.exclusiveOfferLabelText});n.S.show();k5(n);var h;(h=n.Kd)==null||h.start()}else oP1(n)}; oP1=function(n){var q;(q=n.Kd)==null||q.stop();n.C.hide();n.S.hide();bL(n)}; zJU=function(n){var q,M,t=(q=n.X)==null?void 0:(M=q.bannerData)==null?void 0:M.itemData;return n.G.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(t==null||!t.priceReplacementText)&&(t==null?0:t.promotionText)?t==null?void 0:t.promotionText.content:null}; JMs=function(n){var q,M,t=(q=n.X)==null?void 0:(M=q.bannerData)==null?void 0:M.itemData,c,Y;if(!(t!=null&&t.priceReplacementText||n.G.D("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(t==null?0:(c=t.dealsData)==null?0:(Y=c.sales)==null?0:Y.originalPrice)){var G,k;return t==null?void 0:(G=t.dealsData)==null?void 0:(k=G.sales)==null?void 0:k.originalPrice}return null}; VQd=function(n){var q,M,t=(q=n.X)==null?void 0:(M=q.bannerData)==null?void 0:M.itemData,c,Y,G,k;if(!((t==null?0:t.priceReplacementText)||n.G.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(t==null?0:(c=t.dealsData)==null?0:(Y=c.sales)==null?0:Y.originalPrice))&&(t==null?0:(G=t.dealsData)==null?0:(k=G.priceDrop)==null?0:k.referencePrice)){var b,d;return t==null?void 0:(b=t.dealsData)==null?void 0:(d=b.priceDrop)==null?void 0:d.referencePrice}return null}; Cba=function(n){var q,M,t=(q=n.X)==null?void 0:(M=q.bannerData)==null?void 0:M.itemData;if(t==null?0:t.priceReplacementText)return t==null?void 0:t.priceReplacementText;if((t==null?0:t.promotionText)&&n.G.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var c;return(t==null?void 0:t.price)+" "+(t==null?void 0:(c=t.promotionText)==null?void 0:c.content)}var Y,G;if(t==null?0:(Y=t.dealsData)==null?0:(G=Y.sales)==null?0:G.originalPrice){var k,b;return t==null?void 0:(k=t.dealsData)== null?void 0:(b=k.sales)==null?void 0:b.salesPriceAccessibilityLabel}var d,N;if(t==null?0:(d=t.dealsData)==null?0:(N=d.priceDrop)==null?0:N.referencePrice){var O,e;return(t==null?void 0:t.price)+" "+(t==null?void 0:(O=t.dealsData)==null?void 0:(e=O.priceDrop)==null?void 0:e.referencePrice)}return t==null?void 0:t.price}; rMs=function(n){if(n.G.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var q,M,t;return n.W.Zn?null:(q=n.X)==null?void 0:(M=q.bannerData)==null?void 0:(t=M.itemData)==null?void 0:t.vendorName}var c,Y,G,k,b,d;return n.W.Zn||n.S.Zn||((c=n.X)==null?0:(Y=c.bannerData)==null?0:(G=Y.itemData)==null?0:G.affiliateDisclaimer)?null:(k=n.X)==null?void 0:(b=k.bannerData)==null?void 0:(d=b.itemData)==null?void 0:d.vendorName}; QYu=function(n,q){d2(n);if(q){var M=g.vO.getState().entities;M=QN(M,"featuredProductsEntity",q);if(M!=null&&M.productsData){q=[];M=g.S(M.productsData);for(var t=M.next();!t.done;t=M.next()){t=t.value;var c=void 0;if((c=t)!=null&&c.identifier&&t.featuredSegments){n.jX.push(t);var Y=void 0;c=g.S((Y=t)==null?void 0:Y.featuredSegments);for(Y=c.next();!Y.done;Y=c.next()){var G=Y.value;Y=xdm(G.startTimeSec);Y!==void 0&&(G=xdm(G.endTimeSec),q.push(new g.Ji(Y*1E3,G===void 0?0x7ffffffffffff:G*1E3,{id:t.identifier, namespace:"featured_product"})))}}}n.G.y6(q)}}}; bL=function(n){if(n.trendingOfferEntityKey){var q=g.vO.getState().entities;if(q=QN(q,"trendingOfferEntity",n.trendingOfferEntityKey)){var M,t,c;q.encodedSkuId!==((M=n.X)==null?void 0:(t=M.bannerData)==null?void 0:(c=t.itemData)==null?void 0:c.encodedOfferSkuId)?k5(n):(n.W.update({trendingOffer:q.shortLabel+" \u2022 "+q.countLabel}),n.W.show(),n.banner.update({vendor:rMs(n)}))}else k5(n)}else k5(n)}; k5=function(n){n.W.hide();n.banner.update({vendor:rMs(n)})}; d2=function(n){n.jX=[];n.Ti();n.G.sT("featured_product")}; pu1=function(n){var q,M,t,c,Y=(q=n.X)==null?void 0:(M=q.bannerData)==null?void 0:(t=M.itemData)==null?void 0:(c=t.hiddenProductOptions)==null?void 0:c.dropTimestampMs;q=(Number(Y)-Date.now())/1E3;n.countdownTimer.kQ(Qz({seconds:q}));if(q>0){var G;(G=n.Fh)==null||G.start()}}; nAf=function(n){var q;(q=n.Fh)==null||q.stop();n.countdownTimer.hide()}; xdm=function(n){if(n!==void 0&&n.trim()!==""&&(n=Math.trunc(Number(n.trim())),!(isNaN(n)||n<0)))return n}; cwd=function(n,q,M){g.w.call(this,{j:"div",aL:["ytp-info-panel-action-item"],L:[{j:"div",Y:"ytp-info-panel-action-item-disclaimer",Wb:"{{disclaimer}}"},{j:"a",aL:["ytp-info-panel-action-item-button","ytp-button"],K:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},L:[{j:"div",Y:"ytp-info-panel-action-item-icon",Wb:"{{icon}}"},{j:"div",Y:"ytp-info-panel-action-item-label",Wb:"{{label}}"}]}]});this.G=n;this.X=M;this.disclaimer=this.JE("ytp-info-panel-action-item-disclaimer");this.button= this.JE("ytp-info-panel-action-item-button");this.ET=!1;this.G.createServerVe(this.element,this,!0);this.listen("click",this.onClick);n="";M=g.R(q==null?void 0:q.onTap,Ts);var t=g.R(M,g.u8);this.ET=!1;t?(n=t.url||"",n.startsWith("//")&&(n="https:"+n),this.ET=!0,g.di(this.button,g.k6(n))):(t=g.R(M,qfC))&&!this.X?((n=t.phoneNumbers)&&n.length>0?(n="sms:"+n[0],t.messageText&&(n+="?&body="+encodeURI(t.messageText))):n="",this.ET=!0,g.di(this.button,g.k6(n,[Mek]))):(M=g.R(M,i6m))&&!this.X&&(n=M.phoneNumber? "tel:"+M.phoneNumber:"",this.ET=!0,g.di(this.button,g.k6(n,[ted])));var c;if(M=(c=q.disclaimerText)==null?void 0:c.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var Y;this.update({label:(Y=q.bodyText)==null?void 0:Y.content,icon:sm(),disclaimer:M})}else{this.disclaimer.style.display="none";var G;this.update({label:(G=q.bodyText)==null?void 0:G.content,icon:sm()})}this.G.setTrackingParams(this.element,q.trackingParams||null);this.ET&&(this.W={externalLinkData:{url:n}})}; Yf_=function(n,q){var M=i8();g.KI.call(this,n,{j:"div",Y:"ytp-info-panel-detail-skrim",L:[{j:"div",Y:"ytp-info-panel-detail",K:{role:"dialog",id:M},L:[{j:"div",Y:"ytp-info-panel-detail-header",L:[{j:"div",Y:"ytp-info-panel-detail-title",Wb:"{{title}}"},{j:"button",aL:["ytp-info-panel-detail-close","ytp-button"],K:{"aria-label":"Cerrar"},L:[g.ed()]}]},{j:"div",Y:"ytp-info-panel-detail-body",Wb:"{{body}}"},{j:"div",Y:"ytp-info-panel-detail-items"}]}]},250);this.X=q;this.items=this.JE("ytp-info-panel-detail-items"); this.Z=new g.f8(this);this.itemData=[];this.J=M;this.V(this.JE("ytp-info-panel-detail-close"),"click",this.lG);this.V(this.JE("ytp-info-panel-detail-skrim"),"click",this.lG);this.V(this.JE("ytp-info-panel-detail"),"click",function(t){t.stopPropagation()}); g.Z(this,this.Z);this.G.createServerVe(this.element,this,!0);this.V(n,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",n.getVideoData());this.hide()}; GCs=function(n,q){n=g.S(n.itemData);for(var M=n.next();!M.done;M=n.next())M=M.value,M.G.logVisibility(M.element,q)}; b6d=function(n,q){g.w.call(this,{j:"div",Y:"ytp-info-panel-preview",K:{"aria-live":"assertive","aria-atomic":"true","aria-owns":q.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.t8(n.T()))},L:[{j:"div",Y:"ytp-info-panel-preview-text",Wb:"{{text}}"},{j:"div",Y:"ytp-info-panel-preview-chevron",Wb:"{{chevron}}"}]});var M=this;this.G=n;this.TU=this.X=this.videoId=null;this.Z=this.showControls=this.W=!1;this.V(this.element,"click",function(){n.logClick(M.element);n.oF();b6(q)}); this.fade=new g.QX(this,250,!1,100);g.Z(this,this.fade);this.G.createServerVe(this.element,this,!0);this.V(n,"videodatachange",this.onVideoDataChange);this.V(n,"presentingplayerstatechange",this.KX);this.V(this.G,"paidcontentoverlayvisibilitychange",this.bj);this.V(this.G,"infopaneldetailvisibilitychange",this.bj);var t=n.getVideoData()||{};KYf(t)&&kCf(this,t);this.V(n,"onShowControls",this.hx);this.V(n,"onHideControls",this.VX)}; kCf=function(n,q){if(!q.ZU||!n.G.Yw()){var M=q.oS||1E4,t=KYf(q);n.X?q.videoId&&q.videoId!==n.videoId&&(g.CO(n.X),n.videoId=q.videoId,t?(dIf(n,M,q),n.Hn()):(n.lG(),n.X.dispose(),n.X=null)):t&&(q.videoId&&(n.videoId=q.videoId),dIf(n,M,q),n.Hn())}}; KYf=function(n){var q,M,t,c;return!!((q=n.Z6)==null?0:(M=q.title)==null?0:M.content)||!!((t=n.Z6)==null?0:(c=t.bodyText)==null?0:c.content)}; dIf=function(n,q,M){n.X&&n.X.dispose();n.X=new g.zw(n.O91,q,n);g.Z(n,n.X);var t;q=((t=M.Z6)==null?void 0:t.trackingParams)||null;n.G.setTrackingParams(n.element,q);var c;var Y,G;if(M==null?0:(Y=M.Z6)==null?0:(G=Y.title)==null?0:G.content){var k;t=(c=M.Z6)==null?void 0:(k=c.title)==null?void 0:k.content;var b,d;if((b=M.Z6)==null?0:(d=b.bodyText)==null?0:d.content)t+=" \u2022 ";c=t}else c="";var N,O;M=((N=M.Z6)==null?void 0:(O=N.bodyText)==null?void 0:O.content)||"";n.update({text:c+M,chevron:g.gW()})}; NgJ=function(n,q){n.X&&(g.C(q,8)?(n.W=!0,n.Hn(),n.X.start()):(g.C(q,2)||g.C(q,64))&&n.videoId&&(n.videoId=null))}; NF=function(n){var q=null;try{q=n.toLocaleString("es-419",{style:"percent"})}catch(M){q=n.toLocaleString(void 0,{style:"percent"})}return q}; Oi=function(n,q){var M=0;n=g.S(n);for(var t=n.next();!(t.done||t.value.startTime>q);t=n.next())M++;return M===0?M:M-1}; O6f=function(n,q){for(var M=0,t=g.S(n),c=t.next();!c.done;c=t.next()){c=c.value;if(q=c.timeRangeStartMillis&&q2147483647?"0":String(n)}; eE=function(n,q,M){var t=n.api.getCurrentTime(),c=ywC(n,t);n=ywC(n,t+q);return{startMediaTimeMs:c,endMediaTimeMs:n,seekSource:M}}; s6s=function(n){var q,M=(q=n.api.getVideoData())==null?void 0:q.oI();return n.api.getPresentingPlayerType(M)!==2}; g2=function(n,q){n.Z.SZ=q;g.Yi(n.api.getRootNode(),"ytp-probably-keyboard-focus",q);g.Yi(n.contextMenu.element,"ytp-probably-keyboard-focus",q)}; h9=function(n,q,M,t){var c=g.TK(n.api.zk());if(c&&c.loaded){var Y=n.api.getSubtitlesUserSettings();c=void 0;for(var G=0;G0?q[0]:null;var M=g.kZ("ytp-chrome-bottom"),t=g.kZ("ytp-ad-module");n.J=!(M==null||!M.contains(q));n.N=!(t==null||!t.contains(q));n.U=!(q==null||!q.hasAttribute("data-tooltip-target-fixed"));return q}; Tg_=function(n,q,M){if(!n.S){if(q){n.tooltipRenderer=q;q=n.tooltipRenderer.text;var t=!1,c;(q==null?0:(c=q.runs)==null?0:c.length)&&q.runs[0].text&&(n.update({title:q.runs[0].text.toString()}),t=!0);g.iE(n.title,t);q=n.tooltipRenderer.detailsText;c=!1;var Y;if((q==null?0:(Y=q.runs)==null?0:Y.length)&&q.runs[0].text){t=q.runs[0].text.toString();Y=t.indexOf("$TARGET_ICON");if(Y>-1)if(n.tooltipRenderer.targetId){q=[];t=t.split("$TARGET_ICON");var G=new g.ta({j:"span",Y:"ytp-promotooltip-details-icon", L:[Pwf[n.tooltipRenderer.targetId]]});g.Z(n,G);for(var k=[],b=g.S(t),d=b.next();!d.done;d=b.next())d=new g.ta({j:"span",Y:"ytp-promotooltip-details-component",Wb:d.value}),g.Z(n,d),k.push(d);t.length===2?(q.push(k[0].element),q.push(G.element),q.push(k[1].element)):t.length===1&&(Y===0?(q.push(G.element),q.push(k[0].element)):(q.push(k[0].element),q.push(G.element)));Y=q.length?q:null}else Y=null;else Y=t;if(Y){if(typeof Y!=="string")for(g.WT(n.details),c=g.S(Y),Y=c.next();!Y.done;Y=c.next())n.details.appendChild(Y.value); else n.update({details:Y});c=!0}}g.iE(n.details,c);c=n.tooltipRenderer.acceptButton;Y=!1;var N,O,e;((N=g.R(c,g.N_))==null?0:(O=N.text)==null?0:(e=O.runs)==null?0:e.length)&&g.R(c,g.N_).text.runs[0].text&&(n.update({acceptButtonText:g.R(c,g.N_).text.runs[0].text.toString()}),Y=!0);g.iE(n.acceptButton,Y);N=n.tooltipRenderer.dismissButton;O=!1;var E,h,I;((E=g.R(N,g.N_))==null?0:(h=E.text)==null?0:(I=h.runs)==null?0:I.length)&&g.R(N,g.N_).text.runs[0].text&&(n.update({dismissButtonText:g.R(N,g.N_).text.runs[0].text.toString()}), O=!0);g.iE(n.dismissButton,O)}M&&(n.Z=M);n.X=LYs(n);n.C=!1;n.G.T().D("web_player_hide_nitrate_promo_tooltip")||n.VS(!0);vA1(n);n.Zn&&!n.xl&&(n.xl=!0,n.vg.dk(0));n.W&&n.G.logVisibility(n.element,n.Zn)}}; si=function(n){n.VS(!1);n.W&&n.G.logVisibility(n.element,n.Zn)}; lF1=function(n){var q,M,t,c=((q=g.R(n.acceptButton,g.N_))==null?void 0:(M=q.text)==null?void 0:(t=M.runs)==null?void 0:t.length)&&!!g.R(n.acceptButton,g.N_).text.runs[0].text,Y,G,k;q=((Y=g.R(n.dismissButton,g.N_))==null?void 0:(G=Y.text)==null?void 0:(k=G.runs)==null?void 0:k.length)&&!!g.R(n.dismissButton,g.N_).text.runs[0].text;return c||q}; vA1=function(n){var q;if(!(q=!n.X)){q=n.X;var M=window.getComputedStyle(q);q=M.display==="none"||M.visibility==="hidden"||q.getAttribute("aria-hidden")==="true"}if(q||n.G.isMinimized())n.VS(!1);else if(q=g.Mv(n.X),q.width&&q.height){n.G.X2(n.element,n.X);var t=n.G.Lm().getPlayerSize().height;M=g.Mv(n.JE("ytp-promotooltip-container")).height;n.J?n.element.style.top=t-M-q.height-12+"px":n.U||(t=n.G.PR().height-M-q.height-12,n.element.style.top=t+"px");t=n.JE("ytp-promotooltip-pointer");var c=g.nH(n.X, n.G.getRootNode()),Y=Number(n.element.style.left.replace(/[^\d\.]/g,""));n=n.G.isFullscreen()?18:12;t.style.left=c.x-Y+q.width/2-n+"px";t.style.top=M+"px"}else n.VS(!1)}; X3=function(n){g.w.call(this,{j:"button",aL:["ytp-replay-button","ytp-button"],K:{title:n.D("player_tooltip_data_title_killswitch")?"Volver a reproducir":"","data-tooltip-title":"Volver a reproducir"},L:[g.Iz()]});this.G=n;this.V(n,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Va(n.getPlayerStateObject());wZ(this.G,this.element,this)}; jE=function(n,q){q=q===void 0?240:q;g.w.call(this,{j:"button",aL:["ytp-button","ytp-search-button"],K:{title:n.D("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.t8(n.T()))},L:[{j:"div",Y:"ytp-search-icon",Wb:"{{icon}}"},{j:"div",Y:"ytp-search-title",Wb:"Buscar"}]});this.api=n;this.W=q;this.visible=!1;this.updateValue("icon",{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",Y:"ytp-svg-fill",K:{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"}}]}); n.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.X();this.V(n,"appresize",this.X);this.V(n,"videodatachange",this.X);wZ(n,this.element,this)}; SE=function(n){g.w.call(this,{j:"div",Y:"ytp-seek-overlay",L:[{j:"div",aL:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],L:[{j:"div",aL:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{j:"svg",K:{viewBox:"0 0 22 32",width:"22",height:"24"},L:[{j:"path",K:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{j:"div",Y:"ytp-seek-overlay-duration",Wb:"{{durationBack}}"}]},{j:"div",aL:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],L:[{j:"div",Y:"ytp-seek-overlay-duration",Wb:"{{durationForward}}"},{j:"div",aL:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{j:"svg",K:{viewBox:"0 0 22 32",width:"22",height:"24"},L:[{j:"path",K:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{j:"div",Y:"ytp-seek-overlay-message",L:[{j:"div",Y:"ytp-seek-overlay-message-icon",Wb:"{{icon}}"},{j:"div",Y:"ytp-seek-overlay-message-text", Wb:"{{text}}"}]}]});var q=this;this.G=n;this.C=0;this.X="hidden";this.N=this.JE("ytp-seek-overlay-animation-back");this.U=this.JE("ytp-seek-overlay-animation-forward");this.xl=this.JE("ytp-seek-overlay-message");this.S=new g.zw(function(){UId(q)},g.ic(this.G.T().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.Z(this,this.S);this.G.createClientVe(this.U,this,28240);this.G.createClientVe(this.N,this,28239);this.G.logVisibility(this.U,!0);this.G.logVisibility(this.N,!0);this.hide()}; u5a=function(n,q){n.Z=n.J.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:q},{offset:1,opacity:1}],{duration:200,fill:"forwards"});n.Z.addEventListener("finish",function(){n.Z=void 0;n.S.start();n.X="lingering"})}; Bgd=function(n,q,M,t){M=M===void 0?!1:M;t=t===void 0?!1:t;var c=[];c.push({offset:0,transform:"translateX("+(n.W===-1?20:-20)+"px)",opacity:M?"0":"1"});M&&c.push({offset:.5,opacity:"1"});c.push({offset:1,transform:"translateX(0)",opacity:"1"});M=q.animate(c,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});q=q.querySelector("path");c=[];var Y={offset:0,d:n.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};t&&(Y.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");c.push(Y); t&&c.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});n={offset:1,d:n.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};t&&(n.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");c.push(n);q.animate(c,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return M}; DIs=function(n){var q=n.J.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);q.classList.add("ytp-seek-overlay-arrow-additional");q.classList.remove("ytp-seek-overlay-arrow-persistent");n.J.appendChild(q);Bgd(n,q,!0,!0).addEventListener("finish",function(){q.remove()})}; UId=function(n,q,M){M=M===void 0?!0:M;n.Z=n.J.animate([{offset:0,opacity:q===void 0?1:q},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});M&&(n.Z.addEventListener("finish",function(){n.Z=void 0;Awk(n);n.hide()}),n.X="fading-out")}; mIU=function(n){var q=Number(getComputedStyle(n.J).opacity),M;(M=n.Z)==null||M.cancel();n.Z=void 0;return q}; Awk=function(n){n.C=0;n.X="hidden";n.W=void 0;n.J=void 0;n.S.stop();n.Z=void 0}; $Iu=function(n,q,M){n.updateValue("text",q);if(M){a:{switch(M){case "PREMIUM_STANDALONE":q=PJu();break a;case "PREMIUM_STANDALONE_CAIRO":q=vjJ();break a}q=void 0}n.updateValue("icon",q)}q=g.S(n.xl.getAnimations());for(M=q.next();!M.done;M=q.next())M.value.cancel();n.xl.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){n.updateValue("text","");n.updateValue("icon","")})}; IB=function(n,q,M,t){t=t===void 0?240:t;g.w.call(this,{j:"button",aL:["ytp-button","ytp-share-button"],K:{title:n.D("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":M.element.id,"data-tooltip-opaque":String(g.t8(n.T()))},L:[{j:"div",Y:"ytp-share-icon",Wb:"{{icon}}"},{j:"div",Y:"ytp-share-title",Wb:"Compartir"}]});this.api=n;this.X=q;this.W=M;this.Z=t;this.visible=!1;this.tooltip=this.X.eG();n.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.V(n,"videodatachange",this.Cm);this.V(n,"videoplayerreset",this.Cm);this.V(n,"appresize",this.Cm);this.V(n,"presentingplayerstatechange",this.Cm);this.Cm();this.addOnDisposeCallback(g.om(this.tooltip,this.element))}; FYj=function(n){var q=n.api.T(),M=n.api.getVideoData(),t=g.t8(q)&&g.xt(n.api)&&g.C(n.api.getPlayerStateObject(),128);q=q.Z||q.disableSharing&&n.api.getPresentingPlayerType()!==2||!M.showShareButton||M.WO||t||M.wZ||!1;t=n.api.Lm().getPlayerSize().width;return!!M.videoId&&t>=n.Z&&!q}; Z61=function(n,q){q.name!=="InvalidStateError"&&q.name!=="AbortError"&&(q.name==="NotAllowedError"?(n.X.oF(),b6(n.W,n.element,!1)):g.Ly(q))}; ROs=function(n,q){var M=i8(),t=n.T();M={j:"div",Y:"ytp-share-panel",K:{id:i8(),role:"dialog","aria-labelledby":M},L:[{j:"div",Y:"ytp-share-panel-inner-content",L:[{j:"div",Y:"ytp-share-panel-title",K:{id:M},Wb:"Compartir"},{j:"a",aL:["ytp-share-panel-link","ytp-no-contextmenu"],K:{href:"{{link}}",target:t.U,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},Wb:"{{linkText}}"},{j:"label",Y:"ytp-share-panel-include-playlist",L:[{j:"input",Y:"ytp-share-panel-include-playlist-checkbox", K:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{j:"div",Y:"ytp-share-panel-loading-spinner",L:[l6()]},{j:"div",Y:"ytp-share-panel-service-buttons",Wb:"{{buttons}}"},{j:"div",Y:"ytp-share-panel-error",Wb:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{j:"button",aL:["ytp-share-panel-close","ytp-button"],K:{title:"Cerrar"},L:[g.ed()]}]};g.KI.call(this,n,M,250);var c=this;this.moreButton=null;this.api=n;this.tooltip=q.eG();this.Z=[];this.S= this.JE("ytp-share-panel-inner-content");this.closeButton=this.JE("ytp-share-panel-close");this.V(this.closeButton,"click",this.lG);this.addOnDisposeCallback(g.om(this.tooltip,this.closeButton));this.J=this.JE("ytp-share-panel-include-playlist-checkbox");this.V(this.J,"click",this.Cm);this.X=this.JE("ytp-share-panel-link");this.addOnDisposeCallback(g.om(this.tooltip,this.X));this.api.createClientVe(this.X,this,164503);this.V(this.X,"click",function(Y){Y.preventDefault();c.api.logClick(c.X);var G= c.api.getVideoUrl(!0,!0,!1,!1);G=aFU(c,G);g.v8(G,c.api,Y)&&c.api.Km("SHARE_CLICKED")}); this.listen("click",this.Ey);this.V(n,"videoplayerreset",this.hide);this.V(n,"fullscreentoggled",this.onFullscreenToggled);this.V(n,"onLoopRangeChange",this.mmX);this.hide()}; zOJ=function(n,q){oAa(n);for(var M=q.links||q.shareTargets,t=0,c={},Y=0;Y0&&!x&&!m?(B.length===2&&(B=["noreferrer"]),g.Ep(E,I,e,B[0]),E=xO_()):(L=v.join(","),mS()&&E.navigator&&E.navigator.standalone&&e&&e!="_self"?(L=g.eO("A"),g.di(L,I),L.target=e,T&&(L.rel="noreferrer"),((h=h.attributionsrc)||h==="")&&L.setAttribute("attributionsrc",h),h=document.createEvent("MouseEvent"), h.initMouseEvent("click",!0,!0,E,1),L.dispatchEvent(h),E=xO_()):T?(E=g.Ep(E,"",e,L),h=g.Y6(I),E&&(E.opener=null,h===""&&(h="javascript:''"),h='',h=gi(h),(I=E.document)&&I.write&&(I.write(e5(h)),I.close()))):((E=g.Ep(E,I,e,L))&&h.noopener&&(E.opener=null),E&&h.noreferrer&&(E.opener=null)));E&&(E.opener||(E.opener=window),E.focus());O.preventDefault()}}}(c)); c.Uw.addOnDisposeCallback(g.om(n.tooltip,c.Uw.element));k==="Facebook"?n.api.createClientVe(c.Uw.element,c.Uw,164504):k==="Twitter"&&n.api.createClientVe(c.Uw.element,c.Uw,164505);n.V(c.Uw.element,"click",function(N){return function(){n.api.logClick(N.Uw.element)}}(c)); n.api.logVisibility(c.Uw.element,!0);n.Z.push(c.Uw);t++}}var b=q.more||q.moreLink,d=new g.w({j:"a",aL:["ytp-share-panel-service-button","ytp-button"],L:[{j:"span",Y:"ytp-share-panel-service-button-more",L:[{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{j:"rect",K:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{j:"path",K:{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"}}]}]}],K:{href:b,target:"_blank",title:"M\u00e1s"}});d.listen("click",function(N){var O=b;n.api.logClick(n.moreButton.element);O=aFU(n,O);g.v8(O,n.api,N)&&n.api.Km("SHARE_CLICKED")}); d.addOnDisposeCallback(g.om(n.tooltip,d.element));n.api.createClientVe(d.element,d,164506);n.V(d.element,"click",function(){n.api.logClick(d.element)}); n.api.logVisibility(d.element,!0);n.Z.push(d);n.moreButton=d;n.updateValue("buttons",n.Z)}; aFU=function(n,q){var M={};g.t8(n.api.T())&&(g.U9(n.api,"addEmbedsConversionTrackingParams",[M]),q=g.hC(q,M));return q}; oAa=function(n){for(var q=g.S(n.Z),M=q.next();!M.done;M=q.next())M=M.value,M.detach(),g.iz(M);n.Z=[]}; fV=function(n){return n===void 0||n.startSec===void 0||n.endSec===void 0?!1:!0}; JwR=function(n,q){n.startSec+=q;n.endSec+=q}; Cwk=function(n){Iw.call(this,n);this.W=this.X=this.isContentForward=this.C=!1;this.element.setAttribute("data-overlay-order","8");VeJ(this);this.V(this.G,"changeProductsInVideoVisibility",this.bnl);this.V(this.G,"videodatachange",this.onVideoDataChange)}; rwj=function(n){n.S&&n.nm.element.removeChild(n.S.element);n.S=void 0}; Q6C=function(n,q){return q.map(function(M){var t,c;if((M=(t=g.R(M,xId))==null?void 0:(c=t.thumbnail)==null?void 0:c.thumbnails)&&M.length!==0)return M[0].url}).filter(function(M){return M!==void 0}).map(function(M){M=new g.w({j:"img", Y:"ytp-suggested-action-product-thumbnail",K:{alt:"",src:M}});g.Z(n,M);return M})}; pzm=function(n,q){n.isContentForward=q;g.Yi(n.badge.element,"ytp-suggested-action-badge-content-forward",q)}; HB=function(n){var q=n.isContentForward&&!n.hh();g.Yi(n.badge.element,"ytp-suggested-action-badge-preview-collapsed",q&&n.X);g.Yi(n.badge.element,"ytp-suggested-action-badge-preview-expanded",q&&n.W)}; LV=function(n,q,M){return new g.Ji(n*1E3,q*1E3,{priority:9,namespace:M})}; nL_=function(n){n.G.sT("shopping_overlay_visible");n.G.sT("shopping_overlay_preview_collapsed");n.G.sT("shopping_overlay_preview_expanded");n.G.sT("shopping_overlay_expanded")}; VeJ=function(n){n.V(n.G,g.CK("shopping_overlay_visible"),function(){n.Lu(!0)}); n.V(n.G,g.rj("shopping_overlay_visible"),function(){n.Lu(!1)}); n.V(n.G,g.CK("shopping_overlay_expanded"),function(){n.RL=!0;SJ(n)}); n.V(n.G,g.rj("shopping_overlay_expanded"),function(){n.RL=!1;SJ(n)}); n.V(n.G,g.CK("shopping_overlay_preview_collapsed"),function(){n.X=!0;HB(n)}); n.V(n.G,g.rj("shopping_overlay_preview_collapsed"),function(){n.X=!1;HB(n)}); n.V(n.G,g.CK("shopping_overlay_preview_expanded"),function(){n.W=!0;HB(n)}); n.V(n.G,g.rj("shopping_overlay_preview_expanded"),function(){n.W=!1;HB(n)})}; iFk=function(n){g.w.call(this,{j:"div",Y:"ytp-shorts-title-channel",L:[{j:"a",Y:"ytp-shorts-title-channel-logo",K:{href:"{{channelLink}}",target:n.T().U,"aria-label":"{{channelLogoLabel}}"}},{j:"div",Y:"ytp-shorts-title-expanded-heading",L:[{j:"div",Y:"ytp-shorts-title-expanded-title",L:[{j:"a",Wb:"{{expandedTitle}}",K:{href:"{{channelTitleLink}}",target:n.T().U,tabIndex:"0"}}]}]}]});var q=this;this.api=n;this.X=this.JE("ytp-shorts-title-channel-logo");this.channelName=this.JE("ytp-shorts-title-expanded-title"); this.subscribeButton=null;n.createClientVe(this.X,this,36925);this.V(this.X,"click",function(M){q.api.logClick(q.X);g.Ep(window,qWk(q));M.preventDefault()}); n.createClientVe(this.channelName,this,37220);this.V(this.channelName,"click",function(M){q.api.logClick(q.channelName);g.Ep(window,qWk(q));M.preventDefault()}); MHd(this);this.V(n,"videodatachange",this.Cm);this.V(n,"videoplayerreset",this.Cm);this.Cm()}; MHd=function(n){if(!n.api.T().Yi){var q=n.api.getVideoData(),M=new g.t9("Suscribirse",null,"Suscrito/a",null,!0,!1,q.xp,q.subscribed,"channel_avatar",null,n.api,!0);n.api.createServerVe(M.element,n);var t;n.api.setTrackingParams(M.element,((t=q.subscribeButtonRenderer)==null?void 0:t.trackingParams)||null);n.V(M.element,"click",function(){n.api.logClick(M.element)}); n.subscribeButton=M;g.Z(n,n.subscribeButton);n.subscribeButton.dJ(n.element)}}; qWk=function(n){var q=n.api.T(),M=n.api.getVideoData();M=g.u4(q)+M.QS;if(!g.t8(q))return M;q={};g.U9(n.api,"addEmbedsConversionTrackingParams",[q]);return g.hC(M,q)}; PB=function(n){g.KI.call(this,n,{j:"button",aL:["ytp-skip-intro-button","ytp-popup","ytp-button"],L:[{j:"div",Y:"ytp-skip-intro-button-text",Wb:"Omitir introducci\u00f3n"}]},100);var q=this;this.Z=!1;this.X=new g.zw(function(){q.hide()},5E3); this.SR=this.u$=NaN;g.Z(this,this.X);this.U=function(){q.show()}; this.S=function(){q.hide()}; this.J=function(){var M=q.G.getCurrentTime();M>q.u$/1E3&&M0?{j:"svg",K:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",aL:["ytp-circle-arrow","ytp-svg-fill"],K:{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"}}, {j:"text",aL:["ytp-jump-button-text","ytp-svg-fill"],K:{x:"7.05",y:"15.05"}}]}:{j:"svg",K:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",aL:["ytp-circle-arrow","ytp-svg-fill"],K:{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"}}, {j:"text",aL:["ytp-jump-button-text","ytp-svg-fill"],K:{x:"6.5",y:"15"}}]}]});var M=this;this.G=n;this.X=q;this.W=new g.zw(function(){M.Z?(M.Z=!1,M.W.start()):M.element.classList.remove("ytp-jump-spin","backwards")},250); this.Z=!1;(q=q>0)?this.G.createClientVe(this.element,this,36843):this.G.createClientVe(this.element,this,36844);var t=g.Yo(q?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.X).toString()});this.G.D("player_tooltip_data_title_killswitch")?this.update({title:t,"data-title-no-tooltip":t,"aria-keyshortcuts":q?"\u2192":"\u2190"}):this.update({"tooltip-title":t,"data-title-no-tooltip":t,"aria-keyshortcuts":q?"\u2192":"\u2190"});this.J=this.element.querySelector(".ytp-jump-button-text"); this.J.textContent=Math.abs(this.X).toString();this.listen("click",this.onClick,this);wZ(n,this.element,this)}; d6d=function(n,q){q?n.element.classList.add("ytp-jump-button-enabled"):n.element.classList.remove("ytp-jump-button-enabled");n.G.logVisibility(n.element,q);n.G.Ic()}; DW=function(n,q){Tb.call(this,n,q,"timedMarkerCueRange","Ver momentos clave");this.V(n,g.rj("timedMarkerCueRange"),this.Oq);this.V(n,"updatemarkervisibility",this.updateVideoData)}; NPs=function(n){var q,M=(q=n.G.getVideoData())==null?void 0:q.Yl;if(M)for(n=n.J.V1,M=g.S(M),q=M.next();!q.done;q=M.next())if(q=n[q.value]){var t=void 0,c=void 0,Y=void 0;if(((t=q.onTap)==null?void 0:(c=t.innertubeCommand)==null?void 0:(Y=c.changeEngagementPanelVisibilityAction)==null?void 0:Y.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return q}}; A9=function(n){var q=n.D("web_enable_pip_on_miniplayer");g.w.call(this,{j:"button",aL:["ytp-miniplayer-button","ytp-button"],K:{title:n.D("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"},L:["{{icon}}"]});this.G=n;this.visible=!1;this.listen("click",this.onClick);this.V(n,"fullscreentoggled",this.Cm);this.G.D("player_tooltip_data_title_killswitch")? this.update({title:g.z1(n,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:OFj(this,q)}):this.update({"tooltip-title":g.z1(n,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:OFj(this,q)});wZ(n,this.element,this);n.createClientVe(this.element,this,62946);this.Cm()}; OFj=function(n,q){return n.G.D("delhi_modern_web_player_icons")?{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:q?{j:"svg",K:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},L:[{j:"g",K:{transform:"translate(96, -96) scale(0.8)"},L:[{j:"path",ZH:!0,K:{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"}}]}]}:Xx()}; mh=function(n,q,M,t,c,Y){Y=Y===void 0?!1:Y;var G={j:"div",aL:["ytp-input-slider-section"],L:[{j:"input",Y:"ytp-input-slider",K:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};c&&G.L.unshift(c);Y&&G.aL.push("ytp-vertical-slider");g.w.call(this,G);this.J=n;this.S=q;this.N=M;this.initialValue=t;this.header=c;this.W=this.JE("ytp-input-slider");this.X=t?t:n;this.init();this.V(this.W,"input",this.Z);this.V(this.W,"keydown", this.C)}; $5=function(n,q){n.X=q;n.updateValue("slidervalue",n.X);n.W.valueAsNumber=n.X;gLd(n,q)}; gLd=function(n,q){n.W.style.setProperty("--yt-slider-shape-gradient-percent",(q-n.J)/(n.S-n.J)*100+"%")}; F3=function(n){var q=n.isMuted()?0:n.getVolume();mh.call(this,0,100,1,q,void 0,!0);this.G=n;this.xl=A2(this.wJ,10,this);this.U=!1;this.V(n,"onVolumeChange",this.onVolumeChange);this.V(this.element,"wheel",this.RL)}; ezJ=function(n,q){g.w.call(this,{j:"div",K:{tabindex:"0",title:n.D("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},aL:["ytp-volume-popover"]});var M=this;this.isVisible=!1;this.tooltip=q.eG();this.W=new F3(n);g.Z(this,this.W);this.W.dJ(this.element);this.X=new g.zw(function(){ZW(M,!1)},300); this.listen("mouseenter",function(){M.X.stop()}); this.listen("mouseleave",function(){M.X.start()}); this.listen("focus",function(){M.X.stop()}); this.V(this.W.W,"focus",function(){M.X.stop()}); this.listen("focusout",function(){M.X.start();M.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.om(q.eG(),this.element));g.Z(this,this.X)}; ZW=function(n,q){n.element.classList.toggle("ytp-volume-popover-hovering",q);n.isVisible=q;(n=n.element.closest(".ytp-chrome-bottom"))&&n.classList.toggle("ytp-volume-popover-showing",q)}; aB=function(n,q,M){M=M===void 0?!1:M;var t=n.T().nm?{"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:n.D("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};t=n.D("delhi_modern_web_player")?{j:"div",Y:"ytp-mute-button",L:[{j:"button",K:t,aL:["ytp-volume-icon", "ytp-button"],Wb:"{{icon}}"}]}:{j:"button",aL:["ytp-mute-button","ytp-button"],K:t,L:[{j:"div",Y:"ytp-volume-icon",Wb:"{{icon}}"}]};g.w.call(this,t);this.G=n;this.SX=M;this.W=null;this.C=this.wJ=this.U=this.N=NaN;this.IL=this.xl=null;this.S=[];this.J=[];this.visible=!1;this.Z=this.X=this.RL=null;n.D("delhi_modern_web_player")&&this.update({"data-priority":4});M=this.G.T();this.updateValue("icon",L$());this.tooltip=q.eG();this.updateValue("dataTooltipOffsetY",0);this.Z=g.kZ("ytp-volume-icon",this.element); t=this.G.D("delhi_modern_web_player_icons")?{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",aL:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],K:{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"}},{j:"path",Y:"ytp-svg-volume-animation-small-ripple",K:{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"}},{j:"path",Y:"ytp-svg-volume-animation-big-ripple",K:{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"}}]}:{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"defs",L:[{j:"clipPath",K:{id:"ytp-svg-volume-animation-mask"},L:[{j:"path",K:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{j:"path",K:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{j:"path",Y:"ytp-svg-volume-animation-mover",K:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{j:"clipPath",K:{id:"ytp-svg-volume-animation-slash-mask"},L:[{j:"path",Y:"ytp-svg-volume-animation-mover", K:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{j:"path",ZH:!0,aL:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],K:{"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"}},{j:"path",ZH:!0,aL:["ytp-svg-fill","ytp-svg-volume-animation-hider"],K:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.W=new g.ta(t);g.Z(this,this.W);this.xl=this.W.JE("ytp-svg-volume-animation-speaker");this.IL=this.xl.getAttribute("d");this.S=g.GV("ytp-svg-volume-animation-mover",this.W.element);this.G.D("delhi_modern_web_player_icons");this.J=g.GV("ytp-svg-volume-animation-hider",this.W.element);this.G.D("delhi_modern_web_player_icons");this.nm=new Qu;g.Z(this,this.nm);this.jX=new Qu;g.Z(this,this.jX);this.V(n,"appresize",this.f5);this.V(n,"onVolumeChange",this.onVolumeChange);n.D("delhi_modern_web_player")? this.listen("click",this.xVE):this.listen("click",this.XC);M.nm?(n.D("delhi_modern_web_player")&&!n.D("delhi_modern_web_player_horizontal_volume_controls")&&(this.X=new ezJ(n,q),this.X.dJ(this.element),g.Z(this,this.X),this.V(this.Z,"mouseover",this.rV),this.V(this.Z,"focus",this.rV),this.V(this.Z,"mouseout",this.wW),this.V(this.Z,"blur",this.wW)),M=n.D("delhi_modern_web_player")?this.Z:this.element,this.addOnDisposeCallback(g.om(q.eG(),M))):ELm(this);this.message=null;n.createClientVe(this.element, this,28662);this.f5(n.Lm().getPlayerSize());this.setVolume(n.getVolume(),n.isMuted())}; hz1=function(n,q){if(n.G.T().nm){var M=g.z1(n.G,"Silenciar","m"),t=g.z1(n.G,"Activar sonido","m");M=q?t:M;n.G.T().D("player_tooltip_data_title_killswitch")?n.updateValue("title",M):n.update({"tooltip-title":M,"aria-label":M});n.update({"data-title-no-tooltip":q?"Activar sonido":"Silenciar"});n.tooltip.Ic()}}; sUC=function(n,q){n.N=q;var M=n.IL;n.G.D("delhi_modern_web_player_icons")?n.W.JE("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(q+") translate(-22,-12)")):q&&(M+=jAC(Wws,ye_,q));n.xl.setAttribute("d",M)}; Xqs=function(n,q){var M;q===1?M=n.G.D("delhi_modern_web_player_icons")?{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:L$():M=n.W;n.wJ=q;if(n.G.D("delhi_modern_web_player_icons"))n.W.JE("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-q+") translate(-18,-12)")),n.W.JE("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(n.N-q+") translate(-22, -12)"));else{for(var t=20*q,c=0;c=3&&n.G.getPresentingPlayerType()!==2}; Lwd=function(n){var q=rZ(n.G.zk());return q?n.X?q.tI():q.Ra():!1}; IUJ=function(n){var q={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},M=n.playlist!=null&&n.playlist.tI();M=g.xt(n.G)&&(!n.X||M);var t=n.X&&g.MW(n.G),c=Lwd(n),Y=n.X&&n.G.getPresentingPlayerType()===5,G=g.z1(n.G,"Siguiente","SHIFT+n"),k=g.z1(n.G,"Anterior","SHIFT+p");if(Y)q.title="Iniciar video",q["tooltip-title"]="Iniciar video";else if(n.Z)q.title="Volver a reproducir",q["tooltip-title"]="Volver a reproducir";else if(M){var b= null;n.playlist&&(b=g.Xg(n.playlist,n.X?gNd(n.playlist):eGf(n.playlist)));if(b){if(b.videoId){var d=n.playlist.listId;q.url=n.G.T().getVideoUrl(b.videoId,d?d.toString():void 0)}q.text=b.title;q.duration=b.lengthText?b.lengthText:b.lengthSeconds?g.XB(b.lengthSeconds):null;q.preview=b.b7("mqdefault.jpg")}n.X?(q.title=G,q["tooltip-title"]=G,q["data-title-no-tooltip"]="Siguiente",q["aria-keyshortcuts"]="SHIFT+n"):(q.title=k,q["tooltip-title"]=k,q["data-title-no-tooltip"]="Anterior",q["aria-keyshortcuts"]= "SHIFT+p")}else if(t){if(k=(b=n.videoData)==null?void 0:g.Lt(b))q.url=k.o9(),q.text=k.title,q.duration=k.lengthText?k.lengthText:k.lengthSeconds?g.XB(k.lengthSeconds):null,q.preview=k.b7("mqdefault.jpg");q.title=G;q["tooltip-title"]=G;q["data-title-no-tooltip"]="Siguiente";q["aria-keyshortcuts"]="SHIFT+n"}q.disabled=!t&&!M&&!c&&!Y;n.update(q);n.C=!!q.url;t||M||n.Z||c||Y?n.W||(n.W=g.om(n.tooltip,n.element),n.S=n.listen("click",n.onClick,n)):n.W&&(n.W(),n.W=null,n.AQ(n.S),n.S=null);n.tooltip.Ic();g.Yi(n.element, "ytp-playlist-ui",n.X&&(M||n.G.D("web_hide_next_button")))}; SWm=function(n,q){return n?q?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:W4():q?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:TFd()}; vLC=function(n,q){g.w.call(this,{j:"div",Y:"ytp-fine-scrubbing",L:[{j:"div",Y:"ytp-fine-scrubbing-draggable",L:[{j:"div",Y:"ytp-fine-scrubbing-thumbnails",K:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic en el panel o despl\u00e1zate por \u00e9l para usar la b\u00fasqueda precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{j:"div",K:{"aria-hidden":"true"},Y:"ytp-fine-scrubbing-cursor"},{j:"div", Y:"ytp-fine-scrubbing-seek-time",K:{"aria-hidden":"true"},Wb:"{{seekTime}}"},{j:"div",Y:"ytp-fine-scrubbing-play",L:[n.D("delhi_modern_web_player_icons")?Sd():jd()],K:{title:"Reproducir desde este momento",role:"button"}},{j:"div",Y:"ytp-fine-scrubbing-dismiss",L:[g.ed()],K:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var M=this;this.api=n;this.S=this.JE("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.JE("ytp-fine-scrubbing-dismiss");this.wJ=this.JE("ytp-fine-scrubbing-draggable"); this.playButton=this.JE("ytp-fine-scrubbing-play");this.thumbnails=[];this.W=[];this.SX=this.X=0;this.nm=void 0;this.xl=NaN;this.rJ=this.U=this.Z=this.N=0;this.J=[];this.interval=this.frameCount=0;this.C=160;this.scale=1;this.AE=0;this.isEnabled=this.IL=!1;Peu(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.om(q,this.dismissButton));this.addOnDisposeCallback(g.om(q,this.playButton));this.jX=new g.FS(this.wJ,!0);this.jX.subscribe("dragstart",this.JH,this);this.jX.subscribe("dragmove",this.wy, this);this.jX.subscribe("dragend",this.Uy,this);this.V(n,"SEEK_COMPLETE",this.bk);n.D("web_fix_fine_scrubbing_false_play")&&this.V(n,"rootnodemousedown",function(t){M.RL=t}); this.S.addEventListener("keydown",function(){}); g.Z(this,this.jX);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.S,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; Peu=function(n,q){var M=g.XB(q),t=g.Yo("Saltar a: $PROGRESS",{PROGRESS:g.XB(q,!0)});n.update({ariamin:0,ariamax:Math.floor(n.api.getDuration()),arianow:Math.floor(q),arianowtext:t,seekTime:M})}; TPk=function(n){n.xl=NaN;n.U=0;n.N=n.Z}; ufu=function(n){var q=n.api.p_();if(q){var M=90*n.scale,t=NS(q,160*n.scale);if(q=q.levels[t]){n.C=q.width;if(!n.J.length){t=[];for(var c=Oh(q,q.wq()),Y=q.columns*q.rows,G=q.frameCount,k=0;k<=c;k++)for(var b=Gn.J.length;)t= void 0,(t=n.thumbnails.pop())==null||t.dispose();for(;n.thumbnails.lengthM.length;)t=void 0,(t=n.W.pop())==null||t.dispose(); for(;n.W.length-M?-q/M*n.interval*.5:-(q+M/2)/M*n.interval}; BPC=function(n){return-((n.S.offsetWidth||(n.frameCount-1)*n.C*n.scale)-n.X/2)}; lUd=function(){g.w.call(this,{j:"div",Y:"ytp-fine-scrubbing-thumbnail"})}; U6j=function(){g.w.call(this,{j:"div",Y:"ytp-fine-scrubbing-chapter-title",L:[{j:"div",Y:"ytp-fine-scrubbing-chapter-title-content",Wb:"{{chapterTitle}}"}]})}; Aea=function(n){g.w.call(this,{j:"div",Y:"ytp-heat-map-chapter",L:[{j:"svg",Y:"ytp-heat-map-svg",K:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},L:[{j:"defs",L:[{j:"clipPath",K:{id:"{{id}}"},L:[{j:"path",Y:"ytp-heat-map-path",K:{d:"",fill:"white"}}]},{j:"linearGradient",K:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},L:[{j:"stop",K:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{j:"stop",K:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{j:"rect",Y:"ytp-heat-map-graph",K:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",Y:"ytp-heat-map-hover",K:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",Y:"ytp-heat-map-play",K:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{j:"path",Y:"ytp-modern-heat-map",K:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=n;this.N=this.JE("ytp-heat-map-svg");this.S=this.JE("ytp-heat-map-path");this.J=this.JE("ytp-heat-map-graph");this.C=this.JE("ytp-heat-map-play");this.X=this.JE("ytp-heat-map-hover");this.Z=this.JE("ytp-modern-heat-map");this.ET=!1;this.W=60;n=""+g.KQ(this);this.update({id:n});n="url(#"+n+")";this.J.setAttribute("clip-path",n);this.C.setAttribute("clip-path",n);this.X.setAttribute("clip-path",n)}; m6J=function(n,q){q>0&&(n.W=q,n.N.style.height=n.W+"px")}; zb=function(){g.w.call(this,{j:"div",Y:"ytp-chapter-hover-container",L:[{j:"div",Y:"ytp-progress-bar-padding"},{j:"div",Y:"ytp-progress-list",L:[{j:"div",aL:["ytp-play-progress","ytp-swatch-background-color"]},{j:"div",Y:"ytp-progress-linear-live-buffer"},{j:"div",Y:"ytp-load-progress"},{j:"div",Y:"ytp-hover-progress"},{j:"div",Y:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.W=this.JE("ytp-progress-list");this.S=this.JE("ytp-progress-linear-live-buffer"); this.J=this.JE("ytp-ad-progress-list");this.C=this.JE("ytp-load-progress");this.N=this.JE("ytp-play-progress");this.Z=this.JE("ytp-hover-progress");this.X=this.JE("ytp-chapter-hover-container")}; J9=function(n,q){g.wK(n.X,"width",q)}; $6m=function(n,q){g.wK(n.X,"margin-right",q+"px")}; Fwk=function(){this.W=this.position=this.Z=this.X=this.J=this.width=NaN}; ZFa=function(){g.w.call(this,{j:"div",Y:"ytp-timed-marker"});this.X=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.CV=function(n,q){g.G2.call(this,{j:"div",Y:"ytp-progress-bar-container",K:{"aria-disabled":"true"},L:[{j:"div",aL:["ytp-heat-map-container"],L:[{j:"div",Y:"ytp-heat-map-edu"}]},{j:"div",aL:["ytp-progress-bar"],K:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},L:[{j:"div",Y:"ytp-chapters-container"},{j:"div",Y:"ytp-timed-markers-container"}, {j:"div",Y:"ytp-clip-start-exclude"},{j:"div",Y:"ytp-clip-end-exclude"},{j:"div",Y:"ytp-scrubber-container",L:[{j:"div",aL:["ytp-scrubber-button","ytp-swatch-background-color"],L:[{j:"div",Y:"ytp-scrubber-pull-indicator"},{j:"img",aL:["ytp-decorated-scrubber-button"]}]}]}]},{j:"div",aL:["ytp-fine-scrubbing-container"],L:[{j:"div",Y:"ytp-fine-scrubbing-edu"}]},{j:"div",Y:"ytp-bound-time-left",Wb:"{{boundTimeLeft}}"},{j:"div",Y:"ytp-bound-time-right",Wb:"{{boundTimeRight}}"},{j:"div",Y:"ytp-clip-start", K:{title:"{{clipstarttitle}}"},Wb:"{{clipstarticon}}"},{j:"div",Y:"ytp-clip-end",K:{title:"{{clipendtitle}}"},Wb:"{{clipendicon}}"}]});this.api=n;this.i7=!1;this.NV=this.g4=this.Yl=this.S=this.jL=0;this.L9=null;this.YB=!1;this.AE={};this.yS={};this.clipEnd=Infinity;this.O9=this.JE("ytp-clip-end");this.cn=new g.FS(this.O9,!0);this.TX=this.JE("ytp-clip-end-exclude");this.Wm=this.JE("ytp-clip-start-exclude");this.clipStart=0;this.Kd=this.JE("ytp-clip-start");this.rZ=new g.FS(this.Kd,!0);this.xl=this.Wg= 0;this.progressBar=this.JE("ytp-progress-bar");this.Fh={};this.V1={};this.eX=this.JE("ytp-chapters-container");this.u$=this.JE("ytp-timed-markers-container");this.X=[];this.C=[];this.Ku={};this.JB=null;this.IL=-1;this.uG=this.nm=0;this.Z6=this.N=null;this.VA=this.JE("ytp-scrubber-button");this.wJ=this.JE("ytp-decorated-scrubber-button");this.yh=this.JE("ytp-scrubber-container");this.QS=new g.wi;this.Kn=0;this.tB=new Fwk;this.Z=new Tt(0,0);this.iG=null;this.U=this.ZU=!1;this.Wk=null;this.RL=this.JE("ytp-heat-map-container"); this.uI=this.JE("ytp-heat-map-edu");this.J=[];this.heatMarkersDecorations=[];this.Ux=this.JE("ytp-fine-scrubbing-container");this.K8=this.JE("ytp-fine-scrubbing-edu");this.W=void 0;this.SX=this.SR=this.rJ=!1;this.tooltip=q.eG();this.addOnDisposeCallback(g.om(this.tooltip,this.O9));g.Z(this,this.cn);this.cn.subscribe("hoverstart",this.TL,this);this.cn.subscribe("hoverend",this.EP,this);this.V(this.O9,"click",this.WM);this.addOnDisposeCallback(g.om(this.tooltip,this.Kd));g.Z(this,this.rZ);this.rZ.subscribe("hoverstart", this.TL,this);this.rZ.subscribe("hoverend",this.EP,this);this.V(this.Kd,"click",this.WM);aUu(this);this.V(n,"resize",this.Tk);this.V(n,"presentingplayerstatechange",this.iX);this.V(n,"videodatachange",this.OQ);this.V(n,"videoplayerreset",this.zE);this.V(n,"cuerangesadded",this.tCy);this.V(n,"cuerangesremoved",this.c1L);this.V(n,"onLoopRangeChange",this.QT);this.V(n,"innertubeCommand",this.onClickCommand);this.V(n,"onRetroModeChanged",this.zjk);this.V(n,g.CK("timedMarkerCueRange"),this.UMx);this.V(n, "updatemarkervisibility",this.LD);this.V(n,"serverstitchedvideochange",this.YNb);this.updateVideoData(n.getVideoData(),!0);this.QT(n.getLoopRange());VB(this)&&!this.W&&(this.W=new vLC(this.api,this.tooltip),n=this.TY(this.element).x||0,this.W.Tk(n,this.S),this.W.dJ(this.Ux),g.Z(this,this.W),this.V(this.W.dismissButton,"click",this.tY),this.V(this.W.playButton,"click",this.xn),this.V(this.W.element,"dblclick",this.xn));this.api.createClientVe(this.RL,this,139609,!0);this.api.createClientVe(this.uI, this,140127,!0);this.api.createClientVe(this.K8,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; aUu=function(n){if(n.X.length===0){var q=new zb;n.X.push(q);g.Z(n,q);q.dJ(n.eX,0)}for(;n.X.length>1;)n.X.pop().dispose();J9(n.X[0],"100%");n.X[0].startTime=0;n.X[0].title=""}; RzJ=function(n){var q=q===void 0?NaN:q;var M=new Aea(n.api);n.J.push(M);g.Z(n,M);M.dJ(n.RL);q>=0&&(M.element.style.width=q+"px")}; oLj=function(n){for(;n.C.length;)n.C.pop().dispose()}; zz_=function(n){var q,M,t,c,Y;return(Y=g.R((c=g.R((q=n.getWatchNextResponse())==null?void 0:(M=q.playerOverlays)==null?void 0:(t=M.playerOverlayRenderer)==null?void 0:t.decoratedPlayerBarRenderer,MS))==null?void 0:c.playerBar,wqf))==null?void 0:Y.chapters}; Jes=function(n){for(var q=n.X,M=[],t=0;t=G&&I<=N&&Y.push(e)}b>0&&(n.RL.style.height=b+"px");G=n.J[t];N=Y;e=c;h=b;I=t===0;I=I===void 0?!1:I;m6J(G,h);O=N;E=G.W;I=I===void 0?!1:I;var L=1E3/O.length,T=[];T.push({x:0,y:100});for(var v=0;v0&&(M=Y[Y.length-1])}g.r2(n);k=[];q=g.S(q.heatMarkersDecorations||[]);for(c=q.next();!c.done;c=q.next())if(c=g.R(c.value,nUJ))b=c.label,t=M=d=void 0,k.push({visibleTimeRangeStartMillis:(d=c.visibleTimeRangeStartMillis)!=null?d:-1,visibleTimeRangeEndMillis:(M=c.visibleTimeRangeEndMillis)!=null?M:-1,decorationTimeMillis:(t=c.decorationTimeMillis)!=null?t:NaN,label:b?g.b8(b):""});n.heatMarkersDecorations=k}}; reC=function(n,q){n.C.push(q);g.Z(n,q);q.dJ(n.u$,n.u$.children.length)}; x6J=function(n,q){q=g.S(q);for(var M=q.next();!M.done;M=q.next()){M=M.value;var t=x5(n,M.timeRangeStartMillis/(n.Z.X*1E3),QB(n)),c=n.api.D("delhi_modern_web_player")?.667:.6;g.wK(M.element,"transform","translateX("+t+"px) scaleX("+c+")")}}; VHf=function(n,q){var M=0,t=!1;q=g.S(q);for(var c=q.next();!c.done;c=q.next()){c=c.value;if(g.R(c,MXC)){c=g.R(c,MXC);var Y={startTime:NaN,title:null,onActiveCommand:void 0},G=c.title;Y.title=G?g.b8(G):"";G=c.timeRangeStartMillis;G!=null&&(Y.startTime=G);Y.onActiveCommand=c.onActiveCommand;c=Y;M===0&&c.startTime!==0&&(n.X[M].startTime=0,n.X[M].title="",n.X[M].onActiveCommand=c.onActiveCommand,M++,t=!0);n.X.length<=M&&(Y=new zb,n.X.push(Y),g.Z(n,Y),Y.dJ(n.eX,n.eX.children.length));n.X[M].startTime= c.startTime;n.X[M].title=c.title?c.title:"";n.X[M].onActiveCommand=c.onActiveCommand;n.X[M].index=t?M-1:M}M++}for(;M=0;t--)if(n.X[t].width>0){$6m(n.X[t],0);var c=Math.floor(n.X[t].width);n.X[t].width=c;J9(n.X[t],c+"px");break}n.X[M].width=0;J9(n.X[M],"0")}else M===n.X.length-1?(t=Math.floor(n.X[M].width+q),n.X[M].width=t,J9(n.X[M],t+"px")):(q=n.X[M].width+q,t=Math.round(q),q-=t,n.X[M].width=t,J9(n.X[M],t+"px"));M=0;if(n.J.length===n.X.length)for(q=0;q< n.J.length;q++)t=n.X[q].width,n.J[q].element.style.width=t+"px",n.J[q].element.style.left=M+"px",M+=t+nm(n);n.api.D("delhi_modern_web_player")&&(n.X.length===1?n.X[0].W.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(n.X[0].W.classList.remove("ytp-progress-bar-end"),n.X[0].W.classList.add("ytp-progress-bar-start"),n.X[n.X.length-1].W.classList.add("ytp-progress-bar-end")))}; iRd=function(n,q){var M=0,t=!1,c=n.X.length,Y=n.Z.X*1E3;Y===0&&(Y=n.api.getProgressState().seekableEnd*1E3);if(Y>0&&n.S>0){for(var G=n.S-nm(n)*n.nm,k=n.uG===0?3:G*n.uG,b=g.S(n.X),d=b.next();!d.done;d=b.next())d.value.width=0;for(;M1);d=(Y===0?0:b/Y*G)+n.X[M].width;if(d>k)n.X[M].width=d;else{n.X[M].width=0;var N=n,O=M,e=N.X[O-1];e!==void 0&&e.width>0? e.width+=d:On.uG&&(n.uG=b/Y),t=!0)}M++}}return t}; pV=function(n){if(n.S){var q=n.api.getProgressState(),M=n.api.getVideoData();if(!(M&&M.enableServerStitchedDai&&M.hj)||isFinite(q.current)){var t;if(((t=n.api.getVideoData())==null?0:Sn(t))&&q.airingStart&&q.airingEnd)var c=qJ(n,q.airingStart,q.airingEnd);else if(n.api.getPresentingPlayerType()===2){var Y,G,k;c=(M=(c=n.api.getVideoData())==null?void 0:(Y=c.getPlayerResponse())==null?void 0:(G=Y.playerConfig)==null?void 0:(k=G.webPlayerConfig)==null?void 0:k.skippableAdProgressBarDuration)?qJ(n,q.seekableStart, M/1E3):qJ(n,q.seekableStart,q.seekableEnd)}else c=qJ(n,q.seekableStart,q.seekableEnd);Y=lU(c,q.loaded,0);q=lU(c,q.current,0);G=n.Z.W!==c.W||n.Z.X!==c.X;n.Z=c;MJ(n,q,Y);G&&tXk(n);c7d(n)}}}; qJ=function(n,q,M){return Ye_(n)?new Tt(Math.max(q,n.iG.startTimeMs/1E3),Math.min(M,n.iG.endTimeMs/1E3)):new Tt(q,M)}; KFd=function(n,q){var M,t,c;q=g.R((M=q.getWatchNextResponse())==null?void 0:(t=M.playerOverlays)==null?void 0:(c=t.playerOverlayRenderer)==null?void 0:c.decoratedPlayerBarRenderer,MS);if(q==null?0:q.progressColor)for(M=0;M1){M=iq(n,q.Z,!0);for(var t=0,c=0;c0&&(t+=n.X[c].width,t+=nm(n));M=(n.X[M].startTime+(q.Z-t)/n.X[M].width*((M===n.X.length-1?n.Z.X*1E3:n.X[M+1].startTime)-n.X[M].startTime))/1E3||0}return M}; bRJ=function(n,q){if(q<0)return"0";n=Math.floor(Math.min(q,n.api.getDuration())*1E3);return n>2147483647?"0":String(n)}; ci=function(n,q,M,t,c){q=bRJ(n,q);M=bRJ(n,M);n=n.progressBar.visualElement;t={seekData:{startMediaTimeMs:q,endMediaTimeMs:M,seekSource:t}};(q=g.ye())&&py(q,n,c,t)}; dCj=function(n,q,M){if(M>=n.X.length)return!1;var t=n.S-nm(n)*n.nm;return Math.abs(q-n.X[M].startTime/1E3)/n.Z.X*t<4}; tXk=function(n){n.VA.style.removeProperty("height");for(var q=g.S(Object.keys(n.AE)),M=q.next();!M.done;M=q.next())NsU(n,M.value);Y0(n);MJ(n,n.xl,n.Wg)}; QB=function(n){var q=n.QS.x;q=g.aR(q,0,n.S);n.tB.update(q,n.S);return n.tB}; Km=function(n){return(n.U?135:90)-Gk(n)}; Gk=function(n){var q=48,M=n.api.T();n.api.D("delhi_modern_web_player")?q=n.api.getPlayerSize().width<=528?64:n.U?n.api.D("delhi_modern_web_player_compact_controls")?72:96:n.api.D("delhi_modern_web_player_compact_controls")?56:72:n.U?q=54:g.t8(M)&&!M.W&&(q=40);return q}; MJ=function(n,q,M){n.xl=q;n.Wg=M;var t=QB(n),c=n.Z.X,Y=dH1(n.Z,n.xl),G=g.Yo("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.XB(Y,!0),DURATION:g.XB(c,!0)}),k=Oi(n.X,Y*1E3);k=n.X[k].title;n.update({ariamin:Math.floor(n.Z.W),ariamax:Math.floor(c),arianow:Math.floor(Y),arianowtext:k?k+" "+G:G});c=n.clipStart;Y=n.clipEnd;n.iG&&n.api.getPresentingPlayerType()!==2&&(c=n.iG.startTimeMs/1E3,Y=n.iG.endTimeMs/1E3);c=lU(n.Z,c,0);k=lU(n.Z,Y,1);G=n.api.getVideoData();Y=g.aR(q,c,k);M=(G==null?0:g.s9(G))?1:g.aR(M, c,k);q=x5(n,q,t);g.wK(n.yh,"transform","translateX("+q+"px)");n.api.D("delhi_modern_web_player")&&n.api.D("delhi_modern_web_player_cutout")&&ORk(n,q);k0(n,t,c,Y,"PLAY_PROGRESS");(G==null?0:Sn(G))?(q=n.api.getProgressState().seekableEnd)&&k0(n,t,Y,lU(n.Z,q),"LIVE_BUFFER"):k0(n,t,c,M,"LOAD_PROGRESS");if(n.api.D("web_player_heat_map_played_bar")){var b;(b=n.J[0])!=null&&b.C.setAttribute("width",(Y*100).toFixed(2)+"%")}}; ORk=function(n,q){n.api.getPresentingPlayerType()!==1?n.eX.style.removeProperty("clip-path"):(q||(q=x5(n,n.xl,QB(n))),n.eX.style.clipPath='path("'+(n.YB?gUd(n,8,q,n.U?50:36,0,6):gUd(n,4,q,n.U?34:24,2,3))+'")')}; gUd=function(n,q,M,t,c,Y){var G=M-t/2;M+=t/2;q+=c;return"M 0 "+c+" L 0 "+(q+" L ")+(G+" "+q+" C ")+(G+Y+" "+q+" "+(G+Y)+" "+c+" "+G+" "+c+" L 0 ")+(c+" M ")+(M+" "+c+" L ")+(n.S+" "+c+" L ")+(n.S+" "+q+" L ")+(M+" "+q+" C ")+(M-Y+" "+q+" "+(M-Y)+" "+c+" "+M+" "+c)}; k0=function(n,q,M,t,c){var Y=n.X.length,G=q.X-n.nm*nm(n),k=M*G;M=iq(n,k);var b=t*G;G=iq(n,b);c==="HOVER_PROGRESS"&&(G=iq(n,q.X*t,!0),b=q.X*t-eVk(n,q.X*t)*nm(n));t=Math.max(k-EUC(n,M),0);for(k=M;k=n.X.length)return n.S;for(var M=0,t=0;t0||n.TX.clientWidth>0?(Y=q.clientWidth/M,n=-1*n.Wm.clientWidth/M):(Y/=M,n=-1*n.X[c].element.offsetLeft/M),g.wK(q,"background-size",Y+"px"),g.wK(q,"background-position-x",n+"px"))}; bq=function(n,q,M,t,c){c||n.api.T().W?q.style.width=M+"px":g.wK(q,"transform","scalex("+(t?M/t:0)+")")}; iq=function(n,q,M){var t=0;(M===void 0?0:M)&&(q-=eVk(n,q)*nm(n));M=g.S(n.X);for(var c=M.next();!c.done;c=M.next()){c=c.value;if(q>c.width)q-=c.width;else break;t++}return t===n.X.length?t-1:t}; x5=function(n,q,M){var t=q*n.Z.X*1E3;for(var c=-1,Y=g.S(n.X),G=Y.next();!G.done;G=Y.next())G=G.value,t>G.startTime&&G.width>0&&c++;t=c<0?0:c;c=M.X-nm(n)*n.nm;return q*c+nm(n)*t+M.J}; eVk=function(n,q){for(var M=n.X.length,t=0,c=g.S(n.X),Y=c.next();!Y.done;Y=c.next())if(Y=Y.value,Y.width!==0)if(q>Y.width)q-=Y.width,q-=nm(n),t++;else break;return t===M?M-1:t}; g.y7_=function(n,q,M,t){var c=n.S!==M,Y=n.U!==t;n.jL=q;n.S=M;n.U=t;VB(n)&&(q=n.W)!=null&&(q.scale=t?1.5:1);tXk(n);n.X.length===1&&(n.X[0].width=M||0);c&&g.r2(n);n.W&&Y&&VB(n)&&(n.W.isEnabled&&(M=n.U?135:90,t=M-Gk(n),n.Ux.style.height=M+"px",g.wK(n.RL,"transform","translateY("+-t+"px)"),g.wK(n.progressBar,"transform","translateY("+-t+"px)")),ufu(n.W))}; Y0=function(n){var q=!!n.iG&&n.api.getPresentingPlayerType()!==2,M=n.clipStart,t=n.clipEnd,c=!0,Y=!0;q&&n.iG?(M=n.iG.startTimeMs/1E3,t=n.iG.endTimeMs/1E3):(c=M>n.Z.W,Y=n.Z.X>0&&tn.xl);g.Yi(n.VA,"ytp-scrubber-button-hover",M===t&&n.X.length>1);if(n.api.D("web_player_heat_map_played_bar")){var Y;(Y=n.J[0])!=null&&Y.X.setAttribute("width",(q.W*100).toFixed(2)+"%")}}}; NsU=function(n,q){var M=n.AE[q];q=n.yS[q];var t=QB(n),c=lU(n.Z,M.start/1E3,0),Y=INC(M,n.U)/t.width;var G=lU(n.Z,M.end/1E3,1);Y!==Number.POSITIVE_INFINITY&&(c=g.aR(c,0,G-Y));G=Math.min(G,c+Y);M.color&&(q.style.background=M.color);M=c;q.style.left=Math.max(M*t.X+t.J,0)+"px";bq(n,q,g.aR((G-M)*t.X+t.J,0,t.width),t.width,!0)}; svs=function(n,q){var M=q.getId();n.AE[M]===q&&(g.sS(n.yS[M]),delete n.AE[M],delete n.yS[M])}; VB=function(n){var q=g.fl(n.api.T())&&(n.api.D("web_shorts_pip")||n.api.D("web_watch_pip")),M;return!((M=n.api.getVideoData())==null?0:M.isLivePlayback)&&!n.api.isMinimized()&&!n.api.isInline()&&(!n.api.vk()||!q)}; d3=function(n){n.W&&(n.W.disable(),n.Yl=0,n.RL.style.removeProperty("transform"),n.progressBar.style.removeProperty("transform"),n.Ux.style.removeProperty("height"),n.element.parentElement&&n.element.parentElement.style.removeProperty("height"))}; XGk=function(n,q){var M=q/Km(n)*Gk(n);g.wK(n.progressBar,"transform","translateY("+-q+"px)");g.wK(n.RL,"transform","translateY("+-q+"px)");g.wK(n.Ux,"transform","translateY("+M+"px)");n.Ux.style.height=q+M+"px";n.element.parentElement&&(n.element.parentElement.style.height=Gk(n)-M+"px")}; jvu=function(n,q){q?n.N||(n.element.removeAttribute("aria-disabled"),n.N=new g.FS(n.progressBar,!0),n.api.D("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&n.N.subscribe("hoverstart",n.vQL,n),n.N.subscribe("hovermove",n.QId,n),n.N.subscribe("hoverend",n.kXb,n),n.N.subscribe("dragstart",n.cQy,n),n.N.subscribe("dragmove",n.xMX,n),n.N.subscribe("dragend",n.MGd,n),n.api&&n.api.D("delhi_modern_web_player")&&n.api.D("delhi_modern_web_player_cutout")&&(n.Z6=new g.FS(n.progressBar, !0),n.Z6.subscribe("hoverstart",function(){n.YB=!0;ORk(n)},n),n.Z6.subscribe("hoverend",function(){n.YB=!1; ORk(n)},n)),n.Wk=n.listen("keydown",n.Ym)):n.N&&(n.element.setAttribute("aria-disabled","true"),n.AQ(n.Wk),n.N.cancel(),n.N.dispose(),n.N=null)}; nm=function(n){return n.api.D("delhi_modern_web_player")?4:n.U?3:2}; Ye_=function(n){var q;return!((q=n.iG)==null||!q.postId)&&n.api.getPresentingPlayerType()!==2}; NJ=function(n,q){g.w.call(this,{j:"button",aL:["ytp-remote-button","ytp-button"],K:{title:n.D("player_tooltip_data_title_killswitch")?"Reproducir en el televisor":"","data-tooltip-title":"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},Wb:"{{icon}}"});this.G=n;this.xi=q;this.X=null;this.V(n,"onMdxReceiversChange",this.Cm);this.V(n,"presentingplayerstatechange",this.Cm);this.V(n,"appresize",this.Cm);n.createClientVe(this.element,this,139118);this.Cm();this.listen("click",this.W, this);wZ(n,this.element,this)}; O2=function(n,q){g.w.call(this,{j:"button",aL:["ytp-button","ytp-settings-button"],K:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":i8(),title:n.D("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},L:[n.D("delhi_modern_web_player_icons")?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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.f$()]});this.G=n;this.xi=q;this.W=!0;this.listen("click",this.Z);this.V(n,"onPlaybackQualityChange",this.updateBadge);this.V(n,"videodatachange",this.updateBadge);this.V(n,"webglsettingschanged",this.updateBadge);this.V(n,"appresize",this.X);wZ(n,this.element,this);this.G.createClientVe(this.element,this,28663);this.updateBadge();this.X(n.Lm().getPlayerSize())}; Ses=function(n,q){n.W=!!q;n.X(n.G.Lm().getPlayerSize())}; g3=function(n,q){var M=n.D("web_fix_annotations")?"Superposiciones anotadas":"Anotaciones";H8.call(this,M,g.u6.SU);this.G=n;this.xi=q;this.X=!1;n.D("web_settings_menu_icons")&&(q=n.D("delhi_modern_web_player_icons")?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(q));this.V(n,"videodatachange",this.Cm);this.V(n,"onApiChange",this.Cm);this.subscribe("select",this.onSelect,this);this.Cm()}; eI=function(n,q,M){g.AH.call(this,"Pista de audio",g.u6.AUDIO,n,q);this.G=n;this.X=M;this.tracks={};g.MN(this.element,"ytp-audio-menu-item");this.countLabel=new g.w({j:"div",L:[{j:"span",Wb:"Pista de audio"},{j:"span",Y:"ytp-menuitem-label-count",Wb:"{{content}}"}]});n.D("web_settings_menu_icons")&&!this.G.D("html5_enable_new_audio_settings_menu")&&(q=n.D("delhi_modern_web_player_icons")?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:LAd(),this.setIcon(q));g.Z(this,this.countLabel);g.NW(this,this.countLabel);this.G.D("html5_enable_audio_ve_logging")&&(n.createClientVe(this.element,this,273318),this.listen("click",this.onClick));this.V(n,"videodatachange",this.Cm);this.V(n,"onPlaybackAudioChange",this.Cm);this.Cm()}; Ipj=function(n,q){g.O3.call(this,g.g6({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.u6.q4);this.G=n;this.xi=q;g.MN(this.element,"ytp-audio-settings-menu-item");this.Ln=new g.Hp(n,void 0,"Audio");this.countLabel=new g.w({j:"div",L:[{j:"span",Wb:"Audio"},{j:"span",Y:"ytp-menuitem-label-count",Wb:"{{content}}"}]});n.D("web_settings_menu_icons")&&this.setIcon({j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.Hq=new eI(n,this.xi,this);g.Z(this,this.Hq);this.V(n,"settingsMenuInitialized",this.BA.bind(this));this.V(n,"videodatachange",this.BA.bind(this));g.Z(this,this.countLabel);g.NW(this,this.countLabel);this.xi.Qa(this);this.V(n,"onPlaybackAudioChange",this.n1);this.listen("keydown",this.Ym);this.listen("click",this.open)}; E2=function(n,q){H8.call(this,"Reproducci\u00f3n autom\u00e1tica",g.u6.lV);this.G=n;this.xi=q;this.X=!1;this.W=[];this.V(n,"presentingplayerstatechange",this.BA);this.subscribe("select",this.onSelect,this);n.createClientVe(this.element,this,113682);this.BA()}; fp_=function(n,q){g.O3.call(this,g.g6({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.G=n;this.xi=q;this.V(this.element,"click",this.onClick);this.xi.Qa(this)}; HRd=function(n,q){var M;g.fl(n.T())&&(M={j:"div",Y:"ytp-panel-footer-content",L:[{j:"span",Wb:"Ajusta la calidad de descarga en la "},{j:"a",Y:"ytp-panel-footer-content-link",Wb:"Configuraci\u00f3n",K:{href:"/account_downloads"}}]});g.AH.call(this,"Calidad",g.u6.Jt,n,q,void 0,void 0,M);this.G=n;this.RL={};this.C={};this.W={};this.wJ=new Set;this.X=this.J=!1;this.S="unknown";this.N="";this.xl=new g.ZE;g.Z(this,this.xl);this.J=this.G.D("web_player_use_new_api_for_quality_pullback");this.X=this.G.D("web_player_enable_premium_hbr_playback_cap"); n.D("web_settings_menu_icons")&&(q=n.D("delhi_modern_web_player_icons")?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(q));g.MN(this.Ln.element,"ytp-quality-menu");this.V(n,"videodatachange",this.BA);this.V(n,"videoplayerreset",this.BA);this.V(n,"onPlaybackQualityChange",this.M5);this.BA();n.createClientVe(this.element,this,137721)}; PRU=function(n,q,M){var t=n.RL[q],c=g.$J[q];return LFR(n,t?t.qualityLabel:c?c+"p":"Autom\u00e1tica",q,M)}; vUs=function(n,q,M,t,c){var Y=(q=n.X?n.W[q]:n.C[q])&&q.quality,G=q&&q.qualityLabel;G=G?G:"Autom\u00e1tica";t&&(G="("+G);n=LFR(n,G,Y||"",c);t&&n.L.push(")");(t=(t=q&&q.paygatedQualityDetails)&&t.paygatedIndicatorText)&&M&&n.L.push({j:"div",Y:"ytp-premium-label",Wb:t});return n}; LFR=function(n,q,M,t){q={j:"span",aL:t,L:[q]};var c;t="ytp-swatch-color";if(n.J||n.X)t="ytp-swatch-color-white";M==="highres"?c="8K":M==="hd2880"?c="5K":M==="hd2160"?c="4K":M.indexOf("hd")===0&&M!=="hd720"&&(c="HD");c&&(q.L.push(" "),q.L.push({j:"sup",Y:t,Wb:c}));return q}; hk=function(n){mh.call(this,n.getAvailablePlaybackRates()[0],n.getAvailablePlaybackRates()[n.getAvailablePlaybackRates().length-1],.05,n.getPlaybackRate(),{j:"div",Y:"ytp-speedslider-indicator-container",L:[{j:"div",Y:"ytp-speedslider-badge"},{j:"p",Y:"ytp-speedslider-text"}]});this.G=n;this.xl=A2(this.wJ,50,this);g.MN(this.W,"ytp-speedslider");this.U=this.JE("ytp-speedslider-text");this.RL=this.JE("ytp-speedslider-badge");Tsa(this);this.V(this.W,"change",this.jX)}; Tsa=function(n){n.U.textContent=n.X.toFixed(2)+"x";var q=n.X>2&&n.G.D("enable_web_premium_varispeed");n.RL.classList.toggle("ytp-speedslider-premium-badge",q);n.RL.setAttribute("aria-label",q?"Premium":"")}; Wi=function(n,q,M,t,c,Y,G){g.w.call(this,{j:"div",Y:"ytp-slider-section",K:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},L:[{j:"div",Y:"ytp-slider",L:[{j:"div",Y:"ytp-slider-handle"}]}]});this.N=n;this.U=q;this.W=M;this.Z=t;this.xl=c;this.IL=Y;this.range=this.Z-this.W;this.nm=this.JE("ytp-slider-section");this.J=this.JE("ytp-slider");this.RL=this.JE("ytp-slider-handle");this.C=new g.FS(this.J, !0);this.X=G?G:M;g.Z(this,this.C);this.C.subscribe("dragmove",this.Ef,this);this.V(this.element,"keydown",this.Tv);this.V(this.element,"wheel",this.LI);this.init()}; yi=function(n){Wi.call(this,.05,.05,n.getAvailablePlaybackRates()[0],n.getAvailablePlaybackRates()[n.getAvailablePlaybackRates().length-1],150,20,n.getPlaybackRate());this.G=n;this.S=g.eO("P");this.jX=A2(this.wJ,50,this);g.MN(this.J,"ytp-speedslider");g.MN(this.S,"ytp-speedslider-text");n=this.S;var q=this.J;q.parentNode&&q.parentNode.insertBefore(n,q.nextSibling);lps(this);this.V(this.G,"onPlaybackRateChange",this.updateValues)}; lps=function(n){n.S.textContent=UCa(n,n.X)+"x"}; UCa=function(n,q){n=Number(g.aR(q,n.W,n.Z).toFixed(2));q=Math.floor((n+.001)*100%5+2E-15);var M=n;q!==0&&(M=n-q*.01);return Number(M.toFixed(2))}; ukm=function(n){g.G2.call(this,{j:"div",Y:"ytp-speedslider-component"});n.D("web_settings_use_input_slider")?this.X=new hk(n):this.X=new yi(n);g.Z(this,this.X);this.element.appendChild(this.X.element)}; Bsa=function(n){var q=new ukm(n);fA.call(this,n,q,"Personalizada");g.Z(this,q)}; A7f=function(n,q){var M=new Bsa(n);g.AH.call(this,"Velocidad de reproducci\u00f3n",g.u6.FK,n,q,s2(n)?void 0:"Personalizada",s2(n)?void 0:function(){g.vp(q,M)}); var t=this;this.C=new g.w({j:"div",Y:"ytp-menuitem-premium-badge"});this.J=!1;g.Z(this,M);this.N=new hk(n);g.Z(this,this.N);if(n.D("web_settings_menu_icons")){var c=n.D("delhi_modern_web_player_icons")?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{j:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(c)}this.G=n;this.J=!1;this.RL=null;s2(n)?(this.X=g.Yo("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.G.getPlaybackRate().toString()}),this.S=this.G.getPlaybackRate()):this.S=this.X=null;g.Z(this,this.C);var Y,G,k,b;this.wJ=(Y=this.G.getVideoData())==null?void 0:(G=Y.getWatchNextResponse())==null?void 0:(k=G.playerOverlays)==null?void 0:(b=k.playerOverlayRenderer)==null?void 0:b.showPlaybackRateUpsellPanelCommand;DCm(n,this.wJ)?(this.W=Xc(4),this.G.createClientVe(this.C.element, this,273508)):this.W=null;this.xl=this.G.getAvailablePlaybackRates();this.V(n,"presentingplayerstatechange",this.Cm);var d;((d=this.G.getVideoData())==null?0:d.oI())&&this.V(n,"serverstitchedvideochange",this.Cm);this.V(this.N.W,"change",function(){t.J=!0;t.Cm()}); this.Cm()}; mCR=function(n,q){var M=Xc(q);n.X&&(n.J||q===n.S)?(n.xe(n.X),n.kQ(q.toString())):n.xe(M)}; FFR=function(n){var q=n.xl.map(Xc);n.W&&q.push(n.W);n.gP(q);n.X=null;n.S=null;q=n.G.getPlaybackRate();s2(n.G)&&$C_(n,q);!n.xl.includes(q)||n.J?n.xe(n.X):n.xe(Xc(q))}; $C_=function(n,q){n.S=q;n.X=g.Yo("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:q.toString()});q=n.xl.map(Xc);q.unshift(n.X);n.W&&q.push(n.W);n.gP(q)}; ZRf=function(n,q,M,t){M=new g.O3({j:"div",aL:["ytp-menuitem"],K:{tabindex:"0",role:"menuitemradio","aria-checked":t?"true":"false"},L:[{j:"div",aL:["ytp-menuitem-label"],L:[{j:"div",aL:["ytp-menuitem-container-with-badge"],L:[{j:"div",Wb:"{{label}}"},n.C]}]}]},M,n.JP(q));M.listen("click",function(){n.Ch(q)}); n.G.logVisibility(n.C.element,!0);return M}; Xc=function(n){return n.toString()}; s2=function(n){return n.D("web_settings_menu_surface_custom_playback")}; DCm=function(n,q){return!!q&&n.getAvailablePlaybackRates()[n.getAvailablePlaybackRates().length-1]<=2}; apf=function(n){return n.D("web_settings_menu_surface_custom_playback")&&n.D("web_settings_use_input_slider")}; oU1=function(n,q,M,t){var c=new g.Hp(q,void 0,"Anulaci\u00f3n de video");g.AH.call(this,t.text||"",n,q,M,"Anulaci\u00f3n de video",function(){g.vp(M,c)}); var Y=this;g.MN(this.element,"ytp-subtitles-options-menu-item");this.setting=t.option.toString();n=t.options;this.settings=g.Qs(n,this.xU,this);this.J=c;g.Z(this,this.J);q=new g.O3({j:"div",Y:"ytp-menuitemtitle",Wb:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.Z(this,q);this.J.Qa(q,!0);this.W=new g.O3({j:"div",Y:"ytp-menuitem",K:{role:"menuitemradio",tabindex:"0"},L:[{j:"div",Y:"ytp-menuitem-label",Wb:"S\u00ed"}]},-1);g.Z(this,this.W);this.J.Qa(this.W, !0);this.V(this.W.element,"click",function(){RVC(Y,!0)}); this.X=new g.O3({j:"div",Y:"ytp-menuitem",K:{role:"menuitemradio",tabindex:"0"},L:[{j:"div",Y:"ytp-menuitem-label",Wb:"No"}]},-2);g.Z(this,this.X);this.J.Qa(this.X,!0);this.V(this.X.element,"click",function(){RVC(Y,!1)}); this.gP(g.Wn(n,this.xU))}; RVC=function(n,q){n.publish("settingChange",n.setting+"Override",!q);n.xi.X3()}; jI=function(n,q){g.Hp.call(this,n,void 0,"Opciones");var M=this;this.Sl={};for(var t=0;t=0);if(!(q<0||q===n.J)){n.J=q;q=243*n.scale;var M=141*n.scale,t=MBJ(n.W,n.J,q);YWj(n.bg,t,q,M,!0);n.RL.start()}}; Wgs=function(n){var q=n.X;n.type===3&&n.wJ.stop();n.api.removeEventListener("appresize",n.xl);n.N||(n.env.D("player_tooltip_data_title_killswitch")?q.setAttribute("title",n.Z):q.setAttribute("data-tooltip-title",n.Z));n.Z="";n.X=null;n.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});n.wrapper.style.width=""}; sCm=function(n){g.w.call(this,{j:"button",aL:["ytp-watch-later-button","ytp-button"],K:{title:n.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.t8(n.T()))},L:[{j:"div",Y:"ytp-watch-later-icon",Wb:"{{icon}}"},{j:"div",Y:"ytp-watch-later-title",Wb:"Ver m\u00e1s tarde"}]});this.G=n;this.icon=null;this.visible=this.isRequestPending=this.X=!1;ULs(n);n.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.V(n,"videoplayerreset",this.onReset);this.V(n,"appresize",this.TV);this.V(n,"videodatachange",this.TV);this.V(n,"presentingplayerstatechange",this.TV);this.TV();n=this.G.T();var q=g.vf("yt-player-watch-later-pending");n.J&&q?(QJJ(),y6d(this)):this.Cm(2);g.Yi(this.element,"ytp-show-watch-later-title",g.t8(n));wZ(this.G,this.element,this)}; X1R=function(n){var q=n.G.getPlayerSize(),M=n.G.T(),t=n.G.getVideoData(),c=g.t8(M)&&g.xt(n.G)&&g.C(n.G.getPlayerStateObject(),128),Y=M.Z;return M.L9&&q.width>=240&&!t.isAd()&&t.L9&&!c&&!t.wZ&&!n.G.isEmbedsShortsMode()&&!Y}; jCm=function(n,q){Wjd(g.sR(n.G.T()),"wl_button",function(){QJJ({videoId:q});window.location.reload()})}; y6d=function(n){if(!n.isRequestPending){n.isRequestPending=!0;n.Cm(3);var q=n.G.getVideoData();q=n.X?q.removeFromWatchLaterCommand:q.addToWatchLaterCommand;var M=n.G.Ou(),t=n.X?function(){n.X=!1;n.isRequestPending=!1;n.Cm(2);n.G.T().B&&n.G.Km("WATCH_LATER_VIDEO_REMOVED")}:function(){n.X=!0; n.isRequestPending=!1;n.Cm(1);n.G.T().W&&n.G.rk(n.element);n.G.T().B&&n.G.Km("WATCH_LATER_VIDEO_ADDED")}; uZ(M,q).then(t,function(){n.isRequestPending=!1;n.Cm(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");n.G.T().B&&n.G.Km("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; SBs=function(n,q){if(q!==n.icon){switch(q){case 3:var M=l6();break;case 1:M=NB();break;case 2:M={j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:M={j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path", ZH:!0,K:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}n.updateValue("icon",M);n.icon=q}}; ICm=function(){g.xx.apply(this,arguments);this.pH=(this.Bl=g.t8(this.api.T()))&&(this.api.T().W||rO()||VY());this.vT=48;this.kt=69;this.uH=this.Pk=null;this.qY=[];this.kO=this.r4=this.QY=this.Gt=this.mq=null;this.ej=[];this.contextMenu=this.yx=this.overflowButton=this.Gp=this.Ty=this.searchButton=this.copyLinkButton=this.shareButton=this.q6=this.f9=this.title=this.channelAvatar=this.MI=this.tooltip=null;this.Np=!1;this.oG=this.gG=this.fQ=this.D5=null;this.wAm=this.Zm=this.dK=!1}; fCJ=function(n){var q=n.api.T(),M=g.C(n.api.getPlayerStateObject(),128);return q.J&&M&&!n.api.isFullscreen()}; HGa=function(n){if(n.Qr()&&!n.api.isEmbedsShortsMode()&&n.Gp){var q=n.api.D("web_player_hide_overflow_button_if_empty_menu");!n.q6||q&&!X1R(n.q6)||j6f(n.Gp,n.q6);!n.shareButton||q&&!FYj(n.shareButton)||j6f(n.Gp,n.shareButton);!n.copyLinkButton||q&&!AMf(n.copyLinkButton)||j6f(n.Gp,n.copyLinkButton)}else{q=n.api.T().getWebPlayerContextConfig();if(n.Gp){for(var M=n.Gp,t=g.S(M.actionButtons),c=t.next();!c.done;c=t.next())c.value.detach();M.actionButtons=[]}n.searchButton&&!g.XL(n.f9.element,n.searchButton.element)&& n.searchButton.dJ(n.f9.element);!n.q6||(q==null?0:q.hideTopWatchNextButton)||g.XL(n.f9.element,n.q6.element)||n.q6.dJ(n.f9.element);!n.shareButton||(q==null?0:q.hideTopShareButton)||g.XL(n.f9.element,n.shareButton.element)||n.shareButton.dJ(n.f9.element);n.copyLinkButton&&!g.XL(n.f9.element,n.copyLinkButton.element)&&n.copyLinkButton.dJ(n.f9.element)}}; LgJ=function(n,q,M){q=M?q.lastElementChild:q.firstElementChild;for(var t=null;q;){if(Vf(q,"display")!=="none"&&q.getAttribute("aria-hidden")!=="true"){var c=void 0;q.tabIndex>=0?c=q:c=LgJ(n,q,M);c&&(t?M?c.tabIndex>t.tabIndex&&(t=c):c.tabIndext/1E3+1)return{msg:"in-the-past"};if(Y.isLivePlayback&&!isFinite(t))return{msg:"live-infinite"};(t=q.Q6())&&t.isView()&&(t=t.mediaElement);if(t&&t.e7().length>12&&g.V3(c))return{msg:"played-ranges"};if(!c.Z)return null;if(!G)return{msg:"no-pvd-formats"};if(!c.Z.X||!G.X)return{msg:"non-dash"};t=G.videoInfos[0];var k=c.Z.videoInfos[0];n.xl&&lB(Y)&&(t=q.Uv(), k=M.Uv());if(!t||!k)return{msg:"no-video-info"};if(n.C&&(Vv(t)||Vv(k)))return{msg:"av1"};q=n.J&&Y.m4()&&W3();if(k.containerType!==t.containerType)if(q)Y.Xy("sgap",{ierr:"container"});else return{msg:"container"};if(n.S&&!q&&(k.Ts!==t.Ts||k.Ts===""||t.Ts===""))return{msg:"codec"};if(n.N&&k.video&&t.video&&Math.abs(k.video.width/k.video.height-t.video.width/t.video.height)>.01)return{msg:"ratio"};if(g.V3(Y)&&g.V3(c))return{msg:"content-protection"};G=G.X[0];c=c.Z.X[0];M=G.audio;var b=c.audio;if(M.sampleRate!== b.sampleRate&&!g.Xq)if(q)Y.Xy("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:G.itag,cr:M.sampleRate,ni:c.itag,nr:b.sampleRate};return(M.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:n.B&&Y.m4()&&t.video.fps!==k.video.fps?{msg:"fps"}:null}; lCk=function(n,q,M){var t=n.getVideoData(),c=q.getVideoData();if(!t.T().supportsGaplessShorts())return{nq:"env"};if((!M.U||t.xr&&!t.isAd()||c.xr&&!c.isAd())&&(!M.W||t.xr&&!t.isAd()||c.xr)&&(!M.Z||c.xr&&!c.isAd()||t.xr)&&(t.xr||c.xr))return{nq:"autoplay"};if(t.endSeconds>0)return{nq:"endcr"};if(!t.N)return{nq:"client"};if(!n.d4())return{nq:"no-empty"};n=TRa(M,n,q,Infinity);return n!=null?{nq:n.msg}:null}; Fc=function(n){g.F.call(this);this.app=n;this.S=this.J=this.W=this.X=null;this.Z=1;this.events=new g.f8(this);this.events.V(this.app.oL,g.rj("gaplessshortslooprange"),this.B);g.Z(this,this.events)}; Ux1=function(){this.X=this.N=this.Z=this.W=this.U=this.C=this.xl=this.B=this.S=this.J=!1}; uZU=function(n){var q=new Ux1;q.J=n.D("h5_gapless_support_types_diff");q.B=!1;q.xl=n.D("html5_gapless_use_format_info_fix");q.C=n.D("html5_gapless_disable_on_av1")&&!n.D("html5_gapless_enable_on_av1");q.S=n.D("html5_gapless_check_codec_diff_strictly");q.U=n.D("html5_gapless_on_ad_autoplay");q.N=n.D("html5_gapless_disable_diff_aspect_radio");q.W=n.D("html5_gapless_ad_autoplay_on_ad_to_video_only");q.X=n.D("html5_pseudogapless_shorts_seek_to_next_start");q.Z=n.D("html5_gapless_ad_autoplay_on_video_to_ad_only"); return q}; g.Z0=function(n,q,M,t){t=t===void 0?!1:t;P3.call(this);this.mediaElement=n;this.start=q;this.end=M;this.X=t}; BRR=function(n,q,M,t,c,Y){Y=Y===void 0?0:Y;g.F.call(this);var G=this;this.policy=n;this.X=q;this.W=M;this.Nn=c;this.S=Y;this.J=this.Z=null;this.currentVideoDuration=this.C=-1;this.N=!1;this.bT=new LW;this.X$=t-q.NP()*1E3;this.bT.then(void 0,function(){}); this.timeout=new g.zw(function(){G.Rc("timeout")},1E4); g.Z(this,this.timeout);this.B=isFinite(t)||this.Nn.T().experiments.Hb("html5_pseudogapless_shorts")&&lB(q.getVideoData());this.status={status:0,error:null}}; A61=function(n){var q,M,t,c,Y,G,k,b,d;return g.u(function(N){if(N.X==1){if(n.qm())return N.return(Promise.reject(Error(n.status.error||"disposed")));n.timeout.start();return g.U(N,n.bT,2)}q=n.X.Q6();if(q.isEnded())return n.Rc("ended_in_finishTransition"),N.return(Promise.reject(Error(n.status.error||"")));if(!n.J||!XD(n.J))return n.Rc("next_mse_closed"),N.return(Promise.reject(Error(n.status.error||"")));if(n.W.D8()!==n.J)return n.Rc("next_mse_mismatch"),N.return(Promise.reject(Error(n.status.error|| "")));M=a_(n);t=M.c9;c=M.FW;Y=M.Y0;n.X.n_(!1,!0);G=DxC(q,t,Y,!n.W.getVideoData().isAd());n.W.setMediaElement(G);(k=n.X.Ny())&&n.W.v5(k.PF,k.OD);n.B&&(n.policy.X||n.W.seekTo(n.W.getCurrentTime()+.001,{Qm:!0,ZA:3,hQ:"gapless_pseudo"}),G.play());b=q.Bg();b.cpn=n.X.getVideoData().clientPlaybackNonce;b.st=""+t;b.et=""+Y;n.W.Xy("gapless",b);n.X.Xy("gaplessTo",{cpn:n.W.getVideoData().clientPlaybackNonce});d=n.X.getPlayerType()===n.W.getPlayerType();n.X.hn(c,!0,!1,d,n.W.getVideoData().clientPlaybackNonce); n.W.hn(n.W.getCurrentTime(),!0,!0,d,n.X.getVideoData().clientPlaybackNonce);n.W.nS();g.L1(function(){!n.W.getVideoData().xl&&n.W.getPlayerState().isOrWillBePlaying()&&n.W.kL()}); R_(n,6);n.dispose();return N.return(Promise.resolve())})}; ZGd=function(n){if(n.W.getVideoData().Z){var q=n.Nn.T().D("html5_gapless_suspend_next_loader")&&n.S===1;n.W.UD(n.J,q,mx1(n));R_(n,3);$xm(n);var M=FgU(n);q=M.oX;M=M.N7;q.subscribe("updateend",n.QR,n);M.subscribe("updateend",n.QR,n);n.QR(q);n.QR(M)}}; $xm=function(n){n.X.unsubscribe("internalvideodatachange",n.l4,n);n.W.unsubscribe("internalvideodatachange",n.l4,n);n.Nn.T().D("html5_gapless_use_format_info_fix")&&(n.X.unsubscribe("internalvideoformatchange",n.l4,n),n.W.unsubscribe("internalvideoformatchange",n.l4,n));n.X.unsubscribe("mediasourceattached",n.l4,n);n.W.unsubscribe("statechange",n.W1,n)}; DxC=function(n,q,M,t){n=n.isView()?n.mediaElement:n;return new g.Z0(n,q,M,t)}; R_=function(n,q){q<=n.status.status||(n.status={status:q,error:null},q===5&&n.bT.resolve())}; mx1=function(n){return n.Nn.T().D("html5_gapless_no_clear_buffer_timeline")&&n.S===1&&D6(n.X.getVideoData())}; a_=function(n){var q=n.X.Q6();q=q.isView()?q.start:0;var M=n.X.getVideoData().isLivePlayback?Infinity:n.X.Df(!0);M=Math.min(n.X$/1E3,M)+q;var t=n.B?100:0;n=M-n.W.Gy()+t;return{gm:q,c9:n,FW:M,Y0:Infinity}}; FgU=function(n){return{oX:n.Z.X.p8,N7:n.Z.W.p8}}; o_=function(n){g.F.call(this);var q=this;this.app=n;this.C=this.W=this.X=null;this.B=!1;this.Z=this.J=null;this.S=uZU(this.app.T());this.N=function(){g.L1(function(){aC1(q)})}}; Rjk=function(n,q,M,t,c){t=t===void 0?0:t;c=c===void 0?0:c;n.d4()||w3(n);n.J=new LW;n.X=q;var Y=M,G=c===0;G=G===void 0?!0:G;var k=n.app.tE(),b=k.getVideoData().isLivePlayback?Infinity:k.Df(!0)*1E3;Y>b&&(Y=b-200,n.B=!0);G&&k.getCurrentTime()>=Y/1E3?n.N():(n.W=k,G&&(G=Y,Y=n.W,n.app.oL.addEventListener(g.CK("vqueued"),n.N),G=isFinite(G)||G/1E3>Y.getDuration()?G:0x8000000000000,n.C=new g.Ji(G,0x8000000000000,{namespace:"vqueued"}),Y.addCueRange(n.C)));G=t/=1E3;Y=q.getVideoData().X;t&&Y&&n.W&&(k=t,b=0, q.getVideoData().isLivePlayback&&(G=Math.min(M/1E3,n.W.Df(!0)),b=Math.max(0,G-n.W.getCurrentTime()),k=Math.min(t,q.Df()+b)),G=UGj(Y,k)||t,G!==t&&n.X.Xy("qvaln",{st:t,at:G,rm:b,ct:k}));q=G;t=n.X;t.getVideoData().jL=!0;t.getVideoData().N=!0;t.HU(!0);Y={};n.W&&(Y=n.W.Cb(),G=n.W.getVideoData().clientPlaybackNonce,Y={crt:(Y*1E3).toFixed(),cpn:G});t.Xy("queued",Y);q!==0&&t.seekTo(q+.01,{Qm:!0,ZA:3,hQ:"videoqueuer_queued"});n.Z=new BRR(n.S,n.app.tE(),n.X,M,n.app,c);M=n.Z;M.status.status!==Infinity&&(R_(M, 1),M.X.subscribe("internalvideodatachange",M.l4,M),M.W.subscribe("internalvideodatachange",M.l4,M),M.Nn.T().D("html5_gapless_use_format_info_fix")&&(M.X.subscribe("internalvideoformatchange",M.l4,M),M.W.subscribe("internalvideoformatchange",M.l4,M)),M.X.subscribe("mediasourceattached",M.l4,M),M.W.subscribe("statechange",M.W1,M),M.X.subscribe("newelementrequired",M.Qp,M),M.l4());return n.J}; aC1=function(n){var q,M,t,c,Y,G,k;g.u(function(b){switch(b.X){case 1:if(n.qm()||!n.J||!n.X)return b.return();n.B&&n.app.tE().b_(!0,!1);q=null;if(!n.Z){b.Fy(2);break}g.Ij(b,3);return g.U(b,A61(n.Z),5);case 5:g.vd(b,2);break;case 3:q=M=g.TU(b);case 2:if(!n.X)return b.return();o_m.KM("vqsp",function(){n.app.NZ(n.X)}); if(!n.X)return b.return();t=n.X.Q6();n.app.T().D("html5_gapless_seek_on_negative_time")&&t&&t.getCurrentTime()<-.01&&n.X.seekTo(0);o_m.KM("vqpv",function(){n.app.playVideo()}); q&&(n.X?(c=q?q.message:"forced",(Y=n.W)==null||Y.Xy("gapfulfbk",{r:c}),n.X.Tc(c)):(G=n.W)==null||G.Xy("gapsp",{}));k=n.J;w3(n);k&&k.resolve();return b.return(Promise.resolve())}})}; w3=function(n,q){q=q===void 0?!1:q;if(n.W){if(n.C){var M=n.W;n.app.oL.removeEventListener(g.CK("vqueued"),n.N);M.removeCueRange(n.C)}n.W=null;n.C=null}n.Z&&(n.Z.status.status!==6&&(M=n.Z,M.status.status!==Infinity&&M.S!==1&&M.Rc("Canceled")),n.Z=null);n.J=null;n.X&&!q&&n.X!==n.app.Xh()&&n.X!==n.app.tE()&&n.X.dispose();n.X&&q&&n.X.VW();n.X=null;n.B=!1}; w1C=function(n){var q;return((q=n.Z)==null?void 0:q.currentVideoDuration)||-1}; zjs=function(n,q,M){if(n.d4())return"qie";if(n.X==null||n.X.qm()||n.X.getVideoData()==null)return"qpd";if(q.videoId!==n.X.HA())return"vinm";if(w1C(n)<=0)return"ivd";if(M!==1)return"upt";if((M=n.Z)==null)n=void 0;else if(M.getStatus().status!==5)n="niss";else if(TRa(M.policy,M.X,M.W,M.X$)!=null)n="pge";else{q=FgU(M);n=q.oX;var t=q.N7;q=g.ic(M.Nn.T().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var c=M.C+q;M.Nn.T().experiments.Hb("html5_pseudogapless_shorts")&&(c=a_(M).c9+q);M=kG(t.Xm(), c);n=kG(n.Xm(),c);n=!(q>0)||M&&n?null:"neb"}return n!=null?n:null}; J6d=function(){g.MB.call(this);var n=this;this.fullscreen=0;this.J=this.Z=this.pictureInPicture=this.X=this.W=this.inline=!1;this.S=function(){n.Lu()}; o91(this.S);this.C=this.getVisibilityState(this.z8(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.vk(),this.Nd(),this.eS(),this.tG())}; J3_=function(n){return!(n.isMinimized()||n.isInline()||n.isBackground()||n.vk()||n.Nd()||n.eS()||n.tG())}; g.zk=function(n){g.F.call(this);this.Q1=n;this.videoData=this.playerState=null}; Cm=function(n,q){g.F.call(this);var M=this;this.data=[];this.Z=n||NaN;this.W=q||null;this.X=new g.zw(function(){Jk(M);Vi(M)}); g.Z(this,this.X)}; BLd=function(n){Jk(n);return n.data.map(function(q){return q.value})}; Jk=function(n){var q=(0,g.jt)();n.data.forEach(function(M){M.expire0));n.Aq()&& TZ1();Error.stackTraceLimit=50;var c=g.ic(q,"html5_idle_rate_limit_ms");c&&Object.defineProperty(window,"requestIdleCallback",{value:function(Y){return window.setTimeout(Y,c)}}); tc_(n.S);Q$s(M("html5_use_ump_request_slicer"));Lkj(M("html5_record_now"));M("html5_disable_streaming_xhr")&&(XH=!1);M("html5_byterate_constraints")&&(vR=!0);M("html5_use_non_active_broadcast_for_post_live")&&(hy=!0);M("html5_enable_encrypted_av1")&&(JU=!0);M("html5_skip_num_channels_for_iamf")&&(q0U=!0);V$1(g.ic(n.experiments,"html5_sticky_duration_mos"))}; nIk=function(n,q){return n.slice(q.length).replace(/_[a-z]/g,function(M){return M.toUpperCase().replace("_","")}).replace("Dot",".")}; qn_=function(n){var q={},M=Object.keys(n.experiments.flags);M=g.S(M);for(var t=M.next();!t.done;t=M.next())if(t=t.value,t.startsWith("cobalt_h5vcc"))if(t.startsWith("cobalt_h5vcc_string")){var c=nIk(t,"cobalt_h5vcc_string");t=Id(n.experiments,t);c&&t&&(q[c]=P3s(c,t))}else t.startsWith("cobalt_h5vcc")&&(c=nIk(t,"cobalt_h5vcc"),t=g.ic(n.experiments,t),c&&t&&(q[c]=P3s(c,t)));return q}; iJj=function(n,q,M,t){t=t===void 0?0:t;g.G6.call(this,M.Uo());var c=this;this.tQ=n;this.videoData=q;this.duration=t;this.X=this.startTimeSecs=0;this.W=new Muj(function(Y,G){return void c.Xy(Y,G)})}; Muj=function(n){this.Xy=n;this.X={}}; tus=function(n,q,M){n.X[q]||(n.Xy("huli-sdai-err",M),n.X[q]=!0)}; cZC=function(n){this.end=this.start=n}; g.nX=function(){this.X=new Map;this.Z=new Map;this.W=new Map}; Ynu=function(n){var q=this;this.Q1=n;this.W=[];this.Z=new Map;this.J=new Map;this.X=new Map;this.vg={RH:function(){return q.Z}, PM1:function(){return q.J}, Xu:function(){return q.W}}; this.S=this.Q1.D("html5_huli_ssdai_deprecate_playback_timeline_id")}; Gud=function(n,q,M){n=n.W;var t=g.oG(n,{a8:q},function(G,k){return G.a8-k.a8}); t=t<0?(t+2)*-1:t;if(t>=0)for(var c=t;c<=t+1&&c=Y.a8-M&&q<=Y.jG+M)return Y}}; kuf=function(n,q){g.rT(n.W,q,function(M,t){return M.a8===t.a8?M.durationMs-t.durationMs:M.a8-t.a8}); n.Z.set(q.cpn,q);q.DH&&!n.S&&n.J.set(q.DH,q);q.Ik&&Kna(n,q.Ik,q)}; bJ1=function(n,q){for(var M=[],t=g.S(n.W),c=t.next();!c.done;c=t.next())c=c.value,q(c)||M.push(c);if(n.Q1.D("html5_sstm_fixes"))for(t=g.S(n.W),c=t.next();!c.done;c=t.next())c=c.value,q(c)&&(n.Z.delete(c.cpn),c.DH&&n.J.delete(c.DH));n.W=M}; dz_=function(n,q){q=g.oG(n.W,{jG:q},function(M,t){return M.jG-t.jG}); return q>=0?n.W[q]:null}; Nxf=function(n,q){var M=n.W.indexOf(q);M>=0&&n.W.splice(M,1);n.Z.delete(q.cpn);q.DH&&n.J.delete(q.DH)}; Kna=function(n,q,M){var t=n.X.get(q);t?(t.push(M),g.Vs(t,function(c,Y){return c.a8-Y.a8})):n.X.set(q,[M])}; g.qn=function(n,q,M,t){g.F.call(this);var c=this;this.api=n;this.Q1=q;this.playback=M;this.app=t;this.RL=new g.nX;this.W=new Map;this.IL=new Map;this.jX=null;this.QS=NaN;this.Yl=this.Ux=null;this.eX=new g.zw(function(){OJs(c,c.QS,c.Ux||void 0)}); this.events=new g.f8(this);this.AE=15E3;this.N=new g.zw(function(){c.B=!0;c.playback.Q2(c.AE);gIs(c);if(c.playback.getVideoData().oI()){var Y;c.Jq({togab:(Y=c.C)==null?void 0:Y.identifier})}c.HJ(!1)},this.AE); this.B=!1;this.S=new Map;this.SX=[];this.C=null;this.JQ=new Set;this.U=[];this.V1=[];this.O9=[];this.Fh=[];this.nm=new Set;this.OY=0;this.xl=!1;this.Yi=new Set;this.yS=new Set;this.Kd=new Set;this.hE=new Set;this.uG=this.rE=0;this.qK=this.Wg=!1;this.vA=this.Z="";this.wJ=null;this.logger=new g.jr("dai");this.vg={o91:function(){return c.W}, RH:function(){return c.X.vg.RH()}, NAl:function(){return c.Z}, g9E:function(Y){c.onCueRangeEnter(c.W.get(Y))}, n9x:function(Y){c.onCueRangeExit(c.W.get(Y))}, Lll:function(Y,G){c.W.set(Y,G)}, TRm:function(Y){c.vA=Y}, t4:function(){return c.t4()}, mHk:function(Y){return c.X.X.get(Y)}, YAk:function(){return c.wJ}, Xu:function(){return c.X.vg.Xu()}}; this.playback.getPlayerType();this.X=new Ynu(this.Q1);this.playback.OV(this);this.rJ=this.Q1.Aq();g.Z(this,this.eX);g.Z(this,this.events);g.Z(this,this.N);this.Q1.D("html5_use_new_ssdai_transition_detector")?this.playback.subscribe("playbackstarted",this.Q8,this):(this.events.V(this.api,g.CK("serverstitchedcuerange"),this.onCueRangeEnter),this.events.V(this.api,g.rj("serverstitchedcuerange"),this.onCueRangeExit));pm(this.app.Uu(),this.playback,!1)}; yZm=function(n,q,M,t,c,Y,G,k){var b=exf(n,Y,Y+c);n.B&&n.Jq({adaftto:1});M||n.Jq({missadcon:1,enter:Y,len:c,aid:k});n.J&&!n.J.Ej&&(n.J.Ej=k);n.qK&&n.Jq({adfbk:1,enter:Y,len:c,aid:k});var d=n.playback;Y>G&&Mn(n,{reason:"enterTime_greater_than_return",a8:Y,jG:G});var N=d.MM()*1E3;Yd&&Mn(n,{reason:"parent_return_greater_than_content_duration",jG:G,fVg:d});(d=dz_(n.X,Y))&&d.jG>Y&&EIJ(n,q.video_id||"", Y,G,d);if(b&&d)for(N=0;N=q)return M}n=g.S(n.W.values());for(M=n.next();!M.done;M=n.next())if(M=M.value,M.start<=q&&M.end>=q)return M}; OJs=function(n,q,M){var t=n.Yl||n.app.tE().getPlayerState();cS(n,!0);n.playback.seekTo(q,M);n=n.app.tE();q=n.getPlayerState();t.isOrWillBePlaying()&&!q.isOrWillBePlaying()?n.playVideo():t.isPaused()&&!q.isPaused()&&n.pauseVideo()}; cS=function(n,q){n.QS=NaN;n.Ux=null;n.eX.stop();n.jX&&q&&n.jX.E$();n.Yl=null;n.jX=null}; Txa=function(n){var q=q===void 0?-1:q;var M=M===void 0?Infinity:M;POa(n,q,M);for(var t=g.S(n.W.values()),c=t.next();!c.done;c=t.next())c=c.value,c.start>=q&&c.end<=M&&(n.playback.removeCueRange(c),n.W.delete(c.getId()),n.Jq({rmAdCR:1}));t=tu(n,q/1E3);q=t.t2;t=t.jV;q&&(t=t*1E3-q.a8,vIU(n,q,t,q.a8+t),t=n.W.get(q.cpn))&&(t.start=q.a8,t.end=q.a8+q.durationMs);if(q=tu(n,M/1E3).t2){var Y;t="playback_timelinePlaybackId_"+q.DH+"_video_id_"+((Y=q.videoData)==null?void 0:Y.videoId)+"_durationMs_"+q.durationMs+ "_enterTimeMs_"+q.a8+"_parentReturnTimeMs_"+q.jG;n.Vh("Invalid_clearEndTimeMs_"+M+"_that_falls_during_"+t+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; lbC=function(n){n.RL.clearAll();n.W.clear();n.X.clear();n.S.clear();n.SX=[];n.C=null;n.JQ.clear();n.Q1.experiments.Hb("html5_ssdai_log_missing_ad_config_reason")&&n.nm.clear();n.U=[];n.V1=[];n.O9=[];n.Fh=[];n.Yi.clear();n.yS.clear();n.Kd.clear();n.hE.clear();n.B=!1;n.OY=0;n.xl=!1;n.rE=0;n.uG=0;n.Wg=!1;n.qK=!1;n.Z="";VDu(n.app.Uu());pm(n.app.Uu(),n.playback,!1);n.IL.clear();n.N.isActive()&&ip(n)}; vIU=function(n,q,M,t){q.durationMs=M;q.jG=t;(t=n.IL.get(q.cpn))?t.Bt(M/1E3):n.Jq({nop_d:q.cpn})}; POa=function(n,q,M){bJ1(n.X,function(t){return t.a8>=q&&t.jG<=M})}; Bxk=function(n,q,M,t,c,Y){if(!n.qK)if(g.Uzf(n,M))n.Jq({gdu:"undec",seg:M,itag:c});else if(q=uIm(n,q,M,t,Y),!(n.playback.getVideoData().oI()&&(q==null?0:q.tT)))return q}; uIm=function(n,q,M,t,c){var Y=n.S.get(M);if(!Y){if(Y=Dzs(n,q))return Y;q=n.Zh(M-1,t!=null?t:2);if(c)return n.Jq({misscue:c,sq:M,type:t,prevsstate:q==null?void 0:q.I$,prevrecord:n.S.has(M-1)}),n.S.get(M-1);if((q==null?void 0:q.I$)===2)return n.Jq({adnf:1,sq:M,type:t,prevrecord:n.S.has(M-1)}),n.S.get(M-1)}return Y}; Dzs=function(n,q){q+=n.QW();var M;if(n.playback.getVideoData().oI()){a:{var t=q*1E3;n=g.S(n.X.W);for(M=n.next();!M.done;M=n.next()){M=M.value;var c=M.gq?M.gq*1E3:M.a8;if(t>=M.a8-1E3&&t<=c+M.durationMs+1E3){t=M;break a}}t=void 0}M={t2:t,jV:q}}else M=tu(n,q),((t=M)==null?0:t.t2)||(M=tu(n,q,1));var Y;return(Y=M)==null?void 0:Y.t2}; AZd=function(n,q){q=q===void 0?"":q;var M=A4(q)||void 0;if(!q||!M){var t;n.Jq({adcfg:(t=q)==null?void 0:t.length,dcfg:M==null?void 0:M.length})}return M}; mzU=function(n){for(var q=g.S(n.W.values()),M=q.next();!M.done;M=q.next())n.playback.removeCueRange(M.value);n.W.clear();n.RL.clearAll()}; $zs=function(n,q,M,t,c,Y,G){if(q&&M){n.vA=M.cpn;n.Q1.D("html5_use_new_ssdai_transition_detector")&&G||n.Hl(M.cpn,M.startTimeSecs||c);Xvu(n,M);var k=sHm(n,"a2a",M);n.Jq(k);n.rE++;n.playback.e$(q,M,t||0,c||0,!!Y,!!G)}else n.Jq({misspbkonadtrans:1,enter:(M==null?void 0:M.cpn)||"",exit:(q==null?void 0:q.cpn)||"",seek:Y,skip:G})}; YY=function(n,q,M){if(M===void 0||!M){M=g.S(n.SX);for(var t=M.next();!t.done;t=M.next()){t=t.value;if(q>=t.start&&q<=t.end)return;if(q===t.end+1){t.end+=1;return}}n.SX.push(new cZC(q))}}; g.Uzf=function(n,q){n=g.S(n.SX);for(var M=n.next();!M.done;M=n.next())if(M=M.value,q>=M.start&&q<=M.end)return!0;return!1}; Fnd=function(n,q,M){var t;if(t=n.playback.getVideoData().oI())t=(t=n.X.Cn({cpn:q}))&&t.Ik?(n=n.X.X.get(t==null?void 0:t.Ik))&&n.slice(-1)[0].cpn===q:!1;return t&&M===2?1E3:0}; EIJ=function(n,q,M,t,c){var Y;q={reason:"overlapping_playbacks",iUm:q,a8:M,jG:t,iCJ:c.DH,G9x:((Y=c.videoData)==null?void 0:Y.videoId)||"",aMX:c.durationMs,S3k:c.a8,zzE:c.jG};Mn(n,q)}; Mn=function(n,q,M){n.playback.Mi(q,M)}; ZJR=function(n,q){var M=[];n=n.X.X.get(q);if(!n)return[];n=g.S(n);for(q=n.next();!q.done;q=n.next())q=q.value,q.cpn&&M.push(q.cpn);return M}; abC=function(n,q,M){var t=0;n=n.X.X.get(M);if(!n)return-1;n=g.S(n);for(M=n.next();!M.done;M=n.next()){if(M.value.cpn===q)return t;t++}return-1}; Rx1=function(n,q){var M=0;n=n.X.X.get(q);if(!n)return 0;n=g.S(n);for(q=n.next();!q.done;q=n.next())q=q.value,q.durationMs!==0&&q.jG!==q.a8&&M++;return M}; oIf=function(n,q,M){var t=!1;if(M=n.X.X.get(M)){M=g.S(M);for(var c=M.next();!c.done;c=M.next())c=c.value,c.durationMs!==0&&c.jG!==c.a8&&(c=c.cpn,q===c&&(t=!0),t&&!n.yS.has(c)&&(n.Jq({decoratedAd:c}),n.yS.add(c)))}}; gIs=function(n){n.rJ&&n.Jq({adf:"0_"+((new Date).getTime()/1E3-n.uG)+"_isTimeout_"+n.B})}; exf=function(n,q,M){if(n.U.length)for(var t=g.S(n.U),c=t.next(),Y={};!c.done;Y={tF:void 0},c=t.next()){Y.tF=c.value;c=Y.tF.startSecs*1E3;var G=Y.tF.Dy*1E3+c;if(q>c&&qc&&M0?n:0}else n.t4().videoData.rZ=n.playback.getCurrentTime()}; zxC=function(n){n.hE.add(n.Z);n.Z="";n.xl=!1}; xzd=function(n,q,M,t){g.F.call(this);var c=this;this.api=n;this.Q1=q;this.X=M;this.app=t;this.S=new Map;this.W=[];this.Z=this.N=null;this.xl=NaN;this.C=this.J=this.U=null;this.B=new g.zw(function(){rZm(c,c.xl,c.U||void 0)}); this.RL=[];this.wJ=new g.zw(function(){var Y=c.RL.pop();if(Y){var G=Y.DH,k=Y.playerVars;Y=Y.playerType;k&&(k.prefer_gapless=!0,c.api.preloadVideoByPlayerVars(k,Y,NaN,"",G),c.RL.length&&g.Jd(c.wJ,4500))}}); this.events=new g.f8(this);this.vg={Kgt:function(){return c.W}}; this.X.getPlayerType();g.Z(this,this.B);g.Z(this,this.wJ);g.Z(this,this.events);this.events.V(this.api,g.CK("childplayback"),this.onCueRangeEnter);this.events.V(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.V(this.api,"presentingplayerstatechange",this.i$)}; qsk=function(n,q,M,t,c,Y){var G=q.cpn,k=q.docid||q.video_id||q.videoId||q.id,b=n.X;Y=Y===void 0?c+t:Y;if(c>Y)return kY(n,"enterAfterReturn enterTimeMs="+c+" is greater than parentReturnTimeMs="+Y.toFixed(3),G,k),"";var d=b.MM()*1E3;if(cd)return b="returnAfterDuration parentReturnTimeMs="+Y.toFixed(3)+" is greater than parentDurationMs="+d+". And timestampOffset in seconds is "+ b.NP(),kY(n,b,G,k),"";d=null;for(var N=g.S(n.W),O=N.next();!O.done;O=N.next()){O=O.value;if(c>=O.a8&&cO.a8)return kY(n,"overlappingReturn",G,k),"";if(Y===O.a8)return kY(n,"outOfOrder",G,k),"";c===O.jG&&(d=O)}G="cs_childplayback_"+QHm++;k={sN:bp(t,!0),X$:Infinity,target:null};var e={DH:G,playerVars:q,playerType:M,durationMs:t,a8:c,jG:Y,le:k};n.W=n.W.concat(e).sort(function(I,L){return I.a8-L.a8}); d?pvR(n,d,{sN:bp(d.durationMs,!0),X$:d.le.X$,target:e}):(q={sN:bp(c,!1),X$:c,target:e},n.S.set(q.sN,q),b.addCueRange(q.sN));q=!0;if(n.X===n.app.tE()&&(b=b.getCurrentTime()*1E3,b>=e.a8&&bq)break;if(Y>q)return{t2:t,jV:q-c};M=Y-t.jG/1E3}return{t2:null,jV:q-M}}; rZm=function(n,q,M){M=M===void 0?{}:M;var t=n.C||n.app.tE().getPlayerState();OG(n,!0);q=isFinite(q)?q:n.X.r9();var c=cRU(n,q);q=c.jV;var Y=(c=c.t2)&&!dG(n,c)||!c&&n.X!==n.app.tE(),G=q*1E3;G=n.Z&&n.Z.start<=G&&G<=n.Z.end;!Y&&G||Nn(n);c?nSd(n,c,q,M,t):Ysu(n,q,M,t,"_execute")}; Ysu=function(n,q,M,t,c){var Y=n.X;Y!==n.app.tE()&&n.app.Ll();n.Q1.D("html5_sabr_csdai_seek_log")||(c="");var G;Y.seekTo(q,Object.assign({},{hQ:"application_timelinemanager"+((G=c)!=null?G:"")},M));GIj(n,t)}; nSd=function(n,q,M,t,c){var Y=dG(n,q);if(!Y){q.playerVars.prefer_gapless=!0;var G=new g.sh(n.Q1,q.playerVars);G.DH=q.DH;n.api.FR(G,q.playerType)}G=n.app.tE();Y||G.addCueRange(q.le.sN);G.seekTo(M,Object.assign({},{hQ:"application_timelinemanager"},t));GIj(n,c)}; GIj=function(n,q){n=n.app.tE();var M=n.getPlayerState();q.isOrWillBePlaying()&&!M.isOrWillBePlaying()?n.playVideo():q.isPaused()&&!M.isPaused()&&n.pauseVideo()}; OG=function(n,q){n.xl=NaN;n.U=null;n.B.stop();n.J&&q&&n.J.E$();n.C=null;n.J=null}; dG=function(n,q){n=n.app.tE();return!!n&&n.getVideoData().DH===q.DH}; KLd=function(n){var q=n.W.find(function(c){return dG(n,c)}); if(q){var M=n.app.tE();Nn(n);var t=new g.uN(8);q=tMm(n,q)/1E3;Ysu(n,q,{},t,"_force");M.Xy("forceParentTransition",{childPlayback:1});n.X.Xy("forceParentTransition",{parentPlayback:1})}}; bZJ=function(n,q,M){q=q===void 0?-1:q;M=M===void 0?Infinity:M;for(var t=q,c=M,Y=g.S(n.S),G=Y.next();!G.done;G=Y.next()){var k=g.S(G.value);G=k.next().value;k=k.next().value;k.X$>=t&&k.target&&k.target.jG<=c&&(n.X.removeCueRange(G),n.S.delete(G))}t=q;c=M;Y=[];G=g.S(n.W);for(k=G.next();!k.done;k=G.next())if(k=k.value,k.a8>=t&&k.jG<=c){var b=n;b.N===k&&Nn(b);dG(b,k)&&b.app.Ll()}else Y.push(k);n.W=Y;t=cRU(n,q/1E3);q=t.t2;t=t.jV;q&&(t*=1E3,kIa(n,q,t,q.jG===q.a8+q.durationMs?q.a8+t:q.jG));(q=cRU(n,M/1E3).t2)&& kY(n,"Invalid clearEndTimeMs="+M+" that falls during playback={timelinePlaybackId="+(q.DH+" video_id="+q.playerVars.video_id+" durationMs="+q.durationMs+" enterTimeMs="+q.a8+" parentReturnTimeMs="+q.jG+"}.Child playbacks can only have duration updated not their start."))}; kIa=function(n,q,M,t){q.durationMs=M;q.jG=t;t={sN:bp(M,!0),X$:M,target:null};pvR(n,q,t);dG(n,q)&&n.app.tE().getCurrentTime()*1E3>M&&(q=tMm(n,q)/1E3,M=n.app.tE().getPlayerState(),Ysu(n,q,{},M,"_update"))}; kY=function(n,q,M,t){n.X.Xy("timelineerror",{e:q,cpn:M?M:void 0,videoId:t?t:void 0})}; NaU=function(n){n&&n!=="web"&&dru.includes(n)}; gG=function(){g.F.call(this);this.X=new Cm(5,null);g.Z(this,this.X);this.W=new Cm(15,null);g.Z(this,this.W)}; T2d=function(n,q){return q?!!n.X.get(q):!1}; OZ1=function(n,q){n.dataset.version=q}; ES1=function(n){g.w.call(this,{j:"div",aL:["html5-video-player"],K:{tabindex:n.T().disableOrganicUi?"":"-1",id:n.webPlayerContextConfig.rootElementId},L:[{j:"div",Y:g.SW.VIDEO_CONTAINER,K:{"data-layer":"0"}}]});var q=this;this.app=n;this.zR=this.JE(g.SW.VIDEO_CONTAINER);this.mL=new g.ap(0,0,0,0);this.Mn=null;this.E6=new g.ap(0,0,0,0);this.b2=this.pj=this.JZ=NaN;this.Qy=this.KS=this.OS=this.sF=!1;this.Fq=NaN;this.hs=!1;this.Kg=null;this.d5=new g.zw(function(){q.app.T().D("web_enable_smart_zoom")&& q.app.oL.getInternalApi().isAutocropEnabled()||q.resize()},100); this.Vz=function(){q.element.focus({preventScroll:!0})}; this.q8=function(){q.app.oL.publish("playerUnderlayVisibilityChange","visible");q.Mn.classList.remove(g.SW.VIDEO_CONTAINER_TRANSITIONING);q.Mn.removeEventListener(B8,q.q8);q.Mn.removeEventListener("transitioncancel",q.q8)}; this.Qu=this.J2=!1;var M=this.element.addEventListener,t=this.element.removeEventListener;this.addEventListener=function(Y,G,k){M.apply(q.element,[Y,G,k])}; this.removeEventListener=function(Y,G,k){t.apply(q.element,[Y,G,k])}; var c=n.T();c.transparentBackground&&this.ue("ytp-transparent");c.controlsType==="0"&&this.ue("ytp-hide-controls");g.MN(this.element,"ytp-exp-bottom-control-flexbox");g.MN(this.element,"ytp-modern-caption");c.D("enable_new_paid_product_placement")&&!g.PN(c)&&g.MN(this.element,"ytp-exp-ppp-update");g.MN(this.element,"ytp-livebadge-color");if(c.D("delhi_modern_web_player"))switch(g.MN(this.element,"ytp-delhi-modern"),c.D("delhi_modern_web_player_icons")&&g.MN(this.element,"ytp-delhi-modern-icons"), c.D("delhi_modern_web_player_horizontal_volume_controls")&&g.MN(this.element,"ytp-delhi-horizontal-volume-controls"),Id(c.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.MN(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.MN(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.MN(this.element,"ytp-delhi-modern-with-exclusion")}OZ1(this.element,gSJ(n));this.sH=!1;this.rh=new g.JE(NaN,NaN);e1j(this);this.V(n.oL,"onMutedAutoplayChange", this.onMutedAutoplayChange);g.Z(this,this.d5)}; e1j=function(n){function q(G){n.Mn&&eq(n);EG(n)!==n.hs&&n.resize();n.app.T().D("web_enable_smart_zoom")&&n.Cc&&(G.state.isPaused()?n.Cc.pause():g.dU(G,8)&&n.Cc.playState==="paused"&&n.Cc.play())} function M(G,k){n.OQ(G,k)} function t(G){G.getVideoData()&&n.updateVideoData(G.getVideoData())} function c(){n.E6=new g.ap(0,0,0,0);n.mL=new g.ap(0,0,0,0)} var Y=n.app.oL;Y.addEventListener("initializingmode",c);Y.addEventListener("videoplayerreset",t);Y.addEventListener("videodatachange",M);Y.addEventListener("presentingplayerstatechange",q);n.addOnDisposeCallback(function(){Y.removeEventListener("initializingmode",c);Y.removeEventListener("videoplayerreset",t);Y.removeEventListener("videodatachange",M);Y.removeEventListener("presentingplayerstatechange",q)})}; WLd=function(n){var q=n.app.tE();if(q=q?q.getVideoData():null){if(g.i3(q)||g.tv(q)||g.co(q))return 16/9;if(TT(q)&&q.Z.X)return n=q.Z.videoInfos[0].video,h1f(n.width,n.height)}return(n=n.Mn)?h1f(n.videoWidth,n.videoHeight):16/9}; yRs=function(n,q,M,t){var c=M,Y=h1f(q.width,q.height);n.sF?c=MY?{width:q.width,height:q.width/c,aspectRatio:c}:cc?n.width=n.height*M:Mb;if(EG(n)){var d=WLd(n);var N=isNaN(d)||g.oa||yP&&g.gz||b;Ra&&!g.Zy(601)?d=c.aspectRatio:N=N||Y.controlsType==="3";N?b?(N=Y.D("place_shrunken_video_on_left_of_player")?16:n.getPlayerSize().width-q.width-16,d=Math.max((n.getPlayerSize().height-q.height)/2,0),N=new g.ap(N,d,q.width, q.height),n.Mn.style.setProperty("border-radius","12px")):N=new g.ap(0,0,q.width,q.height):(M=c.aspectRatio/d,N=new g.ap((q.width-c.width/M)/2,(q.height-c.height)/2,c.width/M,c.height),M===1&&g.gz&&(d=N.width-q.height*d,d>0&&(N.width+=d,N.height+=d)));g.Yi(n.element,"ytp-fit-cover-video",Math.max(N.width-c.width,N.height-c.height)<1);if(k||n.sH)n.Mn.style.display="";n.hs=!0}else{N=-q.height;Ra?N*=window.devicePixelRatio:g.vN&&(N-=window.screen.height);N=new g.ap(0,N,q.width,q.height);if(k||n.sH)n.Mn.style.display= "none";n.hs=!1}Rp(n.E6,N)||(n.E6=N,g.d1(Y)?(n.Mn.style.setProperty("width",N.width+"px","important"),n.Mn.style.setProperty("height",N.height+"px","important")):g.qv(n.Mn,N.getSize()),t=new g.wi(N.left,N.top),g.xZ(n.Mn,Math.round(t.x),Math.round(t.y)),t=!0);q=new g.ap((q.width-c.width)/2,(q.height-c.height)/2,c.width,c.height);Rp(n.mL,q)||(n.mL=q,t=!0);g.wK(n.Mn,"transform",M===1?"":"scaleX("+M+")");G&&b!==n.KS&&(b&&(n.Mn.addEventListener(B8,n.q8),n.Mn.addEventListener("transitioncancel",n.q8),n.Mn.classList.add(g.SW.VIDEO_CONTAINER_TRANSITIONING)), n.KS=b,n.app.oL.publish("playerUnderlayVisibilityChange",n.KS?"transitioning":"hidden"));return t}; j3d=function(n){n.J2=!n.J2;n.Qu=!0;n.element.classList.toggle("ytp-retro-player",n.J2);n.resize();n.Qu=!1;n.app.oL.Km("onRetroModeChanged",n.J2)}; Ssd=function(){this.csn=g.ye();this.clientPlaybackNonce=null;this.elements=new Set;this.Z=new Set;this.X=new Set;this.W=new Set}; IMs=function(n){if(n.csn!==g.ye())if(n.csn==="UNDEFINED_CSN")n.csn=g.ye();else{var q=g.ye(),M=g.WJ();if(q&&M){n.csn=q;for(var t=g.S(n.elements),c=t.next();!c.done;c=t.next())(c=c.value.visualElement)&&c.isClientVe()&&q&&M&&(g.EH("combine_ve_grafts")?GF(cR(),c,M):g.Jo(g.ZN)(void 0,q,M,c))}if(q)for(n=g.S(n.X),M=n.next();!M.done;M=n.next())(M=M.value.visualElement)&&M.isClientVe()&&g.Cy(q,M)}}; g.hu=function(n,q,M,t){g.F.call(this);var c=this;this.logger=new g.jr("App");this.J$=this.qc=!1;this.BN={};this.HF=[];this.GQ=!1;this.rz=null;this.intentionalPlayback=!1;this.Ju=!0;this.Ob=!1;this.o7=this.Kt=this.UI=null;this.uj=!0;this.mediaElement=this.iG=null;this.gQ=NaN;this.Gi=!1;this.hg=this.fq=this.QA=this.screenLayer=this.playlist=null;this.jr=[];this.xa=0;this.vg={Uu:function(){return c.lz}, O3g:function(){return c.QA}}; this.logger.debug("constructor begin");if(!M)throw Error("b/179532961");this.W9=(q==null?void 0:q.args)||{};this.webPlayerContextConfig=M;q=this.W9;this.Q1=new WN(q,M,M.canaryState,t,this);g.Z(this,this.Q1);if(this.D("html5_player_intkey")){var Y=this.LQ(),G=this.eT();t=Y==null?void 0:Y.X.OT(fMs);Y=Y==null?void 0:Y.X.OT(HZm);var k=G==null?void 0:G.X.OT(LLs);G=G==null?void 0:G.X.OT(P5f);this.xO("intkey",{input:M.serializedClientExperimentFlags,ub:""+t,ui:""+Y,cb:""+k,ci:""+G})}p1R(this.Q1);M=qn_(this.Q1); this.Q1.Aq()&&this.xO("h5vcc",M);this.Q1.D("web_player_misc_bugfix_b")||iOs();this.Q1.experiments.Hb("jspb_serialize_with_worker")&&F7R();this.Q1.experiments.Hb("gzip_gel_with_worker")&&vid();this.Q1.W&&!vSa&&(window.addEventListener(nl?"touchstart":"click",v_s,{capture:!0,passive:!0}),vSa=!0);this.D("html5_onesie")&&(this.kY=new Nq(this.Q1),g.Z(this,this.kY));this.hM=pp(Yl(this.Q1)&&!0,q.enablesizebutton);this.sI=pp(!1,q.player_wide);this.visibility=new J6d;g.Z(this,this.visibility);this.D("web_log_theater_mode_visibility")&& this.xK(pp(!1,q.player_wide));this.qc=pp(!1,q.external_list);this.events=new g.f8(this);g.Z(this,this.events);this.D("start_client_gcf")&&(Ir(Ph(),{Zd:tW,ox:pCU()}),this.FS=Ph().resolve(tW),MAu(this.FS));this.NOl=new u3;g.Z(this,this.NOl);this.T9=new Ssd;M=new Bo;this.oL=new g.Jv(this,M);g.Z(this,this.oL);this.template=new ES1(this);g.Z(this,this.template);this.appState=1;this.K_=Taf(this);g.Z(this,M);M={};this.PT=(M.internalvideodatachange=this.rQ,M.playbackready=this.InL,M.playbackstarted=this.FAx, M.statechange=this.jmy,M);this.Fd=new W0(this.oL);this.bY=lMk(this);M=this.Q1.C;!1!==M&&this.xO("badps",{hbp:M,hostname:window.location.hostname,ps:this.Q1.playerStyle});this.Si=new kQJ(this.Q1,this.bY);this.oL.publish("csiinitialized");if(this.webPlayerContextConfig.wasmModuleUrl||PtC(this.bY))(M=g.ic(this.Q1.experiments,"html5_wasm_initialization_delay_ms"))?(M=new g.zw(this.Z9,M,this),g.Z(this,M),M.start()):this.Z9();M=10;g.hi(this.Q1)&&(M=3);HN(this.Q1)&&(M=g.ic(this.Q1.experiments,"tvhtml5_unplugged_preload_cache_size")); this.lz=new g.x0(this.oL,M);M=UrJ(this);this.lz.Dv(M);uod(this);M={};this.EM=(M.airplayactivechange=this.GXX,M.airplayavailabilitychange=this.nQx,M.beginseeking=this.rQX,M.sabrCaptionsDataLoaded=this.h9l,M.endseeking=this.Dng,M.internalAbandon=this.oQl,M.internalaudioformatchange=this.qqb,M.internalvideodatachange=this.EQg,M.internalvideoformatchange=this.Uny,M.liveviewshift=this.Czb,M.playbackstalledatstart=this.LiX,M.progresssync=this.s8J,M.onAbnormalityDetected=this.inx,M.onSnackbarMessage=this.e9m, M.onLoadProgress=this.mny,M.SEEK_COMPLETE=this.Ki1,M.SEEK_TO=this.yQk,M.onVideoProgress=this.Bom,M.onLoadedMetadata=this.Pzd,M.onAutoplayBlocked=this.lHy,M.onPlaybackPauseAtStart=this.tcE,M.playbackready=this.Yq1,M.statechange=this.wg,M.newelementrequired=this.ZR,M.heartbeatparams=this.AQE,M.videoelementevent=this.ToE,M.drmoutputrestricted=this.fHs,M.signatureexpired=this.HnJ,M.nonfatalerror=this.Onm,M.reloadplayer=this.Vck,M);this.g6=new g.f8(this);g.Z(this,this.g6);this.aO=new gG;g.Z(this,this.aO); this.vG=this.JV=-1;this.Fl=new g.zw(this.template.resize,16,this.template);g.Z(this,this.Fl);this.tQ=new xzd(this.oL,this.Q1,this.Xh(),this);this.d9=new o_(this);g.Z(this,this.d9);this.GH=new Fc(this);g.Z(this,this.GH);NaU(this.Q1.X.c);this.events.V(this.oL,g.CK("appapi"),this.wgg);this.events.V(this.oL,g.rj("appapi"),this.Jqb);this.events.V(this.oL,g.CK("appprogressboundary"),this.Xmm);this.events.V(this.oL,g.rj("applooprange"),this.Ga);this.events.V(this.oL,"presentingplayerstatechange",this.i$); this.events.V(this.oL,"resize",this.ayb);this.template.dJ(cT(document,n));this.events.V(this.oL,"offlineslatestatechange",this.j8l);this.events.V(this.oL,"sabrCaptionsTrackChanged",this.AgL);this.events.V(this.oL,"sabrCaptionsBufferedRangesUpdated",this.DMJ);this.bY.G.T().jL&&ly(this.bY,"offline");this.Q1.hE&&g.SC("ux",g.m2);n=g.ic(this.Q1.experiments,"html5_defer_fetch_att_ms");this.aR=new g.zw(this.Hus,n,this);g.Z(this,this.aR);this.F_().ET()&&(g.lJ()&&this.F_().wJ.push("remote"),BaR(this));this.Si.tick("fs"); Drd(this);this.Q1.hE&&ly(this.bY,"ux",!0);g.t8(this.bY.G.T())&&ly(this.bY,"embed");this.D("web_player_sentinel_is_uniplayer")||g.PJ(new g.aE("Player experiment flags missing","web_player_sentinel_is_uniplayer"));n=this.D("web_player_sentinel_yt_experiments_sync");M=g.EH("web_player_sentinel_yt_experiments_sync");n!==M&&g.PJ(new g.aE("b/195699950",{yt:n,player:M}));this.NU=ARu(this);if(n=g.ic(this.Q1.experiments,"html5_block_pip_safari_delay"))this.wu=new g.zw(this.OF,n,this),g.Z(this,this.wu);vk= this.Q1.Kd;this.oL.publish("applicationInitialized");this.logger.debug("constructor end")}; ARu=function(n){function q(M){M.stack&&M.stack.indexOf("player")!==-1&&n.tE().JL(M)} vJ.subscribe("handleError",q);wS.push(q);return function(){vJ.unsubscribe("handleError",q);var M=wS.indexOf(q);M!==-1&&wS.splice(M,1)}}; UrJ=function(n){var q=new g.sh(n.Q1,n.W9);n.oL.publish("initialvideodatacreated",q);return WS(n,1,q,!1)}; uod=function(n){var q=n.Xh();q.setPlaybackRate(n.Q1.J?1:mr1(n,Number(g.vf("yt-player-playback-rate"))||1));q.xR(n.PT,n);q.X4()}; lMk=function(n){var q="",M=gSJ(n);M.indexOf("//")===0&&(M=n.Q1.protocol+":"+M);var t=M.lastIndexOf("/base.js");t!==-1&&(q=M.substring(0,t+1));if(M=Error().stack)if(M=M.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))M=M[1],M.includes(q)||g.PJ(Error("Player module URL mismatch: "+(M+" vs "+q+".")));q=new fa_(n.oL,q);M={};Hca(q,(M.destroyed=function(){n.onApiChange()},M)); return q}; Taf=function(n){if(n.Q1.storeUserVolume){n=g.vf("yt-player-volume")||{};var q=n.volume;n={volume:isNaN(q)?100:g.aR(Math.floor(q),0,100),muted:!!n.muted}}else n={volume:100,muted:n.Q1.mute};return n}; y2=function(n){n.mediaElement=n.Q1.deviceIsAudioOnly?new g.Vu(g.eO("AUDIO")):$0.pop()||new g.Vu(g.eO("VIDEO"));g.Z(n,n.mediaElement);n.tE().setMediaElement(n.mediaElement);try{n.Q1.Kn?(n.fq&&n.events.AQ(n.fq),n.fq=n.events.V(n.mediaElement,"volumechange",n.uVJ)):(n.mediaElement.BF(n.K_.muted),n.mediaElement.setVolume(n.K_.volume/100))}catch(c){n.Rc("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(c&&typeof c==="object"&&"message"in c&&typeof c.message==="string"&&c.message.replace(/[;:,]/g, "_")));return}g.fL(n.g6);$ru(n);var q=n.template,M=n.mediaElement.ji();q.Mn=M;q.Qy=!1;q.Mn.parentNode||yf(q.zR,q.Mn,0);q.E6=new g.ap(0,0,0,0);Xxa(q);eq(q);M=q.Mn;g.MN(M,"video-stream");g.MN(M,g.SW.MAIN_VIDEO);var t=q.app.T();t.Es&&M.setAttribute("data-no-fullscreen","true");t.D("html5_local_playsinline")?"playsInline"in Wt()&&(M.playsInline=!0):t.wp&&(M.setAttribute("webkit-playsinline",""),M.setAttribute("playsinline",""));t.Jz&&q.Mn&&q.V(M,"click",M.play,M);try{n.mediaElement.activate()}catch(c){n.Rc("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(c&&typeof c==="object"&&"message"in c&&typeof c.message==="string"&&c.message.replace(/[;:,]/g,"_")))}}; ZZd=function(n){if(!FLk(n)){var q=n.Xh().Q6();q&&(q=q.qz(),q instanceof Promise&&q.catch(function(){})); sG(n,ae(n.getPlayerStateObject()))}}; $ru=function(n){var q=n.mediaElement;SV()?n.g6.V(q,"webkitpresentationmodechanged",n.CYE):window.document.pictureInPictureEnabled&&(n.g6.V(q,"enterpictureinpicture",function(){n.c5(!0)}),n.g6.V(q,"leavepictureinpicture",function(){n.c5(!1)})); zH&&(n.g6.V(q,"webkitbeginfullscreen",function(){n.BR(3)}),n.g6.V(q,"webkitendfullscreen",function(){n.BR(0)}))}; aMk=function(n,q){var M=q.getPlayerType(),t=n.lz.Z[M]||null;q!==n.Xh()&&q!==t&&(t==null||t.dispose(),n.lz.Z[M]=q)}; R1d=function(n,q){q=q===void 0?!0:q;n.logger.debug("start clear presenting player");var M;if(M=n.hg){M=n.hg;var t=n.mediaElement;M=!!t&&t===M.mediaElement}M&&(n.n_(),y2(n));M=n.tE();M.n_(!q);M.I3(n.EM,n);M.getPlayerType()!==1&&M.dispose();q=n.lz;q.W=q.X;Qi(q);n.logger.debug("finish clear presenting player")}; g.oSm=function(n,q,M,t){var c=n.Si;q===2&&(c=new kQJ(n.Q1));return new g.tH(n.Q1,q,c,n.template,function(Y,G,k){n.oL.publish(Y,G,k)},function(){return n.oL.getVisibilityState()},n.visibility,n,M,t)}; WS=function(n,q,M,t,c){n=g.oSm(n,q,M,c);n=new g.G6(n);t&&n.X4();return n}; Xr=function(n,q){return n.Fb(q)?n.Xh():q}; jq=function(n,q){var M=n.tE();return q===n.Xh()&&n.Fb(q)&&n.Fb(M)?M:q}; JRs=function(n){n.logger.debug("start application playback");if(n.Xh().getPlayerState().isError())n.logger.debug("start application playback done, player in error state");else{var q=Sq(n);n.F_().isLoaded();q&&n.E5(6);wxd(n);mja(n.bY)||z1a(n)}}; z1a=function(n){if(!Sq(n)){var q=uy(n.bY);q&&!q.created&&Lsm(n.bY)&&(n.logger.debug("reload ad module"),q.create())}}; wxd=function(n){n.logger.debug("start presenter playback");var q=n.getVideoData(),M=n.bY;mja(M)||M.aq();!Br&&M.G.D("html5_allow_asmjs")&&oNR(M);ly(M,"embed");ly(M,"kids");ly(M,"remote");ly(M,"miniplayer");ly(M,"offline");ly(M,"unplugged");ly(M,"ypc",!1,!0);ly(M,"yto",!1,!0);ly(M,"webgl",!1,!0);$jd(M)||(ly(M,"captions",!0),ly(M,"endscreen"),M.Ph(),ly(M,"creatorendscreen",!0));M.Re();M.G.publish("modulesCreated");n.oL.publish("videoready",q)}; IA=function(n){n=n.F_();n.ET();return Nm(n)}; Drd=function(n){n.logger.debug("start prepare initial playback");n.tS();var q=n.W9;y2(n);n.events.V(window,"resize",n.STJ);var M=n.F_();n.oL.t1("onVolumeChange",n.K_);if(q&&OcU(q)){var t=j0(n.Q1);t&&!n.qc&&(q.fetch=0);var c=g.t8(n.Q1);c&&!n.qc&&(q.fetch=0);fX(n,q);g.t8(n.Q1)&&n.Si.tick("ep_pr_s");if(!t||n.qc)if(c&&!n.qc)VMf(n);else if(!M.ET())n.playlist.onReady(function(){HS(n)})}n.NZ(n.Xh(),!1,!0); g.C(n.Xh().getPlayerState(),128)||(q=P8J(!n.Q1.deviceIsAudioOnly),q==="fmt.noneavailable"?n.Rc("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):q==="html5.missingapi"?n.Rc(q,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):M&&M.ET()&&IA(n)&&(n.Q1.i7||n.Q1.JB)?LX(n):M.Vc?n.oL.mutedAutoplay({durationMode:M.mutedAutoplayDurationMode}):g.vf("yt-player-playback-on-reload")?(g.tx("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!n.Q1.wJ}),g.Pf("yt-player-playback-on-reload",!1), LX(n)):l4(n.Q1)||C5d(n),g.fl(n.Q1)||s8(n.Q1)==="MWEB"?(g.JJ(g.CL(),function(){PS(n)}),g.JJ(g.CL(),function(){L8s()})):(PS(n),L8s()),n.logger.debug("finish prepare initial playback"))}; PS=function(n){if(!n.D("use_rta_for_player"))if(n.D("fetch_att_independently"))g.Jd(n.aR);else{var q=n.getVideoData().botguardData;q&&g.eW(q,n.Q1,n.getVideoData().qH||"")}}; C5d=function(n){n.logger.debug("start initialize to CUED mode");n.oL.publish("initializingmode");n.E5(2);ly(n.bY,"remote");ly(n.bY,"miniplayer");n.logger.debug("initialized to CUED mode")}; LX=function(n){n.logger.debug("start initialize application playback");var q=n.Xh();if(g.C(q.getPlayerState(),128))return!1;q=q.getVideoData();IA(n)&&n.Q1.JB&&($0.length&&n.J$?(vS(n,{muted:!1,volume:n.K_.volume},!1),Tr(n,!1)):$0.length||n.K_.muted||(vS(n,{muted:!0,volume:n.K_.volume},!1),Tr(n,!0)));IA(n)&&g.t8(n.Q1)&&q.mutedAutoplay&&(vS(n,{muted:!0,volume:n.K_.volume},!1),Tr(n,!0));q.VL&&vS(n,{muted:!0,volume:n.K_.volume},!1);rR_(n,1,q,!1);var M=n.Xh();n.oL.publish("initializingmode");n.NZ(M);n.E5(3); var t;if(!(t=!n.Q1.jd)){if(t=n.hg){t=n.hg;var c=n.mediaElement;t=!!c&&c===t.mediaElement}t=t&&n.GQ}t&&(n.n_(),y2(n),M.setMediaElement(n.mediaElement));M.Zc();if(g.C(M.getPlayerState(),128))return!1;q.uh||sG(n,3);return n.GQ=!0}; Sq=function(n){n=rZ(n.bY);return!!n&&n.loaded}; xra=function(n,q){if(!n.iG)return!1;var M=n.iG.startTimeMs*.001-1,t=n.iG.endTimeMs*.001;n.iG.type==="repeatChapter"&&t--;return Math.abs(q-M)<=1E-6||Math.abs(q-t)<=1E-6||q>=M&&q<=t}; Q3s=function(n){var q=n.tE();lB(q.getVideoData())&&!q.RC()&&(q=lp(n)*1E3-n.getVideoData().MN,n.D("html5_gapless_new_slr")?(n=n.GH,UG(n.app,"gaplessshortslooprange"),q=new g.Ji(0,q,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(n=n.app.tE())&&n.addCueRange(q)):n.setLoopRange({startTimeMs:0,endTimeMs:q,type:"shortsLoop"}))}; pxR=function(n){var q=n.Xh();if(!(g.C(q.getPlayerState(),64)&&n.F_().isLivePlayback&&n.iG.startTimeMs<5E3)){if(n.iG.type==="repeatChapter"){var M,t=(M=IJk(n.zk()))==null?void 0:M.lr(),c;M=(c=n.getVideoData())==null?void 0:c.JB;t instanceof g.xx&&M&&(c=M[Oi(M,n.iG.startTimeMs)],t.renderChapterSeekingAnimation(0,c.title));isNaN(Number(n.iG.loopCount))?n.iG.loopCount=0:n.iG.loopCount++;n.iG.loopCount===1&&n.oL.Km("innertubeCommand",n.getVideoData().cBm)}t={hQ:"application_loopRangeStart"};if(n.iG.type=== "clips"||n.iG.type==="shortsLoop")t.seekSource=58;q.seekTo(n.iG.startTimeMs*.001,t)}}; mr1=function(n,q){var M=n.oL.getAvailablePlaybackRates();q=Number(q.toFixed(2));n=M[0];M=M[M.length-1];q<=n?q=n:q>=M?q=M:(n=Math.floor(q*100+.001)%5,q=n===0?q:Math.floor((q-n*.01)*100+.001)/100);return q}; lp=function(n,q){q=n.Cn({playerType:q});if(!q)return n.lz.X.Df();q=Xr(n,q);return up(n,q.Df(),q)}; up=function(n,q,M){if(n.Fb(M)&&(M=M.getVideoData(),!BS(n))){n=n.tQ;for(var t=g.S(n.W),c=t.next();!c.done;c=t.next())if(c=c.value,M.DH===c.DH){q+=c.a8/1E3;break}t=q;n=g.S(n.W);for(c=n.next();!c.done;c=n.next()){c=c.value;if(M.DH===c.DH)break;var Y=c.a8/1E3;if(Y1&&(c=!1);n.Gi&&c===q||(t=t.lock(c?"portrait":"landscape"),t!=null&&t.catch(function(){}),n.Gi=!0)}else n.Gi&&(n.Gi=!1,t.unlock())}; Fr=function(n,q,M){n.oL.publish(q,M);var t=g.hi(n.Q1)||g.d1(n.Q1)||g.BD(n.Q1);if(M&&t){switch(q){case "cuerangemarkersupdated":var c="onCueRangeMarkersUpdated";break;case "cuerangesadded":c="onCueRangesAdded";break;case "cuerangesremoved":c="onCueRangesRemoved"}c&&n.oL.Km(c,M.map(function(Y){return{getId:function(){return this.id}, end:Y.end,id:Y.getId(),namespace:Y.namespace==="ad"?"ad":"",start:Y.start,style:Y.style,visible:Y.visible,markerPositionMs:Y.markerPositionMs}}))}}; Zk=function(n,q,M,t,c,Y){M=M===void 0?!0:M;var G=n.Cn({playerType:c});if(!G||(G.getPlayerType()!==2||n.Fb(G))&&!g.qm(G.getVideoData())){var k=n.lz.zp;k?k.seekTo(q,{zV:!M,g$:t,hQ:"application",seekSource:Y}):(G&&G===n.Xh()&&n.iG&&!xra(n,q)&&n.setLoopRange(null),n.seekTo(q,M,t,c,Y,"_request"))}}; e$f=function(n,q,M,t){M&&(n.n_(),y2(n));M=n.tE();M.Xl(q);var c=n.getVideoData(),Y={};Y.video_id=c.videoId;Y.adformat=c.adFormat;c.isLivePlayback||(Y.start=M.getCurrentTime(),Y.resume="1");c.isLivePlayback&&Z6(c)&&g.e$(n.Q1)&&(Y.live_utc_start=M.uY(),Y.resume="1");c.IL&&(Y.vvt=c.IL);c.C&&(Y.vss_credentials_token=c.C,Y.vss_credentials_token_type=c.Ww);c.oauthToken&&(Y.oauth_token=c.oauthToken);Y.autoplay=1;Y.reload_count=c.Yi+1;Y.reload_reason=q;c.Nh&&(Y.unplugged_partner_opt_out=c.Nh);c.Xw&&(Y.ypc_is_premiere_trailer= c.Xw);c.playerParams&&(Y.player_params=c.playerParams);n.loadVideoByPlayerVars(Y,void 0,!0,void 0,void 0,t);q==="signature"&&n.QA&&z1a(n)}; EfJ=function(n,q){n.F_().autonavState=q;g.Pf("yt-player-autonavstate",q);n.oL.publish("autonavchange",q)}; h$C=function(n){var q=n.getVideoData().WR,M=n.Q1.eX,t=n.isInline()&&!n.getVideoData().v2,c=n.mediaElement;q||M||t?c.Nf():(c.HG(),vS(n,n.K_))}; Dk=function(n){var q=uy(n.zk());q&&q.created&&(n.logger.debug("reset ad module"),q.destroy())}; BS=function(n){return n.getVideoData().enableServerStitchedDai&&!!n.QA}; W0s=function(n,q){q.bounds=n.getBoundingClientRect();for(var M=g.S(["display","opacity","visibility","zIndex"]),t=M.next();!t.done;t=M.next())t=t.value,q[t]=Vf(n,t);q.hidden=!!n.hidden}; gSJ=function(n){var q=n.webPlayerContextConfig.trustedJsUrl;return q?y8(q).toString():n.webPlayerContextConfig.jsUrl}; yDa=function(n,q){var M=n.Cn({playerType:1});if(M){if(M.getVideoData().clientPlaybackNonce===q)return M;if((n=n.d9.X)&&n.getVideoData().clientPlaybackNonce===q)return n}return null}; suj=function(n){return n.name==="TypeError"&&n.stack.includes("/s/player/")&&AP()<=105}; Xwk=function(n){return n.isTimeout?"NO_BID":"ERR_BID"}; juC=function(){var n=null;P$j().then(function(q){return n=q},function(q){return n=Xwk(q)}); return n}; Sjk=function(){var n=$4(1E3,"NO_BID");return g.B5(azj([P$j(),n]).M9(Xwk),function(){n.cancel()})}; aA=function(n){return n.rZ?g.D1().OT(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; RA=function(n){this.player=n;this.Z=this.X=1}; H2d=function(n,q,M,t,c,Y){q.client||(q.client={});n.player.T().D("h5_remove_url_for_get_ad_break")||(q.client.originalUrl=M);var G=Ms(M),k=g.bm(M)?!1:!0;(G||k)&&typeof Intl!=="undefined"&&(q.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);k=g.bm(M)?!1:!0;if(G||k||t!==""){var b={};M=rS(GH(t)).split("&");var d=new Map;M.forEach(function(N){N=N.split("=");N.length>1&&d.set(N[0].toString(),decodeURIComponent(N[1].toString()))}); d.has("bid")&&(b.bid=d.get("bid"));b.params=[];IQs.forEach(function(N){d.has(N)&&(N={key:N,value:d.get(N)},b.params.push(N))}); fQm(n,b);q.adSignalsInfo=b}q.client.unpluggedAppInfo||(q.client.unpluggedAppInfo={});q.client.unpluggedAppInfo.enableFilterMode=!1;M=c.X.cosver;M!=null&&M!=="cosver"&&(q.client.osVersion=M);M=c.X.cplatform;M!=null&&M!=="cplatform"&&M!==""&&(q.client.platform=M);M=c.X.cmodel;M!=null&&M!=="cmodel"&&(q.client.deviceModel=M);M=c.X.cplayer;M!=null&&M!=="cplayer"&&(q.client.playerType=M);M=c.X.cbrand;M!=null&&M!=="cbrand"&&(q.client.deviceMake=M);q.user||(q.user={});q.user.lockedSafetyMode=!1;(c.D("embeds_web_enable_iframe_api_send_full_embed_url")|| c.D("embeds_enable_autoplay_and_visibility_signals"))&&g.b4(c)&&c5d(q,Y,n.player.getPlayerState(1))}; vfa=function(n,q){var M=!1;if(q==="")return M;q.split(",").forEach(function(t){var c={},Y={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},G="ACTIVE";t[0]==="!"&&(t=t.substring(1),G="INACTIVE");t=t.split("-");t.length<3||(t[0]in L0_&&(Y.clientName=L0_[t[0]]),t[1]in PFm&&(Y.platform=PFm[t[1]]),Y.applicationState=G,Y.clientVersion=t.length>2?t[2]:"",c.remoteClient=Y,n.remoteContexts?n.remoteContexts.push(c):n.remoteContexts=[c],M=!0)}); return M}; lQm=function(n){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in T7U))return!1;n=n.split(RegExp("[:&]"));var q=T7U.FLAG_AUTO_CAPTIONS_DEFAULT_ON,M="f"+(1+Math.floor(q/31)).toString();q=1<=2?G[1]:"";var k=unk.test(q),b=B7U.exec(q);b=b!=null&&b.length>=2?b[1]:"";var d=Dgj.exec(q);d=d!=null&&d.length>=2&&!Number.isNaN(Number(d[1]))?Number(d[1]):1;var N=ADj.exec(q);N=N!=null&&N.length>=2?N[1]:"0";var O=e0(n.player.T().AG),e=n.player.getVideoData(1),E=g.Cz(e.SX,!0),h="BISCOTTI_ID"in M?M.BISCOTTI_ID:"";H2d(n,E,q,h.toString(),n.player.T(), e);e={splay:!1,lactMilliseconds:M.LACT.toString(),playerHeightPixels:Math.trunc(M.P_H),playerWidthPixels:Math.trunc(M.P_W),vis:Math.trunc(M.VIS),signatureTimestamp:20328,autonavState:aA(n.player.T())};t&&(t={},vfa(t,M.YT_REMOTE)&&(e.mdxContext=t));if(t=mgm.includes(O)?void 0:g.UH("PREF")){for(var I=t.split(RegExp("[:&]")),L=0,T=I.length;L1&&v[1].toUpperCase()==="TRUE"){E.user.lockedSafetyMode=!0;break}}e.autoCaptionsDefaultOn= lQm(t)}q=$gj.exec(q);(q=q!=null&&q.length>=2?q[1]:"")&&b&&(E.user.credentialTransferTokens=[{token:q,scope:"VIDEO"}]);q={contentPlaybackContext:e};G={adBlock:Math.trunc(M.AD_BLOCK),params:G,breakIndex:d,breakPositionMs:N,clientPlaybackNonce:M.CPN,topLevelDomain:O,isProxyAdTagRequest:k,context:E,adSignalsInfoString:rS(GH(h.toString())),overridePlaybackContext:q};c!==void 0&&(G.cueProcessedMs=Math.round(c).toString());b&&(G.videoId=b);M.LIVE_TARGETING_CONTEXT&&(G.liveTargetingParams=M.LIVE_TARGETING_CONTEXT); M.AD_BREAK_LENGTH&&(G.breakLengthMs=Math.trunc(M.AD_BREAK_LENGTH*1E3).toString());Y&&(G.driftFromHeadMs=Y.toString());G.currentMediaTimeMs=Math.round(n.player.getCurrentTime(1)*1E3);(n=n.player.getGetAdBreakContext())&&(G.getAdBreakContext=n);return G}; Z2J=function(){RA.apply(this,arguments)}; aQC=function(n,q,M,t,c){var Y=M.q2;var G=M.sN;var k=n.player.T().yH,b=0;M.cueProcessedMs&&G&&!Y&&(M=G.end-G.start,M>0&&(b=Math.floor(M/1E3)));var d={AD_BLOCK:c,AD_BREAK_LENGTH:Y?Y.Dy:b,AUTONAV_STATE:aA(n.player.T()),CA_TYPE:"image",CPN:n.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:n.player.o2()*1E3,LACT:sc(),LIVE_INDEX:Y?n.Z++:1,LIVE_TARGETING_CONTEXT:Y&&Y.context?Y.context:"",MIDROLL_POS:G?Math.round(G.start/1E3):0,MIDROLL_POS_MS:G?Math.round(G.start):0,VIS:n.player.getVisibilityState(), P_H:n.player.Lm().Ig().height,P_W:n.player.Lm().Ig().width,YT_REMOTE:k?k.join(","):""},N=Ye(ck);Object.keys(N).forEach(function(O){N[O]!=null&&(d[O.toUpperCase()]=N[O].toString())}); t!==""&&(d.BISCOTTI_ID=t);t={};tP(q)&&(t.sts="20328",(n=n.player.T().forcedExperiments)&&(t.forced_experiments=n));return qs(g.LO(q,d),t)}; R$j=function(n,q){var M=n.player.T(),t,c=(t=n.player.getVideoData(1))==null?void 0:t.oauthToken;return g.BN(M,c).then(function(Y){if(Y&&il()){var G=c8();Yz(G,Y)}return g.B_(n.player.Ou(G),q,"/youtubei/v1/player/ad_break").then(function(k){return k})})}; ofC=function(n){this.Gs=n}; wwC=function(n){this.G=n}; z$C=function(n){this.Gs=n}; Vva=function(n){g.F.call(this);this.X=n;this.MA=JDk(this)}; JDk=function(n){var q=new Paf(n.X.vn);g.Z(n,q);n=[new ofC(n.X.Gs),new wwC(n.X.G),new z$C(n.X.Gs),new sK(n.X.VC,n.X.xV),new j_,new fT(n.X.WI,n.X.DJ,n.X.Gs),new XQ,new yE];n=g.S(n);for(var M=n.next();!M.done;M=n.next())vHU(q,M.value);n=g.S(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(M=n.next();!M.done;M=n.next())S_(q,M.value,function(){}); return q}; oA=function(n){var q=n.Dk,M=n.Zk;n=n.wO;var t=new wek,c={Tp:new H$m(q.get(),M),Zk:M};return{mA:new Bc(M,n,q,c),context:c,EN:t}}; wG=function(n,q,M,t,c){g.F.call(this);this.W=q;this.gJ=M;this.Dk=t;this.Hm=c;this.listeners=[];var Y=new So(this);g.Z(this,Y);Y.V(n,"internalAbandon",this.bd1);this.addOnDisposeCallback(function(){g.fL(Y)})}; zr=function(n){this.G=n;this.adVideoId=this.X=this.videoId=this.adCpn=this.contentCpn=null;this.S=!0;this.W=this.Z=!1;this.adFormat=null;this.J="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; CFd=function(n){n.contentCpn=null;n.adCpn=null;n.videoId=null;n.adVideoId=null;n.adFormat=null;n.J="AD_PLACEMENT_KIND_UNKNOWN";n.actionType="unknown_type";n.Z=!1;n.W=!1}; rDd=function(n,q){n=g.S(q);for(q=n.next();!q.done;q=n.next())if((q=q.value.renderer)&&(q.instreamVideoAdRenderer||q.linearAdSequenceRenderer||q.sandwichedLinearAdRenderer||q.instreamSurveyAdRenderer)){H_("ad_i");g.LD({isMonetized:!0});break}}; xgd=function(n){var q;(q=n.G.getVideoData(1))!=null&&q.xl&&(n.W=!1,q={},n.X&&n.videoId&&(q.cttAuthInfo={token:n.X,videoId:n.videoId}),P_("video_to_ad",q))}; Xh=function(n){n.W=!1;var q={};n.X&&n.videoId&&(q.cttAuthInfo={token:n.X,videoId:n.videoId});P_("ad_to_video",q);Qu1(n)}; Qu1=function(n){if(n.Z)if(n.J==="AD_PLACEMENT_KIND_START"&&n.actionType==="video_to_ad")Sh("video_to_ad");else{var q={adBreakType:Qg(n.J),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:n.videoStreamType};n.actionType==="ad_to_video"?(n.contentCpn&&(q.targetCpn=n.contentCpn),n.videoId&&(q.targetVideoId=n.videoId)):(n.adCpn&&(q.targetCpn=n.adCpn),n.adVideoId&&(q.targetVideoId=n.adVideoId));n.adFormat&&(q.adType=n.adFormat);n.contentCpn&& (q.clientPlaybackNonce=n.contentCpn);n.videoId&&(q.videoId=n.videoId);n.adCpn&&(q.adClientPlaybackNonce=n.adCpn);n.adVideoId&&(q.adVideoId=n.adVideoId);g.LD(q,n.actionType);n.G.T().experiments.Hb("html5_ads_csi_qoes")&&(q=n.G.Cb(n.actionType==="ad_to_video"?1:2),q=(0,g.jt)()-1E3*q,Tj("qoes",q,n.actionType))}}; Ju=function(n){g.F.call(this);this.G=n;this.X=new Map;this.W=new So(this);g.Z(this,this.W);this.W.V(this.G,g.CK("ad"),this.onCueRangeEnter,this);this.W.V(this.G,g.rj("ad"),this.onCueRangeExit,this)}; pwj=function(n,q,M,t,c,Y,G){g.Ji.call(this,q,M,{id:n,namespace:"ad",priority:c,visible:t,associatedClipId:Y,markerPositionMs:G})}; V2=function(n){this.G=n}; nsL=function(n,q){n.G.cueVideoByPlayerVars(q,2)}; CX=function(n){this.G=n}; rG=function(n){this.G=n;g.ic(this.G.T().experiments,"tv_pacf_logging_sample_rate")}; qJw=function(n){return $8(n,"html5_ssap_play_cached_preroll")}; NP=function(n,q){q=q===void 0?!1:q;return n.G.T().D("html5_ssap_force_ads_ctmp")?!0:(q||n.G.T().Aq())&&n.G.T().D("html5_ssap_pacf_qoe_ctmp")}; xY=function(n){var q;return(q=n.G.getVideoData(1)==null?void 0:!1)!=null?q:!1}; $8=function(n,q){return n.G.T().D(q)}; Mkd=function(n){return n.G.T().D("substitute_ad_cpn_macro_in_ssdai")}; QC=function(n){var q,M,t;return((q=n.G.getVideoData(1).getPlayerResponse())==null?void 0:(M=q.playerConfig)==null?void 0:(t=M.daiConfig)==null?void 0:t.enableServerStitchedDai)||!1}; m1k=function(n){return n.G.T().D("html5_enable_vod_slar_with_notify_pacf")}; iaT=function(n){return n.G.T().D("html5_recognize_predict_start_cue_point")}; TP=function(n){return n.G.T().experiments.Hb("enable_desktop_player_underlay")}; tkA=function(n){return n.G.T().experiments.Hb("html5_load_empty_player_in_media_break_sub_lra")}; bX=function(n){return n.G.T().experiments.Hb("html5_load_ads_instead_of_cue")}; dA=function(n){return n.G.T().experiments.Hb("html5_preload_ads")}; c_s=function(n){return n.G.T().experiments.Hb("should_ignore_cuepoints_during_lifa_preroll")}; Pc=function(n){return n.G.T().experiments.Hb("enable_ads_control_flow_deterministic_id_generation")}; YJL=function(n){return n.G.T().experiments.Hb("enable_desktop_discovery_video_abandon_pings")||g.S0(n.G.T())}; GUA=function(n){return n.G.T().experiments.Hb("enable_progres_commands_lr_feeds")}; pw=function(n){return n.G.T().experiments.Hb("html5_cuepoint_identifier_logging")}; oVs=function(n){n=n.G.getVideoData(1);return!!n&&n.D("html5_preload_first_vod_video_ad")&&!n.isDaiEnabled()&&!n.isLivePlayback}; KCA=function(n){return n.G.T().experiments.Hb("html5_ssdai_enable_media_end_cue_range")}; kUF=function(n){switch(n){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}}; baK=function(){g.MB.call(this);var n=this;this.X={};this.addOnDisposeCallback(function(){for(var q=g.S(Object.keys(n.X)),M=q.next();!M.done;M=q.next())delete n.X[M.value]})}; Q2=function(){if(dRs===null){dRs=new baK;ji(Vo).W="b";var n=ji(Vo),q=AT(n)=="h"||AT(n)=="b",M=!(tC(),!1);q&&M&&(n.S=!0,n.C=new Kej)}return dRs}; NdK=function(n,q,M){n.X[q]=M}; OaQ=function(n){switch(n){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; pX=function(n,q,M){this.gJ=n;this.G=q;this.Zk=M;this.W=new Set;this.X=new Map;Q2().subscribe("adactiveviewmeasurable",this.ym,this);Q2().subscribe("adfullyviewableaudiblehalfdurationimpression",this.KF,this);Q2().subscribe("adviewableimpression",this.Hr,this);Q2().subscribe("adaudioaudible",this.sR,this);Q2().subscribe("adaudiomeasurable",this.Vm,this)}; qj=function(n,q,M){var t=M.WJ,c=M.XP,Y=M.listener,G=M.qO;M=M.Bw===void 0?!1:M.Bw;if(n.X.has(q))Kz("Unexpected registration of layout in LidarApi");else{if(G){if(n.W.has(G))return;n.W.add(G)}n.X.set(q,Y);H7(tC().qn,"fmd",1);Wtd(ji(Vo),t);var k=M?q:void 0;NdK(Q2(),q,{fJ:function(){if(!c)return{};var b=n.G.getPresentingPlayerType(!0),d;return(d=n.G.getVideoData(b))!=null&&d.isAd()?{currentTime:n.gJ.get().getCurrentTimeSec(b,!1,k),duration:c,isPlaying:nc(n.gJ.get(),b).isPlaying(),isVpaid:!1,isYouTube:!0, volume:n.gJ.get().isMuted()?0:n.gJ.get().getVolume()/100}:{}}})}}; Mj=function(n,q){n.X.has(q)?(n.X.delete(q),delete Q2().X[q]):Kz("Unexpected unregistration of layout in LidarApi")}; gsK=function(n,q){if(n.G.isLifaAdPlaying()){var M=n.G.PR(!0,!0);n.dF(q,M.width*.5*1.1,M.height*.25*1.1,M.width*.5*.9,M.height*.5*.9)}}; huF=function(n,q,M){var t={};euw(n,t,q,M);Ess(t);t.LACT=t1(function(){return sc().toString()}); t.VIS=t1(function(){return n.getVisibilityState().toString()}); t.SDKV="h.3.0";t.VOL=t1(function(){return n.isMuted()?"0":Math.round(n.getVolume()).toString()}); t.VED="";return t}; WCA=function(n,q){var M={};if(q||!n||!n.kind)return M;if(n.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||n.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!n.adTimeOffset||!n.adTimeOffset.offsetStartMilliseconds)return g.Ly(Error("malformed AdPlacementConfig")),M;M.MIDROLL_POS=t1(US(Math.round(Bg(n.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else M.MIDROLL_POS=t1(US("0"));return M}; t1=function(n){return{toString:function(){return n()}}}; y_T=function(n,q,M){function t(k,b){(b=M[b])&&(Y[k]=b)} function c(k,b){(b=M[b])&&(Y[k]=G(b))} if(!M||g.g0(M))return n;var Y=Object.assign({},n),G=q?encodeURIComponent:function(k){return k}; c("DV_VIEWABILITY","doubleVerifyViewability");c("IAS_VIEWABILITY","integralAdsViewability");c("MOAT_INIT","moatInit");c("MOAT_VIEWABILITY","moatViewability");t("GOOGLE_VIEWABILITY","googleViewability");t("VIEWABILITY","viewability");return Y}; euw=function(n,q,M,t){q.CPN=t1(function(){var c;(c=n.getVideoData(1))?c=c.clientPlaybackNonce:(g.PJ(Error("Video data is null.")),c=null);return c}); q.AD_MT=t1(function(){if(t!=null)var c=t;else{var Y=M;n.T().D("html5_ssap_use_cpn_to_get_time")||(Y=void 0);if(n.T().D("enable_h5_shorts_ad_fill_ad_mt_macro")||n.T().D("enable_desktop_discovery_pings_ad_mt_macro")||g.S0(n.T())){var G=n.getPresentingPlayerType(!0),k;c=((k=n.getVideoData(G))==null?0:k.isAd())?sjK(n,G,Y):0}else c=sjK(n,2,Y)}return Xdw(c)}); q.MT=t1(function(){return Xdw(n.getCurrentTime(1,!1))}); q.P_H=t1(function(){return n.Lm().Ig().height.toString()}); q.P_W=t1(function(){return n.Lm().Ig().width.toString()}); q.PV_H=t1(function(){return n.Lm().getVideoContentRect().height.toString()}); q.PV_W=t1(function(){return n.Lm().getVideoContentRect().width.toString()})}; Xdw=function(n){return Math.round(Math.max(0,n*1E3)).toString()}; Ess=function(n){n.CONN=t1(US("0"));n.WT=t1(function(){return Date.now().toString()})}; sjK=function(n,q,M){return M!==void 0?n.getCurrentTime(q,!1,M):n.getCurrentTime(q,!1)}; jjn=function(){}; SJs=function(n,q,M,t,c){var Y,G,k,b,d,N,O,e,E,h,I,L,T;g.u(function(v){switch(v.X){case 1:Y=!!q.scrubReferrer;G=g.LO(q.baseUrl,y_T(M,Y,t));k={};if(!q.headers){v.Fy(2);break}b=n.J();if(!b.X){d=b.getValue();v.Fy(3);break}return g.U(v,b.X,4);case 4:d=v.W;case 3:N=d;O=g.S(q.headers);for(e=O.next();!e.done;e=O.next())switch(E=e.value,E.headerType){case "VISITOR_ID":g.RZ("VISITOR_DATA")&&(k["X-Goog-Visitor-Id"]=g.RZ("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.RZ("EOM_VISITOR_DATA")&&(k["X-Goog-EOM-Visitor-Id"]= g.RZ("EOM_VISITOR_DATA"));break;case "USER_AUTH":N&&(k.Authorization="Bearer "+N);break;case "PLUS_PAGE_ID":(h=n.S())&&(k["X-Goog-PageId"]=h);break;case "AUTH_USER":I=n.X();!N&&I&&(k["X-Goog-AuthUser"]=I);break;case "DATASYNC_ID":if(L=void 0,(L=n.Z())==null?0:L.Hb("enable_datasync_id_header_in_web_vss_pings"))T=n.W(),Ms(G)&&g.RZ("LOGGED_IN")&&T&&(k["X-YouTube-DataSync-Id"]=T)}"X-Goog-EOM-Visitor-Id"in k&&"X-Goog-Visitor-Id"in k&&delete k["X-Goog-Visitor-Id"];case 2:g.ux(G,void 0,Y,Object.keys(k).length!== 0?k:void 0,"",!0,c),g.Sk(v)}})}; IsT=function(n,q,M,t,c){this.J=n;this.S=q;this.X=M;this.W=t;this.Z=c}; fsF=function(n,q){this.X=n;this.Zk=q}; cM=function(n,q,M,t,c,Y,G){var k=k===void 0?new IsT(function(){var b=n.T(),d=n.getVideoData(1);return g.BN(b,d?g.O9(d):"")},function(){return n.T().pageId},function(){return n.T().wJ},function(){var b; return(b=n.T().datasyncId)!=null?b:""},function(){return n.T().experiments}):k; this.G=n;this.W=q;this.w7=M;this.Dk=t;this.mA=c;this.Zk=Y;this.EN=G;this.J=k;this.sB=null;this.X=new Map;this.Z=new fsF(k,this.Zk)}; LCF=function(n,q,M,t,c){var Y=Kg(n.W.get(),M);Y?(M=Wj(n,Han(Y),Y,void 0,void 0,t),q.hasOwnProperty("baseUrl")?n.J.send(q,M):n.Z.send(q,M,{},c)):Kz("Trying to ping from an unknown layout",void 0,void 0,{layoutId:M})}; Dos=function(n,q,M,t,c,Y){t=t===void 0?[]:t;var G=Kg(n.W.get(),q);if(G){var k=n.w7.get().bS(q,M),b=Wj(n,Han(G),G,c,Y);t.forEach(function(d,N){d.baseUrl&&(n.Z.send(d.baseUrl,b,k,d.attributionSrcMode),d.serializedAdPingMetadata&&n.mA.XH("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,G,new Ooj(d,N),void 0,void 0,G.adLayoutLoggingData))})}else Kz("Trying to track from an unknown layout.",void 0,void 0,{layoutId:q, trackingType:M})}; dH=function(n,q){n.G.sendVideoStatsEngageEvent(q,void 0,2)}; vP=function(n,q){g.tx("adsClientStateChange",q)}; Pfw=function(n,q){n.X.has(q.Xo())?Kz("Trying to register an existing AdErrorInfoSupplier."):n.X.set(q.Xo(),q)}; vss=function(n,q){n.X.delete(q.Xo())||Kz("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; U0=function(n,q,M){typeof M==="string"?n.G.getVideoData(1).yb(q,M):n.G.getVideoData(1).Xy(q,M)}; Han=function(n){var q=rN(n.clientMetadata,"metadata_type_ad_placement_config");n=rN(n.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:q,ij:n}}; Wj=function(n,q,M,t,c,Y){var G=M?Tds(n):{},k=M?lsQ(n,M.layoutId):{},b=URs(n),d,N=c!=null?c:(d=Vg(n.Dk.get(),2))==null?void 0:d.clientPlaybackNonce;c=void 0;if(M){var O;if((O=n.EN.X.get(M.layoutId))==null?0:O.Bw)c=M.layoutId}O={};n=Object.assign({},huF(n.G,c,t),WCA(q.adPlacementConfig,(M==null?void 0:M.renderingContent)!==void 0),k,G,b,(O.FINAL=t1(function(){return"1"}),O.AD_CPN=t1(function(){return N||""}),O)); (M==null?void 0:M.renderingContent)!==void 0||(n.SLOT_POS=t1(function(){return(q.ij||0).toString()})); M={};Y=Object.assign({},n,Y);n=g.S(Object.values(umQ));for(t=n.next();!t.done;t=n.next())t=t.value,G=Y[t],G!=null&&G.toString()!=null&&(M[t]=G.toString());return M}; Tds=function(n){var q={},M,t=(M=n.sB)==null?void 0:M.I9/1E3;t!=null&&(q.SURVEY_ELAPSED_MS=t1(function(){return Math.round(t*1E3).toString()})); q.SURVEY_LOCAL_TIME_EPOCH_S=t1(function(){return Math.round(Date.now()/1E3).toString()}); return q}; lsQ=function(n,q){n=n.X.get(q);if(!n)return{};n=n.JO();if(!n)return{};q={};return q.YT_ERROR_CODE=n.qG.toString(),q.ERRORCODE=n.Mq.toString(),q.ERROR_MSG=n.errorMessage,q}; URs=function(n){var q={},M=n.G.getVideoData(1);q.ASR=t1(function(){var t;return(t=M==null?void 0:M.dI)!=null?t:null}); q.EI=t1(function(){var t;return(t=M==null?void 0:M.eventId)!=null?t:null}); return q}; YN=function(n,q,M){g.F.call(this);this.G=n;this.vO=q;this.Zk=M;this.listeners=[];this.vD=null;this.f0=new Map;q=new g.f8(this);g.Z(this,q);q.V(n,"videodatachange",this.Q1x);q.V(n,"serverstitchedvideochange",this.O8g);this.fE=Vg(this)}; Vg=function(n,q){var M=n.G.getVideoData(q);return M?n.wl(M,q||n.G.getPresentingPlayerType(!0)):null}; BdQ=function(n,q,M){var t=n.wl(q,M);n.fE=t;n.listeners.forEach(function(c){c.SP(t)})}; DRs=function(n){switch(n){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}}; GQ=function(n,q,M){g.F.call(this);this.G=n;this.Dk=q;this.Zk=M;this.listeners=[];this.Rv=[];this.X=function(){Kz("Called 'doUnlockPreroll' before it's initialized.")}; q=new So(this);M=new g.f8(this);g.Z(this,M);g.Z(this,q);q.V(n,"progresssync",this.Wqt);q.V(n,"presentingplayerstatechange",this.NoL);q.V(n,"fullscreentoggled",this.onFullscreenToggled);q.V(n,"onVolumeChange",this.onVolumeChange);q.V(n,"minimized",this.lS);q.V(n,"overlayvisibilitychange",this.Nc);q.V(n,"shortsadswipe",this.h9);q.V(n,"resize",this.Tk);M.V(n,g.CK("appad"),this.Os)}; Kc=function(n){xY(n.Zk.get())||n.X()}; A_T=function(n,q){n.Rv=n.Rv.filter(function(M){return M!==q})}; kN=function(n,q,M){return n.getCurrentTimeSec(q,M)}; bt=function(n,q){var M;q=(M=n.Dk.get().f0.get(q))!=null?M:null;if(q===null)return Kz("Expected ad video start time on playback timeline"),0;n=n.G.getCurrentTime(2,!0);return n0){var Y=q.end.toString();c.forEach(function(G){(G=G.config&&G.config.adPlacementConfig)&&G.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&G.adTimeOffset&&G.adTimeOffset.offsetEndMilliseconds==="-1"&&G.adTimeOffset.offsetEndMilliseconds!==Y&&(G.adTimeOffset.offsetEndMilliseconds=Y)}); t.map(function(G){return g.R(G,eB)}).forEach(function(G){var k; (G=G==null?void 0:(k=G.slotEntryTrigger)==null?void 0:k.mediaTimeRangeTrigger)&&G.offsetEndMilliseconds==="-1"&&(G.offsetEndMilliseconds=Y)})}return{M2:c, adSlots:t,F4:!1,ssdaiAdsConfig:n.ssdaiAdsConfig}}; ex=function(n){g.F.call(this);this.G=n;this.listeners=[];this.X=new So(this);g.Z(this,this.X);this.X.V(this.G,"aduxclicked",this.onAdUxClicked);this.X.V(this.G,"aduxmouseover",this.qk);this.X.V(this.G,"aduxmouseout",this.nj);this.X.V(this.G,"muteadaccepted",this.WAs)}; ass=function(n,q,M){q=g.Wn(q,function(t){return new Rl_(t,M,t.id)}); n.G.Km("onAdUxUpdate",q)}; EQ=function(n,q){n=g.S(n.listeners);for(var M=n.next();!M.done;M=n.next())q(M.value)}; h1=function(n,q){this.W=n;this.Z=q===void 0?!1:q;this.X={}}; RuQ=function(n,q){var M=n.startSecs+n.Dy;M=M<=0?null:M;if(M===null)return null;switch(n.event){case "start":case "continue":case "stop":break;case "predictStart":if(q)break;return null;default:return null}q=Math.max(n.startSecs,0);return{GI:new yA(q,M),k8:new dV(q,M-q,n.context,n.identifier,n.event,n.X)}}; osF=function(){this.X=[]}; lfs=function(n,q,M){var t=g.oG(n.X,q);if(t>=0)return q;q=-t-1;return q>=n.X.length||n.X[q]>M?null:n.X[q]}; WM=function(n,q,M){g.F.call(this);this.G=n;this.Zk=q;this.Gs=M;this.listeners=[];this.J=!1;this.SF=[];this.X=null;this.S=new h1(this,iaT(q.get()));this.Z=new osF;this.W=null}; wdA=function(n,q){n.SF.push(q);for(var M=!1,t=g.S(n.listeners),c=t.next();!c.done;c=t.next())M=c.value.Rh(q)||M;n.J=M;pw(n.Zk.get())&&U0(n.Gs.get(),"onci","cpi."+q.identifier+";cpe."+q.event+";cps."+q.startSecs+";cbi."+M)}; J_w=function(n,q){vP(n.Gs.get(),{cuepointTrigger:{event:zun(q.event),cuepointId:q.identifier,totalCueDurationMs:q.Dy*1E3,playheadTimeMs:q.X,cueStartTimeMs:q.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:n.G.getVideoData(1).clientPlaybackNonce}})}; zun=function(n){switch(n){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 Nc(n,"Unexpected cuepoint event")}}; y$=function(n){this.G=n}; sQ=function(n){this.G=n}; VkF=function(n){switch(n){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:Nc(n,"unknown transitionReason")}}; Xe=function(){g.F.apply(this,arguments);this.qhd=new Map}; CfA=function(n){this.G=n}; r_s=function(n,q,M,t,c){g.F.call(this);var Y=this,G=lc(function(){return new Lg(Y.Zk)}); g.Z(this,G);var k=lc(function(){return new vc(G,Y.Zk)}); g.Z(this,k);var b=lc(function(){return new Yh}); g.Z(this,b);var d=lc(function(){return new tj(n)}); g.Z(this,d);var N=lc(function(){return new TR(G,k,Y.Zk)}); g.Z(this,N);var O=lc(function(){return new DJ}); g.Z(this,O);this.XV=lc(function(){return new ex(q)}); g.Z(this,this.XV);this.qP=lc(function(){return new uc(c)}); g.Z(this,this.qP);this.GX=lc(function(){return new zr(q)}); g.Z(this,this.GX);this.FV=lc(function(){return new Ju(q)}); g.Z(this,this.FV);this.jc=lc(function(){return new V2(q)}); g.Z(this,this.jc);this.vn=lc(function(){return new CX(q)}); g.Z(this,this.vn);this.Zk=lc(function(){return new rG(q)}); g.Z(this,this.Zk);var e=lc(function(){return new g_(t)}); g.Z(this,e);var E=lc(function(){return new ti(Y.Zk)}); g.Z(this,E);this.Nv=lc(function(){return new y$(q)}); g.Z(this,this.Nv);this.Qf=lc(function(){return new Ai}); g.Z(this,this.Qf);this.Dk=lc(function(){return new YN(q,O,Y.Zk)}); g.Z(this,this.Dk);var h=oA({Dk:this.Dk,Zk:this.Zk,wO:E}),I=h.context,L=h.EN;this.mA=h.mA;this.Hm=lc(function(){return new WM(q,Y.Zk,Y.Gs)}); g.Z(this,this.Hm);this.I8=lc(function(){return new sQ(q)}); g.Z(this,this.I8);this.gJ=lc(function(){return new GQ(q,Y.Dk,Y.Zk)}); g.Z(this,this.gJ);this.g8=lc(function(){return new Xe}); g.Z(this,this.g8);h=lc(function(){return new VC(G,N,k,Y.Zk,E,"SLOT_TYPE_ABOVE_FEED",Y.gJ,Y.Nj,Y.Eh)}); g.Z(this,h);this.Uh=lc(function(){return new mq(Y.Zk)}); this.w7=lc(function(){return new pX(Y.gJ,q,Y.Zk)}); g.Z(this,this.w7);this.Gs=lc(function(){return new cM(q,b,Y.w7,Y.Dk,Y.mA,Y.Zk,L)}); g.Z(this,this.Gs);this.El=new ML(qL,jx,function(v,B,m,a){return vU(k.get(),v,B,m,a)},d,N,k,E,this.Zk,this.Dk); g.Z(this,this.El);this.zU=new iG(d,h,M,this.Zk,n,this.Dk,this.gJ,this.GX);g.Z(this,this.zU);var T=new wG(q,this.zU,this.gJ,this.Dk,this.Hm);this.Ae=lc(function(){return T}); this.LF=T;this.Nj=new xW(d,N,this.Ae,this.Hm,this.gJ,this.Zk,this.Gs,this.I8);g.Z(this,this.Nj);this.HI=new cc(d,N,this.FV,this.Ae,I);g.Z(this,this.HI);this.n8=new gt(this.Zk,d,N,h,this.Dk,this.HI,M,this.jc);g.Z(this,this.n8);this.j8=lc(function(){return new MY(e,k,E,Y.Zk,Y.Gs,Y.gJ,Y.I8)}); g.Z(this,this.j8);this.z0=lc(function(){return new i7}); g.Z(this,this.z0);this.pT=new OE(n,this.XV,this.Zk);g.Z(this,this.pT);this.Hg=new gL(n);g.Z(this,this.Hg);this.S7=new eG(n);g.Z(this,this.S7);this.Yr=new hj(n,this.Ae,I);g.Z(this,this.Yr);this.cA=new Wc(n,this.FV,this.gJ,this.Dk,I);g.Z(this,this.cA);this.i6=new yz(n,this.Dk);g.Z(this,this.i6);this.Eh=new jG(n,this.Hm,this.gJ,this.Gs,this.Ae,this.Nj);g.Z(this,this.Eh);this.lI=new sE(n);g.Z(this,this.lI);this.lY=new Hc(n);g.Z(this,this.lY);this.e8=new XK(n);g.Z(this,this.e8);this.tC=new fg(n);g.Z(this, this.tC);this.lY=new Hc(n);g.Z(this,this.lY);this.I1=lc(function(){return new kh}); g.Z(this,this.I1);this.T$=lc(function(){return new bG(Y.gJ)}); g.Z(this,this.T$);this.Wd=lc(function(){return new Md1(Y.XV,Y.Gs,n,b,Y.w7)}); g.Z(this,this.Wd);this.FJ=lc(function(){return new Z2(Y.n8,d,G)}); g.Z(this,this.FJ);this.q9=lc(function(){return new oS(Y.Zk,Y.Gs,Y.lI,Y.w7)}); g.Z(this,this.q9);this.L1=lc(function(){return new Fh(n,Y.lY,Y.lI,Y.Dk,Y.I8,Y.gJ,Y.g8,Y.Gs,O,Y.Hm,Y.w7,Y.Uh,Y.jc,Y.FV,Y.GX,Y.vn,Y.qP,Y.Nv,Y.Zk,b,I,L)}); g.Z(this,this.L1);this.oh=lc(function(){return new ERC(Y.gJ,Y.Gs,Y.qP,Y.Zk,Y.w7,Y.Dk)}); g.Z(this,this.oh);this.cJ=lc(function(){return new M4C(Y.XV,Y.gJ,Y.Gs,b,Y.w7,Y.S7,Y.tC,Y.qP,Y.Zk,M)}); g.Z(this,this.cJ);this.V4=lc(function(){return new i$C(Y.XV,Y.Gs,b)}); g.Z(this,this.V4);this.G7=new OQ(n,this.Qf,G);g.Z(this,this.G7);this.mR={r3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.n8],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Nj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.El],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.zU],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.HI]]),Ac:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.j8],["SLOT_TYPE_ABOVE_FEED",this.z0],["SLOT_TYPE_FORECASTING",this.z0], ["SLOT_TYPE_IN_PLAYER",this.z0],["SLOT_TYPE_PLAYER_BYTES",this.z0],["SLOT_TYPE_PLAYER_UNDERLAY",this.z0],["SLOT_TYPE_PLAYBACK_TRACKING",this.z0],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.z0]]),Rz:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pT],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.pT],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hg],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hg],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Hg],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hg],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hg],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hg],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hg],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Hg],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Hg],["TRIGGER_TYPE_CLOSE_REQUESTED",this.S7],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yr],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.cA],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.cA],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.cA],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.cA],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.cA],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.cA],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.cA],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.i6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.i6],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.lI],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Yr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.e8],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.tC],["TRIGGER_TYPE_AD_BREAK_STARTED",this.lY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Eh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Eh],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Eh],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Eh],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Eh]]),Ml:new Map([["SLOT_TYPE_ABOVE_FEED",this.I1], ["SLOT_TYPE_AD_BREAK_REQUEST",this.I1],["SLOT_TYPE_FORECASTING",this.I1],["SLOT_TYPE_IN_PLAYER",this.I1],["SLOT_TYPE_PLAYER_BYTES",this.T$],["SLOT_TYPE_PLAYER_UNDERLAY",this.I1],["SLOT_TYPE_PLAYBACK_TRACKING",this.I1],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.I1]]),w6:new Map([["SLOT_TYPE_ABOVE_FEED",this.Wd],["SLOT_TYPE_AD_BREAK_REQUEST",this.FJ],["SLOT_TYPE_FORECASTING",this.q9],["SLOT_TYPE_PLAYER_BYTES",this.L1],["SLOT_TYPE_PLAYBACK_TRACKING",this.oh],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.oh],["SLOT_TYPE_IN_PLAYER",this.cJ],["SLOT_TYPE_PLAYER_UNDERLAY",this.V4]])};this.listeners=[b.get()];this.B0={n8:this.n8,DJ:this.Zk.get(),Nm:this.qP.get(),o0:this.gJ.get(),zU:this.zU,kx:G.get(),PB:this.Qf.get(),xV:this.pT,VC:b.get(),WI:this.Dk.get()}}; xRK=function(n,q,M,t,c){g.F.call(this);var Y=this,G=lc(function(){return new Lg(Y.Zk)}); g.Z(this,G);var k=lc(function(){return new vc(G,Y.Zk)}); g.Z(this,k);var b=lc(function(){return new Yh}); g.Z(this,b);var d=lc(function(){return new tj(n)}); g.Z(this,d);var N=lc(function(){return new TR(G,k,Y.Zk)}); g.Z(this,N);var O=lc(function(){return new DJ}); g.Z(this,O);this.XV=lc(function(){return new ex(q)}); g.Z(this,this.XV);this.qP=lc(function(){return new uc(c)}); g.Z(this,this.qP);this.GX=lc(function(){return new zr(q)}); g.Z(this,this.GX);this.FV=lc(function(){return new Ju(q)}); g.Z(this,this.FV);this.jc=lc(function(){return new V2(q)}); g.Z(this,this.jc);this.vn=lc(function(){return new CX(q)}); g.Z(this,this.vn);this.Zk=lc(function(){return new rG(q)}); g.Z(this,this.Zk);var e=lc(function(){return new g_(t)}); g.Z(this,e);var E=lc(function(){return new ti(Y.Zk)}); g.Z(this,E);var h=lc(function(){return new VC(G,N,k,Y.Zk,E,null,null,Y.Nj,Y.Eh)}); g.Z(this,h);this.Nv=lc(function(){return new y$(q)}); g.Z(this,this.Nv);this.Qf=lc(function(){return new Ai}); g.Z(this,this.Qf);this.Dk=lc(function(){return new YN(q,O,Y.Zk)}); g.Z(this,this.Dk);var I=oA({Dk:this.Dk,Zk:this.Zk,wO:E}),L=I.context,T=I.EN;this.mA=I.mA;this.Hm=lc(function(){return new WM(q,Y.Zk,Y.Gs)}); this.gJ=lc(function(){return new GQ(q,Y.Dk,Y.Zk)}); g.Z(this,this.gJ);this.g8=lc(function(){return new Xe}); g.Z(this,this.g8);this.w7=lc(function(){return new pX(Y.gJ,q,Y.Zk)}); g.Z(this,this.w7);this.Gs=lc(function(){return new cM(q,b,Y.w7,Y.Dk,Y.mA,Y.Zk,T)}); g.Z(this,this.Gs);this.Uh=lc(function(){return new mq(Y.Zk)}); g.Z(this,this.Uh);this.El=new ML(qL,jx,function(B,m,a,x){return vU(k.get(),B,m,a,x)},d,N,k,E,this.Zk,this.Dk); g.Z(this,this.El);this.zU=new iG(d,h,M,this.Zk,n,this.Dk,this.gJ,this.GX);g.Z(this,this.zU);var v=new wG(q,this.zU,this.gJ,this.Dk,this.Hm);this.Ae=lc(function(){return v}); this.LF=v;this.Nj=new xW(d,N,this.Ae,this.Hm,this.gJ,this.Zk,this.Gs);g.Z(this,this.Nj);this.HI=new cc(d,N,this.FV,this.Ae,L);g.Z(this,this.HI);this.n8=new gt(this.Zk,d,N,h,this.Dk,this.HI,M,this.jc);g.Z(this,this.n8);this.j8=lc(function(){return new MY(e,k,E,Y.Zk,Y.Gs,Y.gJ)}); g.Z(this,this.j8);this.z0=lc(function(){return new i7}); g.Z(this,this.z0);this.pT=new OE(n,this.XV,this.Zk);g.Z(this,this.pT);this.Hg=new gL(n);g.Z(this,this.Hg);this.S7=new eG(n);g.Z(this,this.S7);this.Yr=new hj(n,this.Ae,L);g.Z(this,this.Yr);this.cA=new Wc(n,this.FV,this.gJ,this.Dk,L);g.Z(this,this.cA);this.lI=new sE(n);g.Z(this,this.lI);this.e8=new XK(n);g.Z(this,this.e8);this.tC=new fg(n);g.Z(this,this.tC);this.I8=lc(function(){return new sQ(q)}); g.Z(this,this.I8);this.lY=new Hc(n);g.Z(this,this.lY);this.Eh=new jG(n,this.Hm,this.gJ,this.Gs,this.Ae,this.Nj);g.Z(this,this.Eh);this.I1=lc(function(){return new kh}); g.Z(this,this.I1);this.T$=lc(function(){return new bG(Y.gJ)}); g.Z(this,this.T$);this.FJ=lc(function(){return new Z2(Y.n8,d,G)}); g.Z(this,this.FJ);this.q9=lc(function(){return new oS(Y.Zk,Y.Gs,Y.lI,Y.w7)}); g.Z(this,this.q9);this.cJ=lc(function(){return new iou(Y.XV,Y.gJ,Y.Gs,b,Y.w7,Y.S7,Y.tC,Y.qP,Y.Zk,M)}); g.Z(this,this.cJ);this.L1=lc(function(){return new Z7(n,Y.lY,Y.lI,Y.Gs,Y.w7,Y.Uh,Y.jc,Y.Dk,Y.gJ,Y.g8,Y.FV,Y.GX,Y.vn,Y.qP,Y.Nv,Y.Zk,Y.I8,L,T)}); g.Z(this,this.L1);this.G7=new OQ(n,this.Qf,G);g.Z(this,this.G7);this.mR={r3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.n8],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Nj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.El],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.zU],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.HI]]),Ac:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.j8],["SLOT_TYPE_FORECASTING",this.z0],["SLOT_TYPE_IN_PLAYER",this.z0], ["SLOT_TYPE_PLAYER_BYTES",this.z0]]),Rz:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pT],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hg],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hg],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hg],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hg],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hg],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hg], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Hg],["TRIGGER_TYPE_CLOSE_REQUESTED",this.S7],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.cA],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.cA],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.cA],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.lI],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.e8],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.tC],["TRIGGER_TYPE_AD_BREAK_STARTED",this.lY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Eh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Eh],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Eh],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Eh],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Eh]]),Ml:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.I1],["SLOT_TYPE_FORECASTING",this.I1],["SLOT_TYPE_IN_PLAYER",this.I1],["SLOT_TYPE_PLAYER_BYTES",this.T$]]), w6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.FJ],["SLOT_TYPE_FORECASTING",this.q9],["SLOT_TYPE_IN_PLAYER",this.cJ],["SLOT_TYPE_PLAYER_BYTES",this.L1]])};this.listeners=[b.get()];this.B0={n8:this.n8,DJ:this.Zk.get(),Nm:this.qP.get(),o0:this.gJ.get(),zU:this.zU,kx:G.get(),PB:this.Qf.get(),xV:this.pT,VC:b.get(),WI:this.Dk.get()}}; Qjs=function(n,q,M,t,c){g.F.call(this);var Y=this,G=lc(function(){return new Lg(Y.Zk)}); g.Z(this,G);var k=lc(function(){return new vc(G,Y.Zk)}); g.Z(this,k);var b=lc(function(){return new Yh}); g.Z(this,b);var d=lc(function(){return new tj(n)}); g.Z(this,d);var N=lc(function(){return new TR(G,k,Y.Zk)}); g.Z(this,N);var O=lc(function(){return new DJ}); g.Z(this,O);this.XV=lc(function(){return new ex(q)}); g.Z(this,this.XV);this.qP=lc(function(){return new uc(c)}); g.Z(this,this.qP);this.GX=lc(function(){return new zr(q)}); g.Z(this,this.GX);this.FV=lc(function(){return new Ju(q)}); g.Z(this,this.FV);this.jc=lc(function(){return new V2(q)}); g.Z(this,this.jc);this.vn=lc(function(){return new CX(q)}); g.Z(this,this.vn);this.Zk=lc(function(){return new rG(q)}); g.Z(this,this.Zk);var e=lc(function(){return new g_(t)}); g.Z(this,e);var E=lc(function(){return new ti(Y.Zk)}); g.Z(this,E);var h=lc(function(){return new VC(G,N,k,Y.Zk,E,null,null,null,null)}); g.Z(this,h);this.Nv=lc(function(){return new y$(q)}); g.Z(this,this.Nv);this.Dk=lc(function(){return new YN(q,O,Y.Zk)}); g.Z(this,this.Dk);var I=oA({Dk:this.Dk,Zk:this.Zk,wO:E}),L=I.context,T=I.EN;this.mA=I.mA;this.gJ=lc(function(){return new GQ(q,Y.Dk,Y.Zk)}); g.Z(this,this.gJ);this.g8=lc(function(){return new Xe}); g.Z(this,this.g8);this.w7=lc(function(){return new pX(Y.gJ,q,Y.Zk)}); g.Z(this,this.w7);this.Gs=lc(function(){return new cM(q,b,Y.w7,Y.Dk,Y.mA,Y.Zk,T)}); g.Z(this,this.Gs);this.Uh=lc(function(){return new mq(Y.Zk)}); g.Z(this,this.Uh);this.El=new ML(qL,jx,function(B,m,a,x){return vU(k.get(),B,m,a,x)},d,N,k,E,this.Zk,this.Dk); g.Z(this,this.El);this.zU=new iG(d,h,M,this.Zk,n,this.Dk,this.gJ,this.GX);g.Z(this,this.zU);var v=new wG(q,this.zU,this.gJ,this.Dk);this.Ae=lc(function(){return v}); this.LF=v;this.HI=new cc(d,N,this.FV,this.Ae,L);g.Z(this,this.HI);this.n8=new gt(this.Zk,d,N,h,this.Dk,this.HI,M,this.jc);g.Z(this,this.n8);this.j8=lc(function(){return new MY(e,k,E,Y.Zk,Y.Gs,Y.gJ)}); g.Z(this,this.j8);this.z0=lc(function(){return new i7}); g.Z(this,this.z0);this.pT=new OE(n,this.XV,this.Zk);g.Z(this,this.pT);this.Hg=new gL(n);g.Z(this,this.Hg);this.Yr=new hj(n,this.Ae,L);g.Z(this,this.Yr);this.cA=new Wc(n,this.FV,this.gJ,this.Dk,L);g.Z(this,this.cA);this.lI=new sE(n);g.Z(this,this.lI);this.e8=new XK(n);g.Z(this,this.e8);this.I8=lc(function(){return new sQ(q)}); g.Z(this,this.I8);this.lY=new Hc(n);g.Z(this,this.lY);this.I1=lc(function(){return new kh}); g.Z(this,this.I1);this.T$=lc(function(){return new bG(Y.gJ)}); g.Z(this,this.T$);this.FJ=lc(function(){return new Z2(Y.n8,d,G)}); g.Z(this,this.FJ);this.q9=lc(function(){return new oS(Y.Zk,Y.Gs,Y.lI,Y.w7)}); g.Z(this,this.q9);this.OM=lc(function(){return new en_(Y.XV,Y.gJ,Y.Gs,b,M,Y.Zk)}); g.Z(this,this.OM);this.L1=lc(function(){return new Z7(n,Y.lY,Y.lI,Y.Gs,Y.w7,Y.Uh,Y.jc,Y.Dk,Y.gJ,Y.g8,Y.FV,Y.GX,Y.vn,Y.qP,Y.Nv,Y.Zk,Y.I8,L,T)}); g.Z(this,this.L1);this.mR={r3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.n8],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.El],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.zU],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.HI]]),Ac:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.j8],["SLOT_TYPE_FORECASTING",this.z0],["SLOT_TYPE_IN_PLAYER",this.z0],["SLOT_TYPE_PLAYER_BYTES",this.z0]]),Rz:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pT],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Hg],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hg],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hg],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hg],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hg],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hg],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hg],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.cA],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.cA],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.lI],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.e8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.lY]]),Ml:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.I1],["SLOT_TYPE_ABOVE_FEED",this.I1],["SLOT_TYPE_FORECASTING",this.I1],["SLOT_TYPE_IN_PLAYER",this.I1],["SLOT_TYPE_PLAYER_BYTES",this.T$]]),w6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.FJ],["SLOT_TYPE_FORECASTING",this.q9],["SLOT_TYPE_IN_PLAYER", this.OM],["SLOT_TYPE_PLAYER_BYTES",this.L1]])};this.listeners=[b.get()];this.B0={n8:this.n8,DJ:this.Zk.get(),Nm:this.qP.get(),o0:this.gJ.get(),zU:this.zU,kx:G.get(),PB:null,xV:this.pT,VC:b.get(),WI:this.Dk.get()}}; pdF=function(n,q,M,t,c){g.F.call(this);var Y=this,G=lc(function(){return new Lg(Y.Zk)}); g.Z(this,G);var k=lc(function(){return new vc(G,Y.Zk)}); g.Z(this,k);var b=lc(function(){return new Yh}); g.Z(this,b);var d=lc(function(){return new tj(n)}); g.Z(this,d);var N=lc(function(){return new TR(G,k,Y.Zk)}); g.Z(this,N);var O=lc(function(){return new DJ}); g.Z(this,O);this.i4=lc(function(){return new CfA(q)}); g.Z(this,this.i4);this.XV=lc(function(){return new ex(q)}); g.Z(this,this.XV);this.qP=lc(function(){return new uc(c)}); g.Z(this,this.qP);this.GX=lc(function(){return new zr(q)}); g.Z(this,this.GX);this.FV=lc(function(){return new Ju(q)}); g.Z(this,this.FV);this.jc=lc(function(){return new V2(q)}); g.Z(this,this.jc);this.vn=lc(function(){return new CX(q)}); g.Z(this,this.vn);this.Zk=lc(function(){return new rG(q)}); g.Z(this,this.Zk);var e=lc(function(){return new g_(t)}); g.Z(this,e);var E=lc(function(){return new ti(Y.Zk)}); g.Z(this,E);var h=lc(function(){return new VC(G,N,k,Y.Zk,E,null,null,null,null)}); g.Z(this,h);this.Nv=lc(function(){return new y$(q)}); g.Z(this,this.Nv);this.Dk=lc(function(){return new YN(q,O,Y.Zk)}); g.Z(this,this.Dk);var I=oA({Dk:this.Dk,Zk:this.Zk,wO:E}),L=I.context,T=I.EN;this.mA=I.mA;this.gJ=lc(function(){return new GQ(q,Y.Dk,Y.Zk)}); g.Z(this,this.gJ);this.g8=lc(function(){return new Xe}); g.Z(this,this.g8);this.w7=lc(function(){return new pX(Y.gJ,q,Y.Zk)}); g.Z(this,this.w7);this.Gs=lc(function(){return new cM(q,b,Y.w7,Y.Dk,Y.mA,Y.Zk,T)}); g.Z(this,this.Gs);this.Uh=lc(function(){return new mq(Y.Zk)}); g.Z(this,this.Uh);this.El=new ML(a3J,jx,function(B,m,a,x){return dp1(k.get(),B,m,a,x)},d,N,k,E,this.Zk,this.Dk); g.Z(this,this.El);this.zU=new iG(d,h,M,this.Zk,n,this.Dk,this.gJ,this.GX);g.Z(this,this.zU);var v=new wG(q,this.zU,this.gJ,this.Dk);this.Ae=lc(function(){return v}); this.LF=v;this.HI=new cc(d,N,this.FV,this.Ae,L);g.Z(this,this.HI);this.n8=new gt(this.Zk,d,N,h,this.Dk,this.HI,M,this.jc);g.Z(this,this.n8);this.j8=lc(function(){return new MY(e,k,E,Y.Zk,Y.Gs,Y.gJ)}); g.Z(this,this.j8);this.z0=lc(function(){return new i7}); g.Z(this,this.z0);this.pT=new OE(n,this.XV,this.Zk);g.Z(this,this.pT);this.Hg=new gL(n);g.Z(this,this.Hg);this.Yr=new hj(n,this.Ae,L);g.Z(this,this.Yr);this.cA=new Wc(n,this.FV,this.gJ,this.Dk,L);g.Z(this,this.cA);this.lI=new sE(n);g.Z(this,this.lI);this.e8=new XK(n);g.Z(this,this.e8);this.I8=lc(function(){return new sQ(q)}); g.Z(this,this.I8);this.lY=new Hc(n);g.Z(this,this.lY);this.I1=lc(function(){return new kh}); g.Z(this,this.I1);this.T$=lc(function(){return new bG(Y.gJ)}); g.Z(this,this.T$);this.FJ=lc(function(){return new Z2(Y.n8,d,G)}); g.Z(this,this.FJ);this.q9=lc(function(){return new oS(Y.Zk,Y.Gs,Y.lI,Y.w7)}); g.Z(this,this.q9);this.L1=lc(function(){return new Z7(n,Y.lY,Y.lI,Y.Gs,Y.w7,Y.Uh,Y.jc,Y.Dk,Y.gJ,Y.g8,Y.FV,Y.GX,Y.vn,Y.qP,Y.Nv,Y.Zk,Y.I8,L,T)}); g.Z(this,this.L1);this.Wy=lc(function(){return new cNU(Y.XV,Y.gJ,Y.Gs,b,Y.i4,M,Y.Dk)}); g.Z(this,this.Wy);this.mR={r3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.n8],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.El],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.zU],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.HI]]),Ac:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.j8],["SLOT_TYPE_FORECASTING",this.z0],["SLOT_TYPE_IN_PLAYER",this.z0],["SLOT_TYPE_PLAYER_BYTES",this.z0]]),Rz:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.pT],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Hg],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hg],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hg],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hg],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hg],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hg],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hg],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.cA],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.cA],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.lI],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.e8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.lY]]),Ml:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.I1],["SLOT_TYPE_FORECASTING",this.I1],["SLOT_TYPE_IN_PLAYER",this.I1],["SLOT_TYPE_PLAYER_BYTES",this.T$]]),w6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.FJ],["SLOT_TYPE_FORECASTING",this.q9],["SLOT_TYPE_IN_PLAYER",this.Wy],["SLOT_TYPE_PLAYER_BYTES", this.L1]])};this.listeners=[b.get()];this.B0={n8:this.n8,DJ:this.Zk.get(),Nm:this.qP.get(),o0:this.gJ.get(),zU:this.zU,kx:G.get(),PB:null,xV:this.pT,VC:b.get(),WI:this.Dk.get()}}; nwT=function(n,q,M,t,c){g.F.call(this);var Y=this,G=lc(function(){return new Lg(Y.Zk)}); g.Z(this,G);var k=lc(function(){return new vc(G,Y.Zk)}); g.Z(this,k);var b=lc(function(){return new Yh}); g.Z(this,b);var d=lc(function(){return new tj(n)}); g.Z(this,d);var N=lc(function(){return new TR(G,k,Y.Zk)}); g.Z(this,N);var O=lc(function(){return new DJ}); g.Z(this,O);this.i4=lc(function(){return new CfA(q)}); g.Z(this,this.i4);this.XV=lc(function(){return new ex(q)}); g.Z(this,this.XV);this.qP=lc(function(){return new uc(c)}); g.Z(this,this.qP);this.GX=lc(function(){return new zr(q)}); g.Z(this,this.GX);this.FV=lc(function(){return new Ju(q)}); g.Z(this,this.FV);this.jc=lc(function(){return new V2(q)}); g.Z(this,this.jc);this.vn=lc(function(){return new CX(q)}); g.Z(this,this.vn);this.Zk=lc(function(){return new rG(q)}); g.Z(this,this.Zk);var e=lc(function(){return new g_(t)}); g.Z(this,e);var E=lc(function(){return new ti(Y.Zk)}); g.Z(this,E);this.Nv=lc(function(){return new y$(q)}); g.Z(this,this.Nv);this.Dk=lc(function(){return new YN(q,O,Y.Zk)}); g.Z(this,this.Dk);var h=oA({Dk:this.Dk,Zk:this.Zk,wO:E}),I=h.context,L=h.EN;this.mA=h.mA;this.Hm=lc(function(){return new WM(q,Y.Zk,Y.Gs)}); g.Z(this,this.Hm);this.I8=lc(function(){return new sQ(q)}); g.Z(this,this.I8);this.gJ=lc(function(){return new GQ(q,Y.Dk,Y.Zk)}); g.Z(this,this.gJ);this.g8=lc(function(){return new Xe}); g.Z(this,this.g8);h=lc(function(){return new VC(G,N,k,Y.Zk,E,null,Y.gJ,Y.Nj,Y.Eh,3)}); g.Z(this,h);this.Uh=lc(function(){return new mq(Y.Zk)}); this.w7=lc(function(){return new pX(Y.gJ,q,Y.Zk)}); g.Z(this,this.w7);this.Gs=lc(function(){return new cM(q,b,Y.w7,Y.Dk,Y.mA,Y.Zk,L)}); g.Z(this,this.Gs);this.zU=new iG(d,h,M,this.Zk,n,this.Dk,this.gJ,this.GX);g.Z(this,this.zU);var T=new wG(q,this.zU,this.gJ,this.Dk,this.Hm);this.Ae=lc(function(){return T}); this.LF=T;this.El=new ML(R51,jx,function(v,B,m,a){return dp1(k.get(),v,B,m,a)},d,N,k,E,this.Zk,this.Dk); g.Z(this,this.El);this.Nj=new xW(d,N,this.Ae,this.Hm,this.gJ,this.Zk,this.Gs,this.I8);g.Z(this,this.Nj);this.HI=new cc(d,N,this.FV,this.Ae,I);g.Z(this,this.HI);this.n8=new gt(this.Zk,d,N,h,this.Dk,this.HI,M,this.jc);g.Z(this,this.n8);this.j8=lc(function(){return new MY(e,k,E,Y.Zk,Y.Gs,Y.gJ,Y.I8)}); g.Z(this,this.j8);this.z0=lc(function(){return new i7}); g.Z(this,this.z0);this.pT=new OE(n,this.XV,this.Zk);g.Z(this,this.pT);this.Hg=new gL(n);g.Z(this,this.Hg);this.Yr=new hj(n,this.Ae,I);g.Z(this,this.Yr);this.cA=new Wc(n,this.FV,this.gJ,this.Dk,I);g.Z(this,this.cA);this.i6=new yz(n,this.Dk);g.Z(this,this.i6);this.Eh=new jG(n,this.Hm,this.gJ,this.Gs,this.Ae,this.Nj);g.Z(this,this.Eh);this.lI=new sE(n);g.Z(this,this.lI);this.e8=new XK(n);g.Z(this,this.e8);this.lY=new Hc(n);g.Z(this,this.lY);this.I1=lc(function(){return new kh}); g.Z(this,this.I1);this.T$=lc(function(){return new bG(Y.gJ)}); g.Z(this,this.T$);this.FJ=lc(function(){return new Z2(Y.n8,d,G)}); g.Z(this,this.FJ);this.q9=lc(function(){return new oS(Y.Zk,Y.Gs,Y.lI,Y.w7)}); g.Z(this,this.q9);this.L1=lc(function(){return new Fh(n,Y.lY,Y.lI,Y.Dk,Y.I8,Y.gJ,Y.g8,Y.Gs,O,Y.Hm,Y.w7,Y.Uh,Y.jc,Y.FV,Y.GX,Y.vn,Y.qP,Y.Nv,Y.Zk,b,I,L)}); g.Z(this,this.L1);this.cJ=lc(function(){return new Y4j(Y.XV,Y.gJ,Y.Gs,b,Y.i4,M,Y.Zk,Y.Dk)}); g.Z(this,this.cJ);this.mR={r3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.n8],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Nj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.El],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.zU],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.HI]]),Ac:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.j8],["SLOT_TYPE_FORECASTING",this.z0],["SLOT_TYPE_IN_PLAYER",this.z0],["SLOT_TYPE_PLAYER_BYTES",this.z0]]),Rz:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.pT],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hg],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hg],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hg],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hg],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hg],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hg],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hg],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.cA],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.cA],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.i6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.i6],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.lI],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.e8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.lY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Eh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Eh],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Eh],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Eh],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Eh]]),Ml:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.I1],["SLOT_TYPE_FORECASTING",this.I1],["SLOT_TYPE_IN_PLAYER",this.I1],["SLOT_TYPE_PLAYER_BYTES",this.T$]]),w6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.FJ],["SLOT_TYPE_FORECASTING",this.q9],["SLOT_TYPE_PLAYER_BYTES",this.L1],["SLOT_TYPE_IN_PLAYER",this.cJ]])};this.listeners=[b.get()]; this.B0={n8:this.n8,DJ:this.Zk.get(),Nm:this.qP.get(),o0:this.gJ.get(),zU:this.zU,kx:G.get(),PB:null,xV:this.pT,VC:b.get(),WI:this.Dk.get()}}; MSd=function(n,q,M,t){function c(){return Y.W} g.F.call(this);var Y=this;n.T().experiments.Hb("html5_dispose_of_manager_before_dependency")?(this.X=qFD(c,n,q,M,t),this.W=(new U6(this.X)).Z(),g.Z(this,this.W),g.Z(this,this.X)):(this.X=qFD(c,n,q,M,t),g.Z(this,this.X),this.W=(new U6(this.X)).Z(),g.Z(this,this.W))}; Sx=function(n){return n.X.B0}; qFD=function(n,q,M,t,c){try{var Y=q.T();if(g.fl(Y))var G=new r_s(n,q,M,t,c);else if(g.PN(Y))G=new xRK(n,q,M,t,c);else if(h8(Y))G=new Qjs(n,q,M,t,c);else if(g.BD(Y))G=new pdF(n,q,M,t,c);else if(g.d1(Y))G=new nwT(n,q,M,t,c);else throw new TypeError("Unknown web interface");return G}catch(k){return G=q.T(),Kz("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:G.X.cplatform,interface:G.X.c,cfL:G.X.cver,b3g:G.X.ctheme,BAX:G.X.cplayer,myg:G.playerStyle}),new FCD(n,q,M,t,c)}}; iQw=function(n){ZX.call(this,n)}; tSw=function(n,q,M,t,c){C$.call(this,n,{j:"div",Y:"ytp-ad-timed-pie-countdown-container",L:[{j:"svg",Y:"ytp-ad-timed-pie-countdown",K:{viewBox:"0 0 20 20"},L:[{j:"circle",Y:"ytp-ad-timed-pie-countdown-background",K:{r:"10",cx:"10",cy:"10"}},{j:"circle",Y:"ytp-ad-timed-pie-countdown-inner",K:{r:"5",cx:"10",cy:"10"}},{j:"circle",Y:"ytp-ad-timed-pie-countdown-outer",K:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",q,M,t,c);this.J=this.JE("ytp-ad-timed-pie-countdown-container");this.Z=this.JE("ytp-ad-timed-pie-countdown-inner"); this.S=this.JE("ytp-ad-timed-pie-countdown-outer");this.W=Math.ceil(2*Math.PI*5);this.hide()}; cFs=function(n,q,M,t,c,Y){K$.call(this,n,{j:"div",Y:"ytp-ad-action-interstitial",K:{tabindex:"0"},L:[{j:"div",Y:"ytp-ad-action-interstitial-background-container"},{j:"div",Y:"ytp-ad-action-interstitial-slot",L:[{j:"div",Y:"ytp-ad-action-interstitial-instream-info"},{j:"div",Y:"ytp-ad-action-interstitial-card",L:[{j:"div",Y:"ytp-ad-action-interstitial-image-container"},{j:"div",Y:"ytp-ad-action-interstitial-headline-container"},{j:"div",Y:"ytp-ad-action-interstitial-description-container"},{j:"div", Y:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",q,M,t);this.N$=c;this.V2=Y;this.navigationEndpoint=this.X=this.skipButton=this.W=this.actionButton=null;this.rJ=this.JE("ytp-ad-action-interstitial-instream-info");this.SX=this.JE("ytp-ad-action-interstitial-image-container");this.U=new Aa(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,"ytp-ad-action-interstitial-image");g.Z(this,this.U);this.U.dJ(this.SX);this.IL=this.JE("ytp-ad-action-interstitial-headline-container"); this.S=new Ja(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,"ytp-ad-action-interstitial-headline");g.Z(this,this.S);this.S.dJ(this.IL);this.RL=this.JE("ytp-ad-action-interstitial-description-container");this.Z=new Ja(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,"ytp-ad-action-interstitial-description");g.Z(this,this.Z);this.Z.dJ(this.RL);this.eX=this.JE("ytp-ad-action-interstitial-background-container");this.AE=new Aa(this.api,this.layoutId,this.interactionLoggingClientData, this.Nm,"ytp-ad-action-interstitial-background",!0);g.Z(this,this.AE);this.AE.dJ(this.eX);this.Yl=this.JE("ytp-ad-action-interstitial-action-button-container");this.slot=this.JE("ytp-ad-action-interstitial-slot");this.yA=this.JE("ytp-ad-action-interstitial-card");this.J=new So;g.Z(this,this.J);this.hide()}; YFS=function(n){var q=g.kZ("html5-video-player");q&&g.Yi(q,"ytp-ad-display-override",n)}; bQD=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ytp-ad-overlay-slot",L:[{j:"div",Y:"ytp-ad-overlay-container"}]},"invideo-overlay",q,M,t);this.U=[];this.eX=this.IL=this.J=this.Yl=this.rJ=null;this.AE=!1;this.S=null;this.RL=0;n=this.JE("ytp-ad-overlay-container");this.SX=new iU(n,45E3,6E3,.3,.4);g.Z(this,this.SX);this.Z=GLQ(this);g.Z(this,this.Z);this.Z.dJ(n);this.W=KKQ(this);g.Z(this,this.W);this.W.dJ(n);this.X=kLG(this);g.Z(this,this.X);this.X.dJ(n);this.hide()}; GLQ=function(n){var q=new g.G2({j:"div",Y:"ytp-ad-text-overlay",L:[{j:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{j:"div",Y:"ytp-ad-overlay-close-container",L:[{j:"button",Y:"ytp-ad-overlay-close-button",L:[P4(dDL)]}]},{j:"div",Y:"ytp-ad-overlay-title",Wb:"{{title}}"},{j:"div",Y:"ytp-ad-overlay-desc",Wb:"{{description}}"},{j:"div",aL:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Wb:"{{displayUrl}}"}]});n.V(q.JE("ytp-ad-overlay-title"),"click",function(M){IL(n,q.element,M)}); n.V(q.JE("ytp-ad-overlay-link"),"click",function(M){IL(n,q.element,M)}); n.V(q.JE("ytp-ad-overlay-close-container"),"click",n.Ap);q.hide();return q}; KKQ=function(n){var q=new g.G2({j:"div",aL:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],L:[{j:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{j:"div",Y:"ytp-ad-overlay-close-container",L:[{j:"button",Y:"ytp-ad-overlay-close-button",L:[P4(dDL)]}]},{j:"div",Y:"ytp-ad-overlay-text-image",L:[{j:"img",K:{src:"{{imageUrl}}"}}]},{j:"div",Y:"ytp-ad-overlay-title",Wb:"{{title}}"},{j:"div",Y:"ytp-ad-overlay-desc",Wb:"{{description}}"},{j:"div",aL:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Wb:"{{displayUrl}}"}]});n.V(q.JE("ytp-ad-overlay-title"),"click",function(M){IL(n,q.element,M)}); n.V(q.JE("ytp-ad-overlay-link"),"click",function(M){IL(n,q.element,M)}); n.V(q.JE("ytp-ad-overlay-close-container"),"click",n.Ap);n.V(q.JE("ytp-ad-overlay-text-image"),"click",n.Eyl);q.hide();return q}; kLG=function(n){var q=new g.G2({j:"div",Y:"ytp-ad-image-overlay",L:[{j:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{j:"div",Y:"ytp-ad-overlay-close-container",L:[{j:"button",Y:"ytp-ad-overlay-close-button",L:[P4(dDL)]}]},{j:"div",Y:"ytp-ad-overlay-image",L:[{j:"img",K:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});n.V(q.JE("ytp-ad-overlay-image"),"click",function(M){IL(n,q.element,M)}); n.V(q.JE("ytp-ad-overlay-close-container"),"click",n.Ap);q.hide();return q}; NTQ=function(n,q){if(q){var M=g.R(q,bk)||null;M==null?g.Ly(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(q=g.kZ("video-ads ytp-ad-module")||null,q==null?g.Ly(Error("Could not locate the root ads container element to attach the ad info dialog.")):(n.IL=new g.G2({j:"div",Y:"ytp-ad-overlay-ad-info-dialog-container"}),g.Z(n,n.IL),n.IL.dJ(q),q=new z2(n.api,n.layoutId,n.interactionLoggingClientData,n.Nm,n.IL.element,!1),g.Z(n,q),q.init(n$("ad-info-hover-text-button"),M,n.macros), n.S?(q.dJ(n.S,0),q.subscribe("f",n.Xgy,n),q.subscribe("e",n.xf,n),n.V(n.S,"click",n.RHE),n.V(g.kZ("ytp-ad-button",q.element),"click",function(){var t;if(g.R((t=g.R(M.button,g.N_))==null?void 0:t.serviceEndpoint,pfj))n.AE=n.api.getPlayerState(1)===2,n.api.pauseVideo();else n.api.onAdUxClicked("ad-info-hover-text-button",n.layoutId)}),n.eX=q):g.Ly(Error("Ad info button container within overlay ad was not present."))))}else g.PJ(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; gwS=function(n,q){if(OQG(n,fc)||n.api.isMinimized())return!1;var M=kR(q.title),t=kR(q.description);if(g.UC(M)||g.UC(t))return!1;n.createServerVe(n.Z.element,q.trackingParams||null);n.Z.updateValue("title",kR(q.title));n.Z.updateValue("description",kR(q.description));n.Z.updateValue("displayUrl",kR(q.displayUrl));q.navigationEndpoint&&g.Bs(n.U,q.navigationEndpoint);n.Z.show();n.SX.start();n.logVisibility(n.Z.element,!0);n.V(n.Z.element,"mouseover",function(){n.RL++}); return!0}; edK=function(n,q){if(OQG(n,fc)||n.api.isMinimized())return!1;var M=kR(q.title),t=kR(q.description);if(g.UC(M)||g.UC(t))return!1;n.createServerVe(n.W.element,q.trackingParams||null);n.W.updateValue("title",kR(q.title));n.W.updateValue("description",kR(q.description));n.W.updateValue("displayUrl",kR(q.displayUrl));n.W.updateValue("imageUrl",bLC(q.image));q.navigationEndpoint&&g.Bs(n.U,q.navigationEndpoint);n.Yl=q.imageNavigationEndpoint||null;n.W.show();n.SX.start();n.logVisibility(n.W.element,!0); n.V(n.W.element,"mouseover",function(){n.RL++}); return!0}; EwL=function(n,q){if(n.api.isMinimized())return!1;var M=dyR(q.image),t=M;M.width0?(q=new Uv(n.api,n.X), q.dJ(n.playerOverlay),g.Z(n,q)):(n=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(q)),g.Ly(n))}}else g.Ly(Error("addCommonComponents() needs to be called before starting countdown."))}; LKS=function(n){function q(M){return{toString:function(){return M()}}} n.macros.SURVEY_LOCAL_TIME_EPOCH_S=q(function(){var M=new Date;return(Math.round(M.valueOf()/1E3)+-1*M.getTimezoneOffset()*60).toString()}); n.macros.SURVEY_ELAPSED_MS=q(function(){return(Date.now()-n.Z).toString()})}; PnA=function(n,q,M,t,c){vM.call(this,n,q,M,t,"survey-question-multi-select");this.RL=c;this.noneOfTheAbove=null;this.submitEndpoints=[];this.S=null;this.hide()}; vwd=function(n,q,M){n.noneOfTheAbove=new jGs(n.api,n.layoutId,n.interactionLoggingClientData,n.Nm);n.noneOfTheAbove.dJ(n.answers);n.noneOfTheAbove.init(n$("survey-none-of-the-above"),q,M)}; lAQ=function(n){n.W.forEach(function(q){q.X.toggleButton(!1)}); TTT(n,!0)}; TTT=function(n,q){var M=n.J;n=UDw(n);q=q===void 0?!1:q;M.X&&(n?M.X.hide():M.X.show(),q&&M.X instanceof gU&&!M.X.J&&Ku1(M.X,!1));M.W&&(n?M.W.show():M.W.hide())}; UDw=function(n){return n.W.some(function(q){return q.X.isToggled()})||n.noneOfTheAbove.button.isToggled()}; TQ=function(n,q,M,t,c){vM.call(this,n,q,M,t,"survey-question-single-select",function(G){Y.api.T().D("supports_multi_step_on_desktop")&&c([G])}); var Y=this;this.hide()}; lt=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ytp-ad-survey",L:[{j:"div",Y:"ytp-ad-survey-questions"}]},"survey",q,M,t);this.questions=[];this.W=[];this.conditioningRules=[];this.X=0;this.S=this.JE("ytp-ad-survey-questions");this.api.T().D("fix_survey_color_contrast_on_destop")&&this.JE("ytp-ad-survey").classList.add("color-contrast-fix");this.api.T().D("web_enable_speedmaster")&&this.JE("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; DDs=function(n,q){var M=n.W[q],t;(t=n.Z)==null||t.dispose();g.R(M,Kw)?uOw(n,g.R(M,Kw),n.macros):g.R(M,GP)&&BTQ(n,g.R(M,GP),n.macros);n.X=q}; uOw=function(n,q,M){var t=new TQ(n.api,n.layoutId,n.interactionLoggingClientData,n.Nm,n.J.bind(n));t.dJ(n.S);t.init(n$("survey-question-single-select"),q,M);n.api.T().D("supports_multi_step_on_desktop")?n.Z=t:n.questions.push(t);g.Z(n,t)}; BTQ=function(n,q,M){var t=new PnA(n.api,n.layoutId,n.interactionLoggingClientData,n.Nm,n.J.bind(n));t.dJ(n.S);t.init(n$("survey-question-multi-select"),q,M);n.api.T().D("supports_multi_step_on_desktop")?n.Z=t:n.questions.push(t);g.Z(n,t)}; UQ=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ytp-ad-survey-interstitial",L:[{j:"div",Y:"ytp-ad-survey-interstitial-contents",L:[{j:"div",Y:"ytp-ad-survey-interstitial-logo",L:[{j:"div",Y:"ytp-ad-survey-interstitial-logo-image"}]},{j:"div",Y:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",q,M,t);this.X=this.actionButton=null;this.interstitial=this.JE("ytp-ad-survey-interstitial");this.W=this.JE("ytp-ad-survey-interstitial-contents");this.text=this.JE("ytp-ad-survey-interstitial-text"); this.logoImage=this.JE("ytp-ad-survey-interstitial-logo-image");this.transition=new g.QX(this,500,!1,300);g.Z(this,this.transition)}; AFs=function(n,q){q=q&&DX(q)||"";if(g.UC(q))g.PJ(Error("Found ThumbnailDetails without valid image URL"));else{var M=n.style;n=n.style.cssText;var t=document.implementation.createHTMLDocument("").createElement("DIV");t.style.cssText=n;n=Atu(t.style);M.cssText=[n,'background-image:url("'+q+'");'].join("")}}; mDO=function(n){var q=g.kZ("html5-video-player");q&&g.Yi(q,"ytp-ad-display-override",n)}; ut=function(n,q,M,t,c,Y){Y=Y===void 0?0:Y;C$.call(this,n,{j:"div",Y:"ytp-preview-ad",L:[{j:"div",Y:"ytp-preview-ad__text"}]},"preview-ad",q,M,t,c);var G=this;this.RL=Y;this.W=0;this.J=-1;this.Z=this.JE("ytp-preview-ad__text");switch(this.RL){case 1:this.Z.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.QX(this,400,!1,100,function(){G.hide()}); g.Z(this,this.transition);this.hide()}; BM=function(n,q,M,t){K$.call(this,n,{j:"img",Y:"ytp-ad-avatar"},"ad-avatar",q,M,t);this.hide()}; $DA=function(n){switch(n.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; Da=function(n,q,M,t,c,Y){c=c===void 0?!1:c;Y=Y===void 0?!1:Y;K$.call(this,n,{j:"button",Y:"ytp-ad-button-vm"},"ad-button",q,M,t);this.buttonText=this.buttonIcon=null;this.hide();this.X=c;this.W=Y}; FKG=function(n,q,M,t,c){C$.call(this,n,{j:"div",aL:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],L:[{j:"div",Y:"ytp-ad-avatar-lockup-card__avatar_and_text_container",L:[{j:"div",Y:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",q,M,t,c);this.startMilliseconds=0;this.adAvatar=new BM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);g.Z(this,this.adAvatar);yf(this.element,this.adAvatar.element,0);this.headline=new HD(this.api,this.layoutId, this.interactionLoggingClientData,this.Nm);g.Z(this,this.headline);this.headline.dJ(this.JE("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new HD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);g.Z(this,this.description);this.description.dJ(this.JE("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new Da(this.api, this.layoutId,this.interactionLoggingClientData,this.Nm);g.Z(this,this.adButton);this.adButton.dJ(this.element);this.hide()}; A1=function(n,q,M,t){K$.call(this,n,{j:"button",Y:"ytp-skip-ad-button",L:[{j:"div",Y:"ytp-skip-ad-button__text"}]},"skip-button",q,M,t);var c=this;this.W=!1;this.J=this.JE("ytp-skip-ad-button__text");this.transition=new g.QX(this,500,!1,100,function(){c.hide()}); g.Z(this,this.transition);this.X=new iU(this.element,15E3,5E3,.5,.5,!0);g.Z(this,this.X);this.hide()}; ZQQ=function(n,q,M,t,c){C$.call(this,n,{j:"div",Y:"ytp-skip-ad"},"skip-ad",q,M,t,c);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Z=new A1(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);g.Z(this,this.Z);this.Z.dJ(this.element);this.hide()}; ms=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ytp-visit-advertiser-link"},"visit-advertiser-link",q,M,t);this.hide()}; $N=function(n,q,M,t,c){K$.call(this,n,{j:"div",Y:"ytp-ad-player-overlay-layout",L:[{j:"div",Y:"ytp-ad-player-overlay-layout__player-card-container"},{j:"div",Y:"ytp-ad-player-overlay-layout__ad-info-container"},{j:"div",Y:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{j:"div",Y:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",q,M,t);this.W=c;this.IL=this.JE("ytp-ad-player-overlay-layout__player-card-container");this.X=this.JE("ytp-ad-player-overlay-layout__ad-info-container"); this.U=this.JE("ytp-ad-player-overlay-layout__skip-or-preview-container");this.RL=this.JE("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; aAF=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ytp-ad-grid-card-text",L:[{j:"div",Y:"ytp-ad-grid-card-text__metadata",L:[{j:"div",Y:"ytp-ad-grid-card-text__metadata__headline"},{j:"div",Y:"ytp-ad-grid-card-text__metadata__description",L:[{j:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"},{j:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{j:"div",Y:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",q,M,t);this.headline=new HD(this.api,this.layoutId,this.interactionLoggingClientData, this.Nm);g.Z(this,this.headline);this.headline.dJ(this.JE("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new Da(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,!0);g.Z(this,this.moreInfoButton);this.moreInfoButton.dJ(this.JE("ytp-ad-grid-card-text__button"))}; Fe=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",q,M,t);this.X=[]}; Za=function(n,q,M,t,c,Y,G){C$.call(this,n,Y,G,q,M,t,c);this.playerProgressOffsetMs=0;this.W=!1}; RdL=function(n){var q=g.kZ("html5-video-player");q&&g.Yi(q,"ytp-ad-display-override",n)}; ows=function(n,q,M,t,c){Za.call(this,n,q,M,t,c,{j:"div",Y:"ytp-display-underlay-text-grid-cards",L:[{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container",L:[{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header",L:[{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Fe(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);g.Z(this,this.adGridCardCollection);this.adGridCardCollection.dJ(this.JE("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new Da(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);g.Z(this,this.adButton);this.adButton.dJ(this.JE("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.Z=this.JE("ytp-display-underlay-text-grid-cards__content_container");this.J=this.JE("ytp-display-underlay-text-grid-cards__content_container__header")}; aL=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ytp-ad-details-line"},"ad-details-line",q,M,t);this.X=[];this.hide()}; RL=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ytp-image-background",L:[{j:"img",Y:"ytp-image-background-image"}]},"image-background",q,M,t);this.hide()}; wsF=function(n,q,M,t,c){C$.call(this,n,{j:"svg",Y:"ytp-timed-pie-countdown",K:{viewBox:"0 0 20 20"},L:[{j:"circle",Y:"ytp-timed-pie-countdown__background",K:{r:"10",cx:"10",cy:"10"}},{j:"circle",Y:"ytp-timed-pie-countdown__inner",K:{r:"5",cx:"10",cy:"10"}},{j:"circle",Y:"ytp-timed-pie-countdown__outer",K:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",q,M,t,c);this.Z=this.JE("ytp-timed-pie-countdown__inner");this.W=Math.ceil(2*Math.PI*5);this.hide()}; oL=function(n,q,M,t){K$.call(this,n,{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout",K:{tabindex:"0"},L:[{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content",L:[{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",L:[{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",q,M,t);this.W=null;this.J=this.JE("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Z=new So;g.Z(this,this.Z);this.hide()}; zdS=function(n){var q=g.kZ("html5-video-player");q&&g.Yi(q,"ytp-ad-display-override",n)}; JFs=function(n){if(!n.adAvatar||!g.R(n.adAvatar,w_))return g.Ly(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!n.headline)return g.Ly(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!n.adBadge||!g.R(n.adBadge,zQ))return g.Ly(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!n.adButton||!g.R(n.adButton,J1))return g.Ly(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!n.adInfoRenderer|| !g.R(n.adInfoRenderer,bk))return g.Ly(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;n=n.durationMilliseconds||0;return typeof n!=="number"||n<=0?(g.Ly(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+n)),!1):!0}; V$=function(n,q){q=q===void 0?2:q;g.MB.call(this);this.api=n;this.X=null;this.handler=new So(this);g.Z(this,this.handler);this.W=kY1;this.handler.V(this.api,"presentingplayerstatechange",this.xq);this.X=this.handler.V(this.api,"progresssync",this.Oq);this.X5=q;this.X5===1&&this.Oq()}; Cc=function(n,q,M){ZX.call(this,n);this.api=n;this.Nm=q;this.components={};n=new g.w({j:"div",aL:["video-ads","ytp-ad-module"]});g.Z(this,n);qU&&g.MN(n.element,"ytp-ads-tiny-mode");this.J=new Ni(n.element);g.Z(this,this.J);g.qW(this.api,n.element,4);TP(M)&&(M=new g.w({j:"div",aL:["ytp-ad-underlay"]}),g.Z(this,M),this.W=new Ni(M.element),g.Z(this,this.W),g.qW(this.api,M.element,0));g.Z(this,myu())}; VSO=function(n,q){n=g.eL(n.components,q.id,null);n==null&&g.PJ(Error("Component not found for element id: "+q.id));return n||null}; CnD=function(n){g.Ib.call(this,n);var q=this;this.W=null;this.created=!1;this.Z=n.T().D("h5_use_refactored_get_ad_break")?new Z2J(this.player):new RA(this.player);this.J=function(){if(q.W!=null)return q.W;var t=new Vva({xV:Sx(q.X).xV,WI:Sx(q.X).WI,G:q.player,DJ:Sx(q.X).DJ,Gs:q.X.X.Gs,VC:Sx(q.X).VC,vn:q.X.X.vn});q.W=t.MA;return q.W}; this.X=new MSd(this.player,this,this.Z,this.J);g.Z(this,this.X);var M=n.T();!E6(M)||g.d1(M)||h8(M)||(g.Z(this,new Cc(n,Sx(this.X).Nm,Sx(this.X).DJ)),g.Z(this,new iQw(n)))}; rFQ=function(n){n.created!==n.loaded&&Kz("Created and loaded are out of sync")}; psT=function(n){g.Ib.prototype.load.call(n);var q=Sx(n.X).DJ;try{n.player.getRootNode().classList.add("ad-created")}catch(b){Kz(b instanceof Error?b:String(b))}var M=n.player.getVideoData(1),t=M&&M.videoId||"",c=M&&M.getPlayerResponse()||{},Y=(c&&c.adPlacements||[]).map(function(b){return b.adPlacementRenderer}),G=((c==null?void 0:c.adSlots)||[]).map(function(b){return g.R(b,eB)}); c=c.playerConfig&&c.playerConfig.daiConfig&&c.playerConfig.daiConfig.enableDai||!1;M&&M.r7();Y=xDs(Y,G,q,Sx(n.X).kx);G=M&&M.clientPlaybackNonce||"";M=M&&M.IV||!1;if(NP(q,!0)&&M){var k;q={};(k=n.player.getVideoData())==null||k.Xy("p_cpb",(q.cc=G,q))}k=1E3*n.player.getDuration(1);QGs(n);n.X.X.LF.t9(G,k,M,Y.mD,Y.JK,Y.mD,c,t)}; QGs=function(n){var q,M;if(M=(q=n.player.getVideoData(1))==null||!q.IV)q=n.player.T(),M=E6(q)&&!g.e$(q)&&q.playerStyle==="desktop-polymer";M&&(n=n.player.getInternalApi(),n.addEventListener("updateKevlarOrC3Companion",Wud),n.addEventListener("updateEngagementPanelAction",yxm),n.addEventListener("changeEngagementPanelVisibility",sa_),window.addEventListener("yt-navigate-start",jas))}; r_=function(n,q){q===n.Ri&&(n.Ri=void 0)}; nuA=function(n){var q=Sx(n.X).zU,M=q.J().hO("SLOT_TYPE_PLAYER_BYTES",1);q=Vg(q.Dk.get(),1).clientPlaybackNonce;var t=!1;M=g.S(M);for(var c=M.next();!c.done;c=M.next()){c=c.value;var Y=c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.slotEntryTrigger instanceof q4?c.slotEntryTrigger.po:void 0;Y&&Y===q&&(t&&Kz("More than 1 preroll playerBytes slot detected",c),t=!0)}t||Kc(Sx(n.X).o0)}; qCT=function(n){if(xY(Sx(n.X).DJ))return!0;var q="";n=g.S(Sx(n.X).VC.w9.keys());for(var M=n.next();!M.done;M=n.next()){M=M.value;if(M.slotType==="SLOT_TYPE_PLAYER_BYTES"&&M.Ox==="core")return!0;q+=M.slotType+" "}Math.random()<.01&&Kz("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:q});return!1}; MLL=function(n){n=g.S(Sx(n.X).VC.w9.values());for(var q=n.next();!q.done;q=n.next())if(q.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Zom=function(n,q,M,t,c,Y,G){M=M===void 0?[]:M;t=t===void 0?"":t;c=c===void 0?"":c;var k=Sx(n.X).DJ,b=n.player.getVideoData(1);b&&b.getPlayerResponse();b&&b.r7();M=xDs(q,M,k,Sx(n.X).kx);zPk(Sx(n.X).n8,t,M.mD,M.JK,q,c,Y,G)}; xDs=function(n,q,M,t){q={mD:[],JK:q};n=g.S(n);for(var c=n.next();!c.done;c=n.next())if((c=c.value)&&c.renderer!=null){var Y=c.renderer;if(!M.G.T().D("html5_enable_vod_lasr_with_notify_pacf")){var G=void 0,k=void 0,b=void 0,d=void 0,N=t;g.R((d=Y.sandwichedLinearAdRenderer)==null?void 0:d.adVideoStart,Jp)?(G=g.R((b=Y.sandwichedLinearAdRenderer)==null?void 0:b.adVideoStart,Jp),G=GGf(G,N),g.uo(Y.sandwichedLinearAdRenderer.adVideoStart,Jp,G)):g.R((k=Y.linearAdSequenceRenderer)==null?void 0:k.adStart,Jp)&& (b=g.R((G=Y.linearAdSequenceRenderer)==null?void 0:G.adStart,Jp),G=GGf(b,N),g.uo(Y.linearAdSequenceRenderer.adStart,Jp,G))}q.mD.push(c)}return q}; g.xN=function(n){if(typeof DOMParser!="undefined")return L_(new DOMParser,l5k(n),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.Q$=function(n){g.F.call(this);this.callback=n;this.X=new hs(0,0,.4,0,.2,1,1,1);this.delay=new g.wE(this.next,window,this);g.Z(this,this.delay)}; g.i3s=function(n){var q=n.T();return q.TX&&!q.Z&&g.t8(q)?n.isEmbedsShortsMode()?(n=n.PR(),Math.min(n.width,n.height)>=315):!n.Qr():!1}; g.pc=function(n){g.w.call(this,{j:"div",Y:"ytp-more-videos-view",K:{tabIndex:"-1"}});var q=this;this.api=n;this.W=!0;this.Z=new g.f8(this);this.X=[];this.suggestionData=[];this.columns=this.containerWidth=this.N=this.J=this.scrollPosition=0;this.title=new g.w({j:"h2",Y:"ytp-related-title",Wb:"{{title}}"});this.previous=new g.w({j:"button",aL:["ytp-button","ytp-previous"],K:{"aria-label":"Mostrar videos sugeridos anteriores"},L:[g.Om()]});this.C=new g.Q$(function(M){q.suggestions.element.scrollLeft= -M}); this.next=new g.w({j:"button",aL:["ytp-button","ytp-next"],K:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},L:[g.gW()]});g.Z(this,this.Z);this.S=n.T().J;g.Z(this,this.title);this.title.dJ(this.element);this.suggestions=new g.w({j:"div",Y:"ytp-suggestions"});g.Z(this,this.suggestions);this.suggestions.dJ(this.element);g.Z(this,this.previous);this.previous.dJ(this.element);this.previous.listen("click",this.RW,this);g.Z(this,this.C);tLn(this);g.Z(this,this.next);this.next.dJ(this.element);this.next.listen("click", this.X8,this);this.Z.V(this.api,"appresize",this.Tk);this.Z.V(this.api,"fullscreentoggled",this.ER);this.Z.V(this.api,"videodatachange",this.onVideoDataChange);this.Tk(this.api.Lm().getPlayerSize());this.onVideoDataChange()}; tLn=function(n){for(var q={lL:0};q.lL<16;q={lL:q.lL},++q.lL){var M=new g.w({j:"a",Y:"ytp-suggestion-link",K:{href:"{{link}}",target:n.api.T().U,"aria-label":"{{aria_label}}"},L:[{j:"div",Y:"ytp-suggestion-image"},{j:"div",Y:"ytp-suggestion-overlay",K:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},L:[{j:"div",Y:"ytp-suggestion-title",Wb:"{{title}}"},{j:"div",Y:"ytp-suggestion-author",Wb:"{{author_and_views}}"},{j:"div",K:{"data-is-live":"{{is_live}}"},Y:"ytp-suggestion-duration", Wb:"{{duration}}"}]}]});g.Z(n,M);var t=M.JE("ytp-suggestion-link");g.wK(t,"transitionDelay",q.lL/20+"s");n.Z.V(t,"click",function(c){return function(Y){var G=c.lL;if(n.W){var k=n.suggestionData[G],b=k.sessionData;n.S&&n.api.D("web_player_log_click_before_generating_ve_conversion_params")?(n.api.logClick(n.X[G].element),G=k.o9(),k={},g.QG(n.api,k),G=g.hC(G,k),g.v8(G,n.api,Y)):g.P8(Y,n.api,n.S,b||void 0)&&n.api.u4(k.videoId,b,k.playlistId)}else Y.preventDefault(),document.activeElement.blur()}}(q)); M.dJ(n.suggestions.element);n.X.push(M);n.api.createServerVe(M.element,M)}}; cfG=function(n){if(n.api.T().D("web_player_log_click_before_generating_ve_conversion_params"))for(var q=Math.floor(-n.scrollPosition/(n.J+8)),M=Math.min(q+n.columns,n.suggestionData.length)-1;q<=M;q++)n.api.logVisibility(n.X[q].element,!0)}; g.nk=function(n){var q=n.api.iS()?32:16;q=n.N/2+q;n.next.element.style.bottom=q+"px";n.previous.element.style.bottom=q+"px";q=n.scrollPosition;var M=n.containerWidth-n.suggestionData.length*(n.J+8);g.Yi(n.element,"ytp-scroll-min",q>=0);g.Yi(n.element,"ytp-scroll-max",q<=M)}; GZn=function(n){for(var q=n.suggestionData.length,M=0;M>>0)+"_",c=0;return q}); OJ("Symbol.iterator",function(n){if(n)return n;n=Symbol("Symbol.iterator");for(var q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),M=0;M0&&M>0;)if(t[--M]!=q[--c])return!1;return c<=0}}); OJ("Array.prototype.find",function(n){return n?n:function(q,M){return NdC(this,q,M).g2}}); OJ("Array.prototype.entries",function(n){return n?n:function(){return oj(this,function(q,M){return[q,M]})}}); OJ("Array.prototype.keys",function(n){return n?n:function(){return oj(this,function(q){return q})}}); OJ("String.prototype.startsWith",function(n){return n?n:function(q,M){var t=aj(this,q,"startsWith");q+="";var c=t.length,Y=q.length;M=Math.max(0,Math.min(M|0,t.length));for(var G=0;G=Y}}); OJ("Number.isFinite",function(n){return n?n:function(q){return typeof q!=="number"?!1:!isNaN(q)&&q!==Infinity&&q!==-Infinity}}); OJ("String.prototype.repeat",function(n){return n?n:function(q){var M=aj(this,null,"repeat");if(q<0||q>1342177279)throw new RangeError("Invalid count value");q|=0;for(var t="";q;)if(q&1&&(t+=M),q>>>=1)M+=M;return t}}); OJ("Object.entries",function(n){return n?n:function(q){var M=[],t;for(t in q)Wd(q,t)&&M.push([t,q[t]]);return M}}); OJ("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); OJ("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); OJ("Array.from",function(n){return n?n:function(q,M,t){M=M!=null?M:function(k){return k}; var c=[],Y=typeof Symbol!="undefined"&&Symbol.iterator&&q[Symbol.iterator];if(typeof Y=="function"){q=Y.call(q);for(var G=0;!(Y=q.next()).done;)c.push(M.call(t,Y.value,G++))}else for(Y=q.length,G=0;G>>0;if(q===0)return 32;var M=0;(q&4294901760)===0&&(q<<=16,M+=16);(q&4278190080)===0&&(q<<=8,M+=8);(q&4026531840)===0&&(q<<=4,M+=4);(q&3221225472)===0&&(q<<=2,M+=2);(q&2147483648)===0&&M++;return M}}); OJ("Number.isNaN",function(n){return n?n:function(q){return typeof q==="number"&&isNaN(q)}}); OJ("Array.prototype.values",function(n){return n?n:function(){return oj(this,function(q,M){return M})}}); OJ("Array.prototype.fill",function(n){return n?n:function(q,M,t){var c=this.length||0;M<0&&(M=Math.max(0,c+M));if(t==null||t>c)t=c;t=Number(t);t<0&&(t=Math.max(0,c+t));for(M=Number(M||0);M0&&M?M.repeat(Math.ceil(q/M.length)).substring(0,q):"")+t}}); OJ("Array.prototype.findIndex",function(n){return n?n:function(q,M){return NdC(this,q,M).GM}}); OJ("Promise.prototype.finally",function(n){return n?n:function(q){return this.then(function(M){return Promise.resolve(q()).then(function(){return M})},function(M){return Promise.resolve(q()).then(function(){throw M; })})}}); OJ("Math.imul",function(n){return n?n:function(q,M){q=Number(q);M=Number(M);var t=q&65535,c=M&65535;return t*c+((q>>>16&65535)*c+t*(M>>>16&65535)<<16>>>0)|0}}); OJ("Math.sign",function(n){return n?n:function(q){q=Number(q);return q===0||isNaN(q)?q:q>0?1:-1}}); OJ("WeakSet",function(n){function q(M){this.X=new WeakMap;if(M){M=g.S(M);for(var t;!(t=M.next()).done;)this.add(t.value)}} if(function(){if(!n||!Object.seal)return!1;try{var M=Object.seal({}),t=Object.seal({}),c=new n([M]);if(!c.has(M)||c.has(t))return!1;c.delete(M);c.add(t);return!c.has(M)&&c.has(t)}catch(Y){return!1}}())return n; q.prototype.add=function(M){this.X.set(M,!0);return this}; q.prototype.has=function(M){return this.X.has(M)}; q.prototype.delete=function(M){return this.X.delete(M)}; return q}); OJ("AggregateError",function(n){function q(M,t){t=Error(t);"stack"in t&&(this.stack=t.stack);this.errors=M;this.message=t.message} if(n)return n;g.y(q,Error);q.prototype.name="AggregateError";return q}); OJ("Array.prototype.copyWithin",function(n){function q(M){M=Number(M);return M===Infinity||M===-Infinity?M:M|0} return n?n:function(M,t,c){var Y=this.length;M=q(M);t=q(t);c=c===void 0?Y:q(c);M=M<0?Math.max(Y+M,0):Math.min(M,Y);t=t<0?Math.max(Y+t,0):Math.min(t,Y);c=c<0?Math.max(Y+c,0):Math.min(c,Y);if(Mt;)--c in this?this[--M]=this[c]:delete this[--M];return this}}); OJ("Int8Array.prototype.copyWithin",zU);OJ("Uint8Array.prototype.copyWithin",zU);OJ("Uint8ClampedArray.prototype.copyWithin",zU);OJ("Int16Array.prototype.copyWithin",zU);OJ("Uint16Array.prototype.copyWithin",zU);OJ("Int32Array.prototype.copyWithin",zU);OJ("Uint32Array.prototype.copyWithin",zU);OJ("Float32Array.prototype.copyWithin",zU);OJ("Float64Array.prototype.copyWithin",zU);OJ("Array.prototype.at",function(n){return n?n:J_}); OJ("Int8Array.prototype.at",xs);OJ("Uint8Array.prototype.at",xs);OJ("Uint8ClampedArray.prototype.at",xs);OJ("Int16Array.prototype.at",xs);OJ("Uint16Array.prototype.at",xs);OJ("Int32Array.prototype.at",xs);OJ("Uint32Array.prototype.at",xs);OJ("Float32Array.prototype.at",xs);OJ("Float64Array.prototype.at",xs);OJ("String.prototype.at",function(n){return n?n:J_}); OJ("Array.prototype.findLastIndex",function(n){return n?n:function(q,M){return Oaa(this,q,M).GM}}); OJ("Int8Array.prototype.findLastIndex",Q1);OJ("Uint8Array.prototype.findLastIndex",Q1);OJ("Uint8ClampedArray.prototype.findLastIndex",Q1);OJ("Int16Array.prototype.findLastIndex",Q1);OJ("Uint16Array.prototype.findLastIndex",Q1);OJ("Int32Array.prototype.findLastIndex",Q1);OJ("Uint32Array.prototype.findLastIndex",Q1);OJ("Float32Array.prototype.findLastIndex",Q1);OJ("Float64Array.prototype.findLastIndex",Q1);OJ("Number.parseInt",function(n){return n||parseInt});var Jb,GL,eus;Jb=Jb||{};g.pa=this||self;GL="closure_uid_"+(Math.random()*1E9>>>0);eus=0;g.EF(hF,Error);hF.prototype.name="CustomError";var lAa;var jjf,Xp,oV;jjf=Array.prototype.indexOf?function(n,q){return Array.prototype.indexOf.call(n,q,void 0)}:function(n,q){if(typeof n==="string")return typeof q!=="string"||q.length!=1?-1:n.indexOf(q,0); for(var M=0;M=0;M--)if(M in n&&n[M]===q)return M;return-1}; g.xw=Array.prototype.forEach?function(n,q,M){Array.prototype.forEach.call(n,q,M)}:function(n,q,M){for(var t=n.length,c=typeof n==="string"?n.split(""):n,Y=0;Y=.3:this.Pm>=.5};var TZ={VAd:0,rPy:1},fxm={NONE:0,IJX:1,Ph1:2};var A_d="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");sC.prototype.getValue=function(){return this.W}; g.y(XV,sC);XV.prototype.Z=function(n){this.W===null&&g.Nk(this.J,n)&&(this.W=n)}; g.y(jL,sC);jL.prototype.Z=function(n){this.W===null&&typeof n==="number"&&(this.W=n)}; g.y(SL,sC);SL.prototype.Z=function(n){this.W===null&&typeof n==="string"&&(this.W=n)};IT.prototype.disable=function(){this.W=!1}; IT.prototype.enable=function(){this.W=!0}; IT.prototype.isEnabled=function(){return this.W}; IT.prototype.reset=function(){this.X={};this.W=!0;this.Z={}};var z8=document,lP=window;var eRs=tF(1,!0),ZR=tF(610401301,!1);tF(899588437,!1);var EuQ=tF(772657768,!1),hRs=tF(513659523,!1),W3s=tF(568333945,!0),wzd=tF(1331761403,!1);tF(651175828,!1);tF(722764542,!1);tF(748402145,!1);tF(748402146,!1);var Xgm=tF(748402147,eRs);tF(333098724,!1);tF(2147483644,!1);tF(2147483645,!1);tF(2147483646,eRs);tF(2147483647,!0);var aT=!!g.qD("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Af=String.prototype.trim?function(n){return n.trim()}:function(n){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(n)[1]},GLa=/&/g,KKa=//g,bQR=/"/g,dDU=/'/g,NTa=/\x00/g,YFk=/[\x00&<>"']/;var RT,yfQ=g.pa.navigator;RT=yfQ?yfQ.userAgentData||null:null;var Cfs=globalThis.trustedTypes,p3;qc.prototype.toString=function(){return this.X+""};tE.prototype.toString=function(){return this.X}; var Qjd=new tE("about:invalid#zClosurez");var ted=K_("tel"),Mek=K_("sms"),xRC=[K_("data"),K_("http"),K_("https"),K_("mailto"),K_("ftp"),new Gd(function(n){return/^[^:]*([/?#]|$)/.test(n)})],pdJ=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Op.prototype.toString=function(){return this.X+""};Wg.prototype.toString=function(){return this.X+""};j5.prototype.toString=function(){return this.X};var f_={};g.sTL=String.prototype.repeat?function(n,q){return n.repeat(q)}:function(n,q){return Array(q+1).join(n)};FC[" "]=function(){};var zV,yP,O2a,X7K,jTK,SCS,nl,qU,IRA;g.MU=Vn();g.bC=Rua();g.oa=zZ("Edge");g.vN=g.oa||g.bC;zV=zZ("Gecko")&&!(DR(g.FV(),"WebKit")&&!zZ("Edge"))&&!(zZ("Trident")||zZ("MSIE"))&&!zZ("Edge");g.dK=DR(g.FV(),"WebKit")&&!zZ("Edge");yP=$6();O2a=WKJ();g.Cp=hds();X7K=AE();jTK=zZ("iPad");SCS=zZ("iPod");nl=mS();qU=DR(g.FV(),"KaiOS"); a:{var fRw="",H3G=function(){var n=g.FV();if(zV)return/rv:([^\);]+)(\)|;)/.exec(n);if(g.oa)return/Edge\/([\d\.]+)/.exec(n);if(g.bC)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(n);if(g.dK)return/WebKit\/(\S+)/.exec(n);if(g.MU)return/(?:Version)[ \/]?(\S+)/.exec(n)}(); H3G&&(fRw=H3G?H3G[1]:"");if(g.bC){var qd,L3n=g.pa.document;qd=L3n?L3n.documentMode:void 0;if(qd!=null&&qd>parseFloat(fRw)){IRA=String(qd);break a}}IRA=fRw}var jGd=IRA,sG_={};var zH,JP;g.O8=C3();zH=AE()||zZ("iPod");JP=zZ("iPad");g.i4=wds();g.Xq=r0();g.gz=Qn()&&!mS();var lBd=!g.bC&&!Qn();g.W=g.wi.prototype;g.W.clone=function(){return new g.wi(this.x,this.y)}; g.W.equals=function(n){return n instanceof g.wi&&zd(this,n)}; g.W.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.W.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.W.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.W.scale=function(n,q){this.x*=n;this.y*=typeof q==="number"?q:n;return this};g.W=g.JE.prototype;g.W.clone=function(){return new g.JE(this.width,this.height)}; g.W.aspectRatio=function(){return this.width/this.height}; g.W.isEmpty=function(){return!C_(this)}; g.W.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.W.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.W.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.W.scale=function(n,q){this.width*=n;this.height*=typeof q==="number"?q:n;return this};x6.prototype.toString=function(){return this.X}; var ri={};new x6(ri,"");var fAa=/^[a-z][a-z\d-]*$/i,HQJ="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Pns="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),TTd=["action","formaction","href"];var UDs={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.W=n7.prototype;g.W.ji=function(n){return cT(this.X,n)}; g.W.getElementsByTagName=function(n,q){return(q||this.X).getElementsByTagName(String(n))}; g.W.JE=function(n){return g.kZ(n,this.X)}; g.W.setProperties=bP;g.W.createElement=function(n){return OS(this.X,n)}; g.W.appendChild=g.h2;g.W.append=function(n,q){AFd(iP(n),n,arguments,1)}; g.W.canHaveChildren=function(n){if(n.nodeType!=1)return!1;switch(n.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.W.removeNode=g.sS;g.W.getChildren=function(n){return n.children!=void 0?n.children:Array.prototype.filter.call(n.childNodes,function(q){return q.nodeType==1})}; g.W.contains=g.XL;PT.prototype.now=function(){return 0}; PT.prototype.W=function(){return 0}; PT.prototype.Z=function(){return 0}; PT.prototype.X=function(){return 0};g.y(TV,PT);TV.prototype.now=function(){return vT()&&lP.performance.now?lP.performance.now():PT.prototype.now.call(this)}; TV.prototype.W=function(){return vT()&&lP.performance.memory?lP.performance.memory.totalJSHeapSize||0:PT.prototype.W.call(this)}; TV.prototype.Z=function(){return vT()&&lP.performance.memory?lP.performance.memory.usedJSHeapSize||0:PT.prototype.Z.call(this)}; TV.prototype.X=function(){return vT()&&lP.performance.memory?lP.performance.memory.jsHeapSizeLimit||0:PT.prototype.X.call(this)};var HNd=function(){if(!g.pa.addEventListener||!Object.defineProperty)return!1;var n=!1,q=Object.defineProperty({},"passive",{get:function(){n=!0}}); try{var M=function(){}; g.pa.addEventListener("test",M,q);g.pa.removeEventListener("test",M,q)}catch(t){}return n}();var SVs=ZQa("AnimationEnd"),B8=ZQa("TransitionEnd");g.W=mT.prototype;g.W.getHeight=function(){return this.bottom-this.top}; g.W.clone=function(){return new mT(this.top,this.right,this.bottom,this.left)}; g.W.contains=function(n){return this&&n?n instanceof mT?n.left>=this.left&&n.right<=this.right&&n.top>=this.top&&n.bottom<=this.bottom:n.x>=this.left&&n.x<=this.right&&n.y>=this.top&&n.y<=this.bottom:!1}; g.W.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.W.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.W.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.W.scale=function(n,q){q=typeof q==="number"?q:n;this.left*=n;this.right*=n;this.top*=q;this.bottom*=q;return this};g.W=g.ap.prototype;g.W.clone=function(){return new g.ap(this.left,this.top,this.width,this.height)}; g.W.contains=function(n){return n instanceof g.wi?n.x>=this.left&&n.x<=this.left+this.width&&n.y>=this.top&&n.y<=this.top+this.height:this.left<=n.left&&this.left+this.width>=n.left+n.width&&this.top<=n.top&&this.top+this.height>=n.top+n.height}; g.W.getSize=function(){return new g.JE(this.width,this.height)}; g.W.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.W.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.W.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.W.scale=function(n,q){q=typeof q==="number"?q:n;this.left*=n;this.width*=n;this.top*=q;this.height*=q;return this};var RdU={};var CnR=BT(function(){var n=!1;try{var q=Object.defineProperty({},"passive",{get:function(){n=!0}}); g.pa.addEventListener("test",null,q)}catch(M){}return n});rFa.prototype.isVisible=function(){return Yq(z8)===1};var qCd=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");var ous=bE(function(n){return typeof n==="number"}),pH=bE(function(n){return typeof n==="string"}),w7d=bE(function(n){return typeof n==="boolean"}),$h=bE(function(n){return n!=null&&typeof n==="object"&&typeof n.then==="function"}),jJd=bE(function(n){return typeof n==="function"}),PVF=bE(function(n){return!!n&&(typeof n==="object"||typeof n==="function")});var tLf={zOx:"allow-forms",i_s:"allow-modals",Gps:"allow-orientation-lock",ned:"allow-pointer-lock",qu1:"allow-popups",luk:"allow-popups-to-escape-sandbox",rGl:"allow-presentation",ful:"allow-same-origin",DWs:"allow-scripts",AGy:"allow-top-navigation",oem:"allow-top-navigation-by-user-activation"},GZf=BT(function(){return cfj()});gk.prototype.Ag=function(n,q,M){n=n+"//"+q+M;var t=b3u(this)-M.length;if(t<0)return"";this.X.sort(function(d,N){return d-N}); M=null;q="";for(var c=0;c=b.length){t-=b.length;n+=b;q=this.Z;break}M=M==null?Y:M}}t="";M!=null&&(t=""+q+"trn="+M);return n+t};Si.prototype.setInterval=function(n,q){return lP.setInterval(n,q)}; Si.prototype.clearInterval=function(n){lP.clearInterval(n)}; Si.prototype.setTimeout=function(n,q){return lP.setTimeout(n,q)}; Si.prototype.clearTimeout=function(n){lP.clearTimeout(n)};var du=void 0,bA,R2J=typeof TextDecoder!=="undefined",X7C,sTU=typeof String.prototype.isWellFormed==="function",yfa=typeof TextEncoder!=="undefined";var H3j={},lE=null,L3f=zV||g.dK||typeof g.pa.btoa=="function";var mkm=typeof Uint8Array!=="undefined",Ukd=!g.bC&&typeof btoa==="function",uVd=/[-_.]/g,T0k={"-":"+",_:"/",".":"="},uE={};Uw.prototype.isEmpty=function(){return this.X==null}; Uw.prototype.sizeBytes=function(){var n=DB(this);return n?n.length:0}; var AfC;var $kU=void 0;var ZB=typeof Symbol==="function"&&typeof Symbol()==="symbol",vud=Fp("jas",void 0,!0),jl=Fp(void 0,"1oa"),uK=Fp(void 0,Symbol()),T0S=Fp(void 0,"0ub"),O_d=Fp(void 0,"0ubs"),O7s=Fp(void 0,"0ubsb"),Sp1=Fp(void 0,"0actk"),Tx=Fp("m_m","Flt",!0),E6_=Fp(void 0,"vps"),lRG=Fp();Math.max.apply(Math,g.EJ(Object.values({Obk:1,P0m:2,mSm:4,f8L:8,NUX:16,Swy:32,Ysg:64,Lmg:128,obt:256,p$X:512,m9t:1024,Ebl:2048,z$d:4096})));var Z3_={Bs:{value:0,configurable:!0,writable:!0,enumerable:!1}},F3U=Object.defineProperties,ag=ZB?vud:"Bs",tr,UkT=[];og(UkT,7);tr=Object.freeze(UkT);var lK={},zf={},lys=Object.freeze({}),CH={};var n0=typeof g.pa.BigInt==="function"&&typeof g.pa.BigInt(0)==="bigint";var al=bE(function(n){return n0?n>=uVT&&n<=B0s:n[0]==="-"?zRs(n,Dks):zRs(n,AfK)}),Dks=Number.MIN_SAFE_INTEGER.toString(),uVT=n0?BigInt(Number.MIN_SAFE_INTEGER):void 0,AfK=Number.MAX_SAFE_INTEGER.toString(),B0s=n0?BigInt(Number.MAX_SAFE_INTEGER):void 0;var mcd=typeof Uint8Array.prototype.slice==="function",M3=0,iK=0,gZd;var X9=typeof BigInt==="function"?BigInt.asIntN:void 0,Gdd=typeof BigInt==="function"?BigInt.asUintN:void 0,f0=Number.isSafeInteger,OP=Number.isFinite,Hb=Math.trunc,xka=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var h2C={};var mkO={ubE:!0};var F9;var WSj,yEs;var Bid=q3(0),uY={};aP.prototype.init=function(n,q,M,t){var c=t===void 0?{}:t;t=c.vL===void 0?!1:c.vL;c=c.XL===void 0?!1:c.XL;this.vL=t;this.XL=c;n&&(n=ZI(n,this.XL),this.W=n.buffer,this.S=n.X,this.J=q||0,this.Z=M!==void 0?this.J+M:this.W.length,this.X=this.J)}; aP.prototype.free=function(){this.clear();rD.length<100&&rD.push(this)}; aP.prototype.clear=function(){this.W=null;this.S=!1;this.X=this.Z=this.J=0;this.vL=!1}; aP.prototype.reset=function(){this.X=this.J}; var rD=[];xK.prototype.free=function(){this.X.clear();this.W=this.Z=-1;Q0.length<100&&Q0.push(this)}; xK.prototype.reset=function(){this.X.reset();this.J=this.X.X;this.W=this.Z=-1}; var Q0=[];var wgu,JEU;eT.prototype.length=function(){return this.X.length}; eT.prototype.end=function(){var n=this.X;this.X=[];return n};var Ix=jT(),$kL=jT(),F3L=jT(),Z3F=jT(),aRK=jT(),RRT=jT(),ouw=jT(),w7T=jT(),zRw=jT(),JfL=jT(),VLd=jT();ST.prototype.toJSON=function(){return ol(this)}; ST.prototype.XX=function(n){return JSON.stringify(ol(this,n))}; ST.prototype.clone=function(){var n=this.MP,q=n[ag]|0;return Vj(this,n,q)?C0(this,n,!0):new this.constructor(JS(n,q,!1))}; ST.prototype[Tx]=lK;ST.prototype.toString=function(){return this.MP.toString()};var i7j=HZ(function(n,q,M,t,c){if(n.W!==2)return!1;k3(n,Sl(q,t,M),c);return!0},MOR),tOd=HZ(function(n,q,M,t,c){if(n.W!==2)return!1; k3(n,Sl(q,t,M),c);return!0},MOR),Ah=Symbol(),lA=Symbol(),BZ=Symbol(),b7R=Symbol(),GVR=Symbol(),Ld,PZ;var CVs=zc(function(n,q,M){if(n.W!==1)return!1;VU(q,M,V0(n.X));return!0},ru,zRw),rfn=zc(function(n,q,M){if(n.W!==1)return!1; n=V0(n.X);VU(q,M,n===0?void 0:n);return!0},ru,zRw),xkQ=zc(function(n,q,M,t){if(n.W!==1)return!1; EU(q,M,t,V0(n.X));return!0},ru,zRw),QTO=zc(function(n,q,M){if(n.W!==0)return!1; VU(q,M,oP(n.X));return!0},x3,ouw),p7w=zc(function(n,q,M){if(n.W!==0)return!1; n=oP(n.X);VU(q,M,n===0?void 0:n);return!0},x3,ouw),n6O=zc(function(n,q,M,t){if(n.W!==0)return!1; EU(q,M,t,oP(n.X));return!0},x3,ouw),qpG=zc(function(n,q,M){if(n.W!==0)return!1; VU(q,M,wD(n.X));return!0},QU,Z3F),M5D=zc(function(n,q,M){if(n.W!==0)return!1; n=wD(n.X);VU(q,M,n===0?void 0:n);return!0},QU,Z3F),i_L=zc(function(n,q,M,t){if(n.W!==0)return!1; EU(q,M,t,wD(n.X));return!0},QU,Z3F),t5D=zc(function(n,q,M){if(n.W!==1)return!1; VU(q,M,Jr(n.X));return!0},function(n,q,M){pgj(n,M,KSs(q))},w7T),cET=Jh(function(n,q,M){if(n.W!==1&&n.W!==2)return!1; q=dD(q,q[ag]|0,M);if(n.W==2)for(M=wD(n.X)>>>0,M=n.X.X+M;n.X.X>>0);return!0},function(n,q,M){q=yj(q); q!=null&&q!=null&&(sa(n,M,0),hh(n.X,q))},aRK),Gz=zc(function(n,q,M){if(n.W!==0)return!1; VU(q,M,wD(n.X));return!0},function(n,q,M){q=EP(q); q!=null&&(q=parseInt(q,10),sa(n,M,0),CiU(n.X,q))},VLd);y2U.prototype.register=function(){FC(this)};g.y(qu,ST);qu.prototype.Z=XTs([0,rfn,p7w,-2,M5D]);Ixs.prototype.OT=function(n){var q=this.X[n.key];if(n.valueType==="proto"){try{var M=JSON.parse(q);if(Array.isArray(M))return M}catch(t){}return n.defaultValue}return typeof q===typeof n.defaultValue?q:n.defaultValue};var H71={Twm:1,iy:2,ptl:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};PPs.prototype.Yf=function(n){if(typeof n==="string"&&n.length!=0){var q=this.qn;if(q.W){n=n.split("&");for(var M=n.length-1;M>=0;M--){var t=n[M].split("="),c=decodeURIComponent(t[0]);t.length>1?(t=decodeURIComponent(t[1]),t=/^[0-9]+$/g.exec(t)?parseInt(t,10):t):t=1;(c=q.X[c])&&c.Z(t)}}}};var Kk=null;var G8=g.pa.performance,O_T=!!(G8&&G8.mark&&G8.measure&&G8.clearMarks),cV=BT(function(){var n;if(n=O_T){var q=q===void 0?window:q;if(Kk===null){Kk="";try{n="";try{n=q.top.location.hash}catch(t){n=q.location.hash}if(n){var M=n.match(/\bdeid=([\d,]+)/);Kk=M?M[1]:""}}catch(t){}}q=Kk;n=!!q.indexOf&&q.indexOf("1337")>=0}return n}); YO.prototype.disable=function(){this.X=!1;this.events!==this.W.google_js_reporting_queue&&(cV()&&g.xw(this.events,BKj),this.events.length=0)}; YO.prototype.start=function(n,q){if(!this.X)return null;var M=UEJ()||lx1();n=new uLs(n,q,M);q="goog_"+n.label+"_"+n.uniqueId+"_start";G8&&cV()&&G8.mark(q);return n}; YO.prototype.end=function(n){if(this.X&&typeof n.value==="number"){var q=UEJ()||lx1();n.duration=q-n.value;q="goog_"+n.label+"_"+n.uniqueId+"_end";G8&&cV()&&G8.mark(q);!this.X||this.events.length>2048||this.events.push(n)}};var DEf=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),XM=/#|$/,ax1=/[?&]($|#)/;oZm.prototype.Rn=function(n,q,M,t,c){c=c||this.hk;try{var Y=new gk;Y.X.push(1);Y.W[1]=ei("context",n);q.error&&q.meta&&q.id||(q=new PV(vV(q)));if(q.msg){var G=q.msg.substring(0,512);Y.X.push(2);Y.W[2]=ei("msg",G)}var k=q.meta||{};if(this.oD)try{this.oD(k)}catch(E){}if(t)try{t(k)}catch(E){}t=[k];Y.X.push(3);Y.W[3]=t;var b=i3d();if(b.W){var d=b.W.url||"";Y.X.push(4);Y.W[4]=ei("top",d)}var N={url:b.X.url||""};if(b.X.url){var O=g.kO(b.X.url);var e=KN(O[1],null,O[3],O[4])}else e="";d=[N,{url:e}];Y.X.push(5); Y.W[5]=d;vZu(this.X,c,Y,M)}catch(E){try{vZu(this.X,c,{context:"ecmserr",rctx:n,msg:vV(E),url:b&&b.X.url},M)}catch(h){}}return this.K4}; g.y(PV,TKJ);var HV,LN,fN=new YO;HV=new function(){var n="https:";lP&&lP.location&&lP.location.protocol==="http:"&&(n="http:");this.W=n;this.X=.01}; LN=new oZm;lP&&lP.document&&(lP.document.readyState=="complete"?z3a():fN.X&&cn(lP,"load",function(){z3a()}));var CPJ=Date.now(),AC=-1,BV=-1,tls,mB=-1,Dz=!1;$O.prototype.equals=function(n,q){return!!n&&(!(q===void 0?0:q)||this.volume==n.volume)&&this.Z==n.Z&&FL(this.X,n.X)&&!0};FM.prototype.ji=function(){return this.N}; FM.prototype.equals=function(n,q){return this.J.equals(n.J,q===void 0?!1:q)&&this.N==n.N&&FL(this.Z,n.Z)&&FL(this.C,n.C)&&this.X==n.X&&this.S==n.S&&this.W==n.W&&this.B==n.B};var g6S={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Jg={jW:"start",KI:"firstquartile",MO:"midpoint",dM:"thirdquartile",COMPLETE:"complete",ERROR:"error",QB:"metric",PAUSE:"pause",pW:"resume",IE:"skip",zg:"viewable_impression",XK:"mute",aE:"unmute",yF:"fullscreen",VF:"exitfullscreen",oM:"bufferstart",Ay:"bufferfinish",Hy:"fully_viewable_audible_half_duration_impression",kS:"measurable_impression",jU:"abandon",sf:"engagedview",eU:"impression",Of:"creativeview",LOADED:"loaded", c_b:"progress",CLOSE:"close",Oit:"collapse",P1t:"overlay_resize",OLm:"overlay_unmeasurable_impression",tKg:"overlay_unviewable_impression",Nw1:"overlay_viewable_immediate_impression",Ywm:"overlay_viewable_end_of_session_impression",YF:"custom_metric_viewable",iV:"audio_audible",nI:"audio_measurable",Gv:"audio_impression"},e0j="start firstquartile midpoint thirdquartile resume loaded".split(" "),E3a=["start","firstquartile","midpoint","thirdquartile"],YU1=["abandon"],OO={UNKNOWN:-1,jW:0,KI:1,MO:2, dM:3,COMPLETE:4,QB:5,PAUSE:6,pW:7,IE:8,zg:9,XK:10,aE:11,yF:12,VF:13,Hy:14,kS:15,jU:16,sf:17,eU:18,Of:19,LOADED:20,YF:21,oM:22,Ay:23,Gv:27,nI:28,iV:29};var xEJ={JGt:"addEventListener",t8y:"getMaxSize",Ylx:"getScreenSize",NTm:"getState",skx:"getVersion",r4l:"removeEventListener",t_y:"isViewable"};tiC.prototype.update=function(n){n&&n.document&&(this.N=Zz(!1,n,this.isMobileDevice),this.X=Zz(!0,n,this.isMobileDevice),YwR(this,n),cl1(this,n))};VK.prototype.cancel=function(){Ig().clearTimeout(this.X);this.X=null}; VK.prototype.schedule=function(){var n=this,q=Ig(),M=tC().X.X;this.X=q.setTimeout(Mu(M,lm(143,function(){n.W++;n.Z.sample()})),r2f())};g.W=CN.prototype;g.W.Xe=function(){return!1}; g.W.initialize=function(){return this.isInitialized=!0}; g.W.QK=function(){return this.X.IL}; g.W.R7=function(){return this.X.xl}; g.W.fail=function(n,q){if(!this.xl||(q===void 0?0:q))this.xl=!0,this.IL=n,this.B=0,this.X!=this||xO(this)}; g.W.getName=function(){return this.X.rJ}; g.W.PJ=function(){return this.X.j5()}; g.W.j5=function(){return{}}; g.W.KC=function(){return this.X.B}; g.W.Q3=function(){var n=w$();n.X=Zz(!0,this.Z,n.isMobileDevice)}; g.W.MX=function(){cl1(w$(),this.Z)}; g.W.YN=function(){return this.J.X}; g.W.sample=function(){}; g.W.isActive=function(){return this.X.C}; g.W.jS=function(n){var q=this.X;this.X=n.KC()>=this.B?n:this;q!==this.X?(this.C=this.X.C,xO(this)):this.C!==this.X.C&&(this.C=this.X.C,xO(this))}; g.W.LU=function(n){if(n.W===this.X){var q=!this.J.equals(n,this.U);this.J=n;q&&kfJ(this)}}; g.W.HO=function(){return this.U}; g.W.dispose=function(){this.jX=!0}; g.W.qm=function(){return this.jX};g.W=QK.prototype;g.W.observe=function(){return!0}; g.W.unobserve=function(){}; g.W.dF=function(n){this.S=n}; g.W.dispose=function(){if(!this.qm()){var n=this.W;g.fQ(n.S,this);n.U&&this.HO()&&Kds(n);this.unobserve();this.wJ=!0}}; g.W.qm=function(){return this.wJ}; g.W.PJ=function(){return this.W.PJ()}; g.W.KC=function(){return this.W.KC()}; g.W.QK=function(){return this.W.QK()}; g.W.R7=function(){return this.W.R7()}; g.W.jS=function(){}; g.W.LU=function(){this.Ii()}; g.W.HO=function(){return this.jX};g.W=pN.prototype;g.W.KC=function(){return this.X.KC()}; g.W.QK=function(){return this.X.QK()}; g.W.R7=function(){return this.X.R7()}; g.W.create=function(n,q,M){var t=null;this.X&&(t=this.GJ(n,q,M),r$(this.X,t));return t}; g.W.xI=function(){return this.RS()}; g.W.RS=function(){return!1}; g.W.init=function(n){return this.X.initialize()?(r$(this.X,this),this.J=n,!0):!1}; g.W.jS=function(n){n.KC()==0&&this.J(n.QK(),this)}; g.W.LU=function(){}; g.W.HO=function(){return!1}; g.W.dispose=function(){this.S=!0}; g.W.qm=function(){return this.S}; g.W.PJ=function(){return{}};nP.prototype.add=function(n,q,M){++this.Z;n=new dvR(n,q,M);this.X.push(new dvR(n.W,n.X,n.Z+this.Z/4096));this.W=!0;return this};Eqm.prototype.toString=function(){var n="//pagead2.googlesyndication.com//pagead/gen_204",q=Mf(this.X);q.length>0&&(n+="?"+q);return n};g.F.prototype.cO=!1;g.F.prototype.qm=function(){return this.cO}; g.F.prototype.dispose=function(){this.cO||(this.cO=!0,this.ut())}; g.F.prototype[Symbol.dispose]=function(){this.dispose()}; g.F.prototype.addOnDisposeCallback=function(n,q){this.cO?q!==void 0?n.call(q):n():(this.Pw||(this.Pw=[]),q&&(n=n.bind(q)),this.Pw.push(n))}; g.F.prototype.ut=function(){if(this.Pw)for(;this.Pw.length;)this.Pw.shift()()};var e2n=[0,QTO,YpF,-1];cl.prototype.update=function(n,q,M){n&&(this.X+=q,this.W+=q,this.J+=q,this.Z=Math.max(this.Z,this.J));if(M===void 0?!n:M)this.J=0};var Xnj=[1,.75,.5,.3,0];Yr.prototype.update=function(n,q,M,t,c,Y){Y=Y===void 0?!0:Y;q=c?Math.min(n,q):q;for(c=0;c0&&q>=G;G=!(n>0&&n>=G)||M;this.X[c].update(Y&&k,t,!Y||G)}};Nf.prototype.update=function(n,q,M,t){this.N=this.N!=-1?Math.min(this.N,q.Pm):q.Pm;this.RL=Math.max(this.RL,q.Pm);this.wJ=this.wJ!=-1?Math.min(this.wJ,q.QC):q.QC;this.IL=Math.max(this.IL,q.QC);this.Ux.update(q.QC,M.QC,q.X,n,t);this.SX+=n;q.Pm===0&&(this.rJ+=n);this.W.update(q.Pm,M.Pm,q.X,n,t);M=t||M.Wr!=q.Wr?M.isVisible()&&q.isVisible():M.isVisible();q=!q.isVisible()||q.X;this.V1.update(M,n,q)}; Nf.prototype.MZ=function(){return this.V1.Z>=this.eX};if(z8&&z8.URL){var E6F=z8.URL,h2K;a:{if(E6F){var WSG=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var kP=WSG.exec(decodeURIComponent(E6F));if(kP){h2K=kP[1]&&kP[1].length>1?kP[1].substring(1):"true";break a}}catch(n){}}h2K=""}LN.K4=!(h2K.length>0)};var yEw=new mT(0,0,0,0);var vqa=new mT(0,0,0,0);g.y(hg,g.F);g.W=hg.prototype; g.W.ut=function(){if(this.z$.X){if(this.GR.dQ){var n=this.z$.X;typeof n.removeEventListener==="function"&&n.removeEventListener("mouseover",this.GR.dQ,tl());this.GR.dQ=null}this.GR.jo&&(n=this.z$.X,typeof n.removeEventListener==="function"&&n.removeEventListener("mouseout",this.GR.jo,tl()),this.GR.jo=null)}this.o6&&this.o6.dispose();this.nu&&this.nu.dispose();delete this.sL;delete this.Wu;delete this.KD;delete this.z$.jl;delete this.z$.X;delete this.GR;delete this.o6;delete this.nu;delete this.qn; g.F.prototype.ut.call(this)}; g.W.YE=function(){return this.nu?this.nu.X:this.position}; g.W.TY=function(){return this.nu?this.nu.J:null}; g.W.Yf=function(n){tC().Yf(n)}; g.W.HO=function(){return!1}; g.W.ol=function(){return new Nf}; g.W.A9=function(){return this.sL}; g.W.Gu=function(n){return ups(this,n,1E4)}; g.W.Cm=function(n,q,M,t,c,Y,G){this.vJ||(this.gh&&(n=this.hH(n,M,c,G),t=t&&this.ag.Pm>=(this.Wr()?.3:.5),this.qB(Y,n,t),this.Sp=q,n.Pm>0&&-1===this.Ij&&(this.Ij=q),this.Sq==-1&&this.MZ()&&(this.Sq=q),this.Qz==-2&&(this.Qz=eN(this.YE())?n.Pm:-1),this.ag=n),this.Wu(this))}; g.W.qB=function(n,q,M){this.A9().update(n,q,this.ag,M)}; g.W.PQ=function(){return new pQ}; g.W.hH=function(n,q,M,t){M=this.PQ();M.X=q;q=Ig().W;q=Yq(z8)===0?-1:q.isVisible()?0:1;M.W=q;M.Pm=this.Z1(n);M.Wr=this.Wr();M.QC=t;return M}; g.W.Z1=function(n){return this.opacity===0&&L3(this.qn,"opac")===1?0:n}; g.W.Wr=function(){return!1}; g.W.KA=function(){return this.WdE||this.wbd}; g.W.mI=function(){um()}; g.W.w3=function(){um()}; g.W.Mo=function(){return 0}; g.W.MZ=function(){return this.sL.MZ()}; g.W.VD=function(){var n=this.gh;n=(this.hasCompleted||this.qm())&&!n;var q=tC().W!==2||this.SNt;return this.vJ||q&&n?2:this.MZ()?4:3}; g.W.gB=function(){return 0};g.yL.prototype.next=function(){return g.bb}; g.bb={done:!0,value:void 0};g.yL.prototype.Iw=function(){return this};g.y(m3J,pQ);var dn=Fau([void 0,1,2,3,4,8,16]),Nd=Fau([void 0,4,8,16]),sRS={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:LP("p0",Nd),p1:LP("p1",Nd),p2:LP("p2",Nd),p3:LP("p3",Nd),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Hl("mtos1",[0,2,4],!1,Nd),mtos2:Hl("mtos2",[0,2,4],!1,Nd),mtos3:Hl("mtos3",[0,2,4],!1,Nd),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:LP("a0",Nd),a1:LP("a1",Nd),a2:LP("a2",Nd),a3:LP("a3",Nd),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:LP("c0",Nd),c1:LP("c1",Nd),c2:LP("c2",Nd),c3:LP("c3",Nd),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:LP("qmtos",dn),qnc:LP("qnc",dn),qmv:LP("qmv",dn),qnv:LP("qnv",dn), 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:LP("ss0",Nd),ss1:LP("ss1",Nd),ss2:LP("ss2",Nd),ss3:LP("ss3",Nd),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"},XgO=Object.assign({},sRS,{avid:US("audio"),avas:"avas",vs:"vs"}),jRs={atos:"atos",avt:Hl("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(n,q){return function(M){return M[n]===void 0&&q!==void 0?q:M[n]}}("ss",0), t:"t"};lz.prototype.getValue=function(){return this.W}; lz.prototype.update=function(n,q){n>=32||(this.X&1<=.5;RV(q.volume)&&(this.J=this.J!=-1?Math.min(this.J,q.volume):q.volume,this.C=Math.max(this.C,q.volume));Y&&(this.jX+=n,this.U+=c?n:0);this.X.update(q.Pm,M.Pm,q.X,n,t,c);this.Z.update(!0,n);this.S.update(c,n);this.xl.update(M.fullscreen,n);this.QS.update(c&&!Y,n);n=Math.floor(q.mediaTime/1E3);this.nm.update(n,q.isVisible());this.Yl.update(n,q.Pm>=1);this.hE.update(n, fP(q))}};zAs.prototype.W=function(n){this.Z||(this.X(n)?(n=ida(this.U,this.J,n),this.S|=n,n=n==0):n=!1,this.Z=n)};g.y(Bl,zAs);Bl.prototype.X=function(){return!0}; Bl.prototype.C=function(){return!1}; Bl.prototype.getId=function(){var n=this,q=OC(Jg,function(M){return M==n.J}); return OO[q].toString()}; Bl.prototype.toString=function(){var n="";this.C()&&(n+="c");this.Z&&(n+="s");this.S>0&&(n+=":"+this.S);return this.getId()+n};g.y(DL,Bl);DL.prototype.W=function(n,q){q=q===void 0?null:q;q!=null&&this.N.push(q);Bl.prototype.W.call(this,n)};g.y(mM,JSd);mM.prototype.W=function(){return null}; mM.prototype.Z=function(){return[]};g.y($r,QK);g.W=$r.prototype;g.W.HT=function(){if(this.element){var n=this.element,q=this.W.X.Z;try{try{var M=qwa(n.getBoundingClientRect())}catch(d){M=new mT(0,0,0,0)}var t=M.right-M.left,c=M.bottom-M.top,Y=zdk(n,q),G=Y.x,k=Y.y;var b=new mT(Math.round(k),Math.round(G+t),Math.round(k+c),Math.round(G))}catch(d){b=yEw.clone()}this.J=b;this.X=bH_(this,this.J)}}; g.W.mX=function(){this.C=this.W.J.X}; g.W.Ct=function(n){var q=L3(this.qn,"od")==1;return PEa(n,this.C,this.element,q)}; g.W.Pd=function(){this.timestamp=um()}; g.W.Ii=function(){this.Pd();this.HT();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var n=this.element;var q=new g.JE(n.videoWidth,n.videoHeight);n=this.X;var M=$Z(n),t=n.getHeight(),c=q.width;q=q.height;c<=0||q<=0||M<=0||t<=0||(c/=q,q=M/t,n=n.clone(),c>q?(M/=c,t=(t-M)/2,t>0&&(t=n.top+t,n.top=Math.round(t),n.bottom=Math.round(t+M))):(t*=c,M=Math.round((M-t)/2),M>0&&(M=n.left+M,n.left=Math.round(M),n.right=Math.round(M+t))));this.X=n}this.mX(); n=this.X;M=this.C;n=n.left<=M.right&&M.left<=n.right&&n.top<=M.bottom&&M.top<=n.bottom?new mT(Math.max(n.top,M.top),Math.min(n.right,M.right),Math.min(n.bottom,M.bottom),Math.max(n.left,M.left)):new mT(0,0,0,0);M=n.top>=n.bottom||n.left>=n.right?new mT(0,0,0,0):n;n=this.W.J;q=c=t=0;if((this.X.bottom-this.X.top)*(this.X.right-this.X.left)>0)if(this.Ct(M))M=new mT(0,0,0,0);else{t=w$().J;q=new mT(0,t.height,t.width,0);var Y;t=EI(M,(Y=this.S)!=null?Y:this.X);c=EI(M,w$().X);q=EI(M,q)}Y=M.top>=M.bottom|| M.left>=M.right?new mT(0,0,0,0):Zx(M,-this.X.left,-this.X.top);JC()||(c=t=0);this.U=new FM(n,this.element,this.X,Y,t,c,this.timestamp,q)}; g.W.getName=function(){return this.W.getName()};var Sps=new mT(0,0,0,0);g.y(FX,$r);g.W=FX.prototype;g.W.observe=function(){this.Z();return!0}; g.W.LU=function(){$r.prototype.Ii.call(this)}; g.W.Pd=function(){}; g.W.HT=function(){}; g.W.Ii=function(){this.Z();$r.prototype.Ii.call(this)}; g.W.jS=function(n){n=n.isActive();n!==this.B&&(n?this.Z():(w$().X=new mT(0,0,0,0),this.X=new mT(0,0,0,0),this.C=new mT(0,0,0,0),this.timestamp=-1));this.B=n};var OV={},ifj=(OV.firstquartile=0,OV.midpoint=1,OV.thirdquartile=2,OV.complete=3,OV);g.y(as,hg);g.W=as.prototype;g.W.HO=function(){return!0}; g.W.b4=function(){return this.hP==2}; g.W.Gu=function(n){return ups(this,n,Math.max(1E4,this.Z/3))}; g.W.Cm=function(n,q,M,t,c,Y,G){var k=this,b=this.N(this)||{};g.yn(b,c);this.Z=b.duration||this.Z;this.U=b.isVpaid||this.U;this.rJ=b.isYouTube||this.rJ;Ig();this.Ux=!1;c=CKk(this,q);V2f(this)===1&&(Y=c);hg.prototype.Cm.call(this,n,q,M,t,b,Y,G);this.RK&&this.RK.Z&&g.xw(this.C,function(d){d.W(k)})}; g.W.qB=function(n,q,M){hg.prototype.qB.call(this,n,q,M);wJ(this).update(n,q,this.ag,M);this.eX=fP(this.ag)&&fP(q);this.IL==-1&&this.Yl&&(this.IL=this.A9().Z.X);this.EC.Z=0;n=this.MZ();q.isVisible()&&TN(this.EC,"vs");n&&TN(this.EC,"vw");RV(q.volume)&&TN(this.EC,"am");fP(q)?TN(this.EC,"a"):TN(this.EC,"mut");this.Cp&&TN(this.EC,"f");q.W!=-1&&(TN(this.EC,"bm"),q.W==1&&(TN(this.EC,"b"),fP(q)&&TN(this.EC,"umutb")));fP(q)&&q.isVisible()&&TN(this.EC,"avs");this.eX&&n&&TN(this.EC,"avw");q.Pm>0&&TN(this.EC, "pv");zN(this,this.A9().Z.X,!0)&&TN(this.EC,"gdr");bz(this.A9().W,1)>=2E3&&TN(this.EC,"pmx");this.Ux&&TN(this.EC,"tvoff")}; g.W.ol=function(){return new UI}; g.W.A9=function(){return this.sL}; g.W.PQ=function(){return new m3J}; g.W.hH=function(n,q,M,t){n=hg.prototype.hH.call(this,n,q,M,t===void 0?-1:t);n.fullscreen=this.Cp;n.paused=this.b4();n.volume=M.volume;RV(n.volume)||(this.Wg++,q=this.ag,RV(q.volume)&&(n.volume=q.volume));M=M.currentTime;n.mediaTime=M!==void 0&&M>=0?M:-1;return n}; g.W.Z1=function(n){return w$(),this.Cp?1:hg.prototype.Z1.call(this,n)}; g.W.Mo=function(){return 1}; g.W.getDuration=function(){return this.Z}; g.W.VD=function(){return this.vJ?2:x3U(this)?5:this.MZ()?4:3}; g.W.gB=function(){return this.QS?this.A9().S.Z>=2E3?4:3:2}; g.W.dF=function(n){this.nu&&this.nu.dF(n)};var IyF=g.OF();gKa.prototype.reset=function(){this.X=[];this.W=[]}; var QL=ji(gKa);g.y(q8,pN);g.W=q8.prototype;g.W.getName=function(){return(this.W?this.W:this.X).getName()}; g.W.PJ=function(){return(this.W?this.W:this.X).PJ()}; g.W.KC=function(){return(this.W?this.W:this.X).KC()}; g.W.init=function(n){var q=!1;(0,g.xw)(this.Z,function(M){M.initialize()&&(q=!0)}); q&&(this.J=n,r$(this.X,this));return q}; g.W.dispose=function(){(0,g.xw)(this.Z,function(n){n.dispose()}); pN.prototype.dispose.call(this)}; g.W.xI=function(){return oV(this.Z,function(n){return n.Xe()})}; g.W.RS=function(){return oV(this.Z,function(n){return n.Xe()})}; g.W.GJ=function(n,q,M){return new $r(n,this.X,q,M)}; g.W.LU=function(n){this.W=n.W};var SUj={threshold:[0,.3,.5,.75,1]};g.y(M8,$r);g.W=M8.prototype;g.W.observe=function(){var n=this;this.RL||(this.RL=um());if(VOd(298,function(){return IIU(n)}))return!0; this.W.fail("msf");return!1}; g.W.unobserve=function(){if(this.Z&&this.element)try{this.Z.unobserve(this.element),this.B?(this.B.unobserve(this.element),this.B=null):this.N&&(this.N.disconnect(),this.N=null)}catch(n){}}; g.W.Ii=function(){var n=ij(this);n.length>0&&tT(this,n);$r.prototype.Ii.call(this)}; g.W.HT=function(){}; g.W.Ct=function(){return!1}; g.W.mX=function(){}; g.W.PJ=function(){var n={};return Object.assign(this.W.PJ(),(n.niot_obs=this.RL,n.niot_cbk=this.xl,n))}; g.W.getName=function(){return"nio"};g.y(cm,pN);cm.prototype.getName=function(){return"nio"}; cm.prototype.RS=function(){return!w$().W&&this.X.X.Z.IntersectionObserver!=null}; cm.prototype.GJ=function(n,q,M){return new M8(n,this.X,q,M)};g.y(YF,CN);YF.prototype.YN=function(){return w$().X}; YF.prototype.Xe=function(){var n=Hff();this.B!==n&&(this.X!=this&&n>this.X.B&&(this.X=this,xO(this)),this.B=n);return n==2};Gn.prototype.sample=function(){bj(this,pP(),!1)}; Gn.prototype.J=function(){var n=JC(),q=um();n?(Dz||(AC=q,g.xw(QL.X,function(M){var t=M.A9();t.AE=uz(t,q,M.hP!=1)})),Dz=!0):(this.N=lIU(this,q),Dz=!1,tls=q,g.xw(QL.X,function(M){M.gh&&(M.A9().B=q)})); bj(this,pP(),!n)}; var Kq=ji(Gn);var uPd=null,Bm="",uj=!1;var ArU=DXs().YV,N8=DXs().Vf;var Fef={f7t:"visible",vem:"audible",jN1:"time",d6J:"timetype"},ZfJ={visible:function(n){return/^(100|[0-9]{1,2})$/.test(n)}, audible:function(n){return n=="0"||n=="1"}, timetype:function(n){return n=="mtos"||n=="tos"}, time:function(n){return/^(100|[0-9]{1,2})%$/.test(n)||/^([0-9])+ms$/.test(n)}}; $Xs.prototype.setTime=function(n,q,M){q=="ms"?(this.Z=n,this.J=-1):(this.Z=-1,this.J=n);this.S=M===void 0?"tos":M;return this};g.y(EO,Bl);EO.prototype.getId=function(){return this.N}; EO.prototype.C=function(){return!0}; EO.prototype.X=function(n){var q=n.A9(),M=n.getDuration();return oV(this.B,function(t){if(t.X!=void 0)var c=RCk(t,q);else b:{switch(t.S){case "mtos":c=t.W?q.S.Z:q.Z.X;break b;case "tos":c=t.W?q.S.X:q.Z.X;break b}c=0}c==0?t=!1:(t=t.Z!=-1?t.Z:M!==void 0&&M>0?t.J*M:-1,t=t!=-1&&c>=t);return t})};g.y(hT,avd);hT.prototype.X=function(n){var q=new Z0J;q.X=vl(n,sRS);q.W=vl(n,jRs);return q};g.y(Wm,Bl);Wm.prototype.X=function(n){return x3U(n)};g.y(yo,JSd);g.y(sO,Bl);sO.prototype.X=function(n){return n.A9().MZ()};g.y(Xb,DL);Xb.prototype.X=function(n){var q=g.SS(this.N,L3(tC().qn,"ovms"));return!n.vJ&&(n.hP!=0||q)};g.y(Sa,yo);Sa.prototype.W=function(){return new Xb(this.X)}; Sa.prototype.Z=function(){return[new sO("viewable_impression",this.X),new Wm(this.X)]};g.y(Iy,FX);Iy.prototype.Z=function(){var n=g.qD("ima.admob.getViewability"),q=L3(this.qn,"queryid");typeof n==="function"&&q&&n(q)}; Iy.prototype.getName=function(){return"gsv"};g.y(fq,pN);fq.prototype.getName=function(){return"gsv"}; fq.prototype.RS=function(){var n=w$();tC();return n.W&&!1}; fq.prototype.GJ=function(n,q,M){return new Iy(this.X,q,M)};g.y(Hm,FX);Hm.prototype.Z=function(){var n=this,q=g.qD("ima.bridge.getNativeViewability"),M=L3(this.qn,"queryid");typeof q==="function"&&M&&q(M,function(t){g.g0(t)&&n.N++;var c=t.opt_nativeViewVisibleBounds||{},Y=t.opt_nativeViewHidden;n.X=MiR(t.opt_nativeViewBounds||{});var G=n.W.J;G.X=Y?Sps.clone():MiR(c);n.timestamp=t.opt_nativeTime||-1;w$().X=G.X;t=t.opt_nativeVolume;t!==void 0&&(G.volume=t)})}; Hm.prototype.getName=function(){return"nis"};g.y(Lq,pN);Lq.prototype.getName=function(){return"nis"}; Lq.prototype.RS=function(){var n=w$();tC();return n.W&&!1}; Lq.prototype.GJ=function(n,q,M){return new Hm(this.X,q,M)};g.y(Pm,CN);g.W=Pm.prototype;g.W.Xe=function(){return this.W.M6!=null}; g.W.j5=function(){var n={};this.nm&&(n.mraid=this.nm);this.wJ&&(n.mlc=1);n.mtop=this.W.Kvt;this.N&&(n.mse=this.N);this.SX&&(n.msc=1);n.mcp=this.W.compatibility;return n}; g.W.UY=function(n){var q=g.Fm.apply(1,arguments);try{return this.W.M6[n].apply(this.W.M6,q)}catch(M){Uu(538,M,.01,function(t){t.method=n})}}; g.W.initialize=function(){var n=this;if(this.isInitialized)return!this.R7();this.isInitialized=!0;if(this.W.compatibility===2)return this.N="ng",this.fail("w"),!1;if(this.W.compatibility===1)return this.N="mm",this.fail("w"),!1;w$().B=!0;this.Z.document.readyState&&this.Z.document.readyState=="complete"?JrJ(this):gJ(this.Z,"load",function(){Ig().setTimeout(lm(292,function(){return JrJ(n)}),100)},292); return!0}; g.W.Q3=function(){var n=w$(),q=QPC(this,"getMaxSize");n.X=new mT(0,q.width,q.height,0)}; g.W.MX=function(){w$().J=QPC(this,"getScreenSize")}; g.W.dispose=function(){CY_(this);CN.prototype.dispose.call(this)};var fyS=new function(n,q){this.key=n;this.defaultValue=q===void 0?!1:q;this.valueType="boolean"}("45378663");g.W=Tn.prototype;g.W.KZ=function(n){Wl(n,!1);Wes(n)}; g.W.Vo=function(){}; g.W.Ed=function(n,q,M,t){var c=this;n=new as(lP,n,M?q:-1,7,this.Gx(),this.W8());n.R9=t;mRd(n.qn);H7(n.qn,"queryid",n.R9);n.Yf("");Ald(n,function(){return c.LN.apply(c,g.EJ(g.Fm.apply(0,arguments)))},function(){return c.DZ.apply(c,g.EJ(g.Fm.apply(0,arguments)))}); (t=ji(nq).X)&&Uvs(n,t);this.Z&&(n.dF(this.Z),this.Z=null);n.z$.jl&&ji(Lek);return n}; g.W.jS=function(n){switch(n.KC()){case 0:if(n=ji(nq).X)n=n.X,g.fQ(n.S,this),n.U&&this.HO()&&Kds(n);UO();break;case 2:kF()}}; g.W.LU=function(){}; g.W.HO=function(){return!1}; g.W.DZ=function(n,q){n.vJ=!0;switch(n.Mo()){case 1:tTJ(n,q);break;case 2:this.LM(n)}}; g.W.Na=function(n){var q=n.N(n);q&&(q=q.volume,n.QS=RV(q)&&q>0);nKR(n,0);return VL(n,"start",JC())}; g.W.GV=function(n,q,M){bj(Kq,[n],!JC());return this.xo(n,q,M)}; g.W.xo=function(n,q,M){return VL(n,M,JC())}; g.W.m_=function(n){return Ry(n,"firstquartile",1)}; g.W.OE=function(n){n.Yl=!0;return Ry(n,"midpoint",2)}; g.W.sE=function(n){return Ry(n,"thirdquartile",3)}; g.W.A6=function(n){var q=Ry(n,"complete",4);Rs(n);return q}; g.W.o_=function(n){n.hP=3;return VL(n,"error",JC())}; g.W.d_=function(n,q,M){q=JC();if(n.b4()&&!q){var t=n.A9(),c=um();t.B=c}bj(Kq,[n],!q);n.b4()&&(n.hP=1);return VL(n,M,q)}; g.W.Y8=function(n,q){q=this.GV(n,q||{},"skip");Rs(n);return q}; g.W.Ps=function(n,q){Wl(n,!0);return this.GV(n,q||{},"fullscreen")}; g.W.CY=function(n,q){Wl(n,!1);return this.GV(n,q||{},"exitfullscreen")}; g.W.rr=function(n,q,M){q=n.A9();var t=um();q.AE=uz(q,t,n.hP!=1);bj(Kq,[n],!JC());n.hP==1&&(n.hP=2);return VL(n,M,JC())}; g.W.t6=function(n){bj(Kq,[n],!JC());return n.W()}; g.W.uC=function(n){bj(Kq,[n],!JC());this.WK(n);Rs(n);return n.W()}; g.W.LN=function(){}; g.W.LM=function(){}; g.W.WK=function(){}; g.W.Xs=function(){}; g.W.qf=function(){}; g.W.W8=function(){this.X||(this.X=this.qf());return this.X==null?new mM:new Sa(this.X)}; g.W.Gx=function(){return new hT};g.y(oy,Bl);oy.prototype.X=function(n){return n.gB()==4};g.y(w4,DL);w4.prototype.X=function(n){n=n.gB();return n==3||n==4};g.y(zn,yo);zn.prototype.W=function(){return new w4(this.X)}; zn.prototype.Z=function(){return[new oy(this.X)]};g.y(JT,avd);JT.prototype.X=function(n){n&&(n.e===28&&(n=Object.assign({},n,{avas:3})),n.vs===4||n.vs===5)&&(n=Object.assign({},n,{vs:3}));var q=new Z0J;q.X=vl(n,XgO);q.W=vl(n,jRs);return q};Ktf.prototype.W=function(){return g.qD(this.X)};g.y(Vo,Tn);g.W=Vo.prototype;g.W.Vo=function(n,q){var M=this,t=ji(nq);if(t.X!=null)switch(t.X.getName()){case "nis":var c=Nuj(this,n,q);break;case "gsv":c=dhd(this,n,q);break;case "exc":c=Ods(this,n)}c||(q.opt_overlayAdElement?c=void 0:q.opt_adElement&&(c=Yak(this,n,q.opt_adElement,q.opt_osdId)));c&&c.Mo()==1&&(c.N==g.uP&&(c.N=function(Y){return M.Xs(Y)}),bd1(this,c,q)); return c}; g.W.Xs=function(n){n.W=0;n.jX=0;if(n.J=="h"||n.J=="n"){tC();n.hE&&(tC(),AT(this)!="h"&&AT(this));var q=g.qD("ima.common.getVideoMetadata");if(typeof q==="function")try{var M=q(n.R9)}catch(c){n.W|=4}else n.W|=2}else if(n.J=="b")if(q=g.qD("ytads.bulleit.getVideoMetadata"),typeof q==="function")try{M=q(n.R9)}catch(c){n.W|=4}else n.W|=2;else if(n.J=="ml")if(q=g.qD("ima.common.getVideoMetadata"),typeof q==="function")try{M=q(n.R9)}catch(c){n.W|=4}else n.W|=2;else n.W|=1;n.W||(M===void 0?n.W|=8:M===null? n.W|=16:g.g0(M)?n.W|=32:M.errorCode!=null&&(n.jX=M.errorCode,n.W|=64));M==null&&(M={});q=M;n.B=0;for(var t in g6S)q[t]==null&&(n.B|=g6S[t]);Gcj(q,"currentTime");Gcj(q,"duration");RV(M.volume)&&RV()&&(M.volume*=NaN);return M}; g.W.qf=function(){tC();AT(this)!="h"&&AT(this);var n=g3k(this);return n!=null?new Ktf(n):null}; g.W.LM=function(n){!n.X&&n.vJ&&ay(this,n,"overlay_unmeasurable_impression")&&(n.X=!0)}; g.W.WK=function(n){n.V_&&(n.MZ()?ay(this,n,"overlay_viewable_end_of_session_impression"):ay(this,n,"overlay_unviewable_impression"),n.V_=!1)}; g.W.LN=function(){}; g.W.Ed=function(n,q,M,t){if(tC().flags.OT(fyS)){var c=L3(tC().qn,"mm"),Y={};(c=(Y[im.zv]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",Y[im.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",Y)[c])&&Wtd(this,c);this.J==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Uu(1044,Error())}n=Tn.prototype.Ed.call(this,n,q,M,t);this.S&&(q=this.C,n.S==null&&(n.S=new D3s),q.X[n.R9]=n.S,n.S.S=IyF);return n}; g.W.KZ=function(n){n&&n.Mo()==1&&this.S&&delete this.C.X[n.R9];return Tn.prototype.KZ.call(this,n)}; g.W.W8=function(){this.X||(this.X=this.qf());return this.X==null?new mM:this.J==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new zn(this.X):new Sa(this.X)}; g.W.Gx=function(){return this.J==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new JT:new hT}; g.W.dF=function(n,q,M,t,c){q=new mT(M,q+t,M+c,q);(n=xr(QL,n))?n.dF(q):this.Z=q}; var H_S=T8(193,sxd,void 0,ch_);g.nQ("Goog_AdSense_Lidar_sendVastEvent",H_S);var LSA=lm(194,function(n,q){q=q===void 0?{}:q;n=h0d(ji(Vo),n,q);return yh_(n)}); g.nQ("Goog_AdSense_Lidar_getViewability",LSA);var PiA=T8(195,function(){return Eua()}); g.nQ("Goog_AdSense_Lidar_getUrlSignalsArray",PiA);var v6K=lm(196,function(){return JSON.stringify(Eua())}); g.nQ("Goog_AdSense_Lidar_getUrlSignalsList",v6K);var Sau=g.h_(["//ep2.adtrafficquality.google/sodar/",""]),IPs=g.h_(["//tpc.googlesyndication.com/sodar/",""]);g.y(xF,Error);g.y(nC,g.F);nC.prototype.Xk=function(){return this.wpc.f()}; nC.prototype.Sw=function(n){this.wpc.c(n)}; nC.prototype.zP=function(n){return this.wpc.m(PAu(n))}; nC.prototype.Un=function(n){return this.wpc.mws(PAu(n))}; g.y(Qo,g.F);Qo.prototype.snapshot=function(n){return this.WA.s(Object.assign({},n.N6&&{c:n.N6},n.Vu&&{s:n.Vu},n.HV!==void 0&&{p:n.HV}))}; Qo.prototype.PN=function(n){this.WA.e(n)}; Qo.prototype.sV=function(){return this.WA.l()};g.y(MO,g.F);MO.prototype.share=function(){if(this.qm())throw Error("E:AD");this.W++;return this}; MO.prototype.dispose=function(){--this.W||g.F.prototype.dispose.call(this)};Bu1.prototype.TF=function(n,q){this.X.TF("/client_streamz/bg/frs",n,q)}; Dhf.prototype.TF=function(n,q,M,t,c,Y){this.X.TF("/client_streamz/bg/wrl",n,q,M,t,c,Y)}; Ah1.prototype.eR=function(n,q){this.X.Z8("/client_streamz/bg/ec",n,q)}; mhJ.prototype.TF=function(n,q,M){this.X.TF("/client_streamz/bg/el",n,q,M)}; $hm.prototype.eR=function(n,q){this.X.Z8("/client_streamz/bg/cec",n,q)}; Ftm.prototype.eR=function(n,q){this.X.Z8("/client_streamz/bg/po/csc",n,q)}; Zdd.prototype.eR=function(n,q){this.X.Z8("/client_streamz/bg/po/ctav",n,q)}; aP_.prototype.eR=function(n,q){this.X.Z8("/client_streamz/bg/po/cwsc",n,q)};g.y(R0R,ST);g.y(cL,ST);var NO=[1,2,3];var Tiw=[0,NO,b_G,i_L,KSA];var lyw=[0,ib,[0,CVs,QTO]];g.y(Yb,ST);var dl=[1,2,3];var UcF=[0,dl,n6O,xkQ,cu,lyw];g.y(Gv,ST);var uCK=[0,ib,Tiw,UcF];var BiT=[0,Md];g.y(KC,ST);var DcA=[0,Md,-1,Gds];var AED=[0,Md,-1,qpG,Gds];g.y(kb,ST);var OM1=[1,2,3];var mcT=[0,OM1,cu,DcA,cu,AED,cu,BiT];g.y(b9,ST);b9.prototype.O3=function(){var n=G0(this,3,Pb,3,!0);VD(n);return n[void 0]};b9.prototype.Z=XTs([0,Md,mcT,kdS,ib,uCK,t5D,cET]);g.y(wZj,ST);g.W=OZ.prototype;g.W.isEnabled=function(){if(!g.pa.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{yQ:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.W.set=function(n,q,M){var t=!1;if(typeof M==="object"){var c=M.Fvt;t=M.secure||!1;var Y=M.domain||void 0;var G=M.path||void 0;var k=M.yQ}if(/[;=\s]/.test(n))throw Error('Invalid cookie name "'+n+'"');if(/[;\r\n]/.test(q))throw Error('Invalid cookie value "'+q+'"');k===void 0&&(k=-1);M=Y?";domain="+Y:"";G=G?";path="+G:"";t=t?";secure":"";k=k<0?"":k==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+k*1E3)).toUTCString();this.X.cookie=n+"="+q+M+G+k+t+(c!=null?";samesite="+ c:"")}; g.W.get=function(n,q){for(var M=n+"=",t=(this.X.cookie||"").split(";"),c=0,Y;c=0;q--)this.remove(n[q])}; var TH=new OZ(typeof document=="undefined"?null:document);eZ.prototype.compress=function(n){var q,M,t,c;return g.u(function(Y){switch(Y.X){case 1:return q=new CompressionStream("gzip"),M=(new Response(q.readable)).arrayBuffer(),t=q.writable.getWriter(),g.U(Y,t.write((new TextEncoder).encode(n)),2);case 2:return g.U(Y,t.close(),3);case 3:return c=Uint8Array,g.U(Y,M,4);case 4:return Y.return(new c(Y.W))}})}; eZ.prototype.isSupported=function(n){return n<1024?!1:typeof CompressionStream!=="undefined"};g.y(EZ,ST);ht.prototype.setInterval=function(n){this.intervalMs=n;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; ht.prototype.start=function(){var n=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){n.tick()},this.intervalMs),this.W=this.X())}; ht.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; ht.prototype.tick=function(){var n=this;if(this.enabled){var q=Math.max(this.X()-this.W,0);q0?M:void 0));M=MX(M,4,e2(c>0?c:void 0));M=MX(M,5,e2(Y>0?Y:void 0));c=M.MP;Y=c[ag]|0;M=Jl(M,Y)?M:Vj(M,c,Y)?C0(M,c):new M.constructor(JS(c,Y,!0));HW(G,sZ,10,M)}G=this.X.clone();M=Date.now().toString();G=MX(G,4,Il(M));n=Lf(G,PL,3,n.slice());t&&(G=new WL,t=MX(G,13,e2(t)),G=new yV, t=HW(G,WL,2,t),G=new LC,t=HW(G,yV,1,t),t=$K(t,2,9),HW(n,LC,18,t));q&&DI(n,14,q);return n};g.u9.prototype.W=0;g.u9.prototype.reset=function(){this.X=this.Z=this.J;this.W=0}; g.u9.prototype.getValue=function(){return this.Z};g.y(pd,ST);var $cn=nN(pd);g.y(WTm,ST);var gn;gn=new y2U;g.y(mJ,g.F);g.W=mJ.prototype;g.W.ut=function(){At(this);this.W.stop();this.nm.stop();g.F.prototype.ut.call(this)}; g.W.dispatch=function(n){if(n instanceof PL)this.log(n);else try{var q=new PL,M=n.XX();var t=Ar(q,8,M);this.log(t)}catch(c){$b(this,4,1)}}; g.W.log=function(n){$b(this,2,1);if(this.SX){n=n.clone();var q=this.V1++;n=DI(n,21,q);this.componentId&&Ar(n,26,this.componentId);q=n;var M=nf(q,1);var t=t===void 0?!1:t;var c=typeof M;t=M==null?M:c==="bigint"?String(X9(64,M)):gr(M)?c==="string"?sP(M):t?j2(M):S2(M):void 0;t==null&&(t=Date.now(),t=Number.isFinite(t)?t.toString():"0",MX(q,1,Il(t)));t=nf(q,15);t!=null&&(typeof t==="bigint"?al(t)?t=Number(t):(t=X9(64,t),t=al(t)?Number(t):String(t)):t=gr(t)?typeof t==="number"?S2(t):sP(t):void 0);t!=null|| DI(q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(t=this.experimentIds.clone(),HW(q,EZ,16,t));$b(this,1,1);q=this.X.length-1E3+1;q>0&&(this.X.splice(0,q),this.J+=q,$b(this,3,q));this.X.push(n);this.pQ||this.W.enabled||this.W.start()}}; g.W.flush=function(n,q){var M=this;if(this.X.length===0)n&&n();else if(this.IL&&this.xl)this.Z.W=3,eqs(this);else{var t=Date.now();if(this.AE>t&&this.jX0&&(M.jX=Date.now(),M.AE=M.jX+e);e=eS(uK);var I;ZB&&e&&((I=E.MP[e])==null?void 0:I[175237375])!=null&&$q(T0S,3);a:{var L=L===void 0?!1:L;if(eS(lRG)&&eS(uK)&&void 0===lRG){I=E.MP;e=I[uK];if(!e)break a;if(e=e.Xp)try{e(I,175237375,mkO);break a}catch(T){Hn(T)}}L&&(L=E.MP, (I=eS(uK))&&I in L&&(L=L[I])&&delete L[175237375])}L=gn.X?gn.W(E,gn.X,175237375,gn.Z):gn.W(E,175237375,null,gn.Z);if(L=L===null?void 0:L)L=vW(L,1,-1),L!==-1&&(M.S=new g.u9(L<1?1:L,3E5,.1),M.W.setInterval(M.S.getValue()))}}n&&n();M.C=0},N=function(e,E){var h=ff(Y,PL,3); var I=Number(Dcs(Y,14));g.BL(M.S);M.W.setInterval(M.S.getValue());e===401&&G&&(M.rJ=G);I&&(M.J+=I);E===void 0&&(E=M.isRetryable(e));E&&(M.X=h.concat(M.X),M.pQ||M.W.enabled||M.W.start());$b(M,7,1);q&&q("net-send-failed",e);++M.C},O=function(){M.network&&M.network.send(b,d,N)}; k?k.then(function(e){$b(M,5,c);b.requestHeaders["Content-Encoding"]="gzip";b.requestHeaders["Content-Type"]="application/binary";b.body=e;b.Tg=2;O()},function(){$b(M,6,c); O()}):O()}}}}; g.W.isRetryable=function(n){return 500<=n&&n<600||n===401||n===0};F7.prototype.send=function(n,q,M){var t=this,c,Y,G,k,b,d,N,O,e,E;return g.u(function(h){switch(h.X){case 1:return Y=(c=t.Gg?new AbortController:void 0)?setTimeout(function(){c.abort()},n.timeoutMillis):void 0,g.Ij(h,2,3),G=Object.assign({},{method:n.requestType, headers:Object.assign({},n.requestHeaders)},n.body&&{body:n.body},n.withCredentials&&{credentials:"include"},{signal:n.timeoutMillis&&c?c.signal:null}),g.U(h,fetch(n.url,G),5);case 5:k=h.W;if(k.status!==200){(b=M)==null||b(k.status);h.Fy(3);break}if((d=q)==null){h.Fy(7);break}return g.U(h,k.text(),8);case 8:d(h.W);case 7:case 3:g.Bd(h);clearTimeout(Y);g.Ds(h,0);break;case 2:N=g.TU(h);switch((O=N)==null?void 0:O.name){case "AbortError":(e=M)==null||e(408);break;default:(E=M)==null||E(400)}h.Fy(3)}})}; F7.prototype.sz=function(){return 4};g.y(Z8,g.F);Z8.prototype.hS=function(){this.S=!0;return this}; Z8.prototype.build=function(){this.network||(this.network=new F7);var n=new mJ({logSource:this.logSource,U$:this.U$?this.U$:Myf,sessionIndex:this.sessionIndex,sc1:this.zt,k9:this.J,pQ:!1,hS:this.S,fK:this.fK,network:this.network});g.Z(this,n);if(this.W){var q=this.W,M=UZ(n.Z);Ar(M,7,q)}n.N=new eZ;this.componentId&&(n.componentId=this.componentId);this.RU&&(n.RU=this.RU);this.pageId&&(n.pageId=this.pageId);this.X&&((M=this.X)?(n.experimentIds||(n.experimentIds=new EZ),q=n.experimentIds,M=M.XX(),Ar(q, 4,M)):n.experimentIds&&MX(n.experimentIds,4));this.Z&&(n.IL=n.xl);bNk(n.Z);this.network.a6&&this.network.a6(this.logSource);this.network.tYE&&this.network.tYE(n);return n};g.y(aq,g.F);aq.prototype.flush=function(n){n=n||[];if(n.length){for(var q=new wZj,M=[],t=0;t-1?(q=n[G],M||(q.dl=!1)):(q=new Suf(q,this.src,Y,!!t,c),q.dl=M,n.push(q));return q}; g.W.remove=function(n,q,M,t){n=n.toString();if(!(n in this.listeners))return!1;var c=this.listeners[n];q=QV(c,q,M,t);return q>-1?(CC(c[q]),g.IG(c,q),c.length==0&&(delete this.listeners[n],this.X--),!0):!1}; g.W.removeAll=function(n){n=n&&n.toString();var q=0,M;for(M in this.listeners)if(!n||M==n){for(var t=this.listeners[M],c=0;c-1?n[c]:null}; g.W.hasListener=function(n,q){var M=n!==void 0,t=M?n.toString():"",c=q!==void 0;return g.iV(this.listeners,function(Y){for(var G=0;G>>0);g.EF(g.Ne,g.F);g.Ne.prototype[XVs]=!0;g.W=g.Ne.prototype;g.W.addEventListener=function(n,q,M,t){g.n1(this,n,q,M,t)}; g.W.removeEventListener=function(n,q,M,t){T$U(this,n,q,M,t)}; g.W.dispatchEvent=function(n){var q=this.nM;if(q){var M=[];for(var t=1;q;q=q.nM)M.push(q),++t}q=this.ly;t=n.type||n;if(typeof n==="string")n=new g.zv(n,q);else if(n instanceof g.zv)n.target=n.target||q;else{var c=n;n=new g.zv(t,q);g.yn(n,c)}c=!0;var Y;if(M)for(Y=M.length-1;!n.W&&Y>=0;Y--){var G=n.currentTarget=M[Y];c=ON(G,t,!0,n)&&c}n.W||(G=n.currentTarget=q,c=ON(G,t,!0,n)&&c,n.W||(c=ON(G,t,!1,n)&&c));if(M)for(Y=0;!n.W&&Y0){this.W--;var n=this.X;this.X=n.next;n.next=null}else n=this.Z();return n};var EN;yc.prototype.add=function(n,q){var M=ACk.get();M.set(n,q);this.W?this.W.next=M:this.X=M;this.W=M}; yc.prototype.remove=function(){var n=null;this.X&&(n=this.X,this.X=this.X.next,this.X||(this.W=null),n.next=null);return n}; var ACk=new gM(function(){return new sN},function(n){return n.reset()}); sN.prototype.set=function(n,q){this.X=n;this.scope=q;this.next=null}; sN.prototype.reset=function(){this.next=this.scope=this.X=null};var XG,H5=!1,B$f=new yc;muj.prototype.reset=function(){this.context=this.W=this.Z=this.X=null;this.J=!1}; var $um=new gM(function(){return new muj},function(n){n.reset()}); g.v5.prototype.then=function(n,q,M){return Vyk(this,eg(typeof n==="function"?n:null),eg(typeof q==="function"?q:null),M)}; g.v5.prototype.$goog_Thenable=!0;g.W=g.v5.prototype;g.W.finally=function(n){var q=this;n=eg(n);return new g.v5(function(M,t){Rqs(q,function(c){n();M(c)},function(c){n(); t(c)})})}; g.W.M9=function(n,q){return Vyk(this,null,eg(n),q)}; g.W.catch=g.v5.prototype.M9;g.W.cancel=function(n){if(this.X==0){var q=new D5(n);g.L1(function(){oOf(this,q)},this)}}; g.W.lib=function(n){this.X=0;P5(this,2,n)}; g.W.rBJ=function(n){this.X=0;P5(this,3,n)}; g.W.Zr=function(){for(var n;n=wVd(this);)zqJ(this,n,this.X,this.N);this.C=!1}; var QVm=Hn;g.EF(D5,hF);D5.prototype.name="cancel";g.EF(g.Ab,g.Ne);g.W=g.Ab.prototype;g.W.enabled=!1;g.W.Eq=null;g.W.setInterval=function(n){this.b$=n;this.Eq&&this.enabled?(this.stop(),this.start()):this.Eq&&this.stop()}; g.W.JBm=function(){if(this.enabled){var n=g.OF()-this.yk;n>0&&n0&&(this.getStatus(),this.C=setTimeout(this.Jx.bind(this), this.xl)),this.getStatus(),this.U=!0,this.X.send(n),this.U=!1}catch(G){this.getStatus(),OPs(this,G)}}; g.W.Jx=function(){typeof Jb!="undefined"&&this.X&&(this.J="Timed out after "+this.xl+"ms, aborting",this.W=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.W.abort=function(n){this.X&&this.Z&&(this.getStatus(),this.Z=!1,this.S=!0,this.X.abort(),this.S=!1,this.W=n||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),zD(this))}; g.W.ut=function(){this.X&&(this.Z&&(this.Z=!1,this.S=!0,this.X.abort(),this.S=!1),zD(this,!0));g.wM.u7.ut.call(this)}; g.W.IZ=function(){this.qm()||(this.wJ||this.U||this.S?grj(this):this.wmJ())}; g.W.wmJ=function(){grj(this)}; g.W.isActive=function(){return!!this.X}; g.W.isComplete=function(){return g.Vc(this)==4}; g.W.getStatus=function(){try{return g.Vc(this)>2?this.X.status:-1}catch(n){return-1}}; g.W.getResponseHeader=function(n){if(this.X&&this.isComplete())return n=this.X.getResponseHeader(n),n===null?void 0:n}; g.W.getLastError=function(){return typeof this.J==="string"?this.J:String(this.J)};p1.prototype.send=function(n,q,M){q=q===void 0?function(){}:q; M=M===void 0?function(){}:M; dfs(n.url,function(t){t=t.target;C1(t)?q(g.rM(t)):M(t.getStatus())},n.requestType,n.body,n.requestHeaders,n.timeoutMillis,n.withCredentials)}; p1.prototype.sz=function(){return 1};qA.prototype.done=function(){this.logger.qs(this.event,nY()-this.startTime)}; g.y(MA,MO);g.y(tQ,MA);g.W=tQ.prototype;g.W.NJ=function(){}; g.W.Gj=function(){}; g.W.qs=function(){}; g.W.Vh=function(){}; g.W.DY=function(){}; g.W.VQ=function(n,q,M,t){return t}; g.W.CH=function(){}; g.W.Db=function(){}; g.W.oo=function(){}; g.y(c2,MA);g.W=c2.prototype;g.W.update=function(n){this.logger.dispose();this.logger=n}; g.W.Gj=function(n){this.logger.Gj(n)}; g.W.qs=function(n,q){this.logger.qs(n,q)}; g.W.Vh=function(n){this.logger.Vh(n)}; g.W.DY=function(){this.logger.DY()}; g.W.VQ=function(n,q,M,t){return this.logger.VQ(n,q,M,t)}; g.W.CH=function(n){this.logger.CH(n)}; g.W.Db=function(n){this.logger.Db(n)}; g.W.oo=function(n){this.logger.oo(n)}; g.W.NJ=function(n){this.logger.NJ(n)}; g.y(WMd,g.F);g.y(YC,MA);g.W=YC.prototype;g.W.NJ=function(n){this.metrics.H9L.TF(n,this.ke)}; g.W.Gj=function(n){this.metrics.eventCount.eR(n,this.ke)}; g.W.qs=function(n,q){this.metrics.us.TF(q,n,this.ke)}; g.W.Vh=function(n){this.metrics.errorCount.eR(n,this.ke)}; g.W.VQ=function(n,q,M,t){function c(k){if(!Y.qm()){var b=nY()-G;Y.metrics.Ujx.TF(b,n,M,k,q,Y.ke)}} var Y=this,G=nY();t.then(function(){return void c(0)},function(k){return void c(k instanceof Z5?k.code:-1)}); return t}; g.W.CH=function(n){this.metrics.bTx.eR(n,this.ke)}; g.W.Db=function(n){this.metrics.Bq.eR(n,this.ke)}; g.W.oo=function(n){this.metrics.Bam.eR(n,this.ke)}; g.y(GM,YC);GM.prototype.DY=function(){ygJ(this.X)};g.y(KY,ST);g.y(kC,ST);g.y(b$,ST);var Ufd=nN(b$),XlJ=function(n){return bE(function(q){return q instanceof n&&!Jl(q)})}(b$); b$.messageId="bfkj";g.y(qO,ST);g.y(dQ,ST);var jsd=nN(dQ);g.y(Oo,g.F);Oo.prototype.snapshot=function(n){if(this.qm())throw Error("Already disposed");this.logger.Gj("n");var q=this.logger.share();return this.Z.then(function(M){var t=M.KW;return new Promise(function(c){var Y=new qA(q,"n");t(function(G){Y.done();q.NJ(G.length);q.DY();q.dispose();c(G)},[n.N6, n.Vu,n.RM,n.HV])})})}; Oo.prototype.HK=function(n){var q=this;if(this.qm())throw Error("Already disposed");this.logger.Gj("n");var M=i$(this.logger,function(){return q.J([n.N6,n.Vu,n.RM,n.HV])},"n"); this.logger.NJ(M.length);this.logger.DY();return M}; Oo.prototype.PN=function(n){this.Z.then(function(q){var M;(M=q.j1E)==null||M(n)})}; Oo.prototype.sV=function(){return this.logger.share()};g.y(Eo,ST);g.y(hQ,ST);W2.prototype.ME=function(n){return Agj(this,n,new tQ,0)};g.y(ya,g.F);ya.prototype.snapshot=function(n){var q=this;return g.u(function(M){switch(M.X){case 1:if(q.qm())throw Error("Already disposed");if(q.W||q.N){M.Fy(2);break}return g.U(M,q.S.promise,2);case 2:if(!q.W){M.Fy(4);break}return g.U(M,q.W.snapshot(n),5);case 5:return M.return(M.W);case 4:throw q.N;}})}; ya.prototype.PN=function(n){var q,M;(q=this.W)==null||(M=q.PN)==null||M.call(q,n)}; ya.prototype.handleError=function(n){if(!this.qm()){this.N=n;this.S.resolve();var q,M;(M=(q=this.options).Hdt)==null||M.call(q,n)}}; ya.prototype.sV=function(){return this.logger.share()}; var FMJ={eul:432E5,pD:3E5,aj:10,dL:1E4,jN:3E4,qxy:3E4,sQg:6E4,Xd:1E3,xC:6E4,RB:6E5,Wv:.25,MC:2,maxAttempts:10};var ays,Czd=(ays=Math.imul)!=null?ays:function(n,q){return n*q|0},SP=[196, 200,224,18];I8.prototype.XX=function(){return String(this.X)+","+this.W.join()}; I8.prototype.eC=function(n,q){var M=void 0;if(this.W[this.X]!==n){var t=this.W.indexOf(n);t!==-1?(this.W.splice(t,1),t0;)q[M++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(n%62),n=Math.floor(n/62);return q.join("")}};g.y(H2,g.F);H2.prototype.Un=function(n,q){var M=this.zP(n);q==null||q(M);return i$(this.logger,function(){return g.Pn(M,2)},this.W)}; g.y(v2,H2);v2.prototype.zP=function(n,q){var M=this;this.logger.Gj(this.X);++this.S>=this.C&&this.Z.resolve();var t=n();n=i$(this.logger,function(){return M.J(t)},"C"); if(n===void 0)throw new xF(17,"YNJ:Undefined");if(!(n instanceof Uint8Array))throw new xF(18,"ODM:Invalid");q==null||q(n);return n}; g.y(TM,H2);TM.prototype.zP=function(){return this.J}; g.y(l$,H2);l$.prototype.zP=function(){var n=this;return i$(this.logger,function(){return Tf(n.J)},"d")}; l$.prototype.Un=function(){return this.J}; g.y(Uo,H2);Uo.prototype.zP=function(){if(this.J)return this.J;this.J=K6m(this,function(n){return"_"+GnJ(n)}); return K6m(this,function(n){return n})}; g.y(B2,H2);B2.prototype.zP=function(){var n=Math.floor(Date.now()/1E3),q=[Math.random()*255,Math.random()*255],M=q.concat([this.J&255,this.clientState],[n>>24&255,n>>16&255,n>>8&255,n&255]);n=new Uint8Array(2+M.length);n[0]=34;n[1]=M.length;n.set(M,2);M=n.subarray(2);for(var t=q=q.length;t150))try{this.cache=new MaJ(n,this.logger)}catch(q){this.reportError(new xF(22,"GBJ:init",q))}}; g.W.reportError=function(n){this.logger.Vh(n.code);this.onError(n);return n}; var d8_=function(n){return bE(function(q){if(!PVF(q))return!1;for(var M=g.S(Object.entries(n)),t=M.next();!t.done;t=M.next()){var c=g.S(t.value);t=c.next().value;c=c.next().value;if(!(t in q)){if(c.Qil===!0)continue;return!1}if(!c(q[t]))return!1}return!0})}({WA:function(n){return bE(function(q){return q instanceof n})}(ya)},"");var Cga=(new Date).getTime();g.y(Fy,ST);var R2F=nN(Fy);syd.prototype.getMetadata=function(){return this.metadata};Zm.prototype.getMetadata=function(){return this.metadata}; Zm.prototype.getStatus=function(){return this.status};a8.prototype.N=function(n,q){q=q===void 0?{}:q;return new syd(n,this,q)}; a8.prototype.getName=function(){return this.name};var o6F=new a8("/google.internal.waa.v1.Waa/Create",Eo,Fy,function(n){return n.XX()},R2F);g.y(R8,ST);var BJa=new a8("/google.internal.waa.v1.Waa/GenerateIT",hQ,R8,function(n){return n.XX()},nN(R8));var x81=new Set(["SAPISIDHASH","APISIDHASH"]);g.y(o8,ST);o8.prototype.getValue=function(){var n=nf(this,2);if(Array.isArray(n)||n instanceof ST)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return kK(this,2)};g.y(wQ,ST);wQ.prototype.getMessage=function(){return lY(this,2)}; var Hqm=nN(wQ);zM.prototype.FH=function(n,q){n=="data"?this.Z.push(q):n=="metadata"?this.S.push(q):n=="status"?this.C.push(q):n=="end"?this.J.push(q):n=="error"&&this.W.push(q);return this}; zM.prototype.removeListener=function(n,q){n=="data"?xC(this.Z,q):n=="metadata"?xC(this.S,q):n=="status"?xC(this.C,q):n=="end"?xC(this.J,q):n=="error"&&xC(this.W,q);return this}; zM.prototype.cancel=function(){this.X.abort()}; zM.prototype.cancel=zM.prototype.cancel;zM.prototype.removeListener=zM.prototype.removeListener;zM.prototype.on=zM.prototype.FH;g.y(jyU,Error);g.EF(g.Qa,kN1);g.Qa.prototype.X=function(){var n=new pY(this.J,this.Z);this.W&&n.setCredentialsMode(this.W);return n}; g.Qa.prototype.setCredentialsMode=function(n){this.W=n}; g.EF(pY,g.Ne);g.W=pY.prototype;g.W.open=function(n,q){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.RL=n;this.xl=q;this.readyState=1;nO(this)}; g.W.send=function(n){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.B.signal.aborted)throw this.abort(),Error("Request was aborted.");this.X=!0;var q={headers:this.U,method:this.RL,credentials:this.S,cache:void 0,signal:this.B.signal};n&&(q.body=n);(this.wJ||g.pa).fetch(new Request(this.xl,q)).then(this.rH.bind(this),this.Uz.bind(this))}; g.W.abort=function(){this.response=this.responseText="";this.U=new Headers;this.status=0;this.B.abort();this.Z&&this.Z.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.X&&this.readyState!=4&&(this.X=!1,qb(this));this.readyState=0}; g.W.rH=function(n){if(this.X&&(this.J=n,this.W||(this.status=this.J.status,this.statusText=this.J.statusText,this.W=n.headers,this.readyState=2,nO(this)),this.X&&(this.readyState=3,nO(this),this.X)))if(this.responseType==="arraybuffer")n.arrayBuffer().then(this.qa.bind(this),this.Uz.bind(this));else if(typeof g.pa.ReadableStream!=="undefined"&&"body"in n){this.Z=n.body.getReader();if(this.C){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.N=new TextDecoder;L6u(this)}else n.text().then(this.lX.bind(this),this.Uz.bind(this))}; g.W.j4=function(n){if(this.X){if(this.C&&n.value)this.response.push(n.value);else if(!this.C){var q=n.value?n.value:new Uint8Array(0);if(q=this.N.decode(q,{stream:!n.done}))this.response=this.responseText+=q}n.done?qb(this):nO(this);this.readyState==3&&L6u(this)}}; g.W.lX=function(n){this.X&&(this.response=this.responseText=n,qb(this))}; g.W.qa=function(n){this.X&&(this.response=n,qb(this))}; g.W.Uz=function(){this.X&&qb(this)}; g.W.setRequestHeader=function(n,q){this.U.append(n,q)}; g.W.getResponseHeader=function(n){return this.W?this.W.get(n.toLowerCase())||"":""}; g.W.getAllResponseHeaders=function(){if(!this.W)return"";for(var n=[],q=this.W.entries(),M=q.next();!M.done;)M=M.value,n.push(M[0]+": "+M[1]),M=q.next();return n.join("\r\n")}; g.W.setCredentialsMode=function(n){this.S=n}; Object.defineProperty(pY.prototype,"withCredentials",{get:function(){return this.S==="include"}, set:function(n){this.setCredentialsMode(n?"include":"same-origin")}});g.Mb.prototype.toString=function(){var n=[],q=this.S;q&&n.push(kD(q,wgd,!0),":");var M=this.X;if(M||q=="file")n.push("//"),(q=this.B)&&n.push(kD(q,wgd,!0),"@"),n.push(g.Pg(M).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),M=this.Z,M!=null&&n.push(":",String(M));if(M=this.W)this.X&&M.charAt(0)!="/"&&n.push("/"),n.push(kD(M,M.charAt(0)=="/"?z2d:JEL,!0));(M=this.J.toString())&&n.push("?",M);(M=this.C)&&n.push("#",kD(M,V5O));return n.join("")}; g.Mb.prototype.resolve=function(n){var q=this.clone(),M=!!n.S;M?g.iM(q,n.S):M=!!n.B;M?q.B=n.B:M=!!n.X;M?g.td(q,n.X):M=n.Z!=null;var t=n.W;if(M)g.cC(q,n.Z);else if(M=!!n.W){if(t.charAt(0)!="/")if(this.X&&!this.W)t="/"+t;else{var c=q.W.lastIndexOf("/");c!=-1&&(t=q.W.slice(0,c+1)+t)}c=t;if(c==".."||c==".")t="";else if(g.B7(c,"./")||g.B7(c,"/.")){t=lV(c,"/");c=c.split("/");for(var Y=[],G=0;G1||Y.length==1&&Y[0]!="")&&Y.pop(), t&&G==c.length&&Y.push("")):(Y.push(k),t=!0)}t=Y.join("/")}else t=c}M?q.W=t:M=n.J.toString()!=="";M?YD(q,n.J.clone()):M=!!n.C;M&&(q.C=n.C);return q}; g.Mb.prototype.clone=function(){return new g.Mb(this)}; var wgd=/[#\/\?@]/g,JEL=/[#\?:]/g,z2d=/[#\?]/g,U8d=/[#\?@]/g,V5O=/#/g;g.W=KO.prototype;g.W.add=function(n,q){Nb(this);this.Z=null;n=O$(this,n);var M=this.X.get(n);M||this.X.set(n,M=[]);M.push(q);this.W=this.W+1;return this}; g.W.remove=function(n){Nb(this);n=O$(this,n);return this.X.has(n)?(this.Z=null,this.W=this.W-this.X.get(n).length,this.X.delete(n)):!1}; g.W.clear=function(){this.X=this.Z=null;this.W=0}; g.W.isEmpty=function(){Nb(this);return this.W==0}; g.W.forEach=function(n,q){Nb(this);this.X.forEach(function(M,t){M.forEach(function(c){n.call(q,c,t,this)},this)},this)}; g.W.c$=function(){Nb(this);for(var n=Array.from(this.X.values()),q=Array.from(this.X.keys()),M=[],t=0;t0?String(n[0]):q}; g.W.toString=function(){if(this.Z)return this.Z;if(!this.X)return"";for(var n=[],q=Array.from(this.X.keys()),M=0;M>>3;Y.Z!=1&&Y.Z!=2&&Y.Z!=15&&hd(Y,G,k,"unexpected tag");Y.X=1;Y.W=0;Y.J=0} function M(b){Y.J++;Y.J==5&&b&240&&hd(Y,G,k,"message length too long");Y.W|=(b&127)<<(Y.J-1)*7;b&128||(Y.X=2,Y.B=0,typeof Uint8Array!=="undefined"?Y.S=new Uint8Array(Y.W):Y.S=Array(Y.W),Y.W==0&&c())} function t(b){Y.S[Y.B++]=b;Y.B==Y.W&&c()} function c(){if(Y.Z<15){var b={};b[Y.Z]=Y.S;Y.N.push(b)}Y.X=0} for(var Y=this,G=n instanceof Array?n:new Uint8Array(n),k=0;k0?n:null};WC.prototype.isInputValid=function(){return this.X===null}; WC.prototype.p9=function(){return this.X}; WC.prototype.Lh=function(){return!1}; WC.prototype.parse=function(n){this.X!==null&&ZqC(this,n,"stream already broken");var q=null;try{var M=this.Z;M.Z||F6m(M,n,"stream already broken");M.X+=n;var t=Math.floor(M.X.length/4);if(t==0)var c=null;else{try{var Y=vuu(M.X.slice(0,t*4))}catch(G){F6m(M,M.X,G.message)}M.W+=t*4;M.X=M.X.slice(t*4);c=Y}q=c===null?null:this.J.parse(c)}catch(G){ZqC(this,n,G.message)}this.W+=n.length;return q};var rEK={INIT:0,AA:1,jE:2,JF:3,AN:4,Dc:5,STRING:6,ID:7,Al:8,L5:9,EO:10,TK:11,eM:12,Ls:13,Ep:14,T1:15,P6:16,OO:17,YI:18,uy:19,Fz:20};g.W=s$.prototype;g.W.isInputValid=function(){return this.S!=3}; g.W.p9=function(){return this.U}; g.W.done=function(){return this.S===2}; g.W.Lh=function(){return!1}; g.W.parse=function(n){function q(){for(;e0;)if(h=n[e++], Y.B===4?Y.B=0:Y.B++,!h)break a;if(h==='"'&&!Y.N){Y.X=t();break}if(h==="\\"&&!Y.N&&(Y.N=!0,h=n[e++],!h))break;if(Y.N)if(Y.N=!1,h==="u"&&(Y.B=1),h=n[e++])continue;else break;k.lastIndex=e;h=k.exec(n);if(!h){e=n.length+1;break}e=h.index+1;h=n[h.index];if(!h)break}Y.Z+=e-I;continue;case b.L5:if(!h)continue;h==="r"?Y.X=b.EO:XW(Y,n,e);continue;case b.EO:if(!h)continue;h==="u"?Y.X=b.TK:XW(Y,n,e);continue;case b.TK:if(!h)continue;h==="e"?Y.X=t():XW(Y,n,e);continue;case b.eM:if(!h)continue;h==="a"?Y.X=b.Ls: XW(Y,n,e);continue;case b.Ls:if(!h)continue;h==="l"?Y.X=b.Ep:XW(Y,n,e);continue;case b.Ep:if(!h)continue;h==="s"?Y.X=b.T1:XW(Y,n,e);continue;case b.T1:if(!h)continue;h==="e"?Y.X=t():XW(Y,n,e);continue;case b.P6:if(!h)continue;h==="u"?Y.X=b.OO:XW(Y,n,e);continue;case b.OO:if(!h)continue;h==="l"?Y.X=b.YI:XW(Y,n,e);continue;case b.YI:if(!h)continue;h==="l"?Y.X=t():XW(Y,n,e);continue;case b.uy:h==="."?Y.X=b.Fz:XW(Y,n,e);continue;case b.Fz:if("0123456789.eE+-".indexOf(h)!==-1)continue;else e--,Y.Z--,Y.X= t();continue;default:XW(Y,n,e)}}} function t(){var h=G.pop();return h!=null?h:b.AA} function c(h){Y.W>1||(h||(h=O===-1?Y.J+n.substring(N,e):n.substring(O,e)),Y.xl?Y.C.push(h):Y.C.push(JSON.parse(h)),O=e)} for(var Y=this,G=Y.RL,k=Y.wJ,b=rEK,d=n.length,N=0,O=-1,e=0;e0?(E=Y.C,Y.C=[],E):null}return null};jw.prototype.isInputValid=function(){return this.S===null}; jw.prototype.p9=function(){return this.S}; jw.prototype.Lh=function(){return!1}; jw.prototype.parse=function(n){function q(b){Y.W=6;Y.S="The stream is broken @"+Y.X+"/"+G+". Error: "+b+". With input:\n";throw Error(Y.S);} function M(){Y.Z=new s$({hQt:!0,OG:!0})} function t(b){if(b)for(var d=0;d1)&&q("extra status: "+b);Y.C=!0;var d={};d[2]=b[0];Y.J.push(d)}} for(var Y=this,G=0;G0?(n=Y.J,Y.J=[],n):null};Sw.prototype.BQ=function(){return this.X}; Sw.prototype.getStatus=function(){return this.S}; Sw.prototype.xl=function(n){n=n.target;try{if(n==this.X)a:{var q=g.Vc(this.X),M=this.X.W,t=this.X.getStatus(),c=g.rM(this.X);n=[];if(g.x4(this.X)instanceof Array){var Y=g.x4(this.X);Y.length>0&&Y[0]instanceof Uint8Array&&(this.U=!0,n=Y)}if(!(q<3||q==3&&!c&&n.length==0))if(t=t==200||t==206,q==4&&(M==8?ID(this,7):M==7?ID(this,8):t||ID(this,3)),this.W||(this.W=anR(this.X),this.W==null&&ID(this,5)),this.S>2)fO(this);else{if(n.length>this.Z){var G=n.length;M=[];try{if(this.W.Lh())for(var k=0;kthis.Z){k=c.slice(this.Z);this.Z=c.length;try{var d=this.W.parse(k);d!=null&&this.J&&this.J(d)}catch(N){ID(this,5);fO(this);break a}}q==4?(c.length!= 0||this.U?ID(this,2):ID(this,4),fO(this)):ID(this,1)}}}catch(N){ID(this,6),fO(this)}};g.W=RFu.prototype;g.W.FH=function(n,q){var M=this.W[n];M||(M=[],this.W[n]=M);M.push(q);return this}; g.W.addListener=function(n,q){this.FH(n,q);return this}; g.W.removeListener=function(n,q){var M=this.W[n];M&&g.fQ(M,q);(n=this.X[n])&&g.fQ(n,q);return this}; g.W.once=function(n,q){var M=this.X[n];M||(M=[],this.X[n]=M);M.push(q);return this}; g.W.mPl=function(n){var q=this.W.data;q&&oFd(n,q);(q=this.X.data)&&oFd(n,q);this.X.data=[]}; g.W.H8J=function(){switch(this.Z.getStatus()){case 1:HC(this,"readable");break;case 5:case 6:case 4:case 7:case 3:HC(this,"error");break;case 8:HC(this,"close");break;case 2:HC(this,"end")}};wmd.prototype.serverStreaming=function(n,q,M,t){var c=this,Y=n.substring(0,n.length-t.name.length);return Qyk(function(G){var k=G.f7,b=G.getMetadata(),d=Vaf(c,!1);b=Cjs(c,b,d,Y+k.getName());var N=rT1(d,k.W,!0);G=k.X(G.JM);d.send(b,"POST",G);return N},this.Xv).call(this,t.N(q,M))};pmm.prototype.create=function(n,q,M){var t=this.X,c=this.W+"/$rpc/google.internal.waa.v1.Waa/Create";q=q||{};M=M===void 0?{}:M;return DfC(t,c,n,q,o6F,M)};var fMs=new nbf(45713224),HZm=new qZa(45713225);var LLs=new nbf(45713226),P5f=new qZa(45713227);var tZu="://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(" "),ctd=/\bocr\b/;var Gvk=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(n){throw n;}},{Xlx:!0, Wgl:!0,ujt:!1,ZCx:hRs,wlg:W3s,JzL:!1,plm:!1,KyJ:!1,Rzx:!0,Fgs:EuQ,xHg:!1,fMk:!1,Wlm:!1});var vC=null,lM=!1,WJC=1,ewa=Symbol("SIGNAL"),eQ={version:0,XJE:0,KR:!1,producers:void 0,Y2:void 0,xP:void 0,CZ:void 0,hR:!1,JS:!1,Iq:!1,kind:"unknown",BX:function(){return!1}, bU:function(){}, Mw:function(){}, ciX:function(){}};var EV=Symbol("UNSET"),hM=Symbol("COMPUTING"),Wu=Symbol("ERRORED");Object.assign({},eQ,{value:EV,KR:!0,error:null,nQ:PC,kind:"computed",BX:function(n){return n.value===EV||n.value===hM}, bU:function(n){if(n.value===hM)throw Error("");var q=n.value;n.value=hM;var M=bCR(n),t=!1;try{var c=n.Iu();Tw(null);t=q!==EV&&q!==Wu&&c!==Wu&&n.nQ(q,c)}catch(Y){c=Wu,n.error=Y}finally{Nlm(n,M)}t?n.value=q:(n.value=c,n.version++)}});Object.assign({},eQ,{Iq:!0,JS:!0,KR:!0,Vv:!1,kind:"effect"});var gbk=Object.assign({},eQ,{nQ:PC,value:void 0,kind:"signal"});Object.assign({},eQ,{value:EV,KR:!0,error:null,nQ:PC,kind:"linkedSignal",BX:function(n){return n.value===EV||n.value===hM}, bU:function(n){if(n.value===hM)throw Error("");var q=n.value;n.value=hM;var M=bCR(n);try{var t=n.source();var c=n.Iu(t,q===EV||q===Wu?void 0:{source:n.Lvg,value:q});n.Lvg=t}catch(Y){c=Wu,n.error=Y}finally{Nlm(n,M)}q!==EV&&c!==Wu&&n.nQ(q,c)?n.value=q:(n.value=c,n.version++)}});Object.assign({},eQ,{Iq:!0,JS:!1,Mw:function(n){n.schedule!==null&&n.schedule(n.NRk)}, Vv:!1,Eom:function(){}});g.y(DD,g.Ne);DD.prototype.dispose=function(){window.removeEventListener("offline",this.Z);window.removeEventListener("online",this.Z);this.cw.gT(this.S);delete DD.instance}; DD.prototype.nT=function(){return this.X}; DD.prototype.iY=function(){var n=this;this.S=this.cw.yP(function(){var q;return g.u(function(M){if(M.X==1)return n.X?((q=window.navigator)==null?0:q.onLine)?M.Fy(3):g.U(M,BC(n),3):g.U(M,BC(n),3);n.iY();g.Sk(M)})},3E4)};g.y(sqk,ST);var xcL=spk(sqk,[0,Gz,e2n,qpG,Gz,-2,qpG,QTO]);FW.prototype.set=function(n,q){q=q===void 0?!0:q;0<=n&&n<52&&Number.isInteger(n)&&this.data[n]!==q&&(this.data[n]=q,this.X=-1)}; FW.prototype.get=function(n){return!!this.data[n]};var aD;g.EF(g.wE,g.F);g.W=g.wE.prototype;g.W.start=function(){this.stop();this.J=!1;var n=jqd(this),q=SZJ(this);n&&!q&&this.W.mozRequestAnimationFrame?(this.X=g.n1(this.W,"MozBeforePaint",this.Z),this.W.mozRequestAnimationFrame(null),this.J=!0):this.X=n&&q?n.call(this.W,this.Z):this.W.setTimeout(aAJ(this.Z),20)}; g.W.stop=function(){if(this.isActive()){var n=jqd(this),q=SZJ(this);n&&!q&&this.W.mozRequestAnimationFrame?k4(this.X):n&&q?q.call(this.W,this.X):this.W.clearTimeout(this.X)}this.X=null}; g.W.isActive=function(){return this.X!=null}; g.W.pX=function(){this.J&&this.X&&k4(this.X);this.X=null;this.C.call(this.S,g.OF())}; g.W.ut=function(){this.stop();g.wE.u7.ut.call(this)};g.EF(g.zw,g.F);g.W=g.zw.prototype;g.W.WW=0;g.W.ut=function(){g.zw.u7.ut.call(this);this.stop();delete this.X;delete this.W}; g.W.start=function(n){this.stop();this.WW=g.m5(this.Z,n!==void 0?n:this.b$)}; g.W.stop=function(){this.isActive()&&g.pa.clearTimeout(this.WW);this.WW=0}; g.W.isActive=function(){return this.WW!=0}; g.W.W6=function(){this.WW=0;this.X&&this.X.call(this.W)};g.y(g.rE,g.F);g.W=g.rE.prototype;g.W.nh=function(n){this.Z=arguments;this.Eq||this.W?this.X=!0:xD(this)}; g.W.stop=function(){this.Eq&&(g.pa.clearTimeout(this.Eq),this.Eq=null,this.X=!1,this.Z=null)}; g.W.pause=function(){this.W++}; g.W.resume=function(){this.W--;this.W||!this.X||this.Eq||(this.X=!1,xD(this))}; g.W.ut=function(){g.F.prototype.ut.call(this);this.stop()};g.Qx.prototype[Symbol.iterator]=function(){return this}; g.Qx.prototype.next=function(){var n=this.X.next();return{value:n.done?void 0:this.W.call(void 0,n.value),done:n.done}};g.EF(g.GS,g.Ne);g.W=g.GS.prototype;g.W.isPlaying=function(){return this.X==1}; g.W.isPaused=function(){return this.X==-1}; g.W.WN=function(){this.oz("begin")}; g.W.dA=function(){this.oz("end")}; g.W.onFinish=function(){this.oz("finish")}; g.W.onStop=function(){this.oz("stop")}; g.W.oz=function(n){this.dispatchEvent(n)};var QRd=BT(function(){var n=g.eO("DIV"),q=g.dK?"-webkit":zV?"-moz":null,M="transition:opacity 1s linear;";q&&(M+=q+"-transition:opacity 1s linear;");q=vwu({style:M});if(n.nodeType===1&&/^(script|style)$/i.test(n.tagName))throw Error("");n.innerHTML=e5(q);return g.J2(n.firstChild,"transition")!=""});g.EF(K4,g.GS);g.W=K4.prototype;g.W.play=function(){if(this.isPlaying())return!1;this.WN();this.oz("play");this.startTime=g.OF();this.X=1;if(QRd())return g.wK(this.W,this.C),this.Z=g.m5(this.nBL,void 0,this),!0;this.bf(!1);return!1}; g.W.nBL=function(){g.Mv(this.W);HCs(this.W,this.N);g.wK(this.W,this.J);this.Z=g.m5((0,g.bn)(this.bf,this,!1),this.S*1E3)}; g.W.stop=function(){this.isPlaying()&&this.bf(!0)}; g.W.bf=function(n){g.wK(this.W,"transition","");g.pa.clearTimeout(this.Z);g.wK(this.W,this.J);this.endTime=g.OF();this.X=0;if(n)this.onStop();else this.onFinish();this.dA()}; g.W.ut=function(){this.stop();K4.u7.ut.call(this)}; g.W.pause=function(){};var P9k={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};ki("Element","attributes")||ki("Node","attributes");ki("Element","innerHTML")||ki("HTMLElement","innerHTML");ki("Node","nodeName");ki("Node","nodeType");ki("Node","parentNode");ki("Node","childNodes");ki("HTMLElement","style")||ki("Element","style");ki("HTMLStyleElement","sheet");var Bls=Tl_("getPropertyValue"),DOR=Tl_("setProperty");ki("Element","namespaceURI")||ki("Node","namespaceURI");var u7a={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var FJJ,YCF,$Od,mOa,ZCJ;FJJ=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]");YCF=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.pgG=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.dY=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]");$Od=/^http:\/\/.*/;g.nZO=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");mOa=/\s+/;ZCJ=/[\d\u06f0-\u06f9]/;OX.prototype.Iw=function(){return new gY(this.W())}; OX.prototype[Symbol.iterator]=function(){return new eA(this.W())}; OX.prototype.X=function(){return new eA(this.W())}; g.y(gY,g.yL);gY.prototype.next=function(){return this.W.next()}; gY.prototype[Symbol.iterator]=function(){return new eA(this.W)}; gY.prototype.X=function(){return new eA(this.W)}; g.y(eA,OX);eA.prototype.next=function(){return this.Z.next()};hs.prototype.clone=function(){return new hs(this.X,this.N,this.Z,this.S,this.J,this.C,this.W,this.B)}; hs.prototype.equals=function(n){return this.X==n.X&&this.N==n.N&&this.Z==n.Z&&this.S==n.S&&this.J==n.J&&this.C==n.C&&this.W==n.W&&this.B==n.B};yA.prototype.clone=function(){return new yA(this.start,this.end)};(function(){if(O2a){var n=/Windows NT ([0-9.]+)/;return(n=n.exec(g.FV()))?n[1]:"0"}return yP?(n=/1[0|1][_.][0-9_.]+/,(n=n.exec(g.FV()))?n[0].replace(/_/g,"."):"10"):g.Cp?(n=/Android\s+([^\);]+)(\)|;)/,(n=n.exec(g.FV()))?n[1]:""):X7K||jTK||SCS?(n=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(n=n.exec(g.FV()))?n[1].replace(/_/g,"."):""):""})();var RwR=function(){if(g.O8)return sX(/Firefox\/([0-9.]+)/);if(g.bC||g.oa||g.MU)return jGd;if(g.Xq){if(mS()||$6()){var n=sX(/CriOS\/([0-9.]+)/);if(n)return n}return sX(/Chrome\/([0-9.]+)/)}if(g.gz&&!mS())return sX(/Version\/([0-9.]+)/);if(zH||JP){if(n=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.FV()))return n[1]+"."+n[2]}else if(g.i4)return(n=sX(/Android\s+([0-9.]+)/))?n:sX(/Version\/([0-9.]+)/);return""}();g.EF(g.jA,g.F);g.W=g.jA.prototype;g.W.subscribe=function(n,q,M){var t=this.W[n];t||(t=this.W[n]=[]);var c=this.C;this.X[c]=n;this.X[c+1]=q;this.X[c+2]=M;this.C=c+3;t.push(c);return c}; g.W.unsubscribe=function(n,q,M){if(n=this.W[n]){var t=this.X;if(n=n.find(function(c){return t[c+1]==q&&t[c+2]==M}))return this.cH(n)}return!1}; g.W.cH=function(n){var q=this.X[n];if(q){var M=this.W[q];this.J!=0?(this.Z.push(n),this.X[n+1]=function(){}):(M&&g.fQ(M,n),delete this.X[n],delete this.X[n+1],delete this.X[n+2])}return!!q}; g.W.publish=function(n,q){var M=this.W[n];if(M){var t=Array(arguments.length-1),c=arguments.length,Y;for(Y=1;Y0&&this.J==0)for(;M=this.Z.pop();)this.cH(M)}}return Y!=0}return!1}; g.W.clear=function(n){if(n){var q=this.W[n];q&&(q.forEach(this.cH,this),delete this.W[n])}else this.X.length=0,this.W={}}; g.W.ut=function(){g.jA.u7.ut.call(this);this.clear();this.Z.length=0};g.SA.prototype.set=function(n,q){q===void 0?this.X.remove(n):this.X.set(n,g.a9(q))}; g.SA.prototype.get=function(n){try{var q=this.X.get(n)}catch(M){return}if(q!==null)try{return JSON.parse(q)}catch(M){throw"Storage: Invalid value was encountered";}}; g.SA.prototype.remove=function(n){this.X.remove(n)};g.EF(I7,g.SA);I7.prototype.set=function(n,q){I7.u7.set.call(this,n,zwu(q))}; I7.prototype.W=function(n){n=I7.u7.get.call(this,n);if(n===void 0||n instanceof Object)return n;throw"Storage: Invalid value was encountered";}; I7.prototype.get=function(n){if(n=this.W(n)){if(n=n.data,n===void 0)throw"Storage: Invalid value was encountered";}else n=void 0;return n};g.EF(f4,I7);f4.prototype.set=function(n,q,M){if(q=zwu(q)){if(M){if(M=M.length)return g.bb;var c=M.key(q++);if(n)return g.Is(c);c=M.getItem(c);if(typeof c!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Is(c)}; return t}; g.W.clear=function(){vX(this);this.X.clear()}; g.W.key=function(n){vX(this);return this.X.key(n)};g.EF(TS,PX);g.EF(C9f,PX);g.EF(lC,L4);lC.prototype.set=function(n,q){this.W.set(this.X+n,q)}; lC.prototype.get=function(n){return this.W.get(this.X+n)}; lC.prototype.remove=function(n){this.W.remove(this.X+n)}; lC.prototype.Iw=function(n){var q=this.W[Symbol.iterator](),M=this,t=new g.yL;t.next=function(){var c=q.next();if(c.done)return c;for(c=c.value;c.slice(0,M.X.length)!=M.X;){c=q.next();if(c.done)return c;c=c.value}return g.Is(n?c.slice(M.X.length):M.W.get(c))}; return t};uC.prototype.getValue=function(){return this.W}; uC.prototype.clone=function(){return new uC(this.X,this.W)};g.W=BX.prototype;g.W.eC=function(n,q){var M=this.X;M.push(new uC(n,q));n=M.length-1;q=this.X;for(M=q[n];n>0;){var t=n-1>>1;if(q[t].X>M.X)q[n]=q[t],n=t;else break}q[n]=M}; g.W.remove=function(){var n=this.X,q=n.length,M=n[0];if(!(q<=0)){if(q==1)n.length=0;else{n[0]=n.pop();n=0;q=this.X;for(var t=q.length,c=q[n];n>1;){var Y=n*2+1,G=n*2+2;Y=Gc.X)break;q[n]=q[Y];n=Y}q[n]=c}return M.getValue()}}; g.W.CL=function(){for(var n=this.X,q=[],M=n.length,t=0;t>>16&65535|0;for(var Y;M!==0;){Y=M>2E3?2E3:M;M-=Y;do c=c+q[t++]|0,n=n+c|0;while(--Y);c%=65521;n%=65521}return c|n<<16|0};for(var bW={},y5,c2S=[],sV=0;sV<256;sV++){y5=sV;for(var YSL=0;YSL<8;YSL++)y5=y5&1?3988292384^y5>>>1:y5>>>1;c2S[sV]=y5}bW=function(n,q,M,t){M=t+M;for(n^=-1;t>>8^c2S[(n^q[t])&255];return n^-1};var nr={};nr={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 Js=[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],rY=[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],s9j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],kDR=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],to=Array(576);$i(to);var cA=Array(60);$i(cA);var C4=Array(512);$i(C4);var zS=Array(256);$i(zS);var VA=Array(29);$i(VA);var xi=Array(30);$i(xi);var hcU,W5s,ybJ,E4U=!1;var eU;eU=[new gS(0,0,0,0,function(n,q){var M=65535;for(M>n.eK-5&&(M=n.eK-5);;){if(n.Ld<=1){dS(n);if(n.Ld===0&&q===0)return 1;if(n.Ld===0)break}n.g7+=n.Ld;n.Ld=0;var t=n.rP+M;if(n.g7===0||n.g7>=t)if(n.Ld=n.g7-t,n.g7=t,Yd(n,!1),n.V6.MV===0)return 1;if(n.g7-n.rP>=n.g9-262&&(Yd(n,!1),n.V6.MV===0))return 1}n.eC=0;if(q===4)return Yd(n,!0),n.V6.MV===0?3:4;n.g7>n.rP&&Yd(n,!1);return 1}), new gS(4,4,8,4,Nw),new gS(4,5,16,8,Nw),new gS(4,6,32,32,Nw),new gS(4,4,16,16,Ok),new gS(8,16,32,32,Ok),new gS(8,16,128,128,Ok),new gS(8,32,128,256,Ok),new gS(32,128,258,1024,Ok),new gS(32,258,258,4096,Ok)];var ec1={};ec1=function(){this.input=null;this.Yc=this.ir=this.Ns=0;this.output=null;this.JU=this.MV=this.I0=0;this.msg="";this.state=null;this.Oa=2;this.qM=0};var X5m=Object.prototype.toString; Ek.prototype.push=function(n,q){var M=this.V6,t=this.options.chunkSize;if(this.ended)return!1;var c=q===~~q?q:q===!0?4:0;typeof n==="string"?M.input=Qqu(n):X5m.call(n)==="[object ArrayBuffer]"?M.input=new Uint8Array(n):M.input=n;M.Ns=0;M.ir=M.input.length;do{M.MV===0&&(M.output=new mv.UX(t),M.I0=0,M.MV=t);n=g41(M,c);if(n!==1&&n!==0)return this.dA(n),this.ended=!0,!1;if(M.MV===0||M.ir===0&&(c===4||c===2))if(this.options.to==="string"){var Y=mv.sb(M.output,M.I0);q=Y;Y=Y.length;if(Y<65537&&(q.subarray&& tOs||!q.subarray))q=String.fromCharCode.apply(null,mv.sb(q,Y));else{for(var G="",k=0;k0||M.MV===0)&&n!==1);if(c===4)return(M=this.V6)&&M.state?(t=M.state.status,t!==42&&t!==69&&t!==73&&t!==91&&t!==103&&t!==113&&t!==666?n=qw(M,-2):(M.state=null,n=t===113?qw(M,-3):0)):n=-2,this.dA(n),this.ended=!0,n===0;c===2&&(this.dA(0),M.MV=0);return!0}; Ek.prototype.dA=function(n){n===0&&(this.result=this.options.to==="string"?this.chunks.join(""):mv.bu(this.chunks));this.chunks=[];this.err=n;this.msg=this.V6.msg};var WA="@@redux/INIT"+ho(),L5C="@@redux/REPLACE"+ho();var Pgf=typeof Symbol==="function"&&Symbol.observable||"@@observable";var GVD=[0,dcQ,-3,YP];g.y(Ue1,ST);var ixd=spk(Ue1,[0,Gz,NiK,Md,dcQ,Md,-1,YP,dcQ,YP,-1,Gz,YP,NiK,ib,GVD,Md,-1,YP]);var uGU=256359125;var pfj=new g.Xa("adInfoDialogEndpoint");var ldU=new g.Xa("adPingingEndpoint");var QMk=new g.Xa("crossDeviceProgressCommand");var AO=new g.Xa("actionCompanionAdRenderer");var Qm=new g.Xa("adActionInterstitialRenderer");var KTD=new g.Xa("adDurationRemainingRenderer");var bk=new g.Xa("adHoverTextButtonRenderer");var xyj=new g.Xa("adInfoDialogRenderer");var Jp=new g.Xa("adMessageRenderer");var dt=new g.Xa("adPreviewRenderer");var $m=new g.Xa("adsEngagementPanelRenderer");var ItR=new g.Xa("dismissablePanelTextPortraitImageRenderer");var M_=new g.Xa("adsEngagementPanelSectionListViewModel");var kVO=new g.Xa("flyoutCtaRenderer");var m1=new g.Xa("imageCompanionAdRenderer");var rH=new g.Xa("instreamAdPlayerOverlayRenderer");var fAQ=new g.Xa("instreamSurveyAdBackgroundImageRenderer");var kW=new g.Xa("instreamSurveyAdPlayerOverlayRenderer");var rq=new g.Xa("instreamSurveyAdRenderer"),Kw=new g.Xa("instreamSurveyAdSingleSelectQuestionRenderer"),GP=new g.Xa("instreamSurveyAdMultiSelectQuestionRenderer"),X8=new g.Xa("instreamSurveyAdAnswerRenderer"),b7D=new g.Xa("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var Vy=new g.Xa("instreamVideoAdRenderer");var dEw=new g.Xa("textOverlayAdContentRenderer"),NKn=new g.Xa("enhancedTextOverlayAdContentRenderer"),O7A=new g.Xa("imageOverlayAdContentRenderer");var xo=new g.Xa("playerOverlayLayoutRenderer");var p5=new g.Xa("videoInterstitialButtonedCenteredLayoutRenderer");var vVs=new g.Xa("aboveFeedAdLayoutRenderer");var TbR=new g.Xa("belowPlayerAdLayoutRenderer");var PSs=new g.Xa("inPlayerAdLayoutRenderer");var ltU=new g.Xa("inPlayerOrganicOverlayAdLayoutRenderer");var ph=new g.Xa("playerBytesAdLayoutRenderer");var YW=new g.Xa("playerBytesSequenceItemAdLayoutRenderer");var cU=new g.Xa("playerUnderlayAdLayoutRenderer");var Ch=new g.Xa("adIntroRenderer");var zi=new g.Xa("playerBytesSequentialLayoutRenderer");var bTJ=new g.Xa("slidingTextPlayerOverlayRenderer");var xm=new g.Xa("surveyTextInterstitialRenderer");var nw=new g.Xa("videoAdTrackingRenderer");var s1d=new g.Xa("videoInterstitialCenteredLayoutViewModel");var gZT=new g.Xa("simpleAdBadgeRenderer");var A0=new g.Xa("skipAdRenderer"),e3T=new g.Xa("skipButtonRenderer");var eB=new g.Xa("adSlotRenderer");var ik=new g.Xa("squeezebackPlayerSidePanelRenderer");var EZs=new g.Xa("timedPieCountdownRenderer");var w_=new g.Xa("adAvatarViewModel");var zQ=new g.Xa("adBadgeViewModel");var J1=new g.Xa("adButtonViewModel");var h3s=new g.Xa("adDetailsLineViewModel");var WTO=new g.Xa("adDisclosureBannerViewModel");var y2L=new g.Xa("adPodIndexViewModel");var spS=new g.Xa("imageBackgroundViewModel");var XTw=new g.Xa("adGridCardCollectionViewModel");var jpF=new g.Xa("adGridCardTextViewModel");var SSO=new g.Xa("adPreviewViewModel");var Ixw=new g.Xa("playerAdAvatarLockupCardButtonedViewModel");var fxO=new g.Xa("skipAdButtonViewModel");var H7s=new g.Xa("skipAdViewModel");var LTL=new g.Xa("timedPieCountdownViewModel");var PPA=new g.Xa("visitAdvertiserLinkViewModel");var Fl=new g.Xa("bannerImageLayoutViewModel");var Zw=new g.Xa("topBannerImageTextIconButtonedLayoutViewModel");var aF=new g.Xa("adsEngagementPanelLayoutViewModel");var tp=new g.Xa("displayUnderlayTextGridCardsLayoutViewModel");g.pt=new g.Xa("browseEndpoint");var vZd=new g.Xa("confirmDialogEndpoint");var Pps=new g.Xa("commandContext");var NOs=new g.Xa("rawColdConfigGroup");var ds1=new g.Xa("rawHotConfigGroup");g.Ov=new g.Xa("commandExecutorCommand");g.y(DeU,ST);var wPs={sNb:0,c2X:1,wOb:32,dos:61,noJ:67,S5l:103,a2l:86,Zex:42,Jib:60,kY1:62,jak:73,I2b:76,zQd:88,iem:90,q5k:99,Wy1:98,Gjk:100,Fyy:102,l21:41,ris:69,f21:70,Dol:71,iLt:2,Gnx:27,ANDROID:3,P$L:54,O_J:14,eOJ:91,tLt:55,Yuy:24,N4y:20,sgx:18,hOm:21,K8x:104,EeE:30,B4X:29,b_L:28,EVs:101,cGg:34,L8l:36,VLg:38,IOS:5,j2b:15,lJl:92,dSm:40,aJx:25,SQg:17,zIm:19,ibX:64,GFL:66,nwJ:26,fJX:22,DSm:33,AIg:68,ow1:35,qQ1:53,rIk:37,gwX:39,qvL:7,lNt:57,r2t:43,D6t:59,fNl:93,UWy:74,A2J:75,oVl:85,Cis:65,Pik:80,ORX:8,GYk:10, Yvm:58,tbb:63,m6x:72,T4l:23,CTx:11,moL:13,Crs:12,nVJ:16,uIy:56,goy:31,gpx:77,V8d:84,pOm:87,Kmk:89,h7l:94,xKk:95};g.y(jU,ST);jU.prototype.oB=function(){return lY(this,3)}; jU.prototype.NC=function(){return lY(this,5)}; jU.prototype.tf=function(n){return Ar(this,5,n)};g.y(SU,ST);g.y(AbC,ST);g.y(IZ,ST);g.W=IZ.prototype;g.W.getDeviceId=function(){return lY(this,6)}; g.W.kd=function(n){var q=G0(this,9,EP,3,!0);VD(q,n);return q[n]}; g.W.getPlayerType=function(){return UU(this,36)}; g.W.setHomeGroupInfo=function(n){return HW(this,AbC,81,n)}; g.W.clearLocationPlayabilityToken=function(){return MX(this,89)};g.y(fr,ST);fr.prototype.getValue=function(){return lY(this,sU(this,kHd,2))}; var kHd=[2,3,4,5,6];g.y(HA,ST);HA.prototype.setTrackingParams=function(n){return MX(this,1,aRC(n,!1))};g.y(Lr,ST);g.y(PA,ST);PA.prototype.kd=function(n){var q=G0(this,5,yj,3,!0);VD(q,n);return q[n]};g.y(vA,ST);vA.prototype.getToken=function(){return BW(this,2)}; vA.prototype.setToken=function(n){return Ar(this,2,n)};g.y(T7,ST);T7.prototype.setSafetyMode=function(n){return $K(this,5,n)};g.y(lW,ST);lW.prototype.gk=function(n){return HW(this,IZ,1,n)};var OD=new g.Xa("thumbnailLandscapePortraitRenderer");g.TKF=new g.Xa("changeEngagementPanelVisibilityAction");var Lus=new g.Xa("continuationCommand");g.lxs=new g.Xa("openPopupAction");var UEF=new g.Xa("signalAction");g.jQ=new g.Xa("webCommandMetadata");var s2J=new g.Xa("metadataBadgeRenderer");var HMa=new g.Xa("signalServiceEndpoint");var Ts=new g.Xa("innertubeCommand");var bMd=new g.Xa("loggingDirectives");var X2d={Fmd:"EMBEDDED_PLAYER_MODE_UNKNOWN",JPg:"EMBEDDED_PLAYER_MODE_DEFAULT",I7l:"EMBEDDED_PLAYER_MODE_PFP",p_J:"EMBEDDED_PLAYER_MODE_PFL"};var zWs=new g.Xa("channelThumbnailEndpoint");var wUu=new g.Xa("embeddedPlayerErrorMessageRenderer");var ZwU=new g.Xa("embeddedPlayerOverlayVideoDetailsRenderer"),Jpk=new g.Xa("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),VB1=new g.Xa("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var hWU=new g.Xa("embedsInfoPanelRenderer");var uLw=new g.Xa("feedbackEndpoint");var BKG=new g.Xa("callToActionButtonViewModel");var DEn=new g.Xa("interactionLoggingCommandMetadata");var Eid={RQX:"WEB_DISPLAY_MODE_UNKNOWN",Qat:"WEB_DISPLAY_MODE_BROWSER",xod:"WEB_DISPLAY_MODE_MINIMAL_UI",XOs:"WEB_DISPLAY_MODE_STANDALONE",MpL:"WEB_DISPLAY_MODE_FULLSCREEN"};g.y(Uk,ST);Uk.prototype.getPlayerType=function(){return UU(this,7)}; Uk.prototype.HA=function(){return lY(this,19)}; Uk.prototype.setVideoId=function(n){return Ar(this,19,n)};g.y(uW,ST);g.y(BA,ST);g.y(DT,ST); var A2T=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var mEF=new g.Xa("loggingContext");g.y(Ao,ST);g.y(Fa,ST);Fa.prototype.HA=function(){return BW(this,sU(this,tq,1))}; Fa.prototype.setVideoId=function(n){return el(this,1,tq,L0(n))}; Fa.prototype.getPlaylistId=function(){return BW(this,sU(this,tq,2))}; var tq=[1,2];g.y(mek,ST);var PO=new g.Xa("changeKeyedMarkersVisibilityCommand");var $EQ=new g.Xa("changeMarkersVisibilityCommand");var j2d=new g.Xa("loadMarkersCommand");var FTQ=new g.Xa("suggestedActionDataViewModel");var BGu=new g.Xa("timelyActionViewModel");var ur1=new g.Xa("timelyActionsOverlayViewModel");var xId=new g.Xa("productListItemRenderer");var Z7S=new g.Xa("shoppingOverlayRenderer");var aYf=new g.Xa("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var axs=new g.Xa("adFeedbackEndpoint");var R3L=new g.Xa("menuEndpoint");var i6m=new g.Xa("phoneDialerEndpoint");var qfC=new g.Xa("sendSmsEndpoint");var FVk=new g.Xa("copyTextEndpoint");var oZO=new g.Xa("shareEndpoint"),wTn=new g.Xa("shareEntityEndpoint"),z3Q=new g.Xa("shareEntityServiceEndpoint"),J2F=new g.Xa("webPlayerShareEntityServiceEndpoint");g.u8=new g.Xa("urlEndpoint");g.HO=new g.Xa("watchEndpoint");var VOT=new g.Xa("watchPlaylistEndpoint");g.CPF=new g.Xa("offlineOrchestrationActionCommand");var eKu=new g.Xa("compositeVideoOverlayRenderer");var r2n=new g.Xa("miniplayerRenderer");var m__=new g.Xa("paidContentOverlayRenderer");var xEF=new g.Xa("playerMutedAutoplayOverlayRenderer"),QpS=new g.Xa("playerMutedAutoplayEndScreenRenderer");var Bqd=new g.Xa("unserializedPlayerResponse"),pTO=new g.Xa("unserializedPlayerResponse");var nqd=new g.Xa("playlistEditEndpoint");var SQ;g.N_=new g.Xa("buttonRenderer");SQ=new g.Xa("toggleButtonRenderer");var j1_=new g.Xa("counterfactualRenderer");var qwQ=new g.Xa("resolveUrlCommandMetadata");var MiD=new g.Xa("modifyChannelNotificationPreferenceEndpoint");var TBf=new g.Xa("pingingEndpoint");var iHF=new g.Xa("unsubscribeEndpoint");g.ni=new g.Xa("subscribeButtonRenderer");var tiK=new g.Xa("subscribeEndpoint");var gys=new g.Xa("buttonViewModel");var S4j=new g.Xa("qrCodeRenderer");var J0j={TPX:"LIVING_ROOM_APP_MODE_UNSPECIFIED",eIm:"LIVING_ROOM_APP_MODE_MAIN",Hbd:"LIVING_ROOM_APP_MODE_KIDS",L5d:"LIVING_ROOM_APP_MODE_MUSIC",Ews:"LIVING_ROOM_APP_MODE_UNPLUGGED",yIJ:"LIVING_ROOM_APP_MODE_GAMING"};var gWa=new g.Xa("autoplaySwitchButtonRenderer");var MS,wqf,awC,MXC;MS=new g.Xa("decoratedPlayerBarRenderer");wqf=new g.Xa("chapteredPlayerBarRenderer");awC=new g.Xa("multiMarkersPlayerBarRenderer");MXC=new g.Xa("chapterRenderer");g.Cek=new g.Xa("markerRenderer");var GAC=new g.Xa("decoratedPlayheadRenderer");var WVd=new g.Xa("desktopOverlayConfigRenderer");var ftd=new g.Xa("engagementPanelSectionListRenderer");var EWd=new g.Xa("gatedActionsOverlayViewModel");var pqa=new g.Xa("heatMarkerRenderer");var QUd=new g.Xa("heatmapRenderer");var XUC=new g.Xa("watchToWatchTransitionRenderer");var RWd=new g.Xa("playlistPanelRenderer");var cls=new g.Xa("productUpsellSuggestedActionViewModel");var YwD=new g.Xa("suggestedActionTimeRangeTrigger"),GfS=new g.Xa("suggestedActionsRenderer"),Kdw=new g.Xa("suggestedActionRenderer");var nUJ=new g.Xa("timedMarkerDecorationRenderer");var A5f=new g.Xa("cipher");var D4_=new g.Xa("playerVars");var kfF=new g.Xa("playerVars");var IY=g.pa.window,bHF,dvD,ZT=(IY==null?void 0:(bHF=IY.yt)==null?void 0:bHF.config_)||(IY==null?void 0:(dvD=IY.ytcfg)==null?void 0:dvD.data_)||{};g.nQ("yt.config_",ZT);var wS=[];var VgR=/^[\w.]*$/,o4C={q:!0,search_query:!0},Rc_=String(Cr);var ck=new function(){var n=window.document;this.X=window;this.W=n}; g.nQ("yt.ads_.signals_.getAdSignalsString",function(n){return rS(GH(n))});g.OF();var rbR="XMLHttpRequest"in g.pa?function(){return new XMLHttpRequest}:null;var NkK="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.EJ(NkK);var nCJ={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"},dAm="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.EJ(NkK)),GMa=!1,tPk=sH;g.y(S6,hF);Hk.prototype.then=function(n,q,M){return this.X?this.X.then(n,q,M):this.Z===1&&n?(n=n.call(M,this.W))&&typeof n.then==="function"?n:Pk(n):this.Z===2&&q?(n=q.call(M,this.W))&&typeof n.then==="function"?n:Lp(n):this}; Hk.prototype.getValue=function(){return this.W}; Hk.prototype.$goog_Thenable=!0;var vk=!1;var Ra=zH||JP;var yQs=/^([0-9\.]+):([0-9\.]+)$/;g.y(KL,hF);KL.prototype.name="BiscottiError";g.y(GJ,hF);GJ.prototype.name="BiscottiMissingError";var SoC={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},kj=null;var MSu=g.h_(["data-"]),UAm={};var OHF=0,bJ=g.dK?"webkit":zV?"moz":g.bC?"ms":g.MU?"o":"",gqs=g.qD("ytDomDomGetNextId")||function(){return++OHF}; g.nQ("ytDomDomGetNextId",gqs);var AQ_={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};Eg.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Eg.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Eg.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var hJ=g.pa.ytEventsEventsListeners||{};g.nQ("ytEventsEventsListeners",hJ);var FRR=g.pa.ytEventsEventsCounter||{count:0};g.nQ("ytEventsEventsCounter",FRR);var oCs=BT(function(){var n=!1;try{var q=Object.defineProperty({},"passive",{get:function(){n=!0}}); window.addEventListener("test",null,q)}catch(M){}return n}),ZYj=BT(function(){var n=!1; try{var q=Object.defineProperty({},"capture",{get:function(){n=!0}}); window.addEventListener("test",null,q)}catch(M){}return n});var fk;fk=window;g.jt=fk.ytcsi&&fk.ytcsi.now?fk.ytcsi.now:fk.performance&&fk.performance.timing&&fk.performance.now&&fk.performance.timing.navigationStart?function(){return fk.performance.timing.navigationStart+fk.performance.now()}:function(){return(new Date).getTime()};g.EF(jo,g.F);jo.prototype.U=function(n){n.X===void 0&&mAC(n);var q=n.X;n.W===void 0&&mAC(n);this.X=new g.wi(q,n.W)}; jo.prototype.YE=function(){return this.X||new g.wi}; jo.prototype.xl=function(){if(this.X){var n=(0,g.jt)();if(this.J!=0){var q=this.C,M=this.X,t=q.x-M.x;q=q.y-M.y;t=Math.sqrt(t*t+q*q)/(n-this.J);this.W[this.Z]=Math.abs((t-this.S)/this.S)>.5?1:0;for(M=q=0;M<4;M++)q+=this.W[M]||0;q>=3&&this.N();this.S=t}this.J=n;this.C=this.X;this.Z=(this.Z+1)%4}}; jo.prototype.ut=function(){g.OH(this.B);g.y9(this.RL)};g.y(So,g.F);So.prototype.V=function(n,q,M,t,c){M=g.Jo((0,g.bn)(M,t||this.uG));M={target:n,name:q,callback:M};var Y;c&&oCs()&&(Y={passive:!0});n.addEventListener(q,M.callback,Y);this.N.push(M);return M}; So.prototype.AQ=function(n){for(var q=0;q=a.nx)||L.X.version>=x||L.X.objectStoreNames.contains(m)||v.push(m)}b=v;if(b.length===0){I.Fy(5);break}d=Object.keys(M.options.IK); N=k.objectStoreNames();if(M.SM.options.version+1)throw e.close(),M.Z=!1,TEs(M,E);return I.return(e);case 8:throw q(), O instanceof Error&&!g.EH("ytidb_async_stack_killswitch")&&(O.stack=O.stack+"\n"+G.substring(G.indexOf("\n")+1)),et(O,M.name,"",(h=M.options.version)!=null?h:-1);}})} function q(){M.X===t&&(M.X=void 0)} var M=this;if(!this.Z)throw TEs(this);if(this.X)return this.X;var t,c={blocking:function(Y){Y.close()}, closed:q,uXs:q,upgrade:this.options.upgrade};return this.X=t=n()};var Zg=new $c("YtIdbMeta",{IK:{databases:{nx:1}},upgrade:function(n,q){q(1)&&g.fM(n,"databases",{keyPath:"actualName"})}});var zY,wz=new function(){}(new function(){});new g.NA;g.y(CM,$c);CM.prototype.W=function(n,q,M){M=M===void 0?{}:M;return(this.options.shared?FXs:$bd)(n,q,Object.assign({},M))}; CM.prototype.delete=function(n){n=n===void 0?{}:n;return(this.options.shared?oDU:ZOs)(this.name,n)};var SwO={},zBa=g.rz("ytGcfConfig",{IK:(SwO.coldConfigStore={nx:1},SwO.hotConfigStore={nx:1},SwO),shared:!1,upgrade:function(n,q){q(1)&&(g.lQ(g.fM(n,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.lQ(g.fM(n,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.y(QW,g.F);QW.prototype.ut=function(){for(var n=g.S(this.W),q=n.next();!q.done;q=n.next()){var M=this.X;q=M.indexOf(q.value);q>=0&&M.splice(q,1)}this.W.length=0;g.F.prototype.ut.call(this)};tW.prototype.tf=function(n){this.hotHashData=n;g.nQ("yt.gcf.config.hotHashData",this.hotHashData||null)};var IBD=typeof TextEncoder!=="undefined"?new TextEncoder:null,BYR=IBD?function(n){return IBD.encode(n)}:function(n){n=g.LH(n); for(var q=new Uint8Array(n.length),M=0;M=q?!1:!0}; g.W.d1=function(){var n=this;if(!P9(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.LT.nN("QUEUED",this.kB).then(function(q){q&&!n.pA(q,n.k_)?n.cw.yP(function(){return g.u(function(M){if(M.X==1)return q.id===void 0?M.Fy(2):g.U(M,n.LT.kf(q.id,n.kB),2);n.d1();g.Sk(M)})}):n.qj.nT()&&n.jF()})};var lx;var e_J={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72, visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337, tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359, activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378, browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396, gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419, sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4, musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440, embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463, getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488, unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513, connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var HHL={},pXd=g.rz("ServiceWorkerLogsDatabase",{IK:(HHL.SWHealthLog={nx:1},HHL),shared:!0,upgrade:function(n,q){q(1)&&g.lQ(g.fM(n,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var B9={},cod=0;var DE;m8.prototype.requestComplete=function(n,q){q&&(this.W=!0);n=this.removeParams(n);this.X.get(n)||this.X.set(n,q)}; m8.prototype.isEndpointCFR=function(n){n=this.removeParams(n);return(n=this.X.get(n))?!1:n===!1&&this.W?!0:null}; m8.prototype.removeParams=function(n){return n.split("?")[0]}; m8.prototype.removeParams=m8.prototype.removeParams;m8.prototype.isEndpointCFR=m8.prototype.isEndpointCFR;m8.prototype.requestComplete=m8.prototype.requestComplete;m8.getInstance=$T;g.y(Ft,g.Ne);g.W=Ft.prototype;g.W.nT=function(){return this.X.nT()}; g.W.Pr=function(n){this.X.X=n}; g.W.Ws=function(){var n=window.navigator.onLine;return n===void 0?!0:n}; g.W.La=function(){this.W=!0}; g.W.listen=function(n,q){return this.X.listen(n,q)}; g.W.fA=function(n){n=BC(this.X,n);n.then(function(q){g.EH("use_cfr_monitor")&&$T().requestComplete("generate_204",q)}); return n}; Ft.prototype.sendNetworkCheckRequest=Ft.prototype.fA;Ft.prototype.listen=Ft.prototype.listen;Ft.prototype.enableErrorFlushing=Ft.prototype.La;Ft.prototype.getWindowStatus=Ft.prototype.Ws;Ft.prototype.networkStatusHint=Ft.prototype.Pr;Ft.prototype.isNetworkAvailable=Ft.prototype.nT;Ft.getInstance=K7R;g.y(g.ZE,g.Ne);g.ZE.prototype.nT=function(){var n=g.qD("yt.networkStatusManager.instance.isNetworkAvailable");return n?n.bind(this.W)():!0}; g.ZE.prototype.Pr=function(n){var q=g.qD("yt.networkStatusManager.instance.networkStatusHint").bind(this.W);q&&q(n)}; g.ZE.prototype.fA=function(n){var q=this,M;return g.u(function(t){M=g.qD("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(q.W);return g.EH("skip_network_check_if_cfr")&&$T().isEndpointCFR("generate_204")?t.return(new Promise(function(c){var Y;q.Pr(((Y=window.navigator)==null?void 0:Y.onLine)||!0);c(q.nT())})):M?t.return(M(n)):t.return(!0)})};var ak;g.y(Rk,v9);Rk.prototype.writeThenSend=function(n,q){q||(q={});q=ww(n,q);g.oE()||(this.X=!1);v9.prototype.writeThenSend.call(this,n,q)}; Rk.prototype.sendThenWrite=function(n,q,M){q||(q={});q=ww(n,q);g.oE()||(this.X=!1);v9.prototype.sendThenWrite.call(this,n,q,M)}; Rk.prototype.sendAndWrite=function(n,q){q||(q={});q=ww(n,q);g.oE()||(this.X=!1);v9.prototype.sendAndWrite.call(this,n,q)}; Rk.prototype.awaitInitialization=function(){return this.Z.promise};var Orf=g.pa.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.nQ("ytNetworklessLoggingInitializationOptions",Orf);g.zq.prototype.isReady=function(){!this.config_&&kS1()&&(this.config_=g.KE());return!!this.config_};var Ldn,CE,xT;Ldn=g.pa.ytPubsubPubsubInstance||new g.jA;CE=g.pa.ytPubsubPubsubSubscribedKeys||{};xT=g.pa.ytPubsubPubsubTopicToKeys||{};g.rw=g.pa.ytPubsubPubsubIsSynchronous||{};g.jA.prototype.subscribe=g.jA.prototype.subscribe;g.jA.prototype.unsubscribeByKey=g.jA.prototype.cH;g.jA.prototype.publish=g.jA.prototype.publish;g.jA.prototype.clear=g.jA.prototype.clear;g.nQ("ytPubsubPubsubInstance",Ldn);g.nQ("ytPubsubPubsubTopicToKeys",xT);g.nQ("ytPubsubPubsubIsSynchronous",g.rw); g.nQ("ytPubsubPubsubSubscribedKeys",CE);var yoa={};g.y(dB,g.F);dB.prototype.append=function(n){if(!this.W)throw Error("This does not support the append operation");n=n.ji();this.ji().appendChild(n)}; g.y(Ni,dB);Ni.prototype.ji=function(){return this.X};g.y(Oc,g.F);Oc.prototype.onTouchStart=function(n){this.N=!0;this.W=n.touches.length;this.X.isActive()&&(this.X.stop(),this.S=!0);n=n.touches;this.C=jZ1(this,n)||n.length!=1;var q=n.item(0);this.C||!q?this.U=this.B=Infinity:(this.B=q.clientX,this.U=q.clientY);for(q=this.Z.length=0;q=0)}if(q||n&&Math.pow(n.clientX-this.B,2)+Math.pow(n.clientY-this.U,2)>25)this.J=!0}; Oc.prototype.onTouchEnd=function(n){var q=n.changedTouches;q&&this.N&&this.W==1&&!this.J&&!this.S&&!this.C&&jZ1(this,q)&&(this.xl=n,this.X.start());this.W=n.touches.length;this.W===0&&(this.J=this.N=!1,this.Z.length=0);this.S=!1};var gB=Date.now().toString();var yp={};var fB=Symbol("injectionDeps");Xv.prototype.toString=function(){return"InjectionToken("+this.name+")"}; fTa.prototype.resolve=function(n){return n instanceof jz?Hh(this,n.key,[],!0):Hh(this,n,[])};var LB;var vh=window;var ua=g.EH("web_enable_lifecycle_monitoring")&&TE()!==0,BSs=g.EH("web_enable_lifecycle_monitoring");lT1.prototype.cancel=function(){for(var n=g.S(this.X),q=n.next();!q.done;q=n.next())q=q.value,q.jobId===void 0||q.Tm||this.scheduler.gT(q.jobId),q.Tm=!0;this.W.resolve()};g.W=Bh.prototype;g.W.install=function(n){this.plugins.push(n);return this}; g.W.uninstall=function(){var n=this;g.Fm.apply(0,arguments).forEach(function(q){q=n.plugins.indexOf(q);q>-1&&n.plugins.splice(q,1)})}; g.W.transition=function(n,q){var M=this;ua&&vdU(this.state);var t=this.transitions.find(function(Y){return Array.isArray(Y.from)?Y.from.find(function(G){return G===M.state&&Y.to===n}):Y.from===M.state&&Y.to===n}); if(t){this.W&&(UwU(this.W),this.W=void 0);Dwk(this,n,q);this.state=n;ua&&la(this.state);t=t.action.bind(this);var c=this.plugins.filter(function(Y){return Y[n]}).map(function(Y){return Y[n]}); t(uak(this,c),q)}else throw Error("no transition specified from "+this.state+" to "+n);}; g.W.Jek=function(n){var q=g.Fm.apply(1,arguments);g.CL();for(var M=g.S(n),t=M.next(),c={};!t.done;c={On:void 0},t=M.next())c.On=t.value,Mwm(function(Y){return function(){AY(Y.On.name);$H(function(){return Y.On.callback.apply(Y.On,g.EJ(q))}); mH(Y.On.name)}}(c))}; g.W.wIk=function(n){var q=g.Fm.apply(1,arguments),M,t,c,Y;return g.u(function(G){G.X==1&&(g.CL(),M=g.S(n),t=M.next(),c={});if(G.X!=3){if(t.done)return G.Fy(0);c.Jv=t.value;c.x3=void 0;Y=function(k){return function(){AY(k.Jv.name);var b=$H(function(){return k.Jv.callback.apply(k.Jv,g.EJ(q))}); $h(b)?k.x3=g.EH("web_lifecycle_error_handling_killswitch")?b.then(function(){mH(k.Jv.name)}):b.then(function(){mH(k.Jv.name)},function(d){TSJ(d); mH(k.Jv.name)}):mH(k.Jv.name)}}(c); Mwm(Y);return c.x3?g.U(G,c.x3,3):G.Fy(3)}c={Jv:void 0,x3:void 0};t=M.next();return G.Fy(2)})}; g.W.PK=function(n){var q=g.Fm.apply(1,arguments),M=this,t=n.map(function(c){return{KB:function(){AY(c.name);$H(function(){return c.callback.apply(c,g.EJ(q))}); mH(c.name)}, priority:Dd(M,c)}}); t.length&&(this.W=new lT1(t))}; g.Ys.Object.defineProperties(Bh.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Zd;g.y(Fv,Bh);Fv.prototype.S=function(n,q){var M=this;this.X=g.JJ(0,function(){M.currentState==="application_navigating"&&M.transition("none")},5E3); n(q==null?void 0:q.event)}; Fv.prototype.C=function(n,q){this.X&&(g.$D.gT(this.X),this.X=null);n(q==null?void 0:q.event)};var No=[];g.nQ("yt.logging.transport.getScrapedGelPayloads",function(){return No});ar.prototype.storePayload=function(n,q){n=Rr(n);this.store[n]?this.store[n].push(q):(this.W={},this.store[n]=[q]);this.X++;g.EH("more_accurate_gel_parser")&&(q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(q));return n}; ar.prototype.smartExtractMatchingEntries=function(n){if(!n.keys.length)return[];for(var q=wB(this,n.keys.splice(0,1)[0]),M=[],t=0;t=0){t=!1;break a}}t=!0}t&&(q=Uy(q))&&this.JD(q)}}; g.W.cX=function(n){return n}; g.W.onTouchStart=function(n){this.wJ.onTouchStart(n)}; g.W.onTouchMove=function(n){this.wJ.onTouchMove(n)}; g.W.onTouchEnd=function(n){if(this.wJ)this.wJ.onTouchEnd(n)}; g.W.JD=function(n){this.layoutId?this.Nm.executeCommand(n,this.layoutId):(n=new g.aE("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Ly(n))}; g.W.createServerVe=function(n,q){this.api.createServerVe(n,this);this.api.setTrackingParams(n,q)}; g.W.logVisibility=function(n,q){this.api.hasVe(n)&&this.api.logVisibility(n,q,this.interactionLoggingClientData)}; g.W.ut=function(){this.clear(null);this.AQ(this.Ux);for(var n=g.S(this.jX),q=n.next();!q.done;q=n.next())this.AQ(q.value);g.G2.prototype.ut.call(this)};g.y(v4,K$); v4.prototype.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);this.X=q;if(q.text==null&&q.icon==null)g.PJ(Error("ButtonRenderer did not have text or an icon set."));else{switch(q.style||null){case "STYLE_UNKNOWN":n="ytp-ad-button-link";break;default:n=null}n!=null&&g.MN(this.element,n);q.text!=null&&(n=g.b8(q.text),g.UC(n)||(this.element.setAttribute("aria-label",n),this.Z=new g.G2({j:"span",Y:"ytp-ad-button-text",Wb:n}),g.Z(this,this.Z),this.Z.dJ(this.element)));q.accessibilityData&&q.accessibilityData.accessibilityData&& q.accessibilityData.accessibilityData.label&&!g.UC(q.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",q.accessibilityData.accessibilityData.label);q.icon!=null&&(q=P4(q.icon,this.J),q!=null&&(this.W=new g.G2({j:"span",Y:"ytp-ad-button-icon",L:[q]}),g.Z(this,this.W)),this.S?yf(this.element,this.W.element,0):this.W.dJ(this.element))}}; v4.prototype.clear=function(){this.hide()}; v4.prototype.onClick=function(n){K$.prototype.onClick.call(this,n);n=g.S(AJ_(this));for(var q=n.next();!q.done;q=n.next())q=q.value,this.layoutId?this.Nm.executeCommand(q,this.layoutId):g.Ly(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.y(T2,g.F);T2.prototype.ut=function(){this.W&&g.y9(this.W);this.X.clear();l8=null;g.F.prototype.ut.call(this)}; T2.prototype.register=function(n,q){q&&this.X.set(n,q)}; var l8=null;g.y(B4,K$); B4.prototype.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);n=q.hoverText||null;q=q.button&&g.R(q.button,g.N_)||null;q==null?g.Ly(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new v4(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,void 0,void 0,void 0,void 0,this.Z),g.Z(this,this.button),this.button.init(n$("button"),q,this.macros),n&&this.button.element.setAttribute("aria-label",g.b8(n)),this.button.dJ(this.element),this.U&&!g.qN(this.button.element, "ytp-ad-clickable")&&g.MN(this.button.element,"ytp-ad-clickable"),this.Z&&g.MN(this.button.element,"ytp-ad-hover-text-button--clean-player"),n&&(this.W=new g.G2({j:"div",Y:"ytp-ad-hover-text-container"}),this.S&&(q=new g.G2({j:"div",Y:"ytp-ad-hover-text-callout"}),q.dJ(this.W.element),g.Z(this,q)),g.Z(this,this.W),this.W.dJ(this.element),q=Um(n),yf(this.W.element,q,0)),this.show())}; B4.prototype.hide=function(){this.button&&this.button.hide();this.W&&this.W.hide();K$.prototype.hide.call(this)}; B4.prototype.show=function(){this.button&&this.button.show();K$.prototype.show.call(this)};g.y(Aa,K$); Aa.prototype.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);M=(n=q.thumbnail)&&DX(n)||"";g.UC(M)?Math.random()<.01&&g.PJ(Error("Found AdImage without valid image URL")):(this.X?g.wK(this.element,"backgroundImage","url("+M+")"):bP(this.element,{src:M}),bP(this.element,{alt:n&&n.accessibility&&n.accessibility.label||""}),q&&q.adRendererCommands&&q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Aa.prototype.clear=function(){this.hide()};g.y(my,K$);g.W=my.prototype;g.W.hide=function(){K$.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.W.show=function(){this.Z=document.activeElement;K$.prototype.show.call(this);this.J.focus()}; g.W.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);this.W=q;q.dialogMessages||q.title!=null?q.confirmLabel==null?g.Ly(Error("ConfirmDialogRenderer.confirmLabel was not set.")):q.cancelLabel==null?g.Ly(Error("ConfirmDialogRenderer.cancelLabel was not set.")):ZLd(this,q):g.Ly(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.W.clear=function(){g.fL(this.X);this.hide()}; g.W.AZ=function(){this.hide()}; g.W.cC=function(){var n=this.W.cancelEndpoint;n&&(this.layoutId?this.Nm.executeCommand(n,this.layoutId):g.Ly(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.W.Cj=function(){var n=this.W.confirmNavigationEndpoint||this.W.confirmEndpoint;n&&(this.layoutId?this.Nm.executeCommand(n,this.layoutId):g.Ly(Error("Missing layoutId for confirm dialog.")));this.hide()};g.y($R,K$);g.W=$R.prototype; g.W.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);this.Z=q;if(q.defaultText==null&&q.defaultIcon==null)g.Ly(Error("ToggleButtonRenderer must have either text or icon set."));else if(q.defaultIcon==null&&q.toggledIcon!=null)g.Ly(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(q.style){switch(q.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":n="ytp-ad-toggle-button-default-style";break;default:n=null}n!=null&&g.MN(this.J,n)}n={};q.defaultText? (M=g.b8(q.defaultText),g.UC(M)||(n.buttonText=M,this.api.T().experiments.Hb("a11y_h5_associate_survey_question")||this.X.setAttribute("aria-label",M),this.api.T().experiments.Hb("fix_h5_toggle_button_a11y")&&this.W.setAttribute("aria-label",M))):g.iE(this.IL,!1);q.defaultTooltip&&(n.tooltipText=q.defaultTooltip,this.X.hasAttribute("aria-label")||this.W.setAttribute("aria-label",q.defaultTooltip));q.defaultIcon?(M=P4(q.defaultIcon),this.updateValue("untoggledIconTemplateSpec",M),q.toggledIcon?(this.RL= !0,M=P4(q.toggledIcon),this.updateValue("toggledIconTemplateSpec",M)):(g.iE(this.U,!0),g.iE(this.S,!1)),g.iE(this.X,!1)):g.iE(this.W,!1);g.g0(n)||this.update(n);q.isToggled&&(g.MN(this.J,"ytp-ad-toggle-button-toggled"),this.toggleButton(q.isToggled));Fx(this);this.V(this.element,"change",this.Ze);this.show()}}; g.W.onClick=function(n){this.jX.length>0&&(this.toggleButton(!this.isToggled()),this.Ze());K$.prototype.onClick.call(this,n)}; g.W.Ze=function(){g.Yi(this.J,"ytp-ad-toggle-button-toggled",this.isToggled());for(var n=g.S(a1k(this,this.isToggled())),q=n.next();!q.done;q=n.next())q=q.value,this.layoutId?this.Nm.executeCommand(q,this.layoutId):g.Ly(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Fx(this)}; g.W.clear=function(){this.hide()}; g.W.toggleButton=function(n){g.Yi(this.J,"ytp-ad-toggle-button-toggled",n);this.X.checked=n;Fx(this)}; g.W.isToggled=function(){return this.X.checked};g.y(ZX,So);ZX.prototype.S=function(n){if(Array.isArray(n)){n=g.S(n);for(var q=n.next();!q.done;q=n.next())q=q.value,q instanceof Rl_&&this.Z(q)}};g.y(az,K$);g.W=az.prototype;g.W.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);q.reasons?q.confirmLabel==null?g.Ly(Error("AdFeedbackRenderer.confirmLabel was not set.")):(q.cancelLabel==null&&g.PJ(Error("AdFeedbackRenderer.cancelLabel was not set.")),q.title==null&&g.PJ(Error("AdFeedbackRenderer.title was not set.")),JJs(this,q)):g.Ly(Error("AdFeedbackRenderer.reasons were not set."))}; g.W.clear=function(){sg(this.S);sg(this.U);this.J.length=0;this.hide()}; g.W.hide=function(){this.X&&this.X.hide();this.W&&this.W.hide();K$.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.W.show=function(){this.X&&this.X.show();this.W&&this.W.show();this.Z=document.activeElement;K$.prototype.show.call(this);this.S.focus()}; g.W.UP=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.W.kUE=function(){this.hide()}; Rz.prototype.ji=function(){return this.X.element}; Rz.prototype.getCommand=function(){return this.W}; Rz.prototype.isChecked=function(){return this.Z.checked};g.y(oz,my);oz.prototype.AZ=function(n){my.prototype.AZ.call(this,n);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; oz.prototype.cC=function(n){my.prototype.cC.call(this,n);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; oz.prototype.Cj=function(n){my.prototype.Cj.call(this,n);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.y(wW,K$);g.W=wW.prototype; g.W.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);this.S=q;if(q.dialogMessage==null&&q.title==null)g.Ly(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{q.confirmLabel==null&&g.PJ(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(n=q.closeOverlayRenderer&&g.R(q.closeOverlayRenderer,g.N_)||null)this.X=new v4(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.Z(this,this.X),this.X.init(n$("button"),n,this.macros),this.X.dJ(this.element);q.title&&(n=g.b8(q.title),this.updateValue("title",n));if(q.adReasons)for(n=q.adReasons,M=0;M=this.SX?(this.RL.hide(),this.AE=!0,this.publish("i")):this.Z&&this.Z.isTemplated()&&(n=Math.max(0,Math.ceil((this.SX-n)/1E3)),n!=this.Yl&&(VX(this.Z,{TIME_REMAINING:String(n)}),this.Yl=n)))}};g.y(qZ,C$);g.W=qZ.prototype; g.W.init=function(n,q,M){C$.prototype.init.call(this,n,q,M);if(q.image&&q.image.thumbnail)if(q.headline)if(q.description)if((n=q.actionButton&&g.R(q.actionButton,g.N_))&&n.navigationEndpoint){var t=this.api.getVideoData(2);if(t!=null)if(q.image&&q.image.thumbnail){var c=q.image.thumbnail.thumbnails;c!=null&&c.length>0&&g.UC(g.Up(c[0].url))&&(c[0].url=t.profilePicture)}else g.PJ(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Z.init(n$("ad-image"),q.image,M);this.S.init(n$("ad-text"), q.headline,M);this.J.init(n$("ad-text"),q.description,M);this.W.init(n$("button"),n,M);M=oD(this.W.element);RD(this.W.element,M+" This link opens in new tab");this.RL=n.navigationEndpoint;this.api.Kp()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.Jl.bind(this));this.IL=q.startMs||0;rW(this)}else g.Ly(Error("FlyoutCtaRenderer has no valid action button."));else g.Ly(Error("FlyoutCtaRenderer has no description AdText."));else g.Ly(Error("FlyoutCtaRenderer has no headline AdText.")); else g.PJ(Error("FlyoutCtaRenderer has no image."))}; g.W.onClick=function(n){C$.prototype.onClick.call(this,n);this.api.pauseVideo();!g.XL(this.W.element,n.target)&&this.RL&&(this.layoutId?this.Nm.executeCommand(this.RL,this.layoutId):g.Ly(Error("Missing layoutId for flyout cta.")))}; g.W.EQ=function(){if(this.X){var n=this.X.getProgressState();(n&&n.current||this.SX)&&1E3*n.current>=this.IL&&(xR(this),g.ts(this.element,"ytp-flyout-cta-inactive"),this.W.element.removeAttribute("tabIndex"))}}; g.W.Ew=function(){this.clear()}; g.W.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Jl.bind(this))}; g.W.show=function(){this.W&&this.W.show();C$.prototype.show.call(this)}; g.W.hide=function(){this.W&&this.W.hide();C$.prototype.hide.call(this)}; g.W.Jl=function(n){n=="hidden"?this.show():this.hide()};g.y(MZ,K$);g.W=MZ.prototype; g.W.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);this.X=q;if(this.X.rectangle)for(n=this.X.likeButton&&g.R(this.X.likeButton,SQ),q=this.X.dislikeButton&&g.R(this.X.dislikeButton,SQ),this.Z.init(n$("toggle-button"),n,M),this.W.init(n$("toggle-button"),q,M),this.V(this.element,"change",this.p5),this.J.show(100),this.show(),M=g.S(this.X&&this.X.impressionCommands||[]),n=M.next();!n.done;n=M.next())n=n.value,this.layoutId?this.Nm.executeCommand(n,this.layoutId):g.Ly(Error("Missing layoutId for instream user sentiment."))}; g.W.clear=function(){this.hide()}; g.W.hide=function(){this.Z.hide();this.W.hide();K$.prototype.hide.call(this)}; g.W.show=function(){this.Z.show();this.W.show();K$.prototype.show.call(this)}; g.W.p5=function(){f8j(this.element,"ytp-ad-instream-user-sentiment-selected");this.X.postMessageAction&&this.api.Km("onYtShowToast",this.X.postMessageAction);this.J.hide()}; g.W.onClick=function(n){this.jX.length>0&&this.p5();K$.prototype.onClick.call(this,n)};g.y(iU,g.F);g.W=iU.prototype;g.W.ut=function(){this.reset();g.F.prototype.ut.call(this)}; g.W.reset=function(){g.fL(this.J);this.C=!1;this.X&&this.X.stop();this.S.stop();this.Z&&(this.Z=!1,this.N.play())}; g.W.start=function(){this.reset();this.J.V(this.W,"mouseover",this.Fs,this);this.J.V(this.W,"mouseout",this.I5,this);this.xl&&(this.J.V(this.W,"focusin",this.Fs,this),this.J.V(this.W,"focusout",this.I5,this));this.X?this.X.start():(this.C=this.Z=!0,g.wK(this.W,{opacity:this.U}))}; g.W.Fs=function(){this.Z&&(this.Z=!1,this.N.play());this.S.stop();this.X&&this.X.stop()}; g.W.I5=function(){this.C?this.S.start():this.X&&this.X.start()}; g.W.Gw=function(){this.Z||(this.Z=!0,this.B.play(),this.C=!0)};var cxu=[new tB("b.f_",!1,0),new tB("j.s_",!1,2),new tB("r.s_",!1,4),new tB("e.h_",!1,6),new tB("i.s_",!0,8),new tB("s.t_",!1,10),new tB("p.h_",!1,12),new tB("s.i_",!1,14),new tB("f.i_",!1,16),new tB("a.b_",!1,18),new tB("a.o_",!1),new tB("g.o_",!1,22),new tB("p.i_",!1,24),new tB("p.m_",!1),new tB("n.k_",!0,20),new tB("i.f_",!1),new tB("a.s_",!0),new tB("m.c_",!1),new tB("n.h_",!1,26),new tB("o.p_",!1),new tB("m.p_",!0,28),new tB("o.a_",!1),new tB("d.p_",!1),new tB("e.i_",!1)].reduce(function(n,q){n[q.W]= q;return n},{});g.y(NZ,C$);g.W=NZ.prototype; g.W.init=function(n,q,M){C$.prototype.init.call(this,n,q,M);this.RL=q;(this.IL=GYs(this))&&g.PJ(Error("hasAdControlInClickCommands_ is true."));if(!q||g.g0(q))g.Ly(Error("SkipButtonRenderer was not specified or empty."));else if(!q.message||g.g0(q.message))g.Ly(Error("SkipButtonRenderer.message was not specified or empty."));else if(n=this.S?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},q=P4(n),q==null?g.Ly(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+n.iconType+".")): (this.api.T().D("disable_touch_events_on_skip_button")&&(q.K=Object.assign({},q.K,{"aria-hidden":"true",DHm:"false"})),this.Z=new g.G2({j:"button",aL:[this.S?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],L:[{j:"span",Y:this.S?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",L:[q]}]}),g.Z(this,this.Z),this.Z.dJ(this.J.element),this.W=new Ja(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,"ytp-ad-skip-button-text"),this.S&&this.W.element.classList.add("ytp-ad-skip-button-text-centered"), this.W.init(n$("ad-text"),this.RL.message,M),g.Z(this,this.W),yf(this.Z.element,this.W.element,0)),!this.api.T().D("disable_touch_events_on_skip_button")){var t=t===void 0?null:t;M=this.api.T();!(this.jX.length>0)&&M.W&&(qU?0:"ontouchstart"in document.documentElement&&(QGd()||KH()))&&(this.AQ(this.Ux),t&&this.AQ(t),this.jX=[this.V(this.element,"touchstart",this.onTouchStart,this),this.V(this.element,"touchmove",this.onTouchMove,this),this.V(this.element,"touchend",this.onTouchEnd,this)])}}; g.W.clear=function(){this.SX.reset();this.hide()}; g.W.hide=function(){this.J.hide();this.W&&this.W.hide();xR(this);C$.prototype.hide.call(this)}; g.W.onClick=function(n){if(this.Z!=null){if(n){var q=n||window.event;q.returnValue=!1;q.preventDefault&&q.preventDefault()}var M;if(iMf(n,{contentCpn:((M=this.api.getVideoData(1))==null?void 0:M.clientPlaybackNonce)||""})===0)this.api.Km("onAbnormalityDetected");else if(C$.prototype.onClick.call(this,n),this.publish("j"),this.api.Km("onAdSkip"),this.AE||!this.IL)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.W.cX=function(n){if(!this.AE)return this.IL&&Kz("SkipButton click commands not pruned while ALC exist"),n;var q,M=(q=g.R(n,g.Ov))==null?void 0:q.commands;if(!M)return n;n=[];for(q=0;q=this.S&&Ku1(this,!0)};g.y(e3,v4);e3.prototype.init=function(n,q,M){v4.prototype.init.call(this,n,q,M);n=!1;q.text!=null&&(n=g.b8(q.text),n=!g.UC(n));n?q.navigationEndpoint==null?g.PJ(Error("No visit advertiser clickthrough provided in renderer,")):q.style!=="STYLE_UNKNOWN"?g.PJ(Error("Button style was not a link-style type in renderer,")):this.show():g.PJ(Error("No visit advertiser text was present in the renderer."))};g.y(Ev,K$); Ev.prototype.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);n=q.text;g.UC(kR(n))?g.PJ(Error("SimpleAdBadgeRenderer has invalid or empty text")):(n&&n.text&&(q=n.text,this.Z&&!this.W&&(q=this.api.T(),q=n.text+" "+(q&&q.W?"\u2022":"\u00b7")),q={text:q,isTemplated:n.isTemplated},n.style&&(q.style=n.style),n.targetId&&(q.targetId=n.targetId),n=new Ja(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),n.init(n$("simple-ad-badge"),q,M),n.dJ(this.element),g.Z(this,n)),this.show())}; Ev.prototype.clear=function(){this.hide()};g.y(hB,qB);g.y(WD,g.MB);g.W=WD.prototype;g.W.S3=function(){return this.durationMs}; g.W.stop=function(){this.X&&this.handler.AQ(this.X)}; g.W.Oq=function(n){this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:n.current};this.publish("h")}; g.W.getProgressState=function(){return this.W}; g.W.Ir=function(n){g.dU(n,2)&&this.publish("g")};g.y(yQ,g.MB);g.W=yQ.prototype;g.W.S3=function(){return this.durationMs}; g.W.start=function(){this.X||(this.X=!0,this.timer.start())}; g.W.stop=function(){this.X&&(this.X=!1,this.timer.stop())}; g.W.Oq=function(){this.I9+=100;var n=!1;this.I9>this.durationMs&&(this.I9=this.durationMs,this.timer.stop(),n=!0);this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.I9/1E3};this.publish("h");n&&this.publish("g")}; g.W.getProgressState=function(){return this.W};g.y(S3,C$);g.W=S3.prototype;g.W.init=function(n,q,M){C$.prototype.init.call(this,n,q,M);var t;if(q==null?0:(t=q.templatedCountdown)==null?0:t.templatedAdText){n=q.templatedCountdown.templatedAdText;if(!n.isTemplated){g.PJ(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.W=new Ja(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);this.W.init(n$("ad-text"),n,{});this.W.dJ(this.element);g.Z(this,this.W)}this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){xR(this);C$.prototype.hide.call(this)}; g.W.Ew=function(){this.hide()}; g.W.EQ=function(){if(this.X!=null){var n=this.X.getProgressState();if(n!=null&&n.current!=null&&this.W){var q=this.X instanceof WD?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:n.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.X instanceof yQ?n.seekableEnd:this.api.getDuration(2,!1);n=n.current;var M,t,c=((M=this.api.getVideoData())==null?0:(t=M.oI)==null?0:t.call(M))?Math.max(q-n,0):q-n;VX(this.W,{FORMATTED_AD_DURATION_REMAINING:String(g.XB(c)), TIME_REMAINING:String(Math.ceil(c))})}}}; g.W.show=function(){rW(this);C$.prototype.show.call(this)};g.y(IM,Ja);IM.prototype.onClick=function(n){Ja.prototype.onClick.call(this,n);this.api.onAdUxClicked(this.componentType)};g.y(HD,K$);HD.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});if(n=q.content){g.jO(this.element,n);var M,t;q=((M=q.interaction)==null?void 0:(t=M.accessibility)==null?void 0:t.label)||n;this.element.setAttribute("aria-label",q)}else g.Ly(Error("AdSimpleAttributedString does not have text content"))}; HD.prototype.clear=function(){this.hide()}; HD.prototype.onClick=function(n){K$.prototype.onClick.call(this,n)};g.y(Lz,K$); Lz.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});(n=q.label)&&n.content&&!g.UC(n.content)?(this.adBadgeText.init(n$("ad-simple-attributed-string"),new fz(n)),(q=q.adPodIndex)&&q.content&&!g.UC(q.content)&&(this.X=new HD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),this.X.dJ(this.element),g.Z(this,this.X),this.X.element.classList.add("ytp-ad-badge__pod-index"),this.X.init(n$("ad-simple-attributed-string"),new fz(q))),this.element.classList.add(this.W?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Ly(Error("No label is returned in AdBadgeViewModel."))}; Lz.prototype.show=function(){this.adBadgeText.show();var n;(n=this.X)==null||n.show();K$.prototype.show.call(this)}; Lz.prototype.hide=function(){this.adBadgeText.hide();var n;(n=this.X)==null||n.hide();K$.prototype.hide.call(this)};g.y(PD,K$);PD.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});(n=q.adPodIndex)&&n.content&&!g.UC(n.content)&&(this.X=new HD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),this.X.dJ(this.element),g.Z(this,this.X),this.X.init(n$("ad-simple-attributed-string"),new fz(n)),q.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; PD.prototype.show=function(){var n;(n=this.X)==null||n.show();K$.prototype.show.call(this)}; PD.prototype.hide=function(){var n;(n=this.X)==null||n.hide();K$.prototype.hide.call(this)};g.y(vD,K$); vD.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});if(q!=null&&q.text){var M;if(((M=q.text)==null?0:M.content)&&!g.UC(q.text.content)){this.X=new g.G2({j:"div",Y:"ytp-ad-disclosure-banner__text",Wb:q.text.content});g.Z(this,this.X);this.X.dJ(this.element);var t,c;n=((t=q.interaction)==null?void 0:(c=t.accessibility)==null?void 0:c.label)||q.text.content;this.element.setAttribute("aria-label",n);var Y;if((Y=q.interaction)==null?0:Y.onTap)this.W=new g.G2({j:"div",Y:"ytp-ad-disclosure-banner__chevron",L:[g.gW()]}), g.Z(this,this.W),this.W.dJ(this.element),this.api.T().D("enable_ad_disclosure_banner_a11y_fix")&&(ZD(this.element),this.element.setAttribute("tabindex","0"));this.show()}}else g.Ly(Error("No banner text found in AdDisclosureBanner."))}; vD.prototype.clear=function(){this.hide()};g.y(Uv,g.G2);Uv.prototype.Oq=function(){var n=this.W.getProgressState(),q=n.seekableEnd;this.api.getPresentingPlayerType()===2&&(q=this.Z?this.Z/1E3:n.seekableEnd);this.progressBar.style.width=lU(new Tt(n.seekableStart,q),n.current,0)*100+"%"}; Uv.prototype.onStateChange=function(){g.d1(this.api.T())||(this.api.getPresentingPlayerType()===2?this.X===-1&&(this.show(),this.X=this.W.subscribe("h",this.Oq,this),this.Oq()):this.X!==-1&&(this.hide(),this.W.cH(this.X),this.X=-1))};g.y(uU,K$); uU.prototype.init=function(n,q,M,t){K$.prototype.init.call(this,n,q,M);if(q.skipOrPreviewRenderer){if(n=g.R(q.skipOrPreviewRenderer,A0))M=new gU(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.W,this.U),M.dJ(this.rJ),M.init(n$("skip-button"),n,this.macros),g.Z(this,M);if(n=g.R(q.skipOrPreviewRenderer,A0))var c=n.skipOffsetMilliseconds}q.brandInteractionRenderer&&(n=q.brandInteractionRenderer.brandInteractionRenderer,M=new MZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm), M.dJ(this.IL),M.init(n$("instream-user-sentiment"),n,this.macros),g.Z(this,M));if(n=g.R(q,kVO))if(n=g.R(n,kVO))M=new qZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.W,!!q.showWithoutLinkedMediaLayout),g.Z(this,M),M.dJ(this.S),M.init(n$("flyout-cta"),n,this.macros);t=t&&t.videoAdDurationSeconds;q.adBadgeRenderer&&(M=q.adBadgeRenderer,n=g.R(M,zQ),n!=null?(M=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,!1),g.Z(this,M),M.dJ(this.X),M.init(n$("ad-badge"), n,this.macros),this.Z=M.element):(n=M.simpleAdBadgeRenderer,n==null&&(n={text:{text:"Anuncio",isTemplated:!1}}),M=new Ev(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,!0),g.Z(this,M),M.dJ(this.X),M.init(n$("simple-ad-badge"),n,this.macros)));q.adPodIndex&&(n=g.R(q.adPodIndex,y2L),n!=null&&(M=new PD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,M),M.dJ(this.X),M.init(n$("ad-pod-index"),n)));q.adDurationRemaining&&!q.showWithoutLinkedMediaLayout&&(n=q.adDurationRemaining.adDurationRemainingRenderer, n==null&&(n={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),t=new S3(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.W,t,!1),g.Z(this,t),t.dJ(this.X),t.init(n$("ad-duration-remaining"),n,this.macros));q.adInfoRenderer&&(t=g.R(q.adInfoRenderer,bk))&&(n=new z2(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.element,void 0,!1),g.Z(this,n),this.Z!==null?this.X.insertBefore(n.element,this.Z.nextSibling):n.dJ(this.X), n.init(n$("ad-info-hover-text-button"),t,this.macros));q.visitAdvertiserRenderer&&(n=g.R(q.visitAdvertiserRenderer,g.N_))&&(M=Nzd(this)&&this.J?this.J:this.X)&&(t=new e3(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,t),t.dJ(M),t.init(n$("visit-advertiser"),n,this.macros),ZD(t.element),n=oD(t.element),RD(t.element,n+" This link opens in new tab"));!(t=this.api.T())||g.kl(t)||g.t8(t)||t.controlsType!="3"&&!t.disableOrganicUi||(c=new Uv(this.api,this.W,c,!1),c.dJ(this.SX), g.Z(this,c));q.adDisclosureBannerRenderer&&(q=g.R(q.adDisclosureBannerRenderer,WTO))&&(c=new vD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),c.dJ(this.RL),c.init(n$("ad-disclosure-banner"),q),g.Z(this,c));this.api.T().D("enable_updated_html5_player_focus_style")&&g.MN(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; uU.prototype.clear=function(){this.hide()};g.AB.prototype.flush=function(n,q){n=n===void 0?[]:n;q=q===void 0?!1:q;if(g.EH("enable_client_streamz_web")){n=g.S(n);for(var M=n.next();!M.done;M=n.next())M=VTj(M.value),this.X&&HW(M,kb,2,this.X),M={serializedIncrementBatch:g.Pn(M.Z())},g.tx("streamzIncremented",M,{sendIsolatedPayload:q})}}; g.y(gca,g.AB);var Cpu=new Map;mf.prototype.set=function(n,q,M){M=M!==void 0?Date.now()+M:void 0;this.X.set(n,q,M)}; mf.prototype.get=function(n){return this.X.get(n)}; mf.prototype.remove=function(n){this.X.remove(n)};var Ecu=null;var RM=null,oM=null,wU=null,X6u=null;g.nQ("yt.www.ads.eventcache.getLastCompanionData",function(){return RM}); g.nQ("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.nQ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return oM}); g.nQ("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return wU}); g.nQ("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return X6u});var Slu=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);zt.prototype.handleResponse=function(n,q){if(!q)throw Error("request needs to be passed into ConsistencyService");var M,t;q=((M=q.Ji.context)==null?void 0:(t=M.request)==null?void 0:t.consistencyTokenJars)||[];var c;(n=(c=n.responseContext)==null?void 0:c.consistencyTokenJar)&&this.replace(q,n)}; zt.prototype.replace=function(n,q){n=g.S(n);for(var M=n.next();!M.done;M=n.next())delete this.X[M.value.encryptedTokenJarContents];fgd(this,q)};var upw=window.location.hostname.split(".").slice(-2).join("."),lb;VQ.getInstance=function(){lb=g.qD("yt.clientLocationService.instance");lb||(lb=new VQ,g.nQ("yt.clientLocationService.instance",lb));return lb}; g.W=VQ.prototype; g.W.setLocationOnInnerTubeContext=function(n){n.client||(n.client={});if(this.X)n.client.locationInfo||(n.client.locationInfo={}),n.client.locationInfo.latitudeE7=Math.floor(this.X.coords.latitude*1E7),n.client.locationInfo.longitudeE7=Math.floor(this.X.coords.longitude*1E7),n.client.locationInfo.horizontalAccuracyMeters=Math.round(this.X.coords.accuracy),n.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Z||this.locationPlayabilityToken)n.client.locationPlayabilityToken=this.Z|| this.locationPlayabilityToken}; g.W.handleResponse=function(n){var q;n=(q=n.responseContext)==null?void 0:q.locationPlayabilityToken;n!==void 0&&(this.locationPlayabilityToken=n,this.X=void 0,g.RZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=JB(this))&&this.localStorage.set("yt-location-playability-token",n,15552E3):g.ll("YT_CL",JSON.stringify({loctok:n}),15552E3,upw,!0))}; g.W.clearLocationPlayabilityToken=function(n){n==="TVHTML5"?(this.localStorage=JB(this))&&this.localStorage.remove("yt-location-playability-token"):g.ul("YT_CL");this.Z=void 0;this.W!==-1&&(clearTimeout(this.W),this.W=-1)}; g.W.getCurrentPositionFromGeolocation=function(){var n=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var q=!1,M=1E4;g.RZ("INNERTUBE_CLIENT_NAME")==="MWEB"&&(q=!0,M=15E3);return new Promise(function(t,c){navigator.geolocation.getCurrentPosition(function(Y){n.X=Y;t(Y)},function(Y){c(Y)},{enableHighAccuracy:q, maximumAge:0,timeout:M})})}; g.W.createUnpluggedLocationInfo=function(n){var q={};n=n.coords;if(n==null?0:n.latitude)q.latitudeE7=Math.floor(n.latitude*1E7);if(n==null?0:n.longitude)q.longitudeE7=Math.floor(n.longitude*1E7);if(n==null?0:n.accuracy)q.locationRadiusMeters=Math.round(n.accuracy);return q}; g.W.createLocationInfo=function(n){var q={};n=n.coords;if(n==null?0:n.latitude)q.latitudeE7=Math.floor(n.latitude*1E7);if(n==null?0:n.longitude)q.longitudeE7=Math.floor(n.longitude*1E7);return q};g.W=Tzd.prototype;g.W.contains=function(n){return Object.prototype.hasOwnProperty.call(this.X,n)}; g.W.get=function(n){if(this.contains(n))return this.X[n]}; g.W.set=function(n,q){this.X[n]=q}; g.W.c$=function(){return Object.keys(this.X)}; g.W.remove=function(n){delete this.X[n]};rU.prototype.getModuleId=function(n){return n.serviceId.getModuleId()}; rU.prototype.get=function(n){a:{var q=this.mappings.get(n.toString());switch(q.type){case "mapping":n=q.value;break a;case "factory":q=q.value();this.mappings.set(n.toString(),{type:"mapping",value:q});n=q;break a;default:n=Nc(q)}}return n}; rU.prototype.registerService=function(n,q){this.mappings.set(n.toString(),{type:"mapping",value:q});return n}; new rU;var UV={},lgU=(UV.WEB_UNPLUGGED="^unplugged/",UV.WEB_UNPLUGGED_ONBOARDING="^unplugged/",UV.WEB_UNPLUGGED_OPS="^unplugged/",UV.WEB_UNPLUGGED_PUBLIC="^unplugged/",UV.WEB_CREATOR="^creator/",UV.WEB_KIDS="^kids/",UV.WEB_EXPERIMENTS="^experiments/",UV.WEB_MUSIC="^music/",UV.WEB_REMIX="^music/",UV.WEB_MUSIC_EMBEDDED_PLAYER="^music/",UV.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",UV);pz.prototype.S=function(n,q,M){q=q===void 0?{}:q;M=M===void 0?bx:M;var t={context:g.Cz(n.clickTrackingParams,!1,this.J)};var c=this.W(n);if(c){this.X(t,c,q);var Y;q=g.QQ(this.Z());(c=(Y=g.R(n.commandMetadata,g.jQ))==null?void 0:Y.apiUrl)&&(q=c);Y=gC_(Bk(q));n=Object.assign({},{command:n},void 0);t={input:Y,EY:D_(Y),Ji:t,config:n};t.config.XN?t.config.XN.identity=M:t.config.XN={identity:M};return t}M=new g.aE("Error: Failed to create Request from Command.",n);g.Ly(M)}; g.Ys.Object.defineProperties(pz.prototype,{J:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.y(nD,pz);g.y(qK,nD);qK.prototype.S=function(){return{input:"/getDatasyncIdsEndpoint",EY:D_("/getDatasyncIdsEndpoint","GET"),Ji:{}}}; qK.prototype.Z=function(){return[]}; qK.prototype.W=function(){}; qK.prototype.X=function(){};var BkF={},d2m=(BkF.GET_DATASYNC_IDS=xB(qK),BkF);var ub={},DvF=(ub["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",ub["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",ub["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",ub["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",ub["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",ub["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",ub["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", ub["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",ub["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",ub["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",ub["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",ub["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",ub["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",ub["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",ub["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", ub["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",ub["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",ub["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",ub["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",ub["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",ub["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",ub["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", ub["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",ub.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",ub["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",ub["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",ub["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",ub["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",ub["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",ub["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", ub["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",ub["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",ub["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",ub["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",ub["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",ub["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",ub["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",ub["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",ub["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",ub["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",ub.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",ub["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",ub["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",ub["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",ub["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",ub["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",ub["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",ub["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",ub["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",ub["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",ub["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",ub["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",ub["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",ub["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",ub["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",ub["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",ub["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",ub["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",ub["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",ub["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",ub["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",ub["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", ub["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",ub["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",ub["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",ub["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",ub["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",ub["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",ub["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",ub["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",ub["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", ub["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",ub["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",ub["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",ub["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",ub["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",ub["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",ub["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",ub["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", ub),Bu={},$Ha=(Bu.auto_search="LATENCY_ACTION_AUTO_SEARCH",Bu.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Bu.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Bu.app_startup="LATENCY_ACTION_APP_STARTUP",Bu.browse="LATENCY_ACTION_BROWSE",Bu.cast_splash="LATENCY_ACTION_CAST_SPLASH",Bu.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Bu.channels="LATENCY_ACTION_CHANNELS",Bu.chips="LATENCY_ACTION_CHIPS",Bu.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Bu.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Bu.editor="LATENCY_ACTION_EDITOR",Bu.embed="LATENCY_ACTION_EMBED",Bu.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Bu.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Bu.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Bu.explore="LATENCY_ACTION_EXPLORE",Bu.favorites="LATENCY_ACTION_FAVORITES",Bu.home="LATENCY_ACTION_HOME",Bu.inboarding="LATENCY_ACTION_INBOARDING",Bu.landing="LATENCY_ACTION_LANDING",Bu.learning="LATENCY_ACTION_LEARNING", Bu.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Bu.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Bu.library="LATENCY_ACTION_LIBRARY",Bu.live="LATENCY_ACTION_LIVE",Bu.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Bu.management="LATENCY_ACTION_MANAGEMENT",Bu.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Bu.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Bu.onboarding="LATENCY_ACTION_ONBOARDING",Bu.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", Bu.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Bu.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Bu.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Bu.prebuffer="LATENCY_ACTION_PREBUFFER",Bu.prefetch="LATENCY_ACTION_PREFETCH",Bu.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Bu.profile_switcher="LATENCY_ACTION_LOGIN",Bu.projects="LATENCY_ACTION_PROJECTS",Bu.reel_watch="LATENCY_ACTION_REEL_WATCH",Bu.results="LATENCY_ACTION_RESULTS",Bu.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", Bu.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Bu.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Bu.review="LATENCY_ACTION_REVIEW",Bu.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Bu.search_ui="LATENCY_ACTION_SEARCH_UI",Bu.search_suggest="LATENCY_ACTION_SUGGEST",Bu.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Bu.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Bu.seek="LATENCY_ACTION_PLAYER_SEEK",Bu.settings="LATENCY_ACTION_SETTINGS",Bu.store="LATENCY_ACTION_STORE", Bu.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Bu.tenx="LATENCY_ACTION_TENX",Bu.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Bu.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Bu.watch="LATENCY_ACTION_WATCH",Bu.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Bu["watch,watch7"]="LATENCY_ACTION_WATCH",Bu["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Bu["watch,watch7ad"]="LATENCY_ACTION_WATCH",Bu["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Bu.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", Bu.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Bu.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Bu.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Bu.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Bu.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Bu.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Bu.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Bu);Object.assign($Ha,DvF);g.y(bZ,dw);var p6u=new N2("aft-recorded",bZ);var Als=g.pa.ytLoggingGelSequenceIdObj_||{};g.nQ("ytLoggingGelSequenceIdObj_",Als);var Oq=g.pa.ytLoggingLatencyUsageStats_||{};g.nQ("ytLoggingLatencyUsageStats_",Oq);d5.prototype.tick=function(n,q,M,t){g5(this,"tick_"+n+"_"+q)||g.tx("latencyActionTicked",{tickName:n,clientActionNonce:q},{timestamp:M,cttAuthInfo:t})}; d5.prototype.info=function(n,q,M){var t=Object.keys(n).join("");g5(this,"info_"+t+"_"+q)||(n=Object.assign({},n),n.clientActionNonce=q,g.tx("latencyActionInfo",n,{cttAuthInfo:M}))}; d5.prototype.jspbInfo=function(n,q,M){for(var t="",c=0;c=c.length?(q.append(c),n-=c.length):n?(q.append(new Uint8Array(c.buffer,c.byteOffset,n)),M.append(new Uint8Array(c.buffer,c.byteOffset+n,c.length-n)),n=0):M.append(c);return{b5:q,vR:M}}; tN.prototype.isFocused=function(n){return n>=this.Z&&n=64&&(this.C.set(n.subarray(0,64-this.W),this.W),q=64-this.W,this.W=0,Mz_(this,this.C,0));for(;q+64<=M;q+=64)Mz_(this,n,q);q=this.start&&(n=2&&M.ssdaiAdsConfig&&Kz("Unexpected ad placement renderers length",n.slot,null,{length:t.length});var c;((c=M.adSlots)==null?0:c.some(function(Y){var G,k;return((G=g.R(Y,eB))==null?void 0:(k=G.adSlotMetadata)==null?void 0:k.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||t.some(function(Y){var G,k,b,d; return!!((G=Y.renderer)==null?0:(k=G.linearAdSequenceRenderer)==null?0:(b=k.linearAds)==null?0:b.length)||!((d=Y.renderer)==null||!d.instreamVideoAdRenderer)})||fNs(n)})}; x8.prototype.L0=function(){byd(this.X)};QS.prototype.lH=function(){var n=this;ksR(this.W,function(){var q=rN(n.slot.clientMetadata,"metadata_type_ad_break_request_data");return q.cueProcessedMs?n.X.get().fetch({AU:q.getAdBreakUrl,AS:new g.Ji(q.rA,q.lD),cueProcessedMs:q.cueProcessedMs}):n.X.get().fetch({AU:q.getAdBreakUrl,AS:new g.Ji(q.rA,q.lD)})})}; QS.prototype.L0=function(){byd(this.W)};pK.prototype.lH=function(){var n=this.slot.clientMetadata,q,M=(q=this.slot.fulfilledLayout)!=null?q:rN(n,"metadata_type_fulfilled_layout");RIu(this.callback,this.slot,M)}; pK.prototype.L0=function(){k8(this.callback,this.slot,new r("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")};qY.prototype.build=function(n,q){return q.fulfilledLayout||n5(q,{II:["metadata_type_fulfilled_layout"]})?new pK(n,q):this.Z(n,q)};g.y(MY,qY); MY.prototype.Z=function(n,q){if(n5(q,{II:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new x8(n,q,this.X,this.W,this.wO,this.Zk,this.Gs,this.gJ,this.I8);if(n5(q,{II:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new QS(n,q,this.X,this.W,this.wO,this.Zk);throw new r("Unsupported slot with type: "+q.slotType+" and client metadata: "+xg(q.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.y(i7,qY);i7.prototype.Z=function(n,q){throw new r("Unsupported slot with type: "+q.slotType+" and client metadata: "+xg(q.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.W=Hyk.prototype;g.W.s9=function(){return this.slot}; g.W.Pb=function(){return this.layout}; g.W.init=function(){}; g.W.release=function(){}; g.W.startRendering=function(n){if(n.layoutId!==this.layout.layoutId)this.callback.RQ(this.slot,n,new VM("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var q=rN(n.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.E9(this.slot,n),RP_(this.Z, this.slot,q)):Kz("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,n)}}; g.W.RI=function(n,q){n.layoutId!==this.layout.layoutId?this.callback.RQ(this.slot,n,new VM("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.zX(this.slot,n,q),Pom(this),v7k(this))};g.y(K5,g.MB);g.W=K5.prototype;g.W.s9=function(){return this.W.slot}; g.W.Pb=function(){return this.W.layout}; g.W.init=function(){this.Z.get().addListener(this)}; g.W.release=function(){this.Z.get().removeListener(this);this.dispose()}; g.W.x6=function(){}; g.W.QG=function(){}; g.W.vQ=function(){}; g.W.L2=function(){}; g.W.startRendering=function(n){var q=this;Gp(this.W,n,function(){return void q.HM()})}; g.W.HM=function(){this.Z.get().HM(this.X)}; g.W.RI=function(n,q){var M=this;Gp(this.W,n,function(){var t=M.Z.get();ass(t,M.X,3);M.X=[];M.callback.zX(M.slot,n,q)})}; g.W.ut=function(){this.Z.qm()||this.Z.get().removeListener(this);g.MB.prototype.ut.call(this)}; g.Ys.Object.defineProperties(K5.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.W.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.W.layout}}});Ex.prototype.bS=function(n,q){q=q===void 0?!1:q;var M=(this.Z.get(n)||[]).concat();if(q=q&&u_a(n)){var t=this.Z.get(q);t&&M.push.apply(M,g.EJ(t))}ym(this,n,M);this.X.add(n);q&&this.X.add(q)}; Ex.prototype.hq=function(n,q){q=q===void 0?!1:q;if(!this.X.has(n)){var M=q&&u_a(n);M&&(q=!this.X.has(M));this.bS(n,q)}};g.y(Aqs,qB);g.y(IS,K5);g.W=IS.prototype;g.W.IQ=function(n,q){NY("ads-engagement-panel-layout",n,this.C.get().w9,this.Gs.get(),this.J,this.S,this.s9(),this.Pb(),q)}; g.W.startRendering=function(n){b7(this.sx,this.s9(),this.Pb(),g.R(this.Pb().renderingContent,aF),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(q,M,t,c,Y){return new Aqs(q,M,t,c,Y)},this.X); K5.prototype.startRendering.call(this,n)}; g.W.E9=function(n,q){this.S===q.layoutId&&(this.J===null?this.J=this.Gs.get().jC():Kz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.zX=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.ut=function(){GG(this.cg(),this);K5.prototype.ut.call(this)};g.y($oa,qB);g.y(f5,K5);g.W=f5.prototype;g.W.IQ=function(n,q){NY("banner-image",n,this.C.get().w9,this.Gs.get(),this.J,this.S,this.s9(),this.Pb(),q)}; g.W.startRendering=function(n){b7(this.sx,this.s9(),this.Pb(),g.R(this.Pb().renderingContent,Fl),this.callback,"metadata_type_banner_image_layout_view_model",function(q,M,t,c,Y){return new $oa(q,M,t,c,Y)},this.X); K5.prototype.startRendering.call(this,n)}; g.W.E9=function(n,q){this.S===q.layoutId&&(this.J===null?this.J=this.Gs.get().jC():Kz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.zX=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.ut=function(){GG(this.cg(),this);K5.prototype.ut.call(this)};g.y(Hj,qB);g.y(L5,K5);g.W=L5.prototype;g.W.IQ=function(n,q){NY("action-companion",n,this.C.get().w9,this.Gs.get(),this.J,this.S,this.s9(),this.Pb(),q)}; g.W.startRendering=function(n){b7(this.sx,this.s9(),this.Pb(),g.R(this.Pb().renderingContent,AO),this.callback,"metadata_type_action_companion_ad_renderer",function(q,M,t,c,Y){return new Hj(q,M,t,c,Y)},this.X); K5.prototype.startRendering.call(this,n)}; g.W.E9=function(n,q){q.layoutId===this.layout.layoutId?this.sx.hq("impression"):this.S===q.layoutId&&(this.J===null?this.J=this.Gs.get().jC():Kz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.zX=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.ut=function(){GG(this.cg(),this);K5.prototype.ut.call(this)};g.y(aNd,qB);g.y(Pj,K5);g.W=Pj.prototype;g.W.IQ=function(n,q){NY("image-companion",n,this.C.get().w9,this.Gs.get(),this.J,this.S,this.s9(),this.Pb(),q)}; g.W.startRendering=function(n){b7(this.sx,this.s9(),this.Pb(),g.R(this.Pb().renderingContent,m1),this.callback,"metadata_type_image_companion_ad_renderer",function(q,M,t,c,Y){return new aNd(q,M,t,c,Y)},this.X); K5.prototype.startRendering.call(this,n)}; g.W.E9=function(n,q){q.layoutId===this.layout.layoutId?this.sx.hq("impression"):this.S===q.layoutId&&(this.J===null?this.J=this.Gs.get().jC():Kz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.zX=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.ut=function(){GG(this.cg(),this);K5.prototype.ut.call(this)};g.y(o7m,qB);g.y(vj,K5);g.W=vj.prototype;g.W.IQ=function(n,q){NY("shopping-companion",n,this.C.get().w9,this.Gs.get(),this.J,this.S,this.s9(),this.Pb(),q)}; g.W.startRendering=function(n){b7(this.sx,this.s9(),this.Pb(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(q,M,t,c,Y){return new o7m(q,M,t,c,Y)},this.X); K5.prototype.startRendering.call(this,n)}; g.W.E9=function(n,q){q.layoutId===this.layout.layoutId?this.sx.hq("impression"):this.S===q.layoutId&&(this.J===null?this.J=this.Gs.get().jC():Kz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.zX=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.ut=function(){GG(this.cg(),this);K5.prototype.ut.call(this)};g.y(l7,K5);g.W=l7.prototype;g.W.startRendering=function(n){b7(this.sx,this.s9(),this.Pb(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(q,M,t,c,Y){return new Hj(q,M,t,c,Y)},this.X); K5.prototype.startRendering.call(this,n)}; g.W.E9=function(){}; g.W.zX=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.ut=function(){GG(this.cg(),this);K5.prototype.ut.call(this)}; g.W.IQ=function(){};g.W=rqd.prototype;g.W.s9=function(){return this.slot}; g.W.Pb=function(){return this.layout}; g.W.init=function(){this.gJ.get().addListener(this);this.gJ.get().Rv.push(this);var n=rN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=rN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Ox(this.layout.Rm)&&qj(this.w7.get(),this.layout.layoutId,{WJ:q,XP:n,listener:this})}; g.W.release=function(){this.gJ.get().removeListener(this);A_T(this.gJ.get(),this);Ox(this.layout.Rm)&&Mj(this.w7.get(),this.layout.layoutId)}; g.W.startRendering=function(n){this.callback.E9(this.slot,n)}; g.W.RI=function(n,q){YJL(this.Zk.get())&&!this.X&&(this.sx.hq("abandon"),this.X=!0);this.callback.zX(this.slot,n,q)}; g.W.Os=function(n){switch(n.id){case "part2viewed":this.sx.hq("start");this.sx.hq("impression");break;case "videoplaytime25":this.sx.hq("first_quartile");break;case "videoplaytime50":this.sx.hq("midpoint");break;case "videoplaytime75":this.sx.hq("third_quartile");break;case "videoplaytime100":YJL(this.Zk.get())?this.X||(this.sx.hq("complete"),this.X=!0):this.sx.hq("complete");S9(this.sx)&&XE(this.sx,Infinity,!0);GUA(this.Zk.get())&&Tp(this.W,Infinity,!0);break;case "engagedview":S9(this.sx)||this.sx.hq("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Kz("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.W.onVolumeChange=function(){}; g.W.QH=function(){}; g.W.lS=function(){}; g.W.Nc=function(){}; g.W.onFullscreenToggled=function(){}; g.W.Vx=function(){}; g.W.Ye=function(){}; g.W.mw=function(n){GUA(this.Zk.get())&&Tp(this.W,n*1E3,!1);S9(this.sx)&&XE(this.sx,n*1E3,!1)}; g.W.h9=function(){}; g.W.ym=function(){this.sx.hq("active_view_measurable")}; g.W.Hr=function(){this.sx.hq("active_view_viewable")}; g.W.KF=function(){this.sx.hq("active_view_fully_viewable_audible_half_duration")}; g.W.Vm=function(){this.sx.hq("audio_measurable")}; g.W.sR=function(){this.sx.hq("audio_audible")};g.y(Ux,K5);g.W=Ux.prototype;g.W.init=function(){K5.prototype.init.call(this);var n=rN(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q={adsClientData:this.layout.Dn};this.X.push(new hB(n,this.layout.layoutId,rN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),q,!0))}; g.W.lT=function(){this.J||this.gJ.get().resumeVideo(1)}; g.W.startRendering=function(n){K5.prototype.startRendering.call(this,n);d_(this.gJ.get(),"ad-showing");this.callback.E9(this.slot,n);this.S.Ri=this}; g.W.RI=function(n,q){K5.prototype.RI.call(this,n,q);Nj(this.gJ.get(),"ad-showing");r_(this.S,this)}; g.W.IQ=function(n){switch(n){case "ad-info-icon-button":(this.J=this.gJ.get().b4(1))||this.gJ.get().pauseVideo();break;case "visit-advertiser":this.gJ.get().pauseVideo()}}; g.W.ut=function(){K5.prototype.ut.call(this)};g.y(u7,qB);g.y(Bj,K5);g.W=Bj.prototype;g.W.startRendering=function(n){b7(this.sx,this.s9(),this.Pb(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(q,M,t,c,Y){return new u7(q,M,t,c,Y)},this.X); K5.prototype.startRendering.call(this,n)}; g.W.E9=function(){}; g.W.zX=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.ut=function(){GG(this.cg(),this);K5.prototype.ut.call(this)}; g.W.IQ=function(){};g.y(D2,qB);g.y(A5,K5);A5.prototype.init=function(){K5.prototype.init.call(this);this.X.push(new D2(g.R(this.layout.renderingContent,tp),this.layout.layoutId,{adsClientData:this.layout.Dn}))}; A5.prototype.IQ=function(){GR(this.J.get(),this.S)&&dH(this.Gs.get(),3)}; A5.prototype.startRendering=function(n){K5.prototype.startRendering.call(this,n);this.callback.E9(this.slot,n)}; A5.prototype.ut=function(){K5.prototype.ut.call(this)};g.y(mz,qB);g.y($o,K5);$o.prototype.init=function(){K5.prototype.init.call(this);var n=g.R(this.layout.renderingContent,Qm)||rN(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),q=ko(this.sx);this.X.push(new mz(n,q,this.layout.layoutId,{adsClientData:this.layout.Dn},!0,!0))}; $o.prototype.startRendering=function(n){K5.prototype.startRendering.call(this,n);this.callback.E9(this.slot,n)}; $o.prototype.IQ=function(n,q){if(q===this.layout.layoutId)switch(n){case "skip-button":var M;(n=(M=rN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&n.aG(this.s9(),this.layout)}}; $o.prototype.ut=function(){K5.prototype.ut.call(this)};Z2.prototype.build=function(n,q,M,t){if(FE(t,{II:["metadata_type_ad_break_response_data"],UT:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Hyk(n,M,t,this.W,this.Z,this.X);throw new VM("Unsupported layout with type: "+t.layoutType+" and client metadata: "+xg(t.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.y(pJU,qB);g.y(aS,K5);g.W=aS.prototype;g.W.IQ=function(n,q){NY("ads-engagement-panel",n,this.C.get().w9,this.Gs.get(),this.J,this.S,this.s9(),this.Pb(),q)}; g.W.startRendering=function(n){b7(this.sx,this.s9(),this.Pb(),g.R(this.Pb().renderingContent,$m),this.callback,"metadata_type_ads_engagement_panel_renderer",function(q,M,t,c,Y){return new pJU(q,M,t,c,Y)},this.X); K5.prototype.startRendering.call(this,n)}; g.W.E9=function(n,q){q.layoutId===this.layout.layoutId?this.sx.hq("impression"):this.S===q.layoutId&&(this.J===null?this.J=this.Gs.get().jC():Kz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.zX=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.ut=function(){GG(this.cg(),this);K5.prototype.ut.call(this)};g.y(RS,K5);g.W=RS.prototype;g.W.IQ=function(n,q){NY("top-banner-image-text-icon-buttoned",n,this.C.get().w9,this.Gs.get(),this.J,this.S,this.s9(),this.Pb(),q)}; g.W.startRendering=function(n){b7(this.sx,this.s9(),this.Pb(),g.R(this.Pb().renderingContent,Zw),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(q,M,t,c,Y){return new u7(q,M,t,c,Y)},this.X); K5.prototype.startRendering.call(this,n)}; g.W.E9=function(n,q){this.S===q.layoutId&&(this.J===null?this.J=this.Gs.get().jC():Kz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.zX=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.ut=function(){GG(this.cg(),this);K5.prototype.ut.call(this)};Md1.prototype.build=function(n,q,M,t){if(FE(t,nRa())||g.R(t.renderingContent,$m)!==void 0)return new aS(n,M,t,this.XV,this.Gs,this.cg,this.w7,this.X);if(FE(t,ZyC())||g.R(t.renderingContent,AO)!==void 0)return new L5(n,M,t,this.XV,this.Gs,this.cg,this.w7,this.X);if(FE(t,Rvd())||g.R(t.renderingContent,m1)!==void 0)return new Pj(n,M,t,this.XV,this.Gs,this.cg,this.w7,this.X);if(FE(t,wJf()))return new vj(n,M,t,this.XV,this.Gs,this.cg,this.w7,this.X);if(FE(t,Co_()))return new l7(n,M,t,this.XV,this.Gs,this.cg, this.w7,this.X);if(FE(t,F9k())||g.R(t.renderingContent,Fl)!==void 0)return new f5(n,M,t,this.XV,this.Gs,this.cg,this.w7,this.X);if(FE(t,qm1())||g.R(t.renderingContent,Zw)!==void 0)return new RS(n,M,t,this.XV,this.Gs,this.cg,this.w7,this.X);if(FE(t,xoC()))return new Bj(n,M,t,this.XV,this.Gs,this.cg,this.w7,this.X);if(FE(t,moj())||g.R(t.renderingContent,aF)!==void 0)return new IS(n,M,t,this.XV,this.Gs,this.cg,this.w7,this.X);throw new VM("Unsupported layout with type: "+t.layoutType+" and client metadata: "+ xg(t.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};i$C.prototype.build=function(n,q,M,t){if(FE(t,{II:["metadata_type_linked_player_bytes_layout_id"],UT:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new A5(n,M,t,this.XV,this.Gs,this.X);throw new VM("Unsupported layout with type: "+t.layoutType+" and client metadata: "+xg(t.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.W=td1.prototype;g.W.s9=function(){return this.slot}; g.W.Pb=function(){return this.layout}; g.W.init=function(){}; g.W.release=function(){}; g.W.startRendering=function(n){n.layoutId!==this.layout.layoutId?this.callback.RQ(this.slot,n,new VM("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.E9(this.slot,n),this.sx.hq("impression"),jc(this.NW,n,"normal"))}; g.W.RI=function(n,q){n.layoutId!==this.layout.layoutId?this.callback.RQ(this.slot,n,new VM("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.zX(this.slot,n,q)};g.W=Ymj.prototype;g.W.s9=function(){return this.slot}; g.W.Pb=function(){return this.layout}; g.W.init=function(){}; g.W.release=function(){}; g.W.startRendering=function(n){n.layoutId!==this.layout.layoutId?this.callback.RQ(this.slot,n,new VM("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.E9(this.slot,n),this.sx.hq("impression"),jc(this.NW,n,"normal"))}; g.W.RI=function(n,q){n.layoutId!==this.layout.layoutId?this.callback.RQ(this.slot,n,new VM("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.zX(this.slot,n,q)};oS.prototype.build=function(n,q,M,t){if(!this.Zk.get().G.T().D("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(FE(t,caa()))return new td1(n,M,t,this.Gs,this.NW)}else if(FE(t,{II:[],UT:["LAYOUT_TYPE_FORECASTING"]}))return new Ymj(n,M,t,this.Gs,this.NW);throw new VM("Unsupported layout with type: "+t.layoutType+" and client metadata: "+xg(t.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.y(k2J,qB);g.y(wH,K5);g.W=wH.prototype;g.W.init=function(){K5.prototype.init.call(this);var n=g.R(this.layout.renderingContent,xo)||rN(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),q={adsClientData:this.layout.Dn};this.X.push(new k2J(n,rN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,q))}; g.W.lT=function(){this.J||this.gJ.get().resumeVideo(2)}; g.W.startRendering=function(n){K5.prototype.startRendering.call(this,n);this.callback.E9(this.slot,n);this.S.Ri=this}; g.W.RI=function(n,q){K5.prototype.RI.call(this,n,q);r_(this.S,this)}; g.W.IQ=function(n,q){if(!$8(this.Zk.get(),"stop_handling_click_for_non_rendering_overlay_layout")||q===this.layout.layoutId){if(GR(this.C.get(),this.N))switch(n){case "visit-advertiser-link":dH(this.Gs.get(),3)}switch(n){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.J||this.gJ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.J=this.gJ.get().b4(2))||this.gJ.get().pauseVideo();break; case "visit-advertiser-link":this.gJ.get().pauseVideo();b$j(this).w1();break;case "skip-button":if(n=b$j(this),this.layout.renderingContent&&!wN(this.layout.clientMetadata,"metadata_type_dai")||!n||!n.FF){var M;(n=(M=rN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&n.aG(this.s9(),this.layout)}else Kz("Requesting to skip by LegacyPlayerBytes when components enabled"),n.b6(this.s9(),this.layout)}}}; g.W.ut=function(){K5.prototype.ut.call(this)};g.y(zp,K5);g.W=zp.prototype;g.W.init=function(){K5.prototype.init.call(this);var n=g.R(this.layout.renderingContent,rH)||rN(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q={adsClientData:this.layout.Dn},M;(M=!!this.layout.renderingContent)||(M=J5(this),M=!(M&&M.FF));this.X.push(new hB(n,this.layout.layoutId,rN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),q,M))}; g.W.lT=function(){this.J||this.gJ.get().resumeVideo(2)}; g.W.startRendering=function(n){K5.prototype.startRendering.call(this,n);this.callback.E9(this.slot,n);this.S.Ri=this}; g.W.RI=function(n,q){K5.prototype.RI.call(this,n,q);r_(this.S,this)}; g.W.IQ=function(n,q){if(!this.Zk||!$8(this.Zk.get(),"stop_handling_click_for_non_rendering_overlay_layout")||q===this.layout.layoutId){if(GR(this.C.get(),this.N))switch(n){case "visit-advertiser":dH(this.Gs.get(),3)}switch(n){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.J||this.gJ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.J=this.gJ.get().b4(2))||this.gJ.get().pauseVideo();break; case "visit-advertiser":this.gJ.get().pauseVideo();J5(this).w1();break;case "skip-button":if(n=J5(this),this.layout.renderingContent&&!wN(this.layout.clientMetadata,"metadata_type_dai")||!n||!n.FF){var M;(n=(M=rN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&n.aG(this.s9(),this.layout)}else Kz("Requesting to skip by LegacyPlayerBytes"),n.b6(this.s9(),this.layout)}}}; g.W.ut=function(){K5.prototype.ut.call(this)};g.y(NWm,qB);g.y(Vm,K5);g.W=Vm.prototype;g.W.startRendering=function(n){var q=this;Gp(this.W,n,function(){q.X.push(new NWm(rN(q.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),n.layoutId,n.Dn));q.HM();q.callback.E9(q.slot,n);g.C(nc(q.gJ.get(),1),512)&&q.callback.RQ(q.s9(),q.Pb(),new VM("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.W.Ye=function(){}; g.W.Vx=function(n){if(n.state.isError()){var q;this.callback.RQ(this.s9(),this.Pb(),new VM("A player error happened during adNotify",{playerErrorCode:(q=n.state.Vr)==null?void 0:q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.W.onFullscreenToggled=function(){}; g.W.lS=function(){}; g.W.Nc=function(){}; g.W.QH=function(){}; g.W.onVolumeChange=function(){}; g.W.Os=function(){}; g.W.h9=function(){}; g.W.IQ=function(){};g.y(gRU,qB);g.y(C5,K5);C5.prototype.init=function(){K5.prototype.init.call(this);var n=g.R(this.layout.renderingContent,p5),q=ko(this.sx);this.X.push(new gRU(n,q,this.layout.layoutId,{adsClientData:this.layout.Dn}))}; C5.prototype.startRendering=function(n){K5.prototype.startRendering.call(this,n);this.callback.E9(this.slot,n)}; C5.prototype.IQ=function(n,q){if(q===this.layout.layoutId)switch(n){case "skip-button":var M;(n=(M=rN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&n.aG(this.s9(),this.layout)}}; C5.prototype.ut=function(){K5.prototype.ut.call(this)};en_.prototype.build=function(n,q,M,t){if(n=n8(n,M,t,this.XV,this.gJ,this.Gs,this.W,this.X,this.Zk))return n;throw new VM("Unsupported layout with type: "+t.layoutType+" and client metadata: "+xg(t.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.W=i_.prototype;g.W.s9=function(){return this.slot}; g.W.Pb=function(){return this.layout}; g.W.init=function(){this.gJ.get().addListener(this);this.gJ.get().Rv.push(this);if(this.layout.renderingContent){var n=this.Dk.get();n=Vg(n,1).Y_/1E3}else n=rN(this.layout.clientMetadata,"metadata_type_video_length_seconds");var q=g.R(this.layout.renderingContent,nw),M=q?gH(q.pings):rN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");q=q?UoR(q.pings):rN(this.layout.clientMetadata,"metadata_type_active_view_identifier");Ox(this.layout.Rm)&&qj(this.w7.get(),this.layout.layoutId, {WJ:M,XP:n,listener:this,qO:q})}; g.W.release=function(){this.gJ.get().removeListener(this);A_T(this.gJ.get(),this);Ox(this.layout.Rm)&&Mj(this.w7.get(),this.layout.layoutId)}; g.W.startRendering=function(n){this.callback.E9(this.slot,n)}; g.W.RI=function(n,q){tU(this,"abandon");this.callback.zX(this.slot,n,q)}; g.W.Os=function(n){switch(n.id){case "part2viewed":this.sx.hq("start");this.sx.hq("impression");break;case "videoplaytime25":this.sx.hq("first_quartile");break;case "videoplaytime50":this.sx.hq("midpoint");break;case "videoplaytime75":this.sx.hq("third_quartile");break;case "videoplaytime100":tU(this,"complete");S9(this.sx)&&XE(this.sx,Infinity,!0);break;case "engagedview":S9(this.sx)||this.sx.hq("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Kz("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.W.onVolumeChange=function(){}; g.W.QH=function(){}; g.W.lS=function(){}; g.W.Nc=function(){}; g.W.onFullscreenToggled=function(){}; g.W.Vx=function(n){this.X||(g.dU(n,4)&&!g.dU(n,2)?sx(this.sx,"pause"):bU(n,4)<0&&!(bU(n,2)<0)&&sx(this.sx,"resume"))}; g.W.Ye=function(){}; g.W.mw=function(n){S9(this.sx)&&XE(this.sx,n*1E3,!1)}; g.W.h9=function(){tU(this,"swipe")}; g.W.ym=function(){this.sx.hq("active_view_measurable")}; g.W.Hr=function(){this.sx.hq("active_view_viewable")}; g.W.KF=function(){this.sx.hq("active_view_fully_viewable_audible_half_duration")}; g.W.Vm=function(){this.sx.hq("audio_measurable")}; g.W.sR=function(){this.sx.hq("audio_audible")};ERC.prototype.build=function(n,q,M,t){if(M.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.R(t.renderingContent,nw)!==void 0)return new i_(n,M,t,this.gJ,this.Gs,this.Zk,this.w7,this.Dk);q=["metadata_type_ad_placement_config"];for(var c=g.S(h5()),Y=c.next();!Y.done;Y=c.next())q.push(Y.value);if(FE(t,{II:q,UT:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return M.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new i_(n,M,t,this.gJ,this.Gs,this.Zk,this.w7,this.Dk):new rqd(n,M,t,this.gJ,this.Gs, this.qP,this.Zk,this.w7);throw new VM("Unsupported layout with type: "+t.layoutType+" and client metadata: "+xg(t.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var K8={contentCpn:"",vW:new Map};H$m.prototype.Jq=function(n,q){var M={};q=Object.assign({},q,(M.cc=this.WI.AI(),M));this.WI.G.Xy(n,q)};var i0L,F8; i0L={C$x:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Xe1:"AUTHENTICATION_MALFORMED",RnE:"AUTHENTICATION_MISSING",Zit:"BAD_REQUEST",gml:"CAST_SESSION_DEVICE_MISMATCHED",afm:"CAST_SESSION_VIDEO_MISMATCHED",Ssb:"CAST_TOKEN_EXPIRED",znm:"CAST_TOKEN_FAILED",iit:"CAST_TOKEN_MALFORMED",Grk:"CGI_PARAMS_MALFORMED",nmy:"CGI_PARAMS_MISSING",UcE:"DEVICE_FALLBACK",Slg:"GENERIC_WITH_LINK_AND_CPN",z7X:"ERROR_HDCP",i1E:"LICENSE",nbt:"VIDEO_UNAVAILABLE",APl:"FORMAT_UNAVAILABLE",O1E:"GEO_FAILURE", cPs:"HTML5_AUDIO_RENDERER_ERROR",vbE:"GENERIC_WITHOUT_LINK",k$s:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Q2E:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",M_x:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",xSX:"HTML5_SPS_UMP_STATUS_REJECTED",F5E:"INVALID_DRM_MESSAGE",Qzk:"PURCHASE_NOT_FOUND",Md1:"PURCHASE_REFUNDED",fWg:"RENTAL_EXPIRED",Oxs:"RETRYABLE_ERROR",y4l:"SERVER_ERROR",vRx:"SIGNATURE_EXPIRED",Wjb:"STOPPED_BY_ANOTHER_PLAYBACK",ur1:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",ZRt:"STREAMING_NOT_ALLOWED", w$s:"STREAM_LICENSE_NOT_FOUND",aNb:"TOO_MANY_REQUESTS",Svb:"TOO_MANY_REQUESTS_WITH_LINK",z_m:"TOO_MANY_STREAMS_PER_ENTITLEMENT",iRb:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",HRJ:"VIDEO_FORBIDDEN",e_x:"VIDEO_NOT_FOUND",F4s:"BROWSER_OR_EXTENSION_ERROR"};F8={}; g.zK=(F8.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.",F8.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",F8.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", F8.LICENSE="Se produjo un error de licencia con este video.",F8.VIDEO_UNAVAILABLE="Video no disponible",F8.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",F8.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",F8.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",F8.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",F8.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",F8.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",F8.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",F8.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", F8.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",F8.PURCHASE_NOT_FOUND="Este es un video pagado.",F8.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",F8.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",F8.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",F8.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", F8.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",F8.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",F8.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",F8.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",F8.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",F8.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",F8.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",F8.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",F8.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", F8.TOO_MANY_REQUESTS="Accede para mirar el video.",F8.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",F8.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",F8.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",F8.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", F8.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",F8.VIDEO_NOT_FOUND="No se puede encontrar este video.",F8.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",F8);var t2O;var cSw=g.FV(),YPd=cSw.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!YPd||YPd.length<2)t2O=void 0;else{var GxQ=cSw.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);t2O=GxQ&&GxQ.length===6?Number(GxQ[5].replace("_",".")):0}var QJ=t2O,Zh=QJ>=0;g.y(g.f8,So);g.f8.prototype.V=function(n,q,M,t,c){return So.prototype.V.call(this,n,q,M,t,c)};var ZV={},aX=(ZV.FAIRPLAY="fairplay",ZV.PLAYREADY="playready",ZV.WIDEVINE="widevine",ZV.CLEARKEY=null,ZV.FLASHACCESS=null,ZV.UNKNOWN=null,ZV.WIDEVINE_CLASSIC=null,ZV);Ht.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var aY={},zF=(aY.WIDTH={name:"width",video:!0,valid:640,t_:99999},aY.HEIGHT={name:"height",video:!0,valid:360,t_:99999},aY.FRAMERATE={name:"framerate",video:!0,valid:30,t_:9999},aY.BITRATE={name:"bitrate",video:!0,valid:3E5,t_:2E9},aY.EOTF={name:"eotf",video:!0,valid:"bt709",t_:"catavision"},aY.CHANNELS={name:"channels",video:!1,valid:2,t_:99},aY.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",t_:"invalidformat"},aY.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", t_:"nope"},aY.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",t_:"av99.0.05M.08"},aY.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",t_:"invalid"},aY.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",t_:"false"},aY);var Kaw=["h","H"],kxO=["9","("],b0n=["9h","(h"],d3s=["8","*"],NrO=["a","A"],O0F=["o","O"],gvF=["m","M"],eAs=["mac3","MAC3"],EvG=["meac3","MEAC3"],RY={},mGd=(RY.h=Kaw,RY.H=Kaw,RY["9"]=kxO,RY["("]=kxO,RY["9h"]=b0n,RY["(h"]=b0n,RY["8"]=d3s,RY["*"]=d3s,RY.a=NrO,RY.A=NrO,RY.o=O0F,RY.O=O0F,RY.m=gvF,RY.M=gvF,RY.mac3=eAs,RY.MAC3=eAs,RY.meac3=EvG,RY.MEAC3=EvG,RY),hAD=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),jSd=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var Q={},Rc=(Q["0"]="f",Q["160"]="h",Q["133"]="h",Q["134"]="h",Q["135"]="h",Q["136"]="h",Q["137"]="h",Q["264"]="h",Q["266"]="h",Q["138"]="h",Q["298"]="h",Q["299"]="h",Q["304"]="h",Q["305"]="h",Q["214"]="h",Q["216"]="h",Q["374"]="h",Q["375"]="h",Q["140"]="a",Q["141"]="a",Q["327"]="sa",Q["258"]="m",Q["380"]="mac3",Q["328"]="meac3",Q["161"]="H",Q["142"]="H",Q["143"]="H",Q["144"]="H",Q["222"]="H",Q["223"]="H",Q["145"]="H",Q["224"]="H",Q["225"]="H",Q["146"]="H",Q["226"]="H",Q["227"]="H",Q["147"]="H",Q["384"]= "H",Q["376"]="H",Q["385"]="H",Q["377"]="H",Q["149"]="A",Q["261"]="M",Q["381"]="MAC3",Q["329"]="MEAC3",Q["598"]="9",Q["278"]="9",Q["242"]="9",Q["243"]="9",Q["244"]="9",Q["775"]="9",Q["776"]="9",Q["777"]="9",Q["778"]="9",Q["779"]="9",Q["780"]="9",Q["781"]="9",Q["782"]="9",Q["783"]="9",Q["247"]="9",Q["248"]="9",Q["353"]="9",Q["355"]="9",Q["356"]="9",Q["271"]="9",Q["577"]="9",Q["313"]="9",Q["579"]="9",Q["272"]="9",Q["302"]="9",Q["303"]="9",Q["407"]="9",Q["408"]="9",Q["308"]="9",Q["315"]="9",Q["330"]= "9h",Q["331"]="9h",Q["332"]="9h",Q["333"]="9h",Q["334"]="9h",Q["335"]="9h",Q["336"]="9h",Q["337"]="9h",Q["338"]="so",Q["600"]="o",Q["250"]="o",Q["251"]="o",Q["774"]="o",Q["194"]="*",Q["195"]="*",Q["220"]="*",Q["221"]="*",Q["196"]="*",Q["197"]="*",Q["279"]="(",Q["280"]="(",Q["317"]="(",Q["318"]="(",Q["273"]="(",Q["274"]="(",Q["357"]="(",Q["358"]="(",Q["275"]="(",Q["359"]="(",Q["360"]="(",Q["276"]="(",Q["583"]="(",Q["584"]="(",Q["314"]="(",Q["585"]="(",Q["561"]="(",Q["277"]="(",Q["361"]="(h",Q["362"]= "(h",Q["363"]="(h",Q["364"]="(h",Q["365"]="(h",Q["366"]="(h",Q["591"]="(h",Q["592"]="(h",Q["367"]="(h",Q["586"]="(h",Q["587"]="(h",Q["368"]="(h",Q["588"]="(h",Q["562"]="(h",Q["409"]="(",Q["410"]="(",Q["411"]="(",Q["412"]="(",Q["557"]="(",Q["558"]="(",Q["394"]="1",Q["395"]="1",Q["396"]="1",Q["397"]="1",Q["398"]="1",Q["399"]="1",Q["720"]="1",Q["721"]="1",Q["400"]="1",Q["401"]="1",Q["571"]="1",Q["402"]="1",Q["694"]="1h",Q["695"]="1h",Q["696"]="1h",Q["697"]="1h",Q["698"]="1h",Q["699"]="1h",Q["700"]="1h", Q["701"]="1h",Q["702"]="1h",Q["703"]="1h",Q["386"]="3",Q["387"]="w",Q["406"]="6",Q["787"]="1",Q["788"]="1",Q["548"]="1e",Q["549"]="1e",Q["550"]="1e",Q["551"]="1e",Q["809"]="1e",Q["810"]="1e",Q["552"]="1e",Q["811"]="1e",Q["812"]="1e",Q["553"]="1e",Q["813"]="1e",Q["814"]="1e",Q["554"]="1e",Q["815"]="1e",Q["816"]="1e",Q["555"]="1e",Q["817"]="1e",Q["818"]="1e",Q["572"]="1e",Q["556"]="1e",Q["645"]="(",Q["646"]="(",Q["647"]="(",Q["648"]="(",Q["649"]="(",Q["650"]="(",Q["651"]="(",Q["652"]="(",Q["653"]="(", Q["654"]="(",Q["655"]="(",Q["656"]="(",Q["657"]="(",Q["658"]="(",Q["659"]="(",Q["660"]="(",Q["661"]="(",Q["662"]="(",Q["663"]="(",Q["664"]="(",Q["665"]="(",Q["666"]="(",Q["667"]="(",Q["668"]="(",Q["669"]="(",Q["670"]="(",Q["671"]="(",Q["672"]="(",Q["673"]="(",Q["674"]="(h",Q["675"]="(h",Q["676"]="(h",Q["677"]="(h",Q["678"]="(h",Q["679"]="(h",Q["680"]="(h",Q["681"]="(h",Q["682"]="(h",Q["683"]="(h",Q["684"]="(h",Q["685"]="(h",Q["686"]="(h",Q["687"]="(h",Q["688"]="A",Q["689"]="A",Q["690"]="A",Q["691"]= "MEAC3",Q["773"]="i",Q["806"]="I",Q["805"]="I",Q["829"]="9",Q["830"]="9",Q["831"]="9",Q["832"]="9",Q["833"]="9",Q["834"]="9",Q["835"]="9",Q["836"]="9",Q["892"]="9",Q["893"]="9",Q["837"]="9",Q["838"]="9",Q["839"]="9",Q["840"]="9",Q["841"]="(",Q["842"]="(",Q["843"]="(",Q["844"]="(",Q["845"]="(",Q["846"]="(",Q["847"]="(",Q["848"]="(",Q["894"]="(",Q["895"]="(",Q["849"]="(",Q["850"]="(",Q["851"]="(",Q["852"]="(",Q["865"]="9",Q["866"]="9",Q["867"]="9",Q["868"]="9",Q["869"]="9",Q["870"]="9",Q["871"]="9", Q["872"]="9",Q["896"]="9",Q["897"]="9",Q["873"]="9",Q["874"]="9",Q["875"]="9",Q["876"]="9",Q["877"]="(",Q["878"]="(",Q["879"]="(",Q["880"]="(",Q["881"]="(",Q["882"]="(",Q["883"]="(",Q["884"]="(",Q["898"]="(",Q["899"]="(",Q["885"]="(",Q["886"]="(",Q["887"]="(",Q["888"]="(",Q);var oY={},hZd=(oY.STEREO_LAYOUT_UNKNOWN=0,oY.STEREO_LAYOUT_LEFT_RIGHT=1,oY.STEREO_LAYOUT_TOP_BOTTOM=2,oY);var o11={MAg:0,kpm:1,Q9s:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"},Lff={ixJ:0,Zx1:124,u$J:144,pwL:220,J4J:240,FzJ:340,IWk:360,jzb:480,gRs:588,dDs:608,aWJ:720,S2s:740,XwX:1080,RCX:1100,Wzs:1440,wwd:2160,zCx: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 wn,lv,zz,yAs;wn={};g.$J=(wn.auto=0,wn.tiny=144,wn.light=144,wn.small=240,wn.medium=360,wn.large=480,wn.hd720=720,wn.hd1080=1080,wn.hd1440=1440,wn.hd2160=2160,wn.hd2880=2880,wn.highres=4320,wn);lv={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};zz={}; yAs=(zz.QUALITY_ORDINAL_UNKNOWN=0,zz.QUALITY_ORDINAL_144P_SAVER=124,zz.QUALITY_ORDINAL_144P=144,zz.QUALITY_ORDINAL_240P_SAVER=220,zz.QUALITY_ORDINAL_240P=240,zz.QUALITY_ORDINAL_360P_SAVER=340,zz.QUALITY_ORDINAL_360P=360,zz.QUALITY_ORDINAL_480P=480,zz.QUALITY_ORDINAL_608P_SAVER=588,zz.QUALITY_ORDINAL_608P=608,zz.QUALITY_ORDINAL_720P=720,zz.QUALITY_ORDINAL_720P_ENHANCED=740,zz.QUALITY_ORDINAL_1080P=1080,zz.QUALITY_ORDINAL_1080P_ENHANCED=1100,zz.QUALITY_ORDINAL_1440P=1440,zz.QUALITY_ORDINAL_2160P=2160, zz.QUALITY_ORDINAL_HIGHRES=9999,zz);var Zr="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Fq.prototype.isHdr=function(){return this.X==="smpte2084"||this.X==="arib-std-b67"};oc.prototype.Fm=function(){return this.containerType===2}; oc.prototype.isEncrypted=function(){return!!this.f8}; oc.prototype.OC=function(){return!!this.audio}; oc.prototype.Cu=function(){return!!this.video}; var JU=!1,q0U=!1;g.y(eK,g.MB);g.W=eK.prototype;g.W.appendBuffer=function(n,q,M){if(this.p8.ov()!==this.appendWindowStart+this.start||this.p8.dB()!==this.appendWindowEnd+this.start||this.p8.NP()!==this.timestampOffset+this.start)this.p8.supports(1),this.p8.df(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.p8.pR(this.timestampOffset+this.start);this.p8.appendBuffer(n,q,M)}; g.W.abort=function(){this.p8.abort()}; g.W.remove=function(n,q){this.p8.remove(n+this.start,q+this.start)}; g.W.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.W.clear=function(){this.p8.clear()}; g.W.df=function(n,q){this.appendWindowStart=n;this.appendWindowEnd=q}; g.W.LJ=function(){return this.timestampOffset+this.start}; g.W.ov=function(){return this.appendWindowStart}; g.W.dB=function(){return this.appendWindowEnd}; g.W.pR=function(n){this.timestampOffset=n}; g.W.NP=function(){return this.timestampOffset}; g.W.Xm=function(n){n=this.p8.Xm(n===void 0?!1:n);return gf(n,this.start,this.end)}; g.W.sQ=function(){return this.p8.sQ()}; g.W.K2=function(){return this.p8.K2()}; g.W.Yp=function(){return this.p8.Yp()}; g.W.Ds=function(){return this.p8.Ds()}; g.W.rq=function(){this.p8.rq()}; g.W.IC=function(n){return this.p8.IC(n)}; g.W.N2=function(){return this.p8.N2()}; g.W.qQ=function(){return this.p8.qQ()}; g.W.z1=function(n,q,M){this.p8.z1(n,q,M)}; g.W.iN=function(n,q,M){this.p8.iN(n,q,M)}; g.W.R6=function(n,q){return this.p8.R6(n,q)}; g.W.supports=function(n){return this.p8.supports(n)}; g.W.rB=function(){return this.p8.rB()}; g.W.isView=function(){return!0}; g.W.zS=function(){return this.p8.zS()?this.isActive:!1}; g.W.isLocked=function(){return this.uB&&!this.isActive}; g.W.Bg=function(n){n=this.p8.Bg(n);n.vw=this.start+"-"+this.end;return n}; g.W.l5=function(){return this.p8.l5()}; g.W.VI=function(){return this.p8.VI()}; g.W.NE=function(){return this.p8.NE()}; g.W.ut=function(){this.p8.I3(this.Bo);g.MB.prototype.ut.call(this)};var $k=!1;g.y(hA,g.MB);g.W=hA.prototype;g.W.appendBuffer=function(n,q,M){this.Ut=!1;M&&(this.fg=M);if(n.length){var t;((t=this.Pg)==null?0:t.appendBuffer)?this.Pg.appendBuffer(n):this.Pg?this.Pg.append(n):this.CT&&this.CT.webkitSourceAppend(this.id,n)}q&&(q.isEncrypted()&&(this.LB=this.fg),q.type===3&&(this.xM=q),this.rj.push(q.Sc()),this.rj.length>4&&this.rj.shift());this.y5&&(this.y5.length>=2||n.length>1048576?delete this.y5:this.y5.push(n))}; g.W.abort=function(){try{this.Pg?this.Pg.abort():this.CT&&this.CT.webkitSourceAbort(this.id)}catch(q){if(QCR){var n=new g.aE("Error while abort the source buffer: "+q.name+", "+q.message);g.Ly(n)}}this.fg=this.xM=null}; g.W.remove=function(n,q,M){this.Ut=!1;var t;if((t=this.Pg)==null?0:t.remove)M&&M({b:Ga(this.Xm()),s:n,e:q}),this.Pg.remove(n,q)}; g.W.removeAll=function(){this.remove(this.ov(),this.dB())}; g.W.clear=function(){this.Yp()||(this.abort(),this.removeAll(),this.LB=this.fg=this.xM=null,this.appendWindowStart=this.timestampOffset=0,this.yO=YG([],[]),this.Ut=!1,this.y5=E_?[]:void 0,this.rl=!0)}; g.W.ov=function(){if($k&&this.Cu)return this.appendWindowStart;var n;return((n=this.Pg)==null?void 0:n.appendWindowStart)||0}; g.W.dB=function(){var n;return((n=this.Pg)==null?void 0:n.appendWindowEnd)||0}; g.W.df=function(n,q){this.Pg&&($k&&this.Cu?(this.appendWindowStart=n,this.Pg.appendWindowEnd=q):n>this.ov()?(this.Pg.appendWindowEnd=q,this.Pg.appendWindowStart=n):(this.Pg.appendWindowStart=n,this.Pg.appendWindowEnd=q))}; g.W.LJ=function(){return this.timestampOffset}; g.W.pR=function(n){$k?this.timestampOffset=n:this.supports(1)&&(this.Pg.timestampOffset=n)}; g.W.NP=function(){return $k?this.timestampOffset:this.supports(1)?this.Pg.timestampOffset:0}; g.W.Xm=function(n){if(n===void 0?0:n)return this.Ut||this.sQ()||(this.yO=this.Xm(!1),this.Ut=!0),this.yO;try{return this.Pg?this.Pg.buffered:this.CT?this.CT.webkitSourceBuffered(this.id):YG([0],[Infinity])}catch(q){return YG([],[])}}; g.W.sQ=function(){var n;return((n=this.Pg)==null?void 0:n.updating)||!1}; g.W.Yp=function(){return this.rl}; g.W.Ds=function(){return!this.rl&&this.sQ()}; g.W.rq=function(){this.rl=!1}; g.W.IC=function(n){var q=n==null?void 0:n.Ts;n=n==null?void 0:n.containerType;return!q&&!n||q===this.Ts&&n===this.containerType}; g.W.N2=function(){return this.fg}; g.W.qQ=function(){return this.LB}; g.W.R6=function(n,q){return this.containerType!==n||this.Ts!==q}; g.W.z1=function(n,q,M){if(this.containerType!==n||M&&this.R6(n,M))this.supports(4),W3()&&this.Pg.changeType(q),M&&(this.Ts=M);this.containerType=n}; g.W.iN=function(n,q,M){this.containerType&&this.R6(n,q)&&W3()&&this.Pg.changeType(M);this.containerType=n;this.Ts=q}; g.W.rB=function(){return this.xM}; g.W.isView=function(){return!1}; g.W.supports=function(n){switch(n){case 1:var q;return((q=this.Pg)==null?void 0:q.timestampOffset)!==void 0;case 0:var M;return!((M=this.Pg)==null||!M.appendBuffer);case 2:var t;return!((t=this.Pg)==null||!t.remove);case 3:var c,Y;return!!(((c=this.Pg)==null?0:c.addEventListener)&&((Y=this.Pg)==null?0:Y.removeEventListener));case 4:return!(!this.Pg||!this.Pg.changeType);default:return!1}}; g.W.zS=function(){return!this.sQ()}; g.W.isLocked=function(){return!1}; g.W.Bg=function(n){n.to=this.NP();n.up=this.sQ();var q,M=((q=this.Pg)==null?void 0:q.appendWindowStart)||0,t;q=((t=this.Pg)==null?void 0:t.appendWindowEnd)||Infinity;n.aw=M.toFixed(3)+"-"+q.toFixed(3);return n}; g.W.K2=function(){var n;return((n=this.Pg)==null?void 0:n.writeHead)||0}; g.W.l5=function(){for(var n={},q=0;q=7&&(!q||((t=this.Mm)==null?0:t.D("mweb_ios_allow_playback_workaround_when_ready")))&&Ly_(this,function(){g.bl(function(){oBd(n,n.getCurrentTime(),0)},500)})}return q}; g.W.seekTo=function(n){this.dP()>0&&(Zh&&QJ<4&&(n=Math.max(.1,n)),this.setCurrentTime(n))}; g.W.c_=function(){if(!this.W&&this.md)if(this.md.S)try{var n;SK(this,{l:"mer",sr:(n=this.Mm)==null?void 0:n.Zf(),rs:fW(this.md)});this.md.clear();this.W=this.md;this.md=void 0}catch(q){n=new g.aE("Error while clearing Media Source in MediaElement: "+q.name+", "+q.message),g.Ly(n),this.stopVideo()}else this.stopVideo()}; g.W.stopVideo=function(){var n=this;if(!this.W){var q;(q=this.md)==null||ZzR(q);if(CHm){if(!this.Z){var M=new LW;M.then(void 0,function(){}); this.Z=M;r6J&&this.pause();g.bl(function(){n.Z===M&&(lN(n),M.resolve())},200)}}else lN(this)}}; g.W.D7=function(){var n=this.UC();return NG(n)&&this.getDuration()?bN(n,this.getCurrentTime()):0}; g.W.KE=function(){var n=this.getDuration();return n===Infinity?1:n?this.D7()/n:0}; g.W.Bg=function(){try{var n=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Ga(this.e7(),",",3),vbu:Ga(this.UC()),vbs:Ga(this.uL()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.dP(),vns:""+this.AV(),vec:""+this.yr(),vemsg:this.p9(),vvol:""+this.getVolume(),vdom:""+ +this.As(),vsrc:""+ +!!this.JG(),vw:""+n.width,vh:""+n.height}}catch(q){return{}}}; g.W.hasError=function(){return this.yr()>0}; g.W.addEventListener=function(n,q){this.J.listen(n,q,!1,this);this.Tx(n)}; g.W.removeEventListener=function(n,q){this.J.AQ(n,q,!1,this)}; g.W.dispatchEvent=function(n){if(this.Z&&n.type==="pause")return!1;if(xx1){var q,M=((q=n.X)==null?void 0:q.timeStamp)||Infinity;q=M>performance.now()?M-Date.now()+performance.now():M;M=this.W||this.md;if((M==null?0:M.Yp())||q<=((M==null?void 0:M.C)||0)){var t;SK(this,{l:"mede",sr:(t=this.Mm)==null?void 0:t.Zf(),et:n.type});return!1}if(this.xG)return SK(this,{l:"medes",et:n.type}),M&&n.type==="seeking"&&(M.C=performance.now(),this.xG=!1),!1}return this.J.dispatchEvent(n)}; g.W.HG=function(){this.C=!1}; g.W.Nf=function(){this.C=!0;this.BF(!0)}; g.W.yM=function(){this.C&&!this.DI()&&this.BF(!0)}; g.W.equals=function(n){return!!n&&n.ji()===this.ji()}; g.W.ut=function(){this.N&&this.removeEventListener("volumechange",this.yM);CHm&&lN(this);g.F.prototype.ut.call(this)}; var CHm=!1,r6J=!1,xx1=!1,JBa=!1;g.W=g.uN.prototype;g.W.isPaused=function(){return g.C(this,4)}; g.W.isPlaying=function(){return g.C(this,8)&&!g.C(this,512)&&!g.C(this,64)&&!g.C(this,2)}; g.W.isOrWillBePlaying=function(){return g.C(this,8)&&!g.C(this,2)&&!g.C(this,1024)}; g.W.isCued=function(){return g.C(this,64)&&!g.C(this,8)&&!g.C(this,4)}; g.W.isBuffering=function(){return g.C(this,1)&&!g.C(this,2)}; g.W.isError=function(){return g.C(this,128)}; g.W.isSuspended=function(){return g.C(this,512)}; g.W.kE=function(){return g.C(this,64)&&g.C(this,4)}; g.W.toString=function(){return"PSt."+this.state.toString(16)}; var JM={},V5=(JM.BUFFERING="buffering-mode",JM.CUED="cued-mode",JM.ENDED="ended-mode",JM.PAUSED="paused-mode",JM.PLAYING="playing-mode",JM.SEEKING="seeking-mode",JM.UNSTARTED="unstarted-mode",JM);g.y(oe,g.F);g.W=oe.prototype;g.W.ND=function(){return this.Z}; g.W.s9=function(){return this.slot}; g.W.Pb=function(){return this.layout}; g.W.init=function(){var n=rN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=rN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Ox(this.layout.Rm)&&qj(this.w7.get(),this.layout.layoutId,{WJ:q,XP:n,listener:this,Bw:this.D6()});Pfw(this.Gs.get(),this);n=this.EN;q=this.layout.layoutId;var M={Bw:this.D6()};n.X.set(q,M);this.XF()}; g.W.P0=function(){}; g.W.release=function(){Ox(this.layout.Rm)&&Mj(this.w7.get(),this.layout.layoutId);vss(this.Gs.get(),this);this.EN.X.delete(this.layout.layoutId);this.dn()}; g.W.iD=function(){}; g.W.C3=function(){}; g.W.startRendering=function(n){dy(wf(this));if(za(this,n)){var q=this.X;NP(q.params.Tp.Zk.get(),!0)&&fXs(q,"p_sr",{});JA(this);this.C6(n);this.D6()||this.ZT(!1)}}; g.W.E9=function(n,q){if(q.layoutId===this.layout.layoutId){this.U9="rendering";this.W=this.gJ.get().isMuted()||this.gJ.get().getVolume()===0;this.hq("impression");this.hq("start");if(this.gJ.get().isMuted()){pW(this,"mute");var M;n=((M=Re(this))==null?void 0:M.muteCommands)||[];BH(this.qP.get(),n,this.layout.layoutId)}if(this.gJ.get().isFullscreen()){this.bS("fullscreen");var t;M=((t=Re(this))==null?void 0:t.fullscreenCommands)||[];BH(this.qP.get(),M,this.layout.layoutId)}this.D6()||(t=this.GX.get(), t.Z&&!t.W&&(t.S=!1,t.W=!0,t.actionType!=="ad_to_video"&&(lZ("pbs",void 0,t.actionType),g.EH("finalize_all_timelines")&&t7C(t.actionType))));this.Tn(1);this.EU(q);var c;q=((c=Re(this))==null?void 0:c.impressionCommands)||[];BH(this.qP.get(),q,this.layout.layoutId)}}; g.W.M8=function(n,q,M){this.N={qG:3,Mq:n==="load_timeout"?402:400,errorMessage:q.message};this.hq("error");var t;n=((t=Re(this))==null?void 0:t.errorCommands)||[];BH(this.qP.get(),n,this.layout.layoutId);this.D6()||this.dU.RQ(this.slot,this.layout,q,M)}; g.W.D$=function(){if(this.U9==="rendering"){pW(this,"pause");var n,q=((n=Re(this))==null?void 0:n.pauseCommands)||[];BH(this.qP.get(),q,this.layout.layoutId);this.Tn(2)}}; g.W.AX=function(){if(this.U9==="rendering"){pW(this,"resume");var n,q=((n=Re(this))==null?void 0:n.resumeCommands)||[];BH(this.qP.get(),q,this.layout.layoutId)}}; g.W.NI=function(n,q){q=q===void 0?!1:q;if(this.U9==="rendering"){var M={currentTimeSec:n,flush:q};Ot(this.X,"p_ip",M);XE(this.sx,n*1E3,q);this.W||XE(this.sx,n*1E3,q===void 0?!1:q);var t=this.xg();if(t){t/=1E3;if(n>=t*.25||q)this.hq("first_quartile"),Ot(this.X,"p_fq",M);if(n>=t*.5||q)this.hq("midpoint"),Ot(this.X,"p_sq",M);if(n>=t*.75||q)this.hq("third_quartile"),Ot(this.X,"p_tq",M);this.Zk.get().G.T().experiments.Hb("enable_progress_command_flush_on_kabuki")?Tp(this.J,n*1E3,q):Tp(this.J,n*1E3,pD1(this)? q:!1)}}}; g.W.AI=function(){var n;return((n=Vg(this.Dk.get(),1))==null?void 0:n.clientPlaybackNonce)||""}; g.W.K6=function(n,q){n.layoutId!==this.layout.layoutId?this.dU.RQ(this.slot,n,new VM("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):q()}; g.W.zX=function(n,q,M){if(q.layoutId===this.layout.layoutId)switch(this.U9="not_rendering",this.layoutExitReason=void 0,this.D6()||(n=M!=="normal"||this.position+1===this.C)&&this.ZT(n),this.fD(M),this.Tn(0),M){case "abandoned":if(j9(this.sx,"impression")){var t,c=((t=Re(this))==null?void 0:t.abandonCommands)||[];BH(this.qP.get(),c,this.layout.layoutId)}break;case "normal":t=((c=Re(this))==null?void 0:c.completeCommands)||[];BH(this.qP.get(),t,this.layout.layoutId);break;case "skipped":var Y;t=((Y= Re(this))==null?void 0:Y.skipCommands)||[];BH(this.qP.get(),t,this.layout.layoutId)}}; g.W.Xo=function(){return this.layout.layoutId}; g.W.JO=function(){return this.N}; g.W.ym=function(){if(this.U9==="rendering"){this.sx.hq("active_view_measurable");var n,q=((n=Re(this))==null?void 0:n.activeViewMeasurableCommands)||[];BH(this.qP.get(),q,this.layout.layoutId)}}; g.W.KF=function(){if(this.U9==="rendering"){this.sx.hq("active_view_fully_viewable_audible_half_duration");var n,q=((n=Re(this))==null?void 0:n.activeViewFullyViewableAudibleHalfDurationCommands)||[];BH(this.qP.get(),q,this.layout.layoutId)}}; g.W.Hr=function(){if(this.U9==="rendering"){this.sx.hq("active_view_viewable");var n,q=((n=Re(this))==null?void 0:n.activeViewViewableCommands)||[];BH(this.qP.get(),q,this.layout.layoutId)}}; g.W.sR=function(){if(this.U9==="rendering"){this.sx.hq("audio_audible");var n,q=((n=Re(this))==null?void 0:n.activeViewAudioAudibleCommands)||[];BH(this.qP.get(),q,this.layout.layoutId)}}; g.W.Vm=function(){if(this.U9==="rendering"){this.sx.hq("audio_measurable");var n,q=((n=Re(this))==null?void 0:n.activeViewAudioMeasurableCommands)||[];BH(this.qP.get(),q,this.layout.layoutId)}}; g.W.ZT=function(n){this.GX.get().ZT(rN(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,n,this.position,this.C,!1)}; g.W.onFullscreenToggled=function(n){if(this.U9==="rendering")if(n){this.bS("fullscreen");var q,M=((q=Re(this))==null?void 0:q.fullscreenCommands)||[];BH(this.qP.get(),M,this.layout.layoutId)}else this.bS("end_fullscreen"),q=((M=Re(this))==null?void 0:M.endFullscreenCommands)||[],BH(this.qP.get(),q,this.layout.layoutId)}; g.W.onVolumeChange=function(){if(this.U9==="rendering")if(this.gJ.get().isMuted()){pW(this,"mute");var n,q=((n=Re(this))==null?void 0:n.muteCommands)||[];BH(this.qP.get(),q,this.layout.layoutId)}else pW(this,"unmute"),n=((q=Re(this))==null?void 0:q.unmuteCommands)||[],BH(this.qP.get(),n,this.layout.layoutId)}; g.W.lS=function(){}; g.W.Nc=function(){}; g.W.QH=function(){}; g.W.Os=function(){}; g.W.h9=function(){}; g.W.bS=function(n){this.sx.bS(n,!this.W)}; g.W.hq=function(n){this.sx.hq(n,!this.W)}; g.W.D6=function(){var n=rN(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return n===void 0?(Kz("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Zk.get().D6(n)};g.y(t0,oe);g.W=t0.prototype;g.W.XF=function(){}; g.W.dn=function(){var n=this.Gs.get();n.sB===this&&(n.sB=null);this.timer.stop()}; g.W.iD=function(){this.timer.stop();oe.prototype.D$.call(this)}; g.W.C3=function(){Y1(this);oe.prototype.AX.call(this)}; g.W.xg=function(){return rN(this.Pb().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.W.RI=function(n,q){var M=this;this.K6(n,function(){M.U9!=="rendering_stop_requested"&&(M.U9="rendering_stop_requested",M.layoutExitReason=q,CW(M,q),M.timer.stop())})}; g.W.Oq=function(){var n=Date.now(),q=n-this.cD;this.cD=n;this.I9+=q;this.I9>=this.xg()?this.KN():(this.NI(this.I9/1E3),cP(this,this.I9))}; g.W.fD=function(){}; g.W.Ye=function(){}; g.y(Ge,t0);g.W=Ge.prototype;g.W.Vx=function(n){if(this.U9!=="not_rendering"){n=rf(this,n);var q=this.gJ.get().getPresentingPlayerType()===2;this.U9==="rendering_start_requested"?q&&qP(n)&&this.oy():q?g.dU(n,2)?Kz("Receive player ended event during MediaBreak",this.s9(),this.Pb()):xG(this,n):this.Is()}}; g.W.C6=function(){xZ1(this);$RF(this.gJ.get());this.Gs.get().sB=this;v_("pbp")||v_("pbs")||lZ("pbp");v_("pbp","watch")||v_("pbs","watch")||lZ("pbp",void 0,"watch");this.oy()}; g.W.EU=function(n){this.GX.get();var q=rN(n.clientMetadata,"metadata_type_ad_placement_config").kind,M=this.position===0;n=rN(n.clientMetadata,"metadata_type_linked_in_player_layout_type");n={adBreakType:Qg(q),adType:bDj(n)};var t=void 0;M?q!=="AD_PLACEMENT_KIND_START"&&(t="video_to_ad"):t="ad_to_ad";H_("ad_mbs",void 0,t);g.LD(n,t);Y1(this)}; g.W.Is=function(){this.Mz()}; g.W.KN=function(){qqd(this);this.Mz()}; g.y(Ks,t0);g.W=Ks.prototype;g.W.Vx=function(n){this.U9!=="not_rendering"&&(n=rf(this,n),xG(this,n))}; g.W.C6=function(){Kz("Not used in SSAP")}; g.W.EU=function(){Y1(this)}; g.W.Is=function(){Kz("Not used in SSAP")}; g.W.KN=function(){qqd(this);this.dU.h$(this.s9(),this.Pb(),"normal")}; g.y(k1,Ks);k1.prototype.RI=function(n,q){var M=this;this.K6(n,function(){YJ(M.Z,q)&&(M.U9="rendering_stop_requested",M.layoutExitReason=q,CW(M,q),M.timer.stop())})}; k1.prototype.startRendering=function(n){dy(wf(this));za(this,n)&&(JA(this),this.Gs.get().sB=this)};g.y(N7,oe);g.W=N7.prototype;g.W.Is=function(){this.Mz()}; g.W.Vx=function(n){if(this.U9!=="not_rendering"){n=rf(this,n);var q=this.gJ.get().getPresentingPlayerType()===2;this.U9==="rendering_start_requested"?q&&qP(n)&&this.oy():!q||g.dU(n,2)?this.Mz():xG(this,n)}}; g.W.XF=function(){rN(this.Pb().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=rN(this.Pb().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.W.dn=function(){rN(this.Pb().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.FX){var n=this.context.Tp,q=this.FX,M=this.Pb().layoutId;if(NP(n.Zk.get(),!0)){var t={};n.Jq("mccru",(t.cid=q,t.p_ac=M,t))}this.FV.get().removeCueRange(this.FX)}this.FX=void 0;var c;(c=this.KH)==null||c.dispose();this.WF&&this.WF.dispose()}; g.W.C6=function(n){var q=bX(this.Zk.get()),M=dA(this.Zk.get());if(q&&M&&!this.D6()){M=rN(n.clientMetadata,"metadata_type_preload_player_vars");var t=this.Zk.get();t=g.ic(t.G.T().experiments,"html5_preload_wait_time_secs");M&&this.WF&&this.WF.start(t*1E3)}thu(this,n);xZ1(this);q?(M=this.jc.get(),n=rN(n.clientMetadata,"metadata_type_player_vars"),M.G.loadVideoByPlayerVars(n,!1,2)):nsL(this.jc.get(),rN(n.clientMetadata,"metadata_type_player_vars"));var c;(c=this.KH)==null||c.start();q||this.jc.get().G.playVideo(2)}; g.W.EU=function(){var n;(n=this.KH)==null||n.stop();this.k6();(this.adCpn=rBd(this))||Kz("Media layout confirmed started, but ad CPN not set.");this.vn.get().YH("onAdStart",this.adCpn);this.w5=Date.now()}; g.W.xg=function(){var n;return(n=Vg(this.Dk.get(),2))==null?void 0:n.Y_}; g.W.w1=function(){this.sx.bS("clickthrough")}; g.W.RI=function(n,q){var M=this;this.K6(n,function(){if(M.U9!=="rendering_stop_requested"){M.U9="rendering_stop_requested";M.layoutExitReason=q;CW(M,q);var t;(t=M.KH)==null||t.stop();M.WF&&M.WF.stop();cI1(M)}})}; g.W.onCueRangeEnter=function(n){if(n!==this.FX)Kz("Received CueRangeEnter signal for unknown layout.",this.s9(),this.Pb(),{cueRangeId:n});else{var q=this.context.Tp,M=this.Pb().layoutId;if(NP(q.Zk.get(),!0)){var t={};q.Jq("mccre",(t.cid=n,t.p_ac=M,t))}this.FV.get().removeCueRange(this.FX);this.FX=void 0;$8(this.context.Zk.get(),"html5_ssap_flush_at_stop_rendering")&&this.D6()||(n=rN(this.Pb().clientMetadata,"metadata_type_video_length_seconds"),this.NI(n,!0),this.hq("complete"))}}; g.W.fD=function(n){n!=="abandoned"&&this.vn.get().YH("onAdComplete");this.vn.get().YH("onAdEnd",this.adCpn)}; g.W.k6=function(){this.FX="adcompletioncuerange:"+this.Pb().layoutId;this.FV.get().addCueRange(this.FX,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var n=this.context.Tp,q=this.FX,M=this.Pb().layoutId;if(NP(n.Zk.get(),!0)){var t={};n.Jq("mccr",(t.cid=q,t.p_ac=M,t))}}; g.W.onCueRangeExit=function(){}; g.W.Ye=function(n){this.U9==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&n>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.gJ.get().Tj(!0),this.NI(n))}; g.W.NI=function(n,q){oe.prototype.NI.call(this,n,q===void 0?!1:q);q=Date.now()-this.w5;var M=n*1E3,t={contentCpn:this.AI(),adCpn:rBd(this)};if(n-this.s_>=5){var c=q=2||(this.Bn.RI(this.layout,q),n=$8(this.params.context.Zk.get(),"html5_ssap_pass_transition_reason")&&q==="abandoned",this.ws()&&!n&&($8(this.params.context.Zk.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(q)||Kz("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:q})),this.I8.get().finishSegmentByCpn(this.layout.layoutId, Vg(this.Dk.get(),1).clientPlaybackNonce,q7(q,this.params.context.Zk))),this.gJ.get().removeListener(this),this.kH()&&GX(this.Bn.ND())&&this.L3.zX(this.slot,this.layout,this.Bn.ND().X))}; g.W.uK=function(n,q,M){Smu({cpn:n,WI:this.Dk.get(),QZ:!0});this.Pb().layoutId!==n||$8(this.params.context.Zk.get(),"html5_ssap_pass_transition_reason")&&M===5||(this.Bn.ND().currentState<2&&(n=M7(M,this.params.context.Zk),n==="error"?this.L3.RQ(this.slot,this.layout,new VM("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:M},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):jc(this.lI, this.layout,n)),$8(this.params.context.Zk.get(),"html5_ssap_exit_without_waiting_for_transition")||this.L3.zX(this.slot,this.layout,this.Bn.ND().X))};g.y(h0,g.F);g.W=h0.prototype;g.W.s9=function(){return this.slot}; g.W.Pb=function(){return this.layout}; g.W.SP=function(){}; g.W.Qx=function(){return this.BH[this.Nb]}; g.W.f1=function(){return this.Nb}; g.W.iD=function(n,q){var M=this.Qx();q.layoutId!==yr(M,n,q)?Kz("pauseLayout for a PlayerBytes layout that is not currently active",n,q):M.iD()}; g.W.C3=function(n,q){var M=this.Qx();q.layoutId!==yr(M,n,q)?Kz("resumeLayout for a PlayerBytes layout that is not currently active",n,q):M.C3()}; g.W.b6=function(n,q){var M=this.Qx();eHm(this,n,q);E2k(M,n,q)&&this.ZI(M.s9(),M.Pb(),"skipped")}; g.W.aG=function(n,q){var M=this.Qx();hHC(this);WG_(M,n,q)&&(n=yId(this,M,n,q),n!==void 0&&(this.D6()?Kz("Should not happen. Should delete"):X_C(this,M.s9(),M.Pb(),n)))}; g.W.iU=function(n,q){var M=Object.assign({},WP(this),{layoutId:q.layoutId}),t=M.layoutId,c=M.QZ;if(M.Bw){var Y={};b_(M.WI,"wrse",(Y.ec=t,Y.is=c,Y.ctp=kJ(t),Y))}WH(this.jb,n,q)}; g.W.E9=function(n,q){var M;(M=this.Qx())==null||M.E9(n,q)}; g.W.zX=function(n,q,M){q.layoutId===this.Pb().layoutId&&(this.Ms=!1,GG(this.cg(),this));var t;(t=this.Qx())==null||t.zX(n,q,M)}; g.W.Ye=function(n){var q;(q=this.Qx())==null||q.Ye(n)}; g.W.Ez=function(n,q,M){this.f1()===-1&&(this.callback.E9(this.slot,this.layout),this.Nb++);var t=this.Qx();t?(t.M8(n,q,M),this.D6()&&this.callback.RQ(this.slot,this.layout,q,M)):Kz("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.f1()),layoutId:this.Pb().layoutId})}; g.W.onFullscreenToggled=function(n){var q;(q=this.Qx())==null||q.onFullscreenToggled(n)}; g.W.lS=function(n){var q;(q=this.Qx())==null||q.lS(n)}; g.W.QH=function(n){var q;(q=this.Qx())==null||q.QH(n)}; g.W.onVolumeChange=function(){var n;(n=this.Qx())==null||n.onVolumeChange()}; g.W.wK=function(n,q,M){yS(this.jb,n,q,M)}; g.W.BV=function(n){n.startRendering(n.Pb())}; g.W.init=function(){var n=rN(this.Pb().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");n&&(n.current=this);if(this.BH.length<1)throw new r("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.BH.length)});if(n=rN(this.Pb().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))n.current=this;n=g.S(this.BH);for(var q=n.next();!q.done;q=n.next())q=q.value,q.init(),oHd(this.jb,this.slot,q.Pb()),whk(this.jb,this.slot,q.Pb()); if(this.D6())for(this.Dk.get().addListener(this),hnk(g21(this),this.Dk.get()),n=g21(this),n=g.S(n),q=n.next();!q.done;q=n.next())this.C0(q.value)}; g.W.C0=function(n){var q=rN(n.clientMetadata,"metadata_type_player_vars");q?(n.layoutType!=="LAYOUT_TYPE_MEDIA"&&Kz("Non-video ad contains playerVars",this.slot,n),this.jc.get().addPlayerResponseForAssociation({playerVars:q})):(n=dKU(n),this.jc.get().addPlayerResponseForAssociation({wm:n}))}; g.W.release=function(){var n=rN(this.Pb().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");n&&(n.current=null);if(n=rN(this.Pb().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))n.current=null;n=g.S(this.BH);for(var q=n.next();!q.done;q=n.next())q=q.value,zIR(this.jb,this.slot,q.Pb()),q.release();this.D6()&&(this.Dk.get().removeListener(this),Wy1())}; g.W.K6=function(n){return n.layoutId!==this.Pb().layoutId?(this.callback.RQ(this.s9(),n,new VM("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Pb().layoutId+("and LayoutType: "+this.Pb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.W.bB=function(){this.gJ.get().addListener(this);Y8(this.cg(),this)}; g.W.Vx=function(n){if(n.state.isError()){var q,M;this.Ez((q=n.state.Vr)==null?void 0:q.errorCode,new VM("There was a player error during this media layout.",{playerErrorCode:(M=n.state.Vr)==null?void 0:M.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(q=this.Qx())&&q.Vx(n)}; g.W.D6=function(){var n=rN(this.s9().clientMetadata,"metadata_type_eligible_for_ssap");return n===void 0?(Kz("Expected SSAP eligibility in PlayerBytes slots",this.s9(),this.Pb()),!1):this.Zk.get().D6(n)}; g.W.Nc=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.Os=function(){}; g.W.h9=function(){}; g.y(Sc,h0);g.W=Sc.prototype;g.W.nw=function(n,q,M){this.ZI(n,q,M)}; g.W.GW=function(n,q){this.ZI(n,q,"error")}; g.W.ZI=function(n,q,M){var t=this;stf(this,n,q,M,function(){s0(t,t.f1()+1)})}; g.W.startRendering=function(n){this.K6(n)&&(this.bB(),xgd(this.GX.get()),tkA(this.Zk.get())||$RF(this.gJ.get()),this.f1()===-1&&s0(this,this.f1()+1))}; g.W.RI=function(n,q){var M=this;this.Ms=!0;this.f1()===this.BH.length?this.callback.zX(this.slot,this.layout,q):(n=this.Qx(),n.RI(n.Pb(),q),this.FZ=function(){M.callback.zX(M.slot,M.layout,q)}); this.gJ.get().G.Ll();nsL(this.jc.get(),{});n=nc(this.gJ.get(),1);n.isPaused()&&!g.C(n,2)&&this.gJ.get().playVideo();this.gJ.get().removeListener(this);this.Ms&&jtR(this)}; g.W.uK=function(){}; g.W.Wi=function(){}; g.W.h$=function(){}; g.y(IQ,h0);g.W=IQ.prototype;g.W.nw=function(n,q,M){n=Object.assign({},WP(this),{layoutId:q.layoutId,layoutExitReason:M});q=n.layoutId;M=n.layoutExitReason;var t={};b_(n.WI,"prse",(t.xc=q,t.ler=M,t.ctp=kJ(q),t))}; g.W.GW=function(){Kz("onSubLayoutError in SSAP")}; g.W.ZI=function(){Kz("exitSubLayoutAndPlayNext in SSAP")}; g.W.Qx=function(){return this.A1}; g.W.f1=function(){var n=this;return this.BH.findIndex(function(q){var M;return q.Pb().layoutId===((M=n.A1)==null?void 0:M.Pb().layoutId)})}; g.W.BV=function(n){Gt(this.A1===void 0,"replacing another adapter");this.A1=n;n.startRendering(n.Pb())}; g.W.wK=function(n,q,M){yS(this.jb,n,q,M);var t;Gt(q.layoutId===((t=this.A1)==null?void 0:t.Pb().layoutId),"currentAdapter does not match exiting layout",{slot:n?"slot: "+n.slotType:"",subLayout:YB(q)})&&(this.A1=void 0)}; g.W.release=function(){h0.prototype.release.call(this);Gt(this.A1===void 0,"currentAdapter is still active during release");this.A1=void 0}; g.W.ws=function(){return this.gJ.get().getPresentingPlayerType()===2}; g.W.RI=function(n,q){function M(){fs(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(q)||Kz("Composite stopRendering: Unexpected layout exit reason",this.slot,n,{layoutExitReason:q}))} function t(){this.A1&&HP(this,this.A1,q);if(this.ws()&&(!fs(this)||q!=="abandoned")){M.call(this);var Y;var G=((Y=this.Dk.get().G.getVideoData())==null?void 0:Y.clientPlaybackNonce)||"";Y=Vg(this.Dk.get(),1).clientPlaybackNonce;this.I8.get().finishSegmentByCpn(G,Y,q7(q,this.Zk))}Squ(this,q)} function c(){if(this.A1){var Y=this.A1;Y.ND().currentState<2&&Y.RI(Y.Pb(),q);Y=fs(this)&&q==="abandoned";this.ws()&&!Y&&(M.call(this),this.I8.get().finishSegmentByCpn(this.A1.Pb().layoutId,Vg(this.Dk.get(),1).clientPlaybackNonce,q7(q,this.Zk)))}} Gt(n.layoutId===this.Pb().layoutId,"StopRendering for wrong layout")&&YJ(this.dR.W,q)&&(this.kH()?t.call(this):c.call(this))}; g.W.zX=function(n,q,M){h0.prototype.zX.call(this,n,q,M);q.layoutId===this.Pb().layoutId&&this.gJ.get().removeListener(this)}; g.W.AI=function(){return Vg(this.Dk.get(),1).clientPlaybackNonce}; g.W.uK=function(n,q,M){Smu(Object.assign({},WP(this),{cpn:n}));if(!fs(this)||M!==5)if(this.kH()){if(this.A1&&this.A1.Pb().layoutId!==q){var t=this.A1.Pb().layoutId;t!==n&&Kz("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:t,exitingCpn:n,enteringCpn:q});n=M7(M,this.Zk);HP(this,this.A1,n)}else this.A1&&Kz("onClipExited: active layout is entering again");q===this.AI()&&ffk(this,M)}else{if(this.A1&&this.A1.Pb().layoutId===n)Ifk(this,this.A1,M);else{var c;Kz("Exiting cpn does not match active cpn", this.slot,(t=this.A1)==null?void 0:t.Pb(),{exitingCpn:n,transitionReason:M,activeCpn:(c=this.A1)==null?void 0:c.Pb().layoutId})}q===this.AI()&&(this.A1!==void 0&&(Kz("active adapter is not properly exited",this.slot,this.layout,{activeLayout:YB(this.A1.Pb())}),Ifk(this,this.A1,M)),ffk(this,M),Squ(this,this.dR.W.X))}}; g.W.kH=function(){return $8(this.Zk.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.W.startRendering=function(n){this.K6(n)&&(n=this.dR,Gt(n.X===1,"tickStartRendering: state is not initial"),n.X=2,this.bB())}; g.W.Wi=function(n){jzd(Object.assign({},WP(this),{cpn:n}));var q=this.BH.find(function(M){return M.Pb().layoutId===n}); q?(this.dR.X!==2&&(Y6s(this.lY,this.slot.slotId),Gt(this.dR.X===2,"Expect started"),this.callback.E9(this.slot,this.layout)),this.BV(q),WH(this.jb,this.slot,q.Pb())):HDm(this,n)}; g.W.b6=function(n,q){eHm(this,n,q);var M=this.Qx();M?E2k(M,n,q)&&LGs(this,"skipped"):PZm(this,"onSkipRequested")}; g.W.aG=function(n,q){var M;a:{if(M=this.Qx()){if(hHC(this),WG_(M,n,q)&&(n=yId(this,M,n,q),n!==void 0)){M={nW:M,Rad:this.BH[n]};break a}}else PZm(this,"SkipWithAdPodSkip");M=void 0}if(n=M)M=n.nW,q=n.Rad,n=M.Pb().layoutId,this.kH()?HP(this,M,"skipped"):M.RI(M.Pb(),"skipped"),M=q.Pb().layoutId,this.I8.get().finishSegmentByCpn(n,M,q7("skipped",this.Zk))}; g.W.iU=function(){Kz("Not used in html5_ssap_fix_layout_exit")}; g.W.Vx=function(n){var q;(q=this.Qx())==null||q.Vx(n)}; g.W.Ez=function(){Kz("Not used in html5_ssap_fix_layout_exit")}; g.W.h$=function(n,q,M){var t;if(((t=this.Qx())==null?void 0:t.Pb().layoutId)!==q.layoutId)return void Kz("requestToExitSubLayout: wrong layout");LGs(this,M)};g.y(Ls,g.F);g.W=Ls.prototype;g.W.s9=function(){return this.Bn.s9()}; g.W.Pb=function(){return this.Bn.Pb()}; g.W.init=function(){var n=rN(this.Pb().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");n&&(n.current=this);this.XF()}; g.W.XF=function(){this.Bn.init()}; g.W.release=function(){var n=rN(this.Pb().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");n&&(n.current=null);this.dn()}; g.W.dn=function(){this.Bn.release()}; g.W.iD=function(){this.Bn.iD()}; g.W.C3=function(){this.Bn.C3()}; g.W.b6=function(n,q){Kz("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.s9(),this.Pb(),{requestingSlot:n,requestingLayout:q})}; g.W.startRendering=function(n){n.layoutId!==this.Pb().layoutId?this.callback.RQ(this.s9(),n,new VM("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Pb().layoutId+("and LayoutType: "+this.Pb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.gJ.get().addListener(this),Y8(this.cg(),this),xgd(this.GX.get()),tkA(this.Zk.get())||$RF(this.gJ.get()),this.Bn.startRendering(n))}; g.W.RI=function(n,q){this.Ms=!0;this.Bn.RI(n,q);this.gJ.get().G.Ll();nsL(this.jc.get(),{});n=nc(this.gJ.get(),1);n.isPaused()&&!g.C(n,2)&&this.gJ.get().playVideo();this.gJ.get().removeListener(this);this.Ms&&this.Bn.Is()}; g.W.E9=function(n,q){this.Bn.E9(n,q)}; g.W.zX=function(n,q,M){q.layoutId===this.Pb().layoutId&&(this.Ms=!1,GG(this.cg(),this));this.Bn.zX(n,q,M);q.layoutId===this.Pb().layoutId&&Xh(this.GX.get())}; g.W.Ye=function(n){this.Bn.Ye(n)}; g.W.Vx=function(n){if(n.state.isError()){var q,M;this.Ez((q=n.state.Vr)==null?void 0:q.errorCode,new VM("There was a player error during this media layout.",{playerErrorCode:(M=n.state.Vr)==null?void 0:M.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Bn.Vx(n)}; g.W.Ez=function(n,q,M){this.Bn.M8(n,q,M)}; g.W.onFullscreenToggled=function(n){this.Bn.onFullscreenToggled(n)}; g.W.lS=function(n){this.Bn.lS(n)}; g.W.QH=function(n){this.Bn.QH(n)}; g.W.onVolumeChange=function(){this.Bn.onVolumeChange()}; g.W.Nc=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.Os=function(){}; g.W.h9=function(){};g.W=PP.prototype;g.W.s9=function(){return this.slot}; g.W.Pb=function(){return this.layout}; g.W.init=function(){this.Hm.get().addListener(this);this.gJ.get().addListener(this);var n=rN(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var q=rN(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.J){var M=this.Hm.get().SF.slice(-1)[0];M!==void 0&&(n=M.startSecs*1E3,q=(M.startSecs+M.Dy)*1E3)}this.P0(n,q);var t;M=(t=this.Dk.get().fE)==null?void 0:t.clientPlaybackNonce;t=this.layout.Dn.adClientDataEntry;vP(this.Gs.get(),{daiStateTrigger:{filledAdsDurationMs:q-n,contentCpn:M, adClientData:t}});var c=this.Hm.get();c=lfs(c.Z,n,q);c!==null&&(vP(this.Gs.get(),{daiStateTrigger:{filledAdsDurationMs:c-n,contentCpn:M,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:t}}),this.I8.get().lP(c,q))}; g.W.release=function(){this.dn();this.Hm.get().removeListener(this);this.gJ.get().removeListener(this)}; g.W.startRendering=function(){this.C6();this.callback.E9(this.slot,this.layout)}; g.W.RI=function(n,q){this.Q4(q);this.driftRecoveryMs!==null&&(Te(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(UKf(this)-rN(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.gJ.get().G.o2()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.zX(this.slot,this.layout,q)}; g.W.Rh=function(){return!1}; g.W.Pu=function(n){var q=rN(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),M=rN(this.layout.clientMetadata,"metadata_type_layout_exit_ms");n*=1E3;if(q<=n&&n0&&s6(this.X(),q)}; g.W.AB=function(n){this.S.delete(n.slotId);for(var q=[],M=g.S(this.Gk.values()),t=M.next();!t.done;t=M.next()){t=t.value;var c=t.trigger;c instanceof l2&&c.triggeringSlotId===n.slotId&&q.push(t)}q.length>0&&s6(this.X(),q)}; g.W.ra=function(n){for(var q=[],M=g.S(this.Gk.values()),t=M.next();!t.done;t=M.next()){t=t.value;var c=t.trigger;c instanceof eb&&c.slotType===n.slotType&&c.X!==n.slotId&&q.push(t)}q.length>0&&s6(this.X(),q)}; g.W.mF=function(n){this.Z.add(n.slotId);for(var q=[],M=g.S(this.Gk.values()),t=M.next();!t.done;t=M.next())t=t.value,t.trigger instanceof s7&&n.slotId===t.trigger.triggeringSlotId&&q.push(t);q.length>0&&s6(this.X(),q)}; g.W.PA=function(n){this.Z.delete(n.slotId);this.J.add(n.slotId);for(var q=[],M=g.S(this.Gk.values()),t=M.next();!t.done;t=M.next())if(t=t.value,t.trigger instanceof Xl)n.slotId===t.trigger.triggeringSlotId&&q.push(t);else if(t.trigger instanceof tO){var c=t.trigger;n.slotId===c.slotId&&this.W.has(c.triggeringLayoutId)&&q.push(t)}q.length>0&&s6(this.X(),q)}; g.W.fT=function(n){for(var q=[],M=g.S(this.Gk.values()),t=M.next();!t.done;t=M.next())t=t.value,t.trigger instanceof jb&&n.slotId===t.trigger.triggeringSlotId&&q.push(t);q.length>0&&s6(this.X(),q)}; g.W.Di=function(n){for(var q=[],M=g.S(this.Gk.values()),t=M.next();!t.done;t=M.next())t=t.value,t.trigger instanceof Sb&&n.slotId===t.trigger.triggeringSlotId&&q.push(t);q.length>0&&s6(this.X(),q)}; g.W.Mj=function(n,q){this.C.add(q.layoutId)}; g.W.d8=function(n,q){this.C.delete(q.layoutId)}; g.W.E9=function(n,q){this.W.add(q.layoutId);for(var M=[],t=g.S(this.Gk.values()),c=t.next();!c.done;c=t.next())if(c=c.value,c.trigger instanceof cI)q.layoutId===c.trigger.triggeringLayoutId&&M.push(c);else if(c.trigger instanceof gq){var Y=c.trigger;n.slotType===Y.slotType&&q.layoutType===Y.layoutType&&q.layoutId!==Y.X&&M.push(c)}else c.trigger instanceof tO&&(Y=c.trigger,q.layoutId===Y.triggeringLayoutId&&this.J.has(Y.slotId)&&M.push(c));M.length>0&&s6(this.X(),M)}; g.W.zX=function(n,q,M){this.W.delete(q.layoutId);n=[];for(var t=g.S(this.Gk.values()),c=t.next();!c.done;c=t.next())if(c=c.value,c.trigger instanceof Gi&&q.layoutId===c.trigger.triggeringLayoutId&&n.push(c),c.trigger instanceof Ym){var Y=c.trigger;q.layoutId===Y.triggeringLayoutId&&Y.X.includes(M)&&n.push(c)}n.length>0&&s6(this.X(),n)}; g.W.sC=function(){}; g.W.t9=function(){this.J.clear()}; g.W.KL=function(){};g.y(eG,g.F);eG.prototype.B_=function(n,q,M,t){if(this.Gk.has(q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(q instanceof M4))throw new r("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in CloseRequestedTriggerAdapter");this.Gk.set(q.triggerId,new BI(n,q,M,t))}; eG.prototype.xw=function(n){this.Gk.delete(n.triggerId)};g.y(hj,g.F);hj.prototype.B_=function(n,q,M,t){if(this.Gk.has(q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(q instanceof q4||q instanceof hO))throw new r("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Gk.set(q.triggerId,new BI(n,q,M,t))}; hj.prototype.xw=function(n){this.Gk.delete(n.triggerId)}; hj.prototype.t9=function(n){for(var q=[],M=q.push,t=M.apply,c=[],Y=g.S(this.Gk.values()),G=Y.next();!G.done;G=Y.next())G=G.value,G.trigger instanceof q4&&G.trigger.po===n&&c.push(G);t.call(M,q,g.EJ(c));M=q.push;t=M.apply;c=[];Y=g.S(this.Gk.values());for(G=Y.next();!G.done;G=Y.next())G=G.value,G.trigger instanceof hO&&G.trigger.X!==n&&c.push(G);t.call(M,q,g.EJ(c));q.length&&s6(this.X(),q)}; hj.prototype.KL=function(n){for(var q=[],M=q.push,t=M.apply,c=[],Y=g.S(this.Gk.values()),G=Y.next();!G.done;G=Y.next()){G=G.value;var k=G.trigger;k instanceof hO&&k.X===n&&c.push(G)}t.call(M,q,g.EJ(c));q.length&&s6(this.X(),q)};g.y(Wc,g.F);g.W=Wc.prototype;g.W.B_=function(n,q,M,t){if(this.Gk.has(q.triggerId))throw new r("Tried to register duplicate trigger for slot.");var c="adtriggercuerange:"+q.triggerId;if(q instanceof N4)rmu(this,n,q,M,t,c,q.X.start,q.X.end,q.po,q.visible);else if(q instanceof i2)rmu(this,n,q,M,t,c,0x7ffffffffffff,0x8000000000000,q.po,q.visible);else throw new r("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in CueRangeTriggerAdapter");}; g.W.xw=function(n){var q=this.Gk.get(n.triggerId);q&&this.FV.get().removeCueRange(q.cueRangeId);this.Gk.delete(n.triggerId)}; g.W.onCueRangeEnter=function(n){var q=x1k(this,n);if(q&&(q=this.Gk.get(q)))if(g.C(nc(this.gJ.get()),32))this.X.add(q.cueRangeId);else{var M=q==null?void 0:q.Et.trigger;if(M instanceof N4||M instanceof i2){if(NP(this.context.Zk.get())){var t=q.Et.slot,c=q.Et.layout,Y={};this.context.Tp.Jq("cre",(Y.ca=q.Et.category,Y.tt=M.triggerType,Y.st=t.slotType,Y.lt=c==null?void 0:c.layoutType,Y.cid=n,Y))}s6(this.W(),[q.Et])}}}; g.W.onCueRangeExit=function(n){(n=x1k(this,n))&&(n=this.Gk.get(n))&&this.X.delete(n.cueRangeId)}; g.W.Vx=function(n){if(bU(n,16)<0){n=g.S(this.X);for(var q=n.next();!q.done;q=n.next())this.onCueRangeEnter(q.value,!0);this.X.clear()}}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.E9=function(){}; g.W.zX=function(){}; g.W.sC=function(){}; g.W.Ye=function(){}; g.W.onFullscreenToggled=function(){}; g.W.lS=function(){}; g.W.Nc=function(){}; g.W.QH=function(){}; g.W.onVolumeChange=function(){}; g.W.Os=function(){}; g.W.h9=function(){};g.y(yz,g.F);g.W=yz.prototype; g.W.B_=function(n,q,M,t){if(this.W.has(q.triggerId)||this.Z.has(q.triggerId))throw new r("Tried to re-register the trigger.");n=new BI(n,q,M,t);if(n.trigger instanceof dq)this.W.set(n.trigger.triggerId,n);else if(n.trigger instanceof Kh)this.Z.set(n.trigger.triggerId,n);else throw new r("Incorrect TriggerType: Tried to register trigger of type "+n.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.W.has(n.trigger.triggerId)&&n.slot.slotId===this.X&&s6(this.J(),[n])}; g.W.xw=function(n){this.W.delete(n.triggerId);this.Z.delete(n.triggerId)}; g.W.SP=function(n){n=n.slotId;if(this.X!==n){var q=[];this.X!=null&&q.push.apply(q,g.EJ(QKf(this.Z,this.X)));n!=null&&q.push.apply(q,g.EJ(QKf(this.W,n)));this.X=n;q.length&&s6(this.J(),q)}}; g.W.uK=function(){}; g.W.Wi=function(){};g.y(sE,g.F);g.W=sE.prototype;g.W.B_=function(n,q,M,t){if(this.Gk.has(q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(q instanceof E7))throw new r("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Gk.set(q.triggerId,new BI(n,q,M,t))}; g.W.xw=function(n){this.Gk.delete(n.triggerId)}; g.W.E9=function(){}; g.W.zX=function(){}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){};g.y(XK,g.F);g.W=XK.prototype;g.W.sC=function(n,q){for(var M=[],t=g.S(this.Gk.values()),c=t.next();!c.done;c=t.next()){c=c.value;var Y=c.trigger;Y.opportunityType===n&&(Y.associatedSlotId&&Y.associatedSlotId!==q||M.push(c))}M.length&&s6(this.X(),M)}; g.W.B_=function(n,q,M,t){if(this.Gk.has(q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(q instanceof K9d))throw new r("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in OpportunityEventTriggerAdapter");this.Gk.set(q.triggerId,new BI(n,q,M,t))}; g.W.xw=function(n){this.Gk.delete(n.triggerId)}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.E9=function(){}; g.W.zX=function(){};g.y(jG,g.F);g.W=jG.prototype;g.W.B_=function(n,q,M,t){n=new BI(n,q,M,t);if(q instanceof km||q instanceof O7||q instanceof b2||q instanceof WI||q instanceof Gou){if(this.Gk.has(q.triggerId))throw new r("Tried to register duplicate trigger for slot.");this.Gk.set(q.triggerId,n)}else throw new r("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in PrefetchTriggerAdapter");}; g.W.xw=function(n){this.Gk.delete(n.triggerId)}; g.W.K9=function(n){var q=n.slotFulfillmentTriggers.find(function(M){return M instanceof km}); q&&(SG(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",q.breakDurationMs,new Set([n.slotId]),!0),U0(this.Gs.get(),"ads_css","sid."+n.slotId+";bd."+q.breakDurationMs))}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.E9=function(){}; g.W.zX=function(){}; g.W.sC=function(){}; g.W.Rh=function(n){var q=this;if(!this.X)return Kz("Unexpected cue break before fetch instructions are available"),!1;this.W&&this.W.stop();this.S&&g.Jd(this.S);var M=M$d(this,n);if(!M){var t=n8s(this),c=this.N!==void 0&&Date.now()<=this.N+1E4;U0(this.Gs.get(),"ads_ncfs","cid."+n.identifier+";cd."+n.Dy.toFixed(3)+";ccs."+c+";cfa."+this.J+";bdc."+t.length+";"+t.slice(0,6).map(function(Y){return";bd."+Y}).join("")); return c?(ng(this.Nj,this.X,n),!0):!1}(t=rN(M.slot.clientMetadata,"metadata_type_triggering_cue_point"))?t.current=n:Kz("Expected triggering cue point ref to be available",M.slot);(new g.zw(function(){var Y=M.trigger,G=M.slot;SG(q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",Y.breakDurationMs,new Set,!0);SG(q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",Y.breakDurationMs,new Set,!1);for(var k=0,b=g.S(q.Gk.values()),d=b.next();!d.done;d=b.next()){d=d.value;var N=d.trigger; d.slot.slotId===G.slotId&&(q.Gk.delete(N.triggerId),k++)}U0(q.Gs.get(),"ads_csf","sid."+G.slotId+";bd."+Y.breakDurationMs+";dt."+k)},10)).start(); return!0}; g.W.Pu=function(){}; g.W.t9=function(n){var q=this;this.J=!1;this.N=Date.now();if(this.X&&this.X.contentCpn!==n)Kz("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:n,fetchInstructionsCpn:this.X.contentCpn}),Ih(this);else{this.Z=new g.zw(function(){if(q.J)delete q.Z;else{var t=q.gJ.get().getGetAdBreakContext(),c;if(Number(t==null?void 0:(c=t.livePlaybackPosition)==null?void 0:c.utcTimeMillis)>0)delete q.Z,q6f(q);else{var Y;(Y=q.Z)==null||Y.start()}}},200); var M;(M=this.Z)==null||M.start()}}; g.W.KL=function(n){this.X&&this.X.contentCpn!==n&&Kz("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:n,fetchInstructionsCpn:this.X.contentCpn},!0);Ih(this)}; g.W.Nk=function(n){var q=this;if(this.X)Kz("Unexpected multiple fetch instructions for the current content");else{this.X=n;n=t$U(n);this.W=new g.zw(function(){q6f(q)},n?n:6E5); this.W.start();this.S=new g.zw(function(){q.X&&(q.W&&(q.W.stop(),q.W.start()),pek(q,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},iKk(this.X)); n=this.gJ.get().getCurrentTimeSec(1,!1);for(var M=g.S(this.Hm.get().SF),t=M.next();!t.done;t=M.next())t=t.value,U0(this.Gs.get(),"nocache","ct."+Date.now()+";cmt."+n+";d."+t.Dy.toFixed(3)+";tw."+(t.startSecs-n)+";cid."+t.identifier+";")}}; g.W.ut=function(){g.F.prototype.ut.call(this);Ih(this)};g.y(fg,g.F);g.W=fg.prototype;g.W.B_=function(n,q,M,t){if(this.Gk.has(q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(q instanceof u2))throw new r("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Gk.set(q.triggerId,new BI(n,q,M,t));n=this.X.has(q.triggeringLayoutId)?this.X.get(q.triggeringLayoutId):new Set;n.add(q);this.X.set(q.triggeringLayoutId,n)}; g.W.xw=function(n){this.Gk.delete(n.triggerId);if(!(n instanceof u2))throw new r("Incorrect TriggerType: Tried to unregister trigger of type "+n.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var q=this.W.get(n.triggerId);q&&(q.dispose(),this.W.delete(n.triggerId));if(q=this.X.get(n.triggeringLayoutId))q.delete(n),q.size===0&&this.X.delete(n.triggeringLayoutId)}; g.W.K9=function(){}; g.W.AB=function(){}; g.W.ra=function(){}; g.W.mF=function(){}; g.W.PA=function(){}; g.W.fT=function(){}; g.W.Di=function(){}; g.W.Mj=function(){}; g.W.d8=function(){}; g.W.sC=function(){}; g.W.E9=function(n,q){var M=this;if(this.X.has(q.layoutId)){n=this.X.get(q.layoutId);n=g.S(n);var t=n.next();for(q={};!t.done;q={Rt:void 0},t=n.next())q.Rt=t.value,t=new g.zw(function(c){return function(){var Y=M.Gk.get(c.Rt.triggerId);s6(M.Z(),[Y])}}(q),q.Rt.durationMs),t.start(),this.W.set(q.Rt.triggerId,t)}}; g.W.zX=function(){};g.y(Hc,g.F);Hc.prototype.B_=function(n,q,M,t){if(this.Gk.has(q.triggerId))throw new r("Tried to register duplicate trigger for slot.");if(!(q instanceof ps))throw new r("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in VideoTransitionTriggerAdapter.");this.Gk.set(q.triggerId,new BI(n,q,M,t))}; Hc.prototype.xw=function(n){this.Gk.delete(n.triggerId)};TR.prototype.MY=function(n){return n.kind==="AD_PLACEMENT_KIND_START"};g.y(uG,g.F);g.W=uG.prototype;g.W.logEvent=function(n){this.XH(n)}; g.W.wT=function(n,q,M){this.XH(n,void 0,void 0,void 0,q,void 0,void 0,void 0,q.adSlotLoggingData,void 0,void 0,M)}; g.W.MW=function(n,q,M,t){this.XH(n,void 0,void 0,void 0,q,M?M:void 0,void 0,void 0,q.adSlotLoggingData,M?M.adLayoutLoggingData:void 0,void 0,t);q=Ph().resolve(Sz(tW))==null?void 0:Gq();n=q==null?void 0:q.adsSeenHotConfig;q=q==null?void 0:q.adsHotConfig;(n==null?0:n.logOnAdsSeen)&&(q==null?0:q.webEnablePremiumAdsSeenLogging)&&Wqf(this,M?M:void 0,t)}; g.W.kh=function(n,q,M,t){$8(this.Zk.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+n,"trigger:",M,"slot:",q,"layout:",t);qp(this.X.get())&&this.XH(n,void 0,void 0,void 0,q,t?t:void 0,void 0,M,q.adSlotLoggingData,t?t.adLayoutLoggingData:void 0)}; g.W.Do=function(n,q,M,t,c){this.XH(n,q,M,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c)}; g.W.ww=function(n,q,M,t){this.XH("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,M,t,void 0,void 0,M.adSlotLoggingData,t?t.adLayoutLoggingData:void 0,{errorType:n,errorMessage:q})}; g.W.XH=function(n,q,M,t,c,Y,G,k,b,d,N,O){var e=this;O=O===void 0?0:O;$8(this.Zk.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+n,"slot:",c,"layout:",Y,"ping:",G,"Opportunity:",{opportunityType:q,associatedSlotId:M,IGx:t,jOE:k,adSlotLoggingData:b,adLayoutLoggingData:d});try{var E=function(){if(!e.Zk.get().G.T().D("html5_disable_client_tmp_logs")&&n!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){n||Kz("Empty PACF event type",c,Y);var h=qp(e.X.get()),I={eventType:n,eventOrder:++e.eventCount},L={}; c&&(L.slotData=nK(h,c));Y&&(L.layoutData=$if(h,Y));G&&(L.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:G.X.serializedAdPingMetadata,pingIndex:G.index});k&&(L.triggerData=pj(k.trigger,k.category));q&&(L.opportunityData=FHJ(h,q,M,t));h={organicPlaybackContext:{contentCpn:Vg(e.Dk.get(),1).clientPlaybackNonce}};h.organicPlaybackContext.isLivePlayback=Vg(e.Dk.get(),1).r7;var T;h.organicPlaybackContext.isMdxPlayback=(T=Vg(e.Dk.get(),1))==null?void 0:T.isMdxPlayback; var v;if((v=Vg(e.Dk.get(),1))==null?0:v.daiEnabled)h.organicPlaybackContext.isDaiContent=!0;var B;if(T=(B=Vg(e.Dk.get(),2))==null?void 0:B.clientPlaybackNonce)h.adVideoPlaybackContext={adVideoCpn:T};h&&(L.externalContext=h);I.adClientData=L;b&&(I.serializedSlotAdServingData=b.serializedSlotAdServingDataEntry);d&&(I.serializedAdServingData=d.serializedAdServingDataEntry);N&&(I.errorInfo=N);g.tx("adsClientStateChange",{adsClientEvent:I})}}; O&&O>0?g.JJ(g.CL(),function(){return E()},O):E()}catch(h){$8(this.Zk.get(),"html5_log_pacf_logging_errors")&&g.JJ(g.CL(),function(){Kz(h instanceof Error?h:String(h),c,Y,{pacf_message:"exception during pacf logging"})})}};var ySO=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.y(Bc,uG);g.W=Bc.prototype; g.W.wT=function(n,q,M){uG.prototype.wT.call(this,n,q,M);NP(this.Zk.get())&&(M={},this.context.Tp.Jq("pacf",(M.et=n,M.st=q.slotType,M.si=q.slotId,M)))}; g.W.MW=function(n,q,M,t){var c=ySO.has(n);uG.prototype.MW.call(this,n,q,M,t);NP(this.Zk.get(),c)&&(t={},this.context.Tp.Jq("pacf",(t.et=n,t.st=q.slotType,t.si=q.slotId,t.lt=M==null?void 0:M.layoutType,t.li=M==null?void 0:M.layoutId,t.p_ac=M==null?void 0:M.layoutId,t)))}; g.W.Do=function(n,q,M,t,c){uG.prototype.Do.call(this,n,q,M,t,c);NP(this.Zk.get())&&(M={},this.context.Tp.Jq("pacf",(M.et=n,M.ot=q,M.ss=t==null?void 0:t.length,M)))}; g.W.kh=function(n,q,M,t){uG.prototype.kh.call(this,n,q,M,t);if(NP(this.Zk.get())){var c={};this.context.Tp.Jq("pacf",(c.et=n,c.tt=M.trigger.triggerType,c.tc=M.category,c.st=q.slotType,c.si=q.slotId,c.lt=t==null?void 0:t.layoutType,c.li=t==null?void 0:t.layoutId,c.p_ac=t==null?void 0:t.layoutId,c))}}; g.W.ww=function(n,q,M,t){uG.prototype.ww.call(this,n,q,M,t);if(NP(this.Zk.get(),!0)){var c={};this.context.Tp.Jq("perror",(c.ert=n,c.erm=q,c.st=M.slotType,c.si=M.slotId,c.lt=t==null?void 0:t.layoutType,c.li=t==null?void 0:t.layoutId,c.p_ac=t==null?void 0:t.layoutId,c))}}; g.W.XH=function(n,q,M,t,c,Y,G,k,b,d,N){var O=this.Zk.get();g.hi(O.G.T())?(O=this.Zk.get(),O=g.ic(O.G.T().experiments,"H5_async_logging_delay_ms")):O=void 0;uG.prototype.XH.call(this,n,q,M,t,c,Y,G,k,b,d,N,O)};DJ.prototype.clear=function(){this.X.clear()};Aj.prototype.state=function(){return this.X==="fulfilled"?{state:"fulfilled",value:this.result}:this.X==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; Aj.prototype.J=function(n){$h(n)||m$(n)?oh(FK(n),this.J.bind(this),this.reject.bind(this)):(this.X="fulfilled",this.result=n,Rh(this))}; Aj.prototype.reject=function(n){this.X="rejected";this.error=n;Rh(this)}; var m$=bE(function(n){return PVF(n)?n instanceof Aj:!1});Object.freeze({GPg:function(n){var q=rL(n);return oh(Cg(q,function(M){return q[M].X==="rejected"}),function(M){return Number.isNaN(M)?q.map(function(t){return t.state().value}):q[M]})}, nHt:function(n){var q=rL(n);return oh(Cg(q),function(){return q.map(function(M){return M.state()})})}, qYd:function(n){var q=rL(n);return oh(Cg(q,function(M){return q[M].X==="fulfilled"}),function(M){return Number.isNaN(M)?ZJ(new AggregateError(q.map(function(t){return t.state().reason}))):q[M].state().value})}, lGx:function(n){var q=rL(n);return oh(Cg(q,function(){return!0}),function(M){return q[M]})}});var xh=window.Oem||"es-419";ql.prototype.gk=function(n){this.client=n}; ql.prototype.X=function(){this.clear();this.csn=g.ye()}; ql.prototype.clear=function(){this.Z.clear();this.W.clear();this.J.clear();this.csn=null};iv.prototype.gk=function(n){g.Jo(Ml().gk).bind(Ml())(n)}; iv.prototype.clear=function(){g.Jo(Ml().clear).bind(Ml())()};g.W=tc.prototype;g.W.gk=function(n){this.client=n}; g.W.uu=function(n,q){var M=this;q=q===void 0?{}:q;g.Jo(function(){var t,c,Y,G=((t=g.R(n==null?void 0:n.commandMetadata,g.jQ))==null?void 0:t.rootVe)||((c=g.R(n==null?void 0:n.commandMetadata,DEn))==null?void 0:(Y=c.screenVisualElement)==null?void 0:Y.uiType);if(G){t=g.R(n==null?void 0:n.commandMetadata,qwQ);if(t==null?0:t.parentTrackingParams){var k=g.Ey(t.parentTrackingParams);if(t.parentCsn)var b=t.parentCsn}else q.clickedVisualElement?k=q.clickedVisualElement:n.clickTrackingParams&&(k=g.Ey(n.clickTrackingParams)); a:{t=g.R(n,g.HO);c=g.R(n,VOT);if(t){if(c=I4C(t,"VIDEO")){t={token:c,videoId:t.videoId};break a}}else if(c&&(t=I4C(c,"PLAYLIST"))){t={token:t,playlistId:c.playlistId};break a}t=void 0}q=Object.assign({},{cttAuthInfo:t,parentCsn:b},q);if(g.EH("expectation_logging")){var d;q.loggingExpectations=((d=g.R(n==null?void 0:n.commandMetadata,DEn))==null?void 0:d.loggingExpectations)||void 0}Yy(M,G,k,q)}else g.PJ(new g.aE("Error: Trying to create a new screen without a rootVeType",n))})()}; g.W.clickCommand=function(n,q,M){n=n.clickTrackingParams;M=M===void 0?0:M;n?(M=g.ye(M===void 0?0:M))?(zs(this.client,M,g.Ey(n),q),q=!0):q=!1:q=!1;return q}; g.W.stateChanged=function(n,q,M){this.visualElementStateChanged(g.Ey(n),q,M===void 0?0:M)}; g.W.visualElementStateChanged=function(n,q,M){M=M===void 0?0:M;M===0&&this.W.has(M)?this.B.push([n,q]):Tjj(this,n,q,M)};bv.prototype.fetch=function(n,q,M){var t=this,c=ujf(n,q,M);return new Promise(function(Y,G){function k(){if(M==null?0:M.CC)try{var d=t.handleResponse(n,c.status,c.response,M);Y(d)}catch(N){G(N)}else Y(t.handleResponse(n,c.status,c.response,M))} c.onerror=k;c.onload=k;var b;c.send((b=q.body)!=null?b:null)})}; bv.prototype.handleResponse=function(n,q,M,t){M=M.replace(")]}'","");try{var c=JSON.parse(M)}catch(Y){g.PJ(new g.aE("JSON parsing failed after XHR fetch",n,q,M));if((t==null?0:t.CC)&&M)throw new g.Rt(1,"JSON parsing failed after XHR fetch");c={}}q!==200&&(g.PJ(new g.aE("XHR API fetch failed",n,q,M)),c=Object.assign({},c,{errorMetadata:{status:q}}));return c};dX.getInstance=function(){var n=g.qD("ytglobal.storage_");n||(n=new dX,g.nQ("ytglobal.storage_",n));return n}; dX.prototype.estimate=function(){var n,q,M;return g.u(function(t){n=navigator;return((q=n.storage)==null?0:q.estimate)?t.return(n.storage.estimate()):((M=n.webkitTemporaryStorage)==null?0:M.queryUsageAndQuota)?t.return(Bjk()):t.return()})}; g.nQ("ytglobal.storageClass_",dX);MH.prototype.Vh=function(n){this.handleError(n)}; MH.prototype.logEvent=function(n,q){switch(n){case "IDB_DATA_CORRUPTED":g.EH("idb_data_corrupted_killswitch")||this.X("idbDataCorrupted",q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.X("idbUnexpectedlyClosed",q);break;case "IS_SUPPORTED_COMPLETED":g.EH("idb_is_supported_completed_killswitch")||this.X("idbIsSupportedCompleted",q);break;case "QUOTA_EXCEEDED":Aid(this,q);break;case "TRANSACTION_ENDED":this.Z&&Math.random()<=.1&&this.X("idbTransactionEnded",q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":n= Object.assign({},q,{hasWindowUnloaded:this.W}),this.X("idbTransactionAborted",n)}};var Ck={},zok=g.rz("yt-player-local-media",{IK:(Ck.index={nx:2},Ck.media={nx:2},Ck.captions={nx:5},Ck),shared:!1,upgrade:function(n,q){q(2)&&(g.fM(n,"index"),g.fM(n,"media"));q(5)&&g.fM(n,"captions");q(6)&&(H6(n,"metadata"),H6(n,"playerdata"))}, version:5});var slw={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},rn;a:{var xP=g.FV();xP=xP.toLowerCase();if(g.B7(xP,"android")){var XbO=xP.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(XbO){var jlQ=parseFloat(XbO[1]);if(jlQ<100){rn=jlQ;break a}}var SPd=xP.match("("+Object.keys(slw).join("|")+")");rn=SPd?slw[SPd[0]]:0}else rn=void 0}var Kl=rn,G3=Kl>=0;var XoU=window;var mp1=BT(function(){var n,q;return(q=(n=window).matchMedia)==null?void 0:q.call(n,"(prefers-reduced-motion: reduce)").matches});var OM;g.Nl=new WK;OM=0;var XH=wHj()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.oa?!0:!1;var EM={GY:function(n,q){n[K[4]](0,q)}, PV:function(n){n[K[54]]()}, lA:function(n,q){var M=n[0];n[0]=n[q%n[K[3]]];n[q%n[K[3]]]=M}};var Zsd={auX:"adunit",T9x:"detailpage",uJJ:"editpage",w_g:"embedded",V_l:"leanback",UKt:"previewpage",bLd:"profilepage",SW:"unplugged",LZs:"playlistoverview",R_g:"sponsorshipsoffer",UDl:"shortspage",H1L:"handlesclaiming",RIg:"immersivelivepage",Hix:"creatormusic",W5k:"immersivelivepreviewpage",pky:"admintoolyurt",Tps:"shortsaudiopivot",N9L:"consumption"};var Jid=2592E3;var Q5,IvO,lq;Q5={};g.SW=(Q5.STOP_EVENT_PROPAGATION="html5-stop-propagation",Q5.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Q5.IV_DRAWER_OPEN="ytp-iv-drawer-open",Q5.MAIN_VIDEO="html5-main-video",Q5.VIDEO_CONTAINER="html5-video-container",Q5.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Q5.HOUSE_BRAND="house-brand",Q5);IvO={};lq=(IvO.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",IvO.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",IvO);var i5m={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var GpU={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},Kzj={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"},Umf={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var d_u={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.HR.prototype.getLanguageInfo=function(){return this.tq}; g.HR.prototype.getXtags=function(){if(!this.xtags){var n=this.id.split(";");n.length>1&&(this.xtags=n[1])}return this.xtags}; g.HR.prototype.toString=function(){return this.tq.name}; g.HR.prototype.getLanguageInfo=g.HR.prototype.getLanguageInfo;L9.prototype.equals=function(n){return this.W===n.W&&this.X===n.X&&this.Z===n.Z&&this.reason===n.reason&&(!vR||this.Bb===n.Bb)}; L9.prototype.isLocked=function(){return this.Z&&!!this.W&&this.W===this.X}; L9.prototype.compose=function(n){if(n.Z&&TF(n))return y3;if(n.Z||TF(this))return n;if(this.Z||TF(n))return this;var q=this.W&&n.W?Math.max(this.W,n.W):this.W||n.W,M=this.X&&n.X?Math.min(this.X,n.X):this.X||n.X;q=Math.min(q,M);var t=0;vR&&(t=this.Bb!==0&&n.Bb!==0?Math.min(this.Bb,n.Bb):this.Bb===0?n.Bb:this.Bb);return vR&&q===this.W&&M===this.X&&t===this.Bb||!vR&&q===this.W&&M===this.X?this:vR?new L9(q,M,!1,M===this.X&&t===this.Bb?this.reason:n.reason,t):new L9(q,M,!1,M===this.X?this.reason:n.reason)}; L9.prototype.J=function(n){return!n.video||vR&&this.Bb!==0&&this.Bb=0}; g.W.Y9=function(){var n=this.segments[this.segments.length-1];return n?n.endTime:NaN}; g.W.MM=function(){return this.segments[0].startTime}; g.W.Rs=function(){return this.segments.length}; g.W.ow=function(){return 0}; g.W.HH=function(n){return(n=this.ev(n))?n.zs:-1}; g.W.Oz=function(n){return(n=this.mz(n))?n.sourceURL:""}; g.W.getStartTime=function(n){return(n=this.mz(n))?n.startTime:0}; g.W.l2=function(n){return this.getStartTime(n)+this.getDuration(n)}; g.W.NQ=na(1);g.W.isLoaded=function(){return this.segments.length>0}; g.W.mz=function(n){if(this.X&&this.X.zs===n)return this.X;n=g.oG(this.segments,new qT(n,0,0,0,""),function(q,M){return q.zs-M.zs}); return this.X=n>=0?this.segments[n]:null}; g.W.ev=function(n){if(this.X&&this.X.startTime<=n&&n=0?this.segments[n]:this.segments[Math.max(0,-n-2)]}; g.W.append=function(n){if(n.length)if(n=g.un(n),this.segments.length){var q=this.segments.length?g.Ws(this.segments).endTime:0,M=n[0].zs-this.Uq();M>1&&SJd(this.segments);for(M=M>0?0:-M+1;Mn.zs&&this.index.s2()<=n.zs+1}; g.W.update=function(n,q,M){this.index.append(n);mYJ(this.index,M);n=this.index;n.W=q;n.Z="update"}; g.W.n9=function(){return this.H0()?!0:xM.prototype.n9.call(this)}; g.W.xE=function(n,q){var M=this.index.Oz(n),t=this.index.getStartTime(n),c=this.index.getDuration(n),Y;q?c=Y=0:Y=this.info.Bb>0?this.info.Bb*c:1E3;return new kQ([new M5(3,this,void 0,"liveCreateRequestInfoForSegment",n,t,c,0,Y,!q)],M)}; g.W.mB=function(){return this.H0()?0:this.initRange.length}; g.W.Dx=function(){return!1};Eb.prototype.update=function(n){var q=void 0;this.W&&(q=this.W);var M=new Eb,t=Array.from(n.getElementsByTagName("S"));if(t.length){var c=+gm(n,"timescale")||1,Y=(+t[0].getAttribute("t")||0)/c,G=+gm(n,"startNumber")||0;M.J=Y;var k=q?q.startSecs+q.Dy:0,b=Date.parse(lrs(gm(n,"yt:segmentIngestTime")))/1E3;M.S=n.parentElement.tagName==="SegmentTemplate";M.S&&(M.N=gm(n,"media"));n=q?G-q.zs:1;M.C=n>0?0:-n+1;n=g.S(t);for(t=n.next();!t.done;t=n.next()){t=t.value;for(var d=+t.getAttribute("d")/c,N=(+t.getAttribute("yt:sid")|| 0)/c,O=+t.getAttribute("r")||0,e=0;e<=O;e++)if(q&&G<=q.zs)G++;else{var E=new vJj(G,k,d,b+N,Y);M.X.push(E);var h=t;var I=c,L=E.startSecs;E=h.getAttribute("yt:cuepointTimeOffset");var T=h.getAttribute("yt:cuepointDuration");if(E&&T){E=Number(E);L=-E/I+L;I=Number(T)/I;T=h.getAttribute("yt:cuepointContext")||null;var v=h.getAttribute("yt:cuepointIdentifier")||"";h=h.getAttribute("yt:cuepointEvent")||"";h=new dV(L,I,T,v,H0F[h]||"unknown",E)}else h=null;h&&M.Z.push(h);G++;k+=d;Y+=d;b+=d+N}}M.X.length&& (M.W=g.Ws(M.X))}this.C=M.C;this.W=M.W||this.W;g.Bs(this.X,M.X);g.Bs(this.Z,M.Z);this.S=M.S;this.N=M.N;this.J===-1&&(this.J=M.getStreamTimeOffset())}; Eb.prototype.getStreamTimeOffset=function(){return this.J===-1?0:this.J};g.y(W$,g.MT);g.W=W$.prototype;g.W.va=function(){return this.r8}; g.W.Lx=function(n,q){n=yZ(this,n);return n>=0&&(q||!this.segments[n].pending)}; g.W.s2=function(){return this.qD?this.segments.length?this.ev(this.MM()).zs:-1:g.MT.prototype.s2.call(this)}; g.W.MM=function(){if(this.C8)return 0;if(!this.qD)return g.MT.prototype.MM.call(this);if(!this.segments.length)return 0;var n=Math.max(g.Ws(this.segments).endTime-this.DM,0);return this.qV>0&&this.ev(n).zs0)return this.Ow/1E3;if(!this.segments.length)return g.MT.prototype.Y9.call(this);var n=this.Uq();if(!this.qD||n<=this.segments[this.segments.length-1].zs)n=this.segments[this.segments.length-1];else{var q=this.segments[this.segments.length-1];n=new qT(n,Math.max(0,q.startTime-(q.zs-n)*this.r8),this.r8,0,"sq/"+n,void 0,void 0,!0)}return this.C8?Math.min(this.DM,n.endTime):n.endTime}; g.W.Rs=function(){return this.qD?this.segments.length?this.Uq()-this.s2()+1:0:g.MT.prototype.Rs.call(this)}; g.W.Uq=function(){var n=Math.min(this.SL,Math.max(g.MT.prototype.Uq.call(this),this.uT)),q=this.DM*1E3;q=this.Ow>0&&this.Ow0&&this.uT>0&&!q&&(q=this.ev(this.DM))&&(n=Math.min(q.zs-1,n));return n}; g.W.VU=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.W.A5=function(n){var q=yZ(this,n.zs);if(q>=0)this.segments[q]=n;else if(this.segments.splice(-(q+1),0,n),this.XA&&n.zs%(300/this.r8)===0){var M=this.segments[0].zs,t=Math.floor(this.XA/this.r8);n=n.zs-t;q=-(q+1)-t;q>0&&n>M&&(this.segments=this.segments.slice(q))}}; g.W.sZ=function(){return this.uT}; g.W.iO=function(n){return hy?!this.W&&n>=0&&this.Uq()<=n:g.MT.prototype.iO.call(this,n)}; g.W.ev=function(n){if(!this.qD)return g.MT.prototype.ev.call(this,n);if(!this.segments.length)return null;var q=this.segments[this.segments.length-1];if(n=q.endTime)q=q.zs+Math.floor((n-q.endTime)/this.r8+1);else{q=wT(this.segments,function(t){return n=t.endTime?1:0}); if(q>=0)return this.segments[q];var M=-(q+1);q=this.segments[M-1];M=this.segments[M];q=Math.floor((n-q.endTime)/((M.startTime-q.endTime)/(M.zs-q.zs-1))+1)+q.zs}return this.mz(q)}; g.W.mz=function(n){if(!this.qD)return g.MT.prototype.mz.call(this,n);if(!this.segments.length)return null;var q=yZ(this,n);if(q>=0)return this.segments[q];var M=-(q+1);q=this.r8;if(M===0)var t=Math.max(0,this.segments[0].startTime-(this.segments[0].zs-n)*q);else M===this.segments.length?(t=this.segments[this.segments.length-1],t=t.endTime+(n-t.zs-1)*q):(t=this.segments[M-1],q=this.segments[M],q=(q.startTime-t.endTime)/(q.zs-t.zs-1),t=t.endTime+(n-t.zs-1)*q);return new qT(n,t,q,0,"sq/"+n,void 0,void 0, !0)}; var hy=!1;g.y(sb,Ob);g.W=sb.prototype;g.W.s1=function(){return!0}; g.W.n9=function(){return!0}; g.W.My=function(n){return this.ZO()&&n.Z&&!n.J||!n.X.index.iO(n.zs)}; g.W.yU=function(){}; g.W.Ve=function(n,q){return typeof n!=="number"||isFinite(n)?Ob.prototype.Ve.call(this,n,q===void 0?!1:q):new kQ([new M5(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Be,void 0,this.Be*this.info.Bb)],"")}; g.W.xE=function(n,q){var M=M===void 0?!1:M;if(this.index.Lx(n))return Ob.prototype.xE.call(this,n,q);var t=this.index.getStartTime(n),c=Math.round(this.Be*this.info.Bb),Y=this.Be;q&&(Y=c=0);return new kQ([new M5(M?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",n,t,Y,void 0,c,!q)],n>=0?"sq/"+n:"")};g.y(Xu,xM);g.W=Xu.prototype;g.W.NK=function(){return!1}; g.W.ZO=function(){return!1}; g.W.s1=function(){return!1}; g.W.yU=function(){return new kQ([new M5(1,this,void 0,"otfInit")],this.S)}; g.W.ZC=function(){return null}; g.W.uA=function(n){this.My(n);return F4U(this,YQ(n),!1)}; g.W.Ve=function(n,q){q=q===void 0?!1:q;n=this.index.HH(n);q&&(n=Math.min(this.index.Uq(),n+1));return F4U(this,n,!0)}; g.W.Mg=function(n){n.info.type===1&&(this.X||(this.X=bS(n.W)),n.X&&n.X.uri==="http://youtube.com/streaming/otf/durations/112015"&&Z8s(this,n.X))}; g.W.My=function(n){return n.Z===0?!0:this.index.Uq()>n.zs&&this.index.s2()<=n.zs+1}; g.W.mB=function(){return 0}; g.W.Dx=function(){return!1};g.jr.prototype.info=function(){}; g.jr.prototype.debug=function(){}; g.jr.prototype.X=function(n){Sr.apply(null,[5,this.tag,n].concat(g.EJ(g.Fm.apply(1,arguments))))}; var oJk=new Map,JUu=new Map,wtU=new function(){var n=this;this.X=new Map;this.vg={sFg:function(){return n.X}}};g.W=g.lh.prototype;g.W.Lx=function(n){return n<=this.Uq()}; g.W.ow=function(n){return this.offsets[n]}; g.W.getStartTime=function(n){return this.startTicks[n]/this.X}; g.W.l2=function(n){return this.getStartTime(n)+this.getDuration(n)}; g.W.NQ=na(0);g.W.uY=function(){return NaN}; g.W.getDuration=function(n){n=this.ZS(n);return n>=0?n/this.X:-1}; g.W.ZS=function(n){return n+1=0}; g.W.Y9=function(){return this.W?this.startTicks[this.count]/this.X:NaN}; g.W.MM=function(){return 0}; g.W.Rs=function(){return this.count}; g.W.Oz=function(){return""}; g.W.HH=function(n){n=g.oG(this.startTicks.subarray(0,this.count),n*this.X);return n>=0?n:Math.max(0,-n-2)}; g.W.isLoaded=function(){return this.Uq()>=0}; g.W.aH=function(n,q){if(n>=this.Uq())return 0;var M=0;for(q=this.getStartTime(n)+q;nthis.getStartTime(n);n++)M=Math.max(M,MK1(this,n)/this.getDuration(n));return M}; g.W.resize=function(n){n+=2;var q=this.offsets;this.offsets=new Float64Array(n+1);var M=this.startTicks;this.startTicks=new Float64Array(n+1);for(n=0;n0&&n&&(M=M.range.end+1,n=Math.min(n,this.info.contentLength-M),n>0&&t.push(new M5(4,this,nu(M,n),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,q)));return new kQ(t)}; g.W.Mg=function(n){if(n.info.type===1){if(this.X)return;this.X=bS(n.W)}else if(n.info.type===2){if(this.S||this.index.Uq()>=0)return;if(g.xJ(this.info)){var q=this.index,M=g.fu(n);n=n.info.range.start;var t=g.ef(M,0,1936286840);M=xYU(t);q.X=M.timescale;var c=M.Ka;q.offsets[0]=M.gS+n+t.size;q.startTicks[0]=c;q.W=!0;n=M.k5.length;for(t=0;t0&&n===Y[0].DT)for(n=0;n=q+M)break}c.length||(n=new g.aE("b189619593",""+n,""+q,""+M),g.Ly(n));return new kQ(c)}; g.W.jO=function(n){for(var q=this.Kv(n.info),M=n.info.range.start+n.info.W,t=[],c=0;c=this.index.ow(M+1);)M++;return this.UZ(M,q,n.Z).Ex}; g.W.My=function(n){n.Ci();return this.n9()?!0:n.range.end+1this.info.contentLength&&(q=new QO(q.start,this.info.contentLength-1)),new kQ([new M5(4,n.X,q,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,n.clipId)]);n.type===4&&(n=this.Kv(n),n=n[n.length-1]);var M=0,t=n.range.start+n.W+n.Z;n.type===3&&(n.Ci(),M=n.zs,t===n.range.end+1&&(M+=1));return this.UZ(M,t,q)}; g.W.uA=function(){return null}; g.W.Ve=function(n,q){q=q===void 0?!1:q;n=this.index.HH(n);q&&(n=Math.min(this.index.Uq(),n+1));return this.UZ(n,this.index.ow(n),0,void 0)}; g.W.NK=function(){return!0}; g.W.ZO=function(){return!0}; g.W.s1=function(){return!1}; g.W.mB=function(){return this.indexRange.length+this.initRange.length}; g.W.Dx=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var n6={},WWd=(n6.COLOR_PRIMARIES_BT709="bt709",n6.COLOR_PRIMARIES_BT2020="bt2020",n6.COLOR_PRIMARIES_UNKNOWN=null,n6.COLOR_PRIMARIES_UNSPECIFIED=null,n6),qI={},tKu=(qI.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",qI.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",qI.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",qI.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",qI.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,qI.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,qI);g.B$.prototype.getName=function(){return this.name}; g.B$.prototype.getId=function(){return this.id}; g.B$.prototype.getIsDefault=function(){return this.isDefault}; g.B$.prototype.toString=function(){return this.name}; g.B$.prototype.getName=g.B$.prototype.getName;g.B$.prototype.getId=g.B$.prototype.getId;g.B$.prototype.getIsDefault=g.B$.prototype.getIsDefault;var KWk=/action_display_post/;var ka_,mc,$Q;g.y(Fu,g.MB);g.W=Fu.prototype;g.W.isLoading=function(){return this.state===1}; g.W.NS=function(){return this.state===3}; g.W.J1b=function(n){var q=n.getElementsByTagName("Representation");if(n.getElementsByTagName("SegmentList").length>0||n.getElementsByTagName("SegmentTemplate").length>0){this.r7=this.W=!0;this.C||(this.C=new uqa);mPs(this.C,n);this.publish("refresh");for(n=0;n=0?N=pS(e):O=O+"?range="+e}b.call(k,new qT(d.zs,d.startSecs,d.Dy,d.X,O,N,d.W))}t=c}M.update(t,this.isLive,this.V1)}$Pd(this.C);return!0}this.duration=TyJ(gm(n,"mediaPresentationDuration"));a:{for(n= 0;n0))return this.Zy()-n}}n=this.X;for(var q in n){var M=n[q].index;if(M.isLoaded()&&!iN(n[q].info.mimeType))return M.MM()}return 0}; g.W.getStreamTimeOffset=function(){return this.B}; g.W.uY=function(n){for(var q in this.X){var M=this.X[q].index;if(M.isLoaded()){var t=M.HH(n),c=M.uY(t);if(c)return c+n-M.getStartTime(t)}}return NaN}; var nx=null,Lan,q0=!((Lan=navigator.mediaCapabilities)==null||!Lan.decodingInfo),f$d={commentary:1,alternate:2,dub:3,main:4};var y7=new Set,M0=new Map;cr.prototype.clone=function(n){return new cr(this.flavor,n,this.W,this.experiments)}; cr.prototype.Bg=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; cr.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 PKw={},eF=(PKw.playready=["com.youtube.playready","com.microsoft.playready"],PKw.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],PKw),MI={},hfj=(MI.widevine="DRM_SYSTEM_WIDEVINE",MI.fairplay="DRM_SYSTEM_FAIRPLAY",MI.playready="DRM_SYSTEM_PLAYREADY",MI),iw={},vvF=(iw.widevine=1,iw.fairplay=2,iw.playready=3,iw);var Wr;g.y(E8,g.F); E8.prototype.initialize=function(n,q){for(var M=this,t=g.S(Object.keys(n)),c=t.next();!c.done;c=t.next()){c=g.S(n[c.value]);for(var Y=c.next();!Y.done;Y=c.next())if(Y=Y.value,Y.f8)for(var G=g.S(Object.keys(Y.f8)),k=G.next();!k.done;k=G.next()){var b=k.value;k=b;b=eF[b];!b&&this.D("html5_enable_vp9_fairplay")&&k==="fairplay"&&(b=["com.youtube.fairplay.sbdl"]);if(b){b=g.S(b);for(var d=b.next();!d.done;d=b.next())d=d.value,this.Z[d]=this.Z[d]||new cr(k,d,Y.f8[k],this.pm.experiments),this.X[k]=this.X[k]|| {},this.X[k][Y.mimeType]=!0}}}aN()&&(this.Z["com.youtube.fairplay"]=new cr("fairplay","com.youtube.fairplay","",this.pm.experiments),this.D("html5_enable_vp9_fairplay")||(this.X.fairplay=this.X.fairplay||{},this.X.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.X.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.W=$Gs(q,this.useCobaltWidevine,this.D("html5_enable_safari_fairplay")&&!0,this.D("html5_enable_vp9_fairplay")).filter(function(N){return!!M.Z[N]})}; E8.prototype.D=function(n){return this.pm.experiments.Hb(n)};var TrF={"":"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"};w3R.prototype.D=function(n){return this.experiments.Hb(n)};var R7k={RED:"red",AiJ:"white"};jF.prototype.OT=function(n){if(n.bF!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return CNf(this,n)}; jF.prototype.Hb=function(n){return this.flags.get(""+n)==="true"};SF.prototype.LQ=function(){return this.Z}; SF.prototype.eT=function(){return this.W}; SF.prototype.Hb=function(n){n=this.OT(n);JSON.stringify(n);return n==="true"}; SF.prototype.OT=function(n){return this.flags[n]};var QeR=Promise.resolve(),isd=window.queueMicrotask?window.queueMicrotask.bind(window):p3u;fx.prototype.canPlayType=function(n,q){n=n.canPlayType?n.canPlayType(q):!1;Ra?n=n||lvF[q]:Kl===2.2?n=n||U3Q[q]:F$()&&(n=n||u9S[q]);return!!n}; fx.prototype.isTypeSupported=function(n){return this.U?window.cast.receiver.platform.canDisplayType(n):jV(n)}; var U3Q={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},u9S={"application/x-mpegURL":"maybe"},lvF={"application/x-mpegURL":"maybe"};g.y(Pr,g.MB);Pr.prototype.add=function(n,q){if(!this.items[n]&&(q.GS||q.UJ||q.l3)){var M=this.items,t=q;Object.isFrozen&&!Object.isFrozen(q)&&(t=Object.create(q),Object.freeze(t));M[n]=t;this.publish("vast_info_card_add",n)}}; Pr.prototype.remove=function(n){var q=this.get(n);delete this.items[n];return q}; Pr.prototype.get=function(n){return this.items[n]||null}; Pr.prototype.isEmpty=function(){return g.g0(this.items)};vr.prototype.encrypt=function(n){this.X.exports.AES128CTRCipher_encrypt(this.cipher,n.byteOffset,n.byteLength);return n}; vr.prototype.qm=function(){return this.cipher===0}; vr.prototype.dispose=function(){this.X.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};ld.prototype.TF=function(n,q){q=q===void 0?1:q;this.FN+=q;this.W+=n;n/=q;for(var M=0;M0)t+="."+T5[c].toFixed(0)+"_"+M.X[c].toFixed(0);else break;M=t}M&&(n[q]=M)}this.X=new Ges;return n}; g.W.toString=function(){return""};g.W=Os_.prototype;g.W.isActive=function(){return!1}; g.W.rW=function(){}; g.W.AD=function(){}; g.W.Ly=function(){}; g.W.KM=function(n,q){q()}; g.W.c8=function(){return{}}; g.W.toString=function(){return""};var BrO=new Os_,D3A=!!+oZ("html5_enable_profiler"),ASn=!!+oZ("html5_onesie_enable_profiler"),tw=D3A||ASn?new kef:BrO,o_m=D3A?tw:BrO,ud=ASn?tw:BrO;sQu.prototype.emscripten_notify_memory_growth=function(){};g.W=U8.prototype;g.W.malloc=function(n){return this.exports.malloc(n)}; g.W.free=function(n){this.exports.free(n)}; g.W.realloc=function(n,q){return this.exports.realloc(n,q)}; g.W.nE=function(n){if(n.buffer!==this.exports.memory.buffer){var q=this.malloc(n.byteLength);q=new Uint8Array(this.exports.memory.buffer,q,n.byteLength);q.set(n);return q}}; g.W.bO=function(n){if(n.buffer===this.exports.memory.buffer){var q=n.slice();this.free(n.byteOffset);return q}}; var h7s=new function(){this.X=this.W="WebAssembly"in window},Br="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); ud.rW(U8,{nE:function(n){return{profile:"copyj2w",FN:n===void 0?0:Math.ceil(n.byteLength/16)}}, bO:function(n){return{profile:"copyw2j",FN:n===void 0?0:Math.ceil(n.byteLength/16)}}});Dj.prototype.encrypt=function(n,q){try{return this.X.bO(I7s(this,n,q))}catch(M){g.PJ(Error("ocwce: wasm encrypt failed: "+M))}}; Dj.prototype.qm=function(){return this.Z}; Dj.prototype.dispose=function(){this.qm()||(g.iz(this.W),this.X.free(this.J.byteOffset),this.Z=!0)};g.y(f7f,g.F);g.y(LQs,g.F);var mm;$$.prototype.add=function(n){if(this.pos+20>this.data.length){var q=new Uint8Array(this.data.length*2);q.set(this.data);this.data=q}for(;n>31;)this.data[this.pos++]=mm[(n&31)+32],n>>=5;this.data[this.pos++]=mm[n|0]}; $$.prototype.XX=function(){return g.e4(this.data.subarray(0,this.pos))}; $$.prototype.reset=function(){this.pos=0};Zj.prototype.Hk=function(n,q){var M=Math.pow(this.alpha,n);this.X=q*(1-M)+M*this.X;this.W+=n}; Zj.prototype.BI=function(){return this.X/(1-Math.pow(this.alpha,this.W))};ad.prototype.Hk=function(n,q){for(var M=0;M<10;M++){var t=this.X[M],c=t+(M===0?n:0),Y=1*Math.pow(2,M);if(c<=Y)break;t=Math.min(1,(c-Y*.5)/t);for(c=0;c<16;c++)Y=this.values[M*16+c]*t,this.values[(M+1)*16+c]+=Y,this.X[M+1]+=Y,this.values[M*16+c]-=Y,this.X[M]-=Y}t=M=0;c=8192;q>8192&&(M=Math.ceil(Math.log(q/8192)/Math.log(2)),t=8192*Math.pow(2,M-1),c=t*2);M+2>16?this.values[15]+=n:(q=(q-t)/(c-t),this.values[M]+=n*(1-q),this.values[M+1]+=n*q);this.X[0]+=n}; ad.prototype.BI=function(){var n=n===void 0?this.W:n;var q=q===void 0?.02:q;var M=M===void 0?.98:M;for(var t=this.Z,c=0;c<16;c++)t[c]=this.values[c];c=this.X[0];for(var Y=1;Y<11;Y++){var G=this.X[Y];if(G===0)break;for(var k=Math.min(1,(n-c)/G),b=0;b<16;b++)t[b]+=this.values[Y*16+b]*k;c+=G*k;if(k<1)break}for(Y=n=G=0;Y<16;Y++){k=G+t[Y]/c;n+=Math.max(0,Math.min(k,M)-Math.max(G,q))*(Y>0?8192*Math.pow(2,Y-1):0);if(k>M)break;G=k}return n/(M-q)};Rd.prototype.Hk=function(n,q){n=Math.min(this.X,Math.max(1,Math.round(n*this.resolution)));n+this.W>=this.X&&(this.Z=!0);for(;n--;)this.values[this.W]=q,this.W=(this.W+1)%this.X;this.KR=!0}; Rd.prototype.percentile=function(n){var q=this;if(!this.Z&&this.W===0)return 0;this.KR&&(g.Vs(this.S,function(M,t){return q.values[M]-q.values[t]}),this.KR=!1); return this.values[this.S[Math.round(n*((this.Z?this.X:this.W)-1))]]||0}; Rd.prototype.BI=function(){return this.C?(this.percentile(this.J-this.C)+this.percentile(this.J)+this.percentile(this.J+this.C))/3:this.percentile(this.J)};g.y(od,g.F);od.prototype.V1=function(){var n;(n=this.rJ)==null||n.start();if(Qt(this)&&this.policy.B){var q;(q=this.Nn)==null||q.l_()}};uhm.prototype.D=function(n){return this.experiments.Hb(n)};g.y(D7R,g.F);var a7a="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(" "),CXm={yGL:"caoe",H_X:"capsv",peX:"cbrand",IfX:"cbr",j9L:"cbrver",lfl:"cchip",mcJ:"ccappver",PrE:"ccrv",D9x:"cfrmver",Zby:"c",pRm:"cver",JIs:"ctheme",wRg:"cplayer",J_l:"cmodel",RE:"cnetwork",mKg:"cos",OS_VERSION:"cosver",h$d:"cplatform",oRm:"crqyear"};g.y(WN,g.F);g.W=WN.prototype;g.W.D=function(n){return this.experiments.Hb(n)}; g.W.LQ=function(){return this.experiments.LQ()}; g.W.eT=function(){return this.experiments.eT()}; g.W.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.W.getVideoUrl=function(n,q,M,t,c,Y,G){q={list:q};M&&(c?q.time_continue=M:q.t=M);M=G?"music.youtube.com":g.sR(this);c=M==="www.youtube.com";!Y&&t&&c?Y="https://youtu.be/"+n:g.d1(this)?(Y="https://"+M+"/fire",q.v=n):(Y&&c?(Y=this.protocol+"://"+M+"/shorts/"+n,t&&(q.feature="share")):(Y=this.protocol+"://"+M+"/watch",q.v=n),Ra&&(n=$ek())&&(q.ebc=n));return g.hC(Y,q)}; g.W.getVideoEmbedCode=function(n,q,M,t){q="https://"+g.sR(this)+"/embed/"+q;t&&(q=g.hC(q,{list:t}));t=M.width;M=M.height;q=li(q);n=li(n!=null?n:"YouTube video player");return'')}; g.W.supportsGaplessAudio=function(){return g.Xq&&!Ra&&AP()>=74||g.O8&&g.Zy(68)?!0:!1}; g.W.supportsGaplessShorts=function(){return!this.D("html5_enable_short_gapless")||this.AE||g.gz?!1:!0}; g.W.getPlayerType=function(){return this.X.cplayer}; g.W.Aq=function(){return this.NV}; var pP1=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Vcs=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],x7a=[19];var cz={},ihj=(cz["140"]={numChannels:2},cz["141"]={numChannels:2},cz["251"]={audioSampleRate:48E3,numChannels:2},cz["774"]={audioSampleRate:48E3,numChannels:2},cz["380"]={numChannels:6},cz["328"]={numChannels:6},cz["773"]={},cz),YA={},q7U=(YA["1"]='video/mp4; codecs="av01.0.08M.08"',YA["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',YA["1e"]='video/mp4; codecs="av01.0.08M.08"',YA["9"]='video/webm; codecs="vp9"',YA["("]='video/webm; codecs="vp9"',YA["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', YA.h='video/mp4; codecs="avc1.64001e"',YA.H='video/mp4; codecs="avc1.64001e"',YA.o='audio/webm; codecs="opus"',YA.a='audio/mp4; codecs="mp4a.40.2"',YA.ah='audio/mp4; codecs="mp4a.40.2"',YA.mac3='audio/mp4; codecs="ac-3"; channels=6',YA.meac3='audio/mp4; codecs="ec-3"; channels=6',YA.i='audio/mp4; codecs="iamf.001.001.Opus"',YA),GC={},Mbk=(GC["337"]={width:3840,height:2160,bitrate:3E7,fps:30},GC["336"]={width:2560,height:1440,bitrate:15E6,fps:30},GC["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, GC["702"]={width:7680,height:4320,bitrate:4E7,fps:60},GC["701"]={width:3840,height:2160,bitrate:2E7,fps:60},GC["700"]={width:2560,height:1440,bitrate:1E7,fps:60},GC["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},GC["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},GC["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},GC["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, GC["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},GC["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},GC["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},GC["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},GC["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},GC["315"]={width:3840,height:2160,bitrate:2E7,fps:60},GC["308"]={width:2560, height:1440,bitrate:1E7,fps:60},GC["303"]={width:1920,height:1080,bitrate:5E6,fps:60},GC["302"]={width:1280,height:720,bitrate:25E5,fps:60},GC["299"]={width:1920,height:1080,bitrate:75E5,fps:60},GC["298"]={width:1280,height:720,bitrate:35E5,fps:60},GC["571"]={width:7680,height:4320,bitrate:3E7,fps:60},GC["401"]={width:3840,height:2160,bitrate:15E6,fps:60},GC["400"]={width:2560,height:1440,bitrate:75E5,fps:60},GC["399"]={width:1920,height:1080,bitrate:2E6,fps:60},GC["398"]={width:1280,height:720,bitrate:1E6, fps:60},GC["397"]={width:854,height:480,bitrate:4E5,fps:30},GC["396"]={width:640,height:360,bitrate:25E4,fps:30},GC["787"]={width:1080,height:608,bitrate:2E5,fps:30},GC["788"]={width:1080,height:608,bitrate:4E5,fps:30},GC["572"]={width:7680,height:4320,bitrate:3E7,fps:60},GC["555"]={width:3840,height:2160,bitrate:15E6,fps:60},GC["554"]={width:2560,height:1440,bitrate:75E5,fps:60},GC["553"]={width:1920,height:1080,bitrate:2E6,fps:60},GC["552"]={width:1280,height:720,bitrate:1E6,fps:60},GC["551"]={width:854, height:480,bitrate:4E5,fps:30},GC["550"]={width:640,height:360,bitrate:25E4,fps:30},GC["313"]={width:3840,height:2160,bitrate:8E6,fps:30},GC["271"]={width:2560,height:1440,bitrate:4E6,fps:30},GC["248"]={width:1920,height:1080,bitrate:2E6,fps:30},GC["247"]={width:1280,height:720,bitrate:15E5,fps:30},GC["244"]={width:854,height:480,bitrate:52E4,fps:30},GC["243"]={width:640,height:360,bitrate:28E4,fps:30},GC["137"]={width:1920,height:1080,bitrate:4E6,fps:30},GC["136"]={width:1280,height:720,bitrate:3E6, fps:30},GC["135"]={width:854,height:480,bitrate:1E6,fps:30},GC["385"]={width:1920,height:1080,bitrate:6503313,fps:60},GC["376"]={width:1280,height:720,bitrate:5706960,fps:60},GC["384"]={width:1280,height:720,bitrate:3660979,fps:60},GC["225"]={width:1280,height:720,bitrate:5805E3,fps:30},GC["224"]={width:1280,height:720,bitrate:453E4,fps:30},GC["145"]={width:1280,height:720,bitrate:2682052,fps:30},GC);g.W=mN.prototype;g.W.getInfo=function(){return this.X}; g.W.Zw=function(){return null}; g.W.JW=function(){var n=this.Zw();return n?(n=g.pr(n.d7),Number(n.expire)):NaN}; g.W.Fp=function(){}; g.W.getHeight=function(){return this.X.video.height};Giu.prototype.build=function(){bhs(this);var n=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],q={};a:if(this.X)var M=this.X;else{M="";for(var t=g.S(this.Z),c=t.next();!c.done;c=t.next())if(c=c.value,c.tq){if(c.tq.getIsDefault()){M=c.tq.getId();break a}M||(M=c.tq.getId())}}t=g.S(this.Z);for(c=t.next();!c.done;c=t.next())if(c=c.value,this.C||!c.tq||c.tq.getId()===M)q[c.itag]||(q[c.itag]=[]),q[c.itag].push(c);M=g.S(this.W);for(t=M.next();!t.done;t=M.next())if(t=t.value,c=q[t.X]){c=g.S(c);for(var Y=c.next();!Y.done;Y= c.next()){var G=n,k=G.push;Y=Y.value;var b="#EXT-X-MEDIA:TYPE=AUDIO,",d="YES",N="audio";if(Y.tq){N=Y.tq;var O=N.getId().split(".")[0];O&&(b+='LANGUAGE="'+O+'",');(this.X?this.X===N.getId():N.getIsDefault())||(d="NO");N=N.getName()}O="";t!==null&&(O=t.itag.toString());O=FT(this,Y.url,O);b=b+('NAME="'+N+'",DEFAULT='+(d+',AUTOSELECT=YES,GROUP-ID="'))+(kiJ(Y,t)+'",URI="'+(O+'"'));k.call(G,b)}}M=g.S(this.S);for(t=M.next();!t.done;t=M.next())t=t.value,c=m3F,t=(G=t.tq)?'#EXT-X-MEDIA:URI="'+FT(this,t.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+c+'",LANGUAGE="'+G.getId()+'",NAME="'+G.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,t&&n.push(t);M=this.S.length>0?m3F:void 0;t=g.S(this.W);for(c=t.next();!c.done;c=t.next())c=c.value,k=q[c.X],G=void 0,((G=k)==null?void 0:G.length)>0&&(G=c,k=k[0],k="#EXT-X-STREAM-INF:BANDWIDTH="+(G.bitrate+k.bitrate)+',CODECS="'+(G.codecs+","+k.codecs+'",RESOLUTION=')+(G.width+"x"+G.height+',AUDIO="')+(kiJ(k,G)+'",')+(M?'SUBTITLES="'+M+'",':"")+"CLOSED-CAPTIONS=NONE",G.fps>1&&(k+= ",FRAME-RATE="+G.fps),G.rd&&(k+=",VIDEO-RANGE="+G.rd),n.push(k),n.push(FT(this,c.url,"")));return n.join("\n")}; var m3F="text";g.y(Zu,mN);Zu.prototype.JW=function(){return this.expiration}; Zu.prototype.Zw=function(){if(!this.d7||this.d7.qm()){var n=this.W.build();n="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(n);this.d7=new yg(n)}return this.d7};g.y(aW,mN);aW.prototype.Zw=function(){return new yg(this.W.Ag())}; aW.prototype.Fp=function(){this.W=p9(this.W)};g.y(RW,mN);RW.prototype.Zw=function(){return new yg(this.W)};var K6={},sFu=(K6.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",K6.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",K6.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",K6.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",K6);g.W=g.oW.prototype;g.W.getId=function(){return this.id}; g.W.getName=function(){return this.name}; g.W.isServable=function(){return this.X}; g.W.Ag=function(){return this.url}; g.W.getXtags=function(){return this.xtags}; g.W.toString=function(){return this.languageCode+": "+g.w1(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.W.equals=function(n){return n?this.toString()===n.toString():!1}; g.W.ET=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var HhJ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},L1U={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},P2a=/^(\d*)_((\d*)_?(\d*))$/;var Tqd={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},lwd={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var kA={},$3n=(kA.ALWAYS=1,kA.BY_REQUEST=3,kA.UNKNOWN=void 0,kA),bw={},Fad=(bw.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",bw.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",bw.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",bw.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",bw);var m2R; m2R=function(n){for(var q=Object.keys(n),M={},t=0;tt-q?-1:n}; g.W.wq=function(){return this.W.Uq()}; g.W.QO=function(){return this.W.s2()}; g.W.dV=function(n){this.W=n};g.y(WO,Eh);WO.prototype.W=function(n,q){return Eh.prototype.W.call(this,"$N|"+n,q)}; WO.prototype.S=function(n,q,M){return new hK(n,q,M,this.isLive)};g.y(g.sh,g.MB);g.W=g.sh.prototype; g.W.setData=function(n){n=n||{};var q=n.errordetail;q!=null&&(this.errorDetail=q);var M=n.errorcode;M!=null?this.errorCode=M:n.status==="fail"&&(this.errorCode="auth");var t=n.reason;t!=null&&(this.errorReason=t);var c=n.subreason;c!=null&&(this.Cx=c);this.clientPlaybackNonce||(this.clientPlaybackNonce=n.cpn||(this.pm.Aq()?"r"+g.Ec(15):g.Ec(16)));this.Ux=pp(this.pm.Ux,n.livemonitor);KV1(this,n);var Y=n.raw_player_response;if(Y)this.mE=Y;else{var G=n.player_response;G&&(Y=JSON.parse(G))}Y&&(this.playerResponse= Y);if(this.playerResponse){var k=this.playerResponse.annotations;if(k)for(var b=g.S(k),d=b.next();!d.done;d=b.next()){var N=d.value.playerAnnotationsUrlsRenderer;if(N){N.adsOnly&&(this.gI=!0);var O=N.loadPolicy;O&&(this.annotationsLoadPolicy=$3n[O]);var e=N.invideoUrl;e&&(this.rJ=wj(e));break}}var E=this.playerResponse.attestation;E&&ulj(this,E);var h=this.playerResponse.cotn;h&&(this.cotn=h);var I=this.playerResponse.heartbeatParams;if(I){this.v9=!0;var L=I.heartbeatToken;L&&(this.drmSessionId=I.drmSessionId|| "",this.heartbeatToken=L,this.E7=Number(I.intervalMilliseconds),this.bQ=Number(I.maxRetries),this.g1=!!I.softFailOnError,this.cM=!!I.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=I.heartbeatServerData;var T;this.Z7=!((T=I.heartbeatAttestationConfig)==null||!T.requiresAttestation)}var v=this.playerResponse.messages;v&&m4d(this,v);var B=this.playerResponse.overlay;if(B){var m=B.playerControlsOverlayRenderer;if(m)if(F1J(this,m.controlBgHtml),m.mutedAutoplay){var a=g.R(m.mutedAutoplay,xEF);if(a&& a.endScreen){var x=g.R(a.endScreen,QpS);x&&x.text&&(this.y9=g.b8(x.text))}}else this.mutedAutoplay=!1}var V=this.playerResponse.playabilityStatus;if(V){var bf=V.backgroundability;bf&&bf.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Ka,dd;if((Ka=V.offlineability)==null?0:(dd=Ka.offlineabilityRenderer)==null?0:dd.offlineable)this.offlineable=!0;var gd=V.contextParams;gd&&(this.contextParams=gd);var MR=V.pictureInPicture;MR&&MR.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);V.playableInEmbed&&(this.allowEmbed=!0);var lf=V.ypcClickwrap;if(lf){var rd=lf.playerLegacyDesktopYpcClickwrapRenderer,gT=lf.ypcRentalActivationRenderer;if(rd)this.zF=rd.durationMessage||"",this.ZU=!0;else if(gT){var ND=gT.durationMessage;this.zF=ND?g.b8(ND):"";this.ZU=!0}}var V1=V.errorScreen;if(V1){if(V1.playerLegacyDesktopYpcTrailerRenderer){var uf=V1.playerLegacyDesktopYpcTrailerRenderer;this.ZM=uf.trailerVideoId||"";var K3=V1.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var $w=K3&&K3.ypcTrailerRenderer}else if(V1.playerLegacyDesktopYpcOfferRenderer)uf= V1.playerLegacyDesktopYpcOfferRenderer;else if(V1.ypcTrailerRenderer){$w=V1.ypcTrailerRenderer;var zL=$w.fullVideoMessage;this.gC=zL?g.b8(zL):"";var ku,l;this.ZM=((ku=g.R($w,pTO))==null?void 0:(l=ku.videoDetails)==null?void 0:l.videoId)||""}uf&&(this.zj=uf.itemTitle||"",uf.itemUrl&&(this.L6=uf.itemUrl),uf.itemBuyUrl&&(this.Hp=uf.itemBuyUrl),this.e9=uf.itemThumbnail||"",this.iJ=uf.offerHeadline||"",this.s5=uf.offerDescription||"",this.GF=uf.offerId||"",this.EX=uf.offerButtonText||"",this.aS=uf.offerButtonFormattedText|| null,this.x9=uf.overlayDurationMsec||NaN,this.gC=uf.fullVideoMessage||"",this.Es=!0);if($w){var uV=g.R($w,pTO);if(uV)this.qS={raw_player_response:uV};else{var LQ=g.R($w,kfF);this.qS=LQ?xd(LQ):null}this.Es=!0}}}var t_=this.playerResponse.playbackTracking;if(t_){var Ps=n,f=r1(t_.googleRemarketingUrl);f&&(this.googleRemarketingUrl=f);var qR=r1(t_.youtubeRemarketingUrl);qR&&(this.youtubeRemarketingUrl=qR);var v7={},xu=r1(t_.ptrackingUrl);if(xu){var aG=xl(xu),Ca=aG.oid;Ca&&(this.B3=Ca);var MD=aG.pltype; MD&&(this.bN=MD);var cg=aG.ptchn;cg&&(this.Up=cg);var w0=aG.ptk;w0&&(this.bJ=encodeURIComponent(w0));var H=aG.m;H&&(this.Ko=H)}var X=r1(t_.qoeUrl);if(X){for(var P=g.pr(X),D=g.S(Object.keys(P)),J=D.next();!J.done;J=D.next()){var ks=J.value,z=P[ks];P[ks]=Array.isArray(z)?z.join(","):z}this.yL=P;var p=P.cat;p&&(this.D("html5_enable_qoe_cat_list")?this.Sd=this.Sd.concat(p.split(",")):this.yh=p);var A=P.live;A&&(this.qJ=A);var La=P.drm_product;La&&(this.drmProduct=La)}var ys=r1(t_.videostatsPlaybackUrl); if(ys){var GU=xl(ys),kw=GU.adformat;if(kw){Ps.adformat=kw;var Rj=this.T(),Hd=vm_(kw,this.Pp,Rj.J,Rj.B);Hd&&(this.adFormat=Hd)}var qE=GU.aqi;qE&&(Ps.ad_query_id=qE);var Hs=GU.autoplay;Hs&&(this.xr=Hs=="1",this.Le=Hs=="1");var FO=GU.autonav;FO&&(this.isAutonav=FO=="1");var Pd=GU.delay;Pd&&(this.Wg=Bg(Pd));var Ip=GU.ei;Ip&&(this.eventId=Ip);var UJ=A4(GU.adcontext);if(UJ)try{var DA=xcL(UJ);DA&&(this.Y4=DA)}catch(xZs){g.PJ(Error("Malformed adContext"))}if(UJ||kw)this.xr=!0;var vs=GU.feature;vs&&(this.zd= vs);var bV=GU.list;bV&&(this.playlistId=bV);var TL=GU.of;TL&&(this.EB=TL);var nd=GU.osid;nd&&(this.osid=nd);var c7=GU.referrer;c7&&(this.referrer=c7);var JF=GU.sdetail;JF&&(this.BZ=JF);var AF=GU.ssrt;AF&&(this.h2=AF=="1");var vg=GU.subscribed;vg&&(this.subscribed=vg=="1");var rk=GU.uga;rk&&(this.userGenderAge=rk);var hS=GU.upt;hS&&(this.Au=hS);var ma=GU.vm;ma&&(this.videoMetadata=ma);v7.playback=GU}var qh=r1(t_.videostatsWatchtimeUrl);if(qh){var Mh=xl(qh),dk=Mh.ald;dk&&(this.pC=dk);v7.watchtime=Mh}var f7= r1(t_.atrUrl);if(f7){var $3=xl(f7);v7.atr=$3}var xq=r1(t_.engageUrl);if(xq){var F2=xl(xq);v7.engage=F2}this.F$=v7;if(t_.promotedPlaybackTracking){var ME=t_.promotedPlaybackTracking;ME.startUrls&&(this.vj=ME.startUrls);ME.firstQuartileUrls&&(this.J5=ME.firstQuartileUrls);ME.secondQuartileUrls&&(this.Cq=ME.secondQuartileUrls);ME.thirdQuartileUrls&&(this.mS=ME.thirdQuartileUrls);ME.completeUrls&&(this.wc=ME.completeUrls);ME.engagedViewUrls&&(ME.engagedViewUrls.length>1&&g.PJ(new g.aE("There are more than one engaged_view_urls.")), this.PZ=ME.engagedViewUrls[0])}}var Wb=this.playerResponse.playerCueRanges;Wb&&Wb.length>0&&(this.cueRanges=Wb);var $v=this.playerResponse.playerCueRangeSet;$v&&g.Ii(this,$v);a:{var hr=this.playerResponse.adPlacements;if(hr)for(var iA=g.S(hr),WW=iA.next();!WW.done;WW=iA.next()){var th=void 0,cZ=void 0,Y3=(th=WW.value.adPlacementRenderer)==null?void 0:(cZ=th.renderer)==null?void 0:cZ.videoAdTrackingRenderer;if(Y3){var Gc=Y3;break a}}Gc=null}var y0=Gc;t_&&t_.promotedPlaybackTracking&&y0&&g.PJ(new g.aE("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var Nv;if(!(Nv=y0))a:{for(var Kd=g.S(this.playerResponse.adSlots||[]),sI=Kd.next();!sI.done;sI=Kd.next()){var XX=g.R(sI.value,eB);if(XX===void 0||!Utu(XX))break;var m6=void 0,ZP=(m6=XX.fulfillmentContent)==null?void 0:m6.fulfilledLayout,ax=g.R(ZP,YW);if(ax&&q_(ax)){Nv=!0;break a}}Nv=!1}Nv&&(this.yy=!0);var Rx=this.playerResponse.playerAds;if(Rx)for(var ig=n,$F=g.S(Rx),Sy=$F.next();!Sy.done;Sy=$F.next()){var Fb=Sy.value;if(Fb){var tb=Fb.playerLegacyDesktopWatchAdsRenderer;if(tb){var ox=tb.playerAdParams; if(ox){ox.autoplay=="1"&&(this.Le=this.xr=!0);this.dI=ox.encodedAdSafetyReason||null;ox.showContentThumbnail!==void 0&&(this.wP=!!ox.showContentThumbnail);ig.enabled_engage_types=ox.enabledEngageTypes;break}}}}var HT=this.playerResponse.playerConfig;if(HT){var XP=HT.manifestlessWindowedLiveConfig;if(XP){var m7=Number(XP.minDvrSequence),c5=Number(XP.maxDvrSequence),jN=Number(XP.minDvrMediaTimeMs),Y4=Number(XP.maxDvrMediaTimeMs),Zn=Number(XP.startWalltimeMs);m7&&(this.qV=m7);jN&&(this.jX=jN/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&& D6(this)&&(this.DN=jN/1E3));c5&&(this.SL=c5);Y4&&(this.Fh=Y4/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&D6(this)&&(this.ZJ=Y4/1E3));Zn&&(this.O9=Zn/1E3);(m7||jN)&&(c5||Y4)&&(this.allowLiveDvr=this.isLivePlayback=this.RL=!0,this.C8=!1)}var SN=HT.daiConfig;if(SN){if(SN.enableDai){this.Fb=!0;var c9=SN.enableServerStitchedDai;c9&&(this.enableServerStitchedDai=c9);var MG=SN.enablePreroll;MG&&(this.hj=MG)}var en;if(SN.daiType==="DAI_TYPE_SS_DISABLED"||((en=SN.debugInfo)==null?0:en.isDisabledUnpluggedChannel))this.mp= !0;SN.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.uf=!0);SN.allowUstreamerRequestAdconfig&&(this.jn=!0)}var K1=HT.audioConfig;if(K1){var $d=K1.loudnessDb;$d!=null&&(this.NV=$d);var AVU=K1.trackAbsoluteLoudnessLkfs;AVU!=null&&(this.z3=AVU);var mW1=K1.loudnessTargetLkfs;mW1!=null&&(this.loudnessTargetLkfs=mW1);K1.audioMuted&&(this.WR=!0);K1.muteOnStart&&(this.VL=!0);var fh=K1.loudnessNormalizationConfig;if(fh){fh.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);fh.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var $Ws=fh.minimumLoudnessTargetLkfs;$Ws!=null&&(this.minimumLoudnessTargetLkfs=$Ws);var Fi1=fh.maxStatefulTimeThresholdSec;Fi1!=null&&(this.maxStatefulTimeThresholdSec=Fi1)}K1.playAudioOnly&&(this.h1=!0)}var mv1=HT.playbackEndConfig;if(mv1){var ZId=mv1.endSeconds,aOs=mv1.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(ZId&&(this.endSeconds=ZId),aOs&&(this.limitedPlaybackDurationInSeconds=aOs))}var vQ=HT.fairPlayConfig;if(vQ){var Rsf=vQ.certificate;Rsf&& (this.AE=A4(Rsf));var ozu=Number(vQ.keyRotationPeriodMs);ozu>0&&(this.Hj=ozu);var w8j=Number(vQ.keyPrefetchMarginMs);w8j>0&&(this.ys=w8j)}var Dt=HT.playbackStartConfig;if(Dt){this.jd=Number(Dt.startSeconds);var zss=Dt.liveUtcStartSeconds,JVJ=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;zss&&!JVJ&&(this.liveUtcStartSeconds=Number(zss));var $vs=Dt.startPosition;if($vs){var Vja=$vs.utcTimeMillis;Vja&&!JVJ&&(this.liveUtcStartSeconds=Number(Vja)*.001);var C6k=$vs.streamTimeMillis;C6k&&(this.cn= Number(C6k)*.001)}this.progressBarStartPosition=Dt.progressBarStartPosition;this.progressBarEndPosition=Dt.progressBarEndPosition}else{var Fdd=HT.skippableSegmentsConfig;if(Fdd){var rVJ=Fdd.introSkipDurationMs;rVJ&&(this.wp=Number(rVJ)/1E3);var xWR=Fdd.outroSkipDurationMs;xWR&&(this.Od=Number(xWR)/1E3)}}var ZHU=HT.skippableIntroConfig;if(ZHU){var Q5d=Number(ZHU.startMs),p8J=Number(ZHU.endMs);isNaN(Q5d)||isNaN(p8J)||(this.u$=Q5d,this.SR=p8J)}var nXj=HT.streamSelectionConfig;nXj&&(this.JQ=Number(nXj.maxBitrate)); var q1k=HT.vrConfig;q1k&&(this.VK=q1k.partialSpherical=="1");var HI=HT.webDrmConfig;if(HI){HI.skipWidevine&&(this.IR=!0);var Mpj=HI.widevineServiceCert;Mpj&&(this.S_=A4(Mpj));HI.useCobaltWidevine&&(this.useCobaltWidevine=!0);HI.startWithNoQualityConstraint&&(this.Wk=!0)}var Ad=HT.mediaCommonConfig;if(Ad){var T_=Ad.dynamicReadaheadConfig;if(T_){this.maxReadAheadMediaTimeMs=T_.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=T_.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=T_.readAheadGrowthRateMs|| NaN;var inJ,tpU=Ad==null?void 0:(inJ=Ad.mediaUstreamerRequestConfig)==null?void 0:inJ.videoPlaybackUstreamerConfig;tpU&&(this.f_=A4(tpU));var aBC=Ad==null?void 0:Ad.sabrContextUpdates;if(aBC&&aBC.length>0)for(var c$a=g.S(aBC),RE_=c$a.next();!RE_.done;RE_=c$a.next()){var Mi=RE_.value;if(Mi.type&&Mi.value){var gjA={type:Mi.type,scope:Mi.scope,value:A4(Mi.value)||void 0,sendByDefault:Mi.sendByDefault};this.sabrContextUpdates.set(Mi.type,gjA)}}}var Y1k=Ad.serverPlaybackStartConfig;Y1k&&(this.serverPlaybackStartConfig= Y1k);Ad.useServerDrivenAbr&&(this.He=!0);var Ggu=Ad.requestPipeliningConfig;Ggu&&(this.requestPipeliningConfig=Ggu)}var KUj=HT.inlinePlaybackConfig;KUj&&(this.v2=!!KUj.showAudioControls);var lu=HT.embeddedPlayerConfig;if(lu){this.embeddedPlayerConfig=lu;var oqs=lu.embeddedPlayerMode;if(oqs){var kgU=this.T();kgU.jX=oqs;kgU.Z=oqs==="EMBEDDED_PLAYER_MODE_PFL"}var bns=lu.permissions;bns&&(this.allowImaMonetization=!!bns.allowImaMonetization)}var Ud=HT.webPlayerConfig;Ud&&(Ud.gatewayExperimentGroup&&(this.gatewayExperimentGroup= Ud.gatewayExperimentGroup),Ud.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var mX=this.playerResponse.streamingData;if(mX){var wns=mX.formats;if(wns){for(var Lh=[],d$C=g.S(wns),zEU=d$C.next();!zEU.done;zEU=d$C.next()){var Jlj=zEU.value;Lh.push(Jlj.itag+"/"+Jlj.width+"x"+Jlj.height)}this.fG=Lh.join(",");Lh=[];for(var Np1=g.S(wns),ViU=Np1.next();!ViU.done;ViU=Np1.next()){var PI=ViU.value,vI={itag:PI.itag,type:PI.mimeType,quality:PI.quality},Ona=PI.url;Ona&&(vI.url=Ona);var uu=nS(PI),els=uu.bA, Ejs=uu.DQ,hlF=uu.s;uu.kN&&(vI.url=els,vI.sp=Ejs,vI.s=hlF);Lh.push(g.Eu(vI))}this.VA=Lh.join(",")}var CEu=mX.hlsFormats;if(CEu){var gXk=HT||null,BQ={};if(gXk){var rls=gXk.audioPairingConfig;if(rls&&rls.pairs)for(var epd=g.S(rls.pairs),xvk=epd.next();!xvk.done;xvk=epd.next()){var EXm=xvk.value,QgR=EXm.videoItag;BQ[QgR]||(BQ[QgR]=[]);BQ[QgR].push(EXm.audioItag)}}for(var hpC={},WUd=g.S(CEu),pnf=WUd.next();!pnf.done;pnf=WUd.next()){var y$1=pnf.value;hpC[y$1.itag]=y$1.bitrate}for(var sIu=[],XEU=g.S(CEu), nvs=XEU.next();!nvs.done;nvs=XEU.next()){var Cd=nvs.value,jg={itag:Cd.itag,type:Cd.mimeType,url:Cd.url,bitrate:Cd.bitrate,width:Cd.width,height:Cd.height,fps:Cd.fps},Di=Cd.audioTrack;if(Di){var jI1=Di.displayName;jI1&&(jg.name=jI1,jg.audio_track_id=Di.id,Di.audioIsDefault&&(jg.is_default="1"))}if(Cd.drmFamilies){for(var S1u=[],IKs=g.S(Cd.drmFamilies),qPR=IKs.next();!qPR.done;qPR=IKs.next())S1u.push(aX[qPR.value]);jg.drm_families=S1u.join(",")}var Az=BQ[Cd.itag];if(Az&&Az.length){jg.audio_itag=Az.join(","); var fKR=hpC[Az[0]];fKR&&(jg.bitrate+=fKR)}var Hnd=cAk(Cd);Hnd&&(jg.eotf=Hnd);Cd.audioChannels&&(jg.audio_channels=Cd.audioChannels);sIu.push(g.Eu(jg))}this.hlsFormats=sIu.join(",")}var M2C=mX.licenseInfos;if(M2C&&M2C.length>0){for(var LUd={},PDR=g.S(M2C),i0U=PDR.next();!i0U.done;i0U=PDR.next()){var vX1=i0U.value,TpU=vX1.drmFamily,lKd=vX1.url;TpU&&lKd&&(LUd[aX[TpU]]=lKd)}this.f8=LUd}var U$k=mX.drmParams;U$k&&(this.drmParams=U$k);var uzf=mX.dashManifestUrl;uzf&&(this.yS=g.hC(uzf,{cpn:this.clientPlaybackNonce})); var Bpa=mX.hlsManifestUrl;Bpa&&(this.hlsvp=Bpa);var D$d=mX.probeUrl;D$d&&(this.probeUrl=wj(g.hC(D$d,{cpn:this.clientPlaybackNonce})));var A$R=mX.serverAbrStreamingUrl;A$R&&(this.yH=new g.Jc(A$R,!0))}var m$C=this.playerResponse.trackingParams;m$C&&(this.SX=m$C);var S5=this.playerResponse.videoDetails;if(S5){var Sg=n,t2m=S5.videoId;t2m&&(this.videoId=t2m,Sg.video_id||(Sg.video_id=t2m));var cSs=S5.title;cSs&&(this.title=cSs,Sg.title||(Sg.title=cSs));var YPu=S5.lengthSeconds;YPu&&(this.lengthSeconds= Number(YPu),Sg.length_seconds||(Sg.length_seconds=YPu));var $$s=S5.keywords;$$s&&(this.keywords=Ntu($$s));var Gxa=S5.channelId;Gxa&&(this.xp=Gxa,Sg.ucid||(Sg.ucid=Gxa));var FU1=S5.viewCount;FU1&&(this.rawViewCount=Number(FU1));var Kas=S5.author;Kas&&(this.author=Kas,Sg.author||(Sg.author=Kas));var ZnR=S5.shortDescription;ZnR&&(this.shortDescription=ZnR);var aKk=S5.isCrawlable;aKk&&(this.isListed=aKk);var Rpk=S5.musicVideoType;Rpk&&(this.musicVideoType=Rpk);var kxm=S5.isLive;kxm!=null&&(this.isLivePlayback= kxm);if(kxm||S5.isUpcoming)this.isPremiere=!S5.isLiveContent;var oXm=S5.thumbnail;oXm&&(this.B=Cl(oXm));var wEu=S5.isExternallyHostedPodcast;wEu&&(this.isExternallyHostedPodcast=wEu);var b0f=S5.viewerLivestreamJoinPosition;if(b0f==null?0:b0f.utcTimeMillis)this.sX=Bg(b0f.utcTimeMillis);var zp_=HT||null,d31=n;S5.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);S5.isUpcoming&&(this.isUpcoming=!0);if(S5.isPostLiveDvr){this.C8=!0;var J$k=S5.latencyClass;J$k&&(this.latencyClass=Fad[J$k]||"UNKNOWN"); S5.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var Nrm=!1;this.Ux?(this.allowLiveDvr=Hr()?!0:JP&&QJ<5?!1:!0,this.isLivePlayback=!0):S5.isLive?(d31.livestream="1",this.allowLiveDvr=S5.isLiveDvrEnabled?Hr()?!0:JP&&QJ<5?!1:!0:!1,this.partnerId=27,Nrm=!0):S5.isUpcoming&&(Nrm=!0);if(S5.isLive||this.Ux){S5.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var Vpj=S5.latencyClass;Vpj&&(this.latencyClass=Fad[Vpj]||"UNKNOWN");var CDd=S5.liveChunkReadahead;CDd&&(this.liveChunkReadahead= CDd);var AN=zp_&&zp_.livePlayerConfig;if(AN){AN.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);AN.hasSubfragmentedWebm&&(this.WB=!0);AN.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var r$f=AN.liveExperimentalContentId;r$f&&(this.liveExperimentalContentId=Number(r$f));var x$d=AN.isLiveHeadPlayable;this.D("html5_live_head_playable")&&x$d!=null&&(this.isLiveHeadPlayable=x$d)}}Nrm&&(this.isLivePlayback=!0,d31.adformat&&d31.adformat.split("_")[1]!=="8"||this.wJ.push("heartbeat"))}var QIC= S5.isPrivate;QIC!==void 0&&(this.isPrivate=pp(this.isPrivate,QIC))}if(V){var pEj=S5||null,nkd=!1,gO=V.errorScreen;nkd=gO&&(gO.playerLegacyDesktopYpcOfferRenderer||gO.playerLegacyDesktopYpcTrailerRenderer||gO.ypcTrailerRenderer)?!0:pEj&&pEj.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(V.status);if(!nkd){this.errorCode=XId(V.errorCode)||"auth";var mx=gO&&gO.playerErrorMessageRenderer;if(mx){this.playerErrorMessageRenderer=mx;var qzm=mx.reason;qzm&&(this.errorReason=g.b8(qzm)); var O0_=mx.subreason;O0_&&(this.Cx=g.b8(O0_),this.Lo=O0_)}else this.errorReason=V.reason||null;var gvJ=V.status;if(gvJ==="LOGIN_REQUIRED")this.errorDetail="1";else if(gvJ==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(gvJ==="AGE_CHECK_REQUIRED"){var M8J=V.errorScreen,iUa=M8J&&M8J.playerKavRenderer;this.errorDetail=iUa&&iUa.kavUrl?"4":"3"}else{var t8m,cLR,YzR,WAL=(YzR=gO==null?void 0:(t8m=gO.playerErrorMessageRenderer)==null?void 0:(cLR=t8m.proceedButton)==null?void 0:cLR.buttonRenderer)== null?void 0:YzR.command;if(V.isBlockedInRestrictedMode)this.errorDetail="5";else{var GOU;((GOU=g.R(WAL,UEF))==null?void 0:GOU.signal)==="RELOAD_PAGE"?this.errorDetail="7":this.errorDetail="0"}}}}var KIs=this.playerResponse.interstitialPods;KIs&&AOu(this,KIs);this.rJ&&this.eventId&&(this.rJ=qs(this.rJ,{ei:this.eventId}));var eAd=this.playerResponse.captions;if(eAd&&eAd.playerCaptionsTracklistRenderer)a:{var I9=eAd.playerCaptionsTracklistRenderer;this.captionTracks=[];if(I9.captionTracks)for(var kOR= g.S(I9.captionTracks),Evj=kOR.next();!Evj.done;Evj=kOR.next()){var f1=Evj.value,bUk=bwj(f1.baseUrl);if(!bUk)break a;var hAR={is_translateable:!!f1.isTranslatable,languageCode:f1.languageCode,languageName:f1.name&&g.b8(f1.name),url:bUk,vss_id:f1.vssId,kind:f1.kind};hAR.name=f1.trackName;hAR.displayName=f1.name&&g.b8(f1.name);this.captionTracks.push(new g.oW(hAR))}this.JA=I9.audioTracks||[];this.u9=I9.defaultAudioTrackIndex||0;this.lJ=[];if(I9.translationLanguages)for(var daa=g.S(I9.translationLanguages), WaJ=daa.next();!WaJ.done;WaJ=daa.next()){var mE=WaJ.value,ia={};ia.languageCode=mE.languageCode;ia.languageName=g.b8(mE.languageName);if(mE.translationSourceTrackIndices){ia.translationSourceTrackIndices=[];for(var NI1=g.S(mE.translationSourceTrackIndices),ySm=NI1.next();!ySm.done;ySm=NI1.next())ia.translationSourceTrackIndices.push(ySm.value)}if(mE.excludeAudioTrackIndices){ia.excludeAudioTrackIndices=[];for(var OUm=g.S(mE.excludeAudioTrackIndices),sls=OUm.next();!sls.done;sls=OUm.next())ia.excludeAudioTrackIndices.push(sls.value)}this.lJ.push(ia)}this.IS= [];if(I9.defaultTranslationSourceTrackIndices)for(var gku=g.S(I9.defaultTranslationSourceTrackIndices),Xbm=gku.next();!Xbm.done;Xbm=gku.next())this.IS.push(Xbm.value);this.ql=!!I9.contribute&&!!I9.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.jd=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&& $4R(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var eYR;this.compositeLiveIngestionOffsetToken=(eYR=this.playerResponse.playbackTracking)==null?void 0:eYR.compositeLiveIngestionOffsetToken;var Eka;this.compositeLiveStatusToken=(Eka=this.playerResponse.playbackTracking)==null?void 0:Eka.compositeLiveStatusToken;this.D("html5_fill_default_mosaic_audio_track_id")&&E9(this)&&(this.pm.Yl=nhk(this));var hYd,WIu,yLs=(hYd=this.playerResponse.playerConfig)==null?void 0:(WIu= hYd.granularVariableSpeedConfig)==null?void 0:WIu.minimumPlaybackRate,soU,Xyk,jo_=(soU=this.playerResponse.playerConfig)==null?void 0:(Xyk=soU.granularVariableSpeedConfig)==null?void 0:Xyk.maximumPlaybackRate;yLs&&jo_&&(this.Ks=yLs/100,this.hU=jo_/100)}jm(this,n);n.queue_info&&(this.queueInfo=n.queue_info);var Szu=n.hlsdvr;Szu!=null&&(this.allowLiveDvr=Number(Szu)===1?Hr()?!0:JP&&QJ<5?!1:!0:!1);this.adQueryId=n.ad_query_id||null;this.dI||(this.dI=n.encoded_ad_safety_reason||null);this.WR=pp(this.WR, n.infringe||n.muted);this.a6x=n.authkey;this.uX=n.authuser;this.mutedAutoplay=pp(this.mutedAutoplay,n&&n.playmuted);this.mutedAutoplayDurationMode=qy(this.mutedAutoplayDurationMode,n&&n.muted_autoplay_duration_mode);this.Vc=pp(this.Vc,n&&n.mutedautoplay);var $E=n.length_seconds;$E&&(this.lengthSeconds=typeof $E==="string"?Bg($E):$E);if(this.isAd()||this.J_||!g.Yj(g.OR(this.pm)))this.endSeconds=qy(this.endSeconds,this.Od||n.end||n.endSeconds);else{var yJK=g.OR(this.pm),Fw=this.lengthSeconds;switch(yJK){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Fw> 30?this.limitedPlaybackDurationInSeconds=30:Fw<30&&Fw>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=Fw*.2}}this.SX=My(this.SX,n.itct);this.Ot=pp(this.Ot,n.is_live_destination);this.isLivePlayback=pp(this.isLivePlayback,n.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.r7();n.isUpcoming&&(this.isUpcoming=pp(this.isUpcoming,n.isUpcoming));this.C8=pp(this.C8,n.post_live_playback); this.RL&&(this.C8=!1);this.isMdxPlayback=pp(this.isMdxPlayback,n.mdx);var Zi=n.mdx_control_mode;Zi&&(this.mdxControlMode=typeof Zi==="number"?Zi:Bg(Zi));this.isInlinePlaybackNoAd=pp(this.isInlinePlaybackNoAd,n.is_inline_playback_no_ad);this.Yi=qy(this.Yi,n.reload_count);this.reloadReason=My(this.reloadReason,n.reload_reason);this.wP=pp(this.wP,n.show_content_thumbnail);this.cycToken=n.cyc||null;var IoU=Vb(n);Object.keys(IoU).length>0&&(this.B=IoU);this.IL=My(this.IL,n.vvt);this.mdxEnvironment=My(this.mdxEnvironment, n.mdx_environment);n.source_container_playlist_id&&(this.sourceContainerPlaylistId=n.source_container_playlist_id);n.serialized_mdx_metadata&&(this.serializedMdxMetadata=n.serialized_mdx_metadata);this.Z9d=n.osig;this.eventId||(this.eventId=n.eventid);this.osid||(this.osid=n.osid);this.playlistId=My(this.playlistId,n.list);n.index&&(this.playlistIndex=this.playlistIndex===void 0?qy(0,n.index):qy(this.playlistIndex,n.index));this.K5=n.pyv_view_beacon_url;this.eO=n.pyv_quartile25_beacon_url;this.UO= n.pyv_quartile50_beacon_url;this.B6=n.pyv_quartile75_beacon_url;this.H6=n.pyv_quartile100_beacon_url;var fo_=n.session_data;!this.v6&&fo_&&(this.v6=Cr(fo_,"&").feature);this.isFling=qy(this.isFling?1:0,n.is_fling)===1;this.vnd=qy(this.vnd,n.vnd);this.forceAdsUrl=My(this.forceAdsUrl,n.force_ads_url);this.We=My(this.We,n.ctrl);this.v_=My(this.v_,n.ytr);this.QI=n.ytrcc;this.kI=n.ytrexp;this.PE=n.ytrext;this.YB=My(this.YB,n.adformat);this.Pp=My(this.Pp,n.attrib);this.slotPosition=qy(this.slotPosition, n.slot_pos);this.breakType=n.break_type;this.h2=pp(this.h2,n.ssrt);this.videoId=tJ(n)||this.videoId;this.C=My(this.C,n.vss_credentials_token);this.Ww=My(this.Ww,n.vss_credentials_token_type);this.h1=pp(this.h1,n.audio_only);this.V1=pp(this.V1,n.aac_high);this.kc=pp(this.kc,n.prefer_low_quality_audio);this.pG=pp(this.pG,n.uncap_inline_quality);this.D("html5_enable_qoe_cat_list")?n.qoe_cat&&(this.Sd=this.Sd.concat(n.qoe_cat.split(","))):this.yh=My(this.yh,n.qoe_cat);this.s7=pp(this.s7,n.download_media); var HU_=n.prefer_gapless;this.N=HU_!=null?pp(this.N,HU_):this.N?this.N:this.pm.preferGapless&&this.pm.supportsGaplessShorts();Kqd(this.playerResponse)&&this.wJ.push("ad");var LIj=n.adaptive_fmts;LIj&&(this.adaptiveFormats=LIj,this.Xy("adpfmts",{},!0));var P1f=n.allow_embed;P1f&&(this.allowEmbed=Number(P1f)===1);var vkJ=n.backgroundable;vkJ&&(this.backgroundable=Number(vkJ)===1);var TIm=n.autonav;TIm&&(this.isAutonav=Number(TIm)===1);var lo1=n.autoplay;lo1&&(this.xr=this.Le=Number(lo1)===1);var Uam= n.iv_load_policy;Uam&&(this.annotationsLoadPolicy=nL(this.annotationsLoadPolicy,Uam,g1));var u6C=n.cc_lang_pref;u6C&&(this.captionsLanguagePreference=My(u6C,this.captionsLanguagePreference));var BI1=n.cc_load_policy;BI1&&(this.T5=nL(this.T5,BI1,g1));var Dad;this.deviceCaptionsOn=(Dad=n.device_captions_on)!=null?Dad:void 0;var ALj;this.yJ=(ALj=n.device_captions_lang_pref)!=null?ALj:"";var mak;this.dY=(mak=n.viewer_selected_caption_langs)!=null?mak:[];var $ad=n.cached_load;$ad&&(this.IV=pp(this.IV, $ad));if(n.dash==="0"||n.dash===0||n.dash===!1)this.Sh=!0;var FIs=n.dashmpd;FIs&&(this.yS=g.hC(FIs,{cpn:this.clientPlaybackNonce}));var ZUd=n.delay;ZUd&&(this.Wg=Bg(ZUd));var jla=this.Od||n.end;if(this.Kd?jla!=null:jla!=void 0)this.clipEnd=qy(this.clipEnd,jla);var aok=n.fmt_list;aok&&(this.fG=aok);n.heartbeat_preroll&&this.wJ.push("heartbeat");this.Bp=-Math.floor(Math.random()*10);this.vp=-Math.floor(Math.random()*40);var RYJ=n.is_listed;RYJ&&(this.isListed=pp(this.isListed,RYJ));var oks=n.is_private; oks&&(this.isPrivate=pp(this.isPrivate,oks));var wym=n.is_dni;wym&&(this.wZ=pp(this.wZ,wym));var zY_=n.dni_color;zY_&&(this.H$=My(this.H$,zY_));var JLJ=n.pipable;JLJ&&(this.pipable=pp(this.pipable,JLJ));this.VM=(this.Nq=this.pipable&&this.pm.gI)&&!this.pm.showMiniplayerButton;var V8C=n.paid_content_overlay_duration_ms;V8C&&(this.paidContentOverlayDurationMs=Bg(V8C));var C1d=n.paid_content_overlay_text;C1d&&(this.paidContentOverlayText=C1d);var rLJ=n.url_encoded_fmt_stream_map;rLJ&&(this.VA=rLJ);var xa_= n.hls_formats;xa_&&(this.hlsFormats=xa_);var Qou=n.hlsvp;Qou&&(this.hlsvp=Qou);var aO=n.live_start_walltime;aO&&(this.hux=typeof aO==="number"?aO:Bg(aO));var RO=n.live_manifest_duration;RO&&(this.To=typeof RO==="number"?RO:Bg(RO));var pya=n.player_params;pya&&(this.playerParams=pya);var nEJ=n.partnerid;nEJ&&(this.partnerId=qy(this.partnerId,nEJ));var qdj=n.probe_url;qdj&&(this.probeUrl=wj(g.hC(qdj,{cpn:this.clientPlaybackNonce})));var SPu=n.pyv_billable_url;SPu&&E7j(SPu)&&(this.PZ=SPu);var Ivm=n.pyv_conv_url; Ivm&&E7j(Ivm)&&(this.y3=Ivm);Owd(this,n);this.startSeconds>0?this.D("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.jd||this.wp||n.start||n.startSeconds)&&this.Xy("lss",{css:this.startSeconds,pcss:this.jd,iss:this.wp,ps:n.start||void 0,pss:n.startSeconds||void 0}):this.uG=this.startSeconds=qy(this.startSeconds,this.jd||this.wp||n.start||n.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var MYu=n.live_utc_start;if(MYu!=null)this.liveUtcStartSeconds=Number(MYu); else{var fv_=this.startSeconds;fv_&&isFinite(fv_)&&fv_>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var ivs=n.utc_start_millis;ivs&&(this.liveUtcStartSeconds=Number(ivs)*.001)}var tY_=n.stream_time_start_millis;tY_&&(this.cn=Number(tY_)*.001);var H0_=this.wp||n.start;(this.Kd?H0_==null||Number(n.resume)===1:H0_==void 0||n.resume=="1")||this.isLivePlayback||(this.clipStart=qy(this.clipStart,H0_));var czf=n.url_encoded_third_party_media; czf&&(this.Fw=Q8(czf));var Laf=n.ypc_offer_button_formatted_text;if(Laf){var YdJ=JSON.parse(Laf);this.aS=YdJ!=null?YdJ:null;this.EK=Laf}var G_d=n.ypc_offer_button_text;G_d&&(this.EX=G_d);var Kxk=n.ypc_offer_description;Kxk&&(this.s5=Kxk);var k__=n.ypc_offer_headline;k__&&(this.iJ=k__);var bv1=n.ypc_full_video_message;bv1&&(this.gC=bv1);var dqa=n.ypc_offer_id;dqa&&(this.GF=dqa);var Nvs=n.ypc_buy_url;Nvs&&(this.Hp=Nvs);var Ov1=n.ypc_item_thumbnail;Ov1&&(this.e9=Ov1);var gEJ=n.ypc_item_title;gEJ&&(this.zj= gEJ);var eej=n.ypc_item_url;eej&&(this.L6=eej);var EEd=n.ypc_vid;EEd&&(this.ZM=EEd);n.ypc_overlay_timeout&&(this.x9=Number(n.ypc_overlay_timeout));var hej=n.ypc_trailer_player_vars;hej&&(this.qS=xd(hej));var Wxm=n.ypc_original_itct;Wxm&&(this.fI=Wxm);this.xp=My(this.xp,n.ucid);this.dG=n.storyboard_spec||null;this.U7=n.live_storyboard_spec||null;this.F9=n.iv_endscreen_url||null;this.Es=pp(this.Es,n.ypc_module);this.ZU=pp(this.ZU,n.ypc_clickwrap_module);this.Es&&this.wJ.push("ypc");this.ZU&&this.wJ.push("ypc_clickwrap"); this.De={video_id:n.video_id,eventid:n.eventid,cbrand:n.cbrand,cbr:n.cbr,cbrver:n.cbrver,c:n.c,cver:n.cver,ctheme:n.ctheme,cplayer:n.cplayer,cmodel:n.cmodel,cnetwork:n.cnetwork,cos:n.cos,cosver:n.cosver,cplatform:n.cplatform,user_age:n.user_age,user_display_image:n.user_display_image,user_display_name:n.user_display_name,user_gender:n.user_gender,csi_page_type:n.csi_page_type,csi_service_name:n.csi_service_name,enablecsi:n.enablecsi,enabled_engage_types:n.enabled_engage_types};kPd(this,n);var yzU= n.cotn;yzU&&(this.cotn=yzU);if(fYm(this))$p(this)&&(this.isLivePlayback&&this.yS&&(this.tB=!0),this.AE&&(this.J4=!0));else if(HwU(this))this.tB=!0;else{var sOu,XQf,jO_=((sOu=this.playerResponse)==null?void 0:(XQf=sOu.streamingData)==null?void 0:XQf.adaptiveFormats)||[],$V=null;if(jO_.length>0)$V=IY_(this,jO_);else if(!this.D("html5_deprecate_adaptive_formats_string")){this.Xy("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var Sdd=this.adaptiveFormats;if(Sdd&&!$p(this)){this.pm.S.Z&&(q0=!0); var Fd=zT(Sdd),PKs=this.f8,IiU=this.lengthSeconds,sEs=this.isLivePlayback,Ti=this.C8,Zt=this.pm,XfK=ses(Fd);if(sEs||Ti){var fif=Zt==null?void 0:Zt.experiments,Ag=new Fu("",fif,!0);Ag.r7=!0;Ag.isManifestless=!0;Ag.W=!Ti;Ag.isLive=!Ti;Ag.C8=Ti;for(var Hvs=g.S(Fd),vv_=Hvs.next();!vv_.done;vv_=Hvs.next()){var a1=vv_.value,LxR=oX(a1,PKs),tY=wm(a1.url,a1.sp,a1.s),Puj=tY.get("id");Puj&&Puj.includes("%7E")&&(Ag.xl=!0);var vEm=void 0,jEQ=(vEm=fif)==null?void 0:vEm.Hb("html5_max_known_end_time_rebase"),Sgw= Number(a1.target_duration_sec)||5,I1F=Number(a1.max_dvr_duration_sec)||14400,Tvf=Number(tY.get("mindsq")||tY.get("min_sq")||"0"),lid=Number(tY.get("maxdsq")||tY.get("max_sq")||"0")||Infinity;Ag.qV=Ag.qV||Tvf;Ag.SL=Ag.SL||lid;var f1K=!iN(LxR.mimeType);tY&&Ay(Ag,new sb(tY,LxR,{Be:Sgw,qD:f1K,DM:I1F,qV:Tvf,SL:lid,XA:300,C8:Ti,vc:jEQ}))}var Uq_=Ag}else{if(XfK==="FORMAT_STREAM_TYPE_OTF"){var oO=IiU;oO=oO===void 0?0:oO;var R1=new Fu("",Zt==null?void 0:Zt.experiments,!1);R1.duration=oO||0;for(var uwu=g.S(Fd), TrJ=uwu.next();!TrJ.done;TrJ=uwu.next()){var o1=TrJ.value,lvJ=oX(o1,PKs,R1.duration),U3a=wm(o1.url,o1.sp,o1.s);if(U3a)if(lvJ.streamType==="FORMAT_STREAM_TYPE_OTF")Ay(R1,new Xu(U3a,lvJ,"sq/0"));else{var HLF=pS(o1.init),LAs=pS(o1.index);Ay(R1,new uh(U3a,lvJ,HLF,LAs))}}R1.isOtf=!0;var Bva=R1}else{var wv=IiU;wv=wv===void 0?0:wv;var z_=new Fu("",Zt==null?void 0:Zt.experiments,!1);z_.duration=wv||0;for(var Dqj=g.S(Fd),u9k=Dqj.next();!u9k.done;u9k=Dqj.next()){var wb=u9k.value,PJd=oX(wb,PKs,z_.duration), vjF=pS(wb.init),TFT=pS(wb.index),AzC=wm(wb.url,wb.sp,wb.s);AzC&&Ay(z_,new uh(AzC,PJd,vjF,TFT))}Bva=z_}Uq_=Bva}var mqs=Uq_;if(Fd.length>0){var $qk=Fd[0];if(this.T().playerStyle==="hangouts-meet"&&$qk.url){var l1w=g.pr($qk.url);this.dC=this.dC||Number(l1w.expire)}}var UyL=this.isLivePlayback&&!this.C8&&!this.RL&&!this.isPremiere;this.D("html5_live_head_playable")&&(!F1(this)&&UyL&&this.Xy("missingLiveHeadPlayable",{}),this.pm.xl==="yt"&&(mqs.AE=!0));$V=mqs}else $V=null;this.Xy("pafmts",{isManifestFilled:!!$V})}if($V){Ri(this, $V);var Fxs=!0}else Fxs=!1;Fxs?this.enableServerStitchedDai=this.enableServerStitchedDai&&Z6(this):this.yS&&(this.pm.xl==="yt"&&this.r7()&&this.D("drm_manifestless_unplugged")&&this.D("html5_deprecate_manifestful_fallback")?this.Xy("deprecateMflFallback",{}):this.tB=!0)}var Brm=n.adpings;Brm&&(this.Fj=Brm?xd(Brm):null);var Zvm=n.feature;Zvm&&(this.zd=Zvm);var aiu=n.referrer;aiu&&(this.referrer=aiu);this.clientScreenNonce=My(this.clientScreenNonce,n.csn);this.wk=qy(this.wk,n.root_ve_type);this.A0= qy(this.A0,n.kids_age_up_mode);this.Kd||n.kids_app_info==void 0||(this.kidsAppInfo=n.kids_app_info);this.Kd&&n.kids_app_info!=null&&(this.kidsAppInfo=n.kids_app_info);this.Fe=pp(this.Fe,n.upg_content_filter_mode);this.unpluggedFilterModeType=qy(this.unpluggedFilterModeType,n.unplugged_filter_mode_type);var Rem=n.unplugged_location_info;Rem&&(this.Wm=Rem);var oE_=n.unplugged_partner_opt_out;oE_&&(this.Nh=My("",oE_));this.nG=pp(this.nG,n.disable_watch_next);this.CG=My(this.CG,n.internal_ip_override); this.PW=!!n.is_yto_interstitial;(this.interstitials.length||this.PW)&&this.wJ.push("yto");var wQd=n.h_;wQd&&(this.h_=wQd);this.U=My(this.U,n.csi_timer);n.watchUrl&&(this.watchUrl=n.watchUrl);var ch=n.watch_endpoint;this.D("html5_attach_watch_endpoint_ustreamer_config")&&ch&&Iwf(this,ch);if(ch==null?0:ch.ustreamerConfig)this.nR=A4(ch.ustreamerConfig);var zef,Jzj,VYf=ch==null?void 0:(zef=ch.loggingContext)==null?void 0:(Jzj=zef.qoeLoggingContext)==null?void 0:Jzj.serializedContextData;VYf&&(this.xWm= VYf);g.t8(this.pm)&&this.pm.S_&&(this.embedsRct=My(this.embedsRct,n.rct),this.embedsRctn=My(this.embedsRctn,n.rctn));n.embed_config&&(this.Vs=n.embed_config);this.uh=this.uh||!!n.pause_at_start;n.default_active_source_video_id&&(this.defaultActiveSourceVideoId=n.default_active_source_video_id)}; g.W.T=function(){return this.pm}; g.W.D=function(n){return this.pm.D(n)}; g.W.kM=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.W.hasSupportedAudio51Tracks=function(){var n;return!((n=this.uI)==null||!n.QS)}; g.W.getUserAudio51Preference=function(){var n=1;HN(this.pm)&&this.D("html5_ytv_surround_toggle_default_off")?n=0:g.S0(this.pm)&&this.isLivePlayback&&this.G8()&&(n=0);var q;return(q=g.vf("yt-player-audio51"))!=null?q:n}; g.W.cS=function(){this.qm()||(this.X.W||this.X.unsubscribe("refresh",this.cS,this),this.hK(-1))}; g.W.hK=function(n){if(!this.isLivePlayback||!this.S||this.S.flavor!=="fairplay"){var q=jef(this.X,this.G4);if(q.length>0){for(var M=g.S(q),t=M.next();!t.done;t=M.next())t=t.value,t.startSecs=Math.max(t.startSecs,this.MM()),this.D("html5_cuepoint_identifier_logging")&&t.event==="start"&&this.Xy("cuepoint",{pubCue:t.identifier,segNum:n});this.publish("cuepointupdated",q,n);this.G4+=q.length;if(Z6(this)&&this.pm.Aq())for(q=g.S(q),M=q.next();!M.done;M=q.next())M=M.value,this.Xy("cuepoint",{segNum:n,event:M.event, startSecs:M.startSecs,id:M.identifier.slice(-16)}),M.event==="start"&&(M=M.startSecs,this.hN.start=this.rZ,this.hN.end=M+3)}}}; g.W.SV=function(){this.qm()||(this.loading=!1,this.publish("dataloaded"))}; g.W.G8=function(){return this.Go!==void 0?this.Go:this.Go=!!this.f8||!!this.X&&F4(this.X)}; g.W.wl=function(n){var q=this;if(this.qm())return Lp();this.Kn=this.hE=this.Z=null;jn(this,"html5_high_res_logging_always")&&(this.pm.NV=!0);return vWs(this,n).then(void 0,function(){return lYm(q,n)}).then(void 0,function(){return U_f(q)}).then(void 0,function(){return BtR(q)})}; g.W.CA=function(n){this.Z=n;Tt_(this,this.Z.getAvailableAudioTracks());if(this.Z){n=g.S(this.Z.videoInfos);for(var q=n.next();!q.done;q=n.next()){q=q.value;var M=q.containerType;M!==0&&(this.tj[M]=q.id)}}n=this.getAvailableAudioTracks();n=n.concat(this.u0);for(q=0;q0?this.Z.getAvailableAudioTracks():this.Rk||[]:[]}; g.W.getAudioTrack=function(){var n=this;if(this.J&&!Qv(this.J)){var q=g.XO(this.getAvailableAudioTracks(),function(c){return c.id===n.J.id}),M; if(!q&&((M=this.J.tq)==null?0:M.id)){var t=this.J.tq.id;q=g.XO(this.getAvailableAudioTracks(),function(c){return c.tq.id===t}); this.Xy("nat",{id:this.J.id,track:!!q})}return q||this.u0}if(this.Rk){if(!this.A2)for(q=g.S(this.Rk),M=q.next();!M.done;M=q.next())if(M=M.value,M.tq.getIsDefault()){this.A2=M;break}return this.A2||this.u0}return this.u0}; g.W.getPlayerResponse=function(){return this.playerResponse}; g.W.getWatchNextResponse=function(){return this.nm}; g.W.getHeartbeatResponse=function(){return this.Dw}; g.W.o9=function(){return this.watchUrl?this.watchUrl:this.pm.getVideoUrl(this.videoId)}; g.W.oP=function(){return!!this.X&&(Nf_(this.X)||OWa(this.X)||gGd(this.X))}; g.W.getEmbeddedPlayerResponse=function(){return this.Pk}; g.W.m4=function(){return(this.eventLabel||this.pm.IL)==="shortspage"}; g.W.isAd=function(){return!!this.adFormat}; g.W.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.W.oI=function(){var n,q,M;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((n=this.playerResponse)==null?0:(q=n.playerConfig)==null?0:(M=q.daiConfig)==null?0:M.ssaEnabledPlayback)}; g.W.mu=function(){return this.v9}; g.W.qL=function(){return this.Es||this.Xw}; g.W.QJ=function(){return jn(this,"html5_samsung_vp9_live")}; g.W.Xy=function(n,q,M){this.publish("ctmp",n,q,M)}; g.W.yb=function(n,q,M){this.publish("ctmpstr",n,q,M)}; g.W.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.W.getGetAdBreakContext=function(n,q){n=n===void 0?NaN:n;q=q===void 0?NaN:q;var M={isSabr:D6(this)},t,c=(t=this.getHeartbeatResponse())==null?void 0:t.adBreakHeartbeatParams;c&&(M.adBreakHeartbeatParams=c);if(this.D("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.X&&!isNaN(n)&&!isNaN(q)){q=n-q;for(var Y in this.X.X)if(t=this.X.X[Y],t.info.Cu()||t.info.OC())if(t=t.index,t.isLoaded()){Y=t.HH(q);t=t.uY(Y)+q-t.getStartTime(Y);this.Xy("gabc",{t:n.toFixed(3),mt:q.toFixed(3),sg:Y,igt:t.toFixed(3)}); M.livePlaybackPosition={utcTimeMillis:""+(t*1E3).toFixed(0)};break}}return M}; g.W.isEmbedsShortsMode=function(n,q){if(!g.t8(this.pm)||(this.pm.jX||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||q)return!1;var M,t;return!!(((M=this.embeddedPlayerConfig)==null?0:(t=M.embeddedPlayerFlags)==null?0:t.isShortsExperienceEligible)&&n.width<=n.height)}; g.W.ut=function(){g.MB.prototype.ut.call(this);this.Fj=null;delete this.pbg;delete this.accountLinkingConfig;delete this.X;this.Z=this.Dw=this.playerResponse=this.nm=null;this.VA=this.adaptiveFormats="";delete this.botguardData;this.Yl=this.suggestions=this.aF=null;this.sabrContextUpdates.clear()};var NLa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Ogs={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},bgR={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},GRj={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"},kRC={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},K$1={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"},dL_={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.y(Po,g.F);g.W=Po.prototype;g.W.handleExternalCall=function(n,q,M){var t=this.state.N[n],c=this.state.B[n],Y=t;if(c)if(M&&aJ(M,M2K))Y=c;else if(!t)throw Error('API call from an untrusted origin: "'+M+'"');this.logApiCall(n,M);if(Y){M=!1;t=g.S(q);for(c=t.next();!c.done;c=t.next())if(String(c.value).includes("javascript:")){M=!0;break}M&&g.PJ(Error('Dangerous call to "'+n+'" with ['+q+"]."));return Y.apply(this,q)}throw Error('Unknown API method: "'+n+'".');}; g.W.logApiCall=function(n,q,M){var t=this.app.T();t.DN&&!this.state.U.has(n)&&(this.state.U.add(n),g.tx("webPlayerApiCalled",{callerUrl:t.loaderUrl,methodName:n,origin:q||void 0,playerStyle:t.playerStyle||void 0,embeddedPlayerMode:t.jX,errorCode:M}))}; g.W.publish=function(n){var q=g.Fm.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[n].concat(g.EJ(q)));if(n==="videodatachange"||n==="resize"||n==="cardstatechange")this.state.W.publish.apply(this.state.W,[n].concat(g.EJ(q))),this.state.J.publish.apply(this.state.J,[n].concat(g.EJ(q)))}; g.W.Km=function(n){var q=g.Fm.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[n].concat(g.EJ(q)));this.state.W.publish.apply(this.state.W,[n].concat(g.EJ(q)))}; g.W.dZ=function(n){var q=g.Fm.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[n].concat(g.EJ(q)));this.state.W.publish.apply(this.state.W,[n].concat(g.EJ(q)));this.state.J.publish.apply(this.state.J,[n].concat(g.EJ(q)))}; g.W.t1=function(n){var q=g.Fm.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[n].concat(g.EJ(q)));this.state.W.publish.apply(this.state.W,[n].concat(g.EJ(q)));this.state.J.publish.apply(this.state.J,[n].concat(g.EJ(q)));this.state.S.publish.apply(this.state.S,[n].concat(g.EJ(q)))}; g.W.D=function(n){return this.app.T().D(n)}; g.W.ut=function(){if(this.state.element){var n=this.state.element,q;for(q in this.state.X)this.state.X.hasOwnProperty(q)&&(n[q]=null);this.state.element=null}g.F.prototype.ut.call(this)};g.y(u3,g.jA);u3.prototype.publish=function(n){var q=g.Fm.apply(1,arguments);if(this.S.has(n))return this.S.get(n).push(q),!0;var M=!1;try{for(q=[q],this.S.set(n,q);q.length;)M=g.jA.prototype.publish.call.apply(g.jA.prototype.publish,[this,n].concat(g.EJ(q.shift())))}finally{this.S.delete(n)}return M};g.y(Bo,g.F);Bo.prototype.ut=function(){this.S.dispose();this.J.dispose();this.W.dispose();this.Z.dispose();this.U=this.X=this.B=this.N=this.C=void 0};var shd=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.y(Av,Po);g.W=Av.prototype;g.W.getApiInterface=function(){return Array.from(this.state.C)}; g.W.YD=function(n,q){this.state.S.subscribe(n,q)}; g.W.BOJ=function(n,q){this.state.S.unsubscribe(n,q)}; g.W.getPlayerState=function(n){return nff(this.app,n)}; g.W.eN=function(){return nff(this.app)}; g.W.SCX=function(n,q,M){FU(this)&&(mp(this.app,!0,1),Zk(this.app,n,q,M,1))}; g.W.getCurrentTime=function(n,q,M){var t=this.getPlayerState(n);if(this.app.getAppState()===2&&t===5){var c;return((c=this.app.getVideoData())==null?void 0:c.startSeconds)||0}return this.D("web_player_max_seekable_on_ended")&&t===0?lp(this.app,n):n?this.app.getCurrentTime(n,q,M):this.app.getCurrentTime(n)}; g.W.m7=function(){return this.app.getCurrentTime(1)}; g.W.V7=function(){var n=this.app.uY(1);return isNaN(n)?this.getCurrentTime(1):n}; g.W.t3=function(){return this.app.getDuration(1)}; g.W.YO=function(n,q){n=g.aR(Math.floor(n),0,100);isFinite(n)&&vS(this.app,{volume:n,muted:this.isMuted()},q)}; g.W.N8b=function(n){this.YO(n,!1)}; g.W.B9=function(n){vS(this.app,{muted:!0,volume:this.getVolume()},n)}; g.W.cEJ=function(){this.B9(!1)}; g.W.w2=function(n){vS(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},n)}; g.W.qNb=function(){$t(this.app)||this.w2(!1)}; g.W.getPlayerMode=function(){var n={};this.app.getVideoData().wZ&&(n.pfp={enableIma:this.app.F_().allowImaMonetization,autoplay:Nm(this.app.F_()),mutedAutoplay:this.app.F_().mutedAutoplay});return n}; g.W.AR=function(){var n=this.app.getPresentingPlayerType();if(n===2&&!this.app.Fb()){var q=uy(this.app.zk());if(!(qCT(q)||g.t8(this.app.T())&&g.C(this.app.tE().getPlayerState(),1024))||MLL(q))return}(q=this.app.Uu().zp)?q.playVideo():this.app.playVideo(n)}; g.W.G01=function(){mp(this.app,!0,1);this.AR()}; g.W.pauseVideo=function(n){var q=this.app.getPresentingPlayerType();if(q!==2||this.app.Fb()||qCT(uy(this.app.zk()))){var M=this.app.Uu().zp;M?M.pauseVideo():this.app.pauseVideo(q,n)}}; g.W.b9l=function(){var n=this.app,q=!1;n.Q1.O9&&(n.oL.publish("pageTransition"),q=!0);n.stopVideo(q)}; g.W.clearVideo=function(){}; g.W.getAvailablePlaybackRates=function(){var n=this.app.T();if(n.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(n.J?n.ancestorOrigins[0]:window.location.origin)||n.A2)return PEQ;var q=this.app.getVideoData();if(YE1(q)){var M=q.Ks,t=q.hU;return lBT.filter(function(c){return c>=M&&c<=t})}return n.supportsVarispeedExtendedFeatures?vqQ:n.D("web_remix_allow_up_to_3x_playback_rate")&&g.BD(n)?TkF:Tz}return[1]}; g.W.getPlaybackQuality=function(n){return(n=this.app.o1(n))?n.getPlaybackQuality():"unknown"}; g.W.C7g=function(){}; g.W.getAvailableQualityLevels=function(n){return(n=this.app.o1(n))?(n=g.Wn(n.O2(),function(q){return q.quality}),n.length&&(n[0]==="auto"&&n.shift(),n=n.concat(["auto"])),n):[]}; g.W.Dr=function(){return this.getAvailableQualityLevels(1)}; g.W.Bv=function(){return this.s0()}; g.W.vv=function(){return 1}; g.W.getVideoLoadedFraction=function(n){return this.app.getVideoLoadedFraction(n)}; g.W.s0=function(){return this.getVideoLoadedFraction()}; g.W.Ma=function(){return 0}; g.W.getSize=function(){var n=this.app.Lm().getPlayerSize();return{width:n.width,height:n.height}}; g.W.setSize=function(){this.app.Lm().resize()}; g.W.loadVideoById=function(n,q,M,t){if(!n)return!1;n=D9(n,q,M);return this.app.loadVideoByPlayerVars(n,t)}; g.W.lkl=function(n,q,M){n=this.loadVideoById(n,q,M,1);mp(this.app,n,1)}; g.W.cueVideoById=function(n,q,M,t){n=D9(n,q,M);this.app.cueVideoByPlayerVars(n,t)}; g.W.rL=function(n,q,M){this.cueVideoById(n,q,M,1)}; g.W.loadVideoByUrl=function(n,q,M,t){n=yj1(n,q,M);return this.app.loadVideoByPlayerVars(n,t)}; g.W.DmL=function(n,q,M){n=this.loadVideoByUrl(n,q,M,1);mp(this.app,n,1)}; g.W.cueVideoByUrl=function(n,q,M,t){n=yj1(n,q,M);this.app.cueVideoByPlayerVars(n,t)}; g.W.ou=function(n,q,M){this.cueVideoByUrl(n,q,M,1)}; g.W.XM=function(){var n=this.app.T();if(n.RL)return"";var q=this.app.F_(),M=void 0;q.isLivePlayback||(M=Math.floor(this.app.getCurrentTime(1)));return n.getVideoUrl(q.videoId,this.getPlaylistId()||void 0,M)}; g.W.Oi=function(){return this.app.getDebugText()}; g.W.getVideoEmbedCode=function(){var n=this.app.T();if(n.RL)return"";var q=this.app.F_();return n.getVideoEmbedCode(q.isPrivate?"":q.title,this.app.F_().videoId,this.app.Lm().getPlayerSize(),this.getPlaylistId()||void 0)}; g.W.Pq=function(n,q,M){return K0d(this.app,n,q,M)}; g.W.removeCueRange=function(n){return this.app.uR(n)}; g.W.loadPlaylist=function(n,q,M,t){this.app.loadPlaylist(n,q,M,t)}; g.W.nlk=function(n,q,M,t){this.loadPlaylist(n,q,M,t);mp(this.app,!0,1)}; g.W.cuePlaylist=function(n,q,M,t){this.app.cuePlaylist(n,q,M,t)}; g.W.nextVideo=function(n,q){this.app.nextVideo(n,q)}; g.W.vlJ=function(){this.nextVideo();mp(this.app,!0,1)}; g.W.previousVideo=function(n){this.app.previousVideo(n)}; g.W.OuJ=function(){this.previousVideo();mp(this.app,!0,1)}; g.W.playVideoAt=function(n){this.app.playVideoAt(n)}; g.W.ius=function(n){this.playVideoAt(n);mp(this.app,!0,1)}; g.W.setShuffle=function(n){var q=this.app.getPlaylist();q&&q.setShuffle(n)}; g.W.setLoop=function(n){var q=this.app.getPlaylist();q&&(q.loop=n)}; g.W.Ei=function(){var n=this.app.getPlaylist();if(!n)return null;for(var q=[],M=0;M=400)if(n=this.F_(),this.G.T().D("client_respect_autoplay_switch_button_renderer"))n=!!n.autoplaySwitchButtonRenderer;else{var q,M,t,c;n=!!((q=n.getWatchNextResponse())==null?0:(M=q.contents)==null?0:(t=M.twoColumnWatchNextResults)==null?0:(c=t.autoplay)==null?0:c.autoplay)!==!1}if(n)this.X||(this.X=!0,this.VS(this.X),this.G.T().D("web_player_autonav_toggle_always_listen")||z4J(this), q=this.F_(),this.gV(q.autonavState),this.G.logVisibility(this.element,this.X));else if(this.X=!1,this.VS(this.X),!this.G.T().D("web_player_autonav_toggle_always_listen"))for(this.G.T().D("web_player_autonav_toggle_always_listen"),q=g.S(this.W),M=q.next();!M.done;M=q.next())this.AQ(M.value)}; g.W.gV=function(n){VGm(this)?this.isChecked=n!==1:((n=n!==1)||(n=g.D1(),n=g.EH("web_autonav_allow_off_by_default")&&!n.OT(141)&&g.RZ("AUTONAV_OFF_BY_DEFAULT")?!1:!n.OT(140)),this.isChecked=n);Jjs(this)}; g.W.onClick=function(){this.isChecked=!this.isChecked;this.G.Jh(this.isChecked?2:1);Jjs(this);if(VGm(this)){var n=this.F_().autoplaySwitchButtonRenderer;this.isChecked&&(n==null?0:n.onEnabledCommand)?this.G.Km("innertubeCommand",n.onEnabledCommand):!this.isChecked&&(n==null?0:n.onDisabledCommand)&&this.G.Km("innertubeCommand",n.onDisabledCommand)}this.G.logClick(this.element)}; g.W.getValue=function(){return this.isChecked}; g.W.F_=function(){return this.G.getVideoData(1)};g.y(CGU,hV);g.y(H8,g.O3);H8.prototype.onClick=function(){this.enabled&&(LI(this,!this.checked),this.publish("select",this.checked))}; H8.prototype.getValue=function(){return this.checked}; H8.prototype.setEnabled=function(n){(this.enabled=n)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var MWJ={xcs:2,c6:1,gy:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var T6=["en-CA","en","es-MX","fr-CA"];g.y(DO,H8);DO.prototype.Cm=function(n){n?this.X||(this.xi.Qa(this),this.X=!0):this.X&&(this.xi.rO(this),this.X=!1);this.X&&LI(this,$pf())}; DO.prototype.J=function(){g.ts(this.element,"ytp-menuitem-highlight-transition-enabled")}; DO.prototype.Z=function(n){var q=$pf();n!==q&&(q=g.D1(),mA(190,n),mA(192,!0),q.save(),this.G.Km("cinematicSettingsToggleChange",n))}; DO.prototype.ut=function(){this.X&&this.xi.rO(this);H8.prototype.ut.call(this)};g.y(AV,hV);AV.prototype.updateCinematicSettings=function(n){this.X=n;var q;(q=this.menuItem)==null||q.Cm(n);this.api.publish("onCinematicSettingsVisibilityChange",n)};g.y(nyJ,hV);g.y(mi,hV);mi.prototype.setCreatorEndscreenVisibility=function(n){var q;(q=mP(this.api.zk()))==null||q.VS(n)}; mi.prototype.X=function(n){function q(t){t==="creatorendscreen"&&(t=mP(M.api.zk()))&&t.Aem(M.hideButton)} var M=this;this.hideButton=n;this.events.V(this.api,"modulecreated",q);q("creatorendscreen")};g.y(qMu,hV);g.y($z,H8);$z.prototype.J=function(n){this.Z(n?1:0)}; $z.prototype.BA=function(){if(this.enableNewAudioSettingsMenu){var n=this.G.getPresentingPlayerType();n===2||n===3?(this.X=!1,this.xi.rO(this)):(n=this.getDrcState(),n!==1?(n===0?(LI(this,this.W()===1),this.setEnabled(!0)):(LI(this,!1),this.setEnabled(!1)),this.X||(this.xi.Qa(this),this.X=!0)):this.X&&(this.xi.rO(this),this.X=!1))}else{n=this.hasDrcAudioTrack();var q=this.W()===1&&n;LI(this,q);this.setEnabled(n)}}; $z.prototype.ut=function(){this.xi.rO(this);H8.prototype.ut.call(this)}; $z.prototype.S=function(){this.G.logClick(this.element)};g.y(FF,hV);g.W=FF.prototype;g.W.getDrcUserPreference=function(){return this.X}; g.W.setDrcUserPreference=function(n){this.api.D("html5_log_drc_pref")&&this.api.Xy("drc_set",{pref:n});g.Pf("yt-player-drc-pref",n,31536E3);n!==this.X&&(this.X=n,this.updateEnvironmentData(),this.wz()&&this.api.Xj(),this.api.D("html5_enable_audio_feature_manager")&&this.api.n1())}; g.W.updateEnvironmentData=function(){this.api.T().h1=this.X===1}; g.W.wz=function(){var n,q,M=(n=this.api.getVideoData())==null?void 0:(q=n.Z)==null?void 0:q.X;if(!M)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.D("mta_drc_mutual_exclusion_removal")){var t,c,Y=(t=this.api.TT())==null?void 0:(c=t.tq)==null?void 0:c.id;return oV(M,function(G){var k;return G.audio.X&&((k=G.tq)==null?void 0:k.id)===Y})}return oV(M,function(G){var k; return((k=G.audio)==null?void 0:k.X)===!0})}; g.W.getDrcState=function(){return this.api.LR(2)};g.y(ZO,hV);ZO.prototype.onVideoDataChange=function(){var n=this,q=this.api.getVideoData();this.api.sT("embargo",1);var M=q==null?void 0:q.Ok.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(M==null?0:M.length)?tWJ(this,M.filter(function(t){return i9f(n,t)})):(q==null?0:q.cueRanges)&&tWJ(this,q.cueRanges.filter(function(t){return i9f(n,t)}))}; ZO.prototype.W=function(n){return n.embargo!==void 0}; ZO.prototype.ut=function(){hV.prototype.ut.call(this);this.X={}};g.y(a5,hV); a5.prototype.addEmbedsConversionTrackingParams=function(n){var q=this.api.T(),M=q.widgetReferrer,t=q.yS,c=this.X,Y="",G=q.getWebPlayerContextConfig();G&&(Y=G.embedsIframeOriginParam||"");M.length>0&&(n.embeds_widget_referrer=M);t.length>0&&(n.embeds_referring_euri=t);q.J&&Y.length>0&&(n.embeds_referring_origin=Y);G&&G.embedsFeature&&(n.feature=G.embedsFeature);c.length>0&&(q.D("embeds_web_enable_lite_experiment_control_arm_logging")?c.unshift(28572):g.Yj(g.OR(q))&&c.unshift(159628),q=c.join(","),q= g.Z_()?q:g.vn(q,4),n.source_ve_path=q);this.X.length=0};g.y(ccd,hV);g.y(YMf,hV);g.y(R5,g.F);R5.prototype.ut=function(){g.F.prototype.ut.call(this);this.X=null;this.W&&this.W.disconnect()};g.y(Kk_,hV);g.y(o5,g.w);o5.prototype.show=function(){g.w.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; o5.prototype.stopTimer=function(){this.X&&(this.X.dispose(),this.X=null)}; o5.prototype.onVideoDataChange=function(n){var q,M,t=(q=this.api.getVideoData())==null?void 0:(M=q.getPlayerResponse())==null?void 0:M.playabilityStatus;t&&(q=kFJ(t),g.C(this.api.getPlayerStateObject(),128)||n==="dataloaderror"||!q?(this.W=0,this.stopTimer(),this.hide()):(n=(q.remainingTimeSecs||0)*1E3,n>0&&(this.show(),this.updateValue("label",pg(q.label)),dld(this,n))))}; o5.prototype.ut=function(){this.stopTimer();g.w.prototype.ut.call(this)};g.y(NXm,hV);g.y(w6,g.w);w6.prototype.onClick=function(){this.oL.logClick(this.element);this.oL.Km("onFullerscreenEduClicked")}; w6.prototype.Cm=function(){this.oL.isFullscreen()?this.X?this.fade.hide():this.fade.show():this.hide();this.oL.logVisibility(this.element,this.oL.isFullscreen()&&!this.X)};g.y(z6,hV);z6.prototype.updateFullerscreenEduButtonSubtleModeState=function(n){var q;(q=this.X)!=null&&(g.Yi(q.element,"ytp-fullerscreen-edu-button-subtle",n),n&&!q.W&&(q.oL.D("player_tooltip_data_title_killswitch")?q.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"):q.element.setAttribute("data-tooltip-title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),wZ(q.oL,q.element,q),q.W=!0))}; z6.prototype.updateFullerscreenEduButtonVisibility=function(n){var q;(q=this.X)!=null&&(q.X=n,q.Cm())};g.y(O91,g.w);g.y(Eys,hV);g.y(JV,hV);JV.prototype.getSphericalProperties=function(){var n=g.pi(this.api.zk());return n?n.getSphericalProperties():{}}; JV.prototype.setSphericalProperties=function(n){if(n){var q=g.pi(this.api.zk());q&&q.setSphericalProperties(n,!0)}};g.y(V_,hV);g.W=V_.prototype;g.W.createClientVe=function(n,q,M,t){this.api.createClientVe(n,q,M,t===void 0?!1:t)}; g.W.createServerVe=function(n,q,M){this.api.createServerVe(n,q,M===void 0?!1:M)}; g.W.setTrackingParams=function(n,q){this.api.setTrackingParams(n,q)}; g.W.logClick=function(n,q){this.api.logClick(n,q)}; g.W.logVisibility=function(n,q,M){this.api.logVisibility(n,q,M)}; g.W.hasVe=function(n){return this.api.hasVe(n)}; g.W.destroyVe=function(n){this.api.destroyVe(n)};xz.prototype.LR=function(n){return this.X[n]}; xz.prototype.n1=function(){for(var n=this.Z,q={},M=g.S(CI),t=M.next();!t.done;t=M.next())if(t=t.value,this.W[t]){n=r6[t].Il(n,this.videoData);for(var c=g.S(CI),Y=c.next();!Y.done;Y=c.next())Y=Y.value,q[Y]!==void 0||oV(n,r6[Y].QL)||(q[Y]=r6[t].Zb);q[t]===void 0&&(q[t]=0)}else q[t]=1;this.X=q}; var CI=[0,1,3,2],NI={},r6=(NI[0]={Zb:2,QL:IGJ,Il:hb1},NI[1]={Zb:3,QL:Wka,Il:ycs},NI[2]={Zb:4,QL:sfs,Il:XRC},NI[3]={Zb:5,QL:jfJ,Il:SMC},NI);var H9j=!1;pI.prototype.setPlaybackRate=function(n){this.playbackRate=Math.max(1,n)}; pI.prototype.getPlaybackRate=function(){return this.playbackRate};t$.prototype.yI=function(n){var q=g.p8(n.info.X.info,this.fm.r7),M=n.info.zs+this.J,t=n.info.startTime*1E3;if(this.policy.Yl)try{t=this.policy.Yl?g.Lu(n)*1E3:n.info.startTime*1E3}catch(G){Math.random()>.99&&this.logger&&(t=bS(n.W).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:n.info.Sc(),encodedDataView:g.Pn(t,4)})),t=n.info.startTime*1E3}var c=n.info.clipId,Y=this.policy.Yl?g.xPs(n)*1E3:n.info.duration*1E3;this.policy.Yl&&(t<0||Y<0)&&(this.logger&&(this.logger({missingSegInfo:n.info.Sc(), startTimeMs:t,durationMs:Y}),this.policy.Iz||(t<0&&(t=n.info.startTime*1E3),Y<0&&(Y=n.info.duration*1E3))),this.policy.Iz&&(t<0&&(t=n.info.startTime*1E3),Y<0&&(Y=n.info.duration*1E3)));return{formatId:q,zs:M,startTimeMs:t,clipId:c,h7:Y}}; t$.prototype.pR=function(n){this.timestampOffset=n};cE.prototype.seek=function(n,q){n!==this.targetTime&&(this.seekCount=0);this.targetTime=n;var M=this.videoTrack.W,t=this.audioTrack.W,c=this.audioTrack.Pg,Y=wRu(this,this.videoTrack,n,this.videoTrack.Pg,q);q=wRu(this,this.audioTrack,this.policy.Fh?n:Y,c,q);n=Math.max(n,Y,q);this.J=!0;this.fm.isManifestless&&(Fk1(this,this.videoTrack,M),Fk1(this,this.audioTrack,t));return n}; cE.prototype.isSeeking=function(){return this.J}; cE.prototype.f4=function(n){this.W=n}; var oym=2/24;var VWf=0;g.W=E1.prototype;g.W.P5=function(){this.U=this.now();TAs(this.iz,this.U);this.Im.P5()}; g.W.SQ=function(n,q){var M=this.policy.W?(0,g.jt)():0;h$(this,n,q);n-this.C<10&&this.W>0||this.O7(n,q);this.Im.SQ(n,q);this.policy.W&&(n=(0,g.jt)()-M,this.Fh+=n,this.Ux=Math.max(n,this.Ux))}; g.W.O7=function(n,q){var M=(n-this.C)/1E3,t=q-this.Z;this.yf||(Cx(this.iz,M,t),this.H5(M,t));this.C=n;this.Z=q}; g.W.RN=function(){this.jX&&Cvf(this);this.Im.RN()}; g.W.gA=function(n){this.jX||(this.jX=this.S-this.O9+n,this.yS=this.S,this.JQ=this.N)}; g.W.V$=function(n,q){n=n===void 0?this.N:n;q=q===void 0?this.S:q;this.W>0||(this.B=n,this.W=q,this.xl=this.isActive=!0)}; g.W.f2=function(){return this.r8||2}; g.W.M7=function(){}; g.W.nC=function(){var n,q={rn:this.requestNumber,rt:(this.N-this.X).toFixed(),lb:this.S,stall:(1E3*this.J).toFixed(),ht:(this.U-this.X).toFixed(),elt:(this.B-this.X).toFixed(),elb:this.W,d:(n=this.IL)==null?void 0:n.XX()};this.url&&fGC(q,this.url);this.policy.W&&(q.mph=this.Ux.toFixed(),q.tph=this.Fh.toFixed());q.ulb=this.nm;q.ult=this.RL;return q}; g.W.now=function(){return(0,g.jt)()}; g.W.deactivate=function(){this.isActive&&(this.isActive=!1)};g.y(yR,E1);g.W=yR.prototype;g.W.nC=function(){var n=E1.prototype.nC.call(this);n.pb=this.yR;n.pt=(1E3*this.QS).toFixed();n.se=this.Kd;return n}; g.W.Ev=function(){var n=this.Im;this.hE||(this.hE=n.Ev?n.Ev():1);return this.hE}; g.W.Ng=function(){return this.Kb?this.Ev()!==1:!1}; g.W.zB=function(n,q,M){if(!this.Yi){this.Yi=!0;if(!this.yf){h$(this,n,q);this.O7(n,q);var t=this.Ev();this.Kd=M;if(!this.yf)if(t===2){t=n-this.B0)||s1(this,t,q),this.W>0&&J4(this.iz,q,this.J));n=(n-this.X)/ 1E3||.01;this.policy.B&&!(this.W>0)||z5(this.iz,n,this.Z,xlu(this),this.DW)}this.deactivate()}}; g.W.Av=function(n,q,M){M&&(this.hE=2);n<0&&this.r8&&(n=this.r8);q?this.V1+=n:this.AE+=n}; g.W.f2=function(){return this.AE||this.V1||E1.prototype.f2.call(this)}; g.W.O7=function(n,q){var M=(n-this.C)/1E3,t=q-this.Z,c=this.Ev();this.isActive?c===1&&((t>0||this.policy.S)&&(M>.2||t<1024)?(this.J+=M,t>0&&M>.2&&s1(this,this.yC?M:.05,t),this.Wg=!0):t>0&&(s1(this,M,t),this.Wg=!0)):q&&q>=this.policy.X&&this.V$(n,q);E1.prototype.O7.call(this,n,q)}; g.W.xW=function(n){if(!this.yf){h$(this,n,this.S);var q=(n-this.X)/1E3;this.Ev()!==2&&this.W>0&&(this.J+=(n-this.C)/1E3,J4(this.iz,this.Z,this.J));z5(this.iz,q,this.Z,xlu(this),this.DW,!0);n=(n-this.C)/1E3;Cx(this.iz,n,0);this.H5(n,0)}}; g.W.V$=function(n,q){n=n===void 0?this.N:n;q=q===void 0?this.S:q;if(!(this.W>0)&&(E1.prototype.V$.call(this,n,q),this.Ev()===1)){q=(this.U-this.X)/1E3;var M=(n-this.U)/1E3;this.Kb&&Xz(this,this.now());this.uG||this.yf||(this.r8&&(M=Math.max(0,M-this.r8)),n=this.iz,n.B.Hk(1,q),n.IL.Hk(1,M))}}; g.W.CN=function(){this.Kb&&Xz(this,this.now());return this.rJ}; g.W.wG=function(){var n;if(n=this.Z>this.i8)n=(n=this.Z)?n>=this.policy.X:!1;return n}; g.W.P2=function(){return this.Yl}; g.W.ES=function(n){n=n===void 0?this.now():n;if(this.Kb){Xz(this,n);if(this.hE?this.Ng():this.wJ!==this.SX){var q=this.SX;if(n0?M+n:M+Math.max(n,q)}; g.W.zc=function(){return this.now()-this.B}; g.W.tO=function(){return(this.Z-this.W)*1E3/this.zc()||0}; g.W.Po=function(){return this.B};jp.prototype.feed=function(n){cY(this.X,n);this.iY()}; jp.prototype.iY=function(){if(this.J){if(!this.X.totalLength)return;var n=this.X.split(this.Z-this.W),q=n.b5;n=n.vR;if(!this.Im.gA(this.J,q,this.W,this.Z))return;this.W+=q.totalLength;this.X=n;this.W===this.Z&&(this.J=this.Z=this.W=void 0)}for(;;){var M=0;n=g.S(qAa(this.X,M));q=n.next().value;M=n.next().value;M=g.S(qAa(this.X,M));n=M.next().value;M=M.next().value;if(q<0||n<0)break;if(!(M+n<=this.X.totalLength)){if(!(this.Im.gA&&M+1<=this.X.totalLength))break;M=this.X.split(M).vR;this.Im.gA(q,M,0, n)&&(this.J=q,this.W=M.totalLength,this.Z=n,this.X=new tN([]));break}n=this.X.split(M).vR.split(n);M=n.vR;this.Im.lq(q,n.b5);this.X=M}}; jp.prototype.dispose=function(){this.X=new tN};g.W=Sp.prototype;g.W.du=function(){return 0}; g.W.sZ=function(){return null}; g.W.Fu=function(){return null}; g.W.XR=function(){return this.state>=1}; g.W.isComplete=function(){return this.state>=3}; g.W.NS=function(){return this.state===5}; g.W.onStateChange=function(){}; g.W.Va=function(n){var q=this.state;this.state=n;this.onStateChange(q);this.callback&&this.callback(this,q)}; g.W.FA=function(n){n&&this.state=this.xhr.HEADERS_RECEIVED}; g.W.getResponseHeader=function(n){try{return this.xhr.getResponseHeader(n)}catch(q){return""}}; g.W.Pa=function(){return+this.getResponseHeader("content-length")}; g.W.A_=function(){return this.W}; g.W.IU=function(){return this.status>=200&&this.status<300&&!!this.W}; g.W.U3=function(){return this.X.totalLength>0}; g.W.Dd=function(){var n=this.X;this.X=new tN;return n}; g.W.YW=function(){return this.X}; g.W.abort=function(){this.qm=!0;this.xhr.abort()}; g.W.R3=function(){return!0}; g.W.vN=function(){return this.Z}; g.W.p9=function(){return""};g.W=tfR.prototype; g.W.run=function(){var n=this,q,M,t,c,Y,G,k,b,d,N,O,e,E,h,I;return g.u(function(L){if(L.X==1){n.status=200;q=n.X.get("docid");M=Td(n.X.get("fmtid")||"");t=n.X.get("lmt")||"0";c=+(n.X.get("csz")||0);if(!q||!M||!c)throw Error("Invalid local URL");n.X.get("ck")&&n.X.get("civ")&&(Y=new iS_(n.X.get("ck"),n.X.get("civ")));G=n.range;k=Math.floor(G.start/c);b=Math.floor(G.end/c);d=k}if(L.X!=5)return d<=b?g.U(L,pIs(q,M,t,d,Y),5):L.Fy(0);N=L.W;if(N===void 0)throw Error("invariant: data is undefined");O=d*c; e=(d+1)*c;E=Math.max(0,G.start-O);h=Math.min(G.end+1,e)-(E+O);I=new Uint8Array(N.buffer,E,h);n.W.append(I);n.loaded+=h;n.loaded=200&&this.status<300&&!!this.W}; g.W.U3=function(){return!!this.X.totalLength}; g.W.Dd=function(){var n=this.X;this.X=new tN;return n}; g.W.YW=function(){return this.X}; g.W.qm=function(){return this.S}; g.W.abort=function(){this.Z&&this.Z.cancel().catch(function(){}); this.J&&this.J.abort();this.S=!0}; g.W.R3=function(){return!0}; g.W.vN=function(){return this.C}; g.W.p9=function(){return this.errorMessage};g.W=GBU.prototype;g.W.onDone=function(){if(!this.qm){this.status=this.xhr.status;try{this.response=this.xhr.response,this.W=this.response.byteLength}catch(n){}this.X=!0;this.Im.RN()}}; g.W.zA=function(){this.xhr.readyState===2&&this.Im.P5()}; g.W.onProgress=function(n){this.qm||(this.status=this.xhr.status,this.X||(this.W=n.loaded),this.Im.SQ((0,g.jt)(),n.loaded))}; g.W.EW=function(){return this.xhr.readyState>=2}; g.W.getResponseHeader=function(n){try{return this.xhr.getResponseHeader(n)}catch(q){return g.PJ(Error("Could not read XHR header "+n)),""}}; g.W.Pa=function(){return+this.getResponseHeader("content-length")}; g.W.A_=function(){return this.W}; g.W.IU=function(){return this.status>=200&&this.status<300&&this.X&&!!this.W}; g.W.U3=function(){return this.X&&!!this.response&&!!this.response.byteLength}; g.W.Dd=function(){var n=this.response;this.response=void 0;return new tN([new Uint8Array(n)])}; g.W.YW=function(){return new tN([new Uint8Array(this.response)])}; g.W.abort=function(){this.qm=!0;this.xhr.abort()}; g.W.R3=function(){return!1}; g.W.vN=function(){return!1}; g.W.p9=function(){return""};g.y(HE,g.F);HE.prototype.b0=function(){if(!this.T0.length)return[];var n=this.T0;this.T0=[];this.Z=g.Ws(n).info;return n}; HE.prototype.qr=function(){return this.T0}; HE.prototype.ut=function(){g.F.prototype.ut.call(this);this.X=null;this.T0.length=0;this.Ex.length=0;this.Z=null};g.y(PE,g.F);g.W=PE.prototype; g.W.QQE=function(){if(!this.qm()){var n=(0,g.jt)(),q=!1;if(this.policy.zF){var M=this.timing.W>0?this.timing.B:this.timing.X;this.policy.wc&&this.Z&&(M=this.Z);n=n-M-this.timing.f2()*1E3;M=R$(vE(this),!1);n>=2E3*M?q=!0:n>=this.policy.Fj*M&&(this.X=this.policy.ZJ)}else if(this.timing.W>0){if(this.C){this.policy.Kn&&(this.X=0);return}var t=this.timing.P2();this.timing.ES();var c=this.timing.P2();c-t>=this.policy.h1*.8?(this.X++,this.logger.debug(function(){return"Mispredicted by "+(c-t).toFixed(0)}), q=this.X>=5):this.X=0}else{var Y=n-this.timing.CN(); this.policy.ZJ&&Y>0&&(this.X+=1);q=R$(vE(this),!1)*this.policy.Ok;(q=Y>q*1E3)&&this.logger.debug(function(){return"Elbow late by "+Y.toFixed(3)})}this.X>0&&this.Im.XO(); q?this.Jj():this.W.start()}}; g.W.Jj=function(){this.S=!0;this.Im.py();this.lastError="net.timeout";lD(this)}; g.W.canRetry=function(n){var q=vE(this);n=n?this.policy.L6:this.policy.cO;return q.timedOut0&&(q=db(q.X,0),n.ubyte=q,M===1&&q===0&&(n.b248180278=!0))}this.YM&&(n.rc=this.policy.wp?this.YM:this.YM.toString());this.policy.Wm&&this.gD&&(n.tr=this.gD);n.itag=this.info.Ex[0].X.info.itag;n.ml=""+ +this.info.Ex[0].X.n9();n.sq=""+this.info.Ex[0].zs;this.GU&&(n.ifi=""+ +Qh(this.info.d7.W));this.YM!==410&&this.YM!==500&&this.YM!==503||(n.fmt_unav="true");var t;(M=this.errorMessage||((t=this.xhr)==null?void 0: t.p9()))&&(n.msg=M);this.m2&&(n.smb="1");this.info.isDecorated()&&(n.sdai="1");return n}; g.W.ud=function(){return Qfs(this.timing)}; g.W.p9=function(){return this.xhr.p9()||""}; g.W.wG=function(){return this.isComplete()||this.timing.wG()}; g.W.SQ=function(){!this.qm()&&this.xhr&&(this.YM=this.xhr.status,this.policy.Yu&&this.aQ&&this.mZ(!1),this.LL()?this.FA(2):!this.Rp&&this.wG()&&(this.FA(),this.Rp=!0))}; g.W.P5=function(){if(!this.qm()&&this.xhr){if(!this.o$&&this.xhr.EW()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var n=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.o$=((0,g.jt)()-n)/1E3}this.xhr.EW()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.z3&&!pHd()&&g.Pf("yt-player-headers-readable",!0,2592E3);n=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var q=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),M;(M=this.GP)==null||M.stop();this.uT=n||this.uT; this.Ow=q||this.Ow}}; g.W.RN=function(){var n=this.xhr;if(!this.qm()&&n){this.YM=n.status;n=this.Zs(n);if(this.policy.Wm){var q;(q=this.GP)==null||q.stop()}n===5?lD(this.fn):this.Va(n);this.fn.W.stop()}}; g.W.Zs=function(n){var q=this;ZSU(this);if(U1(this.fn,this.xhr.status,this.qy?this.timing.xl||this.Zt:this.xhr.IU(),!1,this.pF))return 5;var M="";uD(this.fn,this.xhr)&&(M=OSJ(this.fn,this.xhr));if(M)return a$(vE(this.fn)),this.info.P_(this.GU,M),3;M=n.A_();if(this.MK){this.mZ(!0);ZSU(this);if(U1(this.fn,this.xhr.status,this.timing.xl||this.Zt,!1,this.pF))return 5;if(!this.tX){if(this.Zt)return a$(vE(this.fn)),3;this.fn.lastError="net.closed";return 5}}else{if(U1(this.fn,this.xhr.status,this.xhr.IU(), !1,this.pF))return 5;var t=this.info.Z;if(t&&t!==M||n.vN())return this.fn.lastError="net.closed",5;this.mZ(!0)}t=MfR(this)?n.getResponseHeader("X-Bandwidth-Est"):0;if(n=MfR(this)?n.getResponseHeader("X-Bandwidth-Est3"):0)this.D4=!0,this.policy.Nq&&(t=n);dTf(this.fn,M,t?Number(t):0,this.info.Ex[0].type===5);this.logger.debug(function(){var c=q.timing;return"Succeeded, rtpd="+(c.QS*1E3+c.X-Date.now()).toFixed(0)}); return 4}; g.W.canRetry=function(){this.qm();var n=this.info.isDecorated();return this.fn.canRetry(n)}; g.W.onStateChange=function(){this.isComplete()&&(this.policy.cU?this.py():this.timing.deactivate())}; g.W.Jj=function(){this.fn.Jj()}; g.W.XO=function(){this.callback&&this.callback(this,this.state)}; g.W.s3=function(){return this.fn.s3()}; g.W.dispose=function(){Sp.prototype.dispose.call(this);this.fn.dispose();var n;(n=this.GP)==null||n.dispose();this.policy.cU||this.py()}; g.W.py=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.W.b0=function(){if(!this.qr().length)return[];this.Js=!0;return this.aQ.b0()}; g.W.LL=function(){if(this.state<1)return!1;if(this.aQ&&this.aQ.T0.length)return!0;var n;return((n=this.xhr)==null?0:n.U3())?!0:!1}; g.W.qr=function(){this.mZ(!1);return this.aQ?this.aQ.qr():[]}; g.W.mZ=function(n){try{if(n||this.xhr.EW()&&this.xhr.U3()&&!uD(this.fn,this.xhr)&&!this.fv)this.aQ||(this.aQ=new HE(this.policy,this.info.Ex)),this.xhr.U3()&&(this.MK?this.MK.feed(this.xhr.Dd()):Ln(this.aQ,this.xhr.Dd(),n&&!this.xhr.U3()))}catch(q){this.MK?mTj(this,q):g.PJ(q)}}; g.W.lq=function(n,q){switch(n){case 21:n=q.split(1).vR;$TU(this,n);break;case 22:this.tX=!0;Ln(this.aQ,new tN([]),!0);break;case 43:if(n=fo(new yN(q),1))this.info.P_(this.GU,n),this.Zt=!0;break;case 45:q=AU(new yN(q));n=q.iR;q=q.Zz;n&&q&&(this.F6=n/q);break;case 44:this.eV=Hz_(new yN(q));var M,t,c;!this.timing.xl&&((M=this.eV)==null?void 0:M.action)===4&&((t=this.eV)==null?0:(c=t.zb)==null?0:c.qy)&&(this.qy=this.eV.zb.qy);break;case 53:this.policy.Wm&&(n=Svd(new yN(q)).qo)&&(this.GP||(this.qo=n,this.GP= new g.zw(this.zL,n,this)),this.GP.start());break;case 60:this.U1=Dr(new yN(q));break;case 58:if(n=nBj(new yN(q)))this.BO=n,n.BO===3&&(this.pF=!0)}}; g.W.gA=function(n,q,M,t){M||this.timing.gA(t);if(n!==21)return!1;if(n=this.policy.Yu)if(n*=this.info.Ex[0].X.info.Bb,q.totalLength+M!==t&&q.totalLength0)return!1;if(!this.xhr.EW())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.MK)var n=!this.info.Z;else this.xhr.Pa()?n=!1:(n=this.xhr.getResponseHeader("content-type"),n=n==="audio/mp4"||n==="video/mp4"||n==="video/webm");if(!n)return!1;if(isNaN(this.info.ac)){n=this.xhr.getResponseHeader("x-head-seqnum");var q=this.timing.policy.N?1:0;if(!n)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(n)>this.info.Ex[0].zs+q)return!1}return!0}; g.W.KJ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.W.sZ=function(){this.xhr&&(this.uT=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.uT}; g.W.Fu=function(){this.xhr&&(this.Ow=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Ow}; g.W.yr=function(){return this.fn.yr()}; g.W.zL=function(){if(!this.qm()&&this.xhr){this.gD="heartbeat";var n=this.fn;n.X+=2;this.XO()}};g.y(aI,E1);g.W=aI.prototype;g.W.O7=function(n,q){var M=(n-this.C)/1E3,t=q-this.Z;this.W>0?t>0&&(this.wJ&&(M>.2||t<1024?(this.J+=M,M>.2&&aZf(this,.05,t)):aZf(this,M,t)),this.SX&&(this.rJ+=t,this.AE+=M)):q>this.policy.X&&this.V$(n,q);E1.prototype.O7.call(this,n,q)}; g.W.zB=function(n,q){h$(this,n,q);this.O7(n,q);this.wJ&&(q=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.W>0&&J4(this.iz,this.rJ,this.J),n=(n-this.X)/1E3||.01,this.policy.B&&!(this.W>0)||z5(this.iz,n,this.Z,q,!1))}; g.W.xW=function(n){h$(this,n,this.S);var q=(n-this.C)/1E3;Cx(this.iz,q,0);this.H5(q,0);!this.wJ&&this.W>0||(q=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.W>0&&(this.J+=(n-this.C)/1E3,J4(this.iz,this.rJ,this.J)),z5(this.iz,(n-this.X)/1E3||.01,this.Z,q,!1,!0))}; g.W.S$=function(n){n=n.VO||2147483647;(n&2)!==2&&(this.SX=!1);(n&1)===1&&(this.wJ=!0)}; g.W.Za=function(n){n=n.VO||2147483647;(n&2)===2&&(this.SX=!1);(n&1)===1&&(this.wJ=!1)}; g.W.Po=function(){return this.B}; g.W.zc=function(){var n=this.SX?this.now()-this.C:0;return Math.max(this.AE*1E3+n,1)}; g.W.tO=function(){return this.rJ*1E3/this.zc()}; g.W.V$=function(n,q){n=n===void 0?this.N:n;q=q===void 0?this.S:q;this.W>0||(E1.prototype.V$.call(this,n,q),q=this.iz,n=(n-this.U)/1E3,q.B.Hk(1,(this.U-this.X)/1E3),q.IL.Hk(1,n))}; g.W.M7=function(n){this.V1=n}; g.W.nC=function(){var n=E1.prototype.nC.call(this);n.rbw=this.tO();n.rbe=+this.SX;n.gbe=+this.wJ;n.ackt=(this.V1-this.X).toFixed();return n}; g.W.ES=function(){}; g.W.P2=function(){return NaN}; g.W.CN=function(){return this.X+this.snapshot.delay*1E3};RI.prototype.lq=function(n,q){switch(n){case 20:n=new yN(q);n={Z2:j4(n,1),videoId:fo(n,2),itag:j4(n,3),lmt:j4(n,4),xtags:fo(n,5),Lv:j4(n,6),U2:S4(n,8),Us:j4(n,9),QFx:j4(n,10),startMs:j4(n,11),durationMs:j4(n,12),OA:j4(n,14),timeRange:HY(n,15,Aas),Tr:j4(n,16),Xg:j4(n,17),clipId:fo(n,1E3)};this.vu(n);break;case 21:this.UU(q,!1);break;case 22:this.Ai(q);break;case 31:n=vY(q,eTm);this.fl(n);break;case 52:n=vY(q,Iq1);this.iq(n);break;default:this.Ya(n,q)}}; RI.prototype.vu=function(){}; RI.prototype.Ya=function(){};g.y(oI,RI);g.W=oI.prototype; g.W.Ya=function(n,q){switch(n){case 35:this.oa(q);break;case 44:this.Fa(q);break;case 43:this.JR(q);break;case 53:this.u8(q);break;case 56:this.pO();break;case 57:this.Br(q);break;case 42:this.hZ(q);break;case 45:this.Ce(q);break;case 59:this.IG(q);break;case 51:this.gN(q);break;case 49:this.S$(q);break;case 50:this.Za(q);break;case 47:this.j$(q);break;case 58:this.oO(q);break;case 61:this.Im.Jg.M7((0,g.jt)());break;case 66:this.aK(q);break;case 46:this.wN(q);break;case 67:this.onSnackbarMessage(q);break; case 69:this.jQ(q)}}; g.W.gN=function(n){n=new yN(n);n={HUE:PY(n,1,l_),ycl:PY(n,2,l_)};this.Im.gN(n)}; g.W.IG=function(n){var q=new yN(n);n=Lo(q,1);var M=Lo(q,2);q=Lo(q,3);this.Im.IG(n,M,q)}; g.W.Ce=function(n){n=AU(new yN(n));this.Im.Ce(n)}; g.W.j$=function(n){n=vY(n,WfC);this.Im.j$(n)}; g.W.hZ=function(n){n=new yN(n);n={videoId:fo(n,1),formatId:HY(n,2,l_),endTimeMs:j4(n,3),dH1:j4(n,4),mimeType:fo(n,5),zQ:HY(n,6,ktk),indexRange:HY(n,7,ktk),u2:HY(n,8,bza)};this.Im.hZ(n)}; g.W.Br=function(n){n=new yN(n);n={type:j4(n,1),scope:j4(n,2),value:I1(n,3),sendByDefault:S4(n,4),writePolicy:j4(n,5)};this.Im.Br(n)}; g.W.pO=function(){this.Im.pO()}; g.W.oa=function(n){n=EBj(new yN(n));this.Im.oa(n)}; g.W.u8=function(n){n=Svd(new yN(n));this.Im.u8(n)}; g.W.Fa=function(n){n=Hz_(new yN(n));this.Im.Fa(n)}; g.W.JR=function(n){n={redirectUrl:fo(new yN(n),1)};this.Im.JR(n)}; g.W.UU=function(n){var q=db(n,0);if(n.totalLength!==1){n=n.split(1).vR;var M=this.W[q]||null;M&&xX(this.Im.Xb,q,M,n)}}; g.W.Ai=function(n){n=db(n,0);var q=this.W[n]||null;q&&this.Im.Ai(n,q)}; g.W.iq=function(n){this.Im.iq(n)}; g.W.vu=function(n){var q=n.Z2,M=n.U2,t=n.Lv,c=n.Xg,Y=n.Tr,G=n.Us,k=n.startMs,b=n.durationMs,d=n.timeRange,N=n.OA,O=n.clipId,e=rV(n);n=hAD.has(Rc[""+n.itag]);this.W[q]=e;this.Im.Av(e,n,{Z2:q,U2:!!M,Lv:t!=null?t:-1,Us:G!=null?G:-1,startMs:k!=null?k:-1,durationMs:b!=null?b:-1,OA:N,Xg:c,Tr:Y,clipId:O,timeRange:d})}; g.W.S$=function(n){n={VO:j4(new yN(n),1)};this.Im.S$(n)}; g.W.Za=function(n){n={VO:j4(new yN(n),1)};this.Im.Za(n)}; g.W.fl=function(n){this.Im.fl(n)}; g.W.oO=function(n){n=nBj(new yN(n));this.Im.oO(n)}; g.W.aK=function(n){n={jm:HY(new yN(n),1,XDR)};this.Im.aK(n)}; g.W.onSnackbarMessage=function(n){n=j4(new yN(n),1);this.Im.onSnackbarMessage(n)}; g.W.jQ=function(n){n={Ie:PY(new yN(n),1,Kfu)};this.Im.jQ(n)}; g.W.wN=function(n){n=new yN(n);n={reloadPlaybackParams:HY(n,1,p4_),cY:S4(n,2)};this.Im.wN(n)};g.y(wp,g.F);g.W=wp.prototype;g.W.CU=function(){return Array.from(this.ya.keys())}; g.W.VZ=function(n){n=this.ya.get(n);var q=n.T0;n.qF+=q.totalLength;n.T0=new tN;return q}; g.W.vI=function(n){return this.ya.get(n).vI}; g.W.xY=function(n){return this.ya.get(n).xY}; g.W.Av=function(n,q,M){this.ya.get(n)||JGf(this,n,q);q=this.ya.get(n);this.fm?(n=CId(this,n,M),Vf_(this,M.Z2,q,n)):(M.U2?q.SH=M.OA:q.En.push(M),q.Ja.push(M))}; g.W.kV=function(n){var q;return((q=this.ya.get(n))==null?void 0:q.Ex)||[]}; g.W.FA=function(){for(var n=g.S(this.ya.values()),q=n.next();!q.done;q=n.next())if(q=q.value,q.Nx){if(q.onProgress)q.onProgress();q.Nx=!1}}; g.W.Ai=function(n,q){this.logger.debug(function(){return"[onMediaEnd] formatId: "+q}); var M=this.ya.get(q);zg?M&&!M.vI&&(M.Pe.get(n)?M.Pe.get(n).u6=!0:M.Pe.set(n,{data:new tN,Iy:0,u6:!0}),M.xY=!0):M&&!M.xY&&(M.xY=!0)}; g.W.b0=function(n){if(zg){var q=this.ya.get(n);if(q)for(var M=g.S(q.Pe),t=M.next();!t.done;t=M.next()){var c=g.S(t.value);t=c.next().value;c=c.next().value;var Y=q.fk.get(t);if(ih(Y[0])){if(!c.u6)continue;var G=c.data,k=0,b=[];Y=g.S(Y);for(var d=Y.next();!d.done;d=Y.next()){d=d.value;var N=d.Z,O=YV(G,k,N);k+=N;b.push(new IX(d,O))}q.oC.push.apply(q.oC,g.EJ(b))}else if(c.data.totalLength>0||!Y[0].range&&c.u6)G=void 0,k=Y[0],b=c.Iy,Y=c.data,k.range||(G=c.u6),G=new IX(IrU(k,k.W+b,Y.totalLength,G),Y), c.Iy+=G.info.Z,q.oC.push(G);q.Pe.get(t).data=new tN;c.u6&&q.Pe.delete(t)}n=this.ya.get(n);if(!n)return[];q=n.oC;n.oC=[];M=g.S(q);for(t=M.next();!t.done;t=M.next())n.qF+=t.value.info.Z;return q||[]}M=(q=this.ya.get(n))==null?void 0:q.aQ;if(!M)return[];this.mZ(n,M);return M.b0()}; g.W.LL=function(n){if(zg)return rp(this,n);var q,M,t;return!!((M=(q=this.ya.get(n))==null?void 0:q.aQ)==null?0:(t=M.qr())==null?0:t.length)||rp(this,n)}; g.W.mZ=function(n,q){for(;rp(this,n);){var M=this.VZ(n);var t=n;t=this.ya.get(t).vI&&!Cn(this,t);Ln(q,M,t&&zrm(this,n))}}; g.W.ut=function(){g.F.prototype.ut.call(this);for(var n=g.S(this.ya.keys()),q=n.next();!q.done;q=n.next())J$(this,q.value);var M;if((M=this.Bm)==null?0:M.I2)for(n=g.S(this.ya.values()),q=n.next();!q.done;q=n.next())q=q.value,q.Pe.clear(),q.fk.clear(),q.oC.length=0,q.Ex.length=0,q.Ja.length=0,q.En.length=0;this.ya.clear()}; var zg=!1;g.y(QR,g.F);g.W=QR.prototype;g.W.SQ=function(){!this.qm()&&this.xhr&&(this.mZ(!1),Vw(this.Im,this))}; g.W.P5=function(){}; g.W.RN=function(){if(!this.qm()&&this.xhr){var n=this.Zs();n===5?lD(this.fn):this.Va(n);this.fn.W.stop();var q;(q=this.ML)==null||q.stop()}}; g.W.Zs=function(){var n="";uD(this.fn,this.xhr)&&(n=OSJ(this.fn,this.xhr));if(n)return this.info.d7.P_(this.GU,n),3;this.mZ(!0);if(U1(this.fn,this.xhr.status,this.xhr.IU(),this.info.vl(),this.pF))return 5;if(this.Gb)return 3;dTf(this.fn,this.xhr.A_(),0,this.vl());this.policy.TX&&opk(this.Im);return 4}; g.W.mZ=function(n){var q=this.xhr;if((n||!uD(this.fn,this.xhr))&&q.U3()){n=q.Dd();var M=n.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+M}); this.MK.feed(n)}}; g.W.lq=function(n,q){this.xhr.R3()&&n===21&&nQJ(this);this.nz.lq(n,q)}; g.W.gA=function(n,q,M,t){M||(this.Jg.gA(t),this.policy.Au&&n===21&&nQJ(this));if(n!==21)return!1;this.Jg.xl=!0;n=q.totalLength;M||(this.PG=db(q,0),q=q.split(1).vR);var c=this.policy.Kq,Y=this.nz.W[this.PG],G=this.fm.Z.get(Y);if(c&&G&&(c*=G.info.Bb,n+M!==t&&n0){this.policy.zF&&this.fn.W.stop();n=this.Jg.zc();q=this.Jg.tO();var M=qbj(this,n);if(!(q>M.LH||M.FU>0&&this.info.nJ()>M.FU)){this.US=(0,g.jt)();var t;(t=this.ML)==null||t.stop();this.policy.TX&&(t=this.Im,n={pE:Math.round(q*n/1E3),OX:n},t.policy.TX&&(t.nm=n,t.yW++));this.Jj()}}}}; g.W.Jj=function(){this.fn.Jj()}; g.W.Fa=function(n){this.Im.Fa(n,this.AP())}; g.W.JR=function(n){this.Gb=!0;this.info.d7.P_(this.GU,n.redirectUrl)}; g.W.S$=function(n){this.Jg instanceof aI&&this.Jg.S$(n)}; g.W.Za=function(n){this.Jg instanceof aI&&this.Jg.Za(n)}; g.W.hZ=function(n){var q=n.formatId,M=rV({itag:q.itag,lmt:q.lmt,xtags:q.xtags}),t,c,Y=new QO(((t=n.zQ)==null?void 0:t.first)||0,((c=n.zQ)==null?void 0:c.N3)||0),G,k;t=new QO(((G=n.indexRange)==null?void 0:G.first)||0,((k=n.indexRange)==null?void 0:k.N3)||0);this.fm.Z.get(M)||(M=n.u2||{},M.mimeType=n.mimeType,M.itag=q.itag,M.lastModified=""+(q.lmt||0),M.xtags=q.xtags,n=this.fm,q=wm(""),M=RX(M,null),Ay(n,new uh(q,M,Y,t)))}; g.W.Ce=function(n){this.Im.Ce(n,this.AP())}; g.W.onSnackbarMessage=function(n){if(this.policy.mp)this.Im.onSnackbarMessage(n)}; g.W.jQ=function(n){this.policy.C&&this.Im.jQ(n,this.AP())}; g.W.fl=function(n){this.Su=n;this.fn.Z=(0,g.jt)();this.Im.fl(n)}; g.W.IG=function(n,q,M){this.Im.IG(n,q,M)}; g.W.Br=function(n){n.scope===2&&(this.uv=n);this.Im.Br(n)}; g.W.pO=function(){this.j2=!0;this.Im.pO()}; g.W.gN=function(n){this.policy.ZM&&this.Im.gN(n)}; g.W.j$=function(n){this.Im.j$(n,this.AP())}; g.W.oO=function(n){n.BO===3&&(this.pF=!0);this.Im.oO(n)}; g.W.aK=function(n){this.Im.aK(n)}; g.W.wN=function(n){this.Im.wN(n)}; g.W.canRetry=function(){this.qm();return this.fn.canRetry(!1)}; g.W.dispose=function(){if(!this.qm()){g.F.prototype.dispose.call(this);this.fn.dispose();var n;(n=this.ML)==null||n.dispose();this.Va(-1);this.py()}}; g.W.Va=function(n){this.state=n;Vw(this.Im,this)}; g.W.vl=function(){return this.info.vl()}; g.W.eE=function(){return this.j2}; g.W.Vt=function(){return this.uv}; g.W.Av=function(n,q,M){M.clipId&&(this.clipId=M.clipId);this.policy.W&&!q&&(this.UQ=M.Us);if(this.info.isDecorated()){var t=this.info,c,Y;var G=((c=t.data)==null?0:(Y=c.MS)==null?0:Y.uE)?t.data.MS.uE:-1;G>=0&&G>M.Us&&this.Im.loader.Xy("sdai",{skpsqmismatch:"1",stsq:G,rcvsq:M.Us,a:q})}this.Xb.Av(n,q,M);this.policy.S_&&this.Su&&this.Jg instanceof yR&&(G=this.Su.uO,this.Jg.Av(M.durationMs/1E3,q,G>0&&M.Us+1>=G));this.Xb.ya.get(n).Y7=!0}; g.W.Ai=function(n,q){this.Xb.Ai(n,q)}; g.W.iq=function(n){this.requestIdentifier=n}; g.W.b0=function(n){return this.Xb.b0(n)}; g.W.kV=function(n){return this.Xb.kV(n)}; g.W.LL=function(n){return this.Xb.LL(n)}; g.W.CU=function(){return this.Xb.CU()}; g.W.Ev=function(){return 1}; g.W.AP=function(){return this.Jg.requestNumber}; g.W.Yn=function(){return this.requestIdentifier}; g.W.Ag=function(){return this.GU.Ag()}; g.W.K7=function(){this.py()}; g.W.py=function(){this.Jg.deactivate();var n;(n=this.xhr)==null||n.abort()}; g.W.isComplete=function(){return this.state>=3}; g.W.O_=function(){return this.state===3}; g.W.NS=function(){return this.state===5}; g.W.Y$=function(){return this.state===4}; g.W.uw=function(){return this.isComplete()}; g.W.XR=function(){return this.state>=1}; g.W.s3=function(){return this.policy.Kn?this.fn.s3():0}; g.W.XO=function(){this.policy.Kn&&Vw(this.Im,this)}; g.W.O0=function(){return uT_(this.info)}; g.W.yr=function(){return this.fn.yr()}; g.W.B$=function(){var n=gMf(this.fn);Object.assign(n,DU_(this.info));n.req="sabr";n.rn=this.AP();var q;if((q=this.xhr)==null?0:q.status)n.rc=this.policy.wp?this.xhr.status:this.xhr.status.toString();var M;(q=(M=this.xhr)==null?void 0:M.p9())&&(n.msg=q);this.US&&(M=qbj(this,this.US-this.Jg.Po()),n.letm=M.jL1,n.mrbps=M.LH,n.mram=M.FU);return n};MrR.prototype.tick=function(n,q){this.ticks[n]=q?window.performance.timing.navigationStart+q:(0,g.jt)()};g.y(nU,g.MB);g.W=nU.prototype; g.W.aA=function(n,q,M,t){if(this.policy.s5&&this.policy.W){var c=n.aI||null;c?(haJ(this,n.zs,cy(this,n.startTime,n.zs),{aI:c,zs:n.zs,Tt:!!q,Cu:M},this.Z),t&&this.Z&&this.Z.GA(n.zs,n.startTime,this.W,(q==null?void 0:q.X)||[],(q==null?void 0:q.W)||[],(q==null?void 0:q.J)||[],M,(q==null?void 0:q.I$)||0,(q==null?void 0:q.Z)||void 0)):this.W===1&&Ma(this,5,"noad")}else{var Y=!1;this.policy.W&&(Y=M?this.jX===n.zs:this.wJ===n.zs);if(this.Z&&t&&!Y){t=[];Y=[];var G=[],k=void 0,b=0;q&&(t=q.X,Y=q.W,G=q.J,k= q.Z,b=q.I$,this.Xy("sdai",{sq:n.zs,ssvicpns:t.join("."),ssvid:Y.join(".")}));this.policy.W&&(M?this.jX=n.zs:this.wJ=n.zs);this.Z.GA(n.zs,n.startTime,this.W,t,Y,G,M,b,k)}this.policy.W?M&&(this.W===1&&Ma(this,5,"noad"),n.zs!==((c=this.X)==null?void 0:c.zs)&&(gQJ(this,n,q,M),isNaN(n.startTime)||eak(this,n.zs,cy(this,n.startTime,n.zs),!!q,this.Z))):M&&gQJ(this,n,q)}}; g.W.Qb=function(n,q,M){var t=this.videoTrack.X.index.Uq()<=q;this.X={aI:n,zs:q,Tt:M};t&&qa(this,n,q)}; g.W.TR=function(){this.Z&&this.Z.TR()}; g.W.Xy=function(n,q,M){(n!=="sdai"||this.policy.BU||(M===void 0?0:M))&&this.loader.Xy(n,q)}; g.W.kp=function(n,q){var M=this.videoTrack.X.index.HH(n);if(M>=0){var t;var c=((t=q.tQ.Zh(M,2))==null?void 0:t.AY)||"";if(this.policy.W||c)return q.hf(n,M),i1(this.loader,n,n,M),this.Xy("sdai",{cmskpad:1,t:n.toFixed(3),sq:M}),!0}this.Xy("sdai",{cmskpad:0,t:n.toFixed(3),sq:M});return!1};g.W=X$s.prototype;g.W.sA=function(n,q,M){n=n||this.W;this.X.has(n)||(this.Xy("sldai",{setadconfig:"noentry",cid:n}),this.X.set(n,{event:"unknown",startTimeSecs:0,Dy:0,cL:[],Am:Date.now(),Cg:-1,F5:6}));var t=this.X.get(n);t?q?(t.F5=6,t.cL.push(M),t.Uj=q):t.F5=2:this.Xy("sldai",{setadconfig:"notfound",cid:n})}; g.W.jQ=function(n,q,M){var t;if(!((((t=n.Ie)==null?void 0:t.length)||0)<=0)&&(n=n.Ie[0],n.aI)){var c;t=-(((c=n.aI)==null?void 0:c.hJ)||0);n.timeRange&&(t+=(n.timeRange.startTicks||0)/(n.timeRange.timescale||1));var Y,G,k,b,d;c=new dV(t,((Y=n.aI)==null?void 0:Y.jcE)||0,((G=n.aI)==null?void 0:G.Ca)||"",((k=n.aI)==null?void 0:k.identifier)||"",fca(((b=n.aI)==null?void 0:b.event)||0),(((d=n.aI)==null?void 0:d.hJ)||0)*1E3);jXj(this,c,q,n.Us||0,M)}}; g.W.hf=function(n,q,M){var t=n;this.J&&(t+=M);this.Bc(t);t=this.X.get(this.W);if(!t)return this.Xy("ssskipadfail",{cid:this.W,sn:q,mt:n.toFixed(3),of:M.toFixed(3)}),!1;this.Xy("ssskipadsuc",{cid:this.W,sn:q,mt:n.toFixed(3),of:M.toFixed(3)});t.er=q;return!0}; g.W.uW=function(){for(var n=g.S(this.X.values()),q=n.next();!q.done;q=n.next())q.value.er=NaN}; g.W.Bc=function(n,q){q&&(this.S=q);if(this.W&&(q=this.X.get(this.W))&&q.startTimeSecs<=n&&n<=q.startTimeSecs+q.Dy)return;a:{q=g.S(this.X.entries());for(var M=q.next();!M.done;M=q.next()){var t=g.S(M.value);M=t.next().value;t=t.next().value;var c=void 0,Y=void 0,G=void 0;if(((c=t)==null?void 0:c.startTimeSecs)<=n&&n<=((Y=t)==null?void 0:Y.startTimeSecs)+((G=t)==null?void 0:G.Dy)){n=M;break a}}n=""}this.W=n};g.y(kk,g.F);kk.prototype.Sb=function(n,q,M){M=M===void 0?{}:M;this.policy.zr=t4(n,M,this.J,q===void 0?!1:q)};gI.prototype.Fg=function(n){var q=this;if(this.policy.fG){var M=new Set(n);M.size===this.IL.size&&[].concat(g.EJ(M)).every(function(t){return q.IL.has(t)})||(this.loader.Xy("lwnmow",{itagDenylist:[].concat(g.EJ(n)).join(",")}),this.loader.S9(!!M.size),this.U=-1,this.IL=M,e8(this,this.X),this.rJ=!0)}}; gI.prototype.Sb=function(n,q,M){M=M===void 0?{}:M;var t=this.policy.zr;this.S.Sb(n,q===void 0?!1:q,M);if(t!==this.policy.zr){e8(this,this.X);Ez(this);var c,Y;t>this.policy.zr&&((c=this.Z)==null?0:Vv(c.info))&&((Y=this.nextVideo)==null||!Vv(Y.info))&&(this.xl=!0)}};sz.prototype.pR=function(n){this.timestampOffset=n;this.flush()}; sz.prototype.flush=function(){if(this.X.pos>0){var n={a:this.track.OC(),u:this.X.XX(),pd:Math.round(this.J),ad:Math.round(this.Z)},q=this.W;if(q){var M=q.X.info;n.itag=M.itag;M.X&&(n.xtags=M.X);n.sq=q.zs;n.st=q.startTime;n.sd=q.duration;this.track.policy.mS&&(n.si=q.Sc());q.J&&(n.esl=q.W+q.Z);q.Ci()&&(n.eos=1)}isNaN(this.timestampOffset)||(n.to=this.timestampOffset);var t;if(q=(t=this.track.Pg)==null?void 0:t.Bg({})){for(var c in q)this.C[c]!==q[c]&&(n["sb_"+c]=q[c]);this.C=q}this.track.Xy("sbu", n);this.X.reset();this.buffered=[];this.S=this.Z=this.J=0;this.timestampOffset=this.W=void 0}};j8.prototype.dispose=function(){this.RL=!0}; j8.prototype.qm=function(){return this.RL}; g.y(Py,Error);l1.prototype.skip=function(n){this.offset+=n}; l1.prototype.ow=function(){return this.offset};g.W=bxC.prototype;g.W.oH=function(){return this.W}; g.W.O5=function(){return this.W.length?this.W[this.W.length-1]:null}; g.W.Eu=function(){this.W=[];AL(this);By(this)}; g.W.VZ=function(n){this.AE=this.W.shift().info;n.info.equals(this.AE)}; g.W.kV=function(){return g.Wn(this.W,function(n){return n.info})}; g.W.OC=function(){return!!this.S.info.audio}; g.W.isDrm=function(){return!!this.S.info.f8}; g.W.getDuration=function(){return this.S.index.Y9()};g.y(YX,Sp);g.W=YX.prototype;g.W.onStateChange=function(){this.qm()&&(VR(this.Xb,this.formatId),this.X.dispose())}; g.W.B$=function(){var n=waC(this.Xb,this.formatId),q;var M=((q=this.Xb.ya.get(this.formatId))==null?void 0:q.bytesReceived)||0;var t;q=((t=this.Xb.ya.get(this.formatId))==null?void 0:t.qF)||0;return{expected:n,received:M,bytesShifted:q,sliceLength:Cn(this.Xb,this.formatId),isAnyMediaEndReceived:this.Xb.xY(this.formatId)}}; g.W.ud=function(){return 0}; g.W.wG=function(){return!0}; g.W.b0=function(){return this.Xb.b0(this.formatId)}; g.W.qr=function(){return[]}; g.W.LL=function(){return this.Xb.LL(this.formatId)}; g.W.yr=function(){return this.lastError}; g.W.s3=function(){return 0};g.y(Zo,g.F);g.W=Zo.prototype;g.W.OC=function(){return!!this.X.info.audio}; g.W.O5=function(){return this.J.O5()}; g.W.VZ=function(n){this.J.VZ(n);var q;(q=this.B)!=null&&(q.S.add(n.info.zs),q.X=u4U(q,q.pn,q.Ht,n,q.X),q.Z=n,q.C=(0,g.jt)());this.Bb=Math.max(this.Bb,n.info.X.info.Bb||0)}; g.W.getDuration=function(){return this.X.index.Y9()}; g.W.Eu=function(){Kn(this);this.J.Eu()}; g.W.CJ=function(){return this.J}; g.W.isRequestPending=function(n){return this.Z.length?n===this.Z[this.Z.length-1].info.Ex[0].zs:!1}; g.W.pR=function(n){var q;(q=this.B)==null||q.pR(n);var M;(M=this.U)==null||M.pR(n)}; g.W.Xy=function(n,q){this.loader.Xy(n,q)}; g.W.Cb=function(){return this.loader.Cb()}; g.W.dispose=function(){var n;(n=this.U)==null||n.flush();g.F.prototype.dispose.call(this)};g.y(tz,g.F);tz.prototype.Z=function(){this.W++>15||(this.X=!this.X,new t0C(this.loader,this.policy,this.iz,this.d7,this.X),this.delay.start())}; g.W=t0C.prototype;g.W.P5=function(){}; g.W.SQ=function(){}; g.W.RN=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.A_()===this.size)this.loader.Xy("rqs",this.getInfo());else{var n="net.connect";this.xhr.status>200?n="net.badstatus":this.xhr.EW()&&(n="net.closed");this.onError(n)}}; g.W.onError=function(n){var q=this;this.loader.handleError(n,this.getInfo());Q_("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(M){q.loader.Xy("pathprobe",M)},function(M){q.loader.handleError(M.errorCode,M.details)})}; g.W.getInfo=function(){var n=this.timing.nC();n.shost=C9(this.location.eL);n.pb=this.size;return n};g.y(cQ,g.F); cQ.prototype.N=function(n,q){if(n.N){this.fm.isLive?(n=this.fm.qV&&this.fm.J?n.X.xE(this.fm.qV,!1):n.X.Ve(Infinity),n.ac=this.ac):n=n.X.xE(0,!1);if(this.xl){var M=this.xl;n.ac===0&&(n.S=M.B)}else n.S=this.U;return n}M=n.W;if(!M.X.n9())return M.X.NK()?(n=q$(this.S,n.X.info.Bb,q.X.info.Bb,0),n=M.X.ZC(M,n)):n=M.X.uA(M),n;var t=M.C-this.loader.getCurrentTime(),c=!M.range||M.Z===0&&M.W===0?0:M.range.length-(M.W+M.Z),Y=M.X;this.OI(n,t)&&c===0&&(this.fm.isManifestless?Y=n.X:(Y=M.startTime+uFs,M.Z&&(Y+=M.duration), dp(n,Y),M=n.W,Y=M.X));Y.NK()?(c=this.Z,q=q$(this.S,Y.info.Bb,q.X.info.Bb,t,c.J.length>0&&c.B===0&&this.loader.jp),t=nv(n),n=M.X.ZC(M,q),(q=n.Z)&&n.Ex.length>1&&(t||n.d7.Z||n.Ex[0].X!==M.X?n=M.X.ZC(M,n.Ex[0].Z):(t=n.Ex[n.Ex.length-1],Y=t.Z/q,!t.J&&Y<.4&&(n=M.X.ZC(M,q-t.Z))))):(M.zs<0&&(q=GW(M),q.pr=""+n.Z.length,this.loader.isSeeking()&&(q.sk="1"),q.snss=M.N,this.loader.Xy("nosq",q)),n=Y.uA(M));if(this.policy.IL)for(M=g.S(n.Ex),q=M.next();!q.done;q=M.next())q.value.type=6;return n}; cQ.prototype.OI=function(n,q){if(!nv(n)||!n.X.n9())return!1;var M=this.Z.rJ||FmC(n)||q<=this.policy.PE||this.Z.xl;this.logger.debug(function(){return"ready to adapt: "+M+", upgrade pending: "+FmC(n)+", health: "+q}); return M}; cQ.prototype.ut=function(){g.F.prototype.ut.call(this)}; var uFs=2/24;g.y(kE,g.F);kE.prototype.IA=function(n,q,M){var t;var c=((t=this.W)==null?void 0:t.reason)==="m"?"m":this.W&&SRa(this,this.W)?this.W.reason:"a";this.loader.IA(new KU(n,c,M));G_(this.loader,q,n,!0)}; kE.prototype.r_=function(n,q){for(var M=g.S(this.jX),t=M.next();!t.done;t=M.next())if(t.value.id===n)return this.S=this.fm.X[n],$X(this.Bm)&&(this.xl=!0),n=new KU(this.S,q?"t":"m"),q&&(this.N=!0),n;this.Z=[];return null}; kE.prototype.Sb=function(n,q,M){M=M===void 0?{}:M;this.X.Sb(n,q===void 0?!1:q,M)};dv.prototype.setData=function(n,q,M){var t=this;M=M===void 0?{}:M;if(q==null?0:q.O9)this.nA=pau(this,q,M),n.j7=this.d7.j7();if(this.vl())return!0;this.data=n;this.X=lus(n,function(c,Y){var G;(G=t.Im)==null||G.Jq(c,Y)},q==null?void 0:q.Z,q==null?void 0:q.C); if(!this.X)return!1;this.W=g.VN(this.X,izC);return!0}; dv.prototype.vl=function(){return this.requestType===1}; dv.prototype.nJ=function(){var n;return((n=this.Im)==null?void 0:n.nJ())||0}; dv.prototype.isDecorated=function(){var n,q,M;return!!(((n=this.data)==null?0:n.MS)||((q=this.data)==null?0:(M=q.B5)==null?0:M.length))};A8k.prototype.encrypt=function(n){(0,g.jt)();return this.X.X?RD1(this,n,this.iv):(new g.bT(this.X.W)).encrypt(n,this.iv)}; A8k.prototype.decrypt=function(n,q){(0,g.jt)();return this.X.X?RD1(this,n,q):(new g.bT(this.X.W)).decrypt(n,q)};g.y(Nq,g.F);Nq.prototype.Z=function(n,q){if(q){q=q instanceof g.Jc?q:Od(this,q);var M;((M=this.X.get(n))==null?void 0:C9(M.location))!==C9(q)&&this.X.set(n,new C4J(q,n))}else this.X.delete(n)}; Nq.prototype.load=function(){var n=this,q,M,t,c,Y,G,k,b,d,N;return g.u(function(O){switch(O.X){case 1:q=n.X.get(0);g.Ij(O,2);var e;if(e=q&&!n.W)e=C9(q.location),e=n.W===Tg(e);if(e){O.Fy(4);break}return g.U(O,J81(n,n.W?2:0),5);case 5:if(M=O.W)n.Z(0,M),Qh(M)&&n.Z(1,p9(M));case 4:g.vd(O,3);break;case 2:t=g.TU(O);g.PJ(t);if(!n.W){O.Fy(3);break}n.W=!1;return g.U(O,n.load(),7);case 7:return O.return();case 3:if(!n.Q1.experiments.Hb("html5_onesie_probe_ec_hosts")){O.Fy(0);break}g.Ij(O,9);c=n;Y=c.Z;G=3;return g.U(O, J81(n,1),11);case 11:return Y.call(c,G,O.W),k=n,b=k.Z,d=4,g.U(O,J81(n,2),12);case 12:b.call(k,d,O.W);g.vd(O,0);break;case 9:N=g.TU(O),g.PJ(N),g.Sk(O)}})}; Nq.prototype.N=function(){var n=this,q,M;return g.u(function(t){g.Jd(n.B);q=g.ic(n.Q1.experiments,"html5_onesie_prewarm_max_lact_ms");if(sc()>=q)return t.return();(M=n.X.get(0))&&zDd(n,M);g.Sk(t)})}; var olJ={BwL:0,hCt:1,nRm:2,KzL:3,Emt:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};r8a.prototype.decrypt=function(n){var q=this,M,t,c,Y,G,k;return g.u(function(b){switch(b.X){case 1:if(q.X.length&&!q.X[0].isEncrypted)return b.return();q.W=!0;q.yw.bz("omd_s");M=new Uint8Array(16);KT()?t=new g.dc(n):c=new g.bT(n);case 2:if(!q.X.length||!q.X[0].isEncrypted){b.Fy(4);break}Y=q.X.shift();if(!t){G=c.decrypt(kV(Y.buffer),M);b.Fy(5);break}return g.U(b,t.decrypt(kV(Y.buffer),M),6);case 6:G=b.W;case 5:k=G;for(var d=0;d=4)){var q=SY(this),M=this.xhr;q.rc=M.status;n&&(q.ab=!0);if(M.p9()){var t="onesie.net";q.msg=M.p9()}else M.status>=400?t="onesie.net.badstatus":M.IU()?this.XZ||(t="onesie.response.noplayerresponse"):t=M.status===204?"onesie.net.nocontent":"onesie.net.connect";t?this.fail(new g.eV(t,q)):(this.bz("or_fs"),this.Jg.zB((0,g.jt)(),M.A_(),0),this.Va(4),this.Pt&&this.Xy("rqs",q));this.Pt&&this.Xy("ombre", "ok."+ +!t);this.Wc=!1;jY(this);btC(this.yw);if(!this.bW){this.iK.stop();var c;(c=this.rb)==null||c.stop()}var Y;if(n=(Y=this.iL)==null?void 0:V0k(Y))for(Y=0;Y1E3){var n;(n=this.Jg)==null||n.xW((0,g.jt)());n=SY(this);if(this.Q1.Aq()&&this.xhr instanceof II){var q=this.xhr;n.xrs=q.xhr.readyState;n.xpb=q.X.totalLength;n.xdc=q.J}this.fail(new g.eV("net.timeout",n))}}else(0,g.jt)()-this.Jg.X>1E4&&((q=this.Jg)==null||q.xW((0,g.jt)()),this.WD());this.isComplete()||this.bZ.start()}}; g.W.WD=function(){this.logger.info("Onesie request timed out");this.Wc=!1;if(!jY(this)){var n=SY(this);n.timeout="1";this.fail(new g.eV("onesie.request",n))}}; g.W.fail=function(n){var q=this;n=hU(n);this.Yg?this.Mm.gZ(n):(this.bT.reject(n),this.Yg=!0);btC(this.yw);this.bW||this.iK.stop();this.bz("or_fe");var M,t;(M=this.iL)==null||(t=V0k(M))==null||t.forEach(function(c){q.Xy("pathprobe",c)}); this.Va(5);this.dispose()}; g.W.isComplete=function(){return this.state>=3}; g.W.Y$=function(){return this.state===4}; g.W.uw=function(n){var q,M;return this.isComplete()||!!((q=this.jY)==null?0:(M=q.get(n))==null?0:M.X)}; g.W.O_=function(){return!1}; g.W.NS=function(){return this.state===5}; g.W.notifySubscribers=function(n){for(var q=0;q102400&&!this.DP&&(this.bz("or100k"),this.DP=!0);if(n.U3()){var q=n.Dd(),M=q.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+M}); this.Pt&&this.Xy("ombrss","len."+M);this.MK.feed(q)}if(this.jY)for(var t=g.S(this.jY.keys()),c=t.next();!c.done;c=t.next()){var Y=c.value;n=void 0;(n=this.jY.get(Y))==null||n.FA();this.notifySubscribers(Y)}}catch(G){this.fail(G)}}; g.W.AP=function(){return this.Jg.requestNumber}; g.W.Yn=function(n){return this.w_.get(n)};g.y(PBC,g.F);g.W=PBC.prototype;g.W.oK=function(n,q){this.xl=void 0;opk(this);R6f(this,n,q)}; g.W.mG=function(n){if(this.X.length===0)return!1;var q=this.X[0];return q instanceof IO?n===this.loader.getCurrentTime()*1E3:!(q instanceof QR&&B1s(q.info))&&Math.abs(q.O0()-n)<50}; g.W.oa=function(n){this.W=n;this.xl=(0,g.jt)()+(n.backoffTimeMs||0)}; g.W.Fa=function(n,q){if(n.action===void 0){var M=this.Mm.HZ();M!==void 0&&this.loader.d6(M)}else if(n.action!==0||!this.AE)if(n.action===0&&this.policy.Gz&&(n.action=2),n.Ys==="sabr.malformed_config"&&this.V1++<3)this.loader.handleError("sabr.malformed_config",{action:n.action,rn:q,retry:this.V1},0);else switch(n.Ys==="sabr.malformed_config"&&(n.action=2),M={},M.reason=n.Ys,M.action=n.action,M.rn=q,n.action){case 1:this.policy.W&&this.N&&this.N.s$(void 0,void 0,M);break;case 0:this.AE=!0;this.videoData.oI()&& this.policy.W&&this.N&&this.N.s$(void 0,void 0,M,!1);this.loader.VE(M);break;case 2:jFu(n.Ys)!=="sabr.config"&&delete M.reason;this.loader.handleError(jFu(n.Ys),M,1);break;case 3:this.policy.O9&&((n=this.fm.U)!=null&&(n.B=!0),this.loader.handleError("sabr.hostfallback",M))}}; g.W.Br=function(n){n&&(this.loader.Xy("sabrctxt",{onsbrctxt:n.type,scp:n.scope,dflt:n.sendByDefault}),n.type&&n.sendByDefault&&this.videoData.eX.add(n.type),n.scope!==2&&(n.type&&this.videoData.sabrContextUpdates.set(n.type,n),this.Mm.Br(n)))}; g.W.pO=function(){}; g.W.Ce=function(n,q){if(this.policy.Rk&&this.loader.xH)this.loader.Xy("sdai",{ignSabrSeek:1,smt:n==null?void 0:n.iR,rn:q});else if(n.iR!==void 0&&n.Zz){var M=n.iR/n.Zz;this.audioTrack.N=!1;this.videoTrack.N=!1;if(this.policy.RL||this.policy.Pw||this.policy.A2)this.loader.DU.X=!1;var t=this.loader.rp(M,1);this.policy.eX&&this.policy.W&&this.loader.Bc(t,q);this.Mm.getCurrentTime()!==M&&(q={hQ:"sabr_seek",W5:!0,yu:!0},n.seekSource&&(q.seekSource=n.seekSource),gp(this.loader,M+.1,q))}}; g.W.onSnackbarMessage=function(n){this.Mm.publish("onSnackbarMessage",n)}; g.W.jQ=function(n,q){this.policy.C&&this.B&&this.loader.jQ(n,q)}; g.W.fl=function(n){n.uO&&n.SS&&QZ(this.fm,n.uO,n.SS);this.policy.Ko&&(n.A8&&n.C7&&(this.fm.DN=n.A8/n.C7),n.FB&&n.jt&&(this.fm.ZJ=n.FB/n.jt));Mm(this.videoData)&&!this.videoData.RL&&n.SS&&this.loader.rp(n.SS,1E3);n.fH!=null&&this.Mm.j9(n.fH);n.Yk&&(n=((0,g.jt)()-n.Yk)/1E3,this.loader.k7.Hk(1,n))}; g.W.oO=function(n){this.loader.oO(n)}; g.W.yK=function(n){return this.videoData.eX.has(n)}; g.W.IG=function(n,q,M){this.policy.Z&&this.loader.Xy("sabrctxtplc",{start:n?n.join("_"):"",stop:q?q.join("_"):"",discard:M?M.join("_"):""});if(n){n=g.S(n);for(var t=n.next();!t.done;t=n.next())this.videoData.eX.add(t.value)}if(q)for(q=g.S(q),n=q.next();!n.done;n=q.next())n=n.value,this.videoData.eX.has(n)&&this.videoData.eX.delete(n);if(M)for(M=g.S(M),q=M.next();!q.done;q=M.next())if(q=q.value,this.videoData.sabrContextUpdates.has(q)&&this.videoData.sabrContextUpdates.delete(q),this.policy.xl&&this.X.length)for(n= g.S(this.X),t=n.next();!t.done;t=n.next())if(t=t.value,!(t instanceof IO)){var c=void 0;((c=t.uv)==null?void 0:c.type)===q&&(t.uv=void 0)}}; g.W.gN=function(){}; g.W.OH=function(n){this.C=n}; g.W.gf=function(n){this.S=n}; g.W.j$=function(n,q){qRd(this.policy,n,4,q)}; g.W.aK=function(n){if(n==null?0:n.jm)if(n=n.jm.Me){n=g.S(n);for(var q=n.next();!q.done;q=n.next())if(q=q.value,q.formatId){var M=this.fm.Z.get(rV(q.formatId));M&&M.info&&(M.info.debugInfo=q.debugInfo)}}}; g.W.wN=function(n){this.Mm.publish("reloadplayer",n)}; g.W.HA=function(){return this.Mm.HA()||""}; g.W.nJ=function(){var n=AKd(this);return Math.min(n.S2,n.QF)}; g.W.Jq=function(n,q){this.loader.Xy(n,q)}; g.W.yD=function(n){k6J(this.loader,m51(this.Yl,n))}; g.W.ut=function(){g.F.prototype.ut.call(this);this.W=void 0;R6f(this,!0,"i");this.X=[]};nts.prototype.xl=function(n){Z$(n.state)&&rKd(this.J)}; nts.prototype.dN=function(){this.isSeeking=!0;this.X===1&&Qis(this.J);this.X===0&&this.w8.sT("transitiondetector");this.C=!1};KZJ.prototype.iY=function(n,q){if(this.J)return Oif(this,q);if(q=ep(n)){var M=q.X;M&&M.Z&&M.X&&(n=n.Z.length?n.Z[0]:null)&&n.state>=2&&!n.NS()&&n.info.ac===0&&(this.J=n,this.N=M,this.W=q.info,this.C=this.startTimeSecs=Date.now()/1E3,this.S=this.W.startTime)}return NaN}; KZJ.prototype.clear=function(){this.W=this.N=this.J=null;this.X=this.S=this.C=this.startTimeSecs=NaN;this.Z=!1};g.y(Et1,g.F);Et1.prototype.ut=function(){WZu(this);g.F.prototype.ut.call(this)};var yvC=/[?&]cpn=/;g.y(rv,g.F);rv.prototype.flush=function(){var n={};this.W&&(n.pe=this.W);this.X.length>0&&(n.pt=this.X.join("."));this.X=[];return n}; rv.prototype.stop=function(){var n=this,q,M,t;return g.u(function(c){if(c.X==1)return g.Ij(c,2),g.U(c,(q=n.J)==null?void 0:q.stop(),4);if(c.X!=2)return(M=c.W)&&n.logTrace(M),g.vd(c,0);t=g.TU(c);n.W=HiJ(t.message);g.Sk(c)})}; rv.prototype.logTrace=function(n){this.encoder.reset();this.encoder.add(1);this.encoder.add(n.resources.length);for(var q=g.S(n.resources),M=q.next();!M.done;M=q.next()){M=M.value.replace("https://www.youtube.com/s/","");this.encoder.add(M.length);for(var t=0;t=0?n:g.qM(this.provider),this.wJ?Z0F.has(this.TU)&&(this.X.size||(this.TU==="PL"?n>=this.W+30:n<=this.xl+30||n>=this.W+1200&&n<=this.xl+86400))&&(g.Qw(this,n,"vps",[this.TU]),this.W=n):["PL","B","S"].indexOf(this.TU)>-1&&(this.X.size||n>=this.W+30)&&(g.Qw(this,n,"vps",[this.TU]),this.W=n),this.X.size)){this.sequenceNumber===7E3&&g.PJ(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){MM(this,n);var q=this.provider.Mm.IJ(); q=g.S(q);for(var M=q.next();!M.done;M=q.next())M=M.value,this.Xy(M.key,M.value);q=n;M=this.provider.Mm.MJ();var t=M.droppedVideoFrames||0,c=M.totalVideoFrames||0,Y=t-this.PF,G=c&&!this.OD;t>M.totalVideoFrames||Y>5E3?a9d(this,"html5.badframedropcount","df."+t+";tf."+M.totalVideoFrames):(Y>0||G)&&g.Qw(this,q,"df",[Y]);this.PF=t;this.OD=c;this.B>0&&(g.Qw(this,n,"glf",[this.B]),this.B=0);tw.isActive()&&(n=tw.c8(),Object.keys(n).length>0&&this.Xy("profile",n));this.Fh&&ir(this,"lwnmow");this.provider.Q1.Aq()&& this.provider.D("html5_record_now")&&this.Xy("now",{wt:(0,g.jt)()});n={};this.provider.videoData.W&&(n.fmt=this.provider.videoData.W.itag,(q=this.provider.videoData.J)&&q.itag!==n.fmt&&(n.afmt=q.itag));n.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(n.adcpn=this.adCpn);this.FQ&&(n.addocid=this.FQ);this.contentCpn&&(n.ccpn=this.contentCpn);this.jX&&(n.cdocid=this.jX);this.provider.videoData.cotn&&(n.cotn=this.provider.videoData.cotn);n.el=kt(this.provider.videoData);n.content_v=dZ(this.provider.videoData); n.ns=this.provider.Q1.xl;n.fexp=xG1(this.provider.Q1.experiments).toString();n.cl=(800254696).toString();(q=this.provider.videoData.adFormat||this.adFormat)&&(n.adformat=q);(q=r8(this.provider.videoData))&&(n.live=q);this.provider.videoData.G8()&&(n.drm=1,this.provider.videoData.S&&(n.drm_system=vvF[this.provider.videoData.S.flavor]||0),this.provider.videoData.drmProduct&&(n.drm_product=this.provider.videoData.drmProduct));il()&&this.provider.videoData.C&&(n.ctt=this.provider.videoData.C,n.cttype= this.provider.videoData.Ww,this.provider.videoData.mdxEnvironment&&(n.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(n.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.uV&&(n.dai_fallback="1")):this.provider.videoData.DH?n.dai="cs":this.provider.videoData.mp&&(n.dai="disabled");n.seq=this.sequenceNumber++;if(this.provider.videoData.yL){if(q=this.provider.videoData.yL,n&&q)for(q.ns==="3pp"&&(n.ns="3pp"),this.rZ.has(q.ns)&& ir(this,"hbps"),q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=q.shbpslc),this.provider.Q1.experiments.Hb("html5_use_server_qoe_el_value")&&this.eX.delete("el"),M=g.S(Object.keys(q)),t=M.next();!t.done;t=M.next())t=t.value,this.eX.has(t)||(n[t]=q[t])}else n.event="streamingstats",n.docid=this.provider.videoData.videoId,n.ei=this.provider.videoData.eventId;this.isEmbargoed&&(n.embargoed="1");Object.assign(n,this.provider.Q1.X);if(q=n.seq)q={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+q,serializedWatchEndpointLoggingContext:this.provider.videoData.xWm},this.serializedHouseBrandPlayerServiceLoggingContext&&(q.serializedHouseBrandPlayerServiceLoggingContext=Tf(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(q.playerResponseCpn=this.provider.videoData.playerResponseCpn),xE.length&&(q.decoderInfo=xE),this.remoteControlMode&&(q.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(q.remoteConnectedDevices= this.remoteConnectedDevices),q=g.VN(q,Yva),q=g.Pn(q,4),this.X.set("qclc",[q]);n=g.hC("//"+this.provider.Q1.Sd+"/api/stats/qoe",n);M=q="";t=g.S(this.X.entries());for(c=t.next();!c.done;c=t.next())Y=g.S(c.value),c=Y.next().value,Y=Y.next().value,G=void 0,(G=Y)!=null&&G.join&&(c="&"+c+"="+Y.join(","),c.length>100?M+=c:q+=c);mmk(this,n+q,M.replace(/ /g,"%20"))}this.X.clear()}}; g.W.S9=function(n){this.Fh=n}; g.W.m3=function(){if(this.provider.videoData.S){var n=this.provider.videoData.S;ir(this,"eme-"+(n.keySystemAccess?"final":G5(n)?"ms":bd(n)?"ytfp":k$(n)?"safarifp":"nonfinal"))}}; g.W.HR=na(53);g.W.Ul=function(n){this.isEmbargoed=n}; g.W.T8=na(30);g.W.UN=na(36);g.W.onPlaybackRateChange=function(n){var q=g.qM(this.provider);n&&n!==this.o8&&(g.Qw(this,q,"rate",[n]),this.o8=n);this.wJ||this.reportStats(q)}; g.W.Mc=na(24);g.W.getPlayerState=function(n){if(g.C(n,128))return"ER";if(g.C(n,2048))return"B";if(g.C(n,512))return"SU";if(g.C(n,16)||g.C(n,32))return"S";if(n.isOrWillBePlaying()&&g.C(n,64))return"B";var q=avs[ae(n)];g.hi(this.provider.Q1)&&q==="B"&&this.provider.Mm.getVisibilityState()===3&&(q="SU");q==="B"&&g.C(n,4)&&(q="PB");return q}; g.W.LO=function(n){var q=g.qM(this.provider);g.Qw(this,q,"vfi",[n===0?"":""+n,n===0?"A":"M"])}; g.W.ut=function(){g.F.prototype.ut.call(this);g.OH(this.RL);g.OH(this.O9)}; g.W.KO=function(n){this.isOffline=n;g.Qw(this,g.qM(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.W.Xy=function(n,q,M){var t=this.cn.indexOf(n)!==-1;t||this.cn.push(n);if(!M||!t){var c=typeof q!=="string"?gy(q):q;c=ota(c);if(!M&&!/^t[.]/.test(c)){var Y=g.qM(this.provider)*1E3;c="t."+Y.toFixed()+";"+c}nb(this,"ctmp",n+":"+c);this.logger.debug(function(){return"ctmp "+n+" "+c}); $ms(this);return Y}}; g.W.Kl=function(n,q,M){this.S={pIl:Number(this.Xy("glrem",{nst:n.toFixed(),rem:q.toFixed(),ca:+M})),sP:n,TOx:q,isAd:M}}; g.W.f3=function(n,q,M){g.Qw(this,g.qM(this.provider),"ad_playback",[n,q,M])}; g.W.hv=function(n,q){var M=g.qM(this.provider)*1E3;nb(this,"daism","t."+M.toFixed(0)+";smw."+(n*1E3).toFixed(0)+";smo."+(q*1E3).toFixed(0))}; g.W.resume=function(){var n=this;isNaN(this.RL)?FZs(this):this.RL=g.dO(function(){n.reportStats()},1E4)}; var sf={},avs=(sf[5]="N",sf[-1]="N",sf[3]="B",sf[0]="EN",sf[2]="PA",sf[1]="PL",sf[-1E3]="ER",sf[1E3]="N",sf),Z0F=new Set(["PL","B","S"]),xE=[];g.y(g.Y9,g.F);g.W=g.Y9.prototype;g.W.initialize=function(n,q,M){this.logger.debug(function(){return"Initialized, t="+n}); n=n||0;this.policy.X||(q=FcU(this.X),N6J(this.Mm,new KU(q.video,q.reason)),this.Mm.T_(new KU(q.audio,q.reason)));this.policy.X&&N1U(this);this.fm.isManifestless&&y8J(this.S);this.N&&bik(this.N,this.videoTrack.X);q=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var t=!this.fm.isManifestless;this.policy.E7&&(t=t||this.fm.C8);if(!this.policy.nm||this.policy.Kd)this.currentTime=t?n:q;this.policy.RL&&this.seek(this.getCurrentTime(),{}).M9(function(){}); if(this.policy.X){var c;((c=this.xl)==null?0:LOk(c,this.HA()||""))&&poR(this)&&Qmu(this,this.videoTrack)&&Qmu(this,this.audioTrack)&&(wOd(this.W,this.xl),this.policy.S&&xms(this))}else this.wJ&&(nzU(this,this.videoTrack),nzU(this,this.audioTrack),oMm(this.wJ),delete this.wJ);M?(Mjd(this,!1),g.Jd(this.v0)):(M=this.getCurrentTime()===0,YE(this.S,this.videoTrack,this.videoTrack.X,M),YE(this.S,this.audioTrack,this.audioTrack.X,M),this.policy.X&&l6j(this.W,!0),this.policy.RL||this.seek(this.getCurrentTime(), {}).M9(function(){}),this.timing.tick("gv")); (this.fm.qV||this.fm.SL||this.fm.jX||this.fm.Fh||this.fm.O9)&&this.Mm.yV(this.fm)}; g.W.resume=function(){if(this.isSuspended||this.jp){this.logger.debug("Resumed.");this.Hh=this.jp=this.isSuspended=!1;try{this.iY()}catch(n){g.Ly(n)}}}; g.W.RC=function(){return!this.policy.uI}; g.W.NF=function(n,q){n=n===void 0?!1:n;q=q===void 0?!1:q;this.logger.debug("detaching media source");Y3j(this);this.Mm.Zf()&&(this.C=NaN);n?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.SX&&this.Xy("loader",{setsmb:1}),this.policy.IL=!0,this.Eu()):(Mjd(this,!1),q||this.Eu())}; g.W.setAudioTrack=function(n,q,M){M=M===void 0?!1:M;if(!this.qm()){var t=!isNaN(q);M&&t&&(this.audioTrack.RL=Date.now(),this.policy.YB&&(this.Ux=!0));if(this.policy.X){var c=this.J.r_(n.id,t);this.logger.debug(function(){return"Logging new audio format: "+c.X.info.id}); this.Mm.T_(c)}else{var Y=Ayd(this.X,n.id,t);this.logger.debug(function(){return"Logging new audio format: "+Y.audio.info.id}); this.Mm.T_(new KU(Y.audio,Y.reason))}t?(this.Fh=Date.now(),M=this.audioTrack.X.index.HH(q),this.Xy("setAudio",{id:n.id,cmt:q,sq:M}),M>=0&&(n=this.policy.PW?M+1:M,this.policy.X&&this.oK(!0,"mosaic"),$0U(this.audioTrack,n,NaN,NaN),!this.policy.SR&&this.fm.isLive&&xQ(this.fm,n,!1))):this.Mm.wU()}}; g.W.setPlaybackRate=function(n){n!==this.U.getPlaybackRate()&&this.U.setPlaybackRate(n)}; g.W.Qc=function(n){var q=this.W.C;this.W.OH(n);this.Xy("scfidc",{curr:rV(q),"new":rV(n)});n&&rV(n)!==rV(q)&&(this.oK(!0,"caption change"),this.iY())}; g.W.vF=function(n){this.W.gf(n)}; g.W.IA=function(n){var q=n.X.info.OC();this.logger.debug(function(){return"New "+(q?"audio":"video")+" format from SABR: "+c3(n.X.info)}); q?this.Mm.T_(n):N6J(this.Mm,n)}; g.W.yD=function(n){ty(n.Ex[n.Ex.length-1])&&k6J(this,m51(this.X,n.Ex[0].X))}; g.W.Kx=function(){return this.Mm.Kx()}; g.W.mC=function(){return this.Mm.mC()}; g.W.oO=function(n){this.Mm.T().Aq()&&this.Xy("sps",{status:n.BO||""});if(n.BO===1)this.Mm.videoData.YK=0;else if(n.BO===2||n.BO===3){var q=!1;if(n.BO===3){q=this.Mm.hc();var M;this.TX=(M=n.EBL)!=null?M:Infinity;this.Mm.videoData.YK=q+1;(q=WNk(this))&&this.rG(!0)}this.Mm.Ih(!0,q)}}; g.W.W0=function(){return this.Mm.W0()}; g.W.KT=function(){return this.Mm.KT()}; g.W.gr=function(n){this.Mm.gr(n)}; g.W.f6y=function(){var n,q=(n=this.Mm.Q6())==null?void 0:n.getCurrentTime();q?this.Mm.Xy("rms",{cta:q}):g.Jd(this.Kn)}; g.W.iY=function(){Ki1(this);if(this.md&&XD(this.md)&&!this.md.sQ()&&(!this.policy.nm||isFinite(this.getCurrentTime()))){var n=Ro(this.videoTrack);n=this.policy.Od&&n&&n.Ci();this.fm.isManifestless&&this.fm.J&&Jy(this.fm)?(this.C=Jy(this.fm),this.md.Bt(this.C)):pu(this.fm)&&!n?isNaN(this.C)?(this.C=this.getCurrentTime()+3600,this.md.Bt(this.C)):this.C<=this.getCurrentTime()+1800&&(this.C=Math.max(this.C+1800,this.getCurrentTime()+3600),this.md.Bt(this.C)):this.md.isView||(n=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.C)||this.C!==n)&&n>0&&(this.md.Bt(n),this.C=n))}if(!this.qm())if(zW(this.fm)&&this.fm.NS()){var q=this.fm;this.handleError("manifest.net.retryexhausted",q.eX?{rc:q.YM}:{rc:q.YM.toString()},1)}else if(this.policy.X)a:{try{FOa(this.W);this.fm.isManifestless&&this.policy.S&&N$(this.DU);var M;((M=this.md)==null?0:Ie(M))&&this.Cv();l6j(this.W)}catch(G){g.PJ(G);q=G;if(q.message.includes("changeType")){this.Xy("ctype",{exp:q.name,msg:q.message,s:q.stack});break a}this.handleError("fmt.unplayable", {exp:q.name,msg:q.message,s:q.stack,trg:"sabrslicerqt"},1)}T6s(this);g.Jd(this.Yl)}else if(!this.fm.W||!RNU(this.videoTrack)&&!RNU(this.audioTrack)||(this.videoTrack.S||this.audioTrack.S)&&this.policy.uG?M=!1:(this.Eu(),this.Mm.seekTo(Infinity,{hQ:"checkLoaderTracksSync",rp:!0}),M=!0),!M){Ki1(this);this.fm.isManifestless&&(o$k(this.videoTrack),o$k(this.audioTrack),N$(this.DU),(M=ep(this.videoTrack))&&M.X&&(M=M.X.Z&&!this.policy.ih,this.Xy(M===this.policy.B.jA?"strm":"strmbug",{strm:M,sfmp4:this.policy.B.jA, dfs:this.policy.ih},!0)));if(this.md)this.Cv();else if(this.policy.J){var t;M=!1;if(this.policy.IS){var c;n=g.S([this.videoTrack,this.audioTrack]);for(c=n.next();!c.done;c=n.next()){var Y=c.value;for(c=ep(Y);c&&Y.O5()!==Ro(Y);c=ep(Y))Y.VZ(c);M=M||!!c}}else(q=ep(this.videoTrack))&&this.videoTrack.VZ(q),(t=ep(this.audioTrack))&&this.audioTrack.VZ(t);JL(this.videoTrack)&&JL(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(q||t||M)&&Jz(this)}q3d(this);YE(this.S,this.videoTrack, this.videoTrack.X,!1);YE(this.S,this.audioTrack,this.audioTrack.X,!1);this.policy.nG||dWu(this,this.videoTrack,this.audioTrack);k3d(this.S,this.videoTrack,this.audioTrack);k3d(this.S,this.audioTrack,this.videoTrack);T6s(this);this.N&&(q=this.N,q.J?(t=q.C+q.policy.iJ,q.Z||(t=Math.min(t,q.startTimeSecs+q.policy.qS)),q=Math.max(0,t*1E3-Date.now())):q=NaN,isNaN(q)||g.Jd(this.cn,q));g.Jd(this.Yl)}}; g.W.VE=function(n){this.Mm.VE(n)}; g.W.Cv=function(){var n=this;if(this.md){var q=this.md.X,M=this.md.W;CuJ(this,this.audioTrack);CuJ(this,this.videoTrack);var t=gzu(this);if(t){if(this.policy.uM){if(!q.N2()){var c=ep(this.audioTrack);if(c){if(!cF(this,this.audioTrack,q,c.info))return;hsJ(this,this.audioTrack,q,c)}}if(!M.N2()&&(c=ep(this.videoTrack))){if(!cF(this,this.videoTrack,M,c.info))return;hsJ(this,this.videoTrack,M,c)}}this.RL||(this.RL=(0,g.jt)(),this.logger.debug(function(){return"Appends pause start "+n.RL+" reason "+t}), this.policy.Z&&this.Xy("apdps",{r:t}))}else if(this.RL&&(OI1(this,this.RL),this.RL=0),es1(this),c=!1,j5R(this,this.videoTrack,M)&&(c=!0,cyd(this.timing),kWs(this.timing)),this.md&&!this.md.vI()&&(j5R(this,this.audioTrack,q)&&(c=!0,Ybs(this.timing),bu1(this.timing)),!this.qm()&&this.md))!this.policy.uI&&JL(this.videoTrack)&&JL(this.audioTrack)&&XD(this.md)&&!this.md.sQ()&&(M=!1,M=Ro(this.audioTrack).X,M=M===this.fm.X[M.info.id])&&(this.logger.debug("Setting EOS"),$Zu(this.md),l7d(this.schedule),this.y$("e")), c&&!this.md.isAsync()&&Jz(this)}}; g.W.y$=function(n){if(this.fm.isManifestless){var q=this.videoTrack.X;if(q){var M=q.index.Uq(),t=-1,c=-1;q.index instanceof W$&&(t=q.index.sZ(),c=q.index.Y9());this.Mm.y$(n,M,t,c)}}}; g.W.di=function(n){var q,M=n===((q=this.md)==null?void 0:q.X)?this.audioTrack:this.videoTrack,t;if((t=ep(M))==null?0:t.isLocked){if(this.Mm.T().Aq()){var c;this.Xy("eosl",{ounlock:(c=ep(M))==null?void 0:c.info.Sc()})}var Y;P6C(this,n===((Y=this.md)==null?void 0:Y.X))}var G;if(this.policy.YB&&n===((G=this.md)==null?void 0:G.X)&&this.QS){q=this.QS-this.getCurrentTime();var k;this.Mm.Xy("asl",{l:q,xtag:(k=Ro(this.audioTrack))==null?void 0:k.X.info.X});this.Ux=!1;this.QS=0}n.Yp()&&n.Xm().length===0&& (n.rq(),this.md&&!this.md.Yp()&&(this.Mm.T().Aq()&&this.Mm.Xy("rms",{ld:"seek"}),this.md.C=performance.now(),this.Mm.RJ(),this.Mm.T().Aq()&&g.Jd(this.Kn)));var b;(b=M.U)!=null&&X6(b,0);this.policy.o8?hDs(this):this.iY()}; g.W.pgL=function(n){if(this.md){var q=Ro(n===this.md.X?this.audioTrack:this.videoTrack);if(n=n.NE())for(var M=0;M5&&k.xl.shift();q=q.zs;var b;if((b=this.Mm.getVideoData())==null?0:b.enableServerStitchedDai)b=x0j(this.audioTrack,q),M=x0j(this.videoTrack,q),b!==0&&M!==0&&b!==M&&this.handleError("ssdai.avsync",{sq:q,a:b,v:M},0)}}; g.W.Qb=function(n,q,M,t){n.info.video&&this.Z.Qb(q,M,t)}; g.W.Fg=function(n){this.X.Fg(n)}; g.W.kP=na(12);g.W.Ql=function(){if(g.C(this.Mm.getPlayerState(),8)){var n,q,M=(q=(n=this.Mm.Q6())==null?void 0:n.getCurrentTime())!=null?q:this.Mm.getCurrentTime(),t;(t=this.Wg)==null||Mnm(t,M)}var c;(c=this.Yi)==null||g.Jd(c)}; g.W.z4=function(){return this.videoTrack.N||this.audioTrack.N}; g.W.seek=function(n,q){if(this.qm())return UN();if(this.z4())return UN("seeking to head");if(this.policy.RL&&!isFinite(n))return aGs(this.DU),g.lg(Infinity);Ki1(this);N1U(this);this.policy.X||q3d(this,n);this.md&&this.md.X&&this.md.W&&!this.Mm.getVideoData().sj&&(this.md.X.isLocked()||this.md.W.isLocked())&&this.Mm.wU({reattachOnLockedBuffer:1,vsb:""+this.md.W.isLocked(),asb:""+this.md.X.isLocked()});var M=this.getCurrentTime(),t=this.DU.seek(n,q);if(!this.policy.nm||this.policy.Kd)this.currentTime= t;Yk(this.Z,n,M,this.policy.Pp&&!q.W5);Jz(this);return g.lg(t)}; g.W.mG=function(n){return this.policy.X&&this.W.mG(n)}; g.W.yK=function(n){return this.W.yK(n)}; g.W.oK=function(n,q){this.W.oK(n,q)}; g.W.getCurrentTime=function(){if(this.policy.nm){var n=this.NP()||0;return this.Mm.getCurrentTime(!0)-n}return this.currentTime}; g.W.SJ=function(){return this.audioTrack.X.info}; g.W.Uv=function(){return this.videoTrack.X.info}; g.W.bP=function(){return this.audioTrack.X.info.Ts}; g.W.cz=function(){return this.videoTrack.X.info.Ts}; g.W.ut=function(){try{this.NF(),Kn(this.audioTrack),Kn(this.videoTrack),qq(this.audioTrack),qq(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.F.prototype.ut.call(this)}catch(n){g.Ly(n)}}; g.W.handleError=function(n,q,M){M=M===void 0?0:M;var t=Et(M);n==="fmt.unplayable"&&this.fm.isLive&&(this.policy.uM=!1,rm(this.fm));q=new g.eV(n,q,M);g.KQ(this);gy(q.details);this.Mm.handleError(q);n!=="html5.invalidstate"&&q.errorCode!=="fmt.unplayable"&&n!=="fmt.unparseable"&&t&&this.dispose()}; g.W.Bg=function(){var n=Ro(this.audioTrack),q=Ro(this.videoTrack);n={lct:this.getCurrentTime().toFixed(3),lsk:this.DU.isSeeking(),lmf:this.X.X.isLocked(),lbw:rh(this.schedule).toFixed(3),lhd:Vt(this.schedule).toFixed(3),lst:((this.schedule.N.BI()||0)*1E9).toFixed(3),laa:n?n.Sc():"",lva:q?q.Sc():"",lar:this.audioTrack.W?this.audioTrack.W.Sc():"",lvr:this.videoTrack.W?this.videoTrack.W.Sc():"",laq:""+VP(this.audioTrack),lvq:""+VP(this.videoTrack)};this.md&&!this.md.vI()&&this.md.X&&this.md.W&&(n.lab= Ga(this.md.X.Xm()),n.lvb=Ga(this.md.W.Xm()));this.RL&&(n.lapt=((0,g.jt)()-this.RL).toFixed(0),n.lapr=gzu(this));this.rJ&&(n.lapmabht=((0,g.jt)()-this.rJ).toFixed(0),n.lapmabh=bD(this,this.audioTrack).toFixed(0));this.V1&&(n.lapmvbht=((0,g.jt)()-this.V1).toFixed(0),n.lapmvbh=bD(this,this.videoTrack).toFixed(0));this.AE&&(n.lapsdai=((0,g.jt)()-this.AE).toFixed(0));return n}; g.W.Eu=function(){try{this.policy.X&&this.W.oK(!1,"pending"),this.audioTrack.Eu(),this.videoTrack.Eu()}catch(n){g.Ly(n)}this.policy.J=""}; g.W.Fk=function(){return nn(this.U)}; g.W.Xy=function(n,q,M){this.Mm.Xy(n,q,M===void 0?!1:M)}; g.W.HA=function(){return this.Mm.HA()}; g.W.rp=function(n,q){n/=q;isNaN(this.timestampOffset)&&rzJ(this,n-Math.min(n,this.policy.Vc));return(n-this.timestampOffset)*q}; g.W.NP=function(){return this.timestampOffset}; g.W.isSeeking=function(){return this.DU.isSeeking()}; g.W.TR=function(){this.Z.TR()}; g.W.Sb=function(n,q,M){q=q===void 0?!1:q;M=M===void 0?{}:M;this.policy.X?this.J.Sb(n,q,M):this.X.Sb(n,q,M)}; g.W.kp=function(n,q){if(this.policy.W&&this.policy.Fw&&(this.xH||this.isSeeking()))return this.Xy("sdai",{ignoreSkip:"1",isSkip:this.xH,isSeek:this.isSeeking(),t:n.toFixed(3)}),!1;var M=this.policy.W&&(this.policy.C||this.policy.eX),t=this.videoTrack.X.index.HH(n),c=!1;if(M){var Y;c=!((Y=this.jX)==null||!Y.hf(n,t,this.timestampOffset))}else this.B&&(c=!!this.Z.kp(n,this.B));if(!c)return this.handleError("ad.skipfailed",{dec:!!this.B,t:n.toFixed(3),sq:t}),!1;this.policy.W&&this.policy.Fw&&(this.Xy("sdai", {skipAdStd:"1"}),this.xH=!0);rzJ(this,this.timestampOffset-q);Jz(this);this.policy.W&&(rm(this.fm),qq(this.audioTrack),qq(this.videoTrack),this.Eu());return!0}; g.W.getManifest=function(){return this.fm}; g.W.isOffline=function(){return!!this.Mm.getVideoData().cotn}; g.W.Hi=function(n,q){this.Mm.Hi(n,q)}; g.W.Af=function(n){if(this.policy.X)this.W.oK(!0,"utc"),this.iY();else{var q=this.Mm.getVideoData().f_;if(q){var M=this.S;M.PH=n;M.f_=q;Kv(this)}}}; g.W.d6=function(n){this.videoTrack.N=!1;this.audioTrack.N=!1;this.DU.X=!1;this.Mm.d6(n)}; g.W.f4=function(n){this.DU.f4(n-this.NP())}; g.W.cW=function(){this.Mm.cW()}; g.W.rG=function(n){n!==this.policy.Wk&&((this.policy.Wk=n)||this.iY())}; g.W.wU=function(n){this.Mm.wU(n)}; g.W.S9=function(n){this.Mm.S9(n)}; g.W.sA=function(n,q,M){var t;(t=this.jX)==null||t.sA(n,q,M);this.policy.C&&(this.W.xl=void 0,this.iY())}; g.W.Bc=function(n,q){var M;(M=this.jX)==null||M.Bc(n,q)}; g.W.hc=function(){return this.Mm.hc()}; g.W.jQ=function(n,q){if(this.policy.C){var M;(M=this.jX)==null||M.jQ(n,q,this.B||void 0)}};g.W=g.Gl.prototype;g.W.vz=function(n,q,M,t,c,Y){return this.tQ.vz(n,q,M,t,c,Y)}; g.W.hV=function(n,q,M,t,c,Y){return this.tQ.hV(n,q,M,t,c,Y)}; g.W.HQ=function(n){return this.tQ.HQ(n)}; g.W.e3=function(n){this.tQ.e3(n)}; g.W.s$=function(n,q,M,t){return this.tQ.s$(n,q,M,t)}; g.W.TR=function(){this.tQ.TR()}; g.W.hf=function(n,q){this.tQ.hf(n,q)}; g.W.uW=function(){this.tQ.uW()}; g.W.OZ=na(56);g.W.P_=function(n,q,M){this.tQ.P_(n,q,M)}; g.W.Fc=na(59);g.W.GA=function(n,q,M,t,c,Y,G,k,b){this.tQ.GA(n,q,M,t,c,Y,G,k,b)}; g.W.Aa=function(n){this.tQ.Aa(n)}; g.W.rC=function(n){return this.tQ.rC(n)}; g.W.Eo=function(n){return this.tQ.Eo(n)}; g.W.yE=function(n){return this.tQ.yE(n)};g.y(Kb,g.MB);g.y(k9,Kb);k9.prototype.C=function(n,q){if(n&&q){var M=Number(jy(n,"cpi"))*1+1;isNaN(M)||M<=0||Mthis.Z&&(this.Z=M,g.g0(this.X)||(this.X={},this.J.stop(),this.W.stop())),this.X[q]=n,g.Jd(this.W))}}; k9.prototype.S=function(){for(var n=g.S(Object.keys(this.X)),q=n.next();!q.done;q=n.next()){var M=q.value;q=this.publish;for(var t=this.Z,c=g.kO(this.X[M]),Y=[],G=g.S(c[6].split("&")),k=G.next();!k.done;k=G.next())k=k.value,k.indexOf("cpi=")===0?Y.push("cpi="+t.toString()):k.indexOf("ek=")===0?Y.push("ek="+g.Pg(M)):Y.push(k);c[6]="?"+Y.join("&");M="skd://"+c.slice(2).join("");c=M.length*2;t=new Uint8Array(c+4);t[0]=c%256;t[1]=(c-t[0])/256;for(c=0;c0)for(var M=g.S(this.X),t=M.next();!t.done;t=M.next())if(q===t.value.info.cryptoPeriodIndex){q=!0;break a}q=!1}if(!q){q=(0,g.jt)();a:{M=n.cryptoPeriodIndex;if(!isNaN(M)){t=g.S(this.Z.values());for(var c=t.next();!c.done;c=t.next())if(Math.abs(c.value.cryptoPeriodIndex-M)<=1){M=!0;break a}}M=!1}M?(M=n.X,M=Math.max(0,Math.random()*((isNaN(M)?120:M)-30))*1E3):M=0;this.publish("log_qoe",{wvagt:"delay."+M,cpi:n.cryptoPeriodIndex,reqlen:this.X.length}); M<=0?n9J(this,n):(this.X.push({time:q+M,info:n}),g.Jd(this.W,M))}}; br.prototype.ut=function(){this.X=[];Kb.prototype.ut.call(this)};var X5={},c3m=(X5.DRM_TRACK_TYPE_AUDIO="AUDIO",X5.DRM_TRACK_TYPE_SD="SD",X5.DRM_TRACK_TYPE_HD="HD",X5.DRM_TRACK_TYPE_UHD1="UHD1",X5);g.y(ibk,g.F);g.y(Gla,g.MB);g.W=Gla.prototype;g.W.D2=function(n){var q=this;if(!(this.qm()||n.size<=0)){var M={};n.forEach(function(t,c){var Y=Kx(q.W)?c:t;c=new Uint8Array(Kx(q.W)?t:c);Kx(q.W)&&SL1(c);t=g.Pn(c,4);SL1(c);c=g.Pn(c,4);q.X[t]?q.X[t].status=Y:q.X[c]?q.X[c].status=Y:q.X[t]={type:"",status:Y};XFa(q,q.X[t].type,M)}); y3d(this,",");d9(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.W.error=function(n,q,M,t){this.qm()||(this.publish("licenseerror",n,q,M,t),n==="drm.provision"&&(n=(Date.now()-this.C)/1E3,this.C=NaN,this.publish("ctmp","provf",{et:n.toFixed(3)})));Et(q)&&this.dispose()}; g.W.shouldRetry=function(n,q){return!n&&this.requestNumber===q.requestNumber}; g.W.ut=function(){this.X={};g.MB.prototype.ut.call(this)}; g.W.Bg=function(){var n={ctype:this.B.contentType||"",length:this.B.initData.length,requestedKeyIds:this.wJ,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Z&&(n.keyStatuses=this.X);return n}; g.W.getInfo=function(){var n=this.J.join();if(NM(this)){var q=new Set,M;for(M in this.X)this.X[M].status!=="usable"&&q.add(this.X[M].type);n+="/UKS."+Array.from(q)}return n+="/"+this.cryptoPeriodIndex}; g.W.Ag=function(){return this.url};g.y(g9,g.F);g.W=g9.prototype;g.W.gi=function(n){if(this.S){var q=n.messageType||"license-request";this.S(new Uint8Array(n.message),q)}}; g.W.D2=function(){this.N&&this.N(this.X.keyStatuses)}; g.W.onClosed=function(){this.qm()||g.$e("xboxone")&&this.Z&&this.Z("closedShouldNotRetry")}; g.W.uU=function(n){this.S&&this.S(n.message,"license-request")}; g.W.WX=function(n){if(this.Z){if(this.W){var q=this.W.error.code;n=this.W.error.systemCode}else q=n.errorCode,n=n.systemCode;this.Z("t.prefixedKeyError;c."+q+";sc."+n,q,n)}}; g.W.RZ=function(){this.C&&this.C()}; g.W.update=function(n){var q=this;if(this.X)return this.X.update(n).then(null,n9(function(M){fl1(q,"t.update",M)})); this.W?this.W.update(n):this.element.addKey?this.element.addKey(this.B.keySystem,n,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.B.keySystem,n,this.initData,this.sessionId);return Pk()}; g.W.ut=function(){this.X&&(this.U?this.X.close().catch(g.PJ):this.X.close());this.element=null;g.F.prototype.ut.call(this)};g.y(e1,g.F);g.W=e1.prototype;g.W.setServerCertificate=function(){return this.W.setServerCertificate?this.X.flavor==="widevine"&&this.X.S_?this.W.setServerCertificate(this.X.S_):dh(this.X)&&this.X.AE?this.W.setServerCertificate(this.X.AE):null:null}; g.W.createSession=function(n,q){var M=n.initData;if(this.X.keySystemAccess){q&&q("createsession");var t=this.W.createSession();bd(this.X)?M=Pr_(M,this.X.AE):dh(this.X)&&(M=pQ1(M)||new Uint8Array(0));q&&q("genreq");n=t.generateRequest(n.contentType,M);var c=new g9(null,null,null,t,null,this.N);n.then(function(){q&&q("genreqsuccess")},n9(function(G){fl1(c,"t.generateRequest",G)})); return c}if(G5(this.X))return T9J(this,M);if(k$(this.X))return v9s(this,M);if((t=this.element)==null?0:t.generateKeyRequest)this.element.generateKeyRequest(this.X.keySystem,M);else{var Y;(Y=this.element)==null||Y.webkitGenerateKeyRequest(this.X.keySystem,M)}return this.J=new g9(this.element,this.X,M,null,null,this.N)}; g.W.Gf=function(n){var q=lld(this,n);q&&q.uU(n)}; g.W.zf=function(n){var q=lld(this,n);q&&q.WX(n)}; g.W.SB=function(n){var q=lld(this,n);q&&q.RZ(n)}; g.W.getMetrics=function(){var n=null;if(this.W&&this.W.getMetrics)try{n=this.W.getMetrics()}catch(q){}return n}; g.W.ut=function(){this.Z=this.W=null;var n;(n=this.J)==null||n.dispose();n=g.S(Object.values(this.C));for(var q=n.next();!q.done;q=n.next())q.value.dispose();this.C={};g.F.prototype.ut.call(this);delete this.element};g.W=EL.prototype;g.W.get=function(n){n=this.findIndex(n);return n!==-1?this.values[n]:null}; g.W.remove=function(n){n=this.findIndex(n);n!==-1&&(this.keys.splice(n,1),this.values.splice(n,1))}; g.W.removeAll=function(){this.keys=[];this.values=[]}; g.W.set=function(n,q){var M=this.findIndex(n);M!==-1?this.values[M]=q:(this.keys.push(n),this.values.push(q))}; g.W.findIndex=function(n){return g.jS(this.keys,function(q){return g.CQ(n,q)})};g.y(B9U,g.MB);g.W=B9U.prototype;g.W.KAm=function(n){this.SA({onecpt:1});n.initData&&mM_(this,new Uint8Array(n.initData),n.initDataType)}; g.W.IHE=function(n){this.SA({onndky:1});mM_(this,n.initData,n.contentType)}; g.W.UR=function(n){this.SA({onneedkeyinfo:1});this.Q1.D("html5_eme_loader_sync")&&(this.N.get(n.initData)||this.N.set(n.initData,n));A31(this,n)}; g.W.pK=function(n){this.Z.push(n);h3(this)}; g.W.createSession=function(n){var q=FDU(this)?c4k(n):g.Pn(n.initData);this.W.get(q);this.jX=!0;n=new Gla(this.videoData,this.Q1,n,this.drmSessionId);this.W.set(q,n);n.subscribe("ctmp",this.L7,this);n.subscribe("keystatuseschange",this.D2,this);n.subscribe("licenseerror",this.jP,this);n.subscribe("newlicense",this.M0,this);n.subscribe("newsession",this.x_,this);n.subscribe("sessionready",this.Ss,this);n.subscribe("fairplay_next_need_key_info",this.vS,this);this.Q1.D("html5_enable_vp9_fairplay")&&n.subscribe("qualitychange", this.DA,this);n.subscribe("sabrlicenseconstraint",this.oyy,this);dMa(n,this.J)}; g.W.M0=function(n){this.qm()||(this.SA({onnelcswhb:1}),n&&!this.heartbeatParams&&(this.heartbeatParams=n,this.publish("heartbeatparams",n)))}; g.W.x_=function(){this.qm()||(this.SA({newlcssn:1}),this.Z.shift(),this.jX=!1,h3(this))}; g.W.Ss=function(){if(G5(this.X)&&(this.SA({onsnrdy:1}),this.SX--,this.SX===0)){var n=this.xl,q,M;(q=n.element)==null||(M=q.msSetMediaKeys)==null||M.call(q,n.Z)}}; g.W.D2=function(n){if(!this.qm()){this.nm||(this.nm=!0,this.Q1.Aq()&&Zbm(this));this.SA({onksch:1});var q=this.DA;if(!NM(n)&&g.oa&&n.W.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var M="large";else{M=[];var t=!0;if(NM(n))for(var c=g.S(Object.keys(n.X)),Y=c.next();!Y.done;Y=c.next())Y=Y.value,n.X[Y].status==="usable"&&M.push(n.X[Y].type),n.X[Y].status!=="unknown"&&(t=!1);if(!NM(n)||t)M=n.J;M=WDj(M)}q.call(this,M);if(!NM(n))for(q={},M=g.S(n.J),t=M.next();!t.done;t=M.next())XFa(n, t.value,q);this.videoData.authorizedFormats=n.authorizedFormats;this.publish("keystatuseschange",n)}}; g.W.L7=function(n,q){this.qm()||this.publish("ctmp",n,q)}; g.W.vS=function(n,q){this.qm()||this.publish("fairplay_next_need_key_info",n,q)}; g.W.jP=function(n,q,M,t){this.qm()||(this.videoData.D("html5_log_drm_metrics_on_error")&&Zbm(this),this.publish("licenseerror",n,q,M,t))}; g.W.hY=function(){return this.B}; g.W.DA=function(n){var q=g.PR("auto",n,!1,"l");if(this.videoData.Wk){if(this.B.equals(q))return}else if(b5a(this.B,n))return;this.B=q;this.publish("qualitychange");this.SA({updtlq:n})}; g.W.oyy=function(n){this.videoData.sabrLicenseConstraint=n}; g.W.ut=function(){this.X.keySystemAccess&&this.element&&(this.wJ?this.element.setMediaKeys(null).catch(g.PJ):this.element.setMediaKeys(null));this.element=null;this.Z=[];for(var n=g.S(this.W.values()),q=n.next();!q.done;q=n.next())q=q.value,q.unsubscribe("ctmp",this.L7,this),q.unsubscribe("keystatuseschange",this.D2,this),q.unsubscribe("licenseerror",this.jP,this),q.unsubscribe("newlicense",this.M0,this),q.unsubscribe("newsession",this.x_,this),q.unsubscribe("sessionready",this.Ss,this),q.unsubscribe("fairplay_next_need_key_info", this.vS,this),this.Q1.D("html5_enable_vp9_fairplay")&&q.unsubscribe("qualitychange",this.DA,this),q.dispose();this.W.clear();this.C.removeAll();this.N.removeAll();this.heartbeatParams=null;g.MB.prototype.ut.call(this)}; g.W.Bg=function(){for(var n={systemInfo:this.X.Bg(),sessions:[]},q=g.S(this.W.values()),M=q.next();!M.done;M=q.next())n.sessions.push(M.value.Bg());return n}; g.W.getInfo=function(){return this.W.size<=0?"no session":""+this.W.values().next().value.getInfo()+(this.S?"/KR":"")}; g.W.SA=function(n,q){q=q===void 0?!1:q;this.qm()||(gy(n),(this.Q1.Aq()||q)&&this.publish("ctmp","drmlog",n))};g.y(zf_,g.F);g.W=zf_.prototype;g.W.Bh=function(){return!!this.Ad}; g.W.FT=function(){return this.W}; g.W.handleError=function(n){var q=this;Q0C(this,n);if((n.errorCode!=="html5.invalidstate"&&n.errorCode!=="fmt.unplayable"&&n.errorCode!=="fmt.unparseable"||!xMk(this,n.errorCode,n.details))&&!MJR(this,n)&&!iAJ(this)){if(this.pm.xl!=="yt"&&na1(this,n)&&this.videoData.dC&&(0,g.jt)()/1E3>this.videoData.dC&&this.pm.xl==="hm"){var M=Object.assign({e:n.errorCode},n.details);M.stalesigexp="1";M.expire=this.videoData.dC;M.init=this.videoData.v3/1E3;M.now=(0,g.jt)()/1E3;M.systelapsed=((0,g.jt)()-this.videoData.v3)/ 1E3;n=new g.eV(n.errorCode,M,2);this.Mm.gO(n.errorCode,2,"SIGNATURE_EXPIRED",gy(n.details))}if(Et(n.severity)){var t;M=(t=this.Mm.loader)==null?void 0:t.X.X;if(this.pm.D("html5_use_network_error_code_enums"))if(pF_(n)&&M&&M.isLocked())var c="FORMAT_UNAVAILABLE";else if(this.pm.C||n.errorCode!=="auth"||n.details.rc!==429)n.errorCode==="ump.spsrejectfailure"&&(c="HTML5_SPS_UMP_STATUS_REJECTED");else{c="TOO_MANY_REQUESTS";var Y="6"}else pF_(n)&&M&&M.isLocked()?c="FORMAT_UNAVAILABLE":this.pm.C||n.errorCode!== "auth"||n.details.rc!=="429"?n.errorCode==="ump.spsrejectfailure"&&(c="HTML5_SPS_UMP_STATUS_REJECTED"):(c="TOO_MANY_REQUESTS",Y="6");this.Mm.gO(n.errorCode,n.severity,c,gy(n.details),Y)}else this.Mm.publish("nonfatalerror",n),t=/^pp/.test(this.videoData.clientPlaybackNonce),this.gZ(n.errorCode,n.details),t&&n.errorCode==="manifest.net.connect"&&(n="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.jt)(),Q_(n,"manifest",function(G){q.C=!0;q.Xy("pathprobe",G)}, function(G){q.gZ(G.errorCode,G.details)}))}}; g.W.Xy=function(n,q){this.Mm.Cd.Xy(n,q)}; g.W.gZ=function(n,q){q=gy(q);this.Mm.Cd.gZ(n,q)};WF.prototype.pJ=function(n){var q=Gya(this);if(!n)return{tJ:y3,GC:y3,y_:y3,xF:y3,sK:y3,Lz:y3,kZ:q};var M=y3;if(TF(q)||this.D("html5_perf_cap_override_sticky"))M=yHd(this,n);return{tJ:M,GC:OA1(this,n),y_:dQd(this,n),xF:swR(this,n.videoData),sK:Xpm(this,n.videoData,n),Lz:kyk(this,n),kZ:q}}; WF.prototype.xL=function(n){if(g.hi(this.Q1)&&wX(this.Q1.S,zF.HEIGHT))var q=n.X.videoInfos[0].video.qualityOrdinal;else{var M=this.al(!!n.X.X);Uh(n.videoData)||hv(n.videoData);n=n.X.videoInfos;if(n.length){var t=g.ic(this.Q1.experiments,"html5_override_oversend_fraction")||.85,c=n[0].video;c.projectionType!=="MESH"&&c.projectionType!=="EQUIRECTANGULAR"&&c.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||G3||(t=.45);c=g.ic(this.Q1.experiments,"html5_viewport_undersend_maximum");for(var Y=0;Y< n.length;Y++){q=n[Y];var G=q.video;if(M===null||G.width*t=0,stateAtSend:q,joinLatencySecs:Y,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:t,playerCanaryStage:c,isAd:this.provider.videoData.isAd(),liveMode:M,hasDrm:!!g.V3(this.provider.videoData),isGapless:this.provider.videoData.N,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:D6(this.provider.videoData)};n||g.tx("html5PlayerHealthEvent",q);this.Z=!0;this.dispose()}}; sL.prototype.ut=function(){this.Z||this.send();window.removeEventListener("error",this.g3);window.removeEventListener("unhandledrejection",this.g3);g.F.prototype.ut.call(this)}; var RAK=/\bnet\b/;HAa.prototype.update=function(){if(this.N){var n=this.Gy()||0,q=g.qM(this.provider);n>=this.provider.Mm.getDuration()-.1&&(this.previouslyEnded=!0);if(n!==this.X||vas(this,n,q)){var M;if(!(M=nq-this.Sp+2||vas(this,n,q))){M=this.provider.Mm.getVolume();var t=M!==this.U,c=this.provider.Mm.isMuted()?1:0;c!==this.B?(this.B=c,M=!0):(!t||this.J>=0||(this.U=M,this.J=q),M=q-this.J,this.J>=0&&M>2?(this.J=-1,M=!0):M=!1)}M&&(S1(this),this.Z=n);this.Sp=q;this.X=n}}}; HAa.prototype.Gy=function(){var n=this.provider.Mm.Gy();return this.provider.Q1.D("html5_disable_live_dvr_shrink_for_cdm_vss")&&BO(this.provider.videoData)?n+this.provider.Mm.NP():n};TCd.prototype.send=function(n){var q=this;if(!this.Yl){var M=UQR(this),t=g.hC(this.uri,M);this.Q1.D("vss_through_gel_double")&&uSa(t);this.jX&&!this.Q1.D("html5_simplify_pings")?$Qf(this,t):lS_(this,n).then(function(c){q.jX&&(c=c||{},c.method="POST",c.postParams={atr:q.attestationResponse});S9U(t,c,{token:q.RL,uN:q.uG,mdxEnvironment:q.mdxEnvironment},q.Q1,n,q.IL,q.isFinal&&q.h1||q.nm||q.Z&&q.Ku)}); this.Yl=!0}}; TCd.prototype.W=function(n){n===void 0&&(n=NaN);return Number(n.toFixed(3)).toString()}; var je={},AHC=(je.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,je.LIVING_ROOM_APP_MODE_MAIN=1,je.LIVING_ROOM_APP_MODE_KIDS=2,je.LIVING_ROOM_APP_MODE_MUSIC=3,je.LIVING_ROOM_APP_MODE_UNPLUGGED=4,je.LIVING_ROOM_APP_MODE_GAMING=5,je),Se={},DQu=(Se.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Se.EMBEDDED_PLAYER_MODE_DEFAULT=1,Se.EMBEDDED_PLAYER_MODE_PFP=2,Se.EMBEDDED_PLAYER_MODE_PFL=3,Se);g.y(fb,g.F);fb.prototype.onProgress=function(){this.X.update();VJR(this)&&(aSu(this),R9a(this))}; fb.prototype.ut=function(){g.F.prototype.ut.call(this);PF(this);LoC(this.X)}; fb.prototype.Bg=function(){return UQR(HF(this,"playback"))}; fb.prototype.jC=function(n){var q=HF(this,"engage");q.wJ=n;return BCs(q,nxR(this.provider))};ppC.prototype.isEmpty=function(){return this.endTime===this.startTime};Tl.prototype.D=function(n){return this.Q1.D(n)}; Tl.prototype.getCurrentTime=function(){return this.Mm.getCurrentTime()}; Tl.prototype.Gy=function(){return this.Mm.Gy()}; var q5s={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.y(g.lr,g.F);g.W=g.lr.prototype;g.W.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Rg){var n;(n=this.Z.get(this.Rg))==null||n.onProgress()}else if(this.X)this.X.onProgress()}; g.W.Ul=function(n){this.qoe&&this.qoe.Ul(n)}; g.W.T8=na(29);g.W.UN=na(35);g.W.hv=function(n,q){this.qoe&&this.qoe.hv(n,q)}; g.W.Dg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Rg){var n;(n=this.Z.get(this.Rg))!=null&&S1(n.X)}else this.X&&S1(this.X.X)}; g.W.gZ=function(n,q){this.qoe&&a9d(this.qoe,n,q);if(this.W)this.W.onError(n)}; g.W.LO=function(n){var q;(q=this.qoe)==null||q.LO(n)}; g.W.onPlaybackRateChange=function(n){if(this.qoe)this.qoe.onPlaybackRateChange(n);this.X&&S1(this.X.X)}; g.W.HR=na(52);g.W.Xy=function(n,q,M){this.qoe&&this.qoe.Xy(n,q,M)}; g.W.Kl=function(n,q,M){this.qoe&&this.qoe.Kl(n,q,M)}; g.W.j9=function(n){var q;(q=this.qoe)==null||q.j9(n)}; g.W.yV=function(n){var q;(q=this.qoe)==null||q.yV(n)}; g.W.y$=function(n,q,M,t){var c;(c=this.qoe)==null||c.y$(n,q,M,t)}; g.W.S9=function(n){this.qoe&&this.qoe.S9(n)}; g.W.f3=function(n,q,M){this.qoe&&this.qoe.f3(n,q,M)}; g.W.Mc=na(23);g.W.h0=function(){if(this.qoe)return this.qoe.h0()}; g.W.Bg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Rg){var n,q;return(q=(n=this.Z.get(this.Rg))==null?void 0:n.Bg())!=null?q:{}}return this.X?this.X.Bg():{}}; g.W.Ny=function(){var n;return(n=this.qoe)==null?void 0:n.Ny()}; g.W.v5=function(n,q){var M;(M=this.qoe)==null||M.v5(n,q)}; g.W.jC=function(n){return this.X?this.X.jC(n):function(){}}; g.W.getVideoData=function(){return this.provider.videoData}; g.W.resume=function(){this.qoe&&this.qoe.resume()};g.y(g.ur,g.F);g.W=g.ur.prototype;g.W.y6=function(n,q){this.sync();q&&this.X.array.length>=2E3&&this.CE("captions",1E4);q=this.X;if(n.length>1&&n.length>q.array.length)q.array=q.array.concat(n),q.array.sort(q.X);else{n=g.S(n);for(var M=n.next();!M.done;M=n.next())M=M.value,!q.array.length||q.X(M,q.array[q.array.length-1])>0?q.array.push(M):g.rT(q.array,M,q.X)}this.Z=NaN;this.sync()}; g.W.Li=function(n){n.length>1E4&&g.PJ(new g.aE("Over 10k cueRanges removal occurs with a sample: ",n[0]));if(!this.qm()){var q=new Set(n);this.W=this.W.filter(function(M){return!q.has(M)}); hXJ(this.X,q);this.sync()}}; g.W.uR=function(n,q){if(!this.qm()){var M=this.KT().find(function(t){return t.id===q&&t.namespace===n}); M&&this.Li([M])}}; g.W.CE=function(n,q){var M=(isNaN(this.Z)?jbs(this):this.Z)-q;q=this.KT().filter(function(t){return t.namespace===n&&t.endthis.X,Y=g.C(M,8)&&g.C(M,16),G=this.Mm.C1().isBackground()||M.isSuspended();w9(this,this.hE,Y&&!G,c,"qoe.slowseek",function(){},"timeout"); var k=isFinite(this.X);k=Y&&k&&zT1(q,this.X);var b=!t||Math.abs(t-this.X)>10,d=this.Q1.D("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),N=t===0&&this.W&&[11,10].includes(this.W);w9(this,this.Yl,k&&b&&!G&&(!d||!N),c,"qoe.slowseek",function(){q.seekTo(n.X)},"set_cmt"); b=k&&kG(q.UC(),this.X);var O=this.Mm.loader;k=!O||O.RC();var e=function(){q.seekTo(n.X+.001)}; w9(this,this.nm,b&&k&&!G,c,"qoe.slowseek",e,"jiggle_cmt");k=function(){return n.Mm.w4()}; w9(this,this.rJ,b&&!G,c,"qoe.slowseek",k,"new_elem");var E=Z$(M);N=M.isBuffering();var h=q.UC(),I=KW(h,t),L=I>=0&&h.end(I)>t+5;b=E&&N&&L;d=this.Mm.getVideoData();w9(this,this.SX,t<.002&&this.X<.002&&Y&&g.hi(this.Q1)&&g.b3(d)&&!G,c,"qoe.slowseek",k,"slow_seek_shorts");w9(this,this.U,d.m4()&&Y&&!G&&!d.xl,c,"qoe.slowseek",k,"slow_seek_gapless_shorts");w9(this,this.xl,b&&!G,E&&!N,"qoe.longrebuffer",e,"jiggle_cmt");w9(this,this.RL,b&&!G,E&&!N,"qoe.longrebuffer",k,"new_elem_nnr");if(O){var T=O.getCurrentTime(); Y=q.e7();Y=BUd(Y,T);Y=!O.isSeeking()&&t===Y;w9(this,this.Fh,E&&N&&Y&&!G,E&&!N&&!Y,"qoe.longrebuffer",function(){q.seekTo(T)},"seek_to_loader")}Y={}; e=KW(h,Math.max(t-3.5,0));var v=e>=0&&t>h.end(e)-1.1,B=e>=0&&e+1=0&&v&&B<11;Y.close2edge=v;Y.gapsize=B;Y.buflen=h.length;this.W&&(Y.seekSour=this.W);w9(this,this.wJ,E&&N&&!G,E&&!N,"qoe.longrebuffer",function(){},"timeout",Y); Y=M.isSuspended();Y=this.Mm.Td()&&!Y;w9(this,this.N,Y,!Y,"qoe.start15s",function(){n.Mm.fu("ad")},"ads_preroll_timeout"); Y=this.Q1.experiments.Hb("html5_use_playback_rate_in_skip_slow_ad")?this.Mm.getPlaybackRate()*1E3:1E3;I=t-this.J5;w9(this,this.V1,g.b3(d)&&O,E&&!N,"qoe.longrebuffer",function(){n.Mm.wU()},"reset_media_source"); w9(this,this.AE,g.b3(d)&&O,E&&!N,"qoe.longrebuffer",k,"reset_media_element");this.J===0&&(this.C=t);O=N&&this.X===0&&t>1&&t===this.C;w9(this,this.IL,g.b3(d)&&O,E&&!N,"qoe.slowseek",function(){q.seekTo(0)},"reseek_after_time_jump"); G=M.isOrWillBePlaying()&&!G;L=this.Mm.Df()-t<6&&!L&&this.Mm.bM();w9(this,this.B,d.m4()&&G&&N&&L,E&&!N,"qoe.longrebuffer",function(){n.Mm.w4(!1,!0)},"handoff_end_long_buffer_reload"); G=this.W===104||this.Mm.cK;M=lB(d)&&d.isAd()&&!d.xl&&G&&(N||g.C(M,8)&&g.C(M,16));w9(this,this.eX,M,c,"qoe.start15s",k,"gapless_ad_slow_start");M=lB(d)&&!d.xl&&G&&b;w9(this,this.Ux,M,c,"qoe.longrebuffer",k,"gapless_slow_start");this.J=t;this.S.start()}}; o0.prototype.gZ=function(n,q,M){q=this.Bg(q);q.wn=M;q.wdup=this.Z[n]?"1":"0";this.Mm.gZ(new g.eV(n,q));this.Z[n]=!0}; o0.prototype.Bg=function(n){n=Object.assign(this.Mm.Bg(!0),n.Bg());this.X&&(n.stt=this.X.toFixed(3));this.Mm.getVideoData().isLivePlayback&&(n.ct=this.Mm.getCurrentTime().toFixed(3),n.to=this.Mm.NP().toFixed(3));delete n.uga;delete n.euri;delete n.referrer;delete n.fexp;delete n.vm;return n}; R0.prototype.reset=function(){this.X=this.W=this.Z=this.startTimestamp=0;this.J=!1}; R0.prototype.test=function(n){if(!this.S||this.W)return!1;if(!n)return this.reset(),!1;n=(0,g.jt)();if(!this.startTimestamp)this.startTimestamp=n,this.Z=0;else if(this.Z>=this.S)return this.W=n,!0;this.Z+=1;return!1}; R0.prototype.Bg=function(){var n={},q=(0,g.jt)();this.startTimestamp&&(n.wsd=(q-this.startTimestamp).toFixed());this.W&&(n.wtd=(q-this.W).toFixed());this.X&&(n.wssd=(q-this.X).toFixed());return n};g.y(ZeJ,g.F);g.W=ZeJ.prototype;g.W.setMediaElement=function(n){(this.mediaElement=n)?(this.mediaElement&&(this.S||this.Z||!this.mediaElement.c7()||this.seekTo(.01,{hQ:"seektimeline_setupMediaElement"})),zl(this)):V7(this)}; g.W.getCurrentTime=function(n){n=n===void 0?!1:n;if(J3(this.Mm)){if(this.D("html5_use_centralized_player_time")&&!n&&!isNaN(this.C))return this.C;if(!isNaN(this.W))return this.W}else{if(this.D("html5_use_centralized_player_time")&&!n&&!isNaN(this.C)&&isFinite(this.C))return this.C;if(!isNaN(this.W)&&isFinite(this.W))return this.W}return this.mediaElement&&MEJ(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; g.W.HZ=function(){return this.eX}; g.W.Gy=function(){return this.getCurrentTime()-this.NP()}; g.W.r9=function(){return this.X?this.X.r9():Infinity}; g.W.isAtLiveHead=function(n){if(!this.X)return!1;n===void 0&&(n=this.getCurrentTime());return FR(this.X,n)}; g.W.FI=function(){return!!this.X&&this.X.FI()}; g.W.seekTo=function(n,q){var M=q===void 0?{}:q;q=M.zV===void 0?!1:M.zV;var t=M.g$===void 0?0:M.g$;var c=M.Qm===void 0?!1:M.Qm;var Y=M.ZA===void 0?0:M.ZA;var G=M.hQ===void 0?"":M.hQ;var k=M.seekSource===void 0?void 0:M.seekSource;var b=M.rp===void 0?!1:M.rp;var d=M.W5===void 0?!1:M.W5;M=M.yu===void 0?!1:M.yu;b&&(n+=this.NP());D6(this.videoData)&&k===29&&(this.eX=void 0);b=n=this.Zy())||!g.qm(this.videoData),I||(L={st:L,mst:this.Zy()},this.X&&this.D("html5_high_res_seek_logging")&&(L.ht=this.X.r9(),L.adft=$9(this.X)),this.Mm.Xy("seeknotallowed",L)),L=I));if(!L)return this.J&&(this.J=null,p0U(this)),g.lg(this.getCurrentTime());L=.005;d&&this.D("html5_sabr_seek_no_shift_tolerance")&&(L=0);if(Math.abs(n-this.W)<=L&&this.IL)return this.S;G&&(L=n,this.Q1.Aq()||this.D("html5_log_seek_reasons"))&& (G={reason:G,tgt:L},this.D("html5_sabr_csdai_seek_log")&&(G.source=k),this.Mm.Xy("seekreason",G));k&&(this.xl.W=k);this.IL&&V7(this);this.S||(this.S=new LW);n&&!isFinite(n)&&w0U(this,!1);(G=M||b)||(G=n,G=!(this.videoData.isLivePlayback&&this.videoData.Z&&!this.videoData.Z.X&&!(this.mediaElement&&this.mediaElement.dP()>0&&v3(this.mediaElement)>0)||Z6(this.videoData)&&this.MM()===this.Zy(!1)?0:isFinite(G)||!Z6(this.videoData)));G||(n=r9(this,n,c));n&&!isFinite(n)&&w0U(this,!1);this.D("html5_use_centralized_player_time")? this.C=n:this.W=this.Z=n;this.V1=Y;this.N=0;this.X&&(c=this.X,Y=n,Boa(c,Y,!1),DVR(c,Y));c=this.Mm;Y=n;G={zV:q,seekSource:k};c.Pn.Z=Y;M=c.LG;M.mediaTime=Y;M.X=!0;G.zV&&c.wd(G);G=Y>c.videoData.endSeconds&&Y>c.videoData.limitedPlaybackDurationInSeconds;c.Az&&G&&isFinite(Y)&&UFm(c);Yq.start&&UFm(this.Mm);return this.S}; g.W.Zy=function(n){if(!this.videoData.isLivePlayback)return this.Mm.videoData.Zy();var q;return Sn(this.videoData)&&((q=this.mediaElement)==null?0:q.isPaused())&&this.videoData.X?(n=this.getCurrentTime(),MGC(this.uY(n)*1E3)+n):this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&D6(this.videoData)&&this.videoData.X?n?this.videoData.X.wJ||0:this.videoData.X.ZJ||0:Z6(this.videoData)&&this.videoData.RL&&this.videoData.X?this.videoData.X.Zy()+this.timestampOffset:this.videoData.Z&&this.videoData.Z.X? !n&&this.X?this.X.r9():this.Mm.videoData.Zy()+this.timestampOffset:this.mediaElement?aN()?MGC(this.mediaElement.fh().getTime()):v3(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.W.MM=function(){if(this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&D6(this.videoData)){var n;return((n=this.videoData.X)==null?void 0:n.DN)||0}n=this.videoData?this.videoData.MM()+this.timestampOffset:this.timestampOffset;if(Sn(this.videoData)&&this.videoData.X){var q,M=Number((q=this.videoData.progressBarStartPosition)==null?void 0:q.utcTimeMillis)/1E3;if(this.D("html5_unify_utc_media_time_calculation")){if(!isNaN(M)&&(M=this.OW(M),!isNaN(M)))return Math.max(n,M)}else if(q=this.getCurrentTime(), q=this.uY(q)-q,!isNaN(M)&&!isNaN(q))return Math.max(n,M-q)}return n}; g.W.RJ=function(){this.S||this.seekTo(this.Z,{hQ:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.W.z4=function(){return this.IL&&!isFinite(this.W)}; g.W.ut=function(){zXm(this,null);this.xl.dispose();g.F.prototype.ut.call(this)}; g.W.Bg=function(){var n={};this.loader&&Object.assign(n,this.loader.Bg());this.mediaElement&&Object.assign(n,this.mediaElement.Bg());return n}; g.W.jz=function(n){this.timestampOffset=n}; g.W.getStreamTimeOffset=function(){return Z6(this.videoData)?0:this.videoData.X?this.videoData.X.getStreamTimeOffset():0}; g.W.NP=function(){return this.timestampOffset}; g.W.uY=function(n){return this.videoData&&this.videoData.X?this.videoData.X.uY(n-this.timestampOffset):NaN}; g.W.KE=function(){if(!this.mediaElement)return 0;if(Mm(this.videoData)){var n=this.mediaElement,q=n.UC();n=(NG(q)&&n.getDuration()?q.end(q.length-1):0)+this.timestampOffset-this.MM();q=this.Zy()-this.MM();return Math.max(0,Math.min(1,n/q))}return this.mediaElement.KE()}; g.W.T_=function(n){this.B&&(this.B.X=n)}; g.W.Af=function(n,q){this.Mm.Xy("requestUtcSeek",{time:n});D6(this.videoData)&&(this.eX=n);var M;(M=this.loader)==null||M.Af(n);q&&(this.jX=q)}; g.W.d6=function(n){D6(this.videoData)&&(this.eX=void 0);if(this.jX)this.Mm.Xy("utcSeekingFallback",{source:"streamTime",timeSeconds:this.jX}),this.Mm.seekTo(this.jX,{hQ:"utcSeekingFallback_streamTime"}),this.jX=0;else{if(this.D("html5_unify_utc_media_time_calculation")){var q=this.OW(n);if(isNaN(q))return}else{q=this.getCurrentTime();if(isNaN(q))return;n=this.uY(q)-n;q-=n}this.Mm.Xy("utcSeekingFallback",{source:"estimate",timeSeconds:q});this.Mm.seekTo(q,{hQ:"utcSeekingFallback_estimate"})}}; g.W.cW=function(){this.jX=0}; g.W.OW=function(n){var q=this.getCurrentTime();if(isNaN(q))return NaN;var M=this.uY(q);return isNaN(M)?NaN:n-(M-q)}; g.W.D=function(n){return this.Q1&&this.Q1.D(n)};g.y(x9,g.F);x9.prototype.start=function(){this.W.start()}; x9.prototype.stop=function(){this.W.stop()}; x9.prototype.clear=function(){for(var n=g.S(this.X.values()),q=n.next();!q.done;q=n.next())q.value.clear()}; x9.prototype.sample=function(){for(var n=g.S(this.Z),q=n.next();!q.done;q=n.next()){var M=g.S(q.value);q=M.next().value;M=M.next().value;this.X.has(q)||this.X.set(q,new Khs(ovQ.has(q)));this.X.get(q).update(M())}this.W.start()}; var ovQ=new Set(["networkactivity"]);Khs.prototype.update=function(n){this.W?(this.buffer.add(n-this.X||0),this.X=n):this.buffer.add(n)}; Khs.prototype.clear=function(){this.buffer.clear();this.X=0};nA.prototype.XR=function(){return this.started}; nA.prototype.start=function(){this.started=!0}; nA.prototype.reset=function(){this.finished=this.started=!1};var OVf=!1;g.y(g.tH,g.MB);g.W=g.tH.prototype;g.W.ut=function(){this.logger.debug("dispose");g.OH(this.s6);wFd(this.Lu);this.visibility.unsubscribe("visibilitystatechange",this.Lu);Y5d(this.Cd);g.iz(this.Cd);Gy(this);g.$D.gT(this.Wp);this.n_();this.dO=null;g.iz(this.videoData);g.iz(this.fb);g.iz(this.tH);g.iz(this.Yt);g.tg(this.Mim);this.Az=null;g.MB.prototype.ut.call(this)}; g.W.f3=function(n,q,M,t,c){if(this.Q1.D("html5_log_ad_playback_docid")){var Y=this.Cd;if(Y.qoe){Y=Y.qoe;var G=this.Q1.xl||"yt";g.Qw(Y,g.qM(Y.provider),"ad_playback",[n,q,M,c,G])}}else this.Cd.f3(n,q,M);this.D("html5_log_media_perf_info")&&this.Xy("adloudness",{ld:t.toFixed(3),cpn:n})}; g.W.bP=function(){var n;return(n=this.loader)==null?void 0:n.bP()}; g.W.cz=function(){var n;return(n=this.loader)==null?void 0:n.cz()}; g.W.Uv=function(){var n;return(n=this.loader)==null?void 0:n.Uv()}; g.W.SJ=function(){var n;return(n=this.loader)==null?void 0:n.SJ()}; g.W.G8=function(){return this.videoData.G8()}; g.W.Zf=function(){return this.D("html5_not_reset_media_source")&&!this.G8()&&!this.videoData.isLivePlayback&&g.b3(this.videoData)&&!this.Q1.supportsGaplessShorts()}; g.W.X4=function(){this.videoData.N&&(this.videoData.cU=this.videoData.cU||this.Nn.tE().bP(),this.videoData.Jz=this.videoData.Jz||this.Nn.tE().cz());if(oWs(this.videoData)||!XU(this.videoData)){var n=this.videoData.errorDetail;this.gO(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),n,n,this.videoData.Cx||void 0)}this.D("html5_generate_content_po_token")&&this.hC();this.D("html5_enable_d6de4")&&this.Tq()}; g.W.getVideoData=function(){return this.videoData}; g.W.T=function(){return this.Q1}; g.W.pJ=function(){return this.xm.pJ(this.dO)}; g.W.C1=function(){return this.visibility}; g.W.ye=function(){return this.mediaElement&&this.mediaElement.Pj()?this.mediaElement.ji():null}; g.W.Q6=function(){return this.mediaElement}; g.W.aV=function(){if(this.videoData.errorCode)return!1;this.T().C&&this.T().houseBrandUserStatus&&this.Xy("hbut",{status:this.T().houseBrandUserStatus},!0);if(this.videoData.ET())return!0;this.gO("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.W.HU=function(n){(n=n===void 0?!1:n)||MCU(this.Cd);this.Q$=n;!this.aV()||this.GD.XR()?g.hi(this.Q1)&&this.videoData.isLivePlayback&&this.GD.XR()&&!this.GD.finished&&!this.Q$&&this.cT():(this.GD.start(),n=this.Cd,g.qM(n.provider),n.qoe&&FZs(n.qoe),this.cT())}; g.W.cT=function(){if(this.videoData.isLoaded()){var n=this.fb;g.ic(n.pm.experiments,"html5_player_min_build_cl")>0&&g.ic(n.pm.experiments,"html5_player_min_build_cl")>800254696&&qrJ(n,"oldplayer");PLd(this)}else this.videoData.tB||this.videoData.J4?this.Q$&&g.hi(this.Q1)&&this.videoData.isLivePlayback||(this.videoData.tB?LVm(this.videoData):(n=this.Cd,n.qoe&&(n=n.qoe,ir(n,"protected"),n.provider.videoData.S?n.m3():n.provider.videoData.subscribe("dataloaded",n.m3,n)),SDC(this.videoData))):!this.videoData.loading&& this.by&&fWu(this)}; g.W.OV=function(n){this.tQ=n;this.loader&&(UWm(this.loader,new g.Gl(n)),this.Xy("sdai",{sdsstm:1}))}; g.W.sA=function(n,q,M){var t;(t=this.loader)==null||t.sA(n,q,M)}; g.W.Vq=na(8);g.W.isFullscreen=function(){return this.visibility.isFullscreen()}; g.W.isBackground=function(){return this.visibility.isBackground()}; g.W.Xj=function(){var n=this;this.logger.debug("Updating for format change");cp(this).then(function(){return is(n)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.W.Zc=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.HU();this.aV()&&!g.C(this.playerState,128)&&(this.n3.XR()||(this.n3.start(),this.videoData.uh?this.Wn(AA(this.playerState,4)):this.Wn(AA(AA(this.playerState,8),1))),HVf(this))}; g.W.Sm=function(){return this.GD.finished}; g.W.sendAbandonmentPing=function(){g.C(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.lR(!0),Y5d(this.Cd),g.iz(this.Cd),g.$D.gT(this.Wp))}; g.W.b_=function(n,q,M){n=n===void 0?!0:n;(q===void 0||q)&&this.mediaElement&&this.mediaElement.pause();n&&M&&this.loader&&Z6(this.videoData)&&this.loader.y$(M);this.Wn(n?new g.uN(14):new g.uN)}; g.W.UA=function(){this.Cd.Dg()}; g.W.gO=function(n,q,M,t,c,Y){this.logger.debug(function(){return"set player error: ec="+n+", detail="+c}); var G,k;g.Nk(i0L,M)?G=M:M?k=M:G="GENERIC_WITHOUT_LINK";t=(t||"")+(";a6s."+r5());if(n==="auth"||n==="drm.auth"||n==="heartbeat.stop")M&&(t+=";r."+M.replaceAll(" ","_")),Y&&(t+="sr."+Y.replaceAll(" ","_"));q={errorCode:n,errorDetail:c,errorMessage:k||g.zK[G]||"",Ua:G,Cx:Y||"",cN:t,Rl:q,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=n;Ya(this,"dataloaderror");this.Wn(D$(this.playerState,128,q));g.$D.gT(this.Wp);Gy(this);this.c_()}; g.W.fu=function(n){this.Yo=this.Yo.filter(function(q){return n!==q}); this.logger.debug(function(){return"set preroll ready for "+n}); this.n3.XR()&&HVf(this)}; g.W.Yw=function(){var n;(n=!!this.Yo.length)||(n=this.w8.X.array[0],n=!!n&&n.start<=-0x8000000000000);return n}; g.W.FI=function(){return this.Pn.FI()}; g.W.isPlaying=function(){return this.playerState.isPlaying()}; g.W.kE=function(){return this.playerState.kE()&&this.videoData.uh}; g.W.getPlayerState=function(){return this.playerState}; g.W.Qc=function(n){var q;(q=this.loader)==null||q.Qc(n)}; g.W.vF=function(n){var q;(q=this.loader)==null||q.vF(n)}; g.W.getPlayerType=function(){return this.playerType}; g.W.getPreferredQuality=function(){if(this.dO){var n=this.dO;n=n.videoData.JC.compose(n.videoData.HL);n=UM(n)}else n="auto";return n}; g.W.v$=na(16);g.W.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.W.setMediaElement=function(n){this.logger.debug("set media element");if(this.mediaElement&&n.ji()===this.mediaElement.ji()&&(n.isView()||this.mediaElement.isView())){if(n.isView()||!this.mediaElement.isView())this.sD(),this.mediaElement=n,this.mediaElement.Mm=this,wBf(this),this.Pn.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.n_();if(!this.playerState.isError()){var q=mW(this.playerState,512);g.C(q,8)&&!g.C(q,2)&&(q=AA(q,1));n.isView()&&(q=mW(q,64));this.Wn(q)}this.mediaElement= n;this.mediaElement.Mm=this;!g.hi(this.Q1)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);wBf(this);this.Pn.setMediaElement(this.mediaElement);this.D("html5_prewarm_media_source")&&!this.fb.Bh()&&aqs(this.mediaElement)}}; g.W.n_=function(n,q,M){n=n===void 0?!1:n;q=q===void 0?!1:q;M=M===void 0?!1:M;this.logger.debug("remove media element");if(this.mediaElement){var t=this.getCurrentTime();t>0&&(this.Pn.Z=t);this.Pn.setMediaElement(null);!n&&this.Zf()?FhR(this):this.VW(M);this.loader&&(Jz(this.loader),dC(this,q));this.G_.stop();if(this.mediaElement&&(!this.n3.XR()&&!this.Td()||this.playerState.isError()||g.C(this.playerState,2)||this.Wn(AA(this.playerState,512)),this.mediaElement)){this.sD();if(n||!this.mediaElement.isView())this.Si.uJ("mesv_s"), this.mediaElement.stopVideo(),NQ(this);this.mediaElement=this.mediaElement.Mm=null}}}; g.W.playVideo=function(n,q){n=n===void 0?!1:n;q=q===void 0?!1:q;var M=this,t,c,Y,G,k,b;return g.u(function(d){if(d.X==1){M.logger.debug("start play video");var N=window.google_image_requests;N&&N.length>10&&(window.google_image_requests=N.slice(-10));if(g.C(M.playerState,128))return d.return();if(M.fb.FT())return M.publish("signatureexpired"),d.return();M.mediaElement&&MCU(M.Cd);M.Zc();(g.C(M.playerState,64)||n)&&M.Wn(AA(M.playerState,8));return M.n3.finished&&M.mediaElement?M.dO||!M.nO?d.Fy(2):g.U(d, M.nO,3):d.return()}if(d.X!=2&&g.C(M.playerState,128))return d.return();if(!M.videoData.Z)return M.videoData.isLivePlayback&&!g.Lx(M.Q1.S,!0)?(t="html5.unsupportedlive",c=2):(t=M.videoData.G8()?"fmt.unplayable":"fmt.noneavailable",c=1),g.PJ(Error("selectableFormats")),M.gO(t,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),d.return();if(M.z8()&&M.videoData.Z.X)return M.logger.debug("rebuild playbackData for airplay"),d.return(cp(M));if(J3(M))N=M.Pn,F1(N.videoData)&&!N.isAtLiveHead(N.getCurrentTime())&& N.FI()&&N.Mm.seekTo(Infinity,{hQ:"seektimeline_peggedToLive",seekSource:34});else if(F1(M.videoData)&&(Y=M.getCurrentTime()G;if(!k||!G){c&&k&&(Y=Math.max(Y,c));var b;c=Kok(q,(b=t.X)==null?void 0:b.videoInfos);b=q.Mm.getPlaybackRate();b>1&&c&&(b=Mcj(q.Q1.S,t.X.videoInfos,b),n.X!==0&&b=480;if(q.D("html5_exponential_memory_for_sticky")){d=q.Q1.SR;N=1;var O=O===void 0?!1:O;A01(d,"sticky-lifetime");d.values["sticky-lifetime"]&&d.yg["sticky-lifetime"]||(d.values["sticky-lifetime"]=0,d.yg["sticky-lifetime"]=0);O&&px(d,"sticky-lifetime")>.0625&&(N=d.yg["sticky-lifetime"]*2);d.values["sticky-lifetime"]+=1*Math.pow(2, d.X/N);d.yg["sticky-lifetime"]=N;d.J.start()}if(q.D("html5_perf_cap_override_sticky")){O=q.Z;q=q.D("html5_perserve_av1_perf_cap");q=q===void 0?!1:q;if(q===void 0?0:q){d=yh();N=g.S(Object.keys(d));for(n=N.next();!n.done;n=N.next())n=n.value,n.indexOf("1")!==0&&delete d[n];g.Pf("yt-player-performance-cap",d,2592E3)}else g.TJ("yt-player-performance-cap");xpJ(q);if(q){q=g.S(M0.keys());for(d=q.next();!d.done;d=q.next())d=d.value,d.startsWith("1")||M0.delete(d);q=g.S(y7.values());for(d=q.next();!d.done;d= q.next())d=d.value,d.startsWith("1")||y7.delete(d);q=g.S(O.keys());for(d=q.next();!d.done;d=q.next())d=d.value,d.startsWith("1")||O.delete(d)}else M0.clear(),y7.clear(),O.clear()}}}}this.loader&&(q=this.loader,M=M||"",q.policy.X?Na(q.J.X,M):Na(q.X.S,M));this.RF()}; g.W.getUserPlaybackQualityPreference=function(){return this.videoData.Z&&!this.videoData.Z.X?UM(this.videoData.JC):lv[hc()]}; g.W.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.W.setUserAudio51Preference=function(n,q){this.getUserAudio51Preference()!==n&&(this.Xy("toggle51",{pref:n}),g.Pf("yt-player-audio51",n,q?31536E3:2592E3),this.Xj())}; g.W.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.W.setProximaLatencyPreference=function(n){var q=this.getProximaLatencyPreference();this.Xy("proxima",{pref:n});g.Pf("yt-player-proxima-pref",n,31536E3);q!==n&&(n=this.Pn,n.Ux=!0,n.Mm.seekTo(Infinity,{hQ:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.W.getProximaLatencyPreference=function(){var n;return(n=WR())!=null?n:0}; g.W.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.W.hC=function(){this.videoData.videoId?this.Nn.hC(this.videoData):this.Xy("povid",{})}; g.W.Tq=function(){this.videoData.videoId?this.Nn.Tq(this.videoData):this.Xy("piavid",{})}; g.W.RF=function(){if(!this.qm()&&!g.C(this.playerState,128)&&this.videoData.Z){if(this.videoData.Z.X)MQ(this);else{var n=bs(this),q=this.videoData;a:{var M=this.videoData.Kn;if(n.X){for(var t=g.S(M),c=t.next();!c.done;c=t.next()){c=c.value;var Y=c.getInfo(),G=g.$J[Y.video.quality];if((!n.Z||Y.video.quality!=="auto")&&G<=n.X){M=c;break a}}M=M[M.length-1]}else M=M[0]}q.hE=M;u3f(this,n.reason,VEs(this,this.videoData.hE))}if(this.D("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Pn.U= !1,this.playVideo()}}; g.W.V0=function(n,q){if(this.qm()||g.C(this.playerState,128))return!1;var M,t=!((M=this.videoData.Z)==null||!M.X);M=t&&q?this.getCurrentTime()-this.NP():NaN;if(n.tq&&n.tq.id){var c=this.Cd;if(c.qoe){c=c.qoe;var Y=[n.tq.id,isNaN(M)?"m":"t"];g.Qw(c,g.qM(c.provider),"afi",Y)}}if(t)return q&&(t=VCs(this.Pn),this.Xy("aswh",{id:n.id,xtags:n.xtags,bh:t.toFixed(3)})),this.loader.setAudioTrack(n,M,q),!0;if(DFf(this)){a:{q=this.mediaElement.audioTracks();for(t=0;t=0?n:this.getCurrentTime()}; g.W.uY=function(){var n;return((n=this.videoData.X)==null?0:n.uY)?this.videoData.X.uY(this.getCurrentTime()-this.NP()):this.mediaElement&&(n=this.mediaElement.fh())&&(n=n.getTime(),!isNaN(n))?n/1E3+this.getCurrentTime():NaN}; g.W.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.NP():this.Zy()?this.Zy():0}; g.W.Ba=function(){var n=new dVC;if(this.loader){var q=this.Q1.schedule,M=this.Q1.Aq();M=M===void 0?!1:M;n.TD=q.wJ;n.ZE=q.AE;n.bandwidthEstimate=x$(q);if(M){M=(q.B.BI()*1E3).toFixed();var t=(q.IL.BI()*1E3).toFixed(),c=Vt(q).toFixed(2),Y=((q.N.BI()||0)*1E9).toFixed(2),G=q.Z.BI().toFixed(0),k=q.nm.BI().toFixed(0),b=q.U.percentile(.5).toFixed(2),d=q.U.percentile(.92).toFixed(2),N=q.U.percentile(.96).toFixed(2),O=q.U.percentile(.98).toFixed(2);q.X?q.X.reset():q.X=new $$;q.X.add(q.jX);q.X.add(q.interruptions.length); for(var e=0,E=q.interruptions.length-1;E>=0;E--){var h=q.interruptions[E];q.X.add(h-e);e=h}e=0;for(E=q.J.length-1;E>=0;E--){h=q.J[E];var I=h.stamp/36E5;q.X.add(I-e);e=I;q.X.add(h.net/1E3);q.X.add(h.max)}q=q.X.XX();n.X={ttr:M,ttm:t,d:c,st:Y,bw:G,abw:k,v50:b,v92:d,v96:N,v98:O,"int":q}}lOu(this.loader,n)}else this.mediaElement&&(n.JY=Ta(this.mediaElement));n.TD=this.TD;n.ZE=this.ZE;n.Z=this.isAtLiveHead()&&this.isPlaying()?Sim(this):NaN;q=this.Pn;q=q.X?$9(q.X):0;n.J=q;return n}; g.W.Hi=function(n,q){this.ZE+=n;this.TD+=q}; g.W.KE=function(){return this.mediaElement?g.qm(this.videoData)?1:Mm(this.videoData)?this.isAtLiveHead()||this.FI()?1:this.Pn.KE():this.mediaElement.KE():0}; g.W.Jw=function(){var n=this.bv,q=pb(n,"bandwidth"),M=pb(n,"bufferhealth"),t=pb(n,"livelatency"),c=pb(n,"networkactivity"),Y=Q7(n,"bandwidth"),G=Q7(n,"bufferhealth"),k=Q7(n,"livelatency");n=Q7(n,"networkactivity");var b=this.MJ(),d=b.droppedVideoFrames;b=b.totalVideoFrames;var N=this.getCurrentTime();if(this.xB){var O="IT/"+(this.xB.X.getInfo()+"/"+UM(this.hY()));O+="/"+this.xB.getInfo()}else O="";var e=this.isGapless(),E=this.d4(),h=this.h0(),I=g.ka(this),L=this.getPlayerState(),T=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var v=0;var B="";if(this.tQ){if(this.tQ.qK){B="D,";break a}v=this.tQ.rE;B=this.tQ.vA.substring(0,4)}v>0?(v="AD"+v+", ",B&&(v+=B+", "),B=v):B=""}return{AK:Y,iP:G,currentTime:N,jT:O,droppedVideoFrames:d,isGapless:e,d4:E,Lp:h,Hf:q,eH:M,E_:t,TQ:c,k$:k,t8:n,Cw:I,playerState:L,Kw:T,dD:B,totalVideoFrames:b}}; g.W.Bg=function(n){var q={};if(n===void 0?0:n){Object.assign(q,this.Cd.Bg());this.mediaElement&&(Object.assign(q,this.mediaElement.Bg()),n=this.MJ(),q.dvf=n.droppedVideoFrames,q.tvf=n.totalVideoFrames);this.loader&&Object.assign(q,this.loader.Bg());this.xB&&(q.drm=JSON.stringify(this.xB.Bg()));q.state=this.playerState.state.toString(16);g.C(this.playerState,128)&&(q.debug_error=JSON.stringify(this.playerState.Vr));this.Yw()&&(q.prerolls=this.Yo.join(","));this.videoData.JQ&&(q.ismb=this.videoData.JQ); this.videoData.latencyClass!=="UNKNOWN"&&(q.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(q.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)q.is_mosaic=1;this.videoData.cotn&&(q.is_offline=1,q.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(q.playerResponseCpn=this.videoData.playerResponseCpn);this.Nn.isOrchestrationLeader()&&(q.leader=1);this.videoData.isLivePlayback&& (this.videoData.X&&Cu(this.videoData.X)&&(q.segduration=Cu(this.videoData.X)),n=this.Pn,q.lat=n.B?Pyj(n.B.J):0,q.liveutcstart=this.videoData.liveUtcStartSeconds);q.relative_loudness=this.videoData.NV.toFixed(3);if(n=g.ka(this))q.optimal_format=n.video.qualityLabel;q.user_qual=hc();q.release_version=K[13]}q.debug_videoId=this.videoData.videoId;return q}; g.W.addCueRange=function(n){this.ZV([n])}; g.W.removeCueRange=function(n){this.w8.Li([n])}; g.W.wb=function(){var n=this.w8;if(n.Mm.T().D("html5_sort_cueranges_on_update")&&!(n.KT().length<=0||n.qm())){var q=n.X;q.array.sort(q.X)}n.sync()}; g.W.CE=function(n,q){return this.w8.CE(n,q)}; g.W.ZV=function(n,q){this.w8.y6(n,q)}; g.W.aU=function(n){this.w8.Li(n)}; g.W.KT=function(){return this.w8.KT()||[]}; g.W.n2=function(){return this.Jr}; g.W.z8=function(){return this.visibility.z8()}; g.W.IN=function(){this.mediaElement&&this.mediaElement.IN()}; g.W.MRm=function(){Ya(this)}; g.W.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.W.sD=function(){g.fL(this.x4)}; g.W.RjX=function(){this.Oq();this.publish("onLoadProgress",this.KE())}; g.W.rg=function(n){var q=n.target.JG();if(this.mediaElement&&this.mediaElement.JG()&&this.mediaElement.JG()===q){q2j(this,n.type);switch(n.type){case "error":var M=U_(this.mediaElement)||"",t=this.mediaElement.p9();if(M==="capability.changed"){this.D("html5_restart_on_capability_change")?(this.Xy("capchg",{msg:t}),this.w4(!0)):cp(this);return}if(this.mediaElement.hasError()&&xMk(this.fb,M,{msg:t,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.yr()===4){this.c_();KA(this,"unplayable"); return}break;case "durationchange":M=this.mediaElement.getDuration();isFinite(M)&&(!this.md||M>0)&&M!==1&&this.Bt(M);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());WPj(this.w8);this.Cd.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":imd(this);this.publish("onLoadedMetadata");J9U(this);M=this.uY();this.videoData.sX&&(this.videoData.sX=M);break;case "loadstart":J9U(this);break;case "progress":case "suspend":this.pw.nh(); break;case "seeked":(this.Q1.D("html5_sabr_ignore_skipad_before_completion")||this.Q1.D("html5_ignore_sabrseek_during_adskip"))&&(M=this.loader)!=null&&M.policy.W&&M.policy.Fw&&M.xH&&(M.Xy("sdai",{skipAdSked:"1"}),M.xH=!1);break;case "playing":this.Si.uJ("plev");this.wf&&!J3(this)&&(this.wf=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{hQ:"videoplayer_onPlaying"})));break;case "timeupdate":M=this.mediaElement&&!this.mediaElement.getCurrentTime();t= this.mediaElement&&this.mediaElement.dP()===0;if(M&&(!this.kG||t))return;this.kG=this.kG||!!this.mediaElement.getCurrentTime();zgs(this);this.Oq();if(!this.mediaElement||this.mediaElement.JG()!==q)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.e7().length>0&&this.mediaElement.UC().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.D("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()|| this.mediaElement.dP()>2||!this.mediaElement.isSeeking()&&kG(this.mediaElement.UC(),this.mediaElement.getCurrentTime()))&&(M=this.mediaElement.Bg(),M.bh=Ta(this.mediaElement).toFixed(3),this.Xy("uwe",M));break;case "resize":imd(this);this.videoData.W&&this.videoData.W.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.lF&&g.C(this.playerState,8)&&!g.C(this.playerState,1024)&&this.getCurrentTime()===0&&g.gz){KA(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.JG()===q){c9u(this.Pn,n);this.publish("videoelementevent",n);q=this.playerState;t=this.LG;var c=this.mediaElement;M=this.videoData.clientPlaybackNonce;if(!g.C(q,128)){var Y=q.state;c=c?c:n.target;var G=c.getCurrentTime();if(!g.C(q,64)||n.type!=="ended"&&n.type!=="pause"){var k=c.getDuration();k=c.isEnded()||G>1&&Math.abs(G-k)<1.1;var b=n.type==="pause"&&c.isEnded();G=n.type==="ended"||n.type==="waiting"||n.type==="timeupdate"&&!g.C(q,4)&&!BF(t,G);if(b|| k&&G)c.AV()>0&&c.JG()&&(Y=14);else switch(n.type){case "error":U_(c)&&(Y|=128);break;case "pause":g.C(q,256)?(Y^=256)||(Y=64):g.C(q,32)||g.C(q,2)||g.C(q,4)||(Y=4,g.C(q,1)&&g.C(q,8)&&(Y|=1));break;case "playing":G=Y;Y=(Y|8)&-1093;G&4?(Y|=1,B3(t,c,!0)):BF(t,c.getCurrentTime())&&(Y&=-2);g.C(q,1)&&B3(t,c)&&(Y|=1);break;case "seeking":Y|=16;g.C(q,8)&&(Y|=1);Y&=-3;break;case "seeked":Y&=-17;B3(t,c,!0);break;case "waiting":g.C(q,2)||(Y|=1);B3(t,c);break;case "timeupdate":G=g.C(q,16),k=g.C(q,4),(g.C(q,8)|| G)&&!k&&BF(t,c.getCurrentTime())&&(Y=8),B3(t,c)&&(Y|=1)}}t=Y;Y=null;t&128&&(Y=n.target,c=U_(Y),G=1,c?(c==="capability.changed"&&(G=2),k="GENERIC_WITHOUT_LINK",b=Y.Bg(),b.mediaElem="1",b.trg="melem",/AUDIO_RENDERER/.test(Y.p9())&&(k="HTML5_AUDIO_RENDERER_ERROR"),Y={errorCode:c,errorMessage:g.zK[k]||"",Ua:k,cN:gy(b),Rl:G,cpn:q.Vr?q.Vr.cpn:""}):Y=null,Y&&(Y.cpn=M));q=D$(q,t,Y)}!g.C(this.playerState,1)&&g.C(q,1)&&n0f(this,"evt"+n.type);this.Wn(q)}}}; g.W.uhy=function(n){n=n.X.availability==="available";n!==this.Jr&&(this.Jr=n,this.publish("airplayavailabilitychange"))}; g.W.ZdJ=function(){var n=(0,g.jt)(),q=this.mediaElement.z8();this.Xy("airplay",{ia:q});!q&&!isNaN(this.G3)&&n-this.G3<2E3||(this.G3=n,q!==this.z8()&&(n=this.visibility,n.X!==q&&(n.X=q,n.Lu()),this.Xy("airplay",{rbld:q}),this.Xj()),this.publish("airplayactivechange"))}; g.W.HJ=function(n){if(this.loader){var q=this.loader,M=q.Z,t=q.getCurrentTime(),c=Date.now()-M.U;M.U=NaN;M.Xy("sdai",{adfetchdone:n,d:c});n&&!isNaN(M.N)&&M.W!==3&&i1(M.loader,t,M.N,M.C);M.policy.W?M.S=NaN:M.J=NaN;Ma(M,4,M.W===3?"adfps":"adf");Jz(q)}}; g.W.kL=function(){g.OH(this.s6);this.G_.stop();this.videoData.xl=!0;this.Q1.fR=!0;this.Q1.uG=0;var n=this.fb;if(n.videoData.W){var q=n.pm.S,M=n.videoData.W.Ts;q.J.has(M)&&(q.J.delete(M),q.W=!0)}n.X.stop();this.BW();g.C(this.playerState,8)&&this.Wn(mW(this.playerState,65));this.Q$=!1;n=this.Cd;n.X&&oaa(n.X);n.W&&(n=n.W,q=g.qM(n.provider),n.X<0&&(n.X=q,n.delay.start()),n.W=q,n.J=q);g.Jd(this.tH);this.publish("playbackstarted");(n=g.qD("yt.scheduler.instance.clearPriorityThreshold"))?n():xj(0)}; g.W.BW=function(){var n=this.Nn.F_(),q={},M={};!v_("pbs",this.Si.timerName)&&eh.measure&&eh.getEntriesByName&&(eh.getEntriesByName("mark_nr")[0]?cW1("mark_nr"):cW1());n.videoId&&(q.videoId=n.videoId);n.clientPlaybackNonce&&!this.D("web_player_early_cpn")&&(q.clientPlaybackNonce=n.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(M.isPausedOnLoad=!0);M.itag=n.W?Number(n.W.itag):-1;n.jL&&(M.preloadType=String(this.Wf?2:1));q.liveStreamMode=TrF[r8(n)];q.playerInfo=M;this.Si.infoGel(q); if(this.loader){n=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(n.Z&&(q=window.performance.getEntriesByName(n.Z),q.length&&(q=q[0],n.tick("vri",q.fetchStart),n.tick("vdns",q.domainLookupEnd),n.tick("vreq",q.requestStart),n.tick("vrc",q.responseEnd))),n.W&&(q=window.performance.getEntriesByName(n.W),q.length&&(q=q[0],n.tick("ari",q.fetchStart),n.tick("adns",q.domainLookupEnd),n.tick("areq",q.requestStart),n.tick("arc",q.responseEnd))));n=n.ticks;for(var t in n)n.hasOwnProperty(t)&& this.Si.tick(t,n[t])}}; g.W.Oq=function(n){var q=this;n=n===void 0?!1:n;if(this.mediaElement&&this.videoData){Cyd(this.Pn,this.isPlaying());var M=this.getCurrentTime();if(this.loader&&(g.C(this.playerState,4)&&g.qm(this.videoData)||g.C(this.playerState,32)&&D6(this.videoData)||B6m(this.loader,M),this.D("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var t;this.Xy("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(t=this.loader)==null?void 0:t.currentTime},!0)}M> 5&&(this.Pn.Z=M);(t=g.rF())?g.$D.gT(this.Wp):g.Ns(this.Wp);var c=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!c||Sn(this.videoData))&&!g.C(this.playerState,128)){var Y=function(){if(q.mediaElement&&!g.C(q.playerState,128)){q.Q1.Aq()&&q2j(q,"pfx");var G=q.getCurrentTime();q.D("html5_buffer_underrun_transition_fix")&&(G-=q.NP());var k=Ta(q.mediaElement),b=g.C(q.playerState,8),d=BF(q.LG,G),N=V31(q.LG,G,(0,g.jt)(),k);b&&d?q.Wn(mW(q.playerState,1)):b&&N?(b=q.getDuration(),d=F1(q.videoData), b&&Math.abs(b-G)<1.1?(q.Xy("setended",{ct:G,bh:k,dur:b,live:d}),q.mediaElement.h4()?(q.logger.debug("seek to 0 because of looping"),q.seekTo(0,{hQ:"videoplayer_loop",seekSource:37})):q.b_()):(q.playerState.isBuffering()||n0f(q,"progress_fix"),q.Wn(AA(q.playerState,1)))):(b&&!d&&!N&&G>0&&(b=(Date.now()-q.Ad)/1E3,d=q.getDuration(),G>d-1&&q.Xy("misspg",{t:G.toFixed(2),d:d.toFixed(2),r:b.toFixed(2),bh:k.toFixed(2)})),q.playerState.isPaused()&&q.playerState.isBuffering()&&Ta(q.mediaElement)>5&&q.Wn(mW(q.playerState, 1)));q.Oq()}}; this.mediaElement.e7().length===0?this.Wp=t?g.$D.yP(Y,100):g.bl(Y,100):this.Wp=t?g.$D.yP(Y,500):g.bl(Y,500)}this.videoData.rZ=M;!n&&this.isPlaying()&&CLR(this);Wom(this.xm,this.dO,this.Q6(),this.isBackground())&&MQ(this);this.publish("progresssync",n);c&&Sn(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.W.J6=function(){this.gO("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.W.h0=function(){return this.Cd.h0()}; g.W.Fk=function(){return this.loader?this.loader.Fk():x$(this.Q1.schedule,!0)}; g.W.Wn=function(n){if(!g.FD(this.playerState,n)){this.logger.debug(function(){return"Setting state "+n.toString()}); var q=new g.kB(n,this.playerState);this.playerState=n;MIf(this);var M=!this.hL.length;this.hL.push(q);var t=this.mediaElement&&this.mediaElement.isSeeking();g.dU(q,1)&&this.loader&&iIa(this.loader);t=q.oldState.state===8&&!t;g.dU(q,1)&&t&&g.C(this.playerState,8)&&!g.C(this.playerState,64)&&this.loader&&(tjk(this.loader),this.mediaElement&&Ta(this.mediaElement)>=5&&Eaa(this.xm,this.dO)&&MQ(this));(t=g.ic(this.Q1.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.C(n,1)&&(g.C(n,8)||g.C(n, 16))?this.iZ.start(t):this.iZ.stop();(bU(q,8)<0||g.dU(q,1024))&&this.G_.stop();!g.dU(q,8)||this.videoData.xl||g.C(q.state,1024)||this.G_.start();g.C(q.state,8)&&bU(q,16)<0&&!g.C(q.state,32)&&!g.C(q.state,2)&&this.playVideo();g.C(q.state,2)&&Mm(this.videoData)&&(this.Bt(this.getCurrentTime()),this.Oq(!0));g.dU(q,2)&&(this.lR(!0),this.Q1.Aq()&&this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&D6(this.videoData)&&this.videoData.X&&(t={minst:""+this.videoData.X.DN,cminst:""+(this.videoData.X.MM()+ this.NP()),maxst:""+this.videoData.X.ZJ,hts:""+this.videoData.X.wJ,cmaxst:""+(this.videoData.X.Zy()+this.NP())},this.Xy("sabrSeekableBoundaries",t)));g.dU(q,128)&&this.c_();this.videoData.X&&this.videoData.isLivePlayback&&!this.Ee&&(bU(q,8)<0?Tfj(this.videoData.X):g.dU(q,8)&&this.videoData.X.resume());JXC(this.Pn,q);cXj(this.Cd,q);if(M&&!this.qm())try{for(var c=g.S(this.hL),Y=c.next();!Y.done;Y=c.next()){var G=Y.value;yXu(this.w8,G);this.publish("statechange",G)}}finally{this.hL.length=0}}}; g.W.wr=function(){this.Si.tick("qoes")}; g.W.RJ=function(){this.Pn.RJ()}; g.W.jP=function(n,q,M,t){a:{var c=this.fb;t=t===void 0?"LICENSE":t;M=M.substring(0,256);var Y=Et(q);n==="drm.keyerror"&&this.xB&&this.xB.W.keys.length>1&&c.J<96&&(n="drm.sessionlimitexhausted",Y=!1);var G=c.pm.experiments.Hb("html5_retry_on_drm_unavailable"),k=c.pm.experiments.Hb("html5_retry_on_drm_key_error"),b=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(G&&n==="drm.unavailable"||k&&n==="drm.keyerror"&&!M.match(b))c.gZ("qoe.restart",{retryOnDrmError:1,e:n,detail:M}),c.Mm.w4(!0);else{if(Y)if(c.videoData.W&& c.videoData.W.video.isHdr())tJC(c,n);else{if(c.Mm.gO(n,q,t,M),V1k(c,{detail:M}))break a}else c.gZ(n,{detail:M});n==="drm.sessionlimitexhausted"&&(c.Xy("retrydrm",{sessionLimitExhausted:1}),c.J++,pBf(c.Mm))}}}; g.W.viJ=function(){var n=this,q=g.ic(this.Q1.experiments,"html5_license_constraint_delay"),M=xe();q&&M?(q=new g.zw(function(){n.RF();Ya(n)},q),g.Z(this,q),q.start()):(this.RF(),Ya(this))}; g.W.yz=function(n){this.publish("heartbeatparams",n)}; g.W.D2=function(n){this.Xy("keystatuses",s0d(n));var q="auto",M=!1;this.videoData.W&&(q=this.videoData.W.video.quality,M=this.videoData.W.video.isHdr());a:{switch(q){case "highres":case "hd2880":q="UHD2";break;case "hd2160":case "hd1440":q="UHD1";break;case "hd1080":case "hd720":q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":q="SD";break;default:q="";break a}M&&(q+="HDR")}q=NM(n)?OL(n,q):n.J.includes(q);if(this.D("html5_enable_vp9_fairplay")){if(M)if(n.N){var t;if((t= this.xB)==null?0:dh(t.X))if((M=this.xB)==null)M=0;else{for(var c=t=void 0,Y=g.S(M.W.values()),G=Y.next();!G.done;G=Y.next())G=G.value,t||(t=j0f(G,"SD")),c||(c=j0f(G,"AUDIO"));M.SA({sd:t,audio:c});M=t==="output-restricted"||c==="output-restricted"}else M=!q;if(M){this.Xy("drm",{dshdr:1});tJC(this.fb);return}}else{this.videoData.iA||(this.videoData.iA=!0,this.Xy("drm",{dphdr:1}),this.w4(!0));return}var k;if((k=this.xB)==null?0:dh(k.X))return}else if(k=n.N&&q,M&&!k){tJC(this.fb);return}q||OL(n,"AUDIO")&& OL(n,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),n=s0d(n),this.x5?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.D("html5_report_fatal_drm_restricted_error_killswitch")||this.gO("drm.keyerror",2,void 0,"info."+n)):(this.x5=!0,this.gZ(new g.eV("qoe.restart",Object.assign({},{retrydrm:1},n))),MQ(this),pBf(this)))}; g.W.kkx=function(){if(!this.videoData.xl&&this.mediaElement&&!this.isBackground()){var n="0";this.mediaElement.dP()>0&&Ta(this.mediaElement)>=5&&this.videoData.Z&&this.videoData.Z.X&&(this.Wn(AA(this.playerState,1)),n0f(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),n="1");MIf(this);var q=this.videoData.Z;n={restartmsg:n,mfmt:!TT(this.videoData),mdrm:!(!(q&&q.videoInfos&&q.videoInfos.length&&q.videoInfos[0].f8)||this.xB),mfmtinfo:!this.videoData.W,prerolls:this.Yw()?this.Yo.join(","): "0"};if(this.xB){q=this.xB;if(q.W.size<=0){var M="ns;";q.U||(M+="nr;");q=M+="ql."+q.Z.length}else q=s0d(q.W.values().next().value),q=gy(q);n.drmp=q}var t;Object.assign(n,((t=this.loader)==null?void 0:t.Bg())||{});var c;Object.assign(n,((c=this.mediaElement)==null?void 0:c.Bg())||{});this.Cd.gZ("qoe.start15s",gy(n));this.publish("loadsofttimeout")}}; g.W.Bt=function(n){this.videoData.lengthSeconds!==n&&(this.videoData.lengthSeconds=n,Ya(this))}; g.W.lR=function(n,q){var M=this;n=n===void 0?!1:n;if(!this.X6)if(v_("att_s","player_att")||lZ("att_s",void 0,"player_att"),this.D("use_rta_for_player"))(function(){var c,Y,G,k;return g.u(function(b){switch(b.X){case 1:if(!(c=n)){b.Fy(2);break}return g.U(b,g.Bwj(),3);case 3:c=!b.W;case 2:if(c)return b.return();g.Ij(b,4);Y=kKf(M.Cd);if(!Y)throw Error();G={};return g.U(b,g.uts((G.cpn=M.videoData.clientPlaybackNonce,G.encryptedVideoId=M.videoData.videoId||"",G),3E4),6);case 6:k=b.W;if(M.X6)throw Error(); if(!k.challenge)throw g.PJ(Error("Not sending attestation ping; no attestation challenge string")),Error();M.X6=!0;var d=[k.challenge];k.error?d.push("r1c="+k.error):k.webResponse&&d.push("r1a="+k.webResponse);var N;((N=k.adblockReporting)==null?void 0:N.reportingStatus)!==void 0&&d.push("r6a="+k.adblockReporting.reportingStatus);var O;((O=k.adblockReporting)==null?void 0:O.broadSpectrumDetectionResult)!==void 0&&d.push("r6b="+k.adblockReporting.broadSpectrumDetectionResult);Y(d.join("&"));lZ("att_f", void 0,"player_att");g.vd(b,0);break;case 4:g.TU(b),lZ("att_e",void 0,"player_att"),g.Sk(b)}})})().then(function(){q==null||q()}); else{var t=new g.Rtm(this.videoData);if("c1a"in t.Gn&&!g.Nl.isInitialized()){lZ("att_wb",void 0,"player_att");this.OJ===2&&Math.random()<.01&&g.PJ(Error("Botguard not available after 2 attempts"));if(n)return;if(this.OJ<5){g.Jd(this.Yt);this.OJ++;return}}(t=g.o8f(t))?(lZ("att_f",void 0,"player_att"),KPJ(this.Cd,t),this.X6=!0):lZ("att_e",void 0,"player_att")}}; g.W.Df=function(n){n=n===void 0?!1:n;return F1(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.FI()||g.qm(this.videoData))?this.getCurrentTime():this.Zy(n)}; g.W.NH=function(){return this.MM()}; g.W.Zy=function(n){return this.Pn.Zy(n===void 0?!1:n)}; g.W.MM=function(){return this.Pn.MM()}; g.W.NP=function(){return this.Pn?this.Pn.NP():0}; g.W.getStreamTimeOffset=function(){return this.Pn?this.Pn.getStreamTimeOffset():0}; g.W.QW=function(){var n=0;this.Q1.D("web_player_ss_media_time_offset")&&(n=this.getStreamTimeOffset()===0?this.NP():this.getStreamTimeOffset());return n}; g.W.setPlaybackRate=function(n){var q;this.playbackRate!==n&&Kok(this.xm,(q=this.videoData.Z)==null?void 0:q.videoInfos)&&(this.playbackRate=n,MQ(this));this.playbackRate=n;this.mediaElement&&this.mediaElement.setPlaybackRate(n)}; g.W.getPlaybackRate=function(){return this.playbackRate}; g.W.getPlaybackQuality=function(){var n="unknown";if(this.videoData.W&&(n=this.videoData.W.video.quality,n==="auto"&&this.mediaElement)){var q=this.ye();q&&q.videoHeight>0&&(n=m4(q.videoWidth,q.videoHeight))}return n}; g.W.isHdr=function(){return!!(this.videoData.W&&this.videoData.W.video&&this.videoData.W.video.isHdr())}; g.W.sendVideoStatsEngageEvent=function(n,q){var M=this.Cd;M.X?(M=HF(M.X,"engage"),M.wJ=n,M.send(q)):q&&q()}; g.W.jC=function(n){return this.Cd.jC(n)}; g.W.isAtLiveHead=function(n,q){q=q===void 0?!1:q;return F1(this.videoData)&&(this.bd||q)?this.Pn.isAtLiveHead(n):!1}; g.W.o2=function(){var n=this.Zy(),q=this.getCurrentTime(),M;(M=!F1(this.videoData))||(M=this.Pn,M=!(M.X&&M.X.Z));return M||this.FI()||isNaN(n)||isNaN(q)?0:Math.max(0,n-q)}; g.W.It=function(n){(this.bd=n)||this.G_.stop();this.videoData.X&&(n?this.videoData.X.resume():Tfj(this.videoData.X));if(this.loader){var q=this.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&this.Td()&&this.videoData.isLivePlayback;n&&!q?this.loader.resume():dC(this,!0)}g.C(this.playerState,2)||n?g.C(this.playerState,512)&&n&&this.Wn(mW(this.playerState,512)):this.Wn(AA(this.playerState,512));q=this.Cd;q.qoe&&(q=q.qoe,g.Qw(q,g.qM(q.provider),"stream",[n?"A":"I"]))}; g.W.JL=function(n){this.Cd.gZ("player.exception",gy({n:n.name,m:n.message}))}; g.W.Mc=na(22);g.W.HR=na(51);g.W.Ul=function(n){this.Cd.Ul(n)}; g.W.j9=function(n){this.Cd.j9(n)}; g.W.S9=function(n){this.Cd.S9(n)}; g.W.T8=na(28);g.W.UN=na(34);g.W.yV=function(n){this.Cd.yV(n)}; g.W.y$=function(n,q,M,t){this.Cd.y$(n,q,M,t)}; g.W.mf=function(){this.Xy("hidden",{},!0)}; g.W.MJ=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.W.RC=function(){return this.loader?this.loader.RC():!0}; g.W.setLoop=function(n){this.loop=n;this.mediaElement&&!g.hi(this.Q1)&&this.mediaElement.setLoop(n)}; g.W.h4=function(){return this.mediaElement&&!g.hi(this.Q1)?this.mediaElement.h4():this.loop}; g.W.jz=function(n){this.Xy("timestamp",{o:n.toString()});this.Pn.jz(n)}; g.W.bz=function(n){this.Si.tick(n)}; g.W.WH=function(n){return this.Si.WH(n)}; g.W.uJ=function(n){this.Si.uJ(n)}; g.W.Xy=function(n,q,M){this.Cd.Xy(n,q,M===void 0?!1:M)}; g.W.yb=function(n,q,M){this.Cd.Xy(n,q,M===void 0?!1:M)}; g.W.gZ=function(n){this.Cd.gZ(n.errorCode,gy(n.details));n=n.errorCode;if(this.videoData.isLivePlayback&&(n==="qoe.longrebuffer"||n==="qoe.slowseek")||n==="qoe.restart"){n=this.loader?v$m(this.loader.videoTrack):{};var q,M;this.Xy("lasoe",Object.assign(this.loader?v$m(this.loader.audioTrack):{},(q=this.md)==null?void 0:(M=q.X)==null?void 0:M.l5()));var t,c;this.Xy("lvsoe",Object.assign(n,(t=this.md)==null?void 0:(c=t.W)==null?void 0:c.l5()))}if(this.D("html5_log_centralized_player_time")){var Y;this.Xy("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(Y=this.loader)==null?void 0:Y.currentTime})}}; g.W.Kl=function(n,q,M){this.Cd.Kl(n,q,M)}; g.W.e$=function(n,q,M,t,c,Y,G,k){var b;if((b=this.videoData.X)!=null&&b.isLive){var d=q.playerType===2?q:n,N=n.videoData.videoId,O=q.videoData.videoId;if(N&&O){b=this.Cd;if(b.qoe){var e=b.qoe,E=n.cpn,h=q.cpn,I=d.videoData.YB,L=e.provider.videoData.clientPlaybackNonce,T=e.provider.videoData.videoId,v=h!==L&&O!==T;L=E!==L&&N!==T;e.reportStats();e.adCpn&&e.adCpn!==E||(e.adCpn=L?E:"",e.FQ=L?N:"",e.adFormat=L?I:void 0,C3d(e,Y?4:c?2:0,h,O,t),e.reportStats(),e.adCpn=v?h:"",e.FQ=v?O:"",e.adFormat=v?I:void 0, C3d(e,Y?5:c?3:1,E,N,M),e.reportStats())}M=n.cpn;if(b.Z.has(M)){if(c=b.Z.get(M),vF(c,!0).send(),PF(c),M!==b.provider.videoData.clientPlaybackNonce){rH_(c);var B;(B=b.X)==null||wps(B);b.Z.delete(M)}}else b.Rg=b.provider.videoData.clientPlaybackNonce,b.Rg&&b.X&&(b.Z.set(b.Rg,b.X),vF(b.X).send(),PF(b.X));B=q.cpn;d=d.videoData;t-=this.QW();if(b.Z.has(B)){t=b.Z.get(B);var m=t.Z&&isNaN(t.S)?Lb(t):NaN;t=Csj(t,!1);isNaN(m)||(t.N=m);t.send()}else t=bed(b,b.provider,d,t),b.Z.set(B,t),xQJ(t,new g.kB(AA(new g.uN, 8),new g.uN)),oaa(t),(m=b.X)==null||PF(m);b.Rg=B;if(this.D("html5_unify_csi_server_stitched_transition_logging")){if(b=this.Si,m=q.cpn,t=this.videoData.clientPlaybackNonce,q=q.videoData,n=(n.cpn===t?"video":"ad")+"_to_"+(m===t?"video":"ad"),n!=="video_to_ad"){t=n==="ad_to_video"?void 0:q;d=t==null?void 0:t.wm;B={};if(q==null?0:q.C)B.cttAuthInfo={token:q.C,videoId:q.videoId};G&&(B.startTime=G);P_(n,B);var a,x,V;G={targetVideoId:(a=q==null?void 0:q.videoId)!=null?a:"empty_video",targetCpn:m,adVideoId:(x= t==null?void 0:t.videoId)!=null?x:"empty_video",adClientPlaybackNonce:(V=d==null?void 0:d.cpn)!=null?V:t==null?void 0:t.clientPlaybackNonce};d&&(G.adBreakType=d.adBreakType,G.adType=d.adType);g.LD(G,n);yJ(b,k,n)}}else a=this.Si,V=this.videoData.clientPlaybackNonce,x=q.videoData,V=(n.cpn===V?"video":"ad")+"_to_"+(q.cpn===V?"video":"ad"),n={},x.C&&(n.cttAuthInfo={token:x.C,videoId:x.videoId}),G&&(n.startTime=G),P_(V,n),g.LD({targetVideoId:x.videoId,targetCpn:q.cpn,isSsdai:!0},V),G||yJ(a,k,V)}}else this.logger.X(360717806, "SSTEvent for nonSS")}; g.W.IJ=function(){var n=this.Nn,q=n.jr;n.jr=[];return q}; g.W.VE=function(n){this.videoData.ll=!0;this.gZ(new g.eV("sabr.fallback",n));this.w4(!0)}; g.W.ey=function(n,q){this.videoData.uV=!0;if(q===void 0||q)this.gZ(new g.eV("qoe.restart",n)),this.w4(!0)}; g.W.Q2=function(n){this.Xy("sdai",{aftimeout:n});this.gZ(new g.eV("ad.fetchtimeout",{timeout:n}))}; g.W.Mi=function(n,q){this.Xy("timelineerror",n);n=new g.eV("dai.timelineerror",n);q?this.gO("dai.timelineerror",1,"RETRYABLE_ERROR",gy(n.details)):this.gZ(n)}; g.W.Cb=function(){return g.qM(this.Cd.provider)}; g.W.getPlayerSize=function(){return this.WE.getPlayerSize()}; g.W.Ig=function(){return this.WE.Ig()}; g.W.Zu=function(){return this.Si}; g.W.Vg=function(){return this.Nn.Vg()}; g.W.getVolume=function(){return this.Nn.getVolume()}; g.W.Ia=function(){return this.Nn.Ia()}; g.W.isMuted=function(){return this.Nn.isMuted()}; g.W.Bz=function(){return this.Nn.Bz()}; g.W.ob=function(){this.Ee=!0}; g.W.D=function(n){return this.Q1.D(n)}; g.W.hn=function(n,q,M,t,c){this.Xy("xvt",{m:n,g:q?1:0,tt:M?1:0,np:t?1:0,c:c})}; g.W.ju=function(){var n;(n=this.loader)==null||n.resume()}; g.W.Td=function(){return g.SS(this.Yo,"ad")}; g.W.kp=function(){var n=this.getCurrentTime(),q=n-this.NP();var M=this.mediaElement?df(this.mediaElement.UC()):0;M=Math.floor(Math.max(M-q,0))+100;var t;return((t=this.loader)==null?0:t.kp(q,M))?(this.Xy("sdai",{skipad:1,ct:q.toFixed(3),adj:M.toFixed(3)}),D6(this.videoData)&&this.loader.seek(q+M,{seekSource:89,hQ:"videoplayer_skipServerStitchedAd"}),Gb_(this.Pn,n),!0):!1}; g.W.Aq=function(){return this.Q1.Aq()}; g.W.Kx=function(){if(this.D("html5_generate_content_po_token"))return this.videoData.nZ||"";this.Nn.lN();return this.Q1.Ku||""}; g.W.mC=function(){if(this.videoData.videoId)return this.videoData.jh}; g.W.HA=function(){return this.videoData.videoId}; g.W.W0=function(){return this.Nn.kY}; g.W.hw=function(){return this.Q$}; g.W.bM=function(){return this.Nn.bM()}; g.W.Af=function(n,q,M){this.Wn(AA(this.playerState,16,M));this.Pn.Af(n,q)}; g.W.prefetchKeyPlay=function(){}; g.W.cW=function(){this.Pn.cW()}; g.W.Ih=function(n,q){var M=this.D("html5_generate_content_po_token")?this.videoData:void 0;this.Nn.Ih(n,q,M)}; g.W.v5=function(n,q){this.Cd.v5(n,q)}; g.W.Ny=function(){return this.Cd.Ny()}; g.W.hc=function(){return this.videoData.YK}; g.W.d4=function(){return this.Nn.d4()}; g.W.PD=function(){return this.Nn.PD(this)}; g.W.nS=function(){this.cK=!0}; g.W.rG=function(n){var q;(q=this.loader)==null||q.rG(n)};g.y(tIa,hV);g.y(Or,H8);Or.prototype.X=function(n){n&&LI(this,this.G.getLoopVideo());this.G.logVisibility(this.element,n)}; Or.prototype.logClick=function(){this.G.logClick(this.element)}; Or.prototype.onLoopChange=function(n){LI(this,n)}; Or.prototype.W=function(n){this.G.setLoopVideo(n)};g.y(ck1,hV);g.y(Y2C,hV);g.W=Y2C.prototype;g.W.seekToChapterWithAnimation=function(n){var q=this;if(g.mZ(this.api)&&!(n<0)){var M=this.api.getVideoData(),t=M.JB;if(t&&n=0)return;q=~q;g.ZA(this.items,q,0,n);yf(this.menuItems.element,n.element,q)}n.subscribe("size-change",this.Mx,this);this.menuItems.publish("size-change")}; g.W.v8=function(){mJU(this)||this.items[0].focus();return!0}; g.W.kX=function(){this.items[this.items.length-1].focus();return!0}; g.W.rO=function(n){n.unsubscribe("size-change",this.Mx,this);this.qm()||(g.fQ(this.items,n),this.menuItems.element.removeChild(n.element),this.menuItems.publish("size-change"))}; g.W.Mx=function(){this.menuItems.publish("size-change")}; g.W.focus=function(){for(var n=0,q=0;q1&&g.Ty(this)}; g.W.qh=function(){a0J(this);this.Zn&&(F2d(this),g.qv(this.element,this.size))}; g.W.X3=function(){var n=this.X.pop();Zmm(this,n,this.X[this.X.length-1],!0)}; g.W.Ym=function(n){if(!n.defaultPrevented)switch(n.keyCode){case 27:this.lG();n.preventDefault();break;case 37:this.X.length>1&&this.X3();n.preventDefault();break;case 39:n.preventDefault()}}; g.W.focus=function(){this.X.length&&this.X[this.X.length-1].focus()}; g.W.ut=function(){g.KI.prototype.ut.call(this);this.J&&this.J.dispose();this.S&&this.S.dispose()};g.y(ls,g.Pp);ls.prototype.open=function(n,q){this.initialize(n.items)&&this.Hn(q,!!q)}; ls.prototype.initialize=function(n){g.LA(this.J1);if(n===void 0||n.length===0)return!1;var q=n.length;n=g.S(n);for(var M=n.next();!M.done;M=n.next())this.Qa(M.value,q--);return!0}; ls.prototype.Qa=function(n,q){n.menuNavigationItemRenderer?wis(this,n.menuNavigationItemRenderer,q):n.menuServiceItemRenderer&&zKU(this,n.menuServiceItemRenderer,q)};g.y(Ur,Iw);g.W=Ur.prototype;g.W.xs=function(n){n.target!==this.dismissButton.element&&n.target!==this.overflowButton.element&&(this.DO(),this.onClickCommand&&this.G.Km("innertubeCommand",this.onClickCommand))}; g.W.r6=function(){this.enabled=!1;this.U.hide()}; g.W.Qs=function(){return!!this.X&&this.enabled}; g.W.onVideoDataChange=function(n,q){this.AM(q);if(this.X){this.Cz();a:if(!this.isCounterfactual){var M,t,c;this.banner.update({title:(M=this.X)==null?void 0:M.title,subtitle:(t=this.X)==null?void 0:t.subtitle,metadata:(c=this.X)==null?void 0:c.metadataText});var Y;this.onClickCommand=g.R((Y=this.X)==null?void 0:Y.onTap,Ts);var G;if(n=g.R((G=this.X)==null?void 0:G.onOverflow,Ts))this.C=g.R(n,R3L);var k;if((k=this.X)==null?0:k.thumbnailImage){var b,d;G=((b=this.X)==null?void 0:(d=b.thumbnailImage)== null?void 0:d.sources)||[];if(G.length===0)break a;this.thumbnailImage.update({url:G[0].url})}else{var N;if((N=this.X)==null?0:N.thumbnailIconName){var O;this.thumbnailIcon.update({icon:(O=this.X)==null?void 0:O.thumbnailIconName})}}var e;this.shouldShowOverflowButton=!((e=this.X)==null||!e.shouldShowOverflowButton);var E;this.shouldHideDismissButton=!((E=this.X)==null||!E.shouldHideDismissButton)}var h;this.banner.element.setAttribute("aria-label",((h=this.X)==null?void 0:h.a11yLabel)||"");var I; this.V1=(I=this.X)==null?void 0:I.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;VI1(this)}}; g.W.yqk=function(){this.isVisible=!0;VI1(this)}; g.W.eHy=function(){this.isVisible=!1;VI1(this)}; g.W.NR=function(){Iw.prototype.NR.call(this);this.W&&this.G.logVisibility(this.banner.element,this.isVisible)}; g.W.DO=function(){Iw.prototype.DO.call(this,!1);this.W&&this.G.logClick(this.banner.element)}; g.W.nX=function(n){this.S||(this.S=new ls(this.G),g.Z(this,this.S));var q,M;if((q=this.C)==null?0:(M=q.menu)==null?0:M.menuRenderer)this.S.open(this.C.menu.menuRenderer,n.target),n.preventDefault()}; g.W.AM=function(){}; g.W.Cz=function(){}; g.W.ut=function(){this.G.sT("suggested_action_view_model");Iw.prototype.ut.call(this)};g.y(us,Ur); us.prototype.AM=function(n){var q,M,t;this.productUpsellSuggestedActionViewModel=g.R((q=n.getWatchNextResponse())==null?void 0:(M=q.playerOverlays)==null?void 0:(t=M.playerOverlayRenderer)==null?void 0:t.suggestedActionViewModel,cls);var c;if((c=this.productUpsellSuggestedActionViewModel)==null?0:c.content){var Y;this.X=g.R((Y=this.productUpsellSuggestedActionViewModel)==null?void 0:Y.content,FTQ)}var G,k;if(this.W=!!((G=this.productUpsellSuggestedActionViewModel)==null?0:(k=G.loggingDirectives)==null? 0:k.trackingParams)){var b,d;this.G.setTrackingParams(this.banner.element,((b=this.productUpsellSuggestedActionViewModel)==null?void 0:(d=b.loggingDirectives)==null?void 0:d.trackingParams)||null)}var N;this.isCounterfactual=!((N=this.productUpsellSuggestedActionViewModel)==null||!N.isCounterfactualServing)}; us.prototype.Cz=function(){var n=[],q,M=g.S(((q=this.productUpsellSuggestedActionViewModel)==null?void 0:q.ranges)||[]);for(q=M.next();!q.done;q=M.next()){var t=q.value;t&&(q=Number(t.startTimeMilliseconds),t=Number(t.endTimeMilliseconds),isNaN(q)||isNaN(t)||n.push(new g.Ji(q,t,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.G.y6(n)};g.y(Cqm,hV);g.y(Bp,hV);Bp.prototype.onVideoDataChange=function(n,q){var M=this;if(!E9(q)&&(n==="newdata"&&xJU(this),this.X&&n==="dataloaded")){this.X=!1;var t;wL(oh(Du(this.api.T(),(t=this.api.getVideoData())==null?void 0:g.O9(t)),function(c){iXC(M,c)}),function(){M.X=!0})}}; Bp.prototype.Ou=function(){var n=this;if(g.hi(this.api.T())){var q,M=g.BN(this.api.T(),(q=this.api.getVideoData())==null?void 0:g.O9(q));return oh(FK(M),function(t){var c=c8();Yz(c,t);return n.api.Ou(c)})}return FK(this.api.Ou())};g.y(g.AH,g.O3);g.W=g.AH.prototype;g.W.open=function(){g.vp(this.xi,this.Ln)}; g.W.xe=function(n){tqa(this);var q=this.options[n];q&&(q.element.setAttribute("aria-checked","true"),this.kQ(this.JP(n)),this.Z=n)}; g.W.gP=function(n){g.LA(this.Ln);for(var q={},M=!1,t=0;t=0?this.X.playbackRate:1}catch(n){return 1}}; g.W.setPlaybackRate=function(n){this.getPlaybackRate()!==n&&(this.X.playbackRate=n);return n}; g.W.h4=function(){return this.X.loop}; g.W.setLoop=function(n){this.X.loop=n}; g.W.canPlayType=function(n,q){return this.X.canPlayType(n,q)}; g.W.isPaused=function(){return this.X.paused}; g.W.isSeeking=function(){return this.X.seeking}; g.W.isEnded=function(){return this.X.ended}; g.W.DI=function(){return this.X.muted}; g.W.BF=function(n){Ic();this.X.muted=n}; g.W.e7=function(){return this.X.played||YG([],[])}; g.W.UC=function(){try{var n=this.X.buffered}catch(q){}return n||YG([],[])}; g.W.uL=function(){return this.X.seekable||YG([],[])}; g.W.fh=function(){var n=this.X;return n.getStartDate?n.getStartDate():null}; g.W.getCurrentTime=function(){return this.X.currentTime}; g.W.setCurrentTime=function(n){this.X.currentTime=n}; g.W.getDuration=function(){return this.X.duration}; g.W.load=function(){var n=this.X.playbackRate;try{this.X.load()}catch(q){}this.X.playbackRate=n}; g.W.pause=function(){this.X.pause()}; g.W.play=function(){var n=this.X.play();if(!n||!n.then)return null;n.then(void 0,function(){}); return n}; g.W.dP=function(){return this.X.readyState}; g.W.AV=function(){return this.X.networkState}; g.W.yr=function(){return this.X.error?this.X.error.code:null}; g.W.p9=function(){return this.X.error?this.X.error.message:""}; g.W.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.X instanceof window.HTMLVideoElement&&this.X.getVideoPlaybackQuality)return this.X.getVideoPlaybackQuality();if(this.X){var n=this.X,q=n.webkitDroppedFrameCount;if(n=n.webkitDecodedFrameCount)return{droppedVideoFrames:q||0,totalVideoFrames:n}}return{}}; g.W.z8=function(){return!!this.X.webkitCurrentPlaybackTargetIsWireless}; g.W.IN=function(){return!!this.X.webkitShowPlaybackTargetPicker()}; g.W.togglePictureInPicture=function(){var n=this.X,q=window.document;window.document.pictureInPictureEnabled?this.X!==q.pictureInPictureElement?n.requestPictureInPicture():q.exitPictureInPicture():SV()&&n.webkitSetPresentationMode(n.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.W.YE=function(){var n=this.X;return new g.wi(n.offsetLeft,n.offsetTop)}; g.W.getSize=function(){return g.Mv(this.X)}; g.W.setSize=function(n){g.qv(this.X,n)}; g.W.getVolume=function(){return this.X.volume}; g.W.setVolume=function(n){Ic();this.X.volume=n}; g.W.Tx=function(n){this.S[n]||(this.X.addEventListener(n,this.listener),this.S[n]=this.listener)}; g.W.setAttribute=function(n,q){this.X.setAttribute(n,q)}; g.W.removeAttribute=function(n){this.X.removeAttribute(n)}; g.W.hasAttribute=function(n){return this.X.hasAttribute(n)}; g.W.hA=na(61);g.W.tD=na(63);g.W.NL=na(65);g.W.DC=na(67);g.W.qz=function(){return eo(this.X)}; g.W.ue=function(n){g.MN(this.X,n)}; g.W.bH=function(n){return g.J2(this.X,n)}; g.W.As=function(){return g.XL(document.body,this.X)}; g.W.audioTracks=function(){var n=this.X;if("audioTracks"in n)return n.audioTracks}; g.W.ut=function(){for(var n=g.S(Object.keys(this.S)),q=n.next();!q.done;q=n.next())q=q.value,this.X.removeEventListener(q,this.S[q]);P3.prototype.ut.call(this)}; g.W.Sr=function(n){this.X.disableRemotePlayback=n};g.y(CA,g.w);g.y(xa,g.w);xa.prototype.show=function(){g.w.prototype.show.call(this);this.Cm()}; xa.prototype.hide=function(){g.w.prototype.hide.call(this);this.delay.stop();this.J.stop()}; xa.prototype.Cm=function(){var n=(0,g.jt)(),q=ehR(this.oL);rC(this.X,q.bandwidth_samples);rC(this.C,q.network_activity_samples);rC(this.Z,q.live_latency_samples);rC(this.W,q.buffer_health_samples);var M={};q=g.S(Object.entries(q));for(var t=q.next();!t.done;t=q.next()){var c=g.S(t.value);t=c.next().value;c=c.next().value;this.N[t]!==c&&(M[t]=" "+String(c));this.N[t]=c}this.update(M);n=(0,g.jt)()-n>25?5E3:500;this.delay.start(n)}; xa.prototype.U=function(){this.S?(this.position+=1,this.position>15&&(this.S=!1)):(--this.position,this.position<=0&&(this.S=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.J.start(2E4)};g.y(Wpf,hV);g.y(Qu,g.F);Qu.prototype.X=function(){var n=(0,g.jt)()-this.startTime;n=nthis.J[n])&&(this.X=n,this.fF())}; g.W.onCueRangeExit=function(n){var q=lks(this,n);q&&this.X===n&&this.api.Km("innertubeCommand",q);qV(this);this.X=void 0}; g.W.dN=function(n){this.Z=n}; g.W.pM=function(){this.fF();this.Z=void 0}; g.W.fF=function(){if(this.X!==void 0){var n=(n=ne(this,this.X))&&n.onCueRangeEnter?Uy(n.onCueRangeEnter):void 0;var q=ne(this,this.X);a:if(q&&q.additionalTrigger){var M=g.S(q.additionalTrigger);for(var t=M.next();!t.done;t=M.next())if(t=t.value,t.type){var c=void 0,Y=void 0;if((c=this.jX[t.type])==null?0:c((Y=t.args)!=null?Y:{})){M=!0;break a}}M=!1}else M=!0;n&&M&&(this.api.Km("innertubeCommand",n),Unm(this,q),this.J[this.X]!==void 0&&this.J[this.X]++,this.U=!0)}}; g.W.ut=function(){this.timelyActions=this.Z=this.X=this.videoId=void 0;this.J={};this.Li();qV(this);hV.prototype.ut.call(this)};g.y(Dnu,hV);g.y(MV,H8);MV.prototype.J=function(n){this.Z(n?2:1)}; MV.prototype.BA=function(){var n=this.G.getPresentingPlayerType();n===2||n===3?(this.X=!1,this.xi.rO(this)):this.G.D("html5_enable_new_audio_settings_menu")?(n=this.getVoiceBoostState(),n!==1?(n===0?(LI(this,this.W()===2),this.setEnabled(!0)):(LI(this,!1),this.setEnabled(!1)),this.X||(this.xi.Qa(this),this.X=!0)):this.X&&(this.xi.rO(this),this.X=!1)):this.X||(n=this.hasVoiceBoostAudioTrack(),this.setEnabled(n),n=this.W()===2&&n,LI(this,n),this.xi.Qa(this),this.X=!0)}; MV.prototype.ut=function(){this.xi.rO(this);H8.prototype.ut.call(this)};g.y(mnm,hV);g.W=mnm.prototype;g.W.getVoiceBoostUserPreference=function(){return this.X}; g.W.setVoiceBoostUserPreference=function(n){this.api.Xy("vb_set",{pref:n});g.Pf("yt-player-voice-boost",n);n!==this.X&&(this.X=n,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Xj(),this.api.n1())}; g.W.hasVoiceBoostAudioTrack=function(){var n,q,M=(n=this.api.getVideoData())==null?void 0:(q=n.Z)==null?void 0:q.X;return M?oV(M,function(t){var c;return((c=t.audio)==null?void 0:c.W)===!0}):!1}; g.W.getVoiceBoostState=function(){return this.api.LR(3)}; g.W.updateEnvironmentData=function(){this.api.T().zd=this.X};var Vqu=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.y(c0,hV);c0.prototype.ut=function(){this.N&&(g.OH(this.N),this.N=void 0);hV.prototype.ut.call(this)}; c0.prototype.lN=function(){(this.W?!this.X:this.Z)&&GK(this)}; c0.prototype.VP=function(n,q,M){var t=this;if(Fpm(n)){var c=M||"";if(this.X)q=Ke(this,c),ZXm(n,q);else{var Y=new g.NA;q.push(Y.promise);this.S.promise.then(function(){var G=Ke(t,c);ZXm(n,G);Y.resolve()})}}}; c0.prototype.hC=function(n){var q=this;if(this.W||this.Z)n.nZ=Ke(this,n.videoId),this.X||(this.J=new LW,this.S.promise.then(function(){q.Si.WH("pot_if");n.nZ=Ke(q,n.videoId)}))};g.y(g.by,g.w);g.by.prototype.select=function(){this.api.u4(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Ky||void 0)&&this.api.logClick(this.element)}; g.by.prototype.onClick=function(n){if(g.t8(this.api.T())&&this.api.D("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var q=this.suggestion.o9(),M={};g.QG(this.api,M);q=g.hC(q,M);g.v8(q,this.api,n)}else g.P8(n,this.api,this.W,this.suggestion.sessionData||void 0)&&this.select()}; g.by.prototype.onKeyPress=function(n){switch(n.keyCode){case 13:case 32:n.defaultPrevented||(this.select(),n.preventDefault())}}; g.by.prototype.onVideoDataChange=function(){var n=this.api.getVideoData(),q=this.api.T();this.W=n.wZ?!1:q.J};g.y(pSC,g.w);g.W=pSC.prototype;g.W.ut=function(){this.hide();g.fL(this.J);g.tg(this.stills);this.stills.length=0;this.W&&this.W.removeEventListener("click",this.RT);this.Z&&this.Z.removeEventListener("click",this.Fo);this.X&&this.X.removeEventListener("click",this.Fo);g.w.prototype.ut.call(this)}; g.W.Fo=function(n){this.N&&this.N(n)}; g.W.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var n,q,M,t,c;var Y=(((n=this.videoData)==null?0:(q=n.suggestions)==null?0:q.length)?(M=this.videoData)==null?void 0:M.suggestions:((t=this.videoData)==null?0:g.Lt(t))?[(c=this.videoData)==null?void 0:g.Lt(c)]:[]).slice(0,18);if((n=this.U)&&this.C&&this.S)if(g.WT(n),Y.length)for(this.stills.length>Y.length&&g.tg(this.stills.splice(Y.length)),this.stills.length=Y.length,q=0;q=0;n--)this.features[n].dispose();this.features.length=0;g.F.prototype.ut.call(this)};KsU.prototype.reset=function(){this.X=this.W=NaN};g.W=kQJ.prototype;g.W.reset=function(){Sh(this.timerName)}; g.W.tick=function(n,q){H_(n,q,this.timerName)}; g.W.WH=function(n){return Tj(n,void 0,this.timerName)}; g.W.uJ=function(n){g.iX(n,void 0,this.timerName)}; g.W.infoGel=function(n){g.LD(n,this.timerName)};g.y(N_m,g.MB);g.W=N_m.prototype;g.W.tI=function(n){return this.loop||!!n||this.index+1=0}; g.W.setShuffle=function(n){this.shuffle=n;n=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var q=0;q0)||$x(this,1,!0)}; g.W.GK=function(){this.C=!0;this.X.AQ(this.S);this.S=this.X.V(document,"mouseup",this.fX)}; g.W.fX=function(){this.C=!1;$x(this,8,!1);this.X.AQ(this.S);this.S=this.X.V(this.target,"mousedown",this.GK)}; g.W.n5=function(n){if(n=(n=n.changedTouches)&&n[0])this.jX=n.identifier,this.X.AQ(this.B),this.B=this.X.V(this.target,"touchend",this.Dq,void 0,!0),$x(this,1024,!0)}; g.W.Dq=function(n){if(n=n.changedTouches)for(var q=0;q1280||c>720)if(q=t.b7("maxresdefault.jpg"))break;if(Y>640||c>480)if(q=t.b7("maxresdefault.jpg"))break;if(Y>320||c>180)if(q=t.b7("sddefault.jpg")||t.b7("hqdefault.jpg")||t.b7("mqdefault.jpg"))break;if(q=t.b7("default.jpg"))break}g.PN(n)&&(n=new Image,n.addEventListener("load", function(){bEs()}),n.src=q?q:"",this.api.Zu().tick("ftr")); this.J.style.backgroundImage=q?"url("+q+")":""};g.y(g.ob,g.w);g.ob.prototype.resize=function(){}; g.ob.prototype.W=function(n){var q=this;this.Z=!1;QL_(this);var M=n.Ua,t=this.api.T();M!=="GENERIC_WITHOUT_LINK"||t.C?M==="TOO_MANY_REQUESTS"?(t=this.api.getVideoData(),this.kQ(JX(this,"TOO_MANY_REQUESTS_WITH_LINK",t.o9(),void 0,void 0,void 0,!1))):M!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||t.C?this.api.T().D("html5_enable_bandaid_error_screen")&&M==="HTML5_SPS_UMP_STATUS_REJECTED"&&!t.C?(t=t.hostLanguage,n="//support.google.com/youtube?p=videoError",t&&(n=g.hC(n,{hl:t})),this.kQ(JX(this,"HTML5_SPS_UMP_STATUS_REJECTED", n))):this.api.T().D("enable_adb_handling_in_sabr")&&M==="BROWSER_OR_EXTENSION_ERROR"&&!t.C?(t=t.hostLanguage,n="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",t&&(n=g.hC(n,{hl:t})),this.kQ(JX(this,"BROWSER_OR_EXTENSION_ERROR",n))):this.kQ(g.wo(n.errorMessage)):this.kQ(JX(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(n=t.hostLanguage,M="//support.google.com/youtube/?p=player_error1",n&&(M=g.hC(M, {hl:n})),this.kQ(JX(this,"GENERIC_WITH_LINK_AND_CPN",M,!0)),t.O9&&!t.J&&xj1(this,function(Y){if(g.P8(Y,q.api,!j0(q.api.T()))){Y={as3:!1,html5:!0,player:!0,cpn:q.api.getVideoData().clientPlaybackNonce};var G=q.api;G.dZ("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:Y});G.isFullscreen()&&G.toggleFullscreen()}})); if(this.Z){var c=this.JE("ytp-error-link");c&&(this.api.createClientVe(c,this,216104),this.api.logVisibility(c,!0),xj1(this,function(){q.api.logClick(c)}))}}; var r1d=/([^<>]+)<\/a>/;g.y(pMf,g.w);pMf.prototype.Du=function(n,q,M){M=M===void 0?!1:M;switch(q){case 1:VJ(this,n,this.Z,M);break;case 2:VJ(this,n,this.J,M);break;case 3:VJ(this,n,this.X,M);break;case 4:VJ(this,n,this.W,M)}};g.y(nPk,g.w);g.W=nPk.prototype;g.W.onClick=function(n){this.innertubeCommand?(this.G.Km("innertubeCommand",this.innertubeCommand),n.preventDefault()):g.P8(n,this.G,!0);this.G.logClick(this.element)}; g.W.onVideoDataChange=function(n,q){MQJ(this,q);this.TU&&ikd(this,this.TU)}; g.W.Ax=function(n){var q=this.G.getVideoData();this.videoId!==q.videoId&&MQJ(this,q);this.X&&ikd(this,n.state);this.TU=n.state}; g.W.Hn=function(){this.fade.show();this.G.publish("paidcontentoverlayvisibilitychange",!0);this.G.logVisibility(this.element,!0)}; g.W.lG=function(){this.fade.hide();this.G.publish("paidcontentoverlayvisibilitychange",!1);this.G.logVisibility(this.element,!1)};g.y(Ce,g.w);Ce.prototype.hide=function(){this.X.stop();this.message.style.display="none";g.w.prototype.hide.call(this)}; Ce.prototype.onStateChange=function(n){this.Va(n.state)}; Ce.prototype.Va=function(n){if(g.C(n,128)||this.api.hw())var q=!1;else{var M;q=this.api.D("web_watch_enable_multiview_manager")&&((M=this.api.getVideoData())==null?0:E9(M))?!1:g.C(n,16)||g.C(n,1)?!0:!1}q?this.X.start():this.hide()}; Ce.prototype.W=function(){this.message.style.display="block"};g.y(ro,g.KI);ro.prototype.onMutedAutoplayChange=function(n){this.Z&&(n?(tQ_(this),this.Hn()):(this.X&&this.logClick(),this.lG()))}; ro.prototype.i$=function(n){this.api.isMutedByMutedAutoplay()&&g.dU(n,2)&&this.lG()}; ro.prototype.onClick=function(){this.api.unMute();this.logClick()}; ro.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.y(g.xx,g.f8);g.W=g.xx.prototype;g.W.init=function(){var n=this.api,q=n.getPlayerStateObject();this.Ro=n.getPlayerSize();this.Wn(q);this.Wl();this.Tk();this.api.publish("basechromeinitialized",this);this.eJ()&&this.api.publish("standardControlsInitialized")}; g.W.onVideoDataChange=function(n,q){var M=this.Dp!==q.videoId;if(M||n==="newdata")n=this.api,n.isFullscreen()||(this.Ro=n.getPlayerSize());M&&(this.Dp=q.videoId,M=this.bI,M.IL=3E3,$x(M,512,!0),this.Wl());this.api.D("web_render_jump_buttons")&&q.showSeekingControls&&(this.Kz=572)}; g.W.z9y=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.W.Rd=function(){var n=this.api.dT()&&this.api.mj(),q=this.api.jZ();return this.dK||n||this.IP||q}; g.W.jf=function(){var n=!this.Rd();g.Yi(this.api.getRootNode(),"ytp-menu-shown",!n)}; g.W.i9=function(n){try{if(!g.XL(this.api.getRootNode(),n))return!1}catch(q){return!1}for(;n&&!$Ds(n);)n=n===this.api.getRootNode()?null:n.parentElement||null;return!!n}; g.W.d3=function(n){var q=this.api.getRootNode();g.Yi(q,"ytp-autohide",n);g.Yi(q,"ytp-autohide-active",!0);this.nK.start(n?250:100);n&&(this.MG=!1,g.ts(q,"ytp-touch-mode"));this.gK=!n;this.api.Ah(!n);this.api.D("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",n)}; g.W.Dm=function(){var n=this.api.getRootNode();g.Yi(n,"ytp-autohide-active",!1)}; g.W.fyX=function(){this.Ix=!0}; g.W.rgX=function(n){if(this.api.T().D("player_doubletap_to_seek")||this.api.T().N)this.Ix=!1,this.FY&&this.AQ(this.FY),this.QV===0&&pe(this,n)?(this.FO(),this.LZ.start(),this.FY=this.V(this.api.Lm(),"touchmove",this.fyX,void 0,!0)):this.LZ.stop();KjR(this)&&pe(this,n)&&!this.api.T().N&&YVC(this);var q=this.SM.Ol();if(!g.t8(this.api.T())&&nl&&kz_(this,n))q&&n.preventDefault();else if(this.MG=!0,g.MN(this.api.getRootNode(),"ytp-touch-mode"),this.bI.Qg(),this.api.T().D("player_doubletap_to_seek")||this.api.T().N)if(q= this.api.getPlayerStateObject(),!(!this.api.kM()||g.C(q,2)&&g.VG(this.api)||g.C(q,64))){q=Date.now()-this.hT;this.QV+=1;if(q<=350){this.Ft=!0;q=this.api.getPlayerSize().width/3;var M=this.api.getRootNode().getBoundingClientRect(),t=n.targetTouches[0].clientX-M.left;M=n.targetTouches[0].clientY-M.top;var c=(this.QV-1)*10;t>0&&tq*2&&t=650,t=n.width<528;this.bI.resize();if(this.api.D("web_player_use_screen_width_for_big_mode")){var c,Y=n.width>=((c=g.ic(this.api.T().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?c:2E3);g.Yi(q,"ytp-big-mode",Y)}g.Yi(q,"ytp-fullscreen",this.api.isFullscreen());g.Yi(q,"ytp-large-width-mode",M);this.api.D("delhi_modern_web_player")?g.Yi(q,"ytp-xsmall-width-mode",t):g.Yi(q,"ytp-small-mode",this.Qr()); g.Yi(q,"ytp-tiny-mode",this.gs());g.Yi(q,"ytp-big-mode",this.iS());this.oQ&&this.oQ.resize(n)}; g.W.i$=function(n){this.Wn(n.state);this.Wl()}; g.W.bq=na(3);g.W.AO=function(){var n=!!this.Dp&&!this.api.G0()&&!this.GG,q=this.api.getPresentingPlayerType()===2,M=this.api.T();if(q)return M=uy(this.api.zk()),n&&(M&&M.player?n=(n=M.player.getVideoData(2))?n.isListed&&!g.e$(M.player.T()):!1:(Kz("showInfoBarDuringAd: this is null"),n=!1)),n;q=M.D("web_player_imax_theater_mode")&&this.api.tG();return n&&(M.Iz||q||this.api.isFullscreen()||M.Xw)}; g.W.Wl=function(){var n=this.AO();this.E2!==n&&(this.E2=n,g.Yi(this.api.getRootNode(),"ytp-hide-info-bar",!n))}; g.W.Wn=function(n){var q=n.isCued()||this.api.Yw()&&this.api.getPresentingPlayerType()!==3;q!==this.isCued&&(this.isCued=q,this.jM&&this.AQ(this.jM),this.jM=this.V(this.api.Lm(),"touchstart",this.rgX,void 0,q));var M=this.bI,t=n.isPlaying()&&!g.C(n,32)||this.api.a7();$x(M,128,!t);M=this.bI;t=this.api.getPresentingPlayerType()===3;$x(M,256,t);M=this.api.getRootNode();g.C(n,2)?t=[V5.ENDED]:(t=[],g.C(n,8)?t.push(V5.PLAYING):g.C(n,4)&&t.push(V5.PAUSED),g.C(n,1)&&!g.C(n,32)&&t.push(V5.BUFFERING),g.C(n, 32)&&t.push(V5.SEEKING),g.C(n,64)&&t.push(V5.UNSTARTED));g.CQ(this.z7,t)||(g.cX(M,this.z7),this.z7=t,g.iC(M,t));t=this.api.T();var c=g.C(n,2);a:{var Y=this.api.T();var G=Y.controlsType;switch(G){case "2":case "0":Y=!1;break a}Y=G==="3"&&!g.C(n,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:MLL(uy(this.api.zk())))||this.api.jZ()||g.t8(Y)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Yi(M,"ytp-hide-controls",!Y);g.Yi(M,"ytp-native-controls",t.controlsType==="3"&&!q&&!c&&!this.IP);g.C(n, 128)&&!g.t8(t)?(this.oQ||(this.oQ=new g.ob(this.api),g.Z(this,this.oQ),g.qW(this.api,this.oQ.element,4)),this.oQ.W(n.Vr),this.oQ.show()):this.oQ&&(this.oQ.dispose(),this.oQ=null)}; g.W.oF=function(){return this.api.dT()&&this.api.mj()?(this.api.TA(!1,!1),!0):this.api.G0()?(g.Ci(this.api,!0),!0):!1}; g.W.onMutedAutoplayChange=function(n){this.IP=n;this.jf()}; g.W.iS=function(){return!1}; g.W.Qr=function(){return!this.iS()&&(this.api.getPlayerSize().width=0&&q.left>=0&&q.bottom>q.top&&q.right>q.left?q:null;q=this.size;n=n.clone();q=q.clone();t&&(G=q,c=5,(c&65)==65&&(n.x=t.right)&&(c&=-2),(c&132)==132&&(n.y=t.bottom)&&(c&=-5),n.xt.right&&(G.width=Math.min(t.right-n.x,Y+G.width-t.left),G.width=Math.max(G.width,0))),n.x+G.width>t.right&&c&1&&(n.x=Math.max(t.right-G.width,t.left)),n.yt.bottom&&(G.height=Math.min(t.bottom-n.y,Y+G.height-t.top),G.height=Math.max(G.height,0))),n.y+G.height>t.bottom&&c&4&&(n.y=Math.max(t.bottom-G.height,t.top)));t=new g.ap(0,0,0,0);t.left=n.x;t.top=n.y;t.width= q.width;t.height=q.height;g.xZ(this.element,new g.wi(t.left,t.top));g.fL(this.Z);this.Z.V(kz(this),"contextmenu",this.Y9d);this.Z.V(this.G,"fullscreentoggled",this.onFullscreenToggled);this.Z.V(this.G,"pageTransition",this.Nt)}; g.W.Y9d=function(n){if(!n.defaultPrevented){var q=XY(n);g.XL(this.element,q)||this.lG();this.G.T().disableNativeContextMenu&&n.preventDefault()}}; g.W.onFullscreenToggled=function(){this.lG();DdC(this)}; g.W.Nt=function(){this.lG()};g.y(KV,g.w);KV.prototype.onClick=function(){var n=this,q,M,t,c;return g.u(function(Y){if(Y.X==1)return q=n.api.T(),M=n.api.getVideoData(),t=n.api.getPlaylistId(),c=q.getVideoUrl(M.videoId,t,void 0,!0),g.U(Y,$ds(n,c),2);Y.W&&mdJ(n);n.api.logClick(n.element);g.Sk(Y)})}; KV.prototype.Cm=function(){this.updateValue("icon",{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{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= AMf(this);g.Yi(this.element,"ytp-copylink-button-visible",this.visible);this.VS(this.visible);this.tooltip.Ic();this.api.logVisibility(this.element,this.visible&&this.B)}; KV.prototype.xQ=function(n){g.w.prototype.xQ.call(this,n);this.api.logVisibility(this.element,this.visible&&n)}; KV.prototype.ut=function(){g.w.prototype.ut.call(this);g.ts(this.element,"ytp-copylink-button-visible")};g.y(Fj1,g.w);g.W=Fj1.prototype;g.W.show=function(){g.w.prototype.show.call(this);g.Jd(this.W)}; g.W.hide=function(){this.J.stop();this.Z=0;this.JE("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.ts(this.element,"ytp-chapter-seek");g.ts(this.element,"ytp-time-seeking");g.w.prototype.hide.call(this)}; g.W.V5=function(n,q,M,t){this.Z=n===this.C?this.Z+t:t;this.C=n;var c=n===-1?this.U:this.N;c&&this.G.logClick(c);this.S?this.W.stop():g.CO(this.W);this.J.start();this.element.setAttribute("data-side",n===-1?"back":"forward");var Y=3*this.G.Lm().getPlayerSize().height;c=this.G.Lm().getPlayerSize();c=c.width/3-3*c.height;this.X.style.width=Y+"px";this.X.style.height=Y+"px";n===1?(this.X.style.left="",this.X.style.right=c+"px"):n===-1&&(this.X.style.right="",this.X.style.left=c+"px");var G=Y*2.5;Y=G/ 2;var k=this.JE("ytp-doubletap-ripple");k.style.width=G+"px";k.style.height=G+"px";n===1?(n=this.G.Lm().getPlayerSize().width-q+Math.abs(c),k.style.left="",k.style.right=n-Y+"px"):n===-1&&(n=Math.abs(c)+q,k.style.right="",k.style.left=n-Y+"px");k.style.top="calc((33% + "+Math.round(M)+"px) - "+Y+"px)";if(M=this.JE("ytp-doubletap-ripple"))M.classList.remove("ytp-doubletap-ripple"),M.classList.add("ytp-doubletap-ripple");ZkU(this,this.S?this.Z:t)}; g.W.Ke=function(n,q,M){if(M=M===void 0?null:M){var t=n===-1?this.U.visualElement:this.N.visualElement;M={seekData:M};var c=g.ye();c&&py(c,t,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",M)}this.Z=n===this.C?this.Z+q:q;this.C=n;t=this.G.Lm().getPlayerSize();this.S?this.W.stop():g.CO(this.W);this.J.start();this.element.setAttribute("data-side",n===-1?"back":"forward");g.MN(this.element,"ytp-time-seeking");this.X.style.width="110px";this.X.style.height="110px";M=t.width*.1-15;n===1?this.xl?(this.X.style.right= M+"px",this.X.style.left=""):(this.X.style.right="",this.X.style.left=t.width*.8-30+"px"):n===-1&&(this.xl?(this.X.style.right="",this.X.style.left=M+"px"):(this.X.style.right="",this.X.style.left=t.width*.1-15+"px"));this.X.style.top=t.height*.5+15+"px";ZkU(this,this.S?this.Z:q)}; g.W.bK=function(n,q,M){M=M===void 0?null:M;g.CO(this.W);this.J.start();switch(n){case -1:n="back";break;case 1:n="forward";break;default:n=""}this.element.setAttribute("data-side",n);this.X.style.width="0";this.X.style.height="0";g.MN(this.element,"ytp-chapter-seek");this.updateValue("seekText",q);this.updateValue("seekTime","");q=this.JE("ytp-seek-icon");if(M){a:if(M){switch(M){case "PREMIUM_STANDALONE":M=PJu();break a;case "PREMIUM_STANDALONE_CAIRO":M=vjJ();break a}M=void 0}else M=null;this.updateValue("seekIcon", M);q.style.display="inline-block"}else q.style.display="none"};g.y(aVu,Iw);g.W=aVu.prototype;g.W.sy=function(n){this.SX||(this.SX=new ls(this.G),g.Z(this,this.SX));var q,M;if((q=this.Wg)==null?0:(M=q.menu)==null?0:M.menuRenderer)this.SX.open(this.Wg.menu.menuRenderer,n.target),n.preventDefault()}; g.W.Qs=function(){return!!this.X}; g.W.hh=function(){return!!this.X}; g.W.xs=function(n){n.target===this.overflowButton.element?n.preventDefault():(this.JQ&&this.G.Km("innertubeCommand",this.JQ),this.DO(!1))}; g.W.r6=function(){this.DO(!0);var n,q;((n=this.X)==null?0:(q=n.bannerData)==null?0:q.dismissedStatusKey)&&this.O9.push(this.X.bannerData.dismissedStatusKey);this.Ti()}; g.W.a5=function(){this.Ti();d2(this)}; g.W.DvE=function(n){var q=this,M;if(n.id!==((M=this.X)==null?void 0:M.identifier)){this.Ti();M=g.S(this.jX);for(var t=M.next();!t.done;t=M.next()){var c=t.value,Y=void 0,G=void 0;if((t=(Y=c)==null?void 0:(G=Y.bannerData)==null?void 0:G.itemData)&&c.identifier===n.id){G=Y=void 0;var k=((Y=c)==null?void 0:(G=Y.bannerData)==null?void 0:G.dismissedStatusKey)||"";if(this.O9.includes(k))return;this.X=c;this.banner.element.setAttribute("aria-label",t.accessibilityLabel||"");t.trackingParams&&(this.J=!0, this.G.setTrackingParams(this.badge.element,t.trackingParams));this.show();this.U.show();SJ(this);this.IL.VS(!t.stayInApp);nAf(this);oP1(this);bL(this);this.JQ=g.R(t.onTapCommand,Ts);if(c=g.R(t.menuOnTap,Ts))this.Wg=g.R(c,R3L);c=void 0;this.banner.update({thumbnail:(c=(t.thumbnailSources||[])[0])==null?void 0:c.url,title:t.productTitle,price:t.priceReplacementText?t.priceReplacementText:t.price,salesOriginalPrice:JMs(this),priceDropReferencePrice:VQd(this),promotionText:zJU(this),priceA11yText:Cba(this), affiliateDisclaimer:t.affiliateDisclaimer,vendor:rMs(this)});k=G=Y=c=void 0;((c=t)==null?0:(Y=c.hiddenProductOptions)==null?0:Y.showDropCountdown)&&((G=t)==null?0:(k=G.hiddenProductOptions)==null?0:k.dropTimestampMs)&&(this.Fh=new g.zw(function(){pu1(q)},1E3),this.IL.hide(),this.countdownTimer.show(),pu1(this)); this.G.D("web_player_enable_featured_product_banner_exclusives_on_desktop")&&RJj(this)&&(this.Kd=new g.zw(function(){wuf(q)},1E3),wuf(this))}}this.G.getRootNode()&&g.MN(this.G.getRootNode(),"ytp-featured-product-shown")}}; g.W.Ti=function(){this.X&&(this.X=void 0,this.xb(),this.G.getRootNode()&&g.ts(this.G.getRootNode(),"ytp-featured-product-shown"))}; g.W.onVideoDataChange=function(n,q){var M=this;n==="dataloaded"&&d2(this);var t,c,Y;n=g.R((t=q.getWatchNextResponse())==null?void 0:(c=t.playerOverlays)==null?void 0:(Y=c.playerOverlayRenderer)==null?void 0:Y.productsInVideoOverlayRenderer,Z7S);this.overflowButton.show();this.dismissButton.hide();var G=n==null?void 0:n.featuredProductsEntityKey;this.trendingOfferEntityKey=n==null?void 0:n.trendingOfferEntityKey;this.jX.length||(QYu(this,G),bL(this));var k;(k=this.o8)==null||k.call(this);this.o8=g.vO.subscribe(function(){QYu(M, G);bL(M)})}; g.W.ut=function(){d2(this);nAf(this);oP1(this);Iw.prototype.ut.call(this)};g.y(cwd,g.w);cwd.prototype.onClick=function(){this.G.logClick(this.element,this.W)};g.y(Yf_,g.KI);g.W=Yf_.prototype;g.W.show=function(){g.KI.prototype.show.call(this);this.G.publish("infopaneldetailvisibilitychange",!0);this.G.logVisibility(this.element,!0);GCs(this,!0)}; g.W.hide=function(){g.KI.prototype.hide.call(this);this.G.publish("infopaneldetailvisibilitychange",!1);this.G.logVisibility(this.element,!1);GCs(this,!1)}; g.W.getId=function(){return this.J}; g.W.fL=function(){return this.itemData.length}; g.W.onVideoDataChange=function(n,q){if(q){var M,t,c,Y;this.update({title:((M=q.W_)==null?void 0:(t=M.title)==null?void 0:t.content)||"",body:((c=q.W_)==null?void 0:(Y=c.bodyText)==null?void 0:Y.content)||""});var G;n=((G=q.W_)==null?void 0:G.trackingParams)||null;this.G.setTrackingParams(this.element,n);G=g.S(this.itemData);for(n=G.next();!n.done;n=G.next())n.value.dispose();this.itemData=[];var k;if((k=q.W_)==null?0:k.ctaButtons)for(q=g.S(q.W_.ctaButtons),k=q.next();!k.done;k=q.next())if(k=g.R(k.value, BKG))k=new cwd(this.G,k,this.X),k.ET&&(this.itemData.push(k),k.dJ(this.items))}}; g.W.ut=function(){this.hide();g.KI.prototype.ut.call(this)};g.y(b6d,g.w);g.W=b6d.prototype;g.W.onVideoDataChange=function(n,q){kCf(this,q);this.TU&&NgJ(this,this.TU)}; g.W.KX=function(n){var q=this.G.getVideoData();this.videoId!==q.videoId&&kCf(this,q);NgJ(this,n.state);this.TU=n.state}; g.W.bj=function(n){(this.Z=n)?this.hide():this.X&&this.show()}; g.W.hx=function(){this.W||this.Hn();this.showControls=!0}; g.W.VX=function(){this.W||this.lG();this.showControls=!1}; g.W.Hn=function(){var n,q=(n=this.G)==null?void 0:n.getPlayerSize();n=q.width<380;var M;q=q.height<(((M=this.G)==null?0:M.isEmbedsShortsMode())?400:280);var t,c;(((t=this.G)==null?0:t.getPlayerStateObject().isCued())||((c=this.G)==null?0:g.C(c.getPlayerStateObject(),1024)))&&n&&q||!this.X||this.Z||(this.fade.show(),this.G.publish("infopanelpreviewvisibilitychange",!0),this.G.logVisibility(this.element,!0))}; g.W.lG=function(){this.X&&!this.Z&&(this.fade.hide(),this.G.publish("infopanelpreviewvisibilitychange",!1),this.G.logVisibility(this.element,!1))}; g.W.O91=function(){this.W=!1;this.showControls||this.lG()};var V2n={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(V2n).reduce(function(n,q){n[V2n[q]]=q;return n},{}); var CKS={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(CKS).reduce(function(n,q){n[CKS[q]]=q;return n},{}); var rSO={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(rSO).reduce(function(n,q){n[rSO[q]]=q;return n},{});var x3L,QlF;x3L=[{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"}];QlF=[{option:0,text:NF(0)},{option:.25,text:NF(.25)},{option:.5,text:NF(.5)},{option:.75,text:NF(.75)},{option:1,text:NF(1)}]; g.Ei=[{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:x3L},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:NF(.5)},{option:-1,text:NF(.75)},{option:0,text:NF(1)},{option:1, text:NF(1.5)},{option:2,text:NF(2)},{option:3,text:NF(3)},{option:4,text:NF(4)}]},{option:"background",text:"Color de fondo",options:x3L},{option:"backgroundOpacity",text:"Opacidad de fondo",options:QlF},{option:"windowColor",text:"Color de la ventana",options:x3L},{option:"windowOpacity",text:"Opacidad de la ventana",options:QlF},{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:NF(.25)},{option:.5,text:NF(.5)},{option:.75,text:NF(.75)},{option:1,text:NF(1)}]}];var pbd=[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.y(WYm,g.f8);g.W=WYm.prototype; g.W.E0=function(n){n.repeat||(this.Z.wj=!1);var q=!1,M=n.keyCode,t=XY(n),c=!n.altKey&&!n.ctrlKey&&!n.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||pbd.includes(M)),Y=!1,G=!1,k=this.api.T();n.defaultPrevented?(c=!1,G=!0):k.uI&&!this.api.isMutedByEmbedsMutedAutoplay()&&(c=!1);if(M===9)q=!0;else{if(t)switch(M){case 32:case 13:if(t.tagName==="BUTTON"||t.tagName==="A"||t.tagName==="INPUT")q=!0,c=!1;else if(c){var b=t.getAttribute("role");!b||b!=="option"&&b!=="button"&&b.indexOf("menuitem")!==0|| (q=!0,t.click(),Y=!0)}break;case 37:case 39:case 36:case 35:q=t.getAttribute("role")==="slider";break;case 38:case 40:b=t.getAttribute("role"),t=M===38?t.previousSibling:t.nextSibling,b==="slider"?q=!0:c&&(b==="option"?(t&&t.getAttribute("role")==="option"&&t.focus(),Y=q=!0):b&&b.indexOf("menuitem")===0&&(t&&t.hasAttribute("role")&&t.getAttribute("role").indexOf("menuitem")===0&&t.focus(),Y=q=!0))}if(c&&!Y)switch(M){case 38:Y=Math.min(this.api.getVolume()+5,100);MF(this.mq,Y,!1);this.api.setVolume(Y); G=Y=!0;break;case 40:Y=Math.max(this.api.getVolume()-5,0);MF(this.mq,Y,!0);this.api.setVolume(Y);G=Y=!0;break;case 36:this.api.kM()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),G=Y=!0);break;case 35:this.api.kM()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),G=Y=!0)}}q&&g2(this,!0);(q||G)&&this.bI.Qg();(Y||c&&this.handleGlobalKeyDown(M,n.shiftKey,n.ctrlKey,n.altKey,n.metaKey,n.key,n.code,n.repeat))&&n.preventDefault();k.B&&(n={keyCode:n.keyCode, altKey:n.altKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,shiftKey:n.shiftKey,handled:n.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.t1("onKeyPress",n))}; g.W.Tu=function(n){var q=n.keyCode;(!this.api.D("web_player_spacebar_control_bugfix")||this.api.D("web_player_spacebar_control_bugfix")&&!this.Z.SZ)&&this.handleGlobalKeyUp(q,n.shiftKey,n.ctrlKey,n.altKey,n.metaKey,n.key,n.code)&&n.preventDefault()}; g.W.handleGlobalKeyUp=function(n,q,M,t,c,Y,G){this.api.publish("keyboardserviceglobalkeyup",{keyCode:n,shiftKey:q,ctrlKey:M,altKey:t,metaKey:c,key:Y,code:G});q=!1;if(this.Z.wj)return q;(Y=g.pi(this.api.zk()))&&(Y=Y.yZ)&&Y.Zn&&(Y.e5(n),q=!0);switch(n){case 9:g2(this,!0);q=!0;break;case 32:if(this.api.D("web_speedmaster_spacebar_control")&&(!this.api.D("web_player_spacebar_control_bugfix")&&!this.Z.SZ||this.api.D("web_player_spacebar_control_bugfix"))&&!this.api.T().uI){var k,b;n=(k=this.progressBar)== null?void 0:(b=k.W)==null?void 0:b.isEnabled;q=this.EA(n)}break;case 39:(yP?t:M)&&!c&&this.api.kM()&&this.api.D("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),k=(k=this.api.getVideoData())?k.JB:[],b=gAR(k,this.api.getCurrentTime()*1E3),b!==-1&&this.X!=null&&(this.X.bK(1,k[b].title),this.api.seekTo(k[b].startTime/1E3,void 0,void 0,void 0,52),q=!0))}return q}; g.W.handleGlobalKeyDown=function(n,q,M,t,c,Y,G,k){k||(this.Z.wj=!1);var b=!1,d=this.api.T();if(d.uI&&!this.api.isMutedByEmbedsMutedAutoplay())return b;var N=g.pi(this.api.zk());if(N&&(N=N.yZ)&&N.Zn)switch(n){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:b=N.Ho(n)}d.C||b||(b=Y||String.fromCharCode(n).toLowerCase(),this.W+=b,"awesome".indexOf(this.W)===0||this.api.D("web_player_rtr_ctrls")&&"bday".indexOf(this.W)===0?(b=!0,4===this.W.length&&this.W==="bday"&&this.api.D("web_player_rtr_ctrls")&& (j3d(this.S),this.bI.Qg()),7===this.W.length&&this.W==="awesome"&&f8j(this.api.getRootNode(),"ytp-color-party")):(this.W=b,b="awesome".indexOf(this.W)===0||"bday".indexOf(this.W)===0));if(!b&&(!this.api.isMutedByEmbedsMutedAutoplay()||pbd.includes(n))){var O=this.api.getVideoData(),e,E;N=(e=this.progressBar)==null?void 0:(E=e.W)==null?void 0:E.isEnabled;e=O?O.JB:[];E=yP?t:M;switch(n){case 80:q&&!d.rJ&&(qF(this.mq,TFd(),"Anterior"),this.api.previousVideo(),b=!0);break;case 78:q&&!d.rJ&&(qF(this.mq, W4(),"Siguiente"),this.api.nextVideo(),b=!0);break;case 74:this.api.kM()&&(this.api.startSeekCsiAction(),this.X?this.api.D("enable_key_press_seek_logging")?(b=eE(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.X.Ke(-1,10,b)):this.X.Ke(-1,10):qF(this.mq,{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{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.kM()&&(this.api.startSeekCsiAction(),this.X?this.api.D("enable_key_press_seek_logging")?(b=eE(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.X.Ke(1,10,b)):this.X.Ke(1,10):qF(this.mq,{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{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:this.api.kM()&&(this.api.startSeekCsiAction(),E?(E=eOd(e,this.api.getCurrentTime()*1E3),E!==-1&&this.X!=null&&(this.X.bK(-1,e[E].title),this.api.seekTo(e[E].startTime/1E3,void 0,void 0,void 0,53),b=!0)):(this.X?this.api.D("enable_key_press_seek_logging")?(b=eE(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.X.Ke(-1,5,b)):this.X.Ke(-1,5):qF(this.mq,{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{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.kM()&&(this.api.startSeekCsiAction(),E?this.api.D("web_enable_keyboard_shortcut_for_timely_actions")||(E=gAR(e,this.api.getCurrentTime()*1E3),E!==-1&&this.X!=null&&(this.X.bK(1,e[E].title),this.api.seekTo(e[E].startTime/1E3,void 0,void 0,void 0,52),b=!0)):(this.X!=null?this.api.D("enable_key_press_seek_logging")?(b=eE(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.X.Ke(1,5,b)):this.X.Ke(1, 5):qF(this.mq,{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{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(),MF(this.mq,this.api.getVolume(),!1)):(this.api.mute(),MF(this.mq,0,!0));b=!0;break;case 32:b=this.api.D("web_speedmaster_spacebar_control")?!this.api.T().rJ:this.EA(N);break;case 75:b=this.EA(N);break;case 190:q?d.enableSpeedOptions&&s6s(this)&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b+.25,!0),ddC(this.mq,!1),b=!0):this.api.kM()&&(this.step(1),b=!0);break;case 188:q? d.enableSpeedOptions&&s6s(this)&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b-.25,!0),ddC(this.mq,!0),b=!0):this.api.kM()&&(this.step(-1),b=!0);break;case 70:rj1(this.api)&&(this.api.toggleFullscreen().catch(function(){}),b=!0); break;case 27:N?(this.progressBar.tY(),b=!0):this.C()&&(b=!0)}if(d.controlsType!=="3")switch(n){case 67:g.TK(this.api.zk())&&(d=this.api.getOption("captions","track"),this.api.toggleSubtitles(),Nn_(this.mq,!d||d&&!d.displayName),b=!0);break;case 79:h9(this,"textOpacity");break;case 87:h9(this,"windowOpacity");break;case 187:case 61:h9(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:h9(this,"fontSizeIncrement",!0,!0)}var h;q||M||t||(n>=48&&n<=57?h=n-48:n>=96&&n<=105&&(h=n-96));h!=null&&this.api.kM()&& !this.api.D("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),d=this.api.getProgressState(),this.api.seekTo(h/10*(d.seekableEnd-d.seekableStart)+d.seekableStart,void 0,void 0,void 0,81),b=!0);b&&this.bI.Qg()}this.Z.w$=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:n,shiftKey:q,ctrlKey:M,altKey:t,metaKey:c,key:Y,code:G,repeat:k},this.Z);this.Z.w$&&(b=!0,this.bI.Qg());return b}; g.W.step=function(n){this.api.kM();if(this.api.getPlayerStateObject().isPaused()){var q=this.api.getVideoData().W;q&&(q=q.video)&&this.api.seekBy(n/(q.fps||30),void 0,void 0,n>0?77:78)}}; g.W.EA=function(n){if(!this.api.T().rJ){var q;var M,t=(q=this.api.getVideoData())==null?void 0:(M=q.getPlayerResponse())==null?void 0:M.playabilityStatus;if(t){var c;q=((c=g.R(t.miniplayer,r2n))==null?void 0:c.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else q=!1;q&&this.api.Km("onExpandMiniplayer");n?this.progressBar.xn():(n=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.mq.lW(n),n?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.W.ut=function(){g.CO(this.J);g.f8.prototype.ut.call(this)};g.y(WB,g.w);WB.prototype.Cm=function(){var n=this.G.T(),q=n.Z||this.G.D("web_player_hide_overflow_button_if_empty_menu")&&this.Gp.isEmpty();n=g.t8(n)&&g.xt(this.G)&&g.C(this.G.getPlayerStateObject(),128);var M=this.G.getPlayerSize();this.visible=this.G.Qr()&&!n&&M.width>=240&&!this.G.getVideoData().wZ&&!q&&!this.G.isEmbedsShortsMode();g.Yi(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.G.Ic();this.G.logVisibility(this.element,this.visible&&this.B)}; WB.prototype.xQ=function(n){g.w.prototype.xQ.call(this,n);this.G.logVisibility(this.element,this.visible&&n)}; WB.prototype.ut=function(){g.w.prototype.ut.call(this);g.ts(this.element,"ytp-overflow-button-visible")};g.y(Xzm,g.KI);g.W=Xzm.prototype;g.W.yX=function(n){n=XY(n);g.XL(this.element,n)&&(g.XL(this.X,n)||g.XL(this.closeButton,n)||b6(this))}; g.W.lG=function(){g.KI.prototype.lG.call(this);this.G.zn(this.element)}; g.W.show=function(){this.Zn&&this.G.publish("OVERFLOW_PANEL_OPENED");g.KI.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Sf1(this,!0)}; g.W.hide=function(){g.KI.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Sf1(this,!1)}; g.W.onFullscreenToggled=function(n){!n&&this.Ol()&&b6(this)}; g.W.isEmpty=function(){return this.actionButtons.length===0}; g.W.focus=function(){for(var n=g.S(this.actionButtons),q=n.next();!q.done;q=n.next())if(q=q.value,q.Zn){q.focus();break}};g.y(IFJ,g.w);IFJ.prototype.onClick=function(n){g.P8(n,this.api)&&this.api.playVideoAt(this.index)};g.y(fFR,g.KI);g.W=fFR.prototype;g.W.show=function(){g.KI.prototype.show.call(this);this.X.V(this.api,"videodatachange",this.uZ);this.X.V(this.api,"onPlaylistUpdate",this.uZ);this.uZ()}; g.W.hide=function(){g.KI.prototype.hide.call(this);g.fL(this.X);this.updatePlaylist(null)}; g.W.uZ=function(){this.updatePlaylist(this.api.getPlaylist());this.api.T().Z&&(this.JE("ytp-playlist-menu-title-name").removeAttribute("href"),this.Z&&(this.AQ(this.Z),this.Z=null))}; g.W.Ib=function(){var n=this.playlist,q=n.author,M=q?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",t={CURRENT_POSITION:String(n.index+1),PLAYLIST_LENGTH:String(n.length)};q&&(t.AUTHOR=q);this.update({title:n.title,subtitle:g.Yo(M,t),playlisturl:this.api.getVideoUrl(!0)});q=n.W;if(q===this.J)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[n.index];else{M=g.S(this.playlistData);for(t=M.next();!t.done;t=M.next())t.value.dispose(); M=n.length;this.playlistData=[];for(t=0;t=this.W&&!n.Z&&!q.isAd()&&!this.api.isEmbedsShortsMode()}else n=!1;this.visible=n;this.VS(this.visible);g.Yi(this.element,"ytp-search-button-visible",this.visible);g.Yi(this.element,"ytp-show-search-title",!this.api.Qr());this.api.logVisibility(this.element,this.visible&&this.B)}; jE.prototype.xQ=function(n){g.w.prototype.xQ.call(this,n);this.api.logVisibility(this.element,this.visible&&n)};g.y(SE,g.w); SE.prototype.trigger=function(n,q,M,t){this.show();if(this.W&&n!==this.W){var c=1;this.Z&&(c=mIU(this));UId(this,c,!1);Awk(this)}this.W=n;this.J=this.W===-1?this.N:this.U;n="";q?(this.C+=q,n=(this.W===-1?"\u2212":"+")+" "+this.C):this.C=0;this.updateValue(this.W===-1?"durationBack":"durationForward",n);if(this.X==="hidden"||this.X==="fading-out")q=0,this.X==="fading-out"&&(q=mIU(this),DIs(this)),u5a(this,q),this.X!=="fading-out"&&Bgd(this,this.J.querySelector(".ytp-seek-overlay-arrow-persistent")),this.X= "fading-in";else if(this.X==="fading-in"||this.X==="lingering")q=this.J.querySelector(".ytp-seek-overlay-duration"),n=g.ic(this.G.T().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,q.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+n+")"},{offset:1,transform:"scale(1)"}],{duration:184}),DIs(this),this.X==="lingering"&&(this.S.stop(),this.S.start());M&&$Iu(this,M,t)}; SE.prototype.V5=function(n,q,M,t){this.trigger(n,t)}; SE.prototype.Ke=function(n,q,M){this.trigger(n,q);M&&(n=n===-1?this.U.visualElement:this.N.visualElement,M={seekData:M},(q=g.ye())&&py(q,n,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",M))}; SE.prototype.bK=function(n,q,M){this.trigger(n,void 0,q,M)};g.y(IB,g.w);IB.prototype.onClick=function(){var n=this,q=this.api.T(),M=this.api.getVideoData(this.api.getPresentingPlayerType()),t=this.api.getPlaylistId();q=this.api.D("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):q.getVideoUrl(M.videoId,t,void 0,!0);if(navigator.share)try{var c=navigator.share({title:M.title,url:q});c instanceof Promise&&c.catch(function(Y){Z61(n,Y)})}catch(Y){Y instanceof Error&&Z61(this,Y)}else this.X.oF(),b6(this.W,this.element,!1); this.api.logClick(this.element)}; IB.prototype.Cm=function(){var n=this.api.T(),q=this.api.isEmbedsShortsMode();g.Yi(this.element,"ytp-show-share-title",g.t8(n)&&!q);this.X.iS()&&q?(n=(this.api.Lm().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.wK(this.element,"right",n+"px")):q&&g.wK(this.element,"right","0px");this.updateValue("icon",{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{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=FYj(this);g.Yi(this.element,"ytp-share-button-visible",this.visible);this.VS(this.visible);this.tooltip.Ic();this.api.logVisibility(this.element,FYj(this)&&this.B)}; IB.prototype.xQ=function(n){g.w.prototype.xQ.call(this,n);this.api.logVisibility(this.element,this.visible&&n)}; IB.prototype.ut=function(){g.w.prototype.ut.call(this);g.ts(this.element,"ytp-share-button-visible")};g.y(ROs,g.KI);g.W=ROs.prototype;g.W.Ey=function(n){n=XY(n);g.XL(this.S,n)||g.XL(this.closeButton,n)||b6(this)}; g.W.lG=function(){g.KI.prototype.lG.call(this);this.tooltip.zn(this.element);this.api.logVisibility(this.X,!1);for(var n=g.S(this.Z),q=n.next();!q.done;q=n.next())q=q.value,this.api.hasVe(q.element)&&this.api.logVisibility(q.element,!1)}; g.W.show=function(){var n=this.Zn;g.KI.prototype.show.call(this);this.Cm();n||this.api.Km("onSharePanelOpened")}; g.W.mmX=function(){this.Zn&&this.Cm()}; g.W.Cm=function(){var n=this;g.MN(this.element,"ytp-share-panel-loading");g.ts(this.element,"ytp-share-panel-fail");var q=this.api.getVideoData(),M=this.api.getPlaylistId()&&this.J.checked;q.getSharePanelCommand&&uZ(this.api.Ou(),q.getSharePanelCommand,{includeListId:M}).then(function(t){n.qm()||(g.ts(n.element,"ytp-share-panel-loading"),zOJ(n,t))}); q=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",q);this.updateValue("linkText",q);this.updateValue("shareLinkWithUrl",g.Yo("Compartir v\u00ednculo $URL",{URL:q}));U3(this.X);this.api.logVisibility(this.X,!0)}; g.W.onFullscreenToggled=function(n){!n&&this.Ol()&&b6(this)}; g.W.focus=function(){this.X.focus()}; g.W.ut=function(){g.KI.prototype.ut.call(this);oAa(this)};g.y(Cwk,Iw);g.W=Cwk.prototype;g.W.ut=function(){nL_(this);Iw.prototype.ut.call(this)}; g.W.xs=function(n){n.target!==this.dismissButton.element&&(this.DO(!1),this.G.Km("innertubeCommand",this.onClickCommand))}; g.W.r6=function(){this.hE=!0;this.DO(!0);this.xb()}; g.W.bnl=function(n){this.C=n;this.xb()}; g.W.onVideoDataChange=function(n,q){if(n=!!q.videoId&&this.videoId!==q.videoId)this.videoId=q.videoId,this.hE=!1,this.wJ=!0,this.N=this.RL=!1,nL_(this),pzm(this,!1),this.W=this.X=!1,HB(this),rwj(this);if(n||!q.videoId)this.xl=this.J=!1;var M,t;if(q==null?0:(M=q.getPlayerResponse())==null?0:(t=M.videoDetails)==null?0:t.isLiveContent)this.Lu(!1);else{var c,Y,G;q=g.R((c=q.getWatchNextResponse())==null?void 0:(Y=c.playerOverlays)==null?void 0:(G=Y.playerOverlayRenderer)==null?void 0:G.productsInVideoOverlayRenderer, Z7S);this.C=this.enabled=!1;if(q){if(c=q==null?void 0:q.featuredProductsEntityKey){Y=g.vO.getState().entities;var k;if((k=QN(Y,"featuredProductsEntity",c))==null?0:k.productsData){this.Lu(!1);return}}if(!q.text||!q.onClickCommand||!q.timing){this.Lu(!1);return}this.enabled=!0;if(!this.J){var b;k=(b=q.badgeInteractionLogging)==null?void 0:b.trackingParams;(this.J=!!k)&&this.G.setTrackingParams(this.badge.element,k||null)}if(!this.xl){var d;if(this.xl=!((d=q.dismissButton)==null||!d.trackingParams)){var N; this.G.setTrackingParams(this.dismissButton.element,((N=q.dismissButton)==null?void 0:N.trackingParams)||null)}}q.isContentForward&&(b=q.productsData,pzm(this,!0),rwj(this),b=Q6C(this,b),d=[],b.length>0&&d.push(b[0]),b.length>1&&(N=new g.w({j:"div",Y:"ytp-suggested-action-more-products-icon"}),g.Z(this,N),d.push(N),d.push.apply(d,g.EJ(b.slice(1)))),this.S=new g.w({j:"div",L:d,Y:"ytp-suggested-action-content-forward-container"}),g.Z(this,this.S),this.nm.element.append(this.S.element));this.text=g.b8(q.text); var O;if(b=(O=q.dismissButton)==null?void 0:O.a11yLabel)this.V1=g.b8(b);this.onClickCommand=q.onClickCommand;this.timing=q.timing;this.y6()}Aku(this);SJ(this);this.xb()}}; g.W.Qs=function(){return!this.C&&this.enabled&&!this.hE&&!this.G.Qr()&&!this.uG&&(this.N||this.wJ)}; g.W.ZL=function(n){Iw.prototype.ZL.call(this,n);if(this.X||this.W)this.timing&&fV(this.timing.preview)&&(this.X=!1,HB(this),this.W=!1,HB(this),this.G.sT("shopping_overlay_preview_collapsed"),this.G.sT("shopping_overlay_preview_expanded"),n=LV(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),fV(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.G.sT("shopping_overlay_expanded"),n.end=this.timing.expanded.endSec*1E3),this.G.y6([n])), this.RL=!0,SJ(this);HB(this)}; g.W.Lu=function(n){(this.N=n)?(jJ(this),SJ(this,!1)):(nL_(this),this.rJ.start());this.xb()}; g.W.y6=function(n){var q=this.timing;n=(n===void 0?0:n)+this.G.getCurrentTime();var M=[],t=q.visible,c=q.preview;q=q.expanded;fV(t)&&(JwR(t,n),M.push(LV(t.startSec,t.endSec,"shopping_overlay_visible")));fV(c)&&(JwR(c,n),t=c.startSec+1,M.push(LV(c.startSec,t,"shopping_overlay_preview_collapsed")),M.push(LV(t,c.endSec,"shopping_overlay_preview_expanded")));fV(q)&&(JwR(q,n),M.push(LV(q.startSec,q.endSec,"shopping_overlay_expanded")));this.G.y6(M)}; g.W.xb=function(){Iw.prototype.xb.call(this);this.G.getRootNode()&&g.Yi(this.G.getRootNode(),"ytp-shopping-pill-shown",this.Qs())};g.y(iFk,g.w); iFk.prototype.Cm=function(){var n=this.api.T();this.VS(g.t8(n)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Zn);var q=this.api.getVideoData(),M=!1;this.api.getPresentingPlayerType()===2?M=!!q.videoId&&!!q.isListed&&!!q.author&&!!q.QS&&!!q.profilePicture:g.t8(n)&&(M=!!q.videoId&&!!q.QS&&!!q.profilePicture&&!q.wZ&&!n.Z&&!(n.N&&this.api.getPlayerSize().width<200));var t=q.profilePicture;n=g.t8(n)?q.expandedTitle:q.author;t=t===void 0? "":t;n=n===void 0?"":n;M?(this.W!==t&&(this.X.style.backgroundImage="url("+t+")",this.W=t),this.updateValue("channelLogoLabel",g.Yo("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:n})),g.MN(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.ts(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.X,M&&this.B);this.api.logVisibility(this.channelName,M&&this.B);this.subscribeButton&&(this.subscribeButton.channelId=q.xp);this.updateValue("expandedTitle",q.expandedTitle)};g.y(PB,g.KI);PB.prototype.show=function(){g.KI.prototype.show.call(this);this.X.start()}; PB.prototype.hide=function(){g.KI.prototype.hide.call(this);this.X.stop()}; PB.prototype.OQ=function(n,q){n==="dataloaded"&&((this.u$=q.u$,this.SR=q.SR,isNaN(this.u$)||isNaN(this.SR))?this.Z&&(this.G.sT("intro"),this.G.removeEventListener(g.CK("intro"),this.U),this.G.removeEventListener(g.rj("intro"),this.S),this.G.removeEventListener("onShowControls",this.J),this.hide(),this.Z=!1):(this.G.addEventListener(g.CK("intro"),this.U),this.G.addEventListener(g.rj("intro"),this.S),this.G.addEventListener("onShowControls",this.J),n=new g.Ji(this.u$,this.SR,{priority:9,namespace:"intro"}), this.G.y6([n]),this.Z=!0))};g.y(vB,g.w);vB.prototype.onClick=function(){this.G.IN()}; vB.prototype.Cm=function(){var n=!0;g.t8(this.G.T())&&(n=n&&this.G.Lm().getPlayerSize().width>=480);this.VS(n);n=this.updateValue;var q=this.G.D("delhi_modern_web_player_icons"),M=q?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,K:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};q=q?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{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"}}]};n.call(this,"icon",this.G.z8()?M:q)};g.y(ceU,g.w);ceU.prototype.ut=function(){this.X=null;g.w.prototype.ut.call(this)};g.y(Tb,g.w);Tb.prototype.onClick=function(){this.G.Km("innertubeCommand",this.W)}; Tb.prototype.U=function(){if(this.G.D("delhi_modern_web_player")){var n=this.G.getPlayerSize();n.width&&(this.element.style.maxWidth=n.width*.25+"px")}}; Tb.prototype.RL=function(n){n!==this.C&&(this.update({chapterTitle:n,ariaLabel:n}),this.C=n);n?this.show():this.hide()}; Tb.prototype.xl=function(){this.X.disabled=this.W==null;g.Yi(this.X,"ytp-chapter-container-disabled",this.X.disabled);this.Oq()};g.y(lL,Tb);lL.prototype.onClickCommand=function(n){g.R(n,PO)&&this.Oq()}; lL.prototype.updateVideoData=function(n,q){var M,t,c;n=g.R((M=q.getWatchNextResponse())==null?void 0:(t=M.playerOverlays)==null?void 0:(c=t.playerOverlayRenderer)==null?void 0:c.decoratedPlayerBarRenderer,MS);M=g.R(n==null?void 0:n.playerBarActionButton,g.N_);if(this.G.D("web_player_updated_entrypoint")){this.N=pg(M==null?void 0:M.text);var Y;t=(Y=M==null?void 0:M.tooltip)!=null?Y:"Ver cap\u00edtulo";this.S.setAttribute("title",t)}this.W=M==null?void 0:M.command;Tb.prototype.xl.call(this)}; lL.prototype.Oq=function(){var n=this.N,q=this.J.X,M,t=((M=this.G.getLoopRange())==null?void 0:M.type)==="clips";if(q.length>1&&!t){n=this.G.getProgressState().current*1E3;M=Oi(q,n);n=q[M].title||"Cap\u00edtulos";if(M!==this.currentIndex||this.Z)this.G.Km("innertubeCommand",q[M].onActiveCommand),this.currentIndex=M;this.Z=!1}else this.Z=!0;Tb.prototype.RL.call(this,n)};g.y(Ui,g.G2);Ui.prototype.W=function(){var n;(n=this.element.parentElement)==null||n.classList.contains("ytp-right-controls-left");(this.X=!this.X)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; Ui.prototype.isExpanded=function(){return this.X};g.y(uL,g.w);uL.prototype.Z=function(n){g.C(n.state,32)?G$1(this,this.api.p_()):this.Zn&&(g.C(n.state,16)||g.C(n.state,1))||this.fade.hide()}; uL.prototype.onProgress=function(){var n=this.api.getPlayerStateObject();(g.C(n,32)||g.C(n,16))&&KwJ(this)}; uL.prototype.J=function(){this.frameIndex=NaN;KwJ(this)}; uL.prototype.hide=function(){this.X&&G$1(this,null);g.w.prototype.hide.call(this)};g.y(k$U,g.w);g.W=k$U.prototype;g.W.onClick=function(){var n=this;if(this.G.T().QS||this.G.T().N){this.G.logClick(this.element);try{this.G.toggleFullscreen().catch(function(q){n.XE(q)})}catch(q){this.XE(q)}}else b6(this.message,this.element,!0)}; g.W.XE=function(n){String(n).includes("fullscreen error")?g.PJ(n):g.Ly(n);this.Kj()}; g.W.Kj=function(){this.disable();this.message.Hn(this.element,!0)}; g.W.ER=function(){gF()===this.G.getRootNode()?this.Z.start():(this.Z.stop(),this.message&&this.message.hide())}; g.W.M_=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var n=window.screen.width*.9,q=window.screen.height*.9,M=Math.max(window.outerWidth,window.innerWidth),t=Math.max(window.outerHeight,window.innerHeight);if(M>t!==n>q){var c=M;M=t;t=c}n>M&&q>t&&this.Kj()}}; g.W.disable=function(){var n=this;if(!this.message){var q=(dF(["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.KI(this.G,{j:"div",aL:["ytp-popup","ytp-generic-popup"], K:{role:"alert",tabindex:"0"},L:[q[0],{j:"a",K:{href:"https://support.google.com/youtube/answer/6276924",target:this.G.T().U},Wb:q[2]},q[4]]},100,!0);this.message.hide();g.Z(this,this.message);this.message.subscribe("show",function(M){n.W.z2(n.message,M)}); g.qW(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.X)();this.X=null}}; g.W.Cm=function(){var n=rj1(this.G),q=this.G.T().N&&this.G.getPlayerSize().width<250;this.VS(n&&!q);this.G.logVisibility(this.element,this.Zn)}; g.W.BR=function(n){if(n){var q=g.z1(this.G,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.G.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(M){g.PJ(M)})}else q=g.z1(this.G,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); n=bF1(this,n);q=this.message?null:q;this.G.T().D("player_tooltip_data_title_killswitch")?this.update({title:q,icon:n}):this.update({"tooltip-title":q,"aria-label":q,icon:n});this.W.eG().Ic()}; g.W.ut=function(){this.message||((0,this.X)(),this.X=null);g.w.prototype.ut.call(this)}; g.W.xQ=function(n){g.w.prototype.xQ.call(this,n)};g.y(BB,g.w);BB.prototype.onClick=function(){this.G.logClick(this.element);this.G.seekBy(this.X,!0);var n=this.X>0?1:-1,q=Math.abs(this.X),M=this.G.lr().Gt;M&&M.Ke(n,q);this.W.isActive()?this.Z=!0:(n=["ytp-jump-spin"],this.X<0&&n.push("backwards"),this.element.classList.add.apply(this.element.classList,g.EJ(n)),g.Jd(this.W))};g.y(DW,Tb);DW.prototype.onClickCommand=function(n){g.R(n,$EQ)&&this.Oq()}; DW.prototype.updateVideoData=function(){var n,q;this.W=(n=NPs(this))==null?void 0:(q=n.onTap)==null?void 0:q.innertubeCommand;Tb.prototype.xl.call(this)}; DW.prototype.Oq=function(){var n="",q=this.J.C,M,t=(M=NPs(this))==null?void 0:M.headerTitle;M=t?g.b8(t):"";var c;t=((c=this.G.getLoopRange())==null?void 0:c.type)==="clips";q.length>1&&!t&&(n=this.G.getProgressState().current*1E3,c=O6f(q,n),n=c!=null?q[c].title:M,c!=null&&c!==this.currentIndex&&(this.G.Km("innertubeCommand",q[c].onActiveCommand),this.currentIndex=c));Tb.prototype.RL.call(this,n)};g.y(A9,g.w);A9.prototype.onClick=function(){this.G.Km("onCollapseMiniplayer");this.G.logClick(this.element)}; A9.prototype.Cm=function(){this.visible=!this.G.isFullscreen();this.VS(this.visible);this.G.logVisibility(this.element,this.visible&&this.B)}; A9.prototype.xQ=function(n){g.w.prototype.xQ.call(this,n);this.G.logVisibility(this.element,this.visible&&n)};g.y(mh,g.w);mh.prototype.init=function(){this.updateValue("minvalue",this.J);this.updateValue("maxvalue",this.S);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.X);gLd(this,this.X)}; mh.prototype.Z=function(){$5(this,Number(this.W.value));this.W.focus()}; mh.prototype.C=function(n){if(!n.defaultPrevented){switch(n.code){case "ArrowDown":n=-this.N;break;case "ArrowUp":n=this.N;break;default:return}$5(this,Math.min(this.S,Math.max(Number((this.X+n).toFixed(2)),this.J)))}};g.y(F3,mh);F3.prototype.onVolumeChange=function(n){if(this.U)this.U=!1;else{var q=n.volume;q===0||n.muted?$5(this,0):$5(this,q)}}; F3.prototype.Z=function(){mh.prototype.Z.call(this);this.xl(this.X)}; F3.prototype.RL=function(n){var q=-n.deltaY;q=n.deltaMode===WheelEvent.DOM_DELTA_LINE||n.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.aR(this.X+q,0,100):g.aR(this.X+g.aR(q/10,-10,10),0,100);q===0?$5(this,0):$5(this,q);this.xl(q);n.preventDefault();n.stopPropagation()}; F3.prototype.wJ=function(n,q){this.U=!0;n===0||q?this.G.mute():(this.G.isMuted()&&this.G.unMute(),this.G.setVolume(n))};g.y(ezJ,g.w);g.y(aB,g.w);g.W=aB.prototype;g.W.rV=function(){if(!this.G.Yb()){this.updateValue("dataTooltipOffsetY",-120);var n;(n=this.X)!=null&&ZW(n,!0);var q;(q=this.X)!=null&&q.X.stop()}}; g.W.wW=function(){var n;(n=this.X)!=null&&n.X.start()}; g.W.f5=function(n){this.visible=n.width>=300||this.SX;this.VS(this.visible);this.G.logVisibility(this.element,this.visible&&this.B)}; g.W.XC=function(){this.G.T().nm?this.G.isMuted()?this.G.unMute():this.G.mute():b6(this.message,this.element,!0);this.G.logClick(this.element)}; g.W.xVE=function(n){if(this.G.T().nm&&this.X)if(n.target===this.Z){var q;if(!this.G.Yb()||((q=this.X)==null?0:q.isVisible))this.XC();else{var M;(M=this.X)!=null&&ZW(M,!0)}}else{var t;(t=this.X)!=null&&ZW(t,!0)}else this.XC()}; g.W.onVolumeChange=function(n){this.setVolume(n.volume,n.muted)}; g.W.setVolume=function(n,q){var M=this,t=q?0:n/100;n=t===0?1:n>50?1:0;if(this.U!==n){var c=this.N;isNaN(c)?sUC(this,n):XSm(this.nm,function(G){sUC(M,c+(M.U-c)*G)},250); this.U=n}t=t===0?1:0;if(this.C!==t){var Y=this.wJ;isNaN(Y)?Xqs(this,t):XSm(this.jX,function(G){Xqs(M,Y+(M.C-Y)*G)},250); this.C=t}hz1(this,q)}; g.W.xQ=function(n){g.w.prototype.xQ.call(this,n);this.G.logVisibility(this.element,this.visible&&n)}; var Wws=["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"],ye_=["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.y(g.RB,g.w);g.W=g.RB.prototype;g.W.onStateChange=function(n){this.Va(n.state)}; g.W.Va=function(n){var q=g.qm(this.G.getVideoData()),M=!1;n.isOrWillBePlaying()?n=q?4:2:g.C(n,2)?(n=3,M=q):n=1;this.element.disabled=M;if(this.X!==n){q=null;switch(n){case 2:q=g.z1(this.G,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:q="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:q=g.z1(this.G,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:q="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}n=== 3?this.G.T().D("player_tooltip_data_title_killswitch")?this.update({title:q,icon:jUk(this,n)}):this.update({"tooltip-title":q,icon:jUk(this,n)}):(this.G.D("player_tooltip_data_title_killswitch")?this.update({title:q}):this.update({"tooltip-title":q}),(q=jUk(this,n))&&this.X&&this.X!==3?SGs(this.transition,this.element,q):this.updateValue("icon",q));this.tooltip.Ic();this.X=n}}; g.W.onVideoDataChange=function(){g.Yi(this.element,"ytp-play-button-playlist",g.xt(this.G))}; g.W.EA=function(n){this.G.logClick(this.element);if(this.G.getPlayerStateObject().isOrWillBePlaying())this.G.pauseVideo();else{if(this.G.isMinimized()&&this.G.getPlayerStateObject().isCued()){var q={},M;if((M=this.G.getVideoData())==null?0:M.C)q.cttAuthInfo={token:this.G.getVideoData().C,videoId:this.G.getVideoData().videoId};P_("direct_playback",q);this.G.Zu().timerName="direct_playback"}this.G.playVideo()}this.G.isMinimized()&&(n==null?void 0:n.type)==="click"&&this.element.blur()}; g.W.xQ=function(n){g.w.prototype.xQ.call(this,n)};g.y(g.oB,g.w);g.W=g.oB.prototype;g.W.onVideoDataChange=function(){fUU(this);this.J&&(this.AQ(this.J),this.J=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.J=this.V(this.G,"progresssync",this.Tf);this.Z=HFd(this);IUJ(this);this.ZX(this.G.Lm().getPlayerSize())}; g.W.ZX=function(n){n=n===void 0?this.G.Lm().getPlayerSize():n;var q,M=((q=this.G.getLoopRange())==null?void 0:q.type)==="clips";q=g.xt(this.G)||this.X&&g.MW(this.G)&&!this.G.D("web_hide_next_button")||Lwd(this);var t=!this.X&&n.width<400;n=this.G.D("delhi_modern_web_player_horizontal_volume_controls")&&n.width<640;M=q&&!M&&!t&&!n;this.VS(M);this.G.logVisibility(this.element,M)}; g.W.onClick=function(n){this.G.logClick(this.element);var q=!0;this.C?q=g.P8(n,this.G):n.preventDefault();q&&(this.X&&this.G.getPresentingPlayerType()===5?this.G.publish("ytoprerollinternstitialnext"):this.X?(s5(this.G.Zu()),this.G.publish("playlistnextbuttonclicked",this.element),this.G.nextVideo(!0)):this.Z?this.G.seekTo(0):(s5(this.G.Zu()),this.G.publish("playlistprevbuttonclicked",this.element),this.G.previousVideo(!0)))}; g.W.Tf=function(){var n=HFd(this);n!==this.Z&&(this.Z=n,IUJ(this))}; g.W.ut=function(){this.W&&(this.W(),this.W=null);fUU(this);g.w.prototype.ut.call(this)};g.y(vLC,g.w);g.W=vLC.prototype;g.W.B4=function(n){this.JH(n.pageX);this.wy(n.pageX+n.deltaX);TPk(this)}; g.W.JH=function(n){this.xl=n-this.SX}; g.W.wy=function(n){n-=this.SX;!isNaN(this.xl)&&this.thumbnails.length>0&&(this.U=n-this.xl,this.thumbnails.length>0&&this.U!==0&&(this.Z=this.N+this.U,n=D6f(this,this.Z),this.Z<=this.X/2&&this.Z>=BPC(this)?(this.api.seekTo(n,!1,void 0,void 0,25),g.wK(this.wJ,"transform","translateX("+(this.Z-this.X/2)+"px)"),Peu(this,n)):this.Z=this.N))}; g.W.Uy=function(){this.RL&&(this.RL.Aw=!0);var n=(0,g.jt)()-this.AE<300;if(Math.abs(this.U)<5&&!n){this.AE=(0,g.jt)();n=this.xl+this.U;var q=this.X/2-n;this.JH(n);this.wy(n+q);TPk(this);this.api.logClick(this.S)}TPk(this)}; g.W.bk=function(){w2(this,this.api.getCurrentTime())}; g.W.play=function(n){this.api.seekTo(D6f(this,this.Z),void 0,void 0,void 0,26);this.api.playVideo();n&&this.api.logClick(this.playButton)}; g.W.onExit=function(n){this.api.seekTo(this.rJ,void 0,void 0,void 0,63);this.api.playVideo();n&&this.api.logClick(this.dismissButton)}; g.W.Tk=function(n,q){this.SX=n;this.X=q;w2(this,this.api.getCurrentTime())}; g.W.enable=function(){this.isEnabled||(this.isEnabled=!0,this.rJ=this.api.getCurrentTime(),Peu(this,this.rJ),g.Yi(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.nm=this.V(this.element,"wheel",this.B4),this.logVisibility(this.isEnabled))}; g.W.disable=function(){this.isEnabled=!1;this.hide();g.Yi(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.nm&&this.AQ(this.nm);this.logVisibility(this.isEnabled)}; g.W.reset=function(){this.disable();this.J=[];this.IL=!1}; g.W.logVisibility=function(n){this.api.logVisibility(this.element,n);this.api.logVisibility(this.S,n);this.api.logVisibility(this.dismissButton,n);this.api.logVisibility(this.playButton,n)}; g.W.ut=function(){for(;this.W.length;){var n=void 0;(n=this.W.pop())==null||n.dispose()}g.w.prototype.ut.call(this)}; g.y(lUd,g.w);g.y(U6j,g.w);g.y(Aea,g.w);g.y(zb,g.w);zb.prototype.ji=function(n){return n==="PLAY_PROGRESS"?this.N:n==="LOAD_PROGRESS"?this.C:n==="LIVE_BUFFER"?this.S:this.Z};Fwk.prototype.update=function(n,q,M,t){M=M===void 0?0:M;this.width=q;this.J=M;this.X=q-M-(t===void 0?0:t);this.position=g.aR(n,M,M+this.X);this.Z=this.position-M;this.W=this.Z/this.X};g.y(ZFa,g.w);g.y(g.CV,g.G2);g.W=g.CV.prototype; g.W.LD=function(){var n=!1,q=this.api.getVideoData();if(!q)return n;this.api.sT("timedMarkerCueRange");oLj(this);for(var M=g.S(q.Yl),t=M.next();!t.done;t=M.next()){t=t.value;var c=void 0,Y=(c=this.V1[t])==null?void 0:c.markerType,G=void 0;c=(G=this.V1[t])==null?void 0:G.markers;if(!c)break;if(Y==="MARKER_TYPE_TIMESTAMPS"){n=g.S(c);for(Y=n.next();!Y.done;Y=n.next()){G=Y.value;Y=new ZFa;var k=void 0;Y.title=((k=G.title)==null?void 0:k.simpleText)||"";Y.timeRangeStartMillis=Number(G.startMillis);Y.X= Number(G.durationMillis);var b=k=void 0;Y.onActiveCommand=(b=(k=G.onActive)==null?void 0:k.innertubeCommand)!=null?b:void 0;reC(this,Y)}x6J(this,this.C);n=this.C;Y=this.Ku;G=[];k=null;for(b=0;bd&&(k.end=d);d=EAj(d,d+O);G.push(d);k=d;Y[d.id]=n[b].onActiveCommand}}this.api.y6(G);a:{n=g.S(c);for(c=n.next();!c.done;c=n.next())if(c.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){n= !1;break a}n=!0}n&&(this.JB=this.V1[t]);n=!0}else if(Y==="MARKER_TYPE_HEATMAP"){t=this.V1[t];N=d=Y=b=k=G=void 0;if(t&&t.markers){c=(Y=(N=t.markersMetadata)==null?void 0:(d=N.heatmapMetadata)==null?void 0:d.minHeightDp)!=null?Y:0;Y=(G=(b=t.markersMetadata)==null?void 0:(k=b.heatmapMetadata)==null?void 0:k.maxHeightDp)!=null?G:60;G=this.X.length;k=null;for(b=0;b=N&&h<=O&&d.push(E)}Y>0&&(this.RL.style.height=Y+"px");N=this.J[b];O=d;E=c;var I=Y,L=b===0;L=L===void 0?!1:L;m6J(N,I);e=O;h=N.W;L=L===void 0?!1:L;var T=1E3/e.length,v=[];v.push({x:0,y:100});for(var B=0;B0&&(k=d[d.length-1])}g.r2(this)}Y=void 0;c=[];if(t=(Y=t.markersDecoration)==null?void 0:Y.timedMarkerDecorations)for(t=g.S(t),Y=t.next();!Y.done;Y=t.next())Y=Y.value,b=k=G=void 0,c.push({visibleTimeRangeStartMillis:(G=Y.visibleTimeRangeStartMillis)!= null?G:-1,visibleTimeRangeEndMillis:(k=Y.visibleTimeRangeEndMillis)!=null?k:-1,decorationTimeMillis:(b=Y.decorationTimeMillis)!=null?b:NaN,label:Y.label?g.b8(Y.label):""});t=c;this.heatMarkersDecorations=t}}q.t5=this.C;g.Yi(this.element,"ytp-timed-markers-enabled",n);return n}; g.W.Tk=function(){g.r2(this);pV(this);x6J(this,this.C);if(this.W){var n=this.TY(this.element).x||0;this.W.Tk(n,this.S)}}; g.W.zjk=function(){var n=this.api.getVideoData();n&&KFd(this,n)}; g.W.onClickCommand=function(n){if(n=g.R(n,PO)){var q=n.key;n.isVisible&&q&&qeR(this,q)}}; g.W.UMx=function(n){this.api.Km("innertubeCommand",this.Ku[n.id])}; g.W.Oq=function(){pV(this);var n=this.api.getCurrentTime();(nthis.clipEnd)&&this.WM()}; g.W.Ym=function(n){if(!n.defaultPrevented){var q=!1;switch(n.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);q=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);q=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);q=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);q=!0;break;case 38:this.api.D("enable_key_press_seek_logging")&&ci(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); this.api.seekBy(5,void 0,void 0,72);q=!0;break;case 40:this.api.D("enable_key_press_seek_logging")&&ci(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),q=!0}q&&n.preventDefault()}}; g.W.OQ=function(n,q){this.updateVideoData(q,n==="newdata")}; g.W.zE=function(){this.OQ("newdata",this.api.getVideoData())}; g.W.updateVideoData=function(n,q){q=q===void 0?!1:q;var M=!!n&&n.ET();M&&(Sn(n)||Ye_(this)?this.ZU=!1:this.ZU=n.allowLiveDvr,g.Yi(this.api.getRootNode(),"ytp-enable-live-buffer",!(n==null||!Sn(n))),KFd(this,n));jvu(this,this.api.kM());if(q){if(M){q=n.clipEnd;this.clipStart=n.clipStart;this.clipEnd=q;Y0(this);for(MJ(this,this.xl,this.Wg);this.J.length>0;)this.J.pop().dispose();this.heatMarkersDecorations=[];this.Fh={};var t;(t=this.W)==null||t.reset();d3(this);g.Yi(this.api.getRootNode(),"ytp-fine-scrubbing-exp", VB(this))}else this.WM();this.F7()}if(n){var c;t=((c=this.iG)==null?void 0:c.type)==="clips";if(c=!n.isLivePlayback){c=this.api.getVideoData();q=g.iB(c);M=zz_(c);var Y;c=q!=null||M!=null&&M.length>0||((Y=c.Bj)==null?void 0:Y.length)>0}if(c&&!t){Y=this.api.getVideoData();t=g.iB(Y);c=!1;if(t==null?0:t.markersMap){c=this.api.getVideoData();var G;c.Yu=((G=t.visibleOnLoad)==null?void 0:G.key)||c.Yu;G=g.S(t.markersMap);for(t=G.next();!t.done;t=G.next())t=t.value,t.key&&t.value&&(this.Fh[t.key]=t.value, t.value.onChapterRepeat&&(c.cBm=t.value.onChapterRepeat));c.Yu!=null&&qeR(this,c.Yu);c=!0}var k;if(((k=Y.Bj)==null?void 0:k.length)>0){k=g.vO.getState().entities;G=g.S(Y.Bj);for(t=G.next();!t.done;t=G.next()){t=t.value;M=void 0;q=(M=QN(k,"macroMarkersListEntity",t))==null?void 0:M.markersList;var b=M=void 0;if(((M=q)==null?void 0:M.markerType)==="MARKER_TYPE_TIMESTAMPS"||((b=q)==null?void 0:b.markerType)==="MARKER_TYPE_HEATMAP")this.V1[t]=q}c=this.LD()||c}!c&&(k=zz_(Y))&&(VHf(this,k),Y.JB=this.X, Jes(this));kAd(this,null);n.V9&&this.J.length===0&&(n=n.V9,k=n.key,n.isVisible&&k&&qeR(this,k))}else aUu(this),oLj(this)}pV(this)}; g.W.iX=function(n){this.N&&!g.C(n.state,32)&&this.api.getPresentingPlayerType()!==3&&this.N.cancel();var q;((q=this.W)==null?0:q.isEnabled)&&g.C(n.state,8)&&this.api.pauseVideo();n=this.api.getPresentingPlayerType()===2||!this.api.kM()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Yi(this.VA,"ytp-hide-scrubber-button",n)}; g.W.QT=function(n){var q=!!this.iG!==!!n,M=this.iG;this.iG=n;kAd(this,M);(n==null?void 0:n.type)!=="clips"&&n||(n?(this.updateValue("clipstarticon",Sgs()),this.updateValue("clipendicon",Sgs()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",el1()),this.updateValue("clipendicon",gjs()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),q&&(this.updateVideoData(this.api.getVideoData(), !0),g.r2(this)),Y0(this));MJ(this,this.xl,this.Wg)}; g.W.vQL=function(){this.api.publish("progressBarHoverStart")}; g.W.QId=function(n,q,M){var t=this.TY(this.element),c=QB(this).X,Y=M?M.getAttribute("data-tooltip"):void 0,G=M?M.getAttribute("data-position"):void 0,k=M?M.getAttribute("data-offset-y"):void 0;k=k?Number(k):0;G&&(n=lU(this.Z,Number(M.getAttribute("data-position")),0)*c+this.TY(this.progressBar).x);this.QS.x=n-t.x;this.QS.y=q-t.y;n=QB(this);M=tk(this,n);q=0;var b;if((b=this.api.getVideoData())==null?0:Sn(b))(b=this.api.getProgressState().seekableEnd)&&M>b&&(M=b,n.position=lU(this.Z,b)*QB(this).X), q=this.Z.W;Ye_(this)&&(q=this.Z.W);b=Y||g.XB(this.ZU?M-this.Z.X:M-q);q=n.position+this.jL;M-=this.api.NP();var d;if((d=this.W)==null||!d.isEnabled)if(this.api.p_()){if(this.X.length>1){d=iq(this,this.QS.x,!0);if(!this.iG)for(t=0;t1)for(t=0;t0)for(d=this.QS.x,t=g.S(this.C),c=t.next();!c.done;c=t.next())c=c.value,G=x5(this, c.timeRangeStartMillis/(this.Z.X*1E3),QB(this)),g.Yi(c.element,"ytp-timed-marker-hover",G<=d&&G+6>=d);t=this.tooltip.scale;d=this.api.D("delhi_modern_web_player")?67:45;k=(isNaN(k)?0:k)-d*t;this.api.D("web_key_moments_markers")?this.JB?(d=O6f(this.C,M*1E3),d=d!=null?this.C[d].title:""):(d=Oi(this.X,M*1E3),d=this.X[d].title):(d=Oi(this.X,M*1E3),d=this.X[d].title);d||(k+=16*t);this.tooltip.scale===.6&&(g.fl(this.api.T())?(k=this.api.Lm().getPlayerSize().height-225,t=this.api.D("delhi_modern_web_player")? 70:110,k=d?k+t:k+t+16):k=d?110:126);t=Oi(this.X,M*1E3);this.IL=dCj(this,M,t)?t:dCj(this,M,t+1)?t+1:-1;g.Yi(this.api.getRootNode(),"ytp-progress-bar-snap",this.IL!==-1&&this.X.length>1);t=!1;c=g.S(this.heatMarkersDecorations);for(G=c.next();!G.done;G=c.next()){G=G.value;var N=M*1E3;N>=G.visibleTimeRangeStartMillis&&N<=G.visibleTimeRangeEndMillis&&(d=G.label,b=g.XB(G.decorationTimeMillis/1E3),this.api.D("web_heat_marker_use_current_time")&&(b=g.XB(tk(this,n))),t=!0)}this.SR!==t&&(this.SR=t,this.api.logVisibility(this.uI, this.SR));g.Yi(this.api.getRootNode(),"ytp-progress-bar-decoration",t);t=160*this.tooltip.scale*2;c=d.length*(this.U?8.55:5.7);c=c<=t?c:t;G=c<160*this.tooltip.scale;t=3;!G&&c/2>n.position&&(t=1);!G&&c/2>this.S-n.position&&(t=2);this.api.T().N&&(k-=10);this.J.length&&this.J[0].ET&&(k-=14*(this.U?2:1),this.rJ||(this.rJ=!0,this.api.logVisibility(this.RL,this.rJ)));var O;if(VB(this)&&(((O=this.W)==null?0:O.isEnabled)||this.Yl>0)){var e;k-=((e=this.W)==null?0:e.isEnabled)?Km(this):this.Yl}O=void 0;VB(this)&& !this.api.D("web_player_hide_fine_scrubbing_edu")&&(O="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa",this.SX||(this.SX=!0,this.api.logVisibility(this.K8,this.SX)));this.tooltip.LA(q,M,b,!!Y,k,d,t,O)}else this.tooltip.LA(q,M,b,!!Y,k);g.MN(this.api.getRootNode(),"ytp-progress-bar-hover");c7d(this)}; g.W.kXb=function(){this.F7();g.ts(this.api.getRootNode(),"ytp-progress-bar-hover");this.rJ&&(this.rJ=!1,this.api.logVisibility(this.RL,this.rJ));this.SX&&(this.SX=!1,this.api.logVisibility(this.K8,this.SX));this.api.D("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.W.cQy=function(n,q){var M=this.TY(this.element);this.Kn=n-M.x;VB(this)&&this.W&&(this.W.IL?w2(this.W,this.api.getCurrentTime()):ufu(this.W),this.W.show(),g.Yi(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.W.isEnabled));this.L9&&(this.L9.dispose(),this.L9=null);this.g4=q;this.NV=this.api.getCurrentTime();this.X.length>1&&this.IL!==-1?this.api.seekTo(this.X[this.IL].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(tk(this,QB(this)),!1,void 0,void 0,7);g.MN(this.element,"ytp-drag");(this.i7= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.W.MGd=function(){if(VB(this)&&this.W){var n=Km(this);this.Yl>=n*.5?(this.W.enable(),w2(this.W,this.api.getCurrentTime()),XGk(this,n)):d3(this)}if(g.C(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var q;if((q=this.W)==null?0:q.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.X.length>1&&this.IL!==-1)this.api.D("html5_enable_progress_bar_slide_seek_logging")&&ci(this,this.NV,this.X[this.IL].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.X[this.IL].startTime/1E3,void 0,void 0,void 0,7);else{n=tk(this,QB(this));this.api.D("html5_enable_progress_bar_slide_seek_logging")&&ci(this,this.NV,n,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(n,void 0,void 0,void 0,7);q=g.S(this.heatMarkersDecorations);for(var M=q.next();!M.done;M=q.next())M=M.value,n*1E3>=M.visibleTimeRangeStartMillis&&n*1E3<=M.visibleTimeRangeEndMillis&& this.api.logClick(this.uI)}g.ts(this.element,"ytp-drag");this.jX&&(this.wJ.src=this.jX);this.i7&&!g.C(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.W.xMX=function(n,q){var M=this,t=QB(this),c=tk(this,t);this.api.Lm().J2||(t.position>this.Kn+2?this.JQ&&(this.wJ.src=this.JQ):t.position1);this.VS(n&&this.G.Lm().getPlayerSize().width>=400);this.G.logVisibility(this.element,this.Zn);var q=1;n&&this.isActive()&&(q=2);if(this.X!==q){this.X=q;n=this.G.D("delhi_modern_web_player_icons");switch(q){case 1:this.updateValue("icon",n?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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"}}]}:{j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",ZH:!0,K:{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", n?{j:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",K:{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.NFk())}g.Yi(this.element,"ytp-remote-button-active",this.isActive())}}; NJ.prototype.W=function(){if(this.G.getOption("remote","quickCast"))this.G.setOption("remote","quickCast",!0);else{var n=this.xi,q=this.element;if(n.Ol())n.lG();else{n.initialize();a:{var M=g.S(n.J1.items);for(var t=M.next();!t.done;t=M.next())if(t=t.value,t.priority===1){M=t;break a}M=null}M&&(M.open(),n.Hn(q));n.Hn(q)}}this.G.logClick(this.element)};g.y(O2,g.w);O2.prototype.X=function(n){var q=this.G.T(),M=400;this.G.D("web_player_small_hbp_settings_menu")&&q.C?M=300:q.N&&(M=200);n=this.W&&n.width>=M;this.VS(n);this.G.logVisibility(this.element,n)}; O2.prototype.Z=function(){if(this.xi.Zn)this.xi.lG();else{var n=g.TK(this.G.zk());n&&!n.loaded&&(n.X7("tracklist",{includeAsr:!0}).length||n.load());this.G.logClick(this.element);this.xi.Hn(this.element)}}; O2.prototype.updateBadge=function(){var n=this.G.isHdr(),q=this.G.getPresentingPlayerType(),M=q!==2&&q!==3,t=g.nI(this.G),c=M&&!!g.pi(this.G.zk());q=c&&t.displayMode===1;t=c&&t.displayMode===2;M=(c=q||t)||!M?null:this.G.getPlaybackQuality();g.Yi(this.element,"ytp-hdr-quality-badge",n);g.Yi(this.element,"ytp-hd-quality-badge",!n&&(M==="hd1080"||M==="hd1440"));g.Yi(this.element,"ytp-4k-quality-badge",!n&&M==="hd2160");g.Yi(this.element,"ytp-5k-quality-badge",!n&&M==="hd2880");g.Yi(this.element,"ytp-8k-quality-badge", !n&&M==="highres");g.Yi(this.element,"ytp-3d-badge-grey",!n&&c&&q);g.Yi(this.element,"ytp-3d-badge",!n&&c&&t)};g.y(g3,H8);g3.prototype.isLoaded=function(){var n=g.AX(this.G.zk());return n!==void 0&&n.loaded}; g3.prototype.Cm=function(){g.AX(this.G.zk())!==void 0&&this.G.getPresentingPlayerType()!==3?this.X||(this.xi.Qa(this),this.X=!0):this.X&&(this.xi.rO(this),this.X=!1);LI(this,this.isLoaded())}; g3.prototype.onSelect=function(n){this.isLoaded();n?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.publish("annotationvisibility",n)}; g3.prototype.ut=function(){this.X&&this.xi.rO(this);H8.prototype.ut.call(this)};g.y(eI,g.AH);g.W=eI.prototype;g.W.Cm=function(){var n=this.G.getAvailableAudioTracks();n.length>1?(this.gP(g.Wn(n,this.Dt)),this.tracks=g.Qs(n,this.Dt,this),this.countLabel.kQ(n.length?" ("+n.length+")":""),this.publish("size-change"),this.xe(this.Dt(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)}; g.W.Zi=function(n){g.AH.prototype.Zi.call(this,n);this.G.setAudioTrack(this.tracks[n]);this.xi.X3()}; g.W.Dt=function(n){return n.toString()}; g.W.X1=function(n){this.G.D("html5_enable_new_audio_settings_menu")?this.X&&(n?this.X.Qa(this):this.X.rO(this)):g.AH.prototype.X1.call(this,n)}; g.W.onClick=function(){this.G.logClick(this.element)};g.y(Ipj,g.O3);g.W=Ipj.prototype;g.W.n1=function(){this.G.n1()}; g.W.open=function(){this.Ln.fL()>0&&g.vp(this.xi,this.Ln)}; g.W.BA=function(){this.Ln.fL()>0&&this.G.getPresentingPlayerType()!==2&&this.G.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.W.Ym=function(n){n.defaultPrevented||(this.open(),n.preventDefault())}; g.W.Qa=function(n){this.Ln.Qa(n)}; g.W.rO=function(n){this.Ln.rO(n)};g.y(E2,H8); E2.prototype.BA=function(){var n=this.G.getPresentingPlayerType();if(n!==2&&n!==3&&g.MW(this.G))this.X||(this.xi.Qa(this),this.X=!0,this.W.push(this.V(this.G,"videodatachange",this.BA)),this.W.push(this.V(this.G,"videoplayerreset",this.BA)),this.W.push(this.V(this.G,"onPlaylistUpdate",this.BA)),this.W.push(this.V(this.G,"autonavchange",this.Z)),n=this.G.getVideoData(),this.Z(n.autonavState),this.G.logVisibility(this.element,this.X));else if(this.X){this.xi.rO(this);this.X=!1;n=g.S(this.W);for(var q= n.next();!q.done;q=n.next())this.AQ(q.value)}}; E2.prototype.Z=function(n){LI(this,n!==1)}; E2.prototype.onSelect=function(n){this.G.Jh(n?2:1);this.X&&(this.G.logVisibility(this.element,this.X),this.G.logClick(this.element))}; E2.prototype.ut=function(){this.X&&this.xi.rO(this);H8.prototype.ut.call(this)};g.y(fp_,g.O3);fp_.prototype.onClick=function(n){n.preventDefault();var q,M;(q=g.mZ(this.G))==null||(M=q.Bk())==null||M.lG();var t,c;(t=g.mZ(this.G))==null||(c=t.Wo())==null||c.Hn(n.target)};g.y(HRd,g.AH);g.W=HRd.prototype; g.W.BA=function(){var n=this.G.getPresentingPlayerType();if(n!==2&&n!==3){this.RL=this.G.O2();var q=this.G.getAvailableQualityLevels();if(this.X){this.W={};n=g.U9(this.G,"getAvailableQualityData",[]);n=g.S(n);for(var M=n.next();!M.done;M=n.next())M=M.value,this.W[M.qualityLabel]=M;n=Object.keys(this.W);q[q.length-1]==="auto"&&n.push("auto");this.wJ=new Set(q)}else if(this.J){M=g.U9(this.G,"getAvailableQualityData",[]);n=[];M=g.S(M);for(var t=M.next();!t.done;t=M.next())t=t.value,this.C[t.quality]= t,t.quality&&n.push(t.quality);q[q.length-1]==="auto"&&n.push("auto")}else n=q;g.uK_(this.G)&&this.G.Ur()&&n.unshift("missing-qualities");q=this.G.app.tE();M=q.getVideoData();if(!M.W||!M.W.video||M.W.video.qualityOrdinal<1080||M.Ni)q=!1;else{t=/^qsa/.test(M.clientPlaybackNonce);var c="r";M.W.id.indexOf(";")>=0&&(t=/^[a-p]/.test(M.clientPlaybackNonce),c="x");t?(q.Xy("iqss",{trigger:c},!0),q=!0):q=!1}q&&n.unshift("inline-survey");this.gP(n);q=this.G.getVideoData().cotn?!0:!1;M=this.xl.nT();M=!g.fl(this.G.T())|| !(q===void 0?0:q)||!(M===void 0||M);q=this.Ln;M=M===void 0?!1:M;q.M3&&g.Yi(q.JE("ytp-panel-footer"),"ytp-panel-hide-footer",M===void 0?!1:M);if(n.length){this.M5();this.enable(!0);return}}this.enable(!1)}; g.W.M5=function(){if(this.X){var n=this.G.getPreferredQuality();this.wJ.has(n)&&(this.S=this.G.getPlaybackQuality(),this.N=this.G.getPlaybackQualityLabel(),n==="auto"?(this.xe(n),this.kQ(this.JP(n))):this.xe(this.N))}else n=this.G.getPreferredQuality(),this.options[n]&&(this.S=this.G.getPlaybackQuality(),this.xe(n),n==="auto"&&this.kQ(this.JP(n)))}; g.W.Zi=function(n){if(n!=="missing-qualities"){g.AH.prototype.Zi.call(this,n);var q=this.X?this.W[n]:this.C[n];var M=q==null?void 0:q.quality,t=q==null?void 0:q.formatId,c=q==null?void 0:q.paygatedQualityDetails;q=c==null?void 0:c.endpoint;if(c){var Y;c=(Y=this.options[n])==null?void 0:Y.element;this.G.logClick(c)}if(this.X){var G,k;if((G=g.R(q,g.lxs))==null?0:(k=G.popup)==null?0:k.notificationActionRenderer)this.G.Km("innertubeCommand",q);else if(q){this.G.Km("innertubeCommand",q);return}t?this.G.setPlaybackQuality(M, t):this.G.setPlaybackQuality(M)}else{if(this.J){var b,d;if((b=g.R(q,g.lxs))==null?0:(d=b.popup)==null?0:d.notificationActionRenderer)this.G.Km("innertubeCommand",q);else if(q){this.G.Km("innertubeCommand",q);return}}this.G.setPlaybackQuality(n)}this.xi.lG();this.BA()}}; g.W.open=function(){for(var n=g.S(Object.values(this.options)),q=n.next();!q.done;q=n.next()){q=q.value;var M=void 0;this.G.hasVe((M=q)==null?void 0:M.element)&&(M=void 0,this.G.logVisibility((M=q)==null?void 0:M.element,!0))}g.AH.prototype.open.call(this);this.G.logClick(this.element)}; g.W.GT=function(n,q,M){var t=this;if(n==="missing-qualities")return new g.O3({j:"a",aL:["ytp-menuitem"],K:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.T().U,tabindex:"0",role:"menuitemradio"},L:[{j:"div",aL:["ytp-menuitem-label"],Wb:"{{label}}"}]},q,this.JP(n));if(n!=="inline-survey"){var c,Y=(c=this.X?this.W[n]:this.C[n])==null?void 0:c.paygatedQualityDetails;c=Y==null?void 0:Y.veType;Y=Y==null?void 0:Y.trackingParams;q=g.AH.prototype.GT.call(this,n,q,M);Y?(this.G.createServerVe(q.element, this,!0),this.G.setTrackingParams(q.element,Y)):c&&this.G.createClientVe(q.element,this,c,!0);return q}n=[{j:"span",Wb:"\u00bfSe ve bien?"}];M=g.S([!0,!1]);Y=M.next();for(c={};!Y.done;c={aP:void 0},Y=M.next())c.aP=Y.value,Y=new g.w({j:"span",Y:"ytp-menuitem-inline-survey-response",L:[c.aP?jEa():hl_()],K:{tabindex:"0",role:"button"}}),Y.listen("click",function(G){return function(){var k=t.G.app.tE();k.Xy("iqsr",{tu:G.aP});k.getVideoData().Ni=!0;t.xi.lG();t.BA()}}(c)),n.push(Y); return new g.O3({j:"div",Y:"ytp-menuitem",K:{"aria-disabled":"true"},L:[{j:"div",aL:["ytp-menuitem-label"],L:n}]},q)}; g.W.JP=function(n,q){q=q===void 0?!1:q;if(n==="missing-qualities")return{j:"div",Wb:"\u00bfFaltan opciones?"};if(n==="inline-survey")return"";var M=this.J||this.X?[vUs(this,n,q,!1)]:[PRU(this,n)];var t=this.G.getPreferredQuality();q||t!=="auto"||n!=="auto"||(M.push(" "),this.X?M.push(vUs(this,this.N,q,!0,["ytp-menu-label-secondary"])):this.J?M.push(vUs(this,this.S,q,!0,["ytp-menu-label-secondary"])):M.push(PRU(this,this.S,["ytp-menu-label-secondary"])));return{j:"div",L:M}};g.y(hk,mh);hk.prototype.Z=function(){mh.prototype.Z.call(this);this.U&&Tsa(this)}; hk.prototype.jX=function(){this.xl()}; hk.prototype.wJ=function(){this.G.setPlaybackRate(this.X,!0)}; hk.prototype.C=function(n){mh.prototype.C.call(this,n);this.xl();Tsa(this);n.preventDefault()};g.y(Wi,g.w);g.W=Wi.prototype;g.W.init=function(){this.f6(this.X);this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.Z)}; g.W.Tv=function(n){if(!n.defaultPrevented){switch(n.keyCode){case 37:case 40:var q=-this.N;break;case 39:case 38:q=this.N;break;default:return}this.f6(this.X+q);n.preventDefault()}}; g.W.LI=function(n){var q=this.X;q+=(n.deltaX||-n.deltaY)<0?-this.U:this.U;this.f6(q);n.preventDefault()}; g.W.Ef=function(n){n=(n-g.p7(this.J).x)/this.xl*this.range+this.W;this.f6(n)}; g.W.f6=function(n,q){q=q===void 0?"":q;n=g.aR(n,this.W,this.Z);q===""&&(q=n.toString());this.updateValue("valuenow",n);this.updateValue("valuetext",q);this.RL.style.left=(n-this.W)/this.range*(this.xl-this.IL)+"px";this.X=n}; g.W.focus=function(){this.nm.focus()};g.y(yi,Wi);yi.prototype.wJ=function(){this.G.setPlaybackRate(this.X,!0)}; yi.prototype.f6=function(n){Wi.prototype.f6.call(this,n,UCa(this,n).toString());this.S&&(lps(this),this.jX())}; yi.prototype.updateValues=function(){var n=this.G.getPlaybackRate();UCa(this,this.X)!==n&&(this.f6(n),lps(this))};g.y(ukm,g.G2);ukm.prototype.focus=function(){this.X.focus()};g.y(Bsa,fA);g.y(A7f,g.AH);g.W=A7f.prototype;g.W.JP=function(n){return n==="1"?"Normal":n.toLocaleString()}; g.W.Cm=function(){var n,q=(n=this.G.getVideoData())==null?void 0:n.oI();n=this.G.getPresentingPlayerType(q);this.enable(n!==2&&n!==3);FFR(this)}; g.W.gP=function(n){g.AH.prototype.gP.call(this,n);this.N&&this.N.W.focus()}; g.W.X1=function(n){g.AH.prototype.X1.call(this,n);n?(this.RL=this.V(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),FFR(this),mCR(this,this.G.getPlaybackRate())):(this.AQ(this.RL),this.RL=null)}; g.W.onPlaybackRateChange=function(n){var q=this.G.getPlaybackRate();!this.J&&this.xl.includes(q)||$C_(this,q);mCR(this,n)}; g.W.GT=function(n,q,M){return n===this.X&&apf(this.G)?g.AH.prototype.GT.call(this,n,q,M,{j:"div",Y:"ytp-speed-slider-menu-footer",L:[this.N]}):n===this.W&&DCm(this.G,this.wJ)?ZRf(this,n,q,M):g.AH.prototype.GT.call(this,n,q,M)}; g.W.Zi=function(n){g.AH.prototype.Zi.call(this,n);n===this.W?(this.G.logClick(this.C.element),this.G.Km("innertubeCommand",this.wJ)):n===this.X?this.G.setPlaybackRate(this.S,!0):this.G.setPlaybackRate(Number(n),!0);apf(this.G)&&n===this.X||this.xi.X3()}; g.W.Ch=function(n){var q=n===this.X;this.J=!1;q&&s2(this.G)&&!apf(this.G)?(n=new Bsa(this.G),g.vp(this.xi,n)):g.AH.prototype.Ch.call(this,n)};g.y(oU1,g.AH);g.W=oU1.prototype;g.W.xe=function(n){g.AH.prototype.xe.call(this,n)}; g.W.xU=function(n){return n.option.toString()}; g.W.getOption=function(n){return this.settings[n]}; g.W.JP=function(n){return this.getOption(n).text||""}; g.W.Zi=function(n){g.AH.prototype.Zi.call(this,n);this.publish("settingChange",this.setting,this.settings[n].option)};g.y(jI,g.Hp);jI.prototype.l$=function(n){for(var q=g.S(Object.keys(n)),M=q.next();!M.done;M=q.next()){var t=M.value;if(M=this.Sl[t]){var c=n[t].toString();t=!!n[t+"Override"];M.options[c]&&(M.xe(c),M.W.element.setAttribute("aria-checked",String(!t)),M.X.element.setAttribute("aria-checked",String(t)))}}}; jI.prototype.H_=function(n,q){this.publish("settingChange",n,q)};g.y(SI,g.AH);SI.prototype.X=function(n){return n.languageCode}; SI.prototype.JP=function(n){return this.languages[n].languageName||""}; SI.prototype.Zi=function(n){this.publish("select",n);this.G.logClick(this.element);g.Ty(this.xi)};g.y(J7R,g.AH);g.W=J7R.prototype;g.W.Ek=function(n){return g.g0(n)?"__off__":n.displayName}; g.W.JP=function(n){return n==="__off__"?"Desactivados":n==="__translate__"?"Traducci\u00f3n autom\u00e1tica":n==="__contribute__"?"Agregar subt\u00edtulos":n==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(n==="__off__"?{}:this.tracks[n]).displayName}; g.W.Zi=function(n){if(n==="__translate__")this.X.open();else if(n==="__contribute__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var q=g.gX(this.G.T(),this.G.getVideoData());g.aM(q)}else if(n==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var M=VXs(this);I_(this,M);g.AH.prototype.Zi.call(this,this.Ek(M));var t,c;M=(q=this.G.getVideoData().getPlayerResponse())==null?void 0:(t=q.captions)==null?void 0:(c=t.playerCaptionsTracklistRenderer)== null?void 0:c.openTranscriptCommand;this.G.Km("innertubeCommand",M);this.xi.X3();this.W&&this.G.logClick(this.W)}else{if(n==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();q=VXs(this);I_(this,q);g.AH.prototype.Zi.call(this,this.Ek(q));var Y,G;q=(M=this.G.getVideoData().getPlayerResponse())==null?void 0:(Y=M.captions)==null?void 0:(G=Y.playerCaptionsTracklistRenderer)==null?void 0:G.openTranscriptCommand;this.G.Km("innertubeCommand",q)}else this.G.logClick(this.element), I_(this,n==="__off__"?{}:this.tracks[n]),g.AH.prototype.Zi.call(this,n);this.xi.X3()}}; g.W.Cm=function(){var n=this.G.getOptions();n=n&&n.indexOf("captions")!==-1;var q=this.G.getVideoData(),M=q&&q.ql,t,c=!((t=this.G.getVideoData())==null||!g.s9(t));t={};if(n||M){var Y;if(n){var G=this.G.getOption("captions","track");t=this.G.getOption("captions","tracklist",{includeAsr:!0});var k=c?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.Qs(t,this.Ek,this);c=g.Wn(t,this.Ek);var b,d;VXs(this)&&((Y=q.getPlayerResponse())==null?0:(b=Y.captions)==null?0:(d=b.playerCaptionsTracklistRenderer)== null?0:d.openTranscriptCommand)&&c.push("__correction__");if(k.length&&!g.g0(G)){if((Y=G.translationLanguage)&&Y.languageName){var N=Y.languageName;Y=k.findIndex(function(O){return O.languageName===N}); Td1(k,Y)}wGs(this.X,k);c.push("__translate__")}Y=this.Ek(G)}else this.tracks={},c=[],Y="__off__";c.unshift("__off__");this.tracks.__off__={};M&&c.unshift("__contribute__");this.tracks[Y]||(this.tracks[Y]=G,c.push(Y));this.gP(c);this.xe(Y);G&&G.translationLanguage?this.X.xe(this.X.X(G.translationLanguage)):tqa(this.X);n&&this.J.l$(this.G.getSubtitlesUserSettings());this.countLabel.kQ(t&&t.length?" ("+t.length+")":"");this.publish("size-change");this.G.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.W.Uf=function(n){var q=this.G.getOption("captions","track");q=g.hf(q);q.translationLanguage=this.X.languages[n];I_(this,q)}; g.W.H_=function(n,q){if(n==="reset")this.G.resetSubtitlesUserSettings();else{var M={};M[n]=q;this.G.updateSubtitlesUserSettings(M)}zVR(this,!0);this.S.start();this.J.l$(this.G.getSubtitlesUserSettings())}; g.W.YTX=function(n){n||g.CO(this.S)}; g.W.ut=function(){g.CO(this.S);g.AH.prototype.ut.call(this)}; g.W.open=function(){g.AH.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.G.createClientVe(this.W,this,167341),this.G.logVisibility(this.W,!0))};g.y(CR_,g.Pp);g.W=CR_.prototype; g.W.initialize=function(){if(!this.isInitialized){var n=this.G.T();this.isInitialized=!0;try{this.Vb=new HRd(this.G,this)}catch(M){g.PJ(Error("QualityMenuItem creation failed"))}g.Z(this,this.Vb);var q=new J7R(this.G,this);g.Z(this,q);n.Z||(q=new g3(this.G,this),g.Z(this,q));n.enableSpeedOptions&&(q=new A7f(this.G,this),g.Z(this,q));(g.t8(n)||n.C)&&(n.W||n.AE)&&(q=new fp_(this.G,this),g.Z(this,q));n.rZ&&!n.D("web_player_move_autonav_toggle")&&(q=new E2(this.G,this),g.Z(this,q));n.D("html5_enable_new_audio_settings_menu")? (this.Wh=new Ipj(this.G,this),g.Z(this,this.Wh)):(n=new eI(this.G,this),g.Z(this,n));this.G.publish("settingsMenuInitialized");Ses(this.settingsButton,this.J1.fL())}}; g.W.Qa=function(n){this.initialize();this.J1.Qa(n);Ses(this.settingsButton,this.J1.fL())}; g.W.rO=function(n){this.Zn&&this.J1.fL()<=1&&this.hide();this.J1.rO(n);Ses(this.settingsButton,this.J1.fL())}; g.W.Hn=function(n){this.initialize();this.J1.fL()>0&&g.Pp.prototype.Hn.call(this,n)}; g.W.lG=function(){this.CS?this.CS=!1:g.Pp.prototype.lG.call(this)}; g.W.show=function(){g.Pp.prototype.show.call(this);g.MN(this.G.getRootNode(),"ytp-settings-shown")}; g.W.hide=function(){g.Pp.prototype.hide.call(this);g.ts(this.G.getRootNode(),"ytp-settings-shown")}; g.W.Lu=function(n){this.G.logVisibility(this.element,n);this.G.publish("settingsMenuVisibilityChanged",n)};g.y(Qv_,g.w);g.W=Qv_.prototype;g.W.onClick=function(){if(fm(this)&&(this.G.toggleSubtitles(),this.G.logClick(this.element),!this.isEnabled())){var n=!1,q=g.D1().OT(65);g.fl(this.G.T())&&q!=null&&(n=!q);n&&this.G.T().D("web_player_nitrate_promo_tooltip")&&this.G.publish("showpromotooltip",this.element)}}; g.W.b8s=function(n){var q,M;(q=g.mZ(this.G))==null||(M=q.Bk())==null||M.Hn(n)}; g.W.isEnabled=function(){var n=this.G.getOption("captions","track");return!(!n||!n.displayName)}; g.W.Cm=function(){var n=fm(this),q=300;this.G.T().N&&(q=480);this.G.D("delhi_modern_web_player_icons")&&this.updateValue("icon",xCf(this));if(this.G.T().C){this.updateValue("title",g.z1(this.G,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.z1(this.G,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var M=n}else{if(n)(M=this.JE("ytp-subtitles-button-icon"))==null||M.setAttribute("fill-opacity","1"),this.G.T().D("player_tooltip_data_title_killswitch")?this.updateValue("title", g.z1(this.G,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.z1(this.G,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.G.D("delhi_modern_web_player_icons")){var t;(t=this.JE("ytp-subtitles-button-icon"))==null||t.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var c;(c=this.JE("ytp-subtitles-button-icon"))==null||c.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"})}M=!0}this.tooltip.Ic();M=M&&this.G.Lm().getPlayerSize().width>=q;this.VS(M);this.G.logVisibility(this.element,M);n?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.W.xQ=function(n){g.w.prototype.xQ.call(this,n)};g.y(g.Hi,g.w);g.W=g.Hi.prototype;g.W.canShowCountdown=function(){return!Pi(this)&&!Lm(this)}; g.W.Oq=function(){var n=this.api.Lm().getPlayerSize().width,q=this.U;this.api.T().N&&(q=400);q=n>=q&&(!Lm(this)||!g.C(this.api.getPlayerStateObject(),64));this.VS(q);g.Yi(this.element,"ytp-time-display-allow-autohide",q&&n<400);n=this.api.getProgressState();if(q){var M=this.api.getPresentingPlayerType();q=this.api.getCurrentTime(M,!1);this.W&&(q-=n.airingStart);Pi(this)&&(q-=this.iG.startTimeMs/1E3);this.canShowCountdown()&&this.Z&&(q-=this.api.getDuration(M,!1));var t=g.XB(q);this.J!==t&&(this.updateValue("currenttime", t),this.J=t);M=Pi(this)?(this.iG.endTimeMs-this.iG.startTimeMs)/1E3:this.api.getDuration(M,!1);t=g.XB(M);this.S!==t&&(this.updateValue("duration",t),this.S=t,q&&(q=g.Yo("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.XB(q,!0),DURATION:g.XB(M,!0)}),this.updateValue("timeDisplayAriaLabel",q)))}pGs(this,n.isAtLiveHead);n_1(this,this.api.getLoopRange())}; g.W.onLoopRangeChange=function(n){var q=this.iG!==n;this.iG=n;q&&(this.Oq(),qB_(this))}; g.W.XAg=function(){this.api.setLoopRange(null)}; g.W.CGs=function(){this.Z=!this.Z;this.Oq()}; g.W.onVideoDataChange=function(n,q,M){this.updateVideoData((this.api.T().D("enable_topsoil_wta_for_halftime")||this.api.T().D("enable_topsoil_wta_for_halftime_live_infra"))&&M===2?this.api.getVideoData(1):q);this.Oq();qB_(this)}; g.W.updateVideoData=function(n){this.gj=n.isLivePlayback&&!n.Ux;this.W=Sn(n);this.isPremiere=n.isPremiere;g.Yi(this.element,"ytp-live",Lm(this));this.api.D("delhi_modern_web_player")&&this.JE("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.W.onClick=function(n){n.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.W.ut=function(){this.X&&this.X();g.w.prototype.ut.call(this)};g.y(iG1,g.w);g.W=iG1.prototype;g.W.ER=function(){var n=this.api.iS();this.Z!==n&&(this.Z=n,MD1(this,this.api.getVolume(),this.api.isMuted()))}; g.W.X0=function(n){this.VS(n.width>=350)}; g.W.vy=function(n){if(!n.defaultPrevented){var q=n.keyCode,M=null;q===37?M=this.volume-5:q===39?M=this.volume+5:q===36?M=0:q===35&&(M=100);M!==null&&(M=g.aR(M,0,100),M===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(M)),n.preventDefault())}}; g.W.By=function(n){var q=n.deltaX||-n.deltaY;n.deltaMode?this.api.setVolume(this.volume+(q<0?-10:10)):this.api.setVolume(this.volume+g.aR(q/10,-10,10));n.preventDefault()}; g.W.hjm=function(){vi(this,this.X,!0,this.W,this.api.Yb());this.U=this.volume;this.api.isMuted()&&this.api.unMute()}; g.W.bV=function(n){var q=this.Z?78:52,M=this.Z?18:12;n-=g.p7(this.N).x;q=g.aR((n-M/2)/(q-M),0,1);q=this.api.D("web_player_non_linear_volume_controls")?q<=.25?q/.25*.1:.1+(q-.25)/.75*.9:q;this.api.setVolume(q*100)}; g.W.VGy=function(){vi(this,this.X,!1,this.W,this.api.Yb());this.volume===0&&(this.api.mute(),this.api.setVolume(this.U))}; g.W.onVolumeChange=function(n){MD1(this,n.volume,n.muted)}; g.W.KK=function(){vi(this,this.X,this.isDragging,this.W,this.api.Yb())}; g.W.ut=function(){g.w.prototype.ut.call(this);g.ts(this.C,"ytp-volume-slider-active")};g.y(Tk,g.w); Tk.prototype.onVideoDataChange=function(){var n=this.api.T();this.Tk();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).wZ;this.VS(this.visible);this.api.logVisibility(this.element,this.visible&&this.B);if(this.visible){var q=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",q)}n.Z&&(this.X&&(this.AQ(this.X),this.X=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.MN(this.element,"no-link")); q=this.api.T();n=this.api.getVideoData();var M="";q.Z||(q=g.sR(q),q.indexOf("www.")===0&&(q=q.substring(4)),M=g.Im(n)?"Mirar en YouTube Music":q==="youtube.com"?"Mirar en YouTube":g.Yo("Mirar en $WEBSITE",{WEBSITE:q}));this.api.D("player_tooltip_data_title_killswitch")?this.updateValue("title",M):this.updateValue("tooltip-title",M)}; Tk.prototype.onClick=function(n){this.api.D("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var q=this.api.T(),M=this.api.getVideoUrl(!g.j3(n),!1,!0,!0);if(g.t8(q)){var t={};g.t8(q)&&g.U9(this.api,"addEmbedsConversionTrackingParams",[t]);M=g.hC(M,t)}g.v8(M,this.api,n);this.api.D("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Tk.prototype.Tk=function(){var n={j:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},L:[{j:"path",ZH:!0,Y:"ytp-svg-fill",K:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, q=28666,M=this.api.getVideoData();this.api.isEmbedsShortsMode()?n={j:"svg",K:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},L:[{j:"path",K:{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.Im(M)&&(n={j:"svg",K:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},L:[{j:"path",K:{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"}},{j:"path",K:{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"}},{j:"path",K:{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"}},{j:"path",K:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{j:"path",K:{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"}},{j:"path",K:{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"}},{j:"path",K:{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"}},{j:"path",K:{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"}},{j:"path",K:{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"}},{j:"path",K:{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"}},{j:"path",K:{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"}},{j:"path",K:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},q=216163);g.Im(M)?g.MN(this.element,"ytp-youtube-music-button"):g.ts(this.element,"ytp-youtube-music-button");n.K=Object.assign({},n.K,{"aria-hidden":"true"});this.updateValue("logoSvg",n);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,q,!0)}; Tk.prototype.xQ=function(n){g.w.prototype.xQ.call(this,n);this.api.logVisibility(this.element,this.visible&&n)};g.y(YBR,g.f8);g.W=YBR.prototype;g.W.onProgress=function(){if(this.G.D("web_player_max_seekable_on_ended")||!g.C(this.G.getPlayerStateObject(),2))Fg(this.bI),this.progressBar.Oq(),this.eQ.Oq()}; g.W.d3=function(){this.r$();if(Fg(this.bI))this.progressBar.F7();else this.onProgress()}; g.W.kF=function(){this.onProgress();this.U.start()}; g.W.r$=function(){var n;if(n=!this.G.T().W){n=this.progressBar;var q=2*g.IW()*n.S,M=n.Z;n=(M.X-M.W)*1E3/n.api.getPlaybackRate()/q<300}n=n&&this.G.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;q=!n;Fg(this.bI)&&(n=q=!1);q?this.wJ||(this.wJ=this.V(this.G,"progresssync",this.onProgress)):this.wJ&&(this.AQ(this.wJ),this.wJ=null);n?this.U.isActive()||this.U.start():this.U.stop()}; g.W.Tk=function(){var n=this.G.iS(),q=this.G.Lm().getPlayerSize(),M=this.G.Lm().J2,t=Kgf(this),c=k9_(this),Y=Math.max(q.width-t*2,100);if(this.Ux!==q.width||this.eX!==n||this.G.D("web_player_rtr_ctrls")&&this.o7!==M)this.Ux=q.width,this.eX=n,this.o7=M,this.W.element.style.width=c+"px",this.W.element.style.left=t+"px",g.y7_(this.progressBar,t,c,n),this.G.eG().R4=c;M=this.J;Y=Math.min(570*(n?1.5:1),Y);n=Math.min(413*(n?1.5:1),Math.round((q.height-bGj(this))*.82));M.maxWidth=Y;M.maxHeight=n;M.qh();this.r$(); this.Wg&&tHm(this.hE,q.height)}; g.W.onVideoDataChange=function(){var n=this.G.getVideoData();this.rJ.style.background=n.wZ?n.H$:"";this.RL&&d6d(this.RL,n.showSeekingControls);this.xl&&d6d(this.xl,n.showSeekingControls)}; g.W.ji=function(){return this.W.element};g.y(dxR,Iw);g.W=dxR.prototype;g.W.xs=function(n){n.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.Km("innertubeCommand",this.onClickCommand),this.r6())}; g.W.r6=function(){this.enabled=!1;this.U.hide()}; g.W.onVideoDataChange=function(n,q){n==="dataloaded"&&NRs(this);n=[];var M,t,c,Y;if(q=(Y=g.R((M=q.getWatchNextResponse())==null?void 0:(t=M.playerOverlays)==null?void 0:(c=t.playerOverlayRenderer)==null?void 0:c.suggestedActionsRenderer,GfS))==null?void 0:Y.suggestedActions)for(M=g.S(q),t=M.next();!t.done;t=M.next())(t=g.R(t.value,Kdw))&&g.R(t.trigger,YwD)&&n.push(t);if(n.length!==0){M=[];n=g.S(n);for(t=n.next();!t.done;t=n.next())if(t=t.value,c=g.R(t.trigger,YwD))Y=(Y=t.title)?g.b8(Y):"View Chapters", q=c.timeRangeStartMillis,c=c.timeRangeEndMillis,q!=null&&c!=null&&t.tapCommand&&(M.push(new g.Ji(q,c,{priority:9,namespace:"suggested_action_button_visible",id:Y})),this.suggestedActions[Y]=t.tapCommand);this.G.y6(M)}}; g.W.Qs=function(){return this.enabled}; g.W.Lu=function(){this.enabled?this.rJ.start():jJ(this);this.xb()}; g.W.ut=function(){NRs(this);Iw.prototype.ut.call(this)};var L6={},uq=(L6.CHANNEL_NAME="ytp-title-channel-name",L6.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",L6.LINK="ytp-title-link",L6.SESSIONLINK="yt-uix-sessionlink",L6.SUBTEXT="ytp-title-subtext",L6.TEXT="ytp-title-text",L6.TITLE="ytp-title",L6);g.y(Bi,g.w);Bi.prototype.onClick=function(n){this.api.logClick(this.element);var q=this.api.T(),M=this.api.getVideoUrl(!g.j3(n),!1,!0);g.t8(q)&&(q={},g.U9(this.api,"addEmbedsConversionTrackingParams",[q]),M=g.hC(M,q));g.v8(M,this.api,n)}; Bi.prototype.Cm=function(){var n=this.api.getVideoData(),q=this.api.T();this.updateValue("title",n.title);var M={j:"a",Y:uq.CHANNEL_NAME,K:{href:"{{channelLink}}",target:"_blank"},Wb:"{{channelName}}"};this.api.T().Z&&(M={j:"span",Y:uq.CHANNEL_NAME,Wb:"{{channelName}}",K:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",M);OGf(this);this.api.getPresentingPlayerType()===2&&(M=this.api.getVideoData(),M.videoId&&M.isListed&&M.author&&M.QS&&M.profilePicture?(this.updateValue("channelLink", M.QS),this.updateValue("channelName",M.author),this.updateValue("channelTitleFocusable","0")):OGf(this));M=q.externalFullscreen||!this.api.isFullscreen()&&q.Xw;g.Yi(this.link,uq.FULLERSCREEN_LINK,M);q.RL||!n.videoId||M||n.wZ||q.Z?this.X&&(this.updateValue("url",null),this.AQ(this.X),this.X=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.X||(this.X=this.V(this.link,"click",this.onClick)));q.Z&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.t8(q)?n.expandedTitle: n.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.y(g.D0,g.w);g.W=g.D0.prototype;g.W.setEnabled=function(n){if(this.type!=null)if(n)switch(this.type){case 3:case 2:Ak(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.C=n}; g.W.LA=function(n,q,M,t,c,Y,G,k){if(!this.jX||this.env.N){this.type===3&&this.F7();this.type!==1&&(g.n4(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.C&&this.fade.show(),this.W&&this.W.dispose(),(this.W=this.api.p_())&&this.W.subscribe("l",this.k0,this));if(k){var b=g.Mv(this.bg).height||141;this.IL.style.bottom=b+2+"px"}else this.IL.style.display="none";this.env.D("delhi_modern_web_player")?(this.update({pillTimeStamp:M,pillTitle:Y!=null?Y:"",eduText:k!=null?k:""}),g.MN(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:M,title:Y!=null?Y:"",eduText:k!=null?k:""}),g.Yi(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!Y));this.api.isInline()&&g.MN(this.bottomText,"ytp-modern-tooltip-text");g.Yi(this.element,"ytp-text-detail",!!t);M=-1;this.W&&(M=NS(this.W,243*this.scale),this.env.D("web_l3_storyboard")&&this.W.levels.length===4&&(M=this.W.levels.length-1),M=YDd(this.W,M,q));hja(this,M);if(G)switch(q=g.Mv(this.element).width,G){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=q+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=q/2+"px",this.title.style.textAlign="center"}E_k(this,!!t,n,c)}}; g.W.jD=function(){this.type===1&&this.F7()}; g.W.rk=function(n,q){if(this.type)if(this.type===3)this.F7();else return;g_m(this,n,3,q)}; g.W.Ic=function(){this.X&&!this.N&&(this.env.D("player_tooltip_data_title_killswitch")?this.X.hasAttribute("title")&&(this.Z=this.X.getAttribute("title")||"",this.X.removeAttribute("title"),this.C&&Ak(this)):this.X.hasAttribute("data-tooltip-title")&&(this.Z=this.X.getAttribute("data-tooltip-title")||"",this.X.removeAttribute("data-tooltip-title"),this.C&&Ak(this)))}; g.W.k0=function(n,q){n<=this.J&&this.J<=q&&(n=this.J,this.J=NaN,hja(this,n))}; g.W.GsX=function(){tBd(this.W,this.J,243*this.scale)}; g.W.F7=function(){switch(this.type){case 2:var n=this.X;n.removeEventListener("mouseout",this.U);n.addEventListener("mouseover",this.S);n.removeEventListener("blur",this.U);n.addEventListener("focus",this.S);Wgs(this);break;case 3:Wgs(this);break;case 1:this.W&&(this.W.unsubscribe("l",this.k0,this),this.W=null),this.api.removeEventListener("videoready",this.xl),this.RL.stop()}this.type=null;this.C&&this.fade.hide()}; g.W.zn=function(){if(this.X)for(var n=0;n=0;q--)if(this.qY[q]===n){this.qY.splice(q,1);break}$x(this.bI,64,this.qY.length>0)}; g.W.Rd=function(){this.api.dT()&&this.api.mj();return!!this.uH||fCJ(this)||g.xx.prototype.Rd.call(this)}; g.W.jf=function(){var n=!this.Rd(),q=n&&this.api.dT()&&!g.C(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().wZ&&!this.api.T().Z&&!this.api.isEmbedsShortsMode(),M=this.Bl&&g.xt(this.api)&&g.C(this.api.getPlayerStateObject(),128);n||M?(this.kO.show(),this.QY.show()):(this.kO.hide(),this.QY.hide(),this.api.zn(this.r4.element));q?this.Ty.Hn():this.Ty.lG();this.yx&&G9J(this.yx,this.wAm||!n);this.api.D("web_player_hide_overflow_button_if_empty_menu")&&HGa(this);g.xx.prototype.jf.call(this)}; g.W.X2=function(n,q,M,t,c){n.style.left="";n.style.top="";n.style.bottom="";var Y=g.Mv(n),G=t||this.yx&&g.XL(this.yx.ji(),q),k=t=null;M!=null&&G||(t=g.Mv(q),k=g.nH(q,this.api.getRootNode()),M==null&&(M=k.x+t.width/2));M-=Y.width/2;G?(q=this.yx,t=Kgf(q),k=k9_(q),G=this.api.Lm().getPlayerSize().height,M=g.aR(M,t,t+k-Y.width),Y=G-bGj(q)-Y.height):g.XL(this.r4.element,q)?(q=this.api.Lm().getPlayerSize().width,M=g.aR(M,12,q-Y.width-12),Y=this.iS()?this.kt:this.vT,this.api.T().playerStyle==="gvn"&&(Y+= 20),this.Bl&&(Y-=this.iS()?26:18)):(q=this.api.Lm().getPlayerSize(),M=g.aR(M,12,q.width-Y.width-12),Y=k.y>(q.height-t.height)/2?k.y-Y.height-12:k.y+t.height+12);n.style.top=Y+(c||0)+"px";n.style.left=M+"px"}; g.W.d3=function(n){n&&(this.api.zn(this.r4.element),this.yx&&this.api.zn(this.yx.ji()));this.pH&&(g.Yi(this.contextMenu.element,"ytp-autohide",n),g.Yi(this.contextMenu.element,"ytp-autohide-active",!0));g.xx.prototype.d3.call(this,n)}; g.W.Dm=function(){g.xx.prototype.Dm.call(this);this.pH&&(g.Yi(this.contextMenu.element,"ytp-autohide-active",!1),this.pH&&(this.contextMenu.hide(),this.Gp&&this.Gp.hide()))}; g.W.PR=function(n,q){var M=this.api.Lm().getPlayerSize();M=new g.ap(0,0,M.width,M.height);if(n||!Fg(this.bI)&&!this.Rd()){if(this.api.T().Iz||q)n=this.iS()?this.kt:this.vT,M.top+=n,M.height-=n;this.yx&&(M.height-=bGj(this.yx))}return M}; g.W.ER=function(n){var q=this.api.getRootNode();n?q.parentElement?(q.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.T().externalFullscreen||(q.parentElement.insertBefore(this.D5.element,q),q.parentElement.insertBefore(this.fQ.element,q.nextSibling))):g.Ly(Error("Player not in DOM.")):(q.setAttribute("aria-label","Reproductor de video de YouTube"),this.D5.detach(),this.fQ.detach());this.Tk();this.Wl()}; g.W.iS=function(){if(this.api.D("web_player_use_screen_width_for_big_mode")){var n;return this.api.Lm().getPlayerSize().width>=((n=g.ic(this.api.T().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?n:2E3)}n=this.api.T();return this.api.isFullscreen()&&!n.N||!1}; g.W.showControls=function(n){this.dK=!n;this.jf()}; g.W.Tk=function(){var n=this.iS();this.tooltip.scale=n?1.5:1;this.contextMenu&&g.Yi(this.contextMenu.element,"ytp-big-mode",n);this.jf();this.api.D("web_player_hide_overflow_button_if_empty_menu")||HGa(this);this.Wl();var q=this.api.isEmbedsShortsMode();q&&n?(n=(this.api.Lm().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.wK(this.r4.element,"padding-left",n+"px"),g.wK(this.r4.element,"padding-right",n+"px")):q&&(g.wK(this.r4.element,"padding-left",""),g.wK(this.r4.element,"padding-right", ""));g.xx.prototype.Tk.call(this)}; g.W.AO=function(){if(fCJ(this)&&!g.xt(this.api))return!1;var n=this.api.getVideoData();return!g.t8(this.api.T())||this.api.getPresentingPlayerType()===2||!this.Pk||((n=this.Pk||n.Pk)?(n=n.embedPreview)?(n=n.thumbnailPreviewRenderer,n=n.videoDetails&&g.R(n.videoDetails,ZwU)||null):n=null:n=null,n&&n.collapsedRenderer&&n.expandedRenderer)?g.xx.prototype.AO.call(this):!1}; g.W.Wl=function(){g.xx.prototype.Wl.call(this);this.api.logVisibility(this.title.element,!!this.E2);this.MI&&this.MI.xQ(!!this.E2);this.channelAvatar.xQ(!!this.E2);this.overflowButton&&this.overflowButton.xQ(this.Qr()&&!!this.E2);this.shareButton&&this.shareButton.xQ(!this.Qr()&&!!this.E2);this.q6&&this.q6.xQ(!this.Qr()&&!!this.E2);this.searchButton&&this.searchButton.xQ(!this.Qr()&&!!this.E2);this.copyLinkButton&&this.copyLinkButton.xQ(!this.Qr()&&!!this.E2);if(!this.E2){this.api.zn(this.r4.element); for(var n=0;n5&&q.Xy("glrs",{cmt:M});q.seekTo(0,{seekSource:58});q.Xy("glrre",{cmt:M})}}; Fc.prototype.ut=function(){this.X=null;g.F.prototype.ut.call(this)};g.y(g.Z0,P3);g.W=g.Z0.prototype;g.W.isView=function(){return!0}; g.W.c7=function(){var n=this.mediaElement.getCurrentTime();if(n1;kG(n.Xm(),t-.01)&&!c&&(R_(this,4),M.isActive=!1,M.uB=M.uB||M.isActive,(this.S===1?this.X:this.W).Xy("sbh",{}),q.isActive=!0,q.uB=q.uB||q.isActive,this.S!==0&&(this.X.getVideoData().sj=!0));n=this.J.W;if(this.J.X.isActive&&n.isActive&&(R_(this,5),this.S!==0)){n=this.W.Uv();M=this.X.Uv(); this.X.Xy("sbs",{citag:M==null?void 0:M.itag,nitag:n==null?void 0:n.itag});this.W.Xy("gitags",{pitag:M==null?void 0:M.itag,citag:n==null?void 0:n.itag});var Y;(Y=this.W)==null||Y.Qn()}}}; g.W.Qp=function(){this.bM()&&this.Rc("player-reload-after-handoff")}; g.W.Rc=function(n,q){q=q===void 0?{}:q;if(!this.qm()&&this.status.status!==6){var M=this.status.status>=4&&n!=="player-reload-after-handoff";this.status={status:Infinity,error:n};if(this.X&&this.W){var t=this.W.getVideoData().clientPlaybackNonce;this.X.gZ(new g.eV("dai.transitionfailure",Object.assign(q,{cpn:t,transitionTimeMs:this.X$,msg:n})));this.X.Er(M)}this.bT.reject(n);this.dispose()}}; g.W.bM=function(){return this.status.status>=4&&this.status.status<6}; g.W.ut=function(){$xm(this);this.X.unsubscribe("newelementrequired",this.Qp,this);if(this.Z){var n=this.Z.W;this.Z.X.p8.unsubscribe("updateend",this.QR,this);n.p8.unsubscribe("updateend",this.QR,this)}g.F.prototype.ut.call(this)}; g.W.W1=function(n){g.dU(n,128)&&this.Rc("player-error-event")};g.y(o_,g.F);o_.prototype.clearQueue=function(n,q){n=n===void 0?!1:n;q=q===void 0?!1:q;this.J&&this.J.reject("Queue cleared");this.app.T().D("html5_gapless_fallback_on_qoe_restart_v2")||q&&this.W&&this.W.Er(!1);w3(this,n)}; o_.prototype.d4=function(){return!this.X}; o_.prototype.bM=function(){var n;return((n=this.Z)==null?void 0:n.bM())||!1}; o_.prototype.ut=function(){w3(this);g.F.prototype.ut.call(this)};g.y(J6d,g.MB);g.W=J6d.prototype;g.W.getVisibilityState=function(n,q,M,t,c,Y,G,k){return n?4:alf()?3:q?2:M?1:t?5:c?7:Y?8:G?9:k?10:0}; g.W.BR=function(n){this.fullscreen!==n&&(this.fullscreen=n,this.Lu())}; g.W.setMinimized=function(n){this.W!==n&&(this.W=n,this.Lu())}; g.W.setInline=function(n){this.inline!==n&&(this.inline=n,this.Lu())}; g.W.c5=function(n){this.pictureInPicture!==n&&(this.pictureInPicture=n,this.Lu())}; g.W.setSqueezeback=function(n){this.Z!==n&&(this.Z=n,this.Lu())}; g.W.xK=function(n){this.J!==n&&(this.J=n,this.Lu())}; g.W.z8=function(){return this.X}; g.W.Ia=function(){return this.fullscreen!==0}; g.W.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.W.Nz=function(){return this.fullscreen}; g.W.isMinimized=function(){return this.W}; g.W.isInline=function(){return this.inline}; g.W.isBackground=function(){return alf()}; g.W.vk=function(){return this.pictureInPicture}; g.W.Nd=function(){return!1}; g.W.eS=function(){return this.Z}; g.W.tG=function(){return this.J}; g.W.Lu=function(){this.publish("visibilitychange");var n=this.getVisibilityState(this.z8(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.vk(),this.Nd(),this.eS(),this.tG());n!==this.C&&this.publish("visibilitystatechange");this.C=n}; g.W.ut=function(){wFd(this.S);g.MB.prototype.ut.call(this)};g.y(g.zk,g.F);g.W=g.zk.prototype;g.W.ut=function(){this.videoData=this.playerState=null;g.F.prototype.ut.call(this)}; g.W.addCueRange=function(){}; g.W.ZV=function(){}; g.W.BW=function(){}; g.W.aV=function(){return!1}; g.W.xX=function(){return!1}; g.W.Dg=function(){}; g.W.ey=function(){}; g.W.CE=function(){return[]}; g.W.n1=function(){}; g.W.E$=function(){}; g.W.LR=function(){return 1}; g.W.getAudioTrack=function(){return this.getVideoData().u0}; g.W.TT=function(){return null}; g.W.getAvailableAudioTracks=function(){return[]}; g.W.O2=function(){return[]}; g.W.Pl=function(){return[]}; g.W.hB=function(){return""}; g.W.KT=function(){return[]}; g.W.bP=function(){}; g.W.Gy=function(){return 0}; g.W.getCurrentTime=function(){return 0}; g.W.cz=function(){}; g.W.Uv=function(){}; g.W.Bg=function(){return{}}; g.W.getDuration=function(){return 0}; g.W.r9=function(){return 0}; g.W.uY=function(){return 0}; g.W.n2=function(){return!1}; g.W.o2=function(){return 0}; g.W.D7=function(){return 0}; g.W.Vq=na(7);g.W.Cb=function(){return 0}; g.W.h4=function(){return!1}; g.W.Df=function(){return 0}; g.W.Q6=function(){return null}; g.W.D8=function(){return null}; g.W.MM=function(){return 0}; g.W.NH=function(){return 0}; g.W.w4=function(){return g.u(function(n){g.Sk(n)})}; g.W.v$=na(15);g.W.getPlaybackQuality=function(){return"auto"}; g.W.getPlaybackRate=function(){return 1}; g.W.getPlayerState=function(){this.playerState||(this.playerState=new g.uN);return this.playerState}; g.W.getPlayerType=function(){return 0}; g.W.getPlaylistSequenceForTime=function(){return null}; g.W.jC=function(){return function(){}}; g.W.Kx=function(){return""}; g.W.getPreferredQuality=function(){return"unknown"}; g.W.Ny=function(){}; g.W.getProximaLatencyPreference=function(){return 0}; g.W.Yj=function(){return y3}; g.W.p_=function(){return null}; g.W.getStoryboardFormat=function(){return null}; g.W.getStreamTimeOffset=function(){return 0}; g.W.QW=function(){return 0}; g.W.NP=function(){return 0}; g.W.Jw=function(){return{AK:[],iP:[],currentTime:0,jT:"",droppedVideoFrames:0,isGapless:!1,d4:!0,Lp:0,Hf:0,eH:0,E_:0,TQ:0,k$:[],t8:[],Cw:null,playerState:this.getPlayerState(),Kw:null,dD:"",totalVideoFrames:0}}; g.W.getUserAudio51Preference=function(){return 0}; g.W.getUserPlaybackQualityPreference=function(){return""}; g.W.getVideoData=function(){this.videoData||(this.videoData=new g.sh(this.Q1),g.Z(this,this.videoData));return this.videoData}; g.W.Uo=function(){return null}; g.W.ye=function(){return null}; g.W.HA=function(){}; g.W.getVideoLoadedFraction=function(){return 0}; g.W.HJ=function(){}; g.W.handleError=function(){}; g.W.Er=function(){}; g.W.Tc=function(){}; g.W.XI=na(40);g.W.Yw=function(){return!1}; g.W.hasSupportedAudio51Tracks=function(){return!1}; g.W.Td=function(){return!1}; g.W.z8=function(){return!1}; g.W.isAtLiveHead=function(){return!1}; g.W.RC=function(){return!0}; g.W.isGapless=function(){return!1}; g.W.isHdr=function(){return!1}; g.W.kE=function(){return!1}; g.W.Sm=function(){return!1}; g.W.hw=function(){return!1}; g.W.isProximaLatencyEligible=function(){return!1}; g.W.d4=function(){return!0}; g.W.yK=function(){return!1}; g.W.FT=function(){return!1}; g.W.mf=function(){}; g.W.rG=function(){}; g.W.Qn=function(){}; g.W.l_=function(){}; g.W.kL=function(){}; g.W.wb=function(){}; g.W.JL=function(){}; g.W.HR=na(50);g.W.Mc=na(21);g.W.nS=function(){}; g.W.pauseVideo=function(){}; g.W.prefetchKeyPlay=function(){}; g.W.playVideo=function(){return g.u(function(n){return n.return()})}; g.W.f3=function(){}; g.W.T8=na(27);g.W.UN=na(33);g.W.hn=function(){}; g.W.Xy=function(){}; g.W.Ul=function(){}; g.W.hv=function(){}; g.W.Kl=function(){}; g.W.gZ=function(){}; g.W.Q2=function(){}; g.W.Mi=function(){}; g.W.e$=function(){}; g.W.xZ=function(){}; g.W.Xl=function(){}; g.W.c_=function(){}; g.W.removeCueRange=function(){}; g.W.aU=function(){}; g.W.sT=function(){return[]}; g.W.VW=function(){}; g.W.n_=function(){}; g.W.sD=function(){}; g.W.IT=function(){}; g.W.ju=function(){}; g.W.Af=function(){}; g.W.seekTo=function(){}; g.W.sendAbandonmentPing=function(){}; g.W.sendVideoStatsEngageEvent=function(){}; g.W.b_=function(){}; g.W.setLoop=function(){}; g.W.ob=function(){}; g.W.setMediaElement=function(){}; g.W.UD=function(){}; g.W.setPlaybackRate=function(){}; g.W.gO=function(){}; g.W.v5=function(){}; g.W.fu=function(){}; g.W.setProximaLatencyPreference=function(){}; g.W.vF=function(){}; g.W.Qc=function(){}; g.W.sA=function(){}; g.W.X4=function(){}; g.W.OV=function(){}; g.W.setUserAudio51Preference=function(){}; g.W.iW=function(){}; g.W.Zf=function(){return!1}; g.W.IN=function(){}; g.W.kp=function(){return!1}; g.W.HU=function(){}; g.W.Zc=function(){}; g.W.wd=function(){}; g.W.stopVideo=function(){}; g.W.subscribe=function(){return NaN}; g.W.xR=function(){}; g.W.togglePictureInPicture=function(){}; g.W.wF=function(){return 0}; g.W.Bi=function(){}; g.W.unsubscribe=function(){return!1}; g.W.I3=function(){}; g.W.V0=function(){return!1}; g.W.RF=function(){}; g.W.It=function(){}; g.W.Xj=function(){};g.y(Cm,g.F);g.W=Cm.prototype;g.W.get=function(n){Jk(this);var q=this.data.find(function(M){return M.key===n}); return q?q.value:null}; g.W.set=function(n,q,M){this.remove(n,!0);Jk(this);n={key:n,value:q,expire:Infinity};M&&isFinite(M)&&(M*=1E3,n.expire=(0,g.jt)()+M);for(this.data.push(n);this.data.length>this.Z;)(M=this.data.shift())&&r3(this,M,!0);Vi(this)}; g.W.remove=function(n,q){q=q===void 0?!1:q;var M=this.data.find(function(t){return t.key===n}); M&&(r3(this,M,q),g.ln(this.data,function(t){return t.key===n}),Vi(this))}; g.W.removeAll=function(n){if(n=n===void 0?!1:n)for(var q=g.S(this.data),M=q.next();!M.done;M=q.next())r3(this,M.value,n);this.data=[];Vi(this)}; g.W.ut=function(){var n=this;g.F.prototype.ut.call(this);this.data.forEach(function(q){r3(n,q,!0)}); this.data=[]};g.y(g.x0,g.F);g.W=g.x0.prototype;g.W.ut=function(){for(var n=g.S(Object.values(this.Z)),q=n.next();!q.done;q=n.next())q.value.dispose();VDu(this);this.X.dispose();g.F.prototype.ut.call(this)}; g.W.o1=function(n){return n?n===1?this.B:this.W.getVideoData().enableServerStitchedDai&&n===2?this.W.getVideoData().hj?this.Z[2]||this.W:this.W:this.Z[n]||null:this.W}; g.W.Cn=function(n){var q=n.cpn;n=n.playerType;if(q)a:{n=g.S(Object.values(this.Z));for(var M=n.next();!M.done;M=n.next())if(M=M.value,M.hB()===q){q=M;break a}q=this.C[q]||null}else q=n?this.o1(n):this.W;return q}; g.W.Xh=function(){return this.B}; g.W.Dv=function(n){this.B=n}; g.W.tE=function(){return this.W}; g.W.NZ=function(n){this.W=n;Qi(this)}; g.W.Sj=na(46);g.W.Ud=na(48);g.y(iJj,g.G6);g.W=iJj.prototype;g.W.oe=function(){}; g.W.hB=function(){return this.videoData.clientPlaybackNonce}; g.W.getVideoData=function(){if(g.G6.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")){var n=LnR(this.tQ,g.G6.prototype.getCurrentTime.call(this))||g.G6.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==n.clientPlaybackNonce&&tus(this.W,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:n.clientPlaybackNonce});return this.videoData}return LnR(this.tQ,g.G6.prototype.getCurrentTime.call(this))||g.G6.prototype.getVideoData.call(this)}; g.W.getCurrentTime=function(n){var q=g.G6.prototype.getCurrentTime.call(this);if(g.G6.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")){this.X===0?n||(q-=this.startTimeSecs):n&&(q=this.X);var M=n?this.tQ.OY||g.G6.prototype.getCurrentTime.call(this):Sn1(this.tQ,g.G6.prototype.getCurrentTime.call(this));q!==M&&tus(this.W,"time"+(n!=null?n:!1),{time:q,ref:M,ct:n!=null?n:!1})}else q=n?this.tQ.OY||q:Sn1(this.tQ,q);return q}; g.W.getDuration=function(){if(g.G6.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")){var n=fbJ(this.tQ,g.G6.prototype.getCurrentTime.call(this));this.duration!==n&&tus(this.W,"duration",{dur:this.duration,ref:n});return this.duration}return fbJ(this.tQ,g.G6.prototype.getCurrentTime.call(this))}; g.W.Bt=function(n){this.duration=n};g.nX.prototype.Zh=function(n,q){if(q===1)return this.X.get(n);if(q===2)return this.Z.get(n);if(q===3)return this.W.get(n)}; g.nX.prototype.Fc=na(58);g.nX.prototype.GA=function(n,q,M,t){M={AY:t,I$:M};q?this.Z.set(n,M):this.X.set(n,M)}; g.nX.prototype.clearAll=function(){this.X.clear();this.Z.clear();this.W.clear()}; Ynu.prototype.clear=function(){this.W=[];this.Z.clear();this.J.clear();this.X.clear()}; Ynu.prototype.Cn=function(n){var q=n.cpn;n=n.DH;if(q&&(q=this.Z.get(q))||n&&(q=(this.S?this.Z:this.J).get(n)))return q}; g.y(g.qn,g.F);g.W=g.qn.prototype;g.W.onCueRangeEnter=function(n){var q=n.getId();this.Jq({oncueEnter:1,cpn:q,start:n.start,end:n.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Gy()||0).toFixed(3)});var M=this.X.Cn({cpn:q});this.Jq({enterAdCueRange:1});var t=this.vA||this.t4().cpn,c;t=(c=this.X.Cn({cpn:t}))!=null?c:this.t4();M&&(c=this.playback.getCurrentTime(),M.startTimeSecs=n.start/1E3,M={u5:t,xj:M,Xf:c},JZd(this,q,n.start/1E3,c),KX(this,M))}; g.W.Q8=function(n,q){if(n&&q){var M,t=((M=this.app.Uu().J)==null?void 0:M.hB())||this.playback.hB(),c;M=(c=this.X.Cn({cpn:t}))!=null?c:this.t4();var Y;n=(Y=this.X.Cn({cpn:n}))!=null?Y:this.t4();n.startTimeSecs=q;Y=this.playback.getCurrentTime();JZd(this,t,q,Y);KX(this,{u5:M,xj:n,Xf:Y})}}; g.W.Hl=function(n,q){if(n===this.playback.hB())pm(this.app.Uu(),this.playback,!1);else{var M=this.IL.get(n);M?(M.X=0,M.startTimeSecs=q,pm(this.app.Uu(),M,!0)):this.Jq({nop_s:n})}}; g.W.onCueRangeExit=function(n){for(var q=this.playback.getCurrentTime()*1E3,M=n.getId(),t=g.S(this.W.values()),c=t.next();!c.done;c=t.next())if(c=c.value,c.getId()!==M&&q>=c.start&&q<=c.end)return;if(M=this.X.Cn({cpn:M}))q=this.playback.getCurrentTime(),t=this.t4(),t.startTimeSecs=n.end/1E3,M={u5:M,xj:t,Xf:q},JZd(this,this.playback.hB(),n.end/1E3,q),KX(this,M)}; g.W.t4=function(){return{cpn:this.playback.hB(),durationMs:0,a8:0,playerType:1,jG:0,videoData:this.playback.getVideoData(),errorCount:0,Ik:""}}; g.W.seekTo=function(n,q,M,t){n=n===void 0?0:n;q=q===void 0?{}:q;M=M===void 0?!1:M;t=t===void 0?null:t;Gr(this,this.vA);if(this.playback.getVideoData().oI()&&n<=this.OY)this.playback.pauseVideo(),this.OY=0,VuU(this,n);else if(this.xl=!0,M)OJs(this,n,q);else{M=this.app.tE();var c=M===this.jX?this.Yl:null;cS(this,!1);this.QS=n;this.Ux=q;t!=null&&this.eX.start(t);M&&(this.Yl=c||M.getPlayerState(),M.wd(q),this.jX=M)}}; g.W.ut=function(){cS(this,!1);Txa(this);lbC(this);g.F.prototype.ut.call(this)}; g.W.Aa=function(n){this.Wg=n;this.Jq({swebm:n})}; g.W.P_=function(n,q,M){if(M&&q){var t=this.S.get(n);if(t){t.locations||(t.locations=new Map);var c=Number(q.split(";")[0]);M=new g.Jc(M);this.Jq({hdlredir:1,itag:q,seg:n,hostport:C9(M)});t.locations.set(c,M)}}}; g.W.hV=function(n,q,M,t,c,Y){var G=t===3,k=Bxk(this,n,q,t,M,Y);if(!k){YY(this,q,G);var b=g.Uzf(this,q)?"undec":"ncp";this.Jq({gvprp:b,mt:n,seg:q,tt:t,itag:M,ce:Y});return null}G||this.S.set(q,k);Y=k.Ik;var d;t=((d=this.Zh(q-1,t,c))==null?void 0:d.AY)||"";t===""&&this.Jq({eds:1});d=AZd(this,k.ssdaiAdsConfig);c=this.playback.getVideoData();var N;G=((N=c.W)==null?void 0:N.containerType)||0;N=c.tj[G];k=k.K3&&q>=k.K3?k.K3:void 0;N={QU:Y?ZJR(this,Y):[],adsConfig:d,AY:t,uE:k,Cs:Bg(N.split(";")[0]),mN:N.split(";")[1]|| ""};k={MS:N};this.rJ&&(n={gvprpro:"v",sq:q,mt:n.toFixed(3),itag:M,acpns:((b=N.QU)==null?void 0:b.join("_"))||"none",abid:Y},this.Jq(n));return k}; g.W.HQ=function(n){a:{if(!this.qK){var q=Dzs(this,n);if(!(this.playback.getVideoData().oI()&&(q==null?0:q.tT)))break a}q=void 0}var M=q;if(!M)return this.Jq({gvprp:"ncp",mt:n}),null;q=M.Ik;var t=AZd(this,M.ssdaiAdsConfig);M=M.K3&&M.Eb&&n>=M.Eb?M.K3:void 0;var c=this.playback.getVideoData(),Y,G=((Y=c.W)==null?void 0:Y.containerType)||0;Y=c.tj[G];Y={QU:q?ZJR(this,q):[],adsConfig:t,uE:M,Cs:Bg(Y.split(";")[0]),mN:Y.split(";")[1]||""};var k;n={gvprpro:"v",mt:n.toFixed(3),acpns:((k=Y.QU)==null?void 0:k.join("_"))|| "none",abid:q};this.Jq(n);return Y}; g.W.vz=function(n,q,M,t,c,Y){var G=Number(M.split(";")[0]),k=t===3;n=Bxk(this,n,q,t,M,Y);this.Jq({gdu:1,seg:q,itag:G,pb:""+!!n});if(!n)return YY(this,q,k),null;n.locations||(n.locations=new Map);if(!n.locations.has(G)){var b,d;Y=(b=n.videoData.getPlayerResponse())==null?void 0:(d=b.streamingData)==null?void 0:d.adaptiveFormats;if(!Y)return this.Jq({gdu:"noadpfmts",seg:q,itag:G}),YY(this,q,k),null;b=Y.find(function(e){return e.itag===G}); if(!b||!b.url){var N=n.videoData.videoId;n=[];var O=g.S(Y);for(t=O.next();!t.done;t=O.next())n.push(t.value.itag);this.Jq({gdu:"nofmt",seg:q,vid:N,itag:G,fullitag:M,itags:n.join(",")});YY(this,q,k);return null}n.locations.set(G,new g.Jc(b.url,!0))}Y=n.locations.get(G);if(!Y)return this.Jq({gdu:"nourl",seg:q,itag:G}),YY(this,q,k),null;Y=new FJ(Y);this.Wg&&(Y.get("dvc")?this.Jq({dvc:Y.get("dvc")||""}):Y.set("dvc","webm"));(t=(O=this.Zh(q-1,t,c))==null?void 0:O.AY)&&Y.set("daistate",t);n.K3&&q>=n.K3&& Y.set("skipsq",""+n.K3);(O=this.playback.getVideoData().clientPlaybackNonce)&&Y.set("cpn",O);O=[];n.Ik&&(O=ZJR(this,n.Ik),O.length>0&&Y.set("acpns",O.join(",")));k||this.S.set(q,n);k=null;k=Y.get("aids");t=Y.Ag();(t==null?void 0:t.length)>2048&&this.Jq({urltoolong:1,sq:q,itag:G,len:t.length});this.rJ&&(t&&(Y=n.cpn,c=n.Ik,oIf(this,Y,c),c&&!this.Kd.has(c)&&(Y=abC(this,Y,c),b=Rx1(this,c),this.Jq({iofa:Y}),this.Jq({noawnzd:b-Y}),this.Jq({acpns:O.join("."),aids:(N=k)==null?void 0:N.replace(/,/g,".")}), this.Kd.add(c))),this.Jq({gdu:"v",seg:q,itag:M,ast:n.a8.toFixed(3),alen:n.durationMs.toFixed(3),acpn:n.cpn,avid:n.videoData.videoId}));return t}; g.W.hf=function(n,q,M){M=M===void 0?!1:M;var t=uIm(this,n,q);if(t){var c=void 0,Y=t.Ik;if(Y){this.Jq({skipadonsq:q,sts:M,abid:Y,acpn:t.cpn,avid:t.videoData.videoId});M=this.X.X.get(Y);if(!M)return;M=g.S(M);for(Y=M.next();!Y.done;Y=M.next())Y=Y.value,Y.K3=q,Y.Eb=n,Y.a8>t.a8&&(c=Y)}Gr(this,this.vA);this.Z=t.cpn;mzU(this);this.api.D("html5_ssdai_enable_media_end_cue_range")&&this.playback.Bi(this.Z);n=this.playback.getCurrentTime();this.Q1.D("html5_use_new_ssdai_transition_detector")&&this.Hl(this.playback.hB(), n);$zs(this,t,c,n,n,!1,!0);zxC(this)}}; g.W.uW=function(){for(var n=g.S(this.X.W),q=n.next();!q.done;q=n.next())q=q.value,q.K3=NaN,q.Eb=NaN;mzU(this);this.Jq({rsac:"resetSkipAd",sac:this.Z});this.hE.delete(this.Z);this.Z=""}; g.W.Zh=function(n,q,M){return this.RL.Zh(n,q,M)}; g.W.Fc=na(57); g.W.GA=function(n,q,M,t,c,Y,G,k,b){t.length>0&&this.Jq({onssinfo:1,sq:n,start:q.toFixed(3),cpns:t.join(","),ds:c.join(","),isVideo:G?1:0});b&&this.RL.GA(n,G,k,b);if(G){if(t.length&&c.length)for(this.hE.has(t[0])&&this.Jq({skipfail:1,sq:n,acpn:t[0]}),n=q+this.QW(),M=0;M0&&(this.rE=0,this.vA="",this.Q1.D("html5_huli_ssdai_use_playback_state")&&this.Hl(this.playback.hB(),0),this.api.publish("serverstitchedvideochange"));this.playback.ey(M,t);return!0}; g.W.TR=function(){this.Jq({rstdaist:1});this.RL.clearAll()}; g.W.DG=function(n){var q;if(n!==((q=this.C)==null?void 0:q.identifier))this.Jq({ignorenoad:n});else{this.JQ.add(n);this.Jq({noadrcv:n});var M;((M=this.C)==null?void 0:M.identifier)===n&&ip(this)}}; g.W.rC=function(n){if(this.qK)return this.Jq({dai_disabled:n.event}),!1;if(this.playback.getVideoData().oI()&&(n.event==="continue"||n.event==="stop"))return!1;var q=uy(this.api.zk());if(q=q?q.rC(n):!1)this.J={D1:n.identifier,TJ:n.startSecs};else if(this.J&&this.J.D1===n.identifier&&n.startSecs>this.J.TJ+1){this.Jq({cueStChg:n.identifier,oldSt:this.J.TJ.toFixed(3),newSt:n.startSecs.toFixed(3),abid:this.J.Ej});if(this.J.Ej){var M=n.startSecs-this.J.TJ,t=this.X.X.get(this.J.Ej);if(t){t=g.S(t);for(var c= t.next();!c.done;c=t.next())c=c.value,c.a8>=0&&(c.a8+=M*1E3,this.Q1.D("html5_ssdai_update_timeline_on_start_time_change")&&(c.jG+=M*1E3),this.Jq({newApEt:c.a8,newApPrt:c.jG,acpn:c.cpn}))}}this.J.TJ=n.startSecs}this.Q1.D("html5_ssdai_log_missing_ad_config_reason")&&(q?this.nm.add(n.identifier):this.nm.has(n.identifier)&&this.nm.delete(n.identifier));return q}; g.W.Eo=function(n){var q="";n?n.event==="unknown"?q="unknown":this.nm.has(n.identifier)?this.J&&this.J.D1===n.identifier?this.J.D1===n.identifier?q="pending":oV(this.V1,function(M){return M.identifier===n.identifier})||(q="noAdsAdded"):q="wrongAdBreakInfo":q="unscheduled":q="noCuepoint"; return q}; g.W.yE=function(n){return this.qK?!1:!!Dzs(this,n)}; g.W.L4=function(n){var q=this;if(this.Q1.D("html5_lifa_ignore_multiple_skips")&&this.wJ)return this.Jq({ufs_ad:this.Z,ufs_cur:this.vA,ufs_cont:this.t4().cpn}),!1;Gr(this,this.vA);this.playback.pauseVideo();var M=this.playback.getCurrentTime(),t=this.X.Cn({cpn:this.vA});if(!t)return this.Jq({skipFail:M}),!1;this.Z=this.vA;this.xl=!1;this.api.D("html5_ssdai_enable_media_end_cue_range")&&this.playback.Bi(this.Z);wvm(this,t.Ik);CO1(this,t,this.t4(),n);VuU(this,M,{seekSource:89,hQ:"lifa_skip"});this.wJ|| (this.wJ=this.events.V(this.api,"progresssync",function(){yJ(q.api.Zu(),(0,g.jt)(),"ad_to_video");q.wJ&&(q.events.AQ(q.wJ),q.wJ=null)})); return!0}; g.W.Jq=function(n,q){((q===void 0?0:q)||this.rJ||this.playback.getVideoData().oI())&&this.playback.Xy("sdai",n)}; var hxJ=0;g.y(xzd,g.F);g.W=xzd.prototype;g.W.onCueRangeEnter=function(n){if(this.X===this.app.tE()){var q=this.S.get(n);q?iZf(this,q.target,q.X$,n):this.gZ("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:n.toString()})}else if(q=this.W.find(function(c){return c.le.sN===n})){var M=q.le,t=M.target; M=M.X$;t?iZf(this,t,M,n):MMd(this,q.jG,M,n)}}; g.W.onQueuedVideoLoaded=function(){var n=this.N;Nn(this);if(n){if(!dG(this,n)){var q=this.app.tE();this.gZ("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:q==null?void 0:q.getVideoData().clientPlaybackNonce,ccpn:""+n.playerVars.cpn})}this.app.tE().addCueRange(n.le.sN)}}; g.W.seekTo=function(n,q,M,t){n=n===void 0?0:n;q=q===void 0?{}:q;t=t===void 0?null:t;if(M===void 0?0:M)rZm(this,n,q);else{M=this.app.tE()||null;var c=M===this.J?this.C:null;OG(this,!1);this.xl=n;this.U=q;t!=null&&this.B.start(t);M&&(this.C=c||M.getPlayerState(),M.wd(),this.J=M)}}; g.W.i$=function(n){g.dU(n,128)&&KLd(this)}; g.W.isManifestless=function(){return Z6(this.X.getVideoData())}; g.W.ut=function(){OG(this,!1);bZJ(this);g.F.prototype.ut.call(this)}; g.W.gZ=function(n,q){this.X.gZ(new g.eV(n,q))}; var QHm=0;var dru="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.y(gG,g.F);gG.prototype.i5=function(n){if(n)return this.W.get(n)}; gG.prototype.ut=function(){this.X.removeAll();this.W.removeAll();g.F.prototype.ut.call(this)};g.nKD=BT(function(){var n=window.AudioContext||window.webkitAudioContext;try{return new n}catch(q){return q.name}});g.y(ES1,g.w);g.W=ES1.prototype;g.W.ue=function(){g.iC(this.element,g.Fm.apply(0,arguments))}; g.W.n_=function(){this.Mn&&(this.Mn.removeEventListener("focus",this.Vz),g.sS(this.Mn),this.Mn=null)}; g.W.tS=function(){this.qm();var n=this.app.T();n.jd||this.ue("tag-pool-enabled");n.C&&this.ue(g.SW.HOUSE_BRAND);n.playerStyle==="gvn"&&(this.ue("ytp-gvn"),this.element.style.backgroundColor="transparent");n.O9&&(this.Fq=g.Qd("yt-dom-content-change",this.resize,this));this.V(window,"orientationchange",this.resize,this);this.V(window,"resize",this.resize,this)}; g.W.Ah=function(n){g.kl(this.app.T());this.Qy=!n;eq(this)}; g.W.resize=function(){if(this.Mn){var n=this.Ig();if(!n.isEmpty()){this.app.oL.isFullscreen()&&F$()&&this.d5.start();var q=!g.Vl(n,this.mL.getSize()),M=Xxa(this);q&&(this.mL.width=n.width,this.mL.height=n.height);n=this.app.T();(M||q||this.Qu||n.O9)&&this.app.oL.publish("resize",this.getPlayerSize())}}}; g.W.OQ=function(n,q){this.updateVideoData(q)}; g.W.updateVideoData=function(n){if(this.Mn){var q=this.app.T();Ra&&(this.Mn.setAttribute("x-webkit-airplay","allow"),n.title?this.Mn.setAttribute("title",n.title):this.Mn.removeAttribute("title"));this.Mn.setAttribute("controlslist","nodownload");q.aF&&n.videoId&&(this.Mn.poster=n.b7("default.jpg"))}q=g.xp(n,"yt:bgcolor");this.zR.style.backgroundColor=q?q:"";this.JZ=iJ(g.xp(n,"yt:stretch"));this.pj=iJ(g.xp(n,"yt:crop"),!0);g.Yi(this.element,"ytp-dni",n.wZ);this.resize()}; g.W.setGlobalCrop=function(n){this.b2=iJ(n,!0);this.resize()}; g.W.setCenterCrop=function(n){this.sF=n;this.resize()}; g.W.BR=function(){}; g.W.getPlayerSize=function(){var n=this.app.T(),q=this.app.oL.isFullscreen(),M=n.externalFullscreen&&g.t8(n);if(q&&F$()&&!M)return new g.JE(window.outerWidth,window.outerHeight);M=!isNaN(this.rh.width)&&!isNaN(this.rh.height);var t=this.app.T().D("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.T().D("web_watch_enable_fs_squeezeback_panels");if(q&&!M&&t)return new g.JE(this.element.clientWidth,this.element.clientHeight);if(q||n.dC){if(window.matchMedia){n="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.Kg&&this.Kg.media===n||(this.Kg=window.matchMedia(n));var c=this.Kg&&this.Kg.matches}if(c)return new g.JE(window.innerWidth,window.innerHeight)}else if(M)return this.rh.clone();return new g.JE(this.element.clientWidth,this.element.clientHeight)}; g.W.Ig=function(){var n=this.app.T().D("enable_desktop_player_underlay"),q=this.getPlayerSize(),M=g.ic(this.app.T().experiments,"player_underlay_min_player_width");return n&&this.OS&&q.width>M?(n=g.ic(this.app.T().experiments,"player_underlay_video_width_fraction"),new g.JE(Math.min(q.height*this.getVideoAspectRatio(),q.width*n),Math.min(q.height,q.width*n/this.getVideoAspectRatio()))):q}; g.W.getVideoAspectRatio=function(){return isNaN(this.JZ)?WLd(this):this.JZ}; g.W.getVideoContentRect=function(n){var q=this.Ig();n=yRs(this,q,this.getVideoAspectRatio(),n);return new g.ap((q.width-n.width)/2,(q.height-n.height)/2,n.width,n.height)}; g.W.Tj=function(n){this.OS=n;this.resize()}; g.W.Kp=function(){return this.KS}; g.W.onMutedAutoplayChange=function(){eq(this)}; g.W.setInternalSize=function(n){g.Vl(this.rh,n)||(this.rh=n,this.resize())}; g.W.ut=function(){this.Fq&&g.pE(this.Fq);this.n_();g.w.prototype.ut.call(this)};g.W=Ssd.prototype;g.W.click=function(n,q){this.elements.has(n);this.X.has(n);var M=g.ye();M&&n.visualElement&&g.Qe(M,n.visualElement,q)}; g.W.createClientVe=function(n,q,M,t){var c=this;t=t===void 0?!1:t;this.elements.has(n);this.elements.add(n);M=W_j(M);n.visualElement=M;var Y=g.ye(),G=g.WJ();Y&&G&&(g.EH("combine_ve_grafts")?GF(cR(),M,G):g.Jo(g.ZN)(void 0,Y,G,M));q.addOnDisposeCallback(function(){c.elements.has(n)&&c.destroyVe(n)}); t&&this.W.add(n)}; g.W.createServerVe=function(n,q,M){var t=this;M=M===void 0?!1:M;this.elements.has(n);this.elements.add(n);q.addOnDisposeCallback(function(){t.destroyVe(n)}); M&&this.W.add(n)}; g.W.destroyVe=function(n){this.elements.has(n);this.elements.delete(n);this.Z.delete(n);this.X.delete(n);this.W.delete(n)}; g.W.uu=function(n,q){this.clientPlaybackNonce!==q&&(this.clientPlaybackNonce=q,Yy(cR(),n),IMs(this))}; g.W.setTrackingParams=function(n,q){this.elements.has(n);q&&(n.visualElement=g.Ey(q))}; g.W.VS=function(n,q,M){this.elements.has(n);q?this.X.add(n):this.X.delete(n);var t=g.ye(),c=n.visualElement;this.W.has(n)?t&&c&&(q?g.re(t,[c]):g.x7(t,[c])):q&&!this.Z.has(n)&&(t&&c&&g.Cy(t,c,void 0,M),this.Z.add(n))}; g.W.hasVe=function(n){return this.elements.has(n)};g.y(g.hu,g.F);g.hu.create=function(n,q,M,t){try{var c=typeof n==="string"?n:"player"+g.KQ(n),Y=Pz[c];if(Y){try{Y.dispose()}catch(k){g.Ly(k)}Pz[c]=null}var G=new g.hu(n,q,M,t);G.addOnDisposeCallback(function(){Pz[c]=null;G.NU&&G.NU()}); return Pz[c]=G}catch(k){throw g.Ly(k),(k&&k instanceof Error?k:Error(String(k))).stack;}}; g.W=g.hu.prototype;g.W.C1=function(){return this.visibility}; g.W.Dv=function(n){var q=this.Xh();if(n!==q){n.getVideoData().autonavState=q.getVideoData().autonavState;q.I3(this.PT,this);var M=q.getPlaybackRate();q.dispose();this.lz.Dv(n);n.setPlaybackRate(M);n.xR(this.PT,this);BaR(this)}}; g.W.Ou=function(){this.rz||(this.rz=g.zj(c8(),Upd()));return this.rz}; g.W.n_=function(n){if(this.mediaElement){this.fq&&(this.events.AQ(this.fq),this.fq=null);g.fL(this.g6);this.tE().n_(!0,!1,n);this.template.n_();try{this.D("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Zv()}catch(q){g.PJ(q)}this.mediaElement=null}}; g.W.NZ=function(n,q,M){M=M===void 0?!1:M;if(n!==this.tE()){this.logger.debug(function(){return"start set presenting player, type "+n.getPlayerType()+", vid "+n.getVideoData().videoId}); var t=null;M||(M=this.tE(),t=M.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),U5(this.bY,3),Fr(this,"cuerangesremoved",M.KT()),this.d9&&!n.isGapless()&&M.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),M=n.Zf()&&M.Zf(),this.Si.uJ("iv_s"),R1d(this,M));n.getPlayerType()===1&&this.Dv(n);aMk(this,n);this.lz.NZ(n);this.mediaElement&&n.setMediaElement(this.mediaElement);n.xR(this.EM,this);n.FT()?e$f(this,"setPresenting",!1):(this.OQ("newdata",n,n.getVideoData()), t&&!g.FD(t,n.getPlayerState())&&this.wg(new g.kB(n.getPlayerState(),t)),q=q&&n.getPlayerType()===1,n.Sm()&&!q&&this.OQ("dataloaded",n,n.getVideoData()),(q=(q=n.getVideoData().W)&&q.video)&&this.oL.t1("onPlaybackQualityChange",q.quality),Fr(this,"cuerangesadded",n.KT()),q=n.getPlayerState(),g.C(q,2)?ZZd(this):g.C(q,8)?n.playVideo():n.kE()&&n.pauseVideo(),q=this.Xh(),n.getPlayerType()===2&&(n.getVideoData().PL=q.getVideoData().clientPlaybackNonce),n.getPlayerType()!==2||this.Fb()||(t=n.getVideoData(), q.f3(t.clientPlaybackNonce,t.YB||"",t.breakType||0,t.NV,t.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.W.Ll=function(){if(this.Xh()!==this.tE()){var n=this.tE();this.logger.debug(function(){return"release presenting player, type "+n.getPlayerType()+", vid "+n.getVideoData().videoId}); this.NZ(this.Xh())}}; g.W.Uu=function(){return this.lz}; g.W.Cn=function(n){return this.lz.Cn(n)}; g.W.o1=function(n){return this.lz.o1(n)}; g.W.Xh=function(){return this.lz.Xh()}; g.W.tE=function(){return this.lz.tE()}; g.W.Wa=na(44);g.W.InL=function(){Sq(this)||(this.logger.debug("application playback ready"),this.E5(5))}; g.W.Yq1=function(){if(!Sq(this)){this.logger.debug("playback ready");dgJ(this);var n=this.tE(),q=n.getPlayerState();n.kE()?this.pauseVideo():q.isOrWillBePlaying()&&this.playVideo()}}; g.W.canPlayType=function(n){return yv(n)}; g.W.T=function(){return this.Q1}; g.W.getVideoData=function(){return this.tE().getVideoData()}; g.W.kP=na(11);g.W.F_=function(){return this.Xh().getVideoData()}; g.W.getVideoLoadedFraction=function(n){return(n=this.Cn({playerType:n}))?n.getVideoLoadedFraction():this.lz.X.getVideoLoadedFraction()}; g.W.Lm=function(){return this.template}; g.W.zk=function(){return this.bY}; g.W.Zu=function(){return this.Si}; g.W.cF=function(n,q,M){(q=this.Cn({playerType:q===void 0?1:q}))&&q.b_(n,void 0,M)}; g.W.Vg=function(){var n=this.bY.Vg();this.oL.publish("videoStatsPingCreated",n);return n}; g.W.getVolume=function(){return Math.round(this.oL.getVolume())}; g.W.isMuted=function(){return this.oL.isMuted()}; g.W.Bz=function(){if(this.Xh()===this.tE()&&this.iG)return this.iG.postId}; g.W.Hus=function(){var n=this;this.D("use_rta_for_player")||(g.hi(this.Q1)?g.BN(this.Q1,g.O9(this.getVideoData())).then(function(q){Yz(c8(),q);W$1(n.getVideoData(),n.Q1,n.Ou())}):W$1(this.getVideoData(),this.Q1,this.Ou()))}; g.W.hC=function(n){this.oL.publish("poTokenVideoBindingChange",n)}; g.W.Tq=function(n){this.oL.publish("d6de4videobindingchange",n)}; g.W.lN=function(){this.yp&&this.yp.lN()}; g.W.q$=function(n){this.yp=n}; g.W.Pi=function(n){if(n===1){this.Si.tick("vr");var q=this.tE();q.BW();bcC(this.Si,q.getVideoData(),b2_(this));Fsm(this.bY)}q=this.Q1;if(l4(q)&&q.B||g.d1(q)){var M;(((M=this.tE().getVideoData())==null?0:M.enableServerStitchedDai)||!this.Fb())&&this.oL.t1("onAdStateChange",n)}}; g.W.setLoopVideo=function(n){var q=this.tE();q===this.Xh()&&q.h4()!==n&&(q.setLoop(n),this.oL.Km("onLoopChange",n))}; g.W.getLoopVideo=function(){return this.tE().h4()}; g.W.setLoopRange=function(n){var q=!1;!!this.iG!==!!n?q=!0:this.iG&&n&&(q=this.iG.startTimeMs!==n.startTimeMs||this.iG.endTimeMs!==n.endTimeMs||this.iG.postId!==n.postId||this.iG.type!==n.type);if(q){q=this.tE();lB(q.getVideoData())&&q.Xy("slr",{et:(n==null?void 0:n.endTimeMs)||-1});q=this.Xh();q.sT("applooprange");if(n){var M=new g.Ji(n.startTimeMs,n.endTimeMs,{id:"looprange",namespace:"applooprange"});q.addCueRange(M)}else{this.F_().clipConfig=void 0;var t;((M=this.iG)==null?void 0:M.type)!=="repeatChapter"|| isNaN(Number((t=this.iG)==null?void 0:t.loopCount))||(M={loopCount:String(this.iG.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.tx("repeatChapterLoopEvent",M))}this.iG=n;this.oL.Km("onLoopRangeChange",n||void 0);this.Xh()===this.tE()&&(this.Ga(),q.Dg())}}; g.W.getLoopRange=function(){return this.iG}; g.W.Ga=function(){var n="",q=this.Xh();this.iG?q!==this.tE()?n="pnea":xra(this,q.getCurrentTime())&&(this.iG.loopCount=0,n="ilr"):n="nlr";var M=this.tE();if(lB(M.getVideoData()))if(this.D("html5_gapless_log_loop_range_info")){var t,c;M.Xy("slrre",{rej:n,ct:q.getCurrentTime(),lst:(t=this.iG)==null?void 0:t.startTimeMs,let:(c=this.iG)==null?void 0:c.endTimeMs})}else M.Xy("slrre",{});n||pxR(this)}; g.W.setPlaybackRate=function(n,q){if(!isNaN(n)){n=mr1(this,n);var M=this.Xh();M.getPlaybackRate()!==n&&(M.setPlaybackRate(n),q&&!this.Q1.J&&g.Pf("yt-player-playback-rate",n),this.oL.t1("onPlaybackRateChange",n))}}; g.W.getCurrentTime=function(n,q){q=q===void 0?!0:q;var M=this.lz.zp;if(M)return M.getCurrentTime();var t=n===2&&this.getVideoData().enableServerStitchedDai;M=null;t?M=this.tE():M=this.Cn({playerType:n});return M?t&&this.QA?(n=this.lz.N)?n.getCurrentTime(q):M.getCurrentTime():q?(q=jq(this,M),up(this,q.getCurrentTime(),q)):M.getCurrentTime():this.lz.X.getCurrentTime()}; g.W.D7=function(){var n=this.Cn({playerType:void 0});if(!n)return this.lz.X.D7();n=jq(this,n);return up(this,n.D7(),n)}; g.W.getDuration=function(n,q){q=q===void 0?!0:q;var M=this.lz.zp;if(M)return M.getDuration();M=this.getVideoData();var t=n===2&&M.enableServerStitchedDai,c=null;t?c=this.tE():c=this.Cn({playerType:n});if(!c)return this.lz.X.getDuration();if(M.hasProgressBarBoundaries()&&!t){var Y,G=Number((Y=M.progressBarStartPosition)==null?void 0:Y.utcTimeMillis),k;Y=Number((k=M.progressBarEndPosition)==null?void 0:k.utcTimeMillis);if(!isNaN(G)&&!isNaN(Y))return(Y-G)/1E3}if(lB(M)&&!M.isLivePlayback)return lp(this, n);if(q)return n=Xr(this,c),up(this,n.getDuration(),n);if(t&&this.QA){if(this.D("html5_huli_ssdai_use_playback_state"))return n=this.lz,n=n.J===n.N?n.J:null,(n==null?void 0:n.getDuration())||0;var b;return((b=this.lz.N)==null?void 0:b.getDuration())||0}return c.getDuration()}; g.W.uY=function(n){var q=this.Cn({playerType:n});return q?this.Fb(q)?(q=Xr(this,q),q.uY()-q.getCurrentTime()+this.getCurrentTime(n)):q.uY():this.lz.X.uY()}; g.W.finishSegmentByCpn=function(){return[]}; g.W.tS=function(){this.template.tS();var n=this.oL;n.state.element=this.template.element;var q=n.state.element,M;for(M in n.state.X)n.state.X.hasOwnProperty(M)&&(q[M]=n.state.X[M]);(n=BQJ(this.template.element))&&this.events.V(this.template,n,this.onFullscreenChange)}; g.W.getDebugText=function(n){var q=this.Xh().Bg(n),M=this.tE();if(M!==this.Xh()){M=M.Bg(n);for(var t=g.S(Object.keys(M)),c=t.next();!c.done;c=t.next())c=c.value,q["ad"+c]=M[c];if(n){M=q;t={};if(c=cT(document,"movie_player"))t.bounds=c.getBoundingClientRect(),t["class"]=c.className;c={};var Y=g.kZ("video-ads");Y?(W0s(Y,c),c.html=Y.outerHTML):c.missing=1;Y={};var G=g.kZ("videoAdUiSkipContainer"),k=g.kZ("ytp-ad-skip-button-container"),b=g.kZ("ytp-skip-ad-button"),d=G||k||b;d?(W0s(d,Y),Y.ima=G?1:0,Y.bulleit= k?1:0,Y.component=b?1:0):Y.missing=1;t=JSON.stringify({player:t,videoAds:c,skipButton:Y});M.ad_skipBtnDbgInfo=t}}n&&this.mediaElement&&(q["0sz"]=""+(+C_(this.mediaElement.getSize())===0),q.op=this.mediaElement.bH("opacity"),M=this.mediaElement.YE().y+this.mediaElement.getSize().height,q.yof=""+(+M<=0),q.dis=this.mediaElement.bH("display"));n&&((n=(0,g.t3)())&&(q.gpu=n),(n=this.Q1.playerStyle)&&(q.ps=n),this.Q1.AE&&(q.webview=1),(n=this.webPlayerContextConfig.jsUrl)&&(q.js=n));q.debug_playbackQuality= this.oL.getPlaybackQuality(1);q.debug_date=(new Date).toString();q.origin=window.origin;q.timestamp=Date.now();delete q.uga;delete q.q;return JSON.stringify(q,null,2)}; g.W.getFeedbackProductData=function(){var n={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.T().experiments.experimentIds.join(", "),player_release:K[13]},q=this.getPlayerStateObject().Vr;q&&(n.player_error_code=q.errorCode,n.player_error_details=JSON.stringify(q.errorDetail));return n}; g.W.getPresentingPlayerType=function(n){if(this.appState===1)return 1;if(Sq(this))return 3;var q;return n&&((q=this.QA)==null?0:HJd(q,this.getCurrentTime()))?2:this.tE().getPlayerType()}; g.W.jZ=function(){return!1}; g.W.getPlayerStateObject=function(n){var q=this.lz.zp;return q?q.getPlayerState():this.Cn({playerType:n}).getPlayerState()}; g.W.getAppState=function(){return this.appState}; g.W.ToE=function(n){switch(n.type){case "loadedmetadata":this.Fl.start();n=g.S(this.HF);for(var q=n.next();!q.done;q=n.next())q=q.value,khC(this,q.id,q.HTb,q.yB1,void 0,!1);this.HF=[];break;case "loadstart":this.Si.uJ("gv");break;case "progress":case "timeupdate":df(n.target.UC())>=2&&this.Si.uJ("l2s");break;case "playing":g.vN&&this.Fl.start();if(g.hi(this.Q1))n=!1;else{q=g.pi(this.zk());n=this.mediaElement.bH("display")==="none"||C_(this.mediaElement.getSize())===0;var M=EG(this.template),t=this.tE().getVideoData(), c=g.BD(this.Q1);t=Uh(t);q=!M||q||c||t||this.Q1.eX;n=n&&!q}n&&(n=this.tE(),n.mf(),this.getVideoData().Yi||(this.getVideoData().Yi=1,this.ZR(),n.playVideo()))}}; g.W.mny=function(n){this.oL.dZ("onLoadProgress",n)}; g.W.LiX=function(){this.oL.publish("playbackstalledatstart")}; g.W.h9l=function(n,q){this.oL.publish("sabrCaptionsDataLoaded",n,q)}; g.W.AgL=function(n){this.tE().Qc(n)}; g.W.DMJ=function(n){this.tE().vF(n)}; g.W.Bom=function(n){n=jq(this,this.tE());n=up(this,n.getCurrentTime(),n);this.oL.t1("onVideoProgress",n);this.Q1.pL&&cDJ(this,this.visibility.vk())&&this.pauseVideo()}; g.W.lHy=function(){this.oL.t1("onAutoplayBlocked");var n=this.tE().getVideoData();n&&(n.h5=!0);this.D("embeds_enable_autoplay_and_visibility_signals")&&g.t8(this.Q1)&&(n={autoplayBrowserPolicy:If(),autoplayIntended:f9(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.tx("embedsAutoplayStatusChanged",n))}; g.W.s8J=function(){this.oL.publish("progresssync")}; g.W.tcE=function(){this.oL.dZ("onPlaybackPauseAtStart")}; g.W.jmy=function(n){if(this.getPresentingPlayerType()===1){g.dU(n,1)&&!g.C(n.state,64)&&this.F_().isLivePlayback&&this.Xh().isAtLiveHead()&&this.oL.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.dU(n,2)){if(this.iG&&this.iG.endTimeMs>=(this.getDuration()-1)*1E3){pxR(this);return}ZZd(this)}if(g.C(n.state,128)){var q=n.state;this.cancelPlayback(5);q=q.Vr;JSON.stringify({errorData:q,debugInfo:this.getDebugText(!0)});this.oL.t1("onError",TLJ(q.errorCode));this.oL.dZ("onDetailedError",{errorCode:q.errorCode, errorDetail:q.errorDetail,message:q.errorMessage,messageKey:q.Ua,cpn:q.cpn});(0,g.jt)()-this.Q1.VA>6048E5&&this.oL.dZ("onReloadRequired")}q={};if(n.state.isPlaying()&&!n.state.isBuffering()&&!v_("pbresume","ad_to_video")&&v_("_start","ad_to_video")){var M=this.getVideoData();q.clientPlaybackNonce=M.clientPlaybackNonce;M.videoId&&(q.videoId=M.videoId);g.LD(q,"ad_to_video");H_("pbresume",void 0,"ad_to_video");Fsm(this.bY)}this.oL.publish("applicationplayerstatechange",n)}}; g.W.wg=function(n){this.lz.zp||this.oL.publish("presentingplayerstatechange",n)}; g.W.i$=function(n){sG(this,ae(n.state));g.C(n.state,1024)&&this.oL.isMutedByMutedAutoplay()&&(vS(this,{muted:!1,volume:this.K_.volume},!1),Tr(this,!1))}; g.W.onPlayerRequestSent=function(n){this.oL.Km("onPlayerRequestSent",n)}; g.W.rQ=function(n,q){n==="newdata"&&BaR(this);this.oL.publish("applicationvideodatachange",n,q)}; g.W.qqb=function(n,q){this.D("html5_afmt_change_update_volume")&&dgJ(this);this.oL.dZ("onPlaybackAudioChange",this.oL.getAudioTrack().tq.name);this.oL.publish("internalaudioformatchange",this.oL.getAudioTrack().tq.id,q)}; g.W.Uny=function(n){var q=this.tE().getVideoData();n===q&&this.oL.t1("onPlaybackQualityChange",n.W.video.quality)}; g.W.l9=function(){var n=this.lz.Z[2]||null;n&&(n=n.getVideoData(),this.tE().Xy("ssdai",{cleanaply:1,acpn:n==null?void 0:n.clientPlaybackNonce,avid:n.videoId,isDai:this.F_().enableServerStitchedDai?1:0}),delete this.lz.Z[2])}; g.W.EQg=function(n,q){this.OQ(n,this.tE(),q)}; g.W.OQ=function(n,q,M){this.logger.debug(function(){return"on video data change "+n+", player type "+q.getPlayerType()+", vid "+M.videoId}); this.Q1.Aq()&&q.Xy("vdc",{type:n,vid:M.videoId||"",cpn:M.clientPlaybackNonce||""});q===this.Xh()&&(this.Q1.g4=M.oauthToken);q===this.Xh()&&(this.getVideoData().enableServerStitchedDai&&!this.QA?(this.Xh().Xy("sdai",{initSstm:1}),this.QA=new g.qn(this.oL,this.Q1,this.Xh(),this)):!this.getVideoData().enableServerStitchedDai&&this.QA&&(this.QA.dispose(),this.QA=null));if(n==="newdata")this.logger.debug("new video data, destroy modules"),U5(this.bY,2),this.oL.publish("videoplayerreset",q);else{if(!this.mediaElement)return; n==="dataloaded"&&(this.Xh()===this.tE()?(ER(M.pm,M.De),JRs(this)):wxd(this));q.getPlayerType()===1&&(this.Q1.nm&&h$C(this),this.getVideoData().isLivePlayback&&!this.Q1.Fj&&this.Rc("html5.unsupportedlive",2,"DEVICE_FALLBACK"),M.isLoaded()&&(($_u(M)||this.getVideoData().Fj)&&this.oL.publish("legacyadtrackingpingchange",this.getVideoData()),M.hasProgressBarBoundaries()&&qjm(this)));this.oL.publish("videodatachange",n,M,q.getPlayerType())}this.oL.t1("onVideoDataChange",{type:n,playertype:q.getPlayerType()}); this.Ga();var t=M.wk;t?this.T9.uu(t,M.clientPlaybackNonce):IMs(this.T9)}; g.W.Mf=function(){fX(this,null);this.oL.dZ("onPlaylistUpdate")}; g.W.Xmm=function(n){delete this.BN[n.getId()];this.Xh().removeCueRange(n);a:{n=this.getVideoData();var q,M,t,c,Y,G,k,b,d,N,O=((q=n.nm)==null?void 0:(M=q.contents)==null?void 0:(t=M.singleColumnWatchNextResults)==null?void 0:(c=t.autoplay)==null?void 0:(Y=c.autoplay)==null?void 0:Y.sets)||((G=n.nm)==null?void 0:(k=G.contents)==null?void 0:(b=k.twoColumnWatchNextResults)==null?void 0:(d=b.autoplay)==null?void 0:(N=d.autoplay)==null?void 0:N.sets);if(O)for(q=g.S(O),M=q.next();!M.done;M=q.next())if(M= M.value,c=t=void 0,M=M.autoplayVideo||((t=M.autoplayVideoRenderer)==null?void 0:(c=t.autoplayEndpointRenderer)==null?void 0:c.endpoint),t=g.R(M,g.HO),Y=c=void 0,M!=null&&((c=t)==null?void 0:c.videoId)===n.videoId&&((Y=t)==null?0:Y.continuePlayback)){n=M;break a}n=null}(q=g.R(n,g.HO))&&this.oL.Km("onPlayVideo",{sessionData:{autonav:"1",itct:n==null?void 0:n.clickTrackingParams},videoId:q.videoId,watchEndpoint:q})}; g.W.E5=function(n){var q=this;n!==this.appState&&(this.logger.debug(function(){return"app state change "+q.appState+" -> "+n}),n===2&&this.getPresentingPlayerType()===1&&(sG(this,-1),sG(this,5)),this.appState=n,this.oL.publish("appstatechange",n))}; g.W.Rc=function(n,q,M,t,c){this.Xh().gO(n,q,M,t,c)}; g.W.U5=na(13);g.W.isAtLiveHead=function(n,q){q=q===void 0?!1:q;var M=this.Cn({playerType:n});if(!M)return this.lz.X.isAtLiveHead();n=Xr(this,M);M=jq(this,M);return n!==M?n.isAtLiveHead(up(this,M.getCurrentTime(),M),!0):n.isAtLiveHead(void 0,q)}; g.W.o2=function(){var n=this.Cn({playerType:void 0});return n?Xr(this,n).o2():this.lz.X.o2()}; g.W.seekTo=function(n,q,M,t,c,Y){q=q!==!1;if(t=this.Cn({playerType:t}))if(this.appState===2&&LX(this),this.Fb(t))BS(this)?this.QA.seekTo(n,{seekSource:c},q,M):this.tQ.seekTo(n,{seekSource:c},q,M);else{this.D("html5_sabr_csdai_seek_log")||(Y="");var G;t.seekTo(n,{zV:!q,g$:M,hQ:"application"+((G=Y)!=null?G:""),seekSource:c})}}; g.W.seekBy=function(n,q,M,t){this.seekTo(this.getCurrentTime()+n,q,M,t,void 0,"_by")}; g.W.Ki1=function(){this.oL.t1("SEEK_COMPLETE")}; g.W.inx=function(){this.oL.Km("onAbnormalityDetected")}; g.W.e9m=function(n){this.oL.Km("onSnackbarMessage",n)}; g.W.yQk=function(n){var q=this.tE(),M=q.getVideoData();if(this.appState===1||this.appState===2)M.startSeconds=n;this.appState===2?g.C(q.getPlayerState(),512)||LX(this):this.oL.t1("SEEK_TO",n)}; g.W.GXX=function(){this.oL.publish("airplayactivechange")}; g.W.nQx=function(){this.oL.publish("airplayavailabilitychange")}; g.W.showAirplayPicker=function(){this.tE().IN()}; g.W.rQX=function(){this.oL.publish("beginseeking")}; g.W.Dng=function(){this.oL.publish("endseeking")}; g.W.getStoryboardFormat=function(n){return(n=this.Cn({playerType:n}))?Xr(this,n).getStoryboardFormat():this.lz.X.getStoryboardFormat()}; g.W.p_=function(n){return(n=this.Cn({playerType:n}))?Xr(this,n).getVideoData().p_():this.lz.X.p_()}; g.W.Fb=function(n){n=(n||this.tE()).getVideoData();if(BS(this))n=n===this.QA.playback.getVideoData();else a:{var q=this.tQ;if(n===q.X.getVideoData()&&q.W.length)n=!0;else{q=g.S(q.W);for(var M=q.next();!M.done;M=q.next())if(n.DH===M.value.DH){n=!0;break a}n=!1}}return n}; g.W.Vj=function(n,q,M,t,c,Y,G,k){this.logger.debug(function(){return"Adding video to timeline id="+n.video_id+"\n lengthMs="+t+" enterTimeMs="+c}); var b="",d=BS(this);this.tE().Xy("appattl",{sstm:this.QA?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:d});d?(M=yZm(this.QA,n,q,M,t,c,Y,G),b=(M==null?void 0:M.DH)||"",(this.D("html5_ssdai_new_decoration_logic")||this.Xh().getVideoData().jn)&&this.Xh().sA(k||"",q,(M==null?void 0:M.clientPlaybackNonce)||"")):b=qsk(this.tQ,n,M,t,c,Y);this.logger.debug(function(){return"Video added to timeline id="+n.video_id+" timelinePlaybackId="+b}); return b}; g.W.pg=function(n,q,M,t,c,Y,G){if(BS(this)){var k,b=(k=this.QA)==null?void 0:yZm(k,n,q,M,t,c,Y,G);this.logger.debug(function(){return"Remaining video added to timeline id="+n.video_id+" timelinePlaybackId="+((b==null?void 0:b.DH)||"")})}}; g.W.DG=function(n){(this.D("html5_ssdai_new_decoration_logic")||this.Xh().getVideoData().jn)&&this.Xh().sA(n,"","");var q;(q=this.QA)==null||q.DG(n)}; g.W.lP=function(n,q){n=n===void 0?-1:n;q=q===void 0?Infinity:q;BS(this)||bZJ(this.tQ,n,q)}; g.W.UB=function(n,q,M){if(BS(this)){var t=this.QA,c=t.X.Cn({DH:n});c?(M===void 0&&(M=c.jG),vIU(t,c,q,M)):t.Vh("Invalid_timelinePlaybackId_"+n+"_specified")}else{t=this.tQ;c=null;for(var Y=g.S(t.W),G=Y.next();!G.done;G=Y.next())if(G=G.value,G.DH===n){c=G;break}c?(M===void 0&&(M=c.jG),kIa(t,c,q,M)):kY(t,"InvalidTimelinePlaybackId timelinePlaybackId="+n)}}; g.W.enqueueVideoByPlayerVars=function(n,q,M,t){M=M===void 0?Infinity:M;t=t===void 0?"":t;this.Fb();n=new g.sh(this.Q1,n);t&&(n.DH=t);MvC(this,n,q,M)}; g.W.queueNextVideo=function(n,q,M,t,c){M=M===void 0?NaN:M;n=this.preloadVideoByPlayerVars(n,q===void 0?1:q,M,t===void 0?"":t,c===void 0?"":c);q=this.tE();n&&(this.D("html5_check_queue_on_data_loaded")?this.T().supportsGaplessShorts()&&q.getVideoData().N&&(M=this.GH,t=this.d9.S,M.J!==n&&(M.W=q,M.J=n,M.Z=1,M.X=n.getVideoData(),M.S=t,M.X.isLoaded()?M.C():M.X.subscribe("dataloaded",M.C,M))):(M=lCk(q,n,this.d9.S),M!=null?(q.Xy("sgap",M),q.getVideoData().N&&q.Er(!1)):(n=n.getVideoData(),q=this.GH,q.X!== n&&(q.X=n,q.Z=1,n.isLoaded()?q.N():q.X.subscribe("dataloaded",q.N,q)))))}; g.W.Qo=function(n,q,M,t){var c=this;M=M===void 0?0:M;t=t===void 0?0:t;Xr(this,this.tE()).ob();Rjk(this.d9,n,q,M,t).then(function(){c.oL.dZ("onQueuedVideoLoaded")},function(){})}; g.W.d4=function(){return this.d9.d4()}; g.W.PD=function(n){var q=this.d9.X;return q?q.xX(n):!1}; g.W.clearQueue=function(n,q){n=n===void 0?!1:n;q=q===void 0?!1:q;this.logger.debug("Clearing queue");this.d9.clearQueue(n,q)}; g.W.loadVideoByPlayerVars=function(n,q,M,t,c,Y){q=q===void 0?1:q;var G=this.Xh();if(q===2&&this.F_().enableServerStitchedDai&&G&&!G.Td())return G.Xy("lvonss",{vid:(n==null?void 0:n.videoId)||"",ptype:q}),!1;var k=!1;G=new g.sh(this.Q1,n);G.fR=Y;g.PN(this.Q1)&&!G.xr&&s5(this.Si);var b;Y=this.Si;var d=(b=G.U)!=null?b:"";Y.timerName=d;this.Si.WH("pl_i");this.D("web_player_early_cpn")&&G.clientPlaybackNonce&&this.Si.infoGel({clientPlaybackNonce:G.clientPlaybackNonce});ghd(G).supportsVp9Encoding===!1&& this.tE().Xy("noVp9enc",{});if(this.T().supportsGaplessShorts()){b=zjs(this.d9,G,q);if(b==null){sG(this,-1);var N;((N=this.d9.X)==null?0:N.getVideoData().isAd())||Dk(this);n=this.d9;n.app.T().D("html5_gapless_new_slr")?UG(n.app,"gaplessshortslooprange"):n.app.setLoopRange(null);n.app.getVideoData().Gz=!0;var O;(O=n.X)==null||O.ju();var e;(e=n.X)==null||e.xZ();M={hQ:"gapless_to_next_video",seekSource:60,yu:n.S.X};t=g.ic(n.app.T().experiments,"html5_gapless_seek_offset");c=w1C(n);if(n.S.X){var E;G= ((E=n.Z)==null?void 0:a_(E))||{};E=G.gm;G=G.c9;G!=null&&E!=null&&(c=G-E+.001)}var h;(h=n.app.tE())==null||h.seekTo(c+t,M);if(!n.app.getPlayerStateObject(q).isPlaying()){var I;(I=n.app.tE())==null||I.playVideo(!0)}var L;(L=n.app.tE())==null||L.sD();n.N();return!0}h=this.D("html5_shorts_gapless_preload_fallback");I=this.d9.X;h&&I&&!I.qm()&&(L=I.getVideoData(),this.lz.S.set(Au(q,L),I,3600));this.d9.clearQueue(h);this.tE().Xy("sgap",{f:b})}if(c){for(;G.h_.length&&G.h_[0].isExpired();)G.h_.shift();h=G.h_.length- 1;k=h>0&&c.W(G.h_[h])&&c.W(G.h_[h-1]);G.h_.push(c)}M||(n&&OcU(n)?(j0(this.Q1)&&!this.qc&&(n.fetch=0),fX(this,n)):this.playlist&&fX(this,null),n&&(this.qc=pp(!1,n.external_list)));this.oL.publish("loadvideo");h=this.FR(G,q,t);k&&this.Rc("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+G.h_.join()).replace(/[;:,]/g,"_"));return h}; g.W.preloadVideoByPlayerVars=function(n,q,M,t,c){q=q===void 0?1:q;M=M===void 0?NaN:M;t=t===void 0?"":t;c=c===void 0?"":c;var Y=tv_(q,n,c),G=this.lz.S.get(Y)||null;if(G)return this.logger.debug(function(){return"already preloaded "+Y}),G; n=new g.sh(this.Q1,n);c&&(n.DH=c);return i2m(this,n,q,M,t)}; g.W.setMinimized=function(n){this.visibility.setMinimized(n);(n=RGk(this.bY))&&(this.isMinimized()?n.load():n.unload());this.oL.publish("minimized")}; g.W.setInline=function(n){this.visibility.setInline(n)}; g.W.setInlinePreview=function(n){this.visibility.setInline(n)}; g.W.c5=function(n){Yjd(this,n)||this.visibility.c5(n)}; g.W.setSqueezeback=function(n){this.visibility.setSqueezeback(n)}; g.W.OF=function(){var n,q=(n=this.mediaElement)==null?void 0:n.ji();q&&(this.Q1.BU&&wL(ah(function(){return document.exitFullscreen()}),function(){}),wL(ah(function(){return eo(q)}),function(){}))}; g.W.CYE=function(){this.mediaElement.ji();this.mediaElement.ji().webkitPresentationMode==="picture-in-picture"?this.c5(!0):this.c5(!1)}; g.W.togglePictureInPicture=function(){this.tE().togglePictureInPicture()}; g.W.FR=function(n,q,M){q=q===void 0?1:q;this.logger.debug(function(){return"start load video, id "+n.videoId+", type "+q}); v_("_start",this.Si.timerName)||g.Jo(yT)(void 0,this.Si.timerName);var t=!1,c=rR_(this,q,n,!1);c?(t=!0,n.dispose()):(c=WS(this,q,n,!0,M),(this.D("html5_onesie")||this.D("html5_load_before_stop"))&&c.aV()&&c.HU(),this.Fl.stop(),q===1&&q!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,q),this.NZ(c));c===this.Xh()&&(this.Q1.g4=n.oauthToken);if(!c.aV())return!1;if(c===this.Xh())return this.E5(1),M=LX(this),t&&this.D("html5_player_preload_ad_fix")&&c.getPlayerType()===1&& c.Sm()&&this.OQ("dataloaded",c,c.getVideoData()),M;c.Zc();return!0}; g.W.cueVideoByPlayerVars=function(n,q){var M=this;q=q===void 0?1:q;var t=this.Xh();if(this.F_().enableServerStitchedDai&&t&&!t.Td()&&n&&Object.keys(n).length>0)t.Xy("qvonss",{vid:(n==null?void 0:n.videoId)||"",ptype:q});else if(n&&OcU(n))if(this.Ju=!0,fX(this,n),(n=g.Xg(this.playlist))&&n.ET())$Y(this,n,q);else this.playlist.onReady(function(){HS(M)}); else{q||(q=this.getPresentingPlayerType());q===1&&this.Mf();t=new g.sh(this.Q1,n);var c=g.t8(this.Q1)&&!this.Q1.RL&&q===1&&!t.isAd()&&!t.YB;this.oL.publish("cuevideo");c?(this.tE().getVideoData().loading=!0,sLU(t,n?n:{}).then(function(Y){$Y(M,Y,q)}),t.dispose()):$Y(this,t,q)}}; g.W.u4=function(n,q,M,t,c,Y,G){if(!n&&!M)throw Error("Playback source is invalid");if(Yl(this.Q1)||g.e$(this.Q1))return q=q||{},q.lact=sc(),q.vis=this.oL.getVisibilityState(),this.oL.Km("onPlayVideo",{videoId:n,watchEndpoint:Y,sessionData:q,listId:M}),!1;djd(this.Si);this.Si.reset();n={video_id:n};t&&(n.autoplay="1");t&&(n.autonav="1");Y&&(n.player_params=Y.playerParams);G&&(n.oauth_token=G);M?(n.list=M,this.loadPlaylist(n)):this.loadVideoByPlayerVars(n,1);return!0}; g.W.cuePlaylist=function(n,q,M,t){this.Ju=!0;GhR(this,n,q,M,t)}; g.W.loadPlaylist=function(n,q,M,t){this.Ju=!1;GhR(this,n,q,M,t)}; g.W.mM=function(){return this.oL.isMutedByMutedAutoplay()?!1:this.lz.zp?!0:!(!this.playlist||!this.playlist.tI())}; g.W.oi=na(5); g.W.nextVideo=function(n,q){var M=g.Lt(this.Xh().getVideoData());g.MW(this.oL)&&M?this.u4(M.videoId,q?M.G2:M.sessionData,M.playlistId,q,void 0,M.qN||void 0):this.qc?this.oL.dZ("onPlaylistNext"):this.getPresentingPlayerType()===3?rZ(this.bY).nextVideo():!this.playlist||j0(this.Q1)&&!this.oL.isFullscreen()||(this.playlist.tI(n)&&ENf(this.playlist,gNd(this.playlist)),this.playlist.loaded?(n=q&&this.Q1.D("html5_player_autonav_logging"),q&&this.oL.publish("playlistautonextvideo"),this.FR(g.Xg(this.playlist,void 0, q,n),1)):this.Ju=!1)}; g.W.previousVideo=function(n){this.qc?this.oL.dZ("onPlaylistPrevious"):this.getPresentingPlayerType()===3?rZ(this.bY).LS():!this.playlist||j0(this.Q1)&&!this.oL.isFullscreen()||(this.playlist.Ra(n)&&ENf(this.playlist,eGf(this.playlist)),this.playlist.loaded?this.FR(g.Xg(this.playlist),1):this.Ju=!1)}; g.W.playVideoAt=function(n){this.qc?this.oL.dZ("onPlaylistIndex",n):this.playlist&&(this.playlist.loaded?this.FR(g.Xg(this.playlist,n),1):this.Ju=!1,ENf(this.playlist,n))}; g.W.getPlaylist=function(){return this.playlist}; g.W.Ha=na(19);g.W.uR=function(n){this.HF=g.Pl(this.HF,function(Y){return Y.id!==n}); for(var q=this.Xh(),M=q.KT(),t=0;t0&&(b=Math.floor(d/1E3))}b=q?q.Dy:b;var N={AD_BLOCK:this.X++,AD_BREAK_LENGTH:b,AUTONAV_STATE:aA(this.player.T()),CA_TYPE:"image",CPN:k.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.o2()*1E3,LACT:sc(),LIVE_INDEX:q?this.Z++:1,LIVE_TARGETING_CONTEXT:q&&q.context?q.context:"",MIDROLL_POS:Y? Math.round(Y.start/1E3):0,MIDROLL_POS_MS:Y?Math.round(Y.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Lm().Ig().height,P_W:this.player.Lm().Ig().width,YT_REMOTE:c?c.join(","):""},O=Ye(ck);Object.keys(O).forEach(function(E){O[E]!=null&&(N[E.toUpperCase()]=O[E].toString())}); M!==""&&(N.BISCOTTI_ID=M);M={};tP(n)&&(M.sts="20328",(q=this.player.T().forcedExperiments)&&(M.forced_experiments=q));var e=qs(g.LO(n,N),M);return e.split("?").length!==2?UN(Error("Invalid AdBreakInfo URL")):g.BN(this.player.T(),k==null?void 0:k.oauthToken).then(function(E){if(E&&il()){var h=c8();Yz(h,E)}E=t.player.Ou(h);h=F0u(t,e,N,k.isMdxPlayback,G);return g.B_(E,h,"/youtubei/v1/player/ad_break").then(function(I){return I})})}; RA.prototype.reset=function(){this.Z=this.X=1};g.y(Z2J,RA); Z2J.prototype.W=function(n,q,M){q=q===void 0?{}:q;var t=q.q2;var c=q.sN;var Y=q.cueProcessedMs;M=M===void 0?"":M;q=this.X;this.X++;var G=this.player.T().D("h5_disable_macro_substitution_in_get_ad_break")?n:aQC(this,n,{q2:t,sN:c,cueProcessedMs:Y},M,q);if(G.split("?").length!==2)return Math.random()<.1&&g.PJ(Error("Invalid AdBreakInfo URL")),UN(Error("Invalid AdBreakInfo URL"));var k=this.player.getVideoData(1).isMdxPlayback,b=M;M=Ugs.exec(G);M=M!=null&&M.length>=2?M[1]:"";n=unk.test(G);var d=B7U.exec(G); d=d!=null&&d.length>=2?d[1]:"";var N=Dgj.exec(G);N=N!=null&&N.length>=2&&!Number.isNaN(Number(N[1]))?Number(N[1]):1;var O=ADj.exec(G);O=O!=null&&O.length>=2?O[1]:"0";var e=e0(this.player.T().AG),E=g.Cz(this.player.getVideoData(1).SX,!0);H2d(this,E,G,b===""?"":b,this.player.T(),this.player.getVideoData(1));b={splay:!1,lactMilliseconds:String(sc()),playerHeightPixels:Math.trunc(this.player.Lm().Ig().height),playerWidthPixels:Math.trunc(this.player.Lm().Ig().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20328,autonavState:aA(this.player.T())};if(k){k={};var h=this.player.T().yH;vfa(k,h?h.join(","):"")&&(b.mdxContext=k)}if(k=mgm.includes(e)?void 0:g.UH("PREF")){h=k.split(RegExp("[:&]"));for(var I=0,L=h.length;I1&&T[1].toUpperCase()==="TRUE"){E.user.lockedSafetyMode=!0;break}}b.autoCaptionsDefaultOn=lQm(k)}G=$gj.exec(G);(G=G!=null&&G.length>=2?G[1]:"")&&d&&(E.user.credentialTransferTokens= [{token:G,scope:"VIDEO"}]);G={contentPlaybackContext:b};b=this.player.getVideoData(1).getGetAdBreakContext();k=this.player.getVideoData(1).clientPlaybackNonce;h=Y!==void 0?Math.round(Y).toString():void 0;I=(t==null?0:t.context)?t.context:void 0;L=0;Y&&c&&!t&&(c=c.end-c.start,c>0&&(L=Math.floor(c/1E3)));t=(t=Math.trunc((t?t.Dy:L)*1E3))?String(t):void 0;c=this.player.o2()*1E3;c=Number.isNaN(c)?0:Math.trunc(c);q={adBlock:q,params:M,breakIndex:N,breakPositionMs:O,clientPlaybackNonce:k,topLevelDomain:e, isProxyAdTagRequest:n,context:E,overridePlaybackContext:G,cueProcessedMs:h,videoId:d?d:void 0,liveTargetingParams:I,breakLengthMs:t,driftFromHeadMs:c?String(c):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:b?b:void 0};return R$j(this,q)};var MlO={DDb:"replaceUrlMacros",A_J:"onAboutThisAdPopupClosed",l7J:"executeCommand"};ofC.prototype.O3=function(){return"adPingingEndpoint"}; ofC.prototype.eg=function(n,q,M){LCF(this.Gs.get(),n,q,M)};wwC.prototype.O3=function(){return"changeEngagementPanelVisibilityAction"}; wwC.prototype.eg=function(n){this.G.Km("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:n})};z$C.prototype.O3=function(){return"loggingUrls"}; z$C.prototype.eg=function(n,q,M){n=g.S(n);for(var t=n.next();!t.done;t=n.next())t=t.value,LCF(this.Gs.get(),t.baseUrl,q,M,t.attributionSrcMode)};g.y(Vva,g.F);g.y(wG,g.F);g.W=wG.prototype;g.W.addListener=function(n){this.listeners.push(n)}; g.W.removeListener=function(n){this.listeners=this.listeners.filter(function(q){return q!==n})}; g.W.t9=function(n,q,M,t,c,Y,G,k){if(n==="")Kz("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(n!==this.X||M){this.X=n;this.gJ.get().t9(n,q,M,t,c,Y,G,k);this.Dk.get().t9(n,q,M,t,c,Y,G,k);var b;(b=this.Hm)==null||b.get().t9(n,q,M,t,c,Y,G,k);this.W.t9(n,q,M,t,c,Y,G,k);b=g.S(this.listeners);for(var d=b.next();!d.done;d=b.next())d.value.t9(n,q,M,t,c,Y,G,k)}else Kz("Duplicate content video loaded signal")}; g.W.bd1=function(){this.X&&this.KL(this.X)}; g.W.KL=function(n){this.X=void 0;for(var q=g.S(this.listeners),M=q.next();!M.done;M=q.next())M.value.KL(n)};zr.prototype.ZT=function(n,q,M,t,c){CFd(this);this.S=!q&&M===0;var Y=this.G.getVideoData(1),G=this.G.getVideoData(2);Y&&(this.contentCpn=Y.clientPlaybackNonce,this.videoId=Y.videoId,this.X=Y.C);G&&(this.adCpn=G.clientPlaybackNonce,this.adVideoId=G.videoId,this.adFormat=G.adFormat);this.J=n;t<=0?(CFd(this),this.S=!q&&M===0):(this.actionType=this.S?q?"unknown_type":"video_to_ad":q?"ad_to_video":"ad_to_ad",this.videoStreamType=c?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Z=!0,v_("_start",this.actionType)&&Qu1(this)))}; zr.prototype.reset=function(){return new zr(this.G)};g.y(Ju,g.F);Ju.prototype.addCueRange=function(n,q,M,t,c,Y,G,k,b){Y=Y===void 0?3:Y;G=G===void 0?1:G;this.X.has(n)?Kz("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:n}):(n=new pwj(n,q,M,t,Y,k,b),this.X.set(n.id,{sN:n,listener:c,X5:G}),this.G.y6([n],G))}; Ju.prototype.removeCueRange=function(n){var q=this.X.get(n);q?(this.G.Li([q.sN],q.X5),this.X.delete(q.sN.id)):Kz("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:n})}; Ju.prototype.onCueRangeEnter=function(n){if(this.X.has(n.id))this.X.get(n.id).listener.onCueRangeEnter(n.id)}; Ju.prototype.onCueRangeExit=function(n){if(this.X.has(n.id))this.X.get(n.id).listener.onCueRangeExit(n.id)}; g.y(pwj,g.Ji);V2.prototype.addPlayerResponseForAssociation=function(n){this.G.addPlayerResponseForAssociation(n)};CX.prototype.Pi=function(n){this.G.Pi(n)}; CX.prototype.YH=function(n){var q=g.Fm.apply(1,arguments);n==="onAdStart"||n==="onAdEnd"?this.G.t1.apply(this.G,[n].concat(g.EJ(q))):this.G.Km.apply(this.G,[n].concat(g.EJ(q)))};rG.prototype.D6=function(n){return n&&xY(this)};var dRs=null;g.y(baK,g.MB);baK.prototype.fJ=function(n){return this.X.hasOwnProperty(n)?this.X[n].fJ():{}}; g.nQ("ytads.bulleit.getVideoMetadata",function(n){return Q2().fJ(n)}); g.nQ("ytads.bulleit.triggerExternalActivityEvent",function(n,q,M){var t=Q2();M=kUF(M);M!==null&&t.publish(M,{queryId:n,viewabilityString:q})});g.W=pX.prototype;g.W.bS=function(n,q){if(!this.X.has(n))return{};if(q==="seek"){q=!1;q=q===void 0?!1:q;var M=ji(Vo).Vo(n,{});M?Rs(M):q&&(n=ji(Vo).Ed(null,um(),!1,n),n.hP=3,sPs([n]));return{}}q=OaQ(q);if(q===null)return{};var t=this.G.ye();if(!t)return{};var c=this.G.getPresentingPlayerType(!0);if((M=this.G.getVideoData(c))==null||!M.isAd())return{};M={opt_adElement:t,opt_fullscreen:this.gJ.get().isFullscreen()};return sxd(q,n,M)}; g.W.dF=function(n,q,M,t,c){this.X.has(n)&&(t<=0||c<=0||ji(Vo).dF(n,q,M,t,c))}; g.W.ym=function(n){var q;(q=this.X.get(n.queryId))==null||q.ym()}; g.W.KF=function(n){var q;(q=this.X.get(n.queryId))==null||q.KF()}; g.W.Hr=function(n){var q;(q=this.X.get(n.queryId))==null||q.Hr()}; g.W.sR=function(n){var q;(q=this.X.get(n.queryId))==null||q.sR()}; g.W.Vm=function(n){var q;(q=this.X.get(n.queryId))==null||q.Vm()};jjn.prototype.send=function(n,q,M,t){try{SJs(this,n,q,M,t===void 0?!1:t)}catch(c){}};g.y(IsT,jjn);fsF.prototype.send=function(n,q,M,t){var c=!1;try{if(t==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||t==="ATTRIBUTION_SRC_MODE_XHR_OPTION")c=!0,n=YkC(n);t=c;var Y=g.kO(n);if(Y[1]==="https")var G=n;else Y[1]="https",G=KN("https",Y[2],Y[3],Y[4],Y[5],Y[6],Y[7]);var k=YZs(G);Y=[];var b=Jbf(G)&&this.Zk.get().G.T().experiments.Hb("add_auth_headers_to_remarketing_google_dot_com_ping");if(tP(G)||b)Y.push({headerType:"USER_AUTH"}),Y.push({headerType:"PLUS_PAGE_ID"}),Y.push({headerType:"VISITOR_ID"}),Y.push({headerType:"EOM_VISITOR_ID"}), Y.push({headerType:"AUTH_USER"}),Y.push({headerType:"DATASYNC_ID"});this.X.send({baseUrl:G,scrubReferrer:k,headers:Y},q,M,t)}catch(d){}};cM.prototype.jC=function(){return this.G.jC(1)};g.y(YN,g.F);g.W=YN.prototype;g.W.AI=function(){return this.G.getVideoData(1).clientPlaybackNonce}; g.W.addListener=function(n){this.listeners.push(n)}; g.W.removeListener=function(n){this.listeners=this.listeners.filter(function(q){return q!==n})}; g.W.t9=function(){this.f0.clear();this.vD=null;this.vO.get().clear()}; g.W.KL=function(){}; g.W.Q1x=function(n,q,M,t,c){q.videoId==="nPpU29QrbiU"&&this.G.Xy("ads_ssm_vdc_s",{pt:M,dvt:n});QC(this.Zk.get())&&n!=="dataloaded"||BdQ(this,q,M);if(xY(this.Zk.get())&&n==="newdata"&&c!==void 0){n=this.AI();var Y=q.clientPlaybackNonce,G={};b_(this,"rte",(G.ec=Y,G.xc=t==null?void 0:t.clientPlaybackNonce,G.tr=c,G.pt=M,G.ia=Y!==n,G.ctp=kJ(Y),G));q=q.clientPlaybackNonce;t=t==null?void 0:t.clientPlaybackNonce;c=DRs(c);if(c!==1)if(t!==void 0)for(M=g.S(this.listeners),n=M.next();!n.done;n=M.next())n.value.uK(t, q,c);else Kz("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:q,transitionReason:String(c)});c=g.S(this.listeners);for(t=c.next();!t.done;t=c.next())t.value.Wi(q)}}; g.W.O8g=function(n,q){n!==void 0&&(this.vD=n,q===void 0?Kz("Expected ad video start time on SS video changed"):this.f0.set(n,q));var M=this.G.getPresentingPlayerType(!0),t=this.G.getVideoData(M),c;n===void 0?c=null:c=this.vO.get().X.get(n)||null;this.G.getVideoData(1).Xy("ads_ssvc",{pt:M,cpn:t==null?void 0:t.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:q,pid:n,slid:c==null?void 0:c.layoutId});t?BdQ(this,t,M):Kz("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:n})}; g.W.wl=function(n,q){var M=n.author,t=n.clientPlaybackNonce,c=n.isListed,Y=n.DH,G=n.title,k=n.We,b=n.v_,d=n.isMdxPlayback,N=n.Ww,O=n.mdxEnvironment,e=n.isAutonav,E=n.Le,h=n.xr,I=n.IV,L=n.videoId||"",T=n.profilePicture||"",v=n.xp||"",B=n.m4()||!1,m=n.oI()||!1;n=n.QI||void 0;Y=this.vO.get().X.get(Y)||{layoutId:null,slotId:null};var a=this.G.getVideoData(1),x=a.r7();a=a.getPlayerResponse();q=1E3*this.G.getDuration(q);var V=1E3*this.G.getDuration(1),bf,Ka,dd=(a==null?void 0:(bf=a.playerConfig)==null? void 0:(Ka=bf.daiConfig)==null?void 0:Ka.enableDai)||!1,gd,MR;bf=(a==null?void 0:(gd=a.playerConfig)==null?void 0:(MR=gd.daiConfig)==null?void 0:MR.enablePreroll)||!1;return Object.assign({},Y,{videoId:L,author:M,clientPlaybackNonce:t,Y_:q,m8:V,daiEnabled:dd,Se:bf,isListed:c,r7:x,profilePicture:T,title:G,xp:v,We:k,v_:b,QI:n,isMdxPlayback:d,Ww:N,mdxEnvironment:O,isAutonav:e,Le:E,xr:h,IV:I,m4:B,oI:m})}; g.W.ut=function(){this.listeners.length=0;this.fE=null;g.F.prototype.ut.call(this)};g.y(GQ,g.F);g.W=GQ.prototype;g.W.t9=function(){var n=this;xY(this.Zk.get())||(this.X=Dx(function(){n.G.qm()||n.G.fu("ad",1)}))}; g.W.KL=function(){}; g.W.addListener=function(n){this.listeners.push(n)}; g.W.removeListener=function(n){this.listeners=this.listeners.filter(function(q){return q!==n})}; g.W.mw=function(){}; g.W.playVideo=function(){this.G.playVideo()}; g.W.pauseVideo=function(){this.G.pauseVideo()}; g.W.resumeVideo=function(n){this.b4(n)&&this.G.playVideo()}; g.W.b4=function(n){return this.G.getPlayerState(n)===2}; g.W.getCurrentTimeSec=function(n,q,M){var t=this.Dk.get().vD;if(n===2&&!q&&t!==null)return bt(this,t);$8(this.Zk.get(),"html5_ssap_use_cpn_to_get_time")||(M=void 0);return M!==void 0?this.G.getCurrentTime(n,q,M):this.G.getCurrentTime(n,q)}; g.W.getVolume=function(){return this.G.getVolume()}; g.W.isMuted=function(){return this.G.isMuted()}; g.W.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)}; g.W.getPlayerState=function(n){return this.G.getPlayerState(n)}; g.W.getGetAdBreakContext=function(){return this.G.getGetAdBreakContext()}; g.W.isFullscreen=function(){return this.G.isFullscreen()}; g.W.isAtLiveHead=function(){return this.G.isAtLiveHead()}; g.W.Tj=function(n){this.G.Tj(n)}; g.W.Wqt=function(){var n=this.G.getPresentingPlayerType(!0),q=this.getCurrentTimeSec(n,!1);if(n===2){n=g.S(this.listeners);for(var M=n.next();!M.done;M=n.next())M.value.Ye(q)}else if(n===1)for(n=g.S(this.Rv),M=n.next();!M.done;M=n.next())M.value.mw(q)}; g.W.NoL=function(n){for(var q=g.S(this.listeners),M=q.next();!M.done;M=q.next())M.value.Vx(n,this.getPresentingPlayerType())}; g.W.onFullscreenToggled=function(n){for(var q=g.S(this.listeners),M=q.next();!M.done;M=q.next())M.value.onFullscreenToggled(n)}; g.W.onVolumeChange=function(){for(var n=g.S(this.listeners),q=n.next();!q.done;q=n.next())q.value.onVolumeChange()}; g.W.lS=function(){for(var n=this.G.isMinimized(),q=g.S(this.listeners),M=q.next();!M.done;M=q.next())M.value.lS(n)}; g.W.Nc=function(n){for(var q=g.S(this.listeners),M=q.next();!M.done;M=q.next())M.value.Nc(n)}; g.W.Tk=function(){for(var n=this.G.Lm().Ig(),q=g.S(this.listeners),M=q.next();!M.done;M=q.next())M.value.QH(n)}; g.W.Os=function(n){for(var q=g.S(this.listeners),M=q.next();!M.done;M=q.next())M.value.Os(n)}; g.W.h9=function(){for(var n=g.S(this.listeners),q=n.next();!q.done;q=n.next())q.value.h9()};g.y(FCD,g.F);g.y(OQ,g.F);OQ.prototype.ut=function(){this.Qf.qm()||this.Qf.get().removeListener(this);g.F.prototype.ut.call(this)};g_.prototype.fetch=function(n){var q=n.AS;return this.X.fetch(n.AU,{q2:n.q2===void 0?void 0:n.q2,sN:q,cueProcessedMs:n.cueProcessedMs===void 0?0:n.cueProcessedMs}).then(function(M){return ZaT(M,q)})};g.y(ex,g.F);g.W=ex.prototype;g.W.addListener=function(n){this.listeners.push(n)}; g.W.removeListener=function(n){this.listeners=this.listeners.filter(function(q){return q!==n})}; g.W.HM=function(n){ass(this,n,1)}; g.W.onAdUxClicked=function(n,q){EQ(this,function(M){M.IQ(n,q)})}; g.W.qk=function(n){EQ(this,function(q){q.QG(n)})}; g.W.nj=function(n){EQ(this,function(q){q.vQ(n)})}; g.W.WAs=function(n){EQ(this,function(q){q.L2(n)})};h1.prototype.reduce=function(n){switch(n.event){case "unknown":return}var q=n.identifier;var M=this.X[q];M?q=M:(M={Z5:null,Lt:-Infinity},q=this.X[q]=M);M=n.startSecs+n.X/1E3;if(!(M=this.X.startSecs&&M.startSecs<=this.X.startSecs+this.X.Dy)){var t=void 0;if(pw(this.Zk.get())&&M.identifier!==((t=this.X)==null?void 0:t.identifier)){var c=t=void 0,Y=void 0,G=void 0;U0(this.Gs.get(),"ocud","ccpi."+M.identifier+";ccpe."+M.event+";ccps."+M.startSecs+";\n ccpd."+M.Dy+";pcpi."+((t=this.X)==null?void 0:t.identifier)+ ";pcpe."+((c=this.X)==null?void 0:c.event)+";\n pcps."+((Y=this.X)==null?void 0:Y.startSecs)+";pcpd."+((G=this.X)==null?void 0:G.Dy)+";")}t=void 0;M.identifier!==((t=this.X)==null?void 0:t.identifier)&&Kz("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.X=M,wdA(this,M)}}; g.W.ut=function(){this.W!=null&&(this.W.unsubscribe("cuepointupdated",this.OU,this),this.W=null);this.listeners.length=0;this.SF.length=0;g.F.prototype.ut.call(this)};g.W=sQ.prototype;g.W.Vj=function(n,q,M,t,c,Y,G,k){return this.G.Vj(n,q,M,t,c,Y,G,k)}; g.W.lP=function(n,q){this.G.lP(n,q)}; g.W.UB=function(n,q,M){this.G.UB(n,q,M)}; g.W.DG=function(n){this.G.DG(n)}; g.W.pg=function(n,q,M,t,c,Y,G,k){this.G.pg(n,q,M,t,c,Y,G,k)}; g.W.kp=function(n){return this.G.kp(n)}; g.W.finishSegmentByCpn=function(n,q,M){M=VkF(M);this.G.finishSegmentByCpn(n,q,M)};g.y(Xe,g.F);g.y(r_s,g.F);g.y(xRK,g.F);g.y(Qjs,g.F);g.y(pdF,g.F);g.y(nwT,g.F);g.y(MSd,g.F);MSd.prototype.Z=function(){return this.W};g.y(iQw,ZX); iQw.prototype.Z=function(n){var q=n.content;if(q.componentType==="shopping-companion")switch(n.actionType){case 1:case 2:n=this.X.getVideoData(1);this.X.Km("updateKevlarOrC3Companion",{contentVideoId:n&&n.videoId,shoppingCompanionCarouselRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.X,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:this.X.Km("updateKevlarOrC3Companion",{})}else if(q.componentType==="action-companion")switch(n.actionType){case 1:case 2:n=this.X.getVideoData(1); this.X.Km("updateKevlarOrC3Companion",{contentVideoId:n&&n.videoId,actionCompanionAdRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.X,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q.renderer&&(q=this.X.getVideoData(1),this.X.Km("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId})),this.X.Km("updateKevlarOrC3Companion",{})}else if(q.componentType==="image-companion")switch(n.actionType){case 1:case 2:n=this.X.getVideoData(1);this.X.Km("updateKevlarOrC3Companion", {contentVideoId:n&&n.videoId,imageCompanionAdRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.X,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q=this.X.getVideoData(1),this.X.Km("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId}),this.X.Km("updateKevlarOrC3Companion",{})}else if(q.componentType==="top-banner-image-text-icon-buttoned")switch(n.actionType){case 1:case 2:n=this.X.getVideoData(1);this.X.Km("updateKevlarOrC3Companion", {contentVideoId:n&&n.videoId,topBannerImageTextIconButtonedLayoutViewModel:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.X,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q.renderer&&(q=this.X.getVideoData(1),this.X.Km("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId})),this.X.Km("updateKevlarOrC3Companion",{})}else if(q.componentType==="banner-image")switch(n.actionType){case 1:case 2:n=this.X.getVideoData(1);this.X.Km("updateKevlarOrC3Companion", {contentVideoId:n&&n.videoId,bannerImageLayoutViewModel:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.X,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q=this.X.getVideoData(1),this.X.Km("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId}),this.X.Km("updateKevlarOrC3Companion",{})}else if(q.componentType==="ads-engagement-panel")switch(q=q.renderer,n.actionType){case 1:case 2:this.X.Km("updateEngagementPanelAction",q.addAction);this.X.Km("changeEngagementPanelVisibility", q.expandAction);break;case 3:this.X.Km("changeEngagementPanelVisibility",q.hideAction),this.X.Km("updateEngagementPanelAction",q.removeAction)}else if(q.componentType==="ads-engagement-panel-layout"){var M=q.renderer;switch(n.actionType){case 1:case 2:this.X.Km("updateEngagementPanelAction",{action:Uy(M.addAction),layoutId:q.layoutId,onLayoutVisibleCallback:q.X,interactionLoggingClientData:q.interactionLoggingClientData});this.X.Km("changeEngagementPanelVisibility",Uy(M.expandAction));break;case 3:this.X.Km("changeEngagementPanelVisibility", Uy(M.hideAction)),this.X.Km("updateEngagementPanelAction",{action:Uy(M.removeAction)})}}};g.y(tSw,C$);g.W=tSw.prototype;g.W.init=function(n,q,M){C$.prototype.init.call(this,n,q,M);g.wK(this.Z,"stroke-dasharray","0 "+this.W);this.Z.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.S.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.J.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){xR(this);C$.prototype.hide.call(this)}; g.W.show=function(){rW(this);C$.prototype.show.call(this)}; g.W.Ew=function(){this.hide()}; g.W.EQ=function(){if(this.X){var n=this.X.getProgressState();n!=null&&n.current!=null&&g.wK(this.Z,"stroke-dasharray",n.current/n.seekableEnd*this.W+" "+this.W)}};g.y(cFs,K$);g.W=cFs.prototype; g.W.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);if(q.image&&q.image.thumbnail)if(q.headline)if(q.description)if(q.backgroundImage&&q.backgroundImage.thumbnail)if(q.actionButton&&g.R(q.actionButton,g.N_))if(n=q.durationMilliseconds||0,typeof n!=="number"||n<=0)g.Ly(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+n));else if(q.navigationEndpoint){var t=this.api.getVideoData(2);if(t!=null){var c=q.image.thumbnail.thumbnails;c!=null&& c.length>0&&g.UC(g.Up(c[0].url))&&(c[0].url=t.profilePicture,g.UC(g.Up(t.profilePicture))&&arf("VideoPlayer",239976093,"Expected non-empty profile picture."));c=q.backgroundImage.thumbnail.thumbnails;c!=null&&c.length>0&&g.UC(g.Up(c[0].url))&&(c[0].url=t.b7());c=q.headline;c!=null&&g.UC(g.Up(c.text))&&(c.text=t.author)}this.U.init(n$("ad-image"),q.image,M);this.S.init(n$("ad-text"),q.headline,M);this.Z.init(n$("ad-text"),q.description,M);this.AE.init(n$("ad-image"),q.backgroundImage,M);t=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.S.element.classList.add("ytp-ad-action-interstitial-headline-light");this.Z.element.classList.add("ytp-ad-action-interstitial-description-light");t.push("ytp-ad-action-interstitial-action-button-dark");this.api.T().W&&(t.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),t.push("ytp-ad-action-interstitial-action-button-dark"));this.api.T().D("enable_unified_action_endcap_on_web")&& !this.api.T().W&&(t.push("ytp-ad-action-interstitial-action-button-unified"),this.Yl.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.eX.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.yA.classList.add("ytp-ad-action-interstitial-card-unified"),this.RL.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.IL.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.SX.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.rJ.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new v4(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,t);g.Z(this,this.actionButton);this.actionButton.dJ(this.Yl); this.actionButton.init(n$("button"),g.R(q.actionButton,g.N_),M);ZD(this.actionButton.element);t=oD(this.actionButton.element);RD(this.actionButton.element,t+" This link opens in new tab");this.navigationEndpoint=q.navigationEndpoint;this.J.V(this.SX,"click",this.BG,this);this.J.V(this.RL,"click",this.BG,this);!this.api.T().D("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.T().W||this.J.V(this.IL,"click",this.BG,this);this.X=this.N$?new WD(this.api,n):new yQ(n);g.Z(this,this.X);if(q.skipButton){(n= g.R(q.skipButton,e3T))&&this.X&&(this.skipButton=new NZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.X,this.V2),g.Z(this,this.skipButton),this.skipButton.dJ(this.element),this.skipButton.init(n$("skip-button"),n,M));if(M=q.adBadgeRenderer)if(M=g.R(M,gZT))n=new Ev(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,!0,!0),n.dJ(this.rJ),n.init(n$("simple-ad-badge"),M,this.macros),g.Z(this,n);if(M=q.adInfoRenderer)if(M=g.R(M,bk))n=new z2(this.api,this.layoutId,this.interactionLoggingClientData, this.Nm,this.element,void 0,!0),n.dJ(this.rJ),n.init(n$("ad-info-hover-text-button"),M,this.macros),g.Z(this,n)}else q.nonskippableOverlayRenderer&&(n=g.R(q.nonskippableOverlayRenderer,dt))&&this.X&&(this.W=new nz(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.X,!1),g.Z(this,this.W),this.W.dJ(this.element),this.W.init(n$("ad-preview"),n,M));q.countdownRenderer&&(q=q.countdownRenderer,g.R(q,EZs)&&this.X&&(M=new tSw(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm, this.X),g.Z(this,M),M.dJ(this.element),M.init(n$("timed-pie-countdown"),g.R(q,EZs),this.macros)));this.show();this.element.focus()}else g.Ly(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Ly(Error("AdActionInterstitialRenderer has no button."));else g.Ly(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Ly(Error("AdActionInterstitialRenderer has no description AdText."));else g.Ly(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Ly(Error("AdActionInterstitialRenderer has no image."))}; g.W.clear=function(){g.fL(this.J);this.hide()}; g.W.show=function(){YFS(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.W&&this.W.show();K$.prototype.show.call(this)}; g.W.hide=function(){YFS(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.W&&this.W.hide();K$.prototype.hide.call(this)}; g.W.BG=function(){this.navigationEndpoint&&(this.layoutId?this.Nm.executeCommand(this.navigationEndpoint,this.layoutId):g.Ly(Error("Missing layoutId for ad action interstitial.")))};var dDL={iconType:"CLOSE"},fc=new g.JE(320,63);g.y(bQD,K$);g.W=bQD.prototype; g.W.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);this.J=q;this.U=g.un(this.J.onClickCommands||[]);this.rJ=this.J.onErrorCommand||null;if(n=this.J.contentSupportedRenderer)n=this.J.contentSupportedRenderer,q=this.J.adInfoRenderer||null,g.R(n,dEw)?(this.S=g.kZ("ytp-ad-overlay-ad-info-button-container",this.Z.element),NTQ(this,q),n=gwS(this,g.R(n,dEw))):g.R(n,NKn)?(this.S=g.kZ("ytp-ad-overlay-ad-info-button-container",this.W.element),NTQ(this,q),n=edK(this,g.R(n,NKn))):g.R(n,O7A)?(this.S= g.kZ("ytp-ad-overlay-ad-info-button-container",this.X.element),NTQ(this,q),n=EwL(this,g.R(n,O7A))):(g.Ly(Error("InvideoOverlayAdRenderer content could not be initialized.")),n=!1);n&&(this.show(),hdA(this,!0))}; g.W.clear=function(){hdA(this,!1);this.SX.reset();this.RL=0;this.Z.hide();this.logVisibility(this.Z.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.X.hide();this.logVisibility(this.X.element,!1);this.hide();this.dispose()}; g.W.Eyl=function(){this.Yl&&(this.layoutId?this.Nm.executeCommand(this.Yl,this.layoutId):g.Ly(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.W.Ap=function(){a:{if(this.J&&this.J.closeButton&&this.J.closeButton.buttonRenderer){var n=this.J.closeButton.buttonRenderer;if(n.serviceEndpoint){n=[n.serviceEndpoint];break a}}n=[]}n=g.S(n);for(var q=n.next();!q.done;q=n.next())q=q.value,this.layoutId?this.Nm.executeCommand(q,this.layoutId):g.Ly(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.W.Xgy=function(){this.AE||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.W.xf=function(){this.AE||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.xf("invideo-overlay")}; g.W.RHE=function(n){n.target===this.S&&g.kZ("ytp-ad-button",this.eX.element).click()};g.y(WKF,C$);g.W=WKF.prototype;g.W.init=function(n,q,M){C$.prototype.init.call(this,n,q,M);n=q.durationMs;this.Z=n==null||n===0?0:n+this.X.getProgressState().current*1E3;if(q.text)var t=q.text.templatedAdText;else q.staticMessage&&(t=q.staticMessage);this.messageText.init(n$("ad-text"),t,M);this.messageText.dJ(this.W.element);this.J.show(100);this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){yFs(this,!1);C$.prototype.hide.call(this);this.W.hide();this.messageText.hide();xR(this)}; g.W.show=function(){yFs(this,!0);C$.prototype.show.call(this);rW(this);this.W.show();this.messageText.show()}; g.W.Ew=function(){this.hide()}; g.W.EQ=function(){if(this.X!=null){var n=this.X.getProgressState();n!=null&&n.current!=null&&(n=1E3*n.current,!this.RL&&n>=this.Z?(this.J.hide(),this.RL=!0):this.messageText&&this.messageText.isTemplated()&&(n=Math.max(0,Math.ceil((this.Z-n)/1E3)),n!==this.S&&(VX(this.messageText,{TIME_REMAINING:String(n)}),this.S=n)))}};g.y(sGF,K$);g.W=sGF.prototype; g.W.init=function(n,q,M){K$.prototype.init.call(this,n,q,{});q.image&&q.image.thumbnail?q.headline?q.description?q.actionButton&&g.R(q.actionButton,g.N_)?(this.Z.init(n$("ad-image"),q.image,M),this.W.init(n$("ad-text"),q.headline,M),this.J.init(n$("ad-text"),q.description,M),this.actionButton=new v4(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,["ytp-ad-underlay-action-button"]),q.backgroundColor&&g.wK(this.element,"background-color",g.Dq(q.backgroundColor)),g.Z(this,this.actionButton), this.actionButton.dJ(this.S),this.actionButton.init(n$("button"),g.R(q.actionButton,g.N_),M),n=g.ic(this.api.T().experiments,"player_underlay_video_width_fraction"),this.api.T().D("place_shrunken_video_on_left_of_player")?(q=this.X,g.ts(q,"ytp-ad-underlay-left-container"),g.MN(q,"ytp-ad-underlay-right-container"),g.wK(this.X,"margin-left",Math.round((n+.02)*100)+"%")):(q=this.X,g.ts(q,"ytp-ad-underlay-right-container"),g.MN(q,"ytp-ad-underlay-left-container")),g.wK(this.X,"width",Math.round((1-n- .04)*100)+"%"),this.api.Kp()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Zj.bind(this)),this.api.addEventListener("resize",this.uc.bind(this))):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.W.show=function(){XsD(!0);this.actionButton&&this.actionButton.show();K$.prototype.show.call(this)}; g.W.hide=function(){XsD(!1);this.actionButton&&this.actionButton.hide();K$.prototype.hide.call(this)}; g.W.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Zj.bind(this));this.api.removeEventListener("resize",this.uc.bind(this));this.hide()}; g.W.onClick=function(n){K$.prototype.onClick.call(this,n);this.actionButton&&g.XL(this.actionButton.element,n.target)&&this.api.pauseVideo()}; g.W.Zj=function(n){n==="transitioning"?(this.X.classList.remove("ytp-ad-underlay-clickable"),this.show()):n==="visible"?this.X.classList.add("ytp-ad-underlay-clickable"):n==="hidden"&&(this.hide(),this.X.classList.remove("ytp-ad-underlay-clickable"))}; g.W.uc=function(n){n.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):n.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.wK(this.W.element,"font-size",n.width/40+"px")};g.y(HM,K$); HM.prototype.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);q.toggledLoggingParams&&(this.toggledLoggingParams=q.toggledLoggingParams);q.answer&&g.R(q.answer,g.N_)?(n=new v4(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),n.dJ(this.answer),n.init(n$("ytp-ad-survey-answer-button"),g.R(q.answer,g.N_),M),n.show()):q.answer&&g.R(q.answer,SQ)&&(this.X=new $R(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm, ["ytp-ad-survey-answer-toggle-button"]),this.X.dJ(this.answer),g.Z(this,this.X),this.X.init(n$("survey-answer-button"),g.R(q.answer,SQ),M));this.show()}; HM.prototype.JD=function(n){this.layoutId?D4(this.Nm,n,this.layoutId,this.macros):(n=new g.aE("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Ly(n))}; HM.prototype.onClick=function(n){K$.prototype.onClick.call(this,n);if(this.api.T().D("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; HM.prototype.clear=function(){this.hide()};g.y(jGs,K$);jGs.prototype.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);q.answer&&g.R(q.answer,SQ)&&(this.button=new $R(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.dJ(this.X),this.button.init(n$("survey-none-of-the-above-button"),g.R(q.answer,SQ),M));this.show()};g.y(Lc,v4);Lc.prototype.init=function(n,q,M){v4.prototype.init.call(this,n,q,M);n=!1;q.text&&(q=g.b8(q.text),n=!g.UC(q));n||g.PJ(Error("No submit text was present in the renderer."))}; Lc.prototype.onClick=function(n){this.publish("l");v4.prototype.onClick.call(this,n)};g.y(PM,K$); PM.prototype.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);if(n=q.skipOrPreviewRenderer)g.R(n,A0)?(n=g.R(n,A0),M=new gU(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.J,!0),M.dJ(this.skipOrPreview),M.init(n$("skip-button"),n,this.macros),g.Z(this,M),this.X=M):g.R(n,dt)&&(n=g.R(n,dt),M=new nz(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.J,!1),M.dJ(this.skipOrPreview),M.init(n$("ad-preview"),n,this.macros),M.RL.show(100),M.show(),g.Z(this,M), this.X=M);this.X==null&&(n=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(q)),g.Ly(n));q.submitButton&&(n=q.submitButton,g.R(n,g.N_)&&(n=g.R(n,g.N_),M=new Lc(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),M.dJ(this.submitButton),M.init(n$("survey-submit"),n,this.macros),g.Z(this,M),this.W=M));if(n=q.adBadgeRenderer)n=g.R(n,gZT),M=new Ev(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,!0,!0,!0),M.dJ(this.Z),M.init(n$("simple-ad-badge"), n,this.macros),this.adBadge=M.element,g.Z(this,M);if(n=q.adDurationRemaining)n=g.R(n,KTD),M=new S3(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.J,void 0,!0),M.dJ(this.Z),M.init(n$("ad-duration-remaining"),n,this.macros),g.Z(this,M);(q=q.adInfoRenderer)&&g.R(q,bk)&&(n=new z2(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.element,void 0,!0),g.Z(this,n),this.adBadge!==void 0?this.Z.insertBefore(n.element,this.adBadge.nextSibling):n.dJ(this.Z),n.init(n$("ad-info-hover-text-button"), g.R(q,bk),this.macros));this.show()}; PM.prototype.clear=function(){this.hide()};g.y(vM,K$);vM.prototype.init=function(n,q,M){K$.prototype.init.call(this,n,q,M);LKS(this)}; vM.prototype.show=function(){this.Z=Date.now();K$.prototype.show.call(this)}; vM.prototype.Xi=function(){};g.y(PnA,vM);g.W=PnA.prototype;g.W.init=function(n,q,M){var t=this;vM.prototype.init.call(this,n,q,M);q.questionText&&SFA(this,q.questionText);q.answers&&q.answers.forEach(function(c,Y){g.R(c,X8)&&IAO(t,g.R(c,X8),M,Y)}); this.S=new Set(this.W.map(function(c){return c.X.X})); (n=q.noneOfTheAbove)&&(n=g.R(n,b7D))&&vwd(this,n,M);q.surveyAdQuestionCommon&&HQF(this,q.surveyAdQuestionCommon);q.submitEndpoints&&(this.submitEndpoints=q.submitEndpoints);this.V(this.element,"change",this.onChange);this.show()}; g.W.Xi=function(){TTT(this,!1);this.J.W.subscribe("l",this.ejx,this)}; g.W.onChange=function(n){n.target===this.noneOfTheAbove.button.X?lAQ(this):this.S.has(n.target)&&(this.noneOfTheAbove.button.toggleButton(!1),TTT(this,!0))}; g.W.ejx=function(){var n=[],q=this.W.reduce(function(c,Y,G){var k=Y.toggledLoggingParams;Y.X&&Y.X.isToggled()&&k&&(c.push(k),n.push(G));return c},[]).join("&"),M=this.submitEndpoints.map(function(c){if(!c.loggingUrls)return c; c=g.W7(c);c.loggingUrls=c.loggingUrls.map(function(Y){Y.baseUrl&&(Y.baseUrl=WV(Y.baseUrl,q));return Y}); return c}); if(M){M=g.S(M);for(var t=M.next();!t.done;t=M.next())t=t.value,this.layoutId?D4(this.Nm,t,this.layoutId,this.macros):g.Ly(Error("Missing layoutId for multi_select_question."))}this.api.T().D("supports_multi_step_on_desktop")&&this.RL(n)}; g.W.clear=function(){this.api.T().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.y(TQ,vM);TQ.prototype.init=function(n,q,M){var t=this;vM.prototype.init.call(this,n,q,M);q.questionText&&SFA(this,q.questionText);q.answers&&q.answers.forEach(function(c,Y){g.R(c,X8)&&IAO(t,g.R(c,X8),M,Y)}); q.surveyAdQuestionCommon?HQF(this,q.surveyAdQuestionCommon):iQ(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(q)));this.show()}; TQ.prototype.clear=function(){this.api.T().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.y(lt,K$);lt.prototype.init=function(n,q,M){var t=this;K$.prototype.init.call(this,n,q,M);if(this.api.T().D("supports_multi_step_on_desktop")){var c;this.conditioningRules=(c=q.conditioningRules)!=null?c:[];var Y;this.W=(Y=q.questions)!=null?Y:[];var G;((G=q.questions)==null?0:G.length)&&DDs(this,0)}else(q.questions||[]).forEach(function(k){g.R(k,Kw)?uOw(t,g.R(k,Kw),M):g.R(k,GP)&&BTQ(t,g.R(k,GP),M)}); this.show()}; lt.prototype.clear=function(){this.api.T().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; lt.prototype.J=function(n){var q=this;if(this.api.T().D("supports_multi_step_on_desktop")){var M;if((M=this.conditioningRules)==null?0:M.length){var t;if(n.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(c){return c.questionIndex===q.X})==null)g.Ly(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(c){if(c.questionIndex===q.X)switch(c.condition){case "CONDITION_ALL_OF":var Y;if((Y=c.answerIndices)==null?0:Y.every(function(k){return n.includes(k)}))t=c.nextQuestionIndex; break;case "CONDITION_ANY_OF":var G;if((G=c.answerIndices)==null?0:G.some(function(k){return n.includes(k)}))t=c.nextQuestionIndex; break;default:g.Ly(Error("Expected specified condition in survey conditioning rules."))}}),t!=null)DDs(this,t); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Ly(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.y(UQ,K$); UQ.prototype.init=function(n,q,M){var t=this;K$.prototype.init.call(this,n,q,M);n=q.timeoutSeconds||0;if(typeof n!=="number"||n<0)g.Ly(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+n));else if(q.timeoutCommands)if(q.text)if(q.ctaButton&&g.R(q.ctaButton,g.N_))if(q.brandImage)if(q.backgroundImage&&g.R(q.backgroundImage,OD)&&g.R(q.backgroundImage,OD).landscape){this.layoutId||g.Ly(Error("Missing layoutId for survey interstitial."));AFs(this.interstitial,g.R(q.backgroundImage, OD).landscape);AFs(this.logoImage,q.brandImage);g.jO(this.text,g.b8(q.text));var c=["ytp-ad-survey-interstitial-action-button"];c.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new v4(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,c);g.Z(this,this.actionButton);this.actionButton.dJ(this.W);this.actionButton.init(n$("button"),g.R(q.ctaButton,g.N_),M);this.actionButton.show();this.X=new WD(this.api,n*1E3);this.X.subscribe("g",function(){t.transition.hide()}); g.Z(this,this.X);this.V(this.element,"click",function(Y){var G=Y.target===t.interstitial;Y=t.actionButton.element.contains(Y.target);if(G||Y)if(t.transition.hide(),G)t.api.onAdUxClicked(t.componentType,t.layoutId)}); this.transition.show(100)}else g.Ly(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Ly(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Ly(Error("SurveyTextInterstitialRenderer has no button."));else g.Ly(Error("SurveyTextInterstitialRenderer has no text."));else g.Ly(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; UQ.prototype.clear=function(){this.hide()}; UQ.prototype.show=function(){mDO(!0);K$.prototype.show.call(this)}; UQ.prototype.hide=function(){mDO(!1);K$.prototype.hide.call(this)};g.y(ut,C$);g.W=ut.prototype; g.W.init=function(n,q){C$.prototype.init.call(this,n,q,{});if(q.durationMilliseconds){if(q.durationMilliseconds<0){g.Ly(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+q.durationMilliseconds));return}this.W=q.durationMilliseconds}else this.W=this.X.S3();var M;if((M=q.previewText)==null||!M.text||g.UC(q.previewText.text))g.Ly(Error("No text is returned for AdPreview."));else{this.S=q.previewText;q.previewText.isTemplated||g.jO(this.Z,q.previewText.text);var t; if(((t=this.api.getVideoData(1))==null?0:t.wP)&&q.previewImage){var c,Y;(n=((Y=e_(((c=q.previewImage)==null?void 0:c.sources)||[],52,!1))==null?void 0:Y.url)||"")&&n.length?(this.previewImage=new g.G2({j:"img",Y:"ytp-preview-ad__image",K:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",n),g.Z(this,this.previewImage),this.previewImage.dJ(this.element)):g.Ly(Error("Failed to get imageUrl in AdPreview."))}else this.Z.classList.add("ytp-preview-ad__text--padding--wide")}}; g.W.clear=function(){this.hide()}; g.W.hide=function(){xR(this);C$.prototype.hide.call(this)}; g.W.show=function(){rW(this);C$.prototype.show.call(this)}; g.W.Ew=function(){this.hide()}; g.W.EQ=function(){if(this.X){var n=this.X.getProgressState();if(n!=null&&n.current)if(n=1E3*n.current,n>=this.W)this.transition.hide();else{var q;if((q=this.S)==null?0:q.isTemplated)if(q=Math.max(0,Math.ceil((this.W-n)/1E3)),q!==this.J){var M,t;(n=(M=this.S)==null?void 0:(t=M.text)==null?void 0:t.replace("{TIME_REMAINING}",String(q)))&&g.jO(this.Z,n);this.J=q}}}};g.y(BM,K$); BM.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});var M,t;if((n=((t=e_(((M=q.image)==null?void 0:M.sources)||[],$DA(q),!0))==null?void 0:t.url)||"")&&n.length){M=this.JE("ytp-ad-avatar");M.src=n;var c,Y;if(t=(c=q.interaction)==null?void 0:(Y=c.accessibility)==null?void 0:Y.label)M.alt=t;switch(q.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(q.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.Ly(Error("Failed to get imageUrl in AdAvatar."))}; BM.prototype.clear=function(){this.hide()}; BM.prototype.onClick=function(n){K$.prototype.onClick.call(this,n)};g.y(Da,K$); Da.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});var M;n=(M=q.label)==null?void 0:M.content;if((M=n!=null&&!g.UC(n))||q.iconImage){M&&(this.buttonText=new g.G2({j:"span",Y:"ytp-ad-button-vm__text",Wb:n}),g.Z(this,this.buttonText),this.buttonText.dJ(this.element));var t,c,Y=((t=q.interaction)==null?0:(c=t.accessibility)==null?0:c.label)||M?n:"";Y&&RD(this.element,Y+" This link opens in new tab");ZD(this.element);if(q.iconImage){t=void 0;if(q.iconImage){a:{c=q.iconImage;if(c.sources)for(c= g.S(c.sources),n=c.next();!n.done;n=c.next())if(n=n.value,Y=void 0,(Y=n.clientResource)==null?0:Y.imageName){c=n;break a}c=void 0}if(c){var G;t={iconType:(G=c.clientResource)==null?void 0:G.imageName}}}G=P4(t,!1,this.W);G!=null&&(this.buttonIcon=new g.G2({j:"span",Y:"ytp-ad-button-vm__icon",L:[G]}),g.Z(this,this.buttonIcon),q.iconLeading?(yf(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):M?(this.buttonIcon.dJ(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.dJ(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(q.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.D("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.X?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(q.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.PJ(Error("AdButton does not have label or an icon."))}; Da.prototype.clear=function(){this.hide()}; Da.prototype.onClick=function(n){K$.prototype.onClick.call(this,n)};g.y(FKG,C$);g.W=FKG.prototype; g.W.init=function(n,q){C$.prototype.init.call(this,n,q,{});if(n=g.R(q.avatar,w_)){var M=q.headline;if(M){var t=q.description;if(t){var c=g.R(q.button,J1);c?(this.adAvatar.init(n$("ad-avatar"),n),this.headline.init(n$("ad-simple-attributed-string"),new fz(M)),this.description.init(n$("ad-simple-attributed-string"),new fz(t)),M.content&&M.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(n$("ad-button"),c), this.startMilliseconds=q.startMs||0,this.api.Kp()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.w0.bind(this)),rW(this)):g.Ly(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ly(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ly(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ly(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.W.EQ=function(){if(this.X){var n=this.X.getProgressState();n&&n.current&&1E3*n.current>=this.startMilliseconds&&(xR(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.W.Ew=function(){this.clear()}; g.W.onClick=function(n){this.api.pauseVideo();C$.prototype.onClick.call(this,n)}; g.W.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.w0.bind(this))}; g.W.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();C$.prototype.show.call(this)}; g.W.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();C$.prototype.hide.call(this)}; g.W.w0=function(n){n==="hidden"?this.show():this.hide()};g.y(A1,K$);g.W=A1.prototype; g.W.init=function(n,q){K$.prototype.init.call(this,n,q,{});if(!q.label||g.UC(q.label))g.Ly(Error("No label is returned for SkipAdButton."));else if(g.jO(this.J,q.label),n=P4({iconType:"SKIP_NEXT_NEW"}),n==null)g.Ly(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Z=new g.G2({j:"span",Y:"ytp-skip-ad-button__icon",L:[n]}),g.Z(this,this.Z),this.Z.dJ(this.element),this.api.T().experiments.Hb("enable_skip_to_next_messaging")&&(q=g.Up(q.targetId)))this.W=!0,this.element.setAttribute("data-tooltip-target-id",q), this.element.setAttribute("data-tooltip-target-fixed","")}; g.W.onClick=function(n){n&&n.preventDefault();var q,M;iMf(n,{contentCpn:(M=(q=this.api.getVideoData(1))==null?void 0:q.clientPlaybackNonce)!=null?M:""})===0?this.api.Km("onAbnormalityDetected"):(K$.prototype.onClick.call(this,n),this.api.Km("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.W.clear=function(){this.X.reset();this.hide()}; g.W.hide=function(){K$.prototype.hide.call(this)}; g.W.show=function(){this.X.start();K$.prototype.show.call(this);this.W&&this.api.T().experiments.Hb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.y(ZQQ,C$);g.W=ZQQ.prototype; g.W.init=function(n,q){C$.prototype.init.call(this,n,q,{});n=g.R(q.preskipState,SSO);var M;if((M=this.api.getVideoData())==null?0:M.isDaiEnabled()){if(!n){g.Ly(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.W=new ut(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.X);g.Z(this,this.W);this.W.dJ(this.element);var t;(t=this.W)==null||t.init(n$("preview-ad"),n);(M=this.W)!=null&&(M.transition.show(100),M.show())}(M=g.R(q.skippableState,fxO))?(q.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=q.skipOffsetMilliseconds:(g.PJ(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Z.init(n$("skip-button"),M),this.show()):g.Ly(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.W.show=function(){rW(this);C$.prototype.show.call(this)}; g.W.hide=function(){!this.isSkippable&&this.W?this.W.hide():this.Z&&this.Z.hide();xR(this);C$.prototype.hide.call(this)}; g.W.clear=function(){var n;(n=this.W)==null||n.clear();this.Z&&this.Z.clear();xR(this);C$.prototype.hide.call(this)}; g.W.Ew=function(){this.hide()}; g.W.EQ=function(){if(1E3*this.X.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var n;(n=this.W)!=null&&n.transition.hide();(n=this.Z)!=null&&(n.transition.show(),n.show())}};g.y(ms,K$); ms.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});if(q.label){var M;((M=q.label)==null?0:M.content)&&!g.UC(q.label.content)&&(this.linkText=new g.G2({j:"span",Y:"ytp-visit-advertiser-link__text",Wb:q.label.content}),g.Z(this,this.linkText),this.linkText.dJ(this.element));var t,c;if((t=q.interaction)==null?0:(c=t.accessibility)==null?0:c.label)RD(this.element,q.interaction.accessibility.label+" This link opens in new tab");else{var Y;((Y=q.label)==null?0:Y.content)&&!g.UC(q.label.content)&&RD(this.element, q.label.content+" This link opens in new tab")}ZD(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Ly(Error("No label found in VisitAdvertiserLink."))}; ms.prototype.onClick=function(n){K$.prototype.onClick.call(this,n);this.api.onAdUxClicked(this.componentType,this.layoutId)}; ms.prototype.clear=function(){this.hide()};g.y($N,K$); $N.prototype.init=function(n,q,M,t){K$.prototype.init.call(this,n,q,{});if(q.skipOrPreview){M=q.skipOrPreview;n=g.R(M,H7s);M=g.R(M,SSO);if(n)this.hf=new ZQQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.W),g.Z(this,this.hf),this.hf.dJ(this.U),this.hf.init(n$("skip-ad"),n);else{var c;M&&((c=this.api.getVideoData())==null?0:c.isDaiEnabled())&&(this.J=new ut(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.W,1),g.Z(this,this.J),this.J.dJ(this.U),this.J.init(n$("ad-preview"), M),c=this.J,c.transition.show(100),c.show())}if(c=g.R(q.skipOrPreview,H7s))var Y=c.skipOffsetMilliseconds}q.playerAdCard&&(c=g.R(q.playerAdCard,Ixw))&&(this.playerAdCard=new FKG(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.W),g.Z(this,this.playerAdCard),this.playerAdCard.dJ(this.IL),this.playerAdCard.init(n$("ad-avatar-lockup-card"),c));q.adBadgeRenderer&&((c=g.R(q.adBadgeRenderer,zQ))?(this.Z=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,!0),g.Z(this, this.Z),this.Z.dJ(this.X),this.Z.init(n$("ad-badge"),c)):g.Ly(Error("AdBadgeViewModel is not found in player overlay layout.")));q.adPodIndex&&(c=g.R(q.adPodIndex,y2L))&&(this.adPodIndex=new PD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,this.adPodIndex),this.adPodIndex.dJ(this.X),this.adPodIndex.init(n$("ad-pod-index"),c));q.adInfoRenderer&&((c=g.R(q.adInfoRenderer,bk))?(this.adInfoButton=new z2(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.element, void 0,!0),g.Z(this,this.adInfoButton),this.Z!==void 0?this.X.insertBefore(this.adInfoButton.element,this.Z.element.nextSibling):this.adInfoButton.dJ(this.X),this.adInfoButton.init(n$("ad-info-hover-text-button"),c,this.macros)):g.PJ(Error("AdInfoRenderer is not found in player overlay layout.")));var G;c=(G=this.api.getVideoData())==null?void 0:G.isDaiEnabled();q.adDurationRemaining&&c&&(G=g.R(q.adDurationRemaining,KTD))&&(this.adDurationRemaining=new S3(this.api,this.layoutId,this.interactionLoggingClientData, this.Nm,this.W,t.videoAdDurationSeconds,!0),g.Z(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.X.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.dJ(this.X),this.adDurationRemaining.init(n$("ad-duration-remaining"),G,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));q.visitAdvertiserLink&&(t=g.R(q.visitAdvertiserLink,PPA))&&(this.visitAdvertiserLink=new ms(this.api,this.layoutId, this.interactionLoggingClientData,this.Nm),g.Z(this,this.visitAdvertiserLink),this.visitAdvertiserLink.dJ(this.X),this.visitAdvertiserLink.init(n$("visit-advertiser-link"),t));q.adDisclosureBanner&&(q=g.R(q.adDisclosureBanner,WTO))&&(this.adDisclosureBanner=new vD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,this.adDisclosureBanner),this.adDisclosureBanner.dJ(this.RL),this.adDisclosureBanner.init(n$("ad-disclosure-banner"),q));this.S=new Uv(this.api,this.W,Y,!0);g.Z(this, this.S);g.qW(this.api,this.S.element,4);this.show()}; $N.prototype.clear=function(){this.hide()};g.y(aAF,K$);g.W=aAF.prototype; g.W.init=function(n,q){K$.prototype.init.call(this,n,q,{});if(q!=null&&q.title)if(n=q.title)if(this.headline.init(n$("ad-simple-attributed-string"),new fz(n)),n=g.R(q.moreInfoButton,J1)){if(this.moreInfoButton.init(n$("ad-button"),n),q.descriptions)q.descriptions.length>0&&(n=q.descriptions[0])&&(this.X=new HD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,this.X),this.X.dJ(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.X.init(n$("ad-simple-attributed-string"), new fz(n))),q.descriptions.length>1&&(q=q.descriptions[1])&&(this.W=new HD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,this.W),this.W.dJ(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.W.init(n$("ad-simple-attributed-string"),new fz(q)))}else g.Ly(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Ly(Error("No headline found in AdGridCardText."));else g.Ly(Error("No headline found in AdGridCardText."))}; g.W.onClick=function(n){K$.prototype.onClick.call(this,n);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.W.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var n;(n=this.X)==null||n.clear();var q;(q=this.W)==null||q.clear()}; g.W.hide=function(){this.headline.hide();this.moreInfoButton.hide();var n;(n=this.X)==null||n.hide();var q;(q=this.W)==null||q.hide();K$.prototype.hide.call(this)}; g.W.show=function(){K$.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var n;(n=this.X)==null||n.show();var q;(q=this.W)==null||q.show()};g.y(Fe,K$);Fe.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});if(q!=null&&q.gridCards)if(q.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Ly(Error("Only single column style is currently supported in AdGridCardCollection."));else for(n=g.S(q.gridCards),q=n.next();!q.done;q=n.next()){if(q=g.R(q.value,jpF)){var M=new aAF(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);g.Z(this,M);M.dJ(this.element);M.init(n$("ad-grid-card-text"),q);this.X.push(M)}}else g.Ly(Error("No grid cards found in AdGridCardCollection."))}; Fe.prototype.show=function(){for(var n=g.S(this.X),q=n.next();!q.done;q=n.next())q.value.show();K$.prototype.show.call(this)}; Fe.prototype.clear=function(){this.hide();for(var n=g.S(this.X),q=n.next();!q.done;q=n.next())q.value.clear()}; Fe.prototype.hide=function(){for(var n=g.S(this.X),q=n.next();!q.done;q=n.next())q.value.hide();K$.prototype.hide.call(this)};g.y(Za,C$);g.W=Za.prototype;g.W.init=function(n,q,M,t,c){c=c===void 0?0:c;C$.prototype.init.call(this,n,q,M,t);this.playerProgressOffsetMs=c;rW(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.U0.bind(this));this.api.addEventListener("resize",this.Jb.bind(this));this.api.Kp()?(this.W=!0,this.api.Tj(!0),this.show()):this.hide()}; g.W.EQ=function(){if(this.X){var n=this.X.getProgressState();n&&n.current&&!this.W&&1E3*n.current>=this.playerProgressOffsetMs&&(this.W=!0,this.api.Tj(!0),this.show())}}; g.W.Ew=function(){this.W&&this.api.Tj(!1);this.hide()}; g.W.clear=function(){this.api.Tj(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.U0.bind(this));this.api.removeEventListener("resize",this.Jb.bind(this));xR(this);this.hide()}; g.W.hide=function(){RdL(!1);C$.prototype.hide.call(this)}; g.W.show=function(){RdL(!0);C$.prototype.show.call(this)};g.y(ows,Za);g.W=ows.prototype; g.W.init=function(n,q,M,t){if(q!=null&&q.adGridCardCollection)if(q!=null&&q.adButton){var c=Number(q.playerProgressOffsetMs||"0");isNaN(c)?Za.prototype.init.call(this,n,q,M,t):Za.prototype.init.call(this,n,q,M,t,c);n=q.headline;M=g.R(q.adAvatar,w_);n&&M?(this.headline=new HD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,this.headline),this.headline.dJ(this.JE("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(n$("ad-simple-attributed-string"),new fz(n)), this.adAvatar=new BM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,this.adAvatar),this.adAvatar.dJ(this.JE("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(n$("ad-avatar"),M)):this.J.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");n=g.R(q.adGridCardCollection,XTw);this.adGridCardCollection.init(n$("ad-grid-card-collection"),n);q=g.R(q.adButton,J1);this.adButton.init(n$("ad-button"),q); this.hide()}else g.Ly(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Ly(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.W.onClick=function(n){(this.adButton&&g.XL(this.adButton.element,n.target)||this.adAvatar&&g.XL(this.adAvatar.element,n.target))&&this.api.pauseVideo();Za.prototype.onClick.call(this,n);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.W.Jb=function(){}; g.W.clear=function(){this.hide();var n;(n=this.headline)==null||n.clear();var q;(q=this.adAvatar)==null||q.clear();this.adGridCardCollection.clear();this.adButton.clear();Za.prototype.clear.call(this)}; g.W.show=function(){var n;(n=this.headline)==null||n.show();var q;(q=this.adAvatar)==null||q.show();this.adGridCardCollection.show();this.adButton.show();Za.prototype.show.call(this)}; g.W.hide=function(){var n;(n=this.headline)==null||n.hide();var q;(q=this.adAvatar)==null||q.hide();this.adGridCardCollection.hide();this.adButton.hide();Za.prototype.hide.call(this)}; g.W.U0=function(n){n==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):n==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):n==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))};g.y(aL,K$); aL.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});if(q.attributes===void 0)g.Ly(Error("No attributes found in AdDetailsLineViewModel."));else if(q.style===void 0)g.Ly(Error("No style found in AdDetailsLineViewModel."));else{n=g.S(q.attributes);for(var M=n.next();!M.done;M=n.next())if(M=M.value,M.text!==void 0){M=M.text;var t=q.style,c=new HD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);g.Z(this,c);c.dJ(this.element);a:switch(t){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":t="ytp-ad-details-line__text--style-responsive"; break a;default:t="ytp-ad-details-line__text--style-standard"}c.element.classList.add(t);c.init(n$("ad-simple-attributed-string"),new fz(M));this.X.push(c)}this.show()}}; aL.prototype.show=function(){this.X.forEach(function(n){n.show()}); K$.prototype.show.call(this)}; aL.prototype.clear=function(){this.hide()}; aL.prototype.hide=function(){this.X.forEach(function(n){n.hide()}); K$.prototype.hide.call(this)};g.y(RL,K$);RL.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});var M,t;(n=((t=e_(((M=q.image)==null?void 0:M.sources)||[]))==null?void 0:t.url)||"")&&n.length?(M=this.JE("ytp-image-background-image"),g.wK(M,"backgroundImage","url("+n+")"),q.blurLevel!==void 0&&g.wK(M,"filter","blur("+q.blurLevel+"px)"),q.gradient!==void 0&&(q=new g.w({j:"div",aL:["ytp-image-background--gradient-vertical"]}),g.Z(this,q),q.dJ(this.element)),this.show()):g.Ly(Error("Failed to get imageUrl in ImageBackground."))}; RL.prototype.clear=function(){this.hide()};g.y(wsF,C$);g.W=wsF.prototype;g.W.init=function(n,q){C$.prototype.init.call(this,n,q,{});g.wK(this.Z,"stroke-dasharray","0 "+this.W);this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){xR(this);C$.prototype.hide.call(this)}; g.W.show=function(){rW(this);C$.prototype.show.call(this)}; g.W.Ew=function(){this.hide()}; g.W.EQ=function(){if(this.X){var n=this.X.getProgressState();n!=null&&n.current!=null&&g.wK(this.Z,"stroke-dasharray",n.current/n.seekableEnd*this.W+" "+this.W)}};g.y(oL,K$); oL.prototype.init=function(n,q){K$.prototype.init.call(this,n,q,{});if(JFs(q)){this.adAvatar=new BM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);g.Z(this,this.adAvatar);this.adAvatar.dJ(this.JE("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(n$("ad-avatar"),g.R(q.adAvatar,w_));this.headline=new HD(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm);g.Z(this,this.headline);this.headline.dJ(this.JE("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(n$("ad-simple-attributed-string"),new fz(q.headline));if(n=g.R(q.adDetailsLine,h3s))this.detailsLine=new aL(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,this.detailsLine),this.detailsLine.dJ(this.JE("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(n$("ad-details-line"),n);this.adButton=new Da(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,!0);g.Z(this,this.adButton); this.adButton.dJ(this.JE("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(n$("ad-button"),g.R(q.adButton,J1));this.adBadge=new Lz(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,!0);g.Z(this,this.adBadge);this.adBadge.dJ(this.J);this.adBadge.init(n$("ad-badge"),g.R(q.adBadge,zQ));this.adInfoButton=new z2(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.element,void 0,!0);g.Z(this,this.adInfoButton);this.adInfoButton.dJ(this.J); this.adInfoButton.init(n$("ad-info-hover-text-button"),g.R(q.adInfoRenderer,bk),this.macros);if(n=g.R(q.skipAdButton,fxO))this.skipAdButton=new A1(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,this.skipAdButton),this.skipAdButton.dJ(this.element),this.skipAdButton.init(n$("skip-button"),n);this.W=new yQ(q.durationMilliseconds);g.Z(this,this.W);if(n=g.R(q.countdownViewModel,LTL))this.X=new wsF(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm,this.W),g.Z(this, this.X),this.X.dJ(this.JE("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.X.init(n$("timed-pie-countdown"),n);if(q=g.R(q.imageBackground,spS))this.imageBackground=new RL(this.api,this.layoutId,this.interactionLoggingClientData,this.Nm),g.Z(this,this.imageBackground),this.imageBackground.dJ(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(n$("image-background"), q);this.show();this.element.focus()}}; oL.prototype.clear=function(){g.fL(this.Z);this.hide()}; oL.prototype.show=function(){zdS(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();K$.prototype.show.call(this)}; oL.prototype.hide=function(){zdS(!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.X&&this.X.hide();this.imageBackground&&this.imageBackground.hide();K$.prototype.hide.call(this)};g.y(V$,g.MB);g.W=V$.prototype;g.W.S3=function(){return 1E3*this.api.getDuration(this.X5,!1)}; g.W.stop=function(){this.X&&this.handler.AQ(this.X)}; g.W.Oq=function(){var n=this.api.getProgressState(this.X5);this.W={seekableStart:n.seekableStart,seekableEnd:n.seekableEnd,current:this.api.getCurrentTime(this.X5,!1)};this.publish("h")}; g.W.getProgressState=function(){return this.W}; g.W.xq=function(n){g.dU(n,2)&&this.publish("g")};var ifG="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.y(Cc,ZX); Cc.prototype.Z=function(n){var q=n.id,M=n.content,t=M.componentType;if(!ifG.includes(t))switch(n.actionType){case 1:n=this.api;var c=this.Nm,Y=M.layoutId,G=M.interactionLoggingClientData,k=M instanceof mz?M.N$:!1,b=M instanceof mz||M instanceof hB?M.V2:!1;G=G===void 0?{}:G;k=k===void 0?!1:k;b=b===void 0?!1:b;switch(t){case "invideo-overlay":n=new bQD(n,Y,G,c);break;case "player-overlay":n=new uU(n,Y,G,c,new V$(n),b);break;case "player-overlay-layout":n=new $N(n,Y,G,c,new V$(n));break;case "survey":n= new lt(n,Y,G,c);break;case "ad-action-interstitial":n=new cFs(n,Y,G,c,k,b);break;case "video-interstitial-buttoned-centered":n=new oL(n,Y,G,c);break;case "survey-interstitial":n=new UQ(n,Y,G,c);break;case "ad-message":n=new WKF(n,Y,G,c,new V$(n,1));break;case "player-underlay":n=new sGF(n,Y,G,c);break;case "display-underlay-text-grid-cards":n=new ows(n,Y,G,c,new V$(n));break;default:n=null}if(!n){g.PJ(Error("No UI component returned from ComponentFactory for type: "+t));break}g.d0(this.components, q)?g.PJ(Error("Ad UI component already registered: "+q)):this.components[q]=n;n.bind(M);M instanceof D2?this.W?this.W.append(n.RX):g.PJ(Error("Underlay view was not created but UnderlayRenderer was created")):this.J.append(n.RX);break;case 2:q=VSO(this,n);if(q==null)break;q.bind(M);break;case 3:M=VSO(this,n),M!=null&&(g.iz(M),g.d0(this.components,q)?(M=this.components,q in M&&delete M[q]):g.PJ(Error("Ad UI component does not exist: "+q)))}}; Cc.prototype.ut=function(){g.tg(Object.values(this.components));this.components={};ZX.prototype.ut.call(this)};g.y(CnD,g.Ib);g.W=CnD.prototype;g.W.create=function(){try{rFQ(this),this.load(),this.created=!0,rFQ(this)}catch(n){Kz(n instanceof Error?n:String(n))}}; g.W.load=function(){try{psT(this)}finally{xY(Sx(this.X).DJ)&&this.player.fu("ad",1)}}; g.W.destroy=function(){var n=this.player.getVideoData(1);this.X.X.LF.KL(n&&n.clientPlaybackNonce||"");this.unload();this.created=!1}; g.W.unload=function(){g.Ib.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(q){Kz(q instanceof Error?q:String(q))}if(this.W!=null){var n=this.W;this.W=null;n.dispose()}this.Z.reset()}; g.W.b1=function(){return!1}; g.W.getAdState=function(){return-1}; g.W.getOptions=function(){return Object.values(MlO)}; g.W.X7=function(n,q){q=q===void 0?{}:q;switch(n){case "replaceUrlMacros":return n=q,n.url?(q=huF(this.player),Object.assign(q,n.saE),n=g.LO(n.url,q)):n=null,n;case "onAboutThisAdPopupClosed":this.lT(q);break;case "executeCommand":n=q;n.command&&n.layoutId&&this.executeCommand(n);break;default:return null}}; g.W.rC=function(n){var q;return!((q=this.X.X.Hm)==null||!q.get().rC(n))}; g.W.lT=function(n){n.isMuted&&HBJ(Sx(this.X).VC,Sx(this.X).xV,n.layoutId);this.Ri&&this.Ri.lT()}; g.W.executeCommand=function(n){Sx(this.X).Nm.executeCommand(n.command,n.layoutId)};g.nQ("yt.player.Application.create",g.hu.create);g.nQ("yt.player.Application.createAlternate",g.hu.create);Ds1(Ss(),qUn);var tlA=g.qD("ytcsi.tick");tlA&&tlA("pe");g.SC("ad",CnD);g.y(g.Q$,g.F);g.Q$.prototype.start=function(n,q,M){this.config={from:n,to:q,duration:M,startTime:(0,g.jt)()};this.next()}; g.Q$.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.Q$.prototype.next=function(){if(this.config){var n=this.config,q=n.from,M=n.to,t=n.duration;n=n.startTime;var c=(0,g.jt)()-n;n=this.X;t=a8s(n,c/t);if(t==0)n=n.N;else if(t==1)n=n.B;else{c=oR(n.N,n.S,t);var Y=oR(n.S,n.C,t);n=oR(n.C,n.B,t);c=oR(c,Y,t);Y=oR(Y,n,t);n=oR(c,Y,t)}n=g.aR(n,0,1);this.callback(q+(M-q)*n);n<1&&this.delay.start()}};g.y(g.pc,g.w);g.W=g.pc.prototype;g.W.hasSuggestions=function(){return this.suggestionData.length>0}; g.W.X8=function(){this.W&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.W.show=function(){g.w.prototype.show.call(this);cfG(this)}; g.W.RW=function(){this.W&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.W.ER=function(){this.Tk(this.api.Lm().getPlayerSize())}; g.W.Tk=function(n){var q=this.api.isEmbedsShortsMode()?.5625:16/9,M=this.api.iS();n=n.width-(M?112:58);M=Math.ceil(n/(M?320:192));var t=(n-M*8)/M;q=Math.floor(t/q);for(var c=g.S(this.X),Y=c.next();!Y.done;Y=c.next())Y=Y.value.JE("ytp-suggestion-image"),Y.style.width=t+"px",Y.style.height=q+"px";this.suggestions.element.style.height=q+"px";this.J=t;this.N=q;this.containerWidth=n;this.columns=M;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.nk(this)}; g.W.onVideoDataChange=function(){var n=this.api.T(),q=this.api.getVideoData();this.S=q.wZ?!1:n.J;this.suggestionData=q.suggestions?g.Pl(q.suggestions,function(M){return M&&!M.playlistId}):[]; GZn(this);q.wZ?this.title.update({title:g.Yo("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:q.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.W.scrollTo=function(n){n=g.aR(n,this.containerWidth-this.suggestionData.length*(this.J+8),0);this.C.start(this.scrollPosition,n,1E3);this.scrollPosition=n;g.nk(this);cfG(this)};})(_yt_player);