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 CY,C99,juy,sS,Va9,HY9,dsL,XvX,tQ,iYv,cv,TV,Ms,hXS,suu,ajX,u9,Zj,EHe,lje,tau,cQe,fY,yL,qs,Iu,b9,AQ,T1v,ou,Ru,nY,JQj,msv,vHV,GV,p0,Fye,SSe,dY,aF,E1,lP,DsL,ueu,ZYu,Usy,fje,OYL,yQj,qSS,c5,IjQ,Mc,bY1,xse,Jf,YSV,zXe,v5,RX1,Dv,Zv,IF,bP,Af,oF,nH9,eXv,k2,Y2,x2,P9a,wve,$su,LyQ,zp,gHY,n0,ey,P5,WyL,QuL,$2,B1H,GVs,jk,p5S,ir,CPS,jFX,NL,Vya,NYH,H0Q,ML,X5e,i0V,tyH,Fv,lvS,sFX,TYQ,JfV,v2u,K6,DV,ZV,f6,Uv,S1X,Dcj,uGV,Ov,yR,qL,If,Z0S,AB,of,kT,fvQ,Rf,n6,ek,O0Q,wo,go,b09,ro,Gt,jn,Afy,C_,o2L,kps,Vx,By,N1, HT,xcV,X_,dw,zEV,ig,sL,aO,n2S,cT,eEs,PPj,w5y,REQ,tc,lg,EL,$c9,Lrj,g2L,Wre,QFS,Jc,mK,vT,rf9,jfS,pyY,DB,VkS,CrV,BYs,GpV,H6Y,q1,OL,dLQ,Xya,i6e,h69,IO,sfH,aVX,Ac,oO,xK,ETL,kK,RO,z9,n_,gw,en,ww,$K,cBs,Qx,ToQ,rw,BT,jq,VG,Nm,G9,Cy,py,dC,tkj,iB,MkX,jy,hP,sl,PT,L_,at,vTv,lB,tP,XG,c4,TA,Mm,JP,mM,v4,Fa,FqX,Sq,Svv,Ky,Kq1,Zm,Dm,Ul,fy,Ol,yG,qm,DLV,Z6L,bB,ULH,fVX,AP,ot,YV,yBL,qvu,ny,oTL,YvY,IVS,xLY,kta,ABV,b6v,z6S,eq,R69,$V,Ly,e6s,gC,wye,W4,QG,rC,$Lu,B4,Lqu,GA,gTu,Wq9,pH,Qfj,CH,jl,NX,Hn,BoY,i0,CgY,rB1,sQ,EQ,l0, Vns,tb,TN,NwL,XTH,d1H,MX,Jb,ma,vn,FH,Sl,KH,hjY,sOX,aBy,EKu,Du,lB1,tn1,u0,Zu,UQ,fH,ccv,m1a,vKV,SLL,FKu,KKY,u_Y,Ic,b0,Ab,oc,ke,Ye,zN,O_1,nH,Pn,wV,$e,LH,qLS,Wn,Q5,IBs,rV,Bn,b_u,pG,jg,VW,HG,Xn,ic,h9,nKs,ejS,Pg9,wT9,s_,aa,$1u,LKa,gKY,E_,lc,t9,cG,Th,vG,Sg,uc,fG,WKS,QO9,oa,rcH,PG,gI,p4Q,Hya,VqX,dme,rI,BG,Vf,st9,EVV,am1,He,dW,lma,XQ,Eo,QW,cPV,tqY,Mq,TO,WG,J2,mS,ve,TC1,FQ,JPX,Zz,mma,Uo,fe,Oo,yf,vVH,A2,FMS,IN,SlX,qq,bK,KMS,Dmu,uaa,Yq,Zyy,Um9,Oyv,fm9,xq,zO,RN,yPL,qle,Ims,ne,byv,eu,Mne,Tws,Pe,wW,Le,gW,kA1,rW, Be,pJ,xmH,YlS,CJ,PBy,Xu,Rvv,evY,N7,VU,s8,ab,w41,t8,$mj,cX,TD,LMS,WMv,vX,rPe,SS,KJ,BCj,GAy,ZC,U8,fJ,Vla,HHV,yU,Xnu,O8,scL,DC,C09,EeQ,hJY,dXX,iHQ,luj,aua,q7,NVj,A8,cbv,TVe,Mle,Jb9,mXV,Y7,ves,Rb,FaX,DXH,uHX,nJ,eS,PX,gA,UXv,WX,QU,rA,fuH,OHS,pN,ybS,CN,jE,bHQ,oeY,xXu,kNL,YQL,Nj,dU,aX,l3,t$,ci,Tq,Mj,ney,eJe,J$,P0Y,m0,vi,E$,Fr,SE,KN,Dt,H5,u3,wnH,U$,fN,gee,O$,yO,qj,WaS,QcV,rbs,BVa,IX,b3,A$,zq,jaj,Cce,Vgs,NIL,HGY,RX,XGa,GNe,nN,d$y,iGL,eE,saQ,aHa,E5a,lHe,tge,wU,c9X,TIe,MgX,J9V,F9a,m$y,$N,LN,gU,Wi,QO,rU,Bi,Gq, K91,D$1,CE,pE,jZ,una,Vh,ZGv,U$a,fHV,OG9,N_,Xf,IHQ,H2,bGu,dh,A9y,ip,hE,sV,as,EV,lp,Y_1,o5S,Ti,x$v,M_,khy,c2,tE,mn,RQa,Ff,v2,Zq,UV,OV,Pc1,fE,Is,wGj,bp,n5L,g5e,W9v,Qa9,k3,x3,Y3,r9y,zi,nE,eZ,P2,BIL,wh,$3,LE,Ghs,pea,gh,CKa,Hea,NWe,XeL,dqY,ies,jNL,sNv,W2,Qh,rh,azu,Gi,B2,Eqe,lzV,tuj,VA,c2a,Nk,Hs,TWH,XL,J2S,dT,Muu,mqH,vqY,FSH,iZ,hU,sh,ao,Eh,lZ,tU,Soy,cs,Ty,Mk,KSj,uQe,ZeS,mg,FL,vs,Kh,De,uZ,fzu,Oes,Ze,Uh,fh,qoH,IzV,oqj,be1,kOs,RCa,Oh,zCS,xqQ,yA,qk,nqX,Io,eCa,bZ,wea,PKH,$qa,LSj,xc,Yc,gqv,WSu,QNu,zy,Ro,r29,nh, BWL,GOV,Cms,HJv,e1,XXe,d79,iJu,hNY,sb1,$c,aCL,E7u,lCa,Gy,Bs,rT,tSH,c8y,TAj,p2,C2,jh,J8L,d9,tx,cf,Tu,MK,Jx,v7a,Fo9,S8s,mG,Fj,Sh,Zo,UE,yT,D7s,ZJs,uuV,U7y,fCS,ko,OJH,y8S,xo,q8u,ICe,bJL,A8a,n2,zu,eh,Pf,w9,o7e,kDs,x7Y,$o,L2,Y8H,g9,zNV,RNV,n7y,Wf,eNY,QT,r9,Pma,wXX,$7s,Loy,g79,Woe,Bf,Gu,po,jr,BAa,VF,NZ,GDV,r8Y,Co,piv,Hp,XU,dx,sH,hT,C31,jXu,VEH,a1,HNv,EH,dj1,iN9,hZ1,sXS,atY,EN9,ltV,tE9,cp,T2,MZ,TUa,c$Y,MES,J$a,mO,mjY,vp,vNY,F0X,FU,Sr,Ko,S$e,DA,uf,K01,ZA,UH,fo,OH,yF,qZ,I1,bf,DjH,urL,ZNa,UjS,AT,ftv,y$L,ONa, kC,xC,Its,q$H,oNs,Y$u,xjL,YC,zZL,RZe,nNH,P3j,eZY,wiH,z2,$jv,L0Q,no,gN1,W0j,QXy,r$9,er,BU1,Pp,GqX,wx,$C,CpX,Lo,jsv,gx,Wp,VZQ,Nhj,QF,Bp,X21,G2,HEL,d_X,iEu,hpy,aqH,pX,E3Y,Vr,NP,tZX,cE1,JEV,m_Q,Ho,Xl,dE,iu,hC,sM,aq,EM,lu,tC,co,To,MP,KnY,SVj,D_S,ZEj,ufX,fqS,Fnv,U_9,v3Q,JC,mV,yEH,qVv,IqL,KX,DK,uu,vo,AEs,Iq,OE1,kiS,x_u,o3V,bu,AC,oq,kI,YVy,bEj,zpQ,xI,Rpa,n3H,epv,Ppj,w2H,g3a,WnS,Qsy,rEy,Bhe,GiX,CZe,joQ,zo,NTY,Rq,YI,Xss,HhS,huS,aee,EcX,ley,t1a,TT1,wE,$I,M1V,cUV,mke,FgV,Sha,Dkv,Oh1,Qr,yUV,Wo,Bo,qhy,Go,Cg,jJ, IeS,bhj,AUH,hk,oca,kya,Jk,xkY,zu9,ml,RuY,ncL,LgS,euH,Kg,DJ,uI,Ud,fg,BTY,Od,y2,q8,pfu,Ak,C4S,j9u,oL,N9u,xF,YF,zz,RL,H21,ng,PF,w0,$F,Lg,Xfy,WF,Q2,r0,BF,Gz,pd,dKV,i2e,hUs,s9u,aoa,Eos,Cd,loL,ia,thX,cxX,T9S,hp,a6,Eg,la,TH,Mv,Jp,JxV,FC,S7,Kd,mKX,voL,DD,FG9,SES,ZD,yxe,qE9,IoV,Ug,b2Q,Axa,xKj,Og,zUe,YEL,qv,no1,eUa,P4X,ba,Ap,wfH,o6,kQ,xQ,YQ,zH,R6,nd,e7,P6,wf,gf,W6,QJ,rf,$KH,LGj,goe,GH,CO,WGQ,Hd,X5,dm,i1,hw,aK,Ek,Guv,l1,tw,cd,Cfj,ppy,Q9V,Jw,MU,Hoy,m1,fO,u1,Ok,yg,dZj,s11,IK,lAY,aAS,EC9,cTH,vCy,TxY,JT9,mZV,Aw, b1,FOY,kD,xD,YD,SHs,wm,KOv,$D,LO,Wd,DZu,rm,Bd,uUs,GQ,pK,UZu,Vc,Hw,XW,d8,iO,hm,sB,a_,EB,lO,Oou,tm,M5,TW,qHj,oCH,boe,ATv,k2S,xZL,zzQ,RzS,YHs,ezS,vw,FW,D3,PfH,wpj,KK,uO,LOa,gCQ,Bxa,rTL,OB,yc,q5,I_,bO,o_,pos,CuS,jqv,ez,Pw,V0a,NE1,HXH,Ww,Qc,r8,XoV,dP9,hFL,aKa,C3,EIS,Np,j_,dq,iN,s2,lK1,Mp,J1,mW,vW,S_,K3,uN,JCe,mPH,U2,vIV,FVa,O2,SMy,KVL,yl,qp,DPj,ulu,UPv,op,OXH,yCe,bN,qMX,IKH,ACa,bXY,z4,fKs,ko1,xPH,$t,PW,YM9,zFQ,L3,gq,RFX,nIa,rq,eFa,Puu,wo1,$P1,jV,LVe,gIH,WV1,QqX,rCy,BEV,GoX,pFQ,Ne,CIv,XD,VJs,N0y,Hgv,XFY, d8Q,dy,lR,hoV,EFV,tN,lJH,ckL,igY,T0a,MJs,Jku,sLV,aJS,iR,hN,EX,tJy,ax,sX,m8Y,vFX,Fl9,Sd1,KlQ,D8H,OgH,uV1,uR,OX,Ix,IJa,oFv,AkX,qe,ox,kzQ,Yp,x8L,zoa,PC,YdS,WlY,Roy,gFj,gy,QLQ,Gze,WC,L5,rkL,B0L,p6X,ry,j69,V7y,NfQ,Hd9,X6X,dvs,idY,Caa,s6H,aDa,EQX,lD9,t7y,Tfu,C1,M7Y,jF,Vq,NM,Jpa,mvL,d$,iV,F2v,vQu,h3,SgH,DvQ,Zd1,uCy,UvH,ypV,fDS,vl,K1,SF,qgS,F3,D9,uV,Z9,IDe,bdL,f1,oQH,qM,yq,bV,A3,oh,kH1,kJ,YJ,xva,Rh,eF,Pl,YgL,ziu,Ria,nQS,w$,L1,eiY,g$,Wl,Qq,w6Y,r$,Bl,$vj,pm,Vm,jG,Cm,NY,HQ,W2S,C1v,VeS,pdS,GHY,jKj,iz,aW,HO1, NmY,Tj,MY,gQS,tev,Km,lrH,Mea,EDL,d7,DE,cQ,FI,cwv,lz,rpY,Q6y,BfH,sK,ar9,fm,DUQ,K1a,OK,ZOj,UUV,fru,qY,OOY,ywy,qk1,bOu,Awa,AG,kQS,oW,xUL,Yky,RrQ,nDL,xG,erj,wdj,YG,$UX,zj,RW,lN,rwu,j_a,Lm,N8v,d5S,WQ,h8X,s_H,a3S,ElQ,Xi,l3H,Ny,bgs,jp,Ha,VD,Qm,tO,lq,My,JO,va,cmV,Fi,Kq,DU,T8e,MzQ,Uy,m5L,vl1,F_a,SBH,K_H,D5a,uW1,ZKv,U5v,f3S,qy,OKY,IS,AO,yms,qBQ,I31,oS,bKv,AmY,zB,RS,nq,olS,ep,kWj,we,YBs,x51,Lq,ge,Wa,QD,z8H,re,Ba,R8u,nlj,GB,pt,$51,e8S,wwy,POY,Ct,j2,V_,L_s,gle,W_u,NN,rmX,pWX,GWV,HE,XK,dk,i$,h7,Eu,l$,t7,cE,T6, MN,J7,CN9,jpQ,V_H,mA,vE,FK,S2,D7,Z7,XWL,H3u,ft,dpL,Ou,y_,qN,I0,b$,kU,xU,YU,z6,R0,nt,e2,PE,wk,$U,Lt,spa,WE,rk,a1a,BE,l1H,t_e,c1u,M_S,mpL,NQ,vtu,XX,Hh,KWa,DpV,u2v,Un,fS,Upv,yQ,qQ,ID,b7,O3X,A0,oD,ki,y1e,xi,f1y,Yi,z0,I1Q,q2u,RD,nS,ei,Ph,$i,A1j,otY,g3,Wh,r3,Bh,k4H,QQ,zVs,RVy,ntH,eVa,PNa,wWL,$p9,pU,G0,Y2y,WW1,CU,r11,Bq1,XA,G4y,V3,NR,pCV,dc,jxy,Nyj,ie,hd,H59,s0,de9,a4,lh1,ahH,i5e,sx1,hkH,le,td,cH,Tk,MR,Jd,mI,FA,cNV,JN9,Df,V1a,ue,mea,Fe9,U0,qR,fU,y3,O0,DeV,Keu,SXS,uD9,I4,Z5u,yNa,be,o4,Ihy,k9,x9,Y9,zk,b5Y, R4,ANu,opa,eL,LU,gc,WH,Q3,rc,BH,Gk,pW,CW,js,Vi,Ng,HJ,k1Q,xe1,Xq,d_,i8,hq,sF,aE,YXX,zka,EF,Tf,ekY,PRV,Mg,Jq,Dk,u8,$ea,fW,qg,Lea,Wej,gpS,QxX,rN9,ByQ,G1y,pls,CVv,VFy,jhX,N$S,dMY,hI9,XlS,b8,Aq,a91,shv,oE,kY,xY,EJX,YY,zf,RE,tF9,c3e,nW,l9s,es,J3Q,PJ,w_,$Y,LW,g_,WJ,Qi,r_,BJ,Gf,pF,CF,jT,Vy,NG,HV,Xw,dg,i6,ha,sr,aw,Er,l6,ta,cV,Tc,MG,Ja,mt,vV,Fw,ST,KF,DS,u6,ZS,Ur,fF,Or,yy,qG,Iw,b6,Aa,ow,k_,x_,Y_,zc,Rw,nF,eT,PV,wg,$_,LF,gg,WV,Qy,rg,BV,Gc,pP,CP,jU,VV,Nz,HU,XJ,iH,h4,vJu,sf,G,a3,dt,Ef,lH,t4,SIv,Tm,DM1,cU,u39,J4, Z1L,vU,Mz,FJ,SU,KP,uH,f9Q,O1Q,y31,qIS,A4,o3,yV,k6,b1V,A3L,oJa,k71,UMS,xMa,Dc,YIj,zIs,Y6,PU,zm,Uf,RIX,Zc,x6,R3,wt,eIY,fP,Of,eU,nP,PVS,$6,LP,gt,WU,wlX,QV,rt,BU,Gm,ps,$MV,Ld9,WdQ,QhS,V6,No,H8,XY,Czv,VGe,Hmy,XQ9,iG,im1,hYv,ty,sWV,c8,Tl,Mo,Jy,mk,v8,aES,lEV,tGY,EGu,cGX,T7V,Dl,uG,Uz,Oz,y6,qo,Ij,MGy,bG,Ay,Zl,xu,Yu,zl,Rj,JG9,ku,vGa,ns,Fhs,SKu,eY,KhH,P8,wn,DY1,uIe,$u,Zme,UYe,Ls,fEy,OmH,yGu,qKS,gn,W8,IEX,bme,Q6,rn,B8,AGe,Gl,pR,CR,j9,oGS,Vu,ND,kjX,HB,xYV,XN,YKL,zYQ,RYS,nGy,eYs,Pzy,dO,wQ1,$YL,LhY,iv,gG1,hn,Whv, sN,QWX,ar,rGH,B7V,EN,MD,Gjj,Jn,mQ,paX,vB,Cqe,FN,S9,KR,jSv,Vpu,uv,Zs,Hqe,UN,Xay,dys,NeH,iqY,h3L,sSS,ON,aUX,yu,qD,Ir,bv,E0e,An,or,xZ,lU1,YZ,zx,tpV,nR,wO,e9,WB,Qu,cOS,rO,BB,Gx,px,TeV,jb,Mpu,Nf,Hc,Xz,LR,dN,iX,hj,JOS,sJ,a7,EJ,myX,lX,tj,cc,Tw,Mf,mu,rN,pV,CV,v0j,Fz1,Sy1,Kzu,XO,j6,dl,iU,DyQ,uiL,Zqy,hK,s3,ak,UyV,fUV,Nr,Oq9,yOv,E3,qyL,lU,tK,TP,Mr,JK,mE,vj,S6,KV,uU,Z5,U3,fV,D5,AOX,o0Q,yP,qr,Ik,kBe,AK,Yys,ok,kL,z3Y,xL,YL,zP,nV,R3V,Rk,e6,Pj,wl,n09,gl,Pqe,way,$yy,Wj,QP,Lzs,g0e,WzV,rl,rOe,bU,QS9,Bey,Bj,GBV,GP,pEu, pr,C$S,j09,V29,Nky,Hta,Cr,dNe,XEV,jI,HS,it9,Xc,hSj,dF,s01,a7Y,ib,EUy,l71,t2e,c71,hV,TkS,sG,J7s,EG,lb,vUj,mN1,FAS,Su9,KAs,cS,TT,MV,DNj,uKQ,Ztv,UNe,f79,Ots,y7Q,quL,I7H,bty,mL,vS,Fc,A79,oUL,SI,Kr,k6S,DQ,ub,UG,xNY,fr,OG,y4,Yue,qV,zSH,Il,RSu,bb,nUS,eSL,AV,P$u,wEX,$NL,ol,kP,xP,YP,zT,LAv,gU1,Rl,nr,eI,WAV,PS,wF,$P,Lr,gF,Q0y,r7e,WS,Q4,BkS,rF,BS,GT,pj,gJj,G6H,phY,Cj,C7X,jDH,ViV,jB,V9,NB,HP,Xg,d2,hM,sT,ad,ET,ln,N3u,HSu,vP,Fg,Xhy,SB,OT,Dd,aa9,T3e,Eiv,Mis,mQy,vi1,J0u,FcV,SnL,Kce,nj,ZSV,faQ,y0e,qnQ,IaH,w2,$r,A0L, oi9,zxy,Lj,RxL,k0L,g2,WP,Q9,r2,ex9,$Q9,P7S,Wc1,j4v,Cea,QDy,VLX,G$,B39,r0H,XHS,h_9,iUY,lfH,s4Y,pa,Ca,JdV,N3,mR1,uAY,DRv,KIj,FIj,ffa,URv,S0S,bUa,Ifa,Ada,hL,xRy,o9L,kkS,v9H,Y0a,z_Y,H0,d6,ydV,OUe,q0V,R_X,Xm,ZU1,e_S,wHu,LIu,WIX,Bcj,Gks,C8V,jEY,N_e,Vsu,hsS,XJQ,HWY,sEv,lkH,tsX,cq9,T_u,v0,UQs,mge,Msu,Ka,SFj,u_,Dgu,uqY,KCj,ZY,ZWy,UA,fa,FY,OA,uXV,yn,q3,IY,UgH,fkS,b_,OWY,yqj,qFs,AL,oY,kx,xx,Yx,zd,RY,na,e8,IkH,bWv,P0,Aqj,w6,NV,$x,La,kfS,oYX,g6,xgv,YFa,W0,Qn,zsj,r6,Rs9,nYu,OSS,FCs,esL,B0,SY,jY,sA,P8S,wJ9,pz,MLV, j8,$gu,Fm,S8,EA,aY,BP,tL,Q41,pJV,l_,tL9,ak1,LCS,NcX,G0L,Cz,vYL,PP,WCj,gYv,niY,rd1,QES,EYj,JL,cd9,TcQ,dRL,g9Q,$RQ,giY,wha,YnX,xQS,bSy,n9S,pH1,dgS,afY,E9V,Td,M3,c0,iWy,PeX,B_u,rqv,j3,VC,NO,HY,XF,h5,Ei,lt,t5,Tv,MO,dr,it,cY,pVX,Gfa,J5,vY,C6a,jwL,VTu,FF,S3,Kz,DF,ut,ZF,Ui,dGY,Oi,fz,iFa,HFv,XVj,hK1,yC,qO,sws,aSX,IH,E_a,E2,tTS,lSQ,TgQ,JaQ,mGv,MT9,v_j,Kt9,Y1,zv,DGy,uwX,RH,nz,ZFY,UGu,fSj,OFu,PY,qrS,AaH,kce,xGL,o_e,gr,QC,WY,Yr1,zKV,$1,RKS,n_L,eKX,P6y,Lz,g_e,Wt1,Qws,LtS,$Gj,wVv,raa,Bg1,ISH,Gcu,bFL,pUL,CHe,HPV, j31,VUy,NtX,iPy,XUy,dzQ,hqe,s3Y,BY,lc1,acu,tUe,E6Q,c4a,TtQ,MUs,J41,mzV,v6y,FiL,SfL,KiL,Dzj,uJ1,ZPL,Gv,fcY,OPH,y4H,Uz9,qfy,IcQ,o6S,Cw,Ni,XP,kmL,dH,i5,he,RqH,eqj,n6e,wUX,GmL,Mi,a2,PHL,zqS,YfQ,xz1,Tr,Ec,c1,So,Kw,jj9,Dy,u5,FP,X8H,VY9,NnQ,doV,Zy,Uc,h4L,Oc,yS,qi,I2,b5,Ae,o2,sjy,al9,kg,xg,zr,ll1,tYQ,Yg,R2,MYX,Jys,nw,mou,wH,vuX,$g,gH,FkL,Lw,W1,SzX,rH,DoH,uY9,Gr,pp,HR,Uos,j5,X6,iw,flL,s9,Nt,dz,OsQ,aZ,yy9,E9,qze,Cp,Vv,Zs1,hW,lw,IlL,bsY,tW,Ayv,cR,ouH,Tn,Mt,klV,mp,JW,vR,F6,xoy,Yzs,S5,Kp,D0,uw,Z0,z4S,U9,fp,R4s, rnS,O9,yv,qt,cKX,t6u,IZ,mrL,LE1,gLv,bw,WEs,QkV,rK1,Blj,GPX,AW,oZ,kE,xE,pSy,CbY,zn,jlY,RZ,np,VIL,NFa,e5,HrL,XSe,slH,aQy,dVy,ira,hhV,wz,$E,Lp,gz,EPu,lQe,WR,tIY,Qv,rz,TF1,cV1,Gn,BR,MI9,JVS,mVy,vPL,pb,FLa,jO,VM,SGj,DVs,ucu,Hb,hz,Or9,r4H,l5,qGa,IQj,brX,AVV,oPL,sc,X1,kTV,E6,lo,zhQ,RhX,nPa,tz,$VX,ehs,Pba,gP9,WL1,cb,QlS,LLH,rVS,TF,M6,Jz,BFY,GTy,m6,vb,pPL,F1,Cns,SO,s6,Z8,jd9,Bts,$zH,U6,fb,yM,q6,I5,bo,Az,O6,x$,N2y,R5,HjQ,XPQ,dBe,iju,hOY,nb,adj,eO,ldV,Pb,cMj,T21,tB1,ErQ,MBS,JMH,mBV,Wb,vry,F$9,K$L,QM,CGV,Bb, ugX,UBV,Je,fdV,OjQ,pI,qTy,te,yMy,Lia,Wiv,Q3j,DBs,CI,jH,Vj,IdH,bj1,Nn,AM9,Xs,dG,iL,hR,or1,se,ag,k$V,xBe,Ee,lL,tR,cg,TM,Mn,zOS,YTa,JR,ROj,eO1,m4,Pnj,nru,xS,og,YS,Rg,nI,Lb,wPj,B2L,I3,kS,$S,jYj,Qj,N6S,uL,rG,DW,Bg,AR,Ck,heu,jw,Vs,sYa,aY9,ExQ,lYe,NF,t8e,cLs,H7,T6j,FHS,vx9,M8S,m3S,JLS,Xt,SAj,dP,KHy,D3j,Za1,U3Y,fYe,bay,Ej,ls,kda,tA,c7,x3V,Ree,nxs,eeu,P_Q,Te,w0V,LH1,gxY,fk,V3L,B6e,Gdv,HzQ,Oj,XYe,izy,dOL,h5L,qF,AA,sHe,ys,oI,kB,aFV,t3u,E1L,M39,nk,jK,v1y,ds,sW,n1v,y5Y,gP,EW,Ge,ld,fFs,Pty,e5u,wYv,tl,RI,B7,LZV, g1j,WZX,r59,$Ov,T5,QHe,Bre,Gva,mJ,v_,C51,ze,Qs,MI,bzY,lFL,xOQ,Z6,rP,B_,id,Vk,Nh,Hk,tov,lyH,hl,db,ceV,THj,ix,MoX,Jej,mij,$B,h_,OzQ,a$,X1s,W7,Sie,mOY,J5V,c5v,E5,P7,Ow1,fya,qca,IyS,Mh,mj,vk,J_,SQ,KT,bwu,Dg,ogH,ux,xiX,fT,krv,yk,qh,nge,I$,w1y,$i9,o$,Lwv,Wwj,Wk,rb,Bk,pc,Q2Q,Cc,jm,XB,dS,iT,hh,rey,sO,a8,Cwa,EO,lT,jZL,V5e,th,Nz1,HpQ,XRy,dtj,c3,TJ,ip1,sZ9,mv,v3,Kc,DM,a0S,uT,ZM,UO,fc,OO,EEv,l0e,y7,t5s,cWL,ql,M5s,Tz1,JWs,I8,vEe,mt9,Fpe,S9V,bT,Ah,KpQ,u6y,ZpY,UtX,f0X,I0a,Ops,o8,bpX,kv,AWe,kn1,xtX,zPa,Y9y,RPQ,xv, Yv,nES,ePs,LpL,Wp9,Pw9,gES,QZe,wRX,$tX,rWy,BzQ,nc,GnS,CoQ,NBe,d61,Hby,Xbe,W3,B3,hna,GJ,s5a,p4,E$X,l8Y,tOv,a8H,MOs,Jzu,C4,jf,m6S,v$e,F6e,rLS,jHQ,K6e,S6a,u11,D69,Zbe,Nx,f8u,Obj,I8L,XM,dd,i2,Azy,x6S,aA,E4,l2,znY,Y6H,ht,RnQ,n$X,enQ,wby,W6Y,CLs,dny,Mx,iIY,P3,sgS,aW1,ESL,lWY,tHe,mB,cRV,vI,TGe,FM,MHv,K4,mne,vSY,F4V,DX,Sej,K4Q,DnX,usy,ZIv,u2,JRj,Une,ZX,OIL,yRj,qes,U4,IWj,bIa,ARX,oSe,kMX,xnL,YeQ,zgH,Rga,nS1,egj,wgX,f4,L4v,$nV,rRQ,yN,PL1,O4,qx,IA,b2,At,oA,kd,BGX,xd,GMY,p7H,Hku,ikv,hBy,sIX,aby,n4,EBu,dFL,NPH, lby,zX,twX,TPa,Yd,RA,jIL,VwX,ef,Mwe,JAS,X7y,Csu,mF1,vBH,Fxj,wd,Kxa,Sja,$d,fbS,ZkV,UFe,DF9,Oka,L4,utH,gd,WI,yAj,qje,IbY,QN,AAy,oB1,rd,ke9,BI,xF9,Yjv,zBY,RBV,eBY,PsX,w71,BPy,gB1,j5s,nBu,p_1,CdL,Wxe,QIy,Lxs,rAV,X_y,pA,$FH,GeH,ifu,Hf9,NsV,VK1,jMe,jX,htQ,em,Vz,N4,HZ,sMH,a6S,EAu,X0,l6u,rS,tKX,clL,$v,gS,pbX,iQ,sp,mIV,vAL,SWe,FJS,Ep,hI,dZ,tI,MKL,TsY,Jlu,cZ,KJ9,DIj,Qgs,W4a,wS,TG,uxu,aB,ZfS,UIv,f6e,OfY,ylQ,M4,I6v,bf9,Alv,oAY,k5v,xIv,cAa,mN,vZ,zt9,JI,Rte,cz9,TB9,F0,nA9,etH,Pdv,w_X,SX,gAs,$IX,WJy,rlH,LJX,BsY, pke,G5e,VQv,KA,Zp,XkV,HTv,s$H,iT9,agH,Ejv,dhv,hLv,NbV,lgV,Up,tQQ,MQS,c_v,Tbs,Op,J_H,fWX,mhS,vjS,FjL,S5H,yz,Kjs,q4,Dh9,IB,bQ,AI,uES,q5j,y_1,ZTa,UhL,fgv,OTV,Igj,bTS,A_1,ojS,oB,kFS,kk,Y5v,xk,xhV,zLv,RLY,o$a,s4,njj,eLe,zG,Q$H,Wjv,wZ,r_L,gjj,p3X,$k,CTS,j8H,HcY,X3y,ic1,NSX,hWV,s81,aMa,Evu,lMa,chQ,TSS,Mmu,tmX,gZ,Yk,mls,VmY,vvQ,dlv,WZ,SOH,Jh1,LA,Kv9,Dla,Ulu,OcV,Qz,yhQ,fMj,qOs,uBQ,rZ,IMH,Zc1,Cu,kJs,YO9,xlX,zWj,RW1,nvH,ovY,eWS,PT9,BZ,w3s,$lL,LvX,gvS,rhX,Q89,Wv1,Vb,BSj,pIH,C2j,jAy,VfQ,dX,iF,gSS,Ndy,H4Y,XIv, hbL,i4a,dxs,sAj,EdQ,lX1,aXu,pu,CxX,ctv,TdL,Mfs,KBX,vdV,FBa,S4u,Dxy,Z49,dI9,Na,mxL,JtL,uMv,Q7,GX,Lc,q41,yte,IXj,b4Y,AtX,odv,GJs,uQ,Dp,fXH,kXv,O4u,xxL,Y4u,QMa,zb1,AhL,bcy,UxL,j$9,EZ,lF,ndX,t6,eb1,P2Y,wIj,$xe,LBa,WBL,QAa,pZS,rta,GXa,CQu,TK,HAY,VXH,NZQ,iAS,haS,sB9,ap9,EkY,cu,lpH,d4e,jBQ,Ma,tXa,BdY,cIL,J6,MXy,JIV,m4v,TZL,ms,SpL,FN9,u0Y,D4Q,KNY,ZAe,U49,vu,fpQ,OAL,qpu,Ipu,yI1,bAu,YpS,okH,kGe,x4L,zaQ,Ray,nk1,PQ1,eaa,wZu,$4s,LNu,WNa,rIj,QB1,BZe,gkX,GG9,CFv,jVj,NXe,XuL,VPa,Dn,daY,iuV,puL,hwS,HuV,uF,sVv,ans, EbH,lnY,tPa,c6v,TXX,J61,vbQ,Fse,SZS,UZ,Da1,u9a,Uae,qa,Ou1,y6v,qZY,Inu,A6L,buL,xaQ,YZj,IV,A6,ob9,kK9,zwX,kb,nb9,Rws,ewY,PFe,wu9,gba,$a1,r6S,xb,Lse,BXY,Yb,jia,RV,nu,Vts,zK,NLY,eP,dT9,XOV,pOs,CYQ,i$y,h2y,si1,GKY,a_L,Pu,Em9,H$e,fnL,oV,ttS,$b,cHL,TLS,Mtj,JH1,mTu,vmQ,F5Q,SDy,K5a,DTH,Lu,udv,Z$Q,f_9,O$s,yH1,UTS,qDy,I_S,gX,b$u,AHy,omX,kEQ,xT1,Wu,bqa,YDv,z2X,Qb,R2S,nme,Bu,wOv,$TV,GK,gmH,W5j,L5y,PYa,p$,rX,e29,VX,jt,QiH,NT,C$,pxs,VvY,Hn1,XxY,inS,BLv,NMa,hDj,GEH,sTV,aTH,hH,HO,lTL,EWv,dL,TMu,Mvy,jTy,CiV,cre,JrS, dAe,rHQ,ai,ED,lY,mAy,tH,uke,SCa,Zns,KY9,FYu,UAe,vWj,qC1,fTY,cO,ITY,ArV,Hj,kbY,xAQ,YCS,m5,zDv,RDL,Pij,Fd,F9,wxv,gWY,nWH,sD,iY,WYe,QTe,UD,Fv9,uY,TE,GbQ,pze,je9,CWQ,V4s,LYH,K$,Nuu,OD,Xze,HZe,iZ9,ddy,hMs,tfs,sZ,yX,sej,aRy,EXe,lRu,t4X,St,cDS,M4y,Tuj,JDa,mdS,FDV,SRY,BMv,oWH,Ddy,KDj,D_,MT,uov,qT,Udu,fRH,Ii,yDY,qR1,IRj,bZS,f$,X9,AIX,eDV,ADu,Rb9,Xd,oXe,kIY,xde,YRS,zMH,bY,AH,nXu,eM1,PWj,RMV,wz1,oi,WDu,LDv,gXa,Qes,km,rDv,BuL,GIu,xm,p$a,jvX,VDX,NRj,Ym,Chj,zE,Ri,Hvj,X$H,PO,n$,et,dby,wL,ivj,hyQ,svH,EaY,aiX,rL, tDX,cov,liv,TRY,BO,MDL,GE,Joj,pn,mbX,vaH,upH,FRs,KRu,Cn,SaX,DbL,Zve,Uby,fi9,OvL,V$,yoY,Xk,NA,qaa,dM,ii,bvL,sC,aT,AoY,hr,oaY,EC,xbL,k8s,tr,cx,Tb,RyQ,Yaa,zyj,MA,naL,$bv,PhL,eyL,w$V,Jr,gaH,ro1,BRs,mY,G8e,pNY,WR9,QvQ,VM9,NJQ,H7L,XNQ,dSY,i7u,Sv,EfS,lN9,Kn,sCe,aNv,cXu,Fk,DT,ui,h19,TJV,ZT,UC,MM1,JXy,OZL,fn,mSs,vfY,FPv,StX,KPS,DSs,uR1,fNH,Z7a,O7j,yXX,INy,b7s,zb,z1Y,ofy,kRy,R1v,nf9,Yt1,AX9,e1u,wNH,Pja,$Su,BJY,nn,CM9,Nvj,VCH,jQV,QCs,rXu,LPv,gfv,GRu,ev,Px,XqH,R$,Ycj,dEH,$W,gM,h9H,iDy,pqY,aOj,EyH,lOX,Wx,tCe, j4,Tv9,MCV,JFv,vyX,mES,Ffu,V1,Nd,SmX,u7Y,ZDX,Xo,DE9,UES,fOH,KfX,du,sR,OD9,yFv,hD,qmL,IOS,bDu,AFv,kSL,oye,z9e,R9Y,xES,e9Y,PML,Ymu,lW,tD,wq9,Lf9,cz,$EY,gyj,QQQ,Wfy,rFY,TI,BvY,GSS,pDL,Md,JD,jJv,CSL,VdY,NK9,XDs,HMY,dWX,iM9,hfu,sJe,a4L,l4L,vz,mD,Fo,tdL,cJv,ERy,vRS,Fmy,SUu,uys,DWV,Kmj,ZML,UWe,S4,KZ,f4H,OML,yJy,qU9,bM1,AJQ,uW,oRY,DR,UR,I4y,kUQ,xWs,YUL,zfQ,Rfu,OR,nRY,efQ,$Wj,y1,LmX,wDs,qd,Ie,gRV,Wmy,rJV,GUj,QJS,BKu,AD,pLL,jPu,VjY,HBS,XLy,oe,kX,d9Y,Ck9,sPH,hGS,iBy,xX,YX,EOe,a$s,zI,Re,l$a,nZ,tja,cYs,T4H,e4, Mjv,Pz,JYV,wu,m99,S7L,K8S,D9S,ZBL,U9y,f$1,u8V,yYj,OBX,q7V,AY9,gu,k_Q,oO9,I$S,bB9,x9L,Y7s,Wz,Q1,zGv,RGa,nOX,eG9,Pku,wLa,L8H,gOu,jn1,rY1,B4a,W81,N5u,jD,VK,i99,Xp,dR,hdj,H9u,Cv,sa,ho,Nb,av,EnH,t$V,lIV,Ea,H$,pv,aIv,ih,XMQ,snu,T5L,ru,lh,M$v,JsL,d2e,to,c$,m2s,T8,Mb,Jo,vnX,FTY,KTs,D2v,Sbj,mR,Z9y,uSY,v$,U2s,Fp,SD,fIY,O9L,ys9,qbu,IIV,Asa,kLu,on1,b9H,Kv,x2S,zda,YbH,Di,uh,RdV,edy,PJX,Zi,nnj,wMy,$2Q,LTV,gnv,WTe,Qne,rsS,fv,Oa,GLY,B5y,p99,yK,qb,CAV,jUa,NpL,VNv,HCH,X9a,d0V,bh,iC1,h7H,sUy,awy,E8V,lwv,cia,TpV,MNs, tNL,Jiv,m0X,v8v,F7s,SPX,K7s,D01,ubQ,Ya,ZCS,U0v,fwL,qPs,o89,bCs,yiY,nv,Iw9,OCX,Ai1,x0u,YPX,kaQ,eD,z7a,R7a,n8H,SP,e7V,g8a,W7a,QUv,wR,riV,Lv,jP,BpY,gR,Gaa,$a,pK1,Clj,dwY,B$,i8a,G8,szy,EwV,a2H,jzv,p7,l2L,txL,TQX,C7,Mxy,JgS,mw1,hHy,jM,FbV,vwX,Vw,H81,QK,Ssv,KbS,Dwa,uhe,Z8j,VxV,NQQ,rR,ygS,qsa,b8V,O8X,kYL,zJ,R8,GG,zHQ,RHQ,YsX,nw1,I2v,xwH,UwV,eHe,owL,PlV,Agu,lQ,qWa,tvQ,NS,HN,fA,f2L,$wL,Qzj,ij,rga,BQS,gwa,aC,GYj,ptH,wKL,CCX,WbX,jyV,Et,hX,VAy,Hlu,Niy,dJ,dCu,cN,ilQ,lj,TR,tX,MS,$AY,hmy,EhX,aGj,tAu,cZy,lGS,mP, JX,MAX,JZ1,mCs,fGy,DCe,yZe,Sxs,qxe,FFs,FR,P$,k31,IGS,AZv,blv,DN,uj,Yx1,ZN,Ut,nha,RmL,zm1,Ot,UCY,bj,PCH,IC,f7,$CQ,WFy,Qya,uZV,LFs,kf,rZe,ZlQ,emy,yw,Bi1,K7,G3u,pra,CD1,RC,n7,wtV,eM,PN,jRv,qS,xC9,VW9,NDy,HLS,ghv,Xru,AX,dJa,oC,U5,iL9,sRa,SM,wJ,ohV,aPQ,Esv,zR,xf,lPu,sy1,tWS,Yf,cu9,TDj,MWS,Ju9,$f,L7,FUL,DJS,ZL1,vsL,Auy,osQ,kss,xJV,YqL,z$y,R$u,e$9,nsV,gJ,WN,Qw,PDs,wry,$JQ,V4,LU1,rJ,gsy,BN,GR,fR,pD,Cs,WUv,DY,Jqv,QRX,Vn,rus,$L,LV,Gd,BDL,Gsa,pAY,CEX,CD,Vcj,NaV,jC,NE,Hq,HQS,iQH,hAs,X7,sm9,XAX,du9,aLy,EzQ,lLe, tcQ,cSH,dv,Mcu,mYS,fs,al,JS1,muu,tV,Ta9,oj,vz9,FXH,Swe,iM,O3,Due,uTQ,hF,sm,ZQY,aQ,Uue,V0,fLX,OQu,e31,Em,lM,ySe,tF,cq,qwY,TS,ILs,ME,JF,bQs,AS9,M2y,mf,ozX,xus,kZL,vq,Yws,F7,SC,zAH,RAy,nzV,eAv,PEY,wAs,$ue,gzX,DO,LX1,WXe,QmX,rSe,Bas,jGv,GZ9,pme,Cyv,NjY,XmY,dHL,ii9,HiS,uM,hlQ,sGQ,axL,EMX,lxL,Um,tRV,fD,Om,y0,cve,Tju,Jvv,mHj,vMy,F3V,K3a,SYS,DHY,qE,IQ,UHX,u$1,Zi9,bM,fxe,Oi9,AF,oQ,yvy,ky,qYy,Yy,IxH,zS,RQ,bia,nD,eC,AvL,oMe,Pq,wv,kgV,$y,xHX,zl1,Wq,RlQ,nMS,elL,$HY,wm1,Q0,L39,gM9,W3v,DQX,Pyu,rve,Bja,pvc,pvs,hQ; CY=function(p){return function(){return pvs[p].apply(this,arguments)}}; g.Ns=function(p,C){return pvs[p]=C}; C99=function(p){var C=0;return function(){return C=this.length))return this[p]}; AQ=function(p){return p?p:b9}; T1v=function(p,C,V){p instanceof String&&(p=String(p));for(var N=p.length-1;N>=0;N--){var H=p[N];if(C.call(V,H,N,p))return{aC:N,M9:H}}return{aC:-1,M9:void 0}}; ou=function(p){return p?p:function(C,V){return T1v(this,C,V).aC}}; g.YH=function(p,C,V){p=p.split(".");V=V||g.xH;p[0]in V||typeof V.execScript=="undefined"||V.execScript("var "+p[0]);for(var N;p.length&&(N=p.shift());)p.length||C===void 0?V[N]&&V[N]!==Object.prototype[N]?V=V[N]:V=V[N]={}:V[N]=C}; Ru=function(p,C){var V=g.zV("CLOSURE_FLAGS");p=V&&V[p];return p!=null?p:C}; g.zV=function(p,C){p=p.split(".");C=C||g.xH;for(var V=0;V2){var N=Array.prototype.slice.call(arguments,2);return function(){var H=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(H,N);return p.apply(C,H)}}return function(){return p.apply(C,arguments)}}; g.LY=function(p,C,V){g.LY=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?JQj:msv;return g.LY.apply(null,arguments)}; g.Wv=function(p,C){var V=Array.prototype.slice.call(arguments,1);return function(){var N=V.slice();N.push.apply(N,arguments);return p.apply(this,N)}}; g.QL=function(){return Date.now()}; vHV=function(p){return p}; g.r1=function(p,C){function V(){} V.prototype=C.prototype;p.oI=C.prototype;p.prototype=new V;p.prototype.constructor=p;p.GU=function(N,H,X){for(var d=Array(arguments.length-2),a=2;aC&&V.push(XG(N,1))}); return V}; dY=function(p){var C=C===void 0?41:C;p=(p==null?void 0:XG(p,1))||0;return p>0&&C>=p}; g.iP=function(p){p&&typeof p.dispose=="function"&&p.dispose()}; g.s1=function(p){for(var C=0,V=arguments.length;C>6|192;else{if(X>=55296&&X<=57343){if(X<=56319&&H=56320&&d<=57343){X=(X-55296)*1024+ d-56320+65536;N[V++]=X>>18|240;N[V++]=X>>12&63|128;N[V++]=X>>6&63|128;N[V++]=X&63|128;continue}else H--}if(C)throw Error("Found an unpaired surrogate");X=65533}N[V++]=X>>12|224;N[V++]=X>>6&63|128}N[V++]=X&63|128}}p=V===N.length?N:N.subarray(0,V)}return p}; Jf=function(p){g.xH.setTimeout(function(){throw p;},0)}; YSV=function(p){return Array.prototype.map.call(p,function(C){C=C.toString(16);return C.length>1?C:"0"+C}).join("")}; zXe=function(p){for(var C=[],V=0;V>6|192:((H&64512)==55296&&N+1>18|240,C[V++]=H>>12&63|128):C[V++]=H>>12|224,C[V++]=H>>6&63|128),C[V++]=H&63|128)}return C}; v5=function(p,C){return p.lastIndexOf(C,0)==0}; RX1=function(p,C){var V=p.length-C.length;return V>=0&&p.indexOf(C,V)==V}; g.Sy=function(p){return/^[\s\xa0]*$/.test(p)}; g.K0=function(p,C){return p.indexOf(C)!=-1}; Dv=function(p,C){return g.K0(p.toLowerCase(),C.toLowerCase())}; g.U1=function(p,C){var V=0;p=uP(String(p)).split(".");C=uP(String(C)).split(".");for(var N=Math.max(p.length,C.length),H=0;V==0&&HC?1:0}; g.f0=function(){var p=g.xH.navigator;return p&&(p=p.userAgent)?p:""}; IF=function(p){return O1||y8?qc?qc.brands.some(function(C){return(C=C.brand)&&g.K0(C,p)}):!1:!1}; bP=function(p){return g.K0(g.f0(),p)}; Af=function(){return O1||y8?!!qc&&qc.brands.length>0:!1}; oF=function(){return Af()?!1:bP("Opera")}; nH9=function(){return Af()?!1:bP("Trident")||bP("MSIE")}; eXv=function(){return Af()?IF("Microsoft Edge"):bP("Edg/")}; k2=function(){return bP("Firefox")||bP("FxiOS")}; Y2=function(){return bP("Safari")&&!(x2()||(Af()?0:bP("Coast"))||oF()||(Af()?0:bP("Edge"))||eXv()||(Af()?IF("Opera"):bP("OPR"))||k2()||bP("Silk")||bP("Android"))}; x2=function(){return Af()?IF("Chromium"):(bP("Chrome")||bP("CriOS"))&&!(Af()?0:bP("Edge"))||bP("Silk")}; P9a=function(){return bP("Android")&&!(x2()||k2()||oF()||bP("Silk"))}; wve=function(p){var C={};p.forEach(function(V){C[V[0]]=V[1]}); return function(V){return C[V.find(function(N){return N in C})]||""}}; $su=function(p){var C=g.f0();if(p==="Internet Explorer"){if(nH9())if((p=/rv: *([\d\.]*)/.exec(C))&&p[1])C=p[1];else{p="";var V=/MSIE +([\d\.]+)/.exec(C);if(V&&V[1])if(C=/Trident\/(\d.\d)/.exec(C),V[1]=="7.0")if(C&&C[1])switch(C[1]){case "4.0":p="8.0";break;case "5.0":p="9.0";break;case "6.0":p="10.0";break;case "7.0":p="11.0"}else p="7.0";else p=V[1];C=p}else C="";return C}var N=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");V=[];for(var H;H=N.exec(C);)V.push([H[1],H[2],H[3]||void 0]); C=wve(V);switch(p){case "Opera":if(oF())return C(["Version","Opera"]);if(Af()?IF("Opera"):bP("OPR"))return C(["OPR"]);break;case "Microsoft Edge":if(Af()?0:bP("Edge"))return C(["Edge"]);if(eXv())return C(["Edg"]);break;case "Chromium":if(x2())return C(["Chrome","CriOS","HeadlessChrome"])}return p==="Firefox"&&k2()||p==="Safari"&&Y2()||p==="Android Browser"&&P9a()||p==="Silk"&&bP("Silk")?(C=V[2])&&C[1]||"":""}; LyQ=function(p){if(Af()&&p!=="Silk"){var C=qc.brands.find(function(V){return V.brand===p}); if(!C||!C.version)return NaN;C=C.version.split(".")}else{C=$su(p);if(C==="")return NaN;C=C.split(".")}return C.length===0?NaN:Number(C[0])}; zp=function(){return O1||y8?!!qc&&!!qc.platform:!1}; gHY=function(){return zp()?qc.platform==="Android":bP("Android")}; n0=function(){return bP("iPhone")&&!bP("iPod")&&!bP("iPad")}; ey=function(){return n0()||bP("iPad")||bP("iPod")}; P5=function(){return zp()?qc.platform==="macOS":bP("Macintosh")}; WyL=function(){return zp()?qc.platform==="Windows":bP("Windows")}; g.wY=function(p){return p[p.length-1]}; QuL=function(p,C){var V=p.length,N=typeof p==="string"?p.split(""):p;for(--V;V>=0;--V)V in N&&C.call(void 0,N[V],V,p)}; g.L0=function(p,C,V){C=$2(p,C,V);return C<0?null:typeof p==="string"?p.charAt(C):p[C]}; $2=function(p,C,V){for(var N=p.length,H=typeof p==="string"?p.split(""):p,X=0;X=0;N--)if(N in H&&C.call(V,H[N],N,p))return N;return-1}; g.W5=function(p,C){return rQa(p,C)>=0}; B1H=function(p){if(!Array.isArray(p))for(var C=p.length-1;C>=0;C--)delete p[C];p.length=0}; g.rY=function(p,C){C=rQa(p,C);var V;(V=C>=0)&&g.Q8(p,C);return V}; g.Q8=function(p,C){return Array.prototype.splice.call(p,C,1).length==1}; g.B5=function(p,C){C=$2(p,C);C>=0&&g.Q8(p,C)}; GVs=function(p,C){var V=0;QuL(p,function(N,H){C.call(void 0,N,H,p)&&g.Q8(p,H)&&V++})}; g.Gp=function(p){return Array.prototype.concat.apply([],arguments)}; g.p6=function(p){var C=p.length;if(C>0){for(var V=Array(C),N=0;N>>1),E=void 0;V?E=C.call(void 0,p[a],a,p):E=C(N,p[a]);E>0?H=a+1:(X=a,d=!E)}return d?H:-H-1}; g.hB=function(p,C){p.sort(C||NL)}; jFX=function(p,C){var V=NL;g.hB(p,function(N,H){return V(C(N),C(H))})}; g.af=function(p,C,V){if(!g.ea(p)||!g.ea(C)||p.length!=C.length)return!1;var N=p.length;V=V||Vya;for(var H=0;HC?1:p=0})}; g.mq=function(p,C){C===void 0&&(C=0);sFX();C=avv[C];for(var V=Array(Math.floor(p.length/3)),N=C[64]||"",H=0,X=0;H>2];d=C[(d&3)<<4|a>>4];a=C[(a&15)<<2|E>>6];E=C[E&63];V[X++]=""+l+d+a+E}l=0;E=N;switch(p.length-H){case 2:l=p[H+1],E=C[(l&15)<<2]||N;case 1:p=p[H],V[X]=""+C[p>>2]+C[(p&3)<<4|l>>4]+E+N}return V.join("")}; g.vy=function(p,C){if(E2a&&!C)p=g.xH.btoa(p);else{for(var V=[],N=0,H=0;H255&&(V[N++]=X&255,X>>=8);V[N++]=X}p=g.mq(V,C)}return p}; tyH=function(p){var C=[];lvS(p,function(V){C.push(V)}); return C}; Fv=function(p){var C=p.length,V=C*3/4;V%3?V=Math.floor(V):g.K0("=.",p[C-1])&&(V=g.K0("=.",p[C-2])?V-2:V-1);var N=new Uint8Array(V),H=0;lvS(p,function(X){N[H++]=X}); return H!==V?N.subarray(0,H):N}; lvS=function(p,C){function V(E){for(;N>4);d!=64&&(C(X<<4&240|d>>2),a!=64&&C(d<<6&192|a))}}; sFX=function(){if(!Sk){Sk={};for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),C=["+/=","+/","-_=","-_.","-_"],V=0;V<5;V++){var N=p.concat(C[V].split(""));avv[V]=N;for(var H=0;H=p.length)throw Error();}; O0Q=function(p,C){(C=Py?C[Py]:void 0)&&(p[Py]=qL(C))}; wo=function(p){p.RNa=!0;return p}; go=function(p){var C=p;if(yfY(C)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(C))throw Error(String(C));}else if(q1a(C)&&!Number.isSafeInteger(C))throw Error(String(C));return $T?BigInt(p):p=Ive(p)?p?"1":"0":yfY(p)?p.trim()||"0":String(p)}; b09=function(p,C){if(p.length>C.length)return!1;if(p.lengthH)return!1;if(N>>0;Wy=C;QR=(p-C)/4294967296>>>0}; Gt=function(p){if(p<0){ro(0-p);var C=g.F(By(Wy,QR));p=C.next().value;C=C.next().value;Wy=p>>>0;QR=C>>>0}else ro(p)}; jn=function(p,C){var V=C*4294967296+(p>>>0);return Number.isSafeInteger(V)?V:C_(p,C)}; Afy=function(p,C){var V=C&2147483648;V&&(p=~p+1>>>0,C=~C>>>0,p==0&&(C=C+1>>>0));p=jn(p,C);return typeof p==="number"?V?-p:p:V?"-"+p:p}; C_=function(p,C){C>>>=0;p>>>=0;if(C<=2097151)var V=""+(4294967296*C+p);else yR()?V=""+(BigInt(C)<>>24|C<<8)&16777215,C=C>>16&65535,p=(p&16777215)+V*6777216+C*6710656,V+=C*8147497,C*=2,p>=1E7&&(V+=p/1E7>>>0,p%=1E7),V>=1E7&&(C+=V/1E7>>>0,V%=1E7),V=C+o2L(V)+o2L(p));return V}; o2L=function(p){p=String(p);return"0000000".slice(p.length)+p}; kps=function(){var p=Wy,C=QR;C&2147483648?yR()?p=""+(BigInt(C|0)<>>0)):(C=g.F(By(p,C)),p=C.next().value,C=C.next().value,p="-"+C_(p,C)):p=C_(p,C);return p}; Vx=function(p){if(p.length<16)Gt(Number(p));else if(yR())p=BigInt(p),Wy=Number(p&BigInt(4294967295))>>>0,QR=Number(p>>BigInt(32)&BigInt(4294967295));else{var C=+(p[0]==="-");QR=Wy=0;for(var V=p.length,N=0+C,H=(V-C)%6+C;H<=V;N=H,H+=6)N=Number(p.slice(N,H)),QR*=1E6,Wy=Wy*1E6+N,Wy>=4294967296&&(QR+=Math.trunc(Wy/4294967296),QR>>>=0,Wy>>>=0);C&&(C=g.F(By(Wy,QR)),p=C.next().value,C=C.next().value,Wy=p,QR=C)}}; By=function(p,C){C=~C;p?p=~p+1:C+=1;return[p,C]}; N1=function(p,C){throw Error(C===void 0?"unexpected value "+p+"!":C);}; HT=function(p){if(p!=null&&typeof p!=="number")throw Error("Value of float/double field must be a number, found "+typeof p+": "+p);return p}; xcV=function(p){return p.displayName||p.name||"unknown type name"}; X_=function(p){if(p!=null&&typeof p!=="boolean")throw Error("Expected boolean but got "+nY(p)+": "+p);return p}; dw=function(p){var C=typeof p;switch(C){case "bigint":return!0;case "number":return Number.isFinite(p)}return C!=="string"?!1:Y1a.test(p)}; zEV=function(p){if(typeof p!=="number")throw Ov("int32");if(!Number.isFinite(p))throw Ov("int32");return p|0}; ig=function(p){return p==null?p:zEV(p)}; sL=function(p){if(p==null)return p;if(typeof p==="string"){if(!p)return;p=+p}if(typeof p==="number")return Number.isFinite(p)?p|0:void 0}; aO=function(p){if(p==null)return p;if(typeof p==="string"){if(!p)return;p=+p}if(typeof p==="number")return Number.isFinite(p)?p>>>0:void 0}; n2S=function(p){var C=0;C=C===void 0?0:C;if(!dw(p))throw Ov("int64");var V=typeof p;switch(C){case 4096:switch(V){case "string":return EL(p);case "bigint":return String(BigInt.asIntN(64,p));default:return lg(p)}case 8192:switch(V){case "string":return C=Math.trunc(Number(p)),Number.isSafeInteger(C)?p=go(C):(C=p.indexOf("."),C!==-1&&(p=p.substring(0,C)),p=yR()?go(BigInt.asIntN(64,BigInt(p))):go(REQ(p))),p;case "bigint":return go(BigInt.asIntN(64,p));default:return Number.isSafeInteger(p)?go(tc(p)): go(lg(p))}case 0:switch(V){case "string":return EL(p);case "bigint":return go(BigInt.asIntN(64,p));default:return tc(p)}default:return N1(C,"Unknown format requested type for int64")}}; cT=function(p){return p==null?p:n2S(p)}; eEs=function(p){return p[0]==="-"?!1:p.length<20?!0:p.length===20&&Number(p.substring(0,6))<184467}; PPj=function(p){return p[0]==="-"?p.length<20?!0:p.length===20&&Number(p.substring(0,7))>-922337:p.length<19?!0:p.length===19&&Number(p.substring(0,6))<922337}; w5y=function(p){if(p<0){Gt(p);var C=C_(Wy,QR);p=Number(C);return Number.isSafeInteger(p)?p:C}C=String(p);if(eEs(C))return C;Gt(p);return jn(Wy,QR)}; REQ=function(p){if(PPj(p))return p;Vx(p);return kps()}; tc=function(p){dw(p);p=Math.trunc(p);Number.isSafeInteger(p)||(Gt(p),p=Afy(Wy,QR));return p}; lg=function(p){dw(p);p=Math.trunc(p);if(Number.isSafeInteger(p))p=String(p);else{var C=String(p);PPj(C)?p=C:(Gt(p),p=kps())}return p}; EL=function(p){dw(p);var C=Math.trunc(Number(p));if(Number.isSafeInteger(C))return String(C);C=p.indexOf(".");C!==-1&&(p=p.substring(0,C));return REQ(p)}; $c9=function(p){if(p==null)return p;if(typeof p==="bigint")return M1(p)?p=Number(p):(p=BigInt.asIntN(64,p),p=M1(p)?Number(p):String(p)),p;if(dw(p))return typeof p==="number"?tc(p):EL(p)}; Lrj=function(p){if(p==null)return p;var C=typeof p;if(C==="bigint")return String(BigInt.asIntN(64,p));if(dw(p)){if(C==="string")return EL(p);if(C==="number")return tc(p)}}; g2L=function(p){if(p==null)return p;var C=typeof p;if(C==="bigint")return String(BigInt.asUintN(64,p));if(dw(p)){if(C==="string")return dw(p),C=Math.trunc(Number(p)),Number.isSafeInteger(C)&&C>=0?p=String(C):(C=p.indexOf("."),C!==-1&&(p=p.substring(0,C)),eEs(p)||(Vx(p),p=C_(Wy,QR))),p;if(C==="number")return dw(p),p=Math.trunc(p),p>=0&&Number.isSafeInteger(p)?p:w5y(p)}}; Wre=function(p){if(p==null||typeof p=="string"||K6(p)||p instanceof DV)return p}; QFS=function(p){if(typeof p!=="string")throw Error();return p}; Jc=function(p){if(p!=null&&typeof p!=="string")throw Error();return p}; mK=function(p){return p==null||typeof p==="string"?p:void 0}; vT=function(p,C){if(!(p instanceof C))throw Error("Expected instanceof "+xcV(C)+" but got "+(p&&xcV(p.constructor)));return p}; rf9=function(p,C,V){if(p!=null&&typeof p==="object"&&p.hH===F_)return p;if(Array.isArray(p)){var N=xT(p),H=N;H===0&&(H|=V&32);H|=V&2;H!==N&&br(p,H);return new C(p)}}; jfS=function(p){Sn===void 0&&(Sn=typeof Proxy==="function"?BYs(Proxy):null);var C;(C=!Sn)||(K_===void 0&&(K_=typeof WeakMap==="function"?BYs(WeakMap):null),C=!K_);if(C)return p;if(C=DB(p))return C;if(Math.random()>.01)return p;GpV(p);C=new Sn(p,{set:function(V,N,H){pyY();V[N]=H;return!0}}); CrV(p,C);return C}; pyY=function(){uGV()}; DB=function(p){var C;return(C=ug)==null?void 0:C.get(p)}; VkS=function(p){var C;return((C=ZB)==null?void 0:C.get(p))||p}; CrV=function(p,C){(ug||(ug=new K_)).set(p,C);(ZB||(ZB=new K_)).set(C,p)}; BYs=function(p){try{return p.toString().indexOf("[native code]")!==-1?p:null}catch(C){return null}}; GpV=function(p){if(UL===void 0){var C=new Sn([],{});UL=Array.prototype.concat.call([],C).length===1}UL&&typeof Symbol==="function"&&Symbol.isConcatSpreadable&&(p[Symbol.isConcatSpreadable]=!0)}; H6Y=function(p){switch(typeof p){case "boolean":return f_||(f_=[0,void 0,!0]);case "number":return p>0?void 0:p===0?Nou||(Nou=[0,void 0]):[-p,void 0];case "string":return[0,p];case "object":return p}}; q1=function(p,C,V){p=OL(p,C[0],C[1],V?1:2);C!==f_&&V&&yx(p,16384);return p}; OL=function(p,C,V,N){var H;N=(H=N)!=null?H:0;if(p==null)H=96,V?(p=[V],H|=512):p=[],C&&(H=H&-33521665|(C&1023)<<15);else{if(!Array.isArray(p))throw Error("narr");H=xT(p);if(H&2048)throw Error("farr");if(H&64)return p;N===1||N===2||(H|=64);if(V&&(H|=512,V!==p[0]))throw Error("mid");a:{N=p;V=H;if(H=N.length){var X=H-1;if(kT(N[X])){V|=256;C=X-(+!!(V&512)-1);if(C>=1024)throw Error("pvtlmt");H=V&-33521665|(C&1023)<<15;break a}}if(C){C=Math.max(C,H-(+!!(V&512)-1));if(C>1024)throw Error("spvt");H=V&-33521665| (C&1023)<<15}else H=V}}br(p,H);return p}; dLQ=function(p,C){return Xya(C)}; Xya=function(p){switch(typeof p){case "number":return isFinite(p)?p:String(p);case "bigint":return M1(p)?Number(p):String(p);case "boolean":return p?1:0;case "object":if(p)if(Array.isArray(p)){if(Rf(p))return}else{if(K6(p))return TYQ(p);if(p instanceof DV){var C=p.T;return C==null?"":typeof C==="string"?C:p.T=TYQ(C)}}}return p}; i6e=function(p,C,V){var N=qL(p),H=N.length,X=C&256?N[H-1]:void 0;H+=X?-1:0;for(C=C&512?1:0;C=p.length||C>=V))return p[C]}; kK=function(p,C,V,N){if(V===-1)return null;var H=C>>15&1023||536870912;if(V>=H){if(C&256)return p[p.length-1][V]}else{var X=p.length;if(N&&C&256&&(N=p[X-1][V],N!=null)){if(ETL(p,C,H,V)&&YK!=null){var d;p=(d=lVS)!=null?d:lVS={};d=p[YK]||0;d>=4||(p[YK]=d+1,uGV())}return N}return ETL(p,C,H,V)}}; RO=function(p,C,V){var N=p.bx,H=bg(N);n6(H);z9(N,H,C,V);return p}; z9=function(p,C,V,N){var H=C>>15&1023||536870912;if(V>=H){var X=C;if(C&256)var d=p[p.length-1];else{if(N==null)return X;d=p[H+(+!!(C&512)-1)]={};X|=256}d[V]=N;V "+p)}; Ky=function(p){if(typeof p==="string")return{buffer:v2u(p),fg:!1};if(Array.isArray(p))return{buffer:new Uint8Array(p),fg:!1};if(p.constructor===Uint8Array)return{buffer:p,fg:!1};if(p.constructor===ArrayBuffer)return{buffer:new Uint8Array(p),fg:!1};if(p.constructor===DV)return{buffer:Uv(p)||new Uint8Array(0),fg:!0};if(p instanceof Uint8Array)return{buffer:new Uint8Array(p.buffer,p.byteOffset,p.byteLength),fg:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; Kq1=function(p,C){this.C=null;this.W=!1;this.T=this.V=this.S=0;this.init(p,void 0,void 0,C)}; Zm=function(p){var C=0,V=0,N=0,H=p.C,X=p.T;do{var d=H[X++];C|=(d&127)<32&&(V|=(d&127)>>4);for(N=3;N<32&&d&128;N+=7)d=H[X++],V|=(d&127)<>>0,V>>>0);throw Sq();}; Dm=function(p,C){p.T=C;if(C>p.V)throw Svv(p.V,C);}; Ul=function(p){var C=p.C,V=p.T,N=C[V++],H=N&127;if(N&128&&(N=C[V++],H|=(N&127)<<7,N&128&&(N=C[V++],H|=(N&127)<<14,N&128&&(N=C[V++],H|=(N&127)<<21,N&128&&(N=C[V++],H|=N<<28,N&128&&C[V++]&128&&C[V++]&128&&C[V++]&128&&C[V++]&128&&C[V++]&128)))))throw Sq();Dm(p,V);return H}; fy=function(p){var C=p.C,V=p.T,N=C[V+0],H=C[V+1],X=C[V+2];C=C[V+3];Dm(p,p.T+4);return(N<<0|H<<8|X<<16|C<<24)>>>0}; Ol=function(p){var C=fy(p);p=fy(p);return jn(C,p)}; yG=function(p){var C=fy(p),V=fy(p);p=(V>>31)*2+1;var N=V>>>20&2047;C=4294967296*(V&1048575)+C;return N==2047?C?NaN:p*Infinity:N==0?p*4.9E-324*C:p*Math.pow(2,N-1075)*(C+4503599627370496)}; qm=function(p){for(var C=0,V=p.T,N=V+10,H=p.C;Vp.V)throw Svv(C,p.V-V);p.T=N;return V}; Z6L=function(p,C){if(C==0)return ZV();var V=DLV(p,C);p.ol&&p.W?V=p.C.subarray(V,V+C):(p=p.C,C=V+C,V=V===C?new Uint8Array(0):uvX?p.slice(V,C):new Uint8Array(p.subarray(V,C)));return V.length==0?ZV():new DV(V,ur)}; bB=function(p,C){if(It.length){var V=It.pop();V.init(p,void 0,void 0,C);p=V}else p=new Kq1(p,C);this.T=p;this.V=this.T.T;this.C=this.S=-1;ULH(this,C)}; ULH=function(p,C){C=C===void 0?{}:C;p.N7=C.N7===void 0?!1:C.N7}; fVX=function(p){var C=p.T;if(C.T==C.V)return!1;p.V=p.T.T;var V=Ul(p.T)>>>0;C=V>>>3;V&=7;if(!(V>=0&&V<=5))throw FqX(V,p.V);if(C<1)throw Error("Invalid field number: "+C+" (at position "+p.V+")");p.S=C;p.C=V;return!0}; AP=function(p){switch(p.C){case 0:p.C!=0?AP(p):qm(p.T);break;case 1:p=p.T;Dm(p,p.T+8);break;case 2:if(p.C!=2)AP(p);else{var C=Ul(p.T)>>>0;p=p.T;Dm(p,p.T+C)}break;case 5:p=p.T;Dm(p,p.T+4);break;case 3:C=p.S;do{if(!fVX(p))throw Error("Unmatched start-group tag: stream EOF");if(p.C==4){if(p.S!=C)throw Error("Unmatched end-group tag");break}AP(p)}while(1);break;default:throw FqX(p.C,p.V);}}; ot=function(p,C,V){var N=p.T.V,H=Ul(p.T)>>>0,X=p.T.T+H,d=X-N;d<=0&&(p.T.V=X,V(C,p,void 0,void 0,void 0),d=X-p.T.T);if(d)throw Error("Message parsing ended unexpectedly. Expected to read "+(H+" bytes, instead read "+(H-d)+" bytes, either the data ended unexpectedly or the message misreported its own length"));p.T.T=X;p.T.V=N}; YV=function(p){var C=Ul(p.T)>>>0;p=p.T;var V=DLV(p,C);p=p.C;if(O69){var N=p,H;(H=kV)||(H=kV=new TextDecoder("utf-8",{fatal:!0}));C=V+C;N=V===0&&C===N.length?N:N.subarray(V,C);try{var X=H.decode(N)}catch(l){if(xV===void 0){try{H.decode(new Uint8Array([128]))}catch(t){}try{H.decode(new Uint8Array([97])),xV=!0}catch(t){xV=!1}}!xV&&(kV=void 0);throw l;}}else{X=V;C=X+C;V=[];for(var d=null,a,E;X=C?Mc():(E=p[X++],a<194||(E&192)!==128?(X--,Mc()):V.push((a&31)<<6|E&63)): a<240?X>=C-1?Mc():(E=p[X++],(E&192)!==128||a===224&&E<160||a===237&&E>=160||((H=p[X++])&192)!==128?(X--,Mc()):V.push((a&15)<<12|(E&63)<<6|H&63)):a<=244?X>=C-2?Mc():(E=p[X++],(E&192)!==128||(a<<28)+(E-144)>>30!==0||((H=p[X++])&192)!==128||((N=p[X++])&192)!==128?(X--,Mc()):(a=(a&7)<<18|(E&63)<<12|(H&63)<<6|N&63,a-=65536,V.push((a>>10&1023)+55296,(a&1023)+56320))):Mc(),V.length>=8192&&(d=bY1(d,V),V.length=0);X=bY1(d,V)}return X}; yBL=function(p){var C=Ul(p.T)>>>0;return Z6L(p.T,C)}; qvu=function(p){return p}; ny=function(p){return p}; oTL=function(p,C,V,N){return IVS(p,C,V,N,b6v,ABV)}; YvY=function(p,C,V,N){return IVS(p,C,V,N,kta,xLY)}; IVS=function(p,C,V,N,H,X){if(!V.length&&!N)return 0;for(var d=0,a=0,E=0,l=0,t=0,c=V.length-1;c>=0;c--){var T=V[c];N&&c===V.length-1&&T===N||(l++,T!=null&&E++)}if(N)for(var M in N)c=+M,isNaN(c)||(t+=z6S(c),a++,c>d&&(d=c));l=H(l,E)+X(a,d,t);M=E;c=a;T=d;for(var J=t,S=V.length-1;S>=0;S--){var D=V[S];if(!(D==null||N&&S===V.length-1&&D===N)){D=S-C;var Z=H(D,M)+X(c,T,J);Z=1024||(c--,M++,J-=f.length,d=H(N,M)+X(c,T,J),d1?p-1:0)}; kta=function(p,C){return(p>1?p-1:0)+(p-C)*4}; ABV=function(p,C){return p==0?0:9*Math.max(1<<32-Math.clz32(p+p/2-1),4)<=C?p==0?0:p<4?100+(p-1)*16:p<6?148+(p-4)*16:p<12?244+(p-6)*16:p<22?436+(p-12)*19:p<44?820+(p-22)*17:52+32*p:40+4*C}; b6v=function(p){return 40+4*p}; z6S=function(p){return p>=100?p>=1E4?Math.ceil(Math.log10(1+p)):p<1E3?3:4:p<10?1:2}; eq=function(p,C,V){this.bx=OL(p,C,V)}; R69=function(p,C){if(C==null||C=="")return new p;C=JSON.parse(C);if(!Array.isArray(C))throw Error("dnarr");yx(C,32);return new p(C)}; $V=function(p){var C=p.bx;C=P4?C:IO(C,sfH,void 0,void 0,!1);var V=!P4,N=bg(V?p.bx:C);if(p=C.length){var H=C[p-1],X=kT(H);X?p--:H=void 0;var d=+!!(N&512)-1,a=p-d;N=!!wC&&!(N&512);var E,l=(E=wC)!=null?E:ny;E=N?l(a,d,C,H):a;N=(a=N&&a!==E)?Array.prototype.slice.call(C,0,p):C;if(X||a){b:{var t=N;var c=H;var T;X=!1;if(a)for(l=Math.max(0,E+d);l0;p--){T=N[p-1];if(!(T==null||Rf(T)||of(T)&&T.size===0))break;var Z=!0}if(N!==C||t||Z){if(!a&&!V)N=Array.prototype.slice.call(N,0,p);else if(Z||t||c)N.length=p;c&&N.push(c)}Z= N}else Z=C;return Z}; Ly=function(p,C){this.C=p>>>0;this.T=C>>>0}; e6s=function(p){if(!p)return nTS||(nTS=new Ly(0,0));if(!/^\d+$/.test(p))return null;Vx(p);return new Ly(Wy,QR)}; gC=function(p,C){this.C=p>>>0;this.T=C>>>0}; wye=function(p){if(!p)return PrQ||(PrQ=new gC(0,0));if(!/^-?\d+$/.test(p))return null;Vx(p);return new gC(Wy,QR)}; W4=function(){this.T=[]}; QG=function(p,C,V){for(;V>0||C>127;)p.T.push(C&127|128),C=(C>>>7|V<<25)>>>0,V>>>=7;p.T.push(C)}; rC=function(p,C){for(;C>127;)p.T.push(C&127|128),C>>>=7;p.T.push(C)}; $Lu=function(p,C){if(C>=0)rC(p,C);else{for(var V=0;V<9;V++)p.T.push(C&127|128),C>>=7;p.T.push(1)}}; B4=function(p,C){p.T.push(C>>>0&255);p.T.push(C>>>8&255);p.T.push(C>>>16&255);p.T.push(C>>>24&255)}; Lqu=function(){this.V=[];this.C=0;this.T=new W4}; GA=function(p,C){C.length!==0&&(p.V.push(C),p.C+=C.length)}; gTu=function(p,C){pH(p,C,2);C=p.T.end();GA(p,C);C.push(p.C);return C}; Wq9=function(p,C){var V=C.pop();for(V=p.C+p.T.length()-V;V>127;)C.push(V&127|128),V>>>=7,p.C++;C.push(V);p.C++}; pH=function(p,C,V){rC(p.T,C*8+V)}; Qfj=function(p,C,V){if(V!=null){switch(typeof V){case "string":e6s(V)}pH(p,C,1);switch(typeof V){case "number":p=p.T;ro(V);B4(p,Wy);B4(p,QR);break;case "bigint":V=BigInt.asUintN(64,V);V=new Ly(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));p=p.T;C=V.T;B4(p,V.C);B4(p,C);break;default:V=e6s(V),p=p.T,C=V.T,B4(p,V.C),B4(p,C)}}}; CH=function(p,C,V){pH(p,C,2);rC(p.T,V.length);GA(p,p.T.end());GA(p,V)}; jl=function(){function p(){throw Error();} Object.setPrototypeOf(p,p.prototype);return p}; NX=function(p,C,V){this.If=p;this.r$=C;p=vHV(V5);this.T=!!p&&V===p||!1}; Hn=function(p,C){var V=V===void 0?V5:V;return new NX(p,C,V)}; BoY=function(p,C,V,N,H){C=rB1(C,N);C!=null&&(V=gTu(p,V),H(C,p),Wq9(p,V))}; i0=function(p,C,V,N){var H=N[p];if(H)return H;H={};H.GD=H6Y(N[0]);var X=N[1],d=1;X&&X.constructor===Object&&(H.extensions=X,X=N[++d],typeof X==="function"&&(H.TK=!0,XH!=null||(XH=X),dV!=null||(dV=N[d+1]),X=N[d+=2]));for(var a={};X&&Array.isArray(X)&&X.length&&typeof X[0]==="number"&&X[0]>0;){for(var E=0;E>BigInt(32)));QG(p.T,V.C,V.T);break;default:V=wye(C),QG(p.T,V.C,V.T)}}}; KH=function(p,C,V){C=sL(C);C!=null&&C!=null&&(pH(p,V,0),$Lu(p.T,C))}; hjY=function(p,C,V){C=C==null||typeof C==="boolean"?C:typeof C==="number"?!!C:void 0;C!=null&&(pH(p,V,0),p.T.T.push(C?1:0))}; sOX=function(p,C,V){C=mK(C);C!=null&&CH(p,V,xse(C))}; aBy=function(p,C,V,N,H){C=rB1(C,N);C!=null&&(V=gTu(p,V),H(C,p),Wq9(p,V))}; EKu=function(p){return function(){var C=new Lqu;XTH(this.bx,C,i0(cn,tb,TN,p));GA(C,C.T.end());for(var V=new Uint8Array(C.C),N=C.V,H=N.length,X=0,d=0;d>>31)&4294967295;c=H[0];var J=H[1],S=H[2],D=H[3],Z=H[4];for(M=0;M<80;M++){if(M<40)if(M<20){var f=D^J&(S^D);var q=1518500249}else f=J^S^D,q=1859775393;else M<60?(f=J&S|D&(J|S),q=2400959708):(f=J^S^D,q=3395469782);f=((c<<5|c>>>27)&4294967295)+f+Z+q+T[M]&4294967295;Z=D;D=S;S=(J<<30|J>>>2)&4294967295;J=c;c=f}H[0]=H[0]+c&4294967295;H[1]=H[1]+J&4294967295;H[2]= H[2]+S&4294967295;H[3]=H[3]+D&4294967295;H[4]=H[4]+Z&4294967295} function V(c,T){if(typeof c==="string"){c=unescape(encodeURIComponent(c));for(var M=[],J=0,S=c.length;J=56;M--)X[M]=T&255,T>>>=8;C(X);for(M=T=0;M<5;M++)for(var J=24;J>=0;J-=8)c[T++]=H[M]>>J&255;return c} for(var H=[],X=[],d=[],a=[128],E=1;E<64;++E)a[E]=0;var l,t;p();return{reset:p,update:V,digest:N,KU:function(){for(var c=N(),T="",M=0;M4);H++)C[jg(p[H])]||(V+="\nInner error "+N++ +": ",p[H].stack&&p[H].stack.indexOf(p[H].toString())==0||(V+=typeof p[H]==="string"?p[H]:p[H].message+"\n"),V+=pG(p[H],C));H")!=-1&&(p=p.replace(x1a,">")),p.indexOf('"')!=-1&&(p=p.replace(YLL,""")),p.indexOf("'")!=-1&&(p=p.replace(zjj,"'")),p.indexOf("\x00")!=-1&&(p=p.replace(Rja,"�")));return p}; g.dI=function(p){return p==null?"":String(p)}; ic=function(p){for(var C=0,V=0;V>>0;return C}; h9=function(p){var C=Number(p);return C==0&&g.Sy(p)?NaN:C}; nKs=function(p){return String(p).replace(/\-([a-z])/g,function(C,V){return V.toUpperCase()})}; ejS=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Pg9=function(p){return p.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(C,V,N){return V+N.toUpperCase()})}; wT9=function(p){var C=1;p=p.split(":");for(var V=[];C>0&&p.length;)V.push(p.shift()),C--;p.length&&V.push(p.join(":"));return V}; s_=function(p){this.T=p||{cookie:""}}; aa=function(p){p=(p.T.cookie||"").split(";");for(var C=[],V=[],N,H,X=0;X/g,">").replace(/"/g,""").replace(/'/g,"'");return $e(p)}; p4Q=function(p){var C=gI("");return $e(p.map(function(V){return LH(gI(V))}).join(LH(C).toString()))}; Hya=function(p){var C;if(!CBy.test("div"))throw Error("");if(jts.indexOf("DIV")!==-1)throw Error("");var V="":(p=p4Q(C.map(function(N){return N instanceof wV?N:gI(String(N))})),V+=">"+p.toString()+""); return $e(V)}; VqX=function(p){for(var C="",V=Object.keys(p),N=0;N2&&lma(H,d,N,2);return d}; lma=function(p,C,V,N){function H(a){a&&C.appendChild(typeof a==="string"?p.createTextNode(a):a)} for(;N0)H(X);else{a:{if(X&&typeof X.length=="number"){if(g.Pv(X)){var d=typeof X.item=="function"||typeof X.item=="string";break a}if(typeof X==="function"){d=typeof X.item=="function";break a}}d=!1}g.lr(d?g.p6(X):X,H)}}}; g.iK=function(p){return XQ(document,p)}; XQ=function(p,C){C=String(C);p.contentType==="application/xhtml+xml"&&(C=C.toLowerCase());return p.createElement(C)}; g.h2=function(p){return document.createTextNode(String(p))}; g.so=function(p,C){p.appendChild(C)}; g.aN=function(p){for(var C;C=p.firstChild;)p.removeChild(C)}; Eo=function(p,C,V){p.insertBefore(C,p.childNodes[V]||null)}; g.lK=function(p){return p&&p.parentNode?p.parentNode.removeChild(p):null}; g.t2=function(p,C){if(!p||!C)return!1;if(p.contains&&C.nodeType==1)return p==C||p.contains(C);if(typeof p.compareDocumentPosition!="undefined")return p==C||!!(p.compareDocumentPosition(C)&16);for(;C&&p!=C;)C=C.parentNode;return C==p}; QW=function(p){return p.nodeType==9?p:p.ownerDocument||p.document}; g.ce=function(p,C){if("textContent"in p)p.textContent=C;else if(p.nodeType==3)p.data=String(C);else if(p.firstChild&&p.firstChild.nodeType==3){for(;p.lastChild!=p.firstChild;)p.removeChild(p.lastChild);p.firstChild.data=String(C)}else g.aN(p),p.appendChild(QW(p).createTextNode(String(C)))}; cPV=function(p){return p.tagName=="A"&&p.hasAttribute("href")||p.tagName=="INPUT"||p.tagName=="TEXTAREA"||p.tagName=="SELECT"||p.tagName=="BUTTON"?!p.disabled&&(!p.hasAttribute("tabindex")||tqY(p)):p.hasAttribute("tabindex")&&tqY(p)}; tqY=function(p){p=p.tabIndex;return typeof p==="number"&&p>=0&&p<32768}; Mq=function(p,C,V){if(!C&&!V)return null;var N=C?String(C).toUpperCase():null;return TO(p,function(H){return(!N||H.nodeName==N)&&(!V||typeof H.className==="string"&&g.W5(H.className.split(/\s+/),V))},!0)}; TO=function(p,C,V){p&&!V&&(p=p.parentNode);for(V=0;p;){if(C(p))return p;p=p.parentNode;V++}return null}; WG=function(p){this.T=p||g.xH.document||document}; J2=function(p){this.bx=OL(p)}; mS=function(p){this.bx=OL(p)}; ve=function(p){this.bx=OL(p)}; TC1=function(p,C){sl(p,mS,1,C)}; FQ=function(p){this.bx=OL(p)}; JPX=function(p,C){C=C===void 0?MqX:C;if(!Su){var V;p=(V=p.navigator)==null?void 0:V.userAgentData;if(!p||typeof p.getHighEntropyValues!=="function"||p.brands&&typeof p.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));V=(p.brands||[]).map(function(H){var X=new mS;X=mM(X,1,H.brand);return mM(X,2,H.version)}); TC1(RO(Ke,2,X_(p.mobile)),V);Su=p.getHighEntropyValues(C)}var N=new Set(C);return Su.then(function(H){var X=Ke.clone();N.has("platform")&&mM(X,3,H.platform);N.has("platformVersion")&&mM(X,4,H.platformVersion);N.has("architecture")&&mM(X,5,H.architecture);N.has("model")&&mM(X,6,H.model);N.has("uaFullVersion")&&mM(X,7,H.uaFullVersion);return X}).catch(function(){return Ke.clone()})}; Zz=function(p){this.bx=OL(p)}; mma=function(p){this.bx=OL(p)}; Uo=function(p){this.bx=OL(p,4)}; fe=function(p){this.bx=OL(p,36)}; Oo=function(p){this.bx=OL(p,19)}; yf=function(p,C){this.Pf=C=C===void 0?!1:C;this.uach=this.locale=null;this.T=new Oo;Number.isInteger(p)&&this.T.Nm(p);C||(this.locale=document.documentElement.getAttribute("lang"));vVH(this,new Zz)}; vVH=function(p,C){hP(p.T,Zz,1,C);Mm(C,1)||Fa(C,1,1);p.Pf||(C=qq(p),TA(C,5)||mM(C,5,p.locale));p.uach&&(C=qq(p),iB(C,ve,9)||hP(C,ve,9,p.uach))}; A2=function(p,C){n_(IN(p),FQ,11)&&(p=bK(p),Fa(p,1,C))}; FMS=function(p,C){n_(IN(p),FQ,11)&&(p=bK(p),RO(p,2,X_(C)))}; IN=function(p){return iB(p.T,Zz,1)}; SlX=function(p){var C=C===void 0?MqX:C;var V=p.Pf?void 0:He();V?JPX(V,C).then(function(N){p.uach=N;N=qq(p);hP(N,ve,9,p.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; qq=function(p){p=IN(p);var C=iB(p,FQ,11);C||(C=new FQ,hP(p,FQ,11,C));return C}; bK=function(p){p=qq(p);var C=iB(p,J2,10);C||(C=new J2,RO(C,2,X_(!1)),hP(p,J2,10,C));return C}; KMS=function(p){return g.Nq?"webkit"+p:p.toLowerCase()}; g.oN=function(p,C,V,N){this.S=p;this.W=C;this.T=this.V=p;this.Y=V||0;this.D=N||2}; g.kq=function(p){p.T=Math.min(p.W,p.T*p.D);p.V=Math.min(p.W,p.T+(p.Y?Math.round(p.Y*(Math.random()-.5)*2*p.T):0));p.C++}; Dmu=function(p){this.bx=OL(p,8)}; uaa=function(p){this.bx=OL(p)}; Yq=function(p){g.Y.call(this);var C=this;this.componentId="";this.T=[];this.vr="";this.pageId=null;this.Ga=this.sY=-1;this.D=this.experimentIds=null;this.a$=this.b_=this.Y=this.S=0;this.Y_=1;this.timeoutMillis=0;this.Vn=!1;this.logSource=p.logSource;this.BW=p.BW||function(){}; this.V=new yf(p.logSource,p.Pf);this.network=p.network;this.NA=p.NA||null;this.J=p.z5_||null;this.sessionIndex=p.sessionIndex||null;this.us=p.us||!1;this.logger=null;this.withCredentials=!p.Qb;this.Pf=p.Pf||!1;this.Z=!this.Pf&&!!He()&&!!He().navigator&&He().navigator.sendBeacon!==void 0;this.Wr=typeof URLSearchParams!=="undefined"&&!!(new URL(xq())).searchParams&&!!(new URL(xq())).searchParams.set;var V=Fa(new Zz,1,1);vVH(this.V,V);this.W=new g.oN(1E4,3E5,.1);p=Zyy(this,p.CE);this.C=new t9(this.W.getValue(), p);this.Sa=new t9(6E5,p);this.us||this.Sa.start();this.Pf||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&C.KR()}),document.addEventListener("pagehide",this.KR.bind(this)))}; Zyy=function(p,C){return p.Wr?C?function(){C().then(function(){p.flush()})}:function(){p.flush()}:function(){}}; Um9=function(p){p.J||(p.J=xq());try{return(new URL(p.J)).toString()}catch(C){return(new URL(p.J,He().location.origin)).toString()}}; Oyv=function(p){fm9(p,function(C,V){C=new URL(C);C.searchParams.set("format","json");var N=!1;try{N=He().navigator.sendBeacon(C.toString(),V.c6())}catch(H){}N||(p.Z=!1);return N})}; fm9=function(p,C){if(p.T.length!==0){var V=new URL(Um9(p));V.searchParams.delete("format");var N=p.BW();N&&V.searchParams.set("auth",N);V.searchParams.set("authuser",p.sessionIndex||"0");for(N=0;N<10&&p.T.length;++N){var H=p.T.slice(0,32),X=p.V.build(H,p.S,p.Y,p.NA,p.b_,p.a$);if(!C(V.toString(),X)){++p.Y;break}p.S=0;p.Y=0;p.b_=0;p.a$=0;p.T=p.T.slice(H.length)}p.C.enabled&&p.C.stop()}}; xq=function(){return"https://play.google.com/log?format=json&hasfast=true"}; zO=function(){this.D7=typeof AbortController!=="undefined"}; RN=function(p,C){g.Y.call(this);this.logSource=p;this.sessionIndex=C;this.o0="https://play.google.com/log?format=json&hasfast=true";this.C=null;this.S=!1;this.network=null;this.componentId="";this.T=this.NA=null;this.V=!1;this.pageId=null}; yPL=function(p,C){p.C=C;return p}; qle=function(p,C){p.network=C;return p}; Ims=function(p,C){p.T=C}; ne=function(p,C,V,N,H,X,d){p=p===void 0?-1:p;C=C===void 0?"":C;V=V===void 0?"":V;N=N===void 0?!1:N;H=H===void 0?"":H;g.Y.call(this);this.logSource=p;this.componentId=C;X?C=X:(p=new RN(p,"0"),p.componentId=C,g.R(this,p),V!==""&&(p.o0=V),N&&(p.S=!0),H&&yPL(p,H),d&&qle(p,d),C=p.build());this.T=C}; byv=function(p){this.T=p}; eu=function(p,C,V){this.C=p;this.S=C;this.fields=V||[];this.T=new Map}; Mne=function(p){return p.fields.map(function(C){return C.fieldType})}; Tws=function(p){return p.fields.map(function(C){return C.fieldName})}; Pe=function(p,C){eu.call(this,p,3,C)}; wW=function(p,C){eu.call(this,p,2,C)}; g.$q=function(p,C){this.type=p;this.currentTarget=this.target=C;this.defaultPrevented=this.C=!1}; Le=function(p,C){g.$q.call(this,p?p.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.T=null;p&&this.init(p,C)}; gW=function(p){return!(!p||!p[APH])}; kA1=function(p,C,V,N,H){this.listener=p;this.proxy=null;this.src=C;this.type=V;this.capture=!!N;this.qZ=H;this.key=++oVH;this.removed=this.CC=!1}; rW=function(p){p.removed=!0;p.listener=null;p.proxy=null;p.src=null;p.qZ=null}; Be=function(p){this.src=p;this.listeners={};this.T=0}; g.GO=function(p,C){var V=C.type;V in p.listeners&&g.rY(p.listeners[V],C)&&(rW(C),p.listeners[V].length==0&&(delete p.listeners[V],p.T--))}; pJ=function(p,C,V,N){for(var H=0;H1)));d=d.next)H||(X=d);H&&(V.T==0&&N==1?Xnu(V,C):(X?(N=X,N.next==V.S&&(V.S=N),N.next=N.next.next):dXX(V),iHQ(V,H,3,C)))}p.V=null}else DC(p,3,C)}; O8=function(p,C){p.C||p.T!=2&&p.T!=3||hJY(p);p.S?p.S.next=C:p.C=C;p.S=C}; scL=function(p,C,V,N){var H=ZC(null,null,null);H.T=new g.um(function(X,d){H.V=C?function(a){try{var E=C.call(N,a);X(E)}catch(l){d(l)}}:X; H.C=V?function(a){try{var E=V.call(N,a);E===void 0&&a instanceof q7?d(a):X(E)}catch(l){d(l)}}:d}); H.T.V=p;O8(p,H);return H.T}; DC=function(p,C,V){p.T==0&&(p===V&&(C=3,V=new TypeError("Promise cannot resolve to itself")),p.T=1,C09(V,p.Apn,p.xnn,p)||(p.D=V,p.T=C,p.V=null,hJY(p),C!=3||V instanceof q7||aua(p,V)))}; C09=function(p,C,V,N){if(p instanceof g.um)return O8(p,ZC(C||g.Fu,V||null,N)),!0;if(p)try{var H=!!p.$goog_Thenable}catch(d){H=!1}else H=!1;if(H)return p.then(C,V,N),!0;if(g.Pv(p))try{var X=p.then;if(typeof X==="function")return EeQ(p,X,C,V,N),!0}catch(d){return V.call(N,d),!0}return!1}; EeQ=function(p,C,V,N,H){function X(E){a||(a=!0,N.call(H,E))} function d(E){a||(a=!0,V.call(H,E))} var a=!1;try{C.call(p,d,X)}catch(E){X(E)}}; hJY=function(p){p.Y||(p.Y=!0,g.mo(p.ID,p))}; dXX=function(p){var C=null;p.C&&(C=p.C,p.C=C.next,C.next=null);p.C||(p.S=null);return C}; iHQ=function(p,C,V,N){if(V==3&&C.C&&!C.S)for(;p&&p.W;p=p.V)p.W=!1;if(C.T)C.T.V=null,luj(C,V,N);else try{C.S?C.V.call(C.context):luj(C,V,N)}catch(H){tlj.call(null,H)}w41(pn9,C)}; luj=function(p,C,V){C==2?p.V.call(p.context,V):p.C&&p.C.call(p.context,V)}; aua=function(p,C){p.W=!0;g.mo(function(){p.W&&tlj.call(null,C)})}; q7=function(p){c5.call(this,p)}; NVj=function(p,C,V){this.promise=p;this.resolve=C;this.reject=V}; g.Ib=function(p,C){g.h8.call(this);this.Kx=p||1;this.FR=C||g.xH;this.s0=(0,g.LY)(this.X1o,this);this.mR=g.QL()}; g.bm=function(p,C,V){if(typeof p==="function")V&&(p=(0,g.LY)(p,V));else if(p&&typeof p.handleEvent=="function")p=(0,g.LY)(p.handleEvent,p);else throw Error("Invalid listener argument");return Number(C)>2147483647?-1:g.xH.setTimeout(p,C||0)}; A8=function(p,C){var V=null;return(new g.um(function(N,H){V=g.bm(function(){N(C)},p); V==-1&&H(Error("Failed to schedule timer."))})).Rz(function(N){g.xH.clearTimeout(V); throw N;})}; g.ob=function(p){g.Y.call(this);this.D=p;this.S=0;this.V=100;this.W=!1;this.C=new Map;this.Y=new Set;this.flushInterval=3E4;this.T=new g.Ib(this.flushInterval);this.T.listen("tick",this.Uy,!1,this);g.R(this,this.T)}; cbv=function(p){p.T.enabled||p.T.start();p.S++;p.S>=p.V&&p.Uy()}; TVe=function(p,C){return p.Y.has(C)?void 0:p.C.get(C)}; Mle=function(p){for(var C=0;C=0){var X=p[V].substring(0,N);H=p[V].substring(N+1)}else X=p[V];C(X,H?HG(H):"")}}}; QU=function(p,C){if(!C)return p;var V=p.indexOf("#");V<0&&(V=p.length);var N=p.indexOf("?");if(N<0||N>V){N=V;var H=""}else H=p.substring(N+1,V);p=[p.slice(0,N),H,p.slice(V)];V=p[1];p[1]=C?V?V+"&"+C:C:V;return p[0]+(p[1]?"?"+p[1]:"")+p[2]}; rA=function(p,C,V){if(Array.isArray(C))for(var N=0;N=0&&CV)H=V;N+=C.length+1;return HG(p.slice(N,H!==-1?H:0))}; jE=function(p,C){for(var V=p.search(qQL),N=0,H,X=[];(H=ybS(p,N,C,V))>=0;)X.push(p.substring(N,H)),N=Math.min(p.indexOf("&",H)+1||V,V);X.push(p.slice(N));return X.join("").replace(Iuu,"$1")}; bHQ=function(p,C,V){return pN(jE(p,C),C,V)}; g.VO=function(p){g.h8.call(this);this.headers=new Map;this.Sa=p||null;this.V=!1;this.T=null;this.J="";this.C=0;this.S="";this.W=this.sY=this.Z=this.b_=!1;this.a$=0;this.Y=null;this.Vn="";this.D=!1}; oeY=function(p,C,V,N,H,X,d){var a=new g.VO;Aby.push(a);C&&a.listen("complete",C);a.Ff("ready",a.An);X&&(a.a$=Math.max(0,X));d&&(a.D=d);a.send(p,V,N,H)}; xXu=function(p,C){p.V=!1;p.T&&(p.W=!0,p.T.abort(),p.W=!1);p.S=C;p.C=5;kNL(p);Nj(p)}; kNL=function(p){p.b_||(p.b_=!0,p.dispatchEvent("complete"),p.dispatchEvent("error"))}; YQL=function(p){if(p.V&&typeof Hi!="undefined")if(p.Z&&g.Xr(p)==4)setTimeout(p.HQ.bind(p),0);else if(p.dispatchEvent("readystatechange"),p.isComplete()){p.getStatus();p.V=!1;try{if(dU(p))p.dispatchEvent("complete"),p.dispatchEvent("success");else{p.C=6;try{var C=g.Xr(p)>2?p.T.statusText:""}catch(V){C=""}p.S=C+" ["+p.getStatus()+"]";kNL(p)}}finally{Nj(p)}}}; Nj=function(p,C){if(p.T){p.Y&&(clearTimeout(p.Y),p.Y=null);var V=p.T;p.T=null;C||p.dispatchEvent("ready");try{V.onreadystatechange=null}catch(N){}}}; dU=function(p){var C=p.getStatus();a:switch(C){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break a;default:V=!1}if(!V){if(C=C===0)p=g.$7(1,String(p.J)),!p&&g.xH.self&&g.xH.self.location&&(p=g.xH.self.location.protocol.slice(0,-1)),C=!zJV.test(p?p.toLowerCase():"");V=C}return V}; g.Xr=function(p){return p.T?p.T.readyState:0}; g.i3=function(p){try{return p.T?p.T.responseText:""}catch(C){return""}}; g.h$=function(p){try{if(!p.T)return null;if("response"in p.T)return p.T.response;switch(p.Vn){case "":case "text":return p.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in p.T)return p.T.mozResponseArrayBuffer}return null}catch(C){return null}}; g.RJu=function(p){var C={};p=(p.T&&g.Xr(p)>=2?p.T.getAllResponseHeaders()||"":"").split("\r\n");for(var V=0;V>1,C),eE(p,p.length>>1)]}; aHa=function(p){var C=g.F(saQ(p,Pi));p=C.next().value;C=C.next().value;return p.toString(16)+C.toString(16)}; E5a=function(p,C){var V=saQ(C);p=new Uint32Array(p.buffer);C=p[0];var N=g.F(V);V=N.next().value;N=N.next().value;for(var H=1;H>>8|d<<24,d+=X|0,d^=a+38293,X=X<<3|X>>>29,X^=d,E=E>>>8|E<<24,E+=a|0,E^=l+38293,a=a<<3|a>>>29,a^=E;X=[X,d];p[H]^=X[0];H+1=V?(globalThis.sessionStorage.removeItem(p),["e"]):["a",new Uint8Array(N.buffer,C+4)]}; wU=function(p,C,V){V=V===void 0?[]:V;this.maxItems=p;this.T=C===void 0?0:C;this.C=V}; c9X=function(p){var C=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!C)return new wU(p);var V=C.split(",");if(V.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wU(p);C=V.slice(1);C.length===1&&C[0]===""&&(C=[]);V=Number(V[0]);return isNaN(V)||V<0||V>C.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wU(p)):new wU(p,V,C)}; TIe=function(p,C){this.logger=C;try{var V=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(N){V=!1}V&&(this.index=c9X(p))}; MgX=function(p,C,V,N,H){var X=p.index?ci(p.logger,function(){return lHe(p.index,aHa(C),V,N,H)},"W"):"u"; p.logger.SM(X)}; J9V=function(p,C,V){var N=g.F(p.index?ci(p.logger,function(){return tge(aHa(C),V)},"R"):["u"]),H=N.next().value; N=N.next().value;p.logger.sL(H);return N}; F9a=function(p){function C(){V-=N;V-=H;V^=H>>>13;N-=H;N-=V;N^=V<<8;H-=V;H-=N;H^=N>>>13;V-=N;V-=H;V^=H>>>12;N-=H;N-=V;N^=V<<16;H-=V;H-=N;H^=N>>>5;V-=N;V-=H;V^=H>>>3;N-=H;N-=V;N^=V<<10;H-=V;H-=N;H^=N>>>15} p=m$y(p);for(var V=2654435769,N=2654435769,H=314159265,X=p.length,d=X,a=0;d>=12;d-=12,a+=12)V+=$N(p,a),N+=$N(p,a+4),H+=$N(p,a+8),C();H+=X;switch(d){case 11:H+=p[a+10]<<24;case 10:H+=p[a+9]<<16;case 9:H+=p[a+8]<<8;case 8:N+=p[a+7]<<24;case 7:N+=p[a+6]<<16;case 6:N+=p[a+5]<<8;case 5:N+=p[a+4];case 4:V+=p[a+3]<<24;case 3:V+=p[a+2]<<16;case 2:V+=p[a+1]<<8;case 1:V+=p[a+0]}C();return v5s.toString(H)}; m$y=function(p){for(var C=[],V=0;V>7,p.error.code]);N.set(V,4);return N}; D$1=function(){var p=0,C;return function(V){C||(C=new Tq);var N=new CE(C,p,1),H=Wi(N,function(){return pE(V)},!0); N.dispose();p++;return H}}; CE=function(p,C,V){LN.call(this,p);this.S=C;this.clientState=V;this.V="S";this.C="q"}; pE=function(p){return globalThis.TextEncoder?(new TextEncoder).encode(p):g.mr(p)}; jZ=function(p,C,V){g.Y.call(this);var N=this;this.logger=p;this.onError=C;this.state=V;this.Y=0;this.V=void 0;this.addOnDisposeCallback(function(){N.T&&(N.T.dispose(),N.T=void 0)})}; una=function(p,C){C=C instanceof fN?C:new fN(5,"TVD:error",C);return p.reportError(C)}; Vh=function(p,C,V){try{if(p.fS())throw new fN(21,"BNT:disposed");if(!p.T&&p.V)throw p.V;var N,H;return(H=(N=ZGv(p,C,V))!=null?N:U$a(p,C,V))!=null?H:fHV(p,C,V)}catch(X){if(!C.qJ)throw una(p,X);return OG9(p,V,X)}}; ZGv=function(p,C,V){var N;return(N=p.T)==null?void 0:Wi(N,function(){return N_(p,C)},V,function(H){var X; if(p.T instanceof QO&&((X=C.Yq)==null?0:X.Xz))try{var d;(d=p.cache)==null||MgX(d,N_(p,C),H,C.Yq.pA,p.D-120)}catch(a){p.reportError(new fN(24,"ELX:write",a))}})}; U$a=function(p,C,V){var N;if((N=C.Yq)!=null&&N.q2)try{var H,X=(H=p.cache)==null?void 0:J9V(H,N_(p,C),C.Yq.pA);return X?V?ci(p.logger,function(){return g.mq(X,2)},"a"):X:void 0}catch(d){p.reportError(new fN(23,"RXO:read",d))}}; fHV=function(p,C,V){var N={stack:[],error:void 0,hasError:!1};try{if(!C.F9)throw new fN(29,"SDF:notready");return Wi(GV(N,new CE(p.logger,p.Y,p.state)),function(){return N_(p,C)},V)}catch(H){N.error=H,N.hasError=!0}finally{p0(N)}}; OG9=function(p,C,V){var N={stack:[],error:void 0,hasError:!1};try{var H=una(p,V);return Wi(GV(N,new Gq(p.logger,H)),function(){return[]},C)}catch(X){N.error=X,N.hasError=!0}finally{p0(N)}}; N_=function(p,C){return C.hw?C.hw:C.P$?ci(p.logger,function(){return C.hw=pE(C.P$)},"c"):[]}; Xf=function(p){var C;jZ.call(this,p.w7.Wd(),(C=p.onError)!=null?C:function(){},0); var V=this;this.S=0;this.C=new g.Zt;g.R(this,this.logger);this.w7=p.w7;this.qB=p.qB;this.qm=Object.assign({},y9Y,p.qm||{});p.Uf&&(this.logger instanceof vi||this.logger instanceof Mj)&&this.logger.WN(p.Uf);this.LY=p.LY||!1;if(q_H(p)){var N=this.w7;this.W=function(){return jaj(N).catch(function(H){H=V.reportError(new fN(20,"TRG:Disposed",H));V.V=H;var X;(X=V.T)==null||X.dispose();V.T=void 0;aF(V.C.promise);V.C.reject(H)})}; Vgs(N,function(){H2(V)}); N.J===2&&H2(this)}else this.W=p.kvn,H2(this);this.addOnDisposeCallback(function(){aF(V.C.promise);V.C.reject()})}; IHQ=function(p,C){C=C instanceof fN?C:C instanceof Y7?new fN(11,"EBH:Error",C):new fN(12,"BSO:Unknown",C);return p.reportError(C)}; H2=function(p){var C,V,N,H,X,d,a,E,l,t,c,T,M,J;g.I(function(S){switch(S.C){case 1:C=void 0;p.S++;V=new g.Zt;p.w7 instanceof zq&&p.w7.S.push(V.promise);if(!p.LY){S.EY(2);break}N=new g.Zt;setTimeout(function(){return void N.resolve()}); return g.y(S,N.promise,2);case 2:return g.vv(S,4),p.state=5,H={},X=[],g.y(S,nN(p.w7.snapshot({P$:H,P5:X}),p.qm.p1o,function(){return Promise.reject(new fN(15,"MDA:Timeout"))}),6); case 6:d=S.T;if(p.fS())throw new fN(20,"MDA:Disposed");a=X[0];p.state=6;return g.y(S,nN(p.logger.YH("g",1,p.qB.dK(d)),p.qm.zb,function(){return Promise.reject(new fN(10,"BWB:Timeout"))}),7); case 7:E=S.T;if(p.fS())throw new fN(20,"BWB:Disposed");p.state=7;C=ci(p.logger,function(){var D=bGu(p,E,V,a);D.T.promise.then(function(){return void p.W()}).catch(function(){}); return D},"i"); g.Fe(S,5);break;case 4:l=g.Sa(S);t=IHQ(p,l);(c=C)==null||c.dispose();V.resolve();if(p.w7 instanceof zq&&p.S<2&&(l instanceof fN?l.code!==20&&l.code!==10:l instanceof Y7?l.code===13:1))return T=(1+Math.random()*.25)*(p.T?6E4:1E3),M=setTimeout(function(){return void p.W()},T),p.addOnDisposeCallback(function(){return void clearTimeout(M)}),S.return(); p.V=t;aF(p.C.promise);p.C.reject(p.V);return S.return();case 5:p.state=8,p.S=0,(J=p.T)==null||J.dispose(),p.T=C,p.C.resolve(),g.JQ(S)}})}; bGu=function(p,C,V,N){var H=c4(C,2)*1E3;if(H<=0)throw new fN(31,"TTM:Invalid");if(TA(C,4))return new Bi(p.logger,TA(C,4),H);if(!c4(C,3))return new rU(p.logger,f6(Qx(C,1)),H);if(!N)throw new fN(4,"PMD:Undefined");N=N(f6(Qx(C,1)));if(!(N instanceof Function))throw new fN(16,"APF:Failed");p.D=Math.floor((Date.now()+H)/1E3);p=new QO(p.logger,N,c4(C,3),H);p.addOnDisposeCallback(function(){return void V.resolve()}); return p}; dh=function(p){this.bx=OL(p)}; A9y=function(p,C,V){this.G0=p;this.j7=C;this.metadata=V}; ip=function(p,C){C=C===void 0?{}:C;this.Q6x=p;this.metadata=C;this.status=null}; hE=function(p,C,V,N,H){this.name=p;this.methodType="unary";this.requestType=C;this.responseType=V;this.T=N;this.C=H}; sV=function(p){this.bx=OL(p)}; as=function(p){this.bx=OL(p)}; EV=function(p){this.bx=OL(p)}; lp=function(p,C){this.D=p.C_e;this.J=C;this.T=p.xhr;this.V=[];this.W=[];this.Y=[];this.S=[];this.C=[];this.D&&o5S(this)}; Y_1=function(p,C){g.jS(p.T,"complete",function(){if(dU(p.T)){var V=g.i3(p.T);if(C&&p.T.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");V=atob(V)}try{var N=p.J(V)}catch(d){tE(p,new Y7(13,"Error when deserializing response data; error: "+d+(", response: "+V)));return}V=Jb9(p.T.getStatus());c2(p,Ti(p));V==0?khy(p,N):tE(p,new Y7(V,"Xhr succeeded but the status code is not 200"))}else{V=g.i3(p.T);N=Ti(p);if(V){var H=x$v(p,V);V=H.code;var X=H.details; H=H.metadata}else V=2,X="Rpc failed due to xhr error. uri: "+String(p.T.J)+", error code: "+p.T.C+", error: "+p.T.getLastError(),H=N;c2(p,N);tE(p,new Y7(V,X,H))}})}; o5S=function(p){p.D.lq("data",function(C){if("1"in C){var V=C["1"];try{var N=p.J(V)}catch(H){tE(p,new Y7(13,"Error when deserializing response data; error: "+H+(", response: "+V)))}N&&khy(p,N)}if("2"in C)for(C=x$v(p,C["2"]),V=0;V-1&&p.splice(C,1)}; khy=function(p,C){for(var V=0;V>4&15).toString(16)+(p&15).toString(16)}; fE=function(p,C){this.C=this.T=null;this.V=p||null;this.S=!!C}; Is=function(p){p.T||(p.T=new Map,p.C=0,p.V&&WX(p.V,function(C,V){p.add(HG(C),V)}))}; wGj=function(p,C){Is(p);C=bp(p,C);return p.T.has(C)}; g.$$H=function(p,C,V){p.remove(C);V.length>0&&(p.V=null,p.T.set(bp(p,C),g.p6(V)),p.C=p.C+V.length)}; bp=function(p,C){C=String(C);p.S&&(C=C.toLowerCase());return C}; n5L=function(p,C){C&&!p.S&&(Is(p),p.V=null,p.T.forEach(function(V,N){var H=N.toLowerCase();N!=H&&(this.remove(N),g.$$H(this,H,V))},p)); p.S=C}; g.L99=function(p){var C="";g.ZH(p,function(V,N){C+=N;C+=":";C+=V;C+="\r\n"}); return C}; g.AE=function(p,C,V){if(g.k5(V))return p;V=g.L99(V);if(typeof p==="string")return pN(p,g.N$(C),V);g.yh(p,C,V);return p}; g.os=function(p){g.Y.call(this);this.C=p;this.T={}}; g5e=function(p,C,V,N,H,X){if(Array.isArray(V))for(var d=0;d0&&(C[H]=N)},p); return C}; KSj=function(p){p=Mk(p);var C=[];g.ZH(p,function(V,N){N in Object.prototype||typeof V!="undefined"&&C.push([N,":",V].join(""))}); return C}; uQe=function(p){tU(p,"od",Dqu);tU(p,"opac",JU).T=!0;tU(p,"sbeos",JU).T=!0;tU(p,"prf",JU).T=!0;tU(p,"mwt",JU).T=!0;tU(p,"iogeo",JU)}; ZeS=function(){this.T=this.Os=null}; mg=function(){}; FL=function(){if(!vs())throw Error();}; vs=function(){return!(!S1||!S1.performance)}; Kh=function(p){return p?p.passive&&UqQ()?p:p.capture||!1:!1}; De=function(p,C,V,N){return p.addEventListener?(p.addEventListener(C,V,Kh(N)),!0):!1}; uZ=function(p){return p.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[p.visibilityState||p.webkitVisibilityState||p.mozVisibilityState||""]||0}; fzu=function(){}; Oes=function(){return(O1||y8)&&qc?qc.mobile:!Ze()&&(bP("iPod")||bP("iPhone")||bP("Android")||bP("IEMobile"))}; Ze=function(){return(O1||y8)&&qc?!qc.mobile&&(bP("iPad")||bP("Android")||bP("Silk")):bP("iPad")||bP("Android")&&!bP("Mobile")||bP("Silk")}; Uh=function(p){try{return!!p&&p.location.href!=null&&X5e(p,"foo")}catch(C){return!1}}; fh=function(p,C){if(p)for(var V in p)Object.prototype.hasOwnProperty.call(p,V)&&C(p[V],V,p)}; qoH=function(){var p=[];fh(y2V,function(C){p.push(C)}); return p}; IzV=function(p){var C,V;return(V=(C=/https?:\/\/[^\/]+/.exec(p))==null?void 0:C[0])!=null?V:""}; oqj=function(){var p=be1("IFRAME"),C={};g.lr(A21(),function(V){p.sandbox&&p.sandbox.supports&&p.sandbox.supports(V)&&(C[V]=!0)}); return C}; be1=function(p,C){C=C===void 0?document:C;return C.createElement(String(p).toLowerCase())}; kOs=function(p){for(var C=p;p&&p!=p.parent;)p=p.parent,Uh(p)&&(C=p);return C}; RCa=function(p){p=p||Oh();for(var C=new xqQ(g.xH.location.href,!1),V=null,N=p.length-1,H=N;H>=0;--H){var X=p[H];!V&&You.test(X.url)&&(V=X);if(X.url&&!X.vF){C=X;break}}H=null;X=p.length&&p[N].url;C.depth!=0&&X&&(H=p[N]);return new zCS(C,H,V)}; Oh=function(){var p=g.xH,C=[],V=null;do{var N=p;if(Uh(N)){var H=N.location.href;V=N.document&&N.document.referrer||null}else H=V,V=null;C.push(new xqQ(H||""));try{p=N.parent}catch(X){p=null}}while(p&&N!=p);N=0;for(p=C.length-1;N<=p;++N)C[N].depth=p-N;N=g.xH;if(N.location&&N.location.ancestorOrigins&&N.location.ancestorOrigins.length==C.length-1)for(p=1;pC&&(C=V.length);return 3997-C-p.V.length-1}; bZ=function(p,C){this.T=p;this.depth=C}; wea=function(){function p(a,E){return a==null?E:a} var C=Oh(),V=Math.max(C.length-1,0),N=RCa(C);C=N.T;var H=N.C,X=N.V,d=[];X&&d.push(new bZ([X.url,X.vF?2:0],p(X.depth,1)));H&&H!=X&&d.push(new bZ([H.url,2],0));C.url&&C!=X&&d.push(new bZ([C.url,0],p(C.depth,V)));N=g.AU(d,function(a,E){return d.slice(0,d.length-E)}); !C.url||(X||H)&&C!=X||(H=IzV(C.url))&&N.push([new bZ([H,1],p(C.depth,V))]);N.push([]);return g.AU(N,function(a){return PKH(V,a)})}; PKH=function(p,C){g.oo(C,function(H){return H.depth>=0}); var V=kc(C,function(H,X){return Math.max(H,X.depth)},-1),N=NYH(V+2); N[0]=p;g.lr(C,function(H){return N[H.depth+1]=H.T}); return N}; $qa=function(){var p=p===void 0?wea():p;return p.map(function(C){return Io(C)})}; LSj=function(p){var C=!1;C=C===void 0?!1:C;S1.google_image_requests||(S1.google_image_requests=[]);var V=be1("IMG",S1.document);C&&(V.attributionSrc="");V.src=p;S1.google_image_requests.push(V)}; xc=function(p){var C="b8";if(p.b8&&p.hasOwnProperty(C))return p.b8;var V=new p;p.b8=V;p.hasOwnProperty(C);return V}; Yc=function(){this.C=new fzu;this.T=vs()?new FL:new mg}; gqv=function(){zy();var p=S1.document;return!!(p&&p.body&&p.body.getBoundingClientRect&&typeof S1.setInterval==="function"&&typeof S1.clearInterval==="function"&&typeof S1.setTimeout==="function"&&typeof S1.clearTimeout==="function")}; WSu=function(){zy();return $qa()}; QNu=function(){}; zy=function(){var p=xc(QNu);if(!p.T){if(!S1)throw Error("Context has not been set and window is undefined.");p.T=xc(Yc)}return p.T}; Ro=function(p){this.bx=OL(p)}; r29=function(p){this.V=p;this.T=-1;this.C=this.S=0}; nh=function(p,C){return function(){var V=g.US.apply(0,arguments);if(p.T>-1)return C.apply(null,g.K(V));try{return p.T=p.V.T.now(),C.apply(null,g.K(V))}finally{p.S+=p.V.T.now()-p.T,p.T=-1,p.C+=1}}}; BWL=function(p,C){this.C=p;this.V=C;this.T=new r29(p)}; GOV=function(){this.T={}}; Cms=function(){var p=e1().flags,C=pX1;p=p.T[C.key];if(C.valueType==="proto"){try{var V=JSON.parse(p);if(Array.isArray(V))return V}catch(N){}return C.defaultValue}return typeof p===typeof C.defaultValue?p:C.defaultValue}; HJv=function(){this.V=void 0;this.C=this.Y=0;this.W=-1;this.IN=new lZ;tU(this.IN,"mv",jbH).T=!0;tU(this.IN,"omid",JU);tU(this.IN,"epoh",JU).T=!0;tU(this.IN,"epph",JU).T=!0;tU(this.IN,"umt",JU).T=!0;tU(this.IN,"phel",JU).T=!0;tU(this.IN,"phell",JU).T=!0;tU(this.IN,"oseid",VSe).T=!0;var p=this.IN;p.T.sloi||(p.T.sloi=new ao);p.T.sloi.T=!0;tU(this.IN,"mm",Ps);tU(this.IN,"ovms",NAH).T=!0;tU(this.IN,"xdi",JU).T=!0;tU(this.IN,"amp",JU).T=!0;tU(this.IN,"prf",JU).T=!0;tU(this.IN,"gtx",JU).T=!0;tU(this.IN, "mvp_lv",JU).T=!0;tU(this.IN,"ssmol",JU).T=!0;tU(this.IN,"fmd",JU).T=!0;tU(this.IN,"gen204simple",JU);this.T=new BWL(zy(),this.IN);this.S=!1;this.flags=new GOV}; e1=function(){return xc(HJv)}; XXe=function(p,C,V,N){if(Math.random()<(N||p.T))try{if(V instanceof yA)var H=V;else H=new yA,fh(V,function(d,a){var E=H,l=E.S++;d=qk(a,d);E.T.push(l);E.C[l]=d}); var X=H.i9(p.C,"pagead2.googlesyndication.com","/pagead/gen_204?id="+C+"&");X&&(zy(),LSj(X))}catch(d){}}; d79=function(p,C,V){V=V===void 0?{}:V;this.error=p;this.context=C.context;this.msg=C.message||"";this.id=C.id||"jserror";this.meta=V}; iJu=function(){var p=p===void 0?g.xH:p;return(p=p.performance)&&p.now&&p.timing?Math.floor(p.now()+p.timing.navigationStart):g.QL()}; hNY=function(){var p=p===void 0?g.xH:p;return(p=p.performance)&&p.now?p.now():null}; sb1=function(p,C,V){this.label=p;this.type=C;this.value=V;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; $c=function(){var p=window;this.events=[];this.C=p||g.xH;var C=null;p&&(p.google_js_reporting_queue=p.google_js_reporting_queue||[],this.events=p.google_js_reporting_queue,C=p.google_measure_js_timing);this.T=wT()||(C!=null?C:Math.random()<1)}; aCL=function(p){p&&Lh&&wT()&&(Lh.clearMarks("goog_"+p.label+"_"+p.uniqueId+"_start"),Lh.clearMarks("goog_"+p.label+"_"+p.uniqueId+"_end"))}; E7u=function(){var p=gT;this.T=Ws;this.au="jserror";this.BN=!0;this.uh=null;this.C=this.KP;this.Pa=p===void 0?null:p}; lCa=function(p,C,V){var N=QA;return nh(e1().T.T,function(){try{if(N.Pa&&N.Pa.T){var H=N.Pa.start(p.toString(),3);var X=C();N.Pa.end(H)}else X=C()}catch(a){var d=N.BN;try{aCL(H),d=N.C(p,new rT(Bs(a)),void 0,V)}catch(E){N.KP(217,E)}if(!d)throw a;}return X})()}; Gy=function(p,C,V,N){return nh(e1().T.T,function(){var H=g.US.apply(0,arguments);return lCa(p,function(){return C.apply(V,H)},N)})}; Bs=function(p){var C=p.toString();p.name&&C.indexOf(p.name)==-1&&(C+=": "+p.name);p.message&&C.indexOf(p.message)==-1&&(C+=": "+p.message);if(p.stack)a:{p=p.stack;var V=C;try{p.indexOf(V)==-1&&(p=V+"\n"+p);for(var N;p!=N;)N=p,p=p.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");C=p.replace(/\n */g,"\n");break a}catch(H){C=V;break a}C=void 0}return C}; rT=function(p){d79.call(this,Error(p),{message:p})}; tSH=function(){S1&&typeof S1.google_measure_js_timing!="undefined"&&(S1.google_measure_js_timing||gT.disable())}; c8y=function(p){QA.uh=function(C){g.lr(p,function(V){V(C)})}}; TAj=function(p,C){return lCa(p,C)}; p2=function(p,C){return Gy(p,C)}; C2=function(p,C,V,N){QA.KP(p,C,V,N)}; jh=function(){return Date.now()-MSX}; J8L=function(){var p=e1().V,C=VT>=0?jh()-VT:-1,V=NK?jh()-Hf:-1,N=Xj>=0?jh()-Xj:-1;if(p==947190542)return 100;if(p==79463069)return 200;p=[2E3,4E3];var H=[250,500,1E3];C2(637,Error(),.001);var X=C;V!=-1&&V1500&&N<4E3?500:d}; d9=function(p,C,V,N){this.top=p;this.right=C;this.bottom=V;this.left=N}; tx=function(p){return p.right-p.left}; cf=function(p,C){return p==C?!0:p&&C?p.top==C.top&&p.right==C.right&&p.bottom==C.bottom&&p.left==C.left:!1}; Tu=function(p,C,V){C instanceof g.Fn?(p.left+=C.x,p.right+=C.x,p.top+=C.y,p.bottom+=C.y):(p.left+=C,p.right+=C,typeof V==="number"&&(p.top+=V,p.bottom+=V));return p}; MK=function(p,C,V){var N=new d9(0,0,0,0);this.time=p;this.volume=null;this.V=C;this.T=N;this.C=V}; Jx=function(p,C,V,N,H,X,d,a){this.S=p;this.D=C;this.V=V;this.Y=N;this.T=H;this.W=X;this.C=d;this.J=a}; v7a=function(p){var C=p!==p.top,V=p.top===kOs(p),N=-1,H=0;if(C&&V&&p.top.mraid){N=3;var X=p.top.mraid}else N=(X=p.mraid)?C?V?2:1:0:-1;X&&(X.IS_GMA_SDK||(H=2),WKS(m7u,function(d){return typeof X[d]==="function"})||(H=1)); return{Dm:X,compatibility:H,hsY:N}}; Fo9=function(){var p=window.document;return p&&typeof p.elementFromPoint==="function"}; S8s=function(p,C,V){p&&C!==null&&C!=C.top&&(C=C.top);try{return(V===void 0?0:V)?(new g.KG(C.innerWidth,C.innerHeight)).round():st9(C||window).round()}catch(N){return new g.KG(-12245933,-12245933)}}; mG=function(p,C,V){try{p&&(C=C.top);var N=S8s(p,C,V),H=N.height,X=N.width;if(X===-12245933)return new d9(X,X,X,X);var d=EVV(rI(C.document).T),a=d.x,E=d.y;return new d9(E,a+X,E+H,a)}catch(l){return new d9(-12245933,-12245933,-12245933,-12245933)}}; g.vf=function(p,C,V,N){this.left=p;this.top=C;this.width=V;this.height=N}; Fj=function(p,C){return p==C?!0:p&&C?p.left==C.left&&p.width==C.width&&p.top==C.top&&p.height==C.height:!1}; g.K2=function(p,C,V){if(typeof C==="string")(C=Sh(p,C))&&(p.style[C]=V);else for(var N in C){V=p;var H=C[N],X=Sh(V,N);X&&(V.style[X]=H)}}; Sh=function(p,C){var V=Koa[C];if(!V){var N=nKs(C);V=N;p.style[N]===void 0&&(N=(g.Nq?"Webkit":Do?"Moz":null)+Pg9(N),p.style[N]!==void 0&&(V=N));Koa[C]=V}return V}; g.u4=function(p,C){var V=p.style[nKs(C)];return typeof V!=="undefined"?V:p.style[Sh(p,C)]||""}; Zo=function(p,C){var V=QW(p);return V.defaultView&&V.defaultView.getComputedStyle&&(p=V.defaultView.getComputedStyle(p,null))?p[C]||p.getPropertyValue(C)||"":""}; UE=function(p,C){return Zo(p,C)||(p.currentStyle?p.currentStyle[C]:null)||p.style&&p.style[C]}; g.OE=function(p,C,V){if(C instanceof g.Fn){var N=C.x;C=C.y}else N=C,C=V;p.style.left=g.f2(N,!1);p.style.top=g.f2(C,!1)}; yT=function(p){try{return p.getBoundingClientRect()}catch(C){return{left:0,top:0,right:0,bottom:0}}}; D7s=function(p){var C=QW(p),V=UE(p,"position"),N=V=="fixed"||V=="absolute";for(p=p.parentNode;p&&p!=C;p=p.parentNode)if(p.nodeType==11&&p.host&&(p=p.host),V=UE(p,"position"),N=N&&V=="static"&&p!=C.documentElement&&p!=C.body,!N&&(p.scrollWidth>p.clientWidth||p.scrollHeight>p.clientHeight||V=="fixed"||V=="absolute"||V=="relative"))return p;return null}; g.qK=function(p){var C=QW(p),V=new g.Fn(0,0);if(p==(C?QW(C):document).documentElement)return V;p=yT(p);C=EVV(rI(C).T);V.x=p.left+C.x;V.y=p.top+C.y;return V}; ZJs=function(p,C){var V=new g.Fn(0,0),N=He(QW(p));if(!X5e(N,"parent"))return V;do{var H=N==C?g.qK(p):uuV(p);V.x+=H.x;V.y+=H.y}while(N&&N!=C&&N!=N.parent&&(p=N.frameElement)&&(N=N.parent));return V}; g.I9=function(p,C){p=U7y(p);C=U7y(C);return new g.Fn(p.x-C.x,p.y-C.y)}; uuV=function(p){p=yT(p);return new g.Fn(p.left,p.top)}; U7y=function(p){if(p.nodeType==1)return uuV(p);p=p.changedTouches?p.changedTouches[0]:p;return new g.Fn(p.clientX,p.clientY)}; g.b4=function(p,C,V){if(C instanceof g.KG)V=C.height,C=C.width;else if(V==void 0)throw Error("missing height argument");p.style.width=g.f2(C,!0);p.style.height=g.f2(V,!0)}; g.f2=function(p,C){typeof p=="number"&&(p=(C?Math.round(p):p)+"px");return p}; g.Ax=function(p){var C=fCS;if(UE(p,"display")!="none")return C(p);var V=p.style,N=V.display,H=V.visibility,X=V.position;V.visibility="hidden";V.position="absolute";V.display="inline";p=C(p);V.display=N;V.position=X;V.visibility=H;return p}; fCS=function(p){var C=p.offsetWidth,V=p.offsetHeight,N=g.Nq&&!C&&!V;return(C===void 0||N)&&p.getBoundingClientRect?(p=yT(p),new g.KG(p.right-p.left,p.bottom-p.top)):new g.KG(C,V)}; g.o9=function(p,C){p.style.display=C?"":"none"}; ko=function(p,C){C=Math.pow(10,C);return Math.floor(p*C)/C}; OJH=function(p){return new d9(p.top,p.right,p.bottom,p.left)}; y8S=function(p){var C=p.top||0,V=p.left||0;return new d9(C,V+(p.width||0),C+(p.height||0),V)}; xo=function(p){return p!=null&&p>=0&&p<=1}; q8u=function(){var p=g.f0();return p?Yo("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(C){return Dv(p,C)})||Dv(p,"OMI/")&&!Dv(p,"XiaoMi/")?!0:Dv(p,"Presto")&&Dv(p,"Linux")&&!Dv(p,"X11")&&!Dv(p,"Android")&&!Dv(p,"Mobi"):!1}; ICe=function(){this.V=!Uh(S1.top);this.isMobileDevice=Ze()||Oes();var p=Oh();this.domain=p.length>0&&p[p.length-1]!=null&&p[p.length-1].url!=null?g.LJ(p[p.length-1].url)||"":"";this.T=new d9(0,0,0,0);this.S=new g.KG(0,0);this.W=new g.KG(0,0);this.D=new d9(0,0,0,0);this.frameOffset=new g.Fn(0,0);this.Y=0;this.J=!1;this.C=!(!S1||!v7a(S1).Dm);this.update(S1)}; bJL=function(p,C){C&&C.screen&&(p.S=new g.KG(C.screen.width,C.screen.height))}; A8a=function(p,C){a:{var V=p.T?new g.KG(tx(p.T),p.T.getHeight()):new g.KG(0,0);C=C===void 0?S1:C;C!==null&&C!=C.top&&(C=C.top);var N=0,H=0;try{var X=C.document,d=X.body,a=X.documentElement;if(X.compatMode=="CSS1Compat"&&a.scrollHeight)N=a.scrollHeight!=V.height?a.scrollHeight:a.offsetHeight,H=a.scrollWidth!=V.width?a.scrollWidth:a.offsetWidth;else{var E=a.scrollHeight,l=a.scrollWidth,t=a.offsetHeight,c=a.offsetWidth;a.clientHeight!=t&&(E=d.scrollHeight,l=d.scrollWidth,t=d.offsetHeight,c=d.offsetWidth); E>V.height?E>t?(N=E,H=l):(N=t,H=c):E0||p.J)return!0;p=zy().C.isVisible();var C=uZ(R9)===0;return p||C}; zu=function(){return xc(ICe)}; eh=function(p){this.V=p;this.C=0;this.T=null}; Pf=function(p,C,V){this.V=p;this.Ga=V===void 0?"na":V;this.W=[];this.isInitialized=!1;this.S=new MK(-1,!0,this);this.T=this;this.J=C;this.a$=this.Z=!1;this.Sa="uk";this.Vn=!1;this.Y=!0}; w9=function(p,C){g.W5(p.W,C)||(p.W.push(C),C.Zk(p.T),C.zY(p.S),C.WK()&&(p.Z=!0))}; o7e=function(p){p=p.T;p.RU();p.PH();var C=zu();C.D=mG(!1,p.V,C.isMobileDevice);A8a(zu(),p.V);p.S.T=p.Ms()}; kDs=function(p){p.Z=p.W.length?Yo(p.W,function(C){return C.WK()}):!1}; x7Y=function(p){var C=g.p6(p.W);g.lr(C,function(V){V.zY(p.S)})}; $o=function(p){var C=g.p6(p.W);g.lr(C,function(V){V.Zk(p.T)}); p.T!=p||x7Y(p)}; L2=function(p,C,V,N){this.element=p;this.T=new d9(0,0,0,0);this.V=null;this.Y=new d9(0,0,0,0);this.C=C;this.IN=V;this.Vn=N;this.sY=!1;this.timestamp=-1;this.Z=new Jx(C.S,this.element,this.T,new d9(0,0,0,0),0,0,jh(),0);this.W=void 0}; Y8H=function(p,C){return p.W?new d9(Math.max(C.top+p.W.top,C.top),Math.min(C.left+p.W.right,C.right),Math.min(C.top+p.W.bottom,C.bottom),Math.max(C.left+p.W.left,C.left)):C.clone()}; g9=function(p){this.W=!1;this.T=p;this.S=function(){}}; zNV=function(p,C,V){this.V=V===void 0?0:V;this.C=p;this.T=C==null?"":C}; RNV=function(p){switch(Math.trunc(p.V)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; n7y=function(p,C){return p.VC.V?!1:p.CC.C?!1:typeof p.Ttypeof C.T?!1:p.T0?N[V]-N[V-1]:N[V]})}; Hp=function(){this.C=new Gu;this.Ga=this.vr=0;this.R$=new Bf;this.b_=this.D=-1;this.Qn=1E3;this.qo=new Gu([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Sa=this.sY=-1}; XU=function(p,C){return BAa(p.C,C===void 0?!0:C)}; dx=function(p,C,V,N){var H=H===void 0?!1:H;V=Gy(N,V);De(p,C,V,{capture:H})}; sH=function(p,C){C=hT(C);return C===0?0:hT(p)/C}; hT=function(p){return Math.max(p.bottom-p.top,0)*Math.max(p.right-p.left,0)}; C31=function(p,C){if(!p||!C)return!1;for(var V=0;p!==null&&V++<100;){if(p===C)return!0;try{if(p=p.parentElement||p){var N=QW(p),H=N&&He(N),X=H&&H.frameElement;X&&(p=X)}}catch(d){break}}return!1}; jXu=function(p,C,V){if(!p||!C)return!1;C=Tu(p.clone(),-C.left,-C.top);p=(C.left+C.right)/2;C=(C.top+C.bottom)/2;Uh(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Fo9())return!1;p=window.document.elementFromPoint(p,C);if(!p)return!1;C=(C=(C=QW(V))&&C.defaultView&&C.defaultView.frameElement)&&C31(C,p);var N=p===V;p=!N&&p&&TO(p,function(H){return H===V}); return!(C||N||p)}; VEH=function(p,C,V,N){return zu().V?!1:tx(p)<=0||p.getHeight()<=0?!0:V&&N?TAj(208,function(){return jXu(p,C,V)}):!1}; a1=function(p,C,V){g.Y.call(this);this.position=NUa.clone();this.Wu=this.sM();this.tq=-2;this.timeCreated=Date.now();this.Yv=-1;this.yP=C;this.TD=null;this.WO=!1;this.o3=null;this.opacity=-1;this.requestSource=V;this.TI$=!1;this.lm=function(){}; this.cD=function(){}; this.Mw=new ZeS;this.Mw.Os=p;this.Mw.T=p;this.NE=!1;this.tI={MJ:null,cF:null};this.bR=!0;this.gf=null;this.IC=this.rF=!1;e1().Y++;this.JU=this.vG();this.G8=-1;this.HV=null;this.hasCompleted=this.Au=!1;this.IN=new lZ;uQe(this.IN);HNv(this);this.requestSource==1?cs(this.IN,"od",1):cs(this.IN,"od",0)}; HNv=function(p){p=p.Mw.Os;var C;if(C=p&&p.getAttribute)C=/-[a-z]/.test("googleAvInapp")?!1:XiQ&&p.dataset?"googleAvInapp"in p.dataset:p.hasAttribute?p.hasAttribute("data-"+ejS()):!!p.getAttribute("data-"+ejS());C&&(zu().C=!0)}; EH=function(p,C){C!=p.IC&&(p.IC=C,p=zu(),C?p.Y++:p.Y>0&&p.Y--)}; dj1=function(p,C){if(p.HV){if(C.getName()===p.HV.getName())return;p.HV.dispose();p.HV=null}C=C.create(p.Mw.T,p.IN,p.WK());if(C=C!=null&&C.observe()?C:null)p.HV=C}; iN9=function(p,C,V){if(!p.TD||p.yP==-1||C.C===-1||p.TD.C===-1)return 0;p=C.C-p.TD.C;return p>V?0:p}; hZ1=function(p,C,V){if(p.HV){p.HV.U_();var N=p.HV.Z,H=N.S,X=H.T;if(N.Y!=null){var d=N.V;p.o3=new g.Fn(d.left-X.left,d.top-X.top)}X=p.Gx()?Math.max(N.T,N.W):N.T;d={};H.volume!==null&&(d.volume=H.volume);H=p.gT(N);p.TD=N;p.Pr(X,C,V,!1,d,H,N.J)}}; sXS=function(p){if(p.WO&&p.gf){var C=Ty(p.IN,"od")==1,V=zu().T,N=p.gf,H=p.HV?p.HV.getName():"ns",X=p.o3,d=new g.KG(tx(V),V.getHeight());V=p.Gx();p={Ug_:H,o3:X,GI$:d,Gx:V,L7:p.JU.L7,fZa:C};if(C=N.C){C.U_();H=C.Z;X=H.S.T;var a=d=null;H.Y!=null&&X&&(d=H.V,d=new g.Fn(d.left-X.left,d.top-X.top),a=new g.KG(X.right-X.left,X.bottom-X.top));H=V?Math.max(H.T,H.W):H.T;V={Ug_:C.getName(),o3:d,GI$:a,Gx:V,fZa:!1,L7:H}}else V=null;V&&Woe(N,p,V)}}; atY=function(p,C,V){C&&(p.lm=C);V&&(p.cD=V)}; g.lf=function(){}; g.tT=function(p){return{value:p,done:!1}}; EN9=function(){this.S=this.T=this.V=this.C=this.W=0}; ltV=function(p){var C={};var V=g.QL()-p.W;C=(C.ptlt=V,C);(V=p.C)&&(C.pnk=V);(V=p.V)&&(C.pnc=V);(V=p.S)&&(C.pnmm=V);(p=p.T)&&(C.pns=p);return C}; tE9=function(){iZ.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; cp=function(p){return xo(p.volume)&&p.volume>0}; T2=function(p,C,V,N){V=V===void 0?!0:V;N=N===void 0?function(){return!0}:N; return function(H){var X=H[p];if(Array.isArray(X)&&N(H))return c$Y(X,C,V)}}; MZ=function(p,C){return function(V){return C(V)?V[p]:void 0}}; TUa=function(p){return function(C){for(var V=0;V0?X[H-1]+1:0,N+1).reduce(function(d,a){return d+a},0)})}; MES=function(){this.C=this.T=""}; J$a=function(){}; mO=function(p,C){var V={};if(p!==void 0)if(C!=null)for(var N in C){var H=C[N];N in Object.prototype||H!=null&&(V[N]=typeof H==="function"?H(p):p[H])}else g.nG(V,p);return r9(QT(new Wf,V))}; mjY=function(){var p={};this.C=(p.vs=[1,0],p.vw=[0,1],p.am=[2,2],p.a=[4,4],p.f=[8,8],p.bm=[16,16],p.b=[32,32],p.avw=[0,64],p.avs=[64,0],p.pv=[256,256],p.gdr=[0,512],p.p=[0,1024],p.r=[0,2048],p.m=[0,4096],p.um=[0,8192],p.ef=[0,16384],p.s=[0,32768],p.pmx=[0,16777216],p.mut=[33554432,33554432],p.umutb=[67108864,67108864],p.tvoff=[134217728,134217728],p);this.T={};for(var C in this.C)this.C[C][1]>0&&(this.T[C]=0);this.V=0}; vp=function(p,C){var V=p.C[C],N=V[1];p.V+=V[0];N>0&&p.T[C]==0&&(p.T[C]=1)}; vNY=function(p){var C=g.Ia(p.C),V=0,N;for(N in p.T)g.W5(C,N)&&p.T[N]==1&&(V+=p.C[N][1],p.T[N]=2);return V}; F0X=function(p){var C=0,V;for(V in p.T){var N=p.T[V];if(N==1||N==2)C+=p.C[V][1]}return C}; FU=function(){this.T=this.C=0}; Sr=function(){Hp.call(this);this.V=new Bf;this.Y_=this.Z=this.Vn=0;this.J=-1;this.X$=new Bf;this.W=new Bf;this.T=new Gu;this.Y=this.S=-1;this.a$=new Bf;this.Qn=2E3;this.Wr=new FU;this.KS=new FU;this.UY=new FU}; Ko=function(p,C,V){var N=p.Y_;NK||V||p.J==-1||(N+=C-p.J);return N}; S$e=function(){this.V=!1}; DA=function(p,C){this.V=!1;this.S=p;this.Z=C;this.W=0}; uf=function(p,C){DA.call(this,p,C);this.D=[]}; K01=function(){}; ZA=function(){}; UH=function(p,C,V,N){L2.call(this,p,C,V,N)}; fo=function(p,C,V){L2.call(this,null,p,C,V);this.J=p.isActive();this.D=0}; OH=function(p){return[p.top,p.left,p.bottom,p.right]}; yF=function(p,C,V,N,H,X){X=X===void 0?new ZA:X;a1.call(this,C,V,N);this.m1=H;this.fR=0;this.q5={};this.DZ=new mjY;this.EN={};this.Jg="";this.UY=null;this.kM=!1;this.T=[];this.PS=X.C();this.Y=X.V();this.S=null;this.V=-1;this.Ga=this.Z=void 0;this.b_=this.a$=0;this.Sa=-1;this.Qn=this.KS=!1;this.Vn=this.J=this.C=this.Ip=this.Wc=0;new Gu;this.Wr=this.Y_=0;this.R$=-1;this.m8=0;this.D=g.Fu;this.sY=[this.sM()];this.Hc=2;this.sX={};this.sX.pause="p";this.sX.resume="r";this.sX.skip="s";this.sX.mute="m";this.sX.unmute= "um";this.sX.exitfullscreen="ef";this.W=null;this.qo=this.X$=!1;this.ER=Math.floor(Date.now()/1E3-1704067200);this.vr=0}; qZ=function(p){p.hasCompleted=!0;p.m8!=0&&(p.m8=3)}; I1=function(p){return p===void 0?p:Number(p)?ko(p,3):0}; bf=function(p,C){return p.sY[C!=null&&CMath.max(1E4,p.V/3)?0:C);var V=p.D(p)||{};V=V.currentTime!==void 0?V.currentTime:p.a$;var N=V-p.a$,H=0;N>=0?(p.b_+=C,p.Wr+=Math.max(C-N,0),H=Math.min(N,p.b_)):p.Y_+=Math.abs(N);N!=0&&(p.b_=0);p.R$==-1&&N>0&&(p.R$=Xj>=0?jh()-Xj:-1);p.a$=V;return H}; ZNa=function(p,C){Yo(p.Y,function(V){return V.S==C.S})||p.Y.push(C)}; UjS=function(p){var C=jr(p.sf().T,1);return AT(p,C)}; AT=function(p,C,V){return C>=15E3?!0:p.KS?(V===void 0?0:V)?!0:p.V>0?C>=p.V/2:p.Sa>0?C>=p.Sa:!1:!1}; ftv=function(p){var C=ko(p.JU.L7,2),V=p.DZ.V,N=p.JU,H=bf(p),X=I1(H.S),d=I1(H.Y),a=I1(N.volume),E=ko(H.D,2),l=ko(H.b_,2),t=ko(N.L7,2),c=ko(H.sY,2),T=ko(H.Sa,2);N=ko(N.PB,2);var M=p.rz().clone().round();p=p.HV&&p.HV.V?(p.HV?p.HV.V:null).clone().round():null;H=XU(H,!1);return{NIn:C,eT:V,Hu:X,uG:d,d3:a,pG:E,zD:l,L7:t,R3:c,iG:T,PB:N,position:M,Aw:p,DD:H}}; y$L=function(p,C){ONa(p.T,C,function(){return{NIn:0,eT:void 0,Hu:-1,uG:-1,d3:-1,pG:-1,zD:-1,L7:-1,R3:-1,iG:-1,PB:-1,position:void 0,Aw:void 0,DD:[]}}); p.T[C]=ftv(p)}; ONa=function(p,C,V){for(var N=p.length;N0?1:0;c.atos= po(l.T);c.ssb=po(l.qo,!1);c.amtos=BAa(l.T,!1);c.uac=p.Wc;c.vpt=l.V.T;t=="nio"&&(c.nio=1,c.avms="nio");c.gmm="4";c.gdr=AT(p,l.V.T,!0)?1:0;c.efpf=p.Hc;if(t=="gsv"||t=="nis")t=p.HV,t.D>0&&(c.nnut=t.D);c.tcm=DjH(p);c.nmt=p.Y_;c.bt=p.Wr;c.pst=p.R$;c.vpaid=p.Z;c.dur=p.V;c.vmtime=p.a$;c.is=p.DZ.V;p.T.length>=1&&(c.i0=p.T[0].eT,c.a0=[p.T[0].d3],c.c0=[p.T[0].L7],c.ss0=[p.T[0].PB],t=p.T[0].position,X=p.T[0].Aw,c.p0=t?OH(t):void 0,t&&X&&!cf(X,t)&&(c.cp0=OH(X)));p.T.length>=2&&(c.i1=p.T[1].eT,c.a1=xC(p.T[1].Hu, p.T[1].d3,p.T[1].uG),c.c1=xC(p.T[1].pG,p.T[1].L7,p.T[1].zD),c.ss1=xC(p.T[1].R3,p.T[1].PB,p.T[1].iG),t=p.T[1].position,X=p.T[1].Aw,c.p1=t?OH(t):void 0,t&&X&&!cf(X,t)&&(c.cp1=OH(X)),c.mtos1=p.T[1].DD);p.T.length>=3&&(c.i2=p.T[2].eT,c.a2=xC(p.T[2].Hu,p.T[2].d3,p.T[2].uG),c.c2=xC(p.T[2].pG,p.T[2].L7,p.T[2].zD),c.ss2=xC(p.T[2].R3,p.T[2].PB,p.T[2].iG),t=p.T[2].position,X=p.T[2].Aw,c.p2=t?OH(t):void 0,t&&X&&!cf(X,t)&&(c.cp2=OH(X)),c.mtos2=p.T[2].DD);p.T.length>=4&&(c.i3=p.T[3].eT,c.a3=xC(p.T[3].Hu,p.T[3].d3, p.T[3].uG),c.c3=xC(p.T[3].pG,p.T[3].L7,p.T[3].zD),c.ss3=xC(p.T[3].R3,p.T[3].PB,p.T[3].iG),t=p.T[3].position,X=p.T[3].Aw,c.p3=t?OH(t):void 0,t&&X&&!cf(X,t)&&(c.cp3=OH(X)),c.mtos3=p.T[3].DD);c.cs=F0X(p.DZ);C&&(c.ic=vNY(p.DZ),c.dvpt=l.V.C,c.dvs=NZ(l.C,.5),c.dfvs=NZ(l.C,1),c.davs=NZ(l.T,.5),c.dafvs=NZ(l.T,1),V&&(l.V.C=0,GDV(l.C),GDV(l.T)),p.Gv()&&(c.dtos=l.Vn,c.dav=l.Z,c.dtoss=p.fR+1,V&&(l.Vn=0,l.Z=0,p.fR++)),c.dat=l.W.C,c.dft=l.a$.C,V&&(l.W.C=0,l.a$.C=0));c.ps=[a.W.width,a.W.height];c.bs=[tx(a.T),a.T.getHeight()]; c.scs=[a.S.width,a.S.height];c.dom=a.domain;p.Ip&&(c.vds=p.Ip);if(p.Y.length>0||p.PS)C=g.p6(p.Y),p.PS&&C.push(p.PS),c.pings=g.AU(C,function(T){return T.toString()}); C=g.AU(g.JT(p.Y,function(T){return T.Y()}),function(T){return T.getId()}); p5S(C);c.ces=C;p.C&&(c.vmer=p.C);p.J&&(c.vmmk=p.J);p.Vn&&(c.vmiec=p.Vn);c.avms=p.HV?p.HV.getName():"ns";p.HV&&g.nG(c,p.HV.bO());N?(c.c=ko(p.JU.L7,2),c.ss=ko(p.JU.PB,2)):c.tth=jh()-A$s;c.mc=ko(l.b_,2);c.nc=ko(l.D,2);c.mv=I1(l.Y);c.nv=I1(l.S);c.lte=ko(p.tq,2);N=bf(p,H);XU(l);c.qmtos=XU(N);c.qnc=ko(N.D,2);c.qmv=I1(N.Y);c.qnv=I1(N.S);c.qas=N.S>0?1:0;c.qi=p.Jg;c.avms||(c.avms="geo");c.psm=l.Wr.T;c.psv=l.Wr.getValue();c.psfv=l.KS.getValue();c.psa=l.UY.getValue();E=KSj(E.IN);E.length&&(c.veid=E);p.W&&g.nG(c, ltV(p.W));c.avas=p.qT();c.vs=p.TJ();c.co=oNs(p);c.tm=l.vr;c.tu=l.Ga;return c}; q$H=function(p,C){if(g.W5(kqX,C))return!0;var V=p.q5[C];return V!==void 0?(p.q5[C]=!0,!V):!1}; oNs=function(p){var C=p.vr.toString(10).padStart(2,"0");C=""+p.ER+C;p.vr<99&&p.vr++;return C}; Y$u=function(){this.T={};var p=He();YC(this,p,document);var C=xjL();try{if("1"==C){for(var V=p.parent;V!=p.top;V=V.parent)YC(this,V,V.document);YC(this,p.top,p.top.document)}}catch(N){}}; xjL=function(){var p=document.documentElement;try{if(!Uh(He().top))return"2";var C=[],V=He(p.ownerDocument);for(p=V;p!=V.top;p=p.parent)if(p.frameElement)C.push(p.frameElement);else break;return C&&C.length!=0?"1":"0"}catch(N){return"2"}}; YC=function(p,C,V){dx(V,"mousedown",function(){return zZL(p)},301); dx(C,"scroll",function(){return RZe(p)},302); dx(V,"touchmove",function(){return nNH(p)},303); dx(V,"mousemove",function(){return eZY(p)},304); dx(V,"keydown",function(){return P3j(p)},305)}; zZL=function(p){g.ZH(p.T,function(C){C.V>1E5||++C.V})}; RZe=function(p){g.ZH(p.T,function(C){C.T>1E5||++C.T})}; nNH=function(p){g.ZH(p.T,function(C){C.T>1E5||++C.T})}; P3j=function(p){g.ZH(p.T,function(C){C.C>1E5||++C.C})}; eZY=function(p){g.ZH(p.T,function(C){C.S>1E5||++C.S})}; wiH=function(){this.T=[];this.C=[]}; z2=function(p,C){return g.L0(p.T,function(V){return V.Jg==C})}; $jv=function(p,C){return C?g.L0(p.T,function(V){return V.Mw.Os==C}):null}; L0Q=function(p,C){return g.L0(p.C,function(V){return V.Ke()==2&&V.Jg==C})}; no=function(){var p=R1;return p.T.length==0?p.C:p.C.length==0?p.T:g.Gp(p.C,p.T)}; gN1=function(p,C){p=C.Ke()==1?p.T:p.C;var V=$2(p,function(N){return N==C}); return V!=-1?(p.splice(V,1),C.HV&&C.HV.unobserve(),C.dispose(),!0):!1}; W0j=function(p){var C=R1;if(gN1(C,p)){switch(p.Ke()){case 0:var V=function(){return null}; case 2:V=function(){return L0Q(C,p.Jg)}; break;case 1:V=function(){return z2(C,p.Jg)}}for(var N=V();N;N=V())gN1(C,N)}}; QXy=function(p){var C=R1;p=g.JT(p,function(V){return!$jv(C,V.Mw.Os)}); C.T.push.apply(C.T,g.K(p))}; r$9=function(p){var C=[];g.lr(p,function(V){Yo(R1.T,function(N){return N.Mw.Os===V.Mw.Os&&N.Jg===V.Jg})||(R1.T.push(V),C.push(V))})}; er=function(){this.T=this.C=null}; BU1=function(p,C){function V(N,H){C(N,H)} if(p.C==null)return!1;p.T=g.L0(p.C,function(N){return N!=null&&N.YL()}); p.T&&(p.T.init(V)?o7e(p.T.T):C(p.T.T.gH(),p.T));return p.T!=null}; Pp=function(p){p=GqX(p);g9.call(this,p.length?p[p.length-1]:new Pf(S1,0));this.V=p;this.C=null}; GqX=function(p){if(!p.length)return[];p=(0,g.JT)(p,function(V){return V!=null&&V.Kn()}); for(var C=1;CV.time?C:V},p[0])}; gx=function(p){p=p===void 0?S1:p;g9.call(this,new Pf(p,2))}; Wp=function(){var p=VZQ();Pf.call(this,S1.top,p,"geo")}; VZQ=function(){e1();var p=zu();return p.V||p.C?0:2}; Nhj=function(){}; QF=function(){this.done=!1;this.T={KX:0,gE:0,vE$:0,Xe:0,kC:-1,i4:0,zO:0,fU:0,B6$:0};this.W=null;this.Y=!1;this.V=null;this.D=0;this.C=new eh(this)}; Bp=function(){var p=rx;p.Y||(p.Y=!0,HEL(p,function(){return p.S.apply(p,g.K(g.US.apply(0,arguments)))}),p.S())}; X21=function(){xc(Nhj);var p=xc(er);p.T!=null&&p.T.T?o7e(p.T.T):zu().update(S1)}; G2=function(p,C,V){if(!p.done&&(p.C.cancel(),C.length!=0)){p.V=null;try{X21();var N=jh();e1().W=N;if(xc(er).T!=null)for(var H=0;H=0?jh()-VT:-1,a=jh();H.T.kC==-1&&(d=a);var E=zu(),l=e1(),t=Mk(l.IN),c=no();try{if(c.length>0){var T=E.T;T&&(t.bs=[tx(T),T.getHeight()]);var M=E.W;M&&(t.ps=[M.width,M.height]);S1.screen&&(t.scs=[S1.screen.width,S1.screen.height])}else t.url=encodeURIComponent(S1.location.href.substring(0,512)),X.referrer&&(t.referrer=encodeURIComponent(X.referrer.substring(0,512))); t.tt=d;t.pt=VT;t.bin=l.C;S1.google_osd_load_pub_page_exp!==void 0&&(t.olpp=S1.google_osd_load_pub_page_exp);t.deb=[1,H.T.KX,H.T.gE,H.T.Xe,H.T.kC,0,H.C.C,H.T.i4,H.T.zO,H.T.fU,H.T.B6$,-1].join(";");t.tvt=iEu(H,a);E.C&&(t.inapp=1);if(S1!==null&&S1!=S1.top){c.length>0&&(t.iframe_loc=encodeURIComponent(S1.location.href.substring(0,512)));var J=E.D;t.is=[tx(J),J.getHeight()]}}catch(S){t.error=1}rx.V=t}T=g.zh(rx.V);M=e1().T;Ty(M.V,"prf")==1?(J=new Ro,H=M.T,X=0,H.T>-1&&(X=H.V.T.now()-H.T),J=rw(J,1,HT(H.S+ X),0),H=M.T,J=rw(J,5,ig(H.T>-1?H.C+1:H.C),0),J=rw(J,2,cT(M.C.T.V()),"0"),J=rw(J,3,cT(M.C.T.C()),"0"),M=rw(J,4,cT(M.C.T.T()),"0"),J={},M=(J.pf=g.mq(M.T()),J)):M={};g.nG(T,M);g.nG(C,N,V,T,p())}])}; aqH=function(){var p=ssu||S1;if(!p)return"";var C=[];if(!p.location||!p.location.href)return"";C.push("url="+encodeURIComponent(p.location.href.substring(0,512)));p.document&&p.document.referrer&&C.push("referrer="+encodeURIComponent(p.document.referrer.substring(0,512)));return C.join("&")}; pX=function(){var p="youtube.player.web_20241215_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20241215_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20241215_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20241215_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),C;if(((C=p)==null?void 0:C.length)==2)return p[1];p="youtube.player.web_20241215_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var V;return((V=p)==null?void 0:V.length)==3?"20"+p[1]+p[2]:null}; E3Y=function(){return"av.default_js".includes("ima_html5_sdk")?{GR:"ima",h8:null}:"av.default_js".includes("ima_native_sdk")?{GR:"nima",h8:null}:"av.default_js".includes("admob-native-video-javascript")?{GR:"an",h8:null}:"youtube.player.web_20241215_00_RC00".includes("cast_js_sdk")?{GR:"cast",h8:pX()}:"youtube.player.web_20241215_00_RC00".includes("youtube.player.web")?{GR:"yw",h8:pX()}:"youtube.player.web_20241215_00_RC00".includes("outstream_web_client")?{GR:"out",h8:pX()}:"youtube.player.web_20241215_00_RC00".includes("drx_rewarded_web")? {GR:"r",h8:pX()}:"youtube.player.web_20241215_00_RC00".includes("gam_native_web_video")?{GR:"n",h8:pX()}:"youtube.player.web_20241215_00_RC00".includes("admob_interstitial_video")?{GR:"int",h8:pX()}:{GR:"j",h8:null}}; Vr=function(p,C){var V={sv:"966"};CX!==null&&(V.v=CX);V.cb=lqY;V.nas=R1.T.length;V.msg=p;C!==void 0&&(p=tZX(C))&&(V.e=j0[p]);return V}; NP=function(p){return v5(p,"custom_metric_viewable")}; tZX=function(p){var C=NP(p)?"custom_metric_viewable":p.toLowerCase();return oa(o1,function(V){return V==C})}; cE1=function(){this.T=void 0;this.C=!1;this.V=0;this.S=-1;this.W="tos"}; JEV=function(p){try{var C=p.split(",");return C.length>g.Ia(ThQ).length?null:kc(C,function(V,N){N=N.toLowerCase().split("=");if(N.length!=2||MZj[N[0]]===void 0||!MZj[N[0]](N[1]))throw Error("Entry ("+N[0]+", "+N[1]+") is invalid.");V[N[0]]=N[1];return V},{})}catch(V){return null}}; m_Q=function(p,C){if(p.T==void 0)return 0;switch(p.W){case "mtos":return p.C?VF(C.T,p.T):VF(C.C,p.T);case "tos":return p.C?jr(C.T,p.T):jr(C.C,p.T)}return 0}; Ho=function(p,C,V,N){DA.call(this,C,N);this.D=p;this.J=V}; Xl=function(){}; dE=function(p){DA.call(this,"fully_viewable_audible_half_duration_impression",p)}; iu=function(p){this.T=p}; hC=function(p,C){DA.call(this,p,C)}; sM=function(p){uf.call(this,"measurable_impression",p)}; aq=function(){iu.apply(this,arguments)}; EM=function(p,C,V){fo.call(this,p,C,V)}; lu=function(p){p=p===void 0?S1:p;g9.call(this,new Pf(p,2))}; tC=function(p,C,V){fo.call(this,p,C,V)}; co=function(p){p=p===void 0?S1:p;g9.call(this,new Pf(p,2))}; To=function(){Pf.call(this,S1,2,"mraid");this.Wr=0;this.b_=this.sY=!1;this.D=null;this.C=v7a(this.V);this.S.T=new d9(0,0,0,0);this.vr=!1}; MP=function(p,C,V){p.Et("addEventListener",C,V)}; KnY=function(p){e1().S=!!p.Et("isViewable");MP(p,"viewableChange",v3Q);p.Et("getState")==="loading"?MP(p,"ready",Fnv):SVj(p)}; SVj=function(p){typeof p.C.Dm.AFMA_LIDAR==="string"?(p.sY=!0,D_S(p)):(p.C.compatibility=3,p.D="nc",p.Du("w"))}; D_S=function(p){p.b_=!1;var C=Ty(e1().IN,"rmmt")==1,V=!!p.Et("isViewable");(C?!V:1)&&zy().setTimeout(p2(524,function(){p.b_||(ufX(p),C2(540,Error()),p.D="mt",p.Du("w"))}),500); ZEj(p);MP(p,p.C.Dm.AFMA_LIDAR,U_9)}; ZEj=function(p){var C=Ty(e1().IN,"sneio")==1,V=p.C.Dm.AFMA_LIDAR_EXP_1!==void 0,N=p.C.Dm.AFMA_LIDAR_EXP_2!==void 0;(C=C&&N)&&(p.C.Dm.AFMA_LIDAR_EXP_2=!0);V&&(p.C.Dm.AFMA_LIDAR_EXP_1=!C)}; ufX=function(p){p.Et("removeEventListener",p.C.Dm.AFMA_LIDAR,U_9);p.sY=!1}; fqS=function(p,C){if(p.Et("getState")==="loading")return new g.KG(-1,-1);C=p.Et(C);if(!C)return new g.KG(-1,-1);p=parseInt(C.width,10);C=parseInt(C.height,10);return isNaN(p)||isNaN(C)?new g.KG(-1,-1):new g.KG(p,C)}; Fnv=function(){try{var p=xc(To);p.Et("removeEventListener","ready",Fnv);SVj(p)}catch(C){C2(541,C)}}; U_9=function(p,C){try{var V=xc(To);V.b_=!0;var N=p?new d9(p.y,p.x+p.width,p.y+p.height,p.x):new d9(0,0,0,0);var H=jh(),X=n2();var d=new MK(H,X,V);d.T=N;d.volume=C;V.zY(d)}catch(a){C2(542,a)}}; v3Q=function(p){var C=e1(),V=xc(To);p&&!C.S&&(C.S=!0,V.vr=!0,V.D&&V.Du("w",!0))}; JC=function(){this.isInitialized=!1;this.T=this.C=null;var p={};this.D=(p.start=this.wU,p.firstquartile=this.K_,p.midpoint=this.Og,p.thirdquartile=this.oT,p.complete=this.DA,p.error=this.Bk,p.pause=this.ud,p.resume=this.H0,p.skip=this.QN,p.viewable_impression=this.ly,p.mute=this.bQ,p.unmute=this.bQ,p.fullscreen=this.gU,p.exitfullscreen=this.Ug,p.fully_viewable_audible_half_duration_impression=this.ly,p.measurable_impression=this.ly,p.abandon=this.ud,p.engagedview=this.ly,p.impression=this.ly,p.creativeview= this.ly,p.progress=this.bQ,p.custom_metric_viewable=this.ly,p.bufferstart=this.ud,p.bufferfinish=this.H0,p.audio_measurable=this.ly,p.audio_audible=this.ly,p);p={};this.J=(p.overlay_resize=this.Jt,p.abandon=this.wl,p.close=this.wl,p.collapse=this.wl,p.overlay_unmeasurable_impression=function(C){return kC(C,"overlay_unmeasurable_impression",n2())},p.overlay_viewable_immediate_impression=function(C){return kC(C,"overlay_viewable_immediate_impression",n2())},p.overlay_unviewable_impression=function(C){return kC(C, "overlay_unviewable_impression",n2())},p.overlay_viewable_end_of_session_impression=function(C){return kC(C,"overlay_viewable_end_of_session_impression",n2())},p); e1().C=3;OE1(this);this.V=null}; mV=function(p,C,V,N){p=p.k7(null,N,!0,C);p.S=V;QXy([p]);return p}; yEH=function(p,C,V){FSH(C);var N=p.T;g.lr(C,function(H){var X=g.AU(H.criteria,function(d){var a=JEV(d);if(a==null)d=null;else if(d=new cE1,a.visible!=null&&(d.T=a.visible/100),a.audible!=null&&(d.C=a.audible==1),a.time!=null){var E=a.timetype=="mtos"?"mtos":"tos",l=RX1(a.time,"%")?"%":"ms";a=parseInt(a.time,10);l=="%"&&(a/=100);d.setTime(a,l,E)}return d}); Yo(X,function(d){return d==null})||ZNa(V,new Ho(H.id,H.event,X,N))})}; qVv=function(){var p=[],C=e1();p.push(xc(Wp));Ty(C.IN,"mvp_lv")&&p.push(xc(To));C=[new lu,new co];C.push(new Pp(p));C.push(new gx(S1));return C}; IqL=function(p){if(!p.isInitialized){p.isInitialized=!0;try{var C=jh(),V=e1(),N=zu();VT=C;V.V=79463069;p.C!=="o"&&(ssu=kOs(S1));if(gqv()){rx.T.gE=0;rx.T.kC=jh()-C;var H=qVv(),X=xc(er);X.C=H;BU1(X,function(){vo()})?rx.done||(d_X(),w9(X.T.T,p),Bp()):N.V?vo():Bp()}else Fl=!0}catch(d){throw R1.reset(),d; }}}; KX=function(p){rx.C.cancel();S0=p;rx.done=!0}; DK=function(p){if(p.C)return p.C;var C=xc(er).T;if(C)switch(C.getName()){case "nis":p.C="n";break;case "gsv":p.C="m"}p.C||(p.C="h");return p.C}; uu=function(p,C,V){if(p.T==null)return C.Ip|=4,!1;p=bEj(p.T,V,C);C.Ip|=p;return p==0}; vo=function(){var p=[new gx(S1)],C=xc(er);C.C=p;BU1(C,function(){KX("i")})?rx.done||(d_X(),Bp()):KX("i")}; AEs=function(p,C){if(!p.kM){var V=kC(p,"start",n2());V=p.m1.T(V).T;var N={id:"lidarv"};N.r=C;N.sv="966";CX!==null&&(N.v=CX);WX(V,function(H,X){return N[H]=H=="mtos"||H=="tos"?X:encodeURIComponent(X)}); C=aqH();WX(C,function(H,X){return N[H]=encodeURIComponent(X)}); C="//pagead2.googlesyndication.com/pagead/gen_204?"+r9(QT(new Wf,N));Loy(C);p.kM=!0}}; Iq=function(p,C,V){G2(rx,[p],!n2());y$L(p,V);V!=4&&ONa(p.sY,V,p.sM);return kC(p,C,n2())}; OE1=function(p){hpy(function(){var C=o3V();p.C!=null&&(C.sdk=p.C);var V=xc(er);V.T!=null&&(C.avms=V.T.getName());return C})}; kiS=function(p,C,V,N){var H=$jv(R1,V);H!==null&&H.Jg!==C&&(p.HJ(H),H=null);H||(C=p.k7(V,jh(),!1,C),R1.C.length==0&&(e1().V=79463069),r$9([C]),H=C,H.S=DK(p),N&&(H.UY=N));return H}; x_u=function(p,C){var V=p[C];V!==void 0&&V>0&&(p[C]=Math.floor(V*1E3))}; o3V=function(){var p=zu(),C={},V={},N={};return Object.assign({},(C.sv="966",C),CX!==null&&(V.v=CX,V),(N["if"]=p.V?"1":"0",N.nas=String(R1.T.length),N))}; bu=function(p){DA.call(this,"audio_audible",p)}; AC=function(p){uf.call(this,"audio_measurable",p)}; oq=function(){iu.apply(this,arguments)}; kI=function(){}; YVy=function(p){this.T=p}; bEj=function(p,C,V){p=p.C();if(typeof p==="function"){var N={};var H={};N=Object.assign({},CX!==null&&(N.v=CX,N),(H.sv="966",H.cb=lqY,H.e=zpQ(C),H));H=kC(V,C,n2());g.nG(N,H);V.EN[C]=H;N=V.Ke()==2?$7s(N).join("&"):V.m1.T(N).T;try{return p(V.Jg,N,C),0}catch(X){return 2}}else return 1}; zpQ=function(p){var C=NP(p)?"custom_metric_viewable":p;p=oa(o1,function(V){return V==C}); return j0[p]}; xI=function(){JC.call(this);this.Y=null;this.W=!1;this.S="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Rpa=function(p,C,V){V=V.opt_configurable_tracking_events;p.T!=null&&Array.isArray(V)&&yEH(p,V,C)}; n3H=function(p,C,V){var N=z2(R1,C);N||(N=V.opt_nativeTime||-1,N=mV(p,C,DK(p),N),V.opt_osdId&&(N.UY=V.opt_osdId));return N}; epv=function(p,C,V){var N=z2(R1,C);N||(N=mV(p,C,"n",V.opt_nativeTime||-1));return N}; Ppj=function(p,C){var V=z2(R1,C);V||(V=mV(p,C,"h",-1));return V}; w2H=function(p){e1();switch(DK(p)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; g3a=function(p,C,V,N){V=V===void 0?{}:V;var H={};g.nG(H,{opt_adElement:void 0,opt_fullscreen:void 0},V);var X=p.zV(C,V);V=X?X.m1:p.Vq();if(H.opt_bounds)return V.T(Vr("ol",N));if(N!==void 0)if(tZX(N)!==void 0)if(Fl)p=Vr("ue",N);else if(IqL(p),S0=="i")p=Vr("i",N),p["if"]=0;else if(C=p.zV(C,H)){b:{S0=="i"&&(C.NE=!0);X=H.opt_fullscreen;X!==void 0&&EH(C,!!X);var d;if(X=!zu().C)(X=Dv(g.f0(),"CrKey")&&!(Dv(g.f0(),"CrKey")&&Dv(g.f0(),"SmartSpeaker"))||Dv(g.f0(),"PlayStation")||Dv(g.f0(),"Roku")||q8u()||Dv(g.f0(), "Xbox"))||(X=g.f0(),X=Dv(X,"AppleTV")||Dv(X,"Apple TV")||Dv(X,"CFNetwork")||Dv(X,"tvOS")),X||(X=g.f0(),X=Dv(X,"sdk_google_atv_x86")||Dv(X,"Android TV")),X=!X;X&&(zy(),X=uZ(R9)===0);if(d=X){switch(C.Ke()){case 1:AEs(C,"pv");break;case 2:p.KF(C)}KX("pv")}X=N.toLowerCase();if(d=!d)d=Ty(e1().IN,"ssmol")&&X==="loaded"?!1:g.W5($_X,X);if(d&&C.m8==0){S0!="i"&&(rx.done=!1);d=H!==void 0?H.opt_nativeTime:void 0;Xj=d=typeof d==="number"?d:jh();C.WO=!0;var a=n2();C.m8=1;C.q5={};C.q5.start=!1;C.q5.firstquartile= !1;C.q5.midpoint=!1;C.q5.thirdquartile=!1;C.q5.complete=!1;C.q5.resume=!1;C.q5.pause=!1;C.q5.skip=!1;C.q5.mute=!1;C.q5.unmute=!1;C.q5.viewable_impression=!1;C.q5.measurable_impression=!1;C.q5.fully_viewable_audible_half_duration_impression=!1;C.q5.fullscreen=!1;C.q5.exitfullscreen=!1;C.fR=0;a||(C.sf().J=d);G2(rx,[C],!a)}(d=C.sX[X])&&vp(C.DZ,d);Ty(e1().IN,"fmd")||g.W5(Lns,X)&&C.PS&&C.PS.C(C,null);switch(C.Ke()){case 1:var E=NP(X)?p.D.custom_metric_viewable:p.D[X];break;case 2:E=p.J[X]}if(E&&(N=E.call(p, C,H,N),Ty(e1().IN,"fmd")&&g.W5(Lns,X)&&C.PS&&C.PS.C(C,null),N!==void 0)){H=Vr(void 0,X);g.nG(H,N);N=H;break b}N=void 0}C.m8==3&&p.HJ(C);p=N}else p=Vr("nf",N);else p=void 0;else Fl?p=Vr("ue"):X?(p=Vr(),g.nG(p,Its(X,!0,!1,!1))):p=Vr("nf");return typeof p==="string"?V.T():V.T(p)}; WnS=function(p,C){C&&(p.S=C)}; Qsy=function(p){var C={};return C.viewability=p.T,C.googleViewability=p.C,C}; rEy=function(p,C,V){V=V===void 0?{}:V;p=g3a(xc(xI),C,V,p);return Qsy(p)}; Bhe=function(p){var C=p.url;p=p.qKY;this.C=C;this.Y=p;p=/[?&]dsh=1(&|$)/.test(C);this.S=!p&&/[?&]ae=1(&|$)/.test(C);this.W=!p&&/[?&]ae=2(&|$)/.test(C);if((this.T=/[?&]adurl=([^&]*)/.exec(C))&&this.T[1]){try{var V=decodeURIComponent(this.T[1])}catch(N){V=null}this.V=V}}; GiX=function(p){p=p.Y;if(!p)return"";var C="";p.platform&&(C+="&uap="+encodeURIComponent(p.platform));p.platformVersion&&(C+="&uapv="+encodeURIComponent(p.platformVersion));p.uaFullVersion&&(C+="&uafv="+encodeURIComponent(p.uaFullVersion));p.architecture&&(C+="&uaa="+encodeURIComponent(p.architecture));p.model&&(C+="&uam="+encodeURIComponent(p.model));p.bitness&&(C+="&uab="+encodeURIComponent(p.bitness));p.fullVersionList&&(C+="&uafvl="+encodeURIComponent(p.fullVersionList.map(function(V){return encodeURIComponent(V.brand)+ ";"+encodeURIComponent(V.version)}).join("|"))); typeof p.wow64!=="undefined"&&(C+="&uaw="+Number(p.wow64));return C}; CZe=function(p,C,V,N,H){var X=window,d=V?"//pagead2.googlesyndication.com/bg/"+Xn(V)+".js":"";V=X.document;var a={};C&&(a._scs_=C);a._bgu_=d;a._bgp_=N;a._li_="v_h.3.0.0.0";H&&(a._upb_=H);(C=X.GoogleTyFxhY)&&typeof C.push=="function"||(C=X.GoogleTyFxhY=[]);C.push(a);C=rI(V).createElement("SCRIPT");C.type="text/javascript";C.async=!0;p=dme(ps1,Xn(p)+".js");g.GN(C,p);(X=(X.GoogleTyFxhYEET||{})[C.src])?X():V.getElementsByTagName("head")[0].appendChild(C)}; joQ=function(){try{var p,C;return!!((p=window)==null?0:(C=p.top)==null?0:C.location.href)&&!1}catch(V){return!0}}; zo=function(){var p=V1a();p=p===void 0?"bevasrsg":p;return new Promise(function(C){var V=window===window.top?window:joQ()?window:window.top,N=V[p],H;((H=N)==null?0:H.bevasrs)?C(new YI(N.bevasrs)):(N||(N={},N=(N.nqfbel=[],N),V[p]=N),N.nqfbel.push(function(X){C(new YI(X))}))})}; NTY=function(p){var C={c:p.P$,e:p.hw,mc:p.F9,me:p.qJ};p.Yq&&(C.co={c:p.Yq.pA,a:p.Yq.q2,s:p.Yq.Xz});return C}; Rq=function(p){g.Y.call(this);this.wpc=p}; YI=function(p){g.Y.call(this);var C=this;this.w7=p;this.V="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.T=void 0;this.Or=this.w7.p;this.S=this.G5.bind(this);this.addOnDisposeCallback(function(){return void HhS(C)})}; Xss=function(p){var C;return g.I(function(V){if(V.C==1){if(!p.w7.wpc)throw new fN(30,"NWA");return p.C?V.return(p.C):g.y(V,p.w7.wpc(),2)}C=V.T;p.C=new Rq(C);return V.return(p.C)})}; HhS=function(p){p.T!==void 0&&(p.V.forEach(function(C){var V;(V=p.T)==null||V.removeEventListener(C,p.S)}),p.T=void 0)}; huS=function(p){if(g.Sy(g.dI(p)))return!1;if(p.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var C=new g.SZ(p)}catch(V){return g.L0(dkY,function(N){return p.search(N)>0})!=null}return C.Y.match(ihu)?!0:g.L0(dkY,function(V){return p.match(V)!=null})!=null}; g.nX=function(p,C){return p.replace(soV,function(V,N){try{var H=g.x5(C,N);if(H==null||H.toString()==null)return V;H=H.toString();if(H==""||!g.Sy(g.dI(H)))return encodeURIComponent(H).replace(/%2C/g,",")}catch(X){}return V})}; aee=function(p,C){return Object.is(p,C)}; EcX=function(p){var C=e0;e0=p;return C}; ley=function(p){if(p.uf!==void 0){var C=Po;Po=!0;try{for(var V=g.F(p.uf),N=V.next();!N.done;N=V.next()){var H=N.value;H.d2||(p=void 0,H.d2=!0,ley(H),(p=H.Pl)==null||p.call(H,H))}}finally{Po=C}}}; t1a=function(){var p;return((p=e0)==null?void 0:p.bH)!==!1}; TT1=function(p,C,V){cUV(p);if(p.uf.length===0&&p.F4!==void 0)for(var N=0;N0}; M1V=function(p){p.F4!=null||(p.F4=[]);p.mF!=null||(p.mF=[]);p.Qw!=null||(p.Qw=[])}; cUV=function(p){p.uf!=null||(p.uf=[]);p.Kg!=null||(p.Kg=[])}; mke=function(p){function C(){if(Po)throw Error("");if(e0!==null){var N=e0.KG++;M1V(e0);N0?" "+C:C))}}; g.lI=function(p,C){if(p.classList)Array.prototype.forEach.call(C,function(H){g.Ed(p,H)}); else{var V={};Array.prototype.forEach.call(hk(p),function(H){V[H]=!0}); Array.prototype.forEach.call(C,function(H){V[H]=!0}); C="";for(var N in V)C+=C.length>0?" "+N:N;g.sd(p,C)}}; g.tk=function(p,C){p.classList?p.classList.remove(C):g.aL(p,C)&&g.sd(p,Array.prototype.filter.call(hk(p),function(V){return V!=C}).join(" "))}; g.cF=function(p,C){p.classList?Array.prototype.forEach.call(C,function(V){g.tk(p,V)}):g.sd(p,Array.prototype.filter.call(hk(p),function(V){return!g.W5(C,V)}).join(" "))}; g.Tz=function(p,C,V){V?g.Ed(p,C):g.tk(p,C)}; oca=function(p,C){var V=!g.aL(p,C);g.Tz(p,C,V)}; g.M8=function(){g.h8.call(this);this.T=0;this.endTime=this.startTime=null}; kya=function(p,C){Array.isArray(C)||(C=[C]);C=C.map(function(V){return typeof V==="string"?V:V.property+" "+V.duration+"s "+V.timing+" "+V.delay+"s"}); g.K2(p,"transition",C.join(","))}; Jk=function(p,C,V,N,H){g.M8.call(this);this.C=p;this.W=C;this.Y=V;this.S=N;this.D=Array.isArray(H)?H:[H]}; xkY=function(p,C,V,N){return new Jk(p,C,{opacity:V},{opacity:N},{property:"opacity",duration:C,timing:"ease-in",delay:0})}; zu9=function(p){p=uP(p);if(p=="")return null;var C=String(p.slice(0,4)).toLowerCase();if(("url("1||p&&p.split(")"),null;if(p.indexOf("(")>0){if(/"|'/.test(p))return null;C=/([\-\w]+)\(/g;for(var V;V=C.exec(p);)if(!(V[1].toLowerCase()in Yhs))return null}return p}; ml=function(p,C){p=g.xH[p];return p&&p.prototype?(C=Object.getOwnPropertyDescriptor(p.prototype,C))&&C.get||null:null}; RuY=function(p){var C=g.xH.CSSStyleDeclaration;return C&&C.prototype&&C.prototype[p]||null}; ncL=function(p,C,V,N){if(p)return p.apply(C,N);if(g.vF&&document.documentMode<10){if(!C[V].call)throw Error("IE Clobbering detected");}else if(typeof C[V]!="function")throw Error("Clobbering detected");return C[V].apply(C,N)}; LgS=function(p){if(!p)return"";var C=document.createElement("div").style;euH(p).forEach(function(V){var N=g.Nq&&V in PZe?V:V.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");v5(N,"--")||v5(N,"var")||(V=ncL(wsQ,p,p.getPropertyValue?"getPropertyValue":"getAttribute",[V])||"",V=zu9(V),V!=null&&ncL($kV,C,C.setProperty?"setProperty":"setAttribute",[N,V]))}); return C.cssText||""}; euH=function(p){g.ea(p)?p=g.p6(p):(p=g.Ia(p),g.rY(p,"cssText"));return p}; g.SJ=function(p){var C,V=C=0,N=!1;p=p.split(gcY);for(var H=0;H.4?-1:1;return(C==0?null:C)==-1?"rtl":"ltr"}; g.ZJ=function(p){if(p instanceof Kg||p instanceof DJ||p instanceof uI)return p;if(typeof p.next=="function")return new Kg(function(){return p}); if(typeof p[Symbol.iterator]=="function")return new Kg(function(){return p[Symbol.iterator]()}); if(typeof p.lT=="function")return new Kg(function(){return p.lT()}); throw Error("Not an iterator or iterable.");}; Kg=function(p){this.C=p}; DJ=function(p){this.C=p}; uI=function(p){Kg.call(this,function(){return p}); this.V=p}; Ud=function(p,C,V,N,H,X,d,a){this.T=p;this.D=C;this.V=V;this.W=N;this.S=H;this.Y=X;this.C=d;this.J=a}; fg=function(p,C){if(C==0)return p.T;if(C==1)return p.C;var V=vG(p.T,p.V,C),N=vG(p.V,p.S,C);p=vG(p.S,p.C,C);V=vG(V,N,C);N=vG(N,p,C);return vG(V,N,C)}; BTY=function(p,C){var V=(C-p.T)/(p.C-p.T);if(V<=0)return 0;if(V>=1)return 1;for(var N=0,H=1,X=0,d=0;d<8;d++){X=fg(p,V);var a=(fg(p,V+1E-6)-X)/1E-6;if(Math.abs(X-C)<1E-6)return V;if(Math.abs(a)<1E-6)break;else X1E-6&&d<8;d++)X=0}; g.IL=function(p){g.Y.call(this);this.Y=1;this.V=[];this.S=0;this.T=[];this.C={};this.D=!!p}; pfu=function(p,C,V){g.mo(function(){p.apply(C,V)})}; g.bI=function(p){this.T=p}; Ak=function(p){this.T=p}; C4S=function(p){this.data=p}; j9u=function(p){return p===void 0||p instanceof C4S?p:new C4S(p)}; oL=function(p){this.T=p}; g.Vha=function(p){var C=p.creation;p=p.expiration;return!!p&&pg.QL()}; g.kF=function(p){this.T=p}; N9u=function(){}; xF=function(){}; YF=function(p){this.T=p;this.C=null}; zz=function(p){if(p.T==null)throw Error("Storage mechanism: Storage unavailable");var C;((C=p.C)!=null?C:p.isAvailable())||Jf(Error("Storage mechanism: Storage unavailable"))}; RL=function(){var p=null;try{p=g.xH.localStorage||null}catch(C){}YF.call(this,p)}; H21=function(){var p=null;try{p=g.xH.sessionStorage||null}catch(C){}YF.call(this,p)}; ng=function(p,C){this.C=p;this.T=C+"::"}; g.eJ=function(p){var C=new RL;return C.isAvailable()?p?new ng(C,p):C:null}; PF=function(p,C){this.T=p;this.C=C}; w0=function(p){this.T=[];if(p)a:{if(p instanceof w0){var C=p.Ei();p=p.k5();if(this.T.length<=0){for(var V=this.T,N=0;N>>6:(X<65536?a[V++]=224|X>>>12:(a[V++]=240|X>>>18,a[V++]=128|X>>>12&63),a[V++]=128|X>>> 6&63),a[V++]=128|X&63);return a}; WF=function(p){for(var C=p.length;--C>=0;)p[C]=0}; Q2=function(p,C,V,N,H){this.Sv=p;this.Sj=C;this.Vp=V;this.dN=N;this.wF=H;this.Hi=p&&p.length}; r0=function(p,C){this.Fe=p;this.lU=0;this.GE=C}; BF=function(p,C){p.Vf[p.pending++]=C&255;p.Vf[p.pending++]=C>>>8&255}; Gz=function(p,C,V){p.ax>16-V?(p.bM|=C<>16-p.ax,p.ax+=V-16):(p.bM|=C<>>=1,V<<=1;while(--C>0);return V>>>1}; i2e=function(p,C,V){var N=Array(16),H=0,X;for(X=1;X<=15;X++)N[X]=H=H+V[X-1]<<1;for(V=0;V<=C;V++)H=p[V*2+1],H!==0&&(p[V*2]=dKV(N[H]++,H))}; hUs=function(p){var C;for(C=0;C<286;C++)p.k9[C*2]=0;for(C=0;C<30;C++)p.JI[C*2]=0;for(C=0;C<19;C++)p.eU[C*2]=0;p.k9[512]=1;p.d9=p.jn=0;p.uF=p.matches=0}; s9u=function(p){p.ax>8?BF(p,p.bM):p.ax>0&&(p.Vf[p.pending++]=p.bM);p.bM=0;p.ax=0}; aoa=function(p,C,V){s9u(p);BF(p,V);BF(p,~V);g0.XL(p.Vf,p.window,C,V,p.pending);p.pending+=V}; Eos=function(p,C,V,N){var H=C*2,X=V*2;return p[H]>>7)];pd(p,d,V);a=XC[d];a!==0&&(H-=df[d],Gz(p,H,a))}}while(N>1;d>=1;d--)Cd(p,V,d);E=X;do d=p.vR[1],p.vR[1]=p.vR[p.iq--],Cd(p,V,1),N=p.vR[1],p.vR[--p.Tq]=d,p.vR[--p.Tq]=N,V[E*2]=V[d*2]+V[N*2],p.depth[E]=(p.depth[d]>=p.depth[N]?p.depth[d]:p.depth[N])+1,V[d*2+1]=V[N*2+1]=E,p.vR[1]=E++,Cd(p,V,1);while(p.iq>= 2);p.vR[--p.Tq]=p.vR[1];d=C.Fe;E=C.lU;N=C.GE.Sv;H=C.GE.Hi;X=C.GE.Sj;var l=C.GE.Vp,t=C.GE.wF,c,T=0;for(c=0;c<=15;c++)p.ZI[c]=0;d[p.vR[p.Tq]*2+1]=0;for(C=p.Tq+1;C<573;C++){var M=p.vR[C];c=d[d[M*2+1]*2+1]+1;c>t&&(c=t,T++);d[M*2+1]=c;if(!(M>E)){p.ZI[c]++;var J=0;M>=l&&(J=X[M-l]);var S=d[M*2];p.d9+=S*(c+J);H&&(p.jn+=S*(N[M*2+1]+J))}}if(T!==0){do{for(c=t-1;p.ZI[c]===0;)c--;p.ZI[c]--;p.ZI[c+1]+=2;p.ZI[t]--;T-=2}while(T>0);for(c=t;c!==0;c--)for(M=p.ZI[c];M!==0;)N=p.vR[--C],N>E||(d[N*2+1]!==c&&(p.d9+=(c-d[N* 2+1])*d[N*2],d[N*2+1]=c),M--)}i2e(V,a,p.ZI)}; thX=function(p,C,V){var N,H=-1,X=C[1],d=0,a=7,E=4;X===0&&(a=138,E=3);C[(V+1)*2+1]=65535;for(N=0;N<=V;N++){var l=X;X=C[(N+1)*2+1];++d>>=1)if(C&1&&p.k9[V*2]!==0)return 0;if(p.k9[18]!==0||p.k9[20]!==0||p.k9[26]!==0)return 1;for(V=32;V<256;V++)if(p.k9[V*2]!==0)return 1;return 0}; hp=function(p,C,V){p.Vf[p.S9+p.uF*2]=C>>>8&255;p.Vf[p.S9+p.uF*2+1]=C&255;p.Vf[p.e4+p.uF]=V&255;p.uF++;C===0?p.k9[V*2]++:(p.matches++,C--,p.k9[(j7[V]+256+1)*2]++,p.JI[(C<256?H6[C]:H6[256+(C>>>7)])*2]++);return p.uF===p.qh-1}; a6=function(p,C){p.msg=sg[C];return C}; Eg=function(p){for(var C=p.length;--C>=0;)p[C]=0}; la=function(p){var C=p.state,V=C.pending;V>p.jd&&(V=p.jd);V!==0&&(g0.XL(p.output,C.Vf,C.l7,V,p.oC),p.oC+=V,C.l7+=V,p.aJ+=V,p.jd-=V,C.pending-=V,C.pending===0&&(C.l7=0))}; TH=function(p,C){var V=p.Xx>=0?p.Xx:-1,N=p.IH-p.Xx,H=0;if(p.level>0){p.R6.zG===2&&(p.R6.zG=T9S(p));ia(p,p.M8);ia(p,p.Gu);thX(p,p.k9,p.M8.lU);thX(p,p.JI,p.Gu.lU);ia(p,p.xp);for(H=18;H>=3&&p.eU[Mhu[H]*2+1]===0;H--);p.d9+=3*(H+1)+5+5+4;var X=p.d9+3+7>>>3;var d=p.jn+3+7>>>3;d<=X&&(X=d)}else X=d=N+5;if(N+4<=X&&V!==-1)Gz(p,C?1:0,3),aoa(p,V,N);else if(p.strategy===4||d===X)Gz(p,2+(C?1:0),3),loL(p,tp,c6);else{Gz(p,4+(C?1:0),3);V=p.M8.lU+1;N=p.Gu.lU+1;H+=1;Gz(p,V-257,5);Gz(p,N-1,5);Gz(p,H-4,4);for(X=0;X>>8&255;p.Vf[p.pending++]=C&255}; JxV=function(p,C){var V=p.Ka,N=p.IH,H=p.uT,X=p.kf,d=p.IH>p.c$-262?p.IH-(p.c$-262):0,a=p.window,E=p.tV,l=p.uL,t=p.IH+258,c=a[N+H-1],T=a[N+H];p.uT>=p.a4&&(V>>=2);X>p.lx&&(X=p.lx);do{var M=C;if(a[M+H]===T&&a[M+H-1]===c&&a[M]===a[N]&&a[++M]===a[N+1]){N+=2;for(M++;a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&NH){p.UW=C;H=M;if(M>=X)break;c=a[N+H-1];T=a[N+H]}}}while((C=l[C&E])>d&&--V!== 0);return H<=p.lx?H:p.lx}; FC=function(p){var C=p.c$,V;do{var N=p.zH-p.lx-p.IH;if(p.IH>=C+(C-262)){g0.XL(p.window,p.window,C,C,0);p.UW-=C;p.IH-=C;p.Xx-=C;var H=V=p.Pt;do{var X=p.head[--H];p.head[H]=X>=C?X-C:0}while(--V);H=V=C;do X=p.uL[--H],p.uL[H]=X>=C?X-C:0;while(--V);N+=C}if(p.R6.a5===0)break;H=p.R6;V=p.window;X=p.IH+p.lx;var d=H.a5;d>N&&(d=N);d===0?V=0:(H.a5-=d,g0.XL(V,H.input,H.Zc,d,X),H.state.wrap===1?H.Vi=m2(H.Vi,V,d,X):H.state.wrap===2&&(H.Vi=v6(H.Vi,V,d,X)),H.Zc+=d,H.k0+=d,V=d);p.lx+=V;if(p.lx+p.N5>=3)for(N=p.IH-p.N5, p.l9=p.window[N],p.l9=(p.l9<=3&&(p.l9=(p.l9<=3)if(V=hp(p,p.IH-p.UW,p.bW-3),p.lx-=p.bW,p.bW<=p.Uz&&p.lx>=3){p.bW--;do p.IH++,p.l9=(p.l9<=3&&(p.l9=(p.l9<4096)&&(p.bW=2));if(p.uT>=3&&p.bW<=p.uT){N=p.IH+p.lx-3;V=hp(p,p.IH-1-p.sD,p.uT-3);p.lx-=p.uT-1;p.uT-=2;do++p.IH<=N&&(p.l9=(p.l9<=3&&p.IH>0&&(N=p.IH-1,V=X[N],V===X[++N]&&V===X[++N]&&V===X[++N])){for(H=p.IH+258;V===X[++N]&&V===X[++N]&&V===X[++N]&&V===X[++N]&&V===X[++N]&&V===X[++N]&&V===X[++N]&&V===X[++N]&&Np.lx&&(p.bW=p.lx)}p.bW>=3?(V=hp(p,1,p.bW-3),p.lx-=p.bW,p.IH+=p.bW,p.bW=0):(V=hp(p,0,p.window[p.IH]),p.lx--,p.IH++);if(V&&(TH(p,!1),p.R6.jd===0))return 1}p.N5=0;return C=== 4?(TH(p,!0),p.R6.jd===0?3:4):p.uF&&(TH(p,!1),p.R6.jd===0)?1:2}; voL=function(p,C){for(var V;;){if(p.lx===0&&(FC(p),p.lx===0)){if(C===0)return 1;break}p.bW=0;V=hp(p,0,p.window[p.IH]);p.lx--;p.IH++;if(V&&(TH(p,!1),p.R6.jd===0))return 1}p.N5=0;return C===4?(TH(p,!0),p.R6.jd===0?3:4):p.uF&&(TH(p,!1),p.R6.jd===0)?1:2}; DD=function(p,C,V,N,H){this.xk=p;this.Qk=C;this.n_n=V;this.Ju=N;this.func=H}; FG9=function(){this.R6=null;this.status=0;this.Vf=null;this.wrap=this.pending=this.l7=this.fp=0;this.n7=null;this.zi=0;this.method=8;this.eB=-1;this.tV=this.eJ=this.c$=0;this.window=null;this.zH=0;this.head=this.uL=null;this.kf=this.a4=this.strategy=this.level=this.Uz=this.Ka=this.uT=this.lx=this.UW=this.IH=this.wO=this.sD=this.bW=this.Xx=this.zv=this.vS=this.F2=this.Pt=this.l9=0;this.k9=new g0.dn(1146);this.JI=new g0.dn(122);this.eU=new g0.dn(78);Eg(this.k9);Eg(this.JI);Eg(this.eU);this.xp=this.Gu= this.M8=null;this.ZI=new g0.dn(16);this.vR=new g0.dn(573);Eg(this.vR);this.Tq=this.iq=0;this.depth=new g0.dn(573);Eg(this.depth);this.ax=this.bM=this.N5=this.matches=this.jn=this.d9=this.S9=this.uF=this.qh=this.e4=0}; SES=function(p,C){if(!p||!p.state||C>5||C<0)return p?a6(p,-2):-2;var V=p.state;if(!p.output||!p.input&&p.a5!==0||V.status===666&&C!==4)return a6(p,p.jd===0?-5:-2);V.R6=p;var N=V.eB;V.eB=C;if(V.status===42)if(V.wrap===2)p.Vi=0,Mv(V,31),Mv(V,139),Mv(V,8),V.n7?(Mv(V,(V.n7.text?1:0)+(V.n7.fv?2:0)+(V.n7.extra?4:0)+(V.n7.name?8:0)+(V.n7.comment?16:0)),Mv(V,V.n7.time&255),Mv(V,V.n7.time>>8&255),Mv(V,V.n7.time>>16&255),Mv(V,V.n7.time>>24&255),Mv(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),Mv(V,V.n7.os& 255),V.n7.extra&&V.n7.extra.length&&(Mv(V,V.n7.extra.length&255),Mv(V,V.n7.extra.length>>8&255)),V.n7.fv&&(p.Vi=v6(p.Vi,V.Vf,V.pending,0)),V.zi=0,V.status=69):(Mv(V,0),Mv(V,0),Mv(V,0),Mv(V,0),Mv(V,0),Mv(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),Mv(V,3),V.status=113);else{var H=8+(V.eJ-8<<4)<<8;H|=(V.strategy>=2||V.level<2?0:V.level<6?1:V.level===6?2:3)<<6;V.IH!==0&&(H|=32);V.status=113;Jp(V,H+(31-H%31));V.IH!==0&&(Jp(V,p.Vi>>>16),Jp(V,p.Vi&65535));p.Vi=1}if(V.status===69)if(V.n7.extra){for(H= V.pending;V.zi<(V.n7.extra.length&65535)&&(V.pending!==V.fp||(V.n7.fv&&V.pending>H&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H)),la(p),H=V.pending,V.pending!==V.fp));)Mv(V,V.n7.extra[V.zi]&255),V.zi++;V.n7.fv&&V.pending>H&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H));V.zi===V.n7.extra.length&&(V.zi=0,V.status=73)}else V.status=73;if(V.status===73)if(V.n7.name){H=V.pending;do{if(V.pending===V.fp&&(V.n7.fv&&V.pending>H&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H)),la(p),H=V.pending,V.pending===V.fp)){var X=1;break}X=V.ziH&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H));X===0&&(V.zi=0,V.status=91)}else V.status=91;if(V.status===91)if(V.n7.comment){H=V.pending;do{if(V.pending===V.fp&&(V.n7.fv&&V.pending>H&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H)),la(p),H=V.pending,V.pending===V.fp)){X=1;break}X=V.ziH&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H));X===0&&(V.status=103)}else V.status= 103;V.status===103&&(V.n7.fv?(V.pending+2>V.fp&&la(p),V.pending+2<=V.fp&&(Mv(V,p.Vi&255),Mv(V,p.Vi>>8&255),p.Vi=0,V.status=113)):V.status=113);if(V.pending!==0){if(la(p),p.jd===0)return V.eB=-1,0}else if(p.a5===0&&(C<<1)-(C>4?9:0)<=(N<<1)-(N>4?9:0)&&C!==4)return a6(p,-5);if(V.status===666&&p.a5!==0)return a6(p,-5);if(p.a5!==0||V.lx!==0||C!==0&&V.status!==666){N=V.strategy===2?voL(V,C):V.strategy===3?mKX(V,C):ua[V.level].func(V,C);if(N===3||N===4)V.status=666;if(N===1||N===3)return p.jd===0&&(V.eB= -1),0;if(N===2&&(C===1?(Gz(V,2,3),pd(V,256,tp),V.ax===16?(BF(V,V.bM),V.bM=0,V.ax=0):V.ax>=8&&(V.Vf[V.pending++]=V.bM&255,V.bM>>=8,V.ax-=8)):C!==5&&(Gz(V,0,3),aoa(V,0,0),C===3&&(Eg(V.head),V.lx===0&&(V.IH=0,V.Xx=0,V.N5=0))),la(p),p.jd===0))return V.eB=-1,0}if(C!==4)return 0;if(V.wrap<=0)return 1;V.wrap===2?(Mv(V,p.Vi&255),Mv(V,p.Vi>>8&255),Mv(V,p.Vi>>16&255),Mv(V,p.Vi>>24&255),Mv(V,p.k0&255),Mv(V,p.k0>>8&255),Mv(V,p.k0>>16&255),Mv(V,p.k0>>24&255)):(Jp(V,p.Vi>>>16),Jp(V,p.Vi&65535));la(p);V.wrap>0&& (V.wrap=-V.wrap);return V.pending!==0?0:1}; ZD=function(p){if(!(this instanceof ZD))return new ZD(p);p=this.options=g0.assign({level:-1,method:8,chunkSize:16384,Ut:15,Fo:8,strategy:0,Y$:""},p||{});p.raw&&p.Ut>0?p.Ut=-p.Ut:p.IT&&p.Ut>0&&p.Ut<16&&(p.Ut+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.R6=new KGY;this.R6.jd=0;var C=this.R6;var V=p.level,N=p.method,H=p.Ut,X=p.Fo,d=p.strategy;if(C){var a=1;V===-1&&(V=6);H<0?(a=0,H=-H):H>15&&(a=2,H-=16);if(X<1||X>9||N!==8||H<8||H>15||V<0||V>9||d<0||d>4)C=a6(C,-2);else{H===8&&(H=9);var E= new FG9;C.state=E;E.R6=C;E.wrap=a;E.n7=null;E.eJ=H;E.c$=1<>=7;X<30;X++)for(df[X]=d<<7,H=0;H<1<=l.c$&&(C===0&&(Eg(l.head),l.IH=0,l.Xx=0,l.N5=0),V=new g0.EX(l.c$),g0.XL(V,X,d-l.c$,l.c$,0),X=V,d=l.c$);V=p.a5;N=p.Zc;H=p.input;p.a5=d;p.Zc=0;p.input=X;for(FC(l);l.lx>=3;){X=l.IH;d=l.lx-2;do l.l9=(l.l9<=-1?(0,V[29])(V[84],V[69]):(0,V[31])(V[9],V[66]),(0,V[80])((0,V[43])(V[73],V[32]),V[37],(0,V[86])(),V[18],V[11]),(0,V[37])((0,V[67])(),V[18],V[64])}catch(N){V[0]<-1&&(V[87]>5?(((0,V[21])((0,V[15])(V[69],V[45]),V[29],(0,V[28])(V[78],V[69]),V[53],V[73]),V[31])(V[17],V[66]),V[24])(V[52],V[47]):((0,V[22])((0,V[59])(V[73],V[8]),V[59],V[69],V[15]),(0,V[68])((0,V[16])(),V[49],V[6]),V[22])((0,V[68])((0,V[16])(), V[11],V[42]),V[68],(0,V[9])(),V[11],V[6])),V[20]!==1-new Date("1969-12-31T22:16:49.000-01:45")/1E3*88+9588&&(V[19]<=new Date("1969-12-31T21:30:02.000-02:30")/1E3?(((0,V[62])(V[38],V[8]),V[37])(V[36],V[68]),V[18])(V[87],V[55]):((0,V[79])(V[73],V[31]),V[-125-new Date("1970-01-01T04:56:27.000+05:00")/1E3])((0,V[48])(),V[35],V[62])*(0,V[79])(V[83],V[28]))}finally{V[10]!==10&&(0,V[79])(V[21],V[31]),V[60]<=-4&&(0,V[66])(V[87],V[38])}try{(V[16]<=-7||((0,V[88])((0,V[29])(),V[35],V[26]),((0,V[82])(V[2],V[69]), V[88])((0,V[0])(),V[new Date("1970-01-01T04:31:09.000+04:30")/1E3],V[62]),null))&&(0,V[72])((0,V[5])(V[37],V[69]),V[82],(0,V[61])(V[69]),V[12],V[31]),V[67]!==10&&(V[75]!=5&&((0,V[42])((0,V[66])(V[28],V[39]),V[new Date("1969-12-31T16:01:22.000-08:00")/1E3],V[77],V[28]),"false")||((0,V[14])(V[46],V[48]),V[13])(V[56],V[48])),V[44]>=7&&(V[45]!==4||((0,V[13])(V[4],V[55]),0))&&(0,V[22])((0,V[19])(),V[3],V[50]),V[57]!==9&&(V[58]>=-5||((0,V[66])((0,V[14])(V[8],V[21]),V[41],V[59]),0))&&(0,V[66])((0,V[22])((0,V[19])(), V[59],V[86]),V[14],V[87],V[21]),V[37]<=9&&(V[1]>4&&((0,V[0])(V[47],V[55]),((0,V[66])((0,V[14])(V[73],V[55]),V[16],V[74],V[59]),V[13])(V[3],V[44]),1)||((((0,V[14])(V[25],V[52]),V[16])(V[83],V[59]),V[13])(V[52],V[58]),V[16])(V[77],V[48]))}catch(N){(0,V[11])(V[65],V[52])%(0,V[19])((0,V[69])(),V[0],V[47]),(0,V[13])(V[32],V[56]),(0,V[63])((0,V[35])(V[21],V[52]),V[35],V[30],V[52])}try{V[6]===8?(0,V[19])((0,V[16])(),V[0],V[83])%(0,V[35])(V[72],V[18])>(0,V[11])(V[75],V[18]):((0,V[13])(V[73],V[49]),(0,V[40])(V[30], V[new Date("1969-12-31T14:00:06.000-10:00")/1E3]),V[40])(V[75],V[8]),(0,V[65])(V[82],V[28]),(0,V[65])(V[18],V[82])}catch(N){}try{V[38]<=-4&&(V[38]!=6||((0,V[65])(V[64],V[30]),0))&&(0,V[41])(V[61],V[75]),(V[63]<8||((0,V[22])(V[82]),""))&&(0,V[65])(V[28],V[48])}catch(N){(0,V[43])(V[4],V[30]),(0,V[56])(V[39],V[86])}finally{V[64]<-3&&(V[53]!==-5&&((0,V[40])(V[79],V[45]),1)||(0,V[65])(V[32],V[48])),V[new Date("1969-12-31T16:00:27.000-08:00")/1E3]<=0&&(V[64]<=-6?((0,V[41])(V[new Date("1970-01-01T06:45:37.000+06:45")/ 1E3],V[79])^((0,V[56])(V[83],V[30]),V[40])(V[75],V[78]),(0,V[56])(V[2],V[75]),V[53])(V[42],V[70]):(((((0,V[37])((0,V[87])(),V[18],V[11]),V[37])((0,V[68])(),V[70],V[11]),V[31])(V[58],V[74]),V[53])(V[64],V[70]),V[29])(V[4],V[18])),V[54]>=-8&&(V[new Date("1969-12-31T16:15:45.000-07:45")/1E3]!=4||(((0,V[81])((0,V[37])((0,V[34])(),V[70],V[65]),V[53],V[55],V[70]),V[53])(V[5],V[70]),""))&&(((0,V[44])(V[45],V[18]),V[10])(V[18]),V[10])(V[18]),V[19]!=8&&(0,V[81])((0,V[37])((0,V[68])(),V[74],V[11]),V[28],V[70], V[24])}}catch(N){return"GgGpA_5mMZo6ZwBluP-_w8_"+p}return C.join("")}; eUa=function(p){return p,"cpn"[2+!!p]}; g.I6=function(p){this.name=p}; P4X=function(p){this.bx=OL(p)}; ba=function(p){this.bx=OL(p)}; Ap=function(p){this.bx=OL(p)}; wfH=function(p){this.bx=OL(p)}; o6=function(p){this.bx=OL(p)}; kQ=function(p){this.bx=OL(p)}; xQ=function(p){this.bx=OL(p)}; YQ=function(p){this.bx=OL(p)}; zH=function(p){this.bx=OL(p)}; R6=function(p){this.bx=OL(p)}; nd=function(p){this.bx=OL(p)}; e7=function(p){this.bx=OL(p)}; P6=function(p){this.bx=OL(p)}; wf=function(p){this.bx=OL(p)}; gf=function(p){this.bx=OL(p)}; W6=function(p){this.bx=OL(p,500)}; QJ=function(p){this.bx=OL(p)}; rf=function(p){this.bx=OL(p)}; $KH=function(p){this.bx=OL(p)}; LGj=function(){return g.zV("yt.ads.biscotti.lastId_")||""}; goe=function(p){g.YH("yt.ads.biscotti.lastId_",p)}; GH=function(){var p=arguments,C=B6;p.length>1?C[p[0]]=p[1]:p.length===1&&Object.assign(C,p[0])}; g.pO=function(p,C){return p in B6?B6[p]:C}; CO=function(p){var C=B6.EXPERIMENT_FLAGS;return C?C[p]:void 0}; WGQ=function(p){je.forEach(function(C){return C(p)})}; g.NU=function(p){return p&&window.yterr?function(){try{return p.apply(this,arguments)}catch(C){g.Vg(C)}}:p}; g.Vg=function(p){var C=g.zV("yt.logging.errors.log");C?C(p,"ERROR",void 0,void 0,void 0,void 0,void 0):(C=g.pO("ERRORS",[]),C.push([p,"ERROR",void 0,void 0,void 0,void 0,void 0]),GH("ERRORS",C));WGQ(p)}; Hd=function(p,C,V,N,H){var X=g.zV("yt.logging.errors.log");X?X(p,"WARNING",C,V,N,void 0,H):(X=g.pO("ERRORS",[]),X.push([p,"WARNING",C,V,N,void 0,H]),GH("ERRORS",X))}; X5=function(p,C){C=p.split(C);for(var V={},N=0,H=C.length;N1?p[1]:p[0])):{}}; aK=function(p,C){return Guv(p,C||{},!0)}; Ek=function(p,C){return Guv(p,C||{},!1)}; Guv=function(p,C,V){var N=p.split("#",2);p=N[0];N=N.length>1?"#"+N[1]:"";var H=p.split("?",2);p=H[0];H=i1(H[1]||"");for(var X in C)if(V||!g.bc(H,X))H[X]=C[X];return g.GD(p,H)+N}; l1=function(p){if(!C)var C=window.location.href;var V=g.$7(1,p),N=g.LJ(p);V&&N?(p=p.match(wA),C=C.match(wA),p=p[3]==C[3]&&p[1]==C[1]&&p[4]==C[4]):p=N?g.LJ(C)===N&&(Number(g.$7(4,C))||null)===(Number(g.$7(4,p))||null):!0;return p}; tw=function(p){p||(p=document.location.href);p=g.$7(1,p);return p!==null&&p==="https"}; cd=function(p){p=ppy(p);return p===null?!1:p[0]==="com"&&p[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; Cfj=function(p){p=ppy(p);return p===null?!1:p[1]==="google"?!0:p[2]==="google"?p[0]==="au"&&p[1]==="com"?!0:p[0]==="uk"&&p[1]==="co"?!0:!1:!1}; ppy=function(p){p=g.LJ(p);return p!==null?p.split(".").reverse():null}; Q9V=function(p){return p&&p.match(j1Q)?p:HG(p)}; Jw=function(p){var C=TQ;p=p===void 0?LGj():p;var V=Object,N=V.assign,H=MU(C);var X=C.T;try{var d=X.screenX;var a=X.screenY}catch(Z){}try{var E=X.outerWidth;var l=X.outerHeight}catch(Z){}try{var t=X.innerWidth;var c=X.innerHeight}catch(Z){}try{var T=X.screenLeft;var M=X.screenTop}catch(Z){}try{t=X.innerWidth,c=X.innerHeight}catch(Z){}try{var J=X.screen.availWidth;var S=X.screen.availTop}catch(Z){}X=[T,M,d,a,J,S,E,l,t,c];d=S8s(!1,C.T.top);a={};var D=D===void 0?g.xH:D;E=new Bo;"SVGElement"in D&&"createElementNS"in D.document&&E.set(0);l=oqj();l["allow-top-navigation-by-user-activation"]&&E.set(1);l["allow-popups-to-escape-sandbox"]&&E.set(2);D.crypto&&D.crypto.subtle&&E.set(3);"TextDecoder"in D&&"TextEncoder"in D&&E.set(4);D=qhy(E);C=(a.bc=D,a.bih=d.height,a.biw=d.width,a.brdim=X.join(),a.vis=uZ(C.C),a.wgl=!!S1.WebGLRenderingContext,a);V=N.call(V,H,C);V.ca_type="image";p&&(V.bid=p);return V}; MU=function(p){var C={};C.dt=Vry;C.flash="0";a:{try{var V=p.T.top.location.href}catch(t){p=2;break a}p=V?V===p.C.location.href?0:1:2}C=(C.frm=p,C);try{C.u_tz=-(new Date).getTimezoneOffset();var N=N===void 0?S1:N;try{var H=N.history.length}catch(t){H=0}C.u_his=H;var X;C.u_h=(X=S1.screen)==null?void 0:X.height;var d;C.u_w=(d=S1.screen)==null?void 0:d.width;var a;C.u_ah=(a=S1.screen)==null?void 0:a.availHeight;var E;C.u_aw=(E=S1.screen)==null?void 0:E.availWidth;var l;C.u_cd=(l=S1.screen)==null?void 0: l.colorDepth}catch(t){}return C}; Hoy=function(){if(!Nx9)return null;var p=Nx9();return"open"in p?p:null}; g.vd=function(p){switch(m1(p)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; m1=function(p){return p&&"status"in p?p.status:-1}; g.F5=function(p,C){typeof p==="function"&&(p=g.NU(p));return window.setTimeout(p,C)}; g.Se=function(p,C){typeof p==="function"&&(p=g.NU(p));return window.setInterval(p,C)}; g.KO=function(p){window.clearTimeout(p)}; g.Dr=function(p){window.clearInterval(p)}; g.Zr=function(p){p=u1(p);return typeof p==="string"&&p==="false"?!1:!!p}; g.Uk=function(p,C){p=u1(p);return p===void 0&&C!==void 0?C:Number(p||0)}; fO=function(){return g.pO("EXPERIMENTS_TOKEN","")}; u1=function(p){return g.pO("EXPERIMENT_FLAGS",{})[p]}; Ok=function(){for(var p=[],C=g.pO("EXPERIMENTS_FORCED_FLAGS",{}),V=g.F(Object.keys(C)),N=V.next();!N.done;N=V.next())N=N.value,p.push({key:N,value:String(C[N])});V=g.pO("EXPERIMENT_FLAGS",{});N=g.F(Object.keys(V));for(var H=N.next();!H.done;H=N.next())H=H.value,H.startsWith("force_")&&C[H]===void 0&&p.push({key:H,value:String(V[H])});return p}; yg=function(p,C,V,N,H,X,d,a){function E(){(l&&"readyState"in l?l.readyState:0)===4&&C&&g.NU(C)(l)} V=V===void 0?"GET":V;N=N===void 0?"":N;a=a===void 0?!1:a;var l=Hoy();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",E,!1):l.onreadystatechange=E;g.Zr("debug_forward_web_query_parameters")&&(p=Xpe(p,window.location.search));l.open(V,p,!0);X&&(l.responseType=X);d&&(l.withCredentials=!0);V=V==="POST"&&(window.FormData===void 0||!(N instanceof FormData));if(H=dZj(p,H))for(var t in H)l.setRequestHeader(t,H[t]),"content-type"===t.toLowerCase()&&(V=!1);V&&l.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(a&&"setAttributionReporting"in XMLHttpRequest.prototype){p={eventSourceEligible:!0,triggerEligible:!1};try{l.setAttributionReporting(p)}catch(c){Hd(c)}}l.send(N);return l}; dZj=function(p,C){C=C===void 0?{}:C;var V=l1(p),N=g.pO("INNERTUBE_CLIENT_NAME"),H=g.Zr("web_ajax_ignore_global_headers_if_set"),X;for(X in ioX){var d=g.pO(ioX[X]),a=X==="X-Goog-AuthUser"||X==="X-Goog-PageId";X!=="X-Goog-Visitor-Id"||d||(d=g.pO("VISITOR_DATA"));var E;if(!(E=!d)){if(!(E=V||(g.LJ(p)?!1:!0))){E=p;var l;if(l=g.Zr("add_auth_headers_to_remarketing_google_dot_com_ping")&&X==="Authorization"&&(N==="TVHTML5"||N==="TVHTML5_UNPLUGGED"||N==="TVHTML5_SIMPLY")&&Cfj(E))E=PX(g.$7(5,E))||"",E=E.split("/"), E="/"+(E.length>1?E[1]:""),l=E==="/pagead";E=l?!0:!1}E=!E}E||H&&C[X]!==void 0||N==="TVHTML5_UNPLUGGED"&&a||(C[X]=d)}"X-Goog-EOM-Visitor-Id"in C&&"X-Goog-Visitor-Id"in C&&delete C["X-Goog-Visitor-Id"];if(V||!g.LJ(p))C["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(V||!g.LJ(p)){try{var t=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(c){}t&&(C["X-YouTube-Time-Zone"]=t)}document.location.hostname.endsWith("youtubeeducation.com")||!V&&g.LJ(p)||(C["X-YouTube-Ad-Signals"]= dm(Jw()));return C}; s11=function(p,C){var V=g.LJ(p);g.Zr("debug_handle_relative_url_for_query_forward_killswitch")||!V&&l1(p)&&(V=document.location.hostname);var N=PX(g.$7(5,p));N=(V=V&&(V.endsWith("youtube.com")||V.endsWith("youtube-nocookie.com")))&&N&&N.startsWith("/api/");if(!V||N)return p;var H=i1(C),X={};g.lr(hzL,function(d){H[d]&&(X[d]=H[d])}); return Ek(p,X)}; IK=function(p,C){C.method="POST";C.postParams||(C.postParams={});return g.qU(p,C)}; lAY=function(p,C){if(window.fetch&&C.format!=="XML"){var V={method:C.method||"GET",credentials:"same-origin"};C.headers&&(V.headers=C.headers);C.priority&&(V.priority=C.priority);p=aAS(p,C);var N=EC9(p,C);N&&(V.body=N);C.withCredentials&&(V.credentials="include");var H=C.context||g.xH,X=!1,d;fetch(p,V).then(function(a){if(!X){X=!0;d&&g.KO(d);var E=a.ok,l=function(t){t=t||{};E?C.onSuccess&&C.onSuccess.call(H,t,a):C.onError&&C.onError.call(H,t,a);C.onFinish&&C.onFinish.call(H,t,a)}; (C.format||"JSON")==="JSON"&&(E||a.status>=400&&a.status<500)?a.json().then(l,function(){l(null)}):l(null)}}).catch(function(){C.onError&&C.onError.call(H,{},{})}); p=C.timeout||0;C.onFetchTimeout&&p>0&&(d=g.F5(function(){X||(X=!0,g.KO(d),C.onFetchTimeout.call(C.context||g.xH))},p))}else g.qU(p,C)}; g.qU=function(p,C){var V=C.format||"JSON";p=aAS(p,C);var N=EC9(p,C),H=!1,X=tru(p,function(E){if(!H){H=!0;a&&g.KO(a);var l=g.vd(E),t=null,c=400<=E.status&&E.status<500,T=500<=E.status&&E.status<600;if(l||c||T)t=cTH(p,V,E,C.convertToSafeHtml);l&&(l=TxY(V,E,t));t=t||{};c=C.context||g.xH;l?C.onSuccess&&C.onSuccess.call(c,E,t):C.onError&&C.onError.call(c,E,t);C.onFinish&&C.onFinish.call(c,E,t)}},C.method,N,C.headers,C.responseType,C.withCredentials); N=C.timeout||0;if(C.onTimeout&&N>0){var d=C.onTimeout;var a=g.F5(function(){H||(H=!0,X.abort(),g.KO(a),d.call(C.context||g.xH,X))},N)}return X}; aAS=function(p,C){C.includeDomain&&(p=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+p);var V=g.pO("XSRF_FIELD_NAME");if(C=C.urlParams)C[V]&&delete C[V],p=aK(p,C);return p}; EC9=function(p,C){var V=g.pO("XSRF_FIELD_NAME"),N=g.pO("XSRF_TOKEN"),H=C.postBody||"",X=C.postParams,d=g.pO("XSRF_FIELD_NAME"),a;C.headers&&(a=C.headers["Content-Type"]);C.excludeXsrf||g.LJ(p)&&!C.withCredentials&&g.LJ(p)!==document.location.hostname||C.method!=="POST"||a&&a!=="application/x-www-form-urlencoded"||C.postParams&&C.postParams[d]||(X||(X={}),X[V]=N);(g.Zr("ajax_parse_query_data_only_when_filled")&&X&&Object.keys(X).length>0||X)&&typeof H==="string"&&(H=i1(H),g.nG(H,X),H=C.postBodyFormat&& C.postBodyFormat==="JSON"?JSON.stringify(H):g.BX(H));X=H||X&&!g.k5(X);!Mrs&&X&&C.method!=="POST"&&(Mrs=!0,g.Vg(Error("AJAX request with postData should use POST")));return H}; cTH=function(p,C,V,N){var H=null;switch(C){case "JSON":try{var X=V.responseText}catch(d){throw N=Error("Error reading responseText"),N.params=p,Hd(N),d;}p=V.getResponseHeader("Content-Type")||"";X&&p.indexOf("json")>=0&&(X.substring(0,5)===")]}'\n"&&(X=X.substring(5)),H=JSON.parse(X));break;case "XML":if(p=(p=V.responseXML)?JT9(p):null)H={},g.lr(p.getElementsByTagName("*"),function(d){H[d.tagName]=mZV(d)})}N&&vCy(H); return H}; vCy=function(p){if(g.Pv(p))for(var C in p)C==="html_content"||RX1(C,"_html")?p[C]=$e(p[C]):vCy(p[C])}; TxY=function(p,C,V){if(C&&C.status===204)return!0;switch(p){case "JSON":return!!V;case "XML":return Number(V&&V.return_code)===0;case "RAW":return!0;default:return!!V}}; JT9=function(p){return p?(p=("responseXML"in p?p.responseXML:p).getElementsByTagName("root"))&&p.length>0?p[0]:null:null}; mZV=function(p){var C="";g.lr(p.childNodes,function(V){C+=V.nodeValue}); return C}; Aw=function(p,C){var V=g.zh(C),N;return(new g.um(function(H,X){V.onSuccess=function(d){g.vd(d)?H(new FOY(d)):X(new b1("Request failed, status="+m1(d),"net.badstatus",d))}; V.onError=function(d){X(new b1("Unknown request error","net.unknown",d))}; V.onTimeout=function(d){X(new b1("Request timed out","net.timeout",d))}; N=g.qU(p,V)})).Rz(function(H){if(H instanceof q7){var X; (X=N)==null||X.abort()}return fJ(H)})}; g.oK=function(p,C,V,N){function H(a,E,l){return a.Rz(function(t){if(E<=0||m1(t.xhr)===403)return fJ(new b1("Request retried too many times","net.retryexhausted",t.xhr,t));t=Math.pow(2,V-E+1)*l;var c=d>0?Math.min(d,t):t;return X(l).then(function(){return H(Aw(p,C),E-1,c)})})} function X(a){return new g.um(function(E){setTimeout(E,a)})} var d=d===void 0?-1:d;return H(Aw(p,C),V-1,N)}; b1=function(p,C,V){c5.call(this,p+", errorCode="+C);this.errorCode=C;this.xhr=V;this.name="PromiseAjaxError"}; FOY=function(p){this.xhr=p}; kD=function(p){this.T=p===void 0?null:p;this.V=0;this.C=null}; xD=function(p){var C=new kD;p=p===void 0?null:p;C.V=2;C.C=p===void 0?null:p;return C}; YD=function(p){var C=new kD;p=p===void 0?null:p;C.V=1;C.C=p===void 0?null:p;return C}; g.nO=function(p,C,V,N,H){zQ||RK.set(""+p,C,{kx:V,path:"/",domain:N===void 0?"youtube.com":N,secure:H===void 0?!1:H})}; g.ee=function(p,C){if(!zQ)return RK.get(""+p,C)}; g.Pd=function(p,C,V){zQ||RK.remove(""+p,C===void 0?"/":C,V===void 0?"youtube.com":V)}; SHs=function(){if(g.Zr("embeds_web_enable_cookie_detection_fix")){if(!g.xH.navigator.cookieEnabled)return!1}else if(!RK.isEnabled())return!1;if(!RK.isEmpty())return!0;g.Zr("embeds_web_enable_cookie_detection_fix")?RK.set("TESTCOOKIESENABLED","1",{kx:60,cia:"none",secure:!0}):RK.set("TESTCOOKIESENABLED","1",{kx:60});if(RK.get("TESTCOOKIESENABLED")!=="1")return!1;RK.remove("TESTCOOKIESENABLED");return!0}; g.n=function(p,C){if(p)return p[C.name]}; wm=function(p){var C=g.pO("INNERTUBE_HOST_OVERRIDE");C&&(p=String(C)+String(gA(p)));return p}; KOv=function(p){var C={};g.Zr("json_condensed_response")&&(C.prettyPrint="false");return p=Ek(p,C)}; $D=function(p,C){var V=V===void 0?{}:V;p={method:C===void 0?"POST":C,mode:l1(p)?"same-origin":"cors",credentials:l1(p)?"same-origin":"include"};C={};for(var N=g.F(Object.keys(V)),H=N.next();!H.done;H=N.next())H=H.value,V[H]&&(C[H]=V[H]);Object.keys(C).length>0&&(p.headers=C);return p}; LO=function(){var p=/Chrome\/(\d+)/.exec(g.f0());return p?parseFloat(p[1]):NaN}; Wd=function(){return g.gm("android")&&g.gm("chrome")&&!(g.gm("trident/")||g.gm("edge/"))&&!g.gm("cobalt")}; DZu=function(){return g.gm("armv7")||g.gm("aarch64")||g.gm("android")}; g.Qg=function(){return g.gm("cobalt")}; rm=function(){return g.gm("cobalt")&&g.gm("appletv")}; Bd=function(){return g.gm("(ps3; leanback shell)")||g.gm("ps3")&&g.Qg()}; uUs=function(){return g.gm("(ps4; leanback shell)")||g.gm("ps4")&&g.Qg()}; g.Zoe=function(){return g.Qg()&&(g.gm("ps4 vr")||g.gm("ps4 pro vr"))}; GQ=function(){var p=/WebKit\/([0-9]+)/.exec(g.f0());return!!(p&&parseInt(p[1],10)>=600)}; pK=function(){var p=/WebKit\/([0-9]+)/.exec(g.f0());return!!(p&&parseInt(p[1],10)>=602)}; UZu=function(){return g.gm("iemobile")||g.gm("windows phone")&&g.gm("edge")}; Vc=function(){return(CK||jz)&&g.gm("applewebkit")&&!g.gm("version")&&(!g.gm("safari")||g.gm("gsa/"))}; Hw=function(){return g.N5&&g.gm("version/")}; XW=function(){return g.gm("smart-tv")&&g.gm("samsung")}; g.gm=function(p){var C=g.f0();return C?C.toLowerCase().indexOf(p)>=0:!1}; d8=function(){return $1u()||Vc()||Hw()?!0:g.pO("EOM_VISITOR_DATA")?!1:!0}; iO=function(p,C){return C===void 0||C===null?p:C==="1"||C===!0||C===1||C==="True"?!0:!1}; hm=function(p,C,V){for(var N in V)if(V[N]==C)return V[N];return p}; sB=function(p,C){return C===void 0||C===null?p:Number(C)}; a_=function(p,C){return C===void 0||C===null?p:C.toString()}; EB=function(p,C){if(C){if(p==="fullwidth")return Infinity;if(p==="fullheight")return 0}return p&&(C=p.match(fAY))&&(p=Number(C[2]),C=Number(C[1]),!isNaN(p)&&!isNaN(C)&&p>0)?C/p:NaN}; lO=function(p){var C=p.docid||p.video_id||p.videoId||p.id;if(C)return C;C=p.raw_player_response;C||(p=p.player_response)&&(C=JSON.parse(p));return C&&C.videoDetails&&C.videoDetails.videoId||null}; Oou=function(p){return tm(p,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.cw=function(p){return p==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||p==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; tm=function(p,C){C=(C===void 0?0:C)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(C="EMBEDDED_PLAYER_MODE_PFL");var V=p.raw_embedded_player_response;if(!V&&(p=p.embedded_player_response))try{V=JSON.parse(p)}catch(N){return C}return V?hm(C,V.embeddedPlayerMode,yTH):C}; M5=function(p){c5.call(this,p.message||p.description||p.name);this.isMissing=p instanceof TW;this.isTimeout=p instanceof b1&&p.errorCode=="net.timeout";this.isCanceled=p instanceof q7}; TW=function(){c5.call(this,"Biscotti ID is missing from server")}; qHj=function(){if(g.Zr("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!d8())return Error("User has not consented - not fetching biscotti id.");var p=g.pO("PLAYER_VARS",{});if(g.x5(p,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Oou(p))return Error("Biscotti id fetching has been disabled for pfl.")}; oCH=function(){var p=qHj();if(p!==void 0)return fJ(p);Jm||(Jm=Aw("//googleads.g.doubleclick.net/pagead/id",IAe).then(boe).Rz(function(C){return ATv(2,C)})); return Jm}; boe=function(p){p=p.xhr.responseText;if(!v5(p,")]}'"))throw new TW;p=JSON.parse(p.substr(4));if((p.type||1)>1)throw new TW;p=p.id;goe(p);Jm=YD(p);k2S(18E5,2);return p}; ATv=function(p,C){C=new M5(C);goe("");Jm=xD(C);p>0&&k2S(12E4,p-1);throw C;}; k2S=function(p,C){g.F5(function(){Aw("//googleads.g.doubleclick.net/pagead/id",IAe).then(boe,function(V){return ATv(C,V)}).Rz(g.Fu)},p)}; xZL=function(){try{var p=g.zV("yt.ads.biscotti.getId_");return p?p():oCH()}catch(C){return fJ(C)}}; zzQ=function(p){p&&(p.dataset?p.dataset[YHs()]="true":qLS(p))}; RzS=function(p){return p?p.dataset?p.dataset[YHs()]:p.getAttribute("data-loaded"):null}; YHs=function(){return nCS.loaded||(nCS.loaded="loaded".replace(/\-([a-z])/g,function(p,C){return C.toUpperCase()}))}; ezS=function(){var p=document;if("visibilityState"in p)return p.visibilityState;var C=m_+"VisibilityState";if(C in p)return p[C]}; vw=function(p,C){var V;Yo(p,function(N){V=C[N];return!!V}); return V}; FW=function(p){if(p.requestFullscreen)p=p.requestFullscreen(void 0);else if(p.webkitRequestFullscreen)p=p.webkitRequestFullscreen();else if(p.mozRequestFullScreen)p=p.mozRequestFullScreen();else if(p.msRequestFullscreen)p=p.msRequestFullscreen();else if(p.webkitEnterFullscreen)p=p.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return p instanceof Promise?p:Promise.resolve()}; D3=function(p){var C;g.Sz()?KK()==p&&(C=document):C=p;return C&&(p=vw(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],C))?(C=p.call(C),C instanceof Promise?C:Promise.resolve()):Promise.resolve()}; PfH=function(p){return g.L0(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(C){return"on"+C.toLowerCase()in p})}; wpj=function(){var p=document;return g.L0(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(C){return"on"+C.toLowerCase()in p})}; g.Sz=function(){return!!vw(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; KK=function(p){p=p===void 0?!1:p;var C=vw(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(p)for(;C&&C.shadowRoot;)C=C.shadowRoot.fullscreenElement;return C?C:null}; uO=function(p){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(p=p||window.event){this.event=p;for(var C in p)C in $ZX||(this[C]=p[C]);this.scale=p.scale;this.rotation=p.rotation;var V=p.target||p.srcElement;V&&V.nodeType==3&&(V=V.parentNode);this.target=V;var N=p.relatedTarget; if(N)try{N=N.nodeName?N:null}catch(H){N=null}else this.type=="mouseover"?N=p.fromElement:this.type=="mouseout"&&(N=p.toElement);this.relatedTarget=N;this.clientX=p.clientX!=void 0?p.clientX:p.pageX;this.clientY=p.clientY!=void 0?p.clientY:p.pageY;this.keyCode=p.keyCode?p.keyCode:p.which;this.charCode=p.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=p.altKey;this.ctrlKey=p.ctrlKey;this.shiftKey=p.shiftKey;this.metaKey=p.metaKey;this.T=p.pageX;this.C=p.pageY}}catch(H){}}; LOa=function(p){if(document.body&&document.documentElement){var C=document.body.scrollTop+document.documentElement.scrollTop;p.T=p.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);p.C=p.clientY+C}}; gCQ=function(p,C,V,N){N=N===void 0?{}:N;p.addEventListener&&(C!="mouseenter"||"onmouseenter"in document?C!="mouseleave"||"onmouseenter"in document?C=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(C="MozMousePixelScroll"):C="mouseout":C="mouseover");return oa(Z3,function(H){var X=typeof H[4]==="boolean"&&H[4]==!!N,d=g.Pv(H[4])&&g.Pv(N)&&g.Y5(H[4],N);return!!H.length&&H[0]==p&&H[1]==C&&H[2]==V&&(X||d)})}; g.UB=function(p,C,V,N){N=N===void 0?{}:N;if(!p||!p.addEventListener&&!p.attachEvent)return"";var H=gCQ(p,C,V,N);if(H)return H;H=++WOX.count+"";var X=!(C!="mouseenter"&&C!="mouseleave"||!p.addEventListener||"onmouseenter"in document);var d=X?function(a){a=new uO(a);if(!TO(a.relatedTarget,function(E){return E==p},!0))return a.currentTarget=p,a.type=C,V.call(p,a)}:function(a){a=new uO(a); a.currentTarget=p;return V.call(p,a)}; d=g.NU(d);p.addEventListener?(C=="mouseenter"&&X?C="mouseover":C=="mouseleave"&&X?C="mouseout":C=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(C="MozMousePixelScroll"),Q1S()||typeof N==="boolean"?p.addEventListener(C,d,N):p.addEventListener(C,d,!!N.capture)):p.attachEvent("on"+C,d);Z3[H]=[p,C,V,d,N];return H}; Bxa=function(p){return rTL(p,function(C){return g.aL(C,"ytp-ad-has-logging-urls")})}; rTL=function(p,C){var V=document.body||document;return g.UB(V,"click",function(N){var H=TO(N.target,function(X){return X===V||C(X)},!0); H&&H!==V&&!H.disabled&&(N.currentTarget=H,p.call(H,N))})}; g.fK=function(p){p&&(typeof p=="string"&&(p=[p]),g.lr(p,function(C){if(C in Z3){var V=Z3[C],N=V[0],H=V[1],X=V[3];V=V[4];N.removeEventListener?Q1S()||typeof V==="boolean"?N.removeEventListener(H,X,V):N.removeEventListener(H,X,!!V.capture):N.detachEvent&&N.detachEvent("on"+H,X);delete Z3[C]}}))}; OB=function(p){for(var C in Z3)Z3[C][0]==p&&g.fK(C)}; yc=function(p){p=p||window.event;var C;p.composedPath&&typeof p.composedPath==="function"?C=p.composedPath():C=p.path;C&&C.length?p=C[0]:(p=p||window.event,p=p.target||p.srcElement,p.nodeType==3&&(p=p.parentNode));return p}; q5=function(p){this.D=p;this.T=null;this.S=0;this.Y=null;this.W=0;this.C=[];for(p=0;p<4;p++)this.C.push(0);this.V=0;this.b_=g.UB(window,"mousemove",(0,g.LY)(this.Z,this));this.J=g.Se((0,g.LY)(this.a$,this),25)}; I_=function(p){g.Y.call(this);this.D=[];this.Wc=p||this}; bO=function(p,C,V,N){for(var H=0;H0?V:0;V=N?Date.now()+N*1E3:0;if((N=N?(0,g.kl)():xl())&&window.JSON){typeof C!=="string"&&(C=JSON.stringify(C,void 0));try{N.set(p,C,V)}catch(H){N.remove(p)}}}; g.zW=function(p){var C=xl(),V=(0,g.kl)();if(!C&&!V||!window.JSON)return null;try{var N=C.get(p)}catch(H){}if(typeof N!=="string")try{N=V.get(p)}catch(H){}if(typeof N!=="string")return null;try{N=JSON.parse(N,void 0)}catch(H){}return N}; CuS=function(){var p=(0,g.kl)();if(p&&(p=p.C("yt-player-quality")))return p.creation}; g.R_=function(p){try{var C=xl(),V=(0,g.kl)();C&&C.remove(p);V&&V.remove(p)}catch(N){}}; g.nK=function(){return g.zW("yt-remote-session-screen-id")}; jqv=function(p){var C=this;this.C=void 0;this.T=!1;p.addEventListener("beforeinstallprompt",function(V){V.preventDefault();C.C=V}); p.addEventListener("appinstalled",function(){C.T=!0},{once:!0})}; ez=function(){if(!g.xH.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.xH.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.xH.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.xH.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.xH.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(p){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Pw=function(){this.z8=!0}; V0a=function(){Pw.instance||(Pw.instance=new Pw);return Pw.instance}; NE1=function(p){switch(p){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}}; HXH=function(){this.T=g.pO("ALT_PREF_COOKIE_NAME","PREF");this.C=g.pO("ALT_PREF_COOKIE_DOMAIN","youtube.com");var p=g.ee(this.T);p&&this.parse(p)}; g.$l=function(){w8||(w8=new HXH);return w8}; g.LK=function(p,C){return!!((XoV("f"+(Math.floor(C/31)+1))||0)&1<0;)switch(p=cW.shift(),p.type){case "ERROR":ap.SH(p.payload);break;case "EVENT":ap.logEvent(p.eventType,p.payload)}}; Mp=function(p){T4||(ap?ap.SH(p):(cW.push({type:"ERROR",payload:p}),cW.length>10&&cW.shift()))}; J1=function(p,C){T4||(ap?ap.logEvent(p,C):(cW.push({type:"EVENT",eventType:p,payload:C}),cW.length>10&&cW.shift()))}; mW=function(p){if(p.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; vW=function(p){return p.substr(0,p.indexOf(":"))||p}; g.F2=function(p,C,V,N,H){C=C===void 0?{}:C;V=V===void 0?t0y[p]:V;N=N===void 0?cCy[p]:N;H=H===void 0?TEH[p]:H;g.Bw.call(this,V,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:p},C));this.type=p;this.message=V;this.level=N;this.T=H;Object.setPrototypeOf(this,g.F2.prototype)}; S_=function(p,C){g.F2.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:C,foundObjectStores:p},t0y.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,S_.prototype)}; K3=function(p,C){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.index=p;this.objectStore=C;Object.setPrototypeOf(this,K3.prototype)}; uN=function(p,C,V,N){C=vW(C);var H=p instanceof Error?p:Error("Unexpected error: "+p);if(H instanceof g.F2)return H;p={objectStoreNames:V,dbName:C,dbVersion:N};if(H.name==="QuotaExceededError")return new g.F2("QUOTA_EXCEEDED",p);if(g.D1&&H.name==="UnknownError")return new g.F2("QUOTA_MAYBE_EXCEEDED",p);if(H instanceof K3)return new g.F2("MISSING_INDEX",Object.assign({},p,{objectStore:H.objectStore,index:H.index}));if(H.name==="InvalidStateError"&&M0j.some(function(X){return H.message.includes(X)}))return new g.F2("EXECUTE_TRANSACTION_ON_CLOSED_DB", p); if(H.name==="AbortError")return new g.F2("UNKNOWN_ABORT",p,H.message);H.args=[Object.assign({},p,{name:"IdbError",z5:H.name})];H.level="WARNING";return H}; g.Z1=function(p,C,V){var N=s2();return new g.F2("IDB_NOT_SUPPORTED",{context:{caller:p,publicName:C,version:V,hasSucceededOnce:N==null?void 0:N.hasSucceededOnce}})}; JCe=function(p){if(!p)throw Error();throw p;}; mPH=function(p){return p}; U2=function(p){this.T=p}; g.f3=function(p){function C(H){if(N.state.status==="PENDING"){N.state={status:"REJECTED",reason:H};H=g.F(N.C);for(var X=H.next();!X.done;X=H.next())X=X.value,X()}} function V(H){if(N.state.status==="PENDING"){N.state={status:"FULFILLED",value:H};H=g.F(N.T);for(var X=H.next();!X.done;X=H.next())X=X.value,X()}} var N=this;this.state={status:"PENDING"};this.T=[];this.C=[];p=p.T;try{p(V,C)}catch(H){C(H)}}; vIV=function(p,C,V,N,H){try{if(p.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var X=V(p.state.value);X instanceof g.f3?O2(p,C,X,N,H):N(X)}catch(d){H(d)}}; FVa=function(p,C,V,N,H){try{if(p.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var X=V(p.state.reason);X instanceof g.f3?O2(p,C,X,N,H):N(X)}catch(d){H(d)}}; O2=function(p,C,V,N,H){C===V?H(new TypeError("Circular promise chain detected.")):V.then(function(X){X instanceof g.f3?O2(p,C,X,N,H):N(X)},function(X){H(X)})}; SMy=function(p,C,V){function N(){V(p.error);X()} function H(){C(p.result);X()} function X(){try{p.removeEventListener("success",H),p.removeEventListener("error",N)}catch(d){}} p.addEventListener("success",H);p.addEventListener("error",N)}; KVL=function(p){return new Promise(function(C,V){SMy(p,C,V)})}; yl=function(p){return new g.f3(new U2(function(C,V){SMy(p,C,V)}))}; qp=function(p,C){return new g.f3(new U2(function(V,N){function H(){var X=p?C(p):null;X?X.then(function(d){p=d;H()},N):V()} H()}))}; DPj=function(p,C){this.request=p;this.cursor=C}; ulu=function(p){return yl(p).then(function(C){return C?new DPj(p,C):null})}; g.ZXe=function(p){p.cursor.continue(void 0);return ulu(p.request)}; UPv=function(p,C){this.T=p;this.options=C;this.transactionCount=0;this.V=Math.round((0,g.Ip)());this.C=!1}; g.A1=function(p,C,V){p=p.T.createObjectStore(C,V);return new bN(p)}; op=function(p,C){p.T.objectStoreNames.contains(C)&&p.T.deleteObjectStore(C)}; g.Yt=function(p,C,V){return g.kt(p,[C],{mode:"readwrite",L4:!0},function(N){return g.xt(N.objectStore(C),V)})}; g.kt=function(p,C,V,N){var H,X,d,a,E,l,t,c,T,M,J,S;return g.I(function(D){switch(D.C){case 1:var Z={mode:"readonly",L4:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof V==="string"?Z.mode=V:Object.assign(Z,V);H=Z;p.transactionCount++;X=H.L4?3:1;d=0;case 2:if(a){D.EY(4);break}d++;E=Math.round((0,g.Ip)());g.vv(D,5);l=p.T.transaction(C,H.mode);Z=new z4(l);Z=fKs(Z,N);return g.y(D,Z,7);case 7:return t=D.T,c=Math.round((0,g.Ip)()),OXH(p,E,c,d,void 0,C.join(),H),D.return(t);case 5:T=g.Sa(D);M=Math.round((0,g.Ip)()); J=uN(T,p.T.name,C.join(),p.T.version);if((S=J instanceof g.F2&&!J.T)||d>=X)OXH(p,E,M,d,J,C.join(),H),a=J;D.EY(2);break;case 4:return D.return(Promise.reject(a))}})}; OXH=function(p,C,V,N,H,X,d){C=V-C;H?(H instanceof g.F2&&(H.type==="QUOTA_EXCEEDED"||H.type==="QUOTA_MAYBE_EXCEEDED")&&J1("QUOTA_EXCEEDED",{dbName:vW(p.T.name),objectStoreNames:X,transactionCount:p.transactionCount,transactionMode:d.mode}),H instanceof g.F2&&H.type==="UNKNOWN_ABORT"&&(V-=p.V,V<0&&V>=2147483648&&(V=0),J1("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:X,transactionDuration:C,transactionCount:p.transactionCount,dbDuration:V}),p.C=!0),yCe(p,!1,N,X,C,d.tag),Mp(H)):yCe(p,!0,N,X,C, d.tag)}; yCe=function(p,C,V,N,H,X){J1("TRANSACTION_ENDED",{objectStoreNames:N,connectionHasUnknownAbortedTransaction:p.C,duration:H,isSuccessful:C,tryCount:V,tag:X===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":X})}; bN=function(p){this.T=p}; g.Rp=function(p,C,V){p.T.createIndex(C,V,{unique:!1})}; qMX=function(p,C){return g.n3(p,{query:C},function(V){return V.delete().then(function(){return g.e_(V)})}).then(function(){})}; IKH=function(p,C,V){var N=[];return g.n3(p,{query:C},function(H){if(!(V!==void 0&&N.length>=V))return N.push(H.getValue()),g.e_(H)}).then(function(){return N})}; ACa=function(p){return"getAllKeys"in IDBObjectStore.prototype?yl(p.T.getAllKeys(void 0,void 0)):bXY(p)}; bXY=function(p){var C=[];return g.oI9(p,{query:void 0},function(V){C.push(V.cursor.primaryKey);return g.ZXe(V)}).then(function(){return C})}; g.xt=function(p,C,V){return yl(p.T.put(C,V))}; g.n3=function(p,C,V){p=p.T.openCursor(C.query,C.direction);return PW(p).then(function(N){return qp(N,V)})}; g.oI9=function(p,C,V){var N=C.query;C=C.direction;p="openKeyCursor"in IDBObjectStore.prototype?p.T.openKeyCursor(N,C):p.T.openCursor(N,C);return ulu(p).then(function(H){return qp(H,V)})}; z4=function(p){var C=this;this.T=p;this.V=new Map;this.C=!1;this.done=new Promise(function(V,N){C.T.addEventListener("complete",function(){V()}); C.T.addEventListener("error",function(H){H.currentTarget===H.target&&N(C.T.error)}); C.T.addEventListener("abort",function(){var H=C.T.error;if(H)N(H);else if(!C.C){H=g.F2;for(var X=C.T.objectStoreNames,d=[],a=0;a=V))return N.push(H.getValue()),g.e_(H)}).then(function(){return N})}; g.wq=function(p,C,V){p=p.T.openCursor(C.query===void 0?null:C.query,C.direction===void 0?"next":C.direction);return PW(p).then(function(N){return qp(N,V)})}; $t=function(p,C){this.request=p;this.cursor=C}; PW=function(p){return yl(p).then(function(C){return C?new $t(p,C):null})}; g.e_=function(p){p.cursor.continue(void 0);return PW(p.request)}; YM9=function(p,C,V){return new Promise(function(N,H){function X(){T||(T=new UPv(d.result,{closed:c}));return T} var d=C!==void 0?self.indexedDB.open(p,C):self.indexedDB.open(p);var a=V.blocked,E=V.blocking,l=V.olY,t=V.upgrade,c=V.closed,T;d.addEventListener("upgradeneeded",function(M){try{if(M.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(d.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");M.dataLoss&&M.dataLoss!=="none"&&J1("IDB_DATA_CORRUPTED",{reason:M.dataLossMessage||"unknown reason",dbName:vW(p)});var J=X(),S=new z4(d.transaction); t&&t(J,function(D){return M.oldVersion=D},S); S.done.catch(function(D){H(D)})}catch(D){H(D)}}); d.addEventListener("success",function(){var M=d.result;E&&M.addEventListener("versionchange",function(){E(X())}); M.addEventListener("close",function(){J1("IDB_UNEXPECTEDLY_CLOSED",{dbName:vW(p),dbVersion:M.version});l&&l()}); N(X())}); d.addEventListener("error",function(){H(d.error)}); a&&d.addEventListener("blocked",function(){a()})})}; zFQ=function(p,C,V){V=V===void 0?{}:V;return YM9(p,C,V)}; L3=function(p,C){C=C===void 0?{}:C;var V,N,H,X;return g.I(function(d){if(d.C==1)return g.vv(d,2),V=self.indexedDB.deleteDatabase(p),N=C,(H=N.blocked)&&V.addEventListener("blocked",function(){H()}),g.y(d,KVL(V),4); if(d.C!=2)return g.Fe(d,0);X=g.Sa(d);throw uN(X,p,"",-1);})}; gq=function(p,C){this.name=p;this.options=C;this.V=!0;this.W=this.S=0}; RFX=function(p,C){return new g.F2("INCOMPATIBLE_DB_VERSION",{dbName:p.name,oldVersion:p.options.version,newVersion:C})}; g.WW=function(p,C){if(!C)throw g.Z1("openWithToken",vW(p.name));return p.open()}; nIa=function(p,C){var V;return g.I(function(N){if(N.C==1)return g.y(N,g.WW(Ql,C),2);V=N.T;return N.return(g.kt(V,["databases"],{L4:!0,mode:"readwrite"},function(H){var X=H.objectStore("databases");return X.get(p.actualName).then(function(d){if(d?p.actualName!==d.actualName||p.publicName!==d.publicName||p.userIdentifier!==d.userIdentifier:1)return g.xt(X,p).then(function(){})})}))})}; rq=function(p,C){var V;return g.I(function(N){if(N.C==1)return p?g.y(N,g.WW(Ql,C),2):N.return();V=N.T;return N.return(V.delete("databases",p))})}; eFa=function(p,C){var V,N;return g.I(function(H){return H.C==1?(V=[],g.y(H,g.WW(Ql,C),2)):H.C!=3?(N=H.T,g.y(H,g.kt(N,["databases"],{L4:!0,mode:"readonly"},function(X){V.length=0;return g.n3(X.objectStore("databases"),{},function(d){p(d.getValue())&&V.push(d.getValue());return g.e_(d)})}),3)):H.return(V)})}; Puu=function(p,C){return eFa(function(V){return V.publicName===p&&V.userIdentifier!==void 0},C)}; wo1=function(){var p,C,V,N;return g.I(function(H){switch(H.C){case 1:p=s2();if((C=p)==null?0:C.hasSucceededOnce)return H.return(!0);if(BW&&GQ()&&!pK()||g.G4)return H.return(!1);try{if(V=self,!(V.indexedDB&&V.IDBIndex&&V.IDBKeyRange&&V.IDBObjectStore))return H.return(!1)}catch(X){return H.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return H.return(!1);g.vv(H,2);N={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.y(H,nIa(N,p5),4);case 4:return g.y(H,rq("yt-idb-test-do-not-use",p5),5);case 5:return H.return(!0);case 2:return g.Sa(H),H.return(!1)}})}; $P1=function(){if(C5!==void 0)return C5;T4=!0;return C5=wo1().then(function(p){T4=!1;var C;if((C=h1())!=null&&C.T){var V;C={hasSucceededOnce:((V=s2())==null?void 0:V.hasSucceededOnce)||p};var N;(N=h1())==null||N.set("LAST_RESULT_ENTRY_KEY",C,2592E3,!0)}return p})}; jV=function(){return g.zV("ytglobal.idbToken_")||void 0}; g.Vt=function(){var p=jV();return p?Promise.resolve(p):$P1().then(function(C){(C=C?p5:void 0)&&g.YH("ytglobal.idbToken_",C);return C})}; LVe=function(p){if(!g.p3())throw p=new g.F2("AUTH_INVALID",{dbName:p}),Mp(p),p;var C=g.GW();return{actualName:p+":"+C,publicName:p,userIdentifier:C}}; gIH=function(p,C,V,N){var H,X,d,a,E,l;return g.I(function(t){switch(t.C){case 1:return X=(H=Error().stack)!=null?H:"",g.y(t,g.Vt(),2);case 2:d=t.T;if(!d)throw a=g.Z1("openDbImpl",p,C),g.Zr("ytidb_async_stack_killswitch")||(a.stack=a.stack+"\n"+X.substring(X.indexOf("\n")+1)),Mp(a),a;mW(p);E=V?{actualName:p,publicName:p,userIdentifier:void 0}:LVe(p);g.vv(t,3);return g.y(t,nIa(E,d),5);case 5:return g.y(t,zFQ(E.actualName,C,N),6);case 6:return t.return(t.T);case 3:return l=g.Sa(t),g.vv(t,7),g.y(t,rq(E.actualName, d),9);case 9:g.Fe(t,8);break;case 7:g.Sa(t);case 8:throw l;}})}; WV1=function(p,C,V){V=V===void 0?{}:V;return gIH(p,C,!1,V)}; QqX=function(p,C,V){V=V===void 0?{}:V;return gIH(p,C,!0,V)}; rCy=function(p,C){C=C===void 0?{}:C;var V,N;return g.I(function(H){if(H.C==1)return g.y(H,g.Vt(),2);if(H.C!=3){V=H.T;if(!V)return H.return();mW(p);N=LVe(p);return g.y(H,L3(N.actualName,C),3)}return g.y(H,rq(N.actualName,V),0)})}; BEV=function(p,C,V){p=p.map(function(N){return g.I(function(H){return H.C==1?g.y(H,L3(N.actualName,C),2):g.y(H,rq(N.actualName,V),0)})}); return Promise.all(p).then(function(){})}; GoX=function(p){var C=C===void 0?{}:C;var V,N;return g.I(function(H){if(H.C==1)return g.y(H,g.Vt(),2);if(H.C!=3){V=H.T;if(!V)return H.return();mW(p);return g.y(H,Puu(p,V),3)}N=H.T;return g.y(H,BEV(N,C,V),0)})}; pFQ=function(p,C){C=C===void 0?{}:C;var V;return g.I(function(N){if(N.C==1)return g.y(N,g.Vt(),2);if(N.C!=3){V=N.T;if(!V)return N.return();mW(p);return g.y(N,L3(p,C),3)}return g.y(N,rq(p,V),0)})}; Ne=function(p,C){gq.call(this,p,C);this.options=C;mW(p)}; CIv=function(p,C){var V;return function(){V||(V=new Ne(p,C));return V}}; g.HC=function(p,C){return CIv(p,C)}; XD=function(p){return g.WW(jLL(),p)}; VJs=function(p,C,V,N){var H,X,d;return g.I(function(a){switch(a.C){case 1:return H={config:p,hashData:C,timestamp:N!==void 0?N:(0,g.Ip)()},g.y(a,XD(V),2);case 2:return X=a.T,g.y(a,X.clear("hotConfigStore"),3);case 3:return g.y(a,g.Yt(X,"hotConfigStore",H),4);case 4:return d=a.T,a.return(d)}})}; N0y=function(p,C,V,N,H){var X,d,a;return g.I(function(E){switch(E.C){case 1:return X={config:p,hashData:C,configData:V,timestamp:H!==void 0?H:(0,g.Ip)()},g.y(E,XD(N),2);case 2:return d=E.T,g.y(E,d.clear("coldConfigStore"),3);case 3:return g.y(E,g.Yt(d,"coldConfigStore",X),4);case 4:return a=E.T,E.return(a)}})}; Hgv=function(p){var C,V;return g.I(function(N){return N.C==1?g.y(N,XD(p),2):N.C!=3?(C=N.T,V=void 0,g.y(N,g.kt(C,["coldConfigStore"],{mode:"readwrite",L4:!0},function(H){return g.wq(H.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(X){V=X.getValue()})}),3)):N.return(V)})}; XFY=function(p){var C,V;return g.I(function(N){return N.C==1?g.y(N,XD(p),2):N.C!=3?(C=N.T,V=void 0,g.y(N,g.kt(C,["hotConfigStore"],{mode:"readwrite",L4:!0},function(H){return g.wq(H.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(X){V=X.getValue()})}),3)):N.return(V)})}; d8Q=function(){return g.I(function(p){return g.y(p,GoX("ytGcfConfig"),0)})}; dy=function(){g.Y.call(this);this.C=[];this.T=[];var p=g.zV("yt.gcf.config.hotUpdateCallbacks");p?(this.C=[].concat(g.K(p)),this.T=p):(this.T=[],g.YH("yt.gcf.config.hotUpdateCallbacks",this.T))}; lR=function(){var p=this;this.W=!1;this.V=this.S=0;this.Y=new dy;this.Sr={eNS:function(){p.W=!0}, Hea:function(){return p.T}, pSx:function(C){iR(p,C)}, Tf:function(C){p.Tf(C)}, LhS:function(C){hN(p,C)}, YF:function(){return p.coldHashData}, g0:function(){return p.hotHashData}, jck:function(){return p.C}, l$a:function(){return sX()}, Oeo:function(){return ax()}, gQY:function(){return g.zV("yt.gcf.config.coldHashData")}, J8n:function(){return g.zV("yt.gcf.config.hotHashData")}, XS$:function(){igY(p)}, uUo:function(){p.Tf(void 0);EX(p);delete lR.instance}, h2x:function(C){p.V=C}, Bja:function(){return p.V}}}; hoV=function(){if(!lR.instance){var p=new lR;lR.instance=p}return lR.instance}; EFV=function(p){var C;g.I(function(V){if(V.C==1)return g.Zr("start_client_gcf")||g.Zr("delete_gcf_config_db")?g.Zr("start_client_gcf")?g.y(V,g.Vt(),3):V.EY(2):V.return();V.C!=2&&((C=V.T)&&g.p3()&&!g.Zr("delete_gcf_config_db")?(p.W=!0,igY(p)):(sLV(p),aJS(p)));return g.Zr("delete_gcf_config_db")?g.y(V,d8Q(),0):V.EY(0)})}; tN=function(){var p;return(p=ax())!=null?p:g.pO("RAW_HOT_CONFIG_GROUP")}; lJH=function(p){var C,V,N,H,X,d;return g.I(function(a){switch(a.C){case 1:if(p.C)return a.return(ax());if(!p.W)return C=g.Z1("getHotConfig IDB not initialized"),Hd(C),a.return(Promise.reject(C));V=jV();N=g.pO("TIME_CREATED_MS");if(!V){H=g.Z1("getHotConfig token error");Hd(H);a.EY(2);break}return g.y(a,XFY(V),3);case 3:if((X=a.T)&&X.timestamp>N)return iR(p,X.config),p.Tf(X.hashData),a.return(ax());case 2:aJS(p);if(!(V&&p.C&&p.hotHashData)){a.EY(4);break}return g.y(a,VJs(p.C,p.hotHashData,V,N),4);case 4:return p.C? a.return(ax()):(d=new g.Bw("Config not available in ytConfig"),Hd(d),a.return(Promise.reject(d)))}})}; ckL=function(p){var C,V,N,H,X,d;return g.I(function(a){switch(a.C){case 1:if(p.T)return a.return(sX());if(!p.W)return C=g.Z1("getColdConfig IDB not initialized"),Hd(C),a.return(Promise.reject(C));V=jV();N=g.pO("TIME_CREATED_MS");if(!V){H=g.Z1("getColdConfig");Hd(H);a.EY(2);break}return g.y(a,Hgv(V),3);case 3:if((X=a.T)&&X.timestamp>N)return hN(p,X.config),tJy(p,X.configData),EX(p,X.hashData),a.return(sX());case 2:sLV(p);if(!(V&&p.T&&p.coldHashData&&p.configData)){a.EY(4);break}return g.y(a,N0y(p.T, p.coldHashData,p.configData,V,N),4);case 4:return p.T?a.return(sX()):(d=new g.Bw("Config not available in ytConfig"),Hd(d),a.return(Promise.reject(d)))}})}; igY=function(p){if(!p.C||!p.T){if(!jV()){var C=g.Z1("scheduleGetConfigs");Hd(C)}p.S||(p.S=g.rE.Lx(function(){return g.I(function(V){switch(V.C){case 1:return g.vv(V,2),g.y(V,lJH(p),4);case 4:g.Fe(V,3);break;case 2:g.Sa(V);case 3:return g.vv(V,5),g.y(V,ckL(p),7);case 7:g.Fe(V,6);break;case 5:g.Sa(V);case 6:p.S&&(p.S=0),g.JQ(V)}})},100))}}; T0a=function(p,C,V){var N,H,X;return g.I(function(d){switch(d.C){case 1:if(!g.Zr("start_client_gcf")){d.EY(0);break}V&&iR(p,V);p.Tf(C);N=jV();if(!N){d.EY(3);break}if(V){d.EY(4);break}return g.y(d,XFY(N),5);case 5:H=d.T,V=(X=H)==null?void 0:X.config;case 4:return g.y(d,VJs(V,C,N),3);case 3:if(V)for(var a=V,E=g.F(p.Y.T),l=E.next();!l.done;l=E.next())l=l.value,l(a);g.JQ(d)}})}; MJs=function(p,C,V){var N,H,X,d;return g.I(function(a){if(a.C==1){if(!g.Zr("start_client_gcf"))return a.EY(0);EX(p,C);return(N=jV())?V?a.EY(4):g.y(a,Hgv(N),5):a.EY(0)}a.C!=4&&(H=a.T,V=(X=H)==null?void 0:X.config);if(!V)return a.EY(0);d=V.configData;return g.y(a,N0y(V,C,d,N),0)})}; Jku=function(){var p=hoV(),C=(0,g.Ip)()-p.V;if(!(p.V!==0&&C0&&(C.request={internalExperimentFlags:V});vFX(p,void 0,C);Fl9(void 0,C);Sd1(void 0,C);KlQ(p,void 0,C);D8H(void 0,C);g.Zr("start_client_gcf")&&uV1(void 0,C);g.pO("DELEGATED_SESSION_ID")&& !g.Zr("pageid_as_header_web")&&(C.user={onBehalfOfUser:g.pO("DELEGATED_SESSION_ID")});!g.Zr("fill_delegate_context_in_gel_killswitch")&&(p=g.pO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(C.user=Object.assign({},C.user,{serializedDelegationContext:p}));p=g.pO("INNERTUBE_CONTEXT");var N;if(g.Zr("enable_persistent_device_token")&&(p==null?0:(N=p.client)==null?0:N.rolloutToken)){var H;C.client.rolloutToken=p==null?void 0:(H=p.client)==null?void 0:H.rolloutToken}N=Object;H=N.assign;p=C.client; V={};for(var X=g.F(Object.entries(i1(g.pO("DEVICE","")))),d=X.next();!d.done;d=X.next()){var a=g.F(d.value);d=a.next().value;a=a.next().value;d==="cbrand"?V.deviceMake=a:d==="cmodel"?V.deviceModel=a:d==="cbr"?V.browserName=a:d==="cbrver"?V.browserVersion=a:d==="cos"?V.osName=a:d==="cosver"?V.osVersion=a:d==="cplatform"&&(V.platform=a)}C.client=H.call(N,p,V);return C}; vFX=function(p,C,V){p=p.aL;if(p==="WEB"||p==="MWEB"||p===1||p===2)if(C){V=iB(C,Ap,96)||new Ap;var N=ez();N=Object.keys(ZgX).indexOf(N);N=N===-1?null:N;N!==null&&Fa(V,3,N);hP(C,Ap,96,V)}else V&&(V.client.mainAppWebInfo=(N=V.client.mainAppWebInfo)!=null?N:{},V.client.mainAppWebInfo.webDisplayMode=ez())}; Fl9=function(p,C){var V=g.zV("yt.embedded_player.embed_url");V&&(p?(C=iB(p,zH,7)||new zH,mM(C,4,V),hP(p,zH,7,C)):C&&(C.thirdParty={embedUrl:V}))}; Sd1=function(p,C){var V;if(g.Zr("web_log_memory_total_kbytes")&&((V=g.xH.navigator)==null?0:V.deviceMemory)){var N;V=(N=g.xH.navigator)==null?void 0:N.deviceMemory;p?RO(p,95,cT(V*1E6)):C&&(C.client.memoryTotalKbytes=""+V*1E6)}}; KlQ=function(p,C,V){if(p.appInstallData)if(C){var N;V=(N=iB(C,ba,62))!=null?N:new ba;mM(V,6,p.appInstallData);hP(C,ba,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},V.client.configInfo.appInstallData=p.appInstallData)}; D8H=function(p,C){var V=hFL();V&&(p?Fa(p,61,U8v[V]):C&&(C.client.connectionType=V));g.Zr("web_log_effective_connection_type")&&(V=aKa())&&(p?Fa(p,94,fJa[V]):C&&(C.client.effectiveConnectionType=V))}; OgH=function(p,C,V){V=V===void 0?{}:V;var N={};g.pO("EOM_VISITOR_DATA")?N={"X-Goog-EOM-Visitor-Id":g.pO("EOM_VISITOR_DATA")}:N={"X-Goog-Visitor-Id":V.visitorData||g.pO("VISITOR_DATA","")};if(C&&C.includes("www.youtube-nocookie.com"))return N;C=V.yb||g.pO("AUTHORIZATION");C||(p?C="Bearer "+g.zV("gapi.auth.getToken")().access_token:(p=V0a().wg(Me),g.Zr("pageid_as_header_web")||delete p["X-Goog-PageId"],N=Object.assign({},N,p)));C&&(N.Authorization=C);return N}; uV1=function(p,C){var V=Jku();if(V){var N=V.coldConfigData,H=V.coldHashData;V=V.hotHashData;if(p){var X;C=(X=iB(p,ba,62))!=null?X:new ba;N=mM(C,1,N);mM(N,3,H).Tf(V);hP(p,ba,62,C)}else C&&(C.client.configInfo=C.client.configInfo||{},N&&(C.client.configInfo.coldConfigData=N),H&&(C.client.configInfo.coldHashData=H),V&&(C.client.configInfo.hotHashData=V))}}; uR=function(p,C){this.version=p;this.args=C}; OX=function(p,C){this.topic=p;this.T=C}; Ix=function(p,C){var V=qe();V&&V.publish.call(V,p.toString(),p,C)}; IJa=function(p){var C=yk1,V=qe();if(!V)return 0;var N=V.subscribe(C.toString(),function(H,X){var d=g.zV("ytPubsub2Pubsub2SkipSubKey");d&&d==N||(d=function(){if(bR[N])try{if(X&&C instanceof OX&&C!=H)try{var a=C.T,E=X;if(!E.args||!E.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!a.Bm){var l=new a;a.Bm=l.version}var t=a.Bm}catch(c){}if(!t||E.version!=t)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{X=Reflect.construct(a, g.p6(E.args))}catch(c){throw c.message="yt.pubsub2.Data.deserialize(): "+c.message,c;}}catch(c){throw c.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+C.toString()+": "+c.message,c;}p.call(window,X)}catch(c){g.Vg(c)}},qdu[C.toString()]?g.X2()?g.rE.Lx(d):g.F5(d,0):d())}); bR[N]=!0;AN[C.toString()]||(AN[C.toString()]=[]);AN[C.toString()].push(N);return N}; oFv=function(){var p=bgs,C=IJa(function(V){p.apply(void 0,arguments);AkX(C)}); return C}; AkX=function(p){var C=qe();C&&(typeof p==="number"&&(p=[p]),g.lr(p,function(V){C.unsubscribeByKey(V);delete bR[V]}))}; qe=function(){return g.zV("ytPubsub2Pubsub2Instance")}; ox=function(p,C,V){V=V===void 0?{sampleRate:.1}:V;Math.random()nFy||d=$89&&($p++,g.Zr("abandon_compression_after_N_slow_zips")?wy===g.Uk("compression_disable_point")&&$p>LlH&&(n5=!1):n5=!1);gFj(C);N.headers||(N.headers={});N.headers["Content-Encoding"]="gzip";N.postBody=p;N.postParams=void 0;H(V,N)}; WlY=function(p){var C=C===void 0?!1:C;var V=V===void 0?!1:V;var N=(0,g.Ip)(),H={startTime:N,ticks:{},infos:{}},X=C?g.zV("yt.logging.gzipForFetch",!1):!0;if(n5&&X){if(!p.body)return p;try{var d=V?p.body:typeof p.body==="string"?p.body:JSON.stringify(p.body);X=d;if(!V&&typeof d==="string"){var a=Roy(d);if(a!=null&&(a>nFy||a=$89)if($p++,g.Zr("abandon_compression_after_N_slow_zips")||g.Zr("abandon_compression_after_N_slow_zips_lr")){C=$p/wy;var l=LlH/g.Uk("compression_disable_point");wy>0&&wy%g.Uk("compression_disable_point")===0&&C>=l&&(n5=!1)}else n5=!1;gFj(H)}}p.headers=Object.assign({},{"Content-Encoding":"gzip"},p.headers||{});p.body=X;return p}catch(t){return Hd(t),p}}else return p}; Roy=function(p){try{return(new Blob(p.split(""))).size}catch(C){return Hd(C),null}}; gFj=function(p){g.Zr("gel_compression_csi_killswitch")||!g.Zr("log_gel_compression_latency")&&!g.Zr("log_gel_compression_latency_lr")||ox("gel_compression",p,{sampleRate:.1})}; gy=function(p){var C=this;this.Tu=this.T=!1;this.potentialEsfErrorCounter=this.C=0;this.handleError=function(){}; this.yT=function(){}; this.now=Date.now;this.mV=!1;this.Sr={Gva:function(t){C.p9=t}, Fho:function(){C.Mz()}, kI:function(){C.KN()}, Nh:function(t){return g.I(function(c){return g.y(c,C.Nh(t),0)})}, Zv:function(t,c){return C.Zv(t,c)}, bk:function(){C.bk()}}; var V;this.Lc=(V=p.Lc)!=null?V:100;var N;this.Rv=(N=p.Rv)!=null?N:1;var H;this.W0=(H=p.W0)!=null?H:2592E6;var X;this.ED=(X=p.ED)!=null?X:12E4;var d;this.P0=(d=p.P0)!=null?d:5E3;var a;this.p9=(a=p.p9)!=null?a:void 0;this.D8=!!p.D8;var E;this.rK=(E=p.rK)!=null?E:.1;var l;this.tT=(l=p.tT)!=null?l:10;p.handleError&&(this.handleError=p.handleError);p.yT&&(this.yT=p.yT);p.mV&&(this.mV=p.mV);p.Tu&&(this.Tu=p.Tu);this.OY=p.OY;this.Pp=p.Pp;this.hU=p.hU;this.AU=p.AU;this.sendFn=p.sendFn;this.AZ=p.AZ;this.b1= p.b1;L5(this)&&(!this.OY||this.OY("networkless_logging"))&&QLQ(this)}; QLQ=function(p){L5(p)&&!p.mV&&(p.T=!0,p.D8&&Math.random()<=p.rK&&p.hU.CU(p.p9),p.bk(),p.AU.nO()&&p.Mz(),p.AU.listen(p.AZ,p.Mz.bind(p)),p.AU.listen(p.b1,p.KN.bind(p)))}; Gze=function(p,C){if(!L5(p))throw Error("IndexedDB is not supported: updateRequestHandlers");var V=C.options.onError?C.options.onError:function(){}; C.options.onError=function(H,X){var d,a,E,l;return g.I(function(t){switch(t.C){case 1:d=rkL(X);(a=B0L(X))&&p.OY&&p.OY("web_enable_error_204")&&p.handleError(Error("Request failed due to compression"),C.url,X);if(!(p.OY&&p.OY("nwl_consider_error_code")&&d||p.OY&&!p.OY("nwl_consider_error_code")&&p.potentialEsfErrorCounter<=p.tT)){t.EY(2);break}if(!p.AU.rr){t.EY(3);break}return g.y(t,p.AU.rr(),3);case 3:if(p.AU.nO()){t.EY(2);break}V(H,X);if(!p.OY||!p.OY("nwl_consider_error_code")||((E=C)==null?void 0: E.id)===void 0){t.EY(6);break}return g.y(t,p.hU.dD(C.id,p.p9,!1),6);case 6:return t.return();case 2:if(p.OY&&p.OY("nwl_consider_error_code")&&!d&&p.potentialEsfErrorCounter>p.tT)return t.return();p.potentialEsfErrorCounter++;if(((l=C)==null?void 0:l.id)===void 0){t.EY(8);break}return C.sendCount=400&&p<=599?!1:!0}; B0L=function(p){var C;p=p==null?void 0:(C=p.error)==null?void 0:C.code;return!(p!==400&&p!==415)}; p6X=function(){if(Qt)return Qt();var p={};Qt=g.HC("LogsDatabaseV2",{UK:(p.LogsRequestsStore={c_:2},p),shared:!1,upgrade:function(C,V,N){V(2)&&g.A1(C,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});V(3);V(5)&&(N=N.objectStore("LogsRequestsStore"),N.T.indexNames.contains("newRequest")&&N.T.deleteIndex("newRequest"),g.Rp(N,"newRequestV2",["status","interface","timestamp"]));V(7)&&op(C,"sapisid");V(9)&&op(C,"SWHealthLog")}, version:9});return Qt()}; ry=function(p){return g.WW(p6X(),p)}; j69=function(p,C){var V,N,H,X;return g.I(function(d){if(d.C==1)return V={startTime:(0,g.Ip)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.y(d,ry(C),2);if(d.C!=3)return N=d.T,H=Object.assign({},p,{options:JSON.parse(JSON.stringify(p.options)),interface:g.pO("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.y(d,g.Yt(N,"LogsRequestsStore",H),3);X=d.T;V.ticks.tc=(0,g.Ip)();Caa(V);return d.return(X)})}; V7y=function(p,C){var V,N,H,X,d,a,E,l;return g.I(function(t){if(t.C==1)return V={startTime:(0,g.Ip)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.y(t,ry(C),2);if(t.C!=3)return N=t.T,H=g.pO("INNERTUBE_CONTEXT_CLIENT_NAME",0),X=[p,H,0],d=[p,H,(0,g.Ip)()],a=IDBKeyRange.bound(X,d),E="prev",g.Zr("use_fifo_for_networkless")&&(E="next"),l=void 0,g.y(t,g.kt(N,["LogsRequestsStore"],{mode:"readwrite",L4:!0},function(c){return g.wq(c.objectStore("LogsRequestsStore").index("newRequestV2"), {query:a,direction:E},function(T){T.getValue()&&(l=T.getValue(),p==="NEW"&&(l.status="QUEUED",T.update(l)))})}),3); V.ticks.tc=(0,g.Ip)();Caa(V);return t.return(l)})}; NfQ=function(p,C){var V;return g.I(function(N){if(N.C==1)return g.y(N,ry(C),2);V=N.T;return N.return(g.kt(V,["LogsRequestsStore"],{mode:"readwrite",L4:!0},function(H){var X=H.objectStore("LogsRequestsStore");return X.get(p).then(function(d){if(d)return d.status="QUEUED",g.xt(X,d).then(function(){return d})})}))})}; Hd9=function(p,C,V,N){V=V===void 0?!0:V;var H;return g.I(function(X){if(X.C==1)return g.y(X,ry(C),2);H=X.T;return X.return(g.kt(H,["LogsRequestsStore"],{mode:"readwrite",L4:!0},function(d){var a=d.objectStore("LogsRequestsStore");return a.get(p).then(function(E){return E?(E.status="NEW",V&&(E.sendCount+=1),N!==void 0&&(E.options.compress=N),g.xt(a,E).then(function(){return E})):g.f3.resolve(void 0)})}))})}; X6X=function(p,C){var V;return g.I(function(N){if(N.C==1)return g.y(N,ry(C),2);V=N.T;return N.return(V.delete("LogsRequestsStore",p))})}; dvs=function(p){var C,V;return g.I(function(N){if(N.C==1)return g.y(N,ry(p),2);C=N.T;V=(0,g.Ip)()-2592E6;return g.y(N,g.kt(C,["LogsRequestsStore"],{mode:"readwrite",L4:!0},function(H){return g.n3(H.objectStore("LogsRequestsStore"),{},function(X){if(X.getValue().timestamp<=V)return X.delete().then(function(){return g.e_(X)})})}),0)})}; idY=function(){g.I(function(p){return g.y(p,GoX("LogsDatabaseV2"),0)})}; Caa=function(p){g.Zr("nwl_csi_killswitch")||ox("networkless_performance",p,{sampleRate:1})}; s6H=function(p){return g.WW(hi1(),p)}; aDa=function(p){var C,V;g.I(function(N){if(N.C==1)return g.y(N,s6H(p),2);C=N.T;V=(0,g.Ip)()-2592E6;return g.y(N,g.kt(C,["SWHealthLog"],{mode:"readwrite",L4:!0},function(H){return g.n3(H.objectStore("SWHealthLog"),{},function(X){if(X.getValue().timestamp<=V)return X.delete().then(function(){return g.e_(X)})})}),0)})}; EQX=function(p){var C;return g.I(function(V){if(V.C==1)return g.y(V,s6H(p),2);C=V.T;return g.y(V,C.clear("SWHealthLog"),0)})}; g.BC=function(p,C,V,N,H,X,d){H=H===void 0?"":H;X=X===void 0?!1:X;d=d===void 0?!1:d;if(p)if(V&&!g.Qg())p&&(p=g.xe(g.Rc(p)),p===U1s.toString()||p.startsWith("data")?p="":(p=LH(gI(p)).toString(),p=g.N$(g.zD(p))),g.Sy(p)||(p=dW("IFRAME",{src:'javascript:""',style:"display:none"}),QW(p).body.appendChild(p)));else if(H)yg(p,C,"POST",H,N);else if(g.pO("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||N||d)yg(p,C,"GET","",N,void 0,X,d);else{b:{try{var a=new Bhe({url:p});if(a.S){if(typeof a.V!== "string"||a.V.length===0)var E=0;else{var l=a.V,t="&act=1&ri=1"+GiX(a);E={version:3,c9n:l,BPx:t?a.T?a.C.slice(0,a.T.index)+t+a.C.slice(a.T.index):a.C+t:a.C}}var c=E}else c=a.W;if(c){var T=PX(g.$7(5,p));var M=!(!T||!T.endsWith("/aclk")||CN(p,"ri")!=="1");break b}}catch(J){}M=!1}M?lD9(p)?(C&&C(),V=!0):V=!1:V=!1;V||t7y(p,C)}}; lD9=function(p,C){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(p,C===void 0?"":C))return!0}catch(V){}return!1}; t7y=function(p,C){var V=new Image,N=""+cpY++;G1[N]=V;V.onload=V.onerror=function(){C&&G1[N]&&C();delete G1[N]}; V.src=p}; Tfu=function(p){var C;return((C=document.featurePolicy)==null?0:C.allowedFeatures().includes("attribution-reporting"))?p+"&nis=6":p+"&nis=5"}; C1=function(){p1||(p1=new iN("yt.offline"));return p1}; M7Y=function(p){if(g.Zr("offline_error_handling")){var C=C1().get("errors",!0)||{};C[p.message]={name:p.name,stack:p.stack};p.level&&(C[p.message].level=p.level);C1().set("errors",C,2592E3,!0)}}; jF=function(){this.T=new Map;this.C=!1}; Vq=function(){if(!jF.instance){var p=g.zV("yt.networkRequestMonitor.instance")||new jF;g.YH("yt.networkRequestMonitor.instance",p);jF.instance=p}return jF.instance}; NM=function(){g.h8.call(this);var p=this;this.C=!1;this.T=yUV();this.T.listen("networkstatus-online",function(){if(p.C&&g.Zr("offline_error_handling")){var C=C1().get("errors",!0);if(C){for(var V in C)if(C[V]){var N=new g.Bw(V,"sent via offline_errors");N.name=C[V].name;N.stack=C[V].stack;N.level=C[V].level;g.Vg(N)}C1().set("errors",{},2592E3,!0)}}})}; Jpa=function(){if(!NM.instance){var p=g.zV("yt.networkStatusManager.instance")||new NM;g.YH("yt.networkStatusManager.instance",p);NM.instance=p}return NM.instance}; g.Hl=function(p){p=p===void 0?{}:p;g.h8.call(this);var C=this;this.T=this.S=0;this.C=Jpa();var V=g.zV("yt.networkStatusManager.instance.listen").bind(this.C);V&&(p.rateLimit?(this.rateLimit=p.rateLimit,V("networkstatus-online",function(){mvL(C,"publicytnetworkstatus-online")}),V("networkstatus-offline",function(){mvL(C,"publicytnetworkstatus-offline")})):(V("networkstatus-online",function(){C.dispatchEvent("publicytnetworkstatus-online")}),V("networkstatus-offline",function(){C.dispatchEvent("publicytnetworkstatus-offline")})))}; mvL=function(p,C){p.rateLimit?p.T?(g.rE.X5(p.S),p.S=g.rE.Lx(function(){p.V!==C&&(p.dispatchEvent(C),p.V=C,p.T=(0,g.Ip)())},p.rateLimit-((0,g.Ip)()-p.T))):(p.dispatchEvent(C),p.V=C,p.T=(0,g.Ip)()):p.dispatchEvent(C)}; d$=function(){var p=gy.call;X3||(X3=new g.Hl({Qa_:!0,y8Y:!0}));p.call(gy,this,{hU:{CU:dvs,NP:X6X,Oa:V7y,KD:NfQ,dD:Hd9,set:j69},AU:X3,handleError:function(C,V,N){var H,X=N==null?void 0:(H=N.error)==null?void 0:H.code;if(X===400||X===415){var d;Hd(new g.Bw(C.message,V,N==null?void 0:(d=N.error)==null?void 0:d.code),void 0,void 0,void 0,!0)}else g.Vg(C)}, yT:Hd,sendFn:vQu,now:g.Ip,iS:M7Y,Pp:g.HW(),AZ:"publicytnetworkstatus-online",b1:"publicytnetworkstatus-offline",D8:!0,rK:.1,tT:g.Uk("potential_esf_error_limit",10),OY:g.Zr,mV:!(g.p3()&&g.LJ(document.location.toString())!=="www.youtube-nocookie.com")});this.V=new g.Zt;g.Zr("networkless_immediately_drop_all_requests")&&idY();pFQ("LogsDatabaseV2")}; iV=function(){var p=g.zV("yt.networklessRequestController.instance");p||(p=new d$,g.YH("yt.networklessRequestController.instance",p),g.Zr("networkless_logging")&&g.Vt().then(function(C){p.p9=C;QLQ(p);p.V.resolve();p.D8&&Math.random()<=p.rK&&p.p9&&aDa(p.p9);g.Zr("networkless_immediately_drop_sw_health_store")&&F2v(p)})); return p}; F2v=function(p){var C;g.I(function(V){if(!p.p9)throw C=g.Z1("clearSWHealthLogsDb"),C;return V.return(EQX(p.p9).catch(function(N){p.handleError(N)}))})}; vQu=function(p,C,V,N){N=N===void 0?!1:N;C=g.Zr("web_fp_via_jspb")?Object.assign({},C):C;g.Zr("use_cfr_monitor")&&SgH(p,C);if(g.Zr("use_request_time_ms_header"))C.headers&&l1(p)&&(C.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Ip)())));else{var H;if((H=C.postParams)==null?0:H.requestTimeMs)C.postParams.requestTimeMs=Math.round((0,g.Ip)())}V&&Object.keys(C).length===0?g.BC(p):C.compress?C.postBody?(typeof C.postBody!=="string"&&(C.postBody=JSON.stringify(C.postBody)),PC(p,C.postBody, C,g.qU,N)):PC(p,JSON.stringify(C.postParams),C,IK,N):g.qU(p,C)}; h3=function(p,C){g.Zr("use_event_time_ms_header")&&l1(p)&&(C.headers||(C.headers={}),C.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Ip)())));return C}; SgH=function(p,C){var V=C.onError?C.onError:function(){}; C.onError=function(H,X){Vq().requestComplete(p,!1);V(H,X)}; var N=C.onSuccess?C.onSuccess:function(){}; C.onSuccess=function(H,X){Vq().requestComplete(p,!0);N(H,X)}}; g.sI=function(p){this.config_=null;p?this.config_=p:m8Y()&&(this.config_=g.cC())}; g.ah=function(p,C,V,N){function H(l){try{if((l===void 0?0:l)&&N.retry&&!N.networklessOptions.bypassNetworkless)X.method="POST",N.networklessOptions.writeThenSend?iV().writeThenSend(E,X):iV().sendAndWrite(E,X);else if(N.compress){var t=!N.networklessOptions.writeThenSend;if(X.postBody){var c=X.postBody;typeof c!=="string"&&(c=JSON.stringify(X.postBody));PC(E,c,X,g.qU,t)}else PC(E,JSON.stringify(X.postParams),X,IK,t)}else g.Zr("web_all_payloads_via_jspb")?g.qU(E,X):IK(E,X)}catch(T){if(T.name==="InvalidAccessError")Hd(Error("An extension is blocking network request.")); else throw T;}} !g.pO("VISITOR_DATA")&&C!=="visitor_id"&&Math.random()<.01&&Hd(new g.Bw("Missing VISITOR_DATA when sending innertube request.",C,V,N));if(!p.isReady())throw p=new g.Bw("innertube xhrclient not ready",C,V,N),g.Vg(p),p;var X={headers:N.headers||{},method:"POST",postParams:V,postBody:N.postBody,postBodyFormat:N.postBodyFormat||"JSON",onTimeout:function(){N.onTimeout()}, onFetchTimeout:N.onTimeout,onSuccess:function(l,t){if(N.onSuccess)N.onSuccess(t)}, onFetchSuccess:function(l){if(N.onSuccess)N.onSuccess(l)}, onError:function(l,t){if(N.onError)N.onError(t)}, onFetchError:function(l){if(N.onError)N.onError(l)}, timeout:N.timeout,withCredentials:!0,compress:N.compress};X.headers["Content-Type"]||(X.headers["Content-Type"]="application/json");V="";var d=p.config_.d4;d&&(V=d);d=p.config_.jx||!1;var a=OgH(d,V,N);Object.assign(X.headers,a);X.headers.Authorization&&!V&&d&&(X.headers["x-origin"]=window.location.origin);var E=aK(""+V+("/youtubei/"+p.config_.innertubeApiVersion+"/"+C),{alt:"json"});g.zV("ytNetworklessLoggingInitializationOptions")&&K2a.isNwlInitialized?$P1().then(function(l){H(l)}):H(!1)}; g.T7=function(p,C,V){var N=g.EI();if(N&&C){var H=N.subscribe(p,function(){function X(){lV[H]&&C.apply&&typeof C.apply=="function"&&C.apply(V||window,d)} var d=arguments;try{g.t3[p]?X():g.F5(X,0)}catch(a){g.Vg(a)}},V); lV[H]=!0;cl[p]||(cl[p]=[]);cl[p].push(H);return H}return 0}; DvQ=function(p){var C=g.T7("LOGGED_IN",function(V){p.apply(void 0,arguments);g.MM(C)})}; g.MM=function(p){var C=g.EI();C&&(typeof p==="number"?p=[p]:typeof p==="string"&&(p=[parseInt(p,10)]),g.lr(p,function(V){C.unsubscribeByKey(V);delete lV[V]}))}; g.J3=function(p,C){var V=g.EI();return V?V.publish.apply(V,arguments):!1}; Zd1=function(p){var C=g.EI();if(C)if(C.clear(p),p)uCy(p);else for(var V in cl)uCy(V)}; g.EI=function(){return g.xH.ytPubsubPubsubInstance}; uCy=function(p){cl[p]&&(p=cl[p],g.lr(p,function(C){lV[C]&&delete lV[C]}),p.length=0)}; g.md=function(p,C,V){UvH(p,C,V===void 0?null:V)}; UvH=function(p,C,V){V=V===void 0?null:V;var N=fDS(p),H=document.getElementById(N),X=H&&RzS(H),d=H&&!X;X?C&&C():(C&&(X=g.T7(N,C),C=""+g.$H(C),Odj[C]=X),d||(H=ypV(p,N,function(){RzS(H)||(zzQ(H),g.J3(N),g.F5(function(){Zd1(N)},0))},V)))}; ypV=function(p,C,V,N){N=N===void 0?null:N;var H=g.iK("SCRIPT");H.id=C;H.onload=function(){V&&setTimeout(V,0)}; H.onreadystatechange=function(){switch(H.readyState){case "loaded":case "complete":H.onload()}}; N&&H.setAttribute("nonce",N);g.GN(H,g.yJ(p));p=document.getElementsByTagName("head")[0]||document.body;p.insertBefore(H,p.firstChild);return H}; fDS=function(p){var C=document.createElement("a");g.el(C,p);p=C.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+ic(p)}; vl=function(p,C){if(p===C)p=!0;else if(Array.isArray(p)&&Array.isArray(C))p=g.af(p,C,vl);else if(g.Pv(p)&&g.Pv(C))a:if(g.Ia(p).length!=g.Ia(C).length)p=!1;else{for(var V in p)if(!vl(p[V],C[V])){p=!1;break a}p=!0}else p=!1;return p}; K1=function(p){var C=g.US.apply(1,arguments);if(!F3(p)||C.some(function(N){return!F3(N)}))throw Error("Only objects may be merged."); C=g.F(C);for(var V=C.next();!V.done;V=C.next())SF(p,V.value)}; SF=function(p,C){for(var V in C)if(F3(C[V])){if(V in p&&!F3(p[V]))throw Error("Cannot merge an object into a non-object.");V in p||(p[V]={});SF(p[V],C[V])}else if(D9(C[V])){if(V in p&&!D9(p[V]))throw Error("Cannot merge an array into a non-array.");V in p||(p[V]=[]);qgS(p[V],C[V])}else p[V]=C[V];return p}; qgS=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next())V=V.value,F3(V)?p.push(SF({},V)):D9(V)?p.push(qgS([],V)):p.push(V);return p}; F3=function(p){return typeof p==="object"&&!Array.isArray(p)}; D9=function(p){return typeof p==="object"&&Array.isArray(p)}; uV=function(p){g.Y.call(this);this.C=p}; Z9=function(p){uV.call(this,!0);this.T=p}; IDe=function(p,C){g.Y.call(this);var V=this;this.V=[];this.D=!1;this.C=0;this.W=this.Y=this.S=!1;this.a$=null;var N=(0,g.LY)(p,C);this.T=new g.N8(function(){return N(V.a$)},300); g.R(this,this.T);this.Z=this.J=Infinity}; bdL=function(p,C){if(!C)return!1;for(var V=0;V-1)throw Error("Deps cycle for: "+C);if(p.C.has(C))return p.C.get(C);if(!p.T.has(C)){if(N)return;throw Error("No provider for: "+C);}N=p.T.get(C);V.push(C);if(N.L0!==void 0)var H=N.L0;else if(N.idS)H=N[xJ]?xva(p,N[xJ],V):[],H=N.idS.apply(N,g.K(H));else if(N.AO){H=N.AO;var X=H[xJ]?xva(p,H[xJ],V):[];H=new (Function.prototype.bind.apply(H,[null].concat(g.K(X))))}else throw Error("Could not resolve providers for: "+C);V.pop();N.OV_||p.C.set(C,H); return H}; xva=function(p,C,V){return C?C.map(function(N){return N instanceof oh?YJ(p,N.key,V,!0):YJ(p,N,V)}):[]}; Rh=function(){z7||(z7=new kH1);return z7}; eF=function(){var p,C;return"h5vcc"in n1&&((p=n1.h5vcc.traceEvent)==null?0:p.traceBegin)&&((C=n1.h5vcc.traceEvent)==null?0:C.traceEnd)?1:"performance"in n1&&n1.performance.mark&&n1.performance.measure?2:0}; Pl=function(p){var C=eF();switch(C){case 1:n1.h5vcc.traceEvent.traceBegin("YTLR",p);break;case 2:n1.performance.mark(p+"-start");break;case 0:break;default:N1(C,"unknown trace type")}}; YgL=function(p){var C=eF();switch(C){case 1:n1.h5vcc.traceEvent.traceEnd("YTLR",p);break;case 2:C=p+"-start";var V=p+"-end";n1.performance.mark(V);n1.performance.measure(p,C,V);break;case 0:break;default:N1(C,"unknown trace type")}}; ziu=function(p){var C,V;(V=(C=window).onerror)==null||V.call(C,p.message,"",0,0,p)}; Ria=function(p){var C=this;var V=V===void 0?0:V;var N=N===void 0?g.HW():N;this.V=V;this.scheduler=N;this.C=new g.Zt;this.T=p;for(p={rO:0};p.rO=1E3?X():H>=p?tG||(tG=cQ(function(){X();tG=void 0},0)):d-E>=10&&(NmY(V,N.tier),a.S=d)}; GHY=function(p,C){if(p.endpoint==="log_event"){g.Zr("more_accurate_gel_parser")&&HQ().storePayload({isJspb:!1},p.payload);d7(p);var V=iz(p),N=new Map;N.set(V,[p.payload]);var H=Q6y(p.payload)||"";C&&(EK=new C);return new g.um(function(X,d){EK&&EK.isReady()?Tj(N,EK,X,d,{bypassNetworkless:!0},!0,sK(H)):X()})}}; jKj=function(p,C,V){if(C.endpoint==="log_event"){d7(void 0,C);var N=iz(C,!0),H=new Map;H.set(N,[$V(C.payload)]);V&&(EK=new V);return new g.um(function(X){EK&&EK.isReady()?MY(H,EK,X,{bypassNetworkless:!0},!0,sK(p)):X()})}}; iz=function(p,C){var V="";if(p.dangerousLogToVisitorSession)V="visitorOnlyApprovedKey";else if(p.cttAuthInfo){if(C===void 0?0:C){C=p.cttAuthInfo.token;V=p.cttAuthInfo;var N=new rf;V.videoId?N.setVideoId(V.videoId):V.playlistId&&jq(N,2,JG,Jc(V.playlistId));mh[C]=N}else C=p.cttAuthInfo,V={},C.videoId?V.videoId=C.videoId:C.playlistId&&(V.playlistId=C.playlistId),vQ[p.cttAuthInfo.token]=V;V=p.cttAuthInfo.token}return V}; aW=function(p,C,V,N){p=p===void 0?{}:p;V=V===void 0?!1:V;new g.um(function(H,X){var d=lz(V,N),a=d.V;d.V=!1;FI(d.C);FI(d.T);d.T=0;EK&&EK.isReady()?N===void 0&&g.Zr("enable_web_tiered_gel")?HO1(H,X,p,C,V,300,a):HO1(H,X,p,C,V,N,a):(NmY(V,N),H())})}; HO1=function(p,C,V,N,H,X,d){var a=EK;V=V===void 0?{}:V;H=H===void 0?!1:H;X=X===void 0?200:X;d=d===void 0?!1:d;var E=new Map,l=new Map,t={isJspb:H,cttAuthInfo:N,tier:X},c={isJspb:H,cttAuthInfo:N};if(N!==void 0)H?(C=g.Zr("enable_web_tiered_gel")?HQ().smartExtractMatchingEntries({keys:[t,c],sizeLimit:1E3}):HQ().extractMatchingEntries(c),E.set(N,C),MY(E,a,p,V,!1,d)):(E=g.Zr("enable_web_tiered_gel")?HQ().smartExtractMatchingEntries({keys:[t,c],sizeLimit:1E3}):HQ().extractMatchingEntries(c),l.set(N,E), Tj(l,a,p,C,V,!1,d));else if(H){C=g.F(Object.keys(hG));for(l=C.next();!l.done;l=C.next())l=l.value,X=g.Zr("enable_web_tiered_gel")?HQ().smartExtractMatchingEntries({keys:[t,c],sizeLimit:1E3}):HQ().extractMatchingEntries({isJspb:!0,cttAuthInfo:l}),X.length>0&&E.set(l,X),(g.Zr("web_fp_via_jspb_and_json")&&V.writeThenSend||!g.Zr("web_fp_via_jspb_and_json"))&&delete hG[l];MY(E,a,p,V,!1,d)}else{E=g.F(Object.keys(hG));for(t=E.next();!t.done;t=E.next())t=t.value,c=g.Zr("enable_web_tiered_gel")?HQ().smartExtractMatchingEntries({keys:[{isJspb:!1, cttAuthInfo:t,tier:X},{isJspb:!1,cttAuthInfo:t}],sizeLimit:1E3}):HQ().extractMatchingEntries({isJspb:!1,cttAuthInfo:t}),c.length>0&&l.set(t,c),(g.Zr("web_fp_via_jspb_and_json")&&V.writeThenSend||!g.Zr("web_fp_via_jspb_and_json"))&&delete hG[t];Tj(l,a,p,C,V,!1,d)}}; NmY=function(p,C){function V(){aW({writeThenSend:!0},void 0,p,C)} p=p===void 0?!1:p;C=C===void 0?200:C;var N=lz(p,C),H=N===XdH||N===dU1?5E3:iOj;g.Zr("web_gel_timeout_cap")&&!N.T&&(H=cQ(function(){V()},H),N.T=H); FI(N.C);H=g.pO("LOGGING_BATCH_TIMEOUT",g.Uk("web_gel_debounce_ms",1E4));g.Zr("shorten_initial_gel_batch_timeout")&&SG&&(H=hrH);H=cQ(function(){g.Uk("gel_min_batch_size")>0?HQ().getSequenceCount({cttAuthInfo:void 0,isJspb:p,tier:C})>=sKQ&&V():V()},H); N.C=H}; Tj=function(p,C,V,N,H,X,d){H=H===void 0?{}:H;var a=Math.round((0,g.Ip)()),E=p.size,l=ar9(d);p=g.F(p);var t=p.next();for(d={};!t.done;d={yd:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,yJ:void 0,zl:void 0},t=p.next()){var c=g.F(t.value);t=c.next().value;c=c.next().value;d.batchRequest=g.Ra({context:g.T1(C.config_||g.cC())});if(!g.ea(c)&&!g.Zr("throw_err_when_logevent_malformed_killswitch")){N();break}d.batchRequest.events=c;(c=vQ[t])&&EDL(d.batchRequest,t,c);delete vQ[t];d.dangerousLogToVisitorSession= t==="visitorOnlyApprovedKey";lrH(d.batchRequest,a,d.dangerousLogToVisitorSession);tev(H);d.yJ=function(T){g.Zr("start_client_gcf")&&g.rE.Lx(function(){return g.I(function(M){return g.y(M,cwv(T),0)})}); E--;E||V()}; d.yd=0;d.zl=function(T){return function(){T.yd++;if(H.bypassNetworkless&&T.yd===1)try{g.ah(C,l,T.batchRequest,Km({writeThenSend:!0},T.dangerousLogToVisitorSession,T.yJ,T.zl,X)),SG=!1}catch(M){g.Vg(M),N()}E--;E||V()}}(d); try{g.ah(C,l,d.batchRequest,Km(H,d.dangerousLogToVisitorSession,d.yJ,d.zl,X)),SG=!1}catch(T){g.Vg(T),N()}}}; MY=function(p,C,V,N,H,X){N=N===void 0?{}:N;var d=Math.round((0,g.Ip)()),a={value:p.size},E=new Map([].concat(g.K(p)));E=g.F(E);for(var l=E.next();!l.done;l=E.next()){var t=g.F(l.value).next().value,c=p.get(t);l=new $KH;var T=C.config_||g.cC(),M=new e7,J=new o6;mM(J,1,T.CP);mM(J,2,T.nP);Fa(J,16,T.o4);mM(J,17,T.innertubeContextClientVersion);if(T.OM){var S=T.OM,D=new ba;S.coldConfigData&&mM(D,1,S.coldConfigData);S.appInstallData&&mM(D,6,S.appInstallData);S.coldHashData&&mM(D,3,S.coldHashData);S.hotHashData&& D.Tf(S.hotHashData);hP(J,ba,62,D)}(S=g.xH.devicePixelRatio)&&S!=1&&RO(J,65,HT(S));S=fO();S!==""&&mM(J,54,S);S=Ok();if(S.length>0){D=new YQ;for(var Z=0;Z65535&&(p=1);GH("BATCH_CLIENT_COUNTER",p);return p}; EDL=function(p,C,V){if(V.videoId)var N="VIDEO";else if(V.playlistId)N="PLAYLIST";else return;p.credentialTransferTokenTargetId=V;p.context=p.context||{};p.context.user=p.context.user||{};p.context.user.credentialTransferTokens=[{token:C,scope:N}]}; d7=function(p,C){if(!g.zV("yt.logging.transport.enableScrapingForTest")){var V=u1("il_payload_scraping");if((V!==void 0?String(V):"")==="enable_il_payload_scraping")ZE=[],g.YH("yt.logging.transport.enableScrapingForTest",!0),g.YH("yt.logging.transport.scrapedPayloadsForTesting",ZE),g.YH("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.YH("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.YH("yt.logging.transport.scrapeClientEvent",!0);else return}V=g.zV("yt.logging.transport.scrapedPayloadsForTesting");var N=g.zV("yt.logging.transport.payloadToScrape");C&&(C=C.payload,(C=g.zV("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(C)())&&V.push(C));C=g.zV("yt.logging.transport.scrapeClientEvent");if(N&&N.length>=1)for(var H=0;H0&&xUL(p,C,X)}else xUL(p,C)}; xUL=function(p,C,V){p=Yky(p);C=C?g.BX(C):"";V=V||5;d8()&&g.nO(p,C,V)}; Yky=function(p){for(var C=g.F(zre),V=C.next();!V.done;V=C.next())p=jE(p,V.value);return"ST-"+ic(p).toString(36)}; RrQ=function(p){if(p.name==="JavaException")return!0;p=p.stack;return p.includes("chrome://")||p.includes("chrome-extension://")||p.includes("moz-extension://")}; nDL=function(){this.y8=[];this.YE=[]}; xG=function(){if(!kG){var p=kG=new nDL;p.YE.length=0;p.y8.length=0;erj(p,P19)}return kG}; erj=function(p,C){C.YE&&p.YE.push.apply(p.YE,C.YE);C.y8&&p.y8.push.apply(p.y8,C.y8)}; wdj=function(p){function C(){return p.charCodeAt(N++)} var V=p.length,N=0;do{var H=YG(C);if(H===Infinity)break;var X=H>>3;switch(H&7){case 0:H=YG(C);if(X===2)return H;break;case 1:if(X===2)return;N+=8;break;case 2:H=YG(C);if(X===2)return p.substr(N,H);N+=H;break;case 5:if(X===2)return;N+=4;break;default:return}}while(N500));N++);N=H}else if(typeof p==="object")for(H in p){if(p[H]){var X=H;var d=p[H],a=C,E=V;X=typeof d!=="string"||X!=="clickTrackingParams"&&X!=="trackingParams"?0:(d=wdj(atob(d.replace(/-/g,"+").replace(/_/g,"/"))))?zj(X+".ve",d,a,E):0;N+=X;N+=zj(H,p[H],C,V);if(N>500)break}}else V[C]=RW(p),N+=V[C].length;else V[C]=RW(p),N+=V[C].length;return N}; zj=function(p,C,V,N){V+="."+p;p=RW(C);N[V]=p;return V.length+p.length}; RW=function(p){try{return(typeof p==="string"?p:String(JSON.stringify(p))).substr(0,500)}catch(C){return"unable to serialize "+typeof p+" ("+C.message+")"}}; lN=function(p){g.nm(p)}; g.eG=function(p){g.nm(p,"WARNING")}; g.nm=function(p,C){var V=V===void 0?{}:V;V.name=g.pO("INNERTUBE_CONTEXT_CLIENT_NAME",1);V.version=g.pO("INNERTUBE_CONTEXT_CLIENT_VERSION");C=C===void 0?"ERROR":C;var N=!1;C=C===void 0?"ERROR":C;N=N===void 0?!1:N;if(p){p.hasOwnProperty("level")&&p.level&&(C=p.level);if(g.Zr("console_log_js_exceptions")){var H=[];H.push("Name: "+p.name);H.push("Message: "+p.message);p.hasOwnProperty("params")&&H.push("Error Params: "+JSON.stringify(p.params));p.hasOwnProperty("args")&&H.push("Error args: "+JSON.stringify(p.args)); H.push("File name: "+p.fileName);H.push("Stacktrace: "+p.stack);window.console.log(H.join("\n"),p)}if(!(L1V>=5)){H=gD9;var X=b_u(p),d=X.message||"Unknown Error",a=X.name||"UnknownError",E=X.stack||p.C||"Not available";if(E.startsWith(a+": "+d)){var l=E.split("\n");l.shift();E=l.join("\n")}l=X.lineNumber||"Not available";X=X.fileName||"Not available";var t=0;if(p.hasOwnProperty("args")&&p.args&&p.args.length)for(var c=0;c=500);c++);else if(p.hasOwnProperty("params")&& p.params){var T=p.params;if(typeof p.params==="object")for(c in T){if(T[c]){var M="params."+c,J=RW(T[c]);V[M]=J;t+=M.length+J.length;if(t>500)break}}else V.params=RW(T)}if(H.length)for(c=0;c=500);c++);navigator.vendor&&!V.hasOwnProperty("vendor")&&(V["device.vendor"]=navigator.vendor);V={message:d,name:a,lineNumber:l,fileName:X,stack:E,params:V,sampleWeight:1};H=Number(p.columnNumber);isNaN(H)||(V.lineNumber=V.lineNumber+":"+H);if(p.level==="IGNORED")p= 0;else a:{p=xG();H=g.F(p.YE);for(d=H.next();!d.done;d=H.next())if(d=d.value,V.message&&V.message.match(d.Rn)){p=d.weight;break a}p=g.F(p.y8);for(H=p.next();!H.done;H=p.next())if(H=H.value,H.callback(V)){p=H.weight;break a}p=1}V.sampleWeight=p;p=g.F(W1Q);for(H=p.next();!H.done;H=p.next())if(H=H.value,H.hT[V.name])for(a=g.F(H.hT[V.name]),d=a.next();!d.done;d=a.next())if(c=d.value,d=V.message.match(c.hX)){V.params["params.error.original"]=d[0];a=c.groups;c={};for(l=0;l1E3&&g.eG(new g.Bw("IL Attach cache exceeded limit"))}a= jp(V,C);r7.has(a)?VD(V,C):Gj.set(a,!0)}}N=N.filter(function(t){t.csn!==C?(t.csn=C,t=!0):t=!1;return t}); V={csn:C,parentVe:V.getAsJson(),childVes:g.AU(N,function(t){return t.getAsJson()})}; C==="UNDEFINED_CSN"?Ny("visualElementAttached",X,V):p?fm("visualElementAttached",V,p,X):g.t1("visualElementAttached",V,X)}; s_H=function(p,C,V,N,H){Ha(V,C);N=Qm({cttAuthInfo:AG(C)||void 0},C);V={csn:C,ve:V.getAsJson(),eventType:1};H&&(V.clientData=H);C==="UNDEFINED_CSN"?Ny("visualElementShown",N,V):p?fm("visualElementShown",V,p,N):g.t1("visualElementShown",V,N)}; a3S=function(p,C,V,N){var H=(N=N===void 0?!1:N)?16:8;N=Qm({cttAuthInfo:AG(C)||void 0,endOfSequence:N},C);V={csn:C,ve:V.getAsJson(),eventType:H};C==="UNDEFINED_CSN"?Ny("visualElementHidden",N,V):p?fm("visualElementHidden",V,p,N):g.t1("visualElementHidden",V,N)}; ElQ=function(p,C,V,N,H){Xi(p,C,V,void 0,N,H)}; Xi=function(p,C,V,N,H){Ha(V,C);N=N||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var X=Qm({cttAuthInfo:AG(C)||void 0},C);V={csn:C,ve:V.getAsJson(),gestureType:N};H&&(V.clientData=H);C==="UNDEFINED_CSN"?Ny("visualElementGestured",X,V):p?fm("visualElementGestured",V,p,X):g.t1("visualElementGestured",V,X)}; l3H=function(){var p=f1(16);for(var C=[],V=0;V0&&V.push(g.iK("BR"));V.push(g.h2(X))}):V.push(g.h2(N))}return V}; Fi=function(p,C,V,N){if(V==="child"){g.aN(C);var H;N===void 0?H=void 0:H=!Array.isArray(N)||N&&typeof N.L==="string"?[N]:N;V=cmV(p,H);V=g.F(V);for(p=V.next();!p.done;p=V.next())C.appendChild(p.value)}else V==="style"?g.K2(C,"cssText",N?N:""):N===null||N===void 0?C.removeAttribute(V):(p=N.toString(),V==="href"&&(p=g.xe(g.Rc(p))),C.setAttribute(V,p))}; g.L=function(p){g.mz.call(this,p);this.C4=!0;this.Y=!1;this.listeners=[]}; g.Sp=function(p){g.L.call(this,p);this.Y_=new g.ca;g.R(this,this.Y_)}; Kq=function(p,C,V,N,H,X,d){d=d===void 0?null:d;g.Sp.call(this,C);this.api=p;this.macros={};this.componentType=V;this.D=this.J=null;this.X$=d;this.layoutId=N;this.interactionLoggingClientData=H;this.l_=X;this.UY=null;this.qM=new Z9(this.element);g.R(this,this.qM);this.qo=this.U(this.element,"click",this.onClick);this.Vn=[];this.sY=new IDe(this.onClick,this);g.R(this,this.sY);this.kM=!1;this.Wr=this.a$=null}; DU=function(p,C){p=p===void 0?null:p;C=C===void 0?null:C;if(p==null)return g.eG(Error("Got null or undefined adText object")),"";var V=g.dI(p.text);if(!p.isTemplated)return V;if(C==null)return g.eG(Error("Missing required parameters for a templated message")),V;p=g.F(Object.entries(C));for(C=p.next();!C.done;C=p.next()){var N=g.F(C.value);C=N.next().value;N=N.next().value;V=V.replace("{"+C+"}",N)}return V}; T8e=function(p){p=p===void 0?null:p;return p!=null&&(p=p.thumbnail,p!=null&&p.thumbnails!=null&&p.thumbnails.length!=0&&p.thumbnails[0].url!=null)?g.dI(p.thumbnails[0].url):""}; MzQ=function(p){p=p===void 0?null:p;return p!=null&&(p=p.thumbnail,p!=null&&p.thumbnails!=null&&p.thumbnails.length!=0&&p.thumbnails[0].width!=null&&p.thumbnails[0].height!=null)?new g.KG(p.thumbnails[0].width||0,p.thumbnails[0].height||0):new g.KG(0,0)}; g.uq=function(p){if(p.simpleText)return p.simpleText;if(p.runs){var C=[];p=g.F(p.runs);for(var V=p.next();!V.done;V=p.next())V=V.value,V.text&&C.push(V.text);return C.join("")}return""}; g.ZU=function(p){if(p.simpleText)return p=document.createTextNode(p.simpleText),p;var C=[];if(p.runs)for(var V=0;V1){for(var C=[p[0]],V=1;V0&&(this.T=new g.N8(this.TZ,C,this),g.R(this,this.T));this.W=new g.N8(this.TZ,V,this);g.R(this,this.W);this.J=xkY(this.C,H,1,N);g.R(this,this.J);this.D=xkY(this.C,0,N,1);g.R(this,this.D);this.S=new I_;g.R(this,this.S)}; J7=function(p,C,V){this.C=p;this.isAsync=C;this.T=V}; CN9=function(p){switch(p){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:N1(p,"unknown result type")}}; jpQ=function(p,C){var V=1;p.isTrusted===!1&&(V=0);GH("ISDSTAT",V);mA(V,"i.s_",{triggerContext:"sk",metadata:C});return V}; V_H=function(p,C){var V=[];C?C.isTrusted===!0?V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):C.isTrusted===!1?V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");mA(0,"a.s_",{metadata:p,states:V});GH("ASDSTAT",0)}; mA=function(p,C,V){C=Nqu[C];var N,H,X={detected:p===0,source:""+C.C+((N=V.triggerContext)!=null?N:"")+((H=V.Qc)!=null?H:""),detectionStates:V.states,durationMs:V.JC};V.metadata&&(X.contentCpn=V.metadata.contentCpn,X.adCpn=V.metadata.adCpn);g.t1("biscottiBasedDetection",X);C.T!==void 0&&(V=Number(g.pO("CATSTAT",0)),C.T!==void 0?(C=C.T,p=CN9(p),p=V&~(3<0}; Z7=function(p,C,V,N,H,X){dk.call(this,p,{L:"div",B:"ytp-ad-skip-button-slot"},"skip-button",C,V,N,H);var d=this;this.b_=null;this.Sa=!1;this.R$=X;this.W=this.api.K().experiments.OY("enable_modern_skip_button_on_web");this.KS=!1;this.V=new g.Sp({L:"span",i_:["ytp-ad-skip-button-container"]});this.W&&this.V.element.classList.add("ytp-ad-skip-button-container-detached");this.api.G("enable_ad_pod_index_autohide")&&this.V.element.classList.add("ytp-ad-skip-button-container--clean-player");g.R(this,this.V); this.V.u_(this.element);this.C=this.S=null;this.Qn=new g.a0(this.V,500,!1,100,function(){return d.hide()}); g.R(this,this.Qn);this.vr=new MN(this.V.element,15E3,5E3,.5,.5,this.W);g.R(this,this.vr);this.hide()}; XWL=function(p){p=p.b_&&p.b_.adRendererCommands;return(p&&p.clickCommand&&g.n(p.clickCommand,g.Uu)&&g.n(p.clickCommand,g.Uu).commands||[]).some(function(C){return C.adLifecycleCommand?H3u(C.adLifecycleCommand):!1})}; H3u=function(p){return p.action==="END_LINEAR_AD"||p.action==="END_LINEAR_AD_PLACEMENT"}; ft=function(p,C,V,N,H,X){dk.call(this,p,{L:"div",B:"ytp-ad-skip-ad-slot"},"skip-ad",C,V,N,H);this.b_=X;this.S=!1;this.W=0;this.V=this.C=null;this.hide()}; dpL=function(p,C){p.S||(p.S=!0,p.C&&(C?p.C.Sa.hide():p.C.hide()),C?(p=p.V,p.Qn.show(),p.show()):p.V.show())}; Ou=function(p,C,V,N){nq.call(this,p,C,V,N,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; y_=function(p,C,V,N,H,X,d){X=X===void 0?!1:X;d=d===void 0?!1:d;Kq.call(this,p,{L:"span",B:"ytp-ad-simple-ad-badge"},"simple-ad-badge",C,V,N);this.V=H;this.T=this.rV("ytp-ad-simple-ad-badge");(this.C=X)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");d&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; qN=function(p,C,V,N,H){H=H===void 0?!1:H;tO.call(this,"player-overlay",p,{},C,N);this.videoAdDurationSeconds=V;this.interactionLoggingClientData=N;this.L5=H}; I0=function(p,C){g.ca.call(this);this.api=p;this.durationMs=C;this.T=null;this.qZ=new I_(this);g.R(this,this.qZ);this.C=i3v;this.qZ.U(this.api,"presentingplayerstatechange",this.V0);this.T=this.qZ.U(this.api,"onAdPlaybackProgress",this.m6)}; b$=function(p){g.ca.call(this);this.T=!1;this.Xg=0;this.qZ=new I_(this);g.R(this,this.qZ);this.durationMs=p;this.Yt=new g.Ib(100);g.R(this,this.Yt);this.qZ.U(this.Yt,"tick",this.m6);this.C={seekableStart:0,seekableEnd:p/1E3,current:0};this.start()}; g.A7=function(p,C){var V=Math.abs(Math.floor(p)),N=Math.floor(V/86400),H=Math.floor(V%86400/3600),X=Math.floor(V%3600/60);V=Math.floor(V%60);if(C){C="";N>0&&(C+=" "+N+" Dias");if(N>0||H>0)C+=" "+H+" Horas";C+=" "+X+" Minutos";C+=" "+V+" Segundos";N=C.trim()}else{C="";N>0&&(C+=N+":",H<10&&(C+="0"));if(N>0||H>0)C+=H+":",X<10&&(C+="0");C+=X+":";V<10&&(C+="0");N=C+V}return p>=0?N:"-"+N}; g.o0=function(p){return(!("button"in p)||typeof p.button!=="number"||p.button===0)&&!("shiftKey"in p&&p.shiftKey)&&!("altKey"in p&&p.altKey)&&!("metaKey"in p&&p.metaKey)&&!("ctrlKey"in p&&p.ctrlKey)}; kU=function(p,C,V,N,H,X,d){dk.call(this,p,{L:"span",B:d?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",C,V,N,H);this.videoAdDurationSeconds=X;this.C=null;this.api.G("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");d&&this.api.K().C&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.G("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), BW&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; xU=function(p,C,V,N){HE.call(this,p,C,V,N,"ytp-video-ad-top-bar-title","ad-title");p.G("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; YU=function(p){this.content=p.content;if(p.commandRuns){p=g.F(p.commandRuns);for(var C=p.next();!C.done;C=p.next())C=C.value,this.loggingDirectives=g.n(C,hVu),C.onTap&&(this.interaction={onTap:C.onTap})}}; z6=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ad-simple-attributed-string"},"ad-simple-attributed-string",C,V,N);this.hide()}; R0=function(p,C,V,N,H){Kq.call(this,p,{L:"span",B:H?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",C,V,N);this.C=H;this.adBadgeText=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);this.adBadgeText.u_(this.element);g.R(this,this.adBadgeText);H?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.G("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),BW&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; nt=function(p,C,V,N,H){Kq.call(this,p,{L:"span",B:"ytp-ad-pod-index"},"ad-pod-index",C,V,N);this.C=H;this.api.K().C&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.G("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),BW&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; e2=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",C,V,N);this.hide()}; PE=function(p,C){this.C=p;this.T=C}; wk=function(p,C,V){if(!p.getLength())return V!=null?V:Infinity;p=(C-p.C)/p.getLength();return g.J9(p,0,1)}; $U=function(p,C,V,N){N=N===void 0?!1:N;g.Sp.call(this,{L:"div",B:"ytp-ad-persistent-progress-bar-container",j:[{L:"div",B:"ytp-ad-persistent-progress-bar"}]});this.api=p;this.C=C;this.V=V;N&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.R(this,this.C);this.progressBar=this.rV("ytp-ad-persistent-progress-bar");this.T=-1;this.U(p,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; Lt=function(p,C,V,N,H,X){Kq.call(this,p,{L:"div",B:"ytp-ad-player-overlay",j:[{L:"div",B:"ytp-ad-player-overlay-flyout-cta"},{L:"div",B:"ytp-ad-player-overlay-instream-info"},{L:"div",B:"ytp-ad-player-overlay-skip-or-preview"},{L:"div",B:"ytp-ad-player-overlay-progress-bar"},{L:"div",B:"ytp-ad-player-overlay-instream-user-sentiment"},{L:"div",B:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",C,V,N);this.b_=X;this.W=this.rV("ytp-ad-player-overlay-flyout-cta");this.api.K().G("web_rounded_thumbnails")&& this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.T=this.rV("ytp-ad-player-overlay-instream-info");this.S=null;spa(this)&&(p=dW("div"),g.Ed(p,"ytp-ad-player-overlay-top-bar-gradients"),this.api.G("disable_ad_preview_for_instream_ads")&&g.Ed(p,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),C=this.T,C.parentNode&&C.parentNode.insertBefore(p,C),(C=this.api.getVideoData(2))&&C.isListed&&C.title&&(V=new xU(this.api,this.layoutId,this.interactionLoggingClientData,this.l_), V.u_(p),V.init(lq("ad-title"),{text:C.title},this.macros),g.R(this,V)),this.S=p);this.V=null;this.Z=this.rV("ytp-ad-player-overlay-skip-or-preview");this.Ga=this.rV("ytp-ad-player-overlay-progress-bar");this.vr=this.rV("ytp-ad-player-overlay-instream-user-sentiment");this.Sa=this.rV("ytp-ad-player-overlay-ad-disclosure-banner");this.C=H;g.R(this,this.C);this.hide()}; spa=function(p){p=p.api.K();return g.gk(p)&&p.C}; WE=function(p,C,V){var N={};C&&(N.v=C);V&&(N.list=V);p={name:p,locale:void 0,feature:void 0};for(var H in N)p[H]=N[H];N=g.GD("/sharing_services",p);g.BC(N)}; g.Q_=function(p){p&=16777215;var C=[(p&16711680)>>16,(p&65280)>>8,p&255];p=C[0];var V=C[1];C=C[2];p=Number(p);V=Number(V);C=Number(C);if(p!=(p&255)||V!=(V&255)||C!=(C&255))throw Error('"('+p+","+V+","+C+'") is not a valid RGB color');V=p<<16|V<<8|C;return p<16?"#"+(16777216|V).toString(16).slice(1):"#"+V.toString(16)}; rk=function(p){this.T=new oL(p)}; a1a=function(){var p=!1;try{p=!!window.sessionStorage.getItem("session_logininfo")}catch(C){p=!0}return(g.pO("INNERTUBE_CLIENT_NAME")==="WEB"||g.pO("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&p}; BE=function(p){if(g.pO("LOGGED_IN",!0)&&a1a()){var C=g.pO("VALID_SESSION_TEMPDATA_DOMAINS",[]);var V=g.LJ(window.location.href);V&&C.push(V);V=g.LJ(p);g.W5(C,V)||!V&&v5(p,"/")?(C=gA(p),(C=UXv(C))?(C=Yky(C),C=(C=g.ee(C)||null)?i1(C):{}):C=null):C=null;C==null&&(C={});V=C;var N=void 0;a1a()?(N||(N=g.pO("LOGIN_INFO")),N?(V.session_logininfo=N,V=!0):V=!1):V=!1;V&&oW(p,C)}}; g.EtL=function(p){var C=C===void 0?{}:C;var V=V===void 0?"":V;var N=N===void 0?window:N;p=g.GD(p,C);BE(p);V=g.Rc(p+V);N=N.location;V=nH(V);V!==void 0&&(N.href=V)}; g.G6=function(p,C,V){C=C===void 0?{}:C;V=V===void 0?!1:V;var N=g.pO("EVENT_ID");N&&(C.ei||(C.ei=N));C&&oW(p,C);V||(BE(p),g.EtL(p))}; g.pS=function(p,C,V,N,H){H=H===void 0?!1:H;V&&oW(p,V);V=g.Rc(p);var X=g.xe(V);p!=X&&Hd(Error("Unsafe window.open URL: "+p));p=X;C=C||ic(p).toString(36);try{if(H){H=p;H=Tfu(H);BE(H);g.gV(window,H,C,"attributionsrc");return}}catch(d){g.Vg(d)}BE(p);g.gV(window,V,C,N)}; l1H=function(p){CS=p}; t_e=function(p){ji=p}; c1u=function(p){VQ=p}; M_S=function(){Tqv=VQ=ji=CS=null}; mpL=function(){var p=p===void 0?window.location.href:p;if(g.Zr("kevlar_disable_theme_param"))return null;var C=PX(g.$7(5,p));if(g.Zr("enable_dark_theme_only_on_shorts")&&C!=null&&C.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var V=g.sk(p).theme;return J1v.get(V)||null}catch(N){}return null}; NQ=function(){this.T={};if(this.C=SHs()){var p=g.ee("CONSISTENCY");p&&vtu(this,{encryptedTokenJarContents:p})}}; vtu=function(p,C){if(C.encryptedTokenJarContents&&(p.T[C.encryptedTokenJarContents]=C,typeof C.expirationSeconds==="string")){var V=Number(C.expirationSeconds);setTimeout(function(){delete p.T[C.encryptedTokenJarContents]},V*1E3); p.C&&g.nO("CONSISTENCY",C.encryptedTokenJarContents,V,void 0,!0)}}; XX=function(){this.C=-1;var p=g.pO("LOCATION_PLAYABILITY_TOKEN");g.pO("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Hh(this))&&(p=this.localStorage.get("yt-location-playability-token"));p&&(this.locationPlayabilityToken=p,this.T=void 0)}; Hh=function(p){return p.localStorage===void 0?new iN("yt-client-location"):p.localStorage}; g.Za=function(p,C,V){C=C===void 0?!1:C;V=V===void 0?!1:V;var N=g.pO("INNERTUBE_CONTEXT");if(!N)return g.nm(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};N=g.Ra(N);g.Zr("web_no_tracking_params_in_shell_killswitch")||delete N.clickTracking;N.client||(N.client={});var H=N.client;H.clientName==="MWEB"&&H.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(H.clientFormFactor=g.pO("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");H.screenWidthPoints=window.innerWidth;H.screenHeightPoints= window.innerHeight;H.screenPixelDensity=Math.round(window.devicePixelRatio||1);H.screenDensityFloat=window.devicePixelRatio||1;H.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var X=X===void 0?!1:X;g.$l();var d="USER_INTERFACE_THEME_LIGHT";g.LK(0,165)?d="USER_INTERFACE_THEME_DARK":g.LK(0,174)?d="USER_INTERFACE_THEME_LIGHT":!g.Zr("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (d="USER_INTERFACE_THEME_DARK");X=X?d:mpL()||d;H.userInterfaceTheme=X;if(!C){if(X=hFL())H.connectionType=X;g.Zr("web_log_effective_connection_type")&&(X=aKa())&&(N.client.effectiveConnectionType=X)}var a;if(g.Zr("web_log_memory_total_kbytes")&&((a=g.xH.navigator)==null?0:a.deviceMemory)){var E;a=(E=g.xH.navigator)==null?void 0:E.deviceMemory;N.client.memoryTotalKbytes=""+a*1E6}g.Zr("web_gcf_hashes_innertube")&&(X=Jku())&&(E=X.coldConfigData,a=X.coldHashData,X=X.hotHashData,N.client.configInfo=N.client.configInfo|| {},E&&(N.client.configInfo.coldConfigData=E),a&&(N.client.configInfo.coldHashData=a),X&&(N.client.configInfo.hotHashData=X));E=g.sk(g.xH.location.href);!g.Zr("web_populate_internal_geo_killswitch")&&E.internalcountrycode&&(H.internalGeo=E.internalcountrycode);H.clientName==="MWEB"||H.clientName==="WEB"?(H.mainAppWebInfo={graftUrl:g.xH.location.href},g.Zr("kevlar_woffle")&&jqv.instance&&(E=jqv.instance,H.mainAppWebInfo.pwaInstallabilityStatus=!E.T&&E.C?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),H.mainAppWebInfo.webDisplayMode=ez(),H.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):H.clientName==="TVHTML5"&&(!g.Zr("web_lr_app_quality_killswitch")&&(E=g.pO("LIVING_ROOM_APP_QUALITY"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{appQuality:E})),E=g.pO("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{certificationScope:E}));if(!g.Zr("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(A){}l=void 0}l&&(H.timeZone=l)}(l=fO())?H.experimentsToken=l:delete H.experimentsToken;l=Ok();NQ.instance||(NQ.instance=new NQ);N.request=Object.assign({},N.request,{internalExperimentFlags:l,consistencyTokenJars:g.q$(NQ.instance.T)});!g.Zr("web_prequest_context_killswitch")&&(l=g.pO("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(N.request.externalPrequestContext=l);H=g.$l();l=g.LK(0,58);H=H.get("gsml","");N.user=Object.assign({}, N.user);l&&(N.user.enableSafetyMode=l);H&&(N.user.lockedSafetyMode=!0);g.Zr("warm_op_csn_cleanup")?V&&(C=g.bz())&&(N.clientScreenNonce=C):!C&&(C=g.bz())&&(N.clientScreenNonce=C);p&&(N.clickTracking={clickTrackingParams:p});if(p=g.zV("yt.mdx.remote.remoteClient_"))N.remoteClient=p;XX.getInstance().setLocationOnInnerTubeContext(N);try{var t=Jw(),c=t.bid;delete t.bid;N.adSignalsInfo={params:[],bid:c};for(var T=g.F(Object.entries(t)),M=T.next();!M.done;M=T.next()){var J=g.F(M.value),S=J.next().value, D=J.next().value;t=S;c=D;p=void 0;(p=N.adSignalsInfo.params)==null||p.push({key:t,value:""+c})}var Z,f;if(((Z=N.client)==null?void 0:Z.clientName)==="TVHTML5"||((f=N.client)==null?void 0:f.clientName)==="TVHTML5_UNPLUGGED"){var q=g.pO("INNERTUBE_CONTEXT");q.adSignalsInfo&&(N.adSignalsInfo.advertisingId=q.adSignalsInfo.advertisingId,N.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",N.adSignalsInfo.limitAdTracking=q.adSignalsInfo.limitAdTracking)}}catch(A){g.nm(A)}return N}; KWa=function(p,C){if(!p)return!1;var V,N=(V=g.n(p,FWv))==null?void 0:V.signal;if(N&&C.Fb)return!!C.Fb[N];var H;if((V=(H=g.n(p,S2V))==null?void 0:H.request)&&C.CR)return!!C.CR[V];for(var X in p)if(C.Z3[X])return!0;return!1}; DpV=function(p){var C={"Content-Type":"application/json"};g.pO("EOM_VISITOR_DATA")?C["X-Goog-EOM-Visitor-Id"]=g.pO("EOM_VISITOR_DATA"):g.pO("VISITOR_DATA")&&(C["X-Goog-Visitor-Id"]=g.pO("VISITOR_DATA"));C["X-Youtube-Bootstrap-Logged-In"]=g.pO("LOGGED_IN",!1);g.pO("DEBUG_SETTINGS_METADATA")&&(C["X-Debug-Settings-Metadata"]=g.pO("DEBUG_SETTINGS_METADATA"));p!=="cors"&&((p=g.pO("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(C["X-Youtube-Client-Name"]=p),(p=g.pO("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(C["X-Youtube-Client-Version"]= p),(p=g.pO("CHROME_CONNECTED_HEADER"))&&(C["X-Youtube-Chrome-Connected"]=p),(p=g.pO("DOMAIN_ADMIN_STATE"))&&(C["X-Youtube-Domain-Admin-State"]=p),g.pO("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(p=g.pO("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(C["X-YouTube-Lava-Device-Context"]=p));return C}; u2v=function(){this.T={}}; Un=function(){this.mappings=new u2v}; fS=function(p){return function(){return new p}}; Upv=function(p){var C=C===void 0?"UNKNOWN_INTERFACE":C;if(p.length===1)return p[0];var V=Z3Q[C];if(V){V=new RegExp(V);for(var N=g.F(p),H=N.next();!H.done;H=N.next())if(H=H.value,V.exec(H))return H}var X=[];Object.entries(Z3Q).forEach(function(d){var a=g.F(d);d=a.next().value;a=a.next().value;C!==d&&X.push(a)}); V=new RegExp(X.join("|"));p.sort(function(d,a){return d.length-a.length}); N=g.F(p);for(H=N.next();!H.done;H=N.next())if(H=H.value,!V.exec(H))return H;return p[0]}; g.On=function(p){return"/youtubei/v1/"+Upv(p)}; yQ=function(){}; qQ=function(){}; ID=function(){}; b7=function(p){return g.zV("ytcsi."+(p||"")+"data_")||f1y(p)}; O3X=function(){var p=b7();p.info||(p.info={});return p.info}; A0=function(p){p=b7(p);p.metadata||(p.metadata={});return p.metadata}; oD=function(p){p=b7(p);p.tick||(p.tick={});return p.tick}; ki=function(p){p=b7(p);if(p.gel){var C=p.gel;C.gelInfos||(C.gelInfos={});C.gelTicks||(C.gelTicks={})}else p.gel={gelTicks:{},gelInfos:{}};return p.gel}; y1e=function(p){p=ki(p);p.gelInfos||(p.gelInfos={});return p.gelInfos}; xi=function(p){var C=b7(p).nonce;C||(C=g.OI(16),b7(p).nonce=C);return C}; f1y=function(p){var C={tick:{},info:{}};g.YH("ytcsi."+(p||"")+"data_",C);return C}; Yi=function(){var p=g.zV("ytcsi.debug");p||(p=[],g.YH("ytcsi.debug",p),g.YH("ytcsi.reference",{}));return p}; z0=function(p){p=p||"";var C=q2u();if(C[p])return C[p];var V=Yi(),N={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};V.push(N);return C[p]=N}; I1Q=function(p){p=p||"";var C=q2u();C[p]&&delete C[p];var V=Yi(),N={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};V.push(N);C[p]=N}; q2u=function(){var p=g.zV("ytcsi.reference");if(p)return p;Yi();return g.zV("ytcsi.reference")}; RD=function(p){return b3X[p]||"LATENCY_ACTION_UNKNOWN"}; nS=function(p,C){uR.call(this,1,arguments);this.Yt=C}; ei=function(){this.T=0}; Ph=function(){ei.instance||(ei.instance=new ei);return ei.instance}; $i=function(p,C){w3[C]=w3[C]||{count:0};var V=w3[C];V.count++;V.time=(0,g.Ip)();p.T||(p.T=g.Vl(0,function(){var N=(0,g.Ip)(),H;for(H in w3)w3[H]&&N-w3[H].time>6E4&&delete w3[H];p&&(p.T=0)},5E3)); return V.count>5?(V.count===6&&Math.random()*1E5<1&&(V=new g.Bw("CSI data exceeded logging limit with key",C.split("_")),C.indexOf("plev")>=0||g.eG(V)),!0):!1}; A1j=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; otY=function(){var p;if(g.Zr("csi_use_performance_navigation_timing")||g.Zr("csi_use_performance_navigation_timing_tvhtml5")){var C,V,N,H=LS==null?void 0:(p=LS.getEntriesByType)==null?void 0:(C=p.call(LS,"navigation"))==null?void 0:(V=C[0])==null?void 0:(N=V.toJSON)==null?void 0:N.call(V);H?(H.requestStart=g3(H.requestStart),H.responseEnd=g3(H.responseEnd),H.redirectStart=g3(H.redirectStart),H.redirectEnd=g3(H.redirectEnd),H.domainLookupEnd=g3(H.domainLookupEnd),H.connectStart=g3(H.connectStart), H.connectEnd=g3(H.connectEnd),H.responseStart=g3(H.responseStart),H.secureConnectionStart=g3(H.secureConnectionStart),H.domainLookupStart=g3(H.domainLookupStart),H.isPerformanceNavigationTiming=!0,p=H):p=LS.timing}else p=g.Zr("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(LS.timing)):LS.timing;return p}; g3=function(p){return Math.round(Wh()+p)}; Wh=function(){return(g.Zr("csi_use_time_origin")||g.Zr("csi_use_time_origin_tvhtml5"))&&LS.timeOrigin?Math.floor(LS.timeOrigin):LS.timing.navigationStart}; r3=function(p,C){QQ("_start",p,C)}; Bh=function(p,C){if(!g.Zr("web_csi_action_sampling_enabled")||!b7(C).actionDisabled){var V=z0(C||"");K1(V.info,p);p.loadType&&(V=p.loadType,A0(C).loadType=V);K1(y1e(C),p);V=xi(C);C=b7(C).cttAuthInfo;Ph().info(p,V,C)}}; k4H=function(){var p,C,V,N;return((N=Rh().resolve(new oh(lR))==null?void 0:(p=tN())==null?void 0:(C=p.loggingHotConfig)==null?void 0:(V=C.csiConfig)==null?void 0:V.debugTicks)!=null?N:[]).map(function(H){return Object.values(H)[0]})}; QQ=function(p,C,V){if(!g.Zr("web_csi_action_sampling_enabled")||!b7(V).actionDisabled){var N=xi(V),H;if(H=g.Zr("web_csi_debug_sample_enabled")&&N){(Rh().resolve(new oh(lR))==null?0:tN())&&!xpS&&(xpS=!0,QQ("gcfl",(0,g.Ip)(),V));var X,d,a;H=(Rh().resolve(new oh(lR))==null?void 0:(X=tN())==null?void 0:(d=X.loggingHotConfig)==null?void 0:(a=d.csiConfig)==null?void 0:a.debugSampleWeight)||0;if(X=H!==0)b:{X=k4H();if(X.length>0)for(d=0;dV.duration?N:V},{duration:0}))&&C.startTime>0&&C.responseEnd>0&&(QQ("wffs",g3(C.startTime)),QQ("wffe",g3(C.responseEnd)))}; wWL=function(p,C,V){LS&&LS.measure&&(p.startsWith("measure_")||(p="measure_"+p),V?LS.measure(p,C,V):C?LS.measure(p,C):LS.measure(p))}; $p9=function(p){var C=G0("aft",p);if(C)return C;C=g.pO((p||"")+"TIMING_AFT_KEYS",["ol"]);for(var V=C.length,N=0;N0&&Bh(C);C={isNavigation:!0,actionType:RD(g.pO("TIMING_ACTION"))};var V=g.pO("PREVIOUS_ACTION");V&&(C.previousAction=RD(V));if(V=g.pO("CLIENT_PROTOCOL"))C.httpProtocol=V;if(V=g.pO("CLIENT_TRANSPORT"))C.transportProtocol=V;(V=g.bz())&&V!=="UNDEFINED_CSN"&&(C.clientScreenNonce=V);V=RVy();if(V===1||V===-1)C.isVisible= !0;V=A0().loadType==="cold";var N=O3X();V||(V=N.yt_lt==="cold");if(V){C.loadType="cold";V=O3X();N=otY();var H=Wh(),X=g.pO("CSI_START_TIMESTAMP_MILLIS",0);X>0&&!g.Zr("embeds_web_enable_csi_start_override_killswitch")&&(H=X);H&&(QQ("srt",N.responseStart),V.prerender!==1&&r3(H));V=WW1();V>0&&QQ("fpt",V);V=otY();V.isPerformanceNavigationTiming&&Bh({performanceNavigationTiming:!0},void 0);QQ("nreqs",V.requestStart,void 0);QQ("nress",V.responseStart,void 0);QQ("nrese",V.responseEnd,void 0);V.redirectEnd- V.redirectStart>0&&(QQ("nrs",V.redirectStart,void 0),QQ("nre",V.redirectEnd,void 0));V.domainLookupEnd-V.domainLookupStart>0&&(QQ("ndnss",V.domainLookupStart,void 0),QQ("ndnse",V.domainLookupEnd,void 0));V.connectEnd-V.connectStart>0&&(QQ("ntcps",V.connectStart,void 0),QQ("ntcpe",V.connectEnd,void 0));V.secureConnectionStart>=Wh()&&V.connectEnd-V.secureConnectionStart>0&&(QQ("nstcps",V.secureConnectionStart,void 0),QQ("ntcpe",V.connectEnd,void 0));LS&&"getEntriesByType"in LS&&PNa();V=[];if(document.querySelector&& LS&&LS.getEntriesByName)for(var d in jL)jL.hasOwnProperty(d)&&(N=jL[d],eVa(d,N)&&V.push(N));if(V.length>0)for(C.resourceInfo=[],d=g.F(V),V=d.next();!V.done;V=d.next())C.resourceInfo.push({resourceCache:V.value})}Bh(C);C=ki();C.preLoggedGelInfos||(C.preLoggedGelInfos=[]);d=C.preLoggedGelInfos;C=y1e();V=void 0;for(N=0;N-1&&(delete v["@type"],P=v);S&&p.C.has(S)&&p.C.delete(S);((C0=C.config)==null?0:C0.wVr)&&NR(C.config.wVr);if(P||(FG=p.V)==null||!FG.Kra(C.input,C.dj)){OS.EY(15);break}return g.y(OS,p.V.Oto(C.input,C.dj),16);case 16:P=OS.T;case 15:return lh1(p,P,C),((Nc=C.config)==null?0:Nc.vt$)&&NR(C.config.vt$),N(),OS.return(P||void 0)}})}; i5e=function(p,C){a:{p=p.P4;var V,N=(V=g.n(C,FWv))==null?void 0:V.signal;if(N&&p.Fb&&(V=p.Fb[N])){var H=V();break a}var X;if((V=(X=g.n(C,S2V))==null?void 0:X.request)&&p.CR&&(X=p.CR[V])){H=X();break a}for(H in C)if(p.Z3[H]&&(C=p.Z3[H])){H=C();break a}H=void 0}if(H!==void 0)return Promise.resolve(H)}; sx1=function(p,C,V){var N,H,X,d,a,E,l;return g.I(function(t){if(t.C==1){X=((N=C)==null?void 0:(H=N.LA)==null?void 0:H.identity)||Me;E=(d=C)==null?void 0:(a=d.LA)==null?void 0:a.sessionIndex;var c=U8(p.T.wg(X,{sessionIndex:E}));return g.y(t,c,2)}l=t.T;return t.return(Promise.resolve(Object.assign({},DpV(V),l)))})}; hkH=function(p,C,V){var N,H=(C==null?void 0:(N=C.LA)==null?void 0:N.identity)||Me,X;C=C==null?void 0:(X=C.LA)==null?void 0:X.sessionIndex;p=p.T.wg(H,{sessionIndex:C});return Object.assign({},DpV(V),p)}; le=function(){}; td=function(){}; cH=function(p){this.Y=p}; Tk=function(){}; MR=function(){}; Jd=function(){}; mI=function(){}; g.vH=function(p,C){var V=g.US.apply(2,arguments);p=p===void 0?0:p;g.Bw.call(this,C,V);this.errorType=p;Object.setPrototypeOf(this,this.constructor.prototype)}; FA=function(p,C,V){this.T=p;this.C=C;this.V=V}; cNV=function(p,C,V){if(p.T){var N=PX(g.$7(5,jE(C,"key")))||"/UNKNOWN_PATH";p.T.start(N)}p=V;g.Zr("wug_networking_gzip_request")&&(p=WlY(V));return new window.Request(C,p)}; g.KU=function(p,C){if(!SL){var V=Rh();kJ(V,{Xk:TyS,AO:FA});var N={Z3:{feedbackEndpoint:fS(Tk),modifyChannelNotificationPreferenceEndpoint:fS(MR),playlistEditEndpoint:fS(Jd),shareEntityEndpoint:fS(cH),subscribeEndpoint:fS(le),unsubscribeEndpoint:fS(td),webPlayerShareEntityServiceEndpoint:fS(mI)}},H=XX.getInstance(),X={};H&&(X.client_location=H);p===void 0&&(p=V0a());C===void 0&&(C=V.resolve(TyS));de9(N,C,p,X);kJ(V,{Xk:MVe,L0:s0.instance});SL=V.resolve(MVe)}return SL}; JN9=function(p){var C=new KN;if(p.interpreterJavascript){var V=xKj(p.interpreterJavascript);V=rV(V).toString();var N=new Fr;mM(N,6,V);hP(C,Fr,1,N)}else p.interpreterUrl&&(V=Og(p.interpreterUrl),V=oc(V).toString(),N=new SE,mM(N,4,V),hP(C,SE,2,N));p.interpreterHash&&v4(C,3,p.interpreterHash);p.program&&v4(C,4,p.program);p.globalName&&v4(C,5,p.globalName);p.clientExperimentsStateBlob&&v4(C,7,p.clientExperimentsStateBlob);return C}; Df=function(p){var C={};p=p.split("&");p=g.F(p);for(var V=p.next();!V.done;V=p.next())V=V.value.split("="),V.length===2&&(C[V[0]]=V[1]);return C}; V1a=function(){if(g.Zr("bg_st_hr"))return"havuokmhhs-0";var p,C=((p=performance)==null?void 0:p.timeOrigin)||0;return"havuokmhhs-"+Math.floor(C)}; ue=function(p){this.T=p}; mea=function(){return new Promise(function(p){var C=window.top;C.ntpevasrs!==void 0?p(new ue(C.ntpevasrs)):(C.ntpqfbel===void 0&&(C.ntpqfbel=[]),C.ntpqfbel.push(function(V){p(new ue(V))}))})}; Fe9=function(){if(!g.Zr("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Zr("disable_biscotti_fetch_entirely_for_all_web_clients")&&d8()){var p=g.pO("PLAYER_VARS",{});if(g.x5(p,"privembed",!1)!="1"&&!Oou(p)){var C=function(){Zf=!0;"google_ad_status"in window?GH("DCLKSTAT",1):GH("DCLKSTAT",2)}; try{g.md("//static.doubleclick.net/instream/ad_status.js",C)}catch(V){}vpL.push(g.rE.Lx(function(){if(!(Zf||"google_ad_status"in window)){try{if(C){var V=""+g.$H(C),N=Odj[V];N&&g.MM(N)}}catch(H){}Zf=!0;GH("DCLKSTAT",3)}},5E3))}}}; U0=function(){var p=Number(g.pO("DCLKSTAT",0));return isNaN(p)?0:p}; qR=function(p,C,V){var N=this;this.network=p;this.options=C;this.C=V;this.T=null;if(C.Mte){var H=new g.Zt;this.T=H.promise;g.xH.ytAtRC&&j_(function(){var X,d;return g.I(function(a){if(a.C==1){if(!g.xH.ytAtRC)return a.return();X=fU(null);return g.y(a,O0(N,X),2)}d=a.T;g.xH.ytAtRC&&g.xH.ytAtRC(JSON.stringify(d));g.JQ(a)})},2); mea().then(function(X){var d,a,E,l;return g.I(function(t){if(t.C==1)return X.bindInnertubeChallengeFetcher(function(c){return O0(N,fU(c))}),g.y(t,zo(),2); d=t.T;a=X.getLatestChallengeResponse();E=a.challenge;if(!E)throw Error("BGE_MACIL");l={challenge:E,o8:Df(E),w7:d,bgChallenge:new KN};H.resolve(l);X.registerChallengeFetchedCallback(function(c){c=c.challenge;if(!c)throw Error("BGE_MACR");c={challenge:c,o8:Df(c),w7:d,bgChallenge:new KN};N.T=Promise.resolve(c)}); g.JQ(t)})})}else C.preload&&SXS(this,new Promise(function(X){g.Vl(0,function(){X(y3(N))},0)}))}; fU=function(p){var C={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};p&&(C.interpreterHash=p);return C}; y3=function(p,C){C=C===void 0?0:C;var V,N,H,X,d,a,E,l,t,c,T,M;return g.I(function(J){switch(J.C){case 1:V=fU(yO().T);if(g.Zr("att_fet_ks"))return g.vv(J,7),g.y(J,O0(p,V),9);g.vv(J,4);return g.y(J,Keu(p,V),6);case 6:d=J.T;H=d.dZe;X=d.jNn;N=d;g.Fe(J,3);break;case 4:return g.Sa(J),g.eG(Error("Failed to fetch attestation challenge after "+(C+" attempts; not retrying for 24h."))),I4(p,864E5),J.return({challenge:"",o8:{},w7:void 0,bgChallenge:void 0});case 9:N=J.T;if(!N)throw Error("Fetching Attestation challenge returned falsy"); if(!N.challenge)throw Error("Missing Attestation challenge");H=N.challenge;X=Df(H);if("c1a"in X&&(!N.bgChallenge||!N.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Fe(J,3);break;case 7:a=g.Sa(J);g.eG(a);C++;if(C>=5)return g.eG(Error("Failed to fetch attestation challenge after "+(C+" attempts; not retrying for 24h."))),I4(p,864E5),J.return({challenge:"",o8:{},w7:void 0,bgChallenge:void 0});E=1E3*Math.pow(2,C-1)+Math.random()*1E3;return J.return(new Promise(function(S){g.Vl(0, function(){S(y3(p,C))},E)})); case 3:l=Number(X.t)||7200;I4(p,l*1E3);t=void 0;if(!("c1a"in X&&N.bgChallenge)){J.EY(10);break}c=JN9(N.bgChallenge);g.vv(J,11);return g.y(J,qj(yO(),c),13);case 13:g.Fe(J,12);break;case 11:return T=g.Sa(J),g.eG(T),J.return({challenge:H,o8:X,w7:t,bgChallenge:c});case 12:return g.vv(J,14),t=new U$({challenge:c,OW:{SU:"aGIf"}}),g.y(J,t.Or,16);case 16:g.Fe(J,10);break;case 14:M=g.Sa(J),g.eG(M),t=void 0;case 10:return J.return({challenge:H,o8:X,w7:t,bgChallenge:c})}})}; O0=function(p,C){var V;return g.I(function(N){V=p.C;if(!V||V.nO())return N.return(O0(p.network,C));hd("att_pna",void 0,"attestation_challenge_fetch");return N.return(new Promise(function(H){V.Ff("publicytnetworkstatus-online",function(){O0(p.network,C).then(H)})}))})}; DeV=function(p){if(!p)throw Error("Fetching Attestation challenge returned falsy");if(!p.challenge)throw Error("Missing Attestation challenge");var C=p.challenge,V=Df(C);if("c1a"in V&&(!p.bgChallenge||!p.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},p,{dZe:C,jNn:V})}; Keu=function(p,C){var V,N,H,X,d;return g.I(function(a){switch(a.C){case 1:V=void 0,N=0,H={};case 2:if(!(N<5)){a.EY(4);break}if(!(N>0)){a.EY(5);break}H.Ah=1E3*Math.pow(2,N-1)+Math.random()*1E3;return g.y(a,new Promise(function(E){return function(l){g.Vl(0,function(){l(void 0)},E.Ah)}}(H)),5); case 5:return g.vv(a,7),g.y(a,O0(p,C),9);case 9:return X=a.T,a.return(DeV(X));case 7:V=d=g.Sa(a),d instanceof Error&&g.eG(d);case 8:N++;H={Ah:void 0};a.EY(2);break;case 4:throw V;}})}; SXS=function(p,C){p.T=C}; uD9=function(p){var C,V,N;return g.I(function(H){if(H.C==1)return g.y(H,Promise.race([p.T,null]),2);C=H.T;var X=y3(p);p.T=X;(V=C)==null||(N=V.w7)==null||N.dispose();g.JQ(H)})}; I4=function(p,C){function V(){var H;return g.I(function(X){H=N-Date.now();return H<1E3?g.y(X,uD9(p),0):(j_(V,0,Math.min(H,6E4)),X.EY(0))})} var N=Date.now()+C;V()}; Z5u=function(p,C){return new Promise(function(V){g.Vl(0,function(){V(C())},p)})}; g.UeL=function(p,C){var V;return g.I(function(N){var H=g.zV("yt.aba.att");return(V=H?H:qR.instance!==void 0?qR.instance.V.bind(qR.instance):null)?N.return(V("ENGAGEMENT_TYPE_PLAYBACK",p,C)):N.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.fhv=function(){var p;return(p=(p=g.zV("yt.aba.att2"))?p:qR.instance!==void 0?qR.instance.S.bind(qR.instance):null)?p():Promise.resolve(!1)}; yNa=function(p,C){var V=g.zV("ytDebugData.callbacks");V||(V={},g.YH("ytDebugData.callbacks",V));if(g.Zr("web_dd_iu")||O5Y.includes(p))V[p]=C}; be=function(){var p=qXy;var C=C===void 0?[]:C;var V=V===void 0?[]:V;C=qE9.apply(null,[IoV.apply(null,g.K(C))].concat(g.K(V)));this.store=Axa(p,void 0,C)}; g.Ad=function(p,C,V){for(var N=Object.assign({},p),H=g.F(Object.keys(C)),X=H.next();!X.done;X=H.next()){X=X.value;var d=p[X],a=C[X];if(a===void 0)delete N[X];else if(d===void 0)N[X]=a;else if(Array.isArray(a)&&Array.isArray(d))N[X]=V?[].concat(g.K(d),g.K(a)):a;else if(!Array.isArray(a)&&g.Pv(a)&&!Array.isArray(d)&&g.Pv(d))N[X]=g.Ad(d,a,V);else if(typeof a===typeof d)N[X]=a;else return C=new g.Bw("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:X,bVo:d,updateValue:a}),g.nm(C), p}return N}; o4=function(p){var C=this;p=p===void 0?[]:p;this.XF=[];this.jH=this.yr=0;this.U2=void 0;this.totalLength=0;p.forEach(function(V){C.append(V)})}; Ihy=function(p,C){return p.XF.length===0?!1:(p=p.XF[p.XF.length-1])&&p.buffer===C.buffer&&p.byteOffset+p.length===C.byteOffset}; k9=function(p,C){C=g.F(C.XF);for(var V=C.next();!V.done;V=C.next())p.append(V.value)}; x9=function(p,C,V){return p.split(C).LM.split(V).Yd}; Y9=function(p){p.U2=void 0;p.yr=0;p.jH=0}; zk=function(p,C,V){p.isFocused(C);return C-p.jH+V<=p.XF[p.yr].length}; b5Y=function(p){if(!p.U2){var C=p.XF[p.yr];p.U2=new DataView(C.buffer,C.byteOffset,C.length)}return p.U2}; R4=function(p,C,V){p=p.AB(C===void 0?0:C,V===void 0?-1:V);C=new Uint8Array(p.length);try{C.set(p)}catch(N){for(V=0;V>10;X=56320|X&1023}PH[H++]=X}}X=String.fromCharCode.apply(String,PH); H<1024&&(X=X.substring(0,H));V.push(X)}return V.join("")}; LU=function(p,C){var V;if((V=$9)==null?0:V.encodeInto)return C=$9.encodeInto(p,C),C.read>6|192:((H&64512)===55296&&N+1>18|240,C[V++]=H>>12&63|128):C[V++]=H>>12|224,C[V++]=H>>6&63|128),C[V++]=H&63|128)}return V}; gc=function(p){if($9)return $9.encode(p);var C=new Uint8Array(Math.ceil(p.length*1.2)),V=LU(p,C);C.lengthV&&(C=C.subarray(0,V));return C}; WH=function(p){this.T=p;this.pos=0;this.C=-1}; Q3=function(p){var C=p.T.getUint8(p.pos);++p.pos;if(C<128)return C;for(var V=C&127,N=1;C>=128;)C=p.T.getUint8(p.pos),++p.pos,N*=128,V+=(C&127)*N;return V}; rc=function(p,C){var V=p.C;for(p.C=-1;p.T.sC(p.pos,1);){V<0&&(V=Q3(p));var N=V>>3,H=V&7;if(N===C)return!0;if(N>C){p.C=V;break}V=-1;switch(H){case 0:Q3(p);break;case 1:p.pos+=8;break;case 2:N=Q3(p);p.pos+=N;break;case 5:p.pos+=4}}return!1}; BH=function(p,C){if(rc(p,C))return Q3(p)}; Gk=function(p,C){if(rc(p,C))return!!Q3(p)}; pW=function(p,C){if(rc(p,C)){C=Q3(p);var V=p.T.AB(p.pos,C);p.pos+=C;return V}}; CW=function(p,C){if(p=pW(p,C))return g.wc(p)}; js=function(p,C,V){if(p=pW(p,C))return V(new WH(new o4([p])))}; Vi=function(p,C){for(var V=[];rc(p,C);)V.push(Q3(p));return V.length?V:void 0}; Ng=function(p,C,V){for(var N=[],H;H=pW(p,C);)N.push(V(new WH(new o4([H]))));return N.length?N:void 0}; HJ=function(p,C){p=p instanceof Uint8Array?new o4([p]):p;return C(new WH(p))}; k1Q=function(p,C,V){if(C&&V&&V.buffer===C.exports.memory.buffer){var N=C.realloc(V.byteOffset,p);if(N)return new Uint8Array(C.exports.memory.buffer,N,p)}p=C?new Uint8Array(C.exports.memory.buffer,C.malloc(p),p):new Uint8Array(p);V&&p.set(V);return p}; xe1=function(p,C){this.TN=C;this.pos=0;this.C=[];this.T=k1Q(p===void 0?4096:p,C);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)}; Xq=function(p,C){C=p.pos+C;if(!(p.T.length>=C)){for(var V=p.T.length*2;V268435455){Xq(p,4);for(var V=C&1073741823,N=0;N<4;N++)p.view.setUint8(p.pos,V&127|128),V>>=7,p.pos+=1;C=Math.floor(C/268435456)}for(Xq(p,4);C>127;)p.view.setUint8(p.pos,C&127|128),C>>=7,p.pos+=1;p.view.setUint8(p.pos,C);p.pos+=1}; i8=function(p,C,V){V!==void 0&&(d_(p,C*8),d_(p,V))}; hq=function(p,C,V){V!==void 0&&i8(p,C,V?1:0)}; sF=function(p,C,V){V!==void 0&&(d_(p,C*8+2),C=V.length,d_(p,C),Xq(p,C),p.T.set(V,p.pos),p.pos+=C)}; aE=function(p,C,V){V!==void 0&&(YXX(p,C,Math.ceil(Math.log2(V.length*4+2)/7)),Xq(p,V.length*1.2),C=LU(V,p.T.subarray(p.pos)),p.pos+C>p.T.length&&(Xq(p,C),C=LU(V,p.T.subarray(p.pos))),p.pos+=C,zka(p))}; YXX=function(p,C,V){V=V===void 0?2:V;d_(p,C*8+2);p.C.push(p.pos);p.C.push(V);p.pos+=V}; zka=function(p){for(var C=p.C.pop(),V=p.C.pop(),N=p.pos-V-C;C--;){var H=C?128:0;p.view.setUint8(V++,N&127|H);N>>=7}}; EF=function(p,C,V,N,H){V&&(YXX(p,C,H===void 0?3:H),N(p,V),zka(p))}; g.l8=function(p,C,V){V=new xe1(4096,V);C(V,p);return new Uint8Array(V.T.buffer,V.T.byteOffset,V.pos)}; g.tq=function(p){var C=new WH(new o4([Fv(decodeURIComponent(p))]));p=CW(C,2);C=BH(C,4);var V=Rkv[C];if(typeof V==="undefined")throw p=new g.Bw("Failed to recognize field number",{name:"EntityKeyHelperError",EQn:C}),g.nm(p),p;return{aD:C,entityType:V,entityId:p}}; g.cJ=function(p,C){var V=new xe1;sF(V,2,gc(p));p=npH[C];if(typeof p==="undefined")throw C=new g.Bw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:C}),g.nm(C),C;i8(V,4,p);i8(V,5,1);C=new Uint8Array(V.T.buffer,V.T.byteOffset,V.pos);return encodeURIComponent(g.mq(C))}; Tf=function(p,C,V,N){if(N===void 0)return N=Object.assign({},p[C]||{}),V=(delete N[V],N),N={},Object.assign({},p,(N[C]=V,N));var H={},X={};return Object.assign({},p,(X[C]=Object.assign({},p[C],(H[V]=N,H)),X))}; ekY=function(p,C,V,N,H){var X=p[C];if(X==null||!X[V])return p;N=g.Ad(X[V],N,H==="REPEATED_FIELDS_MERGE_OPTION_APPEND");H={};X={};return Object.assign({},p,(X[C]=Object.assign({},p[C],(H[V]=N,H)),X))}; PRV=function(p,C){p=p===void 0?{}:p;switch(C.type){case "ENTITY_LOADED":return C.payload.reduce(function(N,H){var X,d=(X=H.options)==null?void 0:X.persistenceOption;if(d&&d!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&d!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return N;if(!H.entityKey)return g.nm(Error("Missing entity key")),N;if(H.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!H.payload)return g.nm(new g.Bw("REPLACE entity mutation is missing a payload",{entityKey:H.entityKey})),N;var a=g.yW(H.payload); return Tf(N,a,H.entityKey,H.payload[a])}if(H.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{H=H.entityKey;try{var E=g.tq(H).entityType;a=Tf(N,E,H);break a}catch(c){if(c instanceof Error){g.nm(new g.Bw("Failed to deserialize entity key",{entityKey:H,xD:c.message}));a=N;break a}throw c;}a=void 0}return a}if(H.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!H.payload)return g.nm(new g.Bw("UPDATE entity mutation is missing a payload",{entityKey:H.entityKey})),N;a=g.yW(H.payload);var l,t;return ekY(N,a,H.entityKey, H.payload[a],(l=H.fieldMask)==null?void 0:(t=l.mergeOptions)==null?void 0:t.repeatedFieldsMergeOption)}return N},p); case "REPLACE_ENTITY":var V=C.payload;return Tf(p,V.entityType,V.key,V.kF);case "REPLACE_ENTITIES":return Object.keys(C.payload).reduce(function(N,H){var X=C.payload[H];return Object.keys(X).reduce(function(d,a){return Tf(d,H,a,X[a])},N)},p); case "UPDATE_ENTITY":return V=C.payload,ekY(p,V.entityType,V.key,V.kF,V.drn);default:return p}}; Mg=function(p,C,V){return p[C]?p[C][V]||null:null}; Jq=function(p){return window.Int32Array?new Int32Array(p):Array(p)}; Dk=function(p){g.Y.call(this);this.counter=[0,0,0,0];this.C=new Uint8Array(16);this.T=16;if(!wCQ){var C,V=new Uint8Array(256),N=new Uint8Array(256);var H=1;for(C=0;C<256;C++)V[H]=C,N[C]=H,H^=H<<1^(H>>7&&283);mC=new Uint8Array(256);vJ=Jq(256);Fq=Jq(256);Ss=Jq(256);KW=Jq(256);for(var X=0;X<256;X++){H=X?N[255^V[X]]:0;H^=H<<1^H<<2^H<<3^H<<4;H=H&255^H>>>8^99;mC[X]=H;C=H<<1^(H>>7&&283);var d=C^H;vJ[X]=C<<24|H<<16|H<<8|d;Fq[X]=d<<24|vJ[X]>>>8;Ss[X]=H<<24|Fq[X]>>>8;KW[X]=H<<24|Ss[X]>>>8}wCQ=!0}H=Jq(44);for(V= 0;V<4;V++)H[V]=p[4*V]<<24|p[4*V+1]<<16|p[4*V+2]<<8|p[4*V+3];for(N=1;V<44;V++)p=H[V-1],V%4||(p=(mC[p>>16&255]^N)<<24|mC[p>>8&255]<<16|mC[p&255]<<8|mC[p>>>24],N=N<<1^(N>>7&&283)),H[V]=H[V-4]^p;this.key=H}; u8=function(p,C){for(var V=0;V<4;V++)p.counter[V]=C[V*4]<<24|C[V*4+1]<<16|C[V*4+2]<<8|C[V*4+3];p.T=16}; $ea=function(p){for(var C=p.key,V=p.counter[0]^C[0],N=p.counter[1]^C[1],H=p.counter[2]^C[2],X=p.counter[3]^C[3],d=3;d>=0&&!(p.counter[d]=-~p.counter[d]);d--);for(var a,E,l=4;l<40;)d=vJ[V>>>24]^Fq[N>>16&255]^Ss[H>>8&255]^KW[X&255]^C[l++],a=vJ[N>>>24]^Fq[H>>16&255]^Ss[X>>8&255]^KW[V&255]^C[l++],E=vJ[H>>>24]^Fq[X>>16&255]^Ss[V>>8&255]^KW[N&255]^C[l++],X=vJ[X>>>24]^Fq[V>>16&255]^Ss[N>>8&255]^KW[H&255]^C[l++],V=d,N=a,H=E;p=p.C;d=C[40];p[0]=mC[V>>>24]^d>>>24;p[1]=mC[N>>16&255]^d>>16&255;p[2]=mC[H>>8&255]^ d>>8&255;p[3]=mC[X&255]^d&255;d=C[41];p[4]=mC[N>>>24]^d>>>24;p[5]=mC[H>>16&255]^d>>16&255;p[6]=mC[X>>8&255]^d>>8&255;p[7]=mC[V&255]^d&255;d=C[42];p[8]=mC[H>>>24]^d>>>24;p[9]=mC[X>>16&255]^d>>16&255;p[10]=mC[V>>8&255]^d>>8&255;p[11]=mC[N&255]^d&255;d=C[43];p[12]=mC[X>>>24]^d>>>24;p[13]=mC[V>>16&255]^d>>16&255;p[14]=mC[N>>8&255]^d>>8&255;p[15]=mC[H&255]^d&255}; fW=function(){if(!Zk&&!g.G4){if(UF)return UF;var p;UF=(p=window.crypto)==null?void 0:p.subtle;var C,V,N;if(((C=UF)==null?0:C.importKey)&&((V=UF)==null?0:V.sign)&&((N=UF)==null?0:N.encrypt))return UF;UF=void 0}}; g.OF=function(p){this.S=p}; g.yi=function(p){this.C=p}; qg=function(p){this.W=new Uint8Array(64);this.V=new Uint8Array(64);this.S=0;this.Y=new Uint8Array(64);this.C=0;this.W.set(p);this.V.set(p);for(p=0;p<64;p++)this.W[p]^=92,this.V[p]^=54;this.reset()}; Lea=function(p,C,V){for(var N=p.D,H=p.T[0],X=p.T[1],d=p.T[2],a=p.T[3],E=p.T[4],l=p.T[5],t=p.T[6],c=p.T[7],T,M,J,S=0;S<64;)S<16?(N[S]=J=C[V]<<24|C[V+1]<<16|C[V+2]<<8|C[V+3],V+=4):(T=N[S-2],M=N[S-15],J=N[S-7]+N[S-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3),N[S]=J),T=c+IE[S]+J+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&l^~E&t),M=((H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10))+(H&X^H&d^X&d),c=T+M,a+=T,S++,S<16?(N[S]=J=C[V]<<24|C[V+1]<<16|C[V+2]<<8|C[V+3],V+=4):(T= N[S-2],M=N[S-15],J=N[S-7]+N[S-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3),N[S]=J),T=t+IE[S]+J+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&E^~a&l),M=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&H^c&X^H&X),t=T+M,d+=T,S++,S<16?(N[S]=J=C[V]<<24|C[V+1]<<16|C[V+2]<<8|C[V+3],V+=4):(T=N[S-2],M=N[S-15],J=N[S-7]+N[S-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3),N[S]=J),T=l+IE[S]+J+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&a^ ~d&E),M=((t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10))+(t&c^t&H^c&H),l=T+M,X+=T,S++,S<16?(N[S]=J=C[V]<<24|C[V+1]<<16|C[V+2]<<8|C[V+3],V+=4):(T=N[S-2],M=N[S-15],J=N[S-7]+N[S-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3),N[S]=J),T=E+IE[S]+J+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&d^~X&a),M=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&t^l&c^t&c),J=c,c=a,a=J,J=t,t=d,d=J,J=l,l=X,X=J,E=H+T,H=T+M,S++;p.T[0]=H+p.T[0]|0;p.T[1]=X+p.T[1]|0;p.T[2]=d+p.T[2]|0;p.T[3]= a+p.T[3]|0;p.T[4]=E+p.T[4]|0;p.T[5]=l+p.T[5]|0;p.T[6]=t+p.T[6]|0;p.T[7]=c+p.T[7]|0}; Wej=function(p){var C=new Uint8Array(32),V=64-p.C;p.C>55&&(V+=64);var N=new Uint8Array(V);N[0]=128;for(var H=p.S*8,X=1;X<9;X++){var d=H%256;N[V-X]=d;H=(H-d)/256}p.update(N);for(V=0;V<8;V++)C[V*4]=p.T[V]>>>24,C[V*4+1]=p.T[V]>>>16&255,C[V*4+2]=p.T[V]>>>8&255,C[V*4+3]=p.T[V]&255;gpS(p);return C}; gpS=function(p){p.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];p.D=[];p.D.length=64;p.S=0;p.C=0}; QxX=function(p){this.T=p}; rN9=function(p,C,V){p=new qg(p.T);p.update(C);p.update(V);C=Wej(p);p.update(p.W);p.update(C);C=Wej(p);p.reset();return C}; ByQ=function(p){this.C=p}; G1y=function(p,C,V,N){var H,X,d;return g.I(function(a){switch(a.C){case 1:if(p.T){a.EY(2);break}return g.y(a,N.importKey("raw",p.C,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:p.T=a.T;case 2:return H=new Uint8Array(C.length+V.length),H.set(C),H.set(V,C.length),X={name:"HMAC",hash:"SHA-256"},g.y(a,N.sign(X,p.T,H),4);case 4:return d=a.T,a.return(new Uint8Array(d))}})}; pls=function(p,C,V){p.V||(p.V=new QxX(p.C));return rN9(p.V,C,V)}; CVv=function(p,C,V){var N,H;return g.I(function(X){if(X.C==1){N=fW();if(!N)return X.return(pls(p,C,V));g.vv(X,3);return g.y(X,G1y(p,C,V,N),5)}if(X.C!=3)return X.return(X.T);H=g.Sa(X);g.eG(H);Zk=!0;return X.return(pls(p,C,V))})}; VFy=function(p){for(var C="",V=0;V=1?p[p.length-1]:null;for(var N=g.F(p),H=N.next();!H.done;H=N.next())if(H=H.value,H.width&&H.height&&(V&&H.width>=C||!V&&H.height>=C))return H;for(C=p.length-1;C>=0;C--)if(V&&p[C].width||!V&&p[C].height)return p[C];return p[0]}; Aq=function(){this.state=1;this.w7=null}; a91=function(p,C,V,N,H,X){var d=d===void 0?"trayride":d;V?(p.UZ(2),g.md(V,function(){if(window[d])shv(p,N,d,H);else{p.UZ(3);var a=fDS(V),E=document.getElementById(a);E&&(Zd1(a),E.parentNode.removeChild(E));g.eG(new g.Bw("Unable to load Botguard","from "+V))}},X)):C?(X=g.iK("SCRIPT"),C instanceof Q5?(X.textContent=rV(C),Bn(X)):X.textContent=C,X.nonce=Wn(window),document.head.appendChild(X),document.head.removeChild(X),window[d]?shv(p,N,d,H):(p.UZ(4),g.eG(new g.Bw("Unable to load Botguard from JS")))): g.eG(new g.Bw("Unable to load VM; no url or JS provided"))}; shv=function(p,C,V,N){p.UZ(5);try{var H=new U$({program:C,globalName:V,OW:{disable:!g.Zr("att_web_record_metrics"),SU:"aGIf"}});H.Or.then(function(){p.UZ(6);N&&N(C)}); p.f2(H)}catch(X){p.UZ(7),X instanceof Error&&g.eG(X)}}; oE=function(){var p=g.zV("yt.abuse.playerAttLoader");return p&&["bgvma","bgvmb","bgvmc"].every(function(C){return C in p})?p:null}; kY=function(){Aq.apply(this,arguments)}; xY=function(){}; EJX=function(p,C,V){for(var N=!1,H=g.F(p.jU.entries()),X=H.next();!X.done;X=H.next())X=g.F(X.value).next().value,X.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X.Br==="core"&&(N=!0);if(N){a:if(!V){p=g.F(p.jU.entries());for(V=p.next();!V.done;V=p.next())if(N=g.F(V.value),V=N.next().value,N=N.next().value,V.slotType==="SLOT_TYPE_IN_PLAYER"&&V.Br==="core"){V=N.layoutId;break a}V=void 0}V?C.lI(V):S2("No triggering layout ID available when attempting to mute.")}}; YY=function(p,C){this.I8=p;this.Bp=C}; zf=function(){}; RE=function(){}; tF9=function(p){g.Y.call(this);var C=this;this.YG=p;this.T=new Map;nW(this,"commandExecutorCommand",function(V,N,H){l9s(C,V.commands,N,H)}); nW(this,"clickTrackingParams",function(){})}; c3e=function(p,C){nW(p,C.sK(),function(V,N,H){C.uO(V,N,H)})}; nW=function(p,C,V){p.fS();p.T.get(C)&&g.nm(Error("Extension name "+C+" already registered"));p.T.set(C,V)}; l9s=function(p,C,V,N){C=C===void 0?[]:C;p.fS();var H=[],X=[];C=g.F(C);for(var d=C.next();!d.done;d=C.next())d=d.value,g.n(d,T$V)||g.n(d,MF9)?H.push(d):X.push(d);H=g.F(H);for(C=H.next();!C.done;C=H.next())es(p,C.value,V,N);X=g.F(X);for(H=X.next();!H.done;H=X.next())es(p,H.value,V,N)}; es=function(p,C,V,N){p.fS();C.loggingUrls&&J3Q(p,"loggingUrls",C.loggingUrls,V,N);C=g.F(Object.entries(C));for(var H=C.next();!H.done;H=C.next()){var X=g.F(H.value);H=X.next().value;X=X.next().value;H==="openPopupAction"?p.YG.get().FU("innertubeCommand",{openPopupAction:X}):H==="confirmDialogEndpoint"?p.YG.get().FU("innertubeCommand",{confirmDialogEndpoint:X}):mMQ.hasOwnProperty(H)||J3Q(p,H,X,V,N)}}; J3Q=function(p,C,V,N,H){if((p=p.T.get(C))&&typeof p==="function")try{p(V,N,H)}catch(X){g.nm(X)}else C=new g.Bw("Unhandled field",C),g.eG(C)}; PJ=function(p,C,V){this.w6=p;this.T=C;this.No=V}; w_=function(p){this.value=p}; $Y=function(p){this.value=p}; LW=function(p){this.value=p}; g_=function(p){this.value=p}; WJ=function(p){this.value=p}; Qi=function(p){this.value=p}; r_=function(p){this.value=p}; BJ=function(){w_.apply(this,arguments)}; Gf=function(p){this.value=p}; pF=function(p){this.value=p}; CF=function(p){this.value=p}; jT=function(p){this.value=p}; Vy=function(p){this.value=p}; NG=function(p){this.value=p}; HV=function(p){this.value=p}; Xw=function(p){this.value=p}; dg=function(p){this.value=p}; i6=function(p){this.value=p}; ha=function(){w_.apply(this,arguments)}; sr=function(p){this.value=p}; aw=function(p){this.value=p}; Er=function(p){this.value=p}; l6=function(p){this.value=p}; ta=function(p){this.value=p}; cV=function(p){this.value=p}; Tc=function(p){this.value=p}; MG=function(p){this.value=p}; Ja=function(p){this.value=p}; mt=function(p){this.value=p}; vV=function(p){this.value=p}; Fw=function(p){this.value=p}; ST=function(p){this.value=p}; KF=function(p){this.value=p}; DS=function(p){this.value=p}; u6=function(p){this.value=p}; ZS=function(p){this.value=p}; Ur=function(p){this.value=p}; fF=function(p){this.value=p}; Or=function(p){this.value=p}; yy=function(p){this.value=p}; qG=function(p){this.value=p}; Iw=function(p){this.value=p}; b6=function(p){this.value=p}; Aa=function(p){this.value=p}; ow=function(p){this.value=p}; k_=function(p){this.value=p}; x_=function(p){this.value=p}; Y_=function(p){this.value=p}; zc=function(p){this.value=p}; Rw=function(p){this.value=p}; nF=function(p){this.value=p}; eT=function(p){this.value=p}; PV=function(p){this.value=p}; wg=function(p){this.value=p}; $_=function(p){this.value=p}; LF=function(p){this.value=p}; gg=function(p){this.value=p}; WV=function(){w_.apply(this,arguments)}; Qy=function(p){this.value=p}; rg=function(){w_.apply(this,arguments)}; BV=function(){w_.apply(this,arguments)}; Gc=function(){w_.apply(this,arguments)}; pP=function(){w_.apply(this,arguments)}; CP=function(){w_.apply(this,arguments)}; jU=function(p){this.value=p}; VV=function(p){this.value=p}; Nz=function(p){this.value=p}; HU=function(p){this.value=p}; XJ=function(p){this.value=p}; iH=function(p,C,V){if(V&&!V.includes(p.layoutType))return!1;C=g.F(C);for(V=C.next();!V.done;V=C.next())if(!dt(p.clientMetadata,V.value))return!1;return!0}; h4=function(){return""}; vJu=function(p,C){switch(p){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 C(p),8}}; sf=function(p,C,V,N){N=N===void 0?!1:N;c5.call(this,p);this.jO=V;this.Wb=N;this.args=[];C&&this.args.push(C)}; G=function(p,C,V,N){N=N===void 0?!1:N;c5.call(this,p);this.jO=V;this.Wb=N;this.args=[];C&&this.args.push(C)}; a3=function(p){var C=new Map;p.forEach(function(V){C.set(V.getType(),V)}); this.T=C}; dt=function(p,C){return p.T.has(C)}; Ef=function(p,C){p=p.T.get(C);if(p!==void 0)return p.get()}; lH=function(p){return Array.from(p.T.keys())}; t4=function(p,C,V){if(V&&V!==p.slotType)return!1;C=g.F(C);for(V=C.next();!V.done;V=C.next())if(!dt(p.clientMetadata,V.value))return!1;return!0}; SIv=function(p){var C;return((C=Fdv.get(p))==null?void 0:C.MA)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Tm=function(p,C){var V={type:C.slotType,controlFlowManagerLayer:KdH.get(C.Br)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};C.slotEntryTrigger&&(V.entryTriggerType=C.slotEntryTrigger.triggerType);C.slotPhysicalPosition!==1&&(V.slotPhysicalPosition=C.slotPhysicalPosition);if(p){V.debugData={slotId:C.slotId};if(p=C.slotEntryTrigger)V.debugData.slotEntryTriggerData=cU(p);p=C.slotFulfillmentTriggers;V.debugData.fulfillmentTriggerData=[];p=g.F(p);for(var N=p.next();!N.done;N=p.next())V.debugData.fulfillmentTriggerData.push(cU(N.value)); C=C.slotExpirationTriggers;V.debugData.expirationTriggerData=[];C=g.F(C);for(p=C.next();!p.done;p=C.next())V.debugData.expirationTriggerData.push(cU(p.value))}return V}; DM1=function(p,C){var V={type:C.layoutType,controlFlowManagerLayer:KdH.get(C.Br)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};p&&(V.debugData={layoutId:C.layoutId});return V}; cU=function(p,C){var V={type:p.triggerType};C!=null&&(V.category=C);p.triggeringSlotId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedSlotId=p.triggeringSlotId);p.triggeringLayoutId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedLayoutId=p.triggeringLayoutId);return V}; u39=function(p,C,V,N){C={opportunityType:C};p&&(N||V)&&(N=g.AU(N||[],function(H){return Tm(p,H)}),C.debugData=Object.assign({},V&&V.length>0?{associatedSlotId:V}:{},N.length>0?{slots:N}:{})); return C}; J4=function(p,C){return function(V){return Z1L(Mz(p),C.slotId,C.slotType,C.slotPhysicalPosition,C.Br,C.slotEntryTrigger,C.slotFulfillmentTriggers,C.slotExpirationTriggers,V.layoutId,V.layoutType,V.Br)}}; Z1L=function(p,C,V,N,H,X,d,a,E,l,t){return{adClientDataEntry:{slotData:Tm(p,{slotId:C,slotType:V,slotPhysicalPosition:N,Br:H,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:a,clientMetadata:new a3([])}),layoutData:DM1(p,{layoutId:E,layoutType:l,Br:t,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],y$:new Map,clientMetadata:new a3([]),eb:{}})}}}; vU=function(p){this.x_=p;p=Math.random();var C=this.x_.get();C=g.mi(C.N.K().experiments,"html5_debug_data_log_probability");C=Number.isFinite(C)&&C>=0&&C<=1?C:0;this.T=p1){g.eG(new g.Bw("Exit already started",{current:p.currentState}));var V=!1}else V=!0;if(!V)return!1;p.currentState=2;p.T=C;return!0}; KR=function(p){if(p.currentState!==2)return!1;p.currentState=3;return!0}; jSv=function(p,C){var V=new Map;p=g.F(p);for(var N=p.next();!N.done;N=p.next()){N=N.value;if(N.layoutType==="LAYOUT_TYPE_MEDIA")var H="v";else N.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(H=Ef(N.clientMetadata,"metadata_type_linked_in_player_layout_type"),H=H==="LAYOUT_TYPE_ENDCAP"||H==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":H==="LAYOUT_TYPE_SURVEY"?"s":H==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):H="u";V.set(N.layoutId,H);if(H==="u"){var X={};H=C;N=(X.c=N.layoutId,X);H.N.k_("uct",N)}}p= C.Zr();Ds={contentCpn:p,Kw:V};N={};V=(N.ct=V.size,N.c=p,N);C.N.k_("acc",V)}; Vpu=function(){Ds={contentCpn:"",Kw:new Map}}; uv=function(p){var C;return(C=Ds.Kw.get(p))!=null?C:"u"}; Zs=function(p,C,V){p.N.k_(C,V);NeH(p)}; Hqe=function(p){var C=p.layoutId,V=p.NS;if(p.e1){var N={};Zs(p.w6,"slso",(N.ec=C,N.is=V,N.ctp=uv(C),N))}}; UN=function(p){var C=p.layoutId,V=p.NS;if(p.e1){var N={};Zs(p.w6,"slse",(N.ec=C,N.is=V,N.ctp=uv(C),N))}}; Xay=function(p){var C=p.layoutId,V=p.NS,N=p.w6;p.e1&&(p={},Zs(N,"sleo",(p.xc=C,p.is=V,p.ctp=uv(C),p)),NeH(N))}; dys=function(p){var C=p.cpn,V=p.w6;p=p.NS;var N=V.Zr(),H={};Zs(V,"ce",(H.ec=C,H.ia=C!==N,H.r=Ds.Kw.has(C),H.is=p,H.ctp=uv(C),H))}; NeH=function(p){if(p.Zr()!==Ds.contentCpn){var C={};C=(C.c=Ds.contentCpn,C);p.N.k_("ccm",C)}}; iqY=function(p){var C=p.cpn,V=p.w6;p=p.NS;var N=V.Zr(),H={};Zs(V,"cx",(H.xc=C,H.ia=C!==N,H.r=Ds.Kw.has(C),H.is=p,H.ctp=uv(C),H))}; h3L=function(p){this.params=p;this.T=new Set}; sSS=function(p,C,V){if(!p.T.has(C)){p.T.add(C);var N={};p.params.Rx.Vr(C,Object.assign({},V,(N.p_ac=p.params.adCpn,N.p_isv=p.params.Vk&&p.params.K9,N)))}}; ON=function(p,C,V){if(fR(p.params.Rx.x_.get(),!0)){var N=V.flush,H={};sSS(p,C,(H.cts=V.currentTimeSec,H.f=N,H))}}; aUX=function(p,C){this.w6=p;this.x_=C}; yu=function(p){var C=[];if(p){p=g.F(Object.entries(p));for(var V=p.next();!V.done;V=p.next()){var N=g.F(V.value);V=N.next().value;N=N.next().value;N!==void 0&&(N=typeof N==="boolean"?""+ +N:(""+N).replace(/[:,=]/g,"_"),C.push(V+"."+N))}}return C.join(";")}; qD=function(p,C,V){C=C===void 0?{}:C;this.errorCode=p;this.details=C;this.severity=V===void 0?0:V}; Ir=function(p){return p===1||p===2}; bv=function(p,C){C=C===void 0?0:C;if(p instanceof qD)return p;p=p&&p instanceof Error?p:Error(""+p);Ir(C)?g.nm(p):g.eG(p);return new qD(C===1?"player.fatalexception":"player.exception",{name:""+p.name,message:""+p.message},C)}; E0e=function(p,C){function V(){var N=g.US.apply(0,arguments);p.removeEventListener("playing",V);C.apply(null,g.K(N))} p.addEventListener("playing",V)}; An=function(){var p=g.zV("yt.player.utils.videoElement_");p||(p=g.iK("VIDEO"),g.YH("yt.player.utils.videoElement_",p));return p}; or=function(p){var C=An();return!!(C&&C.canPlayType&&C.canPlayType(p))}; xZ=function(p){if(/opus/.test(p)&&g.kZ&&!q8("38")&&!g.Qg())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(p);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(p);if(/webm/.test(p)&&!uUs())return!1;p==='audio/mp4; codecs="mp4a.40.2"'&&(p='video/mp4; codecs="avc1.4d401f"');return!!or(p)}; lU1=function(p){try{var C=xZ('video/mp4; codecs="avc1.42001E"')||xZ('video/webm; codecs="vp9"');return(xZ('audio/mp4; codecs="mp4a.40.2"')||xZ('audio/webm; codecs="opus"'))&&(C||!p)||or('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(V){return"html5.missingapi"}}; YZ=function(){var p=An();return!(!p.webkitSupportsPresentationMode||typeof p.webkitSetPresentationMode!=="function")}; zx=function(){var p=An();try{var C=p.muted;p.muted=!C;return p.muted!==C}catch(V){}return!1}; tpV=function(){var p;return((p=navigator.connection)==null?void 0:p.type)||""}; g.Rr=function(){I_.apply(this,arguments)}; nR=function(p,C,V,N,H,X){this.sampleRate=p===void 0?0:p;this.numChannels=C===void 0?0:C;this.spatialAudioType=V===void 0?"SPATIAL_AUDIO_TYPE_NONE":V;this.T=N===void 0?!1:N;this.V=H===void 0?0:H;this.C=X===void 0?0:X}; wO=function(p,C,V,N,H,X,d,a,E){this.width=p;this.height=C;this.quality=X||e9(p,C);this.T=g.PB[this.quality];this.fps=V||0;this.stereoLayout=!H||N!=null&&N!=="UNKNOWN"&&N!=="RECTANGULAR"?0:H;this.projectionType=N?N==="EQUIRECTANGULAR"&&H===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":N:"UNKNOWN";(p=d)||(p=g.PB[this.quality],p===0?p="Autom\u00e1tico":(C=this.fps,V=this.projectionType,p=p.toString()+(V==="EQUIRECTANGULAR"||V==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||V==="MESH"?"s":"p")+(C>55?"60":C>49?"50":C> 39?"48":"")));this.qualityLabel=p;this.C=a||"";this.primaries=E||""}; e9=function(p,C){var V=Math.max(p,C);p=Math.min(p,C);C=$Z[0];for(var N=0;N<$Z.length;N++){var H=$Z[N],X=g.PB[H];if(V>=Math.floor(X*16/9)*1.3||p>=X*1.3)return C;C=H}return"tiny"}; WB=function(p,C,V){V=V===void 0?{}:V;this.id=p;this.mimeType=C;V.F$>0||(V.F$=16E3);Object.assign(this,V);p=g.F(this.id.split(";"));this.itag=p.next().value;this.T=p.next().value;this.containerType=LR(C);this.o$=gO[this.itag]||""}; Qu=function(p){return p.o$==="9"||p.o$==="("||p.o$==="9h"||p.o$==="(h"}; cOS=function(p){return p.o$==="H"||p.o$==="h"}; rO=function(p){return p.o$==="9h"||p.o$==="(h"}; BB=function(p){return p.o$==="1"||p.o$==="1h"}; Gx=function(p){return p.o$==="mac3"||p.o$==="meac3"||p.o$==="m"}; px=function(p){return p.o$==="MAC3"||p.o$==="MEAC3"||p.o$==="M"}; g.Cx=function(p){return p.containerType===1}; TeV=function(p){return p.o$==="("||p.o$==="(h"||p.o$==="H"}; jb=function(p){return p.mimeType==="application/x-mpegURL"}; g.VE=function(p,C){return{itag:+p.itag,lmt:C?0:p.lastModified,xtags:p.T||""}}; Mpu=function(p){var C=navigator.mediaCapabilities;if(C==null||!C.decodingInfo||p.o$==="f")return Promise.resolve();var V={type:p.audio&&p.video?"file":"media-source"};p.video&&(V.video={contentType:p.mimeType,width:p.video.width||640,height:p.video.height||360,bitrate:p.F$*8||1E6,framerate:p.video.fps||30});p.audio&&(V.audio={contentType:p.mimeType,channels:""+(p.audio.numChannels||2),bitrate:p.F$*8||128E3,samplerate:p.audio.sampleRate||44100});return C.decodingInfo(V).then(function(N){p.C=N})}; Nf=function(p){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(p)}; Hc=function(p){return/(vp9|vp09|vp8|avc1|av01)/.test(p)}; Xz=function(p){return p.includes("vtt")||p.includes("text/mp4")}; LR=function(p){return p.indexOf("/mp4")>=0?1:p.indexOf("/webm")>=0?2:p.indexOf("/x-flv")>=0?3:p.indexOf("/vtt")>=0?4:0}; dN=function(p,C,V,N,H,X){var d=new nR;C in g.PB||(C="small");C==="light"&&(C="tiny");N&&H?(H=Number(H),N=Number(N)):(H=g.PB[C],N=Math.round(H*16/9));X=new wO(N,H,0,null,void 0,C,X);p=unescape(p.replace(/"/g,'"'));return new WB(V,p,{audio:d,video:X})}; iX=function(p){var C="id="+p.id;p.video&&(C+=", res="+p.video.qualityLabel);var V,N;return C+", byterate=("+((V=p.ND)==null?void 0:V.toFixed(0))+", "+((N=p.F$)==null?void 0:N.toFixed(0))+")"}; hj=function(p,C){return{start:function(V){return p[V]}, end:function(V){return C[V]}, length:p.length}}; JOS=function(p,C,V){for(var N=[],H=[],X=0;X=C)return V}catch(N){}return-1}; EJ=function(p,C){return a7(p,C)>=0}; myX=function(p,C){if(!p)return NaN;C=a7(p,C);return C>=0?p.start(C):NaN}; lX=function(p,C){if(!p)return NaN;C=a7(p,C);return C>=0?p.end(C):NaN}; tj=function(p){return p&&p.length?p.end(p.length-1):NaN}; cc=function(p,C){p=lX(p,C);return p>=0?p-C:0}; Tw=function(p,C,V){for(var N=[],H=[],X=0;XV||(N.push(Math.max(C,p.start(X))-C),H.push(Math.min(V,p.end(X))-C));return hj(N,H)}; Mf=function(p,C,V,N){g.ca.call(this);var H=this;this.jr=p;this.start=C;this.end=V;this.isActive=N;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Ee={error:function(){!H.fS()&&H.isActive&&H.publish("error",H)}, updateend:function(){!H.fS()&&H.isActive&&H.publish("updateend",H)}}; g.TB(this.jr,this.Ee);this.VC=this.isActive}; mu=function(p,C,V,N,H,X){g.ca.call(this);var d=this;this.NW=p;this.S5=C;this.id=V;this.containerType=N;this.o$=H;this.K9=X;this.PF=this.Qe=this.lW=null;this.V_=!1;this.appendWindowStart=this.timestampOffset=0;this.Rh=hj([],[]);this.yH=!1;this.JA=[];this.hv=Jj?[]:void 0;this.qZ=function(E){return d.publish(E.type,d)}; var a;if((a=this.NW)==null?0:a.addEventListener)this.NW.addEventListener("updateend",this.qZ),this.NW.addEventListener("error",this.qZ)}; rN=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; pV=function(p,C){this.sR=p;this.T=C===void 0?!1:C;this.C=!1}; CV=function(p,C,V){V=V===void 0?!1:V;g.Y.call(this);this.mediaElement=p;this.Hr=C;this.isView=V;this.Y=0;this.S=!1;this.W=!0;this.Z=0;this.callback=null;this.J=!1;this.Hr||(this.S5=this.mediaElement.V$());this.events=new g.Rr(this);g.R(this,this.events);this.V=new pV(this.Hr?window.URL.createObjectURL(this.Hr):this.S5.webkitMediaSourceURL,!0);p=this.Hr||this.S5;bO(this.events,p,["sourceopen","webkitsourceopen"],this.fEx);bO(this.events,p,["sourceclose","webkitsourceclose"],this.i1k);this.D={updateend:this.SC}}; v0j=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Fz1=function(p,C){j6(p)?g.mo(function(){C(p)}):p.callback=C}; Sy1=function(p,C,V){if(VP){var N;Nr(p.mediaElement,{l:"mswssb",sr:(N=p.mediaElement.Ta)==null?void 0:Hj(N)},!1);g.TB(C,p.D,p);g.TB(V,p.D,p)}p.T=C;p.C=V;g.R(p,C);g.R(p,V)}; Kzu=function(p,C,V,N){N=C.mimeType+(N===void 0?"":N);var H=V.mimeType;C=C.o$;V=V.o$;var X;p.a$=(X=p.Hr)==null?void 0:X.addSourceBuffer(H);var d;p.b_=N.split(";")[0]==="fakesb"?void 0:(d=p.Hr)==null?void 0:d.addSourceBuffer(N);p.S5&&(p.S5.webkitSourceAddId("0",H),p.S5.webkitSourceAddId("1",N));X=new mu(p.a$,p.S5,"0",LR(H),V,!1);N=new mu(p.b_,p.S5,"1",LR(N),C,!0);Sy1(p,X,N)}; XO=function(p){return!!p.T||!!p.C}; j6=function(p){try{return dl(p)==="open"}catch(C){return!1}}; dl=function(p){if(p.Hr)return p.Hr.readyState;switch(p.S5.webkitSourceState){case p.S5.SOURCE_OPEN:return"open";case p.S5.SOURCE_ENDED:return"ended";default:return"closed"}}; iU=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; DyQ=function(p){j6(p)&&(p.Hr?p.Hr.endOfStream():p.S5.webkitSourceEndOfStream(p.S5.EOS_NO_ERROR))}; uiL=function(p,C,V,N){if(!p.T||!p.C)return null;var H=p.T.isView()?p.T.jr:p.T,X=p.C.isView()?p.C.jr:p.C,d=new CV(p.mediaElement,p.Hr,!0);d.V=p.V;Sy1(d,new Mf(H,C,V,N),new Mf(X,C,V,N));j6(p)||p.T.pp(p.T.yZ());return d}; Zqy=function(p){var C;(C=p.T)==null||C.aO();var V;(V=p.C)==null||V.aO();p.W=!1}; hK=function(){var p=this;this.B2=this.Jo=IjQ;this.promise=new g.um(function(C,V){p.Jo=C;p.B2=V})}; s3=function(){g.Y.call(this);this.UM=!1;this.sR=null;this.D=this.Y=!1;this.S=new g.h8;this.Ta=null;g.R(this,this.S)}; ak=function(p){p=p.cW();return p.length<1?NaN:p.end(p.length-1)}; UyV=function(p){!p.C&&v0j()&&(p.V?p.V.then(function(){return UyV(p)}):p.U8()||(p.C=p.In()))}; fUV=function(p){p.C&&(p.C.dispose(),p.C=void 0)}; Nr=function(p,C,V){var N;((N=p.Ta)==null?0:N.Gk())&&p.Ta.k_("rms",C,V===void 0?!1:V)}; Oq9=function(p,C,V){p.isPaused()||p.getCurrentTime()>C||V>10||(p.play(),g.F5(function(){Oq9(p,p.getCurrentTime(),V+1)},500))}; yOv=function(p,C){p.sR&&p.sR.sE(C)||(p.sR&&p.sR.dispose(),p.sR=C)}; E3=function(p){return cc(p.yx(),p.getCurrentTime())}; qyL=function(p,C){if(p.wh()===0||p.hasError())return!1;var V=p.getCurrentTime()>0;return C>=0&&(p=p.cW(),p.length||!V)?EJ(p,C):V}; lU=function(p){p.U8()&&(p.Ta&&p.Ta.Hm("rs_s"),BW&&p.getCurrentTime()>0&&p.seekTo(0),p.FI(),p.load(),yOv(p,null));delete p.V}; tK=function(p){switch(p.LO()){case 2:return"progressive.net.retryexhausted";case 3:return p=p.FF(),(p==null?0:p.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||IUS&&(p==null?0:p.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.cj=function(p,C,V){this.UE=C===void 0?null:C;this.seekSource=V===void 0?null:V;this.state=p||64}; TP=function(p,C,V){V=V===void 0?!1:V;return bqa(p,C.getCurrentTime(),(0,g.Ip)(),E3(C),V)}; Mr=function(p,C,V,N){if(!(C===p.state&&V===p.UE&&N===p.seekSource||C!==void 0&&(C&128&&!V||C&2&&C&16))){var H;if(H=C)H=C||p.state,H=!!(H&16||H&32);p=new g.cj(C,V,H?N?N:p.seekSource:null)}return p}; JK=function(p,C,V){return Mr(p,p.state|C,null,V===void 0?null:V)}; mE=function(p,C){return Mr(p,p.state&~C,null,null)}; vj=function(p,C,V,N){return Mr(p,(p.state|C)&~V,null,N===void 0?null:N)}; g.r=function(p,C){return!!(p.state&C)}; g.FO=function(p,C){return C.state===p.state&&C.UE===p.UE}; S6=function(p){return p.isPlaying()&&!g.r(p,16)&&!g.r(p,32)}; KV=function(p){return g.r(p,128)?-1:g.r(p,2)?0:g.r(p,2048)?3:g.r(p,64)?-1:g.r(p,1)&&!g.r(p,32)?3:g.r(p,8)?1:g.r(p,4)?2:-1}; uU=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D){g.Y.call(this);var Z=this;this.FN=p;this.slot=C;this.layout=V;this.No=N;this.AQ=H;this.pS=X;this.mx=d;this.sZ=a;this.zk=E;this.GA=l;this.position=c;this.Y=T;this.x_=M;this.Y6=J;this.e5=S;this.context=D;this.lc=!0;this.W=!1;this.JQ="not_rendering";this.C=!1;this.V=new FN;p=Ef(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId);var f;p=((f=D5(this))==null?void 0:f.progressCommands)||[];this.S=new qKS(E, p,V.layoutId,function(){return Z.wH()}); this.T=new h3L({adCpn:this.layout.layoutId,Rx:D.Rx,Vk:this.Y6,K9:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Z5=function(p){return{layoutId:p.oO(),NS:p.Y6,w6:p.pS.get(),e1:p.sV()}}; U3=function(p,C){return C.layoutId!==p.layout.layoutId?(p.FN.OV(p.slot,C,new sf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+p.layout.layoutId+("and LayoutType: "+p.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; fV=function(p){p.JQ="rendering_start_requested";p.GA(-1)}; D5=function(p){return Ef(p.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; AOX=function(p){S2("Received layout exit signal when not in layout exit flow.",p.slot,p.layout)}; o0Q=function(p){var C;return((C=O3(p.pS.get(),2))==null?void 0:C.clientPlaybackNonce)||""}; yP=function(p,C){switch(C){case "normal":p.tQ("complete");break;case "skipped":p.tQ("skip");break;case "abandoned":zl(p.gV,"impression")&&p.tQ("abandon")}}; qr=function(p,C){p.W||(C=new g.Kt(C.state,new g.cj),p.W=!0);return C}; Ik=function(p,C){Jn(C)?p.GA(1):g.u$(C,4)&&!g.u$(C,2)&&p.gS();D7(C,4)<0&&!(D7(C,2)<0)&&p.Oj()}; kBe=function(p){p.position===0&&(p.sZ.get(),p=Ef(p.layout.clientMetadata,"metadata_type_ad_placement_config").kind,p={adBreakType:bU(p)},NR("ad_bl"),g.HH(p))}; AK=function(p,C){xu(p.gV,C,!p.C)}; Yys=function(p){var C;return(((C=D5(p))==null?void 0:C.progressCommands)||[]).findIndex(function(V){return!!g.n(V==null?void 0:V.command,xyu)})!==-1}; ok=function(p,C){var V=Ef(p.clientMetadata,"metadata_type_eligible_for_ssap");return V===void 0?(S2("Expected SSAP eligibility in PlayerBytes factory",p),!1):C.sV(V)}; kL=function(p,C){if(!Cs(C.get(),"html5_ssap_pass_transition_reason"))return 3;switch(p){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return S2("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return S2("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:p}),3;default:N1(p,"unknown layoutExitReason")}}; z3Y=function(p){S2("getExitReason: unexpected reason",void 0,void 0,{reason:p})}; xL=function(p,C){if(Cs(C.get(),"html5_ssap_pass_transition_reason"))switch(p){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return z3Y(p),"abandoned";case 3:case 1:return z3Y(p),"error";default:N1(p,"unexpected transition reason")}else switch(p){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return S2("getExitReason: unexpected reason",void 0,void 0,{reason:p}),"error";default:N1(p,"unexpected transition reason")}}; YL=function(p,C,V){dc(p,V)||hd(p,C,V);dc(p,"video_to_ad")||hd(p,C,"video_to_ad");dc(p,"ad_to_video")||hd(p,C,"ad_to_video");dc(p,"ad_to_ad")||hd(p,C,"ad_to_ad")}; zP=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z){uU.call(this,p,C,V,N,H,X,d,a,l,t,c,T,M,J,S,D,Z);var f=this;this.YG=E;this.wj=c;this.dM=!0;this.Dz=this.Xg=0;this.mA=KJ(function(){Hqe(Z5(f));f.FN.gy(f.slot,f.layout)}); this.Co=KJ(function(){Xay(Z5(f));f.JQ!=="rendering_stop_requested"&&f.wj(f);f.layoutExitReason?f.FN.C1(f.slot,f.layout,f.layoutExitReason):AOX(f)}); this.Yt=new g.Ib(200);this.Yt.listen("tick",function(){f.m6()}); g.R(this,this.Yt)}; nV=function(p){p.Dz=Date.now();Rk(p,p.Xg);p.Yt.start()}; R3V=function(p){p.Xg=p.wH();p.nW(p.Xg/1E3,!0);Rk(p,p.Xg)}; Rk=function(p,C){C={current:C/1E3,duration:p.wH()/1E3};p.YG.get().FU("onAdPlaybackProgress",C)}; e6=function(p){zP.call(this,p.FN,p.slot,p.Sq,p.No,p.AQ,p.pS,p.mx,p.sZ,p.YG,p.zk,p.GA,p.wj,p.Ri,p.Mm,p.x_,p.Y6,p.e5,p.context)}; Pj=function(p){zP.call(this,p.FN,p.slot,p.Sq,p.No,p.AQ,p.pS,p.mx,p.sZ,p.YG,p.zk,p.GA,p.wj,p.Ri,p.Mm,p.x_,p.Y6,p.e5,p.context)}; wl=function(){Pj.apply(this,arguments)}; n09=function(p){return ok(p.slot,p.x_.get())?new wl(p):new e6(p)}; gl=function(p){uU.call(this,p.callback,p.slot,p.Sq,p.No,p.AQ,p.pS,p.mx,p.sZ,p.zk,p.GA,p.wj,p.Ri,p.Mm,p.x_,p.Y6,p.e5,p.context);var C=this;this.adCpn="";this.wE=0;this.fz=!1;this.sQ=0;this.mA=KJ(function(){Hqe(Z5(C));C.FN.gy(C.slot,C.layout)}); this.Co=KJ(function(){Xay(Z5(C));C.JQ!=="rendering_stop_requested"&&C.wj(C);C.layoutExitReason?C.FN.C1(C.slot,C.layout,C.layoutExitReason):AOX(C)}); this.GM=p.GM;this.gY=p.gY;this.iJ=p.iJ;this.YG=p.YG;this.fd=p.fd;this.wj=p.wj;if(!this.sV()){Cs(this.x_.get(),"html5_disable_media_load_timeout")||(this.N4=new g.N8(function(){C.JH("load_timeout",new sf("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); p=$L(this.x_.get());var V=LV(this.x_.get());p&&V&&(this.gZ=new g.N8(function(){var N=Ef(C.layout.clientMetadata,"metadata_type_preload_player_vars");N&&C.gY.get().N.preloadVideoByPlayerVars(N,2,300)}))}}; Pqe=function(p,C){var V=Ef(C.clientMetadata,"metadata_type_ad_video_id"),N=Ef(C.clientMetadata,"metadata_type_legacy_info_card_vast_extension");V&&N&&p.fd.get().N.K().vr.add(V,{IY:N});(C=Ef(C.clientMetadata,"metadata_type_sodar_extension_data"))&&$MV(p.GM.get(),C);e31(p.mx.get(),!1)}; way=function(p){e31(p.mx.get(),!0);var C;((C=p.shrunkenPlayerBytesConfig)==null?0:C.shouldRequestShrunkenPlayerBytes)&&p.mx.get().Gz(!1)}; $yy=function(p){var C=Ef(p.Bc().clientMetadata,"metadata_type_player_bytes_slot_metadata");C===void 0&&S2("PlayerBytesSlotMetadata is not filled",p.Bc(),p.De());return(C==null?void 0:C.eX)===!0}; Wj=function(){gl.apply(this,arguments)}; QP=function(){Wj.apply(this,arguments)}; Lzs=function(p){return n09(Object.assign({},p,{FN:p.callback,GA:function(){}}))}; g0e=function(p){return new gl(Object.assign({},p,{GA:function(C){p.YG.get().FU("onAdIntroStateChange",C)}}))}; WzV=function(p){function C(V){p.YG.get().Fk(V)} return ok(p.slot,p.x_.get())?new QP(Object.assign({},p,{GA:C})):new gl(Object.assign({},p,{GA:C}))}; rl=function(p){for(var C=p.Sq,V=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],N=g.F(Ay()),H=N.next();!H.done;H=N.next())V.push(H.value);if(Vu(C,{a6:V,OO:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Lzs(p);C=p.Sq;V=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];N=g.F(Ay());for(H=N.next();!H.done;H=N.next())V.push(H.value);if(Vu(C,{a6:V,OO:["LAYOUT_TYPE_MEDIA"]}))return dt(p.Sq.clientMetadata,"metadata_type_ad_intro")?g0e(p):WzV(p)}; rOe=function(p){var C=Ef(p.clientMetadata,"metadata_type_ad_placement_config").kind,V=Ef(p.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:p.layoutId,adType:QS9(V),adBreakType:bU(C)}}; bU=function(p){switch(p){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"}}; QS9=function(p){switch(p){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; Bey=function(p){try{return new Bj(p.E_,p.slot,p.layout,p.u9,p.xl,p.pS,p.kG,p.gY,p.oH,p.mx,p.Kc$,p)}catch(C){}}; Bj=function(p,C,V,N,H,X,d,a,E,l,t,c){g.Y.call(this);this.E_=p;this.slot=C;this.layout=V;this.u9=N;this.xl=H;this.pS=X;this.kG=d;this.gY=a;this.oH=E;this.mx=l;this.params=c;this.lc=!0;p=rl(t);if(!p)throw Error("Invalid params for sublayout");this.K1=p}; GBV=function(){this.T=1;this.C=new FN}; GP=function(p,C,V,N,H,X,d,a,E,l,t,c,T){g.Y.call(this);this.callback=p;this.pS=C;this.kG=V;this.gY=N;this.mx=H;this.sZ=X;this.j1=d;this.slot=a;this.layout=E;this.u9=l;this.u0=t;this.oH=c;this.x_=T;this.lc=!0;this.mK=!1;this.H6=[];this.Op=-1;this.IL=!1;this.g2=new GBV}; pEu=function(p){var C;return(C=p.layout.HK)!=null?C:Ef(p.layout.clientMetadata,"metadata_type_sub_layouts")}; pr=function(p){return{w6:p.pS.get(),NS:!1,e1:p.sV()}}; C$S=function(p,C,V){if(p.M1()===p.H6.length-1){var N,H;S2("Unexpected skip requested during the last sublayout",(N=p.P1())==null?void 0:N.Bc(),(H=p.P1())==null?void 0:H.De(),{requestingSlot:C,requestingLayout:V})}}; j09=function(p,C,V){return V.layoutId!==Cr(p,C,V)?(S2("onSkipRequested for a PlayerBytes layout that is not currently active",p.Bc(),p.De()),!1):!0}; V29=function(p){p.M1()===p.H6.length-1&&S2("Unexpected skip with target requested during the last sublayout")}; Nky=function(p,C,V){return V.renderingContent===void 0&&V.layoutId!==Cr(p,C,V)?(S2("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",p.Bc(),p.De(),{requestingSlot:C,requestingLayout:V}),!1):!0}; Hta=function(p,C,V,N){var H=Ef(C.De().clientMetadata,"metadata_type_ad_pod_skip_target");if(H&&H>0&&H0)){S2("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",p.slot,p.layout,{indexToPlay:C,layoutId:p.layout.layoutId});break a}p.Op=C;C=p.P1();if(p.M1()>0&&!p.sV()){var V=p.sZ.get();V.C=!1;var N={};V.T&&V.videoId&&(N.cttAuthInfo={token:V.T,videoId:V.videoId});XA("ad_to_ad",N)}p.ws(C)}}; HS=function(p){GP.call(this,p.E_,p.pS,p.kG,p.gY,p.mx,p.sZ,p.j1,p.slot,p.layout,p.u9,p.u0,p.oH,p.x_)}; it9=function(p){(p=p.P1())&&p.MP()}; Xc=function(p){GP.call(this,p.E_,p.pS,p.kG,p.gY,p.mx,p.sZ,p.j1,p.slot,p.layout,p.u9,p.u0,p.oH,p.x_);this.II=void 0}; hSj=function(p,C){p.mj()&&!KR(p.g2.C)||p.callback.C1(p.slot,p.layout,C)}; dF=function(p){return Cs(p.x_.get(),"html5_ssap_pass_transition_reason")}; s01=function(p,C,V){C.rP().currentState<2&&(V=xL(V,p.x_),C.XO(C.De(),V));V=C.rP().T;p.ke(p.slot,C.De(),V)}; a7Y=function(p,C){if(p.g2.C.currentState<2){var V=xL(C,p.x_);V==="error"?p.callback.OV(p.slot,p.layout,new sf("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:C},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):NV(p.u0,p.layout,V)}}; ib=function(p,C,V){C.rP().currentState>=2||(C.XO(C.De(),V),KR(C.rP())&&(o3(p.j1,p.slot,C.De(),V),p.II=void 0))}; EUy=function(p,C){p.g2.T===2&&C!==p.Zr()&&S2("onClipEntered: unknown cpn",p.slot,p.layout,{cpn:C})}; l71=function(p,C){var V=p.P1();if(V){var N=V.De().layoutId,H=p.M1()+1;p.mj()?ib(p,V,C):V.XO(V.De(),C);H>=0&&HH&&d.al(t,H-N);return t}; Su9=function(p,C,V){var N=Ef(C.clientMetadata,"metadata_type_sodar_extension_data");if(N)try{$MV(V,N)}catch(H){S2("Unexpected error when loading Sodar",p,C,{error:H})}}; KAs=function(p,C,V,N,H,X,d){cS(p,C,new g.Kt(V,new g.cj),N,H,d,!1,X)}; cS=function(p,C,V,N,H,X,d,a){d=d===void 0?!0:d;Jn(V)&&mQ(H,0,null)&&(!zl(p,"impression")&&a&&a(),p.tQ("impression"));zl(p,"impression")&&(g.u$(V,4)&&!g.u$(V,2)&&p.pO("pause"),D7(V,4)<0&&!(D7(V,2)<0)&&p.pO("resume"),g.u$(V,16)&&H>=.5&&p.pO("seek"),d&&g.u$(V,2)&&TT(p,V.state,C,N,H,X))}; TT=function(p,C,V,N,H,X,d,a){zl(p,"impression")&&(X?(X=H-N,X=X>=-1&&X<=2):X=Math.abs(N-H)<=1,MV(p,C,X?N:H,V,N,d,a&&X),X&&p.tQ("complete"))}; MV=function(p,C,V,N,H,X,d){Yu(p,V*1E3,d);H<=0||V<=0||(C==null?0:g.r(C,16))||(C==null?0:g.r(C,32))||(mQ(V,H*.25,N)&&(X&&!zl(p,"first_quartile")&&X("first"),p.tQ("first_quartile")),mQ(V,H*.5,N)&&(X&&!zl(p,"midpoint")&&X("second"),p.tQ("midpoint")),mQ(V,H*.75,N)&&(X&&!zl(p,"third_quartile")&&X("third"),p.tQ("third_quartile")))}; DNj=function(p,C){zl(p,"impression")&&p.pO(C?"fullscreen":"end_fullscreen")}; uKQ=function(p){zl(p,"impression")&&p.pO("clickthrough")}; Ztv=function(p){p.pO("active_view_measurable")}; UNe=function(p){zl(p,"impression")&&!zl(p,"seek")&&p.pO("active_view_fully_viewable_audible_half_duration")}; f79=function(p){zl(p,"impression")&&!zl(p,"seek")&&p.pO("active_view_viewable")}; Ots=function(p){zl(p,"impression")&&!zl(p,"seek")&&p.pO("audio_audible")}; y7Q=function(p){zl(p,"impression")&&!zl(p,"seek")&&p.pO("audio_measurable")}; quL=function(p,C,V,N,H,X,d,a,E,l,t,c){this.callback=p;this.slot=C;this.layout=V;this.kG=N;this.gV=H;this.mx=X;this.VA=d;this.AQ=a;this.GM=E;this.x_=l;this.No=t;this.pS=c;this.dM=!0;this.OZ=this.JQ=null;this.adCpn=void 0;this.T=!1}; I7H=function(p,C,V){var N;tV(p.No.get(),"ads_qua","cpn."+Ef(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((N=O3(p.pS.get(),2))==null?void 0:N.clientPlaybackNonce)+";qt."+C+";clr."+V)}; bty=function(p,C){var V,N;tV(p.No.get(),"ads_imp","cpn."+Ef(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=O3(p.pS.get(),2))==null?void 0:V.clientPlaybackNonce)+";clr."+C+";skp."+!!g.n((N=Ef(p.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:N.skipOrPreviewRenderer,JV))}; mL=function(p){return p.x_.get().N.K().experiments.OY("increase_completion_ping_firing_window")&&O3(p.pS.get(),1).VL}; vS=function(p){return{enterMs:Ef(p.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Ef(p.clientMetadata,"metadata_type_layout_exit_ms")}}; Fc=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){sG.call(this,p,C,V,N,H,d,a,E,l,c);this.VA=X;this.GM=t;this.AQ=T;this.x_=M;this.OZ=this.JQ=null}; A79=function(p,C){var V;tV(p.No.get(),"ads_imp","acpn."+((V=O3(p.pS.get(),2))==null?void 0:V.clientPlaybackNonce)+";clr."+C)}; oUL=function(p,C,V){var N;tV(p.No.get(),"ads_qua","cpn."+Ef(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((N=O3(p.pS.get(),2))==null?void 0:N.clientPlaybackNonce)+";qt."+C+";clr."+V)}; SI=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A){this.oH=p;this.u9=C;this.u0=V;this.pS=N;this.kG=H;this.mx=X;this.No=d;this.VA=a;this.BV=E;this.AQ=l;this.GM=t;this.gY=c;this.iJ=T;this.sZ=M;this.YG=J;this.zk=S;this.fd=D;this.x_=Z;this.T=f;this.context=q;this.e5=A}; Kr=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z){this.oH=p;this.u9=C;this.u0=V;this.No=N;this.AQ=H;this.GM=X;this.gY=d;this.pS=a;this.mx=E;this.iJ=l;this.sZ=t;this.YG=c;this.zk=T;this.fd=M;this.x_=J;this.kG=S;this.context=D;this.e5=Z}; k6S=function(p,C,V,N){tO.call(this,"survey-interstitial",p,C,V,N)}; DQ=function(p,C,V,N,H){uG.call(this,V,p,C,N);this.No=H;p=Ef(C.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(C.y$,H,p,C.layoutId)}; ub=function(p){return Math.round(p.width)+"x"+Math.round(p.height)}; UG=function(p,C,V){V=V===void 0?ZQ:V;V.widthp.width*p.height*.2)return{Ay:3,AM:501,errorMessage:"ad("+ub(V)+") to container("+ub(p)+") ratio exceeds limit."};if(V.height>p.height/3-C)return{Ay:3,AM:501,errorMessage:"ad("+ub(V)+") covers container("+ub(p)+") center."}}; xNY=function(p,C){var V=Ef(p.clientMetadata,"metadata_type_ad_placement_config");return new bG(p.y$,C,V,p.layoutId)}; fr=function(p){return Ef(p.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; OG=function(p,C,V,N){tO.call(this,"invideo-overlay",p,C,V,N);this.interactionLoggingClientData=N}; y4=function(p,C,V,N,H,X,d,a,E,l,t,c){uG.call(this,X,p,C,H);this.No=V;this.S=d;this.mx=a;this.zk=E;this.x_=l;this.Y=t;this.W=c;this.gV=xNY(C,V)}; Yue=function(){var p=["metadata_type_invideo_overlay_ad_renderer"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; qV=function(p,C,V,N,H,X,d,a,E,l,t,c,T){uG.call(this,X,p,C,H);this.No=V;this.S=d;this.J=a;this.mx=E;this.zk=l;this.x_=t;this.Y=c;this.W=T;this.gV=xNY(C,V)}; zSH=function(){for(var p=["metadata_type_invideo_overlay_ad_renderer"],C=g.F(Ay()),V=C.next();!V.done;V=C.next())p.push(V.value);return{a6:p,OO:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Il=function(p){this.mx=p;this.T=!1}; RSu=function(p,C,V){tO.call(this,"survey",p,{},C,V)}; bb=function(p,C,V,N,H,X,d){uG.call(this,V,p,C,N);this.S=H;this.mx=X;this.x_=d}; nUS=function(p,C,V,N,H,X,d,a,E,l){this.MW=p;this.mx=C;this.No=V;this.S=N;this.AQ=H;this.C=X;this.V=d;this.zk=a;this.x_=E;this.T=l}; eSL=function(p,C,V,N,H,X,d,a,E,l){this.MW=p;this.mx=C;this.No=V;this.S=N;this.AQ=H;this.C=X;this.V=d;this.zk=a;this.x_=E;this.T=l}; AV=function(p,C,V,N,H,X,d,a,E,l){hn.call(this,p,C,V,N,H,X,d,E);this.Xu=a;this.pS=l}; P$u=function(){var p=Whv();p.a6.push("metadata_type_ad_info_ad_metadata");return p}; wEX=function(p,C,V,N,H,X,d){this.MW=p;this.mx=C;this.No=V;this.C=N;this.Xu=H;this.T=X;this.pS=d}; $NL=function(p,C,V,N,H,X,d,a){this.MW=p;this.mx=C;this.No=V;this.C=N;this.Xu=H;this.T=X;this.x_=d;this.pS=a}; ol=function(p,C){this.slotId=C;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=p(this.triggerType)}; kP=function(p,C){this.adPodIndex=p;this.T=C.length;this.adBreakLengthSeconds=C.reduce(function(N,H){return N+H},0); var V=0;for(p+=1;p0}; vP=function(p){return!!(p.kJ&&p.slot&&p.layout)}; Fg=function(p){var C,V=(C=p.config)==null?void 0:C.adPlacementConfig;p=p.renderer;return!(!V||V.kind==null||!p)}; Xhy=function(p){if(!ln(p.adLayoutMetadata))return!1;p=p.renderingContent;return g.n(p,cB)||g.n(p,Tx)||g.n(p,lv)||g.n(p,tn)?!0:!1}; SB=function(p){return p.playerVars!==void 0&&p.pings!==void 0&&p.externalVideoId!==void 0}; OT=function(p){if(!ln(p.adLayoutMetadata))return!1;p=p.renderingContent;var C=g.n(p,Kj);return C?Dd(C):(C=g.n(p,un))?SB(C):(C=g.n(p,Zd))?C.playerVars!==void 0:(C=g.n(p,cB))?C.durationMilliseconds!==void 0:g.n(p,UT)||g.n(p,fj)?!0:!1}; Dd=function(p){p=(p.sequentialLayouts||[]).map(function(C){return g.n(C,y9)}); return p.length>0&&p.every(OT)}; aa9=function(p){if(!ln(p.adLayoutMetadata))return!1;if(g.n(p.renderingContent,dQv)||g.n(p.renderingContent,iSQ))return!0;var C=g.n(p.renderingContent,qB);return g.n(p.renderingContent,Id)||g.n(C==null?void 0:C.sidePanel,hxS)||g.n(C==null?void 0:C.sidePanel,sDQ)?!0:!1}; T3e=function(p){var C;(C=!p)||(C=p.adSlotMetadata,C=!((C==null?void 0:C.slotId)!==void 0&&(C==null?void 0:C.slotType)!==void 0));if(C||!(Eiv(p)||p.slotEntryTrigger&&p.slotFulfillmentTriggers&&p.slotExpirationTriggers))return!1;var V;p=(V=p.fulfillmentContent)==null?void 0:V.fulfilledLayout;return(V=g.n(p,y9))?OT(V):(V=g.n(p,bn))?aa9(V):(V=g.n(p,lay))?Xhy(V):(V=g.n(p,tiy))?N3u(V):(p=g.n(p,c0V))?ln(p.adLayoutMetadata)?g.n(p.renderingContent,tM)?!0:!1:!1:!1}; Eiv=function(p){var C;p=g.n((C=p.fulfillmentContent)==null?void 0:C.fulfilledLayout,bn);var V;return p&&((V=p.adLayoutMetadata)==null?void 0:V.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&p.layoutExitNormalTriggers===void 0}; Mis=function(p){var C;return(p==null?void 0:(C=p.adSlotMetadata)==null?void 0:C.slotType)==="SLOT_TYPE_IN_PLAYER"}; mQy=function(p,C){var V;if((V=p.questions)==null||!V.length||!p.playbackCommands||(C===void 0||!C)&&p.questions.length!==1)return!1;p=g.F(p.questions);for(C=p.next();!C.done;C=p.next()){C=C.value;var N=V=void 0,H=((V=g.n(C,AM))==null?void 0:V.surveyAdQuestionCommon)||((N=g.n(C,od))==null?void 0:N.surveyAdQuestionCommon);if(!J0u(H))return!1}return!0}; vi1=function(p){p=((p==null?void 0:p.playerOverlay)||{}).instreamSurveyAdRenderer;var C;if(p)if(p.playbackCommands&&p.questions&&p.questions.length===1){var V,N=((C=g.n(p.questions[0],AM))==null?void 0:C.surveyAdQuestionCommon)||((V=g.n(p.questions[0],od))==null?void 0:V.surveyAdQuestionCommon);C=J0u(N)}else C=!1;else C=!1;return C}; J0u=function(p){if(!p)return!1;p=g.n(p.instreamAdPlayerOverlay,kr);var C=g.n(p==null?void 0:p.skipOrPreviewRenderer,JV),V=g.n(p==null?void 0:p.adInfoRenderer,xr);return(g.n(p==null?void 0:p.skipOrPreviewRenderer,Yr)||C)&&V?!0:!1}; FcV=function(p){return p.linearAds!=null&&ln(p.adLayoutMetadata)}; SnL=function(p){return p.linearAd!=null&&p.adVideoStart!=null}; Kce=function(p){if(isNaN(Number(p.timeoutSeconds))||!p.text||!p.ctaButton||!g.n(p.ctaButton,g.z$)||!p.brandImage)return!1;var C;return p.backgroundImage&&g.n(p.backgroundImage,Rd)&&((C=g.n(p.backgroundImage,Rd))==null?0:C.landscape)?!0:!1}; nj=function(p,C,V,N,H,X,d){g.Y.call(this);this.x_=p;this.T=C;this.V=N;this.pS=H;this.S=X;this.C=d}; ZSV=function(p,C,V){var N,H=((N=V.adSlots)!=null?N:[]).map(function(a){return g.n(a,eB)}); if(V.cC)if(Ef(C.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))FY(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},C.slotId); else{if(p.x_.get().N.K().G("h5_check_forecasting_renderer_for_throttled_midroll")){var X=V.zs.filter(function(a){var E;return((E=a.renderer)==null?void 0:E.clientForecastingAdRenderer)!=null}); X.length!==0?DQX(p.C,X,H,C.slotId,V.ssdaiAdsConfig):FY(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},C.slotId)}else FY(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},C.slotId); uXV(p.S,C)}else{var d;N={cS:Math.round(((X=Ef(C.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:X.cS)||0),qS:(d=Ef(C.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:d.qS};DQX(p.C,V.zs,H,C.slotId,V.ssdaiAdsConfig,N)}}; faQ=function(p,C,V,N,H,X,d){var a=O3(p.pS.get(),1);FY(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return UQs(p.V.get(),V,N,H,a.clientPlaybackNonce,a.qw,a.daiEnabled,a,X,d)},C)}; y0e=function(p,C,V,N,H,X,d){C=OSS(C,X,Number(N.prefetchMilliseconds)||0,d);p=C instanceof G?C:PP(p,N,H,C,V);return p instanceof G?p:[p]}; qnQ=function(p,C,V,N,H){var X=SY(p.C.get(),"SLOT_TYPE_AD_BREAK_REQUEST");N=[new PV({getAdBreakUrl:N.getAdBreakUrl,cS:0,qS:0}),new Nz(!0)];p=C.pauseDurationMs?C.lactThresholdMs?{slotId:X,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new d2(p.T,X),slotFulfillmentTriggers:[new gU1(p.T)],slotExpirationTriggers:[new pj(p.T,H),new NB(p.T,X)],Br:"core",clientMetadata:new a3(N),adSlotLoggingData:V}:new G("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new G("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return p instanceof G?p:[p]}; IaH=function(p){var C,V;return((C=p.renderer)==null?void 0:(V=C.adBreakServiceRenderer)==null?void 0:V.getAdBreakUrl)!==void 0}; w2=function(p,C,V){if(p.beforeContentVideoIdStartedTrigger)p=p.beforeContentVideoIdStartedTrigger?new xP(h4,C,p.id):new G("Not able to create BeforeContentVideoIdStartedTrigger");else{if(p.layoutIdExitedTrigger){var N;C=(N=p.layoutIdExitedTrigger)!=null&&N.triggeringLayoutId?new PS(h4,p.layoutIdExitedTrigger.triggeringLayoutId,p.id):new G("Not able to create LayoutIdExitedTrigger")}else{if(p.layoutExitedForReasonTrigger){var H,X;((H=p.layoutExitedForReasonTrigger)==null?0:H.triggeringLayoutId)&&((X= p.layoutExitedForReasonTrigger)==null?0:X.layoutExitReason)?(C=WAV(p.layoutExitedForReasonTrigger.layoutExitReason),p=C instanceof G?C:new eI(h4,p.layoutExitedForReasonTrigger.triggeringLayoutId,[C],p.id)):p=new G("Not able to create LayoutIdExitedForReasonTrigger")}else{if(p.onLayoutSelfExitRequestedTrigger){var d;C=(d=p.onLayoutSelfExitRequestedTrigger)!=null&&d.triggeringLayoutId?new GT(h4,p.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,p.id):new G("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(p.onNewPlaybackAfterContentVideoIdTrigger)p= p.onNewPlaybackAfterContentVideoIdTrigger?new pj(h4,C,p.id):new G("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(p.skipRequestedTrigger){var a;C=(a=p.skipRequestedTrigger)!=null&&a.triggeringLayoutId?new jB(h4,p.skipRequestedTrigger.triggeringLayoutId,p.id):new G("Not able to create SkipRequestedTrigger")}else if(p.slotIdEnteredTrigger){var E;C=(E=p.slotIdEnteredTrigger)!=null&&E.triggeringSlotId?new V9(h4,p.slotIdEnteredTrigger.triggeringSlotId,p.id):new G("Not able to create SlotIdEnteredTrigger")}else if(p.slotIdExitedTrigger){var l; C=(l=p.slotIdExitedTrigger)!=null&&l.triggeringSlotId?new NB(h4,p.slotIdExitedTrigger.triggeringSlotId,p.id):new G("Not able to create SkipRequestedTrigger")}else if(p.surveySubmittedTrigger){var t;C=(t=p.surveySubmittedTrigger)!=null&&t.triggeringLayoutId?new sT(h4,p.surveySubmittedTrigger.triggeringLayoutId,p.id):new G("Not able to create SurveySubmittedTrigger")}else{if(p.mediaResumedTrigger)p=p.mediaResumedTrigger&&p.id?new Q0y(p.id):new G("Not able to create MediaResumedTrigger");else{if(p.closeRequestedTrigger){var c; C=(c=p.closeRequestedTrigger)!=null&&c.triggeringLayoutId?new YP(h4,p.closeRequestedTrigger.triggeringLayoutId,p.id):new G("Not able to create CloseRequestedTrigger")}else if(p.slotIdScheduledTrigger){var T;C=(T=p.slotIdScheduledTrigger)!=null&&T.triggeringSlotId?new d2(h4,p.slotIdScheduledTrigger.triggeringSlotId,p.id):new G("Not able to create SlotIdScheduledTrigger")}else{if(p.mediaTimeRangeTrigger){var M;N=Number((M=p.mediaTimeRangeTrigger)==null?void 0:M.offsetStartMilliseconds);var J;d=Number((J= p.mediaTimeRangeTrigger)==null?void 0:J.offsetEndMilliseconds);isFinite(N)&&isFinite(d)?(J=d,J===-1&&(J=V),V=N>J?new G("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:N,offsetEndMs:J},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",J===V&&N-500<=J):new Od(N,J),p=V instanceof G?V:new WS(h4,C,V,!1,p.id)):p=new G("Not able to create MediaTimeRangeTrigger")}else if(p.contentVideoIdEndedTrigger)p=p.contentVideoIdEndedTrigger?new zT(h4,C,!1,p.id):new G("Not able to create ContentVideoIdEndedTrigger"); else{if(p.layoutIdEnteredTrigger){var S;C=(S=p.layoutIdEnteredTrigger)!=null&&S.triggeringLayoutId?new nr(h4,p.layoutIdEnteredTrigger.triggeringLayoutId,p.id):new G("Not able to create LayoutIdEnteredTrigger")}else if(p.timeRelativeToLayoutEnterTrigger){var D;C=(D=p.timeRelativeToLayoutEnterTrigger)!=null&&D.triggeringLayoutId?new ad(h4,Number(p.timeRelativeToLayoutEnterTrigger.durationMs),p.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,p.id):new G("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(p.onDifferentLayoutIdEnteredTrigger){var Z; C=(Z=p.onDifferentLayoutIdEnteredTrigger)!=null&&Z.triggeringLayoutId&&p.onDifferentLayoutIdEnteredTrigger.slotType&&p.onDifferentLayoutIdEnteredTrigger.layoutType?new rF(h4,p.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,p.onDifferentLayoutIdEnteredTrigger.slotType,p.onDifferentLayoutIdEnteredTrigger.layoutType,p.id):new G("Not able to create CloseRequestedTrigger")}else{if(p.liveStreamBreakStartedTrigger)p=p.liveStreamBreakStartedTrigger&&p.id?new gF(h4,p.id):new G("Not able to create LiveStreamBreakStartedTrigger"); else if(p.liveStreamBreakEndedTrigger)p=p.liveStreamBreakEndedTrigger&&p.id?new wF(h4,p.id):new G("Not able to create LiveStreamBreakEndedTrigger");else{if(p.liveStreamBreakScheduledDurationMatchedTrigger){var f;C=(f=p.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&f.breakDurationMs?new $P(Number(p.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,p.id):new G("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(p.liveStreamBreakScheduledDurationNotMatchedTrigger){var q; C=(q=p.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&q.breakDurationMs?new Lr(Number(p.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,p.id):new G("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(p.newSlotScheduledWithBreakDurationTrigger){var A;C=(A=p.newSlotScheduledWithBreakDurationTrigger)!=null&&A.breakDurationMs?new Q4(Number(p.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,p.id):new G("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else C= p.prefetchCacheExpiredTrigger?new Cj(h4,p.id):new G("Not able to convert an AdsControlflowTrigger.");p=C}C=p}p=C}C=p}p=C}C=p}p=C}C=p}p=C}C=p}p=C}return p}; $r=function(p,C){C.T>=2&&(p.slot_pos=C.adPodIndex);p.autoplay="1"}; A0L=function(p,C,V,N,H,X,d,a){return C===null?new G("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:C,ActionCompanionAdRenderer:N}):[bSy(p,C,d,X,function(E){var l=E.slotId;E=a(E);var t=N.adLayoutLoggingData,c=new a3([new $Y(N),new NG(H)]);l=jY(V.C.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var T={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Br:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",y$:new Map, layoutExitNormalTriggers:[new pj(V.T,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:c,eb:E(T),adLayoutLoggingData:t}})]}; oi9=function(p,C,V,N,H,X,d,a){return C===null?new G("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:C,TopBannerImageTextIconButtonedLayoutViewModel:N}):[bSy(p,C,d,X,function(E){var l=E.slotId;E=a(E);var t=N.adLayoutLoggingData,c=new a3([new LW(N),new NG(H)]);l=jY(V.C.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var T={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Br:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", y$:new Map,layoutExitNormalTriggers:[new pj(V.T,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:c,eb:E(T),adLayoutLoggingData:t}})]}; zxy=function(p,C,V,N,H,X){if(!X)for(C=g.F(C),X=C.next();!X.done;X=C.next())X=X.value,Lj(p,X.renderer,X.config.adPlacementConfig.kind);p=Array.from(p.values()).filter(function(t){return k0L(t)}); C=[];X=g.F(p);for(var d=X.next(),a={};!d.done;a={RX:void 0},d=X.next()){a.RX=d.value;d=g.F(a.RX.s9);for(var E=d.next(),l={};!E.done;l={Fu:void 0},E=d.next())l.Fu=E.value,E=function(t,c){return function(T){return t.Fu.rq(T,c.RX.instreamVideoAdRenderer.elementId,t.Fu.xK)}}(l,a),l.Fu.isContentVideoCompanion?C.push(xQS(V,N,H,a.RX.instreamVideoAdRenderer.elementId,l.Fu.associatedCompositePlayerBytesLayoutId,l.Fu.adSlotLoggingData,E)):p.length>1?C.push(YnX(V,N,H,a.RX.instreamVideoAdRenderer.elementId,l.Fu.adSlotLoggingData, function(t,c){return function(T){return t.Fu.rq(T,c.RX.instreamVideoAdRenderer.elementId,t.Fu.xK,t.Fu.associatedCompositePlayerBytesLayoutId)}}(l,a))):C.push(YnX(V,N,H,a.RX.instreamVideoAdRenderer.elementId,l.Fu.adSlotLoggingData,E))}return C}; Lj=function(p,C,V){if(C=RxL(C)){C=g.F(C);for(var N=C.next();!N.done;N=C.next())if((N=N.value)&&N.externalVideoId){var H=g2(p,N.externalVideoId);H.instreamVideoAdRenderer||(H.instreamVideoAdRenderer=N,H.Ho=V)}else S2("InstreamVideoAdRenderer without externalVideoId")}}; RxL=function(p){var C=[],V=p.sandwichedLinearAdRenderer&&p.sandwichedLinearAdRenderer.linearAd&&g.n(p.sandwichedLinearAdRenderer.linearAd,un);if(V)return C.push(V),C;if(p.instreamVideoAdRenderer)return C.push(p.instreamVideoAdRenderer),C;if(p.linearAdSequenceRenderer&&p.linearAdSequenceRenderer.linearAds){p=g.F(p.linearAdSequenceRenderer.linearAds);for(V=p.next();!V.done;V=p.next())V=V.value,g.n(V,un)&&C.push(g.n(V,un));return C}return null}; k0L=function(p){if(p.instreamVideoAdRenderer===void 0)return S2("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var C=g.F(p.s9),V=C.next();!V.done;V=C.next()){V=V.value;if(V.rq===void 0)return!1;if(V.xK===void 0)return S2("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(p.Ho===void 0||V.QC===void 0||p.Ho!==V.QC&&V.QC!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(p.instreamVideoAdRenderer.elementId===void 0)return S2("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:p.Ho,"matching APSR kind":V.QC}),!1}return!0}; g2=function(p,C){p.has(C)||p.set(C,{instreamVideoAdRenderer:void 0,Ho:void 0,adVideoId:C,s9:[]});return p.get(C)}; WP=function(p,C,V,N,H,X,d,a,E){H?g2(p,H).s9.push({Hk$:C,QC:V,isContentVideoCompanion:N,xK:d,associatedCompositePlayerBytesLayoutId:X,adSlotLoggingData:a,rq:E}):S2("Companion AdPlacementSupportedRenderer without adVideoId")}; Q9=function(p){var C=0;p=g.F(p.questions);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V=g.n(V,AM)||g.n(V,od)){var N=void 0;C+=((N=V.surveyAdQuestionCommon)==null?void 0:N.durationMilliseconds)||0}return C}; r2=function(p){var C,V,N,H,X=((V=g.n((C=p.questions)==null?void 0:C[0],AM))==null?void 0:V.surveyAdQuestionCommon)||((H=g.n((N=p.questions)==null?void 0:N[0],od))==null?void 0:H.surveyAdQuestionCommon),d;C=[].concat(g.K(((d=p.playbackCommands)==null?void 0:d.instreamAdCompleteCommands)||[]),g.K((X==null?void 0:X.timeoutCommands)||[]));var a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au,W;return{impressionCommands:(a=p.playbackCommands)==null?void 0:a.impressionCommands,errorCommands:(E=p.playbackCommands)== null?void 0:E.errorCommands,muteCommands:(l=p.playbackCommands)==null?void 0:l.muteCommands,unmuteCommands:(t=p.playbackCommands)==null?void 0:t.unmuteCommands,pauseCommands:(c=p.playbackCommands)==null?void 0:c.pauseCommands,rewindCommands:(T=p.playbackCommands)==null?void 0:T.rewindCommands,resumeCommands:(M=p.playbackCommands)==null?void 0:M.resumeCommands,skipCommands:(J=p.playbackCommands)==null?void 0:J.skipCommands,progressCommands:(S=p.playbackCommands)==null?void 0:S.progressCommands,J9a:(D= p.playbackCommands)==null?void 0:D.clickthroughCommands,fullscreenCommands:(Z=p.playbackCommands)==null?void 0:Z.fullscreenCommands,activeViewViewableCommands:(f=p.playbackCommands)==null?void 0:f.activeViewViewableCommands,activeViewMeasurableCommands:(q=p.playbackCommands)==null?void 0:q.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(A=p.playbackCommands)==null?void 0:A.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(z=p.playbackCommands)== null?void 0:(Q=z.activeViewTracking)==null?void 0:Q.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(P=p.playbackCommands)==null?void 0:(VL=P.activeViewTracking)==null?void 0:VL.activeViewAudioMeasurableCommands,endFullscreenCommands:(au=p.playbackCommands)==null?void 0:au.endFullscreenCommands,abandonCommands:(W=p.playbackCommands)==null?void 0:W.abandonCommands,completeCommands:C}}; ex9=function(p,C,V,N,H,X,d){return function(a,E){return niY(p,E.slotId,a,X,function(l,t){var c=E.layoutId;l=d(l);return BP(C,c,t,H,l,"LAYOUT_TYPE_SURVEY",[new vV(V),N],V.adLayoutLoggingData)})}}; $Q9=function(p,C,V,N,H,X,d){if(!P7S(p))return new G("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:p});var a=p.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[wha(X,C,V,N,function(E){var l=E.slotId;E=d(E);l=jY(H.C.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",l);var t={layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Br:"core"},c=new PS(H.T,N);return{layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",y$:new Map,layoutExitNormalTriggers:[c], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new Fw(a)]),eb:E(t)}})]}; P7S=function(p){p=g.n(p==null?void 0:p.additionalPlayerOverlay,LcY);if(!p)return!1;var C=p.slidingMessages;return p.title&&C&&C.length!==0?!0:!1}; Wc1=function(p,C,V,N,H){var X;if((X=p.playerOverlay)==null||!X.instreamSurveyAdRenderer)return function(){return[]}; if(!vi1(p))return function(){return new G("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:p})}; var d=p.playerOverlay.instreamSurveyAdRenderer,a=Q9(d);return a<=0?function(){return new G("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:d})}:function(E,l){var t=giY(E,V,N,function(c){var T=c.slotId; c=l(c);var M=r2(d);T=jY(H.C.get(),"LAYOUT_TYPE_SURVEY",T);var J={layoutId:T,layoutType:"LAYOUT_TYPE_SURVEY",Br:"core"},S=new PS(H.T,N),D=new jB(H.T,T),Z=new sT(H.T,T),f=new phY(H.T);return{layoutId:T,layoutType:"LAYOUT_TYPE_SURVEY",y$:new Map,layoutExitNormalTriggers:[S,f],layoutExitSkipTriggers:[D],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[Z],f1:[],Br:"core",clientMetadata:new a3([new mt(d),new NG(C),new LF(a/1E3),new rg(M)]),eb:c(J),adLayoutLoggingData:d.adLayoutLoggingData}}); E=$Q9(p,V,t.slotId,N,H,E,l);return E instanceof G?E:[t].concat(g.K(E))}}; j4v=function(p,C,V,N,H,X,d){d=d===void 0?!1:d;var a=[];try{var E=[];if(V.renderer.linearAdSequenceRenderer)var l=function(S){S=QDy(S.slotId,V,C,H(S),N,X,d);E=S.JEa;return S.RZ}; else if(V.renderer.instreamVideoAdRenderer)l=function(S){var D=S.slotId;S=H(S);var Z=d,f=V.config.adPlacementConfig,q=r0H(f),A=q.Tj,z=q.x4;q=V.renderer.instreamVideoAdRenderer;var Q;if(q==null?0:(Q=q.playerOverlay)==null?0:Q.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var P=G$(q,Z);Q=Math.min(A+P.videoLengthSeconds*1E3,z);Z=new kP(0,[P.videoLengthSeconds]);z=P.videoLengthSeconds;var VL=P.playerVars,au=P.instreamAdPlayerOverlayRenderer,W=P.playerOverlayLayoutRenderer, e=P.adVideoId,B=B39(V),v=P.y$;P=P.Yn;var w=q==null?void 0:q.adLayoutLoggingData;q=q==null?void 0:q.sodarExtensionData;D=jY(C.C.get(),"LAYOUT_TYPE_MEDIA",D);var C0={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA",Br:"core"};return{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA",y$:v,layoutExitNormalTriggers:[new wF(C.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new sr(N),new qG(z),new Iw(VL),new ow(A),new k_(Q),au&&new aw(au), W&&new Er(W),new NG(f),new ha(e),new HV(Z),new nF(B),q&&new Aa(q),new Ur({current:null}),new Y_({}),new pP(P)].filter(G0L)),eb:S(C0),adLayoutLoggingData:w}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var t=pH1(p,N,V.adSlotLoggingData,l);a.push(t);for(var c=g.F(E),T=c.next();!T.done;T=c.next()){var M=T.value,J=M(p,H);if(J instanceof G)return J;a.push.apply(a,g.K(J))}}catch(S){return new G(S,{errorMessage:S.message,AdPlacementRenderer:V,numberOfSurveyRenderers:Cea(V)})}return a}; Cea=function(p){p=(p.renderer.linearAdSequenceRenderer||{}).linearAds;return p!=null&&p.length?p.filter(function(C){var V,N;return((V=g.n(C,un))==null?void 0:(N=V.playerOverlay)==null?void 0:N.instreamSurveyAdRenderer)!=null}).length:0}; QDy=function(p,C,V,N,H,X,d){var a=C.config.adPlacementConfig,E=r0H(a),l=E.Tj,t=E.x4;E=(C.renderer.linearAdSequenceRenderer||{}).linearAds;if(E==null||!E.length)throw new TypeError("Expected linear ads");var c=[],T={JK:l,Ri:0,lQ$:c};E=E.map(function(J){return VLX(p,J,T,V,N,a,H,t,d)}).map(function(J,S){S=new kP(S,c); return J(S)}); var M=E.map(function(J){return J.YI}); return{RZ:NcX(V,p,l,M,a,B39(C),N,t,X),JEa:E.map(function(J){return J.O9n})}}; VLX=function(p,C,V,N,H,X,d,a,E){var l=G$(g.n(C,un),E),t=V.JK,c=V.Ri,T=Math.min(t+l.videoLengthSeconds*1E3,a);V.JK=T;V.Ri++;V.lQ$.push(l.videoLengthSeconds);var M,J,S=(M=g.n(C,un))==null?void 0:(J=M.playerOverlay)==null?void 0:J.instreamSurveyAdRenderer;if(l.adVideoId==="nPpU29QrbiU"&&S==null)throw new TypeError("Survey slate media has no survey overlay");return function(D){$r(l.playerVars,D);var Z,f,q=l.videoLengthSeconds,A=l.playerVars,z=l.y$,Q=l.Yn,P=l.instreamAdPlayerOverlayRenderer,VL=l.playerOverlayLayoutRenderer, au=l.adVideoId,W=(Z=g.n(C,un))==null?void 0:Z.adLayoutLoggingData;Z=(f=g.n(C,un))==null?void 0:f.sodarExtensionData;f=jY(N.C.get(),"LAYOUT_TYPE_MEDIA",p);var e={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",Br:"adapter"};D={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",y$:z,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"adapter",clientMetadata:new a3([new sr(d),new qG(q),new Iw(A),new ow(t),new k_(T),new x_(c),new Ur({current:null}), P&&new aw(P),VL&&new Er(VL),new NG(X),new ha(au),new HV(D),Z&&new Aa(Z),S&&new Gc(S),new Y_({}),new pP(Q)].filter(G0L)),eb:H(e),adLayoutLoggingData:W};q=Wc1(g.n(C,un),X,d,D.layoutId,N);return{YI:D,O9n:q}}}; G$=function(p,C){if(!p)throw new TypeError("Expected instream video ad renderer");if(!p.playerVars)throw new TypeError("Expected player vars in url encoded string");var V=i1(p.playerVars),N=Number(V.length_seconds);if(isNaN(N))throw new TypeError("Expected valid length seconds in player vars");var H=Number(p.trimmedMaxNonSkippableAdDurationMs);N=isNaN(H)?N:Math.min(N,H/1E3);H=p.playerOverlay||{};H=H.instreamAdPlayerOverlayRenderer===void 0?null:H.instreamAdPlayerOverlayRenderer;var X=p.playerOverlay|| {};X=X.playerOverlayLayoutRenderer===void 0?null:X.playerOverlayLayoutRenderer;var d=V.video_id;d||(d=(d=p.externalVideoId)?d:void 0);if(!d)throw new TypeError("Expected valid video id in IVAR");if(C&&N===0){var a;C=(a=HUQ[d])!=null?a:N}else C=N;return{playerVars:V,videoLengthSeconds:C,instreamAdPlayerOverlayRenderer:H,playerOverlayLayoutRenderer:X,adVideoId:d,y$:p.pings?Ij(p.pings):new Map,Yn:qo(p.pings)}}; B39=function(p){p=Number(p.driftRecoveryMs);return isNaN(p)||p<=0?null:p}; r0H=function(p){var C=p.adTimeOffset||{};p=C.offsetEndMilliseconds;C=Number(C.offsetStartMilliseconds);if(isNaN(C))throw new TypeError("Expected valid start offset");p=Number(p);if(isNaN(p))throw new TypeError("Expected valid end offset");return{Tj:C,x4:p}}; XHS=function(p){var C,V=(C=Ef(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:C.current;if(!V)return null;C=Ef(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var N=p.layoutId,H=Ef(p.clientMetadata,"metadata_type_content_cpn"),X=Ef(p.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),d=Ef(p.clientMetadata,"metadata_type_player_underlay_renderer"),a=Ef(p.clientMetadata,"metadata_type_ad_placement_config"),E=Ef(p.clientMetadata,"metadata_type_video_length_seconds"); var l=dt(p.clientMetadata,"metadata_type_layout_enter_ms")&&dt(p.clientMetadata,"metadata_type_layout_exit_ms")?(Ef(p.clientMetadata,"metadata_type_layout_exit_ms")-Ef(p.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{DI:N,contentCpn:H,LF:V,Ih:C,instreamAdPlayerOverlayRenderer:X,instreamAdPlayerUnderlayRenderer:d,adPlacementConfig:a,videoLengthSeconds:E,LG:l,inPlayerLayoutId:Ef(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Ef(p.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; h_9=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J){N=SY(N,"SLOT_TYPE_PLAYER_BYTES");p=dRL(H,p,d,V,N,E,l);if(p instanceof G)return p;var S;l=(S=Ef(p.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:S.layoutId;if(!l)return new G("Invalid adNotify layout");C=iUY(l,H,X,V,a,C,E,t,c,T,M,J,d);return C instanceof G?C:[p].concat(g.K(C))}; iUY=function(p,C,V,N,H,X,d,a,E,l,t,c,T){V=s4Y(C,V,N,X,d,a,E,l,t,c,T);if(V instanceof G)return V;p=afY(C,p,d,H,V);return p instanceof G?p:[].concat(g.K(p.uW),[p.Wn])}; lfH=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){C=s4Y(p,C,V,H,X,a,E,l,t,c,T,M);if(C instanceof G)return C;p=E9V(p,V,X,d,N,a.p4,C);return p instanceof G?p:p.uW.concat(p.Wn)}; s4Y=function(p,C,V,N,H,X,d,a,E,l,t,c){var T=pa(N,V,l);return T instanceof sf?new G(T):l.N.K().experiments.OY("html5_refactor_in_player_slot_generation")?function(M){var J=new kP(0,[T.uy]);M=tL9(C,T.layoutId,T.yz,V,Ca(T.playerVars,T.iC,X,E,J),T.uy,H,J,d(M),a.get(T.yz.externalVideoId),c);J=[];if(T.yz.playerOverlay.instreamAdPlayerOverlayRenderer){var S=XHS(M);if(!S)return S2("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,M),{layout:M,uW:[]}; J=[cd9(p,S.contentCpn,S.DI,function(Z){return j8(C,Z.slotId,"core",S,J4(t,Z))},S.inPlayerSlotId)].concat(g.K(J)); if(S.instreamAdPlayerUnderlayRenderer&&Vn(l)){var D=S.instreamAdPlayerUnderlayRenderer;J=[TcQ(p,S.contentCpn,S.DI,function(Z){return MLV(C,Z.slotId,D,S.adPlacementConfig,S.DI,J4(t,Z))})].concat(g.K(J))}}return{layout:M, uW:J}}:function(M){var J=new kP(0,[T.uy]); return{layout:tL9(C,T.layoutId,T.yz,V,Ca(T.playerVars,T.iC,X,E,J),T.uy,H,J,d(M),a.get(T.yz.externalVideoId),c),uW:[]}}}; pa=function(p,C,V){if(!p.playerVars)return new sf("No playerVars available in InstreamVideoAdRenderer.");var N,H;if(p.elementId==null||p.playerVars==null||p.playerOverlay==null||((N=p.playerOverlay)==null?void 0:N.instreamAdPlayerOverlayRenderer)==null&&((H=p.playerOverlay)==null?void 0:H.playerOverlayLayoutRenderer)==null||p.pings==null||p.externalVideoId==null)return new sf("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:p});N=i1(p.playerVars);H=Number(N.length_seconds); isNaN(H)&&(H=0,S2("Expected valid length seconds in player vars but got NaN"));if(V.sV(C.kind==="AD_PLACEMENT_KIND_START")){if(p.layoutId===void 0)return new sf("Expected server generated layout ID in instreamVideoAdRenderer");C=p.layoutId}else C=p.elementId;return{layoutId:C,yz:p,playerVars:N,iC:p.playerVars,uy:H}}; Ca=function(p,C,V,N,H){p.iv_load_policy=N;C=i1(C);if(C.cta_conversion_urls)try{p.cta_conversion_urls=JSON.parse(C.cta_conversion_urls)}catch(X){S2(X)}V.wx&&(p.ctrl=V.wx);V.eH&&(p.ytr=V.eH);V.Bb&&(p.ytrcc=V.Bb);V.isMdxPlayback&&(p.mdx="1");p.vvt&&(p.vss_credentials_token=p.vvt,V.B_&&(p.vss_credentials_token_type=V.B_),V.mdxEnvironment&&(p.mdx_environment=V.mdxEnvironment));$r(p,H);return p}; JdV=function(p){var C=new Map;p=g.F(p);for(var V=p.next();!V.done;V=p.next())(V=V.value.renderer.remoteSlotsRenderer)&&V.hostElementId&&C.set(V.hostElementId,V);return C}; N3=function(p){return p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; mR1=function(p){return p!=null}; uAY=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){for(var J=[],S=g.F(p),D=S.next();!D.done;D=S.next())if(D=D.value,!Eiv(D)&&!Mis(D)){var Z=N3(D)&&!!D.slotEntryTrigger.beforeContentVideoIdStartedTrigger,f=E.sV(Z),q=v9H(D,l,N,V.qw,f);if(q instanceof G)return q;var A=void 0,z={slotId:D.adSlotMetadata.slotId,slotType:D.adSlotMetadata.slotType,slotPhysicalPosition:(A=D.adSlotMetadata.slotPhysicalPosition)!=null?A:1,Br:"core",slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers, slotExpirationTriggers:q.slotExpirationTriggers},Q=g.n(D.fulfillmentContent.fulfilledLayout,y9);if(Q){if(!OT(Q))return new G("Invalid PlayerBytesAdLayoutRenderer");A=c&&!(N3(D)&&D.slotEntryTrigger.beforeContentVideoIdStartedTrigger);q=q.slotFulfillmentTriggers.some(function(P){return P instanceof $P}); f=A?FIj(z,D.adSlotMetadata.triggerEvent,Q,V,N,X,l,p,f,T,q,M):S0S(z,D.adSlotMetadata.triggerEvent,Q,C,V,N,H,X,d,a,E,l,p,t,f,D.adSlotMetadata.triggeringSourceLayoutId);if(f instanceof G)return f;q=[];N3(D)&&q.push(new HU({eX:N3(D)&&!!D.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));A&&q.push(new Y_({}));V.p4&&q.push(new BV({}));q.push(new VV(Z));D=Object.assign({},z,{clientMetadata:new a3(q),fulfilledLayout:f.layout,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push.apply(J,g.K(f.uW)); J.push(D)}else if(Z=g.n(D.fulfillmentContent.fulfilledLayout,bn)){if(!aa9(Z))return new G("Invalid PlayerUnderlayAdLayoutRenderer");Z=KIj(Z,N,V.qw,X,z,D.adSlotMetadata.triggerEvent,D.adSlotMetadata.triggeringSourceLayoutId);if(Z instanceof G)return Z;D=Object.assign({},z,{clientMetadata:new a3([]),fulfilledLayout:Z,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push(D)}else if(Z=g.n(D.fulfillmentContent.fulfilledLayout,tiy)){if(!N3u(Z))return new G("Invalid AboveFeedAdLayoutRenderer");Z= DRv(Z,N,V.qw,X,z,D.adSlotMetadata.triggerEvent,D.adSlotMetadata.triggeringSourceLayoutId);if(Z instanceof G)return Z;D=Object.assign({},z,{clientMetadata:new a3([]),fulfilledLayout:Z,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push(D)}else if(Z=g.n(D.fulfillmentContent.fulfilledLayout,c0V)){if(!ln(Z.adLayoutMetadata)||!g.n(Z.renderingContent,tM))return new G("Invalid BelowPlayerAdLayoutRenderer");Z=DRv(Z,N,V.qw,X,z,D.adSlotMetadata.triggerEvent,D.adSlotMetadata.triggeringSourceLayoutId); if(Z instanceof G)return Z;D=Object.assign({},z,{clientMetadata:new a3([]),fulfilledLayout:Z,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push(D)}else return new G("Unable to retrieve a client slot ["+z.slotType+"] from a given AdSlotRenderer")}return J}; DRv=function(p,C,V,N,H,X,d){var a={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"};C=H0(p,C,V);if(C instanceof G)return C;V=[];V.push(new NG(Xm(X)));X==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&d!==void 0&&V.push(new ST(d));return Object.assign({},a,{renderingContent:p.renderingContent,y$:new Map([["impression",ZU1(p)]])},C,{eb:J4(N,H)(a),clientMetadata:new a3(V),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}; KIj=function(p,C,V,N,H,X,d){if(p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(d=g.n(p.renderingContent,qB))if(d=g.n(d.sidePanel,sDQ)){var a={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"};C=H0(p,C,V);p=C instanceof G?C:Object.assign({},a,{renderingContent:p.renderingContent,y$:new Map([["impression",d.impressionPings||[]],["resume",d.resumePings||[]]])},C,{eb:J4(N,H)(a),clientMetadata:new a3([new NG(Xm(X))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}else p= new G("DismissablePanelTextPortraitImageRenderer is missing");else p=new G("SqueezebackPlayerSidePanelRenderer is missing");else p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.n(p.renderingContent,dQv)?(d={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"},C=H0(p,C,V),p=C instanceof G?C:Object.assign({},d,{renderingContent:p.renderingContent,y$:new Map},C,{eb:J4(N,H)(d),clientMetadata:new a3([new NG(Xm(X))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})): p=new G("CounterfactualRenderer is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?p=new G("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.n(p.renderingContent,Id)?(X={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"},C=H0(p,C,V),p=C instanceof G?C:d?Object.assign({},X,{renderingContent:p.renderingContent,y$:new Map},C,{eb:J4(N, H)(X),clientMetadata:new a3([new ST(d)]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}):new G("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):p=new G("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.n(p.renderingContent,iSQ)?(X={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"},C=H0(p,C,V),p=C instanceof G?C: Object.assign({},X,{renderingContent:p.renderingContent,y$:new Map([])},C,{eb:J4(N,H)(X),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new a3([])})):p=new G("AdsEngagementPanelSectionListViewModel is missing"):p=new G("LayoutType ["+p.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return p}; FIj=function(p,C,V,N,H,X,d,a,E,l,t,c){if((c==null?void 0:c.cS)===void 0||(c==null?void 0:c.qS)===void 0)return new G("Cached ad break range from cue point is missing");var T=H0(V,H,N.qw);if(T instanceof G)return T;T={layoutExitMuteTriggers:[],layoutExitNormalTriggers:T.layoutExitNormalTriggers,layoutExitSkipTriggers:[],f1:[],layoutExitUserInputSubmittedTriggers:[]};if(g.n(V.renderingContent,un))return p=URv(p,C,V,T,H,X,a,E,N.qw,d,c.cS,c.qS),p instanceof G?p:p.p7===void 0?new G("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:p.layout,uW:[p.p7]};var M=g.n(V.renderingContent,Kj);if(M){if(!ln(V.adLayoutMetadata))return new G("Invalid ad layout metadata");if(!Dd(M))return new G("Invalid sequential layout");M=M.sequentialLayouts.map(function(J){return J.playerBytesAdLayoutRenderer}); p=ffa(p,C,V,T,M,H,N,X,d,E,a,l,c.cS,c.qS,t);return p instanceof G?p:{layout:p.yq,uW:p.uW}}return new G("Not able to convert a sequential layout")}; ffa=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J){var S=OUe(H,T,M);if(S instanceof G)return S;var D=[],Z=[];S=g.F(S);for(var f=S.next();!f.done;f=S.next()){var q=f.value;f=p;var A=H[q.Ri],z=q,Q=C;q=X;var P=d,VL=a,au=E,W=l,e=t,B=d6(A);if(B instanceof G)f=B;else{var v={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Br:"adapter"};z=ydV(Q,A,z,q);z instanceof G?f=z:(f=Object.assign({},v,i_,{y$:B,renderingContent:A.renderingContent,clientMetadata:new a3(z),eb:J4(VL,f)(v),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData}), f=(A=hL(e,f,q,P.qw,VL,au,W,void 0,!0))?A instanceof G?A:{layout:f,p7:A}:new G("Expecting associatedInPlayerSlot"))}if(f instanceof G)return f;D.push(f.layout);Z.push(f.p7)}H={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,Br:"core"};C=[new nF(Number(V.driftRecoveryMs)),new ow(T),new k_(M),new NG(Xm(C)),new jU(c),new Y_({})];J&&C.push(new XJ({}));return{yq:Object.assign({},H,N,{HK:D,y$:new Map,clientMetadata:new a3(C),eb:J4(a,p)(H)}),uW:Z}}; URv=function(p,C,V,N,H,X,d,a,E,l,t,c){if(!OT(V))return new G("Invalid PlayerBytesAdLayoutRenderer");var T=d6(V);if(T instanceof G)return T;var M={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,Br:"core"},J=g.n(V.renderingContent,un);if(!J)return new G("Invalid rendering content for DAI media layout");J=G$(J,!1);t={hj:J,Ri:0,JK:t,mT:Math.min(t+J.videoLengthSeconds*1E3,c),Ex:new kP(0,[J.videoLengthSeconds])};var S;c=(S=Number(V.driftRecoveryMs))!=null?S:void 0;C=ydV(C, V,t,H,c);if(C instanceof G)return C;p=Object.assign({},M,N,{y$:T,renderingContent:V.renderingContent,clientMetadata:new a3(C),eb:J4(X,p)(M),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData});return(H=hL(d,p,H,E,X,l,a,void 0,!0))?H instanceof G?H:{layout:p,p7:H}:new G("Expecting associatedInPlayerSlot")}; S0S=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S){var D=H0(V,X,H.qw);if(D instanceof G)return D;if(g.n(V.renderingContent,un)){E=q0V([V],H,E);if(E instanceof G)return E;if(E.length!==1)return new G("Only expected one media layout.");p=Ifa(p,C,V,D,E[0],void 0,"core",N,X,d,a,l,T,M,J,H.qw,c,void 0,S);return p instanceof G?p:{layout:p.layout,uW:p.p7?[p.p7]:[]}}var Z=g.n(V.renderingContent,Kj);if(Z){if(!ln(V.adLayoutMetadata))return new G("Invalid ad layout metadata");if(!Dd(Z))return new G("Invalid sequential layout"); Z=Z.sequentialLayouts.map(function(f){return f.playerBytesAdLayoutRenderer}); p=bUa(p,C,V.adLayoutMetadata,D,Z,N,X,H,E,d,a,l,t,c,J,T,M,S);return p instanceof G?p:{layout:p.yq,uW:p.uW}}return new G("Not able to convert a sequential layout")}; bUa=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z){var f=new i6({current:null}),q=q0V(H,a,E);if(q instanceof G)return q;E=[];for(var A=[],z=void 0,Q=0;Q0&&(Q.push(Z),Q.push(new dg(z.adPodSkipTarget)));(X=l.get(z.externalVideoId))&&Q.push(new $_(X));X=Q}else X=new G("Invalid vod media renderer")}if(X instanceof G)return X;p=Object.assign({},d,N,{y$:q,renderingContent:V.renderingContent,clientMetadata:new a3(X),eb:J4(t,p)(d),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData});V=g.n(V.renderingContent,un);if(!V||!SB(V))return new G("Invalid meida renderer");c=g2(c,V.externalVideoId);c.instreamVideoAdRenderer=V;c.Ho="AD_PLACEMENT_KIND_START";return M?(E=hL(T,p,E,S,t,D,J,Z,!1),E instanceof G?E:kkS(p.layoutId,T)&&E?{layout:Object.assign({},p,{clientMetadata:new a3(X.concat(new cV(E)))})}:{layout:p,p7:E}): {layout:p}}; Ada=function(p,C,V,N,H){if(!OT(C))return new G("Invalid PlayerBytesAdLayoutRenderer");var X=g.n(C.renderingContent,cB);if(!X||X.durationMilliseconds===void 0)return new G("Invalid endcap renderer");var d={layoutId:C.adLayoutMetadata.layoutId,layoutType:C.adLayoutMetadata.layoutType,Br:"adapter"};N=[new gg(X.durationMilliseconds),new rg({impressionCommands:void 0,abandonCommands:X.abandonCommands?[{commandExecutorCommand:X.abandonCommands}]:void 0,completeCommands:X.completionCommands}),new NG(N), new DS("LAYOUT_TYPE_ENDCAP")];if(H){N.push(new Xw(H.Ex.adPodIndex-1));N.push(new x_(H.Ex.adPodIndex));var a;N.push(new dg((a=H.adPodSkipTarget)!=null?a:-1))}return Object.assign({},d,i_,{renderingContent:C.renderingContent,clientMetadata:new a3(N),y$:X.skipPings?new Map([["skip",X.skipPings]]):new Map,eb:J4(V,p)(d),adLayoutLoggingData:C.adLayoutMetadata.adLayoutLoggingData})}; hL=function(p,C,V,N,H,X,d,a,E){p=p.filter(function(t){return t.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&t.adSlotMetadata.triggeringSourceLayoutId===C.layoutId}); if(p.length!==0){if(p.length!==1)return new G("Invalid InPlayer slot association for the given PlayerBytes layout");p=p[0];d=v9H(p,X,V,N,d);if(d instanceof G)return d;var l;X={slotId:p.adSlotMetadata.slotId,slotType:p.adSlotMetadata.slotType,slotPhysicalPosition:(l=p.adSlotMetadata.slotPhysicalPosition)!=null?l:1,Br:"core",slotEntryTrigger:d.slotEntryTrigger,slotFulfillmentTriggers:d.slotFulfillmentTriggers,slotExpirationTriggers:d.slotExpirationTriggers};l=g.n(p.fulfillmentContent.fulfilledLayout, lay);if(!l||!Xhy(l))return new G("Invalid InPlayerAdLayoutRenderer");d={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,Br:"core"};V=H0(l,V,N);if(V instanceof G)return V;N=[];E&&N.push(new Y_({}));if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")N.push.apply(N,g.K(xRy(p.adSlotMetadata.triggerEvent,C)));else if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")N.push(new NG(Xm(p.adSlotMetadata.triggerEvent))),a&&N.push(a);else return new G("Not able to parse an SDF InPlayer layout"); H=Object.assign({},d,V,{renderingContent:l.renderingContent,y$:new Map,eb:J4(H,X)(d),clientMetadata:new a3(N),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},X,{fulfilledLayout:H,clientMetadata:new a3([])})}}; xRy=function(p,C){var V=[];V.push(new NG(Xm(p)));V.push(new ST(C.layoutId));(p=Ef(C.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&V.push(new Ur(p));(p=Ef(C.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&V.push(new i6(p));(p=Ef(C.clientMetadata,"metadata_type_remote_slots_data"))&&V.push(new $_(p));(p=Ef(C.clientMetadata,"metadata_type_ad_next_params"))&&V.push(new Qi(p));(p=Ef(C.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&V.push(new r_(p));(p= Ef(C.clientMetadata,"metadata_type_ad_pod_info"))&&V.push(new HV(p));(C=Ef(C.clientMetadata,"metadata_type_ad_video_id"))&&V.push(new ha(C));return V}; o9L=function(p,C,V,N,H,X){function d(l){return sA(C,l)} var a=N.UJ.inPlayerSlotId,E={layoutId:N.UJ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Br:"core"};V={slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:new nr(d,p),slotFulfillmentTriggers:[new V9(d,a)],slotExpirationTriggers:[new NB(d,a),new pj(d,V)]};p=Object.assign({},E,{layoutExitNormalTriggers:[new PS(d,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],y$:new Map,clientMetadata:new a3([new MG(N.UJ), new NG(N.adPlacementConfig),H]),eb:J4(X,V)(E),adLayoutLoggingData:N.UJ.adLayoutLoggingData});return Object.assign({},V,{clientMetadata:new a3([new eT(p)])})}; kkS=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next())if(V=V.value,V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var N=g.n(V.fulfillmentContent.fulfilledLayout,bn);if(N&&(N=g.n(N.renderingContent,qB))&&N.associatedPlayerBytesLayoutId===p)return V}}; v9H=function(p,C,V,N,H){var X=Y0a(w2(p.slotEntryTrigger,V,N),H,p,C);if(X instanceof G)return X;for(var d=[],a=g.F(p.slotFulfillmentTriggers),E=a.next();!E.done;E=a.next()){E=w2(E.value,V,N);if(E instanceof G)return E;d.push(E)}d=z_Y(d,H,p,C);C=[];p=g.F(p.slotExpirationTriggers);for(H=p.next();!H.done;H=p.next()){H=w2(H.value,V,N);if(H instanceof G)return H;C.push(H)}return{slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:C}}; Y0a=function(p,C,V,N){return C&&V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&p instanceof xP?new ol(function(H){return sA(N,H)},V.adSlotMetadata.slotId):p}; z_Y=function(p,C,V,N){return C&&V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?p.map(function(H){return H instanceof V9?new d2(function(X){return sA(N,X)},V.adSlotMetadata.slotId):H}):p}; H0=function(p,C,V){for(var N=[],H=g.F(p.layoutExitNormalTriggers||[]),X=H.next();!X.done;X=H.next()){X=w2(X.value,C,V);if(X instanceof G)return X;N.push(X)}H=[];X=g.F(p.layoutExitSkipTriggers||[]);for(var d=X.next();!d.done;d=X.next()){d=w2(d.value,C,V);if(d instanceof G)return d;H.push(d)}X=[];d=g.F(p.layoutExitMuteTriggers||[]);for(var a=d.next();!a.done;a=d.next()){a=w2(a.value,C,V);if(a instanceof G)return a;X.push(a)}d=[];p=g.F(p.layoutExitUserInputSubmittedTriggers||[]);for(a=p.next();!a.done;a= p.next()){a=w2(a.value,C,V);if(a instanceof G)return a;d.push(a)}return{layoutExitNormalTriggers:N,layoutExitSkipTriggers:H,layoutExitMuteTriggers:X,layoutExitUserInputSubmittedTriggers:d,f1:[]}}; d6=function(p){var C=g.n(p.renderingContent,un);if(C==null?0:C.pings)return Ij(C.pings);p=g.n(p.renderingContent,cB);return(p==null?0:p.skipPings)?new Map([["skip",p.skipPings]]):new Map}; ydV=function(p,C,V,N,H){C=g.n(C.renderingContent,un);if(!C)return new G("Invalid rendering content for DAI media layout");p=[new sr(N),new qG(V.hj.videoLengthSeconds),new Iw(V.hj.playerVars),new ow(V.JK),new k_(V.mT),new x_(V.Ri),new NG(Xm(p)),new ha(V.hj.adVideoId),new HV(V.Ex),C.sodarExtensionData&&new Aa(C.sodarExtensionData),new Ur({current:null}),new Y_({}),new pP(qo(C.pings))].filter(mR1);H!==void 0&&p.push(new nF(H));return p}; OUe=function(p,C,V){p=p.map(function(E){return G$(g.n(E.renderingContent,un),!1)}); var N=p.map(function(E){return E.videoLengthSeconds}),H=N.map(function(E,l){return new kP(l,N)}),X=C,d=V,a=[]; p.forEach(function(E,l){d=Math.min(X+E.videoLengthSeconds*1E3,V);$r(E.playerVars,H[l]);a.push({hj:E,JK:X,mT:d,Ri:l,Ex:H[l]});X=d}); return a}; q0V=function(p,C,V){for(var N=[],H=g.F(p),X=H.next();!X.done;X=H.next())if(X=g.n(X.value.renderingContent,un)){if(!SB(X))return new G("Invalid vod media renderer");N.push(R_X(X))}H=N.map(function(c){return c.uy}); X=[];for(var d=0,a=0;a0?W:-1;else if(v=g.n(B,cB)){B=Bcj(p,C,V,v,X,S,a,P,W);if(B instanceof G){M=B;break a}B= B(T);D.push(B.Sq);Z=[].concat(g.K(B.XV),g.K(Z));f=[].concat(g.K(B.F5),g.K(f));B.p7&&(au=[B.p7].concat(g.K(au)))}else if(v=g.n(B,UT)){if(M===void 0){M=new G("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:v});break a}B=C8V(p,C,V,X,v,Q,a,M,S,Cs(t,"supports_multi_step_on_desktop"));if(B instanceof G){M=B;break a}B=B(T);D.push(B.Sq);B.p7&&au.push(B.p7);Z=[].concat(g.K(B.XV),g.K(Z));f=[].concat(g.K(B.F5),g.K(f));q=[].concat(g.K(B.rH),g.K(q));A=[].concat(g.K(B.sI), g.K(A));z=[Q].concat(g.K(z))}else if(B=g.n(B,fj)){B=jEY(p,C,V,X,B,Q,a,S);if(B instanceof G){M=B;break a}B=B(T);D.push(B.Sq);B.p7&&au.push(B.p7);f=[].concat(g.K(B.F5),g.K(f))}else{M=new G("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}M={HK:D,layoutExitSkipTriggers:Z,layoutExitUserInputSubmittedTriggers:q,f1:A,layoutExitMuteTriggers:f,Cf:z,uW:au}}}else a:if(S=sEv(N,V,t),S instanceof G)M=S;else{D=0;Z=[];f=[];q=[];A=[];z=[];Q=[];P=new fF({current:null});VL=new i6({current:null}); au=!1;e=[];W=-1;J=g.F(N);for(B=J.next();!B.done;B=J.next())if(B=B.value,g.n(B,Zd)){B=Gks(C,V,g.n(B,Zd),a);if(B instanceof G){M=B;break a}B=B(T);Z.push(B.Sq);f=[].concat(g.K(B.XV),g.K(f));q=[].concat(g.K(B.F5),g.K(q));B.p7&&(e=[B.p7].concat(g.K(e)))}else if(g.n(B,un)){W=pa(g.n(B,un),V,t);if(W instanceof sf){M=new G(W);break a}B=new kP(D,S);B=ak1(C,W.layoutId,W.yz,V,Ca(W.playerVars,W.iC,d,l,B),W.uy,X,B,a(T),VL,E.get(W.yz.externalVideoId),void 0,c);D++;Z.push(B.Sq);f=[].concat(g.K(B.XV),g.K(f));q=[].concat(g.K(B.F5), g.K(q));au||(Q.push(VL),au=!0);W=(W=W.yz.adPodSkipTarget)&&W>0?W:-1}else if(g.n(B,cB)){B=Bcj(p,C,V,g.n(B,cB),X,D,a,VL,W);if(B instanceof G){M=B;break a}B=B(T);Z.push(B.Sq);f=[].concat(g.K(B.XV),g.K(f));q=[].concat(g.K(B.F5),g.K(q));B.p7&&(e=[B.p7].concat(g.K(e)))}else if(g.n(B,UT)){if(M===void 0){M=new G("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.n(B,UT)});break a}B=C8V(p,C,V,X,g.n(B,UT),P,a,M,D,Cs(t,"supports_multi_step_on_desktop")); if(B instanceof G){M=B;break a}B=B(T);Z.push(B.Sq);B.p7&&e.push(B.p7);f=[].concat(g.K(B.XV),g.K(f));q=[].concat(g.K(B.F5),g.K(q));A=[].concat(g.K(B.rH),g.K(A));z=[].concat(g.K(B.sI),g.K(z));Q=[P].concat(g.K(Q))}else if(g.n(B,fj)){B=jEY(p,C,V,X,g.n(B,fj),P,a,D);if(B instanceof G){M=B;break a}B=B(T);Z.push(B.Sq);B.p7&&e.push(B.p7);q=[].concat(g.K(B.F5),g.K(q))}else{M=new G("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}M={HK:Z,layoutExitSkipTriggers:f,layoutExitUserInputSubmittedTriggers:A, f1:z,layoutExitMuteTriggers:q,Cf:Q,uW:e}}M instanceof G?T=M:(z=T.slotId,S=M.HK,D=M.layoutExitSkipTriggers,Z=M.layoutExitMuteTriggers,f=M.layoutExitUserInputSubmittedTriggers,q=M.Cf,T=a(T),A=H?H.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z=H?H.layoutId:jY(C.C.get(),A,z),Q={layoutId:z,layoutType:A,Br:"core"},T={layout:{layoutId:z,layoutType:A,y$:new Map,layoutExitNormalTriggers:[new GT(C.T,z)],layoutExitSkipTriggers:D,layoutExitMuteTriggers:Z,layoutExitUserInputSubmittedTriggers:f,f1:[],Br:"core", clientMetadata:new a3([new Or(S)].concat(g.K(q))),eb:T(Q)},uW:M.uW});return T}}; sEv=function(p,C,V){var N=[];p=g.F(p);for(var H=p.next();!H.done;H=p.next())if(H=H.value,g.n(H,un)){H=pa(g.n(H,un),C,V);if(H instanceof sf)return new G(H);N.push(H.uy)}return N}; lkH=function(p,C,V,N,H,X,d,a){if(!mQy(V,a===void 0?!1:a))return new G("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:V});var E=Q9(V);if(E<=0)return new G("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:V});var l=new fF({current:null}),t=ex9(p,C,V,l,N,X,d);return EYj(p,N,X,E,H,function(c,T){var M=c.slotId,J=r2(V);c=d(c);var S,D=(S=tL(C,N,V.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?S: jY(C.C.get(),"LAYOUT_TYPE_MEDIA_BREAK",M);M={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Br:"core"};S=t(D,T);var Z=Ef(S.clientMetadata,"metadata_type_fulfilled_layout");Z||S2("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");J=[new NG(N),new gg(E),new rg(J),l];Z&&J.push(new DS(Z.layoutType));return{jo:{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",y$:new Map,layoutExitNormalTriggers:[new GT(C.T,D)],layoutExitSkipTriggers:[new jB(C.T, T.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new sT(C.T,T.layoutId)],f1:[],Br:"core",clientMetadata:new a3(J),eb:c(M)},qH:S}})}; tsX=function(p){if(!SnL(p))return!1;var C=g.n(p.adVideoStart,mH);return C?g.n(p.linearAd,un)&&vP(C)?!0:(S2("Invalid Sandwich with notify"),!1):!1}; cq9=function(p){if(p.linearAds==null)return!1;p=g.n(p.adStart,mH);return p?vP(p)?!0:(S2("Invalid LASR with notify"),!1):!1}; T_u=function(p){if(!FcV(p))return!1;p=g.n(p.adStart,mH);return p?vP(p)?!0:(S2("Invalid LASR with notify"),!1):!1}; v0=function(p,C,V,N,H,X,d,a,E,l){this.S=p;this.C=C;this.T=V;this.x_=N;this.Mt=H;this.V=X;this.mx=d;this.ZS=a;this.L9=E;this.loadPolicy=l===void 0?1:l}; UQs=function(p,C,V,N,H,X,d,a,E,l){var t=[];if(C.length===0&&N.length===0&&V.length===0)return t;C=C.filter(Fg);var c=V.filter(T3e),T=N.filter(Fg),M=new Map,J=JdV(C),S=V.some(function(v){var w;return(v==null?void 0:(w=v.adSlotMetadata)==null?void 0:w.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),D=V.some(function(v){var w; return(v==null?void 0:(w=v.adSlotMetadata)==null?void 0:w.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),Z=V.some(function(v){var w; return(v==null?void 0:(w=v.adSlotMetadata)==null?void 0:w.slotType)==="SLOT_TYPE_IN_PLAYER"}); V=V.some(function(v){var w,C0;return(v==null?void 0:(w=v.adSlotMetadata)==null?void 0:w.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(v==null?void 0:(C0=v.adSlotMetadata)==null?void 0:C0.slotType)==="SLOT_TYPE_ABOVE_FEED"}); if(S||D||Z||V)l=uAY(c,C,a,H,J,p.Mt.get(),p.loadPolicy,M,p.x_.get(),p.S.get(),Z,d,E,l),l instanceof G?S2(l,void 0,void 0,{contentCpn:H}):t.push.apply(t,g.K(l));l=g.F(C);for(V=l.next();!V.done;V=l.next())V=V.value,D=Msu(p,M,V,H,X,d,S,a,J,E,c),D instanceof G?S2(D,void 0,void 0,{renderer:V.renderer,config:V.config.adPlacementConfig,kind:V.config.adPlacementConfig.kind,contentCpn:H,daiEnabled:d}):t.push.apply(t,g.K(D));Jqv(p.x_.get())||(X=mge(p,T,H,a,J,M),t.push.apply(t,g.K(X)));if(p.V===null||d&&!a.lB){var f, q,A;p=a.p4&&C.length===1&&((f=C[0].config)==null?void 0:(q=f.adPlacementConfig)==null?void 0:q.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((A=C[0].renderer)==null?void 0:A.adBreakServiceRenderer);if(!t.length&&!p){var z,Q,P,VL;S2("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":C.length,contentCpn:H,"first APR kind":(z=C[0])==null?void 0:(Q=z.config)==null?void 0:(P=Q.adPlacementConfig)==null?void 0:P.kind,renderer:(VL=C[0])==null?void 0:VL.renderer})}return t}f= N.filter(Fg);t.push.apply(t,g.K(zxy(M,f,p.C.get(),p.V,H,S)));if(!t.length){var au,W,e,B;S2("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":C.length,contentCpn:H,daiEnabled:d.toString(),"first APR kind":(au=C[0])==null?void 0:(W=au.config)==null?void 0:(e=W.adPlacementConfig)==null?void 0:e.kind,renderer:(B=C[0])==null?void 0:B.renderer})}return t}; mge=function(p,C,V,N,H,X){function d(T){return J4(p.Mt.get(),T)} var a=[];C=g.F(C);for(var E=C.next();!E.done;E=C.next()){E=E.value;var l=E.renderer,t=l.sandwichedLinearAdRenderer,c=l.linearAdSequenceRenderer;t&&tsX(t)?(S2("Found AdNotify with SandwichedLinearAdRenderer"),c=g.n(t.adVideoStart,mH),t=g.n(t.linearAd,un),Lj(X,l,E.config.adPlacementConfig.kind),l=void 0,c=iUY((l=c)==null?void 0:l.layout.layoutId,p.C.get(),p.T.get(),E.config.adPlacementConfig,E.adSlotLoggingData,t,V,N,d,H,p.loadPolicy,p.x_.get(),p.Mt.get()),c instanceof G?S2(c):a.push.apply(a,g.K(c))): c&&(!c.adLayoutMetadata&&cq9(c)||c.adLayoutMetadata&&T_u(c))&&(S2("Found AdNotify with LinearAdSequenceRenderer"),Lj(X,l,E.config.adPlacementConfig.kind),l=void 0,t=Vsu((l=g.n(c.adStart,mH))==null?void 0:l.layout.layoutId,p.C.get(),p.T.get(),E.config.adPlacementConfig,E.adSlotLoggingData,c.linearAds,ln(c.adLayoutMetadata)?c.adLayoutMetadata:void 0,V,N,d,H,p.loadPolicy,p.x_.get()),t instanceof G?S2(t):a.push.apply(a,g.K(t)))}return a}; Msu=function(p,C,V,N,H,X,d,a,E,l,t){function c(Z){return J4(p.Mt.get(),Z)} var T=V.renderer,M=V.config.adPlacementConfig,J=M.kind,S=V.adSlotLoggingData,D=a.lB&&J==="AD_PLACEMENT_KIND_START";D=X&&!D;if(T.adsEngagementPanelRenderer!=null)return WP(C,V.elementId,J,T.adsEngagementPanelRenderer.isContentVideoEngagementPanel,T.adsEngagementPanelRenderer.adVideoId,T.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.adsEngagementPanelRenderer;Z=J4(p.Mt.get(),Z);return Fm(z,Q,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new g_(P),f,q,P.impressionPings,Z,T.adsEngagementPanelRenderer.adLayoutLoggingData,A)}),[]; if(T.adsEngagementPanelLayoutViewModel)return WP(C,V.elementId,J,T.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,T.adsEngagementPanelLayoutViewModel.adVideoId,T.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.adsEngagementPanelLayoutViewModel;Z=J4(p.Mt.get(),Z);return S8(z,Q,"LAYOUT_TYPE_PANEL",new WJ(P),f,q,Z,T.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,A)}),[]; if(T.actionCompanionAdRenderer!=null){if(T.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return A0L(p.C.get(),p.V,p.T.get(),T.actionCompanionAdRenderer,M,S,N,c);WP(C,V.elementId,J,T.actionCompanionAdRenderer.isContentVideoCompanion,T.actionCompanionAdRenderer.adVideoId,T.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.actionCompanionAdRenderer;Z=J4(p.Mt.get(),Z);return Fm(z,Q,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new $Y(P),f,q,P.impressionPings,Z,T.actionCompanionAdRenderer.adLayoutLoggingData,A)})}else if(T.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(T.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return oi9(p.C.get(),p.V,p.T.get(),T.topBannerImageTextIconButtonedLayoutViewModel,M,S,N,c); WP(C,V.elementId,J,T.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,T.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,T.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.topBannerImageTextIconButtonedLayoutViewModel;Z=J4(p.Mt.get(),Z);return S8(z,Q,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new LW(P),f,q,Z,T.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,A)})}else if(T.imageCompanionAdRenderer)WP(C, V.elementId,J,T.imageCompanionAdRenderer.isContentVideoCompanion,T.imageCompanionAdRenderer.adVideoId,T.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.imageCompanionAdRenderer; Z=J4(p.Mt.get(),Z);return Fm(z,Q,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Gf(P),f,q,P.impressionPings,Z,T.imageCompanionAdRenderer.adLayoutLoggingData,A)}); else if(T.bannerImageLayoutViewModel)WP(C,V.elementId,J,T.bannerImageLayoutViewModel.isContentVideoCompanion,T.bannerImageLayoutViewModel.adVideoId,T.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.bannerImageLayoutViewModel;Z=J4(p.Mt.get(),Z);return S8(z,Q,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new pF(P),f,q,Z,T.bannerImageLayoutViewModel.adLayoutLoggingData,A)}); else if(T.shoppingCompanionCarouselRenderer)WP(C,V.elementId,J,T.shoppingCompanionCarouselRenderer.isContentVideoCompanion,T.shoppingCompanionCarouselRenderer.adVideoId,T.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.shoppingCompanionCarouselRenderer;Z=J4(p.Mt.get(),Z);return Fm(z,Q,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new CF(P),f,q,P.impressionPings,Z,T.shoppingCompanionCarouselRenderer.adLayoutLoggingData,A)}); else if(T.adBreakServiceRenderer){if(!IaH(V))return[];if(J==="AD_PLACEMENT_KIND_PAUSE")return qnQ(p.C.get(),M,S,V.renderer.adBreakServiceRenderer,N);if(J!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&J!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return y0e(p.C.get(),M,S,V.renderer.adBreakServiceRenderer,N,H,X);a.p4||S2("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:J,adPlacementConfig:M,daiEnabledForContentVideo:String(X),isServedFromLiveInfra:String(a.p4),clientPlaybackNonce:a.clientPlaybackNonce}); if(J==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!p.mx)return new G("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!p.L9)return new G("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");p.L9.Li({adPlacementRenderer:V,contentCpn:N,qw:H});H=p.mx.get().getCurrentTimeSec(1,!1);return vYL(p.C.get(),V.renderer.adBreakServiceRenderer,M,H,N,S,X)}if(!p.ZS)return new G("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); p.ZS.Li({adPlacementRenderer:V,contentCpn:N,qw:H})}else{if(T.clientForecastingAdRenderer)return wHu(p.C.get(),p.T.get(),M,S,T.clientForecastingAdRenderer,N,H,c);if(T.invideoOverlayAdRenderer)return WIX(p.C.get(),p.T.get(),M,S,T.invideoOverlayAdRenderer,N,H,c);if(T.instreamAdPlayerOverlayRenderer)return LIu(p.C.get(),p.T.get(),M,S,T.instreamAdPlayerOverlayRenderer,N,c);if((T.linearAdSequenceRenderer||T.instreamVideoAdRenderer)&&D)return j4v(p.C.get(),p.T.get(),V,N,c,l,!p.x_.get().N.K().G("html5_override_ad_video_length_killswitch")); if(T.linearAdSequenceRenderer&&!D){if(d)return[];Lj(C,T,J);if(T.linearAdSequenceRenderer.adLayoutMetadata){if(!FcV(T.linearAdSequenceRenderer))return new G("Received invalid LinearAdSequenceRenderer.")}else if(T.linearAdSequenceRenderer.linearAds==null)return new G("Received invalid LinearAdSequenceRenderer.");if(g.n(T.linearAdSequenceRenderer.adStart,mH)){S2("Found AdNotify in LinearAdSequenceRenderer");V=g.n(T.linearAdSequenceRenderer.adStart,mH);if(!HSu(V))return new G("Invalid AdMessageRenderer."); X=T.linearAdSequenceRenderer.linearAds;return N_e(p.S.get(),p.C.get(),p.T.get(),p.Mt.get(),M,S,V,ln(T.linearAdSequenceRenderer.adLayoutMetadata)?T.linearAdSequenceRenderer.adLayoutMetadata:void 0,X,N,H,a,c,E,p.loadPolicy,p.x_.get())}return hsS(p.C.get(),p.T.get(),M,S,T.linearAdSequenceRenderer.linearAds,ln(T.linearAdSequenceRenderer.adLayoutMetadata)?T.linearAdSequenceRenderer.adLayoutMetadata:void 0,N,H,a,c,E,p.loadPolicy,p.x_.get(),t)}if(!T.remoteSlotsRenderer||X){if(T.instreamVideoAdRenderer&& !D){if(d)return[];Lj(C,T,J);return lfH(p.C.get(),p.T.get(),M,S,T.instreamVideoAdRenderer,N,H,a,c,E,p.loadPolicy,p.x_.get(),p.Mt.get(),t)}if(T.instreamSurveyAdRenderer)return lkH(p.C.get(),p.T.get(),T.instreamSurveyAdRenderer,M,S,N,c,Cs(p.x_.get(),"supports_multi_step_on_desktop"));if(T.sandwichedLinearAdRenderer!=null)return SnL(T.sandwichedLinearAdRenderer)?g.n(T.sandwichedLinearAdRenderer.adVideoStart,mH)?(S2("Found AdNotify in SandwichedLinearAdRenderer"),V=g.n(T.sandwichedLinearAdRenderer.adVideoStart, mH),HSu(V)?(X=g.n(T.sandwichedLinearAdRenderer.linearAd,un))?h_9(V,X,M,p.S.get(),p.C.get(),p.T.get(),p.Mt.get(),S,N,H,a,c,E,p.loadPolicy,p.x_.get()):new G("Missing IVAR from Sandwich"):new G("Invalid AdMessageRenderer.")):hsS(p.C.get(),p.T.get(),M,S,[T.sandwichedLinearAdRenderer.adVideoStart,T.sandwichedLinearAdRenderer.linearAd],void 0,N,H,a,c,E,p.loadPolicy,p.x_.get()):new G("Received invalid SandwichedLinearAdRenderer.");if(T.videoAdTrackingRenderer!=null)return a=Cs(p.x_.get(),"enable_h5_shorts_ad_terminal_events")&& a.rR,e_S(p.C.get(),p.T.get(),T.videoAdTrackingRenderer,M,S,N,H,a,c)}}return[]}; Ka=function(p,C,V,N,H,X,d,a){g.Y.call(this);var E=this;this.C=p;this.V=C;this.BV=N;this.mx=H;this.x_=X;this.No=d;this.kG=a;this.T=null;V.get().addListener(this);this.addOnDisposeCallback(function(){V.fS()||V.get().removeListener(E)}); N.get().addListener(this);this.addOnDisposeCallback(function(){N.fS()||N.get().removeListener(E)})}; SFj=function(p,C,V){var N=p.mx.get().getCurrentTimeSec(1,!1);p.x_.get().N.K().Gk()&&tV(p.No.get(),"sdai","onopp.1;evt."+V.event+";start."+V.startSecs.toFixed(3)+";d."+V.uc.toFixed(3));FY(p.C.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var H=p.V.get(),X=C.adPlacementRenderer.renderer.adBreakServiceRenderer,d=C.contentCpn,a=C.adPlacementRenderer.adSlotLoggingData,E=DY(p.x_.get()),l=p.No;if(H.x_.get().N.K().experiments.OY("enable_smearing_expansion_dai")){var t=g.mi(H.x_.get().N.K().experiments, "max_prefetch_window_sec_for_livestream_optimization");var c=g.mi(H.x_.get().N.K().experiments,"min_prefetch_offset_sec_for_livestream_optimization");E={hW:FCs(V),z3:!1,cueProcessedMs:N*1E3};var T=V.startSecs+V.uc;if(N===0)E.YQ=new Od(0,T*1E3);else{c=V.startSecs-c;var M=c-N;E.YQ=M<=0?new Od(c*1E3,T*1E3):new Od(Math.floor(N+Math.random()*Math.min(M,t))*1E3,T*1E3)}t=E}else t={hW:FCs(V),z3:!1},T=V.startSecs+V.uc,V.startSecs<=N?E=new Od((V.startSecs-4)*1E3,T*1E3):(c=Math.max(0,V.startSecs-N-10),E=new Od(Math.floor(N+ Math.random()*(E?N===0?0:Math.min(c,5):c))*1E3,T*1E3)),t.YQ=E;H=PP(H,X,d,t,a,[new yy(V)]);l.get().N.Dw(t.YQ.start/1E3-N,V.startSecs-N);return[H]})}; u_=function(p){var C,V=(C=Ef(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:C.current;if(!V)return null;C=Ef(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var N=p.layoutId,H=Ef(p.clientMetadata,"metadata_type_content_cpn"),X=Ef(p.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),d=Ef(p.clientMetadata,"metadata_type_player_overlay_layout_renderer"),a=Ef(p.clientMetadata,"metadata_type_player_underlay_renderer"),E=Ef(p.clientMetadata, "metadata_type_ad_placement_config"),l=Ef(p.clientMetadata,"metadata_type_video_length_seconds");var t=dt(p.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Ef(p.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):dt(p.clientMetadata,"metadata_type_layout_enter_ms")&&dt(p.clientMetadata,"metadata_type_layout_exit_ms")?(Ef(p.clientMetadata,"metadata_type_layout_exit_ms")-Ef(p.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{DI:N,contentCpn:H,LF:V,Ih:C,instreamAdPlayerOverlayRenderer:X, playerOverlayLayoutRenderer:d,instreamAdPlayerUnderlayRenderer:a,adPlacementConfig:E,videoLengthSeconds:l,LG:t,inPlayerLayoutId:Ef(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Ef(p.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Dgu=function(p,C){return KCj(p,C)}; uqY=function(p,C){C=KCj(p,C);if(!C)return null;var V;C.LG=(V=Ef(p.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:V.adBreakRemainingLengthSeconds;return C}; KCj=function(p,C){var V,N=(V=Ef(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:V.current;if(!N)return null;V=$YL(p,C);return{lY:wQ1(p,C),adPlacementConfig:Ef(p.clientMetadata,"metadata_type_ad_placement_config"),OT:V,contentCpn:Ef(p.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Ef(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Ef(p.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Ef(p.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,LG:void 0,LF:N,DI:p.layoutId,videoLengthSeconds:Ef(p.clientMetadata,"metadata_type_video_length_seconds")}}; ZY=function(p,C,V,N,H,X,d,a,E){g.Y.call(this);this.S=p;this.Y=C;this.W=V;this.V=N;this.T=H;this.C=X;this.Mt=d;this.x_=a;this.pS=E;this.lc=!0}; ZWy=function(p,C,V){return TcQ(p.T.get(),C.contentCpn,C.DI,function(N){return MLV(p.C.get(),N.slotId,V,C.adPlacementConfig,C.DI,J4(p.Mt.get(),N))})}; UA=function(p,C,V,N,H,X,d,a){g.Y.call(this);this.C=p;this.T=C;this.V=V;this.x_=N;this.S=H;this.pS=X;this.mx=d;this.sZ=a}; fa=function(p){g.Y.call(this);this.T=p}; FY=function(p,C,V,N){p.T().WR(C,N);V=V();p=p.T();p.hQ.BX("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",C,N,V);C=g.F(V);for(V=C.next();!V.done;V=C.next())a:{N=p;V=V.value;N.hQ.Qr("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",V);N.hQ.Qr("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",V);try{var H=N.T;if(g.Sy(V.slotId))throw new G("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Uf(H,V))throw new G("Duplicate registration for slot.",{slotId:V.slotId,slotEntryTriggerType:V.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!H.E8.MG.has(V.slotType))throw new G("No fulfillment adapter factory registered for slot of type: "+V.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!H.E8.LT.has(V.slotType))throw new G("No SlotAdapterFactory registered for slot of type: "+V.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");wt(H,"TRIGGER_CATEGORY_SLOT_ENTRY",V.slotEntryTrigger?[V.slotEntryTrigger]:[]);wt(H,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", V.slotFulfillmentTriggers);wt(H,"TRIGGER_CATEGORY_SLOT_EXPIRATION",V.slotExpirationTriggers);var X=N.T,d=V.slotType+"_"+V.slotPhysicalPosition,a=zm(X,d);if(Uf(X,V))throw new G("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");a.set(V.slotId,new zIs(V));X.T.set(d,a)}catch(VL){VL instanceof G&&VL.jO?(N.hQ.Yb("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",VL.jO,V),S2(VL,V,void 0,void 0,VL.Wb)):(N.hQ.Yb("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", V),S2(VL,V));break a}Uf(N.T,V).Y=!0;try{var E=N.T,l=Uf(E,V),t=V.slotEntryTrigger,c=E.E8.D_.get(t.triggerType);c&&(c.HB("TRIGGER_CATEGORY_SLOT_ENTRY",t,V,null),l.sY.set(t.triggerId,c));for(var T=g.F(V.slotFulfillmentTriggers),M=T.next();!M.done;M=T.next()){var J=M.value,S=E.E8.D_.get(J.triggerType);S&&(S.HB("TRIGGER_CATEGORY_SLOT_FULFILLMENT",J,V,null),l.a$.set(J.triggerId,S))}for(var D=g.F(V.slotExpirationTriggers),Z=D.next();!Z.done;Z=D.next()){var f=Z.value,q=E.E8.D_.get(f.triggerType);q&&(q.HB("TRIGGER_CATEGORY_SLOT_EXPIRATION", f,V,null),l.Z.set(f.triggerId,q))}var A=E.E8.MG.get(V.slotType).get().build(E.V,V);l.D=A;var z=E.E8.LT.get(V.slotType).get().build(E.W,V);z.init();l.C=z}catch(VL){VL instanceof G&&VL.jO?(N.hQ.Yb("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",VL.jO,V),S2(VL,V,void 0,void 0,VL.Wb)):(N.hQ.Yb("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",V),S2(VL,V));Dc(N,V,!0);break a}N.hQ.Qr("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",V);N.T.GI(V);for(var Q=g.F(N.C),P=Q.next();!P.done;P= Q.next())P.value.GI(V);yV(N,V)}}; OA=function(p,C,V,N,H){g.Y.call(this);var X=this;this.C=p;this.V=C;this.iJ=V;this.context=H;this.T=new Map;N.get().addListener(this);this.addOnDisposeCallback(function(){N.fS()||N.get().removeListener(X)})}; uXV=function(p,C){var V=0x8000000000000;var N=0;for(var H=g.F(C.slotFulfillmentTriggers),X=H.next();!X.done;X=H.next())X=X.value,X instanceof WS?(V=Math.min(V,X.T.start),N=Math.max(N,X.T.end)):S2("Found unexpected fulfillment trigger for throttled slot.",C,null,{fulfillmentTrigger:X});N=new Od(V,N);V="throttledadcuerange:"+C.slotId;p.T.set(V,C);p.iJ.get().addCueRange(V,N.start,N.end,!1,p);fR(p.context.x_.get())&&(C=N.start,N=N.end,H={},p.context.Rx.Vr("tcrr",(H.cid=V,H.sm=C,H.em=N,H)))}; yn=function(){g.Y.apply(this,arguments);this.lc=!0;this.jU=new Map;this.T=new Map}; q3=function(p,C){p=g.F(p.jU.values());for(var V=p.next();!V.done;V=p.next())if(V.value.layoutId===C)return!0;return!1}; IY=function(p,C){p=g.F(p.T.values());for(var V=p.next();!V.done;V=p.next()){V=g.F(V.value);for(var N=V.next();!N.done;N=V.next())if(N=N.value,N.layoutId===C)return N}S2("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Sy(C)),layoutId:C})}; UgH=function(){this.T=new Map}; fkS=function(p,C){this.callback=p;this.slot=C}; b_=function(){}; OWY=function(p,C,V){this.callback=p;this.slot=C;this.mx=V}; yqj=function(p,C,V){this.callback=p;this.slot=C;this.mx=V;this.C=!1;this.T=0}; qFs=function(p,C,V){this.callback=p;this.slot=C;this.mx=V}; AL=function(p){this.mx=p}; oY=function(p){g.Y.call(this);this.Un=p;this.ix=new Map}; kx=function(p,C){for(var V=[],N=g.F(p.ix.values()),H=N.next();!H.done;H=N.next()){H=H.value;var X=H.trigger;X instanceof sT&&X.triggeringLayoutId===C&&V.push(H)}V.length?k6(p.Un(),V):S2("Survey is submitted but no registered triggers can be activated.")}; xx=function(p,C,V){oY.call(this,p);var N=this;this.x_=V;C.get().addListener(this);this.addOnDisposeCallback(function(){C.fS()||C.get().removeListener(N)})}; Yx=function(p){g.Y.call(this);this.T=p;this.lc=!0;this.ix=new Map;this.W=new Set;this.V=new Set;this.S=new Set;this.Y=new Set;this.C=new Set}; zd=function(p){g.Y.call(this);this.T=p;this.ix=new Map}; RY=function(p,C){for(var V=[],N=g.F(p.ix.values()),H=N.next();!H.done;H=N.next())H=H.value,H.trigger.T===C.layoutId&&V.push(H);V.length&&k6(p.T(),V)}; na=function(p,C,V){g.Y.call(this);var N=this;this.T=p;this.context=V;this.ix=new Map;C.get().addListener(this);this.addOnDisposeCallback(function(){C.fS()||C.get().removeListener(N)})}; e8=function(p,C,V,N,H){g.Y.call(this);var X=this;this.C=p;this.iJ=C;this.mx=V;this.pS=N;this.context=H;this.lc=!0;this.ix=new Map;this.T=new Set;V.get().addListener(this);this.addOnDisposeCallback(function(){V.fS()||V.get().removeListener(X)})}; IkH=function(p,C,V,N,H,X,d,a,E,l){if(O3(p.pS.get(),1).clientPlaybackNonce!==E)throw new G("Cannot register CueRange-based trigger for different content CPN",{trigger:V});p.ix.set(V.triggerId,{MY:new ET(C,V,N,H),cueRangeId:X});p.iJ.get().addCueRange(X,d,a,l,p);fR(p.context.x_.get())&&(E={},p.context.Rx.Vr("crr",(E.ca=C,E.tt=V.triggerType,E.st=N.slotType,E.lt=H==null?void 0:H.layoutType,E.cid=X,E.sm=d,E.em=a,E)))}; bWv=function(p,C){p=g.F(p.ix.entries());for(var V=p.next();!V.done;V=p.next()){var N=g.F(V.value);V=N.next().value;N=N.next().value;if(C===N.cueRangeId)return V}return""}; P0=function(p,C){g.Y.call(this);var V=this;this.S=p;this.C=new Map;this.V=new Map;this.T=null;C.get().addListener(this);this.addOnDisposeCallback(function(){C.fS()||C.get().removeListener(V)}); var N;this.T=((N=C.get().KA)==null?void 0:N.slotId)||null}; Aqj=function(p,C){var V=[];p=g.F(p.values());for(var N=p.next();!N.done;N=p.next())N=N.value,N.slot.slotId===C&&V.push(N);return V}; w6=function(p){g.Y.call(this);this.T=p;this.lc=!0;this.ix=new Map}; NV=function(p,C,V){C=C.layoutId;for(var N=[],H=g.F(p.ix.values()),X=H.next();!X.done;X=H.next())if(X=X.value,X.trigger instanceof GT){var d;if(d=X.trigger.layoutId===C){d=V;var a=I9H.get(X.category);d=a?a===d:!1}d&&N.push(X)}N.length&&k6(p.T(),N)}; $x=function(p){g.Y.call(this);this.T=p;this.lc=!0;this.ix=new Map}; La=function(p,C,V,N,H){g.Y.call(this);var X=this;this.W=p;this.BV=C;this.mx=V;this.No=N;this.T=null;this.lc=!0;this.ix=new Map;this.V=new Map;C.get().addListener(this);this.addOnDisposeCallback(function(){C.fS()||C.get().removeListener(X)}); H.get().addListener(this);this.addOnDisposeCallback(function(){H.fS()||H.get().removeListener(X)})}; kfS=function(p){p.T&&(p.C&&(p.C.stop(),p.C.start()),oYX(p,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; oYX=function(p,C){for(var V=[],N=g.F(p.ix.values()),H=N.next();!H.done;H=N.next())H=H.value,H.trigger.triggerType===C&&V.push(H);V.length>0&&k6(p.W(),V)}; g6=function(p,C,V,N,H){H=H===void 0?!0:H;for(var X=[],d=g.F(p.ix.values()),a=d.next();!a.done;a=d.next()){a=a.value;var E=a.trigger;if(E.triggerType===C){if(E instanceof $P||E instanceof Lr||E instanceof Q4){if(H&&E.breakDurationMs!==V)continue;if(!H&&E.breakDurationMs===V)continue;if(N.has(E.triggerId))continue}X.push(a)}}X.length>0&&k6(p.W(),X)}; xgv=function(p){p=p.adPlacementRenderer.config.adPlacementConfig;if(!p.prefetchModeConfig||!p.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;p=Number(p.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(p)||p<=0?0:Math.floor(Math.random()*p)}; YFa=function(p){p=p.adPlacementRenderer.config.adPlacementConfig;if(p.prefetchModeConfig&&p.prefetchModeConfig.cacheFetchRefreshDurationMs&&(p=Number(p.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(p)||p<=0)))return p}; W0=function(p){p.T=null;p.ix.clear();p.V.clear();p.C&&p.C.stop();p.S&&p.S.stop()}; Qn=function(p){g.Y.call(this);this.V=p;this.lc=!0;this.ix=new Map;this.T=new Map;this.C=new Map}; zsj=function(p,C){var V=[];if(C=p.T.get(C.layoutId)){C=g.F(C);for(var N=C.next();!N.done;N=C.next())(N=p.C.get(N.value.triggerId))&&V.push(N)}return V}; r6=function(p){g.Y.call(this);this.T=p;this.ix=new Map}; Rs9=function(p,C){for(var V=[],N=g.F(p.ix.values()),H=N.next();!H.done;H=N.next())H=H.value,H.trigger instanceof ol&&H.trigger.slotId===C&&V.push(H);V.length>=1&&k6(p.T(),V)}; nYu=function(p,C){var V={slotId:SY(C,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Br:"surface",clientMetadata:new a3([])},N=Object,H=N.assign;C=jY(C,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",V.slotId);C={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",y$:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"surface", clientMetadata:new a3([]),eb:Z1L(!1,V.slotId,V.slotType,V.slotPhysicalPosition,V.Br,V.slotEntryTrigger,V.slotFulfillmentTriggers,V.slotExpirationTriggers,C,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return H.call(N,{},p,{kJ:!0,slot:V,layout:C})}; OSS=function(p,C,V,N){var H=p.kind;N=N?!1:!p.hideCueRangeMarker;switch(H){case "AD_PLACEMENT_KIND_START":return N={hW:new Od(-0x8000000000000,-0x8000000000000),z3:N},V!=null&&(N.YQ=new Od(-0x8000000000000,-0x8000000000000)),N;case "AD_PLACEMENT_KIND_END":return N={hW:new Od(0x7ffffffffffff,0x8000000000000),z3:N},V!=null&&(N.YQ=new Od(Math.max(0,C-V),0x8000000000000)),N;case "AD_PLACEMENT_KIND_MILLISECONDS":H=p.adTimeOffset;H.offsetStartMilliseconds||S2("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); H.offsetEndMilliseconds||S2("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");p=Number(H.offsetStartMilliseconds);H=Number(H.offsetEndMilliseconds);H===-1&&(H=C);if(Number.isNaN(p)||Number.isNaN(H)||p>H)return new G("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:p,offsetEndMs:H},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",H===C&&p-500<=H);N={hW:new Od(p,H),z3:N};if(V!=null){p=Math.max(0,p-V);if(p===H)return N;N.YQ=new Od(p,H)}return N; default:return new G("AdPlacementKind not supported in convertToRange.",{kind:H,adPlacementConfig:p})}}; FCs=function(p){var C=p.startSecs*1E3;return new Od(C,C+p.uc*1E3)}; esL=function(p){if(!p||!p.adPlacements&&!p.adSlots)return!1;for(var C=g.F(p.adPlacements||[]),V=C.next();!V.done;V=C.next())if(V=V.value)if(V=V.adPlacementRenderer,V!=null&&(V.config&&V.config.adPlacementConfig&&V.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;p=g.F(p.adSlots||[]);for(C=p.next();!C.done;C=p.next()){var N=V=void 0;if(((V=g.n(C.value,eB))==null?void 0:(N=V.adSlotMetadata)==null?void 0:N.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; B0=function(p){this.x_=p;this.C=new Map;this.T=new Map;this.V=new Map}; SY=function(p,C){if(Gd(p.x_.get())){var V=p.C.get(C)||0;V++;p.C.set(C,V);return C+"_"+V}return g.OI(16)}; jY=function(p,C,V){if(Gd(p.x_.get())){var N=p.T.get(C)||0;N++;p.T.set(C,N);return V+"_"+C+"_"+N}return g.OI(16)}; sA=function(p,C){if(Gd(p.x_.get())){var V=p.V.get(C)||0;V++;p.V.set(C,V);return C+"_"+V}return g.OI(16)}; P8S=function(p){var C=[new ST(p.DI),new ZS(p.LF),new NG(p.adPlacementConfig),new qG(p.videoLengthSeconds),new LF(p.LG)];p.instreamAdPlayerOverlayRenderer&&C.push(new aw(p.instreamAdPlayerOverlayRenderer));p.playerOverlayLayoutRenderer&&C.push(new Er(p.playerOverlayLayoutRenderer));p.Ih&&C.push(new i6(p.Ih));return C}; wJ9=function(p,C,V,N,H,X){p=V.inPlayerLayoutId?V.inPlayerLayoutId:jY(X,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);var d,a,E=V.instreamAdPlayerOverlayRenderer?(d=V.instreamAdPlayerOverlayRenderer)==null?void 0:d.adLayoutLoggingData:(a=V.playerOverlayLayoutRenderer)==null?void 0:a.adLayoutLoggingData;d={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Br:C};return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",y$:new Map,layoutExitNormalTriggers:[new PS(function(l){return sA(X, l)},V.DI)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:C,clientMetadata:N,eb:H(d),adLayoutLoggingData:E}}; pz=function(p,C){var V=this;this.C=p;this.x_=C;this.T=function(N){return sA(V.C.get(),N)}}; MLV=function(p,C,V,N,H,X){V=new a3([new l6(V),new NG(N)]);C=jY(p.C.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",C);N={layoutId:C,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Br:"core"};return{layoutId:C,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",y$:new Map,layoutExitNormalTriggers:[new PS(function(d){return sA(p.C.get(),d)},H)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:V,eb:X(N),adLayoutLoggingData:void 0}}; j8=function(p,C,V,N,H){var X=P8S(N);return wJ9(C,V,N,new a3(X),H,p.C.get())}; $gu=function(p,C,V,N,H){var X=P8S(N);X.push(new jT(N.lY));X.push(new Vy(N.OT));return wJ9(C,V,N,new a3(X),H,p.C.get())}; Fm=function(p,C,V,N,H,X,d,a,E,l){C=jY(p.C.get(),V,C);var t={layoutId:C,layoutType:V,Br:"core"},c=new Map;d&&c.set("impression",d);d=[new rF(p.T,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];l&&d.push(new eI(p.T,l,["normal"]));return{layoutId:C,layoutType:V,y$:c,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([N,new NG(X),new ST(H)]),eb:a(t),adLayoutLoggingData:E}}; S8=function(p,C,V,N,H,X,d,a,E){C=jY(p.C.get(),V,C);var l={layoutId:C,layoutType:V,Br:"core"},t=[new rF(p.T,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];E&&t.push(new eI(p.T,E,["normal"]));return{layoutId:C,layoutType:V,y$:new Map,layoutExitNormalTriggers:t,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([N,new NG(X),new ST(H)]),eb:d(l),adLayoutLoggingData:a}}; EA=function(p,C,V){var N=[];N.push(new BS(p.T,V));C&&N.push(C);return N}; aY=function(p,C,V,N,H,X,d){var a={layoutId:C,layoutType:V,Br:"core"};return{layoutId:C,layoutType:V,y$:new Map,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[new YP(p.T,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new BJ(N),new NG(H)]),eb:X(a),adLayoutLoggingData:N.adLayoutLoggingData}}; BP=function(p,C,V,N,H,X,d,a){var E={layoutId:C,layoutType:X,Br:"core"};return{layoutId:C,layoutType:X,y$:new Map,layoutExitNormalTriggers:[new PS(p.T,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new NG(N)].concat(g.K(d))),eb:H(E),adLayoutLoggingData:a}}; tL=function(p,C,V,N){if(p.x_.get().sV(C.kind==="AD_PLACEMENT_KIND_START"))if(V===void 0)S2("Expected SSAP layout ID in renderer",void 0,void 0,{caller:N});else return V}; Q41=function(p,C,V,N,H,X,d,a,E,l,t,c,T){p=l_(p,C,V,H,X,d,a,E,c,tL(p,V,N.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),T);C=p.Cf;V=new KF(p.fZ);N=p.layoutExitSkipTriggers;l>0&&(C.push(V),C.push(new dg(l)),N=[]);C.push(new Xw(t));return{Sq:{layoutId:p.layoutId,layoutType:p.layoutType,y$:p.y$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:p.Br,clientMetadata:new a3(C),eb:p.eb,adLayoutLoggingData:p.adLayoutLoggingData}, XV:N,F5:p.layoutExitMuteTriggers,rH:p.layoutExitUserInputSubmittedTriggers,sI:p.f1,p7:p.p7}}; pJV=function(p,C,V,N,H,X,d,a,E,l){C=l_(p,C,V,N,X,new Map,d,function(t){return a(t,E)},void 0,tL(p,V,H.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); p=new sT(p.T,C.fZ);V=new KF(C.fZ);l=new Xw(l);return{Sq:{layoutId:C.layoutId,layoutType:C.layoutType,y$:C.y$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:C.Br,clientMetadata:new a3([].concat(g.K(C.Cf),[V,l])),eb:C.eb,adLayoutLoggingData:C.adLayoutLoggingData},XV:C.layoutExitSkipTriggers,F5:C.layoutExitMuteTriggers,rH:[].concat(g.K(C.layoutExitUserInputSubmittedTriggers),[p]),sI:C.f1,p7:C.p7}}; l_=function(p,C,V,N,H,X,d,a,E,l,t){C=l!=null?l:jY(p.C.get(),"LAYOUT_TYPE_MEDIA_BREAK",C);l={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Br:"adapter"};a=a(C);var c=Ef(a.clientMetadata,"metadata_type_fulfilled_layout");c||S2("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var T=c?c.layoutId:"";V=[new NG(V),new gg(N),new rg(H)];c&&V.push(new DS(c.layoutType));t&&V.push(new x_(t));return{layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", y$:X,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new jB(p.T,T)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"adapter",Cf:V,eb:d(l),adLayoutLoggingData:E,p7:a,fZ:T}}; tL9=function(p,C,V,N,H,X,d,a,E,l,t){p=LCS(p,C,"core",V,N,H,X,d,a,E,l,void 0,t);return{layoutId:p.layoutId,layoutType:p.layoutType,y$:p.y$,layoutExitNormalTriggers:p.layoutExitNormalTriggers,layoutExitSkipTriggers:p.layoutExitSkipTriggers,layoutExitMuteTriggers:p.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:p.layoutExitUserInputSubmittedTriggers,f1:p.f1,Br:p.Br,clientMetadata:new a3(p.GZ),eb:p.eb,adLayoutLoggingData:p.adLayoutLoggingData}}; ak1=function(p,C,V,N,H,X,d,a,E,l,t,c,T){C=LCS(p,C,"adapter",V,N,H,X,d,a,E,t,c,T);N=C.layoutExitSkipTriggers;H=C.GZ;V.adPodSkipTarget&&V.adPodSkipTarget>0&&(H.push(l),H.push(new dg(V.adPodSkipTarget)),N=[]);H.push(new Xw(a.adPodIndex));V.isCritical&&(N=[new eI(p.T,C.layoutId,["error"])].concat(g.K(N)));return{Sq:{layoutId:C.layoutId,layoutType:C.layoutType,y$:C.y$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:C.Br,clientMetadata:new a3(H), eb:C.eb,adLayoutLoggingData:C.adLayoutLoggingData},XV:N,F5:C.layoutExitMuteTriggers,rH:C.layoutExitUserInputSubmittedTriggers,sI:C.f1}}; LCS=function(p,C,V,N,H,X,d,a,E,l,t,c,T){var M={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",Br:V};H=[new NG(H),new HV(E),new ha(N.externalVideoId),new sr(a),new rg({impressionCommands:N.impressionCommands,abandonCommands:N.onAbandonCommands,completeCommands:N.completeCommands,progressCommands:N.adVideoProgressCommands}),new Iw(X),new Ur({current:null}),new qG(d)];(X=N.playerOverlay.instreamAdPlayerOverlayRenderer)&&H.push(new aw(X));(d=N.playerOverlay.playerOverlayLayoutRenderer)&&H.push(new Er(d)); c&&H.push(new b6(c));(c=N.playerUnderlay)&&H.push(new l6(c));a=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");c=(c=X?X.elementId:d==null?void 0:d.layoutId)?c:jY(p.C.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);H.push(new KF(c));H.push(new u6(a));H.push(new x_(E.adPodIndex));N.adNextParams&&H.push(new Qi(N.adNextParams));N.shrunkenPlayerBytesConfig&&H.push(new Tc(N.shrunkenPlayerBytesConfig));N.clickthroughEndpoint&&H.push(new r_(N.clickthroughEndpoint));N.legacyInfoCardVastExtension&&H.push(new WV(N.legacyInfoCardVastExtension)); N.sodarExtensionData&&H.push(new Aa(N.sodarExtensionData));t&&H.push(new $_(t));H.push(new pP(qo(N.pings)));E=Ij(N.pings);if(T){a:{T=g.F(T);for(t=T.next();!t.done;t=T.next())if(t=t.value,t.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(X=g.n(t.fulfillmentContent.fulfilledLayout,bn))&&(X=g.n(X.renderingContent,qB))&&X.associatedPlayerBytesLayoutId===C){T=t;break a}T=void 0}T&&H.push(new ta(T))}return{layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",y$:E,layoutExitNormalTriggers:[new GT(p.T,C)],layoutExitSkipTriggers:N.skipOffsetMilliseconds? [new jB(p.T,c)]:[],layoutExitMuteTriggers:[new jB(p.T,c)],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:V,GZ:H,eb:l(M),adLayoutLoggingData:N.adLayoutLoggingData}}; NcX=function(p,C,V,N,H,X,d,a,E){N.every(function(t){return iH(t,[],["LAYOUT_TYPE_MEDIA"])})||S2("Unexpect subLayout type for DAI composite layout"); C=jY(p.C.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",C);var l={layoutId:C,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Br:"core"};return{layoutId:C,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",y$:new Map,layoutExitNormalTriggers:[new wF(p.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new ow(V),new k_(a),new Or(N),new NG(H),new nF(X),new Y_({}),new jU(E)]),eb:d(l)}}; G0L=function(p){return p!=null}; Cz=function(p,C,V){var N=this;this.C=p;this.V=C;this.x_=V;this.T=function(H){return sA(N.C.get(),H)}}; vYL=function(p,C,V,N,H,X,d){if(!V.prefetchModeConfig)return new G("AdPlacementConfig for Live Prefetch is missing prefetch_config");V=V.prefetchModeConfig;N*=1E3;var a=[];if(!V.breakLengthMs)return new G("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var E=g.F(V.breakLengthMs),l=E.next();!l.done;l=E.next())if(l=l.value,Number(l)>0){var t=N+Number(V.startTimeOffsetMs),c=t+Number(V.cacheFetchSmearingDurationMs);l={hW:new Od(c,c+Number(l)),z3:!1,YQ:new Od(Math.floor(t+Math.random()* Number(V.cacheFetchSmearingDurationMs)),c),cueProcessedMs:N?N:t};t=[];t.push(new XJ({}));c=[];c.push(new Cj(p.T));c.push(new LAv(p.T));d&&t.push(new Y_({}));a.push(PP(p,C,H,l,X,t,c))}return a}; PP=function(p,C,V,N,H,X,d){X=X===void 0?[]:X;d=d===void 0?[]:d;var a=SY(p.C.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),E=[];d=g.F(d);for(var l=d.next();!l.done;l=d.next())E.push(l.value);N.YQ&&N.YQ.start!==N.hW.start&&E.push(new WS(p.T,V,new Od(N.YQ.start,N.hW.start),!1));E.push(new WS(p.T,V,new Od(N.hW.start,N.hW.end),N.z3));N={getAdBreakUrl:C.getAdBreakUrl,cS:N.hW.start,qS:N.hW.end,cueProcessedMs:N.cueProcessedMs};C=new Xg(p.T,a);X=[new PV(N)].concat(g.K(X));return{slotId:a,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:E,slotExpirationTriggers:[new pj(p.T,V),new NB(p.T,a),new HP(p.T,a)],Br:"core",clientMetadata:new a3(X),adSlotLoggingData:H}}; WCj=function(p,C,V){var N=[];V=g.F(V);for(var H=V.next();!H.done;H=V.next())N.push(gYv(p,C,H.value));return N}; gYv=function(p,C,V){return V.triggeringSlotId!=null&&V.triggeringSlotId===p?V.clone(C):V}; niY=function(p,C,V,N,H){return QES(p,C,V,N,H)}; rd1=function(p,C,V,N){var H=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");return QES(p,H,C,V,N)}; QES=function(p,C,V,N,H){var X=new nr(p.T,V),d=[new V9(p.T,C)];p=[new NB(p.T,C),new pj(p.T,N)];return{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(H({slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p},V))]),adSlotLoggingData:void 0}}; EYj=function(p,C,V,N,H,X){var d=SY(p.C.get(),"SLOT_TYPE_PLAYER_BYTES"),a=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER"),E=jY(p.C.get(),"LAYOUT_TYPE_SURVEY",a);N=j3(p,C,V,N);var l=[new V9(p.T,d)];V=[new NB(p.T,d),new pj(p.T,V),new YP(p.T,E)];if(N instanceof G)return N;a=X({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:N,slotFulfillmentTriggers:l,slotExpirationTriggers:V},{slotId:a,layoutId:E});X=a.jo;a=a.qH;return[{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Td(p,C,d,N),slotFulfillmentTriggers:M3(p,C,d,l),slotExpirationTriggers:V,Br:"core",clientMetadata:new a3([new eT(X),new VV(JL(C)),new HU({eX:p.eX(C)})]),adSlotLoggingData:H},a]}; JL=function(p){return p.kind==="AD_PLACEMENT_KIND_START"}; cd9=function(p,C,V,N,H){H=H?H:SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");V=new nr(p.T,V);var X=[new V9(p.T,H)];p=[new pj(p.T,C),new NB(p.T,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(N({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p}))])}}; TcQ=function(p,C,V,N){var H=SY(p.C.get(),"SLOT_TYPE_PLAYER_UNDERLAY");V=new nr(p.T,V);var X=[new V9(p.T,H)];p=[new pj(p.T,C),new NB(p.T,H)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(N({slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p}))])}}; dRL=function(p,C,V,N,H,X,d){var a=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER"),E=jY(p.C.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",a);N=rqv(p,N,X,d,E);if(N instanceof G)return N;d=[new V9(p.T,a)];H=[new pj(p.T,X),new V9(p.T,H),new hM(p.T,H)];V=J4(V,{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:N,slotFulfillmentTriggers:d,slotExpirationTriggers:H});p=p.V.get();X={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Br:"core"};C={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", y$:new Map,layoutExitNormalTriggers:[new C7X(p.T,E,C.durationMs)],layoutExitSkipTriggers:[new ViV(p.T,E,C.durationMs)],f1:[new jDH(p.T,E)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Br:"core",clientMetadata:new a3([new Qy(C)]),eb:V(X)};return{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:N,slotFulfillmentTriggers:d,slotExpirationTriggers:H,clientMetadata:new a3([new eT(C)])}}; g9Q=function(p,C,V,N,H,X){C=j3(p,C,V,N);if(C instanceof G)return C;var d=C instanceof WS?new BkS(p.T,V,C.T):null;N=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");var a=[new V9(p.T,N)];p=[new pj(p.T,V),new NB(p.T,N)];X=X({slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:C,slotFulfillmentTriggers:a,slotExpirationTriggers:p},d);return X instanceof sf?new G(X):{slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:a,slotExpirationTriggers:p, Br:"core",clientMetadata:new a3([new eT(X)]),adSlotLoggingData:H}}; $RQ=function(p,C,V,N){var H=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER"),X=new xP(p.T,C),d=[new d2(p.T,H)];p=[new pj(p.T,C),new NB(p.T,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(N({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p}))]),adSlotLoggingData:V}}; giY=function(p,C,V,N){var H=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");V=new nr(p.T,V);var X=[new V9(p.T,H)],d=[new NB(p.T,H),new pj(p.T,C)];X={slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:d};return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:[new V9(p.T,H)],slotExpirationTriggers:[new pj(p.T,C),new NB(p.T,H)],Br:"core",clientMetadata:new a3([new eT(N(X))])}}; wha=function(p,C,V,N,H){var X=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");V=new Rl(p.T,N,V);N=[new V9(p.T,X)];p=[new pj(p.T,C)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:N,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(H({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:N,slotExpirationTriggers:p}))])}}; YnX=function(p,C,V,N,H,X){var d=SY(p.C.get(),C);return VC(p,d,C,new nr(p.T,N),[new pj(p.T,V),new NB(p.T,d),new eI(p.T,N,["error"])],H,X)}; xQS=function(p,C,V,N,H,X,d){var a=SY(p.C.get(),C);return VC(p,a,C,new eI(p.T,H,["normal"]),[new pj(p.T,V),new NB(p.T,a),new eI(p.T,N,["error"])],X,d)}; bSy=function(p,C,V,N,H){var X=SY(p.C.get(),C);return VC(p,X,C,new xP(p.T,V),[new pj(p.T,V),new NB(p.T,X)],N,H)}; n9S=function(p,C,V,N,H){V=V?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var X=SY(p.C.get(),V);C=new xP(p.T,C);var d=[new V9(p.T,X)];p=[new NB(p.T,X)];return{slotId:X,slotType:V,slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(H({slotId:X,slotType:V,slotPhysicalPosition:1,Br:"core",slotEntryTrigger:C,slotFulfillmentTriggers:d,slotExpirationTriggers:p}))]),adSlotLoggingData:N}}; pH1=function(p,C,V,N){var H=SY(p.C.get(),"SLOT_TYPE_PLAYER_BYTES"),X=new gF(p.T),d=[new d2(p.T,H)];p=[new pj(p.T,C)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(N({slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p})),new Y_({})]),adSlotLoggingData:V}}; dgS=function(p,C){return Jqv(p.x_.get())?new eI(p.T,C,["normal","error","skipped"]):new eI(p.T,C,["normal"])}; afY=function(p,C,V,N,H){C=dgS(p,C);p=c0(p,C,V);H=H({slotId:p.slotId,slotType:p.slotType,slotPhysicalPosition:p.slotPhysicalPosition,slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:p.slotExpirationTriggers,Br:p.Br});return H instanceof G?H:{Wn:Object.assign({},p,{clientMetadata:new a3([new eT(H.layout)]),adSlotLoggingData:N}),uW:H.uW}}; E9V=function(p,C,V,N,H,X,d){V=iWy(p,C,V,N);if(V instanceof G)return V;d=d({slotId:V.slotId,slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers,slotExpirationTriggers:V.slotExpirationTriggers,Br:V.Br});if(d instanceof G)return d;N=[new VV(JL(C)),new eT(d.layout),new HU({eX:p.eX(C)})];X&&N.push(new BV({}));return{Wn:{slotId:V.slotId,slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,slotEntryTrigger:Td(p, C,V.slotId,V.slotEntryTrigger),slotFulfillmentTriggers:M3(p,C,V.slotId,V.slotFulfillmentTriggers),slotExpirationTriggers:V.slotExpirationTriggers,Br:V.Br,clientMetadata:new a3(N),adSlotLoggingData:H},uW:d.uW}}; Td=function(p,C,V,N){return p.x_.get().sV(JL(C))?new ol(p.T,V):N}; M3=function(p,C,V,N){return p.x_.get().sV(JL(C))?[new d2(p.T,V)]:N}; c0=function(p,C,V){var N=SY(p.C.get(),"SLOT_TYPE_PLAYER_BYTES"),H=[new V9(p.T,N)];p=[new NB(p.T,N),new pj(p.T,V)];return{slotId:N,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:H,slotExpirationTriggers:p,Br:"core"}}; iWy=function(p,C,V,N){C=j3(p,C,V,N);return C instanceof G?C:c0(p,C,V)}; PeX=function(p,C,V,N,H,X){var d=SY(p.C.get(),"SLOT_TYPE_FORECASTING");C=j3(p,C,V,N);if(C instanceof G)return C;N=[new V9(p.T,d)];p=[new NB(p.T,d),new pj(p.T,V)];return{slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:N,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(X({slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:C,slotFulfillmentTriggers:N,slotExpirationTriggers:p}))]),adSlotLoggingData:H}}; B_u=function(p,C,V,N,H){var X=!C.hideCueRangeMarker;switch(C.kind){case "AD_PLACEMENT_KIND_START":return new xP(p.T,V);case "AD_PLACEMENT_KIND_MILLISECONDS":return p=OSS(C,N),p instanceof G?p:H(p.hW,X);case "AD_PLACEMENT_KIND_END":return new zT(p.T,V,X);default:return new G("Cannot construct entry trigger",{kind:C.kind})}}; rqv=function(p,C,V,N,H){return B_u(p,C,V,N,function(X,d){return new r7e(p.T,V,X,d,H)})}; j3=function(p,C,V,N){return B_u(p,C,V,N,function(H,X){return new WS(p.T,V,H,X)})}; VC=function(p,C,V,N,H,X,d){p=[new d2(p.T,C)];return{slotId:C,slotType:V,slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:H,Br:"core",clientMetadata:new a3([new eT(d({slotId:C,slotType:V,slotPhysicalPosition:1,Br:"core",slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:H}))]),adSlotLoggingData:X}}; NO=function(p,C){g.Y.call(this);this.x_=p;this.T=C;this.eventCount=0}; HY=function(p,C,V,N){NO.call(this,p,C);this.x_=p;this.pS=V;this.context=N}; XF=function(){this.T=new Map}; h5=function(p,C){var V=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=p;this.result=C.result;this.error=C.error;C.promise&&C.promise.then(function(N){dr(V,N)},function(N){it(V,N)})}; Ei=function(p){if(si(p)){if(p instanceof h5)return p;if(aH(p))return new h5("wait",{promise:p})}return new h5("done",{result:p})}; lt=function(p){return new h5("fail",{error:p})}; t5=function(p){try{return Ei(p())}catch(C){return lt(C)}}; Tv=function(p,C){var V=new h5("wait",{});p.onSuccess.push(function(N){try{var H=C(N);dr(V,H)}catch(X){it(V,X)}}); p.onFailure.push(function(N){it(V,N)}); cY(p);return V}; MO=function(p,C){var V=new h5("wait",{});p.onSuccess.push(function(N){dr(V,N)}); p.onFailure.push(function(N){try{var H=C(N);dr(V,H)}catch(X){it(V,X)}}); cY(p);return V}; dr=function(p,C){if(si(C)){if(aH(C)){C.then(function(V){dr(p,V)},function(V){it(p,V)}); return}if(C instanceof h5){Tv(C,function(V){dr(p,V)}); MO(C,function(V){it(p,V)}); return}}p.currentState="done";p.result=C;cY(p)}; it=function(p,C){p.currentState="fail";p.error=C;cY(p)}; cY=function(p){if(p.currentState==="done"){var C=p.onSuccess;p.onSuccess=[];p.onFailure=[];C=g.F(C);for(var V=C.next();!V.done;V=C.next())V=V.value,V(p.result)}else if(p.currentState==="fail")for(C=p.onFailure,p.onSuccess=[],p.onFailure=[],C=g.F(C),V=C.next();!V.done;V=C.next())V=V.value,V(p.error)}; pVX=function(p){return function(){return Gfa(p.apply(this,g.US.apply(0,arguments)))}}; Gfa=function(p){return t5(function(){return J5(p,p.next())})}; J5=function(p,C){return C.done?Ei(C.value):MO(Tv(C.value.Gb,function(V){return J5(p,p.next(V))}),function(V){return J5(p,p.throw(V))})}; vY=function(p){var C=p.hours||0;var V=p.minutes||0,N=p.seconds||0;C=N+V*60+C*3600+(p.days||0)*86400+(p.weeks||0)*604800+(p.months||0)*2629800+(p.years||0)*31557600;C<=0?C={hours:0,minutes:0,seconds:0}:(p=C,C=Math.floor(p/3600),p%=3600,V=Math.floor(p/60),N=Math.floor(p%60),C={hours:C,minutes:V,seconds:N});var H=C.hours===void 0?0:C.hours;V=C.minutes===void 0?0:C.minutes;p=C.seconds===void 0?0:C.seconds;N=H>0;C=[];if(N){H=(new Intl.NumberFormat("en-u-nu-latn")).format(H);var X=["fr"],d="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(" "); H="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(mZ)?H.replace(",","\u00a0"):X.includes(mZ)?H.replace(",","\u202f"):d.includes(mZ)?H.replace(",","."):H;C.push(H)}N=N===void 0?!1:N;V=(["af","be","lt"].includes(mZ)||N)&&V<10?C6a().format(V):(new Intl.NumberFormat("en-u-nu-latn")).format(V);C.push(V);V=C6a().format(p);C.push(V);V=":";"da fi id si sr sr-Latn".split(" ").includes(mZ)&&(V=".");return C.join(V)}; C6a=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; jwL=function(p,C){var V,N;p=((V=p.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(N=V.videoAuthorizationToken)==null?void 0:N.credentialTransferTokens)||[];for(V=0;VC;p=V}else p=!1;return p}; v_j=function(p){p=p.split("");oH.rk(p,59);oH.z6(p,1);oH.rk(p,62);oH.rk(p,24);oH.z6(p,2);oH.CZ(p,15);oH.rk(p,70);return p.join("")}; g.k1=function(p,C){return p.Vn+"timedtext_video?ref=player&v="+C.videoId}; g.Fte=function(p){var C=this;this.videoData=p;p={};this.T=(p.c1a=function(){var V=[];if(g.bt.isInitialized()){var N="";C.videoData&&C.videoData.Mr&&(N=C.videoData.Mr+("&r1b="+C.videoData.clientPlaybackNonce));var H={};N=(H.atr_challenge=N,H);hd("bg_v",void 0,"player_att");(N=mGv(N))?(hd("bg_s",void 0,"player_att"),V.push("r1a="+N)):(hd("bg_e",void 0,"player_att"),V.push("r1c=2"))}else hd("bg_e",void 0,"player_att"),window.trayride||window.botguard?V.push("r1c=1"):V.push("r1c=4");V.push("r1d="+g.bt.getState()); return V.join("&")},p.c6a=function(V){return"r6a="+(Number(V.c)^U0())},p.c6b=function(V){return"r6b="+(Number(V.c)^Number(g.pO("CATSTAT",0)))},p); this.videoData&&this.videoData.Mr?this.o8=i1(this.videoData.Mr):this.o8={}}; g.Sry=function(p){if(p.videoData&&p.videoData.Mr){for(var C=[p.videoData.Mr],V=g.F(Object.keys(p.T)),N=V.next();!N.done;N=V.next())N=N.value,p.o8[N]&&p.T[N]&&(N=p.T[N](p.o8))&&C.push(N);return C.join("&")}return null}; g.x1=function(p,C){JaQ(p,{ebV:g.mi(C.experiments,"bg_vm_reinit_threshold"),cspNonce:C.cspNonce})}; Kt9=function(){var p=XMLHttpRequest.prototype.fetch;return!!p&&p.length===3}; Y1=function(p){p=p===void 0?2592E3:p;if(p>0&&!(CuS()>(0,g.Ip)()-p*1E3))return 0;p=g.zW("yt-player-quality");if(typeof p==="string"){if(p=g.PB[p],p>0)return p}else if(p instanceof Object)return p.quality;return 0}; zv=function(){var p=g.zW("yt-player-proxima-pref");return p==null?null:p}; DGy=function(){var p=g.zW("yt-player-quality");if(p instanceof Object&&p.quality&&p.previousQuality){if(p.quality>p.previousQuality)return 1;if(p.quality0&&a[0]?d.getAutoplayPolicy(a[0]):d.getAutoplayPolicy("mediaelement");if(yaL[E]){var l=yaL[E];break a}}}catch(t){}l="AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}N.embeddedPlayerContext=X.call(H,{},p,{autoplayBrowserPolicy:l,autoplayIntended:C.va||C.X4||C.mutedAutoplay,autoplayStatus:C.va||C.X4||C.mutedAutoplay?V!==1&&V!==2&&V!==0?"AUTOPLAY_STATUS_UNAVAILABLE":C.lG?"AUTOPLAY_STATUS_BLOCKED": "AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"})}}; AaH=function(p,C){EF(p,2,C.Tv,$1,3);EF(p,3,C.Aq,ISH,3);sF(p,4,C.onesieUstreamerConfig);sF(p,9,C.ac);EF(p,10,C.Fz,Lz,3);EF(p,15,C.reloadPlaybackParams,bFL,3)}; kce=function(p,C){EF(p,1,C.formatId,gr,3);i8(p,2,C.startTimeMs);i8(p,3,C.durationMs);i8(p,4,C.WI);i8(p,5,C.nx);EF(p,9,C.RFn,o_e,3);EF(p,11,C.xSa,WY,1);EF(p,12,C.SK,WY,1)}; xGL=function(p,C){aE(p,1,C.videoId);i8(p,2,C.lmt)}; o_e=function(p,C){if(C.O6)for(var V=0;V>31));i8(p,16,C.mw);i8(p,17,C.detailedNetworkType);i8(p,18,C.rN);i8(p,19,C.IZ);i8(p,21,C.Dg$);i8(p,23,C.qp);i8(p,28,C.hZ);i8(p,29,C.qVr);i8(p,34,C.visibility);V=C.playbackRate;if(V!==void 0){var N=new ArrayBuffer(4);(new Float32Array(N))[0]=V;V=(new Uint32Array(N))[0];if(V!==void 0)for(d_(p,285),Xq(p,4),N=0;N<4;)p.view.setUint8(p.pos,V&255),V>>=8,p.pos+=1,N+=1}i8(p,36,C.oZ); EF(p,38,C.mediaCapabilities,RKS,3);i8(p,39,C.Fca);i8(p,40,C.GT);i8(p,44,C.playerState);hq(p,46,C.Jn);i8(p,48,C.Q2);i8(p,50,C.Hb);i8(p,51,C.ys);i8(p,54,C.iL);hq(p,56,C.ZK);i8(p,57,C.u4);hq(p,58,C.Oi);i8(p,59,C.Tp);i8(p,60,C.MQ);hq(p,61,C.isPrefetch);i8(p,62,C.cq);sF(p,63,C.sabrLicenseConstraint);i8(p,64,C.fD);i8(p,66,C.vU);i8(p,67,C.jae);i8(p,68,C.gF);aE(p,69,C.audioTrackId);hq(p,71,C.Pb);EF(p,72,C.LgY,zKV,1);i8(p,74,C.b7);i8(p,75,C.n8)}; RKS=function(p,C){if(C.videoFormatCapabilities)for(var V=0;V>31));aE(p,2,C.message)}; Qws=function(p,C){i8(p,1,C.clientState);EF(p,2,C.FFo,g_e,1)}; LtS=function(p,C){sF(p,1,C.Z1n);EF(p,2,C.Mro,Wt1,3);EF(p,3,C.coldStartInfo,Qws,3)}; $Gj=function(p,C){i8(p,1,C.type);sF(p,2,C.value)}; wVv=function(p,C){aE(p,1,C.hl);aE(p,12,C.deviceMake);aE(p,13,C.deviceModel);i8(p,16,C.clientName);aE(p,17,C.clientVersion);aE(p,18,C.osName);aE(p,19,C.osVersion)}; raa=function(p,C){aE(p,1,C.name);aE(p,2,C.value)}; Bg1=function(p,C){aE(p,1,C.url);if(C.Zy)for(var V=0;V1&&(this.W=p[1]==="2")}; Cw=function(p,C,V,N,H){this.C=p;this.T=C;this.V=V;this.reason=N;this.F$=H===void 0?0:H}; g.jo=function(p,C,V,N){return new Cw(g.PB[p]||0,g.PB[C]||0,V,N)}; Ni=function(p){if(VS&&p.F$)return!1;var C=g.PB.auto;return p.C===C&&p.T===C}; XP=function(p){return H1[p.T||p.C]||"auto"}; kmL=function(p,C){C=g.PB[C];return p.C<=C&&(!p.T||p.T>=C)}; dH=function(p){return"["+p.C+"-"+p.T+", override: "+(p.V+", reason: "+p.reason+"]")}; i5=function(p,C,V){this.videoInfos=p;this.T=C;this.audioTracks=[];if(this.T){p=new Set;V==null||V({ainfolen:this.T.length});C=g.F(this.T);for(var N=C.next();!N.done;N=C.next())if(N=N.value,!N.K4||p.has(N.K4.id)){var H=void 0,X=void 0,d=void 0;(d=V)==null||d({atkerr:!!N.K4,itag:N.itag,xtag:N.T,lang:((H=N.K4)==null?void 0:H.name)||"",langid:((X=N.K4)==null?void 0:X.id)||""})}else H=new g.pw(N.id,N.K4),p.add(N.K4.id),this.audioTracks.push(H);V==null||V({atklen:this.audioTracks.length})}}; he=function(){g.Y.apply(this,arguments);this.T=null}; RqH=function(p,C,V,N,H,X,d){if(p.T)return p.T;var a={},E=new Set,l={};if(sc(N)){for(var t in N.T)N.T.hasOwnProperty(t)&&(p=N.T[t],l[p.info.o$]=[p.info]);return l}t=xz1(C,N,a);X&&H({aftsrt:a2(t)});for(var c={},T=g.F(Object.keys(t)),M=T.next();!M.done;M=T.next()){M=M.value;for(var J=g.F(t[M]),S=J.next();!S.done;S=J.next()){S=S.value;var D=S.itag,Z=void 0,f=M+"_"+(((Z=S.video)==null?void 0:Z.fps)||0);c.hasOwnProperty(f)?c[f]===!0?l[M].push(S):a[D]=c[f]:(Z=Ec(C,S,V,N.isLive,E),Z!==!0?(d.add(M),a[D]=Z, Z==="disablevp9hfr"&&(c[f]="disablevp9hfr")):(l[M]=l[M]||[],l[M].push(S),c[f]=!0))}}X&&H({bfflt:a2(l)});for(var q in l)l.hasOwnProperty(q)&&(N=q,l[N]&&l[N][0].K9()&&(l[N]=l[N],l[N]=YfQ(C,l[N],a),l[N]=zqS(l[N],a)));X&&H(a);C=g.F(E.values());for(N=C.next();!N.done;N=C.next())(N=V.C.get(N.value))&&--N.pB;X&&H({aftflt:a2(l)});p.T=g.U_(l,function(A){return!!A.length}); return p.T}; eqj=function(p,C,V,N,H,X,d,a){a=a===void 0?!1:a;if(C.RN&&d&&d.length>1&&!(C.Tp>0||C.J)){for(var E=C.C||!!H,l=E&&C.Q$?X:void 0,t=xz1(C,N),c=[],T=[],M={},J=0;J0&&T&&H&&(t=[d,V],D=H.concat(T).filter(function(Z){return Z})); if(D.length&&!C.Oi){c1(D,t);if(E){E=[];C=g.F(D);for(N=C.next();!N.done;N=C.next())E.push(N.value.itag);X({hbdfmt:E.join(".")})}return YD(new i5(D,p,l))}D=Bts(C);D=g.L0(D,a);if(!D){if(c[d])return X=c[d],c1(X),YD(new i5(X,p,l));E&&X({novideo:1});return xD()}C.va&&(D==="1"||D==="1h")&&c[V]&&(d=Tr(c[D]),t=Tr(c[V]),t>d?D=V:t===d&&GmL(c[V])&&(D=V));D==="9"&&c.h&&Tr(c.h)>Tr(c["9"])&&(D="h");C.ER&&N.isLive&&D==="("&&c.H&&Tr(c["("])<1440&&(D="H");E&&X({vfmly:Mi(D)});C=c[D];if(!C.length)return E&&X({novfmly:Mi(D)}), xD();c1(C);return YD(new i5(C,p,l))}; wUX=function(p,C){var V=!(!p.m&&!p.M),N=!(!p.mac3&&!p.MAC3),H=!(!p.meac3&&!p.MEAC3);p=!(!p.i&&!p.I);C.QZ=p;return V||N||H||p}; GmL=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(C=C.value,C.itag&&p8S.has(C.itag))return!0;return!1}; Mi=function(p){switch(p){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return p}}; a2=function(p){var C=[],V;for(V in p)if(p.hasOwnProperty(V)){var N=V;C.push(Mi(N));N=g.F(p[N]);for(var H=N.next();!H.done;H=N.next())C.push(H.value.itag)}return C.join(".")}; PHL=function(p,C,V,N,H,X){var d={},a={};g.ZH(C,function(E,l){E=E.filter(function(t){var c=t.itag;if(!t.vV)return a[c]="noenc",!1;if(X.Hc&&t.o$==="(h"&&X.kM)return a[c]="lichdr",!1;if(t.o$==="("||t.o$==="(h"){if(p.S&&V&&V.flavor==="widevine"){var T=t.mimeType+"; experimental=allowed";(T=!!t.vV[V.flavor]&&!!V.T[T])||(a[c]=t.vV[V.flavor]?"unspt":"noflv");return T}if(!Je(p,mw.CRYPTOBLOCKFORMAT)&&!p.Wr||p.sY)return a[c]=p.sY?"disvp":"vpsub",!1}return V&&t.vV[V.flavor]&&V.T[t.mimeType]?!0:(a[c]=V?t.vV[V.flavor]? "unspt":"noflv":"nosys",!1)}); E.length&&(d[l]=E)}); N&&Object.entries(a).length&&H(a);return d}; zqS=function(p,C){var V=kc(p,function(N,H){return H.video.fps>32?Math.min(N,H.video.width):N},Infinity); V32||N.video.widthp.Y)return"max"+p.Y;if(p.qo&&C.o$==="h"&&C.video&&C.video.T>1080)return"blkhigh264";if(C.o$==="(h"&&!V.Y)return"enchdr";if((N===void 0?0:N)&&px(C)&&!p.Y_)return"blk51live";if((C.o$==="MAC3"||C.o$==="mac3")&&!p.S)return"blkac3";if((C.o$==="MEAC3"||C.o$==="meac3")&&!p.W)return"blkeac3";if((C.o$==="M"||C.o$==="m")&&!p.b_)return"blkaac51";if((C.o$=== "so"||C.o$==="sa")&&!p.sY)return"blkamb";if(!p.Hc&&C.vV&&C.vV.fairplay&&(C.o$==="("||C.o$==="(h"||C.o$==="A"||C.o$==="MEAC3"))return"cbc";if((C.o$==="i"||C.o$==="I")&&!p.YM)return"blkiamf";if(C.itag==="774"&&!p.Sa)return"blkouh";var X,d;if(p.KS&&(C.o$==="1"||C.o$==="1h")&&((X=C.video)==null?0:X.T)&&((d=C.video)==null?void 0:d.T)>p.KS)return"av1cap";if((N=V.C.get(C.o$))&&N.pB>0)return H.add(C.o$),"byerr";var a;if((a=C.video)==null?0:a.fps>32){if(!V.Sa&&!Je(V,mw.FRAMERATE))return"capHfr";if(p.Qn&&C.video.T>= 4320)return"blk8khfr";if(Qu(C)){if(p.kt&&C.vV&&C.video.T>=1440)return"disablevp9hfr";if(p.o6&&g.gm("appletv5")&&C.vV)return"atv5sfr"}}if(p.F$&&C.F$>p.F$)return"ratecap";p=CGV(V,C);return p!==!0?p:!0}; c1=function(p,C){C=C===void 0?[]:C;g.hB(p,function(V,N){var H=N.F$-V.F$;if(!V.K9()||!N.K9())return H;var X=N.video.height*N.video.width-V.video.height*V.video.width;!X&&C&&C.length>0&&(V=C.indexOf(V.o$)+1,N=C.indexOf(N.o$)+1,X=V===0||N===0?N||-1:V-N);X||(X=H);return X})}; g.v1=function(p,C){this.C=p;this.S=C===void 0?!1:C;this.V=this.path=this.scheme="";this.T={};this.url=""}; So=function(p){FP(p);return p.V}; Kw=function(p){return p.C?p.C.startsWith("local"):p.scheme==="local"}; jj9=function(p){FP(p);return g.O_(p.T,function(C){return C!==null})}; Dy=function(p){FP(p);var C=decodeURIComponent(p.get("mn")||"").split(",");return p.path==="/videoplayback"&&C.length>1&&!!C[1]}; u5=function(p,C){C=C===void 0?!1:C;FP(p);if(p.path!=="/videoplayback"){var V=p.clone();V.set("playerfallback","1");return V}var N=p.i9();V=new g.SZ(N);var H=p.get("fvip"),X=decodeURIComponent(p.get("mn")||"").split(",");if(H&&X&&X.length>1&&X[1])return N=V.T,p=N.replace(/^[^.]*/,""),g.Dq(V,(N.indexOf("rr")===0?"rr":"r")+H+"---"+X[1]+p),V=new g.v1(V.toString()),V.set("fallback_count","1"),V;if(C)return V=p.clone(),V.set("fallback_count","1"),V;H=V.T.match("\\.a1\\.googlevideo\\.com$");V.T.match("\\.googlevideo\\.com$")? (g.Dq(V,"redirector.googlevideo.com"),N=V.toString()):V.T.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Dq(V,"www.youtube.com"),N=V.toString()):(V=XQ9(N),XY(V)&&(N=V));V=new g.v1(N);V.set("cmo=pf","1");H&&V.set("cmo=td","a1.googlevideo.com");return V}; FP=function(p){if(p.C){if(!XY(p.C)&&!p.C.startsWith("local"))throw new g.Bw("Untrusted URL",p.C);var C=g.q_(p.C);p.scheme=C.W;p.V=C.T+(C.V!=null?":"+C.V:"");var V=C.C;if(V.startsWith("/videoplayback"))p.path="/videoplayback",V=V.slice(14);else if(V.startsWith("/initplayback"))p.path="/initplayback",V=V.slice(13);else if(V.startsWith("/api/manifest")){var N=V.indexOf("/",12),H=V.indexOf("/",N+1);N>0&&H>0?(p.path=V.slice(0,H),V=V.slice(H+1)):(p.path=V,V="")}else p.path=V,V="";N=p.T;p.T=VY9(V);Object.assign(p.T, NnQ(C.S.toString()));Object.assign(p.T,N);p.T.file==="index.m3u8"&&(delete p.T.file,p.path+="/file/index.m3u8");p.C="";p.url="";p.S&&(C=eUa(),FP(p),V=p.T[C]||null)&&(V=Hse[0](V),p.set(C,V),p.S||eUa(""))}}; X8H=function(p){FP(p);var C=p.scheme+(p.scheme?"://":"//")+p.V+p.path;if(jj9(p)){var V=[];g.ZH(p.T,function(N,H){N!==null&&V.push(H+"="+N)}); C+="?"+V.join("&")}return C}; VY9=function(p){p=p.split("/");var C=0;p[0]||C++;for(var V={};C0?doV(C,N.slice(0,H),N.slice(H+1)):N&&(C[N]="")}return C}; doV=function(p,C,V){if(C==="cmo"){var N;(N=V.indexOf("="))>=0?(C="cmo="+V.slice(0,N),V=V.slice(N+1)):(N=V.indexOf("%3D"))>=0&&(C="cmo="+V.slice(0,N),V=V.slice(N+3))}p[C]=V}; Zy=function(p){var C=g.n(p,isv)||p.signatureCipher;p={m7:!1,TT:"",Kl:"",s:""};if(!C)return p;C=i1(C);p.m7=!0;p.TT=C.url;p.Kl=C.sp;p.s=C.s;return p}; Uc=function(p,C,V,N,H,X,d,a,E){this.LS=p;this.startTime=C;this.duration=V;this.ingestionTime=N;this.sourceURL=H;this.xB=E;this.endTime=C+V;this.T=d||0;this.range=X||null;this.pending=a||!1;this.xB=E||null}; g.fw=function(){this.segments=[];this.T=null;this.C=!0;this.V=""}; h4L=function(p,C){if(C>p.Ha())p.segments=[];else{var V=$2(p.segments,function(N){return N.LS>=C},p); V>0&&p.segments.splice(0,V)}}; Oc=function(p,C,V,N,H){H=H===void 0?!1:H;this.data=p;this.offset=C;this.size=V;this.type=N;this.T=(this.C=H)?0:8;this.dataOffset=this.offset+this.T}; yS=function(p){var C=p.data.getUint8(p.offset+p.T);p.T+=1;return C}; qi=function(p){var C=p.data.getUint16(p.offset+p.T);p.T+=2;return C}; I2=function(p){var C=p.data.getInt32(p.offset+p.T);p.T+=4;return C}; b5=function(p){var C=p.data.getUint32(p.offset+p.T);p.T+=4;return C}; Ae=function(p){var C=p.data;var V=p.offset+p.T;C=C.getUint32(V)*4294967296+C.getUint32(V+4);p.T+=8;return C}; o2=function(p,C){C=C===void 0?NaN:C;if(isNaN(C))var V=p.size;else for(V=p.T;V1?Math.ceil(H*C):Math.floor(H*C))}p.skip(1);V=yS(p)<<16|qi(p);if(V&256){N=V&1;H=V&4;var X=V&512,d=V&1024,a=V&2048;V=b5(p);N&&p.skip(4);H&&p.skip(4);N=(X?4:0)+(d?4:0)+(a?4:0);for(H=0;H1?Math.ceil(d*C):Math.floor(d*C)),p.skip(N)}}}; wH=function(p){p=new DataView(p.buffer,p.byteOffset,p.byteLength);return(p=g.eo(p,0,1836476516))?g.P1(p):NaN}; vuX=function(p){var C=g.eo(p,0,1937011556);if(!C)return null;C=$g(p,C.dataOffset+8,1635148593)||$g(p,C.dataOffset+8,1635135537);if(!C)return null;var V=$g(p,C.dataOffset+78,1936995172),N=$g(p,C.dataOffset+78,1937126244);if(!N)return null;C=null;if(V)switch(V.skip(4),yS(V)){default:C=0;break;case 1:C=2;break;case 2:C=1;break;case 3:C=255}var H=V=null,X=null;if(N=$g(p,N.dataOffset,1886547818)){var d=$g(p,N.dataOffset,1886546020),a=$g(p,N.dataOffset,2037673328);if(!a&&(a=$g(p,N.dataOffset,1836279920), !a))return null;d&&(d.skip(4),V=I2(d)/65536,X=I2(d)/65536,H=I2(d)/65536);p=sjy(a);p=new DataView(p.buffer,p.byteOffset+8,p.byteLength-8);return new Jys(C,V,X,H,p)}return null}; $g=function(p,C,V){for(;Lw(p,C);){var N=gH(p,C);if(N.type===V)return N;C+=N.size}return null}; g.eo=function(p,C,V){for(;Lw(p,C);){var N=gH(p,C);if(N.type===V)return N;C=W1(N.type)?C+8:C+N.size}return null}; g.QS=function(p){if(p.data.getUint8(p.dataOffset)){var C=p.data;p=p.dataOffset+4;C=C.getUint32(p)*4294967296+C.getUint32(p+4)}else C=p.data.getUint32(p.dataOffset+4);return C}; gH=function(p,C){var V=p.getUint32(C),N=p.getUint32(C+4);return new Oc(p,C,V,N)}; g.P1=function(p){var C=p.data.getUint8(p.dataOffset)?20:12;return p.data.getUint32(p.dataOffset+C)}; FkL=function(p){p=new Oc(p.data,p.offset,p.size,p.type,p.C);var C=yS(p);p.skip(7);var V=b5(p);if(C===0){C=b5(p);var N=b5(p)}else C=Ae(p),N=Ae(p);p.skip(2);for(var H=qi(p),X=[],d=[],a=0;a122)return!1}return!0}; W1=function(p){return p===1701082227||p===1836019558||p===1836019574||p===1835297121||p===1835626086||p===1937007212||p===1953653094||p===1953653099||p===1836475768}; SzX=function(p){p.skip(4);return{Mdn:o2(p,0),value:o2(p,0),Sz:b5(p),Vto:b5(p),a$o:b5(p),id:b5(p),oB:o2(p),offset:p.offset}}; g.KkQ=function(p){var C=$g(p,0,1701671783);if(!C)return null;var V=SzX(C),N=V.Mdn;V=nw(V.oB);if(p=$g(p,C.offset+C.size,1701671783))if(p=SzX(p),p=nw(p.oB),V&&p){C=g.F(Object.keys(p));for(var H=C.next();!H.done;H=C.next())H=H.value,V[H]=p[H]}return V?new zr(V,N):null}; rH=function(p,C){for(var V=$g(p,0,C);V;){var N=V;N.type=1936419184;N.data.setUint32(N.offset+4,1936419184);V=$g(p,V.offset+V.size,C)}}; g.B1=function(p,C){for(var V=0,N=[];Lw(p,V);){var H=gH(p,V);H.type===C&&N.push(H);V=W1(H.type)?V+8:V+H.size}return N}; DoH=function(p,C){var V=g.eo(p,0,1937011556),N=g.eo(p,0,1953654136);if(!V||!N||p.getUint32(V.offset+12)>=2)return null;var H=new DataView(C.buffer,C.byteOffset,C.length),X=g.eo(H,0,1937011556);if(!X)return null;C=H.getUint32(X.dataOffset+8);N=H.getUint32(X.dataOffset+12);if(N!==1701733217&&N!==1701733238)return null;N=new al9(p.byteLength+C);kg(N,p,0,V.offset+12);N.data.setInt32(N.offset,2);N.offset+=4;kg(N,p,V.offset+16,V.size-16);kg(N,H,H.byteOffset+X.dataOffset+8,C);kg(N,p,V.offset+V.size,p.byteLength- (V.offset+V.size));V=g.F([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(H=V.next();!H.done;H=V.next())H=g.eo(p,0,H.value),N.data.setUint32(H.offset,H.size+C);p=g.eo(N.data,0,1953654136);N.data.setUint32(p.offset+16,2);return N.data}; uY9=function(p){var C=g.eo(p,0,1937011556);if(!C)return null;var V=p.getUint32(C.dataOffset+12);if(V!==1701733217&&V!==1701733238)return null;C=$g(p,C.offset+24+(V===1701733217?28:78),1936289382);if(!C)return null;V=$g(p,C.offset+8,1935894637);if(!V||p.getUint32(V.offset+12)!==1667392371)return null;C=$g(p,C.offset+8,1935894633);if(!C)return null;C=$g(p,C.offset+8,1952804451);if(!C)return null;V=new Uint8Array(16);for(var N=0;N<16;N++)V[N]=p.getInt8(C.offset+16+N);return V}; Gr=function(p,C){this.T=p;this.pos=0;this.start=C||0}; pp=function(p){return p.pos>=p.T.byteLength}; HR=function(p,C,V){var N=new Gr(V);if(!Cp(N,p))return!1;N=j5(N);if(!Vv(N,C))return!1;for(p=0;C;)C>>>=8,p++;C=N.start+N.pos;var H=Nt(N,!0);N=p+(N.start+N.pos-C)+H;N=N>9?Zs1(N-9,8):Zs1(N-2,1);p=C-p;V.setUint8(p++,236);for(C=0;CV;H++)V=V*256+s9(p),N*=128;return C?V-N:V}; dz=function(p){var C=Nt(p,!0);p.pos+=C}; OsQ=function(p){if(!Vv(p,440786851,!0))return null;var C=p.pos;Nt(p,!1);var V=Nt(p,!0)+p.pos-C;p.pos=C+V;if(!Vv(p,408125543,!1))return null;Nt(p,!0);if(!Vv(p,357149030,!0))return null;var N=p.pos;Nt(p,!1);var H=Nt(p,!0)+p.pos-N;p.pos=N+H;if(!Vv(p,374648427,!0))return null;var X=p.pos;Nt(p,!1);var d=Nt(p,!0)+p.pos-X,a=new Uint8Array(V+12+H+d),E=new DataView(a.buffer);a.set(new Uint8Array(p.T.buffer,p.T.byteOffset+C,V));E.setUint32(V,408125543);E.setUint32(V+4,33554431);E.setUint32(V+8,4294967295); a.set(new Uint8Array(p.T.buffer,p.T.byteOffset+N,H),V+12);a.set(new Uint8Array(p.T.buffer,p.T.byteOffset+X,d),V+12+H);return a}; aZ=function(p){var C=p.pos;p.pos=0;var V=1E6;Cp(p,[408125543,357149030,2807729])&&(V=X6(p));p.pos=C;return V}; yy9=function(p,C){var V=p.pos;p.pos=0;if(p.T.getUint8(p.pos)!==160&&!E9(p)||!Vv(p,160))return p.pos=V,NaN;Nt(p,!0);var N=p.pos;if(!Vv(p,161))return p.pos=V,NaN;Nt(p,!0);s9(p);var H=s9(p)<<8|s9(p);p.pos=N;if(!Vv(p,155))return p.pos=V,NaN;N=X6(p);p.pos=V;return(H+N)*C/1E9}; E9=function(p){if(!qze(p)||!Vv(p,524531317))return!1;Nt(p,!0);return!0}; qze=function(p){if(p.h9()){if(!Vv(p,408125543))return!1;Nt(p,!0)}return!0}; Cp=function(p,C){for(var V=0;V0){var N=NnQ(C.substring(V+1));g.ZH(N,function(H,X){this.set(X,H)},p); C=C.substring(0,V)}C=VY9(C);g.ZH(C,function(H,X){this.set(X,H)},p)}; bsY=function(p){var C=p.GU.i9(),V=[];g.ZH(p.T,function(H,X){V.push(X+"="+H)}); if(!V.length)return C;var N=V.join("&");p=jj9(p.GU)?"&":"?";return C+p+N}; tW=function(p,C){var V=new g.v1(C);(C=V.get("req_id"))&&p.set("req_id",C);g.ZH(p.T,function(N,H){V.set(H,null)}); return V}; Ayv=function(){this.S=this.V=this.T=this.timedOut=this.started=this.W=this.C=0}; cR=function(p){p.W=(0,g.Ip)();p.started=0;p.timedOut=0;p.T=0}; ouH=function(p,C){var V=p.started+p.T*4;C&&(V+=p.V);V=Math.max(0,V-3);return Math.pow(1.6,V)}; Tn=function(p,C){p[C]||(p[C]=new Ayv);return p[C]}; Mt=function(p){this.Z=this.D=this.W=this.C=0;this.J=this.Y=!1;this.T=p;this.V=p.clone()}; klV=function(p,C,V){if(Kw(p.T))return!1;var N=Tn(V,So(p.T));if(N.timedOut<1&&N.T<1)return!1;N=N.timedOut+N.T;p=JW(p,C);V=Tn(V,So(p));return V.timedOut+V.T+01?C=C.lf:(V=Tn(V,vR(p,p.Bz(C,V),C)),C=Math.max(p.W,V.timedOut)+C.pC*(p.C-p.W)+.25*p.D,C=C>3?1E3*Math.pow(1.6,C-3):0);return C===0?!0:p.Z+C<(0,g.Ip)()}; xoy=function(p,C,V){p.T.set(C,V);p.V.set(C,V);p.S&&p.S.set(C,V)}; Yzs=function(p,C,V,N,H){++p.C;C&&++p.W;So(V.GU).startsWith("redirector.")&&(p.T=p.V.clone(),delete p.S,N.qF&&delete H[So(p.T)])}; S5=function(p){return(p.itag||"")+";"+(p.lmt||0)+";"+(p.xtags||"")}; Kp=function(p,C,V,N){this.initRange=V;this.indexRange=N;this.T=null;this.V=!1;this.Y=0;this.S=this.C=null;this.info=C;this.sR=new Mt(p)}; D0=function(p,C){this.start=p;this.end=C;this.length=C-p+1}; uw=function(p){p=p.split("-");var C=Number(p[0]),V=Number(p[1]);if(!isNaN(C)&&!isNaN(V)&&p.length===2&&(p=new D0(C,V),!isNaN(p.start)&&!isNaN(p.end)&&!isNaN(p.length)&&p.length>0))return p}; Z0=function(p,C){return new D0(p,p+C-1)}; z4S=function(p){return p.end==null?{start:String(p.start)}:{start:String(p.start),end:String(p.end)}}; U9=function(p){if(!p)return new D0(0,0);var C=Number(p.start);p=Number(p.end);if(!isNaN(C)&&!isNaN(p)&&(C=new D0(C,p),C.length>0))return C}; fp=function(p,C,V,N,H,X,d,a,E,l,t,c){N=N===void 0?"":N;this.type=p;this.T=C;this.range=V;this.source=N;this.R5=t;this.clipId=c===void 0?"":c;this.D=[];this.W="";this.LS=-1;this.J=this.Z=0;this.W=N;this.LS=H>=0?H:-1;this.startTime=X||0;this.duration=d||0;this.C=a||0;this.V=E>=0?E:this.range?this.range.length:NaN;this.S=this.range?this.C+this.V===this.range.length:l===void 0?!!this.V:l;this.range?(this.Qi=this.startTime+this.duration*this.C/this.range.length,this.Y=this.duration*this.V/this.range.length, this.zM=this.Qi+this.Y):R4s(this)}; R4s=function(p){p.Qi=p.startTime;p.Y=p.duration;p.zM=p.Qi+p.Y}; rnS=function(p,C,V){var N=!(!C||C.T!==p.T||C.type!==p.type||C.LS!==p.LS);return V?N&&!!C&&(p.range&&C.range?C.range.end===p.range.end:C.range===p.range)&&C.C+C.V===p.C+p.V:N}; O9=function(p){return p.type===1||p.type===2}; yv=function(p){return p.type===3||p.type===6}; qt=function(p,C){return p.T===C.T?p.range&&C.range?p.range.start+p.C+p.V===C.range.start+C.C:p.LS===C.LS?p.C+p.V===C.C:p.LS+1===C.LS&&C.C===0&&p.S:!1}; cKX=function(p,C){return p.LS!==C.LS&&C.LS!==p.LS+1||p.type!==C.type?!1:qt(p,C)?!0:Math.abs(p.Qi-C.Qi)<=1E-6&&p.LS===C.LS?!1:t6u(p,C)}; t6u=function(p,C){return qt(p,C)||Math.abs(p.zM-C.Qi)<=1E-6||p.LS+1===C.LS&&C.C===0&&p.S?!0:!1}; IZ=function(p){return p.LS+(p.S?1:0)}; mrL=function(p){p.length===1||g.oo(p,function(V){return!!V.range}); for(var C=1;C=C.range.start+C.C&&p.range.start+p.C+p.V<=C.range.start+C.C+C.V:p.LS===C.LS&&p.C>=C.C&&(p.C+p.V<=C.C+C.V||C.S)}; GPX=function(p,C){return p.T!==C.T?!1:p.type===4&&C.type===3&&p.T.rI()?(p=p.T.Nz(p),Yo(p,function(V){return GPX(V,C)})):p.LS===C.LS&&!!C.V&&C.C+C.V>p.C&&C.C+C.V<=p.C+p.V}; AW=function(p,C){var V=C.LS;p.W="updateWithSegmentInfo";p.LS=V;if(p.startTime!==C.startTime||p.duration!==C.duration)p.startTime=C.startTime+p.Z,p.duration=C.duration,R4s(p)}; oZ=function(p,C){var V=this;this.wV=p;this.S=this.T=null;this.W=this.kq=NaN;this.Bz=this.requestId=null;this.Sr={xrS:function(){return V.range}}; this.sR=p[0].T.sR;this.C=C||"";this.wV[0].range&&this.wV[0].V>0&&(LE1(p)?(this.range=mrL(p),this.V=this.range.length):(this.range=this.wV[this.wV.length-1].range,this.V=gLv(p)))}; kE=function(p){return!O9(p.wV[p.wV.length-1])}; xE=function(p){return p.wV[p.wV.length-1].type===4}; g.YE=function(p,C,V){V=p.Bz===null?p.sR.Bz(C,V,p.wV[0].type):p.Bz;if(p.T){C=V?u5(p.T,C.JW):p.T;var N=new lw(C);N.get("alr")||N.set("alr","yes");p.C&&IlL(N,p.C)}else/http[s]?:\/\//.test(p.C)?N=new lw(new g.v1(p.C)):(N=mp(p.sR,V,C),p.C&&IlL(N,p.C));(C=p.range)?N.set("range",C.toString()):p.wV[0].T.NQ()&&p.wV.length===1&&p.wV[0].C&&N.set("range",p.wV[0].C+"-");p.requestId&&N.set("req_id",p.requestId);isNaN(p.kq)||N.set("headm",p.kq.toString());isNaN(p.W)||N.set("mffa",p.W+"ms");p.urlParams&&g.ZH(p.urlParams, function(H,X){N.set(X,H)}); return N}; pSy=function(p){if(p.range)return p.V;p=p.wV[0];return Math.round(p.Y*p.T.info.F$)}; CbY=function(p,C){return Math.max(0,p.wV[0].Qi-C)}; zn=function(p,C,V,N,H,X){X=X===void 0?0:X;Kp.call(this,p,C,N,void 0);this.W=V;this.Ym=X;this.index=H||new g.fw}; jlY=function(p,C,V,N,H){this.LS=p;this.startSecs=C;this.uc=V;this.T=N||NaN;this.C=H||NaN}; RZ=function(p,C,V){for(;p;p=p.parentNode)if(p.attributes&&(!V||p.nodeName===V)){var N=p.getAttribute(C);if(N)return N}return""}; np=function(p,C){for(;p;p=p.parentNode){var V=p.getElementsByTagName(C);if(V.length>0)return V[0]}return null}; VIL=function(p){if(!p)return 0;var C=p.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return C?(Number(C[2])|0)*3600+(Number(C[4])|0)*60+(Number(C[6])|0):Number(p)|0}; NFa=function(p){return p.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?p+"Z":p}; e5=function(){this.T=[];this.C=null;this.Y=0;this.V=[];this.W=!1;this.D="";this.S=-1}; HrL=function(p){var C=p.V;p.V=[];return C}; XSe=function(){this.S=[];this.T=null;this.C={};this.V={}}; slH=function(p,C){var V=[];C=Array.from(C.getElementsByTagName("SegmentTimeline"));C=g.F(C);for(var N=C.next();!N.done;N=C.next()){N=N.value;var H=N.parentNode.parentNode,X=null;H.nodeName==="Period"?X=dVy(p):H.nodeName==="AdaptationSet"?(H=H.getAttribute("id")||H.getAttribute("mimetype")||"",X=ira(p,H)):H.nodeName==="Representation"&&(H=H.getAttribute("id")||"",X=hhV(p,H));if(X==null)return;X.update(N);g.C6(V,HrL(X))}g.C6(p.S,V);jFX(p.S,function(d){return d.startSecs*1E3+d.T})}; aQy=function(p){p.T&&(p.T.T=[]);g.ZH(p.C,function(C){C.T=[]}); g.ZH(p.V,function(C){C.T=[]})}; dVy=function(p){p.T||(p.T=new e5);return p.T}; ira=function(p,C){p.C[C]||(p.C[C]=new e5);return p.C[C]}; hhV=function(p,C){p.V[C]||(p.V[C]=new e5);return p.V[C]}; wz=function(p){var C=p===void 0?{}:p;p=C.Ym===void 0?0:C.Ym;var V=C.MO===void 0?!1:C.MO;var N=C.nV===void 0?0:C.nV;var H=C.AE===void 0?0:C.AE;var X=C.Qx===void 0?Infinity:C.Qx;var d=C.KQ===void 0?0:C.KQ;var a=C.EO===void 0?!1:C.EO;C=C.nh===void 0?!1:C.nh;g.fw.call(this);this.x5=this.J8=-1;this.HR=p;this.nV=N;this.MO=V;this.AE=H;this.Qx=X;this.KQ=d;((this.EO=a)||isFinite(X)&&this.Qx>0)&&V&&PR&&(this.C=!1,this.V="postLive");this.nh=C}; $E=function(p,C){return ir(p.segments,function(V){return C-V.LS})}; Lp=function(p,C,V){V=V===void 0?{}:V;zn.call(this,p,C,"",void 0,void 0,V.Ym||0);this.index=new wz(V)}; gz=function(p,C,V){Kp.call(this,p,C);this.W=V;p=this.index=new g.fw;p.C=!1;p.V="d"}; EPu=function(p,C,V){var N=p.index.EM(C),H=p.index.getStartTime(C),X=p.index.getDuration(C);V?X=V=0:V=p.info.F$*X;return new oZ([new fp(3,p,void 0,"otfCreateRequestInfoForSegment",C,H,X,0,V)],N)}; lQe=function(p,C){if(!p.index.isLoaded()){var V=[],N=C.S;C=C.W.split(",").filter(function(t){return t.length>0}); for(var H=0,X=0,d=0,a=/^(\d+)/,E=/r=(\d+)/,l=0;l0&&(C-=p.timestampOffset);var V=rz(p)+C;cV1(p,V);p.timestampOffset=C}; cV1=function(p,C){g.Cx(p.info.T.info)||p.info.T.info.Ft();p.V=C;if(g.Cx(p.info.T.info)){var V=p.b9();p=p.info.T.T;for(var N=NaN,H=NaN,X=0;Lw(V,X);){var d=gH(V,X);isNaN(N)&&(d.type===1936286840?N=d.data.getUint32(d.dataOffset+8):d.type===1836476516&&(N=g.P1(d)));if(d.type===1952867444){!N&&p&&(N=wH(p));var a=g.QS(d);isNaN(H)&&(H=Math.round(C*N)-a);var E=d;a+=H;if(E.data.getUint8(E.dataOffset)){var l=E.data;E=E.dataOffset+4;l.setUint32(E,Math.floor(a/4294967296));l.setUint32(E+4,a&4294967295)}else E.data.setUint32(E.dataOffset+ 4,a)}X=W1(d.type)?X+8:X+d.size}return!0}V=new Gr(p.b9());p=p.W?V:new Gr(new DataView(p.info.T.T.buffer));N=aZ(p);p=V.pos;V.pos=0;if(E9(V)&&Vv(V,231))if(H=Nt(V,!0),C=Math.floor(C*1E9/N),Math.ceil(Math.log(C)/Math.log(2)/8)>H)C=!1;else{for(N=H-1;N>=0;N--)V.T.setUint8(V.pos+N,C&255),C>>>=8;V.pos=p;C=!0}else C=!1;return C}; Gn=function(p,C){C=C===void 0?!1:C;var V=BR(p);p=C?0:p.info.Y;return V||p}; BR=function(p){g.Cx(p.info.T.info)||p.info.T.info.Ft();if(p.C&&p.info.type===6)return p.C.Ym;if(g.Cx(p.info.T.info)){var C=p.b9();var V=0;C=g.B1(C,1936286840);C=g.F(C);for(var N=C.next();!N.done;N=C.next())N=FkL(N.value),V+=N.Fi[0]/N.Sz;V=V||NaN;if(!(V>=0))a:{V=p.b9();C=p.info.T.T;for(var H=N=0,X=0;Lw(V,N);){var d=gH(V,N);if(d.type===1836476516)H=g.P1(d);else if(d.type===1836019558){!H&&C&&(H=wH(C));if(!H){V=NaN;break a}var a=$g(d.data,d.dataOffset,1953653094),E=a;a=H;var l=$g(E.data,E.dataOffset, 1952868452);E=$g(E.data,E.dataOffset,1953658222);var t=I2(l);I2(l);t&2&&I2(l);l=t&8?I2(l):0;var c=I2(E),T=c&1;t=c&4;var M=c&256,J=c&512,S=c&1024;c&=2048;var D=b5(E);T&&I2(E);t&&I2(E);for(var Z=T=0;Z2048?"":C.indexOf("https://")===0?C:""}; Hb=function(p,C,V){C.match(UVu);return p(C,V).then(function(N){var H=g.Zry(N.xhr);return H?Hb(p,H,V):N.xhr})}; hz=function(p,C,V){p=p===void 0?"":p;C=C===void 0?null:C;V=V===void 0?!1:V;g.ca.call(this);var N=this;this.sourceUrl=p;this.isLivePlayback=V;this.UY=this.duration=0;this.isPremiere=this.EO=this.S=this.isLiveHeadPlayable=this.isLive=this.C=!1;this.Qx=this.AE=0;this.isOtf=this.p4=!1;this.Y_=(0,g.Ip)();this.a$=Infinity;this.T={};this.V=new Map;this.state=this.zI=0;this.timeline=null;this.isManifestless=!1;this.sY=[];this.Y=null;this.Vn=0;this.W="";this.Sa=NaN;this.vr=this.YM=this.timestampOffset=this.D= 0;this.lf=this.Tz=NaN;this.qW=0;this.R$=this.Z=!1;this.Wr=[];this.Ga={};this.b_=NaN;this.Sr={ppx:function(a){X1(N,a)}}; var H;this.KS=(H=C)==null?void 0:H.OY("html5_use_network_error_code_enums");fQe=!!C&&C.OY("html5_modern_vp9_mime_type");var X;dB=!((X=C)==null||!X.OY("html5_enable_flush_during_seek"))&&g.Qg();var d;io=!((d=C)==null||!d.OY("html5_enable_reset_audio_decoder"))&&g.Qg()}; Or9=function(p){return g.O_(p.T,function(C){return!!C.info.video&&C.info.video.T>=2160})}; r4H=function(p){return g.O_(p.T,function(C){return!!C.info.video&&C.info.video.isHdr()})}; l5=function(p){return g.O_(p.T,function(C){return!!C.info.vV})}; g.yVY=function(p){return g.O_(p.T,function(C){return Xz(C.info.mimeType)})}; qGa=function(p){return g.O_(p.T,function(C){return C.info.video?C.info.video.projectionType==="EQUIRECTANGULAR":!1})}; IQj=function(p){return g.O_(p.T,function(C){return C.info.video?C.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; brX=function(p){return g.O_(p.T,function(C){return C.info.video?C.info.video.projectionType==="MESH":!1})}; AVV=function(p){return g.O_(p.T,function(C){return C.info.video?C.info.video.stereoLayout===1:!1})}; oPL=function(p){return WKS(p.T,function(C){return C.info.video?C.v2():!0})}; sc=function(p){return g.O_(p.T,function(C){return Kw(C.sR.T)})}; X1=function(p,C){p.T[C.info.id]=C;p.V.set(S5(g.VE(C.info,p.p4)),C)}; kTV=function(p,C){return S5({itag:C.itag,lmt:p.p4?0:C.lmt||0,xtags:C.xtags})}; E6=function(p,C,V){V=V===void 0?0:V;var N=p.mimeType||"",H=p.itag;var X=p.xtags;H=H?H.toString():"";X&&(H+=";"+X);X=H;if(Hc(N)){var d=p.width||640;H=p.height||360;var a=p.fps,E=p.qualityLabel,l=p.colorInfo,t=p.projectionType,c;p.stereoLayout&&(c=xVQ[p.stereoLayout]);var T=DVs(p)||void 0;if(l==null?0:l.primaries)var M=YGH[l.primaries]||void 0;d=new wO(d,H,a,t,c,void 0,E,T,M);N=s6(N,d,gO[p.itag||""]);dB&&(N+="; enableflushduringseek=true");io&&(N+="; enableresetaudiodecoder=true")}var J;if(Nf(N)){var S= p.audioSampleRate;c=p.audioTrack;S=new nR(S?+S:void 0,p.audioChannels,p.spatialAudioType,p.isDrc,p.loudnessDb,p.trackAbsoluteLoudnessLkfs);c&&(M=c.displayName,H=c.id,c=c.audioIsDefault,M&&(J=new g.N6(M,H||"",!!c)))}var D;p.captionTrack&&(E=p.captionTrack,c=E.displayName,M=E.vssId,H=E.languageCode,a=E.kind,E=E.id,c&&M&&H&&(D=new SGj(c,M,H,a,p.xtags,E)));c=Number(p.bitrate)/8;M=Number(p.contentLength);H=Number(p.lastModified);E=p.drmFamilies;a=p.type;V=V&&M?M/V:0;p=Number(p.approxDurationMs);if(C&& E){var Z={};E=g.F(E);for(l=E.next();!l.done;l=E.next())(l=a5[l.value])&&(Z[l]=C[l])}return new WB(X,N,{audio:S,video:d,K4:J,vV:Z,F$:c,ND:V,contentLength:M,lastModified:H,captionTrack:D,streamType:a,approxDurationMs:p})}; lo=function(p,C,V){V=V===void 0?0:V;var N=p.type;var H=p.itag;var X=p.xtags;X&&(H=p.itag+";"+X);if(Hc(N)){var d=(p.size||"640x360").split("x");d=new wO(+d[0],+d[1],+p.fps,p.projection_type,+p.stereo_layout,void 0,p.quality_label,p.eotf,p.primaries);N=s6(N,d,gO[p.itag]);dB&&(N+="; enableflushduringseek=true");io&&(N+="; enableresetaudiodecoder=true")}var a;if(Nf(N)){var E=new nR(+p.audio_sample_rate||void 0,+p.audio_channels||0,p.spatial_audio_type,!!p.drc);p.name&&(a=new g.N6(p.name,p.audio_track_id, p.isDefault==="1"))}var l;p.caption_display_name&&p.caption_vss_id&&p.caption_language_code&&(l=new SGj(p.caption_display_name,p.caption_vss_id,p.caption_language_code,p.caption_kind,p.xtags,p.caption_id));X=Number(p.bitrate)/8;var t=Number(p.clen),c=Number(p.lmt);V=V&&t?t/V:0;if(C&&p.drm_families){var T={};for(var M=g.F(p.drm_families.split(",")),J=M.next();!J.done;J=M.next())J=J.value,T[J]=C[J]}return new WB(H,N,{audio:E,video:d,K4:a,vV:T,F$:X,ND:V,contentLength:t,lastModified:c,captionTrack:l, streamType:p.stream_type,approxDurationMs:Number(p.approx_duration_ms)})}; zhQ=function(p){return Yo(p,function(C){return"FORMAT_STREAM_TYPE_OTF"===C.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; RhX=function(p){return Yo(p,function(C){return"FORMAT_STREAM_TYPE_OTF"===C.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; nPa=function(p,C){return p.timeline?jk(p.timeline.S,C):p.sY.length?jk(p.sY,C):[]}; tz=function(p,C,V){C=C===void 0?"":C;V=V===void 0?"":V;p=new g.v1(p,!0);p.set("alr","yes");V&&(V=v_j(decodeURIComponent(V)),p.set(C,encodeURIComponent(V)));return p}; $VX=function(p,C){var V=RZ(C,"id");V=V.replace(":",";");var N=RZ(C,"mimeType"),H=RZ(C,"codecs");N=H?N+'; codecs="'+H+'"':N;H=Number(RZ(C,"bandwidth"))/8;var X=Number(np(C,"BaseURL").getAttribute(p.W+":contentLength")),d=p.duration&&X?X/p.duration:0;if(Hc(N)){var a=Number(RZ(C,"width"));var E=Number(RZ(C,"height")),l=Number(RZ(C,"frameRate")),t=ehs(RZ(C,p.W+":projectionType"));a:switch(RZ(C,p.W+":stereoLayout")){case "layout_left_right":var c=1;break a;case "layout_top_bottom":c=2;break a;default:c= 0}a=new wO(a,E,l,t,c)}if(Nf(N)){var T=Number(RZ(C,"audioSamplingRate"));var M=Number(RZ(C.getElementsByTagName("AudioChannelConfiguration")[0],"value"));E=Pba(RZ(C,p.W+":spatialAudioType"));T=new nR(T,M,E);a:{M=RZ(C,"lang")||"und";if(E=np(C,"Role"))if(t=RZ(E,"value")||"",g.bc(wSa,t)){E=M+"."+wSa[t];l=t==="main";p=RZ(C,p.W+":langName")||M+" - "+t;M=new g.N6(p,E,l);break a}M=void 0}}if(C=np(C,"ContentProtection"))if(C.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var J={};for(C= C.firstChild;C!=null;C=C.nextSibling)C instanceof Element&&/SystemURL/.test(C.nodeName)&&(p=C.getAttribute("type"),E=C.textContent,p&&E&&(J[p]=E.trim()))}else J=void 0;return new WB(V,N,{audio:T,video:a,K4:M,vV:J,F$:H,ND:d,contentLength:X})}; ehs=function(p){switch(p){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"}}; Pba=function(p){switch(p){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"}}; gP9=function(p,C){C=C===void 0?"":C;p.state=1;p.Y_=(0,g.Ip)();return ucu(C||p.sourceUrl).then(function(V){if(!p.fS()){p.zI=V.status;V=V.responseText;var N=new DOMParser;V=VW(N,zUe(V),"text/xml").getElementsByTagName("MPD")[0];p.a$=VIL(RZ(V,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(V.attributes){N=g.F(V.attributes);for(var H=N.next();!H.done;H=N.next())if(H=H.value,H.value==="http://youtube.com/yt/2012/10/10"){N=H.name.split(":")[1];break b}}N=""}p.W=N;p.isLive=p.a$=p.a$}; QlS=function(p){p.Y&&p.Y.stop()}; LLH=function(p){var C=p.a$;isFinite(C)&&(cb(p)?p.refresh():(C=Math.max(0,p.Y_+C-(0,g.Ip)()),p.Y||(p.Y=new g.N8(p.refresh,C,p),g.R(p,p.Y)),p.Y.start(C)))}; rVS=function(p){p=p.T;for(var C in p){var V=p[C].index;if(V.isLoaded())return V.Ha()+1}return 0}; TF=function(p){return p.YM?p.YM-(p.D||p.timestampOffset):0}; M6=function(p){return p.vr?p.vr-(p.D||p.timestampOffset):0}; Jz=function(p){if(!isNaN(p.Sa))return p.Sa;var C=p.T,V;for(V in C){var N=C[V].index;if(N.isLoaded()&&!Xz(C[V].info.mimeType)){C=0;for(V=N.V6();V<=N.Ha();V++)C+=N.getDuration(V);C/=N.Fp();C=Math.round(C/.5)*.5;N.Fp()>10&&(p.Sa=C);return C}if(p.isLive&&(N=C[V],N.Ym))return N.Ym}return NaN}; BFY=function(p,C){p=rcH(p.T,function(N){return N.index.isLoaded()}); if(!p)return NaN;p=p.index;var V=p.tU(C);return p.getStartTime(V)===C?C:V=0&&H.segments.splice(X,1)}}}; pPL=function(p){for(var C in p.T)Xz(p.T[C].info.mimeType)||h4L(p.T[C].index,Infinity)}; F1=function(p,C,V){for(var N in p.T){var H=p.T[N].index,X=C,d=V;H.MO&&(X&&(H.J8=Math.max(H.J8,X)),d&&(H.x5=Math.max(H.x5||0,d)))}V&&(p.b_=V/1E3)}; Cns=function(p){p.vr=0;p.YM=0;p.qW=0}; SO=function(p){return p.R$&&p.isManifestless?p.isLiveHeadPlayable:p.isLive}; s6=function(p,C,V){Kb===null&&(Kb=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(fQe&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Kb||V!=="9"&&V!=="("?Kb||V!=="9h"&&V!=="(h"||(p='video/webm; codecs="vp9.2"'):p='video/webm; codecs="vp9"',p;if(!Kb&&!D8||p!=='video/webm; codecs="vp9"'&&p!=='video/webm; codecs="vp9.2"')return p; V="00";var N="08",H="01",X="01",d="01";p==='video/webm; codecs="vp9.2"'&&(V="02",N="10",C.primaries==="bt2020"&&(d=H="09"),C.C==="smpte2084"&&(X="16"),C.C==="arib-std-b67"&&(X="18"));return'video/webm; codecs="'+["vp09",V,"51",N,"01",H,X,d,"00"].join(".")+'"'}; Z8=function(p,C,V){p=""+p+(C>49?"p60":C>32?"p48":"");C=RH()[p];if(C!=null&&C>0)return C;C=uo.get(p);if(C!=null&&C>0)return C;V=V==null?void 0:V.get(p);return V!=null&&V>0?V:8192}; jd9=function(p){this.I$=p;this.VZ=this.Oi=this.Ga=this.W=this.S=this.b_=this.Wc=this.UY=this.sY=!1;this.FO=this.I$.G("html5_disable_aac_preference");this.D=this.Y=0;this.qo=!1;this.Vn=!0;this.Qn=!1;this.Tp=0;this.Wr=!1;this.wy=Infinity;this.dG=!1;this.va=!0;this.R$=this.Y_=!1;this.T={};this.ER=this.C=this.J=!1;this.vr=0;this.qW=this.disableAv1=this.kM=this.QZ=this.X$=!1;this.Q$=this.I$.Gk();this.Hc=this.I$.experiments.OY("html5_enable_vp9_fairplay");this.cV=this.I$.G("html5_force_av1_for_testing"); this.KS=g.mi(this.I$.experiments,"html5_av1_ordinal_cap");this.kt=this.I$.G("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.RN=this.I$.G("html5_account_onesie_format_selection_during_format_filter");this.F$=g.mi(this.I$.experiments,"html5_max_byterate");this.Z=this.I$.G("html5_sunset_aac_high_codec_family");this.Sa=this.I$.G("html5_sunset_aac_high_codec_family");this.YM=this.I$.G("html5_enable_iamf_audio");this.I6=this.I$.experiments.OY("html5_allow_capability_merge");this.o6=this.I$.G("html5_prefer_vp9_sfr")}; Bts=function(p){if(p.UY)return["f"];var C="9h 9 h 8 (h ( H *".split(" ");p.Wr&&(C.unshift("1"),C.unshift("1h"));p.Oi&&C.unshift("h");p.a$&&(C=(VBL[p.a$]||[p.a$]).concat(C));return C}; $zH=function(p){var C=["o","a","A"];p.vr===1&&(p.b_&&(C=["m","M"].concat(C)),p.S&&(C=["mac3","MAC3"].concat(C)),p.W&&(C=["meac3","MEAC3"].concat(C)),p.YM&&(C=["i","I"].concat(C)));p.sY&&(C=["so","sa"].concat(C));!p.VZ||p.Ga||p.V||p.FO||C.unshift("a");p.Wc&&!p.Z&&C.unshift("ah");p.V&&(C=(VBL[p.V]||[p.V]).concat(C));return C}; U6=function(p,C,V,N){C=C===void 0?{}:C;if(N===void 0?0:N)return C.disabled=1,0;if(Je(p.W,mw.AV1_CODECS)&&Je(p.W,mw.HEIGHT)&&Je(p.W,mw.BITRATE))return C.isCapabilityUsable=1,8192;try{var H=OFu();if(H)return C.localPref=H}catch(a){}N=1080;H=navigator.hardwareConcurrency;H<=2&&(N=480);C.coreCount=H;if(H=g.mi(p.experiments,"html5_default_av1_threshold"))N=C["default"]=H;!p.G("html5_disable_av1_arm_check")&&DZu()&&(C.isArm=1,N=240);if(p=p.W.b_)C.mcap=p,N=Math.max(N,p);if(V){var X,d;if(p=(X=V.videoInfos.find(function(a){return BB(a)}))== null?void 0:(d=X.C)==null?void 0:d.powerEfficient)N=8192,C.isEfficient=1; V=V.videoInfos[0].video;X=Math.min(Z8("1",V.fps),Z8("1",30));C.perfCap=X;N=Math.min(N,X);V.isHdr()&&!p&&(C.hdr=1,N*=.75)}else V=Z8("1",30),C.perfCap30=V,N=Math.min(N,V),V=Z8("1",60),C.perfCap60=V,N=Math.min(N,V);return C.av1Threshold=N}; fb=function(p,C,V,N){this.flavor=p;this.keySystem=C;this.C=V;this.experiments=N;this.T={};this.UY=this.keySystemAccess=null;this.m0=this.hI=-1;this.td=null;this.V=!!N&&N.OY("edge_nonprefixed_eme");N&&N.OY("html5_enable_vp9_fairplay")}; yM=function(p){return p.V?!1:!p.keySystemAccess&&!!O6()&&p.keySystem==="com.microsoft.playready"}; q6=function(p){return p.keySystem==="com.microsoft.playready"}; I5=function(p){return!p.keySystemAccess&&!!O6()&&p.keySystem==="com.apple.fps.1_0"}; bo=function(p){return p.keySystem==="com.youtube.fairplay"}; Az=function(p){return p.keySystem==="com.youtube.fairplay.sbdl"}; g.o5=function(p){return p.flavor==="fairplay"}; O6=function(){var p=window,C=p.MSMediaKeys;GQ()&&!C&&(C=p.WebKitMediaKeys);return C&&C.isTypeSupported?C:null}; x$=function(p){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.kZ&&!g.Qg())return q8("45");if(g.G4||g.vF)return p.OY("edge_nonprefixed_eme");if(g.k$)return q8("47");if(g.D1){if(p.OY("html5_enable_safari_fairplay"))return!1;if(p=g.mi(p,"html5_safari_desktop_eme_min_version"))return q8(p)}return!0}; N2y=function(p,C,V,N){var H=rm(),X=(V=H||V&&GQ())?["com.youtube.fairplay"]:["com.widevine.alpha"];C&&X.unshift("com.youtube.widevine.l3");H&&N&&X.unshift("com.youtube.fairplay.sbdl");return V?X:p?[].concat(g.K(X),g.K(Y$.playready)):[].concat(g.K(Y$.playready),g.K(X))}; R5=function(){this.C=this.y6=0;this.T=Array.from({length:zF.length}).fill(0)}; HjQ=function(){}; XPQ=function(){this.startTimeMs=(0,g.Ip)();this.T=!1}; dBe=function(){this.T=new HjQ}; iju=function(p,C,V,N){N=N===void 0?1:N;V>=0&&(C in p.T||(p.T[C]=new R5),p.T[C].vI(V,N))}; hOY=function(p,C,V,N,H){var X=(0,g.Ip)(),d=H?H(C):void 0,a;H=(a=d==null?void 0:d.y6)!=null?a:1;if(H!==0){var E;a=(E=d==null?void 0:d.profile)!=null?E:V;iju(p,a,X-N,H)}return C}; nb=function(p,C,V,N,H){if(C&&typeof C==="object"){var X=function(d){return hOY(p,d,V,N,H)}; if(aH(C))return C.then(X);if(sdQ(C))return Tv(C,X)}return hOY(p,C,V,N,H)}; adj=function(){}; eO=function(p,C,V,N,H){N=N===void 0?!1:N;g.Y.call(this);this.I$=C;this.useCobaltWidevine=N;this.k_=H;this.C=[];this.V={};this.T={};this.callback=null;this.W=!1;this.S=[];this.initialize(p,!V)}; ldV=function(p,C){p.callback=C;p.S=[];x$(p.I$.experiments)?Pb(p):ErQ(p)}; Pb=function(p){if(!p.fS())if(p.C.length===0)p.callback(p.S);else{var C=p.C[0],V=p.V[C],N=tB1(p,V);if(wB&&wB.keySystem===C&&wB.O7e===JSON.stringify(N))p.k_("remksa",{re:!0}),cMj(p,V,wB.keySystemAccess);else{var H,X;p.k_("remksa",{re:!1,ok:(X=(H=wB)==null?void 0:H.keySystem)!=null?X:""});wB=void 0;($$.isActive()?$$.zz("emereq",function(){return navigator.requestMediaKeySystemAccess(C,N)}):navigator.requestMediaKeySystemAccess(C,N)).then(FF(function(d){cMj(p,V,d,N)}),FF(function(){p.W=!p.W&&p.V[p.C[0]].flavor=== "widevine"; p.W||p.C.shift();Pb(p)}))}}}; cMj=function(p,C,V,N){if(!p.fS()){N&&(wB={keySystem:C.keySystem,keySystemAccess:V,O7e:JSON.stringify(N)});C.keySystemAccess=V;if(q6(C)){V=An();N=g.F(Object.keys(p.T[C.flavor]));for(var H=N.next();!H.done;H=N.next())H=H.value,C.T[H]=!!V.canPlayType(H)}else{V=C.keySystemAccess.getConfiguration();if(V.audioCapabilities)for(N=g.F(V.audioCapabilities),H=N.next();!H.done;H=N.next())T21(p,C,H.value);if(V.videoCapabilities)for(V=g.F(V.videoCapabilities),N=V.next();!N.done;N=V.next())T21(p,C,N.value)}p.S.push(C); p.useCobaltWidevine||p.G("html5_enable_vp9_fairplay")&&Az(C)?(p.C.shift(),Pb(p)):p.callback(p.S)}}; T21=function(p,C,V){p.G("log_robustness_for_drm")?C.T[V.contentType]=V.robustness||!0:C.T[V.contentType]=!0}; tB1=function(p,C){var V={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(p.G("html5_enable_vp9_fairplay")&&bo(C))return V.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),V.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[V];q6(C)&&(V.initDataTypes=["keyids","cenc"]);for(var N=g.F(Object.keys(p.T[C.flavor])),H=N.next();!H.done;H=N.next()){H=H.value;var X=H.indexOf("audio/")===0,d=X?V.audioCapabilities:V.videoCapabilities;C.flavor!== "widevine"||p.W?d.push({contentType:H}):X?d.push({contentType:H,robustness:"SW_SECURE_CRYPTO"}):(g.kZ&&g.gm("windows nt")&&!p.G("html5_drm_enable_moho")||d.push({contentType:H,robustness:"HW_SECURE_ALL"}),X=H,p.G("html5_enable_cobalt_experimental_vp9_decoder")&&H.includes("vp09")&&(X=H+"; experimental=allowed"),d.push({contentType:X,robustness:"SW_SECURE_DECODE"}),Lb(p.I$)==="MWEB"&&(Hw()||Wd())&&(p.k_("swcrypto",{}),d.push({contentType:H,robustness:"SW_SECURE_CRYPTO"})))}return[V]}; ErQ=function(p){if(O6()&&(g.D1||CK&&p.G("html5_drm_support_ios_mweb")))p.S.push(new fb("fairplay","com.apple.fps.1_0","",p.I$.experiments));else{var C=MBS(),V=g.L0(p.C,function(N){var H=p.V[N],X=!1,d=!1,a;for(a in p.T[H.flavor])C(a,N)&&(H.T[a]=!0,X=X||a.indexOf("audio/")===0,d=d||a.indexOf("video/")===0);return X&&d}); V&&p.S.push(p.V[V]);p.C=[]}p.callback(p.S)}; MBS=function(){var p=O6();if(p){var C=p.isTypeSupported;return function(N,H){return C(H,N)}}var V=An(); return V&&(V.addKey||V.webkitAddKey)?function(N,H){return!!V.canPlayType(N,H)}:function(){return!1}}; JMH=function(p){this.experiments=p;this.T=2048;this.S=0;this.sY=(this.D=this.G("html5_streaming_resilience"))?.5:.25;var C=C===void 0?0:C;this.V=g.mi(this.experiments,"html5_media_time_weight_prop")||C;this.b_=g.mi(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.Z=(this.W=this.experiments.OY("html5_consider_end_stall"))&&gB;this.C=this.experiments.OY("html5_measure_max_progress_handling");this.J=this.G("html5_treat_requests_pre_elbow_as_metadata");this.Y=this.G("html5_media_time_weight")|| !!this.V;this.a$=g.mi(this.experiments,"html5_streaming_fallback_byterate");this.G("html5_sabr_live_audio_early_return_fix")&&gB&&(this.T=65536)}; mBV=function(p,C){this.T=void 0;this.experimentIds=p?p.split(","):[];this.flags=X5(C||"","&");p={};C=g.F(this.experimentIds);for(var V=C.next();!V.done;V=C.next())p[V.value]=!0;this.experiments=p}; g.mi=function(p,C){p=p.flags[C];JSON.stringify(p);return Number(p)||0}; Wb=function(p,C){return(p=p.flags[C])?p.toString():""}; vry=function(p){if(p=p.flags.html5_web_po_experiment_ids)if(p=p.replace(/\[ *(.*?) *\]/,"$1"))return p.split(",").map(Number);return[]}; F$9=function(p){if(p.T)return p.T;if(p.experimentIds.length<=1)return p.T=p.experimentIds,p.T;var C=[].concat(g.K(p.experimentIds)).map(function(N){return Number(N)}); C.sort();for(var V=C.length-1;V>0;--V)C[V]-=C[V-1];p.T=C.map(function(N){return N.toString()}); p.T.unshift("v1");return p.T}; K$L=function(p){return ST1.then(p)}; QM=function(p,C,V){this.experiments=p;this.Sa=C;this.Wr=V===void 0?!1:V;this.a$=!!g.zV("cast.receiver.platform.canDisplayType");this.J={};this.D=!1;this.C=new Map;this.Y=!0;this.V=this.S=!1;this.T=new Map;this.b_=0;this.sY=this.experiments.OY("html5_disable_vp9_encrypted");p=g.zV("cast.receiver.platform.getValue");this.Vn=g.mi(this.experiments,"html5_kaios_max_resolution");this.W=!this.a$&&p&&p("max-video-resolution-vpx")||null;DBs(this)}; CGV=function(p,C,V){V=V===void 0?1:V;var N=C.itag;if(N==="0")return!0;var H=C.mimeType;if(C.Ft()&&rm()&&p.experiments.OY("html5_appletv_disable_vp9"))return"dwebm";if(BB(C)&&p.D)return"dav1";if(C.video&&(C.video.isHdr()||C.video.primaries==="bt2020")&&!(Je(p,mw.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(N==="338"&&!(g.kZ?q8(53):g.k$&&q8(64)))return"dopus"; var X;if(p.Vn&&rB&&((X=C.video)==null?void 0:X.T)>p.Vn)return"kaios";X=V;X=X===void 0?1:X;V={};C.video&&(C.video.width&&(V[mw.WIDTH.name]=C.video.width),C.video.height&&(V[mw.HEIGHT.name]=C.video.height),C.video.fps&&(V[mw.FRAMERATE.name]=C.video.fps*X),C.video.C&&(V[mw.EOTF.name]=C.video.C),C.F$&&(V[mw.BITRATE.name]=C.F$*8*X),C.o$==="("&&(V[mw.CRYPTOBLOCKFORMAT.name]="subsample"),C.video.projectionType==="EQUIRECTANGULAR"||C.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||C.video.projectionType=== "MESH")&&(V[mw.DECODETOTEXTURE.name]="true");C.audio&&C.audio.numChannels&&(V[mw.CHANNELS.name]=C.audio.numChannels);p.S&&Qu(C)&&(V[mw.EXPERIMENTAL.name]="allowed");X=g.F(Object.keys(mw));for(var d=X.next();!d.done;d=X.next()){d=mw[d.value];var a;if(a=V[d.name])if(a=!(d===mw.EOTF&&C.mimeType.indexOf("vp09.02")>0)){a=d;var E=C;a=!(p.experiments.OY("html5_ignore_h264_framerate_cap")&&a===mw.FRAMERATE&&cOS(E))}if(a)if(Je(p,d))if(p.W){if(p.W[d.name]1080&&C.vV&&(H+="; hdcp=2.2");return N==="227"?"hqcenc":N!=="585"&&N!=="588"&&N!=="583"&&N!=="586"&&N!=="584"&&N!=="587"&&N!=="591"&&N!=="592"||p.experiments.OY("html5_enable_new_hvc_enc")?p.isTypeSupported(H)?!0:"tpus":"newhvc"}; Bb=function(){var p=Wd()&&!q8(29),C=g.gm("google tv")&&g.gm("chrome")&&!q8(30);return p||C?!1:v0j()}; ugX=function(p,C,V){var N=480;C=g.F(C);for(var H=C.next();!H.done;H=C.next()){H=H.value;var X=H.video.T;X<=1080&&X>N&&CGV(p,H,V)===!0&&(N=X)}return N}; g.GF=function(p,C){C=C===void 0?!1:C;return Bb()&&p.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!C&&p.canPlayType(An(),"application/x-mpegURL")?!0:!1}; UBV=function(p){Zje(function(){for(var C=g.F(Object.keys(mw)),V=C.next();!V.done;V=C.next())Je(p,mw[V.value])})}; Je=function(p,C){C.name in p.J||(p.J[C.name]=fdV(p,C));return p.J[C.name]}; fdV=function(p,C){if(p.W)return!!p.W[C.name];if(C===mw.BITRATE&&p.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!p.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(C===mw.AV1_CODECS)return p.isTypeSupported("video/mp4; codecs="+C.valid)&&!p.isTypeSupported("video/mp4; codecs="+C.Lk);if(C.video){var V='video/webm; codecs="vp9"';p.isTypeSupported(V)||(V='video/mp4; codecs="avc1.4d401e"')}else V='audio/webm; codecs="opus"', p.isTypeSupported(V)||(V='audio/mp4; codecs="mp4a.40.2"');return p.isTypeSupported(V+"; "+C.name+"="+C.valid)&&!p.isTypeSupported(V+"; "+C.name+"="+C.Lk)}; OjQ=function(p){p.S||(p.S=!0,pI(p))}; pI=function(p){p.V=!0;p.experiments.OY("html5_ssap_update_capabilities_on_change")&&yMy(p)}; qTy=function(p,C){var V=0;p.C.has(C)&&(V=p.C.get(C).Eb);p.C.set(C,{Eb:V+1,pB:Math.pow(2,V+1)});pI(p)}; te=function(p){for(var C=[],V=g.F(p.T.keys()),N=V.next();!N.done;N=V.next()){N=N.value;var H=p.T.get(N);C.push(N+"_"+H.maxWidth+"_"+H.maxHeight)}return C.join(".")}; yMy=function(p){p.Z=[];for(var C=g.F(p.T.values()),V=C.next();!V.done;V=C.next()){V=V.value;var N=V.o$;p.experiments.OY("html5_ssap_force_mp4_aac")&&N!=="a"&&N!=="h"||p.C.has(N)||(!p.D||N!=="1"&&N!=="1h")&&p.Z.push(V)}}; Lia=function(p,C){for(var V=new Map,N=g.F(p.T.keys()),H=N.next();!H.done;H=N.next()){H=H.value;var X=H.split("_")[0];C.has(X)||V.set(H,p.T.get(H))}p.T=V}; Wiv=function(p,C,V){var N,H=((N=V.video)==null?void 0:N.fps)||0;N=C+"_"+H;var X=!!V.audio,d={itag:V.itag,o$:C,DQ:X};if(X)d.numChannels=V.audio.numChannels;else{var a=V.video;d.maxWidth=a==null?void 0:a.width;d.maxHeight=a==null?void 0:a.height;d.maxFramerate=H;Je(p,mw.BITRATE)&&(d.maxBitrateBps=V.F$*8);d.R2=a==null?void 0:a.isHdr()}a=p.T.get(N);a?X||(V=Math.max(a.maxWidth||0,a.maxHeight||0)>Math.max(d.maxWidth||0,d.maxHeight||0)?a:d,C={itag:V.itag,o$:C,DQ:X,maxWidth:Math.max(a.maxWidth||0,d.maxWidth|| 0),maxHeight:Math.max(a.maxHeight||0,d.maxHeight||0),maxFramerate:H,R2:V.R2},Je(p,mw.BITRATE)&&(C.maxBitrateBps=V.maxBitrateBps),p.T.set(N,C)):p.T.set(N,d)}; Q3j=function(p,C,V){var N,H=((N=V.video)==null?void 0:N.fps)||0;N=C+"_"+H;var X=!!V.audio,d=p.T.get(N);a:{var a=p.T.get(N),E=!!V.audio;if(a){if(E){var l=!1;break a}var t;if(!E&&((l=V.video)==null?0:l.height)&&a.maxHeight&&a.maxHeight>=((t=V.video)==null?void 0:t.height)){l=!1;break a}}l=!0}l&&(l=V.itag,C=d?d:{itag:l,o$:C,DQ:X},X?C.numChannels=V.audio.numChannels:(X=V.video,C.maxWidth=X==null?void 0:X.width,C.maxHeight=X==null?void 0:X.height,C.maxFramerate=H,Je(p,mw.BITRATE)&&(C.maxBitrateBps=V.F$* 8),C.R2=X==null?void 0:X.isHdr()),p.T.set(N,C))}; DBs=function(p){var C;(C=navigator.mediaCapabilities)!=null&&C.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(V){V.smooth&&V.powerEfficient&&(p.b_=2160)})}; CI=function(){g.ca.call(this);this.items={}}; jH=function(){g.OF.apply(this,arguments)}; Vj=function(){g.yi.apply(this,arguments)}; IdH=function(p,C,V){this.encryptedClientKey=C;this.W=V;this.T=new Uint8Array(p.buffer,0,16);this.V=new Uint8Array(p.buffer,16)}; bj1=function(p){p.C||(p.C=new jH(p.T));return p.C}; Nn=function(p){try{return Fv(p)}catch(C){return null}}; AM9=function(p,C){if(!C&&p)try{C=JSON.parse(p)}catch(H){}if(C){p=C.clientKey?Nn(C.clientKey):null;var V=C.encryptedClientKey?Nn(C.encryptedClientKey):null,N=C.keyExpiresInSeconds?Number(C.keyExpiresInSeconds)*1E3+(0,g.Ip)():null;p&&V&&N&&(this.T=new IdH(p,V,N));C.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Nn(C.onesieUstreamerConfig)||void 0);this.baseUrl=C.baseUrl}}; Xs=function(){this.data=new Uint8Array(2048);this.pos=0;Hg||(Hg=gc("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; dG=function(p){this.T=this.C=0;this.alpha=Math.exp(Math.log(.5)/p)}; iL=function(p){this.C=p===void 0?15:p;this.values=new Float64Array(176);this.T=new Float64Array(11);this.V=new Float64Array(16)}; hR=function(p,C,V,N){V=V===void 0?.5:V;N=N===void 0?0:N;this.resolution=C;this.C=0;this.V=!1;this.d2=!0;this.T=Math.round(p*this.resolution);this.values=Array(this.T);for(p=0;p0)C=p.byterate,this.a$=!0;else{var N; V=(((N=navigator.connection)==null?void 0:N.downlink)||0)*64*1024;V>0&&(C=V,this.a$=!0)}this.V.N3(this.policy.Y,C);p.delay>0&&this.J.N3(1,Math.min(p.delay,2));p.stall>0&&this.D.N3(1,p.stall);p.init>0&&(this.vr=Math.min(p.init,this.vr));p.interruptions&&(this.S=this.S.concat(p.interruptions),this.S.length>16&&this.S.pop());this.b_=(0,g.Ip)();this.policy.D>0&&(this.Ga=new g.N8(this.R$,this.policy.D,this),g.R(this,this.Ga),this.Ga.start())}; ag=function(p,C,V,N){p.V.N3(N===void 0?C:N,V/C);p.Y=(0,g.Ip)()}; k$V=function(p){p.W||(p.W=(0,g.Ip)());p.policy.Z&&(p.Y=(0,g.Ip)())}; xBe=function(p,C){if(p.W){var V=C-p.W;if(V>1E3){var N=p.interruptions;N.push(Math.ceil(V));N.sort(function(H,X){return X-H}); N.length>16&&N.pop()}p.Vn+=V}p.W=C}; Ee=function(p,C,V,N,H,X){X=X===void 0?!1:X;p.Wr.N3(C,V/C);p.Y=(0,g.Ip)();H||p.Z.N3(1,C-N);X||(p.W=0);p.b_>-1&&(0,g.Ip)()-p.b_>3E4&&YTa(p)}; lL=function(p,C,V){C=Math.max(C,p.C.T);p.D.N3(1,V/C)}; tR=function(p){p=p.J.Kd()+p.Sa.Kd()||0;p=isNaN(p)?.5:p;return p=Math.min(p,5)}; cg=function(p,C,V){isNaN(V)||(p.sY+=V);isNaN(C)||(p.Y_+=C)}; TM=function(p){p=p.V.Kd();return p>0?p:1}; Mn=function(p,C,V){C=C===void 0?!1:C;V=V===void 0?1048576:V;var N=TM(p);N=1/((p.D.Kd()||0)*p.policy.a$+1/N);var H=p.Wr.Kd();H=H>0?H:1;var X=Math.max(N,H);p.policy.W>0&&H=4E3}; ROj=function(p){this.experiments=p;this.T=17;this.V=13E4;this.Y=.5;this.C=!1;this.b_=this.G("html5_use_histogram_for_bandwidth");this.S=!1;this.W=g.mi(this.experiments,"html5_auxiliary_estimate_weight");this.a$=g.mi(this.experiments,"html5_stall_factor")||1;this.D=g.mi(this.experiments,"html5_check_for_idle_network_interval_ms");this.J=this.experiments.OY("html5_trigger_loader_when_idle_network");this.Z=this.experiments.OY("html5_sabr_fetch_on_idle_network_preloaded_players")}; eO1=function(p,C){p=p===void 0?{}:p;C=C===void 0?{}:C;g.Y.call(this);var V=this;this.values=p;this.uq=C;this.C={};this.V=this.T=0;this.S=new g.N8(function(){nru(V)},1E4); g.R(this,this.S)}; m4=function(p,C){Pnj(p,C);return p.values[C]&&p.uq[C]?p.values[C]/Math.pow(2,p.T/p.uq[C]):0}; Pnj=function(p,C){p.values[C]||(C=uwX(),p.values=C.values||{},p.uq=C.halfLives||{},p.C=C.values?Object.assign({},C.values):{})}; nru=function(p){var C=uwX();if(C.values){C=C.values;for(var V={},N=g.F(Object.keys(p.values)),H=N.next();!H.done;H=N.next())H=H.value,C[H]&&p.C[H]&&(p.values[H]+=C[H]-p.C[H]),V[H]=m4(p,H);p.C=V}C=p.uq;V={};V.values=p.C;V.halfLives=C;g.Yl("yt-player-memory",V,2592E3)}; xS=function(p,C,V,N,H){g.Y.call(this);this.webPlayerContextConfig=C;this.DM=N;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Nw=this.YM=this.Qn=this.AX=this.userDisplayName=this.userDisplayImage=this.YN="";this.T={};this.wy={};this.controlsType="0";this.I6=NaN;this.Wc=!1;this.d6=(0,g.Ip)();this.Q$=0;this.BI=this.sx=!1;this.JW=!0;this.preferGapless=this.Ov=this.hE=this.V=this.JB=this.W1=!1;this.i8=[];this.Um=!0;this.jZ=!1;p=p?g.zh(p):{};C&&C.csiPageType&&(this.csiPageType=C.csiPageType); C&&C.csiServiceName&&(this.csiServiceName=C.csiServiceName);C&&C.preferGapless&&(this.preferGapless=C.preferGapless);this.experiments=new mBV(C?C.serializedExperimentIds:p.fexp,C?C.serializedExperimentFlags:p.fflags);this.forcedExperiments=C?C.serializedForcedExperimentIds:a_("",p.forced_experiments)||void 0;this.cspNonce=(C==null?0:C.cspNonce)?C.cspNonce:a_("",p.csp_nonce);this.G("web_player_deprecated_uvr_killswitch");try{var X=document.location.toString()}catch(P){X=""}this.iW=X;this.ancestorOrigins= (N=window.location.ancestorOrigins)?Array.from(N):[];this.S=iO(!1,C?C.isEmbed:p.is_embed);if(C&&C.device){if(N=C.device,N.androidOsExperience&&(this.T.caoe=""+N.androidOsExperience),N.androidPlayServicesVersion&&(this.T.capsv=""+N.androidPlayServicesVersion),N.brand&&(this.T.cbrand=N.brand),N.browser&&(this.T.cbr=N.browser),N.browserVersion&&(this.T.cbrver=N.browserVersion),N.cobaltReleaseVehicle&&(this.T.ccrv=""+N.cobaltReleaseVehicle),this.T.c=N.interfaceName||"WEB",this.T.cver=N.interfaceVersion|| "html5",N.interfaceTheme&&(this.T.ctheme=N.interfaceTheme),this.T.cplayer=N.interfacePlayerType||"UNIPLAYER",N.model&&(this.T.cmodel=N.model),N.network&&(this.T.cnetwork=N.network),N.os&&(this.T.cos=N.os),N.osVersion&&(this.T.cosver=N.osVersion),N.platform&&(this.T.cplatform=N.platform),X=Wb(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),X==="all"||X==="once")N.chipset&&(this.wy.cchip=N.chipset),N.cobaltAppVersion&&(this.wy.ccappver=N.cobaltAppVersion),N.firmwareVersion&&(this.wy.cfrmver= N.firmwareVersion),N.deviceYear&&(this.wy.crqyear=N.deviceYear)}else this.T.c=p.c||"web",this.T.cver=p.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=C?this.S||wPj(this)&&C.loaderUrl?C.loaderUrl||"":this.iW:this.S||wPj(this)&&p.loaderUrl?a_("",p.loaderUrl):this.iW;this.S&&g.YH("yt.embedded_player.embed_url",this.loaderUrl);this.D=No(this.loaderUrl,$BQ);N=this.loaderUrl;var d=d===void 0?!1:d;this.Tz=V6(No(N,L$H),N,d,"Trusted Ad Domain URL");this.va=iO(!1,p.privembed);this.protocol=this.iW.indexOf("http:")=== 0?"http":"https";this.Vn=H8((C?C.customBaseYoutubeUrl:p.BASE_YT_URL)||"")||H8(this.iW)||this.protocol+"://www.youtube.com/";d=C?C.eventLabel:p.el;N="detailpage";d==="adunit"?N=this.S?"embedded":"detailpage":d==="embedded"||this.D?(N=hm(N,d,gru),d!=="shortsaudiopivot"||this.G("web_player_shorts_audio_pivot_event_label")||(N="detailpage")):d&&(N="embedded");this.Wr=N;oQH();d=null;N=C?C.playerStyle:p.ps;X=g.W5(W$L,N);!N||X&&!this.D||(d=N);this.playerStyle=d;this.Y=g.W5(W$L,this.playerStyle);this.houseBrandUserStatus= C==null?void 0:C.houseBrandUserStatus;this.b_=this.Y&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.MR=!this.b_;this.Ga=iO(!1,p.disableplaybackui);this.disablePaidContentOverlay=iO(!1,C==null?void 0:C.disablePaidContentOverlay);this.disableSeek=iO(!1,C==null?void 0:C.disableSeek);this.enableSpeedOptions=(C==null?void 0:C.enableSpeedOptions)||(An().defaultPlaybackRate?vg||g.N5||rB?g.k$&&q8("20")||g.kZ&&q8("4")||g.Fs&&q8("11")||pK():!(g.Fs&&!g.gm("chrome")||vg||g.gm("android")||g.gm("silk")): !1);this.rj=iO(!1,p.enable_faster_speeds);var a;this.supportsVarispeedExtendedFeatures=(a=C==null?void 0:C.supportsVarispeedExtendedFeatures)!=null?a:!1;this.C=iO(this.playerStyle==="blazer",p.is_html5_mobile_device||C&&C.isMobileDevice);this.R$=Vc()||Hw();this.cP=this.G("mweb_allow_background_playback")?!1:this.C&&!this.Y;this.Y_=zx();this.lL=g.SH;var E;this.td=!!(C==null?0:(E=C.embedsHostFlags)==null?0:E.optOutApiDeprecation);var l;this.Vz=!!(C==null?0:(l=C.embedsHostFlags)==null?0:l.allowPfpImaIntegration); this.eE=this.G("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var t;C?C.hideInfo!==void 0&&(t=!C.hideInfo):t=p.showinfo;this.lF=g.KI(this)&&!this.td||iO(!DW(this)&&!uL(this)&&!this.Y,t);this.Uh=C?!!C.mobileIphoneSupportsInlinePlayback:iO(!1,p.playsinline);a=this.C&&ZW&&Ue!=null&&Ue>0&&Ue<=2.3;E=C?C.useNativeControls:p.use_native_controls;this.J=g.KI(this)&&this.C;l=this.C&&!this.J;E=g.fI(this)||!a&&iO(l,E)?"3":"1";this.disableOrganicUi=!(C==null||!C.disableOrganicUi);l=C?C.controlsType: p.controls;this.controlsType=this.disableOrganicUi?"0":l!=="0"&&l!==0?E:"0";this.JX=this.C;this.color=hm("red",C?C.progressBarColor:p.color,Qdy);this.vK=this.controlsType==="3";this.VZ=!this.S;this.Om=(E=!this.VZ&&!uL(this)&&!this.b_&&!this.Y&&!DW(this))&&!this.vK&&this.controlsType==="1";this.FO=g.Oe(this)&&E&&this.controlsType==="0"&&!this.Om&&!(C==null?0:C.embedsEnableEmc3ds);this.oa=this.BK=a;this.RN=(this.controlsType==="3"||this.C||iO(!1,p.use_media_volume))&&!this.J;this.Q1=CK&&!g.JB(601)? !1:!0;this.Ox=this.S||!1;this.X$=uL(this)?"":(this.loaderUrl||p.post_message_origin||"").substring(0,128);this.widgetReferrer=a_("",C?C.widgetReferrer:p.widget_referrer);var c;C?C.disableCastApi&&(c=!1):c=p.enablecastapi;c=!this.D||iO(!0,c);a=!0;C&&C.disableMdxCast&&(a=!1);this.Pz=this.G("enable_cast_for_web_unplugged")&&g.yj(this)&&a||g.gk(this)&&a||c&&a&&this.controlsType==="1"&&!this.C&&(uL(this)||g.Oe(this)||g.qn(this));this.QP=!!window.document.pictureInPictureEnabled||YZ();c=C?!!C.supportsAutoplayOverride: iO(!1,p.autoplayoverride);this.qn=!(this.C&&!g.KI(this))&&!g.gm("nintendo wiiu")||c;this.hg=(C?!!C.enableMutedAutoplay:iO(!1,p.mutedautoplay))&&!1;c=(uL(this)||DW(this))&&this.playerStyle==="blazer";this.BB=C?!!C.disableFullscreen:!iO(!0,p.fs);a=g.cw(g.Ig(this))&&g.KI(this);this.Hc=!this.BB&&(c||g.Sz())&&!a;this.lf=this.G("uniplayer_block_pip")&&(Wd()&&q8(58)&&!Hw()||BW);c=g.KI(this)&&!this.td;var T;C?C.disableRelatedVideos!==void 0&&(T=!C.disableRelatedVideos):T=p.rel;this.QZ=c||iO(!this.Y,T);this.Kp= iO(!1,C?C.enableContentOwnerRelatedVideos:p.co_rel);this.Z=Hw()&&Ue>0&&Ue<=4.4?"_top":"_blank";this.FT=g.qn(this);this.Of=iO(this.playerStyle==="blazer",C?C.enableCsiLogging:p.enablecsi);switch(this.playerStyle){case "blogger":T="bl";break;case "gmail":T="gm";break;case "gac":T="ga";break;case "books":T="gb";break;case "docs":case "flix":T="gd";break;case "duo":T="gu";break;case "google-live":T="gl";break;case "google-one":T="go";break;case "play":T="gp";break;case "chat":T="hc";break;case "hangouts-meet":T= "hm";break;case "photos-edu":case "picasaweb":T="pw";break;default:T="yt"}this.a$=T;this.sY=a_("",C?C.authorizedUserIndex:p.authuser);this.qW=g.KI(this)&&(this.va||!SHs()||this.R$);var M;C?C.disableWatchLater!==void 0&&(M=!C.disableWatchLater):M=p.showwatchlater;this.cV=((T=!this.qW)||!!this.sY&&T)&&iO(!this.b_,this.D?M:void 0);this.o6=C?C.isMobileDevice||!!C.disableKeyboardControls:iO(!1,p.disablekb);this.loop=iO(!1,p.loop);this.pageId=a_("",C?C.initialDelegatedSessionId:p.pageid);this.JF=iO(!0, p.canplaylive);this.qo=iO(!1,p.livemonitor);this.disableSharing=iO(this.Y,C?C.disableSharing:p.ss);(M=C&&this.G("fill_video_container_size_override_from_wpcc")?C.videoContainerOverride:p.video_container_override)?(T=M.split("x"),T.length!==2?M=null:(M=Number(T[0]),T=Number(T[1]),M=isNaN(M)||isNaN(T)||M*T<=0?null:new g.KG(M,T))):M=null;this.oi=M;this.mute=C?!!C.startMuted:iO(!1,p.mute);this.storeUserVolume=!this.mute&&iO(this.controlsType!=="0",C?C.storeUserVolume:p.store_user_volume);M=C?C.annotationsLoadPolicy: p.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:hm(void 0,M,bL);this.captionsLanguagePreference=C?C.captionsLanguagePreference||"":a_("",p.cc_lang_pref);M=hm(2,C?C.captionsLanguageLoadPolicy:p.cc_load_policy,bL);this.controlsType==="3"&&M===2&&(M=3);this.kM=M;this.ER=C?C.hl||"en_US":a_("en_US",p.hl);this.region=C?C.contentRegion||"US":a_("US",p.cr);this.hostLanguage=C?C.hostLanguage||"en":a_("en",p.host_language);this.Ic=!this.va&&Math.random()=480;this.schedule=new se(a,new JMH(this.experiments),H);g.R(this,this.schedule);var J;this.enableSafetyMode= (J=C==null?void 0:C.initialEnableSafetyMode)!=null?J:iO(!1,p.enable_safety_mode);H=this.Ga?!1:uL(this)&&this.playerStyle!=="blazer";var S;C?C.disableAutonav!=null&&(S=!C.disableAutonav):S=p.allow_autonav;this.kt=iO(H,!this.b_&&S);this.sendVisitorIdHeader=C?!!C.sendVisitorIdHeader:iO(!1,p.send_visitor_id_header);var D;this.playerStyle==="docs"&&(C?D=C.disableNativeContextMenu:D=p.disable_native_context_menu);this.disableNativeContextMenu=iO(!1,D);this.SE=I3(this)&&this.G("enable_skip_intro_button"); this.embedConfig=a_("",C?C.serializedEmbedConfig:p.embed_config);this.Sa=tm(p,g.KI(this));this.V=this.Sa==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(C==null||!C.embedsErrorLinks);this.tB=iO(!1,p.full_window);var Z;this.UY=!((Z=this.webPlayerContextConfig)==null?0:Z.chromeless);var f;this.livingRoomAppMode=hm("LIVING_ROOM_APP_MODE_UNSPECIFIED",p.living_room_app_mode||(C==null?void 0:(f=C.device)==null?void 0:f.livingRoomAppMode),G$L);var q;S=sB(NaN,C==null?void 0:(q=C.device)==null?void 0: q.deviceYear);isNaN(S)||(this.deviceYear=S);this.transparentBackground=C?!!C.transparentBackground:iO(!1,p.transparent_background);this.showMiniplayerButton=C?!!C.showMiniplayerButton:iO(!1,p.show_miniplayer_button);var A;g.KI(this)&&!(C==null?0:(A=C.embedsHostFlags)==null?0:A.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=C?!!C.externalFullscreen:iO(!1,p.external_fullscreen);this.showMiniplayerUiWhenMinimized=C?!!C.showMiniplayerUiWhenMinimized:iO(!1,p.use_miniplayer_ui); this.showInlinePreviewUi=C?!!C.showInlinePreviewUi:!1;var z;this.JW=(z=p.show_loop_video_toggle)!=null?z:!0;this.VP=Math.random()<1E-4;this.Kq=p.onesie_hot_config||(C==null?0:C.onesieHotConfig)?new AM9(p.onesie_hot_config,C==null?void 0:C.onesieHotConfig):void 0;this.isTectonic=C?!!C.isTectonic:!!p.isTectonic;this.playerCanaryState=V;this.playerCanaryStage=C==null?void 0:C.canaryStage;this.f9=new eO1;g.R(this,this.f9);this.JB=iO(!1,p.force_gvi);this.datasyncId=(C==null?void 0:C.datasyncId)||g.pO("DATASYNC_ID"); this.K$=g.pO("LOGGED_IN",!1);this.uM=(C==null?void 0:C.allowWoffleManagement)||!1;this.lM=Infinity;this.gR=NaN;this.livingRoomPoTokenId=C==null?void 0:C.livingRoomPoTokenId;this.G("html5_high_res_logging_always")?this.hE=!0:this.hE=Math.random()*100=0&&p0&&p.VP&&(N.sort(),g.eG(new g.Bw("Player client parameters changed after startup",N)));p.userAge=sB(p.userAge,C.user_age);p.YN=a_(p.YN,C.user_display_email);p.userDisplayImage=a_(p.userDisplayImage,C.user_display_image);g.dn(p.userDisplayImage)||(p.userDisplayImage= "");p.userDisplayName=a_(p.userDisplayName,C.user_display_name);p.AX=a_(p.AX,C.user_gender);p.csiPageType=a_(p.csiPageType,C.csi_page_type);p.csiServiceName=a_(p.csiServiceName,C.csi_service_name);p.Of=iO(p.Of,C.enablecsi);p.pageId=a_(p.pageId,C.pageid);if(V=C.enabled_engage_types)p.enabledEngageTypes=new Set(V.split(","));C.living_room_session_po_token&&(p.XT=C.living_room_session_po_token.toString())}; YS=function(p,C){return!p.Y&&Wd()&&q8(55)&&p.controlsType==="3"&&!C}; g.zM=function(p){p=AR(p.Vn);return p==="www.youtube-nocookie.com"?"www.youtube.com":p}; Rg=function(p,C,V){return p.protocol+"://i1.ytimg.com/vi/"+C+"/"+(V||"hqdefault.jpg")}; nI=function(p){return uL(p)&&!g.yj(p)}; g.fI=function(p){return p.G("html5_local_playsinline")?CK&&!g.JB(602)&&!("playsInline"in An()):CK&&!p.Uh||g.gm("nintendo wiiu")?!0:!1}; Lb=function(p){return p.T.c}; g.bH=function(p){return/^TVHTML5/.test(Lb(p))}; g.eH=function(p){return Lb(p)==="TVHTML5"}; wPj=function(p){return Lb(p)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; B2L=function(p){return p.T.cmodel==="CHROMECAST ULTRA/STEAK"||p.T.cmodel==="CHROMECAST/STEAK"}; g.Pg=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; I3=function(p){return/web/i.test(Lb(p))}; g.wG=function(p){return Lb(p).toUpperCase()==="WEB"}; kS=function(p){return Lb(p)==="WEB_KIDS"}; g.yj=function(p){return Lb(p)==="WEB_UNPLUGGED"}; $S=function(p){return Lb(p)==="TVHTML5_UNPLUGGED"}; g.qz=function(p){return g.yj(p)||Lb(p)==="TV_UNPLUGGED_CAST"||$S(p)}; g.gk=function(p){return Lb(p)==="WEB_REMIX"}; g.LI=function(p){return Lb(p)==="WEB_EMBEDDED_PLAYER"}; g.Wg=function(p){return(p.deviceIsAudioOnly||!g.kZ||BW||p.controlsType==="3"?!1:g.N5?p.S&&g.JB(51):!0)||(p.deviceIsAudioOnly||!g.k$||BW||p.controlsType==="3"?!1:g.N5?p.S&&g.JB(48):g.JB(38))||(p.deviceIsAudioOnly||!g.Fs||BW||p.controlsType==="3"?!1:g.N5?p.S&&g.JB(37):g.JB(27))||!p.deviceIsAudioOnly&&g.gG&&!UZu()&&g.JB(11)||!p.deviceIsAudioOnly&&g.D1&&g.JB("604.4")}; jYj=function(p){if(g.Oe(p)&&ZW)return!1;if(g.k$){if(!g.JB(47)||!g.JB(52)&&g.JB(51))return!1}else if(g.D1)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Qj=function(p){return!p.G("html5_disable_media_element_loop_on_tv")||!g.bH(p)}; N6S=function(p,C){return p.enabledEngageTypes.has(C.toString())||V8y.includes(C)}; uL=function(p){return p.Wr==="detailpage"}; g.Oe=function(p){return p.Wr==="embedded"}; rG=function(p){return p.Wr==="leanback"}; DW=function(p){return p.Wr==="adunit"||p.playerStyle==="gvn"}; g.qn=function(p){return p.Wr==="profilepage"}; g.KI=function(p){return p.S&&g.Oe(p)&&!DW(p)&&!p.Y}; Bg=function(p){if(!p.userDisplayImage)return"";var C=p.userDisplayImage.split("/");if(C.length===5)return p=C[C.length-1].split("="),p[1]="s20-c",C[C.length-1]=p.join("="),C.join("/");if(C.length===8)return C.splice(7,0,"s20-c"),C.join("/");if(C.length===9)return C[7]+="-s20-c",C.join("/");g.eG(new g.Bw("Profile image not a FIFE URL.",p.userDisplayImage));return p.userDisplayImage}; g.GM=function(p){var C=g.zM(p);Ha9.includes(C)&&(C="www.youtube.com");return p.protocol+"://"+C}; g.pk=function(p,C){C=C===void 0?"":C;if(p.DM){var V=new hK,N,H=p.DM();H.signedOut?N="":H.token?N=H.token:H.pendingResult.then(function(X){H.signedOut?V.resolve(""):V.resolve(X.token)},function(X){g.eG(new g.Bw("b189348328_oauth_callback_failed",{error:X})); V.resolve(C)}); return N!==void 0?YD(N):new kD(V)}return YD(C)}; AR=function(p){var C=g.LJ(p);return(p=Number(g.$7(4,p))||null)?C+":"+p:C}; Ck=function(p,C){C=C===void 0?!1:C;var V=gO[p],N=X0Y[V],H=d3L[p];if(!H||!N)return null;C=new wO(C?H.height:H.width,C?H.width:H.height,H.fps);N=s6(N,C,V);return new WB(p,N,{video:C,F$:H.bitrate/8})}; heu=function(p){var C=X0Y[gO[p]],V=ia1[p];return V&&C?new WB(p,C,{audio:new nR(V.audioSampleRate,V.numChannels)}):null}; jw=function(p){this.T=p}; Vs=function(p,C,V,N){if(V)return xD();V={};var H=An();C=g.F(C);for(var X=C.next();!X.done;X=C.next())if(X=X.value,p.canPlayType(H,X.getInfo().mimeType)||N){var d=X.T.video.quality;if(!V[d]||V[d].getInfo().Ft())V[d]=X}p=[];V.auto&&p.push(V.auto);N=g.F($Z);for(H=N.next();!H.done;H=N.next())(H=V[H.value])&&p.push(H);return p.length?YD(p):xD()}; sYa=function(p){this.itag=p.itag;this.url=p.url;this.codecs=p.codecs;this.width=p.width;this.height=p.height;this.fps=p.fps;this.bitrate=p.bitrate;var C;this.C=((C=p.audioItag)==null?void 0:C.split(","))||[];this.SD=p.SD;this.vV=p.vV||"";this.K4=p.K4;this.audioChannels=p.audioChannels;this.T=""}; aY9=function(p,C,V,N){C=C===void 0?!1:C;V=V===void 0?!0:V;N=N===void 0?{}:N;var H={};p=g.F(p);for(var X=p.next();!X.done;X=p.next()){X=X.value;if(C&&MediaSource&&MediaSource.isTypeSupported){var d=X.type;X.audio_channels&&(d=d+"; channels="+X.audio_channels);if(!MediaSource.isTypeSupported(d)){N[X.itag]="tpus";continue}}if(V||!X.drm_families||X.eotf!=="smpte2084"&&X.eotf!=="arib-std-b67"){d=void 0;var a={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},E=X.type.match(/codecs="([^"]*)"/); E=E?E[1]:"";X.audio_track_id&&(d=new g.N6(X.name,X.audio_track_id,!!X.is_default));var l=X.eotf;X=new sYa({itag:X.itag,url:X.url,codecs:E,width:Number(X.width),height:Number(X.height),fps:Number(X.fps),bitrate:Number(X.bitrate),audioItag:X.audio_itag,SD:l?a[l]:void 0,vV:X.drm_families,K4:d,audioChannels:Number(X.audio_channels)});H[X.itag]=H[X.itag]||[];H[X.itag].push(X)}else N[X.itag]="enchdr"}return H}; ExQ=function(p,C,V,N,H){this.V=p;this.C=C;this.W=V;this.cpn=N;this.Y=H;this.S=0;this.T=""}; lYe=function(p,C){p.V.some(function(V){var N;return((N=V.K4)==null?void 0:N.getId())===C}); p.T=C}; NF=function(p,C,V){p.cpn&&(C=g.GD(C,{cpn:p.cpn}));V&&(C=g.GD(C,{paired:V}));return C}; t8e=function(p,C){p=p.itag.toString();C!==null&&(p+=C.itag.toString());return p}; cLs=function(p){for(var C=[],V=[],N=g.F(p.C),H=N.next();!H.done;H=N.next())H=H.value,H.bitrate<=p.S?C.push(H):V.push(H);C.sort(function(X,d){return d.bitrate-X.bitrate}); V.sort(function(X,d){return X.bitrate-d.bitrate}); p.C=C.concat(V)}; H7=function(p,C,V){this.T=p;this.C=C;this.expiration=V;this.sR=null}; T6j=function(p,C){if(!(BW||GQ()||rm()))return null;p=aY9(C,p.G("html5_filter_fmp4_in_hls"));if(!p)return null;C=[];for(var V={},N=g.F(Object.keys(p)),H=N.next();!H.done;H=N.next()){H=g.F(p[H.value]);for(var X=H.next();!X.done;X=H.next()){var d=X.value;d.K4&&(X=d.K4.getId(),V[X]||(d=new g.pw(X,d.K4),V[X]=d,C.push(d)))}}return C.length>0?C:null}; FHS=function(p,C,V,N,H,X,d){if(!(BW||GQ()||rm()))return xD();var a={},E=M8S(V),l=aY9(V,p.G("html5_filter_fmp4_in_hls"),p.W.Y,a);if(!l)return d({noplst:1}),xD();JLS(l);V={};var t=(V.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",V),c;V=[];var T=[],M=[],J=null,S="";N=N&&N.match(/hls_timedtext_playlist/)?new sYa({itag:"0",url:N,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,K4:new g.N6("English","en",!1)}):null;for(var D=g.F(Object.keys(l)),Z=D.next();!Z.done;Z=D.next())if(Z=Z.value,!p.G("html5_disable_drm_hfr_1080")|| Z!=="383"&&Z!=="373"){Z=g.F(l[Z]);for(var f=Z.next();!f.done;f=Z.next())if(f=f.value,f.width){for(var q=g.F(f.C),A=q.next();!A.done;A=q.next())if(A=A.value,l[A]){f.T=A;break}f.T||(f.T=m3S(l,f));if(q=l[f.T])if(V.push(f),f.vV==="fairplay"&&(c=t),A="",f.SD==="PQ"?A="smpte2084":f.SD==="HLG"&&(A="arib-std-b67"),A&&(S=A),M.push(vx9(q,[f],N,X,f.itag,f.width,f.height,f.fps,E,void 0,void 0,c,A)),!J||f.width*f.height*f.fps>J.width*J.height*J.fps)J=f}else T.push(f)}else a[Z]="disdrmhfr";M.reduce(function(z, Q){return Q.getInfo().isEncrypted()&&z},!0)&&(c=t); H=Math.max(H,0);t=J||{};l=t.fps===void 0?0:t.fps;J=t.width===void 0?0:t.width;t=t.height===void 0?0:t.height;D=p.G("html5_native_audio_track_switching");M.push(vx9(T,V,N,X,"93",J,t,l,E,"auto",H,c,S,D));Object.entries(a).length&&d(a);return Vs(p.W,M,YS(p,C),!1)}; vx9=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){for(var J=0,S="",D=g.F(p),Z=D.next();!Z.done;Z=D.next())Z=Z.value,S||(S=Z.itag),Z.audioChannels&&Z.audioChannels>J&&(J=Z.audioChannels,S=Z.itag);H=new WB(H,"application/x-mpegURL",{audio:new nR(0,J),video:new wO(X,d,a,null,void 0,l,void 0,T),vV:c,UL:S});p=new ExQ(p,C,V?[V]:[],N,!!M);p.S=t?t:1369843;return new H7(H,p,E)}; M8S=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(C=C.value,C.url&&(C=C.url.split("expire/"),!(C.length<=1)))return+C[1].split("/")[0];return NaN}; m3S=function(p,C){for(var V=g.F(Object.keys(p)),N=V.next();!N.done;N=V.next()){N=N.value;var H=p[N][0];if(!H.width&&H.vV===C.vV&&!H.audioChannels)return N}return""}; JLS=function(p){for(var C=new Set,V=g.F(Object.values(p)),N=V.next();!N.done;N=V.next())N=N.value,N.length&&(N=N[0],N.height&&N.codecs.startsWith("vp09")&&C.add(N.height));V=[];if(C.size){N=g.F(Object.keys(p));for(var H=N.next();!H.done;H=N.next())if(H=H.value,p[H].length){var X=p[H][0];X.height&&C.has(X.height)&&!X.codecs.startsWith("vp09")&&V.push(H)}}C=g.F(V);for(V=C.next();!V.done;V=C.next())delete p[V.value]}; Xt=function(p,C){this.T=p;this.C=C}; SAj=function(p,C,V,N){var H=[];V=g.F(V);for(var X=V.next();!X.done;X=V.next()){var d=X.value;if(d.url){X=new g.v1(d.url,!0);if(d.s){var a=X,E=d.sp,l=v_j(decodeURIComponent(d.s));a.set(E,encodeURIComponent(l))}a=g.F(Object.keys(N));for(E=a.next();!E.done;E=a.next())E=E.value,X.set(E,N[E]);d=dN(d.type,d.quality,d.itag,d.width,d.height);H.push(new Xt(d,X))}}return Vs(p.W,H,YS(p,C),!1)}; dP=function(p,C){this.T=p;this.C=C}; KHy=function(p,C,V){var N=[];V=g.F(V);for(var H=V.next();!H.done;H=V.next())if((H=H.value)&&H.url){var X=dN(H.type,"medium","0");N.push(new dP(X,H.url))}return Vs(p.W,N,YS(p,C),!1)}; D3j=function(p,C){var V=[],N=dN(C.type,"auto",C.itag);V.push(new dP(N,C.url));return Vs(p.W,V,!1,!0)}; Za1=function(p){return p&&umY[p]?umY[p]:null}; U3Y=function(p){if(p=p.commonConfig)this.url=p.url,this.urlQueryOverride=p.urlQueryOverride,p.ustreamerConfig&&(this.ac=Nn(p.ustreamerConfig)||void 0)}; fYe=function(p,C){var V;if(C=C==null?void 0:(V=C.watchEndpointSupportedOnesieConfig)==null?void 0:V.html5PlaybackOnesieConfig)p.nF=new U3Y(C)}; g.is=function(p){p=p===void 0?{}:p;this.languageCode=p.languageCode||"";this.languageName=p.languageName||null;this.kind=p.kind||"";this.name=p.name===void 0?null:p.name;this.displayName=p.displayName||null;this.id=p.id||null;this.T=p.is_servable||!1;this.isTranslateable=p.is_translateable||!1;this.url=p.url||null;this.vssId=p.vss_id||"";this.isDefault=p.is_default||!1;this.translationLanguage=p.translationLanguage||null;this.xtags=p.xtags||"";this.captionId=p.captionId||""}; g.sj=function(p){var C={languageCode:p.languageCode,languageName:p.languageName,displayName:g.hA(p),kind:p.kind,name:p.name,id:p.id,is_servable:p.T,is_default:p.isDefault,is_translateable:p.isTranslateable,vss_id:p.vssId};p.xtags&&(C.xtags=p.xtags);p.captionId&&(C.captionId=p.captionId);p.translationLanguage&&(C.translationLanguage=p.translationLanguage);return C}; g.aI=function(p){return p.translationLanguage?p.translationLanguage.languageCode:p.languageCode}; g.OaY=function(p){var C=p.vssId;p.translationLanguage&&C&&(C="t"+C+"."+g.aI(p));return C}; g.hA=function(p){var C=[];if(p.displayName)C.push(p.displayName);else{var V=p.languageName||"";C.push(V);p.kind==="asr"&&V.indexOf("(")===-1&&C.push(" (Legendas autom\u00e1ticas)");p.name&&C.push(" - "+p.name)}p.translationLanguage&&C.push(" >> "+p.translationLanguage.languageName);return C.join("")}; bay=function(p,C,V,N){p||(p=C&&yLj.hasOwnProperty(C)&&qAY.hasOwnProperty(C)?qAY[C]+"_"+yLj[C]:void 0);C=p;if(!C)return null;p=C.match(IYQ);if(!p||p.length!==5)return null;if(p=C.match(IYQ)){var H=Number(p[3]),X=[7,8,10,5,6];p=!(Number(p[1])===1&&H===8)&&X.indexOf(H)>=0}else p=!1;return V||N||p?C:null}; Ej=function(p,C){for(var V={},N=g.F(Object.keys(ALu)),H=N.next();!H.done;H=N.next()){H=H.value;var X=C?C+H:H;X=p[X+"_webp"]||p[X];g.dn(X)&&(V[ALu[H]]=X)}return V}; ls=function(p){var C={};if(!p||!p.thumbnails)return C;p=p.thumbnails.filter(function(a){return!!a.url}); p.sort(function(a,E){return a.width-E.width||a.height-E.height}); for(var V=g.F(Object.keys(oxe)),N=V.next();!N.done;N=V.next()){var H=Number(N.value);N=oxe[H];for(var X=g.F(p),d=X.next();!d.done;d=X.next())if(d=d.value,d.width>=H){H=kda(d.url);g.dn(H)&&(C[N]=H);break}}(p=p.pop())&&p.width>=1280&&(p=kda(p.url),g.dn(p)&&(C["maxresdefault.jpg"]=p));return C}; kda=function(p){return p.startsWith("//")?"https:"+p:p}; tA=function(p){return p&&p.baseUrl||""}; c7=function(p){p=g.sk(p);for(var C=g.F(Object.keys(p)),V=C.next();!V.done;V=C.next()){V=V.value;var N=p[V];p[V]=Array.isArray(N)?N[0]:N}return p}; x3V=function(p,C){p.botguardData=C.playerAttestationRenderer.botguardData;C=C.playerAttestationRenderer.challenge;C!=null&&(p.Mr=C)}; Ree=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=V.interstitials.map(function(d){var a=g.n(d,YAj);if(a)return{is_yto_interstitial:!0,raw_player_response:a};if(d=g.n(d,ze9))return Object.assign({is_yto_interstitial:!0},i1(d))}); N=g.F(N);for(var H=N.next();!H.done;H=N.next())switch(H=H.value,V.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":p.interstitials=p.interstitials.concat({time:0,playerVars:H,TR:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":p.interstitials=p.interstitials.concat({time:0x7ffffffffffff,playerVars:H,TR:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var X=Number(V.podConfig.timeToInsertAtMillis);p.interstitials=p.interstitials.concat({time:X,playerVars:H, TR:X===0?5:7})}}}; nxs=function(p,C){if(C=C.find(function(V){return!(!V||!V.tooltipRenderer)}))p.tooltipRenderer=C.tooltipRenderer}; eeu=function(p,C){C.subscribeCommand&&(p.subscribeCommand=C.subscribeCommand);C.unsubscribeCommand&&(p.unsubscribeCommand=C.unsubscribeCommand);C.addToWatchLaterCommand&&(p.addToWatchLaterCommand=C.addToWatchLaterCommand);C.removeFromWatchLaterCommand&&(p.removeFromWatchLaterCommand=C.removeFromWatchLaterCommand);C.getSharePanelCommand&&(p.getSharePanelCommand=C.getSharePanelCommand)}; P_Q=function(p,C){C!=null?(p.PP=C,p.UV=!0):(p.PP="",p.UV=!1)}; Te=function(p,C){this.type=p||"";this.id=C||""}; g.MF=function(p){return new Te(p.substring(0,2),p.substring(2))}; g.JA=function(p,C){this.I$=p;this.author="";this.e9=null;this.playlistLength=0;this.T=this.sessionData=null;this.Z={};this.title="";if(C){this.author=C.author||C.playlist_author||"";this.title=C.playlist_title||"";if(p=C.session_data)this.sessionData=X5(p,"&");var V;this.T=((V=C.thumbnail_ids)==null?void 0:V.split(",")[0])||null;this.Z=Ej(C,"playlist_");this.videoId=C.video_id||void 0;if(V=C.list)switch(C.listType){case "user_uploads":this.playlistId=(new Te("UU","PLAYER_"+V)).toString();break;default:if(p= C.playlist_length)this.playlistLength=Number(p)||0;this.playlistId=g.MF(V).toString();if(C=C.video)this.videoId=(C[0]||null).video_id||void 0}else C.playlist&&(this.playlistLength=C.playlist.toString().split(",").length)}}; g.mx=function(p,C){this.I$=p;this.B8=this.author="";this.e9=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Bj=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(C){this.ariaLabel=C.aria_label||void 0;this.author=C.author||"";this.B8=C.B8||"";if(p=C.endscreen_autoplay_session_data)this.e9=X5(p,"&");this.HO=C.HO;this.isLivePlayback=C.live_playback==="1";this.isUpcoming=!!C.isUpcoming;if(p=C.length_seconds)this.lengthSeconds=typeof p==="string"?Number(p):p;this.lengthText= C.lengthText||"";this.Bj=C.Bj||"";this.publishedTimeText=C.publishedTimeText||void 0;if(p=C.session_data)this.sessionData=X5(p,"&");this.shortViewCount=C.short_view_count_text||void 0;this.Z=Ej(C);this.title=C.title||"";this.videoId=C.docid||C.video_id||C.videoId||C.id||void 0;this.watchUrl=C.watchUrl||void 0}}; w0V=function(p){var C,V,N=(C=p.getWatchNextResponse())==null?void 0:(V=C.contents)==null?void 0:V.twoColumnWatchNextResults,H,X,d,a,E;p=(H=p.getWatchNextResponse())==null?void 0:(X=H.playerOverlays)==null?void 0:(d=X.playerOverlayRenderer)==null?void 0:(a=d.endScreen)==null?void 0:(E=a.watchNextEndScreenRenderer)==null?void 0:E.results;if(!p){var l,t;p=N==null?void 0:(l=N.endScreen)==null?void 0:(t=l.endScreen)==null?void 0:t.results}return p}; g.Ft=function(p){var C,V,N;p=g.n((C=p.getWatchNextResponse())==null?void 0:(V=C.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:N.decoratedPlayerBarRenderer,v7);return g.n(p==null?void 0:p.playerBar,$39)}; LH1=function(p){this.T=p.playback_progress_0s_url;this.V=p.playback_progress_2s_url;this.C=p.playback_progress_10s_url}; gxY=function(){if(Sw===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(C){}a:{try{var p=!!self.localStorage}catch(C){p=!1}if(p&&(p=g.eJ(g.GW()+"::yt-player"))){Sw=new rk(p);break a}Sw=void 0}}return Sw}; g.Kk=function(){var p=gxY();if(!p)return{};try{var C=p.get("yt-player-lv");return JSON.parse(C||"{}")}catch(V){return{}}}; g.WHy=function(p){var C=gxY();C&&(p=JSON.stringify(p),C.set("yt-player-lv",p))}; g.Db=function(p){return g.Kk()[p]||0}; g.us=function(p,C){var V=g.Kk();C!==V[p]&&(C!==0?V[p]=C:delete V[p],g.WHy(V))}; g.Zb=function(p){return g.I(function(C){return C.return(g.WW(QYX(),p))})}; fk=function(p,C,V,N,H,X,d,a){var E,l,t,c,T,M;return g.I(function(J){switch(J.C){case 1:return E=g.Db(p),E===4?J.return(4):g.y(J,g.Vt(),2);case 2:l=J.T;if(!l)throw g.Z1("wiac");if(!a||d===void 0){J.EY(3);break}return g.y(J,rLS(a,d),4);case 4:d=J.T;case 3:return t=V.lastModified||"0",g.y(J,g.Zb(l),5);case 5:return c=J.T,g.vv(J,6),Uj++,g.y(J,g.kt(c,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",L4:!0},function(S){if(X!==void 0&&d!==void 0){var D=""+p+"|"+C.id+"|"+t+"|"+String(X).padStart(10, "0");D=g.xt(S.objectStore("media"),d,D)}else D=g.f3.resolve(void 0);var Z=B6e(p,C.K9()),f=B6e(p,!C.K9()),q={fmts:Gdv(N),format:V||{}};Z=g.xt(S.objectStore("index"),q,Z);var A=N.downloadedEndTime===-1;q=A?S.objectStore("index").get(f):g.f3.resolve(void 0);var z={fmts:"music",format:{}};S=A&&H&&!C.K9()?g.xt(S.objectStore("index"),z,f):g.f3.resolve(void 0);return g.f3.all([S,q,D,Z]).then(function(Q){Q=g.F(Q);Q.next();Q=Q.next().value;Uj--;var P=g.Db(p);if(P!==4&&A&&H||Q!==void 0&&g.pYv(Q.fmts))P=1,g.us(p, P);return P})}),8); case 8:return J.return(J.T);case 6:T=g.Sa(J);Uj--;M=g.Db(p);if(M===4)return J.return(M);g.us(p,4);throw T;}})}; g.CtL=function(p){var C,V;return g.I(function(N){if(N.C==1)return g.y(N,g.Vt(),2);if(N.C!=3){C=N.T;if(!C)throw g.Z1("ri");return g.y(N,g.Zb(C),3)}V=N.T;return N.return(g.kt(V,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(H){var X=IDBKeyRange.bound(p+"|",p+"~");return H.objectStore("index").getAll(X).then(function(d){return d.map(function(a){return a?a.format:{}})})}))})}; V3L=function(p,C,V,N,H){var X,d,a;return g.I(function(E){if(E.C==1)return g.y(E,g.Vt(),2);if(E.C!=3){X=E.T;if(!X)throw g.Z1("rc");return g.y(E,g.Zb(X),3)}d=E.T;a=g.kt(d,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(l){var t=""+p+"|"+C+"|"+V+"|"+String(N).padStart(10,"0");return l.objectStore("media").get(t)}); return H?E.return(a.then(function(l){if(l===void 0)throw Error("No data from indexDb");return jHQ(H,l)}).catch(function(l){throw new g.Bw("Error while reading chunk: "+l.name+", "+l.message); })):E.return(a)})}; g.pYv=function(p){return p?p==="music"?!0:p.includes("dlt=-1")||!p.includes("dlt="):!1}; B6e=function(p,C){return""+p+"|"+(C?"v":"a")}; Gdv=function(p){var C={};return dm((C.dlt=p.downloadedEndTime.toString(),C.mket=p.maxKnownEndTime.toString(),C.avbr=p.averageByteRate.toString(),C))}; HzQ=function(p){var C={},V={};p=g.F(p);for(var N=p.next();!N.done;N=p.next()){var H=N.value,X=H.split("|");H.match(g.Nre)?(N=Number(X.pop()),isNaN(N)?V[H]="?":(X=X.join("|"),(H=C[X])?(X=H[H.length-1],N===X.end+1?X.end=N:H.push({start:N,end:N})):C[X]=[{start:N,end:N}])):V[H]="?"}p=g.F(Object.keys(C));for(N=p.next();!N.done;N=p.next())N=N.value,V[N]=C[N].map(function(d){return d.start+"-"+d.end}).join(","); return V}; Oj=function(p){g.ca.call(this);this.T=null;this.V=new $F;this.T=null;this.Y=new Set;this.crossOrigin=p||""}; XYe=function(p,C,V){for(V=ys(p,V);V>=0;){var N=p.levels[V];if(N.isLoaded(qF(N,C))&&(N=g.II(N,C)))return N;V--}return g.II(p.levels[0],C)}; izy=function(p,C,V){V=ys(p,V);for(var N,H;V>=0;V--)if(N=p.levels[V],H=qF(N,C),!N.isLoaded(H)){N=p;var X=V,d=X+"-"+H;N.Y.has(d)||(N.Y.add(d),N.V.enqueue(X,{iE:X,cY:H}))}dOL(p)}; dOL=function(p){if(!p.T&&!p.V.isEmpty()){var C=p.V.remove();p.T=h5L(p,C)}}; h5L=function(p,C){var V=document.createElement("img");p.crossOrigin&&(V.crossOrigin=p.crossOrigin);V.src=p.levels[C.iE].i9(C.cY);V.onload=function(){var N=C.iE,H=C.cY;p.T!==null&&(p.T.onload=null,p.T=null);N=p.levels[N];N.loaded.add(H);dOL(p);var X=N.columns*N.rows;H*=X;N=Math.min(H+X-1,N.aV()-1);H=[H,N];p.publish("l",H[0],H[1])}; return V}; g.bs=function(p,C,V,N){this.level=p;this.S=C;this.loaded=new Set;this.level=p;this.S=C;p=V.split("#");this.width=Math.floor(Number(p[0]));this.height=Math.floor(Number(p[1]));this.frameCount=Math.floor(Number(p[2]));this.columns=Math.floor(Number(p[3]));this.rows=Math.floor(Number(p[4]));this.T=Math.floor(Number(p[5]));this.V=p[6];this.signature=p[7];this.videoLength=N}; qF=function(p,C){return Math.floor(C/(p.columns*p.rows))}; g.II=function(p,C){C>=p.g$()&&p.BA();var V=qF(p,C),N=p.columns*p.rows,H=C%N;C=H%p.columns;H=Math.floor(H/p.columns);var X=p.BA()+1-N*V;if(X1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; sHe=function(p,C,V){return(p=p.levels[C])?p.U7(V):-1}; ys=function(p,C){var V=p.S.get(C);if(V)return V;V=p.levels.length;for(var N=0;N=C)return p.S.set(C,N),N;p.S.set(C,V-1);return V-1}; oI=function(p,C,V,N){V=V.split("#");V=[V[1],V[2],0,V[3],V[4],-1,V[0],""].join("#");g.bs.call(this,p,C,V,0);this.C=null;this.W=N?2:0}; kB=function(p,C,V,N){AA.call(this,p,0,void 0,C,!(N===void 0||!N));for(p=0;p1&&g.eG(new g.Bw("There are more than one engaged_view_urls.")), p.uM=LG.engagedViewUrls[0])}}var JN=p.playerResponse.playerCueRanges;JN&&JN.length>0&&(p.cueRanges=JN);var qf=p.playerResponse.playerCueRangeSet;qf&&g.wP(p,qf);a:{var I7=p.playerResponse.adPlacements;if(I7)for(var bX=g.F(I7),sn=bX.next();!sn.done;sn=bX.next()){var Aj=void 0,o7=void 0,aD=(Aj=sn.value.adPlacementRenderer)==null?void 0:(o7=Aj.renderer)==null?void 0:o7.videoAdTrackingRenderer;if(aD){var k4=aD;break a}}k4=null}var x4=k4;Hv&&Hv.promotedPlaybackTracking&&x4&&g.eG(new g.Bw("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); x4&&(p.YZ=!0);var Y4=p.playerResponse.playerAds;if(Y4)for(var oM=C,zw=g.F(Y4),En=zw.next();!En.done;En=zw.next()){var R7=En.value;if(R7){var nx=R7.playerLegacyDesktopWatchAdsRenderer;if(nx){var fX=nx.playerAdParams;if(fX){fX.autoplay=="1"&&(p.X4=!0,p.dP=!0);p.Ts=fX.encodedAdSafetyReason||null;fX.showContentThumbnail!==void 0&&(p.Ov=!!fX.showContentThumbnail);oM.enabled_engage_types=fX.enabledEngageTypes;break}}}}var uB=p.playerResponse.playerConfig;if(uB){var hx=uB.manifestlessWindowedLiveConfig; if(hx){var l7=Number(hx.minDvrSequence),t0=Number(hx.maxDvrSequence),me=Number(hx.minDvrMediaTimeMs),vC=Number(hx.maxDvrMediaTimeMs),FD=Number(hx.startWalltimeMs);l7&&(p.AE=l7);me&&(p.vr=me/1E3,p.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(p)&&(p.Tz=me/1E3));t0&&(p.Qx=t0);vC&&(p.YM=vC/1E3,p.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(p)&&(p.lf=vC/1E3));FD&&(p.qW=FD/1E3);(l7||me)&&(t0||vC)&&(p.Wr=!0,p.isLivePlayback=!0,p.allowLiveDvr=!0,p.EO=!1)}var OM=uB.daiConfig; if(OM){if(OM.enableDai){p.tE=!0;var eb=OM.enableServerStitchedDai;eb&&(p.enableServerStitchedDai=eb);var Pc=OM.enablePreroll;Pc&&(p.enablePreroll=Pc)}var wN;if(OM.daiType==="DAI_TYPE_SS_DISABLED"||((wN=OM.debugInfo)==null?0:wN.isDisabledUnpluggedChannel))p.qf=!0;OM.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(p.Ig=!0)}var xN=uB.audioConfig;if(xN){var ch=xN.loudnessDb;ch!=null&&(p.Gp=ch);var SV=xN.trackAbsoluteLoudnessLkfs;SV!=null&&(p.vX=SV);var $4=xN.loudnessTargetLkfs;$4!=null&&(p.loudnessTargetLkfs= $4);xN.audioMuted&&(p.tB=!0);xN.muteOnStart&&(p.eM=!0);var K5=xN.loudnessNormalizationConfig;if(K5){K5.applyStatefulNormalization&&(p.applyStatefulNormalization=!0);K5.preserveStatefulLoudnessTarget&&(p.preserveStatefulLoudnessTarget=!0);var kA=K5.minimumLoudnessTargetLkfs;kA!=null&&(p.minimumLoudnessTargetLkfs=kA);var Ld=K5.maxStatefulTimeThresholdSec;Ld!=null&&(p.maxStatefulTimeThresholdSec=Ld)}p.G("web_player_audio_playback_from_audio_config")&&xN.playAudioOnly&&(p.XT=!0)}var KQ=uB.playbackEndConfig; if(KQ){var nuj=KQ.endSeconds,e4S=KQ.limitedPlaybackDurationInSeconds;p.mutedAutoplay&&(nuj&&(p.endSeconds=nuj),e4S&&(p.limitedPlaybackDurationInSeconds=e4S))}var xA=uB.fairPlayConfig;if(xA){var PG9=xA.certificate;PG9&&(p.UY=Nn(PG9));var w8u=Number(xA.keyRotationPeriodMs);w8u>0&&(p.hI=w8u);var $oY=Number(xA.keyPrefetchMarginMs);$oY>0&&(p.m0=$oY)}var T0=uB.playbackStartConfig;if(T0){p.eE=Number(T0.startSeconds);var Lku=T0.liveUtcStartSeconds,guu=!!p.liveUtcStartSeconds&&p.liveUtcStartSeconds>0;Lku&& !guu&&(p.liveUtcStartSeconds=Number(Lku));var DL=T0.startPosition;if(DL){var WkY=DL.utcTimeMillis;WkY&&!guu&&(p.liveUtcStartSeconds=Number(WkY)*.001);var Qjv=DL.streamTimeMillis;Qjv&&(p.o6=Number(Qjv)*.001)}p.progressBarStartPosition=T0.progressBarStartPosition;p.progressBarEndPosition=T0.progressBarEndPosition}else{var uE=uB.skippableSegmentsConfig;if(uE){var ryu=uE.introSkipDurationMs;ryu&&(p.jS=Number(ryu)/1E3);var BnH=uE.outroSkipDurationMs;BnH&&(p.Gy=Number(BnH)/1E3)}}var ZL=uB.skippableIntroConfig; if(ZL){var GlY=Number(ZL.startMs),pB9=Number(ZL.endMs);isNaN(GlY)||isNaN(pB9)||(p.I5=GlY,p.hE=pB9)}var Cv9=uB.streamSelectionConfig;Cv9&&(p.I6=Number(Cv9.maxBitrate));var jrH=uB.vrConfig;jrH&&(p.fQ=jrH.partialSpherical=="1");var Lx=uB.webDrmConfig;if(Lx){Lx.skipWidevine&&(p.r8=!0);var V9Q=Lx.widevineServiceCert;V9Q&&(p.td=Nn(V9Q));Lx.useCobaltWidevine&&(p.useCobaltWidevine=!0);Lx.startWithNoQualityConstraint&&(p.Kq=!0)}var yr=uB.mediaCommonConfig;if(yr){var YA=yr.dynamicReadaheadConfig;if(YA){p.maxReadAheadMediaTimeMs= YA.maxReadAheadMediaTimeMs||NaN;p.minReadAheadMediaTimeMs=YA.minReadAheadMediaTimeMs||NaN;p.readAheadGrowthRateMs=YA.readAheadGrowthRateMs||NaN;var NOH,HR1=yr==null?void 0:(NOH=yr.mediaUstreamerRequestConfig)==null?void 0:NOH.videoPlaybackUstreamerConfig;HR1&&(p.TU=Nn(HR1));var Uw=yr==null?void 0:yr.sabrContextUpdates;if(Uw&&Uw.length>0)for(var XBS=g.F(Uw),fQ=XBS.next();!fQ.done;fQ=XBS.next()){var Dh=fQ.value;if(Dh.type&&Dh.value){var ZHp={type:Dh.type,scope:Dh.scope,value:Nn(Dh.value)||void 0,sendByDefault:Dh.sendByDefault}; p.sabrContextUpdates.set(Dh.type,ZHp)}}}var dDV=yr.serverPlaybackStartConfig;dDV&&(p.serverPlaybackStartConfig=dDV);yr.useServerDrivenAbr&&(p.Rt=!0);var iRv=yr.requestPipeliningConfig;iRv&&(p.requestPipeliningConfig=iRv)}var h0v=uB.inlinePlaybackConfig;h0v&&(p.CK=!!h0v.showAudioControls);var z5=uB.embeddedPlayerConfig;if(z5){p.embeddedPlayerConfig=z5;var Ow=z5.embeddedPlayerMode;if(Ow){var srH=p.K();srH.Sa=Ow;srH.V=Ow==="EMBEDDED_PLAYER_MODE_PFL"}var asv=z5.permissions;asv&&(p.allowImaMonetization= !!asv.allowImaMonetization)}var EZL=uB.ssapConfig;EZL&&(p.xV=EZL.ssapPrerollEnabled||!1);var RM=uB.webPlayerConfig;RM&&(RM.gatewayExperimentGroup&&(p.gatewayExperimentGroup=RM.gatewayExperimentGroup),RM.isProximaEligible&&(p.isProximaLatencyEligible=!0))}var qP=p.playerResponse.streamingData;if(qP){var yp=qP.formats;if(yp){for(var gN=[],lsY=g.F(yp),qu=lsY.next();!qu.done;qu=lsY.next()){var Im=qu.value;gN.push(Im.itag+"/"+Im.width+"x"+Im.height)}p.g1=gN.join(",");gN=[];for(var t9e=g.F(yp),bE=t9e.next();!bE.done;bE= t9e.next()){var Wc=bE.value,QE={itag:Wc.itag,type:Wc.mimeType,quality:Wc.quality},cnH=Wc.url;cnH&&(QE.url=cnH);var nf=Zy(Wc),UX5=nf.TT,fu2=nf.Kl,OH1=nf.s;nf.m7&&(QE.url=UX5,QE.sp=fu2,QE.s=OH1);gN.push(g.BX(QE))}p.jZ=gN.join(",")}var AS=qP.hlsFormats;if(AS){var TOS=uB||null,eK={};if(TOS){var om=TOS.audioPairingConfig;if(om&&om.pairs)for(var M9V=g.F(om.pairs),kz=M9V.next();!kz.done;kz=M9V.next()){var Jny=kz.value,xz=Jny.videoItag;eK[xz]||(eK[xz]=[]);eK[xz].push(Jny.audioItag)}}for(var mDe={},vZX=g.F(AS), Yz=vZX.next();!Yz.done;Yz=vZX.next()){var FQV=Yz.value;mDe[FQV.itag]=FQV.bitrate}for(var SN9=[],KQH=g.F(AS),zZ=KQH.next();!zZ.done;zZ=KQH.next()){var Qf=zZ.value,sE={itag:Qf.itag,type:Qf.mimeType,url:Qf.url,bitrate:Qf.bitrate,width:Qf.width,height:Qf.height,fps:Qf.fps},P_=Qf.audioTrack;if(P_){var DDv=P_.displayName;DDv&&(sE.name=DDv,sE.audio_track_id=P_.id,P_.audioIsDefault&&(sE.is_default="1"))}if(Qf.drmFamilies){for(var uNV=[],ZR9=g.F(Qf.drmFamilies),Rm=ZR9.next();!Rm.done;Rm=ZR9.next())uNV.push(a5[Rm.value]); sE.drm_families=uNV.join(",")}var ws=eK[Qf.itag];if(ws&&ws.length){sE.audio_itag=ws.join(",");var UDH=mDe[ws[0]];UDH&&(sE.bitrate+=UDH)}var fsS=DVs(Qf);fsS&&(sE.eotf=fsS);Qf.audioChannels&&(sE.audio_channels=Qf.audioChannels);SN9.push(g.BX(sE))}p.hlsFormats=SN9.join(",")}var nQ=qP.licenseInfos;if(nQ&&nQ.length>0){for(var ORa={},yn1=g.F(nQ),ec=yn1.next();!ec.done;ec=yn1.next()){var qNv=ec.value,Is1=qNv.drmFamily,bRS=qNv.url;Is1&&bRS&&(ORa[a5[Is1]]=bRS)}p.vV=ORa}var AnL=qP.drmParams;AnL&&(p.drmParams= AnL);var oZe=qP.dashManifestUrl;oZe&&(p.RN=g.GD(oZe,{cpn:p.clientPlaybackNonce}));var kxe=qP.hlsManifestUrl;kxe&&(p.hlsvp=kxe);var xDv=qP.probeUrl;xDv&&(p.probeUrl=iG(g.GD(xDv,{cpn:p.clientPlaybackNonce})));var YNv=qP.serverAbrStreamingUrl;YNv&&(p.gh=new g.v1(YNv,!0))}var z0s=p.playerResponse.trackingParams;z0s&&(p.Sa=z0s);var p_=p.playerResponse.videoDetails;if(p_){var a9=C,PA=p_.videoId;PA&&(p.videoId=PA,a9.video_id||(a9.video_id=PA));var R0s=p_.channelId;R0s&&(p.D.uid=R0s.substring(2));var wa= p_.title;wa&&(p.title=wa,a9.title||(a9.title=wa));var $z=p_.lengthSeconds;$z&&(p.lengthSeconds=Number($z),a9.length_seconds||(a9.length_seconds=$z));var nZe=p_.keywords;nZe&&(p.keywords=J5V(nZe));var LQ=p_.channelId;LQ&&(p.eI=LQ,a9.ucid||(a9.ucid=LQ));var e0u=p_.viewCount;e0u&&(p.rawViewCount=Number(e0u));var WA=p_.author;WA&&(p.author=WA,a9.author||(a9.author=WA));var PvX=p_.shortDescription;PvX&&(p.shortDescription=PvX);var wB9=p_.isCrawlable;wB9&&(p.isListed=wB9);var $Dj=p_.musicVideoType;$Dj&& (p.musicVideoType=$Dj);var Qp=p_.isLive;Qp!=null&&(p.isLivePlayback=Qp);if(Qp||p_.isUpcoming)p.isPremiere=!p_.isLiveContent;var LQH=p_.thumbnail;LQH&&(p.Z=ls(LQH));var gZ1=p_.isExternallyHostedPodcast;gZ1&&(p.isExternallyHostedPodcast=gZ1);var ra=p_.viewerLivestreamJoinPosition;if(ra==null?0:ra.utcTimeMillis)p.vA=h9(ra.utcTimeMillis);var WQj=uB||null,BA=C;p_.isLiveDefaultBroadcast&&(p.isLiveDefaultBroadcast=!0);p_.isUpcoming&&(p.isUpcoming=!0);if(p_.isPostLiveDvr){p.EO=!0;var Qre=p_.latencyClass; Qre&&(p.latencyClass=UOQ[Qre]||"UNKNOWN");p_.isLowLatencyLiveStream&&(p.isLowLatencyLiveStream=!0)}else{var GZ=!1;if(p.qo)p.allowLiveDvr=Bb()?!0:jz&&Lk<5?!1:!0,p.isLivePlayback=!0;else if(p_.isLive){BA.livestream="1";p.allowLiveDvr=p_.isLiveDvrEnabled?Bb()?!0:jz&&Lk<5?!1:!0:!1;p.partnerId=27;p_.isLowLatencyLiveStream&&(p.isLowLatencyLiveStream=!0);var BO1=p_.latencyClass;BO1&&(p.latencyClass=UOQ[BO1]||"UNKNOWN");var GxY=p_.liveChunkReadahead;GxY&&(p.liveChunkReadahead=GxY);var MQ=WQj&&WQj.livePlayerConfig; if(MQ){MQ.hasSubfragmentedFmp4&&(p.hasSubfragmentedFmp4=!0);MQ.hasSubfragmentedWebm&&(p.Wo=!0);MQ.defraggedFromSubfragments&&(p.defraggedFromSubfragments=!0);var pc1=MQ.liveExperimentalContentId;pc1&&(p.liveExperimentalContentId=Number(pc1));var CXe=MQ.isLiveHeadPlayable;p.G("html5_live_head_playable")&&CXe!=null&&(p.isLiveHeadPlayable=CXe)}GZ=!0}else p_.isUpcoming&&(GZ=!0);GZ&&(p.isLivePlayback=!0,BA.adformat&&BA.adformat.split("_")[1]!=="8"||p.Vn.push("heartbeat"),p.W8=!0)}var j7L=p_.isPrivate; j7L!==void 0&&(p.isPrivate=iO(p.isPrivate,j7L))}if(W){var Vbe=p_||null,NNS=!1,J0=W.errorScreen;NNS=J0&&(J0.playerLegacyDesktopYpcOfferRenderer||J0.playerLegacyDesktopYpcTrailerRenderer||J0.ypcTrailerRenderer)?!0:Vbe&&Vbe.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(W.status);if(!NNS){p.errorCode=Za1(W.errorCode)||"auth";var $A=J0&&J0.playerErrorMessageRenderer;if($A){p.playerErrorMessageRenderer=$A;var Hx1=$A.reason;Hx1&&(p.errorReason=g.uq(Hx1));var pi=$A.subreason;pi&&(p.Ck= g.uq(pi),p.QR=pi)}else p.errorReason=W.reason||null;var Ci=W.status;if(Ci==="LOGIN_REQUIRED")p.errorDetail="1";else if(Ci==="CONTENT_CHECK_REQUIRED")p.errorDetail="2";else if(Ci==="AGE_CHECK_REQUIRED"){var XcX=W.errorScreen,dfH=XcX&&XcX.playerKavRenderer;p.errorDetail=dfH&&dfH.kavUrl?"4":"3"}else p.errorDetail=W.isBlockedInRestrictedMode?"5":"0"}}var ix1=p.playerResponse.interstitialPods;ix1&&Ree(p,ix1);p.R$&&p.eventId&&(p.R$=Ek(p.R$,{ei:p.eventId}));var jR=p.playerResponse.captions;if(jR&&jR.playerCaptionsTracklistRenderer)a:{var EE= jR.playerCaptionsTracklistRenderer;p.captionTracks=[];if(EE.captionTracks)for(var hcV=g.F(EE.captionTracks),VY=hcV.next();!VY.done;VY=hcV.next()){var l4=VY.value,s71=c5v(l4.baseUrl);if(!s71)break a;var NH={is_translateable:!!l4.isTranslatable,languageCode:l4.languageCode,languageName:l4.name&&g.uq(l4.name),url:s71,vss_id:l4.vssId,kind:l4.kind};NH.name=l4.trackName;NH.displayName=l4.name&&g.uq(l4.name);p.captionTracks.push(new g.is(NH))}p.uj=EE.audioTracks||[];p.Rm=EE.defaultAudioTrackIndex||0;p.AI= [];if(EE.translationLanguages)for(var aZ9=g.F(EE.translationLanguages),Hm=aZ9.next();!Hm.done;Hm=aZ9.next()){var mc=Hm.value,Zh={};Zh.languageCode=mc.languageCode;Zh.languageName=g.uq(mc.languageName);if(mc.translationSourceTrackIndices){Zh.translationSourceTrackIndices=[];for(var E4V=g.F(mc.translationSourceTrackIndices),X$=E4V.next();!X$.done;X$=E4V.next())Zh.translationSourceTrackIndices.push(X$.value)}if(mc.excludeAudioTrackIndices){Zh.excludeAudioTrackIndices=[];for(var lZQ=g.F(mc.excludeAudioTrackIndices), dj=lZQ.next();!dj.done;dj=lZQ.next())Zh.excludeAudioTrackIndices.push(dj.value)}p.AI.push(Zh)}p.z2=[];if(EE.defaultTranslationSourceTrackIndices)for(var tbv=g.F(EE.defaultTranslationSourceTrackIndices),iy=tbv.next();!iy.done;iy=tbv.next())p.z2.push(iy.value);p.CA=!!EE.contribute&&!!EE.contribute.captionsMetadataRenderer}p.clipConfig=p.playerResponse.clipConfig;p.clipConfig&&p.clipConfig.startTimeMs!=null&&(p.eE=Number(p.clipConfig.startTimeMs)*.001);p.playerResponse&&p.playerResponse.playerConfig&& p.playerResponse.playerConfig.webPlayerConfig&&p.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&eeu(p,p.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var cj9;p.compositeLiveIngestionOffsetToken=(cj9=p.playerResponse.playbackTracking)==null?void 0:cj9.compositeLiveIngestionOffsetToken;var TNu;p.compositeLiveStatusToken=(TNu=p.playerResponse.playbackTracking)==null?void 0:TNu.compositeLiveStatusToken}nk(p,C);C.queue_info&&(p.queueInfo=C.queue_info);var Mba= C.hlsdvr;Mba!=null&&(p.allowLiveDvr=Number(Mba)===1?Bb()?!0:jz&&Lk<5?!1:!0:!1);p.adQueryId=C.ad_query_id||null;p.Ts||(p.Ts=C.encoded_ad_safety_reason||null);p.Fd=C.agcid||null;p.bj=C.ad_id||null;p.xu=C.ad_sys||null;p.Jw=C.encoded_ad_playback_context||null;p.tB=iO(p.tB,C.infringe||C.muted);p.jl=C.authkey;p.BM=C.authuser;p.mutedAutoplay=iO(p.mutedAutoplay,C&&C.playmuted);p.G("embeds_enable_full_length_inline_muted_autoplay")&&(p.mutedAutoplayDurationMode=sB(p.mutedAutoplayDurationMode,C&&C.muted_autoplay_duration_mode)); p.Ep=iO(p.Ep,C&&C.mutedautoplay);var Lf=C.length_seconds;Lf&&(p.lengthSeconds=typeof Lf==="string"?h9(Lf):Lf);if(p.isAd()||p.Kp||!g.cw(g.Ig(p.I$)))p.endSeconds=sB(p.endSeconds,p.Gy||C.end||C.endSeconds);else{var yb1=g.Ig(p.I$),gs=p.lengthSeconds;switch(yb1){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":gs>30?p.limitedPlaybackDurationInSeconds=30:gs<30&&gs>10&&(p.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":p.limitedPlaybackDurationInSeconds= gs*.2}}p.Sa=a_(p.Sa,C.itct);p.Zq=iO(p.Zq,C.noiba);p.ub=iO(p.ub,C.is_live_destination);p.isLivePlayback=iO(p.isLivePlayback,C.live_playback);p.enableServerStitchedDai=p.enableServerStitchedDai&&p.p4();C.isUpcoming&&(p.isUpcoming=iO(p.isUpcoming,C.isUpcoming));p.EO=iO(p.EO,C.post_live_playback);p.Wr&&(p.EO=!1);p.isMdxPlayback=iO(p.isMdxPlayback,C.mdx);var W_=C.mdx_control_mode;W_&&(p.mdxControlMode=typeof W_==="number"?W_:h9(W_));p.isInlinePlaybackNoAd=iO(p.isInlinePlaybackNoAd,C.is_inline_playback_no_ad); p.wy=sB(p.wy,C.reload_count);p.reloadReason=a_(p.reloadReason,C.reload_reason);p.Ov=iO(p.Ov,C.show_content_thumbnail);p.vx=iO(p.vx,C.utpsa);p.cycToken=C.cyc||null;p.ij=C.tkn||null;var JjH=Ej(C);Object.keys(JjH).length>0&&(p.Z=JjH);p.b_=a_(p.b_,C.vvt);p.mdxEnvironment=a_(p.mdxEnvironment,C.mdx_environment);C.source_container_playlist_id&&(p.sourceContainerPlaylistId=C.source_container_playlist_id);C.serialized_mdx_metadata&&(p.serializedMdxMetadata=C.serialized_mdx_metadata);p.ql=C.osig;p.eventId|| (p.eventId=C.eventid);p.osid||(p.osid=C.osid);p.playlistId=a_(p.playlistId,C.list);C.index&&(p.playlistIndex=p.playlistIndex===void 0?sB(0,C.index):sB(p.playlistIndex,C.index));p.FX=C.pyv_view_beacon_url;p.q0=C.pyv_quartile25_beacon_url;p.rT=C.pyv_quartile50_beacon_url;p.kc=C.pyv_quartile75_beacon_url;p.Jh=C.pyv_quartile100_beacon_url;var mfy=C.session_data;!p.pz&&mfy&&(p.pz=X5(mfy,"&").feature);p.isFling=sB(p.isFling?1:0,C.is_fling)===1;p.vnd=sB(p.vnd,C.vnd);p.forceAdsUrl=a_(p.forceAdsUrl,C.force_ads_url); p.wx=a_(p.wx,C.ctrl);p.eH=a_(p.eH,C.ytr);p.Bb=C.ytrcc;p.A0=C.ytrexp;p.AY=C.ytrext;p.Q$=a_(p.Q$,C.adformat);p.mU=a_(p.mU,C.attrib);p.slotPosition=sB(p.slotPosition,C.slot_pos);p.breakType=C.break_type;p.vK=iO(p.vK,C.ssrt);p.videoId=lO(C)||p.videoId;p.Y=a_(p.Y,C.vss_credentials_token);p.B_=a_(p.B_,C.vss_credentials_token_type);p.XT=iO(p.XT,C.audio_only);p.Wc=iO(p.Wc,C.aac_high);p.Mq=iO(p.Mq,C.prefer_low_quality_audio);p.pj=iO(p.pj,C.uncap_inline_quality);p.G("html5_enable_qoe_cat_list")?C.qoe_cat&& (p.cP=p.cP.concat(C.qoe_cat.split(","))):p.i8=a_(p.i8,C.qoe_cat);p.Om=iO(p.Om,C.download_media);var v49=C.prefer_gapless;var qQ8=v49!=null?iO(p.J,v49):p.J?p.J:p.I$.preferGapless&&p.I$.supportsGaplessShorts();p.J=qQ8;esL(p.playerResponse)&&(p.Vn.push("ad"),p.G("html5_ssap_pacf_qoe_ctmp")&&p.k_("ssap",{npa:0}));var FuX=C.adaptive_fmts;FuX&&(p.adaptiveFormats=FuX,p.k_("adpfmts",{},!0));var SJv=C.allow_embed;SJv&&(p.allowEmbed=Number(SJv)===1);var KuL=C.backgroundable;KuL&&(p.backgroundable=Number(KuL)=== 1);var Dfy=C.autonav;Dfy&&(p.isAutonav=Number(Dfy)===1);var uz9=C.autoplay;uz9&&(p.dP=Number(uz9)===1,p.X4=p.dP,P7(p,"c"));var ZxL=C.iv_load_policy;ZxL&&(p.annotationsLoadPolicy=hm(p.annotationsLoadPolicy,ZxL,bL));var Ufv=C.cc_lang_pref;Ufv&&(p.captionsLanguagePreference=a_(Ufv,p.captionsLanguagePreference));var fZV=C.cc_load_policy;fZV&&(p.FD=hm(p.FD,fZV,bL));var OxV;p.deviceCaptionsOn=(OxV=C.device_captions_on)!=null?OxV:void 0;var yjL;p.kV=(yjL=C.device_captions_lang_pref)!=null?yjL:"";var qJH; p.Dp=(qJH=C.viewer_selected_caption_langs)!=null?qJH:[];if(!p.G("html5_enable_ssap_entity_id")){var IZV=C.cached_load;IZV&&(p.WP=iO(p.WP,IZV))}if(C.dash==="0"||C.dash===0||C.dash===!1)p.Pv=!0;var bxy=C.dashmpd;bxy&&(p.RN=g.GD(bxy,{cpn:p.clientPlaybackNonce}));var AjX=C.delay;AjX&&(p.ER=h9(AjX));var hv=p.Gy||C.end;if(p.VZ?hv!=null:hv!=void 0)p.clipEnd=sB(p.clipEnd,hv);var o4y=C.fmt_list;o4y&&(p.g1=o4y);C.heartbeat_preroll&&p.Vn.push("heartbeat");p.Um=-Math.floor(Math.random()*10);p.JV=-Math.floor(Math.random()* 40);var kwS=C.is_listed;kwS&&(p.isListed=iO(p.isListed,kwS));var xfy=C.is_private;xfy&&(p.isPrivate=iO(p.isPrivate,xfy));var YJV=C.is_dni;YJV&&(p.UV=iO(p.UV,YJV));var zcX=C.dni_color;zcX&&(p.PP=a_(p.PP,zcX));var RcQ=C.pipable;RcQ&&(p.pipable=iO(p.pipable,RcQ));p.q8=p.pipable&&p.I$.QP;p.vM=p.q8&&!p.I$.showMiniplayerButton;var n4Y=C.paid_content_overlay_duration_ms;n4Y&&(p.paidContentOverlayDurationMs=h9(n4Y));var ecL=C.paid_content_overlay_text;ecL&&(p.paidContentOverlayText=ecL);var PXS=C.url_encoded_fmt_stream_map; PXS&&(p.jZ=PXS);var wcu=C.hls_formats;wcu&&(p.hlsFormats=wcu);var $fQ=C.hlsvp;$fQ&&(p.hlsvp=$fQ);var QB=C.live_start_walltime;QB&&(p.Ln=typeof QB==="number"?QB:h9(QB));var rs=C.live_manifest_duration;rs&&(p.gR=typeof rs==="number"?rs:h9(rs));var Luj=C.player_params;Luj&&(p.playerParams=Luj);var g4L=C.partnerid;g4L&&(p.partnerId=sB(p.partnerId,g4L));var Wuv=C.probe_url;Wuv&&(p.probeUrl=iG(g.GD(Wuv,{cpn:p.clientPlaybackNonce})));var sY=C.pyv_billable_url;sY&&Czv(sY)&&(p.uM=sY);var aG=C.pyv_conv_url; aG&&Czv(aG)&&(p.iB=aG);mOY(p,C);p.startSeconds>0?p.G("html5_log_start_seconds_inconsistency")&&p.startSeconds!==(p.eE||p.jS||C.start||C.startSeconds)&&p.k_("lss",{css:p.startSeconds,pcss:p.eE,iss:p.jS,ps:C.start||void 0,pss:C.startSeconds||void 0}):(p.startSeconds=sB(p.startSeconds,p.eE||p.jS||C.start||C.startSeconds),p.Hc=p.startSeconds);if(!(p.liveUtcStartSeconds&&p.liveUtcStartSeconds>0)){var Q7H=C.live_utc_start;if(Q7H!=null)p.liveUtcStartSeconds=Number(Q7H);else{var EY=p.startSeconds;EY&&isFinite(EY)&& EY>1E9&&(p.liveUtcStartSeconds=p.startSeconds)}}if(!(p.liveUtcStartSeconds&&p.liveUtcStartSeconds>0)){var rjL=C.utc_start_millis;rjL&&(p.liveUtcStartSeconds=Number(rjL)*.001)}var BNV=C.stream_time_start_millis;BNV&&(p.o6=Number(BNV)*.001);var ly=p.jS||C.start;(p.VZ?ly==null||Number(C.resume)===1:ly==void 0||C.resume=="1")||p.isLivePlayback||(p.clipStart=sB(p.clipStart,ly));var Gwa=C.url_encoded_third_party_media;Gwa&&(p.BI=hw(Gwa));var tv=C.ypc_offer_button_formatted_text;if(tv){var pjv=JSON.parse(tv); p.tY=pjv!=null?pjv:null;p.GH=tv}var CUH=C.ypc_offer_button_text;CUH&&(p.WA=CUH);var jke=C.ypc_offer_description;jke&&(p.Lw=jke);var V61=C.ypc_offer_headline;V61&&(p.LW=V61);var Nle=C.ypc_full_video_message;Nle&&(p.oa=Nle);var HV9=C.ypc_offer_id;HV9&&(p.Uh=HV9);var Xj9=C.ypc_buy_url;Xj9&&(p.zQ=Xj9);var drX=C.ypc_item_thumbnail;drX&&(p.iz=drX);var iVH=C.ypc_item_title;iVH&&(p.i6=iVH);var hRL=C.ypc_item_url;hRL&&(p.fW=hRL);var skS=C.ypc_vid;skS&&(p.Gf=skS);C.ypc_overlay_timeout&&(p.NG=Number(C.ypc_overlay_timeout)); var a51=C.ypc_trailer_player_vars;a51&&(p.KM=i1(a51));var ELe=C.ypc_original_itct;ELe&&(p.V3=ELe);p.eI=a_(p.eI,C.ucid);C.baseUrl&&(p.D.baseUrl=C.baseUrl);C.uid&&(p.D.uid=C.uid);C.oeid&&(p.D.oeid=C.oeid);C.ieid&&(p.D.ieid=C.ieid);C.ppe&&(p.D.ppe=C.ppe);C.engaged&&(p.D.engaged=C.engaged);C.subscribed&&(p.D.subscribed=C.subscribed);p.D.focEnabled=iO(p.D.focEnabled,C.focEnabled);p.D.rmktEnabled=iO(p.D.rmktEnabled,C.rmktEnabled);p.ra=C.storyboard_spec||null;p.Pj=C.live_storyboard_spec||null;p.zw=C.iv_endscreen_url|| null;p.zy=iO(p.zy,C.iv3_module);p.W8=iO(p.W8,C.ypc_license_checker_module);p.Pz=iO(p.Pz,C.ypc_module);p.qn=iO(p.qn,C.ypc_clickwrap_module);p.Pz&&p.Vn.push("ypc");p.qn&&p.Vn.push("ypc_clickwrap");p.PL={video_id:C.video_id,eventid:C.eventid,cbrand:C.cbrand,cbr:C.cbr,cbrver:C.cbrver,c:C.c,cver:C.cver,ctheme:C.ctheme,cplayer:C.cplayer,cmodel:C.cmodel,cnetwork:C.cnetwork,cos:C.cos,cosver:C.cosver,cplatform:C.cplatform,user_age:C.user_age,user_display_image:C.user_display_image,user_display_name:C.user_display_name, user_gender:C.user_gender,csi_page_type:C.csi_page_type,csi_service_name:C.csi_service_name,enablecsi:C.enablecsi,enabled_engage_types:C.enabled_engage_types};t3u(p,C);var l5a=C.cotn;l5a&&(p.cotn=l5a);if(fFs(p))gP(p)&&(p.isLivePlayback&&p.RN&&(p.AX=!0),p.UY&&(p.sx=!0));else if(OzQ(p))p.AX=!0;else{var TlQ,M6a,JKL=((TlQ=p.playerResponse)==null?void 0:(M6a=TlQ.streamingData)==null?void 0:M6a.adaptiveFormats)||[];if(JKL.length>0)var Bc=y5Y(p,JKL);else{var vLy=p.adaptiveFormats;if(vLy&&!gP(p)){W7(p,"html5_enable_cobalt_experimental_vp9_decoder")&& (D8=!0);var vh=Qs(vLy),cm=p.vV,FEv=p.lengthSeconds,IuF=p.isLivePlayback,Gw=p.EO,FX=p.I$,bHf=zhQ(vh);if(IuF||Gw){var S3j=FX==null?void 0:FX.experiments,YN=new hz("",S3j,!0);YN.p4=!0;YN.isManifestless=!0;YN.C=!Gw;YN.isLive=!Gw;YN.EO=Gw;for(var KEe=g.F(vh),Tg=KEe.next();!Tg.done;Tg=KEe.next()){var Si=Tg.value,Drv=lo(Si,cm),UX=tz(Si.url,Si.sp,Si.s),uOH=UX.get("id");uOH&&uOH.includes("%7E")&&(YN.Z=!0);var ZVQ=void 0,Abr=(ZVQ=S3j)==null?void 0:ZVQ.OY("html5_max_known_end_time_rebase"),oe0=Number(Si.target_duration_sec)|| 5,kN8=Number(Si.max_dvr_duration_sec)||14400,UrS=Number(UX.get("mindsq")||UX.get("min_sq")||"0"),f59=Number(UX.get("maxdsq")||UX.get("max_sq")||"0")||Infinity;YN.AE=YN.AE||UrS;YN.Qx=YN.Qx||f59;var xXF=!Xz(Drv.mimeType);UX&&X1(YN,new Lp(UX,Drv,{Ym:oe0,MO:xXF,nV:kN8,AE:UrS,Qx:f59,KQ:300,EO:Gw,nh:Abr}))}var OV9=YN}else{if(bHf==="FORMAT_STREAM_TYPE_OTF"){var G5=FEv;G5=G5===void 0?0:G5;var KS=new hz("",FX==null?void 0:FX.experiments,!1);KS.duration=G5||0;for(var yKu=g.F(vh),MH=yKu.next();!MH.done;MH=yKu.next()){var Da= MH.value,Jv=lo(Da,cm,KS.duration),m3=tz(Da.url,Da.sp,Da.s);if(m3)if(Jv.streamType==="FORMAT_STREAM_TYPE_OTF")X1(KS,new gz(m3,Jv,"sq/0"));else{var YQ8=uw(Da.init),zJp=uw(Da.index);X1(KS,new VM(m3,Jv,YQ8,zJp))}}KS.isOtf=!0;var q3v=KS}else{var pT=FEv;pT=pT===void 0?0:pT;var CT=new hz("",FX==null?void 0:FX.experiments,!1);CT.duration=pT||0;for(var I5H=g.F(vh),vm=I5H.next();!vm.done;vm=I5H.next()){var u7=vm.value,RJF=lo(u7,cm,CT.duration),ner=uw(u7.init),eJG=uw(u7.index),bVs=tz(u7.url,u7.sp,u7.s);bVs&& X1(CT,new VM(bVs,RJF,ner,eJG))}q3v=CT}OV9=q3v}var AK1=OV9;if(vh.length>0){var oLu=vh[0];if(p.K().playerStyle==="hangouts-meet"&&oLu.url){var P00=g.sk(oLu.url);p.lL=p.lL||Number(P00.expire)}}var wn2=p.isLivePlayback&&!p.EO&&!p.Wr&&!p.isPremiere;p.G("html5_live_head_playable")&&(!rP(p)&&wn2&&p.k_("missingLiveHeadPlayable",{}),p.I$.a$==="yt"&&(AK1.R$=!0));Bc=AK1}else Bc=null;p.k_("pafmts",{isManifestFilled:!!Bc})}if(Bc){B7(p,Bc);var kP1=!0}else kP1=!1;kP1?p.enableServerStitchedDai=p.enableServerStitchedDai&& Ge(p):p.RN&&(p.I$.a$==="yt"&&p.p4()&&p.G("drm_manifestless_unplugged")&&p.G("html5_deprecate_manifestful_fallback")?p.k_("deprecateMflFallback",{}):p.AX=!0)}var SR=C.adpings;SR&&(p.yR=SR?i1(SR):null);var xrY=C.feature;xrY&&(p.MR=xrY);var Y3u=C.referrer;Y3u&&(p.referrer=Y3u);p.clientScreenNonce=a_(p.clientScreenNonce,C.csn);p.uK=sB(p.uK,C.root_ve_type);p.Ic=sB(p.Ic,C.kids_age_up_mode);p.VZ||C.kids_app_info==void 0||(p.kidsAppInfo=C.kids_app_info);p.VZ&&C.kids_app_info!=null&&(p.kidsAppInfo=C.kids_app_info); p.Su=iO(p.Su,C.upg_content_filter_mode);p.unpluggedFilterModeType=sB(p.unpluggedFilterModeType,C.unplugged_filter_mode_type);var zRH=C.unplugged_location_info;zRH&&(p.a$=zRH);var RR1=C.unplugged_partner_opt_out;RR1&&(p.ym=a_("",RR1));p.SA=iO(p.SA,C.disable_watch_next);p.oi=a_(p.oi,C.internal_ip_override);p.E7=!!C.is_yto_interstitial;(p.interstitials.length||p.E7)&&p.Vn.push("yto");var nLQ=C.mm;nLQ&&(p.mm=nLQ);var eRv;p.Y_=(eRv=C.csi_timer)!=null?eRv:"";p.Q1=!!C.force_gvi;C.watchUrl&&(p.watchUrl=C.watchUrl); var f5=C.watch_endpoint;p.G("html5_attach_watch_endpoint_ustreamer_config")&&f5&&fYe(p,f5);if(f5==null?0:f5.ustreamerConfig)p.ac=Nn(f5.ustreamerConfig);var PUQ,wjX,$rX=f5==null?void 0:(PUQ=f5.loggingContext)==null?void 0:(wjX=PUQ.qoeLoggingContext)==null?void 0:wjX.serializedContextData;$rX&&(p.bl=$rX);g.KI(p.I$)&&p.I$.Ov&&(p.embedsRct=a_(p.embedsRct,C.rct),p.embedsRctn=a_(p.embedsRctn,C.rctn));p.Of=p.Of||!!C.pause_at_start;C.default_active_source_video_id&&(p.defaultActiveSourceVideoId=C.default_active_source_video_id)}; M39=function(p,C,V){var N,H=(N=C.cpnInfo)==null?void 0:N.cpn;p.playerResponseCpn=H!=null?H:"";g.pf(p)&&!H&&p.x8("ssei","eim_"+p.clientPlaybackNonce);var X;return((X=C.cacheMetadata)==null?0:X.isCacheHit)||p.WP||!H?"":(Cf.has(H)?V="":(C=qi9.push(H),Cf.add(H),C>(V!=null?V:50)&&(V=qi9.shift())&&Cf.delete(V),V=H),H!==V&&p.x8("ssei","dcpn_"+H+"_"+V+"_"+p.clientPlaybackNonce),V)}; nk=function(p,C){var V=C.raw_watch_next_response;if(!V){var N=C.watch_next_response;N&&(V=JSON.parse(N))}if(V){p.Ga=V;var H=p.Ga.playerCueRangeSet;H&&g.wP(p,H);var X=p.Ga.playerOverlays;if(X){var d=X.playerOverlayRenderer;if(d){var a=d.autonavToggle;a&&(p.autoplaySwitchButtonRenderer=g.n(a,IFS),p.G("web_player_autonav_use_server_provided_state")&&jK(p)&&(p.autonavState=p.autoplaySwitchButtonRenderer.enabled?2:1));var E=d.videoDetails;if(E){var l=E.embeddedPlayerOverlayVideoDetailsRenderer;var t=E.playerOverlayVideoDetailsRenderer; t&&(t.title&&(C.title=g.uq(t.title)),t.subtitle&&(C.subtitle=g.uq(t.subtitle)))}g.Oe(p.I$)&&(p.cV=!!d.addToMenu);bzY(p,d.shareButton);d.startPosition&&d.endPosition&&(p.progressBarStartPosition=d.startPosition,p.progressBarEndPosition=d.endPosition);var c=d.gatedActionsOverlayRenderer;c&&(p.lS=g.n(c,A59));var T,M,J,S=g.n((T=p.getWatchNextResponse())==null?void 0:(M=T.playerOverlays)==null?void 0:(J=M.playerOverlayRenderer)==null?void 0:J.infoPanel,o1L);if(S){p.Vw=Number(S==null?void 0:S.durationMs)|| NaN;if(S==null?0:S.infoPanelOverviewViewModel)p.W1=S==null?void 0:S.infoPanelOverviewViewModel;if(S==null?0:S.infoPanelDetailsViewModel)p.lM=S==null?void 0:S.infoPanelDetailsViewModel}p.showSeekingControls=!!d.showSeekingControls}}var D,Z,f=(D=p.getWatchNextResponse())==null?void 0:(Z=D.contents)==null?void 0:Z.twoColumnWatchNextResults;if(f){var q=f.desktopOverlay&&g.n(f.desktopOverlay,kvX);q&&(q.suppressShareButton&&(p.showShareButton=!1),q.suppressWatchLaterButton&&(p.cV=!1))}l&&xOQ(p,C,l);var A= sB(0,C.autoplay_count),z=p.getWatchNextResponse(),Q,P=(Q=z.contents)==null?void 0:Q.twoColumnWatchNextResults,VL,au,W,e=(VL=z.playerOverlays)==null?void 0:(au=VL.playerOverlayRenderer)==null?void 0:(W=au.autoplay)==null?void 0:W.playerOverlayAutoplayRenderer,B=w0V(p),v,w=(v=z.contents)==null?void 0:v.singleColumnWatchNextResults;if(w){var C0;if(((C0=w.autoplay)==null?0:C0.autoplay)&&!w.playlist){var FG=w.autoplay.autoplay.sets,Nc={},OS=new g.mx(p.K()),V8=null,Tp;if(FG){for(var Bv=g.F(FG),u=Bv.next();!u.done;u= Bv.next()){var U=u.value.autoplayVideoRenderer;if(U&&U.compactVideoRenderer){V8=U.compactVideoRenderer;break}}if(Tp=FG[0].autoplayVideo){var O=Tp.clickTrackingParams;O&&(Nc.itct=O);Nc.autonav="1";Nc.playnext=String(A)}}else Nc.feature="related-auto";var b=g.n(Tp,g.VB);if(V8){OS.videoId=V8.videoId;var x=V8.shortBylineText;x&&(OS.author=g.uq(x));var pY=V8.title;pY&&(OS.title=g.uq(pY))}else b!=null&&b.videoId&&(OS.videoId=b.videoId);OS.e9=Nc;p.suggestions=[];p.bv=OS}}if(B){for(var d1=[],Hv=g.F(B),k= Hv.next();!k.done;k=Hv.next()){var ES=k.value,my=void 0,i9=null;if(ES.endScreenVideoRenderer){var kH=ES.endScreenVideoRenderer,hf=kH.title;i9=new g.mx(p.K());i9.videoId=kH.videoId;i9.lengthSeconds=kH.lengthInSeconds||0;var RF=kH.publishedTimeText;RF&&(i9.publishedTimeText=g.uq(RF));var cy=kH.shortBylineText;cy&&(i9.author=g.uq(cy));var g1=kH.shortViewCountText;g1&&(i9.shortViewCount=g.uq(g1));if(hf){i9.title=g.uq(hf);var zt=hf.accessibility;if(zt){var El=zt.accessibilityData;El&&El.label&&(i9.ariaLabel= El.label)}}var zA=kH.navigationEndpoint;if(zA){my=zA.clickTrackingParams;var Rt=g.n(zA,g.VB),wI=g.n(zA,g.$0);Rt?i9.HO=Rt:wI!=null&&(i9.watchUrl=wI.url)}var Dz=kH.thumbnailOverlays;if(Dz)for(var L6=g.F(Dz),We=L6.next();!We.done;We=L6.next()){var $5=We.value.thumbnailOverlayTimeStatusRenderer;if($5)if($5.style==="LIVE"){i9.isLivePlayback=!0;break}else if($5.style==="UPCOMING"){i9.isUpcoming=!0;break}}i9.Z=ls(kH.thumbnail)}else if(ES.endScreenPlaylistRenderer){var M$=ES.endScreenPlaylistRenderer,k7= M$.navigationEndpoint;if(!k7)continue;var oX=g.n(k7,g.VB);if(!oX)continue;var T9=oX.videoId;i9=new g.JA(p.K());i9.playlistId=M$.playlistId;i9.playlistLength=Number(M$.videoCount)||0;i9.T=T9||null;i9.videoId=T9;var x7=M$.title;x7&&(i9.title=g.uq(x7));var Rs=M$.shortBylineText;Rs&&(i9.author=g.uq(Rs));my=k7.clickTrackingParams;i9.Z=ls(M$.thumbnail)}i9&&(my&&(i9.sessionData={itct:my}),d1.push(i9))}p.suggestions=d1}if(e){p.Rg=!!e.preferImmediateRedirect;p.d6=p.d6||!!e.webShowNewAutonavCountdown;p.JB= p.JB||!!e.webShowBigThumbnailEndscreen;if(p.d6||p.JB){var kN=P||null,hc=new g.mx(p.K());hc.videoId=e.videoId;var uK=e.videoTitle;if(uK){hc.title=g.uq(uK);var Hy=uK.accessibility;if(Hy){var ZK=Hy.accessibilityData;ZK&&ZK.label&&(hc.ariaLabel=ZK.label)}}var $Q=e.byline;$Q&&(hc.author=g.uq($Q));var Tt=e.publishedTimeText;Tt&&(hc.publishedTimeText=g.uq(Tt));var vc=e.shortViewCountText;vc&&(hc.shortViewCount=g.uq(vc));var Fz=e.thumbnailOverlays;if(Fz)for(var Sb=g.F(Fz),d3=Sb.next();!d3.done;d3=Sb.next()){var i4= d3.value.thumbnailOverlayTimeStatusRenderer;if(i4)if(i4.style==="LIVE"){hc.isLivePlayback=!0;break}else if(i4.style==="UPCOMING"){hc.isUpcoming=!0;break}else if(i4.style==="DEFAULT"&&i4.text){hc.lengthText=g.uq(i4.text);var Kx=i4.text.accessibility;if(Kx){var i7=Kx.accessibilityData;i7&&i7.label&&(hc.Bj=i7.label||"")}break}}hc.Z=ls(e.background);var h0=e.nextButton;if(h0){var DZ=h0.buttonRenderer;if(DZ){var uX=DZ.navigationEndpoint;if(uX){var ZZ=g.n(uX,g.VB);ZZ&&(hc.HO=ZZ)}}}if(e.topBadges){var UJ= e.topBadges[0];if(UJ){var fx=g.n(UJ,YiL);fx&&fx.style==="BADGE_STYLE_TYPE_PREMIUM"&&(hc.WcV=!0)}}var OJ=e.alternativeTitle;OJ&&(hc.B8=g.uq(OJ));var UM={autonav:"1",playnext:String(A)};hc.playlistId&&(UM.autoplay="1");if(kN){var bd,yE,Al,LG,JN=(bd=kN.autoplay)==null?void 0:(yE=bd.autoplay)==null?void 0:(Al=yE.sets)==null?void 0:(LG=Al[0])==null?void 0:LG.autoplayVideo;if(JN){var qf=JN.clickTrackingParams;qf&&(UM.itct=qf);var I7=g.n(JN,g.VB);I7&&(hc.aK=I7)}}else if(e){var bX,sn,Aj,o7=(bX=e.nextButton)== null?void 0:(sn=bX.buttonRenderer)==null?void 0:(Aj=sn.navigationEndpoint)==null?void 0:Aj.clickTrackingParams;o7&&(UM.itct=o7)}UM.itct||(UM.feature="related-auto");hc.e9=UM;p.suggestions||(p.suggestions=[]);p.bv=hc}e.countDownSecs!=null&&(p.JT=e.countDownSecs*1E3);e.countDownSecsForFullscreen!=null&&(p.SP=e.countDownSecsForFullscreen>=0?e.countDownSecsForFullscreen*1E3:-1);p.G("web_autonav_color_transition")&&e.watchToWatchTransitionRenderer&&(p.watchToWatchTransitionRenderer=g.n(e.watchToWatchTransitionRenderer, z5H))}var aD=w0V(p);if(aD){var k4,x4,Y4,oM=aD==null?void 0:(k4=aD[0])==null?void 0:(x4=k4.endScreenVideoRenderer)==null?void 0:(Y4=x4.navigationEndpoint)==null?void 0:Y4.clickTrackingParams,zw=g.NI(p);oM&&zw&&(zw.sessionData={itct:oM})}p.Ga.currentVideoThumbnail&&(p.Z=ls(p.Ga.currentVideoThumbnail));var En,R7,nx,fX,uB,hx=(En=p.Ga)==null?void 0:(R7=En.contents)==null?void 0:(nx=R7.twoColumnWatchNextResults)==null?void 0:(fX=nx.results)==null?void 0:(uB=fX.results)==null?void 0:uB.contents;if(hx&&hx[1]){var l7, t0,me,vC,FD=(l7=hx[1].videoSecondaryInfoRenderer)==null?void 0:(t0=l7.owner)==null?void 0:(me=t0.videoOwnerRenderer)==null?void 0:(vC=me.thumbnail)==null?void 0:vC.thumbnails;FD&&FD.length&&(p.profilePicture=FD[FD.length-1].url)}var OM=lO(C),eb,Pc=(eb=p.getWatchNextResponse())==null?void 0:eb.onResponseReceivedEndpoints;if(Pc)for(var wN=g.F(Pc),xN=wN.next();!xN.done;xN=wN.next()){var ch=xN.value;g.n(ch,H_)&&(p.i$=g.n(ch,H_));var SV=g.n(ch,R5L),$4=void 0;if(($4=SV)==null?0:$4.entityKeys)p.Rj=SV.entityKeys|| [],SV.visibleOnLoadKeys&&(p.visibleOnLoadKeys=SV.visibleOnLoadKeys)}if(p.G("web_key_moments_markers")){var K5=g.Xx.getState().entities,kA=g.cJ("visibility_override","markersVisibilityOverrideEntity");var Ld=Mg(K5,"markersVisibilityOverrideEntity",kA);p.Qn=(Ld==null?void 0:Ld.videoId)===(p.videoId||OM)&&(Ld==null?0:Ld.visibilityOverrideMarkersKey)?Ld.visibilityOverrideMarkersKey:p.visibleOnLoadKeys;p.visibleOnLoadKeys=[].concat(g.K(p.Qn))}}}; jK=function(p){var C;return((C=p.autoplaySwitchButtonRenderer)==null?void 0:C.enabled)!==void 0}; v1y=function(p){return p.G("html5_high_res_cpns_start_with_r")&&p.I$.Gk()?"r"+g.OI(15):g.OI(16)}; ds=function(p){return!!(p.V&&p.V.videoInfos&&p.V.videoInfos.length)}; g.aM=function(p){var C=p.J;p.G("html5_gapless_unlimit_format_selection")&&id(p)&&(C=!1);var V=!!p.T&&p.T.p4,N=p.I$,H=p.Ez(),X=hl(p),d=p.Wc,a=C,E=p.isOtf();C=p.dG();var l=p.qo,t=p.getUserAudio51Preference(),c=sW(p),T=new jd9(N);if(N.Gk()||N.G("html5_logging_format_selection"))T.C=!0;T.UY=X;T.Wc=d&&N.D;T.vr=t;g.gm("windows nt 5.1")&&!g.k$&&(T.Oi=!0);if(X=H)X=g.Wg(N)?jYj(N):!1;X&&(T.sY=!0);a&&(T.Oi=!0,T.VZ=!0);E&&!N.G("html5_otf_prefer_vp9")&&(T.Oi=!0);N.playerStyle==="picasaweb"&&(E&&(T.Oi=!1),T.Vn= !1);l&&(T.Oi=!0);Je(N.W,mw.CHANNELS)&&(N.G("html5_enable_aac51")&&(T.b_=!0),N.G("html5_enable_ac3")&&(T.S=!0),N.G("html5_enable_eac3")&&(T.W=!0),N.G("html5_enable_ac3_gapless")&&(T.Ga=!0));N.G("html5_block_8k_hfr")&&(T.Qn=!0);T.Y=g.mi(N.experiments,"html5_max_selectable_quality_ordinal");T.D=g.mi(N.experiments,"html5_min_selectable_quality_ordinal");rB&&(T.wy=480);if(V||H)T.Vn=!1;T.qo=!1;T.disableAv1=c;V=U6(N,T.T,void 0,T.disableAv1);V>0&&V<2160&&(rN()||N.G("html5_format_hybridization"))&&(T.T.supportsChangeType= +rN(),T.Tp=V);V>=2160&&(T.Wr=!0);OFu()&&(T.T.serveVp9OverAv1IfHigherRes=0,T.va=!1);T.dG=C;T.R$=g.G4||XW()&&!C?!1:!0;T.J=N.G("html5_format_hybridization");T.ER=N.G("html5_disable_encrypted_vp9_live_non_2k_4k");$B(p)&&(T.qW=p.G("html5_prefer_language_over_codec"));rm()&&p.playerResponse&&p.playerResponse.playerConfig&&p.playerResponse.playerConfig.webPlayerConfig&&p.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(T.S=!0,T.W=!0);p.J&&p.isAd()&&(p.Mc&&(T.a$=p.Mc),p.Qt&&(T.V= p.Qt));T.Y_=p.isLivePlayback&&p.O8()&&p.I$.G("html5_drm_live_audio_51");T.kM=p.Yu;return p.f9=T}; sW=function(p){return p.I$.G("html5_disable_av1")||p.G("html5_gapless_shorts_disable_av1")&&id(p)?!0:!1}; n1v=function(p){NR("drm_pb_s",void 0,p.Y_);p.UY||p.T&&l5(p.T);var C={};p.T&&(C=RqH(p.VR,g.aM(p),p.I$.W,p.T,function(V){return p.publish("ctmp","fmtflt",V)},!0,new Set)); C=new eO(C,p.I$,p.r8,p.useCobaltWidevine?rm()?EW(p):!1:!1,function(V,N){p.k_(V,N)}); g.R(p,C);p.sx=!1;p.loading=!0;ldV(C,function(V){NR("drm_pb_f",void 0,p.Y_);for(var N=g.F(V),H=N.next();!H.done;H=N.next())switch(H=H.value,H.flavor){case "fairplay":H.UY=p.UY;H.hI=p.hI;H.m0=p.m0;break;case "widevine":H.td=p.td}p.Ox=V;if(p.Ox.length>0&&(p.W=p.Ox[0],p.I$.Gk())){V={};N=g.F(Object.entries(p.W.T));for(H=N.next();!H.done;H=N.next()){var X=g.F(H.value);H=X.next().value;X=X.next().value;var d="unk";(H=H.match(/(.*)codecs="(.*)"/))&&(d=H[2]);V[d]=X}p.k_("drmProbe",V)}RI(p)})}; y5Y=function(p,C){if(C.length===0||gP(p))return null;W7(p,"html5_enable_cobalt_experimental_vp9_decoder")&&(D8=!0);var V=p.vV;var N=p.lengthSeconds,H=p.isLivePlayback,X=p.EO,d=p.I$,a=RhX(C);if(H||X){d=d.experiments;N=new hz("",d,!0);N.C=!X;N.p4=!0;N.isManifestless=!0;N.isLive=!X;N.EO=X;C=g.F(C);for(H=C.next();!H.done;H=C.next()){var E=H.value;H=E6(E,V);a=Zy(E);a=tz(a.TT||E.url||"",a.Kl,a.s);var l=a.get("id");l&&l.includes("%7E")&&(N.Z=!0);var t=void 0;l=(t=d)==null?void 0:t.OY("html5_max_known_end_time_rebase"); t=Number(E.targetDurationSec||5);E=Number(E.maxDvrDurationSec||14400);var c=Number(a.get("mindsq")||a.get("min_sq")||"0"),T=Number(a.get("maxdsq")||a.get("max_sq")||"0")||Infinity;N.AE=N.AE||c;N.Qx=N.Qx||T;var M=!Xz(H.mimeType);a&&X1(N,new Lp(a,H,{Ym:t,MO:M,nV:E,AE:c,Qx:T,KQ:300,EO:X,nh:l}))}V=N}else if(a==="FORMAT_STREAM_TYPE_OTF"){N=N===void 0?0:N;X=new hz("",d.experiments,!1);X.duration=N||0;d=g.F(C);for(N=d.next();!N.done;N=d.next())N=N.value,C=E6(N,V,X.duration),H=Zy(N),(H=tz(H.TT||N.url||"", H.Kl,H.s))&&(C.streamType==="FORMAT_STREAM_TYPE_OTF"?X1(X,new gz(H,C,"sq/0")):X1(X,new VM(H,C,U9(N.initRange),U9(N.indexRange))));X.isOtf=!0;V=X}else{N=N===void 0?0:N;X=new hz("",d.experiments,!1);X.duration=N||0;d=g.F(C);for(N=d.next();!N.done;N=d.next())a=N.value,N=E6(a,V,X.duration),C=U9(a.initRange),H=U9(a.indexRange),l=Zy(a),(a=tz(l.TT||a.url||"",l.Kl,l.s))&&X1(X,new VM(a,N,C,H));V=X}X=p.isLivePlayback&&!p.EO&&!p.Wr&&!p.isPremiere;p.G("html5_live_head_playable")&&(!rP(p)&&X&&p.k_("missingLiveHeadPlayable", {}),p.I$.a$==="yt"&&(V.R$=!0));return V}; gP=function(p){return rm()?!EW(p):GQ()?!(!p.UY||!p.G("html5_enable_safari_fairplay")&&Bb()):!1}; EW=function(p){return p.G("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.wP=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next())if(V=V.value,V.cueRangeSetIdentifier){var N=void 0;p.It.set(V.cueRangeSetIdentifier,(N=V.playerCueRanges)!=null?N:[])}}; Ge=function(p){return!(!p.T||!p.T.isManifestless)}; ld=function(p){return p.VZ?p.isLowLatencyLiveStream&&p.T!=null&&Jz(p.T)>=5:p.isLowLatencyLiveStream&&p.T!=void 0&&Jz(p.T)>=5}; fFs=function(p){return rm()&&EW(p)?!1:gP(p)&&(g.qz(p.I$)?!p.isLivePlayback:p.hlsvp)||!Bb()||p.Pv?!0:!1}; Pty=function(p){p.loading=!0;p.AX=!1;if(OzQ(p))g.CtL(p.videoId).then(function(N){e5u(p,N)}).then(function(){RI(p)}); else{XY(p.RN)||g.eG(new g.Bw("DASH MPD Origin invalid: ",p.RN));var C=p.RN,V=g.mi(p.I$.experiments,"dash_manifest_version")||4;C=g.GD(C,{mpd_version:V});p.isLowLatencyLiveStream&&p.latencyClass!=="NORMAL"||(C=g.GD(C,{pacing:0}));WL1(C,p.I$.experiments,p.isLivePlayback).then(function(N){p.fS()||(B7(p,N,!0),NR("mrc",void 0,p.Y_),RI(p))},function(N){p.fS()||(p.loading=!1,p.publish("dataloaderror",new qD("manifest.net.retryexhausted",{backend:"manifest", rc:N.status},1)))}); NR("mrs",void 0,p.Y_)}}; e5u=function(p,C){var V=C.map(function(E){return E.itag}),N; if((N=p.playerResponse)!=null&&N.streamingData){N=[];if(p.G("html5_offline_always_use_local_formats")){V=0;for(var H=g.F(C),X=H.next();!X.done;X=H.next()){X=X.value;var d=Object.assign({},X);d.signatureCipher="";N.push(d);d=g.F(p.playerResponse.streamingData.adaptiveFormats);for(var a=d.next();!a.done;a=d.next())if(a=a.value,X.itag===a.itag&&X.xtags===a.xtags){V+=1;break}}Vt&&(t=M.getInfo().audio.numChannels)}t>2&&p.k_("hlschl",{mn:t});var D;((D=p.f9)==null?0:D.C)&&p.k_("hlsfmtaf",{itags:c.join(".")});var Z;if(p.G("html5_enable_vp9_fairplay")&&((Z=p.W)==null?0:Az(Z)))for(p.k_("drm",{sbdlfbk:1}),t=g.F(p.Ox),c=t.next();!c.done;c=t.next())if(c=c.value,bo(c)){p.W=c;break}T5(p,l)})}return xD()}; WZX=function(p){if(p.isExternallyHostedPodcast&&p.jZ){var C=Qs(p.jZ);if(!C[0])return xD();p.r_=C[0];return D3j(p.I$,C[0]).then(function(V){T5(p,V)})}return p.BI&&p.E6?KHy(p.I$,p.isAd(),p.BI).then(function(V){T5(p,V)}):xD()}; r59=function(p){if(p.isExternallyHostedPodcast)return xD();var C=Qs(p.jZ,p.g1);if(p.hlsvp){var V=aFV(p.hlsvp,p.clientPlaybackNonce,p.I6);C.push(V)}return SAj(p.I$,p.isAd(),C,QHe(p)).then(function(N){T5(p,N)})}; $Ov=function(p,C){p.V=C;if(p.V){C=g.F(p.V.videoInfos);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=V.containerType;N!==0&&(p.Wv[N]=V.id)}}MI(p);if(p.W&&p.V&&p.V.videoInfos&&!(p.V.videoInfos.length<=0)&&(C=jb(p.V.videoInfos[0]),p.W.flavor==="fairplay"!==C))for(V=g.F(p.Ox),N=V.next();!N.done;N=V.next())if(N=N.value,C===(N.flavor==="fairplay")){p.W=N;break}}; T5=function(p,C){p.FO=C;$Ov(p,new i5(g.AU(p.FO,function(V){return V.getInfo()})))}; QHe=function(p){var C={cpn:p.clientPlaybackNonce,c:p.I$.T.c,cver:p.I$.T.cver};p.jL&&(C.ptk=p.jL,C.oid=p.LI,C.ptchn=p.WL,C.pltype=p.NU,p.E5&&(C.m=p.E5));return C}; g.Jl=function(p){return gP(p)&&p.UY?(p={},p.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",p):p.C&&p.C.vV||null}; Bre=function(p){var C=mJ(p);return C&&C.text?g.uq(C.text):p.paidContentOverlayText}; Gva=function(p){var C=mJ(p);return C&&C.durationMs?h9(C.durationMs):p.paidContentOverlayDurationMs}; mJ=function(p){var C,V,N;return p.playerResponse&&p.playerResponse.paidContentOverlay&&p.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.n((C=p.Ga)==null?void 0:(V=C.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:N.playerDisclosure,p1s)||null}; v_=function(p){var C="";if(p.fn)return p.fn;p.isLivePlayback&&(C=p.allowLiveDvr?"dvr":p.isPremiere?"lp":p.Wr?"window":"live");p.EO&&(C="post");return C}; g.Fx=function(p,C){return typeof p.keywords[C]!=="string"?null:p.keywords[C]}; C51=function(p){return!!p.uM||!!p.eD||!!p.Hn||!!p.Zw||p.YZ||p.D.focEnabled||p.D.rmktEnabled}; g.SK=function(p){return!!(p.RN||p.jZ||p.BI||p.hlsvp||p.Ar())}; ze=function(p){if(p.G("html5_onesie")&&p.errorCode)return!1;var C=g.W5(p.Vn,"ypc");p.ypcPreview&&(C=!1);return p.GN()&&!p.loading&&(g.SK(p)||g.W5(p.Vn,"heartbeat")||C)}; Qs=function(p,C){p=hw(p);var V={};if(C){C=g.F(C.split(","));for(var N=C.next();!N.done;N=C.next())(N=N.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(V[N[1]]={width:N[2],height:N[3]})}C=g.F(p);for(N=C.next();!N.done;N=C.next()){N=N.value;var H=V[N.itag];H&&(N.width=H.width,N.height=H.height)}return p}; MI=function(p){var C=p.getAvailableAudioTracks();C=C.concat(p.Uv);for(var V=0;V0:C||p.adFormat!=="17_8"||p.isAutonav||g.LI(p.I$)||p.dP?p.FT?!1:p.I$.qn||p.I$.hg||!g.KI(p.I$)?!C&&B_(p)==="adunit"&&p.uM?!1:!0:!1:!1:(p.FT?0:p.va)&&g.KI(p.I$)?!0:!1;p.G("html5_log_detailpage_autoplay")&&B_(p)==="detailpage"&&p.k_("autoplay_info",{autoplay:p.X4,autonav:p.isAutonav,result:C});return C}; g.XE=function(p){return p.oauthToken||p.I$.Nw}; tov=function(p){if(p.G("html5_stateful_audio_normalization")){var C=1,V=g.mi(p.I$.experiments,"html5_default_ad_gain");V&&p.isAd()&&(C=V);var N;if(V=((N=p.S)==null?void 0:N.audio.C)||p.vX){N=(0,g.Ip)();p.rj=2;var H=N-p.I$.gR<=p.maxStatefulTimeThresholdSec*1E3;p.applyStatefulNormalization&&H?p.rj=4:H||(p.I$.lM=Infinity,p.I$.gR=NaN);H=(p.rj===4?g.J9(p.I$.lM,p.minimumLoudnessTargetLkfs,p.loudnessTargetLkfs):p.loudnessTargetLkfs)-V;if(p.rj!==4){var X,d,a,E,l=((X=p.playerResponse)==null?void 0:(d=X.playerConfig)== null?void 0:(a=d.audioConfig)==null?void 0:(E=a.loudnessNormalizationConfig)==null?void 0:E.statelessLoudnessAdjustmentGain)||0;H+=l}H=Math.min(H,0);p.preserveStatefulLoudnessTarget&&(p.I$.lM=V+H,p.I$.gR=N);p=Math.min(1,Math.pow(10,H/20))||C}else p=lyH(p)}else p=lyH(p);return p}; lyH=function(p){var C=1,V=g.mi(p.I$.experiments,"html5_default_ad_gain");V&&p.isAd()&&(C=V);var N;if(V=((N=p.S)==null?void 0:N.audio.V)||p.Gp)p.rj=1;return Math.min(1,Math.pow(10,-V/20))||C}; hl=function(p){var C=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],V=Lb(p.I$)==="TVHTML5_SIMPLY"&&p.I$.T.ctheme==="MUSIC";p.XT||!g.gk(p.I$)&&!V||!C.includes(p.musicVideoType)&&!p.isExternallyHostedPodcast||(p.XT=!0);if(C=g.Qg())C=/Starboard\/([0-9]+)/.exec(g.f0()),C=(C?parseInt(C[1],10):NaN)<10;V=p.I$;V=(Lb(V)==="TVHTML5_CAST"||Lb(V)==="TVHTML5"&&(V.T.cver.startsWith("6.20130725")||V.T.cver.startsWith("6.20130726")))&&p.I$.T.ctheme==="MUSIC";var N;if(N=!p.XT)V||(V=p.I$,V=Lb(V)=== "TVHTML5"&&V.T.cver.startsWith("7")),N=V;N&&!C&&(C=p.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",V=(p.G("cast_prefer_audio_only_for_atv_and_uploads")||p.G("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&p.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",C||V||p.isExternallyHostedPodcast)&&(p.XT=!0);return p.I$.deviceIsAudioOnly||p.XT&&p.I$.D}; db=function(p){var C,V,N;return!!((C=p.playerResponse)==null?0:(V=C.playerConfig)==null?0:(N=V.mediaCommonConfig)==null?0:N.splitScreenEligible)}; ceV=function(p){var C;return!((C=p.playerResponse)==null||!C.compositePlayabilityStatus)}; THj=function(p){return isNaN(p)?0:Math.max((Date.now()-p)/1E3-30,0)}; ix=function(p){return!(!p.Om||!p.I$.D)&&p.Ar()}; MoX=function(p){return p.enablePreroll&&p.enableServerStitchedDai}; Jej=function(p){return p.G("html5_enable_sabr_from_watch_server")&&p.Rt&&!p.gh}; mij=function(p){return p.G("html5_enable_sabr_live_captions")&&p.p4()&&!1}; $B=function(p){if(p.RJ||p.G("html5_restrict_sabr_to_yt_namespace")&&p.I$.a$!=="yt"||p.cotn||!p.T||p.T.isOtf||p.Ig&&!p.G("html5_enable_sabr_csdai"))return!1;if(p.G("html5_use_sabr_requests_for_debugging"))return!0;if(p.G("html5_enable_sabr_from_watch_server")){var C=p.Rt&&!!p.gh;if(!p.G("html5_combine_client_check_for_sabr"))return C;if(C)return!0;p.x8("sabr","esfc")}var V=!p.T.p4&&!p.O8();C=V&&gB&&p.G("html5_enable_sabr_vod_streaming_xhr");V=V&&!gB&&p.G("html5_enable_sabr_vod_non_streaming_xhr"); var N=h_(p),H=p.G("html5_enable_sabr_drm_vod_streaming_xhr")&&gB&&p.O8()&&!p.T.p4&&(p.K$==="1"?!1:!0);(C=C||V||N||H)&&!p.gh&&p.k_("sabr",{loc:"m"},!0);return C&&!!p.gh}; h_=function(p){var C;if(!(C=gB&&p.p4()&&p.O8()&&(p.K$==="1"?!1:!0)&&p.G("html5_sabr_live_drm_streaming_xhr"))){C=p.p4()&&!p.O8()&&gB;var V=p.p4()&&p.latencyClass!=="ULTRALOW"&&!p.isLowLatencyLiveStream&&p.G("html5_sabr_live_normal_latency_streaming_xhr"),N=p.isLowLatencyLiveStream&&p.G("html5_sabr_live_low_latency_streaming_xhr"),H=p.latencyClass==="ULTRALOW"&&p.G("html5_sabr_live_ultra_low_latency_streaming_xhr");C=C&&(V||N||H)}V=C;C=p.enableServerStitchedDai&&V&&p.G("html5_enable_sabr_ssdai_streaming_xhr"); V=!p.enableServerStitchedDai&&V;N=p.p4()&&!gB&&p.G("html5_enable_sabr_live_non_streaming_xhr");p=gB&&(p.VL()||db(p)&&p.G("html5_enable_sabr_for_lifa_eligible_streams"));return C||V||N||p}; g.pf=function(p){return p.xV&&$B(p)}; OzQ=function(p){var C;if(C=!!p.cotn)C=p.videoId,C=!!C&&g.Db(C)===1;return C&&!p.Om}; g.s5=function(p){if(!p.T||!p.C||!p.S)return!1;var C=p.T.T,V=!!C[p.C.id]&&Kw(C[p.C.id].sR.T);C=!!C[p.S.id]&&Kw(C[p.S.id].sR.T);return(p.C.itag==="0"||V)&&C}; a$=function(p){return p.eg?["OK","LIVE_STREAM_OFFLINE"].includes(p.eg.status):!0}; X1s=function(p){return(p=p.JW)&&p.showError?p.showError:!1}; W7=function(p,C){return p.G(C)?!0:(p.fflags||"").includes(C+"=true")}; Sie=function(p){return p.G("html5_heartbeat_iff_heartbeat_params_filled")}; mOY=function(p,C){C.inlineMetricEnabled&&(p.inlineMetricEnabled=!0);C.playback_progress_0s_url&&(p.Zw=new LH1(C));if(C=C.video_masthead_ad_quartile_urls)p.eD=C.quartile_0_url,p.D6=C.quartile_25_url,p.BL=C.quartile_50_url,p.tC=C.quartile_75_url,p.YP=C.quartile_100_url,p.Hn=C.quartile_0_urls,p.Za=C.quartile_25_urls,p.T2=C.quartile_50_urls,p.nj=C.quartile_75_urls,p.qq=C.quartile_100_urls}; J5V=function(p){var C={};p=g.F(p);for(var V=p.next();!V.done;V=p.next()){V=V.value;var N=V.split("=");N.length===2?C[N[0]]=N[1]:C[V]=!0}return C}; c5v=function(p){if(p){if(Hmy(p))return p;p=XQ9(p);if(Hmy(p,!0))return p}return""}; g.vgS=function(p){return p.captionsLanguagePreference||p.I$.captionsLanguagePreference||g.Fx(p,"yt:cc_default_lang")||p.I$.ER}; E5=function(p){return!(!p.isLivePlayback||!p.hasProgressBarBoundaries())}; g.NI=function(p){var C;return p.bv||((C=p.suggestions)==null?void 0:C[0])||null}; g.lx=function(p){return p.UV&&(p.G("embeds_enable_pfp_always_unbranded")||p.I$.Vz)}; P7=function(p,C){p.G("html5_log_autoplay_src")&&id(p)&&p.k_("apsrc",{src:C})}; g.t_=function(p){var C,V;return!!((C=p.embeddedPlayerConfig)==null?0:(V=C.embeddedPlayerFlags)==null?0:V.enableMusicUx)}; g.TC=function(p){var C=p.K(),V=g.ck(C),N=C.X$;(C.G("embeds_web_enable_iframe_api_send_full_embed_url")||C.G("embeds_web_enable_rcat_validation_in_havs")||C.G("embeds_enable_autoplay_and_visibility_signals"))&&g.Oe(C)&&(N&&(V.thirdParty=Object.assign({},V.thirdParty,{embedUrl:N})),qrS(V,p));if(N=p.Sa)V.clickTracking={clickTrackingParams:N};N=V.client||{};var H="EMBED",X=B_(p);X==="leanback"?H="WATCH":C.G("gvi_channel_client_screen")&&X==="profilepage"?H="CHANNEL":p.qo?H="LIVE_MONITOR":X==="detailpage"? H="WATCH_FULL_SCREEN":X==="adunit"?H="ADUNIT":X==="sponsorshipsoffer"&&(H="UNKNOWN");N.clientScreen=H;if(C=p.kidsAppInfo)N.kidsAppInfo=JSON.parse(C);(H=p.Ic)&&!C&&(N.kidsAppInfo={contentSettings:{ageUpMode:Fwa[H]}});if(C=p.Su)N.unpluggedAppInfo={enableFilterMode:!0};(H=p.unpluggedFilterModeType)&&!C&&(N.unpluggedAppInfo={filterModeType:ScY[H]});if(C=p.a$)N.unpluggedLocationInfo=C;V.client=N;N=V.request||{};p.QZ&&(N.isPrefetch=!0);if(C=p.mdxEnvironment)N.mdxEnvironment=C;if(C=p.mdxControlMode)N.mdxControlMode= KwS[C];V.request=N;N=V.user||{};if(C=p.b_)N.credentialTransferTokens=[{token:C,scope:"VIDEO"}];if(C=p.X$)N.delegatePurchases={oauthToken:C},N.kidsParent={oauthToken:C};V.user=N;if(N=p.contextParams)V.activePlayers=[{playerContextParams:N}];if(p=p.clientScreenNonce)V.clientScreenNonce=p;return V}; g.ck=function(p){var C=g.Za(),V=C.client||{};if(p.forcedExperiments){var N=p.forcedExperiments.split(","),H=[];N=g.F(N);for(var X=N.next();!X.done;X=N.next())H.push(Number(X.value));V.experimentIds=H}if(H=p.homeGroupInfo)V.homeGroupInfo=JSON.parse(H);if(H=p.getPlayerType())V.playerType=H;if(H=p.T.ctheme)V.theme=H;if(H=p.livingRoomAppMode)V.tvAppInfo=Object.assign({},V.tvAppInfo,{livingRoomAppMode:H});H=p.deviceYear;p.G("html5_propagate_device_year")&&H&&(V.tvAppInfo=Object.assign({},V.tvAppInfo,{deviceYear:H})); if(H=p.livingRoomPoTokenId)V.tvAppInfo=Object.assign({},V.tvAppInfo,{livingRoomPoTokenId:H});C.client=V;V=C.user||{};p.enableSafetyMode&&(V=Object.assign({},V,{enableSafetyMode:!0}));p.pageId&&(V=Object.assign({},V,{onBehalfOfUser:p.pageId}));C.user=V;V=p.X$;p.G("embeds_web_enable_iframe_api_send_full_embed_url")||p.G("embeds_web_enable_rcat_validation_in_havs")||p.G("embeds_enable_autoplay_and_visibility_signals")||!V||(C.thirdParty={embedUrl:V});return C}; Ow1=function(p,C,V){var N=p.videoId,H=g.TC(p),X=p.K(),d={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(bV()),referer:document.location.toString(),signatureTimestamp:20073};g.$l();p.isAutonav&&(d.autonav=!0);g.LK(0,141)&&(d.autonavState=g.LK(0,140)?"STATE_OFF":"STATE_ON");d.autoCaptionsDefaultOn=g.LK(0,66);Hk(p)&&(d.autoplay=!0);X.D&&p.cycToken&&(d.cycToken=p.cycToken);X.enablePrivacyFilter&&(d.enablePrivacyFilter=!0);p.isFling&&(d.fling=!0);var a=p.forceAdsUrl;if(a){var E={},l=[];a=a.split(","); a=g.F(a);for(var t=a.next();!t.done;t=a.next()){t=t.value;var c=t.split("|");c.length!==3||t.includes("=")||(c[0]="breaktype="+c[0],c[1]="offset="+c[1],c[2]="url="+c[2]);t={adtype:"video_ad"};c=g.F(c);for(var T=c.next();!T.done;T=c.next()){var M=g.F(T.value.split("="));T=M.next().value;M=HY9(M);t[T]=M.join("=")}c=t.url;T=t.presetad;M=t.viralresponseurl;var J=Number(t.campaignid);if(t.adtype==="in_display_ad")c&&(E.url=c),T&&(E.presetAd=T),M&&(E.viralAdResponseUrl=M),J&&(E.viralCampaignId=String(J)); else if(t.adtype==="video_ad"){var S={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(t.offset)||0)}};if(t=Di9[t.breaktype])S.breakType=t;c&&(S.url=c);T&&(S.presetAd=T);M&&(S.viralAdResponseUrl=M);J&&(S.viralCampaignId=String(J));l.push(S)}}d.forceAdParameters={videoAds:l,inDisplayAd:E}}p.isInlinePlaybackNoAd&&(d.isInlinePlaybackNoAd=!0);p.isLivingRoomDeeplink&&(d.isLivingRoomDeeplink=!0);E=p.Ln;if(E!=null){E={startWalltime:String(E)};if(l=p.gR)E.manifestDuration=String(l||14400);d.liveContext= E}p.mutedAutoplay&&(d.mutedAutoplay=!0,p.G("embeds_enable_full_length_inline_muted_autoplay")&&(d.mutedAutoplayDurationMode=uP1[p.mutedAutoplayDurationMode]));if(p.FT?0:p.va)d.splay=!0;E=p.vnd;E===5&&(d.vnd=E);E={};if(l=p.isMdxPlayback)E.triggeredByMdx=l;if(l=p.Bb)E.skippableAdsSupported=l.split(",").includes("ska");if(t=p.eH){l=p.AY;a=[];t=g.F(IcQ(t));for(c=t.next();!c.done;c=t.next()){c=c.value;T=c.platform;c={applicationState:c.t$?"INACTIVE":"ACTIVE",clientFormFactor:ZwV[T]||"UNKNOWN_FORM_FACTOR", clientName:A49[c.xv]||"UNKNOWN_INTERFACE",clientVersion:c.deviceVersion||"",platform:UiS[T]||"UNKNOWN_PLATFORM"};T={};if(l){M=void 0;try{M=JSON.parse(l)}catch(D){g.eG(D)}M&&(T={params:[{key:"ms",value:M.ms}]},M.advertising_id&&(T.advertisingId=M.advertising_id),M.limit_ad_tracking!==void 0&&M.limit_ad_tracking!==null&&(T.limitAdTracking=M.limit_ad_tracking),c.osName=M.os_name,c.userAgent=M.user_agent,c.windowHeightPoints=M.window_height_points,c.windowWidthPoints=M.window_width_points)}a.push({adSignalsInfo:T, remoteClient:c})}E.remoteContexts=a}l=p.sourceContainerPlaylistId;a=p.serializedMdxMetadata;if(l||a)t={},l&&(t.mdxPlaybackContainerInfo={sourceContainerPlaylistId:l}),a&&(t.serializedMdxMetadata=a),E.mdxPlaybackSourceContext=t;d.mdxContext=E;E=C.width;E>0&&(d.playerWidthPixels=Math.round(E));if(C=C.height)d.playerHeightPixels=Math.round(C);V!==0&&(d.vis=V);if(V=X.widgetReferrer)d.widgetReferrer=V.substring(0,128);g.KI(X)&&d&&(d.ancestorOrigins=X.ancestorOrigins);p.defaultActiveSourceVideoId&&(d.compositeVideoContext= {defaultActiveSourceVideoId:p.defaultActiveSourceVideoId});if(X=X.getWebPlayerContextConfig())d.encryptedHostFlags=X.encryptedHostFlags;N={videoId:N,context:H,playbackContext:{contentPlaybackContext:d}};p.reloadPlaybackParams&&(N.playbackContext.reloadPlaybackContext={reloadPlaybackParams:p.reloadPlaybackParams});p.contentCheckOk&&(N.contentCheckOk=!0);if(H=p.clientPlaybackNonce)N.cpn=H;if(H=p.playerParams)N.params=H;if(H=p.playlistId)N.playlistId=H;p.racyCheckOk&&(N.racyCheckOk=!0);H=p.K();if(d= H.embedConfig)N.serializedThirdPartyEmbedConfig=d;N.captionParams={};d=g.LK(g.$l(),65);p.deviceCaptionsOn!=null?N.captionParams.deviceCaptionsOn=p.deviceCaptionsOn:g.wG(H)&&(N.captionParams.deviceCaptionsOn=d!=null?!d:!1);p.kV&&(N.captionParams.deviceCaptionsLangPref=p.kV);p.Dp.length?N.captionParams.viewerSelectedCaptionLangs=p.Dp:g.wG(H)&&(d=g.e3(),d==null?0:d.length)&&(N.captionParams.viewerSelectedCaptionLangs=d);d=p.fetchType==="onesie"&&p.G("html5_onesie_attach_po_token");X=p.fetchType!=="onesie"&& p.G("html5_non_onesie_attach_po_token");if(d||X)d=p.K(),d.XT&&(N.serviceIntegrityDimensions={},N.serviceIntegrityDimensions.poToken=d.XT);H.G("fetch_att_independently")&&(N.attestationRequest={omitBotguardData:!0});if(H.G("html5_enable_sabr_from_watch_server")||H.G("html5_report_supports_vp9_encoding"))N.playbackContext||(N.playbackContext={}),N.playbackContext.devicePlaybackCapabilities=fya(p);return N}; fya=function(p){var C=!(p==null?0:p.dG())&&(p==null?void 0:p.p4())&&XW();if(p==null?0:p.G("html5_report_supports_vp9_encoding")){if(p==null)var V=void 0;else{V=g.aM(p);p=p.K().W;var N=Ck("243");V=N?Ec(V,N,p,!0)===!0:!1}C=V&&!C}else C=void 0;return{supportsVp9Encoding:C,supportXhr:gB}}; qca=function(p,C){var V,N,H;return g.I(function(X){if(X.C==1)return V={context:g.ck(p.K()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:p.videoId,cpn:p.clientPlaybackNonce}}]},N=g.On(yeQ),g.y(X,g.E0(C,V,N),2);H=X.T;return X.return(H)})}; IyS=function(p,C,V){var N=g.mi(C.experiments,"bg_vm_reinit_threshold");(!A5||(0,g.Ip)()-A5>N)&&qca(p,V).then(function(H){H&&(H=H.botguardData)&&g.x1(H,C)},function(H){p.fS()||(H=bv(H),p.k_("attf",H.details))})}; Mh=function(p,C){g.Y.call(this);this.app=p;this.state=C}; mj=function(p,C,V){p.state.T.hasOwnProperty(C)||J_(p,C,V);p.state.D[C]=function(){return V.apply(p,g.US.apply(0,arguments))}; p.state.Y.add(C)}; vk=function(p,C,V){p.state.T.hasOwnProperty(C)||J_(p,C,V);p.app.K().D&&(p.state.J[C]=function(){return V.apply(p,g.US.apply(0,arguments))},p.state.Y.add(C))}; J_=function(p,C,V){p.state.T[C]=function(){return V.apply(p,g.US.apply(0,arguments))}}; g.FE=function(p,C,V){return p.state.T[C].apply(p.state.T,g.K(V))}; SQ=function(){g.IL.call(this);this.W=new Map}; KT=function(){g.Y.apply(this,arguments);this.element=null;this.Y=new Set;this.D={};this.J={};this.T={};this.Z=new Set;this.V=new SQ;this.C=new SQ;this.S=new SQ;this.W=new SQ}; bwu=function(p,C,V){typeof p==="string"&&(p={mediaContentUrl:p,startSeconds:C,suggestedQuality:V});a:{if((C=p.mediaContentUrl)&&(C=/\/([ve]|embed)\/([^#?]+)/.exec(C))&&C[2]){C=C[2];break a}C=null}p.videoId=C;return Dg(p)}; Dg=function(p,C,V){if(typeof p==="string")return{videoId:p,startSeconds:C,suggestedQuality:V};C={};V=g.F(AeY);for(var N=V.next();!N.done;N=V.next())N=N.value,p[N]&&(C[N]=p[N]);return C}; ogH=function(p,C,V,N){if(g.Pv(p)&&!Array.isArray(p)){C="playlist list listType index startSeconds suggestedQuality".split(" ");V={};for(N=0;N32&&N.push("hfr");C.isHdr()&&N.push("hdr");C.primaries==="bt2020"&&N.push("wcg");V.video_quality_features=N}}if(p=p.getPlaylistId())V.list=p;return V}; yk=function(){ux.apply(this,arguments)}; qh=function(p,C){var V={};if(p.app.K().b_){p=g.F(zTL);for(var N=p.next();!N.done;N=p.next())N=N.value,C.hasOwnProperty(N)&&(V[N]=C[N]);if(C=V.qoe_cat)p="",typeof C==="string"&&C.length>0&&(p=C.split(",").filter(function(H){return RTe.includes(H)}).join(",")),V.qoe_cat=p; nge(V)}else for(p=g.F(eTe),N=p.next();!N.done;N=p.next())N=N.value,C.hasOwnProperty(N)&&(V[N]=C[N]);return V}; nge=function(p){var C=p.raw_player_response;if(!C){var V=p.player_response;V&&(C=JSON.parse(V))}delete p.player_response;delete p.raw_player_response;if(C){p.raw_player_response={streamingData:C.streamingData};var N;if((N=C.playbackTracking)==null?0:N.qoeUrl)p.raw_player_response=Object.assign({},p.raw_player_response,{playbackTracking:{qoeUrl:C.playbackTracking.qoeUrl}});var H;if((H=C.videoDetails)==null?0:H.videoId)p.raw_player_response=Object.assign({},p.raw_player_response,{videoDetails:{videoId:C.videoDetails.videoId}})}}; I$=function(p,C,V){var N=p.app.Xt(V);if(!N)return 0;p=N-p.app.getCurrentTime(V);return C-p}; w1y=function(p){var C=C===void 0?5:C;return p?P59[p]||C:C}; g.bx=function(){yk.apply(this,arguments)}; $i9=function(p){J_(p,"getInternalApiInterface",p.getInternalApiInterface);J_(p,"addEventListener",p.w_);J_(p,"removeEventListener",p.Rb_);J_(p,"cueVideoByPlayerVars",p.e_);J_(p,"loadVideoByPlayerVars",p.HU);J_(p,"preloadVideoByPlayerVars",p.Id_);J_(p,"getAdState",p.getAdState);J_(p,"sendAbandonmentPing",p.sendAbandonmentPing);J_(p,"setLoopRange",p.setLoopRange);J_(p,"getLoopRange",p.getLoopRange);J_(p,"setAutonavState",p.setAutonavState);J_(p,"seekTo",p.T6e);J_(p,"seekBy",p.Z7a);J_(p,"seekToLiveHead", p.seekToLiveHead);J_(p,"requestSeekToWallTimeSeconds",p.requestSeekToWallTimeSeconds);J_(p,"seekToStreamTime",p.seekToStreamTime);J_(p,"startSeekCsiAction",p.startSeekCsiAction);J_(p,"getStreamTimeOffset",p.getStreamTimeOffset);J_(p,"getVideoData",p.ZL);J_(p,"setInlinePreview",p.setInlinePreview);J_(p,"getAppState",p.getAppState);J_(p,"updateLastActiveTime",p.updateLastActiveTime);J_(p,"setBlackout",p.setBlackout);J_(p,"setUserEngagement",p.setUserEngagement);J_(p,"updateSubtitlesUserSettings",p.updateSubtitlesUserSettings); J_(p,"getPresentingPlayerType",p.VD);J_(p,"canPlayType",p.canPlayType);J_(p,"updatePlaylist",p.updatePlaylist);J_(p,"updateVideoData",p.updateVideoData);J_(p,"updateEnvironmentData",p.updateEnvironmentData);J_(p,"sendVideoStatsEngageEvent",p.CWk);J_(p,"productsInVideoVisibilityUpdated",p.productsInVideoVisibilityUpdated);J_(p,"setSafetyMode",p.setSafetyMode);J_(p,"isAtLiveHead",function(C){return p.isAtLiveHead(void 0,C)}); J_(p,"getVideoAspectRatio",p.getVideoAspectRatio);J_(p,"getPreferredQuality",p.getPreferredQuality);J_(p,"getPlaybackQualityLabel",p.getPlaybackQualityLabel);J_(p,"setPlaybackQualityRange",p.Elk);J_(p,"onAdUxClicked",p.onAdUxClicked);J_(p,"getFeedbackProductData",p.getFeedbackProductData);J_(p,"getStoryboardFrame",p.getStoryboardFrame);J_(p,"getStoryboardFrameIndex",p.getStoryboardFrameIndex);J_(p,"getStoryboardLevel",p.getStoryboardLevel);J_(p,"getNumberOfStoryboardLevels",p.getNumberOfStoryboardLevels); J_(p,"getCaptionWindowContainerId",p.getCaptionWindowContainerId);J_(p,"getAvailableQualityLabels",p.getAvailableQualityLabels);J_(p,"addCueRange",p.addCueRange);J_(p,"addUtcCueRange",p.addUtcCueRange);J_(p,"showAirplayPicker",p.showAirplayPicker);J_(p,"dispatchReduxAction",p.dispatchReduxAction);J_(p,"getPlayerResponse",p.w0);J_(p,"getWatchNextResponse",p.C_);J_(p,"getHeartbeatResponse",p.lA);J_(p,"getCurrentTime",p.DL);J_(p,"getDuration",p.Hh);J_(p,"getPlayerState",p.getPlayerState);J_(p,"getPlayerStateObject", p.oD);J_(p,"getVideoLoadedFraction",p.getVideoLoadedFraction);J_(p,"getProgressState",p.getProgressState);J_(p,"getVolume",p.getVolume);J_(p,"setVolume",p.zx);J_(p,"isMuted",p.isMuted);J_(p,"mute",p.Bu);J_(p,"unMute",p.QF);J_(p,"loadModule",p.loadModule);J_(p,"unloadModule",p.unloadModule);J_(p,"getOption",p.QY);J_(p,"getOptions",p.getOptions);J_(p,"setOption",p.setOption);J_(p,"loadVideoById",p.GK);J_(p,"loadVideoByUrl",p.h0);J_(p,"playVideo",p.fF);J_(p,"loadPlaylist",p.loadPlaylist);J_(p,"nextVideo", p.nextVideo);J_(p,"previousVideo",p.previousVideo);J_(p,"playVideoAt",p.playVideoAt);J_(p,"getDebugText",p.getDebugText);J_(p,"getWebPlayerContextConfig",p.getWebPlayerContextConfig);J_(p,"notifyShortsAdSwipeEvent",p.notifyShortsAdSwipeEvent);J_(p,"getVideoContentRect",p.getVideoContentRect);J_(p,"setSqueezeback",p.setSqueezeback);J_(p,"toggleSubtitlesOn",p.toggleSubtitlesOn);J_(p,"isSubtitlesOn",p.isSubtitlesOn);J_(p,"reportPlaybackIssue",p.reportPlaybackIssue);J_(p,"setAutonav",p.setAutonav);J_(p, "isNotServable",p.isNotServable);J_(p,"channelSubscribed",p.channelSubscribed);J_(p,"channelUnsubscribed",p.channelUnsubscribed);J_(p,"togglePictureInPicture",p.togglePictureInPicture);J_(p,"supportsGaplessAudio",p.supportsGaplessAudio);J_(p,"supportsGaplessShorts",p.supportsGaplessShorts);J_(p,"enqueueVideoByPlayerVars",function(C){return void p.enqueueVideoByPlayerVars(C)}); J_(p,"clearQueue",p.clearQueue);J_(p,"getAudioTrack",p.hf);J_(p,"setAudioTrack",p.AEo);J_(p,"getAvailableAudioTracks",p.pu);J_(p,"getMaxPlaybackQuality",p.getMaxPlaybackQuality);J_(p,"getUserPlaybackQualityPreference",p.getUserPlaybackQualityPreference);J_(p,"getSubtitlesUserSettings",p.getSubtitlesUserSettings);J_(p,"resetSubtitlesUserSettings",p.resetSubtitlesUserSettings);J_(p,"setMinimized",p.setMinimized);J_(p,"setOverlayVisibility",p.setOverlayVisibility);J_(p,"confirmYpcRental",p.confirmYpcRental); J_(p,"queueNextVideo",p.queueNextVideo);J_(p,"handleExternalCall",p.handleExternalCall);J_(p,"logApiCall",p.logApiCall);J_(p,"isExternalMethodAvailable",p.isExternalMethodAvailable);J_(p,"setScreenLayer",p.setScreenLayer);J_(p,"getCurrentPlaylistSequence",p.getCurrentPlaylistSequence);J_(p,"getPlaylistSequenceForTime",p.getPlaylistSequenceForTime);J_(p,"shouldSendVisibilityState",p.shouldSendVisibilityState);J_(p,"syncVolume",p.syncVolume);J_(p,"highlightSettingsMenuItem",p.highlightSettingsMenuItem); J_(p,"openSettingsMenuItem",p.openSettingsMenuItem);J_(p,"getEmbeddedPlayerResponse",p.getEmbeddedPlayerResponse);J_(p,"getVisibilityState",p.getVisibilityState);J_(p,"isMutedByMutedAutoplay",p.isMutedByMutedAutoplay);p.G("embeds_enable_emc3ds_muted_autoplay")&&J_(p,"isMutedByEmbedsMutedAutoplay",p.isMutedByEmbedsMutedAutoplay);J_(p,"setGlobalCrop",p.setGlobalCrop);J_(p,"setInternalSize",p.setInternalSize);J_(p,"setFauxFullscreen",p.setFauxFullscreen);J_(p,"setAppFullscreen",p.setAppFullscreen)}; o$=function(p,C,V){p=g.A_(p.aI(),C);return V?(V.addOnDisposeCallback(p),null):p}; g.kj=function(p,C,V){return p.app.K().o6?C:g.Ks("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:C,SHORTCUT:V})}; Lwv=function(p){p.aI().element.setAttribute("aria-live","polite")}; g.xj=function(p,C){g.bx.call(this,p,C);$i9(this);vk(this,"addEventListener",this.d_);vk(this,"removeEventListener",this.Dt$);vk(this,"cueVideoByPlayerVars",this.Hs);vk(this,"loadVideoByPlayerVars",this.pD);vk(this,"preloadVideoByPlayerVars",this.ria);vk(this,"loadVideoById",this.GK);vk(this,"loadVideoByUrl",this.h0);vk(this,"playVideo",this.fF);vk(this,"loadPlaylist",this.loadPlaylist);vk(this,"nextVideo",this.nextVideo);vk(this,"previousVideo",this.previousVideo);vk(this,"playVideoAt",this.playVideoAt); vk(this,"getVideoData",this.Z0);vk(this,"seekBy",this.yE_);vk(this,"seekTo",this.aQx);vk(this,"showControls",this.showControls);vk(this,"hideControls",this.hideControls);vk(this,"cancelPlayback",this.cancelPlayback);vk(this,"getProgressState",this.getProgressState);vk(this,"isInline",this.isInline);vk(this,"setInline",this.setInline);vk(this,"setLoopVideo",this.setLoopVideo);vk(this,"getLoopVideo",this.getLoopVideo);vk(this,"getVideoContentRect",this.getVideoContentRect);vk(this,"getVideoStats",this.aT); vk(this,"getCurrentTime",this.tf);vk(this,"getDuration",this.Hh);vk(this,"getPlayerState",this.jj);vk(this,"getVideoLoadedFraction",this.yN);vk(this,"mute",this.Bu);vk(this,"unMute",this.QF);vk(this,"setVolume",this.zx);vk(this,"loadModule",this.loadModule);vk(this,"unloadModule",this.unloadModule);vk(this,"getOption",this.QY);vk(this,"getOptions",this.getOptions);vk(this,"setOption",this.setOption);vk(this,"addCueRange",this.addCueRange);vk(this,"getDebugText",this.getDebugText);vk(this,"getStoryboardFormat", this.getStoryboardFormat);vk(this,"toggleFullscreen",this.toggleFullscreen);vk(this,"isFullscreen",this.isFullscreen);vk(this,"getPlayerSize",this.getPlayerSize);vk(this,"toggleSubtitles",this.toggleSubtitles);vk(this,"setCenterCrop",this.setCenterCrop);vk(this,"setFauxFullscreen",this.setFauxFullscreen);vk(this,"setSizeStyle",this.setSizeStyle);vk(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);vk(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);xiX(this)}; g.Yj=function(p){p=p.Tk();var C=p.Ji.get("endscreen");return C&&C.zE()?!0:p.P9()}; g.zC=function(p,C){p.getPresentingPlayerType()===3?p.publish("mdxautoplaycancel"):p.Jk("onAutonavCancelled",C)}; g.nT=function(p){var C=R$(p.Tk());return p.app.Cq&&!p.isFullscreen()||p.getPresentingPlayerType()===3&&C&&C.bT()&&C.gj()||!!p.getPlaylist()}; g.eQ=function(p,C){g.FE(p,"addEmbedsConversionTrackingParams",[C])}; g.wb=function(p){return(p=g.Pk(p.Tk()))?p.u5():{}}; g.ggj=function(p){p=(p=p.getVideoData())&&p.C;return!!p&&!(!p.audio||!p.video)&&p.mimeType!=="application/x-mpegURL"}; g.LT=function(p,C,V){p=p.dV().element;var N=ir(p.children,function(H){H=Number(H.getAttribute("data-layer"));return V-H||1}); N<0&&(N=-(N+1));Eo(p,C,N);C.setAttribute("data-layer",String(V))}; g.gb=function(p){var C=p.K();if(!C.kt)return!1;var V=p.getVideoData();if(!V||p.getPresentingPlayerType()===3)return!1;var N=(!V.isLiveDefaultBroadcast||C.G("allow_poltergust_autoplay"))&&!E5(V);N=V.isLivePlayback&&(!C.G("allow_live_autoplay")||!N);var H=V.isLivePlayback&&C.G("allow_live_autoplay_on_mweb");p=p.getPlaylist();p=!!p&&p.bT();var X=V.Ga&&V.Ga.playerOverlays||null;X=!!(X&&X.playerOverlayRenderer&&X.playerOverlayRenderer.autoplay);X=V.UV&&X;return!V.ypcPreview&&(!N||H)&&!g.W5(V.Vn,"ypc")&& !p&&(!g.KI(C)||X)}; Wwj=function(p){p=g.O5(p.app);if(!p)return!1;var C=p.getVideoData();if(!C.C||!C.C.video||C.C.video.T<1080||C.wX)return!1;var V=/^qsa/.test(C.clientPlaybackNonce),N="r";C.C.id.indexOf(";")>=0&&(V=/^[a-p]/.test(C.clientPlaybackNonce),N="x");return V?(p.k_("iqss",{trigger:N},!0),!0):!1}; Wk=function(){Pw.apply(this,arguments);this.requestHeaders={}}; rb=function(){Qk||(Qk=new Wk);return Qk}; Bk=function(p,C){C?p.requestHeaders.Authorization="Bearer "+C:delete p.requestHeaders.Authorization}; g.GC=function(p,C,V,N){N=N===void 0?!1:N;g.Sp.call(this,C);var H=this;this.N=p;this.Vn=N;this.J=new g.Rr(this);this.a$=new g.a0(this,V,!0,void 0,void 0,function(){H.zj()}); g.R(this,this.J);g.R(this,this.a$)}; pc=function(p){var C=p.N.getRootNode();return p.N.G("web_enable_auto_pip")||p.N.G("web_enable_pip_on_miniplayer")||p.N.G("web_shorts_pip")?QW(C):document}; Q2Q=function(p){p.C&&(document.activeElement&&g.t2(p.element,document.activeElement)&&p.C.focus(),p.C.setAttribute("aria-expanded","false"),p.C=void 0);g.Am(p.J);p.Z=void 0}; Cc=function(p,C,V){p.rh()?p.f4():p.er(C,V)}; jm=function(p,C,V,N){N=new g.L({L:"div",i_:["ytp-linked-account-popup-button"],Ak:N,X:{role:"button",tabindex:"0"}});C=new g.L({L:"div",B:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},j:[{L:"div",B:"ytp-linked-account-popup-title",Ak:C},{L:"div",B:"ytp-linked-account-popup-description",Ak:V},{L:"div",B:"ytp-linked-account-popup-buttons",j:[N]}]});g.GC.call(this,p,{L:"div",B:"ytp-linked-account-popup-container",j:[C]},100);var H=this;this.dialog=C;g.R(this,this.dialog); N.listen("click",function(){H.f4()}); g.R(this,N);g.LT(this.N,this.element,4);this.hide()}; g.Nl=function(p,C,V,N){g.Sp.call(this,p);this.priority=C;V&&g.V7(this,V);N&&this.Jc(N)}; g.H3=function(p,C,V,N){p=p===void 0?{}:p;C=C===void 0?[]:C;V=V===void 0?!1:V;N=N===void 0?!1:N;C.push("ytp-menuitem");var H=p;"role"in H||(H.role="menuitem");V||(H=p,"tabindex"in H||(H.tabindex="0"));p={L:V?"a":"div",i_:C,X:p,j:[{L:"div",B:"ytp-menuitem-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-menuitem-label",Ak:"{{label}}"},{L:"div",B:"ytp-menuitem-content",Ak:"{{content}}"}]};N&&p.j.push({L:"div",B:"ytp-menuitem-secondary-icon",Ak:"{{secondaryIcon}}"});return p}; g.V7=function(p,C){p.updateValue("label",C)}; XB=function(p){g.Nl.call(this,g.H3({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var C=this;this.N=p;this.C=this.T=!1;this.xM=p.TA();p.createServerVe(this.element,this,!0);this.U(this.N,"settingsMenuVisibilityChanged",function(V){C.RH(V)}); this.U(this.N,"videodatachange",this.S);this.listen("click",this.onClick);this.S()}; dS=function(p){return p?g.uq(p):""}; iT=function(p){g.Y.call(this);this.api=p}; hh=function(p){iT.call(this,p);var C=this;J_(p,"setAccountLinkState",function(V){C.setAccountLinkState(V)}); J_(p,"updateAccountLinkingConfig",function(V){C.updateAccountLinkingConfig(V)}); p.addEventListener("videodatachange",function(V,N){C.onVideoDataChange(N)}); p.addEventListener("settingsMenuInitialized",function(){C.menuItem=new XB(C.api);g.R(C,C.menuItem)})}; rey=function(p){this.api=p;this.T={}}; sO=function(p,C,V,N){C in p.T||(V=new g.sz(V,N,{id:C,priority:2,namespace:"appad"}),p.api.d7([V],1),p.T[C]=V)}; a8=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(this);g.R(this,this.events);this.T=new rey(this.api);this.events.U(this.api,"legacyadtrackingpingreset",function(){C.T.T={}}); this.events.U(this.api,"legacyadtrackingpingchange",function(V){var N=C.T;sO(N,"part2viewed",1,0x8000000000000);sO(N,"engagedview",Math.max(1,V.ER*1E3),0x8000000000000);if(!V.isLivePlayback){var H=V.lengthSeconds*1E3;id(V)&&N.api.G("html5_shorts_gapless_ads_duration_fix")&&(H=N.api.getProgressState().seekableEnd*1E3-V.Vy);sO(N,"videoplaytime25",H*.25,H);sO(N,"videoplaytime50",H*.5,H);sO(N,"videoplaytime75",H*.75,H);sO(N,"videoplaytime100",H,0x8000000000000);sO(N,"conversionview",H,0x8000000000000); sO(N,"videoplaybackstart",1,H);sO(N,"videoplayback2s",2E3,H);sO(N,"videoplayback10s",1E4,H)}}); this.events.U(this.api,g.Ez("appad"),this.C);this.events.U(this.api,g.lG("appad"),this.C)}; Cwa=function(p,C,V){if(!(V in C))return!1;C=C[V];Array.isArray(C)||(C=[C]);C=g.F(C);for(V=C.next();!V.done;V=C.next()){V=V.value;var N={CPN:p.api.getVideoData().clientPlaybackNonce};V=g.nX(V,N);N=void 0;N=N===void 0?!1:N;(N=V6(No(V,BHe),V,N,"Active View 3rd Party Integration URL"))||(N=void 0,N=N===void 0?!1:N,N=V6(No(V,Grj),V,N,"Google/YouTube Brand Lift URL"));N||(N=void 0,N=N===void 0?!1:N,N=V6(No(V,pRY),V,N,"Nielsen OCR URL"));g.BC(V,void 0,N)}return!0}; EO=function(p,C){jZL(p,C).then(function(V){g.BC(C,void 0,void 0,V)})}; lT=function(p,C){C.forEach(function(V){EO(p,V)})}; jZL=function(p,C){return g.bH(p.api.K())&&cd(C)&&tw(C)?g.pk(p.api.K(),g.XE(p.api.getVideoData())).then(function(V){var N;V&&(N={Authorization:"Bearer "+V});return N},void 0):YD()}; V5e=function(p){iT.call(this,p);this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"videoready",function(C){if(p.getPresentingPlayerType()===1){var V,N,H={playerDebugData:{pmlSignal:!!((V=C.getPlayerResponse())==null?0:(N=V.adPlacements)==null?0:N.some(function(X){var d;return X==null?void 0:(d=X.adPlacementRenderer)==null?void 0:d.renderer})), contentCpn:C.clientPlaybackNonce}};g.t1("adsClientStateChange",H)}})}; th=function(p){g.L.call(this,{L:"button",i_:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},j:[{L:"div",B:"ytp-autonav-toggle-button-container",j:[{L:"div",B:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.N=p;this.C=[];this.T=!1;this.isChecked=!0;p.createClientVe(this.element,this,113681);this.U(p,"presentingplayerstatechange",this.wu);this.listen("click",this.onClick);this.N.K().G("web_player_autonav_toggle_always_listen")&& Nz1(this);o$(p,this.element,this);this.wu()}; Nz1=function(p){p.C.push(p.U(p.N,"videodatachange",p.wu));p.C.push(p.U(p.N,"videoplayerreset",p.wu));p.C.push(p.U(p.N,"onPlaylistUpdate",p.wu));p.C.push(p.U(p.N,"autonavchange",p.oU))}; HpQ=function(p){p.isChecked=p.isChecked;p.rV("ytp-autonav-toggle-button").setAttribute("aria-checked",String(p.isChecked));var C=p.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";p.updateValue("title",C);p.updateValue("label",C);p.N.B6()}; XRy=function(p){return p.N.K().G("web_player_autonav_use_server_provided_state")&&jK(p.DE())}; dtj=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"standardControlsInitialized",function(){var V=new th(p);g.R(C,V);p.ju(V)})}; c3=function(p,C){g.Nl.call(this,g.H3({role:"menuitemcheckbox","aria-checked":"false"}),C,p,{L:"div",B:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; TJ=function(p,C){p.checked=C;p.element.setAttribute("aria-checked",String(p.checked))}; ip1=function(p){var C=!p.K().BB&&p.getPresentingPlayerType()!==3;return p.isFullscreen()||C}; g.Ml=function(p,C,V,N){var H=p.currentTarget;if((V===void 0||!V)&&g.o0(p))return p.preventDefault(),!0;C.pauseVideo();p=H.getAttribute("href");g.G6(p,N,!0);return!1}; g.Jh=function(p,C,V){if(nI(C.K())&&C.getPresentingPlayerType()!==2){if(g.o0(V))return C.isFullscreen()&&!C.K().externalFullscreen&&C.toggleFullscreen(),V.preventDefault(),!0}else{var N=g.o0(V);N&&C.pauseVideo();g.G6(p,void 0,!0);N&&(g.pS(p),V.preventDefault())}return!1}; sZ9=function(){var p=hPL.includes("pt-BR")?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{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"}}]}:{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{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"}}]};p.B="ytp-subtitles-button-icon";return p}; mv=function(){return{L:"div",B:"ytp-spinner-container",j:[{L:"div",B:"ytp-spinner-rotator",j:[{L:"div",B:"ytp-spinner-left",j:[{L:"div",B:"ytp-spinner-circle"}]},{L:"div",B:"ytp-spinner-right",j:[{L:"div",B:"ytp-spinner-circle"}]}]}]}}; v3=function(p){if(document.createRange){var C=document.createRange();C&&(C.selectNodeContents(p),p=window.getSelection())&&(p.removeAllRanges(),p.addRange(C))}}; Kc=function(p){var C=p.G("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";c3.call(this,C,g.FB.ON);var V=this;this.N=p;this.T=!1;this.C=new g.N8(function(){g.tk(V.element,"ytp-menuitem-highlighted")},0); this.xM=p.TA();this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.V,this);this.listen(Sm,this.S);g.R(this,this.C)}; DM=function(p){iT.call(this,p);var C=this;this.T=!1;p.addEventListener("settingsMenuInitialized",function(){a0S(C)}); p.addEventListener("highlightSettingsMenu",function(V){a0S(C);var N=C.menuItem;V==="menu_item_cinematic_lighting"&&(g.Ed(N.element,"ytp-menuitem-highlighted"),g.Ed(N.element,"ytp-menuitem-highlight-transition-enabled"),N.C.start())}); J_(p,"updateCinematicSettings",function(V){C.updateCinematicSettings(V)})}; a0S=function(p){p.menuItem||(p.menuItem=new Kc(p.api),g.R(p,p.menuItem),p.menuItem.Pr(p.T))}; uT=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"applicationvideodatachange",function(V,N){C.sU(V,N)})}; ZM=function(p){iT.call(this,p);this.events=new g.Rr(p);g.R(this,this.events);J_(p,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));J_(p,"setCreatorEndscreenHideButton",this.T.bind(this))}; UO=function(p,C,V,N){c3.call(this,"Volume est\u00e1vel",g.FB.Gd);g.Ed(this.element,"ytp-drc-menu-item");this.xM=p.TA();this.S=C;this.T=V;this.hasDrcAudioTrack=N;p.addEventListener("videodatachange",this.C.bind(this));p.G("mta_drc_mutual_exclusion_removal")&&this.U(p,"onPlaybackAudioChange",this.C);p=this.T()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.V,this);TJ(this,p);this.xM.zB(this)}; fc=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);p.G("html5_show_drc_toggle")&&p.addEventListener("settingsMenuInitialized",function(){C.menuItem||(C.menuItem=new UO(C.api,C.setDrcUserPreference.bind(C),C.getDrcUserPreference.bind(C),C.C.bind(C)),g.R(C,C.menuItem))}); J_(this.api,"setDrcUserPreference",function(N){C.setDrcUserPreference(N)}); J_(this.api,"getDrcUserPreference",function(){return C.getDrcUserPreference()}); J_(this.api,"hasDrcAudioTrack",function(){return C.C()}); var V;this.T=(V=g.zW("yt-player-drc-pref"))!=null?V:1;this.updateEnvironmentData()}; OO=function(p){iT.call(this,p);var C=this;this.T={};this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"videodatachange",function(){C.onVideoDataChange()}); this.events.U(p,g.Ez("embargo"),function(V){C.api.J9(!0);var N,H=(N=C.T[V.id])!=null?N:[];N=g.F(H);for(H=N.next();!H.done;H=N.next()){var X=H.value;C.api.hideControls();C.api.a_("auth",2,"This video isn't available in your current playback area",yu({embargoed:1,id:V.id,idx:V.C,start:V.start}));H=void 0;(X=(H=X.embargo)==null?void 0:H.onTrigger)&&C.api.Jk("innertubeCommand",X)}})}; EEv=function(p,C){var V;return(V=C.onEnter)==null?void 0:V.some(p.C)}; l0e=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=void 0,H=Number((N=V.playbackPosition)==null?void 0:N.utcTimeMillis)/1E3,X=void 0;N=H+Number((X=V.duration)==null?void 0:X.seconds);X="embargo_"+H;p.api.addUtcCueRange(X,H,N,"embargo",!1);V.onEnter&&(p.T[X]=V.onEnter.filter(p.C))}}; y7=function(p){iT.call(this,p);var C=this;this.T=[];this.events=new g.Rr(p);g.R(this,this.events);J_(p,"addEmbedsConversionTrackingParams",function(V){C.api.K().eE&&C.addEmbedsConversionTrackingParams(V)}); this.events.U(p,"veClickLogged",function(V){C.api.hasVe(V)&&(V=XG(V.visualElement.getAsJspb(),2),C.T.push(V))})}; t5s=function(p){iT.call(this,p);J_(p,"isEmbedsShortsMode",function(){return p.isEmbedsShortsMode()})}; cWL=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"initialvideodatacreated",function(V){Ui(ZF(),16623);C.T=g.bz();var N=p.K().qn&&!V.FT;if(Nh(V)&&N){Ui(ZF(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(V.getWatchNextResponse()){var H,X=(H=V.getWatchNextResponse())==null?void 0:H.trackingParams;X&&Oi(X)}if(V.getPlayerResponse()){var d;(V=(d=V.getPlayerResponse())==null?void 0:d.trackingParams)&&Oi(V)}}else Ui(ZF(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),V.getEmbeddedPlayerResponse()&&(d=(X=V.getEmbeddedPlayerResponse())==null?void 0:X.trackingParams)&&Oi(d)}); this.events.U(p,"loadvideo",function(){Ui(ZF(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:C.T})}); this.events.U(p,"cuevideo",function(){Ui(ZF(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:C.T})}); this.events.U(p,"largeplaybuttonclicked",function(V){Ui(ZF(),27240,V.visualElement)}); this.events.U(p,"playlistnextbuttonclicked",function(V){Ui(ZF(),27240,V.visualElement)}); this.events.U(p,"playlistprevbuttonclicked",function(V){Ui(ZF(),27240,V.visualElement)}); this.events.U(p,"playlistautonextvideo",function(){Ui(ZF(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; ql=function(p,C){g.Y.call(this);var V=this;this.T=null;this.V=C;C=[];for(var N=0;N<=100;N++)C.push(N/100);C={threshold:C,trackVisibility:!0,delay:1E3};(this.C=window.IntersectionObserver?new IntersectionObserver(function(H){H=H[H.length-1];typeof H.isVisible==="undefined"?V.T=null:V.T=H.isVisible?H.intersectionRatio:0;typeof V.V==="function"&&V.V(V.T)},C):null)&&this.C.observe(p)}; M5s=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"applicationInitialized",function(){Tz1(C)})}; Tz1=function(p){p.T=new ql(p.api.getRootNode(),function(C){C!=null&&(p.api.K().gh=C)}); g.R(p,p.T);p.events.U(p.api,"videoStatsPingCreated",function(C){var V=p.T;V=V.T==null?null:Math.round(V.T*100)/100;C.inview=V!=null?V:void 0;V=p.api.getPlayerSize();if(V.height>0&&V.width>0){V=[Math.round(V.width),Math.round(V.height)];var N=g.Pg();N>1&&V.push(N);V=V.join(":")}else V=void 0;C.size=V})}; JWs=function(p){var C;return((C=((p==null?void 0:p.messageRenderers)||[]).find(function(V){return!!V.timeCounterRenderer}))==null?void 0:C.timeCounterRenderer)||null}; I8=function(p){g.L.call(this,{L:"div",i_:["ytp-player-content","ytp-iv-player-content"],j:[{L:"div",B:"ytp-free-preview-countdown-timer",j:[{L:"span",Ak:"{{label}}"},{L:"span",B:"ytp-free-preview-countdown-timer-separator",Ak:"\u2022"},{L:"span",Ak:"{{duration}}"}]}]});this.api=p;this.T=null;this.V=this.C=0;this.U(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; vEe=function(p,C){p.T||(p.C=C,p.V=(0,g.Ip)(),p.T=new g.V2(function(){mt9(p)},null),mt9(p))}; mt9=function(p){var C=Math,V=C.round,N=Math.min((0,g.Ip)()-p.V,p.C);C=V.call(C,(p.C-N)/1E3);p.updateValue("duration",vY({seconds:C}));C<=0&&p.T?Fpe(p):p.T&&p.T.start()}; Fpe=function(p){p.T&&(p.T.dispose(),p.T=null)}; S9V=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"basechromeinitialized",function(){C.T=new I8(p);g.R(C,C.T);g.LT(p,C.T.element,4);C.T.hide()})}; bT=function(p){g.L.call(this,{L:"button",i_:["ytp-fullerscreen-edu-button","ytp-button"],j:[{L:"div",i_:["ytp-fullerscreen-edu-text"],Ak:"Role para ver detalhes"},{L:"div",i_:["ytp-fullerscreen-edu-chevron"],j:[{L:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.ea=p;this.T=new g.a0(this,250,void 0,100);this.V=this.C=!1;p.createClientVe(this.element,this,61214);g.R(this, this.T);this.U(p,"fullscreentoggled",this.Pr);this.U(p,"presentingplayerstatechange",this.Pr);this.listen("click",this.onClick);this.Pr()}; Ah=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);J_(this.api,"updateFullerscreenEduButtonSubtleModeState",function(N){C.updateFullerscreenEduButtonSubtleModeState(N)}); J_(this.api,"updateFullerscreenEduButtonVisibility",function(N){C.updateFullerscreenEduButtonVisibility(N)}); var V=p.K();p.G("external_fullscreen_with_edu")&&V.externalFullscreen&&nI(V)&&V.controlsType==="1"&&this.events.U(p,"standardControlsInitialized",function(){C.T=new bT(p);g.R(C,C.T);p.ju(C.T)})}; KpQ=function(p){g.L.call(this,{L:"div",B:"ytp-gated-actions-overlay",j:[{L:"div",B:"ytp-gated-actions-overlay-background",j:[{L:"div",B:"ytp-gated-actions-overlay-background-overlay"}]},{L:"button",i_:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Fechar"},j:[g.yD()]},{L:"div",B:"ytp-gated-actions-overlay-bar",j:[{L:"div",B:"ytp-gated-actions-overlay-text-container",j:[{L:"div",B:"ytp-gated-actions-overlay-title",Ak:"{{title}}"},{L:"div",B:"ytp-gated-actions-overlay-subtitle", Ak:"{{subtitle}}"}]},{L:"div",B:"ytp-gated-actions-overlay-button-container"}]}]});var C=this;this.api=p;this.background=this.rV("ytp-gated-actions-overlay-background");this.C=this.rV("ytp-gated-actions-overlay-button-container");this.T=[];this.U(this.rV("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){C.api.Jk("onCloseMiniplayer")}); this.hide()}; u6y=function(p,C){var V=0;V=0;for(var N={};V H&&(H=a.width,X="url("+a.url+")")}V.background.style.backgroundImage=X;u6y(V,N.actionButtons||[]);V.show()}else V.hide()}); g.LT(this.api,this.T.element,4)}; UtX=function(p){iT.call(this,p);var C=this;this.T=null;this.events=new g.Rr(p);g.R(this,this.events);var V=p.K();V.Y9=!1;V.UY=!1;V.Um=!1;vk(p,"resetSubtitlesUserSettings",function(){p.resetSubtitlesUserSettings()}); vk(p,"getSubtitlesUserSettings",function(){return p.getSubtitlesUserSettings()}); vk(p,"updateSubtitlesUserSettings",function(X){p.updateSubtitlesUserSettings(X)}); vk(p,"getCaptionTracks",function(){return p.getOption("captions","tracklist",{includeAsr:!0})}); vk(p,"getAvailableQualityLevels",function(){return p.getAvailableQualityLevels()}); vk(p,"getPreferredQuality",function(){return p.getPreferredQuality()}); vk(p,"getPlaybackQuality",function(){return p.getPlaybackQuality()}); vk(p,"setPlaybackQuality",function(X){p.setPlaybackQuality(X)}); var N=this.api.Uu(),H=N.subscribe("visibilitystatechange",function(){p.Ba("onPictureInPictureChange",N.l0())}); this.addOnDisposeCallback(function(){N.zW(H)}); vk(p,"setRootNodeClickAction",function(X){C.T=X}); this.events.U(p.getRootNode(),"click",function(){switch(C.T){case "togglePictureInPicture":p.togglePictureInPicture();break;case "play":p.playVideo()}})}; f0X=function(p){iT.call(this,p);p=p.K();p.i8.push("flix");p.UY=!1;p.Y9=!1}; I0a=function(p){iT.call(this,p);var C=this;this.T={};this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"applicationInitialized",function(){C.T=Ops(yWX)}); this.events.U(p,"onPlaybackStartExternal",function(){var V=Object.assign({},C.T,Ops(q9j));C.api.k_("hbp_csi",V,!0,1)})}; Ops=function(p){var C={},V=g.NU(G0)("_start",void 0);if(V){p=g.F(p);for(var N=p.next();!N.done;N=p.next()){N=N.value;var H=g.NU(G0)(N,void 0);H&&(C[N]=Math.round(H-V))}}return C}; o8=function(p){iT.call(this,p);var C=this;vk(this.api,"getSphericalProperties",function(){return C.getSphericalProperties()}); vk(this.api,"setSphericalProperties",function(){C.setSphericalProperties.apply(C,g.K(g.US.apply(0,arguments)))}); mj(this.api,"getSphericalProperties",function(){return C.api.getPresentingPlayerType()===2?{}:C.getSphericalProperties()}); mj(this.api,"setSphericalProperties",function(){var V=g.US.apply(0,arguments);C.api.getPresentingPlayerType()!==2&&C.setSphericalProperties.apply(C,g.K(V))})}; bpX=function(p){iT.call(this,p);J_(p,"createClientVe",this.createClientVe.bind(this));J_(p,"createServerVe",this.createServerVe.bind(this));J_(p,"destroyVe",this.destroyVe.bind(this));J_(p,"hasVe",this.hasVe.bind(this));J_(p,"logClick",this.logClick.bind(this));J_(p,"logVisibility",this.logVisibility.bind(this));J_(p,"setTrackingParams",this.setTrackingParams.bind(this))}; kv=function(p,C,V,N){function H(d){var a=!(d.status!==204&&d.status!==200&&!d.response),E;d={succ:""+ +a,rc:d.status,lb:((E=d.response)==null?void 0:E.byteLength)||0,rt:((0,g.Ip)()-X).toFixed(),shost:g.LJ(p),trigger:C};AWe(d,p);V&&V(d);N&&!a&&N(new qD("pathprobe.net",d))} var X=(0,g.Ip)();g.qU(p,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:H,onTimeout:H})}; AWe=function(p,C){var V;((V=window.performance)==null?0:V.getEntriesByName)&&(C=performance.getEntriesByName(C))&&C.length&&(C=C[0],p.pedns=(C.domainLookupEnd-C.startTime).toFixed(),p.pecon=(C.connectEnd-C.domainLookupEnd).toFixed(),p.perqs=(C.requestStart-C.connectEnd).toFixed(),oEQ&&(p.perqsa=C.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; kn1=function(p,C){this.n1=p;this.policy=C;this.playbackRate=1}; xtX=function(p,C){var V=Math.min(2.5,tR(p.n1));p=xv(p);return C-V*p}; zPa=function(p,C,V,N,H){H=H===void 0?!1:H;if(p.policy.vK)return Math.ceil(p.policy.vK*C);p.policy.td&&(N=Math.abs(N));N/=p.playbackRate;var X=1/Mn(p.n1);V=Math.max(.9*(N-3),tR(p.n1)+p.n1.C.T*X)/X*.8/(C+V);V=Math.min(V,N);p.policy.Gp>0&&H&&(V=Math.max(V,p.policy.Gp));return Y9y(p,V,C)}; Y9y=function(p,C,V){return Math.ceil(Math.max(Math.max(p.policy.Kq,p.policy.m0*V),Math.min(Math.min(p.policy.Y_,31*V),Math.ceil(C*V))))||p.policy.Kq}; RPQ=function(p,C,V){V=zPa(p,C.T.info.F$,V.T.info.F$,0);var N=tR(p.n1)+V/Mn(p.n1);return Math.max(N,N+p.policy.Za-V/C.T.info.F$)}; xv=function(p){return Mn(p.n1,!p.policy.Pz,p.policy.uv)}; Yv=function(p){return xv(p)/p.playbackRate}; nES=function(p,C,V){var N=p.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],H=p.policy.playbackStartPolicy.startMinReadaheadPolicy||[];p=Infinity;C=g.F(C&&N.length>0?N:H);for(N=C.next();!N.done;N=C.next())N=N.value,H=N.minReadaheadMs||0,V<(N.minBandwidthBytesPerSec||0)||p>H&&(p=H);return p0&&(this.C=V.Mc)}; LpL=function(p,C,V,N,H){if(!N.info.S){if(V.length===0)V.push(N);else{var X;(p=(X=V.pop())==null?void 0:Qv(X,N))?V.push(p):V.push(N)}return H}var d;(V=(d=V.pop())==null?void 0:Qv(d,N))||(V=N);if(p.policy.va&&V.info.C)return p.logger&&p.logger({incompleteSegment:V.info.Zh()}),H;d=p.V5(V);N=d.formatId;H=d.LS;V=d.clipId;X=d.Qu;d=d.startTimeMs;if(!p.policy.XT&&p.policy.C&&p.GB){var a=zJ(p.GB,V);d+=a}N={clipId:V,formatId:N,startTimeMs:d,durationMs:X,WI:H,nx:H,bC:d,aW:X};H=Pw9(C,N.startTimeMs);(V=H>=0?C[H]: null)&&wRX(p,V,N)?N=V:(H+=1,C.splice(H,0,N));V=0;for(X=H+1;X=l+d.C?d=!0:t+d.C=0?p:-p-2}; gES=function(p,C){if(p.NW){var V=p.NW.K7();if(V.length!==0){if(p.V&&C){var N=p.V,H=N.info.Qi;!EJ(V,H)&&N.info.Y>0&&(0,g.Ip)()-p.Y<5E3&&(p.logger&&p.logger({dend:N.info.Zh()}),V=JOS(V,H,H+.01))}p.policy.JB&&p.logger&&p.logger({cbri:""+p.T});N=[];for(var X=H=0;H=d){var t=0;if(p.GB){var c=R8(p.GB,E*1E3);c&&(t=c.SI/1E3)}c=Object.assign({},p.xG[X]);var T=p.hk.V.get(S5(p.xG[X].formatId)), M=Math.max(E,d);d=T.index.tU(M+p.C/1E3-t);E=T.index.getStartTime(d)+t;var J=d+ +(Math.abs(E-M)>p.C/1E3);M=J+p.S;J=(T.index.getStartTime(J)+t)*1E3;X!==p.T||C?(c.WI=M,c.startTimeMs=J):(p.logger&&p.logger({pEvict:"1",og:c.startTimeMs,adj:E*1E3}),c.WI=d+p.S,c.startTimeMs=E*1E3);c.bC=c.startTimeMs;d=void 0;E=((d=p.V)==null?void 0:d.info.duration)||11;X===p.T&&ap.C/1E3);d=E+p.S;t=(T.index.TV(E)+t)*1E3;c.nx=d;c.durationMs=t-c.startTimeMs;c.aW=c.durationMs;c.WI<=c.nx&&N.push(c)}lp.C)return!1;if($tX(p,C.formatId,V.formatId))return C.durationMs=Math.max(N,H)-C.startTimeMs,C.aW=C.durationMs,C.nx=Math.max(C.nx,V.nx),!0;if(Math.abs(C.startTimeMs-V.startTimeMs)<=p.C){if(C.durationMs>V.durationMs+p.C){p=C.formatId;var X=C.WI,d=C.nx;C.formatId=V.formatId;C.durationMs=V.durationMs;C.WI=V.WI;C.aW=V.durationMs;C.nx=V.nx;V.formatId=p;V.startTimeMs=H;V.bC=H;V.durationMs=N-H;V.aW=V.durationMs; V.WI=X;V.nx=d;return!1}C.formatId=V.formatId;return!0}N>V.startTimeMs&&(C.durationMs=V.startTimeMs-C.startTimeMs,C.aW=C.durationMs,p.policy.iz&&C.clipId===V.clipId&&(C.nx=V.WI-1));return!1}; $tX=function(p,C,V){return C.itag!==V.itag||C.xtags!==V.xtags?!1:p.hk.p4||C.lmt===V.lmt}; rWy=function(p,C,V){if(p.logger){for(var N=[],H=0;H=0&&$v(p.audioTrack,p.T)>=0&&X?((p.videoTrack.W||p.audioTrack.W)&&p.nS.k_("iterativeSeeking",{status:"done",count:p.seekCount}),p.videoTrack.W=!1,p.audioTrack.W=!1):N&&g.mo(function(){if(p.C||!p.policy.ER)W3(p);else{var d=C.startTime,a=C.duration;if(!p.policy.Y){var E=V?p.videoTrack.W:p.audioTrack.W,l=p.videoTrack.Y!==-1&&p.audioTrack.Y!==-1,t=p.T>=d&&p.T432E3&&Cns(p.hk);p.V&&(H=p.V,p.V=0);g.mo(function(){p.policy.Y||Xbe(p,H,102)}); p.nS.k_("initManifestlessSync",{st:H,ost:H+p.nS.yZ(),a:p.audioTrack.Y,v:p.videoTrack.Y});p.S&&(p.S.resolve(H+.1),p.S=null);p.policy.Y&&Xbe(p,H,102)}}}; B3=function(p,C){var V=this;this.aH=p;this.requestNumber=++iba;this.T=this.now();this.a$=this.J=NaN;this.D=this.T;this.V=this.YM=this.W=0;this.Y=this.T;this.Y_=this.Sa=this.R$=this.qW=this.wy=this.sY=this.C=this.S=0;this.Z=this.isActive=!1;this.ER=this.qo=0;this.Sr={t6$:function(){return V.Ti}}; this.n1=C.n1;this.snapshot=zOS(this.n1);this.policy=this.n1.C;this.bq=!!C.bq;this.rW=C.rW;this.v_=C.v_||0;C.BJ&&(this.Vn=new Xs);var N;this.Ti=(N=C.Ti)!=null?N:!1;k$V(this.n1)}; hna=function(p){p.R$=Math.max(p.R$,p.W-p.wy);p.Sa=Math.max(p.Sa,p.D-p.qW);p.sY=0}; GJ=function(p,C,V){xBe(p.n1,C);p.Vn&&(p.Vn.add(Math.ceil(C)-Math.ceil(p.D)),p.Vn.add(Math.max(0,Math.ceil(V/1024)-Math.ceil(p.W/1024))));var N=C-p.D,H=V-p.W;p.YM=H;p.Y_=Math.max(p.Y_,H/(N+.01)*1E3);p.D=C;p.W=V;p.sY&&V>p.sY&&hna(p)}; s5a=function(p,C){p.url=C;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; p4=function(p,C){B3.call(this,p,C);this.Wc=this.Hc=!1;this.Wr=this.b_=Infinity;this.vr=NaN;this.kM=!1;this.UY=NaN;this.Q$=this.KS=this.Qn=0;this.RO=C.RO||1;this.sP=C.sP||this.RO;this.Vv=C.Vv;this.LS=C.LS;this.kq=C.kq;this.HR=C.HR||0;a8H(this);this.gD(this.T);this.X$=(this.UY-this.T)/1E3}; E$X=function(p){var C=p.KS||p.Qn;return C?p.snapshot.delay+Math.min(p.HR,(p.a$-p.J)/1E3)+C:p.X$}; l8Y=function(p,C,V){if(!p.bq){C=Math.max(C,.01);var N=p.v_?Math.max(C,V/p.v_):C;p.n1.C.V&&(N=C,p.v_&&(N=Math.max(C,V/p.v_*N)));ag(p.n1,C,V,N)}}; tOv=function(p){return(p.Y-p.T)/1E3}; a8H=function(p){p.vr=p.T+p.snapshot.delay*1E3;p.kM=!1}; MOs=function(p,C){if(p.Vv&&p.LS!==void 0&&p.kq!==void 0){var V=Math,N=V.min,H=p.b_;var X=p.Vv;var d=p.T;if(cz9(X,p.LS))X=C;else{var a=0;X.q3&&(a=.2);X=d+(X.HR+a)*1E3}p.b_=N.call(V,H,X);V=Math;N=V.min;H=p.Wr;X=p.Vv;d=p.T;a=TB9(X,p.LS,p.kq);a!==2&&(C=a?C:d+X.HR*1E3,X.q3&&(C+=X.HR*1E3));p.Wr=N.call(V,H,C);p.b_<=p.T?a8H(p):(p.vr=p.b_,p.kM=!0)}}; Jzu=function(p,C){if(p.sC(C,1)){var V=p.getUint8(C);V=V<128?1:V<192?2:V<224?3:V<240?4:5}else V=0;if(V<1||!p.sC(C,V))return[-1,C];if(V===1)p=p.getUint8(C++);else if(V===2)V=p.getUint8(C++),p=p.getUint8(C++),p=(V&63)+64*p;else if(V===3){V=p.getUint8(C++);var N=p.getUint8(C++);p=p.getUint8(C++);p=(V&31)+32*(N+256*p)}else if(V===4){V=p.getUint8(C++);N=p.getUint8(C++);var H=p.getUint8(C++);p=p.getUint8(C++);p=(V&15)+16*(N+256*(H+256*p))}else V=C+1,p.focus(V),zk(p,V,4)?p=b5Y(p).getUint32(V-p.jH,!0):(N= p.getUint8(V+2)+256*p.getUint8(V+3),p=p.getUint8(V)+256*(p.getUint8(V+1)+256*N)),C+=5;return[p,C]}; C4=function(p){this.aH=p;this.T=new o4}; jf=function(p,C){this.info=p;this.callback=C;this.state=1;this.C6=this.X2=!1;this.TI=null}; m6S=function(p){return g.oo(p.info.wV,function(C){return C.type===3})}; v$e=function(p,C,V,N){var H=this;N=N===void 0?{}:N;this.policy=C;this.aH=V;this.status=0;this.T=new o4;this.C=0;this.fS=this.S=this.V=!1;this.xhr=new XMLHttpRequest;this.xhr.open(N.method||"GET",p);if(N.headers)for(p=N.headers,C=g.F(Object.keys(p)),V=C.next();!V.done;V=C.next())V=V.value,this.xhr.setRequestHeader(V,p[V]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return H.q$()}; this.xhr.onload=function(){return H.onDone()}; this.xhr.onerror=function(){return H.onError()}; this.xhr.fetch(function(X){H.T.append(X);H.C+=X.length;X=(0,g.Ip)();H.aH.w9(X,H.C)},function(){},N.body||null)}; F6e=function(p,C){this.C=(new TextEncoder).encode(p);this.T=(new TextEncoder).encode(C)}; rLS=function(p,C){var V,N,H;return g.I(function(X){if(X.C==1){if(!C)return X.return(C);V=VN.dB();N=new g.OF(p.C);return g.y(X,N.encrypt(C,p.T),2)}H=X.T;VN.Dk("woe",V,Math.ceil(C.byteLength/16));return X.return(H)})}; jHQ=function(p,C){var V,N,H;return g.I(function(X){if(X.C==1){if(!C)return X.return(C);V=VN.dB();N=new g.OF(p.C);return g.y(X,N.decrypt(C,p.T),2)}H=X.T;VN.Dk("wod",V,Math.ceil(C.byteLength/16));return X.return(H)})}; K6e=function(p,C){var V=this;this.T=p;this.aH=C;this.loaded=this.status=0;this.error="";p=uw(this.T.get("range")||"");if(!p)throw Error("bad range");this.range=p;this.C=new o4;S6a(this).then(function(){V.aH.Kk()},function(N){V.error=""+N||"unknown_err"; V.aH.Kk()})}; S6a=function(p){var C,V,N,H,X,d,a,E,l,t,c,T,M,J,S;return g.I(function(D){if(D.C==1){p.status=200;C=p.T.get("docid");V=HG(p.T.get("fmtid")||"");N=p.T.get("lmt")||"0";H=+(p.T.get("csz")||0);if(!C||!V||!H)throw Error("Invalid local URL");p.T.get("ck")&&p.T.get("civ")&&(X=new F6e(p.T.get("ck"),p.T.get("civ")));d=p.range;a=Math.floor(d.start/H);E=Math.floor(d.end/H);l=a}if(D.C!=5)return l<=E?g.y(D,V3L(C,V,N,l,X),5):D.EY(0);t=D.T;if(t===void 0)throw Error("invariant: data is undefined");c=l*H;T=(l+1)*H; M=Math.max(0,d.start-c);J=Math.min(d.end+1,T)-(M+c);S=new Uint8Array(t.buffer,M,J);p.C.append(S);p.loaded+=J;p.loaded0&&(H.T=Math.min(H.T+d,10),H.C=X);H.T>0?(H.T--,H=!0):H=!1;if(H)typeof N==="function"&&(N=N()),console.log("plyr."+C,N);else{var a;N=((a=bbv.get(C))!=null?a:0)+1;bbv.set(C,N);N%100===1&&console.warn("plyr","plyr."+C+" is chatty, dropping logs.")}}}; I8L=function(){this.T=10;this.C=Date.now()}; XM=function(p,C){g.Y.call(this);var V=this;this.policy=p;this.wV=C;this.C=0;this.T=null;this.Ng=[];this.V=null;this.Sr={Ux:function(){return V.wV}}; this.wV.length===1||g.oo(this.wV,function(N){return!!N.range})}; dd=function(p,C,V){p.T&&(k9(p.T,C),C=p.T,p.T=null);for(var N=0,H=0,X=g.F(p.wV),d=X.next();!d.done;d=X.next())if(d=d.value,d.range&&N+d.V<=p.C)N+=d.V;else{C.getLength();if(O9(d)&&!V&&p.C+C.getLength()-H=400?(p.lastError="net.badstatus",!0):(H===void 0?0:H)?(p.lastError="ump.spsrejectfailure",!0):V||N!==void 0&&N?!1:(p.lastError=C===204?"net.nocontent":"net.connect",!0)}; l2=function(p,C){if(p.policy.bj)return!1;var V=C.getResponseHeader("content-type"),N=C.j9();p=!N||N<=p.policy.NG;return(!C.hV()||!V||V.indexOf("text/plain")!==-1)&&p}; znY=function(p,C){var V="";C=C.Hg();C.getLength()<=p.policy.NG&&(V=Y6H(p,C.AB()));return V}; Y6H=function(p,C){var V=eL(C);return XY(V)?(p.logger.debug(function(){return"Redirecting to "+V}),V):""}; ht=function(p){return Tn(p.V,So(p.sO.GU))}; RnQ=function(p){var C=p.timing.cK();C.shost=So(p.sO.GU);return C}; n$X=function(p,C){return(p==null?void 0:p.maxWidth)>(C==null?void 0:C.maxWidth)||(p==null?void 0:p.maxHeight)>(C==null?void 0:C.maxHeight)}; enQ=function(p,C){for(var V=g.F(C.keys()),N=V.next();!N.done;N=V.next())if(N=C.get(N.value),N.length!==0){g.hB(N,function(a,E){return E.maxFramerate-a.maxFramerate}); for(var H=[N[0]],X=0,d=1;dp.T||V.push(N)}return V}; W6Y=function(p,C,V){var N=$6e[p]||[];V.G("html5_shorts_onesie_mismatched_fix")&&(N=L6X[p]||[]);C.push.apply(C,g.K(N));V.G("html5_early_media_for_drm")&&C.push.apply(C,g.K(g$y[p]||[]))}; CLs=function(p,C){var V=g.aM(p),N=p.K(),H=N.W;N=N.G("html5_shorts_onesie_mismatched_fix");var X=p.rR();if(N){if(!H.V){if(X&&tt)return tt;if(cI)return cI}}else if(cI&&!H.V)return cI;var d=[],a=[],E={},l=TX.concat(Q51);N&&(l=TX.concat(rzS));p.G("html5_early_media_for_drm")&&(l=l.concat(BBY),p.G("allow_vp9_1080p_mq_enc")&&l.push(GFu));var t=[].concat(g.K(pgu));if(V.Z)for(var c=0;cV.Tp)){var S=g.mi(p.K().experiments,"html5_drm_byterate_soft_cap");S>0&&TeV(J)&&J.F$>S||(c?(d.push(M),W6Y(M,d,p)):(J=Ec(V,J,H),J===!0?(c=!0,d.push(M),W6Y(M,d,p)):E[M]=J))}}}t=g.F(t);for(l=t.next();!l.done;l=t.next())for(l=g.F(l.value),c=l.next();!c.done;c=l.next())if(c=c.value,(T=heu(c))&&T.audio&&(p.G("html5_onesie_51_audio")|| !Gx(T)&&!px(T)))if(T=Ec(V,T,H),T===!0){a.push(c);W6Y(c,a,p);break}else E[c]=T;V.C&&C("orfmts",E);if(N)return H.V&&(H.V=!1,tt=cI=void 0),X?tt={video:d,audio:a}:cI={video:d,audio:a};cI={video:d,audio:a};H.V=!1;return cI}; g.NGS=function(p,C,V){var N=V.W,H=[],X=[],d=V.G("html5_shorts_onesie_mismatched_fix");p=p.rR();var a=TX.concat(Q51);d&&(a=TX.concat(rzS));V.G("html5_early_media_for_drm")&&(a=a.concat(BBY),V.G("allow_vp9_1080p_mq_enc")&&a.push(GFu));var E=[].concat(g.K(pgu));if(C.Z)for(var l=0;l0&&TeV(c)&&c.F$>T)&&Ec(C,c,N)===!0){H.push({videoCodec:jge[gO[t]],maxWidth:c.video.width,maxHeight:c.video.height,maxFramerate:c.video.fps});break}}}}d=g.F(E);for(p=d.next();!p.done;p=d.next())for(p=g.F(p.value),E=p.next();!E.done;E=p.next())if(E=E.value,(a=heu(E))&&a.audio&&(V.G("html5_onesie_51_audio")||!Gx(a)&&!px(a))&&Ec(C,a,N)===!0){X.push({audioCodec:VH9[gO[E]],numChannels:a.audio.numChannels}); break}return{videoFormatCapabilities:H,audioFormatCapabilities:X}}; dny=function(p){var C={},V=p.Ta,N=p.I$,H=V.getVideoData(),X=Y1(0),d=V.getPlayerSize(),a=V.getVisibilityState();X&&(C.mw=X,C.lastManualDirection=DGy(),X=CuS()||0,X>0&&(X=(N.G("html5_use_date_now_for_local_storage")?Date.now():(0,g.Ip)())-X,N.G("html5_use_date_now_for_local_storage")?X>0&&(C.timeSinceLastManualFormatSelectionMs=X):C.timeSinceLastManualFormatSelectionMs=X));C.Dg$=Y1();X=N.G("html5_use_streamer_bandwidth_for_low_latency_live")&&H.isLowLatencyLiveStream;if(N.schedule.a$&&!X){var E;X=N.G("html5_disable_bandwidth_cofactors_for_sabr_live")? !((E=p.wY)==null||!E.Pz):!1;C.qp=Mn(N.schedule,!X)}E=g.Pg();var l=g.PB.medium,t=Math.floor(l*16/9);X=H.rR()?l:t;l=H.rR()?t:l;C.rN=Math.max(d.width*E,X);C.IZ=Math.max(d.height*E,l);C.visibility=a;C.Fca=bV();C.oZ=V.MD()*1E3;var c;if((c=p.wY)==null?0:c.Pv){d=p.Ta.Xm(!0);var T,M,J,S,D,Z;C.LgY={defaultPolicy:((T=d.Bs)==null?void 0:T.T)||0,smooth:((M=d.esn)==null?void 0:M.T)||0,visibility:((J=d.h5n)==null?void 0:J.T)||0,Zx:((S=d.yp)==null?void 0:S.T)||0,performance:((D=d.zF)==null?void 0:D.T)||0,speed:((Z= d.PWe)==null?void 0:Z.T)||0}}else{var f;if((f=p.wY)==null?0:f.MR){var q;C.cq=((q=p.Ta.Xm().zF)==null?void 0:q.T)||0}}N.G("html5_enable_sabr_drm_hd720p")&&p.sabrLicenseConstraint&&(C.sabrLicenseConstraint=p.sabrLicenseConstraint);if(N.G("html5_onesie_media_capabilities")||N.G("html5_enable_server_format_filter"))C.GT=3;N.G("html5_onesie_audio_only_playback")&&hl(H)&&(C.GT=1);mij(H)&&(C.GT=C.GT===void 0?7:C.GT|4);T=H.f9?H.f9:g.aM(H);N.G("html5_onesie_media_capabilities")&&(C.mediaCapabilities=g.NGS(H, T,N));var A;if((A=p.wY)==null?0:A.T&&A.kt){J=N.W;A=[];M=[];S=new Map;N.G("html5_ssap_update_capabilities_on_change")?(J.Z||yMy(J),D=J.Z||[]):D=Array.from(J.T.values());D=g.F(D);for(Z=D.next();!Z.done;Z=D.next())d=Z.value,d.DQ?M.push({audioCodec:VH9[d.o$],numChannels:d.numChannels,spatialCapabilityBitmask:HIy[d.o$]}):(a=jge[d.o$],Z={videoCodec:a,maxWidth:d.maxWidth||0,maxHeight:d.maxHeight||0,maxFramerate:d.maxFramerate||0,is10BitSupported:d.R2||!1},d.maxBitrateBps&&(Z.maxBitrateBps=d.maxBitrateBps, c=Ck(d.itag),f=void 0,((f=c)==null?0:f.video)&&Ec(T,c,J)===!0&&(c=c.F$*8,c>Z.maxBitrateBps&&(Z.maxBitrateBps=c))),d=a+"_"+d.R2,a=S.get(d)||[],a.push(Z),S.set(d,a));A=enQ(A,S);J={};N.G("html5_ssff_denylist_opus_low")&&(J={itagDenylist:[249,350]});C.mediaCapabilities={videoFormatCapabilities:A,audioFormatCapabilities:M,hdrModeBitmask:3,perPlaybackAttributes:J}}var z;if((z=p.wY)==null?0:z.T){C.Oi=T.Oi;var Q;C.Tp=(Q=p.wY)==null?void 0:Q.Tp}N.jZ&&(C.Jn=N.jZ);C.hZ=p.VH;C.b7=p.b7;C.n8=p.n8;C.Q2=p.Q2;if(N.G("html5_fix_time_since_last_seek_reporting")? p.Z$!==void 0:p.Z$)C.qVr=(0,g.Ip)()-p.Z$;p.isPrefetch&&N.G("html5_report_prefetch_requests")&&(C.isPrefetch=!0);gB||(C.ZK=!0);z=tR(N.schedule)*1E3;z>0&&(C.u4=z);var P;((P=p.wY)==null?0:P.E5)&&p.MQ&&p.MQ0?VL:N.schedule.interruptions[0]||0);var au;if((au=p.wY)==null?0:au.YM)C.Pb=p.Pb;var W;((W=p.wY)==null?0:W.Up)&&H.JF&&(C.audioTrackId=H.JF);var e;if((e=p.wY)==null?0:e.CG)if(p=tpV())C.detailedNetworkType=Xge[p]||Xge.other;return C}; Mx=function(p,C,V,N,H,X){var d={};C&&(d.x3=C);if(!p)return d;d.playbackCookie=V==null?void 0:V.playbackCookie;H&&(d.jN=H);d.Ty=[];d.p6=[];if(g.pf(p)&&p.sabrContextUpdates.size>0)for(C=g.F(p.sabrContextUpdates.values()),V=C.next();!V.done;V=C.next())iIY(d,V.value,N);$B(p)&&!g.pf(p)&&p.G("html5_enable_sabr_request_pipelining")&&X&&iIY(d,X,N);p.Ik&&(d.N6Y=p.Ik);N=p.K().T;d.clientInfo={clientName:hgy[N.c.toUpperCase()]||0};N.cbrand&&(d.clientInfo.deviceMake=N.cbrand);N.cmodel&&(d.clientInfo.deviceModel= N.cmodel);N.cver&&(d.clientInfo.clientVersion=N.cver);N.cos&&(d.clientInfo.osName=N.cos);N.cosver&&(d.clientInfo.osVersion=N.cosver);N=p.K();N.G("html5_sabr_enable_server_xtag_selection")&&N.ER&&(d.clientInfo.hl=N.ER);p.ac&&(d.ac=p.ac);return d}; iIY=function(p,C,V){var N=C.type||0;(V==null?0:V.has(N))?p.p6.push(C):p.Ty.push(N)}; P3=function(p,C,V,N,H,X){var d=X===void 0?{}:X;var a=d.gA===void 0?[]:d.gA;var E=d.Oy===void 0?!1:d.Oy;var l=d.eA===void 0?0:d.eA;var t=d.poToken===void 0?"":d.poToken;var c=d.z7===void 0?void 0:d.z7;var T=d.Mf===void 0?"":d.Mf;var M=d.mf===void 0?0:d.mf;var J=d.TU===void 0?new Uint8Array(0):d.TU;var S=d.Hd===void 0?!1:d.Hd;X=d.bL===void 0?0:d.bL;d=d.x3===void 0?void 0:d.x3;jf.call(this,C,H);var D=this;this.policy=p;this.logger=new g.HI("dash/request");this.A7=this.zI=0;this.JN=!1;this.x5=this.J8= null;this.h$=!1;this.TU=this.mf=null;this.J3=this.dS=!1;this.aY=null;this.bL=this.Rc=0;this.Hj=!1;this.Sr={UZ:function(f){D.UZ(f)}, rFS:function(){return D.TI}, YKn:function(f){D.TI=f}, R2Y:function(f){D.zI=f}, Pq$:function(f){D.uJ.lastError=f}, Yw:function(){return D.xhr}}; this.timing=new p4(this,V);this.Oy=E;this.mf=M;this.TU=J;this.sO=g.YE(this.info,this.policy,N);this.sO.set("rn",this.ZM().toString());this.sO.set("rbuf",(l*1E3).toFixed().toString());this.Oy&&this.sO.set("smb","1");this.policy.Uh&&t&&this.sO.set("pot",t);T&&this.sO.set("bbs",T);this.policy.useUmp&&!Kw(this.sO.GU)&&(this.Ge=new C4(this),this.sO.set("ump","1"),this.sO.set("srfvp","1"));if(p=this.policy.Kt?this.policy.Di&&!isNaN(this.info.kq)&&this.info.kq>this.policy.Nq?!1:!0:!1)C=null,this.policy.mH&& this.policy.yV?C=[1]:S&&(C=[]),C!=null&&(this.policy.tY&&C.push(2),this.sO.set("defsel",C.join(",")));this.uJ=new i2(this,this.policy,this.sO,this.info.sR,this.timing,this.logger,N,c);this.gA=a||null;this.C6=sgS(this);Azy(this.uJ);N=void 0;if(this.policy.CK||this.Ge||this.policy.vr)N={method:"POST"},a=(0,g.Jt)([120,0]),c={},this.policy.Hv&&d&&(d=Mx(void 0,d),c.Fz=d),this.policy.Pj&&this.TU&&(c.videoPlaybackUstreamerConfig=this.TU),this.policy.vr&&(d=this.info.S)&&Object.assign(c,d),Object.keys(c).length> 0?N.body=g.l8(c,g.rr):N.body=a;if(this.mf&&this.TU){this.sO.set("iwts","1");N={method:"POST"};d={Q2:this.mf*1E3};var Z;a=(Z=this.info.S)==null?void 0:Z.eS;Z=g.l8({Tv:d,eS:a||void 0,videoPlaybackUstreamerConfig:this.TU},g.rr);N.body=Z}try{this.xhr=Nx(this.sO,this.policy.J,this.timing,p,N),this.uJ.C.start(),X&&(this.jX=new g.N8(this.gQ,X,this),this.jX.start(X+(this.timing.n1.J.Kd()||0)*1E3)),this.policy.xr&&s5a(this.timing,this.i9()),this.logger.debug(function(){return"Sent, itag="+D.sO.get("itag")+ " seg="+D.info.wV[0].LS+" range="+D.sO.get("range")+" time="+Math.round(D.info.wV[0].Qi)+"-"+Math.round(g.wY(D.info.wV).zM)+" rtp="+(D.timing.SQ()-Date.now()).toFixed(0)}),g.mo(function(){})}catch(f){aW1(this,f,!0)}}; sgS=function(p){if(!(xE(p.info)&&p.info.Ti()&&p.policy.f9&&p.gA)||p.info.sR.C>=2||Y1()>0||!fSj())return!1;var C=p.sO.get("aitags");if(!C)return!1;C=HG(C).split(",");for(var V=[],N=g.F(p.gA),H=N.next();!H.done;H=N.next())H=H.value,g.W5(C,H)&&V.push(H);if(!V.length)return!1;p.sO.set("altitags",g.N$(V.join(",")));return!0}; aW1=function(p,C,V){V=V===void 0?!1:V;g.nm(C);p.uJ.lastError="player.exception";p.errorMessage=C.name+"_"+C.message;V?g.mo(function(){aA(p.uJ)}):aA(p.uJ)}; ESL=function(p,C){p.timing.Z=!0;p.xhr.hV()&&p.timing.IA();if(p.policy.I6){var V;(V=p.jX)==null||V.stop()}dd(p.TI,C,!1)}; lWY=function(p,C){p.info=C;if(p.TI){var V=p.TI;C=C.wV;(C.length!==V.wV.length||C.length0){C=g.F(C.wV);for(var V=C.next();!V.done;V=C.next()){var N=void 0;p+=((N=V.value.range)==null?void 0:N.length)||0}return p}if(C.C8.length>0)for(V=g.F(C.C8),N=V.next();!N.done;N=V.next())p+=N.value.yA||0;return p+C.J$}; F4V=function(p,C){if(Sf){var V=0;p=p.hc.get(C);if(p==null||!p.Ef)return 0;p=g.F(p.Ef.values());for(C=p.next();!C.done;C=p.next())V+=C.value.data.getLength();return V}return((V=p.hc.get(C))==null?void 0:V.Ng.getLength())||0}; DX=function(p,C){p=p.hc.get(C);if(Sf){if(p==null||!p.g3)return!1;C=p.Ef.size>0;return p.Xr.length>0||C}return!(p==null||!p.g3)&&!(p==null||!p.Ng.getLength())}; Sej=function(p,C){var V=p.hc.get(C),N=vSY(p,C),H=!N&&!!V.bytesReceived;if(Sf){var X;if((X=p.hk)==null?0:X.p4){p=g.F(V.Ef.values());for(C=p.next();!C.done;C=p.next())if(!C.value.Lg)return!1;return H}}else if(X=p.zC(C),H&&p.T&&X!==void 0)return X;return(H||V.bytesReceived===N)&&V.ZV+F4V(p,C)===V.bytesReceived}; K4Q=function(p,C,V){p.hc.set(C,{Ng:new o4,ZV:0,bytesReceived:0,J$:0,P2:!1,gI:!1,zC:!1,DQ:V,aE:[],wV:[],C8:[],g3:!1,Ef:new Map,tK:new Map,Xr:[]});p.logger.debug(function(){return"[initStream] formatId: "+C})}; DnX=function(p,C,V,N){V.wV.push.apply(V.wV,g.K(N));if(Sf){V.tK.has(C)||V.tK.set(C,[]);var H;(H=V.tK.get(C)).push.apply(H,g.K(N))}else if(V.TI)for(p=g.F(N),C=p.next();!C.done;C=p.next())V.TI.wV.push(C.value);else{V.TI=new XM(p.wY,[].concat(g.K(V.wV)));var X;((X=p.wY)==null?0:X.gR)&&g.R(p,V.TI)}}; usy=function(p,C,V){var N,H=(N=p.hk)==null?void 0:N.V.get(C);if(!H)return[];if(V.h9){var X;return((X=H.ZU(0,V.clipId))==null?void 0:X.wV)||[]}if(H.V1()){var d=V.startMs,a=V.durationMs,E=1E3,l;if(((l=p.wY)==null?0:l.T)&&V.timeRange){var t;d=(t=V.timeRange.wI)!=null?t:-1;var c;a=(c=V.timeRange.zT)!=null?c:-1;var T;E=(T=V.timeRange.Sz)!=null?T:-1}if(V.RW<0||V.o9<0||a<0||d<0||V.yA<0||E<0)return K4(p,C),[];p=Z0(V.RW,V.yA);C=V.ww||0;return[new fp(3,H,p,"makeSliceInfosMediaBytes",V.o9-1,d/E,a/E,C,p.length- C,void 0,V.R5,V.clipId)]}if(V.o9<0)return K4(p,C),[];var M;return((M=p.hk)==null?0:M.p4)?(C=H.Ym,l=C*H.info.F$,t=((d=p.wY)==null?0:d.va)?V.ww:void 0,((E=p.wY)==null?0:E.ra)&&V.timeRange&&!t&&(a=V.timeRange.wI/V.timeRange.Sz),[new fp(3,H,void 0,"makeSliceInfosMediaBytes",V.o9,a,C,t,l,!0,V.R5,V.clipId)]):[]}; ZIv=function(p,C,V){p.hk=C;p.wY=V;C=g.F(p.hc);for(V=C.next();!V.done;V=C.next()){var N=g.F(V.value);V=N.next().value;N=N.next().value;for(var H=g.F(N.aE),X=H.next();!X.done;X=H.next()){X=X.value;var d=usy(p,V,X);DnX(p,X.Qz,N,d)}}}; u2=function(p,C,V,N){p.logger.debug(function(){return"[addStreamData] formatId: "+V+",headerId: "+C+" bytes: "+N.getLength()}); (p=p.hc.get(V))&&!p.gI&&(Sf?(p.Ef.has(C)||p.Ef.set(C,{data:new o4,kT:0,Lg:!1}),k9(p.Ef.get(C).data,N)):k9(p.Ng,N),p.bytesReceived+=N.getLength(),p.P2=!0)}; JRj=function(p,C){p.logger.debug(function(){return"[closeStream] formatId: "+C}); var V=p.hc.get(C);V&&!V.gI&&(V.gI=!0,V.Nn&&V.Nn(),Une(p)&&p.S.bV())}; Une=function(p){p=g.F(p.hc.values());for(var C=p.next();!C.done;C=p.next())if(!C.value.gI)return!1;return!0}; ZX=function(p,C,V,N,H,X,d,a){g.Y.call(this);this.policy=p;this.info=C;this.hk=V;this.aH=H;this.OQ=a;this.logger=new g.HI("sabr");this.Ge=new C4(this);this.tN=new TGe(this);this.g6=new FM(this);this.state=1;this.B0=!1;this.JZ=0;this.clipId="";this.u3=this.ox=-1;this.LB=0;this.v4=-1;this.Hj=this.cL=!1;this.vQ=0;this.ZW=!1;this.policy.Yu?this.MZ=new mB(this,X):this.MZ=new p4(this,X);this.sO=this.policy.YM?C.s1:fWX(C,this.policy,N);this.sO.set("rn",""+this.ZM());this.sO.set("alr","yes");ZIv(this.g6,V, p);this.uJ=new i2(this,this.policy,this.sO,C.sR,this.MZ,this.logger,N,d,this.policy.enableServerDrivenRequestCancellation);Azy(this.uJ);var E;if((E=this.policy)==null?0:E.gR)g.R(this,this.g6),g.R(this,this.uJ);p=C.C;C={method:"POST",body:p};p&&(this.LB=p.length);try{this.xhr=Nx(this.sO,this.policy.J,this.MZ,gB,C),this.policy.xr&&s5a(this.MZ,this.i9()),this.uJ.C.start()}catch(l){g.eG(l)}}; OIL=function(p){p.policy.QR&&p.C5&&!p.ZW?p.ZW=!0:p.MZ.IA()}; yRj=function(p,C){var V=-1,N=-1,H=-1,X;if((X=p.OP)==null?0:X.items)for(p=g.F(p.OP.items),X=p.next();!X.done;X=p.next())X=X.value,C=a,E=p.hk.isManifestless&&p.policy.AI, d){var l;if(((l=p.T)==null?void 0:l.xB.event)==="predictStart"&&p.T.LSp.W&&(p.W=NaN,p.D=NaN);if(p.T&&p.T.LS===C){X=p.T;N=X.xB;var d=H.qE(N);N.event==="predictStart"&&(p.b_=C);p.k_("sdai",{onqevt:N.event,sq:C,mt:V,gab:d,cst:N.startSecs});if(d)N.event!=="predictStart"?(N.event==="start"&&p.b_===C-1&&p.k_("sdai",{gabonstart:C}),X.fJ?O4(p,4,"cue"):(p.W=C,p.D=V,p.k_("sdai",{joinad:p.C,sg:p.W,st:p.D.toFixed(3)}), p.Z=Date.now(),O4(p,2,"join"),H.L3(X.xB))):(p.policy.W?(p.V=Math.floor(V-N.T/1E3),p.k_("sdai",{onpred:V,est:p.V})):(p.S=C+Math.max(Math.ceil(-N.T/5E3),1),p.k_("sdai",{onpred:C,est:p.S})),p.Z=Date.now(),O4(p,3,"predict"),H.L3(X.xB));else if(p.C===1){var a;((a=p.Y)==null?0:a.GG(V))?(gSS(p.nS,V,V,C),O4(p,4,"sk2had")):O4(p,5,"nogab")}else N.event==="predictStart"&&(p.policy.W&&p.V>0?(V=Math.floor(V-N.T/1E3),p.V!==V&&p.k_("sdai",{updateSt:V,old:p.V}),p.V=V):p.S>0&&(V=C+Math.max(Math.ceil(-N.T/5E3),1), p.S!==V&&(p.k_("sdai",{updateSt:V,old:p.S}),p.S=V)));var E,l;if(p.VL&&N.event==="start"&&((E=p.T)==null?void 0:E.xB.event)!=="predictStart"&&((l=p.T)==null?void 0:l.LS)===C-1){var t;p.k_("sdai",{ovlpst:(t=p.T)==null?void 0:t.xB.event,sq:C})}}else p.C===1&&O4(p,5,"noad")}; rRQ=function(p,C,V){if(p.C===1||p.C===2)return!1;if(p.C!==0&&C===p.audioTrack){if(p.policy.W)return W4a(p.videoTrack,V)||W4a(p.videoTrack,V+1);p=Qgs(p.videoTrack);if(V>(p?p.LS:-1))return!1}return!0}; yN=function(p,C,V){return(V<0||V===p.W)&&!isNaN(p.D)?p.D:C}; PL1=function(p,C){if(p.T){var V=p.T.xB.uc-(C.startTime+p.J-p.T.xB.startSecs);V<=0||(V=new xg(p.T.xB.startSecs-(isNaN(p.J)?0:p.J),V,p.T.xB.context,p.T.xB.identifier,"stop",p.T.xB.T+C.duration*1E3),p.k_("cuepointdiscontinuity",{segNum:C.LS}),f4(p,V,C.LS))}}; O4=function(p,C,V){p.C!==C&&(p.k_("sdai",{setsst:C,old:p.C,r:V}),p.C=C)}; qx=function(p,C,V,N){(N===void 0?0:N)?O4(p,1,"seek"):C>0&&Math.abs(C-V)>=5&&p.C===4&&O4(p,5,"sk2t."+C.toFixed(2)+";ct."+V.toFixed(2))}; IA=function(p,C,V){this.audio=p;this.video=C;this.reason=V}; b2=function(p,C,V){this.T=p;this.reason=C;this.token=V;this.videoId=void 0}; At=function(p,C,V){g.Y.call(this);this.policy=p;this.S=C;this.k_=V;this.V=new Map;this.W=0;this.Y=!1;this.T="";this.C=!1}; oA=function(p,C,V){if(V===void 0?0:V)p.Y=!0;++p.W;V=6E4*Math.pow(2,p.W);V=(0,g.Ip)()+V;p.V.set(C.info.id,V)}; kd=function(p){for(var C=g.F(p.V.entries()),V=C.next();!V.done;V=C.next()){var N=g.F(V.value);V=N.next().value;N=N.next().value;N<(0,g.Ip)()&&p.V.delete(V)}return p.V}; BGX=function(p){return p.Y&&kd(p).size>0}; xd=function(p,C){p.T!==C&&(p.T=C,p.C=!0)}; GMY=function(p,C){var V;C&&(V=g.L0(p.S.T,function(H){return H.id===C})); if(!V&&(V=g.L0(p.S.T,function(H){var X;return!((X=H.K4)==null||!X.isDefault)}),C)){var N; p.k_("iaf",{id:C,sid:(N=V)==null?void 0:N.id})}return V}; p7H=function(p,C,V,N,H,X){var d=this;X=X===void 0?[]:X;this.nS=p;this.sY=C;this.policy=V;this.hk=N;this.Y=H;this.Qn=X;this.logger=new g.HI("dash/abr");this.T=xB;this.C=this.D=null;this.Z=-1;this.vr=!1;this.nextVideo=this.V=null;this.S=[];this.Y_=new Set;this.Wr={};this.KS=new dG(1);this.J=0;this.R$=this.b_=this.a$=!1;this.Vn=0;this.UY=!1;this.Sa=new Set;this.Ga=!1;this.Sr={KB:function(){Yd(d)}}; this.W=new At(this.policy,H,function(a,E){d.nS.k_(a,E)})}; Hku=function(p,C,V){zX(p,C);C=GMY(p.W,V);V||C||(C=Csu(p));C=C||p.Y.T[0];p.V=p.hk.T[C.id];Yd(p);p.D=p.V;jIL(p);VwX(p);p.C=p.nextVideo;p.D=p.V;return NPH(p)}; ikv=function(p,C){if(X7y(p,C))return null;if(C.reason==="m"&&C.isLocked())return p.logger.debug(function(){return"User sets constraint to: "+dH(C)}),zX(p,C),p.J=p.S.length-1,Yd(p),RA(p),p.b_=p.b_||p.C!==p.nextVideo,p.C=p.nextVideo,new IA(p.V,p.C,C.reason); C.reason==="r"&&(p.Z=-1);zX(p,C);RA(p);if(C.reason==="r"&&p.nextVideo===p.C)return new IA(p.V,p.nextVideo,C.reason);dFL(p);return null}; hBy=function(p,C,V){p.V=p.hk.T[C];p.D=p.V;return new IA(p.D,p.C,V?"t":"m")}; sIX=function(p,C){if(C.info.video){if(p.C!==C)return p.C=C,NPH(p)}else p.R$=p.D!==C,p.D=C;return null}; aby=function(p,C){if(C.T.info.video&&C.S){var V=(C.C+C.V)/C.duration,N=C.T.info.F$;V&&N&&(p.KS.N3(1,V/N),p.policy.V&&V/N>1.5&&p.nS.k_("overshoot",{sq:C.LS,br:V,max:N}))}}; n4=function(p,C,V){oA(p.W,C,V===void 0?!1:V);p.Z=-1;zX(p,p.T)}; EBu=function(p,C){return new IA(p.D,p.C,C||p.T.reason)}; dFL=function(p){if(p.C&&p.nextVideo&&ef(p,p.C.info)p.policy.Tp,a=H<=p.policy.Tp?BB(N):Qu(N);if(!X||d||a)V[H]=N}return V}; zX=function(p,C){p.T=C;var V=p.Y.videoInfos;if(!p.T.isLocked()){var N=(0,g.Ip)();V=g.JT(V,function(a){if(a.F$>this.policy.F$)return!1;var E=this.hk.T[a.id];return kd(this.W).get(a.id)>N?!1:E.sR.C>4||E.Y>4?(this.logger.debug(function(){return"Remove "+iX(a)+"; 4 load failures"}),!1):this.Sa.has(+a.itag)?!1:!0},p); BGX(p.W)&&(V=g.JT(V,function(a){return a.video.width<=854&&a.video.height<=480}))}V.length||(V=p.Y.videoInfos); var H=V;p.policy.BK&&(H=twX(p,H,C));H=g.JT(H,C.S,C);if(p.T.isLocked()&&p.W.T){var X=g.L0(V,function(a){return a.id===p.W.T}); X?H=[X]:xd(p.W,"")}p.policy.BK||(H=twX(p,H,C));H.length||(H=[V[0]]);H.sort(function(a,E){return ef(p,a)-ef(p,E)}); C={};for(V=1;VC.hs.video.width?(g.Q8(H,V),V--):ef(p,C.T9)*p.policy.Z>ef(p,C.hs)&&(g.Q8(H,V-1),V--);var d=H[H.length-1];p.UY=!!p.C&&!!p.C.info&&p.C.info.o$!==d.o$;p.logger.debug(function(){return"Constraint: "+dH(p.T)+", "+H.length+" fmts selectable, max selectable fmt: "+iX(d)}); p.S=H;p.Y_.clear();C=!1;for(V=0;V=1080&&(C=!0);cAa(p.policy,d,p.hk.p4)}; twX=function(p,C,V){var N=V.reason==="m"||V.reason==="s";p.policy.g1&&PI&&g.D1&&(!N||V.T<1080)&&(C=C.filter(function(l){return l.video&&(!l.C||l.C.powerEfficient)})); if(C.length>0)if(rN()){var H=lby(p,C);C=C.filter(function(l){return!!l&&!!l.video&&l.o$===H[l.video.T].o$})}else{var X,d,a=(X=C[0])==null?void 0:(d=X.video)==null?void 0:d.T; if(a){V=C.filter(function(l){return!!l&&!!l.video&&l.video.T===a}); var E=lby(p,V)[a].o$;C=C.filter(function(l){return!!l&&!!l.video&&l.o$===E})}}return C}; TPa=function(p,C){for(var V=0;V+1N}; Yd=function(p){if(!p.V||!p.policy.S&&!p.V.info.K4){var C=p.Y.T;p.V&&(C=C.filter(function(N){return N.audio.T===p.V.info.audio.T}),C.length||(C=p.Y.T)); p.V=p.hk.T[C[0].id];if(C.length>1&&(!p.policy.BI||!p.policy.Wc)){var V=!1;if(V=p.policy.QZ?!0:p.T.isLocked()?p.T.T<240:TPa(p,p.V))p.V=p.hk.T[g.wY(C).id]}}}; RA=function(p){if(!p.nextVideo||!p.policy.S)if(p.T.isLocked())p.nextVideo=p.T.T<=360?p.hk.T[p.S[0].id]:p.hk.T[g.wY(p.S).id],p.logger.debug(function(){return"Select max fmt: "+iX(p.nextVideo.info)}); else{for(var C=Math.min(p.J,p.S.length-1),V=Yv(p.sY),N=ef(p,p.V.info),H=V/p.policy.a$-N;C>0&&!(ef(p,p.S[C])<=H);C--);for(var X=V/p.policy.Z-N;C=X);C++);p.nextVideo=p.hk.T[p.S[C].id];p.J!==C&&p.logger.info(function(){return"Adapt to: "+iX(p.nextVideo.info)+", bandwidth: "+V.toFixed(0)+", bandwidth to downgrade: "+H.toFixed(0)+", bandwidth to upgrade: "+X.toFixed(0)+", constraint: "+dH(p.T)}); p.J=C}}; jIL=function(p){var C=p.policy.a$,V=Yv(p.sY),N=V/C-ef(p,p.V.info);C=g.gY(p.S,function(H){return ef(this,H)X?H=0:N[d]>p.buffered[d]&&(d===X-1?H=2:d===X-2&&N[d+1]>p.buffered[d+1]&&(H=3))}p.T.add(C<<3|(V&&4)|H);C=Math.ceil(p.track.MD()*1E3);p.T.add(C-p.W);p.W=C;if(H===1)for(p.T.add(X),d=C=0;d=2&&p.T.add(N[X- 1]-p.buffered[X-1]);V&&p.T.add(V);p.buffered=N}; Kxa=function(p,C,V){var N=this;this.policy=p;this.T=C;this.Vn=V;this.S=this.C=0;this.lW=null;this.a$=new Set;this.Z=[];this.indexRange=this.initRange=null;this.J=new hK;this.b_=this.sY=!1;this.Sr={n$n:function(){return N.V}, eT$:function(){return N.chunkSize}, f$V:function(){return N.D}, ieo:function(){return N.Y}}; (C=Sja(this))?(this.chunkSize=C.csz,this.V=Math.floor(C.clen/C.csz),this.D=C.ck,this.Y=C.civ):(this.chunkSize=p.uj,this.V=0,this.D=g.OI(16),this.Y=g.OI(16));this.W=new Uint8Array(this.chunkSize);this.D&&this.Y&&(this.crypto=new F6e(this.D,this.Y))}; Sja=function(p){if(p.policy.i8&&p.policy.Wv)for(var C=g.F(p.policy.i8),V=C.next(),N={};!V.done;N={F3:void 0,E$:void 0},V=C.next())if(V=g.sk(V.value),N.F3=+V.clen,N.E$=+V.csz,N.F3>0&&N.E$>0&&p.policy.S===V.docid&&p.T.info.id===V.fmtid&&p.T.info.lastModified===+V.lmt)return p={},p.clen=N.F3,p.csz=N.E$,p.ck=V.ck,p.civ=V.civ,p}; $d=function(p){return!!p.lW&&p.lW.Vo()}; fbS=function(p,C){if(!$d(p)&&!p.fS()){if(!(p.sY||(p.sY=!0,p.V>0))){var V=DF9(p);V=fk(p.policy.S,p.T.info,L4(p),V,p.policy.qo);utH(p,V)}if(C.info.type===1){if(p.lW){gd(p,Error("Woffle: Expect INIT slices to always start us off"));return}p.initRange=Z0(0,C.T.getLength())}else if(C.info.type===2)p.lW&&p.lW.type===1||gd(p,Error("Woffle: Index before init")),p.indexRange=Z0(p.initRange.end+1,C.T.getLength());else if(C.info.type===3){if(!p.lW){gd(p,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(p.lW.type===3&&!qt(p.lW,C.info)&&(p.Z=[],C.info.LS!==IZ(p.lW)||C.info.C!==0))return;if(C.info.S){V=g.F(p.Z);for(var N=V.next();!N.done;N=V.next())ZkV(p,N.value);p.Z=[]}else{p.Z.push(C);p.lW=C.info;return}}else{gd(p,Error("Woffle: Unexpected slice type"));return}p.lW=C.info;ZkV(p,C);UFe(p)}}; ZkV=function(p,C){var V=0,N=C.T.AB();if(p.S=N.length)return;if(V<0)throw Error("Missing data");p.S=p.V;p.C=0}for(H={};V0){var d=N.getUint32(V+28);X+=d*16+4}var a=N.getUint32(V+X-4);try{var E=bkQ(C.subarray(V+X,V+X+a));if(E!==null){var l=E;break a}}catch(t){}}V+=H}l=null;break a}catch(t){l=null;break a}l=void 0}if(l!=null)for(C=aO(xK(l,7)),C==null||p.Ft||(p.cryptoPeriodIndex=C),C=aO(xK(l,10)),C!=null&&C>0&&!p.Ft&&(p.T=C),l=gw(l, 2,cBs,void 0===JBY?2:4),l=g.F(l),C=l.next();!C.done;C=l.next())p.V.push(g.mq(f6(C.value),4))}; oB1=function(p){return isNaN(p.cryptoPeriodIndex)?g.mq(p.initData):""+p.cryptoPeriodIndex}; rd=function(p,C,V){var N=V===void 0?{}:V;V=N.videoDuration===void 0?0:N.videoDuration;var H=N.wA===void 0?void 0:N.wA;N=N.tR===void 0?!1:N.tR;this.videoId=p;this.status=C;this.videoDuration=V;this.wA=H;this.tR=N}; ke9=function(p,C,V,N,H){this.videoId=p;this.Qq=C;this.C=V;this.bytesDownloaded=N;this.T=H}; BI=function(p){this.T=p;this.offset=0}; xF9=function(p){if(p.offset>=p.T.getLength())throw Error();return p.T.getUint8(p.offset++)}; Yjv=function(p,C){C=C===void 0?!1:C;var V=xF9(p);if(V===1){C=-1;for(V=0;V<7;V++){var N=xF9(p);C===-1&&N!==255&&(C=0);C>-1&&(C=C*256+N)}return C}N=128;for(var H=0;H<6&&N>V;H++)V=V*256+xF9(p),N*=128;return C?V:V-N}; zBY=function(p){try{var C=Yjv(p,!0),V=Yjv(p,!1);return{id:C,size:V}}catch(N){return{id:-1,size:-1}}}; RBV=function(p){for(var C=new BI(p),V=-1,N=0,H=0;!N||!H;){var X=zBY(C),d=X.id;X=X.size;if(d<0)return;if(d===176){if(X!==2)return;N=C.MB()}else if(d===186){if(X!==2)return;H=C.MB()}d===374648427?V=C.MB()+X:d!==408125543&&d!==174&&d!==224&&C.skip(X)}C=R4(p,0,V);V=new DataView(C.buffer);V.setUint16(N,3840);V.setUint16(H,2160);N=new o4([C]);k9(N,p);return N}; eBY=function(p,C,V){var N=this;this.nS=p;this.policy=C;this.Y=V;this.logger=new g.HI("dash");this.C=[];this.T=null;this.sY=-1;this.Z=0;this.Sa=NaN;this.a$=0;this.V=NaN;this.J=this.vr=0;this.UY=-1;this.Wr=this.W=this.S=this.Vn=null;this.KS=this.R$=NaN;this.D=this.b_=this.Y_=this.Qn=null;this.qo=!1;this.Ga=this.timestampOffset=0;this.Sr={ou:function(){return N.C}}; if(this.policy.S){var H=this.Y,X=this.policy.S;this.policy.qo&&p.k_("atv",{ap:this.policy.qo});this.D=new Kxa(this.policy,H,function(d,a,E){GX(p,new rd(N.policy.S,2,{wA:new ke9(X,d,H.info,a,E)}))}); this.D.J.promise.then(function(d){N.D=null;d===1?GX(p,new rd(N.policy.S,d)):N.nS.k_("offlineerr",{status:d.toString()})},function(d){var a=(d.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); d instanceof WI&&!d.T?(N.logger.info(function(){return"Assertion failed: "+a}),N.nS.k_("offlinenwerr",{em:a}),nBu(N),GX(p,new rd(N.policy.S,4))):(N.logger.info(function(){return"Failed to write to disk: "+a}),N.nS.k_("dldbwerr",{em:a}),nBu(N),GX(p,new rd(N.policy.S,4,{tR:!0})))})}}; PsX=function(p){return p.C.length?p.C[0]:null}; w71=function(p,C){return p.C.some(function(V){return V.info.LS===C})}; BPy=function(p,C,V,N){N=N===void 0?0:N;if(p.W){var H=p.W.C+p.W.V;if(V.info.C>0)if(V.info.LS===p.W.LS&&V.info.C=0&&p.W.LS>=0&&!qt(p.W,V.info))throw new g.Bw("improper_continuation",p.W.Zh(),V.info.Zh());cKX(p.W,V.info)||$FH(p,"d")}else if(V.info.C>0)throw new g.Bw("continuation_of_null",V.info.Zh());p.W=V.info;p.Y=V.info.T;if(V.info.C===0){if(p.T)if(!p.nS.isOffline()||p.policy.tB)p.nS.k_("slice_not_fully_processed",{buffered:p.T.info.Zh(), push:V.info.Zh()});else throw new g.Bw("slice_not_fully_processed",p.T.info.Zh(),V.info.Zh());pA(p);p.vr=N}else{if(p.vr&&N&&p.vr!==N)throw p=new g.Bw("lmt_mismatch",V.info.LS,p.vr,N),p.level="WARNING",p;!V.info.T.V1()&&p.S&&(N=V.info,H=p.S.ox,N.W="updateWithEmsg",N.LS=H)}if(p.T){N=Qv(p.T,V);if(!N)throw new g.Bw("failed_to_merge",p.T.info.Zh(),V.info.Zh());p.T=N}else p.T=V;a:{V=g.Cx(p.T.info.T.info);if(p.T.info.type!==3){if(!p.T.info.S)break a;p.T.info.type===6?Lxs(p,C,p.T):gB1(p,p.T);p.T=null}for(;p.T;){N= p.T.T.getLength();if(p.sY<=0&&p.Z===0){var X=p.T.T,d=-1;H=-1;if(V){for(var a=0;a+80))break;if(c!==408125543)if(c===524531317)a=!0,t>=0&&(H=X.MB()+t,E=!0);else{if(a&&(c===160||c===163)&&(d<0&&(d=l),E))break;c===163&&(d=Math.max(0,d),H=X.MB()+t);if(c===160){d<0&&(H=d=X.MB()+t);break}X.skip(t)}}d<0&&(H=-1)}if(d< 0)break;p.sY=d;p.Z=H-d}if(p.sY>N)break;p.sY?(N=Wxe(p,p.sY),N.W&&QIy(p,N),Lxs(p,C,N),rAV(p,N),p.sY=0):p.Z&&(N=Wxe(p,p.Z<0?Infinity:p.Z),p.Z-=N.T.getLength(),rAV(p,N))}}p.T&&p.T.info.S&&(rAV(p,p.T),p.T=null)}; gB1=function(p,C){!C.info.T.V1()&&C.info.C===0&&(g.Cx(C.info.T.info)||C.info.T.info.Ft())&&mVy(C);if(C.info.type===1)try{QIy(p,C),GeH(p,C)}catch(H){g.nm(H);var V=bw(C.info);V.hms="1";p.nS.handleError("fmt.unparseable",V||{},1)}V=C.info.T;V.Ky(C);p.D&&fbS(p.D,C);if(V.rI()&&p.policy.T)a:{p=p.nS.hk;C=C.info.clipId;V=g.VE(V.info,p.p4);if(C){var N=kTV(p,V);if(p.Ga[N])break a;p.Ga[N]=C}p.Wr.push(V)}}; j5s=function(p,C,V){if(p.C.length!==0&&(V||p.C.some(function(X){return X.info.Qi=jX(d)+a):C=p.getDuration()>=d.getDuration(),C=!C;C&&jMe(V)&&(C=p.Vn,CA?(a=MI9(V),d=1/a,a=jX(p,a),C=jX(C)+d-a):C=C.getDuration()- p.getDuration(),C=1+C/V.info.duration,mou(V.b9(),C))}else{d=!1;p.S||(mVy(V),V.C&&(p.S=V.C,d=!0,X=V.info,N=V.C.ox,X.W="updateWithEmsg",X.LS=N,X=V.C,X.Vo&&(N=p.Y.index,N.C=!X.Vo,N.V="emsg"),X=V.info.T.info,N=V.b9(),g.Cx(X)?rH(N,1701671783):X.Ft()&&HR([408125543],307544935,N)));a:if((X=Gn(V,p.policy.Q$))&&JVS(V))a=VK1(p,V),p.J+=a,X-=a,p.a$+=X,p.V=p.policy.lM?p.V+X:NaN;else{if(p.policy.jL){if(N=E=p.nS.zR(rz(V),1),p.V>=0&&V.info.type!==6){if(p.policy.lM&&isNaN(p.R$)){g.eG(new g.Bw("Missing duration while processing previous chunk", V.info.Zh()));p.nS.isOffline()&&!p.policy.tB||NsV(p,V,N);$FH(p,"m");break a}var l=E-p.V,t=l-p.J,c=V.info.LS,T=p.Wr?p.Wr.LS:-1,M=p.KS,J=p.R$,S=p.policy.W8&&l>p.policy.W8,D=Math.abs(t)>10,Z=Math.abs(p.V-N)<1E-7;if(Math.abs(t)>1E-4){p.Ga+=1;var f=(H=p.S)==null?void 0:R2(H);H={audio:""+ +p.DQ(),sq:c.toFixed(),sliceStart:E,lastSq:T.toFixed(),lastSliceStart:M,lastSliceDuration:J,totalDrift:(l*1E3).toFixed(),segDrift:(t*1E3).toFixed(),skipRewrite:""+ +(S||D)};if(f==null?0:f.length)H.adCpn=f[0];p.nS.handleError("qoe.avsync", H);p.UY=c}S||D||Z||(N=p.V);H=VK1(p,V,E);X-=H;p.J=l+H;p.policy.V&&(t&&!Z||H)&&(l=(a=p.S)==null?void 0:R2(a),p.nS.k_("discontinuityRewrite",{adCpn:(l==null?0:l.length)?l.join("."):"",itag:V.info.T.info.itag,sq:V.info.LS,originalStartTime:E,rewrittenStartTime:N,startTimeAdjustment:N-E,segDrift:(t*1E3).toFixed(),originalDuration:X+H,rewrittenDuration:X,durationAdjustment:H}))}}else N=isNaN(p.V)?V.info.startTime:p.V;NsV(p,V,N)&&(p.a$+=X,p.V=N+X,p.policy.i6&&p.Ga>=p.policy.i6&&(p.Ga=0,p.nS.wP({resetForRewrites:"count"})))}p.Wr= V.info;p.R$=BR(V);V.V>=0&&(p.KS=V.V);if(d&&p.S){d=Hf9(p,!0);AW(V.info,d);p.T&&AW(p.T.info,d);C=g.F(C);for(a=C.next();!a.done;a=C.next())a=a.value,H=void 0,p.policy.Y&&a.LS!==((H=p.S)==null?void 0:H.ox)||AW(a,d);(V.info.S||p.T&&p.T.info.S)&&V.info.type!==6||(p.b_=d,p.policy.Qn?(C=X_y(p.S),p.nS.T5(p.Y,d,C)):(C=p.nS,C.hk.isManifestless&&dI9(C,d,null,!!p.Y.info.video)),p.policy.hE||ifu(p))}}GeH(p,V);p.timestampOffset&&TF1(V,p.timestampOffset)}; rAV=function(p,C){if(C.info.S){p.Qn=C.info;if(p.S){var V=p.S,N=Hf9(p,!1);V=X_y(V);p.nS.T5(p.Y,N,V);p.b_||p.policy.hE||ifu(p);p.b_=null}pA(p)}p.D&&fbS(p.D,C);if(N=p.gP())if(N=Qv(N,C,p.policy.Um)){p.C.pop();p.C.push(N);return}p.C.push(C)}; X_y=function(p){if(p.fJ()){var C=p.data["Stitched-Video-Id"]?p.data["Stitched-Video-Id"].split(",").slice(0,-1):[],V=R2(p),N=[];if(p.data["Stitched-Video-Duration-Us"])for(var H=g.F(p.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),X=H.next();!X.done;X=H.next())N.push((Number(X.value)||0)/1E6);H=[];if(p.data["Stitched-Video-Start-Frame-Index"]){X=g.F(p.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var d=X.next();!d.done;d=X.next())H.push(Number(d.value)||0)}H=[]; if(p.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(X=g.F(p.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),d=X.next();!d.done;d=X.next())H.push((Number(d.value)||0)/1E6);p=new IbY(C,V,N,H,g.cyv(p),g.Tns(p))}else p=null;return p}; pA=function(p){p.T=null;p.sY=-1;p.Z=0;p.S=null;p.Sa=NaN;p.a$=0;p.b_=null}; $FH=function(p,C){C={rst4disc:C,cd:p.J.toFixed(3),sq:p.Wr?p.Wr.LS:-1};p.V=NaN;p.J=0;p.UY=-1;p.Wr=null;p.KS=NaN;p.R$=NaN;p.Y_=null;p.nS.k_("mdstm",C)}; GeH=function(p,C){if(p.Y.info.vV){if(C.info.T.info.Ft()){var V=new Gr(C.b9());if(Cp(V,[408125543,374648427,174,28032,25152,20533,18402])){var N=Nt(V,!0);V=N!==16?null:hW(V,N)}else V=null;N="webm"}else C.info.D=yAj(C.b9()),V=qje(C.info.D),N="cenc";V&&V.length&&(V=new QN(V,N),p.policy.Ep&&g.Cx(C.info.T.info)&&(N=uY9(C.b9()))&&(V.C=N),V.Ft=C.info.T.info.Ft(),C.C&&C.C.cryptoPeriodIndex&&(V.cryptoPeriodIndex=C.C.cryptoPeriodIndex),C.C&&C.C.C&&(V.T=C.C.C),p.nS.EA(V))}}; ifu=function(p){var C=p.S,V=ll1(C);V&&(V.startSecs+=p.Sa,p.nS.l1(p.Y,V,C.ox,C.fJ()))}; Hf9=function(p,C){var V,N=p.S;if(V=ll1(N))V.startSecs+=p.Sa;return new Uc(N.ox,p.Sa,C?N.Ym:p.a$,N.ingestionTime,"sq/"+N.ox,void 0,void 0,C,V)}; NsV=function(p,C,V){if(!cV1(C,V))return C=bw(C.info),C.smst="1",p.nS.handleError("fmt.unparseable",C||{},1),!1;isNaN(p.Sa)&&(p.Sa=V);return!0}; VK1=function(p,C,V){var N=0;if(C.info.T.info.Ft()&&!JVS(C))return 0;if(p.Vn&&!p.DQ()){var H=0;V&&g.Cx(C.info.T.info)?H=V-p.V:C.info.T.info.Ft()&&(H=p.J);var X=C.info.LS;V=Gn(C,p.policy.Q$);var d=p.Vn;var a=d.UY;d=d.J;var E=Math.abs(d-H)>.02;if((X===a||X>a&&X>p.UY)&&E){N=Math.max(.95,Math.min(1.05,(V-(d-H))/V));if(g.Cx(C.info.T.info))mou(C.b9(),N);else if(C.info.T.info.Ft()&&(X=H-d,!g.Cx(C.info.T.info)&&(C.info.T.info.Ft(),N=new Gr(C.b9()),a=C.W?N:new Gr(new DataView(C.info.T.T.buffer)),Gn(C,!0)))){var l= X*1E3,t=aZ(a);a=N.pos;N.pos=0;if(N.T.getUint8(N.pos)===160||E9(N))if(Vv(N,160))if(Nt(N,!0),Vv(N,155)){if(X=N.pos,E=Nt(N,!0),N.pos=X,l=l*1E9/t,t=X6(N),l=t+Math.max(-t*.7,Math.min(t,l)),l=Math.sign(l)*Math.floor(Math.abs(l)),!(Math.ceil(Math.log(l)/Math.log(2)/8)>E)){N.pos=X+1;for(X=E-1;X>=0;X--)N.T.setUint8(N.pos+X,l&255),l>>>=8;N.pos=a}}else N.pos=a;else N.pos=a;else N.pos=a}N=Gn(C,p.policy.Q$);N=V-N}N&&C.info.T.info.Ft()&&p.nS.k_("webmDurationAdjustment",{durationAdjustment:N,videoDrift:H+N,audioDrift:d})}return N}; jMe=function(p){return p.info.T.V1()&&p.info.LS===p.info.T.index.Ha()}; jX=function(p,C){C=(C=C===void 0?0:C)?Math.round(p.timestampOffset*C)/C:p.timestampOffset;p.Y.S&&C&&(C+=p.Y.S.T);return C+p.getDuration()}; htQ=function(p,C){C<0||(p.C.forEach(function(V){TF1(V,C)}),p.timestampOffset=C)}; em=function(p,C,V,N,H){jf.call(this,V,H);var X=this;this.policy=p;this.formatId=C;this.g6=N;this.lastError=null;this.Nn=function(){X.fS()||(X.g6.hc.has(X.formatId)?(X.isComplete()||X.T.start(),DX(X.g6,X.formatId)&&X.dZ(2),X.g6.gI(X.formatId)&&(Sej(X.g6,X.formatId)?X.UZ(4):(X.lastError="net.closed",X.UZ(5)))):(X.lastError="player.exception",X.UZ(5)))}; this.T=new g.N8(function(){X.isComplete()||(X.lastError="net.timeout",X.UZ(5))},this.policy.It); this.T.start();MHv(this.g6,this.formatId,this.Nn);g.mo(this.Nn)}; Vz=function(p,C,V,N){g.Y.call(this);var H=this;this.nS=p;this.policy=C;this.T=V;this.timing=N;this.logger=new g.HI("dash");this.V=[];this.sY=[];this.C=this.NW=null;this.vr=!1;this.Ga=this.Y_=0;this.Y=-1;this.b_=!1;this.Sa=-1;this.Vn=this.Wr=null;this.a$=NaN;this.Sr={Sh:function(){return H.S}, aIr:function(){return H.V}, GR$:function(){return H.J}}; this.S=new eBY(p,C,V);this.policy.T&&(this.J=new ePs(this.S,this.nS.getManifest(),this.policy,function(X){H.policy.QP&&H.k_("buftl",X)})); this.policy.X$&&(this.Z=new vBH(this));this.F$=V.info.F$;this.D=this.policy.sY?!1:V.zq();this.isManifestless=V.zq();this.W=this.D;g.R(this,this.Wr)}; N4=function(p,C,V){V=V===void 0?!1:V;C&&CA&&htQ(p.S,C.PG());if(!V){var N;(N=p.J)==null||BzQ(N)}p.NW=C;(C=p.J)!=null&&(C.NW=p.NW)}; HZ=function(p){var C=p.NW&&p.NW.ye();if(p.policy.Su){if((p=p.J)==null)p=void 0;else{var V;p=(V=p.V)==null?void 0:V.info}return p||null}return C}; sMH=function(p){for(var C={},V=0;V4&&p.sY.shift()}; EAu=function(p,C){if(C.Lp()){var V=C.iT();V=g.F(V);for(var N=V.next();!N.done;N=V.next())N=N.value,p.policy.V&&C instanceof em&&p.k_("omblss",{s:N.info.Zh()}),X0(p,C.info.wV,N,C.eh())}}; X0=function(p,C,V,N){N=N===void 0?0:N;isNaN(p.a$)||(p.k_("aswm",{sq:C[0].LS,id:C[0].T.info.itag,xtag:C[0].T.info.T,ep:Date.now()-p.a$}),p.a$=NaN);switch(V.info.type){case 1:case 2:l6u(p,V);break;case 4:var H=V.info.T,X=H.QE(V),d;((d=p.C)==null?0:d.type===4)&&Blj(V.info,p.C)&&(p.C=H.Nz(p.C).pop());V=g.F(X);for(H=V.next();!H.done;H=V.next())X0(p,C,H.value,N);break;case 3:V.info.T.info.video?(H=p.timing,H.Vn||(H.Vn=(0,g.Ip)(),YL("fvb_r",H.Vn,H.T))):(H=p.timing,H.Y||(H.Y=(0,g.Ip)(),YL("fab_r",H.Y,H.T))); BPy(p.S,C,V,N);p.policy.T&&tKX(p);break;case 6:BPy(p.S,C,V,N),p.C=V.info}}; l6u=function(p,C){if(C.info.type===1)if(C.info.T.info.video){var V=p.timing;V.Wr||(V.Wr=(0,g.Ip)(),YL("vis_r",V.Wr,V.T))}else V=p.timing,V.J||(V.J=(0,g.Ip)(),YL("ais_r",V.J,V.T));gB1(p.S,C);p=p.nS;p.videoTrack.T.rI()&&p.audioTrack.T.rI()&&p.policy.T&&!p.hk.p4&&(C=p.audioTrack.getDuration(),V=p.videoTrack.getDuration(),Math.abs(C-V)>1&&p.k_("trBug",{af:""+g.VE(p.audioTrack.T.info,!1),vf:""+g.VE(p.videoTrack.T.info,!1),a:""+C,v:""+V}))}; rS=function(p){return PsX(p.S)}; tKX=function(p){p.V.length?p.C=g.wY(g.wY(p.V).info.wV):p.S.C.length?p.C=p.S.gP().info:p.C=HZ(p)}; clL=function(p,C){var V={xG:[],Eh:[]},N;if((p=p.J)==null)p=void 0;else{rWy(p,p.xG,"og");gES(p,C);rWy(p,p.xG,"trim");var H=QZe(p);C=H.xG;H=H.n6;for(var X=[],d=0;d0){var T=a7(c,E);T>=0&&(t=(c.end(T)-E+.1)*1E3)}X.push({formatId:g.VE(a.info.T.info,p.hk.p4),R5:a.info.R5, sequenceNumber:a.info.LS+p.S,je:l,zK:a.info.V,Cs:t})}p={xG:C,Eh:X}}return(N=p)!=null?N:V}; $v=function(p,C,V){V=V===void 0?!1:V;if(p.NW){var N=p.NW.K7(),H=lX(N,C),X=NaN,d=HZ(p);d&&(X=lX(N,d.T.index.getStartTime(d.LS)));if(H===X&&p.C&&p.C.V&&TsY(MKL(p),0))return C}p=Jlu(p,C,V);return p>=0?p:NaN}; gS=function(p,C,V){p.T.rI();var N=Jlu(p,C);if(N>=0)return N;var H;(H=p.J)==null||Wp9(H,C,V);V=Math;N=V.min;H=p.S;if(H.D)if(H=H.D,H.lW&&H.lW.type===3)H=H.lW.startTime;else if(H.V>0){var X=H.T.index;X=g.Xv(X.offsets.subarray(0,X.count),H.V*H.chunkSize);H=H.T.index.getStartTime(X>=0?X:Math.max(0,-X-2))}else H=0;else H=Infinity;C=N.call(V,C,H);if(p.policy.C){var d,a;V=(d=p.nS.RI())==null?void 0:(a=R8(d,C))==null?void 0:a.clipId;p.C=p.T.V8(C,void 0,V).wV[0]}else p.C=p.policy.sY?null:p.T.V8(C).wV[0];dZ(p)&& p.NW&&p.NW.abort();p.Ga=0;return p.C?p.C.startTime:C}; pbX=function(p){p.D=!0;p.W=!0;p.Y=-1;gS(p,Infinity)}; iQ=function(p){for(var C=0,V=g.F(p.V),N=V.next();!N.done;N=V.next())C+=pSy(N.value.info);return C+=p_1(p.S)}; sp=function(p,C){C=C===void 0?!1:C;var V=p.nS.getCurrentTime(),N=p.S.gP(),H=(N==null?void 0:N.info.zM)||0;p.policy.Ra&&(N==null?0:N.info.T.zq())&&!N.info.S&&(H=N.info.Qi);if(p.policy.C&&N&&N.info.clipId){var X,d=(((X=p.nS.RI())==null?void 0:zJ(X,N.info.clipId))||0)/1E3;H+=d}if(!p.NW)return p.policy.T&&C&&!isNaN(V)&&N?H-V:0;if((X=HZ(p))&&hI(p,X))return X.zM;d=p.NW.K7(!0);if(C&&N)return X=0,p.policy.T&&(X=cc(d,H+.02)),X+H-V;H=cc(d,V);p.policy.Mq&&X&&(C=a7(d,V),d=a7(d,X.Qi-.02),C===d&&(V=X.zM-V,p.policy.V&& V>H+.02&&p.k_("abh",{bh:H,bhtls:V}),H=Math.max(H,V)));return H}; mIV=function(p){var C=HZ(p);return C?C.zM-p.nS.getCurrentTime():0}; vAL=function(p,C){if(p.V.length){if(p.V[0].info.wV[0].startTime<=C)return;wS(p)}for(var V=p.S,N=V.C.length-1;N>=0;N--)V.C[N].info.startTime>C&&V.C.pop();tKX(p);p.C&&C=0;d--){var a=H.C[d];a.info.LS>=C&&(H.C.pop(),H.V-=Gn(a,H.policy.Q$),X=a.info)}X&&(H.W=H.C.length>0?H.C[H.C.length-1].info:H.Y_,H.C.length!==0||H.W||$FH(H,"r"));H.nS.k_("mdstm",{rollbk:1,itag:X?X.T.info.itag:"",popped:X?X.LS:-1,sq:C,lastslc:H.W?H.W.LS:-1,lastfraget:H.V.toFixed(3)});p.policy.T?p.C=null:N>V?gS(p,N):p.C=p.T.P8(C-1,!1).wV[0]}; Ep=function(p,C){var V;for(V=0;V0?V||C.LS>=p.Sa:V}; tI=function(p){var C;return dZ(p)||hI(p,(C=p.S.gP())==null?void 0:C.info)}; MKL=function(p){var C=[],V=HZ(p);V&&C.push(V);C=g.Gp(C,p.S.Ux());V=g.F(p.V);for(var N=V.next();!N.done;N=V.next()){N=N.value;for(var H=g.F(N.info.wV),X=H.next(),d={};!X.done;d={rf:void 0},X=H.next())d.rf=X.value,N.X2&&(C=g.JT(C,function(a){return function(E){return!Blj(E,a.rf)}}(d))),(yv(d.rf)||d.rf.type===4)&&C.push(d.rf)}p.C&&!rnS(p.C,g.wY(C),p.C.T.V1())&&C.push(p.C); return C}; TsY=function(p,C){if(!p.length)return!1;for(C+=1;C=C){C=X;break a}}C=H}return C<0?NaN:TsY(p,V?C:0)?p[C].startTime:NaN}; cZ=function(p){return!(!p.C||p.C.T===p.T)}; KJ9=function(p){return cZ(p)&&p.T.rI()&&p.C.T.info.F$C&&N.zM1080&&!p.Ts&&(p.Ga=36700160,p.kM=5242880,p.Y_=Math.max(4194304,p.Y_),p.Ts=!0);C.video.T>2160&&!p.aX&&(p.Ga=104857600,p.F$=13107200,p.aX=!0);g.mi(p.I$.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?C.isEncrypted()&&g.Qg()&&g.gm("samsung")&&(g.gm("kant")||g.gm("muse"))&&(p.F$=g.mi(p.I$.experiments,"html5_samsung_kant_limit_max_bitrate")):C.isEncrypted()&&g.Qg()&&g.gm("kant")&&(p.F$=1310720);p.rj!==0&&C.isEncrypted()&&(p.F$=p.rj);p.Vz!==0&&C.isEncrypted()&& V&&(p.F$=p.Vz);C.F$&&(p.uv=Math.max(p.Kq,Math.min(p.Y_,5*C.F$)))}; mN=function(p){return p.T&&p.I5&&p.playbackStartPolicy}; vZ=function(p){return p.C||p.T&&p.kt}; zt9=function(p,C,V,N){p.I5&&(p.playbackStartPolicy=C,p.Lj=V,p.ij=N)}; JI=function(p,C,V){V=V===void 0?0:V;return g.mi(p.I$.experiments,C)||V}; Rte=function(p){var C=p===void 0?{}:p;p=C.yV;var V=C.q3;var N=C.HR;var H=C.Ha;C=C.X_;this.yV=p;this.q3=V;this.HR=N;this.Ha=H;this.X_=C}; cz9=function(p,C){if(C<0)return!0;var V=p.Ha();return C0)return 2;if(C<0)return 1;V=p.Ha();return C(0,g.Ip)()?0:1}; SX=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){M=M===void 0?null:M;g.Y.call(this);var J=this;this.nS=p;this.policy=C;this.videoTrack=V;this.audioTrack=N;this.S=H;this.T=X;this.timing=d;this.W=a;this.schedule=E;this.hk=l;this.V=t;this.a$=c;this.Hd=T;this.TU=M;this.b_=!1;this.Mf="";this.Vv=null;this.kq=NaN;this.sY=!1;this.C=null;this.mf=this.Z=NaN;this.bL=this.Y=0;this.logger=new g.HI("dash");this.Sr={fP:function(S,D){return J.fP(S,D)}}; this.policy.Qt>0&&(this.Mf=g.OI(this.policy.Qt));this.policy.YN&&(this.J=new F0(this.nS,this.policy,this.schedule),g.R(this,this.J))}; gAs=function(p,C,V){var N=C.C?C.C.T.sR:C.T.sR;var H=p.S,X;(X=!p.policy.Rt)||(X=So(N.T)===So(N.V));X?N=!1:(H=Tn(H,So(N.V)),X=6E4*Math.pow(H.S,1.6),(0,g.Ip)()=H.S?(H.k_("sdai",{haltrq:X+1,est:H.S}),N=!1):N=H.C!==2;if(!N||!F6(C.C?C.C.T.sR:C.T.sR,p.policy,p.S,p.nS.kh())||p.nS.isSuspended&&(!JR(p.schedule)||p.nS.PJ))return!1;if(p.policy.S&&Uj>=5)return g.HF(p.nS.Zb),!1;if(p.hk.isManifestless){if(C.V.length>0&&C.C&&C.C.LS===-1||C.V.length>=p.policy.oa||!p.policy.mO&&C.V.length>0&&!p.policy.J.q3)return!1;if(C.D)return!p.hk.isLive||!isNaN(p.kq)}if(f6e(C))return p.logger.debug("Pending request with server-selectable format found"), !1;if(!C.C){if(!C.T.rI())return!1;gS(C,p.nS.getCurrentTime())}if(rS(C)&&(C.gP()!==rS(C)||p.nS.isSuspended))return!1;H=(N=p.policy.fW)&&!C.V.length&&sp(C,!0)=p.policy.Lw)return!1;N=C.C;if(!N)return!0;N.type===4&&N.T.rI()&&(C.C=g.wY(N.T.Nz(N)),N=C.C);if(!N.Vo()&&!N.T.pw(N))return!1;X=p.hk.EO||p.hk.S;if(p.hk.isManifestless&&X){X=C.T.index.Ha();var d=V.T.index.Ha(); X=Math.min(X,d);if(C.T.index.b5()>0&&X>0&&N.LS>=X)return C.Sa=X,V.Sa=X,!1}if(N.T.info.audio&&N.type===4||N.Vo())return!1;X=!C.W&&!V.W;if(H=!H)H=N.zM,H=!!(V.C&&!hI(V,V.C)&&V.C.zMWJy(p,C)?(WJy(p,C),!1):(p=C.NW)&&p.isLocked()?!1:!0}; WJy=function(p,C){var V=p.T;V=V.T?V.T.xB:null;if(p.policy.Sa&&V)return V.startSecs+V.uc+15;C=Lc(p.nS,C);p.policy.Hc>0&&(V=((0,g.Ip)()-p.nS.Z$)/1E3,C=Math.min(C,p.policy.Hc+p.policy.AX*V));V=p.nS.getCurrentTime()+C;return p.policy.bv&&(C=QMa(p.nS)+p.policy.bv,C=0||C.sR.IV("defrag")==="1"||C.sR.IV("otf")==="1"){C=null;break a}H=Z0(0,4096)}H=new oZ([new fp(5,N.T,H,"createProbeRequestInfo"+N.W,N.LS)],C.C);H.Bz=V;H.T=C.T;C=H}C&&LJX(p,C)}}; LJX=function(p,C){p.nS.nz(C);var V=pSy(C),N=p.nS.rM();V={n1:p.schedule,RO:V,sP:xtX(p.W,V),Ti:O9(C.wV[0]),bq:Kw(C.sR.T),BJ:p.policy.V,rW:function(d,a){p.nS.TP(d,a)}}; if(p.schedule.C.Y){var H,X;V.v_=(((H=p.videoTrack.T)==null?void 0:H.info.F$)||0)+(((X=p.audioTrack.T)==null?void 0:X.info.F$)||0)}p.Vv&&(V.LS=C.wV[0].LS,V.kq=C.kq,V.Vv=p.Vv);N={eA:CbY(C,p.nS.getCurrentTime()),gA:p.policy.f9&&xE(C)&&C.wV[0].T.info.video?JAS(p.V):void 0,Oy:p.policy.Sa,poToken:p.nS.Ib(),z7:p.nS.qP(),Mf:p.Mf,mf:isNaN(p.mf)?null:p.mf,TU:p.TU,Hd:p.Hd,bL:p.bL,x3:N};return new P3(p.policy,C,V,p.S,function(d,a){try{a:{var E=d.info.wV[0].T,l=E.info.video?p.videoTrack:p.audioTrack;if(!(d.state>= 2)||d.isComplete()||d.r9()||!(!p.nS.Hr||p.nS.isSuspended||sp(l)>3)){var t=Pdv(d,p.policy,p.S);t===1&&(p.sY=!0);rlH(p,d,t);if(d.isComplete()||d.fS()&&a<3){if(p.policy.V){var c=d.timing.cK();c.rst=d.state;c.strm=d.xhr.hV();c.cncl=d.xhr&&d.uJ.S?1:0;p.nS.k_("rqs",c)}d.JN&&p.nS.k_("sbwe3",{},!0)}if(!p.fS()&&d.state>=2){Rga(p.timing,d,E);var T=p.nS;p.mf&&d.aY&&T&&(p.mf=NaN,p.nS.ir(d.aY),p.nS.kW(),p.nS.k_("cabrUtcSeek",{mediaTimeSeconds:d.aY}));d.PC&&(d.Rc>0&&p.nS.k_("sError",{errorHttpResponseCode:d.Rc.toString()}), p.mf&&d.PC&&!d.PC.action&&(p.nS.Jx(p.mf),p.mf=NaN,p.nS.k_("cabrUtcSeekFallback",{targetUtcTimeSeconds:p.mf})));d.e6&&p.nS.aA(d.e6);p.policy.I6&&(p.bL=d.bL);if(d.state===3){Ep(l,d);xE(d.info)&&KA(p,l,E,!0);if(p.C){var M=d.info.UI();M&&p.C.x9(d.info.wV[0].LS,E.info.id,M)}p.nS.f7()}else if(d.isComplete()&&d.info.wV[0].type===5){if(d.state!==4)d.Ad()&&p.nS.handleError(d.LO(),d.BP());else{var J=(d.info.wV[0].T.info.video?p.videoTrack:p.audioTrack).V[0]||null;J&&J instanceof P3&&J.r9()&&J.RA(!0)}d.dispose()}else{d.Ad()|| BsY(p,d);var S;((S=d.pQ)==null?0:S.itagDenylist)&&p.nS.M4(d.pQ.itagDenylist);if(d.state===4)G5e(p,d),p.T&&L4v(p.T,d.info,p.C);else if(p.policy.Kt&&d.Lp()&&!d.isComplete()&&!G5e(p,d)&&!d.Ad())break a;d.Ad()&&(pke(p,d),isNaN(p.mf)||(p.nS.Jx(p.mf),p.mf=NaN));p.policy.wy&&!d.isComplete()?CxX(p.nS):p.nS.f7();var D=w_X(d,p.policy,p.S);rlH(p,d,D)}}}}}catch(Z){a=p.b_?1:0,p.b_=!0,d=Ir(a),a=bv(Z,a),p.nS.handleError(a.errorCode,a.details,a.severity),d||p.nS.H$()}},N)}; BsY=function(p,C){if(C.C6&&C.state>=2&&C.state!==3){var V=C.xhr.getResponseHeader("X-Response-Itag");if(V){p.logger.debug(function(){return"Applying streamer-selected format "+V}); var N=Mwe(p.V,V),H=C.info.V;H&&(H-=N.EB(),N.V=!0,C.info.wV[0].T.V=!1,lWY(C,N.ZU(H)),Dp(p.nS,p.videoTrack,N),OfY(p.videoTrack,N),p.nS.bd(N.info.video.quality),(H=C.eh())&&N.info.lastModified&&N.info.lastModified!==+H&&Ep(p.videoTrack,C))}else C.C6=!1}}; pke=function(p,C){var V=C.info.wV[0].T,N=C.LO();if(Kw(V.sR.T)){var H=g.vy(C.FF(),3);p.nS.k_("dldbrerr",{em:H||"none"})}H=C.info.wV[0].LS;var X=yN(p.T,C.info.wV[0].Qi,H);N==="net.badstatus"&&(p.Y+=1);if(C.canRetry()&&j$9(p.nS)){if(!(C.info.sR.C>=p.policy.Hn&&p.C&&C.info.isDecorated()&&N==="net.badstatus"&&p.C.h7(X,H))){H=(V.info.video&&V.sR.C>1||C.zI===410||C.zI===500||C.zI===503)&&!(kd(p.V.W).size>0)&&!Kw(V.sR.T);X=C.BP();var d=V.info.video?p.videoTrack:p.audioTrack;H&&(X.stun="1");p.nS.handleError(N, X);p.fS()||(H&&(p.logger.debug(function(){return"Stunning format "+V.info.id}),n4(p.V,V)),Ep(d,C),p.nS.f7())}}else d=1,p.C&&C.info.isDecorated()&&N==="net.badstatus"&&p.C.h7(X,H)&&(d=0),p.hk.isLive&&C.LO()==="net.badstatus"&&p.Y<=p.policy.uM*2?(pPL(p.hk),p.hk.EO||p.hk.isPremiere?Q7(p.nS,0,{NZ:"badStatusWorkaround"}):p.hk.S?Q7(p.nS,p.hk.vr,{NZ:"badStatusWorkaround", zR:!0}):uQ(p.nS)):p.nS.handleError(N,C.BP(),d)}; G5e=function(p,C){if(p.policy.useUmp&&C.fS())return!1;try{var V=C.info.wV[0].T,N=V.info.video?p.videoTrack:p.audioTrack;if(p.hk.isManifestless&&N){p.Y=0;N.D&&(C.fS(),C.isComplete()||C.Lp(),N.D=!1);C.q7()&&p.nS.aF.N3(1,C.q7());var H=C.b5(),X=C.D0();F1(p.hk,H,X)}if(C.info.Ti()&&!kE(C.info))for(var d=g.F(C.iT()),a=d.next();!a.done;a=d.next())l6u(N,a.value);for(p.nS.getCurrentTime();N.V.length&&N.V[0].state===4;){var E=N.V.shift();EAu(N,E);N.Y_=E.h4()}N.V.length&&EAu(N,N.V[0]);var l=!!rS(N);l&&C instanceof em&&(V.info.DQ()?bIa(p.timing):IWj(p.timing));return l}catch(t){C=C.BP();C.origin="hrhs";a:{p=p.nS;V=t;if(V instanceof Error){C.msg||(C.msg=""+V.message);C.name||(C.name=""+V.name);if(V instanceof g.Bw&&V.args)for(N=g.F(Object.entries(V.args)),H=N.next();!H.done;H=N.next())X=g.F(H.value),H=X.next().value,X=X.next().value,C["arg"+H]=""+X;g.eG(V);if(V.level==="WARNING"){p.Ta.wP(C);break a}}p.handleError("fmt.unplayable",C,1)}return!1}}; VQv=function(p){var C=p.videoTrack.T.index;p.Vv=new Rte({yV:p.policy.yV,q3:p.policy.J.q3,HR:C.Ve(),Ha:function(){return C.Ha()}, X_:function(){return C.X_()}})}; KA=function(p,C,V,N){if(!(V.rI()||V.N$()||V.V||!F6(V.sR,p.policy,p.S)||V.info.o$==="f"||p.policy.T)){if(N){N=p.W;var H=V.info;N=Y9y(N,H.video?N.policy.l3:N.policy.KM,H.F$)}else N=0;N=V.ZU(N);p=LJX(p,N);kE(N)&&a6S(C,p);V.V=!0}}; Zp=function(p,C,V,N,H,X,d,a){g.Y.call(this);var E=this;this.nS=p;this.wY=C;this.videoTrack=V;this.audioTrack=N;this.hk=H;this.Z=X;this.isAudioOnly=d;this.D=a;this.C=xB;this.sY=!1;this.logger=new g.HI("sabr");this.J=this.b_=this.a$=!1;this.videoInfos=this.W=this.Z.videoInfos;this.V=this.Vn=this.Z.T;this.T=new At(C,X,function(l,t){E.nS.k_(l,t)}); this.wY.JX||NbV(this);this.isAudioOnly&&HTv(this,this.hk.T["0"])}; XkV=function(p,C){var V=[];C=g.F(C);for(var N=C.next();!N.done;N=C.next())V.push(g.VE(N.value,p.hk.p4));return V}; HTv=function(p,C,V){C!==p.S&&(p.S&&(p.sY=!0),p.S=C,p.q4(C,p.videoTrack,V))}; s$H=function(p,C){p.logger.debug("setConstraint: "+dH(C));vZ(p.wY)&&(p.b_=C.reason==="m"||C.reason==="l"?!0:!1);C.reason==="m"?C.isLocked()&&dhv(p,C.T):iT9(p,C)?hLv(p,C.C,C.T):p.videoInfos=p.W;p.C=C}; iT9=function(p,C){return p.wY.MR&&C.reason==="b"||p.wY.Dp?!1:p.wY.zQ?!0:C.reason==="l"||C.reason==="b"||C.reason==="o"}; agH=function(p,C){return C.isLocked()&&p.T.C||p.C===void 0?!1:C.sE(p.C)}; Ejv=function(p,C){var V,N=(V=p.S)==null?void 0:V.info.video.T;return p.sY?!0:p.S?C!==N?!0:!p.T.C||p.wY.Nw&&p.T.T===p.S.info.itag?!1:!0:!1}; dhv=function(p,C){var V=p.T.T;if(V){p.videoInfos=p.W;var N=g.L0(p.videoInfos,function(H){return H.id===V}); N&&N.video.T===C?p.videoInfos=[N]:(N=p.videoInfos.map(function(H){return H.id}),p.nS.k_("sabrpf",{pfid:""+V, vfids:""+N.join(".")}),hLv(p,C,C),xd(p.T,""))}else hLv(p,C,C)}; hLv=function(p,C,V){p.videoInfos=p.W;p.videoInfos=g.JT(p.videoInfos,function(N){return N.video.T>=C&&N.video.T<=V})}; NbV=function(p){var C=GMY(p.T,p.D);C&&(p.V=[C])}; lgV=function(p,C,V){if(p.wY.JX){if(p.D){var N=g.JT(p.V,function(H){return H.id===p.D}); return Up(N,V).includes(C)}N=g.JT(p.V,function(H){var X;return!((X=H.K4)==null||!X.isDefault)}); if(N.length>0)return Up(N,V).includes(C)}return Up(p.V,V).includes(C)}; Up=function(p,C){return p.map(function(V){return S5(g.VE(V,C))})}; tQQ=function(p){var C;if((C=p.C)==null?0:C.isLocked())return p.videoInfos;var V=kd(p.T);C=g.JT(p.videoInfos,function(N){return N.F$>p.wY.F$?!1:!V.has(N.id)}); BGX(p.T)&&(C=g.JT(C,function(N){return N.video.width<=854&&N.video.height<=480})); return C}; MQS=function(p,C,V,N){var H=p.hk,X=p.Ta.getVideoData(),d=g.pf(X),a=dny({I$:X.K(),Ta:p.Ta,VH:p.VH,wY:p.wY,Z$:p.Z$,MQ:p.MQ,Hb:p.Hb,ys:p.ys,iL:p.iL,isPrefetch:p.isPrefetch,cq:p.cq,sabrLicenseConstraint:X.sabrLicenseConstraint,Q2:p.Q2,Pb:p.Pb,b7:p.b7,n8:p.n8}),E=Mx(X,p.x3,p.nextRequestPolicy,p.nM,p.jN,p.lda);N&&V&&(N=E.p6?E.p6.map(function(S){return S.type}):[],V("ssap",{stmctxt:N.join("_"), unsntctxt:E.Ty?E.Ty.join("_"):""}));N=p.iK;var l=p.fl,t=p.xs;if(l===void 0&&N===void 0){var c;l=c_v(H.p4,(c=p.Z7)==null?void 0:c.video);var T;N=c_v(H.p4,(T=p.Z7)==null?void 0:T.audio)}if(X.TU)var M=X.TU;X={Tv:a,Eh:p.Eh,iK:N,fl:l,xs:t,videoPlaybackUstreamerConfig:M,Fz:E};p.eS&&(X.eS=p.eS);if(d&&C){d=new Map;var J=g.F(H.Wr);for(a=J.next();!a.done;a=J.next())a=a.value,(E=H.Ga[kTV(H,a)]||"")?(d.has(E)||d.set(E,[]),d.get(E).push(a)):V&&V("ssap",{nocid4fmt:(a.itag||"")+"_"+(a.lmt||0)+"_"+(a.xtags||"")}); H=new Map;J=g.F(p.xG);for(a=J.next();!a.done;a=J.next())a=a.value,E=a.startTimeMs||0,c=void 0,T=(c=C)==null?void 0:R8(c,E),c=T.clipId,T=T.SI,c?(H.has(c)||(M=d.get(c)||[],H.set(c,{clipId:c,xG:[],vj:M})),T!==0&&(a.startTimeMs=E-T),H.get(c).xG.push(a)):V&&(c=void 0,V("ssap",{nocid4range:"1",fmt:((c=a.formatId)==null?void 0:c.itag)||"",st:E.toFixed(3),d:(a.durationMs||0).toFixed(3),timeline:fA(C)}));X.lK=[];H=g.F(H.entries());for(d=H.next();!d.done;d=H.next())d=g.F(d.value),d.next(),d=d.next().value, X.lK.push(d);if(p.xG.length&&!X.lK.length){V&&V("ssap",{nobfrange:"1",br:Tbs(p.xG),timeline:fA(C)});return}p.nG&&(X.nG=p.nG);p.yK&&(X.yK=p.yK)}else X.xG=p.xG,X.vj=H.Wr,d&&((J=p.xG)==null?void 0:J.length)>0&&!C&&V&&V("ssap",{bldmistlm:"1"});return X}; c_v=function(p,C){return C?[g.VE(C.info,p)]:[]}; Tbs=function(p){var C="";p=g.F(p);for(var V=p.next();!V.done;V=p.next()){V=V.value;var N=void 0,H=void 0,X=void 0;C+="fmt."+(((N=V.formatId)==null?void 0:N.itag)||"")+"_"+(((H=V.formatId)==null?void 0:H.lmt)||0)+"_"+(((X=V.formatId)==null?void 0:X.xtags)||"")+";st."+(V.startTimeMs||0).toFixed(3)+";d."+(V.durationMs||0).toFixed(3)+";"}return C}; Op=function(p,C,V){var N=this;this.requestType=p;this.sR=C;this.aH=V;this.C=null;this.Sr={Bn_:function(){var H;return(H=N.data)==null?void 0:H.isPrefetch}, jN:function(){var H;return(H=N.data)==null?void 0:H.jN}}}; J_H=function(p,C,V,N,H){H=H===void 0?{}:H;if(N==null?0:N.YM)p.s1=fWX(p,N,H),C.Pb=p.sR.Pb();if(p.Hf())return!0;p.data=C;p.T=MQS(C,V,function(X,d){var a;(a=p.aH)==null||a.Vr(X,d)},N==null?void 0:N.V); if(!p.T)return!1;p.C=g.l8(p.T,HPV);return!0}; fWX=function(p,C,V){C=mp(p.sR,mhS(p,C,V),C);p.Hf()&&C.set("probe","1");return C}; mhS=function(p,C,V){p.Bz===void 0&&(p.Bz=p.sR.Bz(C,V));return p.Bz}; vjS=function(p){var C,V;return((C=p.T)==null?void 0:(V=C.Tv)==null?void 0:V.hZ)||0}; FjL=function(p){var C,V;return!!((C=p.T)==null?0:(V=C.Tv)==null?0:V.Q2)}; S5H=function(p){var C={},V=[],N=[];if(!p.data)return C;for(var H=0;H0;E--)V.push(a)}V.length!==d?C.error=!0:(X=V.slice(-X),V.length=H,Q$H(C,V,X));break;case 1:Q$H(C,RB,Pxy);break;case 0:r_L(C, C.T&7);V=wZ(C,16);H=wZ(C,16);(V^H)!==65535&&(C.error=!0);C.output.set(C.data.subarray(C.C,C.C+V),C.V);C.C+=V;C.V+=V;break;default:C.error=!0}p.V>p.output.length&&(p.output=new Uint8Array(p.V*2),p.V=0,p.C=0,p.S=!1,p.T=0,p.register=0)}p.output.length!==p.V&&(p.output=p.output.subarray(0,p.V));return p.error?new Uint8Array(0):p.output}; Q$H=function(p,C,V){C=gjj(C);V=gjj(V);for(var N=p.data,H=p.output,X=p.V,d=p.register,a=p.T,E=p.C;;){if(a<15){if(E>N.length){p.error=!0;break}d|=(N[E+1]<<8)+N[E]<>=7;l<0;)l=C[(d&1)-l],d>>=1;else d>>=l&15;a-=l&15;l>>=4;if(l<256)H[X++]=l;else if(p.register=d,p.T=a,p.C=E,l>256){d=eX[l];d+=wZ(p,nA[l]);E=Wjv(p,V);a=PZ[E];a+=wZ(p,wkY[E]);if(GCH&&dV.length&&(p.error=!0);p.register|=(V[N+1]<<8)+V[N]<=0)return r_L(p,V&15),V>>4;for(r_L(p,7);V<0;)V=C[wZ(p,1)-V];return V>>4}; wZ=function(p,C){for(;p.T=p.data.length)return p.error=!0,0;p.register|=p.data[p.C++]<>=C;p.T-=C;return V}; r_L=function(p,C){p.T-=C;p.register>>=C}; gjj=function(p){for(var C=[],V=g.F(p),N=V.next();!N.done;N=V.next())N=N.value,C[N]||(C[N]=0),C[N]++;var H=C[0]=0;V=[];var X=0;N=0;for(var d=1;d7&&(X+=C[d]);for(H=1;H>E&1;a=X<<4|d;if(d<=7)for(E=1<<7-d;E--;)N[E<>=7;d--;){N[E]||(N[E]=-C,C+=2);var l=H&1;H>>=1;E=l-N[E]}N[E]=a}}return N}; p3X=function(p){var C,V,N,H,X,d,a;return g.I(function(E){switch(E.C){case 1:if(!("DecompressionStream"in window))return E.return(g.Bbe(new g.$he(p)));C=new DecompressionStream("gzip");V=C.writable.getWriter();V.write(p);V.close();N=C.readable.getReader();H=new o4([]);case 2:return g.y(E,N.read(),5);case 5:X=E.T;d=X.value;if(a=X.done){E.EY(4);break}H.append(d);E.EY(2);break;case 4:return E.return(H.AB())}})}; $k=function(p,C){this.T=p;this.TN=C}; CTS=function(p){return MO(MO(t5(function(){return Tv(p.TN,function(C){return p.Oe(p.T,C)})}),function(){return p.g4(p.T)}),function(){return p.l2(p.T)})}; j8H=function(p,C){return CTS(new $k(p,C))}; HcY=function(p){vI.call(this,"onesie");this.bJ=p;this.T={};this.V=!0;this.S=null;this.queue=new eLe(this);this.W={};this.Y=pVX(function(C,V){var N=this;return function X(){var d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au;return lje(X,function(W){switch(W.C){case 1:W.Y=0;W.S=2;N.bJ.aR();d=function(e){return function(B){throw{name:e,message:B};}}; a=C.AB();g.vv(W,4,5);if(!V){W.EY(7);break}return hXS(W,MO(VmY(N.bJ,a,N.iv),d("DecryptError")).wait(),8);case 8:E=W.T;case 7:if(!N.bJ.enableCompression){W.EY(9);break}return hXS(W,MO(j8H((c=E)!=null?c:a,N.bJ.K().I5),d("DecompressError")).wait(),10);case 10:l=W.T;case 9:t=HJ((M=(T=l)!=null?T:E)!=null?M:a,Gcu);case 5:g.KY(W,0,2);if(S=(J=N.bJ.K())==null?void 0:J.TN)((D=E)==null?void 0:D.buffer)===S.exports.memory.buffer&&S.free(E.byteOffset),((Z=l)==null?void 0:Z.buffer)===S.exports.memory.buffer&&S.free(l.byteOffset); g.Dj(W,6);break;case 4:throw q=f=g.Sa(W),new qD("onesie.response.parse",{name:(P=q.name)!=null?P:"unknown",message:(VL=q.message)!=null?VL:"unknown",wasm:((A=N.bJ.K())==null?0:A.TN)?((z=N.bJ.K())==null?0:(Q=z.TN)==null?0:Q.XA)?"1js":"1":"0",enc:N.V,gz:N.bJ.enableCompression,webcrypto:!!fW()});case 6:return NSX(t),au=g.wc(t.body),W.return(au);case 2:g.KY(W),g.Dj(W,0)}})}()})}; X3y=function(p){var C=p.queue;C.T.length&&C.T[0].isEncrypted&&!C.C&&(C.T.length=0);C=g.F(Object.keys(p.T));for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=p.T[V];if(!N.zJ){var H=p.queue;H.T.push({videoId:N.videoId,formatId:V,isEncrypted:!1});H.C||zG(H)}}}; ic1=function(p,C){var V=C.getLength(),N=!1;switch(p.S){case 0:p.bJ.G("html5_future_onesie_ump_handler_on_player_response")?MO(Tv(p.Y(C,p.V),function(H){dlv(p.bJ,H)}),function(H){p.bJ.Du(H)}):p.aR(C,p.V).then(function(H){dlv(p.bJ,H)},function(H){p.bJ.Du(H)}); break;case 2:p.ZE("ormk");C=C.AB();p.queue.decrypt(C);break;default:N=!0}p.bJ.Cp&&p.bJ.k_("ombup","id.11;pt."+p.S+";len."+V+(N?";ignored.1":""));p.S=null}; NSX=function(p){if(p.QO!==1)throw new qD("onesie.response.badproxystatus",{st:p.QO,webcrypto:!!fW(),textencoder:!!g.xH.TextEncoder});if(p.Yc!==200)throw new qD("onesie.response.badstatus",{st:p.Yc});}; hWV=function(p){return new Promise(function(C){setTimeout(C,p)})}; s81=function(p,C){var V=p.K();V=p.QZ&&V.G("html5_onesie_preload_use_content_owner");var N=p.nF,H=Wb(C.yn.experiments,"debug_bandaid_hostname");if(H)C=kk(C,H);else if((V===void 0?0:V)&&(N==null?0:N.url)&&!C.C){var X=So(new g.v1(N.url));C=kk(C,X)}else C=(X=C.T.get(0))==null?void 0:X.location.clone();if(C&&p.videoId){X=Nn(p.videoId);p=[];if(X)for(X=g.F(X),V=X.next();!V.done;V=X.next())p.push(V.value.toString(16).padStart(2,"0"));C.set("id",p.join(""));return C}}; aMa=function(p,C,V){V=V===void 0?0:V;var N,H;return g.I(function(X){if(X.C==1)return N=[],N.push(C.load()),V>0&&N.push(hWV(V)),g.y(X,Promise.race(N),2);H=s81(p,C);return X.return(H)})}; Evu=function(p,C,V,N){N=N===void 0?!1:N;p.set("cpn",C.clientPlaybackNonce);p.set("opr","1");var H=C.K();p.set("por","1");fW()||p.set("onem","1");C.startSeconds>0&&p.set("osts",""+C.startSeconds);N||(H.G("html5_onesie_disable_partial_segments")&&p.set("oses","1"),C=H.G("html5_gapless_onesie_no_media_bytes")&&id(C)&&C.QZ,V&&!C?(C=V.audio,p.set("pvi",V.video.join(",")),H.G("html5_onesie_disable_audio_bytes")||p.set("pai",C.join(",")),gB||p.set("osh","1")):(p.set("oad","0"),p.set("ovd","0"),p.set("oaad", "0"),p.set("oavd","0")))}; lMa=function(p,C,V,N,H){H=H===void 0?!1:H;var X="https://youtubei.googleapis.com/youtubei/"+C.Uv.innertubeApiVersion+"/player",d=[{name:"Content-Type",value:"application/json"}];N&&d.push({name:"Authorization",value:"Bearer "+N});d.push({name:"User-Agent",value:g.f0()});g.pO("EOM_VISITOR_DATA")?d.push({name:"X-Goog-EOM-Visitor-Id",value:g.pO("EOM_VISITOR_DATA")}):(V=V.visitorData||g.pO("VISITOR_DATA"))&&d.push({name:"X-Goog-Visitor-Id",value:V});(V=g.pO("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&d.push({name:"X-YouTube-Lava-Device-Context", value:V});(C=Wb(C.experiments,"debug_sherlog_username"))&&d.push({name:"X-Youtube-Sherlog-Username",value:C});p=gc(JSON.stringify(p));return{url:X,Zy:d,postBody:p,fda:H,wB:H}}; chQ=function(p,C,V,N,H,X){var d=g.l8(p,Bg1,p.wB?void 0:V.TN),a={encryptedClientKey:C.T.encryptedClientKey,OD:!0,M0:!0,pR:tmX(V,!!p.wB),xX:V.experiments.OY("html5_use_jsonformatter_to_parse_player_response")};if(p.wB)a.s__=d;else{p=C.encrypt(d);var E;if(((E=V.TN)==null?void 0:E.exports.memory.buffer)===d.buffer&&p.byteOffset!==d.byteOffset){var l;(l=V.TN)==null||l.free(d.byteOffset)}var t;p=((t=V.TN)==null?void 0:t.Zz(p))||p;d=a.yY=p;(0,g.Ip)();d=rN9(new QxX(C.T.V),d,C.iv);a.Pi=d;a.iv=C.iv}C=N.getVideoData(); V=dny({I$:V,Ta:N,VH:C.startSeconds*1E3});H={Aq:a,Tv:V,onesieUstreamerConfig:H,ac:X,Fz:Mx(C)};C.reloadPlaybackParams&&(H.reloadPlaybackParams=C.reloadPlaybackParams);return H}; TSS=function(p,C,V){var N,H,X;return g.I(function(d){if(d.C==1)return N=g.l8(C,Bg1),g.y(d,bTS(V,N),2);if(d.C!=3)return H=d.T,g.y(d,A_1(V,H),3);X=d.T;return d.return({yY:H,encryptedClientKey:V.T.encryptedClientKey,iv:V.iv,Pi:X,OD:!0,M0:!0,pR:tmX(p,!!C.wB),xX:p.experiments.OY("html5_use_jsonformatter_to_parse_player_response")})})}; Mmu=function(p,C,V,N,H,X){var d,a,E,l;return g.I(function(t){if(t.C==1)return g.y(t,TSS(V,p,C),2);d=t.T;a=N.getVideoData();E=dny({I$:V,Ta:N,VH:a.startSeconds*1E3});l={Aq:d,Tv:E,onesieUstreamerConfig:H,ac:X,Fz:Mx(a)};a.reloadPlaybackParams&&(l.reloadPlaybackParams=a.reloadPlaybackParams);return t.return(l)})}; tmX=function(p,C){p=Mn(p.schedule,!0);C=C||!!fW()&&p>1572864;return"DecompressionStream"in window||!C}; gZ=function(p,C){g.Y.call(this);var V=this;this.Ta=p;this.playerRequest=C;this.yn=this.Ta.K();this.videoData=this.Ta.getVideoData();this.logger=new g.HI("onesie");this.Cp=this.yn.Gk();this.uH=this.yn.Kq;this.Yx=new Igj(this.uH.T,this.yn.I5);this.xhr=null;this.state=1;this.PK=new hK;this.GJ=!1;this.playerResponse="";this.Ge=new C4(this);this.iF=new HcY(this);this.bb=this.yn.G("html5_onesie_check_timeout");this.Js=new g.N8(this.nU,500,this);this.DN=new g.N8(this.Q5,1E4,this);this.El=new g.N8(function(){if(!V.isComplete()){var N= LA(V);V.Du(new qD("net.timeout",N))}},g.mi(this.yn.experiments,"html5_onesie_request_timeout_ms")); this.JP=new g.N8(this.oe,2E3,this);this.CT="";this.oV=this.qe=!1;this.kH=this.Ta.qP();this.CF="";this.S3=this.G("html5_onesie_wait_for_media_availability");this.enableCompression=this.ge=this.uU=!1;this.Q9=[];this.u3=this.ox=-1;g.R(this.videoData,this);g.R(this,this.Js);g.R(this,this.DN);g.R(this,this.JP);p=Bb();gB&&p&&!this.yn.G("html5_disable_onesie_media_bytes")&&(this.ZQ=new Map);this.Ls=new Map;this.Zs=new Map;this.NN=new Map;this.Jz=new Map}; Yk=function(p,C){var V;return(V=p.ZQ)==null?void 0:V.get(C)}; mls=function(p,C,V){var N;return g.I(function(H){if(H.C==1)return p.ZE("oprd_s"),Jh1(p)?g.y(H,ojS(p.Yx,C,V),3):(N=p.Yx.decrypt(C,V),H.EY(2));H.C!=2&&(N=H.T);p.ZE("oprd_c");return H.return(N)})}; VmY=function(p,C,V){p.ZE("oprd_s");var N=p.Yx;N.C||(N.C=new uES(N.T.T,N.TN));C=q5j(N.C,C,V);p.ZE("oprd_c");return C}; vvQ=function(p){return p.G("html5_onesie_host_probing")||p.Cp?gB:!1}; dlv=function(p,C){p.ZE("oprr");p.playerResponse=C;p.ge||(p.S3=!1);WZ(p)}; WZ=function(p){if(!p.playerResponse)return!1;if(p.uU)return!0;var C=p.videoData.G("html5_onesie_audio_only_playback")&&hl(p.videoData);if(p.ZQ&&p.S3){if(!p.ZQ.has(p.CT))return!1;var V=p.ZQ.get(p.CT),N;if(N=V){N=!1;for(var H=g.F(V.hc.keys()),X=H.next();!X.done;X=H.next())if(X=V.hc.get(X.value))for(var d=g.F(X.C8),a=d.next();!a.done;a=d.next())a.value.yA>0&&(X.DQ?N=!0:C=!0);N=!(C&&N)}if(N)return!1}p.ZE("ofr");p.PK.resolve(p.playerResponse);if(!p.bb){var E;(E=p.El)==null||E.start();p.DN.start()}return p.uU= !0}; SOH=function(p){if(p.ZQ&&!p.G("html5_onesie_media_capabilities")){p.ZE("ogsf_s");var C=CLs(p.Ta.getVideoData(),function(N,H){p.k_(N,H)}),V=Fv9(p.Ta); C.video=wby(V,C.video);p.ZE("ogsf_c");if(C.video.length)return C;p.k_("ombspf","l."+V.C+";u."+V.T+";o."+V.V+";r."+V.reason)}}; Jh1=function(p,C){return p.G("html5_onesie_sync_request_encryption")||(C==null?0:C.wB)||g.LI(p.yn)&&p.G("html5_embed_onesie_use_sync_encryption")?!1:!!fW()}; LA=function(p){if(!p.MZ)return{};var C=p.MZ.cK(),V;C.d=(V=p.MZ.Vn)==null?void 0:V.c6();C.shost=p.s1;C.ty="o";return C}; Kv9=function(p,C){var V,N;(N=(p=(V=p.ZQ)==null?void 0:V.get(C))==null)||(C=p.V?!1:p.V=!0,N=!C);return!N}; Dla=function(p,C,V,N,H,X,d,a,E,l,t){g.Y.call(this);var c=this;this.Ta=p;this.nS=C;this.policy=V;this.audioTrack=N;this.videoTrack=H;this.hk=X;this.n1=d;this.Y_=a;this.V=E;this.timing=l;this.J=t;this.T=[];this.Y={};this.vr=this.Ga=!1;this.nM=new Set;this.W=this.Wr=this.Z=this.iL=0;this.S=null;this.b_={xG:[],Eh:[]};this.sY={xG:[],Eh:[]};this.Sr={IIa:function(){return c.T}, YxV:function(){return c.Y}, Oka:function(){c.T.length=0}, XPk:function(){return c.nM}, wPe:function(){return c.Z}, HV_:function(T){c.Z=T}, DSo:function(T){c.W=T}}; this.videoData=this.Ta.getVideoData();this.policy.YN&&(this.Sa=new F0(this.nS,this.policy,this.n1),g.R(this,this.Sa))}; Ulu=function(p,C){C=C===void 0?!1:C;if(uBQ(p,C)){p.policy.D&&p.nS.k_("sabrcrq",{create:1});var V=new Op(0,p.hk.J,p);p.policy.W1>0&&p.W++;C=Zc1(p,V,C);p.T.push(C);var N;(N=p.Sa)==null||nA9(N,p.hk.J)}}; OcV=function(p,C){var V=Qz(p);if(p.policy.Vs){var N=p.b_;var H=p.sY}else N=rZ(p,p.audioTrack),H=rZ(p,p.videoTrack);var X=[].concat(g.K(N.xG),g.K(H.xG)),d=[].concat(g.K(N.Eh),g.K(H.Eh)),a=p.nS.rM(),E,l,t=p.Ta,c=p.hk,T=p.C,M=p.nM,J=p.policy,S=p.nS.Z$,D=QMa(p.nS)*1E3,Z=(E=p.Vn)==null?void 0:E.Hb;E=(l=p.Vn)==null?void 0:l.ys;var f;l=Number((f=p.V.S)==null?void 0:f.info.itag)||0;var q;f=Number((q=p.V.Y)==null?void 0:q.info.itag)||0;C={Ta:t,hk:c,xG:X,Eh:d,VH:V,nextRequestPolicy:T,nM:M,wY:J,Z$:S,MQ:D,Hb:Z, ys:E,iL:p.iL,isPrefetch:C||p.nS.isSuspended,nG:l,yK:f,x3:a};V=p.nS.Ib();X=Nn(V);V&&(C.jN=X);if(V=p.Ta.yW())C.Q2=V*1E3;var A;V=p.V;X=V.a$;if((V.wY.C&&V.wY.lP||((A=V.wY)==null?0:A.T&&A.kt))&&!X)for(A=g.F(V.V),d=A.next();!d.done;d=A.next())if(d.value.K4){X=!0;break}A=vZ(V.wY)&&!X?[]:XkV(V,V.V);C.iK=A;A=p.V;vZ(A.wY)&&!A.b_?A=[]:(V=tQQ(A),V.length===0&&(V=A.W),A=XkV(A,V));C.fl=A;p.policy.Kj&&(A=p.audioTrack,A=Lc(p.nS,A)*A.F$,C.b7=A,A=p.videoTrack,A=Lc(p.nS,A)*A.F$,C.n8=A);if(p.policy.W){N=fMj(p,N.xG,H.xG); var z;if(H=(z=p.S)==null?void 0:z.HG(N))C.eS=H}p.policy.b_&&p.T.length>0&&p.T[0].D3()&&(C.lda=p.T[0].Gc());return C}; Qz=function(p){var C,V=p.policy.Y&&((C=p.nS)==null?void 0:C.US());C=p.nS.getCurrentTime()||0;C=yhQ(p,C);var N=p.nS.yZ()||0;C+=N;N=Z6(p.videoData)||g.ud(p.videoData);var H=0;V?(N&&(H=Number.MAX_SAFE_INTEGER),p.videoData.Wr&&(H=Math.ceil(p.videoData.vr*1E3))):H=Math.ceil(C*1E3);return Math.min(Number.MAX_SAFE_INTEGER,H)}; yhQ=function(p,C){if(p.nS.isSeeking())return C;var V=p.Ta.Nt();if(!V)return C;V=V.yx();if(V.length===0||EJ(V,C))return C;if(p.policy.lL&&!ylQ(p.videoTrack,C)&&!ylQ(p.audioTrack,C))return p.nS.k_("sundrn",{b:0,lt:C}),C;for(var N=C,H=Infinity,X=0;XC)){var d=C-V.end(X);d=20)?(p.nS.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),C):N}; fMj=function(p,C,V){var N=p.nS.getCurrentTime()||0;C=qOs(p,C,N);p=qOs(p,V,N);return Math.min(C,p)}; qOs=function(p,C,V){p=p.nS.yZ()||0;C=g.F(C);for(var N=C.next();!N.done;N=C.next()){var H=N.value;N=H.startTimeMs?H.startTimeMs/1E3-p:0;H=N+(H.durationMs?H.durationMs/1E3:0);if(N<=V&&V<=H)return H}return V}; uBQ=function(p,C){if(p.policy.W1>0){var V=Math.floor((0,g.Ip)()/1E4);if(V===p.Wr){if(p.W>=p.policy.W1){if(p.W===p.policy.W1){var N={reason:"toomanyrequests"};N.limit=p.W;p.nS.handleError("player.exception",N);p.W+=1}return!1}}else p.Wr=V,p.W=0}C=!C&&!JR(p.n1);if(p.nS.isSuspended&&(p.nS.PJ||C)||p.a$&&(0,g.Ip)()0&&(!p.policy.b_||p.T.length!==1||!p.T[0].D3()))return!1;var H;if((H=p.hk.J)==null||!F6(H,p.policy,p.Y,p.nS.kh()))return!1;H=p.policy.xV&&p.policy.C&&p.nS.RI();if(tI(p.audioTrack)&& tI(p.videoTrack)&&!H)return!1;if(p.policy.C&&p.D&&!p.nS.RI())return p.Vr("ssap",{pauseontlm:1}),!1;if(BZ(p,p.audioTrack)&&BZ(p,p.videoTrack))return p.policy.V&&p.nS.k_("sabrHeap",{a:""+iQ(p.audioTrack),v:""+iQ(p.videoTrack)}),!1;if(H=p.policy.W)H=!1,p.J.C===2?H=!0:p.J.C===3&&(Qz(p),p.nS.yZ(),C=fMj(p,clL(p.audioTrack,p.nS.isSeeking()).xG,clL(p.videoTrack,p.nS.isSeeking()).xG),V=p.J,C>=V.V?(V.k_("sdai",{haltrq:C,est:V.V}),C=!0):C=!1,C&&(H=!0)),H&&p.policy.D&&p.nS.k_("sabrcrq",{waitad:1});if(H)return!1; if(!p.C)return p.policy.D&&p.nS.k_("sabrcrq",{nopolicy:1}),!0;if(p.Ta.yW())return p.policy.D&&p.nS.k_("sabrcrq",{utc:1}),!0;if(p.V.J)return p.policy.D&&p.nS.k_("sabrcrq",{audio:1}),!0;if(!p.C.targetAudioReadaheadMs||!p.C.targetVideoReadaheadMs)return p.policy.D&&p.nS.k_("sabrcrq",{noreadahead:1}),!0;if(p.policy.Y&&p.nS.US())return p.policy.D&&p.nS.k_("sabrcrq",{seekToHead:1}),!0;H=Math.min(Lc(p.nS,p.audioTrack)*1E3,p.C.targetAudioReadaheadMs);C=Math.min(Lc(p.nS,p.videoTrack)*1E3,p.C.targetVideoReadaheadMs); var X=Math.min(H,C);V=sp(p.audioTrack,!0)*1E3;var d=sp(p.videoTrack,!0)*1E3;if(p.policy.Vs){p.b_=rZ(p,p.audioTrack);p.sY=rZ(p,p.videoTrack);var a=Qz(p);var E=IMH(p.b_.xG,a);a=IMH(p.sY.xG,a)}else E=V,a=d;var l=EC||N>=0&&H.WI!==N+1)break;V=H.startTimeMs+H.durationMs;N=H.nx}return Math.max(0,V-C)}; Zc1=function(p,C,V){var N={n1:p.n1,rW:function(E,l){p.Ta.TP(E,l)}, Ti:p.policy.Ic,BJ:p.policy.V};p.n1.C.Y&&(N.v_=(p.videoTrack.T.info.F$||0)+(p.audioTrack.T.info.F$||0));p.policy.Of&&(N.HR=p.audioTrack.T.index.Ve(),N.Ti=!1);var H=mhS(C,p.policy,p.Y)?2:1;H!==p.Z&&(p.Z=H,ovY(p));V=OcV(p,V);if((p.policy.C||p.policy.b_)&&p.policy.V&&V.nM){for(var X=H="",d=g.F(V.nM),a=d.next();!a.done;a=d.next())a=a.value,p.videoData.sabrContextUpdates.has(a)?H+="_"+a:X+="_"+a;p.nS.k_("sabrbldrqs",{ctxts:H,misctxts:X})}J_H(C,V,p.nS.RI(),p.policy,p.Y)||!p.policy.C&&!p.policy.b_||p.nS.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);N=new ZX(p.policy,C,p.hk,p.Y,p,N,p.nS.qP(),p.policy.XT?p.nS.RI():void 0);U4(p.timing);p.policy.D&&p.nS.k_("sabrcrq",{rn:N.ZM(),probe:C.Hf()});return N}; Cu=function(p,C){if(C.fS()||p.fS())p.policy.jS||(p.policy.Y?pu(p.nS):p.nS.f7());else{if(p.policy.V&&C.isComplete()&&C instanceof ZX){var V=p.nS,N=V.k_,H,X,d=Object.assign(C.MZ.cK(),{rst:C.state,strm:C.xhr.hV(),d:(H=C.MZ.Vn)==null?void 0:H.c6(),cncl:C.xhr&&C.uJ.S?1:0,rqb:C.LB,cwt:C.vQ,swt:(X=C.C5)==null?void 0:X.H5});H=Object.assign(S5H(C.info),d);N.call(V,"rqs",H)}if(C.isComplete()&&C.Hf()&&C instanceof ZX)p.policy.qW?C.bE()?(C.dispose(),p.T.length===0?p.nS.f7():(p=p.T[0],p instanceof ZX&&p.r9()&& p.RA(!1))):C.Ad()&&p.nS.handleError(C.LO(),C.BP()):(C.dispose(),p.nS.f7());else{if(C.aB())C instanceof ZX&&Rga(p.timing,C),ovY(p),kJs(p);else if(C.Ad())V=p.Ta.yW(),C instanceof ZX&&FjL(C.info)&&V&&p.nS.Jx(V),C instanceof gZ?p.T.pop():(V=1,C.canRetry()&&j$9(p.nS)&&(xlX(p,C),V=0),p.nS.handleError(C.LO(),C.BP(),V));else{if(p.nS.isSuspended&&!C.isComplete())return;kJs(p)}C.fS()||C instanceof gZ||(C.isComplete()?V=w_X(C,p.policy,p.Y):(V=Pdv(C,p.policy,p.Y),V===1&&(p.Ga=!0)),V!==0&&(N=new Op(1,C.info.sR), N.Bz=V===2,Zc1(p,N)));p.policy.wy&&!C.isComplete()?CxX(p.nS):p.nS.f7()}}}; kJs=function(p){for(;p.T.length&&p.T[0].jh(p.qg());){var C=p.T.shift();YO9(p,C);if(p.policy.W){var V=p;if(!V.policy.Qn&&C.jh(V.qg())){var N=C.ZM();if(V.R$!==N){var H=C.qs();C=H.ox;var X=H.u3;H=H.isDecorated;!V.S||X<0||(V.R$=N,N=yN(V.J,X/1E3,C),X=V.nS.yZ()||0,$nV(V.J,C,N-X,H,V.S))}}}}p.T.length&&YO9(p,p.T[0])}; YO9=function(p,C){var V=new Set(C.yl(p.qg()));V=g.F(V);for(var N=V.next();!N.done;N=V.next()){var H=N.value;if(!(N=!(C instanceof gZ))){N=p.V;var X=N.hk.p4,d=Up(N.videoInfos,X);N=lgV(N,H,X)||d.includes(H)}if(N){N=C.Ux(H,p.qg());if(mij(p.videoData)&&Xz(N[0].T.info.mimeType))break;if((!(p.policy.ym&&N.length>0&&(N[0].T.info.DQ()?sp(p.audioTrack):sp(p.videoTrack))>3)||C.isComplete())&&C.Lp(H,p.qg())){H=C.iT(H,p.qg());if(p.policy.C&&(X=N[0].T.info,(d=p.nS.RI())&&X)){var a=C.Ns();d.api.G("html5_ssap_set_format_info_on_video_data")&& a===lQ(d)&&(X.DQ()?d.Ta.getVideoData().S=X:d.Ta.getVideoData().C=X);if(d=jP(d.timeline,a))if(d=d[0].getVideoData())X.DQ()?d.S=X:d.C=X}H=g.F(H);for(X=H.next();!X.done;X=H.next()){X=X.value;p.policy.V&&C instanceof gZ&&p.nS.k_("omblss",{s:X.info.Zh()});d=X.info.T.info.DQ();var E=X.info.T;if(d){a=void 0;var l=p.V,t=(a=C.Ly(p.qg()))==null?void 0:a.token;l.J=!1;E!==l.Y&&(l.Y=E,l.q4(E,l.audioTrack,t))}else a=void 0,HTv(p.V,E,(a=C.Ly(p.qg()))==null?void 0:a.token);a=d?p.audioTrack:p.videoTrack;C instanceof gZ&&(a.D=!1,C instanceof gZ&&(d?bIa(p.timing):IWj(p.timing)));if(p.policy.q8)try{X0(a,N,X)}catch(c){X=bv(c),p.nS.handleError(X.errorCode,X.details,X.severity),a.H$(),p.SY(!1,"pushSlice"),pu(p.nS)}else X0(a,N,X)}}}}}; xlX=function(p,C){p.policy.b_?p.T.splice(p.T.indexOf(C)).forEach(function(V){V.dispose()}):(p.T.pop(),C==null||C.dispose())}; zWj=function(p,C,V){for(var N=[],H=0;H0)for(var C=g.F(p.videoData.sabrContextUpdates.keys()),V=C.next();!V.done;V=C.next()){V=V.value;var N=void 0;((N=p.videoData.sabrContextUpdates.get(V))==null?0:N.sendByDefault)&&p.nM.add(V)}if(p.policy.b_&&p.T.length)for(C=g.F(p.T),V=C.next();!V.done;V=C.next())(V=V.value.Gc())&&V.type&&V.sendByDefault&&p.nM.add(V.type)}; eWS=function(p){p.policy.VZ&&(p.Vn=void 0,p.iL=0)}; PT9=function(p,C){if(C.Ad()||C.fS()){var V=p.nS,N=V.k_,H=C.state;p=p.qg();var X,d;if((C=(X=C.ZQ)==null?void 0:X.get(p))==null)C=void 0;else{X=0;p=C.yl();for(var a=0;a=p.policy.Aa,d=!1;if(X){var a=0;!isNaN(C)&&C>p.W&&(a=C-p.W,p.W=C);a/H=p.policy.Ov&&!p.V;if(!X&&!V&&Wv1(p,C))return NaN;V&&(p.V=!0);a:{N=d;V=(0,g.Ip)()/1E3-(p.A7.Kd()||0)-p.D.T-p.policy.RN;X=p.C.startTime;V=X+V;if(N){if(isNaN(C)){Vb(p,NaN,"n",C);X=NaN;break a}N=C-p.policy.gh;N=X.Qi&&N<=X.zM){N=!0;break a}N=!1}N=!N}if(N)return p.k_("ostmf",{ct:p.getCurrentTime(),a:C.T.info.DQ()}),!1;(p=p.b_)!=null&&(p.hc.get(V).g3=!0);return!0}; jAy=function(p){if(!p.hk.p4)return!0;var C=p.Ta.getVideoData();if(C.G("html5_skip_live_preroll_onesie")&&X9(p.Ta)||C.G("html5_skip_live_preroll_onesie_post_live")&&X9(p.Ta)&&(C.EO||C.isPremiere))return p.k_("ombpa",{}),!1;var V,N;if(p.policy.z2&&!!((V=p.a$)==null?0:(N=V.WY)==null?0:N.AiV)!==p.hk.EO)return p.k_("ombplmm",{}),!1;V=C.Hc||C.liveUtcStartSeconds||C.o6;if(p.hk.EO&&V)return p.k_("ombplst",{}),!1;if(p.hk.Z)return p.k_("ombab",{}),!1;V=Date.now();return SO(p.hk)&&!isNaN(p.sY)&&V-p.sY>p.policy.AY* 1E3?(p.k_("ombttl",{}),!1):p.hk.AE&&p.hk.S||!p.policy.kV&&p.hk.isPremiere||!(tl(C)===0||p.policy.T&&C.G("html5_enable_onesie_media_for_sabr_proxima_optin"))||C.G("html5_disable_onesie_media_for_mosaic")&&ceV(C)||C.G("html5_disable_onesie_media_for_ssdai")&&C.isDaiEnabled()&&C.enableServerStitchedDai?!1:!0}; VfQ=function(p,C){var V=C.T,N=p.hk.p4;if(jAy(p))if(p.b_&&p.b_.hc.has(S5(g.VE(V.info,N)))){if(N=S5(g.VE(V.info,N)),C2j(p,C)){var H=new oZ(p.b_.Ux(N)),X=function(d){try{if(d.Ad())p.handleError(d.LO(),d.BP()),Ep(C,d),xE(d.info)&&KA(p.S,C,V,!0),p.f7();else if(G5e(p.S,d)){var a;(a=p.V)==null||L4v(a,d.info,p.D);p.f7()}}catch(E){d=bv(E),p.handleError(d.errorCode,d.details,d.severity),p.H$()}}; V.V=!0;kE(H)&&(a6S(C,new em(p.policy,N,H,p.b_,X)),U4(p.timing))}}else p.k_("ombfmt",{})}; dX=function(p,C){C=C||p.videoTrack&&p.videoTrack.C&&p.videoTrack.C.startTime||p.getCurrentTime();var V=Dp,N=p.videoTrack,H=p.T;C=H.nextVideo&&H.nextVideo.index.tU(C)||0;H.Vn!==C&&(H.Wr={},H.Vn=C,zX(H,H.T));C=!H.T.isLocked()&&H.Z>-1&&(0,g.Ip)()-H.ZC.T&&C.reason==="b";N||H||V?(p.Ta.wP({reattachOnConstraint:N?"u":H?"drm":"perf",lo:C.C,up:C.T}),p.policy.Nw||(p.C.T.C=!1)):(p.policy.Nw&&(p.C.T.C=!1),pu(p))}}else if(!X7y(p.T,C)&&p.videoTrack){p.logger.debug(function(){return"Setting constraint: r="+C.reason+" u="+C.T}); V=p.T.T;aXu(p,ikv(p.T,C));dX(p);N=C.isLocked()&&C.reason==="m"&&p.T.b_;H=p.policy.qn&&C.reason==="l"&&cZ(p.videoTrack);V=V.T>C.T&&C.reason==="b";var X=p.T.UY&&!rN();N||H||V||X?p.Ta.wP({reattachOnConstraint:N?"u":H?"drm":X?"codec":"perf"}):pu(p)}}; lX1=function(p,C,V){if((!p.Hr||j6(p.Hr)&&!p.policy.Q1)&&!p.BR.isSeeking()&&(p.policy.T||cZ(C)&&C.T.rI()&&p.T.a$)){var N=p.getCurrentTime()+RPQ(p.Z,C,V);p.logger.debug(function(){return"Clearing back to "+N.toFixed(3)}); vAL(C,N)}}; aXu=function(p,C){C&&(p.logger.debug(function(){return"Logging new format: "+iX(C.video.info)}),tfs(p.Ta,new b2(C.video,C.reason))); if(p.T.R$){var V=EBu(p.T,"a");p.Ta.Sg(new b2(V.audio,V.reason))}}; pu=function(p){g.HF(p.kM)}; CxX=function(p){p.policy.wy&&p.policy.Kt&&Math.min(mIV(p.videoTrack),mIV(p.audioTrack))*1E3>p.policy.Vm?g.HF(p.Wc):p.f7()}; ctv=function(p,C){var V=(0,g.Ip)()-C,N=sp(p.audioTrack,!0)*1E3,H=sp(p.videoTrack,!0)*1E3;p.logger.debug(function(){return"Appends paused for "+V}); if(p.policy.V&&(p.k_("apdpe",{dur:V.toFixed(),abuf:N.toFixed(),vbuf:H.toFixed()}),mN(p.policy))){var X=Yv(p.Z);p.k_("sdps",{ct:C,ah:N.toFixed(),vh:H.toFixed(),mr:nES(p.Z,p.LV,X),bw:X.toFixed(),js:p.isSeeking(),re:+p.LV,ps:(p.policy.Lj||"").toString(),rn:(p.policy.ij||"").toString()})}}; TdL=function(p){if(p.policy.C&&M4(p.videoTrack)&&M4(p.audioTrack))return"ssap";if(f6e(p.videoTrack))return p.logger.debug("Pausing appends for server-selectable format"),"ssf";if(p.policy.R$&&I6v(p.videoTrack)&&I6v(p.audioTrack))return"updateEnd";if(tI(p.audioTrack)||tI(p.videoTrack)&&p.videoTrack.T.info.o$!=="f")return"";if(p.BR.isSeeking()){var C=p.Z;var V=p.videoTrack;var N=p.audioTrack;if(C.policy.T){var H=C.policy.BB;mN(C.policy)&&(H=nES(C,!1,Yv(C)));C=H;V=sp(N,!0)>=C&&sp(V,!0)>=C}else V.V.length|| N.V.length?(H=V.T.info.F$+N.T.info.F$,H=10*(1-Yv(C)/H),C=Math.max(H,C.policy.BB),V=sp(N,!0)>=C&&sp(V,!0)>=C):V=!0;if(!V)return"abr";V=p.videoTrack;if(V.V.length>0&&V.S.C.length===1&&PsX(V.S).info.Y360);N=mN(p.policy)&&p.policy.sx;if(!p.LV||!N&&V)return"";V=p.policy.Y9;mN(p.policy)&&(V=nES(p.Z,p.LV,Yv(p.Z)));V=DIj(p.videoTrack, p.getCurrentTime(),V)||DIj(p.audioTrack,p.getCurrentTime(),V);return mN(p.policy)?V?"mbnm":"":(p.videoTrack.V.length>0||p.audioTrack.V.length>0||$IX(p.S,p.videoTrack,p.audioTrack)||$IX(p.S,p.audioTrack,p.videoTrack))&&V?"nord":""}; Mfs=function(p){if(p.Y){var C=p.Y.f7(p.audioTrack,tj(p.Hr.C.K7()));C&&p.Ta.seekTo(C,{EC:!0,NZ:"pollSubsegmentReadahead",zR:!0})}}; KBX=function(p,C,V){if(p.policy.R$&&I6v(C))return!1;if(V.Vj())return!0;if(!V.xT())return!1;var N=rS(C);if(!N||N.info.type===6)return!1;var H=p.policy.hm;if(H&&!N.info.S){var X=N.info.Qi-p.getCurrentTime();if(N.info.YH)return p.policy.T&&vdV(p,C),p.policy.VR&&j5s(C.S,H,!1),!1;FBa(p,C);var a;p.policy.iW&&V===((a=p.Hr)==null?void 0:a.T)&&p.UY&&(V.f3()===0?(p.UY=!1,p.policy.iW=!1):p.KS=V.f3());if(!S4u(p,V,N,C))return!1;p.policy.R$&&N.info.Vo()?(p.Ta.K().Gk()&&p.k_("eosl",{ls:N.info.Zh()}), N.isLocked=!0):(C.xn(N),aby(p.T,N.info),p.logger.debug(function(){return"Appended "+N.info.Zh()+", buffered: "+sJ(V.K7())})); return!0}; vdV=function(p,C){C===p.videoTrack?p.vr=p.vr||(0,g.Ip)():p.Sa=p.Sa||(0,g.Ip)()}; FBa=function(p,C){C===p.videoTrack?p.vr=0:p.Sa=0}; S4u=function(p,C,V,N){var H=p.policy.X$?(0,g.Ip)():0,X=V.W&&V.info.T.T||void 0,d=V.T;V.W&&(d=Dxy(p,V,d)||d);var a=d.AB();d=p.policy.X$?(0,g.Ip)():0;C=uMv(p,C,a,V.info,X);(N=N.Z)!=null&&(X=V.info,H=d-H,d=(0,g.Ip)()-d,!N.C||cKX(N.C,X)&&N.C.LS===X.LS||N.flush(),N.S+=H,N.V+=d,H=1,!N.C&&X.C&&(H=2),wd(N,H,C),d=Math.ceil(X.C/1024),H===2&&N.T.add(d),N.T.add(Math.ceil((X.C+X.V)/1024)-d),N.C=X);p.Vn=0;if(C===0)return p.Ga&&(p.logger.debug("Retry succeed, back to normal append logic."),p.Ga=!1,p.X$=!1),p.qo= 0,!0;if(C===2||C===5)return Z49(p,"checked",C,V.info),!1;if(C===1){if(!p.Ga)return p.logger.debug("QuotaExceeded, retrying."),p.Ga=!0,!1;if(!p.X$)return p.X$=!0,p.Ta.seekTo(p.getCurrentTime(),{NZ:"quotaExceeded",zR:!0}),!1;V.info.K9()?(H=p.policy,H.Ga=Math.floor(H.Ga*.8),H.Vn=Math.floor(H.Vn*.8)):(H=p.policy,H.kM=Math.floor(H.kM*.8),H.Vn=Math.floor(H.Vn*.8));p.policy.T?oA(p.C.T,V.info.T,!1):n4(p.T,V.info.T)}p.Ta.wP({reattachOnAppend:C});return!1}; Dxy=function(p,C,V){var N;if(N=p.policy.eg&&p.Hr&&!p.Hr.J&&!p.Ta.tj())C=C.info.T.info,N=C.Ft()&&Qu(C)&&C.video&&C.video.width<3840&&C.video.width>C.video.height;if(N&&(p.Hr.J=!0,xZ('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return V=RBV(V),p.policy.V&&p.k_("sp4k",{s:!!V}),V}; Z49=function(p,C,V,N){var H="fmt.unplayable",X=1;V===5||V===3?(H="fmt.unparseable",p.policy.T?!N.T.info.video||kd(p.C.T).size>0||oA(p.C.T,N.T,!1):!N.T.info.video||kd(p.T.W).size>0||n4(p.T,N.T)):V===2&&(p.qo<15?(p.qo++,H="html5.invalidstate",X=0):H="fmt.unplayable");N=bw(N);var d;N.mrs=(d=p.Hr)==null?void 0:dl(d);N.origin=C;N.reason=V;p.handleError(H,N,X)}; dI9=function(p,C,V,N,H){var X=p.hk;var d=p.policy.T,a=!1,E=-1,l;for(l in X.T){var t=Xz(X.T[l].info.mimeType)||X.T[l].info.K9();if(N===t)if(t=X.T[l].index,t.fk(C.LS)){a=t;var c=C,T=a.xz(c.LS);T&&T.startTime!==c.startTime?(a.segments=[],a.tM(c),a=!0):a=!1;a?E=C.LS:!C.pending&&d&&(c=t.getDuration(C.LS),c!==C.duration&&(X.publish("clienttemp","mfldurUpdate",{itag:X.T[l].info.itag,seg:C.LS,od:c,nd:C.duration},!1),t.tM(C),a=!0))}else t.tM(C),a=!0}E>=0&&(d={},X.publish("clienttemp","resetMflIndex",(d[N? "v":"a"]=E,d),!1));X=a;d61(p.BR,C,N,X);p.V.T5(C,V,N,H);C.LS===p.hk.AE&&X&&M6(p.hk)&&C.startTime>M6(p.hk)&&(p.hk.vr=C.startTime+(isNaN(p.timestampOffset)?0:p.timestampOffset),p.BR.isSeeking()&&p.BR.T 5)return p.Vn=0,p.Ta.wP({initSegStuck:1,as:N.info.Zh()}),!0}else p.Vn=0,p.Hc=N;p.policy.mU&&(V.abort(),(d=C.Z)!=null&&(wd(d,4),d.flush()));H=uMv(p,V,X,E,H);var l;(l=C.Z)==null||Fxj(l,H,E);if(H!==0)return UxL(p,H,N),!0;N.info.K9()?kMX(p.timing):xnL(p.timing);p.logger.debug(function(){return"Appended init for "+N.info.T.info.id}); return V.SO()}; JtL=function(p,C,V){if(C.jA()==null){p=HZ(p);if(!(C=!p||p.T!==V.info.T)){a:if(p=p.D,V=V.info.D,p.length!==V.length)V=!1;else{for(C=0;C1)return 6;E.Wr=new g.N8(function(){var t=rS(E);p.fS()||t==null||!t.isLocked?p.Ta.K().Gk()&&p.k_("eosl",{delayA:t==null?void 0:t.info.Zh()}):fXH(E)?(p.Ta.K().Gk()&&p.k_("eosl",{dunlock:t==null?void 0:t.info.Zh()}),O4u(p, E===p.audioTrack)):(p.k_("nue",{ls:t.info.Zh()}),t.info.J+=1,p.Hr&&p.VX())},1E4,p); p.Ta.K().Gk()&&p.k_("eosl",{delayS:N.Zh()});E.Wr.start()}if(p.policy.JF&&(N==null?0:N.Vo())){var l;if((l=E.Vn)==null?0:l.isActive())g.XV(E.Vn),p.k_("sbac",{as:N.Zh()});E.Vn=new g.N8(function(){p.k_("sbum5s",{as:N.Zh()})},5E3,p); E.Vn.start()}p.policy.KT&&(N==null?void 0:N.T)instanceof zn&&N.Vo()&&p.k_("poseos",{itag:N.T.info.itag,seg:N.LS,lseg:N.T.index.Ha(),es:N.T.index.V});C.appendBuffer(V,N,H)}catch(t){if(t instanceof DOMException){if(t.code===11)return 2;if(t.code===12)return 5;if(t.code===22||t.message.indexOf("Not enough storage")===0)return C=Object.assign({name:"QuotaExceededError",buffered:sJ(C.K7()).replace(/,/g,"_"),vheap:iQ(p.videoTrack),aheap:iQ(p.audioTrack),message:g.vy(t.message,3),track:p.Hr?C===p.Hr.C?"v": "a":"u"},BSj()),p.handleError("player.exception",C),1;g.nm(t)}return 4}return p.Hr.gI()?3:0}; Q7=function(p,C,V){p.Ta.seekTo(C,V)}; GX=function(p,C){p.Ta.yG(C)}; Lc=function(p,C){if(p.Ga&&!p.LV)return 3;if(p.isSuspended)return 1;var V;if((V=p.Hr)==null?0:V.Hr&&V.Hr.streaming===!1)return 4;V=(C.T.info.audio?p.policy.kM:p.policy.Ga)/(C.F$*p.policy.Kp);if(p.policy.gW>0&&p.Hr&&j6(p.Hr)&&(C=C.T.info.video?p.Hr.C:p.Hr.T)&&!C.SO()){C=C.K7();var N=a7(C,p.getCurrentTime());N>=0&&(C=p.getCurrentTime()-C.start(N),V+=Math.max(0,Math.min(C-p.policy.gW,p.policy.eD)))}p.policy.Vn>0&&(V=Math.min(V,p.policy.Vn));return V}; q41=function(p){p.R$&&!p.isSuspended&&JR(p.schedule)&&(yte(p,p.R$),p.R$="")}; yte=function(p,C){kv(C,"cms",function(V){p.policy.V&&p.k_("pathprobe",V)},function(V){p.Ta.handleError(V)})}; IXj=function(p,C){if(p.Hr&&p.Hr.S&&!p.Hr.gI()&&(C.eA=sp(p.videoTrack),C.C=sp(p.audioTrack),p.policy.V)){var V=iQ(p.videoTrack),N=iQ(p.audioTrack),H=sJ(p.Hr.C.K7(),"_",5),X=sJ(p.Hr.T.K7(),"_",5);Object.assign(C.T,{lvq:V,laq:N,lvb:H,lab:X})}C.bandwidthEstimate=xv(p.Z);var d;(d=p.audioTrack.Z)==null||d.flush();var a;(a=p.videoTrack.Z)==null||a.flush();p.logger.debug(function(){return yu(C.T)})}; b4Y=function(p,C){p.D=C;p.V&&(p.V.Y=C);p.D.L2(p.videoTrack.T.info.Ft());p.S.C=p.D;p.policy.W&&(p.J.S=p.D)}; AtX=function(p,C){if(p.Hr&&p.Hr.C){if(p.policy.Vw){var V=oAY(p.audioTrack);if(V&&V.DQ()){var N=p.Ta;N.w3&&(N.w3.T=V,N.Pc(N.w3.videoId).jB(N.w3))}}p.policy.qf&&(V=oAY(p.videoTrack))&&V.K9()&&(N=p.Ta,N.xA&&(N.xA.T=V,N.Pc(N.xA.videoId).yX(N.xA)));C-=isNaN(p.timestampOffset)?0:p.timestampOffset;p.getCurrentTime()!==C&&p.resume();p.BR.isSeeking()&&p.Hr&&!p.Hr.gI()&&(V=p.getCurrentTime()<=C&&C=C&&GJs(p,N.startTime,!1)}); return V&&V.startTimep.getCurrentTime())return V.start/1E3;return Infinity}; zb1=function(p){var C=HZ(p.videoTrack),V=HZ(p.audioTrack);return C&&!Alv(p.videoTrack)?C.startTime:V&&!Alv(p.audioTrack)?V.startTime:NaN}; AhL=function(p){if(p.Ta.getVideoData().isLivePlayback)return!1;var C=p.Ta.Nt();if(!C)return!1;C=C.getDuration();return bcy(p,C)}; bcy=function(p,C){if(!p.Hr||!p.Hr.T||!p.Hr.C)return!1;var V=p.getCurrentTime(),N=p.Hr.T.K7();p=p.Hr.C.K7();N=N?lX(N,V):V;V=p?lX(p,V):V;V=Math.min(N,V);return isNaN(V)?!1:V>=C-.01}; UxL=function(p,C,V){p.policy.d1&&id(p.Ta.getVideoData())?(p.Ta.tA()||Z49(p,"sepInit",C,V.info),Rb9(p.Ta,"sie")):Z49(p,"sepInit",C,V.info)}; j$9=function(p){return p.Ta.kh()0){var H=N.T.shift();eb1(N,H.info)}N.T.length>0&&(H=N.T[0].time-(0,g.Ip)(),N.C.start(Math.max(0,H)))}},0); g.R(this,this.C);C.subscribe("widevine_set_need_key_info",this.W,this)}; eb1=function(p,C){a:{var V=C.cryptoPeriodIndex;if(isNaN(V)&&p.V.size>0)V=!0;else{for(var N=g.F(p.V.values()),H=N.next();!H.done;H=N.next())if(H.value.cryptoPeriodIndex===V){V=!0;break a}V=!1}}p.publish("log_qoe",{wvagt:"reqnews",canskip:V});V||p.publish("rotated_need_key_info_ready",C)}; P2Y=function(){var p={};var C=p.url;var V=p.interval;p=p.retries;this.url=C;this.interval=V;this.retries=p}; wIj=function(p,C){this.statusCode=p;this.message=C;this.C=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null}; $xe=function(p,C,V){V=V===void 0?"":V;g.Y.call(this);this.message=p;this.requestNumber=C;this.Yt=V;this.onError=this.onSuccess=null;this.T=new g.oN(5E3,2E4,.2)}; LBa=function(p,C,V){p.onSuccess=C;p.onError=V}; WBL=function(p,C,V,N){var H={timeout:3E4,onSuccess:function(X){if(!p.fS()){NR("drm_net_r",void 0,p.Yt);var d=X.status==="LICENSE_STATUS_OK"?0:9999,a=null;if(X.license)try{a=Fv(X.license)}catch(J){g.nm(J)}if(d!==0||a){a=new wIj(d,a);d!==0&&X.reason&&(a.errorMessage=X.reason);if(X.authorizedFormats){d={};for(var E=[],l={},t=g.F(X.authorizedFormats),c=t.next();!c.done;c=t.next())if(c=c.value,c.trackType&&c.keyId){var T=gdY[c.trackType];if(T){T==="HD"&&X.isHd720&&(T="HD720");c.isHdr&&(T+="HDR");d[T]|| (E.push(T),d[T]=!0);var M=null;try{M=Fv(c.keyId)}catch(J){g.nm(J)}M&&(l[g.mq(M,4)]=T)}}a.C=E;a.T=l}X.nextFairplayKeyId&&(a.nextFairplayKeyId=X.nextFairplayKeyId);X.sabrLicenseConstraint&&(a.sabrLicenseConstraint=Fv(X.sabrLicenseConstraint));X=a}else X=null;if(X)p.onSuccess(X,p.requestNumber);else p.onError(p,"drm.net","t.p;p.i")}}, onError:function(X){if(!p.fS())if(X&&X.error)X=X.error,p.onError(p,"drm.net.badstatus","t.r;p.i;c."+X.code+";s."+X.status,X.code);else p.onError(p,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){p.onError(p,"drm.net","rt.req."+p.requestNumber)}}; N&&(H.yb="Bearer "+N);g.ah(V,"player/get_drm_license",C,H)}; QAa=function(p,C,V,N){g.ca.call(this);this.videoData=p;this.yn=C;this.Z=V;this.sessionId=N;this.W={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.D=this.b_=!1;this.V=null;this.Vn=[];this.S=[];this.J=!1;this.T={};this.sY=NaN;this.status="";this.Y=NaN;this.C=p.W;this.cryptoPeriodIndex=V.cryptoPeriodIndex;p={};Object.assign(p,this.yn.T);p.cpn=this.videoData.clientPlaybackNonce;this.videoData.b_&&(p.vvt=this.videoData.b_,this.videoData.mdxEnvironment&&(p.mdx_environment=this.videoData.mdxEnvironment)); this.yn.sY&&(p.authuser=this.yn.sY);this.yn.pageId&&(p.pageid=this.yn.pageId);isNaN(this.cryptoPeriodIndex)||(p.cpi=this.cryptoPeriodIndex.toString());var H=(H=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.f0()))?H[1]:"";H==="ATV"&&(p.cdt=H);this.W=p;this.W.session_id=N;this.a$=!0;this.C.flavor==="widevine"&&(this.W.hdr="1");this.C.flavor==="playready"&&(C=Number(Wb(C.experiments,"playready_first_play_expiration")),!isNaN(C)&&C>=0&&(this.W.mfpe=""+C),this.a$=!1);C="";g.o5(this.C)?Az(this.C)?(N=V.C)&&(C="https://www.youtube.com/api/drm/fps?ek="+ YSV(N)):(C=V.initData.subarray(4),C=new Uint16Array(C.buffer,C.byteOffset,C.byteLength/2),C=String.fromCharCode.apply(null,C).replace("skd://","https://")):C=this.C.C;this.baseUrl=C;this.fairplayKeyId=CN(this.baseUrl,"ek")||"";if(C=CN(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(C);this.Sa=this.videoData.G("html5_use_drm_retry");this.Vn=V.Ft?[g.mq(V.initData,4)]:V.V;cu(this,{sessioninit:V.cryptoPeriodIndex});this.status="in"}; pZS=function(p,C){cu(p,{createkeysession:1});p.status="gr";NR("drm_gk_s",void 0,p.videoData.Y_);p.url=rta(p);try{p.V=C.createSession(p.Z,function(V){cu(p,{m:V})})}catch(V){C="t.g"; V instanceof DOMException&&(C+=";c."+V.code);p.publish("licenseerror","drm.unavailable",1,C,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}p.V&&(BdY(p.V,function(V,N){GXa(p,V,N)},function(V,N,H){if(!p.fS()){N=void 0; var X=1;g.o5(p.C)&&g.yj(p.yn)&&p.yn.G("html5_enable_safari_fairplay")&&H===1212433232&&(N="ERROR_HDCP",X=p.yn.G("html5_safari_fairplay_ignore_hdcp")?0:X);p.error("drm.keyerror",X,V,N)}},function(){p.fS()||(cu(p,{onkyadd:1}),p.D||(p.publish("sessionready"),p.D=!0))},function(V){p.Ct(V)}),g.R(p,p.V))}; rta=function(p){var C=p.baseUrl;VGe(C)||p.error("drm.net",2,"t.x");if(!CN(C,"fexp")){var V=["23898307","23914062","23916106","23883098"].filter(function(H){return p.yn.experiments.experiments[H]}); V.length>0&&(p.W.fexp=V.join())}V=g.F(Object.keys(p.W));for(var N=V.next();!N.done;N=V.next())N=N.value,C=bHQ(C,N,p.W[N]);return C}; GXa=function(p,C,V){if(!p.fS())if(C){cu(p,{onkmtyp:V});p.status="km";switch(V){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":CQu(p,C);return;default:p.publish("ctmp","message_type",{t:V,l:C.byteLength})}p.b_||(NR("drm_gk_f",void 0,p.videoData.Y_),p.b_=!0,p.publish("newsession",p));if(q6(p.C)&&(C=jBQ(C),!C))return;C=new $xe(C,++p.requestNumber,p.videoData.Y_);LBa(C,function(N){VXH(p,N)},function(N,H,X){if(!p.fS()){var d=0,a; (a=N.T.C>=3)||(a=p.Sa&&(0,g.Ip)()-p.sY>36E4);a&&(d=1,H="drm.net.retryexhausted");cu(p,{onlcsrqerr:H,info:X});p.error(H,d,X);p.shouldRetry(Ir(d),N)&&NZQ(p,N)}}); g.R(p,C);HAY(p,C)}else p.error("drm.unavailable",1,"km.empty")}; CQu=function(p,C){cu(p,{sdpvrq:1});p.Y=Date.now();if(p.C.flavor!=="widevine")p.error("drm.provision",1,"e.flavor;f."+p.C.flavor+";l."+C.byteLength);else{var V={cpn:p.videoData.clientPlaybackNonce};Object.assign(V,p.yn.T);V=g.GD("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",V);C={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, C)}),responseType:"arraybuffer"};g.oK(V,C,3,500).then(FF(function(N){N=N.xhr;if(!p.fS()){N=new Uint8Array(N.response);var H=String.fromCharCode.apply(null,N);try{var X=JSON.parse(H)}catch(d){}X&&X.signedResponse?(p.publish("ctmp","drminfo",{provisioning:1}),X=(Date.now()-p.Y)/1E3,p.Y=NaN,p.publish("ctmp","provs",{et:X.toFixed(3)}),p.V&&p.V.update(N)):(X=X&&X.error&&X.error.message,N="e.parse",X&&(N+=";m."+X),p.error("drm.provision",1,N))}}),FF(function(N){p.fS()||p.error("drm.provision",1,"e."+N.errorCode+ ";c."+(N.xhr&&N.xhr.status))}))}}; TK=function(p){var C;if(C=p.a$&&p.V!=null)p=p.V,C=!(!p.T||!p.T.keyStatuses);return C}; HAY=function(p,C){p.status="km";NR("drm_net_s",void 0,p.videoData.Y_);var V=new g.sI(p.yn.Uv),N={context:g.T1(V.config_||g.cC())};N.drmSystem=XZ9[p.C.flavor];N.videoId=p.videoData.videoId;N.cpn=p.videoData.clientPlaybackNonce;N.sessionId=p.sessionId;N.licenseRequest=g.mq(C.message);N.drmParams=p.videoData.drmParams;isNaN(p.cryptoPeriodIndex)||(N.isKeyRotated=!0,N.cryptoPeriodIndex=p.cryptoPeriodIndex);var H,X,d=!!((H=p.videoData.C)==null?0:(X=H.video)==null?0:X.isHdr());N.drmVideoFeature=d?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(N.context&&N.context.client){if(H=p.yn.T)N.context.client.deviceMake=H.cbrand,N.context.client.deviceModel=H.cmodel,N.context.client.browserName=H.cbr,N.context.client.browserVersion=H.cbrver,N.context.client.osName=H.cos,N.context.client.osVersion=H.cosver;N.context.user=N.context.user||{};N.context.request=N.context.request||{};p.videoData.b_&&(N.context.user.credentialTransferTokens=[{token:p.videoData.b_,scope:"VIDEO"}]);N.context.request.mdxEnvironment=p.videoData.mdxEnvironment|| N.context.request.mdxEnvironment;p.videoData.X$&&(N.context.user.kidsParent={oauthToken:p.videoData.X$});g.o5(p.C)&&(N.fairplayKeyId=g.mq(zXe(p.fairplayKeyId)));g.pk(p.yn,g.XE(p.videoData)).then(function(a){WBL(C,N,V,a);p.status="rs"})}else p.error("drm.net",2,"t.r;ic.0")}; VXH=function(p,C){if(!p.fS())if(cu(p,{onlcsrsp:1}),p.status="rr",C.statusCode!==0)p.error("drm.auth",1,"t.f;c."+C.statusCode,C.errorMessage||void 0);else{NR("drm_kr_s",void 0,p.videoData.Y_);if(C.heartbeatParams&&C.heartbeatParams.url&&p.videoData.G("outertube_streaming_data_always_use_staging_license_service")){var V=p.C.C.match(/(.*)youtube.com/g);V&&(C.heartbeatParams.url=V[0]+C.heartbeatParams.url)}C.heartbeatParams&&p.publish("newlicense",C.heartbeatParams);C.C&&(p.S=C.C,p.videoData.lP||p.publish("newlicense", new P2Y),p.videoData.lP=!0,p.J=Yo(p.S,function(N){return N.includes("HDR")})); C.T&&(p.yn.G("html5_enable_vp9_fairplay")&&Az(p.C)?(V=g.mq(zXe(p.fairplayKeyId),4),p.T[V]={type:C.T[V],status:"unknown"}):p.T=fG(C.T,function(N){return{type:N,status:"unknown"}})); bo(p.C)&&(C.message=opa(g.mq(C.message)));p.V&&(cu(p,{updtks:1}),p.status="ku",p.V.update(C.message).then(function(){NR("drm_kr_f",void 0,p.videoData.Y_);TK(p)||(cu(p,{ksApiUnsup:1}),p.publish("keystatuseschange",p))},function(N){N="msuf.req."+p.requestNumber+";msg."+g.vy(N.message,3); p.error("drm.keyerror",1,N)})); p.D&&(p.sY=(0,g.Ip)());g.o5(p.C)&&p.publish("fairplay_next_need_key_info",p.baseUrl,C.nextFairplayKeyId);p.yn.G("html5_enable_vp9_fairplay")&&Az(p.C)&&p.publish("qualitychange",d4e(p.S));C.sabrLicenseConstraint&&p.publish("sabrlicenseconstraint",C.sabrLicenseConstraint)}}; NZQ=function(p,C){var V=C.T.getValue();V=new g.N8(function(){HAY(p,C)},V); g.R(p,V);V.start();g.kq(C.T);cu(p,{rtyrq:1})}; iAS=function(p,C){for(var V=[],N=g.F(Object.keys(p.T)),H=N.next();!H.done;H=N.next())H=H.value,V.push(H+"_"+p.T[H].type+"_"+p.T[H].status);return V.join(C)}; haS=function(p){var C={};C[p.status]=TK(p)?iAS(p,"."):p.S.join(".");return C}; sB9=function(p,C){switch(p){case "highres":case "hd2880":p="UHD2";break;case "hd2160":case "hd1440":p="UHD1";break;case "hd1080":case "hd720":p="HD";break;case "large":case "medium":case "small":case "light":case "tiny":p="SD";break;default:return""}C&&(p+="HDR");return p}; ap9=function(p,C){for(var V in p.T)if(p.T[V].status==="usable"&&p.T[V].type===C)return!0;return!1}; EkY=function(p,C){for(var V in p.T)if(p.T[V].type===C)return p.T[V].status}; cu=function(p,C){var V=V===void 0?!1:V;yu(C);(V||p.yn.Gk())&&p.publish("ctmp","drmlog",C)}; lpH=function(p){var C=p[0];p[0]=p[3];p[3]=C;C=p[1];p[1]=p[2];p[2]=C;C=p[4];p[4]=p[5];p[5]=C;C=p[6];p[6]=p[7];p[7]=C}; d4e=function(p){return g.W5(p,"UHD2")||g.W5(p,"UHD2HDR")?"highres":g.W5(p,"UHD1")||g.W5(p,"UHD1HDR")?"hd2160":g.W5(p,"HD")||g.W5(p,"HDHDR")?"hd1080":g.W5(p,"HD720")||g.W5(p,"HD720HDR")?"hd720":"large"}; jBQ=function(p){for(var C="",V=0;V'.charCodeAt(N);p=p.V.createSession("video/mp4",C,V);return new Ma(null,null,null,null,p)}; m4v=function(p,C){var V=p.Y[C.sessionId];!V&&p.S&&(V=p.S,p.S=null,V.sessionId=C.sessionId,p.Y[C.sessionId]=V);return V}; TZL=function(p,C){var V=p.subarray(4);V=new Uint16Array(V.buffer,V.byteOffset,V.byteLength/2);V=String.fromCharCode.apply(null,V).match(/ek=([0-9a-f]+)/)[1];for(var N="",H=0;H=0&&p.push(N);p=parseFloat(p.join("."))}else p=NaN;p>19.2999?(p=V.hI,V=V.m0,V>=p&&(V=p*.75),C=(p-V)*.5,V=new lF(C,p,p-C-V,this)):V=null;break a;case "widevine":V=new t6(C,this,p);break a;default:V=null}if(this.W=V)g.R(this,this.W),this.W.subscribe("rotated_need_key_info_ready",this.jc,this),this.W.subscribe("log_qoe",this.Zu,this);x$(this.yn.experiments);this.Zu({cks:this.T.getInfo()})}; FN9=function(p){var C=p.S.fN();C?C.then(FF(function(){KNY(p)}),FF(function(V){if(!p.fS()){g.nm(V); var N="t.a";V instanceof DOMException&&(N+=";n."+V.name+";m."+V.message);p.publish("licenseerror","drm.unavailable",1,N,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(p.Zu({mdkrdy:1}),p.Z=!0); p.a$&&(C=p.a$.fN())}; u0Y=function(p,C,V){p.Ga=!0;V=new QN(C,V);p.yn.G("html5_eme_loader_sync")&&(p.Y.get(C)||p.Y.set(C,V));D4Q(p,V)}; D4Q=function(p,C){if(!p.fS()){p.Zu({onInitData:1});if(p.yn.G("html5_eme_loader_sync")&&p.videoData.V&&p.videoData.V.T){var V=p.D.get(C.initData);C=p.Y.get(C.initData);if(!V||!C)return;C=V;V=C.initData;p.Y.remove(V);p.D.remove(V)}p.Zu({initd:C.initData.length,ct:C.contentType});if(p.T.flavor==="widevine")if(p.Sa&&!p.videoData.isLivePlayback)vu(p);else{if(!(p.yn.G("vp9_drm_live")&&p.videoData.isLivePlayback&&C.Ft)){p.Sa=!0;V=C.cryptoPeriodIndex;var N=C.T;AAy(C);C.Ft||(N&&C.T!==N?p.publish("ctmp","cpsmm", {emsg:N,pssh:C.T}):V&&C.cryptoPeriodIndex!==V&&p.publish("ctmp","cpimm",{emsg:V,pssh:C.cryptoPeriodIndex}));p.publish("widevine_set_need_key_info",C)}}else p.jc(C)}}; KNY=function(p){if(!p.fS())if(p.yn.G("html5_drm_set_server_cert")||Az(p.T)){var C=p.S.setServerCertificate();C?C.then(FF(function(V){p.yn.Gk()&&p.publish("ctmp","ssc",{success:V})}),FF(function(V){p.publish("ctmp","ssce",{n:V.name, m:V.message})})).then(FF(function(){ZAe(p)})):ZAe(p)}else ZAe(p)}; ZAe=function(p){p.fS()||(p.Z=!0,p.Zu({onmdkrdy:1}),vu(p))}; U49=function(p){return p.T.flavor==="widevine"&&p.videoData.G("html5_drm_cpi_license_key")}; vu=function(p){if((p.Ga||p.yn.G("html5_widevine_use_fake_pssh"))&&p.Z&&!p.Vn){for(;p.V.length;){var C=p.V[0],V=U49(p)?oB1(C):g.mq(C.initData);if(Az(p.T)&&!C.C)p.V.shift();else{if(p.C.get(V))if(p.T.flavor!=="fairplay"||Az(p.T)){p.V.shift();continue}else p.C.delete(V);AAy(C);break}}p.V.length&&p.createSession(p.V[0])}}; fpQ=function(p){var C;if(C=g.Qg()){var V;C=!((V=p.S.C)==null||!V.getMetrics)}C&&(C=p.S.getMetrics())&&(C=g.wc(C),p.publish("ctmp","drm",{metrics:C}))}; OAL=function(){var p=ezS();return!(!p||p==="visible")}; qpu=function(p){var C=yI1();C&&document.addEventListener(C,p,!1)}; Ipu=function(p){var C=yI1();C&&document.removeEventListener(C,p,!1)}; yI1=function(){if(document.visibilityState)var p="visibilitychange";else{if(!document[m_+"VisibilityState"])return"";p=m_+"visibilitychange"}return p}; bAu=function(p){g.Y.call(this);var C=this;this.Ta=p;this.o2=0;this.Y=this.C=this.W=!1;this.S=0;this.I$=this.Ta.K();this.videoData=this.Ta.getVideoData();this.V=g.mi(this.I$.experiments,"html5_delayed_retry_count");this.T=new g.N8(function(){sZ(C.Ta)},g.mi(this.I$.experiments,"html5_delayed_retry_delay_ms")); g.R(this,this.T)}; YpS=function(p,C,V){var N=p.videoData.C,H=p.videoData.S;id(p.Ta.getVideoData())&&p.I$.G("html5_gapless_fallback_on_qoe_restart")&&Rb9(p.Ta,"pe");if((C==="progressive.net.retryexhausted"||C==="fmt.unplayable"||C==="fmt.decode")&&!p.Ta.L$.W&&N&&N.itag==="22")return p.Ta.L$.W=!0,p.oN("qoe.restart",{reason:"fmt.unplayable.22"}),F9(p.Ta),!0;var X=!1;if(p.videoData.isExternallyHostedPodcast){if(X=p.videoData.r_)V.mimeType=X.type,p.k_("3pp",{url:X.url});V.ns="3pp";p.Ta.a_(C,1,"VIDEO_UNAVAILABLE",yu((new qD(C, V,1)).details));return!0}var d=p.o2+3E4<(0,g.Ip)()||p.T.isActive();if(p.I$.G("html5_empty_src")&&p.videoData.isAd()&&C==="fmt.unplayable"&&/Empty src/.test(""+V.msg))return V.origin="emptysrc",p.oN("auth",V),!0;d||SP(p.Ta.Uu())||(V.nonfg="paused",d=!0,p.Ta.pauseVideo());(C==="fmt.decode"||C==="fmt.unplayable")&&(H==null?0:Gx(H)||px(H))&&(qTy(p.I$.W,H.o$),V.acfallexp=H.o$,X=d=!0);!d&&p.V>0&&(p.T.start(),d=!0,V.delayed="1",--p.V);H=p.Ta.nS;!d&&((N==null?0:BB(N))||(N==null?0:Qu(N)))&&(qTy(p.I$.W,N.o$), X=d=!0,V.cfallexp=N.o$);if(p.I$.G("html5_ssap_ignore_decode_error_for_next_video")&&g.pf(p.videoData)&&C==="fmt.unplayable"&&V.cid&&V.ccid&&SP(p.Ta.Uu())){if(V.cid!==V.ccid)return V.ignerr="1",p.oN("ssap.transitionfailure",V),!0;p.oN("ssap.transitionfailure",V);if(AIX(p.Ta,C))return!0}if(!d)return okH(p,V);if(p.I$.G("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.pf(p.videoData)&&C==="fmt.unplayable"&&V.cid&&V.ccid&&V.cid!==V.ccid&&SP(p.Ta.Uu())&&(p.oN("ssap.transitionfailure",V),AIX(p.Ta, C)))return!0;d=!1;p.W?p.o2=(0,g.Ip)():d=p.W=!0;var a=p.videoData;if(a.KS){a=a.KS.Ph();var E=Date.now()/1E3+1800;a=a6048E5&&eaa(p,"signature");return!1}; eaa=function(p,C){try{window.location.reload(),p.oN("qoe.restart",{detail:"pr."+C})}catch(V){}}; wZu=function(p,C){C=C===void 0?"fmt.noneavailable":C;var V=p.I$.W;V.Y=!1;pI(V);p.oN("qoe.restart",{e:C,detail:"hdr"});sZ(p.Ta,!0)}; $4s=function(p,C,V,N,H,X){this.videoData=p;this.T=C;this.reason=V;this.C=N;this.token=H;this.videoId=X}; LNu=function(p,C,V){this.yn=p;this.Dq=C;this.Ta=V;this.J=this.Y=this.T=this.S=this.D=this.C=0;this.W=!1;this.Z=g.mi(this.yn.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.V=new Map}; WNa=function(p,C,V){!p.yn.G("html5_tv_ignore_capable_constraint")&&g.bH(p.yn)&&(V=V.compose(gkX(p,C)));return V}; rIj=function(p,C){var V,N=QB1(p,(V=C.T)==null?void 0:V.videoInfos);V=p.Ta.getPlaybackRate();return V>1&&N?(p=ugX(p.yn.W,C.T.videoInfos,V),new Cw(0,p,!0,"o")):new Cw(0,0,!1,"o")}; QB1=function(p,C){return C&&g.bH(p.yn)?C.some(function(V){return V.video.fps>32}):!1}; BZe=function(p,C){var V=p.Ta.kd();p.G("html5_use_video_quality_cap_for_ustreamer_constraint")&&V&&V.NK>0&&Ni(C.videoData.l3)&&(p=V.NK,C.videoData.l3=new Cw(0,p,!1,"u"));return C.videoData.l3}; gkX=function(p,C){if(g.bH(p.yn)&&Je(p.yn.W,mw.HEIGHT))var V=C.T.videoInfos[0].video.T;else{var N=!!C.T.T;var H;g.fI(p.yn)&&(H=window.screen&&window.screen.width?new g.KG(window.screen.width,window.screen.height):null);H||(H=p.yn.oi?p.yn.oi.clone():p.Dq.KO());(CK||PI||N)&&H.scale(g.Pg());N=H;hl(C.videoData)||ix(C.videoData);C=C.T.videoInfos;if(C.length){H=g.mi(p.yn.experiments,"html5_override_oversend_fraction")||.85;var X=C[0].video;X.projectionType!=="MESH"&&X.projectionType!=="EQUIRECTANGULAR"&& X.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||ZW||(H=.45);p=g.mi(p.yn.experiments,"html5_viewport_undersend_maximum");for(X=0;X0&&(V=Math.min(V,N));if(N=g.mi(p.yn.experiments,"html5_max_vertical_resolution")){p=4320;for(H=0;H N&&(p=Math.min(p,X.video.T));if(p<4320){for(H=N=0;H32){H=!0;break a}}H=!1}H&&(V=Math.min(V,N));(N=g.mi(p.yn.experiments,"html5_live_quality_cap"))&&C.videoData.isLivePlayback&&(V=Math.min(V,N));V=puL(p,C,V);p=g.mi(p.yn.experiments,"html5_byterate_soft_cap");return new Cw(0,V===4320?0:V,!1,"d",p)}; jVj=function(p){var C,V,N,H;return g.I(function(X){switch(X.C){case 1:return p.T.T&&typeof((C=navigator.mediaCapabilities)==null?void 0:C.decodingInfo)==="function"?g.y(X,Promise.resolve(),2):X.return(Promise.resolve());case 2:V=g.F(p.T.videoInfos),N=V.next();case 3:if(N.done){X.EY(0);break}H=N.value;return g.y(X,Mpu(H),4);case 4:N=V.next(),X.EY(3)}})}; NXe=function(p,C){if(!C.videoData.C||p.G("html5_disable_performance_downgrade"))return!1;Date.now()-p.D>6E4&&(p.C=0);p.C++;p.D=Date.now();if(p.C!==4)return!1;VPa(p,C.videoData.C);return!0}; XuL=function(p,C,V,N){if(!C||!V||!C.videoData.C)return!1;var H=g.mi(p.yn.experiments,"html5_df_downgrade_thresh"),X=p.G("html5_log_media_perf_info");if(!((0,g.Ip)()-p.S<5E3?0:X||H>0))return!1;var d=((0,g.Ip)()-p.S)/1E3;p.S=(0,g.Ip)();V=V.getVideoPlaybackQuality();if(!V)return!1;var a=V.droppedVideoFrames-p.Y,E=V.totalVideoFrames-p.J;p.Y=V.droppedVideoFrames;p.J=V.totalVideoFrames;var l=V.displayCompositedVideoFrames===0?0:V.displayCompositedVideoFrames||-1;X&&p.yn.Gk()&&p.Ta.k_("ddf",{dr:V.droppedVideoFrames, de:V.totalVideoFrames,comp:l});if(N)return p.T=0,!1;if((E-a)/d>p.Z||!H||g.bH(p.yn))return!1;p.T=(E>60?a/E:0)>H?p.T+1:0;if(p.T!==3)return!1;VPa(p,C.videoData.C);p.Ta.k_("dfd",Object.assign({dr:V.droppedVideoFrames,de:V.totalVideoFrames},HuV()));return!0}; VPa=function(p,C){var V=C.o$,N=C.video.fps,H=C.video.T-1,X=p.V;C=""+V+(N>49?"p60":N>32?"p48":"");V=Z8(V,N,X);H>0&&(V=Math.min(V,H));if(!Ku.has(C)&&nz().includes(C)){var d=V;V=RH();+V[C]>0&&(d=Math.min(+V[C],d));V[C]!==d&&(V[C]=d,g.Yl("yt-player-performance-cap",V,2592E3))}else if(Ku.has(C)||X==null){a:{d=d===void 0?!0:d;N=nz().slice();if(d){if(N.includes(C))break a;N.push(C)}else{if(!N.includes(C))break a;N.splice(N.indexOf(C),1)}g.Yl("yt-player-performance-cap-active-set",N,2592E3)}uo.set(C,V)}else Ku.add(C), X==null||X.set(C,V);p.Ta.Zm()}; Dn=function(p,C){if(!C.T.T)return p.W?new Cw(0,360,!1,"b"):xB;for(var V=!1,N=!1,H=g.F(C.T.videoInfos),X=H.next();!X.done;X=H.next())BB(X.value)?V=!0:N=!0;V=V&&N;N=0;H=g.mi(p.yn.experiments,"html5_performance_cap_floor");H=p.yn.C?240:H;C=g.F(C.T.videoInfos);for(X=C.next();!X.done;X=C.next()){var d=X.value;if(!V||!BB(d))if(X=Z8(d.o$,d.video.fps,p.V),d=d.video.T,Math.max(X,H)>=d){N=d;break}}return new Cw(0,N,!1,"b")}; daY=function(p,C){var V=p.Ta.Uu();return V.isInline()&&!C.pj?new Cw(0,480,!1,"v"):V.isBackground()&&bV()/1E3>60&&!g.bH(p.yn)?new Cw(0,360,!1,"v"):xB}; iuV=function(p,C,V){if(p.yn.experiments.OY("html5_disable_client_autonav_cap_for_onesie")&&C.fetchType==="onesie"||g.bH(p.yn)&&(Y1(-1)>=1080||C.osid))return xB;var N=g.mi(p.yn.experiments,"html5_autonav_quality_cap"),H=g.mi(p.yn.experiments,"html5_autonav_cap_idle_secs");return N&&C.isAutonav&&bV()/1E3>H?(V&&(N=puL(p,V,N)),new Cw(0,N,!1,"e")):xB}; puL=function(p,C,V){if(p.G("html5_optimality_defaults_chooses_next_higher")&&V)for(p=C.T.videoInfos,C=1;C=0||(p.provider.Ta.getVisibilityState()===3?p.W=!0:(p.T=g.Zn(p.provider),p.delay.start()))}; ans=function(p){if(!(p.C<0)){var C=g.Zn(p.provider),V=C-p.S;p.S=C;p.playerState.state===8?p.playTimeSecs+=V:p.playerState.isBuffering()&&!g.r(p.playerState,16)&&(p.rebufferTimeSecs+=V)}}; EbH=function(p){var C;switch((C=p.yn.playerCanaryStage)==null?void 0:C.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"}}; lnY=function(p){return window.PressureObserver&&new window.PressureObserver(p)}; tPa=function(p){p=p===void 0?lnY:p;g.Y.call(this);var C=this;this.C=p(function(N){C.T=N.at(-1)}); var V;this.V=(V=this.C)==null?void 0:V.observe("cpu",{sampleInterval:2E3})}; c6v=function(p){var C={},V=window.h5vcc;C.hwConcurrency=navigator.hardwareConcurrency;p.T&&(C.cpt=p.T.time,C.cps=p.T.state);if(V==null?0:V.cVal)C.cb2s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),C.cb5s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),C.cb30s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return C}; TXX=function(p){var C;g.I(function(V){if(V.C==1)return g.y(V,p.V,2);(C=p.C)==null||C.disconnect();g.JQ(V)})}; J61=function(p,C){C?MPS.test(p):(p=g.sk(p),Object.keys(p).includes("cpn"))}; vbQ=function(p,C,V,N,H,X,d){var a={format:"RAW"},E={};if(l1(p)&&tw()){if(d){var l;((l=maa.uaChPolyfill)==null?void 0:l.state.type)!==2?d=null:(d=maa.uaChPolyfill.state.data.values,d={"Synth-Sec-CH-UA-Arch":d.architecture,"Synth-Sec-CH-UA-Model":d.model,"Synth-Sec-CH-UA-Platform":d.platform,"Synth-Sec-CH-UA-Platform-Version":d.platformVersion,"Synth-Sec-CH-UA-Full-Version":d.uaFullVersion});E=Object.assign(E,d);a.withCredentials=!0}(d=g.pO("EOM_VISITOR_DATA"))?E["X-Goog-EOM-Visitor-Id"]=d:N?E["X-Goog-Visitor-Id"]= N:g.pO("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=g.pO("VISITOR_DATA"));V&&(E["X-Goog-PageId"]=V);(N=C.sY)&&!$S(C)&&(E["X-Goog-AuthUser"]=N);H&&(E.Authorization="Bearer "+H);C.G("enable_datasync_id_header_in_web_vss_pings")&&C.K$&&C.datasyncId&&(E["X-YouTube-DataSync-Id"]=C.datasyncId);d||E["X-Goog-Visitor-Id"]||H||V||N?a.withCredentials=!0:C.G("html5_send_cpn_with_options")&&MPS.test(p)&&(a.withCredentials=!0)}Object.keys(E).length>0&&(a.headers=E);X&&(a.onFinish=X);return Object.keys(a).length>1? a:null}; Fse=function(p,C,V,N,H,X,d,a){tw()&&V.token&&(p=aK(p,{ctt:V.token,cttype:V.Tg,mdx_environment:V.mdxEnvironment}));N.G("net_pings_low_priority")&&(C||(C={}),C.priority="low");X||a&&N.G("nwl_skip_retry")?(C==null?C={}:J61(p,N.G("html5_assert_cpn_with_regex")),d?iV().sendAndWrite(p,C):iV().sendThenWrite(p,C,a)):C?(J61(p,N.G("html5_assert_cpn_with_regex")),N.G("net_pings_use_fetch")?lAY(p,C):g.qU(p,C)):g.BC(p,H)}; SZS=function(p){for(var C=[],V=0;V500&&V.k_("vmlock",{diff:X.toFixed()});V.Wr=H},250)); p.Ta.RI()&&C&&(this.Vn=C-Math.round(g.Zn(p)*1E3));this.provider.videoData.wx&&(this.remoteControlMode=ZuY[this.provider.videoData.wx]||0);this.provider.videoData.eH&&(C=o6S(this.provider.videoData.eH),C==null?0:C.length)&&(this.remoteConnectedDevices=C);if(p.yn.Gk()||p.G("html5_log_cpu_info"))this.KS=new tPa,g.R(this,this.KS)}; g.OZ=function(p,C,V,N){var H=p.T[V];H||(H=[],p.T[V]=H);H.push(C.toFixed(3)+":"+N.join(":"))}; Uae=function(p,C){var V=p.adCpn||p.provider.videoData.clientPlaybackNonce,N=p.provider.getCurrentTime(V);g.OZ(p,C,"cmt",[N.toFixed(3)]);N=p.provider.I_(V);if(p.S&&N*1E3>p.S.Tr+100&&p.S){var H=p.S;V=H.isAd;N=N*1E3-H.Tr;p.vr=C*1E3-H.j6_-N-H.pVn;H=(0,g.Ip)()-N;C=p.vr;N=p.provider.videoData;var X=N.isAd();if(V||X){X=(V?"ad":"video")+"_to_"+(X?"ad":"video");var d={};N.Y&&(d.cttAuthInfo={token:N.Y,videoId:N.videoId});d.startTime=H-C;XA(X,d);g.HH({targetVideoId:N.videoId,targetCpn:N.clientPlaybackNonce}, X);NR("pbs",H,X)}else H=p.provider.Ta.W6(),H.Y!==N.clientPlaybackNonce?(H.W=N.clientPlaybackNonce,H.C=C):N.rR()||g.eG(new g.Bw("CSI timing logged before gllat",{cpn:N.clientPlaybackNonce}));p.k_("gllat",{l:p.vr.toFixed(),prev_ad:+V});delete p.S}}; qa=function(p,C){C=C===void 0?NaN:C;C=C>=0?C:g.Zn(p.provider);var V=p.provider.Ta.sS(),N=V.mP-(p.Y_||0);N>0&&g.OZ(p,C,"bwm",[N,(V.pT-(p.qW||0)).toFixed(3)]);isNaN(p.Y_)&&V.mP&&p.isOffline&&p.d5(!1);p.Y_=V.mP;p.qW=V.pT;isNaN(V.bandwidthEstimate)||g.OZ(p,C,"bwe",[V.bandwidthEstimate.toFixed(0)]);p.provider.yn.Gk()&&Object.keys(V.T).length!==0&&p.k_("bwinfo",V.T);if(p.provider.yn.Gk()||p.provider.yn.G("html5_log_meminfo"))N=BSj(),Object.values(N).some(function(X){return X!==void 0})&&p.k_("meminfo", N); if(p.provider.yn.Gk()||p.provider.yn.G("html5_log_cpu_info")){var H;(N=(H=p.KS)==null?void 0:c6v(H))&&Object.values(N).some(function(X){return X!=null})&&p.k_("cpuinfo",N)}p.b_&&g.OZ(p,C,"bat",[p.b_.level, p.b_.charging?"1":"0"]);H=p.provider.Ta.getVisibilityState();p.va!==H&&(g.OZ(p,C,"vis",[H]),p.va=H);Uae(p,C);(H=fnL(p.provider))&&H!==p.wy&&(g.OZ(p,C,"conn",[H]),p.wy=H);Ou1(p,C,V)}; Ou1=function(p,C,V){if(!isNaN(V.eA)){var N=V.eA;V.C96E3&&(new g.N8(p.reportStats,0,p)).start()}; Inu=function(p){p.provider.videoData.QZ&&IV(p,"prefetch");p.provider.videoData.wy&&p.k_("reload",{r:p.provider.videoData.reloadReason,ct:p.provider.videoData.wy});p.provider.videoData.qo&&IV(p,"monitor");p.provider.videoData.isLivePlayback&&IV(p,"live");gB&&IV(p,"streaming");p.provider.videoData.wx&&p.k_("ctrl",{mode:p.provider.videoData.wx},!0);if(p.provider.videoData.eH){var C=p.provider.videoData.eH.replace(/,/g,"_");p.k_("ytp",{type:C},!0)}p.provider.videoData.A0&&(C=p.provider.videoData.A0.replace(/,/g, "."),p.k_("ytrexp",{ids:C},!0));var V=p.provider.videoData;C=p.provider.yn.G("enable_white_noise")||p.provider.yn.G("enable_webgl_noop");V=g.c_(V)||g.UW(V)||g.ff(V)||g.OW(V);(C||V)&&(C=(0,g.bF)())&&(p.T.gpu=[C]);ix(p.provider.videoData)&&g.OZ(p,g.Zn(p.provider),"dt",["1"]);p.provider.yn.Gk()&&(C=(0,g.Ip)()-p.provider.yn.d6,p.k_("playerage",{secs:Math.pow(1.6,Math.round(Math.log(C/1E3)/Math.log(1.6))).toFixed()}));p.V=!0;p.Y=g.Se(function(){p.reportStats()},1E4)}; A6L=function(p,C,V){var N=g.Zn(p.provider);buL(p,N,C,0,V);qa(p,N);qZY(p)}; buL=function(p,C,V,N,H){var X=p.provider.yn.T.cbrver;p.provider.yn.T.cbr==="Chrome"&&/^96[.]/.test(X)&&V==="net.badstatus"&&/rc\.500/.test(H)&&ob9(p,3);p.provider.yn.G("html5_use_ump")&&/b248180278/.test(H)&&ob9(p,4);X=p.provider.getCurrentTime(p.adCpn||p.provider.videoData.clientPlaybackNonce);N=N===1?"fatal":"";V=[V,N,X.toFixed(3)];N&&(H+=";a6s."+U0());H&&V.push(kK9(H));g.OZ(p,C,"error",V);p.V=!0}; xaQ=function(p){p.C>=0||(p.provider.yn.W1||p.provider.Ta.getVisibilityState()!==3?p.C=g.Zn(p.provider):p.UY=!0)}; YZj=function(p,C,V,N){if(V!==p.g7){C=10&&p.playTimeSecs<=180&&(p.T.qoealert=["1"],p.X$=!0)),V!=="B"||p.g7!=="PL"&&p.g7!=="PB"||(p.isBuffering=!0),p.W=C);p.g7==="PL"&&(V==="B"||V==="S")||p.provider.yn.Gk()?qa(p,C):(p.Wc||V!=="PL"||(p.Wc=!0,Ou1(p,C,p.provider.Ta.sS())),Uae(p,C));V==="PL"&&g.HF(p.RN);var H=[V];V==="S"&&N&&H.push("ss."+N);g.OZ(p,C,"vps",H);p.g7=V; p.ER=C;p.W=C;p.V=!0}}; IV=function(p,C){var V=p.T.cat||[];V.push(C);p.T.cat=V}; A6=function(p,C,V,N,H,X){var d=g.Zn(p.provider);V!==1&&V!==3&&V!==5||g.OZ(p,d,"vps",[p.g7]);var a=p.T.xvt||[];a.push("t."+d.toFixed(3)+";m."+X.toFixed(3)+";g."+C+";tt."+V+";np.0;c."+N+";d."+H);p.T.xvt=a}; ob9=function(p,C){if(!p.qo){var V=p.T.fcnz;V||(V=[],p.T.fcnz=V);V.push(String(C));p.qo=!0}}; kK9=function(p){/[^a-zA-Z0-9;.!_-]/.test(p)&&(p=p.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return p}; zwX=function(p){this.provider=p;this.D=!1;this.T=0;this.S=-1;this.yP=NaN;this.V=0;this.segments=[];this.Y=this.W=0;this.previouslyEnded=!1;this.Z=this.provider.Ta.getVolume();this.J=this.provider.Ta.isMuted()?1:0;this.C=oV(this.provider)}; kb=function(p){p.C.startTime=p.V;p.C.endTime=p.T;var C=!1;p.segments.length&&g.wY(p.segments).isEmpty()?(p.segments[p.segments.length-1].previouslyEnded&&(p.C.previouslyEnded=!0),p.segments[p.segments.length-1]=p.C,C=!0):p.segments.length&&p.C.isEmpty()||(p.segments.push(p.C),C=!0);C?p.C.endTime===0&&(p.previouslyEnded=!1):p.C.previouslyEnded&&(p.previouslyEnded=!0);p.W+=p.T-p.V;p.C=oV(p.provider);p.C.previouslyEnded=p.previouslyEnded;p.previouslyEnded=!1;p.V=p.T}; nb9=function(p){Rws(p);p.Y=g.Se(function(){p.update()},100); p.yP=g.Zn(p.provider);p.C=oV(p.provider)}; Rws=function(p){g.Dr(p.Y);p.Y=NaN}; ewY=function(p,C,V){V-=p.yP;return C===p.T&&V>.5}; PFe=function(p,C,V,N){this.yn=C;this.Q$=V;this.segments=[];this.experimentIds=[];this.R$=this.Hc=this.isFinal=this.delayThresholdMet=this.Wc=this.va=this.autoplay=this.autonav=!1;this.wy="yt";this.D=[];this.Y=this.Z=null;this.sendVisitorIdHeader=this.UY=!1;this.J=this.pageId="";this.W=V==="watchtime";this.V=V==="playback";this.sY=V==="atr";this.f9=V==="engage";this.sendVisitorIdHeader=!1;this.uri=this.sY?"/api/stats/"+V:"//"+C.jS+"/api/stats/"+V;N&&(this.Hc=N.fs,N.rtn&&(this.Y=N.rtn),this.W?(this.playerState= N.state,N.rti>0&&(this.Z=N.rti)):(this.W1=N.mos,this.jZ=N.volume,N.at&&(this.adType=N.at)),N.autonav&&(this.autonav=N.autonav),N.inview!=null&&(this.VZ=N.inview),N.size&&(this.qW=N.size),N.playerwidth&&(this.playerWidth=N.playerwidth),N.playerheight&&(this.playerHeight=N.playerheight));this.FO=g.zh(C.T);this.J=Wb(C.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.J==="all"||this.J==="once")this.kM=g.zh(C.wy);this.iW=C.X$;this.experimentIds=F$9(C.experiments);this.Y_=C.ER;this.wy=C.a$;this.region= C.region;this.userAge=C.userAge;this.Qn=C.AX;this.I6=bV();this.sendVisitorIdHeader=C.sendVisitorIdHeader;this.Vn=C.G("vss_pings_using_networkless")||C.G("kevlar_woffle");this.hE=C.G("vss_final_ping_send_and_write");this.Sa=C.G("vss_use_send_and_write");this.pageId=C.pageId;this.i8=C.G("vss_playback_use_send_and_write");C.livingRoomAppMode&&(this.livingRoomAppMode=C.livingRoomAppMode);this.o6=C.S&&C.G("embeds_append_synth_ch_headers");g.KI(C)&&(this.vr=C.Sa);g.cw(g.Ig(C))&&this.D.push(1);this.accessToken= g.XE(p);p.SE[this.Q$]?this.S=p.SE[this.Q$]:p.SE.playback&&(this.S=p.SE.playback);this.adFormat=p.adFormat;this.adQueryId=p.adQueryId;this.autoplay=Hk(p);this.V&&(this.va=(p.G("html5_enable_log_server_autoplay")||p.G("enable_cleanup_masthead_autoplay_hack_fix"))&&p.dP&&B_(p)==="adunit"?!0:!1);this.autonav=p.isAutonav||this.autonav;this.contentVideoId=Vk(p);this.clientPlaybackNonce=p.clientPlaybackNonce;this.Wc=p.UV;p.Y&&(this.a$=p.Y,this.X$=p.B_);p.mdxEnvironment&&(this.mdxEnvironment=p.mdxEnvironment); this.T=p.hg;this.ER=p.ER;p.C&&(this.QZ=p.C.itag,p.S&&p.S.itag!==this.QZ&&(this.qo=p.S.itag));p.T&&sc(p.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=B_(p);this.R$=p.FT?!1:p.va;this.kt=p.Um;if(C=v_(p))this.d6=C;this.cV=p.JV;this.partnerId=p.partnerId;this.eventId=p.eventId;this.playlistId=p.fY||p.playlistId;this.Aa=p.Aa;this.wx=p.wx;this.eH=p.eH;this.vK=p.vK;this.subscribed=p.subscribed;this.videoId=p.videoId;this.videoMetadata=p.videoMetadata;this.visitorData=p.visitorData;this.osid=p.osid; this.hm=p.hm;this.referrer=p.referrer;this.MR=p.pz||p.MR;this.KS=p.ym;this.Vs=p.Vs;this.userGenderAge=p.userGenderAge;this.Z4=p.Z4;this.embedsRct=p.embedsRct;this.embedsRctn=p.embedsRctn;g.KI(this.yn)&&p.mutedAutoplay&&this.D.push(2);p.isEmbedsShortsMode(new g.KG(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.D.push(3);g.t_(p)&&this.D.push(4);this.Ga=p.pC;p.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=p.compositeLiveIngestionOffsetToken)}; wu9=function(p,C){var V=p.sendVisitorIdHeader?p.visitorData:void 0;return g.pk(p.yn,p.accessToken).then(function(N){return vbQ(p.uri,p.yn,p.pageId,V,N,C,p.o6)})}; gba=function(p,C){return function(){p.yn.G("html5_simplify_pings")?(p.T=p.Wr,p.RN=C(),p.I6=0,p.send()):wu9(p).then(function(V){var N=$a1(p);N.cmt=N.len;N.lact="0";var H=C().toFixed(3);N.rt=Number(H).toString();N=g.GD(p.uri,N);p.yn.G("vss_through_gel_double")&&Lse(N);p.Vn?(V==null&&(V={}),p.Sa?iV().sendAndWrite(N,V):iV().sendThenWrite(N,V)):V?g.qU(N,V):g.BC(N)})}}; $a1=function(p){var C={ns:p.wy,el:p.eventLabel,cpn:p.clientPlaybackNonce,ver:2,cmt:p.C(p.T),fmt:p.QZ,fs:p.Hc?"1":"0",rt:p.C(p.RN),adformat:p.adFormat,content_v:p.contentVideoId,euri:p.iW,lact:p.I6,live:p.d6,cl:(706555921).toString(),mos:p.W1,state:p.playerState,volume:p.jZ};p.subscribed&&(C.subscribed="1");Object.assign(C,p.FO);p.J==="all"?Object.assign(C,p.kM):p.J==="once"&&p.V&&Object.assign(C,p.kM);p.autoplay&&(C.autoplay="1");p.va&&(C.sautoplay="1");p.Wc&&(C.dni="1");!p.W&&p.vr&&(C.epm=Wsy[p.vr]); p.isFinal&&(C["final"]="1");p.R$&&(C.splay="1");p.ER&&(C.delay=p.ER);p.Y_&&(C.hl=p.Y_);p.region&&(C.cr=p.region);p.userGenderAge&&(C.uga=p.userGenderAge);p.userAge!==void 0&&p.Qn&&(C.uga=p.Qn+p.userAge);p.Wr!==void 0&&(C.len=p.C(p.Wr));!p.W&&p.experimentIds.length>0&&(C.fexp=p.experimentIds.toString());p.Y!==null&&(C.rtn=p.C(p.Y));p.MR&&(C.feature=p.MR);p.wx&&(C.ctrl=p.wx);p.eH&&(C.ytr=p.eH);p.qo&&(C.afmt=p.qo);p.offlineDownloadUserChoice&&(C.ODUC=p.offlineDownloadUserChoice);p.YM&&(C.lio=p.C(p.YM)); p.W?(C.idpj=p.kt,C.ldpj=p.cV,p.delayThresholdMet&&(C.dtm="1"),p.Z!=null&&(C.rti=p.C(p.Z)),p.Z4&&(C.ald=p.Z4),p.compositeLiveIngestionOffsetToken&&(C.clio=p.compositeLiveIngestionOffsetToken)):p.adType!==void 0&&(C.at=p.adType);p.qW&&(p.V||p.W)&&(C.size=p.qW);p.V&&p.D.length&&(C.pbstyle=p.D.join(","));p.VZ!=null&&(p.V||p.W)&&(C.inview=p.C(p.VZ));p.W&&(C.volume=xb(p,g.AU(p.segments,function(N){return N.volume})),C.st=xb(p,g.AU(p.segments,function(N){return N.startTime})),C.et=xb(p,g.AU(p.segments,function(N){return N.endTime})), Yo(p.segments,function(N){return N.playbackRate!==1})&&(C.rate=xb(p,g.AU(p.segments,function(N){return N.playbackRate}))),Yo(p.segments,function(N){return N.T!=="-"})&&(C.als=g.AU(p.segments,function(N){return N.T}).join(",")),Yo(p.segments,function(N){return N.previouslyEnded})&&(C.pe=g.AU(p.segments,function(N){return""+ +N.previouslyEnded}).join(","))); C.muted=xb(p,g.AU(p.segments,function(N){return N.muted?1:0})); Yo(p.segments,function(N){return N.visibilityState!==0})&&(C.vis=xb(p,g.AU(p.segments,function(N){return N.visibilityState}))); Yo(p.segments,function(N){return N.connectionType!==0})&&(C.conn=xb(p,g.AU(p.segments,function(N){return N.connectionType}))); Yo(p.segments,function(N){return N.C!==0})&&(C.blo=xb(p,g.AU(p.segments,function(N){return N.C}))); Yo(p.segments,function(N){return!!N.V})&&(C.blo=g.AU(p.segments,function(N){return N.V}).join(",")); Yo(p.segments,function(N){return!!N.compositeLiveStatusToken})&&(C.cbs=g.AU(p.segments,function(N){return N.compositeLiveStatusToken}).join(",")); Yo(p.segments,function(N){return N.W!=="-"})&&(C.cc=g.AU(p.segments,function(N){return N.W}).join(",")); Yo(p.segments,function(N){return N.clipId!=="-"})&&(C.clipid=g.AU(p.segments,function(N){return N.clipId}).join(",")); if(Yo(p.segments,function(N){return!!N.S})){var V="au"; p.V&&(V="au_d");C[V]=g.AU(p.segments,function(N){return N.S}).join(",")}tw()&&p.a$&&(C.ctt=p.a$,C.cttype=p.X$,C.mdx_environment=p.mdxEnvironment); p.f9&&(C.etype=p.b_!==void 0?p.b_:0);p.KS&&(C.uoo=p.KS);p.livingRoomAppMode&&p.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(C.clram=QVe[p.livingRoomAppMode]||p.livingRoomAppMode);p.S?r6S(p,C):(C.docid=p.videoId,C.referrer=p.referrer,C.ei=p.eventId,C.of=p.hm,C.osid=p.osid,C.vm=p.videoMetadata,p.adQueryId&&(C.aqi=p.adQueryId),p.autonav&&(C.autonav="1"),p.playlistId&&(C.list=p.playlistId),p.vK&&(C.ssrt="1"),p.Vs&&(C.upt=p.Vs));p.V&&(p.embedsRct&&(C.rct=p.embedsRct),p.embedsRctn&&(C.rctn= p.embedsRctn),p.compositeLiveIngestionOffsetToken&&(C.clio=p.compositeLiveIngestionOffsetToken));p.Ga&&(C.host_cpn=p.Ga);return C}; r6S=function(p,C){if(C&&p.S){var V=new Set(["q","feature","mos"]),N=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),H=new Set(["aqi","autonav","list","ssrt","upt"]);p.S.ns==="3pp"&&(C.ns="3pp");for(var X=g.F(Object.keys(p.S)),d=X.next();!d.done;d=X.next())d=d.value,N.has(d)||V.has(d)||H.has(d)&&!p.S[d]||(C[d]=p.S[d])}}; xb=function(p,C){return g.AU(C,p.C).join(",")}; Lse=function(p){p.indexOf("watchtime")!==-1&&g.t1("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:p}})}; BXY=function(p,C){p.attestationResponse&&wu9(p).then(function(V){V=V||{};V.method="POST";V.postParams={atr:p.attestationResponse};p.Vn?p.Sa?iV().sendAndWrite(C,V):iV().sendThenWrite(C,V):g.qU(C,V)})}; Yb=function(p){g.Y.call(this);this.provider=p;this.Y="paused";this.W=NaN;this.D=[10,10,10,40];this.Z=this.J=0;this.b_=this.Vn=this.sY=this.a$=this.V=!1;this.C=this.S=NaN;this.T=new zwX(p)}; jia=function(p){if(!p.V){p.provider.videoData.uK===16623&&g.eG(Error("Playback for EmbedPage"));var C=zK(p,"playback");a:{if(p.provider.yn.G("web_player_use_server_vss_schedule")){var V,N=(V=p.provider.videoData.getPlayerResponse())==null?void 0:V.playbackTracking,H=N==null?void 0:N.videostatsScheduledFlushWalltimeSeconds;N=N==null?void 0:N.videostatsDefaultFlushIntervalSeconds;if(H&&H.length>0&&N){V=[];var X=p.provider.videoData.Um,d=p.provider.videoData.JV,a=-X;H=g.F(H);for(var E=H.next();!E.done;E= H.next())E=E.value,V.push(E-a),a=E;V.push(N+d-X);V.push(N);p.D=V;break a}}p.D=[10+p.provider.videoData.Um,10,10,40+p.provider.videoData.JV-p.provider.videoData.Um,40]}nb9(p.T);C.Y=RV(p);p.C>0&&(C.T-=p.C);C.send();p.provider.videoData.jL&&(C=p.provider.yn,N=p.provider.videoData,V={html5:"1",video_id:N.videoId,cpn:N.clientPlaybackNonce,ei:N.eventId,ptk:N.jL,oid:N.LI,ptchn:N.WL,pltype:N.NU,content_v:Vk(N)},N.E5&&Object.assign(V,{m:N.E5}),C=g.GD(C.Vn+"ptracking",V),GKY(p,C));p.provider.videoData.ER|| (pOs(p),CYQ(p),p.v8());p.V=!0;C=p.T;C.T=C.provider.Ta.I_();C.yP=g.Zn(C.provider);!(C.V===0&&C.T<5)&&C.T-C.V>2&&(C.V=C.T);C.D=!0;p.provider.yn.G("html5_log_vss_details")&&p.provider.Ta.k_("vssinit",{})}}; RV=function(p,C){C=C===void 0?NaN:C;var V=g.Zn(p.provider);C=isNaN(C)?V:C;C=Math.ceil(C);var N=p.D[p.J];p.J+11E3;!(X.length>1)&&X[0].isEmpty()||a||(d.Y=RV(p,H));d.send();p.Z++}},(H-V)*1E3); return p.S=H}; nu=function(p){g.KO(p.W);p.W=NaN}; Vts=function(p){p.T.update();p=p.T;p.segments.length&&p.T===p.V||kb(p);var C=p.segments;p.segments=[];return C}; zK=function(p,C){var V=H$e(p.provider);Object.assign(V,{state:p.Y});C=new PFe(p.provider.videoData,p.provider.yn,C,V);C.T=p.provider.Ta.I_();V=p.provider.videoData.clientPlaybackNonce;C.T=p.provider.Ta.cJ(V);p.provider.videoData.isLivePlayback||(C.Wr=p.provider.Ta.getDuration(V));p.provider.videoData.T&&(V=p.provider.videoData.T.Xt(C.T))&&(C.YM=V-C.T);C.RN=g.Zn(p.provider);C.segments=[oV(p.provider)];return C}; NLY=function(p,C){var V=zK(p,"watchtime");XOV(p)&&(V.delayThresholdMet=!0,p.sY=!0);if(p.C>0){for(var N=g.F(C),H=N.next();!H.done;H=N.next())H=H.value,H.startTime-=p.C,H.endTime-=p.C;V.T-=p.C}else V.T=p.T.rl();V.segments=C;return V}; eP=function(p,C){var V=dT9(p,!isNaN(p.S));C&&(p.S=NaN);return V}; dT9=function(p,C){var V=NLY(p,Vts(p));!isNaN(p.S)&&C&&(V.Z=p.S);return V}; XOV=function(p){var C;if(C=p.provider.videoData.isLoaded()&&p.provider.videoData.ER&&p.V&&!p.sY)C=p.T,C=C.W+C.provider.Ta.I_()-C.V>=p.provider.videoData.ER;return!!C}; pOs=function(p){p.provider.videoData.youtubeRemarketingUrl&&!p.Vn&&(GKY(p,p.provider.videoData.youtubeRemarketingUrl),p.Vn=!0)}; CYQ=function(p){p.provider.videoData.googleRemarketingUrl&&!p.b_&&(GKY(p,p.provider.videoData.googleRemarketingUrl),p.b_=!0)}; i$y=function(p){p.provider.yn.G("html5_log_vss_details")&&p.provider.Ta.k_("vssfi",{});if(!p.fS()&&p.V){p.Y="paused";var C=eP(p);C.isFinal=!0;C.send();p.dispose()}}; h2y=function(p,C){if(!p.fS())if(g.r(C.state,2)||g.r(C.state,512)){if(p.Y="paused",g.u$(C,2)||g.u$(C,512))g.u$(C,2)&&(p.T.previouslyEnded=!0),p.V&&(nu(p),eP(p).send(),p.S=NaN)}else if(g.r(C.state,8)){p.Y="playing";var V=p.V&&isNaN(p.W)?RV(p):NaN;!isNaN(V)&&(D7(C,64)<0||D7(C,512)<0)&&(p=dT9(p,!1),p.Y=V,p.send())}else p.Y="paused"}; si1=function(p,C,V){if(!p.a$){V||(V=zK(p,"atr"));V.attestationResponse=C;try{V.send()}catch(N){if(N.message!=="Unknown Error")throw N;}p.a$=!0}}; GKY=function(p,C){var V=p.provider.yn;g.pk(p.provider.yn,g.XE(p.provider.videoData)).then(function(N){var H=p.provider.yn.pageId,X=p.provider.yn.sendVisitorIdHeader?p.provider.videoData.visitorData:void 0,d=p.provider.yn.G("vss_pings_using_networkless")||p.provider.yn.G("kevlar_woffle"),a=p.provider.yn.G("allow_skip_networkless");N=vbQ(C,V,H,X,N);Fse(C,N,{token:p.provider.videoData.Y,Tg:p.provider.videoData.B_,mdxEnvironment:p.provider.videoData.mdxEnvironment},V,void 0,d&&!a,!1,!0)})}; a_L=function(){this.endTime=this.startTime=-1;this.W="-";this.playbackRate=1;this.visibilityState=0;this.S="";this.C=0;this.compositeLiveStatusToken=this.V=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1}; Pu=function(p,C,V){this.videoData=p;this.yn=C;this.Ta=V;this.T=void 0}; g.Zn=function(p){return Em9(p)()}; Em9=function(p){if(!p.T){var C=g.Wv(function(N){var H=(0,g.Ip)();N&&H<=631152E6&&(p.Ta.k_("ytnerror",{issue:28799967,value:""+H}),H=(new Date).getTime()+2);return H},p.yn.G("html5_validate_yt_now")),V=C(); p.T=function(){return Math.round(C()-V)/1E3}; p.Ta.jf()}return p.T}; H$e=function(p){var C=p.Ta.St()||{};C.fs=p.Ta.jE();C.volume=p.Ta.getVolume();C.muted=p.Ta.isMuted()?1:0;C.mos=C.muted;C.clipid=p.Ta.t7();var V;C.playerheight=((V=p.Ta.getPlayerSize())==null?void 0:V.height)||0;var N;C.playerwidth=((N=p.Ta.getPlayerSize())==null?void 0:N.width)||0;p=p.videoData;V={};p.C&&(V.fmt=p.C.itag,p.S&&(p.VZ?p.S.itag!==p.C.itag:p.S.itag!=p.C.itag)&&(V.afmt=p.S.itag));V.ei=p.eventId;V.list=p.playlistId;V.cpn=p.clientPlaybackNonce;p.videoId&&(V.v=p.videoId);p.tB&&(V.infringe=1); (p.FT?0:p.va)&&(V.splay=1);(N=v_(p))&&(V.live=N);p.dP&&(V.sautoplay=1);p.X4&&(V.autoplay=1);p.Aa&&(V.sdetail=p.Aa);p.partnerId&&(V.partnerid=p.partnerId);p.osid&&(V.osid=p.osid);p.Hv&&(V.cc=g.OaY(p.Hv));return Object.assign(C,V)}; fnL=function(p){var C=tpV();if(C)return l_v[C]||l_v.other;if(g.bH(p.yn)){p=navigator.userAgent;if(/[Ww]ireless[)]/.test(p))return 3;if(/[Ww]ired[)]/.test(p))return 30}return 0}; oV=function(p){var C=new a_L,V;C.W=((V=H$e(p).cc)==null?void 0:V.toString())||"-";C.playbackRate=p.Ta.getPlaybackRate();V=p.Ta.getVisibilityState();V!==0&&(C.visibilityState=V);p.yn.Wc&&(C.C=1);C.V=p.videoData.gW;C.compositeLiveStatusToken=p.videoData.compositeLiveStatusToken;V=p.Ta.getAudioTrack();V.K4&&V.K4.id&&V.K4.id!=="und"&&(C.S=V.K4.id);C.connectionType=fnL(p);C.volume=p.Ta.getVolume();C.muted=p.Ta.isMuted();C.clipId=p.Ta.t7()||"-";C.T=p.videoData.qF||"-";return C}; g.wX=function(p,C){g.Y.call(this);var V=this;this.provider=p;this.S=!1;this.V=new Map;this.g7=new g.cj;this.Sr={CLo:function(){return V.qoe}, it_:function(){return V.T}, Qca:function(){return V.C}}; this.provider.videoData.GN()&&!this.provider.videoData.BI&&(this.T=new Yb(this.provider),this.T.C=this.provider.videoData.kt/1E3,g.R(this,this.T),this.qoe=new g.yb(this.provider,C),g.R(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.tp=this.provider.videoData.clientPlaybackNonce)&&this.V.set(this.tp,this.T));if(p.yn.playerCanaryState==="canary"||p.yn.playerCanaryState==="holdback")this.C=new uF(this.provider),g.R(this,this.C)}; ttS=function(p){return!!p.T&&!!p.qoe}; $b=function(p){p.C&&sVv(p.C);p.qoe&&xaQ(p.qoe)}; cHL=function(p){if(p.qoe){p=p.qoe;for(var C=p.provider.videoData,V=p.provider.yn,N=g.F(V.i8),H=N.next();!H.done;H=N.next())IV(p,H.value);if(p.provider.G("html5_enable_qoe_cat_list"))for(N=g.F(C.cP),H=N.next();!H.done;H=N.next())IV(p,H.value);else C.i8&&IV(p,p.provider.videoData.i8);C.p4()&&(N=C.T,Ge(C)&&IV(p,"manifestless"),N&&Jz(N)&&IV(p,"live-segment-"+Jz(N).toFixed(1)));$B(C)?IV(p,"sabr"):p.Bn(tl(C));if(db(C)||C.VL())C.VL()&&IV(p,"ssa"),IV(p,"lifa");C.gatewayExperimentGroup&&(N=C.gatewayExperimentGroup, N==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?N="spkadtrt":N==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(N="spkadctrl"),IV(p,N));V.a$!=="yt"&&(p.T.len=[C.lengthSeconds.toFixed(2)]);C.cotn&&!ix(C)&&p.d5(!0);if(V.Gk()&&((C=u9a())&&p.k_("cblt",{m:C}),V.G("html5_log_screen_diagonal"))){V=p.k_;var X;C=((X=window.H5vccScreen)==null?0:X.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;V.call(p,"cbltdiag",{v:C})}}}; TLS=function(p){if(p.provider.Ta.RI()){if(p.S)return;p.S=!0}p.T&&jia(p.T);if(p.C){p=p.C;var C=g.Zn(p.provider);p.T<0&&(p.T=C,p.delay.start());p.C=C;p.S=C}}; Mtj=function(p,C){p.T&&(p=p.T,C===58?p.T.update():p.V&&(nu(p),eP(p).send(),p.S=NaN))}; JH1=function(p,C){if(g.u$(C,1024)||g.u$(C,512)||g.u$(C,4)){if(p.C){var V=p.C;V.C>=0||(V.T=-1,V.delay.stop())}p.qoe&&(V=p.qoe,V.J||(V.C=-1))}if(p.provider.videoData.enableServerStitchedDai&&p.tp){var N;(N=p.V.get(p.tp))==null||h2y(N,C)}else p.T&&h2y(p.T,C);if(p.qoe){N=p.qoe;V=C.state;var H=g.Zn(N.provider),X=N.getPlayerState(V);YZj(N,H,X,V.seekSource||void 0);X=V.UE;g.r(V,128)&&X&&(X.QG=X.QG||"",buL(N,H,X.errorCode,X.PO,X.QG));(g.r(V,2)||g.r(V,128))&&N.reportStats(H);V.isPlaying()&&!N.J&&(N.C>=0&& (N.T.user_intent=[N.C.toString()]),N.J=!0);qZY(N)}p.C&&(N=p.C,ans(N),N.playerState=C.state,N.C>=0&&g.u$(C,16)&&N.seekCount++,C.state.isError()&&N.send());p.provider.Ta.RI()&&(p.g7=C.state)}; mTu=function(p){if(p.provider.videoData.enableServerStitchedDai&&p.tp){var C;(C=p.V.get(p.tp))!=null&&kb(C.T)}else p.T&&kb(p.T.T)}; vmQ=function(p){p.C&&p.C.send();if(p.qoe){var C=p.qoe;if(C.V){C.g7==="PL"&&(C.g7="N");var V=g.Zn(C.provider);g.OZ(C,V,"vps",[C.g7]);C.J||(C.C>=0&&(C.T.user_intent=[C.C.toString()]),C.J=!0);C.provider.yn.Gk()&&C.k_("finalized",{});C.Sa=!0;C.reportStats(V)}}if(p.provider.videoData.enableServerStitchedDai)for(C=g.F(p.V.values()),V=C.next();!V.done;V=C.next())i$y(V.value);else p.T&&i$y(p.T);p.dispose()}; F5Q=function(p,C){p.T&&si1(p.T,C)}; SDy=function(p){if(!p.T)return null;var C=zK(p.T,"atr");return function(V){p.T&&si1(p.T,V,C)}}; K5a=function(p,C,V,N){V.adFormat=V.Q$;var H=C.Ta;C=new Yb(new Pu(V,C.yn,{getDuration:function(){return V.lengthSeconds}, getCurrentTime:function(){return H.getCurrentTime()}, I_:function(){return H.I_()}, cJ:function(){return H.cJ()}, RI:function(){return H.RI()}, sS:function(){return H.sS()}, getPlayerSize:function(){return H.getPlayerSize()}, getAudioTrack:function(){return V.getAudioTrack()}, getPlaybackRate:function(){return H.getPlaybackRate()}, uP:function(){return H.uP()}, getVisibilityState:function(){return H.getVisibilityState()}, W6:function(){return H.W6()}, St:function(){return H.St()}, getVolume:function(){return H.getVolume()}, isMuted:function(){return H.isMuted()}, jE:function(){return H.jE()}, t7:function(){return H.t7()}, getProximaLatencyPreference:function(){return H.getProximaLatencyPreference()}, jf:function(){H.jf()}, k_:function(X,d){H.k_(X,d)}})); C.C=N;g.R(p,C);return C}; DTH=function(){this.eA=0;this.V=this.pT=this.mP=this.C=NaN;this.T={};this.bandwidthEstimate=NaN}; Lu=function(p,C,V){g.Y.call(this);var N=this;this.yn=p;this.Ta=C;this.C=V;this.T=new Map;this.tp="";this.Sr={Ei:function(){return Array.from(N.T.keys())}}}; udv=function(p,C){p.T.has(C)&&(vmQ(p.T.get(C)),p.T.delete(C))}; Z$Q=function(){this.T=g.aj;this.array=[]}; f_9=function(p,C,V){var N=[];for(C=UTS(p,C);CV)break}return N}; O$s=function(p,C){var V=[];p=g.F(p.array);for(var N=p.next();!N.done&&!(N=N.value,N.contains(C)&&V.push(N),N.start>C);N=p.next());return V}; yH1=function(p){return p.array.slice(UTS(p,0x7ffffffffffff),p.array.length)}; UTS=function(p,C){p=ir(p.array,function(V){return C-V.start||1}); return p<0?-(p+1):p}; qDy=function(p,C){var V=NaN;p=g.F(p.array);for(var N=p.next();!N.done;N=p.next())if(N=N.value,N.contains(C)&&(isNaN(V)||N.endC&&(isNaN(V)||N.startp.mediaTime+p.W&&C1)p.S=!0;if((H===void 0?0:H)||isNaN(p.C))p.C=C;if(p.T)C!==p.mediaTime&&(p.T=!1);else if(C>0&&p.mediaTime===C){H=1500;if(p.yn.G("html5_buffer_underrun_transition_fix")){H=g.mi(p.yn.experiments,"html5_min_playback_advance_for_steady_state_secs");var X=g.mi(p.yn.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");H=H>0&&X>0&&Math.abs(C-p.C)(N||!p.S?H:400)}p.mediaTime=C;p.V=V;return!1}; YDv=function(p,C){this.videoData=p;this.T=C}; z2X=function(p,C,V){return C.Z1(V).then(function(){return YD(new YDv(C,C.V))},function(N){N instanceof Error&&g.eG(N); var H=or('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),X=xZ('audio/mp4; codecs="mp4a.40.2"'),d=H||X,a=C.isLivePlayback&&!g.GF(p.W,!0);N="fmt.noneavailable";a?N="html5.unsupportedlive":d||(N="html5.missingapi");d=a||!d?2:1;H={buildRej:"1",a:C.Ar(),d:!!C.RN,drm:C.O8(),f18:C.jZ.indexOf("itag=18")>=0,c18:H};C.T&&(C.O8()?(H.f142=!!C.T.T["142"],H.f149=!!C.T.T["149"],H.f279=!!C.T.T["279"]):(H.f133=!!C.T.T["133"],H.f140=!!C.T.T["140"],H.f242=!!C.T.T["242"]),H.cAAC=X,H.cAVC=xZ('video/mp4; codecs="avc1.42001E"'), H.cVP9=xZ('video/webm; codecs="vp9"'));C.W&&(H.drmsys=C.W.keySystem,X=0,C.W.T&&(X=Object.keys(C.W.T).length),H.drmst=X);return new qD(N,H,d)})}; Qb=function(p){this.data=window.Float32Array?new Float32Array(p):Array(p);this.C=this.T=p-1}; R2S=function(p){return p.data[p.T]||0}; nme=function(p){this.W=p;this.V=this.C=0;this.S=new Qb(50)}; Bu=function(p,C,V){g.ca.call(this);this.videoData=p;this.experiments=C;this.Y=V;this.C=[];this.S=0;this.V=!0;this.W=!1;this.D=0;V=new e29;p.latencyClass==="ULTRALOW"&&(V.S=!1);p.qo?V.C=3:g.ud(p)&&(V.C=2);p.latencyClass==="NORMAL"&&(V.W=!0);var N=g.mi(C,"html5_liveness_drift_proxima_override");if(tl(p)!==0&&N){V.T=N;var H;((H=p.T)==null?0:Or9(H))&&V.T--}$B(p)&&C.OY("html5_sabr_parse_live_metadata_playback_boundaries")&&(V.D=!0);if(g.gm("trident/")||g.gm("edge/"))H=g.mi(C,"html5_platform_minimum_readahead_seconds")|| 3,V.V=Math.max(V.V,H);g.mi(C,"html5_minimum_readahead_seconds")&&(V.V=g.mi(C,"html5_minimum_readahead_seconds"));g.mi(C,"html5_maximum_readahead_seconds")&&(V.Y=g.mi(C,"html5_maximum_readahead_seconds"));C.OY("html5_force_adaptive_readahead")&&(V.S=!0);if(C=g.mi(C,"html5_liveness_drift_chunk_override"))V.T=C;ld(p)&&(V.T=(V.T+1)/5,p.latencyClass==="LOW"&&(V.T*=2));this.policy=V;this.J=this.policy.C!==1;this.T=rX(this,PYa(this,isNaN(p.liveChunkReadahead)?3:p.liveChunkReadahead,p))}; wOv=function(p,C){if(C)return C=p.videoData,C=PYa(p,isNaN(C.liveChunkReadahead)?3:C.liveChunkReadahead,C),rX(p,C);if(p.C.length){if(Math.min.apply(null,p.C)>1)return rX(p,p.T-1);if(p.policy.S)return rX(p,p.T+1)}return p.T}; $TV=function(p,C){if(!p.C.length)return!1;var V=p.T;p.T=wOv(p,C===void 0?!1:C);if(C=V!==p.T)p.C=[],p.S=0;return C}; GK=function(p,C){return C>=p.S1()-L5y(p)}; gmH=function(p,C,V){C=GK(p,C);V||C?C&&(p.V=!0):p.V=!1;p.J=p.policy.C===2||p.policy.C===3&&p.V}; W5j=function(p,C){C=GK(p,C);p.W!==C&&p.publish("livestatusshift",C);p.W=C}; L5y=function(p){var C=p.policy.T;p.W||(C=Math.max(C-1,0));return C*p$(p)}; PYa=function(p,C,V){V.qo&&C--;ld(V)&&(C=1);if(tl(V)!==0&&(p=g.mi(p.experiments,"html5_live_chunk_readahead_proxima_override"))){C=p;var N;((N=V.T)==null?0:Or9(N))&&C++}return C}; p$=function(p){return p.videoData.T?Jz(p.videoData.T)||5:5}; rX=function(p,C){C=Math.max(Math.max(1,Math.ceil(p.policy.V/p$(p))),C);return Math.min(Math.min(8,Math.floor(p.policy.Y/p$(p))),C)}; e29=function(){this.V=0;this.Y=Infinity;this.S=!0;this.T=2;this.C=1;this.D=this.W=!1}; VX=function(p){g.Y.call(this);this.Ta=p;this.T=0;this.C=null;this.Y=this.S=0;this.V={};this.yn=this.Ta.K();this.W=new g.N8(this.f7,1E3,this);this.qo=new C$({delayMs:g.mi(this.yn.experiments,"html5_seek_timeout_delay_ms")});this.Sa=new C$({delayMs:g.mi(this.yn.experiments,"html5_long_rebuffer_threshold_ms")});this.X$=jt(this,"html5_seek_set_cmt");this.Y_=jt(this,"html5_seek_jiggle_cmt");this.UY=jt(this,"html5_seek_new_elem");this.YM=jt(this,"html5_unreported_seek_reseek");this.sY=jt(this,"html5_long_rebuffer_jiggle_cmt"); this.Wr=jt(this,"html5_long_rebuffer_ssap_clip_not_match");this.Vn=new C$({delayMs:2E4});this.R$=jt(this,"html5_seek_new_elem_shorts");this.Qn=jt(this,"html5_seek_new_media_source_shorts_reuse");this.KS=jt(this,"html5_seek_new_media_element_shorts_reuse");this.Ga=jt(this,"html5_reseek_after_time_jump");this.J=jt(this,"html5_gapless_handoff_close_end_long_rebuffer");this.a$=jt(this,"html5_gapless_slow_seek");this.Z=jt(this,"html5_gapless_slice_append_stuck");this.b_=jt(this,"html5_gapless_slow_start"); this.D=jt(this,"html5_ads_preroll_lock_timeout");this.Hc=jt(this,"html5_ssap_ad_longrebuffer_new_element");this.Wc=new C$({delayMs:g.mi(this.yn.experiments,"html5_skip_slow_ad_delay_ms")||5E3,vW:!this.yn.G("html5_report_slow_ads_as_error")});this.kM=new C$({delayMs:g.mi(this.yn.experiments,"html5_skip_slow_ad_delay_ms")||5E3,vW:!this.yn.G("html5_skip_slow_buffering_ad")});this.ER=new C$({delayMs:g.mi(this.yn.experiments,"html5_slow_start_timeout_delay_ms")});this.vr=jt(this,"html5_slow_start_no_media_source"); g.R(this,this.W)}; jt=function(p,C){var V=g.mi(p.yn.experiments,C+"_delay_ms");p=p.yn.G(C+"_cfl");return new C$({delayMs:V,vW:p})}; QiH=function(p,C){p.T=C}; NT=function(p,C,V,N,H,X,d,a){C.test(V)?(p.oN(H,C,d),C.vW||X()):(C.cg&&C.C&&!C.S?(V=(0,g.Ip)(),N?C.T||(C.T=V):C.T=0,X=!N&&V-C.C>C.cg,V=C.T&&V-C.T>C.UP||X?C.S=!0:!1):V=!1,V&&(a=Object.assign({},p.X0(C),a),a.wn=d,a.we=H,a.wsuc=N,p.Ta.k_("workaroundReport",a),N&&(C.reset(),p.V[H]=!1)))}; C$=function(p){var C=p===void 0?{}:p;p=C.delayMs===void 0?0:C.delayMs;var V=C.UP===void 0?1E3:C.UP;var N=C.cg===void 0?3E4:C.cg;C=C.vW===void 0?!1:C.vW;this.T=this.C=this.V=this.startTimestamp=0;this.S=!1;this.W=Math.ceil(p/1E3);this.UP=V;this.cg=N;this.vW=C}; pxs=function(p){g.Y.call(this);var C=this;this.Ta=p;this.Y=this.T=this.nS=this.mediaElement=this.playbackData=null;this.S=0;this.W=this.a$=this.V=null;this.b_=!1;this.Wc=0;this.J=!1;this.timestampOffset=0;this.D=!0;this.Y_=0;this.UY=this.ER=!1;this.Z=0;this.Qn=!1;this.sY=0;this.yn=this.Ta.K();this.videoData=this.Ta.getVideoData();this.policy=new rHQ;this.Vn=new VX(this.Ta);this.qo=this.Ga=this.vr=this.C=NaN;this.Wr=new g.N8(function(){BLv(C,!1)},2E3); this.kM=new g.N8(function(){HO(C)}); this.R$=new g.N8(function(){C.b_=!0;GEH(C,{})}); this.X$=NaN;this.Sa=new g.N8(function(){var V=C.yn.f9;V.T+=1E4/36E5;V.T-V.V>1/6&&(nru(V),V.V=V.T);C.Sa.start()},1E4); g.R(this,this.Vn);g.R(this,this.Wr);g.R(this,this.R$);g.R(this,this.kM);g.R(this,this.Sa)}; VvY=function(p,C){p.playbackData=C;p.videoData.isLivePlayback&&(p.Y=new nme(function(){a:{if(p.playbackData&&p.playbackData.T.T){if(Ge(p.videoData)&&p.nS){var V=p.nS.aF.Kd()||0;break a}if(p.videoData.T){V=p.videoData.T.Vn;break a}}V=0}return V}),p.T=new Bu(p.videoData,p.yn.experiments,function(){return p.Sd(!0)})); Xd(p.Ta)?(C=CiV(p),C.q9?(p.G("html5_sabr_enable_utc_seek_requests")&&$B(p.videoData)&&p.WC(C.q9,C.startSeconds),p.S=C.startSeconds):C.startSeconds>0&&p.seekTo(C.startSeconds,{NZ:"seektimeline_startPlayback",seekSource:15}),p.D=!1):jTy(p)||(p.S=p.S||(g.pf(p.videoData)?0:p.videoData.startSeconds)||0)}; Hn1=function(p,C){(p.nS=C)?NMa(p,!0):dL(p)}; XxY=function(p,C){g.HF(p.Vn.W);p.G("html5_exponential_memory_for_sticky")&&(C.state.isPlaying()?g.HF(p.Sa):p.Sa.stop());if(p.mediaElement)if(C.T7.state===8&&S6(C.state)&&C.state.isBuffering()){C=p.mediaElement.getCurrentTime();var V=p.mediaElement.yx();var N=p.G("manifestless_post_live_ufph")||p.G("manifestless_post_live")?a7(V,Math.max(C-3.5,0)):a7(V,C-3.5);N>=0&&C>V.end(N)-1.1&&N+10?(iY(p.Ta,p.getCurrentTime()+p.videoData.limitedPlaybackDurationInSeconds),p.UY=!0):p.videoData.isLivePlayback&&p.videoData.endSeconds>0&&(iY(p.Ta,p.getCurrentTime()+p.videoData.endSeconds),p.UY=!0))}; inS=function(p,C){var V=p.getCurrentTime(),N=p.isAtLiveHead(V);if(p.Y&&N){var H=p.Y;if(H.T&&!(V>=H.C&&V50&&H.C.shift())),H=p.T,gmH(H,V,C===void 0?!0:C),W5j(H,V),C&&BLv(p,!0));N!==p.ER&&(C=p.getCurrentTime()-p.qo<=500,V=p.Wc>=1E3,C||V||(C=p.Ta.Pc(),C.qoe&&(C=C.qoe,V=g.Zn(C.provider), g.OZ(C,V,"lh",[N?"1":"0"])),p.ER=N,p.Wc++,p.qo=p.getCurrentTime()))}; BLv=function(p,C){if(p.T){var V=p.T;var N=p.getCurrentTime();!GK(V,N)&&V.qR()?(V.policy.W&&(V.policy.T=Math.max(V.policy.T+1,10)),V=Infinity):V=N0&&ak(p.mediaElement)>0&&(p.C=hH(p,p.C,!1)),!p.mediaElement||!lTL(p))p.kM.start(750);else if(!isNaN(p.C)&&isFinite(p.C)){var C=p.Ga-(p.C-p.timestampOffset);if(!(C===0||p.G("html5_enable_new_seek_timeline_logic")&&Math.abs(C)<.005))if(C=p.mediaElement.getCurrentTime()-p.C,Math.abs(C)<=p.Y_||p.G("html5_enable_new_seek_timeline_logic")&&Math.abs(C)<.005)p.V&&p.V.resolve(p.mediaElement.getCurrentTime()); else{if(p.videoData.Bv)p.videoData.Bv=!1;else if(!rP(p.videoData)&&p.C>=p.Sd()-.1){p.C=p.Sd();p.V.resolve(p.Sd());sD(p.Ta);return}try{var V=p.C-p.timestampOffset;p.mediaElement.seekTo(V);p.Vn.T=V;p.Ga=V;p.S=p.C;p.G("html5_enable_new_seek_timeline_logic")&&(p.J=!1)}catch(N){}}}}; lTL=function(p){if(!p.mediaElement||p.mediaElement.wh()===0||p.mediaElement.hasError())return!1;var C=p.mediaElement.getCurrentTime()>0;if(!(p.videoData.V&&p.videoData.V.T||p.videoData.isLivePlayback)&&p.videoData.O8())return C;if(p.C>=0){var V=p.mediaElement.cW();if(V.length||!C)return EJ(V,p.C-p.timestampOffset)}return C}; EWv=function(p,C){p.W&&(p.W.resolve(C),p.Ta.FH(),p.yn.Gk()&&(C=p.X0(),C["native"]=""+ +p.J,C.otgt=""+(p.C+p.timestampOffset),p.Ta.k_("seekEnd",C)));dL(p)}; dL=function(p){p.C=NaN;p.Ga=NaN;p.V=null;p.a$=null;p.W=null;p.b_=!1;p.J=!1;p.Y_=0;p.Wr.stop();p.R$.stop()}; TMu=function(p,C,V){var N=p.mediaElement,H=C.type;switch(H){case "seeking":var X=N.getCurrentTime()+p.timestampOffset;if(!p.V||p.J&&X!==p.C){var d=!!p.V;p.V=new hK;p.G("html5_enable_new_seek_timeline_logic")&&p.V.then(function(E){EWv(p,E)},function(){dL(p)}); if(p.videoData.isAd()){var a;V_H({adCpn:p.videoData.clientPlaybackNonce,contentCpn:(a=p.videoData.pC)!=null?a:""},C.T)}p.Ga=X;QiH(p.Vn,N.getCurrentTime());p.seekTo(X,{seekSource:104,NZ:"seektimeline_mediaElementEvent"});V&&tvQ(V,X*1E3,!!d);p.J=!0}break;case "seeked":p.V&&p.V.resolve(p.mediaElement.getCurrentTime());break;case "loadedmetadata":Xd(p.Ta)||cre(p);HO(p);break;case "progress":HO(p);break;case "pause":p.Z=p.getCurrentTime()}p.Z&&((H==="play"||H==="playing"||H==="timeupdate"||H==="progress")&& p.getCurrentTime()-p.Z>10&&(p.G("html5_enable_new_media_element_puase_jump")?(p.Ta.oN(new qD("qoe.restart",{reason:"pauseJump"})),sZ(p.Ta)):p.seekTo(p.Z,{NZ:"pauseJump"})),H!=="pause"&&H!=="play"&&H!=="playing"&&H!=="progress"&&(p.Z=0))}; Mvy=function(p){return(Z6(p.videoData)||!!p.videoData.liveUtcStartSeconds)&&(!!p.videoData.liveUtcStartSeconds||jTy(p))&&!!p.videoData.T}; jTy=function(p){return!!p.videoData.startSeconds&&isFinite(p.videoData.startSeconds)&&p.videoData.startSeconds>1E9}; CiV=function(p){var C=0,V=NaN,N="";if(!p.D)return{startSeconds:C,q9:V,source:N};p.videoData.Wr?C=p.videoData.vr:rP(p.videoData)&&(C=Infinity);if(g.ud(p.videoData))return{startSeconds:C,q9:V,source:N};p.videoData.startSeconds?(N="ss",C=p.videoData.startSeconds):p.videoData.o6&&(N="stss",C=p.videoData.o6);p.videoData.liveUtcStartSeconds&&(V=p.videoData.liveUtcStartSeconds);if(isFinite(C)&&(C>p.Sd()||Cp.Sd()||V 0?(N.onesie="0",p.handleError(new qD("html5.missingapi",N)),!1):!0}; Zns=function(p){var C=rb();Bk(C,p);return g.KU(C,sws())}; KY9=function(p,C){var V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au,W,e;return g.I(function(B){if(B.C==1)return C.fetchType="onesie",V=Ow1(C,p.getPlayerSize(),p.getVisibilityState()),N=new gZ(p,V),g.y(B,N.fetch(),2);H=B.T;X={player_response:H};C.loading=!1;d=p.lJ.wz;if(N.ZQ){a=g.F(N.ZQ.entries());for(E=a.next();!E.done;E=a.next())l=E.value,t=g.F(l),c=t.next().value,T=t.next().value,M=c,J=T,d.T.set(M,J,180),M===C.videoId&&(S=J.yl(),C.Nq=S);d.qB=N}D=g.F(N.Ls.entries());for(Z=D.next();!Z.done;Z= D.next())f=Z.value,q=g.F(f),A=q.next().value,z=q.next().value,Q=A,P=z,d.C.set(Q,P,180);g.ew(C,X,!0);if(C.loading||ze(C))return B.return(Promise.resolve());d.T.removeAll();d.C.removeAll();C.Nq=[];VL={};au="onesie.response";W=0;C.errorCode?(au="auth",VL.ec=C.errorCode,VL.ed=C.errorDetail,VL.es=C.Ck||"",W=2):(VL.successButUnplayable="1",VL.disposed=""+ +C.fS(),VL.afmts=""+ +/adaptiveFormats/.test(H),VL.cpn=C.clientPlaybackNonce);e=new qD(au,VL,W);return B.return(Promise.reject(e))})}; FYu=function(p,C){var V,N,H,X,d,a,E,l,t,c,T;return g.I(function(M){switch(M.C){case 1:V=C.isAd(),N=!V,H=V?1:3,X=0;case 2:if(!(X0)){M.EY(5);break}return g.y(M,A8(5E3),6);case 6:d=new g.Bw("Retrying OnePlatform request",{attempt:X}),g.eG(d);case 5:return g.vv(M,7),g.y(M,UAe(p,C),9);case 9:return M.return();case 7:a=g.Sa(M);E=bv(a);l=E.errorCode;t=p.K();c=t.G("html5_use_network_error_code_enums")?401:"401";N&&l==="manifest.net.badstatus"&&E.details.rc===c&&(N=!1,X===H-1&&(H+= 1));if(X===H-1)return T=fTY(V,E.details),T.details.backend="op",T.details.originec=l,M.return(Promise.reject(T));if(l==="auth"||l==="manifest.net.retryexhausted")return M.return(Promise.reject(E));p.handleError(E);if(Ir(E.severity)){M.EY(4);break}case 3:X++;M.EY(2);break;case 4:return M.return(Promise.reject(fTY(V,{backend:"op"})))}})}; UAe=function(p,C){function V(au){au.readyState===2&&p.ZE("ps_c")} var N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL;return g.I(function(au){switch(au.C){case 1:C.fetchType="gp";N=p.K();H=g.pk(N,g.XE(C));if(!H.T){X=H.getValue();au.EY(2);break}return g.y(au,H.T,3);case 3:X=au.T;case 2:return d=X,a=Zns(d),E=Ow1(C,p.getPlayerSize(),p.getVisibilityState()),l=g.On(OnY),t=g.XE(C),c=(0,g.Ip)(),T=!1,M="empty",J=0,p.ZE("psns"),S={q$:V},g.y(au,g.E0(a,E,l,void 0,S),4);case 4:D=au.T;p.ZE("psnr");if(C.fS())return au.return();D?"error"in D&&D.error?(T=!0,M="esf:"+D.error.message, J=D.error.code):D.errorMetadata&&(T=!0,M="its",J=D.errorMetadata.status):T=!0;if(T)return Z=0,f=((0,g.Ip)()-c).toFixed(),q={},q=N.G("html5_use_network_error_code_enums")?{backend:"op",rc:J,rt:f,reason:M,has_kpt:C.X$?"1":"0",has_mdx_env:C.mdxEnvironment?"1":"0",has_omit_key_flag:g.pO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:N.pageId?"1":"0",has_token:t?"1":"0",has_vvt:C.b_?"1":"0",is_mdx:C.isMdxPlayback?"1":"0",mdx_ctrl:C.wx||"",token_eq:t===g.XE(C)?"1":"0"}:{backend:"op", rc:""+J,rt:f,reason:M,has_kpt:C.X$?"1":"0",has_mdx_env:C.mdxEnvironment?"1":"0",has_omit_key_flag:g.pO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:N.pageId?"1":"0",has_token:t?"1":"0",has_vvt:C.b_?"1":"0",is_mdx:C.isMdxPlayback?"1":"0",mdx_ctrl:C.wx||"",token_eq:t===g.XE(C)?"1":"0"},A="manifest.net.connect",J===429?(A="auth",Z=2):J>200&&(A="manifest.net.badstatus",J===400&&(Z=2)),au.return(Promise.reject(new qD(A,q,Z)));C.loading=!1;g.ew(C,{raw_player_response:D},!0); z=D;g.Oe(C.K())&&z&&z.trackingParams&&Oi(z.trackingParams);if(C.errorCode)return Q={ec:C.errorCode,ed:C.errorDetail,es:C.Ck||""},au.return(Promise.reject(new qD("auth",Q,2)));if(!C.loading&&!ze(C))return P=C.isAd()?"auth":"manifest.net.retryexhausted",VL=C.isAd()?2:1,au.return(Promise.reject(new qD(P,{successButUnplayable:"1",hasMedia:g.SK(C)?"1":"0"},VL)));g.JQ(au)}})}; vWj=function(p,C,V){function N(J){J=bv(J);if(Ir(J.severity))return Promise.reject(J);p.handleError(J);return!1} function H(){return!0} var X,d,a,E,l,t,c,T,M;return g.I(function(J){switch(J.C){case 1:var S=p.K(),D=p.getPlayerSize(),Z=p.getVisibilityState();p.isFullscreen();var f=window.location.search;if(C.partnerId===38&&S.playerStyle==="books")f=C.videoId.indexOf(":"),f=g.GD("//play.google.com/books/volumes/"+C.videoId.slice(0,f)+"/content/media",{aid:C.videoId.slice(f+1),sig:C.ql});else if(C.partnerId===30&&S.playerStyle==="docs")f=g.GD("https://docs.google.com/get_video_info",{docid:C.videoId,authuser:C.BM,authkey:C.jl,eurl:S.X$}); else if(C.partnerId===33&&S.playerStyle==="google-live")f=g.GD("//google-liveplayer.appspot.com/get_video_info",{key:C.videoId});else{S.a$!=="yt"&&g.nm(Error("getVideoInfoUrl for invalid namespace: "+S.a$));var q={html5:"1",video_id:C.videoId,cpn:C.clientPlaybackNonce,eurl:S.X$,ps:S.playerStyle,el:B_(C),hl:S.ER,list:C.playlistId,agcid:C.Fd,aqi:C.adQueryId,sts:20073,lact:bV()};Object.assign(q,S.T);S.forcedExperiments&&(q.forced_experiments=S.forcedExperiments);C.b_?(q.vvt=C.b_,C.mdxEnvironment&&(q.mdx_environment= C.mdxEnvironment)):g.XE(C)&&(q.access_token=g.XE(C));C.adFormat&&(q.adformat=C.adFormat);C.slotPosition>=0&&(q.slot_pos=C.slotPosition);C.breakType&&(q.break_type=C.breakType);C.bj!==null&&(q.ad_id=C.bj);C.xu!==null&&(q.ad_sys=C.xu);C.Jw!==null&&(q.encoded_ad_playback_context=C.Jw);S.captionsLanguagePreference&&(q.cc_lang_pref=S.captionsLanguagePreference);S.kM&&S.kM!==2&&(q.cc_load_policy=S.kM);var A=g.LK(g.$l(),65);g.wG(S)&&A!=null&&!A&&(q.device_captions_on="1");S.mute&&(q.mute=S.mute);C.annotationsLoadPolicy&& S.annotationsLoadPolicy!==2&&(q.iv_load_policy=C.annotationsLoadPolicy);C.uv&&(q.endscreen_ad_tracking=C.uv);(A=S.vr.get(C.videoId))&&A.U1&&(q.ic_track=A.U1);C.Sa&&(q.itct=C.Sa);Hk(C)&&(q.autoplay="1");C.mutedAutoplay&&(q.mutedautoplay=C.mutedAutoplay);C.isAutonav&&(q.autonav="1");C.Zq&&(q.noiba="1");C.isMdxPlayback&&(q.mdx="1",q.ytr=C.eH);C.mdxControlMode&&(q.mdx_control_mode=C.mdxControlMode);C.Bb&&(q.ytrcc=C.Bb);C.vx&&(q.utpsa="1");C.isFling&&(q.is_fling="1");C.isInlinePlaybackNoAd&&(q.mute="1"); C.vnd&&(q.vnd=C.vnd);C.forceAdsUrl&&(A=C.forceAdsUrl.split("|").length===3,q.force_ad_params=A?C.forceAdsUrl:"||"+C.forceAdsUrl);C.QZ&&(q.preload=C.QZ);D.width&&(q.width=D.width);D.height&&(q.height=D.height);(C.FT?0:C.va)&&(q.splay="1");C.ypcPreview&&(q.ypc_preview="1");Vk(C)&&(q.content_v=Vk(C));C.qo&&(q.livemonitor=1);S.sY&&(q.authuser=S.sY);S.pageId&&(q.pageid=S.pageId);S.Qn&&(q.ei=S.Qn);S.S&&(q.iframe="1");C.contentCheckOk&&(q.cco="1");C.racyCheckOk&&(q.rco="1");S.D&&C.Ln&&(q.live_start_walltime= C.Ln);S.D&&C.gR&&(q.live_manifest_duration=C.gR);S.D&&C.playerParams&&(q.player_params=C.playerParams);S.D&&C.cycToken&&(q.cyc=C.cycToken);S.D&&C.ij&&(q.tkn=C.ij);Z!==0&&(q.vis=Z);S.enableSafetyMode&&(q.enable_safety_mode="1");C.X$&&(q.kpt=C.X$);C.Ic&&(q.kids_age_up_mode=C.Ic);C.kidsAppInfo&&(q.kids_app_info=C.kidsAppInfo);C.Su&&(q.upg_content_filter_mode="1");S.widgetReferrer&&(q.widget_referrer=S.widgetReferrer.substring(0,128));C.a$?(D=C.a$.latitudeE7!=null&&C.a$.longitudeE7!=null?C.a$.latitudeE7+ ","+C.a$.longitudeE7:",",D+=","+(C.a$.clientPermissionState||0)+","+(C.a$.locationRadiusMeters||"")+","+(C.a$.locationOverrideToken||"")):D=null;D&&(q.uloc=D);C.oi&&(q.internalipoverride=C.oi);S.embedConfig&&(q.embed_config=S.embedConfig);S.Kp&&(q.co_rel="1");S.ancestorOrigins.length>0&&(q.ancestor_origins=Array.from(S.ancestorOrigins).join(","));S.homeGroupInfo!==void 0&&(q.home_group_info=S.homeGroupInfo);S.livingRoomAppMode!==void 0&&(q.living_room_app_mode=S.livingRoomAppMode);S.enablePrivacyFilter&& (q.enable_privacy_filter="1");C.isLivingRoomDeeplink&&(q.is_living_room_deeplink="1");C.xr&&C.s5&&(q.clip=C.xr,q.clipt=C.s5);C.SA&&(q.disable_watch_next="1");C.Q1&&(q.forced_by_var="1");for(var z in q)!yre.has(z)&&q[z]&&String(q[z]).length>512&&(g.eG(Error("GVI param too long: "+z)),q[z]="");z=S.Vn;g.yj(S)&&(z=H8(z.replace(/\b(?:www|web)([.-])/,"tv$1"))||S.Vn);S=g.GD(z+"get_video_info",q);f&&(S=s11(S,f));f=S}X=f;a=(d=C.isAd())?1:3;E=0;case 2:if(!(E0)){J.EY(5);break}return g.y(J, A8(5E3),6);case 6:t={playerretry:E,playerretrysrc:V},d||(t.recover="embedded"),l=Ek(X,t);case 5:return g.y(J,qC1(C,l).then(H,N),7);case 7:if(c=J.T)return J.return();E++;J.EY(2);break;case 4:T=d?"auth":"manifest.net.retryexhausted";M=d?2:1;if(!d&&Math.random()<1E-4)try{g.eG(new g.Bw("b/152131571",btoa(X)))}catch(Q){}return J.return(Promise.reject(new qD(T,{backend:"gvi"},M)))}})}; qC1=function(p,C){function V(D){return N(D.xhr)} function N(D){if(!p.fS()){D=D?D.status:-1;var Z=0,f=((0,g.Ip)()-t).toFixed();f=H.G("html5_use_network_error_code_enums")?{backend:"gvi",rc:D,rt:f}:{backend:"gvi",rc:""+D,rt:f};var q="manifest.net.connect";D===429?(q="auth",Z=2):D>200&&(q="manifest.net.badstatus",D===400&&(Z=2));return Promise.reject(new qD(q,f,Z))}} var H,X,d,a,E,l,t,c,T,M,J,S;return g.I(function(D){if(D.C==1){p.fetchType="gvi";H=p.K();var Z={};p.AY&&(Z.ytrext=p.AY);(a=g.k5(Z)?void 0:Z)?(X={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:a},d=Ek(C,{action_display_post:1})):(X={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},d=C);E={};H.sendVisitorIdHeader&&p.visitorData&&(E["X-Goog-Visitor-Id"]=p.visitorData);(l=Wb(H.experiments,"debug_sherlog_username"))&&(E["X-Youtube-Sherlog-Username"]=l);Object.keys(E).length> 0&&(X.headers=E);t=(0,g.Ip)();return g.y(D,Hb(Aw,d,X).then(void 0,V),2)}c=D.T;if(!c||!c.responseText)return D.return(N(c));p.loading=!1;T=i1(c.responseText);g.ew(p,T,!0);if(p.errorCode)return M={ec:p.errorCode,ed:p.errorDetail,es:p.Ck||""},D.return(Promise.reject(new qD("auth",M,2)));if(!p.loading&&!ze(p))return J=p.isAd()?"auth":"manifest.net.retryexhausted",S=p.isAd()?2:1,D.return(Promise.reject(new qD(J,{successButUnplayable:"1"},S)));g.JQ(D)})}; fTY=function(p,C){return new qD(p?"auth":"manifest.net.retryexhausted",C,p?2:1)}; cO=function(p,C,V){V=V===void 0?!1:V;var N,H,X,d;g.I(function(a){if(a.C==1){N=p.K();if(V&&(!g.LI(N)||B_(C)!=="embedded")||C.SA||B_(C)!=="adunit"&&(g.bH(N)||kS(N)||g.gk(N)||g.yj(N)||Lb(N)==="WEB_CREATOR"))return a.return();H=g.pk(N,g.XE(C));return H.T?g.y(a,H.T,3):(X=H.getValue(),a.EY(2))}a.C!=2&&(X=a.T);d=X;return a.return(ITY(p,C,d))})}; ITY=function(p,C,V){var N,H,X,d,a;return g.I(function(E){if(E.C==1){g.vv(E,2);N=Zns(V);var l=C.K();g.$l();var t={context:g.TC(C),videoId:C.videoId,racyCheckOk:C.racyCheckOk,contentCheckOk:C.contentCheckOk,autonavState:"STATE_NONE"};B_(C)==="adunit"&&(t.isAdPlayback=!0);l.embedConfig&&(t.serializedThirdPartyEmbedConfig=l.embedConfig);l.Kp&&(t.showContentOwnerOnly=!0);C.YY&&(t.showShortsOnly=!0);g.LK(0,141)&&(t.autonavState=g.LK(0,140)?"STATE_OFF":"STATE_ON");if(g.wG(l)){var c=g.LK(0,65);c=c!=null? !c:!1;var T=!!g.zW("yt-player-sticky-caption");t.captionsRequested=c&&T}var M;if(l=(M=l.getWebPlayerContextConfig())==null?void 0:M.encryptedHostFlags)t.playbackContext={encryptedHostFlags:l};H=t;X=g.On(bnH);p.ZE("wn_s");return g.y(E,g.E0(N,H,X),4)}if(E.C!=2)return d=E.T,p.ZE("wn_r"),!d||"error"in d&&d.error||(a=d,g.Oe(C.K())&&a.trackingParams&&Oi(a.trackingParams),g.ew(C,{raw_watch_next_response:d},!1)),g.Fe(E,0);g.Sa(E);g.JQ(E)})}; ArV=function(p){p.ZE("vir");p.ZE("ps_s");hd("vir",void 0,"video_to_ad");var C=uke(p);C.then(function(){p.ZE("virc");hd("virc",void 0,"video_to_ad");p.ZE("ps_r");hd("ps_r",void 0,"video_to_ad")},function(){p.ZE("virc"); hd("virc",void 0,"video_to_ad")}); return C}; g.JH=function(p,C,V,N,H,X,d,a,E,l){E=E===void 0?new g.YB(p):E;l=l===void 0?!0:l;g.ca.call(this);var t=this;this.yn=p;this.playerType=C;this.mM=V;this.Dq=N;this.getVisibilityState=X;this.visibility=d;this.lJ=a;this.videoData=E;this.TO=l;this.logger=new g.HI("VideoPlayer");this.qY=new xT1(this.yn);this.UO=null;this.Av=new ms;this.CV=null;this.L$=new LNu(this.yn,this.Dq,this);this.u2=!0;this.Hr=this.nS=null;this.S6=[];this.Ec=new tH;this.QL=this.t_=null;this.XU=new tH;this.pZ=null;this.ex=this.hx=!1; this.Pg=NaN;this.cQ=!1;this.playerState=new g.cj;this.Dv=[];this.Va=new g.Rr;this.q1=new bAu(this);this.mediaElement=null;this.OC=new g.N8(this.ah_,15E3,this);this.Tm=this.OL=!1;this.G7=NaN;this.FE=!1;this.Wq=0;this.Po=!1;this.Zi=NaN;this.ji=new ai(new Map([["bufferhealth",function(){return dAe(t.EZ)}], ["bandwidth",function(){return t.Xh()}], ["networkactivity",function(){return t.yn.schedule.sY}], ["livelatency",function(){return t.isAtLiveHead()&&t.isPlaying()?oWH(t):NaN}], ["rawlivelatency",function(){return oWH(t)}]])); this.o2=0;this.loop=!1;this.playbackRate=1;this.rQ=0;this.EZ=new pxs(this);this.bB=!1;this.Yg=[];this.pP=this.M6=0;this.Fv=this.TH=!1;this.pT=this.mP=0;this.NT=-1;this.MU="";this.CN=new g.N8(this.rU,0,this);this.VU=!1;this.Ze=this.GB=null;this.Akn=[this.Va,this.CN,this.OC,this.ji];this.xA=this.w3=null;this.JE=function(){var c=t.Pc();c.provider.yn.W1||c.provider.Ta.getVisibilityState()===3||(c.provider.yn.W1=!0);mTu(c);if(c.C){var T=c.C;T.W&&T.T<0&&T.provider.Ta.getVisibilityState()!==3&&sVv(T)}c.qoe&& (c=c.qoe,c.UY&&c.C<0&&c.provider.yn.W1&&xaQ(c),c.V&&qa(c));t.nS&&TE(t);t.yn.cP&&!t.videoData.backgroundable&&t.mediaElement&&!t.gi()&&(t.isBackground()&&t.mediaElement.YA()?(t.k_("bgmobile",{suspend:1}),t.Q6(!0,!0)):t.isBackground()||MT(t)&&t.k_("bgmobile",{resume:1}))}; this.Sr={Ct:function(c){t.Ct(c)}, e2_:function(c){t.UO=c}, MEY:function(){return t.DC}, Xp:function(){return t.BE}, Wbn:function(){return t.LN}, LbY:function(){return t.Ni}, y6r:function(){}, K:function(){return t.yn}, Nt:function(){return t.mediaElement}, T9Y:function(c){t.VG(c)}}; this.logger.debug(function(){return"creating, type "+C}); this.ZZ=new gX(function(){return t.getCurrentTime()},function(){return t.getPlaybackRate()},function(){return t.getPlayerState()},function(c,T){c!==g.Ez("endcr")||g.r(t.playerState,32)||sD(t); H(c,T,t.playerType)},function(c,T){g.pf(t.videoData)&&t.k_(c,T)}); g.R(this,this.ZZ);g.R(this,this.EZ);kbY(this,E);this.videoData.subscribe("dataupdated",this.K6$,this);this.videoData.subscribe("dataloaded",this.QI,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.k_,this);this.videoData.subscribe("ctmpstr",this.x8,this);this.ip();qpu(this.JE);this.visibility.subscribe("visibilitystatechange",this.JE);this.LN=new g.N8(this.Im,g.mi(this.yn.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.Ni= new g.N8(this.Im,g.mi(this.yn.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.HP=new kEQ(this)}; Hj=function(p){return p.G("html5_not_reset_media_source")&&!p.O8()&&!p.videoData.isLivePlayback&&g.jQ(p.videoData)&&!p.yn.supportsGaplessShorts()}; kbY=function(p,C){if(p.playerType===2||p.yn.Tz)C.E6=!0;var V=bay(C.Q$,C.mU,p.yn.S,p.yn.D);V&&(C.adFormat=V);p.playerType===2&&(C.X4=!0);if(p.isFullscreen()||p.yn.S)V=g.zW("yt-player-autonavstate"),C.autonavState=V||(p.yn.S?2:p.videoData.autonavState);C.endSeconds&&C.endSeconds>C.startSeconds&&iY(p,C.endSeconds)}; xAQ=function(p){if(p.videoData.J){var C=p.lJ.L1();p.videoData.Qt=p.videoData.Qt||(C==null?void 0:C.y5());p.videoData.Mc=p.videoData.Mc||(C==null?void 0:C.bI())}if(X1s(p.videoData)||!a$(p.videoData))C=p.videoData.errorDetail,p.a_(p.videoData.errorCode||"auth",2,unescape(p.videoData.errorReason),C,C,p.videoData.Ck||void 0);p.G("html5_generate_content_po_token")&&p.Cn();p.G("html5_enable_d6de4")&&p.kA();if(p.G("html5_ssap_cleanup_player_switch_ad_player")||p.G("html5_ssap_cleanup_ad_player_on_new_data"))if(C= p.lJ.DE())p.MU=C.clientPlaybackNonce}; YCS=function(p){vmQ(p.DC);g.iP(p.DC);for(var C=p.BE,V=g.F(C.T.values()),N=V.next();!N.done;N=V.next())vmQ(N.value);C.T.clear();g.iP(p.BE)}; m5=function(p){if(p.G("html5_check_video_data_errors_before_playback_start")&&p.videoData.errorCode)return!1;p.K().Y&&p.K().houseBrandUserStatus&&p.k_("hbut",{status:p.K().houseBrandUserStatus});if(p.videoData.GN())return!0;p.a_("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.vO=function(p,C){(C=C===void 0?!1:C)||g.pf(p.videoData)||$b(p.Pc());p.hx=C;!m5(p)||p.Ec.Rb()?g.bH(p.yn)&&p.videoData.isLivePlayback&&p.Ec.Rb()&&!p.Ec.finished&&!p.hx&&p.QI():(p.Ec.start(),C=p.Pc(),g.Zn(C.provider),C.qoe&&Inu(C.qoe),p.QI())}; zDv=function(p){var C=p.videoData;ArV(p).then(void 0,function(V){p.videoData!==C||C.fS()||(V=bv(V),V.errorCode==="auth"&&p.videoData.errorDetail?p.a_(V.errorCode,2,unescape(p.videoData.errorReason),yu(V.details),p.videoData.errorDetail,p.videoData.Ck||void 0):p.handleError(V))})}; RDL=function(p,C){p.GB=C;p.nS&&b4Y(p.nS,new g.aV(C))}; Pij=function(p){g.r(p.playerState,128)||(p.videoData.isLoaded(),p.logger.debug("finished loading playback data"),p.S6=g.p6(p.videoData.Vn),g.SK(p.videoData)?(p.mM.tick("bpd_s"),Fd(p).then(function(){p.mM.tick("bpd_c");if(!p.fS()){p.hx&&(p.aN(JK(JK(p.playerState,512),1)),MT(p));var C=p.videoData;C.endSeconds&&C.endSeconds>C.startSeconds&&iY(p,C.endSeconds);p.Ec.finished=!0;St(p,"dataloaded");p.XU.Rb()&&nWH(p);hwS(p.L$,p.QL)}}),p.G("html5_log_media_perf_info")&&p.k_("loudness",{v:p.videoData.Gp.toFixed(3)}, !0),eDV(p)):St(p,"dataloaded"))}; Fd=function(p){K$(p);p.QL=null;var C=z2X(p.yn,p.videoData,p.gi());p.t_=C;p.t_.then(function(V){wxv(p,V)},function(V){p.fS()||(V=bv(V),p.visibility.isBackground()?(D_(p,"vp_none_avail"),p.t_=null,p.Ec.reset()):(p.Ec.finished=!0,p.a_(V.errorCode,V.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",yu(V.details))))}); return C}; F9=function(p){p.logger.debug("Updating for format change");Fd(p).then(function(){return MT(p)}); p.playerState.isOrWillBePlaying()&&p.playVideo()}; wxv=function(p,C){if(!p.fS()&&!C.videoData.fS()){p.logger.debug("finished building playback data");p.QL=C;VvY(p.EZ,p.QL);if(p.videoData.isLivePlayback){var V=$AY(p.lJ.wz,p.videoData.videoId)||p.nS&&!isNaN(p.nS.sY);V=p.G("html5_onesie_live")&&V;Xd(p)||p.videoData.Hc>0&&!Ge(p.videoData)||V||p.seekTo(p.Sd(),{NZ:"videoplayer_playbackData",seekSource:18})}if(p.videoData.V.T){if(p.G("html5_sabr_report_missing_url_as_error")&&Jej(p.videoData)){p.handleError(new qD("fmt.missing",{missabrurl:"1"},2));return}p.nS? g.eG(Error("Duplicated Loader")):(V=g.mi(p.yn.experiments,"html5_onesie_defer_content_loader_ms"))&&X9(p)&&$AY(p.lJ.wz,p.videoData.yQ)?g.F5(function(){p.fS()||p.nS||LYH(p)},V):LYH(p)}else!p.videoData.V.T&&ix(p.videoData)&&p.yG(new rd(p.videoData.videoId||"",4)); uY(p);jVj(C).then(function(){var N={};p.Zm(N);p.yn.Gk()&&p.G("html5_log_media_perf_info")&&p.k_("av1Info",N);TE(p)})}}; gWY=function(p){p.logger.debug("start readying playback");p.G("html5_enable_ssap_autoplay_debug_logging")&&p.k_("ssap",{strdypb:1});p.mediaElement&&p.mediaElement.activate();g.vO(p);m5(p)&&!g.r(p.playerState,128)&&(p.XU.Rb()||(p.XU.start(),p.videoData.Of?p.aN(JK(p.playerState,4)):p.aN(JK(JK(p.playerState,8),1))),nWH(p))}; nWH=function(p){p.fS();p.logger.debug("try finish readying playback");if(p.XU.finished)p.logger.debug("already finished readying");else if(p.Ec.finished)if(g.r(p.playerState,128))p.logger.debug("cannot finish readying because of error");else if(p.S6.length)p.logger.debug(function(){return"cannot finish readying because of pending preroll: "+p.S6}); else if(p.ZZ.started||b$u(p.ZZ),p.iX())p.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{p.nS&&(p.ex=nS1(p.nS.timing));p.XU.finished||(p.XU.finished=!0);var C=p.G("html5_onesie_live")&&p.nS&&!isNaN(p.nS.sY);!p.videoData.isLivePlayback||p.videoData.Hc>0&&!Ge(p.videoData)||C||Xd(p)||(p.logger.debug("seek to head for live"),p.seekTo(Infinity,{NZ:"videoplayer_readying",seekSource:18}),p.isBackground()&&(p.Tm=!0));cHL(p.Pc());p.logger.debug("finished readying playback"); p.publish("playbackready",p);dc("pl_c",p.mM.timerName)||(p.mM.tick("pl_c"),hd("pl_c",void 0,"video_to_ad"));dc("pbr",p.mM.timerName)||(p.mM.tick("pbr"),hd("pbr",void 0,"video_to_ad"))}else p.logger.debug("playback data not loaded")}; sD=function(p,C,V){C=C===void 0?!0:C;(V===void 0||V)&&p.mediaElement&&p.mediaElement.pause();p.aN(C?new g.cj(14):new g.cj)}; iY=function(p,C){p.CV&&WYe(p);p.CV=new g.sz(C*1E3,0x7ffffffffffff);p.CV.namespace="endcr";p.addCueRange(p.CV)}; WYe=function(p){p.removeCueRange(p.CV);p.CV=null}; QTe=function(p,C,V,N,H){var X=p.Pc(H),d=g.pf(p.videoData)?X.getVideoData():p.videoData;d.C=V;var a=g.Z_(p);V=new $4s(d,V,C,a?a.itag:"",N);p.yn.experiments.OY("html5_refactor_sabr_video_format_selection_logging")?(V.videoId=H,p.xA=V):X.yX(V);H=p.L$;H.C=0;H.T=0;p.publish("internalvideoformatchange",d,C==="m")}; g.Z_=function(p){var C=UD(p);return Ni(C)||!p.QL?null:g.L0(p.QL.T.videoInfos,function(V){return C.S(V)})}; UD=function(p){if(p.QL){var C=p.L$;var V=p.QL;p=p.F_();if(C.Ta.Uu().isInline())var N=xB;else C.G("html5_exponential_memory_for_sticky")?N=m4(C.yn.f9,"sticky-lifetime")<.5?"auto":H1[Y1()]:N=H1[Y1()],N=g.jo("auto",N,!1,"s");if(Ni(N)){if(N=gkX(C,V).compose(GG9(C,V)).compose(CFv(C,V)).compose(daY(C,V.videoData)).compose(iuV(C,V.videoData,V)).compose(Dn(C,V)).compose(rIj(C,V)),Ni(p)||C.G("html5_apply_pbr_cap_for_drm"))N=N.compose(BZe(C,V))}else C.G("html5_perf_cap_override_sticky")&&(N=N.compose(Dn(C, V))),C.G("html5_ustreamer_cap_override_sticky")&&(N=N.compose(BZe(C,V)));N=N.compose(rIj(C,V));C=V.videoData.KT.compose(N).compose(V.videoData.f5).compose(p)}else C=xB;return C}; Fv9=function(p){var C=p.L$;p=p.videoData;var V=daY(C,p);C.G("html5_disable_client_autonav_cap_for_onesie")||V.compose(iuV(C,p));return V}; g.rrv=function(p,C,V,N){var H=C.T,X=C.reason;if(p.G("html5_enable_qoe_video_format_intent")){var d;if((d=p.Pc().qoe)!=null&&!(H<=0)){var a=g.Zn(d.provider);g.OZ(d,a,"vfi",[H+"p",X])}}p.videoData.KT=C;if(p.QL&&V&&(V=p.L$,H=p.QL,H.T.T&&(X=Y1(),d=H.T.videoInfos[0].video.T,!(X>d&&d!==0&&C.T===d)))){var E;X=QB1(V,(E=H.T)==null?void 0:E.videoInfos);E=V.Ta.getPlaybackRate();E>1&&X&&(E=ugX(V.yn.W,H.T.videoInfos,E),C.T!==0&&E=480;if(V.G("html5_exponential_memory_for_sticky")){l=V.yn.f9;t=1;var c=c===void 0?!1:c;Pnj(l,"sticky-lifetime");l.values["sticky-lifetime"]&&l.uq["sticky-lifetime"]||(l.values["sticky-lifetime"]=0,l.uq["sticky-lifetime"]=0);c&&m4(l,"sticky-lifetime")>.0625&&(t=l.uq["sticky-lifetime"]*2);l.values["sticky-lifetime"]+=1*Math.pow(2,l.T/t);l.uq["sticky-lifetime"]=t;l.S.start()}if(V.G("html5_perf_cap_override_sticky")){c= V.V;l=V.G("html5_perserve_av1_perf_cap");l=l===void 0?!1:l;if(l===void 0?0:l){t=RH();C=g.F(Object.keys(t));for(V=C.next();!V.done;V=C.next())V=V.value,V.indexOf("1")!==0&&delete t[V];g.Yl("yt-player-performance-cap",t,2592E3)}else g.R_("yt-player-performance-cap");ZFY(l);if(l){l=g.F(uo.keys());for(t=l.next();!t.done;t=l.next())t=t.value,t.startsWith("1")||uo.delete(t);l=g.F(Ku.values());for(t=l.next();!t.done;t=l.next())t=t.value,t.startsWith("1")||Ku.delete(t);l=g.F(c.keys());for(t=l.next();!t.done;t= l.next())t=t.value,t.startsWith("1")||c.delete(t)}else uo.clear(),Ku.clear(),c.clear()}}p.nS&&(c=p.nS,N=N||"",c.policy.T?xd(c.C.T,N):xd(c.T.W,N));uY(p)}; uY=function(p){if(!p.fS()&&!g.r(p.playerState,128)&&p.videoData.V){if(p.videoData.V.T)TE(p);else{var C=UD(p),V=p.videoData;a:{var N=p.videoData.FO;if(C.T){for(var H=g.F(N),X=H.next();!X.done;X=H.next()){X=X.value;var d=X.getInfo(),a=g.PB[d.video.quality];if((!C.V||d.video.quality!=="auto")&&a<=C.T){N=X;break a}}N=N[N.length-1]}else N=N[0]}V.KS=N;QTe(p,C.reason,BMv(p,p.videoData.KS))}if(p.G("html5_check_unstarted")?p.playerState.isOrWillBePlaying():p.isPlaying())p.EZ.D=!1,p.playVideo()}}; TE=function(p){if(p.videoData.V&&p.videoData.V.T){var C=UD(p);p.nS&&EdQ(p.nS,C)}}; GbQ=function(p){var C;return!!(p.G("html5_native_audio_track_switching")&&g.D1&&((C=p.videoData.C)==null?0:jb(C)))}; pze=function(p){if(!GbQ(p))return!1;var C;p=(C=p.mediaElement)==null?void 0:C.audioTracks();return!!(p&&p.length>1)}; je9=function(p){var C=CWQ(p);if(C)return p.videoData.getAvailableAudioTracks().find(function(V){return V.K4.getName()===C})}; CWQ=function(p){var C;if(p=(C=p.mediaElement)==null?void 0:C.audioTracks())for(C=0;C0&&(C.i8=N.Ot)); C.qn=N.Kq;C.Tp=U6(V,{},N.V||void 0,sW(N));C.qo=hl(N)&&g.gk(V);C.lF=V.G("html5_catch_errors_for_rollback");$B(N)&&(C.Ij=g.mi(V.experiments,"html5_sabr_seek_epsilon_ms"),V.G("html5_sabr_report_partial_segment_estimated_duration")&&(C.SA=!0),C.T=!0,C.Tz=V.G("html5_sabr_enable_utc_seek_requests"),C.cP=V.G("html5_sabr_enable_live_clock_offset"),C.sx=V.G("html5_disable_client_resume_policy_for_sabr"),C.Zw=V.G("html5_trigger_loader_when_idle_network"),C.Z4=V.G("html5_sabr_parse_live_metadata_playback_boundaries"), C.yR=V.G("html5_enable_platform_backpressure_with_sabr"),C.oi=V.G("html5_consume_onesie_next_request_policy_for_sabr"),C.E5=V.G("html5_sabr_report_next_ad_break_time"),C.QP=V.G("html5_log_high_res_buffer_timeline"),C.VR=V.G("html5_remove_stuck_slices_beyond_max_buffer_limits"),C.Su=V.G("html5_gapless_sabr_btl_last_slice")&&id(N),Ge(N)?(C.IX=!0,C.Ic=V.G("html5_disable_variability_tracker_for_live"),C.UY=V.G("html5_sabr_use_accurate_slice_info_params")):C.qW=V.G("html5_probe_request_on_sabr_request_progress"), C.nA=V.G("html5_serve_start_seconds_seek_for_post_live_sabr"),C.o6=V.G("html5_flush_index_on_updated_timestamp_offset"),C.b_=V.G("html5_enable_sabr_request_pipelining")&&!g.pf(N),C.Ra=V.G("html5_ignore_partial_segment_from_live_readahead"),C.KT=V.G("html5_use_non_active_broadcast_for_post_live"),C.Wr=V.G("html5_use_centralized_player_time"),C.hg=V.G("html5_consume_onesie_sabr_seek"),C.sY=V.G("html5_enable_sabr_seek_loader_refactor"),C.ra=V.G("html5_update_segment_start_time_from_media_header"),N.enableServerStitchedDai&& (C.W=!0,C.Rj=V.G("html5_reset_server_stitch_state_for_non_sabr_seek"),C.s5=V.G("html5_remove_ssdai_append_pause"),C.Qn=V.G("html5_consume_ssdai_info_with_streaming"),C.Uv=V.G("html5_process_all_cuepoints")));C.Y=C.T&&V.G("html5_sabr_live");Je(V.W,mw.BITRATE)&&(C.F$=NaN);if(a=g.mi(V.experiments,"html5_request_size_max_kb"))C.Y_=a*1024;V.W.S?C.cV="; "+mw.EXPERIMENTAL.name+"=allowed":V.G("html5_enable_cobalt_tunnel_mode")&&(C.cV="; tunnelmode=true");a=N.serverPlaybackStartConfig;(a==null?0:a.enable)&& (a==null?0:a.playbackStartPolicy)&&(C.I5=!0,zt9(C,a.playbackStartPolicy,2));a=V4s(p);p.Av.removeAll();a:{V=p.lJ.wz;if(N=p.videoData.videoId)if(H=V.T.get(N)){V.T.remove(N);V=H;break a}V=void 0}p.nS=new g.Hu(p,p.yn.schedule,C,p.videoData.T,p.videoData.V,UD(p),a,p.videoData.enableServerStitchedDai,V,p.videoData.Y_);C=p.videoData.G("html5_disable_preload_for_ssdai_with_preroll")&&p.videoData.isDaiEnabled()&&X9(p)?!0:p.hx&&g.bH(p.yn)&&p.videoData.isLivePlayback;p.nS.initialize(p.getCurrentTime(),UD(p), C);p.videoData.probeUrl&&(p.nS.R$=p.videoData.probeUrl);if(p.S6.length||p.hx)p.videoData.cotn||f$(p,!1);Hn1(p.EZ,p.nS);p.GB&&b4Y(p.nS,new g.aV(p.GB));p.Ze&&(p.nS.hK(p.Ze),p.EZ.D=!1);g.s5(p.videoData)&&(p=p.nS,p.policy.uM=p.policy.nj)}; K$=function(p){p.nS&&(p.nS.dispose(),p.nS=null,Hn1(p.EZ,null));Hj(p)?Nuu(p):OD(p)}; Nuu=function(p){if(p.Hr)if(p.logger.debug("release media source"),p.Gh(),p.Hr.W)try{p.yn.Gk()&&p.k_("rms",{l:"vprms",sr:Hj(p),rs:dl(p.Hr)});p.Hr.clear();var C;(C=p.mediaElement)!=null&&(C.C=p.Hr);p.Hr=null}catch(V){C=new g.Bw("Error while clearing Media Source in VideoPlayer: "+V.name+", "+V.message),C=bv(C),p.handleError(C),OD(p)}else OD(p)}; OD=function(p,C){C=C===void 0?!1:C;p.Hr&&(p.logger.debug("remove media source"),Zqy(p.Hr),p.Gh(C),p.Hr.dispose(),p.Hr=null)}; Xze=function(p,C){C=C===void 0?!1:C;if(p.Hr)return p.Hr.V;p.logger.debug("update media source");a:{C=C===void 0?!1:C;try{g.Qg()&&p.videoData.Ez()&&fUV(p.mediaElement);var V=p.mediaElement.In(p.dc(),p.Tc())}catch(H){if(YpS(p.q1,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",H);p.a_("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}HZe(p,V,!1,!1,C)}var N;return((N=p.In())==null?void 0:N.V)||null}; HZe=function(p,C,V,N,H){function X(d){try{ddy(p,d,V,N)}catch(a){g.eG(a),p.handleError(new qD("fmt.unplayable",{msi:"1",ename:a&&typeof a==="object"&&"name"in a?String(a.name):void 0},1))}} V=V===void 0?!1:V;N=N===void 0?!1:N;iZ9(p,H===void 0?!1:H);p.Hr=C;Hj(p)&&dl(p.Hr)==="open"?X(p.Hr):Fz1(p.Hr,X)}; iZ9=function(p,C){C=C===void 0?!1:C;if(p.nS){var V=p.getCurrentTime()-p.yZ();p.nS.seek(V,{h6:C}).Rz(function(){})}else LYH(p)}; ddy=function(p,C,V,N){V=V===void 0?!1:V;N=N===void 0?!1:N;if(p.Hr&&(!C||p.Hr===C)){p.logger.debug("media source opened");var H=p.getDuration();!H&&Ge(p.videoData)&&(H=25200);if(p.Hr.isView){var X=H;p.logger.debug(function(){return"Set media source duration to "+X+", video duration "+H}); X>p.Hr.getDuration()&&hMs(p,X)}else hMs(p,H);hbL(p.nS,p.Hr,V,N);p.publish("mediasourceattached")}}; hMs=function(p,C){if(p.Hr){p.Hr.Nr(C);var V;(V=p.nS)!=null&&V.policy.Wr&&(V.W=C)}}; tfs=function(p,C){QTe(p,C.reason,C.T.info,C.token,C.videoId)}; sZ=function(p,C,V,N){C=C===void 0?!1:C;V=V===void 0?!1:V;N=N===void 0?!1:N;var H,X,d;return g.I(function(a){if(a.C==1){p.nS&&p.nS.Cg();p.nS&&p.nS.fS()&&K$(p);if(p.G("html5_enable_vp9_fairplay")&&p.O8()&&(H=p.videoData.T)!=null)for(var E in H.T)H.T.hasOwnProperty(E)&&(H.T[E].T=null,H.T[E].V=!1);p.aN(JK(p.playerState,2048));p.G("html5_ssap_keep_media_on_finish_segment")&&g.pf(p.videoData)?p.publish("newelementrequired",N):p.publish("newelementrequired");return C?g.y(a,Fd(p),2):a.EY(2)}p.videoData.p4()&& ((X=p.nS)==null?0:X.sY)&&!Xd(p)&&((d=p.isAtLiveHead())&&rP(p.videoData)?p.seekTo(Infinity,{NZ:"videoPlayer_getNewElement"}):p.videoData.EO&&p.nS&&(E=p.nS,E.hk.p4&&(E.hk.EO||E.hk.S||E.hk.isPremiere?(E.seek(0,{NZ:"loader_resetSqless"}),E.videoTrack.D=!0,E.audioTrack.D=!0,E.videoTrack.W=!0,E.audioTrack.W=!0):SO(E.hk)&&uQ(E))));V&&p.seekTo(0,{seekSource:105});g.r(p.playerState,8)&&(p.G("html5_ssap_keep_media_on_finish_segment")&&g.pf(p.videoData)?p.playVideo(!1,N):p.playVideo());g.JQ(a)})}; yX=function(p,C){p.k_("hgte",{ne:+C});p.videoData.J=!1;C&&sZ(p);p.nS&&H4Y(p.nS)}; sej=function(p,C){p.k_("newelem",{r:C});sZ(p)}; aRy=function(p,C){p.mM.S.rd();g.r(p.playerState,32)||(p.aN(JK(p.playerState,32,C==null?void 0:C.seekSource)),g.r(p.playerState,8)&&p.pauseVideo(!0),p.publish("beginseeking",p));p.m6()}; EXe=function(p,C){C=C==null?void 0:C.seekSource;g.r(p.playerState,32)?(p.aN(vj(p.playerState,16,32,C)),p.publish("endseeking",p)):g.r(p.playerState,2)||p.aN(JK(p.playerState,16,C));p.mM.S.vy(p.videoData,p.playerState.isPaused())}; lRu=function(p,C){p.yn.experiments.OY("enable_adb_handling_in_sabr")&&(p.pauseVideo(!0),p.Ci(),C&&p.a_("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; t4X=function(p){var C=0,V="";if(p.GB){if(p.GB.bX)return"D,";C=p.GB.Z5();V=p.GB.yv().substring(0,4)}else p.Ze&&(C=p.Ze.Z5(),V=p.Ze.yv().substring(0,4));return C>0?(p="AD"+C+", ",V&&(p+=V+", "),p):""}; St=function(p,C){p.publish("internalvideodatachange",C===void 0?"dataupdated":C,p,p.videoData)}; cDS=function(p){for(var C=g.F("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),V=C.next();!V.done;V=C.next())p.Va.U(p.mediaElement,V.value,p.VG,p);p.yn.KM&&p.mediaElement.F6()&&(p.Va.U(p.mediaElement,"webkitplaybacktargetavailabilitychanged",p.Va_,p),p.Va.U(p.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",p.SYY,p))}; M4y=function(p){g.Dr(p.Pg);Tuj(p)||(p.Pg=g.Se(function(){return Tuj(p)},100))}; Tuj=function(p){var C=p.mediaElement;C&&p.OL&&!p.videoData.sY&&!dc("vfp",p.mM.timerName)&&C.wh()>=2&&!C.isEnded()&&tj(C.yx())>0&&p.mM.tick("vfp");return(C=p.mediaElement)&&!p.videoData.sY&&C.getDuration()>0&&(C.isPaused()&&C.wh()>=2&&tj(C.yx())>0&&(dc("pbp",p.mM.timerName)||p.mM.tick("pbp"),!p.videoData.Of||p.cQ||C.isSeeking()||(p.cQ=!0,p.publish("onPlaybackPauseAtStart"))),C=C.getCurrentTime(),Wu(p.qY,C))?(JDa(p),!0):!1}; JDa=function(p){g.Dr(p.Pg);p.OC.stop();p.videoData.sY=!0;p.yn.sx=!0;p.yn.Q$=0;var C=p.q1;if(C.videoData.C){var V=C.I$.W,N=C.videoData.C.o$;V.C.has(N)&&(V.C.delete(N),pI(V))}C.T.stop();mdS(p);g.r(p.playerState,8)&&p.aN(mE(p.playerState,65));p.hx=!1;TLS(p.Pc());g.HF(p.LN);p.publish("playbackstarted");(p=g.zV("yt.scheduler.instance.clearPriorityThreshold"))?p():dq(0,0)}; mdS=function(p){var C=p.lJ.DE(),V={},N={};!dc("pbs",p.mM.timerName)&&LS.measure&&LS.getEntriesByName&&(LS.getEntriesByName("mark_nr")[0]?pCV("mark_nr"):pCV());C.videoId&&(V.videoId=C.videoId);C.clientPlaybackNonce&&!p.G("web_player_early_cpn")&&(V.clientPlaybackNonce=C.clientPlaybackNonce);p.mediaElement&&p.mediaElement.isPaused()&&(N.isPausedOnLoad=!0);N.itag=C.C?Number(C.C.itag):-1;C.QZ&&(N.preloadType=String(p.ex?2:1));V.liveStreamMode=vXL[v_(C)];V.playerInfo=N;p.mM.infoGel(V);if(p.nS){C=p.nS.timing; window&&window.performance&&window.performance.getEntriesByName&&(C.V&&(V=window.performance.getEntriesByName(C.V),V.length&&(V=V[0],C.tick("vri",V.fetchStart),C.tick("vdns",V.domainLookupEnd),C.tick("vreq",V.requestStart),C.tick("vrc",V.responseEnd))),C.C&&(V=window.performance.getEntriesByName(C.C),V.length&&(V=V[0],C.tick("ari",V.fetchStart),C.tick("adns",V.domainLookupEnd),C.tick("areq",V.requestStart),C.tick("arc",V.responseEnd))));C=C.ticks;for(var H in C)C.hasOwnProperty(H)&&p.mM.tick(H,C[H])}}; FDV=function(p,C,V,N){C=(C+(p.NT===3?.3:0))/V;V=Math.floor(C*4);V>p.NT&&(p.k_("vpq",{q:V,cpn:N||p.videoData.clientPlaybackNonce,ratio:C.toFixed(3)}),p.NT=V)}; SRY=function(p){p.Pc().Nn();if(rP(p.videoData)&&Date.now()>p.rQ+6283){if(!(!p.isAtLiveHead()||p.videoData.T&&cb(p.videoData.T))){var C=p.Pc();if(C.qoe){C=C.qoe;var V=C.provider.Ta.sS(),N=g.Zn(C.provider);Ou1(C,N,V);V=V.V;isNaN(V)||g.OZ(C,N,"e2el",[V.toFixed(3)])}}p.G("html5_alc_live_log_rawlat")?(C=p.videoData,C=g.qz(C.K())?!0:g.eH(C.K())?C.K$==="6":!1):C=g.qz(p.yn);C&&p.k_("rawlat",{l:lY(p.ji,"rawlivelatency").toFixed(3)});p.rQ=Date.now()}p.videoData.C&&jb(p.videoData.C)&&(C=p.aj())&&C.videoHeight!== p.pP&&(p.pP=C.videoHeight,QTe(p,"a",BMv(p,p.videoData.KS)))}; BMv=function(p,C){if(C.T.video.quality==="auto"&&jb(C.getInfo())&&p.videoData.FO)for(var V=g.F(p.videoData.FO),N=V.next();!N.done;N=V.next())if(N=N.value,N.getHeight()===p.pP&&N.T.video.quality!=="auto")return N.getInfo();return C.getInfo()}; oWH=function(p){if(!rP(p.videoData))return NaN;var C=0;p.nS&&p.videoData.T&&(C=Ge(p.videoData)?p.nS.aF.Kd()||0:p.videoData.T.Vn);return(0,g.Ip)()/1E3-p.Xt()-C}; Ddy=function(p){p.mediaElement&&p.mediaElement.gi()&&(p.Zi=(0,g.Ip)());p.yn.lL?g.F5(function(){KDj(p)},0):KDj(p)}; KDj=function(p){var C;if((C=p.Hr)==null||!C.Ii()){if(p.mediaElement)try{p.pZ=p.mediaElement.playVideo()}catch(N){D_(p,"err."+N)}if(p.pZ){var V=p.pZ;V.then(void 0,function(N){p.logger.debug(function(){return"playMediaElement failed: "+N}); if(!g.r(p.playerState,4)&&!g.r(p.playerState,256)&&p.pZ===V)if(N&&N.name==="AbortError"&&N.message&&N.message.includes("load"))p.logger.debug(function(){return"ignore play media element failure: "+N.message}); else{var H="promise";N&&N.name&&(H+=";m."+N.name);D_(p,H);p.bB=!0;p.videoData.FT=!0}})}}}; D_=function(p,C){g.r(p.playerState,128)||(p.aN(vj(p.playerState,1028,9)),p.k_("dompaused",{r:C}),p.publish("onAutoplayBlocked"))}; MT=function(p,C){C=C===void 0?!1:C;if(!p.mediaElement||!p.videoData.V)return!1;var V=C;V=V===void 0?!1:V;var N=null;var H;if((H=p.videoData.V)==null?0:H.T){N=Xze(p,V);var X;(X=p.nS)==null||X.resume()}else K$(p),p.videoData.KS&&(N=p.videoData.KS.Qa());H=p.mediaElement.YA();V=!1;H&&H.sE(N)||(uov(p,N),V=!0);g.r(p.playerState,2)||(N=p.EZ,C=C===void 0?!1:C,N.W||!(N.S>0)||N.mediaElement&&N.mediaElement.getCurrentTime()>0||(C={NZ:"seektimeline_resumeTime",h6:C},N.videoData.sY||(C.seekSource=15),N.seekTo(N.S, C)));a:{C=V;if($B(p.videoData)){if(!p.videoData.O8())break a}else if(!g.Jl(p.videoData))break a;if(p.mediaElement)if((N=p.videoData.W)&&p.mediaElement.F6()){H=p.mediaElement.V$();if(p.UO)if(H!==p.UO.element)qT(p);else if(C&&N.flavor==="fairplay"&&!rm())qT(p);else break a;if(p.G("html5_report_error_for_unsupported_tvos_widevine")&&rm()&&N.flavor==="widevine")p.a_("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{p.UO=new SpL(H,p.videoData,p.yn);p.UO.subscribe("licenseerror", p.ZD,p);p.UO.subscribe("qualitychange",p.TyY,p);p.UO.subscribe("heartbeatparams",p.i7,p);p.UO.subscribe("keystatuseschange",p.Ct,p);p.UO.subscribe("ctmp",p.k_,p);p.G("html5_widevine_use_fake_pssh")&&!p.videoData.isLivePlayback&&N.flavor==="widevine"&&p.UO.EA(new QN(ZZ1,"cenc",!1));C=g.F(p.Av.keys);for(N=C.next();!N.done;N=C.next())N=p.Av.get(N.value),p.UO.EA(N);p.G("html5_eme_loader_sync")||p.Av.removeAll()}}else p.a_("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return V}; uov=function(p,C){p.mM.tick("vta");hd("vta",void 0,"video_to_ad");p.getCurrentTime()>0&&hDj(p.EZ,p.getCurrentTime());p.mediaElement.activate(C);p.Hr&&dq(0,4);!p.videoData.sY&&p.playerState.isOrWillBePlaying()&&p.OC.start();if(GbQ(p)){var V;if(C=(V=p.mediaElement)==null?void 0:V.audioTracks())C.onchange=function(){p.publish("internalaudioformatchange",p.videoData,!0)}}}; qT=function(p){p.UO&&(p.UO.dispose(),p.UO=null)}; Udu=function(p){var C=C===void 0?!1:C;p.logger.debug("reattachVideoSource");p.mediaElement&&(p.Hr?(qT(p),OD(p),Xze(p,C)):(p.videoData.KS&&p.videoData.KS.C2(),p.mediaElement.stopVideo()),p.playVideo())}; fRH=function(p,C){p.yn.G("html5_log_rebuffer_reason")&&(C={r:C,lact:bV()},p.mediaElement&&(C.bh=E3(p.mediaElement)),p.k_("bufreason",C))}; Ii=function(p,C,V,N,H,X,d,a,E){var l;if((l=p.videoData.T)==null?0:l.isLive){var t=V.playerType===2?V:C,c=C.videoData.videoId,T=V.videoData.videoId;if(c&&T){l=p.Pc();if(l.qoe){var M=l.qoe,J=C.cpn,S=V.cpn,D=t.videoData.Q$,Z=M.provider.videoData.clientPlaybackNonce,f=M.provider.videoData.videoId,q=S!==Z&&T!==f;Z=J!==Z&&c!==f;M.reportStats();M.adCpn&&M.adCpn!==J||(M.adCpn=Z?J:"",M.a$=Z?c:"",M.adFormat=Z?D:void 0,A6(M,2,d?4:X?2:0,S,T,H),M.reportStats(),M.adCpn=q?S:"",M.a$=q?T:"",M.adFormat=q?D:void 0, A6(M,2,d?5:X?3:1,J,c,N),M.reportStats())}N=C.cpn;if(l.V.has(N)){if(X=l.V.get(N),eP(X,!0).send(),nu(X),N!==l.provider.videoData.clientPlaybackNonce){i$y(X);var A;(A=l.T)==null||Vts(A);l.V.delete(N)}}else l.tp=l.provider.videoData.clientPlaybackNonce,l.tp&&l.T&&(l.V.set(l.tp,l.T),eP(l.T).send(),nu(l.T));A=V.cpn;t=t.videoData;H-=p.SX();if(l.V.has(A)){H=l.V.get(A);var z=H.V&&isNaN(H.W)?RV(H):NaN;H=dT9(H,!1);isNaN(z)||(H.Y=z);H.send()}else H=K5a(l,l.provider,t,H),l.V.set(A,H),h2y(H,new g.Kt(JK(new g.cj, 8),new g.cj)),jia(H),(z=l.T)==null||nu(z);l.tp=A;p.G("html5_unify_csi_server_stitched_transition_logging")?OZL(C.cpn,V.cpn,p.videoData.clientPlaybackNonce,V.videoData,a,void 0,E):(l=p.videoData.clientPlaybackNonce,p=V.videoData,C=(C.cpn===l?"video":"ad")+"_to_"+(V.cpn===l?"video":"ad"),l={},p.Y&&(l.cttAuthInfo={token:p.Y,videoId:p.videoId}),a&&(l.startTime=a),XA(C,l),g.HH({targetVideoId:p.videoId,targetCpn:V.cpn,isSsdai:!0},C),NR("pbs",E!=null?E:(0,g.Ip)(),C))}}}; yDY=function(p,C){if(p.yn.Gk()&&p.mediaElement){var V=p.mediaElement.X0();V.omt=(p.mediaElement.getCurrentTime()+p.yZ()).toFixed(3);V.ps=p.playerState.state.toString(16);V.rt=(g.Zn(p.Pc().provider)*1E3).toFixed();V.e=C;p.Yg[p.M6++%5]=V}try{if(C==="timeupdate"||C==="progress")return}catch(N){}p.logger.debug(function(){return"video element event "+C})}; qR1=function(p){if(p.yn.Gk()){p.Yg.sort(function(N,H){return+N.rt-+H.rt}); for(var C=g.F(p.Yg),V=C.next();!V.done;V=C.next())V=V.value,p.k_("vpe",Object.assign({t:V.rt},V));p.Yg=[];p.M6=0}}; IRj=function(p){if(g.gm("cobalt")&&g.gm("nintendo switch")){var C=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;p.k_("nxdock",{d:C})}}; bZS=function(p,C,V,N,H){p.k_("xvt",{m:C,g:1,tt:V?1:0,np:N?1:0,c:H})}; f$=function(p,C){var V;(V=p.nS)==null||iF(V,C)}; X9=function(p){return g.W5(p.S6,"ad")}; AIX=function(p,C){return g.pf(p.videoData)&&p.Ze?p.Ze.handleError(C,void 0):!1}; eDV=function(p){W7(p.videoData,"html5_set_debugging_opt_in")&&(p=g.$l(),g.LK(0,183)||(Ww(183,!0),p.save()))}; ADu=function(p){return g.pf(p.videoData)&&p.Ze?GG(p.Ze):p.videoData.Sd()}; Rb9=function(p,C){p.lJ.SS()||(p.k_("sgap",{f:C}),p.lJ.clearQueue(!1,C==="pe"))}; Xd=function(p){return p.G("html5_disable_video_player_initiated_seeks")&&$B(p.videoData)}; oXe=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);J_(this.api,"isLifaAdPlaying",function(){return C.api.isLifaAdPlaying()}); this.events.U(p,"serverstitchedvideochange",function(){C.api.isLifaAdPlaying()?(C.playbackRate=C.api.getPlaybackRate(),C.api.setPlaybackRate(1)):C.api.setPlaybackRate(C.playbackRate)}); this.playbackRate=1}; kIY=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);J_(this.api,"seekToChapterWithAnimation",function(V){C.seekToChapterWithAnimation(V)}); J_(this.api,"seekToTimeWithAnimation",function(V,N){C.seekToTimeWithAnimation(V,N)}); J_(this.api,"renderChapterSeekingAnimation",function(V,N,H){C.api.renderChapterSeekingAnimation(V,N,H)}); J_(this.api,"setMacroMarkers",function(V){C.setMacroMarkers(p,V)}); J_(this.api,"changeMarkerVisibility",function(V,N,H){C.changeMarkerVisibility(V,N,H)}); J_(this.api,"isSameMarkerTypeVisible",function(V){return C.isSameMarkerTypeVisible(V)})}; xde=function(p,C,V){var N=p.api.getCurrentTime()*1E30&&H>0&&(V.width+=H,g.K2(C.element,"width",V.width+"px")));p.size=V}}; g.WO=function(p,C){var V=p.T[p.T.length-1];V!==C&&(p.T.push(C),svH(p,V,C))}; g.QX=function(p){if(!(p.T.length<=1)){var C=p.T.pop(),V=p.T[0];p.T=[V];svH(p,C,V,!0)}}; svH=function(p,C,V,N){aiX(p);C&&(C.unsubscribe("size-change",p.Am,p),C.unsubscribe("back",p.Ou,p));V.subscribe("size-change",p.Am,p);V.subscribe("back",p.Ou,p);if(p.C4){g.Ed(V.element,N?"ytp-panel-animate-back":"ytp-panel-animate-forward");V.u_(p.element);V.focus();p.element.scrollLeft=0;p.element.scrollTop=0;var H=p.size;hyQ(p);g.b4(p.element,H);p.W=new g.N8(function(){EaY(p,C,V,N)},20,p); p.W.start()}else V.u_(p.element),C&&C.detach()}; EaY=function(p,C,V,N){p.W.dispose();p.W=null;g.Ed(p.element,"ytp-popup-animating");N?(g.Ed(C.element,"ytp-panel-animate-forward"),g.tk(V.element,"ytp-panel-animate-back")):(g.Ed(C.element,"ytp-panel-animate-back"),g.tk(V.element,"ytp-panel-animate-forward"));g.b4(p.element,p.size);p.D=new g.N8(function(){g.tk(p.element,"ytp-popup-animating");C.detach();g.cF(C.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);p.D.dispose();p.D=null},250,p); p.D.start()}; aiX=function(p){p.W&&g.XV(p.W);p.D&&g.XV(p.D)}; rL=function(p){g.gL.call(this,p,"ytp-shopping-product-menu");this.Zd=new g.$m(this.N);g.R(this,this.Zd);this.hide();g.WO(this,this.Zd);g.LT(this.N,this.element,4)}; tDX=function(p,C,V){var N,H=C==null?void 0:(N=C.text)==null?void 0:N.simpleText;H&&(V=liv(p,V,H,C==null?void 0:C.icon,C==null?void 0:C.secondaryIcon),C.navigationEndpoint&&V.listen("click",function(){p.N.Jk("innertubeCommand",C.navigationEndpoint);p.hide()},p))}; cov=function(p,C,V){var N,H=C==null?void 0:(N=C.text)==null?void 0:N.simpleText;H&&liv(p,V,H,C==null?void 0:C.icon).listen("click",function(){var X;(C==null?void 0:(X=C.icon)==null?void 0:X.iconType)==="HIDE"?p.N.publish("featuredproductdismissed"):C.serviceEndpoint&&p.N.Jk("innertubeCommand",C.serviceEndpoint);p.hide()},p)}; liv=function(p,C,V,N,H){C=new g.Nl(g.H3({},[],!1,!!H),C,V);H&&C.updateValue("secondaryIcon",TRY(H));C.setIcon(TRY(N));g.R(p,C);p.Zd.zB(C,!0);return C}; TRY=function(p){if(!p)return null;switch(p.iconType){case "ACCOUNT_CIRCLE":return{L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{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{L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{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 uW1();case "HIDE":return{L:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"g",j:[{L:"path",X:{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 AO()}}; BO=function(p){PO.call(this,p,!1,!0);this.isCounterfactual=this.C=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Z=!0;this.overflowButton=new g.L({L:"button",i_:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.R(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.L({L:"img",B:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}}); this.thumbnailImage.hide();g.R(this,this.thumbnailImage);this.thumbnailIcon=new g.L({L:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.R(this,this.thumbnailIcon);this.banner=new g.L({L:"a",B:"ytp-suggested-action-container",j:[this.thumbnailImage,this.thumbnailIcon,{L:"div",B:"ytp-suggested-action-details",j:[{L:"text",B:"ytp-suggested-action-title",Ak:"{{title}}"},{L:"text",B:"ytp-suggested-action-subtitle",Ak:"{{subtitle}}"},{L:"text",B:"ytp-suggested-action-metadata-text", Ak:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.R(this,this.banner);this.banner.u_(this.V.element);this.U(this.N,"videodatachange",this.onVideoDataChange);this.U(this.N,g.Ez("suggested_action_view_model"),this.wrx);this.U(this.N,g.lG("suggested_action_view_model"),this.doa);this.U(this.overflowButton.element,"click",this.Lb);this.U(p,"featuredproductdismissed",this.Fj);this.N.createServerVe(this.banner.element,this.banner,!0)}; MDL=function(p){p.isInitialized&&(p.enabled=p.isVisible,p.b_=p.isVisible,et(p),p.hd(),p.thumbnailImage.jb(p.isVisible),p.shouldHideDismissButton||p.dismissButton.jb(p.isVisible),p.shouldShowOverflowButton&&p.overflowButton.jb(p.isVisible))}; GE=function(){BO.apply(this,arguments)}; Joj=function(p){iT.call(this,p);this.T=new GE(this.api);g.R(this,this.T);g.LT(this.api,this.T.element,4)}; pn=function(p){iT.call(this,p);var C=this;this.C="";this.V=!0;this.T=this.api.G("html5_enable_audio_track_stickiness_phase_two");var V=new g.Rr(p);g.R(this,V);V.U(p,"internalaudioformatchange",function(N,H){mbX(C,N,H)}); V.U(p,"videoplayerreset",function(){var N;(C.C||C.T&&((N=PY())==null?0:N.size))&&vaH(C)}); V.U(p,"videodatachange",function(N,H){C.onVideoDataChange(N,H)})}; mbX=function(p,C,V){if(V){var N="";FRs(p,C)&&(N=C,p.T||(p.C=C),p.api.G("html5_sabr_enable_server_xtag_selection")&&(V=p.api.L1()))&&(V.getVideoData().JF=C);p.T&&N&&SaX(p,N)&&KRu(p)!==N&&(DbL([{settingItemId:Cn(p),settingOptionValue:{stringValue:C}}]),Tv(p.xN(),function(H){hI9(H,Cn(p),{stringValue:N})}))}}; vaH=function(p){if(p.T){var C;(C=KRu(p))&&SaX(p,C)&&(p=p.api.L1())&&(p.getVideoData().JF=C)}else if(C=p.api.L1())C.getVideoData().JF=p.C}; upH=function(p){MO(Tv(Tv(p.xN(),function(C){return dMY(C,[Cn(p)])}),function(C){if(C){C=g.F(C); for(var V=C.next();!V.done;V=C.next()){var N=V.value;V=N.key;N=N.value;V&&N&&DbL([{settingItemId:V,settingOptionValue:N}])}}}),function(){p.V=!0})}; FRs=function(p,C){p=p.api.getAvailableAudioTracks();p=g.F(p);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.getLanguageInfo().getId()===C)return V;return null}; KRu=function(p){p=Cn(p);var C=PY();p=C?C.get(p):void 0;return p&&p.stringValue?p.stringValue:""}; Cn=function(p){var C=(484).toString();p.api.K().K$&&(C=(483).toString());return C}; SaX=function(p,C){var V;return C.split(".")[0]!==""&&!((V=p.api.getVideoData())==null?0:ceV(V))}; DbL=function(p){var C=PY();C||(C=new Map);p=g.F(p);for(var V=p.next();!V.done;V=p.next())V=V.value,C.set(V.settingItemId,V.settingOptionValue);C=JSON.stringify(Object.fromEntries(C));g.Yl("yt-player-user-settings",C,2592E3)}; g.jv=function(p,C,V,N,H,X,d){g.Nl.call(this,g.H3({"aria-haspopup":"true"}),C,p);this.xM=N;this.J=!1;this.V=null;this.options={};this.C=new g.$m(V,void 0,p,H,X,d);g.R(this,this.C);this.listen("keydown",this.Nx);this.listen("click",this.open)}; Zve=function(p){if(p.V){var C=p.options[p.V];C.element.getAttribute("aria-checked");C.element.setAttribute("aria-checked","false");p.V=null}}; Uby=function(p,C){g.jv.call(this,"Timer de suspens\u00e3o",g.FB.SLEEP_TIMER,p,C);this.N=p;this.Z={};this.W=this.J7("Off");this.D=this.T="";p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{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.S=new g.L({L:"div",i_:["ytp-menuitem-label-wrapper"],j:[{L:"div",Ak:"Fim do v\u00eddeo"},{L:"div",i_:["ytp-menuitem-sublabel"],Ak:"{{content}}"}]});g.R(this,this.S);this.listen("click",this.onClick);this.U(p,"videodatachange",this.onVideoDataChange);this.U(p,"presentingplayerstatechange",this.Pr);this.U(p,"settingsMenuVisibilityChanged",this.SZY);p.createClientVe(this.element,this,218889);this.Pr();this.N.Jk("onSleepTimerFeatureAvailable")}; fi9=function(p){var C="Off 10 15 20 30 45 60".split(" "),V;((V=p.N.getVideoData())==null?0:V.isLivePlayback)||C.push("End of video");V=p.N.getPlaylist();var N;V&&((N=V.listId)==null?void 0:N.type)!=="RD"&&C.push("End of playlist");p.dh(g.AU(C,p.J7));p.Z=g.tB(C,p.J7,p);C=p.J7("End of video");p.options[C]&&g.V7(p.options[C],p.S)}; OvL=function(p,C){var V=p.Z[C],N=V==="End of video"||V==="End of playlist";V==="Off"&&(p.T="");p.N.getPlayerState()!==0&&p.N.getPlayerState()!==5||!N?(p.W=C,g.jv.prototype.jq.call(p,C),p.kN(C),p.N.Jk("onSleepTimerSettingsChanged",V)):p.N.Jk("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}; V$=function(p){iT.call(this,p);var C=this;p.addEventListener("settingsMenuInitialized",function(){C.menuItem||(C.menuItem=new Uby(C.api,C.api.TA()),g.R(C,C.menuItem))}); p.addEventListener("openSettingsMenuItem",function(V){if(V==="menu_item_sleep_timer"){if(!C.menuItem){var N;(N=C.api.TA())==null||N.er()}C.menuItem.open()}}); J_(p,"resetSleepTimerMenuSettings",function(){C.resetSleepTimerMenuSettings()}); J_(p,"setSleepTimerTimeLeft",function(V){C.setSleepTimerTimeLeft(V)}); J_(p,"setVideoTimeLeft",function(V){C.setVideoTimeLeft(V)})}; yoY=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"onSnackbarMessage",function(V){switch(V){case 1:V=C.api.getPlayerStateObject(),V.isBuffering()&&g.r(V,8)&&g.r(V,16)&&C.api.Jk("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Enfrentando interrup\u00e7\u00f5es?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Descubra por qu\u00ea"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; g.Hx=function(p,C,V,N,H){C=C===void 0?!1:C;N=N===void 0?!1:N;H=H===void 0?!1:H;g.ca.call(this);this.Z=H;this.D=!1;this.S=new I_(this);this.W=this.Y=null;this.V=this.C=!1;g.R(this,this.S);this.target=p;this.T=C;this.J=V||p;this.D=N;C&&(g.Nq&&this.target.setAttribute("draggable","true"),H||(this.target.style.touchAction="none"));NA(this)}; Xk=function(p){g.Am(p.S,!p.T)}; NA=function(p){p.W=null;p.Y=null;p.U(dM("over"),p.qQ);p.U("touchstart",p.QM);p.T&&p.U(dM("down"),p.TV$)}; qaa=function(p,C){for(var V=0;VX.start&&N>=5;D+=q}S=D.substr(0,4)+" "+D.substr(4,4)+" "+D.substr(8,4)+" "+(D.substr(12,4)+" "+D.substr(16,4))}else S="";E={video_id_and_cpn:String(V.videoId)+" / "+S,codecs:"",dims_and_frames:"",bandwidth_kbps:E.toFixed(0)+" Kbps",buffer_health_seconds:t.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:T?"":"display:none",drm:T,debug_info:N,extra_debug_info:"",bandwidth_style:J,network_activity_style:J,network_activity_bytes:l.toFixed(0)+" KB",shader_info:M,shader_info_style:M?"":"display:none", playback_categories:""};l=H.clientWidth+"x"+H.clientHeight+(X>1?"*"+X.toFixed(2):"");t="-";d.totalVideoFrames&&(t=(d.droppedVideoFrames||0)+" dropped of "+d.totalVideoFrames);E.dims_and_frames=l+" / "+t;p=p.getVolume();d=tov(V);var z;l=((z=V.S)==null?0:z.audio.T)?"DRC":Math.round(p*d)+"%";z=Math.round(p)+"% / "+l;p=V.Gp.toFixed(1);isFinite(Number(p))&&(z+=" (content loudness "+p+"dB)");E.volume=z;E.resolution=H.videoWidth+"x"+H.videoHeight;if(H=V.C){if(z=H.video)p=z.fps,p>1&&(E.resolution+="@"+p), (p=g.Z_(C))&&p.video&&(E.resolution+=" / "+p.video.width+"x"+p.video.height,p.video.fps>1&&(E.resolution+="@"+p.video.fps)),E.codecs=k8s(H),!V.S||H.audio&&H.video?H.UL&&(E.codecs+=" / "+H.UL+"A"):E.codecs+=" / "+k8s(V.S),z.C||z.primaries?(p=z.C||"unknown",p==="smpte2084"?p+=" (PQ)":p==="arib-std-b67"&&(p+=" (HLG)"),E.color=p+" / "+(z.primaries||"unknown"),E.color_style=""):E.color_style="display:none";if(H.debugInfo)for(E.fmt_debug_info="",H=g.F(H.debugInfo),z=H.next();!z.done;z=H.next())z=z.value, E.fmt_debug_info+=z.label+":"+z.text+" ";E.fmt_debug_info_style=E.fmt_debug_info&&E.fmt_debug_info.length>0?"":"display:none"}H=V.isLivePlayback;z=V.EO;E.live_mode_style=H||z?"":"display:none";E.live_latency_style=H?"":"display:none";if(z)E.live_mode="Post-Live"+(Ge(V)?" Manifestless":"");else if(H){z=lY(a,"livelatency");E.live_latency_secs=z.toFixed(2)+"s";H=Ge(V)?"Manifestless, ":"";V.Wr&&(H+="Windowed, ");p="Uncertain";if(z>=0&&z<120)if(V.latencyClass&&V.latencyClass!=="UNKNOWN")switch(V.latencyClass){case "NORMAL":p= "Optimized for Normal Latency";break;case "LOW":p="Optimized for Low Latency";break;case "ULTRALOW":p="Optimized for Ultra Low Latency";break;default:p="Unknown Latency Setting"}else p=V.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";H+=p;(z=C.getPlaylistSequenceForTime(C.getCurrentTime()))&&(H+=", seq "+z.sequence);E.live_mode=H}!C.isGapless()||id(V)&&C.SS()||(E.playback_categories+="Gapless ");E.playback_categories_style=E.playback_categories?"":"display:none"; E.bandwidth_samples=ED(a,"bandwidth");E.network_activity_samples=ED(a,"networkactivity");E.live_latency_samples=ED(a,"livelatency");E.buffer_health_samples=ED(a,"bufferhealth");C=g.s5(V);if(V.cotn||C)E.cotn_and_local_media=(V.cotn?V.cotn:"null")+" / "+C;E.cotn_and_local_media_style=E.cotn_and_local_media?"":"display:none";W7(V,"web_player_release_debug")?(E.release_name="youtube.player.web_20241215_00_RC00",E.release_style=""):E.release_style="display:none";E.debug_info&&c.length>0&&E.debug_info.length+ c.length<=60?E.debug_info+=" "+c:E.extra_debug_info=c;E.extra_debug_info_style=E.extra_debug_info&&E.extra_debug_info.length>0?"":"display:none";return E}; k8s=function(p){var C=/codecs="([^"]*)"/.exec(p.mimeType);return C&&C[1]?C[1]+" ("+p.itag+")":p.itag}; tr=function(p,C,V,N,H){g.L.call(this,{L:"div",B:"ytp-horizonchart"});this.D=C;this.sampleCount=V;this.S=N;this.W=H;this.index=0;this.heightPx=-1;this.V=this.C=null;this.T=Math.round(p/V);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.D+"em"}; cx=function(p,C){if(p.heightPx===-1){var V=null;try{V=g.iK("CANVAS"),p.C=V.getContext("2d")}catch(a){}if(p.C){var N=p.T*p.sampleCount;p.V=V;p.V.width=N;p.V.style.width=N+"px";p.element.appendChild(p.V)}else for(p.sampleCount=Math.floor(p.sampleCount/4),p.T*=4,V=0;V1?2:1,p.V.height=p.heightPx*V,p.V.style.height= p.heightPx+"px",p.C.scale(1,V)));C=g.F(C);for(N=C.next();!N.done;N=C.next()){V=p;var H=p.index,X=N.value;for(N=0;N+20&&g.aN(C.V.element);N.classList.add("ytp-timely-actions-overlay");C.V.element.appendChild(N)}); g.R(this,this.V);g.LT(this.api,this.V.element,4)}; BRs=function(p){p.timelyActions&&(p.S=p.timelyActions.reduce(function(C,V){if(V.cueRangeId===void 0)return C;C[V.cueRangeId]=0;return C},{}))}; mY=function(p,C){if(p.timelyActions){p=g.F(p.timelyActions);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.cueRangeId===C)return V}}; G8e=function(p,C){if((p=mY(p,C))&&p.onCueRangeExit)return Lm(p.onCueRangeExit)}; pNY=function(p){if(p.T!==void 0){var C=(C=mY(p,p.T))&&C.onCueRangeEnter?Lm(C.onCueRangeEnter):void 0;var V=mY(p,p.T);if(V&&V.additionalTrigger){var N=!1;for(var H=g.F(V.additionalTrigger),X=H.next();!X.done;X=H.next())X=X.value,X.type&&X.args&&p.Y[X.type]!==void 0&&(N=N||p.Y[X.type](X.args))}else N=!0;C&&N&&(p.api.Jk("innertubeCommand",C),p.setTimeout(V),p.S[p.T]!==void 0&&p.S[p.T]++)}}; WR9=function(p,C){return p.C===void 0?!1:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(C.seekLengthMilliseconds)===5E3?p.C===72:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(C.seekLengthMilliseconds)===1E4?p.C===74:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(C.seekLengthMilliseconds)===5E3?p.C===71:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(C.seekLengthMilliseconds)===1E4?p.C===73:!1}; QvQ=function(p){if(p=p.getWatchNextResponse()){var C,V;p=(C=p.playerOverlays)==null?void 0:(V=C.playerOverlayRenderer)==null?void 0:V.timelyActionsOverlayViewModel;C=g.n(p,CjH);if(C!=null&&C.timelyActions)return C==null?void 0:C.timelyActions.map(function(N){return g.n(N,jCe)}).filter(function(N){return!!N})}}; VM9=function(p){iT.call(this,p);var C=this;mj(this.api,"getPlaybackRate",function(){return C.api.getPlaybackRate()}); mj(this.api,"setPlaybackRate",function(V){typeof V==="number"&&C.api.setPlaybackRate(V)})}; NJQ=function(p){p=p.i9();if(!p)return!1;p=g.sk(p).exp||"";return p.includes("xpv")||p.includes("xpe")}; H7L=function(p){p=g.F(g.vx(p,!0));for(var C=p.next();!C.done;C=p.next())if(NJQ(C.value))return!0;return!1}; XNQ=function(p,C){p=g.F(g.vx(p,!0));for(var V=p.next();!V.done;V=p.next())if(V=V.value,NJQ(V)){var N={potc:"1",pot:C};V.url&&(V.url=aK(V.url,N))}}; dSY=function(p){var C=!1;p.Iw(150);p.gq().finally(function(){C=!0}); return{isReady:function(){return C}, BS:function(V){return p.BS({P$:V.P$,F9:!0,qJ:!0,Yq:V.Yq?{pA:V.Yq.pA,q2:V.Yq.q2,Xz:V.Yq.Xz}:void 0})}, ready:function(){return g.I(function(V){if(V.C==1)return g.vv(V,2),g.y(V,p.gq(),4);if(V.C!=2)return g.Fe(V,0);g.Sa(V);g.JQ(V)})}, start:function(){}}}; i7u=function(p){var C=new sNv,V={},N=(V["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",V);return new A$(C,p,function(){return N})}; Sv=function(p){iT.call(this,p);var C=this;this.useLivingRoomPoToken=!1;this.S=new g.Zt;this.mM=null;this.Y=!1;this.C=null;this.V=!1;var V=p.K().getWebPlayerContextConfig();this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"spsumpreject",function(N,H,X){C.V=H;N&&C.Y&&!C.C&&(C.G("html5_generate_content_po_token")&&X?C.Cn(X):C.G("html5_generate_session_po_token")&&h19(C));C.C||C.api.k_("stp",{s:+C.Y,b:+C.V})}); this.events.U(p,"poTokenVideoBindingChange",function(N){C.Cn(N)}); this.useLivingRoomPoToken=!(V==null||!V.useLivingRoomPoToken);p.addEventListener("csiinitialized",function(){C.mM=p.W6();var N=(C.G("html5_generate_session_po_token")||C.G("html5_generate_content_po_token"))&&!C.useLivingRoomPoToken;try{if(C.G("html5_use_shared_owl_instance"))sCe(C);else if(N){C.mM.Cd("pot_isc");C.G("html5_new_wpo_client")||aNv(C);var H=g.mi(C.api.K().experiments,"html5_webpo_kaios_defer_timeout_ms");H?g.F5(function(){Fk(C)},H):C.G("html5_webpo_idle_priority_job")?g.Vl(g.HW(),function(){Fk(C)}): Fk(C)}}catch(X){X instanceof Error&&g.eG(X)}}); p.addEventListener("trackListLoaded",this.m$.bind(this));p.vN(this)}; EfS=function(p){var C=Wb(p.experiments,"html5_web_po_request_key");return C?C:g.bH(p)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; lN9=function(p){var C=new Xf(p);return Object.assign({},dSY(C),{fS:function(){return C.fS()}, dispose:function(){return void C.dispose()}})}; Kn=function(p,C){if(p.G("html5_webpo_bge_ctmp")){var V,N={hwpo:!!p.T,hwpor:!((V=p.T)==null||!V.isReady())};p.api.k_(C,N)}}; sCe=function(p){var C,V;g.I(function(N){if(N.C==1)return Kn(p,"swpo_i"),p.D=D$1(),DT(p),g.y(N,zo(),2);if(N.C!=3)return C=N.T,Kn(p,"swpo_co"),g.y(N,Xss(C),3);V=N.T;p.T=dSY(V);Kn(p,"swpo_cc");p.T.ready().then(function(){p.S.resolve();Kn(p,"swpo_re")}); g.F5(function(){Fk(p);Kn(p,"swpo_si")},0); g.JQ(N)})}; aNv=function(p){var C=p.api.K(),V=EfS(C),N=i7u(V);C=new XL({I1:V,qB:N,onEvent:function(H){(H=tMe[H])&&p.mM.Cd(H)}, onError:g.eG,Fn:vry(C.experiments),Ro:function(){return void p.api.k_("itr",{})}, P9a:C.experiments.OY("html5_web_po_disable_remote_logging")});C.ready().then(function(){return void p.S.resolve()}); g.R(p,C);p.T=C}; cXu=function(p){var C=p.api.K(),V=i7u(EfS(C)),N=V.dK.bind(V);V.dK=function(a){var E;return g.I(function(l){if(l.C==1)return g.y(l,N(a),2);E=l.T;p.api.k_("itr",{});return l.return(E)})}; try{var H=new zq({qB:V,qm:{maxAttempts:5},OW:{disable:C.experiments.OY("html5_web_po_disable_remote_logging"),r0:vry(C.experiments),Ma:p.G("wpo_dis_lfdms")?0:1E3},o_$:g.eG});var X=lN9({w7:H,qB:V,onError:g.eG});X.ready().then(function(){return void p.S.resolve()}); g.R(p,H);g.R(p,X);p.T=X}catch(a){g.eG(a);var d;(d=H)==null||d.dispose()}}; Fk=function(p){var C=p.api.K();p.mM.Cd("pot_ist");p.T?p.T.start():p.G("html5_new_wpo_client")&&cXu(p);p.G("html5_bandaid_attach_content_po_token")||(DT(p),h19(p),C=g.mi(C.experiments,"html5_session_po_token_interval_time_ms")||0,C>0&&(p.W=g.Se(function(){DT(p)},C)),p.Y=!0)}; DT=function(p){var C,V,N,H;g.I(function(X){if(!p.G("html5_generate_session_po_token")||p.useLivingRoomPoToken)return X.return();C=p.api.K();V=g.pO("EOM_VISITOR_DATA")||g.pO("VISITOR_DATA");N=C.K$?C.datasyncId:V;H=Wb(C.experiments,"html5_mock_content_binding_for_session_token")||C.livingRoomPoTokenId||N;C.XT=ui(p,H);g.JQ(X)})}; ui=function(p,C){if(!p.T)return p.D?p.D(C):"";try{var V=p.T.isReady();p.mM.Cd(V?"pot_cms":"pot_csms");var N="";N=p.G("html5_web_po_token_disable_caching")?p.T.BS({P$:C}):p.T.BS({P$:C,Yq:{pA:C,le:150,q2:!0,Xz:!0}});p.mM.Cd(V?"pot_cmf":"pot_csmf");if(V){var H;(H=p.C)==null||H.resolve();p.C=null;if(p.V){p.V=!1;var X,d=(X=g.O5(p.api.app))==null?void 0:X.nS;d&&Y4u(d,!1)}}return N}catch(a){return g.eG(a),""}}; h19=function(p){p.T&&(p.C=new hK,p.T.ready().then(function(){p.mM.Cd("pot_if");DT(p)}))}; TJV=function(p){iT.call(this,p);var C=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"heartbeatRequest",function(V){if(C.freePreviewUsageDetails.length||C.freePreviewWatchedDuration!==null)V.heartbeatRequestParams||(V.heartbeatRequestParams={}),V.heartbeatRequestParams.unpluggedParams||(V.heartbeatRequestParams.unpluggedParams={}),C.freePreviewUsageDetails.length>0?V.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= C.freePreviewUsageDetails:V.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+C.freePreviewWatchedDuration}}); J_(p,"setFreePreviewWatchedDuration",function(V){C.freePreviewWatchedDuration=V}); J_(p,"setFreePreviewUsageDetails",function(V){C.freePreviewUsageDetails=V})}; ZT=function(p){g.Y.call(this);this.features=[];var C=this.T,V=new bpX(p),N=new hh(p),H=new km(p),X=new Sv(p);var d=g.qz(p.K())?void 0:new OO(p);var a=new oi(p),E=new RyQ(p),l=new VM9(p),t=new o8(p);var c=g.qz(p.K())?new TJV(p):void 0;var T=p.G("html5_enable_ssap")?new oaY(p):void 0;var M=p.G("web_cinematic_watch_settings")&&(M=p.K().getWebPlayerContextConfig())!=null&&M.cinematicSettingsAvailable?new DM(p):void 0;var J=new Ah(p);var S=p.G("enable_courses_player_overlay_purchase")?new ZpY(p):void 0; var D=g.wG(p.K())?new S9V(p):void 0;var Z=new y7(p);var f=p.K().S?new cWL(p):void 0;var q=g.KI(p.K())?new t5s(p):void 0;var A=p.G("web_player_move_autonav_toggle")&&p.K().kt?new dtj(p):void 0;var z=g.wG(p.K())?new kIY(p):void 0;var Q=p.G("web_enable_speedmaster")&&g.wG(p.K())?new sC(p):void 0;var P=p.K().tB?void 0:new gaH(p);var VL=p.G("report_pml_debug_signal")?new V5e(p):void 0;var au=new Qes(p),W=new Ri(p);var e=p.G("enable_web_player_player_in_bar_feature")&&g.gk(p.K())?new X$H(p):void 0;var B= p.K().playerStyle==="flix"?new f0X(p):void 0;var v=navigator.mediaSession&&window.MediaMetadata&&p.K().Y9?new bY(p):void 0;var w=p.G("html5_enable_drc")&&!p.K().Y?new fc(p):void 0;var C0=new a8(p),FG;a:{var Nc=p.K();if(Nc.Y&&(Nc=(FG=Nc.getWebPlayerContextConfig())==null?void 0:FG.houseBrandEnvironment,Nc==="apps-elements"||Nc==="apps-elements-flix")){FG=new UtX(p);break a}FG=void 0}Nc=g.wG(p.K())?new Joj(p):void 0;var OS=p.G("html5_enable_d6de4")?new xm(p):void 0;var V8=g.wG(p.K())&&p.G("web_sleep_timer")? new V$(p):void 0;var Tp=g.KI(p.K())?new M5s(p):void 0;var Bv=new pn(p),u=new uT(p),U=new oXe(p);var O=p.K().Y?new I0a(p):void 0;var b=p.G("enable_sabr_snackbar_message")?new yoY(p):void 0;var x=p.G("web_enable_timely_actions")?new ro1(p):void 0;C.call(this,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au,W,e,B,v,w,C0,FG,Nc,OS,V8,Tp,void 0,Bv,u,U,O,b,x,new ZM(p))}; UC=function(){this.C=this.T=NaN}; MM1=function(p,C){this.yn=p;this.timerName="";this.V=!1;this.C=NaN;this.S=new UC;this.T=C||null;this.V=!1}; JXy=function(p,C,V){var N=g.Oe(C.I$)&&!C.I$.Y;if(C.I$.Of&&(uL(C.I$)||C.I$.Wr==="shortspage"||rG(C.I$)||N)&&!p.V){p.V=!0;p.Y=C.clientPlaybackNonce;g.pO("TIMING_ACTION")||GH("TIMING_ACTION",p.yn.csiPageType);p.yn.csiServiceName&&GH("CSI_SERVICE_NAME",p.yn.csiServiceName);if(p.T){N=p.T.W6();for(var H=g.F(Object.keys(N)),X=H.next();!X.done;X=H.next())X=X.value,NR(X,N[X],p.timerName);N=g.NU(ntH)(p.T.WJ);g.HH(N,p.timerName);N=p.T;N.C={};N.WJ={}}g.HH({playerInfo:{visibilityState:g.NU(RVy)()},playerType:"LATENCY_PLAYER_HTML5"}, p.timerName);p.W!==C.clientPlaybackNonce||Number.isNaN(p.C)||(dc("_start",p.timerName)?V=g.NU(G0)("_start",p.timerName)+p.C:g.eG(new g.Bw("attempted to log gapless pbs before CSI timeline started",{cpn:C.clientPlaybackNonce})));V&&!dc("pbs",p.timerName)&&p.tick("pbs",V)}}; OZL=function(p,C,V,N,H,X,d){p=(p===V?"video":"ad")+"_to_"+(C===V?"video":"ad");if(p!=="video_to_ad"||X!=null&&X.sY){X=p==="ad_to_video"?X:N;V=X==null?void 0:X.LC;var a={};if(N==null?0:N.Y)a.cttAuthInfo={token:N.Y,videoId:N.videoId};H&&(a.startTime=H);XA(p,a);var E,l,t;N={targetVideoId:(E=N==null?void 0:N.videoId)!=null?E:"empty_video",targetCpn:C,adVideoId:(l=X==null?void 0:X.videoId)!=null?l:"empty_video",adClientPlaybackNonce:(t=V==null?void 0:V.cpn)!=null?t:X==null?void 0:X.clientPlaybackNonce}; V&&(N.adBreakType=V.adBreakType,N.adType=V.adType);g.HH(N,p);NR("pbs",d!=null?d:(0,g.Ip)(),p)}}; fn=function(p){Bq1();r11();p.timerName=""}; mSs=function(p){if(p.T){var C=p.T;C.C={};C.WJ={}}p.V=!1;p.W=void 0;p.C=NaN}; vfY=function(p,C){g.ca.call(this);this.I$=p;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.C=0;if(p=C.session_data)this.sessionData=X5(p,"&");this.index=Math.max(0,Number(C.index)||0);this.loop=!!C.loop;this.startSeconds=Number(C.startSeconds)||0;this.title=C.playlist_title||"";this.description=C.playlist_description||"";this.author= C.author||C.playlist_author||"";C.video_id&&(this.items[this.index]=C);if(p=C.api)typeof p==="string"&&p.length===16?C.list="PL"+p:C.playlist=p;if(p=C.list)switch(C.listType){case "user_uploads":this.listId=new Te("UU","PLAYER_"+p);break;default:var V=C.playlist_length;V&&(this.length=Number(V)||0);this.listId=g.MF(p);if(p=C.video)this.items=p.slice(0),this.loaded=!0}else if(C.playlist){p=C.playlist.toString().split(",");this.index>0&&(this.items=[]);p=g.F(p);for(V=p.next();!V.done;V=p.next())(V= V.value)&&this.items.push({video_id:V});this.length=this.items.length;if(p=C.video)this.items=p.slice(0),this.loaded=!0}this.setShuffle(!!C.shuffle);if(p=C.suggestedQuality)this.quality=p;this.Z=Ej(C,"playlist_");this.V=(C=C.thumbnail_ids)?C.split(","):[]}; FPv=function(p){return!!(p.playlist||p.list||p.api)}; StX=function(p){var C=p.index+1;return C>=p.length?0:C}; KPS=function(p){var C=p.index-1;return C<0?p.length-1:C}; g.OC=function(p,C,V,N){C=C!==void 0?C:p.index;C=p.items&&C in p.items?p.items[p.order[C]]:null;var H=null;C&&(V&&(C.autoplay="1"),N&&(C.autonav="1"),H=new g.YB(p.I$,C),g.R(p,H),H.Kp=!0,H.startSeconds=p.startSeconds||H.clipStart||0,p.listId&&(H.playlistId=p.listId.toString()));return H}; DSs=function(p,C){p.index=g.J9(C,0,p.length-1);p.startSeconds=0}; uR1=function(p,C){if(C.video&&C.video.length){p.title=C.title||"";p.description=C.description;p.views=C.views;p.likes=C.likes;p.dislikes=C.dislikes;p.author=C.author||"";var V=C.loop;V&&(p.loop=V);V=g.OC(p);p.items=[];for(var N=g.F(C.video),H=N.next();!H.done;H=N.next())if(H=H.value)H.video_id=H.encrypted_id,p.items.push(H);p.length=p.items.length;(C=C.index)?p.index=C:p.findIndex(V);p.setShuffle(!1);p.loaded=!0;p.C++;p.T&&p.T()}}; fNH=function(p,C){var V,N,H,X,d,a,E;return g.I(function(l){if(l.C==1){V=g.KU();var t=p.K(),c={context:g.TC(p),playbackContext:{contentPlaybackContext:{ancestorOrigins:t.ancestorOrigins}}},T=t.getWebPlayerContextConfig();if(T==null?0:T.encryptedHostFlags)c.playbackContext.contentPlaybackContext.encryptedHostFlags=T.encryptedHostFlags;if(T==null?0:T.hideInfo)c.playerParams={showinfo:!1};t=t.embedConfig;T=C.docid||C.video_id||C.videoId||C.id;if(!T){T=C.raw_embedded_player_response;if(!T){var M=C.embedded_player_response; M&&(T=JSON.parse(M))}if(T){var J,S,D,Z,f,q;T=((q=g.n((J=T)==null?void 0:(S=J.embedPreview)==null?void 0:(D=S.thumbnailPreviewRenderer)==null?void 0:(Z=D.playButton)==null?void 0:(f=Z.buttonRenderer)==null?void 0:f.navigationEndpoint,g.VB))==null?void 0:q.videoId)||null}else T=null}J=(J=T)?J:void 0;S=p.playlistId?p.playlistId:C.list;D=C.listType;if(S){var A;D==="user_uploads"?A={username:S}:A={playlistId:S};Z7a(t,J,C,A);c.playlistRequest=A}else C.playlist?(A={templistVideoIds:C.playlist.toString().split(",")}, Z7a(t,J,C,A),c.playlistRequest=A):J&&(A={videoId:J},t&&(A.serializedThirdPartyEmbedConfig=t),c.singleVideoRequest=A);N=c;H=g.On(USe);g.vv(l,2);return g.y(l,g.E0(V,N,H),4)}if(l.C!=2)return X=l.T,d=p.K(),C.raw_embedded_player_response=X,d.Sa=tm(C,g.KI(d)),d.V=d.Sa==="EMBEDDED_PLAYER_MODE_PFL",X&&(a=X,a.trackingParams&&Oi(a.trackingParams)),l.return(new g.YB(d,C));E=g.Sa(l);E instanceof Error||(E=Error("b259802748"));g.nm(E);return l.return(p)})}; Z7a=function(p,C,V,N){V.index&&(N.playlistIndex=String(Number(V.index)+1));N.videoId=C?C:"";p&&(N.serializedThirdPartyEmbedConfig=p)}; g.qA=function(p,C){y$.get(p);y$.set(p,C)}; g.IT=function(p){g.ca.call(this);this.loaded=!1;this.player=p}; O7j=function(){this.C=[];this.T=[]}; g.vx=function(p,C){return C?p.T.concat(p.C):p.T}; g.bi=function(p,C){switch(C.kind){case "asr":yXX(C,p.C);break;default:yXX(C,p.T)}}; yXX=function(p,C){g.L0(C,function(V){return p.sE(V)})||C.push(p)}; g.Ar=function(p){g.Y.call(this);this.ea=p;this.T=new O7j;this.S=null;this.W=[];this.J=[]}; g.oT=function(p,C,V){g.Ar.call(this,p);this.videoData=C;this.audioTrack=V;this.C=null;this.V=!1;this.W=C.AI;this.J=C.z2;this.V=g.jQ(C)}; g.kW=function(p,C){return Xz(p.info.mimeType)?C?p.info.itag===C:!0:!1}; g.qtV=function(p,C){if(p.T!=null&&g.qz(C.K())&&!p.T.isManifestless&&p.T.T.rawcc!=null)return!0;if(!p.p4())return!1;C=!!p.T&&p.T.isManifestless&&Object.values(p.T.T).some(function(V){return g.kW(V,"386")}); p=!!p.T&&!p.T.isManifestless&&g.yVY(p.T);return C||p}; g.xW=function(p,C,V,N,H,X){g.Ar.call(this,p);this.videoId=V;this.Ue=H;this.eventId=X;this.Y={};this.C=null;p=N||g.sk(C).hl||"";p=p.split("_").join("-");this.V=aK(C,{hl:p})}; INy=function(p,C){this.C=p;this.T=C;this.onFailure=void 0}; b7s=function(p,C){return{FL:p.FL&&C.FL,TN:p.TN&&C.TN,sync:p.sync&&C.sync,streaming:p.streaming&&C.streaming}}; zb=function(p,C){var V=AX9,N=this;this.path=p;this.V=C;this.S=V;this.capabilities={FL:!!this.V,TN:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.W=new INy([{name:"compileStreaming",condition:function(H){return!!N.C&&H.streaming}, oX:function(){return WebAssembly.compileStreaming(fetch(N.path))}, onFailure:function(){return N.capabilities.streaming=!1}}, {name:"sync",condition:function(H){return H.sync}, oX:function(){return Tv(ofy(N),YW.Sm("wmcs",function(H){return new WebAssembly.Module(H)}))}, onFailure:function(){return N.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, oX:function(){return Tv(ofy(N),YW.Sm("wmca",function(H){return WebAssembly.compile(H)}))}, onFailure:function(){return N.capabilities.TN=!1}}]); this.Y=new INy([{name:"instantiateStreaming",condition:function(H){return H.TN&&H.streaming&&!N.C&&!N.T}, oX:function(H,X){return YW.zz("wmix",function(){return WebAssembly.instantiateStreaming(fetch(N.path),X)}).then(function(d){N.T=Ei(d.module); return{instance:d.instance,XA:!1}})}, onFailure:function(){return N.capabilities.streaming=!1}}, {name:"sync",condition:function(H){return H.TN&&H.sync}, oX:function(H,X){return Tv(kRy(N,H),YW.Sm("wmis",function(d){return{instance:new WebAssembly.Instance(d,X),XA:!1}}))}, onFailure:function(){return N.capabilities.sync=!1}}, {name:"async",condition:function(H){return H.TN}, oX:function(H,X){return Tv(Tv(kRy(N,H),YW.Sm("wmia",function(d){return WebAssembly.instantiate(d,X)})),function(d){return{instance:d, XA:!1}})}, onFailure:function(){return N.capabilities.TN=!1}}, {name:"asmjs",condition:function(H){return H.FL}, oX:function(H,X){return Ei(YW.zz("wmij",function(){return N.V(X)}).then(function(d){return{instance:{exports:d}, XA:!0}}))}, onFailure:function(){return N.capabilities.FL=!1}}],function(H,X,d){return N.S(d,H.instance.exports)})}; z1Y=function(p){var C=xSa;return C.instantiate(p?b7s(C.capabilities,p):C.capabilities,new Yt1)}; ofy=function(p){if(p.C)return p.C;var C=fetch(p.path).then(function(V){return V.arrayBuffer()}).then(function(V){p.C=Ei(V); return V}).then(void 0,function(V){g.eG(Error("wasm module fetch failure: "+V.message,{cause:V})); p.C=void 0;throw V;}); p.C=Ei(C);return p.C}; kRy=function(p,C){if(!C.TN)return lt(Error("wasm unavailable"));if(p.T)return p.T;p.T=MO(Tv(p.compile(C),function(V){p.T=Ei(V);return V}),function(V){g.eG(Error("wasm module compile failure: "+V.message,{cause:V})); p.T=void 0;throw V;}); return p.T}; R1v=function(){}; nf9=function(){var p=this;this.proc_exit=function(){}; this.fd_write=function(C,V,N){if(!p.exports)return 1;C=new Uint32Array(p.exports.memory.buffer,V,N*2);V=[];for(var H=0;H=11;p=p.api.K().J&&Q$;return!(!C&&!p)}; Xo=function(p,C){return!p.api.isInline()&&!u7Y(p,yc(C))&&g.o0(C)}; DE9=function(p){p.YB.Pm();if(p.t3&&p.xe)p.xe=!1;else if(!p.api.K().Ga&&!p.A6()){var C=p.api.getPlayerStateObject();g.r(C,2)&&g.Yj(p.api)||p.R1(C);!p.api.K().Hc||C.isCued()||g.r(C,1024)?p.u6():p.Ys.isActive()?(p.cG(),p.Ys.stop()):p.Ys.start()}}; UES=function(p,C){var V;if((V=p.api.getVideoData())==null?0:V.mutedAutoplay){var N,H;if((N=C.target)==null?0:(H=N.className)==null?0:H.includes("ytp-info-panel"))return!1}return g.o0(C)&&p.api.isMutedByMutedAutoplay()?(p.api.unMute(),p.api.getPresentingPlayerType()===2&&p.api.playVideo(),C=p.api.getPlayerStateObject(),!g.r(C,4)||g.r(C,8)||g.r(C,2)||p.u6(),!0):!1}; fOH=function(p,C,V){p.api.isFullscreen()?V<1-C&&p.api.toggleFullscreen():V>1+C&&p.api.toggleFullscreen()}; KfX=function(p){var C=Wd()&&LO()>=67&&!p.api.K().J;p=p.api.K().disableOrganicUi;return!g.gm("tizen")&&!rB&&!C&&!p}; du=function(p,C){C=C===void 0?2:C;g.ca.call(this);this.api=p;this.T=null;this.qZ=new I_(this);g.R(this,this.qZ);this.C=i3v;this.qZ.U(this.api,"presentingplayerstatechange",this.YS);this.T=this.qZ.U(this.api,"progresssync",this.m6);this.TR=C;this.TR===1&&this.m6()}; g.iW=function(p){g.L.call(this,{L:"div",j:[{L:"div",B:"ytp-bezel-text-wrapper",j:[{L:"div",B:"ytp-bezel-text",Ak:"{{title}}"}]},{L:"div",B:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},j:[{L:"div",B:"ytp-bezel-icon",Ak:"{{icon}}"}]}]});this.N=p;this.C=new g.N8(this.show,10,this);this.T=new g.N8(this.hide,500,this);g.R(this,this.C);g.R(this,this.T);this.hide()}; sR=function(p,C,V){if(C<=0){V=zB();C="som desativado";var N=0}else V=V?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{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"}}]}:{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{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"}}]},N=Math.floor(C),C=N+"volume";hD(p,V,C,N+"%")}; OD9=function(p,C){C=C?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{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"}}]}:D5a();var V=p.N.getPlaybackRate(),N=g.Ks("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(V)});hD(p,C,N,V+"x")}; yFv=function(p,C){C=C?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";hD(p,sZ9(),C)}; hD=function(p,C,V,N){N=N===void 0?"":N;p.updateValue("label",V===void 0?"":V);p.updateValue("icon",C);g.d0(p.T);p.C.start();p.updateValue("title",N);g.Tz(p.element,"ytp-bezel-text-hide",!N)}; qmL=function(p,C){g.L.call(this,{L:"button",i_:["ytp-button","ytp-cards-button"],X:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"span",B:"ytp-cards-button-icon-default",j:[{L:"div",B:"ytp-cards-button-icon",j:[p.K().G("player_new_info_card_format")?U5v():{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{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"}}]}]}, {L:"div",B:"ytp-cards-button-title",Ak:"Informa\u00e7\u00f5es"}]},{L:"span",B:"ytp-cards-button-icon-shopping",j:[{L:"div",B:"ytp-cards-button-icon",j:[{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",B:"ytp-svg-shadow",X:{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"}},{L:"path",B:"ytp-svg-fill",X:{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"}},{L:"path",B:"ytp-svg-shadow-fill",X:{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"}}]}]},{L:"div", B:"ytp-cards-button-title",Ak:"Compras"}]}]});this.N=p;this.V=C;this.T=null;this.C=new g.a0(this,250,!0,100);g.R(this,this.C);g.Tz(this.V,"ytp-show-cards-title",g.KI(p.K()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.MaY);this.e3(!0)}; IOS=function(p,C){g.L.call(this,{L:"div",B:"ytp-cards-teaser",j:[{L:"div",B:"ytp-cards-teaser-box"},{L:"div",B:"ytp-cards-teaser-text",j:p.K().G("player_new_info_card_format")?[{L:"button",B:"ytp-cards-teaser-info-icon",X:{"aria-label":"Exibir cards","aria-haspopup":"true"},j:[U5v()]},{L:"span",B:"ytp-cards-teaser-label",Ak:"{{text}}"},{L:"button",B:"ytp-cards-teaser-close-button",X:{"aria-label":"Fechar"},j:[g.yD()]}]:[{L:"span",B:"ytp-cards-teaser-label",Ak:"{{text}}"}]}]});var V=this;this.N=p; this.Mn=C;this.S=new g.a0(this,250,!1,250);this.T=null;this.J=new g.N8(this.Vb$,300,this);this.D=new g.N8(this.rQa,2E3,this);this.W=[];this.C=null;this.Z=new g.N8(function(){V.element.style.margin="0"},250); this.onClickCommand=this.V=null;g.R(this,this.S);g.R(this,this.J);g.R(this,this.D);g.R(this,this.Z);p.K().G("player_new_info_card_format")?(g.Ed(p.getRootNode(),"ytp-cards-teaser-dismissible"),this.U(this.rV("ytp-cards-teaser-close-button"),"click",this.Dt),this.U(this.rV("ytp-cards-teaser-info-icon"),"click",this.q_),this.U(this.rV("ytp-cards-teaser-label"),"click",this.q_)):this.listen("click",this.q_);this.U(C.element,"mouseover",this.Mv);this.U(C.element,"mouseout",this.cH);this.U(p,"cardsteasershow", this.GBa);this.U(p,"cardsteaserhide",this.f4);this.U(p,"cardstatechange",this.My);this.U(p,"presentingplayerstatechange",this.My);this.U(p,"appresize",this.w$);this.U(p,"onShowControls",this.w$);this.U(p,"onHideControls",this.xI);this.listen("mouseenter",this.BT)}; bDu=function(p){g.L.call(this,{L:"button",i_:[ae.BUTTON,ae.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},j:[{L:"div",B:ae.TITLE_NOTIFICATIONS_ON,X:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},j:[g.bq()]},{L:"div",B:ae.TITLE_NOTIFICATIONS_OFF,X:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, j:[{L:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},j:[{L:"path",X:{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=p;this.T=!1;p.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos")}; AFv=function(p,C){p.T=C;p.element.classList.toggle(ae.NOTIFICATIONS_ENABLED,p.T);var V=p.api.getVideoData();V?(C=C?V.hY:V.Lj)?(p=p.api.xN())?a4(p,C):g.nm(Error("No innertube service available when updating notification preferences.")):g.nm(Error("No update preferences command available.")):g.nm(Error("No video data when updating notification preferences."))}; kSL=function(p,C,V){var N=N===void 0?800:N;var H=H===void 0?600:H;p=oye(p,C);if(p=g.gV(window,p,"loginPopup","width="+N+",height="+H+",resizable=yes,scrollbars=yes"))DvQ(function(){V()}),p.moveTo((screen.width-N)/2,(screen.height-H)/2)}; oye=function(p,C){var V=document.location.protocol;return OHS(V+"//"+p+"/signin?context=popup","feature",C,"next",V+"//"+location.hostname+"/post_login")}; g.ER=function(p,C,V,N,H,X,d,a,E,l,t,c){p=p.charAt(0)+p.substring(1).toLowerCase();V=V.charAt(0)+V.substring(1).toLowerCase();if(C==="0"||C==="-1")C=null;if(N==="0"||N==="-1")N=null;var T=t.K(),M=T.userDisplayName&&g.Oe(T);g.L.call(this,{L:"div",i_:["ytp-button","ytp-sb"],j:[{L:"div",B:"ytp-sb-subscribe",X:M?{title:g.Ks("Inscrever-se como $USER_NAME",{USER_NAME:T.userDisplayName}),"aria-label":"Inscrever-se no canal","data-tooltip-image":Bg(T),"data-tooltip-opaque":String(g.KI(T)),tabindex:"0",role:"button"}: {"aria-label":"Inscrever-se no canal"},j:[{L:"div",B:"ytp-sb-text",j:[{L:"div",B:"ytp-sb-icon"},p]},C?{L:"div",B:"ytp-sb-count",Ak:C}:""]},{L:"div",B:"ytp-sb-unsubscribe",X:M?{title:g.Ks("Inscrito como $USER_NAME",{USER_NAME:T.userDisplayName}),"aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":Bg(T),"data-tooltip-opaque":String(g.KI(T)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},j:[{L:"div",B:"ytp-sb-text",j:[{L:"div",B:"ytp-sb-icon"}, V]},N?{L:"div",B:"ytp-sb-count",Ak:N}:""]}],X:{"aria-live":"polite"}});var J=this;this.channelId=d;this.N=t;this.V=c;var S=this.rV("ytp-sb-subscribe"),D=this.rV("ytp-sb-unsubscribe");X&&g.Ed(this.element,"ytp-sb-classic");if(H){a?this.T():this.C();var Z=function(){if(T.sY){var q=J.channelId;if(E||l){var A={c:q};var z;g.bt.isInitialized()&&(z=mGv(A));A=z||"";if(z=t.getVideoData())if(z=z.subscribeCommand){var Q=t.xN();Q?(a4(Q,z,{botguardResponse:A,feature:E}),t.Jk("SUBSCRIBE",q)):g.nm(Error("No innertube service available when updating subscriptions."))}else g.nm(Error("No subscribe command in videoData.")); else g.nm(Error("No video data available when updating subscription."))}D.focus();D.removeAttribute("aria-hidden");S.setAttribute("aria-hidden","true")}else kSL(g.zM(J.N.K()),"sb_button",J.S)},f=function(){var q=J.channelId; if(E||l){var A=t.getVideoData();a4(t.xN(),A.unsubscribeCommand,{feature:E});t.Jk("UNSUBSCRIBE",q)}S.focus();S.removeAttribute("aria-hidden");D.setAttribute("aria-hidden","true")}; this.U(S,"click",Z);this.U(D,"click",f);this.U(S,"keypress",function(q){q.keyCode===13&&Z(q)}); this.U(D,"keypress",function(q){q.keyCode===13&&f(q)}); this.U(t,"SUBSCRIBE",this.T);this.U(t,"UNSUBSCRIBE",this.C);this.V&&M&&(Lwv(t),o$(t,S,this),o$(t,D,this))}else g.Ed(S,"ytp-sb-disabled"),g.Ed(D,"ytp-sb-disabled")}; z9e=function(p){g.L.call(this,{L:"div",B:"ytp-title-channel",j:[{L:"div",B:"ytp-title-beacon"},{L:"a",B:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:p.K().Z,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{L:"div",B:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},j:[{L:"div",B:"ytp-title-expanded-heading",j:[{L:"div",B:"ytp-title-expanded-title",j:[{L:"a",Ak:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:p.K().Z,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{L:"div",B:"ytp-title-expanded-subtitle",Ak:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var C=this;this.api=p;this.channel=this.rV("ytp-title-channel");this.C=this.rV("ytp-title-channel-logo");this.channelName=this.rV("ytp-title-expanded-title");this.W=this.rV("ytp-title-expanded-overlay");this.V=this.T=this.subscribeButton=null;this.S=!1;p.createClientVe(this.C,this,36925);p.createClientVe(this.channelName,this, 37220);g.KI(this.api.K())&&xES(this);this.U(p,"videodatachange",this.Pr);this.U(p,"videoplayerreset",this.Pr);this.U(this.channelName,"click",function(V){C.api.logClick(C.channelName);g.gV(window,Ymu(C));V.preventDefault()}); this.U(this.C,"click",this.pra);this.Pr()}; R9Y=function(p){if(!p.api.K().qW){var C=p.api.getVideoData(),V=new g.ER("Inscreva-se",null,"Inscrito",null,!0,!1,C.eI,C.subscribed,"channel_avatar",null,p.api,!0);p.api.createServerVe(V.element,p);var N;p.api.setTrackingParams(V.element,((N=C.subscribeButtonRenderer)==null?void 0:N.trackingParams)||null);p.U(V.element,"click",function(){p.api.logClick(V.element)}); p.subscribeButton=V;g.R(p,p.subscribeButton);p.subscribeButton.u_(p.W);p.subscribeButton.hide();var H=new bDu(p.api);p.T=H;g.R(p,H);H.u_(p.W);H.hide();p.U(p.api,"SUBSCRIBE",function(){C.DM&&(H.show(),p.api.logVisibility(H.element,!0))}); p.U(p.api,"UNSUBSCRIBE",function(){C.DM&&(H.hide(),p.api.logVisibility(H.element,!1),AFv(H,!1))})}}; xES=function(p){var C=p.api.K();R9Y(p);p.updateValue("flyoutUnfocusable","true");p.updateValue("channelTitleFocusable","-1");p.updateValue("shouldHideExpandedTitleForA11y","true");p.updateValue("shouldHideExpandedSubtitleForA11y","true");C.C||C.R$||(p.U(p.channel,"mouseenter",p.B4),p.U(p.channel,"mouseleave",p.Mi),p.U(p.channel,"focusin",p.B4),p.U(p.channel,"focusout",function(V){p.channel.contains(V.relatedTarget)||p.Mi()})); p.V=new g.N8(function(){p.isExpanded()&&(p.api.logVisibility(p.channelName,!1),p.subscribeButton&&(p.subscribeButton.hide(),p.api.logVisibility(p.subscribeButton.element,!1)),p.T&&(p.T.hide(),p.api.logVisibility(p.T.element,!1)),p.channel.classList.remove("ytp-title-expanded"),p.channel.classList.add("ytp-title-show-collapsed"))},500); g.R(p,p.V);p.U(p.channel,nyS,function(){e9Y(p)}); p.U(p.api,"onHideControls",p.oM);p.U(p.api,"appresize",p.oM);p.U(p.api,"fullscreentoggled",p.oM)}; e9Y=function(p){p.channel.classList.remove("ytp-title-show-collapsed");p.channel.classList.remove("ytp-title-show-expanded")}; PML=function(p){var C=p.api.getPlayerSize();return g.KI(p.api.K())&&C.width>=524}; Ymu=function(p){var C=p.api.K(),V=p.api.getVideoData(),N=g.GM(C)+V.kM;g.t_(V)&&(N="https://music.youtube.com"+V.kM);if(!g.KI(C))return N;C={};g.FE(p.api,"addEmbedsConversionTrackingParams",[C]);return g.GD(N,C)}; lW=function(p){var C=g.H3({"aria-haspopup":"true"});g.Nl.call(this,C,p);this.listen("keydown",this.T)}; tD=function(p,C){p.element.setAttribute("aria-haspopup",String(C))}; wq9=function(p,C){g.L.call(this,{L:"div",B:"ytp-user-info-panel",X:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},j:p.K().sY&&!p.G("embeds_web_always_enable_signed_out_state")?[{L:"div",B:"ytp-user-info-panel-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-user-info-panel-content",j:[{L:"div",B:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},Ak:"{{watchingAsUsername}}"},{L:"div",B:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Ak:"{{watchingAsEmail}}"}]}]: [{L:"div",B:"ytp-user-info-panel-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-user-info-panel-content",j:[{L:"div",j:[{L:"text",X:{tabIndex:"{{userInfoFocusable}}"},Ak:"Conta desconectada"}]},{L:"div",B:"ytp-user-info-panel-login",j:[{L:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Ak:p.K().qW?"":"Fazer login no YouTube"}]}]}]});this.ea=p;this.T=C;p.K().sY||p.K().qW||this.U(this.rV("ytp-user-info-panel-login"),"click",this.Uw);this.closeButton=new g.L({L:"button",i_:["ytp-collapse","ytp-button"], X:{title:"Fechar"},j:[g.Y0()]});this.closeButton.u_(this.element);g.R(this,this.closeButton);this.U(window,"blur",this.hide);this.U(document,"click",this.tb);this.Pr()}; Lf9=function(p,C,V){g.$m.call(this,p);this.xM=C;this.WV=V;this.getVideoUrl=new lW(6);this.vp=new lW(5);this.I9=new lW(4);this.X0=new lW(3);this.x7=new g.Nl(g.H3({href:"{{href}}",target:this.N.K().Z},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.Nl(g.H3(),1,"Estat\u00edsticas para nerds");this.mB=new g.Sp({L:"div",i_:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},Ak:"{{text}}"});this.RK=new wL(this.N,this.mB);this.Ch=this.Wf=null;g.KI(this.N.K())&& (this.closeButton=new g.L({L:"button",i_:["ytp-collapse","ytp-button"],X:{title:"Fechar"},j:[g.Y0()]}),g.R(this,this.closeButton),this.closeButton.u_(this.element),this.closeButton.listen("click",this.Vu,this));g.KI(this.N.K())&&(this.fM=new g.Nl(g.H3(),8,"Conta"),g.R(this,this.fM),this.zB(this.fM,!0),this.fM.listen("click",this.EG$,this),p.createClientVe(this.fM.element,this.fM,137682));this.N.K().JW&&(this.rb=new c3("Loop",7),g.R(this,this.rb),this.zB(this.rb,!0),this.rb.listen("click",this.nMY, this),p.createClientVe(this.rb.element,this.rb,28661));g.R(this,this.getVideoUrl);this.zB(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.qYx,this);p.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.R(this,this.vp);this.zB(this.vp,!0);this.vp.listen("click",this.ckn,this);p.createClientVe(this.vp.element,this.vp,28660);g.R(this,this.I9);this.zB(this.I9,!0);this.I9.listen("click",this.Fxe,this);p.createClientVe(this.I9.element,this.I9,28658);g.R(this,this.X0);this.zB(this.X0, !0);this.X0.listen("click",this.Xr$,this);g.R(this,this.x7);this.zB(this.x7,!0);this.x7.listen("click",this.jHk,this);g.R(this,this.showVideoInfo);this.zB(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.uO_,this);g.R(this,this.mB);this.mB.listen("click",this.BVa,this);g.R(this,this.RK);C=document.queryCommandSupported&&document.queryCommandSupported("copy");LyQ("Chromium")>=43&&(C=!0);LyQ("Firefox")<=40&&(C=!1);C&&(this.Wf=new g.L({L:"textarea",B:"ytp-html5-clipboard",X:{readonly:"", tabindex:"-1"}}),g.R(this,this.Wf),this.Wf.u_(this.element));var N;(N=this.fM)==null||N.setIcon(qBQ());var H;(H=this.rb)==null||H.setIcon({L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.X0.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{"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.x7.setIcon(uW1());this.showVideoInfo.setIcon(ZKv());this.U(p,"onLoopChange",this.onLoopChange);this.U(p,"videodatachange",this.onVideoDataChange);$EY(this);this.mI(this.N.getVideoData())}; cz=function(p,C){var V=!1;if(p.Wf){var N=p.Wf.element;N.value=C;N.select();try{V=document.execCommand("copy")}catch(H){}}V?p.xM.f4():(p.mB.Jc(C,"text"),g.WO(p.xM,p.RK),v3(p.mB.element),p.Wf&&(p.Wf=null,$EY(p)));return V}; $EY=function(p){var C=!!p.Wf;g.V7(p.X0,C?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");tD(p.X0,!C);g.V7(p.I9,C?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");tD(p.I9,!C);g.V7(p.getVideoUrl,C?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");tD(p.getVideoUrl,!C);g.V7(p.vp,C?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");tD(p.vp,!C);p.I9.setIcon(C?SBH(): null);p.getVideoUrl.setIcon(C?qy():null);p.vp.setIcon(C?qy():null)}; gyj=function(p){return g.KI(p.N.K())?p.fM:p.rb}; QQQ=function(p,C){g.gL.call(this,p);this.WV=C;this.S=new g.Rr(this);this.b_=new g.N8(this.YZe,1E3,this);this.sY=this.V=null;g.R(this,this.S);g.R(this,this.b_);p.createClientVe(this.element,this,28656);g.Ed(this.element,"ytp-contextmenu");Wfy(this);this.hide()}; Wfy=function(p){g.Am(p.S);var C=p.N.K();C.playerStyle==="gvn"||C.C||C.R$||(C=p.N.dV(),p.S.U(C,"contextmenu",p.YYV),p.S.U(C,"touchstart",p.lD,null,!0),p.S.U(C,"touchmove",p.lV,null,!0),p.S.U(C,"touchend",p.lV,null,!0))}; rFY=function(p){p.N.isFullscreen()?g.LT(p.N,p.element,10):p.u_(pc(p).body)}; TI=function(p,C,V){V=V===void 0?240:V;g.L.call(this,{L:"button",i_:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-copylink-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-copylink-title",Ak:"Copiar link",X:{"aria-hidden":"true"}}]});this.api=p;this.T=C;this.C=V;this.visible=!1;this.tooltip=this.T.aI();C=p.K();this.tooltip.element.setAttribute("aria-live","polite");g.Tz(this.element,"ytp-show-copylink-title",g.KI(C));p.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.U(p,"videodatachange",this.Pr);this.U(p,"videoplayerreset",this.Pr);this.U(p,"appresize",this.Pr);this.Pr();this.addOnDisposeCallback(g.A_(this.tooltip,this.element))}; BvY=function(p){var C=p.api.K(),V=p.api.getVideoData(),N=p.api.dV().getPlayerSize().width;C=C.V;return!!V.videoId&&N>=p.C&&V.BK&&!g.lx(V)&&!p.api.isEmbedsShortsMode()&&!C}; GSS=function(p){p.updateValue("icon",Uy());if(p.api.K().C)p.tooltip.Y7(p.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{p.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");p.tooltip.B6();p.tooltip.Y7(p.element);var C=p.listen("mouseleave",function(){p.rY(C);p.Pr();p.tooltip.wb()})}}; pDL=function(p,C){return g.I(function(V){if(V.C==1)return g.vv(V,2),g.y(V,navigator.clipboard.writeText(C),4);if(V.C!=2)return V.return(!0);g.Sa(V);var N=V.return,H=!1,X=g.iK("TEXTAREA");X.value=C;X.setAttribute("readonly","");var d=p.api.getRootNode();d.appendChild(X);if(BW){var a=window.getSelection();a.removeAllRanges();var E=document.createRange();E.selectNodeContents(X);a.addRange(E);X.setSelectionRange(0,C.length)}else X.select();try{H=document.execCommand("copy")}catch(l){}d.removeChild(X); return N.call(V,H)})}; Md=function(p){g.L.call(this,{L:"div",B:"ytp-doubletap-ui-legacy",j:[{L:"div",B:"ytp-doubletap-fast-forward-ve"},{L:"div",B:"ytp-doubletap-rewind-ve"},{L:"div",B:"ytp-doubletap-static-circle",j:[{L:"div",B:"ytp-doubletap-ripple"}]},{L:"div",B:"ytp-doubletap-overlay-a11y"},{L:"div",B:"ytp-doubletap-seek-info-container",j:[{L:"div",B:"ytp-doubletap-arrows-container",j:[{L:"span",B:"ytp-doubletap-base-arrow"},{L:"span",B:"ytp-doubletap-base-arrow"},{L:"span",B:"ytp-doubletap-base-arrow"}]},{L:"div", B:"ytp-doubletap-tooltip",j:[{L:"div",B:"ytp-seek-icon-text-container",j:[{L:"div",B:"ytp-seek-icon",Ak:"{{seekIcon}}"},{L:"div",B:"ytp-chapter-seek-text-legacy",Ak:"{{seekText}}"}]},{L:"div",B:"ytp-doubletap-tooltip-label",Ak:"{{seekTime}}"}]}]}]});this.N=p;this.S=new g.N8(this.show,10,this);this.C=new g.N8(this.hide,700,this);this.D=this.V=0;this.a$=this.W=!1;this.T=this.rV("ytp-doubletap-static-circle");g.R(this,this.S);g.R(this,this.C);this.hide();this.J=this.rV("ytp-doubletap-fast-forward-ve"); this.Z=this.rV("ytp-doubletap-rewind-ve");this.N.createClientVe(this.J,this,28240);this.N.createClientVe(this.Z,this,28239);this.N.logVisibility(this.J,!0);this.N.logVisibility(this.Z,!0);this.W=p.G("web_show_cumulative_seek_time");this.a$=p.G("web_center_static_circles")}; JD=function(p,C,V,N){if(N=N===void 0?null:N){var H=C===-1?p.Z.visualElement:p.J.visualElement;N={seekData:N};var X=g.bz();X&&g.NU(Xi)(void 0,X,H,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",N,void 0)}p.V=C===p.D?p.V+V:V;p.D=C;H=p.N.dV().getPlayerSize();p.W?p.C.stop():g.d0(p.C);p.S.start();p.element.setAttribute("data-side",C===-1?"back":"forward");g.Ed(p.element,"ytp-time-seeking");p.T.style.width="110px";p.T.style.height="110px";N=H.width*.1-15;C===1?p.a$?(p.T.style.right=N+"px",p.T.style.left=""): (p.T.style.right="",p.T.style.left=H.width*.8-30+"px"):C===-1&&(p.a$?(p.T.style.right="",p.T.style.left=N+"px"):(p.T.style.right="",p.T.style.left=H.width*.1-15+"px"));p.T.style.top=H.height*.5+15+"px";CSL(p,p.W?p.V:V)}; jJv=function(p,C,V,N){N=N===void 0?null:N;g.d0(p.C);p.S.start();switch(C){case -1:C="back";break;case 1:C="forward";break;default:C=""}p.element.setAttribute("data-side",C);p.T.style.width="0";p.T.style.height="0";g.Ed(p.element,"ytp-chapter-seek");p.updateValue("seekText",V);p.updateValue("seekTime","");V=p.rV("ytp-seek-icon");if(N){a:if(N){switch(N){case "PREMIUM_STANDALONE":N={L:"svg",X:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},j:[{L:"path",X:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", fill:"#c00"}},{L:"path",X:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":N={L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"rect",X:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{L:"rect",X:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{L:"path",X:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{L:"defs",j:[{L:"linearGradient",X:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},j:[{L:"stop",X:{offset:"0.3","stop-color":"#E1002D"}},{L:"stop",X:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}N=void 0}else N=null;p.updateValue("seekIcon",N);V.style.display="inline-block"}else V.style.display="none"}; CSL=function(p,C){C=g.Ks("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:C.toString()});p.updateValue("seekTime",C)}; VdY=function(p){PO.call(this,p,!1,!0);this.Vn=[];this.Hc=[];this.Z=!0;this.badge.element.classList.add("ytp-featured-product");this.Sa=new g.L({L:"div",B:"ytp-featured-product-open-in-new"});g.R(this,this.Sa);this.countdownTimer=new g.L({L:"text",B:"ytp-featured-product-countdown",Ak:"{{content}}"});this.countdownTimer.hide();g.R(this,this.countdownTimer);this.C=new g.L({L:"div",B:"ytp-featured-product-trending",j:[{L:"div",B:"ytp-featured-product-trending-icon"},{L:"text",B:"ytp-featured-product-trending-text", Ak:"{{trendingOffer}}"}]});this.C.hide();g.R(this,this.C);this.overflowButton=new g.L({L:"button",i_:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.R(this,this.overflowButton);this.infoButton=new g.L({L:"button",i_:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.R(this,this.infoButton);this.J=new g.L({L:"text",B:"ytp-featured-product-exclusive-countdown",Ak:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}}); this.J.hide();g.R(this,this.J);this.D=new g.L({L:"div",B:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},j:[{L:"div",B:"ytp-featured-product-exclusive-badge-container",j:[{L:"div",B:"ytp-featured-product-exclusive-badge",j:[{L:"text",B:"ytp-featured-product-exclusive-badge-text",Ak:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.J]});this.D.hide();g.R(this,this.D);this.banner=new g.L({L:"a",B:"ytp-featured-product-container", j:[{L:"div",B:"ytp-featured-product-thumbnail",j:[{L:"img",X:{src:"{{thumbnail}}"}},this.Sa]},{L:"div",B:"ytp-featured-product-details",j:[{L:"text",B:"ytp-featured-product-title",Ak:"{{title}}"},this.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{L:"div",B:"ytp-featured-product-price-container",X:{"aria-label":"{{priceA11yText}}"},j:[{L:"text",B:"ytp-featured-product-price-when-promotion-text-enabled",Ak:"{{price}}",X:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-promotion-text", Ak:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{L:"div",X:{"aria-label":"{{priceA11yText}}"},j:[{L:"text",B:"ytp-featured-product-price",Ak:"{{price}}",X:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-sales-original-price",Ak:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-price-drop-reference-price",Ak:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{L:"div", B:"ytp-featured-product-when-promotion-text-enabled",j:[{L:"text",B:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Ak:"{{affiliateDisclaimer}}"},this.C,{L:"text",B:"ytp-featured-product-vendor-when-promotion-text-enabled",Ak:"{{vendor}}"}]}:{L:"div",j:[{L:"text",B:"ytp-featured-product-affiliate-disclaimer",Ak:"{{affiliateDisclaimer}}"},this.N.G("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.D:null,this.C,{L:"text",B:"ytp-featured-product-vendor", Ak:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.R(this,this.banner);this.banner.u_(this.V.element);this.U(this.N,g.Ez("featured_product"),this.IQe);this.U(this.N,g.lG("featured_product"),this.Cl);this.U(this.N,"videodatachange",this.onVideoDataChange);this.U(this.infoButton.element,"click",this.ZSa);this.U(this.overflowButton.element,"click",this.gp);this.U(p,"featuredproductdismissed",this.Fj)}; NK9=function(p){var C,V;p=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData;var N,H,X;return(p==null||!p.affiliateDisclaimer)&&(p==null?0:(N=p.exclusivesData)==null?0:N.exclusiveOfferLabelText)&&(p==null?0:(H=p.exclusivesData)==null?0:H.expirationTimestampMs)&&(p==null?0:(X=p.exclusivesData)==null?0:X.exclusiveOfferCountdownText)?!0:!1}; XDs=function(p){var C,V,N,H,X=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:(N=V.itemData)==null?void 0:(H=N.exclusivesData)==null?void 0:H.expirationTimestampMs;C=(Number(X)-Date.now())/1E3;if(C>0){if(C<604800){var d,a,E,l;V=(d=p.T)==null?void 0:(a=d.bannerData)==null?void 0:(E=a.itemData)==null?void 0:(l=E.exclusivesData)==null?void 0:l.exclusiveOfferCountdownText;if(V!==void 0)for(d=Date.now(),a=g.F(V),E=a.next();!E.done;E=a.next())if(E=E.value,E!==void 0&&E.text!==void 0&&(l=Number(E.textDisplayStartTimestampMs), !isNaN(l)&&d>=l)){E.insertCountdown?(C=E.text.replace(/\$0/,String(vY({seconds:C}))),p.J.Jc(C)):p.J.Jc(E.text);p.J.show();break}}var t,c,T,M;p.D.update({exclusive:(t=p.T)==null?void 0:(c=t.bannerData)==null?void 0:(T=c.itemData)==null?void 0:(M=T.exclusivesData)==null?void 0:M.exclusiveOfferLabelText});p.D.show();mD(p);var J;(J=p.YM)==null||J.start()}else HMY(p)}; HMY=function(p){var C;(C=p.YM)==null||C.stop();p.J.hide();p.D.hide();vz(p)}; dWX=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData;return p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(N==null||!N.priceReplacementText)&&(N==null?0:N.promotionText)?N==null?void 0:N.promotionText.content:null}; iM9=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData,H,X;if(!(N!=null&&N.priceReplacementText||p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(N==null?0:(H=N.dealsData)==null?0:(X=H.sales)==null?0:X.originalPrice)){var d,a;return N==null?void 0:(d=N.dealsData)==null?void 0:(a=d.sales)==null?void 0:a.originalPrice}return null}; hfu=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData,H,X,d,a;if(!((N==null?0:N.priceReplacementText)||p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(N==null?0:(H=N.dealsData)==null?0:(X=H.sales)==null?0:X.originalPrice))&&(N==null?0:(d=N.dealsData)==null?0:(a=d.priceDrop)==null?0:a.referencePrice)){var E,l;return N==null?void 0:(E=N.dealsData)==null?void 0:(l=E.priceDrop)==null?void 0:l.referencePrice}return null}; sJe=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData;if(N==null?0:N.priceReplacementText)return N==null?void 0:N.priceReplacementText;if((N==null?0:N.promotionText)&&p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var H;return(N==null?void 0:N.price)+" "+(N==null?void 0:(H=N.promotionText)==null?void 0:H.content)}var X,d;if(N==null?0:(X=N.dealsData)==null?0:(d=X.sales)==null?0:d.originalPrice){var a,E;return N==null?void 0:(a=N.dealsData)== null?void 0:(E=a.sales)==null?void 0:E.salesPriceAccessibilityLabel}var l,t;if(N==null?0:(l=N.dealsData)==null?0:(t=l.priceDrop)==null?0:t.referencePrice){var c,T;return(N==null?void 0:N.price)+" "+(N==null?void 0:(c=N.dealsData)==null?void 0:(T=c.priceDrop)==null?void 0:T.referencePrice)}return N==null?void 0:N.price}; a4L=function(p){if(p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var C,V,N;return p.C.C4?null:(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:(N=V.itemData)==null?void 0:N.vendorName}var H,X,d,a,E,l;return p.C.C4||p.D.C4||((H=p.T)==null?0:(X=H.bannerData)==null?0:(d=X.itemData)==null?0:d.affiliateDisclaimer)?null:(a=p.T)==null?void 0:(E=a.bannerData)==null?void 0:(l=E.itemData)==null?void 0:l.vendorName}; l4L=function(p,C){Fo(p);if(C){var V=g.Xx.getState().entities;V=Mg(V,"featuredProductsEntity",C);if(V!=null&&V.productsData){C=[];V=g.F(V.productsData);for(var N=V.next();!N.done;N=V.next()){N=N.value;var H=void 0;if((H=N)!=null&&H.identifier&&N.featuredSegments){p.Vn.push(N);var X=void 0;H=g.F((X=N)==null?void 0:X.featuredSegments);for(X=H.next();!X.done;X=H.next()){var d=X.value;X=ERy(d.startTimeSec);X!==void 0&&(d=ERy(d.endTimeSec),C.push(new g.sz(X*1E3,d===void 0?0x7ffffffffffff:d*1E3,{id:N.identifier, namespace:"featured_product"})))}}}p.N.d7(C)}}}; vz=function(p){if(p.trendingOfferEntityKey){var C=g.Xx.getState().entities;if(C=Mg(C,"trendingOfferEntity",p.trendingOfferEntityKey)){var V,N,H;C.encodedSkuId!==((V=p.T)==null?void 0:(N=V.bannerData)==null?void 0:(H=N.itemData)==null?void 0:H.encodedOfferSkuId)?mD(p):(p.C.update({trendingOffer:C.shortLabel+" \u2022 "+C.countLabel}),p.C.show(),p.banner.update({vendor:a4L(p)}))}else mD(p)}else mD(p)}; mD=function(p){p.C.hide();p.banner.update({vendor:a4L(p)})}; Fo=function(p){p.Vn=[];p.Cl();p.N.qt("featured_product")}; tdL=function(p){var C,V,N,H,X=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:(N=V.itemData)==null?void 0:(H=N.hiddenProductOptions)==null?void 0:H.dropTimestampMs;C=(Number(X)-Date.now())/1E3;p.countdownTimer.Jc(vY({seconds:C}));if(C>0){var d;(d=p.ER)==null||d.start()}}; cJv=function(p){var C;(C=p.ER)==null||C.stop();p.countdownTimer.hide()}; ERy=function(p){if(p!==void 0&&p.trim()!==""&&(p=Math.trunc(Number(p.trim())),!(isNaN(p)||p<0)))return p}; vRS=function(p,C,V){g.L.call(this,{L:"div",i_:["ytp-info-panel-action-item"],j:[{L:"div",B:"ytp-info-panel-action-item-disclaimer",Ak:"{{disclaimer}}"},{L:"a",i_:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},j:[{L:"div",B:"ytp-info-panel-action-item-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-info-panel-action-item-label",Ak:"{{label}}"}]}]});this.N=p;this.T=V;this.disclaimer=this.rV("ytp-info-panel-action-item-disclaimer");this.button= this.rV("ytp-info-panel-action-item-button");this.GN=!1;this.N.createServerVe(this.element,this,!0);this.listen("click",this.onClick);p="";V=g.n(C==null?void 0:C.onTap,w7);var N=g.n(V,g.$0);this.GN=!1;N?(p=N.url||"",p.startsWith("//")&&(p="https:"+p),this.GN=!0,g.el(this.button,g.Rc(p))):(N=g.n(V,TKS))&&!this.T?((p=N.phoneNumbers)&&p.length>0?(p="sms:"+p[0],N.messageText&&(p+="?&body="+encodeURI(N.messageText))):p="",this.GN=!0,g.el(this.button,g.Rc(p,[MdL]))):(V=g.n(V,JJj))&&!this.T&&(p=V.phoneNumber? "tel:"+V.phoneNumber:"",this.GN=!0,g.el(this.button,g.Rc(p,[mWL])));var H;if(V=(H=C.disclaimerText)==null?void 0:H.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var X;this.update({label:(X=C.bodyText)==null?void 0:X.content,icon:AO(),disclaimer:V})}else{this.disclaimer.style.display="none";var d;this.update({label:(d=C.bodyText)==null?void 0:d.content,icon:AO()})}this.N.setTrackingParams(this.element,C.trackingParams||null);this.GN&&(this.C={externalLinkData:{url:p}})}; Fmy=function(p,C){var V=JO();g.GC.call(this,p,{L:"div",B:"ytp-info-panel-detail-skrim",j:[{L:"div",B:"ytp-info-panel-detail",X:{role:"dialog",id:V},j:[{L:"div",B:"ytp-info-panel-detail-header",j:[{L:"div",B:"ytp-info-panel-detail-title",Ak:"{{title}}"},{L:"button",i_:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Fechar"},j:[g.yD()]}]},{L:"div",B:"ytp-info-panel-detail-body",Ak:"{{body}}"},{L:"div",B:"ytp-info-panel-detail-items"}]}]},250);this.T=C;this.items=this.rV("ytp-info-panel-detail-items"); this.V=new g.Rr(this);this.itemData=[];this.S=V;this.U(this.rV("ytp-info-panel-detail-close"),"click",this.f4);this.U(this.rV("ytp-info-panel-detail-skrim"),"click",this.f4);this.U(this.rV("ytp-info-panel-detail"),"click",function(N){N.stopPropagation()}); g.R(this,this.V);this.N.createServerVe(this.element,this,!0);this.U(p,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",p.getVideoData());this.hide()}; SUu=function(p,C){p=g.F(p.itemData);for(var V=p.next();!V.done;V=p.next())V=V.value,V.N.logVisibility(V.element,C)}; uys=function(p,C){g.L.call(this,{L:"div",B:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":C.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-info-panel-preview-text",Ak:"{{text}}"},{L:"div",B:"ytp-info-panel-preview-chevron",Ak:"{{chevron}}"}]});var V=this;this.N=p;this.g7=this.T=this.videoId=null;this.S=this.showControls=this.C=!1;this.U(this.element,"click",function(){p.logClick(V.element);p.A6();Cc(C)}); this.V=new g.a0(this,250,!1,100);g.R(this,this.V);this.N.createServerVe(this.element,this,!0);this.U(p,"videodatachange",this.onVideoDataChange);this.U(p,"presentingplayerstatechange",this.Q0);this.U(this.N,"paidcontentoverlayvisibilitychange",this.VO);this.U(this.N,"infopaneldetailvisibilitychange",this.VO);var N=p.getVideoData()||{};Kmj(N)&&DWV(this,N);this.U(p,"onShowControls",this.Jb);this.U(p,"onHideControls",this.Ow)}; DWV=function(p,C){if(!C.qn||!p.N.iX()){var V=C.Vw||1E4,N=Kmj(C);p.T?C.videoId&&C.videoId!==p.videoId&&(g.d0(p.T),p.videoId=C.videoId,N?(ZML(p,V,C),p.er()):(p.f4(),p.T.dispose(),p.T=null)):N&&(C.videoId&&(p.videoId=C.videoId),ZML(p,V,C),p.er())}}; Kmj=function(p){var C,V,N,H;return!!((C=p.W1)==null?0:(V=C.title)==null?0:V.content)||!!((N=p.W1)==null?0:(H=N.bodyText)==null?0:H.content)}; ZML=function(p,C,V){p.T&&p.T.dispose();p.T=new g.N8(p.mg$,C,p);g.R(p,p.T);var N;C=((N=V.W1)==null?void 0:N.trackingParams)||null;p.N.setTrackingParams(p.element,C);var H;var X,d;if(V==null?0:(X=V.W1)==null?0:(d=X.title)==null?0:d.content){var a;N=(H=V.W1)==null?void 0:(a=H.title)==null?void 0:a.content;var E,l;if((E=V.W1)==null?0:(l=E.bodyText)==null?0:l.content)N+=" \u2022 ";H=N}else H="";var t,c;V=((t=V.W1)==null?void 0:(c=t.bodyText)==null?void 0:c.content)||"";p.update({text:H+V,chevron:g.Oy()})}; UWe=function(p,C){p.T&&(g.r(C,8)?(p.C=!0,p.er(),p.T.start()):(g.r(C,2)||g.r(C,64))&&p.videoId&&(p.videoId=null))}; S4=function(p){var C=null;try{C=p.toLocaleString("pt-BR",{style:"percent"})}catch(V){C=p.toLocaleString(void 0,{style:"percent"})}return C}; KZ=function(p,C){var V=0;p=g.F(p);for(var N=p.next();!(N.done||N.value.startTime>C);N=p.next())V++;return V===0?V:V-1}; f4H=function(p,C){for(var V=0,N=g.F(p),H=N.next();!H.done;H=N.next()){H=H.value;if(C=H.timeRangeStartMillis&&C0?C[0]:null;var V=g.ju("ytp-chrome-bottom"),N=g.ju("ytp-ad-module");p.S=!(V==null||!V.contains(C));p.J=!(N==null||!N.contains(C));p.Z=!(C==null||!C.hasAttribute("data-tooltip-target-fixed"));return C}; $Wj=function(p,C,V){if(!p.W){if(C){p.tooltipRenderer=C;C=p.tooltipRenderer.text;var N=!1,H;(C==null?0:(H=C.runs)==null?0:H.length)&&C.runs[0].text&&(p.update({title:C.runs[0].text.toString()}),N=!0);g.o9(p.title,N);C=p.tooltipRenderer.detailsText;H=!1;var X;if((C==null?0:(X=C.runs)==null?0:X.length)&&C.runs[0].text){N=C.runs[0].text.toString();X=N.indexOf("$TARGET_ICON");if(X>-1)if(p.tooltipRenderer.targetId){C=[];N=N.split("$TARGET_ICON");var d=new g.mz({L:"span",B:"ytp-promotooltip-details-icon", j:[PSH[p.tooltipRenderer.targetId]]});g.R(p,d);for(var a=[],E=g.F(N),l=E.next();!l.done;l=E.next())l=new g.mz({L:"span",B:"ytp-promotooltip-details-component",Ak:l.value}),g.R(p,l),a.push(l);N.length===2?(C.push(a[0].element),C.push(d.element),C.push(a[1].element)):N.length===1&&(X===0?(C.push(d.element),C.push(a[0].element)):(C.push(a[0].element),C.push(d.element)));X=C.length?C:null}else X=null;else X=N;if(X){if(typeof X!=="string")for(g.aN(p.details),H=g.F(X),X=H.next();!X.done;X=H.next())p.details.appendChild(X.value); else p.update({details:X});H=!0}}g.o9(p.details,H);H=p.tooltipRenderer.acceptButton;X=!1;var t,c,T;((t=g.n(H,g.z$))==null?0:(c=t.text)==null?0:(T=c.runs)==null?0:T.length)&&g.n(H,g.z$).text.runs[0].text&&(p.update({acceptButtonText:g.n(H,g.z$).text.runs[0].text.toString()}),X=!0);g.o9(p.acceptButton,X);t=p.tooltipRenderer.dismissButton;c=!1;var M,J,S;((M=g.n(t,g.z$))==null?0:(J=M.text)==null?0:(S=J.runs)==null?0:S.length)&&g.n(t,g.z$).text.runs[0].text&&(p.update({dismissButtonText:g.n(t,g.z$).text.runs[0].text.toString()}), c=!0);g.o9(p.dismissButton,c)}V&&(p.V=V);p.T=efQ(p);p.D=!1;p.N.K().G("web_player_hide_nitrate_promo_tooltip")||p.jb(!0);wDs(p);p.C4&&!p.a$&&(p.a$=!0,p.Sr.W9(0));p.C&&p.N.logVisibility(p.element,p.C4)}}; y1=function(p){p.jb(!1);p.C&&p.N.logVisibility(p.element,p.C4)}; LmX=function(p){var C,V,N,H=((C=g.n(p.acceptButton,g.z$))==null?void 0:(V=C.text)==null?void 0:(N=V.runs)==null?void 0:N.length)&&!!g.n(p.acceptButton,g.z$).text.runs[0].text,X,d,a;C=((X=g.n(p.dismissButton,g.z$))==null?void 0:(d=X.text)==null?void 0:(a=d.runs)==null?void 0:a.length)&&!!g.n(p.dismissButton,g.z$).text.runs[0].text;return H||C}; wDs=function(p){var C;if(!(C=!p.T)){C=p.T;var V=window.getComputedStyle(C);C=V.display==="none"||V.visibility==="hidden"||C.getAttribute("aria-hidden")==="true"}if(C||p.N.isMinimized())p.jb(!1);else if(C=g.Ax(p.T),C.width&&C.height){p.N.Lr(p.element,p.T);var N=p.N.dV().getPlayerSize().height;V=g.Ax(p.rV("ytp-promotooltip-container")).height;p.S?p.element.style.top=N-V-C.height-12+"px":p.Z||(N=p.N.ai().height-V-C.height-12,p.element.style.top=N+"px");N=p.rV("ytp-promotooltip-pointer");var H=g.I9(p.T, p.N.getRootNode()),X=Number(p.element.style.left.replace(/[^\d\.]/g,""));p=p.N.isFullscreen()?18:12;N.style.left=H.x-X+C.width/2-p+"px";N.style.top=V+"px"}else p.jb(!1)}; qd=function(p){g.L.call(this,{L:"button",i_:["ytp-replay-button","ytp-button"],X:{title:"Reiniciar"},j:[g.k0()]});this.N=p;this.U(p,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.UZ(p.getPlayerStateObject());o$(this.N,this.element,this)}; Ie=function(p,C){C=C===void 0?240:C;g.L.call(this,{L:"button",i_:["ytp-button","ytp-search-button"],X:{title:"Pesquisar","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-search-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-search-title",Ak:"Pesquisar"}]});this.api=p;this.C=C;this.visible=!1;this.updateValue("icon",{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",B:"ytp-svg-fill",X:{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"}}]}); p.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.U(p,"appresize",this.T);this.U(p,"videodatachange",this.T);o$(p,this.element,this)}; g.bW=function(p,C,V,N){N=N===void 0?240:N;g.L.call(this,{L:"button",i_:["ytp-button","ytp-share-button"],X:{title:"Compartilhar","aria-haspopup":"true","aria-owns":V.element.id,"data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-share-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-share-title",Ak:"Compartilhar"}]});this.api=p;this.T=C;this.V=V;this.S=N;this.C=this.visible=!1;this.tooltip=this.T.aI();p.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.U(p,"videodatachange", this.Pr);this.U(p,"videoplayerreset",this.Pr);this.U(p,"appresize",this.Pr);this.U(p,"presentingplayerstatechange",this.Pr);this.Pr();this.addOnDisposeCallback(g.A_(this.tooltip,this.element))}; gRV=function(p){var C=p.api.K(),V=p.api.getVideoData(),N=g.KI(C)&&g.nT(p.api)&&g.r(p.api.getPlayerStateObject(),128);C=C.V||C.disableSharing&&p.api.getPresentingPlayerType()!==2||!V.showShareButton||V.BK||N||g.lx(V)||p.C;N=p.api.dV().getPlayerSize().width;return!!V.videoId&&N>=p.S&&!C}; Wmy=function(p,C){C.name!=="InvalidStateError"&&C.name!=="AbortError"&&(C.name==="NotAllowedError"?(p.T.A6(),Cc(p.V,p.element,!1)):g.nm(C))}; rJV=function(p,C){var V=JO(),N=p.K();V={L:"div",B:"ytp-share-panel",X:{id:JO(),role:"dialog","aria-labelledby":V},j:[{L:"div",B:"ytp-share-panel-inner-content",j:[{L:"div",B:"ytp-share-panel-title",X:{id:V},Ak:"Compartilhar"},{L:"a",i_:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:N.Z,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},Ak:"{{linkText}}"},{L:"label",B:"ytp-share-panel-include-playlist",j:[{L:"input",B:"ytp-share-panel-include-playlist-checkbox", X:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{L:"div",B:"ytp-share-panel-loading-spinner",j:[mv()]},{L:"div",B:"ytp-share-panel-service-buttons",Ak:"{{buttons}}"},{L:"div",B:"ytp-share-panel-error",Ak:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{L:"button",i_:["ytp-share-panel-close","ytp-button"],X:{title:"Fechar"},j:[g.yD()]}]};g.GC.call(this,p,V,250);var H=this;this.moreButton=null;this.api=p;this.tooltip= C.aI();this.V=[];this.W=this.rV("ytp-share-panel-inner-content");this.closeButton=this.rV("ytp-share-panel-close");this.U(this.closeButton,"click",this.f4);this.addOnDisposeCallback(g.A_(this.tooltip,this.closeButton));this.S=this.rV("ytp-share-panel-include-playlist-checkbox");this.U(this.S,"click",this.Pr);this.T=this.rV("ytp-share-panel-link");this.addOnDisposeCallback(g.A_(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.U(this.T,"click",function(X){X.preventDefault();H.api.logClick(H.T); var d=H.api.getVideoUrl(!0,!0,!1,!1);d=QJS(H,d);g.Jh(d,H.api,X)&&H.api.Jk("SHARE_CLICKED")}); this.listen("click",this.Fc);this.U(p,"videoplayerreset",this.hide);this.U(p,"fullscreentoggled",this.onFullscreenToggled);this.U(p,"onLoopRangeChange",this.Ud);this.hide()}; GUj=function(p,C){BKu(p);for(var V=C.links||C.shareTargets,N=0,H={},X=0;X'),(S=M.document)&&S.write&&(S.write(LH(J)),S.close()))):((M=g.gV(M,S,T,q))&&J.noopener&&(M.opener=null),M&&J.noreferrer&&(M.opener=null));M&&(M.opener||(M.opener=window),M.focus());c.preventDefault()}}}(H)); H.H_.addOnDisposeCallback(g.A_(p.tooltip,H.H_.element));a==="Facebook"?p.api.createClientVe(H.H_.element,H.H_,164504):a==="Twitter"&&p.api.createClientVe(H.H_.element,H.H_,164505);p.U(H.H_.element,"click",function(t){return function(){p.api.logClick(t.H_.element)}}(H)); p.api.logVisibility(H.H_.element,!0);p.V.push(H.H_);N++}}var E=C.more||C.moreLink,l=new g.L({L:"a",i_:["ytp-share-panel-service-button","ytp-button"],j:[{L:"span",B:"ytp-share-panel-service-button-more",j:[{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},j:[{L:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{L:"path",X:{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"}}]}]}],X:{href:E,target:"_blank",title:"Mais"}});l.listen("click",function(t){var c=E;p.api.logClick(p.moreButton.element);c=QJS(p,c);g.Jh(c,p.api,t)&&p.api.Jk("SHARE_CLICKED")}); l.addOnDisposeCallback(g.A_(p.tooltip,l.element));p.api.createClientVe(l.element,l,164506);p.U(l.element,"click",function(){p.api.logClick(l.element)}); p.api.logVisibility(l.element,!0);p.V.push(l);p.moreButton=l;p.updateValue("buttons",p.V)}; QJS=function(p,C){var V={};g.KI(p.api.K())&&(g.FE(p.api,"addEmbedsConversionTrackingParams",[V]),C=g.GD(C,V));return C}; BKu=function(p){for(var C=g.F(p.V),V=C.next();!V.done;V=C.next())V=V.value,V.detach(),g.iP(V);p.V=[]}; AD=function(p){return p===void 0||p.startSec===void 0||p.endSec===void 0?!1:!0}; pLL=function(p,C){p.startSec+=C;p.endSec+=C}; jPu=function(p){PO.call(this,p);this.C=this.T=this.isContentForward=this.J=!1;Ck9(this);this.U(this.N,"changeProductsInVideoVisibility",this.H4S);this.U(this.N,"videodatachange",this.onVideoDataChange)}; VjY=function(p){p.D&&p.Wr.element.removeChild(p.D.element);p.D=void 0}; HBS=function(p,C){return C.map(function(V){var N,H;if((V=(N=g.n(V,N4e))==null?void 0:(H=N.thumbnail)==null?void 0:H.thumbnails)&&V.length!==0)return V[0].url}).filter(function(V){return V!==void 0}).map(function(V){V=new g.L({L:"img", B:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:V}});g.R(p,V);return V})}; XLy=function(p,C){p.isContentForward=C;g.Tz(p.badge.element,"ytp-suggested-action-badge-content-forward",C)}; oe=function(p){var C=p.isContentForward&&!p.N9();g.Tz(p.badge.element,"ytp-suggested-action-badge-preview-collapsed",C&&p.T);g.Tz(p.badge.element,"ytp-suggested-action-badge-preview-expanded",C&&p.C)}; kX=function(p,C,V){return new g.sz(p*1E3,C*1E3,{priority:9,namespace:V})}; d9Y=function(p){p.N.qt("shopping_overlay_visible");p.N.qt("shopping_overlay_preview_collapsed");p.N.qt("shopping_overlay_preview_expanded");p.N.qt("shopping_overlay_expanded")}; Ck9=function(p){p.U(p.N,g.Ez("shopping_overlay_visible"),function(){p.JE(!0)}); p.U(p.N,g.lG("shopping_overlay_visible"),function(){p.JE(!1)}); p.U(p.N,g.Ez("shopping_overlay_expanded"),function(){p.b_=!0;et(p)}); p.U(p.N,g.lG("shopping_overlay_expanded"),function(){p.b_=!1;et(p)}); p.U(p.N,g.Ez("shopping_overlay_preview_collapsed"),function(){p.T=!0;oe(p)}); p.U(p.N,g.lG("shopping_overlay_preview_collapsed"),function(){p.T=!1;oe(p)}); p.U(p.N,g.Ez("shopping_overlay_preview_expanded"),function(){p.C=!0;oe(p)}); p.U(p.N,g.lG("shopping_overlay_preview_expanded"),function(){p.C=!1;oe(p)})}; sPH=function(p){g.L.call(this,{L:"div",B:"ytp-shorts-title-channel",j:[{L:"a",B:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:p.K().Z,"aria-label":"{{channelLogoLabel}}"}},{L:"div",B:"ytp-shorts-title-expanded-heading",j:[{L:"div",B:"ytp-shorts-title-expanded-title",j:[{L:"a",Ak:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:p.K().Z,tabIndex:"0"}}]}]}]});var C=this;this.api=p;this.T=this.rV("ytp-shorts-title-channel-logo");this.channelName=this.rV("ytp-shorts-title-expanded-title"); this.subscribeButton=null;p.createClientVe(this.T,this,36925);this.U(this.T,"click",function(V){C.api.logClick(C.T);g.gV(window,iBy(C));V.preventDefault()}); p.createClientVe(this.channelName,this,37220);this.U(this.channelName,"click",function(V){C.api.logClick(C.channelName);g.gV(window,iBy(C));V.preventDefault()}); hGS(this);this.U(p,"videodatachange",this.Pr);this.U(p,"videoplayerreset",this.Pr);this.Pr()}; hGS=function(p){if(!p.api.K().qW){var C=p.api.getVideoData(),V=new g.ER("Inscreva-se",null,"Inscrito",null,!0,!1,C.eI,C.subscribed,"channel_avatar",null,p.api,!0);p.api.createServerVe(V.element,p);var N;p.api.setTrackingParams(V.element,((N=C.subscribeButtonRenderer)==null?void 0:N.trackingParams)||null);p.U(V.element,"click",function(){p.api.logClick(V.element)}); p.subscribeButton=V;g.R(p,p.subscribeButton);p.subscribeButton.u_(p.element)}}; iBy=function(p){var C=p.api.K(),V=p.api.getVideoData();V=g.GM(C)+V.kM;if(!g.KI(C))return V;C={};g.FE(p.api,"addEmbedsConversionTrackingParams",[C]);return g.GD(V,C)}; xX=function(p){g.GC.call(this,p,{L:"button",i_:["ytp-skip-intro-button","ytp-popup","ytp-button"],j:[{L:"div",B:"ytp-skip-intro-button-text",Ak:"Pular introdu\u00e7\u00e3o"}]},100);var C=this;this.V=!1;this.T=new g.N8(function(){C.hide()},5E3); this.hE=this.I5=NaN;g.R(this,this.T);this.D=function(){C.show()}; this.W=function(){C.hide()}; this.S=function(){var V=C.N.getCurrentTime();V>C.I5/1E3&&V0?{L:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",i_:["ytp-circle-arrow","ytp-svg-fill"],X:{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"}}, {L:"text",i_:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{L:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",i_:["ytp-circle-arrow","ytp-svg-fill"],X:{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"}}, {L:"text",i_:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var V=this;this.N=p;this.T=C;this.C=new g.N8(function(){V.V?(V.V=!1,V.C.start()):V.element.classList.remove("ytp-jump-spin","backwards")},250); this.V=!1;(C=C>0)?this.N.createClientVe(this.element,this,36843):this.N.createClientVe(this.element,this,36844);var N=g.Ks(C?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.T).toString()});this.update({title:N,"data-title-no-tooltip":N,"aria-keyshortcuts":C?"\u2192":"\u2190"});this.S=this.element.querySelector(".ytp-jump-button-text");this.S.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);o$(p,this.element,this)}; Mjv=function(p,C){C?p.element.classList.add("ytp-jump-button-enabled"):p.element.classList.remove("ytp-jump-button-enabled");p.N.logVisibility(p.element,C);p.N.B6()}; Pz=function(p,C){zI.call(this,p,C,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.U(p,g.lG("timedMarkerCueRange"),this.m6);this.U(p,"updatemarkervisibility",this.updateVideoData)}; JYV=function(p){var C,V=(C=p.N.getVideoData())==null?void 0:C.Qn;if(V)for(p=p.S.Ga,V=g.F(V),C=V.next();!C.done;C=V.next())if(C=p[C.value]){var N=void 0,H=void 0,X=void 0;if(((N=C.onTap)==null?void 0:(H=N.innertubeCommand)==null?void 0:(X=H.changeEngagementPanelVisibilityAction)==null?void 0:X.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return C}}; wu=function(p){var C=p.G("web_enable_pip_on_miniplayer");g.L.call(this,{L:"button",i_:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},j:[C?{L:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},j:[{L:"g",X:{transform:"translate(96, -96) scale(0.8)"},j:[{L:"path",TB:!0,X:{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"}}]}]}: I31()]});this.N=p;this.visible=!1;this.listen("click",this.onClick);this.U(p,"fullscreentoggled",this.Pr);this.updateValue("title",g.kj(p,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});o$(p,this.element,this);p.createClientVe(this.element,this,62946);this.Pr()}; m99=function(p,C,V){V=V===void 0?!1:V;g.L.call(this,{L:"button",i_:["ytp-mute-button","ytp-button"],X:p.K().Y_?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Ak:"{{icon}}"});this.N=p;this.Sa=V;this.T=null;this.S=this.Z=this.W=this.b_=NaN;this.sY=this.D=null;this.V=[];this.C=[];this.visible=!1;this.J=null;V=this.N.K();this.updateValue("icon",zB());this.tooltip=C.aI();this.T=new g.mz({L:"svg",X:{height:"100%", version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"defs",j:[{L:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},j:[{L:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{L:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{L:"path",B:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{L:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},j:[{L:"path",B:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]}, {L:"path",TB:!0,i_:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"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"}},{L:"path",TB:!0,i_:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.R(this,this.T);this.D=this.T.rV("ytp-svg-volume-animation-speaker"); this.sY=this.D.getAttribute("d");this.V=g.pe("ytp-svg-volume-animation-mover",this.T.element);this.C=g.pe("ytp-svg-volume-animation-hider",this.T.element);this.Vn=new MA;g.R(this,this.Vn);this.a$=new MA;g.R(this,this.a$);this.listen("click",this.SRS);this.U(p,"appresize",this.Z2);this.U(p,"onVolumeChange",this.onVolumeChange);var N=null;V.Y_?this.addOnDisposeCallback(g.A_(C.aI(),this.element)):(C="Seu navegador n\u00e3o suporta a altera\u00e7\u00e3o de volume. $BEGIN_LINKSaiba mais$END_LINK".split(/\$(BEGIN|END)_LINK/), N=new g.GC(p,{L:"span",i_:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},j:[C[0],{L:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:V.Z},Ak:C[2]},C[4]]},100,!0),g.R(this,N),N.hide(),N.subscribe("show",function(H){p.Nu(N,H)}),g.LT(p,N.element,4)); this.message=N;p.createClientVe(this.element,this,28662);this.Z2(p.dV().getPlayerSize());this.setVolume(p.getVolume(),p.isMuted())}; S7L=function(p,C){p.b_=C;var V=p.sY;C&&(V+=w$V(vOH,F8a,C));p.D.setAttribute("d",V)}; K8S=function(p,C){p.Z=C;for(var V=20*C,N=0;N=3&&p.N.getPresentingPlayerType()!==2}; f$1=function(p){var C=R$(p.N.Tk());return C?p.T?C.bT():C.gj():!1}; u8V=function(p){var C={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},V=p.playlist!=null&&p.playlist.bT();V=g.nT(p.N)&&(!p.T||V);var N=p.T&&g.gb(p.N),H=f$1(p),X=p.T&&p.N.getPresentingPlayerType()===5,d=g.kj(p.N,"Pr\u00f3ximo","SHIFT+n"),a=g.kj(p.N,"Anterior","SHIFT+p");if(X)C.title="Iniciar v\u00eddeo";else if(p.V)C.title="Reiniciar";else if(V){var E=null;p.playlist&&(E=g.OC(p.playlist,p.T?StX(p.playlist):KPS(p.playlist)));if(E){if(E.videoId){var l= p.playlist.listId;C.url=p.N.K().getVideoUrl(E.videoId,l?l.toString():void 0)}C.text=E.title;C.duration=E.lengthText?E.lengthText:E.lengthSeconds?g.A7(E.lengthSeconds):null;C.preview=E.TW("mqdefault.jpg")}p.T?(C.title=d,C["data-title-no-tooltip"]="Pr\u00f3ximo",C["aria-keyshortcuts"]="SHIFT+n"):(C.title=a,C["data-title-no-tooltip"]="Anterior",C["aria-keyshortcuts"]="SHIFT+p")}else if(N){if(a=(E=p.videoData)==null?void 0:g.NI(E))C.url=a.a8(),C.text=a.title,C.duration=a.lengthText?a.lengthText:a.lengthSeconds? g.A7(a.lengthSeconds):null,C.preview=a.TW("mqdefault.jpg");C.title=d;C["data-title-no-tooltip"]="Pr\u00f3ximo";C["aria-keyshortcuts"]="SHIFT+n"}C.disabled=!N&&!V&&!H&&!X;p.update(C);p.D=!!C.url;N||V||p.V||H||X?p.C||(p.C=g.A_(p.tooltip,p.element),p.W=p.listen("click",p.onClick,p)):p.C&&(p.C(),p.C=null,p.rY(p.W),p.W=null);p.tooltip.B6()}; yYj=function(p,C){g.L.call(this,{L:"div",B:"ytp-fine-scrubbing",j:[{L:"div",B:"ytp-fine-scrubbing-draggable",j:[{L:"div",B:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Clique ou role o painel at\u00e9 a busca precisa","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{L:"div",X:{"aria-hidden":"true"},B:"ytp-fine-scrubbing-cursor"},{L:"div",B:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"}, Ak:"{{seekTime}}"},{L:"div",B:"ytp-fine-scrubbing-play",j:[oS()],X:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{L:"div",B:"ytp-fine-scrubbing-dismiss",j:[g.yD()],X:{title:"Sair da busca precisa",role:"button"}}]});var V=this;this.api=p;this.W=this.rV("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.rV("ytp-fine-scrubbing-dismiss");this.sY=this.rV("ytp-fine-scrubbing-draggable");this.playButton=this.rV("ytp-fine-scrubbing-play");this.thumbnails=[];this.C=[];this.vr=this.T=0; this.Wr=void 0;this.a$=NaN;this.Ga=this.Z=this.V=this.J=0;this.S=[];this.interval=this.frameCount=0;this.D=160;this.scale=1;this.Y_=0;this.isEnabled=this.Sa=!1;OBX(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.A_(C,this.dismissButton));this.addOnDisposeCallback(g.A_(C,this.playButton));this.Vn=new g.Hx(this.sY,!0);this.Vn.subscribe("dragstart",this.FW,this);this.Vn.subscribe("dragmove",this.XW,this);this.Vn.subscribe("dragend",this.cT,this);this.U(p,"SEEK_COMPLETE",this.M$);p.G("web_fix_fine_scrubbing_false_play")&& this.U(p,"rootnodemousedown",function(N){V.b_=N}); this.W.addEventListener("keydown",function(){}); g.R(this,this.Vn);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; OBX=function(p,C){var V=g.A7(C),N=g.Ks("Procurar $PROGRESS",{PROGRESS:g.A7(C,!0)});p.update({ariamin:0,ariamax:Math.floor(p.api.getDuration()),arianow:Math.floor(C),arianowtext:N,seekTime:V})}; q7V=function(p){p.a$=NaN;p.Z=0;p.J=p.V}; AY9=function(p){var C=p.api.C$();if(C){var V=90*p.scale,N=ys(C,160*p.scale);if(C=C.levels[N]){p.D=C.width;if(!p.S.length){N=[];for(var H=qF(C,C.BA()),X=C.columns*C.rows,d=C.frameCount,a=0;a<=H;a++)for(var E=dp.S.length;)N= void 0,(N=p.thumbnails.pop())==null||N.dispose();for(;p.thumbnails.lengthV.length;)N=void 0,(N=p.C.pop())==null||N.dispose(); for(;p.C.length-V?-C/V*p.interval*.5:-(C+V/2)/V*p.interval}; oO9=function(p){return-((p.W.offsetWidth||(p.frameCount-1)*p.D*p.scale)-p.T/2)}; I$S=function(){g.L.call(this,{L:"div",B:"ytp-fine-scrubbing-thumbnail"})}; bB9=function(){g.L.call(this,{L:"div",B:"ytp-fine-scrubbing-chapter-title",j:[{L:"div",B:"ytp-fine-scrubbing-chapter-title-content",Ak:"{{chapterTitle}}"}]})}; x9L=function(p){g.L.call(this,{L:"div",B:"ytp-heat-map-chapter",j:[{L:"svg",B:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},j:[{L:"defs",j:[{L:"clipPath",X:{id:"{{id}}"},j:[{L:"path",B:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{L:"rect",B:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{L:"rect",B:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white", "fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{L:"rect",B:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=p;this.D=this.rV("ytp-heat-map-svg");this.V=this.rV("ytp-heat-map-path");this.W=this.rV("ytp-heat-map-graph");this.S=this.rV("ytp-heat-map-play");this.C=this.rV("ytp-heat-map-hover");this.GN=!1;this.T=60;p=""+g.$H(this);this.update({id:p});p="url(#"+p+")";this.W.setAttribute("clip-path",p);this.S.setAttribute("clip-path",p);this.C.setAttribute("clip-path", p);this.api.G("web_heat_map_v2")&&g.Ed(this.api.getRootNode(),"ytp-heat-map-v2")}; Y7s=function(p,C){C>0&&(p.T=C,p.D.style.height=p.T+"px")}; Wz=function(){g.L.call(this,{L:"div",B:"ytp-chapter-hover-container",j:[{L:"div",B:"ytp-progress-bar-padding"},{L:"div",B:"ytp-progress-list",j:[{L:"div",i_:["ytp-play-progress","ytp-swatch-background-color"]},{L:"div",B:"ytp-progress-linear-live-buffer"},{L:"div",B:"ytp-load-progress"},{L:"div",B:"ytp-hover-progress"},{L:"div",B:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.S=this.rV("ytp-progress-linear-live-buffer");this.V=this.rV("ytp-ad-progress-list"); this.W=this.rV("ytp-load-progress");this.D=this.rV("ytp-play-progress");this.C=this.rV("ytp-hover-progress");this.T=this.rV("ytp-chapter-hover-container")}; Q1=function(p,C){g.K2(p.T,"width",C)}; zGv=function(p,C){g.K2(p.T,"margin-right",C+"px")}; RGa=function(){this.C=this.position=this.V=this.T=this.S=this.width=NaN}; nOX=function(){g.L.call(this,{L:"div",B:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Bz=function(p,C){g.Sp.call(this,{L:"div",B:"ytp-progress-bar-container",X:{"aria-disabled":"true"},j:[{L:"div",i_:["ytp-heat-map-container"],j:[{L:"div",B:"ytp-heat-map-edu"}]},{L:"div",i_:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},j:[{L:"div",B:"ytp-chapters-container"},{L:"div",B:"ytp-timed-markers-container"},{L:"div", B:"ytp-clip-start-exclude"},{L:"div",B:"ytp-clip-end-exclude"},{L:"div",B:"ytp-scrubber-container",j:[{L:"div",i_:["ytp-scrubber-button","ytp-swatch-background-color"],j:[{L:"div",B:"ytp-scrubber-pull-indicator"},{L:"img",i_:["ytp-decorated-scrubber-button"]}]}]}]},{L:"div",i_:["ytp-fine-scrubbing-container"],j:[{L:"div",B:"ytp-fine-scrubbing-edu"}]},{L:"div",B:"ytp-bound-time-left",Ak:"{{boundTimeLeft}}"},{L:"div",B:"ytp-bound-time-right",Ak:"{{boundTimeRight}}"},{L:"div",B:"ytp-clip-start",X:{title:"{{clipstarttitle}}"}, Ak:"{{clipstarticon}}"},{L:"div",B:"ytp-clip-end",X:{title:"{{clipendtitle}}"},Ak:"{{clipendicon}}"}]});this.api=p;this.W1=!1;this.FO=this.FT=this.R$=this.J=this.XT=0;this.kt=null;this.vr={};this.Hc={};this.clipEnd=Infinity;this.kM=this.rV("ytp-clip-end");this.wy=new g.Hx(this.kM,!0);this.Q$=this.rV("ytp-clip-end-exclude");this.qW=this.rV("ytp-clip-start-exclude");this.clipStart=0;this.ER=this.rV("ytp-clip-start");this.VZ=new g.Hx(this.ER,!0);this.a$=this.Qn=0;this.progressBar=this.rV("ytp-progress-bar"); this.X$={};this.Ga={};this.YM=this.rV("ytp-chapters-container");this.jZ=this.rV("ytp-timed-markers-container");this.T=[];this.D=[];this.iW={};this.hE=null;this.sY=-1;this.qo=this.Vn=0;this.Z=null;this.cV=this.rV("ytp-scrubber-button");this.va=this.rV("ytp-decorated-scrubber-button");this.qn=this.rV("ytp-scrubber-container");this.KS=new g.Fn;this.i8=new RGa;this.V=new PE(0,0);this.Sb=null;this.S=this.f9=!1;this.d6=null;this.b_=this.rV("ytp-heat-map-container");this.I6=this.rV("ytp-heat-map-edu");this.W= [];this.heatMarkersDecorations=[];this.UY=this.rV("ytp-fine-scrubbing-container");this.RN=this.rV("ytp-fine-scrubbing-edu");this.C=void 0;this.Sa=this.QZ=this.Wr=!1;this.tooltip=C.aI();this.addOnDisposeCallback(g.A_(this.tooltip,this.kM));g.R(this,this.wy);this.wy.subscribe("hoverstart",this.s3,this);this.wy.subscribe("hoverend",this.xf,this);this.U(this.kM,"click",this.XI);this.addOnDisposeCallback(g.A_(this.tooltip,this.ER));g.R(this,this.VZ);this.VZ.subscribe("hoverstart",this.s3,this);this.VZ.subscribe("hoverend", this.xf,this);this.U(this.ER,"click",this.XI);eG9(this);this.U(p,"resize",this.OR);this.U(p,"presentingplayerstatechange",this.NH);this.U(p,"videodatachange",this.mL);this.U(p,"videoplayerreset",this.L_);this.U(p,"cuerangesadded",this.uTk);this.U(p,"cuerangesremoved",this.B7a);this.U(p,"onLoopRangeChange",this.yc);this.U(p,"innertubeCommand",this.onClickCommand);this.U(p,g.Ez("timedMarkerCueRange"),this.H1$);this.U(p,"updatemarkervisibility",this.yB);this.U(p,"serverstitchedvideochange",this.mn$); this.updateVideoData(p.getVideoData(),!0);this.yc(p.getLoopRange());ru(this)&&!this.C&&(this.C=new yYj(this.api,this.tooltip),p=g.qK(this.element).x||0,this.C.OR(p,this.J),this.C.u_(this.UY),g.R(this,this.C),this.U(this.C.dismissButton,"click",this.wc),this.U(this.C.playButton,"click",this.lH),this.U(this.C.element,"dblclick",this.lH));this.api.createClientVe(this.b_,this,139609,!0);this.api.createClientVe(this.I6,this,140127,!0);this.api.createClientVe(this.RN,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; eG9=function(p){if(p.T.length===0){var C=new Wz;p.T.push(C);g.R(p,C);C.u_(p.YM,0)}for(;p.T.length>1;)p.T.pop().dispose();Q1(p.T[0],"100%");p.T[0].startTime=0;p.T[0].title=""}; Pku=function(p){var C=C===void 0?NaN:C;var V=new x9L(p.api);p.W.push(V);g.R(p,V);V.u_(p.b_);C>=0&&(V.element.style.width=C+"px")}; wLa=function(p){for(;p.D.length;)p.D.pop().dispose()}; L8H=function(p){var C,V,N,H,X;return(X=g.n((H=g.n((C=p.getWatchNextResponse())==null?void 0:(V=C.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:N.decoratedPlayerBarRenderer,v7))==null?void 0:H.playerBar,$9L))==null?void 0:X.chapters}; gOu=function(p){for(var C=p.T,V=[],N=0;N=d&&S<=t&&X.push(T)}E>0&&(p.b_.style.height=E+"px");d=p.W[N];t=X;T=H;J=E;S=N===0;S=S===void 0?!1:S;Y7s(d,J);c=t;M=d.T;S=S===void 0?!1:S;var D=1E3/c.length,Z=[];Z.push({x:0,y:100});for(var f=0;f0&&(V=X[X.length-1])}g.GI(p);a=[];C=g.F(C.heatMarkersDecorations||[]);for(H=C.next();!H.done;H=C.next())if(H=g.n(H.value,CJQ))E=H.label,N=V=l=void 0,a.push({visibleTimeRangeStartMillis:(l= H.visibleTimeRangeStartMillis)!=null?l:-1,visibleTimeRangeEndMillis:(V=H.visibleTimeRangeEndMillis)!=null?V:-1,decorationTimeMillis:(N=H.decorationTimeMillis)!=null?N:NaN,label:E?g.uq(E):""});p.heatMarkersDecorations=a}}; rY1=function(p,C){p.D.push(C);g.R(p,C);C.u_(p.jZ,p.jZ.children.length)}; B4a=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=pv(p,V.timeRangeStartMillis/(p.V.T*1E3),Cv(p));g.K2(V.element,"transform","translateX("+N+"px) scaleX(0.6)")}}; W81=function(p,C){var V=0,N=!1;C=g.F(C);for(var H=C.next();!H.done;H=C.next()){H=H.value;if(g.n(H,V$L)){H=g.n(H,V$L);var X={startTime:NaN,title:null,onActiveCommand:void 0},d=H.title;X.title=d?g.uq(d):"";d=H.timeRangeStartMillis;d!=null&&(X.startTime=d);X.onActiveCommand=H.onActiveCommand;H=X;V===0&&H.startTime!==0&&(p.T[V].startTime=0,p.T[V].title="",p.T[V].onActiveCommand=H.onActiveCommand,V++,N=!0);p.T.length<=V&&(X=new Wz,p.T.push(X),g.R(p,X),X.u_(p.YM,p.YM.children.length));p.T[V].startTime= H.startTime;p.T[V].title=H.title?H.title:"";p.T[V].onActiveCommand=H.onActiveCommand;p.T[V].index=N?V-1:V}V++}for(;V=0;N--)if(p.T[N].width>0){zGv(p.T[N],0);var H=Math.floor(p.T[N].width);p.T[N].width=H;Q1(p.T[N],H+"px");break}p.T[V].width=0;Q1(p.T[V],"0")}else V===p.T.length-1?(N=Math.floor(p.T[V].width+C),p.T[V].width=N,Q1(p.T[V],N+"px")):(C=p.T[V].width+C,N=Math.round(C),C-=N,p.T[V].width=N,Q1(p.T[V],N+"px"));V=0;if(p.W.length===p.T.length)for(C=0;C< p.W.length;C++)N=p.T[C].width,p.W[C].element.style.width=N+"px",p.W[C].element.style.left=V+"px",V+=N+(p.S?3:2)}; N5u=function(p,C){var V=0,N=!1,H=p.T.length,X=p.V.T*1E3;X===0&&(X=p.api.getProgressState().seekableEnd*1E3);if(X>0&&p.J>0){for(var d=p.J-(p.S?3:2)*p.Vn,a=p.qo===0?3:d*p.qo,E=g.F(p.T),l=E.next();!l.done;l=E.next())l.value.width=0;for(;V1);l=(X===0?0:E/X*d)+p.T[V].width;if(l>a)p.T[V].width=l;else{p.T[V].width=0;var t=p,c=V,T=t.T[c-1];T!==void 0&&T.width> 0?T.width+=l:cp.qo&&(p.qo=E/X),N=!0)}V++}}return N}; jD=function(p){if(p.J){var C=p.api.getProgressState(),V=p.api.getVideoData();if(!(V&&V.enableServerStitchedDai&&V.enablePreroll)||isFinite(C.current)){var N;if(((N=p.api.getVideoData())==null?0:E5(N))&&C.airingStart&&C.airingEnd)var H=VK(p,C.airingStart,C.airingEnd);else if(p.api.getPresentingPlayerType()===2&&p.api.K().G("show_preskip_progress_bar_for_skippable_ads")){var X,d,a;H=(V=(H=p.api.getVideoData())==null?void 0:(X=H.getPlayerResponse())==null?void 0:(d=X.playerConfig)==null?void 0:(a=d.webPlayerConfig)== null?void 0:a.skippableAdProgressBarDuration)?VK(p,C.seekableStart,V/1E3):VK(p,C.seekableStart,C.seekableEnd)}else H=VK(p,C.seekableStart,C.seekableEnd);X=wk(H,C.loaded,0);C=wk(H,C.current,0);d=p.V.C!==H.C||p.V.T!==H.T;p.V=H;Nb(p,C,X);d&&H9u(p);XMQ(p)}}}; VK=function(p,C,V){return d2e(p)?new PE(Math.max(C,p.Sb.startTimeMs/1E3),Math.min(V,p.Sb.endTimeMs/1E3)):new PE(C,V)}; i99=function(p,C){var V;if(((V=p.Sb)==null?void 0:V.type)==="repeatChapter"||(C==null?void 0:C.type)==="repeatChapter")C&&(C=p.T[KZ(p.T,C.startTimeMs)],g.Tz(C.T,"ytp-repeating-chapter",!1)),p.Sb&&(C=p.T[KZ(p.T,p.Sb.startTimeMs)],g.Tz(C.T,"ytp-repeating-chapter",!0)),p.T.forEach(function(N){g.Tz(N.T,"ytp-exp-chapter-hover-container",!p.Sb)})}; Xp=function(p,C){var V=p.V;V=V.C+C.C*V.getLength();if(p.T.length>1){V=H$(p,C.V,!0);for(var N=0,H=0;H0&&(N+=p.T[H].width,N+=p.S?3:2);V=(p.T[V].startTime+(C.V-N)/p.T[V].width*((V===p.T.length-1?p.V.T*1E3:p.T[V+1].startTime)-p.T[V].startTime))/1E3||0}return V}; dR=function(p,C,V,N,H){C=C<0?0:Math.floor(Math.min(C,p.api.getDuration())*1E3);V=V<0?0:Math.floor(Math.min(V,p.api.getDuration())*1E3);p=p.progressBar.visualElement;N={seekData:{startMediaTimeMs:C,endMediaTimeMs:V,seekSource:N}};(C=g.bz())&&g.NU(Xi)(void 0,C,p,H,N,void 0)}; hdj=function(p,C,V){return V>=p.T.length?!1:Math.abs(C-p.T[V].startTime/1E3)/p.V.T*(p.J-(p.S?3:2)*p.Vn)<4}; H9u=function(p){p.cV.style.removeProperty("height");for(var C=g.F(Object.keys(p.vr)),V=C.next();!V.done;V=C.next())snu(p,V.value);ih(p);Nb(p,p.a$,p.Qn)}; Cv=function(p){var C=p.KS.x;C=g.J9(C,0,p.J);p.i8.update(C,p.J);return p.i8}; sa=function(p){return(p.S?135:90)-ho(p)}; ho=function(p){var C=48,V=p.api.K();p.S?C=54:g.KI(V)&&!V.C&&(C=40);return C}; Nb=function(p,C,V){p.a$=C;p.Qn=V;var N=Cv(p),H=p.V.T;var X=p.V;X=X.C+p.a$*X.getLength();var d=g.Ks("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.A7(X,!0),DURATION:g.A7(H,!0)}),a=KZ(p.T,X*1E3);a=p.T[a].title;p.update({ariamin:Math.floor(p.V.C),ariamax:Math.floor(H),arianow:Math.floor(X),arianowtext:a?a+" "+d:d});H=p.clipStart;X=p.clipEnd;p.Sb&&p.api.getPresentingPlayerType()!==2&&(H=p.Sb.startTimeMs/1E3,X=p.Sb.endTimeMs/1E3);H=wk(p.V,H,0);a=wk(p.V,X,1);d=p.api.getVideoData();X=g.J9(C,H,a);V=(d==null? 0:g.s5(d))?1:g.J9(V,H,a);C=pv(p,C,N);g.K2(p.qn,"transform","translateX("+C+"px)");av(p,N,H,X,"PLAY_PROGRESS");(d==null?0:E5(d))?(C=p.api.getProgressState().seekableEnd)&&av(p,N,X,wk(p.V,C),"LIVE_BUFFER"):av(p,N,H,V,"LOAD_PROGRESS");if(p.api.G("web_player_heat_map_played_bar")){var E;(E=p.W[0])!=null&&E.S.setAttribute("width",(X*100).toFixed(2)+"%")}}; av=function(p,C,V,N,H){var X=p.T.length,d=C.T-p.Vn*(p.S?3:2),a=V*d;V=H$(p,a);var E=N*d;d=H$(p,E);H==="HOVER_PROGRESS"&&(d=H$(p,C.T*N,!0),E=C.T*N-aIv(p,C.T*N)*(p.S?3:2));N=Math.max(a-EnH(p,V),0);for(a=V;a=p.T.length)return p.J;for(var V=0,N=0;N0||p.Q$.clientWidth>0?(X=C.clientWidth/V,p=-1*p.qW.clientWidth/V):(X/=V,p=-1*p.T[H].element.offsetLeft/V),g.K2(C,"background-size",X+"px"),g.K2(C,"background-position-x",p+"px"))}; Ea=function(p,C,V,N,H){H||p.api.K().C?C.style.width=V+"px":g.K2(C,"transform","scalex("+(N?V/N:0)+")")}; H$=function(p,C,V){var N=0;(V===void 0?0:V)&&(C-=aIv(p,C)*(p.S?3:2));V=g.F(p.T);for(var H=V.next();!H.done;H=V.next()){H=H.value;if(C>H.width)C-=H.width;else break;N++}return N===p.T.length?N-1:N}; pv=function(p,C,V){for(var N=C*p.V.T*1E3,H=-1,X=g.F(p.T),d=X.next();!d.done;d=X.next())d=d.value,N>d.startTime&&d.width>0&&H++;return C*(V.T-(p.S?3:2)*p.Vn)+(p.S?3:2)*(H<0?0:H)+V.S}; aIv=function(p,C){for(var V=p.T.length,N=0,H=g.F(p.T),X=H.next();!X.done;X=H.next())if(X=X.value,X.width!==0)if(C>X.width)C-=X.width,C-=p.S?3:2,N++;else break;return N===V?V-1:N}; g.cs1=function(p,C,V,N){var H=p.J!==V,X=p.S!==N;p.XT=C;p.J=V;p.S=N;ru(p)&&(C=p.C)!=null&&(C.scale=N?1.5:1);H9u(p);p.T.length===1&&(p.T[0].width=V||0);H&&g.GI(p);p.C&&X&&ru(p)&&(p.C.isEnabled&&(V=p.S?135:90,N=V-ho(p),p.UY.style.height=V+"px",g.K2(p.b_,"transform","translateY("+-N+"px)"),g.K2(p.progressBar,"transform","translateY("+-N+"px)")),AY9(p.C))}; ih=function(p){var C=!!p.Sb&&p.api.getPresentingPlayerType()!==2,V=p.clipStart,N=p.clipEnd,H=!0,X=!0;C&&p.Sb?(V=p.Sb.startTimeMs/1E3,N=p.Sb.endTimeMs/1E3):(H=V>p.V.C,X=p.V.T>0&&Np.a$);g.Tz(p.cV,"ytp-scrubber-button-hover",V===N&&p.T.length>1);if(p.api.G("web_player_heat_map_played_bar")){var X;(X=p.W[0])!=null&&X.C.setAttribute("width",(C.C*100).toFixed(2)+"%")}}}; snu=function(p,C){var V=p.vr[C];C=p.Hc[C];var N=Cv(p),H=wk(p.V,V.start/1E3,0),X=hYv(V,p.S)/N.width;var d=wk(p.V,V.end/1E3,1);X!==Number.POSITIVE_INFINITY&&(H=g.J9(H,0,d-X));d=Math.min(d,H+X);V.color&&(C.style.background=V.color);V=H;C.style.left=Math.max(V*N.T+N.S,0)+"px";Ea(p,C,g.J9((d-V)*N.T+N.S,0,N.width),N.width,!0)}; T5L=function(p,C){var V=C.getId();p.vr[V]===C&&(g.lK(p.Hc[V]),delete p.vr[V],delete p.Hc[V])}; ru=function(p){var C=g.wG(p.api.K())&&(p.api.G("web_enable_pip_on_miniplayer")||p.api.G("web_enable_auto_pip")),V;return!((V=p.api.getVideoData())==null?0:V.isLivePlayback)&&!p.api.isMinimized()&&!p.api.isInline()&&(!p.api.l0()||!C)}; lh=function(p){p.C&&(p.C.disable(),p.R$=0,p.b_.style.removeProperty("transform"),p.progressBar.style.removeProperty("transform"),p.UY.style.removeProperty("height"),p.element.parentElement&&p.element.parentElement.style.removeProperty("height"))}; M$v=function(p,C){var V=C/sa(p)*ho(p);g.K2(p.progressBar,"transform","translateY("+-C+"px)");g.K2(p.b_,"transform","translateY("+-C+"px)");g.K2(p.UY,"transform","translateY("+V+"px)");p.UY.style.height=C+V+"px";p.element.parentElement&&(p.element.parentElement.style.height=ho(p)-V+"px")}; JsL=function(p,C){C?p.Z||(p.element.removeAttribute("aria-disabled"),p.Z=new g.Hx(p.progressBar,!0),p.Z.subscribe("hovermove",p.R6_,p),p.Z.subscribe("hoverend",p.Pxx,p),p.Z.subscribe("dragstart",p.pcV,p),p.Z.subscribe("dragmove",p.DWa,p),p.Z.subscribe("dragend",p.YRY,p),p.d6=p.listen("keydown",p.Zt)):p.Z&&(p.element.setAttribute("aria-disabled","true"),p.rY(p.d6),p.Z.cancel(),p.Z.dispose(),p.Z=null)}; d2e=function(p){var C;return!((C=p.Sb)==null||!C.postId)&&p.api.getPresentingPlayerType()!==2}; to=function(p,C){g.L.call(this,{L:"button",i_:["ytp-remote-button","ytp-button"],X:{title:"Reproduzir na TV","aria-haspopup":"true","data-priority":"8"},Ak:"{{icon}}"});this.N=p;this.xM=C;this.T=null;this.U(p,"onMdxReceiversChange",this.Pr);this.U(p,"presentingplayerstatechange",this.Pr);this.U(p,"appresize",this.Pr);p.createClientVe(this.element,this,139118);this.Pr();this.listen("click",this.C,this);o$(p,this.element,this)}; c$=function(p,C){g.L.call(this,{L:"button",i_:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":JO(),title:"Detalhes","data-tooltip-target-id":"ytp-settings-button"},j:[g.x0()]});this.N=p;this.xM=C;this.C=!0;this.listen("click",this.V);this.U(p,"onPlaybackQualityChange",this.updateBadge);this.U(p,"videodatachange",this.updateBadge);this.U(p,"webglsettingschanged",this.updateBadge);this.U(p,"appresize",this.T);o$(p,this.element,this);this.N.createClientVe(this.element, this,28663);this.updateBadge();this.T(p.dV().getPlayerSize())}; m2s=function(p,C){p.C=!!C;p.T(p.N.dV().getPlayerSize())}; T8=function(p,C){c3.call(this,"Anota\u00e7\u00f5es",g.FB.HM);this.N=p;this.xM=C;this.T=!1;p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{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.U(p,"videodatachange",this.Pr);this.U(p,"onApiChange",this.Pr);this.subscribe("select",this.onSelect,this);this.Pr()}; Mb=function(p,C){g.jv.call(this,"Faixa de \u00e1udio",g.FB.AUDIO,p,C);this.N=p;this.tracks={};g.Ed(this.element,"ytp-audio-menu-item");this.countLabel=new g.L({L:"div",j:[{L:"span",Ak:"Faixa de \u00e1udio"},{L:"span",B:"ytp-menuitem-label-count",Ak:"{{content}}"}]});p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.R(this,this.countLabel);g.V7(this,this.countLabel);this.U(p,"videodatachange",this.Pr);this.U(p,"onPlaybackAudioChange",this.Pr);this.Pr()}; Jo=function(p,C){c3.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.FB.Do);this.N=p;this.xM=C;this.T=!1;this.V=[];this.U(p,"presentingplayerstatechange",this.C);this.subscribe("select",this.onSelect,this);p.createClientVe(this.element,this,113682);this.C()}; vnX=function(p,C){g.Nl.call(this,g.H3({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.N=p;this.xM=C;this.U(this.element,"click",this.onClick);this.xM.zB(this)}; FTY=function(p,C){var V;g.wG(p.K())&&(V={L:"div",B:"ytp-panel-footer-content",j:[{L:"span",Ak:"Ajuste a qualidade do download em "},{L:"a",B:"ytp-panel-footer-content-link",Ak:"Detalhes",X:{href:"/account_downloads"}}]});g.jv.call(this,"Qualidade",g.FB.fX,p,C,void 0,void 0,V);this.N=p;this.sY={};this.Z={};this.S={};this.Vn=new Set;this.T=this.W=!1;this.D="unknown";this.a$="";this.b_=new g.Hl;g.R(this,this.b_);this.W=this.N.G("web_player_use_new_api_for_quality_pullback");this.T=this.N.G("web_player_enable_premium_hbr_playback_cap"); p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.Ed(this.C.element,"ytp-quality-menu");this.U(p,"videodatachange",this.du);this.U(p,"videoplayerreset",this.du);this.U(p,"onPlaybackQualityChange",this.Tw);this.du();p.createClientVe(this.element,this,137721)}; KTs=function(p,C,V){var N=p.sY[C],H=g.PB[C];return Sbj(p,N?N.qualityLabel:H?H+"p":"Autom\u00e1tico",C,V)}; D2v=function(p,C,V,N,H){var X=(C=p.T?p.S[C]:p.Z[C])&&C.quality,d=C&&C.qualityLabel;d=d?d:"Autom\u00e1tico";N&&(d="("+d);p=Sbj(p,d,X||"",H);N&&p.j.push(")");(N=(N=C&&C.paygatedQualityDetails)&&N.paygatedIndicatorText)&&V&&p.j.push({L:"div",B:"ytp-premium-label",Ak:N});return p}; Sbj=function(p,C,V,N){C={L:"span",i_:N,j:[C]};var H;N="ytp-swatch-color";if(p.W||p.T)N="ytp-swatch-color-white";V==="highres"?H="8K":V==="hd2880"?H="5K":V==="hd2160"?H="4K":V.indexOf("hd")===0&&V!=="hd720"&&(H="HD");H&&(C.j.push(" "),C.j.push({L:"sup",B:N,Ak:H}));return C}; mR=function(p,C,V,N){g.L.call(this,{L:"div",B:"ytp-input-slider-section",j:[{L:"input",B:"ytp-input-slider",X:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.V=p;this.W=C;this.D=V;this.initialValue=N;this.T=this.rV("ytp-input-slider");this.C=N?N:p;this.init();this.U(this.T,"input",this.J)}; Z9y=function(p,C){p.C=C;p.updateValue("slidervalue",p.C);p.T.valueAsNumber=p.C;uSY(p,C)}; uSY=function(p,C){p.T.style.setProperty("--yt-slider-shape-gradient-percent",(C-p.V)/(p.W-p.V)*100+"%")}; v$=function(p){mR.call(this,p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],.05,p.getPlaybackRate());this.N=p;this.S=g.iK("P");this.Z=BCj(this.b_,this);g.Ed(this.T,"ytp-speedslider");g.Ed(this.S,"ytp-speedslider-text");p=this.S;var C=this.T;C.parentNode&&C.parentNode.insertBefore(p,C.nextSibling);U2s(this);this.U(this.T,"change",this.sY);this.U(this.T,"keydown",this.a$)}; U2s=function(p){p.S.textContent=p.C+"x"}; Fp=function(p,C,V,N,H,X,d){g.L.call(this,{L:"div",B:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},j:[{L:"div",B:"ytp-slider",j:[{L:"div",B:"ytp-slider-handle"}]}]});this.J=p;this.Z=C;this.C=V;this.V=N;this.a$=H;this.Sa=X;this.range=this.V-this.C;this.Wr=this.rV("ytp-slider-section");this.S=this.rV("ytp-slider");this.b_=this.rV("ytp-slider-handle");this.D=new g.Hx(this.S, !0);this.T=d?d:V;g.R(this,this.D);this.D.subscribe("dragmove",this.Td,this);this.U(this.element,"keydown",this.kU);this.U(this.element,"wheel",this.y3);this.init()}; SD=function(p){Fp.call(this,.05,.05,p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],150,20,p.getPlaybackRate());this.N=p;this.W=g.iK("P");this.Vn=BCj(this.sY,this);g.Ed(this.S,"ytp-speedslider");g.Ed(this.W,"ytp-speedslider-text");p=this.W;var C=this.S;C.parentNode&&C.parentNode.insertBefore(p,C.nextSibling);fIY(this);this.U(this.N,"onPlaybackRateChange",this.updateValues)}; fIY=function(p){p.W.textContent=O9L(p,p.T)+"x"}; O9L=function(p,C){p=Number(g.J9(C,p.C,p.V).toFixed(2));C=Math.floor((p+.001)*100%5+2E-15);var V=p;C!==0&&(V=p-C*.01);return Number(V.toFixed(2))}; ys9=function(p){g.Sp.call(this,{L:"div",B:"ytp-speedslider-component"});p.G("web_settings_use_input_slider")?this.T=new v$(p):this.T=new SD(p);g.R(this,this.T);this.element.appendChild(this.T.element)}; qbu=function(p){var C=new ys9(p);wL.call(this,p,C,"Personalizado");g.R(this,C)}; IIV=function(p,C){var V=new qbu(p);g.jv.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.FB.Np,p,C,Kv(p)?void 0:"Personalizado",Kv(p)?void 0:function(){g.WO(C,V)}); var N=this;this.W=!1;g.R(this,V);this.D=new v$(p);g.R(this,this.D);p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{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.N=p;this.W=!1;this.a$=null;Kv(p)?(this.T=g.Ks("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.N.getPlaybackRate().toString()}),this.S=this.N.getPlaybackRate()):this.S=this.T=null;this.Z=this.N.getAvailablePlaybackRates();this.U(p,"presentingplayerstatechange",this.Pr);var H;((H=this.N.getVideoData())==null?0:H.VL())&&this.U(p,"serverstitchedvideochange",this.Pr);this.U(this.D.T,"change",function(){N.W=!0;N.Pr()}); this.Pr()}; Asa=function(p,C){var V=b9H(C);p.T&&(p.W||C===p.S)?(p.kN(p.T),p.Jc(C.toString())):p.kN(V)}; kLu=function(p){p.dh(p.Z.map(b9H));p.T=null;p.S=null;var C=p.N.getPlaybackRate();if(!p.Z.includes(C)||Kv(p.N))on1(p,C),p.kN(p.T)}; on1=function(p,C){p.S=C;p.T=g.Ks("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:C.toString()});C=p.Z.map(b9H);C.unshift(p.T);p.dh(C)}; b9H=function(p){return p.toString()}; Kv=function(p){return p.G("web_settings_menu_surface_custom_playback")}; x2S=function(p){return p.G("web_settings_menu_surface_custom_playback")&&p.G("web_settings_use_input_slider")}; zda=function(p,C,V,N){var H=new g.$m(C,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.jv.call(this,N.text||"",p,C,V,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.WO(V,H)}); var X=this;g.Ed(this.element,"ytp-subtitles-options-menu-item");this.setting=N.option.toString();p=N.options;this.settings=g.tB(p,this.kP,this);this.W=H;g.R(this,this.W);C=new g.Nl({L:"div",B:"ytp-menuitemtitle",Ak:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.R(this,C);this.W.zB(C,!0);this.S=new g.Nl({L:"div",B:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},j:[{L:"div",B:"ytp-menuitem-label",Ak:"Ativ."}]},-1);g.R(this,this.S);this.W.zB(this.S,!0);this.U(this.S.element, "click",function(){YbH(X,!0)}); this.T=new g.Nl({L:"div",B:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},j:[{L:"div",B:"ytp-menuitem-label",Ak:"Desat"}]},-2);g.R(this,this.T);this.W.zB(this.T,!0);this.U(this.T.element,"click",function(){YbH(X,!1)}); this.dh(g.AU(p,this.kP))}; YbH=function(p,C){p.publish("settingChange",p.setting+"Override",!C);p.xM.Ou()}; Di=function(p,C){g.$m.call(this,p,void 0,"Op\u00e7\u00f5es");var V=this;this.ob={};for(var N=0;N=0);if(!(C<0||C===p.S)){p.S=C;C=243*p.scale;var V=141*p.scale,N=XYe(p.C,p.S,C);l$a(p.bg,N,C,V,!0);p.sY.start()}}; lwv=function(p){var C=p.T;p.type===3&&p.Vn.stop();p.api.removeEventListener("appresize",p.b_);p.Z||C.setAttribute("title",p.V);p.V="";p.T=null}; cia=function(p){g.L.call(this,{L:"button",i_:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-watch-later-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-watch-later-title",Ak:"Assistir mais tarde"}]});this.N=p;this.icon=null;this.visible=this.isRequestPending=this.T=!1;Lwv(p);p.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.U(p,"videoplayerreset",this.onReset);this.U(p, "appresize",this.XD);this.U(p,"videodatachange",this.XD);this.U(p,"presentingplayerstatechange",this.XD);this.XD();p=this.N.K();var C=g.zW("yt-player-watch-later-pending");p.S&&C?(UGu(),tNL(this)):this.Pr(2);g.Tz(this.element,"ytp-show-watch-later-title",g.KI(p));o$(this.N,this.element,this)}; TpV=function(p){var C=p.N.getPlayerSize(),V=p.N.K(),N=p.N.getVideoData(),H=g.KI(V)&&g.nT(p.N)&&g.r(p.N.getPlayerStateObject(),128),X=V.V;return V.cV&&C.width>=240&&!N.isAd()&&N.cV&&!H&&!g.lx(N)&&!p.N.isEmbedsShortsMode()&&!X}; MNs=function(p,C){kSL(g.zM(p.N.K()),"wl_button",function(){UGu({videoId:C});window.location.reload()})}; tNL=function(p){if(!p.isRequestPending){p.isRequestPending=!0;p.Pr(3);var C=p.N.getVideoData();C=p.T?C.removeFromWatchLaterCommand:C.addToWatchLaterCommand;var V=p.N.xN(),N=p.T?function(){p.T=!1;p.isRequestPending=!1;p.Pr(2);p.N.K().D&&p.N.Jk("WATCH_LATER_VIDEO_REMOVED")}:function(){p.T=!0; p.isRequestPending=!1;p.Pr(1);p.N.K().C&&p.N.Y7(p.element);p.N.K().D&&p.N.Jk("WATCH_LATER_VIDEO_ADDED")}; a4(V,C).then(N,function(){p.isRequestPending=!1;p.Pr(4,"Ocorreu um erro. Tente novamente mais tarde.");p.N.K().D&&p.N.Jk("WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; Jiv=function(p,C){if(C!==p.icon){switch(C){case 3:var V=mv();break;case 1:V=Uy();break;case 2:V={L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{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:V={L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path", TB:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}p.updateValue("icon",V);p.icon=C}}; g.ov=function(){g.Hz.apply(this,arguments);this.wM=(this.WS=g.KI(this.api.K()))&&(this.api.K().C||Hw()||Vc());this.wm=48;this.oh=69;this.IF=this.b0=null;this.Xj=[];this.DH=this.ZP=this.Bd=this.O5=this.WV=null;this.c9=[];this.contextMenu=this.eq=this.overflowButton=this.j5=this.Mn=this.searchButton=this.copyLinkButton=this.shareButton=this.by=this.o_=this.title=this.channelAvatar=this.rB=this.tooltip=null;this.G9=!1;this.dA=this.Yh=this.gg=this.O2=null;this.IM=this.Oz=this.Az=!1}; m0X=function(p){var C=p.api.K(),V=g.r(p.api.getPlayerStateObject(),128);return C.S&&V&&!p.api.isFullscreen()}; v8v=function(p){if(p.OE()&&!p.api.isEmbedsShortsMode()&&p.j5){var C=p.api.G("web_player_hide_overflow_button_if_empty_menu");!p.by||C&&!TpV(p.by)||xWs(p.j5,p.by);!p.shareButton||C&&!gRV(p.shareButton)||xWs(p.j5,p.shareButton);!p.copyLinkButton||C&&!BvY(p.copyLinkButton)||xWs(p.j5,p.copyLinkButton)}else{if(p.j5){C=p.j5;for(var V=g.F(C.actionButtons),N=V.next();!N.done;N=V.next())N.value.detach();C.actionButtons=[]}p.searchButton&&!g.t2(p.o_.element,p.searchButton.element)&&p.searchButton.u_(p.o_.element); p.by&&!g.t2(p.o_.element,p.by.element)&&p.by.u_(p.o_.element);p.shareButton&&!g.t2(p.o_.element,p.shareButton.element)&&p.shareButton.u_(p.o_.element);p.copyLinkButton&&!g.t2(p.o_.element,p.copyLinkButton.element)&&p.copyLinkButton.u_(p.o_.element)}}; F7s=function(p,C,V){C=V?C.lastElementChild:C.firstElementChild;for(var N=null;C;){if(Zo(C,"display")!=="none"&&C.getAttribute("aria-hidden")!=="true"){var H=void 0;C.tabIndex>=0?H=C:H=F7s(p,C,V);H&&(N?V?H.tabIndex>N.tabIndex&&(N=H):H.tabIndexN/1E3+1)return{msg:"in-the-past"};if(X.isLivePlayback&&!isFinite(N))return{msg:"live-infinite"};(N=C.Nt())&&N.isView()&&(N=N.mediaElement);if(N&&N.TC().length>12&&g.Jl(H))return{msg:"played-ranges"};if(!H.V)return null;if(!d)return{msg:"no-pvd-formats"};if(!H.V.T||!d.T)return{msg:"non-dash"};N=d.videoInfos[0];var a=H.V.videoInfos[0];p.D&&id(X)&&(N=C.dc(),a= V.dc());if(!N||!a)return{msg:"no-video-info"};if(p.V&&(BB(N)||BB(a)))return{msg:"av1"};C=p.T&&X.rR()&&rN();if(a.containerType!==N.containerType)if(C)X.k_("sgap",{ierr:"container"});else return{msg:"container"};if(p.C&&!C&&(a.o$!==N.o$||a.o$===""||N.o$===""))return{msg:"codec"};if(p.S&&a.video&&N.video&&Math.abs(a.video.width/a.video.height-N.video.width/N.video.height)>.01)return{msg:"ratio"};if(g.Jl(X)&&g.Jl(H))return{msg:"content-protection"};d=d.T[0];H=H.V.T[0];V=d.audio;var E=H.audio;if(V.sampleRate!== E.sampleRate&&!g.kZ)if(C)X.k_("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:d.itag,cr:V.sampleRate,ni:H.itag,nr:E.sampleRate};return(V.numChannels||2)!==(E.numChannels||2)?{msg:"channel-count"}:p.W&&X.rR()&&N.video.fps!==a.video.fps?{msg:"fps"}:null}; ubQ=function(p,C,V){var N=p.getVideoData(),H=C.getVideoData();if(!N.K().supportsGaplessShorts())return{nq:"env"};if(V.Y){if(N.X4&&!N.isAd()||H.X4&&!H.isAd())return{nq:"autoplay"}}else if(N.X4||H.X4)return{nq:"autoplay"};if(!N.J)return{nq:"client"};if(!p.SS())return{nq:"no-empty"};p=D01(V,p,C,Infinity);return p!=null?{nq:p.msg}:null}; Ya=function(p){g.Y.call(this);this.app=p;this.S=this.V=this.n4=this.T=null;this.C=1;this.events=new g.Rr(this);this.events.U(this.app.ea,g.lG("gaplessshortslooprange"),this.D);g.R(this,this.events)}; ZCS=function(){this.S=this.Y=this.V=this.D=this.W=this.C=this.T=!1}; U0v=function(p){var C=new ZCS;C.T=p.G("h5_gapless_support_types_diff");C.W=p.G("h5_gapless_error_on_fps_diff");C.D=p.G("html5_gapless_use_format_info_fix");C.V=p.G("html5_gapless_disable_on_av1")&&!p.G("html5_gapless_enable_on_av1");C.C=p.G("html5_gapless_check_codec_diff_strictly");C.Y=p.G("html5_gapless_on_ad_autoplay");C.S=p.G("html5_gapless_disable_diff_aspect_radio");return C}; g.z8=function(p,C,V,N){N=N===void 0?!1:N;s3.call(this);this.mediaElement=p;this.start=C;this.end=V;this.T=N}; fwL=function(p,C,V,N,H,X){X=X===void 0?0:X;g.Y.call(this);var d=this;this.policy=p;this.T=C;this.C=V;this.lJ=H;this.W=X;this.S=this.V=null;this.currentVideoDuration=this.Y=-1;this.D=!1;this.PK=new hK;this.Y5=N-C.yZ()*1E3;this.PK.then(void 0,function(){}); this.timeout=new g.N8(function(){d.Qf("timeout")},1E4); g.R(this,this.timeout);this.J=isFinite(N);this.status={status:0,error:null}}; qPs=function(p){var C,V,N,H,X,d,a,E,l,t;return g.I(function(c){if(c.C==1){if(p.fS())return c.return(Promise.reject(Error(p.status.error||"disposed")));p.timeout.start();C=g.Rv.dB();return g.y(c,p.PK,2)}g.Rv.Dk("gtfta",C);V=p.T.Nt();if(V.isEnded())return p.Qf("ended_in_finishTransition"),c.return(Promise.reject(Error(p.status.error||"")));if(!p.S||!j6(p.S))return p.Qf("next_mse_closed"),c.return(Promise.reject(Error(p.status.error||"")));if(p.C.In()!==p.S)return p.Qf("next_mse_mismatch"),c.return(Promise.reject(Error(p.status.error|| "")));N=OCX(p);H=N.yO;X=N.KE;d=N.Mj;p.T.Hz(!1,!0);a=yiY(V,H,d,!p.C.getVideoData().isAd());p.C.setMediaElement(a);(E=p.T.CJ())&&p.C.GP(E.Er,E.uC);p.J&&(p.C.seekTo(p.C.getCurrentTime()+.001,{EC:!0,kZ:3,NZ:"gapless_pseudo"}),a.play(),YD());l=V.X0();l.cpn=p.T.getVideoData().clientPlaybackNonce;l.st=""+H;l.et=""+d;p.C.k_("gapless",l);p.T.k_("gaplessTo",{cpn:p.C.getVideoData().clientPlaybackNonce});t=p.T.getPlayerType()===p.C.getPlayerType();bZS(p.T,X,!1,t,p.C.getVideoData().clientPlaybackNonce);bZS(p.C, p.C.getCurrentTime(),!0,t,p.T.getVideoData().clientPlaybackNonce);p.C.VU=!0;g.mo(function(){!p.C.getVideoData().sY&&p.C.getPlayerState().isOrWillBePlaying()&&JDa(p.C)}); nv(p,6);p.dispose();return c.return(Promise.resolve())})}; o89=function(p){if(p.C.getVideoData().V){var C=p.lJ.K().G("html5_gapless_suspend_next_loader")&&p.W===1;HZe(p.C,p.S,C,Iw9(p));nv(p,3);bCs(p);var V=Ai1(p);C=V.N_;V=V.Zl;C.subscribe("updateend",p.KW,p);V.subscribe("updateend",p.KW,p);p.KW(C);p.KW(V)}}; bCs=function(p){p.T.unsubscribe("internalvideodatachange",p.Z_,p);p.C.unsubscribe("internalvideodatachange",p.Z_,p);p.lJ.K().G("html5_gapless_use_format_info_fix")&&(p.T.unsubscribe("internalvideoformatchange",p.Z_,p),p.C.unsubscribe("internalvideoformatchange",p.Z_,p));p.T.unsubscribe("mediasourceattached",p.Z_,p);p.C.unsubscribe("statechange",p.nI,p)}; yiY=function(p,C,V,N){p=p.isView()?p.mediaElement:p;return new g.z8(p,C,V,N)}; nv=function(p,C){C<=p.status.status||(p.status={status:C,error:null},C===5&&p.PK.resolve())}; Iw9=function(p){return p.lJ.K().G("html5_gapless_no_clear_buffer_timeline")&&p.W===1&&$B(p.T.getVideoData())}; OCX=function(p){var C=p.T.Nt();C=C.isView()?C.start:0;var V=p.T.getVideoData().isLivePlayback?Infinity:p.T.x6(!0);V=Math.min(p.Y5/1E3,V)+C;var N=p.J?100:0;p=V-p.C.I_()+N;return{Ps:C,yO:p,KE:V,Mj:Infinity}}; Ai1=function(p){return{N_:p.V.T.jr,Zl:p.V.C.jr}}; x0u=function(p){g.Y.call(this);var C=this;this.app=p;this.W=this.C=this.T=null;this.J=!1;this.V=this.S=null;this.D=U0v(this.app.K());this.Y=function(){g.mo(function(){kaQ(C)})}}; YPX=function(p,C,V,N,H){N=N===void 0?0:N;H=H===void 0?0:H;p.SS()||eD(p);p.S=new hK;p.T=C;var X=V,d=H===0;d=d===void 0?!0:d;var a=p.app.L1(),E=a.getVideoData().isLivePlayback?Infinity:a.x6(!0)*1E3;X>E&&(X=E-200,p.J=!0);d&&a.getCurrentTime()>=X/1E3?p.Y():(p.C=a,d&&(d=X,X=p.C,p.app.ea.addEventListener(g.Ez("vqueued"),p.Y),d=isFinite(d)||d/1E3>X.getDuration()?d:0x8000000000000,p.W=new g.sz(d,0x8000000000000,{namespace:"vqueued"}),X.addCueRange(p.W)));d=N/=1E3;X=C.getVideoData().T;N&&X&&p.C&&(a=N,E=0, C.getVideoData().isLivePlayback&&(d=Math.min(V/1E3,p.C.x6(!0)),E=Math.max(0,d-p.C.getCurrentTime()),a=Math.min(N,C.x6()+E)),d=BFY(X,a)||N,d!==N&&p.T.k_("qvaln",{st:N,at:d,rm:E,ct:a}));C=d;N=p.T;N.getVideoData().QZ=!0;N.getVideoData().J=!0;g.vO(N,!0);X={};p.C&&(X=p.C.MD(),d=p.C.getVideoData().clientPlaybackNonce,X={crt:(X*1E3).toFixed(),cpn:d});N.k_("queued",X);C!==0&&N.seekTo(C+.01,{EC:!0,kZ:3,NZ:"videoqueuer_queued"});p.V=new fwL(p.D,p.app.L1(),p.T,V,p.app,H);V=p.V;V.status.status!==Infinity&&(nv(V, 1),V.T.subscribe("internalvideodatachange",V.Z_,V),V.C.subscribe("internalvideodatachange",V.Z_,V),V.lJ.K().G("html5_gapless_use_format_info_fix")&&(V.T.subscribe("internalvideoformatchange",V.Z_,V),V.C.subscribe("internalvideoformatchange",V.Z_,V)),V.T.subscribe("mediasourceattached",V.Z_,V),V.C.subscribe("statechange",V.nI,V),V.T.subscribe("newelementrequired",V.zr,V),V.Z_());return p.S}; kaQ=function(p){var C,V,N,H,X,d,a,E,l;g.I(function(t){switch(t.C){case 1:if(p.fS()||!p.S||!p.T)return t.return();p.J&&sD(p.app.L1(),!0,!1);V=p.app.K().G("html5_force_csdai_gapful_transition")&&((C=p.app.L1())==null?void 0:C.getVideoData().isDaiEnabled());N=null;if(!p.V||V){t.EY(2);break}g.vv(t,3);return g.y(t,qPs(p.V),5);case 5:g.Fe(t,2);break;case 3:N=H=g.Sa(t);case 2:if(!p.T)return t.return();g.Rv.zz("vqsp",function(){P$(p.app,p.T)}); if(!p.T)return t.return();X=p.T.Nt();p.app.K().G("html5_gapless_seek_on_negative_time")&&X&&X.getCurrentTime()<-.01&&p.T.seekTo(0);g.Rv.zz("vqpv",function(){p.app.playVideo()}); if(N||V)p.T?(d=N?N.message:"forced",(a=p.C)==null||a.k_("gapfulfbk",{r:d}),sej(p.T,d)):(E=p.C)==null||E.k_("gapsp",{});l=p.S;eD(p);l&&l.resolve();return t.return(Promise.resolve())}})}; eD=function(p,C){C=C===void 0?!1:C;if(p.C){if(p.W){var V=p.C;p.app.ea.removeEventListener(g.Ez("vqueued"),p.Y);V.removeCueRange(p.W)}p.C=null;p.W=null}p.V&&(p.V.status.status!==6&&(V=p.V,V.status.status!==Infinity&&V.W!==1&&V.Qf("Canceled")),p.V=null);p.S=null;p.T&&!C&&p.T!==g.O5(p.app,1)&&p.T!==p.app.L1()&&p.T.dispose();p.T&&C&&OD(p.T);p.T=null;p.J=!1}; z7a=function(p){var C;return((C=p.V)==null?void 0:C.currentVideoDuration)||-1}; R7a=function(p,C,V){if(p.SS())return"qie";if(p.T==null||p.T.fS()||p.T.getVideoData()==null)return"qpd";if(C.videoId!==p.T.qg())return"vinm";if(z7a(p)<=0)return"ivd";if(V!==1)return"upt";if((V=p.V)==null)p=void 0;else if(V.getStatus().status!==5)p="niss";else if(D01(V.policy,V.T,V.C,V.Y5)!=null)p="pge";else{C=Ai1(V);p=C.N_;var N=C.Zl;C=g.mi(V.lJ.K().experiments,"html5_shorts_gapless_next_buffer_in_seconds");V=V.Y+C;N=EJ(N.K7(),V);p=EJ(p.K7(),V);p=!(C>0)||N&&p?null:"neb"}return p!=null?p:null}; n8H=function(){g.ca.call(this);var p=this;this.fullscreen=0;this.S=this.V=this.pictureInPicture=this.T=this.C=this.inline=!1;this.W=function(){p.JE()}; qpu(this.W);this.Y=this.getVisibilityState(this.gi(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.l0(),this.vE(),this.Gq(),this.VV())}; SP=function(p){return!(p.isMinimized()||p.isInline()||p.isBackground()||p.l0()||p.vE()||p.Gq()||p.VV())}; e7V=function(p,C){g.Y.call(this);this.C=p;this.T=C}; g8a=function(p){var C=p.experiments,V=C.OY.bind(C);PAX=V("html5_use_async_stopVideo");w9L=V("html5_pause_for_async_stopVideo");$0V=V("html5_not_reset_media_source");V("html5_listen_for_audio_output_changed")&&(IUS=!0);VP=V("html5_not_reset_media_source");L7Q=V("html5_not_reset_media_source");Jj=V("html5_retain_source_buffer_appends_for_debugging");IiV=V("web_enable_auto_pip")||V("web_enable_pip_on_miniplayer");V("html5_mediastream_applies_timestamp_offset")&&(CA=!0);var N=g.mi(C,"html5_cobalt_override_quic"); N&&UZ("QUIC",+(N>0));(N=g.mi(C,"html5_cobalt_audio_write_ahead_ms"))&&UZ("Media.AudioWriteDurationLocal",N);(N=V("html5_cobalt_enable_decode_to_texture"))&&UZ("Media.PlayerConfiguration.DecodeToTexturePreferred",N?1:0);(p.Gk()||V("html5_log_cpu_info"))&&Da1();Error.stackTraceLimit=50;var H=g.mi(C,"html5_idle_rate_limit_ms");H&&Object.defineProperty(window,"requestIdleCallback",{value:function(X){return window.setTimeout(X,H)}}); UBV(p.W);Sf=V("html5_use_ump_request_slicer");oEQ=V("html5_record_now");V("html5_disable_streaming_xhr")&&(gB=!1);V("html5_byterate_constraints")&&(VS=!0);V("html5_use_non_active_broadcast_for_post_live")&&(PR=!0);V("html5_sunset_aac_high_codec_family")&&(gO["141"]="a")}; W7a=function(p){return p.slice(12).replace(/_[a-z]/g,function(C){return C.toUpperCase().replace("_","")}).replace("Dot",".")}; QUv=function(p){var C={},V;for(V in p.experiments.flags)if(V.startsWith("cobalt_h5vcc")){var N=W7a(V),H=g.mi(p.experiments,V);N&&H&&(C[N]=UZ(N,H))}return C}; wR=function(p,C,V,N,H){H=H===void 0?[]:H;g.Y.call(this);this.yn=p;this.Dh=C;this.S=V;this.segments=H;this.T=void 0;this.C=new Map;H.length&&(this.T=H[0])}; riV=function(p){if(!(p.segments.length<2)){var C=p.segments.shift();if(C){var V=C.T,N=[];if(V.size){V=g.F(V.values());for(var H=V.next();!H.done;H=V.next()){H=g.F(H.value);for(var X=H.next();!X.done;X=H.next()){X=X.value;for(var d=g.F(X.segments),a=d.next();!a.done;a=d.next())(a=$a(a.value))&&N.push(a);X.removeAll()}}}(V=$a(C))&&N.push(V);N=g.F(N);for(V=N.next();!V.done;V=N.next())p.C.delete(V.value);C.dispose()}}}; Lv=function(p,C,V,N){if(!p.T||C>V)return!1;C=new wR(p.yn,C,V,p.T,N);N=g.F(N);for(V=N.next();!V.done;V=N.next()){V=V.value;var H=$a(V);H&&H!==$a(p.T)&&p.C.set(H,[V])}p=p.T;p.T.has(C.r6())?p.T.get(C.r6()).push(C):p.T.set(C.r6(),[C]);return!0}; jP=function(p,C){return p.C.get(C)}; BpY=function(p,C,V){p.C.set(C,V)}; gR=function(p,C,V,N,H,X){return new Gaa(V,V+(N||0),!N,C,p,H,X)}; Gaa=function(p,C,V,N,H,X,d){g.Y.call(this);this.Dh=p;this.V=C;this.C=V;this.type=N;this.S=H;this.videoData=X;this.vu=d;this.T=new Map;MI(X)}; $a=function(p){return p.videoData.clientPlaybackNonce}; pK1=function(p){if(p.T.size)for(var C=g.F(p.T.values()),V=C.next();!V.done;V=C.next()){V=g.F(V.value);for(var N=V.next();!N.done;N=V.next())N.value.dispose()}p.T.clear()}; Clj=function(p){this.end=this.start=p}; g.W$=function(p,C,V){g.Y.call(this);var N=this;this.api=p;this.yn=C;this.Ta=V;this.Wr=new Map;this.KS=new Map;this.vr=new Map;this.C=new Map;this.S=[];this.W=[];this.V=new Map;this.wy=new Map;this.Z=new Map;this.Q$=NaN;this.kM=this.Qn=this.YM=null;this.Hc=new g.N8(function(){jzv(N,N.Q$,N.YM||void 0)}); this.events=new g.Rr(this);this.ER=15E3;this.b_=new g.N8(function(){N.Vn=!0;var H=N.Ta,X=N.ER;H.k_("sdai",{aftimeout:X});H.oN(new qD("ad.fetchtimeout",{timeout:X}));VxV(N);N.mQ(!1)},this.ER); this.Vn=!1;this.Y=new Map;this.Wc=[];this.a$=null;this.cV=new Set;this.Sa=[];this.qW=[];this.QZ=[];this.RN=[];this.T=void 0;this.UY=0;this.Y_=!0;this.sY=!1;this.Ga=[];this.I6=new Set;this.kt=new Set;this.FO=new Set;this.Fx=0;this.qo=new Set;this.va=0;this.bX=this.VZ=!1;this.vc=this.J="";this.X$=null;this.Sr={mRV:function(){return N.C}, pPn:function(){return N.S}, zTn:function(){return N.V}, Tb:function(H){N.onCueRangeEnter(N.C.get(H))}, I$Y:function(H){N.onCueRangeExit(N.C.get(H))}, Whr:function(H,X){N.C.set(H,X)}, N9$:function(H){N.vc=H}, XZ:function(){return N.XZ()}, vQ$:function(H){return N.Z.get(H)}}; this.Ta.getPlayerType();RDL(this.Ta,this);this.R$=this.yn.Gk();g.R(this,this.Hc);g.R(this,this.events);g.R(this,this.b_);this.events.U(this.api,g.Ez("serverstitchedcuerange"),this.onCueRangeEnter);this.events.U(this.api,g.lG("serverstitchedcuerange"),this.onCueRangeExit)}; dwY=function(p,C,V,N,H,X,d,a){var E=NQQ(p,X,X+H);p.Vn&&p.Ta.k_("sdai",{adaftto:1});V||p.Ta.k_("sdai",{missadcon:1,enter:X,len:H,aid:a});p.D&&!p.D.gG&&(p.D.gG=a);p.bX&&p.Ta.k_("sdai",{adfbk:1,enter:X,len:H,aid:a});var l=p.Ta;d=d===void 0?X+H:d;X===d&&!H&&p.yn.G("html5_allow_zero_duration_ads_on_timeline")&&p.Ta.k_("sdai",{attl0d:1});X>d&&QK(p,{reason:"enterTime_greater_than_return",Dh:X,Ai:d});var t=l.Wa()*1E3;Xl&&QK(p,{reason:"parent_return_greater_than_content_duration",Ai:d,nEY:l});l=null;t=g.Xv(p.W,{Ai:X},function(c,T){return c.Ai-T.Ai}); t>=0&&(l=p.W[t],l.Ai>X&&H81(p,C.video_id||"",X,d,l));if(E&&l)for(t=0;t.5&&p.Ta.k_("sdai",{ttdtb:1,delta:d,cpn:H.cpn,enter:C.adCpn,exit:V.adCpn,seek:N,skip:X});p.api.G("html5_ssdai_enable_media_end_cue_range")&&p.api.bz();if(C.isAd&&V.isAd){H=!!X;if(C.adCpn&&V.adCpn){var a=p.V.get(C.adCpn);var E=p.V.get(V.adCpn)}H?p.Ta.k_("sdai",{igtransskip:1,enter:C.adCpn,exit:V.adCpn,seek:N,skip:X}):hHy(p,E,a,V.v6,C.v6,N,H)}else if(!C.isAd&&V.isAd){p.vc=H.cpn;p.api.publish("serverstitchedvideochange"); a=B$(p,"a2c");p.Ta.k_("sdai",a);p.Fx=0;if(a=V.zN)p.UY=a.end;var l;V.adCpn&&(l=p.V.get(V.adCpn));l&&Ii(p.Ta,l,H,V.v6,C.v6,N,!!X)}else if(C.isAd&&!V.isAd){var t;C.adCpn&&(t=p.V.get(C.adCpn));t&&(p.UY=0,p.vc=t.cpn,i8a(p,t),l=B$(p,"c2a",t),p.Ta.k_("sdai",l),p.Fx=1,Ii(p.Ta,H,t,V.v6,C.v6,N,!!X))}}; szy=function(p,C,V){V=V===void 0?0:V;var N=(C+V)*1E3,H=g.Xv(p.W,{Dh:N},function(a,E){return a.Dh-E.Dh}); H=H<0?(H+2)*-1:H;if(H>=0)if($B(p.Ta.getVideoData())&&p.yn.G("html5_ssdai_overdecorate")||p.yn.G("html5_cabr_ssdai_overdecorate")){N=C*1E3;for(var X=H;X<=H+1&&X=d.Dh-V*1E3&&N<=d.Ai+V*1E3)return{jI:d,KV:C}}}else if(p=p.W[H],p.Ai>=N)return{jI:p,KV:C};return{jI:void 0,KV:C}}; EwV=function(p,C){var V="";(C=a2H(p,C))&&(V=C.getId());return V?p.V.get(V):void 0}; a2H=function(p,C){if(p.vc){var V=p.C.get(p.vc);if(V&&V.start-200<=C&&V.end+200>=C)return V}p=g.F(p.C.values());for(V=p.next();!V.done;V=p.next())if(V=V.value,V.start<=C&&V.end>=C)return V}; jzv=function(p,C,V){var N=p.kM||p.api.L1().getPlayerState();p7(p,!0);p.Ta.seekTo(C,V);p=p.api.L1();C=p.getPlayerState();N.isOrWillBePlaying()&&!C.isOrWillBePlaying()?p.playVideo():N.isPaused()&&!C.isPaused()&&p.pauseVideo()}; p7=function(p,C){p.Q$=NaN;p.YM=null;p.Hc.stop();p.Qn&&C&&EXe(p.Qn);p.kM=null;p.Qn=null}; l2L=function(p){var C=C===void 0?-1:C;var V=V===void 0?Infinity:V;for(var N=[],H=g.F(p.W),X=H.next();!X.done;X=H.next())X=X.value,(X.DhV)&&N.push(X);p.W=N;N=g.F(p.C.values());for(H=N.next();!H.done;H=N.next())H=H.value,H.start>=C&&H.end<=V&&(p.Ta.removeCueRange(H),p.C.delete(H.getId()),p.Ta.k_("sdai",{rmAdCR:1}));N=szy(p,C/1E3);C=N.jI;N=N.KV;if(C&&(N=N*1E3-C.Dh,H=C.Dh+N,C.durationMs=N,C.Ai=H,N=p.C.get(C.cpn))){H=g.F(p.S);for(X=H.next();!X.done;X=H.next())X=X.value,X.start===N.end?X.start= C.Dh+C.durationMs:X.end===N.start&&(X.end=C.Dh);N.start=C.Dh;N.end=C.Dh+C.durationMs}if(C=szy(p,V/1E3).jI){var d;N="playback_timelinePlaybackId_"+C.OZ+"_video_id_"+((d=C.videoData)==null?void 0:d.videoId)+"_durationMs_"+C.durationMs+"_enterTimeMs_"+C.Dh+"_parentReturnTimeMs_"+C.Ai;p.SH("Invalid_clearEndTimeMs_"+V+"_that_falls_during_"+N+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; txL=function(p){p.Wr.clear();p.KS.clear();p.vr.clear();p.C.clear();p.S=[];p.W=[];p.V.clear();p.wy.clear();p.Z.clear();p.Y.clear();p.Wc=[];p.a$=null;p.cV.clear();p.Sa=[];p.qW=[];p.QZ=[];p.RN=[];p.Ga=[];p.I6.clear();p.kt.clear();p.FO.clear();p.qo.clear();p.Vn=!1;p.T=void 0;p.UY=0;p.Y_=!0;p.sY=!1;p.Fx=0;p.va=0;p.VZ=!1;p.bX=!1;p.J="";p.b_.isActive()&&rR(p)}; TQX=function(p,C,V,N,H,X){if(!p.bX)if(g.cge(p,V))p.R$&&p.Ta.k_("sdai",{gdu:"undec",seg:V,itag:H});else if(C=C7(p,C,V,N,X),!(p.Ta.getVideoData().VL()&&(C==null?0:C.LQ)))return C}; C7=function(p,C,V,N,H){var X=p.Y.get(V);if(!X){if(X=Mxy(p,C))return X;C=jM(p,V-1,N!=null?N:2);if(H)return p.Ta.k_("sdai",{misscue:H,sq:V,type:N,prevsstate:C==null?void 0:C.Ja,prevrecord:p.Y.has(V-1)}),p.Y.get(V-1);if((C==null?void 0:C.Ja)===2)return p.Ta.k_("sdai",{adnf:1,sq:V,type:N,prevrecord:p.Y.has(V-1)}),p.Y.get(V-1)}return X}; Mxy=function(p,C){C+=p.SX();if(p.yn.G("html5_lifa_overdecorate_fix"))a:{var V=1;V=V===void 0?0:V;var N=C*1E3;p=g.F(p.W);for(var H=p.next();!H.done;H=p.next()){H=H.value;var X=H.fA?H.fA*1E3:H.Dh;if(N>=H.Dh-V*1E3&&N<=X+H.durationMs+V*1E3){C={jI:H,KV:C};break a}}C={jI:void 0,KV:C}}else C=szy(p,C,1);return C.jI}; JgS=function(p,C){C=C===void 0?"":C;var V=Nn(C)||void 0;if(!C||!V){var N;p.Ta.k_("sdai",{adcfg:(N=C)==null?void 0:N.length,dcfg:V==null?void 0:V.length})}return V}; mw1=function(p){if(p.Ga.length)for(var C=g.F(p.Ga),V=C.next();!V.done;V=C.next())p.onCueRangeExit(V.value);C=g.F(p.C.values());for(V=C.next();!V.done;V=C.next())p.Ta.removeCueRange(V.value);C=g.F(p.S);for(V=C.next();!V.done;V=C.next())p.Ta.removeCueRange(V.value);p.C.clear();p.S=[];p.Wr.clear();p.KS.clear();p.vr.clear();p.T||(p.Y_=!0)}; hHy=function(p,C,V,N,H,X,d){if(C&&V){p.vc=V.cpn;i8a(p,V);var a=B$(p,"a2a",V);p.Ta.k_("sdai",a);p.Fx++;Ii(p.Ta,C,V,N||0,H||0,!!X,!!d)}else p.Ta.k_("sdai",{misspbkonadtrans:1,enter:(V==null?void 0:V.cpn)||"",exit:(C==null?void 0:C.cpn)||"",seek:X,skip:d})}; jM=function(p,C,V){if(V===1){if(p.Wr.has(C))return p.Wr.get(C)}else{if(V===2&&p.KS.has(C))return p.KS.get(C);if(V===3&&p.vr.has(C))return p.vr.get(C)}}; FbV=function(p,C,V,N){if(N)for(N=0;NV){var X=H.end;H.end=C;vwX(p,V,X)}else if(H.start>=C&&H.startV)H.start=V;else if(H.end>C&&H.end<=V&&H.start=C&&H.end<=V){p.Ta.removeCueRange(H);if(p.Ga.includes(H))p.onCueRangeExit(H);p.S.splice(N,1);continue}N++}else vwX(p,C,V)}; vwX=function(p,C,V){C=p.fC(C,V);V=!0;g.Ev(p.S,C,function(d,a){return d.start-a.start}); for(var N=0;N0){var H=p.S[N],X=p.S[N-1];if(Math.round(X.end/1E3)>=Math.round(H.start/1E3)){X.end=H.end;H!==C?p.Ta.removeCueRange(H):V=!1;p.S.splice(N,1);continue}}N++}if(V)for(p.Ta.addCueRange(C),C=p.Ta.YW("serverstitchedcuerange",36E5),C=g.F(C),V=C.next();!V.done;V=C.next())p.C.delete(V.value.getId())}; Vw=function(p,C,V){if(V===void 0||!V){V=g.F(p.Wc);for(var N=V.next();!N.done;N=V.next()){N=N.value;if(C>=N.start&&C<=N.end)return;if(C===N.end+1){N.end+=1;return}}p.Wc.push(new Clj(C))}}; g.cge=function(p,C){p=g.F(p.Wc);for(var V=p.next();!V.done;V=p.next())if(V=V.value,C>=V.start&&C<=V.end)return!0;return!1}; H81=function(p,C,V,N,H){var X;C={reason:"overlapping_playbacks",Ztr:C,Dh:V,Ai:N,A8a:H.OZ,xRx:((X=H.videoData)==null?void 0:X.videoId)||"",beV:H.durationMs,nQY:H.Dh,Cyr:H.Ai};QK(p,C)}; QK=function(p,C,V){p=p.Ta;p.k_("timelineerror",C);C=new qD("dai.timelineerror",C);V?p.a_("dai.timelineerror",1,"RETRYABLE_ERROR",yu(C.details)):p.oN(C)}; Ssv=function(p,C){var V=[];p=p.Z.get(C);if(!p)return[];p=g.F(p);for(C=p.next();!C.done;C=p.next())C=C.value,C.cpn&&V.push(C.cpn);return V}; KbS=function(p,C,V){var N=0;p=p.Z.get(V);if(!p)return-1;p=g.F(p);for(V=p.next();!V.done;V=p.next()){if(V.value.cpn===C)return N;N++}return-1}; Dwa=function(p,C){var V=[];p=p.Z.get(C);if(!p)return[];p=g.F(p);for(var N=p.next();!N.done;N=p.next())C=void 0,(N=(C=N.value.videoData)==null?void 0:C.videoId)&&V.push(N);return V}; uhe=function(p,C){var V=0;p=p.Z.get(C);if(!p)return 0;p=g.F(p);for(C=p.next();!C.done;C=p.next())C=C.value,C.durationMs!==0&&C.Ai!==C.Dh&&V++;return V}; Z8j=function(p,C,V){var N=!1;if(V&&(V=p.Z.get(V))){V=g.F(V);for(var H=V.next();!H.done;H=V.next())H=H.value,H.durationMs!==0&&H.Ai!==H.Dh&&(H=H.cpn,C===H&&(N=!0),N&&!p.kt.has(H)&&(p.Ta.k_("sdai",{decoratedAd:H}),p.kt.add(H)))}}; VxV=function(p){p.R$&&p.Ta.k_("sdai",{adf:"0_"+((new Date).getTime()/1E3-p.va)+"_isTimeout_"+p.Vn})}; NQQ=function(p,C,V){if(p.Sa.length)for(var N=g.F(p.Sa),H=N.next(),X={};!H.done;X={Lf:void 0},H=N.next()){X.Lf=H.value;H=X.Lf.startSecs*1E3;var d=X.Lf.uc*1E3+H;if(C>H&&CH&&V0&&N>C*1E3+p.b9_)&&(N=I2v(p,V))){C=!1;V=void 0;N=g.F(N.segments);for(H=N.next();!H.done;H=N.next()){H=H.value;if(C){V=H;break}$a(H)===p.vc&&(C=!0)}N=void 0;if(V)N=$a(V);else if(C){var X;N=(X=p.timeline.T)==null?void 0:$a(X)}if(N)p.finishSegmentByCpn(p.vc,N,2,void 0);else{var d;p.api.k_("ssap",{mfnc:1,mfncc:(d=p.timeline.T)== null?void 0:$a(d)})}}}}; O8X=function(p){return p.api.G("html5_force_ssap_gapful_switch")||p.api.G("html5_ssap_enable_legacy_browser_logic")&&!rN()}; kYL=function(p,C,V,N){p.Zg.set(C,N);Agu(p,C,V);owL(p,V)}; zJ=function(p,C){p=jP(p.timeline,C);return(p==null?0:p.length)?p[0].r6():0}; R8=function(p,C){var V=V===void 0?!1:V;var N=p.timeline.T;if(!N)return{clipId:"",SI:0};var H=xwH(p,C,V);if(H)return{clipId:$a(H)||"",SI:H.r6()};p.api.k_("mci",{cs:$a(N),mt:C,tl:fA(p),invt:!!V});return{clipId:"",SI:0}}; GG=function(p){var C=p.timeline.T;if(!C)return 0;p=0;if(C.T.size===0)return(C.Ag()-C.r6())/1E3;C=C.T.values();C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=g.F(V.value);for(var N=V.next();!N.done;N=V.next())N=N.value,p+=(N.Ag()-N.r6())/1E3}return p}; zHQ=function(p,C){return(p=YsX(p,C*1E3))?p.r6():0}; RHQ=function(p,C){var V=jP(p.timeline,C);C=0;if(V==null?0:V.length)for(p=g.F(V),V=p.next();!V.done;V=p.next())V=V.value,C+=(V.Ag()-V.r6())/1E3;else return GG(p);return C}; YsX=function(p,C){if(p=jP(p.timeline,p.vc)){p=g.F(p);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.r6()<=C&&V.Ag()>=C)return V}}; nw1=function(p){var C=p.Ta.getVideoData();p.vc&&(p=p.kz.get(p.vc))&&(C=p);return C}; I2v=function(p,C,V){V=V===void 0?!1:V;var N=p.timeline.T;if(N){N=N.T;var H=Array.from(N.keys());g.hB(H);C=g.Xv(H,C);C=N.get(H[C<0?(C+2)*-1:C]);if(!V&&C){V=g.F(C);for(C=V.next();!C.done;C=V.next())if(C=C.value,C.r6()!==C.Ag())return C;return p.timeline}return C&&C.length>0?C[C.length-1]:void 0}}; xwH=function(p,C,V){V=V===void 0?!1:V;var N=I2v(p,C,V);if(N){if(p=N.segments,p.length){for(var H=g.F(p),X=H.next();!X.done;X=H.next())if(X=X.value,X.r6()<=C&&X.Ag()>C)return X;if(V&&N.r6()===N.Ag())return p[0]}}else p.api.k_("ssap",{ctnf:1})}; UwV=function(p,C){var V;if(p.qA)for(V=p.K8.shift();V&&V!==p.qA;)V=p.K8.shift();else V=p.K8.shift();if(V){if(p.zS.has(V))eHe(p,V);else if(C===3||C===4)p.gw.stop(),p.api.playVideo(1,p.api.G("html5_ssap_keep_media_on_finish_segment"));p.Zg.set(p.vc,C);p.api.k_("ssap",{onvftn:1});owL(p,V);return!1}p.api.k_("ssap",{onvftv:1});p.gw.stop();return!0}; eHe=function(p,C){C=jP(p.timeline,C);if(C==null?0:C.length)p.api.pauseVideo(),p.gw.start(C[0].vu)}; owL=function(p,C){var V=p.Ta.getVideoData(),N=V.clientPlaybackNonce;p.yM&&(p.events.rY(p.yM),p.yM=null,p.Ta.NT=-1);var H=p.vc,X=!1;if(H==="")H=N,X=!0;else if(H===void 0){var d=p.Ta.Xp().tp;d&&p.timeline.C.has(d)&&(H=d);p.api.k_("ssap",{mcc:H+";"+C});p.Ta.oN(new qD("ssap.timelineerror",{e:"missing_current_cpn",pcpn:H,ccpn:C}))}if(H===C)X&&V&&PlV(p,V,X);else{d=p.Zg.get(H);if(!X&&(!d||d!==3&&d!==5&&d!==6&&d!==7)){var a=p.api.bz(p.vc);p.api.k_("ssap",{nmec:a,cpc:p.vc,ec:C})}d&&d!==2||NS(p);p.vc=C;NS(p); C=jP(p.timeline,p.vc);if(C==null?0:C.length){C=C[0];a=C.getType();H!==N&&(p.bG=H,V=p.kz.get(H));d?p.Zg.delete(H):d=X?1:2;p.api.G("html5_ssap_pacf_qoe_ctmp")&&a===2&&!C.C&&(p.yM=p.events.U(p.api,"onVideoProgress",p.lEa));p.api.k_("ssapt",{ostro:d,pcpn:H,ccpn:p.vc});a:{var E=p.vc;if(!p.cz.has(E))for(var l=g.F(p.cz),t=l.next();!t.done;t=l.next()){var c=g.F(t.value);t=c.next().value;c=c.next().value;if(c.getId().includes(E)){E=t;break a}}}t=E;l=p.api.K().G("html5_ssap_insert_su_before_nonvideo")&&t!== p.vc;c=p.Ta.Xp();if(c.tp!==t){var T=c.Pc(c.tp);E=c.Pc(t);c.tp=t;E!==T&&(T.qoe&&(t=T.qoe,t.provider.yn.Gk()&&t.k_("ssap",{qoesus:"1",vid:t.provider.videoData.videoId}),l&&(l=g.Zn(t.provider),YZj(t,l,"SU")),isNaN(t.Y)||g.Dr(t.Y)),E.resume())}E=Math.max(0,HN(p,H));l=p.Ta.getCurrentTime();l=Math.max(0,l-zJ(p,p.vc)/1E3);t=C.getVideoData();var M=d===3||d===5||d===6||d===7;p.api.G("html5_ssap_skip_illegal_seeking")&&(c=p.Ta.getPlayerState(),c=!g.r(c,8)&&g.r(c,16),M=M||c,c&&p.api.k_("ssap",{iis:1}));c=p.Ta.Xp(); T=H;var J=p.vc,S=p.Ta.getPlayerState();if(T!==J){var D=c.Pc(T),Z=c.Pc(J),f,q=T===((f=D.getVideoData())==null?void 0:f.clientPlaybackNonce),A;f=J===((A=Z.getVideoData())==null?void 0:A.clientPlaybackNonce);var z;A=q?((z=D.getVideoData())==null?void 0:z.videoId)||"":"nvd";var Q;z=f?((Q=Z.getVideoData())==null?void 0:Q.videoId)||"":"nvd";q&&(Q=D.qoe)!=null&&(A6(Q,4,M?4:0,J,z,E),Q.reportStats());f&&($b(Z),(Q=Z.qoe)!=null&&(A6(Q,4,M?5:1,T,A,l),Q.reportStats()),JH1(Z,new g.Kt(S,Z.g7)),TLS(Z));udv(c,T)}p.api.k_("ssapt", {ostri:d,pcpn:H,ccpn:p.vc});var P;OZL(H,p.vc,N,t,(P=p.K5.get(H))!=null?P:(0,g.Ip)(),V);p.K5.delete(H);X?V=void 0:V||p.api.k_("ssap",{pvdm:H+";"+p.vc,pvdmc:p.vc===N?"1":"0"});p.api.k_("ssap",{tpac:H+";"+p.vc,tpcc:N,tpv:(t==null?0:t.GN())?"1":"0"},!1,1);p.api.K().G("html5_ssap_cleanup_player_switch_ad_player")&&p.api.y4();p.api.publish("videodatachange","newdata",t,a,V,d);C.C||p.Ta.getVideoData().publish("dataupdated");p.zS.delete(H);p.qA="";t&&a===1?PlV(p,t):p.Ta.k_("ssap",{nis:p.vc});a===2?p.Fx++: p.Fx=0}}}; PlV=function(p,C,V){V=V===void 0?!1:V;if(C.startSeconds&&p.aG){var N=C.startSeconds;C=jP(p.timeline,C.clientPlaybackNonce);if(C==null?0:C.length)N+=C[0].r6()/1E3,p.api.G("htm5_ssap_ignore_initial_seek_if_too_big")&&N>=p.rl()||(p.Ta.seekTo(N,{tJ:!0}),p.aG=!1,p.Ta.k_("ssap",{is:p.vc,co:V?"1":"0",tse:N.toFixed()}))}}; Agu=function(p,C,V){C=jP(p.timeline,C);if(C!=null&&C.length&&(C=I2v(p,C[0].r6()))){C=g.F(C.segments);for(var N=C.next();!N.done;N=C.next()){N=N.value;if($a(N)===V)break;if(N=$a(N)){var H=p.cz.get(N);H&&p.Ta.removeCueRange(H);p.cz.delete(N)}}}}; lQ=function(p){return p.Ta.getVideoData().clientPlaybackNonce}; qWa=function(p,C){if(p.Jv&&p.vc!==C)return!1;if(p.l4)return!0;if(C=p.cz.get(C))if(C=C.getId().split(","),C.length>1)for(var V=0;V0?p:0)}; HN=function(p,C){C=C||p.vc;var V=p.kz.get(C);return V?V.hg:C!==lQ(p)?0:p.Ta.getVideoData().hg}; fA=function(p){var C=p.vc;C||(C=p.Ta.getVideoData().clientPlaybackNonce);var V,N,H=Array.from((N=(V=p.timeline.T)==null?void 0:V.T.values())!=null?N:[]);V=[];if(H==null?0:H.length)for(N=g.F(H),H=N.next();!H.done;H=N.next())if(H=H.value,H.length&&H[0]&&(H=H[0].segments,H.length)){H=g.F(H);for(var X=H.next();!X.done;X=H.next()){var d=X.value;X="st."+d.r6()+";";X+="et."+d.Ag()+";";var a=$a(d);a&&(X+="cpn."+a+";",X+="a."+(C===a?1:0)+";");if(d=d.getVideoData())a=void 0,X+="vid."+((a=d.videoId)!=null?a: "nvd");V.push(X)}}return(V.length?V.join(","):"empty."+C)+";cpcpn."+p.yv()}; f2L=function(p){p.Ta.bK(Array.from(p.cz.values()));p.cz.clear()}; $wL=function(p,C,V){g.Y.call(this);var N=this;this.api=p;this.yn=C;this.T=V;this.Y=new Map;this.C=[];this.V=this.D=null;this.a$=NaN;this.W=this.S=this.Z=null;this.J=new g.N8(function(){wKL(N,N.a$,N.Z||void 0)}); this.b_=[];this.sY=new g.N8(function(){var H=N.b_.pop();if(H){var X=H.OZ,d=H.playerVars;H=H.playerType;d&&(d.prefer_gapless=!0,N.api.preloadVideoByPlayerVars(d,H,NaN,"",X),N.b_.length&&g.HF(N.sY,4500))}}); this.events=new g.Rr(this);V.getPlayerType();g.R(this,this.J);g.R(this,this.sY);g.R(this,this.events);this.events.U(this.api,g.Ez("childplayback"),this.onCueRangeEnter);this.events.U(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.U(this.api,"presentingplayerstatechange",this.wi)}; Qzj=function(p,C,V,N,H,X){var d=C.cpn,a=C.docid||C.video_id||C.videoId||C.id,E=p.T;X=X===void 0?H+N:X;if(H>X)return dJ(p,"enterAfterReturn enterTimeMs="+H+" is greater than parentReturnTimeMs="+X.toFixed(3),d,a),"";var l=E.Wa()*1E3;if(Hl)return E="returnAfterDuration parentReturnTimeMs="+X.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+ E.yZ(),dJ(p,E,d,a),"";l=null;for(var t=g.F(p.C),c=t.next();!c.done;c=t.next()){c=c.value;if(H>=c.Dh&&Hc.Dh)return dJ(p,"overlappingReturn",d,a),"";if(X===c.Dh)return dJ(p,"outOfOrder",d,a),"";H===c.Ai&&(l=c)}d="cs_childplayback_"+LbS++;a={zN:ij(N,!0),Y5:Infinity,target:null};var T={OZ:d,playerVars:C,playerType:V,durationMs:N,Dh:H,Ai:X,Xn:a};p.C=p.C.concat(T).sort(function(S,D){return S.Dh-D.Dh}); l?gwa(p,l,{zN:ij(l.durationMs,!0),Y5:l.Xn.Y5,target:T}):(C={zN:ij(H,!1),Y5:H,target:T},p.Y.set(C.zN,C),E.addCueRange(C.zN));C=!0;if(p.T===p.api.L1()&&(E=E.getCurrentTime()*1E3,E>=T.Dh&&EC)break;if(X>C)return{jI:N,KV:C-H};V=X-N.Ai/1E3}return{jI:null,KV:C-V}}; wKL=function(p,C,V){V=V===void 0?{}:V;var N=p.W||p.api.L1().getPlayerState();Et(p,!0);C=isFinite(C)?C:p.T.S1();var H=ptH(p,C);C=H.jI;H=H.KV;var X=C&&!hX(p,C)||!C&&p.T!==p.api.L1(),d=H*1E3;d=p.V&&p.V.start<=d&&d<=p.V.end;!X&&d||aC(p);C?WbX(p,C,H,V,N):CCX(p,H,V,N)}; CCX=function(p,C,V,N){var H=p.T,X=p.api.L1();H!==X&&p.api.Kr();H.seekTo(C,Object.assign({},{NZ:"application_timelinemanager"},V));jyV(p,N)}; WbX=function(p,C,V,N,H){var X=hX(p,C);if(!X){C.playerVars.prefer_gapless=!0;p.yn.G("html5_enable_ssap_entity_id")&&(C.playerVars.cached_load=!0);var d=new g.YB(p.yn,C.playerVars);d.OZ=C.OZ;p.api.Kv(d,C.playerType)}d=p.api.L1();X||d.addCueRange(C.Xn.zN);d.seekTo(V,Object.assign({},{NZ:"application_timelinemanager"},N));jyV(p,H)}; jyV=function(p,C){p=p.api.L1();var V=p.getPlayerState();C.isOrWillBePlaying()&&!V.isOrWillBePlaying()?p.playVideo():C.isPaused()&&!V.isPaused()&&p.pauseVideo()}; Et=function(p,C){p.a$=NaN;p.Z=null;p.J.stop();p.S&&C&&EXe(p.S);p.W=null;p.S=null}; hX=function(p,C){p=p.api.L1();return!!p&&p.getVideoData().OZ===C.OZ}; VAy=function(p){var C=p.C.find(function(H){return hX(p,H)}); if(C){var V=p.api.L1();aC(p);var N=new g.cj(8);C=GYj(p,C)/1E3;CCX(p,C,{},N);V.k_("forceParentTransition",{childPlayback:1});p.T.k_("forceParentTransition",{parentPlayback:1})}}; Hlu=function(p,C,V){C=C===void 0?-1:C;V=V===void 0?Infinity:V;for(var N=C,H=V,X=g.F(p.Y),d=X.next();!d.done;d=X.next()){var a=g.F(d.value);d=a.next().value;a=a.next().value;a.Y5>=N&&a.target&&a.target.Ai<=H&&(p.T.removeCueRange(d),p.Y.delete(d))}N=C;H=V;X=[];d=g.F(p.C);for(a=d.next();!a.done;a=d.next())if(a=a.value,a.Dh>=N&&a.Ai<=H){var E=p;E.D===a&&aC(E);hX(E,a)&&E.api.Kr()}else X.push(a);p.C=X;N=ptH(p,C/1E3);C=N.jI;N=N.KV;C&&(N*=1E3,Niy(p,C,N,C.Ai===C.Dh+C.durationMs?C.Dh+N:C.Ai));(C=ptH(p,V/1E3).jI)&& dJ(p,"Invalid clearEndTimeMs="+V+" that falls during playback={timelinePlaybackId="+(C.OZ+" video_id="+C.playerVars.video_id+" durationMs="+C.durationMs+" enterTimeMs="+C.Dh+" parentReturnTimeMs="+C.Ai+"}.Child playbacks can only have duration updated not their start."))}; Niy=function(p,C,V,N){C.durationMs=V;C.Ai=N;N={zN:ij(V,!0),Y5:V,target:null};gwa(p,C,N);hX(p,C)&&p.api.L1().getCurrentTime()*1E3>V&&(C=GYj(p,C)/1E3,V=p.api.L1().getPlayerState(),CCX(p,C,{},V))}; dJ=function(p,C,V,N){p.T.k_("timelineerror",{e:C,cpn:V?V:void 0,videoId:N?N:void 0})}; dCu=function(p){p&&p!=="web"&&Xta.includes(p)}; cN=function(p,C){g.Y.call(this);var V=this;this.data=[];this.V=p||NaN;this.C=C||null;this.T=new g.N8(function(){lj(V);tX(V)}); g.R(this,this.T)}; ilQ=function(p){lj(p);return p.data.map(function(C){return C.value})}; lj=function(p){var C=(0,g.Ip)();p.data.forEach(function(V){V.expireX?{width:C.width,height:C.width/H,aspectRatio:H}:HH?p.width=p.height*V:VE;if(mP(p)){var l=tAu(p);var t=isNaN(l)||g.G4||PI&&g.D1||E;BW&&!g.JB(601)?l=H.aspectRatio:t=t||X.controlsType==="3";t?E?(t=X.G("place_shrunken_video_on_left_of_player")?16:p.getPlayerSize().width-C.width-16,l=Math.max((p.getPlayerSize().height-C.height)/2,0),t=new g.vf(t,l,C.width, C.height),p.F0.style.setProperty("border-radius","12px")):t=new g.vf(0,0,C.width,C.height):(V=H.aspectRatio/l,t=new g.vf((C.width-H.width/V)/2,(C.height-H.height)/2,H.width/V,H.height),V===1&&g.D1&&(l=t.width-C.height*l,l>0&&(t.width+=l,t.height+=l)));g.Tz(p.element,"ytp-fit-cover-video",Math.max(t.width-H.width,t.height-H.height)<1);if(a||p.T8)p.F0.style.display="";p.Go=!0}else{t=-C.height;BW?t*=window.devicePixelRatio:g.gG&&(t-=window.screen.height);t=new g.vf(0,t,C.width,C.height);if(a||p.T8)p.F0.style.display= "none";p.Go=!1}Fj(p.KZ,t)||(p.KZ=t,g.yj(X)?(p.F0.style.setProperty("width",t.width+"px","important"),p.F0.style.setProperty("height",t.height+"px","important")):g.b4(p.F0,t.getSize()),N=new g.Fn(t.left,t.top),g.OE(p.F0,Math.round(N.x),Math.round(N.y)),N=!0);C=new g.vf((C.width-H.width)/2,(C.height-H.height)/2,H.width,H.height);Fj(p.Sn,C)||(p.Sn=C,N=!0);g.K2(p.F0,"transform",V===1?"":"scaleX("+V+")");d&&E!==p.Bg&&(E&&(p.F0.addEventListener(Sm,p.r5),p.F0.addEventListener("transitioncancel",p.r5),p.F0.classList.add(g.wr.VIDEO_CONTAINER_TRANSITIONING)), p.Bg=E,p.app.ea.publish("playerUnderlayVisibilityChange",p.Bg?"transitioning":"hidden"));return N}; JZ1=function(){this.csn=g.bz();this.clientPlaybackNonce=null;this.elements=new Set;this.V=new Set;this.T=new Set;this.C=new Set}; mCs=function(p){if(p.csn!==g.bz())if(p.csn==="UNDEFINED_CSN")p.csn=g.bz();else{var C=g.bz(),V=g.IW();if(C&&V){p.csn=C;for(var N=g.F(p.elements),H=N.next();!H.done;H=N.next())(H=H.value.visualElement)&&H.isClientVe()&&C&&V&&(g.Zr("combine_ve_grafts")?fz(ZF(),H,V):g.NU(g.Cq)(void 0,C,V,H))}if(C)for(p=g.F(p.T),V=p.next();!V.done;V=p.next())(V=V.value.visualElement)&&V.isClientVe()&&g.hO(C,V)}}; g.vN=function(p,C,V,N){g.Y.call(this);var H=this;this.logger=new g.HI("App");this.wZ=this.Cq=!1;this.Ol={};this.HC=[];this.w4=!1;this.xC=null;this.intentionalPlayback=!1;this.eL=!0;this.HN=!1;this.uE=this.RL=null;this.PY=!0;this.mediaElement=this.Sb=null;this.tH=NaN;this.Be=!1;this.Dd=this.Eo=this.Ze=this.PV=this.screenLayer=this.n4=this.playlist=null;this.Sr={RI:function(){return H.Ze}, hK:function(E){H.Ze=E}, Sp:function(E,l){H.Ze&&H.Ze.Sp(E,l)}}; this.logger.debug("constructor begin");this.config=pos(C||{});this.webPlayerContextConfig=V;lK1();C=this.config.args||{};this.yn=new xS(C,V,V?V.canaryState:this.config.assets.player_canary_state,N,this);g.R(this,this.yn);g8a(this.yn);N=QUv(this.yn);this.yn.experiments.OY("jspb_serialize_with_worker")&&W2S();this.yn.experiments.OY("gzip_gel_with_worker")&&zoa();this.yn.C&&!vhV&&(window.addEventListener(vg?"touchstart":"click",K7s,{capture:!0,passive:!0}),vhV=!0);this.G("html5_onesie")&&(this.z7=new oB(this.yn), g.R(this,this.z7));this.Cc=iO(uL(this.yn)&&!0,C.enablesizebutton);this.NJ=iO(!1,C.player_wide);this.visibility=new n8H;g.R(this,this.visibility);this.G("web_log_theater_mode_visibility")&&this.gB(iO(!1,C.player_wide));this.Cq=iO(!1,C.external_list);this.events=new g.Rr(this);g.R(this,this.events);this.G("start_client_gcf")&&(kJ(Rh(),{Xk:lR,L0:hoV()}),this.EH=Rh().resolve(lR),EFV(this.EH));this.mt_=new SQ;g.R(this,this.mt_);this.fV=new JZ1;C=new KT;this.ea=new g.xj(this,C);g.R(this,this.ea);this.template= new EhX(this);g.R(this,this.template);this.appState=1;this.zU=FFs(this);g.R(this,C);C={};this.ih=(C.internalvideodatachange=this.sU,C.playbackready=this.v_e,C.playbackstarted=this.znS,C.statechange=this.iSk,C);this.uA=new ZT(this.ea);this.C7=Sxs(this);C=this.G("html5_load_wasm");var X=this.G("html5_allow_asmjs");if(C&&KF1||X)this.yn.I5=h9H(this.C7,X),MO(Tv(this.yn.I5,function(E){H.yn.TN=E;var l;(l=g.O5(H))==null||l.k_("wasm",{a:E.XA})}),function(E){g.eG(E); E="message"in E&&E.message||E.toString()||"";var l;(l=g.O5(H))==null||l.k_("wasm",{e:E})}); else if(C&&!KF1){var d;(d=g.O5(this))==null||d.k_("wasm",{e:"wasm unavailable"})}this.mM=new MM1(this.yn,this.C7);this.ea.publish("csiinitialized");d=10;g.bH(this.yn)&&(d=3);$S(this.yn)&&(d=g.mi(this.yn.experiments,"tvhtml5_unplugged_preload_cache_size"));d=new cN(d,function(E){E!==g.O5(H,E.getPlayerType())&&E.dispose()}); g.R(this,d);this.Lq=new e7V(d,{});this.Mo=DCe(this);this.Mo.setPlaybackRate(this.yn.S?1:uZV(this,Number(g.zW("yt-player-playback-rate"))||1));g.TB(this.Mo,this.ih,this);xAQ(this.Mo);d={};this.AN=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.rd,d.sabrCaptionsDataLoaded=this.b1a,d.endseeking=this.vy,d.internalAbandon=this.f8,d.internalaudioformatchange=this.jB,d.internalvideodatachange=this.onVideoDataChange,d.internalvideoformatchange= this.yX,d.liveviewshift=this.kkY,d.playbackstalledatstart=this.W6S,d.progresssync=this.tbr,d.onAbnormalityDetected=this.Ci,d.onSnackbarMessage=this.onSnackbarMessage,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.M$,d.SEEK_TO=this.sNr,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.onPlaybackPauseAtStart=this.Nye,d.playbackready=this.Gko,d.statechange=this.O3,d.newelementrequired=this.iV,d.heartbeatparams=this.i7, d.videoelementevent=this.VG,d.drmoutputrestricted=this.onDrmOutputRestricted,d.signatureexpired=this.mZa,d.nonfatalerror=this.mWn,d.reloadplayer=this.wc$,d);this.Ql=new g.Rr(this);g.R(this,this.Ql);this.wz=new MS;g.R(this,this.wz);this.U$=this.oY=-1;this.Tx=new g.N8(this.template.resize,16,this.template);g.R(this,this.Tx);this.GB=new $wL(this.ea,this.yn,this.Mo);this.W_=new wR(this.yn);this.tX=new x0u(this);g.R(this,this.tX);this.TX=new Ya(this);g.R(this,this.TX);dCu(this.yn.T.c);this.events.U(this.ea, g.Ez("appapi"),this.E_a);this.events.U(this.ea,g.lG("appapi"),this.u$V);this.events.U(this.ea,g.Ez("appprogressboundary"),this.Byk);this.events.U(this.ea,g.lG("applooprange"),this.A3);this.events.U(this.ea,"presentingplayerstatechange",this.wi);this.events.U(this.ea,"resize",this.Xcn);this.template.u_(BG(document,p));this.events.U(this.ea,"offlineslatestatechange",this.z6Y);this.C7.N.K().uM&&nn(this.C7,"offline");this.yn.UY&&g.qA("ux",g.ka);p=g.mi(this.yn.experiments,"html5_defer_fetch_att_ms");this.Z6= new g.N8(this.GN$,p,this);g.R(this,this.Z6);this.DE().GN()&&(g.nK()&&this.DE().Vn.push("remote"),ZlQ(this));this.mM.tick("fs");UCY(this);if(this.yn.Gk()&&this.yn.G("html5_record_h5vcc_flags")){var a;(a=g.O5(this))==null||a.k_("h5vcc",N)}this.yn.UY&&nn(this.C7,"ux",!0);g.KI(this.C7.N.K())&&nn(this.C7,"embed");this.G("web_player_sentinel_is_uniplayer")||g.eG(new g.Bw("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.G("web_player_sentinel_yt_experiments_sync");p=g.Zr("web_player_sentinel_yt_experiments_sync"); a!==p&&g.eG(new g.Bw("b/195699950",{yt:a,player:p}));V||g.eG(new g.Bw("b/179532961"));this.XK=fGy(this);if(V=g.mi(this.yn.experiments,"html5_block_pip_safari_delay"))this.ow=new g.N8(this.E0,V,this),g.R(this,this.ow);zQ=this.yn.va;V=g.mi(this.yn.experiments,"html5_performance_impact_profiling_timer_ms");V>0&&(this.XJ=new g.Ib(V),g.R(this,this.XJ),this.events.U(this.XJ,"tick",function(){H.FJ&&OlX.Dk("apit",H.FJ);H.FJ=OlX.dB()})); this.ea.publish("applicationInitialized");this.logger.debug("constructor end")}; fGy=function(p){function C(V){V.stack&&V.stack.indexOf("player")!==-1&&(V={n:V.name,m:V.message},(p.n4||p.Mo).Pc().oN("player.exception",yu(V)))} PQ.subscribe("handleError",C);je.push(C);return function(){PQ.unsubscribe("handleError",C);var V=je.indexOf(C);V!==-1&&je.splice(V,1)}}; DCe=function(p){var C=new g.YB(p.yn,p.config.args);p.ea.publish("initialvideodatacreated",C);return p.WW(1,C)}; yZe=function(p,C){if(p.Mo!==C){C.getVideoData().autonavState=p.Mo.getVideoData().autonavState;My(p.Mo,p.ih,p);var V=p.Mo.getPlaybackRate();p.Mo.dispose();p.Mo=C;p.Mo.setPlaybackRate(V);g.TB(C,p.ih,p);ZlQ(p)}}; Sxs=function(p){var C="",V=sy1(p);V.indexOf("//")===0&&(V=p.yn.protocol+":"+V);var N=V.lastIndexOf("/base.js");N!==-1&&(C=V.substring(0,N+1));if(V=Error().stack)if(V=V.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))V=V[1],V.includes(C)||g.eG(Error("Player module URL mismatch: "+(V+" vs "+C+".")));C=new $Su(p.ea,C);qxe(p,C);return C}; qxe=function(p,C){var V={};V=(V.destroyed=function(){p.onApiChange()},V); C.V=V}; FFs=function(p){if(p.yn.storeUserVolume){p=g.zW("yt-player-volume")||{};var C=p.volume;p={volume:isNaN(C)?100:g.J9(Math.floor(C),0,100),muted:!!p.muted}}else p={volume:100,muted:p.yn.mute};return p}; FR=function(p){p.mediaElement=p.yn.deviceIsAudioOnly?new g.li(g.iK("AUDIO")):xa.pop()||new g.li(g.iK("VIDEO"));g.R(p,p.mediaElement);p.n4&&p.n4.setMediaElement(p.mediaElement);try{p.yn.RN?(p.Eo&&p.events.rY(p.Eo),p.Eo=p.events.U(p.mediaElement,"volumechange",p.Ihx)):(p.mediaElement.BC(p.zU.muted),p.mediaElement.setVolume(p.zU.volume/100))}catch(H){p.Qf("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g, "_")));return}g.Am(p.Ql);IGS(p);var C=p.template,V=p.mediaElement.V$();C.F0=V;C.Bt=!1;C.F0.parentNode||Eo(C.Ss,C.F0,0);C.KZ=new g.vf(0,0,0,0);MAX(C);JX(C);V=C.F0;g.Ed(V,"video-stream");g.Ed(V,g.wr.MAIN_VIDEO);var N=C.app.K();N.BB&&V.setAttribute("data-no-fullscreen","true");N.G("html5_local_playsinline")?"playsInline"in An()&&(V.playsInline=!0):N.Uh&&(V.setAttribute("webkit-playsinline",""),V.setAttribute("playsinline",""));N.BK&&C.F0&&C.U(V,"click",V.play,V);try{p.mediaElement.activate()}catch(H){p.Qf("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g,"_")))}}; P$=function(p,C,V){if(p.n4!==C){p.logger.debug(function(){return"start set presenting player, type "+C.getPlayerType()+", vid "+C.getVideoData().videoId}); var N=null;if(p.n4){N=p.n4.getPlayerState();p.logger.debug("set presenting player, destroy modules");ev(p.C7,3);SM(p,"cuerangesremoved",p.n4.xm());p.tX&&!C.isGapless()&&p.n4.isGapless()&&p.mediaElement&&p.mediaElement.stopVideo();var H=Hj(C)&&Hj(p.n4);p.mM.Hm("iv_s");blv(p,H)}C.getPlayerType()===1&&yZe(p,C);AZv(p,C);p.n4=C;p.mediaElement&&C.setMediaElement(p.mediaElement);g.TB(C,p.AN,p);if(C.Xd())ohV(p,"setPresenting",!1);else{p.onVideoDataChange("newdata",C,C.getVideoData());N&&!g.FO(N,C.getPlayerState())&& p.O3(new g.Kt(C.getPlayerState(),N));V=V&&p.G("html5_player_preload_ad_fix")&&C.getPlayerType()===1;if(C.Ec.finished&&!V)p.onVideoDataChange("dataloaded",C,C.getVideoData());(V=(V=C.getVideoData().C)&&V.video)&&p.ea.v1("onPlaybackQualityChange",V.quality);SM(p,"cuerangesadded",p.n4.xm());V=C.getPlayerState();g.r(V,2)?k31(p):g.r(V,8)?C.playVideo():C.Bo()&&C.pauseVideo();if(C.getPlayerType()===2){var X;C.getVideoData().pC=(X=g.O5(p,1))==null?void 0:X.getVideoData().clientPlaybackNonce}C.getPlayerType()!== 2||p.tE()||(X=C.getVideoData(),p.Mo.Y1(X.clientPlaybackNonce,X.Q$||"",X.breakType||0,X.Gp,X.videoId||""));p.logger.debug("finish set presenting player")}}}; k31=function(p){if(!xC9(p)){var C=p.Mo.Nt();C&&(C=C.RF(),C instanceof Promise&&C.catch(function(){})); K7(p,KV(p.getPlayerStateObject()))}}; IGS=function(p){var C=p.mediaElement;YZ()?p.Ql.U(C,"webkitpresentationmodechanged",p.CJk):window.document.pictureInPictureEnabled&&(p.Ql.U(C,"enterpictureinpicture",function(){p.wJ(!0)}),p.Ql.U(C,"leavepictureinpicture",function(){p.wJ(!1)})); CK&&(p.Ql.U(C,"webkitbeginfullscreen",function(){p.ze(3)}),p.Ql.U(C,"webkitendfullscreen",function(){p.ze(0)}))}; AZv=function(p,C){var V=C.getPlayerType(),N=p.Lq.T[V]||null;C!==p.Mo&&C!==N&&(N==null||N.dispose(),p.Lq.T[V]=C)}; blv=function(p,C){C=C===void 0?!0:C;p.logger.debug("start clear presenting player");var V;if(V=p.Dd){V=p.Dd;var N=p.mediaElement;V=!!N&&N===V.mediaElement}V&&(p.Hz(),FR(p));p.n4&&(p.n4.Hz(!C),My(p.n4,p.AN,p),p.n4.getPlayerType()!==1&&p.n4.dispose());p.n4=null;p.logger.debug("finish clear presenting player")}; g.O5=function(p,C){if(C)if(C===1)p=p.Mo;else if(p.getVideoData().enableServerStitchedDai&&C===2)p=p.getVideoData().enablePreroll?p.Lq.T[2]||p.n4:p.n4;else if(g.pf(p.getVideoData())&&C===2){if(C=p.G("html5_ssap_return_content_player_during_preroll"))if(C=p.Ze)C=p.Ze,C=C.vc===""?!0:C.Iz();p=C?p.n4:p.Lq.T[2]||p.n4}else p=p.Lq.T[C]||null;else p=p.n4;return p}; DN=function(p){var C;return((C=p.n4)==null?void 0:C.HP)||null}; uj=function(p,C){var V;return((V=g.O5(p,C))==null?void 0:V.HP)||null}; Yx1=function(p,C,V,N){p=p.WW(C,V,N);xAQ(p);return p}; ZN=function(p,C){return p.tE(C)?p.Mo.HP:C}; Ut=function(p,C){var V=DN(p),N=p.Mo.HP;return V&&C===N&&p.tE(C)&&p.tE(V)?V:C}; nha=function(p){p.logger.debug("start application playback");if(p.Mo.getPlayerState().isError())p.logger.debug("start application playback done, player in error state");else{var C=f7(p);p.DE().isLoaded();C&&p.Lt(6);zm1(p);jQV(p.C7)||RmL(p)}}; RmL=function(p){if(!f7(p)){var C=Px(p.C7);C&&!C.created&&LPv(p.C7)&&(p.logger.debug("reload ad module"),C.create())}}; zm1=function(p){p.logger.debug("start presenter playback");var C=p.getVideoData(),V=p.C7;jQV(V)||V.s$();!KF1&&V.N.G("html5_allow_asmjs")&&iDy(V);nn(V,"embed");nn(V,"inline_preview");nn(V,"kids");nn(V,"remote");nn(V,"miniplayer");nn(V,"offline");nn(V,"unplugged");nn(V,"ypc",!1,!0);nn(V,"ypc_clickwrap",!1,!0);nn(V,"yto",!1,!0);nn(V,"webgl",!1,!0);VCH(V)||(nn(V,"captions",!0),nn(V,"endscreen"),V.hJ()||V.vJ(),nn(V,"creatorendscreen",!0));V.Yp();p.ea.publish("videoready",C)}; Ot=function(p){p=p.DE();p.GN();return Nh(p)}; UCY=function(p){p.logger.debug("start prepare initial playback");if(p.G("html5_enable_ssap_autoplay_debug_logging")){var C;(C=p.Mo)==null||C.k_("ssap",{preppb:1})}p.iH();var V=p.config.args;FR(p);C=p.DE();p.ea.v1("onVolumeChange",p.zU);if(V&&FPv(V)){var N=nI(p.yn);N&&!p.Cq&&(V.fetch=0);var H=g.KI(p.yn);H&&!p.Cq&&(V.fetch=0);yw(p,V);g.KI(p.yn)&&p.mM.tick("ep_pr_s");if(!N||p.Cq)if(H&&!p.Cq)emy(p);else if(!C.GN())p.playlist.onReady(function(){qS(p)})}P$(p,p.Mo); g.r(p.Mo.getPlayerState(),128)||(V=lU1(!p.yn.deviceIsAudioOnly),V==="fmt.noneavailable"?p.Qf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):V==="html5.missingapi"?p.Qf(V,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):C&&C.GN()&&Ot(p)&&(p.yn.qn||p.yn.hg)?IC(p):C.Ep?p.ea.mutedAutoplay():g.zW("yt-player-playback-on-reload")?(g.t1("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!p.yn.sY}),g.Yl("yt-player-playback-on-reload",!1),IC(p)):rG(p.yn)||PCH(p),g.wG(p.yn)||Lb(p.yn)=== "MWEB"?(g.Vl(g.HW(),function(){bj(p)}),g.Vl(g.HW(),function(){Fe9()})):(bj(p),Fe9()),p.logger.debug("finish prepare initial playback"))}; bj=function(p){if(!p.G("use_rta_for_player"))if(p.G("fetch_att_independently"))g.HF(p.Z6);else{var C=p.getVideoData().botguardData;C&&g.x1(C,p.yn,p.getVideoData().Mr||"")}}; PCH=function(p){p.logger.debug("start initialize to CUED mode");p.ea.publish("initializingmode");p.Lt(2);p.G("embeds_web_enable_defer_loading_remote_js")&&g.LI(p.yn)?g.Vl(g.HW(),function(){nn(p.C7,"remote")}):nn(p.C7,"remote"); nn(p.C7,"miniplayer");p.logger.debug("initialized to CUED mode")}; IC=function(p){p.logger.debug("start initialize application playback");if(g.r(p.Mo.getPlayerState(),128))return!1;var C=p.Mo.getVideoData();Ot(p)&&p.yn.hg&&(xa.length&&p.wZ?(AX(p,{muted:!1,volume:p.zU.volume},!1),oC(p,!1)):xa.length||p.zU.muted||(AX(p,{muted:!0,volume:p.zU.volume},!1),oC(p,!0)));Ot(p)&&g.KI(p.yn)&&C.mutedAutoplay&&(AX(p,{muted:!0,volume:p.zU.volume},!1),oC(p,!0));C.eM&&AX(p,{muted:!0,volume:p.zU.volume},!1);wtV(p,1,C,!1);p.ea.publish("initializingmode");P$(p,p.Mo);p.Lt(3);var V;if(!(V= !p.yn.Q1)){if(V=p.Dd){V=p.Dd;var N=p.mediaElement;V=!!N&&N===V.mediaElement}V=V&&p.w4}V&&(p.Hz(),FR(p),p.Mo.setMediaElement(p.mediaElement));gWY(p.Mo);if(g.r(p.Mo.getPlayerState(),128))return!1;C.Of||K7(p,3);return p.w4=!0}; f7=function(p){p=R$(p.C7);return!!p&&p.loaded}; $CQ=function(p,C){if(!p.Sb)return!1;var V=p.Sb.startTimeMs*.001-1,N=p.Sb.endTimeMs*.001;p.Sb.type==="repeatChapter"&&N--;return Math.abs(C-V)<=1E-6||Math.abs(C-N)<=1E-6||C>=V&&C<=N}; WFy=function(p){var C,V=(C=g.O5(p))==null?void 0:C.nS;p.n4&&id(p.getVideoData())&&V&&V.policy.KS&&(C=LFs(p)*1E3-p.getVideoData().Vy,p.G("html5_gapless_new_slr")?(p=p.TX,ghv(p.app,"gaplessshortslooprange"),C=new g.sz(0,C,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(p=p.app.L1())&&p.addCueRange(C)):p.setLoopRange({startTimeMs:0,endTimeMs:C,type:"shortsLoop"}))}; Qya=function(p){if(!(g.r(p.Mo.getPlayerState(),64)&&p.DE().isLivePlayback&&p.Sb.startTimeMs<5E3)){if(p.Sb.type==="repeatChapter"){var C,V=(C=Ycj(p.Tk()))==null?void 0:C.Cx(),N;C=(N=p.getVideoData())==null?void 0:N.Y9;V instanceof g.Hz&&C&&(N=C[KZ(C,p.Sb.startTimeMs)],V.renderChapterSeekingAnimation(0,N.title));isNaN(Number(p.Sb.loopCount))?p.Sb.loopCount=0:p.Sb.loopCount++;p.Sb.loopCount===1&&p.ea.Jk("innertubeCommand",p.getVideoData().Tt)}V={NZ:"application_loopRangeStart"};if(p.Sb.type==="clips"|| p.Sb.type==="shortsLoop")V.seekSource=58;p.Mo.seekTo(p.Sb.startTimeMs*.001,V)}}; uZV=function(p,C){var V=p.ea.getAvailablePlaybackRates();C=Number(C.toFixed(2));p=V[0];V=V[V.length-1];C<=p?C=p:C>=V?C=V:(p=Math.floor(C*100+.001)%5,C=p===0?C:Math.floor((C-p*.01)*100+.001)/100);return C}; LFs=function(p,C){C=uj(p,C);if(!C)return 0;C=ZN(p,C);return kf(p,C.x6(),C)}; kf=function(p,C,V){if(p.tE(V)){V=V.getVideoData();if(xf(p))V=C;else{p=p.GB;for(var N=g.F(p.C),H=N.next();!H.done;H=N.next())if(H=H.value,V.OZ===H.OZ){C+=H.Dh/1E3;break}N=C;p=g.F(p.C);for(H=p.next();!H.done;H=p.next()){H=H.value;if(V.OZ===H.OZ)break;var X=H.Dh/1E3;if(X1&&(H=!1);if(!p.Be||H!==C){V=V.lock(H?"portrait":"landscape");if(V!=null)V["catch"](function(){}); p.Be=!0}}else p.Be&&(p.Be=!1,V.unlock())}; SM=function(p,C,V){p.ea.publish(C,V);var N=g.bH(p.yn)||g.yj(p.yn)||g.gk(p.yn);if(V&&N){switch(C){case "cuerangemarkersupdated":var H="onCueRangeMarkersUpdated";break;case "cuerangesadded":H="onCueRangesAdded";break;case "cuerangesremoved":H="onCueRangesRemoved"}H&&p.ea.Jk(H,V.map(function(X){return{getId:function(){return this.id}, end:X.end,id:X.getId(),namespace:X.namespace==="ad"?"ad":"",start:X.start,style:X.style,visible:X.visible}}))}}; wJ=function(p,C,V,N,H,X){V=V===void 0?!0:V;var d=g.O5(p,H);if(d){var a=d.HP;if(d.getPlayerType()===2&&!p.tE(a)||g.ud(a.getVideoData()))return}p.getPresentingPlayerType()===3?R$(p.C7).z4("control_seek",C,V):(d===p.Mo&&p.Sb&&!$CQ(p,C)&&p.setLoopRange(null),p.seekTo(C,V,N,H,X))}; ohV=function(p,C,V,N){V&&(p.Hz(),FR(p));V=g.O5(p);V.oN(new qD("staleconfig",{reason:C}));var H=p.getVideoData(),X={};X.video_id=H.videoId;X.adformat=H.adFormat;H.isLivePlayback?Ge(H)&&g.qz(p.yn)&&(X.live_utc_start=V.Xt(),X.resume="1"):(X.start=V.getCurrentTime(),X.resume="1");H.b_&&(X.vvt=H.b_);H.Y&&(X.vss_credentials_token=H.Y,X.vss_credentials_token_type=H.B_);H.oauthToken&&(X.oauth_token=H.oauthToken);H.Q1&&(X.force_gvi=H.Q1);X.autoplay=1;X.reload_count=H.wy+1;X.reload_reason=C;H.ym&&(X.unplugged_partner_opt_out= H.ym);H.YN&&(X.ypc_is_premiere_trailer=H.YN);H.playerParams&&(X.player_params=H.playerParams);p.loadVideoByPlayerVars(X,void 0,!0,void 0,void 0,N);C==="signature"&&p.PV&&RmL(p)}; aPQ=function(p,C){p.DE().autonavState=C;g.Yl("yt-player-autonavstate",C);p.ea.publish("autonavchange",C)}; Esv=function(p){var C=p.getVideoData().tB,V=p.yn.Wc,N=p.isInline()&&!p.getVideoData().CK,H=p.mediaElement;C||V||N?H.W4():(H.e2(),AX(p,p.zU))}; zR=function(p){var C=Px(p.Tk());C&&C.created&&(p.logger.debug("reset ad module"),C.destroy())}; xf=function(p){return p.getVideoData().enableServerStitchedDai&&!!p.PV}; lPu=function(p,C){C.bounds=p.getBoundingClientRect();for(var V=g.F(["display","opacity","visibility","zIndex"]),N=V.next();!N.done;N=V.next())N=N.value,C[N]=Zo(p,N);C.hidden=!!p.hidden}; sy1=function(p){if(p.webPlayerContextConfig){var C=p.webPlayerContextConfig.trustedJsUrl;return C?Og(C).toString():p.webPlayerContextConfig.jsUrl}return p.config.assets&&p.config.assets.js?p.config.assets.js:""}; tWS=function(p,C,V){if(C=g.O5(p,C)){if(C.getVideoData().clientPlaybackNonce===V)return C;if((p=p.tX.T)&&p.getVideoData().clientPlaybackNonce===V)return p}}; Yf=function(p,C){if(p.G("html5_ssap_enable_api_timing_logging")&&g.pf(p.DE())&&!p.W_.V){var V;(V=g.O5(p))==null||V.k_("ssap",{ptnu:C})}}; cu9=function(p){return p.name==="TypeError"&&p.stack.includes("/s/player/")&&LO()<=105}; TDj=function(p){return p.isTimeout?"NO_BID":"ERR_BID"}; MWS=function(){var p=null;xZL().then(function(C){return p=C},function(C){return p=TDj(C)}); return p}; Ju9=function(){var p=A8(1E3,"NO_BID");return yU(Vla([xZL(),p]).Rz(TDj),function(){p.cancel()})}; $f=function(p){return p.kt?g.LK(g.$l(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; L7=function(p){this.player=p;this.V=this.T=1}; FUL=function(p,C,V,N,H,X){C.client||(C.client={});p.player.K().G("h5_remove_url_for_get_ad_break")||(C.client.originalUrl=V);var d=l1(V),a=g.LJ(V)?!1:!0;(d||a)&&typeof Intl!=="undefined"&&(C.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);a=g.LJ(V)?!1:!0;if(d||a||N!==""){var E={};V=dm(Jw(N)).split("&");var l=new Map;V.forEach(function(t){t=t.split("=");t.length>1&&l.set(t[0].toString(),decodeURIComponent(t[1].toString()))}); l.has("bid")&&(E.bid=l.get("bid"));E.params=[];mJV.forEach(function(t){l.has(t)&&(t={key:t,value:l.get(t)},E.params.push(t))}); vsL(p,E);C.adSignalsInfo=E}C.client.unpluggedAppInfo||(C.client.unpluggedAppInfo={});C.client.unpluggedAppInfo.enableFilterMode=!1;V=H.T.cosver;V!=null&&V!=="cosver"&&(C.client.osVersion=V);V=H.T.cplatform;V!=null&&V!=="cplatform"&&V!==""&&(C.client.platform=V);V=H.T.cmodel;V!=null&&V!=="cmodel"&&(C.client.deviceModel=V);V=H.T.cplayer;V!=null&&V!=="cplayer"&&(C.client.playerType=V);V=H.T.cbrand;V!=null&&V!=="cbrand"&&(C.client.deviceMake=V);C.user||(C.user={});C.user.lockedSafetyMode=!1;(H.G("embeds_web_enable_iframe_api_send_full_embed_url")|| H.G("embeds_enable_autoplay_and_visibility_signals"))&&g.Oe(H)&&qrS(C,X,p.player.getPlayerState(1))}; DJS=function(p,C){var V=!1;if(C==="")return V;C.split(",").forEach(function(N){var H={},X={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},d="ACTIVE";N[0]==="!"&&(N=N.substring(1),d="INACTIVE");N=N.split("-");N.length<3||(N[0]in SqX&&(X.clientName=SqX[N[0]]),N[1]in KUu&&(X.platform=KUu[N[1]]),X.applicationState=d,X.clientVersion=N.length>2?N[2]:"",H.remoteClient=X,p.remoteContexts?p.remoteContexts.push(H):p.remoteContexts=[H],V=!0)}); return V}; ZL1=function(p){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in u4V))return!1;p=p.split(RegExp("[:&]"));var C=u4V.FLAG_AUTO_CAPTIONS_DEFAULT_ON,V="f"+(1+Math.floor(C/31)).toString();C=1<=2?d[1]:"";var a=fPX.test(C),E=OLY.exec(C);E=E!=null&&E.length>=2?E[1]:"";var l=yuQ.exec(C);l=l!=null&&l.length>=2&&!Number.isNaN(Number(l[1]))?Number(l[1]):1;var t=qqv.exec(C);t=t!=null&&t.length>=2?t[1]:"0";var c=AR(p.player.K().Vn),T=p.player.getVideoData(1),M=g.Za(T.Sa,!0),J="BISCOTTI_ID"in V?V.BISCOTTI_ID:"";FUL(p,M,C,J.toString(),p.player.K(), T);T={splay:!1,lactMilliseconds:V.LACT.toString(),playerHeightPixels:Math.trunc(V.P_H),playerWidthPixels:Math.trunc(V.P_W),vis:Math.trunc(V.VIS),signatureTimestamp:20073,autonavState:$f(p.player.K())};N&&(N={},DJS(N,V.YT_REMOTE)&&(T.mdxContext=N));if(N=IPH.includes(c)?void 0:g.ee("PREF")){for(var S=N.split(RegExp("[:&]")),D=0,Z=S.length;D1&&f[1].toUpperCase()==="TRUE"){M.user.lockedSafetyMode=!0;break}}T.autoCaptionsDefaultOn= ZL1(N)}C=bLy.exec(C);(C=C!=null&&C.length>=2?C[1]:"")&&E&&(M.user.credentialTransferTokens=[{token:C,scope:"VIDEO"}]);C={contentPlaybackContext:T};d={adBlock:Math.trunc(V.AD_BLOCK),params:d,breakIndex:l,breakPositionMs:t,clientPlaybackNonce:V.CPN,topLevelDomain:c,isProxyAdTagRequest:a,context:M,adSignalsInfoString:dm(Jw(J.toString())),overridePlaybackContext:C};H!==void 0&&(d.cueProcessedMs=Math.round(H).toString());E&&(d.videoId=E);V.LIVE_TARGETING_CONTEXT&&(d.liveTargetingParams=V.LIVE_TARGETING_CONTEXT); V.AD_BREAK_LENGTH&&(d.breakLengthMs=Math.trunc(V.AD_BREAK_LENGTH*1E3).toString());X&&(d.driftFromHeadMs=X.toString());d.currentMediaTimeMs=Math.round(p.player.getCurrentTime(1)*1E3);(p=p.player.getGetAdBreakContext())&&(d.getAdBreakContext=p);return d}; osQ=function(){L7.apply(this,arguments)}; kss=function(p,C,V,N,H){var X=V.U5;var d=V.zN;var a=p.player.K().Gp,E=0;V.cueProcessedMs&&d&&!X&&(V=d.end-d.start,V>0&&(E=Math.floor(V/1E3)));var l={AD_BLOCK:H,AD_BREAK_LENGTH:X?X.uc:E,AUTONAV_STATE:$f(p.player.K()),CA_TYPE:"image",CPN:p.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:p.player.uX()*1E3,LACT:bV(),LIVE_INDEX:X?p.V++:1,LIVE_TARGETING_CONTEXT:X&&X.context?X.context:"",MIDROLL_POS:d?Math.round(d.start/1E3):0,MIDROLL_POS_MS:d?Math.round(d.start):0,VIS:p.player.getVisibilityState(), P_H:p.player.dV().KO().height,P_W:p.player.dV().KO().width,YT_REMOTE:a?a.join(","):""},t=MU(TQ);Object.keys(t).forEach(function(c){t[c]!=null&&(l[c.toUpperCase()]=t[c].toString())}); N!==""&&(l.BISCOTTI_ID=N);N={};cd(C)&&(N.sts="20073",(p=p.player.K().forcedExperiments)&&(N.forced_experiments=p));return Ek(g.nX(C,l),N)}; xJV=function(p,C){var V=p.player.K(),N,H=(N=p.player.getVideoData(1))==null?void 0:N.oauthToken;return g.pk(V,H).then(function(X){if(X&&tw()){var d=rb();Bk(d,X)}return g.E0(p.player.xN(d),C,"/youtubei/v1/player/ad_break").then(function(a){return a})})}; YqL=function(p){this.No=p}; z$y=function(p){this.N=p}; R$u=function(p){this.No=p}; e$9=function(p){g.Y.call(this);this.T=p;this.xU=nsV(this)}; nsV=function(p){var C=new tF9(p.T.YG);g.R(p,C);p=g.F([new YqL(p.T.No),new z$y(p.T.N),new R$u(p.T.No),new YY(p.T.I8,p.T.Bp),new RE,new PJ(p.T.w6,p.T.cB,p.T.No),new zf,new xY]);for(var V=p.next();!V.done;V=p.next())c3e(C,V.value);p=g.F(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(V=p.next();!V.done;V=p.next())nW(C,V.value,function(){}); return C}; gJ=function(p){var C=p.pS,V=p.x_;p=p.Mt;var N=new UgH,H={Rx:new aUX(C.get(),V),x_:V};return{hQ:new HY(V,p,C,H),context:H,e5:N}}; WN=function(p,C,V,N,H){g.Y.call(this);this.C=C;this.mx=V;this.pS=N;this.BV=H;this.listeners=[];var X=new I_(this);g.R(this,X);X.U(p,"internalAbandon",this.f8);this.addOnDisposeCallback(function(){g.Am(X)})}; Qw=function(p){this.N=p;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.W=!0;this.C=this.V=!1;this.adFormat=null;this.S="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; PDs=function(p){p.contentCpn=null;p.adCpn=null;p.videoId=null;p.adVideoId=null;p.adFormat=null;p.S="AD_PLACEMENT_KIND_UNKNOWN";p.actionType="unknown_type";p.V=!1;p.C=!1}; wry=function(p,C){p=g.F(C);for(C=p.next();!C.done;C=p.next())if((C=C.value.renderer)&&(C.instreamVideoAdRenderer||C.linearAdSequenceRenderer||C.sandwichedLinearAdRenderer||C.instreamSurveyAdRenderer)){NR("ad_i");g.HH({isMonetized:!0});break}}; $JQ=function(p){var C;(C=p.N.getVideoData(1))!=null&&C.sY&&(p.C=!1,C={},p.T&&p.videoId&&(C.cttAuthInfo={token:p.T,videoId:p.videoId}),XA("video_to_ad",C))}; V4=function(p){p.C=!1;var C={};p.T&&p.videoId&&(C.cttAuthInfo={token:p.T,videoId:p.videoId});XA("ad_to_video",C);LU1(p)}; LU1=function(p){if(p.V)if(p.S==="AD_PLACEMENT_KIND_START"&&p.actionType==="video_to_ad")CU("video_to_ad");else{var C={adBreakType:bU(p.S),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:p.videoStreamType};p.actionType==="ad_to_video"?(p.contentCpn&&(C.targetCpn=p.contentCpn),p.videoId&&(C.targetVideoId=p.videoId)):(p.adCpn&&(C.targetCpn=p.adCpn),p.adVideoId&&(C.targetVideoId=p.adVideoId));p.adFormat&&(C.adType=p.adFormat);p.contentCpn&& (C.clientPlaybackNonce=p.contentCpn);p.videoId&&(C.videoId=p.videoId);p.adCpn&&(C.adClientPlaybackNonce=p.adCpn);p.adVideoId&&(C.adVideoId=p.adVideoId);g.HH(C,p.actionType)}}; rJ=function(p){g.Y.call(this);this.N=p;this.T=new Map;this.C=new I_(this);g.R(this,this.C);this.C.U(this.N,g.Ez("ad"),this.onCueRangeEnter,this);this.C.U(this.N,g.lG("ad"),this.onCueRangeExit,this)}; gsy=function(p,C,V,N,H){g.sz.call(this,C,V,{id:p,namespace:"ad",priority:H,visible:N})}; BN=function(p){this.N=p}; GR=function(p){this.N=p;g.mi(this.N.K().experiments,"tv_pacf_logging_sample_rate")}; fR=function(p,C){C=C===void 0?!1:C;return p.N.K().G("html5_ssap_force_ads_ctmp")?!0:(C||p.N.K().Gk())&&p.N.K().G("html5_ssap_pacf_qoe_ctmp")}; pD=function(p){var C,V;return(V=(C=p.N.getVideoData(1))==null?void 0:g.pf(C))!=null?V:!1}; Cs=function(p,C){return p.N.K().G(C)}; WUv=function(p){return p.N.K().G("substitute_ad_cpn_macro_in_ssdai")}; DY=function(p){var C,V,N;return((C=p.N.getVideoData(1).getPlayerResponse())==null?void 0:(V=C.playerConfig)==null?void 0:(N=V.daiConfig)==null?void 0:N.enableServerStitchedDai)||!1}; Jqv=function(p){return p.N.K().G("html5_enable_vod_slar_with_notify_pacf")}; QRX=function(p){return p.N.K().G("html5_recognize_predict_start_cue_point")}; Vn=function(p){return p.N.K().experiments.OY("enable_desktop_player_underlay")}; rus=function(p){return p.N.K().experiments.OY("html5_load_empty_player_in_media_break_sub_lra")}; $L=function(p){return p.N.K().experiments.OY("html5_load_ads_instead_of_cue")}; LV=function(p){return p.N.K().experiments.OY("html5_preload_ads")}; Gd=function(p){return p.N.K().experiments.OY("enable_ads_control_flow_deterministic_id_generation")}; BDL=function(p){return p.N.K().experiments.OY("enable_desktop_discovery_video_abandon_pings")||g.eH(p.N.K())&&p.N.K().experiments.OY("enable_lr_discovery_video_abandon_pings")}; Gsa=function(p){return p.N.K().experiments.OY("enable_progres_commands_lr_feeds")}; pAY=function(p){switch(p){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}}; CEX=function(){g.ca.call(this);var p=this;this.T={};this.addOnDisposeCallback(function(){for(var C=g.F(Object.keys(p.T)),V=C.next();!V.done;V=C.next())delete p.T[V.value]})}; CD=function(){if(jme===null){jme=new CEX;xc(xI).C="b";var p=xc(xI),C=DK(p)=="h"||DK(p)=="b",V=!(e1(),!1);C&&V&&(p.W=!0,p.Y=new Y$u)}return jme}; Vcj=function(p,C,V){p.T[C]=V}; NaV=function(p){switch(p){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}}; jC=function(p,C,V){this.mx=p;this.N=C;this.x_=V;this.C=new Set;this.T=new Map;CD().subscribe("adactiveviewmeasurable",this.sA,this);CD().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Ao,this);CD().subscribe("adviewableimpression",this.Iy,this);CD().subscribe("adaudioaudible",this.bN,this);CD().subscribe("adaudiomeasurable",this.Cr,this)}; NE=function(p,C,V){var N=V.Yn,H=V.s7,X=V.listener,d=V.tG;V=V.e1===void 0?!1:V.e1;if(p.T.has(C))S2("Unexpected registration of layout in LidarApi");else{if(d){if(p.C.has(d))return;p.C.add(d)}p.T.set(C,X);cs(e1().IN,"fmd",1);WnS(xc(xI),N);var a=V?C:void 0;Vcj(CD(),C,{AL:function(){if(!H)return{};var E=p.N.getPresentingPlayerType(!0),l;return(l=p.N.getVideoData(E))!=null&&l.isAd()?{currentTime:p.mx.get().getCurrentTimeSec(E,!1,a),duration:H,isPlaying:V0(p.mx.get(),E).isPlaying(),isVpaid:!1,isYouTube:!0, volume:p.mx.get().isMuted()?0:p.mx.get().getVolume()/100}:{}}})}}; Hq=function(p,C){p.T.has(C)?(p.T.delete(C),delete CD().T[C]):S2("Unexpected unregistration of layout in LidarApi")}; HQS=function(p,C){if(p.N.isLifaAdPlaying()){var V=p.N.ai(!0,!0);p.D4(C,V.width*.5*1.1,V.height*.25*1.1,V.width*.5*.9,V.height*.5*.9)}}; iQH=function(p,C,V){var N={};XAX(p,N,C,V);du9(N);N.LACT=X7(function(){return bV().toString()}); N.VIS=X7(function(){return p.getVisibilityState().toString()}); N.SDKV="h.3.0";N.VOL=X7(function(){return p.isMuted()?"0":Math.round(p.getVolume()).toString()}); N.VED="";return N}; hAs=function(p,C){var V={};if(C)return V;if(!p.kind)return g.nm(Error("AdPlacementConfig without kind")),V;if(p.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||p.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!p.adTimeOffset||!p.adTimeOffset.offsetStartMilliseconds)return g.nm(Error("malformed AdPlacementConfig")),V;V.MIDROLL_POS=X7(vX(Math.round(h9(p.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else V.MIDROLL_POS=X7(vX("0"));return V}; X7=function(p){return{toString:function(){return p()}}}; sm9=function(p,C,V){function N(a,E){(E=V[E])&&(X[a]=E)} function H(a,E){(E=V[E])&&(X[a]=d(E))} if(!V||g.k5(V))return p;var X=Object.assign({},p),d=C?encodeURIComponent:function(a){return a}; H("DV_VIEWABILITY","doubleVerifyViewability");H("IAS_VIEWABILITY","integralAdsViewability");H("MOAT_INIT","moatInit");H("MOAT_VIEWABILITY","moatViewability");N("GOOGLE_VIEWABILITY","googleViewability");N("VIEWABILITY","viewability");return X}; XAX=function(p,C,V,N){C.CPN=X7(function(){var H;(H=p.getVideoData(1))?H=H.clientPlaybackNonce:(g.eG(Error("Video data is null.")),H=null);return H}); C.AD_MT=X7(function(){if(N!=null)var H=N;else{var X=V;p.K().G("html5_ssap_use_cpn_to_get_time")||(X=void 0);if(p.K().G("enable_h5_shorts_ad_fill_ad_mt_macro")||p.K().G("enable_desktop_discovery_pings_ad_mt_macro")||g.eH(p.K())&&p.K().G("enable_lr_discovery_pings_ad_mt_macro")){var d=p.getPresentingPlayerType(!0),a;H=((a=p.getVideoData(d))==null?0:a.isAd())?aLy(p,d,X):0}else H=aLy(p,2,X)}return Math.round(Math.max(0,H*1E3)).toString()}); C.MT=X7(function(){return Math.round(Math.max(0,p.getCurrentTime(1,!1)*1E3)).toString()}); C.P_H=X7(function(){return p.dV().KO().height.toString()}); C.P_W=X7(function(){return p.dV().KO().width.toString()}); C.PV_H=X7(function(){return p.dV().getVideoContentRect().height.toString()}); C.PV_W=X7(function(){return p.dV().getVideoContentRect().width.toString()})}; du9=function(p){p.CONN=X7(vX("0"));p.WT=X7(function(){return Date.now().toString()})}; aLy=function(p,C,V){return V!==void 0?p.getCurrentTime(C,!1,V):p.getCurrentTime(C,!1)}; EzQ=function(){}; lLe=function(p,C,V,N,H){var X,d,a,E,l,t,c,T,M,J,S,D,Z;g.I(function(f){switch(f.C){case 1:X=!!C.scrubReferrer;d=g.nX(C.baseUrl,sm9(V,X,N));a={};if(!C.headers){f.EY(2);break}E=p.S();if(!E.T){l=E.getValue();f.EY(3);break}return g.y(f,E.T,4);case 4:l=f.T;case 3:t=l;c=g.F(C.headers);for(T=c.next();!T.done;T=c.next())switch(M=T.value,M.headerType){case "VISITOR_ID":g.pO("VISITOR_DATA")&&(a["X-Goog-Visitor-Id"]=g.pO("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.pO("EOM_VISITOR_DATA")&&(a["X-Goog-EOM-Visitor-Id"]= g.pO("EOM_VISITOR_DATA"));break;case "USER_AUTH":t&&(a.Authorization="Bearer "+t);break;case "PLUS_PAGE_ID":(J=p.W())&&(a["X-Goog-PageId"]=J);break;case "AUTH_USER":S=p.T();!t&&S&&(a["X-Goog-AuthUser"]=S);break;case "DATASYNC_ID":if(D=void 0,(D=p.V())==null?0:D.OY("enable_datasync_id_header_in_web_vss_pings"))Z=p.C(),l1(d)&&g.pO("LOGGED_IN")&&Z&&(a["X-YouTube-DataSync-Id"]=Z)}"X-Goog-EOM-Visitor-Id"in a&&"X-Goog-Visitor-Id"in a&&delete a["X-Goog-Visitor-Id"];case 2:g.BC(d,void 0,X,Object.keys(a).length!== 0?a:void 0,"",!0,H),g.JQ(f)}})}; tcQ=function(p,C,V,N,H){this.S=p;this.W=C;this.T=V;this.C=N;this.V=H}; cSH=function(p,C){this.T=p;this.x_=C}; dv=function(p,C,V,N,H,X,d){var a=a===void 0?new tcQ(function(){var E=p.K(),l=p.getVideoData(1);return g.pk(E,l?g.XE(l):"")},function(){return p.K().pageId},function(){return p.K().sY},function(){var E; return(E=p.K().datasyncId)!=null?E:""},function(){return p.K().experiments}):a; this.N=p;this.C=C;this.AQ=V;this.pS=N;this.hQ=H;this.x_=X;this.e5=d;this.S=a;this.df=null;this.T=new Map;this.V=new cSH(a,this.x_)}; Mcu=function(p,C,V,N,H){var X=IY(p.C.get(),V);X?(V=oj(p,Ta9(X),X,void 0,void 0,N),C.hasOwnProperty("baseUrl")?p.S.send(C,V):p.V.send(C,V,{},H)):S2("Trying to ping from an unknown layout",void 0,void 0,{layoutId:V})}; mYS=function(p,C,V,N,H,X){N=N===void 0?[]:N;var d=IY(p.C.get(),C);if(d){var a=p.AQ.get().pO(C,V),E=oj(p,Ta9(d),d,H,X);N.forEach(function(l,t){l.baseUrl&&(p.V.send(l.baseUrl,E,a,l.attributionSrcMode),l.serializedAdPingMetadata&&p.hQ.pV("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,d,new G6H(l,t),void 0,void 0,d.adLayoutLoggingData))})}else S2("Trying to track from an unknown layout.",void 0,void 0,{layoutId:C, trackingType:V})}; fs=function(p,C){p.N.sendVideoStatsEngageEvent(C,void 0,2)}; al=function(p,C){g.t1("adsClientStateChange",C)}; JS1=function(p,C){p.T.has(C.oO())?S2("Trying to register an existing AdErrorInfoSupplier."):p.T.set(C.oO(),C)}; muu=function(p,C){p.T.delete(C.oO())||S2("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; tV=function(p,C,V){typeof V==="string"?p.N.getVideoData(1).x8(C,V):p.N.getVideoData(1).k_(C,V)}; Ta9=function(p){var C=Ef(p.clientMetadata,"metadata_type_ad_placement_config");p=Ef(p.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:C,J0:p}}; oj=function(p,C,V,N,H,X){var d=V?vz9(p):{},a=V?FXH(p,V.layoutId):{},E=Swe(p),l,t=H!=null?H:(l=O3(p.pS.get(),2))==null?void 0:l.clientPlaybackNonce;p.N.K().G("enable_player_logging_lr_home_infeed_ads")&&!t&&(t=O3(p.pS.get(),1).clientPlaybackNonce);H=void 0;if(V){var c;if((c=p.e5.T.get(V.layoutId))==null?0:c.e1)H=V.layoutId}c={};p=Object.assign({},iQH(p.N,H,N),hAs(C.adPlacementConfig,(V==null?void 0:V.renderingContent)!==void 0),a,d,E,(c.FINAL=X7(function(){return"1"}),c.AD_CPN=X7(function(){return t|| ""}),c)); (V==null?void 0:V.renderingContent)!==void 0||(p.SLOT_POS=X7(function(){return(C.J0||0).toString()})); V={};X=Object.assign({},p,X);p=g.F(Object.values(KXv));for(N=p.next();!N.done;N=p.next())N=N.value,d=X[N],d!=null&&d.toString()!=null&&(V[N]=d.toString());return V}; vz9=function(p){var C={},V,N=(V=p.df)==null?void 0:V.Xg/1E3;N!=null&&(C.SURVEY_ELAPSED_MS=X7(function(){return Math.round(N*1E3).toString()})); C.SURVEY_LOCAL_TIME_EPOCH_S=X7(function(){return Math.round(Date.now()/1E3).toString()}); return C}; FXH=function(p,C){p=p.T.get(C);if(!p)return{};p=p.j2();if(!p)return{};C={};return C.YT_ERROR_CODE=p.Ay.toString(),C.ERRORCODE=p.AM.toString(),C.ERROR_MSG=p.errorMessage,C}; Swe=function(p){var C={},V=p.N.getVideoData(1);C.ASR=X7(function(){var N;return(N=V==null?void 0:V.Ts)!=null?N:null}); C.EI=X7(function(){var N;return(N=V==null?void 0:V.eventId)!=null?N:null}); return C}; iM=function(p,C,V){g.Y.call(this);this.N=p;this.VA=C;this.x_=V;this.listeners=[];this.BF=null;this.VI=new Map;C=new g.Rr(this);g.R(this,C);C.U(p,"videodatachange",this.UZ$);C.U(p,"serverstitchedvideochange",this.IEn);this.KA=O3(this)}; O3=function(p,C){var V=p.N.getVideoData(C);return V?p.Z1(V,C||p.N.getPresentingPlayerType(!0)):null}; Due=function(p,C,V){var N=p.Z1(C,V);p.KA=N;p.listeners.forEach(function(H){H.nZ(N)})}; uTQ=function(p){switch(p){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}}; hF=function(p,C,V){g.Y.call(this);this.N=p;this.pS=C;this.x_=V;this.listeners=[];this.xW=[];this.T=function(){S2("Called 'doUnlockPreroll' before it's initialized.")}; C=new I_(this);V=new g.Rr(this);g.R(this,V);g.R(this,C);C.U(p,"progresssync",this.UW$);C.U(p,"presentingplayerstatechange",this.e6o);C.U(p,"fullscreentoggled",this.onFullscreenToggled);C.U(p,"onVolumeChange",this.onVolumeChange);C.U(p,"minimized",this.xq);C.U(p,"overlayvisibilitychange",this.iM);C.U(p,"shortsadswipe",this.Wz);C.U(p,"resize",this.OR);V.U(p,g.Ez("appad"),this.vz)}; sm=function(p){pD(p.x_.get())||p.T()}; ZQY=function(p,C){p.xW=p.xW.filter(function(V){return V!==C})}; aQ=function(p,C,V){return p.getCurrentTimeSec(C,V)}; Uue=function(p,C){var V;C=(V=p.pS.get().VI.get(C))!=null?V:null;if(C===null)return S2("Expected ad video start time on playback timeline"),0;p=p.N.getCurrentTime(2,!0);return p0){var X=C.end.toString();H.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&d.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&d.adTimeOffset&&d.adTimeOffset.offsetEndMilliseconds==="-1"&&d.adTimeOffset.offsetEndMilliseconds!==X&&(d.adTimeOffset.offsetEndMilliseconds=X)}); N.map(function(d){return g.n(d,eB)}).forEach(function(d){var a; (d=d==null?void 0:(a=d.slotEntryTrigger)==null?void 0:a.mediaTimeRangeTrigger)&&d.offsetEndMilliseconds==="-1"&&(d.offsetEndMilliseconds=X)})}return{zs:H, adSlots:N,cC:!1,ssdaiAdsConfig:p.ssdaiAdsConfig}}; TS=function(p){g.Y.call(this);this.N=p;this.listeners=[];this.T=new I_(this);g.R(this,this.T);this.T.U(this.N,"aduxclicked",this.onAdUxClicked);this.T.U(this.N,"aduxmouseover",this.xo);this.T.U(this.N,"aduxmouseout",this.A5);this.T.U(this.N,"muteadaccepted",this.rkn)}; ILs=function(p,C,V){C=g.AU(C,function(N){return new nlj(N,V,N.id)}); p.N.Jk("onAdUxUpdate",C)}; ME=function(p,C){p=g.F(p.listeners);for(var V=p.next();!V.done;V=p.next())C(V.value)}; JF=function(p,C){this.C=p;this.V=C===void 0?!1:C;this.T={}}; bQs=function(p,C){var V=p.startSecs+p.uc;V=V<=0?null:V;if(V===null)return null;switch(p.event){case "start":case "continue":case "stop":break;case "predictStart":if(C)break;return null;default:return null}C=Math.max(p.startSecs,0);return{NC:new Od(C,V),T6:new xg(C,V-C,p.context,p.identifier,p.event,p.T)}}; AS9=function(){this.T=[]}; M2y=function(p,C,V){var N=g.Xv(p.T,C);if(N>=0)return C;C=-N-1;return C>=p.T.length||p.T[C]>V?null:p.T[C]}; mf=function(p,C,V){g.Y.call(this);this.N=p;this.x_=C;this.No=V;this.listeners=[];this.S=!1;this.ya=[];this.C=null;this.W=new JF(this,QRX(C.get()));this.V=new AS9;this.T=null}; ozX=function(p,C){p.ya.push(C);for(var V=!1,N=g.F(p.listeners),H=N.next();!H.done;H=N.next())V=H.value.Qd(C)||V;p.S=V}; xus=function(p,C){al(p.No.get(),{cuepointTrigger:{event:kZL(C.event),cuepointId:C.identifier,totalCueDurationMs:C.uc*1E3,playheadTimeMs:C.T,cueStartTimeMs:C.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:p.N.getVideoData(1).clientPlaybackNonce}})}; kZL=function(p){switch(p){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 N1(p,"Unexpected cuepoint event")}}; vq=function(p){this.N=p}; Yws=function(p,C){p.N.cueVideoByPlayerVars(C,2)}; F7=function(p){this.N=p}; SC=function(p){this.N=p}; zAH=function(p){switch(p){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:N1(p,"unknown transitionReason")}}; RAy=function(p){this.N=p}; nzV=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);var l=gt(function(){return new fa(p)}); g.R(this,l);var t=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,t);var c=gt(function(){return new XF}); g.R(this,c);this.MW=gt(function(){return new TS(C)}); g.R(this,this.MW);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.gY=gt(function(){return new vq(C)}); g.R(this,this.gY);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var T=gt(function(){return new cq(N)}); g.R(this,T);var M=gt(function(){return new vU(X.x_)}); g.R(this,M);this.fd=gt(function(){return new F7(C)}); g.R(this,this.fd);this.Yz=gt(function(){return new Gm}); g.R(this,this.Yz);this.pS=gt(function(){return new iM(C,c,X.x_)}); g.R(this,this.pS);var J=gJ({pS:this.pS,x_:this.x_,Mt:M}),S=J.context,D=J.e5;this.hQ=J.hQ;this.BV=gt(function(){return new mf(C,X.x_,X.No)}); g.R(this,this.BV);this.kG=gt(function(){return new SC(C)}); g.R(this,this.kG);this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);J=gt(function(){return new v0(d,t,a,X.x_,M,"SLOT_TYPE_ABOVE_FEED",X.mx,X.ZS,X.L9)}); g.R(this,J);this.GM=gt(function(){return new ps(X.x_)}); this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,D)}); g.R(this,this.No);this.GS=new ZY(u_,KD,function(f,q,A,z){return j8(a.get(),f,q,A,z)},l,t,a,M,this.x_,this.pS); g.R(this,this.GS);this.xt=new UA(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var Z=new WN(C,this.xt,this.mx,this.pS,this.BV);this.EE=gt(function(){return Z}); this.rJ=Z;this.ZS=new Ka(l,t,this.EE,this.BV,this.mx,this.x_,this.No,this.kG);g.R(this,this.ZS);this.PR=new OA(l,t,this.iJ,this.EE,S);g.R(this,this.PR);this.r7=new nj(this.x_,l,t,J,this.pS,this.PR,V);g.R(this,this.r7);this.o5=gt(function(){return new mk(T,a,M,X.x_,X.No,X.mx,X.kG)}); g.R(this,this.o5);this.n9=gt(function(){return new v8}); g.R(this,this.n9);this.cR=new xx(p,this.MW,this.x_);g.R(this,this.cR);this.UR=new Yx(p);g.R(this,this.UR);this.DU=new zd(p);g.R(this,this.DU);this.fO=new na(p,this.EE,S);g.R(this,this.fO);this.H1=new e8(p,this.iJ,this.mx,this.pS,S);g.R(this,this.H1);this.gO=new P0(p,this.pS);g.R(this,this.gO);this.L9=new La(p,this.BV,this.mx,this.No,this.EE);g.R(this,this.L9);this.xl=new w6(p);g.R(this,this.xl);this.u9=new r6(p);g.R(this,this.u9);this.WB=new $x(p);g.R(this,this.WB);this.TQ=new Qn(p);g.R(this,this.TQ); this.u9=new r6(p);g.R(this,this.u9);this.TM=gt(function(){return new b_}); g.R(this,this.TM);this.hB=gt(function(){return new AL(X.mx)}); g.R(this,this.hB);this.l$=gt(function(){return new zYQ(X.MW,X.No,p,E,X.AQ)}); g.R(this,this.l$);this.wR=gt(function(){return new ND(X.r7,l,d)}); g.R(this,this.wR);this.bf=gt(function(){return new dO(X.x_,X.No,X.xl,X.AQ)}); g.R(this,this.bf);this.N1=gt(function(){return new SI(p,X.u9,X.xl,X.pS,X.kG,X.mx,X.No,c,X.BV,X.AQ,X.GM,X.gY,X.iJ,X.sZ,X.YG,X.zk,X.fd,X.x_,E,S,D)}); g.R(this,this.N1);this.W2=gt(function(){return new Cqe(X.mx,X.No,X.zk,X.x_,X.AQ)}); g.R(this,this.W2);this.Lv=gt(function(){return new nUS(X.MW,X.mx,X.No,E,X.AQ,X.DU,X.TQ,X.zk,X.x_,V)}); g.R(this,this.Lv);this.FK=gt(function(){return new RYS(X.MW,X.No,E)}); g.R(this,this.FK);this.As=new tF(p,this.Yz,d);g.R(this,this.As);this.E8={T3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.r7],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ZS],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.GS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xt],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.PR]]),MG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.o5],["SLOT_TYPE_ABOVE_FEED",this.n9],["SLOT_TYPE_FORECASTING",this.n9], ["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9],["SLOT_TYPE_PLAYER_UNDERLAY",this.n9],["SLOT_TYPE_PLAYBACK_TRACKING",this.n9],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.n9]]),D_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cR],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.cR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UR],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.UR],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UR],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.UR],["TRIGGER_TYPE_CLOSE_REQUESTED",this.DU],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fO],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.H1],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.H1],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.H1],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.H1],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.H1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.gO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.gO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.fO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.WB],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.TQ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.L9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.L9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.L9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.L9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.L9]]),LT:new Map([["SLOT_TYPE_ABOVE_FEED",this.TM], ["SLOT_TYPE_AD_BREAK_REQUEST",this.TM],["SLOT_TYPE_FORECASTING",this.TM],["SLOT_TYPE_IN_PLAYER",this.TM],["SLOT_TYPE_PLAYER_BYTES",this.hB],["SLOT_TYPE_PLAYER_UNDERLAY",this.TM],["SLOT_TYPE_PLAYBACK_TRACKING",this.TM],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.TM]]),tx:new Map([["SLOT_TYPE_ABOVE_FEED",this.l$],["SLOT_TYPE_AD_BREAK_REQUEST",this.wR],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_PLAYER_BYTES",this.N1],["SLOT_TYPE_PLAYBACK_TRACKING",this.W2],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.W2],["SLOT_TYPE_IN_PLAYER",this.Lv],["SLOT_TYPE_PLAYER_UNDERLAY",this.FK]])};this.listeners=[E.get()];this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:this.Yz.get(),Bp:this.cR,I8:E.get(),w6:this.pS.get()}}; eAv=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);var l=gt(function(){return new fa(p)}); g.R(this,l);var t=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,t);var c=gt(function(){return new XF}); g.R(this,c);this.MW=gt(function(){return new TS(C)}); g.R(this,this.MW);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.gY=gt(function(){return new vq(C)}); g.R(this,this.gY);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var T=gt(function(){return new cq(N)}); g.R(this,T);var M=gt(function(){return new vU(X.x_)}); g.R(this,M);var J=gt(function(){return new v0(d,t,a,X.x_,M,null,null,X.ZS,X.L9)}); g.R(this,J);this.fd=gt(function(){return new F7(C)}); g.R(this,this.fd);this.Yz=gt(function(){return new Gm}); g.R(this,this.Yz);this.pS=gt(function(){return new iM(C,c,X.x_)}); g.R(this,this.pS);var S=gJ({pS:this.pS,x_:this.x_,Mt:M}),D=S.context,Z=S.e5;this.hQ=S.hQ;this.BV=gt(function(){return new mf(C,X.x_,X.No)}); this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,Z)}); g.R(this,this.No);this.GM=gt(function(){return new ps(X.x_)}); g.R(this,this.GM);this.GS=new ZY(u_,KD,function(q,A,z,Q){return j8(a.get(),q,A,z,Q)},l,t,a,M,this.x_,this.pS); g.R(this,this.GS);this.xt=new UA(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var f=new WN(C,this.xt,this.mx,this.pS,this.BV);this.EE=gt(function(){return f}); this.rJ=f;this.ZS=new Ka(l,t,this.EE,this.BV,this.mx,this.x_,this.No);g.R(this,this.ZS);this.PR=new OA(l,t,this.iJ,this.EE,D);g.R(this,this.PR);this.r7=new nj(this.x_,l,t,J,this.pS,this.PR,V);g.R(this,this.r7);this.o5=gt(function(){return new mk(T,a,M,X.x_,X.No,X.mx)}); g.R(this,this.o5);this.n9=gt(function(){return new v8}); g.R(this,this.n9);this.cR=new xx(p,this.MW,this.x_);g.R(this,this.cR);this.UR=new Yx(p);g.R(this,this.UR);this.DU=new zd(p);g.R(this,this.DU);this.fO=new na(p,this.EE,D);g.R(this,this.fO);this.H1=new e8(p,this.iJ,this.mx,this.pS,D);g.R(this,this.H1);this.xl=new w6(p);g.R(this,this.xl);this.WB=new $x(p);g.R(this,this.WB);this.TQ=new Qn(p);g.R(this,this.TQ);this.kG=gt(function(){return new SC(C)}); g.R(this,this.kG);this.u9=new r6(p);g.R(this,this.u9);this.L9=new La(p,this.BV,this.mx,this.No,this.EE);g.R(this,this.L9);this.TM=gt(function(){return new b_}); g.R(this,this.TM);this.hB=gt(function(){return new AL(X.mx)}); g.R(this,this.hB);this.wR=gt(function(){return new ND(X.r7,l,d)}); g.R(this,this.wR);this.bf=gt(function(){return new dO(X.x_,X.No,X.xl,X.AQ)}); g.R(this,this.bf);this.Lv=gt(function(){return new eSL(X.MW,X.mx,X.No,E,X.AQ,X.DU,X.TQ,X.zk,X.x_,V)}); g.R(this,this.Lv);this.N1=gt(function(){return new Kr(p,X.u9,X.xl,X.No,X.AQ,X.GM,X.gY,X.pS,X.mx,X.iJ,X.sZ,X.YG,X.zk,X.fd,X.x_,X.kG,D,Z)}); g.R(this,this.N1);this.As=new tF(p,this.Yz,d);g.R(this,this.As);this.E8={T3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.r7],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ZS],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.GS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xt],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.PR]]),MG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.o5],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9], ["SLOT_TYPE_PLAYER_BYTES",this.n9]]),D_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UR],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UR], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.UR],["TRIGGER_TYPE_CLOSE_REQUESTED",this.DU],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.H1],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.H1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.WB],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.TQ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.L9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.L9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.L9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.L9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.L9]]),LT:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TM],["SLOT_TYPE_FORECASTING",this.TM],["SLOT_TYPE_IN_PLAYER",this.TM],["SLOT_TYPE_PLAYER_BYTES",this.hB]]), tx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wR],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_IN_PLAYER",this.Lv],["SLOT_TYPE_PLAYER_BYTES",this.N1]])};this.listeners=[E.get()];this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:this.Yz.get(),Bp:this.cR,I8:E.get(),w6:this.pS.get()}}; PEY=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);var l=gt(function(){return new fa(p)}); g.R(this,l);var t=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,t);var c=gt(function(){return new XF}); g.R(this,c);this.MW=gt(function(){return new TS(C)}); g.R(this,this.MW);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.gY=gt(function(){return new vq(C)}); g.R(this,this.gY);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var T=gt(function(){return new cq(N)}); g.R(this,T);var M=gt(function(){return new vU(X.x_)}); g.R(this,M);var J=gt(function(){return new v0(d,t,a,X.x_,M,null,null,null,null)}); g.R(this,J);this.fd=gt(function(){return new F7(C)}); g.R(this,this.fd);this.pS=gt(function(){return new iM(C,c,X.x_)}); g.R(this,this.pS);var S=gJ({pS:this.pS,x_:this.x_,Mt:M}),D=S.context,Z=S.e5;this.hQ=S.hQ;this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,Z)}); g.R(this,this.No);this.GM=gt(function(){return new ps(X.x_)}); g.R(this,this.GM);this.GS=new ZY(u_,KD,function(q,A,z,Q){return j8(a.get(),q,A,z,Q)},l,t,a,M,this.x_,this.pS); g.R(this,this.GS);this.xt=new UA(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var f=new WN(C,this.xt,this.mx,this.pS);this.EE=gt(function(){return f}); this.rJ=f;this.PR=new OA(l,t,this.iJ,this.EE,D);g.R(this,this.PR);this.r7=new nj(this.x_,l,t,J,this.pS,this.PR,V);g.R(this,this.r7);this.o5=gt(function(){return new mk(T,a,M,X.x_,X.No,X.mx)}); g.R(this,this.o5);this.n9=gt(function(){return new v8}); g.R(this,this.n9);this.cR=new xx(p,this.MW,this.x_);g.R(this,this.cR);this.UR=new Yx(p);g.R(this,this.UR);this.fO=new na(p,this.EE,D);g.R(this,this.fO);this.H1=new e8(p,this.iJ,this.mx,this.pS,D);g.R(this,this.H1);this.xl=new w6(p);g.R(this,this.xl);this.WB=new $x(p);g.R(this,this.WB);this.kG=gt(function(){return new SC(C)}); g.R(this,this.kG);this.u9=new r6(p);g.R(this,this.u9);this.TM=gt(function(){return new b_}); g.R(this,this.TM);this.hB=gt(function(){return new AL(X.mx)}); g.R(this,this.hB);this.wR=gt(function(){return new ND(X.r7,l,d)}); g.R(this,this.wR);this.bf=gt(function(){return new dO(X.x_,X.No,X.xl,X.AQ)}); g.R(this,this.bf);this.jF=gt(function(){return new Gjj(X.MW,X.mx,X.No,E,V,X.x_)}); g.R(this,this.jF);this.N1=gt(function(){return new Kr(p,X.u9,X.xl,X.No,X.AQ,X.GM,X.gY,X.pS,X.mx,X.iJ,X.sZ,X.YG,X.zk,X.fd,X.x_,X.kG,D,Z)}); g.R(this,this.N1);this.E8={T3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.r7],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.GS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xt],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.PR]]),MG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.o5],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9]]),D_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.UR],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UR],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UR],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.H1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.WB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9]]),LT:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TM],["SLOT_TYPE_ABOVE_FEED",this.TM],["SLOT_TYPE_FORECASTING",this.TM],["SLOT_TYPE_IN_PLAYER",this.TM],["SLOT_TYPE_PLAYER_BYTES",this.hB]]),tx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wR],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_IN_PLAYER", this.jF],["SLOT_TYPE_PLAYER_BYTES",this.N1]])};this.listeners=[E.get()];this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:null,Bp:this.cR,I8:E.get(),w6:this.pS.get()}}; wAs=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);var l=gt(function(){return new fa(p)}); g.R(this,l);var t=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,t);var c=gt(function(){return new XF}); g.R(this,c);this.Xu=gt(function(){return new RAy(C)}); g.R(this,this.Xu);this.MW=gt(function(){return new TS(C)}); g.R(this,this.MW);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.gY=gt(function(){return new vq(C)}); g.R(this,this.gY);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var T=gt(function(){return new cq(N)}); g.R(this,T);var M=gt(function(){return new vU(X.x_)}); g.R(this,M);var J=gt(function(){return new v0(d,t,a,X.x_,M,null,null,null,null)}); g.R(this,J);this.fd=gt(function(){return new F7(C)}); g.R(this,this.fd);this.pS=gt(function(){return new iM(C,c,X.x_)}); g.R(this,this.pS);var S=gJ({pS:this.pS,x_:this.x_,Mt:M}),D=S.context,Z=S.e5;this.hQ=S.hQ;this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,Z)}); g.R(this,this.No);this.GM=gt(function(){return new ps(X.x_)}); g.R(this,this.GM);this.GS=new ZY(Dgu,KD,function(q,A,z,Q){return $gu(a.get(),q,A,z,Q)},l,t,a,M,this.x_,this.pS); g.R(this,this.GS);this.xt=new UA(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var f=new WN(C,this.xt,this.mx,this.pS);this.EE=gt(function(){return f}); this.rJ=f;this.PR=new OA(l,t,this.iJ,this.EE,D);g.R(this,this.PR);this.r7=new nj(this.x_,l,t,J,this.pS,this.PR,V);g.R(this,this.r7);this.o5=gt(function(){return new mk(T,a,M,X.x_,X.No,X.mx)}); g.R(this,this.o5);this.n9=gt(function(){return new v8}); g.R(this,this.n9);this.cR=new xx(p,this.MW,this.x_);g.R(this,this.cR);this.UR=new Yx(p);g.R(this,this.UR);this.fO=new na(p,this.EE,D);g.R(this,this.fO);this.H1=new e8(p,this.iJ,this.mx,this.pS,D);g.R(this,this.H1);this.xl=new w6(p);g.R(this,this.xl);this.WB=new $x(p);g.R(this,this.WB);this.kG=gt(function(){return new SC(C)}); g.R(this,this.kG);this.u9=new r6(p);g.R(this,this.u9);this.TM=gt(function(){return new b_}); g.R(this,this.TM);this.hB=gt(function(){return new AL(X.mx)}); g.R(this,this.hB);this.wR=gt(function(){return new ND(X.r7,l,d)}); g.R(this,this.wR);this.bf=gt(function(){return new dO(X.x_,X.No,X.xl,X.AQ)}); g.R(this,this.bf);this.N1=gt(function(){return new Kr(p,X.u9,X.xl,X.No,X.AQ,X.GM,X.gY,X.pS,X.mx,X.iJ,X.sZ,X.YG,X.zk,X.fd,X.x_,X.kG,D,Z)}); g.R(this,this.N1);this.mN=gt(function(){return new wEX(X.MW,X.mx,X.No,E,X.Xu,V,X.pS)}); g.R(this,this.mN);this.E8={T3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.r7],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.GS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xt],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.PR]]),MG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.o5],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9]]),D_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.UR],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UR],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UR],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.H1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.WB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9]]),LT:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TM],["SLOT_TYPE_FORECASTING",this.TM],["SLOT_TYPE_IN_PLAYER",this.TM],["SLOT_TYPE_PLAYER_BYTES",this.hB]]),tx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wR],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_IN_PLAYER",this.mN],["SLOT_TYPE_PLAYER_BYTES", this.N1]])};this.listeners=[E.get()];this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:null,Bp:this.cR,I8:E.get(),w6:this.pS.get()}}; $ue=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);var l=gt(function(){return new fa(p)}); g.R(this,l);var t=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,t);var c=gt(function(){return new XF}); g.R(this,c);this.Xu=gt(function(){return new RAy(C)}); g.R(this,this.Xu);this.MW=gt(function(){return new TS(C)}); g.R(this,this.MW);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.gY=gt(function(){return new vq(C)}); g.R(this,this.gY);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var T=gt(function(){return new cq(N)}); g.R(this,T);var M=gt(function(){return new vU(X.x_)}); g.R(this,M);this.fd=gt(function(){return new F7(C)}); g.R(this,this.fd);this.pS=gt(function(){return new iM(C,c,X.x_)}); g.R(this,this.pS);var J=gJ({pS:this.pS,x_:this.x_,Mt:M}),S=J.context,D=J.e5;this.hQ=J.hQ;this.BV=gt(function(){return new mf(C,X.x_,X.No)}); g.R(this,this.BV);this.kG=gt(function(){return new SC(C)}); g.R(this,this.kG);this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);J=gt(function(){return new v0(d,t,a,X.x_,M,null,X.mx,X.ZS,X.L9,3)}); g.R(this,J);this.GM=gt(function(){return new ps(X.x_)}); this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,D)}); g.R(this,this.No);this.xt=new UA(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var Z=new WN(C,this.xt,this.mx,this.pS,this.BV);this.EE=gt(function(){return Z}); this.rJ=Z;this.GS=new ZY(uqY,KD,function(f,q,A,z){return $gu(a.get(),f,q,A,z)},l,t,a,M,this.x_,this.pS); g.R(this,this.GS);this.ZS=new Ka(l,t,this.EE,this.BV,this.mx,this.x_,this.No,this.kG);g.R(this,this.ZS);this.PR=new OA(l,t,this.iJ,this.EE,S);g.R(this,this.PR);this.r7=new nj(this.x_,l,t,J,this.pS,this.PR,V);g.R(this,this.r7);this.o5=gt(function(){return new mk(T,a,M,X.x_,X.No,X.mx,X.kG)}); g.R(this,this.o5);this.n9=gt(function(){return new v8}); g.R(this,this.n9);this.cR=new xx(p,this.MW,this.x_);g.R(this,this.cR);this.UR=new Yx(p);g.R(this,this.UR);this.fO=new na(p,this.EE,S);g.R(this,this.fO);this.H1=new e8(p,this.iJ,this.mx,this.pS,S);g.R(this,this.H1);this.gO=new P0(p,this.pS);g.R(this,this.gO);this.L9=new La(p,this.BV,this.mx,this.No,this.EE);g.R(this,this.L9);this.xl=new w6(p);g.R(this,this.xl);this.WB=new $x(p);g.R(this,this.WB);this.u9=new r6(p);g.R(this,this.u9);this.TM=gt(function(){return new b_}); g.R(this,this.TM);this.hB=gt(function(){return new AL(X.mx)}); g.R(this,this.hB);this.wR=gt(function(){return new ND(X.r7,l,d)}); g.R(this,this.wR);this.bf=gt(function(){return new dO(X.x_,X.No,X.xl,X.AQ)}); g.R(this,this.bf);this.N1=gt(function(){return new SI(p,X.u9,X.xl,X.pS,X.kG,X.mx,X.No,c,X.BV,X.AQ,X.GM,X.gY,X.iJ,X.sZ,X.YG,X.zk,X.fd,X.x_,E,S,D)}); g.R(this,this.N1);this.Lv=gt(function(){return new $NL(X.MW,X.mx,X.No,E,X.Xu,V,X.x_,X.pS)}); g.R(this,this.Lv);this.E8={T3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.r7],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ZS],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.GS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xt],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.PR]]),MG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.o5],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9]]),D_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.cR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UR],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UR],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.H1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.gO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.gO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.WB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.L9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.L9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.L9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.L9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.L9]]),LT:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TM],["SLOT_TYPE_FORECASTING",this.TM],["SLOT_TYPE_IN_PLAYER",this.TM],["SLOT_TYPE_PLAYER_BYTES",this.hB]]),tx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wR],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_PLAYER_BYTES",this.N1],["SLOT_TYPE_IN_PLAYER",this.Lv]])};this.listeners=[E.get()]; this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:null,Bp:this.cR,I8:E.get(),w6:this.pS.get()}}; gzX=function(p,C,V,N){function H(){return X.C} g.Y.call(this);var X=this;p.K().experiments.OY("html5_dispose_of_manager_before_dependency")?(this.T=LX1(H,p,C,V,N),this.C=(new WU(this.T)).V(),g.R(this,this.C),g.R(this,this.T)):(this.T=LX1(H,p,C,V,N),g.R(this,this.T),this.C=(new WU(this.T)).V(),g.R(this,this.C))}; DO=function(p){return p.T.PE}; LX1=function(p,C,V,N,H){try{var X=C.K();if(g.wG(X))var d=new nzV(p,C,V,N,H);else if(g.LI(X))d=new eAv(p,C,V,N,H);else if(kS(X))d=new PEY(p,C,V,N,H);else if(g.gk(X))d=new wAs(p,C,V,N,H);else if(g.yj(X))d=new $ue(p,C,V,N,H);else throw new TypeError("Unknown web interface");return d}catch(a){return d=C.K(),S2("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:d.T.cplatform,interface:d.T.c,PLV:d.T.cver,pKV:d.T.ctheme,Hta:d.T.cplayer,sn$:d.playerStyle}),new ySe(p,C,V,N,H)}}; WXe=function(p){GB.call(this,p)}; QmX=function(p,C,V,N,H){dk.call(this,p,{L:"div",B:"ytp-ad-timed-pie-countdown-container",j:[{L:"svg",B:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},j:[{L:"circle",B:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{L:"circle",B:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{L:"circle",B:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",C,V,N,H);this.S=this.rV("ytp-ad-timed-pie-countdown-container");this.V=this.rV("ytp-ad-timed-pie-countdown-inner"); this.W=this.rV("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(2*Math.PI*5);this.hide()}; rSe=function(p,C,V,N,H,X){Kq.call(this,p,{L:"div",B:"ytp-ad-action-interstitial",X:{tabindex:"0"},j:[{L:"div",B:"ytp-ad-action-interstitial-background-container"},{L:"div",B:"ytp-ad-action-interstitial-slot",j:[{L:"div",B:"ytp-ad-action-interstitial-instream-info"},{L:"div",B:"ytp-ad-action-interstitial-card",j:[{L:"div",B:"ytp-ad-action-interstitial-image-container"},{L:"div",B:"ytp-ad-action-interstitial-headline-container"},{L:"div",B:"ytp-ad-action-interstitial-description-container"},{L:"div", B:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",C,V,N);this.RE=H;this.L5=X;this.navigationEndpoint=this.T=this.skipButton=this.C=this.actionButton=null;this.Ga=this.rV("ytp-ad-action-interstitial-instream-info");this.vr=this.rV("ytp-ad-action-interstitial-image-container");this.Z=new Wa(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-action-interstitial-image");g.R(this,this.Z);this.Z.u_(this.vr);this.Sa=this.rV("ytp-ad-action-interstitial-headline-container"); this.W=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-action-interstitial-headline");g.R(this,this.W);this.W.u_(this.Sa);this.b_=this.rV("ytp-ad-action-interstitial-description-container");this.V=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-action-interstitial-description");g.R(this,this.V);this.V.u_(this.b_);this.Qn=this.rV("ytp-ad-action-interstitial-background-container");this.R$=new Wa(this.api,this.layoutId,this.interactionLoggingClientData, this.l_,"ytp-ad-action-interstitial-background",!0);g.R(this,this.R$);this.R$.u_(this.Qn);this.KS=this.rV("ytp-ad-action-interstitial-action-button-container");this.slot=this.rV("ytp-ad-action-interstitial-slot");this.eZ=this.rV("ytp-ad-action-interstitial-card");this.S=new I_;g.R(this,this.S);this.hide()}; Bas=function(p){var C=g.ju("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; jGv=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-overlay-slot",j:[{L:"div",B:"ytp-ad-overlay-container"}]},"invideo-overlay",C,V,N);this.Z=[];this.Qn=this.Sa=this.S=this.KS=this.Ga=null;this.R$=!1;this.W=null;this.b_=0;p=this.rV("ytp-ad-overlay-container");this.vr=new MN(p,45E3,6E3,.3,.4);g.R(this,this.vr);this.V=GZ9(this);g.R(this,this.V);this.V.u_(p);this.C=pme(this);g.R(this,this.C);this.C.u_(p);this.T=Cyv(this);g.R(this,this.T);this.T.u_(p);this.hide()}; GZ9=function(p){var C=new g.Sp({L:"div",B:"ytp-ad-text-overlay",j:[{L:"div",B:"ytp-ad-overlay-ad-info-button-container"},{L:"div",B:"ytp-ad-overlay-close-container",j:[{L:"button",B:"ytp-ad-overlay-close-button",j:[RS(VRL)]}]},{L:"div",B:"ytp-ad-overlay-title",Ak:"{{title}}"},{L:"div",B:"ytp-ad-overlay-desc",Ak:"{{description}}"},{L:"div",i_:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Ak:"{{displayUrl}}"}]});p.U(C.rV("ytp-ad-overlay-title"),"click",function(V){uM(p,C.element,V)}); p.U(C.rV("ytp-ad-overlay-link"),"click",function(V){uM(p,C.element,V)}); p.U(C.rV("ytp-ad-overlay-close-container"),"click",p.qL);C.hide();return C}; pme=function(p){var C=new g.Sp({L:"div",i_:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],j:[{L:"div",B:"ytp-ad-overlay-ad-info-button-container"},{L:"div",B:"ytp-ad-overlay-close-container",j:[{L:"button",B:"ytp-ad-overlay-close-button",j:[RS(VRL)]}]},{L:"div",B:"ytp-ad-overlay-text-image",j:[{L:"img",X:{src:"{{imageUrl}}"}}]},{L:"div",B:"ytp-ad-overlay-title",Ak:"{{title}}"},{L:"div",B:"ytp-ad-overlay-desc",Ak:"{{description}}"},{L:"div",i_:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Ak:"{{displayUrl}}"}]});p.U(C.rV("ytp-ad-overlay-title"),"click",function(V){uM(p,C.element,V)}); p.U(C.rV("ytp-ad-overlay-link"),"click",function(V){uM(p,C.element,V)}); p.U(C.rV("ytp-ad-overlay-close-container"),"click",p.qL);p.U(C.rV("ytp-ad-overlay-text-image"),"click",p.h3n);C.hide();return C}; Cyv=function(p){var C=new g.Sp({L:"div",B:"ytp-ad-image-overlay",j:[{L:"div",B:"ytp-ad-overlay-ad-info-button-container"},{L:"div",B:"ytp-ad-overlay-close-container",j:[{L:"button",B:"ytp-ad-overlay-close-button",j:[RS(VRL)]}]},{L:"div",B:"ytp-ad-overlay-image",j:[{L:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});p.U(C.rV("ytp-ad-overlay-image"),"click",function(V){uM(p,C.element,V)}); p.U(C.rV("ytp-ad-overlay-close-container"),"click",p.qL);C.hide();return C}; NjY=function(p,C){if(C){var V=g.n(C,xr)||null;V==null?g.nm(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(C=g.ju("video-ads ytp-ad-module")||null,C==null?g.nm(Error("Could not locate the root ads container element to attach the ad info dialog.")):(p.Sa=new g.Sp({L:"div",B:"ytp-ad-overlay-ad-info-dialog-container"}),g.R(p,p.Sa),p.Sa.u_(C),C=new NN(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,p.Sa.element,!1),g.R(p,C),C.init(lq("ad-info-hover-text-button"),V,p.macros), p.W?(C.u_(p.W,0),C.subscribe("f",p.s$_,p),C.subscribe("e",p.J5,p),p.U(p.W,"click",p.IeY),p.U(g.ju("ytp-ad-button",C.element),"click",function(){var N;if(g.n((N=g.n(V.button,g.z$))==null?void 0:N.serviceEndpoint,B8s))p.R$=p.api.getPlayerState(1)===2,p.api.pauseVideo();else p.api.onAdUxClicked("ad-info-hover-text-button",p.layoutId)}),p.Qn=C):g.nm(Error("Ad info button container within overlay ad was not present."))))}else g.eG(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; XmY=function(p,C){if(HiS(p,ZO)||p.api.isMinimized())return!1;var V=DU(C.title),N=DU(C.description);if(g.Sy(V)||g.Sy(N))return!1;p.createServerVe(p.V.element,C.trackingParams||null);p.V.updateValue("title",DU(C.title));p.V.updateValue("description",DU(C.description));p.V.updateValue("displayUrl",DU(C.displayUrl));C.navigationEndpoint&&g.C6(p.Z,C.navigationEndpoint);p.V.show();p.vr.start();p.logVisibility(p.V.element,!0);p.U(p.V.element,"mouseover",function(){p.b_++}); return!0}; dHL=function(p,C){if(HiS(p,ZO)||p.api.isMinimized())return!1;var V=DU(C.title),N=DU(C.description);if(g.Sy(V)||g.Sy(N))return!1;p.createServerVe(p.C.element,C.trackingParams||null);p.C.updateValue("title",DU(C.title));p.C.updateValue("description",DU(C.description));p.C.updateValue("displayUrl",DU(C.displayUrl));p.C.updateValue("imageUrl",T8e(C.image));C.navigationEndpoint&&g.C6(p.Z,C.navigationEndpoint);p.KS=C.imageNavigationEndpoint||null;p.C.show();p.vr.start();p.logVisibility(p.C.element,!0); p.U(p.C.element,"mouseover",function(){p.b_++}); return!0}; ii9=function(p,C){if(p.api.isMinimized())return!1;var V=MzQ(C.image),N=V;V.width0?(C=new $U(p.api,p.T),C.u_(p.playerOverlay), g.R(p,C)):g.nm(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(C)))}}else g.nm(Error("addCommonComponents() needs to be called before starting countdown."))}; mHj=function(p){function C(V){return{toString:function(){return V()}}} p.macros.SURVEY_LOCAL_TIME_EPOCH_S=C(function(){var V=new Date;return(Math.round(V.valueOf()/1E3)+-1*V.getTimezoneOffset()*60).toString()}); p.macros.SURVEY_ELAPSED_MS=C(function(){return(Date.now()-p.V).toString()})}; vMy=function(p,C,V,N,H){y0.call(this,p,C,V,N,"survey-question-multi-select");this.b_=H;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}; F3V=function(p,C,V){p.noneOfTheAbove=new tRV(p.api,p.layoutId,p.interactionLoggingClientData,p.l_);p.noneOfTheAbove.u_(p.answers);p.noneOfTheAbove.init(lq("survey-none-of-the-above"),C,V)}; K3a=function(p){p.C.forEach(function(C){C.T.toggleButton(!1)}); SYS(p,!0)}; SYS=function(p,C){var V=p.S;p=DHY(p);C=C===void 0?!1:C;V.T&&(p?V.T.hide():V.T.show(),C&&V.T instanceof ft&&!V.T.S&&dpL(V.T,!1));V.C&&(p?V.C.show():V.C.hide())}; DHY=function(p){return p.C.some(function(C){return C.T.isToggled()})||p.noneOfTheAbove.button.isToggled()}; qE=function(p,C,V,N,H){y0.call(this,p,C,V,N,"survey-question-single-select",function(d){X.api.K().G("supports_multi_step_on_desktop")&&H([d])}); var X=this;this.hide()}; IQ=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-survey",j:[{L:"div",B:"ytp-ad-survey-questions"}]},"survey",C,V,N);this.questions=[];this.C=[];this.conditioningRules=[];this.T=0;this.W=this.rV("ytp-ad-survey-questions");this.api.K().G("fix_survey_color_contrast_on_destop")&&this.rV("ytp-ad-survey").classList.add("color-contrast-fix");this.api.K().G("web_enable_speedmaster")&&this.rV("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; UHX=function(p,C){var V=p.C[C],N;(N=p.V)==null||N.dispose();g.n(V,od)?u$1(p,g.n(V,od),p.macros):g.n(V,AM)&&Zi9(p,g.n(V,AM),p.macros);p.T=C}; u$1=function(p,C,V){var N=new qE(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,p.S.bind(p));N.u_(p.W);N.init(lq("survey-question-single-select"),C,V);p.api.K().G("supports_multi_step_on_desktop")?p.V=N:p.questions.push(N);g.R(p,N)}; Zi9=function(p,C,V){var N=new vMy(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,p.S.bind(p));N.u_(p.W);N.init(lq("survey-question-multi-select"),C,V);p.api.K().G("supports_multi_step_on_desktop")?p.V=N:p.questions.push(N);g.R(p,N)}; bM=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-survey-interstitial",j:[{L:"div",B:"ytp-ad-survey-interstitial-contents",j:[{L:"div",B:"ytp-ad-survey-interstitial-logo",j:[{L:"div",B:"ytp-ad-survey-interstitial-logo-image"}]},{L:"div",B:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",C,V,N);this.T=this.actionButton=null;this.interstitial=this.rV("ytp-ad-survey-interstitial");this.C=this.rV("ytp-ad-survey-interstitial-contents");this.text=this.rV("ytp-ad-survey-interstitial-text"); this.logoImage=this.rV("ytp-ad-survey-interstitial-logo-image");this.transition=new g.a0(this,500,!1,300);g.R(this,this.transition)}; fxe=function(p,C){C=C&&ge(C)||"";if(g.Sy(C))g.eG(Error("Found ThumbnailDetails without valid image URL"));else{var V=p.style;p=p.style.cssText;var N=document.implementation.createHTMLDocument("").createElement("DIV");N.style.cssText=p;p=LgS(N.style);V.cssText=[p,'background-image:url("'+C+'");'].join("")}}; Oi9=function(p){var C=g.ju("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; AF=function(p,C,V,N,H,X){X=X===void 0?0:X;dk.call(this,p,{L:"div",B:"ytp-preview-ad",j:[{L:"div",B:"ytp-preview-ad__text"}]},"preview-ad",C,V,N,H);var d=this;this.b_=X;this.C=0;this.S=-1;this.V=this.rV("ytp-preview-ad__text");switch(this.b_){case 1:this.V.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.a0(this,400,!1,100,function(){d.hide()}); g.R(this,this.transition);this.hide()}; oQ=function(p,C,V,N){Kq.call(this,p,{L:"img",B:"ytp-ad-avatar"},"ad-avatar",C,V,N);this.hide()}; yvy=function(p){switch(p.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}}; ky=function(p,C,V,N,H){H=H===void 0?!1:H;Kq.call(this,p,{L:"button",B:"ytp-ad-button-vm"},"ad-button",C,V,N);this.buttonText=this.buttonIcon=null;this.hide();this.T=H}; qYy=function(p,C,V,N,H){dk.call(this,p,{L:"div",i_:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],j:[{L:"div",B:"ytp-ad-avatar-lockup-card__avatar_and_text_container",j:[{L:"div",B:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",C,V,N,H);this.startMilliseconds=0;this.adAvatar=new oQ(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adAvatar);Eo(this.element,this.adAvatar.element,0);this.headline=new z6(this.api,this.layoutId, this.interactionLoggingClientData,this.l_);g.R(this,this.headline);this.headline.u_(this.rV("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.description);this.description.u_(this.rV("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new ky(this.api, this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adButton);this.adButton.u_(this.element);this.hide()}; Yy=function(p,C,V,N){Kq.call(this,p,{L:"button",B:"ytp-skip-ad-button",j:[{L:"div",B:"ytp-skip-ad-button__text"}]},"skip-button",C,V,N);var H=this;this.C=!1;this.S=this.rV("ytp-skip-ad-button__text");this.transition=new g.a0(this,500,!1,100,function(){H.hide()}); g.R(this,this.transition);this.T=new MN(this.element,15E3,5E3,.5,.5,!0);g.R(this,this.T);this.hide()}; IxH=function(p,C,V,N,H){dk.call(this,p,{L:"div",B:"ytp-skip-ad"},"skip-ad",C,V,N,H);this.skipOffsetMilliseconds=0;this.S=this.isSkippable=!1;var X;if((X=this.api.getVideoData())==null?0:X.isDaiEnabled())this.S=this.api.K().G("clean_player_style_fix_on_web");if(this.S||!this.api.K().experiments.OY("disable_ad_preview_for_instream_ads"))this.C=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.T),g.R(this,this.C),this.C.u_(this.element);this.V=new Yy(this.api,this.layoutId, this.interactionLoggingClientData,this.l_);g.R(this,this.V);this.V.u_(this.element);this.hide()}; zS=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-visit-advertiser-link"},"visit-advertiser-link",C,V,N);this.hide();this.api.G("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.G("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; RQ=function(p,C,V,N,H){Kq.call(this,p,{L:"div",B:"ytp-ad-player-overlay-layout",j:[{L:"div",B:"ytp-ad-player-overlay-layout__player-card-container"},{L:"div",B:"ytp-ad-player-overlay-layout__ad-info-container"},{L:"div",B:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{L:"div",B:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",C,V,N);this.C=H;this.Sa=this.rV("ytp-ad-player-overlay-layout__player-card-container");this.T=this.rV("ytp-ad-player-overlay-layout__ad-info-container"); this.Z=this.rV("ytp-ad-player-overlay-layout__skip-or-preview-container");this.b_=this.rV("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; bia=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-grid-card-text",j:[{L:"div",B:"ytp-ad-grid-card-text__metadata",j:[{L:"div",B:"ytp-ad-grid-card-text__metadata__headline"},{L:"div",B:"ytp-ad-grid-card-text__metadata__description",j:[{L:"div",B:"ytp-ad-grid-card-text__metadata__description__line"},{L:"div",B:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{L:"div",B:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",C,V,N);this.headline=new z6(this.api,this.layoutId,this.interactionLoggingClientData, this.l_);g.R(this,this.headline);this.headline.u_(this.rV("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,!0);g.R(this,this.moreInfoButton);this.moreInfoButton.u_(this.rV("ytp-ad-grid-card-text__button"))}; nD=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",C,V,N);this.T=[]}; eC=function(p,C,V,N,H,X,d){dk.call(this,p,X,d,C,V,N,H);this.playerProgressOffsetMs=0;this.C=!1}; AvL=function(p){var C=g.ju("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; oMe=function(p,C,V,N,H){eC.call(this,p,C,V,N,H,{L:"div",B:"ytp-display-underlay-text-grid-cards",j:[{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container",j:[{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new nD(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adGridCardCollection); this.adGridCardCollection.u_(this.rV("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adButton);this.adButton.u_(this.rV("ytp-display-underlay-text-grid-cards__content_container__ad_button"));this.V=this.rV("ytp-display-underlay-text-grid-cards__content_container")}; Pq=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-details-line"},"ad-details-line",C,V,N);this.T=[];this.hide()}; wv=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-image-background",j:[{L:"img",B:"ytp-image-background-image"}]},"image-background",C,V,N);this.hide()}; kgV=function(p,C,V,N,H){dk.call(this,p,{L:"svg",B:"ytp-timed-pie-countdown",X:{viewBox:"0 0 20 20"},j:[{L:"circle",B:"ytp-timed-pie-countdown__background",X:{r:"10",cx:"10",cy:"10"}},{L:"circle",B:"ytp-timed-pie-countdown__inner",X:{r:"5",cx:"10",cy:"10"}},{L:"circle",B:"ytp-timed-pie-countdown__outer",X:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",C,V,N,H);this.V=this.rV("ytp-timed-pie-countdown__inner");this.C=Math.ceil(2*Math.PI*5);this.hide()}; $y=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout",X:{tabindex:"0"},j:[{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content",j:[{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",j:[{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",C,V,N);this.C=null;this.S=this.rV("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.V=new I_;g.R(this,this.V);this.hide()}; xHX=function(p){var C=g.ju("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; zl1=function(p){if(!p.adAvatar||!g.n(p.adAvatar,YY1))return g.nm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!p.headline)return g.nm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!p.adBadge||!g.n(p.adBadge,LD))return g.nm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!p.adButton||!g.n(p.adButton,gv))return g.nm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1; if(!p.adInfoRenderer||!g.n(p.adInfoRenderer,xr))return g.nm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;p=p.durationMilliseconds||0;return typeof p!=="number"||p<=0?(g.nm(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+p)),!1):!0}; Wq=function(p,C,V){GB.call(this,p);this.api=p;this.l_=C;this.C={};p=new g.L({L:"div",i_:["video-ads","ytp-ad-module"]});g.R(this,p);rB&&g.Ed(p.element,"ytp-ads-tiny-mode");this.W=new Z9(p.element);g.R(this,this.W);g.LT(this.api,p.element,4);Vn(V)&&(V=new g.L({L:"div",i_:["ytp-ad-underlay"]}),g.R(this,V),this.V=new Z9(V.element),g.R(this,this.V),g.LT(this.api,V.element,0));g.R(this,kWj())}; RlQ=function(p,C){p=g.x5(p.C,C.id,null);p==null&&g.eG(Error("Component not found for element id: "+C.id));return p||null}; nMS=function(p){g.IT.call(this,p);var C=this;this.C=null;this.created=!1;this.V=p.K().G("h5_use_refactored_get_ad_break")?new osQ(this.player):new L7(this.player);this.S=function(){if(C.C!=null)return C.C;var N=new e$9({Bp:DO(C.T).Bp,w6:DO(C.T).w6,N:C.player,cB:DO(C.T).cB,No:C.T.T.No,I8:DO(C.T).I8,YG:C.T.T.YG});C.C=N.xU;return C.C}; this.T=new gzX(this.player,this,this.V,this.S);g.R(this,this.T);var V=p.K();!I3(V)||g.yj(V)||kS(V)||(g.R(this,new Wq(p,DO(this.T).l_,DO(this.T).cB)),g.R(this,new WXe(p)))}; elL=function(p){p.created!==p.loaded&&S2("Created and loaded are out of sync")}; $HY=function(p){g.IT.prototype.load.call(p);var C=DO(p.T).cB;try{p.player.getRootNode().classList.add("ad-created")}catch(E){S2(E instanceof Error?E:String(E))}var V=p.player.getVideoData(1),N=V&&V.videoId||"",H=V&&V.getPlayerResponse()||{},X=(!p.player.K().experiments.OY("debug_ignore_ad_placements")&&H&&H.adPlacements||[]).map(function(E){return E.adPlacementRenderer}),d=((H==null?void 0:H.adSlots)||[]).map(function(E){return g.n(E,eB)}); H=H.playerConfig&&H.playerConfig.daiConfig&&H.playerConfig.daiConfig.enableDai||!1;V&&V.p4();X=Pyu(X,d,C,DO(p.T).SL);d=V&&V.clientPlaybackNonce||"";V=V&&V.WP||!1;if(fR(C,!0)&&V){var a;C={};(a=p.player.getVideoData())==null||a.k_("p_cpb",(C.cc=d,C))}a=1E3*p.player.getDuration(1);wm1(p);p.T.T.rJ.zp(d,a,V,X.NV,X.dE,X.NV,H,N)}; wm1=function(p){var C,V;if(V=(C=p.player.getVideoData(1))==null||!C.WP)C=p.player.K(),V=I3(C)&&!g.qz(C)&&C.playerStyle==="desktop-polymer";V&&(p=p.player.getInternalApi(),p.addEventListener("updateKevlarOrC3Companion",l1H),p.addEventListener("updateEngagementPanelAction",t_e),p.addEventListener("changeEngagementPanelVisibility",c1u),window.addEventListener("yt-navigate-start",M_S))}; Q0=function(p,C){C===p.R0&&(p.R0=void 0)}; L39=function(p){var C=DO(p.T).xt,V=C.S().hL("SLOT_TYPE_PLAYER_BYTES",1);C=O3(C.pS.get(),1).clientPlaybackNonce;var N=!1;V=g.F(V);for(var H=V.next();!H.done;H=V.next()){H=H.value;var X=H.slotType==="SLOT_TYPE_PLAYER_BYTES"&&H.slotEntryTrigger instanceof xP?H.slotEntryTrigger.Y8:void 0;X&&X===C&&(N&&S2("More than 1 preroll playerBytes slot detected",H),N=!0)}N||sm(DO(p.T).IW)}; gM9=function(p){if(pD(DO(p.T).cB))return!0;var C="";p=g.F(DO(p.T).I8.jU.keys());for(var V=p.next();!V.done;V=p.next()){V=V.value;if(V.slotType==="SLOT_TYPE_PLAYER_BYTES"&&V.Br==="core")return!0;C+=V.slotType+" "}Math.random()<.01&&S2("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:C});return!1}; W3v=function(p){p=g.F(DO(p.T).I8.jU.values());for(var C=p.next();!C.done;C=p.next())if(C.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; DQX=function(p,C,V,N,H,X){V=V===void 0?[]:V;N=N===void 0?"":N;H=H===void 0?"":H;var d=DO(p.T).cB,a=p.player.getVideoData(1);a&&a.getPlayerResponse();a&&a.p4();V=Pyu(C,V,d,DO(p.T).SL);faQ(DO(p.T).r7,N,V.NV,V.dE,C,H,X)}; Pyu=function(p,C,V,N){C={NV:[],dE:C};p=g.F(p);for(var H=p.next();!H.done;H=p.next())if((H=H.value)&&H.renderer!=null){var X=H.renderer;if(!V.N.K().G("html5_enable_vod_lasr_with_notify_pacf")){var d=void 0,a=void 0,E=void 0,l=void 0,t=N;g.n((l=X.sandwichedLinearAdRenderer)==null?void 0:l.adVideoStart,mH)?(d=g.n((E=X.sandwichedLinearAdRenderer)==null?void 0:E.adVideoStart,mH),d=nYu(d,t),g.g7(X.sandwichedLinearAdRenderer.adVideoStart,mH,d)):g.n((a=X.linearAdSequenceRenderer)==null?void 0:a.adStart,mH)&& (E=g.n((d=X.linearAdSequenceRenderer)==null?void 0:d.adStart,mH),d=nYu(E,t),g.g7(X.linearAdSequenceRenderer.adStart,mH,d))}C.NV.push(H)}return C}; g.rv=function(p){if(typeof DOMParser!="undefined")return VW(new DOMParser,zUe(p),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.Bq=function(p){g.Y.call(this);this.callback=p;this.T=new Ud(0,0,.4,0,.2,1,1,1);this.delay=new g.V2(this.next,window,this);g.R(this,this.delay)}; g.QGv=function(p){var C=p.K();return C.QZ&&!C.V&&g.KI(C)?p.isEmbedsShortsMode()?(p=p.ai(),Math.min(p.width,p.height)>=315):!p.OE():!1}; g.GS=function(p){g.L.call(this,{L:"div",B:"ytp-more-videos-view",X:{tabIndex:"-1"}});var C=this;this.api=p;this.C=!0;this.V=new g.Rr(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.J=this.S=this.scrollPosition=0;this.title=new g.L({L:"h2",B:"ytp-related-title",Ak:"{{title}}"});this.previous=new g.L({L:"button",i_:["ytp-button","ytp-previous"],X:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},j:[g.fq()]});this.D=new g.Bq(function(V){C.suggestions.element.scrollLeft= -V}); this.next=new g.L({L:"button",i_:["ytp-button","ytp-next"],X:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},j:[g.Oy()]});g.R(this,this.V);this.W=p.K().S;g.R(this,this.title);this.title.u_(this.element);this.suggestions=new g.L({L:"div",B:"ytp-suggestions"});g.R(this,this.suggestions);this.suggestions.u_(this.element);g.R(this,this.previous);this.previous.u_(this.element);this.previous.listen("click",this.IP,this);g.R(this,this.D);rve(this);g.R(this,this.next);this.next.u_(this.element);this.next.listen("click", this.sT,this);this.V.U(this.api,"appresize",this.OR);this.V.U(this.api,"fullscreentoggled",this.V2);this.V.U(this.api,"videodatachange",this.onVideoDataChange);this.OR(this.api.dV().getPlayerSize());this.onVideoDataChange()}; rve=function(p){for(var C={nQ:0};C.nQ<16;C={nQ:C.nQ},++C.nQ){var V=new g.L({L:"a",B:"ytp-suggestion-link",X:{href:"{{link}}",target:p.api.K().Z,"aria-label":"{{aria_label}}"},j:[{L:"div",B:"ytp-suggestion-image"},{L:"div",B:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},j:[{L:"div",B:"ytp-suggestion-title",Ak:"{{title}}"},{L:"div",B:"ytp-suggestion-author",Ak:"{{author_and_views}}"},{L:"div",X:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration", Ak:"{{duration}}"}]}]});g.R(p,V);var N=V.rV("ytp-suggestion-link");g.K2(N,"transitionDelay",C.nQ/20+"s");p.V.U(N,"click",function(H){return function(X){var d=H.nQ;if(p.C){var a=p.suggestionData[d],E=a.sessionData;p.W&&p.api.G("web_player_log_click_before_generating_ve_conversion_params")?(p.api.logClick(p.T[d].element),d=a.a8(),a={},g.eQ(p.api,a),d=g.GD(d,a),g.Jh(d,p.api,X)):g.Ml(X,p.api,p.W,E||void 0)&&p.api.Ce(a.videoId,E,a.playlistId)}else X.preventDefault(),document.activeElement.blur()}}(C)); V.u_(p.suggestions.element);p.T.push(V);p.api.createServerVe(V.element,V)}}; Bja=function(p){if(p.api.K().G("web_player_log_click_before_generating_ve_conversion_params"))for(var C=Math.floor(-p.scrollPosition/(p.S+8)),V=Math.min(C+p.columns,p.suggestionData.length)-1;C<=V;C++)p.api.logVisibility(p.T[C].element,!0)}; g.pM=function(p){var C=p.api.GW()?32:16;C=p.J/2+C;p.next.element.style.bottom=C+"px";p.previous.element.style.bottom=C+"px";C=p.scrollPosition;var V=p.containerWidth-p.suggestionData.length*(p.S+8);g.Tz(p.element,"ytp-scroll-min",C>=0);g.Tz(p.element,"ytp-scroll-max",C<=V)}; pvc=function(p){for(var C=p.suggestionData.length,V=0;V>>0)+"_",H=0;return C}); sS("Symbol.iterator",function(p){if(p)return p;p=Symbol("Symbol.iterator");for(var C="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),V=0;V=X}}); sS("String.prototype.endsWith",function(p){return p?p:function(C,V){var N=fY(this,C,"endsWith");C+="";V===void 0&&(V=N.length);V=Math.max(0,Math.min(V|0,N.length));for(var H=C.length;H>0&&V>0;)if(N[--V]!=C[--H])return!1;return H<=0}}); sS("Array.prototype.entries",function(p){return p?p:function(){return yL(this,function(C,V){return[C,V]})}}); sS("Math.imul",function(p){return p?p:function(C,V){C=Number(C);V=Number(V);var N=C&65535,H=V&65535;return N*H+((C>>>16&65535)*H+N*(V>>>16&65535)<<16>>>0)|0}}); sS("globalThis",function(p){return p||g.Xe}); sS("Math.trunc",function(p){return p?p:function(C){C=Number(C);if(isNaN(C)||C===Infinity||C===-Infinity||C===0)return C;var V=Math.floor(Math.abs(C));return C<0?-V:V}}); sS("Number.isNaN",function(p){return p?p:function(C){return typeof C==="number"&&isNaN(C)}}); sS("Array.prototype.keys",function(p){return p?p:function(){return yL(this,function(C){return C})}}); sS("Array.prototype.values",function(p){return p?p:function(){return yL(this,function(C,V){return V})}}); sS("Math.clz32",function(p){return p?p:function(C){C=Number(C)>>>0;if(C===0)return 32;var V=0;(C&4294901760)===0&&(C<<=16,V+=16);(C&4278190080)===0&&(C<<=8,V+=8);(C&4026531840)===0&&(C<<=4,V+=4);(C&3221225472)===0&&(C<<=2,V+=2);(C&2147483648)===0&&V++;return V}}); sS("Math.log10",function(p){return p?p:function(C){return Math.log(C)/Math.LN10}}); sS("Object.fromEntries",function(p){return p?p:function(C){var V={};if(!(Symbol.iterator in C))throw new TypeError(""+C+" is not iterable");C=C[Symbol.iterator].call(C);for(var N=C.next();!N.done;N=C.next()){N=N.value;if(Object(N)!==N)throw new TypeError("iterable for fromEntries should yield objects");V[N[0]]=N[1]}return V}}); sS("String.prototype.replaceAll",function(p){return p?p:function(C,V){if(C instanceof RegExp&&!C.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return C instanceof RegExp?this.replace(C,V):this.replace(new RegExp(String(C).replace(/([-()\[\]{}+?*.$\^|,:#H)N=H;N=Number(N);N<0&&(N=Math.max(0,H+N));for(V=Number(V||0);V1342177279)throw new RangeError("Invalid count value");C|=0;for(var N="";C;)if(C&1&&(N+=V),C>>>=1)V+=V;return N}}); sS("Promise.prototype.finally",function(p){return p?p:function(C){return this.then(function(V){return Promise.resolve(C()).then(function(){return V})},function(V){return Promise.resolve(C()).then(function(){throw V; })})}}); sS("String.prototype.padStart",function(p){return p?p:function(C,V){var N=fY(this,null,"padStart");C-=N.length;V=V!==void 0?String(V):" ";return(C>0&&V?V.repeat(Math.ceil(C/V.length)).substring(0,C):"")+N}}); sS("Array.prototype.findIndex",function(p){return p?p:function(C,V){return cQe(this,C,V).aC}}); sS("Math.sign",function(p){return p?p:function(C){C=Number(C);return C===0||isNaN(C)?C:C>0?1:-1}}); sS("WeakSet",function(p){function C(V){this.T=new WeakMap;if(V){V=g.F(V);for(var N;!(N=V.next()).done;)this.add(N.value)}} if(function(){if(!p||!Object.seal)return!1;try{var V=Object.seal({}),N=Object.seal({}),H=new p([V]);if(!H.has(V)||H.has(N))return!1;H.delete(V);H.add(N);return!H.has(V)&&H.has(N)}catch(X){return!1}}())return p; C.prototype.add=function(V){this.T.set(V,!0);return this}; C.prototype.has=function(V){return this.T.has(V)}; C.prototype.delete=function(V){return this.T.delete(V)}; return C}); sS("Array.prototype.copyWithin",function(p){function C(V){V=Number(V);return V===Infinity||V===-Infinity?V:V|0} return p?p:function(V,N,H){var X=this.length;V=C(V);N=C(N);H=H===void 0?X:C(H);V=V<0?Math.max(X+V,0):Math.min(V,X);N=N<0?Math.max(X+N,0):Math.min(N,X);H=H<0?Math.max(X+H,0):Math.min(H,X);if(VN;)--H in this?this[--V]=this[H]:delete this[--V];return this}}); sS("Int8Array.prototype.copyWithin",Iu);sS("Uint8Array.prototype.copyWithin",Iu);sS("Uint8ClampedArray.prototype.copyWithin",Iu);sS("Int16Array.prototype.copyWithin",Iu);sS("Uint16Array.prototype.copyWithin",Iu);sS("Int32Array.prototype.copyWithin",Iu);sS("Uint32Array.prototype.copyWithin",Iu);sS("Float32Array.prototype.copyWithin",Iu);sS("Float64Array.prototype.copyWithin",Iu);sS("Array.prototype.at",function(p){return p?p:b9}); sS("Int8Array.prototype.at",AQ);sS("Uint8Array.prototype.at",AQ);sS("Uint8ClampedArray.prototype.at",AQ);sS("Int16Array.prototype.at",AQ);sS("Uint16Array.prototype.at",AQ);sS("Int32Array.prototype.at",AQ);sS("Uint32Array.prototype.at",AQ);sS("Float32Array.prototype.at",AQ);sS("Float64Array.prototype.at",AQ);sS("String.prototype.at",function(p){return p?p:b9}); sS("Array.prototype.findLastIndex",function(p){return p?p:function(C,V){return T1v(this,C,V).aC}}); sS("Int8Array.prototype.findLastIndex",ou);sS("Uint8Array.prototype.findLastIndex",ou);sS("Uint8ClampedArray.prototype.findLastIndex",ou);sS("Int16Array.prototype.findLastIndex",ou);sS("Uint16Array.prototype.findLastIndex",ou);sS("Int32Array.prototype.findLastIndex",ou);sS("Uint32Array.prototype.findLastIndex",ou);sS("Float32Array.prototype.findLastIndex",ou);sS("Float64Array.prototype.findLastIndex",ou);sS("Number.parseInt",function(p){return p||parseInt});var Hi,w1,MaS;Hi=Hi||{};g.xH=this||self;w1="closure_uid_"+(Math.random()*1E9>>>0);MaS=0;g.Y.prototype.Ra=!1;g.Y.prototype.fS=function(){return this.Ra}; g.Y.prototype.dispose=function(){this.Ra||(this.Ra=!0,this.CS())}; g.Y.prototype[Symbol.dispose]=function(){this.dispose()}; g.Y.prototype.addOnDisposeCallback=function(p,C){this.Ra?C!==void 0?p.call(C):p():(this.pk||(this.pk=[]),C&&(p=p.bind(C)),this.pk.push(p))}; g.Y.prototype.CS=function(){if(this.pk)for(;this.pk.length;)this.pk.shift()()};var Ky1;g.m(E1,g.Y);E1.prototype.share=function(){if(this.fS())throw Error("E:AD");this.S++;return this}; E1.prototype.dispose=function(){--this.S||g.Y.prototype.dispose.call(this)}; Ky1=Symbol.dispose;DsL.prototype.vI=function(p,C){this.T.vI("/client_streamz/bg/frs",p,C)}; ueu.prototype.vI=function(p,C,V,N,H,X){this.T.vI("/client_streamz/bg/wrl",p,C,V,N,H,X)}; ZYu.prototype.T=function(p,C){this.C.tW("/client_streamz/bg/ec",p,C)}; Usy.prototype.vI=function(p,C,V,N){this.T.vI("/client_streamz/bg/el",p,C,V,N)}; fje.prototype.T=function(p,C,V){this.C.tW("/client_streamz/bg/cec",p,C,V)}; OYL.prototype.T=function(p,C,V){this.C.tW("/client_streamz/bg/po/csc",p,C,V)}; yQj.prototype.T=function(p,C,V){this.C.tW("/client_streamz/bg/po/ctav",p,C,V)}; qSS.prototype.T=function(p,C,V){this.C.tW("/client_streamz/bg/po/cwsc",p,C,V)};g.r1(c5,Error);c5.prototype.name="CustomError";var iys;var xV=void 0,kV,O69=typeof TextDecoder!=="undefined",kVe,oHv=typeof String.prototype.isWellFormed==="function",AQQ=typeof TextEncoder!=="undefined";var uP=String.prototype.trim?function(p){return p.trim()}:function(p){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(p)[1]},oKs=/&/g,k9Q=//g,YLL=/"/g,zjj=/'/g,Rja=/\x00/g,Acv=/[\x00&<>"']/;var ds8=Ru(1,!0),O1=Ru(610401301,!1);Ru(899588437,!1);Ru(188588736,!0);Ru(691955189,!0);Ru(651175828,!1);Ru(653718497,ds8);Ru(660014094,ds8);Ru(2147483644,!1);Ru(2147483645,!1);Ru(2147483646,ds8);Ru(2147483647,!0);var y8=!!g.zV("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var qc,iY5=g.xH.navigator;qc=iY5?iY5.userAgentData||null:null;var rQa,kc,Yo;rQa=Array.prototype.indexOf?function(p,C){return Array.prototype.indexOf.call(p,C,void 0)}:function(p,C){if(typeof p==="string")return typeof C!=="string"||C.length!=1?-1:p.indexOf(C,0); for(var V=0;V=0;V--)if(V in p&&p[V]===C)return V;return-1}; g.lr=Array.prototype.forEach?function(p,C,V){Array.prototype.forEach.call(p,C,V)}:function(p,C,V){for(var N=p.length,H=typeof p==="string"?p.split(""):p,X=0;XparseFloat(taF)){ljG=String(CM);break a}}ljG=taF}var hEy=ljG,dcY={};var CK,jz;g.k$=k2();CK=n0()||bP("iPod");jz=bP("iPad");g.SH=P9a();g.kZ=x2();g.D1=Y2()&&!ey();var avv={},Sk=null,E2a=Do||g.Nq||typeof g.xH.btoa=="function";var FrX=typeof Uint8Array!=="undefined",cfu=!g.vF&&typeof btoa==="function",mc1=/[-_.]/g,My9={"-":"+",_:"/",".":"="},ur={};DV.prototype.isEmpty=function(){return this.T==null}; DV.prototype.sizeBytes=function(){var p=Uv(this);return p?p.length:0}; var KrV;var lVS;var H4=typeof Symbol==="function"&&typeof Symbol()==="symbol",jd=If(),YK=If("2ex"),Xa=If("1oa");Math.max.apply(Math,g.K(Object.values({qfx:1,Xz$:2,j5o:4,JBS:8,O$o:16,Bh$:32,ygY:64,uua:128,xw_:256,AX_:512,Fl_:1024,d3n:2048,bpn:4096,X$_:8192,Iu$:16384})));var yx=H4?function(p,C){p[jd]|=C}:function(p,C){p.Wp!==void 0?p.Wp|=C:Object.defineProperties(p,{Wp:{value:C, configurable:!0,writable:!0,enumerable:!1}})},mLH=H4?function(p,C){p[jd]&=~C}:function(p,C){p.Wp!==void 0&&(p.Wp&=~C)},xT=H4?function(p){return p[jd]|0}:function(p){return p.Wp|0},bg=H4?function(p){return p[jd]}:function(p){return p.Wp},br=H4?function(p,C){p[jd]=C}:function(p,C){p.Wp!==void 0?p.Wp=C:Object.defineProperties(p,{Wp:{value:C, configurable:!0,writable:!0,enumerable:!1}})};var F_={},UcQ={},WT,Ma1=[];br(Ma1,55);WT=Object.freeze(Ma1);var Py,JBY=Object.freeze({});var q1a=wo(function(p){return typeof p==="number"}),yfY=wo(function(p){return typeof p==="string"}),Ive=wo(function(p){return typeof p==="boolean"}),aH=wo(function(p){return p!=null&&typeof p==="object"&&typeof p.then==="function"}),si=wo(function(p){return!!p&&(typeof p==="object"||typeof p==="function")});var $T=typeof g.xH.BigInt==="function"&&typeof g.xH.BigInt(0)==="bigint";var M1=wo(function(p){return $T?p>=JQv&&p<=ms5:p[0]==="-"?b09(p,vHp):b09(p,FyG)}),vHp=Number.MIN_SAFE_INTEGER.toString(),JQv=$T?BigInt(Number.MIN_SAFE_INTEGER):void 0,FyG=Number.MAX_SAFE_INTEGER.toString(),ms5=$T?BigInt(Number.MAX_SAFE_INTEGER):void 0;var uvX=typeof Uint8Array.prototype.slice==="function",Wy=0,QR=0,i_V;var Y1a=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var ug=void 0,ZB=void 0,Sn=void 0,K_=void 0,UL=void 0;var f_,Nou;g.h=Kq1.prototype;g.h.init=function(p,C,V,N){N=N===void 0?{}:N;this.ol=N.ol===void 0?!1:N.ol;p&&(p=Ky(p),this.C=p.buffer,this.W=p.fg,this.S=C||0,this.V=V!==void 0?this.S+V:this.C.length,this.T=this.S)}; g.h.free=function(){this.clear();It.length<100&&It.push(this)}; g.h.clear=function(){this.C=null;this.W=!1;this.T=this.V=this.S=0;this.ol=!1}; g.h.reset=function(){this.T=this.S}; g.h.b9=function(){var p=this.Y;p||(p=this.C,p=this.Y=new DataView(p.buffer,p.byteOffset,p.byteLength));return p}; var It=[];bB.prototype.free=function(){this.T.clear();this.C=this.S=-1;VH.length<100&&VH.push(this)}; bB.prototype.reset=function(){this.T.reset();this.V=this.T.T;this.C=this.S=-1}; var VH=[];var wC,P4;g.h=eq.prototype;g.h.toJSON=function(){return $V(this)}; g.h.c6=function(p){try{return P4=!0,p&&(wC=p===ny||p!==qvu&&p!==oTL&&p!==YvY?ny:p),JSON.stringify($V(this),dLQ)}finally{p&&(wC=void 0),P4=!1}}; g.h.clone=function(){var p=this.bx;return new this.constructor(Ac(p,bg(p),!1))}; g.h.fg=function(){return!!(xT(this.bx)&2)}; g.h.hH=F_;g.h.toString=function(){try{return P4=!0,$V(this).toString()}finally{P4=!1}};var nTS,PrQ;W4.prototype.length=function(){return this.T.length}; W4.prototype.end=function(){var p=this.T;this.T=[];return p};var V5=jl(),SSG=jl(),KyY=jl(),Ds8=jl(),ueF=jl(),ZYF=jl(),Usr=jl(),fjG=jl();var Gts=Hn(function(p,C,V,N,H){if(p.C!==2)return!1;ot(p,dC(C,N,V),H);return!0},BoY),pTe=Hn(function(p,C,V,N,H){if(p.C!==2)return!1; ot(p,dC(C,N,V,!0),H);return!0},BoY),cn=Symbol(),ac=Symbol(),jOQ=Symbol(),H_a=Symbol(),XH,dV;var OY8=Jb(function(p,C,V){if(p.C!==1)return!1;vn(C,V,yG(p.T));return!0},FH,Usr),yQv=Jb(function(p,C,V){if(p.C!==1)return!1; p=yG(p.T);vn(C,V,p===0?void 0:p);return!0},FH,Usr),qS1=Jb(function(p,C,V,N){if(p.C!==1)return!1; VG(C,V,N,yG(p.T));return!0},FH,Usr),Ijf=Jb(function(p,C,V){if(p.C!==0)return!1; vn(C,V,Zm(p.T));return!0},Sl,ueF),bYY=Jb(function(p,C,V){if(p.C!==0)return!1; p=Zm(p.T);vn(C,V,p===0?void 0:p);return!0},Sl,ueF),AQf=Jb(function(p,C,V,N){if(p.C!==0)return!1; VG(C,V,N,Zm(p.T));return!0},Sl,ueF),oH5=Jb(function(p,C,V){if(p.C!==0)return!1; vn(C,V,Ul(p.T));return!0},KH,Ds8),kVG=Jb(function(p,C,V){if(p.C!==0)return!1; p=Ul(p.T);vn(C,V,p===0?void 0:p);return!0},KH,Ds8),xsG=Jb(function(p,C,V,N){if(p.C!==0)return!1; VG(C,V,N,Ul(p.T));return!0},KH,Ds8),YSp=Jb(function(p,C,V){if(p.C!==1)return!1; vn(C,V,Ol(p.T));return!0},function(p,C,V){Qfj(p,V,g2L(C))},ZYF),zXG=ma(function(p,C,V){if(p.C!==1&&p.C!==2)return!1; C=BT(C,bg(C),V,!1,!1);if(p.C==2)for(V=Ul(p.T)>>>0,V=p.T.T+V;p.T.T>>0);return!0},function(p,C,V){C=aO(C); C!=null&&C!=null&&(pH(p,V,0),rC(p.T,C))},jl()),Lyf=Jb(function(p,C,V){if(p.C!==0)return!1; vn(C,V,Ul(p.T));return!0},function(p,C,V){C=sL(C); C!=null&&(C=parseInt(C,10),pH(p,V,0),$Lu(p.T,C))},jl());g.m(lB1,eq);g.m(u0,eq);var y5=[1,2,3];var gH0=[0,y5,P9y,xsG,nHP];var Wy8=[0,HD,[0,OY8,Ijf]];g.m(Zu,eq);var OQ=[1,2,3];var Qu8=[0,OQ,AQf,qS1,dK,Wy8];g.m(UQ,eq);var rQy=[0,HD,gH0,Qu8];var B12=[0,[1,2,3],dK,[0,NW,-1,RXY],dK,[0,NW,-1,oH5,RXY],dK,[0,NW]];g.m(fH,eq);fH.prototype.sK=function(){var p=gw(this,3,mK,3,void 0,!0);ek(p);return p[void 0]};fH.prototype.T=EKu([0,NW,B12,eX5,HD,rQy,YSp,zXG]);g.m(ccv,eq);var D1Y=globalThis.trustedTypes,qX;b0.prototype.toString=function(){return this.T+""};ke.prototype.toString=function(){return this.T}; var U1s=new ke("about:invalid#zClosurez");var mWL=zN("tel"),MdL=zN("sms"),Z_u=[zN("data"),zN("http"),zN("https"),zN("mailto"),zN("ftp"),new Ye(function(p){return/^[^:]*([/?#]|$)/.test(p)})],fBa=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Pn.prototype.toString=function(){return this.T};wV.prototype.toString=function(){return this.T+""};Q5.prototype.toString=function(){return this.T+""};var CG={};g.GVc=String.prototype.repeat?function(p,C){return p.repeat(C)}:function(p,C){return Array(C+1).join(p)};g.h=s_.prototype;g.h.isEnabled=function(){if(!g.xH.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{kx:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.h.set=function(p,C,V){var N=!1;if(typeof V==="object"){var H=V.cia;N=V.secure||!1;var X=V.domain||void 0;var d=V.path||void 0;var a=V.kx}if(/[;=\s]/.test(p))throw Error('Invalid cookie name "'+p+'"');if(/[;\r\n]/.test(C))throw Error('Invalid cookie value "'+C+'"');a===void 0&&(a=-1);V=X?";domain="+X:"";d=d?";path="+d:"";N=N?";secure":"";a=a<0?"":a==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+a*1E3)).toUTCString();this.T.cookie=p+"="+C+V+d+a+N+(H!=null?";samesite="+ H:"")}; g.h.get=function(p,C){for(var V=p+"=",N=(this.T.cookie||"").split(";"),H=0,X;H=0;C--)this.remove(p[C])}; var RK=new s_(typeof document=="undefined"?null:document);E_.prototype.compress=function(p){var C,V,N,H;return g.I(function(X){switch(X.C){case 1:return C=new CompressionStream("gzip"),V=(new Response(C.readable)).arrayBuffer(),N=C.writable.getWriter(),g.y(X,N.write((new TextEncoder).encode(p)),2);case 2:return g.y(X,N.close(),3);case 3:return H=Uint8Array,g.y(X,V,4);case 4:return X.return(new H(X.T))}})}; E_.prototype.isSupported=function(p){return p<1024?!1:typeof CompressionStream!=="undefined"};g.m(lc,eq);t9.prototype.setInterval=function(p){this.intervalMs=p;this.Yt&&this.enabled?(this.stop(),this.start()):this.Yt&&this.stop()}; t9.prototype.start=function(){var p=this;this.enabled=!0;this.Yt||(this.Yt=setTimeout(function(){p.tick()},this.intervalMs),this.C=this.T())}; t9.prototype.stop=function(){this.enabled=!1;this.Yt&&(clearTimeout(this.Yt),this.Yt=void 0)}; t9.prototype.tick=function(){var p=this;if(this.enabled){var C=Math.max(this.T()-this.C,0);C0&&(this.T.splice(0,C),this.S+=C);this.T.push(p);this.us||this.C.enabled||this.C.start()}}; g.h.flush=function(p,C){var V=this;if(this.T.length===0)p&&p();else if(this.Vn&&this.Z)A2(this.V,3),Oyv(this);else{var N=Date.now();if(this.Ga>N&&this.sY0&&(V.sY=Date.now(),V.Ga=V.sY+M),J=hJ.T?hJ.C(J,hJ.T,175237375,!0):hJ.C(J,175237375,null,!0),J=J===null?void 0:J)&&(J=XG(J,1,-1),J!==-1&&(V.W=new g.oN(J<1?1:J,3E5,.1),V.C.setInterval(V.W.getValue())))}p&&p();V.Y=0},c=function(M,J){var S=jy(H,fe,3); var D=$c9(xK(H,14));D=D==null?void 0:D;g.kq(V.W);V.C.setInterval(V.W.getValue());M===401&&X&&(V.vr=X);D&&(V.S+=D);J===void 0&&(J=V.isRetryable(M));J&&(V.T=S.concat(V.T),V.us||V.C.enabled||V.C.start());C&&C("net-send-failed",M);++V.Y},T=function(){V.network&&V.network.send(l,t,c)}; E?E.then(function(M){l.requestHeaders["Content-Encoding"]="gzip";l.requestHeaders["Content-Type"]="application/binary";l.body=M;l.Mp=2;T()},function(){T()}):T()}}}}; g.h.KR=function(){FMS(this.V,!0);this.flush();FMS(this.V,!1)}; g.h.isRetryable=function(p){return 500<=p&&p<600||p===401||p===0};zO.prototype.send=function(p,C,V){var N=this,H,X,d,a,E,l,t,c,T,M;return g.I(function(J){switch(J.C){case 1:return X=(H=N.D7?new AbortController:void 0)?setTimeout(function(){H.abort()},p.timeoutMillis):void 0,g.vv(J,2,3),d=Object.assign({},{method:p.requestType, headers:Object.assign({},p.requestHeaders)},p.body&&{body:p.body},p.withCredentials&&{credentials:"include"},{signal:p.timeoutMillis&&H?H.signal:null}),g.y(J,fetch(p.url,d),5);case 5:a=J.T;if(a.status!==200){(E=V)==null||E(a.status);J.EY(3);break}if((l=C)==null){J.EY(7);break}return g.y(J,a.text(),8);case 8:l(J.T);case 7:case 3:g.KY(J);clearTimeout(X);g.Dj(J,0);break;case 2:t=g.Sa(J);switch((c=t)==null?void 0:c.name){case "AbortError":(T=V)==null||T(408);break;default:(M=V)==null||M(400)}J.EY(3)}})}; zO.prototype.vt=function(){return 4};g.m(RN,g.Y);RN.prototype.Qb=function(){this.W=!0;return this}; RN.prototype.build=function(){this.network||(this.network=new zO);var p=new Yq({logSource:this.logSource,BW:this.BW?this.BW:gKY,sessionIndex:this.sessionIndex,z5_:this.o0,Pf:this.S,us:!1,Qb:this.W,CE:this.CE,network:this.network});g.R(this,p);if(this.C){var C=this.C,V=qq(p.V);mM(V,7,C)}Math.random()<.5&&(p.D=new E_);this.componentId&&(p.componentId=this.componentId);this.NA&&(p.NA=this.NA);this.pageId&&(p.pageId=this.pageId);this.T&&((V=this.T)?(p.experimentIds||(p.experimentIds=new lc),C=p.experimentIds, V=V.c6(),mM(C,4,V)):p.experimentIds&&RO(p.experimentIds,4));this.V&&(p.Vn=p.Z);SlX(p.V);this.network.Nm&&this.network.Nm(this.logSource);this.network.vlV&&this.network.vlV(p);return p};g.m(ne,g.Y);ne.prototype.flush=function(p){p=p||[];if(p.length){for(var C=new ccv,V=[],N=0;N-1?(C=p[d],V||(C.CC=!1)):(C=new kA1(C,this.src,X,!!N,H),C.CC=V,p.push(C));return C}; g.h.remove=function(p,C,V,N){p=p.toString();if(!(p in this.listeners))return!1;var H=this.listeners[p];C=pJ(H,C,V,N);return C>-1?(rW(H[C]),g.Q8(H,C),H.length==0&&(delete this.listeners[p],this.T--),!0):!1}; g.h.removeAll=function(p){p=p&&p.toString();var C=0,V;for(V in this.listeners)if(!p||V==p){for(var N=this.listeners[V],H=0;H-1?p[H]:null}; g.h.hasListener=function(p,C){var V=p!==void 0,N=V?p.toString():"",H=C!==void 0;return g.O_(this.listeners,function(X){for(var d=0;d>>0);g.r1(g.h8,g.Y);g.h8.prototype[APH]=!0;g.h=g.h8.prototype;g.h.addEventListener=function(p,C,V,N){g.jS(this,p,C,V,N)}; g.h.removeEventListener=function(p,C,V,N){PBy(this,p,C,V,N)}; g.h.dispatchEvent=function(p){var C=this.VJ;if(C){var V=[];for(var N=1;C;C=C.VJ)V.push(C),++N}C=this.UT;N=p.type||p;if(typeof p==="string")p=new g.$q(p,C);else if(p instanceof g.$q)p.target=p.target||C;else{var H=p;p=new g.$q(N,C);g.nG(p,H)}H=!0;var X;if(V)for(X=V.length-1;!p.C&&X>=0;X--){var d=p.currentTarget=V[X];H=s8(d,N,!0,p)&&H}p.C||(d=p.currentTarget=C,H=s8(d,N,!0,p)&&H,p.C||(H=s8(d,N,!1,p)&&H));if(V)for(X=0;!p.C&&X0){this.C--;var p=this.T;this.T=p.next;p.next=null}else p=this.V();return p};var lm;cX.prototype.add=function(p,C){var V=QtV.get();V.set(p,C);this.C?this.C.next=V:this.T=V;this.C=V}; cX.prototype.remove=function(){var p=null;this.T&&(p=this.T,this.T=this.T.next,this.T||(this.C=null),p.next=null);return p}; var QtV=new ab(function(){return new TD},function(p){return p.reset()}); TD.prototype.set=function(p,C){this.T=p;this.scope=C;this.next=null}; TD.prototype.reset=function(){this.next=this.scope=this.T=null};var M7,J8=!1,gVe=new cX;GAy.prototype.reset=function(){this.context=this.C=this.V=this.T=null;this.S=!1}; var pn9=new ab(function(){return new GAy},function(p){p.reset()}); g.um.prototype.then=function(p,C,V){return scL(this,E8(typeof p==="function"?p:null),E8(typeof C==="function"?C:null),V)}; g.um.prototype.$goog_Thenable=!0;g.h=g.um.prototype;g.h.Rz=function(p,C){return scL(this,null,E8(p),C)}; g.h.catch=g.um.prototype.Rz;g.h.cancel=function(p){if(this.T==0){var C=new q7(p);g.mo(function(){Xnu(this,C)},this)}}; g.h.Apn=function(p){this.T=0;DC(this,2,p)}; g.h.xnn=function(p){this.T=0;DC(this,3,p)}; g.h.ID=function(){for(var p;p=dXX(this);)iHQ(this,p,this.T,this.D);this.Y=!1}; var tlj=Jf;g.r1(q7,c5);q7.prototype.name="cancel";g.r1(g.Ib,g.h8);g.h=g.Ib.prototype;g.h.enabled=!1;g.h.Pa=null;g.h.setInterval=function(p){this.Kx=p;this.Pa&&this.enabled?(this.stop(),this.start()):this.Pa&&this.stop()}; g.h.X1o=function(){if(this.enabled){var p=g.QL()-this.mR;p>0&&p0&&(this.getStatus(),this.Y=setTimeout(this.Cb.bind(this), this.a$)),this.getStatus(),this.Z=!0,this.T.send(p),this.Z=!1}catch(d){this.getStatus(),xXu(this,d)}}; g.h.Cb=function(){typeof Hi!="undefined"&&this.T&&(this.S="Timed out after "+this.a$+"ms, aborting",this.C=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.h.abort=function(p){this.T&&this.V&&(this.getStatus(),this.V=!1,this.W=!0,this.T.abort(),this.W=!1,this.C=p||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Nj(this))}; g.h.CS=function(){this.T&&(this.V&&(this.V=!1,this.W=!0,this.T.abort(),this.W=!1),Nj(this,!0));g.VO.oI.CS.call(this)}; g.h.HQ=function(){this.fS()||(this.sY||this.Z||this.W?YQL(this):this.lhV())}; g.h.lhV=function(){YQL(this)}; g.h.isActive=function(){return!!this.T}; g.h.isComplete=function(){return g.Xr(this)==4}; g.h.getStatus=function(){try{return g.Xr(this)>2?this.T.status:-1}catch(p){return-1}}; g.h.getResponseHeader=function(p){if(this.T&&this.isComplete())return p=this.T.getResponseHeader(p),p===null?void 0:p}; g.h.getLastError=function(){return typeof this.S==="string"?this.S:String(this.S)};aX.prototype.send=function(p,C,V){C=C===void 0?function(){}:C; V=V===void 0?function(){}:V; oeY(p.url,function(N){N=N.target;dU(N)?C(g.i3(N)):V(N.getStatus())},p.requestType,p.body,p.requestHeaders,p.timeoutMillis,p.withCredentials)}; aX.prototype.vt=function(){return 1};l3.prototype.done=function(){this.logger.QW(this.event,E$()-this.startTime)}; g.m(t$,E1);g.m(Tq,t$);g.h=Tq.prototype;g.h.Mh=function(){}; g.h.lO=function(){}; g.h.QW=function(){}; g.h.SH=function(){}; g.h.f6=function(){}; g.h.YH=function(p,C,V){return V}; g.h.EL=function(){}; g.h.sL=function(){}; g.h.SM=function(){}; g.h.jG=function(){}; g.m(Mj,t$);g.h=Mj.prototype;g.h.update=function(p){this.logger.dispose();this.logger=p}; g.h.lO=function(p){this.logger.lO(p)}; g.h.QW=function(p,C){this.logger.QW(p,C)}; g.h.SH=function(p){this.logger.SH(p)}; g.h.f6=function(){this.logger.f6()}; g.h.YH=function(p,C,V){return this.logger.YH(p,C,V)}; g.h.EL=function(p){this.logger.EL(p)}; g.h.sL=function(p){this.logger.sL(p)}; g.h.SM=function(p){this.logger.SM(p)}; g.h.jG=function(p){this.logger.jG(p)}; g.h.WN=function(p){this.logger instanceof vi&&this.logger.WN(p)}; g.h.Mh=function(p){this.logger.Mh(p)}; g.m(J$,g.Y);g.m(m0,t$);g.h=m0.prototype;g.h.WN=function(p){this.Uf=p}; g.h.Mh=function(p){this.metrics.H9$.vI(p,this.SU)}; g.h.lO=function(p){this.metrics.eventCount.T(p,this.SU)}; g.h.QW=function(p,C){this.metrics.sb.vI(C,p,this.Uf,this.SU)}; g.h.SH=function(p){this.metrics.errorCount.T(p,this.Uf,this.SU)}; g.h.YH=function(p,C,V){function N(d){if(!H.fS()){var a=E$()-X;H.metrics.e5$.vI(a,p,C,d,H.Uf,H.SU)}} var H=this,X=E$();V.then(function(){N(0)},function(d){d instanceof Y7?N(d.code):N(-1)}); return V}; g.h.EL=function(p){this.metrics.pRS.T(p,this.Uf,this.SU)}; g.h.sL=function(p){this.metrics.yu.T(p,this.Uf,this.SU)}; g.h.SM=function(p){this.metrics.Hd_.T(p,this.Uf,this.SU)}; g.m(vi,m0);vi.prototype.jG=function(p){var C=this;this.T.dispose();this.C&&this.service.dispose();this.service=this.options.qz("41",this.options.Fn.concat(p));this.T=new J$(function(){return void C.service.Uy()},this.options.I3); this.metrics=ney(this.service);this.V=p}; vi.prototype.f6=function(){P0Y(this.T)};g.m(Fr,eq);g.m(SE,eq);g.m(KN,eq);var Vyy=Du(KN),$Xj=function(p){return wo(function(C){return C instanceof p&&!(xT(C.bx)&2)})}(KN); KN.messageId="bfkj";g.m(Dt,eq);g.m(H5,eq);g.m(u3,eq);var La9=Du(u3);g.m(U$,g.Y);U$.prototype.snapshot=function(p){if(this.fS())throw Error("Already disposed");this.logger.lO("n");var C=this.logger.share();return this.V.then(function(V){var N=V.Xq;return new Promise(function(H){var X=new l3(C,"n");N(function(d){X.done();C.Mh(d.length);C.f6();C.dispose();H(d)},[p.P$, p.D9,p.P5,p.Uk])})})}; U$.prototype.Ok=function(p){var C=this;if(this.fS())throw Error("Already disposed");this.logger.lO("n");var V=ci(this.logger,function(){return C.S([p.P$,p.D9,p.P5,p.Uk])},"n"); this.logger.Mh(V.length);this.logger.f6();return V}; U$.prototype.G5=function(p){this.V.then(function(C){var V;(V=C.F6$)==null||V(p)})}; U$.prototype.Wd=function(){return this.logger.share()}; g.m(fN,Error);g.m(IX,eq);g.m(b3,eq);A$.prototype.Dj=function(p,C){var V=this,N,H,X,d,a;return g.I(function(E){if(E.C==1){var l=new IX;N=v4(l,1,V.I1);p&&v4(N,2,p);C&&v4(N,3,C);H=V.T();return g.y(E,V.client.create(N,H),2)}X=E.T;d=f6(Qx(X,2));if(d.length){l=E.return;var t=new Uint8Array(d.length);for(var c=0;c0;)C[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(p%62),p=Math.floor(p/62);return C.join("")}};var S_v;g.m(LN,g.Y);LN.prototype.BS=function(p,C){var V=this.DJ(p);C==null||C(V);return ci(this.logger,function(){return g.mq(V,2)},this.C)}; S_v=Symbol.dispose;g.m(QO,LN);QO.prototype.DJ=function(p,C){var V=this;++this.W>=this.Y&&this.T.resolve();var N=p();p=ci(this.logger,function(){return V.S(N)},"C"); if(p===void 0)throw new fN(17,"YNJ:Undefined");if(!(p instanceof Uint8Array))throw new fN(18,"ODM:Invalid");C==null||C(p);return p}; g.m(rU,LN);rU.prototype.DJ=function(){return this.S}; g.m(Bi,LN);Bi.prototype.DJ=function(){var p=this;return ci(this.logger,function(){return Fv(p.S)},"d")}; Bi.prototype.BS=function(){return this.S}; g.m(Gq,LN);Gq.prototype.DJ=function(){if(this.S)return this.S;this.S=K91(this,function(p){return"_"+F9a(p)}); return K91(this,function(p){return p})}; g.m(CE,LN);CE.prototype.DJ=function(p){var C=p();if(C.length>118)throw new fN(19,"DFO:Invalid");p=Math.floor(Date.now()/1E3);var V=[Math.random()*255,Math.random()*255],N=V.concat([this.S&255,this.clientState],[p>>24&255,p>>16&255,p>>8&255,p&255]);p=new Uint8Array(2+N.length+C.length);p[0]=34;p[1]=N.length+C.length;p.set(N,2);p.set(C,2+N.length);C=p.subarray(2);for(N=V=V.length;N150))try{this.cache=new TIe(p,this.logger)}catch(C){this.reportError(new fN(22,"GBJ:init",C))}}; jZ.prototype.reportError=function(p){this.logger.SH(p.code);this.onError(p);return p}; g.m(Xf,jZ);Xf.prototype.gq=function(){return this.C.promise}; Xf.prototype.DJ=function(p){return Vh(this,Object.assign({},p),!1)}; Xf.prototype.BS=function(p){return Vh(this,Object.assign({},p),!0)}; var q_H=function(p){return wo(function(C){if(!si(C))return!1;for(var V=g.F(Object.entries(p)),N=V.next();!N.done;N=V.next()){var H=g.F(N.value);N=H.next().value;H=H.next().value;if(!(N in C)){if(H.Drr===!0)continue;return!1}if(!H(C[N]))return!1}return!0})}({w7:function(p){return wo(function(C){return C instanceof p})}(zq)},"");g.m(dh,eq);var X5G=Du(dh);A9y.prototype.getMetadata=function(){return this.metadata};ip.prototype.getMetadata=function(){return this.metadata}; ip.prototype.getStatus=function(){return this.status};hE.prototype.D=function(p,C){C=C===void 0?{}:C;return new A9y(p,this,C)}; hE.prototype.getName=function(){return this.name};var dc0=new hE("/google.internal.waa.v1.Waa/Create",IX,dh,function(p){return p.c6()},X5G);g.m(sV,eq);var NY2=new hE("/google.internal.waa.v1.Waa/GenerateIT",b3,sV,function(p){return p.c6()},Du(sV));var hC9=new Set(["SAPISIDHASH","APISIDHASH"]);var VuV=Promise;g.m(as,eq);as.prototype.getValue=function(){var p=xK(this,2);if(Array.isArray(p)||p instanceof eq)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Qx(this,2)};g.m(EV,eq);EV.prototype.getMessage=function(){return TA(this,2)}; var zQy=Du(EV);lp.prototype.lq=function(p,C){p=="data"?this.V.push(C):p=="metadata"?this.W.push(C):p=="status"?this.Y.push(C):p=="end"?this.S.push(C):p=="error"&&this.C.push(C);return this}; lp.prototype.removeListener=function(p,C){p=="data"?M_(this.V,C):p=="metadata"?M_(this.W,C):p=="status"?M_(this.Y,C):p=="end"?M_(this.S,C):p=="error"&&M_(this.C,C);return this}; lp.prototype.cancel=function(){this.T.abort()}; lp.prototype.cancel=lp.prototype.cancel;lp.prototype.removeListener=lp.prototype.removeListener;lp.prototype.on=lp.prototype.lq;g.r1(g.JE,uHX);g.JE.prototype.T=function(){var p=new mn(this.S,this.V);this.C&&p.setCredentialsMode(this.C);return p}; g.JE.prototype.setCredentialsMode=function(p){this.C=p}; g.r1(mn,g.h8);g.h=mn.prototype;g.h.open=function(p,C){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.a$=p;this.Z=C;this.readyState=1;v2(this)}; g.h.send=function(p){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.T=!0;var C={headers:this.J,method:this.a$,credentials:this.W,cache:void 0};p&&(C.body=p);(this.b_||g.xH).fetch(new Request(this.Z,C)).then(this.Pk.bind(this),this.eQ.bind(this))}; g.h.abort=function(){this.response=this.responseText="";this.J=new Headers;this.status=0;this.V&&this.V.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,Ff(this));this.readyState=0}; g.h.Pk=function(p){if(this.T&&(this.S=p,this.C||(this.status=this.S.status,this.statusText=this.S.statusText,this.C=p.headers,this.readyState=2,v2(this)),this.T&&(this.readyState=3,v2(this),this.T)))if(this.responseType==="arraybuffer")p.arrayBuffer().then(this.Hk.bind(this),this.eQ.bind(this));else if(typeof g.xH.ReadableStream!=="undefined"&&"body"in p){this.V=p.body.getReader();if(this.Y){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.D=new TextDecoder;RQa(this)}else p.text().then(this.p_.bind(this),this.eQ.bind(this))}; g.h.un=function(p){if(this.T){if(this.Y&&p.value)this.response.push(p.value);else if(!this.Y){var C=p.value?p.value:new Uint8Array(0);if(C=this.D.decode(C,{stream:!p.done}))this.response=this.responseText+=C}p.done?Ff(this):v2(this);this.readyState==3&&RQa(this)}}; g.h.p_=function(p){this.T&&(this.response=this.responseText=p,Ff(this))}; g.h.Hk=function(p){this.T&&(this.response=p,Ff(this))}; g.h.eQ=function(){this.T&&Ff(this)}; g.h.setRequestHeader=function(p,C){this.J.append(p,C)}; g.h.getResponseHeader=function(p){return this.C?this.C.get(p.toLowerCase())||"":""}; g.h.getAllResponseHeaders=function(){if(!this.C)return"";for(var p=[],C=this.C.entries(),V=C.next();!V.done;)V=V.value,p.push(V[0]+": "+V[1]),V=C.next();return p.join("\r\n")}; g.h.setCredentialsMode=function(p){this.W=p}; Object.defineProperty(mn.prototype,"withCredentials",{get:function(){return this.W==="include"}, set:function(p){this.setCredentialsMode(p?"include":"same-origin")}});g.SZ.prototype.toString=function(){var p=[],C=this.W;C&&p.push(OV(C,i0p,!0),":");var V=this.T;if(V||C=="file")p.push("//"),(C=this.J)&&p.push(OV(C,i0p,!0),"@"),p.push(g.N$(V).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),V=this.V,V!=null&&p.push(":",String(V));if(V=this.C)this.T&&V.charAt(0)!="/"&&p.push("/"),p.push(OV(V,V.charAt(0)=="/"?hEr:sFE,!0));(V=this.S.toString())&&p.push("?",V);(V=this.Y)&&p.push("#",OV(V,av5));return p.join("")}; g.SZ.prototype.resolve=function(p){var C=this.clone(),V=!!p.W;V?g.KE(C,p.W):V=!!p.J;V?C.J=p.J:V=!!p.T;V?g.Dq(C,p.T):V=p.V!=null;var N=p.C;if(V)g.up(C,p.V);else if(V=!!p.C){if(N.charAt(0)!="/")if(this.T&&!this.C)N="/"+N;else{var H=C.C.lastIndexOf("/");H!=-1&&(N=C.C.slice(0,H+1)+N)}H=N;if(H==".."||H==".")N="";else if(g.K0(H,"./")||g.K0(H,"/.")){N=v5(H,"/");H=H.split("/");for(var X=[],d=0;d1||X.length==1&&X[0]!="")&&X.pop(), N&&d==H.length&&X.push("")):(X.push(a),N=!0)}N=X.join("/")}else N=H}V?C.C=N:V=p.S.toString()!=="";V?Zq(C,p.S.clone()):V=!!p.Y;V&&(C.Y=p.Y);return C}; g.SZ.prototype.clone=function(){return new g.SZ(this)}; var i0p=/[#\/\?@]/g,sFE=/[#\?:]/g,hEr=/[#\?]/g,eQL=/[#\?@]/g,av5=/#/g;g.h=fE.prototype;g.h.add=function(p,C){Is(this);this.V=null;p=bp(this,p);var V=this.T.get(p);V||this.T.set(p,V=[]);V.push(C);this.C=this.C+1;return this}; g.h.remove=function(p){Is(this);p=bp(this,p);return this.T.has(p)?(this.V=null,this.C=this.C-this.T.get(p).length,this.T.delete(p)):!1}; g.h.clear=function(){this.T=this.V=null;this.C=0}; g.h.isEmpty=function(){Is(this);return this.C==0}; g.h.forEach=function(p,C){Is(this);this.T.forEach(function(V,N){V.forEach(function(H){p.call(C,H,N,this)},this)},this)}; g.h.Ei=function(){Is(this);for(var p=Array.from(this.T.values()),C=Array.from(this.T.keys()),V=[],N=0;N0?String(p[0]):C}; g.h.toString=function(){if(this.V)return this.V;if(!this.T)return"";for(var p=[],C=Array.from(this.T.keys()),V=0;V>>3;X.V!=1&&X.V!=2&&X.V!=15&&x3(X,d,a,"unexpected tag");X.T=1;X.C=0;X.S=0} function V(E){X.S++;X.S==5&&E&240&&x3(X,d,a,"message length too long");X.C|=(E&127)<<(X.S-1)*7;E&128||(X.T=2,X.J=0,typeof Uint8Array!=="undefined"?X.W=new Uint8Array(X.C):X.W=Array(X.C),X.C==0&&H())} function N(E){X.W[X.J++]=E;X.J==X.C&&H()} function H(){if(X.V<15){var E={};E[X.V]=X.W;X.D.push(E)}X.T=0} for(var X=this,d=p instanceof Array?p:new Uint8Array(p),a=0;a0?p:null};Y3.prototype.isInputValid=function(){return this.T===null}; Y3.prototype.FF=function(){return this.T}; Y3.prototype.Kh=function(){return!1}; Y3.prototype.parse=function(p){this.T!==null&&r9y(this,p,"stream already broken");var C=null;try{var V=this.V;V.V||Qa9(V,p,"stream already broken");V.T+=p;var N=Math.floor(V.T.length/4);if(N==0)var H=null;else{try{var X=tyH(V.T.slice(0,N*4))}catch(d){Qa9(V,V.T,d.message)}V.C+=N*4;V.T=V.T.slice(N*4);H=X}C=H===null?null:this.S.parse(H)}catch(d){r9y(this,p,d.message)}this.C+=p.length;return C};var lv1={INIT:0,eP:1,yI:2,lz:3,m3:4,uQ:5,STRING:6,ML:7,rE:8,Gw:9,hC:10,HL:11,Uq:12,K0:13,gX:14,Oq:15,u$:16,m9:17,vL:18,iY:19,ZT:20};g.h=nE.prototype;g.h.isInputValid=function(){return this.W!=3}; g.h.FF=function(){return this.Z}; g.h.done=function(){return this.W===2}; g.h.Kh=function(){return!1}; g.h.parse=function(p){function C(){for(;T0;)if(J=p[T++], X.J===4?X.J=0:X.J++,!J)break a;if(J==='"'&&!X.D){X.T=N();break}if(J==="\\"&&!X.D&&(X.D=!0,J=p[T++],!J))break;if(X.D)if(X.D=!1,J==="u"&&(X.J=1),J=p[T++])continue;else break;a.lastIndex=T;J=a.exec(p);if(!J){T=p.length+1;break}T=J.index+1;J=p[J.index];if(!J)break}X.V+=T-S;continue;case E.Gw:if(!J)continue;J==="r"?X.T=E.hC:eZ(X,p,T);continue;case E.hC:if(!J)continue;J==="u"?X.T=E.HL:eZ(X,p,T);continue;case E.HL:if(!J)continue;J==="e"?X.T=N():eZ(X,p,T);continue;case E.Uq:if(!J)continue;J==="a"?X.T=E.K0: eZ(X,p,T);continue;case E.K0:if(!J)continue;J==="l"?X.T=E.gX:eZ(X,p,T);continue;case E.gX:if(!J)continue;J==="s"?X.T=E.Oq:eZ(X,p,T);continue;case E.Oq:if(!J)continue;J==="e"?X.T=N():eZ(X,p,T);continue;case E.u$:if(!J)continue;J==="u"?X.T=E.m9:eZ(X,p,T);continue;case E.m9:if(!J)continue;J==="l"?X.T=E.vL:eZ(X,p,T);continue;case E.vL:if(!J)continue;J==="l"?X.T=N():eZ(X,p,T);continue;case E.iY:J==="."?X.T=E.ZT:eZ(X,p,T);continue;case E.ZT:if("0123456789.eE+-".indexOf(J)!==-1)continue;else T--,X.V--,X.T= N();continue;default:eZ(X,p,T)}}} function N(){var J=d.pop();return J!=null?J:E.eP} function H(J){X.C>1||(J||(J=c===-1?X.S+p.substring(t,T):p.substring(c,T)),X.a$?X.Y.push(J):X.Y.push(JSON.parse(J)),c=T)} for(var X=this,d=X.b_,a=X.sY,E=lv1,l=p.length,t=0,c=-1,T=0;T0?(M=X.Y,X.Y=[],M):null}return null};P2.prototype.isInputValid=function(){return this.W===null}; P2.prototype.FF=function(){return this.W}; P2.prototype.Kh=function(){return!1}; P2.prototype.parse=function(p){function C(E){X.C=6;X.W="The stream is broken @"+X.T+"/"+d+". Error: "+E+". With input:\n";throw Error(X.W);} function V(){X.V=new nE({Yin:!0,UH:!0})} function N(E){if(E)for(var l=0;l1)&&C("extra status: "+E);X.Y=!0;var l={};l[2]=E[0];X.S.push(l)}} for(var X=this,d=0;d0?(p=X.S,X.S=[],p):null};wh.prototype.Yw=function(){return this.T}; wh.prototype.getStatus=function(){return this.W}; wh.prototype.a$=function(p){p=p.target;try{if(p==this.T)a:{var C=g.Xr(this.T),V=this.T.C,N=this.T.getStatus(),H=g.i3(this.T);p=[];if(g.h$(this.T)instanceof Array){var X=g.h$(this.T);X.length>0&&X[0]instanceof Uint8Array&&(this.Z=!0,p=X)}if(!(C<3||C==3&&!H&&p.length==0))if(N=N==200||N==206,C==4&&(V==8?$3(this,7):V==7?$3(this,8):N||$3(this,3)),this.C||(this.C=BIL(this.T),this.C==null&&$3(this,5)),this.W>2)LE(this);else{if(p.length>this.V){var d=p.length;V=[];try{if(this.C.Kh())for(var a=0;athis.V){a=H.slice(this.V);this.V=H.length;try{var l=this.C.parse(a);l!=null&&this.S&&this.S(l)}catch(t){$3(this,5);LE(this);break a}}C==4?(H.length!= 0||this.Z?$3(this,2):$3(this,4),LE(this)):$3(this,1)}}}catch(t){$3(this,6),LE(this)}};g.h=Ghs.prototype;g.h.lq=function(p,C){var V=this.C[p];V||(V=[],this.C[p]=V);V.push(C);return this}; g.h.addListener=function(p,C){this.lq(p,C);return this}; g.h.removeListener=function(p,C){var V=this.C[p];V&&g.rY(V,C);(p=this.T[p])&&g.rY(p,C);return this}; g.h.once=function(p,C){var V=this.T[p];V||(V=[],this.T[p]=V);V.push(C);return this}; g.h.ta$=function(p){var C=this.C.data;C&&pea(p,C);(C=this.T.data)&&pea(p,C);this.T.data=[]}; g.h.L6n=function(){switch(this.V.getStatus()){case 1:gh(this,"readable");break;case 5:case 6:case 4:case 7:case 3:gh(this,"error");break;case 8:gh(this,"close");break;case 2:gh(this,"end")}};CKa.prototype.serverStreaming=function(p,C,V,N){var H=this,X=p.substring(0,p.length-N.name.length);return jNL(function(d){var a=d.j7,E=d.getMetadata(),l=XeL(H,!1);E=dqY(H,E,l,X+a.getName());var t=ies(l,a.C,!0);d=a.T(d.G0);l.send(E,"POST",d);return t},this.S).call(this,N.D(C,V))};sNv.prototype.create=function(p,C){return Hea(this.T,this.C+"/$rpc/google.internal.waa.v1.Waa/Create",p,C||{},dc0)};var ty2=1,j1=new WeakMap;g.m(W2,g.Y);W2.prototype.signal=function(){var p=new rh(!1);this.signals.add(p);g.R(this,p);return p}; W2.prototype.hS=function(p){return Qh(this,p).hS()}; g.m(rh,g.Y);g.h=rh.prototype;g.h.fN=function(){var p=this,C=ty2++;B2(function(){azu(p,C)}); return C}; g.h.detach=function(p){var C=this;B2(function(){var V=C.slots.get(p);V&&V.O0()})}; g.h.value=function(p){return this.promise(!0,p)}; g.h.hS=function(){return this.EQ}; g.h.next=function(p){return this.promise(!1,p)}; g.h.promise=function(p,C){var V=this,N=HHV();B2(function(){if(V.fS())N.reject(new q7("Signal initially disposed"));else if(C&&C.fS())N.reject(new q7("Owner initially disposed"));else if(p&&V.IK&&V.Wi)N.resolve(V.EQ);else if(V.G3.add(N),yU(N.promise,function(){V.G3.delete(N)}),C){var H=function(){N.reject(new q7("Owner asynchronously disposed"))}; yU(N.promise,function(){var X=j1.get(C);X&&g.rY(X,H)}); tuj(C,H)}}); return N.promise}; g.h.CS=function(){var p=this;g.Y.prototype.CS.call(this);B2(function(){for(var C=g.F(p.slots.values()),V=C.next();!V.done;V=C.next())V=V.value.O0,V();p.slots.clear();C=g.F(p.G3);for(V=C.next();!V.done;V=C.next())V.value.reject(new q7("Signal asynchronously disposed"));p.G3.clear()})}; var ph=[],Ch=!1;g.m(VA,g.Y);VA.prototype.start=function(){var p=this;if(this.fS())throw new Hs("Cannot start a disposed timer.");if(!this.Y){this.S=0;if(this.D){var C=Date.now();this.handle=setInterval(function(){p.S=p.milliseconds>0?Math.trunc((Date.now()-C)/p.milliseconds):p.S+1;var V;(V=p.C)==null||V.resolve();p.C=void 0;if(p.V){var N;(N=p.T)!=null&&Gi(Qh(N,p.V),p)}p.aH.TF(p)},this.milliseconds)}else this.handle=setTimeout(function(){p.state=3; p.handle=void 0;p.S=1;var V;(V=p.C)==null||V.resolve();p.C=void 0;if(p.V){var N;(N=p.T)!=null&&Gi(Qh(N,p.V),p)}p.aH.TF(p)},this.milliseconds); this.state=1}}; VA.prototype.cancel=function(){if(this.Y){this.clear();this.state=2;var p;(p=this.C)==null||p.reject(new Nk);var C;(C=this.aH.AP)==null||C.call(this);if(this.W){var V;(V=this.T)!=null&&Gi(Qh(V,this.W))}}}; VA.prototype.CS=function(){this.clear();var p;(p=this.C)==null||p.reject(new Hs);this.state=4;g.Y.prototype.CS.call(this)}; VA.prototype.clear=function(){this.D?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.Xe.Object.defineProperties(VA.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.S}}, J:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.C!=null||(this.C=new g.Zt),this.C.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Nk("Timer has been cancelled."));case 4:return Promise.reject(new Hs("Timer has been disposed."));default:N1(this.state)}}}, TF:{configurable:!0,enumerable:!0,get:function(){if(this.fS())throw new Hs("Cannot attach a signal to a disposed timer.");this.V||(this.T!=null||(this.T=new W2(this)),this.V=this.T.signal());return this.V}}, AP:{configurable:!0,enumerable:!0,get:function(){if(this.fS())throw new Hs("Cannot attach a signal to a disposed timer.");this.W||(this.T!=null||(this.T=new W2(this)),this.W=this.T.signal());return this.W}}}); g.m(Nk,c5);g.m(Hs,c5);g.m(XL,jZ);g.h=XL.prototype;g.h.isReady=function(){return!!this.T}; g.h.ready=function(){var p=this;return g.I(function(C){return g.y(C,p.C.promise,0)})}; g.h.Dj=function(p){return Muu(this,this.logger.YH("c",p===void 0?1:p,this.qB.Dj(yO().T,null)),new fN(10,"JVZ:Timeout"))}; g.h.prefetch=function(){this.state===1&&(this.G1=this.Dj())}; g.h.start=function(){if(this.state===1){this.state=2;var p=new l3(this.logger,"r");this.ready().finally(function(){return void p.done()}); mqH(this)}}; g.h.DJ=function(p){vqY(this,p);return Vh(this,TWH(p),!1)}; g.h.BS=function(p){vqY(this,p);return Vh(this,TWH(p),!0)};var Dqu={NONE:0,Nx_:1},NAH={d8:0,hOS:1,Ge_:2,eOV:3},Ps={pY:"a",zye:"d",VIDEO:"v"};iZ.prototype.isVisible=function(){return this.Wj?this.L7>=.3:this.L7>=.5};var JU={kUk:0,JgY:1},jbH={NONE:0,Hq$:1,F$_:2};hU.prototype.getValue=function(){return this.C}; g.m(sh,hU);sh.prototype.V=function(p){this.C===null&&g.A9(this.S,p)&&(this.C=p)}; g.m(ao,hU);ao.prototype.V=function(p){this.C===null&&typeof p==="number"&&(this.C=p)}; g.m(Eh,hU);Eh.prototype.V=function(p){this.C===null&&typeof p==="string"&&(this.C=p)};lZ.prototype.disable=function(){this.C=!1}; lZ.prototype.enable=function(){this.C=!0}; lZ.prototype.isEnabled=function(){return this.C}; lZ.prototype.reset=function(){this.T={};this.C=!0;this.V={}};var R9=document,S1=window;var XiQ=!g.vF&&!Y2();mg.prototype.now=function(){return 0}; mg.prototype.C=function(){return 0}; mg.prototype.V=function(){return 0}; mg.prototype.T=function(){return 0};g.m(FL,mg);FL.prototype.now=function(){return vs()&&S1.performance.now?S1.performance.now():mg.prototype.now.call(this)}; FL.prototype.C=function(){return vs()&&S1.performance.memory?S1.performance.memory.totalJSHeapSize||0:mg.prototype.C.call(this)}; FL.prototype.V=function(){return vs()&&S1.performance.memory?S1.performance.memory.usedJSHeapSize||0:mg.prototype.V.call(this)}; FL.prototype.T=function(){return vs()&&S1.performance.memory?S1.performance.memory.jsHeapSizeLimit||0:mg.prototype.T.call(this)};var UqQ=SS(function(){var p=!1;try{var C=Object.defineProperty({},"passive",{get:function(){p=!0}}); g.xH.addEventListener("test",null,C)}catch(V){}return p});fzu.prototype.isVisible=function(){return uZ(R9)===1};var y2V={wRn:"allow-forms",oBV:"allow-modals",dnx:"allow-orientation-lock",j_a:"allow-pointer-lock",XRx:"allow-popups",FS_:"allow-popups-to-escape-sandbox",qE_:"allow-presentation",cpS:"allow-same-origin",Mqn:"allow-scripts",ZdV:"allow-top-navigation",yUa:"allow-top-navigation-by-user-activation"},A21=SS(function(){return qoH()});var You=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");yA.prototype.i9=function(p,C,V){p=p+"//"+C+V;var N=eCa(this)-V.length;if(N<0)return"";this.T.sort(function(l,t){return l-t}); V=null;C="";for(var H=0;H=E.length){N-=E.length;p+=E;C=this.V;break}V=V==null?X:V}}N="";V!=null&&(N=""+C+"trn="+V);return p+N};Yc.prototype.setInterval=function(p,C){return S1.setInterval(p,C)}; Yc.prototype.clearInterval=function(p){S1.clearInterval(p)}; Yc.prototype.setTimeout=function(p,C){return S1.setTimeout(p,C)}; Yc.prototype.clearTimeout=function(p){S1.clearTimeout(p)};g.m(Ro,eq);Ro.prototype.T=EKu([0,yQv,bYY,-2,kVG]);var VSe={Ada:1,YU:2,e4Y:3};HJv.prototype.pF=function(p){if(typeof p==="string"&&p.length!=0){var C=this.IN;if(C.C){p=p.split("&");for(var V=p.length-1;V>=0;V--){var N=p[V].split("="),H=decodeURIComponent(N[0]);N.length>1?(N=decodeURIComponent(N[1]),N=/^[0-9]+$/g.exec(N)?parseInt(N,10):N):N=1;(H=C.T[H])&&H.V(N)}}}};var sU=null;var Lh=g.xH.performance,cfF=!!(Lh&&Lh.mark&&Lh.measure&&Lh.clearMarks),wT=SS(function(){var p;if(p=cfF){var C;if(sU===null){sU="";try{p="";try{p=g.xH.top.location.hash}catch(V){p=g.xH.location.hash}p&&(sU=(C=p.match(/\bdeid=([\d,]+)/))?C[1]:"")}catch(V){}}C=sU;p=!!C.indexOf&&C.indexOf("1337")>=0}return p}); $c.prototype.disable=function(){this.T=!1;this.events!=this.C.google_js_reporting_queue&&(wT()&&g.lr(this.events,aCL),this.events.length=0)}; $c.prototype.start=function(p,C){if(!this.T)return null;var V=hNY()||iJu();p=new sb1(p,C,V);C="goog_"+p.label+"_"+p.uniqueId+"_start";Lh&&wT()&&Lh.mark(C);return p}; $c.prototype.end=function(p){if(this.T&&typeof p.value==="number"){var C=hNY()||iJu();p.duration=C-p.value;C="goog_"+p.label+"_"+p.uniqueId+"_end";Lh&&wT()&&Lh.mark(C);!this.T||this.events.length>2048||this.events.push(p)}};E7u.prototype.KP=function(p,C,V,N,H){H=H||this.au;try{var X=new yA;X.T.push(1);X.C[1]=qk("context",p);C.error&&C.meta&&C.id||(C=new rT(Bs(C)));if(C.msg){var d=C.msg.substring(0,512);X.T.push(2);X.C[2]=qk("msg",d)}var a=C.meta||{};if(this.uh)try{this.uh(a)}catch(M){}if(N)try{N(a)}catch(M){}N=[a];X.T.push(3);X.C[3]=N;var E=RCa();if(E.C){var l=E.C.url||"";X.T.push(4);X.C[4]=qk("top",l)}var t={url:E.T.url||""};if(E.T.url){var c=E.T.url.match(wA);var T=eS(c[1],null,c[3],c[4])}else T="";l=[t,{url:T}];X.T.push(5); X.C[5]=l;XXe(this.T,H,X,V)}catch(M){try{XXe(this.T,H,{context:"ecmserr",rctx:p,msg:Bs(M),url:E&&E.T.url},V)}catch(J){}}return this.BN}; g.m(rT,d79);var Ws,QA,gT=new $c;Ws=new function(){var p="https:";S1&&S1.location&&S1.location.protocol==="http:"&&(p="http:");this.C=p;this.T=.01}; QA=new E7u;S1&&S1.document&&(S1.document.readyState=="complete"?tSH():gT.T&&De(S1,"load",function(){tSH()}));var MSX=Date.now(),Hf=-1,VT=-1,A$s,Xj=-1,NK=!1;g.h=d9.prototype;g.h.getHeight=function(){return this.bottom-this.top}; g.h.clone=function(){return new d9(this.top,this.right,this.bottom,this.left)}; g.h.contains=function(p){return this&&p?p instanceof d9?p.left>=this.left&&p.right<=this.right&&p.top>=this.top&&p.bottom<=this.bottom:p.x>=this.left&&p.x<=this.right&&p.y>=this.top&&p.y<=this.bottom:!1}; g.h.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.h.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.h.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.h.scale=function(p,C){C=typeof C==="number"?C:p;this.left*=p;this.right*=p;this.top*=C;this.bottom*=C;return this};MK.prototype.sE=function(p,C){return!!p&&(!(C===void 0?0:C)||this.volume==p.volume)&&this.V==p.V&&cf(this.T,p.T)&&!0};Jx.prototype.V$=function(){return this.D}; Jx.prototype.sE=function(p,C){return this.S.sE(p.S,C===void 0?!1:C)&&this.D==p.D&&cf(this.V,p.V)&&cf(this.Y,p.Y)&&this.T==p.T&&this.W==p.W&&this.C==p.C&&this.J==p.J};var TYf={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},o1={hG:"start",cM:"firstquartile",m_:"midpoint",ew:"thirdquartile",COMPLETE:"complete",ERROR:"error",uY:"metric",PAUSE:"pause",W3:"resume",LX:"skip",RP:"viewable_impression",zd:"mute",pX:"unmute",Ml:"fullscreen",Fy:"exitfullscreen",KY:"bufferstart",UN:"bufferfinish",Zo:"fully_viewable_audible_half_duration_impression",ET:"measurable_impression",hO:"abandon",Xy:"engagedview",aS:"impression",JO:"creativeview",Sw:"loaded", rdV:"progress",CLOSE:"close",M5o:"collapse",XBY:"overlay_resize",F8a:"overlay_unmeasurable_impression",qv$:"overlay_unviewable_impression",MOo:"overlay_viewable_immediate_impression",cBo:"overlay_viewable_end_of_session_impression",QB:"custom_metric_viewable",PM:"audio_audible",YX:"audio_measurable",Rr:"audio_impression"},$_X="start firstquartile midpoint thirdquartile resume loaded".split(" "),Lns=["start","firstquartile","midpoint","thirdquartile"],kqX=["abandon"],j0={UNKNOWN:-1,hG:0,cM:1,m_:2, ew:3,COMPLETE:4,uY:5,PAUSE:6,W3:7,LX:8,RP:9,zd:10,pX:11,Ml:12,Fy:13,Zo:14,ET:15,hO:16,Xy:17,aS:18,JO:19,Sw:20,QB:21,KY:22,UN:23,Rr:27,YX:28,PM:29};var m7u={BIn:"addEventListener",cg$:"getMaxSize",MUo:"getScreenSize",Zxn:"getState",yXn:"getVersion",fMe:"removeEventListener",cX$:"isViewable"};g.h=g.vf.prototype;g.h.clone=function(){return new g.vf(this.left,this.top,this.width,this.height)}; g.h.contains=function(p){return p instanceof g.Fn?p.x>=this.left&&p.x<=this.left+this.width&&p.y>=this.top&&p.y<=this.top+this.height:this.left<=p.left&&this.left+this.width>=p.left+p.width&&this.top<=p.top&&this.top+this.height>=p.top+p.height}; g.h.getSize=function(){return new g.KG(this.width,this.height)}; g.h.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.h.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.h.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.h.scale=function(p,C){C=typeof C==="number"?C:p;this.left*=p;this.width*=p;this.top*=C;this.height*=C;return this};var Koa={};ICe.prototype.update=function(p){p&&p.document&&(this.D=mG(!1,p,this.isMobileDevice),this.T=mG(!0,p,this.isMobileDevice),A8a(this,p),bJL(this,p))};eh.prototype.cancel=function(){zy().clearTimeout(this.T);this.T=null}; eh.prototype.schedule=function(){var p=this,C=zy(),V=e1().T.T;this.T=C.setTimeout(nh(V,p2(143,function(){p.C++;p.V.sample()})),J8L())};g.h=Pf.prototype;g.h.Kn=function(){return!1}; g.h.initialize=function(){return this.isInitialized=!0}; g.h.gH=function(){return this.T.Sa}; g.h.iP=function(){return this.T.a$}; g.h.Du=function(p,C){if(!this.a$||(C===void 0?0:C))this.a$=!0,this.Sa=p,this.J=0,this.T!=this||$o(this)}; g.h.getName=function(){return this.T.Ga}; g.h.bO=function(){return this.T.Bh()}; g.h.Bh=function(){return{}}; g.h.EK=function(){return this.T.J}; g.h.PH=function(){var p=zu();p.T=mG(!0,this.V,p.isMobileDevice)}; g.h.RU=function(){bJL(zu(),this.V)}; g.h.Ms=function(){return this.S.T}; g.h.sample=function(){}; g.h.isActive=function(){return this.T.Y}; g.h.Zk=function(p){var C=this.T;this.T=p.EK()>=this.J?p:this;C!==this.T?(this.Y=this.T.Y,$o(this)):this.Y!==this.T.Y&&(this.Y=this.T.Y,$o(this))}; g.h.zY=function(p){if(p.C===this.T){var C=!this.S.sE(p,this.Z);this.S=p;C&&x7Y(this)}}; g.h.WK=function(){return this.Z}; g.h.dispose=function(){this.Vn=!0}; g.h.fS=function(){return this.Vn};g.h=L2.prototype;g.h.observe=function(){return!0}; g.h.unobserve=function(){}; g.h.D4=function(p){this.W=p}; g.h.dispose=function(){if(!this.fS()){var p=this.C;g.rY(p.W,this);p.Z&&this.WK()&&kDs(p);this.unobserve();this.sY=!0}}; g.h.fS=function(){return this.sY}; g.h.bO=function(){return this.C.bO()}; g.h.EK=function(){return this.C.EK()}; g.h.gH=function(){return this.C.gH()}; g.h.iP=function(){return this.C.iP()}; g.h.Zk=function(){}; g.h.zY=function(){this.U_()}; g.h.WK=function(){return this.Vn};g.h=g9.prototype;g.h.EK=function(){return this.T.EK()}; g.h.gH=function(){return this.T.gH()}; g.h.iP=function(){return this.T.iP()}; g.h.create=function(p,C,V){var N=null;this.T&&(N=this.PX(p,C,V),w9(this.T,N));return N}; g.h.YL=function(){return this.lQ()}; g.h.lQ=function(){return!1}; g.h.init=function(p){return this.T.initialize()?(w9(this.T,this),this.S=p,!0):!1}; g.h.Zk=function(p){p.EK()==0&&this.S(p.gH(),this)}; g.h.zY=function(){}; g.h.WK=function(){return!1}; g.h.dispose=function(){this.W=!0}; g.h.fS=function(){return this.W}; g.h.bO=function(){return{}};Wf.prototype.add=function(p,C,V){++this.V;p=new zNV(p,C,V);this.T.push(new zNV(p.C,p.T,p.V+this.V/4096));this.C=!0;return this};wXX.prototype.toString=function(){var p="//pagead2.googlesyndication.com//pagead/gen_204",C=r9(this.T);C.length>0&&(p+="?"+C);return p};Bf.prototype.update=function(p,C,V){p&&(this.T+=C,this.C+=C,this.S+=C,this.V=Math.max(this.V,this.S));if(V===void 0?!p:V)this.S=0};var QbS=[1,.75,.5,.3,0];Gu.prototype.update=function(p,C,V,N,H,X){X=X===void 0?!0:X;C=H?Math.min(p,C):C;for(H=0;H0&&C>=d;d=!(p>0&&p>=d)||V;this.T[H].update(X&&a,N,!X||d)}};Hp.prototype.update=function(p,C,V,N){this.D=this.D!=-1?Math.min(this.D,C.L7):C.L7;this.b_=Math.max(this.b_,C.L7);this.sY=this.sY!=-1?Math.min(this.sY,C.PB):C.PB;this.Sa=Math.max(this.Sa,C.PB);this.qo.update(C.PB,V.PB,C.T,p,N);this.vr+=p;C.L7===0&&(this.Ga+=p);this.C.update(C.L7,V.L7,C.T,p,N);V=N||V.Wj!=C.Wj?V.isVisible()&&C.isVisible():V.isVisible();C=!C.isVisible()||C.T;this.R$.update(V,p,C)}; Hp.prototype.Gv=function(){return this.R$.V>=this.Qn};if(R9&&R9.URL){var MyP=R9.URL,Jfp;if(Jfp=!!MyP){var mcY;a:{if(MyP){var v2F=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var aJ=v2F.exec(decodeURIComponent(MyP));if(aJ){mcY=aJ[1]&&aJ[1].length>1?aJ[1].substring(1):"true";break a}}catch(p){}}mcY=""}Jfp=mcY.length>0}QA.BN=!Jfp};var FrE=new d9(0,0,0,0);var NUa=new d9(0,0,0,0);g.m(a1,g.Y);g.h=a1.prototype; g.h.CS=function(){if(this.Mw.T){if(this.tI.MJ){var p=this.Mw.T;p.removeEventListener&&p.removeEventListener("mouseover",this.tI.MJ,Kh());this.tI.MJ=null}this.tI.cF&&(p=this.Mw.T,p.removeEventListener&&p.removeEventListener("mouseout",this.tI.cF,Kh()),this.tI.cF=null)}this.gf&&this.gf.dispose();this.HV&&this.HV.dispose();delete this.Wu;delete this.lm;delete this.cD;delete this.Mw.Os;delete this.Mw.T;delete this.tI;delete this.gf;delete this.HV;delete this.IN;g.Y.prototype.CS.call(this)}; g.h.rz=function(){return this.HV?this.HV.T:this.position}; g.h.pF=function(p){e1().pF(p)}; g.h.WK=function(){return!1}; g.h.sM=function(){return new Hp}; g.h.sf=function(){return this.Wu}; g.h.gT=function(p){return iN9(this,p,1E4)}; g.h.Pr=function(p,C,V,N,H,X,d){this.NE||(this.WO&&(p=this.Pq(p,V,H,d),N=N&&this.JU.L7>=(this.Wj()?.3:.5),this.mp(X,p,N),this.yP=C,p.L7>0&&-1===this.G8&&(this.G8=C),this.Yv==-1&&this.Gv()&&(this.Yv=C),this.tq==-2&&(this.tq=hT(this.rz())?p.L7:-1),this.JU=p),this.lm(this))}; g.h.mp=function(p,C,V){this.sf().update(p,C,this.JU,V)}; g.h.vG=function(){return new iZ}; g.h.Pq=function(p,C,V,N){V=this.vG();V.T=C;C=zy().C;C=uZ(R9)===0?-1:C.isVisible()?0:1;V.C=C;V.L7=this.TG(p);V.Wj=this.Wj();V.PB=N;return V}; g.h.TG=function(p){return this.opacity===0&&Ty(this.IN,"opac")===1?0:p}; g.h.Wj=function(){return!1}; g.h.Gx=function(){return this.Au||this.rF}; g.h.qQ=function(){jh()}; g.h.QT=function(){jh()}; g.h.Ke=function(){return 0}; g.h.Gv=function(){return this.Wu.Gv()}; g.h.TJ=function(){var p=this.WO;p=(this.hasCompleted||this.fS())&&!p;var C=e1().C!==2||this.TI$;return this.NE||C&&p?2:this.Gv()?4:3}; g.h.qT=function(){return 0};g.lf.prototype.next=function(){return g.EU}; g.EU={done:!0,value:void 0};g.lf.prototype.lT=function(){return this};g.m(tE9,iZ);var lS=TUa([void 0,1,2,3,4,8,16]),tJ=TUa([void 0,4,8,16]),S1E={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:MZ("p0",tJ),p1:MZ("p1",tJ),p2:MZ("p2",tJ),p3:MZ("p3",tJ),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:T2("mtos1",[0,2,4],!1,tJ),mtos2:T2("mtos2",[0,2,4],!1,tJ),mtos3:T2("mtos3",[0,2,4],!1,tJ),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:MZ("a0",tJ),a1:MZ("a1",tJ),a2:MZ("a2",tJ),a3:MZ("a3",tJ),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:MZ("c0",tJ),c1:MZ("c1",tJ),c2:MZ("c2",tJ),c3:MZ("c3",tJ),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:MZ("qmtos",lS),qnc:MZ("qnc",lS),qmv:MZ("qmv",lS),qnv:MZ("qnv",lS), 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:MZ("ss0",tJ),ss1:MZ("ss1",tJ),ss2:MZ("ss2",tJ),ss3:MZ("ss3",tJ),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"},Krp=Object.assign({},S1E,{avid:vX("audio"),avas:"avas",vs:"vs"}),Dcv={atos:"atos",avt:T2("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(p,C){return function(V){return V[p]===void 0&&C!==void 0?C:V[p]}}("ss",0), t:"t"};FU.prototype.getValue=function(){return this.C}; FU.prototype.update=function(p,C){p>=32||(this.T&1<=.5;xo(C.volume)&&(this.S=this.S!=-1?Math.min(this.S,C.volume):C.volume,this.Y=Math.max(this.Y,C.volume));X&&(this.Vn+=p,this.Z+=H?p:0);this.T.update(C.L7,V.L7,C.T,p,N,H);this.V.update(!0,p);this.W.update(H,p);this.a$.update(V.fullscreen,p);this.X$.update(H&&!X,p);p=Math.floor(C.mediaTime/1E3);this.Wr.update(p,C.isVisible());this.KS.update(p,C.L7>=1);this.UY.update(p, cp(C))}};S$e.prototype.C=function(p){this.V||(this.T(p)?(p=bEj(this.Z,this.S,p),this.W|=p,p=p==0):p=!1,this.V=p)};g.m(DA,S$e);DA.prototype.T=function(){return!0}; DA.prototype.Y=function(){return!1}; DA.prototype.getId=function(){var p=this,C=oa(o1,function(V){return V==p.S}); return j0[C].toString()}; DA.prototype.toString=function(){var p="";this.Y()&&(p+="c");this.V&&(p+="s");this.W>0&&(p+=":"+this.W);return this.getId()+p};g.m(uf,DA);uf.prototype.C=function(p,C){C=C===void 0?null:C;C!=null&&this.D.push(C);DA.prototype.C.call(this,p)};g.m(ZA,K01);ZA.prototype.C=function(){return null}; ZA.prototype.V=function(){return[]};g.m(UH,L2);g.h=UH.prototype;g.h.YK=function(){if(this.element){var p=this.element,C=this.C.T.V;try{try{var V=OJH(p.getBoundingClientRect())}catch(l){V=new d9(0,0,0,0)}var N=V.right-V.left,H=V.bottom-V.top,X=ZJs(p,C),d=X.x,a=X.y;var E=new d9(Math.round(a),Math.round(d+N),Math.round(a+H),Math.round(d))}catch(l){E=FrE.clone()}this.V=E;this.T=Y8H(this,this.V)}}; g.h.Vb=function(){this.Y=this.C.S.T}; g.h.ZX=function(p){var C=Ty(this.IN,"od")==1;return VEH(p,this.Y,this.element,C)}; g.h.SV=function(){this.timestamp=jh()}; g.h.U_=function(){this.SV();this.YK();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var p=this.element;var C=new g.KG(p.videoWidth,p.videoHeight);p=this.T;var V=tx(p),N=p.getHeight(),H=C.width;C=C.height;H<=0||C<=0||V<=0||N<=0||(H/=C,C=V/N,p=p.clone(),H>C?(V/=H,N=(N-V)/2,N>0&&(N=p.top+N,p.top=Math.round(N),p.bottom=Math.round(N+V))):(N*=H,V=Math.round((V-N)/2),V>0&&(V=p.left+V,p.left=Math.round(V),p.right=Math.round(V+N))));this.T=p}this.Vb(); p=this.T;V=this.Y;p=p.left<=V.right&&V.left<=p.right&&p.top<=V.bottom&&V.top<=p.bottom?new d9(Math.max(p.top,V.top),Math.min(p.right,V.right),Math.min(p.bottom,V.bottom),Math.max(p.left,V.left)):new d9(0,0,0,0);V=p.top>=p.bottom||p.left>=p.right?new d9(0,0,0,0):p;p=this.C.S;C=H=N=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.ZX(V))V=new d9(0,0,0,0);else{N=zu().S;C=new d9(0,N.height,N.width,0);var X;N=sH(V,(X=this.W)!=null?X:this.T);H=sH(V,zu().T);C=sH(V,C)}X=V.top>=V.bottom|| V.left>=V.right?new d9(0,0,0,0):Tu(V,-this.T.left,-this.T.top);n2()||(H=N=0);this.Z=new Jx(p,this.element,this.T,X,N,H,this.timestamp,C)}; g.h.getName=function(){return this.C.getName()};var uGp=new d9(0,0,0,0);g.m(fo,UH);g.h=fo.prototype;g.h.observe=function(){this.S();return!0}; g.h.zY=function(){UH.prototype.U_.call(this)}; g.h.SV=function(){}; g.h.YK=function(){}; g.h.U_=function(){this.S();UH.prototype.U_.call(this)}; g.h.Zk=function(p){p=p.isActive();p!==this.J&&(p?this.S():(zu().T=new d9(0,0,0,0),this.T=new d9(0,0,0,0),this.Y=new d9(0,0,0,0),this.timestamp=-1));this.J=p};var cD={},bNa=(cD.firstquartile=0,cD.midpoint=1,cD.thirdquartile=2,cD.complete=3,cD);g.m(yF,a1);g.h=yF.prototype;g.h.WK=function(){return!0}; g.h.Hp=function(){return this.m8==2}; g.h.gT=function(p){return iN9(this,p,Math.max(1E4,this.V/3))}; g.h.Pr=function(p,C,V,N,H,X,d){var a=this,E=this.D(this)||{};g.nG(E,H);this.V=E.duration||this.V;this.Z=E.isVpaid||this.Z;this.Ga=E.isYouTube||this.Ga;zy();this.qo=!1;H=urL(this,C);DjH(this)===1&&(X=H);a1.prototype.Pr.call(this,p,C,V,N,E,X,d);this.PS&&this.PS.V&&g.lr(this.Y,function(l){l.C(a)})}; g.h.mp=function(p,C,V){a1.prototype.mp.call(this,p,C,V);bf(this).update(p,C,this.JU,V);this.Qn=cp(this.JU)&&cp(C);this.Sa==-1&&this.KS&&(this.Sa=this.sf().V.T);this.DZ.V=0;p=this.Gv();C.isVisible()&&vp(this.DZ,"vs");p&&vp(this.DZ,"vw");xo(C.volume)&&vp(this.DZ,"am");cp(C)?vp(this.DZ,"a"):vp(this.DZ,"mut");this.IC&&vp(this.DZ,"f");C.C!=-1&&(vp(this.DZ,"bm"),C.C==1&&(vp(this.DZ,"b"),cp(C)&&vp(this.DZ,"umutb")));cp(C)&&C.isVisible()&&vp(this.DZ,"avs");this.Qn&&p&&vp(this.DZ,"avw");C.L7>0&&vp(this.DZ, "pv");AT(this,this.sf().V.T,!0)&&vp(this.DZ,"gdr");VF(this.sf().C,1)>=2E3&&vp(this.DZ,"pmx");this.qo&&vp(this.DZ,"tvoff")}; g.h.sM=function(){return new Sr}; g.h.sf=function(){return this.Wu}; g.h.vG=function(){return new tE9}; g.h.Pq=function(p,C,V,N){p=a1.prototype.Pq.call(this,p,C,V,N===void 0?-1:N);p.fullscreen=this.IC;p.paused=this.Hp();p.volume=V.volume;xo(p.volume)||(this.Wc++,C=this.JU,xo(C.volume)&&(p.volume=C.volume));V=V.currentTime;p.mediaTime=V!==void 0&&V>=0?V:-1;return p}; g.h.TG=function(p){return zu(),this.IC?1:a1.prototype.TG.call(this,p)}; g.h.Ke=function(){return 1}; g.h.getDuration=function(){return this.V}; g.h.TJ=function(){return this.NE?2:UjS(this)?5:this.Gv()?4:3}; g.h.qT=function(){return this.X$?this.sf().W.V>=2E3?4:3:2}; g.h.D4=function(p){this.HV&&this.HV.D4(p)};var Z01=g.QL();wiH.prototype.reset=function(){this.T=[];this.C=[]}; var R1=xc(wiH);g.m(Pp,g9);g.h=Pp.prototype;g.h.getName=function(){return(this.C?this.C:this.T).getName()}; g.h.bO=function(){return(this.C?this.C:this.T).bO()}; g.h.EK=function(){return(this.C?this.C:this.T).EK()}; g.h.init=function(p){var C=!1;(0,g.lr)(this.V,function(V){V.initialize()&&(C=!0)}); C&&(this.S=p,w9(this.T,this));return C}; g.h.dispose=function(){(0,g.lr)(this.V,function(p){p.dispose()}); g9.prototype.dispose.call(this)}; g.h.YL=function(){return Yo(this.V,function(p){return p.Kn()})}; g.h.lQ=function(){return Yo(this.V,function(p){return p.Kn()})}; g.h.PX=function(p,C,V){return new UH(p,this.T,C,V)}; g.h.zY=function(p){this.C=p.C};var p2L={threshold:[0,.3,.5,.75,1]};g.m(wx,UH);g.h=wx.prototype;g.h.observe=function(){var p=this;this.b_||(this.b_=jh());if(TAj(298,function(){return CpX(p)}))return!0; this.C.Du("msf");return!1}; g.h.unobserve=function(){if(this.S&&this.element)try{this.S.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.D&&(this.D.disconnect(),this.D=null)}catch(p){}}; g.h.U_=function(){var p=$C(this);p.length>0&&Lo(this,p);UH.prototype.U_.call(this)}; g.h.YK=function(){}; g.h.ZX=function(){return!1}; g.h.Vb=function(){}; g.h.bO=function(){var p={};return Object.assign(this.C.bO(),(p.niot_obs=this.b_,p.niot_cbk=this.a$,p))}; g.h.getName=function(){return"nio"};g.m(gx,g9);gx.prototype.getName=function(){return"nio"}; gx.prototype.lQ=function(){return!zu().C&&this.T.T.V.IntersectionObserver!=null}; gx.prototype.PX=function(p,C,V){return new wx(p,this.T,C,V)};g.m(Wp,Pf);Wp.prototype.Ms=function(){return zu().T}; Wp.prototype.Kn=function(){var p=VZQ();this.J!==p&&(this.T!=this&&p>this.T.J&&(this.T=this,$o(this)),this.J=p);return p==2};QF.prototype.sample=function(){G2(this,no(),!1)}; QF.prototype.S=function(){var p=n2(),C=jh();p?(NK||(Hf=C,g.lr(R1.T,function(V){var N=V.sf();N.Y_=Ko(N,C,V.m8!=1)})),NK=!0):(this.D=iEu(this,C),NK=!1,A$s=C,g.lr(R1.T,function(V){V.WO&&(V.sf().J=C)})); G2(this,no(),!p)}; var rx=xc(QF);var ssu=null,S0="",Fl=!1;var lqY=E3Y().GR,CX=E3Y().h8;var ThQ={Qxn:"visible",Lf_:"audible",AW$:"time",xOk:"timetype"},MZj={visible:function(p){return/^(100|[0-9]{1,2})$/.test(p)}, audible:function(p){return p=="0"||p=="1"}, timetype:function(p){return p=="mtos"||p=="tos"}, time:function(p){return/^(100|[0-9]{1,2})%$/.test(p)||/^([0-9])+ms$/.test(p)}}; cE1.prototype.setTime=function(p,C,V){C=="ms"?(this.V=p,this.S=-1):(this.V=-1,this.S=p);this.W=V===void 0?"tos":V;return this};g.m(Ho,DA);Ho.prototype.getId=function(){return this.D}; Ho.prototype.Y=function(){return!0}; Ho.prototype.T=function(p){var C=p.sf(),V=p.getDuration();return Yo(this.J,function(N){if(N.T!=void 0)var H=m_Q(N,C);else b:{switch(N.W){case "mtos":H=N.C?C.W.V:C.V.T;break b;case "tos":H=N.C?C.W.T:C.V.T;break b}H=0}H==0?N=!1:(N=N.V!=-1?N.V:V!==void 0&&V>0?N.S*V:-1,N=N!=-1&&H>=N);return N})};g.m(Xl,J$a);Xl.prototype.T=function(p){var C=new MES;C.T=mO(p,S1E);C.C=mO(p,Dcv);return C};g.m(dE,DA);dE.prototype.T=function(p){return UjS(p)};g.m(iu,K01);g.m(hC,DA);hC.prototype.T=function(p){return p.sf().Gv()};g.m(sM,uf);sM.prototype.T=function(p){var C=g.W5(this.D,Ty(e1().IN,"ovms"));return!p.NE&&(p.m8!=0||C)};g.m(aq,iu);aq.prototype.C=function(){return new sM(this.T)}; aq.prototype.V=function(){return[new hC("viewable_impression",this.T),new dE(this.T)]};g.m(EM,fo);EM.prototype.S=function(){var p=g.zV("ima.admob.getViewability"),C=Ty(this.IN,"queryid");typeof p==="function"&&C&&p(C)}; EM.prototype.getName=function(){return"gsv"};g.m(lu,g9);lu.prototype.getName=function(){return"gsv"}; lu.prototype.lQ=function(){var p=zu();e1();return p.C&&!1}; lu.prototype.PX=function(p,C,V){return new EM(this.T,C,V)};g.m(tC,fo);tC.prototype.S=function(){var p=this,C=g.zV("ima.bridge.getNativeViewability"),V=Ty(this.IN,"queryid");typeof C==="function"&&V&&C(V,function(N){g.k5(N)&&p.D++;var H=N.opt_nativeViewVisibleBounds||{},X=N.opt_nativeViewHidden;p.T=y8S(N.opt_nativeViewBounds||{});var d=p.C.S;d.T=X?uGp.clone():y8S(H);p.timestamp=N.opt_nativeTime||-1;zu().T=d.T;N=N.opt_nativeVolume;N!==void 0&&(d.volume=N)})}; tC.prototype.getName=function(){return"nis"};g.m(co,g9);co.prototype.getName=function(){return"nis"}; co.prototype.lQ=function(){var p=zu();e1();return p.C&&!1}; co.prototype.PX=function(p,C,V){return new tC(this.T,C,V)};g.m(To,Pf);g.h=To.prototype;g.h.Kn=function(){return this.C.Dm!=null}; g.h.Bh=function(){var p={};this.Wr&&(p.mraid=this.Wr);this.sY&&(p.mlc=1);p.mtop=this.C.hsY;this.D&&(p.mse=this.D);this.vr&&(p.msc=1);p.mcp=this.C.compatibility;return p}; g.h.Et=function(p){var C=g.US.apply(1,arguments);try{return this.C.Dm[p].apply(this.C.Dm,C)}catch(V){C2(538,V,.01,function(N){N.method=p})}}; g.h.initialize=function(){var p=this;if(this.isInitialized)return!this.iP();this.isInitialized=!0;if(this.C.compatibility===2)return this.D="ng",this.Du("w"),!1;if(this.C.compatibility===1)return this.D="mm",this.Du("w"),!1;zu().J=!0;this.V.document.readyState&&this.V.document.readyState=="complete"?KnY(this):dx(this.V,"load",function(){zy().setTimeout(p2(292,function(){return KnY(p)}),100)},292); return!0}; g.h.PH=function(){var p=zu(),C=fqS(this,"getMaxSize");p.T=new d9(0,C.width,C.height,0)}; g.h.RU=function(){zu().S=fqS(this,"getScreenSize")}; g.h.dispose=function(){ufX(this);Pf.prototype.dispose.call(this)};var pX1=new function(p,C){this.key=p;this.defaultValue=C===void 0?!1:C;this.valueType="boolean"}("45378663");g.h=JC.prototype;g.h.HJ=function(p){EH(p,!1);W0j(p)}; g.h.zV=function(){}; g.h.k7=function(p,C,V,N){var H=this;p=new yF(S1,p,V?C:-1,7,this.Vq(),this.DW());p.Jg=N;Soy(p.IN);cs(p.IN,"queryid",p.Jg);p.pF("");atY(p,function(){return H.I4.apply(H,g.K(g.US.apply(0,arguments)))},function(){return H.Yk.apply(H,g.K(g.US.apply(0,arguments)))}); (N=xc(er).T)&&dj1(p,N);this.V&&(p.D4(this.V),this.V=null);p.Mw.Os&&xc(Nhj);return p}; g.h.Zk=function(p){switch(p.EK()){case 0:if(p=xc(er).T)p=p.T,g.rY(p.W,this),p.Z&&this.WK()&&kDs(p);vo();break;case 2:Bp()}}; g.h.zY=function(){}; g.h.WK=function(){return!1}; g.h.Yk=function(p,C){p.NE=!0;switch(p.Ke()){case 1:AEs(p,C);break;case 2:this.KF(p)}}; g.h.wU=function(p){var C=p.D(p);C&&(C=C.volume,p.X$=xo(C)&&C>0);y$L(p,0);return kC(p,"start",n2())}; g.h.bQ=function(p,C,V){G2(rx,[p],!n2());return this.ly(p,C,V)}; g.h.ly=function(p,C,V){return kC(p,V,n2())}; g.h.K_=function(p){return Iq(p,"firstquartile",1)}; g.h.Og=function(p){p.KS=!0;return Iq(p,"midpoint",2)}; g.h.oT=function(p){return Iq(p,"thirdquartile",3)}; g.h.DA=function(p){var C=Iq(p,"complete",4);qZ(p);return C}; g.h.Bk=function(p){p.m8=3;return kC(p,"error",n2())}; g.h.H0=function(p,C,V){C=n2();if(p.Hp()&&!C){var N=p.sf(),H=jh();N.J=H}G2(rx,[p],!C);p.Hp()&&(p.m8=1);return kC(p,V,C)}; g.h.QN=function(p,C){C=this.bQ(p,C||{},"skip");qZ(p);return C}; g.h.gU=function(p,C){EH(p,!0);return this.bQ(p,C||{},"fullscreen")}; g.h.Ug=function(p,C){EH(p,!1);return this.bQ(p,C||{},"exitfullscreen")}; g.h.ud=function(p,C,V){C=p.sf();var N=jh();C.Y_=Ko(C,N,p.m8!=1);G2(rx,[p],!n2());p.m8==1&&(p.m8=2);return kC(p,V,n2())}; g.h.Jt=function(p){G2(rx,[p],!n2());return p.C()}; g.h.wl=function(p){G2(rx,[p],!n2());this.fB(p);qZ(p);return p.C()}; g.h.I4=function(){}; g.h.KF=function(){}; g.h.fB=function(){}; g.h.D2=function(){}; g.h.S2=function(){}; g.h.DW=function(){this.T||(this.T=this.S2());return this.T==null?new ZA:new aq(this.T)}; g.h.Vq=function(){return new Xl};g.m(bu,DA);bu.prototype.T=function(p){return p.qT()==4};g.m(AC,uf);AC.prototype.T=function(p){p=p.qT();return p==3||p==4};g.m(oq,iu);oq.prototype.C=function(){return new AC(this.T)}; oq.prototype.V=function(){return[new bu(this.T)]};g.m(kI,J$a);kI.prototype.T=function(p){p&&(p.e===28&&(p=Object.assign({},p,{avas:3})),p.vs===4||p.vs===5)&&(p=Object.assign({},p,{vs:3}));var C=new MES;C.T=mO(p,Krp);C.C=mO(p,Dcv);return C};YVy.prototype.C=function(){return g.zV(this.T)};g.m(xI,JC);g.h=xI.prototype;g.h.zV=function(p,C){var V=this,N=xc(er);if(N.T!=null)switch(N.T.getName()){case "nis":var H=epv(this,p,C);break;case "gsv":H=n3H(this,p,C);break;case "exc":H=Ppj(this,p)}H||(C.opt_overlayAdElement?H=void 0:C.opt_adElement&&(H=kiS(this,p,C.opt_adElement,C.opt_osdId)));H&&H.Ke()==1&&(H.D==g.Fu&&(H.D=function(X){return V.D2(X)}),Rpa(this,H,C)); return H}; g.h.D2=function(p){p.C=0;p.Vn=0;if(p.S=="h"||p.S=="n"){e1();p.UY&&(e1(),DK(this)!="h"&&DK(this));var C=g.zV("ima.common.getVideoMetadata");if(typeof C==="function")try{var V=C(p.Jg)}catch(H){p.C|=4}else p.C|=2}else if(p.S=="b")if(C=g.zV("ytads.bulleit.getVideoMetadata"),typeof C==="function")try{V=C(p.Jg)}catch(H){p.C|=4}else p.C|=2;else if(p.S=="ml")if(C=g.zV("ima.common.getVideoMetadata"),typeof C==="function")try{V=C(p.Jg)}catch(H){p.C|=4}else p.C|=2;else p.C|=1;p.C||(V===void 0?p.C|=8:V===null? p.C|=16:g.k5(V)?p.C|=32:V.errorCode!=null&&(p.Vn=V.errorCode,p.C|=64));V==null&&(V={});C=V;p.J=0;for(var N in TYf)C[N]==null&&(p.J|=TYf[N]);x_u(C,"currentTime");x_u(C,"duration");xo(V.volume)&&xo()&&(V.volume*=NaN);return V}; g.h.S2=function(){e1();DK(this)!="h"&&DK(this);var p=w2H(this);return p!=null?new YVy(p):null}; g.h.KF=function(p){!p.T&&p.NE&&uu(this,p,"overlay_unmeasurable_impression")&&(p.T=!0)}; g.h.fB=function(p){p.bR&&(p.Gv()?uu(this,p,"overlay_viewable_end_of_session_impression"):uu(this,p,"overlay_unviewable_impression"),p.bR=!1)}; g.h.I4=function(){}; g.h.k7=function(p,C,V,N){if(Cms()){var H=Ty(e1().IN,"mm"),X={};(H=(X[Ps.pY]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",X[Ps.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",X)[H])&&WnS(this,H);this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&C2(1044,Error())}p=JC.prototype.k7.call(this,p,C,V,N);this.W&&(C=this.Y,p.W==null&&(p.W=new EN9),C.T[p.Jg]=p.W,p.W.W=Z01);return p}; g.h.HJ=function(p){p&&p.Ke()==1&&this.W&&delete this.Y.T[p.Jg];return JC.prototype.HJ.call(this,p)}; g.h.DW=function(){this.T||(this.T=this.S2());return this.T==null?new ZA:this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new oq(this.T):new aq(this.T)}; g.h.Vq=function(){return this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new kI:new Xl}; g.h.D4=function(p,C,V,N,H){C=new d9(V,C+N,V+H,C);(p=z2(R1,p))?p.D4(C):this.V=C}; var Ucf=Gy(193,rEy,void 0,o3V);g.YH("Goog_AdSense_Lidar_sendVastEvent",Ucf);var fvf=p2(194,function(p,C){C=C===void 0?{}:C;p=g3a(xc(xI),p,C);return Qsy(p)}); g.YH("Goog_AdSense_Lidar_getViewability",fvf);var O0f=Gy(195,function(){return WSu()}); g.YH("Goog_AdSense_Lidar_getUrlSignalsArray",O0f);var yf0=p2(196,function(){return JSON.stringify(WSu())}); g.YH("Goog_AdSense_Lidar_getUrlSignalsList",yf0);var ps1=dsL(["//tpc.googlesyndication.com/sodar/",""]);g.m(Rq,g.Y);Rq.prototype.gq=function(){return this.wpc.f()}; Rq.prototype.Iw=function(p){this.wpc.c(p)}; Rq.prototype.DJ=function(p){return this.wpc.m(NTY(p))}; Rq.prototype.BS=function(p){return this.wpc.mws(NTY(p))}; g.m(YI,g.Y);YI.prototype.snapshot=function(p){return this.w7.s(Object.assign({},p.P$&&{c:p.P$},p.D9&&{s:p.D9},p.Uk!==void 0&&{p:p.Uk}))}; YI.prototype.G5=function(p){this.w7.e(p)}; YI.prototype.Wd=function(){return this.w7.l()};var Vry=(new Date).getTime();var dkY="://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(" "),ihu=/\bocr\b/;var soV=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var ZhY=0,uLH=0,Uk1=0;var e0=null,Po=!1,vcy=1,LX=Symbol("SIGNAL"),gE={version:0,lIa:0,d2:!1,F4:void 0,Qw:void 0,mF:void 0,KG:0,uf:void 0,Kg:void 0,bH:!1,pE:!1,kind:"unknown",zbV:function(){return!1}, i7$:function(){}, Pl:function(){}, dXn:function(){}};var q1y=Symbol("UNSET"),IvG=Symbol("COMPUTING"),b0P=Symbol("ERRORED");Object.assign({},gE,{value:q1y,d2:!0,error:null,po:aee,kind:"computed",zbV:function(p){return p.value===q1y||p.value===IvG}, i7$:function(p){if(p.value===IvG)throw Error("Detected cycle in computations.");var C=p.value;p.value=IvG;p&&(p.KG=0);var V=EcX(p);try{var N=p.wpe()}catch(H){N=b0P,p.error=H}finally{if(EcX(V),p&&p.F4!==void 0&&p.mF!==void 0&&p.Qw!==void 0){if($I(p))for(V=p.KG;Vp.KG;)p.F4.pop(),p.Qw.pop(),p.mF.pop()}}C!==q1y&&C!==b0P&&N!==b0P&&p.po(C,N)?p.value=C:(p.value=N,p.version++)}});var JUX=Object.assign({},gE,{po:aee,value:void 0,kind:"signal"});Object.assign({},gE,{pE:!0,bH:!1,Pl:function(p){p.schedule!==null&&p.schedule(p.EEr)}, LFo:!1,gzn:function(){}});Sha(!0);Sha(!1);var Kg9=Object.assign({},{attributes:{},handleError:function(p){throw p;}},{M1a:!0, Zka:!0,Xw:!1,KFV:!1,DX_:!1,j9$:!1});var feV=Symbol("updater");g.m(Qr,g.h8);Qr.prototype.dispose=function(){window.removeEventListener("offline",this.V);window.removeEventListener("online",this.V);this.Pp.X5(this.W);delete Qr.instance}; Qr.prototype.nO=function(){return this.T}; Qr.prototype.f7=function(){var p=this;this.W=this.Pp.Lx(function(){var C;return g.I(function(V){if(V.C==1)return p.T?((C=window.navigator)==null?0:C.onLine)?V.EY(3):g.y(V,Wo(p),3):g.y(V,Wo(p),3);p.f7();g.JQ(V)})},3E4)};Bo.prototype.set=function(p,C){C=C===void 0?!0:C;0<=p&&p<52&&Number.isInteger(p)&&this.data[p]!==C&&(this.data[p]=C,this.T=-1)}; Bo.prototype.get=function(p){return!!this.data[p]};var pg;g.r1(g.V2,g.Y);g.h=g.V2.prototype;g.h.start=function(){this.stop();this.S=!1;var p=IeS(this),C=bhj(this);p&&!C&&this.C.mozRequestAnimationFrame?(this.T=g.jS(this.C,"MozBeforePaint",this.V),this.C.mozRequestAnimationFrame(null),this.S=!0):this.T=p&&C?p.call(this.C,this.V):this.C.setTimeout(rPe(this.V),20)}; g.h.stop=function(){if(this.isActive()){var p=IeS(this),C=bhj(this);p&&!C&&this.C.mozRequestAnimationFrame?Xu(this.T):p&&C?C.call(this.C,this.T):this.C.clearTimeout(this.T)}this.T=null}; g.h.isActive=function(){return this.T!=null}; g.h.Ab=function(){this.S&&this.T&&Xu(this.T);this.T=null;this.Y.call(this.W,g.QL())}; g.h.CS=function(){this.stop();g.V2.oI.CS.call(this)};g.r1(g.N8,g.Y);g.h=g.N8.prototype;g.h.Oo=0;g.h.CS=function(){g.N8.oI.CS.call(this);this.stop();delete this.T;delete this.C}; g.h.start=function(p){this.stop();this.Oo=g.bm(this.V,p!==void 0?p:this.Kx)}; g.h.stop=function(){this.isActive()&&g.xH.clearTimeout(this.Oo);this.Oo=0}; g.h.isActive=function(){return this.Oo!=0}; g.h.BH=function(){this.Oo=0;this.T&&this.T.call(this.C)};g.iI.prototype[Symbol.iterator]=function(){return this}; g.iI.prototype.next=function(){var p=this.T.next();return{value:p.done?void 0:this.C.call(void 0,p.value),done:p.done}};g.r1(g.M8,g.h8);g.h=g.M8.prototype;g.h.isPlaying=function(){return this.T==1}; g.h.isPaused=function(){return this.T==-1}; g.h.dw=function(){this.nk("begin")}; g.h.g9=function(){this.nk("end")}; g.h.onFinish=function(){this.nk("finish")}; g.h.onStop=function(){this.nk("stop")}; g.h.nk=function(p){this.dispatchEvent(p)};var Afr=SS(function(){var p=g.iK("DIV"),C=g.Nq?"-webkit":Do?"-moz":null,V="transition:opacity 1s linear;";C&&(V+=C+"-transition:opacity 1s linear;");C=Hya({style:V});if(p.nodeType===1&&/^(script|style)$/i.test(p.tagName))throw Error("");p.innerHTML=LH(C);return g.u4(p.firstChild,"transition")!=""});g.r1(Jk,g.M8);g.h=Jk.prototype;g.h.play=function(){if(this.isPlaying())return!1;this.dw();this.nk("play");this.startTime=g.QL();this.T=1;if(Afr())return g.K2(this.C,this.Y),this.V=g.bm(this.kNn,void 0,this),!0;this.DT(!1);return!1}; g.h.kNn=function(){g.Ax(this.C);kya(this.C,this.D);g.K2(this.C,this.S);this.V=g.bm((0,g.LY)(this.DT,this,!1),this.W*1E3)}; g.h.stop=function(){this.isPlaying()&&this.DT(!0)}; g.h.DT=function(p){g.K2(this.C,"transition","");g.xH.clearTimeout(this.V);g.K2(this.C,this.S);this.endTime=g.QL();this.T=0;if(p)this.onStop();else this.onFinish();this.g9()}; g.h.CS=function(){this.stop();Jk.oI.CS.call(this)}; g.h.pause=function(){};var Yhs={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};ml("Element","attributes")||ml("Node","attributes");ml("Element","innerHTML")||ml("HTMLElement","innerHTML");ml("Node","nodeName");ml("Node","nodeType");ml("Node","parentNode");ml("Node","childNodes");ml("HTMLElement","style")||ml("Element","style");ml("HTMLStyleElement","sheet");var wsQ=RuY("getPropertyValue"),$kV=RuY("setProperty");ml("Element","namespaceURI")||ml("Node","namespaceURI");var PZe={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var QoX,GgX,WgH,gcY,rU9;QoX=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]");GgX=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.o28=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.FV=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]");WgH=/^http:\/\/.*/;g.kpc=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");gcY=/\s+/;rU9=/[\d\u06f0-\u06f9]/;Kg.prototype.lT=function(){return new DJ(this.C())}; Kg.prototype[Symbol.iterator]=function(){return new uI(this.C())}; Kg.prototype.T=function(){return new uI(this.C())}; g.m(DJ,g.lf);DJ.prototype.next=function(){return this.C.next()}; DJ.prototype[Symbol.iterator]=function(){return new uI(this.C)}; DJ.prototype.T=function(){return new uI(this.C)}; g.m(uI,Kg);uI.prototype.next=function(){return this.V.next()};Ud.prototype.clone=function(){return new Ud(this.T,this.D,this.V,this.W,this.S,this.Y,this.C,this.J)}; Ud.prototype.sE=function(p){return this.T==p.T&&this.D==p.D&&this.V==p.V&&this.W==p.W&&this.S==p.S&&this.Y==p.Y&&this.C==p.C&&this.J==p.J};Od.prototype.clone=function(){return new Od(this.start,this.end)}; Od.prototype.getLength=function(){return this.end-this.start};(function(){if(h$y){var p=/Windows NT ([0-9.]+)/;return(p=p.exec(g.f0()))?p[1]:"0"}return PI?(p=/1[0|1][_.][0-9_.]+/,(p=p.exec(g.f0()))?p[0].replace(/_/g,"."):"10"):g.N5?(p=/Android\s+([^\);]+)(\)|;)/,(p=p.exec(g.f0()))?p[1]:""):suF||ajE||EHG?(p=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(p=p.exec(g.f0()))?p[1].replace(/_/g,"."):""):""})();var GyY=function(){if(g.k$)return y2(/Firefox\/([0-9.]+)/);if(g.vF||g.G4||g.Fs)return hEy;if(g.kZ){if(ey()||P5()){var p=y2(/CriOS\/([0-9.]+)/);if(p)return p}return y2(/Chrome\/([0-9.]+)/)}if(g.D1&&!ey())return y2(/Version\/([0-9.]+)/);if(CK||jz){if(p=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.f0()))return p[1]+"."+p[2]}else if(g.SH)return(p=y2(/Android\s+([0-9.]+)/))?p:y2(/Version\/([0-9.]+)/);return""}();g.r1(g.IL,g.Y);g.h=g.IL.prototype;g.h.subscribe=function(p,C,V){var N=this.C[p];N||(N=this.C[p]=[]);var H=this.Y;this.T[H]=p;this.T[H+1]=C;this.T[H+2]=V;this.Y=H+3;N.push(H);return H}; g.h.unsubscribe=function(p,C,V){if(p=this.C[p]){var N=this.T;if(p=p.find(function(H){return N[H+1]==C&&N[H+2]==V}))return this.zW(p)}return!1}; g.h.zW=function(p){var C=this.T[p];if(C){var V=this.C[C];this.S!=0?(this.V.push(p),this.T[p+1]=function(){}):(V&&g.rY(V,p),delete this.T[p],delete this.T[p+1],delete this.T[p+2])}return!!C}; g.h.publish=function(p,C){var V=this.C[p];if(V){var N=Array(arguments.length-1),H=arguments.length,X;for(X=1;X0&&this.S==0)for(;V=this.V.pop();)this.zW(V)}}return X!=0}return!1}; g.h.clear=function(p){if(p){var C=this.C[p];C&&(C.forEach(this.zW,this),delete this.C[p])}else this.T.length=0,this.C={}}; g.h.CS=function(){g.IL.oI.CS.call(this);this.clear();this.V.length=0};g.bI.prototype.set=function(p,C){C===void 0?this.T.remove(p):this.T.set(p,g.zD(C))}; g.bI.prototype.get=function(p){try{var C=this.T.get(p)}catch(V){return}if(C!==null)try{return JSON.parse(C)}catch(V){throw"Storage: Invalid value was encountered";}}; g.bI.prototype.remove=function(p){this.T.remove(p)};g.r1(Ak,g.bI);Ak.prototype.set=function(p,C){Ak.oI.set.call(this,p,j9u(C))}; Ak.prototype.C=function(p){p=Ak.oI.get.call(this,p);if(p===void 0||p instanceof Object)return p;throw"Storage: Invalid value was encountered";}; Ak.prototype.get=function(p){if(p=this.C(p)){if(p=p.data,p===void 0)throw"Storage: Invalid value was encountered";}else p=void 0;return p};g.r1(oL,Ak);oL.prototype.set=function(p,C,V){if(C=j9u(C)){if(V){if(V=V.length)return g.EU;var H=V.key(C++);if(p)return g.tT(H);H=V.getItem(H);if(typeof H!=="string")throw"Storage mechanism: Invalid value was encountered";return g.tT(H)}; return N}; g.h.clear=function(){zz(this);this.T.clear()}; g.h.key=function(p){zz(this);return this.T.key(p)};g.r1(RL,YF);g.r1(H21,YF);g.r1(ng,xF);ng.prototype.set=function(p,C){this.C.set(this.T+p,C)}; ng.prototype.get=function(p){return this.C.get(this.T+p)}; ng.prototype.remove=function(p){this.C.remove(this.T+p)}; ng.prototype.lT=function(p){var C=this.C[Symbol.iterator](),V=this,N=new g.lf;N.next=function(){var H=C.next();if(H.done)return H;for(H=H.value;H.slice(0,V.T.length)!=V.T;){H=C.next();if(H.done)return H;H=H.value}return g.tT(p?H.slice(V.T.length):V.C.get(H))}; return N};PF.prototype.getValue=function(){return this.C}; PF.prototype.clone=function(){return new PF(this.T,this.C)};g.h=w0.prototype;g.h.N5=function(p,C){var V=this.T;V.push(new PF(p,C));p=V.length-1;C=this.T;for(V=C[p];p>0;){var N=p-1>>1;if(C[N].T>V.T)C[p]=C[N],p=N;else break}C[p]=V}; g.h.remove=function(){var p=this.T,C=p.length,V=p[0];if(!(C<=0)){if(C==1)p.length=0;else{p[0]=p.pop();p=0;C=this.T;for(var N=C.length,H=C[p];p>1;){var X=p*2+1,d=p*2+2;X=dH.T)break;C[p]=C[X];p=X}C[p]=H}return V.getValue()}}; g.h.k5=function(){for(var p=this.T,C=[],V=p.length,N=0;N>>16&65535|0;for(var X;V!==0;){X=V>2E3?2E3:V;V-=X;do H=H+C[N++]|0,p=p+H|0;while(--X);H%=65521;p%=65521}return H|p<<16|0};for(var v6={},TU,n21=[],MW=0;MW<256;MW++){TU=MW;for(var eEc=0;eEc<8;eEc++)TU=TU&1?3988292384^TU>>>1:TU>>>1;n21[MW]=TU}v6=function(p,C,V,N){V=N+V;for(p^=-1;N>>8^n21[(p^C[N])&255];return p^-1};var sg={};sg={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 VJ=[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],XC=[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],foQ=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Mhu=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],tp=Array(576);WF(tp);var c6=Array(60);WF(c6);var H6=Array(512);WF(H6);var j7=Array(256);WF(j7);var Nv=Array(29);WF(Nv);var df=Array(30);WF(df);var uj9,Z2S,UK9,DKL=!1;var ua;ua=[new DD(0,0,0,0,function(p,C){var V=65535;for(V>p.fp-5&&(V=p.fp-5);;){if(p.lx<=1){FC(p);if(p.lx===0&&C===0)return 1;if(p.lx===0)break}p.IH+=p.lx;p.lx=0;var N=p.Xx+V;if(p.IH===0||p.IH>=N)if(p.lx=p.IH-N,p.IH=N,TH(p,!1),p.R6.jd===0)return 1;if(p.IH-p.Xx>=p.c$-262&&(TH(p,!1),p.R6.jd===0))return 1}p.N5=0;if(C===4)return TH(p,!0),p.R6.jd===0?3:4;p.IH>p.Xx&&TH(p,!1);return 1}), new DD(4,4,8,4,S7),new DD(4,5,16,8,S7),new DD(4,6,32,32,S7),new DD(4,4,16,16,Kd),new DD(8,16,32,32,Kd),new DD(8,16,128,128,Kd),new DD(8,32,128,256,Kd),new DD(32,128,258,1024,Kd),new DD(32,258,258,4096,Kd)];var KGY={};KGY=function(){this.input=null;this.k0=this.a5=this.Zc=0;this.output=null;this.aJ=this.jd=this.oC=0;this.msg="";this.state=null;this.zG=2;this.Vi=0};var O2Y=Object.prototype.toString; ZD.prototype.push=function(p,C){var V=this.R6,N=this.options.chunkSize;if(this.ended)return!1;var H=C===~~C?C:C===!0?4:0;typeof p==="string"?V.input=Xfy(p):O2Y.call(p)==="[object ArrayBuffer]"?V.input=new Uint8Array(p):V.input=p;V.Zc=0;V.a5=V.input.length;do{V.jd===0&&(V.output=new g0.EX(N),V.oC=0,V.jd=N);p=SES(V,H);if(p!==1&&p!==0)return this.g9(p),this.ended=!0,!1;if(V.jd===0||V.a5===0&&(H===4||H===2))if(this.options.Y$==="string"){var X=g0.Yj(V.output,V.oC);C=X;X=X.length;if(X<65537&&(C.subarray&& REf||!C.subarray))C=String.fromCharCode.apply(null,g0.Yj(C,X));else{for(var d="",a=0;a0||V.jd===0)&&p!==1);if(H===4)return(V=this.R6)&&V.state?(N=V.state.status,N!==42&&N!==69&&N!==73&&N!==91&&N!==103&&N!==113&&N!==666?p=a6(V,-2):(V.state=null,p=N===113?a6(V,-3):0)):p=-2,this.g9(p),this.ended=!0,p===0;H===2&&(this.g9(0),V.jd=0);return!0}; ZD.prototype.g9=function(p){p===0&&(this.result=this.options.Y$==="string"?this.chunks.join(""):g0.Ea(this.chunks));this.chunks=[];this.err=p;this.msg=this.R6.msg};var fd="@@redux/INIT"+Ug(),oo9="@@redux/REPLACE"+Ug();var ku9=typeof Symbol==="function"&&Symbol.observable||"@@observable";var PPv=[0,wvG,-3,iS];g.m(qv,eq);qv.prototype.getType=function(){return Mm(this,11)};var bkQ=function(){var p=[0,Lyf,$sF,NW,wvG,NW,-1,iS,wvG,iS,-1,Lyf,iS,$sF,HD,PPv,NW,-1,iS];return function(C,V){if(VH.length){var N=VH.pop();ULH(N,V);N.T.init(C,void 0,void 0,V);C=N}else C=new bB(C,V);try{var H=new qv,X=H.bx;l0(p)(X,C);var d=H}finally{C.free()}return d}}();var RUQ=1776673851;var B8s=new g.I6("adInfoDialogEndpoint");var MF9=new g.I6("adPingingEndpoint");var xyu=new g.I6("crossDeviceProgressCommand");var tM=new g.I6("actionCompanionAdRenderer");var cB=new g.I6("adActionInterstitialRenderer");var w5r=new g.I6("adDurationRemainingRenderer");var xr=new g.I6("adHoverTextButtonRenderer");var Q_j=new g.I6("adInfoDialogRenderer");var mH=new g.I6("adMessageRenderer");var Yr=new g.I6("adPreviewRenderer");var T$=new g.I6("adsEngagementPanelRenderer");var sDQ=new g.I6("dismissablePanelTextPortraitImageRenderer");var iSQ=new g.I6("adsEngagementPanelSectionListViewModel");var $cP=new g.I6("flyoutCtaRenderer");var cP=new g.I6("imageCompanionAdRenderer");var lv=new g.I6("instreamAdPlayerOverlayRenderer");var MRY=new g.I6("instreamSurveyAdBackgroundImageRenderer");var kr=new g.I6("instreamSurveyAdPlayerOverlayRenderer");var UT=new g.I6("instreamSurveyAdRenderer"),od=new g.I6("instreamSurveyAdSingleSelectQuestionRenderer"),AM=new g.I6("instreamSurveyAdMultiSelectQuestionRenderer"),JJ=new g.I6("instreamSurveyAdAnswerRenderer"),Lrv=new g.I6("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var un=new g.I6("instreamVideoAdRenderer");var g28=new g.I6("textOverlayAdContentRenderer"),WrG=new g.I6("enhancedTextOverlayAdContentRenderer"),QF1=new g.I6("imageOverlayAdContentRenderer");var tn=new g.I6("playerOverlayLayoutRenderer");var Tx=new g.I6("videoInterstitialButtonedCenteredLayoutRenderer");var tiy=new g.I6("aboveFeedAdLayoutRenderer");var c0V=new g.I6("belowPlayerAdLayoutRenderer");var lay=new g.I6("inPlayerAdLayoutRenderer");var y9=new g.I6("playerBytesAdLayoutRenderer");var bn=new g.I6("playerUnderlayAdLayoutRenderer");var Zd=new g.I6("adIntroRenderer");var Kj=new g.I6("playerBytesSequentialLayoutRenderer");var LcY=new g.I6("slidingTextPlayerOverlayRenderer");var fj=new g.I6("surveyTextInterstitialRenderer");var rfP=new g.I6("simpleAdBadgeRenderer");var JV=new g.I6("skipAdRenderer"),BYc=new g.I6("skipButtonRenderer");var eB=new g.I6("adSlotRenderer");var qB=new g.I6("squeezebackPlayerSidePanelRenderer");var Gpp=new g.I6("timedPieCountdownRenderer");var YY1=new g.I6("adAvatarViewModel");var LD=new g.I6("adBadgeViewModel");var gv=new g.I6("adButtonViewModel");var py0=new g.I6("adDetailsLineViewModel");var Crp=new g.I6("adDisclosureBannerViewModel");var jf1=new g.I6("adPodIndexViewModel");var Vk1=new g.I6("imageBackgroundViewModel");var NoF=new g.I6("adGridCardCollectionViewModel");var H60=new g.I6("adGridCardTextViewModel");var Xyy=new g.I6("adPreviewViewModel");var dLf=new g.I6("playerAdAvatarLockupCardButtonedViewModel");var i6G=new g.I6("skipAdButtonViewModel");var h6P=new g.I6("skipAdViewModel");var sf2=new g.I6("timedPieCountdownViewModel");var aVE=new g.I6("visitAdvertiserLinkViewModel");var MB=new g.I6("bannerImageLayoutViewModel");var JM=new g.I6("topBannerImageTextIconButtonedLayoutViewModel");var m$=new g.I6("adsEngagementPanelLayoutViewModel");var Id=new g.I6("displayUnderlayTextGridCardsLayoutViewModel");g.Kf=new g.I6("browseEndpoint");var ET8=new g.I6("confirmDialogEndpoint");var mUS=new g.I6("rawColdConfigGroup");var Jws=new g.I6("rawHotConfigGroup");g.Uu=new g.I6("commandExecutorCommand");g.m(P4X,eq);var rMj={Ym$:0,o5Y:1,kiY:32,xX$:61,Ezk:67,Imo:86,TPa:42,amV:60,jia:62,A9x:73,nza:76,r9x:88,V1a:90,uNa:99,ZpS:98,Si$:100,CX$:102,mXa:41,vz_:69,zFk:70,ikr:71,tOr:2,U1o:27,ANDROID:3,aPk:54,bO$:14,Eq$:91,nqn:55,C8a:24,AU_:20,x5V:18,rU_:21,m5n:30,iOe:29,fPn:28,g5$:101,Wfx:34,u4a:36,IP_:38,IOS:5,PMn:15,Oq_:92,RYY:40,Dwa:25,BRo:17,tH$:19,Uwa:64,Klk:66,lSk:26,Q5V:22,wzV:33,omn:68,dwS:35,gm_:53,JXx:37,Yfk:39,zLr:7,ipV:57,f__:43,Lmn:59,Wmx:93,zje:74,No$:75,GAx:85,hLr:65,Hpk:80,p_V:8,mOS:10,RLS:58,PF$:63,eL$:72, vqS:23,Lre:11,NP_:13,Ff$:12,v5o:16,y9S:56,s9$:31,YvS:77,TRS:84,bkk:87,aSn:89,kpo:94,z4Y:95};g.m(ba,eq);ba.prototype.YF=function(){return TA(this,3)}; ba.prototype.g0=function(){return TA(this,5)}; ba.prototype.Tf=function(p){return mM(this,5,p)};g.m(Ap,eq);g.m(wfH,eq);g.m(o6,eq);g.h=o6.prototype;g.h.getDeviceId=function(){return TA(this,6)}; g.h.Kf=function(p){var C=gw(this,9,sL,3,void 0,!0);ek(C,p);return C[p]}; g.h.getPlayerType=function(){return Mm(this,36)}; g.h.setHomeGroupInfo=function(p){return hP(this,wfH,81,p)}; g.h.clearLocationPlayabilityToken=function(){return RO(this,89)};g.m(kQ,eq);kQ.prototype.getValue=function(){return TA(this,Nm(this,Tm1)===2?2:-1)}; var Tm1=[2,3,4,5,6];g.m(xQ,eq);xQ.prototype.setTrackingParams=function(p){return RO(this,1,fvQ(p,!1))};g.m(YQ,eq);g.m(zH,eq);zH.prototype.Kf=function(p){var C=gw(this,5,aO,3,void 0,!0);ek(C,p);return C[p]};g.m(R6,eq);R6.prototype.getToken=function(){return tP(this,2)}; R6.prototype.setToken=function(p){return mM(this,2,p)};g.m(nd,eq);nd.prototype.setSafetyMode=function(p){return Fa(this,5,p)};g.m(e7,eq);e7.prototype.Ll=function(p){return hP(this,o6,1,p)};var Rd=new g.I6("thumbnailLandscapePortraitRenderer");g.lV1=new g.I6("changeEngagementPanelVisibilityAction");var S2V=new g.I6("continuationCommand");g.tkv=new g.I6("openPopupAction");g.mm=new g.I6("webCommandMetadata");var YiL=new g.I6("metadataBadgeRenderer");var FWv=new g.I6("signalServiceEndpoint");var w7=new g.I6("innertubeCommand");var hVu=new g.I6("loggingDirectives");var yTH={p$a:"EMBEDDED_PLAYER_MODE_UNKNOWN",hyk:"EMBEDDED_PLAYER_MODE_DEFAULT",HxV:"EMBEDDED_PLAYER_MODE_PFP",eyn:"EMBEDDED_PLAYER_MODE_PFL"};var iwy=new g.I6("channelThumbnailEndpoint");var dia=new g.I6("embeddedPlayerErrorMessageRenderer");var Voy=new g.I6("embeddedPlayerOverlayVideoDetailsRenderer"),hTy=new g.I6("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),s2S=new g.I6("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var o1L=new g.I6("embedsInfoPanelRenderer");var cBc=new g.I6("feedbackEndpoint");var Tof=new g.I6("callToActionButtonViewModel");var MkE=new g.I6("interactionLoggingCommandMetadata");var ZgX={MSn:"WEB_DISPLAY_MODE_UNKNOWN",X_x:"WEB_DISPLAY_MODE_BROWSER",qmn:"WEB_DISPLAY_MODE_MINIMAL_UI",cWn:"WEB_DISPLAY_MODE_STANDALONE",Fmx:"WEB_DISPLAY_MODE_FULLSCREEN"};g.m(P6,eq);P6.prototype.getPlayerType=function(){return Mm(this,7)}; P6.prototype.qg=function(){return TA(this,19)}; P6.prototype.setVideoId=function(p){return mM(this,19,p)};g.m(wf,eq);g.m(gf,eq);g.m(W6,eq); var JB0=[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];var mL2=new g.I6("loggingContext");g.m(QJ,eq);g.m(rf,eq);rf.prototype.qg=function(){return tP(this,Nm(this,JG)===1?1:-1)}; rf.prototype.setVideoId=function(p){return jq(this,1,JG,Jc(p))}; rf.prototype.getPlaylistId=function(){return tP(this,Nm(this,JG)===2?2:-1)}; var JG=[1,2];g.m($KH,eq);var H_=new g.I6("changeKeyedMarkersVisibilityCommand");var vT5=new g.I6("changeMarkersVisibilityCommand");var R5L=new g.I6("loadMarkersCommand");var FqE=new g.I6("suggestedActionDataViewModel");var jCe=new g.I6("timelyActionViewModel");var CjH=new g.I6("timelyActionsOverlayViewModel");var N4e=new g.I6("productListItemRenderer");var Sv5=new g.I6("shoppingOverlayRenderer");var NHu=new g.I6("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var KqY=new g.I6("adFeedbackEndpoint");var DLp=new g.I6("menuEndpoint");var JJj=new g.I6("phoneDialerEndpoint");var TKS=new g.I6("sendSmsEndpoint");var j2v=new g.I6("copyTextEndpoint");var uvE=new g.I6("shareEndpoint"),Z68=new g.I6("shareEntityEndpoint"),UL2=new g.I6("shareEntityServiceEndpoint"),fVE=new g.I6("webPlayerShareEntityServiceEndpoint");g.$0=new g.I6("urlEndpoint");g.VB=new g.I6("watchEndpoint");var O6P=new g.I6("watchPlaylistEndpoint");g.yB8=new g.I6("offlineOrchestrationActionCommand");var $dH=new g.I6("compositeVideoOverlayRenderer");var qvF=new g.I6("miniplayerRenderer");var p1s=new g.I6("paidContentOverlayRenderer");var KZS=new g.I6("playerMutedAutoplayOverlayRenderer"),DOs=new g.I6("playerMutedAutoplayEndScreenRenderer");var YAj=new g.I6("unserializedPlayerResponse"),uFH=new g.I6("unserializedPlayerResponse");var IV1=new g.I6("playlistEditEndpoint");var vD;g.z$=new g.I6("buttonRenderer");vD=new g.I6("toggleButtonRenderer");var dQv=new g.I6("counterfactualRenderer");var b65=new g.I6("resolveUrlCommandMetadata");var ABp=new g.I6("modifyChannelNotificationPreferenceEndpoint");var T$V=new g.I6("pingingEndpoint");var oT8=new g.I6("unsubscribeEndpoint");g.D6=new g.I6("subscribeButtonRenderer");var kty=new g.I6("subscribeEndpoint");var Dtu=new g.I6("buttonViewModel");var hxS=new g.I6("qrCodeRenderer");var G$L={szx:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Cfe:"LIVING_ROOM_APP_MODE_MAIN",n9Y:"LIVING_ROOM_APP_MODE_KIDS",ABa:"LIVING_ROOM_APP_MODE_MUSIC",x1a:"LIVING_ROOM_APP_MODE_UNPLUGGED",b$$:"LIVING_ROOM_APP_MODE_GAMING"};var IFS=new g.I6("autoplaySwitchButtonRenderer");var v7,$9L,$39,V$L;v7=new g.I6("decoratedPlayerBarRenderer");$9L=new g.I6("chapteredPlayerBarRenderer");$39=new g.I6("multiMarkersPlayerBarRenderer");V$L=new g.I6("chapterRenderer");g.QPy=new g.I6("markerRenderer");var xL0=new g.I6("decoratedPlayheadRenderer");var kvX=new g.I6("desktopOverlayConfigRenderer");var A59=new g.I6("gatedActionsOverlayViewModel");var pM9=new g.I6("heatMarkerRenderer");var G_1=new g.I6("heatmapRenderer");var z5H=new g.I6("watchToWatchTransitionRenderer");var HwV=new g.I6("playlistPanelRenderer");var Yv0=new g.I6("productUpsellSuggestedActionViewModel");var z61=new g.I6("suggestedActionTimeRangeTrigger"),R6P=new g.I6("suggestedActionsRenderer"),nT1=new g.I6("suggestedActionRenderer");var CJQ=new g.I6("timedMarkerDecorationRenderer");var isv=new g.I6("cipher");var ze9=new g.I6("playerVars");var Zzs=new g.I6("playerVars");var Fy=g.xH.window,e6c,Prf,B6=(Fy==null?void 0:(e6c=Fy.yt)==null?void 0:e6c.config_)||(Fy==null?void 0:(Prf=Fy.ytcfg)==null?void 0:Prf.data_)||{};g.YH("yt.config_",B6);var je=[];var j1Q=/^[\w.]*$/,B9V={q:!0,search_query:!0},rxH=String(X5);var TQ=new function(){var p=window.document;this.T=window;this.C=p}; g.YH("yt.ads_.signals_.getAdSignalsString",function(p){return dm(Jw(p))});g.QL();var Nx9="XMLHttpRequest"in g.xH?function(){return new XMLHttpRequest}:null;var wyG="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.K(wyG);var ioX={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"},hzL="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.K(wyG)),Mrs=!1,Xpe=s11,tru=yg;g.m(b1,c5);kD.prototype.then=function(p,C,V){return this.T?this.T.then(p,C,V):this.V===1&&p?(p=p.call(V,this.C))&&typeof p.then==="function"?p:YD(p):this.V===2&&C?(p=C.call(V,this.C))&&typeof p.then==="function"?p:xD(p):this}; kD.prototype.getValue=function(){return this.C}; kD.prototype.$goog_Thenable=!0;var zQ=!1;var BW=CK||jz;var fAY=/^([0-9\.]+):([0-9\.]+)$/;g.m(M5,c5);M5.prototype.name="BiscottiError";g.m(TW,c5);TW.prototype.name="BiscottiMissingError";var IAe={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Jm=null;var ycH=dsL(["data-"]),nCS={};var $LF=0,m_=g.Nq?"webkit":Do?"moz":g.vF?"ms":g.Fs?"o":"",LqF=g.zV("ytDomDomGetNextId")||function(){return++$LF}; g.YH("ytDomDomGetNextId",LqF);var $ZX={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};uO.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; uO.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; uO.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Z3=g.xH.ytEventsEventsListeners||{};g.YH("ytEventsEventsListeners",Z3);var WOX=g.xH.ytEventsEventsCounter||{count:0};g.YH("ytEventsEventsCounter",WOX);var G2j=SS(function(){var p=!1;try{var C=Object.defineProperty({},"passive",{get:function(){p=!0}}); window.addEventListener("test",null,C)}catch(V){}return p}),Q1S=SS(function(){var p=!1; try{var C=Object.defineProperty({},"capture",{get:function(){p=!0}}); window.addEventListener("test",null,C)}catch(V){}return p});var Sd;Sd=window;g.Ip=Sd.ytcsi&&Sd.ytcsi.now?Sd.ytcsi.now:Sd.performance&&Sd.performance.timing&&Sd.performance.now&&Sd.performance.timing.navigationStart?function(){return Sd.performance.timing.navigationStart+Sd.performance.now()}:function(){return(new Date).getTime()};g.r1(q5,g.Y);q5.prototype.Z=function(p){p.T===void 0&&LOa(p);var C=p.T;p.C===void 0&&LOa(p);this.T=new g.Fn(C,p.C)}; q5.prototype.rz=function(){return this.T||new g.Fn}; q5.prototype.a$=function(){if(this.T){var p=(0,g.Ip)();if(this.S!=0){var C=this.Y,V=this.T,N=C.x-V.x;C=C.y-V.y;N=Math.sqrt(N*N+C*C)/(p-this.S);this.C[this.V]=Math.abs((N-this.W)/this.W)>.5?1:0;for(V=C=0;V<4;V++)C+=this.C[V]||0;C>=3&&this.D();this.W=N}this.S=p;this.Y=this.T;this.V=(this.V+1)%4}}; q5.prototype.CS=function(){g.Dr(this.J);g.fK(this.b_)};g.m(I_,g.Y);I_.prototype.U=function(p,C,V,N,H){V=g.NU((0,g.LY)(V,N||this.Wc));V={target:p,name:C,callback:V};var X;H&&G2j()&&(X={passive:!0});p.addEventListener(C,V.callback,X);this.D.push(V);return V}; I_.prototype.rY=function(p){for(var C=0;C=z.c_)||D.T.version>=Q||D.T.objectStoreNames.contains(A)||f.push(A)}E=f;if(E.length===0){S.EY(5);break}l=Object.keys(V.options.UK); t=a.objectStoreNames();if(V.WV.options.version+1)throw T.close(),V.V=!1,RFX(V,M);return S.return(T);case 8:throw C(), c instanceof Error&&!g.Zr("ytidb_async_stack_killswitch")&&(c.stack=c.stack+"\n"+d.substring(d.indexOf("\n")+1)),uN(c,V.name,"",(J=V.options.version)!=null?J:-1);}})} function C(){V.T===N&&(V.T=void 0)} var V=this;if(!this.V)throw RFX(this);if(this.T)return this.T;var N,H={blocking:function(X){X.close()}, closed:C,olY:C,upgrade:this.options.upgrade};return this.T=N=p()};var Ql=new gq("YtIdbMeta",{UK:{databases:{c_:1}},upgrade:function(p,C){C(1)&&g.A1(p,"databases",{keyPath:"actualName"})}});var C5,p5=new function(){}(new function(){});new g.Zt;g.m(Ne,gq);Ne.prototype.C=function(p,C,V){V=V===void 0?{}:V;return(this.options.shared?QqX:WV1)(p,C,Object.assign({},V))}; Ne.prototype.delete=function(p){p=p===void 0?{}:p;return(this.options.shared?pFQ:rCy)(this.name,p)};var jOf={},jLL=g.HC("ytGcfConfig",{UK:(jOf.coldConfigStore={c_:1},jOf.hotConfigStore={c_:1},jOf),shared:!1,upgrade:function(p,C){C(1)&&(g.Rp(g.A1(p,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Rp(g.A1(p,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.m(dy,g.Y);dy.prototype.CS=function(){for(var p=g.F(this.C),C=p.next();!C.done;C=p.next()){var V=this.T;C=V.indexOf(C.value);C>=0&&V.splice(C,1)}this.C.length=0;g.Y.prototype.CS.call(this)};lR.prototype.Tf=function(p){this.hotHashData=p;g.YH("yt.gcf.config.hotHashData",this.hotHashData||null)};var Vnc=typeof TextEncoder!=="undefined"?new TextEncoder:null,wFv=Vnc?function(p){return Vnc.encode(p)}:function(p){p=g.mr(p); for(var C=new Uint8Array(p.length),V=0;V=C?!1:!0}; g.h.bk=function(){var p=this;if(!L5(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.hU.Oa("QUEUED",this.p9).then(function(C){C&&!p.Zv(C,p.ED)?p.Pp.Lx(function(){return g.I(function(V){if(V.C==1)return C.id===void 0?V.EY(2):g.y(V,p.hU.dD(C.id,p.p9),2);p.bk();g.JQ(V)})}):p.AU.nO()&&p.Mz()})};var Qt;var SkY={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,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};var H_y={},hi1=g.HC("ServiceWorkerLogsDatabase",{UK:(H_y.SWHealthLog={c_:1},H_y),shared:!0,upgrade:function(p,C){C(1)&&g.Rp(g.A1(p,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var G1={},cpY=0;var p1;jF.prototype.requestComplete=function(p,C){C&&(this.C=!0);p=this.removeParams(p);this.T.get(p)||this.T.set(p,C)}; jF.prototype.isEndpointCFR=function(p){p=this.removeParams(p);return(p=this.T.get(p))?!1:p===!1&&this.C?!0:null}; jF.prototype.removeParams=function(p){return p.split("?")[0]}; jF.prototype.removeParams=jF.prototype.removeParams;jF.prototype.isEndpointCFR=jF.prototype.isEndpointCFR;jF.prototype.requestComplete=jF.prototype.requestComplete;jF.getInstance=Vq;g.m(NM,g.h8);g.h=NM.prototype;g.h.nO=function(){return this.T.nO()}; g.h.cj=function(p){this.T.T=p}; g.h.At=function(){var p=window.navigator.onLine;return p===void 0?!0:p}; g.h.j_=function(){this.C=!0}; g.h.listen=function(p,C){return this.T.listen(p,C)}; g.h.rr=function(p){p=Wo(this.T,p);p.then(function(C){g.Zr("use_cfr_monitor")&&Vq().requestComplete("generate_204",C)}); return p}; NM.prototype.sendNetworkCheckRequest=NM.prototype.rr;NM.prototype.listen=NM.prototype.listen;NM.prototype.enableErrorFlushing=NM.prototype.j_;NM.prototype.getWindowStatus=NM.prototype.At;NM.prototype.networkStatusHint=NM.prototype.cj;NM.prototype.isNetworkAvailable=NM.prototype.nO;NM.getInstance=Jpa;g.m(g.Hl,g.h8);g.Hl.prototype.nO=function(){var p=g.zV("yt.networkStatusManager.instance.isNetworkAvailable");return p?p.bind(this.C)():!0}; g.Hl.prototype.cj=function(p){var C=g.zV("yt.networkStatusManager.instance.networkStatusHint").bind(this.C);C&&C(p)}; g.Hl.prototype.rr=function(p){var C=this,V;return g.I(function(N){V=g.zV("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(C.C);return g.Zr("skip_network_check_if_cfr")&&Vq().isEndpointCFR("generate_204")?N.return(new Promise(function(H){var X;C.cj(((X=window.navigator)==null?void 0:X.onLine)||!0);H(C.nO())})):V?N.return(V(p)):N.return(!0)})};var X3;g.m(d$,gy);d$.prototype.writeThenSend=function(p,C){C||(C={});C=h3(p,C);g.p3()||(this.T=!1);gy.prototype.writeThenSend.call(this,p,C)}; d$.prototype.sendThenWrite=function(p,C,V){C||(C={});C=h3(p,C);g.p3()||(this.T=!1);gy.prototype.sendThenWrite.call(this,p,C,V)}; d$.prototype.sendAndWrite=function(p,C){C||(C={});C=h3(p,C);g.p3()||(this.T=!1);gy.prototype.sendAndWrite.call(this,p,C)}; d$.prototype.awaitInitialization=function(){return this.V.promise};var K2a=g.xH.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.YH("ytNetworklessLoggingInitializationOptions",K2a);g.sI.prototype.isReady=function(){!this.config_&&m8Y()&&(this.config_=g.cC());return!!this.config_};var XT2,lV,cl;XT2=g.xH.ytPubsubPubsubInstance||new g.IL;lV=g.xH.ytPubsubPubsubSubscribedKeys||{};cl=g.xH.ytPubsubPubsubTopicToKeys||{};g.t3=g.xH.ytPubsubPubsubIsSynchronous||{};g.IL.prototype.subscribe=g.IL.prototype.subscribe;g.IL.prototype.unsubscribeByKey=g.IL.prototype.zW;g.IL.prototype.publish=g.IL.prototype.publish;g.IL.prototype.clear=g.IL.prototype.clear;g.YH("ytPubsubPubsubInstance",XT2);g.YH("ytPubsubPubsubTopicToKeys",cl);g.YH("ytPubsubPubsubIsSynchronous",g.t3); g.YH("ytPubsubPubsubSubscribedKeys",lV);var Odj={};g.m(uV,g.Y);uV.prototype.append=function(p){if(!this.C)throw Error("This does not support the append operation");p=p.V$();this.V$().appendChild(p)}; g.m(Z9,uV);Z9.prototype.V$=function(){return this.T};g.m(IDe,g.Y);var UI=Date.now().toString();var Ih={};var xJ=Symbol("injectionDeps");A3.prototype.toString=function(){return"InjectionToken("+this.name+")"}; kH1.prototype.resolve=function(p){return p instanceof oh?YJ(this,p.key,[],!0):YJ(this,p,[])};var z7;var n1=window;var $J=g.Zr("web_enable_lifecycle_monitoring")&&eF()!==0,Pa9=g.Zr("web_enable_lifecycle_monitoring");Ria.prototype.cancel=function(){for(var p=g.F(this.T),C=p.next();!C.done;C=p.next())C=C.value,C.jobId===void 0||C.g5||this.scheduler.X5(C.jobId),C.g5=!0;this.C.resolve()};g.h=L1.prototype;g.h.install=function(p){this.plugins.push(p);return this}; g.h.uninstall=function(){var p=this;g.US.apply(0,arguments).forEach(function(C){C=p.plugins.indexOf(C);C>-1&&p.plugins.splice(C,1)})}; g.h.transition=function(p,C){var V=this;$J&&YgL(this.state);var N=this.transitions.find(function(X){return Array.isArray(X.from)?X.from.find(function(d){return d===V.state&&X.Y$===p}):X.from===V.state&&X.Y$===p}); if(N){this.C&&(nQS(this.C),this.C=void 0);w6Y(this,p,C);this.state=p;$J&&Pl(this.state);N=N.action.bind(this);var H=this.plugins.filter(function(X){return X[p]}).map(function(X){return X[p]}); N(eiY(this,H),C)}else throw Error("no transition specified from "+this.state+" to "+p);}; g.h.dte=function(p){var C=g.US.apply(1,arguments);g.HW();for(var V=g.F(p),N=V.next(),H={};!N.done;H={Xf:void 0},N=V.next())H.Xf=N.value,EIS(function(X){return function(){Wl(X.Xf.name);r$(function(){return X.Xf.callback.apply(X.Xf,g.K(C))}); Qq(X.Xf.name)}}(H))}; g.h.otS=function(p){var C=g.US.apply(1,arguments),V,N,H,X;return g.I(function(d){d.C==1&&(g.HW(),V=g.F(p),N=V.next(),H={});if(d.C!=3){if(N.done)return d.EY(0);H.Us=N.value;H.XE=void 0;X=function(a){return function(){Wl(a.Us.name);var E=r$(function(){return a.Us.callback.apply(a.Us,g.K(C))}); aH(E)?a.XE=g.Zr("web_lifecycle_error_handling_killswitch")?E.then(function(){Qq(a.Us.name)}):E.then(function(){Qq(a.Us.name)},function(l){ziu(l); Qq(a.Us.name)}):Qq(a.Us.name)}}(H); EIS(X);return H.XE?g.y(d,H.XE,3):d.EY(3)}H={Us:void 0,XE:void 0};N=V.next();return d.EY(2)})}; g.h.FY=function(p){var C=g.US.apply(1,arguments),V=this,N=p.map(function(H){return{hq:function(){Wl(H.name);r$(function(){return H.callback.apply(H,g.K(C))}); Qq(H.name)}, priority:g$(V,H)}}); N.length&&(this.C=new Ria(N))}; g.Xe.Object.defineProperties(L1.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var G7;g.m(Bl,L1);Bl.prototype.W=function(p,C){var V=this;this.T=g.Vl(0,function(){V.currentState==="application_navigating"&&V.transition("none")},5E3); p(C==null?void 0:C.event)}; Bl.prototype.Y=function(p,C){this.T&&(g.rE.X5(this.T),this.T=null);p(C==null?void 0:C.event)};var ZE=[];g.YH("yt.logging.transport.getScrapedGelPayloads",function(){return ZE});pm.prototype.storePayload=function(p,C){p=Cm(p);this.store[p]?this.store[p].push(C):(this.C={},this.store[p]=[C]);this.T++;g.Zr("more_accurate_gel_parser")&&(C=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(C));return p}; pm.prototype.smartExtractMatchingEntries=function(p){if(!p.keys.length)return[];for(var C=Vm(this,p.keys.splice(0,1)[0]),V=[],N=0;N=0){N=!1;break a}}N=!0}N&&(C=Lm(C))&&this.mu(C)}}; g.h.Iv=function(p){return p}; g.h.rp=function(p){var C=this.sY;C.D=!0;C.C=p.touches.length;C.T.isActive()&&(C.T.stop(),C.W=!0);p=p.touches;C.Y=bdL(C,p)||p.length!=1;var V=p.item(0);C.Y||!V?(C.J=Infinity,C.Z=Infinity):(C.J=V.clientX,C.Z=V.clientY);for(V=C.V.length=0;V=0)}if(V||p&&Math.pow(p.clientX-C.J,2)+Math.pow(p.clientY-C.Z,2)>25)C.S=!0}; g.h.xS=function(p){if(this.sY){var C=this.sY,V=p.changedTouches;V&&C.D&&C.C==1&&!C.S&&!C.W&&!C.Y&&bdL(C,V)&&(C.a$=p,C.T.start());C.C=p.touches.length;C.C===0&&(C.D=!1,C.S=!1,C.V.length=0);C.W=!1}}; g.h.mu=function(p){this.layoutId?this.l_.executeCommand(p,this.layoutId):g.nm(new g.Bw("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.h.createServerVe=function(p,C){this.api.createServerVe(p,this);this.api.setTrackingParams(p,C)}; g.h.logVisibility=function(p,C){this.api.hasVe(p)&&this.api.logVisibility(p,C,this.interactionLoggingClientData)}; g.h.CS=function(){this.clear(null);this.rY(this.qo);for(var p=g.F(this.Vn),C=p.next();!C.done;C=p.next())this.rY(C.value);g.Sp.prototype.CS.call(this)};g.m(nq,Kq); nq.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.T=C;if(C.text==null&&C.icon==null)g.eG(Error("ButtonRenderer did not have text or an icon set."));else{switch(C.style||null){case "STYLE_UNKNOWN":p="ytp-ad-button-link";break;default:p=null}p!=null&&g.Ed(this.element,p);C.text!=null&&(p=g.uq(C.text),g.Sy(p)||(this.element.setAttribute("aria-label",p),this.V=new g.Sp({L:"span",B:"ytp-ad-button-text",Ak:p}),g.R(this,this.V),this.V.u_(this.element)));C.accessibilityData&&C.accessibilityData.accessibilityData&& C.accessibilityData.accessibilityData.label&&!g.Sy(C.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",C.accessibilityData.accessibilityData.label);C.icon!=null&&(C=RS(C.icon,this.S),C!=null&&(this.C=new g.Sp({L:"span",B:"ytp-ad-button-icon",j:[C]}),g.R(this,this.C)),this.W?Eo(this.element,this.C.element,0):this.C.u_(this.element))}}; nq.prototype.clear=function(){this.hide()}; nq.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p);p=g.F(olS(this));for(var C=p.next();!C.done;C=p.next())C=C.value,this.layoutId?this.l_.executeCommand(C,this.layoutId):g.nm(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.m(ep,g.Y);ep.prototype.CS=function(){this.C&&g.fK(this.C);this.T.clear();Pa=null;g.Y.prototype.CS.call(this)}; ep.prototype.register=function(p,C){C&&this.T.set(p,C)}; var Pa=null;g.m(Lq,Kq); Lq.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);p=C.hoverText||null;C=C.button&&g.n(C.button,g.z$)||null;C==null?g.nm(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,void 0,void 0,void 0,void 0,this.V),g.R(this,this.button),this.button.init(lq("button"),C,this.macros),p&&this.button.element.setAttribute("aria-label",g.uq(p)),this.button.u_(this.element),this.Z&&!g.aL(this.button.element, "ytp-ad-clickable")&&g.Ed(this.button.element,"ytp-ad-clickable"),this.V&&(g.Ed(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.G("clean_player_style_fix_on_web")&&g.Ed(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),p&&(this.C=new g.Sp({L:"div",B:"ytp-ad-hover-text-container"}),this.W&&(C=new g.Sp({L:"div",B:"ytp-ad-hover-text-callout"}),C.u_(this.C.element),g.R(this,C)),g.R(this,this.C),this.C.u_(this.element),C=we(p),Eo(this.C.element,C,0)), this.show())}; Lq.prototype.hide=function(){this.button&&this.button.hide();this.C&&this.C.hide();Kq.prototype.hide.call(this)}; Lq.prototype.show=function(){this.button&&this.button.show();Kq.prototype.show.call(this)};g.m(Wa,Kq); Wa.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);V=(p=C.thumbnail)&&ge(p)||"";g.Sy(V)?Math.random()<.01&&g.eG(Error("Found AdImage without valid image URL")):(this.T?g.K2(this.element,"backgroundImage","url("+V+")"):Vf(this.element,{src:V}),Vf(this.element,{alt:p&&p.accessibility&&p.accessibility.label||""}),C&&C.adRendererCommands&&C.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Wa.prototype.clear=function(){this.hide()};g.m(QD,Kq);g.h=QD.prototype;g.h.hide=function(){Kq.prototype.hide.call(this);this.V&&this.V.focus()}; g.h.show=function(){this.V=document.activeElement;Kq.prototype.show.call(this);this.S.focus()}; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.C=C;C.dialogMessages||C.title!=null?C.confirmLabel==null?g.nm(Error("ConfirmDialogRenderer.confirmLabel was not set.")):C.cancelLabel==null?g.nm(Error("ConfirmDialogRenderer.cancelLabel was not set.")):z8H(this,C):g.nm(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.h.clear=function(){g.Am(this.T);this.hide()}; g.h.Vd=function(){this.hide()}; g.h.BZ=function(){var p=this.C.cancelEndpoint;p&&(this.layoutId?this.l_.executeCommand(p,this.layoutId):g.nm(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.h.Sf=function(){var p=this.C.confirmNavigationEndpoint||this.C.confirmEndpoint;p&&(this.layoutId?this.l_.executeCommand(p,this.layoutId):g.nm(Error("Missing layoutId for confirm dialog.")));this.hide()};g.m(re,Kq);g.h=re.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.V=C;if(C.defaultText==null&&C.defaultIcon==null)g.nm(Error("ToggleButtonRenderer must have either text or icon set."));else if(C.defaultIcon==null&&C.toggledIcon!=null)g.nm(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(C.style){switch(C.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":p="ytp-ad-toggle-button-default-style";break;default:p=null}p!=null&&g.Ed(this.S,p)}p={};C.defaultText? (V=g.uq(C.defaultText),g.Sy(V)||(p.buttonText=V,this.api.K().experiments.OY("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",V),this.api.K().experiments.OY("fix_h5_toggle_button_a11y")&&this.C.setAttribute("aria-label",V))):g.o9(this.Sa,!1);C.defaultTooltip&&(p.tooltipText=C.defaultTooltip,this.T.hasAttribute("aria-label")||this.C.setAttribute("aria-label",C.defaultTooltip));C.defaultIcon?(V=RS(C.defaultIcon),this.updateValue("untoggledIconTemplateSpec",V),C.toggledIcon?(this.b_= !0,V=RS(C.toggledIcon),this.updateValue("toggledIconTemplateSpec",V)):(g.o9(this.Z,!0),g.o9(this.W,!1)),g.o9(this.T,!1)):g.o9(this.C,!1);g.k5(p)||this.update(p);C.isToggled&&(g.Ed(this.S,"ytp-ad-toggle-button-toggled"),this.toggleButton(C.isToggled));Ba(this);this.U(this.element,"change",this.U4);this.show()}}; g.h.onClick=function(p){this.Vn.length>0&&(this.toggleButton(!this.isToggled()),this.U4());Kq.prototype.onClick.call(this,p)}; g.h.U4=function(){g.Tz(this.S,"ytp-ad-toggle-button-toggled",this.isToggled());for(var p=g.F(R8u(this,this.isToggled())),C=p.next();!C.done;C=p.next())C=C.value,this.layoutId?this.l_.executeCommand(C,this.layoutId):g.nm(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Ba(this)}; g.h.clear=function(){this.hide()}; g.h.toggleButton=function(p){g.Tz(this.S,"ytp-ad-toggle-button-toggled",p);this.T.checked=p;Ba(this)}; g.h.isToggled=function(){return this.T.checked};g.m(GB,I_);GB.prototype.Y=function(p){if(Array.isArray(p)){p=g.F(p);for(var C=p.next();!C.done;C=p.next())C=C.value,C instanceof nlj&&this.S(C)}};g.m(pt,Kq);g.h=pt.prototype;g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);C.reasons?C.confirmLabel==null?g.nm(Error("AdFeedbackRenderer.confirmLabel was not set.")):(C.cancelLabel==null&&g.eG(Error("AdFeedbackRenderer.cancelLabel was not set.")),C.title==null&&g.eG(Error("AdFeedbackRenderer.title was not set.")),$51(this,C)):g.nm(Error("AdFeedbackRenderer.reasons were not set."))}; g.h.clear=function(){OB(this.W);OB(this.Z);this.S.length=0;this.hide()}; g.h.hide=function(){this.T&&this.T.hide();this.C&&this.C.hide();Kq.prototype.hide.call(this);this.V&&this.V.focus()}; g.h.show=function(){this.T&&this.T.show();this.C&&this.C.show();this.V=document.activeElement;Kq.prototype.show.call(this);this.W.focus()}; g.h.IQ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.h.tr$=function(){this.hide()}; Ct.prototype.V$=function(){return this.T.element}; Ct.prototype.getCommand=function(){return this.C}; Ct.prototype.isChecked=function(){return this.V.checked};g.m(j2,QD);j2.prototype.Vd=function(p){QD.prototype.Vd.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; j2.prototype.BZ=function(p){QD.prototype.BZ.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; j2.prototype.Sf=function(p){QD.prototype.Sf.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.m(V_,Kq);g.h=V_.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.W=C;if(C.dialogMessage==null&&C.title==null)g.nm(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{C.confirmLabel==null&&g.eG(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(p=C.closeOverlayRenderer&&g.n(C.closeOverlayRenderer,g.z$)||null)this.T=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.R(this,this.T),this.T.init(lq("button"),p,this.macros),this.T.u_(this.element);C.title&&(p=g.uq(C.title),this.updateValue("title",p));if(C.adReasons)for(p=C.adReasons,V=0;V=this.vr?(this.Sa.hide(),this.R$=!0,this.publish("i")):this.V&&this.V.isTemplated()&&(p=Math.max(0,Math.ceil((this.vr-p)/1E3)),p!=this.KS&&(XK(this.V,{TIME_REMAINING:String(p)}),this.KS=p)))}};g.m(cE,dk);g.h=cE.prototype; g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);if(C.image&&C.image.thumbnail)if(C.headline)if(C.description)if((p=C.actionButton&&g.n(C.actionButton,g.z$))&&p.navigationEndpoint){var N=this.api.getVideoData(2);if(N!=null)if(C.image&&C.image.thumbnail){var H=C.image.thumbnail.thumbnails;H!=null&&H.length>0&&g.Sy(g.dI(H[0].url))&&(H[0].url=N.profilePicture)}else g.eG(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.V.init(lq("ad-image"),C.image,V);this.W.init(lq("ad-text"), C.headline,V);this.S.init(lq("ad-text"),C.description,V);this.C.init(lq("button"),p,V);V=jJ(this.C.element);Cg(this.C.element,V+" This link opens in new tab");this.b_=p.navigationEndpoint;this.api.WE()||this.show();this.api.K().G("enable_larger_flyout_cta_on_desktop")&&(this.rV("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.rV("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.rV("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.rV("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.rV("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.rV("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.C.element.classList.add("ytp-flyout-cta-action-button-large"),this.C.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.rV("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.lZ.bind(this));this.Sa=C.startMs||0;i$(this)}else g.nm(Error("FlyoutCtaRenderer has no valid action button."));else g.nm(Error("FlyoutCtaRenderer has no description AdText."));else g.nm(Error("FlyoutCtaRenderer has no headline AdText."));else g.eG(Error("FlyoutCtaRenderer has no image."))}; g.h.onClick=function(p){dk.prototype.onClick.call(this,p);this.api.pauseVideo();!g.t2(this.C.element,p.target)&&this.b_&&(this.layoutId?this.l_.executeCommand(this.b_,this.layoutId):g.nm(Error("Missing layoutId for flyout cta.")))}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();(p&&p.current||this.vr)&&1E3*p.current>=this.Sa&&(h7(this),g.tk(this.element,"ytp-flyout-cta-inactive"),this.C.element.removeAttribute("tabIndex"))}}; g.h.NO=function(){this.clear()}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.lZ.bind(this))}; g.h.show=function(){this.C&&this.C.show();dk.prototype.show.call(this)}; g.h.hide=function(){this.C&&this.C.hide();dk.prototype.hide.call(this)}; g.h.lZ=function(p){p=="hidden"?this.show():this.hide()};g.m(T6,Kq);g.h=T6.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.T=C;if(this.T.rectangle)for(p=this.T.likeButton&&g.n(this.T.likeButton,vD),C=this.T.dislikeButton&&g.n(this.T.dislikeButton,vD),this.V.init(lq("toggle-button"),p,V),this.C.init(lq("toggle-button"),C,V),this.U(this.element,"change",this.gk),this.S.show(100),this.show(),V=g.F(this.T&&this.T.impressionCommands||[]),p=V.next();!p.done;p=V.next())p=p.value,this.layoutId?this.l_.executeCommand(p,this.layoutId):g.nm(Error("Missing layoutId for instream user sentiment."))}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.V.hide();this.C.hide();Kq.prototype.hide.call(this)}; g.h.show=function(){this.V.show();this.C.show();Kq.prototype.show.call(this)}; g.h.gk=function(){oca(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.Jk("onYtShowToast",this.T.postMessageAction);this.S.hide()}; g.h.onClick=function(p){this.Vn.length>0&&this.gk();Kq.prototype.onClick.call(this,p)};g.m(MN,g.Y);g.h=MN.prototype;g.h.CS=function(){this.reset();g.Y.prototype.CS.call(this)}; g.h.reset=function(){g.Am(this.S);this.Y=!1;this.T&&this.T.stop();this.W.stop();this.V&&(this.V=!1,this.D.play())}; g.h.start=function(){this.reset();this.S.U(this.C,"mouseover",this.Je,this);this.S.U(this.C,"mouseout",this.O4,this);this.a$&&(this.S.U(this.C,"focusin",this.Je,this),this.S.U(this.C,"focusout",this.O4,this));this.T?this.T.start():(this.Y=this.V=!0,g.K2(this.C,{opacity:this.Z}))}; g.h.Je=function(){this.V&&(this.V=!1,this.D.play());this.W.stop();this.T&&this.T.stop()}; g.h.O4=function(){this.Y?this.W.start():this.T&&this.T.start()}; g.h.TZ=function(){this.V||(this.V=!0,this.J.play(),this.Y=!0)};var Nqu=[new J7("b.f_",!1,0),new J7("j.s_",!1,2),new J7("r.s_",!1,4),new J7("e.h_",!1,6),new J7("i.s_",!0,8),new J7("s.t_",!1,10),new J7("p.h_",!1,12),new J7("s.i_",!1,14),new J7("f.i_",!1,16),new J7("a.b_",!1,18),new J7("a.o_",!1),new J7("g.o_",!1,22),new J7("p.i_",!1,24),new J7("p.m_",!1),new J7("i.k_",!0,28),new J7("n.k_",!0,20),new J7("i.f_",!1),new J7("a.s_",!0),new J7("m.c_",!1),new J7("n.h_",!1,26),new J7("o.p_",!1)].reduce(function(p,C){p[C.C]=C;return p},{});g.m(Z7,dk);g.h=Z7.prototype; g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);this.b_=C;(this.Sa=XWL(this))&&g.eG(Error("hasAdControlInClickCommands_ is true."));if(!C||g.k5(C))g.nm(Error("SkipButtonRenderer was not specified or empty."));else if(!C.message||g.k5(C.message))g.nm(Error("SkipButtonRenderer.message was not specified or empty."));else{p=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};C=RS(p);C==null?g.nm(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+p.iconType+".")): (this.S=new g.Sp({L:"button",i_:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],j:[{L:"span",B:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",j:[C]}]}),g.R(this,this.S),this.S.u_(this.V.element),this.C=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-skip-button-text"),this.W&&this.C.element.classList.add("ytp-ad-skip-button-text-centered"),this.C.init(lq("ad-text"),this.b_.message,V),g.R(this,this.C),Eo(this.S.element,this.C.element, 0));var N=N===void 0?null:N;V=this.api.K();!(this.Vn.length>0)&&V.C&&(rB?0:"ontouchstart"in document.documentElement&&(Oes()||Ze()))&&(this.rY(this.qo),N&&this.rY(N),this.Vn=[this.U(this.element,"touchstart",this.rp,this),this.U(this.element,"touchmove",this.I7,this),this.U(this.element,"touchend",this.xS,this)])}}; g.h.clear=function(){this.vr.reset();this.hide()}; g.h.hide=function(){this.V.hide();this.C&&this.C.hide();h7(this);dk.prototype.hide.call(this)}; g.h.onClick=function(p){if(this.S!=null){if(p){var C=p||window.event;C.returnValue=!1;C.preventDefault&&C.preventDefault()}var V;if(jpQ(p,{contentCpn:((V=this.api.getVideoData(1))==null?void 0:V.clientPlaybackNonce)||""})===0)this.api.Jk("onAbnormalityDetected");else if(dk.prototype.onClick.call(this,p),this.publish("j"),this.api.K().G("embeds_web_enable_ad_skipped_event_publishing")&&this.api.Jk("onAdSkip"),this.R$||!this.Sa)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.h.Iv=function(p){if(!this.R$)return this.Sa&&S2("SkipButton click commands not pruned while ALC exist"),p;var C,V=(C=g.n(p,g.Uu))==null?void 0:C.commands;if(!V)return p;p=[];for(C=0;C=this.W&&dpL(this,!0)};g.m(Ou,nq);Ou.prototype.init=function(p,C,V){nq.prototype.init.call(this,p,C,V);p=!1;C.text!=null&&(p=g.uq(C.text),p=!g.Sy(p));p?C.navigationEndpoint==null?g.eG(Error("No visit advertiser clickthrough provided in renderer,")):C.style!=="STYLE_UNKNOWN"?g.eG(Error("Button style was not a link-style type in renderer,")):this.show():g.eG(Error("No visit advertiser text was present in the renderer."))};g.m(y_,Kq); y_.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);p=C.text;g.Sy(DU(p))?g.eG(Error("SimpleAdBadgeRenderer has invalid or empty text")):(p&&p.text&&(C=p.text,this.V&&!this.C&&(C=this.api.K(),C=p.text+" "+(C&&C.C?"\u2022":"\u00b7")),C={text:C,isTemplated:p.isTemplated},p.style&&(C.style=p.style),p.targetId&&(C.targetId=p.targetId),p=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),p.init(lq("simple-ad-badge"),C,V),p.u_(this.element),g.R(this,p)),this.show())}; y_.prototype.clear=function(){this.hide()};g.m(qN,tO);g.m(I0,g.ca);g.h=I0.prototype;g.h.Z8=function(){return this.durationMs}; g.h.stop=function(){this.T&&this.qZ.rY(this.T)}; g.h.m6=function(p){this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:p.current};this.publish("h")}; g.h.getProgressState=function(){return this.C}; g.h.V0=function(p){g.u$(p,2)&&this.publish("g")};g.m(b$,g.ca);g.h=b$.prototype;g.h.Z8=function(){return this.durationMs}; g.h.start=function(){this.T||(this.T=!0,this.Yt.start())}; g.h.stop=function(){this.T&&(this.T=!1,this.Yt.stop())}; g.h.m6=function(){this.Xg+=100;var p=!1;this.Xg>this.durationMs&&(this.Xg=this.durationMs,this.Yt.stop(),p=!0);this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Xg/1E3};this.publish("h");p&&this.publish("g")}; g.h.getProgressState=function(){return this.C};g.m(kU,dk);g.h=kU.prototype;g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);var N;if(C==null?0:(N=C.templatedCountdown)==null?0:N.templatedAdText){p=C.templatedCountdown.templatedAdText;if(!p.isTemplated){g.eG(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.C=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);this.C.init(lq("ad-text"),p,{});this.C.u_(this.element);g.R(this,this.C)}this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){h7(this);dk.prototype.hide.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T!=null){var p=this.T.getProgressState();if(p!=null&&p.current!=null&&this.C){var C=this.T instanceof I0?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:p.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof b$?p.seekableEnd:this.api.getDuration(2,!1);p=p.current;C=this.api.K().experiments.OY("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(C-p,0):C-p;XK(this.C,{FORMATTED_AD_DURATION_REMAINING:String(g.A7(C)), TIME_REMAINING:String(Math.ceil(C))})}}}; g.h.show=function(){i$(this);dk.prototype.show.call(this)};g.m(xU,HE);xU.prototype.onClick=function(p){HE.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType)};g.m(z6,Kq);z6.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(p=C.content){g.ce(this.element,p);var V,N;C=((V=C.interaction)==null?void 0:(N=V.accessibility)==null?void 0:N.label)||p;this.element.setAttribute("aria-label",C)}else g.nm(Error("AdSimpleAttributedString does not have text content"))}; z6.prototype.clear=function(){this.hide()}; z6.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p)};g.m(R0,Kq); R0.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});(p=C.label)&&p.content&&!g.Sy(p.content)?(this.adBadgeText.init(lq("ad-simple-attributed-string"),new YU(p)),(C=C.adPodIndex)&&C.content&&!g.Sy(C.content)&&(this.T=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),this.T.u_(this.element),g.R(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(lq("ad-simple-attributed-string"),new YU(C))),this.element.classList.add(this.C?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.nm(Error("No label is returned in AdBadgeViewModel."))}; R0.prototype.show=function(){this.adBadgeText.show();var p;(p=this.T)==null||p.show();Kq.prototype.show.call(this)}; R0.prototype.hide=function(){this.adBadgeText.hide();var p;(p=this.T)==null||p.hide();Kq.prototype.hide.call(this)};g.m(nt,Kq); nt.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});(p=C.adPodIndex)&&p.content&&!g.Sy(p.content)&&(this.T=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),this.T.u_(this.element),g.R(this,this.T),this.T.init(lq("ad-simple-attributed-string"),new YU(p)),(this.api.K().G("clean_player_style_fix_on_web")?C.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.C||C.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); this.element.classList.add("ytp-ad-pod-index--stark");this.api.G("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; nt.prototype.show=function(){var p;(p=this.T)==null||p.show();Kq.prototype.show.call(this)}; nt.prototype.hide=function(){var p;(p=this.T)==null||p.hide();Kq.prototype.hide.call(this)};g.m(e2,Kq); e2.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(C!=null&&C.text){var V;if(((V=C.text)==null?0:V.content)&&!g.Sy(C.text.content)){this.T=new g.Sp({L:"div",B:"ytp-ad-disclosure-banner__text",Ak:C.text.content});g.R(this,this.T);this.T.u_(this.element);var N,H;p=((N=C.interaction)==null?void 0:(H=N.accessibility)==null?void 0:H.label)||C.text.content;this.element.setAttribute("aria-label",p);var X;if((X=C.interaction)==null?0:X.onTap)this.C=new g.Sp({L:"div",B:"ytp-ad-disclosure-banner__chevron",j:[g.Oy()]}), g.R(this,this.C),this.C.u_(this.element);this.show()}}else g.nm(Error("No banner text found in AdDisclosureBanner."))}; e2.prototype.clear=function(){this.hide()};PE.prototype.getLength=function(){return this.T-this.C};g.m($U,g.Sp);$U.prototype.m6=function(){var p=this.C.getProgressState(),C=p.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.K().G("show_preskip_progress_bar_for_skippable_ads")&&(C=this.V?this.V/1E3:p.seekableEnd);p=wk(new PE(p.seekableStart,C),p.current,0);this.progressBar.style.width=p*100+"%"}; $U.prototype.onStateChange=function(){g.yj(this.api.K())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.C.subscribe("h",this.m6,this),this.m6()):this.T!==-1&&(this.hide(),this.C.zW(this.T),this.T=-1))};g.m(Lt,Kq); Lt.prototype.init=function(p,C,V,N){Kq.prototype.init.call(this,p,C,V);V=!0;if(C.skipOrPreviewRenderer){var H=C.skipOrPreviewRenderer;p=g.n(H,JV);H=g.n(H,Yr);p?(H=new ft(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C,this.b_),H.u_(this.Z),H.init(lq("skip-button"),p,this.macros),g.R(this,H)):H&&!this.api.K().experiments.OY("disable_ad_preview_for_instream_ads")&&(p=new l$(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C,!1),p.u_(this.Z),p.init(lq("ad-preview"),H, this.macros),t7(p),g.R(this,p));if(p=g.n(C.skipOrPreviewRenderer,JV)){V=!1;var X=p.skipOffsetMilliseconds}}C.brandInteractionRenderer&&(p=C.brandInteractionRenderer.brandInteractionRenderer,H=new T6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),H.u_(this.vr),H.init(lq("instream-user-sentiment"),p,this.macros),g.R(this,H));if(p=g.n(C,$cP))if(p=g.n(p,$cP))H=new cE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C,!!C.showWithoutLinkedMediaLayout),g.R(this,H), H.u_(this.W),H.init(lq("flyout-cta"),p,this.macros);p=(this.api.K().G("disable_ad_duration_remaining_for_instream_video_ads")||C.adPodIndex!==void 0)&&!1;N=N&&N.videoAdDurationSeconds;if(C.adBadgeRenderer){var d=C.adBadgeRenderer;H=g.n(d,LD);H!=null?(d=new R0(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,p),g.R(this,d),d.u_(this.T),d.init(lq("ad-badge"),H,this.macros),this.V=d.element):(H=d.simpleAdBadgeRenderer,H==null&&(H={text:{text:"An\u00fancio",isTemplated:!1}}),d=new y_(this.api, this.layoutId,this.interactionLoggingClientData,this.l_,!0),g.R(this,d),d.u_(this.T),d.init(lq("simple-ad-badge"),H,this.macros))}C.adPodIndex&&(H=g.n(C.adPodIndex,jf1),H!=null&&(V=new nt(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,V),g.R(this,V),V.u_(this.T),V.init(lq("ad-pod-index"),H)));C.adDurationRemaining&&!C.showWithoutLinkedMediaLayout&&(V=C.adDurationRemaining.adDurationRemainingRenderer,V==null&&(V={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}", isTemplated:!0}}}),N=new kU(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C,N,p),g.R(this,N),N.u_(this.T),N.init(lq("ad-duration-remaining"),V,this.macros),p&&N.element.classList.add("ytp-ad-duration-remaining-autohide"));C.adInfoRenderer&&(N=g.n(C.adInfoRenderer,xr))&&(V=new NN(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.element,void 0,p),g.R(this,V),this.api.K().G("enable_ad_pod_index_autohide")&&this.V!==null?this.T.insertBefore(V.element,this.V.nextSibling): V.u_(this.T),V.init(lq("ad-info-hover-text-button"),N,this.macros));C.visitAdvertiserRenderer&&(V=g.n(C.visitAdvertiserRenderer,g.z$))&&(H=spa(this)&&this.S?this.S:this.T)&&(N=new Ou(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,N),N.u_(H),N.init(lq("visit-advertiser"),V,this.macros),Go(N.element),V=jJ(N.element),Cg(N.element,V+" This link opens in new tab"));!(N=this.api.K())||g.fI(N)||N.controlsType!="3"&&!N.disableOrganicUi||(X=new $U(this.api,this.C,X,p),X.u_(this.Ga), g.R(this,X));C.adDisclosureBannerRenderer&&(C=g.n(C.adDisclosureBannerRenderer,Crp))&&(X=new e2(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),X.u_(this.Sa),X.init(lq("ad-disclosure-banner"),C),g.R(this,X));this.api.K().G("enable_updated_html5_player_focus_style")&&g.Ed(this.element,"ytp-ad-player-overlay-updated-focus-style");p&&this.api.K().C&&this.T.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; Lt.prototype.clear=function(){this.hide()};rk.prototype.set=function(p,C,V){V=V!==void 0?Date.now()+V:void 0;this.T.set(p,C,V)}; rk.prototype.get=function(p){return this.T.get(p)}; rk.prototype.remove=function(p){this.T.remove(p)};var CS=null,ji=null,VQ=null,Tqv=null;g.YH("yt.www.ads.eventcache.getLastCompanionData",function(){return CS}); g.YH("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.YH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return ji}); g.YH("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return VQ}); g.YH("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Tqv});var J1v=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);NQ.prototype.handleResponse=function(p,C){if(!C)throw Error("request needs to be passed into ConsistencyService");var V,N;C=((V=C.dj.context)==null?void 0:(N=V.request)==null?void 0:N.consistencyTokenJars)||[];var H;(p=(H=p.responseContext)==null?void 0:H.consistencyTokenJar)&&this.replace(C,p)}; NQ.prototype.replace=function(p,C){p=g.F(p);for(var V=p.next();!V.done;V=p.next())delete this.T[V.value.encryptedTokenJarContents];vtu(this,C)};var lBY=window.location.hostname.split(".").slice(-2).join("."),UU;XX.getInstance=function(){UU=g.zV("yt.clientLocationService.instance");UU||(UU=new XX,g.YH("yt.clientLocationService.instance",UU));return UU}; g.h=XX.prototype; g.h.setLocationOnInnerTubeContext=function(p){p.client||(p.client={});if(this.T)p.client.locationInfo||(p.client.locationInfo={}),p.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),p.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),p.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),p.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.V||this.locationPlayabilityToken)p.client.locationPlayabilityToken=this.V|| this.locationPlayabilityToken}; g.h.handleResponse=function(p){var C;p=(C=p.responseContext)==null?void 0:C.locationPlayabilityToken;p!==void 0&&(this.locationPlayabilityToken=p,this.T=void 0,g.pO("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Hh(this))&&this.localStorage.set("yt-location-playability-token",p,15552E3):g.nO("YT_CL",JSON.stringify({loctok:p}),15552E3,lBY,!0))}; g.h.clearLocationPlayabilityToken=function(p){p==="TVHTML5"?(this.localStorage=Hh(this))&&this.localStorage.remove("yt-location-playability-token"):g.Pd("YT_CL");this.V=void 0;this.C!==-1&&(clearTimeout(this.C),this.C=-1)}; g.h.getCurrentPositionFromGeolocation=function(){var p=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var C=!1,V=1E4;g.pO("INNERTUBE_CLIENT_NAME")==="MWEB"&&(C=!0,V=15E3);return new Promise(function(N,H){navigator.geolocation.getCurrentPosition(function(X){p.T=X;N(X)},function(X){H(X)},{enableHighAccuracy:C, maximumAge:0,timeout:V})})}; g.h.createUnpluggedLocationInfo=function(p){var C={};p=p.coords;if(p==null?0:p.latitude)C.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)C.longitudeE7=Math.floor(p.longitude*1E7);if(p==null?0:p.accuracy)C.locationRadiusMeters=Math.round(p.accuracy);return C}; g.h.createLocationInfo=function(p){var C={};p=p.coords;if(p==null?0:p.latitude)C.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)C.longitudeE7=Math.floor(p.longitude*1E7);return C};g.h=u2v.prototype;g.h.contains=function(p){return Object.prototype.hasOwnProperty.call(this.T,p)}; g.h.get=function(p){if(this.contains(p))return this.T[p]}; g.h.set=function(p,C){this.T[p]=C}; g.h.Ei=function(){return Object.keys(this.T)}; g.h.remove=function(p){delete this.T[p]};Un.prototype.getModuleId=function(p){return p.serviceId.getModuleId()}; Un.prototype.get=function(p){a:{var C=this.mappings.get(p.toString());switch(C.type){case "mapping":p=C.value;break a;case "factory":C=C.value();this.mappings.set(p.toString(),{type:"mapping",value:C});p=C;break a;default:p=N1(C)}}return p}; Un.prototype.registerService=function(p,C){this.mappings.set(p.toString(),{type:"mapping",value:C});return p}; new Un;var fM={},Z3Q=(fM.WEB_UNPLUGGED="^unplugged/",fM.WEB_UNPLUGGED_ONBOARDING="^unplugged/",fM.WEB_UNPLUGGED_OPS="^unplugged/",fM.WEB_UNPLUGGED_PUBLIC="^unplugged/",fM.WEB_CREATOR="^creator/",fM.WEB_KIDS="^kids/",fM.WEB_EXPERIMENTS="^experiments/",fM.WEB_MUSIC="^music/",fM.WEB_REMIX="^music/",fM.WEB_MUSIC_EMBEDDED_PLAYER="^music/",fM.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",fM);yQ.prototype.W=function(p,C,V){C=C===void 0?{}:C;V=V===void 0?Me:V;var N={context:g.Za(p.clickTrackingParams,!1,this.S)};var H=this.C(p);if(H){this.T(N,H,C);var X;C=g.On(this.V());(H=(X=g.n(p.commandMetadata,g.mm))==null?void 0:X.apiUrl)&&(C=H);X=KOv(wm(C));p=Object.assign({},{command:p},void 0);N={input:X,Vt:$D(X),dj:N,config:p};N.config.LA?N.config.LA.identity=V:N.config.LA={identity:V};return N}g.nm(new g.Bw("Error: Failed to create Request from Command.",p))}; g.Xe.Object.defineProperties(yQ.prototype,{S:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.m(qQ,yQ);g.m(ID,qQ);ID.prototype.W=function(){return{input:"/getDatasyncIdsEndpoint",Vt:$D("/getDatasyncIdsEndpoint","GET"),dj:{}}}; ID.prototype.V=function(){return[]}; ID.prototype.C=function(){}; ID.prototype.T=function(){};var tnY={},XCy=(tnY.GET_DATASYNC_IDS=fS(ID),tnY);var OU={},cc5=(OU["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",OU["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",OU["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",OU["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",OU["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",OU["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",OU["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", OU["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",OU["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",OU["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",OU["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",OU["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",OU["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",OU["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",OU["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", OU["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",OU["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",OU["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",OU["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",OU["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",OU["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",OU["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", OU["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",OU.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",OU["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",OU["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",OU["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",OU["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",OU["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",OU["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", OU["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",OU["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",OU["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",OU["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",OU["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",OU["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",OU["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",OU["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",OU["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",OU["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",OU.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",OU["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",OU["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",OU["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",OU["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",OU["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",OU["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",OU["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",OU["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",OU["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",OU["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",OU["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",OU["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",OU["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",OU["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",OU["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",OU["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",OU["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",OU["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",OU["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",OU["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",OU["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", OU["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",OU["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",OU["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",OU["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",OU["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",OU["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",OU["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",OU["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",OU["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", OU["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",OU["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",OU["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",OU["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",OU["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",OU["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",OU["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",OU["video.translations"]= "LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",OU),yH={},b3X=(yH.auto_search="LATENCY_ACTION_AUTO_SEARCH",yH.ad_to_ad="LATENCY_ACTION_AD_TO_AD",yH.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",yH.app_startup="LATENCY_ACTION_APP_STARTUP",yH.browse="LATENCY_ACTION_BROWSE",yH.cast_splash="LATENCY_ACTION_CAST_SPLASH",yH.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",yH.channels="LATENCY_ACTION_CHANNELS",yH.chips="LATENCY_ACTION_CHIPS",yH.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",yH.direct_playback= "LATENCY_ACTION_DIRECT_PLAYBACK",yH.editor="LATENCY_ACTION_EDITOR",yH.embed="LATENCY_ACTION_EMBED",yH.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",yH.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",yH.explore="LATENCY_ACTION_EXPLORE",yH.favorites="LATENCY_ACTION_FAVORITES",yH.home="LATENCY_ACTION_HOME",yH.inboarding="LATENCY_ACTION_INBOARDING",yH.library="LATENCY_ACTION_LIBRARY",yH.live="LATENCY_ACTION_LIVE",yH.live_pagination="LATENCY_ACTION_LIVE_PAGINATION", yH.management="LATENCY_ACTION_MANAGEMENT",yH.mini_app="LATENCY_ACTION_MINI_APP_PLAY",yH.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",yH.onboarding="LATENCY_ACTION_ONBOARDING",yH.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",yH.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",yH.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",yH.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",yH.prebuffer="LATENCY_ACTION_PREBUFFER",yH.prefetch= "LATENCY_ACTION_PREFETCH",yH.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",yH.profile_switcher="LATENCY_ACTION_LOGIN",yH.projects="LATENCY_ACTION_PROJECTS",yH.reel_watch="LATENCY_ACTION_REEL_WATCH",yH.results="LATENCY_ACTION_RESULTS",yH.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",yH.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",yH.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",yH.review="LATENCY_ACTION_REVIEW",yH.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",yH.search_ui= "LATENCY_ACTION_SEARCH_UI",yH.search_suggest="LATENCY_ACTION_SUGGEST",yH.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",yH.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",yH.seek="LATENCY_ACTION_PLAYER_SEEK",yH.settings="LATENCY_ACTION_SETTINGS",yH.store="LATENCY_ACTION_STORE",yH.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",yH.tenx="LATENCY_ACTION_TENX",yH.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",yH.watch="LATENCY_ACTION_WATCH",yH.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN", yH["watch,watch7"]="LATENCY_ACTION_WATCH",yH["watch,watch7_html5"]="LATENCY_ACTION_WATCH",yH["watch,watch7ad"]="LATENCY_ACTION_WATCH",yH["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",yH.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",yH.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",yH.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",yH.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",yH.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",yH.gel_compression="LATENCY_ACTION_GEL_COMPRESSION", yH.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",yH.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",yH);Object.assign(b3X,cc5);g.m(nS,uR);var gtL=new OX("aft-recorded",nS);var Twc=g.xH.ytLoggingGelSequenceIdObj_||{};g.YH("ytLoggingGelSequenceIdObj_",Twc);var w3=g.xH.ytLoggingLatencyUsageStats_||{};g.YH("ytLoggingLatencyUsageStats_",w3);ei.prototype.tick=function(p,C,V,N){$i(this,"tick_"+p+"_"+C)||g.t1("latencyActionTicked",{tickName:p,clientActionNonce:C},{timestamp:V,cttAuthInfo:N})}; ei.prototype.info=function(p,C,V){var N=Object.keys(p).join("");$i(this,"info_"+N+"_"+C)||(p=Object.assign({},p),p.clientActionNonce=C,g.t1("latencyActionInfo",p,{cttAuthInfo:V}))}; ei.prototype.jspbInfo=function(p,C,V){for(var N="",H=0;H<$V(p).length;H++)$V(p)[H]!==void 0&&(N=H===0?N.concat(""+H):N.concat("_"+H));if(!$i(this,"info_"+N+"_"+C)){mM(p,2,C);V={cttAuthInfo:V};C=g.Zr("jspb_sparse_encoded_pivot")?new W6([{}]):new W6;p!=null?vT(p,P6):p=void 0;jq(C,7,JB0,p);V=V===void 0?{}:V;p=!1;g.pO("ytLoggingEventsDefaultDisabled",!1)&&(p=!0);p=p?null:g.sI;V=V===void 0?{}:V;N=Math.round(V.timestamp||(0,g.Ip)());JP(C,1,N=H.length?(C.append(H),p-=H.length):p?(C.append(new Uint8Array(H.buffer,H.byteOffset,p)),V.append(new Uint8Array(H.buffer,H.byteOffset+p,H.length-p)),p=0):V.append(H);return{Yd:C,LM:V}}; g.h.isFocused=function(p){return p>=this.jH&&p=64&&(this.Y.set(p.subarray(0,64-this.C),this.C),C=64-this.C,this.C=0,Lea(this,this.Y,0));for(;C+64<=V;C+=64)Lea(this,p,C);C=this.start&&(p=2&&V.ssdaiAdsConfig&&S2("Unexpected ad placement renderers length",p.slot,null,{length:N.length});N.some(function(H){var X,d,a,E;return!!((X=H.renderer)==null?0:(d=X.linearAdSequenceRenderer)==null?0:(a=d.linearAds)==null?0:a.length)||!((E=H.renderer)==null||!E.instreamVideoAdRenderer)})||sWV(p)})}; ty.prototype.U9=function(){QhS(this.T)};c8.prototype.BO=function(){var p=this;WdQ(this.C,function(){var C=Ef(p.slot.clientMetadata,"metadata_type_ad_break_request_data");return C.cueProcessedMs?p.T.get().fetch({W5:C.getAdBreakUrl,mJ:new g.sz(C.cS,C.qS),cueProcessedMs:C.cueProcessedMs}):p.T.get().fetch({W5:C.getAdBreakUrl,mJ:new g.sz(C.cS,C.qS)})})}; c8.prototype.U9=function(){QhS(this.C)};Tl.prototype.BO=function(){var p=this.slot.clientMetadata,C,V=(C=this.slot.fulfilledLayout)!=null?C:Ef(p,"metadata_type_fulfilled_layout");f9Q(this.callback,this.slot,V)}; Tl.prototype.U9=function(){uH(this.callback,this.slot,new G("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")};Jy.prototype.build=function(p,C){return C.fulfilledLayout||Mo(C,{a6:["metadata_type_fulfilled_layout"]})?new Tl(p,C):this.V(p,C)};g.m(mk,Jy); mk.prototype.V=function(p,C){if(Mo(C,{a6:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new ty(p,C,this.T,this.C,this.Mt,this.x_,this.No,this.mx,this.kG);if(Mo(C,{a6:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new c8(p,C,this.T,this.C,this.Mt,this.x_);throw new G("Unsupported slot with type: "+C.slotType+" and client metadata: "+lH(C.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.m(v8,Jy);v8.prototype.V=function(p,C){throw new G("Unsupported slot with type: "+C.slotType+" and client metadata: "+lH(C.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.h=aES.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(p){if(p.layoutId!==this.layout.layoutId)this.callback.OV(this.slot,p,new sf("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 C=Ef(p.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.gy(this.slot,p),ZSV(this.V, this.slot,C)):S2("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,p)}}; g.h.XO=function(p,C){p.layoutId!==this.layout.layoutId?this.callback.OV(this.slot,p,new sf("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.C1(this.slot,p,C),lEV(this),tGY(this))};g.m(uG,g.ca);g.h=uG.prototype;g.h.Bc=function(){return this.C.slot}; g.h.De=function(){return this.C.layout}; g.h.init=function(){this.V.get().addListener(this)}; g.h.release=function(){this.V.get().removeListener(this);this.dispose()}; g.h.lI=function(){}; g.h.UB=function(){}; g.h.tL=function(){}; g.h.N8=function(){}; g.h.startRendering=function(p){var C=this;Dl(this.C,p,function(){return void C.h3()})}; g.h.h3=function(){this.V.get().h3(this.T)}; g.h.XO=function(p,C){var V=this;Dl(this.C,p,function(){var N=V.V.get();ILs(N,V.T,3);V.T=[];V.callback.C1(V.slot,p,C)})}; g.h.CS=function(){this.V.fS()||this.V.get().removeListener(this);g.ca.prototype.CS.call(this)}; g.Xe.Object.defineProperties(uG.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.C.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.C.layout}}});bG.prototype.pO=function(p,C){C=C===void 0?!1:C;var V=(this.V.get(p)||[]).concat();if(C=C&&MGy(p)){var N=this.V.get(C);N&&V.push.apply(V,g.K(N))}ku(this,p,V);this.T.add(p);C&&this.T.add(C)}; bG.prototype.tQ=function(p,C){C=C===void 0?!1:C;if(!this.T.has(p)){var V=C&&MGy(p);V&&(C=!this.T.has(V));this.pO(p,C)}};g.m(vGa,tO);g.m(ns,uG);g.h=ns.prototype;g.h.Mg=function(p,C){Oz("ads-engagement-panel-layout",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,m$),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(C,V,N,H,X){return new vGa(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(SKu,tO);g.m(eY,uG);g.h=eY.prototype;g.h.Mg=function(p,C){Oz("banner-image",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,MB),this.callback,"metadata_type_banner_image_layout_view_model",function(C,V,N,H,X){return new SKu(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(P8,tO);g.m(wn,uG);g.h=wn.prototype;g.h.Mg=function(p,C){Oz("action-companion",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,tM),this.callback,"metadata_type_action_companion_ad_renderer",function(C,V,N,H,X){return new P8(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){C.layoutId===this.layout.layoutId?this.gV.tQ("impression"):this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(uIe,tO);g.m($u,uG);g.h=$u.prototype;g.h.Mg=function(p,C){Oz("image-companion",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,cP),this.callback,"metadata_type_image_companion_ad_renderer",function(C,V,N,H,X){return new uIe(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){C.layoutId===this.layout.layoutId?this.gV.tQ("impression"):this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(UYe,tO);g.m(Ls,uG);g.h=Ls.prototype;g.h.Mg=function(p,C){Oz("shopping-companion",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(C,V,N,H,X){return new UYe(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){C.layoutId===this.layout.layoutId?this.gV.tQ("impression"):this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(W8,uG);g.h=W8.prototype;g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(C,V,N,H,X){return new P8(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)}; g.h.Mg=function(){};g.h=bme.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){this.mx.get().addListener(this);this.mx.get().xW.push(this);var p=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),C=Ef(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");y6(this.layout.y$)&&NE(this.AQ.get(),this.layout.layoutId,{Yn:C,s7:p,listener:this})}; g.h.release=function(){this.mx.get().removeListener(this);ZQY(this.mx.get(),this);y6(this.layout.y$)&&Hq(this.AQ.get(),this.layout.layoutId)}; g.h.startRendering=function(p){this.callback.gy(this.slot,p)}; g.h.XO=function(p,C){BDL(this.x_.get())&&!this.T&&(this.gV.tQ("abandon"),this.T=!0);this.callback.C1(this.slot,p,C)}; g.h.vz=function(p){switch(p.id){case "part2viewed":this.gV.tQ("start");this.gV.tQ("impression");break;case "videoplaytime25":this.gV.tQ("first_quartile");break;case "videoplaytime50":this.gV.tQ("midpoint");break;case "videoplaytime75":this.gV.tQ("third_quartile");break;case "videoplaytime100":BDL(this.x_.get())?this.T||(this.gV.tQ("complete"),this.T=!0):this.gV.tQ("complete");Rj(this.gV)&&Yu(this.gV,Infinity,!0);Gsa(this.x_.get())&&gn(this.C,Infinity,!0);break;case "engagedview":Rj(this.gV)||this.gV.tQ("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:S2("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.gx=function(){}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.onFullscreenToggled=function(){}; g.h.Ld=function(){}; g.h.Eu=function(){}; g.h.EU=function(p){Gsa(this.x_.get())&&gn(this.C,p*1E3,!1);Rj(this.gV)&&Yu(this.gV,p*1E3,!1)}; g.h.Wz=function(){}; g.h.sA=function(){this.gV.tQ("active_view_measurable")}; g.h.Iy=function(){this.gV.tQ("active_view_viewable")}; g.h.Ao=function(){this.gV.tQ("active_view_fully_viewable_audible_half_duration")}; g.h.Cr=function(){this.gV.tQ("audio_measurable")}; g.h.bN=function(){this.gV.tQ("audio_audible")};g.m(Q6,uG);g.h=Q6.prototype;g.h.init=function(){uG.prototype.init.call(this);var p=Ef(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),C={adsClientData:this.layout.eb};this.T.push(new qN(p,this.layout.layoutId,Ef(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),C,!0))}; g.h.nt=function(){this.S||this.mx.get().resumeVideo(1)}; g.h.startRendering=function(p){uG.prototype.startRendering.call(this,p);Em(this.mx.get(),"ad-showing");this.callback.gy(this.slot,p);this.W.R0=this}; g.h.XO=function(p,C){uG.prototype.XO.call(this,p,C);lM(this.mx.get(),"ad-showing");Q0(this.W,this)}; g.h.Mg=function(p){switch(p){case "ad-info-icon-button":(this.S=this.mx.get().Hp(1))||this.mx.get().pauseVideo();break;case "visit-advertiser":this.mx.get().pauseVideo()}}; g.h.CS=function(){uG.prototype.CS.call(this)};g.m(rn,tO);g.m(B8,uG);g.h=B8.prototype;g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(C,V,N,H,X){return new rn(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)}; g.h.Mg=function(){};g.m(Gl,tO);g.m(pR,uG);pR.prototype.init=function(){uG.prototype.init.call(this);this.T.push(new Gl(g.n(this.layout.renderingContent,Id),this.layout.layoutId,{adsClientData:this.layout.eb}))}; pR.prototype.Mg=function(){q3(this.S.get(),this.W)&&fs(this.No.get(),3)}; pR.prototype.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; pR.prototype.CS=function(){uG.prototype.CS.call(this)};g.m(CR,tO);g.m(j9,uG);j9.prototype.init=function(){uG.prototype.init.call(this);var p=g.n(this.layout.renderingContent,cB)||Ef(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),C=Zl(this.gV);this.T.push(new CR(p,C,this.layout.layoutId,{adsClientData:this.layout.eb},!0,!0))}; j9.prototype.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; j9.prototype.Mg=function(p,C){if(C===this.layout.layoutId)switch(p){case "skip-button":var V;(p=(V=Ef(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:V.current)&&p.Pe(this.Bc(),this.layout)}}; j9.prototype.CS=function(){uG.prototype.CS.call(this)};ND.prototype.build=function(p,C,V,N){if(Vu(N,{a6:["metadata_type_ad_break_response_data"],OO:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new aES(p,V,N,this.C,this.V,this.T);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.m(kjX,tO);g.m(HB,uG);g.h=HB.prototype;g.h.Mg=function(p,C){Oz("ads-engagement-panel",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,T$),this.callback,"metadata_type_ads_engagement_panel_renderer",function(C,V,N,H,X){return new kjX(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){C.layoutId===this.layout.layoutId?this.gV.tQ("impression"):this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(XN,uG);g.h=XN.prototype;g.h.Mg=function(p,C){Oz("top-banner-image-text-icon-buttoned",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,JM),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(C,V,N,H,X){return new rn(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};zYQ.prototype.build=function(p,C,V,N){if(Vu(N,xYV())||g.n(N.renderingContent,T$)!==void 0)return new HB(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,DY1())||g.n(N.renderingContent,tM)!==void 0)return new wn(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,Zme())||g.n(N.renderingContent,cP)!==void 0)return new $u(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,fEy()))return new Ls(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,IEX()))return new W8(p,V,N,this.MW,this.No,this.oH, this.AQ,this.T);if(Vu(N,KhH())||g.n(N.renderingContent,MB)!==void 0)return new eY(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,YKL())||g.n(N.renderingContent,JM)!==void 0)return new XN(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,AGe()))return new B8(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,Fhs())||g.n(N.renderingContent,m$)!==void 0)return new ns(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+ lH(N.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};RYS.prototype.build=function(p,C,V,N){if(Vu(N,{a6:["metadata_type_linked_player_bytes_layout_id"],OO:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new pR(p,V,N,this.MW,this.No,this.T);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.h=nGy.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(p){p.layoutId!==this.layout.layoutId?this.callback.OV(this.slot,p,new sf("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.gy(this.slot,p),this.gV.tQ("impression"),NV(this.u0,p,"normal"))}; g.h.XO=function(p,C){p.layoutId!==this.layout.layoutId?this.callback.OV(this.slot,p,new sf("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.C1(this.slot,p,C)};g.h=Pzy.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(p){p.layoutId!==this.layout.layoutId?this.callback.OV(this.slot,p,new sf("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.gy(this.slot,p),this.gV.tQ("impression"),NV(this.u0,p,"normal"))}; g.h.XO=function(p,C){p.layoutId!==this.layout.layoutId?this.callback.OV(this.slot,p,new sf("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.C1(this.slot,p,C)};dO.prototype.build=function(p,C,V,N){if(!this.x_.get().N.K().G("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Vu(N,eYs()))return new nGy(p,V,N,this.No,this.u0)}else if(Vu(N,{a6:[],OO:["LAYOUT_TYPE_FORECASTING"]}))return new Pzy(p,V,N,this.No,this.u0);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.m(LhY,tO);g.m(iv,uG);g.h=iv.prototype;g.h.init=function(){uG.prototype.init.call(this);var p=g.n(this.layout.renderingContent,tn)||Ef(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),C={adsClientData:this.layout.eb};this.T.push(new LhY(p,Ef(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,C))}; g.h.nt=function(){this.S||this.mx.get().resumeVideo(2)}; g.h.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p);this.W.R0=this}; g.h.XO=function(p,C){uG.prototype.XO.call(this,p,C);Q0(this.W,this)}; g.h.Mg=function(p){if(q3(this.Y.get(),this.D))switch(p){case "visit-advertiser-link":fs(this.No.get(),3)}switch(p){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.S||this.mx.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.S=this.mx.get().Hp(2))||this.mx.get().pauseVideo();break;case "visit-advertiser-link":this.mx.get().pauseVideo();gG1(this).qV();break;case "skip-button":if(p=gG1(this), this.layout.renderingContent&&!dt(this.layout.clientMetadata,"metadata_type_dai")||!p.dM){var C;(p=(C=Ef(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:C.current)&&p.Pe(this.Bc(),this.layout)}else S2("Requesting to skip by LegacyPlayerBytes when components enabled"),p.m5(this.Bc(),this.layout)}}; g.h.CS=function(){uG.prototype.CS.call(this)};g.m(hn,uG);g.h=hn.prototype;g.h.init=function(){uG.prototype.init.call(this);var p=g.n(this.layout.renderingContent,lv)||Ef(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),C={adsClientData:this.layout.eb},V;(V=!!this.layout.renderingContent)||(V=!sN(this).dM);this.T.push(new qN(p,this.layout.layoutId,Ef(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),C,V))}; g.h.nt=function(){this.S||this.mx.get().resumeVideo(2)}; g.h.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p);this.W.R0=this}; g.h.XO=function(p,C){uG.prototype.XO.call(this,p,C);Q0(this.W,this)}; g.h.Mg=function(p){if(q3(this.Y.get(),this.D))switch(p){case "visit-advertiser":fs(this.No.get(),3)}switch(p){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.S||this.mx.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.S=this.mx.get().Hp(2))||this.mx.get().pauseVideo();break;case "visit-advertiser":this.mx.get().pauseVideo();sN(this).qV();break;case "skip-button":if(p=sN(this),this.layout.renderingContent&& !dt(this.layout.clientMetadata,"metadata_type_dai")||!p.dM){var C;(p=(C=Ef(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:C.current)&&p.Pe(this.Bc(),this.layout)}else S2("Requesting to skip by LegacyPlayerBytes"),p.m5(this.Bc(),this.layout)}}; g.h.CS=function(){uG.prototype.CS.call(this)};g.m(QWX,tO);g.m(ar,uG);g.h=ar.prototype;g.h.startRendering=function(p){var C=this;Dl(this.C,p,function(){C.T.push(new QWX(Ef(C.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),p.layoutId,p.eb));C.h3();C.callback.gy(C.slot,p);g.r(V0(C.mx.get(),1),512)&&C.callback.OV(C.Bc(),C.De(),new sf("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.h.Eu=function(){}; g.h.Ld=function(p){if(p.state.isError()){var C;this.callback.OV(this.Bc(),this.De(),new sf("A player error happened during adNotify",{playerErrorCode:(C=p.state.UE)==null?void 0:C.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.h.onFullscreenToggled=function(){}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.gx=function(){}; g.h.onVolumeChange=function(){}; g.h.vz=function(){}; g.h.Wz=function(){}; g.h.Mg=function(){};g.m(B7V,tO);g.m(EN,uG);EN.prototype.init=function(){uG.prototype.init.call(this);var p=g.n(this.layout.renderingContent,Tx),C=Zl(this.gV);this.T.push(new B7V(p,C,this.layout.layoutId,{adsClientData:this.layout.eb}))}; EN.prototype.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; EN.prototype.Mg=function(p,C){if(C===this.layout.layoutId)switch(p){case "skip-button":var V;(p=(V=Ef(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:V.current)&&p.Pe(this.Bc(),this.layout)}}; EN.prototype.CS=function(){uG.prototype.CS.call(this)};Gjj.prototype.build=function(p,C,V,N){if(p=MD(p,V,N,this.MW,this.mx,this.No,this.C,this.T,this.x_))return p;throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.h=paX.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){this.mx.get().addListener(this);this.mx.get().xW.push(this);var p=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),C=Ef(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),V=Ef(this.layout.clientMetadata,"metadata_type_active_view_identifier");y6(this.layout.y$)&&NE(this.AQ.get(),this.layout.layoutId,{Yn:C,s7:p,listener:this,tG:V})}; g.h.release=function(){this.mx.get().removeListener(this);ZQY(this.mx.get(),this);y6(this.layout.y$)&&Hq(this.AQ.get(),this.layout.layoutId)}; g.h.startRendering=function(p){this.callback.gy(this.slot,p)}; g.h.XO=function(p,C){vB(this,"abandon");this.callback.C1(this.slot,p,C)}; g.h.vz=function(p){switch(p.id){case "part2viewed":this.gV.tQ("start");this.gV.tQ("impression");break;case "videoplaytime25":this.gV.tQ("first_quartile");break;case "videoplaytime50":this.gV.tQ("midpoint");break;case "videoplaytime75":this.gV.tQ("third_quartile");break;case "videoplaytime100":vB(this,"complete");Rj(this.gV)&&Yu(this.gV,Infinity,!0);break;case "engagedview":Rj(this.gV)||this.gV.tQ("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:S2("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.gx=function(){}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.onFullscreenToggled=function(){}; g.h.Ld=function(p){this.T||(g.u$(p,4)&&!g.u$(p,2)?xu(this.gV,"pause"):D7(p,4)<0&&!(D7(p,2)<0)&&xu(this.gV,"resume"))}; g.h.Eu=function(){}; g.h.EU=function(p){Rj(this.gV)&&Yu(this.gV,p*1E3,!1)}; g.h.Wz=function(){vB(this,"swipe")}; g.h.sA=function(){this.gV.tQ("active_view_measurable")}; g.h.Iy=function(){this.gV.tQ("active_view_viewable")}; g.h.Ao=function(){this.gV.tQ("active_view_fully_viewable_audible_half_duration")}; g.h.Cr=function(){this.gV.tQ("audio_measurable")}; g.h.bN=function(){this.gV.tQ("audio_audible")};Cqe.prototype.build=function(p,C,V,N){C=["metadata_type_ad_placement_config"];for(var H=g.F(Ay()),X=H.next();!X.done;X=H.next())C.push(X.value);if(Vu(N,{a6:C,OO:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return V.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new paX(p,V,N,this.mx,this.No,this.x_,this.AQ):new bme(p,V,N,this.mx,this.No,this.zk,this.x_,this.AQ);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); };var Ds={contentCpn:"",Kw:new Map};aUX.prototype.Vr=function(p,C){var V={};C=Object.assign({},C,(V.cc=this.w6.Zr(),V));this.w6.N.k_(p,C)};var b_F,oJ; b_F={Ti_:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Nix:"AUTHENTICATION_MALFORMED",GWa:"AUTHENTICATION_MISSING",ejY:"BAD_REQUEST",BiV:"CAST_SESSION_DEVICE_MISMATCHED",t5o:"CAST_SESSION_VIDEO_MISMATCHED",U5r:"CAST_TOKEN_EXPIRED",Kfn:"CAST_TOKEN_FAILED",lP$:"CAST_TOKEN_MALFORMED",gqr:"CGI_PARAMS_MALFORMED",OOS:"CGI_PARAMS_MISSING",VUx:"DEVICE_FALLBACK",Bxa:"GENERIC_WITH_LINK_AND_CPN",tU$:"ERROR_HDCP",U3S:"LICENSE",lue:"VIDEO_UNAVAILABLE",oNo:"FORMAT_UNAVAILABLE",qun:"GEO_FAILURE", Sfn:"HTML5_AUDIO_RENDERER_ERROR",Em_:"GENERIC_WITHOUT_LINK",u5S:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",mwV:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",vmk:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",zYk:"HTML5_SPS_UMP_STATUS_REJECTED",pz$:"INVALID_DRM_MESSAGE",Sha:"PURCHASE_NOT_FOUND",Eb_:"PURCHASE_REFUNDED",WY$:"RENTAL_EXPIRED",HMS:"RETRYABLE_ERROR",UBa:"SERVER_ERROR",j8_:"SIGNATURE_EXPIRED",yWn:"STOPPED_BY_ANOTHER_PLAYBACK",Tok:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",kAV:"STREAMING_NOT_ALLOWED", a_n:"STREAM_LICENSE_NOT_FOUND",rWx:"TOO_MANY_REQUESTS",VS$:"TOO_MANY_REQUESTS_WITH_LINK",Smn:"TOO_MANY_STREAMS_PER_ENTITLEMENT",E5a:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",UOk:"VIDEO_FORBIDDEN",Kme:"VIDEO_NOT_FOUND",P8Y:"BROWSER_OR_EXTENSION_ERROR"};oJ={}; g.CZ=(oJ.ALREADY_PINNED_ON_A_DEVICE="Voc\u00ea j\u00e1 fez o download deste v\u00eddeo para a quantidade m\u00e1xima de dispositivos permitida pelo propriet\u00e1rio dos direitos autorais. Antes de reproduzi-lo aqui, ser\u00e1 necess\u00e1rio remov\u00ea-lo de outro dispositivo.",oJ.DEVICE_FALLBACK="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",oJ.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", oJ.LICENSE="Ocorreu um erro ao licenciar este v\u00eddeo.",oJ.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",oJ.FORMAT_UNAVAILABLE="O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",oJ.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",oJ.HTML5_AUDIO_RENDERER_ERROR="Erro ao renderizar \u00e1udio. Reinicie seu computador.",oJ.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente novamente mais tarde.",oJ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",oJ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="No momento, seu navegador n\u00e3o reconhece os formatos de v\u00eddeo dispon\u00edveis. $BEGIN_LINKClique aqui para visitar as perguntas frequentes sobre v\u00eddeos em HTML5.$END_LINK",oJ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="N\u00e3o \u00e9 poss\u00edvel tocar este v\u00eddeo no seu navegador. $BEGIN_LINKSaiba mais$END_LINK",oJ.HTML5_SPS_UMP_STATUS_REJECTED="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", oJ.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",oJ.PURCHASE_NOT_FOUND="Este v\u00eddeo requer pagamento.",oJ.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi estornada.",oJ.RENTAL_EXPIRED="O aluguel deste v\u00eddeo expirou.",oJ.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",oJ.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", oJ.CAST_TOKEN_FAILED="Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",oJ.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",oJ.CAST_TOKEN_MALFORMED="Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",oJ.SERVER_ERROR="Ocorreu um erro interno do servidor. Tente novamente mais tarde.",oJ.STOPPED_BY_ANOTHER_PLAYBACK="Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", oJ.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",oJ.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",oJ.STREAMING_NOT_ALLOWED="Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",oJ.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",oJ.TOO_MANY_REQUESTS="Fa\u00e7a login para assistir este v\u00eddeo.", oJ.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",oJ.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",oJ.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",oJ.UNSUPPORTED_DEVICE="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",oJ.VIDEO_FORBIDDEN= "O acesso a este v\u00eddeo \u00e9 proibido.",oJ.VIDEO_NOT_FOUND="N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",oJ.BROWSER_OR_EXTENSION_ERROR="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK",oJ);var Ac5;var oKc=g.f0(),k9f=oKc.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!k9f||k9f.length<2)Ac5=void 0;else{var x1y=oKc.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Ac5=x1y&&x1y.length===6?Number(x1y[5].replace("_",".")):0}var Lk=Ac5,Q$=Lk>=0;g.m(g.Rr,I_);g.Rr.prototype.U=function(p,C,V,N,H){return I_.prototype.U.call(this,p,C,V,N,H)};var kR={},a5=(kR.FAIRPLAY="fairplay",kR.PLAYREADY="playready",kR.WIDEVINE="widevine",kR.CLEARKEY=null,kR.FLASHACCESS=null,kR.UNKNOWN=null,kR.WIDEVINE_CLASSIC=null,kR);nR.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var xR={},mw=(xR.WIDTH={name:"width",video:!0,valid:640,Lk:99999},xR.HEIGHT={name:"height",video:!0,valid:360,Lk:99999},xR.FRAMERATE={name:"framerate",video:!0,valid:30,Lk:9999},xR.BITRATE={name:"bitrate",video:!0,valid:3E5,Lk:2E9},xR.EOTF={name:"eotf",video:!0,valid:"bt709",Lk:"catavision"},xR.CHANNELS={name:"channels",video:!1,valid:2,Lk:99},xR.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Lk:"invalidformat"},xR.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Lk:"nope"},xR.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Lk:"av99.0.05M.08"},xR.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Lk:"invalid"},xR);var YL8=["h","H"],zjv=["9","("],Rjy=["9h","(h"],nKc=["8","*"],ej1=["a","A"],PgP=["o","O"],wTP=["m","M"],$1F=["mac3","MAC3"],LKy=["meac3","MEAC3"],YR={},VBL=(YR.h=YL8,YR.H=YL8,YR["9"]=zjv,YR["("]=zjv,YR["9h"]=Rjy,YR["(h"]=Rjy,YR["8"]=nKc,YR["*"]=nKc,YR.a=ej1,YR.A=ej1,YR.o=PgP,YR.O=PgP,YR.m=wTP,YR.M=wTP,YR.mac3=$1F,YR.MAC3=$1F,YR.meac3=LKy,YR.MEAC3=LKy,YR),gK0=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),g6a=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var zU={},gO=(zU["0"]="f",zU["160"]="h",zU["133"]="h",zU["134"]="h",zU["135"]="h",zU["136"]="h",zU["137"]="h",zU["264"]="h",zU["266"]="h",zU["138"]="h",zU["298"]="h",zU["299"]="h",zU["304"]="h",zU["305"]="h",zU["214"]="h",zU["216"]="h",zU["374"]="h",zU["375"]="h",zU["140"]="a",zU["141"]="ah",zU["327"]="sa",zU["258"]="m",zU["380"]="mac3",zU["328"]="meac3",zU["161"]="H",zU["142"]="H",zU["143"]="H",zU["144"]="H",zU["222"]="H",zU["223"]="H",zU["145"]="H",zU["224"]="H",zU["225"]="H",zU["146"]="H",zU["226"]= "H",zU["227"]="H",zU["147"]="H",zU["384"]="H",zU["376"]="H",zU["385"]="H",zU["377"]="H",zU["149"]="A",zU["261"]="M",zU["381"]="MAC3",zU["329"]="MEAC3",zU["598"]="9",zU["278"]="9",zU["242"]="9",zU["243"]="9",zU["244"]="9",zU["775"]="9",zU["776"]="9",zU["777"]="9",zU["778"]="9",zU["779"]="9",zU["780"]="9",zU["781"]="9",zU["782"]="9",zU["783"]="9",zU["247"]="9",zU["248"]="9",zU["353"]="9",zU["355"]="9",zU["356"]="9",zU["271"]="9",zU["577"]="9",zU["313"]="9",zU["579"]="9",zU["272"]="9",zU["302"]="9", zU["303"]="9",zU["407"]="9",zU["408"]="9",zU["308"]="9",zU["315"]="9",zU["330"]="9h",zU["331"]="9h",zU["332"]="9h",zU["333"]="9h",zU["334"]="9h",zU["335"]="9h",zU["336"]="9h",zU["337"]="9h",zU["338"]="so",zU["600"]="o",zU["250"]="o",zU["251"]="o",zU["774"]="o",zU["194"]="*",zU["195"]="*",zU["220"]="*",zU["221"]="*",zU["196"]="*",zU["197"]="*",zU["279"]="(",zU["280"]="(",zU["317"]="(",zU["318"]="(",zU["273"]="(",zU["274"]="(",zU["357"]="(",zU["358"]="(",zU["275"]="(",zU["359"]="(",zU["360"]="(",zU["276"]= "(",zU["583"]="(",zU["584"]="(",zU["314"]="(",zU["585"]="(",zU["561"]="(",zU["277"]="(",zU["361"]="(h",zU["362"]="(h",zU["363"]="(h",zU["364"]="(h",zU["365"]="(h",zU["366"]="(h",zU["591"]="(h",zU["592"]="(h",zU["367"]="(h",zU["586"]="(h",zU["587"]="(h",zU["368"]="(h",zU["588"]="(h",zU["562"]="(h",zU["409"]="(",zU["410"]="(",zU["411"]="(",zU["412"]="(",zU["557"]="(",zU["558"]="(",zU["394"]="1",zU["395"]="1",zU["396"]="1",zU["397"]="1",zU["398"]="1",zU["399"]="1",zU["720"]="1",zU["721"]="1",zU["400"]= "1",zU["401"]="1",zU["571"]="1",zU["402"]="1",zU["694"]="1h",zU["695"]="1h",zU["696"]="1h",zU["697"]="1h",zU["698"]="1h",zU["699"]="1h",zU["700"]="1h",zU["701"]="1h",zU["702"]="1h",zU["703"]="1h",zU["386"]="3",zU["387"]="w",zU["406"]="6",zU["787"]="1",zU["788"]="1",zU["645"]="(",zU["646"]="(",zU["647"]="(",zU["648"]="(",zU["649"]="(",zU["650"]="(",zU["651"]="(",zU["652"]="(",zU["653"]="(",zU["654"]="(",zU["655"]="(",zU["656"]="(",zU["657"]="(",zU["658"]="(",zU["659"]="(",zU["660"]="(",zU["661"]="(", zU["662"]="(",zU["663"]="(",zU["664"]="(",zU["665"]="(",zU["666"]="(",zU["667"]="(",zU["668"]="(",zU["669"]="(",zU["670"]="(",zU["671"]="(",zU["672"]="(",zU["673"]="(",zU["674"]="(h",zU["675"]="(h",zU["676"]="(h",zU["677"]="(h",zU["678"]="(h",zU["679"]="(h",zU["680"]="(h",zU["681"]="(h",zU["682"]="(h",zU["683"]="(h",zU["684"]="(h",zU["685"]="(h",zU["686"]="(h",zU["687"]="(h",zU["688"]="A",zU["689"]="A",zU["690"]="A",zU["691"]="MEAC3",zU["773"]="i",zU["806"]="I",zU["805"]="I",zU);var RJ={},xVQ=(RJ.STEREO_LAYOUT_UNKNOWN=0,RJ.STEREO_LAYOUT_LEFT_RIGHT=1,RJ.STEREO_LAYOUT_TOP_BOTTOM=2,RJ);var nM,H1;nM={};g.PB=(nM.auto=0,nM.tiny=144,nM.light=144,nM.small=240,nM.medium=360,nM.large=480,nM.hd720=720,nM.hd1080=1080,nM.hd1440=1440,nM.hd2160=2160,nM.hd2880=2880,nM.highres=4320,nM);H1={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var $Z="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");wO.prototype.isHdr=function(){return this.C==="smpte2084"||this.C==="arib-std-b67"};WB.prototype.Ft=function(){return this.containerType===2}; WB.prototype.isEncrypted=function(){return!!this.vV}; WB.prototype.DQ=function(){return!!this.audio}; WB.prototype.K9=function(){return!!this.video};g.m(Mf,g.ca);g.h=Mf.prototype;g.h.appendBuffer=function(p,C,V){if(this.jr.QH()!==this.appendWindowStart+this.start||this.jr.Fm()!==this.appendWindowEnd+this.start||this.jr.yZ()!==this.timestampOffset+this.start)this.jr.supports(1),this.jr.AJ(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.jr.pp(this.timestampOffset+this.start);this.jr.appendBuffer(p,C,V)}; g.h.abort=function(){this.jr.abort()}; g.h.remove=function(p,C){this.jr.remove(p+this.start,C+this.start)}; g.h.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.h.clear=function(){this.jr.clear()}; g.h.AJ=function(p,C){this.appendWindowStart=p;this.appendWindowEnd=C}; g.h.PG=function(){return this.timestampOffset+this.start}; g.h.QH=function(){return this.appendWindowStart}; g.h.Fm=function(){return this.appendWindowEnd}; g.h.pp=function(p){this.timestampOffset=p}; g.h.yZ=function(){return this.timestampOffset}; g.h.K7=function(p){p=this.jr.K7(p===void 0?!1:p);return Tw(p,this.start,this.end)}; g.h.SO=function(){return this.jr.SO()}; g.h.f3=function(){return this.jr.f3()}; g.h.Ii=function(){return this.jr.Ii()}; g.h.Vj=function(){return this.jr.Vj()}; g.h.aO=function(){this.jr.aO()}; g.h.pg=function(p){return this.jr.pg(p)}; g.h.jA=function(){return this.jr.jA()}; g.h.n3=function(){return this.jr.n3()}; g.h.M7=function(){return this.jr.M7()}; g.h.SJ=function(p,C,V){this.jr.SJ(p,C,V)}; g.h.Eq=function(p,C,V){this.jr.Eq(p,C,V)}; g.h.V9=function(p,C){return this.jr.V9(p,C)}; g.h.supports=function(p){return this.jr.supports(p)}; g.h.ye=function(){return this.jr.ye()}; g.h.isView=function(){return!0}; g.h.xT=function(){return this.jr.xT()?this.isActive:!1}; g.h.isLocked=function(){return this.VC&&!this.isActive}; g.h.X0=function(p){p=this.jr.X0(p);p.vw=this.start+"-"+this.end;return p}; g.h.C3=function(){return this.jr.C3()}; g.h.Q4=function(){return this.jr.Q4()}; g.h.Nk=function(){return this.jr.Nk()}; g.h.CS=function(){My(this.jr,this.Ee);g.ca.prototype.CS.call(this)};var CA=!1;g.m(mu,g.ca);g.h=mu.prototype;g.h.appendBuffer=function(p,C,V){this.yH=!1;V&&(this.Qe=V);if(p.length){var N;((N=this.NW)==null?0:N.appendBuffer)?this.NW.appendBuffer(p):this.NW?this.NW.append(p):this.S5&&this.S5.webkitSourceAppend(this.id,p)}C&&(C.isEncrypted()&&(this.PF=this.Qe),C.type===3&&(this.lW=C),this.JA.push(C.Zh()),this.JA.length>4&&this.JA.shift());this.hv&&(this.hv.length>=2||p.length>1048576?delete this.hv:this.hv.push(p))}; g.h.abort=function(){try{this.NW?this.NW.abort():this.S5&&this.S5.webkitSourceAbort(this.id)}catch(p){L7Q&&g.nm(new g.Bw("Error while abort the source buffer: "+p.name+", "+p.message))}this.Qe=this.lW=null}; g.h.remove=function(p,C,V){this.yH=!1;var N;if((N=this.NW)==null?0:N.remove)V&&V({b:sJ(this.K7()),s:p,e:C}),this.NW.remove(p,C)}; g.h.removeAll=function(){this.remove(this.QH(),this.Fm())}; g.h.clear=function(){this.Ii()||(this.abort(),this.removeAll(),this.PF=this.Qe=this.lW=null,this.appendWindowStart=this.timestampOffset=0,this.Rh=hj([],[]),this.yH=!1,this.hv=Jj?[]:void 0,this.V_=!0)}; g.h.QH=function(){if(CA&&this.K9)return this.appendWindowStart;var p;return((p=this.NW)==null?void 0:p.appendWindowStart)||0}; g.h.Fm=function(){var p;return((p=this.NW)==null?void 0:p.appendWindowEnd)||0}; g.h.AJ=function(p,C){this.NW&&(CA&&this.K9?(this.appendWindowStart=p,this.NW.appendWindowEnd=C):p>this.QH()?(this.NW.appendWindowEnd=C,this.NW.appendWindowStart=p):(this.NW.appendWindowStart=p,this.NW.appendWindowEnd=C))}; g.h.PG=function(){return this.timestampOffset}; g.h.pp=function(p){CA?this.timestampOffset=p:this.supports(1)&&(this.NW.timestampOffset=p)}; g.h.yZ=function(){return CA?this.timestampOffset:this.supports(1)?this.NW.timestampOffset:0}; g.h.K7=function(p){if(p===void 0?0:p)return this.yH||this.SO()||(this.Rh=this.K7(!1),this.yH=!0),this.Rh;try{return this.NW?this.NW.buffered:this.S5?this.S5.webkitSourceBuffered(this.id):hj([0],[Infinity])}catch(C){return hj([],[])}}; g.h.SO=function(){var p;return((p=this.NW)==null?void 0:p.updating)||!1}; g.h.Ii=function(){return this.V_}; g.h.Vj=function(){return!this.V_&&this.SO()}; g.h.aO=function(){this.V_=!1}; g.h.pg=function(p){var C=p==null?void 0:p.o$;p=p==null?void 0:p.containerType;return!C&&!p||C===this.o$&&p===this.containerType}; g.h.jA=function(){return this.Qe}; g.h.n3=function(){return this.PF}; g.h.V9=function(p,C){return this.containerType!==p||this.o$!==C}; g.h.SJ=function(p,C,V){if(this.containerType!==p||V&&this.V9(p,V))this.supports(4),rN()&&this.NW.changeType(C),V&&(this.o$=V);this.containerType=p}; g.h.Eq=function(p,C,V){this.containerType&&this.V9(p,C)&&rN()&&this.NW.changeType(V);this.containerType=p;this.o$=C}; g.h.ye=function(){return this.lW}; g.h.isView=function(){return!1}; g.h.supports=function(p){switch(p){case 1:var C;return((C=this.NW)==null?void 0:C.timestampOffset)!==void 0;case 0:var V;return!((V=this.NW)==null||!V.appendBuffer);case 2:var N;return!((N=this.NW)==null||!N.remove);case 3:var H,X;return!!(((H=this.NW)==null?0:H.addEventListener)&&((X=this.NW)==null?0:X.removeEventListener));case 4:return!(!this.NW||!this.NW.changeType);default:return!1}}; g.h.xT=function(){return!this.SO()}; g.h.isLocked=function(){return!1}; g.h.X0=function(p){p.to=this.yZ();p.up=this.SO();var C,V=((C=this.NW)==null?void 0:C.appendWindowStart)||0,N;C=((N=this.NW)==null?void 0:N.appendWindowEnd)||Infinity;p.aw=V.toFixed(3)+"-"+C.toFixed(3);return p}; g.h.f3=function(){var p;return((p=this.NW)==null?void 0:p.writeHead)||0}; g.h.C3=function(){for(var p={},C=0;C=7&&E0e(this,function(){g.F5(function(){Oq9(p,p.getCurrentTime(),0)},500)}); return C}; g.h.seekTo=function(p){this.wh()>0&&(Q$&&Lk<4&&(p=Math.max(.1,p)),this.setCurrentTime(p))}; g.h.Q6=function(){if(!this.C&&this.Hr)if(this.Hr.W)try{var p;Nr(this,{l:"mer",sr:(p=this.Ta)==null?void 0:Hj(p),rs:dl(this.Hr)});this.Hr.clear();this.C=this.Hr;this.Hr=void 0}catch(C){p=new g.Bw("Error while clearing Media Source in MediaElement: "+C.name+", "+C.message),g.nm(p),this.stopVideo()}else this.stopVideo()}; g.h.stopVideo=function(){var p=this;if(!this.C){var C;(C=this.Hr)==null||Zqy(C);if(PAX){if(!this.V){var V=new hK;V.then(void 0,function(){}); this.V=V;w9L&&this.pause();g.F5(function(){p.V===V&&(lU(p),V.resolve())},200)}}else lU(this)}}; g.h.k6=function(){var p=this.yx();return tj(p)>0&&this.getDuration()?lX(p,this.getCurrentTime()):0}; g.h.qD=function(){var p=this.getDuration();return p===Infinity?1:p?this.k6()/p:0}; g.h.X0=function(){try{var p=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:sJ(this.TC(),",",3),vbu:sJ(this.yx()),vbs:sJ(this.cW()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.wh(),vns:""+this.xd(),vec:""+this.LO(),vemsg:this.FF(),vvol:""+this.getVolume(),vdom:""+ +this.S4(),vsrc:""+ +!!this.U8(),vw:""+p.width,vh:""+p.height}}catch(C){return{}}}; g.h.hasError=function(){return this.LO()>0}; g.h.addEventListener=function(p,C){this.S.listen(p,C,!1,this);this.Rw(p)}; g.h.removeEventListener=function(p,C){this.S.rY(p,C,!1,this)}; g.h.dispatchEvent=function(p){if(this.V&&p.type==="pause")return!1;if($0V){var C,V=((C=p.T)==null?void 0:C.timeStamp)||Infinity;C=V>performance.now()?V-Date.now()+performance.now():V;V=this.C||this.Hr;if((V==null?0:V.Ii())||C<=((V==null?void 0:V.Y)||0)){var N;Nr(this,{l:"mede",sr:(N=this.Ta)==null?void 0:Hj(N),et:p.type});return!1}if(this.UM)return Nr(this,{l:"medes",et:p.type}),V&&p.type==="seeking"&&(V.Y=performance.now(),this.UM=!1),!1}return this.S.dispatchEvent(p)}; g.h.e2=function(){this.Y=!1}; g.h.W4=function(){this.Y=!0;this.BC(!0)}; g.h.N0=function(){this.Y&&!this.AR()&&this.BC(!0)}; g.h.sE=function(p){return!!p&&p.V$()===this.V$()}; g.h.CS=function(){this.D&&this.removeEventListener("volumechange",this.N0);PAX&&lU(this);g.Y.prototype.CS.call(this)}; var PAX=!1,w9L=!1,$0V=!1,IUS=!1;g.h=g.cj.prototype;g.h.isPaused=function(){return g.r(this,4)}; g.h.isPlaying=function(){return g.r(this,8)&&!g.r(this,512)&&!g.r(this,64)&&!g.r(this,2)}; g.h.isOrWillBePlaying=function(){return g.r(this,8)&&!g.r(this,2)&&!g.r(this,1024)}; g.h.isCued=function(){return g.r(this,64)&&!g.r(this,8)&&!g.r(this,4)}; g.h.isBuffering=function(){return g.r(this,1)&&!g.r(this,2)}; g.h.isError=function(){return g.r(this,128)}; g.h.isSuspended=function(){return g.r(this,512)}; g.h.Bo=function(){return g.r(this,64)&&g.r(this,4)}; g.h.toString=function(){return"PSt."+this.state.toString(16)}; var ed={},PD=(ed.BUFFERING="buffering-mode",ed.CUED="cued-mode",ed.ENDED="ended-mode",ed.PAUSED="paused-mode",ed.PLAYING="playing-mode",ed.SEEKING="seeking-mode",ed.UNSTARTED="unstarted-mode",ed);g.m(uU,g.Y);g.h=uU.prototype;g.h.rP=function(){return this.V}; g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){var p=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),C=Ef(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");y6(this.layout.y$)&&NE(this.AQ.get(),this.layout.layoutId,{Yn:C,s7:p,listener:this,e1:this.sV()});JS1(this.No.get(),this);p=this.e5;C=this.layout.layoutId;var V={e1:this.sV()};p.T.set(C,V);this.l5()}; g.h.VT=function(){}; g.h.release=function(){y6(this.layout.y$)&&Hq(this.AQ.get(),this.layout.layoutId);muu(this.No.get(),this);this.e5.T.delete(this.layout.layoutId);this.UA()}; g.h.jt=function(){}; g.h.MS=function(){}; g.h.startRendering=function(p){UN(Z5(this));if(U3(this,p)){var C=this.T;fR(C.params.Rx.x_.get(),!0)&&sSS(C,"p_sr",{});fV(this);this.cn(p);this.sV()||this.MF(!1)}}; g.h.gy=function(p,C){if(C.layoutId===this.layout.layoutId){this.JQ="rendering";this.C=this.mx.get().isMuted()||this.mx.get().getVolume()===0;this.tQ("impression");this.tQ("start");if(this.mx.get().isMuted()){AK(this,"mute");var V;p=((V=D5(this))==null?void 0:V.muteCommands)||[];rt(this.zk.get(),p,this.layout.layoutId)}if(this.mx.get().isFullscreen()){this.pO("fullscreen");var N;V=((N=D5(this))==null?void 0:N.fullscreenCommands)||[];rt(this.zk.get(),V,this.layout.layoutId)}this.sV()||(N=this.sZ.get(), N.V&&!N.C&&(N.W=!1,N.C=!0,N.actionType!=="ad_to_video"&&(hd("pbs",void 0,N.actionType),g.Zr("finalize_all_timelines")&&G4y(N.actionType))));this.GA(1);this.DG(C);var H;C=((H=D5(this))==null?void 0:H.impressionCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.JH=function(p,C,V){this.D={Ay:3,AM:p==="load_timeout"?402:400,errorMessage:C.message};this.tQ("error");var N;p=((N=D5(this))==null?void 0:N.errorCommands)||[];rt(this.zk.get(),p,this.layout.layoutId);this.sV()||this.FN.OV(this.slot,this.layout,C,V)}; g.h.gS=function(){if(this.JQ==="rendering"){AK(this,"pause");var p,C=((p=D5(this))==null?void 0:p.pauseCommands)||[];rt(this.zk.get(),C,this.layout.layoutId);this.GA(2)}}; g.h.Oj=function(){if(this.JQ==="rendering"){AK(this,"resume");var p,C=((p=D5(this))==null?void 0:p.resumeCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.nW=function(p,C){C=C===void 0?!1:C;if(this.JQ==="rendering"){var V={currentTimeSec:p,flush:C};ON(this.T,"p_ip",V);Yu(this.gV,p*1E3,C);this.C||Yu(this.gV,p*1E3,C===void 0?!1:C);var N=this.wH();if(N){N/=1E3;if(p>=N*.25||C)this.tQ("first_quartile"),ON(this.T,"p_fq",V);if(p>=N*.5||C)this.tQ("midpoint"),ON(this.T,"p_sq",V);if(p>=N*.75||C)this.tQ("third_quartile"),ON(this.T,"p_tq",V);this.x_.get().N.K().experiments.OY("enable_progress_command_flush_on_kabuki")?gn(this.S,p*1E3,C):gn(this.S,p*1E3,Yys(this)? C:!1)}}}; g.h.Zr=function(){var p;return((p=O3(this.pS.get(),1))==null?void 0:p.clientPlaybackNonce)||""}; g.h.x0=function(p,C){p.layoutId!==this.layout.layoutId?this.FN.OV(this.slot,p,new sf("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"):C()}; g.h.C1=function(p,C,V){if(C.layoutId===this.layout.layoutId)switch(this.JQ="not_rendering",this.layoutExitReason=void 0,this.sV()||(p=V!=="normal"||this.position+1===this.Y)&&this.MF(p),this.lR(V),this.GA(0),V){case "abandoned":if(zl(this.gV,"impression")){var N,H=((N=D5(this))==null?void 0:N.abandonCommands)||[];rt(this.zk.get(),H,this.layout.layoutId)}break;case "normal":N=((H=D5(this))==null?void 0:H.completeCommands)||[];rt(this.zk.get(),N,this.layout.layoutId);break;case "skipped":var X;N=((X= D5(this))==null?void 0:X.skipCommands)||[];rt(this.zk.get(),N,this.layout.layoutId)}}; g.h.oO=function(){return this.layout.layoutId}; g.h.j2=function(){return this.D}; g.h.sA=function(){if(this.JQ==="rendering"){this.gV.tQ("active_view_measurable");var p,C=((p=D5(this))==null?void 0:p.activeViewMeasurableCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.Ao=function(){if(this.JQ==="rendering"){this.gV.tQ("active_view_fully_viewable_audible_half_duration");var p,C=((p=D5(this))==null?void 0:p.activeViewFullyViewableAudibleHalfDurationCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.Iy=function(){if(this.JQ==="rendering"){this.gV.tQ("active_view_viewable");var p,C=((p=D5(this))==null?void 0:p.activeViewViewableCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.bN=function(){if(this.JQ==="rendering"){this.gV.tQ("audio_audible");var p,C=((p=D5(this))==null?void 0:p.activeViewAudioAudibleCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.Cr=function(){if(this.JQ==="rendering"){this.gV.tQ("audio_measurable");var p,C=((p=D5(this))==null?void 0:p.activeViewAudioMeasurableCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.MF=function(p){this.sZ.get().MF(Ef(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,p,this.position,this.Y,!1)}; g.h.onFullscreenToggled=function(p){if(this.JQ==="rendering")if(p){this.pO("fullscreen");var C,V=((C=D5(this))==null?void 0:C.fullscreenCommands)||[];rt(this.zk.get(),V,this.layout.layoutId)}else this.pO("end_fullscreen"),C=((V=D5(this))==null?void 0:V.endFullscreenCommands)||[],rt(this.zk.get(),C,this.layout.layoutId)}; g.h.onVolumeChange=function(){if(this.JQ==="rendering")if(this.mx.get().isMuted()){AK(this,"mute");var p,C=((p=D5(this))==null?void 0:p.muteCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}else AK(this,"unmute"),p=((C=D5(this))==null?void 0:C.unmuteCommands)||[],rt(this.zk.get(),p,this.layout.layoutId)}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.gx=function(){}; g.h.vz=function(){}; g.h.Wz=function(){}; g.h.pO=function(p){this.gV.pO(p,!this.C)}; g.h.tQ=function(p){this.gV.tQ(p,!this.C)}; g.h.sV=function(){var p=Ef(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return p===void 0?(S2("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.x_.get().sV(p)};g.m(zP,uU);g.h=zP.prototype;g.h.l5=function(){}; g.h.UA=function(){var p=this.No.get();p.df===this&&(p.df=null);this.Yt.stop()}; g.h.jt=function(){this.Yt.stop();uU.prototype.gS.call(this)}; g.h.MS=function(){nV(this);uU.prototype.Oj.call(this)}; g.h.wH=function(){return Ef(this.De().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.h.XO=function(p,C){var V=this;this.x0(p,function(){V.JQ!=="rendering_stop_requested"&&(V.JQ="rendering_stop_requested",V.layoutExitReason=C,yP(V,C),V.Yt.stop())})}; g.h.m6=function(){var p=Date.now(),C=p-this.Dz;this.Dz=p;this.Xg+=C;this.Xg>=this.wH()?this.b2():(this.nW(this.Xg/1E3),Rk(this,this.Xg))}; g.h.lR=function(){}; g.h.Eu=function(){}; g.m(e6,zP);g.h=e6.prototype;g.h.Ld=function(p){if(this.JQ!=="not_rendering"){p=qr(this,p);var C=this.mx.get().getPresentingPlayerType()===2;this.JQ==="rendering_start_requested"?C&&Jn(p)&&this.mA():C?g.u$(p,2)?S2("Receive player ended event during MediaBreak",this.Bc(),this.De()):Ik(this,p):this.MP()}}; g.h.cn=function(){kBe(this);OQu(this.mx.get());this.No.get().df=this;dc("pbp")||dc("pbs")||hd("pbp");dc("pbp","watch")||dc("pbs","watch")||hd("pbp",void 0,"watch");this.mA()}; g.h.DG=function(p){this.sZ.get();var C=Ef(p.clientMetadata,"metadata_type_ad_placement_config").kind,V=this.position===0;p=Ef(p.clientMetadata,"metadata_type_linked_in_player_layout_type");p={adBreakType:bU(C),adType:QS9(p)};var N=void 0;V?C!=="AD_PLACEMENT_KIND_START"&&(N="video_to_ad"):N="ad_to_ad";NR("ad_mbs",void 0,N);g.HH(p,N);nV(this)}; g.h.MP=function(){this.Co()}; g.h.b2=function(){R3V(this);this.Co()}; g.m(Pj,zP);g.h=Pj.prototype;g.h.Ld=function(p){this.JQ!=="not_rendering"&&(p=qr(this,p),Ik(this,p))}; g.h.cn=function(){S2("Not used in SSAP")}; g.h.DG=function(){nV(this)}; g.h.MP=function(){S2("Not used in SSAP")}; g.h.b2=function(){R3V(this);this.FN.L6(this.Bc(),this.De(),"normal")}; g.m(wl,Pj);wl.prototype.XO=function(p,C){var V=this;this.x0(p,function(){S9(V.V,C)&&(V.JQ="rendering_stop_requested",V.layoutExitReason=C,yP(V,C),V.Yt.stop())})}; wl.prototype.startRendering=function(p){UN(Z5(this));U3(this,p)&&(fV(this),this.No.get().df=this)};g.m(gl,uU);g.h=gl.prototype;g.h.MP=function(){this.Co()}; g.h.Ld=function(p){if(this.JQ!=="not_rendering"){p=qr(this,p);var C=this.mx.get().getPresentingPlayerType()===2;this.JQ==="rendering_start_requested"?C&&Jn(p)&&this.mA():!C||g.u$(p,2)?this.Co():Ik(this,p)}}; g.h.l5=function(){Ef(this.De().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Ef(this.De().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.h.UA=function(){Ef(this.De().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.kE){var p=this.context.Rx,C=this.kE,V=this.De().layoutId;if(fR(p.x_.get(),!0)){var N={};p.Vr("mccru",(N.cid=C,N.p_ac=V,N))}this.iJ.get().removeCueRange(this.kE)}this.kE=void 0;var H;(H=this.N4)==null||H.dispose();this.gZ&&this.gZ.dispose()}; g.h.cn=function(p){var C=$L(this.x_.get()),V=LV(this.x_.get());if(C&&V&&!this.sV()){V=Ef(p.clientMetadata,"metadata_type_preload_player_vars");var N=g.mi(this.x_.get().N.K().experiments,"html5_preload_wait_time_secs");V&&this.gZ&&this.gZ.start(N*1E3)}Pqe(this,p);kBe(this);C?(V=this.gY.get(),p=Ef(p.clientMetadata,"metadata_type_player_vars"),V.N.loadVideoByPlayerVars(p,!1,2)):Yws(this.gY.get(),Ef(p.clientMetadata,"metadata_type_player_vars"));var H;(H=this.N4)==null||H.start();C||this.gY.get().N.playVideo(2)}; g.h.DG=function(){var p;(p=this.N4)==null||p.stop();this.kE="adcompletioncuerange:"+this.De().layoutId;this.iJ.get().addCueRange(this.kE,0x7ffffffffffff,0x8000000000000,!1,this,2,2);p=this.context.Rx;var C=this.kE,V=this.De().layoutId;if(fR(p.x_.get(),!0)){var N={};p.Vr("mccr",(N.cid=C,N.p_ac=V,N))}(this.adCpn=o0Q(this))||S2("Media layout confirmed started, but ad CPN not set.");this.YG.get().FU("onAdStart",this.adCpn);this.wE=Date.now()}; g.h.wH=function(){var p;return(p=O3(this.pS.get(),2))==null?void 0:p.ade}; g.h.qV=function(){this.gV.pO("clickthrough")}; g.h.XO=function(p,C){var V=this;this.x0(p,function(){if(V.JQ!=="rendering_stop_requested"){V.JQ="rendering_stop_requested";V.layoutExitReason=C;yP(V,C);var N;(N=V.N4)==null||N.stop();V.gZ&&V.gZ.stop();way(V)}})}; g.h.onCueRangeEnter=function(p){if(p!==this.kE)S2("Received CueRangeEnter signal for unknown layout.",this.Bc(),this.De(),{cueRangeId:p});else{var C=this.context.Rx,V=this.De().layoutId;if(fR(C.x_.get(),!0)){var N={};C.Vr("mccre",(N.cid=p,N.p_ac=V,N))}this.iJ.get().removeCueRange(this.kE);this.kE=void 0;Cs(this.context.x_.get(),"html5_ssap_flush_at_stop_rendering")&&this.sV()||(p=Ef(this.De().clientMetadata,"metadata_type_video_length_seconds"),this.nW(p,!0),this.tQ("complete"))}}; g.h.lR=function(p){p!=="abandoned"&&this.YG.get().FU("onAdComplete");this.YG.get().FU("onAdEnd",this.adCpn)}; g.h.onCueRangeExit=function(){}; g.h.Eu=function(p){this.JQ==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&p>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.mx.get().Gz(!0),this.nW(p))}; g.h.nW=function(p,C){uU.prototype.nW.call(this,p,C===void 0?!1:C);C=Date.now()-this.wE;var V=p*1E3,N={contentCpn:this.Zr(),adCpn:o0Q(this)};if(p>=5&&!this.fz){var H=C<1E3?0:1;mA(H,"i.k_",{metadata:N,JC:C,Qc:Math.floor(V/1E3)});GH("IKDSTAT",H);H===0&&$yy(this)&&this.YG.get().FU("onAbnormalityDetected");this.fz=!0}this.x_.get().N.K().experiments.OY("enable_ik_opt")&&p-this.sQ>=5&&(H=C=2||(this.K1.XO(this.layout,C),p=Cs(this.params.context.x_.get(),"html5_ssap_pass_transition_reason")&&C==="abandoned",this.QD()&&!p&&(Cs(this.params.context.x_.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(C)||S2("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:C})),this.kG.get().finishSegmentByCpn(this.layout.layoutId, O3(this.pS.get(),1).clientPlaybackNonce,kL(C,this.params.context.x_))),this.mx.get().removeListener(this),this.mj()&&KR(this.K1.rP())&&this.E_.C1(this.slot,this.layout,this.K1.rP().T))}; g.h.mC=function(p,C,V){iqY({cpn:p,w6:this.pS.get(),NS:!0});this.De().layoutId!==p||Cs(this.params.context.x_.get(),"html5_ssap_pass_transition_reason")&&V===5||(this.K1.rP().currentState<2&&(p=xL(V,this.params.context.x_),p==="error"?this.E_.OV(this.slot,this.layout,new sf("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:V},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):NV(this.xl, this.layout,p)),Cs(this.params.context.x_.get(),"html5_ssap_exit_without_waiting_for_transition")||this.E_.C1(this.slot,this.layout,this.K1.rP().T))};g.m(GP,g.Y);g.h=GP.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.nZ=function(){}; g.h.P1=function(){return this.H6[this.Op]}; g.h.M1=function(){return this.Op}; g.h.jt=function(p,C){var V=this.P1();C.layoutId!==Cr(V,p,C)?S2("pauseLayout for a PlayerBytes layout that is not currently active",p,C):V.jt()}; g.h.MS=function(p,C){var V=this.P1();C.layoutId!==Cr(V,p,C)?S2("resumeLayout for a PlayerBytes layout that is not currently active",p,C):V.MS()}; g.h.m5=function(p,C){var V=this.P1();C$S(this,p,C);j09(V,p,C)&&this.wK(V.Bc(),V.De(),"skipped")}; g.h.Pe=function(p,C){var V=this.P1();V29(this);Nky(V,p,C)&&(p=Hta(this,V,p,C),p!==void 0&&(this.sV()?S2("Should not happen. Should delete"):dNe(this,V.Bc(),V.De(),p)))}; g.h.tP=function(p,C){var V=Object.assign({},pr(this),{layoutId:C.layoutId}),N=V.layoutId,H=V.NS;if(V.e1){var X={};Zs(V.w6,"wrse",(X.ec=N,X.is=H,X.ctp=uv(N),X))}A4(this.j1,p,C)}; g.h.gy=function(p,C){var V;(V=this.P1())==null||V.gy(p,C)}; g.h.C1=function(p,C,V){C.layoutId===this.De().layoutId&&(this.mK=!1,KP(this.oH(),this));var N;(N=this.P1())==null||N.C1(p,C,V)}; g.h.Eu=function(p){var C;(C=this.P1())==null||C.Eu(p)}; g.h.GV=function(p,C,V){this.M1()===-1&&(this.callback.gy(this.slot,this.layout),this.Op++);var N=this.P1();N?(N.JH(p,C,V),this.sV()&&this.callback.OV(this.slot,this.layout,C,V)):S2("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.M1()),layoutId:this.De().layoutId})}; g.h.onFullscreenToggled=function(p){var C;(C=this.P1())==null||C.onFullscreenToggled(p)}; g.h.xq=function(p){var C;(C=this.P1())==null||C.xq(p)}; g.h.gx=function(p){var C;(C=this.P1())==null||C.gx(p)}; g.h.onVolumeChange=function(){var p;(p=this.P1())==null||p.onVolumeChange()}; g.h.ke=function(p,C,V){o3(this.j1,p,C,V)}; g.h.ws=function(p){p.startRendering(p.De())}; g.h.init=function(){var p=Ef(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);if(this.H6.length<1)throw new G("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.H6.length)});if(p=Ef(this.De().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))p.current=this;p=g.F(this.H6);for(var C=p.next();!C.done;C=p.next())C=C.value,C.init(),O1Q(this.j1,this.slot,C.De()),y31(this.j1,this.slot,C.De()); if(this.sV())for(this.pS.get().addListener(this),jSv(pEu(this),this.pS.get()),p=pEu(this),p=g.F(p),C=p.next();!C.done;C=p.next())this.mG(C.value)}; g.h.mG=function(p){var C=Ef(p.clientMetadata,"metadata_type_player_vars");C?(p.layoutType!=="LAYOUT_TYPE_MEDIA"&&S2("Non-video ad contains playerVars",this.slot,p),this.gY.get().addPlayerResponseForAssociation({playerVars:C})):(p=rOe(p),this.gY.get().addPlayerResponseForAssociation({LC:p}))}; g.h.release=function(){var p=Ef(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);if(p=Ef(this.De().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))p.current=null;p=g.F(this.H6);for(var C=p.next();!C.done;C=p.next())C=C.value,qIS(this.j1,this.slot,C.De()),C.release();this.sV()&&(this.pS.get().removeListener(this),Vpu())}; g.h.x0=function(p){return p.layoutId!==this.De().layoutId?(this.callback.OV(this.Bc(),p,new sf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.De().layoutId+("and LayoutType: "+this.De().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.h.wG=function(){this.mx.get().addListener(this);SU(this.oH(),this)}; g.h.Ld=function(p){if(p.state.isError()){var C,V;this.GV((C=p.state.UE)==null?void 0:C.errorCode,new sf("There was a player error during this media layout.",{playerErrorCode:(V=p.state.UE)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(C=this.P1())&&C.Ld(p)}; g.h.sV=function(){var p=Ef(this.Bc().clientMetadata,"metadata_type_eligible_for_ssap");return p===void 0?(S2("Expected SSAP eligibility in PlayerBytes slots",this.Bc(),this.De()),!1):this.x_.get().sV(p)}; g.h.iM=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.vz=function(){}; g.h.Wz=function(){}; g.m(HS,GP);g.h=HS.prototype;g.h.KL=function(p,C,V){this.wK(p,C,V)}; g.h.U3=function(p,C){this.wK(p,C,"error")}; g.h.wK=function(p,C,V){var N=this;XEV(this,p,C,V,function(){jI(N,N.M1()+1)})}; g.h.startRendering=function(p){this.x0(p)&&(this.wG(),$JQ(this.sZ.get()),rus(this.x_.get())||OQu(this.mx.get()),this.M1()===-1&&jI(this,this.M1()+1))}; g.h.XO=function(p,C){var V=this;this.mK=!0;this.M1()===this.H6.length?this.callback.C1(this.slot,this.layout,C):(p=this.P1(),p.XO(p.De(),C),this.Bi=function(){V.callback.C1(V.slot,V.layout,C)}); this.mx.get().N.Kr();Yws(this.gY.get(),{});p=V0(this.mx.get(),1);p.isPaused()&&!g.r(p,2)&&this.mx.get().playVideo();this.mx.get().removeListener(this);this.mK&&it9(this)}; g.h.mC=function(){}; g.h.u7=function(){}; g.h.L6=function(){}; g.m(Xc,GP);g.h=Xc.prototype;g.h.KL=function(p,C,V){p=Object.assign({},pr(this),{layoutId:C.layoutId,layoutExitReason:V});C=p.layoutId;V=p.layoutExitReason;var N={};Zs(p.w6,"prse",(N.xc=C,N.ler=V,N.ctp=uv(C),N))}; g.h.U3=function(){S2("onSubLayoutError in SSAP")}; g.h.wK=function(){S2("exitSubLayoutAndPlayNext in SSAP")}; g.h.P1=function(){return this.II}; g.h.M1=function(){var p=this;return this.H6.findIndex(function(C){var V;return C.De().layoutId===((V=p.II)==null?void 0:V.De().layoutId)})}; g.h.ws=function(p){FK(this.II===void 0,"replacing another adapter");this.II=p;p.startRendering(p.De())}; g.h.ke=function(p,C,V){o3(this.j1,p,C,V);var N;FK(C.layoutId===((N=this.II)==null?void 0:N.De().layoutId),"currentAdapter does not match exiting layout",{slot:p?"slot: "+p.slotType:"",subLayout:vE(C)})&&(this.II=void 0)}; g.h.release=function(){GP.prototype.release.call(this);FK(this.II===void 0,"currentAdapter is still active during release");this.II=void 0}; g.h.QD=function(){return this.mx.get().getPresentingPlayerType()===2}; g.h.XO=function(p,C){function V(){dF(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(C)||S2("Composite stopRendering: Unexpected layout exit reason",this.slot,p,{layoutExitReason:C}))} function N(){this.II&&ib(this,this.II,C);if(this.QD()&&(!dF(this)||C!=="abandoned")){V.call(this);var X;var d=((X=this.pS.get().N.getVideoData())==null?void 0:X.clientPlaybackNonce)||"";X=O3(this.pS.get(),1).clientPlaybackNonce;this.kG.get().finishSegmentByCpn(d,X,kL(C,this.x_))}hSj(this,C)} function H(){if(this.II){var X=this.II;X.rP().currentState<2&&X.XO(X.De(),C);X=dF(this)&&C==="abandoned";this.QD()&&!X&&(V.call(this),this.kG.get().finishSegmentByCpn(this.II.De().layoutId,O3(this.pS.get(),1).clientPlaybackNonce,kL(C,this.x_)))}} FK(p.layoutId===this.De().layoutId,"StopRendering for wrong layout")&&S9(this.g2.C,C)&&(this.mj()?N.call(this):H.call(this))}; g.h.C1=function(p,C,V){GP.prototype.C1.call(this,p,C,V);C.layoutId===this.De().layoutId&&this.mx.get().removeListener(this)}; g.h.Zr=function(){return O3(this.pS.get(),1).clientPlaybackNonce}; g.h.mC=function(p,C,V){iqY(Object.assign({},pr(this),{cpn:p}));if(!dF(this)||V!==5)if(this.mj()){if(this.II&&this.II.De().layoutId!==C){var N=this.II.De().layoutId;N!==p&&S2("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:N,exitingCpn:p,enteringCpn:C});p=xL(V,this.x_);ib(this,this.II,p)}else this.II&&S2("onClipExited: active layout is entering again");C===this.Zr()&&a7Y(this,V)}else{if(this.II&&this.II.De().layoutId===p)s01(this,this.II,V);else{var H;S2("Exiting cpn does not match active cpn", this.slot,(N=this.II)==null?void 0:N.De(),{exitingCpn:p,transitionReason:V,activeCpn:(H=this.II)==null?void 0:H.De().layoutId})}C===this.Zr()&&(this.II!==void 0&&(S2("active adapter is not properly exited",this.slot,this.layout,{activeLayout:vE(this.II.De())}),s01(this,this.II,V)),a7Y(this,V),hSj(this,this.g2.C.T))}}; g.h.mj=function(){return Cs(this.x_.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.h.startRendering=function(p){this.x0(p)&&(p=this.g2,FK(p.T===1,"tickStartRendering: state is not initial"),p.T=2,this.wG())}; g.h.u7=function(p){dys(Object.assign({},pr(this),{cpn:p}));var C=this.H6.find(function(V){return V.De().layoutId===p}); C?(this.g2.T!==2&&(Rs9(this.u9,this.slot.slotId),FK(this.g2.T===2,"Expect started"),this.callback.gy(this.slot,this.layout)),this.ws(C),A4(this.j1,this.slot,C.De())):EUy(this,p)}; g.h.m5=function(p,C){C$S(this,p,C);var V=this.P1();V?j09(V,p,C)&&l71(this,"skipped"):t2e(this,"onSkipRequested")}; g.h.Pe=function(p,C){var V;a:{if(V=this.P1()){if(V29(this),Nky(V,p,C)&&(p=Hta(this,V,p,C),p!==void 0)){V={B3:V,QIx:this.H6[p]};break a}}else t2e(this,"SkipWithAdPodSkip");V=void 0}if(p=V)V=p.B3,C=p.QIx,p=V.De().layoutId,this.mj()?ib(this,V,"skipped"):V.XO(V.De(),"skipped"),V=C.De().layoutId,this.kG.get().finishSegmentByCpn(p,V,kL("skipped",this.x_))}; g.h.tP=function(){S2("Not used in html5_ssap_fix_layout_exit")}; g.h.Ld=function(p){var C;(C=this.P1())==null||C.Ld(p)}; g.h.GV=function(){S2("Not used in html5_ssap_fix_layout_exit")}; g.h.L6=function(p,C,V){var N;if(((N=this.P1())==null?void 0:N.De().layoutId)!==C.layoutId)return void S2("requestToExitSubLayout: wrong layout");l71(this,V)};g.m(hV,g.Y);g.h=hV.prototype;g.h.Bc=function(){return this.K1.Bc()}; g.h.De=function(){return this.K1.De()}; g.h.init=function(){var p=Ef(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);this.l5()}; g.h.l5=function(){this.K1.init()}; g.h.release=function(){var p=Ef(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);this.UA()}; g.h.UA=function(){this.K1.release()}; g.h.jt=function(){this.K1.jt()}; g.h.MS=function(){this.K1.MS()}; g.h.m5=function(p,C){S2("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Bc(),this.De(),{requestingSlot:p,requestingLayout:C})}; g.h.startRendering=function(p){p.layoutId!==this.De().layoutId?this.callback.OV(this.Bc(),p,new sf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.De().layoutId+("and LayoutType: "+this.De().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.mx.get().addListener(this),SU(this.oH(),this),$JQ(this.sZ.get()),rus(this.x_.get())||OQu(this.mx.get()),this.K1.startRendering(p))}; g.h.XO=function(p,C){this.mK=!0;this.K1.XO(p,C);this.mx.get().N.Kr();Yws(this.gY.get(),{});p=V0(this.mx.get(),1);p.isPaused()&&!g.r(p,2)&&this.mx.get().playVideo();this.mx.get().removeListener(this);this.mK&&this.K1.MP()}; g.h.gy=function(p,C){this.K1.gy(p,C)}; g.h.C1=function(p,C,V){C.layoutId===this.De().layoutId&&(this.mK=!1,KP(this.oH(),this));this.K1.C1(p,C,V);C.layoutId===this.De().layoutId&&V4(this.sZ.get())}; g.h.Eu=function(p){this.K1.Eu(p)}; g.h.Ld=function(p){if(p.state.isError()){var C,V;this.GV((C=p.state.UE)==null?void 0:C.errorCode,new sf("There was a player error during this media layout.",{playerErrorCode:(V=p.state.UE)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.K1.Ld(p)}; g.h.GV=function(p,C,V){this.K1.JH(p,C,V)}; g.h.onFullscreenToggled=function(p){this.K1.onFullscreenToggled(p)}; g.h.xq=function(p){this.K1.xq(p)}; g.h.gx=function(p){this.K1.gx(p)}; g.h.onVolumeChange=function(){this.K1.onVolumeChange()}; g.h.iM=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.vz=function(){}; g.h.Wz=function(){};g.h=sG.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){this.BV.get().addListener(this);this.mx.get().addListener(this);var p=Ef(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var C=Ef(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.S){var V=this.BV.get().ya.slice(-1)[0];V!==void 0&&(p=V.startSecs*1E3,C=(V.startSecs+V.uc)*1E3)}this.VT(p,C);var N;V=(N=this.pS.get().KA)==null?void 0:N.clientPlaybackNonce;N=this.layout.eb.adClientDataEntry;al(this.No.get(),{daiStateTrigger:{filledAdsDurationMs:C-p,contentCpn:V, adClientData:N}});var H=this.BV.get();H=M2y(H.V,p,C);H!==null&&(al(this.No.get(),{daiStateTrigger:{filledAdsDurationMs:H-p,contentCpn:V,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:N}}),this.kG.get().Th(H,C))}; g.h.release=function(){this.UA();this.BV.get().removeListener(this);this.mx.get().removeListener(this)}; g.h.startRendering=function(){this.cn();this.callback.gy(this.slot,this.layout)}; g.h.XO=function(p,C){this.Ej(C);this.driftRecoveryMs!==null&&(EG(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(J7s(this)-Ef(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.mx.get().N.uX()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.C1(this.slot,this.layout,C)}; g.h.Qd=function(){return!1}; g.h.u1=function(p){var C=Ef(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),V=Ef(this.layout.clientMetadata,"metadata_type_layout_exit_ms");p*=1E3;if(C<=p&&p0&&k6(this.T(),C)}; g.h.Vx=function(p){this.W.delete(p.slotId);for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next()){N=N.value;var H=N.trigger;H instanceof hM&&H.triggeringSlotId===p.slotId&&C.push(N)}C.length>0&&k6(this.T(),C)}; g.h.s8=function(p){for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next()){N=N.value;var H=N.trigger;H instanceof BS&&H.slotType===p.slotType&&H.T!==p.slotId&&C.push(N)}C.length>0&&k6(this.T(),C)}; g.h.SZ=function(p){this.V.add(p.slotId);for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next())N=N.value,N.trigger instanceof V9&&p.slotId===N.trigger.triggeringSlotId&&C.push(N);C.length>0&&k6(this.T(),C)}; g.h.EV=function(p){this.V.delete(p.slotId);this.S.add(p.slotId);for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next())if(N=N.value,N.trigger instanceof NB)p.slotId===N.trigger.triggeringSlotId&&C.push(N);else if(N.trigger instanceof Rl){var H=N.trigger;p.slotId===H.slotId&&this.C.has(H.triggeringLayoutId)&&C.push(N)}C.length>0&&k6(this.T(),C)}; g.h.Id=function(p){for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next())N=N.value,N.trigger instanceof HP&&p.slotId===N.trigger.triggeringSlotId&&C.push(N);C.length>0&&k6(this.T(),C)}; g.h.ri=function(p){for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next())N=N.value,N.trigger instanceof Xg&&p.slotId===N.trigger.triggeringSlotId&&C.push(N);C.length>0&&k6(this.T(),C)}; g.h.Jp=function(p,C){this.Y.add(C.layoutId)}; g.h.yf=function(p,C){this.Y.delete(C.layoutId)}; g.h.gy=function(p,C){this.C.add(C.layoutId);for(var V=[],N=g.F(this.ix.values()),H=N.next();!H.done;H=N.next())if(H=H.value,H.trigger instanceof nr)C.layoutId===H.trigger.triggeringLayoutId&&V.push(H);else if(H.trigger instanceof rF){var X=H.trigger;p.slotType===X.slotType&&C.layoutType===X.layoutType&&C.layoutId!==X.T&&V.push(H)}else H.trigger instanceof Rl&&(X=H.trigger,C.layoutId===X.triggeringLayoutId&&this.S.has(X.slotId)&&V.push(H));V.length>0&&k6(this.T(),V)}; g.h.C1=function(p,C,V){this.C.delete(C.layoutId);p=[];for(var N=g.F(this.ix.values()),H=N.next();!H.done;H=N.next())if(H=H.value,H.trigger instanceof PS&&C.layoutId===H.trigger.triggeringLayoutId&&p.push(H),H.trigger instanceof eI){var X=H.trigger;C.layoutId===X.triggeringLayoutId&&X.T.includes(V)&&p.push(H)}p.length>0&&k6(this.T(),p)}; g.h.WR=function(){}; g.h.zp=function(){this.S.clear()}; g.h.zA=function(){};g.m(zd,g.Y);zd.prototype.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof YP))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in CloseRequestedTriggerAdapter");this.ix.set(C.triggerId,new ET(p,C,V,N))}; zd.prototype.Dr=function(p){this.ix.delete(p.triggerId)};g.m(na,g.Y);na.prototype.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof xP||C instanceof pj))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.ix.set(C.triggerId,new ET(p,C,V,N))}; na.prototype.Dr=function(p){this.ix.delete(p.triggerId)}; na.prototype.zp=function(p){for(var C=[],V=C.push,N=V.apply,H=[],X=g.F(this.ix.values()),d=X.next();!d.done;d=X.next())d=d.value,d.trigger instanceof xP&&d.trigger.Y8===p&&H.push(d);N.call(V,C,g.K(H));V=C.push;N=V.apply;H=[];X=g.F(this.ix.values());for(d=X.next();!d.done;d=X.next())d=d.value,d.trigger instanceof pj&&d.trigger.T!==p&&H.push(d);N.call(V,C,g.K(H));C.length&&k6(this.T(),C)}; na.prototype.zA=function(p){for(var C=[],V=C.push,N=V.apply,H=[],X=g.F(this.ix.values()),d=X.next();!d.done;d=X.next()){d=d.value;var a=d.trigger;a instanceof pj&&a.T===p&&H.push(d)}N.call(V,C,g.K(H));C.length&&k6(this.T(),C)};g.m(e8,g.Y);g.h=e8.prototype;g.h.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");var H="adtriggercuerange:"+C.triggerId;if(C instanceof WS)IkH(this,p,C,V,N,H,C.T.start,C.T.end,C.Y8,C.visible);else if(C instanceof zT)IkH(this,p,C,V,N,H,0x7ffffffffffff,0x8000000000000,C.Y8,C.visible);else throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in CueRangeTriggerAdapter");}; g.h.Dr=function(p){var C=this.ix.get(p.triggerId);C&&this.iJ.get().removeCueRange(C.cueRangeId);this.ix.delete(p.triggerId)}; g.h.onCueRangeEnter=function(p){var C=bWv(this,p);if(C&&(C=this.ix.get(C)))if(g.r(V0(this.mx.get()),32))this.T.add(C.cueRangeId);else{var V=C==null?void 0:C.MY.trigger;if(V instanceof WS||V instanceof zT){if(fR(this.context.x_.get())){var N=C.MY.slot,H=C.MY.layout,X={};this.context.Rx.Vr("cre",(X.ca=C.MY.category,X.tt=V.triggerType,X.st=N.slotType,X.lt=H==null?void 0:H.layoutType,X.cid=p,X))}k6(this.C(),[C.MY])}}}; g.h.onCueRangeExit=function(p){(p=bWv(this,p))&&(p=this.ix.get(p))&&this.T.delete(p.cueRangeId)}; g.h.Ld=function(p){if(D7(p,16)<0){p=g.F(this.T);for(var C=p.next();!C.done;C=p.next())this.onCueRangeEnter(C.value,!0);this.T.clear()}}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.WR=function(){}; g.h.Eu=function(){}; g.h.onFullscreenToggled=function(){}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.gx=function(){}; g.h.onVolumeChange=function(){}; g.h.vz=function(){}; g.h.Wz=function(){};g.m(P0,g.Y);g.h=P0.prototype; g.h.HB=function(p,C,V,N){if(this.C.has(C.triggerId)||this.V.has(C.triggerId))throw new G("Tried to re-register the trigger.");p=new ET(p,C,V,N);if(p.trigger instanceof gF)this.C.set(p.trigger.triggerId,p);else if(p.trigger instanceof wF)this.V.set(p.trigger.triggerId,p);else throw new G("Incorrect TriggerType: Tried to register trigger of type "+p.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.C.has(p.trigger.triggerId)&&p.slot.slotId===this.T&&k6(this.S(),[p])}; g.h.Dr=function(p){this.C.delete(p.triggerId);this.V.delete(p.triggerId)}; g.h.nZ=function(p){p=p.slotId;if(this.T!==p){var C=[];this.T!=null&&C.push.apply(C,g.K(Aqj(this.V,this.T)));p!=null&&C.push.apply(C,g.K(Aqj(this.C,p)));this.T=p;C.length&&k6(this.S(),C)}}; g.h.mC=function(){}; g.h.u7=function(){};g.m(w6,g.Y);g.h=w6.prototype;g.h.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof GT))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.ix.set(C.triggerId,new ET(p,C,V,N))}; g.h.Dr=function(p){this.ix.delete(p.triggerId)}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){};g.m($x,g.Y);g.h=$x.prototype;g.h.WR=function(p,C){for(var V=[],N=g.F(this.ix.values()),H=N.next();!H.done;H=N.next()){H=H.value;var X=H.trigger;X.opportunityType===p&&(X.associatedSlotId&&X.associatedSlotId!==C||V.push(H))}V.length&&k6(this.T(),V)}; g.h.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof gJj))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in OpportunityEventTriggerAdapter");this.ix.set(C.triggerId,new ET(p,C,V,N))}; g.h.Dr=function(p){this.ix.delete(p.triggerId)}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.gy=function(){}; g.h.C1=function(){};g.m(La,g.Y);g.h=La.prototype;g.h.HB=function(p,C,V,N){p=new ET(p,C,V,N);if(C instanceof $P||C instanceof Q4||C instanceof Lr||C instanceof Cj||C instanceof LAv){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");this.ix.set(C.triggerId,p);V=V.slotId;p=this.V.has(V)?this.V.get(V):new Set;p.add(C);this.V.set(V,p)}else throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in PrefetchTriggerAdapter");}; g.h.Dr=function(p){this.ix.delete(p.triggerId)}; g.h.GI=function(p){var C=p.slotId;if(this.V.has(C)){p=0;var V=new Set;C=g.F(this.V.get(C));for(var N=C.next();!N.done;N=C.next())if(N=N.value,V.add(N.triggerId),N instanceof Q4&&N.breakDurationMs){p=N.breakDurationMs;break}g6(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",p,V)}}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.WR=function(){}; g.h.Qd=function(p){if(this.T){this.C&&this.C.stop();this.S&&g.HF(this.S);p=p.uc*1E3+1E3;for(var C=0,V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next())N=N.value.trigger,N instanceof $P&&N.breakDurationMs<=p&&N.breakDurationMs>C&&(C=N.breakDurationMs);p=C;if(p>0)return g6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",p,new Set,!0),g6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",p,new Set,!1),!0}return!1}; g.h.u1=function(){}; g.h.zp=function(p){this.T&&this.T.contentCpn!==p?(S2("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.T.contentCpn}),W0(this)):kfS(this)}; g.h.zA=function(p){this.T&&this.T.contentCpn!==p&&S2("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.T.contentCpn},!0);W0(this)}; g.h.Li=function(p){var C=this;if(this.T)S2("Unexpected multiple fetch instructions for the current content");else{this.T=p;p=YFa(p);this.C=new g.N8(function(){kfS(C)},p?p:6E5); this.C.start();this.S=new g.N8(function(){C.T&&(C.C&&(C.C.stop(),C.C.start()),oYX(C,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},xgv(this.T)); p=this.mx.get().getCurrentTimeSec(1,!1);for(var V=g.F(this.BV.get().ya),N=V.next();!N.done;N=V.next())N=N.value,tV(this.No.get(),"nocache","ct."+Date.now()+";cmt."+p+";d."+N.uc.toFixed(3)+";tw."+(N.startSecs-p)+";cid."+N.identifier+";")}}; g.h.CS=function(){g.Y.prototype.CS.call(this);W0(this)};g.m(Qn,g.Y);g.h=Qn.prototype;g.h.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof ad))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.ix.set(C.triggerId,new ET(p,C,V,N));p=this.T.has(C.triggeringLayoutId)?this.T.get(C.triggeringLayoutId):new Set;p.add(C);this.T.set(C.triggeringLayoutId,p)}; g.h.Dr=function(p){this.ix.delete(p.triggerId);if(!(p instanceof ad))throw new G("Incorrect TriggerType: Tried to unregister trigger of type "+p.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var C=this.C.get(p.triggerId);C&&(C.dispose(),this.C.delete(p.triggerId));if(C=this.T.get(p.triggeringLayoutId))C.delete(p),C.size===0&&this.T.delete(p.triggeringLayoutId)}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.gy=function(p,C){var V=this;if(this.T.has(C.layoutId)){p=this.T.get(C.layoutId);p=g.F(p);var N=p.next();for(C={};!N.done;C={lk:void 0},N=p.next())C.lk=N.value,N=new g.N8(function(H){return function(){var X=V.ix.get(H.lk.triggerId);k6(V.V(),[X])}}(C),C.lk.durationMs),N.start(),this.C.set(C.lk.triggerId,N)}}; g.h.C1=function(){};g.m(r6,g.Y);r6.prototype.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof ol))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in VideoTransitionTriggerAdapter.");this.ix.set(C.triggerId,new ET(p,C,V,N))}; r6.prototype.Dr=function(p){this.ix.delete(p.triggerId)};Cz.prototype.eX=function(p){return p.kind==="AD_PLACEMENT_KIND_START"};g.m(NO,g.Y);g.h=NO.prototype;g.h.logEvent=function(p){this.pV(p)}; g.h.Qr=function(p,C,V){this.pV(p,void 0,void 0,void 0,C,void 0,void 0,void 0,C.adSlotLoggingData,void 0,void 0,V)}; g.h.Rd=function(p,C,V,N){this.pV(p,void 0,void 0,void 0,C,V?V:void 0,void 0,void 0,C.adSlotLoggingData,V?V.adLayoutLoggingData:void 0,void 0,N)}; g.h.KK=function(p,C,V,N){Cs(this.x_.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"trigger:",V,"slot:",C,"layout:",N);Mz(this.T.get())&&this.pV(p,void 0,void 0,void 0,C,N?N:void 0,void 0,V,C.adSlotLoggingData,N?N.adLayoutLoggingData:void 0)}; g.h.BX=function(p,C,V,N,H){this.pV(p,C,V,N,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H)}; g.h.Yb=function(p,C,V,N){this.pV("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,V,N,void 0,void 0,V.adSlotLoggingData,N?N.adLayoutLoggingData:void 0,{errorType:p,errorMessage:C})}; g.h.pV=function(p,C,V,N,H,X,d,a,E,l,t,c){var T=this;c=c===void 0?0:c;Cs(this.x_.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"slot:",H,"layout:",X,"ping:",d,"Opportunity:",{opportunityType:C,associatedSlotId:V,Qn$:N,jnV:a,adSlotLoggingData:E,adLayoutLoggingData:l});try{var M=function(){if(!T.x_.get().N.K().G("html5_disable_client_tmp_logs")&&p!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){p||S2("Empty PACF event type",H,X);var J=Mz(T.T.get()),S={eventType:p,eventOrder:++T.eventCount},D={}; H&&(D.slotData=Tm(J,H));X&&(D.layoutData=DM1(J,X));d&&(D.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:d.T.serializedAdPingMetadata,pingIndex:d.index});a&&(D.triggerData=cU(a.trigger,a.category));C&&(D.opportunityData=u39(J,C,V,N));J={organicPlaybackContext:{contentCpn:O3(T.pS.get(),1).clientPlaybackNonce}};J.organicPlaybackContext.isLivePlayback=O3(T.pS.get(),1).p4;var Z;J.organicPlaybackContext.isMdxPlayback=(Z=O3(T.pS.get(),1))==null?void 0:Z.isMdxPlayback; var f;if((f=O3(T.pS.get(),1))==null?0:f.daiEnabled)J.organicPlaybackContext.isDaiContent=!0;var q;if(Z=(q=O3(T.pS.get(),2))==null?void 0:q.clientPlaybackNonce)J.adVideoPlaybackContext={adVideoCpn:Z};J&&(D.externalContext=J);S.adClientData=D;E&&(S.serializedSlotAdServingData=E.serializedSlotAdServingDataEntry);l&&(S.serializedAdServingData=l.serializedAdServingDataEntry);t&&(S.errorInfo=t);g.t1("adsClientStateChange",{adsClientEvent:S})}}; c&&c>0?g.Vl(g.HW(),function(){return M()},c):M()}catch(J){Cs(this.x_.get(),"html5_log_pacf_logging_errors")&&g.Vl(g.HW(),function(){S2(J instanceof Error?J:String(J),H,X,{pacf_message:"exception during pacf logging"})})}};var QOP=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.m(HY,NO);g.h=HY.prototype; g.h.Qr=function(p,C,V){NO.prototype.Qr.call(this,p,C,V);fR(this.x_.get())&&(V={},this.context.Rx.Vr("pacf",(V.et=p,V.st=C.slotType,V.si=C.slotId,V)))}; g.h.Rd=function(p,C,V,N){var H=QOP.has(p);NO.prototype.Rd.call(this,p,C,V,N);fR(this.x_.get(),H)&&(N={},this.context.Rx.Vr("pacf",(N.et=p,N.st=C.slotType,N.si=C.slotId,N.lt=V==null?void 0:V.layoutType,N.li=V==null?void 0:V.layoutId,N.p_ac=V==null?void 0:V.layoutId,N)))}; g.h.BX=function(p,C,V,N,H){NO.prototype.BX.call(this,p,C,V,N,H);fR(this.x_.get())&&(V={},this.context.Rx.Vr("pacf",(V.et=p,V.ot=C,V.ss=N==null?void 0:N.length,V)))}; g.h.KK=function(p,C,V,N){NO.prototype.KK.call(this,p,C,V,N);if(fR(this.x_.get())){var H={};this.context.Rx.Vr("pacf",(H.et=p,H.tt=V.trigger.triggerType,H.tc=V.category,H.st=C.slotType,H.si=C.slotId,H.lt=N==null?void 0:N.layoutType,H.li=N==null?void 0:N.layoutId,H.p_ac=N==null?void 0:N.layoutId,H))}}; g.h.Yb=function(p,C,V,N){NO.prototype.Yb.call(this,p,C,V,N);if(fR(this.x_.get(),!0)){var H={};this.context.Rx.Vr("perror",(H.ert=p,H.erm=C,H.st=V.slotType,H.si=V.slotId,H.lt=N==null?void 0:N.layoutType,H.li=N==null?void 0:N.layoutId,H.p_ac=N==null?void 0:N.layoutId,H))}}; g.h.pV=function(p,C,V,N,H,X,d,a,E,l,t){if(g.bH(this.x_.get().N.K())){var c=this.x_.get();c=g.mi(c.N.K().experiments,"H5_async_logging_delay_ms")}else c=void 0;NO.prototype.pV.call(this,p,C,V,N,H,X,d,a,E,l,t,c)};XF.prototype.clear=function(){this.T.clear()};h5.prototype.resolve=function(p){dr(this,p)}; h5.prototype.reject=function(p){it(this,p)}; h5.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; h5.prototype.wait=function(){var p=this;return function V(){return lje(V,function(N){if(N.C==1)return N.Y=0,N.S=2,g.y(N,{Gb:p},4);if(N.C!=2)return N.return(N.T);g.KY(N);return g.Dj(N,0)})}()}; var sdQ=wo(function(p){return si(p)?p instanceof h5:!1});var mZ=window.hFn||"pt-BR";S3.prototype.Ll=function(p){this.client=p}; S3.prototype.T=function(){this.clear();this.csn=g.bz()}; S3.prototype.clear=function(){this.V.clear();this.C.clear();this.S.clear();this.csn=null};DF.prototype.Ll=function(p){g.NU(Kz().Ll).bind(Kz())(p)}; DF.prototype.clear=function(){g.NU(Kz().clear).bind(Kz())()};g.h=ut.prototype;g.h.Ll=function(p){this.client=p}; g.h.Bl=function(p,C){var V=this;C=C===void 0?{}:C;g.NU(function(){var N,H,X,d=((N=g.n(p==null?void 0:p.commandMetadata,g.mm))==null?void 0:N.rootVe)||((H=g.n(p==null?void 0:p.commandMetadata,MkE))==null?void 0:(X=H.screenVisualElement)==null?void 0:X.uiType);if(d){N=g.n(p==null?void 0:p.commandMetadata,b65);if(N==null?0:N.parentTrackingParams){var a=g.ym(N.parentTrackingParams);if(N.parentCsn)var E=N.parentCsn}else C.clickedVisualElement?a=C.clickedVisualElement:p.clickTrackingParams&&(a=g.ym(p.clickTrackingParams)); a:{N=g.n(p,g.VB);H=g.n(p,O6P);if(N){if(H=jwL(N,"VIDEO")){N={token:H,videoId:N.videoId};break a}}else if(H&&(N=jwL(H,"PLAYLIST"))){N={token:N,playlistId:H.playlistId};break a}N=void 0}C=Object.assign({},{cttAuthInfo:N,parentCsn:E},C);if(g.Zr("expectation_logging")){var l;C.loggingExpectations=((l=g.n(p==null?void 0:p.commandMetadata,MkE))==null?void 0:l.loggingExpectations)||void 0}Ui(V,d,a,C)}else g.eG(new g.Bw("Error: Trying to create a new screen without a rootVeType",p))})()}; g.h.clickCommand=function(p,C,V){p=p.clickTrackingParams;V=V===void 0?0:V;p?(V=g.bz(V===void 0?0:V))?(ElQ(this.client,V,g.ym(p),C),C=!0):C=!1:C=!1;return C}; g.h.stateChanged=function(p,C,V){this.visualElementStateChanged(g.ym(p),C,V===void 0?0:V)}; g.h.visualElementStateChanged=function(p,C,V){V=V===void 0?0:V;V===0&&this.C.has(V)?this.J.push([p,C]):iFa(this,p,C,V)};qO.prototype.fetch=function(p,C,V){var N=this,H=aSX(p,C,V);return new Promise(function(X,d){function a(){if(V==null?0:V.xE)try{var l=N.handleResponse(p,H.status,H.response,V);X(l)}catch(t){d(t)}else X(N.handleResponse(p,H.status,H.response,V))} H.onerror=a;H.onload=a;var E;H.send((E=C.body)!=null?E:null)})}; qO.prototype.handleResponse=function(p,C,V,N){V=V.replace(")]}'","");try{var H=JSON.parse(V)}catch(X){g.eG(new g.Bw("JSON parsing failed after XHR fetch",p,C,V));if((N==null?0:N.xE)&&V)throw new g.vH(1,"JSON parsing failed after XHR fetch");H={}}C!==200&&(g.eG(new g.Bw("XHR API fetch failed",p,C,V)),H=Object.assign({},H,{errorMetadata:{status:C}}));return H};IH.getInstance=function(){var p=g.zV("ytglobal.storage_");p||(p=new IH,g.YH("ytglobal.storage_",p));return p}; IH.prototype.estimate=function(){var p,C,V;return g.I(function(N){p=navigator;return((C=p.storage)==null?0:C.estimate)?N.return(p.storage.estimate()):((V=p.webkitTemporaryStorage)==null?0:V.queryUsageAndQuota)?N.return(E_a()):N.return()})}; g.YH("ytglobal.storageClass_",IH);E2.prototype.SH=function(p){this.handleError(p)}; E2.prototype.logEvent=function(p,C){switch(p){case "IDB_DATA_CORRUPTED":g.Zr("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",C);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",C);break;case "IS_SUPPORTED_COMPLETED":g.Zr("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",C);break;case "QUOTA_EXCEEDED":tTS(this,C);break;case "TRANSACTION_ENDED":this.V&&Math.random()<=.1&&this.T("idbTransactionEnded",C);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":p= Object.assign({},C,{hasWindowUnloaded:this.C}),this.T("idbTransactionAborted",p)}};var wK={},QYX=g.HC("yt-player-local-media",{UK:(wK.index={c_:2},wK.media={c_:2},wK.captions={c_:5},wK),shared:!1,upgrade:function(p,C){C(2)&&(g.A1(p,"index"),g.A1(p,"media"));C(5)&&g.A1(p,"captions");C(6)&&(op(p,"metadata"),op(p,"playerdata"))}, version:5});var rc2={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},$R;a:{var LM=g.f0();LM=LM.toLowerCase();if(g.K0(LM,"android")){var BwF=LM.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(BwF){var G91=parseFloat(BwF[1]);if(G91<100){$R=G91;break a}}var p4f=LM.match("("+Object.keys(rc2).join("|")+")");$R=p4f?rc2[p4f[0]]:0}else $R=void 0}var Ue=$R,ZW=Ue>=0;var maa=window;var caY=SS(function(){var p,C;return(C=(p=window).matchMedia)==null?void 0:C.call(p,"(prefers-reduced-motion: reduce)").matches});var A5;g.bt=new kY;A5=0;var oH={CZ:function(p){p.reverse()}, z6:function(p,C){p.splice(0,C)}, rk:function(p,C){var V=p[0];p[0]=p[C%p.length];p[C%p.length]=V}};var yre=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var gB=Kt9()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.G4?!0:!1;var gru={Jpa:"adunit",rga:"detailpage",L$_:"editpage",GUe:"embedded",Thk:"leanback",xB$:"previewpage",IM_:"profilepage",P3:"unplugged",nb_:"playlistoverview",ZMn:"sponsorshipsoffer",Q8_:"shortspage",nm$:"handlesclaiming",fSe:"immersivelivepage",C0_:"creatormusic",WlS:"immersivelivepreviewpage",tqS:"admintoolyurt",Jda:"shortsaudiopivot"};var gK;gK={};g.wr=(gK.STOP_EVENT_PROPAGATION="html5-stop-propagation",gK.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",gK.IV_DRAWER_OPEN="ytp-iv-drawer-open",gK.MAIN_VIDEO="html5-main-video",gK.VIDEO_CONTAINER="html5-video-container",gK.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",gK.HOUSE_BRAND="house-brand",gK);var yaL={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var bPy={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},A49={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"},ZuY={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var TrS={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.pw.prototype.getLanguageInfo=function(){return this.K4}; g.pw.prototype.getXtags=function(){if(!this.xtags){var p=this.id.split(";");p.length>1&&(this.xtags=p[1])}return this.xtags}; g.pw.prototype.toString=function(){return this.K4.name}; g.pw.prototype.getLanguageInfo=g.pw.prototype.getLanguageInfo;Cw.prototype.sE=function(p){return this.C===p.C&&this.T===p.T&&this.V===p.V&&this.reason===p.reason&&(!VS||this.F$===p.F$)}; Cw.prototype.isLocked=function(){return this.V&&!!this.C&&this.C===this.T}; Cw.prototype.compose=function(p){if(p.V&&Ni(p))return xB;if(p.V||Ni(this))return p;if(this.V||Ni(p))return this;var C=this.C&&p.C?Math.max(this.C,p.C):this.C||p.C,V=this.T&&p.T?Math.min(this.T,p.T):this.T||p.T;C=Math.min(C,V);var N=0;VS&&(N=this.F$!==0&&p.F$!==0?Math.min(this.F$,p.F$):this.F$===0?p.F$:this.F$);return VS&&C===this.C&&V===this.T&&N===this.F$||!VS&&C===this.C&&V===this.T?this:VS?new Cw(C,V,!1,V===this.T&&N===this.F$?this.reason:p.reason,N):new Cw(C,V,!1,V===this.T?this.reason:p.reason)}; Cw.prototype.S=function(p){return!p.video||VS&&this.F$!==0&&this.F$=0}; g.h.Ax=function(){var p=this.segments[this.segments.length-1];return p?p.endTime:NaN}; g.h.Wa=function(){return this.segments[0].startTime}; g.h.Fp=function(){return this.segments.length}; g.h.MB=function(){return 0}; g.h.tU=function(p){return(p=this.Y2(p))?p.LS:-1}; g.h.EM=function(p){return(p=this.xz(p))?p.sourceURL:""}; g.h.getStartTime=function(p){return(p=this.xz(p))?p.startTime:0}; g.h.TV=function(p){return this.getStartTime(p)+this.getDuration(p)}; g.h.ma=CY(1);g.h.isLoaded=function(){return this.segments.length>0}; g.h.xz=function(p){if(this.T&&this.T.LS===p)return this.T;p=g.Xv(this.segments,new Uc(p,0,0,0,""),function(C,V){return C.LS-V.LS}); return this.T=p>=0?this.segments[p]:null}; g.h.Y2=function(p){if(this.T&&this.T.startTime<=p&&p=0?this.segments[p]:this.segments[Math.max(0,-p-2)]}; g.h.append=function(p){if(p.length)if(p=g.p6(p),this.segments.length){var C=this.segments.length?g.wY(this.segments).endTime:0,V=p[0].LS-this.Ha();V>1&&B1H(this.segments);for(V=V>0?0:-V+1;Vp.LS&&this.index.V6()<=p.LS+1}; g.h.update=function(p,C,V){this.index.append(p);h4L(this.index,V);p=this.index;p.C=C;p.V="update"}; g.h.rI=function(){return this.N$()?!0:Kp.prototype.rI.call(this)}; g.h.P8=function(p,C){var V=this.index.EM(p),N=this.index.getStartTime(p),H=this.index.getDuration(p),X;C?H=X=0:X=this.info.F$>0?this.info.F$*H:1E3;return new oZ([new fp(3,this,void 0,"liveCreateRequestInfoForSegment",p,N,H,0,X,!C)],V)}; g.h.EB=function(){return this.N$()?0:this.initRange.length}; g.h.v2=function(){return!1};e5.prototype.update=function(p){var C=void 0;this.C&&(C=this.C);var V=new e5,N=Array.from(p.getElementsByTagName("S"));if(N.length){var H=+RZ(p,"timescale")||1,X=(+N[0].getAttribute("t")||0)/H,d=+RZ(p,"startNumber")||0;V.S=X;var a=C?C.startSecs+C.uc:0,E=Date.parse(NFa(RZ(p,"yt:segmentIngestTime")))/1E3;V.W=p.parentElement.tagName==="SegmentTemplate";V.W&&(V.D=RZ(p,"media"));p=C?d-C.LS:1;V.Y=p>0?0:-p+1;p=g.F(N);for(N=p.next();!N.done;N=p.next()){N=N.value;for(var l=+N.getAttribute("d")/H,t=(+N.getAttribute("yt:sid")|| 0)/H,c=+N.getAttribute("r")||0,T=0;T<=c;T++)if(C&&d<=C.LS)d++;else{var M=new jlY(d,a,l,E+t,X);V.T.push(M);var J=N;var S=H,D=M.startSecs;M=J.getAttribute("yt:cuepointTimeOffset");var Z=J.getAttribute("yt:cuepointDuration");if(M&&Z){M=Number(M);D=-M/S+D;S=Number(Z)/S;Z=J.getAttribute("yt:cuepointContext")||null;var f=J.getAttribute("yt:cuepointIdentifier")||"";J=J.getAttribute("yt:cuepointEvent")||"";J=new xg(D,S,Z,f,jtc[J]||"unknown",M)}else J=null;J&&V.V.push(J);d++;a+=l;X+=l;E+=l+t}}V.T.length&& (V.C=g.wY(V.T))}this.Y=V.Y;this.C=V.C||this.C;g.C6(this.T,V.T);g.C6(this.V,V.V);this.W=V.W;this.D=V.D;this.S===-1&&(this.S=V.getStreamTimeOffset())}; e5.prototype.getStreamTimeOffset=function(){return this.S===-1?0:this.S};g.m(wz,g.fw);g.h=wz.prototype;g.h.Ve=function(){return this.HR}; g.h.fk=function(p,C){p=$E(this,p);return p>=0&&(C||!this.segments[p].pending)}; g.h.V6=function(){return this.MO?this.segments.length?this.Y2(this.Wa()).LS:-1:g.fw.prototype.V6.call(this)}; g.h.Wa=function(){if(this.EO)return 0;if(!this.MO)return g.fw.prototype.Wa.call(this);if(!this.segments.length)return 0;var p=Math.max(g.wY(this.segments).endTime-this.nV,0);return this.AE>0&&this.Y2(p).LS0)return this.x5/1E3;if(!this.segments.length)return g.fw.prototype.Ax.call(this);var p=this.Ha();if(!this.MO||p<=this.segments[this.segments.length-1].LS)p=this.segments[this.segments.length-1];else{var C=this.segments[this.segments.length-1];p=new Uc(p,Math.max(0,C.startTime-(C.LS-p)*this.HR),this.HR,0,"sq/"+p,void 0,void 0,!0)}return this.EO?Math.min(this.nV,p.endTime):p.endTime}; g.h.Fp=function(){return this.MO?this.segments.length?this.Ha()-this.V6()+1:0:g.fw.prototype.Fp.call(this)}; g.h.Ha=function(){var p=Math.min(this.Qx,Math.max(g.fw.prototype.Ha.call(this),this.J8)),C=this.nV*1E3;C=this.x5>0&&this.x50&&this.J8>0&&!C&&(C=this.Y2(this.nV))&&(p=Math.min(C.LS-1,p));return p}; g.h.X_=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.h.tM=function(p){var C=$E(this,p.LS);if(C>=0)this.segments[C]=p;else if(this.segments.splice(-(C+1),0,p),this.KQ&&p.LS%(300/this.HR)===0){var V=this.segments[0].LS,N=Math.floor(this.KQ/this.HR);p=p.LS-N;C=-(C+1)-N;C>0&&p>V&&(this.segments=this.segments.slice(C))}}; g.h.b5=function(){return this.J8}; g.h.KJ=function(p){return PR?!this.C&&p>=0&&this.Ha()<=p:g.fw.prototype.KJ.call(this,p)}; g.h.Y2=function(p){if(!this.MO)return g.fw.prototype.Y2.call(this,p);if(!this.segments.length)return null;var C=this.segments[this.segments.length-1];if(p=C.endTime)C=C.LS+Math.floor((p-C.endTime)/this.HR+1);else{C=ir(this.segments,function(N){return p=N.endTime?1:0}); if(C>=0)return this.segments[C];var V=-(C+1);C=this.segments[V-1];V=this.segments[V];C=Math.floor((p-C.endTime)/((V.startTime-C.endTime)/(V.LS-C.LS-1))+1)+C.LS}return this.xz(C)}; g.h.xz=function(p){if(!this.MO)return g.fw.prototype.xz.call(this,p);if(!this.segments.length)return null;var C=$E(this,p);if(C>=0)return this.segments[C];var V=-(C+1);C=this.HR;if(V===0)var N=Math.max(0,this.segments[0].startTime-(this.segments[0].LS-p)*C);else V===this.segments.length?(N=this.segments[this.segments.length-1],N=N.endTime+(p-N.LS-1)*C):(N=this.segments[V-1],C=this.segments[V],C=(C.startTime-N.endTime)/(C.LS-N.LS-1),N=N.endTime+(p-N.LS-1)*C);return new Uc(p,N,C,0,"sq/"+p,void 0,void 0, !0)}; var PR=!1;g.m(Lp,zn);g.h=Lp.prototype;g.h.zq=function(){return!0}; g.h.rI=function(){return!0}; g.h.pw=function(p){return this.NQ()&&p.V&&!p.S||!p.T.index.KJ(p.LS)}; g.h.ZU=function(){}; g.h.V8=function(p,C){return typeof p!=="number"||isFinite(p)?zn.prototype.V8.call(this,p,C===void 0?!1:C):new oZ([new fp(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ym,void 0,this.Ym*this.info.F$)],"")}; g.h.P8=function(p,C){var V=V===void 0?!1:V;if(this.index.fk(p))return zn.prototype.P8.call(this,p,C);var N=this.index.getStartTime(p),H=Math.round(this.Ym*this.info.F$),X=this.Ym;C&&(X=H=0);return new oZ([new fp(V?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",p,N,X,void 0,H,!C)],p>=0?"sq/"+p:"")};g.m(gz,Kp);g.h=gz.prototype;g.h.V1=function(){return!1}; g.h.NQ=function(){return!1}; g.h.zq=function(){return!1}; g.h.ZU=function(){return new oZ([new fp(1,this,void 0,"otfInit")],this.W)}; g.h.Y0=function(){return null}; g.h.Jm=function(p){this.pw(p);return EPu(this,IZ(p),!1)}; g.h.V8=function(p,C){C=C===void 0?!1:C;p=this.index.tU(p);C&&(p=Math.min(this.index.Ha(),p+1));return EPu(this,p,!0)}; g.h.Ky=function(p){p.info.type===1&&(this.T||(this.T=R4(p.T)),p.C&&p.C.uri==="http://youtube.com/streaming/otf/durations/112015"&&lQe(this,p.C))}; g.h.pw=function(p){return p.V===0?!0:this.index.Ha()>p.LS&&this.index.V6()<=p.LS+1}; g.h.EB=function(){return 0}; g.h.v2=function(){return!1};WR.prototype.b9=function(){return this.T.b9()};g.h=g.Cb.prototype;g.h.fk=function(p){return p<=this.Ha()}; g.h.MB=function(p){return this.offsets[p]}; g.h.getStartTime=function(p){return this.wI[p]/this.T}; g.h.TV=function(p){return this.getStartTime(p)+this.getDuration(p)}; g.h.ma=CY(0);g.h.Xt=function(){return NaN}; g.h.getDuration=function(p){p=this.e$(p);return p>=0?p/this.T:-1}; g.h.e$=function(p){return p+1=0}; g.h.Ax=function(){return this.C?this.wI[this.count]/this.T:NaN}; g.h.Wa=function(){return 0}; g.h.Fp=function(){return this.count}; g.h.EM=function(){return""}; g.h.tU=function(p){p=g.Xv(this.wI.subarray(0,this.count),p*this.T);return p>=0?p:Math.max(0,-p-2)}; g.h.isLoaded=function(){return this.Ha()>=0}; g.h.Ua=function(p,C){if(p>=this.Ha())return 0;var V=0;for(C=this.getStartTime(p)+C;pthis.getStartTime(p);p++)V=Math.max(V,FLa(this,p)/this.getDuration(p));return V}; g.h.resize=function(p){p+=2;var C=this.offsets;this.offsets=new Float64Array(p+1);var V=this.wI;this.wI=new Float64Array(p+1);for(p=0;p0&&p&&(V=V.range.end+1,p=Math.min(p,this.info.contentLength-V),p>0&&N.push(new fp(4,this,Z0(V,p),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,C)));return new oZ(N)}; g.h.Ky=function(p){if(p.info.type===1){if(this.T)return;this.T=R4(p.T)}else if(p.info.type===2){if(this.W||this.index.Ha()>=0)return;if(g.Cx(this.info)){var C=this.index,V=p.b9();p=p.info.range.start;var N=g.eo(V,0,1936286840);V=FkL(N);C.T=V.Sz;var H=V.wN;C.offsets[0]=V.iA+p+N.size;C.wI[0]=H;C.C=!0;p=V.Fi.length;for(N=0;N0&&p===X[0].EJ)for(p=0;p=C+V)break}H.length||g.nm(new g.Bw("b189619593",""+p,""+C,""+V));return new oZ(H)}; g.h.QE=function(p){for(var C=this.Nz(p.info),V=p.info.range.start+p.info.C,N=[],H=0;H=this.index.MB(V+1);)V++;return this.xR(V,C,p.V).wV}; g.h.pw=function(p){p.Vo();return this.rI()?!0:p.range.end+1this.info.contentLength&&(C=new D0(C.start,this.info.contentLength-1)),new oZ([new fp(4,p.T,C,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,p.clipId)]);p.type===4&&(p=this.Nz(p),p=p[p.length-1]);var V=0,N=p.range.start+p.C+p.V;p.type===3&&(p.Vo(),V=p.LS,N===p.range.end+1&&(V+=1));return this.xR(V,N,C)}; g.h.Jm=function(){return null}; g.h.V8=function(p,C,V){C=C===void 0?!1:C;p=this.index.tU(p);C&&(p=Math.min(this.index.Ha(),p+1));return this.xR(p,this.index.MB(p),0,V)}; g.h.V1=function(){return!0}; g.h.NQ=function(){return!0}; g.h.zq=function(){return!1}; g.h.EB=function(){return this.indexRange.length+this.initRange.length}; g.h.v2=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var QH={},YGH=(QH.COLOR_PRIMARIES_BT709="bt709",QH.COLOR_PRIMARIES_BT2020="bt2020",QH.COLOR_PRIMARIES_UNKNOWN=null,QH.COLOR_PRIMARIES_UNSPECIFIED=null,QH),rK={},KLv=(rK.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",rK.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",rK.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",rK.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",rK.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,rK.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,rK);g.N6.prototype.getName=function(){return this.name}; g.N6.prototype.getId=function(){return this.id}; g.N6.prototype.getIsDefault=function(){return this.isDefault}; g.N6.prototype.toString=function(){return this.name}; g.N6.prototype.getName=g.N6.prototype.getName;g.N6.prototype.getId=g.N6.prototype.getId;g.N6.prototype.getIsDefault=g.N6.prototype.getIsDefault;var UVu=/action_display_post/;var fQe,dB,io;g.m(hz,g.ca);g.h=hz.prototype;g.h.isLoading=function(){return this.state===1}; g.h.Ad=function(){return this.state===3}; g.h.oGY=function(p){var C=p.getElementsByTagName("Representation");if(p.getElementsByTagName("SegmentList").length>0||p.getElementsByTagName("SegmentTemplate").length>0){this.p4=this.C=!0;this.timeline||(this.timeline=new XSe);slH(this.timeline,p);this.publish("refresh");for(p=0;p=0?t=uw(T):c=c+"?range="+T}E.call(a,new Uc(l.LS,l.startSecs,l.uc,l.T,c,t,l.C))}N=H}V.update(N,this.isLive,this.UY)}aQy(this.timeline);return!0}this.duration=VIL(RZ(p,"mediaPresentationDuration")); a:{for(p=0;p0))return this.Sd()-p}}p=this.T;for(var C in p){var V=p[C].index;if(V.isLoaded()&&!Xz(p[C].info.mimeType))return V.Wa()}return 0}; g.h.getStreamTimeOffset=function(){return this.D}; g.h.Xt=function(p){for(var C in this.T){var V=this.T[C].index;if(V.isLoaded()){var N=V.tU(p),H=V.Xt(N);if(H)return H+p-V.getStartTime(N)}}return NaN}; var Kb=null,VqE,D8=!((VqE=navigator.mediaCapabilities)==null||!VqE.decodingInfo),wSa={commentary:1,alternate:2,dub:3,main:4};var Ku=new Set,uo=new Map;fb.prototype.clone=function(p){return new fb(this.flavor,p,this.C,this.experiments)}; fb.prototype.X0=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; fb.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 NC0={},Y$=(NC0.playready=["com.youtube.playready","com.microsoft.playready"],NC0.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],NC0),BD={},XZ9=(BD.widevine="DRM_SYSTEM_WIDEVINE",BD.fairplay="DRM_SYSTEM_FAIRPLAY",BD.playready="DRM_SYSTEM_PLAYREADY",BD),GU={},Hyy=(GU.widevine=1,GU.fairplay=2,GU.playready=3,GU);R5.prototype.vI=function(p,C){C=C===void 0?1:C;this.y6+=C;this.C+=p;p/=C;for(var V=0;V0)N+="."+zF[H].toFixed(0)+"_"+V.T[H].toFixed(0);else break;V=N}V&&(p[C]=V)}this.T=new HjQ;return p}; g.h.toString=function(){return""};g.h=adj.prototype;g.h.isActive=function(){return!1}; g.h.JR=function(){}; g.h.SB=function(){}; g.h.Sm=function(p,C){return C}; g.h.dB=function(){}; g.h.Dk=function(){}; g.h.zz=function(p,C){return C()}; g.h.ut=function(){return{}}; g.h.toString=function(){return""};var pB,X45,dmG,iyc,hvY,stP,CB,YW,VN,OlX,$$;pB=new adj;X45=!!+CO("html5_enable_profiler");dmG=!!+CO("html5_onesie_enable_profiler");iyc=!!+CO("html5_offline_encryption_enable_profiler");hvY=!!+CO("html5_performance_impact_profiling_timer_ms");stP=!!+CO("html5_drm_enable_profiler");CB=X45||dmG||iyc||hvY||stP?new dBe:pB;g.Rv=X45?CB:pB;YW=dmG?CB:pB;VN=iyc?CB:pB;OlX=hvY?CB:pB;$$=stP?CB:pB;var wB;g.m(eO,g.Y); eO.prototype.initialize=function(p,C){for(var V=this,N=g.F(Object.keys(p)),H=N.next();!H.done;H=N.next()){H=g.F(p[H.value]);for(var X=H.next();!X.done;X=H.next())if(X=X.value,X.vV)for(var d=g.F(Object.keys(X.vV)),a=d.next();!a.done;a=d.next()){var E=a.value;a=E;E=Y$[E];!E&&this.G("html5_enable_vp9_fairplay")&&a==="fairplay"&&(E=["com.youtube.fairplay.sbdl"]);if(E){E=g.F(E);for(var l=E.next();!l.done;l=E.next())l=l.value,this.V[l]=this.V[l]||new fb(a,l,X.vV[a],this.I$.experiments),this.T[a]=this.T[a]|| {},this.T[a][X.mimeType]=!0}}}rm()&&(this.V["com.youtube.fairplay"]=new fb("fairplay","com.youtube.fairplay","",this.I$.experiments),this.G("html5_enable_vp9_fairplay")||(this.T.fairplay=this.T.fairplay||{},this.T.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.T.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.C=N2y(C,this.useCobaltWidevine,this.G("html5_enable_safari_fairplay"),this.G("html5_enable_vp9_fairplay")).filter(function(t){return!!V.V[t]})}; eO.prototype.G=function(p){return this.I$.experiments.OY(p)};var vXL={"":"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"};JMH.prototype.G=function(p){return this.experiments.OY(p)};var Qdy={RED:"red",fm_:"white"};mBV.prototype.OY=function(p){p=this.flags[p];JSON.stringify(p);return p==="true"};var ST1=Promise.resolve(),Zje=window.queueMicrotask?window.queueMicrotask.bind(window):K$L;QM.prototype.canPlayType=function(p,C){p=p.canPlayType?p.canPlayType(C):!1;BW?p=p||amY[C]:Ue===2.2?p=p||EVp[C]:Wd()&&(p=p||lmy[C]);return!!p}; QM.prototype.isTypeSupported=function(p){return this.a$?window.cast.receiver.platform.canDisplayType(p):xZ(p)}; var EVp={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},lmy={"application/x-mpegURL":"maybe"},amY={"application/x-mpegURL":"maybe"};g.m(CI,g.ca);CI.prototype.add=function(p,C){if(!this.items[p]&&(C.IY||C.gm||C.U1)){var V=this.items,N=C;Object.isFrozen&&!Object.isFrozen(C)&&(N=Object.create(C),Object.freeze(N));V[p]=N;this.publish("vast_info_card_add",p)}}; CI.prototype.remove=function(p){var C=this.get(p);delete this.items[p];return C}; CI.prototype.get=function(p){return this.items[p]||null}; CI.prototype.isEmpty=function(){return g.k5(this.items)};g.m(jH,g.OF);jH.prototype.T=function(p,C){return g.OF.prototype.T.call(this,p,C)}; jH.prototype.C=function(p,C,V){var N=this;return g.I(function(H){return H.C==1?g.y(H,g.OF.prototype.C.call(N,p,C,V),2):H.return(H.T)})}; g.m(Vj,g.yi);Vj.prototype.encrypt=function(p,C){return g.yi.prototype.encrypt.call(this,p,C)};var Hg;Xs.prototype.add=function(p){if(this.pos+20>this.data.length){var C=new Uint8Array(this.data.length*2);C.set(this.data);this.data=C}for(;p>31;)this.data[this.pos++]=Hg[(p&31)+32],p>>=5;this.data[this.pos++]=Hg[p|0]}; Xs.prototype.c6=function(){return g.wc(this.data.subarray(0,this.pos))}; Xs.prototype.reset=function(){this.pos=0};dG.prototype.N3=function(p,C){var V=Math.pow(this.alpha,p);this.T=C*(1-V)+V*this.T;this.C+=p}; dG.prototype.Kd=function(){return this.T/(1-Math.pow(this.alpha,this.C))};iL.prototype.N3=function(p,C){for(var V=0;V<10;V++){var N=this.T[V],H=N+(V===0?p:0),X=1*Math.pow(2,V);if(H<=X)break;N=Math.min(1,(H-X*.5)/N);for(H=0;H<16;H++)X=this.values[V*16+H]*N,this.values[(V+1)*16+H]+=X,this.T[V+1]+=X,this.values[V*16+H]-=X,this.T[V]-=X}N=V=0;H=8192;C>8192&&(V=Math.ceil(Math.log(C/8192)/Math.log(2)),N=8192*Math.pow(2,V-1),H=N*2);V+2>16?this.values[15]+=p:(C=(C-N)/(H-N),this.values[V]+=p*(1-C),this.values[V+1]+=p*C);this.T[0]+=p}; iL.prototype.Kd=function(){var p=p===void 0?this.C:p;var C=C===void 0?.02:C;var V=V===void 0?.98:V;for(var N=this.V,H=0;H<16;H++)N[H]=this.values[H];H=this.T[0];for(var X=1;X<11;X++){var d=this.T[X];if(d===0)break;for(var a=Math.min(1,(p-H)/d),E=0;E<16;E++)N[E]+=this.values[X*16+E]*a;H+=d*a;if(a<1)break}for(X=p=d=0;X<16;X++){a=d+N[X]/H;p+=Math.max(0,Math.min(a,V)-Math.max(d,C))*(X>0?8192*Math.pow(2,X-1):0);if(a>V)break;d=a}return p/(V-C)};hR.prototype.N3=function(p,C){p=Math.min(this.T,Math.max(1,Math.round(p*this.resolution)));p+this.C>=this.T&&(this.V=!0);for(;p--;)this.values[this.C]=C,this.C=(this.C+1)%this.T;this.d2=!0}; hR.prototype.percentile=function(p){var C=this;if(!this.V&&this.C===0)return 0;this.d2&&(g.hB(this.W,function(V,N){return C.values[V]-C.values[N]}),this.d2=!1); return this.values[this.W[Math.round(p*((this.V?this.T:this.C)-1))]]||0}; hR.prototype.Kd=function(){return this.Y?(this.percentile(this.S-this.Y)+this.percentile(this.S)+this.percentile(this.S+this.Y))/3:this.percentile(this.S)};g.m(se,g.Y);se.prototype.R$=function(){var p;(p=this.Ga)==null||p.start();if(JR(this)&&this.policy.J){var C;(C=this.lJ)==null||C.Is()}};ROj.prototype.G=function(p){return this.experiments.OY(p)};g.m(eO1,g.Y);var W$L="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),C_j={V5$:"caoe",S8o:"capsv",HOV:"cbrand",p6n:"cbr",Rja:"cbrver",Qdx:"cchip",q8$:"ccappver",cUa:"ccrv",w$a:"cfrmver",NRe:"c",eYo:"cver",hYr:"ctheme",Gpa:"cplayer",h4n:"cmodel",lr_:"cnetwork",d1_:"cos",jzr:"cosver",yda:"cplatform",Nba:"crqyear"};g.m(xS,g.Y);g.h=xS.prototype;g.h.G=function(p){return this.experiments.OY(p)}; g.h.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.h.getVideoUrl=function(p,C,V,N,H,X,d){C={list:C};V&&(H?C.time_continue=V:C.t=V);V=d?"music.youtube.com":g.zM(this);H=V==="www.youtube.com";!X&&N&&H?X="https://youtu.be/"+p:g.yj(this)?(X="https://"+V+"/fire",C.v=p):(X&&H?(X=this.protocol+"://"+V+"/shorts/"+p,N&&(C.feature="share")):(X=this.protocol+"://"+V+"/watch",C.v=p),BW&&(p=LGj())&&(C.ebc=p));return g.GD(X,C)}; g.h.getVideoEmbedCode=function(p,C,V,N){C="https://"+g.zM(this)+"/embed/"+C;N&&(C=g.GD(C,{list:N}));N=V.width;V=V.height;C=Xn(C);p=Xn(p!=null?p:"YouTube video player");return'')}; g.h.supportsGaplessAudio=function(){return g.kZ&&!BW&&LO()>=74||g.k$&&g.JB(68)?!0:!1}; g.h.supportsGaplessShorts=function(){return!this.G("html5_enable_short_gapless")||this.R$||g.D1?!1:!0}; g.h.getPlayerType=function(){return this.T.cplayer}; g.h.Gk=function(){return this.hE}; var Ha9=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],p0V=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],V8y=[19];var jj={},ia1=(jj["140"]={numChannels:2},jj["141"]={numChannels:2},jj["251"]={audioSampleRate:48E3,numChannels:2},jj["774"]={audioSampleRate:48E3,numChannels:2},jj["380"]={numChannels:6},jj["328"]={numChannels:6},jj),Vo={},X0Y=(Vo["1"]='video/mp4; codecs="av01.0.08M.08"',Vo["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Vo["9"]='video/webm; codecs="vp9"',Vo["("]='video/webm; codecs="vp9"',Vo["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',Vo.h='video/mp4; codecs="avc1.64001e"', Vo.H='video/mp4; codecs="avc1.64001e"',Vo.o='audio/webm; codecs="opus"',Vo.a='audio/mp4; codecs="mp4a.40.2"',Vo.ah='audio/mp4; codecs="mp4a.40.2"',Vo.mac3='audio/mp4; codecs="ac-3"; channels=6',Vo.meac3='audio/mp4; codecs="ec-3"; channels=6',Vo),N9={},d3L=(N9["337"]={width:3840,height:2160,bitrate:3E7,fps:30},N9["336"]={width:2560,height:1440,bitrate:15E6,fps:30},N9["335"]={width:1920,height:1080,bitrate:75E5,fps:30},N9["702"]={width:7680,height:4320,bitrate:4E7,fps:60},N9["701"]={width:3840,height:2160, bitrate:2E7,fps:60},N9["700"]={width:2560,height:1440,bitrate:1E7,fps:60},N9["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},N9["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},N9["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},N9["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},N9["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"}, N9["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},N9["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},N9["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},N9["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},N9["315"]={width:3840,height:2160,bitrate:2E7,fps:60},N9["308"]={width:2560,height:1440,bitrate:1E7,fps:60},N9["303"]={width:1920,height:1080,bitrate:5E6,fps:60}, N9["302"]={width:1280,height:720,bitrate:25E5,fps:60},N9["299"]={width:1920,height:1080,bitrate:75E5,fps:60},N9["298"]={width:1280,height:720,bitrate:35E5,fps:60},N9["571"]={width:7680,height:4320,bitrate:3E7,fps:60},N9["401"]={width:3840,height:2160,bitrate:15E6,fps:60},N9["400"]={width:2560,height:1440,bitrate:75E5,fps:60},N9["399"]={width:1920,height:1080,bitrate:2E6,fps:60},N9["398"]={width:1280,height:720,bitrate:1E6,fps:60},N9["397"]={width:854,height:480,bitrate:4E5,fps:30},N9["396"]={width:640, height:360,bitrate:25E4,fps:30},N9["787"]={width:1080,height:608,bitrate:2E5,fps:30},N9["788"]={width:1080,height:608,bitrate:4E5,fps:30},N9["313"]={width:3840,height:2160,bitrate:8E6,fps:30},N9["271"]={width:2560,height:1440,bitrate:4E6,fps:30},N9["248"]={width:1920,height:1080,bitrate:2E6,fps:30},N9["247"]={width:1280,height:720,bitrate:15E5,fps:30},N9["244"]={width:854,height:480,bitrate:52E4,fps:30},N9["243"]={width:640,height:360,bitrate:28E4,fps:30},N9["137"]={width:1920,height:1080,bitrate:4E6, fps:30},N9["136"]={width:1280,height:720,bitrate:3E6,fps:30},N9["135"]={width:854,height:480,bitrate:1E6,fps:30},N9["385"]={width:1920,height:1080,bitrate:6503313,fps:60},N9["376"]={width:1280,height:720,bitrate:5706960,fps:60},N9["384"]={width:1280,height:720,bitrate:3660979,fps:60},N9["225"]={width:1280,height:720,bitrate:5805E3,fps:30},N9["224"]={width:1280,height:720,bitrate:453E4,fps:30},N9["145"]={width:1280,height:720,bitrate:2682052,fps:30},N9);g.h=jw.prototype;g.h.getInfo=function(){return this.T}; g.h.Qa=function(){return null}; g.h.Ph=function(){var p=this.Qa();return p?(p=g.sk(p.sR),Number(p.expire)):NaN}; g.h.C2=function(){}; g.h.getHeight=function(){return this.T.video.height};ExQ.prototype.build=function(){cLs(this);var p=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],C={};a:if(this.T)var V=this.T;else{V="";for(var N=g.F(this.V),H=N.next();!H.done;H=N.next())if(H=H.value,H.K4){if(H.K4.getIsDefault()){V=H.K4.getId();break a}V||(V=H.K4.getId())}}N=g.F(this.V);for(H=N.next();!H.done;H=N.next())if(H=H.value,this.Y||!H.K4||H.K4.getId()===V)C[H.itag]||(C[H.itag]=[]),C[H.itag].push(H);V=g.F(this.C);for(N=V.next();!N.done;N=V.next())if(N=N.value,H=C[N.T]){H=g.F(H);for(var X=H.next();!X.done;X= H.next()){var d=p,a=d.push;X=X.value;var E="#EXT-X-MEDIA:TYPE=AUDIO,",l="YES",t="audio";if(X.K4){t=X.K4;var c=t.getId().split(".")[0];c&&(E+='LANGUAGE="'+c+'",');(this.T?this.T===t.getId():t.getIsDefault())||(l="NO");t=t.getName()}c="";N!==null&&(c=N.itag.toString());c=NF(this,X.url,c);E=E+('NAME="'+t+'",DEFAULT='+(l+',AUTOSELECT=YES,GROUP-ID="'))+(t8e(X,N)+'",URI="'+(c+'"'));a.call(d,E)}}V=g.F(this.W);for(N=V.next();!N.done;N=V.next())N=N.value,H=tq0,N=(d=N.K4)?'#EXT-X-MEDIA:URI="'+NF(this,N.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+H+'",LANGUAGE="'+d.getId()+'",NAME="'+d.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,N&&p.push(N);V=this.W.length>0?tq0:void 0;N=g.F(this.C);for(H=N.next();!H.done;H=N.next())H=H.value,a=C[H.T],d=void 0,((d=a)==null?void 0:d.length)>0&&(d=H,a=a[0],a="#EXT-X-STREAM-INF:BANDWIDTH="+(d.bitrate+a.bitrate)+',CODECS="'+(d.codecs+","+a.codecs+'",RESOLUTION=')+(d.width+"x"+d.height+',AUDIO="')+(t8e(a,d)+'",')+(V?'SUBTITLES="'+V+'",':"")+"CLOSED-CAPTIONS=NONE",d.fps>1&&(a+= ",FRAME-RATE="+d.fps),d.SD&&(a+=",VIDEO-RANGE="+d.SD),p.push(a),p.push(NF(this,H.url,"")));return p.join("\n")}; var tq0="text";g.m(H7,jw);H7.prototype.Ph=function(){return this.expiration}; H7.prototype.Qa=function(){if(!this.sR||this.sR.fS()){var p=this.C.build();p="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(p);this.sR=new pV(p)}return this.sR};g.m(Xt,jw);Xt.prototype.Qa=function(){return new pV(this.C.i9())}; Xt.prototype.C2=function(){this.C=u5(this.C)};g.m(dP,jw);dP.prototype.Qa=function(){return new pV(this.C)};var HL={},umY=(HL.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",HL.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",HL.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",HL);g.h=g.is.prototype;g.h.getId=function(){return this.id}; g.h.getName=function(){return this.name}; g.h.isServable=function(){return this.T}; g.h.i9=function(){return this.url}; g.h.getXtags=function(){return this.xtags}; g.h.toString=function(){return this.languageCode+": "+g.hA(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.h.sE=function(p){return p?this.toString()===p.toString():!1}; g.h.GN=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var yLj={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},qAY={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},IYQ=/^(\d*)_((\d*)_?(\d*))$/;var ALu={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},oxe={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var X8={},FZj=(X8.ALWAYS=1,X8.BY_REQUEST=3,X8.UNKNOWN=void 0,X8),d4={},UOQ=(d4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",d4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",d4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",d4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",d4);var qXy; qXy=function(p){for(var C=Object.keys(p),V={},N=0;NN-C?-1:p}; g.h.BA=function(){return this.C.Ha()}; g.h.g$=function(){return this.C.V6()}; g.h.wk=function(p){this.C=p};g.m(kB,AA);kB.prototype.C=function(p,C){return AA.prototype.C.call(this,"$N|"+p,C)}; kB.prototype.W=function(p,C,V){return new oI(p,C,V,this.isLive)};var qi9=[],Cf=new Set;g.m(g.YB,g.ca);g.h=g.YB.prototype;g.h.K=function(){return this.I$}; g.h.G=function(p){return this.I$.G(p)}; g.h.CO=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.h.hasSupportedAudio51Tracks=function(){var p;return!((p=this.f9)==null||!p.X$)}; g.h.getUserAudio51Preference=function(){var p=1;$S(this.I$)&&this.G("html5_ytv_surround_toggle_default_off")?p=0:g.eH(this.I$)&&this.isLivePlayback&&this.O8()&&(p=0);var C;return(C=g.zW("yt-player-audio51"))!=null?C:p}; g.h.SF=function(){this.fS()||(this.T.C||this.T.unsubscribe("refresh",this.SF,this),this.fE(-1))}; g.h.fE=function(p){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var C=nPa(this.T,this.iQ);if(C.length>0){for(var V=g.F(C),N=V.next();!N.done;N=V.next())N=N.value,N.startSecs=Math.max(N.startSecs,this.Wa());this.publish("cuepointupdated",C,p);this.iQ+=C.length;if(Ge(this)&&this.I$.Gk())for(C=g.F(C),V=C.next();!V.done;V=C.next())V=V.value,this.k_("cuepoint",{segNum:p,event:V.event,startSecs:V.startSecs,id:V.identifier.slice(-16)}),V.event==="start"&&(V=V.startSecs,this.Cj.start=this.hg, this.Cj.end=V+3)}}}; g.h.O8=function(){return this.nA!==void 0?this.nA:this.nA=!!this.vV||!!this.T&&l5(this.T)}; g.h.Z1=function(p){var C=this;if(this.fS())return xD();this.FO=this.KS=this.V=null;W7(this,"html5_high_res_logging_always")&&(this.I$.hE=!0);return LZV(this,p).then(void 0,function(){return g1j(C,p)}).then(void 0,function(){return WZX(C)}).then(void 0,function(){return r59(C)})}; g.h.C$=function(){if(this.cotn)return null;var p=g.qz(this.I$)||this.G("web_l3_storyboard");if(!this.BB)if(this.playerResponse&&this.playerResponse.storyboards){var C=this.playerResponse.storyboards,V=C.playerStoryboardSpecRenderer;V&&V.spec?this.BB=new AA(V.spec,this.lengthSeconds,void 0,!1,p):(C=C.playerLiveStoryboardSpecRenderer)&&C.spec&&this.T&&(V=QO9(this.T.T).index)&&(this.BB=new kB(C.spec,this.T.isLive,V,p))}else this.ra?this.BB=new AA(this.ra,this.lengthSeconds,void 0,!1,p):this.Pj&&this.T&& (C=QO9(this.T.T).index)&&(this.BB=new kB(this.Pj,this.T.isLive,C,p));return this.BB}; g.h.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var p=this.playerResponse.storyboards;return(p=p.playerStoryboardSpecRenderer||p.playerLiveStoryboardSpecRenderer)&&p.spec||null}return this.ra||this.Pj}; g.h.Sd=function(){return this.T&&!isNaN(this.T.Sd())?this.T.Sd():Ge(this)?0:this.lengthSeconds}; g.h.Wa=function(){return this.T&&!isNaN(this.T.Wa())?this.T.Wa():0}; g.h.getPlaylistSequenceForTime=function(p){if(this.T&&this.C){var C=this.T.T[this.C.id];if(!C)return null;var V=C.index.tU(p);C=C.index.getStartTime(V);return{sequence:V,elapsed:Math.floor((p-C)*1E3)}}return null}; g.h.GN=function(){return!this.fS()&&!(!this.videoId&&!this.BI)}; g.h.Ar=function(){var p,C,V;return!!this.adaptiveFormats||!!((p=this.playerResponse)==null?0:(C=p.streamingData)==null?0:(V=C.adaptiveFormats)==null?0:V.length)}; g.h.isLoaded=function(){return ze(this)&&!this.AX&&!this.sx}; g.h.TW=function(p){p||(p="hqdefault.jpg");var C=this.Z[p];return C||this.I$.b_||p==="pop1.jpg"||p==="pop2.jpg"||p==="sddefault.jpg"||p==="hq720.jpg"||p==="maxresdefault.jpg"?C:Rg(this.I$,this.videoId,p)}; g.h.p4=function(){return this.isLivePlayback||this.EO||this.Wr||!(!this.liveUtcStartSeconds||!this.gR)}; g.h.isOtf=function(){return!!this.T&&(this.T.isOtf||!this.EO&&!this.isLivePlayback&&this.T.C)}; g.h.getAvailableAudioTracks=function(){return this.V?this.V.getAvailableAudioTracks().length>0?this.V.getAvailableAudioTracks():this.Ij||[]:[]}; g.h.getAudioTrack=function(){var p=this;if(this.S&&!jb(this.S))return g.L0(this.getAvailableAudioTracks(),function(N){return N.id===p.S.id})||this.Uv; if(this.Ij){if(!this.VP)for(var C=g.F(this.Ij),V=C.next();!V.done;V=C.next())if(V=V.value,V.K4.getIsDefault()){this.VP=V;break}return this.VP||this.Uv}return this.Uv}; g.h.getPlayerResponse=function(){return this.playerResponse}; g.h.getWatchNextResponse=function(){return this.Ga}; g.h.getHeartbeatResponse=function(){return this.d1}; g.h.a8=function(){return this.watchUrl?this.watchUrl:this.I$.getVideoUrl(this.videoId)}; g.h.Ez=function(){return!!this.T&&(qGa(this.T)||IQj(this.T)||brX(this.T))}; g.h.getEmbeddedPlayerResponse=function(){return this.b0}; g.h.rR=function(){return(this.eventLabel||this.I$.Wr)==="shortspage"}; g.h.isAd=function(){return this.mH||!!this.adFormat}; g.h.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.h.VL=function(){var p,C,V;return this.isDaiEnabled()&&!!((p=this.playerResponse)==null?0:(C=p.playerConfig)==null?0:(V=C.daiConfig)==null?0:V.ssaEnabledPlayback)}; g.h.Gm=function(){return Sie(this)?this.DB:this.W8||this.YN}; g.h.P9=function(){return this.Pz||this.YN}; g.h.dG=function(){return W7(this,"html5_samsung_vp9_live")}; g.h.k_=function(p,C,V){this.publish("ctmp",p,C,V)}; g.h.x8=function(p,C,V){this.publish("ctmpstr",p,C,V)}; g.h.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.h.getGetAdBreakContext=function(p,C){p=p===void 0?NaN:p;C=C===void 0?NaN:C;var V={isSabr:$B(this)},N,H=(N=this.getHeartbeatResponse())==null?void 0:N.adBreakHeartbeatParams;H&&(V.adBreakHeartbeatParams=H);if(this.G("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(p)&&!isNaN(C)){C=p-C;for(var X in this.T.T)if(N=this.T.T[X],N.info.K9()||N.info.DQ())if(N=N.index,N.isLoaded()){X=N.tU(C);N=N.Xt(X)+C-N.getStartTime(X);this.k_("gabc",{t:p.toFixed(3),mt:C.toFixed(3),sg:X,igt:N.toFixed(3)}); V.livePlaybackPosition={utcTimeMillis:""+(N*1E3).toFixed(0)};break}}return V}; g.h.isEmbedsShortsMode=function(p,C){if(!g.KI(this.I$))return!1;var V;if(!this.G("embeds_enable_emc3ds_shorts")&&((V=this.I$.getWebPlayerContextConfig())==null?0:V.embedsEnableEmc3ds)||(this.I$.Sa||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||C)return!1;var N,H;return!!(((N=this.embeddedPlayerConfig)==null?0:(H=N.embeddedPlayerFlags)==null?0:H.isShortsExperienceEligible)&&p.width<=p.height)}; g.h.CS=function(){g.ca.prototype.CS.call(this);this.yR=null;delete this.w8;delete this.accountLinkingConfig;delete this.T;this.V=this.d1=this.playerResponse=this.Ga=null;this.jZ=this.adaptiveFormats="";delete this.botguardData;this.Qn=this.suggestions=this.bv=null};var ZwV={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},UiS={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Di9={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Fwa={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"},KwS={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},ScY={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"},uP1={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_DEFAULT",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.m(Mh,g.Y);g.h=Mh.prototype;g.h.handleExternalCall=function(p,C,V){var N=this.state.D[p],H=this.state.J[p],X=N;if(H)if(V&&No(V,IBc))X=H;else if(!N)throw Error('API call from an untrusted origin: "'+V+'"');this.logApiCall(p,V);if(X){V=!1;N=g.F(C);for(H=N.next();!H.done;H=N.next())if(String(H.value).includes("javascript:")){V=!0;break}V&&g.eG(Error('Dangerous call to "'+p+'" with ['+C+"]."));return X.apply(this,C)}throw Error('Unknown API method: "'+p+'".');}; g.h.logApiCall=function(p,C,V){var N=this.app.K();N.Ic&&!this.state.Z.has(p)&&(this.state.Z.add(p),g.t1("webPlayerApiCalled",{callerUrl:N.loaderUrl,methodName:p,origin:C||void 0,playerStyle:N.playerStyle||void 0,embeddedPlayerMode:N.Sa,errorCode:V}))}; g.h.publish=function(p){var C=g.US.apply(1,arguments);this.state.V.publish.apply(this.state.V,[p].concat(g.K(C)));if(p==="videodatachange"||p==="resize"||p==="cardstatechange")this.state.C.publish.apply(this.state.C,[p].concat(g.K(C))),this.state.S.publish.apply(this.state.S,[p].concat(g.K(C)))}; g.h.Jk=function(p){var C=g.US.apply(1,arguments);this.state.V.publish.apply(this.state.V,[p].concat(g.K(C)));this.state.C.publish.apply(this.state.C,[p].concat(g.K(C)))}; g.h.Ba=function(p){var C=g.US.apply(1,arguments);this.state.V.publish.apply(this.state.V,[p].concat(g.K(C)));this.state.C.publish.apply(this.state.C,[p].concat(g.K(C)));this.state.S.publish.apply(this.state.S,[p].concat(g.K(C)))}; g.h.v1=function(p){var C=g.US.apply(1,arguments);this.state.V.publish.apply(this.state.V,[p].concat(g.K(C)));this.state.C.publish.apply(this.state.C,[p].concat(g.K(C)));this.state.S.publish.apply(this.state.S,[p].concat(g.K(C)));this.state.W.publish.apply(this.state.W,[p].concat(g.K(C)))}; g.h.G=function(p){return this.app.K().G(p)}; g.h.CS=function(){if(this.state.element){var p=this.state.element,C;for(C in this.state.T)this.state.T.hasOwnProperty(C)&&(p[C]=null);this.state.element=null}g.Y.prototype.CS.call(this)};g.m(SQ,g.IL);SQ.prototype.publish=function(p){var C=g.US.apply(1,arguments);if(this.W.has(p))return this.W.get(p).push(C),!0;var V=!1;try{for(C=[C],this.W.set(p,C);C.length;)V=g.IL.prototype.publish.call.apply(g.IL.prototype.publish,[this,p].concat(g.K(C.shift())))}finally{this.W.delete(p)}return V};g.m(KT,g.Y);KT.prototype.CS=function(){this.W.dispose();this.S.dispose();this.C.dispose();this.V.dispose();this.Z=this.T=this.J=this.D=this.Y=void 0};var AeY=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.m(ux,Mh);g.h=ux.prototype;g.h.getApiInterface=function(){return Array.from(this.state.Y)}; g.h.oP=function(p,C){this.state.W.subscribe(p,C)}; g.h.YO_=function(p,C){this.state.W.unsubscribe(p,C)}; g.h.getPlayerState=function(p){return rZe(this.app,p)}; g.h.d0=function(){return rZe(this.app)}; g.h.kMn=function(p,C,V){fT(this)&&(eM(this.app,!0,1),wJ(this.app,p,C,V,1))}; g.h.getCurrentTime=function(p,C,V){var N=this.getPlayerState(p);if(this.app.getAppState()===2&&N===5){var H;return((H=this.app.getVideoData())==null?void 0:H.startSeconds)||0}return this.G("web_player_max_seekable_on_ended")&&N===0?LFs(this.app,p):p?this.app.getCurrentTime(p,C,V):this.app.getCurrentTime(p)}; g.h.Bw=function(){return this.app.getCurrentTime(1)}; g.h.Ob=function(){var p=this.app.Xt(1);return isNaN(p)?this.getCurrentTime(1):p}; g.h.Ku=function(){return this.app.getDuration(1)}; g.h.zx=function(p,C){p=g.J9(Math.floor(p),0,100);isFinite(p)&&AX(this.app,{volume:p,muted:this.isMuted()},C)}; g.h.i9_=function(p){this.zx(p,!1)}; g.h.Bu=function(p){AX(this.app,{muted:!0,volume:this.getVolume()},p)}; g.h.ae$=function(){this.Bu(!1)}; g.h.QF=function(p){U5(this.app)&&!this.G("embeds_enable_emc3ds_muted_autoplay")||AX(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},p)}; g.h.Cc$=function(){U5(this.app)&&this.G("embeds_enable_emc3ds_muted_autoplay")||this.QF(!1)}; g.h.getPlayerMode=function(){var p={};this.app.getVideoData().UV&&(p.pfp={enableIma:g.lx(this.app.getVideoData())&&this.app.DE().allowImaMonetization,autoplay:Nh(this.app.DE()),mutedAutoplay:this.app.DE().mutedAutoplay});return p}; g.h.fF=function(){var p=this.app.getPresentingPlayerType();if(this.G("html5_enable_ssap_autoplay_debug_logging")){var C;(C=g.O5(this.app))==null||C.k_("ssap",{pbintl:p})}if(p===2&&!this.app.tE()&&(C=Px(this.app.Tk()),!gM9(C)||W3v(C)))return;p===3?R$(this.app.Tk()).z4("control_play"):this.app.K().G("html5_ssap_ignore_play_for_ad")&&g.pf(this.app.DE())&&p===2||this.app.playVideo(p)}; g.h.T7a=function(){eM(this.app,!0,1);this.fF()}; g.h.pauseVideo=function(p){var C=this.app.getPresentingPlayerType();if(C!==2||this.app.tE()||gM9(Px(this.app.Tk())))C===3?R$(this.app.Tk()).z4("control_pause"):this.app.pauseVideo(C,p)}; g.h.tZn=function(){var p=this.app,C=!1;p.yn.VZ&&(p.ea.publish("pageTransition"),C=!0);p.stopVideo(C)}; g.h.clearVideo=function(){}; g.h.getAvailablePlaybackRates=function(){var p=this.app.K();return p.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(p.S?p.ancestorOrigins[0]:window.location.origin)||p.rj?sOE:p.supportsVarispeedExtendedFeatures?aBr:hj0:[1]}; g.h.getPlaybackQuality=function(p){return(p=g.O5(this.app,p))?p.getPlaybackQuality():"unknown"}; g.h.SVe=function(){}; g.h.getAvailableQualityLevels=function(p){return(p=g.O5(this.app,p))?(p=g.AU(p.TY(),function(C){return C.quality}),p.length&&(p[0]==="auto"&&p.shift(),p=p.concat(["auto"])),p):[]}; g.h.Pw=function(){return this.getAvailableQualityLevels(1)}; g.h.cw=function(){return this.yS()}; g.h.Md=function(){return 1}; g.h.getVideoLoadedFraction=function(p){return this.app.getVideoLoadedFraction(p)}; g.h.yS=function(){return this.getVideoLoadedFraction()}; g.h.TL=function(){return 0}; g.h.getSize=function(){var p=this.app.dV().getPlayerSize();return{width:p.width,height:p.height}}; g.h.setSize=function(){this.app.dV().resize()}; g.h.loadVideoById=function(p,C,V,N){if(!p)return!1;p=Dg(p,C,V);return this.app.loadVideoByPlayerVars(p,N)}; g.h.G6=function(p,C,V){p=this.loadVideoById(p,C,V,1);eM(this.app,p,1)}; g.h.cueVideoById=function(p,C,V,N){p=Dg(p,C,V);this.app.cueVideoByPlayerVars(p,N)}; g.h.hn=function(p,C,V){this.cueVideoById(p,C,V,1)}; g.h.loadVideoByUrl=function(p,C,V,N){p=bwu(p,C,V);return this.app.loadVideoByPlayerVars(p,N)}; g.h.PU=function(p,C,V){p=this.loadVideoByUrl(p,C,V,1);eM(this.app,p,1)}; g.h.cueVideoByUrl=function(p,C,V,N){p=bwu(p,C,V);this.app.cueVideoByPlayerVars(p,N)}; g.h.pU=function(p,C,V){this.cueVideoByUrl(p,C,V,1)}; g.h.n_=function(){var p=this.app.K();if(p.b_)return"";var C=this.app.DE(),V=void 0;C.isLivePlayback||(V=Math.floor(this.app.getCurrentTime(1)));return p.getVideoUrl(C.videoId,this.getPlaylistId()||void 0,V)}; g.h.Ub=function(){return this.app.getDebugText()}; g.h.getVideoEmbedCode=function(){var p=this.app.K();if(p.b_)return"";var C=this.app.DE();return p.getVideoEmbedCode(C.isPrivate?"":C.title,this.app.DE().videoId,this.app.dV().getPlayerSize(),this.getPlaylistId()||void 0)}; g.h.Q3=function(p,C,V){return VW9(this.app,p,C,V)}; g.h.removeCueRange=function(p){return HLS(this.app,p)}; g.h.loadPlaylist=function(p,C,V,N){this.app.loadPlaylist(p,C,V,N)}; g.h.LD=function(p,C,V,N){this.loadPlaylist(p,C,V,N);eM(this.app,!0,1)}; g.h.cuePlaylist=function(p,C,V,N){this.app.cuePlaylist(p,C,V,N)}; g.h.nextVideo=function(p,C){this.app.nextVideo(p,C)}; g.h.bSx=function(){this.nextVideo();eM(this.app,!0,1)}; g.h.previousVideo=function(p){this.app.previousVideo(p)}; g.h.SO_=function(){this.previousVideo();eM(this.app,!0,1)}; g.h.playVideoAt=function(p){this.app.playVideoAt(p)}; g.h.yiS=function(p){this.playVideoAt(p);eM(this.app,!0,1)}; g.h.setShuffle=function(p){var C=this.app.getPlaylist();C&&C.setShuffle(p)}; g.h.setLoop=function(p){var C=this.app.getPlaylist();C&&(C.loop=p)}; g.h.XP=function(){var p=this.app.getPlaylist();if(!p)return null;for(var C=[],V=0;V=400)if(p=this.DE(),this.N.K().G("client_respect_autoplay_switch_button_renderer"))p=!!p.autoplaySwitchButtonRenderer;else{var C,V,N,H;p=!!((C=p.getWatchNextResponse())==null?0:(V=C.contents)==null?0:(N=V.twoColumnWatchNextResults)==null?0:(H=N.autoplay)==null?0:H.autoplay)!==!1}if(p)this.T||(this.T=!0,this.jb(this.T),this.N.K().G("web_player_autonav_toggle_always_listen")||Nz1(this), C=this.DE(),this.oU(C.autonavState),this.N.logVisibility(this.element,this.T));else if(this.T=!1,this.jb(this.T),!this.N.K().G("web_player_autonav_toggle_always_listen"))for(this.N.K().G("web_player_autonav_toggle_always_listen"),C=g.F(this.C),V=C.next();!V.done;V=C.next())this.rY(V.value)}; g.h.oU=function(p){XRy(this)?this.isChecked=p!==1:((p=p!==1)||(g.$l(),p=g.Zr("web_autonav_allow_off_by_default")&&!g.LK(0,141)&&g.pO("AUTONAV_OFF_BY_DEFAULT")?!1:!g.LK(0,140)),this.isChecked=p);HpQ(this)}; g.h.onClick=function(){this.isChecked=!this.isChecked;this.N.MV(this.isChecked?2:1);HpQ(this);if(XRy(this)){var p=this.DE().autoplaySwitchButtonRenderer;this.isChecked&&(p==null?0:p.onEnabledCommand)?this.N.Jk("innertubeCommand",p.onEnabledCommand):!this.isChecked&&(p==null?0:p.onDisabledCommand)&&this.N.Jk("innertubeCommand",p.onDisabledCommand)}this.N.logClick(this.element)}; g.h.getValue=function(){return this.isChecked}; g.h.DE=function(){return this.N.getVideoData(1)};g.m(dtj,iT);g.m(c3,g.Nl);c3.prototype.onClick=function(){this.enabled&&(TJ(this,!this.checked),this.publish("select",this.checked))}; c3.prototype.getValue=function(){return this.checked}; c3.prototype.setEnabled=function(p){(this.enabled=p)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var hPL=["en-CA","en","es-MX","fr-CA"];g.m(Kc,c3);Kc.prototype.Pr=function(p){p?this.T||(this.xM.zB(this),this.T=!0):this.T&&(this.xM.u8(this),this.T=!1);this.T&&TJ(this,TgQ())}; Kc.prototype.S=function(){g.tk(this.element,"ytp-menuitem-highlight-transition-enabled")}; Kc.prototype.V=function(p){var C=TgQ();p!==C&&(C=g.$l(),Ww(190,p),Ww(192,!0),C.save(),this.N.Jk("cinematicSettingsToggleChange",p))}; Kc.prototype.CS=function(){this.T&&this.xM.u8(this);c3.prototype.CS.call(this)};g.m(DM,iT);DM.prototype.updateCinematicSettings=function(p){this.T=p;var C;(C=this.menuItem)==null||C.Pr(p);this.api.publish("onCinematicSettingsVisibilityChange",p)};g.m(uT,iT);uT.prototype.sU=function(p,C){C=C.clipConfig;p==="dataloaded"&&C&&C.startTimeMs!=null&&C.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(C.startTimeMs)),endTimeMs:Math.floor(Number(C.endTimeMs)),postId:C.postId,type:"clips"})};g.m(ZM,iT);ZM.prototype.setCreatorEndscreenVisibility=function(p){var C;(C=gM(this.api.Tk()))==null||C.jb(p)}; ZM.prototype.T=function(p){function C(N){N==="creatorendscreen"&&(N=gM(V.api.Tk()))&&N.rEx(V.hideButton)} var V=this;this.hideButton=p;this.events.U(this.api,"modulecreated",C);C("creatorendscreen")};g.m(UO,c3);UO.prototype.V=function(p){this.S(p?1:0)}; UO.prototype.C=function(){var p=this.hasDrcAudioTrack(),C=this.T()===1&&p;TJ(this,C);this.setEnabled(p)}; UO.prototype.CS=function(){this.xM.u8(this);c3.prototype.CS.call(this)};g.m(fc,iT);fc.prototype.getDrcUserPreference=function(){return this.T}; fc.prototype.setDrcUserPreference=function(p){g.Yl("yt-player-drc-pref",p,31536E3);p!==this.T&&(this.T=p,this.updateEnvironmentData(),(p=this.api.L1())&&this.C()&&F9(p))}; fc.prototype.updateEnvironmentData=function(){this.api.K().jZ=this.T===1}; fc.prototype.C=function(){var p,C,V=(p=this.api.getVideoData())==null?void 0:(C=p.V)==null?void 0:C.T;if(!V)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.G("mta_drc_mutual_exclusion_removal")){var N=this.api.getAudioTrack().K4.id;return Yo(V,function(H){var X;return H.audio.T&&((X=H.K4)==null?void 0:X.id)===N})}return Yo(V,function(H){var X; return((X=H.audio)==null?void 0:X.T)===!0})};g.m(OO,iT);OO.prototype.onVideoDataChange=function(){var p=this,C=this.api.getVideoData();this.api.qt("embargo",1);var V=C==null?void 0:C.It.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(V==null?0:V.length)?l0e(this,V.filter(function(N){return EEv(p,N)})):(C==null?0:C.cueRanges)&&l0e(this,C.cueRanges.filter(function(N){return EEv(p,N)}))}; OO.prototype.C=function(p){return p.embargo!==void 0}; OO.prototype.CS=function(){iT.prototype.CS.call(this);this.T={}};g.m(y7,iT); y7.prototype.addEmbedsConversionTrackingParams=function(p){var C=this.api.K(),V=C.widgetReferrer,N=C.X$,H=this.T,X="",d=C.getWebPlayerContextConfig();d&&(X=d.embedsIframeOriginParam||"");V.length>0&&(p.embeds_widget_referrer=V);N.length>0&&(p.embeds_referring_euri=N);C.S&&X.length>0&&(p.embeds_referring_origin=X);d&&d.embedsFeature&&(p.feature=d.embedsFeature);H.length>0&&(C.G("embeds_web_enable_lite_experiment_control_arm_logging")?H.unshift(28572):g.cw(g.Ig(C))&&H.unshift(159628),C=H.join(","),C= g.Qg()?C:g.vy(C,4),p.source_ve_path=C);this.T.length=0};g.m(t5s,iT);g.m(cWL,iT);g.m(ql,g.Y);ql.prototype.CS=function(){g.Y.prototype.CS.call(this);this.T=null;this.C&&this.C.disconnect()};g.m(M5s,iT);g.m(I8,g.L);I8.prototype.show=function(){g.L.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; I8.prototype.onVideoDataChange=function(p){var C,V,N=(C=this.api.getVideoData())==null?void 0:(V=C.getPlayerResponse())==null?void 0:V.playabilityStatus;N&&(C=JWs(N),g.r(this.api.getPlayerStateObject(),128)||p==="dataloaderror"||!C?(this.C=0,Fpe(this),this.hide()):(p=(C.remainingTimeSecs||0)*1E3,p>0&&(this.show(),this.updateValue("label",VTu(C.label)),vEe(this,p))))}; I8.prototype.CS=function(){Fpe(this);g.L.prototype.CS.call(this)};g.m(S9V,iT);g.m(bT,g.L);bT.prototype.onClick=function(){this.ea.logClick(this.element);this.ea.Jk("onFullerscreenEduClicked")}; bT.prototype.Pr=function(){this.ea.isFullscreen()?this.C?this.T.hide():this.T.show():this.hide();this.ea.logVisibility(this.element,this.ea.isFullscreen()&&!this.C)};g.m(Ah,iT);Ah.prototype.updateFullerscreenEduButtonSubtleModeState=function(p){var C;(C=this.T)!=null&&(g.Tz(C.element,"ytp-fullerscreen-edu-button-subtle",p),p&&!C.V&&(C.element.setAttribute("title","Role para ver detalhes"),o$(C.ea,C.element,C),C.V=!0))}; Ah.prototype.updateFullerscreenEduButtonVisibility=function(p){var C;(C=this.T)!=null&&(C.C=p,C.Pr())};g.m(KpQ,g.L);g.m(ZpY,iT);g.m(UtX,iT);g.m(f0X,iT);g.m(I0a,iT);var yWX="fs pe srt fpt nreqs nress nrese rsf_pj rse_pj rsf_pej rse_pej rsf_pc rse_pc".split(" "),q9j="bpd_c bpd_s gv mb_s pl_c pl_i plev".split(" ");g.m(o8,iT);o8.prototype.getSphericalProperties=function(){var p=g.Pk(this.api.Tk());return p?p.getSphericalProperties():{}}; o8.prototype.setSphericalProperties=function(p){if(p){var C=g.Pk(this.api.Tk());C&&C.setSphericalProperties(p,!0)}};g.m(bpX,iT);g.h=bpX.prototype;g.h.createClientVe=function(p,C,V,N){this.api.createClientVe(p,C,V,N===void 0?!1:N)}; g.h.createServerVe=function(p,C,V){this.api.createServerVe(p,C,V===void 0?!1:V)}; g.h.setTrackingParams=function(p,C){this.api.setTrackingParams(p,C)}; g.h.logClick=function(p,C){this.api.logClick(p,C)}; g.h.logVisibility=function(p,C,V){this.api.logVisibility(p,C,V)}; g.h.hasVe=function(p){return this.api.hasVe(p)}; g.h.destroyVe=function(p){this.api.destroyVe(p)};var oEQ=!1;kn1.prototype.setPlaybackRate=function(p){this.playbackRate=Math.max(1,p)}; kn1.prototype.getPlaybackRate=function(){return this.playbackRate};ePs.prototype.V5=function(p){var C=g.VE(p.info.T.info,this.hk.p4),V=p.info.LS+this.S,N=p.info.startTime*1E3;if(this.policy.UY)try{N=this.policy.UY?rz(p)*1E3:p.info.startTime*1E3}catch(d){Math.random()>.99&&this.logger&&(N=R4(p.T).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:p.info.Zh(),encodedDataView:g.mq(N,4)})),N=p.info.startTime*1E3}var H=p.info.clipId;if(this.policy.UY){if(p.info.T.V1())var X=p.info.duration;else p.S===-1&&(p.S=BR(p)),X=p.S||p.info.duration;X*=1E3}else X=p.info.duration* 1E3;this.policy.UY&&(N<0||X<0)&&this.logger&&(this.logger({missingSegInfo:p.info.Zh(),startTimeMs:N,durationMs:X}),N<0&&(N=p.info.startTime*1E3),X<0&&(X=p.info.duration*1E3));return{formatId:C,LS:V,startTimeMs:N,clipId:H,Qu:X}}; ePs.prototype.pp=function(p){this.timestampOffset=p};nc.prototype.seek=function(p,C){p!==this.T&&(this.seekCount=0);this.T=p;var V=this.videoTrack.C,N=this.audioTrack.C,H=this.audioTrack.NW,X=NBe(this,this.videoTrack,p,this.videoTrack.NW,C);C=NBe(this,this.audioTrack,this.policy.jZ?p:X,H,C);p=Math.max(p,X,C);this.W=!0;this.hk.isManifestless&&(GnS(this,this.videoTrack,V),GnS(this,this.audioTrack,N));return p}; nc.prototype.isSeeking=function(){return this.W}; nc.prototype.ir=function(p){this.V=p}; var VO1=2/24;var iba=0;g.h=B3.prototype;g.h.nT=function(){this.J=this.now();xBe(this.n1,this.J);this.aH.nT()}; g.h.w9=function(p,C){var V=this.policy.C?(0,g.Ip)():0;GJ(this,p,C);p-this.Y<10&&this.C>0||this.qc(p,C);this.aH.w9(p,C);this.policy.C&&(p=(0,g.Ip)()-V,this.ER+=p,this.qo=Math.max(p,this.qo))}; g.h.qc=function(p,C){var V=(p-this.Y)/1E3,N=C-this.V;this.bq||(cg(this.n1,V,N),this.rW(V,N));this.Y=p;this.V=C}; g.h.Kk=function(){this.sY&&hna(this);this.aH.Kk()}; g.h.J6=function(p){this.sY||(this.sY=this.W-this.YM+p,this.wy=this.W,this.qW=this.D)}; g.h.IA=function(p,C){p=p===void 0?this.D:p;C=C===void 0?this.W:C;this.C>0||(this.a$=p,this.C=C,this.Z=this.isActive=!0)}; g.h.mE=function(){}; g.h.cK=function(){var p,C={rn:this.requestNumber,rt:(this.D-this.T).toFixed(),lb:this.W,stall:(1E3*this.S).toFixed(),ht:(this.J-this.T).toFixed(),elt:(this.a$-this.T).toFixed(),elb:this.C,d:(p=this.Vn)==null?void 0:p.c6()};this.url&&AWe(C,this.url);this.policy.C&&(C.mph=this.qo.toFixed(),C.tph=this.ER.toFixed());C.ulb=this.R$;C.ult=this.Sa;C.abw=this.Y_;return C}; g.h.now=function(){return(0,g.Ip)()}; g.h.deactivate=function(){this.isActive&&(this.isActive=!1)};g.m(p4,B3);g.h=p4.prototype;g.h.cK=function(){var p=B3.prototype.cK.call(this);p.pb=this.RO;p.pt=(1E3*this.X$).toFixed();p.se=this.Q$;return p}; g.h.D$=function(){var p=this.aH;this.Ga||(this.Ga=p.D$?p.D$():1);return this.Ga}; g.h.LP=function(){return this.Vv?this.D$()!==1:!1}; g.h.ao=function(p,C,V){if(!this.Hc){this.Hc=!0;if(!this.bq){GJ(this,p,C);this.qc(p,C);var N=this.D$();this.Q$=V;N===2?this.bq||(this.Sa?ag(this.n1,this.Sa/1E3,this.R$,this.KS||this.policy.sY):ag(this.n1,C/Math.max(this.policy.a$,V||this.Y_),C,.01),lL(this.n1,C,this.S)):N===1&&(V=(p-this.T)/1E3,!(V<=this.policy.S)&&this.policy.S||this.Wc||this.policy.Z||!(this.C>0)||l8Y(this,V,C),this.C>0&&lL(this.n1,C,this.S));p=(p-this.T)/1E3||.01;this.policy.J&&!(this.C>0)||Ee(this.n1,p,this.V,E$X(this),this.Ti)}this.deactivate()}}; g.h.k8=function(p,C,V){V&&(this.Ga=2);p<0&&this.HR&&(p=this.HR);C?this.Qn+=p:this.KS+=p}; g.h.qc=function(p,C){var V=(p-this.Y)/1E3,N=C-this.V,H=this.D$();this.isActive?H===1&&((N>0||this.policy.W)&&(V>.2||N<1024)?(this.S+=V,N>0&&V>.2&&l8Y(this,this.v_?V:.05,N),this.Wc=!0):N>0&&(l8Y(this,V,N),this.Wc=!0)):C&&C>=this.policy.T&&this.IA(p,C);B3.prototype.qc.call(this,p,C)}; g.h.QK=function(p){if(!this.bq){GJ(this,p,this.W);var C=(p-this.T)/1E3;this.D$()!==2&&this.C>0&&(this.S+=(p-this.Y)/1E3,lL(this.n1,this.V,this.S));Ee(this.n1,C,this.V,E$X(this),this.Ti,!0);p=(p-this.Y)/1E3;cg(this.n1,p,0);this.rW(p,0)}}; g.h.IA=function(p,C){p=p===void 0?this.D:p;C=C===void 0?this.W:C;if(!(this.C>0)&&(B3.prototype.IA.call(this,p,C),this.D$()===1)){C=(this.J-this.T)/1E3;var V=(p-this.J)/1E3;this.Vv&&MOs(this,this.now());this.kM||this.bq||(this.HR&&(V=Math.max(0,V-this.HR)),p=this.n1,p.J.N3(1,C),p.Sa.N3(1,V))}}; g.h.dT=function(){this.Vv&&MOs(this,this.now());return this.vr}; g.h.GC=function(){var p;if(p=this.V>this.sP)p=(p=this.V)?p>=this.policy.T:!1;return p}; g.h.SQ=function(){return this.UY}; g.h.gD=function(p){p=p===void 0?this.now():p;if(this.Vv){MOs(this,p);if(this.Ga?this.LP():this.b_!==this.Wr){var C=this.Wr;if(p0?V+p:V+Math.max(p,C)}; g.h.yD=function(){return this.now()-this.a$}; g.h.WG=function(){return(this.V-this.C)*1E3/this.yD()||0}; g.h.j$=function(){return this.a$};C4.prototype.feed=function(p){k9(this.T,p);this.f7()}; C4.prototype.f7=function(){if(this.S){if(!this.T.getLength())return;var p=this.T.split(this.V-this.C),C=p.Yd;p=p.LM;if(!this.aH.J6(this.S,C,this.C,this.V))return;this.C+=C.getLength();this.T=p;this.C===this.V&&(this.S=this.V=this.C=void 0)}for(;;){var V=0;p=g.F(Jzu(this.T,V));C=p.next().value;V=p.next().value;V=g.F(Jzu(this.T,V));p=V.next().value;V=V.next().value;if(C<0||p<0)break;if(!this.T.sC(V,p)){if(!this.aH.J6||!this.T.sC(V,1))break;V=this.T.split(V).LM;this.aH.J6(C,V,0,p)&&(this.S=C,this.C= V.getLength(),this.V=p,this.T=new o4([]));break}p=this.T.split(V).LM.split(p);V=p.LM;this.aH.ZC(C,p.Yd);this.T=V}}; C4.prototype.dispose=function(){this.T=new o4};g.h=jf.prototype;g.h.q7=function(){return 0}; g.h.b5=function(){return null}; g.h.D0=function(){return null}; g.h.Rb=function(){return this.state>=1}; g.h.isComplete=function(){return this.state>=3}; g.h.Ad=function(){return this.state===5}; g.h.onStateChange=function(){}; g.h.UZ=function(p){var C=this.state;this.state=p;this.onStateChange(C);this.callback&&this.callback(this,C)}; g.h.dZ=function(p){p&&this.state=this.xhr.HEADERS_RECEIVED}; g.h.getResponseHeader=function(p){try{return this.xhr.getResponseHeader(p)}catch(C){return""}}; g.h.j9=function(){return+this.getResponseHeader("content-length")}; g.h.cI=function(){return this.C}; g.h.Pn=function(){return this.status>=200&&this.status<300&&!!this.C}; g.h.CM=function(){return this.T.getLength()>0}; g.h.jg=function(){var p=this.T;this.T=new o4;return p}; g.h.Hg=function(){return this.T}; g.h.abort=function(){this.fS=!0;this.xhr.abort()}; g.h.hV=function(){return!0}; g.h.w5=function(){return this.V}; g.h.FF=function(){return""};g.h=K6e.prototype;g.h.getResponseHeader=function(p){return p==="content-type"?this.T.get("type"):""}; g.h.abort=function(){}; g.h.iO=function(){return!0}; g.h.j9=function(){return this.range.length}; g.h.cI=function(){return this.loaded}; g.h.Pn=function(){return!!this.loaded}; g.h.CM=function(){return!!this.C.getLength()}; g.h.jg=function(){var p=this.C;this.C=new o4;return p}; g.h.Hg=function(){return this.C}; g.h.hV=function(){return!0}; g.h.w5=function(){return!!this.error}; g.h.FF=function(){return this.error};g.h=u11.prototype;g.h.start=function(p){var C={credentials:"include",cache:"no-store"};Object.assign(C,this.D);this.S&&(C.signal=this.S.signal);p=new Request(p,C);fetch(p).then(this.Z,this.onError).then(void 0,lN)}; g.h.onDone=function(){this.fS()||this.aH.Kk()}; g.h.getResponseHeader=function(p){return this.responseHeaders?this.responseHeaders.get(p):null}; g.h.iO=function(){return!!this.responseHeaders}; g.h.cI=function(){return this.C}; g.h.j9=function(){return+this.getResponseHeader("content-length")}; g.h.Pn=function(){return this.status>=200&&this.status<300&&!!this.C}; g.h.CM=function(){return!!this.T.getLength()}; g.h.jg=function(){this.CM();var p=this.T;this.T=new o4;return p}; g.h.Hg=function(){this.CM();return this.T}; g.h.fS=function(){return this.W}; g.h.abort=function(){this.V&&this.V.cancel().catch(function(){}); this.S&&this.S.abort();this.W=!0}; g.h.hV=function(){return!0}; g.h.w5=function(){return this.Y}; g.h.FF=function(){return this.errorMessage};g.h=Zbe.prototype;g.h.onDone=function(){if(!this.fS){this.status=this.xhr.status;try{this.response=this.xhr.response,this.C=this.response.byteLength}catch(p){}this.T=!0;this.aH.Kk()}}; g.h.q$=function(){this.xhr.readyState===2&&this.aH.nT()}; g.h.Nn=function(p){this.fS||(this.status=this.xhr.status,this.T||(this.C=p.loaded),this.aH.w9((0,g.Ip)(),p.loaded))}; g.h.iO=function(){return this.xhr.readyState>=2}; g.h.getResponseHeader=function(p){try{return this.xhr.getResponseHeader(p)}catch(C){return g.eG(Error("Could not read XHR header "+p)),""}}; g.h.j9=function(){return+this.getResponseHeader("content-length")}; g.h.cI=function(){return this.C}; g.h.Pn=function(){return this.status>=200&&this.status<300&&this.T&&!!this.C}; g.h.CM=function(){return this.T&&!!this.response&&!!this.response.byteLength}; g.h.jg=function(){this.CM();var p=this.response;this.response=void 0;return new o4([new Uint8Array(p)])}; g.h.Hg=function(){this.CM();return new o4([new Uint8Array(this.response)])}; g.h.abort=function(){this.fS=!0;this.xhr.abort()}; g.h.hV=function(){return!1}; g.h.w5=function(){return!1}; g.h.FF=function(){return""};g.HI.prototype.info=function(){}; g.HI.prototype.debug=function(){}; g.HI.prototype.T=CY(36);var yzV=new Map,bbv=new Map,q69=new function(){var p=this;this.T=new Map;this.Sr={NjS:function(){return p.T}}};g.m(XM,g.Y);XM.prototype.iT=function(){if(!this.Ng.length)return[];var p=this.Ng;this.Ng=[];this.V=g.wY(p).info;return p}; XM.prototype.UG=function(){return this.Ng}; XM.prototype.CS=function(){g.Y.prototype.CS.call(this);this.T=null;this.Ng.length=0;this.wV.length=0;this.V=null};g.m(i2,g.Y);g.h=i2.prototype;g.h.Kg_=function(){if(!this.fS()){var p=(0,g.Ip)(),C=!1;if(this.timing.C>0){if(this.W){this.policy.qW&&(this.T=0);return}var V=this.timing.SQ();this.timing.gD();var N=this.timing.SQ();N-V>=this.policy.K$*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(N-V).toFixed(0)}),C=this.T>=5):this.T=0}else{var H=p-this.timing.dT(); H>0&&(this.T+=1);p=ouH(ht(this),!1)*this.policy.Ln;(C=H>p*1E3)&&this.logger.debug(function(){return"Elbow late by "+H.toFixed(3)})}this.T>0&&this.aH.OB(); C?this.RA(!1):this.C.start()}}; g.h.RA=function(p){this.S=!0;p&&(p=ht(this),p.V+=1);this.aH.OX();this.lastError="net.timeout";aA(this)}; g.h.canRetry=function(p){var C=ht(this);p=p?this.policy.Hn:this.policy.uM;return C.timedOut0&&(C=C.T.getUint8(0),p.ubyte=C,V===1&&C===0&&(p.b248180278=!0))}this.zI&&(p.rc=this.policy.DM?this.zI:this.zI.toString());this.policy.I6&&this.pc&&(p.tr=this.pc);p.itag=this.info.wV[0].T.info.itag;p.ml=""+ +this.info.wV[0].T.rI();p.sq=""+this.info.wV[0].LS;this.sO&&(p.ifi=""+ +Dy(this.info.sR.V));this.zI!==410&&this.zI!==500&&this.zI!==503||(p.fmt_unav="true");var N;(V=this.errorMessage||((N=this.xhr)==null? void 0:N.FF()))&&(p.msg=V);this.Oy&&(p.smb="1");this.info.isDecorated()&&(p.sdai="1");return p}; g.h.h4=function(){return tOv(this.timing)}; g.h.FF=function(){return this.xhr.FF()||""}; g.h.GC=function(){return this.isComplete()||this.timing.GC()}; g.h.w9=function(){!this.fS()&&this.xhr&&(this.zI=this.xhr.status,this.policy.Gf&&this.TI&&this.bF(!1),this.Lp()?this.dZ(2):!this.h$&&this.GC()&&(this.dZ(),this.h$=!0))}; g.h.nT=function(){if(!this.fS()&&this.xhr){if(!this.A7&&this.xhr.iO()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var p=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.A7=((0,g.Ip)()-p)/1E3}this.xhr.iO()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.JT&&!fSj()&&g.Yl("yt-player-headers-readable",!0,2592E3);p=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var C=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),V;(V=this.jX)==null||V.stop();this.J8=p||this.J8; this.x5=C||this.x5}}; g.h.Kk=function(){var p=this.xhr;if(!this.fS()&&p){this.zI=p.status;p=this.dl(p);if(this.policy.I6){var C;(C=this.jX)==null||C.stop()}p===5?aA(this.uJ):this.UZ(p);this.uJ.C.stop()}}; g.h.dl=function(p){var C=this;tHe(this);if(E4(this.uJ,this.xhr.status,this.Rc?this.timing.Z||this.J3:this.xhr.Pn(),!1,this.Hj))return 5;var V="";l2(this.uJ,this.xhr)&&(V=znY(this.uJ,this.xhr));if(V)return cR(ht(this.uJ)),this.info.x9(this.sO,V),3;V=p.cI();if(this.Ge){this.bF(!0);tHe(this);if(E4(this.uJ,this.xhr.status,this.timing.Z||this.J3,!1,this.Hj))return 5;if(!this.dS){if(this.J3)return cR(ht(this.uJ)),3;this.uJ.lastError="net.closed";return 5}}else{if(E4(this.uJ,this.xhr.status,this.xhr.Pn(), !1,this.Hj))return 5;var N=this.info.V;if(N&&N!==V||p.w5())return this.uJ.lastError="net.closed",5;this.bF(!0)}N=m6S(this)?p.getResponseHeader("X-Bandwidth-Est"):0;if(p=m6S(this)?p.getResponseHeader("X-Bandwidth-Est3"):0)this.JN=!0,this.policy.pj&&(N=p);x6S(this.uJ,V,N?Number(N):0);this.logger.debug(function(){var H=C.timing;return"Succeeded, rtpd="+(H.X$*1E3+H.T-Date.now()).toFixed(0)}); return 4}; g.h.canRetry=function(){this.fS();var p=this.info.isDecorated();return this.uJ.canRetry(p)}; g.h.onStateChange=function(){this.isComplete()&&(this.policy.VP?this.OX():this.timing.deactivate())}; g.h.RA=function(p){this.uJ.RA(p)}; g.h.OB=function(){this.callback&&this.callback(this,this.state)}; g.h.r9=function(){return this.uJ.r9()}; g.h.dispose=function(){jf.prototype.dispose.call(this);this.uJ.dispose();var p;(p=this.jX)==null||p.dispose();this.policy.VP||this.OX()}; g.h.OX=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.h.iT=function(){if(!this.UG().length)return[];this.X2=!0;return this.TI.iT()}; g.h.Lp=function(){if(this.state<1)return!1;if(this.TI&&this.TI.Ng.length)return!0;var p;return((p=this.xhr)==null?0:p.CM())?!0:!1}; g.h.UG=function(){this.bF(!1);return this.TI?this.TI.UG():[]}; g.h.bF=function(p){try{if(p||this.xhr.iO()&&this.xhr.CM()&&!l2(this.uJ,this.xhr)&&!this.C6)this.TI||(this.TI=new XM(this.policy,this.info.wV)),this.xhr.CM()&&(this.Ge?this.Ge.feed(this.xhr.jg()):dd(this.TI,this.xhr.jg(),p&&!this.xhr.CM()))}catch(C){this.Ge?aW1(this,C):g.eG(C)}}; g.h.ZC=function(p,C){switch(p){case 21:p=C.split(1).LM;ESL(this,p);break;case 22:this.dS=!0;dd(this.TI,new o4([]),!0);break;case 43:if(p=CW(new WH(C),1))this.info.x9(this.sO,p),this.J3=!0;break;case 45:C=Gv(new WH(C));p=C.ZY;C=C.yh;p&&C&&(this.aY=p/C);break;case 44:this.PC=ZPL(new WH(C));var V,N,H;!this.timing.Z&&((V=this.PC)==null?void 0:V.action)===4&&((N=this.PC)==null?0:(H=N.Dl)==null?0:H.Rc)&&(this.Rc=this.PC.Dl.Rc);break;case 53:this.policy.I6&&(p=KiL(new WH(C)).bL)&&(this.jX||(this.bL=p,this.jX= new g.N8(this.gQ,p,this)),this.jX.start());break;case 60:this.pQ=BY(new WH(C));break;case 58:if(p=CHe(new WH(C)))this.e6=p,p.e6===3&&(this.Hj=!0)}}; g.h.J6=function(p,C,V,N){V||this.timing.J6(N);if(p!==21)return!1;if(p=this.policy.Gf)if(N=C.getLength()+V===N,p*=this.info.wV[0].T.info.F$,!N&&C.getLength()0)return!1;if(!this.xhr.iO())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Ge)var p=!this.info.V;else this.xhr.j9()?p=!1:(p=this.xhr.getResponseHeader("content-type"),p=p==="audio/mp4"||p==="video/mp4"||p==="video/webm");if(!p)return!1;if(isNaN(this.info.kq)){p=this.xhr.getResponseHeader("x-head-seqnum");var C=this.timing.policy.D?1:0;if(!p)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(p)>this.info.wV[0].LS+C)return!1}return!0}; g.h.eh=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.h.b5=function(){this.xhr&&(this.J8=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J8}; g.h.D0=function(){this.xhr&&(this.x5=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.x5}; g.h.LO=function(){return this.uJ.LO()}; g.h.gQ=function(){if(!this.fS()&&this.xhr){this.pc="heartbeat";var p=this.uJ;p.T+=2;this.OB()}};g.m(mB,B3);g.h=mB.prototype;g.h.qc=function(p,C){var V=(p-this.Y)/1E3,N=C-this.V;this.C>0?N>0&&(this.b_&&(V>.2||N<1024?(this.S+=V,V>.2&&cRV(this,.05,N)):cRV(this,V,N)),this.Wr&&(this.vr+=N,this.Ga+=V)):C>this.policy.T&&this.IA(p,C);B3.prototype.qc.call(this,p,C)}; g.h.ao=function(p,C){GJ(this,p,C);this.qc(p,C);this.b_&&(C=this.V*this.snapshot.stall+this.V/this.snapshot.byterate,this.C>0&&lL(this.n1,this.vr,this.S),p=(p-this.T)/1E3||.01,this.policy.J&&!(this.C>0)||Ee(this.n1,p,this.V,C,!1))}; g.h.QK=function(p){GJ(this,p,this.W);var C=(p-this.Y)/1E3;cg(this.n1,C,0);this.rW(C,0);!this.b_&&this.C>0||(C=this.V*this.snapshot.stall+this.V/this.snapshot.byterate,this.C>0&&(this.S+=(p-this.Y)/1E3,lL(this.n1,this.vr,this.S)),Ee(this.n1,((p-this.T)/1E3||.01)*this.policy.b_,this.V,C,!1,!0))}; g.h.Rs=function(p){p=p.Hq||2147483647;(p&2)!==2&&(this.Wr=!1);(p&1)===1&&(this.b_=!0)}; g.h.We=function(p){p=p.Hq||2147483647;(p&2)===2&&(this.Wr=!1);(p&1)===1&&(this.b_=!1)}; g.h.j$=function(){return this.a$}; g.h.yD=function(){var p=this.Wr?this.now()-this.Y:0;return Math.max(this.Ga*1E3+p,1)}; g.h.WG=function(){return this.vr*1E3/this.yD()}; g.h.IA=function(p,C){p=p===void 0?this.D:p;C=C===void 0?this.W:C;this.C>0||(B3.prototype.IA.call(this,p,C),C=this.n1,p=(p-this.J)/1E3,C.J.N3(1,(this.J-this.T)/1E3),C.Sa.N3(1,p))}; g.h.mE=function(p){this.UY=p}; g.h.cK=function(){var p=B3.prototype.cK.call(this);p.rbw=this.WG();p.rbe=+this.Wr;p.gbe=+this.b_;p.ackt=(this.UY-this.T).toFixed();return p}; g.h.gD=function(){}; g.h.SQ=function(){return NaN}; g.h.dT=function(){return this.T+this.snapshot.delay*1E3};vI.prototype.ZC=function(p,C){C.getLength();switch(p){case 20:p=new WH(C);p={Qz:BH(p,1),videoId:CW(p,2),itag:BH(p,3),lmt:BH(p,4),xtags:CW(p,5),RW:BH(p,6),h9:Gk(p,8),o9:BH(p,9),Frn:BH(p,10),startMs:BH(p,11),durationMs:BH(p,12),yA:BH(p,14),timeRange:js(p,15,Yr1),R5:BH(p,16),ww:BH(p,17),clipId:CW(p,1E3)};this.Ki(p);break;case 21:this.t5(C,!1);break;case 22:this.AF(C);break;case 31:p=HJ(C,c4a);this.ZR(p);break;case 52:p=HJ(C,Dzj);this.cE(p);break;default:this.Wy(p,C)}}; vI.prototype.Ki=function(){}; vI.prototype.Wy=function(){};g.m(TGe,vI);g.h=TGe.prototype; g.h.Wy=function(p,C){C.getLength();switch(p){case 35:this.x$(C);break;case 44:this.eN(C);break;case 43:this.XH(C);break;case 53:this.oo(C);break;case 55:p=new WH(C);(p={timeline:js(p,1,fcY),XVe:js(p,2,qfy)},p.timeline)&&p.timeline.HD&&this.aH.kD(p.timeline.HD,p.timeline.GMS,p.XVe);break;case 56:this.G4();break;case 57:this.uN(C);break;case 42:this.h5(C);break;case 45:this.Ia(C);break;case 59:this.h_(C);break;case 51:this.p8(C);break;case 49:this.Rs(C);break;case 50:this.We(C);break;case 47:this.He(C); break;case 58:this.aA(C);break;case 61:this.aH.MZ.mE((0,g.Ip)());break;case 66:this.Q8(C);break;case 46:this.L8(C);break;case 67:this.onSnackbarMessage(C)}}; g.h.p8=function(p){p=new WH(p);p={iV_:Ng(p,1,QC),z2n:Ng(p,2,QC)};this.aH.p8(p)}; g.h.h_=function(p){var C=new WH(p);p=Vi(C,1);var V=Vi(C,2);C=Vi(C,3);this.aH.h_(p,V,C)}; g.h.Ia=function(p){p=Gv(new WH(p));this.aH.Ia(p)}; g.h.He=function(p){p=HJ(p,J41);this.aH.He(p)}; g.h.h5=function(p){p=new WH(p);p={videoId:CW(p,1),formatId:js(p,2,QC),endTimeMs:BH(p,3),kRx:BH(p,4),mimeType:CW(p,5),QS:js(p,6,hqe),indexRange:js(p,7,hqe),Qq:js(p,8,s3Y)};this.aH.h5(p)}; g.h.uN=function(p){p=qfy(new WH(p));this.aH.uN(p)}; g.h.G4=function(){this.aH.G4()}; g.h.x$=function(p){p=TtQ(new WH(p));this.aH.x$(p)}; g.h.oo=function(p){p=KiL(new WH(p));this.aH.oo(p)}; g.h.eN=function(p){p=ZPL(new WH(p));this.aH.eN(p)}; g.h.XH=function(p){p={redirectUrl:CW(new WH(p),1)};this.aH.XH(p)}; g.h.t5=function(p){var C=p.getUint8(0);if(p.getLength()!==1){p=p.split(1).LM;var V=this.C[C]||null;V&&u2(this.aH.g6,C,V,p)}}; g.h.AF=function(p){p=p.getUint8(0);var C=this.C[p]||null;C&&this.aH.AF(p,C)}; g.h.cE=function(p){this.aH.cE(p)}; g.h.Ki=function(p){var C=p.Qz,V=p.h9,N=p.RW,H=p.ww,X=p.R5,d=p.o9,a=p.startMs,E=p.durationMs,l=p.timeRange,t=p.yA,c=p.clipId,T=S5(p);p=gK0.has(gO[""+p.itag]);this.C[C]=T;this.aH.k8(T,p,{Qz:C,h9:!!V,RW:N!=null?N:-1,o9:d!=null?d:-1,startMs:a!=null?a:-1,durationMs:E!=null?E:-1,yA:t,ww:H,R5:X,clipId:c,timeRange:l})}; g.h.Rs=function(p){p={Hq:BH(new WH(p),1)};this.aH.Rs(p)}; g.h.We=function(p){p={Hq:BH(new WH(p),1)};this.aH.We(p)}; g.h.ZR=function(p){this.aH.ZR(p)}; g.h.aA=function(p){p=CHe(new WH(p));this.aH.aA(p)}; g.h.Q8=function(p){p={pJ:js(new WH(p),1,FiL)};this.aH.Q8(p)}; g.h.onSnackbarMessage=function(p){p=BH(new WH(p),1);this.aH.onSnackbarMessage(p)}; g.h.L8=function(p){p={reloadPlaybackParams:js(new WH(p),1,pUL)};this.aH.L8(p)};g.m(FM,g.Y);g.h=FM.prototype;g.h.yl=function(){return Array.from(this.hc.keys())}; g.h.xn=function(p){p=this.hc.get(p);var C=p.Ng;p.ZV+=C.getLength();p.Ng=new o4;return C}; g.h.gI=function(p){return this.hc.get(p).gI}; g.h.zC=function(p){return this.hc.get(p).zC}; g.h.k8=function(p,C,V,N){this.hc.get(p)||K4Q(this,p,C);C=this.hc.get(p);if(this.hk){p=usy(this,p,V);if(N)for(var H=g.F(p),X=H.next();!X.done;X=H.next()){X=X.value;var d=N;X.Z=d;X.startTime+=d;X.Qi+=d;X.zM+=d}DnX(this,V.Qz,C,p)}else V.h9?C.J$=V.yA:C.C8.push(V),C.aE.push(V)}; g.h.Ux=function(p){var C;return((C=this.hc.get(p))==null?void 0:C.wV)||[]}; g.h.dZ=function(){for(var p=g.F(this.hc.values()),C=p.next();!C.done;C=p.next())C=C.value,C.P2&&(C.Nn&&C.Nn(),C.P2=!1)}; g.h.AF=function(p,C){this.logger.debug(function(){return"[onMediaEnd] formatId: "+C}); var V=this.hc.get(C);if(Sf){if(V&&!V.gI){if(V.Ef.get(p))V.Ef.get(p).Lg=!0;else{var N;((N=this.wY)==null?0:N.va)&&V.Ef.set(p,{data:new o4,kT:0,Lg:!0})}V.zC=!0}}else V&&!V.zC&&(V.zC=!0)}; g.h.iT=function(p){if(Sf){var C=this.hc.get(p);if(C)for(var V=g.F(C.Ef),N=V.next();!N.done;N=V.next()){var H=g.F(N.value);N=H.next().value;H=H.next().value;var X=C.tK.get(N);if(O9(X[0])){if(!H.Lg)continue;var d=X,a=H.data;a.getLength();X=0;var E=[];d=g.F(d);for(var l=d.next();!l.done;l=d.next()){l=l.value;var t=l.V,c=x9(a,X,t);X+=t;E.push(new WR(l,c))}C.Xr.push.apply(C.Xr,g.K(E))}else if(H.data.getLength()>0||!X[0].range&&H.Lg)a=void 0,X=X[0],E=H.kT,d=H.data,X.range||(a=H.Lg),l=d.getLength(),a=new WR(rK1(X, X.C+E,l,a),d),H.kT+=a.info.V,C.Xr.push(a);C.Ef.get(N).data=new o4;H.Lg&&C.Ef.delete(N)}p=this.hc.get(p);if(!p)return[];C=p.Xr;p.Xr=[];V=g.F(C);for(N=V.next();!N.done;N=V.next())p.ZV+=N.value.info.V;return C||[]}V=(C=this.hc.get(p))==null?void 0:C.TI;if(!V)return[];this.bF(p,V);return V.iT()}; g.h.Lp=function(p){if(Sf)return DX(this,p);var C,V,N;return!!((V=(C=this.hc.get(p))==null?void 0:C.TI)==null?0:(N=V.UG())==null?0:N.length)||DX(this,p)}; g.h.bF=function(p,C){for(;DX(this,p);){var V=this.xn(p);var N=p;N=this.hc.get(N).gI&&!F4V(this,N);dd(C,V,N&&Sej(this,p))}}; g.h.CS=function(){g.Y.prototype.CS.call(this);for(var p=g.F(this.hc.keys()),C=p.next();!C.done;C=p.next())JRj(this,C.value);var V;if((V=this.wY)==null?0:V.gR)for(p=g.F(this.hc.values()),C=p.next();!C.done;C=p.next())C=C.value,C.Ef.clear(),C.tK.clear(),C.Xr.length=0,C.wV.length=0,C.aE.length=0,C.C8.length=0;this.hc.clear()}; var Sf=!1;g.m(ZX,g.Y);g.h=ZX.prototype;g.h.w9=function(){!this.fS()&&this.xhr&&(this.bF(!1),Cu(this.aH,this))}; g.h.nT=function(){}; g.h.Kk=function(){if(!this.fS()&&this.xhr){var p=this.dl();p===5?aA(this.uJ):this.UZ(p);this.uJ.C.stop();var C;(C=this.sy)==null||C.stop()}}; g.h.dl=function(){var p="";l2(this.uJ,this.xhr)&&(p=znY(this.uJ,this.xhr));if(p)return this.info.sR.x9(this.sO,p),3;this.bF(!0);if(E4(this.uJ,this.xhr.status,this.xhr.Pn(),this.info.Hf(),this.Hj))return 5;if(this.B0)return 3;x6S(this.uJ,this.xhr.cI(),0);this.policy.VZ&&eWS(this.aH);return 4}; g.h.bF=function(p){var C=this.xhr;if((p||!l2(this.uJ,this.xhr))&&C.CM()){p=C.jg();var V=p.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+V}); this.Ge.feed(p)}}; g.h.ZC=function(p,C){this.xhr.hV()&&p===21&&OIL(this);this.tN.ZC(p,C)}; g.h.J6=function(p,C,V,N){V||(this.MZ.J6(N),this.policy.QR&&p===21&&OIL(this));if(p!==21)return!1;this.MZ.Z=!0;p=C.getLength();V||(this.v4=C.getUint8(0),C=C.split(1).LM);var H=this.tN.C[this.v4],X=this.hk.V.get(H);if(X&&(X=X.info.F$*.01,p+V!==N&&p0){p=this.MZ.yD();C=this.MZ.WG();var V=yRj(this,p);if(!(C>V.Pu||V.X9>0&&this.info.aq()>V.X9)){this.JZ=(0,g.Ip)();var N;(N=this.sy)==null||N.stop();this.policy.VZ&&(N=this.aH,p={Hb:Math.round(C*p/1E3),ys:p},N.policy.VZ&&(N.Vn=p,N.iL++));this.RA(!1)}}}}; g.h.RA=function(p){this.uJ.RA(p)}; g.h.eN=function(p){this.aH.eN(p,this.ZM())}; g.h.XH=function(p){this.B0=!0;this.info.sR.x9(this.sO,p.redirectUrl)}; g.h.Rs=function(p){this.MZ instanceof mB&&this.MZ.Rs(p)}; g.h.We=function(p){this.MZ instanceof mB&&this.MZ.We(p)}; g.h.kD=function(p,C,V){this.aH.kD(p,C,V,this.ZM())}; g.h.h5=function(p){var C=p.formatId,V=S5({itag:C.itag,lmt:C.lmt,xtags:C.xtags}),N,H,X=new D0(((N=p.QS)==null?void 0:N.first)||0,((H=p.QS)==null?void 0:H.xi)||0),d,a;N=new D0(((d=p.indexRange)==null?void 0:d.first)||0,((a=p.indexRange)==null?void 0:a.xi)||0);if(!this.hk.V.get(V)){V=p.Qq||{};if(this.policy.SE){var E,l;p=(E=p.mimeType)!=null?E:"";E=(l=C.itag)!=null?l:0;l=gO[""+E];V.mimeType=l!=="9"&&l!=="9h"?p:'video/webm; codecs="'+["vp09",l==="9h"?"02":"00","51",l==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else V.mimeType=p.mimeType;V.itag=C.itag;V.lastModified=""+(C.lmt||0);V.xtags=C.xtags;C=this.hk;l=tz("");E=E6(V,null);X1(C,new VM(l,E,X,N))}}; g.h.Ia=function(p){this.aH.Ia(p)}; g.h.onSnackbarMessage=function(p){if(this.policy.Bv)this.aH.onSnackbarMessage(p)}; g.h.ZR=function(p){this.C5=p;this.vQ=(0,g.Ip)();this.aH.ZR(p)}; g.h.h_=function(p,C,V){this.aH.h_(p,C,V)}; g.h.uN=function(p){p.scope===2&&(this.Fga=p);this.aH.uN(p)}; g.h.G4=function(){this.cL=!0;this.aH.G4()}; g.h.p8=function(p){this.policy.kt&&this.aH.p8(p)}; g.h.He=function(p){this.aH.He(p,this.ZM())}; g.h.aA=function(p){p.e6===3&&(this.Hj=!0);this.aH.aA(p)}; g.h.Q8=function(p){this.aH.Q8(p)}; g.h.L8=function(p){this.aH.L8(p)}; g.h.canRetry=function(){this.fS();return this.uJ.canRetry(!1)}; g.h.dispose=function(){if(!this.fS()){g.Y.prototype.dispose.call(this);this.uJ.dispose();var p;(p=this.sy)==null||p.dispose();this.UZ(-1);this.OX()}}; g.h.UZ=function(p){this.state=p;Cu(this.aH,this)}; g.h.Hf=function(){return this.info.Hf()}; g.h.D3=function(){return this.cL}; g.h.Gc=function(){return this.Fga}; g.h.k8=function(p,C,V){V.clipId&&(this.clipId=V.clipId);this.policy.W&&!C&&(this.ox=V.o9,this.u3=V.startMs);var N=0;this.policy.XT&&this.OQ&&this.clipId&&(N=zJ(this.OQ,this.clipId)/1E3);this.g6.k8(p,C,V,N);this.policy.Of&&this.C5&&this.MZ instanceof p4&&(N=this.C5.LJ,this.MZ.k8(V.durationMs/1E3,C,N>0&&V.o9+1>=N));this.g6.hc.get(p).g3=!0}; g.h.AF=function(p,C){this.g6.AF(p,C)}; g.h.cE=function(p){this.requestIdentifier=p}; g.h.iT=function(p){return this.g6.iT(p)}; g.h.Ux=function(p){return this.g6.Ux(p)}; g.h.Lp=function(p){return this.g6.Lp(p)}; g.h.yl=function(){return this.g6.yl()}; g.h.D$=function(){return 1}; g.h.ZM=function(){return this.MZ.requestNumber}; g.h.Ly=function(){return this.requestIdentifier}; g.h.Ns=function(){return this.clipId}; g.h.i9=function(){return this.sO.i9()}; g.h.bV=function(){this.OX()}; g.h.OX=function(){this.MZ.deactivate();var p;(p=this.xhr)==null||p.abort()}; g.h.isComplete=function(){return this.state>=3}; g.h.aB=function(){return this.state===3}; g.h.Ad=function(){return this.state===5}; g.h.bE=function(){return this.state===4}; g.h.jh=function(){return this.isComplete()}; g.h.Rb=function(){return this.state>=1}; g.h.r9=function(){return this.policy.qW?this.uJ.r9():0}; g.h.OB=function(){this.policy.qW&&Cu(this.aH,this)}; g.h.Xa=function(){return vjS(this.info)}; g.h.LO=function(){return this.uJ.LO()}; g.h.BP=function(){var p=RnQ(this.uJ);Object.assign(p,S5H(this.info));p.req="sabr";p.rn=this.ZM();var C;if((C=this.xhr)==null?0:C.status)p.rc=this.policy.DM?this.xhr.status:this.xhr.status.toString();var V;(C=(V=this.xhr)==null?void 0:V.FF())&&(p.msg=C);this.JZ&&(V=yRj(this,this.JZ-this.MZ.j$()),p.letm=V.ue,p.mrbps=V.Pu,p.mram=V.X9);return p}; g.h.qs=function(){return{ox:this.ox,u3:this.u3,isDecorated:this.info.isDecorated()}};qes.prototype.tick=function(p,C){this.ticks[p]=C?window.performance.timing.navigationStart+C:(0,g.Ip)()};g.m(egj,g.ca);g.h=egj.prototype; g.h.T5=function(p,C,V,N){var H=!1;this.policy.Qn&&(H=V?this.Vn===p.LS:this.sY===p.LS);if(this.Y&&N&&!H){N=[];H=[];var X=[],d=void 0,a=0;C&&(N=C.T,H=C.C,X=C.S,d=C.V,a=C.Ja);this.policy.Qn&&(V?this.Vn=p.LS:this.sY=p.LS);this.Y.MI(p.LS,p.startTime,this.C,N,H,X,V,a,d)}if(this.policy.Qn){if(V||this.policy.Uv){this.C===1&&O4(this,5,"noad");var E;p.LS!==((E=this.T)==null?void 0:E.LS)&&(wgX(this,p,C,V),isNaN(p.startTime)||$nV(this,p.LS,yN(this,p.startTime,p.LS),!!C,this.Y))}}else V&&wgX(this,p,C)}; g.h.l1=function(p,C,V){var N=this.videoTrack.T.index.Ha()<=C;this.T={xB:p,LS:C,fJ:V};N&&f4(this,p,C)}; g.h.Cg=function(){this.Y&&this.Y.Cg()}; g.h.k_=function(p,C){this.nS.k_(p,C)}; g.h.s_=function(p,C){var V=this.videoTrack.T.index.tU(p);if(V>=0){var N;var H=((N=jM(C.GB,V,2))==null?void 0:N.w2)||"";if(this.policy.W||H)return C.Wm(p,V),gSS(this.nS,p,p,V),this.k_("sdai",{cmskpad:1,t:p.toFixed(3),sq:V}),!0}this.k_("sdai",{cmskpad:0,t:p.toFixed(3),sq:V});return!1};g.m(At,g.Y);At.prototype.Zm=function(p,C,V){V=V===void 0?{}:V;this.policy.Tp=U6(p,V,this.S,C===void 0?!1:C)};p7H.prototype.M4=function(p){var C=this;if(this.policy.G2){var V=new Set(p);V.size===this.Sa.size&&[].concat(g.K(V)).every(function(N){return C.Sa.has(N)})||(this.nS.k_("lwnmow",{itagDenylist:[].concat(g.K(p)).join(",")}),this.nS.gJ(!!V.size),this.Z=-1,this.Sa=V,zX(this,this.T),this.Ga=!0)}}; p7H.prototype.Zm=function(p,C,V){V=V===void 0?{}:V;var N=this.policy.Tp;this.W.Zm(p,C===void 0?!1:C,V);if(N!==this.policy.Tp){zX(this,this.T);RA(this);var H,X;N>this.policy.Tp&&((H=this.C)==null?0:BB(H.info))&&((X=this.nextVideo)==null||!BB(X.info))&&(this.a$=!0)}};vBH.prototype.pp=function(p){this.timestampOffset=p;this.flush()}; vBH.prototype.flush=function(){if(this.T.pos>0){var p={a:this.track.DQ(),u:this.T.c6(),pd:Math.round(this.S),ad:Math.round(this.V)},C=this.C;if(C){var V=C.T.info;p.itag=V.itag;V.T&&(p.xtags=V.T);p.sq=C.LS;p.st=C.startTime;p.sd=C.duration;this.track.policy.iQ&&(p.si=C.Zh());C.S&&(p.esl=C.C+C.V);C.Vo()&&(p.eos=1)}isNaN(this.timestampOffset)||(p.to=this.timestampOffset);var N;if(C=(N=this.track.NW)==null?void 0:N.X0({})){for(var H in C)this.Y[H]!==C[H]&&(p["sb_"+H]=C[H]);this.Y=C}this.track.k_("sbu", p);this.T.reset();this.buffered=[];this.W=this.V=this.S=0;this.timestampOffset=this.C=void 0}};Kxa.prototype.dispose=function(){this.b_=!0}; Kxa.prototype.fS=function(){return this.b_}; g.m(WI,Error);var ZZ1=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);BI.prototype.skip=function(p){this.offset+=p}; BI.prototype.MB=function(){return this.offset};g.h=eBY.prototype;g.h.ou=function(){return this.C}; g.h.gP=function(){return this.C.length?this.C[this.C.length-1]:null}; g.h.H$=function(){this.C=[];pA(this);nBu(this)}; g.h.xn=function(p){this.Y_=this.C.shift().info;p.info.sE(this.Y_)}; g.h.Ux=function(){return g.AU(this.C,function(p){return p.info})}; g.h.DQ=function(){return!!this.Y.info.audio}; g.h.getDuration=function(){return this.Y.index.Ax()};g.m(em,jf);g.h=em.prototype;g.h.onStateChange=function(){this.fS()&&(K4(this.g6,this.formatId),this.T.dispose())}; g.h.BP=function(){var p=vSY(this.g6,this.formatId),C;var V=((C=this.g6.hc.get(this.formatId))==null?void 0:C.bytesReceived)||0;var N;C=((N=this.g6.hc.get(this.formatId))==null?void 0:N.ZV)||0;return{expected:p,received:V,bytesShifted:C,sliceLength:F4V(this.g6,this.formatId),isAnyMediaEndReceived:this.g6.zC(this.formatId)}}; g.h.h4=function(){return 0}; g.h.GC=function(){return!0}; g.h.iT=function(){return this.g6.iT(this.formatId)}; g.h.UG=function(){return[]}; g.h.Lp=function(){return this.g6.Lp(this.formatId)}; g.h.LO=function(){return this.lastError}; g.h.r9=function(){return 0};g.m(Vz,g.Y);g.h=Vz.prototype;g.h.DQ=function(){return!!this.T.info.audio}; g.h.gP=function(){return this.S.gP()}; g.h.xn=function(p){this.S.xn(p);var C;(C=this.J)!=null&&(C.W.add(p.info.LS),C.T=LpL(C,C.xG,C.n6,p,C.T),C.V=p,C.Y=(0,g.Ip)());this.F$=Math.max(this.F$,p.info.T.info.F$||0)}; g.h.getDuration=function(){if(this.policy.C){var p=this.nS.RI();if(p)return GG(p)}return this.T.index.Ax()}; g.h.H$=function(){wS(this);this.S.H$()}; g.h.Sh=function(){return this.S}; g.h.isRequestPending=function(p){return this.V.length?p===this.V[this.V.length-1].info.wV[0].LS:!1}; g.h.pp=function(p){var C;(C=this.J)==null||C.pp(p);var V;(V=this.Z)==null||V.pp(p)}; g.h.k_=function(p,C){this.nS.k_(p,C)}; g.h.MD=function(){return this.nS.MD()}; g.h.dispose=function(){var p;(p=this.Z)==null||p.flush();g.Y.prototype.dispose.call(this)};g.m(F0,g.Y);F0.prototype.V=function(){this.C++>15||(this.T=!this.T,new etH(this.nS,this.policy,this.n1,this.sR,this.T),this.delay.start())}; g.h=etH.prototype;g.h.nT=function(){}; g.h.w9=function(){}; g.h.Kk=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.cI()===this.size)this.nS.k_("rqs",this.getInfo());else{var p="net.connect";this.xhr.status>200?p="net.badstatus":this.xhr.iO()&&(p="net.closed");this.onError(p)}}; g.h.onError=function(p){var C=this;this.nS.handleError(p,this.getInfo());kv("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(V){C.nS.k_("pathprobe",V)},function(V){C.nS.handleError(V.errorCode,V.details)})}; g.h.getInfo=function(){var p=this.timing.cK();p.shost=So(this.location.GU);p.pb=this.size;return p};g.m(SX,g.Y); SX.prototype.D=function(p,C){if(p.D){this.hk.isLive?(p=this.hk.AE&&this.hk.S?p.T.P8(this.hk.AE,!1):p.T.V8(Infinity),p.kq=this.kq):p=p.T.P8(0,!1);if(this.a$){var V=this.a$;p.kq===0&&(p.W=V.J)}else p.W=this.Z;return p}V=p.C;if(!V.T.rI())return V.T.V1()?(p=zPa(this.W,p.T.info.F$,C.T.info.F$,0),p=V.T.Y0(V,p)):p=V.T.Jm(V),p;var N=V.zM-this.nS.getCurrentTime(),H=!V.range||V.V===0&&V.C===0?0:V.range.length-(V.C+V.V),X=V.T;this.fP(p,N)&&H===0&&(this.hk.isManifestless?X=p.T:(X=V.startTime+h6,V.V&&(X+=V.duration), gS(p,X),V=p.C,X=V.T));X.V1()?(H=this.V,C=zPa(this.W,X.info.F$,C.T.info.F$,N,H.S.length>0&&H.J===0&&this.nS.LV),N=cZ(p),p=V.T.Y0(V,C),(C=p.V)&&p.wV.length>1&&(N||p.sR.C||p.wV[0].T!==V.T?p=V.T.Y0(V,p.wV[0].V):(N=p.wV[p.wV.length-1],X=N.V/C,!N.S&&X<.4&&(p=V.T.Y0(V,C-N.V))))):(V.LS<0&&(C=bw(V),C.pr=""+p.V.length,this.nS.isSeeking()&&(C.sk="1"),C.snss=V.W,this.nS.k_("nosq",C)),p=X.Jm(V));if(this.policy.Sa)for(V=g.F(p.wV),C=V.next();!C.done;C=V.next())C.value.type=6;return p}; SX.prototype.fP=function(p,C){if(!cZ(p)||!p.T.rI())return!1;var V=this.V.Ga||KJ9(p)||C<=this.policy.fn||this.V.a$;this.logger.debug(function(){return"ready to adapt: "+V+", upgrade pending: "+KJ9(p)+", health: "+C}); return V}; SX.prototype.CS=function(){g.Y.prototype.CS.call(this)}; var h6=2/24;g.m(Zp,g.Y);Zp.prototype.q4=function(p,C,V){var N;var H=((N=this.C)==null?void 0:N.reason)==="m"?"m":this.C&&iT9(this,this.C)?this.C.reason:"a";this.nS.q4(new b2(p,H,V));Dp(this.nS,C,p,!0)}; Zp.prototype.KB=function(p,C){for(var V=g.F(this.Vn),N=V.next();!N.done;N=V.next())if(N=N.value,N.id===p)return this.wY.JX||(this.V=[N]),this.Y=this.hk.T[p],vZ(this.wY)&&(this.a$=!0),new b2(this.Y,C?"t":"m");this.V=[];return null}; Zp.prototype.Zm=function(p,C,V){V=V===void 0?{}:V;this.T.Zm(p,C===void 0?!1:C,V)};Op.prototype.Hf=function(){return this.requestType===1}; Op.prototype.aq=function(){var p;return((p=this.aH)==null?void 0:p.aq())||0}; Op.prototype.isDecorated=function(){var p;return!((p=this.data)==null||!p.eS)};yz.prototype.encrypt=function(p){this.TN.exports.AES128CTRCipher_encrypt(this.cipher,p.byteOffset,p.byteLength);return p}; yz.prototype.fS=function(){return this.cipher===0}; yz.prototype.dispose=function(){this.TN.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};q4.prototype.encrypt=function(p,C){return Ei(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:C},this.key,p).catch(function(V){return Promise.reject(V.name+": "+V.message)}).then(function(V){return new Uint8Array(V)}))}; q4.prototype.fS=function(){return this.T}; q4.prototype.dispose=function(){this.T=!0}; YW.SB(q4,{encrypt:Kjs("oan2")});IB.prototype.encrypt=function(p,C){u8(this.C,C);return Ei(this.C.encrypt(p))}; IB.prototype.fS=function(){return this.T}; IB.prototype.dispose=function(){this.T=!0}; YW.SB(IB,{encrypt:Kjs("oap")});bQ.prototype.encrypt=function(p,C){var V=this.TN.s2(C),N=this.T;N.TN.exports.AES128CTRCipher_setCounter(N.cipher,(V!=null?V:C).byteOffset);C=this.TN.s2(p);this.T.encrypt(C!=null?C:p);V&&this.TN.free(V.byteOffset);return C?Ei(this.TN.Zz(C)):Ei(p)}; bQ.prototype.fS=function(){return this.T.fS()}; bQ.prototype.dispose=function(){this.T.dispose()}; YW.SB(bQ,{encrypt:Kjs("oalw")});Igj.prototype.encrypt=function(p){(0,g.Ip)();return(new Vj(this.T.T)).encrypt(p,this.iv)}; Igj.prototype.decrypt=function(p,C){(0,g.Ip)();return(new Vj(this.T.T)).decrypt(p,C)};g.m(oB,g.Y);oB.prototype.V=function(p,C){if(C){C=C instanceof g.v1?C:kk(this,C);var V;((V=this.T.get(p))==null?void 0:So(V.location))!==So(C)&&this.T.set(p,new njj(C,p))}else this.T.delete(p)}; oB.prototype.load=function(){var p=this,C,V,N,H,X,d,a,E,l,t;return g.I(function(c){switch(c.C){case 1:C=p.T.get(0);g.vv(c,2);var T;if(T=C&&!p.C)T=So(C.location),T=p.C===s4(T);if(T){c.EY(4);break}return g.y(c,zLv(p,p.C?2:0),5);case 5:if(V=c.T)p.V(0,V),Dy(V)&&p.V(1,u5(V));case 4:g.Fe(c,3);break;case 2:N=g.Sa(c);g.eG(N);if(!p.C){c.EY(3);break}p.C=!1;return g.y(c,p.load(),7);case 7:return c.return();case 3:if(!p.yn.experiments.OY("html5_onesie_probe_ec_hosts")){c.EY(0);break}g.vv(c,9);H=p;X=H.V;d=3;return g.y(c, zLv(p,1),11);case 11:return X.call(H,d,c.T),a=p,E=a.V,l=4,g.y(c,zLv(p,2),12);case 12:E.call(a,l,c.T);g.Fe(c,0);break;case 9:t=g.Sa(c),g.eG(t),g.JQ(c)}})}; oB.prototype.D=function(){var p=this,C,V;return g.I(function(N){g.HF(p.J);C=g.mi(p.yn.experiments,"html5_onesie_prewarm_max_lact_ms");if(bV()>=C)return N.return();(V=p.T.get(0))&&Y5v(p,V);g.JQ(N)})}; var kC9={s8V:0,Bb$:1,vbk:2,tIS:3,sxV:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};eLe.prototype.decrypt=function(p){var C=this,V,N,H,X,d,a;return g.I(function(E){switch(E.C){case 1:if(C.T.length&&!C.T[0].isEncrypted)return E.return();C.C=!0;C.iF.ZE("omd_s");V=new Uint8Array(16);fW()?N=new jH(p):H=new Vj(p);case 2:if(!C.T.length||!C.T[0].isEncrypted){E.EY(4);break}X=C.T.shift();if(!N){d=H.decrypt(X.buffer.AB(),V);E.EY(5);break}return g.y(E,N.decrypt(X.buffer.AB(),V),6);case 6:d=E.T;case 5:a=d;for(var l=0;l=4)){var C=LA(this),V=this.xhr;C.rc=V.status;p&&(C.ab=!0);if(V.FF()){var N="onesie.net";C.msg=V.FF()}else V.status>=400?N="onesie.net.badstatus":V.Pn()?this.GJ||(N="onesie.response.noplayerresponse"):N=V.status===204?"onesie.net.nocontent":"onesie.net.connect";N?this.Du(new qD(N,C)):(this.ZE("or_fs"),this.MZ.ao((0,g.Ip)(),V.cI(),0),this.UZ(4),this.Cp&&this.k_("rqs",C));this.Cp&&this.k_("ombre", "ok."+ +!N);this.S3=!1;WZ(this);X3y(this.iF);if(!this.bb){this.DN.stop();var H;(H=this.El)==null||H.stop()}var X;if(p=(X=this.kH)==null?void 0:RLY(X))for(X=0;X1E3){var p;(p=this.MZ)==null||p.QK((0,g.Ip)());p=LA(this);if(this.yn.Gk()&&this.xhr instanceof v$e){var C=this.xhr;p.xrs=C.xhr.readyState;p.xpb=C.T.getLength();p.xdc=C.S}this.Du(new qD("net.timeout",p))}}else(0,g.Ip)()-this.MZ.T>1E4&&((C=this.MZ)==null||C.QK((0,g.Ip)()),this.Q5());this.isComplete()||this.Js.start()}}; g.h.Q5=function(){this.logger.info("Onesie request timed out");this.S3=!1;if(!WZ(this)){var p=LA(this);p.timeout="1";this.Du(new qD("onesie.request",p))}}; g.h.Du=function(p){var C=this;p=bv(p);this.uU?this.Ta.oN(p):(this.PK.reject(p),this.uU=!0);X3y(this.iF);this.bb||this.DN.stop();this.ZE("or_fe");var V,N;(V=this.kH)==null||(N=RLY(V))==null||N.forEach(function(H){C.k_("pathprobe",H)}); this.UZ(5);this.dispose()}; g.h.isComplete=function(){return this.state>=3}; g.h.bE=function(){return this.state===4}; g.h.jh=function(p){var C,V;return this.isComplete()||!!((C=this.ZQ)==null?0:(V=C.get(p))==null?0:V.T)}; g.h.aB=function(){return!1}; g.h.Ad=function(){return this.state===5}; g.h.notifySubscribers=function(p){for(var C=0;C102400&&!this.qe&&(this.ZE("or100k"),this.qe=!0);if(p.CM()){var C=p.jg(),V=C.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+V}); this.Cp&&this.k_("ombrss","len."+V);this.Ge.feed(C)}if(this.ZQ)for(var N=g.F(this.ZQ.keys()),H=N.next();!H.done;H=N.next()){var X=H.value;p=void 0;(p=this.ZQ.get(X))==null||p.dZ();this.notifySubscribers(X)}}catch(d){this.Du(d)}}; g.h.ZM=function(){return this.MZ.requestNumber}; g.h.Ly=function(p){return this.NN.get(p)}; g.h.qs=function(){return{ox:this.ox,u3:this.u3,isDecorated:!1}};g.m(Dla,g.Y);g.h=Dla.prototype;g.h.SY=function(p,C){this.a$=void 0;eWS(this);zWj(this,p,C)}; g.h.im=function(p){if(this.T.length===0)return!1;var C=this.T[0];return C instanceof gZ?p===this.nS.getCurrentTime()*1E3:!(C instanceof ZX&&FjL(C.info))&&Math.abs(C.Xa()-p)<50}; g.h.x$=function(p){this.C=p;this.a$=(0,g.Ip)()+(p.backoffTimeMs||0)}; g.h.eN=function(p,C){if(p.action===void 0){var V=this.Ta.yW();V!==void 0&&this.nS.Jx(V)}else if(p.action!==0||!this.vr)switch(p.action===0&&this.policy.xu&&(p.action=2),V={},V.reason=p.Wg_,V.action=p.action,V.rn=C,p.action){case 1:this.policy.W&&this.S&&this.S.h7(void 0,void 0,V);break;case 0:this.vr=!0;this.videoData.VL()&&this.policy.W&&this.S&&this.S.h7(void 0,void 0,V);this.nS.LR(V);break;case 2:this.nS.handleError("sabr.config",V,1);break;case 5:lRu(this.Ta,!0);break;case 6:lRu(this.Ta,!1);break; case 3:this.policy.YM&&((p=this.hk.J)!=null&&(p.J=!0),this.nS.handleError("sabr.hostfallback",V))}}; g.h.kD=function(p,C,V,N){if(this.policy.C){this.nS.k_("ssap",{rn:N,v:C,tl:w3s(p)});var H=this.nS.RI();p={Kw:p,context:V,version:C};RW1(this,V);H?nvH(this,H,p):(this.nS.k_("ssap",{cacheclips:1,rn:N,v:C}),this.D=p)}}; g.h.uN=function(p){var C=this.policy.b_||this.policy.Ox||this.policy.C;this.nS.k_("ssap",{onsbrctxt:p.type,dflt:p.sendByDefault,enable:C?1:0});C&&RW1(this,p);this.policy.Ox&&this.Ta.uN(p)}; g.h.G4=function(){}; g.h.Ia=function(p){if(p.ZY!==void 0&&p.yh){var C=p.ZY/p.yh;this.audioTrack.D=!1;this.videoTrack.D=!1;if(this.policy.sY||this.policy.hg||this.policy.jS)this.nS.BR.C=!1;this.nS.zR(C,1);if(this.Ta.getCurrentTime()!==C){var V={NZ:"sabr_seek",h6:!0,tJ:!0};p.seekSource&&(V.seekSource=p.seekSource);Q7(this.nS,C+this.policy.Ij/1E3,V)}}}; g.h.onSnackbarMessage=function(p){this.Ta.publish("onSnackbarMessage",p)}; g.h.ZR=function(p){p.LJ&&p.RV&&F1(this.hk,p.LJ,p.RV);this.policy.Z4&&(p.FM&&p.qj&&(this.hk.Tz=p.FM/p.qj),p.t0&&p.UQ&&(this.hk.lf=p.t0/p.UQ));p.xa!=null&&this.Ta.Bn(p.xa);this.policy.cP&&p.H5&&(p=((0,g.Ip)()-p.H5)/1E3,this.nS.aF.N3(1,p))}; g.h.aA=function(p){this.nS.aA(p)}; g.h.h_=function(p,C,V){this.policy.V&&this.nS.k_("sabrctxtplc",{start:p?p.join("_"):"",stop:C?C.join("_"):"",discard:V?V.join("_"):""});if(p){p=g.F(p);for(var N=p.next();!N.done;N=p.next())this.nM.add(N.value)}if(C)for(C=g.F(C),p=C.next();!p.done;p=C.next())p=p.value,this.nM.has(p)&&this.nM.delete(p);if(V)for(V=g.F(V),C=V.next();!C.done;C=V.next())C=C.value,this.videoData.sabrContextUpdates.has(C)&&(this.videoData.sabrContextUpdates.delete(C),C===3&&(this.videoData.Ik=""))}; g.h.p8=function(){}; g.h.He=function(p,C){zt9(this.policy,p,4,C)}; g.h.Q8=function(p){if(p==null?0:p.pJ)if(p=p.pJ.Wh){p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(C=C.value,C.formatId){var V=this.hk.V.get(S5(C.formatId));V&&V.info&&(V.info.debugInfo=C.debugInfo)}}}; g.h.L8=function(p){(p=p==null?void 0:p.reloadPlaybackParams)&&this.Ta.publish("reloadplayer",p)}; g.h.qg=function(){return this.Ta.qg()||""}; g.h.aq=function(){var p=sp(this.audioTrack,!0)*1E3,C=sp(this.videoTrack,!0)*1E3;return Math.min(p,C)}; g.h.Vr=function(p,C){this.nS.k_(p,C)}; g.h.nz=function(p){aXu(this.nS,sIX(this.Y_,p))}; g.h.CS=function(){g.Y.prototype.CS.call(this);this.C=void 0;zWj(this,!0,"i");this.T=[]};$lL.prototype.f7=function(p,C){if(this.S)return rhX(this,C);if(C=rS(p)){var V=C.C;V&&V.V&&V.T&&(p=p.V.length?p.V[0]:null)&&p.state>=2&&!p.Ad()&&p.info.kq===0&&(this.S=p,this.D=V,this.C=C.info,this.Y=this.startTimeSecs=Date.now()/1E3,this.W=this.C.startTime)}return NaN}; $lL.prototype.clear=function(){this.C=this.D=this.S=null;this.T=this.W=this.Y=this.startTimeSecs=NaN;this.V=!1};g.m(g.Hu,g.Y);g.h=g.Hu.prototype;g.h.initialize=function(p,C,V){this.logger.debug(function(){return"Initialized, t="+p}); p=p||0;this.policy.T||(C=EBu(this.T),tfs(this.Ta,new b2(C.video,C.reason)),this.Ta.Sg(new b2(C.audio,C.reason)));this.hk.isManifestless&&VQv(this.S);this.Y&&gvS(this.Y,this.videoTrack.T);C=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var N=!this.hk.isManifestless;this.policy.nA&&(N=N||this.hk.EO);this.policy.Wr||(this.currentTime=N?p:C);this.policy.sY&&this.seek(this.getCurrentTime(),{}).Rz(function(){}); if(this.policy.T){var H;((H=this.a$)==null?0:Kv9(H,this.qg()||""))&&jAy(this)&&C2j(this,this.videoTrack)&&C2j(this,this.audioTrack)&&(PT9(this.J,this.a$),this.policy.Y&&pIH(this))}else this.b_&&(VfQ(this,this.videoTrack),VfQ(this,this.audioTrack),mne(this.b_),delete this.b_);V?(this.policy.d6?(this.ER=V,iF(this,V)):iF(this,!1),g.HF(this.Zb)):(V=this.getCurrentTime()===0,KA(this.S,this.videoTrack,this.videoTrack.T,V),KA(this.S,this.audioTrack,this.audioTrack.T,V),this.policy.T&&Ulu(this.J,!0),this.policy.sY|| this.seek(this.getCurrentTime(),{}).Rz(function(){}),this.timing.tick("gv")); (this.hk.AE||this.hk.Qx||this.hk.vr||this.hk.YM||this.hk.qW)&&this.Ta.y9(this.hk)}; g.h.resume=function(){if(this.isSuspended||this.LV){this.logger.debug("Resumed.");this.PJ=this.LV=this.isSuspended=!1;try{this.f7()}catch(p){g.nm(p)}}}; g.h.Gh=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;this.logger.debug("detaching media source");dxs(this);Hj(this.Ta)&&(this.W=NaN);p?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.vr&&this.k_("loader",{setsmb:1}),this.policy.Sa=!0,this.H$()):(this.policy.d6?iF(this,this.ER):iF(this,!1),C||this.H$())}; g.h.setAudioTrack=function(p,C,V){V=V===void 0?!1:V;if(!this.fS()){var N=!isNaN(C);V&&N&&(this.audioTrack.a$=Date.now(),this.policy.iW&&(this.UY=!0));if(this.policy.T){var H=this.C.KB(p.id,N);this.logger.debug(function(){return"Logging new audio format: "+H.T.info.id}); this.Ta.Sg(H)}else{var X=hBy(this.T,p.id,N);this.logger.debug(function(){return"Logging new audio format: "+X.audio.info.id}); this.Ta.Sg(new b2(X.audio,X.reason))}if(N&&(V=this.audioTrack.T.index.tU(C),this.k_("setAudio",{id:p.id,cmt:C,sq:V}),V>=0)){this.policy.T&&(this.C.J=!0,this.SY(!0,"mosaic"));SWe(this.audioTrack,V,NaN,NaN);!this.policy.o6&&this.hk.isLive&&vb(this.hk,V,!1);return}this.Ta.wP()}}; g.h.setPlaybackRate=function(p){p!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(p)}; g.h.q4=function(p){var C=p.T.info.DQ();this.logger.debug(function(){return"New "+(C?"audio":"video")+" format from SABR: "+iX(p.T.info)}); C?this.Ta.Sg(p):tfs(this.Ta,p)}; g.h.nz=function(p){yv(p.wV[p.wV.length-1])&&aXu(this,sIX(this.T,p.wV[0].T))}; g.h.Ib=function(){return this.Ta.Ib()}; g.h.rM=function(){return this.Ta.rM()}; g.h.aA=function(p){this.Ta.K().Gk()&&this.k_("sps",{status:p.e6||""});if(p.e6===1)this.Ta.videoData.Vm=0;else if(p.e6===2||p.e6===3){var C=!1;if(p.e6===3){C=this.Ta.kh();var V;this.wy=(V=p.H7n)!=null?V:Infinity;this.Ta.videoData.Vm=C+1;(C=j$9(this))&&Y4u(this,!0)}this.Ta.ZG(!0,C)}}; g.h.qP=function(){return this.Ta.qP()}; g.h.xm=function(){return this.Ta.xm()}; g.h.bd=function(p){this.Ta.bd(p)}; g.h.C9_=function(){var p,C=(p=this.Ta.Nt())==null?void 0:p.getCurrentTime();C?this.Ta.k_("rms",{cta:C}):g.HF(this.Q$)}; g.h.f7=function(){sAj(this);if(this.Hr&&j6(this.Hr)&&!this.Hr.SO()&&(!this.policy.Wr||isFinite(this.getCurrentTime()))){var p=HZ(this.videoTrack);p=this.policy.ub&&p&&p.Vo();this.hk.isManifestless&&this.hk.S&&TF(this.hk)?(this.W=TF(this.hk),this.Hr.Nr(this.W)):SO(this.hk)&&!p?isNaN(this.W)?(this.W=this.getCurrentTime()+3600,this.Hr.Nr(this.W)):this.W<=this.getCurrentTime()+1800&&(this.W=Math.max(this.W+1800,this.getCurrentTime()+3600),this.Hr.Nr(this.W)):this.Hr.isView||(p=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.W)||this.W!==p)&&p>0&&(this.Hr.Nr(p),this.W=p))}if(!this.fS())if(cb(this.hk)&&this.hk.Ad()){var C=this.hk;this.handleError("manifest.net.retryexhausted",C.KS?{rc:C.zI}:{rc:C.zI.toString()},1)}else if(this.policy.T)a:{try{kJs(this.J);this.hk.isManifestless&&this.policy.Y&&W3(this.BR);if(XIv(this)&&this.Hr&&!XO(this.Hr)&&this.videoTrack.vr&&this.audioTrack.vr){this.k_("ssap",{delaysb:1,v:this.videoTrack.T.info.id,vf:this.videoTrack.T.info.o$,a:this.audioTrack.T.info.id, af:this.audioTrack.T.info.o$});var V=this.Hr,N=this.videoTrack.T,H=this.audioTrack.T;!XO(V)&&H&&N&&(Kzu(V,N.info,H.info,this.policy.cV),i4a(this,V))}var X;((X=this.Hr)==null?0:XO(X))&&this.VX();this.policy.T||dX(this);Ulu(this.J)}catch(a){g.eG(a);C=a;if(C.message.includes("changeType")){this.k_("ssap",{exp:C.name,msg:C.message,s:C.stack});break a}this.handleError("fmt.unplayable",{exp:C.name,msg:C.message,s:C.stack},1)}q41(this);g.HF(this.Qn)}else if(!this.hk.C||!ZfS(this.videoTrack)&&!ZfS(this.audioTrack)|| (this.videoTrack.W||this.audioTrack.W)&&this.policy.ER?V=!1:(this.H$(),this.Ta.seekTo(Infinity,{NZ:"checkLoaderTracksSync",zR:!0}),V=!0),!V){sAj(this);this.hk.isManifestless&&(UIv(this.videoTrack),UIv(this.audioTrack),W3(this.BR),(V=rS(this.videoTrack))&&V.C&&(V=V.C.V&&!this.policy.yV,this.k_(V===this.policy.J.q3?"strm":"strmbug",{strm:V,sfmp4:this.policy.J.q3,dfs:this.policy.yV},!0)));if(this.Hr)this.VX();else if(this.policy.S){var d;V=!1;if(this.policy.FD)for(N=g.F([this.videoTrack,this.audioTrack]), H=N.next();!H.done;H=N.next()){X=H.value;for(H=rS(X);H&&X.gP()!==HZ(X);H=rS(X))X.xn(H);V=V||!!H}else(C=rS(this.videoTrack))&&this.videoTrack.xn(C),(d=rS(this.audioTrack))&&this.audioTrack.xn(d);dZ(this.videoTrack)&&dZ(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(C||d||V)&&pu(this)}dX(this);KA(this.S,this.videoTrack,this.videoTrack.T,!1);KA(this.S,this.audioTrack,this.audioTrack.T,!1);this.policy.r3||lX1(this,this.videoTrack,this.audioTrack);gAs(this.S,this.videoTrack, this.audioTrack);gAs(this.S,this.audioTrack,this.videoTrack);q41(this);this.Y&&(C=this.Y,C.S?(d=C.Y+C.policy.Aa,C.V||(d=Math.min(d,C.startTimeSecs+C.policy.Ov)),C=Math.max(0,d*1E3-Date.now())):C=NaN,isNaN(C)||g.HF(this.qW,C));g.HF(this.Qn)}}; g.h.LR=function(p){this.Ta.LR(p)}; g.h.VX=function(){var p=this;if(this.Hr){var C=this.Hr.T,V=this.Hr.C;kXv(this,this.audioTrack);kXv(this,this.videoTrack);var N=TdL(this);if(N){if(this.policy.Kt){if(!C.jA()){var H=rS(this.audioTrack);if(H){if(!Na(this,this.audioTrack,C,H.info))return;mxL(this,this.audioTrack,C,H)}}if(!V.jA()&&(H=rS(this.videoTrack))){if(!Na(this,this.videoTrack,V,H.info))return;mxL(this,this.videoTrack,V,H)}}this.vP||(this.vP=(0,g.Ip)(),this.logger.debug(function(){return"Appends pause start "+p.vP+" reason "+N}), this.policy.V&&this.k_("apdps",{r:N}))}else if(this.vP&&(ctv(this,this.vP),this.vP=0),Mfs(this),H=!1,this.policy.C&&M4(this.videoTrack)||!KBX(this,this.videoTrack,V)||(H=!0,ARX(this.timing),YeQ(this.timing)),this.Hr&&!this.Hr.gI()&&(this.policy.C&&M4(this.audioTrack)||!KBX(this,this.audioTrack,C)||(H=!0,oSe(this.timing),zgH(this.timing)),!this.fS()&&this.Hr)){if(!this.policy.KS&&dZ(this.videoTrack)&&dZ(this.audioTrack)&&j6(this.Hr)&&!this.Hr.SO()){V=!1; V=HZ(this.audioTrack);if(this.policy.C){var X;C=(X=this.Ze)==null?void 0:R8(X,V.Qi*1E3);V=!(!C||C.clipId!==V.clipId);this.k_("ssap",{eos:V})}else X=V.T,V=X===this.hk.T[X.info.id];V&&(this.logger.debug("Setting EOS"),DyQ(this.Hr),YTa(this.schedule))}H&&!this.Hr.isAsync()&&pu(this)}}}; g.h.uD=function(p){var C,V=p===((C=this.Hr)==null?void 0:C.T)?this.audioTrack:this.videoTrack,N;(N=V.Vn)==null||N.stop();var H;if((H=rS(V))==null?0:H.isLocked){if(this.Ta.K().Gk()){var X;this.k_("eosl",{ounlock:(X=rS(V))==null?void 0:X.info.Zh()})}var d;O4u(this,p===((d=this.Hr)==null?void 0:d.T))}var a;if(this.policy.iW&&p===((a=this.Hr)==null?void 0:a.T)&&this.KS){C=this.KS-this.getCurrentTime();var E;this.Ta.k_("asl",{l:C,xtag:(E=HZ(this.audioTrack))==null?void 0:E.T.info.T});this.UY=!1;this.KS= 0}p.Ii()&&p.K7().length===0&&(p.aO(),this.Hr&&!this.Hr.Ii()&&(this.Ta.K().Gk()&&this.Ta.k_("rms",{ld:"seek"}),this.Hr.Y=performance.now(),this.Ta.O$(),this.Ta.K().Gk()&&g.HF(this.Q$)));var l;(l=V.Z)!=null&&wd(l,0);this.policy.X$&&this.policy.JF&&this.Hr&&(V=p.ye())&&V.Vo()&&!EJ(p.K7(),Math.min(V.Qi+h6,V.zM))&&this.k_("sbunb",{st:V.Qi,et:V.zM});this.policy.wy?CxX(this):this.f7()}; g.h.mo$=function(p){if(this.Hr){var C=HZ(p===this.Hr.T?this.audioTrack:this.videoTrack);if(p=p.Nk())for(var V=0;Vthis.V&&(this.V=V,g.k5(this.T)||(this.T={},this.S.stop(),this.C.stop())),this.T[C]=p,g.HF(this.C))}}; lF.prototype.W=function(){for(var p=g.F(Object.keys(this.T)),C=p.next();!C.done;C=p.next()){var V=C.value;C=this.publish;for(var N=this.V,H=this.T[V].match(wA),X=[],d=g.F(H[6].split("&")),a=d.next();!a.done;a=d.next())a=a.value,a.indexOf("cpi=")===0?X.push("cpi="+N.toString()):a.indexOf("ek=")===0?X.push("ek="+g.N$(V)):X.push(a);H[6]="?"+X.join("&");V="skd://"+H.slice(2).join("");H=V.length*2;N=new Uint8Array(H+4);N[0]=H%256;N[1]=(H-N[0])/256;for(H=0;H0)for(var V=g.F(this.T),N=V.next();!N.done;N=V.next())if(C===N.value.info.cryptoPeriodIndex){C=!0;break a}C=!1}if(!C){C=(0,g.Ip)();a:{V=p.cryptoPeriodIndex;if(!isNaN(V)){N=g.F(this.V.values());for(var H=N.next();!H.done;H=N.next())if(Math.abs(H.value.cryptoPeriodIndex-V)<=1){V=!0;break a}}V=!1}V?(V=p.T,V=Math.max(0,Math.random()*((isNaN(V)?120:V)-30))*1E3):V=0;this.publish("log_qoe",{wvagt:"delay."+V,cpi:p.cryptoPeriodIndex,reqlen:this.T.length, ignore:this.S});V<=0?eb1(this,p):this.S||(this.T.push({time:C+V,info:p}),g.HF(this.C,V))}}; t6.prototype.CS=function(){this.T=[];EZ.prototype.CS.call(this)};var T_={},gdY=(T_.DRM_TRACK_TYPE_AUDIO="AUDIO",T_.DRM_TRACK_TYPE_SD="SD",T_.DRM_TRACK_TYPE_HD="HD",T_.DRM_TRACK_TYPE_UHD1="UHD1",T_);g.m($xe,g.Y);g.m(QAa,g.ca);g.h=QAa.prototype;g.h.Ct=function(p){var C=this;this.fS()||p.size<=0||(p.forEach(function(V,N){var H=q6(C.C)?N:V;N=new Uint8Array(q6(C.C)?V:N);q6(C.C)&&lpH(N);V=g.mq(N,4);lpH(N);N=g.mq(N,4);C.T[V]?C.T[V].status=H:C.T[N]?C.T[N].status=H:C.T[V]={type:"",status:H}}),iAS(this,","),cu(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.h.error=function(p,C,V,N){this.fS()||(this.publish("licenseerror",p,C,V,N),p==="drm.provision"&&(p=(Date.now()-this.Y)/1E3,this.Y=NaN,this.publish("ctmp","provf",{et:p.toFixed(3)})));Ir(C)&&this.dispose()}; g.h.shouldRetry=function(p,C){return this.Sa&&this.D?!1:!p&&this.requestNumber===C.requestNumber}; g.h.CS=function(){this.T={};g.ca.prototype.CS.call(this)}; g.h.X0=function(){var p={ctype:this.Z.contentType||"",length:this.Z.initData.length,requestedKeyIds:this.Vn,cryptoPeriodIndex:this.cryptoPeriodIndex};this.V&&(p.keyStatuses=this.T);return p}; g.h.getInfo=function(){var p=this.S.join();if(TK(this)){var C=new Set,V;for(V in this.T)this.T[V].status!=="usable"&&C.add(this.T[V].type);p+="/UKS."+Array.from(C)}return p+="/"+this.cryptoPeriodIndex}; g.h.i9=function(){return this.url};g.m(Ma,g.Y);g.h=Ma.prototype;g.h.m4=function(p){if(this.W){var C=p.messageType||"license-request";this.W(new Uint8Array(p.message),C)}}; g.h.Ct=function(){this.D&&this.D(this.T.keyStatuses)}; g.h.onClosed=function(){this.fS()||g.gm("xboxone")&&this.V&&this.V("closed")}; g.h.hP=function(p){this.W&&this.W(p.message,"license-request")}; g.h.Gr=function(p){if(this.V){if(this.C){var C=this.C.error.code;p=this.C.error.systemCode}else C=p.errorCode,p=p.systemCode;this.V("t.prefixedKeyError;c."+C+";sc."+p,C,p)}}; g.h.N6=function(){this.Y&&this.Y()}; g.h.update=function(p){var C=this;if(this.T)return($$.isActive()?$$.zz("emeupd",function(){return C.T.update(p)}):this.T.update(p)).then(null,FF(function(V){cIL(C,"t.update",V)})); this.C?this.C.update(p):this.element.addKey?this.element.addKey(this.J.keySystem,p,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.J.keySystem,p,this.initData,this.sessionId);return YD()}; g.h.CS=function(){this.T&&(this.Z?this.T.close().catch(g.eG):this.T.close());this.element=null;g.Y.prototype.CS.call(this)};g.m(J6,g.Y);g.h=J6.prototype;g.h.fN=function(){var p=this;if(this.T.keySystemAccess)return($$.isActive()?$$.zz("emenew",function(){return p.T.keySystemAccess.createMediaKeys()}):this.T.keySystemAccess.createMediaKeys()).then(function(V){if(!p.fS())if(p.C=V,$$.isActive())$$.zz("emeset",function(){return p.element.setMediaKeys(V)}); else{var N;(N=p.element)==null||N.setMediaKeys(V)}}); if(yM(this.T))this.V=new (O6())(this.T.keySystem);else if(I5(this.T)){this.V=new (O6())(this.T.keySystem);var C;(C=this.element)==null||C.webkitSetMediaKeys(this.V)}else $$.isActive()&&this.k_("emev",{v:"01b"}),bO(this.W,this.element,["keymessage","webkitkeymessage"],this.iD),bO(this.W,this.element,["keyerror","webkitkeyerror"],this.z_),bO(this.W,this.element,["keyadded","webkitkeyadded"],this.vT);return null}; g.h.setServerCertificate=function(){return this.C.setServerCertificate?this.T.flavor==="widevine"&&this.T.td?this.C.setServerCertificate(this.T.td):Az(this.T)&&this.T.UY?this.C.setServerCertificate(this.T.UY):null:null}; g.h.createSession=function(p,C){var V=p.initData;if(this.T.keySystemAccess){C&&C("createsession");var N=this.C.createSession();bo(this.T)?V=TZL(V,this.T.UY):Az(this.T)&&(V=ndX(V)||new Uint8Array(0));C&&C("genreq");var H=$$.isActive()?$$.zz("emegen",function(){return N.generateRequest(p.contentType,V)}):N.generateRequest(p.contentType,V); var X=new Ma(null,null,null,N,null,this.D);H.then(function(){C&&C("genreqsuccess")},FF(function(a){cIL(X,"t.generateRequest",a)})); return X}if(yM(this.T))return JIV(this,V);if(I5(this.T))return MXy(this,V);if((H=this.element)==null?0:H.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,V);else{var d;(d=this.element)==null||d.webkitGenerateKeyRequest(this.T.keySystem,V)}return this.S=new Ma(this.element,this.T,V,null,null,this.D)}; g.h.iD=function(p){var C=m4v(this,p);C&&C.hP(p)}; g.h.z_=function(p){var C=m4v(this,p);C&&C.Gr(p)}; g.h.vT=function(p){var C=m4v(this,p);C&&C.N6(p)}; g.h.getMetrics=function(){if(this.C&&this.C.getMetrics)try{var p=this.C.getMetrics()}catch(C){}return p}; g.h.CS=function(){this.V=this.C=null;var p;(p=this.S)==null||p.dispose();p=g.F(Object.values(this.Y));for(var C=p.next();!C.done;C=p.next())C.value.dispose();this.Y={};g.Y.prototype.CS.call(this);delete this.element};g.h=ms.prototype;g.h.get=function(p){p=this.findIndex(p);return p!==-1?this.values[p]:null}; g.h.remove=function(p){p=this.findIndex(p);p!==-1&&(this.keys.splice(p,1),this.values.splice(p,1))}; g.h.removeAll=function(){this.keys=[];this.values=[]}; g.h.set=function(p,C){var V=this.findIndex(p);V!==-1?this.values[V]=C:(this.keys.push(p),this.values.push(C))}; g.h.findIndex=function(p){return g.gY(this.keys,function(C){return g.af(p,C)})};g.m(SpL,g.ca);g.h=SpL.prototype;g.h.Q$_=function(p){this.Zu({onecpt:1});p.initData&&u0Y(this,new Uint8Array(p.initData),p.initDataType)}; g.h.u0S=function(p){this.Zu({onndky:1});u0Y(this,p.initData,p.contentType)}; g.h.EA=function(p){this.Zu({onneedkeyinfo:1});this.yn.G("html5_eme_loader_sync")&&(this.D.get(p.initData)||this.D.set(p.initData,p));D4Q(this,p)}; g.h.jc=function(p){this.V.push(p);vu(this)}; g.h.createSession=function(p){var C=U49(this)?oB1(p):g.mq(p.initData);this.C.get(C);this.Vn=!0;p=new QAa(this.videoData,this.yn,p,this.drmSessionId);this.C.set(C,p);p.subscribe("ctmp",this.jM,this);p.subscribe("keystatuseschange",this.Ct,this);p.subscribe("licenseerror",this.ZD,this);p.subscribe("newlicense",this.fL,this);p.subscribe("newsession",this.WQ,this);p.subscribe("sessionready",this.DF,this);p.subscribe("fairplay_next_need_key_info",this.E3,this);this.yn.G("html5_enable_vp9_fairplay")&&p.subscribe("qualitychange", this.f0,this);this.yn.G("html5_enable_sabr_drm_hd720p")&&p.subscribe("sabrlicenseconstraint",this.nGx,this);pZS(p,this.S)}; g.h.fL=function(p){this.fS()||(this.Zu({onnelcswhb:1}),p&&!this.heartbeatParams&&(this.heartbeatParams=p,this.publish("heartbeatparams",p)))}; g.h.WQ=function(){this.fS()||(this.Zu({newlcssn:1}),this.V.shift(),this.Vn=!1,vu(this))}; g.h.DF=function(){if(yM(this.T)&&(this.Zu({onsnrdy:1}),this.vr--,this.vr===0)){var p=this.a$,C,V;(C=p.element)==null||(V=C.msSetMediaKeys)==null||V.call(C,p.V)}}; g.h.Ct=function(p){if(!this.fS()){!this.Wr&&this.videoData.G("html5_log_drm_metrics_on_key_statuses")&&(fpQ(this),this.Wr=!0);this.Zu({onksch:1});var C=this.f0;if(!TK(p)&&g.G4&&p.C.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var V="large";else{V=[];var N=!0;if(TK(p))for(var H=g.F(Object.keys(p.T)),X=H.next();!X.done;X=H.next())X=X.value,p.T[X].status==="usable"&&V.push(p.T[X].type),p.T[X].status!=="unknown"&&(N=!1);if(!TK(p)||N)V=p.S;V=d4e(V)}C.call(this,V);this.publish("keystatuseschange", p)}}; g.h.jM=function(p,C){this.fS()||this.publish("ctmp",p,C)}; g.h.E3=function(p,C){this.fS()||this.publish("fairplay_next_need_key_info",p,C)}; g.h.ZD=function(p,C,V,N){this.fS()||(this.videoData.G("html5_log_drm_metrics_on_error")&&fpQ(this),this.publish("licenseerror",p,C,V,N))}; g.h.F_=function(){return this.J}; g.h.f0=function(p){var C=g.jo("auto",p,!1,"l");if(this.videoData.Kq){if(this.J.sE(C))return}else if(kmL(this.J,p))return;this.J=C;this.publish("qualitychange");this.Zu({updtlq:p})}; g.h.nGx=function(p){this.videoData.sabrLicenseConstraint=p}; g.h.CS=function(){this.T.keySystemAccess&&this.element&&(this.sY?this.element.setMediaKeys(null).catch(g.eG):this.element.setMediaKeys(null));this.element=null;this.V=[];for(var p=g.F(this.C.values()),C=p.next();!C.done;C=p.next())C=C.value,C.unsubscribe("ctmp",this.jM,this),C.unsubscribe("keystatuseschange",this.Ct,this),C.unsubscribe("licenseerror",this.ZD,this),C.unsubscribe("newlicense",this.fL,this),C.unsubscribe("newsession",this.WQ,this),C.unsubscribe("sessionready",this.DF,this),C.unsubscribe("fairplay_next_need_key_info", this.E3,this),this.yn.G("html5_enable_vp9_fairplay")&&C.unsubscribe("qualitychange",this.f0,this),C.dispose();this.C.clear();this.Y.removeAll();this.D.removeAll();this.heartbeatParams=null;g.ca.prototype.CS.call(this)}; g.h.X0=function(){for(var p={systemInfo:this.T.X0(),sessions:[]},C=g.F(this.C.values()),V=C.next();!V.done;V=C.next())p.sessions.push(V.value.X0());return p}; g.h.getInfo=function(){return this.C.size<=0?"no session":""+this.C.values().next().value.getInfo()+(this.W?"/KR":"")}; g.h.Zu=function(p,C){C=C===void 0?!1:C;this.fS()||(yu(p),(this.yn.Gk()||C)&&this.publish("ctmp","drmlog",p))};g.m(bAu,g.Y);g.h=bAu.prototype;g.h.tj=function(){return!!this.o2}; g.h.Xd=function(){return this.C}; g.h.handleError=function(p){var C=this;zaQ(this,p);if((p.errorCode!=="html5.invalidstate"&&p.errorCode!=="fmt.unplayable"&&p.errorCode!=="fmt.unparseable"||!YpS(this,p.errorCode,p.details))&&!PQ1(this,p)){if(this.I$.a$!=="yt"&&nk1(this,p)&&this.videoData.lL&&(0,g.Ip)()/1E3>this.videoData.lL&&this.I$.a$==="hm"){var V=Object.assign({e:p.errorCode},p.details);V.stalesigexp="1";V.expire=this.videoData.lL;V.init=this.videoData.pI/1E3;V.now=(0,g.Ip)()/1E3;V.systelapsed=((0,g.Ip)()-this.videoData.pI)/1E3; p=new qD(p.errorCode,V,2);this.Ta.a_(p.errorCode,2,"SIGNATURE_EXPIRED",yu(p.details))}if(Ir(p.severity)){var N;V=(N=this.Ta.nS)==null?void 0:N.T.T;if(this.I$.G("html5_use_network_error_code_enums"))if(Ray(p)&&V&&V.isLocked())var H="FORMAT_UNAVAILABLE";else if(this.I$.Y||p.errorCode!=="auth"||p.details.rc!==429)p.errorCode==="ump.spsrejectfailure"&&(H="HTML5_SPS_UMP_STATUS_REJECTED");else{H="TOO_MANY_REQUESTS";var X="6"}else Ray(p)&&V&&V.isLocked()?H="FORMAT_UNAVAILABLE":this.I$.Y||p.errorCode!=="auth"|| p.details.rc!=="429"?p.errorCode==="ump.spsrejectfailure"&&(H="HTML5_SPS_UMP_STATUS_REJECTED"):(H="TOO_MANY_REQUESTS",X="6");this.Ta.a_(p.errorCode,p.severity,H,yu(p.details),X)}else this.Ta.publish("nonfatalerror",p),N=/^pp/.test(this.videoData.clientPlaybackNonce),this.oN(p.errorCode,p.details),N&&p.errorCode==="manifest.net.connect"&&(p="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Ip)(),kv(p,"manifest",function(d){C.Y=!0;C.k_("pathprobe",d)},function(d){C.oN(d.errorCode, d.details)}))}}; g.h.k_=function(p,C){this.Ta.Pc().k_(p,C)}; g.h.oN=function(p,C){C=yu(C);this.Ta.Pc().oN(p,C)};LNu.prototype.Xm=function(p,C){return(C===void 0?0:C)?{zF:p?Dn(this,p):xB,Bs:p?CFv(this,p):xB,esn:p?GG9(this,p):xB,h5n:p?daY(this,p.videoData):xB,yp:p?iuV(this,p.videoData,p):xB,PWe:p?rIj(this,p):xB}:{zF:p?Dn(this,p):xB}}; LNu.prototype.G=function(p){return this.yn.G(p)};g.m(uF,g.Y);uF.prototype.onError=function(p){if(p!=="player.fatalexception"||this.provider.G("html5_exception_to_health"))p==="sabr.fallback"&&(this.encounteredSabrFallback=!0),p.match(cPp)?this.networkErrorCount++:this.nonNetworkErrorCount++}; uF.prototype.send=function(){if(!(this.V||this.T<0)){ans(this);var p=g.Zn(this.provider)-this.T,C="PLAYER_PLAYBACK_STATE_UNKNOWN",V=this.playerState.UE;this.playerState.isError()?C=V&&V.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.r(this.playerState,2)?C="PLAYER_PLAYBACK_STATE_ENDED":g.r(this.playerState,64)?C="PLAYER_PLAYBACK_STATE_UNSTARTED":g.r(this.playerState,16)||g.r(this.playerState,32)?C="PLAYER_PLAYBACK_STATE_SEEKING":g.r(this.playerState,1)&&g.r(this.playerState, 4)?C="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.r(this.playerState,1)?C="PLAYER_PLAYBACK_STATE_BUFFERING":g.r(this.playerState,4)?C="PLAYER_PLAYBACK_STATE_PAUSED":g.r(this.playerState,8)&&(C="PLAYER_PLAYBACK_STATE_PLAYING");V=vXL[v_(this.provider.videoData)];a:switch(this.provider.yn.playerCanaryState){case "canary":var N="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":N="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:N="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var H=EbH(this.provider), X=this.C<0?p:this.C-this.T;p=this.provider.yn.d6+36E5<(0,g.Ip)();C={started:this.C>=0,stateAtSend:C,joinLatencySecs:X,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:N,playerCanaryStage:H,isAd:this.provider.videoData.isAd(),liveMode:V,hasDrm:!!g.Jl(this.provider.videoData),isGapless:this.provider.videoData.J,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:$B(this.provider.videoData)};p||g.t1("html5PlayerHealthEvent",C);this.V=!0;this.dispose()}}; uF.prototype.CS=function(){this.V||this.send();window.removeEventListener("error",this.FS);window.removeEventListener("unhandledrejection",this.FS);g.Y.prototype.CS.call(this)}; var cPp=/\bnet\b/;g.m(tPa,g.Y);tPa.prototype.CS=function(){g.Y.prototype.CS.call(this);TXX(this)};var MPS=/[?&]cpn=/;var KsV=[2,5,30];g.bF=SS(function(){var p="";try{var C=g.iK("CANVAS").getContext("webgl");C&&(C.getExtension("WEBGL_debug_renderer_info"),p=C.getParameter(37446),p=p.replace(/[ :]/g,"_"))}catch(V){}return p});g.m(g.yb,g.Y);g.h=g.yb.prototype;g.h.ek=function(){var p=g.Zn(this.provider);Uae(this,p)}; g.h.Zj=function(){return this.vr}; g.h.CJ=function(){return{Er:this.Er,uC:this.uC}}; g.h.GP=function(p,C){this.Er=p;this.uC=C}; g.h.Bn=function(p){if(!this.Hc){this.Hc=!0;var C="";switch(p){case 1:C="proximaui";break;case 2:C=wYv(this.provider.videoData)?"proximawpcc":this.provider.videoData.G("html5_enable_proxima")||this.provider.videoData.G("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:C="proximaauto"}C!==""&&IV(this,C)}}; g.h.y9=function(p){this.T.lwc=[[p.AE?p.AE.toFixed():"",p.Qx?p.Qx.toFixed():"",p.vr?(p.vr*1E3).toFixed():"",p.YM?(p.YM*1E3).toFixed():"",p.qW?(p.qW*1E3).toFixed():""].join(":")]}; g.h.reportStats=function(p){p=p===void 0?NaN:p;if(!this.fS()&&(p=p>=0?p:g.Zn(this.provider),["PL","B","S"].indexOf(this.g7)>-1&&(!g.k5(this.T)||p>=this.W+30)&&(g.OZ(this,p,"vps",[this.g7]),this.W=p),!g.k5(this.T))){this.sequenceNumber===7E3&&g.eG(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){qa(this,p);var C=p,V=this.provider.Ta.uP(),N=V.droppedVideoFrames||0,H=V.totalVideoFrames||0,X=N-this.Er,d=H&&!this.uC;N>V.totalVideoFrames||X>5E3?A6L(this,"html5.badframedropcount","df."+N+";tf."+ V.totalVideoFrames):(X>0||d)&&g.OZ(this,C,"df",[X]);this.Er=N;this.uC=H;this.Z>0&&(g.OZ(this,p,"glf",[this.Z]),this.Z=0);CB.isActive()&&(p=CB.ut(),Object.keys(p).length>0&&this.k_("profile",p));this.kM&&IV(this,"lwnmow");this.provider.yn.Gk()&&this.provider.G("html5_record_now")&&this.k_("now",{wt:(0,g.Ip)()});p={};this.provider.videoData.C&&(p.fmt=this.provider.videoData.C.itag,(C=this.provider.videoData.S)&&C.itag!==p.fmt&&(p.afmt=C.itag));p.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&& (p.adcpn=this.adCpn);this.a$&&(p.addocid=this.a$);this.contentCpn&&(p.ccpn=this.contentCpn);this.sY&&(p.cdocid=this.sY);this.provider.videoData.cotn&&(p.cotn=this.provider.videoData.cotn);p.el=B_(this.provider.videoData);p.content_v=Vk(this.provider.videoData);p.ns=this.provider.yn.a$;p.fexp=F$9(this.provider.yn.experiments).toString();p.cl=(706555921).toString();(C=this.provider.videoData.adFormat||this.adFormat)&&(p.adformat=C);(C=v_(this.provider.videoData))&&(p.live=C);this.provider.videoData.O8()&& (p.drm=1,this.provider.videoData.W&&(p.drm_system=Hyy[this.provider.videoData.W.flavor]||0),this.provider.videoData.K$&&(p.drm_product=this.provider.videoData.K$));tw()&&this.provider.videoData.Y&&(p.ctt=this.provider.videoData.Y,p.cttype=this.provider.videoData.B_,this.provider.videoData.mdxEnvironment&&(p.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(p.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Vc&&(p.dai_fallback= "1")):this.provider.videoData.OZ?p.dai="cs":this.provider.videoData.qf&&(p.dai="disabled");p.seq=this.sequenceNumber++;if(this.provider.videoData.n5){if(C=this.provider.videoData.n5,p&&C)for(C.ns==="3pp"&&(p.ns="3pp"),this.FO.has(C.ns)&&IV(this,"hbps"),C.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=C.shbpslc),V=g.F(Object.keys(C)),N=V.next();!N.done;N=V.next())N=N.value,this.QZ.has(N)||(p[N]=C[N])}else p.event="streamingstats",p.docid=this.provider.videoData.videoId,p.ei=this.provider.videoData.eventId; this.isEmbargoed&&(p.embargoed="1");Object.assign(p,this.provider.yn.T);if(C=p.seq)C={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+C,serializedWatchEndpointLoggingContext:this.provider.videoData.bl},this.serializedHouseBrandPlayerServiceLoggingContext&&(C.serializedHouseBrandPlayerServiceLoggingContext=Fv(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(C.playerResponseCpn=this.provider.videoData.playerResponseCpn),fu.length&& (C.decoderInfo=fu),this.provider.Ta.RI()&&(C.transitionStitchType=4,this.Vn&&(C.timestampOffsetMsecs=this.Vn)),this.remoteControlMode&&(C.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(C.remoteConnectedDevices=this.remoteConnectedDevices),C=g.l8(C,iPy),C=g.mq(C,4),this.T.qclc=[C];p=g.GD("//"+this.provider.yn.jS+"/api/stats/qoe",p);V=C="";N=g.F(Object.keys(this.T));for(H=N.next();!H.done;H=N.next())H=H.value,this.T[H]===null?g.eG(new g.Bw("Stats report key has invalid value", H)):(H="&"+H+"="+this.T[H].join(","),H.length>100?V+=H:C+=H);y6v(this,p+C,V.replace(/ /g,"%20"))}this.T={}}}; g.h.gJ=function(p){this.kM=p}; g.h.jW=function(){if(this.provider.videoData.W){var p=this.provider.videoData.W;IV(this,"eme-"+(p.keySystemAccess?"final":yM(p)?"ms":bo(p)?"ytfp":I5(p)?"safarifp":"nonfinal"))}}; g.h.yX=function(p){var C=g.Zn(this.provider);if(!this.provider.yn.experiments.OY("html5_refactor_sabr_video_format_selection_logging")||p.T.id!==this.R$){var V=[p.T.id,p.C,this.R$,p.reason];p.token&&V.push(p.token);g.OZ(this,C,"vfs",V);this.R$=p.T.id;V=this.provider.Ta.getPlayerSize();if(V.width>0&&V.height>0){V=[Math.round(V.width),Math.round(V.height)];var N=g.Pg();N>1&&V.push(N);g.OZ(this,C,"view",V)}this.Qn||(this.provider.yn.Gk()&&IV(this,"rqs2"),this.provider.videoData.T&&sc(this.provider.videoData.T)&& (this.T.preload=["1"]));this.V=this.Qn=!0}p.reason==="m"&&++this.kt===100&&ob9(this,2);g.OZ(this,C,"vps",[this.g7]);this.reportStats(C)}; g.h.jB=function(p){var C=g.Zn(this.provider);if(this.provider.yn.experiments.OY("html5_refactor_sabr_audio_format_selection_logging")){C=p.T;var V=[C.audio&&C.video?C.UL?C.UL:"":C.id];C.K4&&C.K4.id&&V.push(C.K4.id);C=V.join(";");C!==this.D&&(V=[C,this.D,p.reason],p.token&&V.push(p.token),g.OZ(this,g.Zn(this.provider),"afs",V),this.D=C)}else p.T.id!==this.D&&(V=[p.T.id,this.D,p.reason],p.token&&V.push(p.token),g.OZ(this,C,"afs",V),this.D=p.T.id)}; g.h.ME=CY(43);g.h.J9=function(p){this.isEmbargoed=p}; g.h.Qo=CY(29);g.h.eO=CY(33);g.h.onPlaybackRateChange=function(p){var C=g.Zn(this.provider);p&&p!==this.VZ&&(g.OZ(this,C,"rate",[p]),this.VZ=p);this.reportStats(C)}; g.h.t9=CY(25);g.h.getPlayerState=function(p){if(g.r(p,128))return"ER";if(g.r(p,2048))return"B";if(g.r(p,512))return"SU";if(g.r(p,16)||g.r(p,32))return"S";if(p.isOrWillBePlaying()&&g.r(p,64))return"B";var C=TCY[KV(p)];g.bH(this.provider.yn)&&C==="B"&&this.provider.Ta.getVisibilityState()===3&&(C="SU");C==="B"&&g.r(p,4)&&(C="PB");return C}; g.h.CS=function(){g.Y.prototype.CS.call(this);g.Dr(this.Y);g.Dr(this.YM)}; g.h.d5=function(p){this.isOffline=p;g.OZ(this,g.Zn(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.h.k_=function(p,C,V){var N=this.T.ctmp||[],H=this.I6.indexOf(p)!==-1;H||this.I6.push(p);if(!V||!H){var X=typeof C!=="string"?yu(C):C;X=kK9(X);if(!V&&!/^t[.]/.test(X)){var d=g.Zn(this.provider)*1E3;X="t."+d.toFixed()+";"+X}N.push(p+":"+X);this.logger.debug(function(){return"ctmp "+p+" "+X}); this.T.ctmp=N;qZY(this);return d}}; g.h.ZN=function(p,C,V){this.S={j6_:Number(this.k_("glrem",{nst:p.toFixed(),rem:C.toFixed(),ca:+V})),Tr:p,pVn:C,isAd:V}}; g.h.Y1=function(p,C,V){g.OZ(this,g.Zn(this.provider),"ad_playback",[p,C,V])}; g.h.Dw=function(p,C){var V=g.Zn(this.provider)*1E3,N=this.T.daism||[];N.push("t."+V.toFixed(0)+";smw."+(p*1E3).toFixed(0)+";smo."+(C*1E3).toFixed(0));this.T.daism=N}; g.h.resume=function(){var p=this;this.provider.yn.Gk()&&this.k_("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.Y)?Inu(this):this.Y=g.Se(function(){p.reportStats()},1E4)}; var M9={},TCY=(M9[5]="N",M9[-1]="N",M9[3]="B",M9[0]="EN",M9[2]="PA",M9[1]="PL",M9[-1E3]="ER",M9[1E3]="N",M9),fu=[];zwX.prototype.rl=function(){return this.T}; zwX.prototype.update=function(){if(this.D){var p=this.provider.Ta.cJ(this.provider.videoData.clientPlaybackNonce)||0,C=g.Zn(this.provider);p>=this.provider.Ta.getDuration()-.1&&(this.previouslyEnded=!0);if(p!==this.T||ewY(this,p,C)){var V;if(!(V=pC-this.yP+2||ewY(this,p,C))){V=this.provider.Ta.getVolume();var N=V!==this.Z,H=this.provider.Ta.isMuted()?1:0;H!==this.J?(this.J=H,V=!0):(!N||this.S>=0||(this.Z=V,this.S=C),V=C-this.S,this.S>=0&&V>2?(this.S=-1,V=!0):V=!1)}V&&(kb(this),this.V= p);this.yP=C;this.T=p}}};PFe.prototype.send=function(p){var C=this;if(!this.UY){var V=$a1(this),N=g.GD(this.uri,V);this.yn.G("vss_through_gel_double")&&Lse(N);this.sY&&!this.yn.G("html5_simplify_pings")?BXY(this,N):wu9(this,p).then(function(H){C.sY&&(H=H||{},H.method="POST",H.postParams={atr:C.attestationResponse});Fse(N,H,{token:C.a$,Tg:C.X$,mdxEnvironment:C.mdxEnvironment},C.yn,p,C.Vn,C.isFinal&&C.hE||C.Sa||C.V&&C.i8)}); this.UY=!0}}; PFe.prototype.C=function(p){p===void 0&&(p=NaN);return Number(p.toFixed(3)).toString()}; var JY={},QVe=(JY.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,JY.LIVING_ROOM_APP_MODE_MAIN=1,JY.LIVING_ROOM_APP_MODE_KIDS=2,JY.LIVING_ROOM_APP_MODE_MUSIC=3,JY.LIVING_ROOM_APP_MODE_UNPLUGGED=4,JY.LIVING_ROOM_APP_MODE_GAMING=5,JY),m8={},Wsy=(m8.EMBEDDED_PLAYER_MODE_UNKNOWN=0,m8.EMBEDDED_PLAYER_MODE_DEFAULT=1,m8.EMBEDDED_PLAYER_MODE_PFP=2,m8.EMBEDDED_PLAYER_MODE_PFL=3,m8);g.m(Yb,g.Y);g.h=Yb.prototype;g.h.Nn=function(){this.T.update();XOV(this)&&(pOs(this),CYQ(this),this.v8())}; g.h.CS=function(){g.Y.prototype.CS.call(this);nu(this);Rws(this.T)}; g.h.X0=function(){return $a1(zK(this,"playback"))}; g.h.v8=function(){this.provider.videoData.D.eventLabel=B_(this.provider.videoData);this.provider.videoData.D.playerStyle=this.provider.yn.playerStyle;this.provider.videoData.uM&&(this.provider.videoData.D.feature="pyv");this.provider.videoData.D.vid=this.provider.videoData.videoId;var p=this.provider.videoData.D;var C=this.provider.videoData;C=C.isAd()||!!C.uM;p.isAd=C}; g.h.Ix=function(p){var C=zK(this,"engage");C.b_=p;return gba(C,Em9(this.provider))};a_L.prototype.isEmpty=function(){return this.endTime===this.startTime};Pu.prototype.G=function(p){return this.yn.G(p)}; Pu.prototype.getCurrentTime=function(p){if(this.G("html5_ssap_current_time_for_logging_refactor")){var C=this.Ta.RI();if(C&&(p=p||C.yv()))return HN(C,p)}else if(g.pf(this.videoData)){var V=this.Ta.RI();if(V)return p=this.Ta.getCurrentTime(),V=(((C=R8(V,p*1E3))==null?void 0:C.SI)||0)/1E3,p-V}return this.Ta.getCurrentTime()}; Pu.prototype.I_=function(p){if(this.G("html5_ssap_current_time_for_logging_refactor")){var C=this.Ta.RI();if(C&&(p=p||C.yv()))return HN(C,p)}else if(g.pf(this.videoData)){var V=this.Ta.RI();if(V)return p=this.Ta.I_(),V=(((C=R8(V,p*1E3))==null?void 0:C.SI)||0)/1E3,p-V}return this.Ta.I_()}; var l_v={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.m(g.wX,g.Y);g.h=g.wX.prototype;g.h.Nn=function(){if(this.provider.videoData.enableServerStitchedDai&&this.tp){var p;(p=this.V.get(this.tp))==null||p.Nn()}else this.T&&this.T.Nn()}; g.h.J9=function(p){this.qoe&&this.qoe.J9(p)}; g.h.Qo=CY(28);g.h.eO=CY(32);g.h.Dw=function(p,C){this.qoe&&this.qoe.Dw(p,C)}; g.h.oN=function(p,C){this.qoe&&A6L(this.qoe,p,C);if(this.C)this.C.onError(p)}; g.h.yX=function(p){this.qoe&&this.qoe.yX(p)}; g.h.jB=function(p){this.qoe&&this.qoe.jB(p)}; g.h.onPlaybackRateChange=function(p){if(this.qoe)this.qoe.onPlaybackRateChange(p);this.T&&kb(this.T.T)}; g.h.ME=CY(42);g.h.k_=function(p,C,V){this.qoe&&this.qoe.k_(p,C,V)}; g.h.ZN=function(p,C,V){this.qoe&&this.qoe.ZN(p,C,V)}; g.h.Bn=function(p){var C;(C=this.qoe)==null||C.Bn(p)}; g.h.y9=function(p){var C;(C=this.qoe)==null||C.y9(p)}; g.h.gJ=function(p){this.qoe&&this.qoe.gJ(p)}; g.h.Y1=function(p,C,V){this.qoe&&this.qoe.Y1(p,C,V)}; g.h.t9=CY(24);g.h.Zj=function(){if(this.qoe)return this.qoe.Zj()}; g.h.X0=function(){if(this.provider.videoData.enableServerStitchedDai&&this.tp){var p,C;return(C=(p=this.V.get(this.tp))==null?void 0:p.X0())!=null?C:{}}return this.T?this.T.X0():{}}; g.h.CJ=function(){var p;return(p=this.qoe)==null?void 0:p.CJ()}; g.h.GP=function(p,C){var V;(V=this.qoe)==null||V.GP(p,C)}; g.h.Ix=function(p){return this.T?this.T.Ix(p):function(){}}; g.h.v8=function(){this.T&&this.T.v8()}; g.h.getVideoData=function(){return this.provider.videoData}; g.h.resume=function(){this.qoe&&this.qoe.resume()};g.m(Lu,g.Y); Lu.prototype.ip=function(p,C,V){if(this.T.has(p)){var N=this.T.get(p);if(C.videoId&&!ttS(N))this.C.k_("ssap",{rlc:p}),udv(this,p);else return}if(!this.T.has(p)){N=new Pu(C,this.yn,this.Ta);var H=Math.round(g.Zn(this.C.provider)*1E3);N=new g.wX(N,H);ttS(N)||this.C.k_("nqv",{vv:C.videoId});H=this.C.getVideoData();this.T.set(p,N);if(N.qoe){var X=N.qoe,d=H.videoId||"";X.contentCpn=H.clientPlaybackNonce;X.sY=d}cHL(N);V===2&&(this.yn.G("html5_log_ad_playback_docid")?(V=this.C,V.qoe&&(V=V.qoe,N=C.Q$||"", H=C.breakType||0,C=C.videoId||"",X=this.yn.a$||"yt",g.OZ(V,g.Zn(V.provider),"ad_playback",[p,N,H,C,X]))):this.C.Y1(p,C.Q$||"",C.breakType||0))}}; Lu.prototype.Pc=function(p){p=p||this.tp;return this.T.get(p)||this.C};g.m(gX,g.Y);g.h=gX.prototype; g.h.d7=function(p,C){this.sync();C&&this.T.array.length>=2E3&&this.YW("captions",1E4);C=this.T;if(p.length>1&&p.length>C.array.length)C.array=C.array.concat(p),C.array.sort(C.T);else for(var V=g.F(p),N=V.next();!N.done;N=V.next())N=N.value,!C.array.length||C.T(N,C.array[C.array.length-1])>0?C.array.push(N):g.Ev(C.array,N,C.T);p=g.F(p);for(C=p.next();!C.done;C=p.next())C=C.value,C.namespace==="ad"&&this.S("ssap",{acrsid:C.getId(),acrsst:C.start,acrset:C.end,acrscpt:C.playerType});this.V=NaN;this.sync()}; g.h.p$=function(p){p.length>1E4&&g.eG(new g.Bw("Over 10k cueRanges removal occurs with a sample: ",p[0]));if(!this.fS()){for(var C=g.F(p),V=C.next();!V.done;V=C.next())(V=V.value)&&V.namespace==="ad"&&this.S("ssap",{rcrid:V.getId(),rcst:V.start,rcet:V.end,rcpt:V.playerType});var N=new Set(p);this.C=this.C.filter(function(H){return!N.has(H)}); I_S(this.T,N);this.sync()}}; g.h.YW=function(p,C){var V=(isNaN(this.V)?g.r(this.Y(),2)?0x8000000000000:this.Z()*1E3:this.V)-C;C=this.xm().filter(function(N){return N.namespace===p&&N.endthis.T,X=g.r(V,8)&&g.r(V,16),d=this.Ta.Uu().isBackground()||V.isSuspended();NT(this,this.qo,X&&!d,H,"qoe.slowseek",function(){},"timeout"); var a=isFinite(this.T);a=X&&a&&qyL(C,this.T);var E=!N||Math.abs(N-this.T)>10,l=this.yn.G("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),t=N===0&&this.C&&[11,10].includes(this.C);NT(this,this.X$,a&&E&&!d&&(!l||!t),H,"qoe.slowseek",function(){C.seekTo(p.T)},"set_cmt"); E=a&&EJ(C.yx(),this.T);var c=this.Ta.nS;a=!c||!c.policy.KS;var T=.001;$B(this.Ta.getVideoData())&&(T=g.mi(this.yn.experiments,"html5_sabr_jiggle_cmt_ms")/1E3);var M=function(){C.seekTo(p.T+T)}; NT(this,this.Y_,E&&a&&!d,H,"qoe.slowseek",M,"jiggle_cmt");a=function(){return sZ(p.Ta)}; NT(this,this.UY,E&&!d,H,"qoe.slowseek",a,"new_elem");E=S6(V);l=V.isBuffering();var J=C.yx(),S=a7(J,N),D=S>=0&&J.end(S)>N+5,Z=E&&l&&D;t=this.Ta.getVideoData();NT(this,this.R$,N<.002&&this.T<.002&&X&&g.bH(this.yn)&&g.jQ(t)&&!d,H,"qoe.slowseek",a,"slow_seek_shorts");NT(this,this.a$,t.rR()&&X&&!d&&!t.sY,H,"qoe.slowseek",a,"slow_seek_gapless_shorts");NT(this,this.sY,Z&&!d,E&&!l,"qoe.longrebuffer",M,"jiggle_cmt");NT(this,this.Vn,Z&&!d,E&&!l,"qoe.longrebuffer",a,"new_elem_nnr");if(c){var f=c.getCurrentTime(); X=C.TC();X=myX(X,f);X=!c.isSeeking()&&N===X;NT(this,this.YM,E&&l&&X&&!d,E&&!l&&!X,"qoe.longrebuffer",function(){C.seekTo(f)},"seek_to_loader")}X={}; M=a7(J,Math.max(N-3.5,0));Z=M>=0&&N>J.end(M)-1.1;var q=M>=0&&M+1=0&&Z&&q<11;X.close2edge=Z;X.gapsize=q;X.buflen=J.length;this.C&&(X.seekSour=this.C);if(M=this.Ta.RI()){Z=M.yv();q=Z!==R8(M,N*1E3).clipId;var A=g.mi(this.yn.experiments,"html5_ssap_skip_seeking_offset_ms"),z=(zJ(M,Z)+A)/1E3;NT(this,this.Wr,q&&E&&l&&!d,E&&!l,"qoe.longrebuffer",function(){C.seekTo(z)},"ssap_clip_not_match")}NT(this,this.Sa,E&&l&&!d,E&&!l,"qoe.longrebuffer", function(){},"timeout",X); X=V.isSuspended();X=X9(this.Ta)&&!X;NT(this,this.D,X,!X,"qoe.start15s",function(){p.Ta.hp("ad")},"ads_preroll_timeout"); M=N-this.S<.5;var Q;X=!((Q=this.Ta.RI())==null||!Q.Iz());q=(Z=t.isAd()||X&&this.yn.experiments.OY("html5_ssap_skip_slow_ad"))&&E&&!l&&M;Q=function(){var P=p.Ta,VL=g.pf(P.videoData)&&P.Ze,au=P.lJ.L1();(au&&P.videoData.isAd()&&au.getVideoData().OZ===P.getVideoData().OZ||!P.videoData.tE)&&!VL?P.a_("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+P.videoData.videoId):W7(P.videoData,"html5_ssap_skip_slow_ad")&&VL&&P.Ze.Iz()&&(P.oN(new qD("ssap.transitionfailure",{cpn:R8(P.Ze,P.I_()).clipId,pcpn:P.Ze.yv(), cmt:P.I_()})),P=P.Ze,VL=P.Ta.I_(),(VL=YsX(P,VL))&&b8V(P,VL.Ag()/1E3))}; NT(this,this.Wc,q,!q,"ad.rebuftimeout",Q,"skip_slow_ad");M=Z&&l&&EJ(C.yx(),N+5)&&M;NT(this,this.kM,M&&!d,!M,"ad.rebuftimeout",Q,"skip_slow_ad_buf");Q=V.isOrWillBePlaying()&&g.r(V,64)&&!d;NT(this,this.ER,Q,H,"qoe.start15s",function(){},"timeout"); Q=!!c&&!c.Hr&&V.isOrWillBePlaying();NT(this,this.vr,Q,H,"qoe.start15s",a,"newElemMse");Q=cc(J,0);M=g.r(V,16)||g.r(V,32);M=!d&&V.isOrWillBePlaying()&&l&&!M&&(g.r(V,64)||N===0)&&Q>5;NT(this,this.Qn,g.jQ(t)&&M,E&&!l,"qoe.longrebuffer",function(){p.Ta.wP()},"reset_media_source"); NT(this,this.KS,g.jQ(t)&&M,E&&!l,"qoe.longrebuffer",a,"reset_media_element");this.S===0&&(this.Y=N);M=l&&this.T===0&&N>1&&N===this.Y;NT(this,this.Ga,g.jQ(t)&&M,E&&!l,"qoe.slowseek",function(){C.seekTo(0)},"reseek_after_time_jump"); d=V.isOrWillBePlaying()&&!d;D=this.Ta.x6()-N<6&&!D&&this.Ta.GY();NT(this,this.J,t.rR()&&d&&l&&D,E&&!l,"qoe.longrebuffer",function(){sZ(p.Ta,!1,!0)},"handoff_end_long_buffer_reload"); c=(c==null?void 0:zb1(c))||NaN;c=J.length>1||!isNaN(c)&&c-.1<=N;NT(this,this.Z,id(t)&&d&&l&&c,E&&!l,"qoe.longrebuffer",a,"gapless_slice_append_stuck");c=S>=0&&J.end(S)>=2;d=id(t)&&this.Ta.VU&&c&&!t.sY&&d&&(l||g.r(V,8)&&g.r(V,16));NT(this,this.b_,d,H,"qoe.start15s",a,"gapless_slow_start");V=!!(X&&Q>5&&V.isPlaying()&&N<.1);NT(this,this.Hc,V,N>.5&&E,"qoe.longrebuffer",a,"ssap_stuck_in_ad_beginning");this.S=N;this.W.start()}}; VX.prototype.oN=function(p,C,V){C=this.X0(C);C.wn=V;C.wdup=this.V[p]?"1":"0";this.Ta.oN(new qD(p,C));this.V[p]=!0}; VX.prototype.X0=function(p){p=Object.assign(this.Ta.X0(!0),p.X0());this.T&&(p.stt=this.T.toFixed(3));this.Ta.getVideoData().isLivePlayback&&(p.ct=this.Ta.getCurrentTime().toFixed(3),p.to=this.Ta.yZ().toFixed(3));delete p.uga;delete p.euri;delete p.referrer;delete p.fexp;delete p.vm;return p}; C$.prototype.reset=function(){this.T=this.C=this.V=this.startTimestamp=0;this.S=!1}; C$.prototype.test=function(p){if(!this.W||this.C)return!1;if(!p)return this.reset(),!1;p=(0,g.Ip)();if(!this.startTimestamp)this.startTimestamp=p,this.V=0;else if(this.V>=this.W)return this.C=p,!0;this.V+=1;return!1}; C$.prototype.X0=function(){var p={},C=(0,g.Ip)();this.startTimestamp&&(p.wsd=(C-this.startTimestamp).toFixed());this.C&&(p.wtd=(C-this.C).toFixed());this.T&&(p.wssd=(C-this.T).toFixed());return p};g.m(pxs,g.Y);g.h=pxs.prototype;g.h.setMediaElement=function(p){(this.mediaElement=p)?(this.mediaElement&&(this.W||this.S||!this.mediaElement.wD()||this.seekTo(.01,{NZ:"seektimeline_setupMediaElement"})),HO(this)):dL(this)}; g.h.getCurrentTime=function(){if(Xd(this.Ta)){if(!isNaN(this.C))return this.C}else if(!isNaN(this.C)&&isFinite(this.C))return this.C;return this.mediaElement&&lTL(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.S||0}; g.h.yW=function(){return this.KS}; g.h.I_=function(){return this.getCurrentTime()-this.yZ()}; g.h.S1=function(){return this.T?this.T.S1():Infinity}; g.h.isAtLiveHead=function(p){if(!this.T)return!1;p===void 0&&(p=this.getCurrentTime());return GK(this.T,p)}; g.h.qR=function(){return!!this.T&&this.T.qR()}; g.h.seekTo=function(p,C){var V=C===void 0?{}:C;C=V.yC===void 0?!1:V.yC;var N=V.IJ===void 0?0:V.IJ;var H=V.EC===void 0?!1:V.EC;var X=V.kZ===void 0?0:V.kZ;var d=V.NZ===void 0?"":V.NZ;var a=V.seekSource===void 0?void 0:V.seekSource;var E=V.zR===void 0?!1:V.zR;var l=V.h6===void 0?!1:V.h6;V=V.tJ===void 0?!1:V.tJ;E&&(p+=this.yZ());$B(this.videoData)&&this.G("html5_sabr_enable_utc_seek_requests")&&a===29&&(this.KS=void 0);E=p=this.Sd())||!g.ud(this.videoData),t||(S={st:S,mst:this.Sd()},this.T&&this.G("html5_high_res_seek_logging")&&(S.ht=this.T.S1(),S.adft=L5y(this.T)),this.Ta.k_("seeknotallowed",S)),S=t));if(!S)return this.V&&(this.V=null,aTH(this)),U8(this.getCurrentTime());S=.005;l&&this.G("html5_sabr_seek_no_shift_tolerance")&&(S=0);if(Math.abs(p-this.C)<=S&&this.b_)return this.W;d&&(S=p,(this.yn.Gk()||this.G("html5_log_seek_reasons"))&& this.Ta.k_("seekreason",{reason:d,tgt:S}));a&&(this.Vn.C=a);this.b_&&dL(this);this.W||(this.W=new hK);p&&!isFinite(p)&&NMa(this,!1);(d=V||E)||(d=p,d=!(this.videoData.isLivePlayback&&this.videoData.V&&!this.videoData.V.T&&!(this.mediaElement&&this.mediaElement.wh()>0&&ak(this.mediaElement)>0)||Ge(this.videoData)&&this.Wa()===this.Sd(!1)?0:isFinite(d)||!Ge(this.videoData)));d||(p=hH(this,p,H));p&&!isFinite(p)&&NMa(this,!1);this.S=p;this.Y_=X;this.C=p;this.Z=0;this.T&&(H=this.T,X=p,gmH(H,X,!1),W5j(H, X));H=this.Ta;X=p;d={yC:C,seekSource:a};H.EZ.S=X;V=H.qY;V.mediaTime=X;V.T=!0;d.yC&&aRy(H,d);d=X>H.videoData.endSeconds&&X>H.videoData.limitedPlaybackDurationInSeconds;H.CV&&d&&isFinite(X)&&WYe(H);XC.start&&WYe(this.Ta);return this.W}; g.h.Sd=function(p){if(!this.videoData.isLivePlayback)return ADu(this.Ta);var C;return E5(this.videoData)&&((C=this.mediaElement)==null?0:C.isPaused())&&this.videoData.T?(p=this.getCurrentTime(),THj(this.Xt(p)*1E3)+p):this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(this.videoData)&&this.videoData.T?p?this.videoData.T.b_||0:this.videoData.T.lf||0:Ge(this.videoData)&&this.videoData.Wr&&this.videoData.T?this.videoData.T.Sd()+this.timestampOffset:this.videoData.V&&this.videoData.V.T?!p&& this.T?this.T.S1():ADu(this.Ta)+this.timestampOffset:this.mediaElement?rm()?THj(this.mediaElement.D1().getTime()):ak(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.h.Wa=function(){if(g.pf(this.videoData)){var p=this.Ta;g.pf(p.videoData);var C,V;return(V=(C=p.Ze)==null?void 0:C.Wa())!=null?V:p.videoData.Wa()}if(this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(this.videoData)){var N;return((N=this.videoData.T)==null?void 0:N.Tz)||0}C=this.videoData?this.videoData.Wa()+this.timestampOffset:this.timestampOffset;return E5(this.videoData)&&this.videoData.T&&(V=Number((p=this.videoData.progressBarStartPosition)==null?void 0:p.utcTimeMillis)/1E3,p= this.getCurrentTime(),p=this.Xt(p)-p,!isNaN(V)&&!isNaN(p))?Math.max(C,V-p):C}; g.h.O$=function(){this.W||this.seekTo(this.S,{NZ:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.h.US=function(){return this.b_&&!isFinite(this.C)}; g.h.CS=function(){Hn1(this,null);this.Vn.dispose();g.Y.prototype.CS.call(this)}; g.h.X0=function(){var p={};this.nS&&Object.assign(p,this.nS.X0());this.mediaElement&&Object.assign(p,this.mediaElement.X0());return p}; g.h.aM=function(p){this.timestampOffset=p}; g.h.getStreamTimeOffset=function(){return Ge(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0}; g.h.yZ=function(){return this.timestampOffset}; g.h.Xt=function(p){return this.videoData&&this.videoData.T?this.videoData.T.Xt(p-this.timestampOffset):NaN}; g.h.qD=function(){if(!this.mediaElement)return 0;if(Z6(this.videoData)){var p=this.mediaElement,C=p.yx();p=(tj(C)>0&&p.getDuration()?C.end(C.length-1):0)+this.timestampOffset-this.Wa();C=this.Sd()-this.Wa();return Math.max(0,Math.min(1,p/C))}return this.mediaElement.qD()}; g.h.Sg=function(p){this.Y&&(this.Y.T=p)}; g.h.WC=function(p,C){this.Ta.k_("requestUtcSeek",{time:p});$B(this.videoData)&&this.G("html5_sabr_enable_utc_seek_requests")&&(this.KS=p);var V;(V=this.nS)==null||V.WC(p);C&&(this.sY=C)}; g.h.Jx=function(p){$B(this.videoData)&&this.G("html5_sabr_enable_utc_seek_requests")&&(this.KS=void 0);if(this.sY)this.Ta.k_("utcSeekingFallback",{source:"streamTime",timeSeconds:this.sY}),this.Ta.seekTo(this.sY,{NZ:"utcSeekingFallback_streamTime"}),this.sY=0;else{var C=this.getCurrentTime();isNaN(C)||(p=this.Xt(C)-p,C-=p,this.Ta.k_("utcSeekingFallback",{source:"estimate",timeSeconds:C}),this.Ta.seekTo(C,{NZ:"utcSeekingFallback_estimate"}))}}; g.h.kW=function(){this.sY=0}; g.h.G=function(p){return this.yn&&this.yn.G(p)};g.m(ai,g.Y);ai.prototype.start=function(){this.C.start()}; ai.prototype.stop=function(){this.C.stop()}; ai.prototype.clear=function(){for(var p=g.F(this.T.values()),C=p.next();!C.done;C=p.next())C.value.clear()}; ai.prototype.sample=function(){for(var p=g.F(this.V),C=p.next();!C.done;C=p.next()){var V=g.F(C.value);C=V.next().value;V=V.next().value;this.T.has(C)||this.T.set(C,new mAy(MqE.has(C)));this.T.get(C).update(V())}this.C.start()}; var MqE=new Set(["networkactivity"]);mAy.prototype.update=function(p){this.T?(this.buffer.add(p-this.hS||0),this.hS=p):this.buffer.add(p)}; mAy.prototype.clear=function(){this.buffer.clear();this.hS=0};tH.prototype.Rb=function(){return this.started}; tH.prototype.start=function(){this.started=!0}; tH.prototype.reset=function(){this.finished=this.started=!1};var DAj=!1;g.m(g.JH,g.ca);g.h=g.JH.prototype;g.h.CS=function(){this.logger.debug("dispose");g.Dr(this.Pg);Ipu(this.JE);this.visibility.unsubscribe("visibilitystatechange",this.JE);YCS(this);K$(this);g.rE.X5(this.G7);this.Hz();this.QL=null;g.iP(this.videoData);g.iP(this.q1);g.iP(this.LN);g.iP(this.Ni);g.s1(this.Akn);this.CV=null;g.ca.prototype.CS.call(this)}; g.h.Y1=function(p,C,V,N,H){if(this.yn.G("html5_log_ad_playback_docid")){var X=this.Pc();if(X.qoe){X=X.qoe;var d=this.yn.a$||"yt";g.OZ(X,g.Zn(X.provider),"ad_playback",[p,C,V,H,d])}}else this.Pc().Y1(p,C,V);this.G("html5_log_media_perf_info")&&this.k_("adloudness",{ld:N.toFixed(3),cpn:p})}; g.h.y5=function(){var p;return(p=this.nS)==null?void 0:p.y5()}; g.h.bI=function(){var p;return(p=this.nS)==null?void 0:p.bI()}; g.h.dc=function(){var p;return(p=this.nS)==null?void 0:p.dc()}; g.h.Tc=function(){var p;return(p=this.nS)==null?void 0:p.Tc()}; g.h.O8=function(){return this.videoData.O8()}; g.h.Xp=function(){return this.BE}; g.h.ip=function(){!this.DC||this.DC.fS();this.DC=new g.wX(new Pu(this.videoData,this.yn,this));this.BE=new Lu(this.yn,this,this.DC)}; g.h.getVideoData=function(){return this.videoData}; g.h.K=function(){return this.yn}; g.h.Xm=function(p){return this.L$.Xm(this.QL,p===void 0?!1:p)}; g.h.Pc=function(p){if(p)a:{for(var C=this.BE,V=g.F(C.T.values()),N=V.next();!N.done;N=V.next())if(N=N.value,N.getVideoData().videoId===p){p=N;break a}p=C.C}else p=this.BE.Pc();return p}; g.h.Uu=function(){return this.visibility}; g.h.aj=function(){return this.mediaElement&&this.mediaElement.F6()?this.mediaElement.V$():null}; g.h.Nt=function(){return this.mediaElement}; g.h.QI=function(){if(this.videoData.isLoaded()){var p=this.q1;g.mi(p.I$.experiments,"html5_player_min_build_cl")>0&&g.mi(p.I$.experiments,"html5_player_min_build_cl")>706555921&&eaa(p,"oldplayer");Pij(this)}else this.videoData.AX||this.videoData.sx?this.hx&&g.bH(this.yn)&&this.videoData.isLivePlayback||(this.videoData.AX?Pty(this.videoData):(p=this.Pc(),p.qoe&&(p=p.qoe,IV(p,"protected"),p.provider.videoData.W?p.jW():p.provider.videoData.subscribe("dataloaded",p.jW,p)),n1v(this.videoData))):!this.videoData.loading&& this.TO&&zDv(this)}; g.h.hK=function(p){this.Ze=p;this.nS&&this.nS.hK(p)}; g.h.dH=CY(15);g.h.isFullscreen=function(){return this.visibility.isFullscreen()}; g.h.isBackground=function(){return this.visibility.isBackground()}; g.h.sendAbandonmentPing=function(){g.r(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Im(!0),YCS(this),g.rE.X5(this.G7))}; g.h.kQ=function(){mTu(this.Pc())}; g.h.a_=function(p,C,V,N,H,X){this.logger.debug(function(){return"set player error: ec="+p+", detail="+H}); var d,a;g.A9(b_F,V)?d=V:V?a=V:d="GENERIC_WITHOUT_LINK";N=(N||"")+(";a6s."+U0());if(p==="auth"||p==="drm.auth"||p==="heartbeat.stop")V&&(N+=";r."+V.replaceAll(" ","_")),X&&(N+="sr."+X.replaceAll(" ","_"));C={errorCode:p,errorDetail:H,errorMessage:a||g.CZ[d]||"",Ye:d,Ck:X||"",QG:N,PO:C,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=p;St(this,"dataloaderror");this.aN(Mr(this.playerState,128,C));g.rE.X5(this.G7);K$(this);this.Q6()}; g.h.hp=function(p){this.S6=this.S6.filter(function(C){return p!==C}); this.logger.debug(function(){return"set preroll ready for "+p}); g.pf(this.videoData)&&!this.iX()&&this.mM.Cd("pl_pr");this.XU.Rb()&&nWH(this)}; g.h.iX=function(){var p;(p=!!this.S6.length)||(p=this.ZZ.T.array[0],p=!!p&&p.start<=-0x8000000000000);return p}; g.h.qR=function(){return this.EZ.qR()}; g.h.isPlaying=function(){return this.playerState.isPlaying()}; g.h.Bo=function(){return this.playerState.Bo()&&this.videoData.Of}; g.h.getPlayerState=function(){return this.playerState}; g.h.getPlayerType=function(){return this.playerType}; g.h.getPreferredQuality=function(){if(this.QL){var p=this.QL;p=p.videoData.KT.compose(p.videoData.f5);p=XP(p)}else p="auto";return p}; g.h.kR=CY(19);g.h.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.h.setMediaElement=function(p){this.logger.debug("set media element");if(this.mediaElement&&p.V$()===this.mediaElement.V$()&&(p.isView()||this.mediaElement.isView())){if(p.isView()||!this.mediaElement.isView())g.Am(this.Va),this.mediaElement=p,this.mediaElement.Ta=this,cDS(this),this.EZ.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Hz();if(!this.playerState.isError()){var C=mE(this.playerState,512);g.r(C,8)&&!g.r(C,2)&&(C=JK(C,1));p.isView()&&(C=mE(C,64));this.aN(C)}this.mediaElement= p;this.mediaElement.Ta=this;Qj(this.yn)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);cDS(this);this.EZ.setMediaElement(this.mediaElement);this.G("html5_prewarm_media_source")&&!this.q1.tj()&&UyV(this.mediaElement)}}; g.h.Hz=function(p,C,V){p=p===void 0?!1:p;C=C===void 0?!1:C;V=V===void 0?!1:V;this.logger.debug("remove media element");if(this.mediaElement){var N=this.getCurrentTime();N>0&&(this.EZ.S=N);this.EZ.setMediaElement(null);!p&&Hj(this)?Nuu(this):OD(this,V);this.nS&&(pu(this.nS),f$(this,C));this.OC.stop();if(this.mediaElement&&(!this.XU.Rb()||this.playerState.isError()||g.r(this.playerState,2)||this.aN(JK(this.playerState,512)),this.mediaElement)){g.Am(this.Va);if(p||!this.mediaElement.isView())this.mM.Hm("mesv_s"), this.mediaElement.stopVideo(),qT(this);this.mediaElement=this.mediaElement.Ta=null}}}; g.h.playVideo=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;var V=this,N,H,X,d,a,E;return g.I(function(l){if(l.C==1){V.logger.debug("start play video");V.G("html5_enable_ssap_autoplay_debug_logging")&&V.k_("ssap",{playv:p});var t=window.google_image_requests;t&&t.length>10&&(window.google_image_requests=t.slice(-10));if(g.r(V.playerState,128))return l.return();if(V.q1.Xd())return V.publish("signatureexpired"),l.return();V.mediaElement&&$b(V.Pc());gWY(V);(g.r(V.playerState,64)||p)&&V.aN(JK(V.playerState, 8));return V.XU.finished&&V.mediaElement?V.QL||!V.t_?l.EY(2):g.y(l,V.t_,3):l.return()}if(l.C!=2&&g.r(V.playerState,128))return l.return();if(!V.videoData.V)return V.videoData.isLivePlayback&&!g.GF(V.yn.W,!0)?(N="html5.unsupportedlive",H=2):(N=V.videoData.O8()?"fmt.unplayable":"fmt.noneavailable",H=1),g.eG(Error("selectableFormats")),V.a_(N,H,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(V.gi()&&V.videoData.V.T)return V.logger.debug("rebuild playbackData for airplay"), l.return(Fd(V));if(Xd(V))t=V.EZ,rP(t.videoData)?!t.isAtLiveHead(t.getCurrentTime())&&t.qR()&&t.Ta.seekTo(Infinity,{NZ:"seektimeline_peggedToLive",seekSource:34}):g.pf(t.videoData)&&t.getCurrentTime()=0?p:this.getCurrentTime()}; g.h.Xt=function(){var p;return((p=this.videoData.T)==null?0:p.Xt)?this.videoData.T.Xt(this.getCurrentTime()-this.yZ()):this.mediaElement&&(p=this.mediaElement.D1())&&(p=p.getTime(),!isNaN(p))?p/1E3+this.getCurrentTime():NaN}; g.h.getDuration=function(p){return g.pf(this.videoData)&&this.Ze?p?RHQ(this.Ze,p):GG(this.Ze):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.yZ():this.Sd()?this.Sd():0}; g.h.sS=function(){var p=new DTH;if(this.nS){var C=this.yn.schedule,V=this.yn.Gk();V=V===void 0?!1:V;p.mP=C.sY;p.pT=C.Y_;p.bandwidthEstimate=Mn(C);if(V){V=(C.J.Kd()*1E3).toFixed();var N=(C.Sa.Kd()*1E3).toFixed(),H=tR(C).toFixed(2),X=((C.D.Kd()||0)*1E9).toFixed(2),d=C.V.Kd().toFixed(0),a=C.Wr.Kd().toFixed(0),E=C.Z.percentile(.5).toFixed(2),l=C.Z.percentile(.92).toFixed(2),t=C.Z.percentile(.96).toFixed(2),c=C.Z.percentile(.98).toFixed(2);C.T?C.T.reset():C.T=new Xs;C.T.add(C.Vn);C.T.add(C.interruptions.length); for(var T=0,M=C.interruptions.length-1;M>=0;M--){var J=C.interruptions[M];C.T.add(J-T);T=J}T=0;for(M=C.S.length-1;M>=0;M--){J=C.S[M];var S=J.stamp/36E5;C.T.add(S-T);T=S;C.T.add(J.net/1E3);C.T.add(J.max)}C=C.T.c6();p.T={ttr:V,ttm:N,d:H,st:X,bw:d,abw:a,v50:E,v92:l,v96:t,v98:c,"int":C}}IXj(this.nS,p)}else this.mediaElement&&(p.eA=E3(this.mediaElement));p.mP=this.mP;p.pT=this.pT;p.V=this.isAtLiveHead()&&this.isPlaying()?oWH(this):NaN;return p}; g.h.TP=function(p,C){this.pT+=p;this.mP+=C}; g.h.qD=function(){return this.mediaElement?g.ud(this.videoData)?1:Z6(this.videoData)?this.isAtLiveHead()||this.qR()?1:this.EZ.qD():this.mediaElement.qD():0}; g.h.X0=function(p){var C={};if(p===void 0?0:p){Object.assign(C,this.Pc().X0());this.mediaElement&&(Object.assign(C,this.mediaElement.X0()),Object.assign(C,this.uP()));this.nS&&Object.assign(C,this.nS.X0());this.UO&&(C.drm=JSON.stringify(this.UO.X0()));C.state=this.playerState.state.toString(16);g.r(this.playerState,128)&&(C.debug_error=JSON.stringify(this.playerState.UE));this.iX()&&(C.prerolls=this.S6.join(","));this.videoData.I6&&(C.ismb=this.videoData.I6);this.videoData.latencyClass!=="UNKNOWN"&& (C.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(C.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)C.is_mosaic=1;this.videoData.cotn&&(C.is_offline=1,C.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(C.playerResponseCpn=this.videoData.playerResponseCpn);this.lJ.isOrchestrationLeader()&&(C.leader=1);this.videoData.isLivePlayback&&(this.videoData.T&& Jz(this.videoData.T)&&(C.segduration=Jz(this.videoData.T)),p=this.EZ,C.lat=p.Y?R2S(p.Y.S):0,C.liveutcstart=this.videoData.liveUtcStartSeconds);C.relative_loudness=this.videoData.Gp.toFixed(3);if(p=g.Z_(this))C.optimal_format=p.video.qualityLabel;C.user_qual=Y1();C.release_version="youtube.player.web_20241215_00_RC00";g.pf(this.videoData)&&this.Ze&&(C.ssap=fA(this.Ze))}C.debug_videoId=this.videoData.videoId;return C}; g.h.addCueRange=function(p){this.Qs([p])}; g.h.removeCueRange=function(p){this.ZZ.p$([p])}; g.h.YW=function(p,C){return this.ZZ.YW(p,C)}; g.h.Qs=function(p,C){this.ZZ.d7(p,C)}; g.h.bK=function(p){this.ZZ.p$(p)}; g.h.xm=function(){return this.ZZ.xm()||[]}; g.h.gi=function(){return this.visibility.gi()}; g.h.fT=function(){this.mediaElement&&this.mediaElement.fT()}; g.h.K6$=function(){St(this)}; g.h.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.h.VG=function(p){var C=p.target.U8();if(this.mediaElement&&this.mediaElement.U8()&&this.mediaElement.U8()===C){yDY(this,p.type);switch(p.type){case "error":var V=tK(this.mediaElement)||"",N=this.mediaElement.FF();if(V==="capability.changed"){this.G("html5_restart_on_capability_change")?(this.k_("capchg",{msg:N}),sZ(this,!0)):Fd(this);return}if(this.mediaElement.hasError()&&(YpS(this.q1,V,{msg:N})||g.pf(this.videoData)&&this.Ze&&(N=this.playerState.UE,this.Ze.handleError(V,N==null?void 0:N.PO))))return; if(this.isBackground()&&this.mediaElement.LO()===4){this.Q6();D_(this,"unplayable");return}break;case "durationchange":V=this.mediaElement.getDuration();isFinite(V)&&(!this.Hr||V>0)&&V!==1&&this.Nr(V);break;case "ratechange":this.nS&&this.nS.setPlaybackRate(this.mediaElement.getPlaybackRate());b$u(this.ZZ);this.Pc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":IRj(this);this.publish("onLoadedMetadata");M4y(this);V=this.Xt();this.videoData.vA&&(this.videoData.vA=V);break; case "loadstart":M4y(this);break;case "progress":case "suspend":this.m6();this.publish("onLoadProgress",this,this.qD());break;case "playing":this.mM.Hm("plev");this.Tm&&!Xd(this)&&(this.Tm=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{NZ:"videoplayer_onPlaying"})));break;case "timeupdate":V=this.mediaElement&&!this.mediaElement.getCurrentTime();N=this.mediaElement&&this.mediaElement.wh()===0;if(V&&(!this.OL||N))return;this.OL=this.OL||!!this.mediaElement.getCurrentTime(); Tuj(this);this.m6();if(!this.mediaElement||this.mediaElement.U8()!==C)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.TC().length>0&&this.mediaElement.yx().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.nS)return;this.G("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.wh()>2||!this.mediaElement.isSeeking()&&EJ(this.mediaElement.yx(),this.mediaElement.getCurrentTime()))&& (V=this.mediaElement.X0(),V.bh=E3(this.mediaElement).toFixed(3),this.k_("uwe",V));g.pf(this.videoData)&&this.Ze&&b8V(this.Ze,this.mediaElement.getCurrentTime());break;case "resize":IRj(this);this.videoData.C&&this.videoData.C.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.bB&&g.r(this.playerState,8)&&!g.r(this.playerState,1024)&&this.getCurrentTime()===0&&g.D1){D_(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.U8()=== C){TMu(this.EZ,p,this.Ze||void 0);this.publish("videoelementevent",p);C=this.playerState;N=this.qY;var H=this.mediaElement;V=this.videoData.clientPlaybackNonce;var X=g.pf(this.videoData)&&this.Ze?GG(this.Ze):void 0;if(!g.r(C,128)){var d=C.state;H=H?H:p.target;var a=H.getCurrentTime();if(!g.r(C,64)||p.type!=="ended"&&p.type!=="pause"){X=X||H.getDuration();X=H.isEnded()||a>1&&Math.abs(a-X)<1.1;var E=p.type==="pause"&&H.isEnded();a=p.type==="ended"||p.type==="waiting"||p.type==="timeupdate"&&!g.r(C, 4)&&!Wu(N,a);if(E||X&&a)H.xd()>0&&H.U8()&&(d=14);else switch(p.type){case "error":tK(H)&&(d|=128);break;case "pause":g.r(C,256)?(d^=256)||(d=64):g.r(C,32)||g.r(C,2)||g.r(C,4)||(d=4,g.r(C,1)&&g.r(C,8)&&(d|=1));break;case "playing":a=d;d=(d|8)&-1093;a&4?(d|=1,TP(N,H,!0)):Wu(N,H.getCurrentTime())&&(d&=-2);g.r(C,1)&&TP(N,H)&&(d|=1);break;case "seeking":d|=16;g.r(C,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;TP(N,H,!0);break;case "waiting":g.r(C,2)||(d|=1);TP(N,H);break;case "timeupdate":a=g.r(C,16),X= g.r(C,4),(g.r(C,8)||a)&&!X&&Wu(N,H.getCurrentTime())&&(d=8),TP(N,H)&&(d|=1)}}N=d;d=null;N&128&&(d=p.target,H=tK(d),a=1,H?(H==="capability.changed"&&(a=2),X="GENERIC_WITHOUT_LINK",E=d.X0(),E.mediaElem="1",/AUDIO_RENDERER/.test(d.FF())&&(X="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:H,errorMessage:g.CZ[X]||"",Ye:X,QG:yu(E),PO:a,cpn:C.UE?C.UE.cpn:""}):d=null,d&&(d.cpn=V));C=Mr(C,N,d)}!g.r(this.playerState,1)&&g.r(C,1)&&fRH(this,"evt"+p.type);this.aN(C)}}}; g.h.Va_=function(p){p=p.T.availability==="available";p!==this.Po&&(this.Po=p,this.publish("airplayavailabilitychange"))}; g.h.SYY=function(){var p=(0,g.Ip)(),C=this.mediaElement.gi();this.k_("airplay",{ia:C});!C&&!isNaN(this.Zi)&&p-this.Zi<2E3||(this.Zi=p,C!==this.gi()&&(p=this.visibility,p.T!==C&&(p.T=C,p.JE()),this.k_("airplay",{rbld:C}),F9(this)),this.publish("airplayactivechange"))}; g.h.mQ=function(p){if(this.nS){var C=this.nS,V=C.V,N=C.getCurrentTime(),H=Date.now()-V.Z;V.Z=NaN;V.k_("sdai",{adfetchdone:p,d:H});p&&!isNaN(V.D)&&V.C!==3&&gSS(V.nS,N,V.D,V.W);V.policy.W?V.V=NaN:V.S=NaN;O4(V,4,V.C===3?"adfps":"adf");pu(C)}}; g.h.m6=function(p){var C=this;p=p===void 0?!1:p;if(this.mediaElement&&this.videoData){inS(this.EZ,this.isPlaying());var V=this.getCurrentTime();!this.nS||g.r(this.playerState,4)&&g.ud(this.videoData)||g.r(this.playerState,32)&&$B(this.videoData)||AtX(this.nS,V);this.G("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&FDV(this,V,this.videoData.lengthSeconds);V>5&&(this.EZ.S=V);var N=g.X2();N?g.rE.X5(this.G7):g.KO(this.G7);var H=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!H||E5(this.videoData))&& !g.r(this.playerState,128)){var X=function(){if(C.mediaElement&&!g.r(C.playerState,128)){C.yn.Gk()&&yDY(C,"pfx");var d=C.getCurrentTime();C.G("html5_buffer_underrun_transition_fix")&&(d-=C.yZ());var a=E3(C.mediaElement),E=g.r(C.playerState,8),l=Wu(C.qY,d),t=bqa(C.qY,d,(0,g.Ip)(),a);E&&l?C.aN(mE(C.playerState,1)):E&&t?(E=C.getDuration(),l=rP(C.videoData),E&&Math.abs(E-d)<1.1?(C.k_("setended",{ct:d,bh:a,dur:E,live:l}),C.mediaElement.Cv()?(C.logger.debug("seek to 0 because of looping"),C.seekTo(0,{NZ:"videoplayer_loop", seekSource:37})):sD(C)):(C.playerState.isBuffering()||fRH(C,"progress_fix"),C.aN(JK(C.playerState,1)))):(E&&!l&&!t&&d>0&&(E=(Date.now()-C.o2)/1E3,l=C.getDuration(),d>l-1&&C.k_("misspg",{t:d.toFixed(2),d:l.toFixed(2),r:E.toFixed(2),bh:a.toFixed(2)})),C.playerState.isPaused()&&C.playerState.isBuffering()&&E3(C.mediaElement)>5&&C.aN(mE(C.playerState,1)));C.m6()}}; this.mediaElement.TC().length===0?this.G7=N?g.rE.Lx(X,100):g.F5(X,100):this.G7=N?g.rE.Lx(X,500):g.F5(X,500)}this.videoData.hg=V;this.Ze&&NS(this.Ze);!p&&this.isPlaying()&&SRY(this);XuL(this.L$,this.QL,this.Nt(),this.isBackground())&&TE(this);this.publish("progresssync",this,p);H&&E5(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.h.rU=function(){this.a_("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.h.Zj=function(){return this.Pc().Zj()}; g.h.Xh=function(){return this.nS?this.nS.Xh():Mn(this.yn.schedule,!0)}; g.h.aN=function(p){if(!g.FO(this.playerState,p)){this.logger.debug(function(){return"Setting state "+p.toString()}); var C=new g.Kt(p,this.playerState);this.playerState=p;qR1(this);var V=!this.Dv.length;this.Dv.push(C);var N=this.mediaElement&&this.mediaElement.isSeeking();N=C.T7.state===8&&!N;g.u$(C,1)&&N&&g.r(this.playerState,8)&&!g.r(this.playerState,64)&&this.nS&&(Ndy(this.nS),this.mediaElement&&E3(this.mediaElement)>=5&&NXe(this.L$,this.QL)&&TE(this));(N=g.mi(this.yn.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.r(p,1)&&(g.r(p,8)||g.r(p,16))?this.CN.start(N):this.CN.stop();(D7(C,8)<0||g.u$(C, 1024))&&this.OC.stop();!g.u$(C,8)||this.videoData.sY||g.r(C.state,1024)||this.OC.start();g.r(C.state,8)&&D7(C,16)<0&&!g.r(C.state,32)&&!g.r(C.state,2)&&this.playVideo();g.r(C.state,2)&&Z6(this.videoData)&&(this.Nr(this.getCurrentTime()),this.m6(!0));g.u$(C,2)&&(this.Im(!0),this.yn.Gk()&&this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(this.videoData)&&this.videoData.T&&(N={minst:""+this.videoData.T.Tz,cminst:""+(this.videoData.T.Wa()+this.yZ()),maxst:""+this.videoData.T.lf,hts:""+ this.videoData.T.b_,cmaxst:""+(this.videoData.T.Sd()+this.yZ())},this.k_("sabrSeekableBoundaries",N)));g.u$(C,128)&&this.Q6();this.videoData.T&&this.videoData.isLivePlayback&&!this.TH&&(D7(C,8)<0?QlS(this.videoData.T):g.u$(C,8)&&this.videoData.T.resume());XxY(this.EZ,C);JH1(this.Pc(),C);if(V&&!this.fS())try{for(var H=g.F(this.Dv),X=H.next();!X.done;X=H.next()){var d=X.value;AHy(this.ZZ,d);this.publish("statechange",d)}}finally{this.Dv.length=0}}}; g.h.jf=function(){this.mM.tick("qoes")}; g.h.O$=function(){this.EZ.O$()}; g.h.ZD=function(p,C,V,N){a:{var H=this.q1;N=N===void 0?"LICENSE":N;V=V.substring(0,256);var X=Ir(C);p==="drm.keyerror"&&this.UO&&this.UO.C.keys.length>1&&H.S<96&&(p="drm.sessionlimitexhausted",X=!1);if(X)if(H.videoData.C&&H.videoData.C.video.isHdr())wZu(H,p);else{if(H.Ta.a_(p,C,N,V),okH(H,{detail:V}))break a}else H.oN(p,{detail:V});p==="drm.sessionlimitexhausted"&&(H.k_("retrydrm",{sessionLimitExhausted:1}),H.S++,Udu(H.Ta))}}; g.h.TyY=function(){var p=this,C=g.mi(this.yn.experiments,"html5_license_constraint_delay"),V=XW();C&&V?(C=new g.N8(function(){uY(p);St(p)},C),g.R(this,C),C.start()):(uY(this),St(this))}; g.h.i7=function(p){this.publish("heartbeatparams",p)}; g.h.Ct=function(p){this.k_("keystatuses",haS(p));var C="auto",V=!1;this.videoData.C&&(C=this.videoData.C.video.quality,V=this.videoData.C.video.isHdr());if(this.G("html5_drm_check_all_key_error_states")){var N=sB9(C,V);N=TK(p)?ap9(p,N):p.S.includes(N)}else{a:{C=sB9(C,V);for(N in p.T)if(p.T[N].status==="output-restricted"){var H=p.T[N].type;if(C===""||H==="AUDIO"||C===H){N=!0;break a}}N=!1}N=!N}if(this.G("html5_enable_vp9_fairplay")){if(V)if(p.J){var X;if((X=this.UO)==null?0:Az(X.T))if((V=this.UO)== null)V=0;else{C=X=void 0;H=g.F(V.C.values());for(var d=H.next();!d.done;d=H.next())d=d.value,X||(X=EkY(d,"SD")),C||(C=EkY(d,"AUDIO"));V.Zu({sd:X,audio:C});V=X==="output-restricted"||C==="output-restricted"}else V=!N;if(V){this.k_("drm",{dshdr:1});wZu(this.q1);return}}else{this.videoData.Yu||(this.videoData.Yu=!0,this.k_("drm",{dphdr:1}),sZ(this,!0));return}var a;if((a=this.UO)==null?0:Az(a.T))return}else if(a=p.J&&N,V&&!a){wZu(this.q1);return}N||ap9(p,"AUDIO")&&ap9(p,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), p=haS(p),this.Fv?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.G("html5_report_fatal_drm_restricted_error_killswitch")||this.a_("drm.keyerror",2,void 0,"info."+p)):(this.Fv=!0,this.oN(new qD("qoe.restart",Object.assign({},{retrydrm:1},p))),TE(this),Udu(this)))}; g.h.ah_=function(){if(!this.videoData.sY&&this.mediaElement&&!this.isBackground()){var p="0";this.mediaElement.wh()>0&&E3(this.mediaElement)>=5&&this.videoData.V&&this.videoData.V.T&&(this.aN(JK(this.playerState,1)),fRH(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),p="1");qR1(this);var C=this.videoData.V;p={restartmsg:p,mfmt:!ds(this.videoData),mdrm:!(!(C&&C.videoInfos&&C.videoInfos.length&&C.videoInfos[0].vV)||this.UO),mfmtinfo:!this.videoData.C,prerolls:this.iX()?this.S6.join(","): "0"};if(this.UO){C=this.UO;if(C.C.size<=0){var V="ns;";C.Z||(V+="nr;");C=V+="ql."+C.V.length}else C=haS(C.C.values().next().value),C=yu(C);p.drmp=C}var N;Object.assign(p,((N=this.nS)==null?void 0:N.X0())||{});var H;Object.assign(p,((H=this.mediaElement)==null?void 0:H.X0())||{});this.Pc().oN("qoe.start15s",yu(p));this.publish("loadsofttimeout")}}; g.h.Nr=function(p){this.videoData.lengthSeconds!==p&&(this.videoData.lengthSeconds=p,St(this))}; g.h.Im=function(p,C){var V=this;p=p===void 0?!1:p;if(!this.FE)if(dc("att_s","player_att")||hd("att_s",void 0,"player_att"),this.G("use_rta_for_player"))(function(){var H,X,d,a;return g.I(function(E){switch(E.C){case 1:if(!(H=p)){E.EY(2);break}return g.y(E,g.fhv(),3);case 3:H=!E.T;case 2:if(H)return E.return();g.vv(E,4);X=SDy(V.Pc());if(!X)throw Error();d={};return g.y(E,g.UeL((d.cpn=V.videoData.clientPlaybackNonce,d.encryptedVideoId=V.videoData.videoId||"",d),3E4),6);case 6:a=E.T;if(V.FE)throw Error(); if(!a.challenge)throw g.eG(Error("Not sending attestation ping; no attestation challenge string")),Error();V.FE=!0;var l=[a.challenge];a.error?l.push("r1c="+a.error):a.webResponse&&l.push("r1a="+a.webResponse);var t;((t=a.adblockReporting)==null?void 0:t.reportingStatus)!==void 0&&l.push("r6a="+a.adblockReporting.reportingStatus);var c;((c=a.adblockReporting)==null?void 0:c.broadSpectrumDetectionResult)!==void 0&&l.push("r6b="+a.adblockReporting.broadSpectrumDetectionResult);X(l.join("&"));hd("att_f", void 0,"player_att");g.Fe(E,0);break;case 4:g.Sa(E),hd("att_e",void 0,"player_att"),g.JQ(E)}})})().then(function(){C==null||C()}); else{var N=new g.Fte(this.videoData);if("c1a"in N.o8&&!g.bt.isInitialized()){hd("att_wb",void 0,"player_att");this.Wq===2&&Math.random()<.01&&g.eG(Error("Botguard not available after 2 attempts"));if(p)return;if(this.Wq<5){g.HF(this.Ni);this.Wq++;return}}(N=g.Sry(N))?(hd("att_f",void 0,"player_att"),F5Q(this.Pc(),N),this.FE=!0):hd("att_e",void 0,"player_att")}}; g.h.x6=function(p){p=p===void 0?!1:p;if(rP(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.qR()||g.ud(this.videoData)))p=this.getCurrentTime();else if(g.pf(this.videoData)&&this.Ze){p=this.Ze;var C=this.getCurrentTime();p=(p=xwH(p,C*1E3))?(p.Ag()-p.r6())/1E3:0}else p=this.Sd(p);return p}; g.h.uI=function(){return g.pf(this.videoData)?this.videoData.Wa():this.Wa()}; g.h.Sd=function(p){return this.EZ.Sd(p===void 0?!1:p)}; g.h.Wa=function(){return this.EZ.Wa()}; g.h.yZ=function(){return this.EZ?this.EZ.yZ():0}; g.h.getStreamTimeOffset=function(){return this.EZ?this.EZ.getStreamTimeOffset():0}; g.h.SX=function(){var p=0;this.yn.G("web_player_ss_media_time_offset")&&(p=this.getStreamTimeOffset()===0?this.yZ():this.getStreamTimeOffset());return p}; g.h.setPlaybackRate=function(p){var C;this.playbackRate!==p&&QB1(this.L$,(C=this.videoData.V)==null?void 0:C.videoInfos)&&(this.playbackRate=p,TE(this));this.playbackRate=p;this.mediaElement&&this.mediaElement.setPlaybackRate(p)}; g.h.getPlaybackRate=function(){return this.playbackRate}; g.h.getPlaybackQuality=function(){var p="unknown";if(this.videoData.C&&(p=this.videoData.C.video.quality,p==="auto"&&this.mediaElement)){var C=this.aj();C&&C.videoHeight>0&&(p=e9(C.videoWidth,C.videoHeight))}return p}; g.h.isHdr=function(){return!!(this.videoData.C&&this.videoData.C.video&&this.videoData.C.video.isHdr())}; g.h.v8=function(){this.Pc().v8()}; g.h.sendVideoStatsEngageEvent=function(p,C){var V=this.Pc();V.T?(V=zK(V.T,"engage"),V.b_=p,V.send(C)):C&&C()}; g.h.Ix=function(p){return this.Pc().Ix(p)}; g.h.isAtLiveHead=function(p,C){C=C===void 0?!1:C;return rP(this.videoData)&&(this.u2||C)?this.EZ.isAtLiveHead(p):!1}; g.h.uX=function(){var p=this.Sd(),C=this.getCurrentTime(),V;(V=!rP(this.videoData))||(V=this.EZ,V=!(V.T&&V.T.V));return V||this.qR()||isNaN(p)||isNaN(C)?0:Math.max(0,p-C)}; g.h.t9=CY(23);g.h.ME=CY(41);g.h.J9=function(p){this.Pc().J9(p)}; g.h.Bn=function(p){this.Pc().Bn(p)}; g.h.gJ=function(p){this.Pc().gJ(p)}; g.h.Qo=CY(27);g.h.eO=CY(31);g.h.y9=function(p){this.Pc().y9(p)}; g.h.uP=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.h.setLoop=function(p){this.loop=p;this.mediaElement&&Qj(this.yn)&&this.mediaElement.setLoop(p);this.nS&&this.G("html5_loop_skip_set_end_of_stream")&&(p?this.nS.policy.KS=!0:H4Y(this.nS))}; g.h.Cv=function(){return this.mediaElement&&Qj(this.yn)?this.mediaElement.Cv():this.loop}; g.h.aM=function(p){this.k_("timestamp",{o:p.toString()});this.EZ.aM(p)}; g.h.ZE=function(p){this.mM.tick(p)}; g.h.Cd=function(p){return this.mM.Cd(p)}; g.h.Hm=function(p){this.mM.Hm(p)}; g.h.k_=function(p,C,V){V=V===void 0?!1:V;this.Pc().k_(p,C,V)}; g.h.x8=function(p,C,V){V=V===void 0?!1:V;this.Pc().k_(p,C,V)}; g.h.oN=function(p){this.Pc().oN(p.errorCode,yu(p.details));p=p.errorCode;if(this.videoData.isLivePlayback&&(p==="qoe.longrebuffer"||p==="qoe.slowseek")||p==="qoe.restart"){p=this.nS?sMH(this.nS.videoTrack):{};var C,V;this.k_("lasoe",Object.assign(this.nS?sMH(this.nS.audioTrack):{},(C=this.Hr)==null?void 0:(V=C.T)==null?void 0:V.C3()));var N,H;this.k_("lvsoe",Object.assign(p,(N=this.Hr)==null?void 0:(H=N.C)==null?void 0:H.C3()))}}; g.h.ZN=function(p,C,V){this.Pc().ZN(p,C,V)}; g.h.LR=function(p){this.videoData.RJ=!0;this.oN(new qD("sabr.fallback",p));sZ(this,!0)}; g.h.MD=function(){return g.Zn(this.Pc().provider)}; g.h.getPlayerSize=function(){return this.Dq.getPlayerSize()}; g.h.KO=function(){return this.Dq.KO()}; g.h.W6=function(){return this.mM}; g.h.St=function(){return this.lJ.St()}; g.h.getVolume=function(){return this.lJ.getVolume()}; g.h.jE=function(){return this.lJ.jE()}; g.h.isMuted=function(){return this.lJ.isMuted()}; g.h.t7=function(){return this.lJ.t7()}; g.h.Si=function(){this.TH=!0}; g.h.G=function(p){return this.yn.G(p)}; g.h.s_=function(){var p=this.getCurrentTime(),C=p-this.yZ();var V=this.mediaElement?tj(this.mediaElement.yx()):0;V=Math.floor(Math.max(V-C,0))+100;var N;if(!this.G("html5_ssdai_disable_seek_to_skip")&&((N=this.nS)==null?0:N.v9(C,this.Sd())))return this.k_("sdai",{skipad:1,ct:C.toFixed(3),adj:0}),!0;var H;return((H=this.nS)==null?0:H.s_(C,V))?(this.k_("sdai",{skipad:1,ct:C.toFixed(3),adj:V.toFixed(3)}),$B(this.videoData)&&this.nS.seek(C+V,{seekSource:89,NZ:"videoplayer_skipServerStitchedAd"}),JrS(this.EZ, p),!0):!1}; g.h.Gk=function(){return this.yn.Gk()}; g.h.Ib=function(){if(this.G("html5_generate_content_po_token"))return this.videoData.O1||"";this.lJ.v5();return this.yn.XT||""}; g.h.rM=function(){if(this.videoData.videoId)return this.videoData.G2}; g.h.qg=function(){return this.videoData.videoId}; g.h.qP=function(){return this.lJ.z7}; g.h.GY=function(){return this.lJ.GY()}; g.h.WC=function(p,C){this.EZ.WC(p,C)}; g.h.kW=function(){this.EZ.kW()}; g.h.ZG=function(p,C){var V=this.G("html5_generate_content_po_token")?this.videoData:void 0;this.lJ.ZG(p,C,V)}; g.h.tZ=function(p,C){var V;(V=this.nS)==null||V.tZ(p,C)}; g.h.Bq=function(){var p=this.In();return!!p&&p.Bq()}; g.h.RI=function(){return this.Ze}; g.h.GP=function(p,C){this.Pc().GP(p,C)}; g.h.CJ=function(){return this.Pc().CJ()}; g.h.kh=function(){return this.videoData.Vm}; g.h.SS=function(){return this.lJ.SS()}; g.h.tA=function(){return this.lJ.tA(this)};g.m(oXe,iT);g.m(kIY,iT);g.h=kIY.prototype;g.h.seekToChapterWithAnimation=function(p){var C=this;if(g.Zg(this.api)&&!(p<0)){var V=this.api.getVideoData(),N=V.Y9;if(N&&p=0)return;C=~C;g.VR(this.items,C,0,p);Eo(this.menuItems.element,p.element,C)}p.subscribe("size-change",this.OU,this);this.menuItems.publish("size-change")}; g.h.u8=function(p){p.unsubscribe("size-change",this.OU,this);this.fS()||(g.rY(this.items,p),this.menuItems.element.removeChild(p.element),this.menuItems.publish("size-change"))}; g.h.OU=function(){this.menuItems.publish("size-change")}; g.h.focus=function(){for(var p=0,C=0;C1&&g.QX(this)}; g.h.Am=function(){aiX(this);this.C4&&(hyQ(this),g.b4(this.element,this.size))}; g.h.Ou=function(){var p=this.T.pop();svH(this,p,this.T[this.T.length-1],!0)}; g.h.fb=function(p){if(!p.defaultPrevented)switch(p.keyCode){case 27:this.f4();p.preventDefault();break;case 37:this.T.length>1&&this.Ou();p.preventDefault();break;case 39:p.preventDefault()}}; g.h.focus=function(){this.T.length&&this.T[this.T.length-1].focus()}; g.h.CS=function(){g.GC.prototype.CS.call(this);this.W&&this.W.dispose();this.D&&this.D.dispose()};g.m(rL,g.gL);rL.prototype.open=function(p,C){this.initialize(p.items)&&this.er(C,!!C)}; rL.prototype.initialize=function(p){g.L$(this.Zd);if(p===void 0||p.length===0)return!1;var C=p.length;p=g.F(p);for(var V=p.next();!V.done;V=p.next())this.zB(V.value,C--);return!0}; rL.prototype.zB=function(p,C){p.menuNavigationItemRenderer?tDX(this,p.menuNavigationItemRenderer,C):p.menuServiceItemRenderer&&cov(this,p.menuServiceItemRenderer,C)};g.m(BO,PO);g.h=BO.prototype;g.h.SN=function(p){p.target!==this.dismissButton.element&&p.target!==this.overflowButton.element&&(this.dO(),this.onClickCommand&&this.N.Jk("innertubeCommand",this.onClickCommand))}; g.h.Fj=function(){this.enabled=!1;this.a$.hide()}; g.h.Xb=function(){return!!this.T&&this.enabled}; g.h.onVideoDataChange=function(p,C){this.Qy(C);if(this.T){this.ov();a:if(!this.isCounterfactual){var V,N,H;this.banner.update({title:(V=this.T)==null?void 0:V.title,subtitle:(N=this.T)==null?void 0:N.subtitle,metadata:(H=this.T)==null?void 0:H.metadataText});var X;this.onClickCommand=g.n((X=this.T)==null?void 0:X.onTap,w7);var d;if(p=g.n((d=this.T)==null?void 0:d.onOverflow,w7))this.J=g.n(p,DLp);var a;if((a=this.T)==null?0:a.thumbnailImage){var E,l;d=((E=this.T)==null?void 0:(l=E.thumbnailImage)== null?void 0:l.sources)||[];if(d.length===0)break a;this.thumbnailImage.update({url:d[0].url})}else{var t;if((t=this.T)==null?0:t.thumbnailIconName){var c;this.thumbnailIcon.update({icon:(c=this.T)==null?void 0:c.thumbnailIconName})}}var T;this.shouldShowOverflowButton=!((T=this.T)==null||!T.shouldShowOverflowButton);var M;this.shouldHideDismissButton=!((M=this.T)==null||!M.shouldHideDismissButton)}var J;this.banner.element.setAttribute("aria-label",((J=this.T)==null?void 0:J.a11yLabel)||"");var S; this.Y_=(S=this.T)==null?void 0:S.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;MDL(this)}}; g.h.wrx=function(){this.isVisible=!0;MDL(this)}; g.h.doa=function(){this.isVisible=!1;MDL(this)}; g.h.fG=function(){PO.prototype.fG.call(this);this.C&&this.N.logVisibility(this.banner.element,this.isVisible)}; g.h.dO=function(){PO.prototype.dO.call(this,!1);this.C&&this.N.logClick(this.banner.element)}; g.h.Lb=function(p){this.D||(this.D=new rL(this.N),g.R(this,this.D));var C,V;if((C=this.J)==null?0:(V=C.menu)==null?0:V.menuRenderer)this.D.open(this.J.menu.menuRenderer,p.target),p.preventDefault()}; g.h.Qy=function(){}; g.h.ov=function(){}; g.h.CS=function(){this.N.qt("suggested_action_view_model");PO.prototype.CS.call(this)};g.m(GE,BO); GE.prototype.Qy=function(p){var C,V,N;this.productUpsellSuggestedActionViewModel=g.n((C=p.getWatchNextResponse())==null?void 0:(V=C.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:N.suggestedActionViewModel,Yv0);var H;if((H=this.productUpsellSuggestedActionViewModel)==null?0:H.content){var X;this.T=g.n((X=this.productUpsellSuggestedActionViewModel)==null?void 0:X.content,FqE)}var d,a;if(this.C=!!((d=this.productUpsellSuggestedActionViewModel)==null?0:(a=d.loggingDirectives)==null? 0:a.trackingParams)){var E,l;this.N.setTrackingParams(this.banner.element,((E=this.productUpsellSuggestedActionViewModel)==null?void 0:(l=E.loggingDirectives)==null?void 0:l.trackingParams)||null)}var t;this.isCounterfactual=!((t=this.productUpsellSuggestedActionViewModel)==null||!t.isCounterfactualServing)}; GE.prototype.ov=function(){var p=[],C,V=g.F(((C=this.productUpsellSuggestedActionViewModel)==null?void 0:C.ranges)||[]);for(C=V.next();!C.done;C=V.next()){var N=C.value;N&&(C=Number(N.startTimeMilliseconds),N=Number(N.endTimeMilliseconds),isNaN(C)||isNaN(N)||p.push(new g.sz(C,N,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.N.d7(p)};g.m(Joj,iT);g.m(pn,iT);pn.prototype.onVideoDataChange=function(p){var C;p==="newdata"&&(this.C||this.T&&((C=PY())==null?0:C.size))&&vaH(this);this.T&&p==="dataloaded"&&((p=KRu(this))&&(p=FRs(this,this.C||p))&&this.api.setAudioTrack(p,!0),this.V&&(this.V=!1,upH(this)))}; pn.prototype.xN=function(){var p=this;if(g.bH(this.api.K())){var C,V=g.pk(this.api.K(),(C=this.api.getVideoData())==null?void 0:g.XE(C));return Tv(Ei(V),function(N){var H=rb();Bk(H,N);return p.api.xN(H)})}return Ei(this.api.xN())};g.m(g.jv,g.Nl);g.h=g.jv.prototype;g.h.open=function(){g.WO(this.xM,this.C)}; g.h.kN=function(p){Zve(this);var C=this.options[p];C&&(C.element.setAttribute("aria-checked","true"),this.Jc(this.oz(p)),this.V=p)}; g.h.dh=function(p){g.L$(this.C);for(var C={},V=!1,N=0;N=0?this.T.playbackRate:1}catch(p){return 1}}; g.h.setPlaybackRate=function(p){this.getPlaybackRate()!==p&&(this.T.playbackRate=p);return p}; g.h.Cv=function(){return this.T.loop}; g.h.setLoop=function(p){this.T.loop=p}; g.h.canPlayType=function(p,C){return this.T.canPlayType(p,C)}; g.h.isPaused=function(){return this.T.paused}; g.h.isSeeking=function(){return this.T.seeking}; g.h.isEnded=function(){return this.T.ended}; g.h.AR=function(){return this.T.muted}; g.h.BC=function(p){zx();this.T.muted=p}; g.h.TC=function(){return this.T.played||hj([],[])}; g.h.yx=function(){try{var p=this.T.buffered}catch(C){}return p||hj([],[])}; g.h.cW=function(){return this.T.seekable||hj([],[])}; g.h.D1=function(){var p=this.T;return p.getStartDate?p.getStartDate():null}; g.h.getCurrentTime=function(){return this.T.currentTime}; g.h.setCurrentTime=function(p){this.T.currentTime=p}; g.h.getDuration=function(){return this.T.duration}; g.h.load=function(){var p=this.T.playbackRate;try{this.T.load()}catch(C){}this.T.playbackRate=p}; g.h.pause=function(){this.T.pause()}; g.h.play=function(){var p=this.T.play();if(!p||!p.then)return null;p.then(void 0,function(){}); return p}; g.h.wh=function(){return this.T.readyState}; g.h.xd=function(){return this.T.networkState}; g.h.LO=function(){return this.T.error?this.T.error.code:null}; g.h.FF=function(){return this.T.error?this.T.error.message:""}; g.h.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var p=this.T,C=p.webkitDroppedFrameCount;if(p=p.webkitDecodedFrameCount)return{droppedVideoFrames:C||0,totalVideoFrames:p}}return{}}; g.h.gi=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless}; g.h.fT=function(){return!!this.T.webkitShowPlaybackTargetPicker()}; g.h.togglePictureInPicture=function(){var p=this.T,C=window.document;window.document.pictureInPictureEnabled?this.T!==C.pictureInPictureElement?p.requestPictureInPicture():C.exitPictureInPicture():YZ()&&p.webkitSetPresentationMode(p.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.h.rz=function(){var p=this.T;return new g.Fn(p.offsetLeft,p.offsetTop)}; g.h.getSize=function(){return g.Ax(this.T)}; g.h.setSize=function(p){g.b4(this.T,p)}; g.h.getVolume=function(){return this.T.volume}; g.h.setVolume=function(p){zx();this.T.volume=p}; g.h.Rw=function(p){this.W[p]||(this.T.addEventListener(p,this.listener),this.W[p]=this.listener)}; g.h.setAttribute=function(p,C){this.T.setAttribute(p,C)}; g.h.removeAttribute=function(p){this.T.removeAttribute(p)}; g.h.hasAttribute=function(p){return this.T.hasAttribute(p)}; g.h.Qm=CY(45);g.h.wf=CY(47);g.h.o1=CY(49);g.h.nf=CY(51);g.h.RF=function(){return D3(this.T)}; g.h.DO=function(p){g.Ed(this.T,p)}; g.h.I2=function(p){return g.u4(this.T,p)}; g.h.S4=function(){return g.t2(document.body,this.T)}; g.h.audioTracks=function(){var p=this.T;if("audioTracks"in p)return p.audioTracks}; g.h.CS=function(){for(var p=g.F(Object.keys(this.W)),C=p.next();!C.done;C=p.next())C=C.value,this.T.removeEventListener(C,this.W[C]);s3.prototype.CS.call(this)}; g.h.IE=function(p){this.T.disableRemotePlayback=p};g.m(tr,g.L);g.m(Tb,g.L);Tb.prototype.show=function(){g.L.prototype.show.call(this);this.Pr();this.ea.G("html5_enable_moving_s4n_window")&&g.bH(this.ea.K())&&this.J()}; Tb.prototype.hide=function(){g.L.prototype.hide.call(this);this.delay.stop();this.S.stop()}; Tb.prototype.Pr=function(){var p=(0,g.Ip)(),C=xbL(this.ea);cx(this.T,C.bandwidth_samples);cx(this.D,C.network_activity_samples);cx(this.V,C.live_latency_samples);cx(this.C,C.buffer_health_samples);var V={};C=g.F(Object.entries(C));for(var N=C.next();!N.done;N=C.next()){var H=g.F(N.value);N=H.next().value;H=H.next().value;this.Z[N]!==H&&(V[N]=" "+String(H));this.Z[N]=H}this.update(V);p=(0,g.Ip)()-p>25?5E3:500;this.delay.start(p)}; Tb.prototype.J=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.S.start(2E4)};g.m(RyQ,iT);g.m(MA,g.Y);MA.prototype.T=function(){var p=(0,g.Ip)()-this.startTime;p=pthis.S[p])&&(this.T=p,pNY(this))}; g.h.onCueRangeExit=function(p){var C=G8e(this,p);C&&this.T===p&&this.api.Jk("innertubeCommand",C);this.clearTimeout();this.T=void 0}; g.h.onTimeout=function(p){this.T!==void 0&&(p==null?void 0:p.cueRangeId)===this.T&&(p=G8e(this,this.T))&&this.api.Jk("innertubeCommand",p)}; g.h.qI=function(p){this.C=p}; g.h.FH=function(){pNY(this);this.C=void 0}; g.h.setTimeout=function(p){var C=this,V=Number(p==null?void 0:p.maxVisibleDurationMilliseconds);V&&(this.clearTimeout(),this.W=setTimeout(function(){C.onTimeout(p)},V))}; g.h.clearTimeout=function(){this.W&&clearTimeout(this.W);this.W=void 0}; g.h.CS=function(){this.timelyActions=this.C=this.T=this.videoId=void 0;this.S={};this.p$();this.clearTimeout();iT.prototype.CS.call(this)};g.m(VM9,iT);var F8={},tMe=(F8[1]="pot_ss",F8[2]="pot_sf",F8[3]="pot_se",F8[4]="pot_xs",F8[5]="pot_xf",F8[6]="pot_xe",F8);g.m(Sv,iT);Sv.prototype.CS=function(){this.W&&(g.Dr(this.W),this.W=void 0);iT.prototype.CS.call(this)}; Sv.prototype.v5=function(){this.T&&!this.T.isReady()&&DT(this)}; Sv.prototype.m$=function(p,C,V){var N=this;if(H7L(p)){var H=V||"",X;if((X=this.T)==null?0:X.isReady())C=ui(this,H),XNQ(p,C);else{var d=new g.Zt;C.push(d.promise);this.S.promise.then(function(){var a=ui(N,H);XNQ(p,a);d.resolve()})}}}; Sv.prototype.Cn=function(p){var C=this;this.T&&(this.T.isReady()||(p.O1=ui(this,p.videoId)),this.C=new hK,this.T.ready().then(function(){C.mM.Cd("pot_if");p.O1=ui(C,p.videoId)}))};g.m(TJV,iT);g.m(ZT,g.Y);ZT.prototype.T=function(){for(var p=g.F(g.US.apply(0,arguments)),C=p.next();!C.done;C=p.next())(C=C.value)&&this.features.push(C)}; ZT.prototype.CS=function(){for(var p=this.features.length-1;p>=0;p--)this.features[p].dispose();this.features.length=0;g.Y.prototype.CS.call(this)};UC.prototype.rd=function(){this.C=(0,g.Ip)()}; UC.prototype.reset=function(){this.T=this.C=NaN}; UC.prototype.vy=function(p,C){if(p.clientPlaybackNonce&&!isNaN(this.T)){if(Math.random()<.01){C=C?"pbp":"pbs";var V={startTime:this.T};p.Y&&(V.cttAuthInfo={token:p.Y,videoId:p.videoId});XA("seek",V);g.HH({clientPlaybackNonce:p.clientPlaybackNonce},"seek");isNaN(this.C)||NR("pl_ss",this.C,"seek");NR(C,(0,g.Ip)(),"seek")}this.reset()}};g.h=MM1.prototype;g.h.reset=function(){CU(this.timerName)}; g.h.tick=function(p,C){NR(p,C,this.timerName)}; g.h.Cd=function(p){return ie(p,this.timerName)}; g.h.Hm=function(p){YL(p,void 0,this.timerName)}; g.h.infoGel=function(p){g.HH(p,this.timerName)};g.m(vfY,g.ca);g.h=vfY.prototype;g.h.bT=function(p){return this.loop||!!p||this.index+1=0}; g.h.setShuffle=function(p){this.shuffle=p;p=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var C=0;C0)||Wx(this,1,!0)}; g.h.F8=function(){this.Y=!0;this.T.rY(this.W);this.W=this.T.U(document,"mouseup",this.HT)}; g.h.HT=function(){this.Y=!1;Wx(this,8,!1);this.T.rY(this.W);this.W=this.T.U(this.target,"mousedown",this.F8)}; g.h.qv=function(p){if(p=(p=p.changedTouches)&&p[0])this.sY=p.identifier,this.T.rY(this.J),this.J=this.T.U(this.target,"touchend",this.PT,void 0,!0),Wx(this,1024,!0)}; g.h.PT=function(p){if(p=p.changedTouches)for(var C=0;C1280||X>720)if(H=V.TW("maxresdefault.jpg"))break;if(N>640||X>480)if(H=V.TW("maxresdefault.jpg"))break; if(N>320||X>180)if(H=V.TW("sddefault.jpg")||V.TW("hqdefault.jpg")||V.TW("mqdefault.jpg"))break;if(H=V.TW("default.jpg"))break}g.LI(C)&&(C=new Image,C.addEventListener("load",function(){H59()}),C.src=H?H:"",this.api.W6().tick("ftr")); this.W.style.backgroundImage=H?"url("+H+")":""};g.m(g.Gb,g.L);g.Gb.prototype.resize=function(){}; g.Gb.prototype.C=function(p){var C=this;this.V=!1;MCV(this);var V=p.Ye,N=this.api.K();V!=="GENERIC_WITHOUT_LINK"||N.Y?V==="TOO_MANY_REQUESTS"?(N=this.api.getVideoData(),this.Jc(j4(this,"TOO_MANY_REQUESTS_WITH_LINK",N.a8(),void 0,void 0,void 0,!1))):V!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||N.Y?this.api.K().G("html5_enable_bandaid_error_screen")&&V==="HTML5_SPS_UMP_STATUS_REJECTED"&&!N.Y?(N=N.hostLanguage,p="//support.google.com/youtube?p=videoError",N&&(p=g.GD(p,{hl:N})),this.Jc(j4(this,"HTML5_SPS_UMP_STATUS_REJECTED", p))):this.api.K().G("enable_adb_handling_in_sabr")&&V==="BROWSER_OR_EXTENSION_ERROR"&&!N.Y?(N=N.hostLanguage,p="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",N&&(p=g.GD(p,{hl:N})),this.Jc(j4(this,"BROWSER_OR_EXTENSION_ERROR",p))):this.Jc(g.pZ(p.errorMessage)):this.Jc(j4(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(p=N.hostLanguage,V="//support.google.com/youtube/?p=player_error1",p&&(V=g.GD(V, {hl:p})),this.Jc(j4(this,"GENERIC_WITH_LINK_AND_CPN",V,!0)),N.VZ&&!N.S&&Tv9(this,function(X){if(g.Ml(X,C.api,!nI(C.api.K()))){X={as3:!1,html5:!0,player:!0,cpn:C.api.getVideoData().clientPlaybackNonce};var d=C.api;d.Ba("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:X});d.isFullscreen()&&d.toggleFullscreen()}})); if(this.V){var H=this.rV("ytp-error-link");H&&(this.api.createClientVe(H,this,216104),this.api.logVisibility(H,!0),Tv9(this,function(){C.api.logClick(H)}))}}; var cFv=/([^<>]+)<\/a>/;g.m(JFv,g.L);g.h=JFv.prototype;g.h.onClick=function(p){this.innertubeCommand?(this.N.Jk("innertubeCommand",this.innertubeCommand),p.preventDefault()):g.Ml(p,this.N,!0);this.N.logClick(this.element)}; g.h.onVideoDataChange=function(p,C){vyX(this,C);this.g7&&Ffu(this,this.g7)}; g.h.R7=function(p){var C=this.N.getVideoData();this.videoId!==C.videoId&&vyX(this,C);this.T&&Ffu(this,p.state);this.g7=p.state}; g.h.er=function(){this.S.show();this.N.publish("paidcontentoverlayvisibilitychange",!0);this.N.logVisibility(this.element,!0)}; g.h.f4=function(){this.S.hide();this.N.publish("paidcontentoverlayvisibilitychange",!1);this.N.logVisibility(this.element,!1)};g.m(V1,g.L);V1.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.L.prototype.hide.call(this)}; V1.prototype.onStateChange=function(p){this.UZ(p.state)}; V1.prototype.UZ=function(p){if(g.r(p,128))var C=!1;else{var V;C=((V=this.api.L1())==null?0:V.hx)?!1:g.r(p,16)||g.r(p,1)?!0:!1}C?this.T.start():this.hide()}; V1.prototype.C=function(){this.message.style.display="block"};g.m(Nd,g.GC);Nd.prototype.onMutedAutoplayChange=function(p){this.V&&(p?(SmX(this),this.er()):(this.T&&this.logClick(),this.f4()))}; Nd.prototype.wi=function(p){this.api.isMutedByMutedAutoplay()&&g.u$(p,2)&&this.f4()}; Nd.prototype.onClick=function(){this.api.unMute();this.logClick()}; Nd.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.m(g.Hz,g.Rr);g.h=g.Hz.prototype;g.h.init=function(){var p=this.api,C=p.getPlayerStateObject();this.gM=p.getPlayerSize();this.aN(C);this.Uc();this.OR();this.api.publish("basechromeinitialized",this);this.py()&&this.api.publish("standardControlsInitialized")}; g.h.onVideoDataChange=function(p,C){var V=this.w1!==C.videoId;if(V||p==="newdata"){p=this.api;p.isFullscreen()||(this.gM=p.getPlayerSize());var N;((N=this.api.getVideoData(1))==null?0:g.pf(N))&&this.tF()}V&&(this.w1=C.videoId,V=this.YB,V.Vn=3E3,Wx(V,512,!0),this.Uc());this.api.G("web_render_jump_buttons")&&C.showSeekingControls&&(this.A1=572)}; g.h.h6_=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.h.QX=function(){var p=this.api.dR()&&this.api.iy(),C=this.api.iU();return this.Az||p||this.qk||C}; g.h.tF=function(){var p=!this.QX();g.Tz(this.api.getRootNode(),"ytp-menu-shown",!p);var C;((C=this.api.getVideoData(1))==null?0:g.pf(C))&&g.Tz(this.api.getRootNode(),"ytp-hide-controls",!p)}; g.h.sJ=function(p){try{if(!g.t2(this.api.getRootNode(),p))return!1}catch(C){return!1}for(;p&&!cPV(p);)p=p===this.api.getRootNode()?null:p.parentElement||null;return!!p}; g.h.XS=function(p){var C=this.api.getRootNode();g.Tz(C,"ytp-autohide",p);g.Tz(C,"ytp-autohide-active",!0);this.kp.start(p?250:100);p&&(this.t3=!1,g.tk(C,"ytp-touch-mode"));this.xe=!p;this.api.VF(!p)}; g.h.Io=function(){var p=this.api.getRootNode();g.Tz(p,"ytp-autohide-active",!1)}; g.h.aEY=function(){this.n0=!0}; g.h.kB$=function(p){if(this.api.K().G("player_doubletap_to_seek")||this.api.K().J)this.n0=!1,this.C0&&this.rY(this.C0),this.rA===0&&Xo(this,p)?(this.cG(),this.RY.start(),this.C0=this.U(this.api.dV(),"touchmove",this.aEY,void 0,!0)):this.RY.stop();ZDX(this)&&Xo(this,p)&&!this.api.K().J&&DE9(this);var C=this.rX.rh();if(!g.KI(this.api.K())&&vg&&UES(this,p))C&&p.preventDefault();else if(this.t3=!0,g.Ed(this.api.getRootNode(),"ytp-touch-mode"),this.YB.Pm(),this.api.K().G("player_doubletap_to_seek")||this.api.K().J)if(C= this.api.getPlayerStateObject(),!(!this.api.CO()||g.r(C,2)&&g.Yj(this.api)||g.r(C,64))){C=Date.now()-this.S7;this.rA+=1;if(C<=350){this.vO=!0;C=this.api.getPlayerSize().width/3;var V=this.api.getRootNode().getBoundingClientRect(),N=p.targetTouches[0].clientX-V.left;V=p.targetTouches[0].clientY-V.top;var H=(this.rA-1)*10;N>0&&NC*2&&N=650;this.YB.resize();g.Tz(C,"ytp-fullscreen",this.api.isFullscreen());g.Tz(C,"ytp-large-width-mode",V);g.Tz(C,"ytp-small-mode",this.OE());g.Tz(C,"ytp-tiny-mode",this.jQ());g.Tz(C,"ytp-big-mode",this.GW());this.mS&&this.mS.resize(p)}; g.h.wi=function(p){this.aN(p.state);this.Uc()}; g.h.Ur=CY(5);g.h.sB=function(){var p=!!this.w1&&!this.api.B1()&&!this.rD,C=this.api.getPresentingPlayerType()===2,V=this.api.K();if(C){if(ajE&&V.G("enable_visit_advertiser_support_on_ipad_mweb"))return!1;C=Px(this.api.Tk());p&&(C&&C.player?p=(p=C.player.getVideoData(2))?p.isListed&&!g.qz(C.player.K()):!1:(S2("showInfoBarDuringAd: this is null"),p=!1));return p}return p&&(V.lF||this.api.isFullscreen()||V.tB)}; g.h.Uc=function(){var p=this.sB();this.Gi!==p&&(this.Gi=p,g.Tz(this.api.getRootNode(),"ytp-hide-info-bar",!p))}; g.h.aN=function(p){var C=p.isCued()||this.api.iX()&&this.api.getPresentingPlayerType()!==3;C!==this.isCued&&(this.isCued=C,this.Al&&this.rY(this.Al),this.Al=this.U(this.api.dV(),"touchstart",this.kB$,void 0,C));var V=this.YB,N=p.isPlaying()&&!g.r(p,32)||this.api.Db();Wx(V,128,!N);V=this.YB;N=this.api.getPresentingPlayerType()===3;Wx(V,256,N);V=this.api.getRootNode();g.r(p,2)?N=[PD.ENDED]:(N=[],g.r(p,8)?N.push(PD.PLAYING):g.r(p,4)&&N.push(PD.PAUSED),g.r(p,1)&&!g.r(p,32)&&N.push(PD.BUFFERING),g.r(p, 32)&&N.push(PD.SEEKING),g.r(p,64)&&N.push(PD.UNSTARTED));g.af(this.nN,N)||(g.cF(V,this.nN),this.nN=N,g.lI(V,N));N=this.api.K();var H=g.r(p,2);a:{var X=this.api.K();var d=X.controlsType;switch(d){case "2":case "0":X=!1;break a}X=d==="3"&&!g.r(p,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:W3v(Px(this.api.Tk())))||this.api.iU()||g.KI(X)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Tz(V,"ytp-hide-controls",!X);g.Tz(V,"ytp-native-controls",N.controlsType==="3"&&!C&&!H&&!this.qk);g.r(p, 128)&&!g.KI(N)?(this.mS||(this.mS=new g.Gb(this.api),g.R(this,this.mS),g.LT(this.api,this.mS.element,4)),this.mS.C(p.UE),this.mS.show()):this.mS&&(this.mS.dispose(),this.mS=null)}; g.h.A6=function(){return this.api.dR()&&this.api.iy()?(this.api.Dg(!1,!1),!0):this.api.B1()?(g.zC(this.api,!0),!0):!1}; g.h.onMutedAutoplayChange=function(p){this.qk=p;this.tF()}; g.h.GW=function(){return!1}; g.h.OE=function(){return!this.GW()&&(this.api.getPlayerSize().width=0&&C.left>=0&&C.bottom>C.top&&C.right>C.left?C:null;C=this.size;p=p.clone();C=C.clone();N&&(d=C,H=5,(H&65)==65&&(p.x=N.right)&&(H&=-2),(H&132)==132&&(p.y=N.bottom)&&(H&=-5),p.xN.right&&(d.width=Math.min(N.right-p.x,X+d.width-N.left),d.width=Math.max(d.width,0))),p.x+d.width>N.right&&H&1&&(p.x=Math.max(N.right-d.width,N.left)),p.yN.bottom&&(d.height=Math.min(N.bottom-p.y,X+d.height-N.top),d.height=Math.max(d.height,0))),p.y+d.height>N.bottom&&H&4&&(p.y=Math.max(N.bottom-d.height,N.top)));N=new g.vf(0,0,0,0);N.left=p.x;N.top=p.y;N.width= C.width;N.height=C.height;g.OE(this.element,new g.Fn(N.left,N.top));g.Am(this.S);this.S.U(pc(this),"contextmenu",this.g_$);this.S.U(this.N,"fullscreentoggled",this.onFullscreenToggled);this.S.U(this.N,"pageTransition",this.Kb)}; g.h.g_$=function(p){if(!p.defaultPrevented){var C=yc(p);g.t2(this.element,C)||this.f4();this.N.K().disableNativeContextMenu&&p.preventDefault()}}; g.h.onFullscreenToggled=function(){this.f4();rFY(this)}; g.h.Kb=function(){this.f4()};g.m(TI,g.L);TI.prototype.onClick=function(){var p=this,C,V,N,H;return g.I(function(X){if(X.C==1)return C=p.api.K(),V=p.api.getVideoData(),N=p.api.getPlaylistId(),H=C.getVideoUrl(V.videoId,N,void 0,!0),g.y(X,pDL(p,H),2);X.T&&GSS(p);p.api.logClick(p.element);g.JQ(X)})}; TI.prototype.Pr=function(){this.updateValue("icon",{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar link");this.visible=BvY(this);g.Tz(this.element,"ytp-copylink-button-visible", this.visible);this.jb(this.visible);this.tooltip.B6();this.api.logVisibility(this.element,this.visible&&this.Y)}; TI.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; TI.prototype.CS=function(){g.L.prototype.CS.call(this);g.tk(this.element,"ytp-copylink-button-visible")};g.m(Md,g.L);Md.prototype.show=function(){g.L.prototype.show.call(this);g.HF(this.C)}; Md.prototype.hide=function(){this.S.stop();this.V=0;this.rV("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.tk(this.element,"ytp-chapter-seek");g.tk(this.element,"ytp-time-seeking");g.L.prototype.hide.call(this)}; Md.prototype.AK=function(p,C,V,N){this.V=p===this.D?this.V+N:N;this.D=p;var H=p===-1?this.Z:this.J;H&&this.N.logClick(H);this.W?this.C.stop():g.d0(this.C);this.S.start();this.element.setAttribute("data-side",p===-1?"back":"forward");var X=3*this.N.dV().getPlayerSize().height;H=this.N.dV().getPlayerSize();H=H.width/3-3*H.height;this.T.style.width=X+"px";this.T.style.height=X+"px";p===1?(this.T.style.left="",this.T.style.right=H+"px"):p===-1&&(this.T.style.right="",this.T.style.left=H+"px");var d=X* 2.5;X=d/2;var a=this.rV("ytp-doubletap-ripple");a.style.width=d+"px";a.style.height=d+"px";p===1?(p=this.N.dV().getPlayerSize().width-C+Math.abs(H),a.style.left="",a.style.right=p-X+"px"):p===-1&&(p=Math.abs(H)+C,a.style.right="",a.style.left=p-X+"px");a.style.top="calc((33% + "+Math.round(V)+"px) - "+X+"px)";if(V=this.rV("ytp-doubletap-ripple"))V.classList.remove("ytp-doubletap-ripple"),V.classList.add("ytp-doubletap-ripple");CSL(this,this.W?this.V:N)};g.m(VdY,PO);g.h=VdY.prototype;g.h.gp=function(p){this.vr||(this.vr=new rL(this.N),g.R(this,this.vr));var C,V;if((C=this.X$)==null?0:(V=C.menu)==null?0:V.menuRenderer)this.vr.open(this.X$.menu.menuRenderer,p.target),p.preventDefault()}; g.h.ZSa=function(){this.N.Jk("innertubeCommand",this.qW);this.N.logClick(this.infoButton.element)}; g.h.Xb=function(){return!!this.T}; g.h.N9=function(){return!!this.T}; g.h.SN=function(p){p.target===this.dismissButton.element||p.target===this.overflowButton.element||p.target===this.infoButton.element?p.preventDefault():(this.wy&&this.N.Jk("innertubeCommand",this.wy),this.dO(!1))}; g.h.Fj=function(){this.dO(!0);var p,C;((p=this.T)==null?0:(C=p.bannerData)==null?0:C.dismissedStatusKey)&&this.Hc.push(this.T.bannerData.dismissedStatusKey);this.Cl()}; g.h.dk=function(){this.Cl();Fo(this)}; g.h.IQe=function(p){var C=this,V;if(p.id!==((V=this.T)==null?void 0:V.identifier)){this.Cl();V=g.F(this.Vn);for(var N=V.next();!N.done;N=V.next()){var H=N.value,X=void 0,d=void 0;if((N=(X=H)==null?void 0:(d=X.bannerData)==null?void 0:d.itemData)&&H.identifier===p.id){d=X=void 0;var a=((X=H)==null?void 0:(d=X.bannerData)==null?void 0:d.dismissedStatusKey)||"";if(this.Hc.includes(a))break;this.T=H;this.banner.element.setAttribute("aria-label",N.accessibilityLabel||"");N.trackingParams&&(this.S=!0,this.N.setTrackingParams(this.badge.element, N.trackingParams));this.a$.show();et(this);this.Sa.jb(!N.stayInApp);cJv(this);HMY(this);vz(this);this.wy=g.n(N.onTapCommand,w7);if(H=g.n(N.menuOnTap,w7))this.X$=g.n(H,DLp);H=void 0;this.banner.update({thumbnail:(H=(N.thumbnailSources||[])[0])==null?void 0:H.url,title:N.productTitle,price:N.priceReplacementText?N.priceReplacementText:N.price,salesOriginalPrice:iM9(this),priceDropReferencePrice:hfu(this),promotionText:dWX(this),priceA11yText:sJe(this),affiliateDisclaimer:N.affiliateDisclaimer,vendor:a4L(this)}); a=d=X=H=void 0;((H=N)==null?0:(X=H.hiddenProductOptions)==null?0:X.showDropCountdown)&&((d=N)==null?0:(a=d.hiddenProductOptions)==null?0:a.dropTimestampMs)&&(this.ER=new g.N8(function(){tdL(C)},1E3),this.Sa.hide(),this.countdownTimer.show(),tdL(this)); this.N.G("web_player_enable_featured_product_banner_exclusives_on_desktop")&&NK9(this)&&(this.YM=new g.N8(function(){XDs(C)},1E3),XDs(this))}}}}; g.h.Cl=function(){this.T&&(this.T=void 0,this.hd())}; g.h.onVideoDataChange=function(p,C){var V=this;p==="dataloaded"&&Fo(this);var N,H;p=C==null?void 0:(N=C.getPlayerResponse())==null?void 0:(H=N.videoDetails)==null?void 0:H.isLiveContent;var X,d,a;C=g.n((X=C.getWatchNextResponse())==null?void 0:(d=X.playerOverlays)==null?void 0:(a=d.playerOverlayRenderer)==null?void 0:a.productsInVideoOverlayRenderer,Sv5);this.N.G("web_player_enable_info_button_in_banner_on_desktop")&&!p?this.infoButton.show():this.infoButton.hide();this.N.G("web_player_enable_overflow_button_in_banner_on_desktop")&& (this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var E=C==null?void 0:C.featuredProductsEntityKey;this.trendingOfferEntityKey=C==null?void 0:C.trendingOfferEntityKey;var l;if(X=C==null?void 0:(l=C.dismissButton)==null?void 0:l.trackingParams)this.N.setTrackingParams(this.dismissButton.element,X),this.W=!0;var t;(l=C==null?void 0:(t=C.dismissButton)==null?void 0:t.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.uq(l));this.qW=C==null?void 0:C.onClickCommand; this.Vn.length||(l4L(this,E),vz(this));var c;(c=this.VZ)==null||c.call(this);this.VZ=g.Xx.subscribe(function(){l4L(V,E);vz(V)})}; g.h.CS=function(){Fo(this);cJv(this);HMY(this);PO.prototype.CS.call(this)};g.m(vRS,g.L);vRS.prototype.onClick=function(){this.N.logClick(this.element,this.C)};g.m(Fmy,g.GC);g.h=Fmy.prototype;g.h.show=function(){g.GC.prototype.show.call(this);this.N.publish("infopaneldetailvisibilitychange",!0);this.N.logVisibility(this.element,!0);SUu(this,!0)}; g.h.hide=function(){g.GC.prototype.hide.call(this);this.N.publish("infopaneldetailvisibilitychange",!1);this.N.logVisibility(this.element,!1);SUu(this,!1)}; g.h.getId=function(){return this.S}; g.h.t8=function(){return this.itemData.length}; g.h.onVideoDataChange=function(p,C){if(C){var V,N,H,X;this.update({title:((V=C.lM)==null?void 0:(N=V.title)==null?void 0:N.content)||"",body:((H=C.lM)==null?void 0:(X=H.bodyText)==null?void 0:X.content)||""});var d;p=((d=C.lM)==null?void 0:d.trackingParams)||null;this.N.setTrackingParams(this.element,p);d=g.F(this.itemData);for(p=d.next();!p.done;p=d.next())p.value.dispose();this.itemData=[];var a;if((a=C.lM)==null?0:a.ctaButtons)for(C=g.F(C.lM.ctaButtons),a=C.next();!a.done;a=C.next())if(a=g.n(a.value, Tof))a=new vRS(this.N,a,this.T),a.GN&&(this.itemData.push(a),a.u_(this.items))}}; g.h.CS=function(){this.hide();g.GC.prototype.CS.call(this)};g.m(uys,g.L);g.h=uys.prototype;g.h.onVideoDataChange=function(p,C){DWV(this,C);this.g7&&UWe(this,this.g7)}; g.h.Q0=function(p){var C=this.N.getVideoData();this.videoId!==C.videoId&&DWV(this,C);UWe(this,p.state);this.g7=p.state}; g.h.VO=function(p){(this.S=p)?this.hide():this.T&&this.show()}; g.h.Jb=function(){this.C||this.er();this.showControls=!0}; g.h.Ow=function(){this.C||this.f4();this.showControls=!1}; g.h.er=function(){var p;if((p=this.N)==null?0:p.G("embeds_web_enable_info_panel_sizing_fix")){var C;p=(C=this.N)==null?void 0:C.getPlayerSize();C=p.width<380;var V;p=p.height<(((V=this.N)==null?0:V.isEmbedsShortsMode())?400:280);var N,H;if((((N=this.N)==null?0:N.getPlayerStateObject().isCued())||((H=this.N)==null?0:g.r(H.getPlayerStateObject(),1024)))&&C&&p)return}this.T&&!this.S&&(this.V.show(),this.N.publish("infopanelpreviewvisibilitychange",!0),this.N.logVisibility(this.element,!0))}; g.h.f4=function(){this.T&&!this.S&&(this.V.hide(),this.N.publish("infopanelpreviewvisibilitychange",!1),this.N.logVisibility(this.element,!1))}; g.h.mg$=function(){this.C=!1;this.showControls||this.f4()};var FM1={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(FM1).reduce(function(p,C){p[FM1[C]]=C;return p},{}); var SlE={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(SlE).reduce(function(p,C){p[SlE[C]]=C;return p},{}); var KM1={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(KM1).reduce(function(p,C){p[KM1[C]]=C;return p},{});var DmF,uay;DmF=[{option:"#fff",text:"Branco"},{option:"#ff0",text:"Amarelo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Ciano"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Vermelho"},{option:"#080808",text:"Preto"}];uay=[{option:0,text:S4(0)},{option:.25,text:S4(.25)},{option:.5,text:S4(.5)},{option:.75,text:S4(.75)},{option:1,text:S4(1)}]; g.ZR=[{option:"fontFamily",text:"Estilo de fonte",options:[{option:1,text:"Serifada monoespa\u00e7ada"},{option:2,text:"Serifada proporcional"},{option:3,text:"Sem serifa monoespa\u00e7ada"},{option:4,text:"Sem serifa proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalete"}]},{option:"color",text:"Cor da fonte",options:DmF},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:S4(.5)},{option:-1,text:S4(.75)},{option:0,text:S4(1)},{option:1, text:S4(1.5)},{option:2,text:S4(2)},{option:3,text:S4(3)},{option:4,text:S4(4)}]},{option:"background",text:"Cor de fundo",options:DmF},{option:"backgroundOpacity",text:"Opacidade de fundo",options:uay},{option:"windowColor",text:"Cor da janela",options:DmF},{option:"windowOpacity",text:"Opacidade da janela",options:uay},{option:"charEdgeStyle",text:"Estilo de borda do caractere",options:[{option:0,text:"Nenhuma"},{option:4,text:"Sombra projetada"},{option:1,text:"Aumentada"},{option:2,text:"Reduzida"}, {option:3,text:"Circunscrito"}]},{option:"textOpacity",text:"Opacidade da fonte",options:[{option:.25,text:S4(.25)},{option:.5,text:S4(.5)},{option:.75,text:S4(.75)},{option:1,text:S4(1)}]}];var Zyr=[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.m(bM1,g.Rr);g.h=bM1.prototype; g.h.r4=function(p){p.repeat||(this.V.K3=!1);var C=!1,V=p.keyCode,N=yc(p),H=!p.altKey&&!p.ctrlKey&&!p.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||Zyr.includes(V)),X=!1,d=!1,a=this.api.K();p.defaultPrevented?(H=!1,d=!0):a.o6&&!this.api.isMutedByEmbedsMutedAutoplay()&&(H=!1);if(V===9)C=!0;else{if(N)switch(V){case 32:case 13:if(N.tagName==="BUTTON"||N.tagName==="A"||N.tagName==="INPUT")C=!0,H=!1;else if(H){var E=N.getAttribute("role");!E||E!=="option"&&E!=="button"&&E.indexOf("menuitem")!==0|| (C=!0,N.click(),X=!0)}break;case 37:case 39:case 36:case 35:C=N.getAttribute("role")==="slider";break;case 38:case 40:E=N.getAttribute("role"),N=V===38?N.previousSibling:N.nextSibling,E==="slider"?C=!0:H&&(E==="option"?(N&&N.getAttribute("role")==="option"&&N.focus(),X=C=!0):E&&E.indexOf("menuitem")===0&&(N&&N.hasAttribute("role")&&N.getAttribute("role").indexOf("menuitem")===0&&N.focus(),X=C=!0))}if(H&&!X)switch(V){case 38:X=Math.min(this.api.getVolume()+5,100);sR(this.WV,X,!1);this.api.setVolume(X); d=X=!0;break;case 40:X=Math.max(this.api.getVolume()-5,0);sR(this.WV,X,!0);this.api.setVolume(X);d=X=!0;break;case 36:this.api.CO()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),d=X=!0);break;case 35:this.api.CO()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),d=X=!0)}}C&&DR(this,!0);(C||d)&&this.YB.Pm();(X||H&&this.handleGlobalKeyDown(V,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code,p.repeat))&&p.preventDefault();a.D&&(p={keyCode:p.keyCode, altKey:p.altKey,ctrlKey:p.ctrlKey,metaKey:p.metaKey,shiftKey:p.shiftKey,handled:p.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.v1("onKeyPress",p))}; g.h.VS=function(p){var C=p.keyCode;(!this.api.G("web_player_spacebar_control_bugfix")||this.api.G("web_player_spacebar_control_bugfix")&&!this.S)&&this.handleGlobalKeyUp(C,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code)&&p.preventDefault()}; g.h.handleGlobalKeyUp=function(p,C,V,N,H,X,d){this.api.publish("keyboardserviceglobalkeyup",{keyCode:p,shiftKey:C,ctrlKey:V,altKey:N,metaKey:H,key:X,code:d});C=!1;if(this.V.K3)return C;(V=g.Pk(this.api.Tk()))&&(V=V.Nc)&&V.C4&&(V.A$(p),C=!0);switch(p){case 9:DR(this,!0);C=!0;break;case 32:if(this.api.G("web_speedmaster_spacebar_control")&&(!this.api.G("web_player_spacebar_control_bugfix")&&!this.S||this.api.G("web_player_spacebar_control_bugfix"))&&!this.api.K().o6){var a,E;p=(a=this.progressBar)== null?void 0:(E=a.C)==null?void 0:E.isEnabled;C=this.u6(p)}}return C}; g.h.handleGlobalKeyDown=function(p,C,V,N,H,X,d,a){a||(this.V.K3=!1);var E=!1,l=this.api.K();if(l.o6&&!this.api.isMutedByEmbedsMutedAutoplay())return E;var t=g.Pk(this.api.Tk());if(t&&(t=t.Nc)&&t.C4)switch(p){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:E=t.Cz(p)}l.Y||E||(E=X||String.fromCharCode(p).toLowerCase(),this.C+=E,"awesome".indexOf(this.C)===0?(E=!0,7===this.C.length&&oca(this.api.getRootNode(),"ytp-color-party")):(this.C=E,E="awesome".indexOf(this.C)===0));if(!E&&(!this.api.isMutedByEmbedsMutedAutoplay()|| Zyr.includes(p))){var c=this.api.getVideoData(),T,M;t=(T=this.progressBar)==null?void 0:(M=T.C)==null?void 0:M.isEnabled;T=c?c.Y9:[];M=PI?N:V;switch(p){case 80:C&&!l.Ga&&(hD(this.WV,bKv(),"Anterior"),this.api.previousVideo(),E=!0);break;case 78:C&&!l.Ga&&(hD(this.WV,IS(),"Pr\u00f3ximo"),this.api.nextVideo(),E=!0);break;case 74:this.api.CO()&&(this.api.startSeekCsiAction(),this.T?this.api.G("enable_key_press_seek_logging")?(E=uW(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"), JD(this.T,-1,10,E)):JD(this.T,-1,10):hD(this.WV,{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{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),E=!0);break;case 76:this.api.CO()&&(this.api.startSeekCsiAction(),this.T?this.api.G("enable_key_press_seek_logging")?(E=uW(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),JD(this.T,1,10,E)):JD(this.T,1,10):hD(this.WV,{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{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),E=!0);break;case 37:this.api.CO()&&(this.api.startSeekCsiAction(),M?(M=yJy(T,this.api.getCurrentTime()*1E3),M!==-1&&this.T!=null&&(jJv(this.T,-1,T[M].title),this.api.seekTo(T[M].startTime/1E3,void 0,void 0,void 0,53),E=!0)):(this.T?this.api.G("enable_key_press_seek_logging")?(E=uW(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),JD(this.T,-1,5,E)):JD(this.T,-1,5):hD(this.WV,{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{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),E=!0));break;case 39:this.api.CO()&&(this.api.startSeekCsiAction(),M?(M=OML(T,this.api.getCurrentTime()*1E3),M!==-1&&this.T!=null&&(jJv(this.T,1,T[M].title),this.api.seekTo(T[M].startTime/1E3,void 0,void 0,void 0,52),E=!0)):(this.T!=null?this.api.G("enable_key_press_seek_logging")?(E=uW(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),JD(this.T,1,5,E)):JD(this.T,1,5):hD(this.WV,{L:"svg",X:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{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),E=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),sR(this.WV,this.api.getVolume(),!1)):(this.api.mute(),sR(this.WV,0,!0));E=!0;break;case 32:E=this.api.G("web_speedmaster_spacebar_control")?!this.api.K().Ga:this.u6(t);break;case 75:E=this.u6(t);break;case 190:C?l.enableSpeedOptions&&oRY(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E+.25,!0),OD9(this.WV,!1),E=!0):this.api.CO()&&(this.step(1),E=!0);break;case 188:C? l.enableSpeedOptions&&oRY(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E-.25,!0),OD9(this.WV,!0),E=!0):this.api.CO()&&(this.step(-1),E=!0);break;case 70:ip1(this.api)&&(this.api.toggleFullscreen().catch(function(){}),E=!0); break;case 27:t?(this.progressBar.wc(),E=!0):this.Y()&&(E=!0)}if(l.controlsType!=="3")switch(p){case 67:g.RT(this.api.Tk())&&(l=this.api.getOption("captions","track"),this.api.toggleSubtitles(),yFv(this.WV,!l||l&&!l.displayName),E=!0);break;case 79:UR(this,"textOpacity");break;case 87:UR(this,"windowOpacity");break;case 187:case 61:UR(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:UR(this,"fontSizeIncrement",!0,!0)}var J;C||V||N||(p>=48&&p<=57?J=p-48:p>=96&&p<=105&&(J=p-96));J!=null&&this.api.CO()&& (this.api.startSeekCsiAction(),l=this.api.getProgressState(),this.api.seekTo(J/10*(l.seekableEnd-l.seekableStart)+l.seekableStart,void 0,void 0,void 0,81),E=!0);E&&this.YB.Pm()}this.S||this.api.publish("keyboardserviceglobalkeydown",{keyCode:p,shiftKey:C,ctrlKey:V,altKey:N,metaKey:H,key:X,code:d,repeat:a},this.V);return E}; g.h.step=function(p){this.api.CO();if(this.api.getPlayerStateObject().isPaused()){var C=this.api.getVideoData().C;C&&(C=C.video)&&this.api.seekBy(p/(C.fps||30),void 0,void 0,p>0?77:78)}}; g.h.u6=function(p){if(!this.api.K().Ga){var C;var V,N=(C=this.api.getVideoData())==null?void 0:(V=C.getPlayerResponse())==null?void 0:V.playabilityStatus;if(N){var H;C=((H=g.n(N.miniplayer,qvF))==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else C=!1;C&&this.api.Jk("onExpandMiniplayer");p?this.progressBar.lH():(p=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.WV.R1(p),p?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.h.CS=function(){g.d0(this.W);g.Rr.prototype.CS.call(this)};g.m(g.fZ,g.L);g.fZ.prototype.nw=CY(11); g.fZ.prototype.Pr=function(){var p=this.N.K(),C=p.V||this.N.G("web_player_hide_overflow_button_if_empty_menu")&&this.j5.isEmpty();p=g.KI(p)&&g.nT(this.N)&&g.r(this.N.getPlayerStateObject(),128);var V=this.N.getPlayerSize();this.visible=this.N.OE()&&!p&&V.width>=240&&!g.lx(this.N.getVideoData())&&!C&&!this.T&&!this.N.isEmbedsShortsMode();g.Tz(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.N.B6();this.N.logVisibility(this.element,this.visible&&this.Y)}; g.fZ.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.N.logVisibility(this.element,this.visible&&p)}; g.fZ.prototype.CS=function(){g.L.prototype.CS.call(this);g.tk(this.element,"ytp-overflow-button-visible")};g.m(kUQ,g.GC);g.h=kUQ.prototype;g.h.wp=function(p){p=yc(p);g.t2(this.element,p)&&(g.t2(this.T,p)||g.t2(this.closeButton,p)||Cc(this))}; g.h.f4=function(){g.GC.prototype.f4.call(this);this.N.wb(this.element)}; g.h.show=function(){this.C4&&this.N.publish("OVERFLOW_PANEL_OPENED");g.GC.prototype.show.call(this);this.element.setAttribute("aria-modal","true");YUL(this,!0)}; g.h.hide=function(){g.GC.prototype.hide.call(this);this.element.removeAttribute("aria-modal");YUL(this,!1)}; g.h.onFullscreenToggled=function(p){!p&&this.rh()&&Cc(this)}; g.h.isEmpty=function(){return this.actionButtons.length===0}; g.h.focus=function(){for(var p=g.F(this.actionButtons),C=p.next();!C.done;C=p.next())if(C=C.value,C.C4){C.focus();break}};g.m(zfQ,g.L);zfQ.prototype.onClick=function(p){g.Ml(p,this.api)&&this.api.playVideoAt(this.index)};g.m(Rfu,g.GC);g.h=Rfu.prototype;g.h.show=function(){g.GC.prototype.show.call(this);this.T.U(this.api,"videodatachange",this.d$);this.T.U(this.api,"onPlaylistUpdate",this.d$);this.d$()}; g.h.hide=function(){g.GC.prototype.hide.call(this);g.Am(this.T);this.updatePlaylist(null)}; g.h.d$=function(){this.updatePlaylist(this.api.getPlaylist());this.api.K().V&&(this.rV("ytp-playlist-menu-title-name").removeAttribute("href"),this.V&&(this.rY(this.V),this.V=null))}; g.h.yF=function(){var p=this.playlist,C=p.author,V=C?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",N={CURRENT_POSITION:String(p.index+1),PLAYLIST_LENGTH:String(p.getLength())};C&&(N.AUTHOR=C);this.update({title:p.title,subtitle:g.Ks(V,N),playlisturl:this.api.getVideoUrl(!0)});C=p.C;if(C===this.S)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[p.index];else{V=g.F(this.playlistData);for(N=V.next();!N.done;N=V.next())N.value.dispose(); V=p.getLength();this.playlistData=[];for(N=0;N=this.C&&!p.V&&!C.isAd()&&!this.api.isEmbedsShortsMode()}else p=!1;this.visible=p;this.jb(this.visible);g.Tz(this.element,"ytp-search-button-visible",this.visible);g.Tz(this.element,"ytp-show-search-title",!this.api.OE());this.api.logVisibility(this.element,this.visible&&this.Y)}; Ie.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)};g.m(g.bW,g.L);g.h=g.bW.prototype;g.h.Cw=CY(8);g.h.onClick=function(){var p=this,C=this.api.K(),V=this.api.getVideoData(this.api.getPresentingPlayerType()),N=this.api.getPlaylistId();C=this.api.G("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):C.getVideoUrl(V.videoId,N,void 0,!0);if(navigator.share)try{var H=navigator.share({title:V.title,url:C});H instanceof Promise&&H.catch(function(X){Wmy(p,X)})}catch(X){X instanceof Error&&Wmy(this,X)}else this.T.A6(),Cc(this.V,this.element,!1); this.api.logClick(this.element)}; g.h.Pr=function(){var p=this.api.K(),C=this.api.isEmbedsShortsMode();g.Tz(this.element,"ytp-show-share-title",g.KI(p)&&!C);this.T.GW()&&C?(p=(this.api.dV().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.K2(this.element,"right",p+"px")):C&&g.K2(this.element,"right","0px");this.updateValue("icon",{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{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=gRV(this);g.Tz(this.element,"ytp-share-button-visible",this.visible);this.jb(this.visible);this.tooltip.B6();this.api.logVisibility(this.element,gRV(this)&&this.Y)}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; g.h.CS=function(){g.L.prototype.CS.call(this);g.tk(this.element,"ytp-share-button-visible")};g.m(rJV,g.GC);g.h=rJV.prototype;g.h.Fc=function(p){p=yc(p);g.t2(this.W,p)||g.t2(this.closeButton,p)||Cc(this)}; g.h.f4=function(){g.GC.prototype.f4.call(this);this.tooltip.wb(this.element);this.api.logVisibility(this.T,!1);for(var p=g.F(this.V),C=p.next();!C.done;C=p.next())C=C.value,this.api.hasVe(C.element)&&this.api.logVisibility(C.element,!1)}; g.h.show=function(){var p=this.C4;g.GC.prototype.show.call(this);this.Pr();p||this.api.Jk("onSharePanelOpened")}; g.h.Ud=function(){this.C4&&this.Pr()}; g.h.Pr=function(){var p=this;g.Ed(this.element,"ytp-share-panel-loading");g.tk(this.element,"ytp-share-panel-fail");var C=this.api.getVideoData(),V=this.api.getPlaylistId()&&this.S.checked;C.getSharePanelCommand&&a4(this.api.xN(),C.getSharePanelCommand,{includeListId:V}).then(function(N){p.fS()||(g.tk(p.element,"ytp-share-panel-loading"),GUj(p,N))}); C=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",C);this.updateValue("linkText",C);this.updateValue("shareLinkWithUrl",g.Ks("Compartilhar o link $URL",{URL:C}));v3(this.T);this.api.logVisibility(this.T,!0)}; g.h.onFullscreenToggled=function(p){!p&&this.rh()&&Cc(this)}; g.h.focus=function(){this.T.focus()}; g.h.CS=function(){g.GC.prototype.CS.call(this);BKu(this)};g.m(jPu,PO);g.h=jPu.prototype;g.h.CS=function(){d9Y(this);PO.prototype.CS.call(this)}; g.h.SN=function(p){p.target!==this.dismissButton.element&&(this.dO(!1),this.N.Jk("innertubeCommand",this.onClickCommand))}; g.h.Fj=function(){this.R$=!0;this.dO(!0);this.hd()}; g.h.H4S=function(p){this.J=p;this.hd()}; g.h.onVideoDataChange=function(p,C){if(p=!!C.videoId&&this.videoId!==C.videoId)this.videoId=C.videoId,this.R$=!1,this.sY=!0,this.Z=this.b_=!1,d9Y(this),XLy(this,!1),this.C=this.T=!1,oe(this),VjY(this);if(p||!C.videoId)this.W=this.S=!1;var V,N;if(C==null?0:(V=C.getPlayerResponse())==null?0:(N=V.videoDetails)==null?0:N.isLiveContent)this.JE(!1);else{var H,X,d;C=g.n((H=C.getWatchNextResponse())==null?void 0:(X=H.playerOverlays)==null?void 0:(d=X.playerOverlayRenderer)==null?void 0:d.productsInVideoOverlayRenderer, Sv5);this.J=this.enabled=!1;if(C){if(H=C==null?void 0:C.featuredProductsEntityKey){X=g.Xx.getState().entities;var a;if((a=Mg(X,"featuredProductsEntity",H))==null?0:a.productsData){this.JE(!1);return}}this.enabled=!0;if(!this.S){var E;a=(E=C.badgeInteractionLogging)==null?void 0:E.trackingParams;(this.S=!!a)&&this.N.setTrackingParams(this.badge.element,a||null)}if(!this.W){var l;if(this.W=!((l=C.dismissButton)==null||!l.trackingParams)){var t;this.N.setTrackingParams(this.dismissButton.element,((t= C.dismissButton)==null?void 0:t.trackingParams)||null)}}C.isContentForward&&(E=C.productsData,XLy(this,!0),VjY(this),E=HBS(this,E),l=[],E.length>0&&l.push(E[0]),E.length>1&&(t=new g.L({L:"div",B:"ytp-suggested-action-more-products-icon"}),g.R(this,t),l.push(t),l.push.apply(l,g.K(E.slice(1)))),this.D=new g.L({L:"div",j:l,B:"ytp-suggested-action-content-forward-container"}),g.R(this,this.D),this.Wr.element.append(this.D.element));this.text=g.uq(C.text);var c;if(E=(c=C.dismissButton)==null?void 0:c.a11yLabel)this.Y_= g.uq(E);this.onClickCommand=C.onClickCommand;this.timing=C.timing;this.d7()}dby(this);et(this);this.hd()}}; g.h.Xb=function(){return!this.J&&this.enabled&&!this.R$&&!this.N.OE()&&!this.kM&&(this.Z||this.sY)}; g.h.Xl=function(p){PO.prototype.Xl.call(this,p);if(this.T||this.C)this.timing&&AD(this.timing.preview)&&(this.T=!1,oe(this),this.C=!1,oe(this),this.N.qt("shopping_overlay_preview_collapsed"),this.N.qt("shopping_overlay_preview_expanded"),p=kX(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),AD(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.N.qt("shopping_overlay_expanded"),p.end=this.timing.expanded.endSec*1E3),this.N.d7([p])), this.b_=!0,et(this);oe(this)}; g.h.JE=function(p){(this.Z=p)?(n$(this),et(this,!1)):(d9Y(this),this.Ga.start());this.hd()}; g.h.d7=function(p){var C=this.timing;p=(p===void 0?0:p)+this.N.getCurrentTime();var V=[],N=C.visible,H=C.preview;C=C.expanded;AD(N)&&(pLL(N,p),V.push(kX(N.startSec,N.endSec,"shopping_overlay_visible")));AD(H)&&(pLL(H,p),N=H.startSec+1,V.push(kX(H.startSec,N,"shopping_overlay_preview_collapsed")),V.push(kX(N,H.endSec,"shopping_overlay_preview_expanded")));AD(C)&&(pLL(C,p),V.push(kX(C.startSec,C.endSec,"shopping_overlay_expanded")));this.N.d7(V)};g.m(sPH,g.L); sPH.prototype.Pr=function(){var p=this.api.K();this.jb(g.KI(p)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.C4);var C=this.api.getVideoData(),V=!1;this.api.getPresentingPlayerType()===2?V=!!C.videoId&&!!C.isListed&&!!C.author&&!!C.kM&&!!C.profilePicture:g.KI(p)&&(V=!!C.videoId&&!!C.kM&&!!C.profilePicture&&!g.lx(C)&&!p.V&&!(p.J&&this.api.getPlayerSize().width<200));var N=C.profilePicture;p=g.KI(p)?C.expandedTitle:C.author;N=N===void 0? "":N;p=p===void 0?"":p;V?(this.C!==N&&(this.T.style.backgroundImage="url("+N+")",this.C=N),this.updateValue("channelLogoLabel",g.Ks("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:p})),g.Ed(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.tk(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,V&&this.Y);this.api.logVisibility(this.channelName,V&&this.Y);this.subscribeButton&&(this.subscribeButton.channelId=C.eI);this.updateValue("expandedTitle",C.expandedTitle)};g.m(xX,g.GC);xX.prototype.show=function(){g.GC.prototype.show.call(this);this.T.start()}; xX.prototype.hide=function(){g.GC.prototype.hide.call(this);this.T.stop()}; xX.prototype.mL=function(p,C){p==="dataloaded"&&((this.I5=C.I5,this.hE=C.hE,isNaN(this.I5)||isNaN(this.hE))?this.V&&(this.N.qt("intro"),this.N.removeEventListener(g.Ez("intro"),this.D),this.N.removeEventListener(g.lG("intro"),this.W),this.N.removeEventListener("onShowControls",this.S),this.hide(),this.V=!1):(this.N.addEventListener(g.Ez("intro"),this.D),this.N.addEventListener(g.lG("intro"),this.W),this.N.addEventListener("onShowControls",this.S),p=new g.sz(this.I5,this.hE,{priority:9,namespace:"intro"}), this.N.d7([p]),this.V=!0))};g.m(YX,g.L);YX.prototype.onClick=function(){this.N.fT()}; YX.prototype.Pr=function(){var p=!0;g.KI(this.N.K())&&(p=p&&this.N.dV().getPlayerSize().width>=480);this.jb(p);this.updateValue("icon",this.N.gi()?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{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"}}]}: {L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.m(EOe,g.L);EOe.prototype.CS=function(){this.T=null;g.L.prototype.CS.call(this)};g.m(zI,g.L);zI.prototype.onClick=function(){this.N.Jk("innertubeCommand",this.C)}; zI.prototype.J=function(p){p!==this.W&&(this.update({title:p,ariaLabel:p}),this.W=p);p?this.show():this.hide()}; zI.prototype.D=function(){this.T.disabled=this.C==null;g.Tz(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.m6()};g.m(Re,zI);Re.prototype.onClickCommand=function(p){g.n(p,H_)&&this.m6()}; Re.prototype.updateVideoData=function(p,C){var V,N,H;p=g.n((V=C.getWatchNextResponse())==null?void 0:(N=V.playerOverlays)==null?void 0:(H=N.playerOverlayRenderer)==null?void 0:H.decoratedPlayerBarRenderer,v7);var X;this.C=(X=g.n(p==null?void 0:p.playerBarActionButton,g.z$))==null?void 0:X.command;zI.prototype.D.call(this)}; Re.prototype.m6=function(){var p="",C=this.S.T,V,N=((V=this.N.getLoopRange())==null?void 0:V.type)==="clips";if(C.length>1&&!N){p=this.N.getProgressState().current*1E3;V=KZ(C,p);p=C[V].title||"Cap\u00edtulos";if(V!==this.currentIndex||this.V)this.N.Jk("innertubeCommand",C[V].onActiveCommand),this.currentIndex=V;this.V=!1}else this.V=!0;zI.prototype.J.call(this,p)};g.m(nZ,g.L);nZ.prototype.W=function(p){g.r(p.state,32)?tja(this,this.api.C$()):this.C4&&(g.r(p.state,16)||g.r(p.state,1))||this.T.hide()}; nZ.prototype.Nn=function(){var p=this.api.getPlayerStateObject();(g.r(p,32)||g.r(p,16))&&cYs(this)}; nZ.prototype.D=function(){this.V=NaN;cYs(this)}; nZ.prototype.hide=function(){this.C&&tja(this,null);g.L.prototype.hide.call(this)};g.m(T4H,g.L);g.h=T4H.prototype;g.h.onClick=function(){var p=this;if(this.N.K().Hc||this.N.K().J){this.N.logClick(this.element);try{this.N.toggleFullscreen().catch(function(C){p.z1(C)})}catch(C){this.z1(C)}}else Cc(this.message,this.element,!0)}; g.h.z1=function(p){String(p).includes("fullscreen error")?g.eG(p):g.nm(p);this.Hy()}; g.h.Hy=function(){this.disable();this.message.er(this.element,!0)}; g.h.V2=function(){KK()===this.N.getRootNode()?this.V.start():(this.V.stop(),this.message&&this.message.hide())}; g.h.b4=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var p=window.screen.width*.9,C=window.screen.height*.9,V=Math.max(window.outerWidth,window.innerWidth),N=Math.max(window.outerHeight,window.innerHeight);if(V>N!==p>C){var H=V;V=N;N=H}p>V&&C>N&&this.Hy()}}; g.h.disable=function(){var p=this;if(!this.message){var C=(vw(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Tela cheia indispon\u00edvel. $BEGIN_LINKSaiba mais$END_LINK":"Seu navegador n\u00e3o tem suporte para tela cheia. $BEGIN_LINKSaiba mais$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.GC(this.N,{L:"div",i_:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},j:[C[0],{L:"a",X:{href:"https://support.google.com/youtube/answer/6276924", target:this.N.K().Z},Ak:C[2]},C[4]]},100,!0);this.message.hide();g.R(this,this.message);this.message.subscribe("show",function(V){p.C.Nu(p.message,V)}); g.LT(this.N,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}}; g.h.Pr=function(){var p=ip1(this.N),C=this.N.K().J&&this.N.getPlayerSize().width<250;this.jb(p&&!C);var V;((V=this.N.K())==null?0:V.G("embeds_use_parent_visibility_in_ve_logging"))?this.N.logVisibility(this.element,this.C4&&this.Y):this.N.logVisibility(this.element,this.C4)}; g.h.ze=function(p){if(p){var C={L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"g",B:"ytp-fullscreen-button-corner-2",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-3",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-0",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{L:"g", B:"ytp-fullscreen-button-corner-1",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};p=g.kj(this.N,"Sair da tela inteira","f");this.update({"data-title-no-tooltip":"Sair da tela inteira"});document.activeElement===this.element&&this.N.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(V){g.eG(V)})}else C={L:"svg", X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"g",B:"ytp-fullscreen-button-corner-0",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-1",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-2",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-3", j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},p=g.kj(this.N,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"});p=this.message?null:p;this.update({title:p,icon:C});this.C.aI().B6()}; g.h.CS=function(){this.message||((0,this.T)(),this.T=null);g.L.prototype.CS.call(this)}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);var C;((C=this.N.K())==null?0:C.G("embeds_use_parent_visibility_in_ve_logging"))&&this.N.logVisibility(this.element,this.C4&&p)};g.m(e4,g.L);e4.prototype.onClick=function(){this.N.logClick(this.element);this.N.seekBy(this.T,!0);var p=this.T>0?1:-1,C=Math.abs(this.T),V=this.N.Cx().O5;V&&JD(V,p,C);this.C.isActive()?this.V=!0:(p=["ytp-jump-spin"],this.T<0&&p.push("backwards"),this.element.classList.add.apply(this.element.classList,g.K(p)),g.HF(this.C))};g.m(Pz,zI);Pz.prototype.onClickCommand=function(p){g.n(p,vT5)&&this.m6()}; Pz.prototype.updateVideoData=function(){var p,C;this.C=(p=JYV(this))==null?void 0:(C=p.onTap)==null?void 0:C.innertubeCommand;zI.prototype.D.call(this)}; Pz.prototype.m6=function(){var p="",C=this.S.D,V,N=(V=JYV(this))==null?void 0:V.headerTitle;V=N?g.uq(N):"";var H;N=((H=this.N.getLoopRange())==null?void 0:H.type)==="clips";C.length>1&&!N&&(p=this.N.getProgressState().current*1E3,H=f4H(C,p),p=H!=null?C[H].title:V,H!=null&&H!==this.currentIndex&&(this.N.Jk("innertubeCommand",C[H].onActiveCommand),this.currentIndex=H));zI.prototype.J.call(this,p)};g.m(wu,g.L);wu.prototype.onClick=function(){this.N.Jk("onCollapseMiniplayer");this.N.logClick(this.element)}; wu.prototype.Pr=function(){this.visible=!this.N.isFullscreen();this.jb(this.visible);this.N.logVisibility(this.element,this.visible&&this.Y)}; wu.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.N.logVisibility(this.element,this.visible&&p)};g.m(m99,g.L);g.h=m99.prototype;g.h.Z2=function(p){this.visible=p.width>=300||this.Sa;this.jb(this.visible);this.N.logVisibility(this.element,this.visible&&this.Y)}; g.h.SRS=function(){this.N.K().Y_?this.N.isMuted()?this.N.unMute():this.N.mute():Cc(this.message,this.element,!0);this.N.logClick(this.element)}; g.h.onVolumeChange=function(p){this.setVolume(p.volume,p.muted)}; g.h.setVolume=function(p,C){var V=this,N=C?0:p/100,H=this.N.K();p=N===0?1:p>50?1:0;if(this.W!==p){var X=this.b_;isNaN(X)?S7L(this,p):PhL(this.Vn,function(a){S7L(V,X+(V.W-X)*a)},250); this.W=p}N=N===0?1:0;if(this.S!==N){var d=this.Z;isNaN(d)?K8S(this,N):PhL(this.a$,function(a){K8S(V,d+(V.S-d)*a)},250); this.S=N}H.Y_&&(H=g.kj(this.N,"Sem \u00e1udio","m"),N=g.kj(this.N,"Reativar o som","m"),this.updateValue("title",C?N:H),this.update({"data-title-no-tooltip":C?"Reativar o som":"Sem \u00e1udio"}),this.tooltip.B6())}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);this.N.logVisibility(this.element,this.visible&&p)}; var vOH=["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"],F8a=["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.m(g.$X,g.L);g.h=g.$X.prototype;g.h.onStateChange=function(p){this.UZ(p.state);var C;((C=this.N.K())==null?0:C.G("embeds_use_parent_visibility_in_ve_logging"))&&this.N.logVisibility(this.element,this.C4&&this.Y)}; g.h.UZ=function(p){var C=g.ud(this.N.getVideoData()),V=!1;p.isOrWillBePlaying()?p=C?4:2:g.r(p,2)?(p=3,V=C):p=1;this.element.disabled=V;if(this.T!==p){C=null;switch(p){case 2:C=g.kj(this.N,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:C="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:C=g.kj(this.N,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:C="Interromper reprodu\u00e7\u00e3o ao vivo",this.update({"data-title-no-tooltip":"Interromper reprodu\u00e7\u00e3o ao vivo"})}p=== 3?this.update({title:C,icon:D9S(p)}):(this.update({title:C}),(C=D9S(p))&&this.T&&this.T!==3?$bv(this.transition,this.element,C):this.updateValue("icon",C));this.tooltip.B6();this.T=p}}; g.h.onVideoDataChange=function(){g.Tz(this.element,"ytp-play-button-playlist",g.nT(this.N))}; g.h.u6=function(p){this.N.logClick(this.element);if(this.N.getPlayerStateObject().isOrWillBePlaying())this.N.pauseVideo();else{if(this.N.isMinimized()&&this.N.getPlayerStateObject().isCued()){var C={},V;if((V=this.N.getVideoData())==null?0:V.Y)C.cttAuthInfo={token:this.N.getVideoData().Y,videoId:this.N.getVideoData().videoId};XA("direct_playback",C);this.N.W6().timerName="direct_playback"}else this.T===3&&fn(this.N.W6());this.N.playVideo()}this.N.isMinimized()&&(p==null?void 0:p.type)==="click"&& this.element.blur()}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);var C;((C=this.N.K())==null?0:C.G("embeds_use_parent_visibility_in_ve_logging"))&&this.N.logVisibility(this.element,this.C4&&p)};g.m(g.LZ,g.L);g.h=g.LZ.prototype;g.h.onVideoDataChange=function(){ZBL(this);this.S&&(this.rY(this.S),this.S=null);this.videoData=this.N.getVideoData(1);if(this.playlist=this.N.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.S=this.U(this.N,"progresssync",this.qx);this.V=U9y(this);u8V(this);this.jR(this.N.dV().getPlayerSize())}; g.h.jR=function(p){p=p===void 0?this.N.dV().getPlayerSize():p;var C,V=((C=this.N.getLoopRange())==null?void 0:C.type)==="clips";p=(g.nT(this.N)||this.T&&g.gb(this.N)&&!this.N.G("web_hide_next_button")||f$1(this))&&!V&&(this.T||p.width>=400);this.jb(p);this.N.logVisibility(this.element,p)}; g.h.onClick=function(p){this.N.logClick(this.element);var C=!0;this.D?C=g.Ml(p,this.N):p.preventDefault();C&&(this.T&&this.N.getPresentingPlayerType()===5?this.N.publish("ytoprerollinternstitialnext"):this.T?(fn(this.N.W6()),this.N.publish("playlistnextbuttonclicked",this.element),this.N.nextVideo(!0)):this.V?this.N.seekTo(0):(fn(this.N.W6()),this.N.publish("playlistprevbuttonclicked",this.element),this.N.previousVideo(!0)))}; g.h.qx=function(){var p=U9y(this);p!==this.V&&(this.V=p,u8V(this))}; g.h.CS=function(){this.C&&(this.C(),this.C=null);ZBL(this);g.L.prototype.CS.call(this)};g.m(yYj,g.L);g.h=yYj.prototype;g.h.Mx=function(p){this.FW(p.pageX);this.XW(p.pageX+p.deltaX);q7V(this)}; g.h.FW=function(p){this.a$=p-this.vr}; g.h.XW=function(p){p-=this.vr;!isNaN(this.a$)&&this.thumbnails.length>0&&(this.Z=p-this.a$,this.thumbnails.length>0&&this.Z!==0&&(this.V=this.J+this.Z,p=k_Q(this,this.V),this.V<=this.T/2&&this.V>=oO9(this)?(this.api.seekTo(p,!1,void 0,void 0,25),g.K2(this.sY,"transform","translateX("+(this.V-this.T/2)+"px)"),OBX(this,p)):this.V=this.J))}; g.h.cT=function(){this.b_&&(this.b_.sW=!0);var p=(0,g.Ip)()-this.Y_<300;if(Math.abs(this.Z)<5&&!p){this.Y_=(0,g.Ip)();p=this.a$+this.Z;var C=this.T/2-p;this.FW(p);this.XW(p+C);q7V(this);this.api.logClick(this.W)}q7V(this)}; g.h.M$=function(){gu(this,this.api.getCurrentTime())}; g.h.play=function(p){this.api.seekTo(k_Q(this,this.V),void 0,void 0,void 0,26);this.api.playVideo();p&&this.api.logClick(this.playButton)}; g.h.onExit=function(p){this.api.seekTo(this.Ga,void 0,void 0,void 0,63);this.api.playVideo();p&&this.api.logClick(this.dismissButton)}; g.h.OR=function(p,C){this.vr=p;this.T=C;gu(this,this.api.getCurrentTime())}; g.h.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ga=this.api.getCurrentTime(),OBX(this,this.Ga),g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Wr=this.U(this.element,"wheel",this.Mx),this.logVisibility(this.isEnabled))}; g.h.disable=function(){this.isEnabled=!1;this.hide();g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Wr&&this.rY(this.Wr);this.logVisibility(this.isEnabled)}; g.h.reset=function(){this.disable();this.S=[];this.Sa=!1}; g.h.logVisibility=function(p){this.api.logVisibility(this.element,p);this.api.logVisibility(this.W,p);this.api.logVisibility(this.dismissButton,p);this.api.logVisibility(this.playButton,p)}; g.h.CS=function(){for(;this.C.length;){var p=void 0;(p=this.C.pop())==null||p.dispose()}g.L.prototype.CS.call(this)}; g.m(I$S,g.L);g.m(bB9,g.L);g.m(x9L,g.L);g.m(Wz,g.L);Wz.prototype.V$=function(p){return p==="PLAY_PROGRESS"?this.D:p==="LOAD_PROGRESS"?this.W:p==="LIVE_BUFFER"?this.S:this.C};RGa.prototype.update=function(p,C,V,N){V=V===void 0?0:V;this.width=C;this.S=V;this.T=C-V-(N===void 0?0:N);this.position=g.J9(p,V,V+this.T);this.V=this.position-V;this.C=this.V/this.T};g.m(nOX,g.L);g.m(g.Bz,g.Sp);g.h=g.Bz.prototype; g.h.yB=function(){var p=!1,C=this.api.getVideoData();if(!C)return p;this.api.qt("timedMarkerCueRange");wLa(this);for(var V=g.F(C.Qn),N=V.next();!N.done;N=V.next()){N=N.value;var H=void 0,X=(H=this.Ga[N])==null?void 0:H.markerType;H=void 0;var d=(H=this.Ga[N])==null?void 0:H.markers;if(!d)break;if(X==="MARKER_TYPE_TIMESTAMPS"){p=g.F(d);for(X=p.next();!X.done;X=p.next()){H=X.value;X=new nOX;d=void 0;X.title=((d=H.title)==null?void 0:d.simpleText)||"";X.timeRangeStartMillis=Number(H.startMillis);X.T= Number(H.durationMillis);var a=d=void 0;X.onActiveCommand=(a=(d=H.onActive)==null?void 0:d.innertubeCommand)!=null?a:void 0;rY1(this,X)}B4a(this,this.D);p=this.D;X=this.iW;H=[];d=null;for(a=0;aE&&(d.end=E);E=qU9(E,E+t);H.push(E);d=E;X[E.id]=p[a].onActiveCommand}}this.api.d7(H);this.hE=this.Ga[N];p=!0}else if(X==="MARKER_TYPE_HEATMAP"){N=this.Ga[N];t=l=H=E=a=d=void 0;if(N&& N.markers){X=(H=(t=N.markersMetadata)==null?void 0:(l=t.heatmapMetadata)==null?void 0:l.minHeightDp)!=null?H:0;H=(d=(E=N.markersMetadata)==null?void 0:(a=E.heatmapMetadata)==null?void 0:a.maxHeightDp)!=null?d:60;d=this.T.length;a=null;for(E=0;E=t&&J<=c&&l.push(M)}H>0&&(this.b_.style.height= H+"px");t=this.W[E];c=l;M=X;var S=H,D=E===0;D=D===void 0?!1:D;Y7s(t,S);T=c;J=t.T;D=D===void 0?!1:D;var Z=1E3/T.length,f=[];f.push({x:0,y:100});for(var q=0;q0&&(a=l[l.length-1])}g.GI(this)}H= void 0;X=[];if(N=(H=N.markersDecoration)==null?void 0:H.timedMarkerDecorations)for(N=g.F(N),H=N.next();!H.done;H=N.next())H=H.value,E=a=d=void 0,X.push({visibleTimeRangeStartMillis:(d=H.visibleTimeRangeStartMillis)!=null?d:-1,visibleTimeRangeEndMillis:(a=H.visibleTimeRangeEndMillis)!=null?a:-1,decorationTimeMillis:(E=H.decorationTimeMillis)!=null?E:NaN,label:H.label?g.uq(H.label):""});N=X;this.heatMarkersDecorations=N}}C.Di=this.D;g.Tz(this.element,"ytp-timed-markers-enabled",p);return p}; g.h.OR=function(){g.GI(this);jD(this);B4a(this,this.D);if(this.C){var p=g.qK(this.element).x||0;this.C.OR(p,this.J)}}; g.h.onClickCommand=function(p){if(p=g.n(p,H_)){var C=p.key;p.isVisible&&C&&jn1(this,C)}}; g.h.H1$=function(p){this.api.Jk("innertubeCommand",this.iW[p.id])}; g.h.m6=function(){jD(this);var p=this.api.getCurrentTime();(pthis.clipEnd)&&this.XI()}; g.h.Zt=function(p){if(!p.defaultPrevented){var C=!1;switch(p.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);C=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);C=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);C=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);C=!0;break;case 38:this.api.G("enable_key_press_seek_logging")&&dR(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);C=!0;break;case 40:this.api.G("enable_key_press_seek_logging")&&dR(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),C=!0}C&&p.preventDefault()}}; g.h.mL=function(p,C){this.updateVideoData(C,p==="newdata")}; g.h.L_=function(){this.mL("newdata",this.api.getVideoData())}; g.h.updateVideoData=function(p,C){C=C===void 0?!1:C;var V=!!p&&p.GN();if(V&&(E5(p)||d2e(this)?this.f9=!1:this.f9=p.allowLiveDvr,g.Tz(this.api.getRootNode(),"ytp-enable-live-buffer",!(p==null||!E5(p))),this.api.G("enable_custom_playhead_parsing"))){var N,H,X,d=g.n((N=p.getWatchNextResponse())==null?void 0:(H=N.playerOverlays)==null?void 0:(X=H.playerOverlayRenderer)==null?void 0:X.decoratedPlayerBarRenderer,v7);if(d==null?0:d.progressColor)for(N=0;N0;)this.W.pop().dispose();this.heatMarkersDecorations=[];this.X$={};var c;(c=this.C)==null||c.reset();lh(this);g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-exp",ru(this))}else this.XI();this.l8()}if(p){var T;c=((T=this.Sb)==null?void 0:T.type)==="clips";if(T=!p.isLivePlayback){T=this.api.getVideoData();C=g.Ft(T);V=L8H(T);var M;T=C!=null||V!=null&&V.length>0||((M= T.Rj)==null?void 0:M.length)>0}if(T&&!c){M=this.api.getVideoData();c=g.Ft(M);T=!1;if(c==null?0:c.markersMap){T=this.api.getVideoData();var J;T.IX=((J=c.visibleOnLoad)==null?void 0:J.key)||T.IX;J=g.F(c.markersMap);for(c=J.next();!c.done;c=J.next())c=c.value,c.key&&c.value&&(this.X$[c.key]=c.value,c.value.onChapterRepeat&&(T.Tt=c.value.onChapterRepeat));T.IX!=null&&jn1(this,T.IX);T=!0}var S;if(((S=M.Rj)==null?void 0:S.length)>0){S=g.Xx.getState().entities;J=g.F(M.Rj);for(c=J.next();!c.done;c=J.next())if(c= c.value,V=void 0,C=(V=Mg(S,"macroMarkersListEntity",c))==null?void 0:V.markersList,a=V=void 0,((V=C)==null?void 0:V.markerType)==="MARKER_TYPE_TIMESTAMPS"||((a=C)==null?void 0:a.markerType)==="MARKER_TYPE_HEATMAP")this.Ga[c]=C;T=this.yB()||T}!T&&(S=L8H(M))&&(W81(this,S),M.Y9=this.T,gOu(this));i99(this,null);p.i$&&this.W.length===0&&(p=p.i$,S=p.key,p.isVisible&&S&&jn1(this,S))}else eG9(this),wLa(this)}jD(this)}; g.h.NH=function(p){this.Z&&!g.r(p.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Z.cancel();var C;((C=this.C)==null?0:C.isEnabled)&&g.r(p.state,8)&&this.api.pauseVideo();this.api.G("web_always_show_scrubber")&&(p=this.api.getPresentingPlayerType()===2||!this.api.CO()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0,g.Tz(this.cV,"ytp-hide-scrubber-button",p))}; g.h.yc=function(p){var C=!!this.Sb!==!!p,V=this.Sb;this.Sb=p;i99(this,V);(p==null?void 0:p.type)!=="clips"&&p||(p?(this.updateValue("clipstarticon",OKY()),this.updateValue("clipendicon",OKY()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",F_a()),this.updateValue("clipendicon",vl1()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),C&&(this.updateVideoData(this.api.getVideoData(), !0),g.GI(this)),ih(this));Nb(this,this.a$,this.Qn)}; g.h.R6_=function(p,C,V){var N=g.qK(this.element),H=Cv(this).T,X=V?V.getAttribute("data-tooltip"):void 0,d=V?V.getAttribute("data-position"):void 0,a=V?V.getAttribute("data-offset-y"):void 0;a=a?Number(a):0;d&&(p=wk(this.V,Number(V.getAttribute("data-position")),0)*H+g.qK(this.progressBar).x);this.KS.x=p-N.x;this.KS.y=C-N.y;p=Cv(this);V=Xp(this,p);C=0;var E;if((E=this.api.getVideoData())==null?0:E5(E))(E=this.api.getProgressState().seekableEnd)&&V>E&&(V=E,p.position=wk(this.V,E)*Cv(this).T),C=this.V.C; d2e(this)&&(C=this.V.C);E=X||g.A7(this.f9?V-this.V.T:V-C);C=p.position+this.XT;V-=this.api.yZ();var l;if((l=this.C)==null||!l.isEnabled)if(this.api.C$()){if(this.T.length>1){l=H$(this,this.KS.x,!0);if(!this.Sb)for(N=0;N1)for(N=0;N0)for(l=this.KS.x,N=g.F(this.D),H=N.next();!H.done;H=N.next())H=H.value,d=pv(this,H.timeRangeStartMillis/ (this.V.T*1E3),Cv(this)),g.Tz(H.element,"ytp-timed-marker-hover",d<=l&&d+6>=l);N=this.tooltip.scale;a=(isNaN(a)?0:a)-45*N;this.api.G("web_key_moments_markers")?this.hE?(l=f4H(this.D,V*1E3),l=l!=null?this.D[l].title:""):(l=KZ(this.T,V*1E3),l=this.T[l].title):(l=KZ(this.T,V*1E3),l=this.T[l].title);l||(a+=16*N);this.tooltip.scale===.6&&(this.api.G("web_cairo_modern_miniplayer")?(a=this.api.dV().getPlayerSize().height-225,a=l?a+110:a+110+16,this.api.G("web_cairo_modern_miniplayer_inset_progress_bar")&& (a-=12)):a=l?110:126);N=KZ(this.T,V*1E3);this.sY=hdj(this,V,N)?N:hdj(this,V,N+1)?N+1:-1;g.Tz(this.api.getRootNode(),"ytp-progress-bar-snap",this.sY!==-1&&this.T.length>1);N=!1;H=g.F(this.heatMarkersDecorations);for(d=H.next();!d.done;d=H.next()){d=d.value;var t=V*1E3;t>=d.visibleTimeRangeStartMillis&&t<=d.visibleTimeRangeEndMillis&&(l=d.label,E=g.A7(d.decorationTimeMillis/1E3),N=!0)}this.QZ!==N&&(this.QZ=N,this.api.logVisibility(this.I6,this.QZ));g.Tz(this.api.getRootNode(),"ytp-progress-bar-decoration", N);N=160*this.tooltip.scale*2;H=l.length*(this.S?8.55:5.7);H=H<=N?H:N;d=H<160*this.tooltip.scale;N=3;!d&&H/2>p.position&&(N=1);!d&&H/2>this.J-p.position&&(N=2);this.api.K().J&&(a-=10);this.W.length&&this.W[0].GN&&(a-=14*(this.S?2:1),this.Wr||(this.Wr=!0,this.api.logVisibility(this.b_,this.Wr)));var c;if(ru(this)&&(((c=this.C)==null?0:c.isEnabled)||this.R$>0)){var T;a-=((T=this.C)==null?0:T.isEnabled)?sa(this):this.R$}c=void 0;ru(this)&&(c="Puxe para cima para uma busca precisa",this.Sa||(this.Sa= !0,this.api.logVisibility(this.RN,this.Sa)));this.tooltip.eG(C,V,E,!!X,a,l,N,c)}else this.tooltip.eG(C,V,E,!!X,a);g.Ed(this.api.getRootNode(),"ytp-progress-bar-hover");XMQ(this)}; g.h.Pxx=function(){this.l8();g.tk(this.api.getRootNode(),"ytp-progress-bar-hover");this.Wr&&(this.Wr=!1,this.api.logVisibility(this.b_,this.Wr));this.Sa&&(this.Sa=!1,this.api.logVisibility(this.RN,this.Sa))}; g.h.pcV=function(p,C){ru(this)&&this.C&&(this.C.Sa?gu(this.C,this.api.getCurrentTime()):AY9(this.C),this.C.show(),g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.C.isEnabled));this.kt&&(this.kt.dispose(),this.kt=null);this.FT=C;this.FO=this.api.getCurrentTime();this.T.length>1&&this.sY!==-1?this.api.seekTo(this.T[this.sY].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Xp(this,Cv(this)),!1,void 0,void 0,7);g.Ed(this.element,"ytp-drag");(this.W1=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.h.YRY=function(){if(ru(this)&&this.C){var p=sa(this);this.R$>=p*.5?(this.C.enable(),gu(this.C,this.api.getCurrentTime()),M$v(this,p)):lh(this)}if(g.r(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var C;if((C=this.C)==null?0:C.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.sY!==-1)this.api.G("html5_enable_progress_bar_slide_seek_logging")&&dR(this,this.FO,this.T[this.sY].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.sY].startTime/1E3,void 0,void 0,void 0,7);else{p=Xp(this,Cv(this));this.api.G("html5_enable_progress_bar_slide_seek_logging")&&dR(this,this.FO,p,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(p,void 0,void 0,void 0,7);C=g.F(this.heatMarkersDecorations);for(var V=C.next();!V.done;V=C.next())V=V.value,p*1E3>=V.visibleTimeRangeStartMillis&&p*1E3<=V.visibleTimeRangeEndMillis&& this.api.logClick(this.I6)}g.tk(this.element,"ytp-drag");this.W1&&!g.r(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.h.DWa=function(p,C){p=Cv(this);p=Xp(this,p);this.api.seekTo(p,!1,void 0,void 0,7);var V;ru(this)&&((V=this.C)==null?0:V.Sa)&&(gu(this.C,p),this.C.isEnabled||(this.R$=g.J9(this.FT-C-10,0,sa(this)),M$v(this,this.R$)))}; g.h.l8=function(){this.tooltip.Mk()}; g.h.s3=function(){this.Sb||(this.updateValue("clipstarticon",m5L()),this.updateValue("clipendicon",m5L()),g.Ed(this.element,"ytp-clip-hover"))}; g.h.xf=function(){this.Sb||(this.updateValue("clipstarticon",F_a()),this.updateValue("clipendicon",vl1()),g.tk(this.element,"ytp-clip-hover"))}; g.h.XI=function(){this.clipStart=0;this.clipEnd=Infinity;ih(this);Nb(this,this.a$,this.Qn)}; g.h.uTk=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(C=C.value,C.visible){var V=C.getId();if(!this.vr[V]){var N=g.iK("DIV");C.tooltip&&N.setAttribute("data-tooltip",C.tooltip);this.vr[V]=C;this.Hc[V]=N;g.sd(N,C.style);snu(this,V);this.api.K().G("disable_ad_markers_on_content_progress_bar")||this.T[0].V.appendChild(N)}}else T5L(this,C)}; g.h.B7a=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())T5L(this,C.value)}; g.h.wc=function(p){this.C&&(this.C.onExit(p!=null),lh(this))}; g.h.lH=function(p){this.C&&(this.C.play(p!=null),lh(this))}; g.h.mn$=function(){JsL(this,this.api.CO())}; g.h.CS=function(){JsL(this,!1);g.Sp.prototype.CS.call(this)};g.m(to,g.L);to.prototype.isActive=function(){return!!this.N.getOption("remote","casting")}; to.prototype.Pr=function(){var p=!1;this.N.getOptions().includes("remote")&&(p=this.N.getOption("remote","receivers").length>1);this.jb(p&&this.N.dV().getPlayerSize().width>=400);this.N.logVisibility(this.element,this.C4);var C=1;p&&this.isActive()&&(C=2);if(this.T!==C){this.T=C;switch(C){case 1:this.updateValue("icon",{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.Jm9())}g.Tz(this.element,"ytp-remote-button-active",this.isActive())}}; to.prototype.C=function(){if(this.N.getOption("remote","quickCast"))this.N.setOption("remote","quickCast",!0);else{var p=this.xM,C=this.element;if(p.rh())p.f4();else{p.initialize();a:{var V=g.F(p.Zd.items);for(var N=V.next();!N.done;N=V.next())if(N=N.value,N.priority===1){V=N;break a}V=null}V&&(V.open(),p.er(C));p.er(C)}}this.N.logClick(this.element)};g.m(c$,g.L);c$.prototype.T=function(p){var C=this.N.K(),V=400;this.N.G("web_player_small_hbp_settings_menu")&&C.Y?V=300:C.J&&(V=200);p=this.C&&p.width>=V;this.jb(p);this.N.G("embeds_use_parent_visibility_in_ve_logging")?this.N.logVisibility(this.element,p&&this.Y):this.N.logVisibility(this.element,p)}; c$.prototype.V=function(){if(this.xM.C4)this.xM.f4();else{var p=g.RT(this.N.Tk());p&&!p.loaded&&(p.DP("tracklist",{includeAsr:!0}).length||p.load());this.N.logClick(this.element);this.xM.er(this.element)}}; c$.prototype.updateBadge=function(){var p=this.N.isHdr(),C=this.N.getPresentingPlayerType(),V=C!==2&&C!==3,N=g.wb(this.N),H=V&&!!g.Pk(this.N.Tk());C=H&&N.displayMode===1;N=H&&N.displayMode===2;V=(H=C||N)||!V?null:this.N.getPlaybackQuality();g.Tz(this.element,"ytp-hdr-quality-badge",p);g.Tz(this.element,"ytp-hd-quality-badge",!p&&(V==="hd1080"||V==="hd1440"));g.Tz(this.element,"ytp-4k-quality-badge",!p&&V==="hd2160");g.Tz(this.element,"ytp-5k-quality-badge",!p&&V==="hd2880");g.Tz(this.element,"ytp-8k-quality-badge", !p&&V==="highres");g.Tz(this.element,"ytp-3d-badge-grey",!p&&H&&C);g.Tz(this.element,"ytp-3d-badge",!p&&H&&N)};g.m(T8,c3);T8.prototype.isLoaded=function(){var p=g.Ln(this.N.Tk());return p!==void 0&&p.loaded}; T8.prototype.Pr=function(){g.Ln(this.N.Tk())!==void 0&&this.N.getPresentingPlayerType()!==3?this.T||(this.xM.zB(this),this.T=!0):this.T&&(this.xM.u8(this),this.T=!1);TJ(this,this.isLoaded())}; T8.prototype.onSelect=function(p){this.isLoaded();p?this.N.loadModule("annotations_module"):this.N.unloadModule("annotations_module");this.N.publish("annotationvisibility",p)}; T8.prototype.CS=function(){this.T&&this.xM.u8(this);c3.prototype.CS.call(this)};g.m(Mb,g.jv);Mb.prototype.Pr=function(){var p=this.N.getAvailableAudioTracks();p.length>1?(this.dh(g.AU(p,this.T)),this.tracks=g.tB(p,this.T,this),this.countLabel.Jc(p.length?" ("+p.length+")":""),this.publish("size-change"),this.kN(this.T(this.N.getAudioTrack())),this.enable(!0)):this.enable(!1)}; Mb.prototype.jq=function(p){g.jv.prototype.jq.call(this,p);this.N.setAudioTrack(this.tracks[p]);this.xM.Ou()}; Mb.prototype.T=function(p){return p.toString()};g.m(Jo,c3); Jo.prototype.C=function(){var p=this.N.getPresentingPlayerType();if(p!==2&&p!==3&&g.gb(this.N))this.T||(this.xM.zB(this),this.T=!0,this.V.push(this.U(this.N,"videodatachange",this.C)),this.V.push(this.U(this.N,"videoplayerreset",this.C)),this.V.push(this.U(this.N,"onPlaylistUpdate",this.C)),this.V.push(this.U(this.N,"autonavchange",this.S)),p=this.N.getVideoData(),this.S(p.autonavState),this.N.logVisibility(this.element,this.T));else if(this.T){this.xM.u8(this);this.T=!1;p=g.F(this.V);for(var C=p.next();!C.done;C= p.next())this.rY(C.value)}}; Jo.prototype.S=function(p){TJ(this,p!==1)}; Jo.prototype.onSelect=function(p){this.N.MV(p?2:1);this.T&&(this.N.logVisibility(this.element,this.T),this.N.logClick(this.element))}; Jo.prototype.CS=function(){this.T&&this.xM.u8(this);c3.prototype.CS.call(this)};g.m(vnX,g.Nl);vnX.prototype.onClick=function(p){p.preventDefault();var C,V;(C=g.Zg(this.N))==null||(V=C.TA())==null||V.f4();var N,H;(N=g.Zg(this.N))==null||(H=N.Gj())==null||H.er(p.target)};g.m(FTY,g.jv);g.h=FTY.prototype; g.h.du=function(){var p=this.N.getPresentingPlayerType();if(p!==2&&p!==3){this.sY=this.N.TY();p=this.N.getAvailableQualityLevels();if(this.T){this.S={};var C=g.FE(this.N,"getAvailableQualityData",[]);C=g.F(C);for(var V=C.next();!V.done;V=C.next())V=V.value,this.S[V.qualityLabel]=V;C=Object.keys(this.S);p[p.length-1]==="auto"&&C.push("auto");this.Vn=new Set(p)}else if(this.W){V=g.FE(this.N,"getAvailableQualityData",[]);C=[];V=g.F(V);for(var N=V.next();!N.done;N=V.next())N=N.value,this.Z[N.quality]= N,N.quality&&C.push(N.quality);p[p.length-1]==="auto"&&C.push("auto")}else C=p;g.ggj(this.N)&&this.N.Ar()&&C.unshift("missing-qualities");Wwj(this.N)&&C.unshift("inline-survey");this.dh(C);p=this.N.getVideoData().cotn?!0:!1;V=this.b_.nO();V=!g.wG(this.N.K())||!(p===void 0?0:p)||!(V===void 0||V);p=this.C;V=V===void 0?!1:V;p.Lz&&g.Tz(p.rV("ytp-panel-footer"),"ytp-panel-hide-footer",V===void 0?!1:V);if(C.length){this.Tw();this.enable(!0);return}}this.enable(!1)}; g.h.Tw=function(){if(this.T){var p=this.N.getPreferredQuality();this.Vn.has(p)&&(this.D=this.N.getPlaybackQuality(),this.a$=this.N.getPlaybackQualityLabel(),p==="auto"?(this.kN(p),this.Jc(this.oz(p))):this.kN(this.a$))}else p=this.N.getPreferredQuality(),this.options[p]&&(this.D=this.N.getPlaybackQuality(),this.kN(p),p==="auto"&&this.Jc(this.oz(p)))}; g.h.jq=function(p){if(p!=="missing-qualities"){g.jv.prototype.jq.call(this,p);var C=this.T?this.S[p]:this.Z[p];var V=C==null?void 0:C.quality,N=C==null?void 0:C.formatId,H=C==null?void 0:C.paygatedQualityDetails;C=H==null?void 0:H.endpoint;if(H){var X;H=(X=this.options[p])==null?void 0:X.element;this.N.logClick(H)}if(this.T){var d,a;if((d=g.n(C,g.tkv))==null?0:(a=d.popup)==null?0:a.notificationActionRenderer)this.N.Jk("innertubeCommand",C);else if(C){this.N.Jk("innertubeCommand",C);return}N?this.N.setPlaybackQuality(V, N):this.N.setPlaybackQuality(V)}else{if(this.W){var E,l;if((E=g.n(C,g.tkv))==null?0:(l=E.popup)==null?0:l.notificationActionRenderer)this.N.Jk("innertubeCommand",C);else if(C){this.N.Jk("innertubeCommand",C);return}}this.N.setPlaybackQuality(p)}this.xM.f4();this.du()}}; g.h.open=function(){for(var p=g.F(Object.values(this.options)),C=p.next();!C.done;C=p.next()){C=C.value;var V=void 0;this.N.hasVe((V=C)==null?void 0:V.element)&&(V=void 0,this.N.logVisibility((V=C)==null?void 0:V.element,!0))}g.jv.prototype.open.call(this);this.N.logClick(this.element)}; g.h.M2=function(p,C,V){var N=this;if(p==="missing-qualities")return new g.Nl({L:"a",i_:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.N.K().Z,tabindex:"0",role:"menuitemradio"},j:[{L:"div",i_:["ytp-menuitem-label"],Ak:"{{label}}"}]},C,this.oz(p));if(p!=="inline-survey"){var H,X=(H=this.T?this.S[p]:this.Z[p])==null?void 0:H.paygatedQualityDetails;H=X==null?void 0:X.veType;X=X==null?void 0:X.trackingParams;C=g.jv.prototype.M2.call(this,p,C,V);X?(this.N.createServerVe(C.element, this,!0),this.N.setTrackingParams(C.element,X)):H&&this.N.createClientVe(C.element,this,H,!0);return C}p=[{L:"span",Ak:"Que tal?"}];V=g.F([!0,!1]);X=V.next();for(H={};!X.done;H={yj:void 0},X=V.next())H.yj=X.value,X=new g.L({L:"span",B:"ytp-menuitem-inline-survey-response",j:[H.yj?f3S():K_H()],X:{tabindex:"0",role:"button"}}),X.listen("click",function(d){return function(){var a=d.yj,E=g.O5(N.N.app);E&&(E.k_("iqsr",{tu:a}),E.getVideoData().wX=!0);N.xM.f4();N.du()}}(H)),p.push(X); return new g.Nl({L:"div",B:"ytp-menuitem",X:{"aria-disabled":"true"},j:[{L:"div",i_:["ytp-menuitem-label"],j:p}]},C)}; g.h.oz=function(p,C){C=C===void 0?!1:C;if(p==="missing-qualities")return{L:"div",Ak:"Faltam op\u00e7\u00f5es?"};if(p==="inline-survey")return"";var V=this.W||this.T?[D2v(this,p,C,!1)]:[KTs(this,p)];var N=this.N.getPreferredQuality();C||N!=="auto"||p!=="auto"||(V.push(" "),this.T?V.push(D2v(this,this.a$,C,!0,["ytp-menu-label-secondary"])):this.W?V.push(D2v(this,this.D,C,!0,["ytp-menu-label-secondary"])):V.push(KTs(this,this.D,["ytp-menu-label-secondary"])));return{L:"div",j:V}};g.m(mR,g.L);mR.prototype.init=function(){this.updateValue("minvalue",this.V);this.updateValue("maxvalue",this.W);this.updateValue("stepvalue",this.D);this.updateValue("slidervalue",this.C);uSY(this,this.C)}; mR.prototype.J=function(){Z9y(this,Number(this.T.value));this.T.focus()};g.m(v$,mR);v$.prototype.J=function(){mR.prototype.J.call(this);this.S&&U2s(this)}; v$.prototype.sY=function(){this.Z()}; v$.prototype.b_=function(){this.N.setPlaybackRate(this.C,!0)}; v$.prototype.a$=function(p){if(!p.defaultPrevented){switch(p.code){case "ArrowDown":var C=-this.D;break;case "ArrowUp":C=this.D;break;default:return}Z9y(this,Math.min(this.W,Math.max(Number((this.C+C).toFixed(2)),this.V)));this.Z();U2s(this);p.preventDefault()}};g.m(Fp,g.L);g.h=Fp.prototype;g.h.init=function(){this.dJ(this.T);this.updateValue("minvalue",this.C);this.updateValue("maxvalue",this.V)}; g.h.kU=function(p){if(!p.defaultPrevented){switch(p.keyCode){case 37:case 40:var C=-this.J;break;case 39:case 38:C=this.J;break;default:return}this.dJ(this.T+C);p.preventDefault()}}; g.h.y3=function(p){var C=this.T;C+=(p.deltaX||-p.deltaY)<0?-this.Z:this.Z;this.dJ(C);p.preventDefault()}; g.h.Td=function(p){p=(p-g.qK(this.S).x)/this.a$*this.range+this.C;this.dJ(p)}; g.h.dJ=function(p,C){C=C===void 0?"":C;p=g.J9(p,this.C,this.V);C===""&&(C=p.toString());this.updateValue("valuenow",p);this.updateValue("valuetext",C);this.b_.style.left=(p-this.C)/this.range*(this.a$-this.Sa)+"px";this.T=p}; g.h.focus=function(){this.Wr.focus()};g.m(SD,Fp);SD.prototype.sY=function(){this.N.setPlaybackRate(this.T,!0)}; SD.prototype.dJ=function(p){Fp.prototype.dJ.call(this,p,O9L(this,p).toString());this.W&&(fIY(this),this.Vn())}; SD.prototype.updateValues=function(){var p=this.N.getPlaybackRate();O9L(this,this.T)!==p&&(this.dJ(p),fIY(this))};g.m(ys9,g.Sp);ys9.prototype.focus=function(){this.T.focus()};g.m(qbu,wL);g.m(IIV,g.jv);g.h=IIV.prototype;g.h.oz=function(p){return p==="1"?"Normal":p.toLocaleString()}; g.h.Pr=function(){var p,C=(p=this.N.getVideoData())==null?void 0:p.VL();p=this.N.getPresentingPlayerType(C);this.enable(p!==2&&p!==3);kLu(this)}; g.h.dh=function(p){g.jv.prototype.dh.call(this,p);this.D&&this.D.T.focus()}; g.h.UX=function(p){g.jv.prototype.UX.call(this,p);p?(this.a$=this.U(this.N,"onPlaybackRateChange",this.onPlaybackRateChange),kLu(this),Asa(this,this.N.getPlaybackRate())):(this.rY(this.a$),this.a$=null)}; g.h.onPlaybackRateChange=function(p){var C=this.N.getPlaybackRate();!this.W&&this.Z.includes(C)||on1(this,C);Asa(this,p)}; g.h.M2=function(p,C,V){return p===this.T&&x2S(this.N)?g.jv.prototype.M2.call(this,p,C,V,{L:"div",B:"ytp-speed-slider-menu-footer",j:[this.D]}):g.jv.prototype.M2.call(this,p,C,V)}; g.h.jq=function(p){g.jv.prototype.jq.call(this,p);p===this.T?this.N.setPlaybackRate(this.S,!0):this.N.setPlaybackRate(Number(p),!0);x2S(this.N)&&p===this.T||this.xM.Ou()}; g.h.On=function(p){var C=p===this.T;this.W=!1;C&&Kv(this.N)&&!x2S(this.N)?(p=new qbu(this.N),g.WO(this.xM,p)):g.jv.prototype.On.call(this,p)};g.m(zda,g.jv);g.h=zda.prototype;g.h.kN=function(p){g.jv.prototype.kN.call(this,p)}; g.h.kP=function(p){return p.option.toString()}; g.h.getOption=function(p){return this.settings[p]}; g.h.oz=function(p){return this.getOption(p).text||""}; g.h.jq=function(p){g.jv.prototype.jq.call(this,p);this.publish("settingChange",this.setting,this.settings[p].option)};g.m(Di,g.$m);Di.prototype.M5=function(p){for(var C=g.F(Object.keys(p)),V=C.next();!V.done;V=C.next()){var N=V.value;if(V=this.ob[N]){var H=p[N].toString();N=!!p[N+"Override"];V.options[H]&&(V.kN(H),V.S.element.setAttribute("aria-checked",String(!N)),V.T.element.setAttribute("aria-checked",String(N)))}}}; Di.prototype.f$=function(p,C){this.publish("settingChange",p,C)};g.m(uh,g.jv);uh.prototype.T=function(p){return p.languageCode}; uh.prototype.oz=function(p){return this.languages[p].languageName||""}; uh.prototype.jq=function(p){this.publish("select",p);this.N.logClick(this.element);g.QX(this.xM)};g.m(edy,g.jv);g.h=edy.prototype;g.h.jD=function(p){return g.k5(p)?"__off__":p.displayName}; g.h.oz=function(p){return p==="__off__"?"Desativado":p==="__translate__"?"Traduzir automaticamente":p==="__contribute__"?"Adicionar legendas/CC":p==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(p==="__off__"?{}:this.tracks[p]).displayName}; g.h.jq=function(p){if(p==="__translate__")this.T.open();else if(p==="__contribute__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();var C=g.k1(this.N.K(),this.N.getVideoData());g.pS(C)}else if(p==="__correction__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();var V=PJX(this);Zi(this,V);g.jv.prototype.jq.call(this,this.jD(V));var N,H;V=(C=this.N.getVideoData().getPlayerResponse())==null?void 0:(N=C.captions)==null?void 0:(H=N.playerCaptionsTracklistRenderer)== null?void 0:H.openTranscriptCommand;this.N.Jk("innertubeCommand",V);this.xM.Ou();this.S&&this.N.logClick(this.S)}else{if(p==="__correction__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();C=PJX(this);Zi(this,C);g.jv.prototype.jq.call(this,this.jD(C));var X,d;C=(V=this.N.getVideoData().getPlayerResponse())==null?void 0:(X=V.captions)==null?void 0:(d=X.playerCaptionsTracklistRenderer)==null?void 0:d.openTranscriptCommand;this.N.Jk("innertubeCommand",C)}else this.N.logClick(this.element), Zi(this,p==="__off__"?{}:this.tracks[p]),g.jv.prototype.jq.call(this,p);this.xM.Ou()}}; g.h.Pr=function(){var p=this.N.getOptions();p=p&&p.indexOf("captions")!==-1;var C=this.N.getVideoData(),V=C&&C.CA,N,H=!((N=this.N.getVideoData())==null||!g.s5(N));N={};if(p||V){var X;if(p){var d=this.N.getOption("captions","track");N=this.N.getOption("captions","tracklist",{includeAsr:!0});var a=H?[]:this.N.getOption("captions","translationLanguages");this.tracks=g.tB(N,this.jD,this);H=g.AU(N,this.jD);var E,l;PJX(this)&&((X=C.getPlayerResponse())==null?0:(E=X.captions)==null?0:(l=E.playerCaptionsTracklistRenderer)== null?0:l.openTranscriptCommand)&&H.push("__correction__");if(a.length&&!g.k5(d)){if((X=d.translationLanguage)&&X.languageName){var t=X.languageName;X=a.findIndex(function(c){return c.languageName===t}); H0Q(a,X)}RdV(this.T,a);H.push("__translate__")}X=this.jD(d)}else this.tracks={},H=[],X="__off__";H.unshift("__off__");this.tracks.__off__={};V&&H.unshift("__contribute__");this.tracks[X]||(this.tracks[X]=d,H.push(X));this.dh(H);this.kN(X);d&&d.translationLanguage?this.T.kN(this.T.T(d.translationLanguage)):Zve(this.T);p&&this.W.M5(this.N.getSubtitlesUserSettings());this.countLabel.Jc(N&&N.length?" ("+N.length+")":"");this.publish("size-change");this.N.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.h.aP=function(p){var C=this.N.getOption("captions","track");C=g.zh(C);C.translationLanguage=this.T.languages[p];Zi(this,C)}; g.h.f$=function(p,C){if(p==="reset")this.N.resetSubtitlesUserSettings();else{var V={};V[p]=C;this.N.updateSubtitlesUserSettings(V)}nnj(this,!0);this.D.start();this.W.M5(this.N.getSubtitlesUserSettings())}; g.h.Vrx=function(p){p||g.d0(this.D)}; g.h.CS=function(){g.d0(this.D);g.jv.prototype.CS.call(this)}; g.h.open=function(){g.jv.prototype.open.call(this);this.options.__correction__&&!this.S&&(this.S=this.options.__correction__.element,this.N.createClientVe(this.S,this,167341),this.N.logVisibility(this.S,!0))};g.m(wMy,g.gL);g.h=wMy.prototype; g.h.initialize=function(){if(!this.isInitialized){var p=this.N.K();this.isInitialized=!0;try{this.YD=new FTY(this.N,this)}catch(V){g.eG(Error("QualityMenuItem creation failed"))}g.R(this,this.YD);var C=new edy(this.N,this);g.R(this,C);p.V||(C=new T8(this.N,this),g.R(this,C));p.enableSpeedOptions&&(C=new IIV(this.N,this),g.R(this,C));(g.KI(p)||p.Y)&&(p.C||p.R$)&&(C=new vnX(this.N,this),g.R(this,C));p.kt&&!p.G("web_player_move_autonav_toggle")&&(p=new Jo(this.N,this),g.R(this,p));p=new Mb(this.N,this); g.R(this,p);this.N.publish("settingsMenuInitialized");m2s(this.settingsButton,this.Zd.t8())}}; g.h.zB=function(p){this.initialize();this.Zd.zB(p);m2s(this.settingsButton,this.Zd.t8())}; g.h.u8=function(p){this.C4&&this.Zd.t8()<=1&&this.hide();this.Zd.u8(p);m2s(this.settingsButton,this.Zd.t8())}; g.h.er=function(p){this.initialize();this.Zd.t8()>0&&g.gL.prototype.er.call(this,p)}; g.h.f4=function(){this.LZ?this.LZ=!1:g.gL.prototype.f4.call(this)}; g.h.show=function(){g.gL.prototype.show.call(this);g.Ed(this.N.getRootNode(),"ytp-settings-shown")}; g.h.hide=function(){g.gL.prototype.hide.call(this);g.tk(this.N.getRootNode(),"ytp-settings-shown")}; g.h.JE=function(p){this.N.logVisibility(this.element,p);this.N.publish("settingsMenuVisibilityChanged",p)};g.m(LTV,g.L);g.h=LTV.prototype;g.h.onClick=function(){if(gnv(this)&&(this.N.toggleSubtitles(),this.N.logClick(this.element),!this.isEnabled())){var p=!1,C=g.LK(g.$l(),65);g.wG(this.N.K())&&C!=null&&(p=!C);p&&this.N.K().G("web_player_nitrate_promo_tooltip")&&this.N.publish("showpromotooltip",this.element)}}; g.h.R3a=function(p){var C,V;(C=g.Zg(this.N))==null||(V=C.TA())==null||V.er(p)}; g.h.isEnabled=function(){return!!this.N.getOption("captions","track").displayName}; g.h.Pr=function(){var p=gnv(this),C=300;this.N.K().J&&(C=480);if(this.N.K().Y){this.updateValue("title",g.kj(this.N,"Legendas/legendas ocultas","c"));this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});var V=p}else{if(p)(V=this.rV("ytp-subtitles-button-icon"))==null||V.setAttribute("fill-opacity","1"),this.updateValue("title",g.kj(this.N,"Legendas/legendas ocultas","c")),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});else{var N;(N=this.rV("ytp-subtitles-button-icon"))== null||N.setAttribute("fill-opacity","0.3");this.updateValue("title","N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis");this.update({"data-title-no-tooltip":"N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis"})}V=!0}this.tooltip.B6();V=V&&this.N.dV().getPlayerSize().width>=C;this.jb(V);this.N.G("embeds_use_parent_visibility_in_ve_logging")?this.N.logVisibility(this.element,V&&this.Y):this.N.logVisibility(this.element,V);p?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed", !1)}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);this.N.K().G("embeds_use_parent_visibility_in_ve_logging")&&this.N.logVisibility(this.element,this.C4&&p)};g.m(g.Ua,g.L);g.h=g.Ua.prototype; g.h.m6=function(){var p=this.api.dV().getPlayerSize().width,C=this.J;this.api.K().J&&(C=400);C=p>=C&&(!fv(this)||!g.r(this.api.getPlayerStateObject(),64));this.jb(C);g.Tz(this.element,"ytp-time-display-allow-autohide",C&&p<400);p=this.api.getProgressState();if(C){C=this.api.getPresentingPlayerType();var V=this.api.getCurrentTime(C,!1);this.C&&(V-=p.airingStart);Oa(this)&&(V-=this.Sb.startTimeMs/1E3);V=g.A7(V);this.V!==V&&(this.updateValue("currenttime",V),this.V=V);C=Oa(this)?g.A7((this.Sb.endTimeMs- this.Sb.startTimeMs)/1E3):g.A7(this.api.getDuration(C,!1));this.S!==C&&(this.updateValue("duration",C),this.S=C)}WTe(this,p.isAtLiveHead);Qne(this,this.api.getLoopRange())}; g.h.onLoopRangeChange=function(p){var C=this.Sb!==p;this.Sb=p;C&&(this.m6(),rsS(this))}; g.h.gGV=function(){this.api.setLoopRange(null)}; g.h.onVideoDataChange=function(p,C,V){this.updateVideoData((this.api.K().G("enable_topsoil_wta_for_halftime")||this.api.K().G("enable_topsoil_wta_for_halftime_live_infra"))&&V===2?this.api.getVideoData(1):C);this.m6();rsS(this)}; g.h.updateVideoData=function(p){this.YR=p.isLivePlayback&&!p.qo;this.C=E5(p);this.isPremiere=p.isPremiere;g.Tz(this.element,"ytp-live",fv(this))}; g.h.onClick=function(p){p.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.h.CS=function(){this.T&&this.T();g.L.prototype.CS.call(this)};g.m(GLY,g.L);g.h=GLY.prototype;g.h.V2=function(){var p=this.api.GW();this.V!==p&&(this.V=p,B5y(this,this.api.getVolume(),this.api.isMuted()))}; g.h.ag=function(p){this.jb(p.width>=350)}; g.h.CX=function(p){if(!p.defaultPrevented){var C=p.keyCode,V=null;C===37?V=this.volume-5:C===39?V=this.volume+5:C===36?V=0:C===35&&(V=100);V!==null&&(V=g.J9(V,0,100),V===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(V)),p.preventDefault())}}; g.h.bY=function(p){var C=p.deltaX||-p.deltaY;p.deltaMode?this.api.setVolume(this.volume+(C<0?-10:10)):this.api.setVolume(this.volume+g.J9(C/10,-10,10));p.preventDefault()}; g.h.z3S=function(){yK(this,this.T,!0,this.C,this.api.Em());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()}; g.h.nX=function(p){var C=this.V?78:52,V=this.V?18:12;p-=g.qK(this.J).x;this.api.setVolume(g.J9((p-V/2)/(C-V),0,1)*100)}; g.h.vGa=function(){yK(this,this.T,!1,this.C,this.api.Em());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Z))}; g.h.onVolumeChange=function(p){B5y(this,p.volume,p.muted)}; g.h.Wl=function(){yK(this,this.T,this.isDragging,this.C,this.api.Em())}; g.h.CS=function(){g.L.prototype.CS.call(this);g.tk(this.D,"ytp-volume-slider-active")};g.m(qb,g.L); qb.prototype.onVideoDataChange=function(){var p=this.api.K();this.OR();this.visible=!!this.api.getVideoData().videoId&&!g.lx(this.api.getVideoData(1));this.jb(this.visible);this.api.logVisibility(this.element,this.visible&&this.Y);if(this.visible){var C=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",C)}p.V&&(this.T&&(this.rY(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Ed(this.element,"no-link")); C=this.api.K();p=this.api.getVideoData();var V="";C.V||(C=g.zM(C),C.indexOf("www.")===0&&(C=C.substring(4)),V=g.t_(p)?"Assistir no YouTube Music":C==="youtube.com"?"Assistir no YouTube":g.Ks("Assista em $WEBSITE",{WEBSITE:C}));this.updateValue("title",V)}; qb.prototype.onClick=function(p){this.api.G("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var C=this.api.K(),V=this.api.getVideoUrl(!g.o0(p),!1,!0,!0);if(g.KI(C)){var N={};g.KI(C)&&g.FE(this.api,"addEmbedsConversionTrackingParams",[N]);V=g.GD(V,N)}g.Jh(V,this.api,p);this.api.G("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; qb.prototype.OR=function(){var p={L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{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 "}}]}, C=28666,V=this.api.getVideoData();this.api.isEmbedsShortsMode()?p={L:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},j:[{L:"path",X:{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.t_(V)&&(p={L:"svg",X:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},j:[{L:"path",X:{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"}},{L:"path",X:{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"}},{L:"path",X:{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"}},{L:"path",X:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{L:"path",X:{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"}},{L:"path",X:{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"}},{L:"path",X:{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"}},{L:"path",X:{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"}},{L:"path",X:{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"}},{L:"path",X:{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"}},{L:"path",X:{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"}},{L:"path",X:{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"}}]},C=216163);g.t_(V)?g.Ed(this.element,"ytp-youtube-music-button"):g.tk(this.element,"ytp-youtube-music-button");p.X=Object.assign({},p.X,{"aria-hidden":"true"});this.updateValue("logoSvg",p);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,C,!0)}; qb.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)};g.m(CAV,g.Rr);g.h=CAV.prototype;g.h.Nn=function(){if(this.N.G("web_player_max_seekable_on_ended")||!g.r(this.N.getPlayerStateObject(),2))this.progressBar.m6(),this.Sa.m6()}; g.h.XS=function(){this.zg();this.YB.C?this.Nn():this.progressBar.l8()}; g.h.AG=function(){this.Nn();this.J.start()}; g.h.zg=function(){var p;if(p=!this.N.K().C){p=this.progressBar;var C=2*g.Pg()*p.J;p=p.V.getLength()*1E3/p.api.getPlaybackRate()/C<300}p=p&&this.N.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;C=!p;this.YB.C||(p=C=!1);C?this.b_||(this.b_=this.U(this.N,"progresssync",this.Nn)):this.b_&&(this.rY(this.b_),this.b_=null);p?this.J.isActive()||this.J.start():this.J.stop()}; g.h.OR=function(){var p=this.N.GW(),C=this.N.dV().getPlayerSize(),V=VNv(this),N=Math.max(C.width-V*2,100);if(this.X$!==C.width||this.qo!==p){this.X$=C.width;this.qo=p;var H=NpL(this);this.V.element.style.width=H+"px";this.V.element.style.left=V+"px";g.cs1(this.progressBar,V,H,p);this.N.aI().b$=H}V=this.C;N=Math.min(570*(p?1.5:1),N);p=Math.min(413*(p?1.5:1),Math.round((C.height-HCH(this))*.82));V.maxWidth=N;V.maxHeight=p;V.Am();this.zg();this.N.K().G("html5_player_dynamic_bottom_gradient")&&a$s(this.Qn, C.height)}; g.h.onVideoDataChange=function(){var p=this.N.getVideoData();this.Y_.style.background=p.UV?p.PP:"";this.a$&&Mjv(this.a$,p.showSeekingControls);this.Z&&Mjv(this.Z,p.showSeekingControls)}; g.h.V$=function(){return this.V.element};g.m(X9a,PO);g.h=X9a.prototype;g.h.SN=function(p){p.target!==this.dismissButton.element&&(this.onClickCommand&&this.N.Jk("innertubeCommand",this.onClickCommand),this.Fj())}; g.h.Fj=function(){this.enabled=!1;this.a$.hide()}; g.h.onVideoDataChange=function(p,C){p==="dataloaded"&&d0V(this);p=[];var V,N,H,X;if(C=(X=g.n((V=C.getWatchNextResponse())==null?void 0:(N=V.playerOverlays)==null?void 0:(H=N.playerOverlayRenderer)==null?void 0:H.suggestedActionsRenderer,R6P))==null?void 0:X.suggestedActions)for(V=g.F(C),N=V.next();!N.done;N=V.next())(N=g.n(N.value,nT1))&&g.n(N.trigger,z61)&&p.push(N);if(p.length!==0){V=[];p=g.F(p);for(N=p.next();!N.done;N=p.next())if(N=N.value,H=g.n(N.trigger,z61))X=(X=N.title)?g.uq(X):"View Chapters", C=H.timeRangeStartMillis,H=H.timeRangeEndMillis,C!=null&&H!=null&&N.tapCommand&&(V.push(new g.sz(C,H,{priority:9,namespace:"suggested_action_button_visible",id:X})),this.suggestedActions[X]=N.tapCommand);this.N.d7(V)}}; g.h.Xb=function(){return this.enabled}; g.h.JE=function(){this.enabled?this.Ga.start():n$(this);this.hd()}; g.h.CS=function(){d0V(this);PO.prototype.CS.call(this)};var D$={},Iv=(D$.CHANNEL_NAME="ytp-title-channel-name",D$.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",D$.LINK="ytp-title-link",D$.SESSIONLINK="yt-uix-sessionlink",D$.SUBTEXT="ytp-title-subtext",D$.TEXT="ytp-title-text",D$.TITLE="ytp-title",D$);g.m(bh,g.L);bh.prototype.onClick=function(p){this.api.logClick(this.element);var C=this.api.K(),V=this.api.getVideoUrl(!g.o0(p),!1,!0);g.KI(C)&&(C={},g.FE(this.api,"addEmbedsConversionTrackingParams",[C]),V=g.GD(V,C));g.Jh(V,this.api,p)}; bh.prototype.Pr=function(){var p=this.api.getVideoData(),C=this.api.K();this.updateValue("title",p.title);var V={L:"a",B:Iv.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},Ak:"{{channelName}}"};this.api.K().V&&(V={L:"span",B:Iv.CHANNEL_NAME,Ak:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",V);iC1(this);this.api.getPresentingPlayerType()===2&&(V=this.api.getVideoData(),V.videoId&&V.isListed&&V.author&&V.kM&&V.profilePicture?(this.updateValue("channelLink", V.kM),this.updateValue("channelName",V.author),this.updateValue("channelTitleFocusable","0")):iC1(this));V=C.externalFullscreen||!this.api.isFullscreen()&&C.tB;g.Tz(this.link,Iv.FULLERSCREEN_LINK,V);C.b_||!p.videoId||V||g.lx(p)||C.V?this.T&&(this.updateValue("url",null),this.rY(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.U(this.link,"click",this.onClick)));C.V&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.KI(C)?p.expandedTitle: p.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.m(g.Ao,g.L);g.h=g.Ao.prototype;g.h.setEnabled=function(p){if(this.type!=null)if(p)switch(this.type){case 3:case 2:sUy(this);this.D.show();break;default:this.D.show()}else this.D.hide();this.J=p}; g.h.eG=function(p,C,V,N,H,X,d,a){if(!this.Sa||this.env.J){this.type===3&&this.l8();this.type!==1&&(g.sd(this.element,"ytp-tooltip ytp-bottom ytp-rounded-tooltip"),this.type=1,this.J&&this.D.show(),this.C&&this.C.dispose(),(this.C=this.api.C$())&&this.C.subscribe("l",this.uV,this));if(a){var E=g.Ax(this.bg).height||141;this.Wr.style.bottom=E+2+"px"}this.update({text:V,title:X!=null?X:"",eduText:a!=null?a:""});g.Tz(this.text,"ytp-tooltip-text-no-title",this.type===1&&!X);this.api.isInline()&&g.Ed(this.text, "ytp-modern-tooltip-text");g.Tz(this.element,"ytp-text-detail",!!N);V=-1;this.C&&(V=ys(this.C,243*this.scale),this.env.G("web_l3_storyboard")&&this.C.levels.length===4&&(V=this.C.levels.length-1),V=sHe(this.C,V,C));E8V(this,V);if(d)switch(C=g.Ax(this.element).width,d){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=C+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=C/2+"px",this.title.style.textAlign="center"}awy(this, !!N,p,H)}}; g.h.Mk=function(){this.type===1&&this.l8()}; g.h.Y7=function(p,C){if(this.type)if(this.type===3)this.l8();else return;h7H(this,p,3,C)}; g.h.B6=function(){this.T&&!this.Z&&this.T.hasAttribute("title")&&(this.V=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.J&&sUy(this))}; g.h.uV=function(p,C){p<=this.S&&this.S<=C&&(p=this.S,this.S=NaN,E8V(this,p))}; g.h.WU=function(){izy(this.C,this.S,243*this.scale)}; g.h.l8=function(){switch(this.type){case 2:var p=this.T;p.removeEventListener("mouseout",this.a$);p.addEventListener("mouseover",this.W);p.removeEventListener("blur",this.a$);p.addEventListener("focus",this.W);lwv(this);break;case 3:lwv(this);break;case 1:this.C&&(this.C.unsubscribe("l",this.uV,this),this.C=null),this.api.removeEventListener("videoready",this.b_),this.sY.stop()}this.type=null;this.J&&this.D.hide()}; g.h.wb=function(){if(this.T)for(var p=0;p=0;C--)if(this.Xj[C]===p){this.Xj.splice(C,1);break}Wx(this.YB,64,this.Xj.length>0)}; g.h.QX=function(){this.api.dR()&&this.api.iy();return!!this.IF||m0X(this)||g.Hz.prototype.QX.call(this)}; g.h.tv=CY(3);g.h.Cw=CY(7);g.h.nw=CY(10); g.h.tF=function(){var p=!this.QX(),C=p&&this.api.dR()&&!g.r(this.api.getPlayerStateObject(),2)&&!g.lx(this.api.getVideoData())&&!this.api.K().V&&!this.api.isEmbedsShortsMode(),V=this.WS&&g.nT(this.api)&&g.r(this.api.getPlayerStateObject(),128);p||V?(this.DH.show(),this.Bd.show()):(this.DH.hide(),this.Bd.hide(),this.api.wb(this.ZP.element));C?this.Mn.er():this.Mn.f4();this.eq&&jUa(this.eq,this.IM||!p);this.api.G("web_player_hide_overflow_button_if_empty_menu")&&v8v(this);g.Hz.prototype.tF.call(this)}; g.h.Lr=function(p,C,V,N,H){p.style.left="";p.style.top="";p.style.bottom="";var X=g.Ax(p),d=N||this.eq&&g.t2(this.eq.V$(),C),a=N=null;V!=null&&d||(N=g.Ax(C),a=g.I9(C,this.api.getRootNode()),V==null&&(V=a.x+N.width/2));V-=X.width/2;d?(C=this.eq,N=VNv(C),a=NpL(C),d=this.api.dV().getPlayerSize().height,V=g.J9(V,N,N+a-X.width),X=d-HCH(C)-X.height):g.t2(this.ZP.element,C)?(C=this.api.dV().getPlayerSize().width,V=g.J9(V,12,C-X.width-12),X=this.GW()?this.oh:this.wm,this.api.K().playerStyle==="gvn"&&(X+= 20),this.WS&&(X-=this.GW()?26:18)):(C=this.api.dV().getPlayerSize(),V=g.J9(V,12,C.width-X.width-12),X=a.y>(C.height-N.height)/2?a.y-X.height-12:a.y+N.height+12);p.style.top=X+(H||0)+"px";p.style.left=V+"px"}; g.h.XS=function(p){p&&(this.api.wb(this.ZP.element),this.eq&&this.api.wb(this.eq.V$()));this.wM&&(g.Tz(this.contextMenu.element,"ytp-autohide",p),g.Tz(this.contextMenu.element,"ytp-autohide-active",!0));g.Hz.prototype.XS.call(this,p)}; g.h.Io=function(){g.Hz.prototype.Io.call(this);this.wM&&(g.Tz(this.contextMenu.element,"ytp-autohide-active",!1),this.wM&&(this.contextMenu.hide(),this.j5&&this.j5.hide()))}; g.h.ai=function(p,C){var V=this.api.dV().getPlayerSize();V=new g.vf(0,0,V.width,V.height);if(p||this.YB.C&&!this.QX()){if(this.api.K().lF||C)p=this.GW()?this.oh:this.wm,V.top+=p,V.height-=p;this.eq&&(V.height-=HCH(this.eq))}return V}; g.h.V2=function(p){var C=this.api.getRootNode();p?C.parentElement?(C.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.K().externalFullscreen||(C.parentElement.insertBefore(this.O2.element,C),C.parentElement.insertBefore(this.gg.element,C.nextSibling))):g.nm(Error("Player not in DOM.")):(C.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.O2.detach(),this.gg.detach());this.OR();this.Uc()}; g.h.GW=function(){var p=this.api.K();return this.api.isFullscreen()&&!p.J||!1}; g.h.showControls=function(p){this.Az=!p;this.tF()}; g.h.OR=function(){var p=this.GW();this.tooltip.scale=p?1.5:1;this.contextMenu&&g.Tz(this.contextMenu.element,"ytp-big-mode",p);this.tF();this.api.G("web_player_hide_overflow_button_if_empty_menu")||v8v(this);this.Uc();var C=this.api.isEmbedsShortsMode();C&&p?(p=(this.api.dV().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.K2(this.ZP.element,"padding-left",p+"px"),g.K2(this.ZP.element,"padding-right",p+"px")):C&&(g.K2(this.ZP.element,"padding-left",""),g.K2(this.ZP.element,"padding-right", ""));g.Hz.prototype.OR.call(this)}; g.h.sB=function(){if(m0X(this)&&!g.nT(this.api))return!1;var p=this.api.getVideoData();return!g.KI(this.api.K())||this.api.getPresentingPlayerType()===2||!this.b0||((p=this.b0||p.b0)?(p=p.embedPreview)?(p=p.thumbnailPreviewRenderer,p=p.videoDetails&&g.n(p.videoDetails,Voy)||null):p=null:p=null,p&&p.collapsedRenderer&&p.expandedRenderer)?g.Hz.prototype.sB.call(this):!1}; g.h.Uc=function(){g.Hz.prototype.Uc.call(this);this.api.logVisibility(this.title.element,!!this.Gi);this.rB&&this.rB.RH(!!this.Gi);this.channelAvatar.RH(!!this.Gi);this.overflowButton&&this.overflowButton.RH(this.OE()&&!!this.Gi);this.shareButton&&this.shareButton.RH(!this.OE()&&!!this.Gi);this.by&&this.by.RH(!this.OE()&&!!this.Gi);this.searchButton&&this.searchButton.RH(!this.OE()&&!!this.Gi);this.copyLinkButton&&this.copyLinkButton.RH(!this.OE()&&!!this.Gi);if(!this.Gi){this.api.wb(this.ZP.element); for(var p=0;p5&&C.k_("glrs",{cmt:V});C.seekTo(0,{seekSource:58});C.k_("glrre",{cmt:V})}}; Ya.prototype.CS=function(){this.T=null;g.Y.prototype.CS.call(this)};g.m(g.z8,s3);g.h=g.z8.prototype;g.h.isView=function(){return!0}; g.h.wD=function(){var p=this.mediaElement.getCurrentTime();if(p=4&&p!=="player-reload-after-handoff";this.status={status:Infinity,error:p};if(this.T&&this.C){var N=this.C.getVideoData().clientPlaybackNonce;this.T.oN(new qD("dai.transitionfailure",Object.assign(C,{cpn:N,transitionTimeMs:this.Y5,msg:p})));yX(this.T,V)}this.PK.reject(p);this.dispose()}}; g.h.GY=function(){return this.status.status>=4&&this.status.status<6}; g.h.CS=function(){bCs(this);this.T.unsubscribe("newelementrequired",this.zr,this);if(this.V){var p=this.V.C;this.V.T.jr.unsubscribe("updateend",this.KW,this);p.jr.unsubscribe("updateend",this.KW,this)}g.Y.prototype.CS.call(this)}; g.h.nI=function(p){g.u$(p,128)&&this.Qf("player-error-event")};g.m(x0u,g.Y);g.h=x0u.prototype;g.h.clearQueue=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;this.S&&this.S.reject("Queue cleared");this.app.K().G("html5_gapless_fallback_on_qoe_restart_v2")||C&&this.C&&yX(this.C,!1);eD(this,p)}; g.h.SS=function(){return!this.T}; g.h.tA=function(p){return this.T===p}; g.h.GY=function(){var p;return((p=this.V)==null?void 0:p.GY())||!1}; g.h.CS=function(){eD(this);g.Y.prototype.CS.call(this)};g.m(n8H,g.ca);g.h=n8H.prototype;g.h.getVisibilityState=function(p,C,V,N,H,X,d,a){return p?4:OAL()?3:C?2:V?1:N?5:H?7:X?8:d?9:a?10:0}; g.h.ze=function(p){this.fullscreen!==p&&(this.fullscreen=p,this.JE())}; g.h.setMinimized=function(p){this.C!==p&&(this.C=p,this.JE())}; g.h.setInline=function(p){this.inline!==p&&(this.inline=p,this.JE())}; g.h.wJ=function(p){this.pictureInPicture!==p&&(this.pictureInPicture=p,this.JE())}; g.h.setSqueezeback=function(p){this.V!==p&&(this.V=p,this.JE())}; g.h.gB=function(p){this.S!==p&&(this.S=p,this.JE())}; g.h.gi=function(){return this.T}; g.h.jE=function(){return this.fullscreen!==0}; g.h.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.h.OI=function(){return this.fullscreen}; g.h.isMinimized=function(){return this.C}; g.h.isInline=function(){return this.inline}; g.h.isBackground=function(){return OAL()}; g.h.l0=function(){return this.pictureInPicture}; g.h.vE=function(){return!1}; g.h.Gq=function(){return this.V}; g.h.VV=function(){return this.S}; g.h.JE=function(){this.publish("visibilitychange");var p=this.getVisibilityState(this.gi(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.l0(),this.vE(),this.Gq(),this.VV());p!==this.Y&&this.publish("visibilitystatechange");this.Y=p}; g.h.CS=function(){Ipu(this.W);g.ca.prototype.CS.call(this)};g.m(e7V,g.Y);e7V.prototype.CS=function(){g.s1(g.q$(this.T));g.Y.prototype.CS.call(this)};g.m(wR,g.Y);g.h=wR.prototype;g.h.enqueue=function(p,C){if(p.S!==this)return!1;if(this.segments.length===0||(C===void 0?0:C))this.T=p;this.segments.push(p);return!0}; g.h.r6=function(){return this.Dh||0}; g.h.Ag=function(){return this.S||0}; g.h.removeAll=function(){for(;this.segments.length;){var p=void 0;(p=this.segments.pop())==null||p.dispose()}this.C.clear();this.V=void 0}; g.h.CS=function(){this.removeAll();g.Y.prototype.CS.call(this)}; g.m(Gaa,g.Y);g.h=Gaa.prototype;g.h.r6=function(){return this.Dh}; g.h.Ag=function(){return this.V}; g.h.getType=function(){return this.type}; g.h.getVideoData=function(){return this.videoData}; g.h.mI=function(p){MI(p);this.videoData=p}; g.h.CS=function(){pK1(this);g.Y.prototype.CS.call(this)};g.m(g.W$,g.Y);g.h=g.W$.prototype;g.h.fC=function(p,C,V){return new g.sz(p,C,{id:V,namespace:"serverstitchedcuerange",priority:9})}; g.h.onCueRangeEnter=function(p){this.Ga.push(p);var C=p.getId();this.Ta.k_("sdai",{oncueEnter:1,cpn:C,start:p.start,end:p.end,ct:(this.Ta.getCurrentTime()||0).toFixed(3),cmt:(this.Ta.I_()||0).toFixed(3)});var V=C==="";this.qo.add(p.C);var N=this.V.get(C);if(V){var H;if(this.Ta.getVideoData().VL()&&((H=this.T)==null?0:H.g_)&&this.J){this.Fx=0;this.T=void 0;this.X$&&(this.events.rY(this.X$),this.X$=null);this.J="";this.Y_=!0;return}}else if(this.Ta.k_("sdai",{enterAdCueRange:1}),this.Ta.getVideoData().VL()&& (N==null?0:N.LQ))return;if(this.Y_&&!this.T)this.Y_=!1,!V&&N&&(V=this.Ta.getCurrentTime(),G8(this,{zN:p,isAd:!0,FA:!0,v6:V,adCpn:C},{isAd:!1,FA:!1,v6:V}),this.vc=N.cpn,i8a(this,N),p=B$(this,"midab",N),this.Ta.k_("sdai",p),this.Fx=1),this.sY=!1;else if(this.T){if(this.T.FA)this.Ta.k_("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.T.adCpn,transitionTime:this.T.v6,cpn:C,currentTime:this.Ta.getCurrentTime()}),N=this.Ta.getCurrentTime(),p={zN:p,isAd:!V,FA:!0,v6:N,adCpn:C},C={zN:this.T.zN,isAd:this.T.isAd, FA:!1,v6:N,adCpn:this.T.adCpn},this.T.zN&&this.qo.delete(this.T.zN.C),G8(this,p,C);else{if(this.T.zN===p){this.Ta.k_("sdai",{same_cue_range_pair_enter:1,acpn:this.T.adCpn,transitionTime:this.T.v6,cpn:C,currentTime:this.Ta.getCurrentTime(),cueRangeStartTime:p.start,cueRangeEndTime:p.end});this.T=void 0;return}if(this.T.adCpn===C){C&&this.Ta.k_("sdai",{dchtsc:C});this.T=void 0;return}p={zN:p,isAd:!V,FA:!0,v6:this.Ta.getCurrentTime(),adCpn:C};G8(this,p,this.T)}this.T=void 0;this.sY=!1}else this.T={zN:p, isAd:!V,FA:!0,v6:this.Ta.getCurrentTime(),adCpn:C}}; g.h.onCueRangeExit=function(p){var C=p.getId();this.Ta.k_("sdai",{oncueExit:1,cpn:C,start:p.start,end:p.end,ct:(this.Ta.getCurrentTime()||0).toFixed(3),cmt:(this.Ta.I_()||0).toFixed(3)});var V=C==="",N=this.V.get(C);if(this.Ta.getVideoData().VL()&&!V&&N){if(N.LQ)return;N.LQ=!0;this.Y.clear();if(this.yn.G("html5_lifa_no_rewatch_ad_sbc"))if(this.Ta.Bq()){var H=N.Dh;this.Ta.tZ(H/1E3,(H+N.durationMs)/1E3)}else this.Ta.k_("lifa",{remove:0})}if(this.qo.has(p.C))if(this.qo.delete(p.C),this.Ga=this.Ga.filter(function(X){return X!== p}),this.Y_&&(this.sY=this.Y_=!1,this.Ta.k_("sdai",{cref:1})),this.T){if(this.T.FA){if(this.T.zN===p){this.Ta.k_("sdai",{same_cue_range_pair_exit:1, acpn:this.T.adCpn,transitionTime:this.T.v6,cpn:C,currentTime:this.Ta.getCurrentTime(),cueRangeStartTime:p.start,cueRangeEndTime:p.end});this.T=void 0;return}if(this.T.adCpn===C){C&&this.Ta.k_("sdai",{dchtsc:C});this.T=void 0;return}C={zN:p,isAd:!V,FA:!1,v6:this.Ta.getCurrentTime(),adCpn:C};G8(this,this.T,C)}else this.Ta.k_("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.T.adCpn,transitionTime:this.T.v6,upcomingCpn:C,contentCpn:this.Ta.getVideoData().clientPlaybackNonce,currentTime:this.Ta.getCurrentTime()}); this.T=void 0;this.sY=!1}else this.T={zN:p,isAd:!V,FA:!1,v6:this.Ta.getCurrentTime(),adCpn:C};else this.Ta.k_("sdai",{ignore_single_exit:1})}; g.h.XZ=function(){return{cpn:this.Ta.getVideoData().clientPlaybackNonce,durationMs:0,Dh:0,playerType:1,Ai:0,videoData:this.Ta.getVideoData(),errorCount:0}}; g.h.Iz=function(){if(this.bX)return!1;var p=void 0;this.vc&&(p=this.V.get(this.vc));return this.Ta.getVideoData().VL()?!!p&&!p.LQ:!!p}; g.h.seekTo=function(p,C,V,N){p=p===void 0?0:p;C=C===void 0?{}:C;V=V===void 0?!1:V;N=N===void 0?null:N;if(this.Ta.getVideoData().VL()&&p<=this.UY/1E3)this.Ta.pauseVideo(),this.UY=0,this.sY=!0,sZ(this.Ta),this.Ta.seekTo(p),this.Ta.playVideo();else if(this.sY=!0,V)jzv(this,p,C);else{V=this.api.L1();var H=V===this.Qn?this.kM:null;p7(this,!1);this.Q$=p;this.YM=C;N!=null&&this.Hc.start(N);V&&(this.kM=H||V.getPlayerState(),aRy(V),this.Qn=V)}}; g.h.CS=function(){p7(this,!1);l2L(this);txL(this);g.Y.prototype.CS.call(this)}; g.h.L2=function(p){this.VZ=p;this.Ta.k_("sdai",{swebm:p})}; g.h.x9=function(p,C,V){if(V&&C){var N=this.Y.get(p);if(N){N.locations||(N.locations=new Map);var H=Number(C.split(";")[0]);V=new g.v1(V);this.R$&&this.Ta.k_("sdai",{hdlredir:1,itag:C,seg:p,hostport:So(V)});N.locations.set(H,V)}}}; g.h.i5=function(p,C,V,N,H,X){var d=N===3;H=TQX(this,p,C,N,V,X);if(!H)return Vw(this,C,d),H=g.cge(this,C)?"undec":"ncp",this.Ta.k_("sdai",{gvprp:H,mt:p,seg:C,tt:N,itag:V,ce:X}),null;d||this.Y.set(C,H);p=H.gb;var a;N=((a=jM(this,C-1,N))==null?void 0:a.w2)||"";N===""&&this.Ta.k_("sdai",{eds:1});a=JgS(this,H.ssdaiAdsConfig);V=this.Ta.getVideoData();var E;X=((E=V.C)==null?void 0:E.containerType)||0;E=V.Wv[X];C=H.I0&&C>=H.I0?H.I0:void 0;return{eS:{JM:p?Ssv(this,p):[],XX:a,w2:N,gs:C,VB:h9(E.split(";")[0]), Sl:E.split(";")[1]||""}}}; g.h.HG=function(p){a:{if(!this.bX){var C=Mxy(this,p);if(!(this.Ta.getVideoData().VL()&&(C==null?0:C.LQ)))break a}C=void 0}var V=C;if(!V)return this.Ta.k_("sdai",{gvprp:"ncp",mt:p}),null;C=V.gb;var N=JgS(this,V.ssdaiAdsConfig);p=V.I0&&V.lr&&p>=V.lr?V.I0:void 0;V=this.Ta.getVideoData();var H,X=((H=V.C)==null?void 0:H.containerType)||0;H=V.Wv[X];return{JM:C?Ssv(this,C):[],XX:N,gs:p,VB:h9(H.split(";")[0]),Sl:H.split(";")[1]||""}}; g.h.UI=function(p,C,V,N,H,X){var d=Number(V.split(";")[0]);H=N===3;p=TQX(this,p,C,N,V,X);this.R$&&this.Ta.k_("sdai",{gdu:1,seg:C,itag:d,pb:""+!!p});if(!p)return Vw(this,C,H),null;p.locations||(p.locations=new Map);if(!p.locations.has(d)){var a,E;X=(a=p.videoData.getPlayerResponse())==null?void 0:(E=a.streamingData)==null?void 0:E.adaptiveFormats;if(!X)return this.Ta.k_("sdai",{gdu:"noadpfmts",seg:C,itag:d}),Vw(this,C,H),null;a=X.find(function(J){return J.itag===d}); if(!a||!a.url){var l=p.videoData.videoId;p=[];N=g.F(X);for(var t=N.next();!t.done;t=N.next())p.push(t.value.itag);this.Ta.k_("sdai",{gdu:"nofmt",seg:C,vid:l,itag:d,fullitag:V,itags:p.join(",")});Vw(this,C,H);return null}p.locations.set(d,new g.v1(a.url,!0))}a=p.locations.get(d);if(!a)return this.Ta.k_("sdai",{gdu:"nourl",seg:C,itag:d}),Vw(this,C,H),null;a=new lw(a);this.VZ&&(a.get("dvc")?this.Ta.k_("sdai",{dvc:a.get("dvc")||""}):a.set("dvc","webm"));var c;(E=(c=jM(this,C-1,N))==null?void 0:c.w2)&& a.set("daistate",E);p.I0&&C>=p.I0&&a.set("skipsq",""+p.I0);(E=this.Ta.getVideoData().clientPlaybackNonce)&&a.set("cpn",E);c=[];p.gb&&(c=Ssv(this,p.gb),c.length>0&&a.set("acpns",c.join(",")));H||this.Y.set(C,p);H=null;H=a.get("aids");var T;if((((t=H)==null?void 0:(T=t.split(","))==null?void 0:T.length)||0)!==c.length)if(p.gb){var M;this.Ta.k_("sdai",{acpns_aids_nm:1,ids:Dwa(this,p.gb).join("_"),acpns:c.join("_"),aids:(M=H)==null?void 0:M.replace(/,/g,"_"),cpn:E,trackType:N})}else this.Ta.k_("sdai", {acpns_aids_nm:"noAdBreakId",cpn:E});N=a.i9();(N==null?void 0:N.length)>2048&&this.Ta.k_("sdai",{urltoolong:1,sq:C,itag:d,len:N.length});this.R$&&(N&&(T=p.cpn,t=p.gb,Z8j(this,T,t),t&&!this.FO.has(t)&&(T=KbS(this,T,t),M=uhe(this,t),this.Ta.k_("sdai",{iofa:T}),this.Ta.k_("sdai",{noawnzd:M-T}),this.Ta.k_("sdai",{acpns:c.join("."),aids:(l=H)==null?void 0:l.replace(/,/g,".")}),this.FO.add(t))),this.Ta.k_("sdai",{gdu:"v",seg:C,itag:V,ast:p.Dh.toFixed(3),alen:p.durationMs.toFixed(3),acpn:p.cpn,avid:p.videoData.videoId})); return N}; g.h.v9=function(p,C,V){var N=C7(this,p,V);return(N=N?(N.Dh+N.durationMs)/1E3:0)&&C>N?(this.Wm(p,V,!0),this.Ta.seekTo(N),!0):!1}; g.h.Wm=function(p,C,V){V=V===void 0?!1:V;var N=C7(this,p,C);if(N){var H=void 0,X=N.gb;if(X){this.Ta.k_("sdai",{skipadonsq:C,sts:V,abid:X,acpn:N.cpn,avid:N.videoData.videoId});V=this.Z.get(X);if(!V)return;V=g.F(V);for(X=V.next();!X.done;X=V.next())X=X.value,X.I0=C,X.lr=p,X.Dh>N.Dh&&(H=X)}this.J=N.cpn;mw1(this);p=this.Ta.getCurrentTime();hHy(this,N,H,p,p,!1,!0)}}; g.h.jK=function(){for(var p=g.F(this.W),C=p.next();!C.done;C=p.next())C=C.value,C.I0=NaN,C.lr=NaN;mw1(this);this.Ta.k_("sdai",{rsac:"resetSkipAd",sac:this.J});this.J=""}; g.h.Tn=CY(39); g.h.MI=function(p,C,V,N,H,X,d,a,E){N.length>0&&this.Ta.k_("sdai",{onssinfo:1,sq:p,start:C.toFixed(3),cpns:N.join(","),ds:H.join(","),isVideo:d?1:0});E&&(d?this.KS.set(p,{w2:E,Ja:a}):this.Wr.set(p,{w2:E,Ja:a}));a=$B(this.Ta.getVideoData())&&this.yn.G("html5_process_all_cuepoints");if(d||a){if(N.length&&H.length)for(this.J&&this.J===N[0]&&this.Ta.k_("sdai",{skipfail:1,sq:p,acpn:this.J}),p=C+this.SX(),d=0;d0&&(this.Fx=0,this.vc="",this.api.publish("serverstitchedvideochange"));p=this.Ta;p.videoData.Vc=!0;p.oN(new qD("qoe.restart",V));sZ(p,!0);p.videoData.VL()&&p.G("html5_reload_caption_on_ssdai_fallback")&&p.lJ.lN();return!0}; g.h.Cg=function(){this.Ta.k_("sdai",{rstdaist:1});this.Wr.clear();this.KS.clear();this.vr.clear()}; g.h.TE=function(p){var C;if(p!==((C=this.a$)==null?void 0:C.identifier))this.Ta.k_("sdai",{ignorenoad:p});else{this.cV.add(p);var V;((V=this.a$)==null?void 0:V.identifier)===p&&rR(this)}}; g.h.Z5=function(){return this.Fx}; g.h.yv=function(){return this.vc}; g.h.qE=function(p){var C=Px(this.api.Tk());if(C=C?C.qE(p):!1)this.D={LU:p.identifier,O7:p.startSecs};else if(this.D&&this.D.LU===p.identifier&&p.startSecs>this.D.O7+1){this.api.k_("sdai",{cueStChg:p.identifier,oldSt:this.D.O7.toFixed(3),newSt:p.startSecs.toFixed(3),abid:this.D.gG});if(this.D.gG){var V=p.startSecs-this.D.O7,N=this.Z.get(this.D.gG);if(N){N=g.F(N);for(var H=N.next();!H.done;H=N.next())H=H.value,H.Dh>=0&&(H.Dh+=V*1E3)}}this.D.O7=p.startSecs}return C}; g.h.GG=function(p){return this.bX?!1:!!Mxy(this,p)}; g.h.K2=function(p){var C=this;this.Ta.pauseVideo();var V=this.Ta.getCurrentTime(),N=this.V.get(this.vc),H=this.C.get(this.vc);if(N){this.J=this.vc;this.sY=!1;N.LQ=!0;var X=this.Ta.getCurrentTime();this.T={zN:H,isAd:!0,FA:!1,v6:X,adCpn:this.vc,g_:N,J6V:p};this.Ta.getVideoData().VL()&&Ii(this.Ta,N,this.XZ(),X,this.Ta.getCurrentTime(),!1,!0,p,(0,g.Ip)());if(H==null?0:H.start)this.UY=X*1E3-H.start;this.Y.clear();sZ(this.Ta);this.vc=this.XZ().cpn;this.api.publish("serverstitchedvideochange");this.Ta.seekTo(V); this.Ta.playVideo();this.X$||(this.X$=this.events.U(this.api,"progresssync",function(){var d=N.fA?N.fA*1E3:N.Dh,a=C.C.get(N.cpn);a&&C.Ta.removeCueRange(a);C.C.delete(N.cpn);C.V.delete(N.cpn);a=C.W.indexOf(N);a>=0&&C.W.splice(a,1);a=[];for(var E=g.F(C.S),l=E.next();!l.done;l=E.next())l=l.value,l.end<=d?C.Ta.removeCueRange(l):a.push(l);C.S=a;vwX(C,0,d+N.durationMs)})); return!0}this.Ta.k_("sdai",{skipFail:V});return!1}; var XKH=0;g.m(ygS,g.Y);g.h=ygS.prototype; g.h.Sp=function(p,C){C=C===void 0?"":C;if(this.timeline.V===C)return!0;var V=this.timeline.T,N=V==null?void 0:V.getVideoData();if(!V||!N)return this.api.k_("ssap",{htsm:V?0:1}),!1;if(this.api.G("html5_ssap_clear_timeline_before_update")){var H=this.timeline,X;(X=H.T)==null||pK1(X);H.C.clear()}H=$a(V);var d=!1;X=[];var a=new Map;V=[];var E=[],l=0,t=0,c=0,T=[];p=g.F(p);for(var M=p.next();!M.done;M=p.next())a:{var J=void 0,S=void 0,D=M.value,Z=D.clipId;if(Z){if(D.zf){c=D.zf.e7||0;M=D.zf.HY||1;var f= Number(((D.zf.yy||0)/(D.zf.T0||1)*1E3).toFixed(0));c=M=f+Number((c/M*1E3).toFixed(0))}else M=f=c,this.B9.has(Z)||this.zS.add(Z);var q=(S=a.get(Z))!=null?S:0,A=this.timeline.V;S=!1;if(A&&this.api.G("html5_ssap_clear_timeline_before_update")){if(A=this.cz.get(Z))A.start=f,A.end=M,S=!0}else{if(A){var z=Z;A=f;var Q=M,P=q,VL=jP(this.timeline,z);if(VL!=null&&VL.length){P=a){this.Zg.set(p,V);Agu(this,p,C);this.K5.set(p,(0,g.Ip)());if(V=this.cz.get(C))for(V=V.getId().split(","),V=g.F(V),d=V.next();!d.done;d=V.next())d=d.value,d!==C&&this.zS.has(d)&&(this.zS.delete(d),this.B9.add(d));NS(this);C=X.r6()/1E3;X=void 0;V=(X=g.mi(this.api.K().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?X:0;this.api.G("html5_ssap_keep_media_on_finish_segment")?this.Ta.seekTo(C+ V/1E3,{h6:!0}):this.Ta.seekTo(C+V/1E3);this.Jv?(this.api.k_("ssap",{gpfreload:this.vc}),O8X(this)||(this.Jv=!1),sZ(this.Ta,!1,!1,this.api.G("html5_ssap_keep_media_on_finish_segment"))):N&&sZ(this.Ta,!1,!1,this.api.G("html5_ssap_keep_media_on_finish_segment"));H&&this.api.playVideo(1,this.api.G("html5_ssap_keep_media_on_finish_segment"));return[p]}}}return[]}; g.h.rl=function(){var p=this.timeline.T;if(!p)return 0;var C=p.Ag();p=g.F(p.T.values());for(var V=p.next();!V.done;V=p.next()){V=g.F(V.value);for(var N=V.next();!N.done;N=V.next())N=N.value,N.Ag()>C&&(C=N.Ag())}return C/1E3}; g.h.Wa=function(){var p=this.Ta.getCurrentTime()*1E3;var C=YsX(this,p);if(!C){var V=jP(this.timeline,this.vc);if(V){V=g.F(V);for(var N=V.next();!N.done;N=V.next())N=N.value,N.r6()>p&&(C=N)}}return C&&C.getType()===1?C.r6()/1E3:0}; g.h.getVideoData=function(p){if(p===2&&!this.Iz()){if(this.bG&&this.kz.has(this.bG))return this.kz.get(this.bG);this.api.k_("ssap",{lpanf:""+lQ(this)});return null}return nw1(this)}; g.h.Iz=function(){var p=jP(this.timeline,this.vc);return(p==null?0:p.length)?p[0].getType()===2:!1}; g.h.iU=function(){var p=jP(this.timeline,this.vc);return(p==null?0:p.length)?p[0].C:!1}; g.h.seekTo=function(p,C){C=C===void 0?{}:C;var V=zHQ(this,this.Ta.getCurrentTime());this.Ta.seekTo(p+V/1E3,C)}; g.h.fC=function(p,C,V){return new g.sz(p,C,{id:V,namespace:"ssap",priority:9})}; g.h.onCueRangeEnter=function(p){if(!this.RR.has(p.getId())){this.api.k_("ssap",{oce:1,cpn:p.getId(),st:p.start,et:p.end,ct:(this.Ta.getCurrentTime()||0).toFixed(3),cmt:(this.Ta.I_()||0).toFixed(3)});for(var C=p.getId().split(","),V=0;VV+1)for(N=V+1;Nthis.V;)(V=this.data.shift())&&TR(this,V,!0);tX(this)}; g.h.remove=function(p,C){C=C===void 0?!1:C;var V=this.data.find(function(N){return N.key===p}); V&&(TR(this,V,C),g.B5(this.data,function(N){return N.key===p}),tX(this))}; g.h.removeAll=function(p){if(p=p===void 0?!1:p)for(var C=g.F(this.data),V=C.next();!V.done;V=C.next())TR(this,V.value,p);this.data=[];tX(this)}; g.h.CS=function(){var p=this;g.Y.prototype.CS.call(this);this.data.forEach(function(C){TR(p,C,!0)}); this.data=[]};g.m(MS,g.Y);MS.prototype.kd=function(p){if(p)return this.C.get(p)}; MS.prototype.CS=function(){this.T.removeAll();this.C.removeAll();g.Y.prototype.CS.call(this)};g.UmP=SS(function(){var p=window.AudioContext||window.webkitAudioContext;try{return new p}catch(C){return C.name}});g.m(EhX,g.L);g.h=EhX.prototype;g.h.DO=function(){g.lI(this.element,g.US.apply(0,arguments))}; g.h.Hz=function(){this.F0&&(this.F0.removeEventListener("focus",this.Gl),g.lK(this.F0),this.F0=null)}; g.h.iH=function(){this.fS();var p=this.app.K();p.Q1||this.DO("tag-pool-enabled");p.Y&&this.DO(g.wr.HOUSE_BRAND);p.playerStyle==="gvn"&&(this.DO("ytp-gvn"),this.element.style.backgroundColor="transparent");p.VZ&&(this.nR=g.T7("yt-dom-content-change",this.resize,this));this.U(window,"orientationchange",this.resize,this);this.U(window,"resize",this.resize,this)}; g.h.VF=function(p){g.fI(this.app.K());this.Bt=!p;JX(this)}; g.h.resize=function(){if(this.F0){var p=this.KO();if(!p.isEmpty()){var C=!g.DH(p,this.Sn.getSize()),V=MAX(this);C&&(this.Sn.width=p.width,this.Sn.height=p.height);p=this.app.K();(V||C||p.VZ)&&this.app.ea.publish("resize",this.getPlayerSize())}}}; g.h.mL=function(p,C){this.updateVideoData(C)}; g.h.updateVideoData=function(p){if(this.F0){var C=this.app.K();BW&&(this.F0.setAttribute("x-webkit-airplay","allow"),p.title?this.F0.setAttribute("title",p.title):this.F0.removeAttribute("title"));this.F0.setAttribute("controlslist","nodownload");C.oa&&p.videoId&&(this.F0.poster=p.TW("default.jpg"))}C=g.Fx(p,"yt:bgcolor");this.Ss.style.backgroundColor=C?C:"";this.Qj=EB(g.Fx(p,"yt:stretch"));this.oL=EB(g.Fx(p,"yt:crop"),!0);g.Tz(this.element,"ytp-dni",p.UV);this.resize()}; g.h.setGlobalCrop=function(p){this.Dy=EB(p,!0);this.resize()}; g.h.setCenterCrop=function(p){this.zZ=p;this.resize()}; g.h.ze=function(){}; g.h.getPlayerSize=function(){var p=this.app.K(),C=this.app.ea.isFullscreen(),V=p.externalFullscreen&&g.KI(p);if(C&&Wd()&&!V)return new g.KG(window.outerWidth,window.outerHeight);V=!isNaN(this.Ko.width)&&!isNaN(this.Ko.height);var N=this.app.K().G("kevlar_player_enable_squeezeback_fullscreen_sizing");if(C&&!V&&N)return new g.KG(this.element.clientWidth,this.element.clientHeight);if(C||p.Ox){if(window.matchMedia){p="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.T4&&this.T4.media=== p||(this.T4=window.matchMedia(p));var H=this.T4&&this.T4.matches}if(H)return new g.KG(window.innerWidth,window.innerHeight)}else if(V)return this.Ko.clone();return new g.KG(this.element.clientWidth,this.element.clientHeight)}; g.h.KO=function(){var p=this.app.K().G("enable_desktop_player_underlay"),C=this.getPlayerSize(),V=g.mi(this.app.K().experiments,"player_underlay_min_player_width");return p&&this.eK&&C.width>V?(p=g.mi(this.app.K().experiments,"player_underlay_video_width_fraction"),new g.KG(Math.min(C.height*this.getVideoAspectRatio(),C.width*p),Math.min(C.height,C.width*p/this.getVideoAspectRatio()))):C}; g.h.getVideoAspectRatio=function(){return isNaN(this.Qj)?tAu(this):this.Qj}; g.h.getVideoContentRect=function(p){var C=this.KO();p=cZy(this,C,this.getVideoAspectRatio(),p);return new g.vf((C.width-p.width)/2,(C.height-p.height)/2,p.width,p.height)}; g.h.Gz=function(p){this.eK=p;this.resize()}; g.h.WE=function(){return this.Bg}; g.h.onMutedAutoplayChange=function(){JX(this)}; g.h.setInternalSize=function(p){g.DH(this.Ko,p)||(this.Ko=p,this.resize())}; g.h.CS=function(){this.nR&&g.MM(this.nR);this.Hz();g.L.prototype.CS.call(this)};g.h=JZ1.prototype;g.h.click=function(p,C){this.elements.has(p);this.T.has(p);var V=g.bz();V&&p.visualElement&&g.Ey(V,p.visualElement,C)}; g.h.createClientVe=function(p,C,V,N){var H=this;N=N===void 0?!1:N;this.elements.has(p);this.elements.add(p);V=ZOj(V);p.visualElement=V;var X=g.bz(),d=g.IW();X&&d&&(g.Zr("combine_ve_grafts")?fz(ZF(),V,d):g.NU(g.Cq)(void 0,X,d,V));C.addOnDisposeCallback(function(){H.elements.has(p)&&H.destroyVe(p)}); N&&this.C.add(p)}; g.h.createServerVe=function(p,C,V){var N=this;V=V===void 0?!1:V;this.elements.has(p);this.elements.add(p);C.addOnDisposeCallback(function(){N.destroyVe(p)}); V&&this.C.add(p)}; g.h.destroyVe=function(p){this.elements.has(p);this.elements.delete(p);this.V.delete(p);this.T.delete(p);this.C.delete(p)}; g.h.Bl=function(p,C){this.clientPlaybackNonce!==C&&(this.clientPlaybackNonce=C,Ui(ZF(),p),mCs(this))}; g.h.setTrackingParams=function(p,C){this.elements.has(p);C&&(p.visualElement=g.ym(C))}; g.h.jb=function(p,C,V){this.elements.has(p);C?this.T.add(p):this.T.delete(p);var N=g.bz(),H=p.visualElement;this.C.has(p)?N&&H&&(C?g.sy(N,[H]):g.aS(N,[H])):C&&!this.V.has(p)&&(N&&H&&g.hO(N,H,void 0,V),this.V.add(p))}; g.h.hasVe=function(p){return this.elements.has(p)};g.m(g.vN,g.Y);g.vN.create=function(p,C,V,N){try{var H=typeof p==="string"?p:"player"+g.$H(p),X=uk[H];if(X){try{X.dispose()}catch(a){g.nm(a)}uk[H]=null}var d=new g.vN(p,C,V,N);d.addOnDisposeCallback(function(){uk[H]=null;d.XK&&d.XK()}); return uk[H]=d}catch(a){throw g.nm(a),(a&&a instanceof Error?a:Error(String(a))).stack;}}; g.h=g.vN.prototype;g.h.Uu=function(){return this.visibility}; g.h.xN=function(){this.xC||(this.xC=g.KU(rb(),sws()));return this.xC}; g.h.Hz=function(p){if(this.mediaElement){this.Eo&&(this.events.rY(this.Eo),this.Eo=null);g.Am(this.Ql);this.n4&&this.n4.Hz(!0,!1,p);this.template.Hz();try{this.G("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.FI()}catch(C){g.eG(C)}this.mediaElement=null}}; g.h.L1=function(){return this.n4}; g.h.Kr=function(){var p=this;this.n4!==this.Mo&&(this.logger.debug(function(){var C,V;return"release presenting player, type "+((C=p.n4)==null?void 0:C.getPlayerType())+", vid "+((V=p.n4)==null?void 0:V.getVideoData().videoId)}),P$(this,this.Mo))}; g.h.WW=function(p,C,V){var N=this,H=this.mM;p===2&&(H=new MM1(this.yn));p=new g.JH(this.yn,p,H,this.template,function(X,d,a){N.ea.publish(X,d,a)},function(){return N.ea.getVisibilityState()},this.visibility,this,C,V); esL(C.getPlayerResponse())&&this.G("html5_ssap_pacf_qoe_ctmp")&&p.k_("ssap",{rpa:1});return p}; g.h.v_e=function(){if(!f7(this)){this.logger.debug("application playback ready");if(this.G("html5_enable_ssap_autoplay_debug_logging")){var p;(p=this.Mo)==null||p.k_("ssap",{onpbrdy:1})}this.Lt(5)}}; g.h.Gko=function(p){if(!f7(this)){this.logger.debug("playback ready");dJa(this);var C=p.getPlayerState();p.Bo()?this.pauseVideo():C.isOrWillBePlaying()&&this.playVideo()}}; g.h.canPlayType=function(p){return or(p)}; g.h.K=function(){return this.yn}; g.h.getVideoData=function(){var p=DN(this);Yf(this,"gvd");return p.getVideoData()}; g.h.ST=CY(17);g.h.DE=function(){return this.Mo.getVideoData()}; g.h.getVideoLoadedFraction=function(p){p=g.O5(this,p);return p?g.s5(p.getVideoData())?1:(p=p.Nt())?p.qD():0:0}; g.h.dV=function(){return this.template}; g.h.Tk=function(){return this.C7}; g.h.W6=function(){return this.mM}; g.h.K6=function(p){var C=g.O5(this,1);C&&sD(C,p)}; g.h.St=function(){var p=this.C7.St();this.ea.publish("videoStatsPingCreated",p);return p}; g.h.getVolume=function(){return Math.round(this.ea.getVolume())}; g.h.isMuted=function(){return this.ea.isMuted()}; g.h.t7=function(){if(this.n4===this.Mo&&this.Sb)return this.Sb.postId}; g.h.GN$=function(){var p=this;this.G("use_rta_for_player")||(g.bH(this.yn)?g.pk(this.yn,g.XE(this.getVideoData())).then(function(C){Bk(rb(),C);IyS(p.getVideoData(),p.yn,p.xN())}):IyS(this.getVideoData(),this.yn,this.xN()))}; g.h.Cn=function(p){this.ea.publish("poTokenVideoBindingChange",p)}; g.h.kA=function(p){this.ea.publish("d6de4videobindingchange",p)}; g.h.v5=function(){this.kY&&this.kY.v5()}; g.h.vN=function(p){this.kY=p}; g.h.Fk=function(p){p===1&&(this.mM.tick("vr"),mdS(this.n4),JXy(this.mM,this.n4.getVideoData(),Xru(this)),Nvj(this.C7));var C=this.yn;(rG(C)&&C.D||g.yj(C))&&(this.tE()||this.ea.v1("onAdStateChange",p))}; g.h.setLoopVideo=function(p){this.n4===this.Mo&&this.n4.Cv()!==p&&(this.n4.setLoop(p),this.ea.Jk("onLoopChange",p))}; g.h.getLoopVideo=function(){return this.n4.Cv()}; g.h.setLoopRange=function(p){var C=!1;!!this.Sb!==!!p?C=!0:this.Sb&&p&&(C=this.Sb.startTimeMs!==p.startTimeMs||this.Sb.endTimeMs!==p.endTimeMs||this.Sb.postId!==p.postId||this.Sb.type!==p.type);if(C){if(this.n4&&id(this.getVideoData())){C=(p==null?void 0:p.endTimeMs)||-1;var V;(V=g.O5(this))==null||V.k_("slr",{et:C})}this.Mo.ZZ.qt("applooprange");if(p)V=new g.sz(p.startTimeMs,p.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.Mo.addCueRange(V);else{this.DE().clipConfig=void 0;var N,H;((N= this.Sb)==null?void 0:N.type)!=="repeatChapter"||isNaN(Number((H=this.Sb)==null?void 0:H.loopCount))||(V={loopCount:String(this.Sb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.t1("repeatChapterLoopEvent",V))}this.Sb=p;this.ea.Jk("onLoopRangeChange",p||void 0);this.n4===this.Mo&&(this.A3(),this.n4.kQ())}}; g.h.getLoopRange=function(){return this.Sb}; g.h.A3=function(){var p="";this.Sb?this.n4!==this.Mo?p="pnea":$CQ(this,this.Mo.getCurrentTime())&&(this.Sb.loopCount=0,p="ilr"):p="nlr";if(this.n4&&id(this.getVideoData()))if(this.G("html5_gapless_log_loop_range_info")){var C,V,N;(N=g.O5(this))==null||N.k_("slrre",{rej:p,ct:this.Mo.getCurrentTime(),lst:(C=this.Sb)==null?void 0:C.startTimeMs,let:(V=this.Sb)==null?void 0:V.endTimeMs})}else{var H;(H=g.O5(this))==null||H.k_("slrre",{})}p||Qya(this)}; g.h.setPlaybackRate=function(p,C){isNaN(p)||(p=uZV(this,p),this.Mo.getPlaybackRate()!==p&&(this.Mo.setPlaybackRate(p),C&&!this.yn.S&&g.Yl("yt-player-playback-rate",p),this.ea.v1("onPlaybackRateChange",p)))}; g.h.getCurrentTime=function(p,C,V){C=C===void 0?!0:C;if(this.getPresentingPlayerType()===3)return R$(this.C7).getCurrentTime();var N=p===2&&this.getVideoData().enableServerStitchedDai,H=g.pf(this.getVideoData());Yf(this,"gct");p=N||H?g.O5(this):g.O5(this,p);if(!p)return 0;if(H&&this.Ze)return C=this.Ze,p=p.getCurrentTime(),V?V=HN(C,V):(V=zHQ(C,p),V=p-V/1E3),V;if(C){if(N&&this.PV&&(V=this.PV.UY/1E3,V!==0))return V;V=Ut(this,p.HP);return kf(this,V.getCurrentTime(),V)}N&&this.PV?(V=this.PV,p=p.getCurrentTime(), V=(V=a2H(V,p*1E3))?p-V.start/1E3:p):V=p.getCurrentTime();return V}; g.h.k6=function(){var p=uj(this);if(!p)return 0;p=Ut(this,p);return kf(this,p.k6(),p)}; g.h.getDuration=function(p,C){C=C===void 0?!0:C;var V=this.getVideoData(),N=p===2&&V.enableServerStitchedDai,H=g.pf(V);var X=N||H?g.O5(this):g.O5(this,p);if(!X)return 0;if(V.hasProgressBarBoundaries()&&!N&&!H){var d,a=Number((d=V.progressBarStartPosition)==null?void 0:d.utcTimeMillis),E;V=Number((E=V.progressBarEndPosition)==null?void 0:E.utcTimeMillis);if(!isNaN(a)&&!isNaN(V))return(V-a)/1E3}Yf(this,"agd");if(H&&this.Ze)return C=RHQ(this.Ze,this.Ze.yv()),p===1&&C===0?X.getDuration():C;if(C)return X= ZN(this,X.HP),kf(this,X.getDuration(),X);N&&this.PV?(p=this.PV,X=X.getCurrentTime(),X=(X=EwV(p,X*1E3))?X.durationMs/1E3:0):X=X.getDuration();return X}; g.h.Xt=function(p){var C=uj(this,p);return C?this.tE(C)?(C=ZN(this,C),C.Xt()-C.getCurrentTime()+this.getCurrentTime(p)):C.Xt():0}; g.h.iI=function(){return this.W_}; g.h.addPlayerResponseForAssociation=function(p){this.Ze&&this.Ze.addPlayerResponseForAssociation(p)}; g.h.finishSegmentByCpn=function(p,C,V){Yf(this,"afsc");return this.Ze?this.Ze.finishSegmentByCpn(p,C,V):[]}; g.h.iH=function(){this.template.iH();var p=this.ea;p.state.element=this.template.element;var C=p.state.element,V;for(V in p.state.T)p.state.T.hasOwnProperty(V)&&(C[V]=p.state.T[V]);(p=PfH(this.template.element))&&this.events.U(this.template,p,this.onFullscreenChange);this.events.U(window,"resize",this.FMY)}; g.h.getDebugText=function(p){var C=this.Mo.X0(p);if(this.n4&&this.n4!==this.Mo){for(var V=this.n4.X0(p),N=g.F(Object.keys(V)),H=N.next();!H.done;H=N.next())H=H.value,C["ad"+H]=V[H];if(p){V=C;N={};if(H=BG(document,"movie_player"))N.bounds=H.getBoundingClientRect(),N["class"]=H.className;H={};var X=g.ju("video-ads");X?(lPu(X,H),H.html=X.outerHTML):H.missing=1;X={};var d=g.ju("videoAdUiSkipContainer"),a=g.ju("ytp-ad-skip-button-container"),E=g.ju("ytp-skip-ad-button"),l=d||a||E;l?(lPu(l,X),X.ima=d?1: 0,X.bulleit=a?1:0,X.component=E?1:0):X.missing=1;N=JSON.stringify({player:N,videoAds:H,skipButton:X});V.ad_skipBtnDbgInfo=N}}p&&this.mediaElement&&(C["0sz"]=""+(+uc(this.mediaElement.getSize())===0),C.op=this.mediaElement.I2("opacity"),V=this.mediaElement.rz().y+this.mediaElement.getSize().height,C.yof=""+(+V<=0),C.dis=this.mediaElement.I2("display"));p&&((p=(0,g.bF)())&&(C.gpu=p),(p=this.yn.playerStyle)&&(C.ps=p),this.yn.R$&&(C.webview=1));C.debug_playbackQuality=this.ea.getPlaybackQuality(1);C.debug_date= (new Date).toString();C.origin=window.origin;C.timestamp=Date.now();delete C.uga;delete C.q;return JSON.stringify(C,null,2)}; g.h.getFeedbackProductData=function(){var p={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.K().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20241215_00_RC00"},C=this.getPlayerStateObject().UE;C&&(p.player_error_code=C.errorCode,p.player_error_details=JSON.stringify(C.errorDetail));return p}; g.h.getPresentingPlayerType=function(p){Yf(this,"gppt");if(this.appState===1)return 1;if(f7(this))return 3;var C;if(p&&((C=this.PV)==null?0:C.Iz(this.getCurrentTime())))return 2;var V;return g.pf(this.getVideoData())&&((V=this.Ze)==null?0:V.Iz())?2:g.O5(this).getPlayerType()}; g.h.iU=function(){Yf(this,"invp");return g.pf(this.getVideoData())&&this.Ze?this.Ze.iU():!1}; g.h.getPlayerStateObject=function(p){return this.getPresentingPlayerType()===3?R$(this.C7).g7:g.O5(this,p).getPlayerState()}; g.h.getAppState=function(){return this.appState}; g.h.VG=function(p){switch(p.type){case "loadedmetadata":this.Tx.start();p=g.F(this.HC);for(var C=p.next();!C.done;C=p.next())C=C.value,NDy(this,C.id,C.LSe,C.WS$,void 0,!1);this.HC=[];break;case "loadstart":this.mM.Hm("gv");break;case "progress":case "timeupdate":tj(p.target.yx())>=2&&this.mM.Hm("l2s");break;case "playing":g.gG&&this.Tx.start();if(g.bH(this.yn))p=!1;else{C=g.Pk(this.Tk());p=this.mediaElement.I2("display")==="none"||uc(this.mediaElement.getSize())===0;var V=mP(this.template),N=this.n4.getVideoData(), H=g.gk(this.yn);N=hl(N);C=!V||C||H||N||this.yn.Wc;p=p&&!C}p&&(this.n4.k_("hidden",{},!0),this.getVideoData().wy||(this.getVideoData().wy=1,this.iV(),this.n4.playVideo()))}}; g.h.onLoadProgress=function(p,C){this.ea.Ba("onLoadProgress",C)}; g.h.W6S=function(){this.ea.publish("playbackstalledatstart")}; g.h.b1a=function(p,C){this.ea.publish("sabrCaptionsDataLoaded",p,C)}; g.h.onVideoProgress=function(p,C){p=Ut(this,p.HP);C=kf(this,p.getCurrentTime(),p);this.ea.v1("onVideoProgress",C)}; g.h.onAutoplayBlocked=function(){this.ea.v1("onAutoplayBlocked");var p,C=(p=g.O5(this))==null?void 0:p.getVideoData();C&&(C.lG=!0)}; g.h.tbr=function(){this.ea.publish("progresssync")}; g.h.Nye=function(){this.ea.Ba("onPlaybackPauseAtStart")}; g.h.iSk=function(p){if(this.getPresentingPlayerType()===1){g.u$(p,1)&&!g.r(p.state,64)&&this.DE().isLivePlayback&&this.Mo.isAtLiveHead()&&this.ea.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.u$(p,2)){if(this.Sb&&this.Sb.endTimeMs>=(this.getDuration()-1)*1E3){Qya(this);return}k31(this)}if(g.r(p.state,128)){var C=p.state;this.cancelPlayback(5);C=C.UE;JSON.stringify({errorData:C,debugInfo:this.getDebugText(!0)});this.ea.v1("onError",w1y(C.errorCode));this.ea.Ba("onDetailedError",{errorCode:C.errorCode, errorDetail:C.errorDetail,message:C.errorMessage,messageKey:C.Ye,cpn:C.cpn});(0,g.Ip)()-this.yn.d6>6048E5&&this.ea.Ba("onReloadRequired")}C={};if(p.state.isPlaying()&&!p.state.isBuffering()&&!dc("pbresume","ad_to_video")&&dc("_start","ad_to_video")){var V=this.getVideoData();C.clientPlaybackNonce=V.clientPlaybackNonce;V.videoId&&(C.videoId=V.videoId);g.HH(C,"ad_to_video");NR("pbresume",void 0,"ad_to_video");Nvj(this.C7)}this.ea.publish("applicationplayerstatechange",p)}}; g.h.O3=function(p){this.getPresentingPlayerType()!==3&&this.ea.publish("presentingplayerstatechange",p)}; g.h.wi=function(p){K7(this,KV(p.state));g.r(p.state,1024)&&this.ea.isMutedByMutedAutoplay()&&(AX(this,{muted:!1,volume:this.zU.volume},!1),oC(this,!1))}; g.h.sU=function(p,C,V){p==="newdata"&&ZlQ(this);this.ea.publish("applicationvideodatachange",p,V)}; g.h.jB=function(p,C){this.ea.Ba("onPlaybackAudioChange",this.ea.getAudioTrack().K4.name);this.ea.publish("internalaudioformatchange",this.ea.getAudioTrack().K4.id,C)}; g.h.yX=function(p){var C=this.n4.getVideoData();p===C&&this.ea.v1("onPlaybackQualityChange",p.C.video.quality)}; g.h.y4=function(){var p=this.Lq.T[2]||null;if(p){var C=p.getVideoData();p=p.MU;var V;(V=g.O5(this))==null||V.k_("ssdai",{cleanaply:1,acpn:C==null?void 0:C.clientPlaybackNonce,avid:C.videoId,ccpn:p,sccpn:this.DE().clientPlaybackNonce===p?1:0,isDai:this.DE().enableServerStitchedDai?1:0});delete this.Lq.T[2]}}; g.h.onVideoDataChange=function(p,C,V){this.logger.debug(function(){return"on video data change "+p+", player type "+C.getPlayerType()+", vid "+V.videoId}); this.yn.Gk()&&C.k_("vdc",{type:p,vid:V.videoId||"",cpn:V.clientPlaybackNonce||""});C===this.Mo&&(this.yn.Nw=V.oauthToken);if(C===this.Mo){this.getVideoData().enableServerStitchedDai&&!this.PV?this.PV=new g.W$(this.ea,this.yn,this.Mo):!this.getVideoData().enableServerStitchedDai&&this.PV&&(this.PV.dispose(),this.PV=null);if(this.yn.Gk()&&g.pf(V)){var N,H;C.k_("ssap",{vdctype:p,vid:V.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((N=this.W_.T)==null?void 0:(H=N.getVideoData())== null?void 0:H.clientPlaybackNonce)||""})}var X,d;!g.pf(this.getVideoData())||p!=="newdata"&&p!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((X=this.W_.T)==null?void 0:(d=X.getVideoData())==null?void 0:d.clientPlaybackNonce)?!g.pf(this.getVideoData())&&this.Ze&&(this.yn.Gk()&&C.k_("ssap",{tlmdis:2,vid:V.videoId||"",cpn:V.clientPlaybackNonce||""}),this.Ze.dispose(),this.Ze=null):(riV(this.W_),this.G("html5_ssap_cleanup_ad_player_on_new_data")&&this.y4(),N=gR(this.W_,1,0,this.getDuration(1)* 1E3,this.getVideoData()),this.W_.enqueue(N,!0),Lv(this.W_,0,this.getDuration(1)*1E3,[N]),BpY(this.W_,this.getVideoData().clientPlaybackNonce,[N]),this.Ze&&(this.Ze.dispose(),this.Ze=null,this.yn.Gk()&&C.k_("ssap",{tlmdis:1})),this.yn.Gk()&&C.k_("ssap",{tlmcreate:1}),this.Ze=new ygS(this.ea,this.W_,this.Mo),this.Mo.hK(this.Ze))}if(p==="newdata")this.logger.debug("new video data, destroy modules"),ev(this.C7,2),this.ea.publish("videoplayerreset",C);else{if(!this.mediaElement)return;p==="dataloaded"&& (this.n4===this.Mo?(og(V.I$,V.PL),nha(this)):zm1(this));C.getPlayerType()===1&&(this.yn.Y_&&Esv(this),this.getVideoData().isLivePlayback&&!this.yn.JF&&this.Qf("html5.unsupportedlive",2,"DEVICE_FALLBACK"),V.isLoaded()&&((C51(V)||this.getVideoData().yR)&&this.ea.publish("legacyadtrackingpingchange",this.getVideoData()),V.hasProgressBarBoundaries()&&Bi1(this)));this.ea.publish("videodatachange",p,V,C.getPlayerType())}this.ea.v1("onVideoDataChange",{type:p,playertype:C.getPlayerType()});this.A3();(N= V.uK)?this.fV.Bl(N,V.clientPlaybackNonce):mCs(this.fV)}; g.h.X3=function(){yw(this,null);this.ea.Ba("onPlaylistUpdate")}; g.h.Byk=function(p){delete this.Ol[p.getId()];this.Mo.removeCueRange(p);a:{p=this.getVideoData();var C,V,N,H,X,d,a,E,l,t,c=((C=p.Ga)==null?void 0:(V=C.contents)==null?void 0:(N=V.singleColumnWatchNextResults)==null?void 0:(H=N.autoplay)==null?void 0:(X=H.autoplay)==null?void 0:X.sets)||((d=p.Ga)==null?void 0:(a=d.contents)==null?void 0:(E=a.twoColumnWatchNextResults)==null?void 0:(l=E.autoplay)==null?void 0:(t=l.autoplay)==null?void 0:t.sets);if(c)for(C=g.F(c),V=C.next();!V.done;V=C.next())if(V=V.value, H=N=void 0,V=V.autoplayVideo||((N=V.autoplayVideoRenderer)==null?void 0:(H=N.autoplayEndpointRenderer)==null?void 0:H.endpoint),N=g.n(V,g.VB),X=H=void 0,V!=null&&((H=N)==null?void 0:H.videoId)===p.videoId&&((X=N)==null?0:X.continuePlayback)){p=V;break a}p=null}(C=g.n(p,g.VB))&&this.ea.Jk("onPlayVideo",{sessionData:{autonav:"1",itct:p==null?void 0:p.clickTrackingParams},videoId:C.videoId,watchEndpoint:C})}; g.h.Lt=function(p){var C=this;p!==this.appState&&(this.logger.debug(function(){return"app state change "+C.appState+" -> "+p}),p===2&&this.getPresentingPlayerType()===1&&(K7(this,-1),K7(this,5)),this.appState=p,this.ea.publish("appstatechange",p))}; g.h.Qf=function(p,C,V,N,H){this.Mo.a_(p,C,V,N,H)}; g.h.A2=function(p,C){this.Mo.handleError(new qD(p,C))}; g.h.isAtLiveHead=function(p,C){C=C===void 0?!1:C;var V=uj(this,p);if(!V)return!1;p=ZN(this,V);V=Ut(this,V);return p!==V?p.isAtLiveHead(kf(this,V.getCurrentTime(),V),!0):p.isAtLiveHead(void 0,C)}; g.h.uX=function(){var p=uj(this);return p?ZN(this,p).uX():0}; g.h.seekTo=function(p,C,V,N,H){C=C!==!1;if(N=g.O5(this,N))this.appState===2&&IC(this),Yf(this,"seekTo"),this.tE(N.HP)?xf(this)?this.PV.seekTo(p,{seekSource:H},C,V):this.GB.seekTo(p,{seekSource:H},C,V):g.pf(this.getVideoData())&&this.Ze?this.Ze.seekTo(p,{yC:!C,IJ:V,NZ:"application",seekSource:H}):N.seekTo(p,{yC:!C,IJ:V,NZ:"application",seekSource:H})}; g.h.seekBy=function(p,C,V,N){this.seekTo(this.getCurrentTime()+p,C,V,N)}; g.h.M$=function(){this.ea.v1("SEEK_COMPLETE")}; g.h.Ci=function(){this.ea.Jk("onAbnormalityDetected")}; g.h.onSnackbarMessage=function(p){this.ea.Jk("onSnackbarMessage",p)}; g.h.sNr=function(p,C){var V=p.getVideoData();if(this.appState===1||this.appState===2)V.startSeconds=C;this.appState===2?g.r(p.getPlayerState(),512)||IC(this):this.ea.v1("SEEK_TO",C)}; g.h.onAirPlayActiveChange=function(){this.ea.publish("airplayactivechange");this.yn.G("html5_external_airplay_events")&&this.ea.Ba("onAirPlayActiveChange",this.ea.gi())}; g.h.onAirPlayAvailabilityChange=function(){this.ea.publish("airplayavailabilitychange");this.yn.G("html5_external_airplay_events")&&this.ea.Ba("onAirPlayAvailabilityChange",this.ea.Po())}; g.h.showAirplayPicker=function(){var p;(p=this.n4)==null||p.fT()}; g.h.rd=function(){this.ea.publish("beginseeking")}; g.h.vy=function(){this.ea.publish("endseeking")}; g.h.getStoryboardFormat=function(p){return(p=uj(this,p))?ZN(this,p).getVideoData().getStoryboardFormat():null}; g.h.C$=function(p){return(p=uj(this,p))?ZN(this,p).getVideoData().C$():null}; g.h.tE=function(p){p=p||DN(this);var C=!1;if(p){p=p.getVideoData();if(xf(this))p=p===this.PV.Ta.getVideoData();else a:if(C=this.GB,p===C.T.getVideoData()&&C.C.length)p=!0;else{C=g.F(C.C);for(var V=C.next();!V.done;V=C.next())if(p.OZ===V.value.OZ){p=!0;break a}p=!1}C=p}return C}; g.h.JY=function(p,C,V,N,H,X,d){this.logger.debug(function(){return"Adding video to timeline id="+p.video_id+"\n lengthMs="+N+" enterTimeMs="+H}); var a="",E=xf(this),l;(l=g.O5(this))==null||l.k_("appattl",{sstm:this.PV?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:E});a=E?dwY(this.PV,p,C,V,N,H,X,d):Qzj(this.GB,p,V,N,H,X);this.logger.debug(function(){return"Video added to timeline id="+p.video_id+" timelinePlaybackId="+a}); return a}; g.h.hA=function(p,C,V,N,H,X,d){if(xf(this)){var a=dwY(this.PV,p,C,V,N,H,X,d);this.logger.debug(function(){return"Remaining video added to timeline id="+p.video_id+" timelinePlaybackId="+a})}return""}; g.h.TE=function(p){var C;(C=this.PV)==null||C.TE(p)}; g.h.Th=function(p,C){p=p===void 0?-1:p;C=C===void 0?Infinity:C;xf(this)||Hlu(this.GB,p,C)}; g.h.al=function(p,C,V){if(xf(this)){var N=this.PV,H=N.wy.get(p);H?(V===void 0&&(V=H.Ai),H.durationMs=C,H.Ai=V):N.SH("Invalid_timelinePlaybackId_"+p+"_specified")}else{N=this.GB;H=null;for(var X=g.F(N.C),d=X.next();!d.done;d=X.next())if(d=d.value,d.OZ===p){H=d;break}H?(V===void 0&&(V=H.Ai),Niy(N,H,C,V)):dJ(N,"InvalidTimelinePlaybackId timelinePlaybackId="+p)}}; g.h.enqueueVideoByPlayerVars=function(p,C,V,N){V=V===void 0?Infinity:V;N=N===void 0?"":N;this.tE();p=new g.YB(this.yn,p);N&&(p.OZ=N);G3u(this,p,C,V)}; g.h.queueNextVideo=function(p,C,V,N,H){V=V===void 0?NaN:V;p=this.preloadVideoByPlayerVars(p,C===void 0?1:C,V,N===void 0?"":N,H===void 0?"":H);C=this.L1();p&&C&&(this.G("html5_check_queue_on_data_loaded")?this.K().supportsGaplessShorts()&&C.getVideoData().J&&(V=this.TX,N=this.tX.D,V.V!==p&&(V.n4=C,V.V=p,V.C=1,V.T=p.getVideoData(),V.S=N,V.T.isLoaded()?V.W():V.T.subscribe("dataloaded",V.W,V))):(V=ubQ(C,p,this.tX.D),V!=null?(C.k_("sgap",V),C.getVideoData().J&&yX(C,!1)):(p=p.getVideoData(),C=this.TX,C.T!== p&&(C.T=p,C.C=1,p.isLoaded()?C.Y():C.T.subscribe("dataloaded",C.Y,C)))))}; g.h.KC=function(p,C,V,N){var H=this;V=V===void 0?0:V;N=N===void 0?0:N;var X=g.O5(this);X&&ZN(this,X.HP).Si();YPX(this.tX,p,C,V,N).then(function(){H.ea.Ba("onQueuedVideoLoaded")},function(){})}; g.h.SS=function(){return this.tX.SS()}; g.h.tA=function(p){return this.tX.tA(p)}; g.h.clearQueue=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;this.logger.debug("Clearing queue");this.tX.clearQueue(p,C)}; g.h.loadVideoByPlayerVars=function(p,C,V,N,H,X){C=C===void 0?1:C;if(C===2&&this.DE().enableServerStitchedDai&&this.Mo&&!X9(this.Mo)){var d;(d=this.Mo)==null||d.k_("lvonss",{vid:(p==null?void 0:p.videoId)||"",ptype:C});return!1}var a=!1;d=new g.YB(this.yn,p);d.reloadPlaybackParams=X;g.LI(this.yn)&&!d.X4&&fn(this.mM);var E;X=this.mM;var l=(E=d.Y_)!=null?E:"";X.timerName=l;this.mM.Cd("pl_i");this.G("web_player_early_cpn")&&d.clientPlaybackNonce&&this.mM.infoGel({clientPlaybackNonce:d.clientPlaybackNonce}); if(!fya(d).supportsVp9Encoding){var t;(t=g.O5(this))==null||t.k_("noVp9",{})}if(this.K().supportsGaplessShorts()){E=R7a(this.tX,d,C);if(E==null){K7(this,-1);p=this.tX;p.app.K().G("html5_gapless_new_slr")?ghv(p.app,"gaplessshortslooprange"):p.app.setLoopRange(null);p.app.getVideoData().Bv=!0;var c,T;(c=p.T)==null||(T=c.nS)==null||T.resume();var M;(M=p.T)==null||$b(M.Pc());V={NZ:"gapless_to_next_video",seekSource:60};var J;(J=p.app.L1())==null||J.seekTo(z7a(p),V);if(!p.app.getPlayerStateObject(C).isPlaying()){var S; (S=g.O5(p.app))==null||S.playVideo(!0)}p.Y();return!0}J=this.G("html5_shorts_gapless_preload_fallback");S=this.tX.T;J&&S&&!S.fS()&&(c=S.getVideoData(),c=this.yn.G("html5_autonav_autoplay_in_preload_key")?RC(this,C,c):n7(this,C,c.videoId,c.OZ),this.Lq.C.set(c,S,3600));this.tX.clearQueue(J);var D;(D=g.O5(this))==null||D.k_("sgap",{f:E})}if(H){for(;d.mm.length&&d.mm[0].isExpired();)d.mm.shift();a=d.mm.length-1;a=a>0&&H.C(d.mm[a])&&H.C(d.mm[a-1]);d.mm.push(H)}V||(p&&FPv(p)?(nI(this.yn)&&!this.Cq&&(p.fetch= 0),yw(this,p)):this.playlist&&yw(this,null),p&&(this.Cq=iO(!1,p.external_list)));this.ea.publish("loadvideo");C=this.Kv(d,C,N);a&&this.Qf("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+d.mm.join()).replace(/[;:,]/g,"_"));return C}; g.h.preloadVideoByPlayerVars=function(p,C,V,N,H){C=C===void 0?1:C;V=V===void 0?NaN:V;N=N===void 0?"":N;H=H===void 0?"":H;var X="";if(this.yn.G("html5_autonav_autoplay_in_preload_key"))X=CD1(this,C,p,H);else{var d=lO(p);X=n7(this,C,d,H)}if(this.Lq.C.get(X))return this.logger.debug(function(){return"already preloaded "+X}),null; p=new g.YB(this.yn,p);H&&(p.OZ=H);return pra(this,p,C,V,N)}; g.h.setMinimized=function(p){this.visibility.setMinimized(p);(p=dEH(this.C7))&&(this.isMinimized()?p.load():p.unload());this.ea.publish("minimized")}; g.h.setInline=function(p){this.visibility.setInline(p)}; g.h.setInlinePreview=function(p){this.visibility.setInline(p);p=this.C7;p=p.N.K().showInlinePreviewUi?p.Ji.get("inline_preview"):void 0;p&&(this.isInline()?p.load():p.unload(),this.ea.Jk("onInlinePreviewModeChange"))}; g.h.wJ=function(p){var C=this.yn.G("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",V=this.yn.lf&&this.yn.G("html5_block_pip_with_events")||C;p&&V&&this.getVideoData()&&!this.getVideoData().backgroundable?this.ow&&C?this.ow.start():this.E0():this.visibility.wJ(p)}; g.h.setSqueezeback=function(p){this.visibility.setSqueezeback(p)}; g.h.E0=function(){var p,C=(p=this.mediaElement)==null?void 0:p.V$();C&&D3(C).catch(function(V){return g.eG(V)})}; g.h.CJk=function(){this.mediaElement.V$();this.mediaElement.V$().webkitPresentationMode==="picture-in-picture"?this.wJ(!0):this.wJ(!1)}; g.h.togglePictureInPicture=function(){var p=g.O5(this);p&&p.togglePictureInPicture()}; g.h.Kv=function(p,C,V){C=C===void 0?1:C;this.logger.debug(function(){return"start load video, id "+p.videoId+", type "+C}); dc("_start",this.mM.timerName)||g.NU(r3)(void 0,this.mM.timerName);var N=!1,H=wtV(this,C,p,!1);H?(N=!0,p.dispose()):(H=Yx1(this,C,p,V),(this.G("html5_onesie")||this.G("html5_load_before_stop"))&&m5(H)&&g.vO(H),this.Tx.stop(),C===1&&C!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,C),P$(this,H));H===this.Mo&&(this.yn.Nw=p.oauthToken);if(!m5(H))return!1;if(H===this.Mo){this.Lt(1);V=IC(this);if(N&&this.G("html5_player_preload_ad_fix")&&H.getPlayerType()===1&&H.Ec.finished)this.onVideoDataChange("dataloaded", H,H.getVideoData());return V}gWY(H);return!0}; g.h.cueVideoByPlayerVars=function(p,C){var V=this;C=C===void 0?1:C;if(this.DE().enableServerStitchedDai&&this.Mo&&!X9(this.Mo)&&p&&Object.keys(p).length>0){var N;(N=this.Mo)==null||N.k_("qvonss",{vid:(p==null?void 0:p.videoId)||"",ptype:C})}else if(p&&FPv(p))if(this.eL=!0,yw(this,p),(p=g.OC(this.playlist))&&p.GN())PN(this,p,C);else this.playlist.onReady(function(){qS(V)}); else{C||(C=this.getPresentingPlayerType());C===1&&this.X3();N=new g.YB(this.yn,p);var H=g.KI(this.yn)&&!this.yn.b_&&C===1&&!N.isAd()&&!N.Q$;this.ea.publish("cuevideo");H?(this.L1().getVideoData().loading=!0,fNH(N,p?p:{}).then(function(X){PN(V,X,C)}),N.dispose()):PN(this,N,C)}}; g.h.Ce=function(p,C,V,N,H,X,d){if(!p&&!V)throw Error("Playback source is invalid");if(uL(this.yn)||g.qz(this.yn))return C=C||{},C.lact=bV(),C.vis=this.ea.getVisibilityState(),this.ea.Jk("onPlayVideo",{videoId:p,watchEndpoint:X,sessionData:C,listId:V}),!1;mSs(this.mM);this.mM.reset();p={video_id:p};N&&(p.autoplay="1");N&&(p.autonav="1");X&&(p.player_params=X.playerParams);d&&(p.oauth_token=d);V?(p.list=V,this.loadPlaylist(p)):this.loadVideoByPlayerVars(p,1);return!0}; g.h.cuePlaylist=function(p,C,V,N){this.eL=!0;jRv(this,p,C,V,N)}; g.h.loadPlaylist=function(p,C,V,N){this.eL=!1;jRv(this,p,C,V,N)}; g.h.oF=function(){return this.ea.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.bT())}; g.h.ZO=CY(13); g.h.nextVideo=function(p,C){var V=g.NI(this.Mo.getVideoData());g.gb(this.ea)&&V?this.Ce(V.videoId,C?V.e9:V.sessionData,V.playlistId,C,void 0,V.aK||void 0):this.Cq?this.ea.Ba("onPlaylistNext"):this.getPresentingPlayerType()===3?R$(this.C7).nextVideo():!this.playlist||nI(this.yn)&&!this.ea.isFullscreen()||(this.playlist.bT(p)&&DSs(this.playlist,StX(this.playlist)),this.playlist.loaded?(p=C&&this.yn.G("html5_player_autonav_logging"),C&&this.ea.publish("playlistautonextvideo"),this.Kv(g.OC(this.playlist,void 0, C,p),1)):this.eL=!1)}; g.h.previousVideo=function(p){this.Cq?this.ea.Ba("onPlaylistPrevious"):this.getPresentingPlayerType()===3?R$(this.C7).Ul():!this.playlist||nI(this.yn)&&!this.ea.isFullscreen()||(this.playlist.gj(p)&&DSs(this.playlist,KPS(this.playlist)),this.playlist.loaded?this.Kv(g.OC(this.playlist),1):this.eL=!1)}; g.h.playVideoAt=function(p){this.Cq?this.ea.Ba("onPlaylistIndex",p):this.playlist&&(this.playlist.loaded?this.Kv(g.OC(this.playlist,p),1):this.eL=!1,DSs(this.playlist,p))}; g.h.getPlaylist=function(){return this.playlist}; g.h.bP=CY(21);g.h.E_a=function(p){this.ea.v1("onCueRangeEnter",p.getId())}; g.h.u$V=function(p){this.ea.v1("onCueRangeExit",p.getId())}; g.h.lN=function(){var p=g.RT(this.Tk());p&&p.lN()}; g.h.Qs=function(p,C,V){var N=g.O5(this,C);if(N){var H=this.DE();if(g.pf(H)){Yf(this,"acrl");if(this.Ze)if(this.G("html5_ssap_enable_cpn_triggered_media_end")&&N.getPlayerType()===2&&this.Ze.Iz()&&(this.Mo.k_("ssap",{acrla:p.length?p[0].getId():"",acrll:p.length,pt:N.getPlayerType(),acpn:N.getVideoData().clientPlaybackNonce,ccpn:this.Mo.getVideoData().clientPlaybackNonce}),N=this.Mo),C===1)for(var X=zJ(this.Ze,H.clientPlaybackNonce),d=g.F(p),a=d.next();!a.done;a=d.next())a=a.value,a.start+=X,a.end+= X,a.SI=X,a.V=H.clientPlaybackNonce;else if(this.G("html5_ssap_enable_cpn_triggered_media_end")&&C===2)for(this.getPresentingPlayerType(),H=g.F(p),X=H.next();!X.done;X=H.next())X.value.V=this.Ze.yv();H=g.F(p);for(X=H.next();!X.done;X=H.next())d=void 0,X.value.playerType=(d=C)!=null?d:1}N.Qs(p,V);C&&this.getPresentingPlayerType()!==C||SM(this,"cuerangesadded",p)}else this.G("html5_ssap_enable_cpn_triggered_media_end")&&this.Mo.k_("ssap",{acrlpnf:this.Mo.getVideoData().clientPlaybackNonce})}; g.h.bK=function(p,C){var V=g.O5(this,C);V&&(V.bK(p),C&&this.getPresentingPlayerType()!==C||SM(this,"cuerangesremoved",p))}; g.h.bz=function(p){var C=this.L1()||this.Mo,V=C.ZZ;if(V){var N=this.getPresentingPlayerType();if(this.yn.Gk()){var H=V.Ht("ad");C.k_("ssap",{hac:H?"1":"0",cpn:p,pt:N})}return this.G("html5_ssap_enable_cpn_triggered_media_end")?V.bz(N,p):V.bz(N)}return 0}; g.h.znS=function(){function p(){var N=C.screenLayer||(C.isMinimized()?3:0),H=g.bz(N);if(H&&H!=="UNDEFINED_CSN"){var X=C.yn.G("web_player_attach_player_response_ve"),d=C.yn.G("web_playback_associated_ve");N={cpn:C.getVideoData().clientPlaybackNonce,csn:H};C.getVideoData().Sa&&(X||d)&&(X=g.ym(C.getVideoData().Sa),g.hO(H,X),d&&(N.playbackVe=X.getAsJson()));C.getVideoData().queueInfo&&(N.queueInfo=C.getVideoData().queueInfo);H={};C.G("web_playback_associated_log_ctt")&&C.getVideoData().Y&&(H.cttAuthInfo= {token:C.getVideoData().Y,videoId:C.getVideoData().videoId});g.t1("playbackAssociated",N,H)}else g.eG(new g.Bw("CSN Missing or undefined during playback association"))} var C=this;this.getPresentingPlayerType();JXy(this.mM,this.n4.getVideoData(),Xru(this));Ot(this)&&this.yn.S&&B_(this.DE())==="embedded"&&this.PY&&Math.random()<.01&&g.t1("autoplayTriggered",{intentional:this.intentionalPlayback});this.PY=!1;Nvj(this.C7);this.G("web_player_defer_ad")&&RmL(this);this.ea.Ba("onPlaybackStartExternal");(this.yn.G("mweb_client_log_screen_associated"),kS(this.yn))||p();var V={};this.getVideoData().Y&&(V.cttAuthInfo={token:this.getVideoData().Y,videoId:this.getVideoData().videoId}); V.sampleRate=20;XA("player_att",V);if(this.getVideoData().botguardData||this.G("fetch_att_independently"))g.wG(this.yn)||Lb(this.yn)==="MWEB"?g.Vl(g.HW(),function(){bj(C)}):bj(this); this.A3();WFy(this)}; g.h.f8=function(){this.ea.publish("internalAbandon");zR(this)}; g.h.onApiChange=function(){this.yn.D&&this.n4?this.ea.v1("onApiChange",this.n4.getPlayerType()):this.ea.v1("onApiChange")}; g.h.Ihx=function(){var p=this.mediaElement;p={volume:g.J9(Math.floor(p.getVolume()*100),0,100),muted:p.AR()};p.muted||oC(this,!1);this.zU=g.zh(p);this.ea.v1("onVolumeChange",p)}; g.h.mutedAutoplay=function(p){var C=this.getVideoData().videoId;isNaN(this.tH)&&(this.tH=this.getVideoData().startSeconds);if(!this.G("embeds_enable_full_length_inline_muted_autoplay"))C&&(this.loadVideoByPlayerVars({video_id:C,playmuted:!0,start:this.tH}),this.ea.Ba("onMutedAutoplayStarts"));else if((p==null?0:p.videoId)||C)this.loadVideoByPlayerVars({video_id:(p==null?0:p.videoId)?p==null?void 0:p.videoId:C,playmuted:!0,start:this.tH,muted_autoplay_duration_mode:p==null?void 0:p.durationMode}), this.ea.Ba("onMutedAutoplayStarts")}; g.h.onFullscreenChange=function(){var p=iL9(this);this.ze(p?1:0);sRa(this,!!p)}; g.h.ze=function(p){var C=!!p,V=!!this.OI()!==C;this.visibility.ze(p);this.template.ze(C);this.G("html5_media_fullscreen")&&!C&&this.mediaElement&&iL9(this)===this.mediaElement.V$()&&this.mediaElement.RF();this.template.resize();V&&this.mM.tick("fsc");V&&(this.ea.publish("fullscreentoggled",C),p=this.DE(),C={fullscreen:C,videoId:p.Kj||p.videoId,time:this.getCurrentTime()},this.ea.getPlaylistId()&&(C.listId=this.ea.getPlaylistId()),this.ea.v1("onFullscreenChange",C))}; g.h.jE=function(){return this.visibility.jE()}; g.h.isFullscreen=function(){return this.visibility.isFullscreen()}; g.h.OI=function(){return this.visibility.OI()}; g.h.FMY=function(){this.n4&&(this.OI()!==0&&this.OI()!==1||this.ze(iL9(this)?1:0),this.yn.lf&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.RF())}; g.h.kkY=function(p){this.getPresentingPlayerType()!==3&&this.ea.publish("liveviewshift",p)}; g.h.playVideo=function(p,C){this.logger.debug(function(){return"play video, player type "+p}); var V=g.O5(this,p);V&&(this.appState===2?(g.LI(this.yn)&&fn(this.mM),IC(this)):g.r(V.getPlayerState(),2)?(C=36,this.getVideoData().rR()&&(C=37),this.seekTo(0,void 0,void 0,void 0,C)):V.playVideo(!1,C))}; g.h.pauseVideo=function(p,C){(p=g.O5(this,p))&&p.pauseVideo(C)}; g.h.stopVideo=function(p){p=p===void 0?!1:p;this.logger.debug(function(){return"stop video"}); var C=this.Mo.getVideoData(),V=new g.YB(this.yn,{video_id:C.Kj||C.videoId,oauth_token:C.oauthToken});V.Z=g.zh(C.Z);var N;!p||(N=this.webPlayerContextConfig)!=null&&N.disableStaleness||(V.Wt=!0);this.cancelPlayback(6);PN(this,V,1)}; g.h.cancelPlayback=function(p,C){var V=this;this.logger.debug(function(){return"start cancel playback, type "+C}); var N=g.O5(this,C);N?C===2&&N.getPlayerType()===1&&(MoX(this.DE())||g.pf(this.getVideoData()))?N.k_("canclpb",{r:"no_adpb_ssdai"}):(this.yn.Gk()&&N.k_("canclpb",{r:p}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+V.appState}):(N===this.n4&&(this.logger.debug("cancel playback, destroy modules"),ev(this.C7,p)),C===1&&(N.stopVideo(),zR(this)),N.Q6(void 0,p!==6),SM(this,"cuerangesremoved",N.xm()),N.ZZ.reset(),this.tX&&N.isGapless()&& (N.Hz(!0),N.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.h.sendVideoStatsEngageEvent=function(p,C,V){(C=g.O5(this,C))&&N6S(this.yn,p)?C.sendVideoStatsEngageEvent(p,V):V&&V()}; g.h.Ix=function(p){var C=g.O5(this);return C&&N6S(this.yn,p)?C.Ix(p):null}; g.h.updatePlaylist=function(){!nI(this.yn)&&g.KI(this.yn)&&emy(this);this.ea.Ba("onPlaylistUpdate")}; g.h.setSizeStyle=function(p,C){this.Cc=p;this.G("web_log_theater_mode_visibility")?this.gB(C):this.NJ=C;this.ea.publish("sizestylechange",p,C);this.template.resize()}; g.h.gB=function(p){this.visibility.gB(p)}; g.h.VV=function(){return this.G("web_log_theater_mode_visibility")?this.visibility.VV():this.NJ}; g.h.isMinimized=function(){return this.visibility.isMinimized()}; g.h.isInline=function(){return this.visibility.isInline()}; g.h.l0=function(){return this.visibility.l0()}; g.h.vE=function(){return this.visibility.vE()}; g.h.Gq=function(){return this.visibility.Gq()}; g.h.WF=function(){return this.Cc}; g.h.getAdState=function(){if(this.getPresentingPlayerType()===3)return R$(this.C7).getAdState();Yf(this,"gas");if(!this.tE()){var p=Px(this.Tk());if(p)return p.getAdState()}return-1}; g.h.Xcn=function(p){var C=this.template.getVideoContentRect();Fj(this.uE,C)||(this.uE=C,this.n4&&uY(this.n4),this.Mo&&this.Mo!==this.n4&&uY(this.Mo),this.OI()===1&&this.Be&&sRa(this,!0));this.RL&&g.DH(this.RL,p)||(this.ea.publish("appresize",p),this.RL=p)}; g.h.CO=function(){return this.ea.CO()}; g.h.mZa=function(){this.getPresentingPlayerType()===2&&this.GB.isManifestless()?VAy(this.GB):(this.PV&&(l2L(this.PV),zR(this)),ohV(this,"signature"))}; g.h.wc$=function(p){p&&ohV(this,"reloadPlayerEvent",void 0,p)}; g.h.iV=function(p){this.Hz(p);FR(this)}; g.h.mWn=function(p){if(p.errorCode==="manifest.net.badstatus"){var C=this.yn.experiments.OY("html5_use_network_error_code_enums")?401:"401";p.details.rc===C&&this.ea.Jk("onPlayerRequestAuthFailed")}}; g.h.i7=function(p){this.ea.publish("heartbeatparams",p)}; g.h.MV=function(p){this.ea.Jk("onAutonavChangeRequest",p!==1)}; g.h.Nt=function(){return this.mediaElement}; g.h.setBlackout=function(p){this.yn.Wc!==p&&(this.yn.Wc=p,this.n4&&(this.n4.kQ(),this.yn.Y_&&Esv(this),this.n4.J9(p)))}; g.h.z6Y=function(){var p=g.O5(this);if(p){var C=!this.ea.Db();(p.u2=C)||p.OC.stop();p.videoData.T&&(C?p.videoData.T.resume():QlS(p.videoData.T));if(p.nS){var V=p.videoData.G("html5_disable_preload_for_ssdai_with_preroll")&&X9(p)&&p.videoData.isDaiEnabled();C&&!V?p.nS.resume():f$(p,!0)}g.r(p.playerState,2)||C?g.r(p.playerState,512)&&C&&p.aN(mE(p.playerState,512)):p.aN(JK(p.playerState,512));p=p.Pc();p.qoe&&(p=p.qoe,g.OZ(p,g.Zn(p.provider),"stream",[C?"A":"I"]))}}; g.h.onLoadedMetadata=function(){this.ea.Ba("onLoadedMetadata")}; g.h.onDrmOutputRestricted=function(){this.ea.Ba("onDrmOutputRestricted")}; g.h.tS=function(){this.intentionalPlayback=!0}; g.h.CS=function(){this.C7.dispose();this.uA.dispose();this.GB.dispose();this.PV&&this.PV.dispose();this.W_.removeAll();this.W_.dispose();this.Ze&&this.Ze.dispose();this.Mo.dispose();this.Hz();this.Lq.dispose();g.s1(this.playlist);g.Y.prototype.CS.call(this)}; g.h.G=function(p){return this.yn.G(p)}; g.h.setScreenLayer=function(p){this.screenLayer=p}; g.h.getInternalApi=function(){return this.ea.getInternalApi()}; g.h.createSubtitlesModuleIfNeeded=function(){return this.C7.createSubtitlesModuleIfNeeded()}; g.h.isOrchestrationLeader=function(){var p=$W(this.C7);return p?p.isOrchestrationLeader():!1}; g.h.getVideoUrl=function(p,C,V,N,H){if(this.Sb&&this.Sb.postId)return p=this.yn.getVideoUrl(p),p=jE(p,"v"),p.replace("/watch","/clip/"+this.Sb.postId);var X=this.ea.isEmbedsShortsMode()||this.yn.Wr==="shortspage",d=g.t_(this.getVideoData());return this.yn.getVideoUrl(p,C,V,N,H,X,d)}; g.h.GY=function(){return this.tX.GY()}; g.h.ZG=function(p,C,V){this.ea.publish("spsumpreject",p,C,V)}; g.h.Is=function(){try{for(var p=g.F(g.q$(this.Lq.T)),C=p.next();!C.done;C=p.next()){var V=C.value;V.fS()||V.Is()}if(this.G("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var N=g.F(ilQ(this.Lq.C)),H=N.next();!H.done;H=N.next()){var X=H.value;X.fS()||X.Is()}this.Mo.Is()}catch(d){g.eG(d)}}; g.h.K2=function(){if(this.PV){var p=(0,g.Ip)();return this.PV.K2(p)}return!1}; var uk={};var fmP={YE:[{Rn:/Unable to load player module/,weight:20},{Rn:/Failed to fetch/,weight:500},{Rn:/XHR API fetch failed/,weight:10},{Rn:/JSON parsing failed after XHR fetch/,weight:10},{Rn:/Retrying OnePlatform request/,weight:10},{Rn:/CSN Missing or undefined during playback association/,weight:100},{Rn:/Non-recoverable error. Do not retry./,weight:0},{Rn:/Internal Error. Retry with an exponential backoff./,weight:0},{Rn:/API disabled by application./,weight:0}],y8:[{callback:cu9,weight:500}]};var fPX=/[&\?]action_proxy=1/,UJs=/[&\?]token=([\w-]*)/,OLY=/[&\?]video_id=([\w-]*)/,yuQ=/[&\?]index=([\d-]*)/,qqv=/[&\?]m_pos_ms=([\d-]*)/,bLy=/[&\?]vvt=([\w-]*)/,mJV="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),IPH="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),SqX={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"},KUu={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},u4V={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};L7.prototype.RC=function(p){this.player.W6().tick(p)}; L7.prototype.fetch=function(p,C){var V=this;if(!p.match(/\[BISCOTTI_ID\]/g))return this.C(p,C);var N=this.T===1;N&&this.RC("a_bid_s");var H=MWS();if(H!==null)return N&&this.RC("a_bid_f"),this.C(p,C,H);H=Ju9();N&&yU(H,function(){V.RC("a_bid_f")}); return H.then(function(X){return V.C(p,C,X)})}; L7.prototype.C=function(p,C,V){var N=this,H=C===void 0?{}:C;C=H.U5;var X=H.zN;var d=H.cueProcessedMs;V=V===void 0?"":V;var a=this.player.getVideoData(1);H=this.player.K().Gp;var E=0;if(d&&X&&!C){var l=X.end-X.start;l>0&&(E=Math.floor(l/1E3))}E=C?C.uc:E;var t={AD_BLOCK:this.T++,AD_BREAK_LENGTH:E,AUTONAV_STATE:$f(this.player.K()),CA_TYPE:"image",CPN:a.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.uX()*1E3,LACT:bV(),LIVE_INDEX:C?this.V++:1,LIVE_TARGETING_CONTEXT:C&&C.context?C.context:"",MIDROLL_POS:X? Math.round(X.start/1E3):0,MIDROLL_POS_MS:X?Math.round(X.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.dV().KO().height,P_W:this.player.dV().KO().width,YT_REMOTE:H?H.join(","):""},c=MU(TQ);Object.keys(c).forEach(function(M){c[M]!=null&&(t[M.toUpperCase()]=c[M].toString())}); V!==""&&(t.BISCOTTI_ID=V);V={};cd(p)&&(V.sts="20073",(C=this.player.K().forcedExperiments)&&(V.forced_experiments=C));var T=Ek(g.nX(p,t),V);return T.split("?").length!==2?fJ(Error("Invalid AdBreakInfo URL")):g.pk(this.player.K(),a==null?void 0:a.oauthToken).then(function(M){if(M&&tw()){var J=rb();Bk(J,M)}M=N.player.xN(J);J=Auy(N,T,t,a.isMdxPlayback,d);return g.E0(M,J,"/youtubei/v1/player/ad_break").then(function(S){return S})})}; L7.prototype.reset=function(){this.V=this.T=1};g.m(osQ,L7); osQ.prototype.C=function(p,C,V){C=C===void 0?{}:C;var N=C.U5;var H=C.zN;var X=C.cueProcessedMs;V=V===void 0?"":V;C=this.T;this.T++;var d=this.player.K().G("h5_disable_macro_substitution_in_get_ad_break")?p:kss(this,p,{U5:N,zN:H,cueProcessedMs:X},V,C);if(d.split("?").length!==2)return Math.random()<.1&&g.eG(Error("Invalid AdBreakInfo URL")),fJ(Error("Invalid AdBreakInfo URL"));var a=this.player.getVideoData(1).isMdxPlayback,E=V;V=UJs.exec(d);V=V!=null&&V.length>=2?V[1]:"";p=fPX.test(d);var l=OLY.exec(d); l=l!=null&&l.length>=2?l[1]:"";var t=yuQ.exec(d);t=t!=null&&t.length>=2&&!Number.isNaN(Number(t[1]))?Number(t[1]):1;var c=qqv.exec(d);c=c!=null&&c.length>=2?c[1]:"0";var T=AR(this.player.K().Vn),M=g.Za(this.player.getVideoData(1).Sa,!0);FUL(this,M,d,E===""?"":E,this.player.K(),this.player.getVideoData(1));E={splay:!1,lactMilliseconds:String(bV()),playerHeightPixels:Math.trunc(this.player.dV().KO().height),playerWidthPixels:Math.trunc(this.player.dV().KO().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20073,autonavState:$f(this.player.K())};if(a){a={};var J=this.player.K().Gp;DJS(a,J?J.join(","):"")&&(E.mdxContext=a)}if(a=IPH.includes(T)?void 0:g.ee("PREF")){J=a.split(RegExp("[:&]"));for(var S=0,D=J.length;S1&&Z[1].toUpperCase()==="TRUE"){M.user.lockedSafetyMode=!0;break}}E.autoCaptionsDefaultOn=ZL1(a)}d=bLy.exec(d);(d=d!=null&&d.length>=2?d[1]:"")&&l&&(M.user.credentialTransferTokens= [{token:d,scope:"VIDEO"}]);d={contentPlaybackContext:E};E=this.player.getVideoData(1).getGetAdBreakContext();a=this.player.getVideoData(1).clientPlaybackNonce;J=X!==void 0?Math.round(X).toString():void 0;S=(N==null?0:N.context)?N.context:void 0;D=0;X&&H&&!N&&(H=H.end-H.start,H>0&&(D=Math.floor(H/1E3)));N=(N=Math.trunc((N?N.uc:D)*1E3))?String(N):void 0;H=this.player.uX()*1E3;H=Number.isNaN(H)?0:Math.trunc(H);C={adBlock:C,params:V,breakIndex:t,breakPositionMs:c,clientPlaybackNonce:a,topLevelDomain:T, isProxyAdTagRequest:p,context:M,overridePlaybackContext:d,cueProcessedMs:J,videoId:l?l:void 0,liveTargetingParams:S,breakLengthMs:N,driftFromHeadMs:H?String(H):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:E?E:void 0};return xJV(this,C)};var Oy5={LY_:"replaceUrlMacros",wB_:"onAboutThisAdPopupClosed",Oxa:"executeCommand"};YqL.prototype.sK=function(){return"adPingingEndpoint"}; YqL.prototype.uO=function(p,C,V){Mcu(this.No.get(),p,C,V)};z$y.prototype.sK=function(){return"changeEngagementPanelVisibilityAction"}; z$y.prototype.uO=function(p){this.N.Jk("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:p})};R$u.prototype.sK=function(){return"loggingUrls"}; R$u.prototype.uO=function(p,C,V){p=g.F(p);for(var N=p.next();!N.done;N=p.next())N=N.value,Mcu(this.No.get(),N.baseUrl,C,V,N.attributionSrcMode)};g.m(e$9,g.Y);g.m(WN,g.Y);g.h=WN.prototype;g.h.addListener=function(p){this.listeners.push(p)}; g.h.removeListener=function(p){this.listeners=this.listeners.filter(function(C){return C!==p})}; g.h.zp=function(p,C,V,N,H,X,d,a){if(p==="")S2("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(p!==this.T||V){this.T=p;this.mx.get().zp(p,C,V,N,H,X,d,a);this.pS.get().zp(p,C,V,N,H,X,d,a);var E;(E=this.BV)==null||E.get().zp(p,C,V,N,H,X,d,a);this.C.zp(p,C,V,N,H,X,d,a);E=g.F(this.listeners);for(var l=E.next();!l.done;l=E.next())l.value.zp(p,C,V,N,H,X,d,a)}else S2("Duplicate content video loaded signal")}; g.h.f8=function(){this.T&&this.zA(this.T)}; g.h.zA=function(p){this.T=void 0;for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.zA(p)};Qw.prototype.MF=function(p,C,V,N,H){PDs(this);this.W=!C&&V===0;var X=this.N.getVideoData(1),d=this.N.getVideoData(2);X&&(this.contentCpn=X.clientPlaybackNonce,this.videoId=X.videoId,this.T=X.Y);d&&(this.adCpn=d.clientPlaybackNonce,this.adVideoId=d.videoId,this.adFormat=d.adFormat);this.S=p;N<=0?(PDs(this),this.W=!C&&V===0):(this.actionType=this.W?C?"unknown_type":"video_to_ad":C?"ad_to_video":"ad_to_ad",this.videoStreamType=H?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.V=!0,dc("_start",this.actionType)&&LU1(this)))}; Qw.prototype.reset=function(){return new Qw(this.N)};g.m(rJ,g.Y);rJ.prototype.addCueRange=function(p,C,V,N,H,X,d){X=X===void 0?3:X;d=d===void 0?1:d;this.T.has(p)?S2("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:p}):(p=new gsy(p,C,V,N,X),this.T.set(p.id,{zN:p,listener:H,TR:d}),this.N.d7([p],d))}; rJ.prototype.removeCueRange=function(p){var C=this.T.get(p);C?(this.N.p$([C.zN],C.TR),this.T.delete(C.zN.id)):S2("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:p})}; rJ.prototype.onCueRangeEnter=function(p){if(this.T.has(p.id))this.T.get(p.id).listener.onCueRangeEnter(p.id)}; rJ.prototype.onCueRangeExit=function(p){if(this.T.has(p.id))this.T.get(p.id).listener.onCueRangeExit(p.id)}; g.m(gsy,g.sz);BN.prototype.Fk=function(p){this.N.Fk(p)}; BN.prototype.FU=function(p){var C=g.US.apply(1,arguments);p==="onAdStart"||p==="onAdEnd"?this.N.v1.apply(this.N,[p].concat(g.K(C))):this.N.Jk.apply(this.N,[p].concat(g.K(C)))};GR.prototype.sV=function(p){return p&&pD(this)};var jme=null;g.m(CEX,g.ca);CEX.prototype.AL=function(p){return this.T.hasOwnProperty(p)?this.T[p].AL():{}}; g.YH("ytads.bulleit.getVideoMetadata",function(p){return CD().AL(p)}); g.YH("ytads.bulleit.triggerExternalActivityEvent",function(p,C,V){var N=CD();V=pAY(V);V!==null&&N.publish(V,{queryId:p,viewabilityString:C})});g.h=jC.prototype;g.h.pO=function(p,C){if(!this.T.has(p))return{};if(C==="seek"){C=this.N.K().G("html5_dai_enable_active_view_creating_completed_adblock");C=C===void 0?!1:C;var V=xc(xI).zV(p,{});V?qZ(V):C&&(p=xc(xI).k7(null,jh(),!1,p),p.m8=3,r$9([p]));return{}}C=NaV(C);if(C===null)return{};var N=this.N.aj();if(!N)return{};var H=this.N.getPresentingPlayerType(!0);if((V=this.N.getVideoData(H))==null||!V.isAd())return{};V={opt_adElement:N,opt_fullscreen:this.mx.get().isFullscreen()};return rEy(C,p,V)}; g.h.D4=function(p,C,V,N,H){this.T.has(p)&&(N<=0||H<=0||xc(xI).D4(p,C,V,N,H))}; g.h.sA=function(p){var C;(C=this.T.get(p.queryId))==null||C.sA()}; g.h.Ao=function(p){var C;(C=this.T.get(p.queryId))==null||C.Ao()}; g.h.Iy=function(p){var C;(C=this.T.get(p.queryId))==null||C.Iy()}; g.h.bN=function(p){var C;(C=this.T.get(p.queryId))==null||C.bN()}; g.h.Cr=function(p){var C;(C=this.T.get(p.queryId))==null||C.Cr()};EzQ.prototype.send=function(p,C,V,N){try{lLe(this,p,C,V,N===void 0?!1:N)}catch(H){}};g.m(tcQ,EzQ);cSH.prototype.send=function(p,C,V,N){var H=!1;try{if(N==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||N==="ATTRIBUTION_SRC_MODE_XHR_OPTION")H=!0,p=Tfu(p);N=H;var X=p.match(wA);if(X[1]==="https")var d=p;else X[1]="https",d=eS("https",X[2],X[3],X[4],X[5],X[6],X[7]);var a=huS(d);X=[];var E=Cfj(d)&&this.x_.get().N.K().experiments.OY("add_auth_headers_to_remarketing_google_dot_com_ping");if(cd(d)||E)X.push({headerType:"USER_AUTH"}),X.push({headerType:"PLUS_PAGE_ID"}),X.push({headerType:"VISITOR_ID"}),X.push({headerType:"EOM_VISITOR_ID"}), X.push({headerType:"AUTH_USER"}),X.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:d,scrubReferrer:a,headers:X},C,V,N)}catch(l){}};dv.prototype.Ix=function(){return this.N.Ix(1)};g.m(iM,g.Y);g.h=iM.prototype;g.h.Zr=function(){return this.N.getVideoData(1).clientPlaybackNonce}; g.h.addListener=function(p){this.listeners.push(p)}; g.h.removeListener=function(p){this.listeners=this.listeners.filter(function(C){return C!==p})}; g.h.zp=function(){this.VI.clear();this.BF=null;this.VA.get().clear()}; g.h.zA=function(){}; g.h.UZ$=function(p,C,V,N,H){C.videoId==="nPpU29QrbiU"&&this.N.k_("ads_ssm_vdc_s",{pt:V,dvt:p});DY(this.x_.get())&&p!=="dataloaded"||Due(this,C,V);if(pD(this.x_.get())&&p==="newdata"&&H!==void 0){p=this.Zr();var X=C.clientPlaybackNonce,d={};Zs(this,"rte",(d.ec=X,d.xc=N==null?void 0:N.clientPlaybackNonce,d.tr=H,d.pt=V,d.ia=X!==p,d.ctp=uv(X),d));C=C.clientPlaybackNonce;N=N==null?void 0:N.clientPlaybackNonce;H=uTQ(H);if(H!==1)if(N!==void 0)for(V=g.F(this.listeners),p=V.next();!p.done;p=V.next())p.value.mC(N, C,H);else S2("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:C,transitionReason:String(H)});H=g.F(this.listeners);for(N=H.next();!N.done;N=H.next())N.value.u7(C)}}; g.h.IEn=function(p,C){p!==void 0&&(this.BF=p,C===void 0?S2("Expected ad video start time on SS video changed"):this.VI.set(p,C));var V=this.N.getPresentingPlayerType(!0),N=this.N.getVideoData(V);this.N.getVideoData(1).k_("ads_ssvc",{pt:V,cpn:N==null?void 0:N.clientPlaybackNonce,crtt:this.N.getCurrentTime(1,!1),atlh:this.N.isAtLiveHead(),adstt:C});N?Due(this,N,V):S2("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.N.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:p})}; g.h.Z1=function(p,C){var V=p.author,N=p.clientPlaybackNonce,H=p.isListed,X=p.OZ,d=p.title,a=p.wx,E=p.eH,l=p.isMdxPlayback,t=p.B_,c=p.mdxEnvironment,T=p.isAutonav,M=p.dP,J=p.X4,S=p.WP,D=p.videoId||"",Z=p.profilePicture||"",f=p.eI||"",q=p.rR()||!1,A=p.VL()||!1;p=p.Bb||void 0;X=this.VA.get().T.get(X)||{layoutId:null,slotId:null};var z=this.N.getVideoData(1),Q=z.p4();z=z.getPlayerResponse();C=1E3*this.N.getDuration(C);var P=1E3*this.N.getDuration(1),VL,au,W=(z==null?void 0:(VL=z.playerConfig)==null?void 0: (au=VL.daiConfig)==null?void 0:au.enableDai)||!1,e,B;VL=(z==null?void 0:(e=z.playerConfig)==null?void 0:(B=e.daiConfig)==null?void 0:B.enablePreroll)||!1;return Object.assign({},X,{videoId:D,author:V,clientPlaybackNonce:N,ade:C,qw:P,daiEnabled:W,lB:VL,isListed:H,p4:Q,profilePicture:Z,title:d,eI:f,wx:a,eH:E,Bb:p,isMdxPlayback:l,B_:t,mdxEnvironment:c,isAutonav:T,dP:M,X4:J,WP:S,rR:q,VL:A})}; g.h.CS=function(){this.listeners.length=0;this.KA=null;g.Y.prototype.CS.call(this)};g.m(hF,g.Y);g.h=hF.prototype;g.h.zp=function(){var p=this;pD(this.x_.get())||(this.T=KJ(function(){p.N.fS()||p.N.hp("ad",1)}))}; g.h.zA=function(){}; g.h.addListener=function(p){this.listeners.push(p)}; g.h.removeListener=function(p){this.listeners=this.listeners.filter(function(C){return C!==p})}; g.h.EU=function(){}; g.h.playVideo=function(){this.N.playVideo()}; g.h.pauseVideo=function(){this.N.pauseVideo()}; g.h.resumeVideo=function(p){this.Hp(p)&&this.N.playVideo()}; g.h.Hp=function(p){return this.N.getPlayerState(p)===2}; g.h.getCurrentTimeSec=function(p,C,V){var N=this.pS.get().BF;if(p===2&&!C&&N!==null)return Uue(this,N);Cs(this.x_.get(),"html5_ssap_use_cpn_to_get_time")||(V=void 0);return V!==void 0?this.N.getCurrentTime(p,C,V):this.N.getCurrentTime(p,C)}; g.h.getVolume=function(){return this.N.getVolume()}; g.h.isMuted=function(){return this.N.isMuted()}; g.h.getPresentingPlayerType=function(){return this.N.getPresentingPlayerType(!0)}; g.h.getPlayerState=function(p){return this.N.getPlayerState(p)}; g.h.isFullscreen=function(){return this.N.isFullscreen()}; g.h.isAtLiveHead=function(){return this.N.isAtLiveHead()}; g.h.Gz=function(p){this.N.Gz(p)}; g.h.UW$=function(){var p=this.N.getPresentingPlayerType(!0),C=this.getCurrentTimeSec(p,!1);if(p===2){p=g.F(this.listeners);for(var V=p.next();!V.done;V=p.next())V.value.Eu(C)}else if(p===1)for(p=g.F(this.xW),V=p.next();!V.done;V=p.next())V.value.EU(C)}; g.h.e6o=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.Ld(p,this.getPresentingPlayerType())}; g.h.onFullscreenToggled=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.onFullscreenToggled(p)}; g.h.onVolumeChange=function(){for(var p=g.F(this.listeners),C=p.next();!C.done;C=p.next())C.value.onVolumeChange()}; g.h.xq=function(){for(var p=this.N.isMinimized(),C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.xq(p)}; g.h.iM=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.iM(p)}; g.h.OR=function(){for(var p=this.N.dV().KO(),C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.gx(p)}; g.h.vz=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.vz(p)}; g.h.Wz=function(){for(var p=g.F(this.listeners),C=p.next();!C.done;C=p.next())C.value.Wz()};g.m(ySe,g.Y);g.m(tF,g.Y);tF.prototype.CS=function(){this.Yz.fS()||this.Yz.get().removeListener(this);g.Y.prototype.CS.call(this)};cq.prototype.fetch=function(p){var C=p.mJ;return this.T.fetch(p.W5,{U5:p.U5===void 0?void 0:p.U5,zN:C,cueProcessedMs:p.cueProcessedMs===void 0?0:p.cueProcessedMs}).then(function(V){return qwY(V,C)})};g.m(TS,g.Y);g.h=TS.prototype;g.h.addListener=function(p){this.listeners.push(p)}; g.h.removeListener=function(p){this.listeners=this.listeners.filter(function(C){return C!==p})}; g.h.h3=function(p){ILs(this,p,1)}; g.h.onAdUxClicked=function(p,C){ME(this,function(V){V.Mg(p,C)})}; g.h.xo=function(p){ME(this,function(C){C.UB(p)})}; g.h.A5=function(p){ME(this,function(C){C.tL(p)})}; g.h.rkn=function(p){ME(this,function(C){C.N8(p)})};JF.prototype.reduce=function(p){switch(p.event){case "unknown":return}var C=p.identifier;var V=this.T[C];V?C=V:(V={rg:null,vY:-Infinity},C=this.T[C]=V);V=p.startSecs+p.T/1E3;if(!(V=this.C.startSecs&&V.startSecs<=this.C.startSecs+this.C.uc)?S2("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.C=V,ozX(this, V)))}}; g.h.CS=function(){this.T!=null&&(this.T.unsubscribe("cuepointupdated",this.mq,this),this.T=null);this.listeners.length=0;this.ya.length=0;g.Y.prototype.CS.call(this)};vq.prototype.addPlayerResponseForAssociation=function(p){this.N.addPlayerResponseForAssociation(p)};g.h=SC.prototype;g.h.JY=function(p,C,V,N,H,X,d){return this.N.JY(p,C,V,N,H,X,d)}; g.h.Th=function(p,C){this.N.Th(p,C)}; g.h.al=function(p,C,V){this.N.al(p,C,V)}; g.h.TE=function(p){this.N.TE(p)}; g.h.hA=function(p,C,V,N,H,X,d){this.N.hA(p,C,V,N,H,X,d)}; g.h.s_=function(p){return this.N.s_(p)}; g.h.finishSegmentByCpn=function(p,C,V){V=zAH(V);this.N.finishSegmentByCpn(p,C,V)};g.m(nzV,g.Y);g.m(eAv,g.Y);g.m(PEY,g.Y);g.m(wAs,g.Y);g.m($ue,g.Y);g.m(gzX,g.Y);gzX.prototype.V=function(){return this.C};g.m(WXe,GB); WXe.prototype.S=function(p){var C=p.content;if(C.componentType==="shopping-companion")switch(p.actionType){case 1:case 2:p=this.T.getVideoData(1);this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,shoppingCompanionCarouselRenderer:C.renderer,layoutId:C.layoutId,macros:C.macros,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});break;case 3:this.T.Jk("updateKevlarOrC3Companion",{})}else if(C.componentType==="action-companion")switch(p.actionType){case 1:case 2:p=this.T.getVideoData(1); this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,actionCompanionAdRenderer:C.renderer,layoutId:C.layoutId,macros:C.macros,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});break;case 3:C.renderer&&(C=this.T.getVideoData(1),this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:C&&C.videoId})),this.T.Jk("updateKevlarOrC3Companion",{})}else if(C.componentType==="image-companion")switch(p.actionType){case 1:case 2:p=this.T.getVideoData(1);this.T.Jk("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,imageCompanionAdRenderer:C.renderer,layoutId:C.layoutId,macros:C.macros,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});break;case 3:C=this.T.getVideoData(1),this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:C&&C.videoId}),this.T.Jk("updateKevlarOrC3Companion",{})}else if(C.componentType==="top-banner-image-text-icon-buttoned")switch(p.actionType){case 1:case 2:p=this.T.getVideoData(1);this.T.Jk("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,topBannerImageTextIconButtonedLayoutViewModel:C.renderer,layoutId:C.layoutId,macros:C.macros,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});break;case 3:C.renderer&&(C=this.T.getVideoData(1),this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:C&&C.videoId})),this.T.Jk("updateKevlarOrC3Companion",{})}else if(C.componentType==="banner-image")switch(p.actionType){case 1:case 2:p=this.T.getVideoData(1);this.T.Jk("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,bannerImageLayoutViewModel:C.renderer,layoutId:C.layoutId,macros:C.macros,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});break;case 3:C=this.T.getVideoData(1),this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:C&&C.videoId}),this.T.Jk("updateKevlarOrC3Companion",{})}else if(C.componentType==="ads-engagement-panel")switch(C=C.renderer,p.actionType){case 1:case 2:this.T.Jk("updateEngagementPanelAction",C.addAction);this.T.Jk("changeEngagementPanelVisibility", C.expandAction);break;case 3:this.T.Jk("changeEngagementPanelVisibility",C.hideAction),this.T.Jk("updateEngagementPanelAction",C.removeAction)}else if(C.componentType==="ads-engagement-panel-layout"){var V=C.renderer;switch(p.actionType){case 1:case 2:this.T.Jk("updateEngagementPanelAction",{action:Lm(V.addAction),layoutId:C.layoutId,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});this.T.Jk("changeEngagementPanelVisibility",Lm(V.expandAction));break;case 3:this.T.Jk("changeEngagementPanelVisibility", Lm(V.hideAction)),this.T.Jk("updateEngagementPanelAction",{action:Lm(V.removeAction)})}}};g.m(QmX,dk);g.h=QmX.prototype;g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);g.K2(this.V,"stroke-dasharray","0 "+this.C);this.api.K().G("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.V.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.K().G("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.S.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){h7(this);dk.prototype.hide.call(this)}; g.h.show=function(){i$(this);dk.prototype.show.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();p!=null&&p.current!=null&&g.K2(this.V,"stroke-dasharray",p.current/p.seekableEnd*this.C+" "+this.C)}};g.m(rSe,Kq);g.h=rSe.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);if(C.image&&C.image.thumbnail)if(C.headline)if(C.description)if(C.backgroundImage&&C.backgroundImage.thumbnail)if(C.actionButton&&g.n(C.actionButton,g.z$))if(p=C.durationMilliseconds||0,typeof p!=="number"||p<=0)g.nm(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+p));else if(C.navigationEndpoint){var N=this.api.getVideoData(2);if(N!=null){var H=C.image.thumbnail.thumbnails;H!=null&& H.length>0&&g.Sy(g.dI(H[0].url))&&(H[0].url=N.profilePicture,g.Sy(g.dI(N.profilePicture))&&f8u("VideoPlayer",239976093,"Expected non-empty profile picture."));H=C.backgroundImage.thumbnail.thumbnails;H!=null&&H.length>0&&g.Sy(g.dI(H[0].url))&&(H[0].url=N.TW());H=C.headline;H!=null&&g.Sy(g.dI(H.text))&&(H.text=N.author)}this.Z.init(lq("ad-image"),C.image,V);this.W.init(lq("ad-text"),C.headline,V);this.V.init(lq("ad-text"),C.description,V);this.R$.init(lq("ad-image"),C.backgroundImage,V);N=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.api.K().G("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.V.element.classList.add("ytp-ad-action-interstitial-description-light"),N.push("ytp-ad-action-interstitial-action-button-dark"));this.api.K().C&&(N.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),N.push("ytp-ad-action-interstitial-action-button-dark")); this.api.K().G("enable_unified_action_endcap_on_web")&&!this.api.K().C&&(N.push("ytp-ad-action-interstitial-action-button-unified"),this.KS.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Qn.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.eZ.classList.add("ytp-ad-action-interstitial-card-unified"),this.b_.classList.add("ytp-ad-action-interstitial-description-container-unified"), this.V.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.Sa.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.vr.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ga.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new nq(this.api,this.layoutId,this.interactionLoggingClientData, this.l_,N);g.R(this,this.actionButton);this.actionButton.u_(this.KS);this.actionButton.init(lq("button"),g.n(C.actionButton,g.z$),V);Go(this.actionButton.element);N=jJ(this.actionButton.element);Cg(this.actionButton.element,N+" This link opens in new tab");this.navigationEndpoint=C.navigationEndpoint;this.S.U(this.vr,"click",this.D5,this);this.S.U(this.b_,"click",this.D5,this);!this.api.K().G("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.K().C||this.S.U(this.Sa,"click",this.D5, this);this.T=this.RE?new I0(this.api,p):new b$(p);g.R(this,this.T);if(C.skipButton){if((p=g.n(C.skipButton,BYc))&&this.T&&(this.skipButton=new Z7(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.T,this.L5),g.R(this,this.skipButton),this.skipButton.u_(this.element),this.skipButton.init(lq("skip-button"),p,V)),this.api.K().G("enable_dsa_ad_badge_for_action_endcap_on_web")){V=this.api.G("disable_ad_preview_for_instream_ads");if(p=C.adBadgeRenderer)if(p=g.n(p,rfP))N=new y_(this.api, this.layoutId,this.interactionLoggingClientData,this.l_,!0,V),N.u_(this.Ga),N.init(lq("simple-ad-badge"),p,this.macros),g.R(this,N);if(p=C.adInfoRenderer)if(p=g.n(p,xr))V=new NN(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.element,void 0,V),V.u_(this.Ga),V.init(lq("ad-info-hover-text-button"),p,this.macros),g.R(this,V)}}else C.nonskippableOverlayRenderer&&(p=g.n(C.nonskippableOverlayRenderer,Yr))&&this.T&&(this.C=new l$(this.api,this.layoutId,this.interactionLoggingClientData, this.l_,this.T,!1),g.R(this,this.C),this.C.u_(this.element),this.C.init(lq("ad-preview"),p,V));C.countdownRenderer&&(C=C.countdownRenderer,g.n(C,Gpp)&&this.T&&(V=new QmX(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.T),g.R(this,V),V.u_(this.element),V.init(lq("timed-pie-countdown"),g.n(C,Gpp),this.macros)));this.show();this.element.focus()}else g.nm(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.nm(Error("AdActionInterstitialRenderer has no button.")); else g.nm(Error("AdActionInterstitialRenderer has no background AdImage."));else g.nm(Error("AdActionInterstitialRenderer has no description AdText."));else g.nm(Error("AdActionInterstitialRenderer has no headline AdText."));else g.nm(Error("AdActionInterstitialRenderer has no image."))}; g.h.clear=function(){g.Am(this.S);this.hide()}; g.h.show=function(){Bas(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.C&&this.C.show();Kq.prototype.show.call(this)}; g.h.hide=function(){Bas(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.C&&this.C.hide();Kq.prototype.hide.call(this)}; g.h.D5=function(){this.navigationEndpoint&&(this.layoutId?this.l_.executeCommand(this.navigationEndpoint,this.layoutId):g.nm(Error("Missing layoutId for ad action interstitial.")))};var VRL={iconType:"CLOSE"},ZO=new g.KG(320,63);g.m(jGv,Kq);g.h=jGv.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.S=C;this.Z=g.p6(this.S.onClickCommands||[]);this.Ga=this.S.onErrorCommand||null;if(p=this.S.contentSupportedRenderer)p=this.S.contentSupportedRenderer,C=this.S.adInfoRenderer||null,g.n(p,g28)?(this.W=g.ju("ytp-ad-overlay-ad-info-button-container",this.V.element),NjY(this,C),p=XmY(this,g.n(p,g28))):g.n(p,WrG)?(this.W=g.ju("ytp-ad-overlay-ad-info-button-container",this.C.element),NjY(this,C),p=dHL(this,g.n(p,WrG))):g.n(p,QF1)?(this.W= g.ju("ytp-ad-overlay-ad-info-button-container",this.T.element),NjY(this,C),p=ii9(this,g.n(p,QF1))):(g.nm(Error("InvideoOverlayAdRenderer content could not be initialized.")),p=!1);p&&(this.show(),hlQ(this,!0))}; g.h.clear=function(){hlQ(this,!1);this.vr.reset();this.b_=0;this.V.hide();this.logVisibility(this.V.element,!1);this.C.hide();this.logVisibility(this.C.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()}; g.h.h3n=function(){this.KS&&(this.layoutId?this.l_.executeCommand(this.KS,this.layoutId):g.nm(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.h.qL=function(){a:{if(this.S&&this.S.closeButton&&this.S.closeButton.buttonRenderer){var p=this.S.closeButton.buttonRenderer;if(p.serviceEndpoint){p=[p.serviceEndpoint];break a}}p=[]}p=g.F(p);for(var C=p.next();!C.done;C=p.next())C=C.value,this.layoutId?this.l_.executeCommand(C,this.layoutId):g.nm(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.h.s$_=function(){this.R$||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.h.J5=function(){this.R$||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.J5("invideo-overlay")}; g.h.IeY=function(p){p.target===this.W&&g.ju("ytp-ad-button",this.Qn.element).click()};g.m(sGQ,dk);g.h=sGQ.prototype;g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);p=C.durationMs;this.V=p==null||p===0?0:p+this.T.getProgressState().current*1E3;if(C.text)var N=C.text.templatedAdText;else C.staticMessage&&(N=C.staticMessage);this.messageText.init(lq("ad-text"),N,V);this.messageText.u_(this.C.element);this.S.show(100);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){axL(this,!1);dk.prototype.hide.call(this);this.C.hide();this.messageText.hide();h7(this)}; g.h.show=function(){axL(this,!0);dk.prototype.show.call(this);i$(this);this.C.show();this.messageText.show()}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T!=null){var p=this.T.getProgressState();p!=null&&p.current!=null&&(p=1E3*p.current,!this.b_&&p>=this.V?(this.S.hide(),this.b_=!0):this.messageText&&this.messageText.isTemplated()&&(p=Math.max(0,Math.ceil((this.V-p)/1E3)),p!==this.W&&(XK(this.messageText,{TIME_REMAINING:String(p)}),this.W=p)))}};g.m(EMX,Kq);g.h=EMX.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,{});C.image&&C.image.thumbnail?C.headline?C.description?C.actionButton&&g.n(C.actionButton,g.z$)?(this.V.init(lq("ad-image"),C.image,V),this.C.init(lq("ad-text"),C.headline,V),this.S.init(lq("ad-text"),C.description,V),p=["ytp-ad-underlay-action-button"],this.api.K().G("use_blue_buttons_for_desktop_player_underlay")&&p.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_, p),C.backgroundColor&&g.K2(this.element,"background-color",g.Q_(C.backgroundColor)),g.R(this,this.actionButton),this.actionButton.u_(this.W),this.actionButton.init(lq("button"),g.n(C.actionButton,g.z$),V),C=g.mi(this.api.K().experiments,"player_underlay_video_width_fraction"),this.api.K().G("place_shrunken_video_on_left_of_player")?(V=this.T,g.tk(V,"ytp-ad-underlay-left-container"),g.Ed(V,"ytp-ad-underlay-right-container"),g.K2(this.T,"margin-left",Math.round((C+.02)*100)+"%")):(V=this.T,g.tk(V,"ytp-ad-underlay-right-container"), g.Ed(V,"ytp-ad-underlay-left-container")),g.K2(this.T,"width",Math.round((1-C-.04)*100)+"%"),this.api.WE()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.AC.bind(this)),this.api.addEventListener("resize",this.CI.bind(this))):g.nm(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.nm(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.nm(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.nm(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.h.show=function(){lxL(!0);this.actionButton&&this.actionButton.show();Kq.prototype.show.call(this)}; g.h.hide=function(){lxL(!1);this.actionButton&&this.actionButton.hide();Kq.prototype.hide.call(this)}; g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.AC.bind(this));this.api.removeEventListener("resize",this.CI.bind(this));this.hide()}; g.h.onClick=function(p){Kq.prototype.onClick.call(this,p);this.actionButton&&g.t2(this.actionButton.element,p.target)&&this.api.pauseVideo()}; g.h.AC=function(p){p==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):p==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):p==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))}; g.h.CI=function(p){p.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):p.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.K2(this.C.element,"font-size",p.width/40+"px")};g.m(Um,Kq); Um.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);C.toggledLoggingParams&&(this.toggledLoggingParams=C.toggledLoggingParams);C.answer&&g.n(C.answer,g.z$)?(p=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),p.u_(this.answer),p.init(lq("ytp-ad-survey-answer-button"),g.n(C.answer,g.z$),V),p.show()):C.answer&&g.n(C.answer,vD)&&(this.T=new re(this.api,this.layoutId,this.interactionLoggingClientData,this.l_, ["ytp-ad-survey-answer-toggle-button"]),this.T.u_(this.answer),g.R(this,this.T),this.T.init(lq("survey-answer-button"),g.n(C.answer,vD),V));this.show()}; Um.prototype.mu=function(p){this.layoutId?BU(this.l_,p,this.layoutId,this.macros):g.nm(new g.Bw("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; Um.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p);if(this.api.K().G("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Um.prototype.clear=function(){this.hide()};g.m(tRV,Kq);tRV.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);C.answer&&g.n(C.answer,vD)&&(this.button=new re(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.u_(this.T),this.button.init(lq("survey-none-of-the-above-button"),g.n(C.answer,vD),V));this.show()};g.m(fD,nq);fD.prototype.init=function(p,C,V){nq.prototype.init.call(this,p,C,V);p=!1;C.text&&(C=g.uq(C.text),p=!g.Sy(C));p||g.eG(Error("No submit text was present in the renderer."))}; fD.prototype.onClick=function(p){this.publish("l");nq.prototype.onClick.call(this,p)};g.m(Om,Kq); Om.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);if(p=C.skipOrPreviewRenderer)g.n(p,JV)?(p=g.n(p,JV),V=new ft(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.S,!0),V.u_(this.skipOrPreview),V.init(lq("skip-button"),p,this.macros),g.R(this,V),this.T=V):g.n(p,Yr)&&(p=g.n(p,Yr),V=new l$(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.S,!1),V.u_(this.skipOrPreview),V.init(lq("ad-preview"),p,this.macros),t7(V),g.R(this,V),this.T=V);this.T== null&&g.nm(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(C)));C.submitButton&&(p=C.submitButton,g.n(p,g.z$)&&(p=g.n(p,g.z$),V=new fD(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),V.u_(this.submitButton),V.init(lq("survey-submit"),p,this.macros),g.R(this,V),this.C=V));p=this.api.G("disable_ad_preview_for_instream_ads");if(V=C.adBadgeRenderer){V=g.n(V,rfP);var N=new y_(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,!0, p,!0);N.u_(this.V);N.init(lq("simple-ad-badge"),V,this.macros);this.adBadge=N.element;g.R(this,N)}if(V=C.adDurationRemaining)V=g.n(V,w5r),N=new kU(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.S,void 0,p),N.u_(this.V),N.init(lq("ad-duration-remaining"),V,this.macros),g.R(this,N);(C=C.adInfoRenderer)&&g.n(C,xr)&&(V=new NN(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.element,void 0,p),g.R(this,V),p&&this.adBadge!==void 0?this.V.insertBefore(V.element, this.adBadge.nextSibling):V.u_(this.V),V.init(lq("ad-info-hover-text-button"),g.n(C,xr),this.macros));this.show()}; Om.prototype.clear=function(){this.hide()};g.m(y0,Kq);y0.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);mHj(this)}; y0.prototype.show=function(){this.V=Date.now();Kq.prototype.show.call(this)}; y0.prototype.z0=function(){};g.m(vMy,y0);g.h=vMy.prototype;g.h.init=function(p,C,V){var N=this;y0.prototype.init.call(this,p,C,V);C.questionText&&cve(this,C.questionText);C.answers&&C.answers.forEach(function(H,X){g.n(H,JJ)&&Tju(N,g.n(H,JJ),V,X)}); this.W=new Set(this.C.map(function(H){return H.T.T})); (p=C.noneOfTheAbove)&&(p=g.n(p,Lrv))&&F3V(this,p,V);C.surveyAdQuestionCommon&&Jvv(this,C.surveyAdQuestionCommon);C.submitEndpoints&&(this.submitEndpoints=C.submitEndpoints);this.U(this.element,"change",this.onChange);this.show()}; g.h.z0=function(){SYS(this,!1);this.S.C.subscribe("l",this.NY_,this)}; g.h.onChange=function(p){p.target===this.noneOfTheAbove.button.T?K3a(this):this.W.has(p.target)&&(this.noneOfTheAbove.button.toggleButton(!1),SYS(this,!0))}; g.h.NY_=function(){var p=[],C=this.C.reduce(function(H,X,d){var a=X.toggledLoggingParams;X.T&&X.T.isToggled()&&a&&(H.push(a),p.push(d));return H},[]).join("&"),V=this.submitEndpoints.map(function(H){if(!H.loggingUrls)return H; H=g.Ra(H);H.loggingUrls=H.loggingUrls.map(function(X){X.baseUrl&&(X.baseUrl=pN(X.baseUrl,C));return X}); return H}); if(V){V=g.F(V);for(var N=V.next();!N.done;N=V.next())N=N.value,this.layoutId?BU(this.l_,N,this.layoutId,this.macros):g.nm(Error("Missing layoutId for multi_select_question."))}this.api.K().G("supports_multi_step_on_desktop")&&this.b_(p)}; g.h.clear=function(){this.api.K().G("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.m(qE,y0);qE.prototype.init=function(p,C,V){var N=this;y0.prototype.init.call(this,p,C,V);C.questionText&&cve(this,C.questionText);C.answers&&C.answers.forEach(function(H,X){g.n(H,JJ)&&Tju(N,g.n(H,JJ),V,X)}); C.surveyAdQuestionCommon?Jvv(this,C.surveyAdQuestionCommon):g.nm(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(C)));this.show()}; qE.prototype.clear=function(){this.api.K().G("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.m(IQ,Kq);IQ.prototype.init=function(p,C,V){var N=this;Kq.prototype.init.call(this,p,C,V);if(this.api.K().G("supports_multi_step_on_desktop")){var H;this.conditioningRules=(H=C.conditioningRules)!=null?H:[];var X;this.C=(X=C.questions)!=null?X:[];var d;((d=C.questions)==null?0:d.length)&&UHX(this,0)}else(C.questions||[]).forEach(function(a){g.n(a,od)?u$1(N,g.n(a,od),V):g.n(a,AM)&&Zi9(N,g.n(a,AM),V)}); this.show()}; IQ.prototype.clear=function(){this.api.K().G("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; IQ.prototype.S=function(p){var C=this;if(this.api.K().G("supports_multi_step_on_desktop")){var V;if((V=this.conditioningRules)==null?0:V.length){var N;if(p.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(H){return H.questionIndex===C.T})==null)g.nm(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(H){if(H.questionIndex===C.T)switch(H.condition){case "CONDITION_ALL_OF":var X;if((X=H.answerIndices)==null?0:X.every(function(a){return p.includes(a)}))N=H.nextQuestionIndex; break;case "CONDITION_ANY_OF":var d;if((d=H.answerIndices)==null?0:d.some(function(a){return p.includes(a)}))N=H.nextQuestionIndex; break;default:g.nm(Error("Expected specified condition in survey conditioning rules."))}}),N!=null)UHX(this,N); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.nm(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.m(bM,Kq); bM.prototype.init=function(p,C,V){var N=this;Kq.prototype.init.call(this,p,C,V);p=C.timeoutSeconds||0;if(typeof p!=="number"||p<0)g.nm(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+p));else if(C.timeoutCommands)if(C.text)if(C.ctaButton&&g.n(C.ctaButton,g.z$))if(C.brandImage)if(C.backgroundImage&&g.n(C.backgroundImage,Rd)&&g.n(C.backgroundImage,Rd).landscape){this.layoutId||g.nm(Error("Missing layoutId for survey interstitial."));fxe(this.interstitial,g.n(C.backgroundImage, Rd).landscape);fxe(this.logoImage,C.brandImage);g.ce(this.text,g.uq(C.text));var H=["ytp-ad-survey-interstitial-action-button"];H.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,H);g.R(this,this.actionButton);this.actionButton.u_(this.C);this.actionButton.init(lq("button"),g.n(C.ctaButton,g.z$),V);this.actionButton.show();this.T=new I0(this.api,p*1E3);this.T.subscribe("g",function(){N.transition.hide()}); g.R(this,this.T);this.U(this.element,"click",function(X){var d=X.target===N.interstitial;X=N.actionButton.element.contains(X.target);if(d||X)if(N.transition.hide(),d)N.api.onAdUxClicked(N.componentType,N.layoutId)}); this.transition.show(100)}else g.nm(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.nm(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.nm(Error("SurveyTextInterstitialRenderer has no button."));else g.nm(Error("SurveyTextInterstitialRenderer has no text."));else g.nm(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; bM.prototype.clear=function(){this.hide()}; bM.prototype.show=function(){Oi9(!0);Kq.prototype.show.call(this)}; bM.prototype.hide=function(){Oi9(!1);Kq.prototype.hide.call(this)};g.m(AF,dk);g.h=AF.prototype; g.h.init=function(p,C){dk.prototype.init.call(this,p,C,{});if(C.durationMilliseconds){if(C.durationMilliseconds<0){g.nm(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+C.durationMilliseconds));return}this.C=C.durationMilliseconds}else this.C=this.T.Z8();var V;if((V=C.previewText)==null||!V.text||g.Sy(C.previewText.text))g.nm(Error("No text is returned for AdPreview."));else{this.W=C.previewText;C.previewText.isTemplated||g.ce(this.V,C.previewText.text);var N; if(((N=this.api.getVideoData(1))==null?0:N.Ov)&&C.previewImage){var H,X;(p=((X=b8(((H=C.previewImage)==null?void 0:H.sources)||[],52,!1))==null?void 0:X.url)||"")&&p.length?(this.previewImage=new g.Sp({L:"img",B:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",p),g.R(this,this.previewImage),this.previewImage.u_(this.element)):g.nm(Error("Failed to get imageUrl in AdPreview."))}else this.V.classList.add("ytp-preview-ad__text--padding--wide")}}; g.h.clear=function(){this.hide()}; g.h.hide=function(){h7(this);dk.prototype.hide.call(this)}; g.h.show=function(){i$(this);dk.prototype.show.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();if(p!=null&&p.current)if(p=1E3*p.current,p>=this.C)this.transition.hide();else{var C;if((C=this.W)==null?0:C.isTemplated)if(C=Math.max(0,Math.ceil((this.C-p)/1E3)),C!==this.S){var V,N;(p=(V=this.W)==null?void 0:(N=V.text)==null?void 0:N.replace("{TIME_REMAINING}",String(C)))&&g.ce(this.V,p);this.S=C}}}};g.m(oQ,Kq); oQ.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});var V,N;if((p=((N=b8(((V=C.image)==null?void 0:V.sources)||[],yvy(C),!0))==null?void 0:N.url)||"")&&p.length){V=this.rV("ytp-ad-avatar");V.src=p;var H,X;if(N=(H=C.interaction)==null?void 0:(X=H.accessibility)==null?void 0:X.label)V.alt=N;switch(C.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(C.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.nm(Error("Failed to get imageUrl in AdAvatar."))}; oQ.prototype.clear=function(){this.hide()}; oQ.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p)};g.m(ky,Kq); ky.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});var V;p=(V=C.label)==null?void 0:V.content;if((V=p!=null&&!g.Sy(p))||C.iconImage){V&&(this.buttonText=new g.Sp({L:"span",B:"ytp-ad-button-vm__text",Ak:p}),g.R(this,this.buttonText),this.buttonText.u_(this.element));var N,H,X=((N=C.interaction)==null?0:(H=N.accessibility)==null?0:H.label)||V?p:"";X&&Cg(this.element,X+" This link opens in new tab");Go(this.element);if(C.iconImage){N=void 0;if(C.iconImage){a:{H=C.iconImage;if(H.sources)for(H= g.F(H.sources),p=H.next();!p.done;p=H.next())if(p=p.value,X=void 0,(X=p.clientResource)==null?0:X.imageName){H=p;break a}H=void 0}if(H){var d;N={iconType:(d=H.clientResource)==null?void 0:d.imageName}}}d=RS(N,!1,this.T);d!=null&&(this.buttonIcon=new g.Sp({L:"span",B:"ytp-ad-button-vm__icon",j:[d]}),g.R(this,this.buttonIcon),C.iconLeading?(Eo(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):V?(this.buttonIcon.u_(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.u_(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(C.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;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(C.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.eG(Error("AdButton does not have label or an icon."))}; ky.prototype.clear=function(){this.hide()}; ky.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p)};g.m(qYy,dk);g.h=qYy.prototype; g.h.init=function(p,C){dk.prototype.init.call(this,p,C,{});this.api.K().G("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.rV("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),Eo(this.rV("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(p=g.n(C.avatar,YY1)){var V=C.headline;if(V){var N=C.description;if(N){var H=g.n(C.button,gv);H?(this.adAvatar.init(lq("ad-avatar"),p),this.headline.init(lq("ad-simple-attributed-string"),new YU(V)),this.description.init(lq("ad-simple-attributed-string"),new YU(N)),V.content&&V.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(lq("ad-button"),H),this.startMilliseconds=C.startMs||0,this.api.WE()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.xP.bind(this)),i$(this)):g.nm(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nm(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nm(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nm(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();p&&p.current&&1E3*p.current>=this.startMilliseconds&&(h7(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.h.NO=function(){this.clear()}; g.h.onClick=function(p){this.api.pauseVideo();dk.prototype.onClick.call(this,p)}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.xP.bind(this))}; g.h.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();dk.prototype.show.call(this)}; g.h.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();dk.prototype.hide.call(this)}; g.h.xP=function(p){p==="hidden"?this.show():this.hide()};g.m(Yy,Kq);g.h=Yy.prototype; g.h.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(!C.label||g.Sy(C.label))g.nm(Error("No label is returned for SkipAdButton."));else if(g.ce(this.S,C.label),p=RS({iconType:"SKIP_NEXT_NEW"}),p==null)g.nm(Error("Unable to retrieve icon for SkipAdButton"));else if(this.V=new g.Sp({L:"span",B:"ytp-skip-ad-button__icon",j:[p]}),g.R(this,this.V),this.V.u_(this.element),this.api.K().experiments.OY("enable_skip_to_next_messaging")&&(C=g.dI(C.targetId)))this.C=!0,this.element.setAttribute("data-tooltip-target-id",C), this.element.setAttribute("data-tooltip-target-fixed","")}; g.h.onClick=function(p){p&&p.preventDefault();var C,V;jpQ(p,{contentCpn:(V=(C=this.api.getVideoData(1))==null?void 0:C.clientPlaybackNonce)!=null?V:""})===0?this.api.Jk("onAbnormalityDetected"):(Kq.prototype.onClick.call(this,p),this.api.K().G("embeds_web_enable_ad_skipped_event_publishing")&&this.api.Jk("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.h.clear=function(){this.T.reset();this.hide()}; g.h.hide=function(){Kq.prototype.hide.call(this)}; g.h.show=function(){this.T.start();Kq.prototype.show.call(this);this.C&&this.api.K().experiments.OY("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.m(IxH,dk);g.h=IxH.prototype; g.h.init=function(p,C){dk.prototype.init.call(this,p,C,{});p=g.n(C.preskipState,Xyy);if(this.S||!this.api.K().experiments.OY("disable_ad_preview_for_instream_ads")){if(!p){g.nm(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var V;(V=this.C)==null||V.init(lq("preview-ad"),p);(V=this.C)!=null&&(V.transition.show(100),V.show())}(V=g.n(C.skippableState,i6G))?(C.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=C.skipOffsetMilliseconds:(g.eG(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= 5E3),this.V.init(lq("skip-button"),V),this.show()):g.nm(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.h.show=function(){i$(this);dk.prototype.show.call(this)}; g.h.hide=function(){!this.isSkippable&&this.C?this.C.hide():this.V&&this.V.hide();h7(this);dk.prototype.hide.call(this)}; g.h.clear=function(){var p;(p=this.C)==null||p.clear();this.V&&this.V.clear();h7(this);dk.prototype.hide.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var p;(p=this.C)!=null&&p.transition.hide();(p=this.V)!=null&&(p.transition.show(),p.show())}};g.m(zS,Kq); zS.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(C.label){var V;((V=C.label)==null?0:V.content)&&!g.Sy(C.label.content)&&(this.linkText=new g.Sp({L:"span",B:"ytp-visit-advertiser-link__text",Ak:C.label.content}),g.R(this,this.linkText),this.linkText.u_(this.element));var N,H;if((N=C.interaction)==null?0:(H=N.accessibility)==null?0:H.label)Cg(this.element,C.interaction.accessibility.label+" This link opens in new tab");else{var X;((X=C.label)==null?0:X.content)&&!g.Sy(C.label.content)&&Cg(this.element, C.label.content+" This link opens in new tab")}Go(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.nm(Error("No label found in VisitAdvertiserLink."))}; zS.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType,this.layoutId)}; zS.prototype.clear=function(){this.hide()};g.m(RQ,Kq); RQ.prototype.init=function(p,C,V,N){Kq.prototype.init.call(this,p,C,{});if(C.skipOrPreview){V=C.skipOrPreview;p=g.n(V,h6P);V=g.n(V,Xyy);var H,X=this.api.K().G("clean_player_style_fix_on_web")&&((H=this.api.getVideoData())==null?void 0:H.isDaiEnabled());p?(this.Wm=new IxH(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C),g.R(this,this.Wm),this.Wm.u_(this.Z),this.Wm.init(lq("skip-ad"),p)):!V||this.api.K().experiments.OY("disable_ad_preview_for_instream_ads")&&!X||(this.S=new AF(this.api, this.layoutId,this.interactionLoggingClientData,this.l_,this.C,1),g.R(this,this.S),this.S.u_(this.Z),this.S.init(lq("ad-preview"),V),H=this.S,H.transition.show(100),H.show());if(H=g.n(C.skipOrPreview,h6P))var d=H.skipOffsetMilliseconds}C.playerAdCard&&(H=g.n(C.playerAdCard,dLf))&&(this.playerAdCard=new qYy(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C),g.R(this,this.playerAdCard),this.playerAdCard.u_(this.Sa),this.playerAdCard.init(lq("ad-avatar-lockup-card"),H));H=this.api.K().G("disable_ad_duration_remaining_for_instream_video_ads")|| C.adPodIndex!==void 0;C.adBadgeRenderer&&((p=g.n(C.adBadgeRenderer,LD))?(this.V=new R0(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,H),g.R(this,this.V),this.V.u_(this.T),this.V.init(lq("ad-badge"),p)):g.nm(Error("AdBadgeViewModel is not found in player overlay layout.")));C.adPodIndex&&(p=g.n(C.adPodIndex,jf1))&&(this.adPodIndex=new nt(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,g.n(C.skipOrPreview,h6P)===void 0),g.R(this,this.adPodIndex),this.adPodIndex.u_(this.T), this.adPodIndex.init(lq("ad-pod-index"),p));C.adInfoRenderer&&(p=g.n(C.adInfoRenderer,xr))&&(this.adInfoButton=new NN(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.element,void 0,H),g.R(this,this.adInfoButton),this.api.K().G("enable_ad_pod_index_autohide")&&this.V!==void 0?this.T.insertBefore(this.adInfoButton.element,this.V.element.nextSibling):this.adInfoButton.u_(this.T),this.adInfoButton.init(lq("ad-info-hover-text-button"),p,this.macros));var a;p=this.api.K().G("clean_player_style_fix_on_web")&& ((a=this.api.getVideoData())==null?void 0:a.isDaiEnabled());C.adDurationRemaining&&(!H||p)&&(a=g.n(C.adDurationRemaining,w5r))&&(this.adDurationRemaining=new kU(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C,N.videoAdDurationSeconds,H),g.R(this,this.adDurationRemaining),H&&this.adPodIndex!==void 0?this.T.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?H?this.T.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): this.T.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.u_(this.T),this.adDurationRemaining.init(lq("ad-duration-remaining"),a,this.macros),H&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));C.visitAdvertiserLink&&(N=g.n(C.visitAdvertiserLink,aVE))&&(this.visitAdvertiserLink=new zS(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.visitAdvertiserLink),this.visitAdvertiserLink.u_(this.T), this.visitAdvertiserLink.init(lq("visit-advertiser-link"),N));C.adDisclosureBanner&&(C=g.n(C.adDisclosureBanner,Crp))&&(this.adDisclosureBanner=new e2(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.adDisclosureBanner),this.adDisclosureBanner.u_(this.b_),this.adDisclosureBanner.init(lq("ad-disclosure-banner"),C));this.api.K().G("show_preskip_progress_bar_for_skippable_ads")&&(this.W=new $U(this.api,this.C,d,H),g.R(this,this.W),g.LT(this.api,this.W.element,4));this.show()}; RQ.prototype.clear=function(){this.hide()};g.m(bia,Kq);g.h=bia.prototype; g.h.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(C!=null&&C.title)if(p=C.title)if(this.headline.init(lq("ad-simple-attributed-string"),new YU(p)),p=g.n(C.moreInfoButton,gv)){if(this.moreInfoButton.init(lq("ad-button"),p),C.descriptions)C.descriptions.length>0&&(p=C.descriptions[0])&&(this.T=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.T),this.T.u_(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(lq("ad-simple-attributed-string"), new YU(p))),C.descriptions.length>1&&(C=C.descriptions[1])&&(this.C=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.C),this.C.u_(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.C.init(lq("ad-simple-attributed-string"),new YU(C)))}else g.nm(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.nm(Error("No headline found in AdGridCardText."));else g.nm(Error("No headline found in AdGridCardText."))}; g.h.onClick=function(p){Kq.prototype.onClick.call(this,p);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.h.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var p;(p=this.T)==null||p.clear();var C;(C=this.C)==null||C.clear()}; g.h.hide=function(){this.headline.hide();this.moreInfoButton.hide();var p;(p=this.T)==null||p.hide();var C;(C=this.C)==null||C.hide();Kq.prototype.hide.call(this)}; g.h.show=function(){Kq.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var p;(p=this.T)==null||p.show();var C;(C=this.C)==null||C.show()};g.m(nD,Kq);nD.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(C!=null&&C.gridCards)if(C.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.nm(Error("Only single column style is currently supported in AdGridCardCollection."));else for(p=g.F(C.gridCards),C=p.next();!C.done;C=p.next()){if(C=g.n(C.value,H60)){var V=new bia(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,V);V.u_(this.element);V.init(lq("ad-grid-card-text"),C);this.T.push(V)}}else g.nm(Error("No grid cards found in AdGridCardCollection."))}; nD.prototype.show=function(){for(var p=g.F(this.T),C=p.next();!C.done;C=p.next())C.value.show();Kq.prototype.show.call(this)}; nD.prototype.clear=function(){this.hide();for(var p=g.F(this.T),C=p.next();!C.done;C=p.next())C.value.clear()}; nD.prototype.hide=function(){for(var p=g.F(this.T),C=p.next();!C.done;C=p.next())C.value.hide();Kq.prototype.hide.call(this)};g.m(eC,dk);g.h=eC.prototype;g.h.init=function(p,C,V,N,H){H=H===void 0?0:H;dk.prototype.init.call(this,p,C,V,N);this.playerProgressOffsetMs=H;i$(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Sx.bind(this));this.api.addEventListener("resize",this.s6.bind(this));this.api.WE()?(this.C=!0,this.api.Gz(!0),this.show()):this.hide()}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();p&&p.current&&!this.C&&1E3*p.current>=this.playerProgressOffsetMs&&(this.C=!0,this.api.Gz(!0),this.show())}}; g.h.NO=function(){this.C&&this.api.Gz(!1);this.hide()}; g.h.clear=function(){this.api.Gz(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Sx.bind(this));this.api.removeEventListener("resize",this.s6.bind(this));h7(this);this.hide()}; g.h.hide=function(){AvL(!1);dk.prototype.hide.call(this)}; g.h.show=function(){AvL(!0);dk.prototype.show.call(this)};g.m(oMe,eC);g.h=oMe.prototype;g.h.init=function(p,C,V,N){if(C!=null&&C.adGridCardCollection)if(C!=null&&C.adButton){var H=Number(C.playerProgressOffsetMs||"0");isNaN(H)?eC.prototype.init.call(this,p,C,V,N):eC.prototype.init.call(this,p,C,V,N,H);p=g.n(C.adGridCardCollection,NoF);this.adGridCardCollection.init(lq("ad-grid-card-collection"),p);C=g.n(C.adButton,gv);this.adButton.init(lq("ad-button"),C);this.hide()}else g.nm(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.nm(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.h.onClick=function(p){this.adButton&&g.t2(this.adButton.element,p.target)&&this.api.pauseVideo();eC.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.h.s6=function(){}; g.h.clear=function(){this.hide();this.adGridCardCollection.clear();this.adButton.clear();eC.prototype.clear.call(this)}; g.h.show=function(){this.adGridCardCollection.show();this.adButton.show();eC.prototype.show.call(this)}; g.h.hide=function(){this.adGridCardCollection.hide();this.adButton.hide();eC.prototype.hide.call(this)}; g.h.Sx=function(p){p==="transitioning"?(this.V.classList.remove("ytp-ad-underlay-clickable"),this.show()):p==="visible"?this.V.classList.add("ytp-ad-underlay-clickable"):p==="hidden"&&(this.hide(),this.V.classList.remove("ytp-ad-underlay-clickable"))};g.m(Pq,Kq); Pq.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(C.attributes===void 0)g.nm(Error("No attributes found in AdDetailsLineViewModel."));else if(C.style===void 0)g.nm(Error("No style found in AdDetailsLineViewModel."));else{p=g.F(C.attributes);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.text!==void 0){V=V.text;var N=C.style,H=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,H);H.u_(this.element);a:switch(N){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":N="ytp-ad-details-line__text--style-responsive"; break a;default:N="ytp-ad-details-line__text--style-standard"}H.element.classList.add(N);H.init(lq("ad-simple-attributed-string"),new YU(V));this.T.push(H)}this.show()}}; Pq.prototype.show=function(){this.T.forEach(function(p){p.show()}); Kq.prototype.show.call(this)}; Pq.prototype.clear=function(){this.hide()}; Pq.prototype.hide=function(){this.T.forEach(function(p){p.hide()}); Kq.prototype.hide.call(this)};g.m(wv,Kq);wv.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});var V,N;(p=((N=b8(((V=C.image)==null?void 0:V.sources)||[]))==null?void 0:N.url)||"")&&p.length?(V=this.rV("ytp-image-background-image"),g.K2(V,"backgroundImage","url("+p+")"),C.blurLevel!==void 0&&g.K2(V,"filter","blur("+C.blurLevel+"px)"),C.gradient!==void 0&&(C=new g.L({L:"div",i_:["ytp-image-background--gradient-vertical"]}),g.R(this,C),C.u_(this.element)),this.show()):g.nm(Error("Failed to get imageUrl in ImageBackground."))}; wv.prototype.clear=function(){this.hide()};g.m(kgV,dk);g.h=kgV.prototype;g.h.init=function(p,C){dk.prototype.init.call(this,p,C,{});g.K2(this.V,"stroke-dasharray","0 "+this.C);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){h7(this);dk.prototype.hide.call(this)}; g.h.show=function(){i$(this);dk.prototype.show.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();p!=null&&p.current!=null&&g.K2(this.V,"stroke-dasharray",p.current/p.seekableEnd*this.C+" "+this.C)}};g.m($y,Kq); $y.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(zl1(C)){this.adAvatar=new oQ(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adAvatar);this.adAvatar.u_(this.rV("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(lq("ad-avatar"),g.n(C.adAvatar,YY1));this.headline=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.headline);this.headline.u_(this.rV("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(lq("ad-simple-attributed-string"),new YU(C.headline));if(p=g.n(C.adDetailsLine,py0))this.detailsLine=new Pq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.detailsLine),this.detailsLine.u_(this.rV("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(lq("ad-details-line"),p);this.adButton=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adButton);this.adButton.u_(this.rV("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container")); this.adButton.init(lq("ad-button"),g.n(C.adButton,gv));p=this.api.G("disable_ad_preview_for_instream_ads");this.adBadge=new R0(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,p);g.R(this,this.adBadge);this.adBadge.u_(this.S);this.adBadge.init(lq("ad-badge"),g.n(C.adBadge,LD));this.adInfoButton=new NN(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.element,void 0,p);g.R(this,this.adInfoButton);this.adInfoButton.u_(this.S);this.adInfoButton.init(lq("ad-info-hover-text-button"), g.n(C.adInfoRenderer,xr),this.macros);if(p=g.n(C.skipAdButton,i6G))this.skipAdButton=new Yy(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.skipAdButton),this.skipAdButton.u_(this.element),this.skipAdButton.init(lq("skip-button"),p);this.C=new b$(C.durationMilliseconds);g.R(this,this.C);if(p=g.n(C.countdownViewModel,sf2))this.T=new kgV(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C),g.R(this,this.T),this.T.u_(this.rV("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")), this.T.init(lq("timed-pie-countdown"),p);if(C=g.n(C.imageBackground,Vk1))this.imageBackground=new wv(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.imageBackground),this.imageBackground.u_(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(lq("image-background"),C);this.show();this.element.focus()}}; $y.prototype.clear=function(){g.Am(this.V);this.hide()}; $y.prototype.show=function(){xHX(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Kq.prototype.show.call(this)}; $y.prototype.hide=function(){xHX(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.T&&this.T.hide();this.imageBackground&&this.imageBackground.hide();Kq.prototype.hide.call(this)};var yP8="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.m(Wq,GB); Wq.prototype.S=function(p){var C=p.id,V=p.content,N=V.componentType;if(!yP8.includes(N))switch(p.actionType){case 1:p=this.api;var H=this.l_,X=V.layoutId,d=V.interactionLoggingClientData,a=V instanceof CR?V.RE:!1,E=V instanceof CR||V instanceof qN?V.L5:!1;d=d===void 0?{}:d;a=a===void 0?!1:a;E=E===void 0?!1:E;switch(N){case "invideo-overlay":p=new jGv(p,X,d,H);break;case "player-overlay":p=new Lt(p,X,d,H,new du(p),E);break;case "player-overlay-layout":p=new RQ(p,X,d,H,new du(p));break;case "survey":p= new IQ(p,X,d,H);break;case "ad-action-interstitial":p=new rSe(p,X,d,H,a,E);break;case "video-interstitial-buttoned-centered":p=new $y(p,X,d,H);break;case "survey-interstitial":p=new bM(p,X,d,H);break;case "ad-message":p=new sGQ(p,X,d,H,new du(p,1));break;case "player-underlay":p=new EMX(p,X,d,H);break;case "display-underlay-text-grid-cards":p=new oMe(p,X,d,H,new du(p));break;default:p=null}if(!p){g.eG(Error("No UI component returned from ComponentFactory for type: "+N));break}g.bc(this.C,C)?g.eG(Error("Ad UI component already registered: "+ C)):this.C[C]=p;p.bind(V);V instanceof Gl?this.V?this.V.append(p.qM):g.eG(Error("Underlay view was not created but UnderlayRenderer was created")):this.W.append(p.qM);break;case 2:C=RlQ(this,p);if(C==null)break;C.bind(V);break;case 3:V=RlQ(this,p),V!=null&&(g.iP(V),g.bc(this.C,C)?(V=this.C,C in V&&delete V[C]):g.eG(Error("Ad UI component does not exist: "+C)))}}; Wq.prototype.CS=function(){g.s1(Object.values(this.C));this.C={};GB.prototype.CS.call(this)};g.m(nMS,g.IT);g.h=nMS.prototype;g.h.create=function(){try{elL(this),this.load(),this.created=!0,elL(this)}catch(p){S2(p instanceof Error?p:String(p))}}; g.h.load=function(){try{$HY(this)}finally{pD(DO(this.T).cB)&&this.player.hp("ad",1)}}; g.h.destroy=function(){var p=this.player.getVideoData(1);this.T.T.rJ.zA(p&&p.clientPlaybackNonce||"");this.unload();this.created=!1}; g.h.unload=function(){g.IT.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(C){S2(C instanceof Error?C:String(C))}if(this.C!=null){var p=this.C;this.C=null;p.dispose()}this.V.reset()}; g.h.P_=function(){return!1}; g.h.getAdState=function(){return-1}; g.h.getOptions=function(){return Object.values(Oy5)}; g.h.DP=function(p,C){C=C===void 0?{}:C;switch(p){case "replaceUrlMacros":return p=C,p.url?(C=iQH(this.player),Object.assign(C,p.PXY),p=g.nX(p.url,C)):p=null,p;case "onAboutThisAdPopupClosed":this.nt(C);break;case "executeCommand":p=C;p.command&&p.layoutId&&this.executeCommand(p);break;default:return null}}; g.h.qE=function(p){var C;return!((C=this.T.T.BV)==null||!C.get().qE(p))}; g.h.nt=function(p){p.isMuted&&EJX(DO(this.T).I8,DO(this.T).Bp,p.layoutId);this.R0&&this.R0.nt()}; g.h.executeCommand=function(p){DO(this.T).l_.executeCommand(p.command,p.layoutId)};g.YH("yt.player.Application.create",g.vN.create);g.YH("yt.player.Application.createAlternate",g.vN.create);erj(xG(),fmP);var qlG=g.zV("ytcsi.tick");qlG&&qlG("pe");g.qA("ad",nMS);g.m(g.Bq,g.Y);g.Bq.prototype.start=function(p,C,V){this.config={from:p,Y$:C,duration:V,startTime:(0,g.Ip)()};this.next()}; g.Bq.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.Bq.prototype.next=function(){if(this.config){var p=this.config,C=p.from,V=p.Y$,N=p.duration;p=p.startTime;var H=(0,g.Ip)()-p;p=this.T;N=BTY(p,H/N);if(N==0)p=p.D;else if(N==1)p=p.J;else{H=vG(p.D,p.W,N);var X=vG(p.W,p.Y,N);p=vG(p.Y,p.J,N);H=vG(H,X,N);X=vG(X,p,N);p=vG(H,X,N)}p=g.J9(p,0,1);this.callback(C+(V-C)*p);p<1&&this.delay.start()}};g.m(g.GS,g.L);g.h=g.GS.prototype;g.h.hasSuggestions=function(){return this.suggestionData.length>0}; g.h.sT=function(){this.C&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.h.show=function(){g.L.prototype.show.call(this);Bja(this)}; g.h.IP=function(){this.C&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.h.V2=function(){this.OR(this.api.dV().getPlayerSize())}; g.h.OR=function(p){var C=this.api.isEmbedsShortsMode()?.5625:16/9,V=this.api.GW();p=p.width-(V?112:58);V=Math.ceil(p/(V?320:192));var N=(p-V*8)/V;C=Math.floor(N/C);for(var H=g.F(this.T),X=H.next();!X.done;X=H.next())X=X.value.rV("ytp-suggestion-image"),X.style.width=N+"px",X.style.height=C+"px";this.suggestions.element.style.height=C+"px";this.S=N;this.J=C;this.containerWidth=p;this.columns=V;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.pM(this)}; g.h.onVideoDataChange=function(){var p=this.api.K(),C=this.api.getVideoData();this.W=C.UV?!1:p.S;this.suggestionData=C.suggestions?g.JT(C.suggestions,function(V){return V&&!V.playlistId}):[]; pvc(this);C.UV?this.title.update({title:g.Ks("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:C.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"})}; g.h.scrollTo=function(p){p=g.J9(p,this.containerWidth-this.suggestionData.length*(this.S+8),0);this.D.start(this.scrollPosition,p,1E3);this.scrollPosition=p;g.pM(this);Bja(this)};})(_yt_player);