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,OS,yL,qs,Iu,b9,AQ,T1v,kH,Ru,nY,JQj,msv,vHV,GV,C0,Fye,SSe,dY,aF,E1,lP,DsL,ueu,ZYu,Usy,fje,OYL,yQj,qSS,Tp,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,RF,ey,P5,WyL,QuL,$2,B1H,GVs,jk,p5S,ir,CPS,jFX,NL,Vya,NYH,H0Q,cy,X5e,i0V,tyH,Fv,lvS,sFX,TYQ,JfV,v2u,K6,DV,ZV,f6,Uv,S1X,Dcj,uGV,Ov,UcQ,yR,O0Q,If,br,AB,of,kT,q1a,zt,n6,ek,wo,$T,Wy,o2L,By,C_,Vx,kps,jn,xcV,Y1a,N1,p_, HT,X_,zEV,dw,ig,n2S,sL,aO,EL,PPj,T9,w5y,$c9,Lrj,eEs,cT,tc,lg,g2L,Wre,QFS,rf9,BYs,mK,vT,F_,GpV,Nou,jfS,ug,H6Y,VkS,pyY,CrV,dLQ,IO,yx,sfH,h69,aVX,ETL,bg,lVS,tkj,Ac,oO,xK,kK,z9,YK,RO,L_,n_,PT,ww,MkX,WT,JBY,Qx,rw,Cy,jq,VG,BT,py,G9,Xa,ToQ,dC,mLH,Nc,iB,hP,en,$K,sl,Svv,at,lB,XG,tP,c4,TA,Mm,JP,mM,v4,Kq1,Fa,DLV,Sq,uvX,Dm,Ky,Zm,Ul,fy,Ol,yG,Z6L,fVX,It,O69,yBL,bB,AP,xV,IVS,b6v,YV,xLY,R69,ABV,z6S,YvY,kta,oTL,nTS,ny,e6s,wC,$V,wye,Ly,Lqu,gC,W4,QG,gTu,rC,Wq9,B4,Qfj,rB1,GA,BoY,pH,CH,V5,NX,pTe,dV,Vns,Gts,i0,ac,EQ,H_a, l0,cn,XTH,i_V,hjY,TN,MX,Jb,ma,vn,FH,Sl,aBy,EKu,lB1,tn1,KH,ccv,Tws,Du,u0,Zu,UQ,Mne,FKu,SLL,D1Y,KKY,u_Y,U1s,qX,Ic,b0,Ab,oc,xe,Ye,qLS,Rc,el,Pn,wV,$e,b_u,gV,Wn,Acv,Q5,rV,oKs,GN,CG,jg,N$,HG,dI,ic,Pg9,wT9,$1u,LKa,h9,s_,gKY,WKS,QO9,aa,E_,lc,t9,Th,m9,Fn,DH,U_,rcH,Bwu,A9,G9S,$5,LG,jts,dme,Hya,hv1,QW,rI,ju,EVV,tqY,lma,Nq,XQ,cPV,He,aN,WG,MqX,TC1,TO,ce,gI,Mq,J2,mS,JPX,ve,vVH,uK,FMS,Zz,Uo,fe,Oo,SlX,bK,KMS,qq,Dmu,yf,IN,uaa,Zyy,Um9,xq,fm9,Oyv,qle,yPL,kq,Yq,zO,Ims,byv,APH,RN,oVH,ne,m1a,JcV,eu,Pe,$q,We,YlS,Qf,rW, GO,zvH,Rvv,pJ,$mj,HX,evY,w41,VU,jS,h8,s8,LMS,lm,gVe,t8,cX,WMv,rPe,mo,GAy,Fu,SS,pn9,C09,um,ZC,U8,HHV,dXX,O8,iHQ,fJ,EeQ,KJ,Vla,tlj,aua,hJY,scL,cbv,luj,yU,Xnu,bm,Mle,Jb9,mXV,ves,FaX,x7,SQX,zD,KaH,ZHV,UXv,Rb,nJ,eS,LJ,OHS,gA,WX,QU,ybS,qQL,GD,Iuu,pN,CN,oeY,xXu,zJV,YQL,RJu,VO,Xr,s$,E$,l3,t$,ci,Tq,P0Y,wnH,Mj,$Xj,J$,m0,aX,vi,Fr,SE,KN,H5,Dt,La9,Zt,U$,QcV,fN,O$,yO,rbs,BVa,GNe,pGj,oX,kN,xN,YN,NIL,Vgs,HGY,XGa,d$y,zq,iGL,Cce,RX,hQ9,saQ,nN,E5a,lHe,tge,c9X,TIe,Pi,MgX,J9V,m$y,v5s,K91,F9a,wU,$N,LN,gU,Wi,QO,rU,Bi,una, ZGv,pE,Gq,CE,U$a,jZ,fHV,OG9,y9Y,q_H,Vh,H2,A9y,N_,o5S,Xf,khy,dh,ip,hE,sV,as,EV,RQa,x$v,c2,zQy,Ti,Y_1,tE,lp,JE,eQL,v2,mn,up,Zq,fE,$$H,UV,q_,L99,Is,Pc1,Qa9,r9y,BIL,os,k3,x3,Ghs,zi,Rs,nE,eZ,pea,P2,wh,$3,CKa,jNL,LE,VuV,dqY,XeL,ies,hC9,sNv,NWe,Eqe,gh,W2,Qh,lzV,B2,rh,tuj,c2a,TWH,j1,Muu,VA,Nk,J2S,Hs,vqY,XL,mqH,FSH,Soy,KSj,dT,iZ,hU,sh,ao,Eh,lZ,Dqu,tU,cs,Ty,uQe,UqQ,fzu,JU,vs,mg,S1,Kh,De,y2V,qoH,uZ,Ze,Uh,be1,A21,xqQ,oqj,You,eCa,fh,nqX,zCS,Oh,yA,PKH,qk,wea,Io,LSj,$qa,gqv,WSu,kc,xc,QNu,r29,BWL,Yc,zy,GOV,Ro,pX1, Cms,VSe,d79,nh,iJu,hNY,sb1,aCL,E7u,wT,lCa,tSH,c8y,Bs,rT,QA,TAj,MSX,J8L,Gy,p2,C2,v7a,EE,l4,tx,cf,Tu,MK,S8s,Koa,D7s,Jx,vf,Fj,u4,Zo,OE,ZJs,fCS,U7y,OJH,y8S,o9,q8u,ICe,ko,bJL,A8a,o7e,kDs,R9,Yo,n2,eh,Pf,x7Y,Y8H,zNV,w9,$o,RNV,L2,n7y,eNY,Pma,g9,wXX,Wf,QT,$7s,Loy,g79,Woe,QbS,r8Y,r9,Bf,Gu,Co,piv,jr,VF,C31,GDV,po,jXu,NZ,Hp,XU,hT,dx,VEH,NUa,HNv,sH,dj1,a1,hZ1,sXS,atY,EN9,ltV,tE9,c$Y,TUa,tT,cp,T2,J$a,MES,mjY,vNY,JT,F0X,mO,S$e,K01,vp,FU,Sr,DjH,Ko,DA,urL,uf,ZA,UH,fo,OH,yF,qZ,I1,ZNa,UjS,ftv,ONa,bf,y$L,Its,q$H,o1, kC,A$s,bNa,xjL,RZe,zZL,xC,nNH,eZY,P3j,$jv,wiH,L0Q,YC,gN1,W0j,R1,QXy,r$9,BU1,GqX,no,p2L,er,CpX,Pp,wx,VZQ,$C,Nhj,Lo,gx,HEL,X21,Wp,rx,iEu,Bp,d_X,hpy,ssu,aqH,lqY,G2,tZX,j0,Vr,ThQ,MZj,v3Q,Fnv,NP,Ho,Xl,dE,iu,hC,sM,aq,EM,lu,tC,co,To,ufX,D_S,ZEj,fqS,U_9,yEH,KnY,OE1,SVj,MP,JC,IqL,bEj,AEs,fX,OM,yr,mV,kiS,qP,qVv,YVy,zpQ,x_u,Iq,bu,AC,oq,Rpa,o3V,n3H,kI,epv,Ppj,w2H,$_X,Lns,Qsy,rEy,Bhe,GiX,xI,ps1,CZe,V1a,NTY,zo,Xss,Rq,YI,ihu,dkY,aee,ley,t1a,cUV,TT1,JUX,wE,$I,mke,M1V,FgV,Kg9,Dkv,ZhY,qhy,Qr,IeS,Wo,Bo,bhj,Go,Cg,jJ, AUH,oca,kya,hk,xkY,Yhs,Jk,zu9,ncL,ml,euH,PZe,WgH,wsQ,Kg,DJ,uI,Ud,fg,pfu,Od,y2,q8,j9u,Ak,Vha,N9u,oL,Xfy,xF,YF,zz,RL,dKV,ng,PF,w0,$F,Lg,i2e,WF,Q2,r0,BF,Gz,pd,hUs,s9u,aoa,Eos,loL,thX,Cd,cxX,ia,T9S,Mhu,JxV,hp,a6,Eg,la,TH,Mv,Jp,voL,FC,S7,Kd,FG9,SES,DD,KGY,DKL,ZD,IoV,b2Q,Axa,Ug,oo9,ku9,zUe,Og,no1,RUQ,qv,P4X,wfH,$KH,ba,Ap,LGj,o6,kQ,xQ,YQ,zH,R6,P6,wf,$Q,Ld,gf,W6,QJ,rf,goe,WGQ,Q9V,GH,CO,rxH,Hd,X5,dm,i1,hw,aK,Ek,Cfj,l1,tw,cd,Vry,j1Q,B9V,Jw,MU,dZj,m1,fO,u1,Ok,yg,hzL,EC9,IK,cTH,lAY,tru,Mrs,SHs,JT9,vCy,FOY,Aw, b1,KOv,kD,xD,YD,DZu,wm,uUs,$D,LO,Wd,Zoe,rm,Bd,UZu,GQ,pK,Oou,Vc,Hw,XW,d8,iO,hm,sB,a_,EB,lO,qHj,tm,M5,TW,boe,xZL,oCH,k2S,YHs,zzQ,nCS,ezS,RzS,wpj,vw,FW,D3,$ZX,LOa,KK,uO,WOX,Q1S,pos,G2j,OB,yc,q5,I_,bO,o_,jqv,V0a,NE1,ez,Pw,HXH,XoV,dP9,Ww,Qc,r8,iXy,hFL,aKa,lK1,C3,t0y,Np,j_,dq,iN,s2,cCy,Mp,J1,mW,vW,S_,K3,uN,vIV,FVa,U2,SMy,KVL,O2,DPj,ulu,yl,qp,ZXe,UPv,OXH,op,qMX,IKH,bN,bXY,ACa,ko1,oI9,z4,yCe,YM9,zFQ,$t,PW,RFX,nIa,L3,gq,eFa,Puu,rq,wo1,$P1,LVe,gIH,jV,WV1,QqX,rCy,BEV,GoX,pFQ,CIv,jLL,Ne,VJs,XD,Hgv,XFY,d8Q,igY, hoV,dy,K5,aJS,tJy,Dh,ckL,MJs,sLV,Jku,m8Y,vFX,EFV,lJH,iR,hN,me,T0a,ax,sX,Fl9,Sd1,KlQ,D8H,uV1,ZgX,qdu,U8v,f5,OX,Ix,AkX,x8L,kzQ,qe,ox,YdS,Yp,zoa,nFy,PC,Roy,rkL,eoj,QLQ,gy,B0L,Caa,WC,L5,Gze,p6X,j69,ry,NfQ,Hd9,X6X,dvs,idY,hi1,s6H,V7y,EQX,lD9,t7y,Tfu,cpY,Jpa,C1,mvL,jF,Vq,NM,vQu,F2v,d$,iV,K2a,SgH,h3,DvQ,Zd1,fDS,UvH,Odj,IDe,ypV,vl,K1,SF,bdL,F3,D9,uV,Z9,ApL,oQH,f1,xva,qM,yq,bV,A3,oh,YgL,kJ,YJ,ziu,Rh,eF,Pl,Ria,nQS,eiY,Pa9,w$,L1,w6Y,g$,Wl,Qq,L2X,r$,Bl,gQS,pm,Vm,jG,Cm,NY,HQ,rpY,VeS,HO1,jKj,C1v,NmY,iz,aW,dU1, XdH,Tj,MY,Q6y,Tm1,Km,cwv,mUS,tev,d7,DE,cQ,FI,Mea,lz,GHY,BfH,pdS,sK,lrH,fm,ZOj,u5Y,OK,fru,OOY,ywy,qY,qk1,IrV,bOu,oDV,kQS,AG,Yky,oW,zre,RrQ,erj,P19,xG,wdj,L1V,YG,gD9,zj,RW,lN,GQV,N8v,Lm,Xwa,h8X,WQ,a3S,ElQ,l3H,tzY,Xi,cmV,Ny,oFv,jp,Ha,VD,Qm,tO,lq,TB,JO,MzQ,mz,Fi,Sp,Jm9,m5L,uq,F_a,SBH,K_H,D5a,uW1,ZKv,U5v,f3S,OKY,yms,Oy,qBQ,yD,IS,I31,bKv,AmY,bq,olS,kWj,x0,Y0,zB,x51,RS,YBs,ep,R8u,z8H,we,$0,Lq,ge,nlj,Wa,QD,e8S,POY,re,Ba,gle,wwy,L_s,$51,GB,pt,Ct,W_u,Q_j,rmX,j2,GWV,jpQ,CN9,V_,NN,HE,XK,dk,h7,a0,Eu,l$,t7,cE, T6,V_H,Nqu,H3u,MN,J7,mA,vE,S2,D7,i3v,dpL,Z7,hVu,Uu,ft,Ou,y_,qN,A7,o0,kU,xU,YU,z6,R0,nt,e2,PE,wk,EtL,Lt,WE,l1H,Q_,c1u,Tqv,M_S,mpL,FWv,FX,S2V,KS,Si,u2v,Z3Q,Upv,u7,Za,O3X,fS,On,yQ,qQ,q2u,ID,b7,A0,I1Q,oD,y1e,ki,xi,A1j,b3X,Yi,z0,RD,nS,Ph,k4H,xpS,$i,LS,Wh,QQ,Y2y,g3,ntH,eVa,PNa,wWL,$p9,LWH,gtL,Bh,r3,RVy,r11,G0,G4y,pCV,NR,CRQ,CU,jL,jxy,HH,Nyj,XCy,XA,dc,de9,ie,hkH,hd,cNV,lh1,sx1,EpX,ahH,a4,E0,le,td,cH,Tk,MR,mI,MVe,vpL,SL,HhS,KU,Fe9,Keu,ue,O0,Zf,fU,U0,Z5u,uD9,DeV,UeL,y3,fhv,Ihy,qR,be,ANu,Ad,o4,k9,x9,opa,Y9, k1Q,xe1,R4,wc,$9,LU,gc,WH,Q3,rc,BH,Gk,pW,CW,js,Vi,YXX,zka,Ng,HJ,Xq,d_,i8,hq,Rkv,npH,sF,tq,wCQ,$ea,cJ,Tf,Ss,KW,gpS,Zk,OF,Wej,rN9,QxX,ByQ,G1y,pls,CVv,jhX,VFy,H1u,N$S,XlS,hI9,a91,i1Q,qg,IE,l9s,EJX,b8,Aq,oE,tF9,kY,xY,YY,T$V,MF9,zf,c3e,RE,vJu,nW,es,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,XJ,dt,SIv,iH,B,h4,HU,sf,a3,Ef,DM1,t4,Z1L,lH,UMS,Tm,f9Q, J4,cU,mi,vU,FJ,KP,y31,qIS,I9H,b1V,I3,bH,fP,A4,oJa,k71,xMa,YIj,O1Q,zIs,SU,RIX,nJQ,k6,nP,x6,uH,eIY,Dc,o3,Y6,eU,wlX,Zc,Uf,R3,zm,$MV,PU,wt,$6,LP,Ld9,gt,WU,QV,rt,BU,gJj,WdQ,r3v,B$9,Cs,jY,V6,No,VGe,Hmy,dYX,im1,XY,sWV,aES,Ez,EGu,lG,ty,c8,Tl,Mo,Jy,lEV,cGX,T7V,tGY,MGy,JG9,SY,Ks,uG,Uz,fs,Oz,y6,mYS,qo,Ij,Dl,oj,ku,xu,Yu,vGa,Ay,SKu,zl,KhH,DY1,Rj,uIe,ns,eY,Zme,UYe,P8,fEy,OmH,wn,yGu,qKS,IEX,bme,$u,Ls,AGe,oGS,gn,W8,Q6,kjX,rn,B8,Gl,pR,xYV,CR,j9,YKL,Vu,zYQ,ND,RYS,nGy,eYs,Pzy,wQ1,$YL,HB,LhY,gG1,Whv,XN,QWX,dO,rGH,iv, B7V,hn,Gjj,paX,sN,cB,Cqe,Tx,MD,jSv,Jn,Vpu,mQ,vB,FN,NeH,Hqe,KR,Ds,dys,uv,iqY,h3L,Xay,sSS,aUX,E0e,UN,lU1,fR,ON,yu,qD,tpV,Ir,bv,or,cOS,kZ,xZ,TeV,zx,e9,Rr,LR,gO,Mpu,WB,Qu,rO,BB,JOS,px,myX,jb,VE,Nf,wO,Hc,Xz,dN,v0j,iX,hj,sJ,Fz1,a7,EJ,Pc,Lx,gN,QE,rN,Bc,Gw,Sy1,Kzu,DyQ,uiL,VP,pV,Nr,Hj,Zqy,UyV,fUV,XO,dl,iU,Oq9,yOv,j6,qyL,IUS,hK,bqa,s3,ak,lU,tK,cj,TP,Mr,mE,vj,S6,KV,D5,uU,FO,kBe,xyu,U3,fV,O3,Yys,qr,R3V,Ik,bU,n09,AK,ok,kL,YL,e31,xL,zP,Rk,nV,Pqe,wl,$yy,Lzs,g0e,$L,LV,WzV,QS9,rOe,gl,GBV,yP,Bey,pEu,Wj,C$S,QP,j09, rl,V29,Nky,Hta,XEV,dNe,Bj,hSj,it9,GP,jI,s01,V4,a7Y,NV,EUy,l71,HS,t2e,c71,TkS,M2y,Xc,J7s,dF,vUj,hV,sG,Su9,FAS,KAs,DNj,uKQ,EG,lb,tV,Ztv,UNe,f79,Ots,y7Q,quL,I7H,bty,A79,oUL,TT,MV,JV,k6S,xNY,mL,vS,Yue,Fc,SI,DQ,zSH,ub,ZQ,UG,RSu,fr,nUS,OG,eSL,y4,P$u,wEX,qV,$NL,LAv,gU1,Il,bb,AV,ol,kP,WAV,Q0y,xP,YP,zT,r7e,Rl,nr,eI,PS,wF,BkS,G6H,$P,Lr,phY,gF,WS,Q4,rF,QhS,C7X,jDH,BS,ViV,N3u,HSu,GT,pj,Cj,jB,V9,NB,HP,Xg,d2,hM,sT,Xhy,dQv,MB,JM,iSQ,m$,Zd,Fg,tiy,mQy,c0V,vi1,SnL,Kce,FcV,DQX,uXV,ZSV,Yr,OSS,qnQ,bSy,A0L,oi9,nj,eB,xQS, YnX,ex9,PP,P7S,zxy,w2,$r,Lj,g2,$Q9,Wc1,LcY,B39,HUQ,NcX,G0L,XHS,Q9,Cea,pH1,h_9,E9V,afY,TcQ,lfH,r2,BP,FIj,Ca,S0S,ffa,URv,ZU1,DRv,q0V,ydV,uAY,kkS,o9L,xRy,Xm,R_X,Y0a,z_Y,KIj,n9S,e_S,j8,N3,bUa,Ifa,Ada,PeX,Vn,OUe,$RQ,g9Q,Q41,Bcj,C8V,jEY,N_e,HWY,dgS,XJQ,EYj,hsS,iWy,lkH,T_u,Msu,Jqv,mge,M3,y0e,SFj,vYL,v0,uqY,S8,UgH,fkS,ZWy,Ka,OWY,DY,u_,mk,ZY,faQ,UA,fa,OA,yqj,qFs,yn,IkH,bWv,Aqj,q3,IY,b_,AL,oY,kx,xx,Yx,zd,oYX,kfS,RY,xgv,na,Cr,e8,P0,zsj,YFa,w6,Rs9,nYu,$x,La,esL,g6,P8S,wJ9,IaH,Dgu,$gu,W0,v8,ps,d6,LCS,gYv,r6,v9H, G$,WCj,JL,mH,hL,i_,WP,aY,Gks,Vsu,sA,MLV,tsX,QES,dRL,j4v,B0,KCj,Rd,B_u,rqv,wha,pJV,Gfa,cq9,c0,JdV,mR1,s4Y,rd1,WIX,r0H,giY,niY,RxL,k0L,wHu,VLX,sEv,tL9,cd9,l_,tL,EA,ak1,LIu,C6a,pVX,Gd,pz,Cz,j3,VC,XF,h5,si,aH,lt,t5,NO,HY,Ei,VTu,jwL,cY,MO,NgS,HFv,XVj,J5,mZ,vY,FF,S3,Kz,DF,sws,ZF,ut,aSX,iFa,hK1,E_a,Ui,fz,lSQ,tTS,Oi,caY,E2,MT9,TgQ,mGv,Fte,Sry,v_j,Kt9,ZFY,oH,k1,UGu,fSj,x1,Y1,OFu,yaL,qrS,ISH,RH,e3,PY,AaH,o_e,Yr1,RKS,n_L,zKV,Lz,WY,gr,eKX,P6y,wr,wVv,$Gj,LtS,g_e,$1,Bg1,Gcu,pUL,raa,Qws,Wt1,CHe,j31,kce,VUy,xGL, NtX,HPV,hqe,XUy,dzQ,iPy,E6Q,s3Y,acu,lc1,tUe,rr,MUs,c4a,J41,TtQ,mzV,v6y,FiL,SfL,KiL,Dzj,uJ1,ZPL,Uz9,fcY,OPH,y4H,BY,IcQ,bPy,A49,qfy,o6S,kmL,zqS,pw,VS,H1,RqH,XP,dH,i5,wUX,Lia,$zH,Wiv,VY9,Tr,sc,g6a,PHL,eqj,n6e,c1,a2,te,FP,So,X8H,Kw,Dy,v1,sjy,doV,isv,al9,u5,Zy,ll1,fw,Oc,yS,qi,I2,b5,Ae,tYQ,cyv,o2,kg,Yg,MYX,Jys,xg,zr,FkL,SzX,R2,KkQ,P1,DoH,wH,Lw,uY9,$g,gH,Zs1,QS,flL,YNv,B1,Gr,Nt,V61,Cp,HR,dz,drX,hW,Vv,X6,AK1,s9,oLu,aZ,kP1,pp,j5,jke,iw,E9,xrY,Y3u,lw,zRH,tW,cR,Tn,Mt,RR1,mp,JW,vR,F6,nLQ,eRv,S5,Kp,D0,uw,Z0,PUQ, U9,fp,wjX,$rX,O9,yv,qt,gLv,LE1,IZ,WEs,QkV,rK1,bw,Blj,GPX,pSy,CbY,jlY,AW,oZ,kE,xE,VIL,NFa,zn,HrL,RZ,np,XSe,dVy,e5,ira,hhV,lQe,tIY,slH,aQy,EPu,wz,$E,Lp,gz,cV1,TF1,WR,MI9,Qv,rz,mVy,JVS,Gn,BR,vPL,FLa,SGj,KLv,pb,DVs,jO,VM,ucu,UVu,fQe,Hb,hz,IQj,CGV,Ec,AVV,oPL,kTV,xVQ,YGH,he,X1,zhQ,E6,lo,ehs,Pba,wSa,tz,WL1,$VX,LLH,rVS,BFY,cb,GTy,QlS,pPL,TF,M6,Jz,Cns,jd9,m6,vb,VBL,F1,N2y,SO,s6,Z8,HjQ,jj9,Q3j,U6,fb,yM,q6,I5,bo,Az,O6,x$,dBe,R5,iju,hOY,sdQ,adj,ErQ,nb,tB1,eO,T21,Pb,JMH,mBV,MBS,cMj,vry,F$9,ST1,Wb,K$L,DBs,Zje, QM,Hse,Bb,fdV,yMy,Mi,qTy,IdH,pI,AM9,l5,bj1,r4H,GmL,p8S,UBV,CI,jH,Vj,or1,k$V,Nn,xBe,Xs,dG,iL,hR,YTa,se,ag,zOS,ROj,Ee,lL,tR,cg,TM,Mn,eO1,nru,JR,Pnj,$BQ,m4,L$H,wPj,xS,og,YS,Rg,nI,Lb,gru,C_j,yV,kS,$S,Ha9,Qj,d3L,uL,rG,DW,Bg,AR,Ck,ExQ,jw,Vs,lYe,t8e,cLs,T6j,NF,M8S,JLS,H7,m3S,D3j,KHy,vx9,SAj,FHS,Xt,umY,dP,Za1,U3Y,OaY,yLj,qAY,kda,Ej,ls,ze9,tA,c7,Ree,P_Q,w0V,$39,LH1,Te,gxY,QYX,rLS,fk,XYe,CtL,jHQ,izy,Oj,h5L,aFV,sHe,E1L,qF,AA,lFL,ys,oI,kB,t3u,M39,c5v,v1y,nk,jK,KZS,ds,sW,wYv,bzY,gP,EW,Ge,ld,qi9,LZV,$Ov,g1j,tl, RI,B7,QHe,r59,Bre,p1s,WZX,T5,Gva,C51,j2v,mJ,v_,NHu,ze,Qs,MI,kvX,TrS,R5L,Z6,rP,CT,id,Vk,Nh,Hk,MoX,THj,hl,db,ix,Jej,h_,mij,vgS,Fwa,$B,s5,IFS,E5,hTy,W7,uFH,Sie,FZj,J5V,lx,P7,qca,yeQ,bwu,AeY,J_,vk,FE,mj,KT,Dg,ogH,ux,xiX,Zg,zTL,O5,Ycj,qh,I$,P59,bx,Lwv,ggj,kj,Wwj,rey,Qk,Bk,GC,Cc,BHe,jm,V7,dS,iT,hh,sO,Grj,a8,EO,V5e,lT,th,Nz1,HpQ,c3,XRy,dtj,ip1,hPL,TJ,Ml,sZ9,EEv,v3,FB,DM,uT,l0e,ZM,UO,fc,OO,y7,t5s,cWL,ql,Tz1,M5s,I8,mt9,JWs,vEe,bT,S9V,Fpe,Ah,KpQ,o8,kv,Dtu,ZpY,UtX,f0X,Ops,bpX,yWX,xv,Yv,zJ,AWe,R8,kn1,em,xtX, Y9y,nc,P3,wS,$v,ePs,wRX,zPa,Pw9,$tX,RPQ,nES,LpL,gES,W3,Wp9,rWy,pbX,j5s,CoQ,VN,jf,XM,NBe,dd,i2,ht,Xbe,s4,d61,Hby,s5a,a8H,aA,E4,E$X,l8Y,tOv,pYv,HzQ,TB9,cz9,Jzu,MOs,m6S,tt,F6e,S6a,u11,TX,Mx,Jt,U6u,yzV,FM,Sf,K4,I8L,q69,mB,bbv,Azy,o$a,x6S,n$X,g$y,pgu,U4,CLs,rS,VH9,NGS,HIy,Xge,dny,O4,iIY,yN,hgy,qx,sgS,b2,ESL,lWY,tHe,At,cRV,TGe,MHv,JRj,mne,oA,aW1,vSY,kd,Sej,K4Q,DnX,xd,usy,ZIv,Une,fWX,OIL,yRj,qes,IWj,bIa,ARX,oSe,xnL,Yd,zgH,YeQ,PL1,RA,kMX,zX,n4,ef,PI,wd,$d,L4,wgX,gd,$nV,L4v,BGX,Csu,jIL,VwX,NPH,BI,Hku,p7H, rRQ,X7y,QN,dFL,hBy,WI,rd,W4a,Qgs,GX,sIX,aby,GMY,gSS,EBu,lby,twX,CA,TPa,cAa,jX,Fxj,mF1,vBH,Mwe,Sja,Vz,JAS,N4,HZ,Kxa,DF9,utH,X0,UFe,fbS,dZ,Oka,iQ,yAj,qje,IbY,bkQ,oB1,ke9,xF9,w71,RBV,BzQ,AAy,Lxs,gB1,nBu,eBY,zBY,PsX,GeH,sp,Yjv,$FH,CdL,BPy,rAV,QIy,Wxe,Ep,jMe,Q7,lQ,tI,cZ,VK1,NsV,Hf9,TG,X_y,HI,dI9,ifu,GJ,C4,QZe,JI,vZ,EAu,l6u,clL,tKX,SX,mN,M4,Dp,sMH,htQ,a6S,uQ,TsY,MKL,egj,nS1,B3,Zp,Jlu,F0,mIV,vAL,FJS,SWe,KJ9,Up,uxu,ZfS,UIv,f6e,OfY,ylQ,ikv,Op,yz,I6v,fA,bf9,iba,hna,q4,Alv,oAY,k5v,xIv,IB,Rte,YWu,nA9,Pdv,zt9, w_X,LJX,$IX,QMa,bQ,kk,G5e,BsY,VQv,CxX,NbV,HTv,pke,j$9,rlH,XkV,xk,dhv,s$H,iT9,hLv,zG,agH,F4V,Ejv,lgV,tQQ,c_v,RB,Tbs,nA,MQS,eX,PZ,wZ,J_H,Dh9,Kjs,mhS,vjS,FjL,S5H,uES,ZTa,UhL,fgv,$k,Obj,LA,q5j,gZ,y_1,Igj,bTS,f8u,vI,A_1,ojS,Qz,eLe,njj,Cu,Pxy,RLY,Lja,jP,gjj,Wjv,Bbe,GCH,CTS,r_L,j8H,VmY,NSX,HcY,X3y,ic1,hWV,s81,dlv,Na,WZ,Evu,Q$H,lMa,p3X,Hu,chQ,aMa,Vb,TSS,Mmu,vvQ,SOH,X9,Kv9,Fv9,Dla,Jh1,dX,uBQ,mls,aV,OcV,qOs,yhQ,IMH,bcy,AhL,fMj,ovY,kJs,iF,xlX,YO9,zWj,RW1,PT9,eWS,nvH,lF,w3s,LvX,gvS,Wv1,Q89,TK,Ma,Rga,rhX,BSj, GJs,jAy,C2j,pIH,VfQ,H4Y,XIv,Ndy,sZ,gAs,i4a,hbL,sAj,Mfs,lX1,tfs,ctv,JtL,vdV,p_1,t6,EdQ,aXu,mxL,Nx,TdL,hI,p4,uMv,Dxy,Z49,UxL,fXH,O4u,$lL,oB,AI,S4u,yte,KBX,q41,etH,IXj,Ulu,Zc1,FBa,WJy,vu,F9,AtX,SP,odv,kXv,xxL,Y4u,zb1,ndX,eb1,LBa,P2Y,$xe,gdY,Dn,BdY,QAa,rta,CQu,jBQ,VXH,NZQ,HAY,Ku,XZ9,pZS,WBL,uF,d4e,wIj,iAS,Zn,sB9,ap9,EkY,haS,UZ,cIL,tXa,JIV,MXy,TZL,m4v,vkS,fu,FN9,SpL,D4Q,u0Y,KNY,ZAe,qpu,fpQ,OAL,yI1,Ipu,bAu,AIX,kGe,okH,x4L,YpS,zaQ,nk1,PQ1,eaa,wZu,Ray,$4s,gkX,WNa,rIj,GG9,QB1,qa,puL,CFv,LNu,jVj,BZe,IV,VPa, NXe,HuV,XuL,daY,iuV,hwS,ans,lnY,tPa,c6v,A6,MPS,J61,vbQ,Yb,SZS,KsV,Da1,u9a,Uae,ZuY,y6v,qZY,zK,nu,fnL,Ou1,Inu,Pu,A6L,buL,ob9,kK9,xaQ,Rws,YZj,PFe,wX,zwX,wu9,$b,Wsy,gX,Wu,QVe,Lu,r6S,Qb,pOs,GKY,Lse,gba,CYQ,jia,Vts,$a1,NLY,rX,H$e,BXY,Fse,eP,dT9,GK,i$y,h2y,si1,a_L,Em9,l_v,ttS,cHL,TLS,Mtj,p$,JH1,mTu,F5Q,SDy,K5a,vmQ,DTH,udv,C$,Z$Q,UTS,f_9,O$s,VX,o0Q,yH1,qDy,NT,I_S,b$u,Xd,kEQ,xT1,dL,z2X,R2S,YDv,omX,iY,HO,AHy,ai,sD,nme,ED,hH,$TV,W5j,rHQ,BLv,pxs,PYa,QiH,CiV,wOv,jTy,VvY,MT,lY,Hn1,NMa,cO,inS,hDj,gmH,L5y,dAe,sTV, GEH,e29,JH,m5,vO,aTH,Fd,Mvy,tvQ,JrS,cre,lTL,mAy,EWv,KY9,vWj,St,DAj,Zns,fTY,OnY,yre,bnH,Z_,ArV,qC1,TE,xAQ,YCS,qT,tmX,K$,zDv,RDL,eDV,nWH,Pij,kbY,f$,wxv,bY,$AY,LYH,WYe,gWY,dxs,QTe,rrv,UD,BMv,pze,GbQ,CWQ,V4s,je9,UAe,HZe,Nuu,OD,D_,Xze,AH,iZ9,hMs,sej,aRy,EXe,Ii,U49,ITY,lRu,b4Y,tH,t4X,cDS,Tuj,M4y,JDa,oi,km,vXL,FDV,SRY,mdS,KDj,xm,Udu,uov,ZZ1,fRH,Ym,OZL,yDY,qR1,zE,IRj,ADu,oXe,kIY,Ri,bZS,n$,et,xde,YRS,$m,PO,wL,zMH,L$,RMV,nXu,eM1,wz1,PWj,GE,LDv,gXa,$dH,WDu,pn,Qes,Cn,rDv,jv,BuL,GIu,NRj,p$a,jvX,V$,Chj,VDX,Hvj, X$H,dby,ivj,Hx,hyQ,ii,Xk,svH,hr,sC,EaY,EC,li,liv,aT,tDX,tr,TRY,cov,Tb,MA,Jr,mbX,MDL,Joj,mY,vaH,DbL,SaX,FRs,KRu,vx,Zve,OvL,yoY,Fk,qaa,IiV,Uby,fi9,oaY,k8s,xbL,Yaa,zyj,RyQ,DT,w$V,$bv,ui,eyL,PhL,gaH,Kn,ZT,UC,naL,WR9,fn,OC,QvQ,ro1,BRs,y$,G8e,pNY,CjH,jCe,VM9,NJQ,H7L,i7u,XNQ,h19,sCe,EfS,lN9,nn,mSs,cXu,TJV,vfY,FPv,JXy,tMe,StX,DSs,KPS,uR1,qtV,Px,AX9,xSa,kRy,ofy,O7j,yXX,Z7a,USe,INy,wM,$W,z1Y,nT,RTe,R1v,gM,Q$,e1u,nf9,b7s,wNH,$Su,LPv,rM,gfv,Nd,QCs,rXu,BJY,pqY,GRu,CM9,Hz,Xo,jQV,HDe,XqH,iW,Nvj,dEH,iDy,VCH,hD,ER, h9H,sQX,ae,aOj,EyH,lOX,tCe,Tv9,cFv,mES,vyX,MCV,SmX,KfX,JFv,cz,TI,DE9,ZDX,Md,u7Y,UES,OD9,fOH,yFv,JD,qmL,IOS,bDu,mD,vz,oye,AFv,kSL,xES,z9e,Ymu,R9Y,nyS,e9Y,PML,wq9,Lf9,S4,Fo,KZ,gyj,Wfy,$EY,pDL,CSL,jJv,HMY,NK9,VdY,XDs,dWX,DR,uW,iM9,hfu,sJe,a4L,l4L,tdL,UR,cJv,ZR,OR,ERy,TKS,MdL,JJj,mWL,vRS,qd,Fmy,SUu,uys,Ie,ZML,DWV,bW,AD,UWe,f4H,yJy,I4y,OML,qU9,kX,bM1,oRY,kUQ,YUL,zfQ,xX,YX,Rfu,AJQ,PSH,efQ,nRY,zI,Re,$Wj,wDs,nZ,e4,LmX,Pz,gRV,Wmy,QJS,wu,rJV,$X,BKu,LZ,GUj,jPu,VjY,N4e,XLy,d9Y,iBy,HBS,sPH,hGS,a$s,tja,Q1,T4H, cYs,EOe,l$a,Mjv,JYV,ru,Bz,m99,vOH,F8a,S7L,K8S,D9S,ZBL,U9y,oO9,yYj,q7V,f$1,x9L,Nb,H$,nOX,ih,ho,eG9,Y7s,VK,Ea,av,Xp,lh,$9L,gOu,L8H,to,dR,jD,wLa,sa,zGv,Pku,QPy,GI,c$,rY1,B4a,RGa,T8,Mb,G_1,Jo,mR,v$,pM9,CJQ,V$L,N5u,jn1,Fp,XMQ,H9u,SD,d2e,Kv,Di,i99,hdj,snu,aIv,EnH,t$V,T5L,cs1,lIV,uh,M$v,m2s,JsL,Zi,Ua,vnX,Sbj,KTs,fv,FTY,D2v,uSY,Z9y,U2s,fIY,O9L,ys9,yK,qb,IIV,qbu,b9H,Iv,bh,Asa,on1,x2S,kLu,YbH,zda,RdV,ov,nnj,edy,PJX,wMy,$2Q,LTV,WTe,Qne,rsS,gnv,B5y,GLY,p99,CAV,jUa,VNv,NpL,HCH,Rv,X9a,d0V,iC1,awy,cia,lwv,sUy,P$, E8V,h7H,tNL,MNs,Jiv,TpV,wR,m0X,v8v,F7s,OZ,SPX,U0v,fwL,OCX,Lv,yiY,W$,EZ,qPs,QK,Iw9,gR,bCs,Ai1,R7a,p7,n8H,C7,PAX,$0V,w9L,o89,jM,L7Q,g8a,QUv,Vw,riV,BpY,Gaa,e7V,NS,Clj,pK1,HN,YPX,B$,jzv,VxV,NQQ,H81,XKH,kaQ,x0u,G8,szy,a2H,l2L,hHy,TQX,Lc,gS,h6,mw1,vwX,JgS,FbV,EwV,Mxy,dwY,Ssv,cge,KbS,txL,KA,DIj,XxY,dJ,ij,Yk,i8a,uhe,O8X,aC,ygS,qsa,UwV,lj,I2v,b8V,Dwa,Agu,f2L,owL,tX,Et,kYL,YsX,xwH,hX,RHQ,MS,nw1,cN,JX,TR,mP,oWH,eHe,$wL,wKL,gwa,WbX,LbS,FR,vN,rga,BQS,GYj,ilQ,Niy,Hlu,jyV,aGj,CCX,K7,tAu,EhX,cZy,TiH,yk,MAX,uj,ZN, vhV,mCs,JZ1,f7,dCu,IC,Sxs,qS,Ut,DCe,UCY,fGy,sy1,uZV,oC,OlX,Xta,FFs,Ot,yZe,DN,qxe,IGS,blv,zR,RC,KF1,n7,eM,AZv,yw,lGS,ohV,k31,xC9,ZlQ,Yx1,bj,zm1,AX,fT,RmL,emy,PN,wJ,PCH,wtV,$CQ,Yf,kf,LFs,PlV,ghv,xf,WFy,Qya,rZe,Bi1,$f,L7,CD1,NDy,Xru,pra,tWS,cu9,TDj,MWS,Ju9,mJV,vsL,SqX,FUL,gJ,WN,Qw,KUu,DJS,u4V,pr,ZL1,rJ,UJs,BN,GR,Zs,pD,Gm,fPX,Fm,FCs,OLY,pa,yuQ,e6,Pj,Qn,qqv,IPH,bLy,Auy,CD,kss,xJV,jC,NE,Hq,YqL,nsV,e$9,X7,PDs,z$y,R$u,wry,$JQ,LU1,gsy,WUv,dv,rus,Fhs,Zl,ib,BDL,Gsa,al,QRX,bG,pAY,CEX,jme,iM,Z5,NaV,HQS,hF,sm, XAX,aQ,du9,V0,iQH,hAs,way,Em,lM,sm9,tF,cq,aLy,TS,EzQ,ME,JF,lLe,tcQ,mN1,mf,cSH,Mcu,Ta9,vq,JS1,F7,SC,muu,vz9,FXH,Swe,KXv,Due,uTQ,Uue,DO,ZQY,fLX,OQu,ySe,qwY,ozX,ILs,bQs,AS9,xus,zAH,RAy,nzV,Yws,uM,eAv,PEY,wAs,$ue,LX1,Um,gzX,fD,Om,y0,WXe,QmX,Bas,GZ9,pme,Cyv,VRL,jGv,NjY,qE,IQ,dHL,HiS,XmY,bM,ii9,hlQ,AF,oQ,sGQ,ky,axL,Yy,EMX,zS,RQ,lxL,nD,eC,tRV,cve,Pq,wv,Tju,$y,MRY,mHj,Wq,vMy,F3V,SYS,u$1,DHY,Q0,Zi9,UHX,fxe,UQs,K3a,yvy,qYy,bia,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{RC:N,d$:H}}return{RC:-1,d$:void 0}}; kH=function(p){return p?p:function(C,V){return T1v(this,C,V).RC}}; 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.g1=function(p,C,V){g.g1=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?JQj:msv;return g.g1.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.Bv=function(p,C){function V(){} V.prototype=C.prototype;p.XF=C.prototype;p.prototype=new V;p.prototype.constructor=p;p.Uu=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.hf=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.FG=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")}; RF=function(){return bP("iPhone")&&!bP("iPod")&&!bP("iPad")}; ey=function(){return RF()||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=C||(N[p]=V+1,uGV())}}; yR=function(p,C,V,N){V=V===void 0?!1:V;p=typeof Symbol==="function"&&typeof Symbol()==="symbol"?(N===void 0?0:N)&&Symbol.for&&p?Symbol.for(p):p!=null?Symbol(p):Symbol():C;V&&fvQ.add(p);return p}; O0Q=function(p,C){qL(C,(p|0)&-30975)}; If=function(p,C){qL(C,(p|34)&-30941)}; br=function(){return typeof BigInt==="function"}; AB=function(p){return Array.prototype.slice.call(p)}; of=function(p){return!(!p||typeof p!=="object"||p.T!==yfY)}; kT=function(p){return p!==null&&typeof p==="object"&&!Array.isArray(p)&&p.constructor===Object}; q1a=function(p,C){if(p!=null)if(typeof p==="string")p=p?new DV(p,ur):ZV();else if(p.constructor!==DV)if(K6(p))p=p.length?new DV(new Uint8Array(p),ur):ZV();else{if(!C)throw Error();p=void 0}return p}; zt=function(p){return!Array.isArray(p)||p.length?!1:xT(p)&1?!0:!1}; n6=function(p){if(p&2)throw Error();}; ek=function(p,C){if(typeof C!=="number"||C<0||C>=p.length)throw Error();}; wo=function(p){var C=vHV(Py);return C?p[C]:void 0}; $T=function(p){p.Pq$=!0;return p}; Wy=function(p){var C=p;if(Ive(C)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(C))throw Error(String(C));}else if(b09(C)&&!Number.isSafeInteger(C))throw Error(String(C));return go?BigInt(p):p=Afy(p)?p?"1":"0":Ive(p)?p.trim()||"0":String(p)}; o2L=function(p,C){if(p.length>C.length)return!1;if(p.lengthH)return!1;if(N>>0;QR=C;ro=(p-C)/4294967296>>>0}; C_=function(p){if(p<0){By(0-p);var C=g.F(p_(QR,ro));p=C.next().value;C=C.next().value;QR=p>>>0;ro=C>>>0}else By(p)}; Vx=function(p,C){var V=C*4294967296+(p>>>0);return Number.isSafeInteger(V)?V:jn(p,C)}; kps=function(p,C){var V=C&2147483648;V&&(p=~p+1>>>0,C=~C>>>0,p==0&&(C=C+1>>>0));p=Vx(p,C);return typeof p==="number"?V?-p:p:V?"-"+p:p}; jn=function(p,C){C>>>=0;p>>>=0;if(C<=2097151)var V=""+(4294967296*C+p);else br()?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+xcV(V)+xcV(p));return V}; xcV=function(p){p=String(p);return"0000000".slice(p.length)+p}; Y1a=function(){var p=QR,C=ro;C&2147483648?br()?p=""+(BigInt(C|0)<>>0)):(C=g.F(p_(p,C)),p=C.next().value,C=C.next().value,p="-"+jn(p,C)):p=jn(p,C);return p}; N1=function(p){if(p.length<16)C_(Number(p));else if(br())p=BigInt(p),QR=Number(p&BigInt(4294967295))>>>0,ro=Number(p>>BigInt(32)&BigInt(4294967295));else{var C=+(p[0]==="-");ro=QR=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)),ro*=1E6,QR=QR*1E6+N,QR>=4294967296&&(ro+=Math.trunc(QR/4294967296),ro>>>=0,QR>>>=0);C&&(C=g.F(p_(QR,ro)),p=C.next().value,C=C.next().value,QR=p,ro=C)}}; p_=function(p,C){C=~C;p?p=~p+1:C+=1;return[p,C]}; HT=function(p,C){throw Error(C===void 0?"unexpected value "+p+"!":C);}; X_=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}; zEV=function(p){return p.displayName||p.name||"unknown type name"}; dw=function(p){if(p!=null&&typeof p!=="boolean")throw Error("Expected boolean but got "+nY(p)+": "+p);return p}; ig=function(p){switch(typeof p){case "bigint":return!0;case "number":return Number.isFinite(p);case "string":return REQ.test(p);default:return!1}}; n2S=function(p){if(typeof p!=="number")throw Ov("int32");if(!Number.isFinite(p))throw Ov("int32");return p|0}; sL=function(p){return p==null?p:n2S(p)}; aO=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return Number.isFinite(p)?p|0:void 0}; EL=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return Number.isFinite(p)?p>>>0:void 0}; PPj=function(p){var C=0;C=C===void 0?0:C;if(!ig(p))throw Ov("int64");var V=typeof p;switch(C){case 4096:switch(V){case "string":return lg(p);case "bigint":return String(BigInt.asIntN(64,p));default:return tc(p)}case 8192:switch(V){case "string":return C=Math.trunc(Number(p)),Number.isSafeInteger(C)?p=Wy(C):(C=p.indexOf("."),C!==-1&&(p=p.substring(0,C)),p=br()?Wy(BigInt.asIntN(64,BigInt(p))):Wy(eEs(p))),p;case "bigint":return Wy(BigInt.asIntN(64,p));default:return Number.isSafeInteger(p)?Wy(cT(p)): Wy(tc(p))}case 0:switch(V){case "string":return lg(p);case "bigint":return Wy(BigInt.asIntN(64,p));default:return cT(p)}default:return HT(C,"Unknown format requested type for int64")}}; T9=function(p){return p==null?p:PPj(p)}; w5y=function(p){return p[0]==="-"?!1:p.length<20?!0:p.length===20&&Number(p.substring(0,6))<184467}; $c9=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}; Lrj=function(p){if(p<0){C_(p);var C=jn(QR,ro);p=Number(C);return Number.isSafeInteger(p)?p:C}C=String(p);if(w5y(C))return C;C_(p);return Vx(QR,ro)}; eEs=function(p){if($c9(p))return p;N1(p);return Y1a()}; cT=function(p){ig(p);p=Math.trunc(p);Number.isSafeInteger(p)||(C_(p),p=kps(QR,ro));return p}; tc=function(p){ig(p);p=Math.trunc(p);if(Number.isSafeInteger(p))p=String(p);else{var C=String(p);$c9(C)?p=C:(C_(p),p=Y1a())}return p}; lg=function(p){ig(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 eEs(p)}; g2L=function(p){if(p==null)return p;if(typeof p==="bigint")return Jc(p)?p=Number(p):(p=BigInt.asIntN(64,p),p=Jc(p)?Number(p):String(p)),p;if(ig(p))return typeof p==="number"?cT(p):lg(p)}; Wre=function(p){if(p==null)return p;var C=typeof p;if(C==="bigint")return String(BigInt.asIntN(64,p));if(ig(p)){if(C==="string")return lg(p);if(C==="number")return cT(p)}}; QFS=function(p){if(p==null)return p;var C=typeof p;if(C==="bigint")return String(BigInt.asUintN(64,p));if(ig(p)){if(C==="string")return ig(p),C=Math.trunc(Number(p)),Number.isSafeInteger(C)&&C>=0?p=String(C):(C=p.indexOf("."),C!==-1&&(p=p.substring(0,C)),w5y(p)||(N1(p),p=jn(QR,ro))),p;if(C==="number")return ig(p),p=Math.trunc(p),p>=0&&Number.isSafeInteger(p)?p:Lrj(p)}}; rf9=function(p){if(p==null||typeof p=="string"||K6(p)||p instanceof DV)return p}; BYs=function(p){if(typeof p!=="string")throw Error();return p}; mK=function(p){if(p!=null&&typeof p!=="string")throw Error();return p}; vT=function(p){return p==null||typeof p==="string"?p:void 0}; F_=function(p,C){if(!(p instanceof C))throw Error("Expected instanceof "+zEV(C)+" but got "+(p&&zEV(p.constructor)));return p}; GpV=function(p,C,V){if(p!=null&&typeof p==="object"&&p.VG===Sn)return p;if(Array.isArray(p)){var N=xT(p),H=N;H===0&&(H|=V&32);H|=V&2;H!==N&&qL(p,H);return new C(p)}}; Nou=function(p){K_===void 0&&(K_=typeof Proxy==="function"?pyY(Proxy):null);var C;(C=!K_)||(DB===void 0&&(DB=typeof WeakMap==="function"?pyY(WeakMap):null),C=!DB);if(C)return p;if(C=ug(p))return C;if(Math.random()>.01)return p;CrV(p);C=new K_(p,{set:function(V,N,H){jfS();V[N]=H;return!0}}); VkS(p,C);return C}; jfS=function(){uGV()}; ug=function(p){var C;return(C=ZB)==null?void 0:C.get(p)}; H6Y=function(p){var C;return((C=UL)==null?void 0:C.get(p))||p}; VkS=function(p,C){(ZB||(ZB=new DB)).set(p,C);(UL||(UL=new DB)).set(C,p)}; pyY=function(p){try{return p.toString().indexOf("[native code]")!==-1?p:null}catch(C){return null}}; CrV=function(p){if(f_===void 0){var C=new K_([],{});f_=Array.prototype.concat.call([],C).length===1}f_&&typeof Symbol==="function"&&Symbol.isConcatSpreadable&&(p[Symbol.isConcatSpreadable]=!0)}; dLQ=function(p){switch(typeof p){case "boolean":return OL||(OL=[0,void 0,!0]);case "number":return p>0?void 0:p===0?Xya||(Xya=[0,void 0]):[-p,void 0];case "string":return[0,p];case "object":return p}}; IO=function(p,C,V){p=yx(p,C[0],C[1],V?1:2);C!==OL&&V&&q1(p,16384);return p}; yx=function(p,C,V,N){if(p==null){var 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);var X=Object.getOwnPropertySymbols;if(X){X=X(p);for(var d=0;d=1024)throw Error("pvtlmt");H=H&-33521665|(C&1023)<<15;break a}if(C){C= Math.max(C,N-(H&512?0:-1));if(C>1024)throw Error("spvt");H=H&-33521665|(C&1023)<<15}}}qL(p,H);return p}; sfH=function(p,C){return h69(C)}; h69=function(p){switch(typeof p){case "number":return isFinite(p)?p:String(p);case "bigint":return Jc(p)?Number(p):String(p);case "boolean":return p?1:0;case "object":if(p)if(Array.isArray(p)){if(zt(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}; aVX=function(p,C,V){var N=AB(p),H=N.length,X=C&256?N[H-1]:void 0;H+=X?-1:0;for(C=C&512?1:0;C=X&&C&256)return p[X][V];if(N&&C&256&&(C=p[X][V],C!=null))return p[H]!=null&&UcQ(cBs,4),C;if(H<=X)return p[H]}; z9=function(p,C,V){var N=p.aH,H=xT(N);n6(H);YK(N,H,C,V);return p}; YK=function(p,C,V,N){var H=C&512?0:-1,X=V+H,d=p.length-1;if(X>=d&&C&256)return p[d][V]=N,C;if(X<=d)return p[X]=N,C&256&&(p=p[d],V in p&&delete p[V]),C;N!==void 0&&(d=C>>15&1023||536870912,V>=d?N!=null&&(X={},p[d+H]=(X[V]=N,X),C|=256,qL(p,C)):p[X]=N);return C}; RO=function(p,C,V){return ToQ(p,C,V,!1)!==void 0}; L_=function(p,C,V,N,H,X){var d=p.aH;p=xT(d);N=2&p?1:N;X=!!X;H=n_(d,p,C,H);var a=xT(H);if(!(4&a)){4&a&&(H=AB(H),a=en(a,p),p=YK(d,p,C,H));for(var E=0,l=0;E "+p)}; Sq=function(p){if(typeof p==="string")return{buffer:v2u(p),Fr:!1};if(Array.isArray(p))return{buffer:new Uint8Array(p),Fr:!1};if(p.constructor===Uint8Array)return{buffer:p,Fr:!1};if(p.constructor===ArrayBuffer)return{buffer:new Uint8Array(p),Fr:!1};if(p.constructor===DV)return{buffer:Uv(p)||new Uint8Array(0),Fr:!0};if(p instanceof Uint8Array)return{buffer:new Uint8Array(p.buffer,p.byteOffset,p.byteLength),Fr:!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"); }; uvX=function(p,C){this.C=null;this.W=!1;this.T=this.V=this.S=0;this.init(p,void 0,void 0,C)}; Dm=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 Fa();}; Ky=function(p,C){p.T=C;if(C>p.V)throw DLV(p.V,C);}; Zm=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 Fa();Ky(p,V);return H}; Ul=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];Ky(p,p.T+4);return(N<<0|H<<8|X<<16|C<<24)>>>0}; fy=function(p){var C=Ul(p);p=Ul(p);return Vx(C,p)}; Ol=function(p){var C=Ul(p),V=Ul(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)}; yG=function(p){for(var C=0,V=p.T,N=V+10,H=p.C;Vp.V)throw DLV(C,p.V-V);p.T=N;return V}; fVX=function(p,C){if(C==0)return ZV();var V=Z6L(p,C);p.pC&&p.W?V=p.C.subarray(V,V+C):(p=p.C,C=V+C,V=V===C?new Uint8Array(0):ULH?p.slice(V,C):new Uint8Array(p.subarray(V,C)));return V.length==0?ZV():new DV(V,ur)}; It=function(p,C){if(qm.length){var V=qm.pop();V.init(p,void 0,void 0,C);p=V}else p=new uvX(p,C);this.T=p;this.V=this.T.T;this.C=this.S=-1;O69(this,C)}; O69=function(p,C){C=C===void 0?{}:C;p.uI=C.uI===void 0?!1:C.uI}; yBL=function(p){var C=p.T;if(C.T==C.V)return!1;p.V=p.T.T;var V=Zm(p.T)>>>0;C=V>>>3;V&=7;if(!(V>=0&&V<=5))throw Kq1(V,p.V);if(C<1)throw Error("Invalid field number: "+C+" (at position "+p.V+")");p.S=C;p.C=V;return!0}; bB=function(p){switch(p.C){case 0:p.C!=0?bB(p):yG(p.T);break;case 1:p=p.T;Ky(p,p.T+8);break;case 2:if(p.C!=2)bB(p);else{var C=Zm(p.T)>>>0;p=p.T;Ky(p,p.T+C)}break;case 5:p=p.T;Ky(p,p.T+4);break;case 3:C=p.S;do{if(!yBL(p))throw Error("Unmatched start-group tag: stream EOF");if(p.C==4){if(p.S!=C)throw Error("Unmatched end-group tag");break}bB(p)}while(1);break;default:throw Kq1(p.C,p.V);}}; AP=function(p,C,V){var N=p.T.V,H=Zm(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}; xV=function(p){var C=Zm(p.T)>>>0;p=p.T;var V=Z6L(p,C);p=p.C;if(qvu){var N=p,H;(H=ot)||(H=ot=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(kV===void 0){try{H.decode(new Uint8Array([128]))}catch(t){}try{H.decode(new Uint8Array([97])),kV=!0}catch(t){kV=!1}}!kV&&(ot=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}; IVS=function(p){var C=Zm(p.T)>>>0;return fVX(p.T,C)}; b6v=function(p){return p}; YV=function(p){return p}; xLY=function(p,C,V,N){return ABV(p,C,V,N,oTL,kta)}; R69=function(p,C,V,N){return ABV(p,C,V,N,YvY,z6S)}; ABV=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+=nTS(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)}; YvY=function(p,C){return(p>1?p-1:0)+(p-C)*4}; kta=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}; oTL=function(p){return 40+4*p}; nTS=function(p){return p>=100?p>=1E4?Math.ceil(Math.log10(1+p)):p<1E3?3:4:p<10?1:2}; ny=function(p,C,V){this.aH=yx(p,C,V)}; e6s=function(p,C){if(C==null||C=="")return new p;C=JSON.parse(C);if(!Array.isArray(C))throw Error("dnarr");q1(C,32);return new p(C)}; wC=function(p){var C=p.aH;C=eq?C:bg(C,lVS,void 0,void 0,!1);var V=!eq,N=xT(V?p.aH:C);if(p=C.length){var H=C[p-1],X=kT(H);X?p--:H=void 0;var d=N&512?0:-1,a=p-d;N=!!P4&&!(N&512);var E,l=(E=P4)!=null?E:YV;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||zt(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}; $V=function(p,C){this.C=p>>>0;this.T=C>>>0}; wye=function(p){if(!p)return PrQ||(PrQ=new $V(0,0));if(!/^\d+$/.test(p))return null;N1(p);return new $V(QR,ro)}; Ly=function(p,C){this.C=p>>>0;this.T=C>>>0}; Lqu=function(p){if(!p)return $Lu||($Lu=new Ly(0,0));if(!/^-?\d+$/.test(p))return null;N1(p);return new Ly(QR,ro)}; gC=function(){this.T=[]}; W4=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)}; QG=function(p,C){for(;C>127;)p.T.push(C&127|128),C>>>=7;p.T.push(C)}; gTu=function(p,C){if(C>=0)QG(p,C);else{for(var V=0;V<9;V++)p.T.push(C&127|128),C>>=7;p.T.push(1)}}; rC=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)}; Wq9=function(){this.V=[];this.C=0;this.T=new gC}; B4=function(p,C){C.length!==0&&(p.V.push(C),p.C+=C.length)}; Qfj=function(p,C){GA(p,C,2);C=p.T.end();B4(p,C);C.push(p.C);return C}; rB1=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++}; GA=function(p,C,V){QG(p.T,C*8+V)}; BoY=function(p,C,V){if(V!=null){switch(typeof V){case "string":wye(V)}GA(p,C,1);switch(typeof V){case "number":p=p.T;By(V);rC(p,QR);rC(p,ro);break;case "bigint":V=BigInt.asUintN(64,V);V=new $V(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));p=p.T;C=V.T;rC(p,V.C);rC(p,C);break;default:V=wye(V),p=p.T,C=V.T,rC(p,V.C),rC(p,C)}}}; pH=function(p,C,V){GA(p,C,2);QG(p.T,V.length);B4(p,p.T.end());B4(p,V)}; CH=function(){function p(){throw Error();} Object.setPrototypeOf(p,p.prototype);return p}; V5=function(p,C,V){this.kK=p;this.nN=C;p=vHV(jl);this.T=!!p&&V===p||!1}; NX=function(p,C){var V=V===void 0?jl:V;return new V5(p,C,V)}; pTe=function(p,C,V,N,H){C=Gts(C,N);C!=null&&(V=Qfj(p,V),H(C,p),rB1(p,V))}; dV=function(p,C,V,N){var H=N[p];if(H)return H;H={};H.tE_=N;H.r5=dLQ(N[0]);var X=N[1],d=1;X&&X.constructor===Object&&(H.extensions=X,X=N[++d],typeof X==="function"&&(H.yO=!0,Hn!=null||(Hn=X),XH!=null||(XH=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)));W4(p.T,V.C,V.T);break;default:V=Lqu(C),W4(p.T,V.C,V.T)}}}; Sl=function(p,C,V){C=aO(C);C!=null&&C!=null&&(GA(p,V,0),gTu(p.T,C))}; aBy=function(p,C,V){C=C==null||typeof C==="boolean"?C:typeof C==="number"?!!C:void 0;C!=null&&(GA(p,V,0),p.T.T.push(C?1:0))}; EKu=function(p,C,V){C=vT(C);C!=null&&pH(p,V,xse(C))}; lB1=function(p,C,V,N,H){C=Gts(C,N);C!=null&&(V=Qfj(p,V),H(C,p),rB1(p,V))}; tn1=function(p){return function(){var C=new Wq9;i_V(this.aH,C,dV(tb,l0,cn,p));B4(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,Ub:function(){for(var c=N(),T="",M=0;M4);H++)C[CG(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+=GN(p[H],C));H")!=-1&&(p=p.replace(zjj,">")),p.indexOf('"')!=-1&&(p=p.replace(Rja,""")),p.indexOf("'")!=-1&&(p=p.replace(nKs,"'")),p.indexOf("\x00")!=-1&&(p=p.replace(ejS,"�")));return p}; g.Xn=function(p){return p==null?"":String(p)}; dI=function(p){for(var C=0,V=0;V>>0;return C}; ic=function(p){var C=Number(p);return C==0&&g.FG(p)?NaN:C}; Pg9=function(p){return String(p).replace(/\-([a-z])/g,function(C,V){return V.toUpperCase()})}; wT9=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; $1u=function(p){return p.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(C,V,N){return V+N.toUpperCase()})}; LKa=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}; h9=function(p){this.T=p||{cookie:""}}; s_=function(p){p=(p.T.cookie||"").split(";");for(var C=[],V=[],N,H,X=0;X/g,">").replace(/"/g,""").replace(/'/g,"'");return wV(p)}; jts=function(p){var C=LG("");return wV(p.map(function(V){return $e(LG(V))}).join($e(C).toString()))}; dme=function(p){var C;if(!VqX.test("div"))throw Error("");if(NCY.indexOf("DIV")!==-1)throw Error("");var V="":(p=jts(C.map(function(N){return N instanceof Pn?N:LG(String(N))})),V+=">"+p.toString()+""); return wV(V)}; Hya=function(p){for(var C="",V=Object.keys(p),N=0;N2&&cPV(H,d,N,2);return d}; cPV=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.dW=function(p){return He(document,p)}; He=function(p,C){C=String(C);p.contentType==="application/xhtml+xml"&&(C=C.toLowerCase());return p.createElement(C)}; g.iK=function(p){return document.createTextNode(String(p))}; g.h2=function(p,C){p.appendChild(C)}; g.so=function(p){for(var C;C=p.firstChild;)p.removeChild(C)}; aN=function(p,C,V){p.insertBefore(C,p.childNodes[V]||null)}; g.Eo=function(p){return p&&p.parentNode?p.parentNode.removeChild(p):null}; g.lK=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}; WG=function(p){return p.nodeType==9?p:p.ownerDocument||p.document}; g.t2=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.so(p),p.appendChild(WG(p).createTextNode(String(C)))}; MqX=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")||TC1(p)):p.hasAttribute("tabindex")&&TC1(p)}; TC1=function(p){p=p.tabIndex;return typeof p==="number"&&p>=0&&p<32768}; TO=function(p,C,V){if(!C&&!V)return null;var N=C?String(C).toUpperCase():null;return ce(p,function(H){return(!N||H.nodeName==N)&&(!V||typeof H.className==="string"&&g.W5(H.className.split(/\s+/),V))},!0)}; ce=function(p,C,V){p&&!V&&(p=p.parentNode);for(V=0;p;){if(C(p))return p;p=p.parentNode;V++}return null}; gI=function(p){this.T=p||g.xH.document||document}; Mq=function(p){this.aH=yx(p)}; J2=function(p){this.aH=yx(p)}; mS=function(p){this.aH=yx(p)}; JPX=function(p,C){hP(p,J2,1,C)}; ve=function(p){this.aH=yx(p)}; vVH=function(p,C){C=C===void 0?mma:C;if(!FQ){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 J2;X=JP(X,1,H.brand);return JP(X,2,H.version)}); JPX(z9(Dz,2,dw(p.mobile)),V);FQ=p.getHighEntropyValues(C)}var N=new Set(C);return FQ.then(function(H){var X=Dz.clone();N.has("platform")&&JP(X,3,H.platform);N.has("platformVersion")&&JP(X,4,H.platformVersion);N.has("architecture")&&JP(X,5,H.architecture);N.has("model")&&JP(X,6,H.model);N.has("uaFullVersion")&&JP(X,7,H.uaFullVersion);return X}).catch(function(){return Dz.clone()})}; uK=function(p){this.aH=yx(p)}; FMS=function(p){this.aH=yx(p)}; Zz=function(p){this.aH=yx(p,4)}; Uo=function(p){this.aH=yx(p,36)}; fe=function(p){this.aH=yx(p,19)}; Oo=function(p,C){this.Xj=C=C===void 0?!1:C;this.uach=this.locale=null;this.T=new fe;Number.isInteger(p)&&this.T.Mm(p);C||(this.locale=document.documentElement.getAttribute("lang"));SlX(this,new uK)}; SlX=function(p,C){iB(p.T,uK,1,C);TA(C,1)||v4(C,1,1);p.Xj||(C=yf(p),c4(C,5)||JP(C,5,p.locale));p.uach&&(C=yf(p),dC(C,mS,9)||iB(C,mS,9,p.uach))}; bK=function(p,C){RO(qq(p),ve,11)&&(p=IN(p),v4(p,1,C))}; KMS=function(p,C){RO(qq(p),ve,11)&&(p=IN(p),z9(p,2,dw(C)))}; qq=function(p){return dC(p.T,uK,1)}; Dmu=function(p){var C=C===void 0?mma:C;var V=p.Xj?void 0:Nq();V?vVH(V,C).then(function(N){p.uach=N;N=yf(p);iB(N,mS,9,p.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; yf=function(p){p=qq(p);var C=dC(p,ve,11);C||(C=new ve,iB(p,ve,11,C));return C}; IN=function(p){p=yf(p);var C=dC(p,Mq,10);C||(C=new Mq,z9(C,2,dw(!1)),iB(p,Mq,10,C));return C}; uaa=function(p){return g.Vf?"webkit"+p:p.toLowerCase()}; g.A2=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.oN=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++}; Zyy=function(p){this.aH=yx(p,8)}; Um9=function(p){this.aH=yx(p)}; xq=function(p){g.z.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.R$=1;this.timeoutMillis=0;this.Vn=!1;this.logSource=p.logSource;this.AS=p.AS||function(){}; this.V=new Oo(p.logSource,p.Xj);this.network=p.network;this.cn=p.cn||null;this.J=p.zje||null;this.sessionIndex=p.sessionIndex||null;this.Mu=p.Mu||!1;this.logger=null;this.withCredentials=!p.Ms;this.Xj=p.Xj||!1;this.Z=!this.Xj&&!!Nq()&&!!Nq().navigator&&Nq().navigator.sendBeacon!==void 0;this.Wr=typeof URLSearchParams!=="undefined"&&!!(new URL(kq())).searchParams&&!!(new URL(kq())).searchParams.set;var V=v4(new uK,1,1);SlX(this.V,V);this.W=new g.A2(1E4,3E5,.1);p=fm9(this,p.rT);this.C=new lc(this.W.getValue(), p);this.Sa=new lc(6E5,p);this.Mu||this.Sa.start();this.Xj||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&C.py()}),document.addEventListener("pagehide",this.py.bind(this)))}; fm9=function(p,C){return p.Wr?C?function(){C().then(function(){p.flush()})}:function(){p.flush()}:function(){}}; Oyv=function(p){p.J||(p.J=kq());try{return(new URL(p.J)).toString()}catch(C){return(new URL(p.J,Nq().location.origin)).toString()}}; qle=function(p){yPL(p,function(C,V){C=new URL(C);C.searchParams.set("format","json");var N=!1;try{N=Nq().navigator.sendBeacon(C.toString(),V.ax())}catch(H){}N||(p.Z=!1);return N})}; yPL=function(p,C){if(p.T.length!==0){var V=new URL(Oyv(p));V.searchParams.delete("format");var N=p.AS();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.cn,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()}}; kq=function(){return"https://play.google.com/log?format=json&hasfast=true"}; Yq=function(){this.RZ=typeof AbortController!=="undefined"}; zO=function(p,C){g.z.call(this);this.logSource=p;this.sessionIndex=C;this.rz="https://play.google.com/log?format=json&hasfast=true";this.C=null;this.S=!1;this.network=null;this.componentId="";this.T=this.cn=null;this.V=!1;this.pageId=null}; Ims=function(p,C){p.C=C;return p}; byv=function(p,C){p.network=C;return p}; APH=function(p,C){p.T=C}; RN=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.z.call(this);this.logSource=p;this.componentId=C;X?C=X:(p=new zO(p,"0"),p.componentId=C,g.R(this,p),V!==""&&(p.rz=V),N&&(p.S=!0),H&&Ims(p,H),d&&byv(p,d),C=p.build());this.T=C}; oVH=function(p){this.T=p}; ne=function(p,C,V){this.C=p;this.S=C;this.fields=V||[];this.T=new Map}; m1a=function(p){return p.fields.map(function(C){return C.fieldType})}; JcV=function(p){return p.fields.map(function(C){return C.fieldName})}; eu=function(p,C){ne.call(this,p,3,C)}; Pe=function(p,C){ne.call(this,p,2,C)}; g.wW=function(p,C){this.type=p;this.currentTarget=this.target=C;this.defaultPrevented=this.C=!1}; $q=function(p,C){g.wW.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)}; We=function(p){return!(!p||!p[kA1])}; YlS=function(p,C,V,N,H){this.listener=p;this.proxy=null;this.src=C;this.type=V;this.capture=!!N;this.FO=H;this.key=++xmH;this.removed=this.je=!1}; Qf=function(p){p.removed=!0;p.listener=null;p.proxy=null;p.src=null;p.FO=null}; rW=function(p){this.src=p;this.listeners={};this.T=0}; g.Be=function(p,C){var V=C.type;V in p.listeners&&g.rY(p.listeners[V],C)&&(Qf(C),p.listeners[V].length==0&&(delete p.listeners[V],p.T--))}; GO=function(p,C,V,N){for(var H=0;H1)));d=d.next)H||(X=d);H&&(V.T==0&&N==1?iHQ(V,C):(X?(N=X,N.next==V.S&&(V.S=N),N.next=N.next.next):hJY(V),scL(V,H,3,C)))}p.V=null}else KJ(p,3,C)}; fJ=function(p,C){p.C||p.T!=2&&p.T!=3||aua(p);p.S?p.S.next=C:p.C=C;p.S=C}; EeQ=function(p,C,V,N){var H=um(null,null,null);H.T=new g.DC(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 yU?d(a):X(E)}catch(l){d(l)}}:d}); H.T.V=p;fJ(p,H);return H.T}; KJ=function(p,C,V){p.T==0&&(p===V&&(C=3,V=new TypeError("Promise cannot resolve to itself")),p.T=1,Vla(V,p.C8a,p.AU_,p)||(p.D=V,p.T=C,p.V=null,aua(p),C!=3||V instanceof yU||luj(p,V)))}; Vla=function(p,C,V,N){if(p instanceof g.DC)return fJ(p,um(C||g.vX,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 tlj(p,X,C,V,N),!0}catch(d){return V.call(N,d),!0}return!1}; tlj=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)}}; aua=function(p){p.Y||(p.Y=!0,g.J8(p.VN,p))}; hJY=function(p){var C=null;p.C&&(C=p.C,p.C=C.next,C.next=null);p.C||(p.S=null);return C}; scL=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,cbv(C,V,N);else try{C.S?C.V.call(C.context):cbv(C,V,N)}catch(H){TVe.call(null,H)}LMS(jcQ,C)}; cbv=function(p,C,V){C==2?p.V.call(p.context,V):p.C&&p.C.call(p.context,V)}; luj=function(p,C){p.W=!0;g.J8(function(){p.W&&TVe.call(null,C)})}; yU=function(p){Tp.call(this,p)}; Xnu=function(p,C,V){this.promise=p;this.resolve=C;this.reject=V}; g.q7=function(p,C){g.im.call(this);this.Xg=p||1;this.Gn=C||g.xH;this.Ea=(0,g.g1)(this.j_a,this);this.SF=g.QL()}; g.Ib=function(p,C,V){if(typeof p==="function")V&&(p=(0,g.g1)(p,V));else if(p&&typeof p.handleEvent=="function")p=(0,g.g1)(p.handleEvent,p);else throw Error("Invalid listener argument");return Number(C)>2147483647?-1:g.xH.setTimeout(p,C||0)}; bm=function(p,C){var V=null;return(new g.DC(function(N,H){V=g.Ib(function(){N(C)},p); V==-1&&H(Error("Failed to schedule timer."))})).gh(function(N){g.xH.clearTimeout(V); throw N;})}; g.A8=function(p){g.z.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.q7(this.flushInterval);this.T.listen("tick",this.Il,!1,this);g.R(this,this.T)}; Mle=function(p){p.T.enabled||p.T.start();p.S++;p.S>=p.V&&p.Il()}; Jb9=function(p,C){return p.Y.has(C)?void 0:p.C.get(C)}; mXV=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?N$(H):"")}}}; WX=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]}; QU=function(p,C,V){if(Array.isArray(C))for(var N=0;N=0&&CV)H=V;N+=C.length+1;return N$(p.slice(N,H!==-1?H:0))}; CN=function(p,C){for(var V=p.search(bHQ),N=0,H,X=[];(H=Iuu(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(Aby,"$1")}; oeY=function(p,C,V){return GD(CN(p,C),C,V)}; g.jE=function(p){g.im.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}; xXu=function(p,C,V,N,H,X,d){var a=new g.jE;kNL.push(a);C&&a.listen("complete",C);a.eN("ready",a.Af);X&&(a.a$=Math.max(0,X));d&&(a.D=d);a.send(p,V,N,H)}; zJV=function(p,C){p.V=!1;p.T&&(p.W=!0,p.T.abort(),p.W=!1);p.S=C;p.C=5;YQL(p);VO(p)}; YQL=function(p){p.b_||(p.b_=!0,p.dispatchEvent("complete"),p.dispatchEvent("error"))}; RJu=function(p){if(p.V&&typeof Nj!="undefined")if(p.Z&&g.Hi(p)==4)setTimeout(p.eW.bind(p),0);else if(p.dispatchEvent("readystatechange"),p.isComplete()){p.getStatus();p.V=!1;try{if(Xr(p))p.dispatchEvent("complete"),p.dispatchEvent("success");else{p.C=6;try{var C=g.Hi(p)>2?p.T.statusText:""}catch(V){C=""}p.S=C+" ["+p.getStatus()+"]";YQL(p)}}finally{VO(p)}}}; VO=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){}}}; Xr=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.wA(1,String(p.J)),!p&&g.xH.self&&g.xH.self.location&&(p=g.xH.self.location.protocol.slice(0,-1)),C=!ney.test(p?p.toLowerCase():"");V=C}return V}; g.Hi=function(p){return p.T?p.T.readyState:0}; g.dU=function(p){try{return p.T?p.T.responseText:""}catch(C){return""}}; g.i3=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.eJe=function(p){var C={};p=(p.T&&g.Hi(p)>=2?p.T.getAllResponseHeaders()||"":"").split("\r\n");for(var V=0;V>1,C),nN(p,p.length>>1)]}; lHe=function(p){var C=g.F(E5a(p,eE));p=C.next().value;C=C.next().value;return p.toString(16)+C.toString(16)}; tge=function(p,C){var V=E5a(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)]}; Pi=function(p,C,V){V=V===void 0?[]:V;this.maxItems=p;this.T=C===void 0?0:C;this.C=V}; MgX=function(p){var C=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!C)return new Pi(p);var V=C.split(",");if(V.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Pi(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 Pi(p)):new Pi(p,V,C)}; J9V=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=MgX(p))}; m$y=function(p,C,V,N,H){var X=p.index?t$(p.logger,function(){return c9X(p.index,lHe(C),V,N,H)},"W"):"u"; p.logger.M4(X)}; v5s=function(p,C,V){var N=g.F(p.index?t$(p.logger,function(){return TIe(lHe(C),V)},"R"):["u"]),H=N.next().value; N=N.next().value;p.logger.Xl(H);return N}; K91=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=F9a(p);for(var V=2654435769,N=2654435769,H=314159265,X=p.length,d=X,a=0;d>=12;d-=12,a+=12)V+=wU(p,a),N+=wU(p,a+4),H+=wU(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 S_v.toString(H)}; F9a=function(p){for(var C=[],V=0;V>7,p.error.code]);N.set(V,4);return N}; ZGv=function(){var p=0,C;return function(V){C||(C=new ci);var N=new pE(C,p,1),H=gU(N,function(){return Gq(V)},!0); N.dispose();p++;return H}}; pE=function(p,C,V){$N.call(this,p);this.S=C;this.clientState=V;this.V="S";this.C="q"}; Gq=function(p){return globalThis.TextEncoder?(new TextEncoder).encode(p):g.mr(p)}; CE=function(p,C,V){g.z.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)})}; U$a=function(p,C){C=C instanceof U$?C:new U$(5,"TVD:error",C);return p.reportError(C)}; jZ=function(p,C,V){try{if(p.fS())throw new U$(21,"BNT:disposed");if(!p.T&&p.V)throw p.V;var N,H;return(H=(N=fHV(p,C,V))!=null?N:OG9(p,C,V))!=null?H:y9Y(p,C,V)}catch(X){if(!C.XH)throw U$a(p,X);return q_H(p,V,X)}}; fHV=function(p,C,V){var N;return(N=p.T)==null?void 0:gU(N,function(){return Vh(p,C)},V,function(H){var X; if(p.T instanceof Wi&&((X=C.gi)==null?0:X.Px))try{var d;(d=p.cache)==null||m$y(d,Vh(p,C),H,C.gi.ZU,p.D-120)}catch(a){p.reportError(new U$(24,"ELX:write",a))}})}; OG9=function(p,C,V){var N;if((N=C.gi)!=null&&N.PW)try{var H,X=(H=p.cache)==null?void 0:v5s(H,Vh(p,C),C.gi.ZU);return X?V?t$(p.logger,function(){return g.mq(X,2)},"a"):X:void 0}catch(d){p.reportError(new U$(23,"RXO:read",d))}}; y9Y=function(p,C,V){var N={stack:[],error:void 0,hasError:!1};try{if(!C.jf)throw new U$(29,"SDF:notready");return gU(GV(N,new pE(p.logger,p.Y,p.state)),function(){return Vh(p,C)},V)}catch(H){N.error=H,N.hasError=!0}finally{C0(N)}}; q_H=function(p,C,V){var N={stack:[],error:void 0,hasError:!1};try{var H=U$a(p,V);return gU(GV(N,new Bi(p.logger,H)),function(){return[]},C)}catch(X){N.error=X,N.hasError=!0}finally{C0(N)}}; Vh=function(p,C){return C.AA?C.AA:C.Ou?t$(p.logger,function(){return C.AA=Gq(C.Ou)},"c"):[]}; H2=function(p){var C;CE.call(this,p.o6.VM(),(C=p.onError)!=null?C:function(){},0); var V=this;this.S=0;this.C=new g.u3;g.R(this,this.logger);this.o6=p.o6;this.Ii=p.Ii;this.hM=Object.assign({},IHQ,p.hM||{});p.wR&&(this.logger instanceof m0||this.logger instanceof Tq)&&this.logger.Gg(p.wR);this.fH=p.fH||!1;if(bGu(p)){var N=this.o6;this.W=function(){return NIL(N).catch(function(H){H=V.reportError(new U$(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)})}; HGY(N,function(){N_(V)}); N.J===2&&N_(this)}else this.W=p.T2V,N_(this);this.addOnDisposeCallback(function(){aF(V.C.promise);V.C.reject()})}; A9y=function(p,C){C=C instanceof U$?C:C instanceof x7?new U$(11,"EBH:Error",C):new U$(12,"BSO:Unknown",C);return p.reportError(C)}; N_=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.u3;p.o6 instanceof YN&&p.o6.S.push(V.promise);if(!p.fH){S.EY(2);break}N=new g.u3;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,RX(p.o6.snapshot({Ou:H,YL:X}),p.hM.e5$,function(){return Promise.reject(new U$(15,"MDA:Timeout"))}),6); case 6:d=S.T;if(p.fS())throw new U$(20,"MDA:Disposed");a=X[0];p.state=6;return g.y(S,RX(p.logger.x3("g",1,p.Ii.Pt(d)),p.hM.Wk,function(){return Promise.reject(new U$(10,"BWB:Timeout"))}),7); case 7:E=S.T;if(p.fS())throw new U$(20,"BWB:Disposed");p.state=7;C=t$(p.logger,function(){var D=o5S(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=A9y(p,l);(c=C)==null||c.dispose();V.resolve();if(p.o6 instanceof YN&&p.S<2&&(l instanceof U$?l.code!==20&&l.code!==10:l instanceof x7?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)}})}; o5S=function(p,C,V,N){var H=tP(C,2)*1E3;if(H<=0)throw new U$(31,"TTM:Invalid");if(c4(C,4))return new rU(p.logger,c4(C,4),H);if(!tP(C,3))return new QO(p.logger,f6(WT(C,1)),H);if(!N)throw new U$(4,"PMD:Undefined");N=N(f6(WT(C,1)));if(!(N instanceof Function))throw new U$(16,"APF:Failed");p.D=Math.floor((Date.now()+H)/1E3);p=new Wi(p.logger,N,tP(C,3),H);p.addOnDisposeCallback(function(){return void V.resolve()}); return p}; Xf=function(p){this.aH=yx(p)}; khy=function(p,C,V){this.h1=p;this.QO=C;this.metadata=V}; dh=function(p,C){C=C===void 0?{}:C;this.O9n=p;this.metadata=C;this.status=null}; ip=function(p,C,V,N,H){this.name=p;this.methodType="unary";this.requestType=C;this.responseType=V;this.T=N;this.C=H}; hE=function(p){this.aH=yx(p)}; sV=function(p){this.aH=yx(p)}; as=function(p){this.aH=yx(p)}; EV=function(p,C){this.D=p.ah_;this.J=C;this.T=p.xhr;this.V=[];this.W=[];this.Y=[];this.S=[];this.C=[];this.D&&x$v(this)}; RQa=function(p,C){g.CJ(p.T,"complete",function(){if(Xr(p.T)){var V=g.dU(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){lp(p,new x7(13,"Error when deserializing response data; error: "+d+(", response: "+V)));return}V=ves(p.T.getStatus());tE(p,c2(p));V==0?Y_1(p,N):lp(p,new x7(V,"Xhr succeeded but the status code is not 200"))}else{V=g.dU(p.T);N=c2(p);if(V){var H=zQy(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;tE(p,N);lp(p,new x7(V,X,H))}})}; x$v=function(p){p.D.yA("data",function(C){if("1"in C){var V=C["1"];try{var N=p.J(V)}catch(H){lp(p,new x7(13,"Error when deserializing response data; error: "+H+(", response: "+V)))}N&&Y_1(p,N)}if("2"in C)for(C=zQy(p,C["2"]),V=0;V-1&&p.splice(C,1)}; Y_1=function(p,C){for(var V=0;V>4&15).toString(16)+(p&15).toString(16)}; UV=function(p,C){this.C=this.T=null;this.V=p||null;this.S=!!C}; q_=function(p){p.T||(p.T=new Map,p.C=0,p.V&&gA(p.V,function(C,V){p.add(N$(C),V)}))}; L99=function(p,C){q_(p);C=Is(p,C);return p.T.has(C)}; g.g5e=function(p,C,V){p.remove(C);V.length>0&&(p.V=null,p.T.set(Is(p,C),g.p6(V)),p.C=p.C+V.length)}; Is=function(p,C){C=String(C);p.S&&(C=C.toLowerCase());return C}; Pc1=function(p,C){C&&!p.S&&(q_(p),p.V=null,p.T.forEach(function(V,N){var H=N.toLowerCase();N!=H&&(this.remove(N),g.g5e(this,H,V))},p)); p.S=C}; g.W9v=function(p){var C="";g.uc(p,function(V,N){C+=N;C+=":";C+=V;C+="\r\n"}); return C}; g.bp=function(p,C,V){if(g.oa(V))return p;V=g.W9v(V);if(typeof p==="string")return GD(p,g.VW(C),V);g.OV(p,C,V);return p}; g.AE=function(p){g.z.call(this);this.C=p;this.T={}}; Qa9=function(p,C,V,N,H,X){if(Array.isArray(V))for(var d=0;d0&&(C[H]=N)},p); return C}; uQe=function(p){p=Ty(p);var C=[];g.uc(p,function(V,N){N in Object.prototype||typeof V!="undefined"&&C.push([N,":",V].join(""))}); return C}; UqQ=function(p){lZ(p,"od",ZeS);lZ(p,"opac",Mk).T=!0;lZ(p,"sbeos",Mk).T=!0;lZ(p,"prf",Mk).T=!0;lZ(p,"mwt",Mk).T=!0;lZ(p,"iogeo",Mk)}; fzu=function(){this.T=this.nT=null}; JU=function(){}; vs=function(){if(!mg())throw Error();}; mg=function(){return!(!FL||!FL.performance)}; S1=function(p){return p?p.passive&&Oes()?p:p.capture||!1:!1}; Kh=function(p,C,V,N){return p.addEventListener?(p.addEventListener(C,V,S1(N)),!0):!1}; De=function(p){return p.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[p.visibilityState||p.webkitVisibilityState||p.mozVisibilityState||""]||0}; y2V=function(){}; qoH=function(){return(O1||y8)&&qc?qc.mobile:!uZ()&&(bP("iPod")||bP("iPhone")||bP("Android")||bP("IEMobile"))}; uZ=function(){return(O1||y8)&&qc?!qc.mobile&&(bP("iPad")||bP("Android")||bP("Silk")):bP("iPad")||bP("Android")&&!bP("Mobile")||bP("Silk")}; Ze=function(p){try{return!!p&&p.location.href!=null&&X5e(p,"foo")}catch(C){return!1}}; Uh=function(p,C){if(p)for(var V in p)Object.prototype.hasOwnProperty.call(p,V)&&C(p[V],V,p)}; be1=function(){var p=[];Uh(IzV,function(C){p.push(C)}); return p}; A21=function(p){var C,V;return(V=(C=/https?:\/\/[^\/]+/.exec(p))==null?void 0:C[0])!=null?V:""}; xqQ=function(){var p=oqj("IFRAME"),C={};g.lr(kOs(),function(V){p.sandbox&&p.sandbox.supports&&p.sandbox.supports(V)&&(C[V]=!0)}); return C}; oqj=function(p,C){C=C===void 0?document:C;return C.createElement(String(p).toLowerCase())}; You=function(p){for(var C=p;p&&p!=p.parent;)p=p.parent,Ze(p)&&(C=p);return C}; eCa=function(p){p=p||fh();for(var C=new zCS(g.xH.location.href,!1),V=null,N=p.length-1,H=N;H>=0;--H){var X=p[H];!V&&RCa.test(X.url)&&(V=X);if(X.url&&!X.Io){C=X;break}}H=null;X=p.length&&p[N].url;C.depth!=0&&X&&(H=p[N]);return new nqX(C,H,V)}; fh=function(){var p=g.xH,C=[],V=null;do{var N=p;if(Ze(N)){var H=N.location.href;V=N.document&&N.document.referrer||null}else H=V,V=null;C.push(new zCS(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}; Io=function(p,C){this.T=p;this.depth=C}; LSj=function(){function p(a,E){return a==null?E:a} var C=fh(),V=Math.max(C.length-1,0),N=eCa(C);C=N.T;var H=N.C,X=N.V,d=[];X&&d.push(new Io([X.url,X.Io?2:0],p(X.depth,1)));H&&H!=X&&d.push(new Io([H.url,2],0));C.url&&C!=X&&d.push(new Io([C.url,0],p(C.depth,V)));N=g.bZ(d,function(a,E){return d.slice(0,d.length-E)}); !C.url||(X||H)&&C!=X||(H=A21(C.url))&&N.push([new Io([H,1],p(C.depth,V))]);N.push([]);return g.bZ(N,function(a){return $qa(V,a)})}; $qa=function(p,C){g.AU(C,function(H){return H.depth>=0}); var V=oo(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}; gqv=function(){var p=p===void 0?LSj():p;return p.map(function(C){return qk(C)})}; WSu=function(p){var C=!1;C=C===void 0?!1:C;FL.google_image_requests||(FL.google_image_requests=[]);var V=oqj("IMG",FL.document);C&&(V.attributionSrc="");V.src=p;FL.google_image_requests.push(V)}; kc=function(p){var C="CO";if(p.CO&&p.hasOwnProperty(C))return p.CO;var V=new p;p.CO=V;p.hasOwnProperty(C);return V}; xc=function(){this.C=new y2V;this.T=mg()?new vs:new JU}; QNu=function(){Yc();var p=FL.document;return!!(p&&p.body&&p.body.getBoundingClientRect&&typeof FL.setInterval==="function"&&typeof FL.clearInterval==="function"&&typeof FL.setTimeout==="function"&&typeof FL.clearTimeout==="function")}; r29=function(){Yc();return gqv()}; BWL=function(){}; Yc=function(){var p=kc(BWL);if(!p.T){if(!FL)throw Error("Context has not been set and window is undefined.");p.T=kc(xc)}return p.T}; zy=function(p){this.aH=yx(p)}; GOV=function(p){this.V=p;this.T=-1;this.C=this.S=0}; Ro=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}}}; pX1=function(p,C){this.C=p;this.V=C;this.T=new GOV(p)}; Cms=function(){this.T={}}; VSe=function(){var p=nh().flags,C=jbH;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}; d79=function(){this.V=void 0;this.C=this.Y=0;this.W=-1;this.IN=new Eh;lZ(this.IN,"mv",NAH).T=!0;lZ(this.IN,"omid",Mk);lZ(this.IN,"epoh",Mk).T=!0;lZ(this.IN,"epph",Mk).T=!0;lZ(this.IN,"umt",Mk).T=!0;lZ(this.IN,"phel",Mk).T=!0;lZ(this.IN,"phell",Mk).T=!0;lZ(this.IN,"oseid",HJv).T=!0;var p=this.IN;p.T.sloi||(p.T.sloi=new sh);p.T.sloi.T=!0;lZ(this.IN,"mm",e1);lZ(this.IN,"ovms",XXe).T=!0;lZ(this.IN,"xdi",Mk).T=!0;lZ(this.IN,"amp",Mk).T=!0;lZ(this.IN,"prf",Mk).T=!0;lZ(this.IN,"gtx",Mk).T=!0;lZ(this.IN, "mvp_lv",Mk).T=!0;lZ(this.IN,"ssmol",Mk).T=!0;lZ(this.IN,"fmd",Mk).T=!0;lZ(this.IN,"gen204simple",Mk);this.T=new pX1(Yc(),this.IN);this.S=!1;this.flags=new Cms}; nh=function(){return kc(d79)}; iJu=function(p,C,V,N){if(Math.random()<(N||p.T))try{if(V instanceof Oh)var H=V;else H=new Oh,Uh(V,function(d,a){var E=H,l=E.S++;d=yA(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&&(Yc(),WSu(X))}catch(d){}}; hNY=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}; sb1=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()}; aCL=function(){var p=p===void 0?g.xH:p;return(p=p.performance)&&p.now?p.now():null}; E7u=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()}; wT=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=Ps()||(C!=null?C:Math.random()<1)}; lCa=function(p){p&&$c&&Ps()&&($c.clearMarks("goog_"+p.label+"_"+p.uniqueId+"_start"),$c.clearMarks("goog_"+p.label+"_"+p.uniqueId+"_end"))}; tSH=function(){var p=Lh;this.T=gT;this.I4="jserror";this.gX=!0;this.Az=null;this.C=this.t5;this.Ha=p===void 0?null:p}; c8y=function(p,C,V){var N=Ws;return Ro(nh().T.T,function(){try{if(N.Ha&&N.Ha.T){var H=N.Ha.start(p.toString(),3);var X=C();N.Ha.end(H)}else X=C()}catch(a){var d=N.gX;try{lCa(H),d=N.C(p,new QA(rT(a)),void 0,V)}catch(E){N.t5(217,E)}if(!d)throw a;}return X})()}; Bs=function(p,C,V,N){return Ro(nh().T.T,function(){var H=g.US.apply(0,arguments);return c8y(p,function(){return C.apply(V,H)},N)})}; rT=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}; QA=function(p){hNY.call(this,Error(p),{message:p})}; TAj=function(){FL&&typeof FL.google_measure_js_timing!="undefined"&&(FL.google_measure_js_timing||Lh.disable())}; MSX=function(p){Ws.Az=function(C){g.lr(p,function(V){V(C)})}}; J8L=function(p,C){return c8y(p,C)}; Gy=function(p,C){return Bs(p,C)}; p2=function(p,C,V,N){Ws.t5(p,C,V,N)}; C2=function(){return Date.now()-m7u}; v7a=function(){var p=nh().V,C=jh>=0?C2()-jh:-1,V=VT?C2()-NK:-1,N=a9>=0?C2()-a9:-1;if(p==947190542)return 100;if(p==79463069)return 200;p=[2E3,4E3];var H=[250,500,1E3];p2(637,Error(),.001);var X=C;V!=-1&&V1500&&N<4E3?500:d}; EE=function(p,C,V,N){this.top=p;this.right=C;this.bottom=V;this.left=N}; l4=function(p){return p.right-p.left}; tx=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}; cf=function(p,C,V){C instanceof g.vG?(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}; Tu=function(p,C,V){var N=new EE(0,0,0,0);this.time=p;this.volume=null;this.V=C;this.T=N;this.C=V}; MK=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}; S8s=function(p){var C=p!==p.top,V=p.top===You(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),rcH(Fo9,function(d){return typeof X[d]==="function"})||(H=1)); return{J9:X,compatibility:H,NIn:N}}; Koa=function(){var p=window.document;return p&&typeof p.elementFromPoint==="function"}; D7s=function(p,C,V){p&&C!==null&&C!=C.top&&(C=C.top);try{return(V===void 0?0:V)?(new g.Sg(C.innerWidth,C.innerHeight)).round():EVV(C||window).round()}catch(N){return new g.Sg(-12245933,-12245933)}}; Jx=function(p,C,V){try{p&&(C=C.top);var N=D7s(p,C,V),H=N.height,X=N.width;if(X===-12245933)return new EE(X,X,X,X);var d=tqY(QW(C.document).T),a=d.x,E=d.y;return new EE(E,a+X,E+H,a)}catch(l){return new EE(-12245933,-12245933,-12245933,-12245933)}}; g.mG=function(p,C,V,N){this.left=p;this.top=C;this.width=V;this.height=N}; vf=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.Sh=function(p,C,V){if(typeof C==="string")(C=Fj(p,C))&&(p.style[C]=V);else for(var N in C){V=p;var H=C[N],X=Fj(V,N);X&&(V.style[X]=H)}}; Fj=function(p,C){var V=uuV[C];if(!V){var N=Pg9(C);V=N;p.style[N]===void 0&&(N=(g.Vf?"Webkit":K2?"Moz":null)+$1u(N),p.style[N]!==void 0&&(V=N));uuV[C]=V}return V}; g.Do=function(p,C){var V=p.style[Pg9(C)];return typeof V!=="undefined"?V:p.style[Fj(p,C)]||""}; u4=function(p,C){var V=WG(p);return V.defaultView&&V.defaultView.getComputedStyle&&(p=V.defaultView.getComputedStyle(p,null))?p[C]||p.getPropertyValue(C)||"":""}; Zo=function(p,C){return u4(p,C)||(p.currentStyle?p.currentStyle[C]:null)||p.style&&p.style[C]}; g.f2=function(p,C,V){if(C instanceof g.vG){var N=C.x;C=C.y}else N=C,C=V;p.style.left=g.UE(N,!1);p.style.top=g.UE(C,!1)}; OE=function(p){try{return p.getBoundingClientRect()}catch(C){return{left:0,top:0,right:0,bottom:0}}}; ZJs=function(p){var C=WG(p),V=Zo(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=Zo(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.yT=function(p){var C=WG(p),V=new g.vG(0,0);if(p==(C?WG(C):document).documentElement)return V;p=OE(p);C=tqY(QW(C).T);V.x=p.left+C.x;V.y=p.top+C.y;return V}; fCS=function(p,C){var V=new g.vG(0,0),N=Nq(WG(p));if(!X5e(N,"parent"))return V;do{var H=N==C?g.yT(p):U7y(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.qK=function(p,C){p=OJH(p);C=OJH(C);return new g.vG(p.x-C.x,p.y-C.y)}; U7y=function(p){p=OE(p);return new g.vG(p.left,p.top)}; OJH=function(p){if(p.nodeType==1)return U7y(p);p=p.changedTouches?p.changedTouches[0]:p;return new g.vG(p.clientX,p.clientY)}; g.I9=function(p,C,V){if(C instanceof g.Sg)V=C.height,C=C.width;else if(V==void 0)throw Error("missing height argument");p.style.width=g.UE(C,!0);p.style.height=g.UE(V,!0)}; g.UE=function(p,C){typeof p=="number"&&(p=(C?Math.round(p):p)+"px");return p}; g.b4=function(p){var C=y8S;if(Zo(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}; y8S=function(p){var C=p.offsetWidth,V=p.offsetHeight,N=g.Vf&&!C&&!V;return(C===void 0||N)&&p.getBoundingClientRect?(p=OE(p),new g.Sg(p.right-p.left,p.bottom-p.top)):new g.Sg(C,V)}; g.Ax=function(p,C){p.style.display=C?"":"none"}; o9=function(p,C){C=Math.pow(10,C);return Math.floor(p*C)/C}; q8u=function(p){return new EE(p.top,p.right,p.bottom,p.left)}; ICe=function(p){var C=p.top||0,V=p.left||0;return new EE(C,V+(p.width||0),C+(p.height||0),V)}; ko=function(p){return p!=null&&p>=0&&p<=1}; bJL=function(){var p=g.f0();return p?xo("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}; A8a=function(){this.V=!Ze(FL.top);this.isMobileDevice=uZ()||qoH();var p=fh();this.domain=p.length>0&&p[p.length-1]!=null&&p[p.length-1].url!=null?g.$7(p[p.length-1].url)||"":"";this.T=new EE(0,0,0,0);this.S=new g.Sg(0,0);this.W=new g.Sg(0,0);this.D=new EE(0,0,0,0);this.frameOffset=new g.vG(0,0);this.Y=0;this.J=!1;this.C=!(!FL||!S8s(FL).J9);this.update(FL)}; o7e=function(p,C){C&&C.screen&&(p.S=new g.Sg(C.screen.width,C.screen.height))}; kDs=function(p,C){a:{var V=p.T?new g.Sg(l4(p.T),p.T.getHeight()):new g.Sg(0,0);C=C===void 0?FL: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=Yc().C.isVisible();var C=De(zu)===0;return p||C}; Yo=function(){return kc(A8a)}; n2=function(p){this.V=p;this.C=0;this.T=null}; eh=function(p,C,V){this.V=p;this.Ga=V===void 0?"na":V;this.W=[];this.isInitialized=!1;this.S=new Tu(-1,!0,this);this.T=this;this.J=C;this.a$=this.Z=!1;this.Sa="uk";this.Vn=!1;this.Y=!0}; Pf=function(p,C){g.W5(p.W,C)||(p.W.push(C),C.hS(p.T),C.tx(p.S),C.tF()&&(p.Z=!0))}; x7Y=function(p){p=p.T;p.HL();p.hC();var C=Yo();C.D=Jx(!1,p.V,C.isMobileDevice);kDs(Yo(),p.V);p.S.T=p.Me()}; Y8H=function(p){p.Z=p.W.length?xo(p.W,function(C){return C.tF()}):!1}; zNV=function(p){var C=g.p6(p.W);g.lr(C,function(V){V.tx(p.S)})}; w9=function(p){var C=g.p6(p.W);g.lr(C,function(V){V.hS(p.T)}); p.T!=p||zNV(p)}; $o=function(p,C,V,N){this.element=p;this.T=new EE(0,0,0,0);this.V=null;this.Y=new EE(0,0,0,0);this.C=C;this.IN=V;this.Vn=N;this.sY=!1;this.timestamp=-1;this.Z=new MK(C.S,this.element,this.T,new EE(0,0,0,0),0,0,C2(),0);this.W=void 0}; RNV=function(p,C){return p.W?new EE(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()}; L2=function(p){this.W=!1;this.T=p;this.S=function(){}}; n7y=function(p,C,V){this.V=V===void 0?0:V;this.C=p;this.T=C==null?"":C}; eNY=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}}; Pma=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]})}; NZ=function(){this.C=new Bf;this.Ga=this.vr=0;this.Y_=new r9;this.b_=this.D=-1;this.Qn=1E3;this.Mo=new Bf([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Sa=this.sY=-1}; Hp=function(p,C){return piv(p.C,C===void 0?!0:C)}; XU=function(p,C,V,N){var H=H===void 0?!1:H;V=Bs(N,V);Kh(p,C,V,{capture:H})}; hT=function(p,C){C=dx(C);return C===0?0:dx(p)/C}; dx=function(p){return Math.max(p.bottom-p.top,0)*Math.max(p.right-p.left,0)}; VEH=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=WG(p),H=N&&Nq(N),X=H&&H.frameElement;X&&(p=X)}}catch(d){break}}return!1}; NUa=function(p,C,V){if(!p||!C)return!1;C=cf(p.clone(),-C.left,-C.top);p=(C.left+C.right)/2;C=(C.top+C.bottom)/2;Ze(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Koa())return!1;p=window.document.elementFromPoint(p,C);if(!p)return!1;C=(C=(C=WG(V))&&C.defaultView&&C.defaultView.frameElement)&&VEH(C,p);var N=p===V;p=!N&&p&&ce(p,function(H){return H===V}); return!(C||N||p)}; HNv=function(p,C,V,N){return Yo().V?!1:l4(p)<=0||p.getHeight()<=0?!0:V&&N?J8L(208,function(){return NUa(p,C,V)}):!1}; sH=function(p,C,V){g.z.call(this);this.position=XiQ.clone();this.AT=this.jQ();this.Yo=-2;this.timeCreated=Date.now();this.Rr=-1;this.mF=C;this.QK=null;this.kR=!1;this.tT=null;this.opacity=-1;this.requestSource=V;this.yUa=!1;this.UU=function(){}; this.ql=function(){}; this.x9=new fzu;this.x9.nT=p;this.x9.T=p;this.Jx=!1;this.Ar={qI:null,FH:null};this.bS=!0;this.ub=null;this.lU=this.SYY=!1;nh().Y++;this.q5=this.sz();this.LY=-1;this.HV=null;this.hasCompleted=this.IeY=!1;this.IN=new Eh;UqQ(this.IN);dj1(this);this.requestSource==1?tU(this.IN,"od",1):tU(this.IN,"od",0)}; dj1=function(p){p=p.x9.nT;var C;if(C=p&&p.getAttribute)C=/-[a-z]/.test("googleAvInapp")?!1:iN9&&p.dataset?"googleAvInapp"in p.dataset:p.hasAttribute?p.hasAttribute("data-"+wT9()):!!p.getAttribute("data-"+wT9());C&&(Yo().C=!0)}; a1=function(p,C){C!=p.lU&&(p.lU=C,p=Yo(),C?p.Y++:p.Y>0&&p.Y--)}; hZ1=function(p,C){if(p.HV){if(C.getName()===p.HV.getName())return;p.HV.dispose();p.HV=null}C=C.create(p.x9.T,p.IN,p.tF());if(C=C!=null&&C.observe()?C:null)p.HV=C}; sXS=function(p,C,V){if(!p.QK||p.mF==-1||C.C===-1||p.QK.C===-1)return 0;p=C.C-p.QK.C;return p>V?0:p}; atY=function(p,C,V){if(p.HV){p.HV.yl();var N=p.HV.Z,H=N.S,X=H.T;if(N.Y!=null){var d=N.V;p.tT=new g.vG(d.left-X.left,d.top-X.top)}X=p.uu()?Math.max(N.T,N.W):N.T;d={};H.volume!==null&&(d.volume=H.volume);H=p.g4(N);p.QK=N;p.Pr(X,C,V,!1,d,H,N.J)}}; EN9=function(p){if(p.kR&&p.ub){var C=cs(p.IN,"od")==1,V=Yo().T,N=p.ub,H=p.HV?p.HV.getName():"ns",X=p.tT,d=new g.Sg(l4(V),V.getHeight());V=p.uu();p={tqS:H,tT:X,hjS:d,uu:V,L7:p.q5.L7,fPn:C};if(C=N.C){C.yl();H=C.Z;X=H.S.T;var a=d=null;H.Y!=null&&X&&(d=H.V,d=new g.vG(d.left-X.left,d.top-X.top),a=new g.Sg(X.right-X.left,X.bottom-X.top));H=V?Math.max(H.T,H.W):H.T;V={tqS:C.getName(),tT:d,hjS:a,uu:V,fPn:!1,L7:H}}else V=null;V&&r8Y(N,p,V)}}; ltV=function(p,C,V){C&&(p.UU=C);V&&(p.ql=V)}; g.EH=function(){}; g.lf=function(p){return{value:p,done:!1}}; tE9=function(){this.S=this.T=this.V=this.C=this.W=0}; c$Y=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}; TUa=function(){dT.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; tT=function(p){return ko(p.volume)&&p.volume>0}; cp=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 MES(X,C,V)}}; T2=function(p,C){return function(V){return C(V)?V[p]:void 0}}; J$a=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)})}; mjY=function(){this.C=this.T=""}; vNY=function(){}; JT=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.Ra(V,p);return QT(Wf(new g9,V))}; F0X=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}; mO=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)}; S$e=function(p){var C=g.q$(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}; K01=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}; vp=function(){this.T=this.C=0}; FU=function(){NZ.call(this);this.V=new r9;this.R$=this.Z=this.Vn=0;this.J=-1;this.F$=new r9;this.W=new r9;this.T=new Bf;this.Y=this.S=-1;this.a$=new r9;this.Qn=2E3;this.Wr=new vp;this.UY=new vp;this.l_=new vp}; Sr=function(p,C,V){var N=p.R$;VT||V||p.J==-1||(N+=C-p.J);return N}; DjH=function(){this.V=!1}; Ko=function(p,C){this.V=!1;this.S=p;this.Z=C;this.W=0}; DA=function(p,C){Ko.call(this,p,C);this.D=[]}; urL=function(){}; uf=function(){}; ZA=function(p,C,V,N){$o.call(this,p,C,V,N)}; UH=function(p,C,V){$o.call(this,null,p,C,V);this.J=p.isActive();this.D=0}; fo=function(p){return[p.top,p.left,p.bottom,p.right]}; OH=function(p,C,V,N,H,X){X=X===void 0?new uf:X;sH.call(this,C,V,N);this.ir=H;this.rl=0;this.kN={};this.BR=new F0X;this.VQ={};this.Zu="";this.l_=null;this.bx=!1;this.T=[];this.d9=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.UY=!1;this.Vn=this.J=this.C=this.wu=this.Wc=0;new Bf;this.Wr=this.R$=0;this.Y_=-1;this.hB=0;this.D=g.vX;this.sY=[this.jQ()];this.Hc=2;this.Qs={};this.Qs.pause="p";this.Qs.resume="r";this.Qs.skip="s";this.Qs.mute="m";this.Qs.unmute= "um";this.Qs.exitfullscreen="ef";this.W=null;this.Mo=this.F$=!1;this.ER=Math.floor(Date.now()/1E3-1704067200);this.vr=0}; yF=function(p){p.hasCompleted=!0;p.hB!=0&&(p.hB=3)}; qZ=function(p){return p===void 0?p:Number(p)?o9(p,3):0}; I1=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.R$+=Math.abs(N);N!=0&&(p.b_=0);p.Y_==-1&&N>0&&(p.Y_=a9>=0?C2()-a9:-1);p.a$=V;return H}; ftv=function(p,C){xo(p.Y,function(V){return V.S==C.S})||p.Y.push(C)}; ONa=function(p){var C=Co(p.zp().T,1);return bf(p,C)}; bf=function(p,C,V){return C>=15E3?!0:p.UY?(V===void 0?0:V)?!0:p.V>0?C>=p.V/2:p.Sa>0?C>=p.Sa:!1:!1}; y$L=function(p){var C=o9(p.q5.L7,2),V=p.BR.V,N=p.q5,H=I1(p),X=qZ(H.S),d=qZ(H.Y),a=qZ(N.volume),E=o9(H.D,2),l=o9(H.b_,2),t=o9(N.L7,2),c=o9(H.sY,2),T=o9(H.Sa,2);N=o9(N.lf,2);var M=p.Pf().clone().round();p=p.HV&&p.HV.V?(p.HV?p.HV.V:null).clone().round():null;H=Hp(H,!1);return{GWa:C,kx:V,El:X,yG:d,e9:a,vg:E,aR:l,L7:t,fZ:c,nZ:T,lf:N,position:M,QH:p,LZ:H}}; Its=function(p,C){q$H(p.T,C,function(){return{GWa:0,kx:void 0,El:-1,yG:-1,e9:-1,vg:-1,aR:-1,L7:-1,fZ:-1,nZ:-1,lf:-1,position:void 0,QH:void 0,LZ:[]}}); p.T[C]=y$L(p)}; q$H=function(p,C,V){for(var N=p.length;N0?1:0;c.atos= Gu(l.T);c.ssb=Gu(l.Mo,!1);c.amtos=piv(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=bf(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=ZNa(p);c.nmt=p.R$;c.bt=p.Wr;c.pst=p.Y_;c.vpaid=p.Z;c.dur=p.V;c.vmtime=p.a$;c.is=p.BR.V;p.T.length>=1&&(c.i0=p.T[0].kx,c.a0=[p.T[0].e9],c.c0=[p.T[0].L7],c.ss0=[p.T[0].lf],t=p.T[0].position,X=p.T[0].QH,c.p0=t?fo(t):void 0,t&&X&&!tx(X,t)&&(c.cp0=fo(X)));p.T.length>=2&&(c.i1=p.T[1].kx,c.a1=kC(p.T[1].El, p.T[1].e9,p.T[1].yG),c.c1=kC(p.T[1].vg,p.T[1].L7,p.T[1].aR),c.ss1=kC(p.T[1].fZ,p.T[1].lf,p.T[1].nZ),t=p.T[1].position,X=p.T[1].QH,c.p1=t?fo(t):void 0,t&&X&&!tx(X,t)&&(c.cp1=fo(X)),c.mtos1=p.T[1].LZ);p.T.length>=3&&(c.i2=p.T[2].kx,c.a2=kC(p.T[2].El,p.T[2].e9,p.T[2].yG),c.c2=kC(p.T[2].vg,p.T[2].L7,p.T[2].aR),c.ss2=kC(p.T[2].fZ,p.T[2].lf,p.T[2].nZ),t=p.T[2].position,X=p.T[2].QH,c.p2=t?fo(t):void 0,t&&X&&!tx(X,t)&&(c.cp2=fo(X)),c.mtos2=p.T[2].LZ);p.T.length>=4&&(c.i3=p.T[3].kx,c.a3=kC(p.T[3].El,p.T[3].e9, p.T[3].yG),c.c3=kC(p.T[3].vg,p.T[3].L7,p.T[3].aR),c.ss3=kC(p.T[3].fZ,p.T[3].lf,p.T[3].nZ),t=p.T[3].position,X=p.T[3].QH,c.p3=t?fo(t):void 0,t&&X&&!tx(X,t)&&(c.cp3=fo(X)),c.mtos3=p.T[3].LZ);c.cs=K01(p.BR);C&&(c.ic=S$e(p.BR),c.dvpt=l.V.C,c.dvs=VF(l.C,.5),c.dfvs=VF(l.C,1),c.davs=VF(l.T,.5),c.dafvs=VF(l.T,1),V&&(l.V.C=0,C31(l.C),C31(l.T)),p.g9()&&(c.dtos=l.Vn,c.dav=l.Z,c.dtoss=p.rl+1,V&&(l.Vn=0,l.Z=0,p.rl++)),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=[l4(a.T),a.T.getHeight()]; c.scs=[a.S.width,a.S.height];c.dom=a.domain;p.wu&&(c.vds=p.wu);if(p.Y.length>0||p.d9)C=g.p6(p.Y),p.d9&&C.push(p.d9),c.pings=g.bZ(C,function(T){return T.toString()}); C=g.bZ(g.MZ(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.Ra(c,p.HV.GY());N?(c.c=o9(p.q5.L7,2),c.ss=o9(p.q5.lf,2)):c.tth=C2()-kqX;c.mc=o9(l.b_,2);c.nc=o9(l.D,2);c.mv=qZ(l.Y);c.nv=qZ(l.S);c.lte=o9(p.Yo,2);N=I1(p,H);Hp(l);c.qmtos=Hp(N);c.qnc=o9(N.D,2);c.qmv=qZ(N.Y);c.qnv=qZ(N.S);c.qas=N.S>0?1:0;c.qi=p.Zu;c.avms||(c.avms="geo");c.psm=l.Wr.T;c.psv=l.Wr.getValue();c.psfv=l.UY.getValue();c.psa=l.l_.getValue();E=uQe(E.IN);E.length&&(c.veid=E);p.W&&g.Ra(c, c$Y(p.W));c.avas=p.Bt();c.vs=p.TK();c.co=xjL(p);c.tm=l.vr;c.tu=l.Ga;return c}; bNa=function(p,C){if(g.W5(Y$u,C))return!0;var V=p.kN[C];return V!==void 0?(p.kN[C]=!0,!V):!1}; xjL=function(p){var C=p.vr.toString(10).padStart(2,"0");C=""+p.ER+C;p.vr<99&&p.vr++;return C}; RZe=function(){this.T={};var p=Nq();xC(this,p,document);var C=zZL();try{if("1"==C){for(var V=p.parent;V!=p.top;V=V.parent)xC(this,V,V.document);xC(this,p.top,p.top.document)}}catch(N){}}; zZL=function(){var p=document.documentElement;try{if(!Ze(Nq().top))return"2";var C=[],V=Nq(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"}}; xC=function(p,C,V){XU(V,"mousedown",function(){return nNH(p)},301); XU(C,"scroll",function(){return eZY(p)},302); XU(V,"touchmove",function(){return P3j(p)},303); XU(V,"mousemove",function(){return wiH(p)},304); XU(V,"keydown",function(){return $jv(p)},305)}; nNH=function(p){g.uc(p.T,function(C){C.V>1E5||++C.V})}; eZY=function(p){g.uc(p.T,function(C){C.T>1E5||++C.T})}; P3j=function(p){g.uc(p.T,function(C){C.T>1E5||++C.T})}; $jv=function(p){g.uc(p.T,function(C){C.C>1E5||++C.C})}; wiH=function(p){g.uc(p.T,function(C){C.S>1E5||++C.S})}; L0Q=function(){this.T=[];this.C=[]}; YC=function(p,C){return g.L0(p.T,function(V){return V.Zu==C})}; gN1=function(p,C){return C?g.L0(p.T,function(V){return V.x9.nT==C}):null}; W0j=function(p,C){return g.L0(p.C,function(V){return V.qR()==2&&V.Zu==C})}; R1=function(){var p=z2;return p.T.length==0?p.C:p.C.length==0?p.T:g.Gp(p.C,p.T)}; QXy=function(p,C){p=C.qR()==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}; r$9=function(p){var C=z2;if(QXy(C,p)){switch(p.qR()){case 0:var V=function(){return null}; case 2:V=function(){return W0j(C,p.Zu)}; break;case 1:V=function(){return YC(C,p.Zu)}}for(var N=V();N;N=V())QXy(C,N)}}; BU1=function(p){var C=z2;p=g.MZ(p,function(V){return!gN1(C,V.x9.nT)}); C.T.push.apply(C.T,g.K(p))}; GqX=function(p){var C=[];g.lr(p,function(V){xo(z2.T,function(N){return N.x9.nT===V.x9.nT&&N.Zu===V.Zu})||(z2.T.push(V),C.push(V))})}; no=function(){this.T=this.C=null}; p2L=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.pI()}); p.T&&(p.T.init(V)?x7Y(p.T.T):C(p.T.T.rZ(),p.T));return p.T!=null}; er=function(p){p=CpX(p);L2.call(this,p.length?p[p.length-1]:new eh(FL,0));this.V=p;this.C=null}; CpX=function(p){if(!p.length)return[];p=(0,g.MZ)(p,function(V){return V!=null&&V.Wv()}); for(var C=1;CV.time?C:V},p[0])}; Lo=function(p){p=p===void 0?FL:p;L2.call(this,new eh(p,2))}; gx=function(){var p=HEL();eh.call(this,FL.top,p,"geo")}; HEL=function(){nh();var p=Yo();return p.V||p.C?0:2}; X21=function(){}; Wp=function(){this.done=!1;this.T={UH:0,lB:0,mGr:0,TJ:0,qJ:-1,iA:0,zb:0,fu:0,Dnn:0};this.W=null;this.Y=!1;this.V=null;this.D=0;this.C=new n2(this)}; rx=function(){var p=QF;p.Y||(p.Y=!0,d_X(p,function(){return p.S.apply(p,g.K(g.US.apply(0,arguments)))}),p.S())}; iEu=function(){kc(X21);var p=kc(no);p.T!=null&&p.T.T?x7Y(p.T.T):Yo().update(FL)}; Bp=function(p,C,V){if(!p.done&&(p.C.cancel(),C.length!=0)){p.V=null;try{iEu();var N=C2();nh().W=N;if(kc(no).T!=null)for(var H=0;H=0?C2()-jh:-1,a=C2();H.T.qJ==-1&&(d=a);var E=Yo(),l=nh(),t=Ty(l.IN),c=R1();try{if(c.length>0){var T=E.T;T&&(t.bs=[l4(T),T.getHeight()]);var M=E.W;M&&(t.ps=[M.width,M.height]);FL.screen&&(t.scs=[FL.screen.width,FL.screen.height])}else t.url=encodeURIComponent(FL.location.href.substring(0,512)),X.referrer&&(t.referrer=encodeURIComponent(X.referrer.substring(0,512))); t.tt=d;t.pt=jh;t.bin=l.C;FL.google_osd_load_pub_page_exp!==void 0&&(t.olpp=FL.google_osd_load_pub_page_exp);t.deb=[1,H.T.UH,H.T.lB,H.T.TJ,H.T.qJ,0,H.C.C,H.T.iA,H.T.zb,H.T.fu,H.T.Dnn,-1].join(";");t.tvt=ssu(H,a);E.C&&(t.inapp=1);if(FL!==null&&FL!=FL.top){c.length>0&&(t.iframe_loc=encodeURIComponent(FL.location.href.substring(0,512)));var J=E.D;t.is=[l4(J),J.getHeight()]}}catch(S){t.error=1}QF.V=t}T=g.Y5(QF.V);M=nh().T;cs(M.V,"prf")==1?(J=new zy,H=M.T,X=0,H.T>-1&&(X=H.V.T.now()-H.T),J=Qx(J,1,X_(H.S+ X),0),H=M.T,J=Qx(J,5,sL(H.T>-1?H.C+1:H.C),0),J=Qx(J,2,T9(M.C.T.V()),"0"),J=Qx(J,3,T9(M.C.T.C()),"0"),M=Qx(J,4,T9(M.C.T.T()),"0"),J={},M=(J.pf=g.mq(M.T()),J)):M={};g.Ra(T,M);g.Ra(C,N,V,T,p())}])}; lqY=function(){var p=E3Y||FL;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("&")}; G2=function(){var p="youtube.player.web_20250106_01_RC01".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250106_01_RC01".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250106_01_RC01".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250106_01_RC01".match(/_(\d{8})_\d+_RC\d+$/),C;if(((C=p)==null?void 0:C.length)==2)return p[1];p="youtube.player.web_20250106_01_RC01".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}; tZX=function(){return"av.default_js".includes("ima_html5_sdk")?{t8:"ima",Ux:null}:"av.default_js".includes("ima_native_sdk")?{t8:"nima",Ux:null}:"av.default_js".includes("admob-native-video-javascript")?{t8:"an",Ux:null}:"youtube.player.web_20250106_01_RC01".includes("cast_js_sdk")?{t8:"cast",Ux:G2()}:"youtube.player.web_20250106_01_RC01".includes("youtube.player.web")?{t8:"yw",Ux:G2()}:"youtube.player.web_20250106_01_RC01".includes("outstream_web_client")?{t8:"out",Ux:G2()}:"youtube.player.web_20250106_01_RC01".includes("drx_rewarded_web")? {t8:"r",Ux:G2()}:"youtube.player.web_20250106_01_RC01".includes("gam_native_web_video")?{t8:"n",Ux:G2()}:"youtube.player.web_20250106_01_RC01".includes("admob_interstitial_video")?{t8:"int",Ux:G2()}:{t8:"j",Ux:null}}; j0=function(p,C){var V={sv:"966"};pX!==null&&(V.v=pX);V.cb=cE1;V.nas=z2.T.length;V.msg=p;C!==void 0&&(p=ThQ(C))&&(V.e=CX[p]);return V}; Vr=function(p){return v5(p,"custom_metric_viewable")}; ThQ=function(p){var C=Vr(p)?"custom_metric_viewable":p.toLowerCase();return A9(AT,function(V){return V==C})}; MZj=function(){this.T=void 0;this.C=!1;this.V=0;this.S=-1;this.W="tos"}; v3Q=function(p){try{var C=p.split(",");return C.length>g.q$(JEV).length?null:oo(C,function(V,N){N=N.toLowerCase().split("=");if(N.length!=2||m_Q[N[0]]===void 0||!m_Q[N[0]](N[1]))throw Error("Entry ("+N[0]+", "+N[1]+") is invalid.");V[N[0]]=N[1];return V},{})}catch(V){return null}}; Fnv=function(p,C){if(p.T==void 0)return 0;switch(p.W){case "mtos":return p.C?jr(C.T,p.T):jr(C.C,p.T);case "tos":return p.C?Co(C.T,p.T):Co(C.C,p.T)}return 0}; NP=function(p,C,V,N){Ko.call(this,C,N);this.D=p;this.J=V}; Ho=function(){}; Xl=function(p){Ko.call(this,"fully_viewable_audible_half_duration_impression",p)}; dE=function(p){this.T=p}; iu=function(p,C){Ko.call(this,p,C)}; hC=function(p){DA.call(this,"measurable_impression",p)}; sM=function(){dE.apply(this,arguments)}; aq=function(p,C,V){UH.call(this,p,C,V)}; EM=function(p){p=p===void 0?FL:p;L2.call(this,new eh(p,2))}; lu=function(p,C,V){UH.call(this,p,C,V)}; tC=function(p){p=p===void 0?FL:p;L2.call(this,new eh(p,2))}; co=function(){eh.call(this,FL,2,"mraid");this.Wr=0;this.b_=this.sY=!1;this.D=null;this.C=S8s(this.V);this.S.T=new EE(0,0,0,0);this.vr=!1}; To=function(p,C,V){p.D4("addEventListener",C,V)}; ufX=function(p){nh().S=!!p.D4("isViewable");To(p,"viewableChange",SVj);p.D4("getState")==="loading"?To(p,"ready",KnY):D_S(p)}; D_S=function(p){typeof p.C.J9.AFMA_LIDAR==="string"?(p.sY=!0,ZEj(p)):(p.C.compatibility=3,p.D="nc",p.wx("w"))}; ZEj=function(p){p.b_=!1;var C=cs(nh().IN,"rmmt")==1,V=!!p.D4("isViewable");(C?!V:1)&&Yc().setTimeout(Gy(524,function(){p.b_||(U_9(p),p2(540,Error()),p.D="mt",p.wx("w"))}),500); fqS(p);To(p,p.C.J9.AFMA_LIDAR,OE1)}; fqS=function(p){var C=cs(nh().IN,"sneio")==1,V=p.C.J9.AFMA_LIDAR_EXP_1!==void 0,N=p.C.J9.AFMA_LIDAR_EXP_2!==void 0;(C=C&&N)&&(p.C.J9.AFMA_LIDAR_EXP_2=!0);V&&(p.C.J9.AFMA_LIDAR_EXP_1=!C)}; U_9=function(p){p.D4("removeEventListener",p.C.J9.AFMA_LIDAR,OE1);p.sY=!1}; yEH=function(p,C){if(p.D4("getState")==="loading")return new g.Sg(-1,-1);C=p.D4(C);if(!C)return new g.Sg(-1,-1);p=parseInt(C.width,10);C=parseInt(C.height,10);return isNaN(p)||isNaN(C)?new g.Sg(-1,-1):new g.Sg(p,C)}; KnY=function(){try{var p=kc(co);p.D4("removeEventListener","ready",KnY);D_S(p)}catch(C){p2(541,C)}}; OE1=function(p,C){try{var V=kc(co);V.b_=!0;var N=p?new EE(p.y,p.x+p.width,p.y+p.height,p.x):new EE(0,0,0,0);var H=C2(),X=R9();var d=new Tu(H,X,V);d.T=N;d.volume=C;V.tx(d)}catch(a){p2(542,a)}}; SVj=function(p){var C=nh(),V=kc(co);p&&!C.S&&(C.S=!0,V.vr=!0,V.D&&V.wx("w",!0))}; MP=function(){this.isInitialized=!1;this.T=this.C=null;var p={};this.D=(p.start=this.qa,p.firstquartile=this.oe,p.midpoint=this.jo,p.thirdquartile=this.cU,p.complete=this.Ju,p.error=this.Qk,p.pause=this.zm,p.resume=this.pc,p.skip=this.Fo,p.viewable_impression=this.cP,p.mute=this.Oo,p.unmute=this.Oo,p.fullscreen=this.dF,p.exitfullscreen=this.wF,p.fully_viewable_audible_half_duration_impression=this.cP,p.measurable_impression=this.cP,p.abandon=this.zm,p.engagedview=this.cP,p.impression=this.cP,p.creativeview= this.cP,p.progress=this.Oo,p.custom_metric_viewable=this.cP,p.bufferstart=this.zm,p.bufferfinish=this.pc,p.audio_measurable=this.cP,p.audio_audible=this.cP,p);p={};this.J=(p.overlay_resize=this.Xo,p.abandon=this.Uz,p.close=this.Uz,p.collapse=this.Uz,p.overlay_unmeasurable_impression=function(C){return o1(C,"overlay_unmeasurable_impression",R9())},p.overlay_viewable_immediate_impression=function(C){return o1(C,"overlay_viewable_immediate_impression",R9())},p.overlay_unviewable_impression=function(C){return o1(C, "overlay_unviewable_impression",R9())},p.overlay_viewable_end_of_session_impression=function(C){return o1(C,"overlay_viewable_end_of_session_impression",R9())},p); nh().C=3;qVv(this);this.V=null}; JC=function(p,C,V,N){p=p.Y7(null,N,!0,C);p.S=V;BU1([p]);return p}; IqL=function(p,C,V){KSj(C);var N=p.T;g.lr(C,function(H){var X=g.bZ(H.criteria,function(d){var a=v3Q(d);if(a==null)d=null;else if(d=new MZj,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}); xo(X,function(d){return d==null})||ftv(V,new NP(H.id,H.event,X,N))})}; bEj=function(){var p=[],C=nh();p.push(kc(gx));cs(C.IN,"mvp_lv")&&p.push(kc(co));C=[new EM,new tC];C.push(new er(p));C.push(new Lo(FL));return C}; AEs=function(p){if(!p.isInitialized){p.isInitialized=!0;try{var C=C2(),V=nh(),N=Yo();jh=C;V.V=79463069;p.C!=="o"&&(E3Y=You(FL));if(QNu()){QF.T.lB=0;QF.T.qJ=C2()-C;var H=bEj(),X=kc(no);X.C=H;p2L(X,function(){mV()})?QF.done||(hpy(),Pf(X.T.T,p),rx()):N.V?mV():rx()}else vo=!0}catch(d){throw z2.reset(),d; }}}; fX=function(p){QF.C.cancel();Fl=p;QF.done=!0}; OM=function(p){if(p.C)return p.C;var C=kc(no).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}; yr=function(p,C,V){if(p.T==null)return C.wu|=4,!1;p=o3V(p.T,V,C);C.wu|=p;return p==0}; mV=function(){var p=[new Lo(FL)],C=kc(no);C.C=p;p2L(C,function(){fX("i")})?QF.done||(hpy(),rx()):fX("i")}; kiS=function(p,C){if(!p.bx){var V=o1(p,"start",R9());V=p.ir.T(V).T;var N={id:"lidarv"};N.r=C;N.sv="966";pX!==null&&(N.v=pX);gA(V,function(H,X){return N[H]=H=="mtos"||H=="tos"?X:encodeURIComponent(X)}); C=lqY();gA(C,function(H,X){return N[H]=encodeURIComponent(X)}); C="//pagead2.googlesyndication.com/pagead/gen_204?"+QT(Wf(new g9,N));Woe(C);p.bx=!0}}; qP=function(p,C,V){Bp(QF,[p],!R9());Its(p,V);V!=4&&q$H(p.sY,V,p.jQ);return o1(p,C,R9())}; qVv=function(p){aqH(function(){var C=x_u();p.C!=null&&(C.sdk=p.C);var V=kc(no);V.T!=null&&(C.avms=V.T.getName());return C})}; YVy=function(p,C,V,N){var H=gN1(z2,V);H!==null&&H.Zu!==C&&(p.VD(H),H=null);H||(C=p.Y7(V,C2(),!1,C),z2.C.length==0&&(nh().V=79463069),GqX([C]),H=C,H.S=OM(p),N&&(H.l_=N));return H}; zpQ=function(p,C){var V=p[C];V!==void 0&&V>0&&(p[C]=Math.floor(V*1E3))}; x_u=function(){var p=Yo(),C={},V={},N={};return Object.assign({},(C.sv="966",C),pX!==null&&(V.v=pX,V),(N["if"]=p.V?"1":"0",N.nas=String(z2.T.length),N))}; Iq=function(p){Ko.call(this,"audio_audible",p)}; bu=function(p){DA.call(this,"audio_measurable",p)}; AC=function(){dE.apply(this,arguments)}; oq=function(){}; Rpa=function(p){this.T=p}; o3V=function(p,C,V){p=p.C();if(typeof p==="function"){var N={};var H={};N=Object.assign({},pX!==null&&(N.v=pX,N),(H.sv="966",H.cb=cE1,H.e=n3H(C),H));H=o1(V,C,R9());g.Ra(N,H);V.VQ[C]=H;N=V.qR()==2?g79(N).join("&"):V.ir.T(N).T;try{return p(V.Zu,N,C),0}catch(X){return 2}}else return 1}; n3H=function(p){var C=Vr(p)?"custom_metric_viewable":p;p=A9(AT,function(V){return V==C}); return CX[p]}; kI=function(){MP.call(this);this.Y=null;this.W=!1;this.S="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; epv=function(p,C,V){V=V.opt_configurable_tracking_events;p.T!=null&&Array.isArray(V)&&IqL(p,V,C)}; Ppj=function(p,C,V){var N=YC(z2,C);N||(N=V.opt_nativeTime||-1,N=JC(p,C,OM(p),N),V.opt_osdId&&(N.l_=V.opt_osdId));return N}; w2H=function(p,C,V){var N=YC(z2,C);N||(N=JC(p,C,"n",V.opt_nativeTime||-1));return N}; $_X=function(p,C){var V=YC(z2,C);V||(V=JC(p,C,"h",-1));return V}; Lns=function(p){nh();switch(OM(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}; Qsy=function(p,C,V,N){V=V===void 0?{}:V;var H={};g.Ra(H,{opt_adElement:void 0,opt_fullscreen:void 0},V);var X=p.nG(C,V);V=X?X.ir:p.Tc();if(H.opt_bounds)return V.T(j0("ol",N));if(N!==void 0)if(ThQ(N)!==void 0)if(vo)p=j0("ue",N);else if(AEs(p),Fl=="i")p=j0("i",N),p["if"]=0;else if(C=p.nG(C,H)){b:{Fl=="i"&&(C.Jx=!0);X=H.opt_fullscreen;X!==void 0&&a1(C,!!X);var d;if(X=!Yo().C)(X=Dv(g.f0(),"CrKey")&&!(Dv(g.f0(),"CrKey")&&Dv(g.f0(),"SmartSpeaker"))||Dv(g.f0(),"PlayStation")||Dv(g.f0(),"Roku")||bJL()||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&&(Yc(),X=De(zu)===0);if(d=X){switch(C.qR()){case 1:kiS(C,"pv");break;case 2:p.Qh(C)}fX("pv")}X=N.toLowerCase();if(d=!d)d=cs(nh().IN,"ssmol")&&X==="loaded"?!1:g.W5(g3a,X);if(d&&C.hB==0){Fl!="i"&&(QF.done=!1);d=H!==void 0?H.opt_nativeTime:void 0;a9=d=typeof d==="number"?d:C2();C.kR=!0;var a=R9();C.hB=1;C.kN={};C.kN.start=!1;C.kN.firstquartile= !1;C.kN.midpoint=!1;C.kN.thirdquartile=!1;C.kN.complete=!1;C.kN.resume=!1;C.kN.pause=!1;C.kN.skip=!1;C.kN.mute=!1;C.kN.unmute=!1;C.kN.viewable_impression=!1;C.kN.measurable_impression=!1;C.kN.fully_viewable_audible_half_duration_impression=!1;C.kN.fullscreen=!1;C.kN.exitfullscreen=!1;C.rl=0;a||(C.zp().J=d);Bp(QF,[C],!a)}(d=C.Qs[X])&&mO(C.BR,d);cs(nh().IN,"fmd")||g.W5(WnS,X)&&C.d9&&C.d9.C(C,null);switch(C.qR()){case 1:var E=Vr(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),cs(nh().IN,"fmd")&&g.W5(WnS,X)&&C.d9&&C.d9.C(C,null),N!==void 0)){H=j0(void 0,X);g.Ra(H,N);N=H;break b}N=void 0}C.hB==3&&p.VD(C);p=N}else p=j0("nf",N);else p=void 0;else vo?p=j0("ue"):X?(p=j0(),g.Ra(p,A$s(X,!0,!1,!1))):p=j0("nf");return typeof p==="string"?V.T():V.T(p)}; rEy=function(p,C){C&&(p.S=C)}; Bhe=function(p){var C={};return C.viewability=p.T,C.googleViewability=p.C,C}; GiX=function(p,C,V){V=V===void 0?{}:V;p=Qsy(kc(kI),C,V,p);return Bhe(p)}; xI=function(p,C){if(!C)return p;C.indexOf("&")===0&&(C=C.substring(1));var V=/[?&]adurl=([^&]*)/.exec(p);return V?""+p.slice(0,V.index+1)+C+"&"+p.slice(V.index+1):""+p+(p.indexOf("?")===-1?"?":"&")+C}; ps1=function(p){var C=p.url;p=p.FPr;this.V=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.C=V}}; CZe=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}; V1a=function(p,C,V,N,H){var X=window,d=V?"//pagead2.googlesyndication.com/bg/"+HG(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=QW(V).createElement("SCRIPT");C.type="text/javascript";C.async=!0;p=hv1(joQ,HG(p)+".js");g.Bn(C,p);(X=(X.GoogleTyFxhYEET||{})[C.src])?X():V.getElementsByTagName("head")[0].appendChild(C)}; NTY=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=HhS();p=p===void 0?"bevasrsg":p;return new Promise(function(C){var V=window===window.top?window:NTY()?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))}))})}; Xss=function(p){var C={c:p.Ou,e:p.AA,mc:p.jf,me:p.XH};p.gi&&(C.co={c:p.gi.ZU,a:p.gi.PW,s:p.gi.Px});return C}; Rq=function(p){g.z.call(this);this.wpc=p}; YI=function(p){g.z.call(this);var C=this;this.o6=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.Ln=this.o6.p;this.S=this.Im.bind(this);this.addOnDisposeCallback(function(){return void dkY(C)})}; ihu=function(p){var C;return g.I(function(V){if(V.C==1){if(!p.o6.wpc)throw new U$(30,"NWA");return p.C?V.return(p.C):g.y(V,p.o6.wpc(),2)}C=V.T;p.C=new Rq(C);return V.return(p.C)})}; dkY=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)}; aee=function(p){if(g.FG(g.Xn(p)))return!1;if(p.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var C=new g.Ff(p)}catch(V){return g.L0(huS,function(N){return p.search(N)>0})!=null}return C.Y.match(soV)?!0:g.L0(huS,function(V){return p.match(V)!=null})!=null}; g.nX=function(p,C){return p.replace(EcX,function(V,N){try{var H=g.k5(C,N);if(H==null||H.toString()==null)return V;H=H.toString();if(H==""||!g.FG(g.Xn(H)))return encodeURIComponent(H).replace(/%2C/g,",")}catch(X){}return V})}; ley=function(p,C){return Object.is(p,C)}; t1a=function(p){var C=e0;e0=p;return C}; cUV=function(p){if(p.GS!==void 0){var C=Po;Po=!0;try{for(var V=g.F(p.GS),N=V.next();!N.done;N=V.next()){var H=N.value;H.Vl||(p=void 0,H.Vl=!0,cUV(H),(p=H.gT)==null||p.call(H,H))}}finally{Po=C}}}; TT1=function(){var p;return((p=e0)==null?void 0:p.ow)!==!1}; JUX=function(p,C,V){M1V(p);if(p.GS.length===0&&p.TU!==void 0)for(var N=0;N0}; mke=function(p){p.TU!=null||(p.TU=[]);p.Ra!=null||(p.Ra=[]);p.fl!=null||(p.fl=[])}; M1V=function(p){p.GS!=null||(p.GS=[]);p.uN!=null||(p.uN=[])}; FgV=function(p){function C(){if(Po)throw Error("");if(e0!==null){var N=e0.e8++;mke(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)}; xkY=function(p,C){var V=!g.aL(p,C);g.Tz(p,C,V)}; g.M8=function(){g.im.call(this);this.T=0;this.endTime=this.startTime=null}; Yhs=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.Sh(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]}; zu9=function(p,C,V,N){return new Jk(p,C,{opacity:V},{opacity:N},{property:"opacity",duration:C,timing:"ease-in",delay:0})}; ncL=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 RuY))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}; euH=function(p){var C=g.xH.CSSStyleDeclaration;return C&&C.prototype&&C.prototype[p]||null}; PZe=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)}; WgH=function(p){if(!p)return"";var C=document.createElement("div").style;wsQ(p).forEach(function(V){var N=g.Vf&&V in $kV?V:V.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");v5(N,"--")||v5(N,"var")||(V=PZe(LgS,p,p.getPropertyValue?"getPropertyValue":"getAttribute",[V])||"",V=ncL(V),V!=null&&PZe(gcY,C,C.setProperty?"setProperty":"setAttribute",[N,V]))}); return C.cssText||""}; wsQ=function(p){g.ea(p)?p=g.p6(p):(p=g.q$(p),g.rY(p,"cssText"));return p}; g.SJ=function(p){var C,V=C=0,N=!1;p=p.split(QoX);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.qB=="function")return new Kg(function(){return p.qB()}); 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=m9(p.T,p.V,C),N=m9(p.V,p.S,C);p=m9(p.S,p.C,C);V=m9(V,N,C);N=m9(N,p,C);return m9(V,N,C)}; pfu=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.z.call(this);this.Y=1;this.V=[];this.S=0;this.T=[];this.C={};this.D=!!p}; j9u=function(p,C,V){g.J8(function(){p.apply(C,V)})}; g.bI=function(p){this.T=p}; Ak=function(p){this.T=p}; Vha=function(p){this.data=p}; N9u=function(p){return p===void 0||p instanceof Vha?p:new Vha(p)}; oL=function(p){this.T=p}; g.H21=function(p){var C=p.creation;p=p.expiration;return!!p&&pg.QL()}; g.kF=function(p){this.T=p}; Xfy=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)}; dKV=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.h9();p=p.mm();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.VB=p;this.un=C;this.Eg=V;this.d0=N;this.OSY=H;this.e7=p&&p.length}; r0=function(p,C){this.kc=p;this.uC=0;this.JV=C}; BF=function(p,C){p.Sq[p.pending++]=C&255;p.Sq[p.pending++]=C>>>8&255}; Gz=function(p,C,V){p.xN>16-V?(p.Ef|=C<>16-p.xN,p.xN+=V-16):(p.Ef|=C<>>=1,V<<=1;while(--C>0);return V>>>1}; s9u=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]=hUs(N[H]++,H))}; aoa=function(p){var C;for(C=0;C<286;C++)p.VV[C*2]=0;for(C=0;C<30;C++)p.VW[C*2]=0;for(C=0;C<19;C++)p.l0[C*2]=0;p.VV[512]=1;p.A2=p.pn=0;p.GA=p.matches=0}; Eos=function(p){p.xN>8?BF(p,p.Ef):p.xN>0&&(p.Sq[p.pending++]=p.Ef);p.Ef=0;p.xN=0}; loL=function(p,C,V){Eos(p);BF(p,V);BF(p,~V);g0.h7(p.Sq,p.window,C,V,p.pending);p.pending+=V}; thX=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.WR[1],p.WR[1]=p.WR[p.BS--],Cd(p,V,1),N=p.WR[1],p.WR[--p.pQ]=d,p.WR[--p.pQ]=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.WR[1]=E++,Cd(p,V,1);while(p.BS>= 2);p.WR[--p.pQ]=p.WR[1];d=C.kc;E=C.uC;N=C.JV.VB;H=C.JV.e7;X=C.JV.un;var l=C.JV.Eg,t=C.JV.OSY,c,T=0;for(c=0;c<=15;c++)p.St[c]=0;d[p.WR[p.pQ]*2+1]=0;for(C=p.pQ+1;C<573;C++){var M=p.WR[C];c=d[d[M*2+1]*2+1]+1;c>t&&(c=t,T++);d[M*2+1]=c;if(!(M>E)){p.St[c]++;var J=0;M>=l&&(J=X[M-l]);var S=d[M*2];p.A2+=S*(c+J);H&&(p.pn+=S*(N[M*2+1]+J))}}if(T!==0){do{for(c=t-1;p.St[c]===0;)c--;p.St[c]--;p.St[c+1]+=2;p.St[t]--;T-=2}while(T>0);for(c=t;c!==0;c--)for(M=p.St[c];M!==0;)N=p.WR[--C],N>E||(d[N*2+1]!==c&&(p.A2+=(c- d[N*2+1])*d[N*2],d[N*2+1]=c),M--)}s9u(V,a,p.St)}; T9S=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.VV[V*2]!==0)return 0;if(p.VV[18]!==0||p.VV[20]!==0||p.VV[26]!==0)return 1;for(V=32;V<256;V++)if(p.VV[V*2]!==0)return 1;return 0}; hp=function(p,C,V){p.Sq[p.FZ+p.GA*2]=C>>>8&255;p.Sq[p.FZ+p.GA*2+1]=C&255;p.Sq[p.Wy+p.GA]=V&255;p.GA++;C===0?p.VV[V*2]++:(p.matches++,C--,p.VV[(j7[V]+256+1)*2]++,p.VW[(C<256?H6[C]:H6[256+(C>>>7)])*2]++);return p.GA===p.He-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.Xt&&(V=p.Xt);V!==0&&(g0.h7(p.output,C.Sq,C.mu,V,p.Nz),p.Nz+=V,C.mu+=V,p.Ae+=V,p.Xt-=V,C.pending-=V,C.pending===0&&(C.mu=0))}; TH=function(p,C){var V=p.nM>=0?p.nM:-1,N=p.IH-p.nM,H=0;if(p.level>0){p.Yt.sB===2&&(p.Yt.sB=JxV(p));ia(p,p.gw);ia(p,p.IV);T9S(p,p.VV,p.gw.uC);T9S(p,p.VW,p.IV.uC);ia(p,p.S$);for(H=18;H>=3&&p.l0[mKX[H]*2+1]===0;H--);p.A2+=3*(H+1)+5+5+4;var X=p.A2+3+7>>>3;var d=p.pn+3+7>>>3;d<=X&&(X=d)}else X=d=N+5;if(N+4<=X&&V!==-1)Gz(p,C?1:0,3),loL(p,V,N);else if(p.strategy===4||d===X)Gz(p,2+(C?1:0),3),cxX(p,tp,c6);else{Gz(p,4+(C?1:0),3);V=p.gw.uC+1;N=p.IV.uC+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.Sq[p.pending++]=C&255}; voL=function(p,C){var V=p.DF,N=p.IH,H=p.eI,X=p.M6,d=p.IH>p.xm-262?p.IH-(p.xm-262):0,a=p.window,E=p.yR,l=p.PK,t=p.IH+258,c=a[N+H-1],T=a[N+H];p.eI>=p.bE&&(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.Sn=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.xm,V;do{var N=p.mz-p.lx-p.IH;if(p.IH>=C+(C-262)){g0.h7(p.window,p.window,C,C,0);p.Sn-=C;p.IH-=C;p.nM-=C;var H=V=p.vu;do{var X=p.head[--H];p.head[H]=X>=C?X-C:0}while(--V);H=V=C;do X=p.PK[--H],p.PK[H]=X>=C?X-C:0;while(--V);N+=C}if(p.Yt.SH===0)break;H=p.Yt;V=p.window;X=p.IH+p.lx;var d=H.SH;d>N&&(d=N);d===0?V=0:(H.SH-=d,g0.h7(V,H.input,H.Y1,d,X),H.state.wrap===1?H.r7=m2(H.r7,V,d,X):H.state.wrap===2&&(H.r7=v6(H.r7,V,d,X)),H.Y1+=d,H.UX+=d,V=d);p.lx+=V;if(p.lx+p.P6>=3)for(N=p.IH-p.P6, p.g7=p.window[N],p.g7=(p.g7<=3&&(p.g7=(p.g7<=3)if(V=hp(p,p.IH-p.Sn,p.bW-3),p.lx-=p.bW,p.bW<=p.By&&p.lx>=3){p.bW--;do p.IH++,p.g7=(p.g7<=3&&(p.g7=(p.g7<4096)&&(p.bW=2));if(p.eI>=3&&p.bW<=p.eI){N=p.IH+p.lx-3;V=hp(p,p.IH-1-p.rS,p.eI-3);p.lx-=p.eI-1;p.eI-=2;do++p.IH<=N&&(p.g7=(p.g7<=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.Yt.Xt===0))return 1}p.P6=0;return C=== 4?(TH(p,!0),p.Yt.Xt===0?3:4):p.GA&&(TH(p,!1),p.Yt.Xt===0)?1:2}; SES=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.Yt.Xt===0))return 1}p.P6=0;return C===4?(TH(p,!0),p.Yt.Xt===0?3:4):p.GA&&(TH(p,!1),p.Yt.Xt===0)?1:2}; DD=function(p,C,V,N,H){this.mw=p;this.g_$=C;this.kkY=V;this.lex=N;this.func=H}; KGY=function(){this.Yt=null;this.status=0;this.Sq=null;this.wrap=this.pending=this.mu=this.P_=0;this.b9=null;this.Pp=0;this.method=8;this.aW=-1;this.yR=this.PH=this.xm=0;this.window=null;this.mz=0;this.head=this.PK=null;this.M6=this.bE=this.strategy=this.level=this.By=this.DF=this.eI=this.lx=this.Sn=this.IH=this.Wn=this.rS=this.bW=this.nM=this.DJ=this.YE=this.Oz=this.vu=this.g7=0;this.VV=new g0.CV(1146);this.VW=new g0.CV(122);this.l0=new g0.CV(78);Eg(this.VV);Eg(this.VW);Eg(this.l0);this.S$=this.IV= this.gw=null;this.St=new g0.CV(16);this.WR=new g0.CV(573);Eg(this.WR);this.pQ=this.BS=0;this.depth=new g0.CV(573);Eg(this.depth);this.xN=this.Ef=this.P6=this.matches=this.pn=this.A2=this.FZ=this.GA=this.He=this.Wy=0}; DKL=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.SH!==0||V.status===666&&C!==4)return a6(p,p.Xt===0?-5:-2);V.Yt=p;var N=V.aW;V.aW=C;if(V.status===42)if(V.wrap===2)p.r7=0,Mv(V,31),Mv(V,139),Mv(V,8),V.b9?(Mv(V,(V.b9.text?1:0)+(V.b9.Kv?2:0)+(V.b9.extra?4:0)+(V.b9.name?8:0)+(V.b9.comment?16:0)),Mv(V,V.b9.time&255),Mv(V,V.b9.time>>8&255),Mv(V,V.b9.time>>16&255),Mv(V,V.b9.time>>24&255),Mv(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),Mv(V,V.b9.os& 255),V.b9.extra&&V.b9.extra.length&&(Mv(V,V.b9.extra.length&255),Mv(V,V.b9.extra.length>>8&255)),V.b9.Kv&&(p.r7=v6(p.r7,V.Sq,V.pending,0)),V.Pp=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.PH-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.r7>>>16),Jp(V,p.r7&65535));p.r7=1}if(V.status===69)if(V.b9.extra){for(H= V.pending;V.Pp<(V.b9.extra.length&65535)&&(V.pending!==V.P_||(V.b9.Kv&&V.pending>H&&(p.r7=v6(p.r7,V.Sq,V.pending-H,H)),la(p),H=V.pending,V.pending!==V.P_));)Mv(V,V.b9.extra[V.Pp]&255),V.Pp++;V.b9.Kv&&V.pending>H&&(p.r7=v6(p.r7,V.Sq,V.pending-H,H));V.Pp===V.b9.extra.length&&(V.Pp=0,V.status=73)}else V.status=73;if(V.status===73)if(V.b9.name){H=V.pending;do{if(V.pending===V.P_&&(V.b9.Kv&&V.pending>H&&(p.r7=v6(p.r7,V.Sq,V.pending-H,H)),la(p),H=V.pending,V.pending===V.P_)){var X=1;break}X=V.PpH&&(p.r7=v6(p.r7,V.Sq,V.pending-H,H));X===0&&(V.Pp=0,V.status=91)}else V.status=91;if(V.status===91)if(V.b9.comment){H=V.pending;do{if(V.pending===V.P_&&(V.b9.Kv&&V.pending>H&&(p.r7=v6(p.r7,V.Sq,V.pending-H,H)),la(p),H=V.pending,V.pending===V.P_)){X=1;break}X=V.PpH&&(p.r7=v6(p.r7,V.Sq,V.pending-H,H));X===0&&(V.status=103)}else V.status= 103;V.status===103&&(V.b9.Kv?(V.pending+2>V.P_&&la(p),V.pending+2<=V.P_&&(Mv(V,p.r7&255),Mv(V,p.r7>>8&255),p.r7=0,V.status=113)):V.status=113);if(V.pending!==0){if(la(p),p.Xt===0)return V.aW=-1,0}else if(p.SH===0&&(C<<1)-(C>4?9:0)<=(N<<1)-(N>4?9:0)&&C!==4)return a6(p,-5);if(V.status===666&&p.SH!==0)return a6(p,-5);if(p.SH!==0||V.lx!==0||C!==0&&V.status!==666){N=V.strategy===2?SES(V,C):V.strategy===3?FG9(V,C):ua[V.level].func(V,C);if(N===3||N===4)V.status=666;if(N===1||N===3)return p.Xt===0&&(V.aW= -1),0;if(N===2&&(C===1?(Gz(V,2,3),pd(V,256,tp),V.xN===16?(BF(V,V.Ef),V.Ef=0,V.xN=0):V.xN>=8&&(V.Sq[V.pending++]=V.Ef&255,V.Ef>>=8,V.xN-=8)):C!==5&&(Gz(V,0,3),loL(V,0,0),C===3&&(Eg(V.head),V.lx===0&&(V.IH=0,V.nM=0,V.P6=0))),la(p),p.Xt===0))return V.aW=-1,0}if(C!==4)return 0;if(V.wrap<=0)return 1;V.wrap===2?(Mv(V,p.r7&255),Mv(V,p.r7>>8&255),Mv(V,p.r7>>16&255),Mv(V,p.r7>>24&255),Mv(V,p.UX&255),Mv(V,p.UX>>8&255),Mv(V,p.UX>>16&255),Mv(V,p.UX>>24&255)):(Jp(V,p.r7>>>16),Jp(V,p.r7&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,Ts:15,doa:8,strategy:0,XC:""},p||{});p.raw&&p.Ts>0?p.Ts=-p.Ts:p.vU&&p.Ts>0&&p.Ts<16&&(p.Ts+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Yt=new uj9;this.Yt.Xt=0;var C=this.Yt;var V=p.level,N=p.method,H=p.Ts,X=p.doa,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 KGY;C.state=E;E.Yt=C;E.wrap=a;E.b9=null;E.PH=H;E.xm=1<>=7;X<30;X++)for(df[X]=d<<7,H=0;H<1<=l.xm&&(C===0&&(Eg(l.head),l.IH=0,l.nM=0,l.P6=0),V=new g0.cA(l.xm),g0.h7(V,X,d-l.xm,l.xm,0),X=V,d=l.xm);V=p.SH;N=p.Y1;H=p.input;p.SH=d;p.Y1=0;p.input=X;for(FC(l);l.lx>=3;){X=l.IH;d=l.lx-2;do l.g7=(l.g7<-9?(0,V[70])((0,V[3])(),V[14],V[51]):(0,V[72])(V[61],V[76]),(0,V[70])((0,V[29])(),V[58],V[60])>(0,V[34])(V[58],V[80]),(0,V[70])((0,V[new Date("1969-12-31T20:00:03.000-04:00")/1E3])(),V[14],V[41])}catch(N){}try{V[44]<=8&&(0,V[37])(((0,V[16])(V[74],V[14]),(0,V[72])(V[24],V[62])),V[31],(0,V[16])(V[46],V[58]),V[64],V[57]),V[0]!==3&&(V[44]>-5?(0,V[41])((((0,V[1])(V[75],V[82]), V[1])(V[75],V[36]),V[30])(V[46],V[39]),V[18],(0,V[73])(V[43],V[72]),V[0],V[6],V[25]):((((0,V[58])(V[1],V[25]),V[32])(V[11],V[43]),V[18])((0,V[32])(V[9],V[25]),V[27],V[15]),V[58])(V[64],V[62]))}catch(N){(0,V[18])((0,V[0])(V[70],V[62]),V[58],V[46],V[15])}try{V[66]>=-5&&(V[20]>6?(0,V[38])((0,V[71])((0,V[30])(),V[62],V[42])>>(0,V[73])(V[26],V[20]),V[32],(0,V[new Date("1969-12-31T12:45:35.000-11:15")/1E3])(V[25],V[76]),V[67],V[59]):((0,V[54])((0,V[13])(),V[83],V[25]),V[37])(V[8])&(0,V[41])(V[67],V[8])<= (0,V[48])(V[17],V[42]))}catch(N){(0,V[10])(V[new Date("1969-12-31T14:45:08.000-09:15")/1E3])}finally{V[17]<6&&((0,V[54])((0,V[51])(),V[83],V[35]),(0,V[54])((0,V[62])(),V[8],V[25]),(((0,V[54])((0,V[new Date("1969-12-31T13:01:02.000-11:00")/1E3])(),V[45],V[35]),V[54])((0,V[13])(),V[83],V[35]),V[41])(V[23],V[8]),1)||(0,V[1])((0,V[24])(V[48],(0,V[18])(V[42],V[28]),(0,V[37])(V[42]),(0,V[36])(V[23],V[1]),V[57],V[42]),V[10],V[65],V[50]),V[31]>5&&(0,V[18])((0,V[10])(V[68],V[13])>>(0,V[new Date("1969-12-31T23:00:18.000-01:00")/ 1E3])((0,V[2])(V[50],V[44]),V[43],(0,V[17])(V[22],V[60]),V[20],V[50]),V[2],(0,V[57])((0,V[26])(V[16],V[17]),V[4],(0,V[45])(),V[50],V[23])&(0,V[10])(V[63],V[32]),V[56],V[11])}try{(V[63]>-5||((0,V[80])(((0,V[53])(V[16],V[6]),V[43])(V[71],V[57]),V[new Date("1970-01-01T08:15:54.000+08:15")/1E3],((0,V[38])(V[76],V[37]),V[46])(V[57],V[82]),V[31],V[60]),(0,V[40])((0,V[26])(V[78],V[82]),V[31],V[85]),0))&&((((0,V[13])((0,V[58])(),V[43],V[81]),V[13])((0,V[10])(),V[4],V[81]),(0,V[18])(V[31],V[43]),V[55])(V[53]), V[13])((0,V[10])(),V[43],V[71])*((0,V[83])(V[43])*(0,V[7])(V[3],V[1])),(V[61]>=2||((0,V[60])(V[65],V[4]),void 0))&&(0,V[18])(V[26],V[53]),V[84]<-1&&(V[35]>=-3||((0,V[64])(V[4],V[45]),null))&&(0,V[83])(V[1]),V[11]<=5&&(0,V[60])(V[25],V[54])}catch(N){((0,V[51])((0,V[48])(),V[81],V[32]),V[56])(V[19],V[42]),(0,V[31])((0,V[45])(V[36],V[4]),V[11],V[54],V[39])}try{V[82]>=-1&&(V[86]<8||((0,V[11])(V[3],V[5]),0))&&(0,V[65])((0,V[23])(),V[56],V[36]),(0,V[54])(V[56]),(0,V[48])(V[37])}catch(N){V[66]>=1&&(V[5]== -6?(0,V[52])(V[6],V[19]):(0,V[25])(V[80],V[19])),V[81]!==-5?(0,V[9])(V[44],V[56]):(0,V[69])(V[29]),V[30]!=8?(0,V[41])(V[40])^(0,V[85])(V[46],V[64]):(0,V[20])((0,V[85])(V[9],V[53]),V[77],(0,V[3])(),V[9],V[19])}}catch(N){return"hbKxRWejTEg_5wBgOP-_w8_"+p}return C.join("")}; wfH=function(p){return p,"Content-Transfer-Encoding"[5+!!p]}; g.I6=function(p){this.name=p}; $KH=function(p){this.aH=yx(p)}; ba=function(p){this.aH=yx(p)}; Ap=function(p){this.aH=yx(p)}; LGj=function(p){this.aH=yx(p)}; o6=function(p){this.aH=yx(p)}; kQ=function(p){this.aH=yx(p)}; xQ=function(p){this.aH=yx(p)}; YQ=function(p){this.aH=yx(p)}; zH=function(p){this.aH=yx(p)}; R6=function(p){this.aH=yx(p)}; P6=function(p){this.aH=yx(p)}; wf=function(p){this.aH=yx(p)}; $Q=function(p){this.aH=yx(p)}; Ld=function(p){this.aH=yx(p)}; gf=function(p){this.aH=yx(p)}; W6=function(p){this.aH=yx(p,500)}; QJ=function(p){this.aH=yx(p)}; rf=function(p){this.aH=yx(p)}; goe=function(p){this.aH=yx(p)}; WGQ=function(){return g.zV("yt.ads.biscotti.lastId_")||""}; Q9V=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}; rxH=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));rxH(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 Cfj(p,C||{},!0)}; Ek=function(p,C){return Cfj(p,C||{},!1)}; Cfj=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.Ia(H,X))H[X]=C[X];return g.BX(p,H)+N}; l1=function(p){if(!C)var C=window.location.href;var V=g.wA(1,p),N=g.$7(p);V&&N?(p=p.match(PX),C=C.match(PX),p=p[3]==C[3]&&p[1]==C[1]&&p[4]==C[4]):p=N?g.$7(C)===N&&(Number(g.wA(4,C))||null)===(Number(g.wA(4,p))||null):!0;return p}; tw=function(p){p||(p=document.location.href);p=g.wA(1,p);return p!==null&&p==="https"}; cd=function(p){p=j1Q(p);return p===null?!1:p[0]==="com"&&p[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; Vry=function(p){p=j1Q(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}; j1Q=function(p){p=g.$7(p);return p!==null?p.split(".").reverse():null}; B9V=function(p){return p&&p.match(Nx9)?p:N$(p)}; Jw=function(p){var C=TQ;p=p===void 0?WGQ():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=D7s(!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=xqQ();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=bhj(E);C=(a.bc=D,a.bih=d.height,a.biw=d.width,a.brdim=X.join(),a.vis=De(C.C),a.wgl=!!FL.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=Hoy;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?FL:N;try{var H=N.history.length}catch(t){H=0}C.u_his=H;var X;C.u_h=(X=FL.screen)==null?void 0:X.height;var d;C.u_w=(d=FL.screen)==null?void 0:d.width;var a;C.u_ah=(a=FL.screen)==null?void 0:a.availHeight;var E;C.u_aw=(E=FL.screen)==null?void 0:E.availWidth;var l;C.u_cd=(l=FL.screen)==null?void 0: l.colorDepth}catch(t){}return C}; dZj=function(){if(!Xpe)return null;var p=Xpe();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=dZj();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",E,!1):l.onreadystatechange=E;g.Zr("debug_forward_web_query_parameters")&&(p=ioX(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=hzL(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}; hzL=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 s11){var d=g.pO(s11[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.$7(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")&&Vry(E))E=eS(g.wA(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.$7(p))C["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(V||!g.$7(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.$7(p)||(C["X-YouTube-Ad-Signals"]= dm(Jw()));return C}; EC9=function(p,C){var V=g.$7(p);g.Zr("debug_handle_relative_url_for_query_forward_killswitch")||!V&&l1(p)&&(V=document.location.hostname);var N=eS(g.wA(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(aAS,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)}; cTH=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=lAY(p,C);var N=tru(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=lAY(p,C);var N=tru(p,C),H=!1,X=TxY(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=Mrs(p,V,E,C.convertToSafeHtml);l&&(l=JT9(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}; lAY=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}; tru=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.$7(p)&&!C.withCredentials&&g.$7(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.Ra(H,X),H=C.postBodyFormat&& C.postBodyFormat==="JSON"?JSON.stringify(H):g.rA(H));X=H||X&&!g.oa(X);!mZV&&X&&C.method!=="POST"&&(mZV=!0,g.Vg(Error("AJAX request with postData should use POST")));return H}; Mrs=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)?vCy(p):null)H={},g.lr(p.getElementsByTagName("*"),function(d){H[d.tagName]=FOY(d)})}N&&SHs(H); return H}; SHs=function(p){if(g.Pv(p))for(var C in p)C==="html_content"||RX1(C,"_html")?p[C]=wV(p[C]):SHs(p[C])}; JT9=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}}; vCy=function(p){return p?(p=("responseXML"in p?p.responseXML:p).getElementsByTagName("root"))&&p.length>0?p[0]:null:null}; FOY=function(p){var C="";g.lr(p.childNodes,function(V){C+=V.nodeValue}); return C}; Aw=function(p,C){var V=g.Y5(C),N;return(new g.DC(function(H,X){V.onSuccess=function(d){g.vd(d)?H(new KOv(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)})).gh(function(H){if(H instanceof yU){var X; (X=N)==null||X.abort()}return U8(H)})}; g.oK=function(p,C,V,N){function H(a,E,l){return a.gh(function(t){if(E<=0||m1(t.xhr)===403)return U8(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.DC(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){Tp.call(this,p+", errorCode="+C);this.errorCode=C;this.xhr=V;this.name="PromiseAjaxError"}; KOv=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,{DN: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)}; DZu=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",{DN:60,Fca:"none",secure:!0}):RK.set("TESTCOOKIESENABLED","1",{DN: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(LJ(p)));return p}; uUs=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")}; Zoe=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()}; UZu=function(){return g.gm("(ps4; leanback shell)")||g.gm("ps4")&&g.Qg()}; g.fAY=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)}; Oou=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 gKY()||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(yTH))&&(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}; qHj=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,IAe):C}; M5=function(p){Tp.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 yU}; TW=function(){Tp.call(this,"Biscotti ID is missing from server")}; boe=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.k5(p,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(qHj(p))return Error("Biscotti id fetching has been disabled for pfl.")}; xZL=function(){var p=boe();if(p!==void 0)return U8(p);Jm||(Jm=Aw("//googleads.g.doubleclick.net/pagead/id",ATv).then(oCH).gh(function(C){return k2S(2,C)})); return Jm}; oCH=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;Q9V(p);Jm=YD(p);YHs(18E5,2);return p}; k2S=function(p,C){C=new M5(C);Q9V("");Jm=xD(C);p>0&&YHs(12E4,p-1);throw C;}; YHs=function(p,C){g.F5(function(){Aw("//googleads.g.doubleclick.net/pagead/id",ATv).then(oCH,function(V){return k2S(C,V)}).gh(g.vX)},p)}; zzQ=function(){try{var p=g.zV("yt.ads.biscotti.getId_");return p?p():xZL()}catch(C){return U8(C)}}; nCS=function(p){p&&(p.dataset?p.dataset[RzS()]="true":b_u(p))}; ezS=function(p){return p?p.dataset?p.dataset[RzS()]:p.getAttribute("data-loaded"):null}; RzS=function(){return PfH.loaded||(PfH.loaded="loaded".replace(/\-([a-z])/g,function(p,C){return C.toUpperCase()}))}; wpj=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;xo(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()}; $ZX=function(p){return g.L0(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(C){return"on"+C.toLowerCase()in p})}; LOa=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 gCQ||(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){}}; WOX=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}}; Q1S=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 A9(Z3,function(H){var X=typeof H[4]==="boolean"&&H[4]==!!N,d=g.Pv(H[4])&&g.Pv(N)&&g.x5(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=Q1S(p,C,V,N);if(H)return H;H=++rTL.count+"";var X=!(C!="mouseenter"&&C!="mouseleave"||!p.addEventListener||"onmouseenter"in document);var d=X?function(a){a=new uO(a);if(!ce(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"),Bxa()||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}; pos=function(p){return G2j(p,function(C){return g.aL(C,"ytp-ad-has-logging-urls")})}; G2j=function(p,C){var V=document.body||document;return g.UB(V,"click",function(N){var H=ce(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?Bxa()||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.g1)(this.Z,this));this.J=g.Se((0,g.g1)(this.a$,this),25)}; I_=function(p){g.z.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}; V0a=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")}; NE1=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.vM=!0}; HXH=function(){Pw.instance||(Pw.instance=new Pw);return Pw.instance}; XoV=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}}; dP9=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 dP9);return w8}; g.LK=function(p,C){return!!((iXy("f"+(Math.floor(C/31)+1))||0)&1<0;)switch(p=cW.shift(),p.type){case "ERROR":ap.Lq(p.payload);break;case "EVENT":ap.logEvent(p.eventType,p.payload)}}; Mp=function(p){T4||(ap?ap.Lq(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?TEH[p]:V;N=N===void 0?M0j[p]:N;H=H===void 0?JCe[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},TEH.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"&&mPH.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",n5: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}})}; vIV=function(p){if(!p)throw Error();throw p;}; FVa=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)}}; SMy=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)}}; KVL=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)})}; DPj=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)}; ulu=function(p){return new Promise(function(C,V){DPj(p,C,V)})}; yl=function(p){return new g.f3(new U2(function(C,V){DPj(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()}))}; ZXe=function(p,C){this.request=p;this.cursor=C}; UPv=function(p){return yl(p).then(function(C){return C?new ZXe(p,C):null})}; g.fKs=function(p){p.cursor.continue(void 0);return UPv(p.request)}; OXH=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=yCe(Z,N);return g.y(D,Z,7);case 7:return t=D.T,c=Math.round((0,g.Ip)()),qMX(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)qMX(p,E,M,d,J,C.join(),H),a=J;D.EY(2);break;case 4:return D.return(Promise.reject(a))}})}; qMX=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),IKH(p,!1,N,X,C,d.tag),Mp(H)):IKH(p,!0,N,X,C, d.tag)}; IKH=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})}; bXY=function(p,C){return g.n3(p,{query:C},function(V){return V.delete().then(function(){return g.e_(V)})}).then(function(){})}; ACa=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})}; ko1=function(p){return"getAllKeys"in IDBObjectStore.prototype?yl(p.T.getAllKeys(void 0,void 0)):oI9(p)}; oI9=function(p){var C=[];return g.xPH(p,{query:void 0},function(V){C.push(V.cursor.primaryKey);return g.fKs(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.xPH=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 UPv(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)}; RFX=function(p,C,V){return new Promise(function(N,H){function X(){T||(T=new OXH(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.wRn,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()})})}; nIa=function(p,C,V){V=V===void 0?{}:V;return RFX(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,ulu(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}; eFa=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()}; Puu=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))})}; wo1=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)})}; $P1=function(p,C){return wo1(function(V){return V.publicName===p&&V.userIdentifier!==void 0},C)}; LVe=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,Puu(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)}})}; gIH=function(){if(C5!==void 0)return C5;T4=!0;return C5=LVe().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):gIH().then(function(C){(C=C?p5:void 0)&&g.YH("ytglobal.idbToken_",C);return C})}; WV1=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}}; QqX=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}:WV1(p);g.vv(t,3);return g.y(t,Puu(E,d),5);case 5:return g.y(t,nIa(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;}})}; rCy=function(p,C,V){V=V===void 0?{}:V;return QqX(p,C,!1,V)}; BEV=function(p,C,V){V=V===void 0?{}:V;return QqX(p,C,!0,V)}; GoX=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=WV1(p);return g.y(H,L3(N.actualName,C),3)}return g.y(H,rq(N.actualName,V),0)})}; pFQ=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(){})}; CIv=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,$P1(p,V),3)}N=H.T;return g.y(H,pFQ(N,C,V),0)})}; jLL=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)}; VJs=function(p,C){var V;return function(){V||(V=new Ne(p,C));return V}}; g.HC=function(p,C){return VJs(p,C)}; XD=function(p){return g.WW(N0y(),p)}; Hgv=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)}})}; XFY=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)}})}; d8Q=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)})}; igY=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)})}; hoV=function(){return g.I(function(p){return g.y(p,CIv("ytGcfConfig"),0)})}; dy=function(){g.z.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))}; K5=function(){var p=this;this.W=!1;this.V=this.S=0;this.Y=new dy;this.VZ={h2x:function(){p.W=!0}, eNS:function(){return p.T}, Hwa:function(C){iR(p,C)}, i6:function(C){p.i6(C)}, WP$:function(C){hN(p,C)}, K_:function(){return p.coldHashData}, dU:function(){return p.hotHashData}, drn:function(){return p.C}, KFV:function(){return sX()}, g$x:function(){return ax()}, lIa:function(){return g.zV("yt.gcf.config.coldHashData")}, Oto:function(){return g.zV("yt.gcf.config.hotHashData")}, j0_:function(){sLV(p)}, En_:function(){p.i6(void 0);me(p);delete K5.instance}, Gfa:function(C){p.V=C}, Drr:function(){return p.V}}}; aJS=function(){if(!K5.instance){var p=new K5;K5.instance=p}return K5.instance}; tJy=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,sLV(p)):(EFV(p),lJH(p)));return g.Zr("delete_gcf_config_db")?g.y(V,hoV(),0):V.EY(0)})}; Dh=function(){var p;return(p=ax())!=null?p:g.pO("RAW_HOT_CONFIG_GROUP")}; ckL=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,igY(V),3);case 3:if((X=a.T)&&X.timestamp>N)return iR(p,X.config),p.i6(X.hashData),a.return(ax());case 2:lJH(p);if(!(V&&p.C&&p.hotHashData)){a.EY(4);break}return g.y(a,Hgv(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)))}})}; MJs=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,d8Q(V),3);case 3:if((X=a.T)&&X.timestamp>N)return hN(p,X.config),T0a(p,X.configData),me(p,X.hashData),a.return(sX());case 2:EFV(p);if(!(V&&p.T&&p.coldHashData&&p.configData)){a.EY(4);break}return g.y(a,XFY(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)))}})}; sLV=function(p){if(!p.C||!p.T){if(!jV()){var C=g.Z1("scheduleGetConfigs");Hd(C)}p.S||(p.S=g.rE.YN(function(){return g.I(function(V){switch(V.C){case 1:return g.vv(V,2),g.y(V,ckL(p),4);case 4:g.Fe(V,3);break;case 2:g.Sa(V);case 3:return g.vv(V,5),g.y(V,MJs(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))}}; Jku=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.i6(C);N=jV();if(!N){d.EY(3);break}if(V){d.EY(4);break}return g.y(d,igY(N),5);case 5:H=d.T,V=(X=H)==null?void 0:X.config;case 4:return g.y(d,Hgv(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)}})}; m8Y=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);me(p,C);return(N=jV())?V?a.EY(4):g.y(a,d8Q(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,XFY(V,C,d,N),0)})}; vFX=function(){var p=aJS(),C=(0,g.Ip)()-p.V;if(!(p.V!==0&&C0&&(C.request={internalExperimentFlags:V});Sd1(p,void 0,C);KlQ(void 0,C);D8H(void 0,C);uV1(p,void 0,C);ZgX(void 0,C);g.Zr("start_client_gcf")&&U8v(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}; Sd1=function(p,C,V){p=p.cF;if(p==="WEB"||p==="MWEB"||p===1||p===2)if(C){V=dC(C,Ap,96)||new Ap;var N=ez();N=Object.keys(fJa).indexOf(N);N=N===-1?null:N;N!==null&&v4(V,3,N);iB(C,Ap,96,V)}else V&&(V.client.mainAppWebInfo=(N=V.client.mainAppWebInfo)!=null?N:{},V.client.mainAppWebInfo.webDisplayMode=ez())}; KlQ=function(p,C){var V=g.zV("yt.embedded_player.embed_url");V&&(p?(C=dC(p,zH,7)||new zH,JP(C,4,V),iB(p,zH,7,C)):C&&(C.thirdParty={embedUrl:V}))}; D8H=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?z9(p,95,T9(V*1E6)):C&&(C.client.memoryTotalKbytes=""+V*1E6)}}; uV1=function(p,C,V){if(p.appInstallData)if(C){var N;V=(N=dC(C,ba,62))!=null?N:new ba;JP(V,6,p.appInstallData);iB(C,ba,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},V.client.configInfo.appInstallData=p.appInstallData)}; ZgX=function(p,C){var V=aKa();V&&(p?v4(p,61,OgH[V]):C&&(C.client.connectionType=V));g.Zr("web_log_effective_connection_type")&&(V=lK1())&&(p?v4(p,94,yk1[V]):C&&(C.client.effectiveConnectionType=V))}; qdu=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.Tj||g.pO("AUTHORIZATION");C||(p?C="Bearer "+g.zV("gapi.auth.getToken")().access_token:(p=HXH().G1(UX),g.Zr("pageid_as_header_web")||delete p["X-Goog-PageId"],N=Object.assign({},N,p)));C&&(N.Authorization=C);return N}; U8v=function(p,C){var V=vFX();if(V){var N=V.coldConfigData,H=V.coldHashData;V=V.hotHashData;if(p){var X;C=(X=dC(p,ba,62))!=null?X:new ba;N=JP(C,1,N);JP(N,3,H).i6(V);iB(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))}}; f5=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)}; AkX=function(p){var C=IJa,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.Z4){var l=new a;a.Z4=l.version}var t=a.Z4}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)}},bgs[C.toString()]?g.X2()?g.rE.YN(d):g.F5(d,0):d())}); bR[N]=!0;AN[C.toString()]||(AN[C.toString()]=[]);AN[C.toString()].push(N);return N}; x8L=function(){var p=oFv,C=AkX(function(V){p.apply(void 0,arguments);kzQ(C)}); return C}; kzQ=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()PIu||d=gFj&&($p++,g.Zr("abandon_compression_after_N_slow_zips")?wy===g.Uk("compression_disable_point")&&$p>WlY&&(n5=!1):n5=!1);QLQ(C);N.headers||(N.headers={});N.headers["Content-Encoding"]="gzip";N.postBody=p;N.postParams=void 0;H(V,N)}; rkL=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=eoj(d);if(a!=null&&(a>PIu||a=gFj)if($p++,g.Zr("abandon_compression_after_N_slow_zips")||g.Zr("abandon_compression_after_N_slow_zips_lr")){C=$p/wy;var l=WlY/g.Uk("compression_disable_point");wy>0&&wy%g.Uk("compression_disable_point")===0&&C>=l&&(n5=!1)}else n5=!1;QLQ(H)}}p.headers=Object.assign({},{"Content-Encoding":"gzip"},p.headers||{});p.body=X;return p}catch(t){return Hd(t),p}}else return p}; eoj=function(p){try{return(new Blob(p.split(""))).size}catch(C){return Hd(C),null}}; QLQ=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.Jj=this.T=!1;this.potentialEsfErrorCounter=this.C=0;this.handleError=function(){}; this.eB=function(){}; this.now=Date.now;this.Zj=!1;this.VZ={N2x:function(t){C.RI=t}, X8_:function(){C.Bx()}, kF:function(){C.GG()}, Zb:function(t){return g.I(function(c){return g.y(c,C.Zb(t),0)})}, J3:function(t,c){return C.J3(t,c)}, jG:function(){C.jG()}}; var V;this.fY=(V=p.fY)!=null?V:100;var N;this.Dn=(N=p.Dn)!=null?N:1;var H;this.Lc=(H=p.Lc)!=null?H:2592E6;var X;this.uR=(X=p.uR)!=null?X:12E4;var d;this.Yv=(d=p.Yv)!=null?d:5E3;var a;this.RI=(a=p.RI)!=null?a:void 0;this.vt=!!p.vt;var E;this.Z8=(E=p.Z8)!=null?E:.1;var l;this.N9=(l=p.N9)!=null?l:10;p.handleError&&(this.handleError=p.handleError);p.eB&&(this.eB=p.eB);p.Zj&&(this.Zj=p.Zj);p.Jj&&(this.Jj=p.Jj);this.OY=p.OY;this.lX=p.lX;this.Yq=p.Yq;this.Id=p.Id;this.sendFn=p.sendFn;this.AJ=p.AJ;this.aM= p.aM;L5(this)&&(!this.OY||this.OY("networkless_logging"))&&B0L(this)}; B0L=function(p){L5(p)&&!p.Zj&&(p.T=!0,p.vt&&Math.random()<=p.Z8&&p.Yq.Cu(p.RI),p.jG(),p.Id.xq()&&p.Bx(),p.Id.listen(p.AJ,p.Bx.bind(p)),p.Id.listen(p.aM,p.GG.bind(p)))}; Caa=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=Gze(X);(a=p6X(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.N9)){t.EY(2);break}if(!p.Id.TX){t.EY(3);break}return g.y(t,p.Id.TX(),3);case 3:if(p.Id.xq()){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.Yq.cN(C.id,p.RI,!1),6);case 6:return t.return();case 2:if(p.OY&&p.OY("nwl_consider_error_code")&&!d&&p.potentialEsfErrorCounter>p.N9)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}; p6X=function(p){var C;p=p==null?void 0:(C=p.error)==null?void 0:C.code;return!(p!==400&&p!==415)}; j69=function(){if(Qt)return Qt();var p={};Qt=g.HC("LogsDatabaseV2",{MS:(p.LogsRequestsStore={Ck: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(j69(),p)}; NfQ=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)();V7y(V);return d.return(X)})}; Hd9=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)();V7y(V);return t.return(l)})}; 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(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})})}))})}; dvs=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)})}))})}; idY=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))})}; hi1=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)})}; s6H=function(){g.I(function(p){return g.y(p,CIv("LogsDatabaseV2"),0)})}; V7y=function(p){g.Zr("nwl_csi_killswitch")||ox("networkless_performance",p,{sampleRate:1})}; EQX=function(p){return g.WW(aDa(),p)}; lD9=function(p){var C,V;g.I(function(N){if(N.C==1)return g.y(N,EQX(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)})}; t7y=function(p){var C;return g.I(function(V){if(V.C==1)return g.y(V,EQX(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())g.Zr("web_ping_scrub_referrer_using_img")?(Hd(new g.Bw("Legacy referrer-scrubbed ping detected")),p&&cpY(p,void 0,{scrubReferrer:!0})):p&&(p=g.ke(g.zN(p)),p===O_1.toString()||p.startsWith("data")?p="":(p=$e(LG(p)).toString(),p=g.VW(g.Y7(p))),g.FG(p)||(p=XQ("IFRAME",{src:'javascript:""',style:"display:none"}),WG(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 ps1({url:p});if(a.S)var E=typeof a.C!=="string"||a.C.length===0?null:{version:3,Ku:a.C,Xw:xI(a.V,"&act=1&ri=1"+CZe(a))};else if(a.W){var l=a.V;var t=/[?&]suid=/.test(l)?l:xI(l,"&suid="+(Date.now()-(new Date("2024-01-01T00:00:00Z")).getTime()));E={version:4,Ku:xI(t,"&dct=1"),Xw:xI(t,"&act=1&ri=1")}}else E=null;if(E){var c=eS(g.wA(5,p));var T=!(!c||!c.endsWith("/aclk")||pN(p,"ri")!=="1"); break b}}catch(M){}T=!1}T?Tfu(p)?(C&&C(),V=!0):V=!1:V=!1;V||cpY(p,C)}}; Tfu=function(p,C){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(p,C===void 0?"":C))return!0}catch(V){}return!1}; cpY=function(p,C,V){V=V===void 0?{}:V;var N=new Image,H=""+M7Y++;G1[H]=N;N.onload=N.onerror=function(){C&&G1[H]&&C();delete G1[H]}; V.scrubReferrer&&(N.referrerPolicy="no-referrer");N.src=p}; Jpa=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}; mvL=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.im.call(this);var p=this;this.C=!1;this.T=IeS();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)}}})}; vQu=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.im.call(this);var C=this;this.T=this.S=0;this.C=vQu();var V=g.zV("yt.networkStatusManager.instance.listen").bind(this.C);V&&(p.rateLimit?(this.rateLimit=p.rateLimit,V("networkstatus-online",function(){F2v(C,"publicytnetworkstatus-online")}),V("networkstatus-offline",function(){F2v(C,"publicytnetworkstatus-offline")})):(V("networkstatus-online",function(){C.dispatchEvent("publicytnetworkstatus-online")}),V("networkstatus-offline",function(){C.dispatchEvent("publicytnetworkstatus-offline")})))}; F2v=function(p,C){p.rateLimit?p.T?(g.rE.bf(p.S),p.S=g.rE.YN(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({J6V:!0,yFr:!0}));p.call(gy,this,{Yq:{Cu:hi1,MP:idY,Oe:Hd9,BVa:X6X,cN:dvs,set:NfQ},Id: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)}, eB:Hd,sendFn:SgH,now:g.Ip,v7:mvL,lX:g.HW(),AJ:"publicytnetworkstatus-online",aM:"publicytnetworkstatus-offline",vt:!0,Z8:.1,N9:g.Uk("potential_esf_error_limit",10),OY:g.Zr,Zj:!(g.p3()&&g.$7(document.location.toString())!=="www.youtube-nocookie.com")});this.V=new g.u3;g.Zr("networkless_immediately_drop_all_requests")&&s6H();jLL("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.RI=C;B0L(p);p.V.resolve();p.vt&&Math.random()<=p.Z8&&p.RI&&lD9(p.RI);g.Zr("networkless_immediately_drop_sw_health_store")&&K2a(p)})); return p}; K2a=function(p){var C;g.I(function(V){if(!p.RI)throw C=g.Z1("clearSWHealthLogsDb"),C;return V.return(t7y(p.RI).catch(function(N){p.handleError(N)}))})}; SgH=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")&&DvQ(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}; DvQ=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:Fl9()&&(this.config_=g.uR())}; 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_.dQ;d&&(V=d);d=p.config_.j7||!1;var a=qdu(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")&&uCy.isNwlInitialized?gIH().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}; Zd1=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}; fDS=function(p){var C=g.EI();if(C)if(C.clear(p),p)UvH(p);else for(var V in cl)UvH(V)}; g.EI=function(){return g.xH.ytPubsubPubsubInstance}; UvH=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){Odj(p,C,V===void 0?null:V)}; Odj=function(p,C,V){V=V===void 0?null:V;var N=ypV(p),H=document.getElementById(N),X=H&&ezS(H),d=H&&!X;X?C&&C():(C&&(X=g.T7(N,C),C=""+g.LY(C),qgS[C]=X),d||(H=IDe(p,N,function(){ezS(H)||(nCS(H),g.J3(N),g.F5(function(){fDS(N)},0))},V)))}; IDe=function(p,C,V,N){N=N===void 0?null:N;var H=g.dW("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.Bn(H,g.yJ(p));p=document.getElementsByTagName("head")[0]||document.body;p.insertBefore(H,p.firstChild);return H}; ypV=function(p){var C=document.createElement("a");g.nH(C,p);p=C.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+dI(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.q$(p).length!=g.q$(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]=[]);bdL(p[V],C[V])}else p[V]=C[V];return p}; bdL=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(bdL([],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.z.call(this);this.C=p}; Z9=function(p){uV.call(this,!0);this.T=p}; ApL=function(p,C){g.z.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.g1)(p,C);this.T=new g.N8(function(){return N(V.a$)},300); g.R(this,this.T);this.Z=this.J=Infinity}; oQH=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.e0!==void 0)var H=N.e0;else if(N.iOe)H=N[xJ]?ziu(p,N[xJ],V):[],H=N.iOe.apply(N,g.K(H));else if(N.nH){H=N.nH;var X=H[xJ]?ziu(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.gnr||p.C.set(C,H); return H}; ziu=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 YgL);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:HT(C,"unknown trace type")}}; Ria=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:HT(C,"unknown trace type")}}; nQS=function(p){var C,V;(V=(C=window).onerror)==null||V.call(C,p.message,"",0,0,p)}; eiY=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.u3;this.T=p;for(p={OC:0};p.OC=1E3?X():H>=p?tG||(tG=cQ(function(){X();tG=void 0},0)):d-E>=10&&(XdH(V,N.tier),a.S=d)}; C1v=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=BfH(p.payload)||"";C&&(EK=new C);return new g.DC(function(X,d){EK&&EK.isReady()?Tj(N,EK,X,d,{bypassNetworkless:!0},!0,sK(H)):X()})}}; NmY=function(p,C,V){if(C.endpoint==="log_event"){d7(void 0,C);var N=iz(C,!0),H=new Map;H.set(N,[wC(C.payload)]);V&&(EK=new V);return new g.DC(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&&Cy(N,2,JG,mK(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.DC(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")?dU1(H,X,p,C,V,300,a):dU1(H,X,p,C,V,N,a):(XdH(V,N),H())})}; dU1=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)}}; XdH=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===iOj||N===hrH?5E3:sKQ;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=ar9);H=cQ(function(){g.Uk("gel_min_batch_size")>0?HQ().getSequenceCount({cttAuthInfo:void 0,isJspb:p,tier:C})>=EDL&&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=lrH(d);p=g.F(p);var t=p.next();for(d={};!t.done;d={ZG:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,qM:void 0,v2:void 0},t=p.next()){var c=g.F(t.value);t=c.next().value;c=c.next().value;d.batchRequest=g.zh({context:g.Zh(C.config_||g.uR())});if(!g.ea(c)&&!g.Zr("throw_err_when_logevent_malformed_killswitch")){N();break}d.batchRequest.events=c;(c=vQ[t])&&tev(d.batchRequest,t,c);delete vQ[t];d.dangerousLogToVisitorSession= t==="visitorOnlyApprovedKey";cwv(d.batchRequest,a,d.dangerousLogToVisitorSession);Tm1(H);d.qM=function(T){g.Zr("start_client_gcf")&&g.rE.YN(function(){return g.I(function(M){return g.y(M,Mea(T),0)})}); E--;E||V()}; d.ZG=0;d.v2=function(T){return function(){T.ZG++;if(H.bypassNetworkless&&T.ZG===1)try{g.ah(C,l,T.batchRequest,Km({writeThenSend:!0},T.dangerousLogToVisitorSession,T.qM,T.v2,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.qM,d.v2,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 goe;var T=C.config_||g.uR(),M=new wf,J=new o6;JP(J,1,T.Zz);JP(J,2,T.MJ);v4(J,16,T.oB);JP(J,17,T.innertubeContextClientVersion);if(T.Hu){var S=T.Hu,D=new ba;S.coldConfigData&&JP(D,1,S.coldConfigData);S.appInstallData&&JP(D,6,S.appInstallData);S.coldHashData&&JP(D,3,S.coldHashData);S.hotHashData&& D.i6(S.hotHashData);iB(J,ba,62,D)}(S=g.xH.devicePixelRatio)&&S!=1&&z9(J,65,X_(S));S=fO();S!==""&&JP(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}; tev=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&&zre(p,C,X)}else zre(p,C)}; zre=function(p,C,V){p=RrQ(p);C=C?g.rA(C):"";V=V||5;d8()&&g.nO(p,C,V)}; RrQ=function(p){for(var C=g.F(nDL),V=C.next();!V.done;V=C.next())p=CN(p,V.value);return"ST-"+dI(p).toString(36)}; erj=function(p){if(p.name==="JavaException")return!0;p=p.stack;return p.includes("chrome://")||p.includes("chrome-extension://")||p.includes("moz-extension://")}; P19=function(){this.EK=[];this.XU=[]}; xG=function(){if(!kG){var p=kG=new P19;p.XU.length=0;p.EK.length=0;wdj(p,$UX)}return kG}; wdj=function(p,C){C.XU&&p.XU.push.apply(p.XU,C.XU);C.EK&&p.EK.push.apply(p.EK,C.EK)}; L1V=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=L1V(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(!(W1Q>=5)){H=QK9;var X=oKs(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.XU);for(d=H.next();!d.done;d=H.next())if(d=d.value,V.message&&V.message.match(d.jt)){p=d.weight;break a}p=g.F(p.EK);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(rwu);for(H=p.next();!H.done;H=p.next())if(H=H.value,H.rr[V.name])for(a=g.F(H.rr[V.name]),d=a.next();!d.done;d=a.next())if(c=d.value,d=V.message.match(c.Bz)){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.bZ(N,function(t){return t.getAsJson()})}; C==="UNDEFINED_CSN"?Ny("visualElementAttached",X,V):p?fm("visualElementAttached",V,p,X):g.t1("visualElementAttached",V,X)}; ElQ=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)}; l3H=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)}; tzY=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)}; cmV=function(){var p=f1(16);for(var C=[],V=0;V0&&V.push(g.dW("BR"));V.push(g.iK(X))}):V.push(g.iK(N))}return V}; mz=function(p,C,V,N){if(V==="child"){g.so(C);var H;N===void 0?H=void 0:H=!Array.isArray(N)||N&&typeof N.L==="string"?[N]:N;V=MzQ(p,H);V=g.F(V);for(p=V.next();!p.done;p=V.next())C.appendChild(p.value)}else V==="style"?g.Sh(C,"cssText",N?N:""):N===null||N===void 0?C.removeAttribute(V):(p=N.toString(),V==="href"&&(p=g.ke(g.zN(p))),C.setAttribute(V,p))}; g.w=function(p){g.My.call(this,p);this.n4=!0;this.Y=!1;this.listeners=[]}; g.va=function(p){g.w.call(this,p);this.R$=new g.ca;g.R(this,this.R$)}; Fi=function(p,C,V,N,H,X,d){d=d===void 0?null:d;g.va.call(this,C);this.api=p;this.macros={};this.componentType=V;this.D=this.J=null;this.F$=d;this.layoutId=N;this.interactionLoggingClientData=H;this.KS=X;this.l_=null;this.Tg=new Z9(this.element);g.R(this,this.Tg);this.Mo=this.U(this.element,"click",this.onClick);this.Vn=[];this.sY=new ApL(this.onClick,this);g.R(this,this.sY);this.bx=!1;this.Wr=this.a$=null}; Sp=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.Xn(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}; Jm9=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.Xn(p.thumbnails[0].url):""}; m5L=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.Sg(p.thumbnails[0].width||0,p.thumbnails[0].height||0):new g.Sg(0,0)}; g.Kq=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.DU=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.au,C,this),g.R(this,this.T));this.W=new g.N8(this.au,V,this);g.R(this,this.W);this.J=zu9(this.C,H,1,N);g.R(this,this.J);this.D=zu9(this.C,0,N,1);g.R(this,this.D);this.S=new I_;g.R(this,this.S)}; T6=function(p,C,V){this.C=p;this.isAsync=C;this.T=V}; V_H=function(p){switch(p){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:HT(p,"unknown result type")}}; Nqu=function(p,C){var V=1;p.isTrusted===!1&&(V=0);GH("ISDSTAT",V);MN(V,"i.s_",{triggerContext:"sk",metadata:C});return V}; H3u=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");MN(0,"a.s_",{metadata:p,states:V});GH("ASDSTAT",0)}; MN=function(p,C,V){C=XWL[C];var N,H,X={detected:p===0,source:""+C.C+((N=V.triggerContext)!=null?N:"")+((H=V.Jh)!=null?H:""),detectionStates:V.states,durationMs:V.O0};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=V_H(p),p=V&~(3<0}; D7=function(p,C,V,N,H,X){HE.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.Y_=X;this.W=this.api.K().experiments.OY("enable_modern_skip_button_on_web");this.UY=!1;this.V=new g.va({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.i$(this.V,500,!1,100,function(){return d.hide()}); g.R(this,this.Qn);this.vr=new cE(this.V.element,15E3,5E3,.5,.5,this.W);g.R(this,this.vr);this.hide()}; i3v=function(p){p=p.b_&&p.b_.adRendererCommands;return(p&&p.clickCommand&&g.n(p.clickCommand,g.u$)&&g.n(p.clickCommand,g.u$).commands||[]).some(function(C){return C.adLifecycleCommand?dpL(C.adLifecycleCommand):!1})}; dpL=function(p){return p.action==="END_LINEAR_AD"||p.action==="END_LINEAR_AD_PLACEMENT"}; Z7=function(p,C,V,N,H,X){HE.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()}; hVu=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())}; Uu=function(p,C,V,N){zB.call(this,p,C,V,N,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; ft=function(p,C,V,N,H,X,d){X=X===void 0?!1:X;d=d===void 0?!1:d;Fi.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()}; Ou=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.SR=H}; y_=function(p,C){g.ca.call(this);this.api=p;this.durationMs=C;this.T=null;this.FO=new I_(this);g.R(this,this.FO);this.C=spa;this.FO.U(this.api,"presentingplayerstatechange",this.V3);this.T=this.FO.U(this.api,"onAdPlaybackProgress",this.va)}; qN=function(p){g.ca.call(this);this.T=!1;this.bM=0;this.FO=new I_(this);g.R(this,this.FO);this.durationMs=p;this.Dd=new g.q7(100);g.R(this,this.Dd);this.FO.U(this.Dd,"tick",this.va);this.C={seekableStart:0,seekableEnd:p/1E3,current:0};this.start()}; g.I0=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.b$=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)}; A7=function(p,C,V,N,H,X,d){HE.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()}; o0=function(p,C,V,N){V_.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")}; kU=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,a1a),C.onTap&&(this.interaction={onTap:C.onTap})}}; xU=function(p,C,V,N){Fi.call(this,p,{L:"div",B:"ad-simple-attributed-string"},"ad-simple-attributed-string",C,V,N);this.hide()}; YU=function(p,C,V,N,H){Fi.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 xU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS);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()}; z6=function(p,C,V,N,H){Fi.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()}; R0=function(p,C,V,N){Fi.call(this,p,{L:"div",B:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",C,V,N);this.hide()}; nt=function(p,C){this.C=p;this.T=C}; e2=function(p,C,V){if(!p.getLength())return V!=null?V:Infinity;p=(C-p.C)/p.getLength();return g.M$(p,0,1)}; PE=function(p,C,V,N){N=N===void 0?!1:N;g.va.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()}; wk=function(p,C,V,N,H,X){Fi.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;EtL(this)&&(p=XQ("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 o0(this.api,this.layoutId,this.interactionLoggingClientData,this.KS), 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()}; EtL=function(p){p=p.api.K();return g.$U(p)&&p.C}; Lt=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.BX("/sharing_services",p);g.BC(N)}; g.gk=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)}; WE=function(p){this.T=new oL(p)}; l1H=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}; Q_=function(p){if(g.pO("LOGGED_IN",!0)&&l1H()){var C=g.pO("VALID_SESSION_TEMPDATA_DOMAINS",[]);var V=g.$7(window.location.href);V&&C.push(V);V=g.$7(p);g.W5(C,V)||!V&&v5(p,"/")?(C=LJ(p),(C=OHS(C))?(C=RrQ(C),C=(C=g.ee(C)||null)?i1(C):{}):C=null):C=null;C==null&&(C={});V=C;var N=void 0;l1H()?(N||(N=g.pO("LOGIN_INFO")),N?(V.session_logininfo=N,V=!0):V=!1):V=!1;V&&oW(p,C)}}; g.t_e=function(p){var C=C===void 0?{}:C;var V=V===void 0?"":V;var N=N===void 0?window:N;p=g.BX(p,C);Q_(p);V=g.zN(p+V);N=N.location;V=Rc(V);V!==void 0&&(N.href=V)}; g.T0=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||(Q_(p),g.t_e(p))}; g.MQ=function(p,C,V,N,H){H=H===void 0?!1:H;V&&oW(p,V);V=g.zN(p);var X=g.ke(V);p!=X&&Hd(Error("Unsafe window.open URL: "+p));p=X;C=C||dI(p).toString(36);try{if(H){H=p;H=Jpa(H);Q_(H);g.LH(window,H,C,"attributionsrc");return}}catch(d){g.Vg(d)}Q_(p);g.LH(window,V,C,N)}; c1u=function(p){J0=p}; Tqv=function(p){mc=p}; M_S=function(p){vh=p}; mpL=function(){J1v=vh=mc=J0=null}; FWv=function(){var p=p===void 0?window.location.href:p;if(g.Zr("kevlar_disable_theme_param"))return null;var C=eS(g.wA(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 vtu.get(V)||null}catch(N){}return null}; FX=function(){this.T={};if(this.C=DZu()){var p=g.ee("CONSISTENCY");p&&S2V(this,{encryptedTokenJarContents:p})}}; S2V=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)}}; KS=function(){this.C=-1;var p=g.pO("LOCATION_PLAYABILITY_TOKEN");g.pO("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Si(this))&&(p=this.localStorage.get("yt-location-playability-token"));p&&(this.locationPlayabilityToken=p,this.T=void 0)}; Si=function(p){return p.localStorage===void 0?new iN("yt-client-location"):p.localStorage}; g.Da=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.zh(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:FWv()||d;H.userInterfaceTheme=X;if(!C){if(X=aKa())H.connectionType=X;g.Zr("web_log_effective_connection_type")&&(X=lK1())&&(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=vFX())&&(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")&&NE1.instance&&(E=NE1.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();FX.instance||(FX.instance=new FX);N.request=Object.assign({},N.request,{internalExperimentFlags:l,consistencyTokenJars:g.yW(FX.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;KS.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}; u2v=function(p,C){if(!p)return!1;var V,N=(V=g.n(p,KWa))==null?void 0:V.signal;if(N&&C.GQ)return!!C.GQ[N];var H;if((V=(H=g.n(p,DpV))==null?void 0:H.request)&&C.Xh)return!!C.Xh[V];for(var X in p)if(C.O$[X])return!0;return!1}; Z3Q=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}; Upv=function(){this.T={}}; u7=function(){this.mappings=new Upv}; Za=function(p){return function(){return new p}}; O3X=function(p){var C=C===void 0?"UNKNOWN_INTERFACE":C;if(p.length===1)return p[0];var V=f1y[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(f1y).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.Un=function(p){return"/youtubei/v1/"+O3X(p)}; fS=function(){}; On=function(){}; yQ=function(){}; qQ=function(p){return g.zV("ytcsi."+(p||"")+"data_")||y1e(p)}; q2u=function(){var p=qQ();p.info||(p.info={});return p.info}; ID=function(p){p=qQ(p);p.metadata||(p.metadata={});return p.metadata}; b7=function(p){p=qQ(p);p.tick||(p.tick={});return p.tick}; A0=function(p){p=qQ(p);if(p.gel){var C=p.gel;C.gelInfos||(C.gelInfos={});C.gelTicks||(C.gelTicks={})}else p.gel={gelTicks:{},gelInfos:{}};return p.gel}; I1Q=function(p){p=A0(p);p.gelInfos||(p.gelInfos={});return p.gelInfos}; oD=function(p){var C=qQ(p).nonce;C||(C=g.OI(16),qQ(p).nonce=C);return C}; y1e=function(p){var C={tick:{},info:{}};g.YH("ytcsi."+(p||"")+"data_",C);return C}; ki=function(){var p=g.zV("ytcsi.debug");p||(p=[],g.YH("ytcsi.debug",p),g.YH("ytcsi.reference",{}));return p}; xi=function(p){p=p||"";var C=b3X();if(C[p])return C[p];var V=ki(),N={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};V.push(N);return C[p]=N}; A1j=function(p){p=p||"";var C=b3X();C[p]&&delete C[p];var V=ki(),N={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};V.push(N);C[p]=N}; b3X=function(){var p=g.zV("ytcsi.reference");if(p)return p;ki();return g.zV("ytcsi.reference")}; Yi=function(p){return otY[p]||"LATENCY_ACTION_UNKNOWN"}; z0=function(p,C){f5.call(this,1,arguments);this.Dd=C}; RD=function(){this.T=0}; nS=function(){RD.instance||(RD.instance=new RD);return RD.instance}; Ph=function(p,C){ei[C]=ei[C]||{count:0};var V=ei[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 ei)ei[H]&&N-ei[H].time>6E4&&delete ei[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}; k4H=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; xpS=function(){var p;if(g.Zr("csi_use_performance_navigation_timing")||g.Zr("csi_use_performance_navigation_timing_tvhtml5")){var C,V,N,H=w3==null?void 0:(p=w3.getEntriesByType)==null?void 0:(C=p.call(w3,"navigation"))==null?void 0:(V=C[0])==null?void 0:(N=V.toJSON)==null?void 0:N.call(V);H?(H.requestStart=$i(H.requestStart),H.responseEnd=$i(H.responseEnd),H.redirectStart=$i(H.redirectStart),H.redirectEnd=$i(H.redirectEnd),H.domainLookupEnd=$i(H.domainLookupEnd),H.connectStart=$i(H.connectStart), H.connectEnd=$i(H.connectEnd),H.responseStart=$i(H.responseStart),H.secureConnectionStart=$i(H.secureConnectionStart),H.domainLookupStart=$i(H.domainLookupStart),H.isPerformanceNavigationTiming=!0,p=H):p=w3.timing}else p=g.Zr("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(w3.timing)):w3.timing;return p}; $i=function(p){return Math.round(LS()+p)}; LS=function(){return(g.Zr("csi_use_time_origin")||g.Zr("csi_use_time_origin_tvhtml5"))&&w3.timeOrigin?Math.floor(w3.timeOrigin):w3.timing.navigationStart}; Wh=function(p,C){g3("_start",p,C)}; QQ=function(p,C){if(!g.Zr("web_csi_action_sampling_enabled")||!qQ(C).actionDisabled){var V=xi(C||"");K1(V.info,p);p.loadType&&(V=p.loadType,ID(C).loadType=V);K1(I1Q(C),p);V=oD(C);C=qQ(C).cttAuthInfo;nS().info(p,V,C)}}; Y2y=function(){var p,C,V,N;return((N=Rh().resolve(new oh(K5))==null?void 0:(p=Dh())==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]})}; g3=function(p,C,V){if(!g.Zr("web_csi_action_sampling_enabled")||!qQ(V).actionDisabled){var N=oD(V),H;if(H=g.Zr("web_csi_debug_sample_enabled")&&N){(Rh().resolve(new oh(K5))==null?0:Dh())&&!zVs&&(zVs=!0,g3("gcfl",(0,g.Ip)(),V));var X,d,a;H=(Rh().resolve(new oh(K5))==null?void 0:(X=Dh())==null?void 0:(d=X.loggingHotConfig)==null?void 0:(a=d.csiConfig)==null?void 0:a.debugSampleWeight)||0;if(X=H!==0)b:{X=Y2y();if(X.length>0)for(d=0;dV.duration?N:V},{duration:0}))&&C.startTime>0&&C.responseEnd>0&&(g3("wffs",$i(C.startTime)),g3("wffe",$i(C.responseEnd)))}; LWH=function(p,C,V){w3&&w3.measure&&(p.startsWith("measure_")||(p="measure_"+p),V?w3.measure(p,C,V):C?w3.measure(p,C):w3.measure(p))}; gtL=function(p){var C=r3("aft",p);if(C)return C;C=g.pO((p||"")+"TIMING_AFT_KEYS",["ol"]);for(var V=C.length,N=0;N0&&QQ(C);C={isNavigation:!0,actionType:Yi(g.pO("TIMING_ACTION"))};var V=g.pO("PREVIOUS_ACTION");V&&(C.previousAction=Yi(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=eVa();if(V===1||V===-1)C.isVisible= !0;V=ID().loadType==="cold";var N=q2u();V||(V=N.yt_lt==="cold");if(V){C.loadType="cold";V=q2u();N=xpS();var H=LS(),X=g.pO("CSI_START_TIMESTAMP_MILLIS",0);X>0&&!g.Zr("embeds_web_enable_csi_start_override_killswitch")&&(H=X);H&&(g3("srt",N.responseStart),V.prerender!==1&&Wh(H));V=r11();V>0&&g3("fpt",V);V=xpS();V.isPerformanceNavigationTiming&&QQ({performanceNavigationTiming:!0},void 0);g3("nreqs",V.requestStart,void 0);g3("nress",V.responseStart,void 0);g3("nrese",V.responseEnd,void 0);V.redirectEnd- V.redirectStart>0&&(g3("nrs",V.redirectStart,void 0),g3("nre",V.redirectEnd,void 0));V.domainLookupEnd-V.domainLookupStart>0&&(g3("ndnss",V.domainLookupStart,void 0),g3("ndnse",V.domainLookupEnd,void 0));V.connectEnd-V.connectStart>0&&(g3("ntcps",V.connectStart,void 0),g3("ntcpe",V.connectEnd,void 0));V.secureConnectionStart>=LS()&&V.connectEnd-V.secureConnectionStart>0&&(g3("nstcps",V.secureConnectionStart,void 0),g3("ntcpe",V.connectEnd,void 0));w3&&"getEntriesByType"in w3&&$p9();V=[];if(document.querySelector&& w3&&w3.getEntriesByName)for(var d in pU)pU.hasOwnProperty(d)&&(N=pU[d],wWL(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})}QQ(C);C=A0();C.preLoggedGelInfos||(C.preLoggedGelInfos=[]);d=C.preLoggedGelInfos;C=I1Q();V=void 0;for(N=0;N-1&&(delete m["@type"],L=m);S&&p.C.has(S)&&p.C.delete(S);((p0=C.config)==null?0:p0.JEa)&&jL(C.config.JEa);if(L||(Sy=p.V)==null||!Sy.l$a(C.input,C.bL)){fY.EY(15);break}return g.y(fY,p.V.gEY(C.input,C.bL),16);case 16:L=fY.T;case 15:return cNV(p,L,C),((V8=C.config)==null?0:V8.uF_)&&jL(C.config.uF_),N(),fY.return(L||void 0)}})}; sx1=function(p,C){a:{p=p.Ly;var V,N=(V=g.n(C,KWa))==null?void 0:V.signal;if(N&&p.GQ&&(V=p.GQ[N])){var H=V();break a}var X;if((V=(X=g.n(C,DpV))==null?void 0:X.request)&&p.Xh&&(X=p.Xh[V])){H=X();break a}for(H in C)if(p.O$[H]&&(C=p.O$[H])){H=C();break a}H=void 0}if(H!==void 0)return Promise.resolve(H)}; EpX=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.dc)==null?void 0:H.identity)||UX;E=(d=C)==null?void 0:(a=d.dc)==null?void 0:a.sessionIndex;var c=ZC(p.T.G1(X,{sessionIndex:E}));return g.y(t,c,2)}l=t.T;return t.return(Promise.resolve(Object.assign({},Z3Q(V),l)))})}; ahH=function(p,C,V){var N,H=(C==null?void 0:(N=C.dc)==null?void 0:N.identity)||UX,X;C=C==null?void 0:(X=C.dc)==null?void 0:X.sessionIndex;p=p.T.G1(H,{sessionIndex:C});return Object.assign({},Z3Q(V),p)}; a4=function(){}; E0=function(){}; le=function(p){this.Y=p}; td=function(){}; cH=function(){}; Tk=function(){}; MR=function(){}; g.Jd=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)}; mI=function(p,C,V){this.T=p;this.C=C;this.V=V}; MVe=function(p,C,V){if(p.T){var N=eS(g.wA(5,CN(C,"key")))||"/UNKNOWN_PATH";p.T.start(N)}p=V;g.Zr("wug_networking_gzip_request")&&(p=rkL(V));return new window.Request(C,p)}; g.FA=function(p,C){if(!vH){var V=Rh();kJ(V,{GP:JN9,nH:mI});var N={O$:{feedbackEndpoint:Za(td),modifyChannelNotificationPreferenceEndpoint:Za(cH),playlistEditEndpoint:Za(Tk),shareEntityEndpoint:Za(le),subscribeEndpoint:Za(a4),unsubscribeEndpoint:Za(E0),webPlayerShareEntityServiceEndpoint:Za(MR)}},H=KS.getInstance(),X={};H&&(X.client_location=H);p===void 0&&(p=HXH());C===void 0&&(C=V.resolve(JN9));hkH(N,C,p,X);kJ(V,{GP:mea,e0:ie.instance});vH=V.resolve(mea)}return vH}; vpL=function(p){var C=new SE;if(p.interpreterJavascript){var V=zUe(p.interpreterJavascript);V=Q5(V).toString();var N=new vi;JP(N,6,V);iB(C,vi,1,N)}else p.interpreterUrl&&(V=Og(p.interpreterUrl),V=Ab(V).toString(),N=new Fr,JP(N,4,V),iB(C,Fr,2,N));p.interpreterHash&&mM(C,3,p.interpreterHash);p.program&&mM(C,4,p.program);p.globalName&&mM(C,5,p.globalName);p.clientExperimentsStateBlob&&mM(C,7,p.clientExperimentsStateBlob);return C}; SL=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}; HhS=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)}; KU=function(p){this.T=p}; Fe9=function(){return new Promise(function(p){var C=window.top;C.ntpevasrs!==void 0?p(new KU(C.ntpevasrs)):(C.ntpqfbel===void 0&&(C.ntpqfbel=[]),C.ntpqfbel.push(function(V){p(new KU(V))}))})}; Keu=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.k5(p,"privembed",!1)!="1"&&!qHj(p)){var C=function(){Df=!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){}SXS.push(g.rE.YN(function(){if(!(Df||"google_ad_status"in window)){try{if(C){var V=""+g.LY(C),N=qgS[V];N&&g.MM(N)}}catch(H){}Df=!0;GH("DCLKSTAT",3)}},5E3))}}}; ue=function(){var p=Number(g.pO("DCLKSTAT",0));return isNaN(p)?0:p}; O0=function(p,C,V){var N=this;this.network=p;this.options=C;this.C=V;this.T=null;if(C.c2a){var H=new g.u3;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=Zf(null);return g.y(a,U0(N,X),2)}d=a.T;g.xH.ytAtRC&&g.xH.ytAtRC(JSON.stringify(d));g.JQ(a)})},2); Fe9().then(function(X){var d,a,E,l;return g.I(function(t){if(t.C==1)return X.bindInnertubeChallengeFetcher(function(c){return U0(N,Zf(c))}),g.y(t,zo(),2); d=t.T;a=X.getLatestChallengeResponse();E=a.challenge;if(!E)throw Error("BGE_MACIL");l={challenge:E,ai:SL(E),o6:d,bgChallenge:new SE};H.resolve(l);X.registerChallengeFetchedCallback(function(c){c=c.challenge;if(!c)throw Error("BGE_MACR");c={challenge:c,ai:SL(c),o6:d,bgChallenge:new SE};N.T=Promise.resolve(c)}); g.JQ(t)})})}else C.preload&&DeV(this,new Promise(function(X){g.Vl(0,function(){X(fU(N))},0)}))}; Zf=function(p){var C={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};p&&(C.interpreterHash=p);return C}; fU=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=Zf(O$().T);if(g.Zr("att_fet_ks"))return g.vv(J,7),g.y(J,U0(p,V),9);g.vv(J,4);return g.y(J,uD9(p,V),6);case 6:d=J.T;H=d.Q6x;X=d.wVr;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."))),y3(p,864E5),J.return({challenge:"",ai:{},o6: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=SL(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."))),y3(p,864E5),J.return({challenge:"",ai:{},o6: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(fU(p,C))},E)})); case 3:l=Number(X.t)||7200;y3(p,l*1E3);t=void 0;if(!("c1a"in X&&N.bgChallenge)){J.EY(10);break}c=vpL(N.bgChallenge);g.vv(J,11);return g.y(J,yO(O$(),c),13);case 13:g.Fe(J,12);break;case 11:return T=g.Sa(J),g.eG(T),J.return({challenge:H,ai:X,o6:t,bgChallenge:c});case 12:return g.vv(J,14),t=new Zt({challenge:c,iC:{zU:"aGIf"}}),g.y(J,t.Ln,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,ai:X,o6:t,bgChallenge:c})}})}; U0=function(p,C){var V;return g.I(function(N){V=p.C;if(!V||V.xq())return N.return(U0(p.network,C));dc("att_pna",void 0,"attestation_challenge_fetch");return N.return(new Promise(function(H){V.eN("publicytnetworkstatus-online",function(){U0(p.network,C).then(H)})}))})}; Z5u=function(p){if(!p)throw Error("Fetching Attestation challenge returned falsy");if(!p.challenge)throw Error("Missing Attestation challenge");var C=p.challenge,V=SL(C);if("c1a"in V&&(!p.bgChallenge||!p.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},p,{Q6x:C,wVr:V})}; uD9=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.VY=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.VY)}}(H)),5); case 5:return g.vv(a,7),g.y(a,U0(p,C),9);case 9:return X=a.T,a.return(Z5u(X));case 7:V=d=g.Sa(a),d instanceof Error&&g.eG(d);case 8:N++;H={VY:void 0};a.EY(2);break;case 4:throw V;}})}; DeV=function(p,C){p.T=C}; UeL=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=fU(p);p.T=X;(V=C)==null||(N=V.o6)==null||N.dispose();g.JQ(H)})}; y3=function(p,C){function V(){var H;return g.I(function(X){H=N-Date.now();return H<1E3?g.y(X,UeL(p),0):(j_(V,0,Math.min(H,6E4)),X.EY(0))})} var N=Date.now()+C;V()}; fhv=function(p,C){return new Promise(function(V){g.Vl(0,function(){V(C())},p)})}; g.O5Y=function(p,C){var V;return g.I(function(N){var H=g.zV("yt.aba.att");return(V=H?H:O0.instance!==void 0?O0.instance.V.bind(O0.instance):null)?N.return(V("ENGAGEMENT_TYPE_PLAYBACK",p,C)):N.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.yNa=function(){var p;return(p=(p=g.zV("yt.aba.att2"))?p:O0.instance!==void 0?O0.instance.S.bind(O0.instance):null)?p():Promise.resolve(!1)}; Ihy=function(p,C){var V=g.zV("ytDebugData.callbacks");V||(V={},g.YH("ytDebugData.callbacks",V));if(g.Zr("web_dd_iu")||qXy.includes(p))V[p]=C}; qR=function(){var p=b5Y;var C=C===void 0?[]:C;var V=V===void 0?[]:V;C=b2Q.apply(null,[Axa.apply(null,g.K(C))].concat(g.K(V)));this.store=ku9(p,void 0,C)}; g.I4=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.I4(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,aOe:d,updateValue:a}),g.nm(C), p}return N}; be=function(p){var C=this;p=p===void 0?[]:p;this.qg=[];this.k9=this.rR=0;this.z1=void 0;this.totalLength=0;p.forEach(function(V){C.append(V)})}; ANu=function(p,C){return p.qg.length===0?!1:(p=p.qg[p.qg.length-1])&&p.buffer===C.buffer&&p.byteOffset+p.length===C.byteOffset}; Ad=function(p,C){C=g.F(C.qg);for(var V=C.next();!V.done;V=C.next())p.append(V.value)}; o4=function(p,C,V){return p.split(C).lT.split(V).iG}; k9=function(p){p.z1=void 0;p.rR=0;p.k9=0}; x9=function(p,C,V){p.isFocused(C);return C-p.k9+V<=p.qg[p.rR].length}; opa=function(p){if(!p.z1){var C=p.qg[p.rR];p.z1=new DataView(C.buffer,C.byteOffset,C.length)}return p.z1}; Y9=function(p,C,V){p=p.m8(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}nU[H++]=X}}X=String.fromCharCode.apply(String,nU); H<1024&&(X=X.substring(0,H));V.push(X)}return V.join("")}; wc=function(p,C){var V;if((V=PH)==null?0:V.encodeInto)return C=PH.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}; $9=function(p){if(PH)return PH.encode(p);var C=new Uint8Array(Math.ceil(p.length*1.2)),V=wc(p,C);C.lengthV&&(C=C.subarray(0,V));return C}; LU=function(p){this.T=p;this.pos=0;this.C=-1}; gc=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}; WH=function(p,C){var V=p.C;for(p.C=-1;p.T.Kg(p.pos,1);){V<0&&(V=gc(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:gc(p);break;case 1:p.pos+=8;break;case 2:N=gc(p);p.pos+=N;break;case 5:p.pos+=4}}return!1}; Q3=function(p,C){if(WH(p,C))return gc(p)}; rc=function(p,C){if(WH(p,C))return!!gc(p)}; BH=function(p,C){if(WH(p,C)){C=gc(p);var V=p.T.m8(p.pos,C);p.pos+=C;return V}}; Gk=function(p,C){if(p=BH(p,C))return g.eL(p)}; pW=function(p,C,V){if(p=BH(p,C))return V(new LU(new be([p])))}; CW=function(p,C){for(var V=[];WH(p,C);)V.push(gc(p));return V.length?V:void 0}; js=function(p,C,V){for(var N=[],H;H=BH(p,C);)N.push(V(new LU(new be([H]))));return N.length?N:void 0}; Vi=function(p,C){p=p instanceof Uint8Array?new be([p]):p;return C(new LU(p))}; YXX=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}; zka=function(p,C){this.TN=C;this.pos=0;this.C=[];this.T=YXX(p===void 0?4096:p,C);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)}; Ng=function(p,C){C=p.pos+C;if(!(p.T.length>=C)){for(var V=p.T.length*2;V268435455){Ng(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(Ng(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}; Xq=function(p,C,V){V!==void 0&&(HJ(p,C*8),HJ(p,V))}; d_=function(p,C,V){V!==void 0&&Xq(p,C,V?1:0)}; i8=function(p,C,V){V!==void 0&&(HJ(p,C*8+2),C=V.length,HJ(p,C),Ng(p,C),p.T.set(V,p.pos),p.pos+=C)}; hq=function(p,C,V){V!==void 0&&(Rkv(p,C,Math.ceil(Math.log2(V.length*4+2)/7)),Ng(p,V.length*1.2),C=wc(V,p.T.subarray(p.pos)),p.pos+C>p.T.length&&(Ng(p,C),C=wc(V,p.T.subarray(p.pos))),p.pos+=C,npH(p))}; Rkv=function(p,C,V){V=V===void 0?2:V;HJ(p,C*8+2);p.C.push(p.pos);p.C.push(V);p.pos+=V}; npH=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}}; sF=function(p,C,V,N,H){V&&(Rkv(p,C,H===void 0?3:H),N(p,V),npH(p))}; g.aE=function(p,C,V){V=new zka(4096,V);C(V,p);return new Uint8Array(V.T.buffer,V.T.byteOffset,V.pos)}; g.EF=function(p){var C=new LU(new be([Fv(decodeURIComponent(p))]));p=Gk(C,2);C=Q3(C,4);var V=ekY[C];if(typeof V==="undefined")throw p=new g.Bw("Failed to recognize field number",{name:"EntityKeyHelperError",ScS:C}),g.nm(p),p;return{aT:C,entityType:V,entityId:p}}; g.l8=function(p,C){var V=new zka;i8(V,2,$9(p));p=PRV[C];if(typeof p==="undefined")throw C=new g.Bw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:C}),g.nm(C),C;Xq(V,4,p);Xq(V,5,1);C=new Uint8Array(V.T.buffer,V.T.byteOffset,V.pos);return encodeURIComponent(g.mq(C))}; tq=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))}; wCQ=function(p,C,V,N,H){var X=p[C];if(X==null||!X[V])return p;N=g.I4(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))}; $ea=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.O_(H.payload); return tq(N,a,H.entityKey,H.payload[a])}if(H.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{H=H.entityKey;try{var E=g.EF(H).entityType;a=tq(N,E,H);break a}catch(c){if(c instanceof Error){g.nm(new g.Bw("Failed to deserialize entity key",{entityKey:H,xj: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.O_(H.payload);var l,t;return wCQ(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 tq(p,V.entityType,V.key,V.TL);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 tq(d,H,a,X[a])},N)},p); case "UPDATE_ENTITY":return V=C.payload,wCQ(p,V.entityType,V.key,V.TL,V.oEk);default:return p}}; cJ=function(p,C,V){return p[C]?p[C][V]||null:null}; Tf=function(p){return window.Int32Array?new Int32Array(p):Array(p)}; Ss=function(p){g.z.call(this);this.counter=[0,0,0,0];this.C=new Uint8Array(16);this.T=16;if(!Lea){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);Mg=new Uint8Array(256);Jq=Tf(256);mC=Tf(256);vJ=Tf(256);Fq=Tf(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;Mg[X]=H;C=H<<1^(H>>7&&283);var d=C^H;Jq[X]=C<<24|H<<16|H<<8|d;mC[X]=d<<24|Jq[X]>>>8;vJ[X]=H<<24|mC[X]>>>8;Fq[X]=H<<24|vJ[X]>>>8}Lea=!0}H=Tf(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=(Mg[p>>16&255]^N)<<24|Mg[p>>8&255]<<16|Mg[p&255]<<8|Mg[p>>>24],N=N<<1^(N>>7&&283)),H[V]=H[V-4]^p;this.key=H}; KW=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}; gpS=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=Jq[V>>>24]^mC[N>>16&255]^vJ[H>>8&255]^Fq[X&255]^C[l++],a=Jq[N>>>24]^mC[H>>16&255]^vJ[X>>8&255]^Fq[V&255]^C[l++],E=Jq[H>>>24]^mC[X>>16&255]^vJ[V>>8&255]^Fq[N&255]^C[l++],X=Jq[X>>>24]^mC[V>>16&255]^vJ[N>>8&255]^Fq[H&255]^C[l++],V=d,N=a,H=E;p=p.C;d=C[40];p[0]=Mg[V>>>24]^d>>>24;p[1]=Mg[N>>16&255]^d>>16&255;p[2]=Mg[H>>8&255]^ d>>8&255;p[3]=Mg[X&255]^d&255;d=C[41];p[4]=Mg[N>>>24]^d>>>24;p[5]=Mg[H>>16&255]^d>>16&255;p[6]=Mg[X>>8&255]^d>>8&255;p[7]=Mg[V&255]^d&255;d=C[42];p[8]=Mg[H>>>24]^d>>>24;p[9]=Mg[X>>16&255]^d>>16&255;p[10]=Mg[V>>8&255]^d>>8&255;p[11]=Mg[N&255]^d&255;d=C[43];p[12]=Mg[X>>>24]^d>>>24;p[13]=Mg[V>>16&255]^d>>16&255;p[14]=Mg[N>>8&255]^d>>8&255;p[15]=Mg[H&255]^d&255}; Zk=function(){if(!Dk&&!g.G4){if(u8)return u8;var p;u8=(p=window.crypto)==null?void 0:p.subtle;var C,V,N;if(((C=u8)==null?0:C.importKey)&&((V=u8)==null?0:V.sign)&&((N=u8)==null?0:N.encrypt))return u8;u8=void 0}}; g.UF=function(p){this.S=p}; g.fW=function(p){this.C=p}; OF=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()}; Wej=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+yi[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+yi[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+yi[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+yi[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}; rN9=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;QxX(p);return C}; QxX=function(p){p.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];p.D=[];p.D.length=64;p.S=0;p.C=0}; ByQ=function(p){this.T=p}; G1y=function(p,C,V){p=new OF(p.T);p.update(C);p.update(V);C=rN9(p);p.update(p.W);p.update(C);C=rN9(p);p.reset();return C}; pls=function(p){this.C=p}; CVv=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))}})}; jhX=function(p,C,V){p.V||(p.V=new ByQ(p.C));return G1y(p.V,C,V)}; VFy=function(p,C,V){var N,H;return g.I(function(X){if(X.C==1){N=Zk();if(!N)return X.return(jhX(p,C,V));g.vv(X,3);return g.y(X,CVv(p,C,V,N),5)}if(X.C!=3)return X.return(X.T);H=g.Sa(X);g.eG(H);Dk=!0;return X.return(jhX(p,C,V))})}; H1u=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]}; IE=function(){this.state=1;this.o6=null}; l9s=function(p,C,V,N,H,X){var d=d===void 0?"trayride":d;V?(p.Ba(2),g.md(V,function(){if(window[d])EJX(p,N,d,H);else{p.Ba(3);var a=ypV(V),E=document.getElementById(a);E&&(fDS(a),E.parentNode.removeChild(E));g.eG(new g.Bw("Unable to load Botguard","from "+V))}},X)):C?(X=g.dW("SCRIPT"),C instanceof Wn?(X.textContent=Q5(C),rV(X)):X.textContent=C,X.nonce=gV(document),document.head.appendChild(X),document.head.removeChild(X),window[d]?EJX(p,N,d,H):(p.Ba(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"))}; EJX=function(p,C,V,N){p.Ba(5);try{var H=new Zt({program:C,globalName:V,iC:{disable:!g.Zr("att_web_record_metrics"),zU:"aGIf"}});H.Ln.then(function(){p.Ba(6);N&&N(C)}); p.NK(H)}catch(X){p.Ba(7),X instanceof Error&&g.eG(X)}}; b8=function(){var p=g.zV("yt.abuse.playerAttLoader");return p&&["bgvma","bgvmb","bgvmc"].every(function(C){return C in p})?p:null}; Aq=function(){IE.apply(this,arguments)}; oE=function(){}; tF9=function(p,C,V){for(var N=!1,H=g.F(p.a5.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.a5.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.YC(V):vE("No triggering layout ID available when attempting to mute.")}}; kY=function(p,C){this.WI=p;this.Q6=C}; xY=function(){}; YY=function(){}; T$V=function(p){g.z.call(this);var C=this;this.Pa=p;this.T=new Map;zf(this,"commandExecutorCommand",function(V,N,H){c3e(C,V.commands,N,H)}); zf(this,"clickTrackingParams",function(){})}; MF9=function(p,C){zf(p,C.Gv(),function(V,N,H){C.DR(V,N,H)})}; zf=function(p,C,V){p.fS();p.T.get(C)&&g.nm(Error("Extension name "+C+" already registered"));p.T.set(C,V)}; c3e=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,J3Q)||g.n(d,mMQ)?H.push(d):X.push(d);H=g.F(H);for(C=H.next();!C.done;C=H.next())RE(p,C.value,V,N);X=g.F(X);for(H=X.next();!H.done;H=X.next())RE(p,H.value,V,N)}; RE=function(p,C,V,N){p.fS();C.loggingUrls&&vJu(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.Pa.get().VA("innertubeCommand",{openPopupAction:X}):H==="confirmDialogEndpoint"?p.Pa.get().VA("innertubeCommand",{confirmDialogEndpoint:X}):Fdv.hasOwnProperty(H)||vJu(p,H,X,V,N)}}; vJu=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)}; nW=function(p,C,V){this.jZ=p;this.T=C;this.No=V}; es=function(p){this.value=p}; PJ=function(p){this.value=p}; 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(){es.apply(this,arguments)}; r_=function(p){this.value=p}; BJ=function(p){this.value=p}; 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(){es.apply(this,arguments)}; i6=function(p){this.value=p}; ha=function(p){this.value=p}; 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(){es.apply(this,arguments)}; gg=function(p){this.value=p}; WV=function(){es.apply(this,arguments)}; Qy=function(){es.apply(this,arguments)}; rg=function(){es.apply(this,arguments)}; BV=function(){es.apply(this,arguments)}; Gc=function(){es.apply(this,arguments)}; pP=function(p){this.value=p}; CP=function(p){this.value=p}; jU=function(p){this.value=p}; VV=function(p){this.value=p}; Nz=function(p){this.value=p}; XJ=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(!HU(p.clientMetadata,V.value))return!1;return!0}; dt=function(){return""}; SIv=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}}; iH=function(p,C,V,N){N=N===void 0?!1:N;Tp.call(this,p);this.bT=V;this.oX=N;this.args=[];C&&this.args.push(C)}; B=function(p,C,V,N){N=N===void 0?!1:N;Tp.call(this,p);this.bT=V;this.oX=N;this.args=[];C&&this.args.push(C)}; h4=function(p){var C=new Map;p.forEach(function(V){C.set(V.getType(),V)}); this.T=C}; HU=function(p,C){return p.T.has(C)}; sf=function(p,C){p=p.T.get(C);if(p!==void 0)return p.get()}; a3=function(p){return Array.from(p.T.keys())}; Ef=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(!HU(p.clientMetadata,V.value))return!1;return!0}; DM1=function(p){var C;return((C=KdH.get(p))==null?void 0:C.PA)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; t4=function(p,C){var V={type:C.slotType,controlFlowManagerLayer:u39.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=lH(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(lH(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(lH(p.value))}return V}; Z1L=function(p,C){var V={type:C.layoutType,controlFlowManagerLayer:u39.get(C.Br)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};p&&(V.debugData={layoutId:C.layoutId});return V}; lH=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}; UMS=function(p,C,V,N){C={opportunityType:C};p&&(N||V)&&(N=g.bZ(N||[],function(H){return t4(p,H)}),C.debugData=Object.assign({},V&&V.length>0?{associatedSlotId:V}:{},N.length>0?{slots:N}:{})); return C}; Tm=function(p,C){return function(V){return f9Q(cU(p),C.slotId,C.slotType,C.slotPhysicalPosition,C.Br,C.slotEntryTrigger,C.slotFulfillmentTriggers,C.slotExpirationTriggers,V.layoutId,V.layoutType,V.Br)}}; f9Q=function(p,C,V,N,H,X,d,a,E,l,t){return{adClientDataEntry:{slotData:t4(p,{slotId:C,slotType:V,slotPhysicalPosition:N,Br:H,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:a,clientMetadata:new h4([])}),layoutData:Z1L(p,{layoutId:E,layoutType:l,Br:t,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],y$:new Map,clientMetadata:new h4([]),eb:{}})}}}; J4=function(p){this.x_=p;p=Math.random();var C=this.x_.get();C=g.Mz(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}; FN=function(p){if(p.currentState!==2)return!1;p.currentState=3;return!0}; NeH=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=sf(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.rb();S9={contentCpn:p,TY:V};N={};V=(N.ct=V.size,N.c=p,N);C.N.k_("acc",V)}; Hqe=function(){S9={contentCpn:"",TY:new Map}}; KR=function(p){var C;return(C=S9.TY.get(p))!=null?C:"u"}; Ds=function(p,C,V){p.N.k_(C,V);Xay(p)}; dys=function(p){var C=p.layoutId,V=p.lq;if(p.t9){var N={};Ds(p.jZ,"slso",(N.ec=C,N.is=V,N.ctp=KR(C),N))}}; uv=function(p){var C=p.layoutId,V=p.lq;if(p.t9){var N={};Ds(p.jZ,"slse",(N.ec=C,N.is=V,N.ctp=KR(C),N))}}; iqY=function(p){var C=p.layoutId,V=p.lq,N=p.jZ;p.t9&&(p={},Ds(N,"sleo",(p.xc=C,p.is=V,p.ctp=KR(C),p)),Xay(N))}; h3L=function(p){var C=p.cpn,V=p.jZ;p=p.lq;var N=V.rb(),H={};Ds(V,"ce",(H.ec=C,H.ia=C!==N,H.r=S9.TY.has(C),H.is=p,H.ctp=KR(C),H))}; Xay=function(p){if(p.rb()!==S9.contentCpn){var C={};C=(C.c=S9.contentCpn,C);p.N.k_("ccm",C)}}; sSS=function(p){var C=p.cpn,V=p.jZ;p=p.lq;var N=V.rb(),H={};Ds(V,"cx",(H.xc=C,H.ia=C!==N,H.r=S9.TY.has(C),H.is=p,H.ctp=KR(C),H))}; aUX=function(p){this.params=p;this.T=new Set}; E0e=function(p,C,V){if(!p.T.has(C)){p.T.add(C);var N={};p.params.Jg.Wz(C,Object.assign({},V,(N.p_ac=p.params.adCpn,N.p_isv=p.params.E_a&&p.params.OV,N)))}}; UN=function(p,C,V){if(Zs(p.params.Jg.x_.get(),!0)){var N=V.flush,H={};E0e(p,C,(H.cts=V.currentTimeSec,H.f=N,H))}}; lU1=function(p,C){this.jZ=p;this.x_=C}; fR=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(";")}; ON=function(p,C,V){C=C===void 0?{}:C;this.errorCode=p;this.details=C;this.severity=V===void 0?0:V}; yu=function(p){return p===1||p===2}; qD=function(p,C){C=C===void 0?0:C;if(p instanceof ON)return p;p=p&&p instanceof Error?p:Error(""+p);yu(C)?g.nm(p):g.eG(p);return new ON(C===1?"player.fatalexception":"player.exception",{name:""+p.name,message:""+p.message},C)}; tpV=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)}; Ir=function(){var p=g.zV("yt.player.utils.videoElement_");p||(p=g.dW("VIDEO"),g.YH("yt.player.utils.videoElement_",p));return p}; bv=function(p){var C=Ir();return!!(C&&C.canPlayType&&C.canPlayType(p))}; or=function(p){if(/opus/.test(p)&&g.An&&!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)&&!UZu())return!1;p==='audio/mp4; codecs="mp4a.40.2"'&&(p='video/mp4; codecs="avc1.4d401f"');return!!bv(p)}; cOS=function(p){try{var C=or('video/mp4; codecs="avc1.42001E"')||or('video/webm; codecs="vp9"');return(or('audio/mp4; codecs="mp4a.40.2"')||or('audio/webm; codecs="opus"'))&&(C||!p)||bv('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(V){return"html5.missingapi"}}; kZ=function(){var p=Ir();return!(!p.webkitSupportsPresentationMode||typeof p.webkitSetPresentationMode!=="function")}; xZ=function(){var p=Ir();try{var C=p.muted;p.muted=!C;return p.muted!==C}catch(V){}return!1}; TeV=function(){var p;return((p=navigator.connection)==null?void 0:p.type)||""}; g.YZ=function(){I_.apply(this,arguments)}; zx=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}; e9=function(p,C,V,N,H,X,d,a,E){this.width=p;this.height=C;this.quality=X||Rr(p,C);this.T=g.nR[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.nR[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||""}; Rr=function(p,C){var V=Math.max(p,C);p=Math.min(p,C);C=PB[0];for(var N=0;N=Math.floor(X*16/9)*1.3||p>=X*1.3)return C;C=H}return"tiny"}; LR=function(p,C,V){V=V===void 0?{}:V;this.id=p;this.mimeType=C;V.qo>0||(V.qo=16E3);Object.assign(this,V);p=g.F(this.id.split(";"));this.itag=p.next().value;this.T=p.next().value;this.containerType=wO(C);this.o$=$Z[this.itag]||""}; gO=function(p){return p.o$==="9"||p.o$==="("||p.o$==="9h"||p.o$==="(h"}; Mpu=function(p){return p.o$==="H"||p.o$==="h"}; WB=function(p){return p.o$==="9h"||p.o$==="(h"}; Qu=function(p){return p.o$==="1"||p.o$==="1h"}; rO=function(p){return p.o$==="mac3"||p.o$==="meac3"||p.o$==="m"||p.o$==="i"}; BB=function(p){return p.o$==="MAC3"||p.o$==="MEAC3"||p.o$==="M"||p.o$==="I"}; g.Gx=function(p){return p.containerType===1}; JOS=function(p){return p.o$==="("||p.o$==="(h"||p.o$==="H"}; px=function(p){return p.mimeType==="application/x-mpegURL"}; g.Cx=function(p,C){return{itag:+p.itag,lmt:C?0:p.lastModified,xtags:p.T||""}}; myX=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.qo*8||1E6,framerate:p.video.fps||30});p.audio&&(V.audio={contentType:p.mimeType,channels:""+(p.audio.numChannels||2),bitrate:p.qo*8||128E3,samplerate:p.audio.sampleRate||44100});return C.decodingInfo(V).then(function(N){p.C=N})}; jb=function(p){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(p)}; VE=function(p){return/(vp9|vp09|vp8|avc1|av01)/.test(p)}; Nf=function(p){return p.includes("vtt")||p.includes("text/mp4")}; wO=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}; Hc=function(p,C,V,N,H,X){var d=new zx;C in g.nR||(C="small");C==="light"&&(C="tiny");N&&H?(H=Number(H),N=Number(N)):(H=g.nR[C],N=Math.round(H*16/9));X=new e9(N,H,0,null,void 0,C,X);p=unescape(p.replace(/"/g,'"'));return new LR(V,p,{audio:d,video:X})}; Xz=function(p){var C="id="+p.id;p.video&&(C+=", res="+p.video.qualityLabel);var V,N;return C+", byterate=("+((V=p.jA)==null?void 0:V.toFixed(0))+", "+((N=p.qo)==null?void 0:N.toFixed(0))+")"}; dN=function(p,C){return{start:function(V){return p[V]}, end:function(V){return C[V]}, length:p.length}}; v0j=function(p,C,V){for(var N=[],H=[],X=0;X=C)return V}catch(N){}return-1}; sJ=function(p,C){return hj(p,C)>=0}; Fz1=function(p,C){if(!p)return NaN;C=hj(p,C);return C>=0?p.start(C):NaN}; a7=function(p,C){if(!p)return NaN;C=hj(p,C);return C>=0?p.end(C):NaN}; EJ=function(p){return p&&p.length?p.end(p.length-1):NaN}; Pc=function(p,C){p=a7(p,C);return p>=0?p-C:0}; Lx=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 dN(N,H)}; gN=function(p,C,V,N){g.ca.call(this);var H=this;this.dY=p;this.start=C;this.end=V;this.isActive=N;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.EQ={error:function(){!H.fS()&&H.isActive&&H.publish("error",H)}, updateend:function(){!H.fS()&&H.isActive&&H.publish("updateend",H)}}; this.dY.kQ(this.EQ);this.ol=this.isActive}; QE=function(p,C,V,N,H,X){g.ca.call(this);var d=this;this.NW=p;this.v6=C;this.id=V;this.containerType=N;this.o$=H;this.OV=X;this.Gl=this.f8=this.JE=null;this.yD=!1;this.appendWindowStart=this.timestampOffset=0;this.fR=dN([],[]);this.BO=!1;this.z4=[];this.Cn=Wc?[]:void 0;this.FO=function(E){return d.publish(E.type,d)}; var a;if((a=this.NW)==null?0:a.addEventListener)this.NW.addEventListener("updateend",this.FO),this.NW.addEventListener("error",this.FO)}; rN=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Bc=function(p,C){this.sR=p;this.T=C===void 0?!1:C;this.C=!1}; Gw=function(p,C,V){V=V===void 0?!1:V;g.z.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.v6=this.mediaElement.AQ());this.events=new g.YZ(this);g.R(this,this.events);this.V=new Bc(this.Hr?window.URL.createObjectURL(this.Hr):this.v6.webkitMediaSourceURL,!0);p=this.Hr||this.v6;bO(this.events,p,["sourceopen","webkitsourceopen"],this.vt$);bO(this.events,p,["sourceclose","webkitsourceclose"],this.mt_);this.D={updateend:this.Sw}}; Sy1=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Kzu=function(p,C){pV(p)?g.J8(function(){C(p)}):p.callback=C}; DyQ=function(p,C,V){if(CV){var N;j6(p.mediaElement,{l:"mswssb",sr:(N=p.mediaElement.Ta)==null?void 0:N.lM()},!1);C.kQ(p.D,p);V.kQ(p.D,p)}p.T=C;p.C=V;g.R(p,C);g.R(p,V)}; uiL=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.v6&&(p.v6.webkitSourceAddId("0",H),p.v6.webkitSourceAddId("1",N));X=new QE(p.a$,p.v6,"0",wO(H),V,!1);N=new QE(p.b_,p.v6,"1",wO(N),C,!0);DyQ(p,X,N)}; VP=function(p){return!!p.T||!!p.C}; pV=function(p){try{return Nr(p)==="open"}catch(C){return!1}}; Nr=function(p){if(p.Hr)return p.Hr.readyState;switch(p.v6.webkitSourceState){case p.v6.SOURCE_OPEN:return"open";case p.v6.SOURCE_ENDED:return"ended";default:return"closed"}}; Hj=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; Zqy=function(p){pV(p)&&(p.Hr?p.Hr.endOfStream():p.v6.webkitSourceEndOfStream(p.v6.EOS_NO_ERROR))}; UyV=function(p,C,V,N){if(!p.T||!p.C)return null;var H=p.T.isView()?p.T.dY:p.T,X=p.C.isView()?p.C.dY:p.C,d=new Gw(p.mediaElement,p.Hr,!0);d.V=p.V;DyQ(d,new gN(H,C,V,N),new gN(X,C,V,N));pV(p)||p.T.lF(p.T.X0());return d}; fUV=function(p){var C;(C=p.T)==null||C.Kf();var V;(V=p.C)==null||V.Kf();p.W=!1}; XO=function(){var p=this;this.Ok=this.EX=IjQ;this.promise=new g.DC(function(C,V){p.EX=C;p.Ok=V})}; dl=function(){g.z.call(this);this.N4=!1;this.sR=null;this.D=this.Y=!1;this.S=new g.im;this.Ta=null;g.R(this,this.S)}; iU=function(p){p=p.LQ();return p.length<1?NaN:p.end(p.length-1)}; Oq9=function(p){!p.C&&Sy1()&&(p.V?p.V.then(function(){return Oq9(p)}):p.wi()||(p.C=p.Hp()))}; yOv=function(p){p.C&&(p.C.dispose(),p.C=void 0)}; j6=function(p,C,V){var N;((N=p.Ta)==null?0:N.Gk())&&p.Ta.k_("rms",C,V===void 0?!1:V)}; qyL=function(p,C,V){p.isPaused()||p.getCurrentTime()>C||V>10||(p.play(),g.F5(function(){qyL(p,p.getCurrentTime(),V+1)},500))}; IUS=function(p,C){p.sR&&p.sR.rI(C)||(p.sR&&p.sR.dispose(),p.sR=C)}; hK=function(p){return Pc(p.kq(),p.getCurrentTime())}; bqa=function(p,C){if(p.cB()===0||p.hasError())return!1;var V=p.getCurrentTime()>0;return C>=0&&(p=p.LQ(),p.length||!V)?sJ(p,C):V}; s3=function(p){p.wi()&&(p.Ta&&p.Ta.oA("rs_s"),BW&&p.getCurrentTime()>0&&p.seekTo(0),p.K5(),p.load(),IUS(p,null));delete p.V}; ak=function(p){switch(p.H6()){case 2:return"progressive.net.retryexhausted";case 3:return p=p.Mg(),(p==null?0:p.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||AOX&&(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.E3=function(p,C,V){this.Kd=C===void 0?null:C;this.seekSource=V===void 0?null:V;this.state=p||64}; lU=function(p,C,V){V=V===void 0?!1:V;return o0Q(p,C.getCurrentTime(),(0,g.Ip)(),hK(C),V)}; tK=function(p,C,V,N){if(!(C===p.state&&V===p.Kd&&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.E3(C,V,H?N?N:p.seekSource:null)}return p}; cj=function(p,C,V){return tK(p,p.state|C,null,V===void 0?null:V)}; TP=function(p,C){return tK(p,p.state&~C,null,null)}; Mr=function(p,C,V,N){return tK(p,(p.state|C)&~V,null,N===void 0?null:N)}; g.r=function(p,C){return!!(p.state&C)}; g.JK=function(p,C){return C.state===p.state&&C.Kd===p.Kd}; mE=function(p){return p.isPlaying()&&!g.r(p,16)&&!g.r(p,32)}; vj=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}; S6=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D){g.z.call(this);var Z=this;this.by=p;this.slot=C;this.layout=V;this.No=N;this.C4=H;this.pS=X;this.mx=d;this.sZ=a;this.zk=E;this.B_=l;this.position=c;this.Y=T;this.x_=M;this.qE=J;this.DP=S;this.context=D;this.OE=!0;this.W=!1;this.JQ="not_rendering";this.C=!1;this.V=new mQ;p=sf(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.gV=new qo(V.y$,this.No,p,V.layoutId);var f;p=((f=FO(this))==null?void 0:f.progressCommands)||[];this.S=new bme(E, p,V.layoutId,function(){return Z.uU()}); this.T=new aUX({adCpn:this.layout.layoutId,Jg:D.Jg,E_a:this.qE,OV:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; KV=function(p){return{layoutId:p.vE(),lq:p.qE,jZ:p.pS.get(),t9:p.sV()}}; D5=function(p,C){return C.layoutId!==p.layout.layoutId?(p.by.w6(p.slot,C,new iH("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}; uU=function(p){p.JQ="rendering_start_requested";p.B_(-1)}; FO=function(p){return sf(p.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; kBe=function(p){vE("Received layout exit signal when not in layout exit flow.",p.slot,p.layout)}; xyu=function(p){var C;return((C=Z5(p.pS.get(),2))==null?void 0:C.clientPlaybackNonce)||""}; U3=function(p,C){switch(C){case "normal":p.tQ("complete");break;case "skipped":p.tQ("skip");break;case "abandoned":xu(p.gV,"impression")&&p.tQ("abandon")}}; fV=function(p,C){p.W||(C=new g.FK(C.state,new g.E3),p.W=!0);return C}; O3=function(p,C){Tx(C)?p.B_(1):g.Kt(C,4)&&!g.Kt(C,2)&&p.lS();S2(C,4)<0&&!(S2(C,2)<0)&&p.g8()}; Yys=function(p){p.position===0&&(p.sZ.get(),p=sf(p.layout.clientMetadata,"metadata_type_ad_placement_config").kind,p={adBreakType:yP(p)},jL("ad_bl"),g.V3(p))}; qr=function(p,C){oj(p.gV,C,!p.C)}; R3V=function(p){var C;return(((C=FO(p))==null?void 0:C.progressCommands)||[]).findIndex(function(V){return!!g.n(V==null?void 0:V.command,z3Y)})!==-1}; Ik=function(p,C){var V=sf(p.clientMetadata,"metadata_type_eligible_for_ssap");return V===void 0?(vE("Expected SSAP eligibility in PlayerBytes factory",p),!1):C.sV(V)}; bU=function(p,C){if(!Gm(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 vE("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return vE("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:p}),3;default:HT(p,"unknown layoutExitReason")}}; n09=function(p){vE("getExitReason: unexpected reason",void 0,void 0,{reason:p})}; AK=function(p,C){if(Gm(C.get(),"html5_ssap_pass_transition_reason"))switch(p){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return n09(p),"abandoned";case 3:case 1:return n09(p),"error";default:HT(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 vE("getExitReason: unexpected reason",void 0,void 0,{reason:p}),"error";default:HT(p,"unexpected transition reason")}}; ok=function(p,C,V){HH(p,V)||dc(p,C,V);HH(p,"video_to_ad")||dc(p,C,"video_to_ad");HH(p,"ad_to_video")||dc(p,C,"ad_to_video");HH(p,"ad_to_ad")||dc(p,C,"ad_to_ad")}; kL=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z){S6.call(this,p,C,V,N,H,X,d,a,l,t,c,T,M,J,S,D,Z);var f=this;this.Pa=E;this.k$=c;this.DD=!0;this.Py=this.bM=0;this.aV=SS(function(){dys(KV(f));f.by.gy(f.slot,f.layout)}); this.Jw=SS(function(){iqY(KV(f));f.JQ!=="rendering_stop_requested"&&f.k$(f);f.layoutExitReason?f.by.C1(f.slot,f.layout,f.layoutExitReason):kBe(f)}); this.Dd=new g.q7(200);this.Dd.listen("tick",function(){f.va()}); g.R(this,this.Dd)}; YL=function(p){p.Py=Date.now();xL(p,p.bM);p.Dd.start()}; e31=function(p){p.bM=p.uU();p.KW(p.bM/1E3,!0);xL(p,p.bM)}; xL=function(p,C){C={current:C/1E3,duration:p.uU()/1E3};p.Pa.get().VA("onAdPlaybackProgress",C)}; zP=function(p){kL.call(this,p.by,p.slot,p.EE,p.No,p.C4,p.pS,p.mx,p.sZ,p.Pa,p.zk,p.B_,p.k$,p.JW,p.ph,p.x_,p.qE,p.DP,p.context)}; Rk=function(p){kL.call(this,p.by,p.slot,p.EE,p.No,p.C4,p.pS,p.mx,p.sZ,p.Pa,p.zk,p.B_,p.k$,p.JW,p.ph,p.x_,p.qE,p.DP,p.context)}; nV=function(){Rk.apply(this,arguments)}; Pqe=function(p){return Ik(p.slot,p.x_.get())?new nV(p):new zP(p)}; wl=function(p){S6.call(this,p.callback,p.slot,p.EE,p.No,p.C4,p.pS,p.mx,p.sZ,p.zk,p.B_,p.k$,p.JW,p.ph,p.x_,p.qE,p.DP,p.context);var C=this;this.adCpn="";this.Qb=0;this.zK=!1;this.CL=0;this.aV=SS(function(){dys(KV(C));C.by.gy(C.slot,C.layout)}); this.Jw=SS(function(){iqY(KV(C));C.JQ!=="rendering_stop_requested"&&C.k$(C);C.layoutExitReason?C.by.C1(C.slot,C.layout,C.layoutExitReason):kBe(C)}); this.hE=p.hE;this.gY=p.gY;this.f1=p.f1;this.Pa=p.Pa;this.Nn=p.Nn;this.k$=p.k$;if(!this.sV()){Gm(this.x_.get(),"html5_disable_media_load_timeout")||(this.IR=new g.N8(function(){C.RR("load_timeout",new iH("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); p=e6(this.x_.get());var V=Pj(this.x_.get());p&&V&&(this.z3=new g.N8(function(){var N=sf(C.layout.clientMetadata,"metadata_type_preload_player_vars");N&&C.gY.get().N.preloadVideoByPlayerVars(N,2,300)}))}}; $yy=function(p,C){var V=sf(C.clientMetadata,"metadata_type_ad_video_id"),N=sf(C.clientMetadata,"metadata_type_legacy_info_card_vast_extension");V&&N&&p.Nn.get().N.K().vr.add(V,{cJ:N});(C=sf(C.clientMetadata,"metadata_type_sodar_extension_data"))&&gJj(p.hE.get(),C);way(p.mx.get(),!1)}; Lzs=function(p){way(p.mx.get(),!0);var C;((C=p.shrunkenPlayerBytesConfig)==null?0:C.shouldRequestShrunkenPlayerBytes)&&p.mx.get().lL(!1)}; g0e=function(p){var C=sf(p.Bc().clientMetadata,"metadata_type_player_bytes_slot_metadata");C===void 0&&vE("PlayerBytesSlotMetadata is not filled",p.Bc(),p.De());return(C==null?void 0:C.ob)===!0}; $L=function(){wl.apply(this,arguments)}; LV=function(){$L.apply(this,arguments)}; WzV=function(p){return Pqe(Object.assign({},p,{by:p.callback,B_:function(){}}))}; QS9=function(p){return new wl(Object.assign({},p,{B_:function(C){p.Pa.get().VA("onAdIntroStateChange",C)}}))}; rOe=function(p){function C(V){p.Pa.get().hK(V)} return Ik(p.slot,p.x_.get())?new LV(Object.assign({},p,{B_:C})):new wl(Object.assign({},p,{B_:C}))}; gl=function(p){for(var C=p.EE,V=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],N=g.F(Ij()),H=N.next();!H.done;H=N.next())V.push(H.value);if(CR(C,{kt:V,Ji:["LAYOUT_TYPE_MEDIA_BREAK"]}))return WzV(p);C=p.EE;V=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];N=g.F(Ij());for(H=N.next();!H.done;H=N.next())V.push(H.value);if(CR(C,{kt:V,Ji:["LAYOUT_TYPE_MEDIA"]}))return HU(p.EE.clientMetadata,"metadata_type_ad_intro")?QS9(p):rOe(p)}; GBV=function(p){var C=sf(p.clientMetadata,"metadata_type_ad_placement_config").kind,V=sf(p.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:p.layoutId,adType:Bey(V),adBreakType:yP(C)}}; yP=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"}}; Bey=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"}}; pEu=function(p){try{return new Wj(p.R0,p.slot,p.layout,p.u9,p.xl,p.pS,p.kG,p.gY,p.oH,p.mx,p.Un$,p)}catch(C){}}; Wj=function(p,C,V,N,H,X,d,a,E,l,t,c){g.z.call(this);this.R0=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.OE=!0;p=gl(t);if(!p)throw Error("Invalid params for sublayout");this.UZ=p}; C$S=function(){this.T=1;this.C=new mQ}; QP=function(p,C,V,N,H,X,d,a,E,l,t,c,T){g.z.call(this);this.callback=p;this.pS=C;this.kG=V;this.gY=N;this.mx=H;this.sZ=X;this.TR=d;this.slot=a;this.layout=E;this.u9=l;this.Lx=t;this.oH=c;this.x_=T;this.OE=!0;this.dO=!1;this.tU=[];this.Lo=-1;this.b1=!1;this.bO=new C$S}; j09=function(p){var C;return(C=p.layout.oa)!=null?C:sf(p.layout.clientMetadata,"metadata_type_sub_layouts")}; rl=function(p){return{jZ:p.pS.get(),lq:!1,t9:p.sV()}}; V29=function(p,C,V){if(p.I8()===p.tU.length-1){var N,H;vE("Unexpected skip requested during the last sublayout",(N=p.Yl())==null?void 0:N.Bc(),(H=p.Yl())==null?void 0:H.De(),{requestingSlot:C,requestingLayout:V})}}; Nky=function(p,C,V){return V.layoutId!==Bj(p,C,V)?(vE("onSkipRequested for a PlayerBytes layout that is not currently active",p.Bc(),p.De()),!1):!0}; Hta=function(p){p.I8()===p.tU.length-1&&vE("Unexpected skip with target requested during the last sublayout")}; XEV=function(p,C,V){return V.renderingContent===void 0&&V.layoutId!==Bj(p,C,V)?(vE("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",p.Bc(),p.De(),{requestingSlot:C,requestingLayout:V}),!1):!0}; dNe=function(p,C,V,N){var H=sf(C.De().clientMetadata,"metadata_type_ad_pod_skip_target");if(H&&H>0&&H0)){vE("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",p.slot,p.layout,{indexToPlay:C,layoutId:p.layout.layoutId});break a}p.Lo=C;C=p.Yl();if(p.I8()>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});NR("ad_to_ad",N)}p.F1(C)}}; jI=function(p){QP.call(this,p.R0,p.pS,p.kG,p.gY,p.mx,p.sZ,p.TR,p.slot,p.layout,p.u9,p.Lx,p.oH,p.x_)}; s01=function(p){(p=p.Yl())&&p.N$()}; V4=function(p){QP.call(this,p.R0,p.pS,p.kG,p.gY,p.mx,p.sZ,p.TR,p.slot,p.layout,p.u9,p.Lx,p.oH,p.x_);this.II=void 0}; a7Y=function(p,C){p.tV()&&!FN(p.bO.C)||p.callback.C1(p.slot,p.layout,C)}; NV=function(p){return Gm(p.x_.get(),"html5_ssap_pass_transition_reason")}; EUy=function(p,C,V){C.Wp().currentState<2&&(V=AK(V,p.x_),C.jr(C.De(),V));V=C.Wp().T;p.wq(p.slot,C.De(),V)}; l71=function(p,C){if(p.bO.C.currentState<2){var V=AK(C,p.x_);V==="error"?p.callback.w6(p.slot,p.layout,new iH("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"):Cr(p.Lx,p.layout,V)}}; HS=function(p,C,V){C.Wp().currentState>=2||(C.jr(C.De(),V),FN(C.Wp())&&(bH(p.TR,p.slot,C.De(),V),p.II=void 0))}; t2e=function(p,C){p.bO.T===2&&C!==p.rb()&&vE("onClipEntered: unknown cpn",p.slot,p.layout,{cpn:C})}; c71=function(p,C){var V=p.Yl();if(V){var N=V.De().layoutId,H=p.I8()+1;p.tV()?HS(p,V,C):V.jr(V.De(),C);H>=0&&HH&&d.BX(t,H-N);return t}; DNj=function(p,C,V){var N=sf(C.clientMetadata,"metadata_type_sodar_extension_data");if(N)try{gJj(V,N)}catch(H){vE("Unexpected error when loading Sodar",p,C,{error:H})}}; uKQ=function(p,C,V,N,H,X,d){EG(p,C,new g.FK(V,new g.E3),N,H,d,!1,X)}; EG=function(p,C,V,N,H,X,d,a){d=d===void 0?!0:d;Tx(V)&&MD(H,0,null)&&(!xu(p,"impression")&&a&&a(),p.tQ("impression"));xu(p,"impression")&&(g.Kt(V,4)&&!g.Kt(V,2)&&p.U8("pause"),S2(V,4)<0&&!(S2(V,2)<0)&&p.U8("resume"),g.Kt(V,16)&&H>=.5&&p.U8("seek"),d&&g.Kt(V,2)&&lb(p,V.state,C,N,H,X))}; lb=function(p,C,V,N,H,X,d,a){xu(p,"impression")&&(X?(X=H-N,X=X>=-1&&X<=2):X=Math.abs(N-H)<=1,tV(p,C,X?N:H,V,N,d,a&&X),X&&p.tQ("complete"))}; tV=function(p,C,V,N,H,X,d){ku(p,V*1E3,d);H<=0||V<=0||(C==null?0:g.r(C,16))||(C==null?0:g.r(C,32))||(MD(V,H*.25,N)&&(X&&!xu(p,"first_quartile")&&X("first"),p.tQ("first_quartile")),MD(V,H*.5,N)&&(X&&!xu(p,"midpoint")&&X("second"),p.tQ("midpoint")),MD(V,H*.75,N)&&(X&&!xu(p,"third_quartile")&&X("third"),p.tQ("third_quartile")))}; Ztv=function(p,C){xu(p,"impression")&&p.U8(C?"fullscreen":"end_fullscreen")}; UNe=function(p){xu(p,"impression")&&p.U8("clickthrough")}; f79=function(p){p.U8("active_view_measurable")}; Ots=function(p){xu(p,"impression")&&!xu(p,"seek")&&p.U8("active_view_fully_viewable_audible_half_duration")}; y7Q=function(p){xu(p,"impression")&&!xu(p,"seek")&&p.U8("active_view_viewable")}; quL=function(p){xu(p,"impression")&&!xu(p,"seek")&&p.U8("audio_audible")}; I7H=function(p){xu(p,"impression")&&!xu(p,"seek")&&p.U8("audio_measurable")}; bty=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.pw=d;this.C4=a;this.hE=E;this.x_=l;this.No=t;this.pS=c;this.DD=!0;this.OZ=this.JQ=null;this.adCpn=void 0;this.T=!1}; A79=function(p,C,V){var N;al(p.No.get(),"ads_qua","cpn."+sf(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((N=Z5(p.pS.get(),2))==null?void 0:N.clientPlaybackNonce)+";qt."+C+";clr."+V)}; oUL=function(p,C){var V,N;al(p.No.get(),"ads_imp","cpn."+sf(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=Z5(p.pS.get(),2))==null?void 0:V.clientPlaybackNonce)+";clr."+C+";skp."+!!g.n((N=sf(p.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:N.skipOrPreviewRenderer,cS))}; TT=function(p){return p.x_.get().N.K().experiments.OY("increase_completion_ping_firing_window")&&Z5(p.pS.get(),1).VL}; MV=function(p){return{enterMs:sf(p.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:sf(p.clientMetadata,"metadata_type_layout_exit_ms")}}; JV=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){dF.call(this,p,C,V,N,H,d,a,E,l,c);this.pw=X;this.hE=t;this.C4=T;this.x_=M;this.OZ=this.JQ=null}; k6S=function(p,C){var V;al(p.No.get(),"ads_imp","acpn."+((V=Z5(p.pS.get(),2))==null?void 0:V.clientPlaybackNonce)+";clr."+C)}; xNY=function(p,C,V){var N;al(p.No.get(),"ads_qua","cpn."+sf(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((N=Z5(p.pS.get(),2))==null?void 0:N.clientPlaybackNonce)+";qt."+C+";clr."+V)}; mL=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.Lx=V;this.pS=N;this.kG=H;this.mx=X;this.No=d;this.pw=a;this.UO=E;this.C4=l;this.hE=t;this.gY=c;this.f1=T;this.sZ=M;this.Pa=J;this.zk=S;this.Nn=D;this.x_=Z;this.T=f;this.context=q;this.DP=A}; vS=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.Lx=V;this.No=N;this.C4=H;this.hE=X;this.gY=d;this.pS=a;this.mx=E;this.f1=l;this.sZ=t;this.Pa=c;this.zk=T;this.Nn=M;this.x_=J;this.kG=S;this.context=D;this.DP=Z}; Yue=function(p,C,V,N){tO.call(this,"survey-interstitial",p,C,V,N)}; Fc=function(p,C,V,N,H){Ks.call(this,V,p,C,N);this.No=H;p=sf(C.clientMetadata,"metadata_type_ad_placement_config");this.gV=new qo(C.y$,H,p,C.layoutId)}; SI=function(p){return Math.round(p.width)+"x"+Math.round(p.height)}; DQ=function(p,C,V){V=V===void 0?Kr:V;V.widthp.width*p.height*.2)return{yI:3,gG:501,errorMessage:"ad("+SI(V)+") to container("+SI(p)+") ratio exceeds limit."};if(V.height>p.height/3-C)return{yI:3,gG:501,errorMessage:"ad("+SI(V)+") covers container("+SI(p)+") center."}}; zSH=function(p,C){var V=sf(p.clientMetadata,"metadata_type_ad_placement_config");return new qo(p.y$,C,V,p.layoutId)}; ub=function(p){return sf(p.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; ZQ=function(p,C,V,N){tO.call(this,"invideo-overlay",p,C,V,N);this.interactionLoggingClientData=N}; UG=function(p,C,V,N,H,X,d,a,E,l,t,c){Ks.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=zSH(C,V)}; RSu=function(){var p=["metadata_type_invideo_overlay_ad_renderer"];Ij().forEach(function(C){p.push(C)}); return{kt:p,Ji:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; fr=function(p,C,V,N,H,X,d,a,E,l,t,c,T){Ks.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=zSH(C,V)}; nUS=function(){for(var p=["metadata_type_invideo_overlay_ad_renderer"],C=g.F(Ij()),V=C.next();!V.done;V=C.next())p.push(V.value);return{kt:p,Ji:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; OG=function(p){this.mx=p;this.T=!1}; eSL=function(p,C,V){tO.call(this,"survey",p,{},C,V)}; y4=function(p,C,V,N,H,X,d){Ks.call(this,V,p,C,N);this.S=H;this.mx=X;this.x_=d}; P$u=function(p,C,V,N,H,X,d,a,E,l){this.Zh=p;this.mx=C;this.No=V;this.S=N;this.C4=H;this.C=X;this.V=d;this.zk=a;this.x_=E;this.T=l}; wEX=function(p,C,V,N,H,X,d,a,E,l){this.Zh=p;this.mx=C;this.No=V;this.S=N;this.C4=H;this.C=X;this.V=d;this.zk=a;this.x_=E;this.T=l}; qV=function(p,C,V,N,H,X,d,a,E,l){dO.call(this,p,C,V,N,H,X,d,E);this.a9=a;this.pS=l}; $NL=function(){var p=rGH();p.kt.push("metadata_type_ad_info_ad_metadata");return p}; LAv=function(p,C,V,N,H,X,d){this.Zh=p;this.mx=C;this.No=V;this.C=N;this.a9=H;this.T=X;this.pS=d}; gU1=function(p,C,V,N,H,X,d,a){this.Zh=p;this.mx=C;this.No=V;this.C=N;this.a9=H;this.T=X;this.x_=d;this.pS=a}; Il=function(p,C){this.slotId=C;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=p(this.triggerType)}; bb=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}; MB=function(p){return!!(p.Akn&&p.slot&&p.layout)}; JM=function(p){var C,V=(C=p.config)==null?void 0:C.adPlacementConfig;p=p.renderer;return!(!V||V.kind==null||!p)}; iSQ=function(p){if(!sT(p.adLayoutMetadata))return!1;p=p.renderingContent;return g.n(p,lv)||g.n(p,tn)||g.n(p,ar)||g.n(p,EN)?!0:!1}; m$=function(p){return p.playerVars!==void 0&&p.pings!==void 0&&p.externalVideoId!==void 0}; Zd=function(p){if(!sT(p.adLayoutMetadata))return!1;p=p.renderingContent;var C=g.n(p,vP);return C?Fg(C):(C=g.n(p,SB))?m$(C):(C=g.n(p,Kj))?C.playerVars!==void 0:(C=g.n(p,lv))?C.durationMilliseconds!==void 0:g.n(p,Dd)||g.n(p,un)?!0:!1}; Fg=function(p){p=(p.sequentialLayouts||[]).map(function(C){return g.n(C,UT)}); return p.length>0&&p.every(Zd)}; tiy=function(p){if(!sT(p.adLayoutMetadata))return!1;if(g.n(p.renderingContent,hxS)||g.n(p.renderingContent,sDQ))return!0;var C=g.n(p.renderingContent,fj);return g.n(p.renderingContent,OT)||g.n(C==null?void 0:C.sidePanel,aa9)||g.n(C==null?void 0:C.sidePanel,Eiv)||g.n(C==null?void 0:C.sidePanel,lay)?!0:!1}; mQy=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||!(c0V(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,UT))?Zd(V):(V=g.n(p,y9))?tiy(V):(V=g.n(p,T3e))?iSQ(V):(V=g.n(p,Mis))?Xhy(V):(p=g.n(p,J0u))?sT(p.adLayoutMetadata)?g.n(p.renderingContent,ad)?!0:!1:!1:!1}; c0V=function(p){var C;p=g.n((C=p.fulfillmentContent)==null?void 0:C.fulfilledLayout,y9);var V;return p&&((V=p.adLayoutMetadata)==null?void 0:V.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&p.layoutExitNormalTriggers===void 0}; vi1=function(p){var C;return(p==null?void 0:(C=p.adSlotMetadata)==null?void 0:C.slotType)==="SLOT_TYPE_IN_PLAYER"}; SnL=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,qB))==null?void 0:V.surveyAdQuestionCommon)||((N=g.n(C,Id))==null?void 0:N.surveyAdQuestionCommon);if(!FcV(H))return!1}return!0}; Kce=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],qB))==null?void 0:C.surveyAdQuestionCommon)||((V=g.n(p.questions[0],Id))==null?void 0:V.surveyAdQuestionCommon);C=FcV(N)}else C=!1;else C=!1;return C}; FcV=function(p){if(!p)return!1;p=g.n(p.instreamAdPlayerOverlay,bn);var C=g.n(p==null?void 0:p.skipOrPreviewRenderer,cS),V=g.n(p==null?void 0:p.adInfoRenderer,AM);return(g.n(p==null?void 0:p.skipOrPreviewRenderer,od)||C)&&V?!0:!1}; DQX=function(p){return p.linearAds!=null&&sT(p.adLayoutMetadata)}; uXV=function(p){return p.linearAd!=null&&p.adVideoStart!=null}; ZSV=function(p){if(isNaN(Number(p.timeoutSeconds))||!p.text||!p.ctaButton||!g.n(p.ctaButton,g.kr)||!p.brandImage)return!1;var C;return p.backgroundImage&&g.n(p.backgroundImage,xr)&&((C=g.n(p.backgroundImage,xr))==null?0:C.landscape)?!0:!1}; Yr=function(p,C,V,N,H,X,d){g.z.call(this);this.x_=p;this.T=C;this.V=N;this.pS=H;this.S=X;this.C=d}; OSS=function(p,C,V){var N,H=((N=V.adSlots)!=null?N:[]).map(function(a){return g.n(a,z$)}); if(V.Da)if(sf(C.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))mk(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.QR.filter(function(a){var E;return((E=a.renderer)==null?void 0:E.clientForecastingAdRenderer)!=null}); X.length!==0?UQs(p.C,X,H,C.slotId,V.ssdaiAdsConfig):mk(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},C.slotId)}else mk(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},C.slotId); faQ(p.S,C)}else{var d;N={E_:Math.round(((X=sf(C.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:X.E_)||0),Sz:(d=sf(C.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:d.Sz};UQs(p.C,V.QR,H,C.slotId,V.ssdaiAdsConfig,N)}}; qnQ=function(p,C,V,N,H,X,d){var a=Z5(p.pS.get(),1);mk(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return y0e(p.V.get(),V,N,H,a.clientPlaybackNonce,a.C$,a.daiEnabled,a,X,d)},C)}; bSy=function(p,C,V,N,H,X,d){C=IaH(C,X,Number(N.prefetchMilliseconds)||0,d);p=C instanceof B?C:Rd(p,N,H,C,V);return p instanceof B?p:[p]}; A0L=function(p,C,V,N,H){var X=v8(p.C.get(),"SLOT_TYPE_AD_BREAK_REQUEST");N=[new nF({getAdBreakUrl:N.getAdBreakUrl,E_:0,Sz:0}),new jU(!0)];p=C.pauseDurationMs?C.lactThresholdMs?{slotId:X,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new NB(p.T,X),slotFulfillmentTriggers:[new Q0y(p.T)],slotExpirationTriggers:[new rF(p.T,H),new Cj(p.T,X)],Br:"core",clientMetadata:new h4(N),adSlotLoggingData:V}:new B("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new B("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return p instanceof B?p:[p]}; oi9=function(p){var C,V;return((C=p.renderer)==null?void 0:(V=C.adBreakServiceRenderer)==null?void 0:V.getAdBreakUrl)!==void 0}; nj=function(p,C,V){if(p.beforeContentVideoIdStartedTrigger)p=p.beforeContentVideoIdStartedTrigger?new AV(dt,C,p.id):new B("Not able to create BeforeContentVideoIdStartedTrigger");else{if(p.layoutIdExitedTrigger){var N;C=(N=p.layoutIdExitedTrigger)!=null&&N.triggeringLayoutId?new Rl(dt,p.layoutIdExitedTrigger.triggeringLayoutId,p.id):new B("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=r7e(p.layoutExitedForReasonTrigger.layoutExitReason),p=C instanceof B?C:new zT(dt,p.layoutExitedForReasonTrigger.triggeringLayoutId,[C],p.id)):p=new B("Not able to create LayoutIdExitedForReasonTrigger")}else{if(p.onLayoutSelfExitRequestedTrigger){var d;C=(d=p.onLayoutSelfExitRequestedTrigger)!=null&&d.triggeringLayoutId?new Q4(dt,p.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,p.id):new B("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(p.onNewPlaybackAfterContentVideoIdTrigger)p= p.onNewPlaybackAfterContentVideoIdTrigger?new rF(dt,C,p.id):new B("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(p.skipRequestedTrigger){var a;C=(a=p.skipRequestedTrigger)!=null&&a.triggeringLayoutId?new GT(dt,p.skipRequestedTrigger.triggeringLayoutId,p.id):new B("Not able to create SkipRequestedTrigger")}else if(p.slotIdEnteredTrigger){var E;C=(E=p.slotIdEnteredTrigger)!=null&&E.triggeringSlotId?new pj(dt,p.slotIdEnteredTrigger.triggeringSlotId,p.id):new B("Not able to create SlotIdEnteredTrigger")}else if(p.slotIdExitedTrigger){var l; C=(l=p.slotIdExitedTrigger)!=null&&l.triggeringSlotId?new Cj(dt,p.slotIdExitedTrigger.triggeringSlotId,p.id):new B("Not able to create SkipRequestedTrigger")}else if(p.surveySubmittedTrigger){var t;C=(t=p.surveySubmittedTrigger)!=null&&t.triggeringLayoutId?new Xg(dt,p.surveySubmittedTrigger.triggeringLayoutId,p.id):new B("Not able to create SurveySubmittedTrigger")}else{if(p.mediaResumedTrigger)p=p.mediaResumedTrigger&&p.id?new BkS(p.id):new B("Not able to create MediaResumedTrigger");else{if(p.closeRequestedTrigger){var c; C=(c=p.closeRequestedTrigger)!=null&&c.triggeringLayoutId?new ol(dt,p.closeRequestedTrigger.triggeringLayoutId,p.id):new B("Not able to create CloseRequestedTrigger")}else if(p.slotIdScheduledTrigger){var T;C=(T=p.slotIdScheduledTrigger)!=null&&T.triggeringSlotId?new NB(dt,p.slotIdScheduledTrigger.triggeringSlotId,p.id):new B("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 B("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 B?V:new $P(dt,C,V,!1,p.id)):p=new B("Not able to create MediaTimeRangeTrigger")}else if(p.contentVideoIdEndedTrigger)p=p.contentVideoIdEndedTrigger?new kP(dt,C,!1,p.id):new B("Not able to create ContentVideoIdEndedTrigger"); else{if(p.layoutIdEnteredTrigger){var S;C=(S=p.layoutIdEnteredTrigger)!=null&&S.triggeringLayoutId?new YP(dt,p.layoutIdEnteredTrigger.triggeringLayoutId,p.id):new B("Not able to create LayoutIdEnteredTrigger")}else if(p.timeRelativeToLayoutEnterTrigger){var D;C=(D=p.timeRelativeToLayoutEnterTrigger)!=null&&D.triggeringLayoutId?new d2(dt,Number(p.timeRelativeToLayoutEnterTrigger.durationMs),p.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,p.id):new B("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 gF(dt,p.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,p.onDifferentLayoutIdEnteredTrigger.slotType,p.onDifferentLayoutIdEnteredTrigger.layoutType,p.id):new B("Not able to create CloseRequestedTrigger")}else{if(p.liveStreamBreakStartedTrigger)p=p.liveStreamBreakStartedTrigger&&p.id?new wF(dt,p.id):new B("Not able to create LiveStreamBreakStartedTrigger"); else if(p.liveStreamBreakEndedTrigger)p=p.liveStreamBreakEndedTrigger&&p.id?new nr(dt,p.id):new B("Not able to create LiveStreamBreakEndedTrigger");else{if(p.liveStreamBreakScheduledDurationMatchedTrigger){var f;C=(f=p.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&f.breakDurationMs?new eI(Number(p.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,p.id):new B("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(p.liveStreamBreakScheduledDurationNotMatchedTrigger){var q; C=(q=p.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&q.breakDurationMs?new PS(Number(p.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,p.id):new B("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(p.newSlotScheduledWithBreakDurationTrigger){var A;C=(A=p.newSlotScheduledWithBreakDurationTrigger)!=null&&A.breakDurationMs?new Lr(Number(p.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,p.id):new B("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else C= p.prefetchCacheExpiredTrigger?new BS(dt,p.id):new B("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}; eB=function(p,C){C.T>=2&&(p.slot_pos=C.adPodIndex);p.autoplay="1"}; xQS=function(p,C,V,N,H,X,d,a){return C===null?new B("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:C,ActionCompanionAdRenderer:N}):[k0L(p,C,d,X,function(E){var l=E.slotId;E=a(E);var t=N.adLayoutLoggingData,c=new h4([new PJ(N),new jT(H)]);l=ps(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 rF(V.T,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"core",clientMetadata:c,eb:E(T),adLayoutLoggingData:t}})]}; YnX=function(p,C,V,N,H,X,d,a){return C===null?new B("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:C,TopBannerImageTextIconButtonedLayoutViewModel:N}):[k0L(p,C,d,X,function(E){var l=E.slotId;E=a(E);var t=N.adLayoutLoggingData,c=new h4([new w_(N),new jT(H)]);l=ps(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 rF(V.T,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"core",clientMetadata:c,eb:E(T),adLayoutLoggingData:t}})]}; ex9=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,PP(p,X.renderer,X.config.adPlacementConfig.kind);p=Array.from(p.values()).filter(function(t){return zxy(t)}); C=[];X=g.F(p);for(var d=X.next(),a={};!d.done;a={TC:void 0},d=X.next()){a.TC=d.value;d=g.F(a.TC.TG);for(var E=d.next(),l={};!E.done;l={bX:void 0},E=d.next())l.bX=E.value,E=function(t,c){return function(T){return t.bX.y5(T,c.TC.instreamVideoAdRenderer.elementId,t.bX.yq)}}(l,a),l.bX.isContentVideoCompanion?C.push(RxL(V,N,H,a.TC.instreamVideoAdRenderer.elementId,l.bX.associatedCompositePlayerBytesLayoutId,l.bX.adSlotLoggingData,E)):p.length>1?C.push(niY(V,N,H,a.TC.instreamVideoAdRenderer.elementId,l.bX.adSlotLoggingData, function(t,c){return function(T){return t.bX.y5(T,c.TC.instreamVideoAdRenderer.elementId,t.bX.yq,t.bX.associatedCompositePlayerBytesLayoutId)}}(l,a))):C.push(niY(V,N,H,a.TC.instreamVideoAdRenderer.elementId,l.bX.adSlotLoggingData,E))}return C}; PP=function(p,C,V){if(C=P7S(C)){C=g.F(C);for(var N=C.next();!N.done;N=C.next())if((N=N.value)&&N.externalVideoId){var H=w2(p,N.externalVideoId);H.instreamVideoAdRenderer||(H.instreamVideoAdRenderer=N,H.b7=V)}else vE("InstreamVideoAdRenderer without externalVideoId")}}; P7S=function(p){var C=[],V=p.sandwichedLinearAdRenderer&&p.sandwichedLinearAdRenderer.linearAd&&g.n(p.sandwichedLinearAdRenderer.linearAd,SB);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,SB)&&C.push(g.n(V,SB));return C}return null}; zxy=function(p){if(p.instreamVideoAdRenderer===void 0)return vE("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var C=g.F(p.TG),V=C.next();!V.done;V=C.next()){V=V.value;if(V.y5===void 0)return!1;if(V.yq===void 0)return vE("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(p.b7===void 0||V.hj===void 0||p.b7!==V.hj&&V.hj!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(p.instreamVideoAdRenderer.elementId===void 0)return vE("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:p.b7,"matching APSR kind":V.hj}),!1}return!0}; w2=function(p,C){p.has(C)||p.set(C,{instreamVideoAdRenderer:void 0,b7:void 0,adVideoId:C,TG:[]});return p.get(C)}; $r=function(p,C,V,N,H,X,d,a,E){H?w2(p,H).TG.push({pPn:C,hj:V,isContentVideoCompanion:N,yq:d,associatedCompositePlayerBytesLayoutId:X,adSlotLoggingData:a,y5:E}):vE("Companion AdPlacementSupportedRenderer without adVideoId")}; Lj=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,qB)||g.n(V,Id)){var N=void 0;C+=((N=V.surveyAdQuestionCommon)==null?void 0:N.durationMilliseconds)||0}return C}; g2=function(p){var C,V,N,H,X=((V=g.n((C=p.questions)==null?void 0:C[0],qB))==null?void 0:V.surveyAdQuestionCommon)||((H=g.n((N=p.questions)==null?void 0:N[0],Id))==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,Y,W,L,VL,au,Q;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,Qca:(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:(Y=p.playbackCommands)== null?void 0:(W=Y.activeViewTracking)==null?void 0:W.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(L=p.playbackCommands)==null?void 0:(VL=L.activeViewTracking)==null?void 0:VL.activeViewAudioMeasurableCommands,endFullscreenCommands:(au=p.playbackCommands)==null?void 0:au.endFullscreenCommands,abandonCommands:(Q=p.playbackCommands)==null?void 0:Q.abandonCommands,completeCommands:C}}; $Q9=function(p,C,V,N,H,X,d){return function(a,E){return wha(p,E.slotId,a,X,function(l,t){var c=E.layoutId;l=d(l);return WP(C,c,t,H,l,"LAYOUT_TYPE_SURVEY",[new Ja(V),N],V.adLayoutLoggingData)})}}; Wc1=function(p,C,V,N,H,X,d){if(!LcY(p))return new B("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:p});var a=p.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[giY(X,C,V,N,function(E){var l=E.slotId;E=d(E);l=ps(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 Rl(H.T,N);return{layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",y$:new Map,layoutExitNormalTriggers:[c], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"core",clientMetadata:new h4([new mt(a)]),eb:E(t)}})]}; LcY=function(p){p=g.n(p==null?void 0:p.additionalPlayerOverlay,QDy);if(!p)return!1;var C=p.slidingMessages;return p.title&&C&&C.length!==0?!0:!1}; B39=function(p,C,V,N,H){var X;if((X=p.playerOverlay)==null||!X.instreamSurveyAdRenderer)return function(){return[]}; if(!Kce(p))return function(){return new B("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:p})}; var d=p.playerOverlay.instreamSurveyAdRenderer,a=Lj(d);return a<=0?function(){return new B("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:d})}:function(E,l){var t=r0H(E,V,N,function(c){var T=c.slotId; c=l(c);var M=g2(d);T=ps(H.C.get(),"LAYOUT_TYPE_SURVEY",T);var J={layoutId:T,layoutType:"LAYOUT_TYPE_SURVEY",Br:"core"},S=new Rl(H.T,N),D=new GT(H.T,T),Z=new Xg(H.T,T),f=new jDH(H.T);return{layoutId:T,layoutType:"LAYOUT_TYPE_SURVEY",y$:new Map,layoutExitNormalTriggers:[S,f],layoutExitSkipTriggers:[D],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[Z],Wa:[],Br:"core",clientMetadata:new h4([new MG(d),new jT(C),new wg(a/1E3),new WV(M)]),eb:c(J),adLayoutLoggingData:d.adLayoutLoggingData}}); E=Wc1(p,V,t.slotId,N,H,E,l);return E instanceof B?E:[t].concat(g.K(E))}}; HUQ=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=G0L(S.slotId,V,C,H(S),N,X,d);E=S.Ode;return S.RD}; else if(V.renderer.instreamVideoAdRenderer)l=function(S){var D=S.slotId;S=H(S);var Z=d,f=V.config.adPlacementConfig,q=pH1(f),A=q.A$,Y=q.Sx;q=V.renderer.instreamVideoAdRenderer;var W;if(q==null?0:(W=q.playerOverlay)==null?0:W.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var L=Q9(q,Z);W=Math.min(A+L.videoLengthSeconds*1E3,Y);Z=new bb(0,[L.videoLengthSeconds]);Y=L.videoLengthSeconds;var VL=L.playerVars,au=L.instreamAdPlayerOverlayRenderer,Q=L.playerOverlayLayoutRenderer, e=L.adVideoId,G=Cea(V),m=L.y$;L=L.Fn;var P=q==null?void 0:q.adLayoutLoggingData;q=q==null?void 0:q.sodarExtensionData;D=ps(C.C.get(),"LAYOUT_TYPE_MEDIA",D);var p0={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA",Br:"core"};return{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA",y$:m,layoutExitNormalTriggers:[new nr(C.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"core",clientMetadata:new h4([new i6(N),new Or(Y),new yy(VL),new b6(A),new Aa(W),au&&new ha(au), Q&&new sr(Q),new jT(f),new dg(e),new Vy(Z),new zc(G),q&&new Iw(q),new u6({current:null}),new k_({}),new BV(L)].filter(j4v)),eb:S(p0),adLayoutLoggingData:P}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var t=VLX(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 B)return J;a.push.apply(a,g.K(J))}}catch(S){return new B(S,{errorMessage:S.message,AdPlacementRenderer:V,numberOfSurveyRenderers:NcX(V)})}return a}; NcX=function(p){p=(p.renderer.linearAdSequenceRenderer||{}).linearAds;return p!=null&&p.length?p.filter(function(C){var V,N;return((V=g.n(C,SB))==null?void 0:(N=V.playerOverlay)==null?void 0:N.instreamSurveyAdRenderer)!=null}).length:0}; G0L=function(p,C,V,N,H,X,d){var a=C.config.adPlacementConfig,E=pH1(a),l=E.A$,t=E.Sx;E=(C.renderer.linearAdSequenceRenderer||{}).linearAds;if(E==null||!E.length)throw new TypeError("Expected linear ads");var c=[],T={vX:l,JW:0,KSe:c};E=E.map(function(J){return XHS(p,J,T,V,N,a,H,t,d)}).map(function(J,S){S=new bb(S,c); return J(S)}); var M=E.map(function(J){return J.YF}); return{RD:dRL(V,p,l,M,a,Cea(C),N,t,X),Ode:E.map(function(J){return J.gBV})}}; XHS=function(p,C,V,N,H,X,d,a,E){var l=Q9(g.n(C,SB),E),t=V.vX,c=V.JW,T=Math.min(t+l.videoLengthSeconds*1E3,a);V.vX=T;V.JW++;V.KSe.push(l.videoLengthSeconds);var M,J,S=(M=g.n(C,SB))==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){eB(l.playerVars,D);var Z,f,q=l.videoLengthSeconds,A=l.playerVars,Y=l.y$,W=l.Fn,L=l.instreamAdPlayerOverlayRenderer,VL=l.playerOverlayLayoutRenderer, au=l.adVideoId,Q=(Z=g.n(C,SB))==null?void 0:Z.adLayoutLoggingData;Z=(f=g.n(C,SB))==null?void 0:f.sodarExtensionData;f=ps(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$:Y,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"adapter",clientMetadata:new h4([new i6(d),new Or(q),new yy(A),new b6(t),new Aa(T),new ow(c),new u6({current:null}), L&&new ha(L),VL&&new sr(VL),new jT(X),new dg(au),new Vy(D),Z&&new Iw(Z),S&&new rg(S),new k_({}),new BV(W)].filter(j4v)),eb:H(e),adLayoutLoggingData:Q};q=B39(g.n(C,SB),X,d,D.layoutId,N);return{YF:D,gBV:q}}}; Q9=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=iUY[d])!=null?a:N}else C=N;return{playerVars:V,videoLengthSeconds:C,instreamAdPlayerOverlayRenderer:H,playerOverlayLayoutRenderer:X,adVideoId:d,y$:p.pings?y6(p.pings):new Map,Fn:Oz(p.pings)}}; Cea=function(p){p=Number(p.driftRecoveryMs);return isNaN(p)||p<=0?null:p}; pH1=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{A$:C,Sx:p}}; h_9=function(p){var C,V=(C=sf(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:C.current;if(!V)return null;C=sf(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var N=p.layoutId,H=sf(p.clientMetadata,"metadata_type_content_cpn"),X=sf(p.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),d=sf(p.clientMetadata,"metadata_type_player_underlay_renderer"),a=sf(p.clientMetadata,"metadata_type_ad_placement_config"),E=sf(p.clientMetadata,"metadata_type_video_length_seconds"); var l=HU(p.clientMetadata,"metadata_type_layout_enter_ms")&&HU(p.clientMetadata,"metadata_type_layout_exit_ms")?(sf(p.clientMetadata,"metadata_type_layout_exit_ms")-sf(p.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{FC:N,contentCpn:H,Gm:V,ke:C,instreamAdPlayerOverlayRenderer:X,instreamAdPlayerUnderlayRenderer:d,adPlacementConfig:a,videoLengthSeconds:E,xg:l,inPlayerLayoutId:sf(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:sf(p.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; E9V=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J){N=v8(N,"SLOT_TYPE_PLAYER_BYTES");p=s4Y(H,p,d,V,N,E,l);if(p instanceof B)return p;var S;l=(S=sf(p.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:S.layoutId;if(!l)return new B("Invalid adNotify layout");C=afY(l,H,X,V,a,C,E,t,c,T,M,J,d);return C instanceof B?C:[p].concat(g.K(C))}; afY=function(p,C,V,N,H,X,d,a,E,l,t,c,T){V=lfH(C,V,N,X,d,a,E,l,t,c,T);if(V instanceof B)return V;p=tL9(C,p,d,H,V);return p instanceof B?p:[].concat(g.K(p.uW),[p.Fb])}; TcQ=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){C=lfH(p,C,V,H,X,a,E,l,t,c,T,M);if(C instanceof B)return C;p=cd9(p,V,X,d,N,a.p4,C);return p instanceof B?p:p.uW.concat(p.Fb)}; lfH=function(p,C,V,N,H,X,d,a,E,l,t,c){var T=r2(N,V,l);return T instanceof iH?new B(T):l.N.K().experiments.OY("html5_refactor_in_player_slot_generation")?function(M){var J=new bb(0,[T.eE]);M=MLV(C,T.layoutId,T.Ic,V,BP(T.playerVars,T.cC,X,E,J),T.eE,H,J,d(M),a.get(T.Ic.externalVideoId),c);J=[];if(T.Ic.playerOverlay.instreamAdPlayerOverlayRenderer){var S=h_9(M);if(!S)return vE("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,M),{layout:M,uW:[]}; J=[JdV(p,S.contentCpn,S.FC,function(Z){return G$(C,Z.slotId,"core",S,Tm(t,Z))},S.inPlayerSlotId)].concat(g.K(J)); if(S.instreamAdPlayerUnderlayRenderer&&pa(l)){var D=S.instreamAdPlayerUnderlayRenderer;J=[mR1(p,S.contentCpn,S.FC,function(Z){return v9H(C,Z.slotId,D,S.adPlacementConfig,S.FC,Tm(t,Z))})].concat(g.K(J))}}return{layout:M, uW:J}}:function(M){var J=new bb(0,[T.eE]); return{layout:MLV(C,T.layoutId,T.Ic,V,BP(T.playerVars,T.cC,X,E,J),T.eE,H,J,d(M),a.get(T.Ic.externalVideoId),c),uW:[]}}}; r2=function(p,C,V){if(!p.playerVars)return new iH("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 iH("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:p});N=i1(p.playerVars);H=Number(N.length_seconds); isNaN(H)&&(H=0,vE("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 iH("Expected server generated layout ID in instreamVideoAdRenderer");C=p.layoutId}else C=p.elementId;return{layoutId:C,Ic:p,playerVars:N,cC:p.playerVars,eE:H}}; BP=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){vE(X)}V.yr&&(p.ctrl=V.yr);V.tX&&(p.ytr=V.tX);V.Cg&&(p.ytrcc=V.Cg);V.isMdxPlayback&&(p.mdx="1");p.vvt&&(p.vss_credentials_token=p.vvt,V.jS&&(p.vss_credentials_token_type=V.jS),V.mdxEnvironment&&(p.mdx_environment=V.mdxEnvironment));eB(p,H);return p}; FIj=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}; Ca=function(p){return p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; S0S=function(p){return p!=null}; ffa=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,!c0V(D)&&!vi1(D)){var Z=Ca(D)&&!!D.slotEntryTrigger.beforeContentVideoIdStartedTrigger,f=E.sV(Z),q=KIj(D,l,N,V.C$,f);if(q instanceof B)return q;var A=void 0,Y={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},W=g.n(D.fulfillmentContent.fulfilledLayout,UT);if(W){if(!Zd(W))return new B("Invalid PlayerBytesAdLayoutRenderer");A=c&&!(Ca(D)&&D.slotEntryTrigger.beforeContentVideoIdStartedTrigger);q=q.slotFulfillmentTriggers.some(function(L){return L instanceof eI}); f=A?DRv(Y,D.adSlotMetadata.triggerEvent,W,V,N,X,l,p,f,T,q,M):uAY(Y,D.adSlotMetadata.triggerEvent,W,C,V,N,H,X,d,a,E,l,p,t,f,D.adSlotMetadata.triggeringSourceLayoutId);if(f instanceof B)return f;q=[];Ca(D)&&q.push(new VV({ob:Ca(D)&&!!D.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));A&&q.push(new k_({}));V.p4&&q.push(new Qy({}));q.push(new CP(Z));D=Object.assign({},Y,{clientMetadata:new h4(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,y9)){if(!tiy(Z))return new B("Invalid PlayerUnderlayAdLayoutRenderer");Z=ZU1(Z,N,V.C$,X,Y,D.adSlotMetadata.triggerEvent,D.adSlotMetadata.triggeringSourceLayoutId);if(Z instanceof B)return Z;D=Object.assign({},Y,{clientMetadata:new h4([]),fulfilledLayout:Z,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push(D)}else if(Z=g.n(D.fulfillmentContent.fulfilledLayout,Mis)){if(!Xhy(Z))return new B("Invalid AboveFeedAdLayoutRenderer");Z= URv(Z,N,V.C$,X,Y,D.adSlotMetadata.triggerEvent,D.adSlotMetadata.triggeringSourceLayoutId);if(Z instanceof B)return Z;D=Object.assign({},Y,{clientMetadata:new h4([]),fulfilledLayout:Z,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push(D)}else if(Z=g.n(D.fulfillmentContent.fulfilledLayout,J0u)){if(!sT(Z.adLayoutMetadata)||!g.n(Z.renderingContent,ad))return new B("Invalid BelowPlayerAdLayoutRenderer");Z=URv(Z,N,V.C$,X,Y,D.adSlotMetadata.triggerEvent,D.adSlotMetadata.triggeringSourceLayoutId); if(Z instanceof B)return Z;D=Object.assign({},Y,{clientMetadata:new h4([]),fulfilledLayout:Z,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push(D)}else return new B("Unable to retrieve a client slot ["+Y.slotType+"] from a given AdSlotRenderer")}return J}; URv=function(p,C,V,N,H,X,d){var a={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"};C=j8(p,C,V);if(C instanceof B)return C;V=[];V.push(new jT(Vn(X)));X==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&d!==void 0&&V.push(new vV(d));return Object.assign({},a,{renderingContent:p.renderingContent,y$:new Map([["impression",OUe(p)]])},C,{eb:Tm(N,H)(a),clientMetadata:new h4(V),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}; ZU1=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,fj))if(d=g.n(d.sidePanel,Eiv)){var a={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"};C=j8(p,C,V);p=C instanceof B?C:Object.assign({},a,{renderingContent:p.renderingContent,y$:new Map([["impression",d.impressionPings||[]],["resume",d.resumePings||[]]])},C,{eb:Tm(N,H)(a),clientMetadata:new h4([new jT(Vn(X))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}else p= new B("DismissablePanelTextPortraitImageRenderer is missing");else p=new B("SqueezebackPlayerSidePanelRenderer is missing");else p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.n(p.renderingContent,hxS)?(d={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"},C=j8(p,C,V),p=C instanceof B?C:Object.assign({},d,{renderingContent:p.renderingContent,y$:new Map},C,{eb:Tm(N,H)(d),clientMetadata:new h4([new jT(Vn(X))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})): p=new B("CounterfactualRenderer is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?p=new B("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?p=new B("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.n(p.renderingContent,OT)?(X={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType, Br:"core"},C=j8(p,C,V),p=C instanceof B?C:d?Object.assign({},X,{renderingContent:p.renderingContent,y$:new Map},C,{eb:Tm(N,H)(X),clientMetadata:new h4([new vV(d)]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}):new B("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):p=new B("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.n(p.renderingContent,sDQ)? (X={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"},C=j8(p,C,V),p=C instanceof B?C:Object.assign({},X,{renderingContent:p.renderingContent,y$:new Map([])},C,{eb:Tm(N,H)(X),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new h4([])})):p=new B("AdsEngagementPanelSectionListViewModel is missing"):p=new B("LayoutType ["+p.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return p}; DRv=function(p,C,V,N,H,X,d,a,E,l,t,c){if((c==null?void 0:c.E_)===void 0||(c==null?void 0:c.Sz)===void 0)return new B("Cached ad break range from cue point is missing");var T=j8(V,H,N.C$);if(T instanceof B)return T;T={layoutExitMuteTriggers:[],layoutExitNormalTriggers:T.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Wa:[],layoutExitUserInputSubmittedTriggers:[]};if(g.n(V.renderingContent,SB))return p=ydV(p,C,V,T,H,X,a,E,N.C$,d,c.E_,c.Sz),p instanceof B?p:p.p7===void 0?new B("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:p.layout,uW:[p.p7]};var M=g.n(V.renderingContent,vP);if(M){if(!sT(V.adLayoutMetadata))return new B("Invalid ad layout metadata");if(!Fg(M))return new B("Invalid sequential layout");M=M.sequentialLayouts.map(function(J){return J.playerBytesAdLayoutRenderer}); p=q0V(p,C,V,T,M,H,N,X,d,E,a,l,c.E_,c.Sz,t);return p instanceof B?p:{layout:p.Jz,uW:p.uW}}return new B("Not able to convert a sequential layout")}; q0V=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J){var S=Ifa(H,T,M);if(S instanceof B)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.JW],Y=q,W=C;q=X;var L=d,VL=a,au=E,Q=l,e=t,G=N3(A);if(G instanceof B)f=G;else{var m={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Br:"adapter"};Y=bUa(W,A,Y,q);Y instanceof B?f=Y:(f=Object.assign({},m,H0,{y$:G,renderingContent:A.renderingContent,clientMetadata:new h4(Y),eb:Tm(VL,f)(m),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData}), f=(A=Xm(e,f,q,L.C$,VL,au,Q,void 0,!0))?A instanceof B?A:{layout:f,p7:A}:new B("Expecting associatedInPlayerSlot"))}if(f instanceof B)return f;D.push(f.layout);Z.push(f.p7)}H={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,Br:"core"};C=[new zc(Number(V.driftRecoveryMs)),new b6(T),new Aa(M),new jT(Vn(C)),new pP(c),new k_({})];J&&C.push(new Nz({}));return{Jz:Object.assign({},H,N,{oa:D,y$:new Map,clientMetadata:new h4(C),eb:Tm(a,p)(H)}),uW:Z}}; ydV=function(p,C,V,N,H,X,d,a,E,l,t,c){if(!Zd(V))return new B("Invalid PlayerBytesAdLayoutRenderer");var T=N3(V);if(T instanceof B)return T;var M={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,Br:"core"},J=g.n(V.renderingContent,SB);if(!J)return new B("Invalid rendering content for DAI media layout");J=Q9(J,!1);t={rM:J,JW:0,vX:t,uS:Math.min(t+J.videoLengthSeconds*1E3,c),h8:new bb(0,[J.videoLengthSeconds])};var S;c=(S=Number(V.driftRecoveryMs))!=null?S:void 0;C=bUa(C, V,t,H,c);if(C instanceof B)return C;p=Object.assign({},M,N,{y$:T,renderingContent:V.renderingContent,clientMetadata:new h4(C),eb:Tm(X,p)(M),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData});return(H=Xm(d,p,H,E,X,l,a,void 0,!0))?H instanceof B?H:{layout:p,p7:H}:new B("Expecting associatedInPlayerSlot")}; uAY=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S){var D=j8(V,X,H.C$);if(D instanceof B)return D;if(g.n(V.renderingContent,SB)){E=Ada([V],H,E);if(E instanceof B)return E;if(E.length!==1)return new B("Only expected one media layout.");p=o9L(p,C,V,D,E[0],void 0,"core",N,X,d,a,l,T,M,J,H.C$,c,void 0,S);return p instanceof B?p:{layout:p.layout,uW:p.p7?[p.p7]:[]}}var Z=g.n(V.renderingContent,vP);if(Z){if(!sT(V.adLayoutMetadata))return new B("Invalid ad layout metadata");if(!Fg(Z))return new B("Invalid sequential layout"); Z=Z.sequentialLayouts.map(function(f){return f.playerBytesAdLayoutRenderer}); p=kkS(p,C,V.adLayoutMetadata,D,Z,N,X,H,E,d,a,l,t,c,J,T,M,S);return p instanceof B?p:{layout:p.Jz,uW:p.uW}}return new B("Not able to convert a sequential layout")}; kkS=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z){var f=new Xw({current:null}),q=Ada(H,a,E);if(q instanceof B)return q;E=[];for(var A=[],Y=void 0,W=0;W0&&(W.push(Z),W.push(new HV(Y.adPodSkipTarget)));(X=l.get(Y.externalVideoId))&&W.push(new PV(X));X=W}else X=new B("Invalid vod media renderer")}if(X instanceof B)return X;p=Object.assign({},d,N,{y$:q,renderingContent:V.renderingContent,clientMetadata:new h4(X),eb:Tm(t,p)(d),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData});V=g.n(V.renderingContent,SB);if(!V||!m$(V))return new B("Invalid meida renderer");c=w2(c,V.externalVideoId);c.instreamVideoAdRenderer=V;c.b7="AD_PLACEMENT_KIND_START";return M?(E=Xm(T,p,E,S,t,D,J,Z,!1),E instanceof B?E:z_Y(p.layoutId,T)&&E?{layout:Object.assign({},p,{clientMetadata:new h4(X.concat(new l6(E)))})}:{layout:p,p7:E}): {layout:p}}; xRy=function(p,C,V,N,H){if(!Zd(C))return new B("Invalid PlayerBytesAdLayoutRenderer");var X=g.n(C.renderingContent,lv);if(!X||X.durationMilliseconds===void 0)return new B("Invalid endcap renderer");var d={layoutId:C.adLayoutMetadata.layoutId,layoutType:C.adLayoutMetadata.layoutType,Br:"adapter"};N=[new $_(X.durationMilliseconds),new WV({impressionCommands:void 0,abandonCommands:X.abandonCommands?[{commandExecutorCommand:X.abandonCommands}]:void 0,completeCommands:X.completionCommands}),new jT(N), new ST("LAYOUT_TYPE_ENDCAP")];if(H){N.push(new NG(H.h8.adPodIndex-1));N.push(new ow(H.h8.adPodIndex));var a;N.push(new HV((a=H.adPodSkipTarget)!=null?a:-1))}return Object.assign({},d,H0,{renderingContent:C.renderingContent,clientMetadata:new h4(N),y$:X.skipPings?new Map([["skip",X.skipPings]]):new Map,eb:Tm(V,p)(d),adLayoutLoggingData:C.adLayoutMetadata.adLayoutLoggingData})}; Xm=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 B("Invalid InPlayer slot association for the given PlayerBytes layout");p=p[0];d=KIj(p,X,V,N,d);if(d instanceof B)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, T3e);if(!l||!iSQ(l))return new B("Invalid InPlayerAdLayoutRenderer");d={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,Br:"core"};V=j8(l,V,N);if(V instanceof B)return V;N=[];E&&N.push(new k_({}));if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")N.push.apply(N,g.K(R_X(p.adSlotMetadata.triggerEvent,C)));else if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")N.push(new jT(Vn(p.adSlotMetadata.triggerEvent))),a&&N.push(a);else return new B("Not able to parse an SDF InPlayer layout"); H=Object.assign({},d,V,{renderingContent:l.renderingContent,y$:new Map,eb:Tm(H,X)(d),clientMetadata:new h4(N),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},X,{fulfilledLayout:H,clientMetadata:new h4([])})}}; R_X=function(p,C){var V=[];V.push(new jT(Vn(p)));V.push(new vV(C.layoutId));(p=sf(C.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&V.push(new u6(p));(p=sf(C.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&V.push(new Xw(p));(p=sf(C.clientMetadata,"metadata_type_remote_slots_data"))&&V.push(new PV(p));(p=sf(C.clientMetadata,"metadata_type_ad_next_params"))&&V.push(new g_(p));(p=sf(C.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&V.push(new WJ(p));(p= sf(C.clientMetadata,"metadata_type_ad_pod_info"))&&V.push(new Vy(p));(C=sf(C.clientMetadata,"metadata_type_ad_video_id"))&&V.push(new dg(C));return V}; Y0a=function(p,C,V,N,H,X){function d(l){return d6(C,l)} var a=N.f3.inPlayerSlotId,E={layoutId:N.f3.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Br:"core"};V={slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:new YP(d,p),slotFulfillmentTriggers:[new pj(d,a)],slotExpirationTriggers:[new Cj(d,a),new rF(d,V)]};p=Object.assign({},E,{layoutExitNormalTriggers:[new Rl(d,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],y$:new Map,clientMetadata:new h4([new cV(N.f3), new jT(N.adPlacementConfig),H]),eb:Tm(X,V)(E),adLayoutLoggingData:N.f3.adLayoutLoggingData});return Object.assign({},V,{clientMetadata:new h4([new Rw(p)])})}; z_Y=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,y9);if(N&&(N=g.n(N.renderingContent,fj))&&N.associatedPlayerBytesLayoutId===p)return V}}; KIj=function(p,C,V,N,H){var X=n9S(nj(p.slotEntryTrigger,V,N),H,p,C);if(X instanceof B)return X;for(var d=[],a=g.F(p.slotFulfillmentTriggers),E=a.next();!E.done;E=a.next()){E=nj(E.value,V,N);if(E instanceof B)return E;d.push(E)}d=e_S(d,H,p,C);C=[];p=g.F(p.slotExpirationTriggers);for(H=p.next();!H.done;H=p.next()){H=nj(H.value,V,N);if(H instanceof B)return H;C.push(H)}return{slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:C}}; n9S=function(p,C,V,N){return C&&V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&p instanceof AV?new Il(function(H){return d6(N,H)},V.adSlotMetadata.slotId):p}; e_S=function(p,C,V,N){return C&&V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?p.map(function(H){return H instanceof pj?new NB(function(X){return d6(N,X)},V.adSlotMetadata.slotId):H}):p}; j8=function(p,C,V){for(var N=[],H=g.F(p.layoutExitNormalTriggers||[]),X=H.next();!X.done;X=H.next()){X=nj(X.value,C,V);if(X instanceof B)return X;N.push(X)}H=[];X=g.F(p.layoutExitSkipTriggers||[]);for(var d=X.next();!d.done;d=X.next()){d=nj(d.value,C,V);if(d instanceof B)return d;H.push(d)}X=[];d=g.F(p.layoutExitMuteTriggers||[]);for(var a=d.next();!a.done;a=d.next()){a=nj(a.value,C,V);if(a instanceof B)return a;X.push(a)}d=[];p=g.F(p.layoutExitUserInputSubmittedTriggers||[]);for(a=p.next();!a.done;a= p.next()){a=nj(a.value,C,V);if(a instanceof B)return a;d.push(a)}return{layoutExitNormalTriggers:N,layoutExitSkipTriggers:H,layoutExitMuteTriggers:X,layoutExitUserInputSubmittedTriggers:d,Wa:[]}}; N3=function(p){var C=g.n(p.renderingContent,SB);if(C==null?0:C.pings)return y6(C.pings);p=g.n(p.renderingContent,lv);return(p==null?0:p.skipPings)?new Map([["skip",p.skipPings]]):new Map}; bUa=function(p,C,V,N,H){C=g.n(C.renderingContent,SB);if(!C)return new B("Invalid rendering content for DAI media layout");p=[new i6(N),new Or(V.rM.videoLengthSeconds),new yy(V.rM.playerVars),new b6(V.vX),new Aa(V.uS),new ow(V.JW),new jT(Vn(p)),new dg(V.rM.adVideoId),new Vy(V.h8),C.sodarExtensionData&&new Iw(C.sodarExtensionData),new u6({current:null}),new k_({}),new BV(Oz(C.pings))].filter(S0S);H!==void 0&&p.push(new zc(H));return p}; Ifa=function(p,C,V){p=p.map(function(E){return Q9(g.n(E.renderingContent,SB),!1)}); var N=p.map(function(E){return E.videoLengthSeconds}),H=N.map(function(E,l){return new bb(l,N)}),X=C,d=V,a=[]; p.forEach(function(E,l){d=Math.min(X+E.videoLengthSeconds*1E3,V);eB(E.playerVars,H[l]);a.push({rM:E,vX:X,uS:d,JW:l,h8:H[l]});X=d}); return a}; Ada=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,SB)){if(!m$(X))return new B("Invalid vod media renderer");N.push(PeX(X))}H=N.map(function(c){return c.eE}); X=[];for(var d=0,a=0;a0?Q:-1;else if(m=g.n(G,lv)){G=C8V(p,C,V,m,X,S,a,L,Q);if(G instanceof B){M=G;break a}G= G(T);D.push(G.EE);Z=[].concat(g.K(G.Cp),g.K(Z));f=[].concat(g.K(G.n$),g.K(f));G.p7&&(au=[G.p7].concat(g.K(au)))}else if(m=g.n(G,Dd)){if(M===void 0){M=new B("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:m});break a}G=N_e(p,C,V,X,m,W,a,M,S,Gm(t,"supports_multi_step_on_desktop"));if(G instanceof B){M=G;break a}G=G(T);D.push(G.EE);G.p7&&au.push(G.p7);Z=[].concat(g.K(G.Cp),g.K(Z));f=[].concat(g.K(G.n$),g.K(f));q=[].concat(g.K(G.wH),g.K(q));A=[].concat(g.K(G.Q4), g.K(A));Y=[W].concat(g.K(Y))}else if(G=g.n(G,un)){G=HWY(p,C,V,X,G,W,a,S);if(G instanceof B){M=G;break a}G=G(T);D.push(G.EE);G.p7&&au.push(G.p7);f=[].concat(g.K(G.n$),g.K(f))}else{M=new B("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}M={oa:D,layoutExitSkipTriggers:Z,layoutExitUserInputSubmittedTriggers:q,Wa:A,layoutExitMuteTriggers:f,OI:Y,uW:au}}}else a:if(S=lkH(N,V,t),S instanceof B)M=S;else{D=0;Z=[];f=[];q=[];A=[];Y=[];W=[];L=new ZS({current:null});VL=new Xw({current:null}); au=!1;e=[];Q=-1;J=g.F(N);for(G=J.next();!G.done;G=J.next())if(G=G.value,g.n(G,Kj)){G=jEY(C,V,g.n(G,Kj),a);if(G instanceof B){M=G;break a}G=G(T);Z.push(G.EE);f=[].concat(g.K(G.Cp),g.K(f));q=[].concat(g.K(G.n$),g.K(q));G.p7&&(e=[G.p7].concat(g.K(e)))}else if(g.n(G,SB)){Q=r2(g.n(G,SB),V,t);if(Q instanceof iH){M=new B(Q);break a}G=new bb(D,S);G=tsX(C,Q.layoutId,Q.Ic,V,BP(Q.playerVars,Q.cC,d,l,G),Q.eE,X,G,a(T),VL,E.get(Q.Ic.externalVideoId),void 0,c);D++;Z.push(G.EE);f=[].concat(g.K(G.Cp),g.K(f));q=[].concat(g.K(G.n$), g.K(q));au||(W.push(VL),au=!0);Q=(Q=Q.Ic.adPodSkipTarget)&&Q>0?Q:-1}else if(g.n(G,lv)){G=C8V(p,C,V,g.n(G,lv),X,D,a,VL,Q);if(G instanceof B){M=G;break a}G=G(T);Z.push(G.EE);f=[].concat(g.K(G.Cp),g.K(f));q=[].concat(g.K(G.n$),g.K(q));G.p7&&(e=[G.p7].concat(g.K(e)))}else if(g.n(G,Dd)){if(M===void 0){M=new B("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.n(G,Dd)});break a}G=N_e(p,C,V,X,g.n(G,Dd),L,a,M,D,Gm(t,"supports_multi_step_on_desktop")); if(G instanceof B){M=G;break a}G=G(T);Z.push(G.EE);G.p7&&e.push(G.p7);f=[].concat(g.K(G.Cp),g.K(f));q=[].concat(g.K(G.n$),g.K(q));A=[].concat(g.K(G.wH),g.K(A));Y=[].concat(g.K(G.Q4),g.K(Y));W=[L].concat(g.K(W))}else if(g.n(G,un)){G=HWY(p,C,V,X,g.n(G,un),L,a,D);if(G instanceof B){M=G;break a}G=G(T);Z.push(G.EE);G.p7&&e.push(G.p7);q=[].concat(g.K(G.n$),g.K(q))}else{M=new B("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}M={oa:Z,layoutExitSkipTriggers:f,layoutExitUserInputSubmittedTriggers:A, Wa:Y,layoutExitMuteTriggers:q,OI:W,uW:e}}M instanceof B?T=M:(Y=T.slotId,S=M.oa,D=M.layoutExitSkipTriggers,Z=M.layoutExitMuteTriggers,f=M.layoutExitUserInputSubmittedTriggers,q=M.OI,T=a(T),A=H?H.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Y=H?H.layoutId:ps(C.C.get(),A,Y),W={layoutId:Y,layoutType:A,Br:"core"},T={layout:{layoutId:Y,layoutType:A,y$:new Map,layoutExitNormalTriggers:[new Q4(C.T,Y)],layoutExitSkipTriggers:D,layoutExitMuteTriggers:Z,layoutExitUserInputSubmittedTriggers:f,Wa:[],Br:"core", clientMetadata:new h4([new Ur(S)].concat(g.K(q))),eb:T(W)},uW:M.uW});return T}}; lkH=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,SB)){H=r2(g.n(H,SB),C,V);if(H instanceof iH)return new B(H);N.push(H.eE)}return N}; T_u=function(p,C,V,N,H,X,d,a){if(!SnL(V,a===void 0?!1:a))return new B("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:V});var E=Lj(V);if(E<=0)return new B("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:V});var l=new ZS({current:null}),t=$Q9(p,C,V,l,N,X,d);return cq9(p,N,X,E,H,function(c,T){var M=c.slotId,J=g2(V);c=d(c);var S,D=(S=aY(C,N,V.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?S: ps(C.C.get(),"LAYOUT_TYPE_MEDIA_BREAK",M);M={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Br:"core"};S=t(D,T);var Z=sf(S.clientMetadata,"metadata_type_fulfilled_layout");Z||vE("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");J=[new jT(N),new $_(E),new WV(J),l];Z&&J.push(new ST(Z.layoutType));return{wrx:{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",y$:new Map,layoutExitNormalTriggers:[new Q4(C.T,D)],layoutExitSkipTriggers:[new GT(C.T, T.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Xg(C.T,T.layoutId)],Wa:[],Br:"core",clientMetadata:new h4(J),eb:c(M)},kak:S}})}; Msu=function(p){if(!uXV(p))return!1;var C=g.n(p.adVideoStart,Td);return C?g.n(p.linearAd,SB)&&MB(C)?!0:(vE("Invalid Sandwich with notify"),!1):!1}; Jqv=function(p){if(p.linearAds==null)return!1;p=g.n(p.adStart,Td);return p?MB(p)?!0:(vE("Invalid LASR with notify"),!1):!1}; mge=function(p){if(!DQX(p))return!1;p=g.n(p.adStart,Td);return p?MB(p)?!0:(vE("Invalid LASR with notify"),!1):!1}; M3=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.Iz=a;this.L9=E;this.loadPolicy=l===void 0?1:l}; y0e=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(JM);var c=V.filter(mQy),T=N.filter(JM),M=new Map,J=FIj(C),S=V.some(function(m){var P;return(m==null?void 0:(P=m.adSlotMetadata)==null?void 0:P.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),D=V.some(function(m){var P; return(m==null?void 0:(P=m.adSlotMetadata)==null?void 0:P.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),Z=V.some(function(m){var P; return(m==null?void 0:(P=m.adSlotMetadata)==null?void 0:P.slotType)==="SLOT_TYPE_IN_PLAYER"}); V=V.some(function(m){var P,p0;return(m==null?void 0:(P=m.adSlotMetadata)==null?void 0:P.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(m==null?void 0:(p0=m.adSlotMetadata)==null?void 0:p0.slotType)==="SLOT_TYPE_ABOVE_FEED"}); if(S||D||Z||V)l=ffa(c,C,a,H,J,p.Mt.get(),p.loadPolicy,M,p.x_.get(),p.S.get(),Z,d,E,l),l instanceof B?vE(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=vYL(p,M,V,H,X,d,S,a,J,E,c),D instanceof B?vE(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));FCs(p.x_.get())||(X=SFj(p,T,H,a,J,M),t.push.apply(t,g.K(X)));if(p.V===null||d&&!a.j$){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 Y,W,L,VL;vE("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":C.length,contentCpn:H,"first APR kind":(Y=C[0])==null?void 0:(W=Y.config)==null?void 0:(L=W.adPlacementConfig)==null?void 0:L.kind,renderer:(VL=C[0])==null?void 0:VL.renderer})}return t}f= N.filter(JM);t.push.apply(t,g.K(ex9(M,f,p.C.get(),p.V,H,S)));if(!t.length){var au,Q,e,G;vE("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:(Q=au.config)==null?void 0:(e=Q.adPlacementConfig)==null?void 0:e.kind,renderer:(G=C[0])==null?void 0:G.renderer})}return t}; SFj=function(p,C,V,N,H,X){function d(T){return Tm(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&&Msu(t)?(vE("Found AdNotify with SandwichedLinearAdRenderer"),c=g.n(t.adVideoStart,Td),t=g.n(t.linearAd,SB),PP(X,l,E.config.adPlacementConfig.kind),l=void 0,c=afY((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 B?vE(c):a.push.apply(a,g.K(c))): c&&(!c.adLayoutMetadata&&Jqv(c)||c.adLayoutMetadata&&mge(c))&&(vE("Found AdNotify with LinearAdSequenceRenderer"),PP(X,l,E.config.adPlacementConfig.kind),l=void 0,t=XJQ((l=g.n(c.adStart,Td))==null?void 0:l.layout.layoutId,p.C.get(),p.T.get(),E.config.adPlacementConfig,E.adSlotLoggingData,c.linearAds,sT(c.adLayoutMetadata)?c.adLayoutMetadata:void 0,V,N,d,H,p.loadPolicy,p.x_.get()),t instanceof B?vE(t):a.push.apply(a,g.K(t)))}return a}; vYL=function(p,C,V,N,H,X,d,a,E,l,t){function c(Z){return Tm(p.Mt.get(),Z)} var T=V.renderer,M=V.config.adPlacementConfig,J=M.kind,S=V.adSlotLoggingData,D=a.j$&&J==="AD_PLACEMENT_KIND_START";D=X&&!D;if(T.adsEngagementPanelRenderer!=null)return $r(C,V.elementId,J,T.adsEngagementPanelRenderer.isContentVideoEngagementPanel,T.adsEngagementPanelRenderer.adVideoId,T.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var Y=p.T.get(),W=Z.slotId,L=T.adsEngagementPanelRenderer;Z=Tm(p.Mt.get(),Z);return JL(Y,W,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new $Y(L),f,q,L.impressionPings,Z,T.adsEngagementPanelRenderer.adLayoutLoggingData,A)}),[]; if(T.adsEngagementPanelLayoutViewModel)return $r(C,V.elementId,J,T.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,T.adsEngagementPanelLayoutViewModel.adVideoId,T.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var Y=p.T.get(),W=Z.slotId,L=T.adsEngagementPanelLayoutViewModel;Z=Tm(p.Mt.get(),Z);return mH(Y,W,"LAYOUT_TYPE_PANEL",new LW(L),f,q,Z,T.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,A)}),[]; if(T.actionCompanionAdRenderer!=null){if(T.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return xQS(p.C.get(),p.V,p.T.get(),T.actionCompanionAdRenderer,M,S,N,c);$r(C,V.elementId,J,T.actionCompanionAdRenderer.isContentVideoCompanion,T.actionCompanionAdRenderer.adVideoId,T.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var Y=p.T.get(),W=Z.slotId,L=T.actionCompanionAdRenderer;Z=Tm(p.Mt.get(),Z);return JL(Y,W,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new PJ(L),f,q,L.impressionPings,Z,T.actionCompanionAdRenderer.adLayoutLoggingData,A)})}else if(T.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(T.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return YnX(p.C.get(),p.V,p.T.get(),T.topBannerImageTextIconButtonedLayoutViewModel,M,S,N,c); $r(C,V.elementId,J,T.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,T.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,T.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var Y=p.T.get(),W=Z.slotId,L=T.topBannerImageTextIconButtonedLayoutViewModel;Z=Tm(p.Mt.get(),Z);return mH(Y,W,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new w_(L),f,q,Z,T.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,A)})}else if(T.imageCompanionAdRenderer)$r(C, V.elementId,J,T.imageCompanionAdRenderer.isContentVideoCompanion,T.imageCompanionAdRenderer.adVideoId,T.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var Y=p.T.get(),W=Z.slotId,L=T.imageCompanionAdRenderer; Z=Tm(p.Mt.get(),Z);return JL(Y,W,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new r_(L),f,q,L.impressionPings,Z,T.imageCompanionAdRenderer.adLayoutLoggingData,A)}); else if(T.bannerImageLayoutViewModel)$r(C,V.elementId,J,T.bannerImageLayoutViewModel.isContentVideoCompanion,T.bannerImageLayoutViewModel.adVideoId,T.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var Y=p.T.get(),W=Z.slotId,L=T.bannerImageLayoutViewModel;Z=Tm(p.Mt.get(),Z);return mH(Y,W,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new BJ(L),f,q,Z,T.bannerImageLayoutViewModel.adLayoutLoggingData,A)}); else if(T.shoppingCompanionCarouselRenderer)$r(C,V.elementId,J,T.shoppingCompanionCarouselRenderer.isContentVideoCompanion,T.shoppingCompanionCarouselRenderer.adVideoId,T.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var Y=p.T.get(),W=Z.slotId,L=T.shoppingCompanionCarouselRenderer;Z=Tm(p.Mt.get(),Z);return JL(Y,W,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Gf(L),f,q,L.impressionPings,Z,T.shoppingCompanionCarouselRenderer.adLayoutLoggingData,A)}); else if(T.adBreakServiceRenderer){if(!oi9(V))return[];if(J==="AD_PLACEMENT_KIND_PAUSE")return A0L(p.C.get(),M,S,V.renderer.adBreakServiceRenderer,N);if(J!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&J!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return bSy(p.C.get(),M,S,V.renderer.adBreakServiceRenderer,N,H,X);a.p4||vE("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 B("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!p.L9)return new B("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");p.L9.W2({adPlacementRenderer:V,contentCpn:N,C$:H});H=p.mx.get().getCurrentTimeSec(1,!1);return KCj(p.C.get(),V.renderer.adBreakServiceRenderer,M,H,N,S,X)}if(!p.Iz)return new B("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); p.Iz.W2({adPlacementRenderer:V,contentCpn:N,C$:H})}else{if(T.clientForecastingAdRenderer)return g9Q(p.C.get(),p.T.get(),M,S,T.clientForecastingAdRenderer,N,H,c);if(T.invideoOverlayAdRenderer)return Bcj(p.C.get(),p.T.get(),M,S,T.invideoOverlayAdRenderer,N,H,c);if(T.instreamAdPlayerOverlayRenderer)return Q41(p.C.get(),p.T.get(),M,S,T.instreamAdPlayerOverlayRenderer,N,c);if((T.linearAdSequenceRenderer||T.instreamVideoAdRenderer)&&D)return HUQ(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[];PP(C,T,J);if(T.linearAdSequenceRenderer.adLayoutMetadata){if(!DQX(T.linearAdSequenceRenderer))return new B("Received invalid LinearAdSequenceRenderer.")}else if(T.linearAdSequenceRenderer.linearAds==null)return new B("Received invalid LinearAdSequenceRenderer.");if(g.n(T.linearAdSequenceRenderer.adStart,Td)){vE("Found AdNotify in LinearAdSequenceRenderer");V=g.n(T.linearAdSequenceRenderer.adStart,Td);if(!dQv(V))return new B("Invalid AdMessageRenderer."); X=T.linearAdSequenceRenderer.linearAds;return dgS(p.S.get(),p.C.get(),p.T.get(),p.Mt.get(),M,S,V,sT(T.linearAdSequenceRenderer.adLayoutMetadata)?T.linearAdSequenceRenderer.adLayoutMetadata:void 0,X,N,H,a,c,E,p.loadPolicy,p.x_.get())}return EYj(p.C.get(),p.T.get(),M,S,T.linearAdSequenceRenderer.linearAds,sT(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[];PP(C,T,J);return TcQ(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 T_u(p.C.get(),p.T.get(),T.instreamSurveyAdRenderer,M,S,N,c,Gm(p.x_.get(),"supports_multi_step_on_desktop"));if(T.sandwichedLinearAdRenderer!=null)return uXV(T.sandwichedLinearAdRenderer)?g.n(T.sandwichedLinearAdRenderer.adVideoStart,Td)?(vE("Found AdNotify in SandwichedLinearAdRenderer"),V=g.n(T.sandwichedLinearAdRenderer.adVideoStart, Td),dQv(V)?(X=g.n(T.sandwichedLinearAdRenderer.linearAd,SB))?E9V(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 B("Missing IVAR from Sandwich"):new B("Invalid AdMessageRenderer.")):EYj(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 B("Received invalid SandwichedLinearAdRenderer.");if(T.videoAdTrackingRenderer!=null)return a=Gm(p.x_.get(),"enable_h5_shorts_ad_terminal_events")&& a.fq,$RQ(p.C.get(),p.T.get(),T.videoAdTrackingRenderer,M,S,N,H,a,c)}}return[]}; v0=function(p,C,V,N,H,X,d,a){g.z.call(this);var E=this;this.C=p;this.V=C;this.UO=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)})}; uqY=function(p,C,V){var N=p.mx.get().getCurrentTimeSec(1,!1);p.x_.get().N.K().Gk()&&al(p.No.get(),"sdai","onopp.1;evt."+V.event+";start."+V.startSecs.toFixed(3)+";d."+V.zI.toFixed(3));mk(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=Fm(p.x_.get()),l=p.No;if(H.x_.get().N.K().experiments.OY("enable_smearing_expansion_dai")){var t=g.Mz(H.x_.get().N.K().experiments, "max_prefetch_window_sec_for_livestream_optimization");var c=g.Mz(H.x_.get().N.K().experiments,"min_prefetch_offset_sec_for_livestream_optimization");E={tW:Dgu(V),qz:!1,cueProcessedMs:N*1E3};var T=V.startSecs+V.zI;if(N===0)E.gj=new Od(0,T*1E3);else{c=V.startSecs-c;var M=c-N;E.gj=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={tW:Dgu(V),qz:!1},T=V.startSecs+V.zI,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.gj=E;H=Rd(H,X,d,t,a,[new fF(V)]);l.get().N.bz(t.gj.start/1E3-N,V.startSecs-N);return[H]})}; S8=function(p){var C,V=(C=sf(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:C.current;if(!V)return null;C=sf(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var N=p.layoutId,H=sf(p.clientMetadata,"metadata_type_content_cpn"),X=sf(p.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),d=sf(p.clientMetadata,"metadata_type_player_overlay_layout_renderer"),a=sf(p.clientMetadata,"metadata_type_player_underlay_renderer"),E=sf(p.clientMetadata, "metadata_type_ad_placement_config"),l=sf(p.clientMetadata,"metadata_type_video_length_seconds");var t=HU(p.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?sf(p.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):HU(p.clientMetadata,"metadata_type_layout_enter_ms")&&HU(p.clientMetadata,"metadata_type_layout_exit_ms")?(sf(p.clientMetadata,"metadata_type_layout_exit_ms")-sf(p.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{FC:N,contentCpn:H,Gm:V,ke:C,instreamAdPlayerOverlayRenderer:X, playerOverlayLayoutRenderer:d,instreamAdPlayerUnderlayRenderer:a,adPlacementConfig:E,videoLengthSeconds:l,xg:t,inPlayerLayoutId:sf(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:sf(p.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; UgH=function(p,C){return ZWy(p,C)}; fkS=function(p,C){C=ZWy(p,C);if(!C)return null;var V;C.xg=(V=sf(p.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:V.adBreakRemainingLengthSeconds;return C}; ZWy=function(p,C){var V,N=(V=sf(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:V.current;if(!N)return null;V=gG1(p,C);return{KU:LhY(p,C),adPlacementConfig:sf(p.clientMetadata,"metadata_type_ad_placement_config"),gN:V,contentCpn:sf(p.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:sf(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:sf(p.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:sf(p.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,xg:void 0,Gm:N,FC:p.layoutId,videoLengthSeconds:sf(p.clientMetadata,"metadata_type_video_length_seconds")}}; Ka=function(p,C,V,N,H,X,d,a,E){g.z.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.OE=!0}; OWY=function(p,C,V){return mR1(p.T.get(),C.contentCpn,C.FC,function(N){return v9H(p.C.get(),N.slotId,V,C.adPlacementConfig,C.FC,Tm(p.Mt.get(),N))})}; DY=function(p,C,V,N,H,X,d,a){g.z.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}; u_=function(p){g.z.call(this);this.T=p}; mk=function(p,C,V,N){p.T().GI(C,N);V=V();p=p.T();p.hQ.vJ("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.cz("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",V);N.hQ.cz("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",V);try{var H=N.T;if(g.FG(V.slotId))throw new B("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(uH(H,V))throw new B("Duplicate registration for slot.",{slotId:V.slotId,slotEntryTriggerType:V.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!H.zW.fv.has(V.slotType))throw new B("No fulfillment adapter factory registered for slot of type: "+V.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!H.zW.l3.has(V.slotType))throw new B("No SlotAdapterFactory registered for slot of type: "+V.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");eU(H,"TRIGGER_CATEGORY_SLOT_ENTRY",V.slotEntryTrigger?[V.slotEntryTrigger]:[]);eU(H,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", V.slotFulfillmentTriggers);eU(H,"TRIGGER_CATEGORY_SLOT_EXPIRATION",V.slotExpirationTriggers);var X=N.T,d=V.slotType+"_"+V.slotPhysicalPosition,a=x6(X,d);if(uH(X,V))throw new B("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");a.set(V.slotId,new nJQ(V));X.T.set(d,a)}catch(VL){VL instanceof B&&VL.bT?(N.hQ.jI("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",VL.bT,V),vE(VL,V,void 0,void 0,VL.oX)):(N.hQ.jI("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", V),vE(VL,V));break a}uH(N.T,V).Y=!0;try{var E=N.T,l=uH(E,V),t=V.slotEntryTrigger,c=E.zW.oi.get(t.triggerType);c&&(c.Uv("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.zW.oi.get(J.triggerType);S&&(S.Uv("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.zW.oi.get(f.triggerType);q&&(q.Uv("TRIGGER_CATEGORY_SLOT_EXPIRATION", f,V,null),l.Z.set(f.triggerId,q))}var A=E.zW.fv.get(V.slotType).get().build(E.V,V);l.D=A;var Y=E.zW.l3.get(V.slotType).get().build(E.W,V);Y.init();l.C=Y}catch(VL){VL instanceof B&&VL.bT?(N.hQ.jI("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",VL.bT,V),vE(VL,V,void 0,void 0,VL.oX)):(N.hQ.jI("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",V),vE(VL,V));SU(N,V,!0);break a}N.hQ.cz("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",V);N.T.HR(V);for(var W=g.F(N.C),L=W.next();!L.done;L= W.next())L.value.HR(V);fP(N,V)}}; ZY=function(p,C,V,N,H){g.z.call(this);var X=this;this.C=p;this.V=C;this.f1=V;this.context=H;this.T=new Map;N.get().addListener(this);this.addOnDisposeCallback(function(){N.fS()||N.get().removeListener(X)})}; faQ=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 $P?(V=Math.min(V,X.T.start),N=Math.max(N,X.T.end)):vE("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.f1.get().addCueRange(V,N.start,N.end,!1,p);Zs(p.context.x_.get())&&(C=N.start,N=N.end,H={},p.context.Jg.Wz("tcrr",(H.cid=V,H.sm=C,H.em=N,H)))}; UA=function(){g.z.apply(this,arguments);this.OE=!0;this.a5=new Map;this.T=new Map}; fa=function(p,C){p=g.F(p.a5.values());for(var V=p.next();!V.done;V=p.next())if(V.value.layoutId===C)return!0;return!1}; OA=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}vE("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.FG(C)),layoutId:C})}; yqj=function(){this.T=new Map}; qFs=function(p,C){this.callback=p;this.slot=C}; yn=function(){}; IkH=function(p,C,V){this.callback=p;this.slot=C;this.mx=V}; bWv=function(p,C,V){this.callback=p;this.slot=C;this.mx=V;this.C=!1;this.T=0}; Aqj=function(p,C,V){this.callback=p;this.slot=C;this.mx=V}; q3=function(p){this.mx=p}; IY=function(p){g.z.call(this);this.pN=p;this.ix=new Map}; b_=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 Xg&&X.triggeringLayoutId===C&&V.push(H)}V.length?A4(p.pN(),V):vE("Survey is submitted but no registered triggers can be activated.")}; AL=function(p,C,V){IY.call(this,p);var N=this;this.x_=V;C.get().addListener(this);this.addOnDisposeCallback(function(){C.fS()||C.get().removeListener(N)})}; oY=function(p){g.z.call(this);this.T=p;this.OE=!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}; kx=function(p){g.z.call(this);this.T=p;this.ix=new Map}; xx=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&&A4(p.T(),V)}; Yx=function(p,C,V){g.z.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)})}; zd=function(p,C,V,N,H){g.z.call(this);var X=this;this.C=p;this.f1=C;this.mx=V;this.pS=N;this.context=H;this.OE=!0;this.ix=new Map;this.T=new Set;V.get().addListener(this);this.addOnDisposeCallback(function(){V.fS()||V.get().removeListener(X)})}; oYX=function(p,C,V,N,H,X,d,a,E,l){if(Z5(p.pS.get(),1).clientPlaybackNonce!==E)throw new B("Cannot register CueRange-based trigger for different content CPN",{trigger:V});p.ix.set(V.triggerId,{YW:new hM(C,V,N,H),cueRangeId:X});p.f1.get().addCueRange(X,d,a,l,p);Zs(p.context.x_.get())&&(E={},p.context.Jg.Wz("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)))}; kfS=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""}; RY=function(p,C){g.z.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().Ij)==null?void 0:N.slotId)||null}; xgv=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}; na=function(p){g.z.call(this);this.T=p;this.OE=!0;this.ix=new Map}; Cr=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 Q4){var d;if(d=X.trigger.layoutId===C){d=V;var a=A3L.get(X.category);d=a?a===d:!1}d&&N.push(X)}N.length&&A4(p.T(),N)}; e8=function(p){g.z.call(this);this.T=p;this.OE=!0;this.ix=new Map}; P0=function(p,C,V,N,H){g.z.call(this);var X=this;this.W=p;this.UO=C;this.mx=V;this.No=N;this.T=null;this.OE=!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)})}; zsj=function(p){p.T&&(p.C&&(p.C.stop(),p.C.start()),YFa(p,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; YFa=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&&A4(p.W(),V)}; w6=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 eI||E instanceof PS||E instanceof Lr){if(H&&E.breakDurationMs!==V)continue;if(!H&&E.breakDurationMs===V)continue;if(N.has(E.triggerId))continue}X.push(a)}}X.length>0&&A4(p.W(),X)}; Rs9=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)}; nYu=function(p){p=p.adPlacementRenderer.config.adPlacementConfig;if(p.prefetchModeConfig&&p.prefetchModeConfig.cacheFetchRefreshDurationMs&&(p=Number(p.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(p)||p<=0)))return p}; $x=function(p){p.T=null;p.ix.clear();p.V.clear();p.C&&p.C.stop();p.S&&p.S.stop()}; La=function(p){g.z.call(this);this.V=p;this.OE=!0;this.ix=new Map;this.T=new Map;this.C=new Map}; esL=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}; g6=function(p){g.z.call(this);this.T=p;this.ix=new Map}; P8S=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 Il&&H.trigger.slotId===C&&V.push(H);V.length>=1&&A4(p.T(),V)}; wJ9=function(p,C){var V={slotId:v8(C,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Br:"surface",clientMetadata:new h4([])},N=Object,H=N.assign;C=ps(C,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",V.slotId);C={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",y$:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"surface", clientMetadata:new h4([]),eb:f9Q(!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,{Akn:!0,slot:V,layout:C})}; IaH=function(p,C,V,N){var H=p.kind;N=N?!1:!p.hideCueRangeMarker;switch(H){case "AD_PLACEMENT_KIND_START":return N={tW:new Od(-0x8000000000000,-0x8000000000000),qz:N},V!=null&&(N.gj=new Od(-0x8000000000000,-0x8000000000000)),N;case "AD_PLACEMENT_KIND_END":return N={tW:new Od(0x7ffffffffffff,0x8000000000000),qz:N},V!=null&&(N.gj=new Od(Math.max(0,C-V),0x8000000000000)),N;case "AD_PLACEMENT_KIND_MILLISECONDS":H=p.adTimeOffset;H.offsetStartMilliseconds||vE("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); H.offsetEndMilliseconds||vE("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 B("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={tW:new Od(p,H),qz:N};if(V!=null){p=Math.max(0,p-V);if(p===H)return N;N.gj=new Od(p,H)}return N; default:return new B("AdPlacementKind not supported in convertToRange.",{kind:H,adPlacementConfig:p})}}; Dgu=function(p){var C=p.startSecs*1E3;return new Od(C,C+p.zI*1E3)}; $gu=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,z$))==null?void 0:(N=V.adSlotMetadata)==null?void 0:N.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; W0=function(p){this.x_=p;this.C=new Map;this.T=new Map;this.V=new Map}; v8=function(p,C){if(Qn(p.x_.get())){var V=p.C.get(C)||0;V++;p.C.set(C,V);return C+"_"+V}return g.OI(16)}; ps=function(p,C,V){if(Qn(p.x_.get())){var N=p.T.get(C)||0;N++;p.T.set(C,N);return V+"_"+C+"_"+N}return g.OI(16)}; d6=function(p,C){if(Qn(p.x_.get())){var V=p.V.get(C)||0;V++;p.V.set(C,V);return C+"_"+V}return g.OI(16)}; LCS=function(p){var C=[new vV(p.FC),new DS(p.Gm),new jT(p.adPlacementConfig),new Or(p.videoLengthSeconds),new wg(p.xg)];p.instreamAdPlayerOverlayRenderer&&C.push(new ha(p.instreamAdPlayerOverlayRenderer));p.playerOverlayLayoutRenderer&&C.push(new sr(p.playerOverlayLayoutRenderer));p.ke&&C.push(new Xw(p.ke));return C}; gYv=function(p,C,V,N,H,X){p=V.inPlayerLayoutId?V.inPlayerLayoutId:ps(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 Rl(function(l){return d6(X, l)},V.FC)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:C,clientMetadata:N,eb:H(d),adLayoutLoggingData:E}}; r6=function(p,C){var V=this;this.C=p;this.x_=C;this.T=function(N){return d6(V.C.get(),N)}}; v9H=function(p,C,V,N,H,X){V=new h4([new aw(V),new jT(N)]);C=ps(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 Rl(function(d){return d6(p.C.get(),d)},H)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"core",clientMetadata:V,eb:X(N),adLayoutLoggingData:void 0}}; G$=function(p,C,V,N,H){var X=LCS(N);return gYv(C,V,N,new h4(X),H,p.C.get())}; WCj=function(p,C,V,N,H){var X=LCS(N);X.push(new pF(N.KU));X.push(new CF(N.gN));return gYv(C,V,N,new h4(X),H,p.C.get())}; JL=function(p,C,V,N,H,X,d,a,E,l){C=ps(p.C.get(),V,C);var t={layoutId:C,layoutType:V,Br:"core"},c=new Map;d&&c.set("impression",d);d=[new gF(p.T,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];l&&d.push(new zT(p.T,l,["normal"]));return{layoutId:C,layoutType:V,y$:c,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"core",clientMetadata:new h4([N,new jT(X),new vV(H)]),eb:a(t),adLayoutLoggingData:E}}; mH=function(p,C,V,N,H,X,d,a,E){C=ps(p.C.get(),V,C);var l={layoutId:C,layoutType:V,Br:"core"},t=[new gF(p.T,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];E&&t.push(new zT(p.T,E,["normal"]));return{layoutId:C,layoutType:V,y$:new Map,layoutExitNormalTriggers:t,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"core",clientMetadata:new h4([N,new jT(X),new vV(H)]),eb:d(l),adLayoutLoggingData:a}}; hL=function(p,C,V){var N=[];N.push(new WS(p.T,V));C&&N.push(C);return N}; i_=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 ol(p.T,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"core",clientMetadata:new h4([new Qi(N),new jT(H)]),eb:X(a),adLayoutLoggingData:N.adLayoutLoggingData}}; WP=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 Rl(p.T,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"core",clientMetadata:new h4([new jT(N)].concat(g.K(d))),eb:H(E),adLayoutLoggingData:a}}; aY=function(p,C,V,N){if(p.x_.get().sV(C.kind==="AD_PLACEMENT_KIND_START"))if(V===void 0)vE("Expected SSAP layout ID in renderer",void 0,void 0,{caller:N});else return V}; Gks=function(p,C,V,N,H,X,d,a,E,l,t,c,T){p=sA(p,C,V,H,X,d,a,E,c,aY(p,V,N.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),T);C=p.OI;V=new Fw(p.C5);N=p.layoutExitSkipTriggers;l>0&&(C.push(V),C.push(new HV(l)),N=[]);C.push(new NG(t));return{EE:{layoutId:p.layoutId,layoutType:p.layoutType,y$:p.y$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:p.Br,clientMetadata:new h4(C),eb:p.eb,adLayoutLoggingData:p.adLayoutLoggingData}, Cp:N,n$:p.layoutExitMuteTriggers,wH:p.layoutExitUserInputSubmittedTriggers,Q4:p.Wa,p7:p.p7}}; Vsu=function(p,C,V,N,H,X,d,a,E,l){C=sA(p,C,V,N,X,new Map,d,function(t){return a(t,E)},void 0,aY(p,V,H.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); p=new Xg(p.T,C.C5);V=new Fw(C.C5);l=new NG(l);return{EE:{layoutId:C.layoutId,layoutType:C.layoutType,y$:C.y$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:C.Br,clientMetadata:new h4([].concat(g.K(C.OI),[V,l])),eb:C.eb,adLayoutLoggingData:C.adLayoutLoggingData},Cp:C.layoutExitSkipTriggers,n$:C.layoutExitMuteTriggers,wH:[].concat(g.K(C.layoutExitUserInputSubmittedTriggers),[p]),Q4:C.Wa,p7:C.p7}}; sA=function(p,C,V,N,H,X,d,a,E,l,t){C=l!=null?l:ps(p.C.get(),"LAYOUT_TYPE_MEDIA_BREAK",C);l={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Br:"adapter"};a=a(C);var c=sf(a.clientMetadata,"metadata_type_fulfilled_layout");c||vE("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var T=c?c.layoutId:"";V=[new jT(V),new $_(N),new WV(H)];c&&V.push(new ST(c.layoutType));t&&V.push(new ow(t));return{layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", y$:X,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new GT(p.T,T)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"adapter",OI:V,eb:d(l),adLayoutLoggingData:E,p7:a,C5:T}}; MLV=function(p,C,V,N,H,X,d,a,E,l,t){p=QES(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,Wa:p.Wa,Br:p.Br,clientMetadata:new h4(p.D0),eb:p.eb,adLayoutLoggingData:p.adLayoutLoggingData}}; tsX=function(p,C,V,N,H,X,d,a,E,l,t,c,T){C=QES(p,C,"adapter",V,N,H,X,d,a,E,t,c,T);N=C.layoutExitSkipTriggers;H=C.D0;V.adPodSkipTarget&&V.adPodSkipTarget>0&&(H.push(l),H.push(new HV(V.adPodSkipTarget)),N=[]);H.push(new NG(a.adPodIndex));V.isCritical&&(N=[new zT(p.T,C.layoutId,["error"])].concat(g.K(N)));return{EE:{layoutId:C.layoutId,layoutType:C.layoutType,y$:C.y$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:C.Br,clientMetadata:new h4(H), eb:C.eb,adLayoutLoggingData:C.adLayoutLoggingData},Cp:N,n$:C.layoutExitMuteTriggers,wH:C.layoutExitUserInputSubmittedTriggers,Q4:C.Wa}}; QES=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 jT(H),new Vy(E),new dg(N.externalVideoId),new i6(a),new WV({impressionCommands:N.impressionCommands,abandonCommands:N.onAbandonCommands,completeCommands:N.completeCommands,progressCommands:N.adVideoProgressCommands}),new yy(X),new u6({current:null}),new Or(d)];(X=N.playerOverlay.instreamAdPlayerOverlayRenderer)&&H.push(new ha(X));(d=N.playerOverlay.playerOverlayLayoutRenderer)&&H.push(new sr(d)); c&&H.push(new qG(c));(c=N.playerUnderlay)&&H.push(new aw(c));a=v8(p.C.get(),"SLOT_TYPE_IN_PLAYER");c=(c=X?X.elementId:d==null?void 0:d.layoutId)?c:ps(p.C.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);H.push(new Fw(c));H.push(new KF(a));H.push(new ow(E.adPodIndex));N.adNextParams&&H.push(new g_(N.adNextParams));N.shrunkenPlayerBytesConfig&&H.push(new ta(N.shrunkenPlayerBytesConfig));N.clickthroughEndpoint&&H.push(new WJ(N.clickthroughEndpoint));N.legacyInfoCardVastExtension&&H.push(new LF(N.legacyInfoCardVastExtension)); N.sodarExtensionData&&H.push(new Iw(N.sodarExtensionData));t&&H.push(new PV(t));H.push(new BV(Oz(N.pings)));E=y6(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,y9))&&(X=g.n(X.renderingContent,fj))&&X.associatedPlayerBytesLayoutId===C){T=t;break a}T=void 0}T&&H.push(new Er(T))}return{layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",y$:E,layoutExitNormalTriggers:[new Q4(p.T,C)],layoutExitSkipTriggers:N.skipOffsetMilliseconds? [new GT(p.T,c)]:[],layoutExitMuteTriggers:[new GT(p.T,c)],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:V,D0:H,eb:l(M),adLayoutLoggingData:N.adLayoutLoggingData}}; dRL=function(p,C,V,N,H,X,d,a,E){N.every(function(t){return XJ(t,[],["LAYOUT_TYPE_MEDIA"])})||vE("Unexpect subLayout type for DAI composite layout"); C=ps(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 nr(p.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wa:[],Br:"core",clientMetadata:new h4([new b6(V),new Aa(a),new Ur(N),new jT(H),new zc(X),new k_({}),new pP(E)]),eb:d(l)}}; j4v=function(p){return p!=null}; B0=function(p,C,V){var N=this;this.C=p;this.V=C;this.x_=V;this.T=function(H){return d6(N.C.get(),H)}}; KCj=function(p,C,V,N,H,X,d){if(!V.prefetchModeConfig)return new B("AdPlacementConfig for Live Prefetch is missing prefetch_config");V=V.prefetchModeConfig;N*=1E3;var a=[];if(!V.breakLengthMs)return new B("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={tW:new Od(c,c+Number(l)),qz:!1,gj:new Od(Math.floor(t+Math.random()* Number(V.cacheFetchSmearingDurationMs)),c),cueProcessedMs:N?N:t};t=[];t.push(new Nz({}));c=[];c.push(new BS(p.T));c.push(new WAV(p.T));d&&t.push(new k_({}));a.push(Rd(p,C,H,l,X,t,c))}return a}; Rd=function(p,C,V,N,H,X,d){X=X===void 0?[]:X;d=d===void 0?[]:d;var a=v8(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.gj&&N.gj.start!==N.tW.start&&E.push(new $P(p.T,V,new Od(N.gj.start,N.tW.start),!1));E.push(new $P(p.T,V,new Od(N.tW.start,N.tW.end),N.qz));N={getAdBreakUrl:C.getAdBreakUrl,E_:N.tW.start,Sz:N.tW.end,cueProcessedMs:N.cueProcessedMs};C=new V9(p.T,a);X=[new nF(N)].concat(g.K(X));return{slotId:a,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:E,slotExpirationTriggers:[new rF(p.T,V),new Cj(p.T,a),new jB(p.T,a)],Br:"core",clientMetadata:new h4(X),adSlotLoggingData:H}}; B_u=function(p,C,V){var N=[];V=g.F(V);for(var H=V.next();!H.done;H=V.next())N.push(rqv(p,C,H.value));return N}; rqv=function(p,C,V){return V.triggeringSlotId!=null&&V.triggeringSlotId===p?V.clone(C):V}; wha=function(p,C,V,N,H){return Gfa(p,C,V,N,H)}; pJV=function(p,C,V,N){var H=v8(p.C.get(),"SLOT_TYPE_IN_PLAYER");return Gfa(p,H,C,V,N)}; Gfa=function(p,C,V,N,H){var X=new YP(p.T,V),d=[new pj(p.T,C)];p=[new Cj(p.T,C),new rF(p.T,N)];return{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new h4([new Rw(H({slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p},V))]),adSlotLoggingData:void 0}}; cq9=function(p,C,V,N,H,X){var d=v8(p.C.get(),"SLOT_TYPE_PLAYER_BYTES"),a=v8(p.C.get(),"SLOT_TYPE_IN_PLAYER"),E=ps(p.C.get(),"LAYOUT_TYPE_SURVEY",a);N=Gd(p,C,V,N);var l=[new pj(p.T,d)];V=[new Cj(p.T,d),new rF(p.T,V),new ol(p.T,E)];if(N instanceof B)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.wrx;a=a.kak;return[{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:l_(p,C,d,N),slotFulfillmentTriggers:tL(p,C,d,l),slotExpirationTriggers:V,Br:"core",clientMetadata:new h4([new Rw(X),new CP(c0(C)),new VV({ob:p.ob(C)})]),adSlotLoggingData:H},a]}; c0=function(p){return p.kind==="AD_PLACEMENT_KIND_START"}; JdV=function(p,C,V,N,H){H=H?H:v8(p.C.get(),"SLOT_TYPE_IN_PLAYER");V=new YP(p.T,V);var X=[new pj(p.T,H)];p=[new rF(p.T,C),new Cj(p.T,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p,Br:"core",clientMetadata:new h4([new Rw(N({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p}))])}}; mR1=function(p,C,V,N){var H=v8(p.C.get(),"SLOT_TYPE_PLAYER_UNDERLAY");V=new YP(p.T,V);var X=[new pj(p.T,H)];p=[new rF(p.T,C),new Cj(p.T,H)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p,Br:"core",clientMetadata:new h4([new Rw(N({slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p}))])}}; s4Y=function(p,C,V,N,H,X,d){var a=v8(p.C.get(),"SLOT_TYPE_IN_PLAYER"),E=ps(p.C.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",a);N=pVX(p,N,X,d,E);if(N instanceof B)return N;d=[new pj(p.T,a)];H=[new rF(p.T,X),new pj(p.T,H),new HP(p.T,H)];V=Tm(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 ViV(p.T,E,C.durationMs)],layoutExitSkipTriggers:[new HSu(p.T,E,C.durationMs)],Wa:[new N3u(p.T,E)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Br:"core",clientMetadata:new h4([new gg(C)]),eb:V(X)};return{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:N,slotFulfillmentTriggers:d,slotExpirationTriggers:H,clientMetadata:new h4([new Rw(C)])}}; rd1=function(p,C,V,N,H,X){C=Gd(p,C,V,N);if(C instanceof B)return C;var d=C instanceof $P?new phY(p.T,V,C.T):null;N=v8(p.C.get(),"SLOT_TYPE_IN_PLAYER");var a=[new pj(p.T,N)];p=[new rF(p.T,V),new Cj(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 iH?new B(X):{slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:a,slotExpirationTriggers:p, Br:"core",clientMetadata:new h4([new Rw(X)]),adSlotLoggingData:H}}; WIX=function(p,C,V,N){var H=v8(p.C.get(),"SLOT_TYPE_IN_PLAYER"),X=new AV(p.T,C),d=[new NB(p.T,H)];p=[new rF(p.T,C),new Cj(p.T,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new h4([new Rw(N({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p}))]),adSlotLoggingData:V}}; r0H=function(p,C,V,N){var H=v8(p.C.get(),"SLOT_TYPE_IN_PLAYER");V=new YP(p.T,V);var X=[new pj(p.T,H)],d=[new Cj(p.T,H),new rF(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 pj(p.T,H)],slotExpirationTriggers:[new rF(p.T,C),new Cj(p.T,H)],Br:"core",clientMetadata:new h4([new Rw(N(X))])}}; giY=function(p,C,V,N,H){var X=v8(p.C.get(),"SLOT_TYPE_IN_PLAYER");V=new xP(p.T,N,V);N=[new pj(p.T,X)];p=[new rF(p.T,C)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:N,slotExpirationTriggers:p,Br:"core",clientMetadata:new h4([new Rw(H({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:N,slotExpirationTriggers:p}))])}}; niY=function(p,C,V,N,H,X){var d=v8(p.C.get(),C);return pz(p,d,C,new YP(p.T,N),[new rF(p.T,V),new Cj(p.T,d),new zT(p.T,N,["error"])],H,X)}; RxL=function(p,C,V,N,H,X,d){var a=v8(p.C.get(),C);return pz(p,a,C,new zT(p.T,H,["normal"]),[new rF(p.T,V),new Cj(p.T,a),new zT(p.T,N,["error"])],X,d)}; k0L=function(p,C,V,N,H){var X=v8(p.C.get(),C);return pz(p,X,C,new AV(p.T,V),[new rF(p.T,V),new Cj(p.T,X)],N,H)}; wHu=function(p,C,V,N,H){V=V?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var X=v8(p.C.get(),V);C=new AV(p.T,C);var d=[new pj(p.T,X)];p=[new Cj(p.T,X)];return{slotId:X,slotType:V,slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new h4([new Rw(H({slotId:X,slotType:V,slotPhysicalPosition:1,Br:"core",slotEntryTrigger:C,slotFulfillmentTriggers:d,slotExpirationTriggers:p}))]),adSlotLoggingData:N}}; VLX=function(p,C,V,N){var H=v8(p.C.get(),"SLOT_TYPE_PLAYER_BYTES"),X=new wF(p.T),d=[new NB(p.T,H)];p=[new rF(p.T,C)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new h4([new Rw(N({slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p})),new k_({})]),adSlotLoggingData:V}}; sEv=function(p,C){return FCs(p.x_.get())?new zT(p.T,C,["normal","error","skipped"]):new zT(p.T,C,["normal"])}; tL9=function(p,C,V,N,H){C=sEv(p,C);p=EA(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 B?H:{Fb:Object.assign({},p,{clientMetadata:new h4([new Rw(H.layout)]),adSlotLoggingData:N}),uW:H.uW}}; cd9=function(p,C,V,N,H,X,d){V=ak1(p,C,V,N);if(V instanceof B)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 B)return d;N=[new CP(c0(C)),new Rw(d.layout),new VV({ob:p.ob(C)})];X&&N.push(new Qy({}));return{Fb:{slotId:V.slotId,slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,slotEntryTrigger:l_(p, C,V.slotId,V.slotEntryTrigger),slotFulfillmentTriggers:tL(p,C,V.slotId,V.slotFulfillmentTriggers),slotExpirationTriggers:V.slotExpirationTriggers,Br:V.Br,clientMetadata:new h4(N),adSlotLoggingData:H},uW:d.uW}}; l_=function(p,C,V,N){return p.x_.get().sV(c0(C))?new Il(p.T,V):N}; tL=function(p,C,V,N){return p.x_.get().sV(c0(C))?[new NB(p.T,V)]:N}; EA=function(p,C,V){var N=v8(p.C.get(),"SLOT_TYPE_PLAYER_BYTES"),H=[new pj(p.T,N)];p=[new Cj(p.T,N),new rF(p.T,V)];return{slotId:N,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:H,slotExpirationTriggers:p,Br:"core"}}; ak1=function(p,C,V,N){C=Gd(p,C,V,N);return C instanceof B?C:EA(p,C,V)}; LIu=function(p,C,V,N,H,X){var d=v8(p.C.get(),"SLOT_TYPE_FORECASTING");C=Gd(p,C,V,N);if(C instanceof B)return C;N=[new pj(p.T,d)];p=[new Cj(p.T,d),new rF(p.T,V)];return{slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:N,slotExpirationTriggers:p,Br:"core",clientMetadata:new h4([new Rw(X({slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:C,slotFulfillmentTriggers:N,slotExpirationTriggers:p}))]),adSlotLoggingData:H}}; C6a=function(p,C,V,N,H){var X=!C.hideCueRangeMarker;switch(C.kind){case "AD_PLACEMENT_KIND_START":return new AV(p.T,V);case "AD_PLACEMENT_KIND_MILLISECONDS":return p=IaH(C,N),p instanceof B?p:H(p.tW,X);case "AD_PLACEMENT_KIND_END":return new kP(p.T,V,X);default:return new B("Cannot construct entry trigger",{kind:C.kind})}}; pVX=function(p,C,V,N,H){return C6a(p,C,V,N,function(X,d){return new G6H(p.T,V,X,d,H)})}; Gd=function(p,C,V,N){return C6a(p,C,V,N,function(H,X){return new $P(p.T,V,H,X)})}; pz=function(p,C,V,N,H,X,d){p=[new NB(p.T,C)];return{slotId:C,slotType:V,slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:H,Br:"core",clientMetadata:new h4([new Rw(d({slotId:C,slotType:V,slotPhysicalPosition:1,Br:"core",slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:H}))]),adSlotLoggingData:X}}; Cz=function(p,C){g.z.call(this);this.x_=p;this.T=C;this.eventCount=0}; j3=function(p,C,V,N){Cz.call(this,p,C);this.x_=p;this.pS=V;this.context=N}; VC=function(){this.T=new Map}; XF=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){NO(V,N)},function(N){HY(V,N)})}; h5=function(p){if(dr(p)){if(p instanceof XF)return p;if(it(p))return new XF("wait",{promise:p})}return new XF("done",{result:p})}; si=function(p){return new XF("fail",{error:p})}; aH=function(p){try{return h5(p())}catch(C){return si(C)}}; lt=function(p,C){var V=new XF("wait",{});p.onSuccess.push(function(N){try{var H=C(N);NO(V,H)}catch(X){HY(V,X)}}); p.onFailure.push(function(N){HY(V,N)}); Ei(p);return V}; t5=function(p,C){var V=new XF("wait",{});p.onSuccess.push(function(N){NO(V,N)}); p.onFailure.push(function(N){try{var H=C(N);NO(V,H)}catch(X){HY(V,X)}}); Ei(p);return V}; NO=function(p,C){if(dr(C)){if(it(C)){C.then(function(V){NO(p,V)},function(V){HY(p,V)}); return}if(C instanceof XF){lt(C,function(V){NO(p,V)}); t5(C,function(V){HY(p,V)}); return}}p.currentState="done";p.result=C;Ei(p)}; HY=function(p,C){p.currentState="fail";p.error=C;Ei(p)}; Ei=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)}; VTu=function(p){return function(){return jwL(p.apply(this,g.US.apply(0,arguments)))}}; jwL=function(p){return aH(function(){return cY(p,p.next())})}; cY=function(p,C){return C.done?h5(C.value):t5(lt(C.value.p_,function(V){return cY(p,p.next(V))}),function(V){return cY(p,p.throw(V))})}; MO=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(Tv)?H.replace(",","\u00a0"):X.includes(Tv)?H.replace(",","\u202f"):d.includes(Tv)?H.replace(",","."):H;C.push(H)}N=N===void 0?!1:N;V=(["af","be","lt"].includes(Tv)||N)&&V<10?NgS().format(V):(new Intl.NumberFormat("en-u-nu-latn")).format(V);C.push(V);V=NgS().format(p);C.push(V);V=":";"da fi id si sr sr-Latn".split(" ").includes(Tv)&&(V=".");return C.join(V)}; NgS=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; HFv=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}; Kt9=function(p){p=p.split("");IH.qF(p,3);IH.lG(p,65);IH.CQ(p,50);IH.qF(p,2);IH.lG(p,9);IH.CQ(p,3);IH.CQ(p,12);IH.qF(p,1);return p.join("")}; g.bt=function(p,C){return p.Vn+"timedtext_video?ref=player&v="+C.videoId}; g.DGy=function(p){var C=this;this.videoData=p;p={};this.T=(p.c1a=function(){var V=[];if(g.yC.isInitialized()){var N="";C.videoData&&C.videoData.V8&&(N=C.videoData.V8+("&r1b="+C.videoData.clientPlaybackNonce));var H={};N=(H.atr_challenge=N,H);dc("bg_v",void 0,"player_att");(N=Sry(N))?(dc("bg_s",void 0,"player_att"),V.push("r1a="+N)):(dc("bg_e",void 0,"player_att"),V.push("r1c=2"))}else dc("bg_e",void 0,"player_att"),window.trayride||window.botguard?V.push("r1c=1"):V.push("r1c=4");V.push("r1d="+g.yC.getState()); return V.join("&")},p.c6a=function(V){return"r6a="+(Number(V.c)^ue())},p.c6b=function(V){return"r6b="+(Number(V.c)^Number(g.pO("CATSTAT",0)))},p); this.videoData&&this.videoData.V8?this.ai=i1(this.videoData.V8):this.ai={}}; g.uwX=function(p){if(p.videoData&&p.videoData.V8){for(var C=[p.videoData.V8],V=g.F(Object.keys(p.T)),N=V.next();!N.done;N=V.next())N=N.value,p.ai[N]&&p.T[N]&&(N=p.T[N](p.ai))&&C.push(N);return C.join("&")}return null}; g.A5=function(p,C){Fte(p,{GMS:g.Mz(C.experiments,"bg_vm_reinit_threshold"),cspNonce:C.cspNonce})}; ZFY=function(){var p=XMLHttpRequest.prototype.fetch;return!!p&&p.length===3}; oH=function(p){p=p===void 0?2592E3:p;if(p>0&&!(V0a()>(0,g.Ip)()-p*1E3))return 0;p=g.zW("yt-player-quality");if(typeof p==="string"){if(p=g.nR[p],p>0)return p}else if(p instanceof Object)return p.quality;return 0}; k1=function(){var p=g.zW("yt-player-proxima-pref");return p==null?null:p}; UGu=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&&C[0]?p.getAutoplayPolicy(C[0]):p.getAutoplayPolicy("mediaelement");if(bFL[V])return bFL[V]}}catch(N){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; PY=function(p){return p.iW||p.GU||p.mutedAutoplay}; AaH=function(p,C){return PY(p)?C!==1&&C!==2&&C!==0?"AUTOPLAY_STATUS_UNAVAILABLE":p.Hg?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; o_e=function(p,C,V){var N=C.K();p.thirdParty||(p.thirdParty={});N.ancestorOrigins&&(p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{ancestorOrigins:N.ancestorOrigins}));N.G("embeds_enable_autoplay_and_visibility_signals")&&(N.jO!=null&&(p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(N.jO)})),p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:e3(), autoplayIntended:PY(C),autoplayStatus:AaH(C,V)}))}; Yr1=function(p,C){sF(p,2,C.uq,wr,3);sF(p,3,C.yd,kce,3);i8(p,4,C.onesieUstreamerConfig);i8(p,9,C.SE);sF(p,10,C.Rp,$1,3);sF(p,15,C.reloadPlaybackParams,xGL,3)}; RKS=function(p,C){sF(p,1,C.formatId,Lz,3);Xq(p,2,C.startTimeMs);Xq(p,3,C.durationMs);Xq(p,4,C.KM);Xq(p,5,C.Vo);sF(p,9,C.YxV,zKV,3);sF(p,11,C.A2V,gr,1);sF(p,12,C.mX,gr,1)}; n_L=function(p,C){hq(p,1,C.videoId);Xq(p,2,C.lmt)}; zKV=function(p,C){if(C.gt)for(var V=0;V>31));Xq(p,16,C.znS);Xq(p,17,C.detailedNetworkType);Xq(p,18,C.r0);Xq(p,19,C.ID);Xq(p,21,C.YEn);Xq(p,23,C.qC);Xq(p,28,C.HN);Xq(p,29,C.FS_);Xq(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(HJ(p,285),Ng(p,4),N=0;N<4;)p.view.setUint8(p.pos,V&255),V>>=8,p.pos+=1,N+=1}Xq(p,36,C.oD); sF(p,38,C.mediaCapabilities,wVv,3);Xq(p,39,C.XRx);Xq(p,40,C.CJ);Xq(p,44,C.playerState);d_(p,46,C.Jf);Xq(p,48,C.mU);Xq(p,50,C.MD);Xq(p,51,C.Y0);Xq(p,54,C.BK);d_(p,56,C.qYx);Xq(p,57,C.uA);d_(p,58,C.FN);Xq(p,59,C.Vr);Xq(p,60,C.Ry);d_(p,61,C.isPrefetch);Xq(p,62,C.lH);i8(p,63,C.sabrLicenseConstraint);Xq(p,64,C.fea);Xq(p,66,C.iSk);Xq(p,67,C.dSS);Xq(p,68,C.Uoo);hq(p,69,C.audioTrackId);d_(p,71,C.yW);sF(p,72,C.fQ$,P6y,1);Xq(p,74,C.Be);Xq(p,75,C.t_)}; wVv=function(p,C){if(C.videoFormatCapabilities)for(var V=0;V>31));hq(p,2,C.message)}; pUL=function(p,C){Xq(p,1,C.clientState);sF(p,2,C.XS$,Bg1,1)}; raa=function(p,C){i8(p,1,C.qOo);sF(p,2,C.Fga,Gcu,3);sF(p,3,C.coldStartInfo,pUL,3)}; Qws=function(p,C){Xq(p,1,C.type);i8(p,2,C.value)}; Wt1=function(p,C){hq(p,1,C.hl);hq(p,12,C.deviceMake);hq(p,13,C.deviceModel);Xq(p,16,C.clientName);hq(p,17,C.clientVersion);hq(p,18,C.osName);hq(p,19,C.osVersion)}; CHe=function(p,C){hq(p,1,C.name);hq(p,2,C.value)}; j31=function(p,C){hq(p,1,C.url);if(C.j4)for(var V=0;V1&&(this.W=p[1]==="2")}; pw=function(p,C,V,N,H){this.C=p;this.T=C;this.V=V;this.reason=N;this.qo=H===void 0?0:H}; g.Cw=function(p,C,V,N){return new pw(g.nR[p]||0,g.nR[C]||0,V,N)}; VS=function(p){if(jo&&p.qo)return!1;var C=g.nR.auto;return p.C===C&&p.T===C}; H1=function(p){return Ni[p.T||p.C]||"auto"}; RqH=function(p,C){C=g.nR[C];return p.C<=C&&(!p.T||p.T>=C)}; XP=function(p){return"["+p.C+"-"+p.T+", override: "+(p.V+", reason: "+p.reason+"]")}; dH=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.Gv(N.id,N.K4),p.add(N.K4.id),this.audioTracks.push(H);V==null||V({atklen:this.audioTracks.length})}}; i5=function(){g.z.apply(this,arguments);this.T=null}; wUX=function(p,C,V,N,H,X,d){if(p.T)return p.T;var a={},E=new Set,l={};if(he(N)){for(var t in N.T)N.T.hasOwnProperty(t)&&(p=N.T[t],l[p.info.o$]=[p.info]);return l}t=n6e(C,N,a);X&&H({aftsrt:sc(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=a2(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:sc(l)});for(var q in l)l.hasOwnProperty(q)&&(N=q,l[N]&&l[N][0].OV()&&(l[N]=l[N],l[N]=eqj(C,l[N],a),l[N]=PHL(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.PD;X&&H({aftflt:sc(l)});p.T=g.ZH(l,function(A){return!!A.length}); return p.T}; Lia=function(p,C,V,N,H,X,d,a){a=a===void 0?!1:a;if(C.xt&&d&&d.length>1&&!(C.Vr>0||C.J)){for(var E=C.C||!!H,l=E&&C.Q$?X:void 0,t=n6e(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.FN){te(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 dH(D,p,l))}D=jj9(C);D=g.L0(D,a);if(!D){if(c[d])return X=c[d],te(X),YD(new dH(X,p,l));E&&X({novideo:1});return xD()}C.zB&&(D==="1"||D==="1h")&&c[V]&&(d=c1(c[D]),t=c1(c[V]),t>d?D=V:t===d&&VY9(c[V])&&(D=V));D==="9"&&c.h&&c1(c.h)>c1(c["9"])&&(D="h");C.ER&&N.isLive&&D==="("&&c.H&&c1(c["("])<1440&&(D="H");E&&X({vfmly:Tr(D)});C=c[D];if(!C.length)return E&&X({novfmly:Tr(D)}), xD();te(C);return YD(new dH(C,p,l))}; Wiv=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}; VY9=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(C=C.value,C.itag&&NnQ.has(C.itag))return!0;return!1}; Tr=function(p){switch(p){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return p}}; sc=function(p){var C=[],V;for(V in p)if(p.hasOwnProperty(V)){var N=V;C.push(Tr(N));N=g.F(p[N]);for(var H=N.next();!H.done;H=N.next())C.push(H.value.itag)}return C.join(".")}; g6a=function(p,C,V,N,H,X){var d={},a={};g.uc(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.bx)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(!Mi(p,Je.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}; PHL=function(p,C){var V=oo(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.Mo&&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)&&BB(C)&&!p.R$)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.UY&&(C.o$==="1"||C.o$==="1h")&&((X=C.video)==null?0:X.T)&&((d=C.video)==null?void 0:d.T)>p.UY)return"av1cap";if((N=V.C.get(C.o$))&&N.PD>0)return H.add(C.o$),"byerr";var a;if((a=C.video)==null?0:a.fps>32){if(!V.Sa&&!Mi(V,Je.FRAMERATE))return"capHfr";if(p.Qn&&C.video.T>= 4320)return"blk8khfr";if(gO(C)){if(p.cV&&C.vV&&C.video.T>=1440)return"disablevp9hfr";if(p.d7&&g.gm("appletv5")&&C.vV)return"atv5sfr"}}if(p.qo&&C.qo>p.qo)return"ratecap";p=Hse(V,C);return p!==!0?p:!0}; te=function(p,C){C=C===void 0?[]:C;g.hB(p,function(V,N){var H=N.qo-V.qo;if(!V.OV()||!N.OV())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.mw=function(p,C){this.C=p;this.S=C===void 0?!1:C;this.V=this.path=this.scheme="";this.T={};this.url=""}; FP=function(p){v1(p);return p.V}; So=function(p){return p.C?p.C.startsWith("local"):p.scheme==="local"}; X8H=function(p){v1(p);return g.fG(p.T,function(C){return C!==null})}; Kw=function(p){v1(p);var C=decodeURIComponent(p.get("mn")||"").split(",");return p.path==="/videoplayback"&&C.length>1&&!!C[1]}; Dy=function(p,C){C=C===void 0?!1:C;v1(p);if(p.path!=="/videoplayback"){var V=p.clone();V.set("playerfallback","1");return V}var N=p.i9();V=new g.Ff(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.KE(V,(N.indexOf("rr")===0?"rr":"r")+H+"---"+X[1]+p),V=new g.mw(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.KE(V,"redirector.googlevideo.com"),N=V.toString()):V.T.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.KE(V,"www.youtube.com"),N=V.toString()):(V=im1(N),No(V)&&(N=V));V=new g.mw(N);V.set("cmo=pf","1");H&&V.set("cmo=td","a1.googlevideo.com");return V}; v1=function(p){if(p.C){if(!No(p.C)&&!p.C.startsWith("local"))throw new g.Bw("Untrusted URL",p.C);var C=g.yh(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=doV(V);Object.assign(p.T, isv(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=wfH(),v1(p),V=p.T[C]||null)&&(V=h4L[0](V),p.set(C,V),p.S||wfH(""))}}; sjy=function(p){v1(p);var C=p.scheme+(p.scheme?"://":"//")+p.V+p.path;if(X8H(p)){var V=[];g.uc(p.T,function(N,H){N!==null&&V.push(H+"="+N)}); C+="?"+V.join("&")}return C}; doV=function(p){p=p.split("/");var C=0;p[0]||C++;for(var V={};C0?al9(C,N.slice(0,H),N.slice(H+1)):N&&(C[N]="")}return C}; al9=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}; u5=function(p){var C=g.n(p,EuY)||p.signatureCipher;p={mR:!1,Ko:"",rG:"",s:""};if(!C)return p;C=i1(C);p.mR=!0;p.Ko=C.url;p.rG=C.sp;p.s=C.s;return p}; Zy=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.I_=E;this.endTime=C+V;this.T=d||0;this.range=X||null;this.pending=a||!1;this.I_=E||null}; g.Uc=function(){this.segments=[];this.T=null;this.C=!0;this.V=""}; ll1=function(p,C){if(C>p.er())p.segments=[];else{var V=$2(p.segments,function(N){return N.LS>=C},p); V>0&&p.segments.splice(0,V)}}; fw=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}; Oc=function(p){var C=p.data.getUint8(p.offset+p.T);p.T+=1;return C}; yS=function(p){var C=p.data.getUint16(p.offset+p.T);p.T+=2;return C}; qi=function(p){var C=p.data.getInt32(p.offset+p.T);p.T+=4;return C}; I2=function(p){var C=p.data.getUint32(p.offset+p.T);p.T+=4;return C}; b5=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}; Ae=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=Oc(p)<<16|yS(p);if(V&256){N=V&1;H=V&4;var X=V&512,d=V&1024,a=V&2048;V=I2(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)}}}; P1=function(p){p=new DataView(p.buffer,p.byteOffset,p.byteLength);return(p=g.nw(p,0,1836476516))?g.eo(p):NaN}; DoH=function(p){var C=g.nw(p,0,1937011556);if(!C)return null;C=wH(p,C.dataOffset+8,1635148593)||wH(p,C.dataOffset+8,1635135537);if(!C)return null;var V=wH(p,C.dataOffset+78,1936995172),N=wH(p,C.dataOffset+78,1937126244);if(!N)return null;C=null;if(V)switch(V.skip(4),Oc(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=wH(p,N.dataOffset,1886547818)){var d=wH(p,N.dataOffset,1886546020),a=wH(p,N.dataOffset,2037673328);if(!a&&(a=wH(p,N.dataOffset,1836279920), !a))return null;d&&(d.skip(4),V=qi(d)/65536,X=qi(d)/65536,H=qi(d)/65536);p=tYQ(a);p=new DataView(p.buffer,p.byteOffset+8,p.byteLength-8);return new SzX(C,V,X,H,p)}return null}; wH=function(p,C,V){for(;$g(p,C);){var N=Lw(p,C);if(N.type===V)return N;C+=N.size}return null}; g.nw=function(p,C,V){for(;$g(p,C);){var N=Lw(p,C);if(N.type===V)return N;C=gH(N.type)?C+8:C+N.size}return null}; g.W1=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}; Lw=function(p,C){var V=p.getUint32(C),N=p.getUint32(C+4);return new fw(p,C,V,N)}; g.eo=function(p){var C=p.data.getUint8(p.dataOffset)?20:12;return p.data.getUint32(p.dataOffset+C)}; uY9=function(p){p=new fw(p.data,p.offset,p.size,p.type,p.C);var C=Oc(p);p.skip(7);var V=I2(p);if(C===0){C=I2(p);var N=I2(p)}else C=b5(p),N=b5(p);p.skip(2);for(var H=yS(p),X=[],d=[],a=0;a122)return!1}return!0}; gH=function(p){return p===1701082227||p===1836019558||p===1836019574||p===1835297121||p===1835626086||p===1937007212||p===1953653094||p===1953653099||p===1836475768}; Zs1=function(p){p.skip(4);return{qVr:Ae(p,0),value:Ae(p,0),P8:I2(p),r2_:I2(p),aIr:I2(p),id:I2(p),O3:Ae(p),offset:p.offset}}; g.Uos=function(p){var C=wH(p,0,1701671783);if(!C)return null;var V=Zs1(C),N=V.qVr;V=R2(V.O3);if(p=wH(p,C.offset+C.size,1701671783))if(p=Zs1(p),p=R2(p.O3),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 Yg(V,N):null}; QS=function(p,C){for(var V=wH(p,0,C);V;){var N=V;N.type=1936419184;N.data.setUint32(N.offset+4,1936419184);V=wH(p,V.offset+V.size,C)}}; g.rH=function(p,C){for(var V=0,N=[];$g(p,V);){var H=Lw(p,V);H.type===C&&N.push(H);V=gH(H.type)?V+8:V+H.size}return N}; flL=function(p,C){var V=g.nw(p,0,1937011556),N=g.nw(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.nw(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 cyv(p.byteLength+C);o2(N,p,0,V.offset+12);N.data.setInt32(N.offset,2);N.offset+=4;o2(N,p,V.offset+16,V.size-16);o2(N,H,H.byteOffset+X.dataOffset+8,C);o2(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.nw(p,0,H.value),N.data.setUint32(H.offset,H.size+C);p=g.nw(N.data,0,1953654136);N.data.setUint32(p.offset+16,2);return N.data}; YNv=function(p){var C=g.nw(p,0,1937011556);if(!C)return null;var V=p.getUint32(C.dataOffset+12);if(V!==1701733217&&V!==1701733238)return null;C=wH(p,C.offset+24+(V===1701733217?28:78),1936289382);if(!C)return null;V=wH(p,C.offset+8,1935894637);if(!V||p.getUint32(V.offset+12)!==1667392371)return null;C=wH(p,C.offset+8,1935894633);if(!C)return null;C=wH(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}; B1=function(p,C){this.T=p;this.pos=0;this.start=C||0}; Gr=function(p){return p.pos>=p.T.byteLength}; Nt=function(p,C,V){var N=new B1(V);if(!pp(N,p))return!1;N=Cp(N);if(!j5(N,C))return!1;for(p=0;C;)C>>>=8,p++;C=N.start+N.pos;var H=Vv(N,!0);N=p+(N.start+N.pos-C)+H;N=N>9?jke(N-9,8):jke(N-2,1);p=C-p;V.setUint8(p++,236);for(C=0;CV;H++)V=V*256+hW(p),N*=128;return C?V-N:V}; X6=function(p){var C=Vv(p,!0);p.pos+=C}; AK1=function(p){if(!j5(p,440786851,!0))return null;var C=p.pos;Vv(p,!1);var V=Vv(p,!0)+p.pos-C;p.pos=C+V;if(!j5(p,408125543,!1))return null;Vv(p,!0);if(!j5(p,357149030,!0))return null;var N=p.pos;Vv(p,!1);var H=Vv(p,!0)+p.pos-N;p.pos=N+H;if(!j5(p,374648427,!0))return null;var X=p.pos;Vv(p,!1);var d=Vv(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}; s9=function(p){var C=p.pos;p.pos=0;var V=1E6;pp(p,[408125543,357149030,2807729])&&(V=HR(p));p.pos=C;return V}; oLu=function(p,C){var V=p.pos;p.pos=0;if(p.T.getUint8(p.pos)!==160&&!aZ(p)||!j5(p,160))return p.pos=V,NaN;Vv(p,!0);var N=p.pos;if(!j5(p,161))return p.pos=V,NaN;Vv(p,!0);hW(p);var H=hW(p)<<8|hW(p);p.pos=N;if(!j5(p,155))return p.pos=V,NaN;N=HR(p);p.pos=V;return(H+N)*C/1E9}; aZ=function(p){if(!kP1(p)||!j5(p,524531317))return!1;Vv(p,!0);return!0}; kP1=function(p){if(p.Bp()){if(!j5(p,408125543))return!1;Vv(p,!0)}return!0}; pp=function(p,C){for(var V=0;V0){var N=isv(C.substring(V+1));g.uc(N,function(H,X){this.set(X,H)},p); C=C.substring(0,V)}C=doV(C);g.uc(C,function(H,X){this.set(X,H)},p)}; Y3u=function(p){var C=p.Uu.i9(),V=[];g.uc(p.T,function(H,X){V.push(X+"="+H)}); if(!V.length)return C;var N=V.join("&");p=X8H(p.Uu)?"&":"?";return C+p+N}; lw=function(p,C){var V=new g.mw(C);(C=V.get("req_id"))&&p.set("req_id",C);g.uc(p.T,function(N,H){V.set(H,null)}); return V}; zRH=function(){this.S=this.V=this.T=this.timedOut=this.started=this.W=this.C=0}; tW=function(p){p.W=(0,g.Ip)();p.started=0;p.timedOut=0;p.T=0}; cR=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 zRH);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()}; RR1=function(p,C,V){if(So(p.T))return!1;var N=Tn(V,FP(p.T));if(N.timedOut<1&&N.T<1)return!1;N=N.timedOut+N.T;p=JW(p,C);V=Tn(V,FP(p));return V.timedOut+V.T+01?C=C.Xx:(V=Tn(V,vR(p,p.JX(C,V),C)),C=Math.max(p.W,V.timedOut)+C.UL*(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)()}; nLQ=function(p,C,V){p.T.set(C,V);p.V.set(C,V);p.S&&p.S.set(C,V)}; eRv=function(p,C,V,N,H){++p.C;C&&++p.W;FP(V.Uu).startsWith("redirector.")&&(p.T=p.V.clone(),delete p.S,N.fG&&delete H[FP(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.ma=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)}; PUQ=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.Kq=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.w7=this.startTime+this.duration*this.C/this.range.length,this.Y=this.duration*this.V/this.range.length, this.zM=this.w7+this.Y):wjX(this)}; wjX=function(p){p.w7=p.startTime;p.Y=p.duration;p.zM=p.w7+p.Y}; $rX=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}; gLv=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.w7-C.w7)<=1E-6&&p.LS===C.LS?!1:LE1(p,C)}; LE1=function(p,C){return qt(p,C)||Math.abs(p.zM-C.w7)<=1E-6||p.LS+1===C.LS&&C.C===0&&p.S?!0:!1}; IZ=function(p){return p.LS+(p.S?1:0)}; WEs=function(p){p.length===1||g.AU(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)}; jlY=function(p,C){return p.T!==C.T?!1:p.type===4&&C.type===3&&p.T.Vf()?(p=p.T.Ty(p),xo(p,function(V){return jlY(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,wjX(p)}; oZ=function(p,C){var V=this;this.wV=p;this.S=this.T=null;this.W=this.nO=NaN;this.JX=this.requestId=null;this.VZ={A6n:function(){return V.range}}; this.sR=p[0].T.sR;this.C=C||"";this.wV[0].range&&this.wV[0].V>0&&(QkV(p)?(this.range=WEs(p),this.V=this.range.length):(this.range=this.wV[this.wV.length-1].range,this.V=rK1(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.JX===null?p.sR.JX(C,V,p.wV[0].type):p.JX;if(p.T){C=V?Dy(p.T,C.iy):p.T;var N=new E9(C);N.get("alr")||N.set("alr","yes");p.C&&xrY(N,p.C)}else/http[s]?:\/\//.test(p.C)?N=new E9(new g.mw(p.C)):(N=mp(p.sR,V,C),p.C&&xrY(N,p.C));(C=p.range)?N.set("range",C.toString()):p.wV[0].T.MQ()&&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.nO)||N.set("headm",p.nO.toString());isNaN(p.W)||N.set("mffa",p.W+"ms");p.urlParams&&g.uc(p.urlParams, function(H,X){N.set(X,H)}); return N}; VIL=function(p){if(p.range)return p.V;p=p.wV[0];return Math.round(p.Y*p.T.info.qo)}; NFa=function(p,C){return Math.max(0,p.wV[0].w7-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.gR=X;this.index=H||new g.Uc}; HrL=function(p,C,V,N,H){this.LS=p;this.startSecs=C;this.zI=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}; XSe=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}; dVy=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}; ira=function(p){var C=p.V;p.V=[];return C}; hhV=function(){this.S=[];this.T=null;this.C={};this.V={}}; lQe=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=slH(p):H.nodeName==="AdaptationSet"?(H=H.getAttribute("id")||H.getAttribute("mimetype")||"",X=aQy(p,H)):H.nodeName==="Representation"&&(H=H.getAttribute("id")||"",X=EPu(p,H));if(X==null)return;X.update(N);g.C6(V,ira(X))}g.C6(p.S,V);jFX(p.S,function(d){return d.startSecs*1E3+d.T})}; tIY=function(p){p.T&&(p.T.T=[]);g.uc(p.C,function(C){C.T=[]}); g.uc(p.V,function(C){C.T=[]})}; slH=function(p){p.T||(p.T=new e5);return p.T}; aQy=function(p,C){p.C[C]||(p.C[C]=new e5);return p.C[C]}; EPu=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.gR===void 0?0:C.gR;var V=C.A9===void 0?!1:C.A9;var N=C.iq===void 0?0:C.iq;var H=C.AE===void 0?0:C.AE;var X=C.c6===void 0?Infinity:C.c6;var d=C.Er===void 0?0:C.Er;var a=C.EO===void 0?!1:C.EO;C=C.U7===void 0?!1:C.U7;g.Uc.call(this);this.fp=this.yP=-1;this.uc=p;this.iq=N;this.A9=V;this.AE=H;this.c6=X;this.Er=d;((this.EO=a)||isFinite(X)&&this.c6>0)&&V&&PR&&(this.C=!1,this.V="postLive");this.U7=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.gR||0);this.index=new wz(V)}; gz=function(p,C,V){Kp.call(this,p,C);this.W=V;p=this.index=new g.Uc;p.C=!1;p.V="d"}; cV1=function(p,C,V){var N=p.index.Zi(C),H=p.index.getStartTime(C),X=p.index.getDuration(C);V?X=V=0:V=p.info.qo*X;return new oZ([new fp(3,p,void 0,"otfCreateRequestInfoForSegment",C,H,X,0,V)],N)}; TF1=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;JVS(p,V);p.timestampOffset=C}; JVS=function(p,C){g.Gx(p.info.T.info)||p.info.T.info.qt();p.V=C;if(g.Gx(p.info.T.info)){var V=p.a6();p=p.info.T.T;for(var N=NaN,H=NaN,X=0;$g(V,X);){var d=Lw(V,X);isNaN(N)&&(d.type===1936286840?N=d.data.getUint32(d.dataOffset+8):d.type===1836476516&&(N=g.eo(d)));if(d.type===1952867444){!N&&p&&(N=P1(p));var a=g.W1(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=gH(d.type)?X+8:X+d.size}return!0}V=new B1(p.a6());p=p.W?V:new B1(new DataView(p.info.T.T.buffer));N=s9(p);p=V.pos;V.pos=0;if(aZ(V)&&j5(V,231))if(H=Vv(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.Gx(p.info.T.info)||p.info.T.info.qt();if(p.C&&p.info.type===6)return p.C.gR;if(g.Gx(p.info.T.info)){var C=p.a6();var V=0;C=g.rH(C,1936286840);C=g.F(C);for(var N=C.next();!N.done;N=C.next())N=uY9(N.value),V+=N.ZB[0]/N.P8;V=V||NaN;if(!(V>=0))a:{V=p.a6();C=p.info.T.T;for(var H=N=0,X=0;$g(V,N);){var d=Lw(V,N);if(d.type===1836476516)H=g.eo(d);else if(d.type===1836019558){!H&&C&&(H=P1(C));if(!H){V=NaN;break a}var a=wH(d.data,d.dataOffset,1953653094),E=a;a=H;var l=wH(E.data,E.dataOffset, 1952868452);E=wH(E.data,E.dataOffset,1953658222);var t=qi(l);qi(l);t&2&&qi(l);l=t&8?qi(l):0;var c=qi(E),T=c&1;t=c&4;var M=c&256,J=c&512,S=c&1024;c&=2048;var D=I2(E);T&&qi(E);t&&qi(E);for(var Z=T=0;Z2048?"":C.indexOf("https://")===0?C:""}; Hb=function(p,C,V){C.match(yVY);return p(C,V).then(function(N){var H=g.Or9(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.l_=this.duration=0;this.isPremiere=this.EO=this.S=this.isLiveHeadPlayable=this.isLive=this.C=!1;this.c6=this.AE=0;this.isOtf=this.p4=!1;this.R$=(0,g.Ip)();this.a$=Infinity;this.T={};this.V=new Map;this.state=this.Ld=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.qw=this.vK=NaN;this.MW=0;this.Y_=this.Z=!1;this.Wr=[];this.Ga={};this.b_=NaN;this.VZ={Py$:function(a){X1(N,a)}}; var H;this.UY=(H=C)==null?void 0:H.OY("html5_use_network_error_code_enums");qGa=!!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()}; IQj=function(p){return g.fG(p.T,function(C){return!!C.info.video&&C.info.video.T>=2160})}; CGV=function(p){return g.fG(p.T,function(C){return!!C.info.video&&C.info.video.isHdr()})}; Ec=function(p){return g.fG(p.T,function(C){return!!C.info.vV})}; g.brX=function(p){return g.fG(p.T,function(C){return Nf(C.info.mimeType)})}; AVV=function(p){return g.fG(p.T,function(C){return C.info.video?C.info.video.projectionType==="EQUIRECTANGULAR":!1})}; oPL=function(p){return g.fG(p.T,function(C){return C.info.video?C.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; kTV=function(p){return g.fG(p.T,function(C){return C.info.video?C.info.video.projectionType==="MESH":!1})}; xVQ=function(p){return g.fG(p.T,function(C){return C.info.video?C.info.video.stereoLayout===1:!1})}; YGH=function(p){return rcH(p.T,function(C){return C.info.video?C.f2():!0})}; he=function(p){return g.fG(p.T,function(C){return So(C.sR.T)})}; X1=function(p,C){p.T[C.info.id]=C;p.V.set(S5(g.Cx(C.info,p.p4)),C)}; zhQ=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(VE(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=RhX[p.stereoLayout]);var T=UVu(p)||void 0;if(l==null?0:l.primaries)var M=nPa[l.primaries]||void 0;d=new e9(d,H,a,t,c,void 0,E,T,M);N=s6(N,d,$Z[p.itag||""]);dB&&(N+="; enableflushduringseek=true");io&&(N+="; enableresetaudiodecoder=true")}var J;if(jb(N)){var S= p.audioSampleRate;c=p.audioTrack;S=new zx(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 ucu(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 LR(X,N,{audio:S,video:d,K4:J,vV:Z,qo:c,jA: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(VE(N)){var d=(p.size||"640x360").split("x");d=new e9(+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,$Z[p.itag]);dB&&(N+="; enableflushduringseek=true");io&&(N+="; enableresetaudiodecoder=true")}var a;if(jb(N)){var E=new zx(+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 ucu(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 LR(H,N,{audio:E,video:d,K4:a,vV:T,qo:X,jA:V,contentLength:t,lastModified:c,captionTrack:l, streamType:p.stream_type,approxDurationMs:Number(p.approx_duration_ms)})}; ehs=function(p){return xo(p,function(C){return"FORMAT_STREAM_TYPE_OTF"===C.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Pba=function(p){return xo(p,function(C){return"FORMAT_STREAM_TYPE_OTF"===C.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; wSa=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.mw(p,!0);p.set("alr","yes");V&&(V=Kt9(decodeURIComponent(V)),p.set(C,encodeURIComponent(V)));return p}; WL1=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(VE(N)){var a=Number(RZ(C,"width"));var E=Number(RZ(C,"height")),l=Number(RZ(C,"frameRate")),t=$VX(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 e9(a,E,l,t,c)}if(jb(N)){var T=Number(RZ(C,"audioSamplingRate"));var M=Number(RZ(C.getElementsByTagName("AudioChannelConfiguration")[0],"value"));E=LLH(RZ(C,p.W+":spatialAudioType"));T=new zx(T,M,E);a:{M=RZ(C,"lang")||"und";if(E=np(C,"Role"))if(t=RZ(E,"value")||"",g.Ia(gP9,t)){E=M+"."+gP9[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 LR(V,N,{audio:T,video:a,K4:M,vV:J,qo:H,jA:d,contentLength:X})}; $VX=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"}}; LLH=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"}}; rVS=function(p,C){C=C===void 0?"":C;p.state=1;p.R$=(0,g.Ip)();return fQe(C||p.sourceUrl).then(function(V){if(!p.fS()){p.Ld=V.status;V=V.responseText;var N=new DOMParser;V=jg(N,no1(V),"text/xml").getElementsByTagName("MPD")[0];p.a$=XSe(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$}; GTy=function(p){p.Y&&p.Y.stop()}; QlS=function(p){var C=p.a$;isFinite(C)&&(cb(p)?p.refresh():(C=Math.max(0,p.R$+C-(0,g.Ip)()),p.Y||(p.Y=new g.N8(p.refresh,C,p),g.R(p,p.Y)),p.Y.start(C)))}; pPL=function(p){p=p.T;for(var C in p){var V=p[C].index;if(V.isLoaded())return V.er()+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()&&!Nf(C[V].info.mimeType)){C=0;for(V=N.Lk();V<=N.er();V++)C+=N.getDuration(V);C/=N.fQ();C=Math.round(C/.5)*.5;N.fQ()>10&&(p.Sa=C);return C}if(p.isLive&&(N=C[V],N.gR))return N.gR}return NaN}; Cns=function(p,C){p=G9S(p.T,function(N){return N.index.isLoaded()}); if(!p)return NaN;p=p.index;var V=p.Qx(C);return p.getStartTime(V)===C?C:V=0&&H.segments.splice(X,1)}}}; VBL=function(p){for(var C in p.T)Nf(p.T[C].info.mimeType)||ll1(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.A9&&(X&&(H.yP=Math.max(H.yP,X)),d&&(H.fp=Math.max(H.fp||0,d)))}V&&(p.b_=V/1E3)}; N2y=function(p){p.vr=0;p.YM=0;p.MW=0}; SO=function(p){return p.Y_&&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(qGa&&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=x1()[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}; HjQ=function(p){this.I$=p;this.uJ=this.FN=this.Ga=this.W=this.S=this.b_=this.Wc=this.l_=this.sY=!1;this.XO=this.I$.G("html5_disable_aac_preference");this.D=this.Y=0;this.Mo=!1;this.Vn=!0;this.Qn=!1;this.Vr=0;this.Wr=!1;this.wy=Infinity;this.PJ=!1;this.zB=!0;this.Y_=this.R$=!1;this.T={};this.ER=this.C=this.J=!1;this.vr=0;this.MW=this.disableAv1=this.bx=this.QZ=this.F$=!1;this.Q$=this.I$.Gk();this.Hc=this.I$.experiments.OY("html5_enable_vp9_fairplay");this.sO=this.I$.G("html5_force_av1_for_testing"); this.UY=g.Mz(this.I$.experiments,"html5_av1_ordinal_cap");this.cV=this.I$.G("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.xt=this.I$.G("html5_account_onesie_format_selection_during_format_filter");this.qo=g.Mz(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.K1=this.I$.experiments.OY("html5_allow_capability_merge");this.d7=this.I$.G("html5_prefer_vp9_sfr")}; jj9=function(p){if(p.l_)return["f"];var C="9h 9 h 8 (h ( H *".split(" ");p.Wr&&(C.unshift("1"),C.unshift("1h"));p.FN&&C.unshift("h");p.a$&&(C=(XPQ[p.a$]||[p.a$]).concat(C));return C}; Q3j=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.uJ||p.Ga||p.V||p.XO||C.unshift("a");p.Wc&&!p.Z&&C.unshift("ah");p.V&&(C=(XPQ[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(Mi(p.W,Je.AV1_CODECS)&&Mi(p.W,Je.HEIGHT)&&Mi(p.W,Je.BITRATE))return C.isCapabilityUsable=1,8192;try{var H=ISH();if(H)return C.localPref=H}catch(a){}N=1080;H=navigator.hardwareConcurrency;H<=2&&(N=480);C.coreCount=H;if(H=g.Mz(p.experiments,"html5_default_av1_threshold"))N=C["default"]=H;!p.G("html5_disable_av1_arm_check")&&Zoe()&&(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 Qu(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.l_=this.keySystemAccess=null;this.JI=this.F_=-1;this.a8=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.An&&!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.Mz(p,"html5_safari_desktop_eme_min_version"))return q8(p)}return!0}; dBe=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.I9=0;this.T=Array.from({length:zF.length}).fill(0)}; iju=function(){}; hOY=function(){this.startTimeMs=(0,g.Ip)();this.T=!1}; sdQ=function(){this.T=new iju}; adj=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].pM(V,N))}; ErQ=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.I9)!=null?a:1;if(H!==0){var E;a=(E=d==null?void 0:d.profile)!=null?E:V;adj(p,a,X-N,H)}return C}; nb=function(p,C,V,N,H){if(C&&typeof C==="object"){var X=function(d){return ErQ(p,d,V,N,H)}; if(it(C))return C.then(X);if(ldV(C))return lt(C,X)}return ErQ(p,C,V,N,H)}; tB1=function(){}; eO=function(p,C,V,N,H){N=N===void 0?!1:N;g.z.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)}; T21=function(p,C){p.callback=C;p.S=[];x$(p.I$.experiments)?Pb(p):cMj(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=MBS(p,V);if(wB&&wB.keySystem===C&&wB.lQ$===JSON.stringify(N))p.k_("remksa",{re:!0}),JMH(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()?$$.DI("emereq",function(){return navigator.requestMediaKeySystemAccess(C,N)}):navigator.requestMediaKeySystemAccess(C,N)).then(J5(function(d){JMH(p,V,d,N)}),J5(function(){p.W=!p.W&&p.V[p.C[0]].flavor=== "widevine"; p.W||p.C.shift();Pb(p)}))}}}; JMH=function(p,C,V,N){if(!p.fS()){N&&(wB={keySystem:C.keySystem,keySystemAccess:V,lQ$:JSON.stringify(N)});C.keySystemAccess=V;if(q6(C)){V=Ir();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())mBV(p,C,H.value);if(V.videoCapabilities)for(V=g.F(V.videoCapabilities),N=V.next();!N.done;N=V.next())mBV(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)}}; mBV=function(p,C,V){p.G("log_robustness_for_drm")?C.T[V.contentType]=V.robustness||!0:C.T[V.contentType]=!0}; MBS=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.An&&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]}; cMj=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=vry(),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)}; vry=function(){var p=O6();if(p){var C=p.isTypeSupported;return function(N,H){return C(H,N)}}var V=Ir(); return V&&(V.addKey||V.webkitAddKey)?function(N,H){return!!V.canPlayType(N,H)}:function(){return!1}}; F$9=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.Mz(this.experiments,"html5_media_time_weight_prop")||C;this.b_=g.Mz(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.Mz(this.experiments,"html5_streaming_fallback_byterate");this.G("html5_sabr_live_audio_early_return_fix")&&gB&&(this.T=65536)}; ST1=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.Mz=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():""}; K$L=function(p){if(p=p.flags.html5_web_po_experiment_ids)if(p=p.replace(/\[ *(.*?) *\]/,"$1"))return p.split(",").map(Number);return[]}; DBs=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}; Zje=function(p){return ugX.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.Mz(this.experiments,"html5_kaios_max_resolution");this.W=!this.a$&&p&&p("max-video-resolution-vpx")||null;UBV(this)}; Hse=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.qt()&&rm()&&p.experiments.OY("html5_appletv_disable_vp9"))return"dwebm";if(Qu(C)&&p.D)return"dav1";if(C.video&&(C.video.isHdr()||C.video.primaries==="bt2020")&&!(Mi(p,Je.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.An?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[Je.WIDTH.name]=C.video.width),C.video.height&&(V[Je.HEIGHT.name]=C.video.height),C.video.fps&&(V[Je.FRAMERATE.name]=C.video.fps*X),C.video.C&&(V[Je.EOTF.name]=C.video.C),C.qo&&(V[Je.BITRATE.name]=C.qo*8*X),C.o$==="("&&(V[Je.CRYPTOBLOCKFORMAT.name]="subsample"),C.video.projectionType==="EQUIRECTANGULAR"||C.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||C.video.projectionType=== "MESH")&&(V[Je.DECODETOTEXTURE.name]="true");C.audio&&C.audio.numChannels&&(V[Je.CHANNELS.name]=C.audio.numChannels);p.S&&gO(C)&&(V[Je.EXPERIMENTAL.name]="allowed");X=g.F(Object.keys(Je));for(var d=X.next();!d.done;d=X.next()){d=Je[d.value];var a;if(a=V[d.name])if(a=!(d===Je.EOTF&&C.mimeType.indexOf("vp09.02")>0)){a=d;var E=C;a=!(p.experiments.OY("html5_ignore_h264_framerate_cap")&&a===Je.FRAMERATE&&Mpu(E))}if(a)if(Mi(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:Sy1()}; fdV=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&&Hse(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(Ir(),"application/x-mpegURL")?!0:!1}; yMy=function(p){OjQ(function(){for(var C=g.F(Object.keys(Je)),V=C.next();!V.done;V=C.next())Mi(p,Je[V.value])})}; Mi=function(p,C){C.name in p.J||(p.J[C.name]=qTy(p,C));return p.J[C.name]}; qTy=function(p,C){if(p.W)return!!p.W[C.name];if(C===Je.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===Je.AV1_CODECS)return p.isTypeSupported("video/mp4; codecs="+C.valid)&&!p.isTypeSupported("video/mp4; codecs="+C.Yz);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.Yz)}; IdH=function(p){p.S||(p.S=!0,pI(p))}; pI=function(p){p.V=!0;p.experiments.OY("html5_ssap_update_capabilities_on_change")&&bj1(p)}; AM9=function(p,C){var V=0;p.C.has(C)&&(V=p.C.get(C).vk);p.C.set(C,{vk:V+1,PD:Math.pow(2,V+1)});pI(p)}; l5=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(".")}; bj1=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)}}; r4H=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}; GmL=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,UV: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;Mi(p,Je.BITRATE)&&(d.maxBitrateBps=V.qo*8);d.A_=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,UV:X,maxWidth:Math.max(a.maxWidth||0,d.maxWidth|| 0),maxHeight:Math.max(a.maxHeight||0,d.maxHeight||0),maxFramerate:H,A_:V.A_},Mi(p,Je.BITRATE)&&(C.maxBitrateBps=V.maxBitrateBps),p.T.set(N,C)):p.T.set(N,d)}; p8S=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,UV: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,Mi(p,Je.BITRATE)&&(C.maxBitrateBps=V.qo* 8),C.A_=X==null?void 0:X.isHdr()),p.T.set(N,C))}; UBV=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.UF.apply(this,arguments)}; Vj=function(){g.fW.apply(this,arguments)}; or1=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)}; k$V=function(p){p.C||(p.C=new jH(p.T));return p.C}; Nn=function(p){try{return Fv(p)}catch(C){return null}}; xBe=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 or1(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=$9("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.Vl=!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.Du(this.policy.Y,C);p.delay>0&&this.J.Du(1,Math.min(p.delay,2));p.stall>0&&this.D.Du(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.Y_,this.policy.D,this),g.R(this,this.Ga),this.Ga.start())}; ag=function(p,C,V,N){p.V.Du(N===void 0?C:N,V/C);p.Y=(0,g.Ip)()}; zOS=function(p){p.W||(p.W=(0,g.Ip)());p.policy.Z&&(p.Y=(0,g.Ip)())}; ROj=function(p,C){if(p.W){var V=C-p.W;if(V<6E4){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.Du(C,V/C);p.Y=(0,g.Ip)();H||p.Z.Du(1,C-N);X||(p.W=0);p.b_>-1&&(0,g.Ip)()-p.b_>3E4&&nru(p)}; lL=function(p,C,V){C=Math.max(C,p.C.T);p.D.Du(1,V/C)}; tR=function(p){p=p.J.lc()+p.Sa.lc()||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.R$+=C)}; TM=function(p){p=p.V.lc();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.lc()||0)*p.policy.a$+1/N);var H=p.Wr.lc();H=H>0?H:1;var X=Math.max(N,H);p.policy.W>0&&H=4E3}; Pnj=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.Mz(this.experiments,"html5_auxiliary_estimate_weight");this.a$=g.Mz(this.experiments,"html5_stall_factor")||1;this.D=g.Mz(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")}; $BQ=function(p,C){p=p===void 0?{}:p;C=C===void 0?{}:C;g.z.call(this);var V=this;this.values=p;this.Rn=C;this.C={};this.V=this.T=0;this.S=new g.N8(function(){wPj(V)},1E4); g.R(this,this.S)}; m4=function(p,C){L$H(p,C);return p.values[C]&&p.Rn[C]?p.values[C]/Math.pow(2,p.T/p.Rn[C]):0}; L$H=function(p,C){p.values[C]||(C=fSj(),p.values=C.values||{},p.Rn=C.halfLives||{},p.C=C.values?Object.assign({},C.values):{})}; wPj=function(p){var C=fSj();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.Rn;V={};V.values=p.C;V.halfLives=C;g.Yl("yt-player-memory",V,2592E3)}; xS=function(p,C,V,N,H){g.z.call(this);this.webPlayerContextConfig=C;this.yv=N;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Ym=this.YM=this.Qn=this.vz=this.userDisplayName=this.userDisplayImage=this.Qo="";this.T={};this.wy={};this.controlsType="0";this.xt=NaN;this.Wc=!1;this.H1=(0,g.Ip)();this.Q$=0;this.Te=this.iy=!1;this.Z_=!0;this.preferGapless=this.Xx=this.eZ=this.V=this.Fx=this.W1=!1;this.N5=[];this.Fu=!0;this.FF=!1;p=p?g.Y5(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 ST1(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(L){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||gru(this)&&C.loaderUrl?C.loaderUrl||"":this.iW:this.S||gru(this)&&p.loaderUrl?a_("",p.loaderUrl):this.iW;this.S&&g.YH("yt.embedded_player.embed_url",this.loaderUrl);this.D=jY(this.loaderUrl,W$L);N=this.loaderUrl;var d=d===void 0?!1:d;this.vK=Cs(jY(N,Qdy),N,d,"Trusted Ad Domain URL");this.zB=iO(!1,p.privembed);this.protocol=this.iW.indexOf("http:")=== 0?"http":"https";this.Vn=V6((C?C.customBaseYoutubeUrl:p.BASE_YT_URL)||"")||V6(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,rMj):d&&(N="embedded");this.Wr=N;xva();d=null;N=C?C.playerStyle:p.ps;X=g.W5(B2L,N);!N||X&&!this.D||(d=N);this.playerStyle=d;this.Y=g.W5(B2L,this.playerStyle);this.houseBrandUserStatus=C==null?void 0:C.houseBrandUserStatus;this.b_=this.Y&&this.playerStyle!=="play"&& this.playerStyle!=="jamboard";this.Ec=!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)||(Ir().defaultPlaybackRate?vg||g.N5||rB?g.k$&&q8("20")||g.An&&q8("4")||g.Fs&&q8("11")||pK():!(g.Fs&&!g.gm("chrome")||vg||g.gm("android")||g.gm("silk")):!1);this.Le=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.Y_=Vc()||Hw();this.S6=this.G("mweb_allow_background_playback")?!1:this.C&&!this.Y;this.R$=xZ();this.y8=g.SH;var E;this.a8=!!(C==null?0:(E=C.embedsHostFlags)==null?0:E.optOutApiDeprecation);var l;this.NR=!!(C==null?0:(l=C.embedsHostFlags)==null?0:l.allowPfpImaIntegration);this.Ke=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.c_=g.KI(this)&&!this.a8||iO(!DW(this)&&!uL(this)&&!this.Y,t);this.XV=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.qw=this.C;this.color=hm("red",C?C.progressBarColor:p.color,G$L);this.Y$=this.controlsType==="3";this.uJ=!this.S;this.MO=(E=!this.uJ&&!uL(this)&&!this.b_&&!this.Y&&!DW(this))&&!this.Y$&&this.controlsType==="1";this.XO=g.Oe(this)&&E&&this.controlsType==="0"&&!this.MO&&!(C==null?0:C.embedsEnableEmc3ds);this.nV=this.qr=a;this.K1=(this.controlsType==="3"||this.C||iO(!1,p.use_media_volume))&&!this.J;this.y6=CK&&!g.JB(601)?!1:!0;this.Z$=this.S||!1;this.F$=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.Ov=this.G("enable_cast_for_web_unplugged")&&g.yj(this)&&a||g.$U(this)&&a||c&&a&&this.controlsType==="1"&&!this.C&&(uL(this)||g.Oe(this)||g.qn(this));this.bq=!!window.document.pictureInPictureEnabled||kZ();c=C?!!C.supportsAutoplayOverride:iO(!1,p.autoplayoverride);this.ZZ=!(this.C&&!g.KI(this))&&!g.gm("nintendo wiiu")|| c;this.Kx=(C?!!C.enableMutedAutoplay:iO(!1,p.mutedautoplay))&&!1;c=(uL(this)||DW(this))&&this.playerStyle==="blazer";this.wh=C?!!C.disableFullscreen:!iO(!0,p.fs);a=g.cw(g.Ig(this))&&g.KI(this);this.Hc=!this.wh&&(c||g.Sz())&&!a;c=Wd()&&q8(58)&&!Hw();a=BW||typeof MediaSource==="undefined";this.DS=this.G("uniplayer_block_pip")&&(c||a);c=g.KI(this)&&!this.a8;var T;C?C.disableRelatedVideos!==void 0&&(T=!C.disableRelatedVideos):T=p.rel;this.QZ=c||iO(!this.Y,T);this.qO=iO(!1,C?C.enableContentOwnerRelatedVideos: p.co_rel);this.Z=Hw()&&Ue>0&&Ue<=4.4?"_top":"_blank";this.Mn=g.qn(this);this.F5=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.MW=g.KI(this)&&(this.zB||!DZu()||this.Y_);var M;C?C.disableWatchLater!==void 0&&(M=!C.disableWatchLater):M=p.showwatchlater;this.cV=((T=!this.MW)||!!this.sY&&T)&&iO(!this.b_,this.D?M:void 0);this.d7=C?C.isMobileDevice||!!C.disableKeyboardControls:iO(!1,p.disablekb);this.loop=iO(!1,p.loop);this.pageId=a_("",C?C.initialDelegatedSessionId:p.pageid);this.kE=iO(!0,p.canplaylive);this.Mo=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.Sg(M,T))):M=null;this.Ti=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.bx=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.WP=!this.zB&&Math.random()=480;this.schedule=new se(a,new F$9(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.sO=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.GR=yV(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.oz=iO(!1,p.full_window);var Z;this.l_=!((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),jYj);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 Y;this.Z_= (Y=p.show_loop_video_toggle)!=null?Y:!0;this.e6=Math.random()<1E-4;this.dR=p.onesie_hot_config||(C==null?0:C.onesieHotConfig)?new xBe(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 $BQ;g.R(this,this.f9);this.Fx=iO(!1,p.force_gvi);this.datasyncId=(C==null?void 0:C.datasyncId)||g.pO("DATASYNC_ID");this.o5=g.pO("LOGGED_IN",!1);this.Gp=(C==null?void 0: C.allowWoffleManagement)||!1;this.jH=Infinity;this.X5=NaN;this.livingRoomPoTokenId=C==null?void 0:C.livingRoomPoTokenId;this.G("html5_high_res_logging_always")?this.eZ=!0:this.eZ=Math.random()*100=0&&p0&&p.e6&&(N.sort(),g.eG(new g.Bw("Player client parameters changed after startup",N)));p.userAge=sB(p.userAge,C.user_age);p.Qo=a_(p.Qo,C.user_display_email);p.userDisplayImage=a_(p.userDisplayImage,C.user_display_image);g.H8(p.userDisplayImage)||(p.userDisplayImage= "");p.userDisplayName=a_(p.userDisplayName,C.user_display_name);p.vz=a_(p.vz,C.user_gender);p.csiPageType=a_(p.csiPageType,C.csi_page_type);p.csiServiceName=a_(p.csiServiceName,C.csi_service_name);p.F5=iO(p.F5,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.cR=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 Ir()):CK&&!p.XV||g.gm("nintendo wiiu")?!0:!1}; Lb=function(p){return p.T.c}; g.qz=function(p){return/^TVHTML5/.test(Lb(p))}; g.eH=function(p){return Lb(p)==="TVHTML5"}; gru=function(p){return Lb(p)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; C_j=function(p){return p.T.cmodel==="CHROMECAST ULTRA/STEAK"||p.T.cmodel==="CHROMECAST/STEAK"}; g.Pg=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; yV=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.Of=function(p){return g.yj(p)||Lb(p)==="TV_UNPLUGGED_CAST"||$S(p)}; g.$U=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.An||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&&!Oou()&&g.JB(11)||!p.deviceIsAudioOnly&&g.D1&&g.JB("604.4")}; Ha9=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.qz(p)}; d3L=function(p,C){return p.enabledEngageTypes.has(C.toString())||X0Y.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);ia1.includes(C)&&(C="www.youtube.com");return p.protocol+"://"+C}; g.pk=function(p,C){C=C===void 0?"":C;if(p.yv){var V=new XO,N,H=p.yv();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.$7(p);return(p=Number(g.wA(4,p))||null)?C+":"+p:C}; Ck=function(p,C){C=C===void 0?!1:C;var V=$Z[p],N=heu[V],H=sYa[p];if(!H||!N)return null;C=new e9(C?H.height:H.width,C?H.width:H.height,H.fps);N=s6(N,C,V);return new LR(p,N,{video:C,qo:H.bitrate/8})}; ExQ=function(p){var C=heu[$Z[p]],V=aY9[p];return V&&C?new LR(p,C,{audio:new zx(V.audioSampleRate,V.numChannels)}):null}; jw=function(p){this.T=p}; Vs=function(p,C,V,N){if(V)return xD();V={};var H=Ir();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().qt())V[d]=X}p=[];V.auto&&p.push(V.auto);N=g.F(PB);for(H=N.next();!H.done;H=N.next())(H=V[H.value])&&p.push(H);return p.length?YD(p):xD()}; lYe=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.jD=p.jD;this.vV=p.vV||"";this.K4=p.K4;this.audioChannels=p.audioChannels;this.T=""}; t8e=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 lYe({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,jD: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}; cLs=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=""}; T6j=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.BX(C,{cpn:p.cpn}));V&&(C=g.BX(C,{paired:V}));return C}; M8S=function(p,C){p=p.itag.toString();C!==null&&(p+=C.itag.toString());return p}; JLS=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}; m3S=function(p,C){if(!(BW||GQ()||rm()))return null;p=t8e(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.Gv(X,d.K4),V[X]=d,C.push(d)))}}return C.length>0?C:null}; D3j=function(p,C,V,N,H,X,d){if(!(BW||GQ()||rm()))return xD();var a={},E=vx9(V),l=t8e(V,p.G("html5_filter_fmp4_in_hls"),p.W.Y,a);if(!l)return d({noplst:1}),xD();FHS(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 lYe({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=SAj(l,f));if(q=l[f.T])if(V.push(f),f.vV==="fairplay"&&(c=t),A="",f.jD==="PQ"?A="smpte2084":f.jD==="HLG"&&(A="arib-std-b67"),A&&(S=A),M.push(KHy(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(Y, W){return W.getInfo().isEncrypted()&&Y},!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(KHy(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)}; KHy=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 LR(H,"application/x-mpegURL",{audio:new zx(0,J),video:new e9(X,d,a,null,void 0,l,void 0,T),vV:c,hT:S});p=new cLs(p,C,V?[V]:[],N,!!M);p.S=t?t:1369843;return new H7(H,p,E)}; vx9=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}; SAj=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""}; FHS=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}; umY=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.mw(d.url,!0);if(d.s){var a=X,E=d.sp,l=Kt9(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=Hc(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}; Za1=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=Hc(H.type,"medium","0");N.push(new dP(X,H.url))}return Vs(p.W,N,YS(p,C),!1)}; U3Y=function(p,C){var V=[],N=Hc(C.type,"auto",C.itag);V.push(new dP(N,C.url));return Vs(p.W,V,!1,!0)}; OaY=function(p){return p&&fYe[p]?fYe[p]:null}; yLj=function(p){if(p=p.commonConfig)this.url=p.url,this.urlQueryOverride=p.urlQueryOverride,p.ustreamerConfig&&(this.SE=Nn(p.ustreamerConfig)||void 0)}; qAY=function(p,C){var V;if(C=C==null?void 0:(V=C.watchEndpointSupportedOnesieConfig)==null?void 0:V.html5PlaybackOnesieConfig)p.n2=new yLj(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.IYQ=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("")}; kda=function(p,C,V,N){p||(p=C&&bay.hasOwnProperty(C)&&ALu.hasOwnProperty(C)?ALu[C]+"_"+bay[C]:void 0);C=p;if(!C)return null;p=C.match(oxe);if(!p||p.length!==5)return null;if(p=C.match(oxe)){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(x3V)),H=N.next();!H.done;H=N.next()){H=H.value;var X=C?C+H:H;X=p[X+"_webp"]||p[X];g.H8(X)&&(V[x3V[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(YAj)),N=V.next();!N.done;N=V.next()){var H=Number(N.value);N=YAj[H];for(var X=g.F(p),d=X.next();!d.done;d=X.next())if(d=d.value,d.width>=H){H=ze9(d.url);g.H8(H)&&(C[N]=H);break}}(p=p.pop())&&p.width>=1280&&(p=ze9(p.url),g.H8(p)&&(C["maxresdefault.jpg"]=p));return C}; ze9=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}; Ree=function(p,C){p.botguardData=C.playerAttestationRenderer.botguardData;C=C.playerAttestationRenderer.challenge;C!=null&&(p.V8=C)}; P_Q=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,nxs);if(a)return{is_yto_interstitial:!0,raw_player_response:a};if(d=g.n(d,eeu))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,rj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":p.interstitials=p.interstitials.concat({time:0x7ffffffffffff,playerVars:H,rj: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, rj:X===0?5:7})}}}; w0V=function(p,C){if(C=C.find(function(V){return!(!V||!V.tooltipRenderer)}))p.tooltipRenderer=C.tooltipRenderer}; $39=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)}; LH1=function(p,C){C!=null?(p.ly=C,p.g6=!0):(p.ly="",p.g6=!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.xR=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.MG=this.author="";this.xR=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Sg=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(C){this.ariaLabel=C.aria_label||void 0;this.author=C.author||"";this.MG=C.MG||"";if(p=C.endscreen_autoplay_session_data)this.xR=X5(p,"&");this.sS=C.sS;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.Sg=C.Sg||"";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}}; gxY=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,WHy)}; QYX=function(p){this.T=p.playback_progress_0s_url;this.V=p.playback_progress_2s_url;this.C=p.playback_progress_10s_url}; rLS=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 WE(p);break a}Sw=void 0}}return Sw}; g.Kk=function(){var p=rLS();if(!p)return{};try{var C=p.get("yt-player-lv");return JSON.parse(C||"{}")}catch(V){return{}}}; g.B6e=function(p){var C=rLS();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.B6e(V))}; g.Zb=function(p){return g.I(function(C){return C.return(g.WW(Gdv(),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,pYv(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=CtL(p,C.OV()),f=CtL(p,!C.OV()),q={fmts:jHQ(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 Y={fmts:"music",format:{}};S=A&&H&&!C.OV()?g.xt(S.objectStore("index"),Y,f):g.f3.resolve(void 0);return g.f3.all([S,q,D,Z]).then(function(W){W=g.F(W);W.next();W=W.next().value;Uj--;var L=g.Db(p);if(L!==4&&A&&H||W!==void 0&&g.V3L(W.fmts))L=1,g.us(p, L);return L})}),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.Nre=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:{}})})}))})}; XYe=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 HzQ(H,l)}).catch(function(l){throw new g.Bw("Error while reading chunk: "+l.name+", "+l.message); })):E.return(a)})}; g.V3L=function(p){return p?p==="music"?!0:p.includes("dlt=-1")||!p.includes("dlt="):!1}; CtL=function(p,C){return""+p+"|"+(C?"v":"a")}; jHQ=function(p){var C={};return dm((C.dlt=p.downloadedEndTime.toString(),C.mket=p.maxKnownEndTime.toString(),C.avbr=p.averageByteRate.toString(),C))}; izy=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.dOL)?(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||""}; h5L=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)}; aFV=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,{vQ:X,jF:H}))}sHe(p)}; sHe=function(p){if(!p.T&&!p.V.isEmpty()){var C=p.V.remove();p.T=E1L(p,C)}}; E1L=function(p,C){var V=document.createElement("img");p.crossOrigin&&(V.crossOrigin=p.crossOrigin);V.src=p.levels[C.vQ].i9(C.jF);V.onload=function(){var N=C.vQ,H=C.jF;p.T!==null&&(p.T.onload=null,p.T=null);N=p.levels[N];N.loaded.add(H);sHe(p);var X=N.columns*N.rows;H*=X;N=Math.min(H+X-1,N.OM()-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.Rh()&&p.Ss();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.Ss()+1-N*V;if(X1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; lFL=function(p,C,V){return(p=p.levels[C])?p.fC(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.Gp=wI.engagedViewUrls[0])}}var EX=p.playerResponse.playerCueRanges;EX&&EX.length>0&&(p.cueRanges=EX);var DZ=p.playerResponse.playerCueRangeSet;DZ&&g.wP(p,DZ);a:{var uX=p.playerResponse.adPlacements;if(uX)for(var ZZ=g.F(uX),pS=ZZ.next();!pS.done;pS=ZZ.next()){var UJ=void 0,fx=void 0,CS=(UJ=pS.value.adPlacementRenderer)==null?void 0:(fx=UJ.renderer)==null?void 0:fx.videoAdTrackingRenderer;if(CS){var OJ=CS;break a}}OJ=null}var yE=OJ;Hv&&Hv.promotedPlaybackTracking&&yE&&g.eG(new g.Bw("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); yE&&(p.Z1=!0);var qf=p.playerResponse.playerAds;if(qf)for(var OW=C,I7=g.F(qf),ji=I7.next();!ji.done;ji=I7.next()){var bX=ji.value;if(bX){var Aj=bX.playerLegacyDesktopWatchAdsRenderer;if(Aj){var DK=Aj.playerAdParams;if(DK){DK.autoplay=="1"&&(p.GU=!0,p.Zm=!0);p.hI=DK.encodedAdSafetyReason||null;DK.showContentThumbnail!==void 0&&(p.Xx=!!DK.showContentThumbnail);OW.enabled_engage_types=DK.enabledEngageTypes;break}}}}var uB=p.playerResponse.playerConfig;if(uB){var Xj=uB.manifestlessWindowedLiveConfig; if(Xj){var VQ=Number(Xj.minDvrSequence),NQ=Number(Xj.maxDvrSequence),lR=Number(Xj.minDvrMediaTimeMs),tN=Number(Xj.maxDvrMediaTimeMs),cC=Number(Xj.startWalltimeMs);VQ&&(p.AE=VQ);lR&&(p.vr=lR/1E3,p.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(p)&&(p.vK=lR/1E3));NQ&&(p.c6=NQ);tN&&(p.YM=tN/1E3,p.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(p)&&(p.qw=tN/1E3));cC&&(p.MW=cC/1E3);(VQ||lR)&&(NQ||tN)&&(p.Wr=!0,p.isLivePlayback=!0,p.allowLiveDvr=!0,p.EO=!1)}var uu=uB.daiConfig; if(uu){if(uu.enableDai){p.lW=!0;var o7=uu.enableServerStitchedDai;o7&&(p.enableServerStitchedDai=o7);var k4=uu.enablePreroll;k4&&(p.enablePreroll=k4)}var x4;if(uu.daiType==="DAI_TYPE_SS_DISABLED"||((x4=uu.debugInfo)==null?0:x4.isDisabledUnpluggedChannel))p.e3=!0;uu.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(p.Ah=!0)}var b3=uB.audioConfig;if(b3){var Hh=b3.loudnessDb;Hh!=null&&(p.DS=Hh);var T1=b3.trackAbsoluteLoudnessLkfs;T1!=null&&(p.cX=T1);var Y4=b3.loudnessTargetLkfs;Y4!=null&&(p.loudnessTargetLkfs= Y4);b3.audioMuted&&(p.wh=!0);b3.muteOnStart&&(p.S8=!0);var Me=b3.loudnessNormalizationConfig;if(Me){Me.applyStatefulNormalization&&(p.applyStatefulNormalization=!0);Me.preserveStatefulLoudnessTarget&&(p.preserveStatefulLoudnessTarget=!0);var yB=Me.minimumLoudnessTargetLkfs;yB!=null&&(p.minimumLoudnessTargetLkfs=yB);var e7=Me.maxStatefulTimeThresholdSec;e7!=null&&(p.maxStatefulTimeThresholdSec=e7)}p.G("web_player_audio_playback_from_audio_config")&&b3.playAudioOnly&&(p.Mn=!0)}var lE=uB.playbackEndConfig; if(lE){var OsQ=lE.endSeconds,yy9=lE.limitedPlaybackDurationInSeconds;p.mutedAutoplay&&(OsQ&&(p.endSeconds=OsQ),yy9&&(p.limitedPlaybackDurationInSeconds=yy9))}var qI=uB.fairPlayConfig;if(qI){var qze=qI.certificate;qze&&(p.l_=Nn(qze));var IlL=Number(qI.keyRotationPeriodMs);IlL>0&&(p.F_=IlL);var bsY=Number(qI.keyPrefetchMarginMs);bsY>0&&(p.JI=bsY)}var XX=uB.playbackStartConfig;if(XX){p.Ke=Number(XX.startSeconds);var Ayv=XX.liveUtcStartSeconds,ouH=!!p.liveUtcStartSeconds&&p.liveUtcStartSeconds>0;Ayv&& !ouH&&(p.liveUtcStartSeconds=Number(Ayv));var tS=XX.startPosition;if(tS){var klV=tS.utcTimeMillis;klV&&!ouH&&(p.liveUtcStartSeconds=Number(klV)*.001);var xoy=tS.streamTimeMillis;xoy&&(p.sO=Number(xoy)*.001)}p.progressBarStartPosition=XX.progressBarStartPosition;p.progressBarEndPosition=XX.progressBarEndPosition}else{var cA=uB.skippableSegmentsConfig;if(cA){var Yzs=cA.introSkipDurationMs;Yzs&&(p.kz=Number(Yzs)/1E3);var z4S=cA.outroSkipDurationMs;z4S&&(p.AY=Number(z4S)/1E3)}}var TZ=uB.skippableIntroConfig; if(TZ){var R4s=Number(TZ.startMs),nuj=Number(TZ.endMs);isNaN(R4s)||isNaN(nuj)||(p.iM=R4s,p.H1=nuj)}var e4S=uB.streamSelectionConfig;e4S&&(p.xt=Number(e4S.maxBitrate));var PG9=uB.vrConfig;PG9&&(p.FS=PG9.partialSpherical=="1");var zw=uB.webDrmConfig;if(zw){zw.skipWidevine&&(p.sF=!0);var w8u=zw.widevineServiceCert;w8u&&(p.a8=Nn(w8u));zw.useCobaltWidevine&&(p.useCobaltWidevine=!0);zw.startWithNoQualityConstraint&&(p.o5=!0)}var ZK=uB.mediaCommonConfig;if(ZK){var IM=ZK.dynamicReadaheadConfig;if(IM){p.maxReadAheadMediaTimeMs= IM.maxReadAheadMediaTimeMs||NaN;p.minReadAheadMediaTimeMs=IM.minReadAheadMediaTimeMs||NaN;p.readAheadGrowthRateMs=IM.readAheadGrowthRateMs||NaN;var $oY,Lku=ZK==null?void 0:($oY=ZK.mediaUstreamerRequestConfig)==null?void 0:$oY.videoPlaybackUstreamerConfig;Lku&&(p.Cx=Nn(Lku));var Mu=ZK==null?void 0:ZK.sabrContextUpdates;if(Mu&&Mu.length>0)for(var guu=g.F(Mu),JS=guu.next();!JS.done;JS=guu.next()){var JN=JS.value;if(JN.type&&JN.value){var hJ0={type:JN.type,scope:JN.scope,value:Nn(JN.value)||void 0,sendByDefault:JN.sendByDefault}; p.sabrContextUpdates.set(JN.type,hJ0)}}}var WkY=ZK.serverPlaybackStartConfig;WkY&&(p.serverPlaybackStartConfig=WkY);ZK.useServerDrivenAbr&&(p.rg=!0);var Qjv=ZK.requestPipeliningConfig;Qjv&&(p.requestPipeliningConfig=Qjv)}var ryu=uB.inlinePlaybackConfig;ryu&&(p.ZT=!!ryu.showAudioControls);var bd=uB.embeddedPlayerConfig;if(bd){p.embeddedPlayerConfig=bd;var mX=bd.embeddedPlayerMode;if(mX){var BnH=p.K();BnH.Sa=mX;BnH.V=mX==="EMBEDDED_PLAYER_MODE_PFL"}var GlY=bd.permissions;GlY&&(p.allowImaMonetization= !!GlY.allowImaMonetization)}var pB9=uB.ssapConfig;pB9&&(p.T9=pB9.ssapPrerollEnabled||!1);var Al=uB.webPlayerConfig;Al&&(Al.gatewayExperimentGroup&&(p.gatewayExperimentGroup=Al.gatewayExperimentGroup),Al.isProximaEligible&&(p.isProximaLatencyEligible=!0))}var UM=p.playerResponse.streamingData;if(UM){var vA=UM.formats;if(vA){for(var R7=[],Cv9=g.F(vA),FT=Cv9.next();!FT.done;FT=Cv9.next()){var Sc=FT.value;R7.push(Sc.itag+"/"+Sc.width+"x"+Sc.height)}p.u7=R7.join(",");R7=[];for(var jrH=g.F(vA),KQ=jrH.next();!KQ.done;KQ= jrH.next()){var nx=KQ.value,eb={itag:nx.itag,type:nx.mimeType,quality:nx.quality},V9Q=nx.url;V9Q&&(eb.url=V9Q);var oM=u5(nx),sc8=oM.Ko,auy=oM.rG,Eef=oM.s;oM.mR&&(eb.url=sc8,eb.sp=auy,eb.s=Eef);R7.push(g.rA(eb))}p.cR=R7.join(",")}var DL=UM.hlsFormats;if(DL){var NOH=uB||null,kA={};if(NOH){var uE=NOH.audioPairingConfig;if(uE&&uE.pairs)for(var HR1=g.F(uE.pairs),ZL=HR1.next();!ZL.done;ZL=HR1.next()){var XBS=ZL.value,Uw=XBS.videoItag;kA[Uw]||(kA[Uw]=[]);kA[Uw].push(XBS.audioItag)}}for(var dDV={},iRv=g.F(DL), fQ=iRv.next();!fQ.done;fQ=iRv.next()){var h0v=fQ.value;dDV[h0v.itag]=h0v.bitrate}for(var srH=[],asv=g.F(DL),Ow=asv.next();!Ow.done;Ow=asv.next()){var gW=Ow.value,d9={itag:gW.itag,type:gW.mimeType,url:gW.url,bitrate:gW.bitrate,width:gW.width,height:gW.height,fps:gW.fps},xA=gW.audioTrack;if(xA){var EZL=xA.displayName;EZL&&(d9.name=EZL,d9.audio_track_id=xA.id,xA.audioIsDefault&&(d9.is_default="1"))}if(gW.drmFamilies){for(var lsY=[],t9e=g.F(gW.drmFamilies),yp=t9e.next();!yp.done;yp=t9e.next())lsY.push(a5[yp.value]); d9.drm_families=lsY.join(",")}var YA=kA[gW.itag];if(YA&&YA.length){d9.audio_itag=YA.join(",");var cnH=dDV[YA[0]];cnH&&(d9.bitrate+=cnH)}var TOS=UVu(gW);TOS&&(d9.eotf=TOS);gW.audioChannels&&(d9.audio_channels=gW.audioChannels);srH.push(g.rA(d9))}p.hlsFormats=srH.join(",")}var qu=UM.licenseInfos;if(qu&&qu.length>0){for(var M9V={},Jny=g.F(qu),Im=Jny.next();!Im.done;Im=Jny.next()){var mDe=Im.value,vZX=mDe.drmFamily,FQV=mDe.url;vZX&&FQV&&(M9V[a5[vZX]]=FQV)}p.vV=M9V}var SN9=UM.drmParams;SN9&&(p.drmParams= SN9);var KQH=UM.dashManifestUrl;KQH&&(p.zB=g.BX(KQH,{cpn:p.clientPlaybackNonce}));var DDv=UM.hlsManifestUrl;DDv&&(p.hlsvp=DDv);var uNV=UM.probeUrl;uNV&&(p.probeUrl=XY(g.BX(uNV,{cpn:p.clientPlaybackNonce})));var ZR9=UM.serverAbrStreamingUrl;ZR9&&(p.jO=new g.mw(ZR9,!0))}var UDH=p.playerResponse.trackingParams;UDH&&(p.Sa=UDH);var Gt=p.playerResponse.videoDetails;if(Gt){var i4=C,bE=Gt.videoId;bE&&(p.videoId=bE,i4.video_id||(i4.video_id=bE));var fsS=Gt.channelId;fsS&&(p.D.uid=fsS.substring(2));var AS= Gt.title;AS&&(p.title=AS,i4.title||(i4.title=AS));var om=Gt.lengthSeconds;om&&(p.lengthSeconds=Number(om),i4.length_seconds||(i4.length_seconds=om));var ORa=Gt.keywords;ORa&&(p.keywords=FZj(ORa));var kz=Gt.channelId;kz&&(p.Qv=kz,i4.ucid||(i4.ucid=kz));var yn1=Gt.viewCount;yn1&&(p.rawViewCount=Number(yn1));var xz=Gt.author;xz&&(p.author=xz,i4.author||(i4.author=xz));var qNv=Gt.shortDescription;qNv&&(p.shortDescription=qNv);var Is1=Gt.isCrawlable;Is1&&(p.isListed=Is1);var bRS=Gt.musicVideoType;bRS&& (p.musicVideoType=bRS);var Yz=Gt.isLive;Yz!=null&&(p.isLivePlayback=Yz);if(Yz||Gt.isUpcoming)p.isPremiere=!Gt.isLiveContent;var AnL=Gt.thumbnail;AnL&&(p.Z=ls(AnL));var oZe=Gt.isExternallyHostedPodcast;oZe&&(p.isExternallyHostedPodcast=oZe);var zZ=Gt.viewerLivestreamJoinPosition;if(zZ==null?0:zZ.utcTimeMillis)p.CA=ic(zZ.utcTimeMillis);var kxe=uB||null,Rm=C;Gt.isLiveDefaultBroadcast&&(p.isLiveDefaultBroadcast=!0);Gt.isUpcoming&&(p.isUpcoming=!0);if(Gt.isPostLiveDvr){p.EO=!0;var xDv=Gt.latencyClass; xDv&&(p.latencyClass=y5Y[xDv]||"UNKNOWN");Gt.isLowLatencyLiveStream&&(p.isLowLatencyLiveStream=!0)}else{var nQ=!1;if(p.Mo)p.allowLiveDvr=Bb()?!0:jz&&Lk<5?!1:!0,p.isLivePlayback=!0;else if(Gt.isLive){Rm.livestream="1";p.allowLiveDvr=Gt.isLiveDvrEnabled?Bb()?!0:jz&&Lk<5?!1:!0:!1;p.partnerId=27;Gt.isLowLatencyLiveStream&&(p.isLowLatencyLiveStream=!0);var z0s=Gt.latencyClass;z0s&&(p.latencyClass=y5Y[z0s]||"UNKNOWN");var R0s=Gt.liveChunkReadahead;R0s&&(p.liveChunkReadahead=R0s);var d3=kxe&&kxe.livePlayerConfig; if(d3){d3.hasSubfragmentedFmp4&&(p.hasSubfragmentedFmp4=!0);d3.hasSubfragmentedWebm&&(p.qh=!0);d3.defraggedFromSubfragments&&(p.defraggedFromSubfragments=!0);var nZe=d3.liveExperimentalContentId;nZe&&(p.liveExperimentalContentId=Number(nZe));var e0u=d3.isLiveHeadPlayable;p.G("html5_live_head_playable")&&e0u!=null&&(p.isLiveHeadPlayable=e0u)}nQ=!0}else Gt.isUpcoming&&(nQ=!0);nQ&&(p.isLivePlayback=!0,Rm.adformat&&Rm.adformat.split("_")[1]!=="8"||p.Vn.push("heartbeat"),p.l6=!0)}var PvX=Gt.isPrivate; PvX!==void 0&&(p.isPrivate=iO(p.isPrivate,PvX))}if(Q){var wB9=Gt||null,$Dj=!1,i7=Q.errorScreen;$Dj=i7&&(i7.playerLegacyDesktopYpcOfferRenderer||i7.playerLegacyDesktopYpcTrailerRenderer||i7.ypcTrailerRenderer)?!0:wB9&&wB9.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Q.status);if(!$Dj){p.errorCode=OaY(Q.errorCode)||"auth";var z5=i7&&i7.playerErrorMessageRenderer;if(z5){p.playerErrorMessageRenderer=z5;var LQH=z5.reason;LQH&&(p.errorReason=g.Kq(LQH));var ec=z5.subreason;ec&&(p.vp= g.Kq(ec),p.EC=ec)}else p.errorReason=Q.reason||null;var PA=Q.status;if(PA==="LOGIN_REQUIRED")p.errorDetail="1";else if(PA==="CONTENT_CHECK_REQUIRED")p.errorDetail="2";else if(PA==="AGE_CHECK_REQUIRED"){var gZ1=Q.errorScreen,WQj=gZ1&&gZ1.playerKavRenderer;p.errorDetail=WQj&&WQj.kavUrl?"4":"3"}else p.errorDetail=Q.isBlockedInRestrictedMode?"5":"0"}}var Qre=p.playerResponse.interstitialPods;Qre&&P_Q(p,Qre);p.Y_&&p.eventId&&(p.Y_=Ek(p.Y_,{ei:p.eventId}));var wa=p.playerResponse.captions;if(wa&&wa.playerCaptionsTracklistRenderer)a:{var hx= wa.playerCaptionsTracklistRenderer;p.captionTracks=[];if(hx.captionTracks)for(var rnS=g.F(hx.captionTracks),$z=rnS.next();!$z.done;$z=rnS.next()){var sE=$z.value,BO1=J5V(sE.baseUrl);if(!BO1)break a;var LQ={is_translateable:!!sE.isTranslatable,languageCode:sE.languageCode,languageName:sE.name&&g.Kq(sE.name),url:BO1,vss_id:sE.vssId,kind:sE.kind};LQ.name=sE.trackName;LQ.displayName=sE.name&&g.Kq(sE.name);p.captionTracks.push(new g.is(LQ))}p.qY=hx.audioTracks||[];p.NL=hx.defaultAudioTrackIndex||0;p.RX= [];if(hx.translationLanguages)for(var GxY=g.F(hx.translationLanguages),WA=GxY.next();!WA.done;WA=GxY.next()){var h0=WA.value,vC={};vC.languageCode=h0.languageCode;vC.languageName=g.Kq(h0.languageName);if(h0.translationSourceTrackIndices){vC.translationSourceTrackIndices=[];for(var pc1=g.F(h0.translationSourceTrackIndices),Qp=pc1.next();!Qp.done;Qp=pc1.next())vC.translationSourceTrackIndices.push(Qp.value)}if(h0.excludeAudioTrackIndices){vC.excludeAudioTrackIndices=[];for(var CXe=g.F(h0.excludeAudioTrackIndices), ra=CXe.next();!ra.done;ra=CXe.next())vC.excludeAudioTrackIndices.push(ra.value)}p.RX.push(vC)}p.Zp=[];if(hx.defaultTranslationSourceTrackIndices)for(var j7L=g.F(hx.defaultTranslationSourceTrackIndices),BA=j7L.next();!BA.done;BA=j7L.next())p.Zp.push(BA.value);p.Pb=!!hx.contribute&&!!hx.contribute.captionsMetadataRenderer}p.clipConfig=p.playerResponse.clipConfig;p.clipConfig&&p.clipConfig.startTimeMs!=null&&(p.Ke=Number(p.clipConfig.startTimeMs)*.001);p.playerResponse&&p.playerResponse.playerConfig&& p.playerResponse.playerConfig.webPlayerConfig&&p.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&$39(p,p.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Vbe;p.compositeLiveIngestionOffsetToken=(Vbe=p.playerResponse.playbackTracking)==null?void 0:Vbe.compositeLiveIngestionOffsetToken;var NNS;p.compositeLiveStatusToken=(NNS=p.playerResponse.playbackTracking)==null?void 0:NNS.compositeLiveStatusToken}nk(p,C);C.queue_info&&(p.queueInfo=C.queue_info);var Hx1= C.hlsdvr;Hx1!=null&&(p.allowLiveDvr=Number(Hx1)===1?Bb()?!0:jz&&Lk<5?!1:!0:!1);p.adQueryId=C.ad_query_id||null;p.hI||(p.hI=C.encoded_ad_safety_reason||null);p.UL=C.agcid||null;p.lj=C.ad_id||null;p.Qm=C.ad_sys||null;p.LJ=C.encoded_ad_playback_context||null;p.wh=iO(p.wh,C.infringe||C.muted);p.QQ=C.authkey;p.RS=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.Fs=iO(p.Fs,C&&C.mutedautoplay);var RM=C.length_seconds;RM&&(p.lengthSeconds=typeof RM==="string"?ic(RM):RM);if(p.isAd()||p.qO||!g.cw(g.Ig(p.I$)))p.endSeconds=sB(p.endSeconds,p.AY||C.end||C.endSeconds);else{var luv=g.Ig(p.I$),nf=p.lengthSeconds;switch(luv){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":nf>30?p.limitedPlaybackDurationInSeconds=30:nf<30&&nf>10&&(p.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":p.limitedPlaybackDurationInSeconds= nf*.2}}p.Sa=a_(p.Sa,C.itct);p.PX=iO(p.PX,C.noiba);p.XE=iO(p.XE,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 eK=C.mdx_control_mode;eK&&(p.mdxControlMode=typeof eK==="number"?eK:ic(eK));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.Xx=iO(p.Xx,C.show_content_thumbnail);p.Mq=iO(p.Mq,C.utpsa);p.cycToken=C.cyc||null;p.yH=C.tkn||null;var XcX=Ej(C);Object.keys(XcX).length>0&&(p.Z=XcX);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.dL=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.Fe=C.pyv_view_beacon_url;p.a4=C.pyv_quartile25_beacon_url;p.u2=C.pyv_quartile50_beacon_url;p.aB=C.pyv_quartile75_beacon_url;p.qs=C.pyv_quartile100_beacon_url;var dfH=C.session_data;!p.HY&&dfH&&(p.HY=X5(dfH,"&").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.yr=a_(p.yr,C.ctrl);p.tX=a_(p.tX,C.ytr);p.Cg=C.ytrcc;p.bV=C.ytrexp;p.JY=C.ytrext;p.Q$=a_(p.Q$,C.adformat);p.nA=a_(p.nA,C.attrib);p.slotPosition=sB(p.slotPosition,C.slot_pos);p.breakType=C.break_type;p.Y$=iO(p.Y$,C.ssrt);p.videoId=lO(C)||p.videoId;p.Y=a_(p.Y,C.vss_credentials_token);p.jS=a_(p.jS,C.vss_credentials_token_type);p.Mn=iO(p.Mn,C.audio_only);p.Wc=iO(p.Wc,C.aac_high);p.Bv=iO(p.Bv,C.prefer_low_quality_audio);p.s2=iO(p.s2,C.uncap_inline_quality);p.G("html5_enable_qoe_cat_list")?C.qoe_cat&& (p.S6=p.S6.concat(C.qoe_cat.split(","))):p.N5=a_(p.N5,C.qoe_cat);p.MO=iO(p.MO,C.download_media);var ix1=C.prefer_gapless;var tlv=ix1!=null?iO(p.J,ix1):p.J?p.J:p.I$.preferGapless&&p.I$.supportsGaplessShorts();p.J=tlv;$gu(p.playerResponse)&&(p.Vn.push("ad"),p.G("html5_ssap_pacf_qoe_ctmp")&&p.k_("ssap",{npa:0}));var hcV=C.adaptive_fmts;hcV&&(p.adaptiveFormats=hcV,p.k_("adpfmts",{},!0));var s71=C.allow_embed;s71&&(p.allowEmbed=Number(s71)===1);var aZ9=C.backgroundable;aZ9&&(p.backgroundable=Number(aZ9)=== 1);var E4V=C.autonav;E4V&&(p.isAutonav=Number(E4V)===1);var lZQ=C.autoplay;lZQ&&(p.Zm=Number(lZQ)===1,p.GU=p.Zm,P7(p,"c"));var tbv=C.iv_load_policy;tbv&&(p.annotationsLoadPolicy=hm(p.annotationsLoadPolicy,tbv,bL));var cj9=C.cc_lang_pref;cj9&&(p.captionsLanguagePreference=a_(cj9,p.captionsLanguagePreference));var TNu=C.cc_load_policy;TNu&&(p.Yu=hm(p.Yu,TNu,bL));var Mba;p.deviceCaptionsOn=(Mba=C.device_captions_on)!=null?Mba:void 0;var JjH;p.qL=(JjH=C.device_captions_lang_pref)!=null?JjH:"";var mfy; p.S9=(mfy=C.viewer_selected_caption_langs)!=null?mfy:[];if(!p.G("html5_enable_ssap_entity_id")){var v49=C.cached_load;v49&&(p.YQ=iO(p.YQ,v49))}if(C.dash==="0"||C.dash===0||C.dash===!1)p.IF=!0;var FuX=C.dashmpd;FuX&&(p.zB=g.BX(FuX,{cpn:p.clientPlaybackNonce}));var SJv=C.delay;SJv&&(p.ER=ic(SJv));var GZ=p.AY||C.end;if(p.uJ?GZ!=null:GZ!=void 0)p.clipEnd=sB(p.clipEnd,GZ);var KuL=C.fmt_list;KuL&&(p.u7=KuL);C.heartbeat_preroll&&p.Vn.push("heartbeat");p.Fu=-Math.floor(Math.random()*10);p.IX=-Math.floor(Math.random()* 40);var Dfy=C.is_listed;Dfy&&(p.isListed=iO(p.isListed,Dfy));var uz9=C.is_private;uz9&&(p.isPrivate=iO(p.isPrivate,uz9));var ZxL=C.is_dni;ZxL&&(p.g6=iO(p.g6,ZxL));var Ufv=C.dni_color;Ufv&&(p.ly=a_(p.ly,Ufv));var fZV=C.pipable;fZV&&(p.pipable=iO(p.pipable,fZV));p.KG=p.pipable&&p.I$.bq;p.ul=p.KG&&!p.I$.showMiniplayerButton;var OxV=C.paid_content_overlay_duration_ms;OxV&&(p.paidContentOverlayDurationMs=ic(OxV));var yjL=C.paid_content_overlay_text;yjL&&(p.paidContentOverlayText=yjL);var qJH=C.url_encoded_fmt_stream_map; qJH&&(p.cR=qJH);var IZV=C.hls_formats;IZV&&(p.hlsFormats=IZV);var bxy=C.hlsvp;bxy&&(p.hlsvp=bxy);var P_=C.live_start_walltime;P_&&(p.nj=typeof P_==="number"?P_:ic(P_));var ws=C.live_manifest_duration;ws&&(p.jH=typeof ws==="number"?ws:ic(ws));var AjX=C.player_params;AjX&&(p.playerParams=AjX);var o4y=C.partnerid;o4y&&(p.partnerId=sB(p.partnerId,o4y));var kwS=C.probe_url;kwS&&(p.probeUrl=XY(g.BX(kwS,{cpn:p.clientPlaybackNonce})));var pi=C.pyv_billable_url;pi&&VGe(pi)&&(p.Gp=pi);var Ci=C.pyv_conv_url; Ci&&VGe(Ci)&&(p.Hh=Ci);Sie(p,C);p.startSeconds>0?p.G("html5_log_start_seconds_inconsistency")&&p.startSeconds!==(p.Ke||p.kz||C.start||C.startSeconds)&&p.k_("lss",{css:p.startSeconds,pcss:p.Ke,iss:p.kz,ps:C.start||void 0,pss:C.startSeconds||void 0}):(p.startSeconds=sB(p.startSeconds,p.Ke||p.kz||C.start||C.startSeconds),p.Hc=p.startSeconds);if(!(p.liveUtcStartSeconds&&p.liveUtcStartSeconds>0)){var xfy=C.live_utc_start;if(xfy!=null)p.liveUtcStartSeconds=Number(xfy);else{var jR=p.startSeconds;jR&&isFinite(jR)&& jR>1E9&&(p.liveUtcStartSeconds=p.startSeconds)}}if(!(p.liveUtcStartSeconds&&p.liveUtcStartSeconds>0)){var YJV=C.utc_start_millis;YJV&&(p.liveUtcStartSeconds=Number(YJV)*.001)}var zcX=C.stream_time_start_millis;zcX&&(p.sO=Number(zcX)*.001);var VY=p.kz||C.start;(p.uJ?VY==null||Number(C.resume)===1:VY==void 0||C.resume=="1")||p.isLivePlayback||(p.clipStart=sB(p.clipStart,VY));var RcQ=C.url_encoded_third_party_media;RcQ&&(p.Te=hw(RcQ));var NH=C.ypc_offer_button_formatted_text;if(NH){var n4Y=JSON.parse(NH); p.us=n4Y!=null?n4Y:null;p.LH=NH}var ecL=C.ypc_offer_button_text;ecL&&(p.y4=ecL);var PXS=C.ypc_offer_description;PXS&&(p.g2=PXS);var wcu=C.ypc_offer_headline;wcu&&(p.Th=wcu);var $fQ=C.ypc_full_video_message;$fQ&&(p.nV=$fQ);var Luj=C.ypc_offer_id;Luj&&(p.XV=Luj);var g4L=C.ypc_buy_url;g4L&&(p.AI=g4L);var Wuv=C.ypc_item_thumbnail;Wuv&&(p.M2=Wuv);var Q7H=C.ypc_item_title;Q7H&&(p.Kw=Q7H);var rjL=C.ypc_item_url;rjL&&(p.ZV=rjL);var BNV=C.ypc_vid;BNV&&(p.J2=BNV);C.ypc_overlay_timeout&&(p.O_=Number(C.ypc_overlay_timeout)); var Gwa=C.ypc_trailer_player_vars;Gwa&&(p.FV=i1(Gwa));var pjv=C.ypc_original_itct;pjv&&(p.sH=pjv);p.Qv=a_(p.Qv,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.XL=C.storyboard_spec||null;p.sA=C.live_storyboard_spec||null;p.md=C.iv_endscreen_url|| null;p.Za=iO(p.Za,C.iv3_module);p.l6=iO(p.l6,C.ypc_license_checker_module);p.Uf=iO(p.Uf,C.ypc_module);p.ZZ=iO(p.ZZ,C.ypc_clickwrap_module);p.Uf&&p.Vn.push("ypc");p.ZZ&&p.Vn.push("ypc_clickwrap");p.Hl={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};M39(p,C);var CUH=C.cotn;CUH&&(p.cotn=CUH);if(qi9(p))gP(p)&&(p.isLivePlayback&&p.zB&&(p.vz=!0),p.l_&&(p.iy=!0));else if(IFS(p))p.vz=!0;else{var Nle,HV9,Xj9=((Nle=p.playerResponse)==null?void 0:(HV9=Nle.streamingData)==null?void 0:HV9.adaptiveFormats)||[];if(Xj9.length>0)var wN=bzY(p,Xj9);else{var iVH=p.adaptiveFormats;if(iVH&&!gP(p)){W7(p,"html5_enable_cobalt_experimental_vp9_decoder")&& (D8=!0);var sn=Qs(iVH),Hm=p.vV,hRL=p.lengthSeconds,cb5=p.isLivePlayback,$4=p.EO,aD=p.I$,TVG=ehs(sn);if(cb5||$4){var skS=aD==null?void 0:aD.experiments,A$=new hz("",skS,!0);A$.p4=!0;A$.isManifestless=!0;A$.C=!$4;A$.isLive=!$4;A$.EO=$4;for(var a51=g.F(sn),X$=a51.next();!X$.done;X$=a51.next()){var En=X$.value,ELe=lo(En,Hm),FD=tz(En.url,En.sp,En.s),l5a=FD.get("id");l5a&&l5a.includes("%7E")&&(A$.Z=!0);var t6u=void 0,MlG=(t6u=skS)==null?void 0:t6u.OY("html5_max_known_end_time_rebase"),JbP=Number(En.target_duration_sec)|| 5,mXp=Number(En.max_dvr_duration_sec)||14400,cKX=Number(FD.get("mindsq")||FD.get("min_sq")||"0"),TlQ=Number(FD.get("maxdsq")||FD.get("max_sq")||"0")||Infinity;A$.AE=A$.AE||cKX;A$.c6=A$.c6||TlQ;var vec=!Nf(ELe.mimeType);FD&&X1(A$,new Lp(FD,ELe,{gR:JbP,A9:vec,iq:mXp,AE:cKX,c6:TlQ,Er:300,EO:$4,U7:MlG}))}var M6a=A$}else{if(TVG==="FORMAT_STREAM_TYPE_OTF"){var Lf=hRL;Lf=Lf===void 0?0:Lf;var l7=new hz("",aD==null?void 0:aD.experiments,!1);l7.duration=Lf||0;for(var JKL=g.F(sn),dj=JKL.next();!dj.done;dj=JKL.next()){var t0= dj.value,iy=lo(t0,Hm,l7.duration),hv=tz(t0.url,t0.sp,t0.s);if(hv)if(iy.streamType==="FORMAT_STREAM_TYPE_OTF")X1(l7,new gz(hv,iy,"sq/0"));else{var FaE=uw(t0.init),SQE=uw(t0.index);X1(l7,new VM(hv,iy,FaE,SQE))}}l7.isOtf=!0;var mrL=l7}else{var gs=hRL;gs=gs===void 0?0:gs;var W_=new hz("",aD==null?void 0:aD.experiments,!1);W_.duration=gs||0;for(var vLy=g.F(sn),sY=vLy.next();!sY.done;sY=vLy.next()){var ch=sY.value,Ka2=lo(ch,Hm,W_.duration),DX2=uw(ch.init),uHE=uw(ch.index),FEv=tz(ch.url,ch.sp,ch.s);FEv&& X1(W_,new VM(FEv,Ka2,DX2,uHE))}mrL=W_}M6a=mrL}var S3j=M6a;if(sn.length>0){var KEe=sn[0];if(p.K().playerStyle==="hangouts-meet"&&KEe.url){var ZHp=g.sk(KEe.url);p.y8=p.y8||Number(ZHp.expire)}}var UX5=p.isLivePlayback&&!p.EO&&!p.Wr&&!p.isPremiere;p.G("html5_live_head_playable")&&(!rP(p)&&UX5&&p.k_("missingLiveHeadPlayable",{}),p.I$.a$==="yt"&&(S3j.Y_=!0));wN=S3j}else wN=null;p.k_("pafmts",{isManifestFilled:!!wN})}if(wN){B7(p,wN);var Drv=!0}else Drv=!1;Drv?p.enableServerStitchedDai=p.enableServerStitchedDai&& Ge(p):p.zB&&(p.I$.a$==="yt"&&p.p4()&&p.G("drm_manifestless_unplugged")&&p.G("html5_deprecate_manifestful_fallback")?p.k_("deprecateMflFallback",{}):p.vz=!0)}var EY=C.adpings;EY&&(p.Gs=EY?i1(EY):null);var uOH=C.feature;uOH&&(p.Ec=uOH);var ZVQ=C.referrer;ZVQ&&(p.referrer=ZVQ);p.clientScreenNonce=a_(p.clientScreenNonce,C.csn);p.wf=sB(p.wf,C.root_ve_type);p.WP=sB(p.WP,C.kids_age_up_mode);p.uJ||C.kids_app_info==void 0||(p.kidsAppInfo=C.kids_app_info);p.uJ&&C.kids_app_info!=null&&(p.kidsAppInfo=C.kids_app_info); p.q2=iO(p.q2,C.upg_content_filter_mode);p.unpluggedFilterModeType=sB(p.unpluggedFilterModeType,C.unplugged_filter_mode_type);var UrS=C.unplugged_location_info;UrS&&(p.a$=UrS);var f59=C.unplugged_partner_opt_out;f59&&(p.Up=a_("",f59));p.U5=iO(p.U5,C.disable_watch_next);p.Ti=a_(p.Ti,C.internal_ip_override);p.jm=!!C.is_yto_interstitial;(p.interstitials.length||p.jm)&&p.Vn.push("yto");var OV9=C.hW;OV9&&(p.hW=OV9);var yKu;p.R$=(yKu=C.csi_timer)!=null?yKu:"";p.y6=!!C.force_gvi;C.watchUrl&&(p.watchUrl=C.watchUrl); var SV=C.watch_endpoint;p.G("html5_attach_watch_endpoint_ustreamer_config")&&SV&&qAY(p,SV);if(SV==null?0:SV.ustreamerConfig)p.SE=Nn(SV.ustreamerConfig);var q3v,I5H,bVs=SV==null?void 0:(q3v=SV.loggingContext)==null?void 0:(I5H=q3v.qoeLoggingContext)==null?void 0:I5H.serializedContextData;bVs&&(p.y0=bVs);g.KI(p.I$)&&p.I$.Xx&&(p.embedsRct=a_(p.embedsRct,C.rct),p.embedsRctn=a_(p.embedsRctn,C.rctn));p.X5=p.X5||!!C.pause_at_start;C.default_active_source_video_id&&(p.defaultActiveSourceVideoId=C.default_active_source_video_id)}; v1y=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.eY("ssei","eim_"+p.clientPlaybackNonce);var X;return((X=C.cacheMetadata)==null?0:X.isCacheHit)||p.YQ||!H?"":(Cf.has(H)?V="":(C=A59.push(H),Cf.add(H),C>(V!=null?V:50)&&(V=A59.shift())&&Cf.delete(V),V=H),H!==V&&p.eY("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,o1L),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.Kq(t.title)),t.subtitle&&(C.subtitle=g.Kq(t.subtitle)))}g.Oe(p.I$)&&(p.cV=!!d.addToMenu);kvX(p,d.shareButton);d.startPosition&&d.endPosition&&(p.progressBarStartPosition=d.startPosition,p.progressBarEndPosition=d.endPosition);var c=d.gatedActionsOverlayRenderer;c&&(p.tD=g.n(c,xOQ));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,YiL);if(S){p.J_=Number(S==null?void 0:S.durationMs)|| NaN;if(S==null?0:S.infoPanelOverviewViewModel)p.eZ=S==null?void 0:S.infoPanelOverviewViewModel;if(S==null?0:S.infoPanelDetailsViewModel)p.dR=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,z5H);q&&(q.suppressShareButton&&(p.showShareButton=!1),q.suppressWatchLaterButton&&(p.cV=!1))}l&&R5L(p,C,l);var A= sB(0,C.autoplay_count),Y=p.getWatchNextResponse(),W,L=(W=Y.contents)==null?void 0:W.twoColumnWatchNextResults,VL,au,Q,e=(VL=Y.playerOverlays)==null?void 0:(au=VL.playerOverlayRenderer)==null?void 0:(Q=au.autoplay)==null?void 0:Q.playerOverlayAutoplayRenderer,G=gxY(p),m,P=(m=Y.contents)==null?void 0:m.singleColumnWatchNextResults;if(P){var p0;if(((p0=P.autoplay)==null?0:p0.autoplay)&&!P.playlist){var Sy=P.autoplay.autoplay.sets,V8={},fY=new g.mx(p.K()),jy=null,c5;if(Sy){for(var r1=g.F(Sy),u=r1.next();!u.done;u= r1.next()){var U=u.value.autoplayVideoRenderer;if(U&&U.compactVideoRenderer){jy=U.compactVideoRenderer;break}}if(c5=Sy[0].autoplayVideo){var O=c5.clickTrackingParams;O&&(V8.itct=O);V8.autonav="1";V8.playnext=String(A)}}else V8.feature="related-auto";var b=g.n(c5,g.VB);if(jy){fY.videoId=jy.videoId;var x=jy.shortBylineText;x&&(fY.author=g.Kq(x));var pY=jy.title;pY&&(fY.title=g.Kq(pY))}else b!=null&&b.videoId&&(fY.videoId=b.videoId);fY.xR=V8;p.suggestions=[];p.Hb=fY}}if(G){for(var d1=[],Hv=g.F(G),k= Hv.next();!k.done;k=Hv.next()){var ES=k.value,my=void 0,i9=null;if(ES.endScreenVideoRenderer){var ou=ES.endScreenVideoRenderer,iP=ou.title;i9=new g.mx(p.K());i9.videoId=ou.videoId;i9.lengthSeconds=ou.lengthInSeconds||0;var n0=ou.publishedTimeText;n0&&(i9.publishedTimeText=g.Kq(n0));var Tt=ou.shortBylineText;Tt&&(i9.author=g.Kq(Tt));var $H=ou.shortViewCountText;$H&&(i9.shortViewCount=g.Kq($H));if(iP){i9.title=g.Kq(iP);var Rf=iP.accessibility;if(Rf){var El=Rf.accessibilityData;El&&El.label&&(i9.ariaLabel= El.label)}}var zA=ou.navigationEndpoint;if(zA){my=zA.clickTrackingParams;var Rt=g.n(zA,g.VB),eg=g.n(zA,g.Pa);Rt?i9.sS=Rt:eg!=null&&(i9.watchUrl=eg.url)}var Su=ou.thumbnailOverlays;if(Su)for(var L6=g.F(Su),Le=L6.next();!Le.done;Le=L6.next()){var PG=Le.value.thumbnailOverlayTimeStatusRenderer;if(PG)if(PG.style==="LIVE"){i9.isLivePlayback=!0;break}else if(PG.style==="UPCOMING"){i9.isUpcoming=!0;break}}i9.Z=ls(ou.thumbnail)}else if(ES.endScreenPlaylistRenderer){var cG=ES.endScreenPlaylistRenderer,ob= cG.navigationEndpoint;if(!ob)continue;var qj=g.n(ob,g.VB);if(!qj)continue;var M1=qj.videoId;i9=new g.JA(p.K());i9.playlistId=cG.playlistId;i9.playlistLength=Number(cG.videoCount)||0;i9.T=M1||null;i9.videoId=M1;var k7=cG.title;k7&&(i9.title=g.Kq(k7));var Y3=cG.shortBylineText;Y3&&(i9.author=g.Kq(Y3));my=ob.clickTrackingParams;i9.Z=ls(cG.thumbnail)}i9&&(my&&(i9.sessionData={itct:my}),d1.push(i9))}p.suggestions=d1}if(e){p.pE=!!e.preferImmediateRedirect;p.FF=p.FF||!!e.webShowNewAutonavCountdown;p.Fx= p.Fx||!!e.webShowBigThumbnailEndscreen;if(p.FF||p.Fx){var IX=L||null,hc=new g.mx(p.K());hc.videoId=e.videoId;var Ke=e.videoTitle;if(Ke){hc.title=g.Kq(Ke);var Xv=Ke.accessibility;if(Xv){var S0=Xv.accessibilityData;S0&&S0.label&&(hc.ariaLabel=S0.label)}}var nd=e.byline;nd&&(hc.author=g.Kq(nd));var ML=e.publishedTimeText;ML&&(hc.publishedTimeText=g.Kq(ML));var lX=e.shortViewCountText;lX&&(hc.shortViewCount=g.Kq(lX));var tj=e.thumbnailOverlays;if(tj)for(var cc=g.F(tj),rk=cc.next();!rk.done;rk=cc.next()){var Hf= rk.value.thumbnailOverlayTimeStatusRenderer;if(Hf)if(Hf.style==="LIVE"){hc.isLivePlayback=!0;break}else if(Hf.style==="UPCOMING"){hc.isUpcoming=!0;break}else if(Hf.style==="DEFAULT"&&Hf.text){hc.lengthText=g.Kq(Hf.text);var Tw=Hf.text.accessibility;if(Tw){var BE=Tw.accessibilityData;BE&&BE.label&&(hc.Sg=BE.label||"")}break}}hc.Z=ls(e.background);var G6=e.nextButton;if(G6){var Mf=G6.buttonRenderer;if(Mf){var Jj=Mf.navigationEndpoint;if(Jj){var mu=g.n(Jj,g.VB);mu&&(hc.sS=mu)}}}if(e.topBadges){var vc= e.topBadges[0];if(vc){var Fz=g.n(vc,n1v);Fz&&Fz.style==="BADGE_STYLE_TYPE_PREMIUM"&&(hc.idS=!0)}}var Sb=e.alternativeTitle;Sb&&(hc.MG=g.Kq(Sb));var KX={autonav:"1",playnext:String(A)};hc.playlistId&&(KX.autoplay="1");if(IX){var UW,Kx,ff,wI,EX=(UW=IX.autoplay)==null?void 0:(Kx=UW.autoplay)==null?void 0:(ff=Kx.sets)==null?void 0:(wI=ff[0])==null?void 0:wI.autoplayVideo;if(EX){var DZ=EX.clickTrackingParams;DZ&&(KX.itct=DZ);var uX=g.n(EX,g.VB);uX&&(hc.A4=uX)}}else if(e){var ZZ,pS,UJ,fx=(ZZ=e.nextButton)== null?void 0:(pS=ZZ.buttonRenderer)==null?void 0:(UJ=pS.navigationEndpoint)==null?void 0:UJ.clickTrackingParams;fx&&(KX.itct=fx)}KX.itct||(KX.feature="related-auto");hc.xR=KX;p.suggestions||(p.suggestions=[]);p.Hb=hc}e.countDownSecs!=null&&(p.p5=e.countDownSecs*1E3);e.countDownSecsForFullscreen!=null&&(p.Xs=e.countDownSecsForFullscreen>=0?e.countDownSecsForFullscreen*1E3:-1);p.G("web_autonav_color_transition")&&e.watchToWatchTransitionRenderer&&(p.watchToWatchTransitionRenderer=g.n(e.watchToWatchTransitionRenderer, e5u))}var CS=gxY(p);if(CS){var OJ,yE,qf,OW=CS==null?void 0:(OJ=CS[0])==null?void 0:(yE=OJ.endScreenVideoRenderer)==null?void 0:(qf=yE.navigationEndpoint)==null?void 0:qf.clickTrackingParams,I7=g.NI(p);OW&&I7&&(I7.sessionData={itct:OW})}p.Ga.currentVideoThumbnail&&(p.Z=ls(p.Ga.currentVideoThumbnail));var ji,bX,Aj,DK,uB,Xj=(ji=p.Ga)==null?void 0:(bX=ji.contents)==null?void 0:(Aj=bX.twoColumnWatchNextResults)==null?void 0:(DK=Aj.results)==null?void 0:(uB=DK.results)==null?void 0:uB.contents;if(Xj&&Xj[1]){var VQ, NQ,lR,tN,cC=(VQ=Xj[1].videoSecondaryInfoRenderer)==null?void 0:(NQ=VQ.owner)==null?void 0:(lR=NQ.videoOwnerRenderer)==null?void 0:(tN=lR.thumbnail)==null?void 0:tN.thumbnails;cC&&cC.length&&(p.profilePicture=cC[cC.length-1].url)}var uu=lO(C),o7,k4=(o7=p.getWatchNextResponse())==null?void 0:o7.onResponseReceivedEndpoints;if(k4)for(var x4=g.F(k4),b3=x4.next();!b3.done;b3=x4.next()){var Hh=b3.value;g.n(Hh,H_)&&(p.vl=g.n(Hh,H_));var T1=g.n(Hh,Pty),Y4=void 0;if((Y4=T1)==null?0:Y4.entityKeys)p.Iy=T1.entityKeys|| [],T1.visibleOnLoadKeys&&(p.visibleOnLoadKeys=T1.visibleOnLoadKeys)}if(p.G("web_key_moments_markers")){var Me=g.Xx.getState().entities,yB=g.l8("visibility_override","markersVisibilityOverrideEntity");var e7=cJ(Me,"markersVisibilityOverrideEntity",yB);p.Qn=(e7==null?void 0:e7.videoId)===(p.videoId||uu)&&(e7==null?0:e7.visibilityOverrideMarkersKey)?e7.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}; KZS=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.xo(),X=hl(p),d=p.Wc,a=C,E=p.isOtf();C=p.PJ();var l=p.Mo,t=p.getUserAudio51Preference(),c=sW(p),T=new HjQ(N);if(N.Gk()||N.G("html5_logging_format_selection"))T.C=!0;T.l_=X;T.Wc=d&&N.D;T.vr=t;g.gm("windows nt 5.1")&&!g.k$&&(T.FN=!0);if(X=H)X=g.Wg(N)?Ha9(N):!1;X&&(T.sY=!0);a&&(T.FN=!0,T.uJ=!0);E&&!N.G("html5_otf_prefer_vp9")&&(T.FN=!0);N.playerStyle==="picasaweb"&&(E&&(T.FN=!1),T.Vn= !1);l&&(T.FN=!0);Mi(N.W,Je.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.Mz(N.experiments,"html5_max_selectable_quality_ordinal");T.D=g.Mz(N.experiments,"html5_min_selectable_quality_ordinal");rB&&(T.wy=480);if(V||H)T.Vn=!1;T.Mo=!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.Vr=V);V>=2160&&(T.Wr=!0);ISH()&&(T.T.serveVp9OverAv1IfHigherRes=0,T.zB=!1);T.PJ=C;T.Y_=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.MW=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.LA&&(T.a$=p.LA),p.VR&&(T.V= p.VR));T.R$=p.isLivePlayback&&p.F4()&&p.I$.G("html5_drm_live_audio_51");T.bx=p.VH;return p.W1=T}; sW=function(p){return p.I$.G("html5_disable_av1")||p.G("html5_gapless_shorts_disable_av1")&&id(p)?!0:!1}; wYv=function(p){jL("drm_pb_s",void 0,p.R$);p.l_||p.T&&Ec(p.T);var C={};p.T&&(C=wUX(p.tI,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.sF,p.useCobaltWidevine?rm()?EW(p):!1:!1,function(V,N){p.k_(V,N)}); g.R(p,C);p.iy=!1;p.loading=!0;T21(C,function(V){jL("drm_pb_f",void 0,p.R$);for(var N=g.F(V),H=N.next();!H.done;H=N.next())switch(H=H.value,H.flavor){case "fairplay":H.l_=p.l_;H.F_=p.F_;H.JI=p.JI;break;case "widevine":H.a8=p.a8}p.Z$=V;if(p.Z$.length>0&&(p.W=p.Z$[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)})}; bzY=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=Pba(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=u5(E);a=tz(a.Ko||E.url||"",a.rG,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.c6=N.c6||T;var M=!Nf(H.mimeType);a&&X1(N,new Lp(a,H,{gR:t,A9:M,iq:E,AE:c,c6:T,Er:300,EO:X,U7: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=u5(N),(H=tz(H.Ko||N.url||"", H.rG,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=u5(a),(a=tz(l.Ko||a.url||"",l.rG,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.Y_=!0));return V}; gP=function(p){return rm()?!EW(p):GQ()?!(!p.l_||!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.w3.set(V.cueRangeSetIdentifier,(N=V.playerCueRanges)!=null?N:[])}}; Ge=function(p){return!(!p.T||!p.T.isManifestless)}; ld=function(p){return p.uJ?p.isLowLatencyLiveStream&&p.T!=null&&Jz(p.T)>=5:p.isLowLatencyLiveStream&&p.T!=void 0&&Jz(p.T)>=5}; qi9=function(p){return rm()&&EW(p)?!1:gP(p)&&(g.Of(p.I$)?!p.isLivePlayback:p.hlsvp)||!Bb()||p.IF?!0:!1}; LZV=function(p){p.loading=!0;p.vz=!1;if(IFS(p))g.Nre(p.videoId).then(function(N){$Ov(p,N)}).then(function(){RI(p)}); else{No(p.zB)||g.eG(new g.Bw("DASH MPD Origin invalid: ",p.zB));var C=p.zB,V=g.Mz(p.I$.experiments,"dash_manifest_version")||4;C=g.BX(C,{mpd_version:V});p.isLowLatencyLiveStream&&p.latencyClass!=="NORMAL"||(C=g.BX(C,{pacing:0}));BFY(C,p.I$.experiments,p.isLivePlayback).then(function(N){p.fS()||(B7(p,N,!0),jL("mrc",void 0,p.R$),RI(p))},function(N){p.fS()||(p.loading=!1,p.publish("dataloaderror",new ON("manifest.net.retryexhausted",{backend:"manifest", rc:N.status},1)))}); jL("mrs",void 0,p.R$)}}; $Ov=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.W1)==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.Z$),c=t.next();!c.done;c=t.next())if(c=c.value,bo(c)){p.W=c;break}T5(p,l)})}return xD()}; Bre=function(p){if(p.isExternallyHostedPodcast&&p.cR){var C=Qs(p.cR);if(!C[0])return xD();p.xI=C[0];return U3Y(p.I$,C[0]).then(function(V){T5(p,V)})}return p.Te&&p.Vb?Za1(p.I$,p.isAd(),p.Te).then(function(V){T5(p,V)}):xD()}; p1s=function(p){if(p.isExternallyHostedPodcast)return xD();var C=Qs(p.cR,p.u7);if(p.hlsvp){var V=t3u(p.hlsvp,p.clientPlaybackNonce,p.xt);C.push(V)}return umY(p.I$,p.isAd(),C,Gva(p)).then(function(N){T5(p,N)})}; WZX=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.TT[N]=V.id)}}MI(p);if(p.W&&p.V&&p.V.videoInfos&&!(p.V.videoInfos.length<=0)&&(C=px(p.V.videoInfos[0]),p.W.flavor==="fairplay"!==C))for(V=g.F(p.Z$),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.QZ=C;WZX(p,new dH(g.bZ(p.QZ,function(V){return V.getInfo()})))}; Gva=function(p){var C={cpn:p.clientPlaybackNonce,c:p.I$.T.c,cver:p.I$.T.cver};p.NA&&(C.ptk=p.NA,C.oid=p.fE,C.ptchn=p.iB,C.pltype=p.Wl,p.KA&&(C.m=p.KA));return C}; g.Jl=function(p){return gP(p)&&p.l_?(p={},p.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",p):p.C&&p.C.vV||null}; C51=function(p){var C=mJ(p);return C&&C.text?g.Kq(C.text):p.paidContentOverlayText}; j2v=function(p){var C=mJ(p);return C&&C.durationMs?ic(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,Voy)||null}; v_=function(p){var C="";if(p.T2)return p.T2;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]}; NHu=function(p){return!!p.Gp||!!p.It||!!p.ys||!!p.Rk||p.Z1||p.D.focEnabled||p.D.rmktEnabled}; g.SK=function(p){return!!(p.zB||p.cR||p.Te||p.hlsvp||p.UC())}; 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.oz);for(var V=0;V0:C||p.adFormat!=="17_8"||p.isAutonav||g.LI(p.I$)||p.Zm?p.d7?!1:p.I$.ZZ||p.I$.Kx||!g.KI(p.I$)?!C&&CT(p)==="adunit"&&p.Gp?!1:!0:!1:!1:(p.d7?0:p.iW)&&g.KI(p.I$)?!0:!1;p.G("html5_log_detailpage_autoplay")&&CT(p)==="detailpage"&&p.k_("autoplay_info",{autoplay:p.GU,autonav:p.isAutonav,wasDompaused:p.d7,result:C});return C}; g.XE=function(p){return p.oauthToken||p.I$.Ym}; MoX=function(p){if(p.G("html5_stateful_audio_normalization")){var C=1,V=g.Mz(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.cX){N=(0,g.Ip)();p.Le=2;var H=N-p.I$.X5<=p.maxStatefulTimeThresholdSec*1E3;p.applyStatefulNormalization&&H?p.Le=4:H||(p.I$.jH=Infinity,p.I$.X5=NaN);H=(p.Le===4?g.M$(p.I$.jH,p.minimumLoudnessTargetLkfs,p.loudnessTargetLkfs):p.loudnessTargetLkfs)-V;if(p.Le!==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$.jH=V+H,p.I$.X5=N);p=Math.min(1,Math.pow(10,H/20))||C}else p=THj(p)}else p=THj(p);return p}; THj=function(p){var C=1,V=g.Mz(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.DS)p.Le=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.Mn||!g.$U(p.I$)&&!V||!C.includes(p.musicVideoType)&&!p.isExternallyHostedPodcast||(p.Mn=!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.Mn)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.Mn=!0);return p.I$.deviceIsAudioOnly||p.Mn&&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)}; ix=function(p){var C;return!((C=p.playerResponse)==null||!C.compositePlayabilityStatus)}; Jej=function(p){return isNaN(p)?0:Math.max((Date.now()-p)/1E3-30,0)}; h_=function(p){return!(!p.MO||!p.I$.D)&&p.UC()}; mij=function(p){return p.enablePreroll&&p.enableServerStitchedDai}; vgS=function(p){return p.G("html5_enable_sabr_from_watch_server")&&p.rg&&!p.jO}; Fwa=function(p){return p.G("html5_enable_sabr_live_captions")&&p.p4()&&!1}; $B=function(p){if(p.MF||p.I$.a$!=="yt"||p.cotn||!p.T||p.T.isOtf||p.Ah&&!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.rg&&!!p.jO;if(!p.G("html5_combine_client_check_for_sabr"))return C;if(C)return!0;p.eY("sabr","esfc")}var V=!p.T.p4&&!p.F4();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=s5(p),H=p.G("html5_enable_sabr_drm_vod_streaming_xhr")&& gB&&p.F4()&&!p.T.p4&&(p.dh==="1"?!1:!0);(C=C||V||N||H)&&!p.jO&&p.k_("sabr",{loc:"m"},!0);return C&&!!p.jO}; s5=function(p){var C;if(!(C=gB&&p.p4()&&p.F4()&&(p.dh==="1"?!1:!0)&&p.G("html5_sabr_live_drm_streaming_xhr"))){C=p.p4()&&!p.F4()&&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.T9&&$B(p)}; IFS=function(p){var C;if(C=!!p.cotn)C=p.videoId,C=!!C&&g.Db(C)===1;return C&&!p.MO}; g.a$=function(p){if(!p.T||!p.C||!p.S)return!1;var C=p.T.T,V=!!C[p.C.id]&&So(C[p.C.id].sR.T);C=!!C[p.S.id]&&So(C[p.S.id].sR.T);return(p.C.itag==="0"||V)&&C}; E5=function(p){return p.Zw?["OK","LIVE_STREAM_OFFLINE"].includes(p.Zw.status):!0}; hTy=function(p){return(p=p.Z_)&&p.showError?p.showError:!1}; W7=function(p,C){return p.G(C)?!0:(p.fflags||"").includes(C+"=true")}; uFH=function(p){return p.G("html5_heartbeat_iff_heartbeat_params_filled")}; Sie=function(p,C){C.inlineMetricEnabled&&(p.inlineMetricEnabled=!0);C.playback_progress_0s_url&&(p.Rk=new QYX(C));if(C=C.video_masthead_ad_quartile_urls)p.It=C.quartile_0_url,p.RK=C.quartile_25_url,p.Yp=C.quartile_50_url,p.DW=C.quartile_75_url,p.Pl=C.quartile_100_url,p.ys=C.quartile_0_urls,p.tY=C.quartile_25_urls,p.Kj=C.quartile_50_urls,p.g3=C.quartile_75_urls,p.Dp=C.quartile_100_urls}; FZj=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}; J5V=function(p){if(p){if(dYX(p))return p;p=im1(p);if(dYX(p,!0))return p}return""}; g.ScY=function(p){return p.captionsLanguagePreference||p.I$.captionsLanguagePreference||g.Fx(p,"yt:cc_default_lang")||p.I$.ER}; lx=function(p){return!(!p.isLivePlayback||!p.hasProgressBarBoundaries())}; g.NI=function(p){var C;return p.Hb||((C=p.suggestions)==null?void 0:C[0])||null}; g.t_=function(p){return p.g6&&(p.G("embeds_enable_pfp_always_unbranded")||p.I$.NR)}; P7=function(p,C){p.G("html5_log_autoplay_src")&&id(p)&&p.k_("apsrc",{src:C})}; g.ck=function(p){var C,V;return!!((C=p.embeddedPlayerConfig)==null?0:(V=C.embeddedPlayerFlags)==null?0:V.enableMusicUx)}; g.Mh=function(p){var C=p.K(),V=g.TC(C),N=C.F$;(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})),o_e(V,p));if(N=p.Sa)V.clickTracking={clickTrackingParams:N};N=V.client||{};var H="EMBED",X=CT(p);X==="leanback"?H="WATCH":C.G("gvi_channel_client_screen")&&X==="profilepage"?H="CHANNEL":p.Mo?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.WP)&&!C&&(N.kidsAppInfo={contentSettings:{ageUpMode:KwS[H]}});if(C=p.q2)N.unpluggedAppInfo={enableFilterMode:!0};(H=p.unpluggedFilterModeType)&&!C&&(N.unpluggedAppInfo={filterModeType:Di9[H]});if(C=p.a$)N.unpluggedLocationInfo=C;V.client=N;N=V.request||{};p.K1&&(N.isPrefetch=!0);if(C=p.mdxEnvironment)N.mdxEnvironment=C;if(C=p.mdxControlMode)N.mdxControlMode= uP1[C];V.request=N;N=V.user||{};if(C=p.b_)N.credentialTransferTokens=[{token:C,scope:"VIDEO"}];if(C=p.F$)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.TC=function(p){var C=g.Da(),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.F$;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}; qca=function(p,C,V){var N=p.videoId,H=g.Mh(p),X=p.K(),d={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(bV()),referer:document.location.toString(),signatureTimestamp:20095};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=ZwV[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.nj;if(E!=null){E={startWalltime:String(E)};if(l=p.jH)E.manifestDuration=String(l||14400);d.liveContext= E}if(p.mutedAutoplay&&(d.mutedAutoplay=!0,p.G("embeds_enable_full_length_inline_muted_autoplay"))){E=X.getWebPlayerContextConfig();var D,Z;(E==null?0:(D=E.embedsHostFlags)==null?0:D.allowMutedAutoplayDurationMode)&&(E==null?0:(Z=E.embedsHostFlags)==null?0:Z.allowMutedAutoplayDurationMode.includes(UiS[p.mutedAutoplayDurationMode]))&&(d.mutedAutoplayDurationMode=UiS[p.mutedAutoplayDurationMode])}if(p.d7?0:p.iW)d.splay=!0;D=p.vnd;D===5&&(d.vnd=D);D={};if(Z=p.isMdxPlayback)D.triggeredByMdx=Z;if(Z=p.Cg)D.skippableAdsSupported= Z.split(",").includes("ska");if(l=p.tX){Z=p.JY;E=[];l=g.F(kmL(l));for(a=l.next();!a.done;a=l.next()){a=a.value;t=a.platform;a={applicationState:a.t0?"INACTIVE":"ACTIVE",clientFormFactor:fya[t]||"UNKNOWN_FORM_FACTOR",clientName:YfQ[a.AO]||"UNKNOWN_INTERFACE",clientVersion:a.deviceVersion||"",platform:Ow1[t]||"UNKNOWN_PLATFORM"};t={};if(Z){c=void 0;try{c=JSON.parse(Z)}catch(f){g.eG(f)}c&&(t={params:[{key:"ms",value:c.ms}]},c.advertising_id&&(t.advertisingId=c.advertising_id),c.limit_ad_tracking!==void 0&& c.limit_ad_tracking!==null&&(t.limitAdTracking=c.limit_ad_tracking),a.osName=c.os_name,a.userAgent=c.user_agent,a.windowHeightPoints=c.window_height_points,a.windowWidthPoints=c.window_width_points)}E.push({adSignalsInfo:t,remoteClient:a})}D.remoteContexts=E}Z=p.sourceContainerPlaylistId;E=p.serializedMdxMetadata;if(Z||E)l={},Z&&(l.mdxPlaybackContainerInfo={sourceContainerPlaylistId:Z}),E&&(l.serializedMdxMetadata=E),D.mdxPlaybackSourceContext=l;d.mdxContext=D;D=C.width;D>0&&(d.playerWidthPixels= Math.round(D));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.qL&&(N.captionParams.deviceCaptionsLangPref= p.qL);p.S9.length?N.captionParams.viewerSelectedCaptionLangs=p.S9:g.wG(H)&&(d=g.zv(),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.cR&&(N.serviceIntegrityDimensions={},N.serviceIntegrityDimensions.poToken=d.cR);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=yeQ(p);return N}; yeQ=function(p){var C=!(p==null?0:p.PJ())&&(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?a2(V,N,p,!0)===!0:!1}C=V&&!C}else C=void 0;return{supportsVp9Encoding:C,supportXhr:gB}}; bwu=function(p,C){var V,N,H;return g.I(function(X){if(X.C==1)return V={context:g.TC(p.K()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:p.videoId,cpn:p.clientPlaybackNonce}}]},N=g.Un(IyS),g.y(X,g.s0(C,V,N),2);H=X.T;return X.return(H)})}; AeY=function(p,C,V){var N=g.Mz(C.experiments,"bg_vm_reinit_threshold");(!qO||(0,g.Ip)()-qO>N)&&bwu(p,V).then(function(H){H&&(H=H.botguardData)&&g.A5(H,C)},function(H){p.fS()||(H=qD(H),p.k_("attf",H.details))})}; J_=function(p,C){g.z.call(this);this.app=p;this.state=C}; vk=function(p,C,V){p.state.T.hasOwnProperty(C)||mj(p,C,V);p.state.D[C]=function(){return V.apply(p,g.US.apply(0,arguments))}; p.state.Y.add(C)}; FE=function(p,C,V){p.state.T.hasOwnProperty(C)||mj(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))}; mj=function(p,C,V){p.state.T[C]=function(){return V.apply(p,g.US.apply(0,arguments))}}; g.SQ=function(p,C,V){return p.state.T[C].apply(p.state.T,g.K(V))}; KT=function(){g.IL.call(this);this.W=new Map}; Dg=function(){g.z.apply(this,arguments);this.element=null;this.Y=new Set;this.D={};this.J={};this.T={};this.Z=new Set;this.V=new KT;this.C=new KT;this.S=new KT;this.W=new KT}; ogH=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 ux(p)}; ux=function(p,C,V){if(typeof p==="string")return{videoId:p,startSeconds:C,suggestedQuality:V};C={};V=g.F(krv);for(var N=V.next();!N.done;N=V.next())N=N.value,p[N]&&(C[N]=p[N]);return C}; xiX=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}; qh=function(){Zg.apply(this,arguments)}; I$=function(p,C){var V={};if(p.app.K().b_){p=g.F(nge);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 eTe.includes(H)}).join(",")),V.qoe_cat=p; P59(V)}else for(p=g.F(w1y),N=p.next();!N.done;N=p.next())N=N.value,C.hasOwnProperty(N)&&(V[N]=C[N]);return V}; P59=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}})}}; bx=function(p,C,V){var N=p.app.Ft(V);if(!N)return 0;p=N-p.app.getCurrentTime(V);return C-p}; Lwv=function(p){var C=C===void 0?5:C;return p?$i9[p]||C:C}; g.A_=function(){qh.apply(this,arguments)}; ggj=function(p){mj(p,"getInternalApiInterface",p.getInternalApiInterface);mj(p,"addEventListener",p.Qu);mj(p,"removeEventListener",p.p1o);mj(p,"cueVideoByPlayerVars",p.ej);mj(p,"loadVideoByPlayerVars",p.hna);mj(p,"preloadVideoByPlayerVars",p.xgr);mj(p,"getAdState",p.getAdState);mj(p,"sendAbandonmentPing",p.sendAbandonmentPing);mj(p,"setLoopRange",p.setLoopRange);mj(p,"getLoopRange",p.getLoopRange);mj(p,"setAutonavState",p.setAutonavState);mj(p,"seekTo",p.Z9x);mj(p,"seekBy",p.cEV);mj(p,"seekToLiveHead", p.seekToLiveHead);mj(p,"requestSeekToWallTimeSeconds",p.requestSeekToWallTimeSeconds);mj(p,"seekToStreamTime",p.seekToStreamTime);mj(p,"startSeekCsiAction",p.startSeekCsiAction);mj(p,"getStreamTimeOffset",p.getStreamTimeOffset);mj(p,"getVideoData",p.xJ);mj(p,"setInlinePreview",p.setInlinePreview);mj(p,"getAppState",p.getAppState);mj(p,"updateLastActiveTime",p.updateLastActiveTime);mj(p,"setBlackout",p.setBlackout);mj(p,"setUserEngagement",p.setUserEngagement);mj(p,"updateSubtitlesUserSettings",p.updateSubtitlesUserSettings); mj(p,"getPresentingPlayerType",p.q8);mj(p,"canPlayType",p.canPlayType);mj(p,"updatePlaylist",p.updatePlaylist);mj(p,"updateVideoData",p.updateVideoData);mj(p,"updateEnvironmentData",p.updateEnvironmentData);mj(p,"sendVideoStatsEngageEvent",p.bdn);mj(p,"productsInVideoVisibilityUpdated",p.productsInVideoVisibilityUpdated);mj(p,"setSafetyMode",p.setSafetyMode);mj(p,"isAtLiveHead",function(C){return p.isAtLiveHead(void 0,C)}); mj(p,"getVideoAspectRatio",p.getVideoAspectRatio);mj(p,"getPreferredQuality",p.getPreferredQuality);mj(p,"getPlaybackQualityLabel",p.getPlaybackQualityLabel);mj(p,"setPlaybackQualityRange",p.Vqn);mj(p,"onAdUxClicked",p.onAdUxClicked);mj(p,"getFeedbackProductData",p.getFeedbackProductData);mj(p,"getStoryboardFrame",p.getStoryboardFrame);mj(p,"getStoryboardFrameIndex",p.getStoryboardFrameIndex);mj(p,"getStoryboardLevel",p.getStoryboardLevel);mj(p,"getNumberOfStoryboardLevels",p.getNumberOfStoryboardLevels); mj(p,"getCaptionWindowContainerId",p.getCaptionWindowContainerId);mj(p,"getAvailableQualityLabels",p.getAvailableQualityLabels);mj(p,"addCueRange",p.addCueRange);mj(p,"addUtcCueRange",p.addUtcCueRange);mj(p,"showAirplayPicker",p.showAirplayPicker);mj(p,"dispatchReduxAction",p.dispatchReduxAction);mj(p,"getPlayerResponse",p.qH);mj(p,"getWatchNextResponse",p.Ed);mj(p,"getHeartbeatResponse",p.oT);mj(p,"getCurrentTime",p.gU);mj(p,"getDuration",p.Pi);mj(p,"getPlayerState",p.getPlayerState);mj(p,"getPlayerStateObject", p.MH);mj(p,"getVideoLoadedFraction",p.getVideoLoadedFraction);mj(p,"getProgressState",p.getProgressState);mj(p,"getVolume",p.getVolume);mj(p,"setVolume",p.If);mj(p,"isMuted",p.isMuted);mj(p,"mute",p.NV);mj(p,"unMute",p.KK);mj(p,"loadModule",p.loadModule);mj(p,"unloadModule",p.unloadModule);mj(p,"getOption",p.QS);mj(p,"getOptions",p.getOptions);mj(p,"setOption",p.setOption);mj(p,"loadVideoById",p.WQ);mj(p,"loadVideoByUrl",p.LL);mj(p,"playVideo",p.L2);mj(p,"loadPlaylist",p.loadPlaylist);mj(p,"nextVideo", p.nextVideo);mj(p,"previousVideo",p.previousVideo);mj(p,"playVideoAt",p.playVideoAt);mj(p,"getDebugText",p.getDebugText);mj(p,"getWebPlayerContextConfig",p.getWebPlayerContextConfig);mj(p,"notifyShortsAdSwipeEvent",p.notifyShortsAdSwipeEvent);mj(p,"getVideoContentRect",p.getVideoContentRect);mj(p,"setSqueezeback",p.setSqueezeback);mj(p,"toggleSubtitlesOn",p.toggleSubtitlesOn);mj(p,"isSubtitlesOn",p.isSubtitlesOn);mj(p,"reportPlaybackIssue",p.reportPlaybackIssue);mj(p,"setAutonav",p.setAutonav);mj(p, "isNotServable",p.isNotServable);mj(p,"channelSubscribed",p.channelSubscribed);mj(p,"channelUnsubscribed",p.channelUnsubscribed);mj(p,"togglePictureInPicture",p.togglePictureInPicture);mj(p,"supportsGaplessAudio",p.supportsGaplessAudio);mj(p,"supportsGaplessShorts",p.supportsGaplessShorts);mj(p,"enqueueVideoByPlayerVars",function(C){return void p.enqueueVideoByPlayerVars(C)}); mj(p,"clearQueue",p.clearQueue);mj(p,"getAudioTrack",p.Pk);mj(p,"setAudioTrack",p.nB$);mj(p,"getAvailableAudioTracks",p.DA);mj(p,"getMaxPlaybackQuality",p.getMaxPlaybackQuality);mj(p,"getUserPlaybackQualityPreference",p.getUserPlaybackQualityPreference);mj(p,"getSubtitlesUserSettings",p.getSubtitlesUserSettings);mj(p,"resetSubtitlesUserSettings",p.resetSubtitlesUserSettings);mj(p,"setMinimized",p.setMinimized);mj(p,"setOverlayVisibility",p.setOverlayVisibility);mj(p,"confirmYpcRental",p.confirmYpcRental); mj(p,"queueNextVideo",p.queueNextVideo);mj(p,"handleExternalCall",p.handleExternalCall);mj(p,"logApiCall",p.logApiCall);mj(p,"isExternalMethodAvailable",p.isExternalMethodAvailable);mj(p,"setScreenLayer",p.setScreenLayer);mj(p,"getCurrentPlaylistSequence",p.getCurrentPlaylistSequence);mj(p,"getPlaylistSequenceForTime",p.getPlaylistSequenceForTime);mj(p,"shouldSendVisibilityState",p.shouldSendVisibilityState);mj(p,"syncVolume",p.syncVolume);mj(p,"highlightSettingsMenuItem",p.highlightSettingsMenuItem); mj(p,"openSettingsMenuItem",p.openSettingsMenuItem);mj(p,"getEmbeddedPlayerResponse",p.getEmbeddedPlayerResponse);mj(p,"getVisibilityState",p.getVisibilityState);mj(p,"isMutedByMutedAutoplay",p.isMutedByMutedAutoplay);p.G("embeds_enable_emc3ds_muted_autoplay")&&mj(p,"isMutedByEmbedsMutedAutoplay",p.isMutedByEmbedsMutedAutoplay);mj(p,"setGlobalCrop",p.setGlobalCrop);mj(p,"setInternalSize",p.setInternalSize);mj(p,"setFauxFullscreen",p.setFauxFullscreen);mj(p,"setAppFullscreen",p.setAppFullscreen)}; kj=function(p,C,V){p=g.o$(p.aI(),C);return V?(V.addOnDisposeCallback(p),null):p}; g.xj=function(p,C,V){return p.app.K().d7?C:g.FY("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:C,SHORTCUT:V})}; Wwj=function(p){p.aI().element.setAttribute("aria-live","polite")}; g.Yj=function(p,C){g.A_.call(this,p,C);ggj(this);FE(this,"addEventListener",this.oZ);FE(this,"removeEventListener",this.Rs_);FE(this,"cueVideoByPlayerVars",this.Hw);FE(this,"loadVideoByPlayerVars",this.enk);FE(this,"preloadVideoByPlayerVars",this.sIn);FE(this,"loadVideoById",this.WQ);FE(this,"loadVideoByUrl",this.LL);FE(this,"playVideo",this.L2);FE(this,"loadPlaylist",this.loadPlaylist);FE(this,"nextVideo",this.nextVideo);FE(this,"previousVideo",this.previousVideo);FE(this,"playVideoAt",this.playVideoAt); FE(this,"getVideoData",this.ZX);FE(this,"seekBy",this.MZe);FE(this,"seekTo",this.TI$);FE(this,"showControls",this.showControls);FE(this,"hideControls",this.hideControls);FE(this,"cancelPlayback",this.cancelPlayback);FE(this,"getProgressState",this.getProgressState);FE(this,"isInline",this.isInline);FE(this,"setInline",this.setInline);FE(this,"setLoopVideo",this.setLoopVideo);FE(this,"getLoopVideo",this.getLoopVideo);FE(this,"getVideoContentRect",this.getVideoContentRect);FE(this,"getVideoStats",this.Vk); FE(this,"getCurrentTime",this.Jt);FE(this,"getDuration",this.Pi);FE(this,"getPlayerState",this.yk);FE(this,"getVideoLoadedFraction",this.Ie);FE(this,"mute",this.NV);FE(this,"unMute",this.KK);FE(this,"setVolume",this.If);FE(this,"loadModule",this.loadModule);FE(this,"unloadModule",this.unloadModule);FE(this,"getOption",this.QS);FE(this,"getOptions",this.getOptions);FE(this,"setOption",this.setOption);FE(this,"addCueRange",this.addCueRange);FE(this,"getDebugText",this.getDebugText);FE(this,"getStoryboardFormat", this.getStoryboardFormat);FE(this,"toggleFullscreen",this.toggleFullscreen);FE(this,"isFullscreen",this.isFullscreen);FE(this,"getPlayerSize",this.getPlayerSize);FE(this,"toggleSubtitles",this.toggleSubtitles);FE(this,"setCenterCrop",this.setCenterCrop);FE(this,"setFauxFullscreen",this.setFauxFullscreen);FE(this,"setSizeStyle",this.setSizeStyle);FE(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);FE(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);zTL(this)}; g.zC=function(p){p=p.Tk();var C=p.Qi.get("endscreen");return C&&C.Ut()?!0:p.bb()}; g.R$=function(p,C){p.getPresentingPlayerType()===3?p.publish("mdxautoplaycancel"):p.Jk("onAutonavCancelled",C)}; g.eQ=function(p){var C=nT(p.Tk());return p.app.uM&&!p.isFullscreen()||p.getPresentingPlayerType()===3&&C&&C.uT()&&C.MR()||!!p.getPlaylist()}; g.Pk=function(p,C){g.SQ(p,"addEmbedsConversionTrackingParams",[C])}; g.LT=function(p){return(p=g.wb(p.Tk()))?p.yK():{}}; g.Q2Q=function(p){p=(p=p.getVideoData())&&p.C;return!!p&&!(!p.audio||!p.video)&&p.mimeType!=="application/x-mpegURL"}; g.gb=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));aN(p,C,N);C.setAttribute("data-layer",String(V))}; g.Wk=function(p){var C=p.K();if(!C.sO)return!1;var V=p.getVideoData();if(!V||p.getPresentingPlayerType()===3)return!1;var N=(!V.isLiveDefaultBroadcast||C.G("allow_poltergust_autoplay"))&&!lx(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.uT();var X=V.Ga&&V.Ga.playerOverlays||null;X=!!(X&&X.playerOverlayRenderer&&X.playerOverlayRenderer.autoplay);X=V.g6&&X;return!V.ypcPreview&&(!N||H)&&!g.W5(V.Vn,"ypc")&& !p&&(!g.KI(C)||X)}; rey=function(p){p=p.app.X$();if(!p)return!1;var C=p.getVideoData();if(!C.C||!C.C.video||C.C.video.T<1080||C.Je)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}; Qk=function(){Pw.apply(this,arguments);this.requestHeaders={}}; Bk=function(){rb||(rb=new Qk);return rb}; GC=function(p,C){C?p.requestHeaders.Authorization="Bearer "+C:delete p.requestHeaders.Authorization}; g.pc=function(p,C,V,N){N=N===void 0?!1:N;g.va.call(this,C);var H=this;this.N=p;this.Vn=N;this.J=new g.YZ(this);this.a$=new g.i$(this,V,!0,void 0,void 0,function(){H.Lz()}); g.R(this,this.J);g.R(this,this.a$)}; Cc=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")?WG(C):document}; BHe=function(p){p.C&&(document.activeElement&&g.lK(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}; jm=function(p,C,V){p.f$()?p.f4():p.hc(C,V)}; V7=function(p,C,V,N){N=new g.w({L:"div",i_:["ytp-linked-account-popup-button"],Ak:N,X:{role:"button",tabindex:"0"}});C=new g.w({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.pc.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.gb(this.N,this.element,4);this.hide()}; g.H3=function(p,C,V,N){g.va.call(this,p);this.priority=C;V&&g.Nl(this,V);N&&this.Jc(N)}; g.XB=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.Nl=function(p,C){p.updateValue("label",C)}; dS=function(p){g.H3.call(this,g.XB({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var C=this;this.N=p;this.C=this.T=!1;this.xM=p.uF();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()}; iT=function(p){return p?g.Kq(p):""}; hh=function(p){g.z.call(this);this.api=p}; sO=function(p){hh.call(this,p);var C=this;mj(p,"setAccountLinkState",function(V){C.setAccountLinkState(V)}); mj(p,"updateAccountLinkingConfig",function(V){C.updateAccountLinkingConfig(V)}); p.addEventListener("videodatachange",function(V,N){C.onVideoDataChange(N)}); p.addEventListener("settingsMenuInitialized",function(){C.menuItem=new dS(C.api);g.R(C,C.menuItem)})}; Grj=function(p){this.api=p;this.T={}}; a8=function(p,C,V,N){C in p.T||(V=new g.iG(V,N,{id:C,priority:2,namespace:"appad"}),p.api.jd([V],1),p.T[C]=V)}; EO=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(this);g.R(this,this.events);this.T=new Grj(this.api);this.events.U(this.api,"legacyadtrackingpingreset",function(){C.T.T={}}); this.events.U(this.api,"legacyadtrackingpingchange",function(V){var N=C.T;a8(N,"part2viewed",1,0x8000000000000);a8(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.Sv);a8(N,"videoplaytime25",H*.25,H);a8(N,"videoplaytime50",H*.5,H);a8(N,"videoplaytime75",H*.75,H);a8(N,"videoplaytime100",H,0x8000000000000);a8(N,"conversionview",H,0x8000000000000); a8(N,"videoplaybackstart",1,H);a8(N,"videoplayback2s",2E3,H);a8(N,"videoplayback10s",1E4,H)}}); this.events.U(this.api,g.sz("appad"),this.C);this.events.U(this.api,g.aj("appad"),this.C)}; V5e=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=Cs(jY(V,pRY),V,N,"Active View 3rd Party Integration URL"))||(N=void 0,N=N===void 0?!1:N,N=Cs(jY(V,Cwa),V,N,"Google/YouTube Brand Lift URL"));N||(N=void 0,N=N===void 0?!1:N,N=Cs(jY(V,jZL),V,N,"Nielsen OCR URL"));g.BC(V,void 0,N)}return!0}; lT=function(p,C){Nz1(p,C).then(function(V){g.BC(C,void 0,void 0,V)})}; th=function(p,C){C.forEach(function(V){lT(p,V)})}; Nz1=function(p,C){return g.qz(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()}; HpQ=function(p){hh.call(this,p);this.events=new g.YZ(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)}})}; c3=function(p){g.w.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.Hv);this.listen("click",this.onClick);this.N.K().G("web_player_autonav_toggle_always_listen")&& XRy(this);kj(p,this.element,this);this.Hv()}; XRy=function(p){p.C.push(p.U(p.N,"videodatachange",p.Hv));p.C.push(p.U(p.N,"videoplayerreset",p.Hv));p.C.push(p.U(p.N,"onPlaylistUpdate",p.Hv));p.C.push(p.U(p.N,"autonavchange",p.O6))}; dtj=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.JU()}; ip1=function(p){return p.N.K().G("web_player_autonav_use_server_provided_state")&&jK(p.RN())}; hPL=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(p);g.R(this,this.events);this.events.U(p,"standardControlsInitialized",function(){var V=new c3(p);g.R(C,V);p.Gh(V)})}; TJ=function(p,C){g.H3.call(this,g.XB({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)}; Ml=function(p,C){p.checked=C;p.element.setAttribute("aria-checked",String(p.checked))}; sZ9=function(p){var C=!p.K().wh&&p.getPresentingPlayerType()!==3;return p.isFullscreen()||C}; g.Jh=function(p,C,V,N){var H=p.currentTarget;if((V===void 0||!V)&&g.b$(p))return p.preventDefault(),!0;C.pauseVideo();p=H.getAttribute("href");g.T0(p,N,!0);return!1}; g.mv=function(p,C,V){if(nI(C.K())&&C.getPresentingPlayerType()!==2){if(g.b$(V))return C.isFullscreen()&&!C.K().externalFullscreen&&C.toggleFullscreen(),V.preventDefault(),!0}else{var N=g.b$(V);N&&C.pauseVideo();g.T0(p,void 0,!0);N&&(g.MQ(p),V.preventDefault())}return!1}; EEv=function(){var p=a0S.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}; v3=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"}]}]}]}}; FB=function(p){if(document.createRange){var C=document.createRange();C&&(C.selectNodeContents(p),p=window.getSelection())&&(p.removeAllRanges(),p.addRange(C))}}; DM=function(p){var C=p.G("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";TJ.call(this,C,g.Sm.KH);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.uF();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(Kc,this.S);g.R(this,this.C)}; uT=function(p){hh.call(this,p);var C=this;this.T=!1;p.addEventListener("settingsMenuInitialized",function(){l0e(C)}); p.addEventListener("highlightSettingsMenu",function(V){l0e(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())}); mj(p,"updateCinematicSettings",function(V){C.updateCinematicSettings(V)})}; l0e=function(p){p.menuItem||(p.menuItem=new DM(p.api),g.R(p,p.menuItem),p.menuItem.Pr(p.T))}; ZM=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(p);g.R(this,this.events);this.events.U(p,"applicationvideodatachange",function(V,N){C.AZ(V,N)})}; UO=function(p){hh.call(this,p);this.events=new g.YZ(p);g.R(this,this.events);mj(p,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));mj(p,"setCreatorEndscreenHideButton",this.T.bind(this))}; fc=function(p,C,V,N){TJ.call(this,"Volume est\u00e1vel",g.Sm.LU);g.Ed(this.element,"ytp-drc-menu-item");this.xM=p.uF();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);Ml(this,p);this.xM.iJ(this)}; OO=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(p);g.R(this,this.events);p.G("html5_show_drc_toggle")&&p.addEventListener("settingsMenuInitialized",function(){C.menuItem||(C.menuItem=new fc(C.api,C.setDrcUserPreference.bind(C),C.getDrcUserPreference.bind(C),C.C.bind(C)),g.R(C,C.menuItem))}); mj(this.api,"setDrcUserPreference",function(N){C.setDrcUserPreference(N)}); mj(this.api,"getDrcUserPreference",function(){return C.getDrcUserPreference()}); mj(this.api,"hasDrcAudioTrack",function(){return C.C()}); var V;this.T=(V=g.zW("yt-player-drc-pref"))!=null?V:1;this.updateEnvironmentData()}; y7=function(p){hh.call(this,p);var C=this;this.T={};this.events=new g.YZ(p);g.R(this,this.events);this.events.U(p,"videodatachange",function(){C.onVideoDataChange()}); this.events.U(p,g.sz("embargo"),function(V){C.api.Yb(!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.Ng("auth",2,"This video isn't available in your current playback area",fR({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)}})}; t5s=function(p,C){var V;return(V=C.onEnter)==null?void 0:V.some(p.C)}; cWL=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))}}; ql=function(p){hh.call(this,p);var C=this;this.T=[];this.events=new g.YZ(p);g.R(this,this.events);mj(p,"addEmbedsConversionTrackingParams",function(V){C.api.K().Ke&&C.addEmbedsConversionTrackingParams(V)}); this.events.U(p,"veClickLogged",function(V){C.api.hasVe(V)&&(V=XG(V.visualElement.getAsJspb(),2),C.T.push(V))})}; Tz1=function(p){hh.call(this,p);mj(p,"isEmbedsShortsMode",function(){return p.isEmbedsShortsMode()})}; M5s=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(p);g.R(this,this.events);this.events.U(p,"initialvideodatacreated",function(V){DF(Kz(),16623);C.T=g.bz();var N=p.K().ZZ&&!V.d7;if(Nh(V)&&N){DF(Kz(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(V.getWatchNextResponse()){var H,X=(H=V.getWatchNextResponse())==null?void 0:H.trackingParams;X&&ZF(X)}if(V.getPlayerResponse()){var d;(V=(d=V.getPlayerResponse())==null?void 0:d.trackingParams)&&ZF(V)}}else DF(Kz(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),V.getEmbeddedPlayerResponse()&&(d=(X=V.getEmbeddedPlayerResponse())==null?void 0:X.trackingParams)&&ZF(d)}); this.events.U(p,"loadvideo",function(){DF(Kz(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:C.T})}); this.events.U(p,"cuevideo",function(){DF(Kz(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:C.T})}); this.events.U(p,"largeplaybuttonclicked",function(V){DF(Kz(),27240,V.visualElement)}); this.events.U(p,"playlistnextbuttonclicked",function(V){DF(Kz(),27240,V.visualElement)}); this.events.U(p,"playlistprevbuttonclicked",function(V){DF(Kz(),27240,V.visualElement)}); this.events.U(p,"playlistautonextvideo",function(){DF(Kz(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; I8=function(p,C){g.z.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)}; mt9=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(p);g.R(this,this.events);this.events.U(p,"applicationInitialized",function(){JWs(C)})}; JWs=function(p){var C=p.api.getRootNode(),V=C;if(!p.api.G("embeds_emc3ds_inview_ks")){var N;V=p.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((N=C.parentElement)==null?void 0:N.parentElement)||C:C}p.T=new I8(V,function(H){H!=null&&(p.api.K().jO=H)}); g.R(p,p.T);p.events.U(p.api,"videoStatsPingCreated",function(H){var X=p.T;X=X.T==null?null:Math.round(X.T*100)/100;H.inview=X!=null?X:void 0;X=p.api.getPlayerSize();if(X.height>0&&X.width>0){X=[Math.round(X.width),Math.round(X.height)];var d=g.Pg();d>1&&X.push(d);X=X.join(":")}else X=void 0;H.size=X})}; vEe=function(p){var C;return((C=((p==null?void 0:p.messageRenderers)||[]).find(function(V){return!!V.timeCounterRenderer}))==null?void 0:C.timeCounterRenderer)||null}; bT=function(p){g.w.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)}; S9V=function(p,C){p.T||(p.C=C,p.V=(0,g.Ip)(),p.T=new g.V2(function(){Fpe(p)},null),Fpe(p))}; Fpe=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",MO({seconds:C}));C<=0&&p.T?Ah(p):p.T&&p.T.start()}; Ah=function(p){p.T&&(p.T.dispose(),p.T=null)}; KpQ=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(p);g.R(this,this.events);this.events.U(p,"basechromeinitialized",function(){C.T=new bT(p);g.R(C,C.T);g.gb(p,C.T.element,4);C.T.hide()})}; o8=function(p){g.w.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.i$(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()}; kv=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(p);g.R(this,this.events);mj(this.api,"updateFullerscreenEduButtonSubtleModeState",function(N){C.updateFullerscreenEduButtonSubtleModeState(N)}); mj(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 o8(p);g.R(C,C.T);p.Gh(C.T)})}; Dtu=function(p){g.w.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.fq()]},{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()}; ZpY=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;ZpY(V,N.actionButtons||[]);V.show()}else V.hide()}); g.gb(this.api,this.T.element,4)}; f0X=function(p){hh.call(this,p);var C=this;this.T=null;this.events=new g.YZ(p);g.R(this,this.events);var V=p.K();V.QV=!1;V.l_=!1;V.Fu=!1;FE(p,"resetSubtitlesUserSettings",function(){p.resetSubtitlesUserSettings()}); FE(p,"getSubtitlesUserSettings",function(){return p.getSubtitlesUserSettings()}); FE(p,"updateSubtitlesUserSettings",function(X){p.updateSubtitlesUserSettings(X)}); FE(p,"getCaptionTracks",function(){return p.getOption("captions","tracklist",{includeAsr:!0})}); FE(p,"getAvailableQualityLevels",function(){return p.getAvailableQualityLevels()}); FE(p,"getPreferredQuality",function(){return p.getPreferredQuality()}); FE(p,"getPlaybackQuality",function(){return p.getPlaybackQuality()}); FE(p,"setPlaybackQuality",function(X){p.setPlaybackQuality(X)}); var N=this.api.jU(),H=N.subscribe("visibilitystatechange",function(){p.YG("onPictureInPictureChange",N.Fg())}); this.addOnDisposeCallback(function(){N.LO(H)}); FE(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()}})}; Ops=function(p){hh.call(this,p);p=p.K();p.N5.push("flix");p.l_=!1;p.QV=!1}; bpX=function(p){hh.call(this,p);var C=this;this.T={};this.events=new g.YZ(p);g.R(this,this.events);this.events.U(p,"applicationInitialized",function(){C.T=yWX(q9j)}); this.events.U(p,"onPlaybackStartExternal",function(){var V=Object.assign({},C.T,yWX(I0a));C.api.k_("hbp_csi",V,!0,1)})}; yWX=function(p){var C={},V=g.NU(r3)("_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(r3)(N,void 0);H&&(C[N]=Math.round(H-V))}}return C}; xv=function(p){hh.call(this,p);var C=this;FE(this.api,"getSphericalProperties",function(){return C.getSphericalProperties()}); FE(this.api,"setSphericalProperties",function(){C.setSphericalProperties.apply(C,g.K(g.US.apply(0,arguments)))}); vk(this.api,"getSphericalProperties",function(){return C.api.getPresentingPlayerType()===2?{}:C.getSphericalProperties()}); vk(this.api,"setSphericalProperties",function(){var V=g.US.apply(0,arguments);C.api.getPresentingPlayerType()!==2&&C.setSphericalProperties.apply(C,g.K(V))})}; Yv=function(p){hh.call(this,p);mj(p,"createClientVe",this.createClientVe.bind(this));mj(p,"createServerVe",this.createServerVe.bind(this));mj(p,"destroyVe",this.destroyVe.bind(this));mj(p,"hasVe",this.hasVe.bind(this));mj(p,"logClick",this.logClick.bind(this));mj(p,"logVisibility",this.logVisibility.bind(this));mj(p,"setTrackingParams",this.setTrackingParams.bind(this))}; zJ=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.$7(p),trigger:C};AWe(d,p);V&&V(d);N&&!a&&N(new ON("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)))}; R8=function(p,C){this.n1=p;this.policy=C;this.playbackRate=1}; kn1=function(p,C){var V=Math.min(2.5,tR(p.n1));p=nc(p);return C-V*p}; em=function(p,C,V,N,H){H=H===void 0?!1:H;if(p.policy.bq)return Math.ceil(p.policy.bq*C);p.policy.Fu&&(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.Uf>0&&H&&(V=Math.max(V,p.policy.Uf));return xtX(p,V,C)}; xtX=function(p,C,V){return Math.ceil(Math.max(Math.max(p.policy.dR,p.policy.Iy*V),Math.min(Math.min(p.policy.R$,31*V),Math.ceil(C*V))))||p.policy.dR}; Y9y=function(p,C,V){V=em(p,C.T.info.qo,V.T.info.qo,0);var N=tR(p.n1)+V/Mn(p.n1);return Math.max(N,N+p.policy.JY-V/C.T.info.qo)}; nc=function(p){return Mn(p.n1,!p.policy.j6,p.policy.sA)}; P3=function(p){return nc(p)/p.playbackRate}; wS=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.Hb)}; ePs=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.zB&&V.info.C)return p.logger&&p.logger({incompleteSegment:V.info.yZ()}),H;d=p.nP(V);N=d.formatId;H=d.LS;V=d.clipId;X=d.Qp;d=d.startTimeMs;if(!p.policy.Mn&&p.policy.C&&p.NZ){var a=Lc(p.NZ,V);d+=a}N={clipId:V,formatId:N,startTimeMs:d,durationMs:X,KM:H,Vo:H,K6:d,Ur:X};H=zPa(C,N.startTimeMs);(V=H>=0?C[H]: null)&&RPQ(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}; Pw9=function(p,C){if(p.NW){var V=p.NW.l9();if(V.length!==0){if(p.V&&C){var N=p.V,H=N.info.w7;!sJ(V,H)&&N.info.Y>0&&(0,g.Ip)()-p.Y<5E3&&(p.logger&&p.logger({dend:N.info.yZ()}),V=v0j(V,H,H+.01))}p.policy.Te&&p.logger&&p.logger({cbri:""+p.T});N=[];for(var X=H=0;H=d){var t=0;if(p.NZ){var c=gS(p.NZ,E*1E3);c&&(t=c.Ge/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.Qx(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.KM=M,c.startTimeMs=J):(p.logger&&p.logger({pEvict:"1",og:c.startTimeMs,adj:E*1E3}),c.KM=d+p.S,c.startTimeMs=E*1E3);c.K6=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.l5(E)+t)*1E3;c.Vo=d;c.durationMs=t-c.startTimeMs;c.Ur=c.durationMs;c.KM<=c.Vo&&N.push(c)}lp.C)return!1;if(nES(p,C.formatId,V.formatId))return C.durationMs=Math.max(N,H)-C.startTimeMs,C.Ur=C.durationMs,C.Vo=Math.max(C.Vo,V.Vo),!0;if(Math.abs(C.startTimeMs-V.startTimeMs)<=p.C){if(C.durationMs>V.durationMs+p.C){p=C.formatId;var X=C.KM,d=C.Vo;C.formatId=V.formatId;C.durationMs=V.durationMs;C.KM=V.KM;C.Ur=V.durationMs;C.Vo=V.Vo;V.formatId=p;V.startTimeMs=H;V.K6=H;V.durationMs=N-H;V.Ur=V.durationMs; V.KM=X;V.Vo=d;return!1}C.formatId=V.formatId;return!0}N>V.startTimeMs&&(C.durationMs=V.startTimeMs-C.startTimeMs,C.Ur=C.durationMs,p.policy.Th&&C.clipId===V.clipId&&(C.Vo=V.KM-1));return!1}; nES=function(p,C,V){return C.itag!==V.itag||C.xtags!==V.xtags?!1:p.hk.p4||C.lmt===V.lmt}; LpL=function(p,C,V){if(p.logger){for(var N=[],H=0;H=0&&GJ(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.J8(function(){if(p.C||!p.policy.ER)jf(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&&N2y(p.hk);p.V&&(H=p.V,p.V=0);g.J8(function(){p.policy.Y||VN(p,H,102)}); p.nS.k_("initManifestlessSync",{st:H,ost:H+p.nS.X0(),a:p.audioTrack.Y,v:p.videoTrack.Y});p.S&&(p.S.resolve(H+.1),p.S=null);p.policy.Y&&VN(p,H,102)}}}; XM=function(p,C){var V=this;this.kM=p;this.requestNumber=++VO1;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.l_=this.Sa=this.UY=this.MW=this.wy=this.sY=this.C=this.S=0;this.Z=this.isActive=!1;this.ER=this.Mo=0;this.VZ={B9a:function(){return V.rP}}; this.n1=C.n1;this.snapshot=eO1(this.n1);this.policy=this.n1.C;this.zv=!!C.zv;this.pT=C.pT;this.eS=C.eS||0;this.uc=C.uc||0;C.zV&&(this.Vn=new Xs);var N;this.rP=(N=C.rP)!=null?N:!1;zOS(this.n1)}; NBe=function(p){p.UY=Math.max(p.UY,p.W-p.wy);p.Sa=Math.max(p.Sa,p.D-p.MW);p.sY=0}; dd=function(p,C,V){ROj(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.l_=Math.max(p.l_,H/(N+.01)*1E3);p.D=C;p.W=V;p.sY&&V>p.sY&&NBe(p)}; i2=function(p,C){p.url=C;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; ht=function(p,C){XM.call(this,p,C);this.Wc=this.Hc=!1;this.Wr=this.b_=Infinity;this.vr=NaN;this.bx=!1;this.Qn=NaN;this.Q$=this.Ga=this.R$=0;this.aC=C.aC||1;this.IE=C.IE||this.aC;this.NB=C.NB;this.LS=C.LS;this.nO=C.nO;Hby(this);this.ws(this.T);this.F$=(this.Qn-this.T)/1E3}; Xbe=function(p){var C=p.Ga||p.R$;return C?p.snapshot.delay+Math.min(p.uc,(p.a$-p.J)/1E3)+C:p.F$}; s4=function(p,C,V){if(!p.zv){C=Math.max(C,.01);var N=p.eS?Math.max(C,V/p.eS):C,H=p.n1.C.V;H&&(N=C,p.eS&&(N=Math.max(C,V/p.eS*H)));ag(p.n1,C,V,N)}}; d61=function(p){return(p.Y-p.T)/1E3}; Hby=function(p){p.vr=p.T+p.snapshot.delay*1E3;p.bx=!1}; s5a=function(p,C){if(p.NB&&p.LS!==void 0&&p.nO!==void 0){var V=Math,N=V.min,H=p.b_;var X=p.NB;var d=p.T;if(iba(X,p.LS))X=C;else{var a=0;X.AX&&(a=.2);X=d+(X.uc+a)*1E3}p.b_=N.call(V,H,X);V=Math;N=V.min;H=p.Wr;X=p.NB;d=p.T;a=hna(X,p.LS,p.nO);a!==2&&(C=a?C:d+X.uc*1E3,X.AX&&(C+=X.uc*1E3));p.Wr=N.call(V,H,C);p.b_<=p.T?Hby(p):(p.vr=p.b_,p.bx=!0)}}; a8H=function(p,C){if(p.Kg(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.Kg(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),x9(p,V,4)?p=opa(p).getUint32(V-p.k9,!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]}; aA=function(p){this.kM=p;this.T=new be}; E4=function(p,C){this.info=p;this.callback=C;this.state=1;this.gB=this.ge=!1;this.a_=null}; E$X=function(p){return g.AU(p.info.wV,function(C){return C.type===3})}; l8Y=function(p,C,V,N){var H=this;N=N===void 0?{}:N;this.policy=C;this.kM=V;this.status=0;this.T=new be;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.PC()}; 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.kM.Cw(X,H.C)},function(){},N.body||null)}; tOv=function(p,C){this.C=(new TextEncoder).encode(p);this.T=(new TextEncoder).encode(C)}; pYv=function(p,C){var V,N,H;return g.I(function(X){if(X.C==1){if(!C)return X.return(C);V=l2.Hx();N=new g.UF(p.C);return g.y(X,N.encrypt(C,p.T),2)}H=X.T;l2.nQ("woe",V,Math.ceil(C.byteLength/16));return X.return(H)})}; HzQ=function(p,C){var V,N,H;return g.I(function(X){if(X.C==1){if(!C)return X.return(C);V=l2.Hx();N=new g.UF(p.C);return g.y(X,N.decrypt(C,p.T),2)}H=X.T;l2.nQ("wod",V,Math.ceil(C.byteLength/16));return X.return(H)})}; TB9=function(p,C){var V=this;this.T=p;this.kM=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 be;cz9(this).then(function(){V.kM.dP()},function(N){V.error=""+N||"unknown_err"; V.kM.dP()})}; cz9=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=N$(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 tOv(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,XYe(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=Zbe.get(C))!=null?a:0)+1;Zbe.set(C,N);N%100===1&&console.warn("plyr","plyr."+C+" is chatty, dropping logs.")}}}; u11=function(){this.T=10;this.C=Date.now()}; TX=function(p,C){g.z.call(this);var V=this;this.policy=p;this.wV=C;this.C=0;this.T=null;this.GM=[];this.V=null;this.VZ={XA:function(){return V.wV}}; this.wV.length===1||g.AU(this.wV,function(N){return!!N.range})}; Mx=function(p,C,V){p.T&&(Ad(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)}; K4=function(p,C){if(p.policy.d3)return!1;var V=C.getResponseHeader("content-type"),N=C.eT();p=!N||N<=p.policy.VR;return(!C.Qt()||!V||V.indexOf("text/plain")!==-1)&&p}; I8L=function(p,C){var V="";C=C.SG();C.getLength()<=p.policy.VR&&(V=q69(p,C.m8()));return V}; q69=function(p,C){var V=R4(C);return No(V)?(p.logger.debug(function(){return"Redirecting to "+V}),V):""}; mB=function(p){return Tn(p.V,FP(p.Ai.Uu))}; bbv=function(p){var C=p.timing.r9();C.shost=FP(p.Ai.Uu);return C}; Azy=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)}; o$a=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}; n$X=function(p,C,V){var N=Y6H[p]||[];V.G("html5_shorts_onesie_mismatched_fix")&&(N=znY[p]||[]);C.push.apply(C,g.K(N));V.G("html5_early_media_for_drm")&&C.push.apply(C,g.K(RnQ[p]||[]))}; g$y=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.fq();if(N){if(!H.V){if(X&&DX)return DX;if(u2)return u2}}else if(u2&&!H.V)return u2;var d=[],a=[],E={},l=ZX.concat(enQ);N&&(l=ZX.concat(Poe));p.G("html5_early_media_for_drm")&&(l=l.concat(wby),p.G("allow_vp9_1080p_mq_enc")&&l.push($6e));var t=[].concat(g.K(L6X));if(V.Z)for(var c=0;cV.Vr)){var S=g.Mz(p.K().experiments,"html5_drm_byterate_soft_cap");S>0&&JOS(J)&&J.qo>S||(c?(d.push(M),n$X(M,d,p)):(J=a2(V,J,H),J===!0?(c=!0,d.push(M),n$X(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=ExQ(c))&&T.audio&&(p.G("html5_onesie_51_audio")||!rO(T)&&!BB(T)))if(T=a2(V,T,H),T===!0){a.push(c);n$X(c,a,p);break}else E[c]=T;V.C&&C("orfmts",E);if(N)return H.V&&(H.V=!1,DX=u2=void 0),X?DX={video:d,audio:a}:u2={video:d,audio:a};u2={video:d,audio:a};H.V=!1;return u2}; g.rzS=function(p,C,V){var N=V.W,H=[],X=[],d=V.G("html5_shorts_onesie_mismatched_fix");p=p.fq();var a=ZX.concat(enQ);d&&(a=ZX.concat(Poe));V.G("html5_early_media_for_drm")&&(a=a.concat(wby),V.G("allow_vp9_1080p_mq_enc")&&a.push($6e));var E=[].concat(g.K(L6X));if(C.Z)for(var l=0;l0&&JOS(c)&&c.qo>T)&&a2(C,c,N)===!0){H.push({videoCodec:W6Y[$Z[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=ExQ(E))&&a.audio&&(V.G("html5_onesie_51_audio")||!rO(a)&&!BB(a))&&a2(C,a,N)=== !0){X.push({audioCodec:Q51[$Z[E]],numChannels:a.audio.numChannels});break}return{videoFormatCapabilities:H,audioFormatCapabilities:X}}; pgu=function(p){var C={},V=p.Ta,N=p.I$,H=V.getVideoData(),X=oH(0),d=V.getPlayerSize(),a=V.getVisibilityState();X&&(C.znS=X,C.lastManualDirection=UGu(),X=V0a()||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.YEn=oH();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.j6):!1;C.qC=Mn(N.schedule,!X)}E=g.Pg();var l=g.nR.medium,t=Math.floor(l*16/9);X=H.fq()?l:t;l=H.fq()?t:l;C.r0=Math.max(d.width*E,X);C.ID=Math.max(d.height*E,l);C.visibility=a;C.XRx=bV();C.oD=V.GC()*1E3;var c;if((c=p.wY)==null?0:c.mV){d=p.Ta.Yd(!0);var T,M,J,S,D,Z;C.fQ$={defaultPolicy:((T=d.Bw)==null?void 0:T.T)||0,smooth:((M=d.GI$)==null?void 0:M.T)||0,visibility:((J=d.ejY)==null?void 0:J.T)||0,Md:((S=d.ZL)==null?void 0:S.T)|| 0,performance:((D=d.WN)==null?void 0:D.T)||0,speed:((Z=d.Hd_)==null?void 0:Z.T)||0}}else{var f;if((f=p.wY)==null?0:f.qr){var q;C.lH=((q=p.Ta.Yd().WN)==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.CJ=3;N.G("html5_onesie_audio_only_playback")&&hl(H)&&(C.CJ=1);Fwa(H)&&(C.CJ=C.CJ===void 0?7:C.CJ|4);T=H.W1?H.W1:g.aM(H);N.G("html5_onesie_media_capabilities")&& (C.mediaCapabilities=g.rzS(H,T,N));var A;if((A=p.wY)==null?0:A.T&&A.cV){J=N.W;A=[];M=[];S=new Map;N.G("html5_ssap_update_capabilities_on_change")?(J.Z||bj1(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.UV?M.push({audioCodec:Q51[d.o$],numChannels:d.numChannels,spatialCapabilityBitmask:BBY[d.o$]}):(a=W6Y[d.o$],Z={videoCodec:a,maxWidth:d.maxWidth||0,maxHeight:d.maxHeight||0,maxFramerate:d.maxFramerate||0,is10BitSupported:d.A_||!1},d.maxBitrateBps&&(Z.maxBitrateBps= d.maxBitrateBps,c=Ck(d.itag),f=void 0,((f=c)==null?0:f.video)&&a2(T,c,J)===!0&&(c=c.qo*8,c>Z.maxBitrateBps&&(Z.maxBitrateBps=c))),d=a+"_"+d.A_,a=S.get(d)||[],a.push(Z),S.set(d,a));A=o$a(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 Y;if((Y=p.wY)==null?0:Y.T){C.FN=T.FN;var W;C.Vr=(W=p.wY)==null?void 0:W.Vr}N.FF&&(C.Jf=N.FF);C.HN=p.XZ;C.Be=p.Be;C.t_=p.t_; C.mU=p.mU;if(N.G("html5_fix_time_since_last_seek_reporting")?p.uL!==void 0:p.uL)C.FS_=(0,g.Ip)()-p.uL;p.isPrefetch&&N.G("html5_report_prefetch_requests")&&(C.isPrefetch=!0);gB||(C.qYx=!0);Y=tR(N.schedule)*1E3;Y>0&&(C.uA=Y);var L;((L=p.wY)==null?0:L.gO)&&p.Ry&&p.Ry0?VL:N.schedule.interruptions[0]||0);var au;if((au=p.wY)==null?0:au.YM)C.yW=p.yW;var Q;((Q=p.wY)==null?0:Q.u7)&&H.kE&&(C.audioTrackId=H.kE);var e;if((e=p.wY)==null?0:e.p5)if(p=TeV())C.detailedNetworkType=GFu[p]||GFu.other;return C}; U4=function(p,C,V,N,H,X){var d={};C&&(d.Jv=C);if(!p)return d;d.playbackCookie=V==null?void 0:V.playbackCookie;H&&(d.Nm=H);d.lQ=[];d.Ip=[];if(g.pf(p)&&p.sabrContextUpdates.size>0)for(C=g.F(p.sabrContextUpdates.values()),V=C.next();!V.done;V=C.next())CLs(d,V.value,N);$B(p)&&!g.pf(p)&&p.G("html5_enable_sabr_request_pipelining")&&X&&CLs(d,X,N);p.ju&&(d.WS$=p.ju);N=p.K().T;d.clientInfo={clientName:jge[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.SE&&(d.SE=p.SE);return d}; CLs=function(p,C,V){var N=C.type||0;(V==null?0:V.has(N))?p.Ip.push(C):p.lQ.push(N)}; rS=function(p,C,V,N,H,X){var d=X===void 0?{}:X;var a=d.v9===void 0?[]:d.v9;var E=d.mH===void 0?!1:d.mH;var l=d.qD===void 0?0:d.qD;var t=d.poToken===void 0?"":d.poToken;var c=d.jg===void 0?void 0:d.jg;var T=d.H9===void 0?"":d.H9;var M=d.fO===void 0?0:d.fO;var J=d.Cx===void 0?new Uint8Array(0):d.Cx;var S=d.fK===void 0?!1:d.fK;X=d.iL===void 0?0:d.iL;d=d.Jv===void 0?void 0:d.Jv;E4.call(this,C,H);var D=this;this.policy=p;this.logger=new g.cI("dash/request");this.J7=this.Ld=0;this.QU=!1;this.fp=this.yP= null;this.GK=!1;this.Cx=this.fO=null;this.Un=this.d8=!1;this.wK=null;this.iL=this.Es=0;this.Cr=!1;this.VZ={Ba:function(f){D.Ba(f)}, IJa:function(){return D.a_}, Rlk:function(f){D.a_=f}, P6x:function(f){D.Ld=f}, p8Y:function(f){D.EZ.lastError=f}, hq:function(){return D.xhr}}; this.timing=new ht(this,V);this.mH=E;this.fO=M;this.Cx=J;this.Ai=g.YE(this.info,this.policy,N);this.Ai.set("rn",this.Em().toString());this.Ai.set("rbuf",(l*1E3).toFixed().toString());this.mH&&this.Ai.set("smb","1");this.policy.c_&&t&&this.Ai.set("pot",t);T&&this.Ai.set("bbs",T);this.policy.useUmp&&!So(this.Ai.Uu)&&(this.Oh=new aA(this),this.Ai.set("ump","1"),this.Ai.set("srfvp","1"));if(p=this.policy.ZI?this.policy.dw&&!isNaN(this.info.nO)&&this.info.nO>this.policy.It?!1:!0:!1)C=null,this.policy.ym&& this.policy.rh?C=[1]:S&&(C=[]),C!=null&&(this.policy.SQ&&C.push(2),this.Ai.set("defsel",C.join(",")));this.EZ=new Jt(this,this.policy,this.Ai,this.info.sR,this.timing,this.logger,N,c);this.v9=a||null;this.gB=VH9(this);U6u(this.EZ);N=void 0;if(this.policy.MF||this.Oh||this.policy.vr)N={method:"POST"},a=(0,g.f4)([120,0]),c={},this.policy.E2&&d&&(d=U4(void 0,d),c.Rp=d),this.policy.ys&&this.Cx&&(c.videoPlaybackUstreamerConfig=this.Cx),this.policy.vr&&(d=this.info.S)&&Object.assign(c,d),Object.keys(c).length> 0?N.body=g.aE(c,g.QC):N.body=a;if(this.fO&&this.Cx){this.Ai.set("iwts","1");N={method:"POST"};d={mU:this.fO*1E3};var Z;a=(Z=this.info.S)==null?void 0:Z.Um;Z=g.aE({uq:d,Um:a||void 0,videoPlaybackUstreamerConfig:this.Cx},g.QC);N.body=Z}try{this.xhr=tt(this.Ai,this.policy.J,this.timing,p,N),this.EZ.C.start(),X&&(this.rW=new g.N8(this.tP,X,this),this.rW.start(X+(this.timing.n1.J.lc()||0)*1E3)),this.policy.KA&&i2(this.timing,this.i9()),this.logger.debug(function(){return"Sent, itag="+D.Ai.get("itag")+ " seg="+D.info.wV[0].LS+" range="+D.Ai.get("range")+" time="+Math.round(D.info.wV[0].w7)+"-"+Math.round(g.wY(D.info.wV).zM)+" rtp="+(D.timing.M8()-Date.now()).toFixed(0)}),g.J8(function(){})}catch(f){NGS(this,f,!0)}}; VH9=function(p){if(!(xE(p.info)&&p.info.rP()&&p.policy.f9&&p.v9)||p.info.sR.C>=2||oH()>0||!qrS())return!1;var C=p.Ai.get("aitags");if(!C)return!1;C=N$(C).split(",");for(var V=[],N=g.F(p.v9),H=N.next();!H.done;H=N.next())H=H.value,g.W5(C,H)&&V.push(H);if(!V.length)return!1;p.Ai.set("altitags",g.VW(V.join(",")));return!0}; NGS=function(p,C,V){V=V===void 0?!1:V;g.nm(C);p.EZ.lastError="player.exception";p.errorMessage=C.name+"_"+C.message;V?g.J8(function(){FM(p.EZ)}):FM(p.EZ)}; HIy=function(p,C){p.timing.Z=!0;p.xhr.Qt()&&p.timing.Hm();if(p.policy.K1){var V;(V=p.rW)==null||V.stop()}Mx(p.a_,C,!1)}; Xge=function(p,C){p.info=C;if(p.a_){var V=p.a_;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.UG.length>0)for(V=g.F(C.UG),N=V.next();!N.done;N=V.next())p+=N.value.zf||0;return p+C.J0}; tHe=function(p,C){if(IA){var V=0;p=p.GB.get(C);if(p==null||!p.Nw)return 0;p=g.F(p.Nw.values());for(C=p.next();!C.done;C=p.next())V+=C.value.data.getLength();return V}return((V=p.GB.get(C))==null?void 0:V.GM.getLength())||0}; At=function(p,C){p=p.GB.get(C);if(IA){if(p==null||!p.WO)return!1;C=p.Nw.size>0;return p.G7.length>0||C}return!(p==null||!p.WO)&&!(p==null||!p.GM.getLength())}; cRV=function(p,C){var V=p.GB.get(C),N=lWY(p,C),H=!N&&!!V.bytesReceived;if(IA){var X;if((X=p.hk)==null?0:X.p4){p=g.F(V.Nw.values());for(C=p.next();!C.done;C=p.next())if(!C.value.cj)return!1;return H}}else if(X=p.Xr(C),H&&p.T&&X!==void 0)return X;return(H||V.bytesReceived===N)&&V.Dk+tHe(p,C)===V.bytesReceived}; TGe=function(p,C,V){p.GB.set(C,{GM:new be,Dk:0,bytesReceived:0,J0:0,D9:!1,Jp:!1,Xr:!1,UV:V,Al:[],wV:[],UG:[],WO:!1,Nw:new Map,s7:new Map,G7:[]});p.logger.debug(function(){return"[initStream] formatId: "+C})}; MHv=function(p,C,V,N){V.wV.push.apply(V.wV,g.K(N));if(IA){V.s7.has(C)||V.s7.set(C,[]);var H;(H=V.s7.get(C)).push.apply(H,g.K(N))}else if(V.a_)for(p=g.F(N),C=p.next();!C.done;C=p.next())V.a_.wV.push(C.value);else{V.a_=new TX(p.wY,[].concat(g.K(V.wV)));var X;((X=p.wY)==null?0:X.X5)&&g.R(p,V.a_)}}; JRj=function(p,C,V){var N,H=(N=p.hk)==null?void 0:N.V.get(C);if(!H)return[];if(V.Bp){var X;return((X=H.eL(0,V.clipId))==null?void 0:X.wV)||[]}if(H.Lp()){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.jq)!=null?t:-1;var c;a=(c=V.timeRange.T1)!=null?c:-1;var T;E=(T=V.timeRange.P8)!=null?T:-1}if(V.SD<0||V.MX<0||a<0||d<0||V.zf<0||E<0)return b2(p,C),[];p=Z0(V.SD,V.zf);C=V.Bg||0;return[new fp(3,H,p,"makeSliceInfosMediaBytes",V.MX-1,d/E,a/E,C,p.length- C,void 0,V.Kq,V.clipId)]}if(V.MX<0)return b2(p,C),[];var M;return((M=p.hk)==null?0:M.p4)?(C=H.gR,l=C*H.info.qo,t=((d=p.wY)==null?0:d.zB)?V.Bg:void 0,((E=p.wY)==null?0:E.bv)&&V.timeRange&&!t&&(a=V.timeRange.jq/V.timeRange.P8),[new fp(3,H,void 0,"makeSliceInfosMediaBytes",V.MX,a,C,t,l,!0,V.Kq,V.clipId)]):[]}; mne=function(p,C,V){p.hk=C;p.wY=V;C=g.F(p.GB);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.Al),X=H.next();!X.done;X=H.next()){X=X.value;var d=JRj(p,V,X);MHv(p,X.Tz,N,d)}}}; oA=function(p,C,V,N){p.logger.debug(function(){return"[addStreamData] formatId: "+V+",headerId: "+C+" bytes: "+N.getLength()}); (p=p.GB.get(V))&&!p.Jp&&(IA?(p.Nw.has(C)||p.Nw.set(C,{data:new be,Q_:0,cj:!1}),Ad(p.Nw.get(C).data,N)):Ad(p.GM,N),p.bytesReceived+=N.getLength(),p.D9=!0)}; aW1=function(p,C){p.logger.debug(function(){return"[closeStream] formatId: "+C}); var V=p.GB.get(C);V&&!V.Jp&&(V.Jp=!0,V.eq&&V.eq(),vSY(p)&&p.S.yy())}; vSY=function(p){p=g.F(p.GB.values());for(var C=p.next();!C.done;C=p.next())if(!C.value.Jp)return!1;return!0}; kd=function(p,C,V,N,H,X,d,a){g.z.call(this);this.policy=p;this.info=C;this.hk=V;this.kM=H;this.U3=a;this.logger=new g.cI("sabr");this.Oh=new aA(this);this.Kc=new hgy(this);this.QL=new qx(this);this.state=1;this.Uj=!1;this.ji=0;this.clipId="";this.Bm=this.Tp=-1;this.Ny=0;this.xw=-1;this.Cr=this.M0=!1;this.uw=0;this.nz=!1;this.policy.LJ?this.MZ=new O4(this,X):this.MZ=new ht(this,X);this.Ai=this.policy.YM?C.ZH:F4V(C,this.policy,N);this.Ai.set("rn",""+this.Em());this.Ai.set("alr","yes");mne(this.QL,V, p);this.EZ=new Jt(this,this.policy,this.Ai,C.sR,this.MZ,this.logger,N,d,this.policy.enableServerDrivenRequestCancellation);U6u(this.EZ);var E;if((E=this.policy)==null?0:E.X5)g.R(this,this.QL),g.R(this,this.EZ);p=C.C;C={method:"POST",body:p};p&&(this.Ny=p.length);try{this.xhr=tt(this.Ai,this.policy.J,this.MZ,gB,C),this.policy.KA&&i2(this.MZ,this.i9()),this.EZ.C.start()}catch(l){g.eG(l)}}; Sej=function(p){p.policy.Zw&&p.F7&&!p.nz?p.nz=!0:p.MZ.Hm()}; K4Q=function(p,C){var V=-1,N=-1,H=-1,X;if((X=p.oE)==null?0:X.items)for(p=g.F(p.oE.items),X=p.next();!X.done;X=p.next())X=X.value,C=a,E=p.hk.isManifestless&&p.policy.U5, d){var l;if(((l=p.T)==null?void 0:l.I_.event)==="predictStart"&&p.T.LSp.W&&(p.W=NaN,p.D=NaN);if(p.T&&p.T.LS===C){X=p.T;N=X.I_;var d=H.Et(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.Ff?zX(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(),zX(p,2,"join"),H.I3(X.I_))):(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(),zX(p,3,"predict"),H.I3(X.I_));else if(p.C===1){var a;((a=p.Y)==null?0:a.vG(V))?(Rga(p.nS,V,V,C),zX(p,4,"sk2had")):zX(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.I_.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.I_.event,sq:C})}}else p.C===1&&zX(p,5,"noad")}; PL1=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 nS1(p.videoTrack,V)||nS1(p.videoTrack,V+1);p=egj(p.videoTrack);if(V>(p?p.LS:-1))return!1}return!0}; RA=function(p,C,V){return(V<0||V===p.W)&&!isNaN(p.D)?p.D:C}; kMX=function(p,C){if(p.T){var V=p.T.I_.zI-(C.startTime+p.J-p.T.I_.startSecs);V<=0||(V=new kg(p.T.I_.startSecs-(isNaN(p.J)?0:p.J),V,p.T.I_.context,p.T.I_.identifier,"stop",p.T.I_.T+C.duration*1E3),p.k_("cuepointdiscontinuity",{segNum:C.LS}),Yd(p,V,C.LS))}}; zX=function(p,C,V){p.C!==C&&(p.k_("sdai",{setsst:C,old:p.C,r:V}),p.C=C)}; n4=function(p,C,V,N){(N===void 0?0:N)?zX(p,1,"seek"):C>0&&Math.abs(C-V)>=5&&p.C===4&&zX(p,5,"sk2t."+C.toFixed(2)+";ct."+V.toFixed(2))}; ef=function(p,C,V){this.audio=p;this.video=C;this.reason=V}; PI=function(p,C,V){this.T=p;this.reason=C;this.token=V;this.videoId=void 0}; wd=function(p,C,V){g.z.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}; $d=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)}; L4=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}; wgX=function(p){return p.Y&&L4(p).size>0}; gd=function(p,C){p.T!==C&&(p.T=C,p.C=!0)}; $nV=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}; L4v=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.cI("dash/abr");this.T=xB;this.C=this.D=null;this.Z=-1;this.vr=!1;this.nextVideo=this.V=null;this.S=[];this.R$=new Set;this.Wr={};this.UY=new dG(1);this.J=0;this.Y_=this.b_=this.a$=!1;this.Vn=0;this.l_=!1;this.Sa=new Set;this.Ga=!1;this.VZ={gS:function(){WI(d)}}; this.W=new wd(this.policy,H,function(a,E){d.nS.k_(a,E)})}; BGX=function(p,C,V){QN(p,C);C=$nV(p.W,V);V||C||(C=gSS(p));C=C||p.Y.T[0];p.V=p.hk.T[C.id];WI(p);p.D=p.V;W4a(p);Qgs(p);p.C=p.nextVideo;p.D=p.V;return rRQ(p)}; Csu=function(p,C){if(GMY(p,C))return null;if(C.reason==="m"&&C.isLocked())return p.logger.debug(function(){return"User sets constraint to: "+XP(C)}),QN(p,C),p.J=p.S.length-1,WI(p),rd(p),p.b_=p.b_||p.C!==p.nextVideo,p.C=p.nextVideo,new ef(p.V,p.C,C.reason); C.reason==="r"&&(p.Z=-1);QN(p,C);rd(p);if(C.reason==="r"&&p.nextVideo===p.C)return new ef(p.V,p.nextVideo,C.reason);p7H(p);return null}; jIL=function(p,C,V){p.V=p.hk.T[C];p.D=p.V;return new ef(p.D,p.C,V?"t":"m")}; VwX=function(p,C){if(C.info.video){if(p.C!==C)return p.C=C,rRQ(p)}else p.Y_=p.D!==C,p.D=C;return null}; NPH=function(p,C){if(C.T.info.video&&C.S){var V=(C.C+C.V)/C.duration,N=C.T.info.qo;V&&N&&(p.UY.Du(1,V/N),p.policy.V&&V/N>1.5&&p.nS.k_("overshoot",{sq:C.LS,br:V,max:N}))}}; BI=function(p,C,V){$d(p.W,C,V===void 0?!1:V);p.Z=-1;QN(p,p.T)}; Hku=function(p,C){return new ef(p.D,p.C,C||p.T.reason)}; p7H=function(p){if(p.C&&p.nextVideo&&GX(p,p.C.info)p.policy.Vr,a=H<=p.policy.Vr?Qu(N):gO(N);if(!X||d||a)V[H]=N}return V}; QN=function(p,C){p.T=C;var V=p.Y.videoInfos;if(!p.T.isLocked()){var N=(0,g.Ip)();V=g.MZ(V,function(a){if(a.qo>this.policy.qo)return!1;var E=this.hk.T[a.id];return L4(this.W).get(a.id)>N?!1:E.sR.C>4||E.Y>4?(this.logger.debug(function(){return"Remove "+Xz(a)+"; 4 load failures"}),!1):this.Sa.has(+a.itag)?!1:!0},p); wgX(p.W)&&(V=g.MZ(V,function(a){return a.video.width<=854&&a.video.height<=480}))}V.length||(V=p.Y.videoInfos); var H=V;p.policy.nV&&(H=dFL(p,H,C));H=g.MZ(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]:gd(p.W,"")}p.policy.nV||(H=dFL(p,H,C));H.length||(H=[V[0]]);H.sort(function(a,E){return GX(p,a)-GX(p,E)}); C={};for(V=1;VC.mJ.video.width?(g.Q8(H,V),V--):GX(p,C.X3)*p.policy.Z>GX(p,C.mJ)&&(g.Q8(H,V-1),V--);var d=H[H.length-1];p.l_=!!p.C&&!!p.C.info&&p.C.info.o$!==d.o$;p.logger.debug(function(){return"Constraint: "+XP(p.T)+", "+H.length+" fmts selectable, max selectable fmt: "+Xz(d)}); p.S=H;p.R$.clear();C=!1;for(V=0;V=1080&&(C=!0);ikv(p.policy,d,p.hk.p4)}; dFL=function(p,C,V){var N=V.reason==="m"||V.reason==="s";p.policy.e3&&pA&&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=X7y(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=X7y(p,V)[a].o$;C=C.filter(function(l){return!!l&&!!l.video&&l.o$===E})}}return C}; hBy=function(p,C){for(var V=0;V+1N}; WI=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.FV||!p.policy.Wc)){var V=!1;if(V=p.policy.QZ?!0:p.T.isLocked()?p.T.T<240:hBy(p,p.V))p.V=p.hk.T[g.wY(C).id]}}}; rd=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: "+Xz(p.nextVideo.info)}); else{for(var C=Math.min(p.J,p.S.length-1),V=P3(p.sY),N=GX(p,p.V.info),H=V/p.policy.a$-N;C>0&&!(GX(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: "+Xz(p.nextVideo.info)+", bandwidth: "+V.toFixed(0)+", bandwidth to downgrade: "+H.toFixed(0)+", bandwidth to upgrade: "+X.toFixed(0)+", constraint: "+XP(p.T)}); p.J=C}}; W4a=function(p){var C=p.policy.a$,V=P3(p.sY),N=V/C-GX(p,p.V.info);C=g.gY(p.S,function(H){return GX(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.GC()*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}; TPa=function(p,C,V){var N=this;this.policy=p;this.T=C;this.Vn=V;this.S=this.C=0;this.JE=null;this.a$=new Set;this.Z=[];this.indexRange=this.initRange=null;this.J=new XO;this.b_=this.sY=!1;this.VZ={bVo:function(){return N.V}, hNS:function(){return N.chunkSize}, it_:function(){return N.D}, zNa:function(){return N.Y}}; (C=cAa(this))?(this.chunkSize=C.csz,this.V=Math.floor(C.clen/C.csz),this.D=C.ck,this.Y=C.civ):(this.chunkSize=p.aF,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 tOv(this.D,this.Y))}; cAa=function(p){if(p.policy.N5&&p.policy.IF)for(var C=g.F(p.policy.N5),V=C.next(),N={};!V.done;N={KR:void 0,bI:void 0},V=C.next())if(V=g.sk(V.value),N.KR=+V.clen,N.bI=+V.csz,N.KR>0&&N.bI>0&&p.policy.S===V.docid&&p.T.info.id===V.fmtid&&p.T.info.lastModified===+V.lmt)return p={},p.clen=N.KR,p.csz=N.bI,p.ck=V.ck,p.civ=V.civ,p}; jX=function(p){return!!p.JE&&p.JE.v$()}; Fxj=function(p,C){if(!jX(p)&&!p.fS()){if(!(p.sY||(p.sY=!0,p.V>0))){var V=Mwe(p);V=fk(p.policy.S,p.T.info,Vz(p),V,p.policy.Qn);JAS(p,V)}if(C.info.type===1){if(p.JE){N4(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.JE&&p.JE.type===1||N4(p,Error("Woffle: Index before init")),p.indexRange=Z0(p.initRange.end+1,C.T.getLength());else if(C.info.type===3){if(!p.JE){N4(p,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(p.JE.type===3&&!qt(p.JE,C.info)&&(p.Z=[],C.info.LS!==IZ(p.JE)||C.info.C!==0))return;if(C.info.S){V=g.F(p.Z);for(var N=V.next();!N.done;N=V.next())mF1(p,N.value);p.Z=[]}else{p.Z.push(C);p.JE=C.info;return}}else{N4(p,Error("Woffle: Unexpected slice type"));return}p.JE=C.info;mF1(p,C);vBH(p)}}; mF1=function(p,C){var V=0,N=C.T.m8();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=ZkV(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=EL(xK(l,7)),C==null||p.qt||(p.cryptoPeriodIndex=C),C=EL(xK(l,10)),C!=null&&C>0&&!p.qt&&(p.T=C),l=L_(l, 2,MkX,void 0===vTv?2:4),l=g.F(l),C=l.next();!C.done;C=l.next())p.V.push(g.mq(f6(C.value),4))}; fbS=function(p){return isNaN(p.cryptoPeriodIndex)?g.mq(p.initData):""+p.cryptoPeriodIndex}; dZ=function(p,C,V){var N=V===void 0?{}:V;V=N.videoDuration===void 0?0:N.videoDuration;var H=N.W9===void 0?void 0:N.W9;N=N.LG===void 0?!1:N.LG;this.videoId=p;this.status=C;this.videoDuration=V;this.W9=H;this.LG=N}; Oka=function(p,C,V,N,H){this.videoId=p;this.BG=C;this.C=V;this.bytesDownloaded=N;this.T=H}; iQ=function(p){this.T=p;this.offset=0}; yAj=function(p){if(p.offset>=p.T.getLength())throw Error();return p.T.getUint8(p.offset++)}; qje=function(p,C){C=C===void 0?!1:C;var V=yAj(p);if(V===1){C=-1;for(V=0;V<7;V++){var N=yAj(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+yAj(p),N*=128;return C?V:V-N}; IbY=function(p){try{var C=qje(p,!0),V=qje(p,!1);return{id:C,size:V}}catch(N){return{id:-1,size:-1}}}; bkQ=function(p){for(var C=new iQ(p),V=-1,N=0,H=0;!N||!H;){var X=IbY(C),d=X.id;X=X.size;if(d<0)return;if(d===176){if(X!==2)return;N=C.SS()}else if(d===186){if(X!==2)return;H=C.SS()}d===374648427?V=C.SS()+X:d!==408125543&&d!==174&&d!==224&&C.skip(X)}C=Y9(p,0,V);V=new DataView(C.buffer);V.setUint16(N,3840);V.setUint16(H,2160);N=new be([C]);Ad(N,p);return N}; oB1=function(p,C,V){var N=this;this.nS=p;this.policy=C;this.Y=V;this.logger=new g.cI("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.l_=-1;this.Wr=this.W=this.S=this.Vn=null;this.UY=this.Y_=NaN;this.D=this.b_=this.R$=this.Qn=null;this.Mo=!1;this.Ga=this.timestampOffset=0;this.VZ={o4:function(){return N.C}}; if(this.policy.S){var H=this.Y,X=this.policy.S;this.policy.Qn&&p.k_("atv",{ap:this.policy.Qn});this.D=new TPa(this.policy,H,function(d,a,E){hI(p,new dZ(N.policy.S,2,{W9:new Oka(X,d,H.info,a,E)}))}); this.D.J.promise.then(function(d){N.D=null;d===1?hI(p,new dZ(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 HZ&&!d.T?(N.logger.info(function(){return"Assertion failed: "+a}),N.nS.k_("offlinenwerr",{em:a}),AAy(N),hI(p,new dZ(N.policy.S,4))):(N.logger.info(function(){return"Failed to write to disk: "+a}),N.nS.k_("dldbwerr",{em:a}),AAy(N),hI(p,new dZ(N.policy.S,4,{LG:!0})))})}}; ke9=function(p){return p.C.length?p.C[0]:null}; xF9=function(p,C){return p.C.some(function(V){return V.info.LS===C})}; w71=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.yZ(),V.info.yZ());gLv(p.W,V.info)||Yjv(p,"d")}else if(V.info.C>0)throw new g.Bw("continuation_of_null",V.info.yZ());p.W=V.info;p.Y=V.info.T;if(V.info.C===0){if(p.T)if(!p.nS.isOffline()||p.policy.oz)p.nS.k_("slice_not_fully_processed",{buffered:p.T.info.yZ(), push:V.info.yZ()});else throw new g.Bw("slice_not_fully_processed",p.T.info.yZ(),V.info.yZ());sp(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.Lp()&&p.S&&(N=V.info,H=p.S.Tp,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.yZ(),V.info.yZ());p.T=N}else p.T=V;a:{V=g.Gx(p.T.info.T.info);if(p.T.info.type!==3){if(!p.T.info.S)break a;p.T.info.type===6?zBY(p,C,p.T):RBV(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.SS()+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.SS()+t);if(c===160){d<0&&(H=d=X.SS()+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=nBu(p,p.sY),N.W&&eBY(p,N),zBY(p,C,N),PsX(p,N),p.sY=0):p.Z&&(N=nBu(p,p.Z<0?Infinity:p.Z),p.Z-=N.T.getLength(),PsX(p,N))}}p.T&&p.T.info.S&&(PsX(p,p.T),p.T=null)}; RBV=function(p,C){!C.info.T.Lp()&&C.info.C===0&&(g.Gx(C.info.T.info)||C.info.T.info.qt())&&SGj(C);if(C.info.type===1)try{eBY(p,C),$FH(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.RL(C);p.D&&Fxj(p.D,C);if(V.Vf()&&p.policy.T)a:{p=p.nS.hk;C=C.info.clipId;V=g.Cx(V.info,p.p4);if(C){var N=zhQ(p,V);if(p.Ga[N])break a;p.Ga[N]=C}p.Wr.push(V)}}; BzQ=function(p,C,V){if(p.C.length!==0&&(V||p.C.some(function(X){return X.info.w7=Ep(d)+a):C=p.getDuration()>=d.getDuration(),C=!C;C&&Wxe(V)&&(C=p.Vn,aB?(a=vPL(V),d=1/a,a=Ep(p,a),C=Ep(C)+d-a):C=C.getDuration()- p.getDuration(),C=1+C/V.info.duration,KkQ(V.a6(),C))}else{d=!1;p.S||(SGj(V),V.C&&(p.S=V.C,d=!0,X=V.info,N=V.C.Tp,X.W="updateWithEmsg",X.LS=N,X=V.C,X.v$&&(N=p.Y.index,N.C=!X.v$,N.V="emsg"),X=V.info.T.info,N=V.a6(),g.Gx(X)?QS(N,1701671783):X.qt()&&Nt([408125543],307544935,N)));a:if((X=Gn(V,p.policy.Q$))&&FLa(V))a=QIy(p,V),p.J+=a,X-=a,p.a$+=X,p.V=p.policy.jH?p.V+X:NaN;else{if(p.policy.lz){if(N=E=p.nS.PP(rz(V),1),p.V>=0&&V.info.type!==6){if(p.policy.jH&&isNaN(p.Y_)){g.eG(new g.Bw("Missing duration while processing previous chunk", V.info.yZ()));p.nS.isOffline()&&!p.policy.oz||rAV(p,V,N);Yjv(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.UY,J=p.Y_,S=p.policy.s5&&l>p.policy.s5,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:zr(H);H={audio:""+ +p.UV(),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.l_=c}S||D||Z||(N=p.V);H=QIy(p,V,E);X-=H;p.J=l+H;p.policy.V&&(t&&!Z||H)&&(l=(a=p.S)==null?void 0:zr(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;rAV(p,V,N)&&(p.a$+=X,p.V=N+X,p.policy.xr&&p.Ga>=p.policy.xr&&(p.Ga=0,p.nS.qX({resetForRewrites:"count"})))}p.Wr= V.info;p.Y_=BR(V);V.V>=0&&(p.UY=V.V);if(d&&p.S){d=BPy(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.Tp)||AW(a,d);(V.info.S||p.T&&p.T.info.S)&&V.info.type!==6||(p.b_=d,p.policy.UY?(C=GeH(p.S),p.nS.d5(p.Y,d,C)):(C=p.nS,C.hk.isManifestless&&p_1(C,d,null,!!p.Y.info.video)),p.policy.H1||CdL(p))}}$FH(p,V);p.timestampOffset&&mVy(V,p.timestampOffset)}; PsX=function(p,C){if(C.info.S){p.Qn=C.info;if(p.S){var V=p.S,N=BPy(p,!1);V=GeH(V);p.nS.d5(p.Y,N,V);p.b_||p.policy.H1||CdL(p);p.b_=null}sp(p)}p.D&&Fxj(p.D,C);if(N=p.XN())if(N=Qv(N,C,p.policy.Z_)){p.C.pop();p.C.push(N);return}p.C.push(C)}; GeH=function(p){if(p.Ff()){var C=p.data["Stitched-Video-Id"]?p.data["Stitched-Video-Id"].split(",").slice(0,-1):[],V=zr(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 utH(C,V,N,H,g.mou(p),g.vuX(p))}else p=null;return p}; sp=function(p){p.T=null;p.sY=-1;p.Z=0;p.S=null;p.Sa=NaN;p.a$=0;p.b_=null}; Yjv=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.l_=-1;p.Wr=null;p.UY=NaN;p.Y_=NaN;p.R$=null;p.nS.k_("mdstm",C)}; $FH=function(p,C){if(p.Y.info.vV){if(C.info.T.info.qt()){var V=new B1(C.a6());if(pp(V,[408125543,374648427,174,28032,25152,20533,18402])){var N=Vv(V,!0);V=N!==16?null:iw(V,N)}else V=null;N="webm"}else C.info.D=Kxa(C.a6()),V=DF9(C.info.D),N="cenc";V&&V.length&&(V=new X0(V,N),p.policy.kW&&g.Gx(C.info.T.info)&&(N=YNv(C.a6()))&&(V.C=N),V.qt=C.info.T.info.qt(),C.C&&C.C.cryptoPeriodIndex&&(V.cryptoPeriodIndex=C.C.cryptoPeriodIndex),C.C&&C.C.C&&(V.T=C.C.C),p.nS.mj(V))}}; CdL=function(p){var C=p.S,V=MYX(C);V&&(V.startSecs+=p.Sa,p.nS.UP(p.Y,V,C.Tp,C.Ff()))}; BPy=function(p,C){var V,N=p.S;if(V=MYX(N))V.startSecs+=p.Sa;return new Zy(N.Tp,p.Sa,C?N.gR:p.a$,N.ingestionTime,"sq/"+N.Tp,void 0,void 0,C,V)}; rAV=function(p,C,V){if(!JVS(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}; QIy=function(p,C,V){var N=0;if(C.info.T.info.qt()&&!FLa(C))return 0;if(p.Vn&&!p.UV()){var H=0;V&&g.Gx(C.info.T.info)?H=V-p.V:C.info.T.info.qt()&&(H=p.J);var X=C.info.LS;V=Gn(C,p.policy.Q$);var d=p.Vn;var a=d.l_;d=d.J;var E=Math.abs(d-H)>.02;if((X===a||X>a&&X>p.l_)&&E){N=Math.max(.95,Math.min(1.05,(V-(d-H))/V));if(g.Gx(C.info.T.info))KkQ(C.a6(),N);else if(C.info.T.info.qt()&&(X=H-d,!g.Gx(C.info.T.info)&&(C.info.T.info.qt(),N=new B1(C.a6()),a=C.W?N:new B1(new DataView(C.info.T.T.buffer)),Gn(C,!0)))){var l= X*1E3,t=s9(a);a=N.pos;N.pos=0;if(N.T.getUint8(N.pos)===160||aZ(N))if(j5(N,160))if(Vv(N,!0),j5(N,155)){if(X=N.pos,E=Vv(N,!0),N.pos=X,l=l*1E9/t,t=HR(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.qt()&&p.nS.k_("webmDurationAdjustment",{durationAdjustment:N,videoDrift:H+N,audioDrift:d})}return N}; Wxe=function(p){return p.info.T.Lp()&&p.info.LS===p.info.T.index.er()}; Ep=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()}; jMe=function(p,C){C<0||(p.C.forEach(function(V){mVy(V,C)}),p.timestampOffset=C)}; Q7=function(p,C,V,N,H){E4.call(this,V,H);var X=this;this.policy=p;this.formatId=C;this.QL=N;this.lastError=null;this.eq=function(){X.fS()||(X.QL.GB.has(X.formatId)?(X.isComplete()||X.T.start(),At(X.QL,X.formatId)&&X.G3(2),X.QL.Jp(X.formatId)&&(cRV(X.QL,X.formatId)?X.Ba(4):(X.lastError="net.closed",X.Ba(5)))):(X.lastError="player.exception",X.Ba(5)))}; this.T=new g.N8(function(){X.isComplete()||(X.lastError="net.timeout",X.Ba(5))},this.policy.MY); this.T.start();sgS(this.QL,this.formatId,this.eq);g.J8(this.eq)}; lQ=function(p,C,V,N){g.z.call(this);var H=this;this.nS=p;this.policy=C;this.T=V;this.timing=N;this.logger=new g.cI("dash");this.V=[];this.sY=[];this.C=this.NW=null;this.vr=!1;this.Ga=this.R$=0;this.Y=-1;this.b_=!1;this.Sa=-1;this.Vn=this.Wr=null;this.a$=NaN;this.VZ={CP:function(){return H.S}, kvn:function(){return H.V}, Nnk:function(){return H.J}}; this.S=new oB1(p,C,V);this.policy.T&&(this.J=new $v(this.S,this.nS.getManifest(),this.policy,function(X){H.policy.O_&&H.k_("buftl",X)})); this.policy.Mo&&(this.Z=new lby(this));this.qo=V.info.qo;this.D=this.policy.sY?!1:V.jB();this.isManifestless=V.jB();this.W=this.D;g.R(this,this.Wr)}; tI=function(p,C,V){V=V===void 0?!1:V;C&&aB&&jMe(p.S,C.NJ());if(!V){var N;(N=p.J)==null||gES(N)}p.NW=C;(C=p.J)!=null&&(C.NW=p.NW)}; cZ=function(p){var C=p.NW&&p.NW.Db();if(p.policy.nA){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}; VK1=function(p){for(var C={},V=0;V4&&p.sY.shift()}; Hf9=function(p,C){if(C.Y5()){var V=C.td();V=g.F(V);for(var N=V.next();!N.done;N=V.next())N=N.value,p.policy.V&&C instanceof Q7&&p.k_("omblss",{s:N.info.yZ()}),TG(p,C.info.wV,N,C.im())}}; TG=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:X_y(p,V);break;case 4:var H=V.info.T,X=H.l$(V),d;((d=p.C)==null?0:d.type===4)&&CbY(V.info,p.C)&&(p.C=H.Ty(p.C).pop());V=g.F(X);for(H=V.next();!H.done;H=V.next())TG(p,C,H.value,N);break;case 3:V.info.T.info.video?(H=p.timing,H.Vn||(H.Vn=(0,g.Ip)(),ok("fvb_r",H.Vn,H.T))):(H=p.timing,H.Y||(H.Y=(0,g.Ip)(),ok("fab_r",H.Y,H.T))); w71(p.S,C,V,N);p.policy.T&&dI9(p);break;case 6:w71(p.S,C,V,N),p.C=V.info}}; X_y=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)(),ok("vis_r",V.Wr,V.T))}else V=p.timing,V.J||(V.J=(0,g.Ip)(),ok("ais_r",V.J,V.T));RBV(p.S,C);p=p.nS;p.videoTrack.T.Vf()&&p.audioTrack.T.Vf()&&p.policy.T&&!p.hk.p4&&(C=p.audioTrack.getDuration(),V=p.videoTrack.getDuration(),Math.abs(C-V)>1&&p.k_("trBug",{af:""+g.Cx(p.audioTrack.T.info,!1),vf:""+g.Cx(p.videoTrack.T.info,!1),a:""+C,v:""+V}))}; HI=function(p){return ke9(p.S)}; dI9=function(p){p.V.length?p.C=g.wY(g.wY(p.V).info.wV):p.S.C.length?p.C=p.S.XN().info:p.C=cZ(p)}; ifu=function(p,C){var V={xG:[],hd:[]},N;if((p=p.J)==null)p=void 0;else{LpL(p,p.xG,"og");Pw9(p,C);LpL(p,p.xG,"trim");var H=$tX(p);C=H.xG;H=H.lC;for(var X=[],d=0;d0){var T=hj(c,E);T>=0&&(t=(c.end(T)-E+.1)*1E3)}X.push({formatId:g.Cx(a.info.T.info,p.hk.p4),Kq:a.info.Kq, sequenceNumber:a.info.LS+p.S,RV:l,uV:a.info.V,r4:t})}p={xG:C,hd:X}}return(N=p)!=null?N:V}; GJ=function(p,C,V){V=V===void 0?!1:V;if(p.NW){var N=p.NW.l9(),H=a7(N,C),X=NaN,d=cZ(p);d&&(X=a7(N,d.T.index.getStartTime(d.LS)));if(H===X&&p.C&&p.C.V&&htQ(sMH(p),0))return C}p=a6S(p,C,V);return p>=0?p:NaN}; C4=function(p,C,V){p.T.Vf();var N=a6S(p,C);if(N>=0)return N;var H;(H=p.J)==null||wRX(H,C,V);V=Math;N=V.min;H=p.S;if(H.D)if(H=H.D,H.JE&&H.JE.type===3)H=H.JE.startTime;else if(H.V>0){var X=H.T.index;X=g.Hy(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.B1())==null?void 0:(a=gS(d,C))==null?void 0:a.clipId;p.C=p.T.HS(C,void 0,V).wV[0]}else p.C=p.policy.sY?null:p.T.HS(C).wV[0];M4(p)&& p.NW&&p.NW.abort();p.Ga=0;return p.C?p.C.startTime:C}; QZe=function(p){p.D=!0;p.W=!0;p.Y=-1;C4(p,Infinity)}; JI=function(p){for(var C=0,V=g.F(p.V),N=V.next();!N.done;N=V.next())C+=VIL(N.value.info);return C+=Lxs(p.S)}; vZ=function(p,C){C=C===void 0?!1:C;var V=p.nS.getCurrentTime(),N=p.S.XN(),H=(N==null?void 0:N.info.zM)||0;p.policy.Ov&&(N==null?0:N.info.T.jB())&&!N.info.S&&(H=N.info.w7);if(p.policy.C&&N&&N.info.clipId){var X,d=(((X=p.nS.B1())==null?void 0:Lc(X,N.info.clipId))||0)/1E3;H+=d}if(!p.NW)return p.policy.T&&C&&!isNaN(V)&&N?H-V:0;if((X=cZ(p))&&mN(p,X))return X.zM;d=p.NW.l9(!0);if(C&&N)return X=0,p.policy.T&&(X=Pc(d,H+.02)),X+H-V;H=Pc(d,V);p.policy.Op&&X&&(C=hj(d,V),d=hj(d,X.w7-.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}; EAu=function(p){var C=cZ(p);return C?C.zM-p.nS.getCurrentTime():0}; l6u=function(p,C){if(p.V.length){if(p.V[0].info.wV[0].startTime<=C)return;B3(p)}for(var V=p.S,N=V.C.length-1;N>=0;N--)V.C[N].info.startTime>C&&V.C.pop();dI9(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.R$,H.C.length!==0||H.W||Yjv(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?C4(p,N):p.C=p.T.jz(C-1,!1).wV[0]}; SX=function(p,C){var V;for(V=0;V0?V||C.LS>=p.Sa:V}; Dp=function(p){var C;return M4(p)||mN(p,(C=p.S.XN())==null?void 0:C.info)}; sMH=function(p){var C=[],V=cZ(p);V&&C.push(V);C=g.Gp(C,p.S.XA());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={gf:void 0},X=H.next())d.gf=X.value,N.ge&&(C=g.MZ(C,function(a){return function(E){return!CbY(E,a.gf)}}(d))),(yv(d.gf)||d.gf.type===4)&&C.push(d.gf)}p.C&&!$rX(p.C,g.wY(C),p.C.T.Lp())&&C.push(p.C); return C}; htQ=function(p,C){if(!p.length)return!1;for(C+=1;C=C){C=X;break a}}C=H}return C<0?NaN:htQ(p,V?C:0)?p[C].startTime:NaN}; uQ=function(p){return!(!p.C||p.C.T===p.T)}; TsY=function(p){return uQ(p)&&p.T.Vf()&&p.C.T.info.qoC&&N.zM1080&&!p.RX&&(p.Ga=36700160,p.F$=5242880,p.R$=Math.max(4194304,p.R$),p.RX=!0);C.video.T>2160&&!p.Yr&&(p.Ga=104857600,p.qo=13107200,p.Yr=!0);g.Mz(p.I$.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?C.isEncrypted()&&g.Qg()&&g.gm("samsung")&&(g.gm("kant")||g.gm("muse"))&&(p.qo=g.Mz(p.I$.experiments,"html5_samsung_kant_limit_max_bitrate")):C.isEncrypted()&&g.Qg()&&g.gm("kant")&&(p.qo=1310720);p.Z$!==0&&C.isEncrypted()&&(p.qo=p.Z$);p.S6!==0&&C.isEncrypted()&& V&&(p.qo=p.S6);C.qo&&(p.sA=Math.max(p.dR,Math.min(p.R$,5*C.qo)))}; Op=function(p){return p.T&&p.Kk&&p.playbackStartPolicy}; yz=function(p){return p.C||p.T&&p.cV}; I6v=function(p,C,V,N){p.Kk&&(p.playbackStartPolicy=C,p.rg=V,p.s2=N)}; fA=function(p,C,V){V=V===void 0?0:V;return g.Mz(p.I$.experiments,C)||V}; bf9=function(p){var C=p===void 0?{}:p;p=C.rh;var V=C.AX;var N=C.uc;var H=C.er;C=C.Wj;this.rh=p;this.AX=V;this.uc=N;this.er=H;this.Wj=C}; iba=function(p,C){if(C<0)return!0;var V=p.er();return C0)return 2;if(C<0)return 1;V=p.er();return C(0,g.Ip)()?0:1}; IB=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){M=M===void 0?null:M;g.z.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.fK=T;this.Cx=M;this.b_=!1;this.H9="";this.NB=null;this.nO=NaN;this.sY=!1;this.C=null;this.fO=this.Z=NaN;this.iL=this.Y=0;this.logger=new g.cI("dash");this.VZ={Sf:function(S,D){return J.Sf(S,D)}}; this.policy.eA>0&&(this.H9=g.OI(this.policy.eA));this.policy.vz&&(this.J=new q4(this.nS,this.policy,this.schedule),g.R(this,this.J))}; Rte=function(p,C,V){var N=C.C?C.C.T.sR:C.T.sR;var H=p.S,X;(X=!p.policy.vO)||(X=FP(N.T)===FP(N.V));X?N=!1:(H=Tn(H,FP(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.Rj())||p.nS.isSuspended&&(!JR(p.schedule)||p.nS.EM))return!1;if(p.policy.S&&Uj>=5)return g.HF(p.nS.Pe),!1;if(p.hk.isManifestless){if(C.V.length>0&&C.C&&C.C.LS===-1||C.V.length>=p.policy.J2||!p.policy.Co&&C.V.length>0&&!p.policy.J.AX)return!1;if(C.D)return!p.hk.isLive||!isNaN(p.nO)}if(FJS(C))return p.logger.debug("Pending request with server-selectable format found"), !1;if(!C.C){if(!C.T.Vf())return!1;C4(C,p.nS.getCurrentTime())}if(HI(C)&&(C.XN()!==HI(C)||p.nS.isSuspended))return!1;H=(N=p.policy.Yu)&&!C.V.length&&vZ(C,!0)=p.policy.IX)return!1;N=C.C;if(!N)return!0;N.type===4&&N.T.Vf()&&(C.C=g.wY(N.T.Ty(N)),N=C.C);if(!N.v$()&&!N.T.d2(N))return!1;X=p.hk.EO||p.hk.S;if(p.hk.isManifestless&&X){X=C.T.index.er();var d=V.T.index.er(); X=Math.min(X,d);if(C.T.index.JR()>0&&X>0&&N.LS>=X)return C.Sa=X,V.Sa=X,!1}if(N.T.info.audio&&N.type===4||N.v$())return!1;X=!C.W&&!V.W;if(H=!H)H=N.zM,H=!!(V.C&&!mN(V,V.C)&&V.C.zMnA9(p,C)?(nA9(p,C),!1):(p=C.NW)&&p.isLocked()?!1:!0}; nA9=function(p,C){var V=p.T;V=V.T?V.T.I_:null;if(p.policy.Sa&&V)return V.startSecs+V.zI+15;C=p4(p.nS,C);p.policy.Hc>0&&(V=((0,g.Ip)()-p.nS.uL)/1E3,C=Math.min(C,p.policy.Hc+p.policy.iM*V));V=p.nS.getCurrentTime()+C;return p.policy.DU&&(C=etH(p.nS)+p.policy.DU,C=0||C.sR.Xd("defrag")==="1"||C.sR.Xd("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.JX=V;H.T=C.T;C=H}C&&zt9(p,C)}}; zt9=function(p,C){p.nS.A0(C);var V=VIL(C),N=p.nS.Fd();V={n1:p.schedule,aC:V,IE:kn1(p.W,V),rP:O9(C.wV[0]),zv:So(C.sR.T),zV:p.policy.V,pT:function(d,a){p.nS.R1(d,a)}}; if(p.schedule.C.Y){var H,X;V.eS=(((H=p.videoTrack.T)==null?void 0:H.info.qo)||0)+(((X=p.audioTrack.T)==null?void 0:X.info.qo)||0)}p.NB&&(V.LS=C.wV[0].LS,V.nO=C.nO,V.NB=p.NB);N={qD:NFa(C,p.nS.getCurrentTime()),v9:p.policy.f9&&xE(C)&&C.wV[0].T.info.video?aby(p.V):void 0,mH:p.policy.Sa,poToken:p.nS.jE(),jg:p.nS.WE(),H9:p.H9,fO:isNaN(p.fO)?null:p.fO,Cx:p.Cx,fK:p.fK,iL:p.iL,Jv:N};return new rS(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.h6()||!(!p.nS.Hr||p.nS.isSuspended||vZ(l)>3)){var t=k5v(d,p.policy,p.S);t===1&&(p.sY=!0);Pdv(p,d,t);if(d.isComplete()||d.fS()&&a<3){if(p.policy.V){var c=d.timing.r9();c.rst=d.state;c.strm=d.xhr.Qt();c.cncl=d.xhr&&d.EZ.S?1:0;p.nS.k_("rqs",c)}d.QU&&p.nS.k_("sbwe3",{},!0)}if(!p.fS()&&d.state>=2){bIa(p.timing,d,E);var T=p.nS;p.fO&&d.wK&&T&&(p.fO=NaN,p.nS.W5(d.wK),p.nS.gg(),p.nS.k_("cabrUtcSeek",{mediaTimeSeconds:d.wK}));d.Va&&p.fO&&d.Va&&!d.Va.action&&(p.nS.CT(p.fO),p.fO=NaN,p.nS.k_("cabrUtcSeekFallback", {targetUtcTimeSeconds:p.fO}));d.QP&&p.nS.Wm(d.QP);p.policy.K1&&(p.iL=d.iL);if(d.state===3){SX(l,d);xE(d.info)&&bQ(p,l,E,!0);if(p.C){var M=d.info.sW();M&&p.C.vB(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.iT()&&p.nS.handleError(d.H6(),d.Qz());else{var J=(d.info.wV[0].T.info.video?p.videoTrack:p.audioTrack).V[0]||null;J&&J instanceof rS&&J.h6()&&J.X6(!0)}d.dispose()}else{d.iT()||w_X(p,d);var S;((S=d.n6)==null?0:S.itagDenylist)&&p.nS.QG(d.n6.itagDenylist); if(d.state===4)$IX(p,d),p.T&&zgH(p.T,d.info,p.C);else if(p.policy.ZI&&d.Y5()&&!d.isComplete()&&!$IX(p,d)&&!d.iT())break a;d.iT()&&(LJX(p,d),isNaN(p.fO)||(p.nS.CT(p.fO),p.fO=NaN));p.policy.wy&&!d.isComplete()?gAs(p.nS):p.nS.f7();var D=xIv(d,p.policy,p.S);Pdv(p,d,D)}}}}}catch(Z){a=p.b_?1:0,p.b_=!0,d=yu(a),a=qD(Z,a),p.nS.handleError(a.errorCode,a.details,a.severity),d||p.nS.gx()}},N)}; w_X=function(p,C){if(C.gB&&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=sIX(p.V,V),H=C.info.V;H&&(H-=N.Aq(),N.V=!0,C.info.wV[0].T.V=!1,Xge(C,N.eL(H)),AI(p.nS,p.videoTrack,N),SWe(p.videoTrack,N),p.nS.aE(N.info.video.quality),(H=C.im())&&N.info.lastModified&&N.info.lastModified!==+H&&SX(p.videoTrack,C))}else C.gB=!1}}; LJX=function(p,C){var V=C.info.wV[0].T,N=C.H6();if(So(V.sR.T)){var H=g.vy(C.Mg(),3);p.nS.k_("dldbrerr",{em:H||"none"})}H=C.info.wV[0].LS;var X=RA(p.T,C.info.wV[0].w7,H);N==="net.badstatus"&&(p.Y+=1);if(C.canRetry()&&WJy(p.nS)){if(!(C.info.sR.C>=p.policy.XL&&p.C&&C.info.isDecorated()&&N==="net.badstatus"&&p.C.yT(X,H))){H=(V.info.video&&V.sR.C>1||C.Ld===410||C.Ld===500||C.Ld===503)&&!(L4(p.V.W).size>0)&&!So(V.sR.T);X=C.Qz();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}),BI(p.V,V)),SX(d,C),p.nS.f7())}}else d=1,p.C&&C.info.isDecorated()&&N==="net.badstatus"&&p.C.yT(X,H)&&(d=0),p.hk.isLive&&C.H6()==="net.badstatus"&&p.Y<=p.policy.Ym*2?(VBL(p.hk),p.hk.EO||p.hk.isPremiere?Nx(p.nS,0,{L1:"badStatusWorkaround"}):p.hk.S?Nx(p.nS,p.hk.vr,{L1:"badStatusWorkaround", PP:!0}):oB(p.nS)):p.nS.handleError(N,C.Qz(),d)}; $IX=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.Y5(),N.D=!1);C.JL()&&p.nS.O2.Du(1,C.JL());var H=C.JR(),X=C.Bi();F1(p.hk,H,X)}if(C.info.rP()&&!kE(C.info))for(var d=g.F(C.td()),a=d.next();!a.done;a=d.next())X_y(N,a.value);for(p.nS.getCurrentTime();N.V.length&&N.V[0].state===4;){var E=N.V.shift();Hf9(N,E);N.R$=E.Hi()}N.V.length&&Hf9(N,N.V[0]);var l=!!HI(N);l&&C instanceof Q7&&(V.info.UV()?ZIv(p.timing):usy(p.timing));return l}catch(t){C=C.Qz();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.qX(C);break a}}p.handleError("fmt.unplayable",C,1)}return!1}}; QMa=function(p){var C=p.videoTrack.T.index;p.NB=new bf9({rh:p.policy.rh,AX:p.policy.J.AX,uc:C.Qe(),er:function(){return C.er()}, Wj:function(){return C.Wj()}})}; bQ=function(p,C,V,N){if(!(V.Vf()||V.M$()||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=xtX(N,H.video?N.policy.AI:N.policy.MO,H.qo)}else N=0;N=V.eL(N);p=zt9(p,N);kE(N)&&NsV(C,p);V.V=!0}}; kk=function(p,C,V,N,H,X,d,a){g.z.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.cI("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 wd(C,X,function(l,t){E.nS.k_(l,t)}); this.wY.jO||rlH(this);this.isAudioOnly&&BsY(this,this.hk.T["0"])}; G5e=function(p,C){var V=[];C=g.F(C);for(var N=C.next();!N.done;N=C.next())V.push(g.Cx(N.value,p.hk.p4));return V}; BsY=function(p,C,V){C!==p.S&&(p.S&&(p.sY=!0),p.S=C,p.JT(C,p.videoTrack,V))}; VQv=function(p,C){p.logger.debug("setConstraint: "+XP(C));yz(p.wY)&&(p.b_=C.reason==="m"||C.reason==="l"?!0:!1);C.reason==="m"?C.isLocked()&&pke(p,C.T):CxX(p,C)?j$9(p,C.C,C.T):p.videoInfos=p.W;p.C=C}; CxX=function(p,C){return p.wY.qr&&C.reason==="b"||p.wY.tj?!1:p.wY.y4?!0:C.reason==="l"||C.reason==="b"||C.reason==="o"}; NbV=function(p,C){return C.isLocked()&&p.T.C||p.C===void 0?!1:C.rI(p.C)}; HTv=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.DS&&p.T.T===p.S.info.itag?!1:!0:!1}; pke=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(".")}),j$9(p,C,C),gd(p.T,""))}else j$9(p,C,C)}; j$9=function(p,C,V){p.videoInfos=p.W;p.videoInfos=g.MZ(p.videoInfos,function(N){return N.video.T>=C&&N.video.T<=V})}; rlH=function(p){var C=$nV(p.T,p.D);C&&(p.V=[C])}; XkV=function(p,C,V){if(p.wY.jO){if(p.D){var N=g.MZ(p.V,function(H){return H.id===p.D}); return xk(N,V).includes(C)}N=g.MZ(p.V,function(H){var X;return!((X=H.K4)==null||!X.isDefault)}); if(N.length>0)return xk(N,V).includes(C)}return xk(p.V,V).includes(C)}; xk=function(p,C){return p.map(function(V){return S5(g.Cx(V,C))})}; dhv=function(p){var C;if((C=p.C)==null?0:C.isLocked())return p.videoInfos;var V=L4(p.T);C=g.MZ(p.videoInfos,function(N){return N.qo>p.wY.qo?!1:!V.has(N.id)}); wgX(p.T)&&(C=g.MZ(C,function(N){return N.video.width<=854&&N.video.height<=480})); return C}; s$H=function(p,C,V,N){var H=p.hk,X=p.Ta.getVideoData(),d=g.pf(X),a=pgu({I$:X.K(),Ta:p.Ta,XZ:p.XZ,wY:p.wY,uL:p.uL,Ry:p.Ry,MD:p.MD,Y0:p.Y0,BK:p.BK,isPrefetch:p.isPrefetch,lH:p.lH,sabrLicenseConstraint:X.sabrLicenseConstraint,mU:p.mU,yW:p.yW,Be:p.Be,t_:p.t_}),E=U4(X,p.Jv,p.nextRequestPolicy,p.vI,p.Nm,p.Ug_);N&&V&&(N=E.Ip?E.Ip.map(function(S){return S.type}):[],V("ssap",{stmctxt:N.join("_"), unsntctxt:E.lQ?E.lQ.join("_"):""}));N=p.XR;var l=p.FR,t=p.M9;if(l===void 0&&N===void 0){var c;l=iT9(H.p4,(c=p.Zx)==null?void 0:c.video);var T;N=iT9(H.p4,(T=p.Zx)==null?void 0:T.audio)}if(X.Cx)var M=X.Cx;X={uq:a,hd:p.hd,XR:N,FR:l,M9:t,videoPlaybackUstreamerConfig:M,Rp:E};p.Um&&(X.Um=p.Um);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[zhQ(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:gS(c,E),c=T.clipId,T=T.Ge,c?(H.has(c)||(M=d.get(c)||[],H.set(c,{clipId:c,xG:[],jL: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:Yk(C)}));X.VC=[];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.VC.push(d);if(p.xG.length&&!X.VC.length){V&&V("ssap",{nobfrange:"1",br:hLv(p.xG),timeline:Yk(C)});return}p.o3&&(X.o3=p.o3);p.JH&&(X.JH=p.JH)}else X.xG=p.xG,X.jL=H.Wr,d&&((J=p.xG)==null?void 0:J.length)>0&&!C&&V&&V("ssap",{bldmistlm:"1"});return X}; iT9=function(p,C){return C?[g.Cx(C.info,p)]:[]}; hLv=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}; zG=function(p,C,V){var N=this;this.requestType=p;this.sR=C;this.kM=V;this.C=null;this.VZ={DSo:function(){var H;return(H=N.data)==null?void 0:H.isPrefetch}, Nm:function(){var H;return(H=N.data)==null?void 0:H.Nm}}}; agH=function(p,C,V,N,H){H=H===void 0?{}:H;if(N==null?0:N.YM)p.ZH=F4V(p,N,H),C.yW=p.sR.yW();if(p.jX())return!0;p.data=C;p.T=s$H(C,V,function(X,d){var a;(a=p.kM)==null||a.Wz(X,d)},N==null?void 0:N.V); if(!p.T)return!1;p.C=g.aE(p.T,hqe);return!0}; F4V=function(p,C,V){C=mp(p.sR,Ejv(p,C,V),C);p.jX()&&C.set("probe","1");return C}; Ejv=function(p,C,V){p.JX===void 0&&(p.JX=p.sR.JX(C,V));return p.JX}; lgV=function(p){var C,V;return((C=p.T)==null?void 0:(V=C.uq)==null?void 0:V.HN)||0}; tQQ=function(p){var C,V;return!!((C=p.T)==null?0:(V=C.uq)==null?0:V.mU)}; c_v=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,eLe(C,V,X));break;case 1:eLe(C,rZ,kC9);break;case 0:Pxy(C, C.T&7);V=Cu(C,16);H=Cu(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}; eLe=function(p,C,V){C=RLY(C);V=RLY(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=GG[l];d+=Cu(p,BZ[l]);E=njj(p,V);a=pu[E];a+=Cu(p,xhV[E]);if($he&&dV.length&&(p.error=!0);p.register|=(V[N+1]<<8)+V[N]<=0)return Pxy(p,V&15),V>>4;for(Pxy(p,7);V<0;)V=C[Cu(p,1)-V];return V>>4}; Cu=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}; Pxy=function(p,C){p.T-=C;p.register>>=C}; RLY=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}; Lja=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.wkY(new g.Y5v(p)));C=new DecompressionStream("gzip");V=C.writable.getWriter();V.write(p);V.close();N=C.readable.getReader();H=new be([]);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.m8())}})}; jP=function(p,C){this.T=p;this.TN=C}; gjj=function(p){return t5(t5(aH(function(){return lt(p.TN,function(C){return p.OQ(p.T,C)})}),function(){return p.gQ(p.T)}),function(){return p.lE(p.T)})}; Wjv=function(p,C){return gjj(new jP(p,C))}; Bbe=function(p){yN.call(this,"onesie");this.bJ=p;this.T={};this.V=!0;this.S=null;this.queue=new ojS(this);this.W={};this.Y=VTu(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,Y,W,L,VL,au;return lje(X,function(Q){switch(Q.C){case 1:Q.Y=0;Q.S=2;N.bJ.j8();d=function(e){return function(G){throw{name:e,message:G};}}; a=C.m8();g.vv(Q,4,5);if(!V){Q.EY(7);break}return hXS(Q,t5(Q$H(N.bJ,a,N.iv),d("DecryptError")).wait(),8);case 8:E=Q.T;case 7:if(!N.bJ.enableCompression){Q.EY(9);break}return hXS(Q,t5(Wjv((c=E)!=null?c:a,N.bJ.K().iM),d("DecompressError")).wait(),10);case 10:l=Q.T;case 9:t=Vi((M=(T=l)!=null?T:E)!=null?M:a,VUy);case 5:g.KY(Q,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(Q,6);break;case 4:throw q=f=g.Sa(Q),new ON("onesie.response.parse",{name:(L=q.name)!=null?L:"unknown",message:(VL=q.message)!=null?VL:"unknown",wasm:((A=N.bJ.K())==null?0:A.TN)?((Y=N.bJ.K())==null?0:(W=Y.TN)==null?0:W.x$)?"1js":"1":"0",enc:N.V,gz:N.bJ.enableCompression,webcrypto:!!Zk()});case 6:return r_L(t),au=g.eL(t.body),Q.return(au);case 2:g.KY(Q),g.Dj(Q,0)}})}()})}; GCH=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.vY){var H=p.queue;H.T.push({videoId:N.videoId,formatId:V,isEncrypted:!1});H.C||Qz(H)}}}; CTS=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")?t5(lt(p.Y(C,p.V),function(H){p3X(p.bJ,H)}),function(H){p.bJ.wx(H)}):p.j8(C,p.V).then(function(H){p3X(p.bJ,H)},function(H){p.bJ.wx(H)}); break;case 2:p.ZE("ormk");C=C.m8();p.queue.decrypt(C);break;default:N=!0}p.bJ.iF&&p.bJ.k_("ombup","id.11;pt."+p.S+";len."+V+(N?";ignored.1":""));p.S=null}; r_L=function(p){if(p.Qy!==1)throw new ON("onesie.response.badproxystatus",{st:p.Qy,webcrypto:!!Zk(),textencoder:!!g.xH.TextEncoder});if(p.Yi!==200)throw new ON("onesie.response.badstatus",{st:p.Yi});}; j8H=function(p){return new Promise(function(C){setTimeout(C,p)})}; VmY=function(p,C){var V=p.K();V=p.K1&&V.G("html5_onesie_preload_use_content_owner");var N=p.n2,H=Wb(C.yn.experiments,"debug_bandaid_hostname");if(H)C=LA(C,H);else if((V===void 0?0:V)&&(N==null?0:N.url)&&!C.C){var X=FP(new g.mw(N.url));C=LA(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}}; NSX=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(j8H(V)),g.y(X,Promise.race(N),2);H=VmY(p,C);return X.return(H)})}; HcY=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");Zk()||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.K1,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")))}; X3y=function(p,C,V,N,H){H=H===void 0?!1:H;var X="https://youtubei.googleapis.com/youtubei/"+C.dh.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=$9(JSON.stringify(p));return{url:X,j4:d,postBody:p,zse:H,hm:H}}; ic1=function(p,C,V,N,H,X){var d=g.aE(p,j31,p.hm?void 0:V.TN),a={encryptedClientKey:C.T.encryptedClientKey,J1:!0,b2:!0,WG:dlv(V,!!p.hm),CH:V.experiments.OY("html5_use_jsonformatter_to_parse_player_response")};if(p.hm)a.x5V=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.MI(p))||p;d=a.Cz=p;(0,g.Ip)();d=G1y(new ByQ(C.T.V),d,C.iv);a.PY=d;a.iv=C.iv}C=N.getVideoData(); V=pgu({I$:V,Ta:N,XZ:C.startSeconds*1E3});H={yd:a,uq:V,onesieUstreamerConfig:H,SE:X,Rp:U4(C)};C.reloadPlaybackParams&&(H.reloadPlaybackParams=C.reloadPlaybackParams);return H}; hWV=function(p,C,V){var N,H,X;return g.I(function(d){if(d.C==1)return N=g.aE(C,j31),g.y(d,ZTa(V,N),2);if(d.C!=3)return H=d.T,g.y(d,UhL(V,H),3);X=d.T;return d.return({Cz:H,encryptedClientKey:V.T.encryptedClientKey,iv:V.iv,PY:X,J1:!0,b2:!0,WG:dlv(p,!!C.hm),CH:p.experiments.OY("html5_use_jsonformatter_to_parse_player_response")})})}; s81=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,hWV(V,p,C),2);d=t.T;a=N.getVideoData();E=pgu({I$:V,Ta:N,XZ:a.startSeconds*1E3});l={yd:d,uq:E,onesieUstreamerConfig:H,SE:X,Rp:U4(a)};a.reloadPlaybackParams&&(l.reloadPlaybackParams=a.reloadPlaybackParams);return t.return(l)})}; dlv=function(p,C){p=Mn(p.schedule,!0);C=C||!!Zk()&&p>1572864;return"DecompressionStream"in window||!C}; Na=function(p,C){g.z.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.cI("onesie");this.iF=this.yn.Gk();this.Cy=this.yn.dR;this.I1=new uES(this.Cy.T,this.yn.iM);this.xhr=null;this.state=1;this.dn=new XO;this.Nj=!1;this.playerResponse="";this.Oh=new aA(this);this.pp=new Bbe(this);this.tM=this.yn.G("html5_onesie_check_timeout");this.P4=new g.N8(this.nu,500,this);this.rf=new g.N8(this.tq,1E4,this);this.Tx=new g.N8(function(){if(!V.isComplete()){var N= Vb(V);V.wx(new ON("net.timeout",N))}},g.Mz(this.yn.experiments,"html5_onesie_request_timeout_ms")); this.JN=new g.N8(this.Jk$,2E3,this);this.GE="";this.Ya=this.qj=!1;this.PE=this.Ta.WE();this.C2="";this.JK=this.G("html5_onesie_wait_for_media_availability");this.enableCompression=this.Ki=this.oC=!1;this.zn=[];this.Bm=this.Tp=-1;g.R(this.videoData,this);g.R(this,this.P4);g.R(this,this.rf);g.R(this,this.JN);p=Bb();gB&&p&&!this.yn.G("html5_disable_onesie_media_bytes")&&(this.TI=new Map);this.GJ=new Map;this.FJ=new Map;this.G8=new Map;this.Dy=new Map}; WZ=function(p,C){var V;return(V=p.TI)==null?void 0:V.get(C)}; Evu=function(p,C,V){var N;return g.I(function(H){if(H.C==1)return p.ZE("oprd_s"),aMa(p)?g.y(H,fgv(p.I1,C,V),3):(N=p.I1.decrypt(C,V),H.EY(2));H.C!=2&&(N=H.T);p.ZE("oprd_c");return H.return(N)})}; Q$H=function(p,C,V){p.ZE("oprd_s");var N=p.I1;N.C||(N.C=new J_H(N.T.T,N.TN));C=Dh9(N.C,C,V);p.ZE("oprd_c");return C}; lMa=function(p){return p.G("html5_onesie_host_probing")||p.iF?gB:!1}; p3X=function(p,C){p.ZE("oprr");p.playerResponse=C;p.Ki||(p.JK=!1);Hu(p)}; Hu=function(p){if(!p.playerResponse)return!1;if(p.oC)return!0;var C=p.videoData.G("html5_onesie_audio_only_playback")&&hl(p.videoData);if(p.TI&&p.JK){if(!p.TI.has(p.GE))return!1;var V=p.TI.get(p.GE),N;if(N=V){N=!1;for(var H=g.F(V.GB.keys()),X=H.next();!X.done;X=H.next())if(X=V.GB.get(X.value))for(var d=g.F(X.UG),a=d.next();!a.done;a=d.next())a.value.zf>0&&(X.UV?N=!0:C=!0);N=!(C&&N)}if(N)return!1}p.ZE("ofr");p.dn.resolve(p.playerResponse);if(!p.tM){var E;(E=p.Tx)==null||E.start();p.rf.start()}return p.oC= !0}; chQ=function(p){if(p.TI&&!p.G("html5_onesie_media_capabilities")){p.ZE("ogsf_s");var C=g$y(p.Ta.getVideoData(),function(N,H){p.k_(N,H)}),V=tmX(p.Ta); C.video=x6S(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)}}; aMa=function(p,C){return p.G("html5_onesie_sync_request_encryption")||(C==null?0:C.hm)||g.LI(p.yn)&&p.G("html5_embed_onesie_use_sync_encryption")?!1:!!Zk()}; Vb=function(p){if(!p.MZ)return{};var C=p.MZ.r9(),V;C.d=(V=p.MZ.Vn)==null?void 0:V.ax();C.shost=p.ZH;C.ty="o";return C}; TSS=function(p,C){var V,N;(N=(p=(V=p.TI)==null?void 0:V.get(C))==null)||(C=p.V?!1:p.V=!0,N=!C);return!N}; Mmu=function(p,C,V,N,H,X,d,a,E,l,t){g.z.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.R$=a;this.V=E;this.timing=l;this.J=t;this.T=[];this.Y={};this.vr=this.Ga=!1;this.vI=new Set;this.W=this.Wr=this.Z=this.BK=0;this.S=null;this.b_={xG:[],hd:[]};this.sY={xG:[],hd:[]};this.VZ={sn$:function(){return c.T}, RNa:function(){return c.Y}, J8n:function(){c.T.length=0}, jae:function(){return c.vI}, Qa_:function(){return c.Z}, eln:function(T){c.Z=T}, Y_V:function(T){c.W=T}}; this.videoData=this.Ta.getVideoData();this.policy.vz&&(this.Sa=new q4(this.nS,this.policy,this.n1),g.R(this,this.Sa))}; vvQ=function(p,C){C=C===void 0?!1:C;if(Jh1(p,C)){p.policy.D&&p.nS.k_("sabrcrq",{create:1});var V=new zG(0,p.hk.J,p);p.policy.eZ>0&&p.W++;C=mls(p,V,C);p.T.push(C);var N;(N=p.Sa)==null||Alv(N,p.hk.J)}}; SOH=function(p,C){var V=X9(p);if(p.policy.a8){var N=p.b_;var H=p.sY}else N=dX(p,p.audioTrack),H=dX(p,p.videoTrack);var X=[].concat(g.K(N.xG),g.K(H.xG)),d=[].concat(g.K(N.hd),g.K(H.hd)),a=p.nS.Fd(),E,l,t=p.Ta,c=p.hk,T=p.C,M=p.vI,J=p.policy,S=p.nS.uL,D=etH(p.nS)*1E3,Z=(E=p.Vn)==null?void 0:E.MD;E=(l=p.Vn)==null?void 0:l.Y0;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,hd:d,XZ:V,nextRequestPolicy:T,vI:M,wY:J,uL:S,Ry:D,MD:Z, Y0:E,BK:p.BK,isPrefetch:C||p.nS.isSuspended,o3:l,JH:f,Jv:a};V=p.nS.jE();X=Nn(V);V&&(C.Nm=X);if(V=p.Ta.Hj())C.mU=V*1E3;var A;V=p.V;X=V.a$;if((V.wY.C&&V.wY.J_||((A=V.wY)==null?0:A.T&&A.cV))&&!X)for(A=g.F(V.V),d=A.next();!d.done;d=A.next())if(d.value.K4){X=!0;break}A=yz(V.wY)&&!X?[]:G5e(V,V.V);C.XR=A;A=p.V;yz(A.wY)&&!A.b_?A=[]:(V=dhv(A),V.length===0&&(V=A.W),A=G5e(A,V));C.FR=A;p.policy.sL&&(A=p.audioTrack,A=p4(p.nS,A)*A.qo,C.Be=A,A=p.videoTrack,A=p4(p.nS,A)*A.qo,C.t_=A);if(p.policy.W){N=Fv9(p,N.xG,H.xG); var Y;if(H=(Y=p.S)==null?void 0:Y.fP(N))C.Um=H}p.policy.b_&&p.T.length>0&&p.T[0].LR()&&(C.Ug_=p.T[0].vF());return C}; X9=function(p){var C,V=p.policy.Y&&((C=p.nS)==null?void 0:C.Vw());C=p.nS.getCurrentTime()||0;C=Kv9(p,C);var N=p.nS.X0()||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)}; Kv9=function(p,C){if(p.nS.isSeeking())return C;var V=p.Ta.Sd();if(!V)return C;V=V.kq();if(V.length===0||sJ(V,C))return C;if(p.policy.l6&&!KJ9(p.videoTrack,C)&&!KJ9(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}; Fv9=function(p,C,V){var N=p.nS.getCurrentTime()||0;C=Dla(p,C,N);p=Dla(p,V,N);return Math.min(C,p)}; Dla=function(p,C,V){p=p.nS.X0()||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}; Jh1=function(p,C){if(p.policy.eZ>0){var V=Math.floor((0,g.Ip)()/1E4);if(V===p.Wr){if(p.W>=p.policy.eZ){if(p.W===p.policy.eZ){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.EM||C)||p.a$&&(0,g.Ip)()0&&(!p.policy.b_||p.T.length!==1||!p.T[0].LR()))return!1;var H;if((H=p.hk.J)==null||!F6(H,p.policy,p.Y,p.nS.Rj()))return!1;H=p.policy.Z1&&p.policy.C&&p.nS.B1();if(Dp(p.audioTrack)&& Dp(p.videoTrack)&&!H)return!1;if(p.policy.C&&p.D&&!p.nS.B1())return p.Wz("ssap",{pauseontlm:1}),!1;if(iF(p,p.audioTrack)&&iF(p,p.videoTrack))return p.policy.V&&p.nS.k_("sabrHeap",{a:""+JI(p.audioTrack),v:""+JI(p.videoTrack)}),!1;if(H=p.policy.W)H=!1,p.J.C===2?H=!0:p.J.C===3&&(X9(p),p.nS.X0(),C=Fv9(p,ifu(p.audioTrack,p.nS.isSeeking()).xG,ifu(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; p.policy.a8&&(p.b_=dX(p,p.audioTrack),p.sY=dX(p,p.videoTrack));if(!p.C)return p.policy.D&&p.nS.k_("sabrcrq",{nopolicy:1}),!0;if(p.Ta.Hj())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.Vw())return p.policy.D&&p.nS.k_("sabrcrq",{seekToHead:1}),!0;H=Math.min(p4(p.nS,p.audioTrack)*1E3,p.C.targetAudioReadaheadMs); C=Math.min(p4(p.nS,p.videoTrack)*1E3,p.C.targetVideoReadaheadMs);var X=Math.min(H,C);V=vZ(p.audioTrack,!0)*1E3;var d=vZ(p.videoTrack,!0)*1E3;if(p.policy.a8){var a=X9(p);var E=uBQ(p.b_.xG,a);a=uBQ(p.sY.xG,a)}else E=V,a=d;var l=EC||N>=0&&H.KM>N+1)break;V=Math.max(V,H.startTimeMs+H.durationMs);N=Math.max(N,H.Vo)}return Math.max(0,V-C)}; mls=function(p,C,V){var N={n1:p.n1,pT:function(E,l){p.Ta.R1(E,l)}, rP:p.policy.Ke,zV:p.policy.V};p.n1.C.Y&&(N.eS=(p.videoTrack.T.info.qo||0)+(p.audioTrack.T.info.qo||0));p.policy.F5&&(N.uc=p.audioTrack.T.index.Qe(),N.rP=!1);var H=Ejv(C,p.policy,p.Y)?2:1;H!==p.Z&&(p.Z=H,fMj(p));V=SOH(p,V);if((p.policy.C||p.policy.b_)&&p.policy.V&&V.vI){for(var X=H="",d=g.F(V.vI),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})}agH(C,V,p.nS.B1(),p.policy,p.Y)||!p.policy.C&&!p.policy.b_||p.nS.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);N=new kd(p.policy,C,p.hk,p.Y,p,N,p.nS.WE(),p.policy.Mn?p.nS.B1():void 0);xd(p.timing);p.policy.D&&p.nS.k_("sabrcrq",{rn:N.Em(),probe:C.jX()});return N}; aV=function(p,C){if(C.fS()||p.fS())p.policy.NR||(p.policy.Y?sZ(p.nS):p.nS.f7());else{if(p.policy.V&&C.isComplete()&&C instanceof kd){var V=p.nS,N=V.k_,H,X,d=Object.assign(C.MZ.r9(),{rst:C.state,strm:C.xhr.Qt(),d:(H=C.MZ.Vn)==null?void 0:H.ax(),cncl:C.xhr&&C.EZ.S?1:0,rqb:C.Ny,cwt:C.uw,swt:(X=C.F7)==null?void 0:X.RU});H=Object.assign(c_v(C.info),d);N.call(V,"rqs",H)}if(C.isComplete()&&C.jX()&&C instanceof kd)p.policy.MW?C.kf()?(C.dispose(),p.T.length===0?p.nS.f7():(p=p.T[0],p instanceof kd&&p.h6()&& p.X6(!1))):C.iT()&&p.nS.handleError(C.H6(),C.Qz()):(C.dispose(),p.nS.f7());else{if(C.Tr())C instanceof kd&&bIa(p.timing,C),fMj(p),OcV(p);else if(C.iT())V=p.Ta.Hj(),C instanceof kd&&tQQ(C.info)&&V&&p.nS.CT(V),C instanceof Na?p.T.pop():(V=1,C.canRetry()&&WJy(p.nS)&&(yhQ(p,C),V=0),p.nS.handleError(C.H6(),C.Qz(),V));else{if(p.nS.isSuspended&&!C.isComplete())return;OcV(p)}C.fS()||C instanceof Na||(C.isComplete()?V=xIv(C,p.policy,p.Y):(V=k5v(C,p.policy,p.Y),V===1&&(p.Ga=!0)),V!==0&&(N=new zG(1,C.info.sR), N.JX=V===2,mls(p,N)));p.policy.wy&&!C.isComplete()?gAs(p.nS):p.nS.f7()}}}; OcV=function(p){for(;p.T.length&&p.T[0].lm(p.ZQ());){var C=p.T.shift();qOs(p,C);if(p.policy.W){var V=p;if(!V.policy.UY&&C.lm(V.ZQ())){var N=C.Em();if(V.Y_!==N){var H=C.qe();C=H.Tp;var X=H.Bm;H=H.isDecorated;!V.S||X<0||(V.Y_=N,N=RA(V.J,X/1E3,C),X=V.nS.X0()||0,YeQ(V.J,C,N-X,H,V.S))}}}}p.T.length&&qOs(p,p.T[0])}; qOs=function(p,C){var V=new Set(C.Lv(p.ZQ()));V=g.F(V);for(var N=V.next();!N.done;N=V.next()){var H=N.value;if(!(N=!(C instanceof Na))){N=p.V;var X=N.hk.p4,d=xk(N.videoInfos,X);N=XkV(N,H,X)||d.includes(H)}if(N){N=C.XA(H,p.ZQ());if(Fwa(p.videoData)&&Nf(N[0].T.info.mimeType))break;if((!(p.policy.Qm&&N.length>0&&(N[0].T.info.UV()?vZ(p.audioTrack):vZ(p.videoTrack))>3)||C.isComplete())&&C.Y5(H,p.ZQ())){H=C.td(H,p.ZQ());if(p.policy.C&&(X=N[0].T.info,(d=p.nS.B1())&&X)){var a=C.h$();d.api.G("html5_ssap_set_format_info_on_video_data")&& a===KA(d)&&(X.UV()?d.Ta.getVideoData().S=X:d.Ta.getVideoData().C=X);if(d=EZ(d.timeline,a))if(d=d[0].getVideoData())X.UV()?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 Na&&p.nS.k_("omblss",{s:X.info.yZ()});d=X.info.T.info.UV();var E=X.info.T;if(d){a=void 0;var l=p.V,t=(a=C.Ez(p.ZQ()))==null?void 0:a.token;l.J=!1;E!==l.Y&&(l.Y=E,l.JT(E,l.audioTrack,t))}else a=void 0,BsY(p.V,E,(a=C.Ez(p.ZQ()))==null?void 0:a.token);a=d?p.audioTrack:p.videoTrack;C instanceof Na&&(a.D=!1,C instanceof Na&&(d?ZIv(p.timing):usy(p.timing)));if(p.policy.Hg)try{TG(a,N,X)}catch(c){X=qD(c),p.nS.handleError(X.errorCode,X.details,X.severity),a.gx(),p.Y8(!1,"pushSlice"),sZ(p.nS)}else TG(a,N,X)}}}}}; yhQ=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())}; IMH=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.vI.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.vF())&&V.type&&V.sendByDefault&&p.vI.add(V.type)}; ovY=function(p){p.policy.uJ&&(p.Vn=void 0,p.BK=0)}; kJs=function(p,C){if(C.iT()||C.fS()){var V=p.nS,N=V.k_,H=C.state;p=p.ZQ();var X,d;if((C=(X=C.TI)==null?void 0:X.get(p))==null)C=void 0;else{X=0;p=C.Lv();for(var a=0;a=p.policy.q2,d=!1;if(X){var a=0;!isNaN(C)&&C>p.W&&(a=C-p.W,p.W=C);a/H=p.policy.yv&&!p.V;if(!X&&!V&&nvH(p,C))return NaN;V&&(p.V=!0);a:{N=d;V=(0,g.Ip)()/1E3-(p.J7.lc()||0)-p.D.T-p.policy.xt;X=p.C.startTime;V=X+V;if(N){if(isNaN(C)){lF(p,NaN,"n",C);X=NaN;break a}N=C-p.policy.Fx;N=X.w7&&N<=X.zM){N=!0;break a}N=!1}N=!N}if(N)return p.k_("ostmf",{ct:p.getCurrentTime(),a:C.T.info.UV()}),!1;(p=p.b_)!=null&&(p.GB.get(V).WO=!0);return!0}; Wv1=function(p){if(!p.hk.p4)return!0;var C=p.Ta.getVideoData();if(C.G("html5_skip_live_preroll_onesie")&&p.Ta.Ct()||C.G("html5_skip_live_preroll_onesie_post_live")&&p.Ta.Ct()&&(C.EO||C.isPremiere))return p.k_("ombpa",{}),!1;var V,N;if(p.policy.xW&&!!((V=p.a$)==null?0:(N=V.zr)==null?0:N.nle)!==p.hk.EO)return p.k_("ombplmm",{}),!1;V=C.Hc||C.liveUtcStartSeconds||C.sO;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.Fs* 1E3?(p.k_("ombttl",{}),!1):p.hk.AE&&p.hk.S||!p.policy.T9&&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")&&ix(C)||C.G("html5_disable_onesie_media_for_ssdai")&&C.isDaiEnabled()&&C.enableServerStitchedDai?!1:!0}; Q89=function(p,C){var V=C.T,N=p.hk.p4;if(Wv1(p))if(p.b_&&p.b_.GB.has(S5(g.Cx(V.info,N)))){if(N=S5(g.Cx(V.info,N)),gvS(p,C)){var H=new oZ(p.b_.XA(N)),X=function(d){try{if(d.iT())p.handleError(d.H6(),d.Qz()),SX(C,d),xE(d.info)&&bQ(p.S,C,V,!0),p.f7();else if($IX(p.S,d)){var a;(a=p.V)==null||zgH(a,d.info,p.D);p.f7()}}catch(E){d=qD(E),p.handleError(d.errorCode,d.details,d.severity),p.gx()}}; V.V=!0;kE(H)&&(NsV(C,new Q7(p.policy,N,H,p.b_,X)),xd(p.timing))}}else p.k_("ombfmt",{})}; TK=function(p,C){C=C||p.videoTrack&&p.videoTrack.C&&p.videoTrack.C.startTime||p.getCurrentTime();var V=AI,N=p.videoTrack,H=p.T;C=H.nextVideo&&H.nextVideo.index.Qx(C)||0;H.Vn!==C&&(H.Wr={},H.Vn=C,QN(H,H.T));C=!H.T.isLocked()&&H.Z>-1&&(0,g.Ip)()-H.ZC.T&&C.reason==="b";N||H||V?(p.Ta.qX({reattachOnConstraint:N?"u":H?"drm":"perf",lo:C.C,up:C.T}),p.policy.DS||(p.C.T.C=!1)):(p.policy.DS&&(p.C.T.C=!1),sZ(p))}}else if(!GMY(p.T,C)&&p.videoTrack){p.logger.debug(function(){return"Setting constraint: r="+C.reason+" u="+C.T}); V=p.T.T;Ndy(p,Csu(p.T,C));TK(p);N=C.isLocked()&&C.reason==="m"&&p.T.b_;H=p.policy.Kx&&C.reason==="l"&&uQ(p.videoTrack);V=V.T>C.T&&C.reason==="b";var X=p.T.l_&&!rN();N||H||V||X?p.Ta.qX({reattachOnConstraint:N?"u":H?"drm":X?"codec":"perf"}):sZ(p)}}; XIv=function(p,C,V){if((!p.Hr||pV(p.Hr)&&!p.policy.WP)&&!p.tp.isSeeking()&&(p.policy.T||uQ(C)&&C.T.Vf()&&p.T.a$)){var N=p.getCurrentTime()+Y9y(p.Z,C,V);p.logger.debug(function(){return"Clearing back to "+N.toFixed(3)}); l6u(C,N)}}; Ndy=function(p,C){C&&(p.logger.debug(function(){return"Logging new format: "+Xz(C.video.info)}),dxs(p.Ta,new PI(C.video,C.reason))); if(p.T.Y_){var V=Hku(p.T,"a");p.Ta.Q2(new PI(V.audio,V.reason))}}; sZ=function(p){g.HF(p.bx)}; gAs=function(p){p.policy.wy&&p.policy.ZI&&Math.min(EAu(p.videoTrack),EAu(p.audioTrack))*1E3>p.policy.yH?g.HF(p.Wc):p.f7()}; i4a=function(p,C){var V=(0,g.Ip)()-C,N=vZ(p.audioTrack,!0)*1E3,H=vZ(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()}),Op(p.policy))){var X=P3(p.Z);p.k_("sdps",{ct:C,ah:N.toFixed(),vh:H.toFixed(),mr:wS(p.Z,p.KV,X),bw:X.toFixed(),js:p.isSeeking(),re:+p.KV,ps:(p.policy.rg||"").toString(),rn:(p.policy.s2||"").toString()})}}; hbL=function(p){if(p.policy.C&&Up(p.videoTrack)&&Up(p.audioTrack))return"ssap";if(FJS(p.videoTrack))return p.logger.debug("Pausing appends for server-selectable format"),"ssf";if(p.policy.Y_&&uxu(p.videoTrack)&&uxu(p.audioTrack))return"updateEnd";if(Dp(p.audioTrack)||Dp(p.videoTrack)&&p.videoTrack.T.info.o$!=="f")return"";if(p.tp.isSeeking()){var C=p.Z;var V=p.videoTrack;var N=p.audioTrack;if(C.policy.T){var H=C.policy.wh;Op(C.policy)&&(H=wS(C,!1,P3(C)));C=H;V=vZ(N,!0)>=C&&vZ(V,!0)>=C}else V.V.length|| N.V.length?(H=V.T.info.qo+N.T.info.qo,H=10*(1-P3(C)/H),C=Math.max(H,C.policy.wh),V=vZ(N,!0)>=C&&vZ(V,!0)>=C):V=!0;if(!V)return"abr";V=p.videoTrack;if(V.V.length>0&&V.S.C.length===1&&ke9(V.S).info.Y360);N=Op(p.policy)&&p.policy.GR;if(!p.KV||!N&&V)return"";V=p.policy.QV;Op(p.policy)&&(V=wS(p.Z,p.KV,P3(p.Z)));V=MKL(p.videoTrack, p.getCurrentTime(),V)||MKL(p.audioTrack,p.getCurrentTime(),V);return Op(p.policy)?V?"mbnm":"":(p.videoTrack.V.length>0||p.audioTrack.V.length>0||YWu(p.S,p.videoTrack,p.audioTrack)||YWu(p.S,p.audioTrack,p.videoTrack))&&V?"nord":""}; sAj=function(p){if(p.Y){var C=p.Y.f7(p.audioTrack,EJ(p.Hr.C.l9()));C&&p.Ta.seekTo(C,{wO:!0,L1:"pollSubsegmentReadahead",PP:!0})}}; Mfs=function(p,C,V){if(p.policy.Y_&&uxu(C))return!1;if(V.Ci())return!0;if(!V.Fm())return!1;var N=HI(C);if(!N||N.info.type===6)return!1;var H=p.policy.tY;if(H&&!N.info.S){var X=N.info.w7-p.getCurrentTime();if(N.info.YX)return p.policy.T&&lX1(p,C),p.policy.F_&&BzQ(C.S,X,!1),!1;tfs(p,C);var a;p.policy.iW&&V===((a=p.Hr)==null?void 0:a.T)&&p.l_&&(V.xa()===0?(p.l_=!1,p.policy.iW=!1):p.UY=V.xa());if(!ctv(p,V,N,C))return!1;p.policy.Y_&&N.info.v$()?(p.Ta.K().Gk()&&p.k_("eosl",{ls:N.info.yZ()}), N.isLocked=!0):(C.ez(N),NPH(p.T,N.info),p.logger.debug(function(){return"Appended "+N.info.yZ()+", buffered: "+iX(V.l9())})); H&&TdL(p,N.info.T.ma);return!0}; lX1=function(p,C){C===p.videoTrack?p.vr=p.vr||(0,g.Ip)():p.Sa=p.Sa||(0,g.Ip)()}; tfs=function(p,C){C===p.videoTrack?p.vr=0:p.Sa=0}; ctv=function(p,C,V,N){var H=p.policy.Mo?(0,g.Ip)():0,X=V.W&&V.info.T.T||void 0,d=V.T;V.W&&(d=JtL(p,V,d)||d);var a=d.m8();d=p.policy.Mo?(0,g.Ip)():0;C=mxL(p,C,a,V.info,X);(N=N.Z)!=null&&(X=V.info,H=d-H,d=(0,g.Ip)()-d,!N.C||gLv(N.C,X)&&N.C.LS===X.LS||N.flush(),N.S+=H,N.V+=d,H=1,!N.C&&X.C&&(H=2),CA(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.F$=!1),p.Mo= 0,!0;if(C===2||C===5)return vdV(p,"checked",C,V.info),!1;if(C===1){if(!p.Ga)return p.logger.debug("QuotaExceeded, retrying."),p.Ga=!0,!1;if(!p.F$)return p.F$=!0,p.Ta.seekTo(p.getCurrentTime(),{L1:"quotaExceeded",PP:!0}),!1;V.info.OV()?(H=p.policy,H.Ga=Math.floor(H.Ga*.8),H.Vn=Math.floor(H.Vn*.8)):(H=p.policy,H.F$=Math.floor(H.F$*.8),H.Vn=Math.floor(H.Vn*.8));p.policy.T?$d(p.C.T,V.info.T,!1):BI(p.T,V.info.T)}p.Ta.qX({reattachOnAppend:C});return!1}; JtL=function(p,C,V){var N;if(N=p.policy.ju&&p.Hr&&!p.Hr.J&&!p.Ta.i5())C=C.info.T.info,N=C.qt()&&gO(C)&&C.video&&C.video.width<3840&&C.video.width>C.video.height;if(N&&(p.Hr.J=!0,or('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return V=bkQ(V),p.policy.V&&p.k_("sp4k",{s:!!V}),V}; vdV=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||L4(p.C.T).size>0||$d(p.C.T,N.T,!1):!N.T.info.video||L4(p.T.W).size>0||BI(p.T,N.T)):V===2&&(p.Mo<15?(p.Mo++,H="html5.invalidstate",X=0):H="fmt.unplayable");N=bw(N);var d;N.mrs=(d=p.Hr)==null?void 0:Nr(d);N.origin=C;N.reason=V;p.handleError(H,N,X)}; p_1=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=Nf(X.T[l].info.mimeType)||X.T[l].info.OV();if(N===t)if(t=X.T[l].index,t.R9(C.LS)){a=t;var c=C,T=a.iX(c.LS);T&&T.startTime!==c.startTime?(a.segments=[],a.ip(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.ip(C),a=!0))}else t.ip(C),a=!0}E>=0&&(d={},X.publish("clienttemp","resetMflIndex",(d[N? "v":"a"]=E,d),!1));X=a;j5s(p.tp,C,N,X);p.V.d5(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.tp.isSeeking()&&p.tp.T 5)return p.Vn=0,p.Ta.qX({initSegStuck:1,as:N.info.yZ()}),!0}else p.Vn=0,p.Hc=N;p.policy.M2&&(V.abort(),(d=C.Z)!=null&&(CA(d,4),d.flush()));H=mxL(p,V,X,E,H);var l;(l=C.Z)==null||twX(l,H,E);if(H!==0)return FBa(p,H,N),!0;N.info.OV()?OIL(p.timing):yRj(p.timing);p.logger.debug(function(){return"Appended init for "+N.info.T.info.id}); TdL(p,N.info.T.ma);return V.L$()}; aXu=function(p,C,V){if(C.fg()==null){p=cZ(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=HI(E);p.fS()||t==null||!t.isLocked?p.Ta.K().Gk()&&p.k_("eosl",{delayA:t==null?void 0:t.info.yZ()}):S4u(E)?(p.Ta.K().Gk()&&p.k_("eosl",{dunlock:t==null?void 0:t.info.yZ()}),KBX(p, E===p.audioTrack)):(p.k_("nue",{ls:t.info.yZ()}),t.info.J+=1,p.Hr&&p.oW())},1E4,p); p.Ta.K().Gk()&&p.k_("eosl",{delayS:N.yZ()});E.Wr.start()}if(p.policy.g2&&(N==null?0:N.v$())){var l;if((l=E.Vn)==null?0:l.isActive())g.XV(E.Vn),p.k_("sbac",{as:N.yZ()});E.Vn=new g.N8(function(){p.k_("sbum5s",{as:N.yZ()})},5E3,p); E.Vn.start()}p.policy.CA&&(N==null?void 0:N.T)instanceof zn&&N.v$()&&p.k_("poseos",{itag:N.T.info.itag,seg:N.LS,lseg:N.T.index.er(),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:iX(C.l9()).replace(/,/g,"_"),vheap:JI(p.videoTrack),aheap:JI(p.audioTrack),message:g.vy(t.message,3),track:p.Hr?C===p.Hr.C?"v": "a":"u"},w3s()),p.handleError("player.exception",C),1;g.nm(t)}return 4}return p.Hr.Jp()?3:0}; Nx=function(p,C,V){p.Ta.seekTo(C,V)}; TdL=function(p,C){C&&p.Ta.mj(new X0(C.key,C.type))}; hI=function(p,C){p.Ta.oR(C)}; p4=function(p,C){if(p.Ga&&!p.KV)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.F$:p.policy.Ga)/(C.qo*p.policy.y6);if(p.policy.ND>0&&p.Hr&&pV(p.Hr)&&(C=C.T.info.video?p.Hr.C:p.Hr.T)&&!C.L$()){C=C.l9();var N=hj(C,p.getCurrentTime());N>=0&&(C=p.getCurrentTime()-C.start(N),V+=Math.max(0,Math.min(C-p.policy.ND,p.policy.Kj)))}p.policy.Vn>0&&(V=Math.min(V,p.policy.Vn));return V}; uMv=function(p){p.Y_&&!p.isSuspended&&JR(p.schedule)&&(Dxy(p,p.Y_),p.Y_="")}; Dxy=function(p,C){zJ(C,"cms",function(V){p.policy.V&&p.k_("pathprobe",V)},function(V){p.Ta.handleError(V)})}; Z49=function(p,C){if(p.Hr&&p.Hr.S&&!p.Hr.Jp()&&(C.qD=vZ(p.videoTrack),C.C=vZ(p.audioTrack),p.policy.V)){var V=JI(p.videoTrack),N=JI(p.audioTrack),H=iX(p.Hr.C.l9(),"_",5),X=iX(p.Hr.T.l9(),"_",5);Object.assign(C.T,{lvq:V,laq:N,lvb:H,lab:X})}C.bandwidthEstimate=nc(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 fR(C.T)})}; UxL=function(p,C){p.D=C;p.V&&(p.V.Y=C);p.D.eJ(p.videoTrack.T.info.qt());p.S.C=p.D;p.policy.W&&(p.J.S=p.D)}; fXH=function(p,C){if(p.Hr&&p.Hr.C){if(p.policy.jm){var V=f6e(p.audioTrack);if(V&&V.UV()){var N=p.Ta;N.hw&&(N.hw.T=V,N.Pc(N.hw.videoId).hv(N.hw))}}p.policy.XE&&(V=f6e(p.videoTrack))&&V.OV()&&(N=p.Ta,N.O7&&(N.O7.T=V,N.Pc(N.O7.videoId).BC(N.O7)));C-=isNaN(p.timestampOffset)?0:p.timestampOffset;p.getCurrentTime()!==C&&p.resume();p.tp.isSeeking()&&p.Hr&&!p.Hr.Jp()&&(V=p.getCurrentTime()<=C&&C=C&&$lL(p,N.startTime,!1)}); return V&&V.startTimep.getCurrentTime())return V.start/1E3;return Infinity}; IXj=function(p){var C=cZ(p.videoTrack),V=cZ(p.audioTrack);return C&&!UIv(p.videoTrack)?C.startTime:V&&!UIv(p.audioTrack)?V.startTime:NaN}; Ulu=function(p){if(p.Ta.getVideoData().isLivePlayback)return!1;var C=p.Ta.Sd();if(!C)return!1;C=C.getDuration();return Zc1(p,C)}; Zc1=function(p,C){if(!p.Hr||!p.Hr.T||!p.Hr.C)return!1;var V=p.getCurrentTime(),N=p.Hr.T.l9();p=p.Hr.C.l9();N=N?a7(N,V):V;V=p?a7(p,V):V;V=Math.min(N,V);return isNaN(V)?!1:V>=C-.01}; FBa=function(p,C,V){p.policy.PX&&id(p.Ta.getVideoData())?(p.Ta.rA()||vdV(p,"sepInit",C,V.info),b4Y(p.Ta,"sie")):vdV(p,"sepInit",C,V.info)}; WJy=function(p){return p.Ta.Rj()0){var H=N.T.shift();odv(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)}; odv=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)}; kXv=function(){var p={};var C=p.url;var V=p.interval;p=p.retries;this.url=C;this.interval=V;this.retries=p}; xxL=function(p,C){this.statusCode=p;this.message=C;this.C=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null}; Y4u=function(p,C,V){V=V===void 0?"":V;g.z.call(this);this.message=p;this.requestNumber=C;this.Dd=V;this.onError=this.onSuccess=null;this.T=new g.A2(5E3,2E4,.2)}; zb1=function(p,C,V){p.onSuccess=C;p.onError=V}; ndX=function(p,C,V,N){var H={timeout:3E4,onSuccess:function(X){if(!p.fS()){jL("drm_net_r",void 0,p.Dd);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 xxL(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=Rb9[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.Tj="Bearer "+N);g.ah(V,"player/get_drm_license",C,H)}; eb1=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=pN(this.baseUrl,"ek")||"";if(C=pN(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(C);this.Sa=this.videoData.G("html5_use_drm_retry");this.Vn=V.qt?[g.mq(V.initData,4)]:V.V;Ku(this,{sessioninit:V.cryptoPeriodIndex});this.status="in"}; LBa=function(p,C){Ku(p,{createkeysession:1});p.status="gr";jL("drm_gk_s",void 0,p.videoData.R$);p.url=P2Y(p);try{p.V=C.createSession(p.Z,function(V){Ku(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&&(wIj(p.V,function(V,N){$xe(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()||(Ku(p,{onkyadd:1}),p.D||(p.publish("sessionready"),p.D=!0))},function(V){p.Lt(V)}),g.R(p,p.V))}; P2Y=function(p){var C=p.baseUrl;Hmy(C)||p.error("drm.net",2,"t.x");if(!pN(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=oeY(C,N,p.W[N]);return C}; $xe=function(p,C,V){if(!p.fS())if(C){Ku(p,{onkmtyp:V});p.status="km";switch(V){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":gdY(p,C);return;default:p.publish("ctmp","message_type",{t:V,l:C.byteLength})}p.b_||(jL("drm_gk_f",void 0,p.videoData.R$),p.b_=!0,p.publish("newsession",p));if(q6(p.C)&&(C=WBL(C),!C))return;C=new Y4u(C,++p.requestNumber,p.videoData.R$);zb1(C,function(N){QAa(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");Ku(p,{onlcsrqerr:H,info:X});p.error(H,d,X);p.shouldRetry(yu(d),N)&&rta(p,N)}}); g.R(p,C);BdY(p,C)}else p.error("drm.unavailable",1,"km.empty")}; gdY=function(p,C){Ku(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.BX("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(J5(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))}}),J5(function(N){p.fS()||p.error("drm.provision",1,"e."+N.errorCode+ ";c."+(N.xhr&&N.xhr.status))}))}}; Dn=function(p){var C;if(C=p.a$&&p.V!=null)p=p.V,C=!(!p.T||!p.T.keyStatuses);return C}; BdY=function(p,C){p.status="km";jL("drm_net_s",void 0,p.videoData.R$);var V=new g.sI(p.yn.dh),N={context:g.Zh(V.config_||g.uR())};N.drmSystem=GXa[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.F$&&(N.context.user.kidsParent={oauthToken:p.videoData.F$});g.o5(p.C)&&(N.fairplayKeyId=g.mq(zXe(p.fairplayKeyId)));g.pk(p.yn,g.XE(p.videoData)).then(function(a){ndX(C,N,V,a);p.status="rs"})}else p.error("drm.net",2,"t.r;ic.0")}; QAa=function(p,C){if(!p.fS())if(Ku(p,{onlcsrsp:1}),p.status="rr",C.statusCode!==0)p.error("drm.auth",1,"t.f;c."+C.statusCode,C.errorMessage||void 0);else{jL("drm_kr_s",void 0,p.videoData.R$);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.EG||p.publish("newlicense", new kXv),p.videoData.EG=!0,p.J=xo(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=U_(C.T,function(N){return{type:N,status:"unknown"}})); bo(p.C)&&(C.message=xe1(g.mq(C.message)));p.V&&(Ku(p,{updtks:1}),p.status="ku",p.V.update(C.message).then(function(){jL("drm_kr_f",void 0,p.videoData.R$);Dn(p)||(Ku(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",pZS(p.S));C.sabrLicenseConstraint&&p.publish("sabrlicenseconstraint",C.sabrLicenseConstraint)}}; rta=function(p,C){var V=C.T.getValue();V=new g.N8(function(){BdY(p,C)},V); g.R(p,V);V.start();g.oN(C.T);Ku(p,{rtyrq:1})}; CQu=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)}; jBQ=function(p){var C={};C[p.status]=Dn(p)?CQu(p,"."):p.S.join(".");return C}; VXH=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}; NZQ=function(p,C){for(var V in p.T)if(p.T[V].status==="usable"&&p.T[V].type===C)return!0;return!1}; HAY=function(p,C){for(var V in p.T)if(p.T[V].type===C)return p.T[V].status}; Ku=function(p,C){var V=V===void 0?!1:V;fR(C);(V||p.yn.Gk())&&p.publish("ctmp","drmlog",C)}; XZ9=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}; pZS=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"}; WBL=function(p){for(var C="",V=0;V'.charCodeAt(N);p=p.V.createSession("video/mp4",C,V);return new uF(null,null,null,null,p)}; EkY=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}; haS=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.F_,V=V.JI,V>=p&&(V=p*.75),C=(p-V)*.5,V=new F9(C,p,p-C-V,this)):V=null;break a;case "widevine":V=new SP(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.jV,this),this.W.subscribe("log_qoe",this.I5,this);x$(this.yn.experiments);this.I5({cks:this.T.getInfo()})}; tXa=function(p){var C=p.S.rq();C?C.then(J5(function(){TZL(p)}),J5(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.I5({mdkrdy:1}),p.Z=!0); p.a$&&(C=p.a$.rq())}; JIV=function(p,C,V){p.Ga=!0;V=new X0(C,V);p.yn.G("html5_eme_loader_sync")&&(p.Y.get(C)||p.Y.set(C,V));MXy(p,V)}; MXy=function(p,C){if(!p.fS()){p.I5({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.I5({initd:C.initData.length,ct:C.contentType});if(p.T.flavor==="widevine")if(p.Sa&&!p.videoData.isLivePlayback)fu(p);else{if(!(p.yn.G("vp9_drm_live")&&p.videoData.isLivePlayback&&C.qt)){p.Sa=!0;V=C.cryptoPeriodIndex;var N=C.T;UFe(C);C.qt||(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.jV(C)}}; TZL=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(J5(function(V){p.yn.Gk()&&p.publish("ctmp","ssc",{success:V})}),J5(function(V){p.publish("ctmp","ssce",{n:V.name, m:V.message})})).then(J5(function(){m4v(p)})):m4v(p)}else m4v(p)}; m4v=function(p){p.fS()||(p.Z=!0,p.I5({onmdkrdy:1}),fu(p))}; vkS=function(p){return p.T.flavor==="widevine"&&p.videoData.G("html5_drm_cpi_license_key")}; fu=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=vkS(p)?fbS(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);UFe(C);break}}p.V.length&&p.createSession(p.V[0])}}; FN9=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.eL(C),p.publish("ctmp","drm",{metrics:C}))}; SpL=function(){var p=wpj();return!(!p||p==="visible")}; D4Q=function(p){var C=KNY();C&&document.addEventListener(C,p,!1)}; u0Y=function(p){var C=KNY();C&&document.removeEventListener(C,p,!1)}; KNY=function(){if(document.visibilityState)var p="visibilitychange";else{if(!document[m_+"VisibilityState"])return"";p=m_+"visibilitychange"}return p}; ZAe=function(p){g.z.call(this);var C=this;this.Ta=p;this.L8=0;this.Y=this.C=this.W=!1;this.S=0;this.I$=this.Ta.K();this.videoData=this.Ta.getVideoData();this.V=g.Mz(this.I$.experiments,"html5_delayed_retry_count");this.T=new g.N8(function(){C.Ta.gI()},g.Mz(this.I$.experiments,"html5_delayed_retry_delay_ms")); g.R(this,this.T)}; qpu=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")&&b4Y(p.Ta,"pe");if((C==="progressive.net.retryexhausted"||C==="fmt.unplayable"||C==="fmt.decode")&&!p.Ta.Y9.W&&N&&N.itag==="22")return p.Ta.Y9.W=!0,p.DE("qoe.restart",{reason:"fmt.unplayable.22"}),p.Ta.Mc(),!0;var X=!1;if(p.videoData.isExternallyHostedPodcast){if(X=p.videoData.xI)V.mimeType=X.type,p.k_("3pp",{url:X.url});V.ns="3pp";p.Ta.Ng(C,1,"VIDEO_UNAVAILABLE",fR((new ON(C, V,1)).details));return!0}var d=p.L8+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.DE("auth",V),!0;d||OZ(p.Ta.jU())||(V.nonfg="paused",d=!0,p.Ta.pauseVideo());(C==="fmt.decode"||C==="fmt.unplayable")&&(H==null?0:rO(H)||BB(H))&&(AM9(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:Qu(N))||(N==null?0:gO(N)))&&(AM9(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&&OZ(p.Ta.jU())){if(V.cid!==V.ccid)return V.ignerr="1",p.DE("ssap.transitionfailure",V),!0;p.DE("ssap.transitionfailure",V);if(U49(p.Ta,C))return!0}if(!d)return fpQ(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&&OZ(p.Ta.jU())&&(p.DE("ssap.transitionfailure",V),U49(p.Ta, C)))return!0;d=!1;p.W?p.L8=(0,g.Ip)():d=p.W=!0;var a=p.videoData;if(a.UY){a=a.UY.R4();var E=Date.now()/1E3+1800;a=a6048E5&&okH(p,"signature");return!1}; okH=function(p,C){try{window.location.reload(),p.DE("qoe.restart",{detail:"pr."+C})}catch(V){}}; x4L=function(p,C){C=C===void 0?"fmt.noneavailable":C;var V=p.I$.W;V.Y=!1;pI(V);p.DE("qoe.restart",{e:C,detail:"hdr"});p.Ta.gI(!0)}; YpS=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}; zaQ=function(p,C,V){this.yn=p;this.AM=C;this.Ta=V;this.J=this.Y=this.T=this.S=this.D=this.C=0;this.W=!1;this.Z=g.Mz(this.yn.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.V=new Map}; nk1=function(p,C,V){!p.yn.G("html5_tv_ignore_capable_constraint")&&g.qz(p.yn)&&(V=V.compose(Ray(p,C)));return V}; PQ1=function(p,C){var V,N=eaa(p,(V=C.T)==null?void 0:V.videoInfos);V=p.Ta.getPlaybackRate();return V>1&&N?(p=fdV(p.yn.W,C.T.videoInfos,V),new pw(0,p,!0,"o")):new pw(0,0,!1,"o")}; eaa=function(p,C){return C&&g.qz(p.yn)?C.some(function(V){return V.video.fps>32}):!1}; wZu=function(p,C){var V=p.Ta.gM();p.G("html5_use_video_quality_cap_for_ustreamer_constraint")&&V&&V.HH>0&&VS(C.videoData.bv)&&(p=V.HH,C.videoData.bv=new pw(0,p,!1,"u"));return C.videoData.bv}; Ray=function(p,C){if(g.qz(p.yn)&&Mi(p.yn.W,Je.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.Sg(window.screen.width,window.screen.height):null);H||(H=p.yn.Ti?p.yn.Ti.clone():p.AM.j5());(CK||pA||N)&&H.scale(g.Pg());N=H;hl(C.videoData)||h_(C.videoData);C=C.T.videoInfos;if(C.length){H=g.Mz(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.Mz(p.yn.experiments,"html5_viewport_undersend_maximum");for(X=0;X0&&(V=Math.min(V,N));if(N=g.Mz(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.Mz(p.yn.experiments,"html5_live_quality_cap"))&&C.videoData.isLivePlayback&&(V=Math.min(V,N));V=LNu(p,C,V);p=g.Mz(p.yn.experiments,"html5_byterate_soft_cap");return new pw(0,V===4320?0:V,!1,"d",p)}; WNa=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,myX(H),4);case 4:N=V.next(),X.EY(3)}})}; rIj=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;QB1(p,C.videoData.C);return!0}; GG9=function(p,C,V,N){if(!C||!V||!C.videoData.C)return!1;var H=g.Mz(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.qz(p.yn))return!1;p.T=(E>60?a/E:0)>H?p.T+1:0;if(p.T!==3)return!1;QB1(p,C.videoData.C);p.Ta.k_("dfd",Object.assign({dr:V.droppedVideoFrames,de:V.totalVideoFrames},BZe()));return!0}; QB1=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(!yb.has(C)&&Y1().includes(C)){var d=V;V=x1();+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(yb.has(C)||X==null){a:{d=d===void 0?!0:d;N=Y1().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 yb.add(C), X==null||X.set(C,V);p.Ta.xQ()}; qa=function(p,C){if(!C.T.T)return p.W?new pw(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())Qu(X.value)?V=!0:N=!0;V=V&&N;N=0;H=g.Mz(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||!Qu(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 pw(0,N,!1,"b")}; puL=function(p,C){var V=p.Ta.jU();return V.isInline()&&!C.s2?new pw(0,480,!1,"v"):V.isBackground()&&bV()/1E3>60&&!g.qz(p.yn)?new pw(0,360,!1,"v"):xB}; CFv=function(p,C,V){if(p.yn.experiments.OY("html5_disable_client_autonav_cap_for_onesie")&&C.fetchType==="onesie"||g.qz(p.yn)&&(oH(-1)>=1080||C.osid))return xB;var N=g.Mz(p.yn.experiments,"html5_autonav_quality_cap"),H=g.Mz(p.yn.experiments,"html5_autonav_cap_idle_secs");return N&&C.isAutonav&&bV()/1E3>H?(V&&(N=LNu(p,V,N)),new pw(0,N,!1,"e")):xB}; LNu=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.bF(p.provider),p.delay.start()))}; NXe=function(p){if(!(p.C<0)){var C=g.bF(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)}}; HuV=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"}}; XuL=function(p){return window.PressureObserver&&new window.PressureObserver(p)}; daY=function(p){p=p===void 0?XuL:p;g.z.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})}; iuV=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}; hwS=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)})}; ans=function(p,C){C?sVv.test(p):(p=g.sk(p),Object.keys(p).includes("cpn"))}; lnY=function(p,C,V,N,H,X,d){var a={format:"RAW"},E={};if(l1(p)&&tw()){if(d){var l;((l=EbH.uaChPolyfill)==null?void 0:l.state.type)!==2?d=null:(d=EbH.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.o5&&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")&&sVv.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}; tPa=function(p,C,V,N,H,X,d,a){tw()&&V.token&&(p=aK(p,{ctt:V.token,cttype:V.nm,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={}:ans(p,N.G("html5_assert_cpn_with_regex")),d?iV().sendAndWrite(p,C):iV().sendThenWrite(p,C,a)):C?(ans(p,N.G("html5_assert_cpn_with_regex")),N.G("net_pings_use_fetch")?cTH(p,C):g.qU(p,C)):g.BC(p,H)}; c6v=function(p){for(var C=[],V=0;V500&&V.k_("vmlock",{diff:X.toFixed()});V.Wr=H},250)); p.Ta.B1()&&C&&(this.Vn=C-Math.round(g.bF(p)*1E3));this.provider.videoData.yr&&(this.remoteControlMode=maa[this.provider.videoData.yr]||0);this.provider.videoData.tX&&(C=zqS(this.provider.videoData.tX),C==null?0:C.length)&&(this.remoteConnectedDevices=C);if(p.yn.Gk()||p.G("html5_log_cpu_info"))this.l_=new daY,g.R(this,this.l_)}; g.kb=function(p,C,V,N){var H=p.T[V];H||(H=[],p.T[V]=H);H.push(C.toFixed(3)+":"+N.join(":"))}; vbQ=function(p,C){var V=p.adCpn||p.provider.videoData.clientPlaybackNonce,N=p.provider.getCurrentTime(V);g.kb(p,C,"cmt",[N.toFixed(3)]);N=p.provider.DQ(V);if(p.S&&N*1E3>p.S.cQ+100&&p.S){var H=p.S;V=H.isAd;N=N*1E3-H.cQ;p.i7=C*1E3-H.olY-N-H.esn;H=(0,g.Ip)()-N;C=p.i7;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;NR(X,d);g.V3({targetVideoId:N.videoId,targetCpn:N.clientPlaybackNonce}, X);jL("pbs",H,X)}else H=p.provider.Ta.e5(),H.Y!==N.clientPlaybackNonce?(H.W=N.clientPlaybackNonce,H.C=C):N.fq()||g.eG(new g.Bw("CSI timing logged before gllat",{cpn:N.clientPlaybackNonce}));p.k_("gllat",{l:p.i7.toFixed(),prev_ad:+V});delete p.S}}; Yb=function(p,C){C=C===void 0?NaN:C;C=C>=0?C:g.bF(p.provider);var V=p.provider.Ta.OS(),N=V.DO-(p.Ga||0);N>0&&g.kb(p,C,"bwm",[N,(V.dW-(p.wy||0)).toFixed(3)]);isNaN(p.Ga)&&V.DO&&p.isOffline&&p.Bd(!1);p.Ga=V.DO;p.wy=V.dW;isNaN(V.bandwidthEstimate)||g.kb(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=w3s(),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.l_)==null?void 0:iuV(H))&&Object.values(N).some(function(X){return X!=null})&&p.k_("cpuinfo",N)}p.b_&&g.kb(p,C,"bat",[p.b_.level, p.b_.charging?"1":"0"]);H=p.provider.Ta.getVisibilityState();p.uJ!==H&&(g.kb(p,C,"vis",[H]),p.uJ=H);vbQ(p,C);(H=Fse(p.provider))&&H!==p.Q$&&(g.kb(p,C,"conn",[H]),p.Q$=H);SZS(p,C,V)}; SZS=function(p,C,V){if(!isNaN(V.qD)){var N=V.qD;V.C96E3&&(new g.N8(p.reportStats,0,p)).start()}; u9a=function(p){p.provider.videoData.K1&&zK(p,"prefetch");p.provider.videoData.wy&&p.k_("reload",{r:p.provider.videoData.reloadReason,ct:p.provider.videoData.wy});p.provider.videoData.Mo&&zK(p,"monitor");p.provider.videoData.isLivePlayback&&zK(p,"live");gB&&zK(p,"streaming");p.provider.videoData.yr&&p.k_("ctrl",{mode:p.provider.videoData.yr},!0);if(p.provider.videoData.tX){var C=p.provider.videoData.tX.replace(/,/g,"_");p.k_("ytp",{type:C},!0)}p.provider.videoData.bV&&(C=p.provider.videoData.bV.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.$A(V)||g.QB(V)||g.rs(V);(C||V)&&(C=(0,g.RV)())&&(p.T.gpu=[C]);h_(p.provider.videoData)&&g.kb(p,g.bF(p.provider),"dt",["1"]);p.provider.yn.Gk()&&(C=(0,g.Ip)()-p.provider.yn.H1,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)}; Uae=function(p,C,V){var N=g.bF(p.provider);ZuY(p,N,C,0,V);Yb(p,N);Da1(p)}; ZuY=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)&&fnL(p,3);p.provider.yn.G("html5_use_ump")&&/b248180278/.test(H)&&fnL(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."+ue());H&&V.push(Ou1(H));g.kb(p,C,"error",V);p.V=!0}; y6v=function(p){p.C>=0||(p.provider.yn.W1||p.provider.Ta.getVisibilityState()!==3?p.C=g.bF(p.provider):p.Y_=!0)}; qZY=function(p,C,V,N){if(V!==p.OO){C=10&&p.playTimeSecs<=180&&(p.T.qoealert=["1"],p.Mo=!0)),V!=="B"||p.OO!=="PL"&&p.OO!=="PB"||(p.isBuffering=!0),p.W=C);p.OO==="PL"&&(V==="B"||V==="S")||p.provider.yn.Gk()?Yb(p,C):(p.F$||V!=="PL"||(p.F$=!0,SZS(p,C,p.provider.Ta.OS())),vbQ(p,C));V==="PL"&&g.HF(p.zB);var H=[V];V==="S"&&N&&H.push("ss."+N);g.kb(p,C,"vps",H);p.OO=V; p.bx=C;p.W=C;p.V=!0}}; zK=function(p,C){var V=p.T.cat||[];V.push(C);p.T.cat=V}; nu=function(p,C,V,N,H,X){var d=g.bF(p.provider);V!==1&&V!==3&&V!==5||g.kb(p,d,"vps",[p.OO]);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}; fnL=function(p,C){if(!p.Qn){var V=p.T.fcnz;V||(V=[],p.T.fcnz=V);V.push(String(C));p.Qn=!0}}; Ou1=function(p){/[^a-zA-Z0-9;.!_-]/.test(p)&&(p=p.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return p}; Inu=function(p){this.provider=p;this.D=!1;this.T=0;this.S=-1;this.mF=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=eP(this.provider)}; Pu=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=eP(p.provider);p.C.previouslyEnded=p.previouslyEnded;p.previouslyEnded=!1;p.V=p.T}; A6L=function(p){buL(p);p.Y=g.Se(function(){p.update()},100); p.mF=g.bF(p.provider);p.C=eP(p.provider)}; buL=function(p){g.Dr(p.Y);p.Y=NaN}; ob9=function(p,C,V){V-=p.mF;return C===p.T&&V>.5}; kK9=function(p,C,V,N){this.yn=C;this.Q$=V;this.segments=[];this.experimentIds=[];this.Y_=this.Hc=this.isFinal=this.delayThresholdMet=this.Wc=this.zB=this.autoplay=this.autonav=!1;this.wy="yt";this.D=[];this.Y=this.Z=null;this.sendVisitorIdHeader=this.l_=!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.kz+"/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.FF=N.volume,N.at&&(this.adType=N.at)),N.autonav&&(this.autonav=N.autonav),N.inview!=null&&(this.uJ=N.inview),N.size&&(this.MW=N.size),N.playerwidth&&(this.playerWidth=N.playerwidth),N.playerheight&&(this.playerHeight=N.playerheight));this.XO=g.Y5(C.T);this.J=Wb(C.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.J==="all"||this.J==="once")this.bx=g.Y5(C.wy);this.iW=C.F$;this.experimentIds=DBs(C.experiments);this.R$=C.ER;this.wy=C.a$;this.region= C.region;this.userAge=C.userAge;this.Qn=C.vz;this.K1=bV();this.sendVisitorIdHeader=C.sendVisitorIdHeader;this.Vn=C.G("vss_pings_using_networkless")||C.G("kevlar_woffle");this.eZ=C.G("vss_final_ping_send_and_write");this.Sa=C.G("vss_use_send_and_write");this.pageId=C.pageId;this.H1=C.G("vss_playback_use_send_and_write");C.livingRoomAppMode&&(this.livingRoomAppMode=C.livingRoomAppMode);this.d7=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.GR[this.Q$]?this.S=p.GR[this.Q$]:p.GR.playback&&(this.S=p.GR.playback);this.adFormat=p.adFormat;this.adQueryId=p.adQueryId;this.autoplay=Hk(p);this.V&&(this.zB=(p.G("html5_enable_log_server_autoplay")||p.G("enable_cleanup_masthead_autoplay_hack_fix"))&&p.Zm&&CT(p)==="adunit"?!0:!1);this.autonav=p.isAutonav||this.autonav;this.contentVideoId=Vk(p);this.clientPlaybackNonce=p.clientPlaybackNonce;this.Wc=p.g6;p.Y&&(this.a$=p.Y,this.F$=p.jS);p.mdxEnvironment&&(this.mdxEnvironment=p.mdxEnvironment); this.T=p.Kx;this.ER=p.ER;p.C&&(this.QZ=p.C.itag,p.S&&p.S.itag!==this.QZ&&(this.Mo=p.S.itag));p.T&&he(p.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=CT(p);this.Y_=p.d7?!1:p.iW;this.cV=p.Fu;if(C=v_(p))this.N5=C;this.sO=p.IX;this.partnerId=p.partnerId;this.eventId=p.eventId;this.playlistId=p.zt||p.playlistId;this.lz=p.lz;this.yr=p.yr;this.tX=p.tX;this.Y$=p.Y$;this.subscribed=p.subscribed;this.videoId=p.videoId;this.videoMetadata=p.videoMetadata;this.visitorData=p.visitorData;this.osid=p.osid; this.xu=p.xu;this.referrer=p.referrer;this.Ec=p.HY||p.Ec;this.UY=p.Up;this.FL=p.FL;this.userGenderAge=p.userGenderAge;this.ND=p.ND;this.embedsRct=p.embedsRct;this.embedsRctn=p.embedsRctn;g.KI(this.yn)&&p.mutedAutoplay&&this.D.push(2);p.isEmbedsShortsMode(new g.Sg(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.D.push(3);g.ck(p)&&this.D.push(4);this.Ga=p.SQ;p.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=p.compositeLiveIngestionOffsetToken)}; xaQ=function(p,C){var V=p.sendVisitorIdHeader?p.visitorData:void 0;return g.pk(p.yn,p.accessToken).then(function(N){return lnY(p.uri,p.yn,p.pageId,V,N,C,p.d7)})}; Rws=function(p,C){return function(){p.yn.G("html5_simplify_pings")?(p.T=p.Wr,p.xt=C(),p.K1=0,p.send()):xaQ(p).then(function(V){var N=YZj(p);N.cmt=N.len;N.lact="0";var H=C().toFixed(3);N.rt=Number(H).toString();N=g.BX(p.uri,N);p.yn.G("vss_through_gel_double")&&zwX(N);p.Vn?(V==null&&(V={}),p.Sa?iV().sendAndWrite(N,V):iV().sendThenWrite(N,V)):V?g.qU(N,V):g.BC(N)})}}; YZj=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.xt),adformat:p.adFormat,content_v:p.contentVideoId,euri:p.iW,lact:p.K1,live:p.N5,cl:(712772113).toString(),mos:p.W1,state:p.playerState,volume:p.FF};p.subscribed&&(C.subscribed="1");Object.assign(C,p.XO);p.J==="all"?Object.assign(C,p.bx):p.J==="once"&&p.V&&Object.assign(C,p.bx);p.autoplay&&(C.autoplay="1");p.zB&&(C.sautoplay="1");p.Wc&&(C.dni="1");!p.W&&p.vr&&(C.epm=nb9[p.vr]); p.isFinal&&(C["final"]="1");p.Y_&&(C.splay="1");p.ER&&(C.delay=p.ER);p.R$&&(C.hl=p.R$);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.Ec&&(C.feature=p.Ec);p.yr&&(C.ctrl=p.yr);p.tX&&(C.ytr=p.tX);p.Mo&&(C.afmt=p.Mo);p.offlineDownloadUserChoice&&(C.ODUC=p.offlineDownloadUserChoice);p.YM&&(C.lio=p.C(p.YM)); p.W?(C.idpj=p.cV,C.ldpj=p.sO,p.delayThresholdMet&&(C.dtm="1"),p.Z!=null&&(C.rti=p.C(p.Z)),p.ND&&(C.ald=p.ND),p.compositeLiveIngestionOffsetToken&&(C.clio=p.compositeLiveIngestionOffsetToken)):p.adType!==void 0&&(C.at=p.adType);p.MW&&(p.V||p.W)&&(C.size=p.MW);p.V&&p.D.length&&(C.pbstyle=p.D.join(","));p.uJ!=null&&(p.V||p.W)&&(C.inview=p.C(p.uJ));p.W&&(C.volume=wX(p,g.bZ(p.segments,function(N){return N.volume})),C.st=wX(p,g.bZ(p.segments,function(N){return N.startTime})),C.et=wX(p,g.bZ(p.segments,function(N){return N.endTime})), xo(p.segments,function(N){return N.playbackRate!==1})&&(C.rate=wX(p,g.bZ(p.segments,function(N){return N.playbackRate}))),xo(p.segments,function(N){return N.T!=="-"})&&(C.als=g.bZ(p.segments,function(N){return N.T}).join(",")),xo(p.segments,function(N){return N.previouslyEnded})&&(C.pe=g.bZ(p.segments,function(N){return""+ +N.previouslyEnded}).join(","))); C.muted=wX(p,g.bZ(p.segments,function(N){return N.muted?1:0})); xo(p.segments,function(N){return N.visibilityState!==0})&&(C.vis=wX(p,g.bZ(p.segments,function(N){return N.visibilityState}))); xo(p.segments,function(N){return N.connectionType!==0})&&(C.conn=wX(p,g.bZ(p.segments,function(N){return N.connectionType}))); xo(p.segments,function(N){return N.C!==0})&&(C.blo=wX(p,g.bZ(p.segments,function(N){return N.C}))); xo(p.segments,function(N){return!!N.V})&&(C.blo=g.bZ(p.segments,function(N){return N.V}).join(",")); xo(p.segments,function(N){return!!N.compositeLiveStatusToken})&&(C.cbs=g.bZ(p.segments,function(N){return N.compositeLiveStatusToken}).join(",")); xo(p.segments,function(N){return N.W!=="-"})&&(C.cc=g.bZ(p.segments,function(N){return N.W}).join(",")); xo(p.segments,function(N){return N.clipId!=="-"})&&(C.clipid=g.bZ(p.segments,function(N){return N.clipId}).join(",")); if(xo(p.segments,function(N){return!!N.S})){var V="au"; p.V&&(V="au_d");C[V]=g.bZ(p.segments,function(N){return N.S}).join(",")}tw()&&p.a$&&(C.ctt=p.a$,C.cttype=p.F$,C.mdx_environment=p.mdxEnvironment); p.f9&&(C.etype=p.b_!==void 0?p.b_:0);p.UY&&(C.uoo=p.UY);p.livingRoomAppMode&&p.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(C.clram=ewY[p.livingRoomAppMode]||p.livingRoomAppMode);p.S?PFe(p,C):(C.docid=p.videoId,C.referrer=p.referrer,C.ei=p.eventId,C.of=p.xu,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.Y$&&(C.ssrt="1"),p.FL&&(C.upt=p.FL));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}; PFe=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])}}; wX=function(p,C){return g.bZ(C,p.C).join(",")}; zwX=function(p){p.indexOf("watchtime")!==-1&&g.t1("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:p}})}; wu9=function(p,C){p.attestationResponse&&xaQ(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)})}; $b=function(p){g.z.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 Inu(p)}; Wsy=function(p){if(!p.V){p.provider.videoData.wf===16623&&g.eG(Error("Playback for EmbedPage"));var C=Lu(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.Fu,d=p.provider.videoData.IX,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.Fu,10,10,40+p.provider.videoData.IX-p.provider.videoData.Fu,40]}A6L(p.T);C.Y=gX(p);p.C>0&&(C.T-=p.C);C.send();p.provider.videoData.NA&&(C=p.provider.yn,N=p.provider.videoData,V={html5:"1",video_id:N.videoId,cpn:N.clientPlaybackNonce,ei:N.eventId,ptk:N.NA,oid:N.fE,ptchn:N.iB,pltype:N.Wl,content_v:Vk(N)},N.KA&&Object.assign(V,{m:N.KA}),C=g.BX(C.Vn+"ptracking",V),$a1(p,C));p.provider.videoData.ER|| (Lse(p),gba(p),p.sx());p.V=!0;C=p.T;C.T=C.provider.Ta.DQ();C.mF=g.bF(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",{})}}; gX=function(p,C){C=C===void 0?NaN:C;var V=g.bF(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=gX(p,H));d.send();p.Z++}},(H-V)*1E3); return p.S=H}; Wu=function(p){g.KO(p.W);p.W=NaN}; QVe=function(p){p.T.update();p=p.T;p.segments.length&&p.T===p.V||Pu(p);var C=p.segments;p.segments=[];return C}; Lu=function(p,C){var V=BXY(p.provider);Object.assign(V,{state:p.Y});C=new kK9(p.provider.videoData,p.provider.yn,C,V);C.T=p.provider.Ta.DQ();V=p.provider.videoData.clientPlaybackNonce;C.T=p.provider.Ta.tR(V);p.provider.videoData.isLivePlayback||(C.Wr=p.provider.Ta.getDuration(V));p.provider.videoData.T&&(V=p.provider.videoData.T.Ft(C.T))&&(C.YM=V-C.T);C.xt=g.bF(p.provider);C.segments=[eP(p.provider)];return C}; r6S=function(p,C){var V=Lu(p,"watchtime");GKY(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.kC();V.segments=C;return V}; Qb=function(p,C){var V=pOs(p,!isNaN(p.S));C&&(p.S=NaN);return V}; pOs=function(p,C){var V=r6S(p,QVe(p));!isNaN(p.S)&&C&&(V.Z=p.S);return V}; GKY=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.DQ()-C.V>=p.provider.videoData.ER;return!!C}; Lse=function(p){p.provider.videoData.youtubeRemarketingUrl&&!p.Vn&&($a1(p,p.provider.videoData.youtubeRemarketingUrl),p.Vn=!0)}; gba=function(p){p.provider.videoData.googleRemarketingUrl&&!p.b_&&($a1(p,p.provider.videoData.googleRemarketingUrl),p.b_=!0)}; CYQ=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=Qb(p);C.isFinal=!0;C.send();p.dispose()}}; jia=function(p,C){if(!p.fS())if(g.r(C.state,2)||g.r(C.state,512)){if(p.Y="paused",g.Kt(C,2)||g.Kt(C,512))g.Kt(C,2)&&(p.T.previouslyEnded=!0),p.V&&(Wu(p),Qb(p).send(),p.S=NaN)}else if(g.r(C.state,8)){p.Y="playing";var V=p.V&&isNaN(p.W)?gX(p):NaN;!isNaN(V)&&(S2(C,64)<0||S2(C,512)<0)&&(p=pOs(p,!1),p.Y=V,p.send())}else p.Y="paused"}; Vts=function(p,C,V){if(!p.a$){V||(V=Lu(p,"atr"));V.attestationResponse=C;try{V.send()}catch(N){if(N.message!=="Unknown Error")throw N;}p.a$=!0}}; $a1=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=lnY(C,V,H,X,N);tPa(C,N,{token:p.provider.videoData.Y,nm:p.provider.videoData.jS,mdxEnvironment:p.provider.videoData.mdxEnvironment},V,void 0,d&&!a,!1,!0)})}; NLY=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}; rX=function(p,C,V){this.videoData=p;this.yn=C;this.Ta=V;this.T=void 0}; g.bF=function(p){return H$e(p)()}; H$e=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.wD()}return p.T}; BXY=function(p){var C=p.Ta.pV()||{};C.fs=p.Ta.AF();C.volume=p.Ta.getVolume();C.muted=p.Ta.isMuted()?1:0;C.mos=C.muted;C.clipid=p.Ta.xH();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.uJ?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.wh&&(V.infringe=1); (p.d7?0:p.iW)&&(V.splay=1);(N=v_(p))&&(V.live=N);p.Zm&&(V.sautoplay=1);p.GU&&(V.autoplay=1);p.lz&&(V.sdetail=p.lz);p.partnerId&&(V.partnerid=p.partnerId);p.osid&&(V.osid=p.osid);p.xW&&(V.cc=g.IYQ(p.xW));return Object.assign(C,V)}; Fse=function(p){var C=TeV();if(C)return XOV[C]||XOV.other;if(g.qz(p.yn)){p=navigator.userAgent;if(/[Ww]ireless[)]/.test(p))return 3;if(/[Ww]ired[)]/.test(p))return 30}return 0}; eP=function(p){var C=new NLY,V;C.W=((V=BXY(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.xr;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=Fse(p);C.volume=p.Ta.getVolume();C.muted=p.Ta.isMuted();C.clipId=p.Ta.xH()||"-";C.T=p.videoData.tj||"-";return C}; g.Bu=function(p,C){g.z.call(this);var V=this;this.provider=p;this.S=!1;this.V=new Map;this.OO=new g.E3;this.VZ={nEY:function(){return V.qoe}, z2n:function(){return V.T}, JFr:function(){return V.C}}; this.provider.videoData.GN()&&!this.provider.videoData.Te&&(this.T=new $b(this.provider),this.T.C=this.provider.videoData.XO/1E3,g.R(this,this.T),this.qoe=new g.xb(this.provider,C),g.R(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.UE=this.provider.videoData.clientPlaybackNonce)&&this.V.set(this.UE,this.T));if(p.yn.playerCanaryState==="canary"||p.yn.playerCanaryState==="holdback")this.C=new IV(this.provider),g.R(this,this.C)}; dT9=function(p){return!!p.T&&!!p.qoe}; GK=function(p){p.C&&VPa(p.C);p.qoe&&y6v(p.qoe)}; i$y=function(p){if(p.qoe){p=p.qoe;for(var C=p.provider.videoData,V=p.provider.yn,N=g.F(V.N5),H=N.next();!H.done;H=N.next())zK(p,H.value);if(p.provider.G("html5_enable_qoe_cat_list"))for(N=g.F(C.S6),H=N.next();!H.done;H=N.next())zK(p,H.value);else C.N5&&zK(p,p.provider.videoData.N5);C.p4()&&(N=C.T,Ge(C)&&zK(p,"manifestless"),N&&Jz(N)&&zK(p,"live-segment-"+Jz(N).toFixed(1)));$B(C)?zK(p,"sabr"):p.Aa(tl(C));if(db(C)||C.VL())C.VL()&&zK(p,"ssa"),zK(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"),zK(p,N));V.a$!=="yt"&&(p.T.len=[C.lengthSeconds.toFixed(2)]);C.cotn&&!h_(C)&&p.Bd(!0);if(V.Gk()&&((C=J61())&&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})}}}; h2y=function(p){if(p.provider.Ta.B1()){if(p.S)return;p.S=!0}p.T&&Wsy(p.T);if(p.C){p=p.C;var C=g.bF(p.provider);p.T<0&&(p.T=C,p.delay.start());p.C=C;p.S=C}}; si1=function(p,C){p.T&&(p=p.T,C===58?p.T.update():p.V&&(Wu(p),Qb(p).send(),p.S=NaN))}; a_L=function(p,C){if(g.Kt(C,1024)||g.Kt(C,512)||g.Kt(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.UE){var N;(N=p.V.get(p.UE))==null||jia(N,C)}else p.T&&jia(p.T,C);if(p.qoe){N=p.qoe;V=C.state;var H=g.bF(N.provider),X=N.getPlayerState(V);qZY(N,H,X,V.seekSource||void 0);X=V.Kd;g.r(V,128)&&X&&(X.Pd=X.Pd||"",ZuY(N,H,X.errorCode,X.Ve,X.Pd));(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);Da1(N)}p.C&&(N=p.C,NXe(N),N.playerState=C.state,N.C>=0&&g.Kt(C,16)&&N.seekCount++,C.state.isError()&&N.send());p.provider.Ta.B1()&&(p.OO=C.state)}; Em9=function(p){if(p.provider.videoData.enableServerStitchedDai&&p.UE){var C;(C=p.V.get(p.UE))!=null&&Pu(C.T)}else p.T&&Pu(p.T.T)}; l_v=function(p){p.C&&p.C.send();if(p.qoe){var C=p.qoe;if(C.V){C.OO==="PL"&&(C.OO="N");var V=g.bF(C.provider);g.kb(C,V,"vps",[C.OO]);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())CYQ(V.value);else p.T&&CYQ(p.T);p.dispose()}; ttS=function(p,C){p.T&&Vts(p.T,C)}; cHL=function(p){if(!p.T)return null;var C=Lu(p.T,"atr");return function(V){p.T&&Vts(p.T,V,C)}}; TLS=function(p,C,V,N){V.adFormat=V.Q$;var H=C.Ta;C=new $b(new rX(V,C.yn,{getDuration:function(){return V.lengthSeconds}, getCurrentTime:function(){return H.getCurrentTime()}, DQ:function(){return H.DQ()}, tR:function(){return H.tR()}, B1:function(){return H.B1()}, OS:function(){return H.OS()}, getPlayerSize:function(){return H.getPlayerSize()}, getAudioTrack:function(){return V.getAudioTrack()}, getPlaybackRate:function(){return H.getPlaybackRate()}, d1:function(){return H.d1()}, getVisibilityState:function(){return H.getVisibilityState()}, e5:function(){return H.e5()}, pV:function(){return H.pV()}, getVolume:function(){return H.getVolume()}, isMuted:function(){return H.isMuted()}, AF:function(){return H.AF()}, xH:function(){return H.xH()}, getProximaLatencyPreference:function(){return H.getProximaLatencyPreference()}, wD:function(){H.wD()}, k_:function(X,d){H.k_(X,d)}})); C.C=N;g.R(p,C);return C}; Mtj=function(){this.qD=0;this.V=this.dW=this.DO=this.C=NaN;this.T={};this.bandwidthEstimate=NaN}; p$=function(p,C,V){g.z.call(this);var N=this;this.yn=p;this.Ta=C;this.C=V;this.T=new Map;this.UE="";this.VZ={h9:function(){return Array.from(N.T.keys())}}}; JH1=function(p,C){p.T.has(C)&&(l_v(p.T.get(C)),p.T.delete(C))}; mTu=function(){this.T=g.hy;this.array=[]}; F5Q=function(p,C,V){var N=[];for(C=vmQ(p,C);CV)break}return N}; SDy=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}; K5a=function(p){return p.array.slice(vmQ(p,0x7ffffffffffff),p.array.length)}; vmQ=function(p,C){p=ir(p.array,function(V){return C-V.start||1}); return p<0?-(p+1):p}; DTH=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.Mz(p.yn.experiments,"html5_min_playback_advance_for_steady_state_secs");var X=g.Mz(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}; yH1=function(p,C){this.videoData=p;this.T=C}; qDy=function(p,C,V){return C.gK(V).then(function(){return YD(new yH1(C,C.V))},function(N){N instanceof Error&&g.eG(N); var H=bv('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),X=or('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.UC(),d:!!C.zB,drm:C.F4(),f18:C.cR.indexOf("itag=18")>=0,c18:H};C.T&&(C.F4()?(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=or('video/mp4; codecs="avc1.42001E"'), H.cVP9=or('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 ON(N,H,d)})}; NT=function(p){this.data=window.Float32Array?new Float32Array(p):Array(p);this.C=this.T=p-1}; I_S=function(p){return p.data[p.T]||0}; b$u=function(p){this.W=p;this.V=this.C=0;this.S=new NT(50)}; Xd=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 AHy;p.latencyClass==="ULTRALOW"&&(V.S=!1);p.Mo?V.C=3:g.ud(p)&&(V.C=2);p.latencyClass==="NORMAL"&&(V.W=!0);var N=g.Mz(C,"html5_liveness_drift_proxima_override");if(tl(p)!==0&&N){V.T=N;var H;((H=p.T)==null?0:IQj(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.Mz(C,"html5_platform_minimum_readahead_seconds")|| 3,V.V=Math.max(V.V,H);g.Mz(C,"html5_minimum_readahead_seconds")&&(V.V=g.Mz(C,"html5_minimum_readahead_seconds"));g.Mz(C,"html5_maximum_readahead_seconds")&&(V.Y=g.Mz(C,"html5_maximum_readahead_seconds"));C.OY("html5_force_adaptive_readahead")&&(V.S=!0);if(C=g.Mz(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=HO(this,omX(this,isNaN(p.liveChunkReadahead)?3:p.liveChunkReadahead,p))}; kEQ=function(p,C){if(C)return C=p.videoData,C=omX(p,isNaN(C.liveChunkReadahead)?3:C.liveChunkReadahead,C),HO(p,C);if(p.C.length){if(Math.min.apply(null,p.C)>1)return HO(p,p.T-1);if(p.policy.S)return HO(p,p.T+1)}return p.T}; xT1=function(p,C){if(!p.C.length)return!1;var V=p.T;p.T=kEQ(p,C===void 0?!1:C);if(C=V!==p.T)p.C=[],p.S=0;return C}; dL=function(p,C){return C>=p.Gi()-YDv(p)}; z2X=function(p,C,V){C=dL(p,C);V||C?C&&(p.V=!0):p.V=!1;p.J=p.policy.C===2||p.policy.C===3&&p.V}; R2S=function(p,C){C=dL(p,C);p.W!==C&&p.publish("livestatusshift",C);p.W=C}; YDv=function(p){var C=p.policy.T;p.W||(C=Math.max(C-1,0));return C*iY(p)}; omX=function(p,C,V){V.Mo&&C--;ld(V)&&(C=1);if(tl(V)!==0&&(p=g.Mz(p.experiments,"html5_live_chunk_readahead_proxima_override"))){C=p;var N;((N=V.T)==null?0:IQj(N))&&C++}return C}; iY=function(p){return p.videoData.T?Jz(p.videoData.T)||5:5}; HO=function(p,C){C=Math.max(Math.max(1,Math.ceil(p.policy.V/iY(p))),C);return Math.min(Math.min(8,Math.floor(p.policy.Y/iY(p))),C)}; AHy=function(){this.V=0;this.Y=Infinity;this.S=!0;this.T=2;this.C=1;this.D=this.W=!1}; ai=function(p){g.z.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.Mo=new hH({delayMs:g.Mz(this.yn.experiments,"html5_seek_timeout_delay_ms")});this.Sa=new hH({delayMs:g.Mz(this.yn.experiments,"html5_long_rebuffer_threshold_ms")});this.F$=sD(this,"html5_seek_set_cmt");this.R$=sD(this,"html5_seek_jiggle_cmt");this.l_=sD(this,"html5_seek_new_elem");this.YM=sD(this,"html5_unreported_seek_reseek");this.sY=sD(this,"html5_long_rebuffer_jiggle_cmt"); this.Wr=sD(this,"html5_long_rebuffer_ssap_clip_not_match");this.Vn=new hH({delayMs:2E4});this.Y_=sD(this,"html5_seek_new_elem_shorts");this.Qn=sD(this,"html5_seek_new_media_source_shorts_reuse");this.UY=sD(this,"html5_seek_new_media_element_shorts_reuse");this.Ga=sD(this,"html5_reseek_after_time_jump");this.J=sD(this,"html5_gapless_handoff_close_end_long_rebuffer");this.a$=sD(this,"html5_gapless_slow_seek");this.Z=sD(this,"html5_gapless_slice_append_stuck");this.b_=sD(this,"html5_gapless_slow_start"); this.D=sD(this,"html5_ads_preroll_lock_timeout");this.Hc=sD(this,"html5_ssap_ad_longrebuffer_new_element");this.Wc=new hH({delayMs:g.Mz(this.yn.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Fp:!this.yn.G("html5_report_slow_ads_as_error")});this.bx=new hH({delayMs:g.Mz(this.yn.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Fp:!this.yn.G("html5_skip_slow_buffering_ad")});this.ER=new hH({delayMs:g.Mz(this.yn.experiments,"html5_slow_start_timeout_delay_ms")});this.vr=sD(this,"html5_slow_start_no_media_source"); g.R(this,this.W)}; sD=function(p,C){var V=g.Mz(p.yn.experiments,C+"_delay_ms");p=p.yn.G(C+"_cfl");return new hH({delayMs:V,Fp:p})}; nme=function(p,C){p.T=C}; ED=function(p,C,V,N,H,X,d,a){C.test(V)?(p.DE(H,C,d),C.Fp||X()):(C.gr&&C.C&&!C.S?(V=(0,g.Ip)(),N?C.T||(C.T=V):C.T=0,X=!N&&V-C.C>C.gr,V=C.T&&V-C.T>C.JJ||X?C.S=!0:!1):V=!1,V&&(a=Object.assign({},p.jb(C),a),a.wn=d,a.we=H,a.wsuc=N,p.Ta.k_("workaroundReport",a),N&&(C.reset(),p.V[H]=!1)))}; hH=function(p){var C=p===void 0?{}:p;p=C.delayMs===void 0?0:C.delayMs;var V=C.JJ===void 0?1E3:C.JJ;var N=C.gr===void 0?3E4:C.gr;C=C.Fp===void 0?!1:C.Fp;this.T=this.C=this.V=this.startTimestamp=0;this.S=!1;this.W=Math.ceil(p/1E3);this.JJ=V;this.gr=N;this.Fp=C}; $TV=function(p){g.z.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.R$=0;this.l_=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 e29;this.Vn=new ai(this.Ta);this.Mo=this.Ga=this.vr=this.C=NaN;this.Wr=new g.N8(function(){PYa(C,!1)},2E3); this.bx=new g.N8(function(){lY(C)}); this.Y_=new g.N8(function(){C.b_=!0;wOv(C,{})}); this.F$=NaN;this.Sa=new g.N8(function(){var V=C.yn.f9;V.T+=1E4/36E5;V.T-V.V>1/6&&(wPj(V),V.V=V.T);C.Sa.start()},1E4); g.R(this,this.Vn);g.R(this,this.Wr);g.R(this,this.Y_);g.R(this,this.bx);g.R(this,this.Sa)}; W5j=function(p,C){p.playbackData=C;p.videoData.isLivePlayback&&(p.Y=new b$u(function(){a:{if(p.playbackData&&p.playbackData.T.T){if(Ge(p.videoData)&&p.nS){var V=p.nS.O2.lc()||0;break a}if(p.videoData.T){V=p.videoData.T.Vn;break a}}V=0}return V}),p.T=new Xd(p.videoData,p.yn.experiments,function(){return p.Vi(!0)})); tH(p.Ta)?(C=L5y(p),C.w$?(p.G("html5_sabr_enable_utc_seek_requests")&&$B(p.videoData)&&p.Pm(C.w$,C.startSeconds),p.S=C.startSeconds):C.startSeconds>0&&p.seekTo(C.startSeconds,{L1:"seektimeline_startPlayback",seekSource:15}),p.D=!1):gmH(p)||(p.S=p.S||(g.pf(p.videoData)?0:p.videoData.startSeconds)||0)}; rHQ=function(p,C){(p.nS=C)?QiH(p,!0):cO(p)}; BLv=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.oldState.state===8&&mE(C.state)&&C.state.isBuffering()){C=p.mediaElement.getCurrentTime();var V=p.mediaElement.kq();var N=p.G("manifestless_post_live_ufph")||p.G("manifestless_post_live")?hj(V,Math.max(C-3.5,0)):hj(V,C-3.5);N>=0&&C>V.end(N)-1.1&&N+10?(TE(p.Ta,p.getCurrentTime()+p.videoData.limitedPlaybackDurationInSeconds),p.l_=!0):p.videoData.isLivePlayback&&p.videoData.endSeconds>0&&(TE(p.Ta,p.getCurrentTime()+p.videoData.endSeconds),p.l_=!0))}; pxs=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,z2X(H,V,C===void 0?!0:C),R2S(H,V),C&&PYa(p,!0));N!==p.ER&&(C=p.getCurrentTime()-p.Mo<=500,V=p.Wc>=1E3,C||V||(C=p.Ta.Pc(),C.qoe&&(C=C.qoe,V=g.bF(C.provider), g.kb(C,V,"lh",[N?"1":"0"])),p.ER=N,p.Wc++,p.Mo=p.getCurrentTime()))}; PYa=function(p,C){if(p.T){var V=p.T;var N=p.getCurrentTime();!dL(V,N)&&V.VP()?(V.policy.W&&(V.policy.T=Math.max(V.policy.T+1,10)),V=Infinity):V=N0&&iU(p.mediaElement)>0&&(p.C=MT(p,p.C,!1)),!p.mediaElement||!Hn1(p))p.bx.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.R$||p.G("html5_enable_new_seek_timeline_logic")&&Math.abs(C)<.005)p.V&&p.V.resolve(p.mediaElement.getCurrentTime()); else{if(p.videoData.E2)p.videoData.E2=!1;else if(!rP(p.videoData)&&p.C>=p.Vi()-.1){p.C=p.Vi();p.V.resolve(p.Vi());p.Ta.vA();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){}}}}; Hn1=function(p){if(!p.mediaElement||p.mediaElement.cB()===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.F4())return C;if(p.C>=0){var V=p.mediaElement.LQ();if(V.length||!C)return sJ(V,p.C-p.timestampOffset)}return C}; NMa=function(p,C){p.W&&(p.W.resolve(C),p.Ta.dD(),p.yn.Gk()&&(C=p.jb(),C["native"]=""+ +p.J,C.otgt=""+(p.C+p.timestampOffset),p.Ta.k_("seekEnd",C)));cO(p)}; cO=function(p){p.C=NaN;p.Ga=NaN;p.V=null;p.a$=null;p.W=null;p.b_=!1;p.J=!1;p.R$=0;p.Wr.stop();p.Y_.stop()}; inS=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 XO;p.G("html5_enable_new_seek_timeline_logic")&&p.V.then(function(E){NMa(p,E)},function(){cO(p)}); if(p.videoData.isAd()){var a;H3u({adCpn:p.videoData.clientPlaybackNonce,contentCpn:(a=p.videoData.SQ)!=null?a:""},C.T)}p.Ga=X;nme(p.Vn,N.getCurrentTime());p.seekTo(X,{seekSource:104,L1:"seektimeline_mediaElementEvent"});V&&XxY(V,X*1E3,!!d);p.J=!0}break;case "seeked":p.V&&p.V.resolve(p.mediaElement.getCurrentTime());break;case "loadedmetadata":tH(p.Ta)||dAe(p);lY(p);break;case "progress":lY(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.DE(new ON("qoe.restart",{reason:"pauseJump"})),p.Ta.gI()):p.seekTo(p.Z,{L1:"pauseJump"})),H!=="pause"&&H!=="play"&&H!=="playing"&&H!=="progress"&&(p.Z=0))}; hDj=function(p){return(Z6(p.videoData)||!!p.videoData.liveUtcStartSeconds)&&(!!p.videoData.liveUtcStartSeconds||gmH(p))&&!!p.videoData.T}; gmH=function(p){return!!p.videoData.startSeconds&&isFinite(p.videoData.startSeconds)&&p.videoData.startSeconds>1E9}; L5y=function(p){var C=0,V=NaN,N="";if(!p.D)return{startSeconds:C,w$:V,source:N};p.videoData.Wr?C=p.videoData.vr:rP(p.videoData)&&(C=Infinity);if(g.ud(p.videoData))return{startSeconds:C,w$:V,source:N};p.videoData.startSeconds?(N="ss",C=p.videoData.startSeconds):p.videoData.sO&&(N="stss",C=p.videoData.sO);p.videoData.liveUtcStartSeconds&&(V=p.videoData.liveUtcStartSeconds);if(isFinite(C)&&(C>p.Vi()||Cp.Vi()||V 0?(N.onesie="0",p.handleError(new ON("html5.missingapi",N)),!1):!0}; JrS=function(p){var C=Bk();GC(C,p);return g.FA(C,lSQ())}; cre=function(p,C){var V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,Y,W,L,VL,au,Q,e;return g.I(function(G){if(G.C==1)return C.fetchType="onesie",V=qca(C,p.getPlayerSize(),p.getVisibilityState()),N=new Na(p,V),g.y(G,N.fetch(),2);H=G.T;X={player_response:H};C.loading=!1;d=p.lJ.x8;if(N.TI){a=g.F(N.TI.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.Lv(),C.Cj=S);d.Ii=N}D=g.F(N.GJ.entries());for(Z=D.next();!Z.done;Z= D.next())f=Z.value,q=g.F(f),A=q.next().value,Y=q.next().value,W=A,L=Y,d.C.set(W,L,180);g.ew(C,X,!0);if(C.loading||ze(C))return G.return(Promise.resolve());d.T.removeAll();d.C.removeAll();C.Cj=[];VL={};au="onesie.response";Q=0;C.errorCode?(au="auth",VL.ec=C.errorCode,VL.ed=C.errorDetail,VL.es=C.vp||"",Q=2):(VL.successButUnplayable="1",VL.disposed=""+ +C.fS(),VL.afmts=""+ +/adaptiveFormats/.test(H),VL.cpn=C.clientPlaybackNonce);e=new ON(au,VL,Q);return G.return(Promise.reject(e))})}; lTL=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,bm(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,mAy(p,C),9);case 9:return M.return();case 7:a=g.Sa(M);E=qD(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=vWj(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(yu(E.severity)){M.EY(4);break}case 3:X++;M.EY(2);break;case 4:return M.return(Promise.reject(vWj(V,{backend:"op"})))}})}; mAy=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,Y,W,L,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=JrS(d),E=qca(C,p.getPlayerSize(),p.getVisibilityState()),l=g.Un(FYu),t=g.XE(C),c=(0,g.Ip)(),T=!1,M="empty",J=0,p.ZE("psns"),S={PC:V},g.y(au,g.s0(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.F$?"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.yr||"",token_eq:t===g.XE(C)?"1":"0"}:{backend:"op", rc:""+J,rt:f,reason:M,has_kpt:C.F$?"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.yr||"",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 ON(A,q,Z)));C.loading=!1;g.ew(C,{raw_player_response:D},!0); Y=D;g.Oe(C.K())&&Y&&Y.trackingParams&&ZF(Y.trackingParams);if(C.errorCode)return W={ec:C.errorCode,ed:C.errorDetail,es:C.vp||""},au.return(Promise.reject(new ON("auth",W,2)));if(!C.loading&&!ze(C))return L=C.isAd()?"auth":"manifest.net.retryexhausted",VL=C.isAd()?2:1,au.return(Promise.reject(new ON(L,{successButUnplayable:"1",hasMedia:g.SK(C)?"1":"0"},VL)));g.JQ(au)}})}; EWv=function(p,C,V){function N(J){J=qD(J);if(yu(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.BX("//play.google.com/books/volumes/"+C.videoId.slice(0,f)+"/content/media",{aid:C.videoId.slice(f+1),sig:C.dL});else if(C.partnerId===30&&S.playerStyle==="docs")f=g.BX("https://docs.google.com/get_video_info",{docid:C.videoId,authuser:C.RS,authkey:C.QQ,eurl:S.F$}); else if(C.partnerId===33&&S.playerStyle==="google-live")f=g.BX("//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.F$,ps:S.playerStyle,el:CT(C),hl:S.ER,list:C.playlistId,agcid:C.UL,aqi:C.adQueryId,sts:20095,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.lj!==null&&(q.ad_id=C.lj);C.Qm!==null&&(q.ad_sys=C.Qm);C.LJ!==null&&(q.encoded_ad_playback_context=C.LJ);S.captionsLanguagePreference&&(q.cc_lang_pref=S.captionsLanguagePreference);S.bx&&S.bx!==2&&(q.cc_load_policy=S.bx);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.O5&&(q.endscreen_ad_tracking=C.O5);(A=S.vr.get(C.videoId))&&A.PZ&&(q.ic_track=A.PZ);C.Sa&&(q.itct=C.Sa);Hk(C)&&(q.autoplay="1");C.mutedAutoplay&&(q.mutedautoplay=C.mutedAutoplay);C.isAutonav&&(q.autonav="1");C.PX&&(q.noiba="1");C.isMdxPlayback&&(q.mdx="1",q.ytr=C.tX);C.mdxControlMode&&(q.mdx_control_mode=C.mdxControlMode);C.Cg&&(q.ytrcc=C.Cg);C.Mq&&(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.K1&&(q.preload=C.K1);D.width&&(q.width=D.width);D.height&&(q.height=D.height);(C.d7?0:C.iW)&&(q.splay="1");C.ypcPreview&&(q.ypc_preview="1");Vk(C)&&(q.content_v=Vk(C));C.Mo&&(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.nj&&(q.live_start_walltime= C.nj);S.D&&C.jH&&(q.live_manifest_duration=C.jH);S.D&&C.playerParams&&(q.player_params=C.playerParams);S.D&&C.cycToken&&(q.cyc=C.cycToken);S.D&&C.yH&&(q.tkn=C.yH);Z!==0&&(q.vis=Z);S.enableSafetyMode&&(q.enable_safety_mode="1");C.F$&&(q.kpt=C.F$);C.WP&&(q.kids_age_up_mode=C.WP);C.kidsAppInfo&&(q.kids_app_info=C.kidsAppInfo);C.q2&&(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.Ti&&(q.internalipoverride=C.Ti);S.embedConfig&&(q.embed_config=S.embedConfig);S.qO&&(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.Yr&&C.DU&&(q.clip=C.Yr,q.clipt=C.DU);C.U5&&(q.disable_watch_next="1");C.y6&&(q.forced_by_var="1");for(var Y in q)!SCa.has(Y)&&q[Y]&&String(q[Y]).length>512&&(g.eG(Error("GVI param too long: "+Y)),q[Y]="");Y=S.Vn;g.yj(S)&&(Y=V6(Y.replace(/\b(?:www|web)([.-])/,"tv$1"))||S.Vn);S=g.BX(Y+"get_video_info",q);f&&(S=EC9(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, bm(5E3),6);case 6:t={playerretry:E,playerretrysrc:V},d||(t.recover="embedded"),l=Ek(X,t);case 5:return g.y(J,KY9(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(W){}return J.return(Promise.reject(new ON(T,{backend:"gvi"},M)))}})}; KY9=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 ON(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.JY&&(Z.ytrext=p.JY);(a=g.oa(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.vp||""},D.return(Promise.reject(new ON("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 ON(J,{successButUnplayable:"1"},S)));g.JQ(D)})}; vWj=function(p,C){return new ON(p?"auth":"manifest.net.retryexhausted",C,p?2:1)}; St=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)||CT(C)!=="embedded")||C.U5||CT(C)!=="adunit"&&(g.qz(N)||kS(N)||g.$U(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(DAj(p,C,d))})}; DAj=function(p,C,V){var N,H,X,d,a;return g.I(function(E){if(E.C==1){g.vv(E,2);N=JrS(V);var l=C.K();g.$l();var t={context:g.Mh(C),videoId:C.videoId,racyCheckOk:C.racyCheckOk,contentCheckOk:C.contentCheckOk,autonavState:"STATE_NONE"};CT(C)==="adunit"&&(t.isAdPlayback=!0);l.embedConfig&&(t.serializedThirdPartyEmbedConfig=l.embedConfig);l.qO&&(t.showContentOwnerOnly=!0);C.BD&&(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.Un(uke);p.ZE("wn_s");return g.y(E,g.s0(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&&ZF(a.trackingParams),g.ew(C,{raw_watch_next_response:d},!1)),g.Fe(E,0);g.Sa(E);g.JQ(E)})}; Zns=function(p){p.ZE("vir");p.ZE("ps_s");dc("vir",void 0,"video_to_ad");var C=Mvy(p);C.then(function(){p.ZE("virc");dc("virc",void 0,"video_to_ad");p.ZE("ps_r");dc("ps_r",void 0,"video_to_ad")},function(){p.ZE("virc"); dc("virc",void 0,"video_to_ad")}); return C}; g.uY=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.AM=N;this.getVisibilityState=X;this.visibility=d;this.lJ=a;this.videoData=E;this.Tb=l;this.logger=new g.cI("VideoPlayer");this.RF=new O$s(this.yn);this.K7=null;this.Or=new UZ;this.fV=null;this.Y9=new zaQ(this.yn,this.AM,this);this.uE=!0;this.Hr=this.nS=null;this.HK=[];this.s_=new Fd;this.d6=this.S3=null;this.I0=new Fd;this.E1=null;this.h0=this.wz=!1; this.mI=NaN;this.Zl=!1;this.playerState=new g.E3;this.Wd=[];this.du=new g.YZ;this.Ad=new ZAe(this);this.mediaElement=null;this.vn=new g.N8(this.Z4_,15E3,this);this.C0=this.Pg=!1;this.MA=NaN;this.BJ=!1;this.Vq=0;this.C8=!1;this.OL=NaN;this.c5=new JH(new Map([["bufferhealth",function(){return GEH(t.Sr)}], ["bandwidth",function(){return t.lI()}], ["networkactivity",function(){return t.yn.schedule.sY}], ["livelatency",function(){return t.isAtLiveHead()&&t.isPlaying()?UAe(t):NaN}], ["rawlivelatency",function(){return UAe(t)}]])); this.L8=0;this.loop=!1;this.playbackRate=1;this.xf=0;this.Sr=new $TV(this);this.x4=!1;this.f5=[];this.NI=this.yU=0;this.y7=this.yQ=!1;this.dW=this.DO=0;this.sM=-1;this.ZW="";this.Mi=new g.N8(this.z6,0,this);this.r8=!1;this.Ze=this.NZ=null;this.b4S=[this.du,this.Mi,this.vn,this.c5];this.O7=this.hw=null;this.oI=function(){var c=t.Pc();c.provider.yn.W1||c.provider.Ta.getVisibilityState()===3||(c.provider.yn.W1=!0);Em9(c);if(c.C){var T=c.C;T.W&&T.T<0&&T.provider.Ta.getVisibilityState()!==3&&VPa(T)}c.qoe&& (c=c.qoe,c.Y_&&c.C<0&&c.provider.yn.W1&&y6v(c),c.V&&Yb(c));t.nS&&K$(t);t.yn.S6&&!t.videoData.backgroundable&&t.mediaElement&&!t.AU()&&(t.isBackground()&&t.mediaElement.EJ()?(t.k_("bgmobile",{suspend:1}),t.DM(!0,!0)):t.isBackground()||D_(t)&&t.k_("bgmobile",{resume:1}))}; this.VZ={Lt:function(c){t.Lt(c)}, hlk:function(c){t.K7=c}, cFr:function(){return t.IW}, iU:function(){return t.rB}, fIS:function(){return t.S2}, WFx:function(){return t.E$}, ZVk:function(){}, K:function(){return t.yn}, Sd:function(){return t.mediaElement}, y2a:function(c){t.Zv(c)}}; this.logger.debug(function(){return"creating, type "+C}); this.hU=new C$(function(){return t.getCurrentTime()},function(){return t.getPlaybackRate()},function(){return t.getPlayerState()},function(c,T){c!==g.sz("endcr")||g.r(t.playerState,32)||t.vA(); H(c,T,t.playerType)},function(c,T){g.pf(t.videoData)&&t.k_(c,T)}); g.R(this,this.hU);g.R(this,this.Sr);fTY(this,E);this.videoData.subscribe("dataupdated",this.Dt$,this);this.videoData.subscribe("dataloaded",this.Rw,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.k_,this);this.videoData.subscribe("ctmpstr",this.eY,this);this.n3();D4Q(this.oI);this.visibility.subscribe("visibilitystatechange",this.oI);this.S2=new g.N8(this.yM,g.Mz(this.yn.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.E$= new g.N8(this.yM,g.Mz(this.yn.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.vR=new g.jt(this)}; fTY=function(p,C){if(p.playerType===2||p.yn.vK)C.Vb=!0;var V=kda(C.Q$,C.nA,p.yn.S,p.yn.D);V&&(C.adFormat=V);p.playerType===2&&(C.GU=!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&&TE(p,C.endSeconds)}; OnY=function(p){l_v(p.IW);g.hf(p.IW);for(var C=p.rB,V=g.F(C.T.values()),N=V.next();!N.done;N=V.next())l_v(N.value);C.T.clear();g.hf(p.rB)}; yre=function(p){var C=p.videoData;Zns(p).then(void 0,function(V){p.videoData!==C||C.fS()||(V=qD(V),V.errorCode==="auth"&&p.videoData.errorDetail?p.Ng(V.errorCode,2,unescape(p.videoData.errorReason),fR(V.details),p.videoData.errorDetail,p.videoData.vp||void 0):p.handleError(V))})}; bnH=function(p){if(!g.r(p.playerState,128))if(p.videoData.isLoaded(),p.logger.debug("finished loading playback data"),p.HK=g.p6(p.videoData.Vn),g.SK(p.videoData)){p.mM.tick("bpd_s");Z_(p).then(function(){p.mM.tick("bpd_c");if(!p.fS()){p.wz&&(p.aN(cj(cj(p.playerState,512),1)),D_(p));var N=p.videoData;N.endSeconds&&N.endSeconds>N.startSeconds&&TE(p,N.endSeconds);p.s_.finished=!0;UD(p,"dataloaded");p.I0.Fj()&&qC1(p);jVj(p.Y9,p.d6)}}); p.G("html5_log_media_perf_info")&&p.k_("loudness",{v:p.videoData.DS.toFixed(3)},!0);var C,V=(C=p.mediaElement)==null?void 0:C.AQ();V&&"disablePictureInPicture"in V&&p.G("html5_disable_pip_with_standard_api")&&(V.disablePictureInPicture=p.yn.DS&&!p.videoData.backgroundable);ITY(p)}else UD(p,"dataloaded")}; Z_=function(p){f$(p);p.d6=null;var C=qDy(p.yn,p.videoData,p.AU());p.S3=C;p.S3.then(function(V){ArV(p,V)},function(V){p.fS()||(V=qD(V),p.visibility.isBackground()?(OD(p,"vp_none_avail"),p.S3=null,p.s_.reset()):(p.s_.finished=!0,p.Ng(V.errorCode,V.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",fR(V.details))))}); return C}; ArV=function(p,C){if(!p.fS()&&!C.videoData.fS()){p.logger.debug("finished building playback data");p.d6=C;W5j(p.Sr,p.d6);if(p.videoData.isLivePlayback){var V=oWH(p.lJ.x8,p.videoData.videoId)||p.nS&&!isNaN(p.nS.sY);V=p.G("html5_onesie_live")&&V;tH(p)||p.videoData.Hc>0&&!Ge(p.videoData)||V||p.seekTo(p.Vi(),{L1:"videoplayer_playbackData",seekSource:18})}if(p.videoData.V.T){if(p.G("html5_sabr_report_missing_url_as_error")&&vgS(p.videoData)){p.handleError(new ON("fmt.missing",{missabrurl:"1"},2));return}p.nS? g.eG(Error("Duplicated Loader")):(V=g.Mz(p.yn.experiments,"html5_onesie_defer_content_loader_ms"))&&p.Ct()&&oWH(p.lJ.x8,p.videoData.qb)?g.F5(function(){p.fS()||p.nS||kbY(p)},V):kbY(p)}else!p.videoData.V.T&&h_(p.videoData)&&p.oR(new dZ(p.videoData.videoId||"",4)); p.t2();WNa(C).then(function(){var N={};p.xQ(N);p.yn.Gk()&&p.G("html5_log_media_perf_info")&&p.k_("av1Info",N);K$(p)})}}; qC1=function(p){p.fS();p.logger.debug("try finish readying playback");if(p.I0.finished)p.logger.debug("already finished readying");else if(p.s_.finished)if(g.r(p.playerState,128))p.logger.debug("cannot finish readying because of error");else if(p.HK.length)p.logger.debug(function(){return"cannot finish readying because of pending preroll: "+p.HK}); else if(p.hU.started||Z$Q(p.hU),p.mY())p.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{p.nS&&(p.h0=ARX(p.nS.timing));p.I0.finished||(p.I0.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||tH(p)||(p.logger.debug("seek to head for live"),p.seekTo(Infinity,{L1:"videoplayer_readying",seekSource:18}),p.isBackground()&&(p.C0=!0));i$y(p.Pc());p.logger.debug("finished readying playback"); p.publish("playbackready",p);HH("pl_c",p.mM.timerName)||(p.mM.tick("pl_c"),dc("pl_c",void 0,"video_to_ad"));HH("pbr",p.mM.timerName)||(p.mM.tick("pbr"),dc("pbr",void 0,"video_to_ad"))}else p.logger.debug("playback data not loaded")}; TE=function(p,C){p.fV&&xAQ(p);p.fV=new g.iG(C*1E3,0x7ffffffffffff);p.fV.namespace="endcr";p.addCueRange(p.fV)}; xAQ=function(p){p.removeCueRange(p.fV);p.fV=null}; YCS=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.yX(p);V=new YpS(d,V,C,a?a.itag:"",N);p.yn.experiments.OY("html5_refactor_sabr_video_format_selection_logging")?(V.videoId=H,p.O7=V):X.BC(V);H=p.Y9;H.C=0;H.T=0;p.publish("internalvideoformatchange",d,C==="m")}; g.yX=function(p){var C=qT(p);return VS(C)||!p.d6?null:g.L0(p.d6.T.videoInfos,function(V){return C.S(V)})}; qT=function(p){if(p.d6){var C=p.Y9;var V=p.d6;p=p.Lg();if(C.Ta.jU().isInline())var N=xB;else C.G("html5_exponential_memory_for_sticky")?N=m4(C.yn.f9,"sticky-lifetime")<.5?"auto":Ni[oH()]:N=Ni[oH()],N=g.Cw("auto",N,!1,"s");if(VS(N)){if(N=Ray(C,V).compose($4s(C,V)).compose(gkX(C,V)).compose(puL(C,V.videoData)).compose(CFv(C,V.videoData,V)).compose(qa(C,V)).compose(PQ1(C,V)),VS(p)||C.G("html5_apply_pbr_cap_for_drm"))N=N.compose(wZu(C,V))}else C.G("html5_perf_cap_override_sticky")&&(N=N.compose(qa(C, V))),C.G("html5_ustreamer_cap_override_sticky")&&(N=N.compose(wZu(C,V)));N=N.compose(PQ1(C,V));C=V.videoData.aX.compose(N).compose(V.videoData.r$).compose(p)}else C=xB;return C}; tmX=function(p){var C=p.Y9;p=p.videoData;var V=puL(C,p);C.G("html5_disable_client_autonav_cap_for_onesie")||V.compose(CFv(C,p));return V}; K$=function(p){if(p.videoData.V&&p.videoData.V.T){var C=qT(p);p.nS&&H4Y(p.nS,C)}}; zDv=function(p){var C;return!!(p.G("html5_native_audio_track_switching")&&g.D1&&((C=p.videoData.C)==null?0:px(C)))}; RDL=function(p){if(!zDv(p))return!1;var C;p=(C=p.mediaElement)==null?void 0:C.audioTracks();return!!(p&&p.length>1)}; eDV=function(p){var C=nWH(p);if(C)return p.videoData.getAvailableAudioTracks().find(function(V){return V.K4.getName()===C})}; nWH=function(p){var C;if(p=(C=p.mediaElement)==null?void 0:C.audioTracks())for(C=0;C0&&(C.N5=N.s5)); C.Kx=N.o5;C.Vr=U6(V,{},N.V||void 0,sW(N));C.Qn=hl(N)&&g.$U(V);C.Ti=V.G("html5_catch_errors_for_rollback");$B(N)&&(V.G("html5_sabr_report_partial_segment_estimated_duration")&&(C.EC=!0),C.T=!0,C.y8=V.G("html5_sabr_enable_utc_seek_requests"),C.Y$=V.G("html5_sabr_enable_live_clock_offset"),C.GR=V.G("html5_disable_client_resume_policy_for_sabr"),C.FL=V.G("html5_trigger_loader_when_idle_network"),C.pA=V.G("html5_sabr_parse_live_metadata_playback_boundaries"),C.Pb=V.G("html5_enable_platform_backpressure_with_sabr"), C.Le=V.G("html5_consume_onesie_next_request_policy_for_sabr"),C.gO=V.G("html5_sabr_report_next_ad_break_time"),C.O_=V.G("html5_log_high_res_buffer_timeline"),C.F_=V.G("html5_remove_stuck_slices_beyond_max_buffer_limits"),C.nA=V.G("html5_gapless_sabr_btl_last_slice")&&id(N),Ge(N)?(C.JI=!0,C.Ke=V.G("html5_disable_variability_tracker_for_live"),C.l_=V.G("html5_sabr_use_accurate_slice_info_params"),V.G("html5_simplified_backup_timeout_sabr_live")&&(C.qw=!0,C.W1=C.Kw)):C.MW=V.G("html5_probe_request_on_sabr_request_progress"), C.Bb=V.G("html5_serve_start_seconds_seek_for_post_live_sabr"),C.d7=V.G("html5_flush_index_on_updated_timestamp_offset"),C.b_=V.G("html5_enable_sabr_request_pipelining")&&!g.pf(N),C.Ov=V.G("html5_ignore_partial_segment_from_live_readahead"),C.CA=V.G("html5_use_non_active_broadcast_for_post_live"),C.Wr=V.G("html5_use_centralized_player_time"),C.Qo=V.G("html5_consume_onesie_sabr_seek"),C.sY=V.G("html5_enable_sabr_seek_loader_refactor"),C.bv=V.G("html5_update_segment_start_time_from_media_header"),N.enableServerStitchedDai&& (C.W=!0,C.Rk=V.G("html5_reset_server_stitch_state_for_non_sabr_seek"),C.O5=V.G("html5_remove_ssdai_append_pause"),C.UY=V.G("html5_consume_ssdai_info_with_streaming"),C.o5=V.G("html5_process_all_cuepoints")));C.Y=C.T&&V.G("html5_sabr_live");Mi(V.W,Je.BITRATE)&&(C.qo=NaN);if(a=g.Mz(V.experiments,"html5_request_size_max_kb"))C.R$=a*1024;V.W.S?C.sO="; "+Je.EXPERIMENTAL.name+"=allowed":V.G("html5_enable_cobalt_tunnel_mode")&&(C.sO="; tunnelmode=true");a=N.serverPlaybackStartConfig;(a==null?0:a.enable)&& (a==null?0:a.playbackStartPolicy)&&(C.Kk=!0,I6v(C,a.playbackStartPolicy,2));a=Pij(p);p.Or.removeAll();a:{V=p.lJ.x8;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.cu(p,p.yn.schedule,C,p.videoData.T,p.videoData.V,qT(p),a,p.videoData.enableServerStitchedDai,V,p.videoData.R$);C=p.videoData.G("html5_disable_preload_for_ssdai_with_preroll")&&p.videoData.isDaiEnabled()&&p.Ct()?!0:p.wz&&g.qz(p.yn)&&p.videoData.isLivePlayback;p.nS.initialize(p.getCurrentTime(),qT(p), C);p.videoData.probeUrl&&(p.nS.Y_=p.videoData.probeUrl);if(p.HK.length||p.wz)p.videoData.cotn||Ii(p,!1);rHQ(p.Sr,p.nS);p.NZ&&UxL(p.nS,new g.ms(p.NZ));p.Ze&&(p.nS.yC(p.Ze),p.Sr.D=!1);g.a$(p.videoData)&&(p=p.nS,p.policy.Ym=p.policy.jP)}; f$=function(p){p.nS&&(p.nS.dispose(),p.nS=null,rHQ(p.Sr,null));p.lM()?wxv(p):bY(p)}; wxv=function(p){if(p.Hr)if(p.logger.debug("release media source"),p.Zk(),p.Hr.W)try{p.yn.Gk()&&p.k_("rms",{l:"vprms",sr:p.lM(),rs:Nr(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=qD(C),p.handleError(C),bY(p)}else bY(p)}; bY=function(p,C){C=C===void 0?!1:C;p.Hr&&(p.logger.debug("remove media source"),fUV(p.Hr),p.Zk(C),p.Hr.dispose(),p.Hr=null)}; $AY=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.xo()&&yOv(p.mediaElement);var V=p.mediaElement.Hp(p.NS(),p.jh())}catch(H){if(qpu(p.Ad,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",H);p.Ng("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}p.Zq(V,!1,!1,C)}var N;return((N=p.Hp())==null?void 0:N.V)||null}; LYH=function(p,C){C=C===void 0?!1:C;if(p.nS){var V=p.getCurrentTime()-p.X0();p.nS.seek(V,{J6:C}).gh(function(){})}else kbY(p)}; WYe=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()&&gWY(p,X)}else gWY(p,H);jAy(p.nS,p.Hr,V,N);p.publish("mediasourceattached")}}; gWY=function(p,C){if(p.Hr){p.Hr.Kt(C);var V;(V=p.nS)!=null&&V.policy.Wr&&(V.W=C)}}; dxs=function(p,C){YCS(p,C.reason,C.T.info,C.token,C.videoId)}; QTe=function(p,C){p.k_("newelem",{r:C});p.gI()}; rrv=function(p,C){p.yn.experiments.OY("enable_adb_handling_in_sabr")&&(p.pauseVideo(!0),p.bd(),C&&p.Ng("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; UD=function(p,C){p.publish("internalvideodatachange",C===void 0?"dataupdated":C,p,p.videoData)}; BMv=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.du.U(p.mediaElement,V.value,p.Zv,p);p.yn.FV&&p.mediaElement.fA()&&(p.du.U(p.mediaElement,"webkitplaybacktargetavailabilitychanged",p.sH$,p),p.du.U(p.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",p.Ihx,p))}; pze=function(p){g.Dr(p.mI);GbQ(p)||(p.mI=g.Se(function(){return GbQ(p)},100))}; GbQ=function(p){var C=p.mediaElement;C&&p.Pg&&!p.videoData.sY&&!HH("vfp",p.mM.timerName)&&C.cB()>=2&&!C.isEnded()&&EJ(C.kq())>0&&p.mM.tick("vfp");return(C=p.mediaElement)&&!p.videoData.sY&&C.getDuration()>0&&(C.isPaused()&&C.cB()>=2&&EJ(C.kq())>0&&(HH("pbp",p.mM.timerName)||p.mM.tick("pbp"),!p.videoData.X5||p.Zl||C.isSeeking()||(p.Zl=!0,p.publish("onPlaybackPauseAtStart"))),C=C.getCurrentTime(),VX(p.RF,C))?(p.Yg(),!0):!1}; CWQ=function(p,C,V,N){C=(C+(p.sM===3?.3:0))/V;V=Math.floor(C*4);V>p.sM&&(p.k_("vpq",{q:V,cpn:N||p.videoData.clientPlaybackNonce,ratio:C.toFixed(3)}),p.sM=V)}; V4s=function(p){p.Pc().eq();if(rP(p.videoData)&&Date.now()>p.xf+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.OS(),N=g.bF(C.provider);SZS(C,N,V);V=V.V;isNaN(V)||g.kb(C,N,"e2el",[V.toFixed(3)])}}p.G("html5_alc_live_log_rawlat")?(C=p.videoData,C=g.Of(C.K())?!0:g.eH(C.K())?C.dh==="6":!1):C=g.Of(p.yn);C&&p.k_("rawlat",{l:vO(p.c5,"rawlivelatency").toFixed(3)});p.xf=Date.now()}p.videoData.C&&px(p.videoData.C)&&(C=p.Yh())&&C.videoHeight!== p.NI&&(p.NI=C.videoHeight,YCS(p,"a",je9(p,p.videoData.UY)))}; je9=function(p,C){if(C.T.video.quality==="auto"&&px(C.getInfo())&&p.videoData.QZ)for(var V=g.F(p.videoData.QZ),N=V.next();!N.done;N=V.next())if(N=N.value,N.getHeight()===p.NI&&N.T.video.quality!=="auto")return N.getInfo();return C.getInfo()}; UAe=function(p){if(!rP(p.videoData))return NaN;var C=0;p.nS&&p.videoData.T&&(C=Ge(p.videoData)?p.nS.O2.lc()||0:p.videoData.T.Vn);return(0,g.Ip)()/1E3-p.Ft()-C}; HZe=function(p){p.mediaElement&&p.mediaElement.AU()&&(p.OL=(0,g.Ip)());p.yn.y8?g.F5(function(){Nuu(p)},0):Nuu(p)}; Nuu=function(p){var C;if((C=p.Hr)==null||!C.W_()){if(p.mediaElement)try{p.E1=p.mediaElement.playVideo()}catch(N){OD(p,"err."+N)}if(p.E1){var V=p.E1;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.E1===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);OD(p,H);p.x4=!0;p.videoData.d7=!0}})}}}; OD=function(p,C){g.r(p.playerState,128)||(p.aN(Mr(p.playerState,1028,9)),p.k_("dompaused",{r:C}),p.publish("onAutoplayBlocked"))}; D_=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=$AY(p,V);var X;(X=p.nS)==null||X.resume()}else f$(p),p.videoData.UY&&(N=p.videoData.UY.eP());H=p.mediaElement.EJ();V=!1;H&&H.rI(N)||(Xze(p,N),V=!0);g.r(p.playerState,2)||(N=p.Sr,C=C===void 0?!1:C,N.W||!(N.S>0)||N.mediaElement&&N.mediaElement.getCurrentTime()>0||(C={L1:"seektimeline_resumeTime",J6:C},N.videoData.sY||(C.seekSource=15),N.seekTo(N.S, C)));a:{C=V;if($B(p.videoData)){if(!p.videoData.F4())break a}else if(!g.Jl(p.videoData))break a;if(p.mediaElement)if((N=p.videoData.W)&&p.mediaElement.fA()){H=p.mediaElement.AQ();if(p.K7)if(H!==p.K7.element)AH(p);else if(C&&N.flavor==="fairplay"&&!rm())AH(p);else break a;if(p.G("html5_report_error_for_unsupported_tvos_widevine")&&rm()&&N.flavor==="widevine")p.Ng("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{p.K7=new cIL(H,p.videoData,p.yn);p.K7.subscribe("licenseerror", p.w5,p);p.K7.subscribe("qualitychange",p.cQ$,p);p.K7.subscribe("heartbeatparams",p.Fk,p);p.K7.subscribe("keystatuseschange",p.Lt,p);p.K7.subscribe("ctmp",p.k_,p);p.G("html5_widevine_use_fake_pssh")&&!p.videoData.isLivePlayback&&N.flavor==="widevine"&&p.K7.mj(new X0(ddy,"cenc",!1));C=g.F(p.Or.keys);for(N=C.next();!N.done;N=C.next())N=p.Or.get(N.value),p.K7.mj(N);p.G("html5_eme_loader_sync")||p.Or.removeAll()}}else p.Ng("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return V}; Xze=function(p,C){p.mM.tick("vta");dc("vta",void 0,"video_to_ad");p.getCurrentTime()>0&&CiV(p.Sr,p.getCurrentTime());p.mediaElement.activate(C);p.Hr&&dq(0,4);!p.videoData.sY&&p.playerState.isOrWillBePlaying()&&p.vn.start();if(zDv(p)){var V;if(C=(V=p.mediaElement)==null?void 0:V.audioTracks())C.onchange=function(){p.publish("internalaudioformatchange",p.videoData,!0)}}}; AH=function(p){p.K7&&(p.K7.dispose(),p.K7=null)}; iZ9=function(p){var C=C===void 0?!1:C;p.logger.debug("reattachVideoSource");p.mediaElement&&(p.Hr?(AH(p),bY(p),$AY(p,C)):(p.videoData.UY&&p.videoData.UY.IJ(),p.mediaElement.stopVideo()),p.playVideo())}; hMs=function(p,C){p.yn.G("html5_log_rebuffer_reason")&&(C={r:C,lact:bV()},p.mediaElement&&(C.bh=hK(p.mediaElement)),p.k_("bufreason",C))}; sej=function(p,C){if(p.yn.Gk()&&p.mediaElement){var V=p.mediaElement.jb();V.omt=(p.mediaElement.getCurrentTime()+p.X0()).toFixed(3);V.ps=p.playerState.state.toString(16);V.rt=(g.bF(p.Pc().provider)*1E3).toFixed();V.e=C;p.f5[p.yU++%5]=V}try{if(C==="timeupdate"||C==="progress")return}catch(N){}p.logger.debug(function(){return"video element event "+C})}; aRy=function(p){if(p.yn.Gk()){p.f5.sort(function(N,H){return+N.rt-+H.rt}); for(var C=g.F(p.f5),V=C.next();!V.done;V=C.next())V=V.value,p.k_("vpe",Object.assign({t:V.rt},V));p.f5=[];p.yU=0}}; EXe=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})}}; Ii=function(p,C){var V;(V=p.nS)==null||Ma(V,C)}; U49=function(p,C){return g.pf(p.videoData)&&p.Ze?p.Ze.handleError(C,void 0):!1}; ITY=function(p){W7(p.videoData,"html5_set_debugging_opt_in")&&(p=g.$l(),g.LK(0,183)||(Ww(183,!0),p.save()))}; lRu=function(p){return g.pf(p.videoData)&&p.Ze?h6(p.Ze):p.videoData.Vi()}; b4Y=function(p,C){p.lJ.q3()||(p.k_("sgap",{f:C}),p.lJ.clearQueue(!1,C==="pe"))}; tH=function(p){return p.G("html5_disable_video_player_initiated_seeks")&&$B(p.videoData)}; t4X=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(p);g.R(this,this.events);mj(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}; cDS=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(p);g.R(this,this.events);mj(this.api,"seekToChapterWithAnimation",function(V){C.seekToChapterWithAnimation(V)}); mj(this.api,"seekToTimeWithAnimation",function(V,N){C.seekToTimeWithAnimation(V,N)}); mj(this.api,"renderChapterSeekingAnimation",function(V,N,H){C.api.renderChapterSeekingAnimation(V,N,H)}); mj(this.api,"setMacroMarkers",function(V){C.setMacroMarkers(p,V)}); mj(this.api,"changeMarkerVisibility",function(V,N,H){C.changeMarkerVisibility(V,N,H)}); mj(this.api,"isSameMarkerTypeVisible",function(V){return C.isSameMarkerTypeVisible(V)})}; Tuj=function(p,C,V){var N=p.api.getCurrentTime()*1E30&&H>0&&(V.width+=H,g.Sh(C.element,"width",V.width+"px")));p.size=V}}; g.rL=function(p,C){var V=p.T[p.T.length-1];V!==C&&(p.T.push(C),eM1(p,V,C))}; g.BO=function(p){if(!(p.T.length<=1)){var C=p.T.pop(),V=p.T[0];p.T=[V];eM1(p,C,V,!0)}}; eM1=function(p,C,V,N){PWj(p);C&&(C.unsubscribe("size-change",p.Qa,p),C.unsubscribe("back",p.M3,p));V.subscribe("size-change",p.Qa,p);V.subscribe("back",p.M3,p);if(p.n4){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;nXu(p);g.I9(p.element,H);p.W=new g.N8(function(){wz1(p,C,V,N)},20,p); p.W.start()}else V.u_(p.element),C&&C.detach()}; wz1=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.I9(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()}; PWj=function(p){p.W&&g.XV(p.W);p.D&&g.XV(p.D)}; GE=function(p){g.QX.call(this,p,"ytp-shopping-product-menu");this.Zd=new g.gL(this.N);g.R(this,this.Zd);this.hide();g.rL(this,this.Zd);g.gb(this.N,this.element,4)}; LDv=function(p,C,V){var N,H=C==null?void 0:(N=C.text)==null?void 0:N.simpleText;H&&(V=$dH(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))}; gXa=function(p,C,V){var N,H=C==null?void 0:(N=C.text)==null?void 0:N.simpleText;H&&$dH(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)}; $dH=function(p,C,V,N,H){C=new g.H3(g.XB({},[],!1,!!H),C,V);H&&C.updateValue("secondaryIcon",WDu(H));C.setIcon(WDu(N));g.R(p,C);p.Zd.iJ(C,!0);return C}; WDu=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 U5v();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 IS()}}; pn=function(p){$m.call(this,p,!1,!0);this.isCounterfactual=this.C=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.J=!0;this.overflowButton=new g.w({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.w({L:"img",B:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}}); this.thumbnailImage.hide();g.R(this,this.thumbnailImage);this.thumbnailIcon=new g.w({L:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.R(this,this.thumbnailIcon);this.banner=new g.w({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.sz("suggested_action_view_model"),this.O4$);this.U(this.N,g.aj("suggested_action_view_model"),this.QH$);this.U(this.overflowButton.element,"click",this.W3);this.U(p,"featuredproductdismissed",this.SY);this.N.createServerVe(this.banner.element,this.banner,!0)}; Qes=function(p){p.isInitialized&&(p.enabled=p.isVisible,p.b_=p.isVisible,wL(p),p.Jd(),p.thumbnailImage.F0(p.isVisible),p.shouldHideDismissButton||p.dismissButton.F0(p.isVisible),p.shouldShowOverflowButton&&p.overflowButton.F0(p.isVisible))}; Cn=function(){pn.apply(this,arguments)}; rDv=function(p){hh.call(this,p);this.T=new Cn(this.api);g.R(this,this.T);g.gb(this.api,this.T.element,4)}; jv=function(p){hh.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.YZ(p);g.R(this,V);V.U(p,"internalaudioformatchange",function(N,H){BuL(C,N,H)}); V.U(p,"videoplayerreset",function(){var N;(C.C||C.T&&((N=RH())==null?0:N.size))&&GIu(C)}); V.U(p,"videodatachange",function(N,H){C.onVideoDataChange(N,H)})}; BuL=function(p,C,V){if(V){var N="";p$a(p,C)&&(N=C,p.T||(p.C=C),p.api.G("html5_sabr_enable_server_xtag_selection")&&(V=p.api.getVideoData(void 0,!0)))&&(V.kE=C);p.T&&N&&Chj(p,N)&&jvX(p)!==N&&(VDX([{settingItemId:V$(p),settingOptionValue:{stringValue:C}}]),lt(p.m$(),function(H){a91(H,V$(p),{stringValue:N})}))}}; GIu=function(p){if(p.T){var C;(C=jvX(p))&&Chj(p,C)&&(p=p.api.getVideoData(void 0,!0))&&(p.kE=C)}else if(C=p.api.getVideoData(void 0,!0))C.kE=p.C}; NRj=function(p){t5(lt(lt(p.m$(),function(C){return hI9(C,[V$(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&&VDX([{settingItemId:V,settingOptionValue:N}])}}}),function(){p.V=!0})}; p$a=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}; jvX=function(p){p=V$(p);var C=RH();p=C?C.get(p):void 0;return p&&p.stringValue?p.stringValue:""}; V$=function(p){var C=(484).toString();p.api.K().o5&&(C=(483).toString());return C}; Chj=function(p,C){var V;return C.split(".")[0]!==""&&((V=p.api.getVideoData())==null?void 0:!ix(V))}; VDX=function(p){var C=RH();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.NA=function(p,C,V,N,H,X,d){g.H3.call(this,g.XB({"aria-haspopup":"true"}),C,p);this.xM=N;this.J=!1;this.V=null;this.options={};this.C=new g.gL(V,void 0,p,H,X,d);g.R(this,this.C);this.listen("keydown",this.LX);this.listen("click",this.open)}; Hvj=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}}; X$H=function(p,C){g.NA.call(this,"Timer de suspens\u00e3o",g.Sm.SLEEP_TIMER,p,C);this.N=p;this.Z={};this.W=this.SB("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.w({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.Id_);p.createClientVe(this.element,this,218889);this.Pr();this.N.Jk("onSleepTimerFeatureAvailable")}; dby=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.Zr(g.bZ(C,p.SB));p.Z=g.tB(C,p.SB,p);C=p.SB("End of video");p.options[C]&&g.Nl(p.options[C],p.S)}; ivj=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.NA.prototype.qn.call(p,C),p.Ag(C),p.N.Jk("onSleepTimerSettingsChanged",V)):p.N.Jk("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}; Hx=function(p){hh.call(this,p);var C=this;p.addEventListener("settingsMenuInitialized",function(){C.menuItem||(C.menuItem=new X$H(C.api,C.api.uF()),g.R(C,C.menuItem))}); p.addEventListener("openSettingsMenuItem",function(V){if(V==="menu_item_sleep_timer"){if(!C.menuItem){var N;(N=C.api.uF())==null||N.hc()}C.menuItem.open()}}); mj(p,"resetSleepTimerMenuSettings",function(){C.resetSleepTimerMenuSettings()}); mj(p,"setSleepTimerTimeLeft",function(V){C.setSleepTimerTimeLeft(V)}); mj(p,"setVideoTimeLeft",function(V){C.setVideoTimeLeft(V)})}; hyQ=function(p){hh.call(this,p);var C=this;this.events=new g.YZ(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.dM=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.Vf&&this.target.setAttribute("draggable","true"),H||(this.target.style.touchAction="none"));Xk(this)}; ii=function(p){g.Am(p.S,!p.T)}; Xk=function(p){p.W=null;p.Y=null;p.U(hr("over"),p.Hn);p.U("touchstart",p.Bq);p.T&&p.U(hr("down"),p.MaY)}; svH=function(p,C){for(var V=0;VH.start&&V>=5;Z+=q}J=Z.substr(0,4)+" "+Z.substr(4,4)+" "+Z.substr(8,4)+" "+(Z.substr(12,4)+" "+Z.substr(16, 4))}else J="";E={video_id_and_cpn:String(C.videoId)+" / "+J,codecs:"",dims_and_frames:"",bandwidth_kbps:E.toFixed(0)+" Kbps",buffer_health_seconds:t.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:c?"":"display:none",drm:c,debug_info:V,extra_debug_info:"",bandwidth_style:M,network_activity_style:M,network_activity_bytes:l.toFixed(0)+" KB",shader_info:T,shader_info_style:T?"":"display:none",playback_categories:""};l=N.clientWidth+"x"+N.clientHeight+(H>1?"*"+H.toFixed(2):"");t="-";d.totalVideoFrames&& (t=(d.droppedVideoFrames||0)+" dropped of "+d.totalVideoFrames);E.dims_and_frames=l+" / "+t;p=p.getVolume();d=MoX(C);var Y;l=((Y=C.S)==null?0:Y.audio.T)?"DRC":Math.round(p*d)+"%";Y=Math.round(p)+"% / "+l;p=C.DS.toFixed(1);isFinite(Number(p))&&(Y+=" (content loudness "+p+"dB)");E.volume=Y;E.resolution=N.videoWidth+"x"+N.videoHeight;if(N=C.C){if(Y=N.video)p=Y.fps,p>1&&(E.resolution+="@"+p),(p=X.O7e)&&p.video&&(E.resolution+=" / "+p.video.width+"x"+p.video.height,p.video.fps>1&&(E.resolution+="@"+p.video.fps)), E.codecs=cov(N),!C.S||N.audio&&N.video?N.hT&&(E.codecs+=" / "+N.hT+"A"):E.codecs+=" / "+cov(C.S),Y.C||Y.primaries?(p=Y.C||"unknown",p==="smpte2084"?p+=" (PQ)":p==="arib-std-b67"&&(p+=" (HLG)"),E.color=p+" / "+(Y.primaries||"unknown"),E.color_style=""):E.color_style="display:none";if(N.debugInfo)for(E.fmt_debug_info="",N=g.F(N.debugInfo),Y=N.next();!Y.done;Y=N.next())Y=Y.value,E.fmt_debug_info+=Y.label+":"+Y.text+" ";E.fmt_debug_info_style=E.fmt_debug_info&&E.fmt_debug_info.length>0?"":"display:none"}N= C.isLivePlayback;Y=C.EO;E.live_mode_style=N||Y?"":"display:none";E.live_latency_style=N?"":"display:none";if(Y)E.live_mode="Post-Live"+(Ge(C)?" Manifestless":"");else if(N){Y=vO(a,"livelatency");E.live_latency_secs=Y.toFixed(2)+"s";N=Ge(C)?"Manifestless, ":"";C.Wr&&(N+="Windowed, ");p="Uncertain";if(Y>=0&&Y<120)if(C.latencyClass&&C.latencyClass!=="UNKNOWN")switch(C.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=C.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";N+=p;(Y=X.aQx)&&(N+=", seq "+Y.sequence);E.live_mode=N}!X.isGapless||id(C)&&X.q3||(E.playback_categories+="Gapless ");E.playback_categories_style=E.playback_categories?"":"display:none";E.bandwidth_samples=m5(a,"bandwidth");E.network_activity_samples=m5(a,"networkactivity");E.live_latency_samples=m5(a,"livelatency");E.buffer_health_samples=m5(a,"bufferhealth");X=g.a$(C); if(C.cotn||X)E.cotn_and_local_media=(C.cotn?C.cotn:"null")+" / "+X;E.cotn_and_local_media_style=E.cotn_and_local_media?"":"display:none";W7(C,"web_player_release_debug")?(E.release_name="youtube.player.web_20250106_01_RC01",E.release_style=""):E.release_style="display:none";E.debug_info&&S.length>0&&E.debug_info.length+S.length<=60?E.debug_info+=" "+S:E.extra_debug_info=S;E.extra_debug_info_style=E.extra_debug_info&&E.extra_debug_info.length>0?"":"display:none";return E}; cov=function(p){var C=/codecs="([^"]*)"/.exec(p.mimeType);return C&&C[1]?C[1]+" ("+p.itag+")":p.itag}; Tb=function(p,C,V,N,H){g.w.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"}; MA=function(p,C){if(p.heightPx===-1){var V=null;try{V=g.dW("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.so(C.V.element);N.classList.add("ytp-timely-actions-overlay");C.V.element.appendChild(N)}); g.R(this,this.V);g.gb(this.api,this.V.element,4)}; yoY=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},{}))}; Fk=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}}; qaa=function(p,C){if((p=Fk(p,C))&&p.onCueRangeExit)return Lm(p.onCueRangeExit)}; IiV=function(p){if(p.T!==void 0){var C=(C=Fk(p,p.T))&&C.onCueRangeEnter?Lm(C.onCueRangeEnter):void 0;var V=Fk(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]++)}}; Uby=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}; fi9=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,bvL);if(C!=null&&C.timelyActions)return C==null?void 0:C.timelyActions.map(function(N){return g.n(N,AoY)}).filter(function(N){return!!N})}}; oaY=function(p){hh.call(this,p);var C=this;vk(this.api,"getPlaybackRate",function(){return C.api.getPlaybackRate()}); vk(this.api,"setPlaybackRate",function(V){typeof V==="number"&&C.api.setPlaybackRate(V)})}; k8s=function(p){p=p.i9();if(!p)return!1;p=g.sk(p).exp||"";return p.includes("xpv")||p.includes("xpe")}; xbL=function(p){p=g.F(g.Sv(p,!0));for(var C=p.next();!C.done;C=p.next())if(k8s(C.value))return!0;return!1}; Yaa=function(p,C){p=g.F(g.Sv(p,!0));for(var V=p.next();!V.done;V=p.next())if(V=V.value,k8s(V)){var N={potc:"1",pot:C};V.url&&(V.url=aK(V.url,N))}}; zyj=function(p){var C=!1;p.Z5(150);p.Rq().finally(function(){C=!0}); return{isReady:function(){return C}, qS:function(V){return p.qS({Ou:V.Ou,jf:!0,XH:!0,gi:V.gi?{ZU:V.gi.ZU,PW:V.gi.PW,Px:V.gi.Px}:void 0})}, ready:function(){return g.I(function(V){if(V.C==1)return g.vv(V,2),g.y(V,p.Rq(),4);if(V.C!=2)return g.Fe(V,0);g.Sa(V);g.JQ(V)})}, start:function(){}}}; RyQ=function(p){var C=new Eqe,V={},N=(V["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",V);return new xN(C,p,function(){return N})}; DT=function(p){hh.call(this,p);var C=this;this.useLivingRoomPoToken=!1;this.S=new g.u3;this.mM=null;this.Y=!1;this.C=null;this.V=!1;var V=p.K().getWebPlayerContextConfig();this.events=new g.YZ(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.Jm(X):C.G("html5_generate_session_po_token")&&naL(C));C.C||C.api.k_("stp",{s:+C.Y,b:+C.V})}); this.events.U(p,"poTokenVideoBindingChange",function(N){C.Jm(N)}); this.useLivingRoomPoToken=!(V==null||!V.useLivingRoomPoToken);p.addEventListener("csiinitialized",function(){C.mM=p.e5();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"))eyL(C);else if(N){C.mM.xB("pot_isc");C.G("html5_new_wpo_client")||PhL(C);var H=g.Mz(C.api.K().experiments,"html5_webpo_kaios_defer_timeout_ms");H?g.F5(function(){Kn(C)},H):C.G("html5_webpo_idle_priority_job")?g.Vl(g.HW(),function(){Kn(C)}): Kn(C)}}catch(X){X instanceof Error&&g.eG(X)}}); p.addEventListener("trackListLoaded",this.N3.bind(this));p.zg(this)}; w$V=function(p){var C=Wb(p.experiments,"html5_web_po_request_key");return C?C:g.qz(p)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; $bv=function(p){var C=new H2(p);return Object.assign({},zyj(C),{fS:function(){return C.fS()}, dispose:function(){return void C.dispose()}})}; ui=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)}}; eyL=function(p){var C,V;g.I(function(N){if(N.C==1)return ui(p,"swpo_i"),p.D=ZGv(),ZT(p),g.y(N,zo(),2);if(N.C!=3)return C=N.T,ui(p,"swpo_co"),g.y(N,ihu(C),3);V=N.T;p.T=zyj(V);ui(p,"swpo_cc");p.T.ready().then(function(){p.S.resolve();ui(p,"swpo_re")}); g.F5(function(){Kn(p);ui(p,"swpo_si")},0); g.JQ(N)})}; PhL=function(p){var C=p.api.K(),V=w$V(C),N=RyQ(V);C=new Hs({lK:V,Ii:N,onEvent:function(H){(H=LRH[H])&&p.mM.xB(H)}, onError:g.eG,mL:K$L(C.experiments),pF:function(){return void p.api.k_("itr",{})}, H9$: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}; gaH=function(p){var C=p.api.K(),V=RyQ(w$V(C)),N=V.Pt.bind(V);V.Pt=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 YN({Ii:V,hM:{maxAttempts:5},iC:{disable:C.experiments.OY("html5_web_po_disable_remote_logging"),Sk:K$L(C.experiments),Fxe:p.G("wpo_dis_lfdms")?0:1E3},JQe:g.eG});var X=$bv({o6:H,Ii: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()}}; Kn=function(p){var C=p.api.K();p.mM.xB("pot_ist");p.T?p.T.start():p.G("html5_new_wpo_client")&&gaH(p);p.G("html5_bandaid_attach_content_po_token")||(ZT(p),naL(p),C=g.Mz(C.experiments,"html5_session_po_token_interval_time_ms")||0,C>0&&(p.W=g.Se(function(){ZT(p)},C)),p.Y=!0)}; ZT=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.o5?C.datasyncId:V;H=Wb(C.experiments,"html5_mock_content_binding_for_session_token")||C.livingRoomPoTokenId||N;C.cR=UC(p,H);g.JQ(X)})}; UC=function(p,C){if(!p.T)return p.D?p.D(C):"";try{var V=p.T.isReady();p.mM.xB(V?"pot_cms":"pot_csms");var N="";N=p.G("html5_web_po_token_disable_caching")?p.T.qS({Ou:C}):p.T.qS({Ou:C,gi:{ZU:C,ta$:150,PW:!0,Px:!0}});p.mM.xB(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;(X=p.api.app.X$())==null||X.vC(!1)}}return N}catch(d){return g.eG(d),""}}; naL=function(p){p.T&&(p.C=new XO,p.T.ready().then(function(){p.mM.xB("pot_if");ZT(p)}))}; WR9=function(p){hh.call(this,p);var C=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.YZ(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}}); mj(p,"setFreePreviewWatchedDuration",function(V){C.freePreviewWatchedDuration=V}); mj(p,"setFreePreviewUsageDetails",function(V){C.freePreviewUsageDetails=V})}; fn=function(p){g.z.call(this);this.features=[];var C=this.T,V=new Yv(p),N=new sO(p),H=new Ym(p),X=new DT(p);var d=g.Of(p.K())?void 0:new y7(p);var a=new xm(p),E=new mbX(p),l=new oaY(p),t=new xv(p);var c=g.Of(p.K())?new WR9(p):void 0;var T=p.G("html5_enable_ssap")?new tDX(p):void 0;var M=p.G("web_cinematic_watch_settings")&&(M=p.K().getWebPlayerContextConfig())!=null&&M.cinematicSettingsAvailable?new uT(p):void 0;var J=new kv(p);var S=p.G("enable_courses_player_overlay_purchase")?new UtX(p):void 0; var D=g.wG(p.K())?new KpQ(p):void 0;var Z=new ql(p);var f=p.K().S?new M5s(p):void 0;var q=g.KI(p.K())?new Tz1(p):void 0;var A=p.G("web_player_move_autonav_toggle")&&p.K().sO?new hPL(p):void 0;var Y=g.wG(p.K())?new cDS(p):void 0;var W=p.G("web_enable_speedmaster")&&g.wG(p.K())?new EC(p):void 0;var L=p.K().oz?void 0:new Zve(p);var VL=p.G("report_pml_debug_signal")?new HpQ(p):void 0;var au=new fRH(p),Q=new et(p);var e=p.G("enable_web_player_player_in_bar_feature")&&g.$U(p.K())?new YRS(p):void 0;var G= p.K().playerStyle==="flix"?new Ops(p):void 0;var m=navigator.mediaSession&&window.MediaMetadata&&p.K().QV?new oi(p):void 0;var P=p.G("html5_enable_drc")&&!p.K().Y?new OO(p):void 0;var p0=new EO(p),Sy;a:{var V8=p.K();if(V8.Y&&(V8=(Sy=V8.getWebPlayerContextConfig())==null?void 0:Sy.houseBrandEnvironment,V8==="apps-elements"||V8==="apps-elements-flix")){Sy=new f0X(p);break a}Sy=void 0}V8=g.wG(p.K())?new rDv(p):void 0;var fY=p.G("html5_enable_d6de4")?new zE(p):void 0;var jy=g.wG(p.K())&&p.G("web_sleep_timer")? new Hx(p):void 0;var c5=g.KI(p.K())?new mt9(p):void 0;var r1=new jv(p),u=new ZM(p),U=new t4X(p);var O=p.K().Y?new bpX(p):void 0;var b=p.G("enable_sabr_snackbar_message")?new hyQ(p):void 0;var x=p.G("web_enable_timely_actions")?new OvL(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,Y,W,L,VL,au,Q,e,G,m,P,p0,Sy,V8,fY,jy,c5,void 0,r1,u,U,O,b,x,new UO(p))}; OC=function(){this.C=this.T=NaN}; QvQ=function(p,C){this.yn=p;this.timerName="";this.V=!1;this.C=NaN;this.S=new OC;this.T=C||null;this.V=!1}; ro1=function(p,C,V){var N=g.Oe(C.I$)&&!C.I$.Y;if(C.I$.F5&&(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.e5();for(var H=g.F(Object.keys(N)),X=H.next();!X.done;X=H.next())X=X.value,jL(X,N[X],p.timerName);N=g.NU(PNa)(p.T.AR);g.V3(N,p.timerName);N=p.T;N.C={};N.AR={}}g.V3({playerInfo:{visibilityState:g.NU(eVa)()},playerType:"LATENCY_PLAYER_HTML5"}, p.timerName);p.W!==C.clientPlaybackNonce||Number.isNaN(p.C)||(HH("_start",p.timerName)?V=g.NU(r3)("_start",p.timerName)+p.C:g.eG(new g.Bw("attempted to log gapless pbs before CSI timeline started",{cpn:C.clientPlaybackNonce})));V&&!HH("pbs",p.timerName)&&p.tick("pbs",V)}}; BRs=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.xd;var a={};if(N==null?0:N.Y)a.cttAuthInfo={token:N.Y,videoId:N.videoId};H&&(a.startTime=H);NR(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.V3(N,p);jL("pbs",d!=null?d:(0,g.Ip)(),p)}}; y$=function(p){pCV();G4y();p.timerName=""}; G8e=function(p){if(p.T){var C=p.T;C.C={};C.AR={}}p.V=!1;p.W=void 0;p.C=NaN}; pNY=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(","):[]}; CjH=function(p){return!!(p.playlist||p.list||p.api)}; jCe=function(p){var C=p.index+1;return C>=p.length?0:C}; VM9=function(p){var C=p.index-1;return C<0?p.length-1:C}; g.qA=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.qO=!0,H.startSeconds=p.startSeconds||H.clipStart||0,p.listId&&(H.playlistId=p.listId.toString()));return H}; NJQ=function(p,C){p.index=g.M$(C,0,p.length-1);p.startSeconds=0}; H7L=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.qA(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()}}; i7u=function(p,C){var V,N,H,X,d,a,E;return g.I(function(l){if(l.C==1){V=g.FA();var t=p.K(),c={context:g.Mh(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};XNQ(t,J,C,A);c.playlistRequest=A}else C.playlist?(A={templistVideoIds:C.playlist.toString().split(",")}, XNQ(t,J,C,A),c.playlistRequest=A):J&&(A={videoId:J},t&&(A.serializedThirdPartyEmbedConfig=t),c.singleVideoRequest=A);N=c;H=g.Un(dSY);g.vv(l,2);return g.y(l,g.s0(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&&ZF(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)})}; XNQ=function(p,C,V,N){V.index&&(N.playlistIndex=String(Number(V.index)+1));N.videoId=C?C:"";p&&(N.serializedThirdPartyEmbedConfig=p)}; g.bi=function(p,C){IT.get(p);IT.set(p,C)}; g.Ar=function(p){g.ca.call(this);this.loaded=!1;this.player=p}; h19=function(){this.C=[];this.T=[]}; g.Sv=function(p,C){return C?p.T.concat(p.C):p.T}; g.oT=function(p,C){switch(C.kind){case "asr":sCe(C,p.C);break;default:sCe(C,p.T)}}; sCe=function(p,C){g.L0(C,function(V){return p.rI(V)})||C.push(p)}; g.kW=function(p){g.z.call(this);this.ea=p;this.T=new h19;this.S=null;this.W=[];this.J=[]}; g.xW=function(p,C,V){g.kW.call(this,p);this.videoData=C;this.audioTrack=V;this.C=null;this.V=!1;this.W=C.RX;this.J=C.Zp;this.V=g.jQ(C)}; g.YW=function(p,C){return Nf(p.info.mimeType)?C?p.info.itag===C:!0:!1}; g.aNv=function(p,C){if(p.T!=null&&g.Of(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.YW(V,"386")}); p=!!p.T&&!p.T.isManifestless&&g.brX(p.T);return C||p}; g.zb=function(p,C,V,N,H,X){g.kW.call(this,p);this.videoId=V;this.UQ=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})}; EfS=function(p,C){this.C=p;this.T=C;this.onFailure=void 0}; lN9=function(p,C){return{HW:p.HW&&C.HW,TN:p.TN&&C.TN,sync:p.sync&&C.sync,streaming:p.streaming&&C.streaming}}; nn=function(p,C){var V=tMe,N=this;this.path=p;this.V=C;this.S=V;this.capabilities={HW:!!this.V,TN:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.W=new EfS([{name:"compileStreaming",condition:function(H){return!!N.C&&H.streaming}, vj:function(){return WebAssembly.compileStreaming(fetch(N.path))}, onFailure:function(){return N.capabilities.streaming=!1}}, {name:"sync",condition:function(H){return H.sync}, vj:function(){return lt(cXu(N),RT.dG("wmcs",function(H){return new WebAssembly.Module(H)}))}, onFailure:function(){return N.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, vj:function(){return lt(cXu(N),RT.dG("wmca",function(H){return WebAssembly.compile(H)}))}, onFailure:function(){return N.capabilities.TN=!1}}]); this.Y=new EfS([{name:"instantiateStreaming",condition:function(H){return H.TN&&H.streaming&&!N.C&&!N.T}, vj:function(H,X){return RT.DI("wmix",function(){return WebAssembly.instantiateStreaming(fetch(N.path),X)}).then(function(d){N.T=h5(d.module); return{instance:d.instance,x$:!1}})}, onFailure:function(){return N.capabilities.streaming=!1}}, {name:"sync",condition:function(H){return H.TN&&H.sync}, vj:function(H,X){return lt(TJV(N,H),RT.dG("wmis",function(d){return{instance:new WebAssembly.Instance(d,X),x$:!1}}))}, onFailure:function(){return N.capabilities.sync=!1}}, {name:"async",condition:function(H){return H.TN}, vj:function(H,X){return lt(lt(TJV(N,H),RT.dG("wmia",function(d){return WebAssembly.instantiate(d,X)})),function(d){return{instance:d, x$:!1}})}, onFailure:function(){return N.capabilities.TN=!1}}, {name:"asmjs",condition:function(H){return H.HW}, vj:function(H,X){return h5(RT.DI("wmij",function(){return N.V(X)}).then(function(d){return{instance:{exports:d}, x$:!0}}))}, onFailure:function(){return N.capabilities.HW=!1}}],function(H,X,d){return N.S(d,H.instance.exports)})}; mSs=function(p){var C=MM1;return C.instantiate(p?lN9(C.capabilities,p):C.capabilities,new JXy)}; cXu=function(p){if(p.C)return p.C;var C=fetch(p.path).then(function(V){return V.arrayBuffer()}).then(function(V){p.C=h5(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=h5(C);return p.C}; TJV=function(p,C){if(!C.TN)return si(Error("wasm unavailable"));if(p.T)return p.T;p.T=t5(lt(p.compile(C),function(V){p.T=h5(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}; vfY=function(){}; FPv=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&&Bx;return!(!C&&!p)}; iW=function(p,C){return!p.api.isInline()&&!HDe(p,yc(C))&&g.b$(C)}; Nvj=function(p){p.DZ.jY();if(p.pK&&p.q7)p.q7=!1;else if(!p.api.K().Ga&&!p.WS()){var C=p.api.getPlayerStateObject();g.r(C,2)&&g.zC(p.api)||p.nh(C);!p.api.K().Hc||C.isCued()||g.r(C,1024)?p.Yn():p.GX.isActive()?(p.Qj(),p.GX.stop()):p.GX.start()}}; dEH=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.b$(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.Yn(),!0):!1}; iDy=function(p,C,V){p.api.isFullscreen()?V<1-C&&p.api.toggleFullscreen():V>1+C&&p.api.toggleFullscreen()}; VCH=function(p){var C=Wd()&&LO()>=67&&!p.api.K().J;p=p.api.K().disableOrganicUi;return!g.gm("tizen")&&!rB&&!C&&!p}; hD=function(p,C){C=C===void 0?2:C;g.ca.call(this);this.api=p;this.T=null;this.FO=new I_(this);g.R(this,this.FO);this.C=spa;this.FO.U(this.api,"presentingplayerstatechange",this.pX);this.T=this.FO.U(this.api,"progresssync",this.va);this.rj=C;this.rj===1&&this.va()}; g.sR=function(p){g.w.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()}; ER=function(p,C,V){if(C<=0){V=x0();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";ae(p,V,C,N+"%")}; h9H=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"}}]}:ZKv();var V=p.N.getPlaybackRate(),N=g.FY("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(V)});ae(p,C,N,V+"x")}; sQX=function(p,C){C=C?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";ae(p,EEv(),C)}; ae=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)}; aOj=function(p,C){g.w.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")?OKY():{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.i$(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.FMY);this.Tn(!0)}; EyH=function(p,C){g.w.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:[OKY()]},{L:"span",B:"ytp-cards-teaser-label",Ak:"{{text}}"},{L:"button",B:"ytp-cards-teaser-close-button",X:{"aria-label":"Fechar"},j:[g.fq()]}]:[{L:"span",B:"ytp-cards-teaser-label",Ak:"{{text}}"}]}]});var V=this;this.N=p; this.TW=C;this.S=new g.i$(this,250,!1,250);this.T=null;this.J=new g.N8(this.xZn,300,this);this.D=new g.N8(this.Acr,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.P3),this.U(this.rV("ytp-cards-teaser-info-icon"),"click",this.yE),this.U(this.rV("ytp-cards-teaser-label"),"click",this.yE)):this.listen("click",this.yE);this.U(C.element,"mouseover",this.FX);this.U(C.element,"mouseout",this.XX);this.U(p,"cardsteasershow", this.Wg_);this.U(p,"cardsteaserhide",this.f4);this.U(p,"cardstatechange",this.cM);this.U(p,"presentingplayerstatechange",this.cM);this.U(p,"appresize",this.U9);this.U(p,"onShowControls",this.U9);this.U(p,"onHideControls",this.xF);this.listen("mouseenter",this.RP)}; lOX=function(p){g.w.call(this,{L:"button",i_:[lW.BUTTON,lW.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},j:[{L:"div",B:lW.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.qy()]},{L:"div",B:lW.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")}; tCe=function(p,C){p.T=C;p.element.classList.toggle(lW.NOTIFICATIONS_ENABLED,p.T);var V=p.api.getVideoData();V?(C=C?V.Co:V.kW)?(p=p.api.m$())?hd(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."))}; Tv9=function(p,C,V){var N=N===void 0?800:N;var H=H===void 0?600:H;p=cFv(p,C);if(p=g.LH(window,p,"loginPopup","width="+N+",height="+H+",resizable=yes,scrollbars=yes"))Zd1(function(){V()}),p.moveTo((screen.width-N)/2,(screen.height-H)/2)}; cFv=function(p,C){var V=document.location.protocol;return qQL(V+"//"+p+"/signin?context=popup","feature",C,"next",V+"//"+location.hostname+"/post_login")}; g.tD=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.w.call(this,{L:"div",i_:["ytp-button","ytp-sb"],j:[{L:"div",B:"ytp-sb-subscribe",X:M?{title:g.FY("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.FY("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 Y;g.yC.isInitialized()&&(Y=Sry(A));A=Y||"";if(Y=t.getVideoData())if(Y=Y.subscribeCommand){var W=t.m$();W?(hd(W,Y,{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 Tv9(g.zM(J.N.K()),"sb_button",J.S)},f=function(){var q=J.channelId; if(E||l){var A=t.getVideoData();hd(t.m$(),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&&(Wwj(t),kj(t,S,this),kj(t,D,this))}else g.Ed(S,"ytp-sb-disabled"),g.Ed(D,"ytp-sb-disabled")}; mES=function(p){g.w.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())&&MCV(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.LH(window,JFv(C));V.preventDefault()}); this.U(this.C,"click",this.h6_);this.Pr()}; vyX=function(p){if(!p.api.K().MW){var C=p.api.getVideoData(),V=new g.tD("Inscreva-se",null,"Inscrito",null,!0,!1,C.Qv,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 lOX(p.api);p.T=H;g.R(p,H);H.u_(p.W);H.hide();p.U(p.api,"SUBSCRIBE",function(){C.yv&&(H.show(),p.api.logVisibility(H.element,!0))}); p.U(p.api,"UNSUBSCRIBE",function(){C.yv&&(H.hide(),p.api.logVisibility(H.element,!1),tCe(H,!1))})}}; MCV=function(p){var C=p.api.K();vyX(p);p.updateValue("flyoutUnfocusable","true");p.updateValue("channelTitleFocusable","-1");p.updateValue("shouldHideExpandedTitleForA11y","true");p.updateValue("shouldHideExpandedSubtitleForA11y","true");C.C||C.Y_||(p.U(p.channel,"mouseenter",p.eh),p.U(p.channel,"mouseleave",p.gq),p.U(p.channel,"focusin",p.eh),p.U(p.channel,"focusout",function(V){p.channel.contains(V.relatedTarget)||p.gq()})); 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,Ffu,function(){SmX(p)}); p.U(p.api,"onHideControls",p.q_);p.U(p.api,"appresize",p.q_);p.U(p.api,"fullscreentoggled",p.q_)}; SmX=function(p){p.channel.classList.remove("ytp-title-show-collapsed");p.channel.classList.remove("ytp-title-show-expanded")}; KfX=function(p){var C=p.api.getPlayerSize();return g.KI(p.api.K())&&C.width>=524}; JFv=function(p){var C=p.api.K(),V=p.api.getVideoData(),N=g.GM(C)+V.bx;g.ck(V)&&(N="https://music.youtube.com"+V.bx);if(!g.KI(C))return N;C={};g.SQ(p.api,"addEmbedsConversionTrackingParams",[C]);return g.BX(N,C)}; cz=function(p){var C=g.XB({"aria-haspopup":"true"});g.H3.call(this,C,p);this.listen("keydown",this.T)}; TI=function(p,C){p.element.setAttribute("aria-haspopup",String(C))}; DE9=function(p,C){g.w.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().MW?"":"Fazer login no YouTube"}]}]}]});this.ea=p;this.T=C;p.K().sY||p.K().MW||this.U(this.rV("ytp-user-info-panel-login"),"click",this.D7);this.closeButton=new g.w({L:"button",i_:["ytp-collapse","ytp-button"], X:{title:"Fechar"},j:[g.k0()]});this.closeButton.u_(this.element);g.R(this,this.closeButton);this.U(window,"blur",this.hide);this.U(document,"click",this.YU);this.Pr()}; ZDX=function(p,C,V){g.gL.call(this,p);this.xM=C;this.WV=V;this.getVideoUrl=new cz(6);this.pk=new cz(5);this.fk=new cz(4);this.jb=new cz(3);this.Uy=new g.H3(g.XB({href:"{{href}}",target:this.N.K().Z},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.H3(g.XB(),1,"Estat\u00edsticas para nerds");this.Xp=new g.va({L:"div",i_:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},Ak:"{{text}}"});this.Oa=new L$(this.N,this.Xp);this.Kh=this.lO=null;g.KI(this.N.K())&& (this.closeButton=new g.w({L:"button",i_:["ytp-collapse","ytp-button"],X:{title:"Fechar"},j:[g.k0()]}),g.R(this,this.closeButton),this.closeButton.u_(this.element),this.closeButton.listen("click",this.Vp,this));g.KI(this.N.K())&&(this.Uh=new g.H3(g.XB(),8,"Conta"),g.R(this,this.Uh),this.iJ(this.Uh,!0),this.Uh.listen("click",this.ria,this),p.createClientVe(this.Uh.element,this.Uh,137682));this.N.K().Z_&&(this.LM=new TJ("Loop",7),g.R(this,this.LM),this.iJ(this.LM,!0),this.LM.listen("click",this.TYk, this),p.createClientVe(this.LM.element,this.LM,28661));g.R(this,this.getVideoUrl);this.iJ(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.jHk,this);p.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.R(this,this.pk);this.iJ(this.pk,!0);this.pk.listen("click",this.Xcn,this);p.createClientVe(this.pk.element,this.pk,28660);g.R(this,this.fk);this.iJ(this.fk,!0);this.fk.listen("click",this.dWn,this);p.createClientVe(this.fk.element,this.fk,28658);g.R(this,this.jb);this.iJ(this.jb, !0);this.jb.listen("click",this.oM$,this);g.R(this,this.Uy);this.iJ(this.Uy,!0);this.Uy.listen("click",this.wax,this);g.R(this,this.showVideoInfo);this.iJ(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.VdS,this);g.R(this,this.Xp);this.Xp.listen("click",this.R6_,this);g.R(this,this.Oa);C=document.queryCommandSupported&&document.queryCommandSupported("copy");LyQ("Chromium")>=43&&(C=!0);LyQ("Firefox")<=40&&(C=!1);C&&(this.lO=new g.w({L:"textarea",B:"ytp-html5-clipboard",X:{readonly:"", tabindex:"-1"}}),g.R(this,this.lO),this.lO.u_(this.element));var N;(N=this.Uh)==null||N.setIcon(bKv());var H;(H=this.LM)==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.jb.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.Uy.setIcon(U5v());this.showVideoInfo.setIcon(f3S());this.U(p,"onLoopChange",this.onLoopChange);this.U(p,"videodatachange",this.onVideoDataChange);u7Y(this);this.xV(this.N.getVideoData())}; Md=function(p,C){var V=!1;if(p.lO){var N=p.lO.element;N.value=C;N.select();try{V=document.execCommand("copy")}catch(H){}}V?p.xM.f4():(p.Xp.Jc(C,"text"),g.rL(p.xM,p.Oa),FB(p.Xp.element),p.lO&&(p.lO=null,u7Y(p)));return V}; u7Y=function(p){var C=!!p.lO;g.Nl(p.jb,C?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");TI(p.jb,!C);g.Nl(p.fk,C?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");TI(p.fk,!C);g.Nl(p.getVideoUrl,C?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");TI(p.getVideoUrl,!C);g.Nl(p.pk,C?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");TI(p.pk,!C);p.fk.setIcon(C?D5a(): null);p.getVideoUrl.setIcon(C?Oy():null);p.pk.setIcon(C?Oy():null)}; UES=function(p){return g.KI(p.N.K())?p.Uh:p.LM}; OD9=function(p,C){g.QX.call(this,p);this.WV=C;this.S=new g.YZ(this);this.b_=new g.N8(this.H7n,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");fOH(this);this.hide()}; fOH=function(p){g.Am(p.S);var C=p.N.K();C.playerStyle==="gvn"||C.C||C.Y_||(C=p.N.dV(),p.S.U(C,"contextmenu",p.pcV),p.S.U(C,"touchstart",p.tG,null,!0),p.S.U(C,"touchmove",p.KB,null,!0),p.S.U(C,"touchend",p.KB,null,!0))}; yFv=function(p){p.N.isFullscreen()?g.gb(p.N,p.element,10):p.u_(Cc(p).body)}; JD=function(p,C,V){V=V===void 0?240:V;g.w.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.o$(this.tooltip,this.element))}; qmL=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.qr&&!g.t_(V)&&!p.api.isEmbedsShortsMode()&&!C}; IOS=function(p){p.updateValue("icon",uq());if(p.api.K().C)p.tooltip.Ch(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.JU();p.tooltip.Ch(p.element);var C=p.listen("mouseleave",function(){p.rY(C);p.Pr();p.tooltip.k5()})}}; bDu=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.dW("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.w.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")}; vz=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";AFv(p,p.W?p.V:V)}; oye=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"}; AFv=function(p,C){C=g.FY("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:C.toString()});p.updateValue("seekTime",C)}; kSL=function(p){$m.call(this,p,!1,!0);this.Vn=[];this.Hc=[];this.J=!0;this.badge.element.classList.add("ytp-featured-product");this.Sa=new g.w({L:"div",B:"ytp-featured-product-open-in-new"});g.R(this,this.Sa);this.countdownTimer=new g.w({L:"text",B:"ytp-featured-product-countdown",Ak:"{{content}}"});this.countdownTimer.hide();g.R(this,this.countdownTimer);this.C=new g.w({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.w({L:"button",i_:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.R(this,this.overflowButton);this.D=new g.w({L:"text",B:"ytp-featured-product-exclusive-countdown",Ak:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}});this.D.hide();g.R(this,this.D);this.W=new g.w({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.D]});this.W.hide();g.R(this,this.W);this.banner=new g.w({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.W:null,this.C,{L:"text",B:"ytp-featured-product-vendor",Ak:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.R(this,this.banner);this.banner.u_(this.V.element);this.U(this.N,g.sz("featured_product"),this.xnn);this.U(this.N, g.aj("featured_product"),this.B9);this.U(this.N,"videodatachange",this.onVideoDataChange);this.U(this.overflowButton.element,"click",this.UT);this.U(p,"featuredproductdismissed",this.SY)}; xES=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}; z9e=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(MO({seconds:C}))),p.D.Jc(C)):p.D.Jc(E.text);p.D.show();break}}var t,c,T,M;p.W.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.W.show();Fo(p);var J;(J=p.YM)==null||J.start()}else Ymu(p)}; Ymu=function(p){var C;(C=p.YM)==null||C.stop();p.D.hide();p.W.hide();S4(p)}; R9Y=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}; nyS=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}; e9Y=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}; PML=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}; wq9=function(p){if(p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var C,V,N;return p.C.n4?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.n4||p.W.n4||((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}; Lf9=function(p,C){KZ(p);if(C){var V=g.Xx.getState().entities;V=cJ(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=$EY(d.startTimeSec);X!==void 0&&(d=$EY(d.endTimeSec),C.push(new g.iG(X*1E3,d===void 0?0x7ffffffffffff:d*1E3,{id:N.identifier, namespace:"featured_product"})))}}}p.N.jd(C)}}}; S4=function(p){if(p.trendingOfferEntityKey){var C=g.Xx.getState().entities;if(C=cJ(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)?Fo(p):(p.C.update({trendingOffer:C.shortLabel+" \u2022 "+C.countLabel}),p.C.show(),p.banner.update({vendor:wq9(p)}))}else Fo(p)}else Fo(p)}; Fo=function(p){p.C.hide();p.banner.update({vendor:wq9(p)})}; KZ=function(p){p.Vn=[];p.B9();p.N.PV("featured_product")}; gyj=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(MO({seconds:C}));if(C>0){var d;(d=p.ER)==null||d.start()}}; Wfy=function(p){var C;(C=p.ER)==null||C.stop();p.countdownTimer.hide()}; $EY=function(p){if(p!==void 0&&p.trim()!==""&&(p=Math.trunc(Number(p.trim())),!(isNaN(p)||p<0)))return p}; pDL=function(p,C,V){g.w.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.Pa);this.GN=!1;N?(p=N.url||"",p.startsWith("//")&&(p="https:"+p),this.GN=!0,g.nH(this.button,g.zN(p))):(N=g.n(V,QQQ))&&!this.T?((p=N.phoneNumbers)&&p.length>0?(p="sms:"+p[0],N.messageText&&(p+="?&body="+encodeURI(N.messageText))):p="",this.GN=!0,g.nH(this.button,g.zN(p,[rFY]))):(V=g.n(V,BvY))&&!this.T&&(p=V.phoneNumber? "tel:"+V.phoneNumber:"",this.GN=!0,g.nH(this.button,g.zN(p,[GSS])));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:IS(),disclaimer:V})}else{this.disclaimer.style.display="none";var d;this.update({label:(d=C.bodyText)==null?void 0:d.content,icon:IS()})}this.N.setTrackingParams(this.element,C.trackingParams||null);this.GN&&(this.C={externalLinkData:{url:p}})}; CSL=function(p,C){var V=TB();g.pc.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.fq()]}]},{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.YZ(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()}; jJv=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)}; HMY=function(p,C){g.w.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.OO=this.T=this.videoId=null;this.S=this.showControls=this.C=!1;this.U(this.element,"click",function(){p.logClick(V.element);p.WS();jm(C)}); this.V=new g.i$(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.g_);this.U(this.N,"paidcontentoverlayvisibilitychange",this.Iv);this.U(this.N,"infopaneldetailvisibilitychange",this.Iv);var N=p.getVideoData()||{};VdY(N)&&NK9(this,N);this.U(p,"onShowControls",this.lY);this.U(p,"onHideControls",this.KX)}; NK9=function(p,C){if(!C.ZZ||!p.N.mY()){var V=C.J_||1E4,N=VdY(C);p.T?C.videoId&&C.videoId!==p.videoId&&(g.d0(p.T),p.videoId=C.videoId,N?(XDs(p,V,C),p.hc()):(p.f4(),p.T.dispose(),p.T=null)):N&&(C.videoId&&(p.videoId=C.videoId),XDs(p,V,C),p.hc())}}; VdY=function(p){var C,V,N,H;return!!((C=p.eZ)==null?0:(V=C.title)==null?0:V.content)||!!((N=p.eZ)==null?0:(H=N.bodyText)==null?0:H.content)}; XDs=function(p,C,V){p.T&&p.T.dispose();p.T=new g.N8(p.EB$,C,p);g.R(p,p.T);var N;C=((N=V.eZ)==null?void 0:N.trackingParams)||null;p.N.setTrackingParams(p.element,C);var H;var X,d;if(V==null?0:(X=V.eZ)==null?0:(d=X.title)==null?0:d.content){var a;N=(H=V.eZ)==null?void 0:(a=H.title)==null?void 0:a.content;var E,l;if((E=V.eZ)==null?0:(l=E.bodyText)==null?0:l.content)N+=" \u2022 ";H=N}else H="";var t,c;V=((t=V.eZ)==null?void 0:(c=t.bodyText)==null?void 0:c.content)||"";p.update({text:H+V,chevron:g.Uy()})}; dWX=function(p,C){p.T&&(g.r(C,8)?(p.C=!0,p.hc(),p.T.start()):(g.r(C,2)||g.r(C,64))&&p.videoId&&(p.videoId=null))}; DR=function(p){var C=null;try{C=p.toLocaleString("pt-BR",{style:"percent"})}catch(V){C=p.toLocaleString(void 0,{style:"percent"})}return C}; uW=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}; iM9=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.Ce("ytp-chrome-bottom"),N=g.Ce("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}; uys=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.Ax(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.My({L:"span",B:"ytp-promotooltip-details-icon", j:[Kmj[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.My({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.so(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.Ax(p.details,H);H=p.tooltipRenderer.acceptButton;X=!1;var t,c,T;((t=g.n(H,g.kr))==null?0:(c=t.text)==null?0:(T=c.runs)==null?0:T.length)&&g.n(H,g.kr).text.runs[0].text&&(p.update({acceptButtonText:g.n(H,g.kr).text.runs[0].text.toString()}),X=!0);g.Ax(p.acceptButton,X);t=p.tooltipRenderer.dismissButton;c=!1;var M,J,S;((M=g.n(t,g.kr))==null?0:(J=M.text)==null?0:(S=J.runs)==null?0:S.length)&&g.n(t,g.kr).text.runs[0].text&&(p.update({dismissButtonText:g.n(t,g.kr).text.runs[0].text.toString()}), c=!0);g.Ax(p.dismissButton,c)}V&&(p.V=V);p.T=SUu(p);p.D=!1;p.N.K().G("web_player_hide_nitrate_promo_tooltip")||p.F0(!0);DWV(p);p.n4&&!p.a$&&(p.a$=!0,p.VZ.qm(0));p.C&&p.N.logVisibility(p.element,p.n4)}}; Ie=function(p){p.F0(!1);p.C&&p.N.logVisibility(p.element,p.n4)}; ZML=function(p){var C,V,N,H=((C=g.n(p.acceptButton,g.kr))==null?void 0:(V=C.text)==null?void 0:(N=V.runs)==null?void 0:N.length)&&!!g.n(p.acceptButton,g.kr).text.runs[0].text,X,d,a;C=((X=g.n(p.dismissButton,g.kr))==null?void 0:(d=X.text)==null?void 0:(a=d.runs)==null?void 0:a.length)&&!!g.n(p.dismissButton,g.kr).text.runs[0].text;return H||C}; DWV=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.F0(!1);else if(C=g.b4(p.T),C.width&&C.height){p.N.qA(p.element,p.T);var N=p.N.dV().getPlayerSize().height;V=g.b4(p.rV("ytp-promotooltip-container")).height;p.S?p.element.style.top=N-V-C.height-12+"px":p.Z||(N=p.N.v_().height-V-C.height-12,p.element.style.top=N+"px");N=p.rV("ytp-promotooltip-pointer");var H=g.qK(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.F0(!1)}; bW=function(p){g.w.call(this,{L:"button",i_:["ytp-replay-button","ytp-button"],X:{title:"Reiniciar"},j:[g.AO()]});this.N=p;this.U(p,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Ba(p.getPlayerStateObject());kj(this.N,this.element,this)}; AD=function(p,C){C=C===void 0?240:C;g.w.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);kj(p,this.element,this)}; g.oe=function(p,C,V,N){N=N===void 0?240:N;g.w.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.o$(this.tooltip,this.element))}; UWe=function(p){var C=p.api.K(),V=p.api.getVideoData(),N=g.KI(C)&&g.eQ(p.api)&&g.r(p.api.getPlayerStateObject(),128);C=C.V||C.disableSharing&&p.api.getPresentingPlayerType()!==2||!V.showShareButton||V.qr||N||g.t_(V)||p.C;N=p.api.dV().getPlayerSize().width;return!!V.videoId&&N>=p.S&&!C}; f4H=function(p,C){C.name!=="InvalidStateError"&&C.name!=="AbortError"&&(C.name==="NotAllowedError"?(p.T.WS(),jm(p.V,p.element,!1)):g.nm(C))}; yJy=function(p,C){var V=TB(),N=p.K();V={L:"div",B:"ytp-share-panel",X:{id:TB(),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:[v3()]},{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.fq()]}]};g.pc.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.o$(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.o$(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=OML(H,d);g.mv(d,H.api,X)&&H.api.Jk("SHARE_CLICKED")}); this.listen("click",this.oP);this.U(p,"videoplayerreset",this.hide);this.U(p,"fullscreentoggled",this.onFullscreenToggled);this.U(p,"onLoopRangeChange",this.Do_);this.hide()}; I4y=function(p,C){qU9(p);for(var V=C.links||C.shareTargets,N=0,H={},X=0;X'),(S=M.document)&&S.write&&(S.write($e(J)),S.close()))):((M=g.LH(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.Kp.addOnDisposeCallback(g.o$(p.tooltip,H.Kp.element));a==="Facebook"?p.api.createClientVe(H.Kp.element,H.Kp,164504):a==="Twitter"&&p.api.createClientVe(H.Kp.element,H.Kp,164505);p.U(H.Kp.element,"click",function(t){return function(){p.api.logClick(t.Kp.element)}}(H)); p.api.logVisibility(H.Kp.element,!0);p.V.push(H.Kp);N++}}var E=C.more||C.moreLink,l=new g.w({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=OML(p,c);g.mv(c,p.api,t)&&p.api.Jk("SHARE_CLICKED")}); l.addOnDisposeCallback(g.o$(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)}; OML=function(p,C){var V={};g.KI(p.api.K())&&(g.SQ(p.api,"addEmbedsConversionTrackingParams",[V]),C=g.BX(C,V));return C}; qU9=function(p){for(var C=g.F(p.V),V=C.next();!V.done;V=C.next())V=V.value,V.detach(),g.hf(V);p.V=[]}; kX=function(p){return p===void 0||p.startSec===void 0||p.endSec===void 0?!1:!0}; bM1=function(p,C){p.startSec+=C;p.endSec+=C}; oRY=function(p){$m.call(this,p);this.C=this.T=this.isContentForward=this.D=!1;AJQ(this);this.U(this.N,"changeProductsInVideoVisibility",this.NY_);this.U(this.N,"videodatachange",this.onVideoDataChange)}; kUQ=function(p){p.W&&p.Wr.element.removeChild(p.W.element);p.W=void 0}; YUL=function(p,C){return C.map(function(V){var N,H;if((V=(N=g.n(V,xWs))==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.w({L:"img", B:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:V}});g.R(p,V);return V})}; zfQ=function(p,C){p.isContentForward=C;g.Tz(p.badge.element,"ytp-suggested-action-badge-content-forward",C)}; xX=function(p){var C=p.isContentForward&&!p.En();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)}; YX=function(p,C,V){return new g.iG(p*1E3,C*1E3,{priority:9,namespace:V})}; Rfu=function(p){p.N.PV("shopping_overlay_visible");p.N.PV("shopping_overlay_preview_collapsed");p.N.PV("shopping_overlay_preview_expanded");p.N.PV("shopping_overlay_expanded")}; AJQ=function(p){p.U(p.N,g.sz("shopping_overlay_visible"),function(){p.oI(!0)}); p.U(p.N,g.aj("shopping_overlay_visible"),function(){p.oI(!1)}); p.U(p.N,g.sz("shopping_overlay_expanded"),function(){p.b_=!0;wL(p)}); p.U(p.N,g.aj("shopping_overlay_expanded"),function(){p.b_=!1;wL(p)}); p.U(p.N,g.sz("shopping_overlay_preview_collapsed"),function(){p.T=!0;xX(p)}); p.U(p.N,g.aj("shopping_overlay_preview_collapsed"),function(){p.T=!1;xX(p)}); p.U(p.N,g.sz("shopping_overlay_preview_expanded"),function(){p.C=!0;xX(p)}); p.U(p.N,g.aj("shopping_overlay_preview_expanded"),function(){p.C=!1;xX(p)})}; PSH=function(p){g.w.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.LH(window,nRY(C));V.preventDefault()}); p.createClientVe(this.channelName,this,37220);this.U(this.channelName,"click",function(V){C.api.logClick(C.channelName);g.LH(window,nRY(C));V.preventDefault()}); efQ(this);this.U(p,"videodatachange",this.Pr);this.U(p,"videoplayerreset",this.Pr);this.Pr()}; efQ=function(p){if(!p.api.K().MW){var C=p.api.getVideoData(),V=new g.tD("Inscreva-se",null,"Inscrito",null,!0,!1,C.Qv,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)}}; nRY=function(p){var C=p.api.K(),V=p.api.getVideoData();V=g.GM(C)+V.bx;if(!g.KI(C))return V;C={};g.SQ(p.api,"addEmbedsConversionTrackingParams",[C]);return g.BX(V,C)}; zI=function(p){g.pc.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.H1=this.iM=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.iM/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.FY(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);kj(p,this.element,this)}; rJV=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.JU()}; $X=function(p,C){nZ.call(this,p,C,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.U(p,g.aj("timedMarkerCueRange"),this.va);this.U(p,"updatemarkervisibility",this.updateVideoData)}; BKu=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}}; LZ=function(p){var C=p.G("web_enable_pip_on_miniplayer");g.w.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"}}]}]}: AmY()]});this.N=p;this.visible=!1;this.listen("click",this.onClick);this.U(p,"fullscreentoggled",this.Pr);this.updateValue("title",g.xj(p,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});kj(p,this.element,this);p.createClientVe(this.element,this,62946);this.Pr()}; GUj=function(p,C,V){V=V===void 0?!1:V;g.w.call(this,{L:"button",i_:["ytp-mute-button","ytp-button"],X:p.K().R$?{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",x0());this.tooltip=C.aI();this.T=new g.My({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.Gh("ytp-svg-volume-animation-mover",this.T.element);this.C=g.Gh("ytp-svg-volume-animation-hider",this.T.element);this.Vn=new mY;g.R(this,this.Vn);this.a$=new mY;g.R(this,this.a$);this.listen("click",this.sNr);this.U(p,"appresize",this.qU);this.U(p,"onVolumeChange",this.onVolumeChange);var N=null;V.R$?this.addOnDisposeCallback(g.o$(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.pc(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.nJ(N,H)}),g.gb(p,N.element,4)); this.message=N;p.createClientVe(this.element,this,28662);this.qU(p.dV().getPlayerSize());this.setVolume(p.getVolume(),p.isMuted())}; jPu=function(p,C){p.b_=C;var V=p.sY;C&&(V+=KRu(pLL,Ck9,C));p.D.setAttribute("d",V)}; VjY=function(p,C){p.Z=C;for(var V=20*C,N=0;N=3&&p.N.getPresentingPlayerType()!==2}; iBy=function(p){var C=nT(p.N.Tk());return C?p.T?C.uT():C.MR():!1}; HBS=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.uT();V=g.eQ(p.N)&&(!p.T||V);var N=p.T&&g.Wk(p.N),H=iBy(p),X=p.T&&p.N.getPresentingPlayerType()===5,d=g.xj(p.N,"Pr\u00f3ximo","SHIFT+n"),a=g.xj(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.qA(p.playlist,p.T?jCe(p.playlist):VM9(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.I0(E.lengthSeconds):null;C.preview=E.b8("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.Eh(),C.text=a.title,C.duration=a.lengthText?a.lengthText:a.lengthSeconds? g.I0(a.lengthSeconds):null,C.preview=a.b8("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.o$(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.JU()}; sPH=function(p,C){g.w.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:[bq()],X:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{L:"div",B:"ytp-fine-scrubbing-dismiss",j:[g.fq()],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.R$=0;this.isEnabled=this.Sa=!1;hGS(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.o$(C,this.dismissButton));this.addOnDisposeCallback(g.o$(C,this.playButton));this.Vn=new g.dM(this.sY,!0);this.Vn.subscribe("dragstart",this.O9,this);this.Vn.subscribe("dragmove",this.gm,this);this.Vn.subscribe("dragend",this.jw,this);this.U(p,"SEEK_COMPLETE",this.Y3);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)}; hGS=function(p,C){var V=g.I0(C),N=g.FY("Procurar $PROGRESS",{PROGRESS:g.I0(C,!0)});p.update({ariamin:0,ariamax:Math.floor(p.api.getDuration()),arianow:Math.floor(C),arianowtext:N,seekTime:V})}; a$s=function(p){p.a$=NaN;p.Z=0;p.J=p.V}; tja=function(p){var C=p.api.uf();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.Ss()),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}; cYs=function(p){return-((p.W.offsetWidth||(p.frameCount-1)*p.D*p.scale)-p.T/2)}; EOe=function(){g.w.call(this,{L:"div",B:"ytp-fine-scrubbing-thumbnail"})}; l$a=function(){g.w.call(this,{L:"div",B:"ytp-fine-scrubbing-chapter-title",j:[{L:"div",B:"ytp-fine-scrubbing-chapter-title-content",Ak:"{{chapterTitle}}"}]})}; Mjv=function(p){g.w.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.LY(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")}; JYV=function(p,C){C>0&&(p.T=C,p.D.style.height=p.T+"px")}; ru=function(){g.w.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")}; Bz=function(p,C){g.Sh(p.T,"width",C)}; m99=function(p,C){g.Sh(p.T,"margin-right",C+"px")}; vOH=function(){this.C=this.position=this.V=this.T=this.S=this.width=NaN}; F8a=function(){g.w.call(this,{L:"div",B:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.pv=function(p,C){g.va.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.XO=this.Mn=this.Y_=this.J=this.cR=0;this.cV=null;this.vr={};this.Hc={};this.clipEnd=Infinity;this.bx=this.rV("ytp-clip-end");this.wy=new g.dM(this.bx,!0);this.Q$=this.rV("ytp-clip-end-exclude");this.MW=this.rV("ytp-clip-start-exclude");this.clipStart=0;this.ER=this.rV("ytp-clip-start");this.uJ=new g.dM(this.ER,!0);this.a$=this.Qn=0;this.progressBar=this.rV("ytp-progress-bar"); this.F$={};this.Ga={};this.YM=this.rV("ytp-chapters-container");this.FF=this.rV("ytp-timed-markers-container");this.T=[];this.D=[];this.iW={};this.eZ=null;this.sY=-1;this.Mo=this.Vn=0;this.Z=null;this.sO=this.rV("ytp-scrubber-button");this.zB=this.rV("ytp-decorated-scrubber-button");this.ZZ=this.rV("ytp-scrubber-container");this.UY=new g.vG;this.H1=new vOH;this.V=new nt(0,0);this.Sb=null;this.S=this.f9=!1;this.N5=null;this.b_=this.rV("ytp-heat-map-container");this.K1=this.rV("ytp-heat-map-edu");this.W= [];this.heatMarkersDecorations=[];this.l_=this.rV("ytp-fine-scrubbing-container");this.xt=this.rV("ytp-fine-scrubbing-edu");this.C=void 0;this.Sa=this.QZ=this.Wr=!1;this.tooltip=C.aI();this.addOnDisposeCallback(g.o$(this.tooltip,this.bx));g.R(this,this.wy);this.wy.subscribe("hoverstart",this.AN,this);this.wy.subscribe("hoverend",this.CB,this);this.U(this.bx,"click",this.U1);this.addOnDisposeCallback(g.o$(this.tooltip,this.ER));g.R(this,this.uJ);this.uJ.subscribe("hoverstart",this.AN,this);this.uJ.subscribe("hoverend", this.CB,this);this.U(this.ER,"click",this.U1);S7L(this);this.U(p,"resize",this.OR);this.U(p,"presentingplayerstatechange",this.YJ);this.U(p,"videodatachange",this.Bf);this.U(p,"videoplayerreset",this.Re);this.U(p,"cuerangesadded",this.u4a);this.U(p,"cuerangesremoved",this.YVx);this.U(p,"onLoopRangeChange",this.cL);this.U(p,"innertubeCommand",this.onClickCommand);this.U(p,g.sz("timedMarkerCueRange"),this.GN$);this.U(p,"updatemarkervisibility",this.Zo);this.U(p,"serverstitchedvideochange",this.m5n); this.updateVideoData(p.getVideoData(),!0);this.cL(p.getLoopRange());GI(this)&&!this.C&&(this.C=new sPH(this.api,this.tooltip),p=g.yT(this.element).x||0,this.C.OR(p,this.J),this.C.u_(this.l_),g.R(this,this.C),this.U(this.C.dismissButton,"click",this.mK),this.U(this.C.playButton,"click",this.PG),this.U(this.C.element,"dblclick",this.PG));this.api.createClientVe(this.b_,this,139609,!0);this.api.createClientVe(this.K1,this,140127,!0);this.api.createClientVe(this.xt,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; S7L=function(p){if(p.T.length===0){var C=new ru;p.T.push(C);g.R(p,C);C.u_(p.YM,0)}for(;p.T.length>1;)p.T.pop().dispose();Bz(p.T[0],"100%");p.T[0].startTime=0;p.T[0].title=""}; K8S=function(p){var C=C===void 0?NaN:C;var V=new Mjv(p.api);p.W.push(V);g.R(p,V);V.u_(p.b_);C>=0&&(V.element.style.width=C+"px")}; D9S=function(p){for(;p.D.length;)p.D.pop().dispose()}; ZBL=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,u8V))==null?void 0:X.chapters}; U9y=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;JYV(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.Cv(p);a=[];C=g.F(C.heatMarkersDecorations||[]);for(H=C.next();!H.done;H=C.next())if(H=g.n(H.value,AY9))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.Kq(E):""});p.heatMarkersDecorations=a}}; yYj=function(p,C){p.D.push(C);g.R(p,C);C.u_(p.FF,p.FF.children.length)}; q7V=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=jD(p,V.timeRangeStartMillis/(p.V.T*1E3),VK(p));g.Sh(V.element,"transform","translateX("+N+"px) scaleX(0.6)")}}; f$1=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,k_Q)){H=g.n(H,k_Q);var X={startTime:NaN,title:null,onActiveCommand:void 0},d=H.title;X.title=d?g.Kq(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 ru,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){m99(p.T[N],0);var H=Math.floor(p.T[N].width);p.T[N].width=H;Bz(p.T[N],H+"px");break}p.T[V].width=0;Bz(p.T[V],"0")}else V===p.T.length-1?(N=Math.floor(p.T[V].width+C),p.T[V].width=N,Bz(p.T[V],N+"px")):(C=p.T[V].width+C,N=Math.round(C),C-=N,p.T[V].width=N,Bz(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)}; x9L=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.Mo===0?3:d*p.Mo,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.Mo&&(p.Mo=E/X),N=!0)}V++}}return N}; Nb=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:lx(N))&&C.airingStart&&C.airingEnd)var H=H$(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)?H$(p,C.seekableStart,V/1E3):H$(p,C.seekableStart,C.seekableEnd)}else H=H$(p,C.seekableStart,C.seekableEnd);X=e2(H,C.loaded,0);C=e2(H,C.current,0);d=p.V.C!==H.C||p.V.T!==H.T;p.V=H;Xp(p,C,X);d&&Y7s(p);zGv(p)}}}; H$=function(p,C,V){return RGa(p)?new nt(Math.max(C,p.Sb.startTimeMs/1E3),Math.min(V,p.Sb.endTimeMs/1E3)):new nt(C,V)}; nOX=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[uW(p.T,C.startTimeMs)],g.Tz(C.T,"ytp-repeating-chapter",!1)),p.Sb&&(C=p.T[uW(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)})}; ih=function(p,C){var V=p.V;V=V.C+C.C*V.getLength();if(p.T.length>1){V=dR(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}; ho=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)}; eG9=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}; Y7s=function(p){p.sO.style.removeProperty("height");for(var C=g.F(Object.keys(p.vr)),V=C.next();!V.done;V=C.next())Pku(p,V.value);sa(p);Xp(p,p.a$,p.Qn)}; VK=function(p){var C=p.UY.x;C=g.M$(C,0,p.J);p.H1.update(C,p.J);return p.H1}; Ea=function(p){return(p.S?135:90)-av(p)}; av=function(p){var C=48,V=p.api.K();p.S?C=54:g.KI(V)&&!V.C&&(C=40);return C}; Xp=function(p,C,V){p.a$=C;p.Qn=V;var N=VK(p),H=p.V.T;var X=p.V;X=X.C+p.a$*X.getLength();var d=g.FY("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.I0(X,!0),DURATION:g.I0(H,!0)}),a=uW(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=e2(p.V,H,0);a=e2(p.V,X,1);d=p.api.getVideoData();X=g.M$(C,H,a);V=(d==null? 0:g.a$(d))?1:g.M$(V,H,a);C=jD(p,C,N);g.Sh(p.ZZ,"transform","translateX("+C+"px)");lh(p,N,H,X,"PLAY_PROGRESS");(d==null?0:lx(d))?(C=p.api.getProgressState().seekableEnd)&&lh(p,N,X,e2(p.V,C),"LIVE_BUFFER"):lh(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)+"%")}}; lh=function(p,C,V,N,H){var X=p.T.length,d=C.T-p.Vn*(p.S?3:2),a=V*d;V=dR(p,a);var E=N*d;d=dR(p,E);H==="HOVER_PROGRESS"&&(d=dR(p,C.T*N,!0),E=C.T*N-wLa(p,C.T*N)*(p.S?3:2));N=Math.max(a-$9L(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.MW.clientWidth/V):(X/=V,p=-1*p.T[H].element.offsetLeft/V),g.Sh(C,"background-size",X+"px"),g.Sh(C,"background-position-x",p+"px"))}; to=function(p,C,V,N,H){H||p.api.K().C?C.style.width=V+"px":g.Sh(C,"transform","scalex("+(N?V/N:0)+")")}; dR=function(p,C,V){var N=0;(V===void 0?0:V)&&(C-=wLa(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}; jD=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}; wLa=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.W81=function(p,C,V,N){var H=p.J!==V,X=p.S!==N;p.cR=C;p.J=V;p.S=N;GI(p)&&(C=p.C)!=null&&(C.scale=N?1.5:1);Y7s(p);p.T.length===1&&(p.T[0].width=V||0);H&&g.Cv(p);p.C&&X&&GI(p)&&(p.C.isEnabled&&(V=p.S?135:90,N=V-av(p),p.l_.style.height=V+"px",g.Sh(p.b_,"transform","translateY("+-N+"px)"),g.Sh(p.progressBar,"transform","translateY("+-N+"px)")),tja(p.C))}; sa=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.sO,"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)+"%")}}}; Pku=function(p,C){var V=p.vr[C];C=p.Hc[C];var N=VK(p),H=e2(p.V,V.start/1E3,0),X=aES(V,p.S)/N.width;var d=e2(p.V,V.end/1E3,1);X!==Number.POSITIVE_INFINITY&&(H=g.M$(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";to(p,C,g.M$((d-V)*N.T+N.S,0,N.width),N.width,!0)}; QPy=function(p,C){var V=C.getId();p.vr[V]===C&&(g.Eo(p.Hc[V]),delete p.vr[V],delete p.Hc[V])}; GI=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.Fg()||!C)}; c$=function(p){p.C&&(p.C.disable(),p.Y_=0,p.b_.style.removeProperty("transform"),p.progressBar.style.removeProperty("transform"),p.l_.style.removeProperty("height"),p.element.parentElement&&p.element.parentElement.style.removeProperty("height"))}; rY1=function(p,C){var V=C/Ea(p)*av(p);g.Sh(p.progressBar,"transform","translateY("+-C+"px)");g.Sh(p.b_,"transform","translateY("+-C+"px)");g.Sh(p.l_,"transform","translateY("+V+"px)");p.l_.style.height=C+V+"px";p.element.parentElement&&(p.element.parentElement.style.height=av(p)-V+"px")}; B4a=function(p,C){C?p.Z||(p.element.removeAttribute("aria-disabled"),p.Z=new g.dM(p.progressBar,!0),p.Z.subscribe("hovermove",p.e3V,p),p.Z.subscribe("hoverend",p.h3n,p),p.Z.subscribe("dragstart",p.GBa,p),p.Z.subscribe("dragmove",p.PJn,p),p.Z.subscribe("dragend",p.H1$,p),p.N5=p.listen("keydown",p.Fq)):p.Z&&(p.element.setAttribute("aria-disabled","true"),p.rY(p.N5),p.Z.cancel(),p.Z.dispose(),p.Z=null)}; RGa=function(p){var C;return!((C=p.Sb)==null||!C.postId)&&p.api.getPresentingPlayerType()!==2}; T8=function(p,C){g.w.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);kj(p,this.element,this)}; Mb=function(p,C){g.w.call(this,{L:"button",i_:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":TB(),title:"Detalhes","data-tooltip-target-id":"ytp-settings-button"},j:[g.oS()]});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);kj(p,this.element,this);this.N.createClientVe(this.element, this,28663);this.updateBadge();this.T(p.dV().getPlayerSize())}; G_1=function(p,C){p.C=!!C;p.T(p.N.dV().getPlayerSize())}; Jo=function(p,C){TJ.call(this,"Anota\u00e7\u00f5es",g.Sm.Gt);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()}; mR=function(p,C){g.NA.call(this,"Faixa de \u00e1udio",g.Sm.AUDIO,p,C);this.N=p;this.tracks={};g.Ed(this.element,"ytp-audio-menu-item");this.countLabel=new g.w({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.Nl(this,this.countLabel);this.U(p,"videodatachange",this.Pr);this.U(p,"onPlaybackAudioChange",this.Pr);this.Pr()}; v$=function(p,C){TJ.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.Sm.P7);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()}; pM9=function(p,C){g.H3.call(this,g.XB({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.N=p;this.xM=C;this.U(this.element,"click",this.onClick);this.xM.iJ(this)}; CJQ=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.NA.call(this,"Qualidade",g.Sm.zO,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.pj);this.U(p,"videoplayerreset",this.pj);this.U(p,"onPlaybackQualityChange",this.MU);this.pj();p.createClientVe(this.element,this,137721)}; V$L=function(p,C,V){var N=p.sY[C],H=g.nR[C];return jn1(p,N?N.qualityLabel:H?H+"p":"Autom\u00e1tico",C,V)}; N5u=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=jn1(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}; jn1=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}; Fp=function(p,C,V,N){g.w.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)}; XMQ=function(p,C){p.C=C;p.updateValue("slidervalue",p.C);p.T.valueAsNumber=p.C;H9u(p,C)}; H9u=function(p,C){p.T.style.setProperty("--yt-slider-shape-gradient-percent",(C-p.V)/(p.W-p.V)*100+"%")}; SD=function(p){Fp.call(this,p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],.05,p.getPlaybackRate());this.N=p;this.S=g.dW("P");this.Z=pn9(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);d2e(this);this.U(this.T,"change",this.sY);this.U(this.T,"keydown",this.a$)}; d2e=function(p){p.S.textContent=p.C+"x"}; Kv=function(p,C,V,N,H,X,d){g.w.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.dM(this.S, !0);this.T=d?d:V;g.R(this,this.D);this.D.subscribe("dragmove",this.Mp,this);this.U(this.element,"keydown",this.Z7);this.U(this.element,"wheel",this.qp);this.init()}; Di=function(p){Kv.call(this,.05,.05,p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],150,20,p.getPlaybackRate());this.N=p;this.W=g.dW("P");this.Vn=pn9(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);i99(this);this.U(this.N,"onPlaybackRateChange",this.updateValues)}; i99=function(p){p.W.textContent=hdj(p,p.T)+"x"}; hdj=function(p,C){p=Number(g.M$(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))}; snu=function(p){g.va.call(this,{L:"div",B:"ytp-speedslider-component"});p.G("web_settings_use_input_slider")?this.T=new SD(p):this.T=new Di(p);g.R(this,this.T);this.element.appendChild(this.T.element)}; aIv=function(p){var C=new snu(p);L$.call(this,p,C,"Personalizado");g.R(this,C)}; EnH=function(p,C){var V=new aIv(p);g.NA.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.Sm.Ws,p,C,uh(p)?void 0:"Personalizado",uh(p)?void 0:function(){g.rL(C,V)}); var N=this;this.W=!1;g.R(this,V);this.D=new SD(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;uh(p)?(this.T=g.FY("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()}; t$V=function(p,C){var V=lIV(C);p.T&&(p.W||C===p.S)?(p.Ag(p.T),p.Jc(C.toString())):p.Ag(V)}; T5L=function(p){p.Zr(p.Z.map(lIV));p.T=null;p.S=null;var C=p.N.getPlaybackRate();if(!p.Z.includes(C)||uh(p.N))cs1(p,C),p.Ag(p.T)}; cs1=function(p,C){p.S=C;p.T=g.FY("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:C.toString()});C=p.Z.map(lIV);C.unshift(p.T);p.Zr(C)}; lIV=function(p){return p.toString()}; uh=function(p){return p.G("web_settings_menu_surface_custom_playback")}; M$v=function(p){return p.G("web_settings_menu_surface_custom_playback")&&p.G("web_settings_use_input_slider")}; m2s=function(p,C,V,N){var H=new g.gL(C,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.NA.call(this,N.text||"",p,C,V,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.rL(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.Z6,this);this.W=H;g.R(this,this.W);C=new g.H3({L:"div",B:"ytp-menuitemtitle",Ak:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.R(this,C);this.W.iJ(C,!0);this.S=new g.H3({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.iJ(this.S,!0);this.U(this.S.element, "click",function(){JsL(X,!0)}); this.T=new g.H3({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.iJ(this.T,!0);this.U(this.T.element,"click",function(){JsL(X,!1)}); this.Zr(g.bZ(p,this.Z6))}; JsL=function(p,C){p.publish("settingChange",p.setting+"Override",!C);p.xM.M3()}; Zi=function(p,C){g.gL.call(this,p,void 0,"Op\u00e7\u00f5es");var V=this;this.IA={};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=h5L(p.C,p.S,C);LmX(p.bg,N,C,V,!0);p.sY.start()}}; LTV=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}; WTe=function(p){g.w.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;Wwj(p);p.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.U(p,"videoplayerreset",this.onReset);this.U(p, "appresize",this.Rt);this.U(p,"videodatachange",this.Rt);this.U(p,"presentingplayerstatechange",this.Rt);this.Rt();p=this.N.K();var C=g.zW("yt-player-watch-later-pending");p.S&&C?(yaL(),gnv(this)):this.Pr(2);g.Tz(this.element,"ytp-show-watch-later-title",g.KI(p));kj(this.N,this.element,this)}; Qne=function(p){var C=p.N.getPlayerSize(),V=p.N.K(),N=p.N.getVideoData(),H=g.KI(V)&&g.eQ(p.N)&&g.r(p.N.getPlayerStateObject(),128),X=V.V;return V.cV&&C.width>=240&&!N.isAd()&&N.cV&&!H&&!g.t_(N)&&!p.N.isEmbedsShortsMode()&&!X}; rsS=function(p,C){Tv9(g.zM(p.N.K()),"wl_button",function(){yaL({videoId:C});window.location.reload()})}; gnv=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.m$(),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.Ch(p.element);p.N.K().D&&p.N.Jk("WATCH_LATER_VIDEO_ADDED")}; hd(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.")})}}; B5y=function(p,C){if(C!==p.icon){switch(C){case 3:var V=v3();break;case 1:V=uq();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.xa=function(){g.du.apply(this,arguments);this.R3=(this.UK=g.KI(this.api.K()))&&(this.api.K().C||Hw()||Vc());this.Ye=48;this.D5=69;this.dg=this.Ix=null;this.Vt=[];this.eR=this.nx=this.HZ=this.rO=this.WV=null;this.HX=[];this.contextMenu=this.PR=this.overflowButton=this.ZP=this.TW=this.searchButton=this.copyLinkButton=this.shareButton=this.Ex=this.XT=this.title=this.channelAvatar=this.wB=this.tooltip=null;this.uH=!1;this.Ll=this.rJ=this.fJ=this.Wo=null;this.Vh=this.l1=this.Fh=!1}; GLY=function(p){var C=p.api.K(),V=g.r(p.api.getPlayerStateObject(),128);return C.S&&V&&!p.api.isFullscreen()}; p99=function(p){if(p.Qf()&&!p.api.isEmbedsShortsMode()&&p.ZP){var C=p.api.G("web_player_hide_overflow_button_if_empty_menu");!p.Ex||C&&!Qne(p.Ex)||MdL(p.ZP,p.Ex);!p.shareButton||C&&!UWe(p.shareButton)||MdL(p.ZP,p.shareButton);!p.copyLinkButton||C&&!qmL(p.copyLinkButton)||MdL(p.ZP,p.copyLinkButton)}else{if(p.ZP){C=p.ZP;for(var V=g.F(C.actionButtons),N=V.next();!N.done;N=V.next())N.value.detach();C.actionButtons=[]}p.searchButton&&!g.lK(p.XT.element,p.searchButton.element)&&p.searchButton.u_(p.XT.element); p.Ex&&!g.lK(p.XT.element,p.Ex.element)&&p.Ex.u_(p.XT.element);p.shareButton&&!g.lK(p.XT.element,p.shareButton.element)&&p.shareButton.u_(p.XT.element);p.copyLinkButton&&!g.lK(p.XT.element,p.copyLinkButton.element)&&p.copyLinkButton.u_(p.XT.element)}}; CAV=function(p,C,V){C=V?C.lastElementChild:C.firstElementChild;for(var N=null;C;){if(u4(C,"display")!=="none"&&C.getAttribute("aria-hidden")!=="true"){var H=void 0;C.tabIndex>=0?H=C:H=CAV(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.Sd())&&N.isView()&&(N=N.mediaElement);if(N&&N.pg().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.NS(),a= V.NS());if(!N||!a)return{msg:"no-video-info"};if(p.V&&(Qu(N)||Qu(a)))return{msg:"av1"};C=p.T&&X.fq()&&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.An)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.fq()&&N.video.fps!==a.video.fps?{msg:"fps"}:null}; HCH=function(p,C,V){var N=p.getVideoData(),H=C.getVideoData();if(!N.K().supportsGaplessShorts())return{nq:"env"};if(V.Y){if(N.GU&&!N.isAd()||H.GU&&!H.isAd())return{nq:"autoplay"}}else if(N.GU||H.GU)return{nq:"autoplay"};if(!N.J)return{nq:"client"};if(!p.q3())return{nq:"no-empty"};p=NpL(V,p,C,Infinity);return p!=null?{nq:p.msg}:null}; Rv=function(p){g.z.call(this);this.app=p;this.S=this.V=this.mf=this.T=null;this.C=1;this.events=new g.YZ(this);this.events.U(this.app.ea,g.aj("gaplessshortslooprange"),this.D);g.R(this,this.events)}; X9a=function(){this.S=this.Y=this.V=this.D=this.W=this.C=this.T=!1}; d0V=function(p){var C=new X9a;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.nv=function(p,C,V,N){N=N===void 0?!1:N;dl.call(this);this.mediaElement=p;this.start=C;this.end=V;this.T=N}; iC1=function(p,C,V,N,H,X){X=X===void 0?0:X;g.z.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.dn=new XO;this.Q1=N-C.X0()*1E3;this.dn.then(void 0,function(){}); this.timeout=new g.N8(function(){d.dI("timeout")},1E4); g.R(this,this.timeout);this.J=isFinite(N);this.status={status:0,error:null}}; awy=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.eD.Hx();return g.y(c,p.dn,2)}g.eD.nQ("gtfta",C);V=p.T.Sd();if(V.isEnded())return p.dI("ended_in_finishTransition"),c.return(Promise.reject(Error(p.status.error||"")));if(!p.S||!pV(p.S))return p.dI("next_mse_closed"),c.return(Promise.reject(Error(p.status.error||"")));if(p.C.Hp()!==p.S)return p.dI("next_mse_mismatch"),c.return(Promise.reject(Error(p.status.error|| "")));N=h7H(p);H=N.q6;X=N.dT;d=N.XJ;p.T.eU(!1,!0);a=sUy(V,H,d,!p.C.getVideoData().isAd());p.C.setMediaElement(a);(E=p.T.Pj())&&p.C.iz(E.jn,E.Xz);p.J&&(p.C.seekTo(p.C.getCurrentTime()+.001,{wO:!0,Cm:3,L1:"gapless_pseudo"}),a.play(),YD());l=V.jb();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();p.T.DH(X,!0,!1,t,p.C.getVideoData().clientPlaybackNonce);p.C.DH(p.C.getCurrentTime(), !0,!0,t,p.T.getVideoData().clientPlaybackNonce);p.C.MM();g.J8(function(){!p.C.getVideoData().sY&&p.C.getPlayerState().isOrWillBePlaying()&&p.C.Yg()}); P$(p,6);p.dispose();return c.return(Promise.resolve())})}; cia=function(p){if(p.C.getVideoData().V){var C=p.lJ.K().G("html5_gapless_suspend_next_loader")&&p.W===1;p.C.Zq(p.S,C,E8V(p));P$(p,3);lwv(p);var V=tNL(p);C=V.H5;V=V.Zn;C.subscribe("updateend",p.vW,p);V.subscribe("updateend",p.vW,p);p.vW(C);p.vW(V)}}; lwv=function(p){p.T.unsubscribe("internalvideodatachange",p.xz,p);p.C.unsubscribe("internalvideodatachange",p.xz,p);p.lJ.K().G("html5_gapless_use_format_info_fix")&&(p.T.unsubscribe("internalvideoformatchange",p.xz,p),p.C.unsubscribe("internalvideoformatchange",p.xz,p));p.T.unsubscribe("mediasourceattached",p.xz,p);p.C.unsubscribe("statechange",p.kp,p)}; sUy=function(p,C,V,N){p=p.isView()?p.mediaElement:p;return new g.nv(p,C,V,N)}; P$=function(p,C){C<=p.status.status||(p.status={status:C,error:null},C===5&&p.dn.resolve())}; E8V=function(p){return p.lJ.K().G("html5_gapless_no_clear_buffer_timeline")&&p.W===1&&$B(p.T.getVideoData())}; h7H=function(p){var C=p.T.Sd();C=C.isView()?C.start:0;var V=p.T.getVideoData().isLivePlayback?Infinity:p.T.eX(!0);V=Math.min(p.Q1/1E3,V)+C;var N=p.J?100:0;p=V-p.C.DQ()+N;return{Pw:C,q6:p,dT:V,XJ:Infinity}}; tNL=function(p){return{H5:p.V.T.dY,Zn:p.V.C.dY}}; MNs=function(p){g.z.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=d0V(this.app.K());this.Y=function(){g.J8(function(){TpV(C)})}}; Jiv=function(p,C,V,N,H){N=N===void 0?0:N;H=H===void 0?0:H;p.q3()||wR(p);p.S=new XO;p.T=C;var X=V,d=H===0;d=d===void 0?!0:d;var a=p.app.Nt(),E=a.getVideoData().isLivePlayback?Infinity:a.eX(!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.sz("vqueued"),p.Y),d=isFinite(d)||d/1E3>X.getDuration()?d:0x8000000000000,p.W=new g.iG(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.eX(!0)),E=Math.max(0,d-p.C.getCurrentTime()),a=Math.min(N,C.eX()+E)),d=Cns(X,a)||N,d!==N&&p.T.k_("qvaln",{st:N,at:d,rm:E,ct:a}));C=d;N=p.T;N.getVideoData().K1=!0;N.getVideoData().J=!0;N.Ot(!0);X={};p.C&&(X=p.C.GC(),d=p.C.getVideoData().clientPlaybackNonce,X={crt:(X*1E3).toFixed(),cpn:d});N.k_("queued",X);C!==0&&N.seekTo(C+.01,{wO:!0,Cm:3,L1:"videoqueuer_queued"});p.V=new iC1(p.D,p.app.Nt().vR,p.T.vR,V,p.app,H);V=p.V;V.status.status!==Infinity&& (P$(V,1),V.T.subscribe("internalvideodatachange",V.xz,V),V.C.subscribe("internalvideodatachange",V.xz,V),V.lJ.K().G("html5_gapless_use_format_info_fix")&&(V.T.subscribe("internalvideoformatchange",V.xz,V),V.C.subscribe("internalvideoformatchange",V.xz,V)),V.T.subscribe("mediasourceattached",V.xz,V),V.C.subscribe("statechange",V.kp,V),V.T.subscribe("newelementrequired",V.mE,V),V.xz());return p.S}; TpV=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&&p.app.Nt().vA(!0,!1);V=p.app.K().G("html5_force_csdai_gapful_transition")&&((C=p.app.Nt())==null?void 0:C.getVideoData().isDaiEnabled());N=null;if(!p.V||V){t.EY(2);break}g.vv(t,3);return g.y(t,awy(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.eD.DI("vqsp",function(){p.app.Gf(p.T)}); if(!p.T)return t.return();X=p.T.Sd();p.app.K().G("html5_gapless_seek_on_negative_time")&&X&&X.getCurrentTime()<-.01&&p.T.seekTo(0);g.eD.DI("vqpv",function(){p.app.playVideo()}); if(N||V)p.T?(d=N?N.message:"forced",(a=p.C)==null||a.k_("gapfulfbk",{r:d}),QTe(p.T,d)):(E=p.C)==null||E.k_("gapsp",{});l=p.S;wR(p);l&&l.resolve();return t.return(Promise.resolve())}})}; wR=function(p,C){C=C===void 0?!1:C;if(p.C){if(p.W){var V=p.C;p.app.ea.removeEventListener(g.sz("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.dI("Canceled")),p.V=null);p.S=null;p.T&&!C&&p.T!==g.$a(p.app,1)&&p.T!==p.app.Nt()&&p.T.dispose();p.T&&C&&bY(p.T);p.T=null;p.J=!1}; m0X=function(p){var C;return((C=p.V)==null?void 0:C.currentVideoDuration)||-1}; v8v=function(p,C,V){if(p.q3())return"qie";if(p.T==null||p.T.fS()||p.T.getVideoData()==null)return"qpd";if(C.videoId!==p.T.ZQ())return"vinm";if(m0X(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(NpL(V.policy,V.T,V.C,V.Q1)!=null)p="pge";else{C=tNL(V);p=C.H5;var N=C.Zn;C=g.Mz(V.lJ.K().experiments,"html5_shorts_gapless_next_buffer_in_seconds");V=V.Y+C;N=sJ(N.l9(),V);p=sJ(p.l9(),V);p=!(C>0)||N&&p?null:"neb"}return p!=null?p:null}; F7s=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.oI()}; D4Q(this.W);this.Y=this.getVisibilityState(this.AU(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Fg(),this.dZ(),this.ZC(),this.WB())}; OZ=function(p){return!(p.isMinimized()||p.isInline()||p.isBackground()||p.Fg()||p.dZ()||p.ZC()||p.WB())}; SPX=function(p,C){g.z.call(this);this.V=this.mf=this.S=this.B$=null;this.C=p;this.T=C}; U0v=function(p){var C=p.experiments,V=C.OY.bind(C);K7s=V("html5_use_async_stopVideo");D01=V("html5_pause_for_async_stopVideo");ubQ=V("html5_not_reset_media_source");V("html5_listen_for_audio_output_changed")&&(AOX=!0);CV=V("html5_not_reset_media_source");ZCS=V("html5_not_reset_media_source");Wc=V("html5_retain_source_buffer_appends_for_debugging");aiX=V("web_enable_auto_pip")||V("web_enable_pip_on_miniplayer");V("html5_mediastream_applies_timestamp_offset")&&(aB=!0);var N=g.Mz(C,"html5_cobalt_override_quic"); N&&A6("QUIC",+(N>0));(N=g.Mz(C,"html5_cobalt_audio_write_ahead_ms"))&&A6("Media.AudioWriteDurationLocal",N);(N=V("html5_cobalt_enable_decode_to_texture"))&&A6("Media.PlayerConfiguration.DecodeToTexturePreferred",N?1:0);(p.Gk()||V("html5_log_cpu_info"))&&MPS();Error.stackTraceLimit=50;var H=g.Mz(C,"html5_idle_rate_limit_ms");H&&Object.defineProperty(window,"requestIdleCallback",{value:function(X){return window.setTimeout(X,H)}}); yMy(p.W);IA=V("html5_use_ump_request_slicer");oEQ=V("html5_record_now");V("html5_disable_streaming_xhr")&&(gB=!1);V("html5_byterate_constraints")&&(jo=!0);V("html5_use_non_active_broadcast_for_post_live")&&(PR=!0);V("html5_sunset_aac_high_codec_family")&&($Z["141"]="a")}; fwL=function(p){return p.slice(12).replace(/_[a-z]/g,function(C){return C.toUpperCase().replace("_","")}).replace("Dot",".")}; OCX=function(p){var C={},V;for(V in p.experiments.flags)if(V.startsWith("cobalt_h5vcc")){var N=fwL(V),H=g.Mz(p.experiments,V);N&&H&&(C[N]=A6(N,H))}return C}; Lv=function(p,C,V,N,H){H=H===void 0?[]:H;g.z.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])}; yiY=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=gR(a.value))&&N.push(a);X.removeAll()}}}(V=gR(C))&&N.push(V);N=g.F(N);for(V=N.next();!V.done;V=N.next())p.C.delete(V.value);C.dispose()}}}; W$=function(p,C,V,N){if(!p.T||C>V)return!1;C=new Lv(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=gR(V);H&&H!==gR(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}; EZ=function(p,C){return p.C.get(C)}; qPs=function(p,C,V){p.C.set(C,V)}; QK=function(p,C,V,N,H,X){return new Iw9(V,V+(N||0),!N,C,p,H,X)}; Iw9=function(p,C,V,N,H,X,d){g.z.call(this);this.Dh=p;this.V=C;this.C=V;this.type=N;this.S=H;this.videoData=X;this.T5=d;this.T=new Map;MI(X)}; gR=function(p){return p.videoData.clientPlaybackNonce}; bCs=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()}; Ai1=function(p){this.end=this.start=p}; g.rR=function(p,C,V){g.z.call(this);var N=this;this.api=p;this.yn=C;this.Wr=new Map;this.UY=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.Mo=null;this.Q$=NaN;this.bx=this.YM=null;this.Hc=new g.N8(function(){o89(N,N.Q$,N.YM||void 0)}); this.events=new g.YZ(this);this.ER=15E3;this.b_=new g.N8(function(){N.Vn=!0;N.playback.Uk(N.ER);kaQ(N);N.Dc(!1)},this.ER); this.Vn=!1;this.Y=new Map;this.Wc=[];this.a$=null;this.sO=new Set;this.Sa=[];this.MW=[];this.QZ=[];this.xt=[];this.T=void 0;this.l_=0;this.R$=!0;this.sY=!1;this.Ga=[];this.K1=new Set;this.cV=new Set;this.XO=new Set;this.CM=0;this.Qn=new Set;this.zB=0;this.Ei=this.uJ=!1;this.vc=this.J="";this.F$=null;this.VZ={uCx:function(){return N.C}, Hta:function(){return N.S}, v$$:function(){return N.V}, yN:function(H){N.onCueRangeEnter(N.C.get(H))}, sak:function(H){N.onCueRangeExit(N.C.get(H))}, fO_:function(H,X){N.C.set(H,X)}, LPr:function(H){N.vc=H}, Ho:function(){return N.Ho()}, mrn:function(H){return N.Z.get(H)}}; this.playback=V.vR;this.playback.getPlayerType();this.playback.L0(this);this.Y_=this.yn.Gk();g.R(this,this.Hc);g.R(this,this.events);g.R(this,this.b_);this.events.U(this.api,g.sz("serverstitchedcuerange"),this.onCueRangeEnter);this.events.U(this.api,g.aj("serverstitchedcuerange"),this.onCueRangeExit)}; R7a=function(p,C,V,N,H,X,d,a){var E=x0u(p,X,X+H);p.Vn&&p.playback.k_("sdai",{adaftto:1});V||p.playback.k_("sdai",{missadcon:1,enter:X,len:H,aid:a});p.D&&!p.D.LC&&(p.D.LC=a);p.Ei&&p.playback.k_("sdai",{adfbk:1,enter:X,len:H,aid:a});var l=p.playback;d=d===void 0?X+H:d;X===d&&!H&&p.yn.G("html5_allow_zero_duration_ads_on_timeline")&&p.playback.k_("sdai",{attl0d:1});X>d&&B$(p,{reason:"enterTime_greater_than_return",Dh:X,qZ:d});var t=l.m6()*1E3;Xl&&B$(p,{reason:"parent_return_greater_than_content_duration",qZ:d,bw$:l});l=null;t=g.Hy(p.W,{qZ:X},function(c,T){return c.qZ-T.qZ}); t>=0&&(l=p.W[t],l.qZ>X&&YPX(p,C.video_id||"",X,d,l));if(E&&l)for(t=0;t.5&&p.playback.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.B8();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.playback.k_("sdai",{igtransskip:1,enter:C.adCpn,exit:V.adCpn,seek:N,skip:X}):e7V(p,E,a,V.W6,C.W6,N,H)}else if(!C.isAd&&V.isAd){p.vc=H.cpn;p.api.publish("serverstitchedvideochange"); a=p7(p,"a2c");p.playback.k_("sdai",a);p.CM=0;if(a=V.zN)p.l_=a.end;var l;V.adCpn&&(l=p.V.get(V.adCpn));l&&p.playback.Mz(l,H,V.W6,C.W6,N,!!X)}else if(C.isAd&&!V.isAd){var t;C.adCpn&&(t=p.V.get(C.adCpn));t&&(p.l_=0,p.vc=t.cpn,n8H(p,t),l=p7(p,"c2a",t),p.playback.k_("sdai",l),p.CM=1,p.playback.Mz(H,t,V.W6,C.W6,N,!!X))}}; PAX=function(p,C,V){V=V===void 0?0:V;var N=(C+V)*1E3,H=g.Hy(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.playback.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.qZ+V*1E3)return{bF:d,ZJ:C}}}else if(p=p.W[H],p.qZ>=N)return{bF:p,ZJ:C};return{bF:void 0,ZJ:C}}; $0V=function(p,C){var V="";(C=w9L(p,C))&&(V=C.getId());return V?p.V.get(V):void 0}; w9L=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}; o89=function(p,C,V){var N=p.bx||p.api.Nt().getPlayerState();jM(p,!0);p.playback.seekTo(C,V);p=p.api.Nt();C=p.getPlayerState();N.isOrWillBePlaying()&&!C.isOrWillBePlaying()?p.playVideo():N.isPaused()&&!C.isPaused()&&p.pauseVideo()}; jM=function(p,C){p.Q$=NaN;p.YM=null;p.Hc.stop();p.Mo&&C&&p.Mo.mQ();p.bx=null;p.Mo=null}; L7Q=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.playback.removeCueRange(H),p.C.delete(H.getId()),p.playback.k_("sdai",{rmAdCR:1}));N=PAX(p,C/1E3);C=N.bF;N=N.ZJ;if(C&&(N=N*1E3-C.Dh,H=C.Dh+N,C.durationMs=N,C.qZ=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=PAX(p,V/1E3).bF){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.qZ;p.Lq("Invalid_clearEndTimeMs_"+V+"_that_falls_during_"+N+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; g8a=function(p){p.Wr.clear();p.UY.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.sO.clear();p.Sa=[];p.MW=[];p.QZ=[];p.xt=[];p.Ga=[];p.K1.clear();p.cV.clear();p.XO.clear();p.Qn.clear();p.Vn=!1;p.T=void 0;p.l_=0;p.R$=!0;p.sY=!1;p.CM=0;p.zB=0;p.uJ=!1;p.Ei=!1;p.J="";p.b_.isActive()&&G8(p)}; QUv=function(p,C,V,N,H,X){if(!p.Ei)if(g.W7a(p,V))p.Y_&&p.playback.k_("sdai",{gdu:"undec",seg:V,itag:H});else if(C=Vw(p,C,V,N,X),!(p.playback.getVideoData().VL()&&(C==null?0:C.cE)))return C}; Vw=function(p,C,V,N,H){var X=p.Y.get(V);if(!X){if(X=riV(p,C))return X;C=NS(p,V-1,N!=null?N:2);if(H)return p.playback.k_("sdai",{misscue:H,sq:V,type:N,prevsstate:C==null?void 0:C.NP,prevrecord:p.Y.has(V-1)}),p.Y.get(V-1);if((C==null?void 0:C.NP)===2)return p.playback.k_("sdai",{adnf:1,sq:V,type:N,prevrecord:p.Y.has(V-1)}),p.Y.get(V-1)}return X}; riV=function(p,C){C+=p.FA();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.wc?H.wc*1E3:H.Dh;if(N>=H.Dh-V*1E3&&N<=X+H.durationMs+V*1E3){C={bF:H,ZJ:C};break a}}C={bF:void 0,ZJ:C}}else C=PAX(p,C,1);return C.bF}; BpY=function(p,C){C=C===void 0?"":C;var V=Nn(C)||void 0;if(!C||!V){var N;p.playback.k_("sdai",{adcfg:(N=C)==null?void 0:N.length,dcfg:V==null?void 0:V.length})}return V}; Gaa=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.playback.removeCueRange(V.value);C=g.F(p.S);for(V=C.next();!V.done;V=C.next())p.playback.removeCueRange(V.value);p.C.clear();p.S=[];p.Wr.clear();p.UY.clear();p.vr.clear();p.T||(p.R$=!0)}; e7V=function(p,C,V,N,H,X,d){if(C&&V){p.vc=V.cpn;n8H(p,V);var a=p7(p,"a2a",V);p.playback.k_("sdai",a);p.CM++;p.playback.Mz(C,V,N||0,H||0,!!X,!!d)}else p.playback.k_("sdai",{misspbkonadtrans:1,enter:(V==null?void 0:V.cpn)||"",exit:(C==null?void 0:C.cpn)||"",seek:X,skip:d})}; NS=function(p,C,V){if(V===1){if(p.Wr.has(C))return p.Wr.get(C)}else{if(V===2&&p.UY.has(C))return p.UY.get(C);if(V===3&&p.vr.has(C))return p.vr.get(C)}}; Clj=function(p,C,V,N){if(N)for(N=0;NV){var X=H.end;H.end=C;pK1(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.playback.removeCueRange(H);if(p.Ga.includes(H))p.onCueRangeExit(H);p.S.splice(N,1);continue}N++}else pK1(p,C,V)}; pK1=function(p,C,V){C=p.C3(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.playback.removeCueRange(H):V=!1;p.S.splice(N,1);continue}}N++}if(V)for(p.playback.addCueRange(C),C=p.playback.SL("serverstitchedcuerange",36E5),C=g.F(C),V=C.next();!V.done;V=C.next())p.C.delete(V.value.getId())}; HN=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 Ai1(C))}}; g.W7a=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}; YPX=function(p,C,V,N,H){var X;C={reason:"overlapping_playbacks",Mte:C,Dh:V,qZ:N,AFr:H.OZ,xrS:((X=H.videoData)==null?void 0:X.videoId)||"",btx:H.durationMs,n$n:H.Dh,CLo:H.qZ};B$(p,C)}; B$=function(p,C,V){p.playback.K2(C,V)}; jzv=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}; VxV=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}; NQQ=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}; H81=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.qZ!==C.Dh&&V++;return V}; XKH=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.qZ!==H.Dh&&(H=H.cpn,C===H&&(N=!0),N&&!p.cV.has(H)&&(p.playback.k_("sdai",{decoratedAd:H}),p.cV.add(H)))}}; kaQ=function(p){p.Y_&&p.playback.k_("sdai",{adf:"0_"+((new Date).getTime()/1E3-p.zB)+"_isTimeout_"+p.Vn})}; x0u=function(p,C,V){if(p.Sa.length)for(var N=g.F(p.Sa),H=N.next(),X={};!H.done;X={cW:void 0},H=N.next()){X.cW=H.value;H=X.cW.startSecs*1E3;var d=X.cW.zI*1E3+H;if(C>H&&CH&&V0&&N>C*1E3+p.kIS)&&(N=EwV(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}gR(H)===p.vc&&(C=!0)}N=void 0;if(V)N=gR(V);else if(C){var X;N=(X=p.timeline.T)==null?void 0:gR(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:gR(d)})}}}}; hHy=function(p){return p.api.G("html5_force_ssap_gapful_switch")||p.api.G("html5_ssap_enable_legacy_browser_logic")&&!rN()}; TQX=function(p,C,V,N){p.Uo.set(C,N);txL(p,C,V);cge(p,V)}; Lc=function(p,C){p=EZ(p.timeline,C);return(p==null?0:p.length)?p[0].r6():0}; gS=function(p,C){var V=V===void 0?!1:V;var N=p.timeline.T;if(!N)return{clipId:"",Ge:0};var H=Mxy(p,C,V);if(H)return{clipId:gR(H)||"",Ge:H.r6()};p.api.k_("mci",{cs:gR(N),mt:C,tl:Yk(p),invt:!!V});return{clipId:"",Ge:0}}; h6=function(p){var C=p.timeline.T;if(!C)return 0;p=0;if(C.T.size===0)return(C.u0()-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.u0()-N.r6())/1E3}return p}; mw1=function(p,C){return(p=JgS(p,C*1E3))?p.r6():0}; vwX=function(p,C){var V=EZ(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.u0()-V.r6())/1E3;else return h6(p);return C}; JgS=function(p,C){if(p=EZ(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.u0()>=C)return V}}; FbV=function(p){var C=p.Ta.getVideoData();p.vc&&(p=p.V6.get(p.vc))&&(C=p);return C}; EwV=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.Hy(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.u0())return C;return p.timeline}return C&&C.length>0?C[C.length-1]:void 0}}; Mxy=function(p,C,V){V=V===void 0?!1:V;var N=EwV(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.u0()>C)return X;if(V&&N.r6()===N.u0())return p[0]}}else p.api.k_("ssap",{ctnf:1})}; dwY=function(p,C){var V;if(p.HA)for(V=p.uK.shift();V&&V!==p.HA;)V=p.uK.shift();else V=p.uK.shift();if(V){if(p.HB.has(V))Ssv(p,V);else if(C===3||C===4)p.pZ.stop(),p.api.playVideo(1,p.api.G("html5_ssap_keep_media_on_finish_segment"));p.Uo.set(p.vc,C);p.api.k_("ssap",{onvftn:1});cge(p,V);return!1}p.api.k_("ssap",{onvftv:1});p.pZ.stop();return!0}; Ssv=function(p,C){C=EZ(p.timeline,C);if(C==null?0:C.length)p.api.pauseVideo(),p.pZ.start(C[0].T5)}; cge=function(p,C){var V=p.Ta.getVideoData(),N=V.clientPlaybackNonce;p.XW&&(p.events.rY(p.XW),p.XW=null,p.Ta.sM=-1);var H=p.vc,X=!1;if(H==="")H=N,X=!0;else if(H===void 0){var d=p.Ta.iU().UE;d&&p.timeline.C.has(d)&&(H=d);p.api.k_("ssap",{mcc:H+";"+C});p.Ta.DE(new ON("ssap.timelineerror",{e:"missing_current_cpn",pcpn:H,ccpn:C}))}if(H===C)X&&V&&KbS(p,V,X);else{d=p.Uo.get(H);if(!X&&(!d||d!==3&&d!==5&&d!==6&&d!==7)){var a=p.api.B8(p.vc);p.api.k_("ssap",{nmec:a,cpc:p.vc,ec:C})}d&&d!==2||dJ(p);p.vc=C;dJ(p); C=EZ(p.timeline,p.vc);if(C==null?0:C.length){C=C[0];a=C.getType();H!==N&&(p.ww=H,V=p.V6.get(H));d?p.Uo.delete(H):d=X?1:2;p.api.G("html5_ssap_pacf_qoe_ctmp")&&a===2&&!C.C&&(p.XW=p.events.U(p.api,"onVideoProgress",p.B7a));p.api.k_("ssapt",{ostro:d,pcpn:H,ccpn:p.vc});a:{var E=p.vc;if(!p.AB.has(E))for(var l=g.F(p.AB),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.iU();if(c.UE!==t){var T=c.Pc(c.UE);E=c.Pc(t);c.UE=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.bF(t.provider),qZY(t,l,"SU")),isNaN(t.Y)||g.Dr(t.Y)),E.resume())}E=Math.max(0,ij(p,H));l=p.Ta.getCurrentTime();l=Math.max(0,l-Lc(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.iU(); 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 Y;A=q?((Y=D.getVideoData())==null?void 0:Y.videoId)||"":"nvd";var W;Y=f?((W=Z.getVideoData())==null?void 0:W.videoId)||"":"nvd";q&&(W=D.qoe)!=null&&(nu(W,4,M?4:0,J,Y,E),W.reportStats());f&&(GK(Z),(W=Z.qoe)!=null&&(nu(W,4,M?5:1,T,A,l),W.reportStats()),a_L(Z,new g.FK(S,Z.OO)),h2y(Z));JH1(c,T)}p.api.k_("ssapt", {ostri:d,pcpn:H,ccpn:p.vc});var L;BRs(H,p.vc,N,t,(L=p.Rf.get(H))!=null?L:(0,g.Ip)(),V);p.Rf.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.t7();p.api.publish("videodatachange","newdata",t,a,V,d);C.C||p.Ta.getVideoData().publish("dataupdated");p.HB.delete(H);p.HA="";t&&a===1?KbS(p,t):p.Ta.k_("ssap",{nis:p.vc});a===2?p.CM++: p.CM=0}}}; KbS=function(p,C,V){V=V===void 0?!1:V;if(C.startSeconds&&p.kX){var N=C.startSeconds;C=EZ(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.kC()||(p.Ta.seekTo(N,{Oq:!0}),p.kX=!1,p.Ta.k_("ssap",{is:p.vc,co:V?"1":"0",tse:N.toFixed()}))}}; txL=function(p,C,V){C=EZ(p.timeline,C);if(C!=null&&C.length&&(C=EwV(p,C[0].r6()))){C=g.F(C.segments);for(var N=C.next();!N.done;N=C.next()){N=N.value;if(gR(N)===V)break;if(N=gR(N)){var H=p.AB.get(N);H&&p.Ta.removeCueRange(H);p.AB.delete(N)}}}}; KA=function(p){return p.Ta.getVideoData().clientPlaybackNonce}; DIj=function(p,C){if(p.Nq&&p.vc!==C)return!1;if(p.lA)return!0;if(C=p.AB.get(C))if(C=C.getId().split(","),C.length>1)for(var V=0;V0?p:0)}; ij=function(p,C){C=C||p.vc;var V=p.V6.get(C);return V?V.Kx:C!==KA(p)?0:p.Ta.getVideoData().Kx}; Yk=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.u0()+";";var a=gR(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.Vv()}; i8a=function(p){p.Ta.ra(Array.from(p.AB.values()));p.AB.clear()}; uhe=function(p,C,V){g.z.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(){Dwa(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.YZ(this);V.getPlayerType();g.R(this,this.J);g.R(this,this.sY);g.R(this,this.events);this.events.U(this.api,g.sz("childplayback"),this.onCueRangeEnter);this.events.U(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.U(this.api,"presentingplayerstatechange",this.M5)}; O8X=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 hX(p,"enterAfterReturn enterTimeMs="+H+" is greater than parentReturnTimeMs="+X.toFixed(3),d,a),"";var l=E.m6()*1E3;if(Hl)return E="returnAfterDuration parentReturnTimeMs="+X.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+ E.X0(),hX(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 hX(p,"overlappingReturn",d,a),"";if(X===c.Dh)return hX(p,"outOfOrder",d,a),"";H===c.qZ&&(l=c)}d="cs_childplayback_"+Z8j++;a={zN:aC(N,!0),Q1:Infinity,target:null};var T={OZ:d,playerVars:C,playerType:V,durationMs:N,Dh:H,qZ:X,uO:a};p.C=p.C.concat(T).sort(function(S,D){return S.Dh-D.Dh}); l?UwV(p,l,{zN:aC(l.durationMs,!0),Q1:l.uO.Q1,target:T}):(C={zN:aC(H,!1),Q1:H,target:T},p.Y.set(C.zN,C),E.addCueRange(C.zN));C=!0;if(p.T===p.api.Nt()&&(E=E.getCurrentTime()*1E3,E>=T.Dh&&EC)break;if(X>C)return{bF:N,ZJ:C-H};V=X-N.qZ/1E3}return{bF:null,ZJ:C-V}}; Dwa=function(p,C,V){V=V===void 0?{}:V;var N=p.W||p.api.Nt().getPlayerState();tX(p,!0);C=isFinite(C)?C:p.T.Gi();var H=b8V(p,C);C=H.bF;H=H.ZJ;var X=C&&!Et(p,C)||!C&&p.T!==p.api.Nt(),d=H*1E3;d=p.V&&p.V.start<=d&&d<=p.V.end;!X&&d||lj(p);C?f2L(p,C,H,V,N):Agu(p,H,V,N)}; Agu=function(p,C,V,N){var H=p.T,X=p.api.Nt();H!==X&&p.api.sX();H.seekTo(C,Object.assign({},{L1:"application_timelinemanager"},V));owL(p,N)}; f2L=function(p,C,V,N,H){var X=Et(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.aA(d,C.playerType)}d=p.api.Nt();X||d.addCueRange(C.uO.zN);d.seekTo(V,Object.assign({},{L1:"application_timelinemanager"},N));owL(p,H)}; owL=function(p,C){p=p.api.Nt();var V=p.getPlayerState();C.isOrWillBePlaying()&&!V.isOrWillBePlaying()?p.playVideo():C.isPaused()&&!V.isPaused()&&p.pauseVideo()}; tX=function(p,C){p.a$=NaN;p.Z=null;p.J.stop();p.S&&C&&p.S.mQ();p.W=null;p.S=null}; Et=function(p,C){p=p.api.Nt();return!!p&&p.getVideoData().OZ===C.OZ}; kYL=function(p){var C=p.C.find(function(H){return Et(p,H)}); if(C){var V=p.api.Nt();lj(p);var N=new g.E3(8);C=I2v(p,C)/1E3;Agu(p,C,{},N);V.k_("forceParentTransition",{childPlayback:1});p.T.k_("forceParentTransition",{parentPlayback:1})}}; YsX=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.Q1>=N&&a.target&&a.target.qZ<=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.qZ<=H){var E=p;E.D===a&&lj(E);Et(E,a)&&E.api.sX()}else X.push(a);p.C=X;N=b8V(p,C/1E3);C=N.bF;N=N.ZJ;C&&(N*=1E3,xwH(p,C,N,C.qZ===C.Dh+C.durationMs?C.Dh+N:C.qZ));(C=b8V(p,V/1E3).bF)&& hX(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.qZ+"}.Child playbacks can only have duration updated not their start."))}; xwH=function(p,C,V,N){C.durationMs=V;C.qZ=N;N={zN:aC(V,!0),Q1:V,target:null};UwV(p,C,N);Et(p,C)&&p.api.Nt().getCurrentTime()*1E3>V&&(C=I2v(p,C)/1E3,V=p.api.Nt().getPlayerState(),Agu(p,C,{},V))}; hX=function(p,C,V,N){p.T.k_("timelineerror",{e:C,cpn:V?V:void 0,videoId:N?N:void 0})}; RHQ=function(p){p&&p!=="web"&&zHQ.includes(p)}; MS=function(p,C){g.z.call(this);var V=this;this.data=[];this.V=p||NaN;this.C=C||null;this.T=new g.N8(function(){cN(V);TR(V)}); g.R(this,this.T)}; nw1=function(p){cN(p);return p.data.map(function(C){return C.value})}; cN=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(FR(p)){var l=gwa(p);var t=isNaN(l)||g.G4||pA&&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.mG(t,l,C.width, C.height),p.qW.style.setProperty("border-radius","12px")):t=new g.mG(0,0,C.width,C.height):(V=H.aspectRatio/l,t=new g.mG((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.TH)p.qW.style.display="";p.vy=!0}else{t=-C.height;BW?t*=window.devicePixelRatio:g.gG&&(t-=window.screen.height);t=new g.mG(0,t,C.width,C.height);if(a||p.TH)p.qW.style.display= "none";p.vy=!1}vf(p.h3,t)||(p.h3=t,g.yj(X)?(p.qW.style.setProperty("width",t.width+"px","important"),p.qW.style.setProperty("height",t.height+"px","important")):g.I9(p.qW,t.getSize()),N=new g.vG(t.left,t.top),g.f2(p.qW,Math.round(N.x),Math.round(N.y)),N=!0);C=new g.mG((C.width-H.width)/2,(C.height-H.height)/2,H.width,H.height);vf(p.dB,C)||(p.dB=C,N=!0);g.Sh(p.qW,"transform",V===1?"":"scaleX("+V+")");d&&E!==p.L5&&(E&&(p.qW.addEventListener(Kc,p.MV),p.qW.addEventListener("transitioncancel",p.MV),p.qW.classList.add(g.nz.VIDEO_CONTAINER_TRANSITIONING)), p.L5=E,p.app.ea.publish("playerUnderlayVisibilityChange",p.L5?"transitioning":"hidden"));return N}; BQS=function(){this.csn=g.bz();this.clientPlaybackNonce=null;this.elements=new Set;this.V=new Set;this.T=new Set;this.C=new Set}; GYj=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")?ut(Kz(),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.SM=function(p,C,V,N){g.z.call(this);var H=this;this.logger=new g.cI("App");this.L6=this.uM=!1;this.Hd={};this.Am=[];this.wQ=!1;this.Tl=null;this.intentionalPlayback=!1;this.bN=!0;this.YZ=!1;this.VO=this.h5=null;this.hP=!0;this.mediaElement=this.Sb=null;this.G5=NaN;this.V9=!1;this.BV=this.XD=this.Ze=this.R6=this.screenLayer=this.mf=this.playlist=null;this.VZ={B1:function(){return H.Ze}, yC:function(E){H.Ze=E}, nR:function(E,l){H.Ze&&H.Ze.nR(E,l)}}; this.logger.debug("constructor begin");this.config=jqv(C||{});this.webPlayerContextConfig=V;cCy();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);U0v(this.yn);N=OCX(this.yn);this.yn.experiments.OY("jspb_serialize_with_worker")&&rpY();this.yn.experiments.OY("gzip_gel_with_worker")&&nFy();this.yn.C&&!ptH&&(window.addEventListener(vg?"touchstart":"click",VNv,{capture:!0,passive:!0}),ptH=!0);this.G("html5_onesie")&&(this.jg=new $k(this.yn), g.R(this,this.jg));this.nY=iO(uL(this.yn)&&!0,C.enablesizebutton);this.mq=iO(!1,C.player_wide);this.visibility=new F7s;g.R(this,this.visibility);this.G("web_log_theater_mode_visibility")&&this.Wx(iO(!1,C.player_wide));this.uM=iO(!1,C.external_list);this.events=new g.YZ(this);g.R(this,this.events);this.G("start_client_gcf")&&(kJ(Rh(),{GP:K5,e0:aJS()}),this.Eb=Rh().resolve(K5),tJy(this.Eb));this.Elk=new KT;g.R(this,this.Elk);this.t6=new BQS;C=new Dg;this.ea=new g.Yj(this,C);g.R(this,this.ea);this.template= new $wL(this);g.R(this,this.template);this.appState=1;this.P$=CCX(this);g.R(this,C);C={};this.Iw=(C.internalvideodatachange=this.AZ,C.playbackready=this.EMn,C.playbackstarted=this.u0S,C.statechange=this.mWn,C);this.zL=new fn(this.ea);this.n7=jyV(this);C=this.G("html5_load_wasm");var X=this.G("html5_allow_asmjs");if(C&&VAy||X)this.yn.iM=e1u(this.n7,X),t5(lt(this.yn.iM,function(E){H.yn.TN=E;var l;(l=H.X$())==null||l.k_("wasm",{a:E.x$})}),function(E){g.eG(E); E="message"in E&&E.message||E.toString()||"";var l;(l=H.X$())==null||l.k_("wasm",{e:E})}); else if(C&&!VAy){var d;(d=this.X$())==null||d.k_("wasm",{e:"wasm unavailable"})}this.mM=new QvQ(this.yn,this.n7);this.ea.publish("csiinitialized");d=10;g.qz(this.yn)&&(d=3);$S(this.yn)&&(d=g.Mz(this.yn.experiments,"tvhtml5_unplugged_preload_cache_size"));d=new MS(d,function(E){E!==g.$a(H,E.getPlayerType())&&E.dispose()}); g.R(this,d);this.o_=new SPX(d,{});this.B$=Niy(this);this.o_.kV(this.B$);Hlu(this);d={};this.sj=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.sP,d.sabrCaptionsDataLoaded=this.T7a,d.endseeking=this.m1,d.internalAbandon=this.qf,d.internalaudioformatchange=this.hv,d.internalvideodatachange=this.onVideoDataChange,d.internalvideoformatchange=this.BC,d.liveviewshift=this.Mba,d.playbackstalledatstart=this.zbV,d.progresssync= this.YZe,d.onAbnormalityDetected=this.bd,d.onSnackbarMessage=this.onSnackbarMessage,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.Y3,d.SEEK_TO=this.C9_,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.onPlaybackPauseAtStart=this.i1k,d.playbackready=this.fEx,d.statechange=this.OD,d.newelementrequired=this.v0,d.heartbeatparams=this.Fk,d.videoelementevent=this.Zv,d.drmoutputrestricted=this.onDrmOutputRestricted,d.signatureexpired= this.SO_,d.nonfatalerror=this.Vrx,d.reloadplayer=this.O1k,d);this.AV=new g.YZ(this);g.R(this,this.AV);this.x8=new mP;g.R(this,this.x8);this.HG=this.Ht=-1;this.wr=new g.N8(this.template.resize,16,this.template);g.R(this,this.wr);this.NZ=new uhe(this.ea,this.yn,this.B$);this.Ri=new Lv(this.yn);this.Qr=new MNs(this);g.R(this,this.Qr);this.FW=new Rv(this);g.R(this,this.FW);RHQ(this.yn.T.c);this.events.U(this.ea,g.sz("appapi"),this.rQa);this.events.U(this.ea,g.aj("appapi"),this.Vb$);this.events.U(this.ea, g.sz("appprogressboundary"),this.R3a);this.events.U(this.ea,g.aj("applooprange"),this.q9);this.events.U(this.ea,"presentingplayerstatechange",this.M5);this.events.U(this.ea,"resize",this.oGY);this.template.u_(rI(document,p));this.events.U(this.ea,"offlineslatestatechange",this.EG$);this.n7.N.K().Gp&&Px(this.n7,"offline");this.yn.l_&&g.bi("ux",g.Ya);p=g.Mz(this.yn.experiments,"html5_defer_fetch_att_ms");this.yY=new g.N8(this.LcS,p,this);g.R(this,this.yY);this.RN().GN()&&(g.nK()&&this.RN().Vn.push("remote"), Xta(this));this.mM.tick("fs");dCu(this);if(this.yn.Gk()&&this.yn.G("html5_record_h5vcc_flags")){var a;(a=this.X$())==null||a.k_("h5vcc",N)}this.yn.l_&&Px(this.n7,"ux",!0);g.KI(this.n7.N.K())&&Px(this.n7,"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.jl=ilQ(this);if(V=g.Mz(this.yn.experiments,"html5_block_pip_safari_delay"))this.UB=new g.N8(this.Ls,V,this),g.R(this,this.UB);zQ=this.yn.zB;V=g.Mz(this.yn.experiments,"html5_performance_impact_profiling_timer_ms");V>0&&(this.FY=new g.q7(V),g.R(this,this.FY),this.events.U(this.FY,"tick",function(){H.qN&&hmy.nQ("apit",H.qN);H.qN=hmy.Hx()})); this.ea.publish("applicationInitialized");this.logger.debug("constructor end")}; ilQ=function(p){function C(V){V.stack&&V.stack.indexOf("player")!==-1&&(p.X$()||p.V$()).zF(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)}}; Niy=function(p){var C=new g.YB(p.yn,p.config.args);p.ea.publish("initialvideodatacreated",C);return p.qP(1,C)}; Hlu=function(p){var C=p.V$();C.setPlaybackRate(p.yn.S?1:sy1(p,Number(g.zW("yt-player-playback-rate"))||1));C.kQ(p.Iw,p);C.kA()}; jyV=function(p){var C="",V=PlV(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 uR1(p.ea,C);aGj(p,C);return C}; aGj=function(p,C){var V={};V=(V.destroyed=function(){p.onApiChange()},V); C.V=V}; CCX=function(p){if(p.yn.storeUserVolume){p=g.zW("yt-player-volume")||{};var C=p.volume;p={volume:isNaN(C)?100:g.M$(Math.floor(C),0,100),muted:!!p.muted}}else p={volume:100,muted:p.yn.mute};return p}; K7=function(p){p.mediaElement=p.yn.deviceIsAudioOnly?new g.cx(g.dW("AUDIO")):z8.pop()||new g.cx(g.dW("VIDEO"));g.R(p,p.mediaElement);var C=p.X$();C&&C.setMediaElement(p.mediaElement);try{p.yn.K1?(p.XD&&p.events.rY(p.XD),p.XD=p.events.U(p.mediaElement,"volumechange",p.CJk)):(p.mediaElement.m3(p.P$.muted),p.mediaElement.setVolume(p.P$.volume/100))}catch(H){p.dI("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.AV);EhX(p);C=p.template;var V=p.mediaElement.AQ();C.qW=V;C.Wu=!1;C.qW.parentNode||aN(C.dH,C.qW,0);C.h3=new g.mG(0,0,0,0);rga(C);vN(C);V=C.qW;g.Ed(V,"video-stream");g.Ed(V,g.nz.MAIN_VIDEO);var N=C.app.K();N.wh&&V.setAttribute("data-no-fullscreen","true");N.G("html5_local_playsinline")?"playsInline"in Ir()&&(V.playsInline=!0):N.XV&&(V.setAttribute("webkit-playsinline",""),V.setAttribute("playsinline",""));N.qr&&C.qW&&C.U(V,"click",V.play,V);try{p.mediaElement.activate()}catch(H){p.dI("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g,"_")))}}; tAu=function(p){if(!lGS(p)){var C=p.V$().Sd();C&&(C=C.ST(),C instanceof Promise&&C.catch(function(){})); DN(p,vj(p.getPlayerStateObject()))}}; EhX=function(p){var C=p.mediaElement;kZ()?p.AV.U(C,"webkitpresentationmodechanged",p.ade):window.document.pictureInPictureEnabled&&(p.AV.U(C,"enterpictureinpicture",function(){p.zQ(!0)}),p.AV.U(C,"leavepictureinpicture",function(){p.zQ(!1)})); CK&&(p.AV.U(C,"webkitbeginfullscreen",function(){p.BI(3)}),p.AV.U(C,"webkitendfullscreen",function(){p.BI(0)}))}; cZy=function(p,C){var V=C.vR,N=V.getPlayerType(),H=p.o_.T[N]||null;V!==p.V$()&&V!==(H==null?void 0:H.vR)&&(H==null||H.dispose(),p.o_.T[N]=C)}; TiH=function(p,C){C=C===void 0?!0:C;p.logger.debug("start clear presenting player");var V;if(V=p.BV){V=p.BV;var N=p.mediaElement;V=!!N&&N===V.mediaElement}V&&(p.eU(),K7(p));if(V=p.X$())V.eU(!C),V.OX(p.sj,p),V.getPlayerType()!==1&&V.Ta.dispose();p.mf=null;C=p.o_;C.mf=null;C.V=null;p.logger.debug("finish clear presenting player")}; g.$a=function(p,C){if(C)if(C===1)p=p.B$;else if(p.getVideoData().enableServerStitchedDai&&C===2)p=p.getVideoData().enablePreroll?p.o_.T[2]||p.mf:p.mf;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.zS();p=C?p.mf:p.o_.T[2]||p.mf}else p=p.o_.T[C]||null;else p=p.mf;return p}; yk=function(p,C){var V;return((V=g.$a(p,C))==null?void 0:V.vR)||null}; MAX=function(p,C,V,N){p=p.qP(C,V,N);p.kA();return p}; uj=function(p,C){return p.lW(C)?p.V$():C}; ZN=function(p,C){var V=p.X$(),N=p.V$();return V&&C===N&&p.lW(C)&&p.lW(V)?V:C}; vhV=function(p){p.logger.debug("start application playback");if(p.V$().getPlayerState().isError())p.logger.debug("start application playback done, player in error state");else{var C=Ut(p);p.RN().isLoaded();C&&p.Uc(6);JZ1(p);ofy(p.n7)||mCs(p)}}; mCs=function(p){if(!Ut(p)){var C=$W(p.n7);C&&!C.created&&Z7a(p.n7)&&(p.logger.debug("reload ad module"),C.create())}}; JZ1=function(p){p.logger.debug("start presenter playback");var C=p.getVideoData(),V=p.n7;ofy(V)||V.M7();!VAy&&V.N.G("html5_allow_asmjs")&&nf9(V);Px(V,"embed");Px(V,"inline_preview");Px(V,"kids");Px(V,"remote");Px(V,"miniplayer");Px(V,"offline");Px(V,"unplugged");Px(V,"ypc",!1,!0);Px(V,"ypc_clickwrap",!1,!0);Px(V,"yto",!1,!0);Px(V,"webgl",!1,!0);kRy(V)||(Px(V,"captions",!0),Px(V,"endscreen"),V.RJ()||V.b5(),Px(V,"creatorendscreen",!0));V.J4();p.ea.publish("videoready",C)}; f7=function(p){p=p.RN();p.GN();return Nh(p)}; dCu=function(p){p.logger.debug("start prepare initial playback");p.G("html5_enable_ssap_autoplay_debug_logging")&&p.V$().k_("ssap",{preppb:1});p.Iq();var C=p.config.args;K7(p);var V=p.RN();p.ea.v1("onVolumeChange",p.P$);if(C&&CjH(C)){var N=nI(p.yn);N&&!p.uM&&(C.fetch=0);var H=g.KI(p.yn);H&&!p.uM&&(C.fetch=0);Ot(p,C);g.KI(p.yn)&&p.mM.tick("ep_pr_s");if(!N||p.uM)if(H&&!p.uM)FFs(p);else if(!V.GN())p.playlist.onReady(function(){yw(p)})}p.Gf(p.B$); g.r(p.V$().getPlayerState(),128)||(C=cOS(!p.yn.deviceIsAudioOnly),C==="fmt.noneavailable"?p.dI("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):C==="html5.missingapi"?p.dI(C,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):V&&V.GN()&&f7(p)&&(p.yn.ZZ||p.yn.Kx)?qS(p):V.Fs?p.G("embeds_enable_full_length_inline_muted_autoplay")?p.ea.mutedAutoplay({durationMode:V.mutedAutoplayDurationMode}):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),qS(p)):rG(p.yn)||Sxs(p),g.wG(p.yn)||Lb(p.yn)==="MWEB"?(g.Vl(g.HW(),function(){IC(p)}),g.Vl(g.HW(),function(){Keu()})):(IC(p),Keu()),p.logger.debug("finish prepare initial playback"))}; IC=function(p){if(!p.G("use_rta_for_player"))if(p.G("fetch_att_independently"))g.HF(p.yY);else{var C=p.getVideoData().botguardData;C&&g.A5(C,p.yn,p.getVideoData().V8||"")}}; Sxs=function(p){p.logger.debug("start initialize to CUED mode");p.ea.publish("initializingmode");p.Uc(2);p.G("embeds_web_enable_defer_loading_remote_js")&&g.LI(p.yn)?g.Vl(g.HW(),function(){Px(p.n7,"remote")}):Px(p.n7,"remote"); Px(p.n7,"miniplayer");p.logger.debug("initialized to CUED mode")}; qS=function(p){p.logger.debug("start initialize application playback");var C=p.V$();if(g.r(C.getPlayerState(),128))return!1;var V=C.getVideoData();f7(p)&&p.yn.Kx&&(z8.length&&p.L6?(bj(p,{muted:!1,volume:p.P$.volume},!1),AX(p,!1)):z8.length||p.P$.muted||(bj(p,{muted:!0,volume:p.P$.volume},!1),AX(p,!0)));f7(p)&&g.KI(p.yn)&&V.mutedAutoplay&&(bj(p,{muted:!0,volume:p.P$.volume},!1),AX(p,!0));V.S8&&bj(p,{muted:!0,volume:p.P$.volume},!1);KF1(p,1,V,!1);p.ea.publish("initializingmode");p.Gf(p.B$);p.Uc(3); var N;if(!(N=!p.yn.y6)){if(N=p.BV){N=p.BV;var H=p.mediaElement;N=!!H&&H===N.mediaElement}N=N&&p.wQ}N&&(p.eU(),K7(p),C.setMediaElement(p.mediaElement));C.Sm();if(g.r(C.getPlayerState(),128))return!1;V.X5||DN(p,3);return p.wQ=!0}; Ut=function(p){p=nT(p.n7);return!!p&&p.loaded}; DCe=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}; UCY=function(p){var C=p.X$();C&&id(C.getVideoData())&&!C.wZ()&&(C=uZV(p)*1E3-p.getVideoData().Sv,p.G("html5_gapless_new_slr")?(p=p.FW,ZlQ(p.app,"gaplessshortslooprange"),C=new g.iG(0,C,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(p=p.app.Nt())&&p.addCueRange(C)):p.setLoopRange({startTimeMs:0,endTimeMs:C,type:"shortsLoop"}))}; fGy=function(p){var C=p.V$();if(!(g.r(C.getPlayerState(),64)&&p.RN().isLivePlayback&&p.Sb.startTimeMs<5E3)){if(p.Sb.type==="repeatChapter"){var V,N=(V=RTe(p.Tk()))==null?void 0:V.SU(),H;V=(H=p.getVideoData())==null?void 0:H.Ov;N instanceof g.du&&V&&(H=V[uW(V,p.Sb.startTimeMs)],N.renderChapterSeekingAnimation(0,H.title));isNaN(Number(p.Sb.loopCount))?p.Sb.loopCount=0:p.Sb.loopCount++;p.Sb.loopCount===1&&p.ea.Jk("innertubeCommand",p.getVideoData().c7)}N={L1:"application_loopRangeStart"};if(p.Sb.type=== "clips"||p.Sb.type==="shortsLoop")N.seekSource=58;C.seekTo(p.Sb.startTimeMs*.001,N)}}; sy1=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}; uZV=function(p,C){C=yk(p,C);if(!C)return 0;C=uj(p,C);return oC(p,C.eX(),C)}; oC=function(p,C,V){if(p.lW(V)){V=V.getVideoData();if(kf(p))V=C;else{p=p.NZ;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.V9||H!==C){V=V.lock(H?"portrait":"landscape");if(V!=null)V["catch"](function(){}); p.V9=!0}}else p.V9&&(p.V9=!1,V.unlock())}; PN=function(p,C,V){p.ea.publish(C,V);var N=g.qz(p.yn)||g.yj(p.yn)||g.$U(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=yk(p,H);d&&(d.getPlayerType()===2&&!p.lW(d)||g.ud(d.getVideoData()))||(p.getPresentingPlayerType()===3?nT(p.n7).Xk("control_seek",C,V):(d&&d===p.V$()&&p.Sb&&!DCe(p,C)&&p.setLoopRange(null),p.seekTo(C,V,N,H,X)))}; PCH=function(p,C,V,N){V&&(p.eU(),K7(p));V=p.X$();V.lr(C);var H=p.getVideoData(),X={};X.video_id=H.videoId;X.adformat=H.adFormat;H.isLivePlayback?Ge(H)&&g.Of(p.yn)&&(X.live_utc_start=V.Ft(),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.jS);H.oauthToken&&(X.oauth_token=H.oauthToken);H.y6&&(X.force_gvi=H.y6);X.autoplay=1;X.reload_count=H.wy+1;X.reload_reason=C;H.Up&&(X.unplugged_partner_opt_out=H.Up);H.Qo&& (X.ypc_is_premiere_trailer=H.Qo);H.playerParams&&(X.player_params=H.playerParams);p.loadVideoByPlayerVars(X,void 0,!0,void 0,void 0,N);C==="signature"&&p.R6&&mCs(p)}; wtV=function(p,C){p.RN().autonavState=C;g.Yl("yt-player-autonavstate",C);p.ea.publish("autonavchange",C)}; $CQ=function(p){var C=p.getVideoData().wh,V=p.yn.Wc,N=p.isInline()&&!p.getVideoData().ZT,H=p.mediaElement;C||V||N?H.V5():(H.zc(),bj(p,p.P$))}; Yf=function(p){var C=$W(p.Tk());C&&C.created&&(p.logger.debug("reset ad module"),C.destroy())}; kf=function(p){return p.getVideoData().enableServerStitchedDai&&!!p.R6}; LFs=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]=u4(p,N);C.hidden=!!p.hidden}; PlV=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:""}; ghv=function(p,C,V){if(C=yk(p,C)){if(C.getVideoData().clientPlaybackNonce===V)return C;var N;if((p=(N=p.Qr.T)==null?void 0:N.vR)&&p.getVideoData().clientPlaybackNonce===V)return p}return null}; xf=function(p,C){if(p.G("html5_ssap_enable_api_timing_logging")&&g.pf(p.RN())&&!p.Ri.V){var V;(V=p.X$())==null||V.k_("ssap",{ptnu:C})}}; WFy=function(p){return p.name==="TypeError"&&p.stack.includes("/s/player/")&&LO()<=105}; Qya=function(p){return p.isTimeout?"NO_BID":"ERR_BID"}; rZe=function(){var p=null;zzQ().then(function(C){return p=C},function(C){return p=Qya(C)}); return p}; Bi1=function(){var p=bm(1E3,"NO_BID");return O8(HHV([zzQ(),p]).gh(Qya),function(){p.cancel()})}; $f=function(p){return p.sO?g.LK(g.$l(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; L7=function(p){this.player=p;this.V=this.T=1}; CD1=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.$7(V)?!1:!0;(d||a)&&typeof Intl!=="undefined"&&(C.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);a=g.$7(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=[];G3u.forEach(function(t){l.has(t)&&(t={key:t,value:l.get(t)},E.params.push(t))}); pra(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)&&o_e(C,X,p.player.getPlayerState(1))}; NDy=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 jRv&&(X.clientName=jRv[N[0]]),N[1]in VW9&&(X.platform=VW9[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}; Xru=function(p){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in HLS))return!1;p=p.split(RegExp("[:&]"));var C=HLS.FLAG_AUTO_CAPTIONS_DEFAULT_ON,V="f"+(1+Math.floor(C/31)).toString();C=1<=2?d[1]:"";var a=iL9.test(C),E=h$y.exec(C);E=E!=null&&E.length>=2?E[1]:"";var l=sRa.exec(C);l=l!=null&&l.length>=2&&!Number.isNaN(Number(l[1]))?Number(l[1]):1;var t=aPQ.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.Da(T.Sa,!0),J="BISCOTTI_ID"in V?V.BISCOTTI_ID:"";CD1(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:20095,autonavState:$f(p.player.K())};N&&(N={},NDy(N,V.YT_REMOTE)&&(T.mdxContext=N));if(N=Esv.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= Xru(N)}C=lPu.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}; cu9=function(){L7.apply(this,arguments)}; TDj=function(p,C,V,N,H){var X=V.sC;var d=V.zN;var a=p.player.K().Uf,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.zI:E,AUTONAV_STATE:$f(p.player.K()),CA_TYPE:"image",CPN:p.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:p.player.e1()*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().j5().height,P_W:p.player.dV().j5().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="20095",(p=p.player.K().forcedExperiments)&&(N.forced_experiments=p));return Ek(g.nX(C,l),N)}; MWS=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=Bk();GC(d,X)}return g.s0(p.player.m$(d),C,"/youtubei/v1/player/ad_break").then(function(a){return a})})}; Ju9=function(p){this.No=p}; mJV=function(p){this.N=p}; vsL=function(p){this.No=p}; SqX=function(p){g.z.call(this);this.T=p;this.nU=FUL(this)}; FUL=function(p){var C=new T$V(p.T.Pa);g.R(p,C);p=g.F([new Ju9(p.T.No),new mJV(p.T.N),new vsL(p.T.No),new kY(p.T.WI,p.T.Q6),new YY,new nW(p.T.jZ,p.T.xb,p.T.No),new xY,new oE]);for(var V=p.next();!V.done;V=p.next())MF9(C,V.value);p=g.F(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(V=p.next();!V.done;V=p.next())zf(C,V.value,function(){}); return C}; gJ=function(p){var C=p.pS,V=p.x_;p=p.Mt;var N=new yqj,H={Jg:new lU1(C.get(),V),x_:V};return{hQ:new j3(V,p,C,H),context:H,DP:N}}; WN=function(p,C,V,N,H){g.z.call(this);this.C=C;this.mx=V;this.pS=N;this.UO=H;this.listeners=[];var X=new I_(this);g.R(this,X);X.U(p,"internalAbandon",this.qf);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"}; KUu=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}; DJS=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)){jL("ad_i");g.V3({isMonetized:!0});break}}; u4V=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}),NR("video_to_ad",C))}; pr=function(p){p.C=!1;var C={};p.T&&p.videoId&&(C.cttAuthInfo={token:p.T,videoId:p.videoId});NR("ad_to_video",C);ZL1(p)}; ZL1=function(p){if(p.V)if(p.S==="AD_PLACEMENT_KIND_START"&&p.actionType==="video_to_ad")G0("video_to_ad");else{var C={adBreakType:yP(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.V3(C,p.actionType)}}; rJ=function(p){g.z.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.sz("ad"),this.onCueRangeEnter,this);this.C.U(this.N,g.aj("ad"),this.onCueRangeExit,this)}; UJs=function(p,C,V,N,H){g.iG.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.Mz(this.N.K().experiments,"tv_pacf_logging_sample_rate")}; Zs=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}; Gm=function(p,C){return p.N.K().G(C)}; fPX=function(p){return p.N.K().G("substitute_ad_cpn_macro_in_ssdai")}; Fm=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}; FCs=function(p){return p.N.K().G("html5_enable_vod_slar_with_notify_pacf")}; OLY=function(p){return p.N.K().G("html5_recognize_predict_start_cue_point")}; pa=function(p){return p.N.K().experiments.OY("enable_desktop_player_underlay")}; yuQ=function(p){return p.N.K().experiments.OY("html5_load_empty_player_in_media_break_sub_lra")}; e6=function(p){return p.N.K().experiments.OY("html5_load_ads_instead_of_cue")}; Pj=function(p){return p.N.K().experiments.OY("html5_preload_ads")}; Qn=function(p){return p.N.K().experiments.OY("enable_ads_control_flow_deterministic_id_generation")}; qqv=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")}; IPH=function(p){return p.N.K().experiments.OY("enable_progres_commands_lr_feeds")}; bLy=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}}; Auy=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(osQ===null){osQ=new Auy;kc(kI).C="b";var p=kc(kI),C=OM(p)=="h"||OM(p)=="b",V=!(nh(),!1);C&&V&&(p.W=!0,p.Y=new RZe)}return osQ}; kss=function(p,C,V){p.T[C]=V}; xJV=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.lN,this);CD().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Kr,this);CD().subscribe("adviewableimpression",this.gJ,this);CD().subscribe("adaudioaudible",this.Bn,this);CD().subscribe("adaudiomeasurable",this.UA,this)}; NE=function(p,C,V){var N=V.Fn,H=V.JM,X=V.listener,d=V.Dx;V=V.t9===void 0?!1:V.t9;if(p.T.has(C))vE("Unexpected registration of layout in LidarApi");else{if(d){if(p.C.has(d))return;p.C.add(d)}p.T.set(C,X);tU(nh().IN,"fmd",1);rEy(kc(kI),N);var a=V?C:void 0;kss(CD(),C,{cG: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]):vE("Unexpected unregistration of layout in LidarApi")}; YqL=function(p,C){if(p.N.isLifaAdPlaying()){var V=p.N.v_(!0,!0);p.qc(C,V.width*.5*1.1,V.height*.25*1.1,V.width*.5*.9,V.height*.5*.9)}}; nsV=function(p,C,V){var N={};z$y(p,N,C,V);R$u(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}; e$9=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(mo(Math.round(ic(p.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else V.MIDROLL_POS=X7(mo("0"));return V}; X7=function(p){return{toString:function(){return p()}}}; PDs=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.oa(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}; z$y=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())?wry(p,d,X):0}else H=wry(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().j5().height.toString()}); C.P_W=X7(function(){return p.dV().j5().width.toString()}); C.PV_H=X7(function(){return p.dV().getVideoContentRect().height.toString()}); C.PV_W=X7(function(){return p.dV().getVideoContentRect().width.toString()})}; R$u=function(p){p.CONN=X7(mo("0"));p.WT=X7(function(){return Date.now().toString()})}; wry=function(p,C,V){return V!==void 0?p.getCurrentTime(C,!1,V):p.getCurrentTime(C,!1)}; $JQ=function(){}; LU1=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,PDs(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)}})}; gsy=function(p,C,V,N,H){this.S=p;this.W=C;this.T=V;this.C=N;this.V=H}; WUv=function(p,C){this.T=p;this.x_=C}; dv=function(p,C,V,N,H,X,d){var a=a===void 0?new gsy(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.C4=V;this.pS=N;this.hQ=H;this.x_=X;this.DP=d;this.S=a;this.WX=null;this.T=new Map;this.V=new WUv(a,this.x_)}; rus=function(p,C,V,N,H){var X=OA(p.C.get(),V);X?(V=bG(p,QRX(X),X,void 0,void 0,N),C.hasOwnProperty("baseUrl")?p.S.send(C,V):p.V.send(C,V,{},H)):vE("Trying to ping from an unknown layout",void 0,void 0,{layoutId:V})}; Fhs=function(p,C,V,N,H,X){N=N===void 0?[]:N;var d=OA(p.C.get(),C);if(d){var a=p.C4.get().U8(C,V),E=bG(p,QRX(d),d,H,X);N.forEach(function(l,t){l.baseUrl&&(p.V.send(l.baseUrl,E,a,l.attributionSrcMode),l.serializedAdPingMetadata&&p.hQ.w9("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,d,new C7X(l,t),void 0,void 0,d.adLayoutLoggingData))})}else vE("Trying to track from an unknown layout.",void 0,void 0,{layoutId:C, trackingType:V})}; Zl=function(p,C){p.N.sendVideoStatsEngageEvent(C,void 0,2)}; ib=function(p,C){g.t1("adsClientStateChange",C)}; BDL=function(p,C){p.T.has(C.vE())?vE("Trying to register an existing AdErrorInfoSupplier."):p.T.set(C.vE(),C)}; Gsa=function(p,C){p.T.delete(C.vE())||vE("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; al=function(p,C,V){typeof V==="string"?p.N.getVideoData(1).eY(C,V):p.N.getVideoData(1).k_(C,V)}; QRX=function(p){var C=sf(p.clientMetadata,"metadata_type_ad_placement_config");p=sf(p.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:C,KL:p}}; bG=function(p,C,V,N,H,X){var d=V?pAY(p):{},a=V?CEX(p,V.layoutId):{},E=jme(p),l,t=H!=null?H:(l=Z5(p.pS.get(),2))==null?void 0:l.clientPlaybackNonce;p.N.K().G("enable_player_logging_lr_home_infeed_ads")&&!t&&(t=Z5(p.pS.get(),1).clientPlaybackNonce);H=void 0;if(V){var c;if((c=p.DP.T.get(V.layoutId))==null?0:c.t9)H=V.layoutId}c={};p=Object.assign({},nsV(p.N,H,N),e$9(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.KL||0).toString()})); V={};X=Object.assign({},p,X);p=g.F(Object.values(Vcj));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}; pAY=function(p){var C={},V,N=(V=p.WX)==null?void 0:V.bM/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}; CEX=function(p,C){p=p.T.get(C);if(!p)return{};p=p.Ky();if(!p)return{};C={};return C.YT_ERROR_CODE=p.yI.toString(),C.ERRORCODE=p.gG.toString(),C.ERROR_MSG=p.errorMessage,C}; jme=function(p){var C={},V=p.N.getVideoData(1);C.ASR=X7(function(){var N;return(N=V==null?void 0:V.hI)!=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.z.call(this);this.N=p;this.pw=C;this.x_=V;this.listeners=[];this.Ro=null;this.bH=new Map;C=new g.YZ(this);g.R(this,C);C.U(p,"videodatachange",this.YO_);C.U(p,"serverstitchedvideochange",this.AiV);this.Ij=Z5(this)}; Z5=function(p,C){var V=p.N.getVideoData(C);return V?p.gK(V,C||p.N.getPresentingPlayerType(!0)):null}; NaV=function(p,C,V){var N=p.gK(C,V);p.Ij=N;p.listeners.forEach(function(H){H.XI(N)})}; HQS=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.z.call(this);this.N=p;this.pS=C;this.x_=V;this.listeners=[];this.wg=[];this.T=function(){vE("Called 'doUnlockPreroll' before it's initialized.")}; C=new I_(this);V=new g.YZ(this);g.R(this,V);g.R(this,C);C.U(p,"progresssync",this.DZ$);C.U(p,"presentingplayerstatechange",this.L6n);C.U(p,"fullscreentoggled",this.onFullscreenToggled);C.U(p,"onVolumeChange",this.onVolumeChange);C.U(p,"minimized",this.ri);C.U(p,"overlayvisibilitychange",this.Hz);C.U(p,"shortsadswipe",this.R5);C.U(p,"resize",this.OR);V.U(p,g.sz("appad"),this.hX)}; sm=function(p){pD(p.x_.get())||p.T()}; XAX=function(p,C){p.wg=p.wg.filter(function(V){return V!==C})}; aQ=function(p,C,V){return p.getCurrentTimeSec(C,V)}; du9=function(p,C){var V;C=(V=p.pS.get().bH.get(C))!=null?V:null;if(C===null)return vE("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,z$)}).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{QR:H, adSlots:N,Da:!1,ssdaiAdsConfig:p.ssdaiAdsConfig}}; TS=function(p){g.z.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.CF);this.T.U(this.N,"aduxmouseout",this.nF);this.T.U(this.N,"muteadaccepted",this.xWo)}; EzQ=function(p,C,V){C=g.bZ(C,function(N){return new POY(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={}}; lLe=function(p,C){var V=p.startSecs+p.zI;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{Nd:new Od(C,V),C_e:new kg(C,V-C,p.context,p.identifier,p.event,p.T)}}; tcQ=function(){this.T=[]}; mN1=function(p,C,V){var N=g.Hy(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.z.call(this);this.N=p;this.x_=C;this.No=V;this.listeners=[];this.S=!1;this.Kn=[];this.C=null;this.W=new JF(this,OLY(C.get()));this.V=new tcQ;this.T=null}; cSH=function(p,C){p.Kn.push(C);for(var V=!1,N=g.F(p.listeners),H=N.next();!H.done;H=N.next())V=H.value.OP(C)||V;p.S=V}; Mcu=function(p,C){ib(p.No.get(),{cuepointTrigger:{event:Ta9(C.event),cuepointId:C.identifier,totalCueDurationMs:C.zI*1E3,playheadTimeMs:C.T,cueStartTimeMs:C.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:p.N.getVideoData(1).clientPlaybackNonce}})}; Ta9=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 HT(p,"Unexpected cuepoint event")}}; vq=function(p){this.N=p}; JS1=function(p,C){p.N.cueVideoByPlayerVars(C,2)}; F7=function(p){this.N=p}; SC=function(p){this.N=p}; muu=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:HT(p,"unknown transitionReason")}}; vz9=function(p){this.N=p}; FXH=function(p,C,V,N,H){g.z.call(this);var X=this,d=$6(function(){return new W0(X.x_)}); g.R(this,d);var a=$6(function(){return new r6(d,X.x_)}); g.R(this,a);var E=$6(function(){return new UA}); g.R(this,E);var l=$6(function(){return new u_(p)}); g.R(this,l);var t=$6(function(){return new B0(d,a,X.x_)}); g.R(this,t);var c=$6(function(){return new VC}); g.R(this,c);this.Zh=$6(function(){return new TS(C)}); g.R(this,this.Zh);this.zk=$6(function(){return new gt(H)}); g.R(this,this.zk);this.sZ=$6(function(){return new Qw(C)}); g.R(this,this.sZ);this.f1=$6(function(){return new rJ(C)}); g.R(this,this.f1);this.gY=$6(function(){return new vq(C)}); g.R(this,this.gY);this.Pa=$6(function(){return new BN(C)}); g.R(this,this.Pa);this.x_=$6(function(){return new GR(C)}); g.R(this,this.x_);var T=$6(function(){return new cq(N)}); g.R(this,T);var M=$6(function(){return new J4(X.x_)}); g.R(this,M);this.Nn=$6(function(){return new F7(C)}); g.R(this,this.Nn);this.Oi=$6(function(){return new rt}); g.R(this,this.Oi);this.pS=$6(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.DP;this.hQ=J.hQ;this.UO=$6(function(){return new mf(C,X.x_,X.No)}); g.R(this,this.UO);this.kG=$6(function(){return new SC(C)}); g.R(this,this.kG);this.mx=$6(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);J=$6(function(){return new M3(d,t,a,X.x_,M,"SLOT_TYPE_ABOVE_FEED",X.mx,X.Iz,X.L9)}); g.R(this,J);this.hE=$6(function(){return new BU(X.x_)}); this.C4=$6(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.C4);this.No=$6(function(){return new dv(C,E,X.C4,X.pS,X.hQ,X.x_,D)}); g.R(this,this.No);this.BB=new Ka(S8,KD,function(f,q,A,Y){return G$(a.get(),f,q,A,Y)},l,t,a,M,this.x_,this.pS); g.R(this,this.BB);this.C7=new DY(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.C7);var Z=new WN(C,this.C7,this.mx,this.pS,this.UO);this.mS=$6(function(){return Z}); this.OA=Z;this.Iz=new v0(l,t,this.mS,this.UO,this.mx,this.x_,this.No,this.kG);g.R(this,this.Iz);this.R_=new ZY(l,t,this.f1,this.mS,S);g.R(this,this.R_);this.I6=new Yr(this.x_,l,t,J,this.pS,this.R_,V);g.R(this,this.I6);this.ZS=$6(function(){return new Mo(T,a,M,X.x_,X.No,X.mx,X.kG)}); g.R(this,this.ZS);this.n9=$6(function(){return new Jy}); g.R(this,this.n9);this.yx=new AL(p,this.Zh,this.x_);g.R(this,this.yx);this.UR=new oY(p);g.R(this,this.UR);this.aj=new kx(p);g.R(this,this.aj);this.GW=new Yx(p,this.mS,S);g.R(this,this.GW);this.P1=new zd(p,this.f1,this.mx,this.pS,S);g.R(this,this.P1);this.m5=new RY(p,this.pS);g.R(this,this.m5);this.L9=new P0(p,this.UO,this.mx,this.No,this.mS);g.R(this,this.L9);this.xl=new na(p);g.R(this,this.xl);this.u9=new g6(p);g.R(this,this.u9);this.Rz=new e8(p);g.R(this,this.Rz);this.BA=new La(p);g.R(this,this.BA); this.u9=new g6(p);g.R(this,this.u9);this.TM=$6(function(){return new yn}); g.R(this,this.TM);this.tB=$6(function(){return new q3(X.mx)}); g.R(this,this.tB);this.KE=$6(function(){return new nGy(X.Zh,X.No,p,E,X.C4)}); g.R(this,this.KE);this.Mw=$6(function(){return new j9(X.I6,l,d)}); g.R(this,this.Mw);this.SO=$6(function(){return new HB(X.x_,X.No,X.xl,X.C4)}); g.R(this,this.SO);this.Dr=$6(function(){return new mL(p,X.u9,X.xl,X.pS,X.kG,X.mx,X.No,c,X.UO,X.C4,X.hE,X.gY,X.f1,X.sZ,X.Pa,X.zk,X.Nn,X.x_,E,S,D)}); g.R(this,this.Dr);this.N_=$6(function(){return new Vpu(X.mx,X.No,X.zk,X.x_,X.C4)}); g.R(this,this.N_);this.Os=$6(function(){return new P$u(X.Zh,X.mx,X.No,E,X.C4,X.aj,X.BA,X.zk,X.x_,V)}); g.R(this,this.Os);this.Xy=$6(function(){return new eYs(X.Zh,X.No,E)}); g.R(this,this.Xy);this.Z3=new tF(p,this.Oi,d);g.R(this,this.Z3);this.zW={tv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.I6],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Iz],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.BB],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.C7],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.R_]]),fv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ZS],["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]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.yx],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.yx],["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.aj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.GW],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.P1],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.P1],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.P1],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.P1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.P1],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.P1],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.P1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.m5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.m5],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.GW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rz],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.BA],["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]]),l3: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.tB],["SLOT_TYPE_PLAYER_UNDERLAY",this.TM],["SLOT_TYPE_PLAYBACK_TRACKING",this.TM],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.TM]]),TE:new Map([["SLOT_TYPE_ABOVE_FEED",this.KE],["SLOT_TYPE_AD_BREAK_REQUEST",this.Mw],["SLOT_TYPE_FORECASTING",this.SO],["SLOT_TYPE_PLAYER_BYTES",this.Dr],["SLOT_TYPE_PLAYBACK_TRACKING",this.N_],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.N_],["SLOT_TYPE_IN_PLAYER",this.Os],["SLOT_TYPE_PLAYER_UNDERLAY",this.Xy]])};this.listeners=[E.get()];this.C6={I6:this.I6,xb:this.x_.get(),KS:this.zk.get(),QX:this.mx.get(),C7:this.C7,QW:d.get(),G4:this.Oi.get(),Q6:this.yx,WI:E.get(),jZ:this.pS.get()}}; Swe=function(p,C,V,N,H){g.z.call(this);var X=this,d=$6(function(){return new W0(X.x_)}); g.R(this,d);var a=$6(function(){return new r6(d,X.x_)}); g.R(this,a);var E=$6(function(){return new UA}); g.R(this,E);var l=$6(function(){return new u_(p)}); g.R(this,l);var t=$6(function(){return new B0(d,a,X.x_)}); g.R(this,t);var c=$6(function(){return new VC}); g.R(this,c);this.Zh=$6(function(){return new TS(C)}); g.R(this,this.Zh);this.zk=$6(function(){return new gt(H)}); g.R(this,this.zk);this.sZ=$6(function(){return new Qw(C)}); g.R(this,this.sZ);this.f1=$6(function(){return new rJ(C)}); g.R(this,this.f1);this.gY=$6(function(){return new vq(C)}); g.R(this,this.gY);this.Pa=$6(function(){return new BN(C)}); g.R(this,this.Pa);this.x_=$6(function(){return new GR(C)}); g.R(this,this.x_);var T=$6(function(){return new cq(N)}); g.R(this,T);var M=$6(function(){return new J4(X.x_)}); g.R(this,M);var J=$6(function(){return new M3(d,t,a,X.x_,M,null,null,X.Iz,X.L9)}); g.R(this,J);this.Nn=$6(function(){return new F7(C)}); g.R(this,this.Nn);this.Oi=$6(function(){return new rt}); g.R(this,this.Oi);this.pS=$6(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.DP;this.hQ=S.hQ;this.UO=$6(function(){return new mf(C,X.x_,X.No)}); this.mx=$6(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);this.C4=$6(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.C4);this.No=$6(function(){return new dv(C,E,X.C4,X.pS,X.hQ,X.x_,Z)}); g.R(this,this.No);this.hE=$6(function(){return new BU(X.x_)}); g.R(this,this.hE);this.BB=new Ka(S8,KD,function(q,A,Y,W){return G$(a.get(),q,A,Y,W)},l,t,a,M,this.x_,this.pS); g.R(this,this.BB);this.C7=new DY(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.C7);var f=new WN(C,this.C7,this.mx,this.pS,this.UO);this.mS=$6(function(){return f}); this.OA=f;this.Iz=new v0(l,t,this.mS,this.UO,this.mx,this.x_,this.No);g.R(this,this.Iz);this.R_=new ZY(l,t,this.f1,this.mS,D);g.R(this,this.R_);this.I6=new Yr(this.x_,l,t,J,this.pS,this.R_,V);g.R(this,this.I6);this.ZS=$6(function(){return new Mo(T,a,M,X.x_,X.No,X.mx)}); g.R(this,this.ZS);this.n9=$6(function(){return new Jy}); g.R(this,this.n9);this.yx=new AL(p,this.Zh,this.x_);g.R(this,this.yx);this.UR=new oY(p);g.R(this,this.UR);this.aj=new kx(p);g.R(this,this.aj);this.GW=new Yx(p,this.mS,D);g.R(this,this.GW);this.P1=new zd(p,this.f1,this.mx,this.pS,D);g.R(this,this.P1);this.xl=new na(p);g.R(this,this.xl);this.Rz=new e8(p);g.R(this,this.Rz);this.BA=new La(p);g.R(this,this.BA);this.kG=$6(function(){return new SC(C)}); g.R(this,this.kG);this.u9=new g6(p);g.R(this,this.u9);this.L9=new P0(p,this.UO,this.mx,this.No,this.mS);g.R(this,this.L9);this.TM=$6(function(){return new yn}); g.R(this,this.TM);this.tB=$6(function(){return new q3(X.mx)}); g.R(this,this.tB);this.Mw=$6(function(){return new j9(X.I6,l,d)}); g.R(this,this.Mw);this.SO=$6(function(){return new HB(X.x_,X.No,X.xl,X.C4)}); g.R(this,this.SO);this.Os=$6(function(){return new wEX(X.Zh,X.mx,X.No,E,X.C4,X.aj,X.BA,X.zk,X.x_,V)}); g.R(this,this.Os);this.Dr=$6(function(){return new vS(p,X.u9,X.xl,X.No,X.C4,X.hE,X.gY,X.pS,X.mx,X.f1,X.sZ,X.Pa,X.zk,X.Nn,X.x_,X.kG,D,Z)}); g.R(this,this.Dr);this.Z3=new tF(p,this.Oi,d);g.R(this,this.Z3);this.zW={tv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.I6],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Iz],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.BB],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.C7],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.R_]]),fv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ZS],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9], ["SLOT_TYPE_PLAYER_BYTES",this.n9]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.yx],["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.aj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.GW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.P1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.P1],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.P1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.GW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rz],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.BA],["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]]),l3: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.tB]]), TE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mw],["SLOT_TYPE_FORECASTING",this.SO],["SLOT_TYPE_IN_PLAYER",this.Os],["SLOT_TYPE_PLAYER_BYTES",this.Dr]])};this.listeners=[E.get()];this.C6={I6:this.I6,xb:this.x_.get(),KS:this.zk.get(),QX:this.mx.get(),C7:this.C7,QW:d.get(),G4:this.Oi.get(),Q6:this.yx,WI:E.get(),jZ:this.pS.get()}}; KXv=function(p,C,V,N,H){g.z.call(this);var X=this,d=$6(function(){return new W0(X.x_)}); g.R(this,d);var a=$6(function(){return new r6(d,X.x_)}); g.R(this,a);var E=$6(function(){return new UA}); g.R(this,E);var l=$6(function(){return new u_(p)}); g.R(this,l);var t=$6(function(){return new B0(d,a,X.x_)}); g.R(this,t);var c=$6(function(){return new VC}); g.R(this,c);this.Zh=$6(function(){return new TS(C)}); g.R(this,this.Zh);this.zk=$6(function(){return new gt(H)}); g.R(this,this.zk);this.sZ=$6(function(){return new Qw(C)}); g.R(this,this.sZ);this.f1=$6(function(){return new rJ(C)}); g.R(this,this.f1);this.gY=$6(function(){return new vq(C)}); g.R(this,this.gY);this.Pa=$6(function(){return new BN(C)}); g.R(this,this.Pa);this.x_=$6(function(){return new GR(C)}); g.R(this,this.x_);var T=$6(function(){return new cq(N)}); g.R(this,T);var M=$6(function(){return new J4(X.x_)}); g.R(this,M);var J=$6(function(){return new M3(d,t,a,X.x_,M,null,null,null,null)}); g.R(this,J);this.Nn=$6(function(){return new F7(C)}); g.R(this,this.Nn);this.pS=$6(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.DP;this.hQ=S.hQ;this.mx=$6(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);this.C4=$6(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.C4);this.No=$6(function(){return new dv(C,E,X.C4,X.pS,X.hQ,X.x_,Z)}); g.R(this,this.No);this.hE=$6(function(){return new BU(X.x_)}); g.R(this,this.hE);this.BB=new Ka(S8,KD,function(q,A,Y,W){return G$(a.get(),q,A,Y,W)},l,t,a,M,this.x_,this.pS); g.R(this,this.BB);this.C7=new DY(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.C7);var f=new WN(C,this.C7,this.mx,this.pS);this.mS=$6(function(){return f}); this.OA=f;this.R_=new ZY(l,t,this.f1,this.mS,D);g.R(this,this.R_);this.I6=new Yr(this.x_,l,t,J,this.pS,this.R_,V);g.R(this,this.I6);this.ZS=$6(function(){return new Mo(T,a,M,X.x_,X.No,X.mx)}); g.R(this,this.ZS);this.n9=$6(function(){return new Jy}); g.R(this,this.n9);this.yx=new AL(p,this.Zh,this.x_);g.R(this,this.yx);this.UR=new oY(p);g.R(this,this.UR);this.GW=new Yx(p,this.mS,D);g.R(this,this.GW);this.P1=new zd(p,this.f1,this.mx,this.pS,D);g.R(this,this.P1);this.xl=new na(p);g.R(this,this.xl);this.Rz=new e8(p);g.R(this,this.Rz);this.kG=$6(function(){return new SC(C)}); g.R(this,this.kG);this.u9=new g6(p);g.R(this,this.u9);this.TM=$6(function(){return new yn}); g.R(this,this.TM);this.tB=$6(function(){return new q3(X.mx)}); g.R(this,this.tB);this.Mw=$6(function(){return new j9(X.I6,l,d)}); g.R(this,this.Mw);this.SO=$6(function(){return new HB(X.x_,X.No,X.xl,X.C4)}); g.R(this,this.SO);this.XY=$6(function(){return new Cqe(X.Zh,X.mx,X.No,E,V,X.x_)}); g.R(this,this.XY);this.Dr=$6(function(){return new vS(p,X.u9,X.xl,X.No,X.C4,X.hE,X.gY,X.pS,X.mx,X.f1,X.sZ,X.Pa,X.zk,X.Nn,X.x_,X.kG,D,Z)}); g.R(this,this.Dr);this.zW={tv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.I6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.BB],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.C7],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.R_]]),fv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ZS],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.yx],["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.GW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.P1],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.P1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.GW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rz],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9]]),l3: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.tB]]),TE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mw],["SLOT_TYPE_FORECASTING",this.SO],["SLOT_TYPE_IN_PLAYER", this.XY],["SLOT_TYPE_PLAYER_BYTES",this.Dr]])};this.listeners=[E.get()];this.C6={I6:this.I6,xb:this.x_.get(),KS:this.zk.get(),QX:this.mx.get(),C7:this.C7,QW:d.get(),G4:null,Q6:this.yx,WI:E.get(),jZ:this.pS.get()}}; Due=function(p,C,V,N,H){g.z.call(this);var X=this,d=$6(function(){return new W0(X.x_)}); g.R(this,d);var a=$6(function(){return new r6(d,X.x_)}); g.R(this,a);var E=$6(function(){return new UA}); g.R(this,E);var l=$6(function(){return new u_(p)}); g.R(this,l);var t=$6(function(){return new B0(d,a,X.x_)}); g.R(this,t);var c=$6(function(){return new VC}); g.R(this,c);this.a9=$6(function(){return new vz9(C)}); g.R(this,this.a9);this.Zh=$6(function(){return new TS(C)}); g.R(this,this.Zh);this.zk=$6(function(){return new gt(H)}); g.R(this,this.zk);this.sZ=$6(function(){return new Qw(C)}); g.R(this,this.sZ);this.f1=$6(function(){return new rJ(C)}); g.R(this,this.f1);this.gY=$6(function(){return new vq(C)}); g.R(this,this.gY);this.Pa=$6(function(){return new BN(C)}); g.R(this,this.Pa);this.x_=$6(function(){return new GR(C)}); g.R(this,this.x_);var T=$6(function(){return new cq(N)}); g.R(this,T);var M=$6(function(){return new J4(X.x_)}); g.R(this,M);var J=$6(function(){return new M3(d,t,a,X.x_,M,null,null,null,null)}); g.R(this,J);this.Nn=$6(function(){return new F7(C)}); g.R(this,this.Nn);this.pS=$6(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.DP;this.hQ=S.hQ;this.mx=$6(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);this.C4=$6(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.C4);this.No=$6(function(){return new dv(C,E,X.C4,X.pS,X.hQ,X.x_,Z)}); g.R(this,this.No);this.hE=$6(function(){return new BU(X.x_)}); g.R(this,this.hE);this.BB=new Ka(UgH,KD,function(q,A,Y,W){return WCj(a.get(),q,A,Y,W)},l,t,a,M,this.x_,this.pS); g.R(this,this.BB);this.C7=new DY(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.C7);var f=new WN(C,this.C7,this.mx,this.pS);this.mS=$6(function(){return f}); this.OA=f;this.R_=new ZY(l,t,this.f1,this.mS,D);g.R(this,this.R_);this.I6=new Yr(this.x_,l,t,J,this.pS,this.R_,V);g.R(this,this.I6);this.ZS=$6(function(){return new Mo(T,a,M,X.x_,X.No,X.mx)}); g.R(this,this.ZS);this.n9=$6(function(){return new Jy}); g.R(this,this.n9);this.yx=new AL(p,this.Zh,this.x_);g.R(this,this.yx);this.UR=new oY(p);g.R(this,this.UR);this.GW=new Yx(p,this.mS,D);g.R(this,this.GW);this.P1=new zd(p,this.f1,this.mx,this.pS,D);g.R(this,this.P1);this.xl=new na(p);g.R(this,this.xl);this.Rz=new e8(p);g.R(this,this.Rz);this.kG=$6(function(){return new SC(C)}); g.R(this,this.kG);this.u9=new g6(p);g.R(this,this.u9);this.TM=$6(function(){return new yn}); g.R(this,this.TM);this.tB=$6(function(){return new q3(X.mx)}); g.R(this,this.tB);this.Mw=$6(function(){return new j9(X.I6,l,d)}); g.R(this,this.Mw);this.SO=$6(function(){return new HB(X.x_,X.No,X.xl,X.C4)}); g.R(this,this.SO);this.Dr=$6(function(){return new vS(p,X.u9,X.xl,X.No,X.C4,X.hE,X.gY,X.pS,X.mx,X.f1,X.sZ,X.Pa,X.zk,X.Nn,X.x_,X.kG,D,Z)}); g.R(this,this.Dr);this.EF=$6(function(){return new LAv(X.Zh,X.mx,X.No,E,X.a9,V,X.pS)}); g.R(this,this.EF);this.zW={tv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.I6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.BB],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.C7],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.R_]]),fv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ZS],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.yx],["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.GW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.P1],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.P1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.GW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rz],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9]]),l3: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.tB]]),TE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mw],["SLOT_TYPE_FORECASTING",this.SO],["SLOT_TYPE_IN_PLAYER",this.EF],["SLOT_TYPE_PLAYER_BYTES", this.Dr]])};this.listeners=[E.get()];this.C6={I6:this.I6,xb:this.x_.get(),KS:this.zk.get(),QX:this.mx.get(),C7:this.C7,QW:d.get(),G4:null,Q6:this.yx,WI:E.get(),jZ:this.pS.get()}}; uTQ=function(p,C,V,N,H){g.z.call(this);var X=this,d=$6(function(){return new W0(X.x_)}); g.R(this,d);var a=$6(function(){return new r6(d,X.x_)}); g.R(this,a);var E=$6(function(){return new UA}); g.R(this,E);var l=$6(function(){return new u_(p)}); g.R(this,l);var t=$6(function(){return new B0(d,a,X.x_)}); g.R(this,t);var c=$6(function(){return new VC}); g.R(this,c);this.a9=$6(function(){return new vz9(C)}); g.R(this,this.a9);this.Zh=$6(function(){return new TS(C)}); g.R(this,this.Zh);this.zk=$6(function(){return new gt(H)}); g.R(this,this.zk);this.sZ=$6(function(){return new Qw(C)}); g.R(this,this.sZ);this.f1=$6(function(){return new rJ(C)}); g.R(this,this.f1);this.gY=$6(function(){return new vq(C)}); g.R(this,this.gY);this.Pa=$6(function(){return new BN(C)}); g.R(this,this.Pa);this.x_=$6(function(){return new GR(C)}); g.R(this,this.x_);var T=$6(function(){return new cq(N)}); g.R(this,T);var M=$6(function(){return new J4(X.x_)}); g.R(this,M);this.Nn=$6(function(){return new F7(C)}); g.R(this,this.Nn);this.pS=$6(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.DP;this.hQ=J.hQ;this.UO=$6(function(){return new mf(C,X.x_,X.No)}); g.R(this,this.UO);this.kG=$6(function(){return new SC(C)}); g.R(this,this.kG);this.mx=$6(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);J=$6(function(){return new M3(d,t,a,X.x_,M,null,X.mx,X.Iz,X.L9,3)}); g.R(this,J);this.hE=$6(function(){return new BU(X.x_)}); this.C4=$6(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.C4);this.No=$6(function(){return new dv(C,E,X.C4,X.pS,X.hQ,X.x_,D)}); g.R(this,this.No);this.C7=new DY(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.C7);var Z=new WN(C,this.C7,this.mx,this.pS,this.UO);this.mS=$6(function(){return Z}); this.OA=Z;this.BB=new Ka(fkS,KD,function(f,q,A,Y){return WCj(a.get(),f,q,A,Y)},l,t,a,M,this.x_,this.pS); g.R(this,this.BB);this.Iz=new v0(l,t,this.mS,this.UO,this.mx,this.x_,this.No,this.kG);g.R(this,this.Iz);this.R_=new ZY(l,t,this.f1,this.mS,S);g.R(this,this.R_);this.I6=new Yr(this.x_,l,t,J,this.pS,this.R_,V);g.R(this,this.I6);this.ZS=$6(function(){return new Mo(T,a,M,X.x_,X.No,X.mx,X.kG)}); g.R(this,this.ZS);this.n9=$6(function(){return new Jy}); g.R(this,this.n9);this.yx=new AL(p,this.Zh,this.x_);g.R(this,this.yx);this.UR=new oY(p);g.R(this,this.UR);this.GW=new Yx(p,this.mS,S);g.R(this,this.GW);this.P1=new zd(p,this.f1,this.mx,this.pS,S);g.R(this,this.P1);this.m5=new RY(p,this.pS);g.R(this,this.m5);this.L9=new P0(p,this.UO,this.mx,this.No,this.mS);g.R(this,this.L9);this.xl=new na(p);g.R(this,this.xl);this.Rz=new e8(p);g.R(this,this.Rz);this.u9=new g6(p);g.R(this,this.u9);this.TM=$6(function(){return new yn}); g.R(this,this.TM);this.tB=$6(function(){return new q3(X.mx)}); g.R(this,this.tB);this.Mw=$6(function(){return new j9(X.I6,l,d)}); g.R(this,this.Mw);this.SO=$6(function(){return new HB(X.x_,X.No,X.xl,X.C4)}); g.R(this,this.SO);this.Dr=$6(function(){return new mL(p,X.u9,X.xl,X.pS,X.kG,X.mx,X.No,c,X.UO,X.C4,X.hE,X.gY,X.f1,X.sZ,X.Pa,X.zk,X.Nn,X.x_,E,S,D)}); g.R(this,this.Dr);this.Os=$6(function(){return new gU1(X.Zh,X.mx,X.No,E,X.a9,V,X.x_,X.pS)}); g.R(this,this.Os);this.zW={tv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.I6],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Iz],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.BB],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.C7],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.R_]]),fv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ZS],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.yx],["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.GW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.P1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.P1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.m5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.m5],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.GW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rz],["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]]),l3: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.tB]]),TE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mw],["SLOT_TYPE_FORECASTING",this.SO],["SLOT_TYPE_PLAYER_BYTES",this.Dr],["SLOT_TYPE_IN_PLAYER",this.Os]])};this.listeners=[E.get()]; this.C6={I6:this.I6,xb:this.x_.get(),KS:this.zk.get(),QX:this.mx.get(),C7:this.C7,QW:d.get(),G4:null,Q6:this.yx,WI:E.get(),jZ:this.pS.get()}}; Uue=function(p,C,V,N){function H(){return X.C} g.z.call(this);var X=this;p.K().experiments.OY("html5_dispose_of_manager_before_dependency")?(this.T=ZQY(H,p,C,V,N),this.C=(new LP(this.T)).V(),g.R(this,this.C),g.R(this,this.T)):(this.T=ZQY(H,p,C,V,N),g.R(this,this.T),this.C=(new LP(this.T)).V(),g.R(this,this.C))}; DO=function(p){return p.T.C6}; ZQY=function(p,C,V,N,H){try{var X=C.K();if(g.wG(X))var d=new FXH(p,C,V,N,H);else if(g.LI(X))d=new Swe(p,C,V,N,H);else if(kS(X))d=new KXv(p,C,V,N,H);else if(g.$U(X))d=new Due(p,C,V,N,H);else if(g.yj(X))d=new uTQ(p,C,V,N,H);else throw new TypeError("Unknown web interface");return d}catch(a){return d=C.K(),vE("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:d.T.cplatform,interface:d.T.c,pSx:d.T.cver,HV_:d.T.ctheme,e2_:d.T.cplayer,xGn:d.playerStyle}),new sm9(p,C,V,N,H)}}; fLX=function(p){re.call(this,p)}; OQu=function(p,C,V,N,H){HE.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()}; ySe=function(p,C,V,N,H,X){Fi.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.B5=H;this.SR=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 Lq(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,"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 V_(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,"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 V_(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,"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.Y_=new Lq(this.api,this.layoutId,this.interactionLoggingClientData, this.KS,"ytp-ad-action-interstitial-background",!0);g.R(this,this.Y_);this.Y_.u_(this.Qn);this.UY=this.rV("ytp-ad-action-interstitial-action-button-container");this.slot=this.rV("ytp-ad-action-interstitial-slot");this.p9=this.rV("ytp-ad-action-interstitial-card");this.S=new I_;g.R(this,this.S);this.hide()}; qwY=function(p){var C=g.Ce("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; ozX=function(p,C,V,N){Fi.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.UY=this.Ga=null;this.Y_=!1;this.W=null;this.b_=0;p=this.rV("ytp-ad-overlay-container");this.vr=new cE(p,45E3,6E3,.3,.4);g.R(this,this.vr);this.V=ILs(this);g.R(this,this.V);this.V.u_(p);this.C=bQs(this);g.R(this,this.C);this.C.u_(p);this.T=AS9(this);g.R(this,this.T);this.T.u_(p);this.hide()}; ILs=function(p){var C=new g.va({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:[Y0(kZL)]}]},{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.Js);C.hide();return C}; bQs=function(p){var C=new g.va({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:[Y0(kZL)]}]},{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.Js);p.U(C.rV("ytp-ad-overlay-text-image"),"click",p.LgY);C.hide();return C}; AS9=function(p){var C=new g.va({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:[Y0(kZL)]}]},{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.Js);C.hide();return C}; xus=function(p,C){if(C){var V=g.n(C,AM)||null;V==null?g.nm(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(C=g.Ce("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.va({L:"div",B:"ytp-ad-overlay-ad-info-dialog-container"}),g.R(p,p.Sa),p.Sa.u_(C),C=new j2(p.api,p.layoutId,p.interactionLoggingClientData,p.KS,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.Cxn,p),C.subscribe("e",p.gD,p),p.U(p.W,"click",p.AQk),p.U(g.Ce("ytp-ad-button",C.element),"click",function(){var N;if(g.n((N=g.n(V.button,g.kr))==null?void 0:N.serviceEndpoint,pWX))p.Y_=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."))}; zAH=function(p,C){if(Yws(p,ZO)||p.api.isMinimized())return!1;var V=Sp(C.title),N=Sp(C.description);if(g.FG(V)||g.FG(N))return!1;p.createServerVe(p.V.element,C.trackingParams||null);p.V.updateValue("title",Sp(C.title));p.V.updateValue("description",Sp(C.description));p.V.updateValue("displayUrl",Sp(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}; RAy=function(p,C){if(Yws(p,ZO)||p.api.isMinimized())return!1;var V=Sp(C.title),N=Sp(C.description);if(g.FG(V)||g.FG(N))return!1;p.createServerVe(p.C.element,C.trackingParams||null);p.C.updateValue("title",Sp(C.title));p.C.updateValue("description",Sp(C.description));p.C.updateValue("displayUrl",Sp(C.displayUrl));p.C.updateValue("imageUrl",Jm9(C.image));C.navigationEndpoint&&g.C6(p.Z,C.navigationEndpoint);p.UY=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}; nzV=function(p,C){if(p.api.isMinimized())return!1;var V=m5L(C.image),N=V;V.width0?(C=new PE(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."))}; GZ9=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()})}; pme=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()}; Cyv=function(p,C,V){p.noneOfTheAbove=new gzX(p.api,p.layoutId,p.interactionLoggingClientData,p.KS);p.noneOfTheAbove.u_(p.answers);p.noneOfTheAbove.init(lq("survey-none-of-the-above"),C,V)}; VRL=function(p){p.C.forEach(function(C){C.T.toggleButton(!1)}); jGv(p,!0)}; jGv=function(p,C){var V=p.S;p=NjY(p);C=C===void 0?!1:C;V.T&&(p?V.T.hide():V.T.show(),C&&V.T instanceof Z7&&!V.T.S&&hVu(V.T,!1));V.C&&(p?V.C.show():V.C.hide())}; NjY=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){Fi.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()}; dHL=function(p,C){var V=p.C[C],N;(N=p.V)==null||N.dispose();g.n(V,Id)?HiS(p,g.n(V,Id),p.macros):g.n(V,qB)&&XmY(p,g.n(V,qB),p.macros);p.T=C}; HiS=function(p,C,V){var N=new qE(p.api,p.layoutId,p.interactionLoggingClientData,p.KS,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)}; XmY=function(p,C,V){var N=new pme(p.api,p.layoutId,p.interactionLoggingClientData,p.KS,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){Fi.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.i$(this,500,!1,300);g.R(this,this.transition)}; ii9=function(p,C){C=C&&$0(C)||"";if(g.FG(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=WgH(N.style);V.cssText=[p,'background-image:url("'+C+'");'].join("")}}; hlQ=function(p){var C=g.Ce("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;HE.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.i$(this,400,!1,100,function(){d.hide()}); g.R(this,this.transition);this.hide()}; oQ=function(p,C,V,N){Fi.call(this,p,{L:"img",B:"ytp-ad-avatar"},"ad-avatar",C,V,N);this.hide()}; sGQ=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,X){H=H===void 0?!1:H;X=X===void 0?!1:X;Fi.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;this.C=X}; axL=function(p,C,V,N,H){HE.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.KS);g.R(this,this.adAvatar);aN(this.element,this.adAvatar.element,0);this.headline=new xU(this.api,this.layoutId, this.interactionLoggingClientData,this.KS);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 xU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS);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.KS);g.R(this,this.adButton);this.adButton.u_(this.element);this.hide()}; Yy=function(p,C,V,N){Fi.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.i$(this,500,!1,100,function(){H.hide()}); g.R(this,this.transition);this.T=new cE(this.element,15E3,5E3,.5,.5,!0);g.R(this,this.T);this.hide()}; EMX=function(p,C,V,N,H){HE.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.KS,this.T),g.R(this,this.C),this.C.u_(this.element);this.V=new Yy(this.api,this.layoutId, this.interactionLoggingClientData,this.KS);g.R(this,this.V);this.V.u_(this.element);this.hide()}; zS=function(p,C,V,N){Fi.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){Fi.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()}; lxL=function(p,C,V,N){Fi.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 xU(this.api,this.layoutId,this.interactionLoggingClientData, this.KS);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.KS,!0);g.R(this,this.moreInfoButton);this.moreInfoButton.u_(this.rV("ytp-ad-grid-card-text__button"))}; nD=function(p,C,V,N){Fi.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){HE.call(this,p,X,d,C,V,N,H);this.playerProgressOffsetMs=0;this.C=!1}; tRV=function(p){var C=g.Ce("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; cve=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.KS);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.KS);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){Fi.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){Fi.call(this,p,{L:"div",B:"ytp-image-background",j:[{L:"img",B:"ytp-image-background-image"}]},"image-background",C,V,N);this.hide()}; Tju=function(p,C,V,N,H){HE.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){Fi.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()}; MRY=function(p){var C=g.Ce("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; mHj=function(p){if(!p.adAvatar||!g.n(p.adAvatar,Jvv))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,AM))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){re.call(this,p);this.api=p;this.KS=C;this.C={};p=new g.w({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.gb(this.api,p.element,4);pa(V)&&(V=new g.w({L:"div",i_:["ytp-ad-underlay"]}),g.R(this,V),this.V=new Z9(V.element),g.R(this,this.V),g.gb(this.api,V.element,0));g.R(this,YBs())}; vMy=function(p,C){p=g.k5(p.C,C.id,null);p==null&&g.eG(Error("Component not found for element id: "+C.id));return p||null}; F3V=function(p){g.Ar.call(this,p);var C=this;this.C=null;this.created=!1;this.V=p.K().G("h5_use_refactored_get_ad_break")?new cu9(this.player):new L7(this.player);this.S=function(){if(C.C!=null)return C.C;var N=new SqX({Q6:DO(C.T).Q6,jZ:DO(C.T).jZ,N:C.player,xb:DO(C.T).xb,No:C.T.T.No,WI:DO(C.T).WI,Pa:C.T.T.Pa});C.C=N.nU;return C.C}; this.T=new Uue(this.player,this,this.V,this.S);g.R(this,this.T);var V=p.K();!yV(V)||g.yj(V)||kS(V)||(g.R(this,new Wq(p,DO(this.T).KS,DO(this.T).xb)),g.R(this,new fLX(p)))}; SYS=function(p){p.created!==p.loaded&&vE("Created and loaded are out of sync")}; u$1=function(p){g.Ar.prototype.load.call(p);var C=DO(p.T).xb;try{p.player.getRootNode().classList.add("ad-created")}catch(E){vE(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,z$)}); H=H.playerConfig&&H.playerConfig.daiConfig&&H.playerConfig.daiConfig.enableDai||!1;V&&V.p4();X=K3a(X,d,C,DO(p.T).QW);d=V&&V.clientPlaybackNonce||"";V=V&&V.YQ||!1;if(Zs(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);DHY(p);p.T.T.OA.eH(d,a,V,X.s1,X.oK,X.s1,H,N)}; DHY=function(p){var C,V;if(V=(C=p.player.getVideoData(1))==null||!C.YQ)C=p.player.K(),V=yV(C)&&!g.Of(C)&&C.playerStyle==="desktop-polymer";V&&(p=p.player.getInternalApi(),p.addEventListener("updateKevlarOrC3Companion",c1u),p.addEventListener("updateEngagementPanelAction",Tqv),p.addEventListener("changeEngagementPanelVisibility",M_S),window.addEventListener("yt-navigate-start",mpL))}; Q0=function(p,C){C===p.Xn&&(p.Xn=void 0)}; Zi9=function(p){var C=DO(p.T).C7,V=C.S().zo("SLOT_TYPE_PLAYER_BYTES",1);C=Z5(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 AV?H.slotEntryTrigger.F6:void 0;X&&X===C&&(N&&vE("More than 1 preroll playerBytes slot detected",H),N=!0)}N||sm(DO(p.T).QX)}; UHX=function(p){if(pD(DO(p.T).xb))return!0;var C="";p=g.F(DO(p.T).WI.a5.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&&vE("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:C});return!1}; fxe=function(p){p=g.F(DO(p.T).WI.a5.values());for(var C=p.next();!C.done;C=p.next())if(C.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; UQs=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).xb,a=p.player.getVideoData(1);a&&a.getPlayerResponse();a&&a.p4();V=K3a(C,V,d,DO(p.T).QW);qnQ(DO(p.T).I6,N,V.s1,V.oK,C,H,X)}; K3a=function(p,C,V,N){C={s1:[],oK: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,Td)?(d=g.n((E=X.sandwichedLinearAdRenderer)==null?void 0:E.adVideoStart,Td),d=wJ9(d,t),g.g7(X.sandwichedLinearAdRenderer.adVideoStart,Td,d)):g.n((a=X.linearAdSequenceRenderer)==null?void 0:a.adStart,Td)&& (E=g.n((d=X.linearAdSequenceRenderer)==null?void 0:d.adStart,Td),d=wJ9(E,t),g.g7(X.linearAdSequenceRenderer.adStart,Td,d))}C.s1.push(H)}return C}; g.rv=function(p){if(typeof DOMParser!="undefined")return jg(new DOMParser,no1(p),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.Bq=function(p){g.z.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.Oi9=function(p){var C=p.K();return C.QZ&&!C.V&&g.KI(C)?p.isEmbedsShortsMode()?(p=p.v_(),Math.min(p.width,p.height)>=315):!p.Qf():!1}; g.GS=function(p){g.w.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.YZ(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.J=this.S=this.scrollPosition=0;this.title=new g.w({L:"h2",B:"ytp-related-title",Ak:"{{title}}"});this.previous=new g.w({L:"button",i_:["ytp-button","ytp-previous"],X:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},j:[g.ZU()]});this.D=new g.Bq(function(V){C.suggestions.element.scrollLeft= -V}); this.next=new g.w({L:"button",i_:["ytp-button","ytp-next"],X:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},j:[g.Uy()]});g.R(this,this.V);this.W=p.K().S;g.R(this,this.title);this.title.u_(this.element);this.suggestions=new g.w({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.An,this);g.R(this,this.D);yvy(this);g.R(this,this.next);this.next.u_(this.element);this.next.listen("click", this.CU,this);this.V.U(this.api,"appresize",this.OR);this.V.U(this.api,"fullscreentoggled",this.Jo);this.V.U(this.api,"videodatachange",this.onVideoDataChange);this.OR(this.api.dV().getPlayerSize());this.onVideoDataChange()}; yvy=function(p){for(var C={DC:0};C.DC<16;C={DC:C.DC},++C.DC){var V=new g.w({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.Sh(N,"transitionDelay",C.DC/20+"s");p.V.U(N,"click",function(H){return function(X){var d=H.DC;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.Eh(),a={},g.Pk(p.api,a),d=g.BX(d,a),g.mv(d,p.api,X)):g.Jh(X,p.api,p.W,E||void 0)&&p.api.uy(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)}}; qYy=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.Rd()?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)}; bia=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=OS(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("Object.getOwnPropertySymbols",function(p){return p?p:function(){return[]}}); 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=OS(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).RC}}); 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).RC}}); sS("Int8Array.prototype.findLastIndex",kH);sS("Uint8Array.prototype.findLastIndex",kH);sS("Uint8ClampedArray.prototype.findLastIndex",kH);sS("Int16Array.prototype.findLastIndex",kH);sS("Uint16Array.prototype.findLastIndex",kH);sS("Int32Array.prototype.findLastIndex",kH);sS("Uint32Array.prototype.findLastIndex",kH);sS("Float32Array.prototype.findLastIndex",kH);sS("Float64Array.prototype.findLastIndex",kH);sS("Number.parseInt",function(p){return p||parseInt});var Nj,w1,MaS;Nj=Nj||{};g.xH=this||self;w1="closure_uid_"+(Math.random()*1E9>>>0);MaS=0;g.z.prototype.j6=!1;g.z.prototype.fS=function(){return this.j6}; g.z.prototype.dispose=function(){this.j6||(this.j6=!0,this.CS())}; g.z.prototype[Symbol.dispose]=function(){this.dispose()}; g.z.prototype.addOnDisposeCallback=function(p,C){this.j6?C!==void 0?p.call(C):p():(this.Kk||(this.Kk=[]),C&&(p=p.bind(C)),this.Kk.push(p))}; g.z.prototype.CS=function(){if(this.Kk)for(;this.Kk.length;)this.Kk.shift()()};var Ky1;g.v(E1,g.z);E1.prototype.share=function(){if(this.fS())throw Error("E:AD");this.S++;return this}; E1.prototype.dispose=function(){--this.S||g.z.prototype.dispose.call(this)}; Ky1=Symbol.dispose;DsL.prototype.pM=function(p,C){this.T.pM("/client_streamz/bg/frs",p,C)}; ueu.prototype.pM=function(p,C,V,N,H,X){this.T.pM("/client_streamz/bg/wrl",p,C,V,N,H,X)}; ZYu.prototype.T=function(p,C){this.C.Xu("/client_streamz/bg/ec",p,C)}; Usy.prototype.pM=function(p,C,V,N){this.T.pM("/client_streamz/bg/el",p,C,V,N)}; fje.prototype.T=function(p,C,V){this.C.Xu("/client_streamz/bg/cec",p,C,V)}; OYL.prototype.T=function(p,C,V){this.C.Xu("/client_streamz/bg/po/csc",p,C,V)}; yQj.prototype.T=function(p,C,V){this.C.Xu("/client_streamz/bg/po/ctav",p,C,V)}; qSS.prototype.T=function(p,C,V){this.C.Xu("/client_streamz/bg/po/cwsc",p,C,V)};g.Bv(Tp,Error);Tp.prototype.name="CustomError";var st9;var kV=void 0,ot,qvu=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]},x1a=/&/g,YLL=//g,Rja=/"/g,nKs=/'/g,ejS=/\x00/g,k9Q=/[\x00&<>"']/;var RlQ=Ru(1,!0),O1=Ru(610401301,!1);Ru(899588437,!1);Ru(188588736,!0);Ru(651175828,!1);Ru(653718497,RlQ);Ru(660014094,RlQ);Ru(2147483644,!1);Ru(2147483645,!1);Ru(2147483646,RlQ);Ru(2147483647,!0);var y8=!!g.zV("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var qc,nMS=g.xH.navigator;qc=nMS?nMS.userAgentData||null:null;var rQa,oo,xo;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(gM9)){L39=String(CM);break a}}L39=gM9}var hEy=L39,dcY={};var CK,jz;g.k$=k2();CK=RF()||bP("iPod");jz=bP("iPad");g.SH=P9a();g.An=x2();g.D1=Y2()&&!ey();var avv={},Sk=null,E2a=K2||g.Vf||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 Z0S=void 0;var Nm=typeof Symbol==="function"&&typeof Symbol()==="symbol",fvQ=new Set,jd=yR("jas",void 0,!0,!0),cBs=yR(void 0,"2ex"),H4=yR(void 0,"1oa",!0),Py=yR(void 0,Symbol(),!0),i6e=yR(void 0,"aswk");Math.max.apply(Math,g.K(Object.values({qv$:1,XBY:2,jzr:4,Q8_:8,Jda:16,Bb$:32,yXn:64,uNa:128,x1a:256,ABa:512,F8a:1024,dwS:2048,nza:4096,Xz$:8192,IS_:16384})));var q1=Nm?function(p,C){p[jd]|=C}:function(p,C){p.nt!==void 0?p.nt|=C:Object.defineProperties(p,{nt:{value:C, configurable:!0,writable:!0,enumerable:!1}})},FqX=Nm?function(p,C){p[jd]&=~C}:function(p,C){p.nt!==void 0&&(p.nt&=~C)},xT=Nm?function(p){return p[jd]|0}:function(p){return p.nt|0},qL=Nm?function(p,C){p[jd]=C}:function(p,C){p.nt!==void 0?p.nt=C:Object.defineProperties(p,{nt:{value:C, configurable:!0,writable:!0,enumerable:!1}})};var Sn={},yfY={},gw,rve=[];qL(rve,55);gw=Object.freeze(rve);var vTv=Object.freeze({});var b09=$T(function(p){return typeof p==="number"}),Ive=$T(function(p){return typeof p==="string"}),Afy=$T(function(p){return typeof p==="boolean"}),it=$T(function(p){return p!=null&&typeof p==="object"&&typeof p.then==="function"}),dr=$T(function(p){return!!p&&(typeof p==="object"||typeof p==="function")});var go=typeof g.xH.BigInt==="function"&&typeof g.xH.BigInt(0)==="bigint";var Jc=$T(function(p){return go?p>=Bja&&p<=GgX:p[0]==="-"?o2L(p,pvc):o2L(p,C9P)}),pvc=Number.MIN_SAFE_INTEGER.toString(),Bja=go?BigInt(Number.MIN_SAFE_INTEGER):void 0,C9P=Number.MAX_SAFE_INTEGER.toString(),GgX=go?BigInt(Number.MAX_SAFE_INTEGER):void 0;var ULH=typeof Uint8Array.prototype.slice==="function",QR=0,ro=0,sOX;var REQ=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var ZB=void 0,UL=void 0,K_=void 0,DB=void 0,f_=void 0;var OL,Xya;g.h=uvX.prototype;g.h.init=function(p,C,V,N){N=N===void 0?{}:N;this.pC=N.pC===void 0?!1:N.pC;p&&(p=Sq(p),this.C=p.buffer,this.W=p.Fr,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();qm.length<100&&qm.push(this)}; g.h.clear=function(){this.C=null;this.W=!1;this.T=this.V=this.S=0;this.pC=!1}; g.h.reset=function(){this.T=this.S}; g.h.a6=function(){var p=this.Y;p||(p=this.C,p=this.Y=new DataView(p.buffer,p.byteOffset,p.byteLength));return p}; var qm=[];It.prototype.free=function(){this.T.clear();this.C=this.S=-1;VH.length<100&&VH.push(this)}; It.prototype.reset=function(){this.T.reset();this.V=this.T.T;this.C=this.S=-1}; var VH=[];var P4,eq;g.h=ny.prototype;g.h.toJSON=function(){return wC(this)}; g.h.ax=function(p){try{return eq=!0,p&&(P4=p===YV||p!==b6v&&p!==xLY&&p!==R69?YV:p),JSON.stringify(wC(this),sfH)}finally{p&&(P4=void 0),eq=!1}}; g.h.clone=function(){var p=this.aH;return new this.constructor(Ac(p,xT(p),!1))}; g.h.Fr=function(){return!!(xT(this.aH)&2)}; g.h.VG=Sn;g.h.toString=function(){try{return eq=!0,wC(this).toString()}finally{eq=!1}};var PrQ,$Lu;gC.prototype.length=function(){return this.T.length}; gC.prototype.end=function(){var p=this.T;this.T=[];return p};var jl=CH(),jur=CH(),VaP=CH(),N1p=CH(),HYP=CH(),XvE=CH(),ds8=CH(),iY5=CH();var CgY=NX(function(p,C,V,N,H){if(p.C!==2)return!1;AP(p,Xa(C,N,V),H);return!0},pTe),jOQ=NX(function(p,C,V,N,H){if(p.C!==2)return!1; AP(p,Xa(C,N,V,!0),H);return!0},pTe),tb=Symbol(),sQ=Symbol(),NwL=Symbol(),d1H=Symbol(),Hn,XH;var hX1=MX(function(p,C,V){if(p.C!==1)return!1;ma(C,V,Ol(p.T));return!0},vn,ds8),suF=MX(function(p,C,V){if(p.C!==1)return!1; p=Ol(p.T);ma(C,V,p===0?void 0:p);return!0},vn,ds8),ajE=MX(function(p,C,V,N){if(p.C!==1)return!1; jq(C,V,N,Ol(p.T));return!0},vn,ds8),EHG=MX(function(p,C,V){if(p.C!==0)return!1; ma(C,V,Dm(p.T));return!0},FH,HYP),ljG=MX(function(p,C,V){if(p.C!==0)return!1; p=Dm(p.T);ma(C,V,p===0?void 0:p);return!0},FH,HYP),taF=MX(function(p,C,V,N){if(p.C!==0)return!1; jq(C,V,N,Dm(p.T));return!0},FH,HYP),cQG=MX(function(p,C,V){if(p.C!==0)return!1; ma(C,V,Zm(p.T));return!0},Sl,N1p),T15=MX(function(p,C,V){if(p.C!==0)return!1; p=Zm(p.T);ma(C,V,p===0?void 0:p);return!0},Sl,N1p),Ma1=MX(function(p,C,V,N){if(p.C!==0)return!1; jq(C,V,N,Zm(p.T));return!0},Sl,N1p),JQv=MX(function(p,C,V){if(p.C!==1)return!1; ma(C,V,fy(p.T));return!0},function(p,C,V){BoY(p,V,QFS(C))},XvE),ms5=Jb(function(p,C,V){if(p.C!==1&&p.C!==2)return!1; C=rw(C,xT(C),V,!1,!1);if(p.C==2)for(V=Zm(p.T)>>>0,V=p.T.T+V;p.T.T>>0);return!0},function(p,C,V){C=EL(C); C!=null&&C!=null&&(GA(p,V,0),QG(p.T,C))},CH()),ZYF=MX(function(p,C,V){if(p.C!==0)return!1; ma(C,V,Zm(p.T));return!0},function(p,C,V){C=aO(C); C!=null&&(C=parseInt(C,10),GA(p,V,0),gTu(p.T,C))},CH());g.v(ccv,ny);g.v(Du,ny);var OQ=[1,2,3];var Usr=[0,OQ,KyY,Ma1,FyG];var fjG=[0,HD,[0,hX1,EHG]];g.v(u0,ny);var fH=[1,2,3];var OY8=[0,fH,taF,ajE,dK,fjG];g.v(Zu,ny);var yQv=[0,HD,Usr,OY8];var qS1=[0,[1,2,3],dK,[0,NW,-1,vHp],dK,[0,NW,-1,cQG,vHp],dK,[0,NW]];g.v(UQ,ny);UQ.prototype.Gv=function(){var p=L_(this,3,vT,3,void 0,!0);ek(p);return p[void 0]};UQ.prototype.T=tn1([0,NW,qS1,SSG,HD,yQv,JQv,ms5]);g.v(Mne,ny);var Z_u=globalThis.trustedTypes,y5;Ic.prototype.toString=function(){return this.T+""};oc.prototype.toString=function(){return this.T}; var O_1=new oc("about:invalid#zClosurez");var GSS=Ye("tel"),rFY=Ye("sms"),fBa=[Ye("data"),Ye("http"),Ye("https"),Ye("mailto"),Ye("ftp"),new xe(function(p){return/^[^:]*([/?#]|$)/.test(p)})],ycH=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;el.prototype.toString=function(){return this.T};Pn.prototype.toString=function(){return this.T+""};Wn.prototype.toString=function(){return this.T+""};var pG={};g.Ijf=String.prototype.repeat?function(p,C){return p.repeat(C)}:function(p,C){return Array(C+1).join(p)};g.h=h9.prototype;g.h.isEnabled=function(){if(!g.xH.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{DN: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.Fca;N=V.secure||!1;var X=V.domain||void 0;var d=V.path||void 0;var a=V.DN}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 h9(typeof document=="undefined"?null:document);aa.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))}})}; aa.prototype.isSupported=function(p){return p<1024?!1:typeof CompressionStream!=="undefined"};g.v(E_,ny);lc.prototype.setInterval=function(p){this.intervalMs=p;this.Dd&&this.enabled?(this.stop(),this.start()):this.Dd&&this.stop()}; lc.prototype.start=function(){var p=this;this.enabled=!0;this.Dd||(this.Dd=setTimeout(function(){p.tick()},this.intervalMs),this.C=this.T())}; lc.prototype.stop=function(){this.enabled=!1;this.Dd&&(clearTimeout(this.Dd),this.Dd=void 0)}; lc.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.Mu||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)bK(this.V,3),qle(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.A2(J<1?1:J,3E5,.1),V.C.setInterval(V.W.getValue())))}p&&p();V.Y=0},c=function(M,J){var S=Nc(H,Uo,3); var D=g2L(xK(H,14));D=D==null?void 0:D;g.oN(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.Mu||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.MC=2;T()},function(){T()}):T()}}}}; g.h.py=function(){KMS(this.V,!0);this.flush();KMS(this.V,!1)}; g.h.isRetryable=function(p){return 500<=p&&p<600||p===401||p===0};Yq.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.RZ?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)}})}; Yq.prototype.bG=function(){return 4};g.v(zO,g.z);zO.prototype.Ms=function(){this.W=!0;return this}; zO.prototype.build=function(){this.network||(this.network=new Yq);var p=new xq({logSource:this.logSource,AS:this.AS?this.AS:QO9,sessionIndex:this.sessionIndex,zje:this.rz,Xj:this.S,Mu:!1,Ms:this.W,rT:this.rT,network:this.network});g.R(this,p);if(this.C){var C=this.C,V=yf(p.V);JP(V,7,C)}Math.random()<.5&&(p.D=new aa);this.componentId&&(p.componentId=this.componentId);this.cn&&(p.cn=this.cn);this.pageId&&(p.pageId=this.pageId);this.T&&((V=this.T)?(p.experimentIds||(p.experimentIds=new E_),C=p.experimentIds, V=V.ax(),JP(C,4,V)):p.experimentIds&&z9(p.experimentIds,4));this.V&&(p.Vn=p.Z);Dmu(p.V);this.network.Mm&&this.network.Mm(this.logSource);this.network.uTk&&this.network.uTk(p);return p};g.v(RN,g.z);RN.prototype.flush=function(p){p=p||[];if(p.length){for(var C=new Mne,V=[],N=0;N-1?(C=p[d],V||(C.je=!1)):(C=new YlS(C,this.src,X,!!N,H),C.je=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=GO(H,C,V,N);return C>-1?(Qf(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.fG(this.listeners,function(X){for(var d=0;d>>0);g.Bv(g.im,g.z);g.im.prototype[kA1]=!0;g.h=g.im.prototype;g.h.addEventListener=function(p,C,V,N){g.CJ(this,p,C,V,N)}; g.h.removeEventListener=function(p,C,V,N){$mj(this,p,C,V,N)}; g.h.dispatchEvent=function(p){var C=this.Ek;if(C){var V=[];for(var N=1;C;C=C.Ek)V.push(C),++N}C=this.Bs;N=p.type||p;if(typeof p==="string")p=new g.wW(p,C);else if(p instanceof g.wW)p.target=p.target||C;else{var H=p;p=new g.wW(N,C);g.Ra(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=h8(d,N,!0,p)&&H}p.C||(d=p.currentTarget=C,H=h8(d,N,!0,p)&&H,p.C||(H=h8(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 E8;t8.prototype.add=function(p,C){var V=BCj.get();V.set(p,C);this.C?this.C.next=V:this.T=V;this.C=V}; t8.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 BCj=new s8(function(){return new cX},function(p){return p.reset()}); cX.prototype.set=function(p,C){this.T=p;this.scope=C;this.next=null}; cX.prototype.reset=function(){this.next=this.scope=this.T=null};var TD,M7=!1,QtV=new t8;C09.prototype.reset=function(){this.context=this.C=this.V=this.T=null;this.S=!1}; var jcQ=new s8(function(){return new C09},function(p){p.reset()}); g.DC.prototype.then=function(p,C,V){return EeQ(this,ab(typeof p==="function"?p:null),ab(typeof C==="function"?C:null),V)}; g.DC.prototype.$goog_Thenable=!0;g.h=g.DC.prototype;g.h.gh=function(p,C){return EeQ(this,null,ab(p),C)}; g.h.catch=g.DC.prototype.gh;g.h.cancel=function(p){if(this.T==0){var C=new yU(p);g.J8(function(){iHQ(this,C)},this)}}; g.h.C8a=function(p){this.T=0;KJ(this,2,p)}; g.h.AU_=function(p){this.T=0;KJ(this,3,p)}; g.h.VN=function(){for(var p;p=hJY(this);)scL(this,p,this.T,this.D);this.Y=!1}; var TVe=Jf;g.Bv(yU,Tp);yU.prototype.name="cancel";g.Bv(g.q7,g.im);g.h=g.q7.prototype;g.h.enabled=!1;g.h.Ha=null;g.h.setInterval=function(p){this.Xg=p;this.Ha&&this.enabled?(this.stop(),this.start()):this.Ha&&this.stop()}; g.h.j_a=function(){if(this.enabled){var p=g.QL()-this.SF;p>0&&p0&&(this.getStatus(),this.Y=setTimeout(this.AG.bind(this), this.a$)),this.getStatus(),this.Z=!0,this.T.send(p),this.Z=!1}catch(d){this.getStatus(),zJV(this,d)}}; g.h.AG=function(){typeof Nj!="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"),VO(this))}; g.h.CS=function(){this.T&&(this.V&&(this.V=!1,this.W=!0,this.T.abort(),this.W=!1),VO(this,!0));g.jE.XF.CS.call(this)}; g.h.eW=function(){this.fS()||(this.sY||this.Z||this.W?RJu(this):this.tr$())}; g.h.tr$=function(){RJu(this)}; g.h.isActive=function(){return!!this.T}; g.h.isComplete=function(){return g.Hi(this)==4}; g.h.getStatus=function(){try{return g.Hi(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)};s$.prototype.send=function(p,C,V){C=C===void 0?function(){}:C; V=V===void 0?function(){}:V; xXu(p.url,function(N){N=N.target;Xr(N)?C(g.dU(N)):V(N.getStatus())},p.requestType,p.body,p.requestHeaders,p.timeoutMillis,p.withCredentials)}; s$.prototype.bG=function(){return 1};E$.prototype.done=function(){this.logger.iN(this.event,aX()-this.startTime)}; g.v(l3,E1);g.v(ci,l3);g.h=ci.prototype;g.h.p8=function(){}; g.h.b3=function(){}; g.h.iN=function(){}; g.h.Lq=function(){}; g.h.Zg=function(){}; g.h.x3=function(p,C,V){return V}; g.h.ZD=function(){}; g.h.Xl=function(){}; g.h.M4=function(){}; g.h.On=function(){}; g.v(Tq,l3);g.h=Tq.prototype;g.h.update=function(p){this.logger.dispose();this.logger=p}; g.h.b3=function(p){this.logger.b3(p)}; g.h.iN=function(p,C){this.logger.iN(p,C)}; g.h.Lq=function(p){this.logger.Lq(p)}; g.h.Zg=function(){this.logger.Zg()}; g.h.x3=function(p,C,V){return this.logger.x3(p,C,V)}; g.h.ZD=function(p){this.logger.ZD(p)}; g.h.Xl=function(p){this.logger.Xl(p)}; g.h.M4=function(p){this.logger.M4(p)}; g.h.On=function(p){this.logger.On(p)}; g.h.Gg=function(p){this.logger instanceof m0&&this.logger.Gg(p)}; g.h.p8=function(p){this.logger.p8(p)}; g.v(Mj,g.z);g.v(J$,l3);g.h=J$.prototype;g.h.Gg=function(p){this.wR=p}; g.h.p8=function(p){this.metrics.h5n.pM(p,this.zU)}; g.h.b3=function(p){this.metrics.eventCount.T(p,this.zU)}; g.h.iN=function(p,C){this.metrics.rU.pM(C,p,this.wR,this.zU)}; g.h.Lq=function(p){this.metrics.errorCount.T(p,this.wR,this.zU)}; g.h.x3=function(p,C,V){function N(d){if(!H.fS()){var a=aX()-X;H.metrics.HOV.pM(a,p,C,d,H.wR,H.zU)}} var H=this,X=aX();V.then(function(){N(0)},function(d){d instanceof x7?N(d.code):N(-1)}); return V}; g.h.ZD=function(p){this.metrics.P8Y.T(p,this.wR,this.zU)}; g.h.Xl=function(p){this.metrics.yp.T(p,this.wR,this.zU)}; g.h.M4=function(p){this.metrics.p6n.T(p,this.wR,this.zU)}; g.v(m0,J$);m0.prototype.On=function(p){var C=this;this.T.dispose();this.C&&this.service.dispose();this.service=this.options.Yy("41",this.options.mL.concat(p));this.T=new Mj(function(){return void C.service.Il()},this.options.Fl); this.metrics=P0Y(this.service);this.V=p}; m0.prototype.Zg=function(){$Xj(this.T)};g.v(vi,ny);g.v(Fr,ny);g.v(SE,ny);var kVG=KH(SE),gee=function(p){return $T(function(C){return C instanceof p&&!(xT(C.aH)&2)})}(SE); SE.messageId="bfkj";g.v(KN,ny);g.v(H5,ny);g.v(Dt,ny);var WaS=KH(Dt);g.v(Zt,g.z);Zt.prototype.snapshot=function(p){if(this.fS())throw Error("Already disposed");this.logger.b3("n");var C=this.logger.share();return this.V.then(function(V){var N=V.j_;return new Promise(function(H){var X=new E$(C,"n");N(function(d){X.done();C.p8(d.length);C.Zg();C.dispose();H(d)},[p.Ou, p.K0,p.YL,p.Jl])})})}; Zt.prototype.dX=function(p){var C=this;if(this.fS())throw Error("Already disposed");this.logger.b3("n");var V=t$(this.logger,function(){return C.S([p.Ou,p.K0,p.YL,p.Jl])},"n"); this.logger.p8(V.length);this.logger.Zg();return V}; Zt.prototype.Im=function(p){this.V.then(function(C){var V;(V=C.dte)==null||V(p)})}; Zt.prototype.VM=function(){return this.logger.share()}; g.v(U$,Error);g.v(oX,ny);g.v(kN,ny);xN.prototype.ES=function(p,C){var V=this,N,H,X,d,a;return g.I(function(E){if(E.C==1){var l=new oX;N=mM(l,1,V.lK);p&&mM(N,2,p);C&&mM(N,3,C);H=V.T();return g.y(E,V.client.create(N,H),2)}X=E.T;d=f6(WT(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 D$1;g.v($N,g.z);$N.prototype.qS=function(p,C){var V=this.FU(p);C==null||C(V);return t$(this.logger,function(){return g.mq(V,2)},this.C)}; D$1=Symbol.dispose;g.v(Wi,$N);Wi.prototype.FU=function(p,C){var V=this;++this.W>=this.Y&&this.T.resolve();var N=p();p=t$(this.logger,function(){return V.S(N)},"C"); if(p===void 0)throw new U$(17,"YNJ:Undefined");if(!(p instanceof Uint8Array))throw new U$(18,"ODM:Invalid");C==null||C(p);return p}; g.v(QO,$N);QO.prototype.FU=function(){return this.S}; g.v(rU,$N);rU.prototype.FU=function(){var p=this;return t$(this.logger,function(){return Fv(p.S)},"d")}; rU.prototype.qS=function(){return this.S}; g.v(Bi,$N);Bi.prototype.FU=function(){if(this.S)return this.S;this.S=una(this,function(p){return"_"+K91(p)}); return una(this,function(p){return p})}; g.v(pE,$N);pE.prototype.FU=function(p){var C=p();if(C.length>118)throw new U$(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 J9V(p,this.logger)}catch(C){this.reportError(new U$(22,"GBJ:init",C))}}; CE.prototype.reportError=function(p){this.logger.Lq(p.code);this.onError(p);return p}; g.v(H2,CE);H2.prototype.Rq=function(){return this.C.promise}; H2.prototype.FU=function(p){return jZ(this,Object.assign({},p),!1)}; H2.prototype.qS=function(p){return jZ(this,Object.assign({},p),!0)}; var bGu=function(p){return $T(function(C){if(!dr(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.YKn===!0)continue;return!1}if(!H(C[N]))return!1}return!0})}({o6:function(p){return $T(function(C){return C instanceof p})}(YN)},"");g.v(Xf,ny);var zXG=KH(Xf);khy.prototype.getMetadata=function(){return this.metadata};dh.prototype.getMetadata=function(){return this.metadata}; dh.prototype.getStatus=function(){return this.status};ip.prototype.D=function(p,C){C=C===void 0?{}:C;return new khy(p,this,C)}; ip.prototype.getName=function(){return this.name};var RXY=new ip("/google.internal.waa.v1.Waa/Create",oX,Xf,function(p){return p.ax()},zXG);g.v(hE,ny);var xsG=new ip("/google.internal.waa.v1.Waa/GenerateIT",kN,hE,function(p){return p.ax()},KH(hE));var azu=new Set(["SAPISIDHASH","APISIDHASH"]);var Hea=Promise;g.v(sV,ny);sV.prototype.getValue=function(){var p=xK(this,2);if(Array.isArray(p)||p instanceof ny)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return WT(this,2)};g.v(as,ny);as.prototype.getMessage=function(){return c4(this,2)}; var n5L=KH(as);EV.prototype.yA=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}; EV.prototype.removeListener=function(p,C){p=="data"?Ti(this.V,C):p=="metadata"?Ti(this.W,C):p=="status"?Ti(this.Y,C):p=="end"?Ti(this.S,C):p=="error"&&Ti(this.C,C);return this}; EV.prototype.cancel=function(){this.T.abort()}; EV.prototype.cancel=EV.prototype.cancel;EV.prototype.removeListener=EV.prototype.removeListener;EV.prototype.on=EV.prototype.yA;g.Bv(g.M_,UXv);g.M_.prototype.T=function(){var p=new JE(this.S,this.V);this.C&&p.setCredentialsMode(this.C);return p}; g.M_.prototype.setCredentialsMode=function(p){this.C=p}; g.Bv(JE,g.im);g.h=JE.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;mn(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.le.bind(this),this.uG.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,v2(this));this.readyState=0}; g.h.le=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,mn(this)),this.T&&(this.readyState=3,mn(this),this.T)))if(this.responseType==="arraybuffer")p.arrayBuffer().then(this.Ud.bind(this),this.uG.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;eQL(this)}else p.text().then(this.KD.bind(this),this.uG.bind(this))}; g.h.Na=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?v2(this):mn(this);this.readyState==3&&eQL(this)}}; g.h.KD=function(p){this.T&&(this.response=this.responseText=p,v2(this))}; g.h.Ud=function(p){this.T&&(this.response=p,v2(this))}; g.h.uG=function(){this.T&&v2(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(JE.prototype,"withCredentials",{get:function(){return this.W==="include"}, set:function(p){this.setCredentialsMode(p?"include":"same-origin")}});g.Ff.prototype.toString=function(){var p=[],C=this.W;C&&p.push(fE(C,nHP,!0),":");var V=this.T;if(V||C=="file")p.push("//"),(C=this.J)&&p.push(fE(C,nHP,!0),"@"),p.push(g.VW(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(fE(V,V.charAt(0)=="/"?eX5:P9y,!0));(V=this.S.toString())&&p.push("?",V);(V=this.Y)&&p.push("#",fE(V,wvG));return p.join("")}; g.Ff.prototype.resolve=function(p){var C=this.clone(),V=!!p.W;V?g.SZ(C,p.W):V=!!p.J;V?C.J=p.J:V=!!p.T;V?g.KE(C,p.T):V=p.V!=null;var N=p.C;if(V)g.Dq(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?up(C,p.S.clone()):V=!!p.Y;V&&(C.Y=p.Y);return C}; g.Ff.prototype.clone=function(){return new g.Ff(this)}; var nHP=/[#\/\?@]/g,P9y=/[#\?:]/g,eX5=/[#\?]/g,wGj=/[#\?@]/g,wvG=/#/g;g.h=UV.prototype;g.h.add=function(p,C){q_(this);this.V=null;p=Is(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){q_(this);p=Is(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(){q_(this);return this.C==0}; g.h.forEach=function(p,C){q_(this);this.T.forEach(function(V,N){V.forEach(function(H){p.call(C,H,N,this)},this)},this)}; g.h.h9=function(){q_(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&&k3(X,d,a,"unexpected tag");X.T=1;X.C=0;X.S=0} function V(E){X.S++;X.S==5&&E&240&&k3(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};x3.prototype.isInputValid=function(){return this.T===null}; x3.prototype.Mg=function(){return this.T}; x3.prototype.WJ=function(){return!1}; x3.prototype.parse=function(p){this.T!==null&&Ghs(this,p,"stream already broken");var C=null;try{var V=this.V;V.V||BIL(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){BIL(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){Ghs(this,p,d.message)}this.C+=p.length;return C};var Lyf={INIT:0,Aw:1,jp:2,WW:3,qq:4,FD:5,STRING:6,wm:7,xp:8,N0:9,GZ:10,hh:11,BH:12,U4:13,Km:14,lZ:15,SV:16,E0:17,uB:18,mD:19,oh:20};g.h=Rs.prototype;g.h.isInputValid=function(){return this.W!=3}; g.h.Mg=function(){return this.Z}; g.h.done=function(){return this.W===2}; g.h.WJ=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.N0:if(!J)continue;J==="r"?X.T=E.GZ:nE(X,p,T);continue;case E.GZ:if(!J)continue;J==="u"?X.T=E.hh:nE(X,p,T);continue;case E.hh:if(!J)continue;J==="e"?X.T=N():nE(X,p,T);continue;case E.BH:if(!J)continue;J==="a"?X.T=E.U4: nE(X,p,T);continue;case E.U4:if(!J)continue;J==="l"?X.T=E.Km:nE(X,p,T);continue;case E.Km:if(!J)continue;J==="s"?X.T=E.lZ:nE(X,p,T);continue;case E.lZ:if(!J)continue;J==="e"?X.T=N():nE(X,p,T);continue;case E.SV:if(!J)continue;J==="u"?X.T=E.E0:nE(X,p,T);continue;case E.E0:if(!J)continue;J==="l"?X.T=E.uB:nE(X,p,T);continue;case E.uB:if(!J)continue;J==="l"?X.T=N():nE(X,p,T);continue;case E.mD:J==="."?X.T=E.oh:nE(X,p,T);continue;case E.oh:if("0123456789.eE+-".indexOf(J)!==-1)continue;else T--,X.V--,X.T= N();continue;default:nE(X,p,T)}}} function N(){var J=d.pop();return J!=null?J:E.Aw} 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=Lyf,l=p.length,t=0,c=-1,T=0;T0?(M=X.Y,X.Y=[],M):null}return null};eZ.prototype.isInputValid=function(){return this.W===null}; eZ.prototype.Mg=function(){return this.W}; eZ.prototype.WJ=function(){return!1}; eZ.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 Rs({DRr:!0,tf:!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};P2.prototype.hq=function(){return this.T}; P2.prototype.getStatus=function(){return this.W}; P2.prototype.a$=function(p){p=p.target;try{if(p==this.T)a:{var C=g.Hi(this.T),V=this.T.C,N=this.T.getStatus(),H=g.dU(this.T);p=[];if(g.i3(this.T)instanceof Array){var X=g.i3(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?wh(this,7):V==7?wh(this,8):N||wh(this,3)),this.C||(this.C=pea(this.T),this.C==null&&wh(this,5)),this.W>2)$3(this);else{if(p.length>this.V){var d=p.length;V=[];try{if(this.C.WJ())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){wh(this,5);$3(this);break a}}C==4?(H.length!= 0||this.Z?wh(this,2):wh(this,4),$3(this)):wh(this,1)}}}catch(t){wh(this,6),$3(this)}};g.h=CKa.prototype;g.h.yA=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.yA(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.YRY=function(p){var C=this.C.data;C&&jNL(p,C);(C=this.T.data)&&jNL(p,C);this.T.data=[]}; g.h.i7$=function(){switch(this.V.getStatus()){case 1:LE(this,"readable");break;case 5:case 6:case 4:case 7:case 3:LE(this,"error");break;case 8:LE(this,"close");break;case 2:LE(this,"end")}};VuV.prototype.serverStreaming=function(p,C,V,N){var H=this,X=p.substring(0,p.length-N.name.length);return NWe(function(d){var a=d.QO,E=d.getMetadata(),l=ies(H,!1);E=hC9(H,E,l,X+a.getName());var t=sNv(l,a.C,!0);d=a.T(d.h1);l.send(E,"POST",d);return t},this.S).call(this,N.D(C,V))};Eqe.prototype.create=function(p,C){return dqY(this.T,this.C+"/$rpc/google.internal.waa.v1.Waa/Create",p,C||{},RXY)};var gH0=1,Ch=new WeakMap;g.v(gh,g.z);gh.prototype.signal=function(){var p=new Qh(!1);this.signals.add(p);g.R(this,p);return p}; gh.prototype.T3=function(p){return W2(this,p).T3()}; g.v(Qh,g.z);g.h=Qh.prototype;g.h.rq=function(){var p=this,C=gH0++;rh(function(){lzV(p,C)}); return C}; g.h.detach=function(p){var C=this;rh(function(){var V=C.slots.get(p);V&&V.Fa()})}; g.h.value=function(p){return this.promise(!0,p)}; g.h.T3=function(){return this.rC}; g.h.next=function(p){return this.promise(!1,p)}; g.h.promise=function(p,C){var V=this,N=dXX();rh(function(){if(V.fS())N.reject(new yU("Signal initially disposed"));else if(C&&C.fS())N.reject(new yU("Owner initially disposed"));else if(p&&V.ut&&V.iE)N.resolve(V.rC);else if(V.bQ.add(N),O8(N.promise,function(){V.bQ.delete(N)}),C){var H=function(){N.reject(new yU("Owner asynchronously disposed"))}; O8(N.promise,function(){var X=Ch.get(C);X&&g.rY(X,H)}); TWH(C,H)}}); return N.promise}; g.h.CS=function(){var p=this;g.z.prototype.CS.call(this);rh(function(){for(var C=g.F(p.slots.values()),V=C.next();!V.done;V=C.next())V=V.value.Fa,V();p.slots.clear();C=g.F(p.bQ);for(V=C.next();!V.done;V=C.next())V.value.reject(new yU("Signal asynchronously disposed"));p.bQ.clear()})}; var Gi=[],ph=!1;g.v(j1,g.z);j1.prototype.start=function(){var p=this;if(this.fS())throw new Nk("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&&B2(W2(N,p.V),p)}p.kM.ZY(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&&B2(W2(N,p.V),p)}p.kM.ZY(p)},this.milliseconds); this.state=1}}; j1.prototype.cancel=function(){if(this.Y){this.clear();this.state=2;var p;(p=this.C)==null||p.reject(new VA);var C;(C=this.kM.nB)==null||C.call(this);if(this.W){var V;(V=this.T)!=null&&B2(W2(V,this.W))}}}; j1.prototype.CS=function(){this.clear();var p;(p=this.C)==null||p.reject(new Nk);this.state=4;g.z.prototype.CS.call(this)}; j1.prototype.clear=function(){this.D?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.Xe.Object.defineProperties(j1.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.u3),this.C.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new VA("Timer has been cancelled."));case 4:return Promise.reject(new Nk("Timer has been disposed."));default:HT(this.state)}}}, ZY:{configurable:!0,enumerable:!0,get:function(){if(this.fS())throw new Nk("Cannot attach a signal to a disposed timer.");this.V||(this.T!=null||(this.T=new gh(this)),this.V=this.T.signal());return this.V}}, nB:{configurable:!0,enumerable:!0,get:function(){if(this.fS())throw new Nk("Cannot attach a signal to a disposed timer.");this.W||(this.T!=null||(this.T=new gh(this)),this.W=this.T.signal());return this.W}}}); g.v(VA,Tp);g.v(Nk,Tp);g.v(Hs,CE);g.h=Hs.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.ES=function(p){return mqH(this,this.logger.x3("c",p===void 0?1:p,this.Ii.ES(O$().T,null)),new U$(10,"JVZ:Timeout"))}; g.h.prefetch=function(){this.state===1&&(this.yw=this.ES())}; g.h.start=function(){if(this.state===1){this.state=2;var p=new E$(this.logger,"r");this.ready().finally(function(){return void p.done()}); FSH(this)}}; g.h.FU=function(p){Soy(this,p);return jZ(this,J2S(p),!1)}; g.h.qS=function(p){Soy(this,p);return jZ(this,J2S(p),!0)};var ZeS={NONE:0,NRe:1},XXe={JD:0,Hpk:1,eL$:2,p_V:3},e1={hD:"a",zYk:"d",VIDEO:"v"};dT.prototype.isVisible=function(){return this.qQ?this.L7>=.3:this.L7>=.5};var Mk={kpo:0,JXx:1},NAH={NONE:0,H$$:1,Fl_:2};iZ.prototype.getValue=function(){return this.C}; g.v(hU,iZ);hU.prototype.V=function(p){this.C===null&&g.bc(this.S,p)&&(this.C=p)}; g.v(sh,iZ);sh.prototype.V=function(p){this.C===null&&typeof p==="number"&&(this.C=p)}; g.v(ao,iZ);ao.prototype.V=function(p){this.C===null&&typeof p==="string"&&(this.C=p)};Eh.prototype.disable=function(){this.C=!1}; Eh.prototype.enable=function(){this.C=!0}; Eh.prototype.isEnabled=function(){return this.C}; Eh.prototype.reset=function(){this.T={};this.C=!0;this.V={}};var zu=document,FL=window;var iN9=!g.vF&&!Y2();JU.prototype.now=function(){return 0}; JU.prototype.C=function(){return 0}; JU.prototype.V=function(){return 0}; JU.prototype.T=function(){return 0};g.v(vs,JU);vs.prototype.now=function(){return mg()&&FL.performance.now?FL.performance.now():JU.prototype.now.call(this)}; vs.prototype.C=function(){return mg()&&FL.performance.memory?FL.performance.memory.totalJSHeapSize||0:JU.prototype.C.call(this)}; vs.prototype.V=function(){return mg()&&FL.performance.memory?FL.performance.memory.usedJSHeapSize||0:JU.prototype.V.call(this)}; vs.prototype.T=function(){return mg()&&FL.performance.memory?FL.performance.memory.jsHeapSizeLimit||0:JU.prototype.T.call(this)};var Oes=Fu(function(){var p=!1;try{var C=Object.defineProperty({},"passive",{get:function(){p=!0}}); g.xH.addEventListener("test",null,C)}catch(V){}return p});y2V.prototype.isVisible=function(){return De(zu)===1};var IzV={oqe:"allow-forms",d5Y:"allow-modals",jd_:"allow-orientation-lock",X6n:"allow-pointer-lock",Ff$:"allow-popups",q8$:"allow-popups-to-escape-sandbox",cUa:"allow-presentation",M5o:"allow-same-origin",ZOe:"allow-scripts",ygY:"allow-top-navigation",TxS:"allow-top-navigation-by-user-activation"},kOs=Fu(function(){return be1()});var RCa=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Oh.prototype.i9=function(p,C,V){p=p+"//"+C+V;var N=wea(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};xc.prototype.setInterval=function(p,C){return FL.setInterval(p,C)}; xc.prototype.clearInterval=function(p){FL.clearInterval(p)}; xc.prototype.setTimeout=function(p,C){return FL.setTimeout(p,C)}; xc.prototype.clearTimeout=function(p){FL.clearTimeout(p)};g.v(zy,ny);zy.prototype.T=tn1([0,suF,ljG,-2,T15]);var HJv={xOk:1,Ps:2,eOV:3};d79.prototype.Yj=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 $c=g.xH.performance,Wy8=!!($c&&$c.mark&&$c.measure&&$c.clearMarks),Ps=Fu(function(){var p;if(p=Wy8){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}); wT.prototype.disable=function(){this.T=!1;this.events!==this.C.google_js_reporting_queue&&(Ps()&&g.lr(this.events,lCa),this.events.length=0)}; wT.prototype.start=function(p,C){if(!this.T)return null;var V=aCL()||sb1();p=new E7u(p,C,V);C="goog_"+p.label+"_"+p.uniqueId+"_start";$c&&Ps()&&$c.mark(C);return p}; wT.prototype.end=function(p){if(this.T&&typeof p.value==="number"){var C=aCL()||sb1();p.duration=C-p.value;C="goog_"+p.label+"_"+p.uniqueId+"_end";$c&&Ps()&&$c.mark(C);!this.T||this.events.length>2048||this.events.push(p)}};tSH.prototype.t5=function(p,C,V,N,H){H=H||this.I4;try{var X=new Oh;X.T.push(1);X.C[1]=yA("context",p);C.error&&C.meta&&C.id||(C=new QA(rT(C)));if(C.msg){var d=C.msg.substring(0,512);X.T.push(2);X.C[2]=yA("msg",d)}var a=C.meta||{};if(this.Az)try{this.Az(a)}catch(M){}if(N)try{N(a)}catch(M){}N=[a];X.T.push(3);X.C[3]=N;var E=eCa();if(E.C){var l=E.C.url||"";X.T.push(4);X.C[4]=yA("top",l)}var t={url:E.T.url||""};if(E.T.url){var c=E.T.url.match(PX);var T=nJ(c[1],null,c[3],c[4])}else T="";l=[t,{url:T}];X.T.push(5); X.C[5]=l;iJu(this.T,H,X,V)}catch(M){try{iJu(this.T,H,{context:"ecmserr",rctx:p,msg:rT(M),url:E&&E.T.url},V)}catch(J){}}return this.gX}; g.v(QA,hNY);var gT,Ws,Lh=new wT;gT=new function(){var p="https:";FL&&FL.location&&FL.location.protocol==="http:"&&(p="http:");this.C=p;this.T=.01}; Ws=new tSH;FL&&FL.document&&(FL.document.readyState=="complete"?TAj():Lh.T&&Kh(FL,"load",function(){TAj()}));var m7u=Date.now(),NK=-1,jh=-1,kqX,a9=-1,VT=!1;g.h=EE.prototype;g.h.getHeight=function(){return this.bottom-this.top}; g.h.clone=function(){return new EE(this.top,this.right,this.bottom,this.left)}; g.h.contains=function(p){return this&&p?p instanceof EE?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};Tu.prototype.rI=function(p,C){return!!p&&(!(C===void 0?0:C)||this.volume==p.volume)&&this.V==p.V&&tx(this.T,p.T)&&!0};MK.prototype.AQ=function(){return this.D}; MK.prototype.rI=function(p,C){return this.S.rI(p.S,C===void 0?!1:C)&&this.D==p.D&&tx(this.V,p.V)&&tx(this.Y,p.Y)&&this.T==p.T&&this.W==p.W&&this.C==p.C&&this.J==p.J};var Qu8={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},AT={NC:"start",jy:"firstquartile",S_:"midpoint",GO:"thirdquartile",COMPLETE:"complete",ERROR:"error",Vu:"metric",PAUSE:"pause",i4:"resume",fU:"skip",pU:"viewable_impression",u4:"mute",e_:"unmute",XG:"fullscreen",oS:"exitfullscreen",B7:"bufferstart",Df:"bufferfinish",FG:"fully_viewable_audible_half_duration_impression",rN:"measurable_impression",Nb:"abandon",wL:"engagedview",Zf:"impression",ll:"creativeview",IZ:"loaded", Smn:"progress",CLOSE:"close",MUo:"collapse",FY$:"overlay_resize",qhx:"overlay_unmeasurable_impression",cd_:"overlay_unviewable_impression",ZMn:"overlay_viewable_immediate_impression",MI_:"overlay_viewable_end_of_session_impression",gL:"custom_metric_viewable",ey:"audio_audible",pH:"audio_measurable",H7:"audio_impression"},g3a="start firstquartile midpoint thirdquartile resume loaded".split(" "),WnS=["start","firstquartile","midpoint","thirdquartile"],Y$u=["abandon"],CX={UNKNOWN:-1,NC:0,jy:1,S_:2, GO:3,COMPLETE:4,Vu:5,PAUSE:6,i4:7,fU:8,pU:9,u4:10,e_:11,XG:12,oS:13,FG:14,rN:15,Nb:16,wL:17,Zf:18,ll:19,IZ:20,gL:21,B7:22,Df:23,H7:27,pH:28,ey:29};var Fo9={t5o:"addEventListener",cX$:"getMaxSize",MHr:"getScreenSize",Zqx:"getState",yBn:"getVersion",Lmn:"removeEventListener",cBo:"isViewable"};g.h=g.mG.prototype;g.h.clone=function(){return new g.mG(this.left,this.top,this.width,this.height)}; g.h.contains=function(p){return p instanceof g.vG?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.Sg(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 uuV={};A8a.prototype.update=function(p){p&&p.document&&(this.D=Jx(!1,p,this.isMobileDevice),this.T=Jx(!0,p,this.isMobileDevice),kDs(this,p),o7e(this,p))};n2.prototype.cancel=function(){Yc().clearTimeout(this.T);this.T=null}; n2.prototype.schedule=function(){var p=this,C=Yc(),V=nh().T.T;this.T=C.setTimeout(Ro(V,Gy(143,function(){p.C++;p.V.sample()})),v7a())};g.h=eh.prototype;g.h.Wv=function(){return!1}; g.h.initialize=function(){return this.isInitialized=!0}; g.h.rZ=function(){return this.T.Sa}; g.h.Xf=function(){return this.T.a$}; g.h.wx=function(p,C){if(!this.a$||(C===void 0?0:C))this.a$=!0,this.Sa=p,this.J=0,this.T!=this||w9(this)}; g.h.getName=function(){return this.T.Ga}; g.h.GY=function(){return this.T.t$()}; g.h.t$=function(){return{}}; g.h.PS=function(){return this.T.J}; g.h.hC=function(){var p=Yo();p.T=Jx(!0,this.V,p.isMobileDevice)}; g.h.HL=function(){o7e(Yo(),this.V)}; g.h.Me=function(){return this.S.T}; g.h.sample=function(){}; g.h.isActive=function(){return this.T.Y}; g.h.hS=function(p){var C=this.T;this.T=p.PS()>=this.J?p:this;C!==this.T?(this.Y=this.T.Y,w9(this)):this.Y!==this.T.Y&&(this.Y=this.T.Y,w9(this))}; g.h.tx=function(p){if(p.C===this.T){var C=!this.S.rI(p,this.Z);this.S=p;C&&zNV(this)}}; g.h.tF=function(){return this.Z}; g.h.dispose=function(){this.Vn=!0}; g.h.fS=function(){return this.Vn};g.h=$o.prototype;g.h.observe=function(){return!0}; g.h.unobserve=function(){}; g.h.qc=function(p){this.W=p}; g.h.dispose=function(){if(!this.fS()){var p=this.C;g.rY(p.W,this);p.Z&&this.tF()&&Y8H(p);this.unobserve();this.sY=!0}}; g.h.fS=function(){return this.sY}; g.h.GY=function(){return this.C.GY()}; g.h.PS=function(){return this.C.PS()}; g.h.rZ=function(){return this.C.rZ()}; g.h.Xf=function(){return this.C.Xf()}; g.h.hS=function(){}; g.h.tx=function(){this.yl()}; g.h.tF=function(){return this.Vn};g.h=L2.prototype;g.h.PS=function(){return this.T.PS()}; g.h.rZ=function(){return this.T.rZ()}; g.h.Xf=function(){return this.T.Xf()}; g.h.create=function(p,C,V){var N=null;this.T&&(N=this.V_(p,C,V),Pf(this.T,N));return N}; g.h.pI=function(){return this.Lj()}; g.h.Lj=function(){return!1}; g.h.init=function(p){return this.T.initialize()?(Pf(this.T,this),this.S=p,!0):!1}; g.h.hS=function(p){p.PS()==0&&this.S(p.rZ(),this)}; g.h.tx=function(){}; g.h.tF=function(){return!1}; g.h.dispose=function(){this.W=!0}; g.h.fS=function(){return this.W}; g.h.GY=function(){return{}};g9.prototype.add=function(p,C,V){++this.V;p=new n7y(p,C,V);this.T.push(new n7y(p.C,p.T,p.V+this.V/4096));this.C=!0;return this};Loy.prototype.toString=function(){var p="//pagead2.googlesyndication.com//pagead/gen_204",C=QT(this.T);C.length>0&&(p+="?"+C);return p};r9.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 BAa=[1,.75,.5,.3,0];Bf.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)}};NZ.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.lf):C.lf;this.Sa=Math.max(this.Sa,C.lf);this.Mo.update(C.lf,V.lf,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.qQ!=C.qQ?V.isVisible()&&C.isVisible():V.isVisible();C=!C.isVisible()||C.T;this.Y_.update(V,p,C)}; NZ.prototype.g9=function(){return this.Y_.V>=this.Qn};if(zu&&zu.URL){var rQy=zu.URL,B12;if(B12=!!rQy){var GVc;a:{if(rQy){var p51=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var aJ=p51.exec(decodeURIComponent(rQy));if(aJ){GVc=aJ[1]&&aJ[1].length>1?aJ[1].substring(1):"true";break a}}catch(p){}}GVc=""}B12=GVc.length>0}Ws.gX=!B12};var CP1=new EE(0,0,0,0);var XiQ=new EE(0,0,0,0);g.v(sH,g.z);g.h=sH.prototype; g.h.CS=function(){if(this.x9.T){if(this.Ar.qI){var p=this.x9.T;p.removeEventListener&&p.removeEventListener("mouseover",this.Ar.qI,S1());this.Ar.qI=null}this.Ar.FH&&(p=this.x9.T,p.removeEventListener&&p.removeEventListener("mouseout",this.Ar.FH,S1()),this.Ar.FH=null)}this.ub&&this.ub.dispose();this.HV&&this.HV.dispose();delete this.AT;delete this.UU;delete this.ql;delete this.x9.nT;delete this.x9.T;delete this.Ar;delete this.ub;delete this.HV;delete this.IN;g.z.prototype.CS.call(this)}; g.h.Pf=function(){return this.HV?this.HV.T:this.position}; g.h.Yj=function(p){nh().Yj(p)}; g.h.tF=function(){return!1}; g.h.jQ=function(){return new NZ}; g.h.zp=function(){return this.AT}; g.h.g4=function(p){return sXS(this,p,1E4)}; g.h.Pr=function(p,C,V,N,H,X,d){this.Jx||(this.kR&&(p=this.iH(p,V,H,d),N=N&&this.q5.L7>=(this.qQ()?.3:.5),this.iZ(X,p,N),this.mF=C,p.L7>0&&-1===this.LY&&(this.LY=C),this.Rr==-1&&this.g9()&&(this.Rr=C),this.Yo==-2&&(this.Yo=dx(this.Pf())?p.L7:-1),this.q5=p),this.UU(this))}; g.h.iZ=function(p,C,V){this.zp().update(p,C,this.q5,V)}; g.h.sz=function(){return new dT}; g.h.iH=function(p,C,V,N){V=this.sz();V.T=C;C=Yc().C;C=De(zu)===0?-1:C.isVisible()?0:1;V.C=C;V.L7=this.Qq(p);V.qQ=this.qQ();V.lf=N;return V}; g.h.Qq=function(p){return this.opacity===0&&cs(this.IN,"opac")===1?0:p}; g.h.qQ=function(){return!1}; g.h.uu=function(){return this.IeY||this.SYY}; g.h.Hn=function(){C2()}; g.h.WC=function(){C2()}; g.h.qR=function(){return 0}; g.h.g9=function(){return this.AT.g9()}; g.h.TK=function(){var p=this.kR;p=(this.hasCompleted||this.fS())&&!p;var C=nh().C!==2||this.yUa;return this.Jx||C&&p?2:this.g9()?4:3}; g.h.Bt=function(){return 0};g.EH.prototype.next=function(){return g.EU}; g.EU={done:!0,value:void 0};g.EH.prototype.qB=function(){return this};g.v(TUa,dT);var lS=J$a([void 0,1,2,3,4,8,16]),tJ=J$a([void 0,4,8,16]),jFE={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:T2("p0",tJ),p1:T2("p1",tJ),p2:T2("p2",tJ),p3:T2("p3",tJ),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:cp("mtos1",[0,2,4],!1,tJ),mtos2:cp("mtos2",[0,2,4],!1,tJ),mtos3:cp("mtos3",[0,2,4],!1,tJ),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:T2("a0",tJ),a1:T2("a1",tJ),a2:T2("a2",tJ),a3:T2("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:T2("c0",tJ),c1:T2("c1",tJ),c2:T2("c2",tJ),c3:T2("c3",tJ),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:T2("qmtos",lS),qnc:T2("qnc",lS),qmv:T2("qmv",lS),qnv:T2("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:T2("ss0",tJ),ss1:T2("ss1",tJ),ss2:T2("ss2",tJ),ss3:T2("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"},Vyy=Object.assign({},jFE,{avid:mo("audio"),avas:"avas",vs:"vs"}),NY2={atos:"atos",avt:cp("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"};vp.prototype.getValue=function(){return this.C}; vp.prototype.update=function(p,C){p>=32||(this.T&1<=.5;ko(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.F$.update(H&&!X,p);p=Math.floor(C.mediaTime/1E3);this.Wr.update(p,C.isVisible());this.UY.update(p,C.L7>=1);this.l_.update(p, tT(C))}};DjH.prototype.C=function(p){this.V||(this.T(p)?(p=o3V(this.Z,this.S,p),this.W|=p,p=p==0):p=!1,this.V=p)};g.v(Ko,DjH);Ko.prototype.T=function(){return!0}; Ko.prototype.Y=function(){return!1}; Ko.prototype.getId=function(){var p=this,C=A9(AT,function(V){return V==p.S}); return CX[C].toString()}; Ko.prototype.toString=function(){var p="";this.Y()&&(p+="c");this.V&&(p+="s");this.W>0&&(p+=":"+this.W);return this.getId()+p};g.v(DA,Ko);DA.prototype.C=function(p,C){C=C===void 0?null:C;C!=null&&this.D.push(C);Ko.prototype.C.call(this,p)};g.v(uf,urL);uf.prototype.C=function(){return null}; uf.prototype.V=function(){return[]};g.v(ZA,$o);g.h=ZA.prototype;g.h.W4=function(){if(this.element){var p=this.element,C=this.C.T.V;try{try{var V=q8u(p.getBoundingClientRect())}catch(l){V=new EE(0,0,0,0)}var N=V.right-V.left,H=V.bottom-V.top,X=fCS(p,C),d=X.x,a=X.y;var E=new EE(Math.round(a),Math.round(d+N),Math.round(a+H),Math.round(d))}catch(l){E=CP1.clone()}this.V=E;this.T=RNV(this,this.V)}}; g.h.zj=function(){this.Y=this.C.S.T}; g.h.Mj=function(p){var C=cs(this.IN,"od")==1;return HNv(p,this.Y,this.element,C)}; g.h.Wh=function(){this.timestamp=C2()}; g.h.yl=function(){this.Wh();this.W4();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var p=this.element;var C=new g.Sg(p.videoWidth,p.videoHeight);p=this.T;var V=l4(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.zj(); p=this.T;V=this.Y;p=p.left<=V.right&&V.left<=p.right&&p.top<=V.bottom&&V.top<=p.bottom?new EE(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 EE(0,0,0,0);V=p.top>=p.bottom||p.left>=p.right?new EE(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.Mj(V))V=new EE(0,0,0,0);else{N=Yo().S;C=new EE(0,N.height,N.width,0);var X;N=hT(V,(X=this.W)!=null?X:this.T);H=hT(V,Yo().T);C=hT(V,C)}X=V.top>=V.bottom|| V.left>=V.right?new EE(0,0,0,0):cf(V,-this.T.left,-this.T.top);R9()||(H=N=0);this.Z=new MK(p,this.element,this.T,X,N,H,this.timestamp,C)}; g.h.getName=function(){return this.C.getName()};var H0f=new EE(0,0,0,0);g.v(UH,ZA);g.h=UH.prototype;g.h.observe=function(){this.S();return!0}; g.h.tx=function(){ZA.prototype.yl.call(this)}; g.h.Wh=function(){}; g.h.W4=function(){}; g.h.yl=function(){this.S();ZA.prototype.yl.call(this)}; g.h.hS=function(p){p=p.isActive();p!==this.J&&(p?this.S():(Yo().T=new EE(0,0,0,0),this.T=new EE(0,0,0,0),this.Y=new EE(0,0,0,0),this.timestamp=-1));this.J=p};var cD={},oNs=(cD.firstquartile=0,cD.midpoint=1,cD.thirdquartile=2,cD.complete=3,cD);g.v(OH,sH);g.h=OH.prototype;g.h.tF=function(){return!0}; g.h.Ui=function(){return this.hB==2}; g.h.g4=function(p){return sXS(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.Ra(E,H);this.V=E.duration||this.V;this.Z=E.isVpaid||this.Z;this.Ga=E.isYouTube||this.Ga;Yc();this.Mo=!1;H=UjS(this,C);ZNa(this)===1&&(X=H);sH.prototype.Pr.call(this,p,C,V,N,E,X,d);this.d9&&this.d9.V&&g.lr(this.Y,function(l){l.C(a)})}; g.h.iZ=function(p,C,V){sH.prototype.iZ.call(this,p,C,V);I1(this).update(p,C,this.q5,V);this.Qn=tT(this.q5)&&tT(C);this.Sa==-1&&this.UY&&(this.Sa=this.zp().V.T);this.BR.V=0;p=this.g9();C.isVisible()&&mO(this.BR,"vs");p&&mO(this.BR,"vw");ko(C.volume)&&mO(this.BR,"am");tT(C)?mO(this.BR,"a"):mO(this.BR,"mut");this.lU&&mO(this.BR,"f");C.C!=-1&&(mO(this.BR,"bm"),C.C==1&&(mO(this.BR,"b"),tT(C)&&mO(this.BR,"umutb")));tT(C)&&C.isVisible()&&mO(this.BR,"avs");this.Qn&&p&&mO(this.BR,"avw");C.L7>0&&mO(this.BR, "pv");bf(this,this.zp().V.T,!0)&&mO(this.BR,"gdr");jr(this.zp().C,1)>=2E3&&mO(this.BR,"pmx");this.Mo&&mO(this.BR,"tvoff")}; g.h.jQ=function(){return new FU}; g.h.zp=function(){return this.AT}; g.h.sz=function(){return new TUa}; g.h.iH=function(p,C,V,N){p=sH.prototype.iH.call(this,p,C,V,N===void 0?-1:N);p.fullscreen=this.lU;p.paused=this.Ui();p.volume=V.volume;ko(p.volume)||(this.Wc++,C=this.q5,ko(C.volume)&&(p.volume=C.volume));V=V.currentTime;p.mediaTime=V!==void 0&&V>=0?V:-1;return p}; g.h.Qq=function(p){return Yo(),this.lU?1:sH.prototype.Qq.call(this,p)}; g.h.qR=function(){return 1}; g.h.getDuration=function(){return this.V}; g.h.TK=function(){return this.Jx?2:ONa(this)?5:this.g9()?4:3}; g.h.Bt=function(){return this.F$?this.zp().W.V>=2E3?4:3:2}; g.h.qc=function(p){this.HV&&this.HV.qc(p)};var X5G=g.QL();L0Q.prototype.reset=function(){this.T=[];this.C=[]}; var z2=kc(L0Q);g.v(er,L2);g.h=er.prototype;g.h.getName=function(){return(this.C?this.C:this.T).getName()}; g.h.GY=function(){return(this.C?this.C:this.T).GY()}; g.h.PS=function(){return(this.C?this.C:this.T).PS()}; g.h.init=function(p){var C=!1;(0,g.lr)(this.V,function(V){V.initialize()&&(C=!0)}); C&&(this.S=p,Pf(this.T,this));return C}; g.h.dispose=function(){(0,g.lr)(this.V,function(p){p.dispose()}); L2.prototype.dispose.call(this)}; g.h.pI=function(){return xo(this.V,function(p){return p.Wv()})}; g.h.Lj=function(){return xo(this.V,function(p){return p.Wv()})}; g.h.V_=function(p,C,V){return new ZA(p,this.T,C,V)}; g.h.tx=function(p){this.C=p.C};var jsv={threshold:[0,.3,.5,.75,1]};g.v(Pp,ZA);g.h=Pp.prototype;g.h.observe=function(){var p=this;this.b_||(this.b_=C2());if(J8L(298,function(){return VZQ(p)}))return!0; this.C.wx("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.yl=function(){var p=wx(this);p.length>0&&$C(this,p);ZA.prototype.yl.call(this)}; g.h.W4=function(){}; g.h.Mj=function(){return!1}; g.h.zj=function(){}; g.h.GY=function(){var p={};return Object.assign(this.C.GY(),(p.niot_obs=this.b_,p.niot_cbk=this.a$,p))}; g.h.getName=function(){return"nio"};g.v(Lo,L2);Lo.prototype.getName=function(){return"nio"}; Lo.prototype.Lj=function(){return!Yo().C&&this.T.T.V.IntersectionObserver!=null}; Lo.prototype.V_=function(p,C,V){return new Pp(p,this.T,C,V)};g.v(gx,eh);gx.prototype.Me=function(){return Yo().T}; gx.prototype.Wv=function(){var p=HEL();this.J!==p&&(this.T!=this&&p>this.T.J&&(this.T=this,w9(this)),this.J=p);return p==2};Wp.prototype.sample=function(){Bp(this,R1(),!1)}; Wp.prototype.S=function(){var p=R9(),C=C2();p?(VT||(NK=C,g.lr(z2.T,function(V){var N=V.zp();N.R$=Sr(N,C,V.hB!=1)})),VT=!0):(this.D=ssu(this,C),VT=!1,kqX=C,g.lr(z2.T,function(V){V.kR&&(V.zp().J=C)})); Bp(this,R1(),!p)}; var QF=kc(Wp);var E3Y=null,Fl="",vo=!1;var cE1=tZX().t8,pX=tZX().Ux;var JEV={Q5V:"visible",L$_:"audible",xX$:"time",s9$:"timetype"},m_Q={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)}}; MZj.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.v(NP,Ko);NP.prototype.getId=function(){return this.D}; NP.prototype.Y=function(){return!0}; NP.prototype.T=function(p){var C=p.zp(),V=p.getDuration();return xo(this.J,function(N){if(N.T!=void 0)var H=Fnv(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.v(Ho,vNY);Ho.prototype.T=function(p){var C=new mjY;C.T=JT(p,jFE);C.C=JT(p,NY2);return C};g.v(Xl,Ko);Xl.prototype.T=function(p){return ONa(p)};g.v(dE,urL);g.v(iu,Ko);iu.prototype.T=function(p){return p.zp().g9()};g.v(hC,DA);hC.prototype.T=function(p){var C=g.W5(this.D,cs(nh().IN,"ovms"));return!p.Jx&&(p.hB!=0||C)};g.v(sM,dE);sM.prototype.C=function(){return new hC(this.T)}; sM.prototype.V=function(){return[new iu("viewable_impression",this.T),new Xl(this.T)]};g.v(aq,UH);aq.prototype.S=function(){var p=g.zV("ima.admob.getViewability"),C=cs(this.IN,"queryid");typeof p==="function"&&C&&p(C)}; aq.prototype.getName=function(){return"gsv"};g.v(EM,L2);EM.prototype.getName=function(){return"gsv"}; EM.prototype.Lj=function(){var p=Yo();nh();return p.C&&!1}; EM.prototype.V_=function(p,C,V){return new aq(this.T,C,V)};g.v(lu,UH);lu.prototype.S=function(){var p=this,C=g.zV("ima.bridge.getNativeViewability"),V=cs(this.IN,"queryid");typeof C==="function"&&V&&C(V,function(N){g.oa(N)&&p.D++;var H=N.opt_nativeViewVisibleBounds||{},X=N.opt_nativeViewHidden;p.T=ICe(N.opt_nativeViewBounds||{});var d=p.C.S;d.T=X?H0f.clone():ICe(H);p.timestamp=N.opt_nativeTime||-1;Yo().T=d.T;N=N.opt_nativeVolume;N!==void 0&&(d.volume=N)})}; lu.prototype.getName=function(){return"nis"};g.v(tC,L2);tC.prototype.getName=function(){return"nis"}; tC.prototype.Lj=function(){var p=Yo();nh();return p.C&&!1}; tC.prototype.V_=function(p,C,V){return new lu(this.T,C,V)};g.v(co,eh);g.h=co.prototype;g.h.Wv=function(){return this.C.J9!=null}; g.h.t$=function(){var p={};this.Wr&&(p.mraid=this.Wr);this.sY&&(p.mlc=1);p.mtop=this.C.NIn;this.D&&(p.mse=this.D);this.vr&&(p.msc=1);p.mcp=this.C.compatibility;return p}; g.h.D4=function(p){var C=g.US.apply(1,arguments);try{return this.C.J9[p].apply(this.C.J9,C)}catch(V){p2(538,V,.01,function(N){N.method=p})}}; g.h.initialize=function(){var p=this;if(this.isInitialized)return!this.Xf();this.isInitialized=!0;if(this.C.compatibility===2)return this.D="ng",this.wx("w"),!1;if(this.C.compatibility===1)return this.D="mm",this.wx("w"),!1;Yo().J=!0;this.V.document.readyState&&this.V.document.readyState=="complete"?ufX(this):XU(this.V,"load",function(){Yc().setTimeout(Gy(292,function(){return ufX(p)}),100)},292); return!0}; g.h.hC=function(){var p=Yo(),C=yEH(this,"getMaxSize");p.T=new EE(0,C.width,C.height,0)}; g.h.HL=function(){Yo().S=yEH(this,"getScreenSize")}; g.h.dispose=function(){U_9(this);eh.prototype.dispose.call(this)};var jbH=new function(p,C){this.key=p;this.defaultValue=C===void 0?!1:C;this.valueType="boolean"}("45378663");g.h=MP.prototype;g.h.VD=function(p){a1(p,!1);r$9(p)}; g.h.nG=function(){}; g.h.Y7=function(p,C,V,N){var H=this;p=new OH(FL,p,V?C:-1,7,this.Tc(),this.QY());p.Zu=N;Dqu(p.IN);tU(p.IN,"queryid",p.Zu);p.Yj("");ltV(p,function(){return H.IB.apply(H,g.K(g.US.apply(0,arguments)))},function(){return H.Od.apply(H,g.K(g.US.apply(0,arguments)))}); (N=kc(no).T)&&hZ1(p,N);this.V&&(p.qc(this.V),this.V=null);p.x9.nT&&kc(X21);return p}; g.h.hS=function(p){switch(p.PS()){case 0:if(p=kc(no).T)p=p.T,g.rY(p.W,this),p.Z&&this.tF()&&Y8H(p);mV();break;case 2:rx()}}; g.h.tx=function(){}; g.h.tF=function(){return!1}; g.h.Od=function(p,C){p.Jx=!0;switch(p.qR()){case 1:kiS(p,C);break;case 2:this.Qh(p)}}; g.h.qa=function(p){var C=p.D(p);C&&(C=C.volume,p.F$=ko(C)&&C>0);Its(p,0);return o1(p,"start",R9())}; g.h.Oo=function(p,C,V){Bp(QF,[p],!R9());return this.cP(p,C,V)}; g.h.cP=function(p,C,V){return o1(p,V,R9())}; g.h.oe=function(p){return qP(p,"firstquartile",1)}; g.h.jo=function(p){p.UY=!0;return qP(p,"midpoint",2)}; g.h.cU=function(p){return qP(p,"thirdquartile",3)}; g.h.Ju=function(p){var C=qP(p,"complete",4);yF(p);return C}; g.h.Qk=function(p){p.hB=3;return o1(p,"error",R9())}; g.h.pc=function(p,C,V){C=R9();if(p.Ui()&&!C){var N=p.zp(),H=C2();N.J=H}Bp(QF,[p],!C);p.Ui()&&(p.hB=1);return o1(p,V,C)}; g.h.Fo=function(p,C){C=this.Oo(p,C||{},"skip");yF(p);return C}; g.h.dF=function(p,C){a1(p,!0);return this.Oo(p,C||{},"fullscreen")}; g.h.wF=function(p,C){a1(p,!1);return this.Oo(p,C||{},"exitfullscreen")}; g.h.zm=function(p,C,V){C=p.zp();var N=C2();C.R$=Sr(C,N,p.hB!=1);Bp(QF,[p],!R9());p.hB==1&&(p.hB=2);return o1(p,V,R9())}; g.h.Xo=function(p){Bp(QF,[p],!R9());return p.C()}; g.h.Uz=function(p){Bp(QF,[p],!R9());this.WD(p);yF(p);return p.C()}; g.h.IB=function(){}; g.h.Qh=function(){}; g.h.WD=function(){}; g.h.PL=function(){}; g.h.aq=function(){}; g.h.QY=function(){this.T||(this.T=this.aq());return this.T==null?new uf:new sM(this.T)}; g.h.Tc=function(){return new Ho};g.v(Iq,Ko);Iq.prototype.T=function(p){return p.Bt()==4};g.v(bu,DA);bu.prototype.T=function(p){p=p.Bt();return p==3||p==4};g.v(AC,dE);AC.prototype.C=function(){return new bu(this.T)}; AC.prototype.V=function(){return[new Iq(this.T)]};g.v(oq,vNY);oq.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 mjY;C.T=JT(p,Vyy);C.C=JT(p,NY2);return C};Rpa.prototype.C=function(){return g.zV(this.T)};g.v(kI,MP);g.h=kI.prototype;g.h.nG=function(p,C){var V=this,N=kc(no);if(N.T!=null)switch(N.T.getName()){case "nis":var H=w2H(this,p,C);break;case "gsv":H=Ppj(this,p,C);break;case "exc":H=$_X(this,p)}H||(C.opt_overlayAdElement?H=void 0:C.opt_adElement&&(H=YVy(this,p,C.opt_adElement,C.opt_osdId)));H&&H.qR()==1&&(H.D==g.vX&&(H.D=function(X){return V.PL(X)}),epv(this,H,C)); return H}; g.h.PL=function(p){p.C=0;p.Vn=0;if(p.S=="h"||p.S=="n"){nh();p.l_&&(nh(),OM(this)!="h"&&OM(this));var C=g.zV("ima.common.getVideoMetadata");if(typeof C==="function")try{var V=C(p.Zu)}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.Zu)}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.Zu)}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.oa(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 Qu8)C[N]==null&&(p.J|=Qu8[N]);zpQ(C,"currentTime");zpQ(C,"duration");ko(V.volume)&&ko()&&(V.volume*=NaN);return V}; g.h.aq=function(){nh();OM(this)!="h"&&OM(this);var p=Lns(this);return p!=null?new Rpa(p):null}; g.h.Qh=function(p){!p.T&&p.Jx&&yr(this,p,"overlay_unmeasurable_impression")&&(p.T=!0)}; g.h.WD=function(p){p.bS&&(p.g9()?yr(this,p,"overlay_viewable_end_of_session_impression"):yr(this,p,"overlay_unviewable_impression"),p.bS=!1)}; g.h.IB=function(){}; g.h.Y7=function(p,C,V,N){if(VSe()){var H=cs(nh().IN,"mm"),X={};(H=(X[e1.hD]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",X[e1.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",X)[H])&&rEy(this,H);this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&p2(1044,Error())}p=MP.prototype.Y7.call(this,p,C,V,N);this.W&&(C=this.Y,p.W==null&&(p.W=new tE9),C.T[p.Zu]=p.W,p.W.W=X5G);return p}; g.h.VD=function(p){p&&p.qR()==1&&this.W&&delete this.Y.T[p.Zu];return MP.prototype.VD.call(this,p)}; g.h.QY=function(){this.T||(this.T=this.aq());return this.T==null?new uf:this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new AC(this.T):new sM(this.T)}; g.h.Tc=function(){return this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new oq:new Ho}; g.h.qc=function(p,C,V,N,H){C=new EE(V,C+N,V+H,C);(p=YC(z2,p))?p.qc(C):this.V=C}; var dc0=Bs(193,GiX,void 0,x_u);g.YH("Goog_AdSense_Lidar_sendVastEvent",dc0);var i0p=Gy(194,function(p,C){C=C===void 0?{}:C;p=Qsy(kc(kI),p,C);return Bhe(p)}); g.YH("Goog_AdSense_Lidar_getViewability",i0p);var hEr=Bs(195,function(){return r29()}); g.YH("Goog_AdSense_Lidar_getUrlSignalsArray",hEr);var sFE=Gy(196,function(){return JSON.stringify(r29())}); g.YH("Goog_AdSense_Lidar_getUrlSignalsList",sFE);var joQ=dsL(["//tpc.googlesyndication.com/sodar/",""]);g.v(Rq,g.z);Rq.prototype.Rq=function(){return this.wpc.f()}; Rq.prototype.Z5=function(p){this.wpc.c(p)}; Rq.prototype.FU=function(p){return this.wpc.m(Xss(p))}; Rq.prototype.qS=function(p){return this.wpc.mws(Xss(p))}; g.v(YI,g.z);YI.prototype.snapshot=function(p){return this.o6.s(Object.assign({},p.Ou&&{c:p.Ou},p.K0&&{s:p.K0},p.Jl!==void 0&&{p:p.Jl}))}; YI.prototype.Im=function(p){this.o6.e(p)}; YI.prototype.VM=function(){return this.o6.l()};var Hoy=(new Date).getTime();var huS="://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(" "),soV=/\bocr\b/;var EcX=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var feV=0,Uk1=0,Oh1=0;var e0=null,Po=!1,Sha=1,LX=Symbol("SIGNAL"),gE={version:0,Kh_:0,Vl:!1,TU:void 0,fl:void 0,Ra:void 0,e8:0,GS:void 0,uN:void 0,ow:!1,Ks:!1,kind:"unknown",mg$:function(){return!1}, vlV:function(){}, gT:function(){}, jck:function(){}};var av5=Symbol("UNSET"),E2y=Symbol("COMPUTING"),lv1=Symbol("ERRORED");Object.assign({},gE,{value:av5,Vl:!0,error:null,I2:ley,kind:"computed",mg$:function(p){return p.value===av5||p.value===E2y}, vlV:function(p){if(p.value===E2y)throw Error("Detected cycle in computations.");var C=p.value;p.value=E2y;p&&(p.e8=0);var V=t1a(p);try{var N=p.oQ_()}catch(H){N=lv1,p.error=H}finally{if(t1a(V),p&&p.TU!==void 0&&p.Ra!==void 0&&p.fl!==void 0){if($I(p))for(V=p.e8;Vp.e8;)p.TU.pop(),p.fl.pop(),p.Ra.pop()}}C!==av5&&C!==lv1&&N!==lv1&&p.I2(C,N)?p.value=C:(p.value=N,p.version++)}});var vcy=Object.assign({},gE,{I2:ley,value:void 0,kind:"signal"});Object.assign({},gE,{Ks:!0,ow:!1,gT:function(p){p.schedule!==null&&p.schedule(p.S_r)}, Whr:!1,Oeo:function(){}});Dkv(!0);Dkv(!1);var uLH=Object.assign({},{attributes:{},handleError:function(p){throw p;}},{MEY:!0, ZeY:!0,XP:!1,US$:!1,Bja:!1,XPk:!1});var yUV=Symbol("updater");g.v(Qr,g.im);Qr.prototype.dispose=function(){window.removeEventListener("offline",this.V);window.removeEventListener("online",this.V);this.lX.bf(this.W);delete Qr.instance}; Qr.prototype.xq=function(){return this.T}; Qr.prototype.f7=function(){var p=this;this.W=this.lX.YN(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.Bv(g.V2,g.z);g.h=g.V2.prototype;g.h.start=function(){this.stop();this.S=!1;var p=AUH(this),C=oca(this);p&&!C&&this.C.mozRequestAnimationFrame?(this.T=g.CJ(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(GAy(this.V),20)}; g.h.stop=function(){if(this.isActive()){var p=AUH(this),C=oca(this);p&&!C&&this.C.mozRequestAnimationFrame?HX(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.xU=function(){this.S&&this.T&&HX(this.T);this.T=null;this.Y.call(this.W,g.QL())}; g.h.CS=function(){this.stop();g.V2.XF.CS.call(this)};g.Bv(g.N8,g.z);g.h=g.N8.prototype;g.h.G2=0;g.h.CS=function(){g.N8.XF.CS.call(this);this.stop();delete this.T;delete this.C}; g.h.start=function(p){this.stop();this.G2=g.Ib(this.V,p!==void 0?p:this.Xg)}; g.h.stop=function(){this.isActive()&&g.xH.clearTimeout(this.G2);this.G2=0}; g.h.isActive=function(){return this.G2!=0}; g.h.Rg=function(){this.G2=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.Bv(g.M8,g.im);g.h=g.M8.prototype;g.h.isPlaying=function(){return this.T==1}; g.h.isPaused=function(){return this.T==-1}; g.h.Ul=function(){this.uX("begin")}; g.h.Tf=function(){this.uX("end")}; g.h.onFinish=function(){this.uX("finish")}; g.h.onStop=function(){this.uX("stop")}; g.h.uX=function(p){this.dispatchEvent(p)};var ty2=Fu(function(){var p=g.dW("DIV"),C=g.Vf?"-webkit":K2?"-moz":null,V="transition:opacity 1s linear;";C&&(V+=C+"-transition:opacity 1s linear;");C=dme({style:V});if(p.nodeType===1&&/^(script|style)$/i.test(p.tagName))throw Error("");p.innerHTML=$e(C);return g.Do(p.firstChild,"transition")!=""});g.Bv(Jk,g.M8);g.h=Jk.prototype;g.h.play=function(){if(this.isPlaying())return!1;this.Ul();this.uX("play");this.startTime=g.QL();this.T=1;if(ty2())return g.Sh(this.C,this.Y),this.V=g.Ib(this.Z7a,void 0,this),!0;this.hs(!1);return!1}; g.h.Z7a=function(){g.b4(this.C);Yhs(this.C,this.D);g.Sh(this.C,this.S);this.V=g.Ib((0,g.g1)(this.hs,this,!1),this.W*1E3)}; g.h.stop=function(){this.isPlaying()&&this.hs(!0)}; g.h.hs=function(p){g.Sh(this.C,"transition","");g.xH.clearTimeout(this.V);g.Sh(this.C,this.S);this.endTime=g.QL();this.T=0;if(p)this.onStop();else this.onFinish();this.Tf()}; g.h.CS=function(){this.stop();Jk.XF.CS.call(this)}; g.h.pause=function(){};var RuY={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 LgS=euH("getPropertyValue"),gcY=euH("setProperty");ml("Element","namespaceURI")||ml("Node","namespaceURI");var $kV={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var BTY,IxH,rU9,QoX,GyY;BTY=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]");IxH=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.cfF=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]");rU9=/^http:\/\/.*/;g.TYf=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");QoX=/\s+/;GyY=/[\d\u06f0-\u06f9]/;Kg.prototype.qB=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.v(DJ,g.EH);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.v(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.rI=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(nha){var p=/Windows NT ([0-9.]+)/;return(p=p.exec(g.f0()))?p[1]:"0"}return pA?(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]:""):Pyu||wm1||$HY?(p=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(p=p.exec(g.f0()))?p[1].replace(/_/g,"."):""):""})();var C4S=function(){if(g.k$)return y2(/Firefox\/([0-9.]+)/);if(g.vF||g.G4||g.Fs)return hEy;if(g.An){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.Bv(g.IL,g.z);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.LO(p)}return!1}; g.h.LO=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.LO(V)}}return X!=0}return!1}; g.h.clear=function(p){if(p){var C=this.C[p];C&&(C.forEach(this.LO,this),delete this.C[p])}else this.T.length=0,this.C={}}; g.h.CS=function(){g.IL.XF.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.Y7(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.Bv(Ak,g.bI);Ak.prototype.set=function(p,C){Ak.XF.set.call(this,p,N9u(C))}; Ak.prototype.C=function(p){p=Ak.XF.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.Bv(oL,Ak);oL.prototype.set=function(p,C,V){if(C=N9u(C)){if(V){if(V=V.length)return g.EU;var H=V.key(C++);if(p)return g.lf(H);H=V.getItem(H);if(typeof H!=="string")throw"Storage mechanism: Invalid value was encountered";return g.lf(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.Bv(RL,YF);g.Bv(dKV,YF);g.Bv(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.qB=function(p){var C=this.C[Symbol.iterator](),V=this,N=new g.EH;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.lf(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.P6=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.mm=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,FrE=[],MW=0;MW<256;MW++){TU=MW;for(var S1E=0;S1E<8;S1E++)TU=TU&1?3988292384^TU>>>1:TU>>>1;FrE[MW]=TU}v6=function(p,C,V,N){V=N+V;for(p^=-1;N>>8^FrE[(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],yxe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],mKX=[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 UK9,foQ,O2Y,Z2S=!1;var ua;ua=[new DD(0,0,0,0,function(p,C){var V=65535;for(V>p.P_-5&&(V=p.P_-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.nM+V;if(p.IH===0||p.IH>=N)if(p.lx=p.IH-N,p.IH=N,TH(p,!1),p.Yt.Xt===0)return 1;if(p.IH-p.nM>=p.xm-262&&(TH(p,!1),p.Yt.Xt===0))return 1}p.P6=0;if(C===4)return TH(p,!0),p.Yt.Xt===0?3:4;p.IH>p.nM&&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 uj9={};uj9=function(){this.input=null;this.UX=this.SH=this.Y1=0;this.output=null;this.Ae=this.Xt=this.Nz=0;this.msg="";this.state=null;this.sB=2;this.r7=0};var qE9=Object.prototype.toString; ZD.prototype.push=function(p,C){var V=this.Yt,N=this.options.chunkSize;if(this.ended)return!1;var H=C===~~C?C:C===!0?4:0;typeof p==="string"?V.input=i2e(p):qE9.call(p)==="[object ArrayBuffer]"?V.input=new Uint8Array(p):V.input=p;V.Y1=0;V.SH=V.input.length;do{V.Xt===0&&(V.output=new g0.cA(N),V.Nz=0,V.Xt=N);p=DKL(V,H);if(p!==1&&p!==0)return this.Tf(p),this.ended=!0,!1;if(V.Xt===0||V.SH===0&&(H===4||H===2))if(this.options.XC==="string"){var X=g0.Uq(V.output,V.Nz);C=X;X=X.length;if(X<65537&&(C.subarray&& v2F||!C.subarray))C=String.fromCharCode.apply(null,g0.Uq(C,X));else{for(var d="",a=0;a0||V.Xt===0)&&p!==1);if(H===4)return(V=this.Yt)&&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.Tf(p),this.ended=!0,p===0;H===2&&(this.Tf(0),V.Xt=0);return!0}; ZD.prototype.Tf=function(p){p===0&&(this.result=this.options.XC==="string"?this.chunks.join(""):g0.fz(this.chunks));this.chunks=[];this.err=p;this.msg=this.Yt.msg};var fd="@@redux/INIT"+Ug(),xKj="@@redux/REPLACE"+Ug();var YEL=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Krp=[0,Ds8,-3,iS];g.v(qv,ny);qv.prototype.getType=function(){return TA(this,11)};var ZkV=function(){var p=[0,ZYF,ueF,NW,Ds8,NW,-1,iS,Ds8,iS,-1,ZYF,iS,ueF,HD,Krp,NW,-1,iS];return function(C,V){if(VH.length){var N=VH.pop();O69(N,V);N.T.init(C,void 0,void 0,V);C=N}else C=new It(C,V);try{var H=new qv,X=H.aH;EQ(p)(X,C);var d=H}finally{C.free()}return d}}();var eUa=-896741780;var pWX=new g.I6("adInfoDialogEndpoint");var mMQ=new g.I6("adPingingEndpoint");var z3Y=new g.I6("crossDeviceProgressCommand");var ad=new g.I6("actionCompanionAdRenderer");var lv=new g.I6("adActionInterstitialRenderer");var Dcv=new g.I6("adDurationRemainingRenderer");var AM=new g.I6("adHoverTextButtonRenderer");var B8s=new g.I6("adInfoDialogRenderer");var Td=new g.I6("adMessageRenderer");var od=new g.I6("adPreviewRenderer");var ln=new g.I6("adsEngagementPanelRenderer");var Eiv=new g.I6("dismissablePanelTextPortraitImageRenderer");var sDQ=new g.I6("adsEngagementPanelSectionListViewModel");var uGp=new g.I6("flyoutCtaRenderer");var ET=new g.I6("imageCompanionAdRenderer");var ar=new g.I6("instreamAdPlayerOverlayRenderer");var rSe=new g.I6("instreamSurveyAdBackgroundImageRenderer");var bn=new g.I6("instreamSurveyAdPlayerOverlayRenderer");var Dd=new g.I6("instreamSurveyAdRenderer"),Id=new g.I6("instreamSurveyAdSingleSelectQuestionRenderer"),qB=new g.I6("instreamSurveyAdMultiSelectQuestionRenderer"),JJ=new g.I6("instreamSurveyAdAnswerRenderer"),Z01=new g.I6("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var SB=new g.I6("instreamVideoAdRenderer");var Ucf=new g.I6("textOverlayAdContentRenderer"),fvf=new g.I6("enhancedTextOverlayAdContentRenderer"),O0f=new g.I6("imageOverlayAdContentRenderer");var EN=new g.I6("playerOverlayLayoutRenderer");var tn=new g.I6("videoInterstitialButtonedCenteredLayoutRenderer");var Mis=new g.I6("aboveFeedAdLayoutRenderer");var J0u=new g.I6("belowPlayerAdLayoutRenderer");var T3e=new g.I6("inPlayerAdLayoutRenderer");var UT=new g.I6("playerBytesAdLayoutRenderer");var y9=new g.I6("playerUnderlayAdLayoutRenderer");var Kj=new g.I6("adIntroRenderer");var vP=new g.I6("playerBytesSequentialLayoutRenderer");var QDy=new g.I6("slidingTextPlayerOverlayRenderer");var un=new g.I6("surveyTextInterstitialRenderer");var yf0=new g.I6("simpleAdBadgeRenderer");var cS=new g.I6("skipAdRenderer"),q1y=new g.I6("skipButtonRenderer");var z$=new g.I6("adSlotRenderer");var fj=new g.I6("squeezebackPlayerSidePanelRenderer");var IvG=new g.I6("timedPieCountdownRenderer");var Jvv=new g.I6("adAvatarViewModel");var LD=new g.I6("adBadgeViewModel");var gv=new g.I6("adButtonViewModel");var b0P=new g.I6("adDetailsLineViewModel");var Afr=new g.I6("adDisclosureBannerViewModel");var o28=new g.I6("adPodIndexViewModel");var kpc=new g.I6("imageBackgroundViewModel");var xcp=new g.I6("adGridCardCollectionViewModel");var Y1y=new g.I6("adGridCardTextViewModel");var zEp=new g.I6("adPreviewViewModel");var REf=new g.I6("playerAdAvatarLockupCardButtonedViewModel");var n21=new g.I6("skipAdButtonViewModel");var eEc=new g.I6("skipAdViewModel");var PPv=new g.I6("timedPieCountdownViewModel");var w5r=new g.I6("visitAdvertiserLinkViewModel");var tM=new g.I6("bannerImageLayoutViewModel");var cP=new g.I6("topBannerImageTextIconButtonedLayoutViewModel");var T$=new g.I6("adsEngagementPanelLayoutViewModel");var OT=new g.I6("displayUnderlayTextGridCardsLayoutViewModel");g.Kf=new g.I6("browseEndpoint");var $cP=new g.I6("confirmDialogEndpoint");var F1S=new g.I6("rawColdConfigGroup");var vDj=new g.I6("rawHotConfigGroup");g.u$=new g.I6("commandExecutorCommand");g.v($KH,ny);var p0V={Yin:0,ozn:1,kRx:32,xRx:61,uAS:67,r8S:86,Tj$:42,a$o:60,j9$:62,A8a:73,nQY:76,VE_:88,Sxo:90,mRV:99,Zka:98,EQn:100,Cyr:102,vQ$:41,zTn:69,ieo:70,f$V:71,tIS:2,UBa:27,ANDROID:3,bxx:54,nN_:14,EN_:91,C0_:55,Ag$:24,x3a:20,sxV:18,rga:21,m3Y:30,ixV:29,fu_:28,gzn:101,W$n:34,ugn:36,Iu$:38,IOS:5,Pf_:15,O$o:92,R4o:40,D1S:25,Bh$:17,tOr:19,U1o:64,K8Y:66,lr_:26,Qze:22,wB_:33,o9n:68,d1_:35,g9k:53,JBS:37,YvS:39,zFk:7,ikr:57,fm_:43,Lre:59,Wr$:93,zye:74,NP_:75,Gin:85,hFn:65,Hk$:80,ppx:8,mXa:10,RFn:58,PXY:63,eFa:72, vNS:23,NjS:11,GR$:13,F$_:12,vz_:16,y8Y:56,I$Y:31,Yho:77,Thk:84,beV:87,ar_:89,kSn:94,zOY:95};g.v(ba,ny);ba.prototype.K_=function(){return c4(this,3)}; ba.prototype.dU=function(){return c4(this,5)}; ba.prototype.i6=function(p){return JP(this,5,p)};g.v(Ap,ny);g.v(LGj,ny);g.v(o6,ny);g.h=o6.prototype;g.h.getDeviceId=function(){return c4(this,6)}; g.h.IC=function(p){var C=L_(this,9,aO,3,void 0,!0);ek(C,p);return C[p]}; g.h.getPlayerType=function(){return TA(this,36)}; g.h.setHomeGroupInfo=function(p){return iB(this,LGj,81,p)}; g.h.clearLocationPlayabilityToken=function(){return z9(this,89)};g.v(kQ,ny);kQ.prototype.getValue=function(){return c4(this,VG(this,Jws)===2?2:-1)}; var Jws=[2,3,4,5,6];g.v(xQ,ny);xQ.prototype.setTrackingParams=function(p){return z9(this,1,q1a(p,!1))};g.v(YQ,ny);g.v(zH,ny);zH.prototype.IC=function(p){var C=L_(this,5,EL,3,void 0,!0);ek(C,p);return C[p]};g.v(R6,ny);R6.prototype.getToken=function(){return lB(this,2)}; R6.prototype.setToken=function(p){return JP(this,2,p)};g.v(P6,ny);P6.prototype.setSafetyMode=function(p){return v4(this,5,p)};g.v(wf,ny);wf.prototype.c9=function(p){return iB(this,o6,1,p)};var xr=new g.I6("thumbnailLandscapePortraitRenderer");g.Lrv=new g.I6("changeEngagementPanelVisibilityAction");var DpV=new g.I6("continuationCommand");g.g28=new g.I6("openPopupAction");g.mm=new g.I6("webCommandMetadata");var n1v=new g.I6("metadataBadgeRenderer");var KWa=new g.I6("signalServiceEndpoint");var w7=new g.I6("innertubeCommand");var a1a=new g.I6("loggingDirectives");var IAe={pz$:"EMBEDDED_PLAYER_MODE_UNKNOWN",hYr:"EMBEDDED_PLAYER_MODE_DEFAULT",Hq$:"EMBEDDED_PLAYER_MODE_PFP",eYo:"EMBEDDED_PLAYER_MODE_PFL"};var ayv=new g.I6("channelThumbnailEndpoint");var s2S=new g.I6("embeddedPlayerErrorMessageRenderer");var X1s=new g.I6("embeddedPlayerOverlayVideoDetailsRenderer"),EgV=new g.I6("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),lyH=new g.I6("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var YiL=new g.I6("embedsInfoPanelRenderer");var WrG=new g.I6("feedbackEndpoint");var QF1=new g.I6("callToActionButtonViewModel");var rfP=new g.I6("interactionLoggingCommandMetadata");var fJa={M1a:"WEB_DISPLAY_MODE_UNKNOWN",Xp$:"WEB_DISPLAY_MODE_BROWSER",qi_:"WEB_DISPLAY_MODE_MINIMAL_UI",c9n:"WEB_DISPLAY_MODE_STANDALONE",Frn:"WEB_DISPLAY_MODE_FULLSCREEN"};g.v($Q,ny);$Q.prototype.getPlayerType=function(){return TA(this,7)}; $Q.prototype.ZQ=function(){return c4(this,19)}; $Q.prototype.setVideoId=function(p){return JP(this,19,p)};g.v(Ld,ny);g.v(gf,ny);g.v(W6,ny); var BYc=[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 Gpp=new g.I6("loggingContext");g.v(QJ,ny);g.v(rf,ny);rf.prototype.ZQ=function(){return lB(this,VG(this,JG)===1?1:-1)}; rf.prototype.setVideoId=function(p){return Cy(this,1,JG,mK(p))}; rf.prototype.getPlaylistId=function(){return lB(this,VG(this,JG)===2?2:-1)}; var JG=[1,2];g.v(goe,ny);var H_=new g.I6("changeKeyedMarkersVisibilityCommand");var py0=new g.I6("changeMarkersVisibilityCommand");var Pty=new g.I6("loadMarkersCommand");var Crp=new g.I6("suggestedActionDataViewModel");var AoY=new g.I6("timelyActionViewModel");var bvL=new g.I6("timelyActionsOverlayViewModel");var xWs=new g.I6("productListItemRenderer");var jf1=new g.I6("shoppingOverlayRenderer");var dia=new g.I6("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Vk1=new g.I6("adFeedbackEndpoint");var NoF=new g.I6("menuEndpoint");var BvY=new g.I6("phoneDialerEndpoint");var QQQ=new g.I6("sendSmsEndpoint");var HwV=new g.I6("copyTextEndpoint");var H60=new g.I6("shareEndpoint"),Xyy=new g.I6("shareEntityEndpoint"),dLf=new g.I6("shareEntityServiceEndpoint"),i6G=new g.I6("webPlayerShareEntityServiceEndpoint");g.Pa=new g.I6("urlEndpoint");g.VB=new g.I6("watchEndpoint");var h6P=new g.I6("watchPlaylistEndpoint");g.sf2=new g.I6("offlineOrchestrationActionCommand");var Ddy=new g.I6("compositeVideoOverlayRenderer");var aVE=new g.I6("miniplayerRenderer");var Voy=new g.I6("paidContentOverlayRenderer");var Zzs=new g.I6("playerMutedAutoplayOverlayRenderer"),UOQ=new g.I6("playerMutedAutoplayEndScreenRenderer");var nxs=new g.I6("unserializedPlayerResponse"),fFs=new g.I6("unserializedPlayerResponse");var ET8=new g.I6("playlistEditEndpoint");var vD;g.kr=new g.I6("buttonRenderer");vD=new g.I6("toggleButtonRenderer");var hxS=new g.I6("counterfactualRenderer");var lV1=new g.I6("resolveUrlCommandMetadata");var tkv=new g.I6("modifyChannelNotificationPreferenceEndpoint");var J3Q=new g.I6("pingingEndpoint");var cBc=new g.I6("unsubscribeEndpoint");g.D6=new g.I6("subscribeButtonRenderer");var Tof=new g.I6("subscribeEndpoint");var u6y=new g.I6("buttonViewModel");var aa9=new g.I6("qrCodeRenderer");var jYj={s8V:"LIVING_ROOM_APP_MODE_UNSPECIFIED",CTY:"LIVING_ROOM_APP_MODE_MAIN",nb_:"LIVING_ROOM_APP_MODE_KIDS",Ada:"LIVING_ROOM_APP_MODE_MUSIC",xB$:"LIVING_ROOM_APP_MODE_UNPLUGGED",bMV:"LIVING_ROOM_APP_MODE_GAMING"};var o1L=new g.I6("autoplaySwitchButtonRenderer");var v7,u8V,WHy,k_Q;v7=new g.I6("decoratedPlayerBarRenderer");u8V=new g.I6("chapteredPlayerBarRenderer");WHy=new g.I6("multiMarkersPlayerBarRenderer");k_Q=new g.I6("chapterRenderer");g.OBX=new g.I6("markerRenderer");var MkE=new g.I6("decoratedPlayheadRenderer");var z5H=new g.I6("desktopOverlayConfigRenderer");var lay=new g.I6("engagementPanelSectionListRenderer");var xOQ=new g.I6("gatedActionsOverlayViewModel");var bB9=new g.I6("heatMarkerRenderer");var I$S=new g.I6("heatmapRenderer");var e5u=new g.I6("watchToWatchTransitionRenderer");var iwy=new g.I6("playlistPanelRenderer");var JB0=new g.I6("productUpsellSuggestedActionViewModel");var mL2=new g.I6("suggestedActionTimeRangeTrigger"),vT5=new g.I6("suggestedActionsRenderer"),FqE=new g.I6("suggestedActionRenderer");var AY9=new g.I6("timedMarkerDecorationRenderer");var EuY=new g.I6("cipher");var eeu=new g.I6("playerVars");var OzQ=new g.I6("playerVars");var Fy=g.xH.window,Sv5,KqY,B6=(Fy==null?void 0:(Sv5=Fy.yt)==null?void 0:Sv5.config_)||(Fy==null?void 0:(KqY=Fy.ytcfg)==null?void 0:KqY.data_)||{};g.YH("yt.config_",B6);var je=[];var Nx9=/^[\w.]*$/,ppy={q:!0,search_query:!0},Guv=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 Xpe="XMLHttpRequest"in g.xH?function(){return new XMLHttpRequest}:null;var DLp="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(DLp);var s11={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"},aAS="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(DLp)),mZV=!1,ioX=EC9,TxY=yg;g.v(b1,Tp);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 yTH=/^([0-9\.]+):([0-9\.]+)$/;g.v(M5,Tp);M5.prototype.name="BiscottiError";g.v(TW,Tp);TW.prototype.name="BiscottiMissingError";var ATv={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Jm=null;var IBs=dsL(["data-"]),PfH={};var uvE=0,m_=g.Vf?"webkit":K2?"moz":g.vF?"ms":g.Fs?"o":"",Z68=g.zV("ytDomDomGetNextId")||function(){return++uvE}; g.YH("ytDomDomGetNextId",Z68);var gCQ={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 rTL=g.xH.ytEventsEventsCounter||{count:0};g.YH("ytEventsEventsCounter",rTL);var CuS=Fu(function(){var p=!1;try{var C=Object.defineProperty({},"passive",{get:function(){p=!0}}); window.addEventListener("test",null,C)}catch(V){}return p}),Bxa=Fu(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.Bv(q5,g.z);q5.prototype.Z=function(p){p.T===void 0&&WOX(p);var C=p.T;p.C===void 0&&WOX(p);this.T=new g.vG(C,p.C)}; q5.prototype.Pf=function(){return this.T||new g.vG}; 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.v(I_,g.z);I_.prototype.U=function(p,C,V,N,H){V=g.NU((0,g.g1)(V,N||this.Wc));V={target:p,name:C,callback:V};var X;H&&CuS()&&(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=Y.Ck)||D.T.version>=W||D.T.objectStoreNames.contains(A)||f.push(A)}E=f;if(E.length===0){S.EY(5);break}l=Object.keys(V.options.MS); t=a.objectStoreNames();if(V.WV.options.version+1)throw T.close(),V.V=!1,eFa(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 eFa(this);if(this.T)return this.T;var N,H={blocking:function(X){X.close()}, closed:C,wRn:C,upgrade:this.options.upgrade};return this.T=N=p()};var Ql=new gq("YtIdbMeta",{MS:{databases:{Ck:1}},upgrade:function(p,C){C(1)&&g.A1(p,"databases",{keyPath:"actualName"})}});var C5,p5=new function(){}(new function(){});new g.u3;g.v(Ne,gq);Ne.prototype.C=function(p,C,V){V=V===void 0?{}:V;return(this.options.shared?BEV:rCy)(p,C,Object.assign({},V))}; Ne.prototype.delete=function(p){p=p===void 0?{}:p;return(this.options.shared?jLL:GoX)(this.name,p)};var oT8={},N0y=g.HC("ytGcfConfig",{MS:(oT8.coldConfigStore={Ck:1},oT8.hotConfigStore={Ck:1},oT8),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.v(dy,g.z);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.z.prototype.CS.call(this)};K5.prototype.i6=function(p){this.hotHashData=p;g.YH("yt.gcf.config.hotHashData",this.hotHashData||null)};var kty=typeof TextEncoder!=="undefined"?new TextEncoder:null,LlH=kty?function(p){return kty.encode(p)}:function(p){p=g.mr(p); for(var C=new Uint8Array(p.length),V=0;V=C?!1:!0}; g.h.jG=function(){var p=this;if(!L5(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Yq.Oe("QUEUED",this.RI).then(function(C){C&&!p.J3(C,p.uR)?p.lX.YN(function(){return g.I(function(V){if(V.C==1)return C.id===void 0?V.EY(2):g.y(V,p.Yq.cN(C.id,p.RI),2);p.jG();g.JQ(V)})}):p.Id.xq()&&p.Bx()})};var Qt;var DUQ={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 Yv0={},aDa=g.HC("ServiceWorkerLogsDatabase",{MS:(Yv0.SWHealthLog={Ck:1},Yv0),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={},M7Y=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.v(NM,g.im);g.h=NM.prototype;g.h.xq=function(){return this.T.xq()}; g.h.Pn=function(p){this.T.T=p}; g.h.ue=function(){var p=window.navigator.onLine;return p===void 0?!0:p}; g.h.jj=function(){this.C=!0}; g.h.listen=function(p,C){return this.T.listen(p,C)}; g.h.TX=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.TX;NM.prototype.listen=NM.prototype.listen;NM.prototype.enableErrorFlushing=NM.prototype.jj;NM.prototype.getWindowStatus=NM.prototype.ue;NM.prototype.networkStatusHint=NM.prototype.Pn;NM.prototype.isNetworkAvailable=NM.prototype.xq;NM.getInstance=vQu;g.v(g.Hl,g.im);g.Hl.prototype.xq=function(){var p=g.zV("yt.networkStatusManager.instance.isNetworkAvailable");return p?p.bind(this.C)():!0}; g.Hl.prototype.Pn=function(p){var C=g.zV("yt.networkStatusManager.instance.networkStatusHint").bind(this.C);C&&C(p)}; g.Hl.prototype.TX=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.Pn(((X=window.navigator)==null?void 0:X.onLine)||!0);H(C.xq())})):V?N.return(V(p)):N.return(!0)})};var X3;g.v(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 uCy=g.xH.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.YH("ytNetworklessLoggingInitializationOptions",uCy);g.sI.prototype.isReady=function(){!this.config_&&Fl9()&&(this.config_=g.uR());return!!this.config_};var z61,lV,cl;z61=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.LO;g.IL.prototype.publish=g.IL.prototype.publish;g.IL.prototype.clear=g.IL.prototype.clear;g.YH("ytPubsubPubsubInstance",z61);g.YH("ytPubsubPubsubTopicToKeys",cl);g.YH("ytPubsubPubsubIsSynchronous",g.t3); g.YH("ytPubsubPubsubSubscribedKeys",lV);var qgS={};g.v(uV,g.z);uV.prototype.append=function(p){if(!this.C)throw Error("This does not support the append operation");p=p.AQ();this.AQ().appendChild(p)}; g.v(Z9,uV);Z9.prototype.AQ=function(){return this.T};g.v(ApL,g.z);var UI=Date.now().toString();var Ih={};var xJ=Symbol("injectionDeps");A3.prototype.toString=function(){return"InjectionToken("+this.name+")"}; YgL.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,$vj=g.Zr("web_enable_lifecycle_monitoring");eiY.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.eG||this.scheduler.bf(C.jobId),C.eG=!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&&Ria(this.state);var N=this.transitions.find(function(X){return Array.isArray(X.from)?X.from.find(function(d){return d===V.state&&X.XC===p}):X.from===V.state&&X.XC===p}); if(N){this.C&&(Pa9(this.C),this.C=void 0);L2X(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(w6Y(this,H),C)}else throw Error("no transition specified from "+this.state+" to "+p);}; g.h.w1x=function(p){var C=g.US.apply(1,arguments);g.HW();for(var V=g.F(p),N=V.next(),H={};!N.done;H={h_:void 0},N=V.next())H.h_=N.value,t0y(function(X){return function(){Wl(X.h_.name);r$(function(){return X.h_.callback.apply(X.h_,g.K(C))}); Qq(X.h_.name)}}(H))}; g.h.QIx=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.k8=N.value;H.D8=void 0;X=function(a){return function(){Wl(a.k8.name);var E=r$(function(){return a.k8.callback.apply(a.k8,g.K(C))}); it(E)?a.D8=g.Zr("web_lifecycle_error_handling_killswitch")?E.then(function(){Qq(a.k8.name)}):E.then(function(){Qq(a.k8.name)},function(l){nQS(l); Qq(a.k8.name)}):Qq(a.k8.name)}}(H); t0y(X);return H.D8?g.y(d,H.D8,3):d.EY(3)}H={k8:void 0,D8:void 0};N=V.next();return d.EY(2)})}; g.h.qy=function(p){var C=g.US.apply(1,arguments),V=this,N=p.map(function(H){return{zl: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 eiY(N))}; g.Xe.Object.defineProperties(L1.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var G7;g.v(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.bf(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.o1(C)}}; g.h.VU=function(p){return p}; g.h.r_=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=oQH(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.sT=function(p){if(this.sY){var C=this.sY,V=p.changedTouches;V&&C.D&&C.C==1&&!C.S&&!C.W&&!C.Y&&oQH(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.o1=function(p){this.layoutId?this.KS.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.Mo);for(var p=g.F(this.Vn),C=p.next();!C.done;C=p.next())this.rY(C.value);g.va.prototype.CS.call(this)};g.v(zB,Fi); zB.prototype.init=function(p,C,V){Fi.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.Kq(C.text),g.FG(p)||(this.element.setAttribute("aria-label",p),this.V=new g.va({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.FG(C.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",C.accessibilityData.accessibilityData.label);C.icon!=null&&(C=Y0(C.icon,this.S),C!=null&&(this.C=new g.va({L:"span",B:"ytp-ad-button-icon",j:[C]}),g.R(this,this.C)),this.W?aN(this.element,this.C.element,0):this.C.u_(this.element))}}; zB.prototype.clear=function(){this.hide()}; zB.prototype.onClick=function(p){Fi.prototype.onClick.call(this,p);p=g.F(x51(this));for(var C=p.next();!C.done;C=p.next())C=C.value,this.layoutId?this.KS.executeCommand(C,this.layoutId):g.nm(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(RS,g.z);RS.prototype.CS=function(){this.C&&g.fK(this.C);this.T.clear();nq=null;g.z.prototype.CS.call(this)}; RS.prototype.register=function(p,C){C&&this.T.set(p,C)}; var nq=null;g.v(we,Fi); we.prototype.init=function(p,C,V){Fi.prototype.init.call(this,p,C,V);p=C.hoverText||null;C=C.button&&g.n(C.button,g.kr)||null;C==null?g.nm(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new zB(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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.Kq(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.va({L:"div",B:"ytp-ad-hover-text-container"}),this.W&&(C=new g.va({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=ep(p),aN(this.C.element,C,0)), this.show())}; we.prototype.hide=function(){this.button&&this.button.hide();this.C&&this.C.hide();Fi.prototype.hide.call(this)}; we.prototype.show=function(){this.button&&this.button.show();Fi.prototype.show.call(this)};g.v(Lq,Fi); Lq.prototype.init=function(p,C,V){Fi.prototype.init.call(this,p,C,V);V=(p=C.thumbnail)&&$0(p)||"";g.FG(V)?Math.random()<.01&&g.eG(Error("Found AdImage without valid image URL")):(this.T?g.Sh(this.element,"backgroundImage","url("+V+")"):ju(this.element,{src:V}),ju(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())}; Lq.prototype.clear=function(){this.hide()};g.v(ge,Fi);g.h=ge.prototype;g.h.hide=function(){Fi.prototype.hide.call(this);this.V&&this.V.focus()}; g.h.show=function(){this.V=document.activeElement;Fi.prototype.show.call(this);this.S.focus()}; g.h.init=function(p,C,V){Fi.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.")):nlj(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.IM=function(){this.hide()}; g.h.Hq=function(){var p=this.C.cancelEndpoint;p&&(this.layoutId?this.KS.executeCommand(p,this.layoutId):g.nm(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.h.rD=function(){var p=this.C.confirmNavigationEndpoint||this.C.confirmEndpoint;p&&(this.layoutId?this.KS.executeCommand(p,this.layoutId):g.nm(Error("Missing layoutId for confirm dialog.")));this.hide()};g.v(Wa,Fi);g.h=Wa.prototype; g.h.init=function(p,C,V){Fi.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.Kq(C.defaultText),g.FG(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.Ax(this.Sa,!1);C.defaultTooltip&&(p.tooltipText=C.defaultTooltip,this.T.hasAttribute("aria-label")||this.C.setAttribute("aria-label",C.defaultTooltip));C.defaultIcon?(V=Y0(C.defaultIcon),this.updateValue("untoggledIconTemplateSpec",V),C.toggledIcon?(this.b_= !0,V=Y0(C.toggledIcon),this.updateValue("toggledIconTemplateSpec",V)):(g.Ax(this.Z,!0),g.Ax(this.W,!1)),g.Ax(this.T,!1)):g.Ax(this.C,!1);g.oa(p)||this.update(p);C.isToggled&&(g.Ed(this.S,"ytp-ad-toggle-button-toggled"),this.toggleButton(C.isToggled));QD(this);this.U(this.element,"change",this.YP);this.show()}}; g.h.onClick=function(p){this.Vn.length>0&&(this.toggleButton(!this.isToggled()),this.YP());Fi.prototype.onClick.call(this,p)}; g.h.YP=function(){g.Tz(this.S,"ytp-ad-toggle-button-toggled",this.isToggled());for(var p=g.F(e8S(this,this.isToggled())),C=p.next();!C.done;C=p.next())C=C.value,this.layoutId?this.KS.executeCommand(C,this.layoutId):g.nm(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);QD(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;QD(this)}; g.h.isToggled=function(){return this.T.checked};g.v(re,I_);re.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 POY&&this.S(C)}};g.v(Ba,Fi);g.h=Ba.prototype;g.h.init=function(p,C,V){Fi.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.")),gle(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();Fi.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;Fi.prototype.show.call(this);this.W.focus()}; g.h.xY=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.h.Rb_=function(){this.hide()}; GB.prototype.AQ=function(){return this.T.element}; GB.prototype.getCommand=function(){return this.C}; GB.prototype.isChecked=function(){return this.V.checked};g.v(pt,ge);pt.prototype.IM=function(p){ge.prototype.IM.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; pt.prototype.Hq=function(p){ge.prototype.Hq.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; pt.prototype.rD=function(p){ge.prototype.rD.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.v(Ct,Fi);g.h=Ct.prototype; g.h.init=function(p,C,V){Fi.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.kr)||null)this.T=new zB(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,["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.Kq(C.title),this.updateValue("title",p));if(C.adReasons)for(p=C.adReasons,V=0;V=this.vr?(this.Sa.hide(),this.Y_=!0,this.publish("i")):this.V&&this.V.isTemplated()&&(p=Math.max(0,Math.ceil((this.vr-p)/1E3)),p!=this.UY&&(NN(this.V,{TIME_REMAINING:String(p)}),this.UY=p)))}};g.v(l$,HE);g.h=l$.prototype; g.h.init=function(p,C,V){HE.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.kr))&&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.FG(g.Xn(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.q$()||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.BL.bind(this));this.Sa=C.startMs||0;XK(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){HE.prototype.onClick.call(this,p);this.api.pauseVideo();!g.lK(this.C.element,p.target)&&this.b_&&(this.layoutId?this.KS.executeCommand(this.b_,this.layoutId):g.nm(Error("Missing layoutId for flyout cta.")))}; g.h.HI=function(){if(this.T){var p=this.T.getProgressState();(p&&p.current||this.vr)&&1E3*p.current>=this.Sa&&(dk(this),g.tk(this.element,"ytp-flyout-cta-inactive"),this.C.element.removeAttribute("tabIndex"))}}; g.h.D_=function(){this.clear()}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.BL.bind(this))}; g.h.show=function(){this.C&&this.C.show();HE.prototype.show.call(this)}; g.h.hide=function(){this.C&&this.C.hide();HE.prototype.hide.call(this)}; g.h.BL=function(p){p=="hidden"?this.show():this.hide()};g.v(t7,Fi);g.h=t7.prototype; g.h.init=function(p,C,V){Fi.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.tC),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.KS.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();Fi.prototype.hide.call(this)}; g.h.show=function(){this.V.show();this.C.show();Fi.prototype.show.call(this)}; g.h.tC=function(){xkY(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.tC();Fi.prototype.onClick.call(this,p)};g.v(cE,g.z);g.h=cE.prototype;g.h.CS=function(){this.reset();g.z.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.KI,this);this.S.U(this.C,"mouseout",this.U6,this);this.a$&&(this.S.U(this.C,"focusin",this.KI,this),this.S.U(this.C,"focusout",this.U6,this));this.T?this.T.start():(this.Y=this.V=!0,g.Sh(this.C,{opacity:this.Z}))}; g.h.KI=function(){this.V&&(this.V=!1,this.D.play());this.W.stop();this.T&&this.T.stop()}; g.h.U6=function(){this.Y?this.W.start():this.T&&this.T.start()}; g.h.au=function(){this.V||(this.V=!0,this.J.play(),this.Y=!0)};var XWL=[new T6("b.f_",!1,0),new T6("j.s_",!1,2),new T6("r.s_",!1,4),new T6("e.h_",!1,6),new T6("i.s_",!0,8),new T6("s.t_",!1,10),new T6("p.h_",!1,12),new T6("s.i_",!1,14),new T6("f.i_",!1,16),new T6("a.b_",!1,18),new T6("a.o_",!1),new T6("g.o_",!1,22),new T6("p.i_",!1,24),new T6("p.m_",!1),new T6("i.k_",!0,28),new T6("n.k_",!0,20),new T6("i.f_",!1),new T6("a.s_",!0),new T6("m.c_",!1),new T6("n.h_",!1,26),new T6("o.p_",!1)].reduce(function(p,C){p[C.C]=C;return p},{});g.v(D7,HE);g.h=D7.prototype; g.h.init=function(p,C,V){HE.prototype.init.call(this,p,C,V);this.b_=C;(this.Sa=i3v(this))&&g.eG(Error("hasAdControlInClickCommands_ is true."));if(!C||g.oa(C))g.nm(Error("SkipButtonRenderer was not specified or empty."));else if(!C.message||g.oa(C.message))g.nm(Error("SkipButtonRenderer.message was not specified or empty."));else{p=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};C=Y0(p);C==null?g.nm(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+p.iconType+".")): (this.S=new g.va({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 V_(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,"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),aN(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&&(qoH()||uZ()))&&(this.rY(this.Mo),N&&this.rY(N),this.Vn=[this.U(this.element,"touchstart",this.r_,this),this.U(this.element,"touchmove",this.IP,this),this.U(this.element,"touchend",this.sT,this)])}}; g.h.clear=function(){this.vr.reset();this.hide()}; g.h.hide=function(){this.V.hide();this.C&&this.C.hide();dk(this);HE.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(Nqu(p,{contentCpn:((V=this.api.getVideoData(1))==null?void 0:V.clientPlaybackNonce)||""})===0)this.api.Jk("onAbnormalityDetected");else if(HE.prototype.onClick.call(this,p),this.publish("j"),this.api.Jk("onAdSkip"),this.Y_||!this.Sa)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.h.VU=function(p){if(!this.Y_)return this.Sa&&vE("SkipButton click commands not pruned while ALC exist"),p;var C,V=(C=g.n(p,g.u$))==null?void 0:C.commands;if(!V)return p;p=[];for(C=0;C=this.W&&hVu(this,!0)};g.v(Uu,zB);Uu.prototype.init=function(p,C,V){zB.prototype.init.call(this,p,C,V);p=!1;C.text!=null&&(p=g.Kq(C.text),p=!g.FG(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.v(ft,Fi); ft.prototype.init=function(p,C,V){Fi.prototype.init.call(this,p,C,V);p=C.text;g.FG(Sp(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 V_(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),p.init(lq("simple-ad-badge"),C,V),p.u_(this.element),g.R(this,p)),this.show())}; ft.prototype.clear=function(){this.hide()};g.v(Ou,tO);g.v(y_,g.ca);g.h=y_.prototype;g.h.UM=function(){return this.durationMs}; g.h.stop=function(){this.T&&this.FO.rY(this.T)}; g.h.va=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.V3=function(p){g.Kt(p,2)&&this.publish("g")};g.v(qN,g.ca);g.h=qN.prototype;g.h.UM=function(){return this.durationMs}; g.h.start=function(){this.T||(this.T=!0,this.Dd.start())}; g.h.stop=function(){this.T&&(this.T=!1,this.Dd.stop())}; g.h.va=function(){this.bM+=100;var p=!1;this.bM>this.durationMs&&(this.bM=this.durationMs,this.Dd.stop(),p=!0);this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.bM/1E3};this.publish("h");p&&this.publish("g")}; g.h.getProgressState=function(){return this.C};g.v(A7,HE);g.h=A7.prototype;g.h.init=function(p,C,V){HE.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 V_(this.api,this.layoutId,this.interactionLoggingClientData,this.KS);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(){dk(this);HE.prototype.hide.call(this)}; g.h.D_=function(){this.hide()}; g.h.HI=function(){if(this.T!=null){var p=this.T.getProgressState();if(p!=null&&p.current!=null&&this.C){var C=this.T instanceof y_?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:p.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof qN?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;NN(this.C,{FORMATTED_AD_DURATION_REMAINING:String(g.I0(C)), TIME_REMAINING:String(Math.ceil(C))})}}}; g.h.show=function(){XK(this);HE.prototype.show.call(this)};g.v(o0,V_);o0.prototype.onClick=function(p){V_.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType)};g.v(xU,Fi);xU.prototype.init=function(p,C){Fi.prototype.init.call(this,p,C,{});if(p=C.content){g.t2(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"))}; xU.prototype.clear=function(){this.hide()}; xU.prototype.onClick=function(p){Fi.prototype.onClick.call(this,p)};g.v(YU,Fi); YU.prototype.init=function(p,C){Fi.prototype.init.call(this,p,C,{});(p=C.label)&&p.content&&!g.FG(p.content)?(this.adBadgeText.init(lq("ad-simple-attributed-string"),new kU(p)),(C=C.adPodIndex)&&C.content&&!g.FG(C.content)&&(this.T=new xU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),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 kU(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."))}; YU.prototype.show=function(){this.adBadgeText.show();var p;(p=this.T)==null||p.show();Fi.prototype.show.call(this)}; YU.prototype.hide=function(){this.adBadgeText.hide();var p;(p=this.T)==null||p.hide();Fi.prototype.hide.call(this)};g.v(z6,Fi); z6.prototype.init=function(p,C){Fi.prototype.init.call(this,p,C,{});(p=C.adPodIndex)&&p.content&&!g.FG(p.content)&&(this.T=new xU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),this.T.u_(this.element),g.R(this,this.T),this.T.init(lq("ad-simple-attributed-string"),new kU(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()}; z6.prototype.show=function(){var p;(p=this.T)==null||p.show();Fi.prototype.show.call(this)}; z6.prototype.hide=function(){var p;(p=this.T)==null||p.hide();Fi.prototype.hide.call(this)};g.v(R0,Fi); R0.prototype.init=function(p,C){Fi.prototype.init.call(this,p,C,{});if(C!=null&&C.text){var V;if(((V=C.text)==null?0:V.content)&&!g.FG(C.text.content)){this.T=new g.va({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.va({L:"div",B:"ytp-ad-disclosure-banner__chevron",j:[g.Uy()]}), g.R(this,this.C),this.C.u_(this.element);this.show()}}else g.nm(Error("No banner text found in AdDisclosureBanner."))}; R0.prototype.clear=function(){this.hide()};nt.prototype.getLength=function(){return this.T-this.C};g.v(PE,g.va);PE.prototype.va=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=e2(new nt(p.seekableStart,C),p.current,0);this.progressBar.style.width=p*100+"%"}; PE.prototype.onStateChange=function(){g.yj(this.api.K())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.C.subscribe("h",this.va,this),this.va()):this.T!==-1&&(this.hide(),this.C.LO(this.T),this.T=-1))};g.v(wk,Fi); wk.prototype.init=function(p,C,V,N){Fi.prototype.init.call(this,p,C,V);V=!0;if(C.skipOrPreviewRenderer){var H=C.skipOrPreviewRenderer;p=g.n(H,cS);H=g.n(H,od);p?(H=new Z7(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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 a0(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,this.C,!1),p.u_(this.Z),p.init(lq("ad-preview"),H, this.macros),Eu(p),g.R(this,p));if(p=g.n(C.skipOrPreviewRenderer,cS)){V=!1;var X=p.skipOffsetMilliseconds}}C.brandInteractionRenderer&&(p=C.brandInteractionRenderer.brandInteractionRenderer,H=new t7(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),H.u_(this.vr),H.init(lq("instream-user-sentiment"),p,this.macros),g.R(this,H));if(p=g.n(C,uGp))if(p=g.n(p,uGp))H=new l$(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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 YU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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 ft(this.api, this.layoutId,this.interactionLoggingClientData,this.KS,!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,o28),H!=null&&(V=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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 A7(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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,AM))&&(V=new j2(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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.kr))&&(H=EtL(this)&&this.S?this.S:this.T)&&(N=new Uu(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),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 PE(this.api,this.C,X,p),X.u_(this.Ga), g.R(this,X));C.adDisclosureBannerRenderer&&(C=g.n(C.adDisclosureBannerRenderer,Afr))&&(X=new R0(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),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()}; wk.prototype.clear=function(){this.hide()};WE.prototype.set=function(p,C,V){V=V!==void 0?Date.now()+V:void 0;this.T.set(p,C,V)}; WE.prototype.get=function(p){return this.T.get(p)}; WE.prototype.remove=function(p){this.T.remove(p)};var J0=null,mc=null,vh=null,J1v=null;g.YH("yt.www.ads.eventcache.getLastCompanionData",function(){return J0}); g.YH("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.YH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return mc}); g.YH("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return vh}); g.YH("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return J1v});var vtu=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);FX.prototype.handleResponse=function(p,C){if(!C)throw Error("request needs to be passed into ConsistencyService");var V,N;C=((V=C.bL.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)}; FX.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];S2V(this,C)};var LqF=window.location.hostname.split(".").slice(-2).join("."),UU;KS.getInstance=function(){UU=g.zV("yt.clientLocationService.instance");UU||(UU=new KS,g.YH("yt.clientLocationService.instance",UU));return UU}; g.h=KS.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=Si(this))&&this.localStorage.set("yt-location-playability-token",p,15552E3):g.nO("YT_CL",JSON.stringify({loctok:p}),15552E3,LqF,!0))}; g.h.clearLocationPlayabilityToken=function(p){p==="TVHTML5"?(this.localStorage=Si(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=Upv.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.h9=function(){return Object.keys(this.T)}; g.h.remove=function(p){delete this.T[p]};u7.prototype.getModuleId=function(p){return p.serviceId.getModuleId()}; u7.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=HT(C)}}return p}; u7.prototype.registerService=function(p,C){this.mappings.set(p.toString(),{type:"mapping",value:C});return p}; new u7;var fM={},f1y=(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);fS.prototype.W=function(p,C,V){C=C===void 0?{}:C;V=V===void 0?UX:V;var N={context:g.Da(p.clickTrackingParams,!1,this.S)};var H=this.C(p);if(H){this.T(N,H,C);var X;C=g.Un(this.V());(H=(X=g.n(p.commandMetadata,g.mm))==null?void 0:X.apiUrl)&&(C=H);X=uUs(wm(C));p=Object.assign({},{command:p},void 0);N={input:X,RA:$D(X),bL:N,config:p};N.config.dc?N.config.dc.identity=V:N.config.dc={identity:V};return N}g.nm(new g.Bw("Error: Failed to create Request from Command.",p))}; g.Xe.Object.defineProperties(fS.prototype,{S:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.v(On,fS);g.v(yQ,On);yQ.prototype.W=function(){return{input:"/getDatasyncIdsEndpoint",RA:$D("/getDatasyncIdsEndpoint","GET"),bL:{}}}; yQ.prototype.V=function(){return[]}; yQ.prototype.C=function(){}; yQ.prototype.T=function(){};var gTF={},i5e=(gTF.GET_DATASYNC_IDS=Za(yQ),gTF);var OU={},WqP=(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={},otY=(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(otY,WqP);g.v(z0,f5);var Qpa=new OX("aft-recorded",z0);var Qfv=g.xH.ytLoggingGelSequenceIdObj_||{};g.YH("ytLoggingGelSequenceIdObj_",Qfv);var ei=g.xH.ytLoggingLatencyUsageStats_||{};g.YH("ytLoggingLatencyUsageStats_",ei);RD.prototype.tick=function(p,C,V,N){Ph(this,"tick_"+p+"_"+C)||g.t1("latencyActionTicked",{tickName:p,clientActionNonce:C},{timestamp:V,cttAuthInfo:N})}; RD.prototype.info=function(p,C,V){var N=Object.keys(p).join("");Ph(this,"info_"+N+"_"+C)||(p=Object.assign({},p),p.clientActionNonce=C,g.t1("latencyActionInfo",p,{cttAuthInfo:V}))}; RD.prototype.jspbInfo=function(p,C,V){for(var N="",H=0;H=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{iG:C,lT:V}}; g.h.isFocused=function(p){return p>=this.k9&&p=64&&(this.Y.set(p.subarray(0,64-this.C),this.C),C=64-this.C,this.C=0,Wej(this,this.Y,0));for(;C+64<=V;C+=64)Wej(this,p,C);C=this.start&&(p=2&&V.ssdaiAdsConfig&&vE("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)})||EGu(p)})}; Ez.prototype.N7=function(){B$9(this.T)};lG.prototype.uP=function(){var p=this;r3v(this.C,function(){var C=sf(p.slot.clientMetadata,"metadata_type_ad_break_request_data");return C.cueProcessedMs?p.T.get().fetch({G$:C.getAdBreakUrl,AL:new g.iG(C.E_,C.Sz),cueProcessedMs:C.cueProcessedMs}):p.T.get().fetch({G$:C.getAdBreakUrl,AL:new g.iG(C.E_,C.Sz)})})}; lG.prototype.N7=function(){B$9(this.C)};ty.prototype.uP=function(){var p=this.slot.clientMetadata,C,V=(C=this.slot.fulfilledLayout)!=null?C:sf(p,"metadata_type_fulfilled_layout");y31(this.callback,this.slot,V)}; ty.prototype.N7=function(){KP(this.callback,this.slot,new B("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")};Tl.prototype.build=function(p,C){return C.fulfilledLayout||c8(C,{kt:["metadata_type_fulfilled_layout"]})?new ty(p,C):this.V(p,C)};g.v(Mo,Tl); Mo.prototype.V=function(p,C){if(c8(C,{kt:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Ez(p,C,this.T,this.C,this.Mt,this.x_,this.No,this.mx,this.kG);if(c8(C,{kt:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new lG(p,C,this.T,this.C,this.Mt,this.x_);throw new B("Unsupported slot with type: "+C.slotType+" and client metadata: "+a3(C.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(Jy,Tl);Jy.prototype.V=function(p,C){throw new B("Unsupported slot with type: "+C.slotType+" and client metadata: "+a3(C.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.h=lEV.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.w6(this.slot,p,new iH("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=sf(p.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.gy(this.slot,p),OSS(this.V, this.slot,C)):vE("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,p)}}; g.h.jr=function(p,C){p.layoutId!==this.layout.layoutId?this.callback.w6(this.slot,p,new iH("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),cGX(this),T7V(this))};g.v(Ks,g.ca);g.h=Ks.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.YC=function(){}; g.h.PF=function(){}; g.h.pP=function(){}; g.h.VK=function(){}; g.h.startRendering=function(p){var C=this;SY(this.C,p,function(){return void C.vZ()})}; g.h.vZ=function(){this.V.get().vZ(this.T)}; g.h.jr=function(p,C){var V=this;SY(this.C,p,function(){var N=V.V.get();EzQ(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(Ks.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.C.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.C.layout}}});qo.prototype.U8=function(p,C){C=C===void 0?!1:C;var V=(this.V.get(p)||[]).concat();if(C=C&&mYS(p)){var N=this.V.get(C);N&&V.push.apply(V,g.K(N))}Ay(this,p,V);this.T.add(p);C&&this.T.add(C)}; qo.prototype.tQ=function(p,C){C=C===void 0?!1:C;if(!this.T.has(p)){var V=C&&mYS(p);V&&(C=!this.T.has(V));this.U8(p,C)}};g.v(SKu,tO);g.v(zl,Ks);g.h=zl.prototype;g.h.yf=function(p,C){Uz("ads-engagement-panel-layout",p,this.Y.get().a5,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){uG(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,T$),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(C,V,N,H,X){return new SKu(C,V,N,H,X)},this.T); Ks.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){this.W===C.layoutId&&(this.S===null?this.S=this.No.get().pO():vE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.CS=function(){FJ(this.oH(),this);Ks.prototype.CS.call(this)};g.v(DY1,tO);g.v(Rj,Ks);g.h=Rj.prototype;g.h.yf=function(p,C){Uz("banner-image",p,this.Y.get().a5,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){uG(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,tM),this.callback,"metadata_type_banner_image_layout_view_model",function(C,V,N,H,X){return new DY1(C,V,N,H,X)},this.T); Ks.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){this.W===C.layoutId&&(this.S===null?this.S=this.No.get().pO():vE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.CS=function(){FJ(this.oH(),this);Ks.prototype.CS.call(this)};g.v(ns,tO);g.v(eY,Ks);g.h=eY.prototype;g.h.yf=function(p,C){Uz("action-companion",p,this.Y.get().a5,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){uG(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,ad),this.callback,"metadata_type_action_companion_ad_renderer",function(C,V,N,H,X){return new ns(C,V,N,H,X)},this.T); Ks.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().pO():vE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.CS=function(){FJ(this.oH(),this);Ks.prototype.CS.call(this)};g.v(UYe,tO);g.v(P8,Ks);g.h=P8.prototype;g.h.yf=function(p,C){Uz("image-companion",p,this.Y.get().a5,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){uG(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,ET),this.callback,"metadata_type_image_companion_ad_renderer",function(C,V,N,H,X){return new UYe(C,V,N,H,X)},this.T); Ks.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().pO():vE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.CS=function(){FJ(this.oH(),this);Ks.prototype.CS.call(this)};g.v(OmH,tO);g.v(wn,Ks);g.h=wn.prototype;g.h.yf=function(p,C){Uz("shopping-companion",p,this.Y.get().a5,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){uG(this.gV,this.Bc(),this.De(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(C,V,N,H,X){return new OmH(C,V,N,H,X)},this.T); Ks.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().pO():vE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.CS=function(){FJ(this.oH(),this);Ks.prototype.CS.call(this)};g.v(Ls,Ks);g.h=Ls.prototype;g.h.startRendering=function(p){uG(this.gV,this.Bc(),this.De(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(C,V,N,H,X){return new ns(C,V,N,H,X)},this.T); Ks.prototype.startRendering.call(this,p)}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.CS=function(){FJ(this.oH(),this);Ks.prototype.CS.call(this)}; g.h.yf=function(){};g.h=oGS.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().wg.push(this);var p=sf(this.layout.clientMetadata,"metadata_type_video_length_seconds"),C=sf(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");fs(this.layout.y$)&&NE(this.C4.get(),this.layout.layoutId,{Fn:C,JM:p,listener:this})}; g.h.release=function(){this.mx.get().removeListener(this);XAX(this.mx.get(),this);fs(this.layout.y$)&&Hq(this.C4.get(),this.layout.layoutId)}; g.h.startRendering=function(p){this.callback.gy(this.slot,p)}; g.h.jr=function(p,C){qqv(this.x_.get())&&!this.T&&(this.gV.tQ("abandon"),this.T=!0);this.callback.C1(this.slot,p,C)}; g.h.hX=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":qqv(this.x_.get())?this.T||(this.gV.tQ("complete"),this.T=!0):this.gV.tQ("complete");Yu(this.gV)&&ku(this.gV,Infinity,!0);IPH(this.x_.get())&&$u(this.C,Infinity,!0);break;case "engagedview":Yu(this.gV)||this.gV.tQ("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:vE("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.c$=function(){}; g.h.ri=function(){}; g.h.Hz=function(){}; g.h.onFullscreenToggled=function(){}; g.h.hp=function(){}; g.h.W$=function(){}; g.h.VJ=function(p){IPH(this.x_.get())&&$u(this.C,p*1E3,!1);Yu(this.gV)&&ku(this.gV,p*1E3,!1)}; g.h.R5=function(){}; g.h.lN=function(){this.gV.tQ("active_view_measurable")}; g.h.gJ=function(){this.gV.tQ("active_view_viewable")}; g.h.Kr=function(){this.gV.tQ("active_view_fully_viewable_audible_half_duration")}; g.h.UA=function(){this.gV.tQ("audio_measurable")}; g.h.Bn=function(){this.gV.tQ("audio_audible")};g.v(gn,Ks);g.h=gn.prototype;g.h.init=function(){Ks.prototype.init.call(this);var p=sf(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),C={adsClientData:this.layout.eb};this.T.push(new Ou(p,this.layout.layoutId,sf(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),C,!0))}; g.h.WK=function(){this.S||this.mx.get().resumeVideo(1)}; g.h.startRendering=function(p){Ks.prototype.startRendering.call(this,p);Em(this.mx.get(),"ad-showing");this.callback.gy(this.slot,p);this.W.Xn=this}; g.h.jr=function(p,C){Ks.prototype.jr.call(this,p,C);lM(this.mx.get(),"ad-showing");Q0(this.W,this)}; g.h.yf=function(p){switch(p){case "ad-info-icon-button":(this.S=this.mx.get().Ui(1))||this.mx.get().pauseVideo();break;case "visit-advertiser":this.mx.get().pauseVideo()}}; g.h.CS=function(){Ks.prototype.CS.call(this)};g.v(W8,tO);g.v(Q6,Ks);g.h=Q6.prototype;g.h.startRendering=function(p){uG(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 W8(C,V,N,H,X)},this.T); Ks.prototype.startRendering.call(this,p)}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.CS=function(){FJ(this.oH(),this);Ks.prototype.CS.call(this)}; g.h.yf=function(){};g.v(rn,tO);g.v(B8,Ks);B8.prototype.init=function(){Ks.prototype.init.call(this);this.T.push(new rn(g.n(this.layout.renderingContent,OT),this.layout.layoutId,{adsClientData:this.layout.eb}))}; B8.prototype.yf=function(){fa(this.S.get(),this.W)&&Zl(this.No.get(),3)}; B8.prototype.startRendering=function(p){Ks.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; B8.prototype.CS=function(){Ks.prototype.CS.call(this)};g.v(Gl,tO);g.v(pR,Ks);pR.prototype.init=function(){Ks.prototype.init.call(this);var p=g.n(this.layout.renderingContent,lv)||sf(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),C=Dl(this.gV);this.T.push(new Gl(p,C,this.layout.layoutId,{adsClientData:this.layout.eb},!0,!0))}; pR.prototype.startRendering=function(p){Ks.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; pR.prototype.yf=function(p,C){if(C===this.layout.layoutId)switch(p){case "skip-button":var V;(p=(V=sf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:V.current)&&p.x7(this.Bc(),this.layout)}}; pR.prototype.CS=function(){Ks.prototype.CS.call(this)};j9.prototype.build=function(p,C,V,N){if(CR(N,{kt:["metadata_type_ad_break_response_data"],Ji:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new lEV(p,V,N,this.C,this.V,this.T);throw new iH("Unsupported layout with type: "+N.layoutType+" and client metadata: "+a3(N.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.v(YKL,tO);g.v(Vu,Ks);g.h=Vu.prototype;g.h.yf=function(p,C){Uz("ads-engagement-panel",p,this.Y.get().a5,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){uG(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,ln),this.callback,"metadata_type_ads_engagement_panel_renderer",function(C,V,N,H,X){return new YKL(C,V,N,H,X)},this.T); Ks.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().pO():vE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.CS=function(){FJ(this.oH(),this);Ks.prototype.CS.call(this)};g.v(ND,Ks);g.h=ND.prototype;g.h.yf=function(p,C){Uz("top-banner-image-text-icon-buttoned",p,this.Y.get().a5,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){uG(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,cP),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(C,V,N,H,X){return new W8(C,V,N,H,X)},this.T); Ks.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){this.W===C.layoutId&&(this.S===null?this.S=this.No.get().pO():vE("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.CS=function(){FJ(this.oH(),this);Ks.prototype.CS.call(this)};nGy.prototype.build=function(p,C,V,N){if(CR(N,zYQ())||g.n(N.renderingContent,ln)!==void 0)return new Vu(p,V,N,this.Zh,this.No,this.oH,this.C4,this.T);if(CR(N,Zme())||g.n(N.renderingContent,ad)!==void 0)return new eY(p,V,N,this.Zh,this.No,this.oH,this.C4,this.T);if(CR(N,fEy())||g.n(N.renderingContent,ET)!==void 0)return new P8(p,V,N,this.Zh,this.No,this.oH,this.C4,this.T);if(CR(N,yGu()))return new wn(p,V,N,this.Zh,this.No,this.oH,this.C4,this.T);if(CR(N,AGe()))return new Ls(p,V,N,this.Zh,this.No,this.oH, this.C4,this.T);if(CR(N,uIe())||g.n(N.renderingContent,tM)!==void 0)return new Rj(p,V,N,this.Zh,this.No,this.oH,this.C4,this.T);if(CR(N,RYS())||g.n(N.renderingContent,cP)!==void 0)return new ND(p,V,N,this.Zh,this.No,this.oH,this.C4,this.T);if(CR(N,kjX()))return new Q6(p,V,N,this.Zh,this.No,this.oH,this.C4,this.T);if(CR(N,KhH())||g.n(N.renderingContent,T$)!==void 0)return new zl(p,V,N,this.Zh,this.No,this.oH,this.C4,this.T);throw new iH("Unsupported layout with type: "+N.layoutType+" and client metadata: "+ a3(N.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};eYs.prototype.build=function(p,C,V,N){if(CR(N,{kt:["metadata_type_linked_player_bytes_layout_id"],Ji:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new B8(p,V,N,this.Zh,this.No,this.T);throw new iH("Unsupported layout with type: "+N.layoutType+" and client metadata: "+a3(N.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};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.w6(this.slot,p,new iH("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"),Cr(this.Lx,p,"normal"))}; g.h.jr=function(p,C){p.layoutId!==this.layout.layoutId?this.callback.w6(this.slot,p,new iH("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=$YL.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.w6(this.slot,p,new iH("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"),Cr(this.Lx,p,"normal"))}; g.h.jr=function(p,C){p.layoutId!==this.layout.layoutId?this.callback.w6(this.slot,p,new iH("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)};HB.prototype.build=function(p,C,V,N){if(!this.x_.get().N.K().G("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(CR(N,wQ1()))return new Pzy(p,V,N,this.No,this.Lx)}else if(CR(N,{kt:[],Ji:["LAYOUT_TYPE_FORECASTING"]}))return new $YL(p,V,N,this.No,this.Lx);throw new iH("Unsupported layout with type: "+N.layoutType+" and client metadata: "+a3(N.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v(Whv,tO);g.v(XN,Ks);g.h=XN.prototype;g.h.init=function(){Ks.prototype.init.call(this);var p=g.n(this.layout.renderingContent,EN)||sf(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),C={adsClientData:this.layout.eb};this.T.push(new Whv(p,sf(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,C))}; g.h.WK=function(){this.S||this.mx.get().resumeVideo(2)}; g.h.startRendering=function(p){Ks.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p);this.W.Xn=this}; g.h.jr=function(p,C){Ks.prototype.jr.call(this,p,C);Q0(this.W,this)}; g.h.yf=function(p){if(fa(this.Y.get(),this.D))switch(p){case "visit-advertiser-link":Zl(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().Ui(2))||this.mx.get().pauseVideo();break;case "visit-advertiser-link":this.mx.get().pauseVideo();QWX(this).lk();break;case "skip-button":if(p=QWX(this), this.layout.renderingContent&&!HU(this.layout.clientMetadata,"metadata_type_dai")||!p.DD){var C;(p=(C=sf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:C.current)&&p.x7(this.Bc(),this.layout)}else vE("Requesting to skip by LegacyPlayerBytes when components enabled"),p.oy(this.Bc(),this.layout)}}; g.h.CS=function(){Ks.prototype.CS.call(this)};g.v(dO,Ks);g.h=dO.prototype;g.h.init=function(){Ks.prototype.init.call(this);var p=g.n(this.layout.renderingContent,ar)||sf(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),C={adsClientData:this.layout.eb},V;(V=!!this.layout.renderingContent)||(V=!iv(this).DD);this.T.push(new Ou(p,this.layout.layoutId,sf(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),C,V))}; g.h.WK=function(){this.S||this.mx.get().resumeVideo(2)}; g.h.startRendering=function(p){Ks.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p);this.W.Xn=this}; g.h.jr=function(p,C){Ks.prototype.jr.call(this,p,C);Q0(this.W,this)}; g.h.yf=function(p){if(fa(this.Y.get(),this.D))switch(p){case "visit-advertiser":Zl(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().Ui(2))||this.mx.get().pauseVideo();break;case "visit-advertiser":this.mx.get().pauseVideo();iv(this).lk();break;case "skip-button":if(p=iv(this),this.layout.renderingContent&& !HU(this.layout.clientMetadata,"metadata_type_dai")||!p.DD){var C;(p=(C=sf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:C.current)&&p.x7(this.Bc(),this.layout)}else vE("Requesting to skip by LegacyPlayerBytes"),p.oy(this.Bc(),this.layout)}}; g.h.CS=function(){Ks.prototype.CS.call(this)};g.v(B7V,tO);g.v(hn,Ks);g.h=hn.prototype;g.h.startRendering=function(p){var C=this;SY(this.C,p,function(){C.T.push(new B7V(sf(C.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),p.layoutId,p.eb));C.vZ();C.callback.gy(C.slot,p);g.r(V0(C.mx.get(),1),512)&&C.callback.w6(C.Bc(),C.De(),new iH("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.h.W$=function(){}; g.h.hp=function(p){if(p.state.isError()){var C;this.callback.w6(this.Bc(),this.De(),new iH("A player error happened during adNotify",{playerErrorCode:(C=p.state.Kd)==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.ri=function(){}; g.h.Hz=function(){}; g.h.c$=function(){}; g.h.onVolumeChange=function(){}; g.h.hX=function(){}; g.h.R5=function(){}; g.h.yf=function(){};g.v(paX,tO);g.v(sN,Ks);sN.prototype.init=function(){Ks.prototype.init.call(this);var p=g.n(this.layout.renderingContent,tn),C=Dl(this.gV);this.T.push(new paX(p,C,this.layout.layoutId,{adsClientData:this.layout.eb}))}; sN.prototype.startRendering=function(p){Ks.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; sN.prototype.yf=function(p,C){if(C===this.layout.layoutId)switch(p){case "skip-button":var V;(p=(V=sf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:V.current)&&p.x7(this.Bc(),this.layout)}}; sN.prototype.CS=function(){Ks.prototype.CS.call(this)};Cqe.prototype.build=function(p,C,V,N){if(p=cB(p,V,N,this.Zh,this.mx,this.No,this.C,this.T,this.x_))return p;throw new iH("Unsupported layout with type: "+N.layoutType+" and client metadata: "+a3(N.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.h=jSv.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().wg.push(this);var p=sf(this.layout.clientMetadata,"metadata_type_video_length_seconds"),C=sf(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),V=sf(this.layout.clientMetadata,"metadata_type_active_view_identifier");fs(this.layout.y$)&&NE(this.C4.get(),this.layout.layoutId,{Fn:C,JM:p,listener:this,Dx:V})}; g.h.release=function(){this.mx.get().removeListener(this);XAX(this.mx.get(),this);fs(this.layout.y$)&&Hq(this.C4.get(),this.layout.layoutId)}; g.h.startRendering=function(p){this.callback.gy(this.slot,p)}; g.h.jr=function(p,C){Jn(this,"abandon");this.callback.C1(this.slot,p,C)}; g.h.hX=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":Jn(this,"complete");Yu(this.gV)&&ku(this.gV,Infinity,!0);break;case "engagedview":Yu(this.gV)||this.gV.tQ("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:vE("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.c$=function(){}; g.h.ri=function(){}; g.h.Hz=function(){}; g.h.onFullscreenToggled=function(){}; g.h.hp=function(p){this.T||(g.Kt(p,4)&&!g.Kt(p,2)?oj(this.gV,"pause"):S2(p,4)<0&&!(S2(p,2)<0)&&oj(this.gV,"resume"))}; g.h.W$=function(){}; g.h.VJ=function(p){Yu(this.gV)&&ku(this.gV,p*1E3,!1)}; g.h.R5=function(){Jn(this,"swipe")}; g.h.lN=function(){this.gV.tQ("active_view_measurable")}; g.h.gJ=function(){this.gV.tQ("active_view_viewable")}; g.h.Kr=function(){this.gV.tQ("active_view_fully_viewable_audible_half_duration")}; g.h.UA=function(){this.gV.tQ("audio_measurable")}; g.h.Bn=function(){this.gV.tQ("audio_audible")};Vpu.prototype.build=function(p,C,V,N){C=["metadata_type_ad_placement_config"];for(var H=g.F(Ij()),X=H.next();!X.done;X=H.next())C.push(X.value);if(CR(N,{kt:C,Ji:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return V.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new jSv(p,V,N,this.mx,this.No,this.x_,this.C4):new oGS(p,V,N,this.mx,this.No,this.zk,this.x_,this.C4);throw new iH("Unsupported layout with type: "+N.layoutType+" and client metadata: "+a3(N.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); };var S9={contentCpn:"",TY:new Map};lU1.prototype.Wz=function(p,C){var V={};C=Object.assign({},C,(V.cc=this.jZ.rb(),V));this.jZ.N.k_(p,C)};var lBY,oJ; lBY={kUk:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Nx_:"AUTHENTICATION_MALFORMED",GUe:"AUTHENTICATION_MISSING",eyn:"BAD_REQUEST",Bxa:"CAST_SESSION_DEVICE_MISMATCHED",tU$:"CAST_SESSION_VIDEO_MISMATCHED",U3S:"CAST_TOKEN_EXPIRED",K$n:"CAST_TOKEN_FAILED",lue:"CAST_TOKEN_MALFORMED",gNV:"CGI_PARAMS_MALFORMED",Oxa:"CGI_PARAMS_MISSING",VH_:"DEVICE_FALLBACK",BRo:"GENERIC_WITH_LINK_AND_CPN",tH$:"ERROR_HDCP",Uwa:"LICENSE",lSk:"VIDEO_UNAVAILABLE",omn:"FORMAT_UNAVAILABLE",qfx:"GEO_FAILURE", Svr:"HTML5_AUDIO_RENDERER_ERROR",E9a:"GENERIC_WITHOUT_LINK",ux$:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",m1a:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",v9_:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",z4Y:"HTML5_SPS_UMP_STATUS_REJECTED",pB_:"INVALID_DRM_MESSAGE",uua:"PURCHASE_NOT_FOUND",mOS:"PURCHASE_REFUNDED",No$:"RENTAL_EXPIRED",PF$:"RETRYABLE_ERROR",l_r:"SERVER_ERROR",X_x:"SIGNATURE_EXPIRED",TPa:"STOPPED_BY_ANOTHER_PLAYBACK",kiY:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",amV:"STREAMING_NOT_ALLOWED", bkk:"STREAM_LICENSE_NOT_FOUND",r9x:"TOO_MANY_REQUESTS",V1a:"TOO_MANY_REQUESTS_WITH_LINK",Si$:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Ezk:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",UXr:"VIDEO_FORBIDDEN",Kra:"VIDEO_NOT_FOUND",P0S:"BROWSER_OR_EXTENSION_ERROR"};oJ={}; g.V1=(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 tnY;var cc5=g.f0(),Twc=cc5.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Twc||Twc.length<2)tnY=void 0;else{var MnG=cc5.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);tnY=MnG&&MnG.length===6?Number(MnG[5].replace("_",".")):0}var Lk=tnY,Bx=Lk>=0;g.v(g.YZ,I_);g.YZ.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);zx.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var xR={},Je=(xR.WIDTH={name:"width",video:!0,valid:640,Yz:99999},xR.HEIGHT={name:"height",video:!0,valid:360,Yz:99999},xR.FRAMERATE={name:"framerate",video:!0,valid:30,Yz:9999},xR.BITRATE={name:"bitrate",video:!0,valid:3E5,Yz:2E9},xR.EOTF={name:"eotf",video:!0,valid:"bt709",Yz:"catavision"},xR.CHANNELS={name:"channels",video:!1,valid:2,Yz:99},xR.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Yz:"invalidformat"},xR.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Yz:"nope"},xR.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Yz:"av99.0.05M.08"},xR.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Yz:"invalid"},xR);var Jcp=["h","H"],m1y=["9","("],vKp=["9h","(h"],FKF=["8","*"],SL8=["a","A"],KK0=["o","O"],D10=["m","M"],u_0=["mac3","MAC3"],Z_F=["meac3","MEAC3"],YR={},XPQ=(YR.h=Jcp,YR.H=Jcp,YR["9"]=m1y,YR["("]=m1y,YR["9h"]=vKp,YR["(h"]=vKp,YR["8"]=FKF,YR["*"]=FKF,YR.a=SL8,YR.A=SL8,YR.o=KK0,YR.O=KK0,YR.m=D10,YR.M=D10,YR.mac3=u_0,YR.MAC3=u_0,YR.meac3=Z_F,YR.MEAC3=Z_F,YR),U1c=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Bts=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var zU={},$Z=(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={},RhX=(RJ.STEREO_LAYOUT_UNKNOWN=0,RJ.STEREO_LAYOUT_LEFT_RIGHT=1,RJ.STEREO_LAYOUT_TOP_BOTTOM=2,RJ);var nM,Ni;nM={};g.nR=(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);Ni={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var PB="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");e9.prototype.isHdr=function(){return this.C==="smpte2084"||this.C==="arib-std-b67"};LR.prototype.qt=function(){return this.containerType===2}; LR.prototype.isEncrypted=function(){return!!this.vV}; LR.prototype.UV=function(){return!!this.audio}; LR.prototype.OV=function(){return!!this.video};g.v(gN,g.ca);g.h=gN.prototype;g.h.appendBuffer=function(p,C,V){if(this.dY.Nh()!==this.appendWindowStart+this.start||this.dY.Di()!==this.appendWindowEnd+this.start||this.dY.X0()!==this.timestampOffset+this.start)this.dY.supports(1),this.dY.rX(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.dY.lF(this.timestampOffset+this.start);this.dY.appendBuffer(p,C,V)}; g.h.abort=function(){this.dY.abort()}; g.h.remove=function(p,C){this.dY.remove(p+this.start,C+this.start)}; g.h.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.h.clear=function(){this.dY.clear()}; g.h.rX=function(p,C){this.appendWindowStart=p;this.appendWindowEnd=C}; g.h.NJ=function(){return this.timestampOffset+this.start}; g.h.Nh=function(){return this.appendWindowStart}; g.h.Di=function(){return this.appendWindowEnd}; g.h.lF=function(p){this.timestampOffset=p}; g.h.X0=function(){return this.timestampOffset}; g.h.l9=function(p){p=this.dY.l9(p===void 0?!1:p);return Lx(p,this.start,this.end)}; g.h.L$=function(){return this.dY.L$()}; g.h.xa=function(){return this.dY.xa()}; g.h.W_=function(){return this.dY.W_()}; g.h.Ci=function(){return this.dY.Ci()}; g.h.Kf=function(){this.dY.Kf()}; g.h.Ao=function(p){return this.dY.Ao(p)}; g.h.fg=function(){return this.dY.fg()}; g.h.QD=function(){return this.dY.QD()}; g.h.Q5=function(){return this.dY.Q5()}; g.h.mW=function(p,C,V){this.dY.mW(p,C,V)}; g.h.vH=function(p,C,V){this.dY.vH(p,C,V)}; g.h.Oy=function(p,C){return this.dY.Oy(p,C)}; g.h.supports=function(p){return this.dY.supports(p)}; g.h.Db=function(){return this.dY.Db()}; g.h.isView=function(){return!0}; g.h.Fm=function(){return this.dY.Fm()?this.isActive:!1}; g.h.isLocked=function(){return this.ol&&!this.isActive}; g.h.jb=function(p){p=this.dY.jb(p);p.vw=this.start+"-"+this.end;return p}; g.h.wM=function(){return this.dY.wM()}; g.h.EW=function(){return this.dY.EW()}; g.h.m2=function(){return this.dY.m2()}; g.h.CS=function(){this.dY.OX(this.EQ);g.ca.prototype.CS.call(this)};var aB=!1;g.v(QE,g.ca);g.h=QE.prototype;g.h.appendBuffer=function(p,C,V){this.BO=!1;V&&(this.f8=V);if(p.length){var N;((N=this.NW)==null?0:N.appendBuffer)?this.NW.appendBuffer(p):this.NW?this.NW.append(p):this.v6&&this.v6.webkitSourceAppend(this.id,p)}C&&(C.isEncrypted()&&(this.Gl=this.f8),C.type===3&&(this.JE=C),this.z4.push(C.yZ()),this.z4.length>4&&this.z4.shift());this.Cn&&(this.Cn.length>=2||p.length>1048576?delete this.Cn:this.Cn.push(p))}; g.h.abort=function(){try{this.NW?this.NW.abort():this.v6&&this.v6.webkitSourceAbort(this.id)}catch(p){ZCS&&g.nm(new g.Bw("Error while abort the source buffer: "+p.name+", "+p.message))}this.f8=this.JE=null}; g.h.remove=function(p,C,V){this.BO=!1;var N;if((N=this.NW)==null?0:N.remove)V&&V({b:iX(this.l9()),s:p,e:C}),this.NW.remove(p,C)}; g.h.removeAll=function(){this.remove(this.Nh(),this.Di())}; g.h.clear=function(){this.W_()||(this.abort(),this.removeAll(),this.Gl=this.f8=this.JE=null,this.appendWindowStart=this.timestampOffset=0,this.fR=dN([],[]),this.BO=!1,this.Cn=Wc?[]:void 0,this.yD=!0)}; g.h.Nh=function(){if(aB&&this.OV)return this.appendWindowStart;var p;return((p=this.NW)==null?void 0:p.appendWindowStart)||0}; g.h.Di=function(){var p;return((p=this.NW)==null?void 0:p.appendWindowEnd)||0}; g.h.rX=function(p,C){this.NW&&(aB&&this.OV?(this.appendWindowStart=p,this.NW.appendWindowEnd=C):p>this.Nh()?(this.NW.appendWindowEnd=C,this.NW.appendWindowStart=p):(this.NW.appendWindowStart=p,this.NW.appendWindowEnd=C))}; g.h.NJ=function(){return this.timestampOffset}; g.h.lF=function(p){aB?this.timestampOffset=p:this.supports(1)&&(this.NW.timestampOffset=p)}; g.h.X0=function(){return aB?this.timestampOffset:this.supports(1)?this.NW.timestampOffset:0}; g.h.l9=function(p){if(p===void 0?0:p)return this.BO||this.L$()||(this.fR=this.l9(!1),this.BO=!0),this.fR;try{return this.NW?this.NW.buffered:this.v6?this.v6.webkitSourceBuffered(this.id):dN([0],[Infinity])}catch(C){return dN([],[])}}; g.h.L$=function(){var p;return((p=this.NW)==null?void 0:p.updating)||!1}; g.h.W_=function(){return this.yD}; g.h.Ci=function(){return!this.yD&&this.L$()}; g.h.Kf=function(){this.yD=!1}; g.h.Ao=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.fg=function(){return this.f8}; g.h.QD=function(){return this.Gl}; g.h.Oy=function(p,C){return this.containerType!==p||this.o$!==C}; g.h.mW=function(p,C,V){if(this.containerType!==p||V&&this.Oy(p,V))this.supports(4),rN()&&this.NW.changeType(C),V&&(this.o$=V);this.containerType=p}; g.h.vH=function(p,C,V){this.containerType&&this.Oy(p,C)&&rN()&&this.NW.changeType(V);this.containerType=p;this.o$=C}; g.h.Db=function(){return this.JE}; 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.Fm=function(){return!this.L$()}; g.h.isLocked=function(){return!1}; g.h.jb=function(p){p.to=this.X0();p.up=this.L$();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.xa=function(){var p;return((p=this.NW)==null?void 0:p.writeHead)||0}; g.h.wM=function(){for(var p={},C=0;C=7&&tpV(this,function(){g.F5(function(){qyL(p,p.getCurrentTime(),0)},500)}); return C}; g.h.seekTo=function(p){this.cB()>0&&(Bx&&Lk<4&&(p=Math.max(.1,p)),this.setCurrentTime(p))}; g.h.DM=function(){if(!this.C&&this.Hr)if(this.Hr.W)try{var p;j6(this,{l:"mer",sr:(p=this.Ta)==null?void 0:p.lM(),rs:Nr(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||fUV(C);if(K7s){if(!this.V){var V=new XO;V.then(void 0,function(){}); this.V=V;D01&&this.pause();g.F5(function(){p.V===V&&(s3(p),V.resolve())},200)}}else s3(this)}}; g.h.NE=function(){var p=this.kq();return EJ(p)>0&&this.getDuration()?a7(p,this.getCurrentTime()):0}; g.h.NQ=function(){var p=this.getDuration();return p===Infinity?1:p?this.NE()/p:0}; g.h.jb=function(){try{var p=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:iX(this.pg(),",",3),vbu:iX(this.kq()),vbs:iX(this.LQ()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.cB(),vns:""+this.dM(),vec:""+this.H6(),vemsg:this.Mg(),vvol:""+this.getVolume(),vdom:""+ +this.A5(),vsrc:""+ +!!this.wi(),vw:""+p.width,vh:""+p.height}}catch(C){return{}}}; g.h.hasError=function(){return this.H6()>0}; g.h.addEventListener=function(p,C){this.S.listen(p,C,!1,this);this.Nk(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(ubQ){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.W_())||C<=((V==null?void 0:V.Y)||0)){var N;j6(this,{l:"mede",sr:(N=this.Ta)==null?void 0:N.lM(),et:p.type});return!1}if(this.N4)return j6(this,{l:"medes",et:p.type}),V&&p.type==="seeking"&&(V.Y=performance.now(),this.N4=!1),!1}return this.S.dispatchEvent(p)}; g.h.zc=function(){this.Y=!1}; g.h.V5=function(){this.Y=!0;this.m3(!0)}; g.h.Y4=function(){this.Y&&!this.oV()&&this.m3(!0)}; g.h.rI=function(p){return!!p&&p.AQ()===this.AQ()}; g.h.CS=function(){this.D&&this.removeEventListener("volumechange",this.Y4);K7s&&s3(this);g.z.prototype.CS.call(this)}; var K7s=!1,D01=!1,ubQ=!1,AOX=!1;g.h=g.E3.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.T7=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.v(S6,g.z);g.h=S6.prototype;g.h.Wp=function(){return this.V}; g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){var p=sf(this.layout.clientMetadata,"metadata_type_video_length_seconds"),C=sf(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");fs(this.layout.y$)&&NE(this.C4.get(),this.layout.layoutId,{Fn:C,JM:p,listener:this,t9:this.sV()});BDL(this.No.get(),this);p=this.DP;C=this.layout.layoutId;var V={t9:this.sV()};p.T.set(C,V);this.hH()}; g.h.OW=function(){}; g.h.release=function(){fs(this.layout.y$)&&Hq(this.C4.get(),this.layout.layoutId);Gsa(this.No.get(),this);this.DP.T.delete(this.layout.layoutId);this.x0()}; g.h.xn=function(){}; g.h.mP=function(){}; g.h.startRendering=function(p){uv(KV(this));if(D5(this,p)){var C=this.T;Zs(C.params.Jg.x_.get(),!0)&&E0e(C,"p_sr",{});uU(this);this.pW(p);this.sV()||this.KC(!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()){qr(this,"mute");var V;p=((V=FO(this))==null?void 0:V.muteCommands)||[];WU(this.zk.get(),p,this.layout.layoutId)}if(this.mx.get().isFullscreen()){this.U8("fullscreen");var N;V=((N=FO(this))==null?void 0:N.fullscreenCommands)||[];WU(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"&&(dc("pbs",void 0,N.actionType),g.Zr("finalize_all_timelines")&&CRQ(N.actionType))));this.B_(1);this.RM(C);var H;C=((H=FO(this))==null?void 0:H.impressionCommands)||[];WU(this.zk.get(),C,this.layout.layoutId)}}; g.h.RR=function(p,C,V){this.D={yI:3,gG:p==="load_timeout"?402:400,errorMessage:C.message};this.tQ("error");var N;p=((N=FO(this))==null?void 0:N.errorCommands)||[];WU(this.zk.get(),p,this.layout.layoutId);this.sV()||this.by.w6(this.slot,this.layout,C,V)}; g.h.lS=function(){if(this.JQ==="rendering"){qr(this,"pause");var p,C=((p=FO(this))==null?void 0:p.pauseCommands)||[];WU(this.zk.get(),C,this.layout.layoutId);this.B_(2)}}; g.h.g8=function(){if(this.JQ==="rendering"){qr(this,"resume");var p,C=((p=FO(this))==null?void 0:p.resumeCommands)||[];WU(this.zk.get(),C,this.layout.layoutId)}}; g.h.KW=function(p,C){C=C===void 0?!1:C;if(this.JQ==="rendering"){var V={currentTimeSec:p,flush:C};UN(this.T,"p_ip",V);ku(this.gV,p*1E3,C);this.C||ku(this.gV,p*1E3,C===void 0?!1:C);var N=this.uU();if(N){N/=1E3;if(p>=N*.25||C)this.tQ("first_quartile"),UN(this.T,"p_fq",V);if(p>=N*.5||C)this.tQ("midpoint"),UN(this.T,"p_sq",V);if(p>=N*.75||C)this.tQ("third_quartile"),UN(this.T,"p_tq",V);this.x_.get().N.K().experiments.OY("enable_progress_command_flush_on_kabuki")?$u(this.S,p*1E3,C):$u(this.S,p*1E3,R3V(this)? C:!1)}}}; g.h.rb=function(){var p;return((p=Z5(this.pS.get(),1))==null?void 0:p.clientPlaybackNonce)||""}; g.h.Ja=function(p,C){p.layoutId!==this.layout.layoutId?this.by.w6(this.slot,p,new iH("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.KC(p),this.KY(V),this.B_(0),V){case "abandoned":if(xu(this.gV,"impression")){var N,H=((N=FO(this))==null?void 0:N.abandonCommands)||[];WU(this.zk.get(),H,this.layout.layoutId)}break;case "normal":N=((H=FO(this))==null?void 0:H.completeCommands)||[];WU(this.zk.get(),N,this.layout.layoutId);break;case "skipped":var X;N=((X= FO(this))==null?void 0:X.skipCommands)||[];WU(this.zk.get(),N,this.layout.layoutId)}}; g.h.vE=function(){return this.layout.layoutId}; g.h.Ky=function(){return this.D}; g.h.lN=function(){if(this.JQ==="rendering"){this.gV.tQ("active_view_measurable");var p,C=((p=FO(this))==null?void 0:p.activeViewMeasurableCommands)||[];WU(this.zk.get(),C,this.layout.layoutId)}}; g.h.Kr=function(){if(this.JQ==="rendering"){this.gV.tQ("active_view_fully_viewable_audible_half_duration");var p,C=((p=FO(this))==null?void 0:p.activeViewFullyViewableAudibleHalfDurationCommands)||[];WU(this.zk.get(),C,this.layout.layoutId)}}; g.h.gJ=function(){if(this.JQ==="rendering"){this.gV.tQ("active_view_viewable");var p,C=((p=FO(this))==null?void 0:p.activeViewViewableCommands)||[];WU(this.zk.get(),C,this.layout.layoutId)}}; g.h.Bn=function(){if(this.JQ==="rendering"){this.gV.tQ("audio_audible");var p,C=((p=FO(this))==null?void 0:p.activeViewAudioAudibleCommands)||[];WU(this.zk.get(),C,this.layout.layoutId)}}; g.h.UA=function(){if(this.JQ==="rendering"){this.gV.tQ("audio_measurable");var p,C=((p=FO(this))==null?void 0:p.activeViewAudioMeasurableCommands)||[];WU(this.zk.get(),C,this.layout.layoutId)}}; g.h.KC=function(p){this.sZ.get().KC(sf(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.U8("fullscreen");var C,V=((C=FO(this))==null?void 0:C.fullscreenCommands)||[];WU(this.zk.get(),V,this.layout.layoutId)}else this.U8("end_fullscreen"),C=((V=FO(this))==null?void 0:V.endFullscreenCommands)||[],WU(this.zk.get(),C,this.layout.layoutId)}; g.h.onVolumeChange=function(){if(this.JQ==="rendering")if(this.mx.get().isMuted()){qr(this,"mute");var p,C=((p=FO(this))==null?void 0:p.muteCommands)||[];WU(this.zk.get(),C,this.layout.layoutId)}else qr(this,"unmute"),p=((C=FO(this))==null?void 0:C.unmuteCommands)||[],WU(this.zk.get(),p,this.layout.layoutId)}; g.h.ri=function(){}; g.h.Hz=function(){}; g.h.c$=function(){}; g.h.hX=function(){}; g.h.R5=function(){}; g.h.U8=function(p){this.gV.U8(p,!this.C)}; g.h.tQ=function(p){this.gV.tQ(p,!this.C)}; g.h.sV=function(){var p=sf(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return p===void 0?(vE("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.x_.get().sV(p)};g.v(kL,S6);g.h=kL.prototype;g.h.hH=function(){}; g.h.x0=function(){var p=this.No.get();p.WX===this&&(p.WX=null);this.Dd.stop()}; g.h.xn=function(){this.Dd.stop();S6.prototype.lS.call(this)}; g.h.mP=function(){YL(this);S6.prototype.g8.call(this)}; g.h.uU=function(){return sf(this.De().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.h.jr=function(p,C){var V=this;this.Ja(p,function(){V.JQ!=="rendering_stop_requested"&&(V.JQ="rendering_stop_requested",V.layoutExitReason=C,U3(V,C),V.Dd.stop())})}; g.h.va=function(){var p=Date.now(),C=p-this.Py;this.Py=p;this.bM+=C;this.bM>=this.uU()?this.Ca():(this.KW(this.bM/1E3),xL(this,this.bM))}; g.h.KY=function(){}; g.h.W$=function(){}; g.v(zP,kL);g.h=zP.prototype;g.h.hp=function(p){if(this.JQ!=="not_rendering"){p=fV(this,p);var C=this.mx.get().getPresentingPlayerType()===2;this.JQ==="rendering_start_requested"?C&&Tx(p)&&this.aV():C?g.Kt(p,2)?vE("Receive player ended event during MediaBreak",this.Bc(),this.De()):O3(this,p):this.N$()}}; g.h.pW=function(){Yys(this);hAs(this.mx.get());this.No.get().WX=this;HH("pbp")||HH("pbs")||dc("pbp");HH("pbp","watch")||HH("pbs","watch")||dc("pbp",void 0,"watch");this.aV()}; g.h.RM=function(p){this.sZ.get();var C=sf(p.clientMetadata,"metadata_type_ad_placement_config").kind,V=this.position===0;p=sf(p.clientMetadata,"metadata_type_linked_in_player_layout_type");p={adBreakType:yP(C),adType:Bey(p)};var N=void 0;V?C!=="AD_PLACEMENT_KIND_START"&&(N="video_to_ad"):N="ad_to_ad";jL("ad_mbs",void 0,N);g.V3(p,N);YL(this)}; g.h.N$=function(){this.Jw()}; g.h.Ca=function(){e31(this);this.Jw()}; g.v(Rk,kL);g.h=Rk.prototype;g.h.hp=function(p){this.JQ!=="not_rendering"&&(p=fV(this,p),O3(this,p))}; g.h.pW=function(){vE("Not used in SSAP")}; g.h.RM=function(){YL(this)}; g.h.N$=function(){vE("Not used in SSAP")}; g.h.Ca=function(){e31(this);this.by.ya(this.Bc(),this.De(),"normal")}; g.v(nV,Rk);nV.prototype.jr=function(p,C){var V=this;this.Ja(p,function(){vB(V.V,C)&&(V.JQ="rendering_stop_requested",V.layoutExitReason=C,U3(V,C),V.Dd.stop())})}; nV.prototype.startRendering=function(p){uv(KV(this));D5(this,p)&&(uU(this),this.No.get().WX=this)};g.v(wl,S6);g.h=wl.prototype;g.h.N$=function(){this.Jw()}; g.h.hp=function(p){if(this.JQ!=="not_rendering"){p=fV(this,p);var C=this.mx.get().getPresentingPlayerType()===2;this.JQ==="rendering_start_requested"?C&&Tx(p)&&this.aV():!C||g.Kt(p,2)?this.Jw():O3(this,p)}}; g.h.hH=function(){sf(this.De().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=sf(this.De().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.h.x0=function(){sf(this.De().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.vS){var p=this.context.Jg,C=this.vS,V=this.De().layoutId;if(Zs(p.x_.get(),!0)){var N={};p.Wz("mccru",(N.cid=C,N.p_ac=V,N))}this.f1.get().removeCueRange(this.vS)}this.vS=void 0;var H;(H=this.IR)==null||H.dispose();this.z3&&this.z3.dispose()}; g.h.pW=function(p){var C=e6(this.x_.get()),V=Pj(this.x_.get());if(C&&V&&!this.sV()){V=sf(p.clientMetadata,"metadata_type_preload_player_vars");var N=g.Mz(this.x_.get().N.K().experiments,"html5_preload_wait_time_secs");V&&this.z3&&this.z3.start(N*1E3)}$yy(this,p);Yys(this);C?(V=this.gY.get(),p=sf(p.clientMetadata,"metadata_type_player_vars"),V.N.loadVideoByPlayerVars(p,!1,2)):JS1(this.gY.get(),sf(p.clientMetadata,"metadata_type_player_vars"));var H;(H=this.IR)==null||H.start();C||this.gY.get().N.playVideo(2)}; g.h.RM=function(){var p;(p=this.IR)==null||p.stop();this.vS="adcompletioncuerange:"+this.De().layoutId;this.f1.get().addCueRange(this.vS,0x7ffffffffffff,0x8000000000000,!1,this,2,2);p=this.context.Jg;var C=this.vS,V=this.De().layoutId;if(Zs(p.x_.get(),!0)){var N={};p.Wz("mccr",(N.cid=C,N.p_ac=V,N))}(this.adCpn=xyu(this))||vE("Media layout confirmed started, but ad CPN not set.");this.Pa.get().VA("onAdStart",this.adCpn);this.Qb=Date.now()}; g.h.uU=function(){var p;return(p=Z5(this.pS.get(),2))==null?void 0:p.yE_}; g.h.lk=function(){this.gV.U8("clickthrough")}; g.h.jr=function(p,C){var V=this;this.Ja(p,function(){if(V.JQ!=="rendering_stop_requested"){V.JQ="rendering_stop_requested";V.layoutExitReason=C;U3(V,C);var N;(N=V.IR)==null||N.stop();V.z3&&V.z3.stop();Lzs(V)}})}; g.h.onCueRangeEnter=function(p){if(p!==this.vS)vE("Received CueRangeEnter signal for unknown layout.",this.Bc(),this.De(),{cueRangeId:p});else{var C=this.context.Jg,V=this.De().layoutId;if(Zs(C.x_.get(),!0)){var N={};C.Wz("mccre",(N.cid=p,N.p_ac=V,N))}this.f1.get().removeCueRange(this.vS);this.vS=void 0;Gm(this.context.x_.get(),"html5_ssap_flush_at_stop_rendering")&&this.sV()||(p=sf(this.De().clientMetadata,"metadata_type_video_length_seconds"),this.KW(p,!0),this.tQ("complete"))}}; g.h.KY=function(p){p!=="abandoned"&&this.Pa.get().VA("onAdComplete");this.Pa.get().VA("onAdEnd",this.adCpn)}; g.h.onCueRangeExit=function(){}; g.h.W$=function(p){this.JQ==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&p>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.mx.get().lL(!0),this.KW(p))}; g.h.KW=function(p,C){S6.prototype.KW.call(this,p,C===void 0?!1:C);C=Date.now()-this.Qb;var V=p*1E3,N={contentCpn:this.rb(),adCpn:xyu(this)};if(p>=5&&!this.zK){var H=C<1E3?0:1;MN(H,"i.k_",{metadata:N,O0:C,Jh:Math.floor(V/1E3)});GH("IKDSTAT",H);H===0&&g0e(this)&&this.Pa.get().VA("onAbnormalityDetected");this.zK=!0}this.x_.get().N.K().experiments.OY("enable_ik_opt")&&p-this.CL>=5&&(H=C=2||(this.UZ.jr(this.layout,C),p=Gm(this.params.context.x_.get(),"html5_ssap_pass_transition_reason")&&C==="abandoned",this.Pu()&&!p&&(Gm(this.params.context.x_.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(C)||vE("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:C})),this.kG.get().finishSegmentByCpn(this.layout.layoutId, Z5(this.pS.get(),1).clientPlaybackNonce,bU(C,this.params.context.x_))),this.mx.get().removeListener(this),this.tV()&&FN(this.UZ.Wp())&&this.R0.C1(this.slot,this.layout,this.UZ.Wp().T))}; g.h.jN=function(p,C,V){sSS({cpn:p,jZ:this.pS.get(),lq:!0});this.De().layoutId!==p||Gm(this.params.context.x_.get(),"html5_ssap_pass_transition_reason")&&V===5||(this.UZ.Wp().currentState<2&&(p=AK(V,this.params.context.x_),p==="error"?this.R0.w6(this.slot,this.layout,new iH("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"):Cr(this.xl, this.layout,p)),Gm(this.params.context.x_.get(),"html5_ssap_exit_without_waiting_for_transition")||this.R0.C1(this.slot,this.layout,this.UZ.Wp().T))};g.v(QP,g.z);g.h=QP.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.XI=function(){}; g.h.Yl=function(){return this.tU[this.Lo]}; g.h.I8=function(){return this.Lo}; g.h.xn=function(p,C){var V=this.Yl();C.layoutId!==Bj(V,p,C)?vE("pauseLayout for a PlayerBytes layout that is not currently active",p,C):V.xn()}; g.h.mP=function(p,C){var V=this.Yl();C.layoutId!==Bj(V,p,C)?vE("resumeLayout for a PlayerBytes layout that is not currently active",p,C):V.mP()}; g.h.oy=function(p,C){var V=this.Yl();V29(this,p,C);Nky(V,p,C)&&this.eQ(V.Bc(),V.De(),"skipped")}; g.h.x7=function(p,C){var V=this.Yl();Hta(this);XEV(V,p,C)&&(p=dNe(this,V,p,C),p!==void 0&&(this.sV()?vE("Should not happen. Should delete"):hSj(this,V.Bc(),V.De(),p)))}; g.h.B0=function(p,C){var V=Object.assign({},rl(this),{layoutId:C.layoutId}),N=V.layoutId,H=V.lq;if(V.t9){var X={};Ds(V.jZ,"wrse",(X.ec=N,X.is=H,X.ctp=KR(N),X))}I3(this.TR,p,C)}; g.h.gy=function(p,C){var V;(V=this.Yl())==null||V.gy(p,C)}; g.h.C1=function(p,C,V){C.layoutId===this.De().layoutId&&(this.dO=!1,FJ(this.oH(),this));var N;(N=this.Yl())==null||N.C1(p,C,V)}; g.h.W$=function(p){var C;(C=this.Yl())==null||C.W$(p)}; g.h.SM=function(p,C,V){this.I8()===-1&&(this.callback.gy(this.slot,this.layout),this.Lo++);var N=this.Yl();N?(N.RR(p,C,V),this.sV()&&this.callback.w6(this.slot,this.layout,C,V)):vE("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.I8()),layoutId:this.De().layoutId})}; g.h.onFullscreenToggled=function(p){var C;(C=this.Yl())==null||C.onFullscreenToggled(p)}; g.h.ri=function(p){var C;(C=this.Yl())==null||C.ri(p)}; g.h.c$=function(p){var C;(C=this.Yl())==null||C.c$(p)}; g.h.onVolumeChange=function(){var p;(p=this.Yl())==null||p.onVolumeChange()}; g.h.wq=function(p,C,V){bH(this.TR,p,C,V)}; g.h.F1=function(p){p.startRendering(p.De())}; g.h.init=function(){var p=sf(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);if(this.tU.length<1)throw new B("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.tU.length)});if(p=sf(this.De().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))p.current=this;p=g.F(this.tU);for(var C=p.next();!C.done;C=p.next())C=C.value,C.init(),qIS(this.TR,this.slot,C.De()),I9H(this.TR,this.slot,C.De()); if(this.sV())for(this.pS.get().addListener(this),NeH(j09(this),this.pS.get()),p=j09(this),p=g.F(p),C=p.next();!C.done;C=p.next())this.xe(C.value)}; g.h.xe=function(p){var C=sf(p.clientMetadata,"metadata_type_player_vars");C?(p.layoutType!=="LAYOUT_TYPE_MEDIA"&&vE("Non-video ad contains playerVars",this.slot,p),this.gY.get().addPlayerResponseForAssociation({playerVars:C})):(p=GBV(p),this.gY.get().addPlayerResponseForAssociation({xd:p}))}; g.h.release=function(){var p=sf(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);if(p=sf(this.De().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))p.current=null;p=g.F(this.tU);for(var C=p.next();!C.done;C=p.next())C=C.value,b1V(this.TR,this.slot,C.De()),C.release();this.sV()&&(this.pS.get().removeListener(this),Hqe())}; g.h.Ja=function(p){return p.layoutId!==this.De().layoutId?(this.callback.w6(this.Bc(),p,new iH("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.HJ=function(){this.mx.get().addListener(this);vU(this.oH(),this)}; g.h.hp=function(p){if(p.state.isError()){var C,V;this.SM((C=p.state.Kd)==null?void 0:C.errorCode,new iH("There was a player error during this media layout.",{playerErrorCode:(V=p.state.Kd)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(C=this.Yl())&&C.hp(p)}; g.h.sV=function(){var p=sf(this.Bc().clientMetadata,"metadata_type_eligible_for_ssap");return p===void 0?(vE("Expected SSAP eligibility in PlayerBytes slots",this.Bc(),this.De()),!1):this.x_.get().sV(p)}; g.h.Hz=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.hX=function(){}; g.h.R5=function(){}; g.v(jI,QP);g.h=jI.prototype;g.h.UD=function(p,C,V){this.eQ(p,C,V)}; g.h.tN=function(p,C){this.eQ(p,C,"error")}; g.h.eQ=function(p,C,V){var N=this;it9(this,p,C,V,function(){GP(N,N.I8()+1)})}; g.h.startRendering=function(p){this.Ja(p)&&(this.HJ(),u4V(this.sZ.get()),yuQ(this.x_.get())||hAs(this.mx.get()),this.I8()===-1&&GP(this,this.I8()+1))}; g.h.jr=function(p,C){var V=this;this.dO=!0;this.I8()===this.tU.length?this.callback.C1(this.slot,this.layout,C):(p=this.Yl(),p.jr(p.De(),C),this.BY=function(){V.callback.C1(V.slot,V.layout,C)}); this.mx.get().N.sX();JS1(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.dO&&s01(this)}; g.h.jN=function(){}; g.h.dA=function(){}; g.h.ya=function(){}; g.v(V4,QP);g.h=V4.prototype;g.h.UD=function(p,C,V){p=Object.assign({},rl(this),{layoutId:C.layoutId,layoutExitReason:V});C=p.layoutId;V=p.layoutExitReason;var N={};Ds(p.jZ,"prse",(N.xc=C,N.ler=V,N.ctp=KR(C),N))}; g.h.tN=function(){vE("onSubLayoutError in SSAP")}; g.h.eQ=function(){vE("exitSubLayoutAndPlayNext in SSAP")}; g.h.Yl=function(){return this.II}; g.h.I8=function(){var p=this;return this.tU.findIndex(function(C){var V;return C.De().layoutId===((V=p.II)==null?void 0:V.De().layoutId)})}; g.h.F1=function(p){mA(this.II===void 0,"replacing another adapter");this.II=p;p.startRendering(p.De())}; g.h.wq=function(p,C,V){bH(this.TR,p,C,V);var N;mA(C.layoutId===((N=this.II)==null?void 0:N.De().layoutId),"currentAdapter does not match exiting layout",{slot:p?"slot: "+p.slotType:"",subLayout:J7(C)})&&(this.II=void 0)}; g.h.release=function(){QP.prototype.release.call(this);mA(this.II===void 0,"currentAdapter is still active during release");this.II=void 0}; g.h.Pu=function(){return this.mx.get().getPresentingPlayerType()===2}; g.h.jr=function(p,C){function V(){NV(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(C)||vE("Composite stopRendering: Unexpected layout exit reason",this.slot,p,{layoutExitReason:C}))} function N(){this.II&&HS(this,this.II,C);if(this.Pu()&&(!NV(this)||C!=="abandoned")){V.call(this);var X;var d=((X=this.pS.get().N.getVideoData())==null?void 0:X.clientPlaybackNonce)||"";X=Z5(this.pS.get(),1).clientPlaybackNonce;this.kG.get().finishSegmentByCpn(d,X,bU(C,this.x_))}a7Y(this,C)} function H(){if(this.II){var X=this.II;X.Wp().currentState<2&&X.jr(X.De(),C);X=NV(this)&&C==="abandoned";this.Pu()&&!X&&(V.call(this),this.kG.get().finishSegmentByCpn(this.II.De().layoutId,Z5(this.pS.get(),1).clientPlaybackNonce,bU(C,this.x_)))}} mA(p.layoutId===this.De().layoutId,"StopRendering for wrong layout")&&vB(this.bO.C,C)&&(this.tV()?N.call(this):H.call(this))}; g.h.C1=function(p,C,V){QP.prototype.C1.call(this,p,C,V);C.layoutId===this.De().layoutId&&this.mx.get().removeListener(this)}; g.h.rb=function(){return Z5(this.pS.get(),1).clientPlaybackNonce}; g.h.jN=function(p,C,V){sSS(Object.assign({},rl(this),{cpn:p}));if(!NV(this)||V!==5)if(this.tV()){if(this.II&&this.II.De().layoutId!==C){var N=this.II.De().layoutId;N!==p&&vE("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:N,exitingCpn:p,enteringCpn:C});p=AK(V,this.x_);HS(this,this.II,p)}else this.II&&vE("onClipExited: active layout is entering again");C===this.rb()&&l71(this,V)}else{if(this.II&&this.II.De().layoutId===p)EUy(this,this.II,V);else{var H;vE("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.rb()&&(this.II!==void 0&&(vE("active adapter is not properly exited",this.slot,this.layout,{activeLayout:J7(this.II.De())}),EUy(this,this.II,V)),l71(this,V),a7Y(this,this.bO.C.T))}}; g.h.tV=function(){return Gm(this.x_.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.h.startRendering=function(p){this.Ja(p)&&(p=this.bO,mA(p.T===1,"tickStartRendering: state is not initial"),p.T=2,this.HJ())}; g.h.dA=function(p){h3L(Object.assign({},rl(this),{cpn:p}));var C=this.tU.find(function(V){return V.De().layoutId===p}); C?(this.bO.T!==2&&(P8S(this.u9,this.slot.slotId),mA(this.bO.T===2,"Expect started"),this.callback.gy(this.slot,this.layout)),this.F1(C),I3(this.TR,this.slot,C.De())):t2e(this,p)}; g.h.oy=function(p,C){V29(this,p,C);var V=this.Yl();V?Nky(V,p,C)&&c71(this,"skipped"):TkS(this,"onSkipRequested")}; g.h.x7=function(p,C){var V;a:{if(V=this.Yl()){if(Hta(this),XEV(V,p,C)&&(p=dNe(this,V,p,C),p!==void 0)){V={YI:V,Jpa:this.tU[p]};break a}}else TkS(this,"SkipWithAdPodSkip");V=void 0}if(p=V)V=p.YI,C=p.Jpa,p=V.De().layoutId,this.tV()?HS(this,V,"skipped"):V.jr(V.De(),"skipped"),V=C.De().layoutId,this.kG.get().finishSegmentByCpn(p,V,bU("skipped",this.x_))}; g.h.B0=function(){vE("Not used in html5_ssap_fix_layout_exit")}; g.h.hp=function(p){var C;(C=this.Yl())==null||C.hp(p)}; g.h.SM=function(){vE("Not used in html5_ssap_fix_layout_exit")}; g.h.ya=function(p,C,V){var N;if(((N=this.Yl())==null?void 0:N.De().layoutId)!==C.layoutId)return void vE("requestToExitSubLayout: wrong layout");c71(this,V)};g.v(Xc,g.z);g.h=Xc.prototype;g.h.Bc=function(){return this.UZ.Bc()}; g.h.De=function(){return this.UZ.De()}; g.h.init=function(){var p=sf(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);this.hH()}; g.h.hH=function(){this.UZ.init()}; g.h.release=function(){var p=sf(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);this.x0()}; g.h.x0=function(){this.UZ.release()}; g.h.xn=function(){this.UZ.xn()}; g.h.mP=function(){this.UZ.mP()}; g.h.oy=function(p,C){vE("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.w6(this.Bc(),p,new iH("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),vU(this.oH(),this),u4V(this.sZ.get()),yuQ(this.x_.get())||hAs(this.mx.get()),this.UZ.startRendering(p))}; g.h.jr=function(p,C){this.dO=!0;this.UZ.jr(p,C);this.mx.get().N.sX();JS1(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.dO&&this.UZ.N$()}; g.h.gy=function(p,C){this.UZ.gy(p,C)}; g.h.C1=function(p,C,V){C.layoutId===this.De().layoutId&&(this.dO=!1,FJ(this.oH(),this));this.UZ.C1(p,C,V);C.layoutId===this.De().layoutId&&pr(this.sZ.get())}; g.h.W$=function(p){this.UZ.W$(p)}; g.h.hp=function(p){if(p.state.isError()){var C,V;this.SM((C=p.state.Kd)==null?void 0:C.errorCode,new iH("There was a player error during this media layout.",{playerErrorCode:(V=p.state.Kd)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.UZ.hp(p)}; g.h.SM=function(p,C,V){this.UZ.RR(p,C,V)}; g.h.onFullscreenToggled=function(p){this.UZ.onFullscreenToggled(p)}; g.h.ri=function(p){this.UZ.ri(p)}; g.h.c$=function(p){this.UZ.c$(p)}; g.h.onVolumeChange=function(){this.UZ.onVolumeChange()}; g.h.Hz=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){}; g.h.hX=function(){}; g.h.R5=function(){};g.h=dF.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){this.UO.get().addListener(this);this.mx.get().addListener(this);var p=sf(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var C=sf(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.S){var V=this.UO.get().Kn.slice(-1)[0];V!==void 0&&(p=V.startSecs*1E3,C=(V.startSecs+V.zI)*1E3)}this.OW(p,C);var N;V=(N=this.pS.get().Ij)==null?void 0:N.clientPlaybackNonce;N=this.layout.eb.adClientDataEntry;ib(this.No.get(),{daiStateTrigger:{filledAdsDurationMs:C-p,contentCpn:V, adClientData:N}});var H=this.UO.get();H=mN1(H.V,p,C);H!==null&&(ib(this.No.get(),{daiStateTrigger:{filledAdsDurationMs:H-p,contentCpn:V,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:N}}),this.kG.get().UI(H,C))}; g.h.release=function(){this.x0();this.UO.get().removeListener(this);this.mx.get().removeListener(this)}; g.h.startRendering=function(){this.pW();this.callback.gy(this.slot,this.layout)}; g.h.jr=function(p,C){this.Sl(C);this.driftRecoveryMs!==null&&(hV(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(vUj(this)-sf(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.mx.get().N.e1()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.C1(this.slot,this.layout,C)}; g.h.OP=function(){return!1}; g.h.SK=function(p){var C=sf(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),V=sf(this.layout.clientMetadata,"metadata_type_layout_exit_ms");p*=1E3;if(C<=p&&p0&&A4(this.T(),C)}; g.h.u8=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 HP&&H.triggeringSlotId===p.slotId&&C.push(N)}C.length>0&&A4(this.T(),C)}; g.h.Vx=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 WS&&H.slotType===p.slotType&&H.T!==p.slotId&&C.push(N)}C.length>0&&A4(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 pj&&p.slotId===N.trigger.triggeringSlotId&&C.push(N);C.length>0&&A4(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 Cj)p.slotId===N.trigger.triggeringSlotId&&C.push(N);else if(N.trigger instanceof xP){var H=N.trigger;p.slotId===H.slotId&&this.C.has(H.triggeringLayoutId)&&C.push(N)}C.length>0&&A4(this.T(),C)}; g.h.S5=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 jB&&p.slotId===N.trigger.triggeringSlotId&&C.push(N);C.length>0&&A4(this.T(),C)}; g.h.E8=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 V9&&p.slotId===N.trigger.triggeringSlotId&&C.push(N);C.length>0&&A4(this.T(),C)}; g.h.wI=function(p,C){this.Y.add(C.layoutId)}; g.h.kB=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 YP)C.layoutId===H.trigger.triggeringLayoutId&&V.push(H);else if(H.trigger instanceof gF){var X=H.trigger;p.slotType===X.slotType&&C.layoutType===X.layoutType&&C.layoutId!==X.T&&V.push(H)}else H.trigger instanceof xP&&(X=H.trigger,C.layoutId===X.triggeringLayoutId&&this.S.has(X.slotId)&&V.push(H));V.length>0&&A4(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 Rl&&C.layoutId===H.trigger.triggeringLayoutId&&p.push(H),H.trigger instanceof zT){var X=H.trigger;C.layoutId===X.triggeringLayoutId&&X.T.includes(V)&&p.push(H)}p.length>0&&A4(this.T(),p)}; g.h.GI=function(){}; g.h.eH=function(){this.S.clear()}; g.h.H_=function(){};g.v(kx,g.z);kx.prototype.Uv=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new B("Tried to register duplicate trigger for slot.");if(!(C instanceof ol))throw new B("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in CloseRequestedTriggerAdapter");this.ix.set(C.triggerId,new hM(p,C,V,N))}; kx.prototype.JB=function(p){this.ix.delete(p.triggerId)};g.v(Yx,g.z);Yx.prototype.Uv=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new B("Tried to register duplicate trigger for slot.");if(!(C instanceof AV||C instanceof rF))throw new B("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.ix.set(C.triggerId,new hM(p,C,V,N))}; Yx.prototype.JB=function(p){this.ix.delete(p.triggerId)}; Yx.prototype.eH=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 AV&&d.trigger.F6===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 rF&&d.trigger.T!==p&&H.push(d);N.call(V,C,g.K(H));C.length&&A4(this.T(),C)}; Yx.prototype.H_=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 rF&&a.T===p&&H.push(d)}N.call(V,C,g.K(H));C.length&&A4(this.T(),C)};g.v(zd,g.z);g.h=zd.prototype;g.h.Uv=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new B("Tried to register duplicate trigger for slot.");var H="adtriggercuerange:"+C.triggerId;if(C instanceof $P)oYX(this,p,C,V,N,H,C.T.start,C.T.end,C.F6,C.visible);else if(C instanceof kP)oYX(this,p,C,V,N,H,0x7ffffffffffff,0x8000000000000,C.F6,C.visible);else throw new B("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in CueRangeTriggerAdapter");}; g.h.JB=function(p){var C=this.ix.get(p.triggerId);C&&this.f1.get().removeCueRange(C.cueRangeId);this.ix.delete(p.triggerId)}; g.h.onCueRangeEnter=function(p){var C=kfS(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.YW.trigger;if(V instanceof $P||V instanceof kP){if(Zs(this.context.x_.get())){var N=C.YW.slot,H=C.YW.layout,X={};this.context.Jg.Wz("cre",(X.ca=C.YW.category,X.tt=V.triggerType,X.st=N.slotType,X.lt=H==null?void 0:H.layoutType,X.cid=p,X))}A4(this.C(),[C.YW])}}}; g.h.onCueRangeExit=function(p){(p=kfS(this,p))&&(p=this.ix.get(p))&&this.T.delete(p.cueRangeId)}; g.h.hp=function(p){if(S2(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.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.W$=function(){}; g.h.onFullscreenToggled=function(){}; g.h.ri=function(){}; g.h.Hz=function(){}; g.h.c$=function(){}; g.h.onVolumeChange=function(){}; g.h.hX=function(){}; g.h.R5=function(){};g.v(RY,g.z);g.h=RY.prototype; g.h.Uv=function(p,C,V,N){if(this.C.has(C.triggerId)||this.V.has(C.triggerId))throw new B("Tried to re-register the trigger.");p=new hM(p,C,V,N);if(p.trigger instanceof wF)this.C.set(p.trigger.triggerId,p);else if(p.trigger instanceof nr)this.V.set(p.trigger.triggerId,p);else throw new B("Incorrect TriggerType: Tried to register trigger of type "+p.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.C.has(p.trigger.triggerId)&&p.slot.slotId===this.T&&A4(this.S(),[p])}; g.h.JB=function(p){this.C.delete(p.triggerId);this.V.delete(p.triggerId)}; g.h.XI=function(p){p=p.slotId;if(this.T!==p){var C=[];this.T!=null&&C.push.apply(C,g.K(xgv(this.V,this.T)));p!=null&&C.push.apply(C,g.K(xgv(this.C,p)));this.T=p;C.length&&A4(this.S(),C)}}; g.h.jN=function(){}; g.h.dA=function(){};g.v(na,g.z);g.h=na.prototype;g.h.Uv=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new B("Tried to register duplicate trigger for slot.");if(!(C instanceof Q4))throw new B("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.ix.set(C.triggerId,new hM(p,C,V,N))}; g.h.JB=function(p){this.ix.delete(p.triggerId)}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=function(){};g.v(e8,g.z);g.h=e8.prototype;g.h.GI=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&&A4(this.T(),V)}; g.h.Uv=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new B("Tried to register duplicate trigger for slot.");if(!(C instanceof QhS))throw new B("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in OpportunityEventTriggerAdapter");this.ix.set(C.triggerId,new hM(p,C,V,N))}; g.h.JB=function(p){this.ix.delete(p.triggerId)}; g.h.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.gy=function(){}; g.h.C1=function(){};g.v(P0,g.z);g.h=P0.prototype;g.h.Uv=function(p,C,V,N){p=new hM(p,C,V,N);if(C instanceof eI||C instanceof Lr||C instanceof PS||C instanceof BS||C instanceof WAV){if(this.ix.has(C.triggerId))throw new B("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 B("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in PrefetchTriggerAdapter");}; g.h.JB=function(p){this.ix.delete(p.triggerId)}; g.h.HR=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 Lr&&N.breakDurationMs){p=N.breakDurationMs;break}w6(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",p,V)}}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.OP=function(p){if(this.T){this.C&&this.C.stop();this.S&&g.HF(this.S);p=p.zI*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 eI&&N.breakDurationMs<=p&&N.breakDurationMs>C&&(C=N.breakDurationMs);p=C;if(p>0)return w6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",p,new Set,!0),w6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",p,new Set,!1),!0}return!1}; g.h.SK=function(){}; g.h.eH=function(p){this.T&&this.T.contentCpn!==p?(vE("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.T.contentCpn}),$x(this)):zsj(this)}; g.h.H_=function(p){this.T&&this.T.contentCpn!==p&&vE("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.T.contentCpn},!0);$x(this)}; g.h.W2=function(p){var C=this;if(this.T)vE("Unexpected multiple fetch instructions for the current content");else{this.T=p;p=nYu(p);this.C=new g.N8(function(){zsj(C)},p?p:6E5); this.C.start();this.S=new g.N8(function(){C.T&&(C.C&&(C.C.stop(),C.C.start()),YFa(C,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Rs9(this.T)); p=this.mx.get().getCurrentTimeSec(1,!1);for(var V=g.F(this.UO.get().Kn),N=V.next();!N.done;N=V.next())N=N.value,al(this.No.get(),"nocache","ct."+Date.now()+";cmt."+p+";d."+N.zI.toFixed(3)+";tw."+(N.startSecs-p)+";cid."+N.identifier+";")}}; g.h.CS=function(){g.z.prototype.CS.call(this);$x(this)};g.v(La,g.z);g.h=La.prototype;g.h.Uv=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new B("Tried to register duplicate trigger for slot.");if(!(C instanceof d2))throw new B("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.ix.set(C.triggerId,new hM(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.JB=function(p){this.ix.delete(p.triggerId);if(!(p instanceof d2))throw new B("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.HR=function(){}; g.h.u8=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.S5=function(){}; g.h.E8=function(){}; g.h.wI=function(){}; g.h.kB=function(){}; g.h.GI=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={YV:void 0},N=p.next())C.YV=N.value,N=new g.N8(function(H){return function(){var X=V.ix.get(H.YV.triggerId);A4(V.V(),[X])}}(C),C.YV.durationMs),N.start(),this.C.set(C.YV.triggerId,N)}}; g.h.C1=function(){};g.v(g6,g.z);g6.prototype.Uv=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new B("Tried to register duplicate trigger for slot.");if(!(C instanceof Il))throw new B("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in VideoTransitionTriggerAdapter.");this.ix.set(C.triggerId,new hM(p,C,V,N))}; g6.prototype.JB=function(p){this.ix.delete(p.triggerId)};B0.prototype.ob=function(p){return p.kind==="AD_PLACEMENT_KIND_START"};g.v(Cz,g.z);g.h=Cz.prototype;g.h.logEvent=function(p){this.w9(p)}; g.h.cz=function(p,C,V){this.w9(p,void 0,void 0,void 0,C,void 0,void 0,void 0,C.adSlotLoggingData,void 0,void 0,V)}; g.h.l8=function(p,C,V,N){this.w9(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.Pq=function(p,C,V,N){Gm(this.x_.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"trigger:",V,"slot:",C,"layout:",N);cU(this.T.get())&&this.w9(p,void 0,void 0,void 0,C,N?N:void 0,void 0,V,C.adSlotLoggingData,N?N.adLayoutLoggingData:void 0)}; g.h.vJ=function(p,C,V,N,H){this.w9(p,C,V,N,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H)}; g.h.jI=function(p,C,V,N){this.w9("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.w9=function(p,C,V,N,H,X,d,a,E,l,t,c){var T=this;c=c===void 0?0:c;Gm(this.x_.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"slot:",H,"layout:",X,"ping:",d,"Opportunity:",{opportunityType:C,associatedSlotId:V,J2Y:N,dGS: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||vE("Empty PACF event type",H,X);var J=cU(T.T.get()),S={eventType:p,eventOrder:++T.eventCount},D={}; H&&(D.slotData=t4(J,H));X&&(D.layoutData=Z1L(J,X));d&&(D.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:d.T.serializedAdPingMetadata,pingIndex:d.index});a&&(D.triggerData=lH(a.trigger,a.category));C&&(D.opportunityData=UMS(J,C,V,N));J={organicPlaybackContext:{contentCpn:Z5(T.pS.get(),1).clientPlaybackNonce}};J.organicPlaybackContext.isLivePlayback=Z5(T.pS.get(),1).p4;var Z;J.organicPlaybackContext.isMdxPlayback=(Z=Z5(T.pS.get(),1))==null?void 0:Z.isMdxPlayback; var f;if((f=Z5(T.pS.get(),1))==null?0:f.daiEnabled)J.organicPlaybackContext.isDaiContent=!0;var q;if(Z=(q=Z5(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){Gm(this.x_.get(),"html5_log_pacf_logging_errors")&&g.Vl(g.HW(),function(){vE(J instanceof Error?J:String(J),H,X,{pacf_message:"exception during pacf logging"})})}};var O_Y=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.v(j3,Cz);g.h=j3.prototype; g.h.cz=function(p,C,V){Cz.prototype.cz.call(this,p,C,V);Zs(this.x_.get())&&(V={},this.context.Jg.Wz("pacf",(V.et=p,V.st=C.slotType,V.si=C.slotId,V)))}; g.h.l8=function(p,C,V,N){var H=O_Y.has(p);Cz.prototype.l8.call(this,p,C,V,N);Zs(this.x_.get(),H)&&(N={},this.context.Jg.Wz("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.vJ=function(p,C,V,N,H){Cz.prototype.vJ.call(this,p,C,V,N,H);Zs(this.x_.get())&&(V={},this.context.Jg.Wz("pacf",(V.et=p,V.ot=C,V.ss=N==null?void 0:N.length,V)))}; g.h.Pq=function(p,C,V,N){Cz.prototype.Pq.call(this,p,C,V,N);if(Zs(this.x_.get())){var H={};this.context.Jg.Wz("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.jI=function(p,C,V,N){Cz.prototype.jI.call(this,p,C,V,N);if(Zs(this.x_.get(),!0)){var H={};this.context.Jg.Wz("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.w9=function(p,C,V,N,H,X,d,a,E,l,t){if(g.qz(this.x_.get().N.K())){var c=this.x_.get();c=g.Mz(c.N.K().experiments,"H5_async_logging_delay_ms")}else c=void 0;Cz.prototype.w9.call(this,p,C,V,N,H,X,d,a,E,l,t,c)};VC.prototype.clear=function(){this.T.clear()};XF.prototype.resolve=function(p){NO(this,p)}; XF.prototype.reject=function(p){HY(this,p)}; XF.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; XF.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,{p_:p},4);if(N.C!=2)return N.return(N.T);g.KY(N);return g.Dj(N,0)})}()}; var ldV=$T(function(p){return dr(p)?p instanceof XF:!1});var Tv=window.eT$||"pt-BR";mZ.prototype.c9=function(p){this.client=p}; mZ.prototype.T=function(){this.clear();this.csn=g.bz()}; mZ.prototype.clear=function(){this.V.clear();this.C.clear();this.S.clear();this.csn=null};FF.prototype.c9=function(p){g.NU(vY().c9).bind(vY())(p)}; FF.prototype.clear=function(){g.NU(vY().clear).bind(vY())()};g.h=S3.prototype;g.h.c9=function(p){this.client=p}; g.h.wT=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,rfP))==null?void 0:(X=H.screenVisualElement)==null?void 0:X.uiType);if(d){N=g.n(p==null?void 0:p.commandMetadata,lV1);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,h6P);if(N){if(H=HFv(N,"VIDEO")){N={token:H,videoId:N.videoId};break a}}else if(H&&(N=HFv(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,rfP))==null?void 0:l.loggingExpectations)||void 0}DF(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))?(tzY(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]):aSX(this,p,C,V)};fz.prototype.fetch=function(p,C,V){var N=this,H=tTS(p,C,V);return new Promise(function(X,d){function a(){if(V==null?0:V.LV)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)})}; fz.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.LV)&&V)throw new g.Jd(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};Oi.getInstance=function(){var p=g.zV("ytglobal.storage_");p||(p=new Oi,g.YH("ytglobal.storage_",p));return p}; Oi.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(caY()):N.return()})}; g.YH("ytglobal.storageClass_",Oi);E2.prototype.Lq=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":MT9(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={},Gdv=g.HC("yt-player-local-media",{MS:(wK.index={Ck:2},wK.media={Ck:2},wK.captions={Ck: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 yc2={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 qL1=LM.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(qL1){var IBc=parseFloat(qL1[1]);if(IBc<100){$R=IBc;break a}}var b_F=LM.match("("+Object.keys(yc2).join("|")+")");$R=b_F?yc2[b_F[0]]:0}else $R=void 0}var Ue=$R,ZW=Ue>=0;var EbH=window;var JaQ=Fu(function(){var p,C;return(C=(p=window).matchMedia)==null?void 0:C.call(p,"(prefers-reduced-motion: reduce)").matches});var qO;g.yC=new Aq;qO=0;var IH={lG:function(p){p.reverse()}, qF:function(p,C){p.splice(0,C)}, CQ:function(p,C){var V=p[0];p[0]=p[C%p.length];p[C%p.length]=V}};var SCa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var gB=ZFY()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.G4?!0:!1;var rMj={Qdx:"adunit",rX$:"detailpage",Ll_:"editpage",Gpa:"embedded",Tbo:"leanback",siV:"previewpage",VS$:"profilepage",Hs:"unplugged",CFr:"playlistoverview",y9S:"sponsorshipsoffer",w_n:"shortspage",n9Y:"handlesclaiming",fr$:"immersivelivepage",CM_:"creatormusic",W8V:"immersivelivepreviewpage",U5r:"admintoolyurt",Qi_:"shortsaudiopivot"};var gK;gK={};g.nz=(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 bFL={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var xz1={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},YfQ={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"},maa={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var mOY={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Gv.prototype.getLanguageInfo=function(){return this.K4}; g.Gv.prototype.getXtags=function(){if(!this.xtags){var p=this.id.split(";");p.length>1&&(this.xtags=p[1])}return this.xtags}; g.Gv.prototype.toString=function(){return this.K4.name}; g.Gv.prototype.getLanguageInfo=g.Gv.prototype.getLanguageInfo;pw.prototype.rI=function(p){return this.C===p.C&&this.T===p.T&&this.V===p.V&&this.reason===p.reason&&(!jo||this.qo===p.qo)}; pw.prototype.isLocked=function(){return this.V&&!!this.C&&this.C===this.T}; pw.prototype.compose=function(p){if(p.V&&VS(p))return xB;if(p.V||VS(this))return p;if(this.V||VS(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;jo&&(N=this.qo!==0&&p.qo!==0?Math.min(this.qo,p.qo):this.qo===0?p.qo:this.qo);return jo&&C===this.C&&V===this.T&&N===this.qo||!jo&&C===this.C&&V===this.T?this:jo?new pw(C,V,!1,V===this.T&&N===this.qo?this.reason:p.reason,N):new pw(C,V,!1,V===this.T?this.reason:p.reason)}; pw.prototype.S=function(p){return!p.video||jo&&this.qo!==0&&this.qo=0}; g.h.hx=function(){var p=this.segments[this.segments.length-1];return p?p.endTime:NaN}; g.h.m6=function(){return this.segments[0].startTime}; g.h.fQ=function(){return this.segments.length}; g.h.SS=function(){return 0}; g.h.Qx=function(p){return(p=this.bU(p))?p.LS:-1}; g.h.Zi=function(p){return(p=this.iX(p))?p.sourceURL:""}; g.h.getStartTime=function(p){return(p=this.iX(p))?p.startTime:0}; g.h.l5=function(p){return this.getStartTime(p)+this.getDuration(p)}; g.h.TD=CY(1);g.h.isLoaded=function(){return this.segments.length>0}; g.h.iX=function(p){if(this.T&&this.T.LS===p)return this.T;p=g.Hy(this.segments,new Zy(p,0,0,0,""),function(C,V){return C.LS-V.LS}); return this.T=p>=0?this.segments[p]:null}; g.h.bU=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.er();V>1&&B1H(this.segments);for(V=V>0?0:-V+1;Vp.LS&&this.index.Lk()<=p.LS+1}; g.h.update=function(p,C,V){this.index.append(p);ll1(this.index,V);p=this.index;p.C=C;p.V="update"}; g.h.Vf=function(){return this.M$()?!0:Kp.prototype.Vf.call(this)}; g.h.jz=function(p,C){var V=this.index.Zi(p),N=this.index.getStartTime(p),H=this.index.getDuration(p),X;C?H=X=0:X=this.info.qo>0?this.info.qo*H:1E3;return new oZ([new fp(3,this,void 0,"liveCreateRequestInfoForSegment",p,N,H,0,X,!C)],V)}; g.h.Aq=function(){return this.M$()?0:this.initRange.length}; g.h.f2=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.zI:0,E=Date.parse(dVy(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 HrL(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 kg(D,S,Z,f,oKc[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.v(wz,g.Uc);g.h=wz.prototype;g.h.Qe=function(){return this.uc}; g.h.R9=function(p,C){p=$E(this,p);return p>=0&&(C||!this.segments[p].pending)}; g.h.Lk=function(){return this.A9?this.segments.length?this.bU(this.m6()).LS:-1:g.Uc.prototype.Lk.call(this)}; g.h.m6=function(){if(this.EO)return 0;if(!this.A9)return g.Uc.prototype.m6.call(this);if(!this.segments.length)return 0;var p=Math.max(g.wY(this.segments).endTime-this.iq,0);return this.AE>0&&this.bU(p).LS0)return this.fp/1E3;if(!this.segments.length)return g.Uc.prototype.hx.call(this);var p=this.er();if(!this.A9||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 Zy(p,Math.max(0,C.startTime-(C.LS-p)*this.uc),this.uc,0,"sq/"+p,void 0,void 0,!0)}return this.EO?Math.min(this.iq,p.endTime):p.endTime}; g.h.fQ=function(){return this.A9?this.segments.length?this.er()-this.Lk()+1:0:g.Uc.prototype.fQ.call(this)}; g.h.er=function(){var p=Math.min(this.c6,Math.max(g.Uc.prototype.er.call(this),this.yP)),C=this.iq*1E3;C=this.fp>0&&this.fp0&&this.yP>0&&!C&&(C=this.bU(this.iq))&&(p=Math.min(C.LS-1,p));return p}; g.h.Wj=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.h.ip=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.Er&&p.LS%(300/this.uc)===0){var V=this.segments[0].LS,N=Math.floor(this.Er/this.uc);p=p.LS-N;C=-(C+1)-N;C>0&&p>V&&(this.segments=this.segments.slice(C))}}; g.h.JR=function(){return this.yP}; g.h.SN=function(p){return PR?!this.C&&p>=0&&this.er()<=p:g.Uc.prototype.SN.call(this,p)}; g.h.bU=function(p){if(!this.A9)return g.Uc.prototype.bU.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.uc+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.iX(C)}; g.h.iX=function(p){if(!this.A9)return g.Uc.prototype.iX.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.uc;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 Zy(p,N,C,0,"sq/"+p,void 0,void 0, !0)}; var PR=!1;g.v(Lp,zn);g.h=Lp.prototype;g.h.jB=function(){return!0}; g.h.Vf=function(){return!0}; g.h.d2=function(p){return this.MQ()&&p.V&&!p.S||!p.T.index.SN(p.LS)}; g.h.eL=function(){}; g.h.HS=function(p,C){return typeof p!=="number"||isFinite(p)?zn.prototype.HS.call(this,p,C===void 0?!1:C):new oZ([new fp(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.gR,void 0,this.gR*this.info.qo)],"")}; g.h.jz=function(p,C){var V=V===void 0?!1:V;if(this.index.R9(p))return zn.prototype.jz.call(this,p,C);var N=this.index.getStartTime(p),H=Math.round(this.gR*this.info.qo),X=this.gR;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.v(gz,Kp);g.h=gz.prototype;g.h.Lp=function(){return!1}; g.h.MQ=function(){return!1}; g.h.jB=function(){return!1}; g.h.eL=function(){return new oZ([new fp(1,this,void 0,"otfInit")],this.W)}; g.h.V4=function(){return null}; g.h.hY=function(p){this.d2(p);return cV1(this,IZ(p),!1)}; g.h.HS=function(p,C){C=C===void 0?!1:C;p=this.index.Qx(p);C&&(p=Math.min(this.index.er(),p+1));return cV1(this,p,!0)}; g.h.RL=function(p){p.info.type===1&&(this.T||(this.T=Y9(p.T)),p.C&&p.C.uri==="http://youtube.com/streaming/otf/durations/112015"&&TF1(this,p.C))}; g.h.d2=function(p){return p.V===0?!0:this.index.er()>p.LS&&this.index.Lk()<=p.LS+1}; g.h.Aq=function(){return 0}; g.h.f2=function(){return!1};WR.prototype.a6=function(){return this.T.a6()};g.h=g.Cb.prototype;g.h.R9=function(p){return p<=this.er()}; g.h.SS=function(p){return this.offsets[p]}; g.h.getStartTime=function(p){return this.jq[p]/this.T}; g.h.l5=function(p){return this.getStartTime(p)+this.getDuration(p)}; g.h.TD=CY(0);g.h.Ft=function(){return NaN}; g.h.getDuration=function(p){p=this.pz(p);return p>=0?p/this.T:-1}; g.h.pz=function(p){return p+1=0}; g.h.hx=function(){return this.C?this.jq[this.count]/this.T:NaN}; g.h.m6=function(){return 0}; g.h.fQ=function(){return this.count}; g.h.Zi=function(){return""}; g.h.Qx=function(p){p=g.Hy(this.jq.subarray(0,this.count),p*this.T);return p>=0?p:Math.max(0,-p-2)}; g.h.isLoaded=function(){return this.er()>=0}; g.h.Kz=function(p,C){if(p>=this.er())return 0;var V=0;for(C=this.getStartTime(p)+C;pthis.getStartTime(p);p++)V=Math.max(V,DVs(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.jq;this.jq=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.RL=function(p){if(p.info.type===1){if(this.T)return;this.T=Y9(p.T)}else if(p.info.type===2){if(this.W||this.index.er()>=0)return;if(g.Gx(this.info)){var C=this.index,V=p.a6();p=p.info.range.start;var N=g.nw(V,0,1936286840);V=uY9(N);C.T=V.P8;var H=V.w0;C.offsets[0]=V.L_+p+N.size;C.jq[0]=H;C.C=!0;p=V.ZB.length;for(N=0;N0&&p===X[0].kd)for(p=0;p=C+V)break}H.length||g.nm(new g.Bw("b189619593",""+p,""+C,""+V));return new oZ(H)}; g.h.l$=function(p){for(var C=this.Ty(p.info),V=p.info.range.start+p.info.C,N=[],H=0;H=this.index.SS(V+1);)V++;return this.lP(V,C,p.V).wV}; g.h.d2=function(p){p.v$();return this.Vf()?!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.Ty(p),p=p[p.length-1]);var V=0,N=p.range.start+p.C+p.V;p.type===3&&(p.v$(),V=p.LS,N===p.range.end+1&&(V+=1));return this.lP(V,N,C)}; g.h.hY=function(){return null}; g.h.HS=function(p,C,V){C=C===void 0?!1:C;p=this.index.Qx(p);C&&(p=Math.min(this.index.er(),p+1));return this.lP(p,this.index.SS(p),0,V)}; g.h.Lp=function(){return!0}; g.h.MQ=function(){return!0}; g.h.jB=function(){return!1}; g.h.Aq=function(){return this.indexRange.length+this.initRange.length}; g.h.f2=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var QH={},nPa=(QH.COLOR_PRIMARIES_BT709="bt709",QH.COLOR_PRIMARIES_BT2020="bt2020",QH.COLOR_PRIMARIES_UNKNOWN=null,QH.COLOR_PRIMARIES_UNSPECIFIED=null,QH),rK={},Zry=(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 yVY=/action_display_post/;var qGa,dB,io;g.v(hz,g.ca);g.h=hz.prototype;g.h.isLoading=function(){return this.state===1}; g.h.iT=function(){return this.state===3}; g.h.Jir=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 hhV);lQe(this.timeline,p);this.publish("refresh");for(p=0;p=0?t=uw(T):c=c+"?range="+T}E.call(a,new Zy(l.LS,l.startSecs,l.zI,l.T,c,t,l.C))}N=H}V.update(N,this.isLive,this.l_)}tIY(this.timeline);return!0}this.duration=XSe(RZ(p,"mediaPresentationDuration")); a:{for(p=0;p0))return this.Vi()-p}}p=this.T;for(var C in p){var V=p[C].index;if(V.isLoaded()&&!Nf(p[C].info.mimeType))return V.m6()}return 0}; g.h.getStreamTimeOffset=function(){return this.D}; g.h.Ft=function(p){for(var C in this.T){var V=this.T[C].index;if(V.isLoaded()){var N=V.Qx(p),H=V.Ft(N);if(H)return H+p-V.getStartTime(N)}}return NaN}; var Kb=null,k9f,D8=!((k9f=navigator.mediaCapabilities)==null||!k9f.decodingInfo),gP9={commentary:1,alternate:2,dub:3,main:4};var yb=new Set,uo=new Map;fb.prototype.clone=function(p){return new fb(this.flavor,p,this.C,this.experiments)}; fb.prototype.jb=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 x1y={},Y$=(x1y.playready=["com.youtube.playready","com.microsoft.playready"],x1y.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],x1y),BD={},GXa=(BD.widevine="DRM_SYSTEM_WIDEVINE",BD.fairplay="DRM_SYSTEM_FAIRPLAY",BD.playready="DRM_SYSTEM_PLAYREADY",BD),GU={},YL8=(GU.widevine=1,GU.fairplay=2,GU.playready=3,GU);R5.prototype.pM=function(p,C){C=C===void 0?1:C;this.I9+=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 iju;return p}; g.h.toString=function(){return""};g.h=tB1.prototype;g.h.isActive=function(){return!1}; g.h.pG=function(){}; g.h.JS=function(){}; g.h.dG=function(p,C){return C}; g.h.Hx=function(){}; g.h.nQ=function(){}; g.h.DI=function(p,C){return C()}; g.h.Wi=function(){return{}}; g.h.toString=function(){return""};var pB,zjv,Rjy,nKc,ej1,PgP,CB,RT,l2,hmy,$$;pB=new tB1;zjv=!!+CO("html5_enable_profiler");Rjy=!!+CO("html5_onesie_enable_profiler");nKc=!!+CO("html5_offline_encryption_enable_profiler");ej1=!!+CO("html5_performance_impact_profiling_timer_ms");PgP=!!+CO("html5_drm_enable_profiler");CB=zjv||Rjy||nKc||ej1||PgP?new sdQ:pB;g.eD=zjv?CB:pB;RT=Rjy?CB:pB;l2=nKc?CB:pB;hmy=ej1?CB:pB;$$=PgP?CB:pB;var wB;g.v(eO,g.z); 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=dBe(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 wTP={"":"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"};F$9.prototype.G=function(p){return this.experiments.OY(p)};var G$L={RED:"red",Wbn:"white"};ST1.prototype.OY=function(p){p=this.flags[p];JSON.stringify(p);return p==="true"};var ugX=Promise.resolve(),OjQ=window.queueMicrotask?window.queueMicrotask.bind(window):Zje;QM.prototype.canPlayType=function(p,C){p=p.canPlayType?p.canPlayType(C):!1;BW?p=p||$1F[C]:Ue===2.2?p=p||LKy[C]:Wd()&&(p=p||gK0[C]);return!!p}; QM.prototype.isTypeSupported=function(p){return this.a$?window.cast.receiver.platform.canDisplayType(p):or(p)}; var LKy={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},gK0={"application/x-mpegURL":"maybe"},$1F={"application/x-mpegURL":"maybe"};g.v(CI,g.ca);CI.prototype.add=function(p,C){if(!this.items[p]&&(C.cJ||C.H4||C.PZ)){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.oa(this.items)};g.v(jH,g.UF);jH.prototype.T=function(p,C){return g.UF.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.UF.prototype.C.call(N,p,C,V),2):H.return(H.T)})}; g.v(Vj,g.fW);Vj.prototype.encrypt=function(p,C){return g.fW.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.ax=function(){return g.eL(this.data.subarray(0,this.pos))}; Xs.prototype.reset=function(){this.pos=0};dG.prototype.Du=function(p,C){var V=Math.pow(this.alpha,p);this.T=C*(1-V)+V*this.T;this.C+=p}; dG.prototype.lc=function(){return this.T/(1-Math.pow(this.alpha,this.C))};iL.prototype.Du=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.lc=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.Du=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.Vl=!0}; hR.prototype.percentile=function(p){var C=this;if(!this.V&&this.C===0)return 0;this.Vl&&(g.hB(this.W,function(V,N){return C.values[V]-C.values[N]}),this.Vl=!1); return this.values[this.W[Math.round(p*((this.V?this.T:this.C)-1))]]||0}; hR.prototype.lc=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.v(se,g.z);se.prototype.Y_=function(){var p;(p=this.Ga)==null||p.start();if(JR(this)&&this.policy.J){var C;(C=this.lJ)==null||C.Dw()}};Pnj.prototype.G=function(p){return this.experiments.OY(p)};g.v($BQ,g.z);var B2L="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),N6S={VUx:"caoe",Su_:"capsv",HxV:"cbrand",p$a:"cbr",Ryk:"cbrver",Qxn:"cchip",qun:"ccappver",cg$:"ccrv",wzV:"cfrmver",Nhe:"c",e4Y:"cver",h4n:"ctheme",GSY:"cplayer",hOS:"cmodel",lMa:"cnetwork",j8_:"cos",XIr:"cosver",Tok:"cplatform",hLr:"crqyear"};g.v(xS,g.z);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=WGQ())&&(C.ebc=p));return g.BX(X,C)}; g.h.getVideoEmbedCode=function(p,C,V,N){C="https://"+g.zM(this)+"/embed/"+C;N&&(C=g.BX(C,{list:N}));N=V.width;V=V.height;C=HG(C);p=HG(p!=null?p:"YouTube video player");return'')}; g.h.supportsGaplessAudio=function(){return g.An&&!BW&&LO()>=74||g.k$&&g.JB(68)?!0:!1}; g.h.supportsGaplessShorts=function(){return!this.G("html5_enable_short_gapless")||this.Y_||g.D1?!1:!0}; g.h.getPlayerType=function(){return this.T.cplayer}; g.h.Gk=function(){return this.eZ}; var ia1=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],V8y=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],X0Y=[19];var jj={},aY9=(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["773"]={},jj),Vo={},heu=(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.i='audio/mp4; codecs="iamf.001.001.Opus"',Vo),N9={},sYa=(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.eP=function(){return null}; g.h.R4=function(){var p=this.eP();return p?(p=g.sk(p.sR),Number(p.expire)):NaN}; g.h.IJ=function(){}; g.h.getHeight=function(){return this.T.video.height};cLs.prototype.build=function(){JLS(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="'))+(M8S(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=WK1,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?WK1: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="')+(M8S(a,d)+'",')+(V?'SUBTITLES="'+V+'",':"")+"CLOSED-CAPTIONS=NONE",d.fps>1&&(a+= ",FRAME-RATE="+d.fps),d.jD&&(a+=",VIDEO-RANGE="+d.jD),p.push(a),p.push(NF(this,H.url,"")));return p.join("\n")}; var WK1="text";g.v(H7,jw);H7.prototype.R4=function(){return this.expiration}; H7.prototype.eP=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 Bc(p)}return this.sR};g.v(Xt,jw);Xt.prototype.eP=function(){return new Bc(this.C.i9())}; Xt.prototype.IJ=function(){this.C=Dy(this.C)};g.v(dP,jw);dP.prototype.eP=function(){return new Bc(this.C)};var HL={},fYe=(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.rI=function(p){return p?this.toString()===p.toString():!1}; g.h.GN=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var bay={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},ALu={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},oxe=/^(\d*)_((\d*)_?(\d*))$/;var x3V={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},YAj={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var X8={},DOs=(X8.ALWAYS=1,X8.BY_REQUEST=3,X8.UNKNOWN=void 0,X8),d4={},y5Y=(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 b5Y; b5Y=function(p){for(var C=Object.keys(p),V={},N=0;NN-C?-1:p}; g.h.Ss=function(){return this.C.er()}; g.h.Rh=function(){return this.C.Lk()}; g.h.gE=function(p){this.C=p};g.v(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 A59=[],Cf=new Set;g.v(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.s8=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.h.hasSupportedAudio51Tracks=function(){var p;return!((p=this.W1)==null||!p.F$)}; 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.F4()&&(p=0);var C;return(C=g.zW("yt-player-audio51"))!=null?C:p}; g.h.Vy=function(){this.fS()||(this.T.C||this.T.unsubscribe("refresh",this.Vy,this),this.Ph(-1))}; g.h.Ph=function(p){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var C=wSa(this.T,this.ym);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.m6());this.publish("cuepointupdated",C,p);this.ym+=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.Op.start=this.Kx, this.Op.end=V+3)}}}; g.h.F4=function(){return this.pA!==void 0?this.pA:this.pA=!!this.vV||!!this.T&&Ec(this.T)}; g.h.gK=function(p){var C=this;if(this.fS())return xD();this.QZ=this.UY=this.V=null;W7(this,"html5_high_res_logging_always")&&(this.I$.eZ=!0);return QHe(this,p).then(void 0,function(){return r59(C,p)}).then(void 0,function(){return Bre(C)}).then(void 0,function(){return p1s(C)})}; g.h.uf=function(){if(this.cotn)return null;var p=g.Of(this.I$)||this.G("web_l3_storyboard");if(!this.QV)if(this.playerResponse&&this.playerResponse.storyboards){var C=this.playerResponse.storyboards,V=C.playerStoryboardSpecRenderer;V&&V.spec?this.QV=new AA(V.spec,this.lengthSeconds,void 0,!1,p):(C=C.playerLiveStoryboardSpecRenderer)&&C.spec&&this.T&&(V=Bwu(this.T.T).index)&&(this.QV=new kB(C.spec,this.T.isLive,V,p))}else this.XL?this.QV=new AA(this.XL,this.lengthSeconds,void 0,!1,p):this.sA&&this.T&& (C=Bwu(this.T.T).index)&&(this.QV=new kB(this.sA,this.T.isLive,C,p));return this.QV}; 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.XL||this.sA}; g.h.Vi=function(){return this.T&&!isNaN(this.T.Vi())?this.T.Vi():Ge(this)?0:this.lengthSeconds}; g.h.m6=function(){return this.T&&!isNaN(this.T.m6())?this.T.m6():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.Qx(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.Te)}; g.h.UC=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.vz&&!this.iy}; g.h.b8=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.jH)}; 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.gO||[]:[]}; g.h.getAudioTrack=function(){var p=this;if(this.S&&!px(this.S))return g.L0(this.getAvailableAudioTracks(),function(N){return N.id===p.S.id})||this.oz; if(this.gO){if(!this.e6)for(var C=g.F(this.gO),V=C.next();!V.done;V=C.next())if(V=V.value,V.K4.getIsDefault()){this.e6=V;break}return this.e6||this.oz}return this.oz}; g.h.getPlayerResponse=function(){return this.playerResponse}; g.h.getWatchNextResponse=function(){return this.Ga}; g.h.getHeartbeatResponse=function(){return this.Nf}; g.h.Eh=function(){return this.watchUrl?this.watchUrl:this.I$.getVideoUrl(this.videoId)}; g.h.xo=function(){return!!this.T&&(AVV(this.T)||oPL(this.T)||kTV(this.T))}; g.h.getEmbeddedPlayerResponse=function(){return this.Ix}; g.h.fq=function(){return(this.eventLabel||this.I$.Wr)==="shortspage"}; g.h.isAd=function(){return this.FE||!!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.P5=function(){return uFH(this)?this.y_:this.l6||this.Qo}; g.h.bb=function(){return this.Uf||this.Qo}; g.h.PJ=function(){return W7(this,"html5_samsung_vp9_live")}; g.h.k_=function(p,C,V){this.publish("ctmp",p,C,V)}; g.h.eY=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.OV()||N.info.UV())if(N=N.index,N.isLoaded()){X=N.Qx(C);N=N.Ft(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.Gs=null;delete this.OF;delete this.accountLinkingConfig;delete this.T;this.V=this.Nf=this.playerResponse=this.Ga=null;this.cR=this.adaptiveFormats="";delete this.botguardData;this.Qn=this.suggestions=this.Hb=null};var fya={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Ow1={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},ZwV={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},KwS={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"},uP1={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Di9={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"},UiS={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.v(J_,g.z);g.h=J_.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&&jY(V,EKF))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.WP&&!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.YG=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.z.prototype.CS.call(this)};g.v(KT,g.IL);KT.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.v(Dg,g.z);Dg.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 krv=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.v(Zg,J_);g.h=Zg.prototype;g.h.getApiInterface=function(){return Array.from(this.state.Y)}; g.h.wN=function(p,C){this.state.W.subscribe(p,C)}; g.h.PWe=function(p,C){this.state.W.unsubscribe(p,C)}; g.h.getPlayerState=function(p){return OlX(this.app,p)}; g.h.ZA=function(){return OlX(this.app)}; g.h.ypa=function(p,C,V){O5(this)&&(n7(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?uZV(this.app,p):p?this.app.getCurrentTime(p,C,V):this.app.getCurrentTime(p)}; g.h.Og=function(){return this.app.getCurrentTime(1)}; g.h.jk=function(){var p=this.app.Ft(1);return isNaN(p)?this.getCurrentTime(1):p}; g.h.wU=function(){return this.app.getDuration(1)}; g.h.If=function(p,C){p=g.M$(Math.floor(p),0,100);isFinite(p)&&bj(this.app,{volume:p,muted:this.isMuted()},C)}; g.h.vB_=function(p){this.If(p,!1)}; g.h.NV=function(p){bj(this.app,{muted:!0,volume:this.getVolume()},p)}; g.h.yQe=function(){this.NV(!1)}; g.h.KK=function(p){fT(this.app)&&!this.G("embeds_enable_emc3ds_muted_autoplay")||bj(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},p)}; g.h.nqn=function(){fT(this.app)&&this.G("embeds_enable_emc3ds_muted_autoplay")||this.KK(!1)}; g.h.getPlayerMode=function(){var p={};this.app.getVideoData().g6&&(p.pfp={enableIma:g.t_(this.app.getVideoData())&&this.app.RN().allowImaMonetization,autoplay:Nh(this.app.RN()),mutedAutoplay:this.app.RN().mutedAutoplay});return p}; g.h.L2=function(){var p=this.app.getPresentingPlayerType();if(this.G("html5_enable_ssap_autoplay_debug_logging")){var C;(C=this.app.X$())==null||C.k_("ssap",{pbintl:p})}if(p===2&&!this.app.lW()&&(C=$W(this.app.Tk()),!UHX(C)||fxe(C)))return;p===3?nT(this.app.Tk()).Xk("control_play"):this.app.K().G("html5_ssap_ignore_play_for_ad")&&g.pf(this.app.RN())&&p===2||this.app.playVideo(p)}; g.h.Mdn=function(){n7(this.app,!0,1);this.L2()}; g.h.pauseVideo=function(p){var C=this.app.getPresentingPlayerType();if(C!==2||this.app.lW()||UHX($W(this.app.Tk())))C===3?nT(this.app.Tk()).Xk("control_pause"):this.app.pauseVideo(C,p)}; g.h.BIn=function(){var p=this.app,C=!1;p.yn.uJ&&(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.Le?Prf:p.supportsVarispeedExtendedFeatures?wyG:e6c:[1]}; g.h.getPlaybackQuality=function(p){return(p=yk(this.app,p))?p.getPlaybackQuality():"unknown"}; g.h.rpS=function(){}; g.h.getAvailableQualityLevels=function(p){return(p=yk(this.app,p))?(p=g.bZ(p.Ox(),function(C){return C.quality}),p.length&&(p[0]==="auto"&&p.shift(),p=p.concat(["auto"])),p):[]}; g.h.Bk=function(){return this.getAvailableQualityLevels(1)}; g.h.CD=function(){return this.yg()}; g.h.Au=function(){return 1}; g.h.getVideoLoadedFraction=function(p){return this.app.getVideoLoadedFraction(p)}; g.h.yg=function(){return this.getVideoLoadedFraction()}; g.h.rF=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=ux(p,C,V);return this.app.loadVideoByPlayerVars(p,N)}; g.h.Gaa=function(p,C,V){p=this.loadVideoById(p,C,V,1);n7(this.app,p,1)}; g.h.cueVideoById=function(p,C,V,N){p=ux(p,C,V);this.app.cueVideoByPlayerVars(p,N)}; g.h.hf=function(p,C,V){this.cueVideoById(p,C,V,1)}; g.h.loadVideoByUrl=function(p,C,V,N){p=ogH(p,C,V);return this.app.loadVideoByPlayerVars(p,N)}; g.h.HS$=function(p,C,V){p=this.loadVideoByUrl(p,C,V,1);n7(this.app,p,1)}; g.h.cueVideoByUrl=function(p,C,V,N){p=ogH(p,C,V);this.app.cueVideoByPlayerVars(p,N)}; g.h.pu=function(p,C,V){this.cueVideoByUrl(p,C,V,1)}; g.h.So=function(){var p=this.app.K();if(p.b_)return"";var C=this.app.RN(),V=void 0;C.isLivePlayback||(V=Math.floor(this.app.getCurrentTime(1)));return p.getVideoUrl(C.videoId,this.getPlaylistId()||void 0,V)}; g.h.QN=function(){return this.app.getDebugText()}; g.h.getVideoEmbedCode=function(){var p=this.app.K();if(p.b_)return"";var C=this.app.RN();return p.getVideoEmbedCode(C.isPrivate?"":C.title,this.app.RN().videoId,this.app.dV().getPlayerSize(),this.getPlaylistId()||void 0)}; g.h.Jn=function(p,C,V){return ohV(this.app,p,C,V)}; g.h.removeCueRange=function(p){return xC9(this.app,p)}; g.h.loadPlaylist=function(p,C,V,N){this.app.loadPlaylist(p,C,V,N)}; g.h.Lxo=function(p,C,V,N){this.loadPlaylist(p,C,V,N);n7(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.TyY=function(){this.nextVideo();n7(this.app,!0,1)}; g.h.previousVideo=function(p){this.app.previousVideo(p)}; g.h.rEx=function(){this.previousVideo();n7(this.app,!0,1)}; g.h.playVideoAt=function(p){this.app.playVideoAt(p)}; g.h.cia=function(p){this.playVideoAt(p);n7(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.T6=function(){var p=this.app.getPlaylist();if(!p)return null;for(var C=[],V=0;V=400)if(p=this.RN(),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.F0(this.T),this.N.K().G("web_player_autonav_toggle_always_listen")||XRy(this), C=this.RN(),this.O6(C.autonavState),this.N.logVisibility(this.element,this.T));else if(this.T=!1,this.F0(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.O6=function(p){ip1(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);dtj(this)}; g.h.onClick=function(){this.isChecked=!this.isChecked;this.N.O1(this.isChecked?2:1);dtj(this);if(ip1(this)){var p=this.RN().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.RN=function(){return this.N.getVideoData(1)};g.v(hPL,hh);g.v(TJ,g.H3);TJ.prototype.onClick=function(){this.enabled&&(Ml(this,!this.checked),this.publish("select",this.checked))}; TJ.prototype.getValue=function(){return this.checked}; TJ.prototype.setEnabled=function(p){(this.enabled=p)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var a0S=["en-CA","en","es-MX","fr-CA"];g.v(DM,TJ);DM.prototype.Pr=function(p){p?this.T||(this.xM.iJ(this),this.T=!0):this.T&&(this.xM.i8(this),this.T=!1);this.T&&Ml(this,mGv())}; DM.prototype.S=function(){g.tk(this.element,"ytp-menuitem-highlight-transition-enabled")}; DM.prototype.V=function(p){var C=mGv();p!==C&&(C=g.$l(),Ww(190,p),Ww(192,!0),C.save(),this.N.Jk("cinematicSettingsToggleChange",p))}; DM.prototype.CS=function(){this.T&&this.xM.i8(this);TJ.prototype.CS.call(this)};g.v(uT,hh);uT.prototype.updateCinematicSettings=function(p){this.T=p;var C;(C=this.menuItem)==null||C.Pr(p);this.api.publish("onCinematicSettingsVisibilityChange",p)};g.v(ZM,hh);ZM.prototype.AZ=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.v(UO,hh);UO.prototype.setCreatorEndscreenVisibility=function(p){var C;(C=Q$(this.api.Tk()))==null||C.F0(p)}; UO.prototype.T=function(p){function C(N){N==="creatorendscreen"&&(N=Q$(V.api.Tk()))&&N.s__(V.hideButton)} var V=this;this.hideButton=p;this.events.U(this.api,"modulecreated",C);C("creatorendscreen")};g.v(fc,TJ);fc.prototype.V=function(p){this.S(p?1:0)}; fc.prototype.C=function(){var p=this.hasDrcAudioTrack(),C=this.T()===1&&p;Ml(this,C);this.setEnabled(p)}; fc.prototype.CS=function(){this.xM.i8(this);TJ.prototype.CS.call(this)};g.v(OO,hh);OO.prototype.getDrcUserPreference=function(){return this.T}; OO.prototype.setDrcUserPreference=function(p){g.Yl("yt-player-drc-pref",p,31536E3);p!==this.T&&(this.T=p,this.updateEnvironmentData(),this.C()&&this.api.Mc())}; OO.prototype.updateEnvironmentData=function(){this.api.K().FF=this.T===1}; OO.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 xo(V,function(H){var X;return H.audio.T&&((X=H.K4)==null?void 0:X.id)===N})}return xo(V,function(H){var X; return((X=H.audio)==null?void 0:X.T)===!0})};g.v(y7,hh);y7.prototype.onVideoDataChange=function(){var p=this,C=this.api.getVideoData();this.api.PV("embargo",1);var V=C==null?void 0:C.w3.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(V==null?0:V.length)?cWL(this,V.filter(function(N){return t5s(p,N)})):(C==null?0:C.cueRanges)&&cWL(this,C.cueRanges.filter(function(N){return t5s(p,N)}))}; y7.prototype.C=function(p){return p.embargo!==void 0}; y7.prototype.CS=function(){hh.prototype.CS.call(this);this.T={}};g.v(ql,hh); ql.prototype.addEmbedsConversionTrackingParams=function(p){var C=this.api.K(),V=C.widgetReferrer,N=C.F$,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.v(Tz1,hh);g.v(M5s,hh);g.v(I8,g.z);I8.prototype.CS=function(){g.z.prototype.CS.call(this);this.T=null;this.C&&this.C.disconnect()};g.v(mt9,hh);g.v(bT,g.w);bT.prototype.show=function(){g.w.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; bT.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=vEe(N),g.r(this.api.getPlayerStateObject(),128)||p==="dataloaderror"||!C?(this.C=0,Ah(this),this.hide()):(p=(C.remainingTimeSecs||0)*1E3,p>0&&(this.show(),this.updateValue("label",XVj(C.label)),S9V(this,p))))}; bT.prototype.CS=function(){Ah(this);g.w.prototype.CS.call(this)};g.v(KpQ,hh);g.v(o8,g.w);o8.prototype.onClick=function(){this.ea.logClick(this.element);this.ea.Jk("onFullerscreenEduClicked")}; o8.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.v(kv,hh);kv.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"),kj(C.ea,C.element,C),C.V=!0))}; kv.prototype.updateFullerscreenEduButtonVisibility=function(p){var C;(C=this.T)!=null&&(C.C=p,C.Pr())};g.v(Dtu,g.w);g.v(UtX,hh);g.v(f0X,hh);g.v(Ops,hh);g.v(bpX,hh);var q9j="fs pe srt fpt nreqs nress nrese rsf_pj rse_pj rsf_pej rse_pej rsf_pc rse_pc".split(" "),I0a="bpd_c bpd_s gv mb_s pl_c pl_i plev".split(" ");g.v(xv,hh);xv.prototype.getSphericalProperties=function(){var p=g.wb(this.api.Tk());return p?p.getSphericalProperties():{}}; xv.prototype.setSphericalProperties=function(p){if(p){var C=g.wb(this.api.Tk());C&&C.setSphericalProperties(p,!0)}};g.v(Yv,hh);g.h=Yv.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;R8.prototype.setPlaybackRate=function(p){this.playbackRate=Math.max(1,p)}; R8.prototype.getPlaybackRate=function(){return this.playbackRate};$v.prototype.nP=function(p){var C=g.Cx(p.info.T.info,this.hk.p4),V=p.info.LS+this.S,N=p.info.startTime*1E3;if(this.policy.l_)try{N=this.policy.l_?rz(p)*1E3:p.info.startTime*1E3}catch(d){Math.random()>.99&&this.logger&&(N=Y9(p.T).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:p.info.yZ(),encodedDataView:g.mq(N,4)})),N=p.info.startTime*1E3}var H=p.info.clipId;if(this.policy.l_){if(p.info.T.Lp())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.l_&&(N<0||X<0)&&(this.logger&&(this.logger({missingSegInfo:p.info.yZ(),startTimeMs:N,durationMs:X}),this.policy.qO||(N<0&&(N=p.info.startTime*1E3),X<0&&(X=p.info.duration*1E3))),this.policy.qO&&(N<0&&(N=p.info.startTime*1E3),X<0&&(X=p.info.duration*1E3)));return{formatId:C,LS:V,startTimeMs:N,clipId:H,Qp:X}}; $v.prototype.lF=function(p){this.timestampOffset=p};W3.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=pbX(this,this.videoTrack,p,this.videoTrack.NW,C);C=pbX(this,this.audioTrack,this.policy.cR?p:X,H,C);p=Math.max(p,X,C);this.W=!0;this.hk.isManifestless&&(Wp9(this,this.videoTrack,V),Wp9(this,this.audioTrack,N));return p}; W3.prototype.isSeeking=function(){return this.W}; W3.prototype.W5=function(p){this.V=p}; var GnS=2/24;var VO1=0;g.h=XM.prototype;g.h.Nc=function(){this.J=this.now();ROj(this.n1,this.J);this.kM.Nc()}; g.h.Cw=function(p,C){var V=this.policy.C?(0,g.Ip)():0;dd(this,p,C);p-this.Y<10&&this.C>0||this.Wb(p,C);this.kM.Cw(p,C);this.policy.C&&(p=(0,g.Ip)()-V,this.ER+=p,this.Mo=Math.max(p,this.Mo))}; g.h.Wb=function(p,C){var V=(p-this.Y)/1E3,N=C-this.V;this.zv||(cg(this.n1,V,N),this.pT(V,N));this.Y=p;this.V=C}; g.h.dP=function(){this.sY&&NBe(this);this.kM.dP()}; g.h.b6=function(p){this.sY||(this.sY=this.W-this.YM+p,this.wy=this.W,this.MW=this.D)}; g.h.Hm=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.aL=function(){return this.uc||2}; g.h.vD=function(){}; g.h.r9=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.ax()};this.url&&AWe(C,this.url);this.policy.C&&(C.mph=this.Mo.toFixed(),C.tph=this.ER.toFixed());C.ulb=this.UY;C.ult=this.Sa;C.abw=this.l_;return C}; g.h.now=function(){return(0,g.Ip)()}; g.h.deactivate=function(){this.isActive&&(this.isActive=!1)};g.v(ht,XM);g.h=ht.prototype;g.h.r9=function(){var p=XM.prototype.r9.call(this);p.pb=this.aC;p.pt=(1E3*this.F$).toFixed();p.se=this.Q$;return p}; g.h.J8=function(){var p=this.kM;this.Y_||(this.Y_=p.J8?p.J8():1);return this.Y_}; g.h.u1=function(){return this.NB?this.J8()!==1:!1}; g.h.TF=function(p,C,V){if(!this.Hc){this.Hc=!0;if(!this.zv){dd(this,p,C);this.Wb(p,C);var N=this.J8();this.Q$=V;N===2?this.zv||(this.Sa?ag(this.n1,this.Sa/1E3,this.UY,this.Ga||this.policy.sY):ag(this.n1,C/Math.max(this.policy.a$,V||this.l_),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)||s4(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,Xbe(this),this.rP)}this.deactivate()}}; g.h.fT=function(p,C,V){V&&(this.Y_=2);p<0&&this.uc&&(p=this.uc);C?this.R$+=p:this.Ga+=p}; g.h.aL=function(){return this.Ga||this.R$||XM.prototype.aL.call(this)}; g.h.Wb=function(p,C){var V=(p-this.Y)/1E3,N=C-this.V,H=this.J8();this.isActive?H===1&&((N>0||this.policy.W)&&(V>.2||N<1024)?(this.S+=V,N>0&&V>.2&&s4(this,this.eS?V:.05,N),this.Wc=!0):N>0&&(s4(this,V,N),this.Wc=!0)):C&&C>=this.policy.T&&this.Hm(p,C);XM.prototype.Wb.call(this,p,C)}; g.h.Dv=function(p){if(!this.zv){dd(this,p,this.W);var C=(p-this.T)/1E3;this.J8()!==2&&this.C>0&&(this.S+=(p-this.Y)/1E3,lL(this.n1,this.V,this.S));Ee(this.n1,C,this.V,Xbe(this),this.rP,!0);p=(p-this.Y)/1E3;cg(this.n1,p,0);this.pT(p,0)}}; g.h.Hm=function(p,C){p=p===void 0?this.D:p;C=C===void 0?this.W:C;if(!(this.C>0)&&(XM.prototype.Hm.call(this,p,C),this.J8()===1)){C=(this.J-this.T)/1E3;var V=(p-this.J)/1E3;this.NB&&s5a(this,this.now());this.bx||this.zv||(this.uc&&(V=Math.max(0,V-this.uc)),p=this.n1,p.J.Du(1,C),p.Sa.Du(1,V))}}; g.h.d4=function(){this.NB&&s5a(this,this.now());return this.vr}; g.h.Zc=function(){var p;if(p=this.V>this.IE)p=(p=this.V)?p>=this.policy.T:!1;return p}; g.h.M8=function(){return this.Qn}; g.h.ws=function(p){p=p===void 0?this.now():p;if(this.NB){s5a(this,p);if(this.Y_?this.u1():this.b_!==this.Wr){var C=this.Wr;if(p0?V+p:V+Math.max(p,C)}; g.h.K3=function(){return this.now()-this.a$}; g.h.S4=function(){return(this.V-this.C)*1E3/this.K3()||0}; g.h.jx=function(){return this.a$};aA.prototype.feed=function(p){Ad(this.T,p);this.f7()}; aA.prototype.f7=function(){if(this.S){if(!this.T.getLength())return;var p=this.T.split(this.V-this.C),C=p.iG;p=p.lT;if(!this.kM.b6(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(a8H(this.T,V));C=p.next().value;V=p.next().value;V=g.F(a8H(this.T,V));p=V.next().value;V=V.next().value;if(C<0||p<0)break;if(!this.T.Kg(V,p)){if(!this.kM.b6||!this.T.Kg(V,1))break;V=this.T.split(V).lT;this.kM.b6(C,V,0,p)&&(this.S=C,this.C= V.getLength(),this.V=p,this.T=new be([]));break}p=this.T.split(V).lT.split(p);V=p.lT;this.kM.Dg(C,p.iG);this.T=V}}; aA.prototype.dispose=function(){this.T=new be};g.h=E4.prototype;g.h.JL=function(){return 0}; g.h.JR=function(){return null}; g.h.Bi=function(){return null}; g.h.Fj=function(){return this.state>=1}; g.h.isComplete=function(){return this.state>=3}; g.h.iT=function(){return this.state===5}; g.h.onStateChange=function(){}; g.h.Ba=function(p){var C=this.state;this.state=p;this.onStateChange(C);this.callback&&this.callback(this,C)}; g.h.G3=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.eT=function(){return+this.getResponseHeader("content-length")}; g.h.V1=function(){return this.C}; g.h.TQ=function(){return this.status>=200&&this.status<300&&!!this.C}; g.h.ze=function(){return this.T.getLength()>0}; g.h.LW=function(){var p=this.T;this.T=new be;return p}; g.h.SG=function(){return this.T}; g.h.abort=function(){this.fS=!0;this.xhr.abort()}; g.h.Qt=function(){return!0}; g.h.Rm=function(){return this.V}; g.h.Mg=function(){return""};g.h=TB9.prototype;g.h.getResponseHeader=function(p){return p==="content-type"?this.T.get("type"):""}; g.h.abort=function(){}; g.h.Us=function(){return!0}; g.h.eT=function(){return this.range.length}; g.h.V1=function(){return this.loaded}; g.h.TQ=function(){return!!this.loaded}; g.h.ze=function(){return!!this.C.getLength()}; g.h.LW=function(){var p=this.C;this.C=new be;return p}; g.h.SG=function(){return this.C}; g.h.Qt=function(){return!0}; g.h.Rm=function(){return!!this.error}; g.h.Mg=function(){return this.error};g.h=Jzu.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.kM.dP()}; g.h.getResponseHeader=function(p){return this.responseHeaders?this.responseHeaders.get(p):null}; g.h.Us=function(){return!!this.responseHeaders}; g.h.V1=function(){return this.C}; g.h.eT=function(){return+this.getResponseHeader("content-length")}; g.h.TQ=function(){return this.status>=200&&this.status<300&&!!this.C}; g.h.ze=function(){return!!this.T.getLength()}; g.h.LW=function(){this.ze();var p=this.T;this.T=new be;return p}; g.h.SG=function(){this.ze();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.Qt=function(){return!0}; g.h.Rm=function(){return this.Y}; g.h.Mg=function(){return this.errorMessage};g.h=m6S.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.kM.dP()}}; g.h.PC=function(){this.xhr.readyState===2&&this.kM.Nc()}; g.h.eq=function(p){this.fS||(this.status=this.xhr.status,this.T||(this.C=p.loaded),this.kM.Cw((0,g.Ip)(),p.loaded))}; g.h.Us=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.eT=function(){return+this.getResponseHeader("content-length")}; g.h.V1=function(){return this.C}; g.h.TQ=function(){return this.status>=200&&this.status<300&&this.T&&!!this.C}; g.h.ze=function(){return this.T&&!!this.response&&!!this.response.byteLength}; g.h.LW=function(){this.ze();var p=this.response;this.response=void 0;return new be([new Uint8Array(p)])}; g.h.SG=function(){this.ze();return new be([new Uint8Array(this.response)])}; g.h.abort=function(){this.fS=!0;this.xhr.abort()}; g.h.Qt=function(){return!1}; g.h.Rm=function(){return!1}; g.h.Mg=function(){return""};g.cI.prototype.info=function(){}; g.cI.prototype.debug=function(){}; g.cI.prototype.T=CY(40);var K6e=new Map,Zbe=new Map,D69=new function(){var p=this;this.T=new Map;this.VZ={LFo:function(){return p.T}}};g.v(TX,g.z);TX.prototype.td=function(){if(!this.GM.length)return[];var p=this.GM;this.GM=[];this.V=g.wY(p).info;return p}; TX.prototype.Ey=function(){return this.GM}; TX.prototype.CS=function(){g.z.prototype.CS.call(this);this.T=null;this.GM.length=0;this.wV.length=0;this.V=null};g.v(Jt,g.z);g.h=Jt.prototype; g.h.tZn=function(){if(!this.fS()){var p=(0,g.Ip)(),C=!1;if(this.policy.qw){p=p-(this.timing.C>0?this.timing.a$:this.timing.T)-this.timing.aL()*1E3;var V=cR(mB(this),!1);p>=2E3*V?C=!0:p>=this.policy.Kw*V&&(this.T=this.policy.dh)}else if(this.timing.C>0){if(this.W){this.policy.MW&&(this.T=0);return}var N=this.timing.M8();this.timing.ws();var H=this.timing.M8();H-N>=this.policy.W1*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(H-N).toFixed(0)}),C=this.T>=5):this.T=0}else{var X=p- this.timing.d4(); this.policy.dh&&X>0&&(this.T+=1);C=cR(mB(this),!1)*this.policy.xu;(C=X>C*1E3)&&this.logger.debug(function(){return"Elbow late by "+X.toFixed(3)})}this.T>0&&this.kM.Dz(); C?this.X6(!1):this.C.start()}}; g.h.X6=function(p){this.S=!0;p&&(p=mB(this),p.V+=1);this.kM.Lf();this.lastError="net.timeout";FM(this)}; g.h.canRetry=function(p){var C=mB(this);p=p?this.policy.XL:this.policy.Ym;return C.timedOut0&&(C=C.T.getUint8(0),p.ubyte=C,V===1&&C===0&&(p.b248180278=!0))}this.Ld&&(p.rc=this.policy.XV?this.Ld:this.Ld.toString());this.policy.K1&&this.pY&&(p.tr=this.pY);p.itag=this.info.wV[0].T.info.itag;p.ml=""+ +this.info.wV[0].T.Vf();p.sq=""+this.info.wV[0].LS;this.Ai&&(p.ifi=""+ +Kw(this.info.sR.V));this.Ld!==410&&this.Ld!==500&&this.Ld!==503||(p.fmt_unav="true");var N;(V=this.errorMessage||((N=this.xhr)==null? void 0:N.Mg()))&&(p.msg=V);this.mH&&(p.smb="1");this.info.isDecorated()&&(p.sdai="1");return p}; g.h.Hi=function(){return d61(this.timing)}; g.h.Mg=function(){return this.xhr.Mg()||""}; g.h.Zc=function(){return this.isComplete()||this.timing.Zc()}; g.h.Cw=function(){!this.fS()&&this.xhr&&(this.Ld=this.xhr.status,this.policy.LA&&this.a_&&this.zA(!1),this.Y5()?this.G3(2):!this.GK&&this.Zc()&&(this.G3(),this.GK=!0))}; g.h.Nc=function(){if(!this.fS()&&this.xhr){if(!this.J7&&this.xhr.Us()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var p=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.J7=((0,g.Ip)()-p)/1E3}this.xhr.Us()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.NL&&!qrS()&&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.rW)==null||V.stop();this.yP=p||this.yP; this.fp=C||this.fp}}; g.h.dP=function(){var p=this.xhr;if(!this.fS()&&p){this.Ld=p.status;p=this.KP(p);if(this.policy.K1){var C;(C=this.rW)==null||C.stop()}p===5?FM(this.EZ):this.Ba(p);this.EZ.C.stop()}}; g.h.KP=function(p){var C=this;dny(this);if(Sf(this.EZ,this.xhr.status,this.Es?this.timing.Z||this.Un:this.xhr.TQ(),!1,this.Cr))return 5;var V="";K4(this.EZ,this.xhr)&&(V=I8L(this.EZ,this.xhr));if(V)return tW(mB(this.EZ)),this.info.vB(this.Ai,V),3;V=p.V1();if(this.Oh){this.zA(!0);dny(this);if(Sf(this.EZ,this.xhr.status,this.timing.Z||this.Un,!1,this.Cr))return 5;if(!this.d8){if(this.Un)return tW(mB(this.EZ)),3;this.EZ.lastError="net.closed";return 5}}else{if(Sf(this.EZ,this.xhr.status,this.xhr.TQ(), !1,this.Cr))return 5;var N=this.info.V;if(N&&N!==V||p.Rm())return this.EZ.lastError="net.closed",5;this.zA(!0)}N=E$X(this)?p.getResponseHeader("X-Bandwidth-Est"):0;if(p=E$X(this)?p.getResponseHeader("X-Bandwidth-Est3"):0)this.QU=!0,this.policy.us&&(N=p);yzV(this.EZ,V,N?Number(N):0);this.logger.debug(function(){var H=C.timing;return"Succeeded, rtpd="+(H.F$*1E3+H.T-Date.now()).toFixed(0)}); return 4}; g.h.canRetry=function(){this.fS();var p=this.info.isDecorated();return this.EZ.canRetry(p)}; g.h.onStateChange=function(){this.isComplete()&&(this.policy.kE?this.Lf():this.timing.deactivate())}; g.h.X6=function(p){this.EZ.X6(p)}; g.h.Dz=function(){this.callback&&this.callback(this,this.state)}; g.h.h6=function(){return this.EZ.h6()}; g.h.dispose=function(){E4.prototype.dispose.call(this);this.EZ.dispose();var p;(p=this.rW)==null||p.dispose();this.policy.kE||this.Lf()}; g.h.Lf=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.h.td=function(){if(!this.Ey().length)return[];this.ge=!0;return this.a_.td()}; g.h.Y5=function(){if(this.state<1)return!1;if(this.a_&&this.a_.GM.length)return!0;var p;return((p=this.xhr)==null?0:p.ze())?!0:!1}; g.h.Ey=function(){this.zA(!1);return this.a_?this.a_.Ey():[]}; g.h.zA=function(p){try{if(p||this.xhr.Us()&&this.xhr.ze()&&!K4(this.EZ,this.xhr)&&!this.gB)this.a_||(this.a_=new TX(this.policy,this.info.wV)),this.xhr.ze()&&(this.Oh?this.Oh.feed(this.xhr.LW()):Mx(this.a_,this.xhr.LW(),p&&!this.xhr.ze()))}catch(C){this.Oh?NGS(this,C):g.eG(C)}}; g.h.Dg=function(p,C){switch(p){case 21:p=C.split(1).lT;HIy(this,p);break;case 22:this.d8=!0;Mx(this.a_,new be([]),!0);break;case 43:if(p=Gk(new LU(C),1))this.info.vB(this.Ai,p),this.Un=!0;break;case 45:C=BY(new LU(C));p=C.aJ;C=C.n0;p&&C&&(this.wK=p/C);break;case 44:this.Va=y4H(new LU(C));var V,N,H;!this.timing.Z&&((V=this.Va)==null?void 0:V.action)===4&&((N=this.Va)==null?0:(H=N.t1)==null?0:H.Es)&&(this.Es=this.Va.t1.Es);break;case 53:this.policy.K1&&(p=Uz9(new LU(C)).iL)&&(this.rW||(this.iL=p,this.rW= new g.N8(this.tP,p,this)),this.rW.start());break;case 60:this.n6=rr(new LU(C));break;case 58:if(p=HPV(new LU(C)))this.QP=p,p.QP===3&&(this.Cr=!0)}}; g.h.b6=function(p,C,V,N){V||this.timing.b6(N);if(p!==21)return!1;if(p=this.policy.LA)if(N=C.getLength()+V===N,p*=this.info.wV[0].T.info.qo,!N&&C.getLength()0)return!1;if(!this.xhr.Us())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Oh)var p=!this.info.V;else this.xhr.eT()?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.nO)){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.im=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.h.JR=function(){this.xhr&&(this.yP=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.yP}; g.h.Bi=function(){this.xhr&&(this.fp=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.fp}; g.h.H6=function(){return this.EZ.H6()}; g.h.tP=function(){if(!this.fS()&&this.xhr){this.pY="heartbeat";var p=this.EZ;p.T+=2;this.Dz()}};g.v(O4,XM);g.h=O4.prototype;g.h.Wb=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&&iIY(this,.05,N)):iIY(this,V,N)),this.Wr&&(this.vr+=N,this.Ga+=V)):C>this.policy.T&&this.Hm(p,C);XM.prototype.Wb.call(this,p,C)}; g.h.TF=function(p,C){dd(this,p,C);this.Wb(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.Dv=function(p){dd(this,p,this.W);var C=(p-this.Y)/1E3;cg(this.n1,C,0);this.pT(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.sy=function(p){p=p.v4||2147483647;(p&2)!==2&&(this.Wr=!1);(p&1)===1&&(this.b_=!0)}; g.h.Mf=function(p){p=p.v4||2147483647;(p&2)===2&&(this.Wr=!1);(p&1)===1&&(this.b_=!1)}; g.h.jx=function(){return this.a$}; g.h.K3=function(){var p=this.Wr?this.now()-this.Y:0;return Math.max(this.Ga*1E3+p,1)}; g.h.S4=function(){return this.vr*1E3/this.K3()}; g.h.Hm=function(p,C){p=p===void 0?this.D:p;C=C===void 0?this.W:C;this.C>0||(XM.prototype.Hm.call(this,p,C),C=this.n1,p=(p-this.J)/1E3,C.J.Du(1,(this.J-this.T)/1E3),C.Sa.Du(1,p))}; g.h.vD=function(p){this.R$=p}; g.h.r9=function(){var p=XM.prototype.r9.call(this);p.rbw=this.S4();p.rbe=+this.Wr;p.gbe=+this.b_;p.ackt=(this.R$-this.T).toFixed();return p}; g.h.ws=function(){}; g.h.M8=function(){return NaN}; g.h.d4=function(){return this.T+this.snapshot.delay*1E3};yN.prototype.Dg=function(p,C){C.getLength();switch(p){case 20:p=new LU(C);p={Tz:Q3(p,1),videoId:Gk(p,2),itag:Q3(p,3),lmt:Q3(p,4),xtags:Gk(p,5),SD:Q3(p,6),Bp:rc(p,8),MX:Q3(p,9),qx$:Q3(p,10),startMs:Q3(p,11),durationMs:Q3(p,12),zf:Q3(p,14),timeRange:pW(p,15,eKX),Kq:Q3(p,16),Bg:Q3(p,17),clipId:Gk(p,1E3)};this.tZ(p);break;case 21:this.DY(C,!1);break;case 22:this.Nr(C);break;case 31:p=Vi(C,mzV);this.u3(p);break;case 52:p=Vi(C,fcY);this.RW(p);break;default:this.fF(p,C)}}; yN.prototype.tZ=function(){}; yN.prototype.fF=function(){};g.v(hgy,yN);g.h=hgy.prototype; g.h.fF=function(p,C){C.getLength();switch(p){case 35:this.Gz(C);break;case 44:this.bK(C);break;case 43:this.oM(C);break;case 53:this.QJ(C);break;case 55:p=new LU(C);(p={timeline:pW(p,1,IcQ),dgY:pW(p,2,o6S)},p.timeline)&&p.timeline.hO&&this.kM.yh(p.timeline.hO,p.timeline.LSe,p.dgY);break;case 56:this.TP();break;case 57:this.wJ(C);break;case 42:this.hZ(C);break;case 45:this.hF(C);break;case 59:this.k7(C);break;case 51:this.AK(C);break;case 49:this.sy(C);break;case 50:this.Mf(C);break;case 47:this.Cl(C); break;case 58:this.Wm(C);break;case 61:this.kM.MZ.vD((0,g.Ip)());break;case 66:this.nw(C);break;case 46:this.ZN(C);break;case 67:this.onSnackbarMessage(C)}}; g.h.AK=function(p){p=new LU(p);p={zlV:js(p,1,WY),vnn:js(p,2,WY)};this.kM.AK(p)}; g.h.k7=function(p){var C=new LU(p);p=CW(C,1);var V=CW(C,2);C=CW(C,3);this.kM.k7(p,V,C)}; g.h.hF=function(p){p=BY(new LU(p));this.kM.hF(p)}; g.h.Cl=function(p){p=Vi(p,SfL);this.kM.Cl(p)}; g.h.hZ=function(p){p=new LU(p);p={videoId:Gk(p,1),formatId:pW(p,2,WY),endTimeMs:Q3(p,3),kzk:Q3(p,4),mimeType:Gk(p,5),Qg:pW(p,6,lc1),indexRange:pW(p,7,lc1),BG:pW(p,8,tUe)};this.kM.hZ(p)}; g.h.wJ=function(p){p=o6S(new LU(p));this.kM.wJ(p)}; g.h.TP=function(){this.kM.TP()}; g.h.Gz=function(p){p=v6y(new LU(p));this.kM.Gz(p)}; g.h.QJ=function(p){p=Uz9(new LU(p));this.kM.QJ(p)}; g.h.bK=function(p){p=y4H(new LU(p));this.kM.bK(p)}; g.h.oM=function(p){p={redirectUrl:Gk(new LU(p),1)};this.kM.oM(p)}; g.h.DY=function(p){var C=p.getUint8(0);if(p.getLength()!==1){p=p.split(1).lT;var V=this.C[C]||null;V&&oA(this.kM.QL,C,V,p)}}; g.h.Nr=function(p){p=p.getUint8(0);var C=this.C[p]||null;C&&this.kM.Nr(p,C)}; g.h.RW=function(p){this.kM.RW(p)}; g.h.tZ=function(p){var C=p.Tz,V=p.Bp,N=p.SD,H=p.Bg,X=p.Kq,d=p.MX,a=p.startMs,E=p.durationMs,l=p.timeRange,t=p.zf,c=p.clipId,T=S5(p);p=U1c.has($Z[""+p.itag]);this.C[C]=T;this.kM.fT(T,p,{Tz:C,Bp:!!V,SD:N!=null?N:-1,MX:d!=null?d:-1,startMs:a!=null?a:-1,durationMs:E!=null?E:-1,zf:t,Bg:H,Kq:X,clipId:c,timeRange:l})}; g.h.sy=function(p){p={v4:Q3(new LU(p),1)};this.kM.sy(p)}; g.h.Mf=function(p){p={v4:Q3(new LU(p),1)};this.kM.Mf(p)}; g.h.u3=function(p){this.kM.u3(p)}; g.h.Wm=function(p){p=HPV(new LU(p));this.kM.Wm(p)}; g.h.nw=function(p){p={n8:pW(new LU(p),1,uJ1)};this.kM.nw(p)}; g.h.onSnackbarMessage=function(p){p=Q3(new LU(p),1);this.kM.onSnackbarMessage(p)}; g.h.ZN=function(p){p={reloadPlaybackParams:pW(new LU(p),1,NtX)};this.kM.ZN(p)};g.v(qx,g.z);g.h=qx.prototype;g.h.Lv=function(){return Array.from(this.GB.keys())}; g.h.ez=function(p){p=this.GB.get(p);var C=p.GM;p.Dk+=C.getLength();p.GM=new be;return C}; g.h.Jp=function(p){return this.GB.get(p).Jp}; g.h.Xr=function(p){return this.GB.get(p).Xr}; g.h.fT=function(p,C,V,N){this.GB.get(p)||TGe(this,p,C);C=this.GB.get(p);if(this.hk){p=JRj(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.w7+=d;X.zM+=d}MHv(this,V.Tz,C,p)}else V.Bp?C.J0=V.zf:C.UG.push(V),C.Al.push(V)}; g.h.XA=function(p){var C;return((C=this.GB.get(p))==null?void 0:C.wV)||[]}; g.h.G3=function(){for(var p=g.F(this.GB.values()),C=p.next();!C.done;C=p.next())C=C.value,C.D9&&(C.eq&&C.eq(),C.D9=!1)}; g.h.Nr=function(p,C){this.logger.debug(function(){return"[onMediaEnd] formatId: "+C}); var V=this.GB.get(C);if(IA){if(V&&!V.Jp){if(V.Nw.get(p))V.Nw.get(p).cj=!0;else{var N;((N=this.wY)==null?0:N.zB)&&V.Nw.set(p,{data:new be,Q_:0,cj:!0})}V.Xr=!0}}else V&&!V.Xr&&(V.Xr=!0)}; g.h.td=function(p){if(IA){var C=this.GB.get(p);if(C)for(var V=g.F(C.Nw),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.s7.get(N);if(O9(X[0])){if(!H.cj)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=o4(a,X,t);X+=t;E.push(new WR(l,c))}C.G7.push.apply(C.G7,g.K(E))}else if(H.data.getLength()>0||!X[0].range&&H.cj)a=void 0,X=X[0],E=H.Q_,d=H.data,X.range||(a=H.cj),l=d.getLength(),a=new WR(pSy(X, X.C+E,l,a),d),H.Q_+=a.info.V,C.G7.push(a);C.Nw.get(N).data=new be;H.cj&&C.Nw.delete(N)}p=this.GB.get(p);if(!p)return[];C=p.G7;p.G7=[];V=g.F(C);for(N=V.next();!N.done;N=V.next())p.Dk+=N.value.info.V;return C||[]}V=(C=this.GB.get(p))==null?void 0:C.a_;if(!V)return[];this.zA(p,V);return V.td()}; g.h.Y5=function(p){if(IA)return At(this,p);var C,V,N;return!!((V=(C=this.GB.get(p))==null?void 0:C.a_)==null?0:(N=V.Ey())==null?0:N.length)||At(this,p)}; g.h.zA=function(p,C){for(;At(this,p);){var V=this.ez(p);var N=p;N=this.GB.get(N).Jp&&!tHe(this,N);Mx(C,V,N&&cRV(this,p))}}; g.h.CS=function(){g.z.prototype.CS.call(this);for(var p=g.F(this.GB.keys()),C=p.next();!C.done;C=p.next())aW1(this,C.value);var V;if((V=this.wY)==null?0:V.X5)for(p=g.F(this.GB.values()),C=p.next();!C.done;C=p.next())C=C.value,C.Nw.clear(),C.s7.clear(),C.G7.length=0,C.wV.length=0,C.Al.length=0,C.UG.length=0;this.GB.clear()}; var IA=!1;g.v(kd,g.z);g.h=kd.prototype;g.h.Cw=function(){!this.fS()&&this.xhr&&(this.zA(!1),aV(this.kM,this))}; g.h.Nc=function(){}; g.h.dP=function(){if(!this.fS()&&this.xhr){var p=this.KP();p===5?FM(this.EZ):this.Ba(p);this.EZ.C.stop();var C;(C=this.Kl)==null||C.stop()}}; g.h.KP=function(){var p="";K4(this.EZ,this.xhr)&&(p=I8L(this.EZ,this.xhr));if(p)return this.info.sR.vB(this.Ai,p),3;this.zA(!0);if(Sf(this.EZ,this.xhr.status,this.xhr.TQ(),this.info.jX(),this.Cr))return 5;if(this.Uj)return 3;yzV(this.EZ,this.xhr.V1(),0);this.policy.uJ&&ovY(this.kM);return 4}; g.h.zA=function(p){var C=this.xhr;if((p||!K4(this.EZ,this.xhr))&&C.ze()){p=C.LW();var V=p.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+V}); this.Oh.feed(p)}}; g.h.Dg=function(p,C){this.xhr.Qt()&&p===21&&Sej(this);this.Kc.Dg(p,C)}; g.h.b6=function(p,C,V,N){V||(this.MZ.b6(N),this.policy.Zw&&p===21&&Sej(this));if(p!==21)return!1;this.MZ.Z=!0;p=C.getLength();V||(this.xw=C.getUint8(0),C=C.split(1).lT);var H=this.Kc.C[this.xw],X=this.hk.V.get(H);if(X&&(X=X.info.qo*.01,p+V!==N&&p0){p=this.MZ.K3();C=this.MZ.S4();var V=K4Q(this,p);if(!(C>V.z5||V.oo>0&&this.info.X2()>V.oo)){this.ji=(0,g.Ip)();var N;(N=this.Kl)==null||N.stop();this.policy.uJ&&(N=this.kM,p={MD:Math.round(C*p/1E3),Y0:p},N.policy.uJ&&(N.Vn=p,N.BK++));this.X6(!1)}}}}; g.h.X6=function(p){this.EZ.X6(p)}; g.h.bK=function(p){this.kM.bK(p,this.Em())}; g.h.oM=function(p){this.Uj=!0;this.info.sR.vB(this.Ai,p.redirectUrl)}; g.h.sy=function(p){this.MZ instanceof O4&&this.MZ.sy(p)}; g.h.Mf=function(p){this.MZ instanceof O4&&this.MZ.Mf(p)}; g.h.yh=function(p,C,V){this.kM.yh(p,C,V,this.Em())}; g.h.hZ=function(p){var C=p.formatId,V=S5({itag:C.itag,lmt:C.lmt,xtags:C.xtags}),N,H,X=new D0(((N=p.Qg)==null?void 0:N.first)||0,((H=p.Qg)==null?void 0:H.nL)||0),d,a;N=new D0(((d=p.indexRange)==null?void 0:d.first)||0,((a=p.indexRange)==null?void 0:a.nL)||0);if(!this.hk.V.get(V)){V=p.BG||{};if(this.policy.Ec){var E,l;p=(E=p.mimeType)!=null?E:"";E=(l=C.itag)!=null?l:0;l=$Z[""+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.hF=function(p){this.kM.hF(p)}; g.h.onSnackbarMessage=function(p){if(this.policy.EG)this.kM.onSnackbarMessage(p)}; g.h.u3=function(p){this.F7=p;this.uw=(0,g.Ip)();this.kM.u3(p)}; g.h.k7=function(p,C,V){this.kM.k7(p,C,V)}; g.h.wJ=function(p){p.scope===2&&(this.jIn=p);this.kM.wJ(p)}; g.h.TP=function(){this.M0=!0;this.kM.TP()}; g.h.AK=function(p){this.policy.cV&&this.kM.AK(p)}; g.h.Cl=function(p){this.kM.Cl(p,this.Em())}; g.h.Wm=function(p){p.QP===3&&(this.Cr=!0);this.kM.Wm(p)}; g.h.nw=function(p){this.kM.nw(p)}; g.h.ZN=function(p){this.kM.ZN(p)}; g.h.canRetry=function(){this.fS();return this.EZ.canRetry(!1)}; g.h.dispose=function(){if(!this.fS()){g.z.prototype.dispose.call(this);this.EZ.dispose();var p;(p=this.Kl)==null||p.dispose();this.Ba(-1);this.Lf()}}; g.h.Ba=function(p){this.state=p;aV(this.kM,this)}; g.h.jX=function(){return this.info.jX()}; g.h.LR=function(){return this.M0}; g.h.vF=function(){return this.jIn}; g.h.fT=function(p,C,V){V.clipId&&(this.clipId=V.clipId);this.policy.W&&!C&&(this.Tp=V.MX,this.Bm=V.startMs);var N=0;this.policy.Mn&&this.U3&&this.clipId&&(N=Lc(this.U3,this.clipId)/1E3);this.QL.fT(p,C,V,N);this.policy.F5&&this.F7&&this.MZ instanceof ht&&(N=this.F7.Mh,this.MZ.fT(V.durationMs/1E3,C,N>0&&V.MX+1>=N));this.QL.GB.get(p).WO=!0}; g.h.Nr=function(p,C){this.QL.Nr(p,C)}; g.h.RW=function(p){this.requestIdentifier=p}; g.h.td=function(p){return this.QL.td(p)}; g.h.XA=function(p){return this.QL.XA(p)}; g.h.Y5=function(p){return this.QL.Y5(p)}; g.h.Lv=function(){return this.QL.Lv()}; g.h.J8=function(){return 1}; g.h.Em=function(){return this.MZ.requestNumber}; g.h.Ez=function(){return this.requestIdentifier}; g.h.h$=function(){return this.clipId}; g.h.i9=function(){return this.Ai.i9()}; g.h.yy=function(){this.Lf()}; g.h.Lf=function(){this.MZ.deactivate();var p;(p=this.xhr)==null||p.abort()}; g.h.isComplete=function(){return this.state>=3}; g.h.Tr=function(){return this.state===3}; g.h.iT=function(){return this.state===5}; g.h.kf=function(){return this.state===4}; g.h.lm=function(){return this.isComplete()}; g.h.Fj=function(){return this.state>=1}; g.h.h6=function(){return this.policy.MW?this.EZ.h6():0}; g.h.Dz=function(){this.policy.MW&&aV(this.kM,this)}; g.h.XB=function(){return lgV(this.info)}; g.h.H6=function(){return this.EZ.H6()}; g.h.Qz=function(){var p=bbv(this.EZ);Object.assign(p,c_v(this.info));p.req="sabr";p.rn=this.Em();var C;if((C=this.xhr)==null?0:C.status)p.rc=this.policy.XV?this.xhr.status:this.xhr.status.toString();var V;(C=(V=this.xhr)==null?void 0:V.Mg())&&(p.msg=C);this.ji&&(V=K4Q(this,this.ji-this.MZ.jx()),p.letm=V.v_e,p.mrbps=V.z5,p.mram=V.oo);return p}; g.h.qe=function(){return{Tp:this.Tp,Bm:this.Bm,isDecorated:this.info.isDecorated()}};DnX.prototype.tick=function(p,C){this.ticks[p]=C?window.performance.timing.navigationStart+C:(0,g.Ip)()};g.v(oSe,g.ca);g.h=oSe.prototype; g.h.d5=function(p,C,V,N){var H=!1;this.policy.UY&&(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.NP);this.policy.UY&&(V?this.Vn=p.LS:this.sY=p.LS);this.Y.Xv(p.LS,p.startTime,this.C,N,H,X,V,a,d)}if(this.policy.UY){if(V||this.policy.o5){this.C===1&&zX(this,5,"noad");var E;p.LS!==((E=this.T)==null?void 0:E.LS)&&(xnL(this,p,C,V),isNaN(p.startTime)||YeQ(this,p.LS,RA(this,p.startTime,p.LS),!!C,this.Y))}}else V&&xnL(this,p,C)}; g.h.UP=function(p,C,V){var N=this.videoTrack.T.index.er()<=C;this.T={I_:p,LS:C,Ff:V};N&&Yd(this,p,C)}; g.h.Bj=function(){this.Y&&this.Y.Bj()}; g.h.k_=function(p,C){this.nS.k_(p,C)}; g.h.yz=function(p,C){var V=this.videoTrack.T.index.Qx(p);if(V>=0){var N;var H=((N=NS(C.NZ,V,2))==null?void 0:N.Ib)||"";if(this.policy.W||H)return C.KT(p,V),Rga(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.v(wd,g.z);wd.prototype.xQ=function(p,C,V){V=V===void 0?{}:V;this.policy.Vr=U6(p,V,this.S,C===void 0?!1:C)};L4v.prototype.QG=function(p){var C=this;if(this.policy.VH){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.Vs(!!V.size),this.Z=-1,this.Sa=V,QN(this,this.T),this.Ga=!0)}}; L4v.prototype.xQ=function(p,C,V){V=V===void 0?{}:V;var N=this.policy.Vr;this.W.xQ(p,C===void 0?!1:C,V);if(N!==this.policy.Vr){QN(this,this.T);rd(this);var H,X;N>this.policy.Vr&&((H=this.C)==null?0:Qu(H.info))&&((X=this.nextVideo)==null||!Qu(X.info))&&(this.a$=!0)}};lby.prototype.lF=function(p){this.timestampOffset=p;this.flush()}; lby.prototype.flush=function(){if(this.T.pos>0){var p={a:this.track.UV(),u:this.T.ax(),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.Cj&&(p.si=C.yZ());C.S&&(p.esl=C.C+C.V);C.v$()&&(p.eos=1)}isNaN(this.timestampOffset)||(p.to=this.timestampOffset);var N;if(C=(N=this.track.NW)==null?void 0:N.jb({})){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}};TPa.prototype.dispose=function(){this.b_=!0}; TPa.prototype.fS=function(){return this.b_}; g.v(HZ,Error);var ddy=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]);iQ.prototype.skip=function(p){this.offset+=p}; iQ.prototype.SS=function(){return this.offset};g.h=oB1.prototype;g.h.o4=function(){return this.C}; g.h.XN=function(){return this.C.length?this.C[this.C.length-1]:null}; g.h.gx=function(){this.C=[];sp(this);AAy(this)}; g.h.ez=function(p){this.R$=this.C.shift().info;p.info.rI(this.R$)}; g.h.XA=function(){return g.bZ(this.C,function(p){return p.info})}; g.h.UV=function(){return!!this.Y.info.audio}; g.h.getDuration=function(){return this.Y.index.hx()};g.v(Q7,E4);g.h=Q7.prototype;g.h.onStateChange=function(){this.fS()&&(b2(this.QL,this.formatId),this.T.dispose())}; g.h.Qz=function(){var p=lWY(this.QL,this.formatId),C;var V=((C=this.QL.GB.get(this.formatId))==null?void 0:C.bytesReceived)||0;var N;C=((N=this.QL.GB.get(this.formatId))==null?void 0:N.Dk)||0;return{expected:p,received:V,bytesShifted:C,sliceLength:tHe(this.QL,this.formatId),isAnyMediaEndReceived:this.QL.Xr(this.formatId)}}; g.h.Hi=function(){return 0}; g.h.Zc=function(){return!0}; g.h.td=function(){return this.QL.td(this.formatId)}; g.h.Ey=function(){return[]}; g.h.Y5=function(){return this.QL.Y5(this.formatId)}; g.h.H6=function(){return this.lastError}; g.h.h6=function(){return 0};g.v(lQ,g.z);g.h=lQ.prototype;g.h.UV=function(){return!!this.T.info.audio}; g.h.XN=function(){return this.S.XN()}; g.h.ez=function(p){this.S.ez(p);var C;(C=this.J)!=null&&(C.W.add(p.info.LS),C.T=ePs(C,C.xG,C.lC,p,C.T),C.V=p,C.Y=(0,g.Ip)());this.qo=Math.max(this.qo,p.info.T.info.qo||0)}; g.h.getDuration=function(){if(this.policy.C){var p=this.nS.B1();if(p)return h6(p)}return this.T.index.hx()}; g.h.gx=function(){B3(this);this.S.gx()}; g.h.CP=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.lF=function(p){var C;(C=this.J)==null||C.lF(p);var V;(V=this.Z)==null||V.lF(p)}; g.h.k_=function(p,C){this.nS.k_(p,C)}; g.h.GC=function(){return this.nS.GC()}; g.h.dispose=function(){var p;(p=this.Z)==null||p.flush();g.z.prototype.dispose.call(this)};g.v(q4,g.z);q4.prototype.V=function(){this.C++>15||(this.T=!this.T,new oAY(this.nS,this.policy,this.n1,this.sR,this.T),this.delay.start())}; g.h=oAY.prototype;g.h.Nc=function(){}; g.h.Cw=function(){}; g.h.dP=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.V1()===this.size)this.nS.k_("rqs",this.getInfo());else{var p="net.connect";this.xhr.status>200?p="net.badstatus":this.xhr.Us()&&(p="net.closed");this.onError(p)}}; g.h.onError=function(p){var C=this;this.nS.handleError(p,this.getInfo());zJ("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.r9();p.shost=FP(this.location.Uu);p.pb=this.size;return p};g.v(IB,g.z); IB.prototype.D=function(p,C){if(p.D){this.hk.isLive?(p=this.hk.AE&&this.hk.S?p.T.jz(this.hk.AE,!1):p.T.HS(Infinity),p.nO=this.nO):p=p.T.jz(0,!1);if(this.a$){var V=this.a$;p.nO===0&&(p.W=V.J)}else p.W=this.Z;return p}V=p.C;if(!V.T.Vf())return V.T.Lp()?(p=em(this.W,p.T.info.qo,C.T.info.qo,0),p=V.T.V4(V,p)):p=V.T.hY(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.Sf(p,N)&&H===0&&(this.hk.isManifestless?X=p.T:(X=V.startTime+J6,V.V&&(X+=V.duration), C4(p,X),V=p.C,X=V.T));X.Lp()?(H=this.V,C=em(this.W,X.info.qo,C.T.info.qo,N,H.S.length>0&&H.J===0&&this.nS.KV),N=uQ(p),p=V.T.V4(V,C),(C=p.V)&&p.wV.length>1&&(N||p.sR.C||p.wV[0].T!==V.T?p=V.T.V4(V,p.wV[0].V):(N=p.wV[p.wV.length-1],X=N.V/C,!N.S&&X<.4&&(p=V.T.V4(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.hY(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}; IB.prototype.Sf=function(p,C){if(!uQ(p)||!p.T.Vf())return!1;var V=this.V.Ga||TsY(p)||C<=this.policy.AY||this.V.a$;this.logger.debug(function(){return"ready to adapt: "+V+", upgrade pending: "+TsY(p)+", health: "+C}); return V}; IB.prototype.CS=function(){g.z.prototype.CS.call(this)}; var J6=2/24;g.v(kk,g.z);kk.prototype.JT=function(p,C,V){var N;var H=((N=this.C)==null?void 0:N.reason)==="m"?"m":this.C&&CxX(this,this.C)?this.C.reason:"a";this.nS.JT(new PI(p,H,V));AI(this.nS,C,p,!0)}; kk.prototype.gS=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.jO||(this.V=[N]),this.Y=this.hk.T[p],yz(this.wY)&&(this.a$=!0),new PI(this.Y,C?"t":"m");this.V=[];return null}; kk.prototype.xQ=function(p,C,V){V=V===void 0?{}:V;this.T.xQ(p,C===void 0?!1:C,V)};zG.prototype.jX=function(){return this.requestType===1}; zG.prototype.X2=function(){var p;return((p=this.kM)==null?void 0:p.X2())||0}; zG.prototype.isDecorated=function(){var p;return!((p=this.data)==null||!p.Um)};RB.prototype.encrypt=function(p){this.TN.exports.AES128CTRCipher_encrypt(this.cipher,p.byteOffset,p.byteLength);return p}; RB.prototype.fS=function(){return this.cipher===0}; RB.prototype.dispose=function(){this.TN.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};nA.prototype.encrypt=function(p,C){return h5(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)}))}; nA.prototype.fS=function(){return this.T}; nA.prototype.dispose=function(){this.T=!0}; RT.JS(nA,{encrypt:Tbs("oan2")});eX.prototype.encrypt=function(p,C){KW(this.C,C);return h5(this.C.encrypt(p))}; eX.prototype.fS=function(){return this.T}; eX.prototype.dispose=function(){this.T=!0}; RT.JS(eX,{encrypt:Tbs("oap")});PZ.prototype.encrypt=function(p,C){var V=this.TN.oF(C),N=this.T;N.TN.exports.AES128CTRCipher_setCounter(N.cipher,(V!=null?V:C).byteOffset);C=this.TN.oF(p);this.T.encrypt(C!=null?C:p);V&&this.TN.free(V.byteOffset);return C?h5(this.TN.MI(C)):h5(p)}; PZ.prototype.fS=function(){return this.T.fS()}; PZ.prototype.dispose=function(){this.T.dispose()}; RT.JS(PZ,{encrypt:Tbs("oalw")});uES.prototype.encrypt=function(p){(0,g.Ip)();return(new Vj(this.T.T)).encrypt(p,this.iv)}; uES.prototype.decrypt=function(p,C){(0,g.Ip)();return(new Vj(this.T.T)).decrypt(p,C)};g.v($k,g.z);$k.prototype.V=function(p,C){if(C){C=C instanceof g.mw?C:LA(this,C);var V;((V=this.T.get(p))==null?void 0:FP(V.location))!==FP(C)&&this.T.set(p,new A_1(C,p))}else this.T.delete(p)}; $k.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=FP(C.location),T=p.C===vI(T);if(T){c.EY(4);break}return g.y(c,Igj(p,p.C?2:0),5);case 5:if(V=c.T)p.V(0,V),Kw(V)&&p.V(1,Dy(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, Igj(p,1),11);case 11:return X.call(H,d,c.T),a=p,E=a.V,l=4,g.y(c,Igj(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)}})}; $k.prototype.D=function(){var p=this,C,V;return g.I(function(N){g.HF(p.J);C=g.Mz(p.yn.experiments,"html5_onesie_prewarm_max_lact_ms");if(bV()>=C)return N.return();(V=p.T.get(0))&&q5j(p,V);g.JQ(N)})}; var OTV={rWx:0,UOk:1,ipV:2,Kme:3,s5a:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};ojS.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.pp.ZE("omd_s");V=new Uint8Array(16);Zk()?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.m8(),V);E.EY(5);break}return g.y(E,N.decrypt(X.buffer.m8(),V),6);case 6:d=E.T;case 5:a=d;for(var l=0;l=4)){var C=Vb(this),V=this.xhr;C.rc=V.status;p&&(C.ab=!0);if(V.Mg()){var N="onesie.net";C.msg=V.Mg()}else V.status>=400?N="onesie.net.badstatus":V.TQ()?this.Nj||(N="onesie.response.noplayerresponse"):N=V.status===204?"onesie.net.nocontent":"onesie.net.connect";N?this.wx(new ON(N,C)):(this.ZE("or_fs"),this.MZ.TF((0,g.Ip)(),V.V1(),0),this.Ba(4),this.iF&&this.k_("rqs",C));this.iF&&this.k_("ombre", "ok."+ +!N);this.JK=!1;Hu(this);GCH(this.pp);if(!this.tM){this.rf.stop();var H;(H=this.Tx)==null||H.stop()}var X;if(p=(X=this.PE)==null?void 0:bTS(X))for(X=0;X1E3){var p;(p=this.MZ)==null||p.Dv((0,g.Ip)());p=Vb(this);if(this.yn.Gk()&&this.xhr instanceof l8Y){var C=this.xhr;p.xrs=C.xhr.readyState;p.xpb=C.T.getLength();p.xdc=C.S}this.wx(new ON("net.timeout",p))}}else(0,g.Ip)()-this.MZ.T>1E4&&((C=this.MZ)==null||C.Dv((0,g.Ip)()),this.tq());this.isComplete()||this.P4.start()}}; g.h.tq=function(){this.logger.info("Onesie request timed out");this.JK=!1;if(!Hu(this)){var p=Vb(this);p.timeout="1";this.wx(new ON("onesie.request",p))}}; g.h.wx=function(p){var C=this;p=qD(p);this.oC?this.Ta.DE(p):(this.dn.reject(p),this.oC=!0);GCH(this.pp);this.tM||this.rf.stop();this.ZE("or_fe");var V,N;(V=this.PE)==null||(N=bTS(V))==null||N.forEach(function(H){C.k_("pathprobe",H)}); this.Ba(5);this.dispose()}; g.h.isComplete=function(){return this.state>=3}; g.h.kf=function(){return this.state===4}; g.h.lm=function(p){var C,V;return this.isComplete()||!!((C=this.TI)==null?0:(V=C.get(p))==null?0:V.T)}; g.h.Tr=function(){return!1}; g.h.iT=function(){return this.state===5}; g.h.notifySubscribers=function(p){for(var C=0;C102400&&!this.qj&&(this.ZE("or100k"),this.qj=!0);if(p.ze()){var C=p.LW(),V=C.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+V}); this.iF&&this.k_("ombrss","len."+V);this.Oh.feed(C)}if(this.TI)for(var N=g.F(this.TI.keys()),H=N.next();!H.done;H=N.next()){var X=H.value;p=void 0;(p=this.TI.get(X))==null||p.G3();this.notifySubscribers(X)}}catch(d){this.wx(d)}}; g.h.Em=function(){return this.MZ.requestNumber}; g.h.Ez=function(p){return this.G8.get(p)}; g.h.qe=function(){return{Tp:this.Tp,Bm:this.Bm,isDecorated:!1}};g.v(Mmu,g.z);g.h=Mmu.prototype;g.h.Y8=function(p,C){this.a$=void 0;ovY(this);IMH(this,p,C)}; g.h.Vd=function(p){if(this.T.length===0)return!1;var C=this.T[0];return C instanceof Na?p===this.nS.getCurrentTime()*1E3:!(C instanceof kd&&tQQ(C.info))&&Math.abs(C.XB()-p)<50}; g.h.Gz=function(p){this.C=p;this.a$=(0,g.Ip)()+(p.backoffTimeMs||0)}; g.h.bK=function(p,C){if(p.action===void 0){var V=this.Ta.Hj();V!==void 0&&this.nS.CT(V)}else if(p.action!==0||!this.vr)switch(p.action===0&&this.policy.qY&&(p.action=2),V={},V.reason=p.i9_,V.action=p.action,V.rn=C,p.action){case 1:this.policy.W&&this.S&&this.S.yT(void 0,void 0,V);break;case 0:this.vr=!0;this.videoData.VL()&&this.policy.W&&this.S&&this.S.yT(void 0,void 0,V);this.nS.Sh(V);break;case 2:this.nS.handleError("sabr.config",V,1);break;case 5:rrv(this.Ta,!0);break;case 6:rrv(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.yh=function(p,C,V,N){if(this.policy.C){this.nS.k_("ssap",{rn:N,v:C,tl:xlX(p)});var H=this.nS.B1();p={TY:p,context:V,version:C};bcy(this,V);H?AhL(this,H,p):(this.nS.k_("ssap",{cacheclips:1,rn:N,v:C}),this.D=p)}}; g.h.wJ=function(p){var C=this.policy.b_||this.policy.e6||this.policy.C;this.nS.k_("ssap",{onsbrctxt:p.type,dflt:p.sendByDefault,enable:C?1:0});C&&bcy(this,p);this.policy.e6&&this.Ta.wJ(p)}; g.h.TP=function(){}; g.h.hF=function(p){if(p.aJ!==void 0&&p.n0){var C=p.aJ/p.n0;this.audioTrack.D=!1;this.videoTrack.D=!1;if(this.policy.sY||this.policy.Qo||this.policy.NR)this.nS.tp.C=!1;this.nS.PP(C,1);if(this.Ta.getCurrentTime()!==C){var V={L1:"sabr_seek",J6:!0,Oq:!0};p.seekSource&&(V.seekSource=p.seekSource);Nx(this.nS,C+.1,V)}}}; g.h.onSnackbarMessage=function(p){this.Ta.publish("onSnackbarMessage",p)}; g.h.u3=function(p){p.Mh&&p.zD&&F1(this.hk,p.Mh,p.zD);this.policy.pA&&(p.oQ&&p.dC&&(this.hk.vK=p.oQ/p.dC),p.RQ&&p.Yf&&(this.hk.qw=p.RQ/p.Yf));p.jM!=null&&this.Ta.Aa(p.jM);this.policy.Y$&&p.RU&&(p=((0,g.Ip)()-p.RU)/1E3,this.nS.O2.Du(1,p))}; g.h.Wm=function(p){this.nS.Wm(p)}; g.h.k7=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.vI.add(N.value)}if(C)for(C=g.F(C),p=C.next();!p.done;p=C.next())p=p.value,this.vI.has(p)&&this.vI.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.ju=""))}; g.h.AK=function(){}; g.h.Cl=function(p,C){I6v(this.policy,p,4,C)}; g.h.nw=function(p){if(p==null?0:p.n8)if(p=p.n8.Ne){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.ZN=function(p){(p=p==null?void 0:p.reloadPlaybackParams)&&this.Ta.publish("reloadplayer",p)}; g.h.ZQ=function(){return this.Ta.ZQ()||""}; g.h.X2=function(){var p=vZ(this.audioTrack,!0)*1E3,C=vZ(this.videoTrack,!0)*1E3;return Math.min(p,C)}; g.h.Wz=function(p,C){this.nS.k_(p,C)}; g.h.A0=function(p){Ndy(this.nS,VwX(this.R$,p))}; g.h.CS=function(){g.z.prototype.CS.call(this);this.C=void 0;IMH(this,!0,"i");this.T=[]};YO9.prototype.f7=function(p,C){if(this.S)return PT9(this,C);if(C=HI(p)){var V=C.C;V&&V.V&&V.T&&(p=p.V.length?p.V[0]:null)&&p.state>=2&&!p.iT()&&p.info.nO===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}; YO9.prototype.clear=function(){this.C=this.D=this.S=null;this.T=this.W=this.Y=this.startTimeSecs=NaN;this.V=!1};g.v(g.cu,g.z);g.h=g.cu.prototype;g.h.initialize=function(p,C,V){this.logger.debug(function(){return"Initialized, t="+p}); p=p||0;this.policy.T||(C=Hku(this.T),dxs(this.Ta,new PI(C.video,C.reason)),this.Ta.Q2(new PI(C.audio,C.reason)));this.hk.isManifestless&&QMa(this.S);this.Y&&RW1(this.Y,this.videoTrack.T);C=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var N=!this.hk.isManifestless;this.policy.Bb&&(N=N||this.hk.EO);this.policy.Wr||(this.currentTime=N?p:C);this.policy.sY&&this.seek(this.getCurrentTime(),{}).gh(function(){}); if(this.policy.T){var H;((H=this.a$)==null?0:TSS(H,this.ZQ()||""))&&Wv1(this)&&gvS(this,this.videoTrack)&&gvS(this,this.audioTrack)&&(kJs(this.J,this.a$),this.policy.Y&&LvX(this))}else this.b_&&(Q89(this,this.videoTrack),Q89(this,this.audioTrack),ESL(this.b_),delete this.b_);V?(this.policy.FF?(this.ER=V,Ma(this,V)):Ma(this,!1),g.HF(this.Pe)):(V=this.getCurrentTime()===0,bQ(this.S,this.videoTrack,this.videoTrack.T,V),bQ(this.S,this.audioTrack,this.audioTrack.T,V),this.policy.T&&vvQ(this.J,!0),this.policy.sY|| this.seek(this.getCurrentTime(),{}).gh(function(){}),this.timing.tick("gv")); (this.hk.AE||this.hk.c6||this.hk.vr||this.hk.YM||this.hk.MW)&&this.Ta.P9(this.hk)}; g.h.resume=function(){if(this.isSuspended||this.KV){this.logger.debug("Resumed.");this.EM=this.KV=this.isSuspended=!1;try{this.f7()}catch(p){g.nm(p)}}}; g.h.wZ=function(){return!this.policy.bx}; g.h.Zk=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;this.logger.debug("detaching media source");pIH(this);this.Ta.lM()&&(this.W=NaN);p?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.vr&&this.k_("loader",{setsmb:1}),this.policy.Sa=!0,this.gx()):(this.policy.FF?Ma(this,this.ER):Ma(this,!1),C||this.gx())}; 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.l_=!0));if(this.policy.T){var H=this.C.gS(p.id,N);this.logger.debug(function(){return"Logging new audio format: "+H.T.info.id}); this.Ta.Q2(H)}else{var X=jIL(this.T,p.id,N);this.logger.debug(function(){return"Logging new audio format: "+X.audio.info.id}); this.Ta.Q2(new PI(X.audio,X.reason))}if(N&&(V=this.audioTrack.T.index.Qx(C),this.k_("setAudio",{id:p.id,cmt:C,sq:V}),V>=0)){this.policy.T&&(this.C.J=!0,this.Y8(!0,"mosaic"));clL(this.audioTrack,V,NaN,NaN);!this.policy.d7&&this.hk.isLive&&vb(this.hk,V,!1);return}this.Ta.qX()}}; g.h.setPlaybackRate=function(p){p!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(p)}; g.h.JT=function(p){var C=p.T.info.UV();this.logger.debug(function(){return"New "+(C?"audio":"video")+" format from SABR: "+Xz(p.T.info)}); C?this.Ta.Q2(p):dxs(this.Ta,p)}; g.h.A0=function(p){yv(p.wV[p.wV.length-1])&&Ndy(this,VwX(this.T,p.wV[0].T))}; g.h.jE=function(){return this.Ta.jE()}; g.h.Fd=function(){return this.Ta.Fd()}; g.h.Wm=function(p){this.Ta.K().Gk()&&this.k_("sps",{status:p.QP||""});if(p.QP===1)this.Ta.videoData.jP=0;else if(p.QP===2||p.QP===3){var C=!1;if(p.QP===3){C=this.Ta.Rj();var V;this.wy=(V=p.hsY)!=null?V:Infinity;this.Ta.videoData.jP=C+1;(C=WJy(this))&&this.vC(!0)}this.Ta.Fv(!0,C)}}; g.h.WE=function(){return this.Ta.WE()}; g.h.Eu=function(){return this.Ta.Eu()}; g.h.aE=function(p){this.Ta.aE(p)}; g.h.b9_=function(){var p,C=(p=this.Ta.Sd())==null?void 0:p.getCurrentTime();C?this.Ta.k_("rms",{cta:C}):g.HF(this.Q$)}; g.h.f7=function(){VfQ(this);if(this.Hr&&pV(this.Hr)&&!this.Hr.L$()&&(!this.policy.Wr||isFinite(this.getCurrentTime()))){var p=cZ(this.videoTrack);p=this.policy.Za&&p&&p.v$();this.hk.isManifestless&&this.hk.S&&TF(this.hk)?(this.W=TF(this.hk),this.Hr.Kt(this.W)):SO(this.hk)&&!p?isNaN(this.W)?(this.W=this.getCurrentTime()+3600,this.Hr.Kt(this.W)):this.W<=this.getCurrentTime()+1800&&(this.W=Math.max(this.W+1800,this.getCurrentTime()+3600),this.Hr.Kt(this.W)):this.Hr.isView||(p=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.W)||this.W!==p)&&p>0&&(this.Hr.Kt(p),this.W=p))}if(!this.fS())if(cb(this.hk)&&this.hk.iT()){var C=this.hk;this.handleError("manifest.net.retryexhausted",C.UY?{rc:C.Ld}:{rc:C.Ld.toString()},1)}else if(this.policy.T)a:{try{OcV(this.J);this.hk.isManifestless&&this.policy.Y&&jf(this.tp);if(GJs(this)&&this.Hr&&!VP(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;!VP(V)&&H&&N&&(uiL(V,N.info,H.info,this.policy.sO),C2j(this,V))}var X;((X=this.Hr)==null?0:VP(X))&&this.oW();this.policy.T||TK(this);vvQ(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)}uMv(this);g.HF(this.Qn)}else if(!this.hk.C||!mIV(this.videoTrack)&&!mIV(this.audioTrack)|| (this.videoTrack.W||this.audioTrack.W)&&this.policy.ER?V=!1:(this.gx(),this.Ta.seekTo(Infinity,{L1:"checkLoaderTracksSync",PP:!0}),V=!0),!V){VfQ(this);this.hk.isManifestless&&(vAL(this.videoTrack),vAL(this.audioTrack),jf(this.tp),(V=HI(this.videoTrack))&&V.C&&(V=V.C.V&&!this.policy.rh,this.k_(V===this.policy.J.AX?"strm":"strmbug",{strm:V,sfmp4:this.policy.J.AX,dfs:this.policy.rh},!0)));if(this.Hr)this.oW();else if(this.policy.S){var d;V=!1;if(this.policy.lj)for(N=g.F([this.videoTrack,this.audioTrack]), H=N.next();!H.done;H=N.next()){X=H.value;for(H=HI(X);H&&X.XN()!==cZ(X);H=HI(X))X.ez(H);V=V||!!H}else(C=HI(this.videoTrack))&&this.videoTrack.ez(C),(d=HI(this.audioTrack))&&this.audioTrack.ez(d);M4(this.videoTrack)&&M4(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(C||d||V)&&sZ(this)}TK(this);bQ(this.S,this.videoTrack,this.videoTrack.T,!1);bQ(this.S,this.audioTrack,this.audioTrack.T,!1);this.policy.Zp||XIv(this,this.videoTrack,this.audioTrack);Rte(this.S,this.videoTrack, this.audioTrack);Rte(this.S,this.audioTrack,this.videoTrack);uMv(this);this.Y&&(C=this.Y,C.S?(d=C.Y+C.policy.q2,C.V||(d=Math.min(d,C.startTimeSecs+C.policy.yv)),C=Math.max(0,d*1E3-Date.now())):C=NaN,isNaN(C)||g.HF(this.MW,C));g.HF(this.Qn)}}; g.h.Sh=function(p){this.Ta.Sh(p)}; g.h.oW=function(){var p=this;if(this.Hr){var C=this.Hr.T,V=this.Hr.C;yte(this,this.audioTrack);yte(this,this.videoTrack);var N=hbL(this);if(N){if(this.policy.ZI){if(!C.fg()){var H=HI(this.audioTrack);if(H){if(!t6(this,this.audioTrack,C,H.info))return;EdQ(this,this.audioTrack,C,H)}}if(!V.fg()&&(H=HI(this.videoTrack))){if(!t6(this,this.videoTrack,V,H.info))return;EdQ(this,this.videoTrack,V,H)}}this.HP||(this.HP=(0,g.Ip)(),this.logger.debug(function(){return"Appends pause start "+p.HP+" reason "+N}), this.policy.V&&this.k_("apdps",{r:N}))}else if(this.HP&&(i4a(this,this.HP),this.HP=0),sAj(this),H=!1,this.policy.C&&Up(this.videoTrack)||!Mfs(this,this.videoTrack,V)||(H=!0,Une(this.timing),qes(this.timing)),this.Hr&&!this.Hr.Jp()&&(this.policy.C&&Up(this.audioTrack)||!Mfs(this,this.audioTrack,C)||(H=!0,fWX(this.timing),IWj(this.timing)),!this.fS()&&this.Hr)){if(!this.policy.bx&&M4(this.videoTrack)&&M4(this.audioTrack)&&pV(this.Hr)&&!this.Hr.L$()){V=!1; V=cZ(this.audioTrack);if(this.policy.C){var X;C=(X=this.Ze)==null?void 0:gS(X,V.w7*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"),Zqy(this.Hr),nru(this.schedule))}H&&!this.Hr.isAsync()&&sZ(this)}}}; g.h.uY=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=HI(V))==null?0:H.isLocked){if(this.Ta.K().Gk()){var X;this.k_("eosl",{ounlock:(X=HI(V))==null?void 0:X.info.yZ()})}var d;KBX(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.UY){C=this.UY-this.getCurrentTime();var E;this.Ta.k_("asl",{l:C,xtag:(E=cZ(this.audioTrack))==null?void 0:E.T.info.T});this.l_=!1;this.UY= 0}p.W_()&&p.l9().length===0&&(p.Kf(),this.Hr&&!this.Hr.W_()&&(this.Ta.K().Gk()&&this.Ta.k_("rms",{ld:"seek"}),this.Hr.Y=performance.now(),this.Ta.Yw(),this.Ta.K().Gk()&&g.HF(this.Q$)));var l;(l=V.Z)!=null&&CA(l,0);this.policy.Mo&&this.policy.g2&&this.Hr&&(V=p.Db())&&V.v$()&&!sJ(p.l9(),Math.min(V.w7+J6,V.zM))&&this.k_("sbunb",{st:V.w7,et:V.zM});this.policy.wy?gAs(this):this.f7()}; g.h.SRS=function(p){if(this.Hr){var C=cZ(p===this.Hr.T?this.audioTrack:this.videoTrack);if(p=p.m2())for(var V=0;Vthis.V&&(this.V=V,g.oa(this.T)||(this.T={},this.S.stop(),this.C.stop())),this.T[C]=p,g.HF(this.C))}}; F9.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(PX),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.VW(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?odv(this,p):this.S||(this.T.push({time:C+V,info:p}),g.HF(this.C,V))}}; SP.prototype.CS=function(){this.T=[];vu.prototype.CS.call(this)};var T_={},Rb9=(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.v(Y4u,g.z);g.v(eb1,g.ca);g.h=eb1.prototype;g.h.Lt=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)&&XZ9(N);V=g.mq(N,4);XZ9(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}}),CQu(this,","),Ku(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)})));yu(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.jb=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(Dn(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.v(uF,g.z);g.h=uF.prototype;g.h.m_=function(p){if(this.W){var C=p.messageType||"license-request";this.W(new Uint8Array(p.message),C)}}; g.h.Lt=function(){this.D&&this.D(this.T.keyStatuses)}; g.h.onClosed=function(){this.fS()||g.gm("xboxone")&&this.V&&this.V("closed")}; g.h.G0=function(p){this.W&&this.W(p.message,"license-request")}; g.h.NN=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.LB=function(){this.Y&&this.Y()}; g.h.update=function(p){var C=this;if(this.T)return($$.isActive()?$$.DI("emeupd",function(){return C.T.update(p)}):this.T.update(p)).then(null,J5(function(V){iAS(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.z.prototype.CS.call(this)};g.v(Zn,g.z);g.h=Zn.prototype;g.h.rq=function(){var p=this;if(this.T.keySystemAccess)return($$.isActive()?$$.DI("emenew",function(){return p.T.keySystemAccess.createMediaKeys()}):this.T.keySystemAccess.createMediaKeys()).then(function(V){if(!p.fS())if(p.C=V,$$.isActive())$$.DI("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.iY),bO(this.W,this.element,["keyerror","webkitkeyerror"],this.zd),bO(this.W,this.element,["keyadded","webkitkeyadded"],this.v3);return null}; g.h.setServerCertificate=function(){return this.C.setServerCertificate?this.T.flavor==="widevine"&&this.T.a8?this.C.setServerCertificate(this.T.a8):Az(this.T)&&this.T.l_?this.C.setServerCertificate(this.T.l_):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=haS(V,this.T.l_):Az(this.T)&&(V=AtX(V)||new Uint8Array(0));C&&C("genreq");var H=$$.isActive()?$$.DI("emegen",function(){return N.generateRequest(p.contentType,V)}):N.generateRequest(p.contentType,V); var X=new uF(null,null,null,N,null,this.D);H.then(function(){C&&C("genreqsuccess")},J5(function(a){iAS(X,"t.generateRequest",a)})); return X}if(yM(this.T))return ap9(this,V);if(I5(this.T))return sB9(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 uF(this.element,this.T,V,null,null,this.D)}; g.h.iY=function(p){var C=EkY(this,p);C&&C.G0(p)}; g.h.zd=function(p){var C=EkY(this,p);C&&C.NN(p)}; g.h.v3=function(p){var C=EkY(this,p);C&&C.LB(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.z.prototype.CS.call(this);delete this.element};g.h=UZ.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.v(cIL,g.ca);g.h=cIL.prototype;g.h.gM_=function(p){this.I5({onecpt:1});p.initData&&JIV(this,new Uint8Array(p.initData),p.initDataType)}; g.h.rc_=function(p){this.I5({onndky:1});JIV(this,p.initData,p.contentType)}; g.h.mj=function(p){this.I5({onneedkeyinfo:1});this.yn.G("html5_eme_loader_sync")&&(this.D.get(p.initData)||this.D.set(p.initData,p));MXy(this,p)}; g.h.jV=function(p){this.V.push(p);fu(this)}; g.h.createSession=function(p){var C=vkS(this)?fbS(p):g.mq(p.initData);this.C.get(C);this.Vn=!0;p=new eb1(this.videoData,this.yn,p,this.drmSessionId);this.C.set(C,p);p.subscribe("ctmp",this.KZ,this);p.subscribe("keystatuseschange",this.Lt,this);p.subscribe("licenseerror",this.w5,this);p.subscribe("newlicense",this.z0,this);p.subscribe("newsession",this.fB,this);p.subscribe("sessionready",this.YY,this);p.subscribe("fairplay_next_need_key_info",this.SW,this);this.yn.G("html5_enable_vp9_fairplay")&&p.subscribe("qualitychange", this.Nv,this);this.yn.G("html5_enable_sabr_drm_hd720p")&&p.subscribe("sabrlicenseconstraint",this.kNn,this);LBa(p,this.S)}; g.h.z0=function(p){this.fS()||(this.I5({onnelcswhb:1}),p&&!this.heartbeatParams&&(this.heartbeatParams=p,this.publish("heartbeatparams",p)))}; g.h.fB=function(){this.fS()||(this.I5({newlcssn:1}),this.V.shift(),this.Vn=!1,fu(this))}; g.h.YY=function(){if(yM(this.T)&&(this.I5({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.Lt=function(p){if(!this.fS()){!this.Wr&&this.videoData.G("html5_log_drm_metrics_on_key_statuses")&&(FN9(this),this.Wr=!0);this.I5({onksch:1});var C=this.Nv;if(!Dn(p)&&g.G4&&p.C.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var V="large";else{V=[];var N=!0;if(Dn(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(!Dn(p)||N)V=p.S;V=pZS(V)}C.call(this,V);this.publish("keystatuseschange", p)}}; g.h.KZ=function(p,C){this.fS()||this.publish("ctmp",p,C)}; g.h.SW=function(p,C){this.fS()||this.publish("fairplay_next_need_key_info",p,C)}; g.h.w5=function(p,C,V,N){this.fS()||(this.videoData.G("html5_log_drm_metrics_on_error")&&FN9(this),this.publish("licenseerror",p,C,V,N))}; g.h.Lg=function(){return this.J}; g.h.Nv=function(p){var C=g.Cw("auto",p,!1,"l");if(this.videoData.o5){if(this.J.rI(C))return}else if(RqH(this.J,p))return;this.J=C;this.publish("qualitychange");this.I5({updtlq:p})}; g.h.kNn=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.KZ,this),C.unsubscribe("keystatuseschange",this.Lt,this),C.unsubscribe("licenseerror",this.w5,this),C.unsubscribe("newlicense",this.z0,this),C.unsubscribe("newsession",this.fB,this),C.unsubscribe("sessionready",this.YY,this),C.unsubscribe("fairplay_next_need_key_info", this.SW,this),this.yn.G("html5_enable_vp9_fairplay")&&C.unsubscribe("qualitychange",this.Nv,this),C.dispose();this.C.clear();this.Y.removeAll();this.D.removeAll();this.heartbeatParams=null;g.ca.prototype.CS.call(this)}; g.h.jb=function(){for(var p={systemInfo:this.T.jb(),sessions:[]},C=g.F(this.C.values()),V=C.next();!V.done;V=C.next())p.sessions.push(V.value.jb());return p}; g.h.getInfo=function(){return this.C.size<=0?"no session":""+this.C.values().next().value.getInfo()+(this.W?"/KR":"")}; g.h.I5=function(p,C){C=C===void 0?!1:C;this.fS()||(fR(p),(this.yn.Gk()||C)&&this.publish("ctmp","drmlog",p))};g.v(ZAe,g.z);g.h=ZAe.prototype;g.h.i5=function(){return!!this.L8}; g.h.yX=function(){return this.C}; g.h.handleError=function(p){var C=this;Ipu(this,p);if((p.errorCode!=="html5.invalidstate"&&p.errorCode!=="fmt.unplayable"&&p.errorCode!=="fmt.unparseable"||!qpu(this,p.errorCode,p.details))&&!kGe(this,p)){if(this.I$.a$!=="yt"&&AIX(this,p)&&this.videoData.y8&&(0,g.Ip)()/1E3>this.videoData.y8&&this.I$.a$==="hm"){var V=Object.assign({e:p.errorCode},p.details);V.stalesigexp="1";V.expire=this.videoData.y8;V.init=this.videoData.eV/1E3;V.now=(0,g.Ip)()/1E3;V.systelapsed=((0,g.Ip)()-this.videoData.eV)/1E3; p=new ON(p.errorCode,V,2);this.Ta.Ng(p.errorCode,2,"SIGNATURE_EXPIRED",fR(p.details))}if(yu(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(bAu(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 bAu(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.Ng(p.errorCode,p.severity,H,fR(p.details),X)}else this.Ta.publish("nonfatalerror",p),N=/^pp/.test(this.videoData.clientPlaybackNonce),this.DE(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)(),zJ(p,"manifest",function(d){C.Y=!0;C.k_("pathprobe",d)},function(d){C.DE(d.errorCode, d.details)}))}}; g.h.k_=function(p,C){this.Ta.Pc().k_(p,C)}; g.h.DE=function(p,C){C=fR(C);this.Ta.Pc().DE(p,C)};zaQ.prototype.Yd=function(p,C){return(C===void 0?0:C)?{WN:p?qa(this,p):xB,Bw:p?gkX(this,p):xB,GI$:p?$4s(this,p):xB,ejY:p?puL(this,p.videoData):xB,ZL:p?CFv(this,p.videoData,p):xB,Hd_:p?PQ1(this,p):xB}:{WN:p?qa(this,p):xB}}; zaQ.prototype.G=function(p){return this.yn.G(p)};g.v(IV,g.z);IV.prototype.onError=function(p){if(p!=="player.fatalexception"||this.provider.G("html5_exception_to_health"))p==="sabr.fallback"&&(this.encounteredSabrFallback=!0),p.match(QOP)?this.networkErrorCount++:this.nonNetworkErrorCount++}; IV.prototype.send=function(){if(!(this.V||this.T<0)){NXe(this);var p=g.bF(this.provider)-this.T,C="PLAYER_PLAYBACK_STATE_UNKNOWN",V=this.playerState.Kd;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=wTP[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=HuV(this.provider), X=this.C<0?p:this.C-this.T;p=this.provider.yn.H1+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()}}; IV.prototype.CS=function(){this.V||this.send();window.removeEventListener("error",this.p6);window.removeEventListener("unhandledrejection",this.p6);g.z.prototype.CS.call(this)}; var QOP=/\bnet\b/;g.v(daY,g.z);daY.prototype.CS=function(){g.z.prototype.CS.call(this);hwS(this)};var sVv=/[?&]cpn=/;var TXX=[2,5,30];g.RV=Fu(function(){var p="";try{var C=g.dW("CANVAS").getContext("webgl");C&&(C.getExtension("WEBGL_debug_renderer_info"),p=C.getParameter(37446),p=p.replace(/[ :]/g,"_"))}catch(V){}return p});g.v(g.xb,g.z);g.h=g.xb.prototype;g.h.BU=function(){var p=g.bF(this.provider);vbQ(this,p)}; g.h.YR=function(){return this.i7}; g.h.Pj=function(){return{jn:this.jn,Xz:this.Xz}}; g.h.iz=function(p,C){this.jn=p;this.Xz=C}; g.h.Aa=function(p){if(!this.ER){this.ER=!0;var C="";switch(p){case 1:C="proximaui";break;case 2:C=g1j(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!==""&&zK(this,C)}}; g.h.P9=function(p){this.T.lwc=[[p.AE?p.AE.toFixed():"",p.c6?p.c6.toFixed():"",p.vr?(p.vr*1E3).toFixed():"",p.YM?(p.YM*1E3).toFixed():"",p.MW?(p.MW*1E3).toFixed():""].join(":")]}; g.h.reportStats=function(p){p=p===void 0?NaN:p;if(!this.fS()&&(p=p>=0?p:g.bF(this.provider),["PL","B","S"].indexOf(this.OO)>-1&&(!g.oa(this.T)||p>=this.W+30)&&(g.kb(this,p,"vps",[this.OO]),this.W=p),!g.oa(this.T))){this.sequenceNumber===7E3&&g.eG(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Yb(this,p);var C=p,V=this.provider.Ta.d1(),N=V.droppedVideoFrames||0,H=V.totalVideoFrames||0,X=N-this.jn,d=H&&!this.Xz;N>V.totalVideoFrames||X>5E3?Uae(this,"html5.badframedropcount","df."+N+";tf."+ V.totalVideoFrames):(X>0||d)&&g.kb(this,C,"df",[X]);this.jn=N;this.Xz=H;this.Z>0&&(g.kb(this,p,"glf",[this.Z]),this.Z=0);CB.isActive()&&(p=CB.Wi(),Object.keys(p).length>0&&this.k_("profile",p));this.Wc&&zK(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=CT(this.provider.videoData);p.content_v=Vk(this.provider.videoData);p.ns=this.provider.yn.a$;p.fexp=DBs(this.provider.yn.experiments).toString();p.cl=(712772113).toString();(C=this.provider.videoData.adFormat||this.adFormat)&&(p.adformat=C);(C=v_(this.provider.videoData))&&(p.live=C);this.provider.videoData.F4()&& (p.drm=1,this.provider.videoData.W&&(p.drm_system=YL8[this.provider.videoData.W.flavor]||0),this.provider.videoData.dh&&(p.drm_product=this.provider.videoData.dh));tw()&&this.provider.videoData.Y&&(p.ctt=this.provider.videoData.Y,p.cttype=this.provider.videoData.jS,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.s0&&(p.dai_fallback= "1")):this.provider.videoData.OZ?p.dai="cs":this.provider.videoData.e3&&(p.dai="disabled");p.seq=this.sequenceNumber++;if(this.provider.videoData.X7){if(C=this.provider.videoData.X7,p&&C)for(C.ns==="3pp"&&(p.ns="3pp"),this.QZ.has(C.ns)&&zK(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.K1.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.y0},this.serializedHouseBrandPlayerServiceLoggingContext&&(C.serializedHouseBrandPlayerServiceLoggingContext=Fv(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(C.playerResponseCpn=this.provider.videoData.playerResponseCpn),oV.length&& (C.decoderInfo=oV),this.provider.Ta.B1()&&(C.transitionStitchType=4,this.Vn&&(C.timestampOffsetMsecs=this.Vn)),this.remoteControlMode&&(C.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(C.remoteConnectedDevices=this.remoteConnectedDevices),C=g.aE(C,E6Q),C=g.mq(C,4),this.T.qclc=[C];p=g.BX("//"+this.provider.yn.kz+"/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);KsV(this,p+C,V.replace(/ /g,"%20"))}this.T={}}}; g.h.Vs=function(p){this.Wc=p}; g.h.XK=function(){if(this.provider.videoData.W){var p=this.provider.videoData.W;zK(this,"eme-"+(p.keySystemAccess?"final":yM(p)?"ms":bo(p)?"ytfp":I5(p)?"safarifp":"nonfinal"))}}; g.h.BC=function(p){var C=g.bF(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.kb(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.kb(this,C,"view",V)}this.UY||(this.provider.yn.Gk()&&zK(this,"rqs2"),this.provider.videoData.T&&he(this.provider.videoData.T)&& (this.T.preload=["1"]));this.V=this.UY=!0}p.reason==="m"&&++this.XO===100&&fnL(this,2);g.kb(this,C,"vps",[this.OO]);this.reportStats(C)}; g.h.hv=function(p){var C=g.bF(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.hT?C.hT:"":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.kb(this,g.bF(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.kb(this,C,"afs",V),this.D=p.T.id)}; g.h.wP=CY(48);g.h.Yb=function(p){this.isEmbargoed=p}; g.h.B6=CY(32);g.h.hg=CY(37);g.h.onPlaybackRateChange=function(p){var C=g.bF(this.provider);p&&p!==this.MW&&(g.kb(this,C,"rate",[p]),this.MW=p);this.reportStats(C)}; g.h.p$=CY(27);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=rc2[vj(p)];g.qz(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.z.prototype.CS.call(this);g.Dr(this.Y);g.Dr(this.Hc)}; g.h.Bd=function(p){this.isOffline=p;g.kb(this,g.bF(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.h.k_=function(p,C,V){var N=this.T.ctmp||[],H=this.xt.indexOf(p)!==-1;H||this.xt.push(p);if(!V||!H){var X=typeof C!=="string"?fR(C):C;X=Ou1(X);if(!V&&!/^t[.]/.test(X)){var d=g.bF(this.provider)*1E3;X="t."+d.toFixed()+";"+X}N.push(p+":"+X);this.logger.debug(function(){return"ctmp "+p+" "+X}); this.T.ctmp=N;Da1(this);return d}}; g.h.nW=function(p,C,V){this.S={olY:Number(this.k_("glrem",{nst:p.toFixed(),rem:C.toFixed(),ca:+V})),cQ:p,esn:C,isAd:V}}; g.h.u6=function(p,C,V){g.kb(this,g.bF(this.provider),"ad_playback",[p,C,V])}; g.h.bz=function(p,C){var V=g.bF(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)?u9a(this):this.Y=g.Se(function(){p.reportStats()},1E4)}; var M9={},rc2=(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),oV=[];Inu.prototype.kC=function(){return this.T}; Inu.prototype.update=function(){if(this.D){var p=this.provider.Ta.tR(this.provider.videoData.clientPlaybackNonce)||0,C=g.bF(this.provider);p>=this.provider.Ta.getDuration()-.1&&(this.previouslyEnded=!0);if(p!==this.T||ob9(this,p,C)){var V;if(!(V=pC-this.mF+2||ob9(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&&(Pu(this),this.V= p);this.mF=C;this.T=p}}};kK9.prototype.send=function(p){var C=this;if(!this.l_){var V=YZj(this),N=g.BX(this.uri,V);this.yn.G("vss_through_gel_double")&&zwX(N);this.sY&&!this.yn.G("html5_simplify_pings")?wu9(this,N):xaQ(this,p).then(function(H){C.sY&&(H=H||{},H.method="POST",H.postParams={atr:C.attestationResponse});tPa(N,H,{token:C.a$,nm:C.F$,mdxEnvironment:C.mdxEnvironment},C.yn,p,C.Vn,C.isFinal&&C.eZ||C.Sa||C.V&&C.H1)}); this.l_=!0}}; kK9.prototype.C=function(p){p===void 0&&(p=NaN);return Number(p.toFixed(3)).toString()}; var JY={},ewY=(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={},nb9=(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.v($b,g.z);g.h=$b.prototype;g.h.eq=function(){this.T.update();GKY(this)&&(Lse(this),gba(this),this.sx())}; g.h.CS=function(){g.z.prototype.CS.call(this);Wu(this);buL(this.T)}; g.h.jb=function(){return YZj(Lu(this,"playback"))}; g.h.sx=function(){this.provider.videoData.D.eventLabel=CT(this.provider.videoData);this.provider.videoData.D.playerStyle=this.provider.yn.playerStyle;this.provider.videoData.Gp&&(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.Gp;p.isAd=C}; g.h.pO=function(p){var C=Lu(this,"engage");C.b_=p;return Rws(C,H$e(this.provider))};NLY.prototype.isEmpty=function(){return this.endTime===this.startTime};rX.prototype.G=function(p){return this.yn.G(p)}; rX.prototype.getCurrentTime=function(p){if(this.G("html5_ssap_current_time_for_logging_refactor")){var C=this.Ta.B1();if(C&&(p=p||C.Vv()))return ij(C,p)}else if(g.pf(this.videoData)){var V=this.Ta.B1();if(V)return p=this.Ta.getCurrentTime(),V=(((C=gS(V,p*1E3))==null?void 0:C.Ge)||0)/1E3,p-V}return this.Ta.getCurrentTime()}; rX.prototype.DQ=function(p){if(this.G("html5_ssap_current_time_for_logging_refactor")){var C=this.Ta.B1();if(C&&(p=p||C.Vv()))return ij(C,p)}else if(g.pf(this.videoData)){var V=this.Ta.B1();if(V)return p=this.Ta.DQ(),V=(((C=gS(V,p*1E3))==null?void 0:C.Ge)||0)/1E3,p-V}return this.Ta.DQ()}; var XOV={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.v(g.Bu,g.z);g.h=g.Bu.prototype;g.h.eq=function(){if(this.provider.videoData.enableServerStitchedDai&&this.UE){var p;(p=this.V.get(this.UE))==null||p.eq()}else this.T&&this.T.eq()}; g.h.Yb=function(p){this.qoe&&this.qoe.Yb(p)}; g.h.B6=CY(31);g.h.hg=CY(36);g.h.bz=function(p,C){this.qoe&&this.qoe.bz(p,C)}; g.h.DE=function(p,C){this.qoe&&Uae(this.qoe,p,C);if(this.C)this.C.onError(p)}; g.h.BC=function(p){this.qoe&&this.qoe.BC(p)}; g.h.hv=function(p){this.qoe&&this.qoe.hv(p)}; g.h.onPlaybackRateChange=function(p){if(this.qoe)this.qoe.onPlaybackRateChange(p);this.T&&Pu(this.T.T)}; g.h.wP=CY(47);g.h.k_=function(p,C,V){this.qoe&&this.qoe.k_(p,C,V)}; g.h.nW=function(p,C,V){this.qoe&&this.qoe.nW(p,C,V)}; g.h.Aa=function(p){var C;(C=this.qoe)==null||C.Aa(p)}; g.h.P9=function(p){var C;(C=this.qoe)==null||C.P9(p)}; g.h.Vs=function(p){this.qoe&&this.qoe.Vs(p)}; g.h.u6=function(p,C,V){this.qoe&&this.qoe.u6(p,C,V)}; g.h.p$=CY(26);g.h.YR=function(){if(this.qoe)return this.qoe.YR()}; g.h.jb=function(){if(this.provider.videoData.enableServerStitchedDai&&this.UE){var p,C;return(C=(p=this.V.get(this.UE))==null?void 0:p.jb())!=null?C:{}}return this.T?this.T.jb():{}}; g.h.Pj=function(){var p;return(p=this.qoe)==null?void 0:p.Pj()}; g.h.iz=function(p,C){var V;(V=this.qoe)==null||V.iz(p,C)}; g.h.pO=function(p){return this.T?this.T.pO(p):function(){}}; g.h.sx=function(){this.T&&this.T.sx()}; g.h.getVideoData=function(){return this.provider.videoData}; g.h.resume=function(){this.qoe&&this.qoe.resume()};g.v(p$,g.z); p$.prototype.n3=function(p,C,V){if(this.T.has(p)){var N=this.T.get(p);if(C.videoId&&!dT9(N))this.C.k_("ssap",{rlc:p}),JH1(this,p);else return}if(!this.T.has(p)){N=new rX(C,this.yn,this.Ta);var H=Math.round(g.bF(this.C.provider)*1E3);N=new g.Bu(N,H);dT9(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}i$y(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.kb(V,g.bF(V.provider),"ad_playback",[p,N,H,C,X]))):this.C.u6(p,C.Q$||"",C.breakType||0))}}; p$.prototype.Pc=function(p){p=p||this.UE;return this.T.get(p)||this.C};g.v(C$,g.z);g.h=C$.prototype; g.h.jd=function(p,C){this.sync();C&&this.T.array.length>=2E3&&this.SL("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.K$=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)}); udv(this.T,N);this.sync()}}; g.h.SL=function(p,C){var V=(isNaN(this.V)?g.r(this.Y(),2)?0x8000000000000:this.Z()*1E3:this.V)-C;C=this.Eu().filter(function(N){return N.namespace===p&&N.endthis.T,X=g.r(V,8)&&g.r(V,16),d=this.Ta.jU().isBackground()||V.isSuspended();ED(this,this.Mo,X&&!d,H,"qoe.slowseek",function(){},"timeout"); var a=isFinite(this.T);a=X&&a&&bqa(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);ED(this,this.F$,a&&E&&!d&&(!l||!t),H,"qoe.slowseek",function(){C.seekTo(p.T)},"set_cmt"); E=a&&sJ(C.kq(),this.T);var c=this.Ta.nS;a=!c||c.wZ();var T=function(){C.seekTo(p.T+.001)}; ED(this,this.R$,E&&a&&!d,H,"qoe.slowseek",T,"jiggle_cmt");a=function(){return p.Ta.gI()}; ED(this,this.l_,E&&!d,H,"qoe.slowseek",a,"new_elem");E=mE(V);l=V.isBuffering();var M=C.kq(),J=hj(M,N),S=J>=0&&M.end(J)>N+5,D=E&&l&&S;t=this.Ta.getVideoData();ED(this,this.Y_,N<.002&&this.T<.002&&X&&g.qz(this.yn)&&g.jQ(t)&&!d,H,"qoe.slowseek",a,"slow_seek_shorts");ED(this,this.a$,t.fq()&&X&&!d&&!t.sY,H,"qoe.slowseek",a,"slow_seek_gapless_shorts");ED(this,this.sY,D&&!d,E&&!l,"qoe.longrebuffer",T,"jiggle_cmt");ED(this,this.Vn,D&&!d,E&&!l,"qoe.longrebuffer",a,"new_elem_nnr");if(c){var Z=c.getCurrentTime(); X=C.pg();X=Fz1(X,Z);X=!c.isSeeking()&&N===X;ED(this,this.YM,E&&l&&X&&!d,E&&!l&&!X,"qoe.longrebuffer",function(){C.seekTo(Z)},"seek_to_loader")}X={}; T=hj(M,Math.max(N-3.5,0));D=T>=0&&N>M.end(T)-1.1;var f=T>=0&&T+1=0&&D&&f<11;X.close2edge=D;X.gapsize=f;X.buflen=M.length;this.C&&(X.seekSour=this.C);if(T=this.Ta.B1()){D=T.Vv();f=D!==gS(T,N*1E3).clipId;var q=g.Mz(this.yn.experiments,"html5_ssap_skip_seeking_offset_ms"),A=(Lc(T,D)+q)/1E3;ED(this,this.Wr,f&&E&&l&&!d,E&&!l,"qoe.longrebuffer",function(){C.seekTo(A)},"ssap_clip_not_match")}ED(this,this.Sa,E&&l&&!d,E&&!l,"qoe.longrebuffer", function(){},"timeout",X); X=V.isSuspended();X=this.Ta.Ct()&&!X;ED(this,this.D,X,!X,"qoe.start15s",function(){p.Ta.Ap("ad")},"ads_preroll_timeout"); T=N-this.S<.5;var Y;X=!((Y=this.Ta.B1())==null||!Y.zS());f=(D=t.isAd()||X&&this.yn.experiments.OY("html5_ssap_skip_slow_ad"))&&E&&!l&&T;Y=function(){var W=p.Ta,L=g.pf(W.videoData)&&W.Ze,VL=W.lJ.Nt();(VL&&W.videoData.isAd()&&VL.getVideoData().OZ===W.getVideoData().OZ||!W.videoData.lW)&&!L?W.Ng("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+W.videoData.videoId):W7(W.videoData,"html5_ssap_skip_slow_ad")&&L&&W.Ze.zS()&&(W.DE(new ON("ssap.transitionfailure",{cpn:gS(W.Ze,W.DQ()).clipId,pcpn:W.Ze.Vv(), cmt:W.DQ()})),W=W.Ze,L=W.Ta.DQ(),(L=JgS(W,L))&&l2L(W,L.u0()/1E3))}; ED(this,this.Wc,f,!f,"ad.rebuftimeout",Y,"skip_slow_ad");T=D&&l&&sJ(C.kq(),N+5)&&T;ED(this,this.bx,T&&!d,!T,"ad.rebuftimeout",Y,"skip_slow_ad_buf");Y=V.isOrWillBePlaying()&&g.r(V,64)&&!d;ED(this,this.ER,Y,H,"qoe.start15s",function(){},"timeout"); Y=!!c&&!c.Hr&&V.isOrWillBePlaying();ED(this,this.vr,Y,H,"qoe.start15s",a,"newElemMse");Y=Pc(M,0);T=g.r(V,16)||g.r(V,32);T=!d&&V.isOrWillBePlaying()&&l&&!T&&(g.r(V,64)||N===0)&&Y>5;ED(this,this.Qn,g.jQ(t)&&T,E&&!l,"qoe.longrebuffer",function(){p.Ta.qX()},"reset_media_source"); ED(this,this.UY,g.jQ(t)&&T,E&&!l,"qoe.longrebuffer",a,"reset_media_element");this.S===0&&(this.Y=N);T=l&&this.T===0&&N>1&&N===this.Y;ED(this,this.Ga,g.jQ(t)&&T,E&&!l,"qoe.slowseek",function(){C.seekTo(0)},"reseek_after_time_jump"); d=V.isOrWillBePlaying()&&!d;S=this.Ta.eX()-N<6&&!S&&this.Ta.Ql();ED(this,this.J,t.fq()&&d&&l&&S,E&&!l,"qoe.longrebuffer",function(){p.Ta.gI(!1,!0)},"handoff_end_long_buffer_reload"); c=(c==null?void 0:IXj(c))||NaN;c=M.length>1||!isNaN(c)&&c-.1<=N;ED(this,this.Z,id(t)&&d&&l&&c,E&&!l,"qoe.longrebuffer",a,"gapless_slice_append_stuck");c=J>=0&&M.end(J)>=2;d=id(t)&&this.Ta.r8&&c&&!t.sY&&d&&(l||g.r(V,8)&&g.r(V,16));ED(this,this.b_,d,H,"qoe.start15s",a,"gapless_slow_start");V=!!(X&&Y>5&&V.isPlaying()&&N<.1);ED(this,this.Hc,V,N>.5&&E,"qoe.longrebuffer",a,"ssap_stuck_in_ad_beginning");this.S=N;this.W.start()}}; ai.prototype.DE=function(p,C,V){C=this.jb(C);C.wn=V;C.wdup=this.V[p]?"1":"0";this.Ta.DE(new ON(p,C));this.V[p]=!0}; ai.prototype.jb=function(p){p=Object.assign(this.Ta.jb(!0),p.jb());this.T&&(p.stt=this.T.toFixed(3));this.Ta.getVideoData().isLivePlayback&&(p.ct=this.Ta.getCurrentTime().toFixed(3),p.to=this.Ta.X0().toFixed(3));delete p.uga;delete p.euri;delete p.referrer;delete p.fexp;delete p.vm;return p}; hH.prototype.reset=function(){this.T=this.C=this.V=this.startTimestamp=0;this.S=!1}; hH.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}; hH.prototype.jb=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.v($TV,g.z);g.h=$TV.prototype;g.h.setMediaElement=function(p){(this.mediaElement=p)?(this.mediaElement&&(this.W||this.S||!this.mediaElement.Fi()||this.seekTo(.01,{L1:"seektimeline_setupMediaElement"})),lY(this)):cO(this)}; g.h.getCurrentTime=function(){if(tH(this.Ta)){if(!isNaN(this.C))return this.C}else if(!isNaN(this.C)&&isFinite(this.C))return this.C;return this.mediaElement&&Hn1(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.S||0}; g.h.Hj=function(){return this.UY}; g.h.DQ=function(){return this.getCurrentTime()-this.X0()}; g.h.Gi=function(){return this.T?this.T.Gi():Infinity}; g.h.isAtLiveHead=function(p){if(!this.T)return!1;p===void 0&&(p=this.getCurrentTime());return dL(this.T,p)}; g.h.VP=function(){return!!this.T&&this.T.VP()}; g.h.seekTo=function(p,C){var V=C===void 0?{}:C;C=V.Rl===void 0?!1:V.Rl;var N=V.VE===void 0?0:V.VE;var H=V.wO===void 0?!1:V.wO;var X=V.Cm===void 0?0:V.Cm;var d=V.L1===void 0?"":V.L1;var a=V.seekSource===void 0?void 0:V.seekSource;var E=V.PP===void 0?!1:V.PP;var l=V.J6===void 0?!1:V.J6;V=V.Oq===void 0?!1:V.Oq;E&&(p+=this.X0());$B(this.videoData)&&this.G("html5_sabr_enable_utc_seek_requests")&&a===29&&(this.UY=void 0);E=p=this.Vi())||!g.ud(this.videoData),t||(S={st:S,mst:this.Vi()},this.T&&this.G("html5_high_res_seek_logging")&&(S.ht=this.T.Gi(),S.adft=YDv(this.T)),this.Ta.k_("seeknotallowed",S)),S=t));if(!S)return this.V&&(this.V=null,VvY(this)),ZC(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_&&cO(this);this.W||(this.W=new XO);p&&!isFinite(p)&&QiH(this,!1);(d=V||E)||(d=p,d=!(this.videoData.isLivePlayback&&this.videoData.V&&!this.videoData.V.T&&!(this.mediaElement&&this.mediaElement.cB()>0&&iU(this.mediaElement)>0)||Ge(this.videoData)&&this.m6()===this.Vi(!1)?0:isFinite(d)||!Ge(this.videoData)));d||(p=MT(this,p,H));p&&!isFinite(p)&&QiH(this,!1);this.S=p;this.R$=X;this.C=p;this.Z=0;this.T&&(H=this.T,X=p,z2X(H,X,!1),R2S(H, X));H=this.Ta;X=p;d={Rl:C,seekSource:a};H.Sr.S=X;V=H.RF;V.mediaTime=X;V.T=!0;d.Rl&&H.E7(d);d=X>H.videoData.endSeconds&&X>H.videoData.limitedPlaybackDurationInSeconds;H.fV&&d&&isFinite(X)&&xAQ(H);XC.start&&xAQ(this.Ta);return this.W}; g.h.Vi=function(p){if(!this.videoData.isLivePlayback)return lRu(this.Ta);var C;return lx(this.videoData)&&((C=this.mediaElement)==null?0:C.isPaused())&&this.videoData.T?(p=this.getCurrentTime(),Jej(this.Ft(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.qw||0:Ge(this.videoData)&&this.videoData.Wr&&this.videoData.T?this.videoData.T.Vi()+this.timestampOffset:this.videoData.V&&this.videoData.V.T?!p&& this.T?this.T.Gi():lRu(this.Ta)+this.timestampOffset:this.mediaElement?rm()?Jej(this.mediaElement.mA().getTime()):iU(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.h.m6=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.m6())!=null?V:p.videoData.m6()}if(this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(this.videoData)){var N;return((N=this.videoData.T)==null?void 0:N.vK)||0}C=this.videoData?this.videoData.m6()+this.timestampOffset:this.timestampOffset;return lx(this.videoData)&&this.videoData.T&&(V=Number((p=this.videoData.progressBarStartPosition)==null?void 0:p.utcTimeMillis)/1E3,p= this.getCurrentTime(),p=this.Ft(p)-p,!isNaN(V)&&!isNaN(p))?Math.max(C,V-p):C}; g.h.Yw=function(){this.W||this.seekTo(this.S,{L1:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.h.Vw=function(){return this.b_&&!isFinite(this.C)}; g.h.CS=function(){rHQ(this,null);this.Vn.dispose();g.z.prototype.CS.call(this)}; g.h.jb=function(){var p={};this.nS&&Object.assign(p,this.nS.jb());this.mediaElement&&Object.assign(p,this.mediaElement.jb());return p}; g.h.Tm=function(p){this.timestampOffset=p}; g.h.getStreamTimeOffset=function(){return Ge(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0}; g.h.X0=function(){return this.timestampOffset}; g.h.Ft=function(p){return this.videoData&&this.videoData.T?this.videoData.T.Ft(p-this.timestampOffset):NaN}; g.h.NQ=function(){if(!this.mediaElement)return 0;if(Z6(this.videoData)){var p=this.mediaElement,C=p.kq();p=(EJ(C)>0&&p.getDuration()?C.end(C.length-1):0)+this.timestampOffset-this.m6();C=this.Vi()-this.m6();return Math.max(0,Math.min(1,p/C))}return this.mediaElement.NQ()}; g.h.Q2=function(p){this.Y&&(this.Y.T=p)}; g.h.Pm=function(p,C){this.Ta.k_("requestUtcSeek",{time:p});$B(this.videoData)&&this.G("html5_sabr_enable_utc_seek_requests")&&(this.UY=p);var V;(V=this.nS)==null||V.Pm(p);C&&(this.sY=C)}; g.h.CT=function(p){$B(this.videoData)&&this.G("html5_sabr_enable_utc_seek_requests")&&(this.UY=void 0);if(this.sY)this.Ta.k_("utcSeekingFallback",{source:"streamTime",timeSeconds:this.sY}),this.Ta.seekTo(this.sY,{L1:"utcSeekingFallback_streamTime"}),this.sY=0;else{var C=this.getCurrentTime();isNaN(C)||(p=this.Ft(C)-p,C-=p,this.Ta.k_("utcSeekingFallback",{source:"estimate",timeSeconds:C}),this.Ta.seekTo(C,{L1:"utcSeekingFallback_estimate"}))}}; g.h.gg=function(){this.sY=0}; g.h.G=function(p){return this.yn&&this.yn.G(p)};g.v(JH,g.z);JH.prototype.start=function(){this.C.start()}; JH.prototype.stop=function(){this.C.stop()}; JH.prototype.clear=function(){for(var p=g.F(this.T.values()),C=p.next();!C.done;C=p.next())C.value.clear()}; JH.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 aTH(BwF.has(C)));this.T.get(C).update(V())}this.C.start()}; var BwF=new Set(["networkactivity"]);aTH.prototype.update=function(p){this.T?(this.buffer.add(p-this.T3||0),this.T3=p):this.buffer.add(p)}; aTH.prototype.clear=function(){this.buffer.clear();this.T3=0};Fd.prototype.Fj=function(){return this.started}; Fd.prototype.start=function(){this.started=!0}; Fd.prototype.reset=function(){this.finished=this.started=!1};var TMu=!1;g.v(g.uY,g.ca);g.h=g.uY.prototype;g.h.CS=function(){this.logger.debug("dispose");g.Dr(this.mI);u0Y(this.oI);this.visibility.unsubscribe("visibilitystatechange",this.oI);OnY(this);f$(this);g.rE.bf(this.MA);this.eU();this.d6=null;g.hf(this.videoData);g.hf(this.Ad);g.hf(this.S2);g.hf(this.E$);g.s1(this.b4S);this.fV=null;g.ca.prototype.CS.call(this)}; g.h.u6=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.kb(X,g.bF(X.provider),"ad_playback",[p,C,V,H,d])}}else this.Pc().u6(p,C,V);this.G("html5_log_media_perf_info")&&this.k_("adloudness",{ld:N.toFixed(3),cpn:p})}; g.h.dl=function(){var p;return(p=this.nS)==null?void 0:p.dl()}; g.h.F2=function(){var p;return(p=this.nS)==null?void 0:p.F2()}; g.h.NS=function(){var p;return(p=this.nS)==null?void 0:p.NS()}; g.h.jh=function(){var p;return(p=this.nS)==null?void 0:p.jh()}; g.h.F4=function(){return this.videoData.F4()}; g.h.lM=function(){return this.G("html5_not_reset_media_source")&&!this.F4()&&!this.videoData.isLivePlayback&&g.jQ(this.videoData)&&!this.yn.supportsGaplessShorts()}; g.h.kA=function(){if(this.videoData.J){var p=this.lJ.Nt();this.videoData.VR=this.videoData.VR||(p==null?void 0:p.dl());this.videoData.LA=this.videoData.LA||(p==null?void 0:p.F2())}if(hTy(this.videoData)||!E5(this.videoData))p=this.videoData.errorDetail,this.Ng(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),p,p,this.videoData.vp||void 0);this.G("html5_generate_content_po_token")&&this.Jm();this.G("html5_enable_d6de4")&&this.D1();if(this.G("html5_ssap_cleanup_player_switch_ad_player")|| this.G("html5_ssap_cleanup_ad_player_on_new_data"))if(p=this.lJ.RN())this.ZW=p.clientPlaybackNonce}; g.h.iU=function(){return this.rB}; g.h.n3=function(){!this.IW||this.IW.fS();this.IW=new g.Bu(new rX(this.videoData,this.yn,this));this.rB=new p$(this.yn,this,this.IW)}; g.h.getVideoData=function(){return this.videoData}; g.h.K=function(){return this.yn}; g.h.Yd=function(p){return this.Y9.Yd(this.d6,p===void 0?!1:p)}; g.h.Pc=function(p){if(p)a:{for(var C=this.rB,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.rB.Pc();return p}; g.h.jU=function(){return this.visibility}; g.h.Yh=function(){return this.mediaElement&&this.mediaElement.fA()?this.mediaElement.AQ():null}; g.h.Sd=function(){return this.mediaElement}; g.h.BW=function(){if(this.G("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.K().Y&&this.K().houseBrandUserStatus&&this.k_("hbut",{status:this.K().houseBrandUserStatus});if(this.videoData.GN())return!0;this.Ng("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.h.Ot=function(p){(p=p===void 0?!1:p)||g.pf(this.videoData)||GK(this.Pc());this.wz=p;!this.BW()||this.s_.Fj()?g.qz(this.yn)&&this.videoData.isLivePlayback&&this.s_.Fj()&&!this.s_.finished&&!this.wz&&this.Rw():(this.s_.start(),p=this.Pc(),g.bF(p.provider),p.qoe&&u9a(p.qoe),this.Rw())}; g.h.Rw=function(){if(this.videoData.isLoaded()){var p=this.Ad;g.Mz(p.I$.experiments,"html5_player_min_build_cl")>0&&g.Mz(p.I$.experiments,"html5_player_min_build_cl")>712772113&&okH(p,"oldplayer");bnH(this)}else this.videoData.vz||this.videoData.iy?this.wz&&g.qz(this.yn)&&this.videoData.isLivePlayback||(this.videoData.vz?LZV(this.videoData):(p=this.Pc(),p.qoe&&(p=p.qoe,zK(p,"protected"),p.provider.videoData.W?p.XK():p.provider.videoData.subscribe("dataloaded",p.XK,p)),wYv(this.videoData))):!this.videoData.loading&& this.Tb&&yre(this)}; g.h.L0=function(p){this.NZ=p;this.nS&&UxL(this.nS,new g.ms(p))}; g.h.yC=function(p){this.Ze=p;this.nS&&this.nS.yC(p)}; g.h.zq=CY(15);g.h.isFullscreen=function(){return this.visibility.isFullscreen()}; g.h.isBackground=function(){return this.visibility.isBackground()}; g.h.Mc=function(){var p=this;this.logger.debug("Updating for format change");Z_(this).then(function(){return D_(p)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.h.Sm=function(){this.logger.debug("start readying playback");this.G("html5_enable_ssap_autoplay_debug_logging")&&this.k_("ssap",{strdypb:1});this.mediaElement&&this.mediaElement.activate();this.Ot();this.BW()&&!g.r(this.playerState,128)&&(this.I0.Fj()||(this.I0.start(),this.videoData.X5?this.aN(cj(this.playerState,4)):this.aN(cj(cj(this.playerState,8),1))),qC1(this))}; g.h.Bu=function(){return this.s_.finished}; g.h.sendAbandonmentPing=function(){g.r(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.yM(!0),OnY(this),g.rE.bf(this.MA))}; g.h.vA=function(p,C){p=p===void 0?!0:p;(C===void 0||C)&&this.mediaElement&&this.mediaElement.pause();this.aN(p?new g.E3(14):new g.E3)}; g.h.Vz=function(){Em9(this.Pc())}; g.h.Ng=function(p,C,V,N,H,X){this.logger.debug(function(){return"set player error: ec="+p+", detail="+H}); var d,a;g.bc(lBY,V)?d=V:V?a=V:d="GENERIC_WITHOUT_LINK";N=(N||"")+(";a6s."+ue());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.V1[d]||"",Gc:d,vp:X||"",Pd:N,Ve:C,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=p;UD(this,"dataloaderror");this.aN(tK(this.playerState,128,C));g.rE.bf(this.MA);f$(this);this.DM()}; g.h.Ap=function(p){this.HK=this.HK.filter(function(C){return p!==C}); this.logger.debug(function(){return"set preroll ready for "+p}); g.pf(this.videoData)&&!this.mY()&&this.mM.xB("pl_pr");this.I0.Fj()&&qC1(this)}; g.h.mY=function(){var p;(p=!!this.HK.length)||(p=this.hU.T.array[0],p=!!p&&p.start<=-0x8000000000000);return p}; g.h.VP=function(){return this.Sr.VP()}; g.h.isPlaying=function(){return this.playerState.isPlaying()}; g.h.T7=function(){return this.playerState.T7()&&this.videoData.X5}; g.h.getPlayerState=function(){return this.playerState}; g.h.getPlayerType=function(){return this.playerType}; g.h.getPreferredQuality=function(){if(this.d6){var p=this.d6;p=p.videoData.aX.compose(p.videoData.r$);p=H1(p)}else p="auto";return p}; g.h.Hf=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.AQ()===this.mediaElement.AQ()&&(p.isView()||this.mediaElement.isView())){if(p.isView()||!this.mediaElement.isView())g.Am(this.du),this.mediaElement=p,this.mediaElement.Ta=this,BMv(this),this.Sr.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.eU();if(!this.playerState.isError()){var C=TP(this.playerState,512);g.r(C,8)&&!g.r(C,2)&&(C=cj(C,1));p.isView()&&(C=TP(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);BMv(this);this.Sr.setMediaElement(this.mediaElement);this.G("html5_prewarm_media_source")&&!this.Ad.i5()&&Oq9(this.mediaElement)}}; g.h.eU=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.Sr.S=N);this.Sr.setMediaElement(null);!p&&this.lM()?wxv(this):bY(this,V);this.nS&&(sZ(this.nS),Ii(this,C));this.vn.stop();if(this.mediaElement&&(!this.I0.Fj()||this.playerState.isError()||g.r(this.playerState,2)||this.aN(cj(this.playerState,512)),this.mediaElement)){g.Am(this.du);if(p||!this.mediaElement.isView())this.mM.oA("mesv_s"), this.mediaElement.stopVideo(),AH(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.Ad.yX())return V.publish("signatureexpired"),l.return();V.mediaElement&&GK(V.Pc());V.Sm();(g.r(V.playerState,64)||p)&&V.aN(cj(V.playerState, 8));return V.I0.finished&&V.mediaElement?V.d6||!V.S3?l.EY(2):g.y(l,V.S3,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.F4()?"fmt.unplayable":"fmt.noneavailable",H=1),g.eG(Error("selectableFormats")),V.Ng(N,H,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(V.AU()&&V.videoData.V.T)return V.logger.debug("rebuild playbackData for airplay"), l.return(Z_(V));if(tH(V))t=V.Sr,rP(t.videoData)?!t.isAtLiveHead(t.getCurrentTime())&&t.VP()&&t.Ta.seekTo(Infinity,{L1:"seektimeline_peggedToLive",seekSource:34}):g.pf(t.videoData)&&t.getCurrentTime()X&&X!==0&&p.T===X)))){var a;H=eaa(C,(a=N.T)==null?void 0:a.videoInfos);a=C.Ta.getPlaybackRate();a>1&&H&&(a=fdV(C.yn.W,N.T.videoInfos,a),p.T!==0&&a=480;if(C.G("html5_exponential_memory_for_sticky")){E=C.yn.f9;l=1;var t=t===void 0?!1:t;L$H(E,"sticky-lifetime");E.values["sticky-lifetime"]&&E.Rn["sticky-lifetime"]||(E.values["sticky-lifetime"]=0,E.Rn["sticky-lifetime"]=0);t&&m4(E,"sticky-lifetime")>.0625&&(l=E.Rn["sticky-lifetime"]*2);E.values["sticky-lifetime"]+=1*Math.pow(2,E.T/l);E.Rn["sticky-lifetime"]=l; E.S.start()}if(C.G("html5_perf_cap_override_sticky")){t=C.V;E=C.G("html5_perserve_av1_perf_cap");E=E===void 0?!1:E;if(E===void 0?0:E){l=x1();p=g.F(Object.keys(l));for(C=p.next();!C.done;C=p.next())C=C.value,C.indexOf("1")!==0&&delete l[C];g.Yl("yt-player-performance-cap",l,2592E3)}else g.R_("yt-player-performance-cap");OFu(E);if(E){E=g.F(uo.keys());for(l=E.next();!l.done;l=E.next())l=l.value,l.startsWith("1")||uo.delete(l);E=g.F(yb.values());for(l=E.next();!l.done;l=E.next())l=l.value,l.startsWith("1")|| yb.delete(l);E=g.F(t.keys());for(l=E.next();!l.done;l=E.next())l=l.value,l.startsWith("1")||t.delete(l)}else uo.clear(),yb.clear(),t.clear()}}this.nS&&(t=this.nS,V=V||"",t.policy.T?gd(t.C.T,V):gd(t.T.W,V));this.t2()}; g.h.getUserPlaybackQualityPreference=function(){return this.videoData.V&&!this.videoData.V.T?H1(this.videoData.aX):Ni[oH()]}; g.h.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.h.setUserAudio51Preference=function(p,C){this.getUserAudio51Preference()!==p&&(this.k_("toggle51",{pref:p}),g.Yl("yt-player-audio51",p,C?31536E3:2592E3),this.Mc())}; g.h.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.h.setProximaLatencyPreference=function(p){var C=this.getProximaLatencyPreference();this.k_("proxima",{pref:p});g.Yl("yt-player-proxima-pref",p,31536E3);C!==p&&(p=this.Sr,p.Qn=!0,p.Ta.seekTo(Infinity,{L1:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.h.getProximaLatencyPreference=function(){var p;return(p=k1())!=null?p:0}; g.h.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.h.Jm=function(){this.videoData.videoId?this.lJ.Jm(this.videoData):this.k_("povid",{})}; g.h.D1=function(){this.videoData.videoId?this.lJ.D1(this.videoData):this.k_("piavid",{})}; g.h.t2=function(){if(!this.fS()&&!g.r(this.playerState,128)&&this.videoData.V){if(this.videoData.V.T)K$(this);else{var p=qT(this),C=this.videoData;a:{var V=this.videoData.QZ;if(p.T){for(var N=g.F(V),H=N.next();!H.done;H=N.next()){H=H.value;var X=H.getInfo(),d=g.nR[X.video.quality];if((!p.V||X.video.quality!=="auto")&&d<=p.T){V=H;break a}}V=V[V.length-1]}else V=V[0]}C.UY=V;YCS(this,p.reason,je9(this,this.videoData.UY))}if(this.G("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Sr.D= !1,this.playVideo()}}; g.h.E4=function(p,C){if(this.fS()||g.r(this.playerState,128))return!1;var V,N=!((V=this.videoData.V)==null||!V.T);V=N&&C?this.getCurrentTime()-this.X0():NaN;if(this.yn.experiments.OY("html5_record_audio_format_intent")){var H=this.Pc();if(H.qoe){H=H.qoe;var X=[p.K4.id,isNaN(V)?"m":"t"];g.kb(H,g.bF(H.provider),"afi",X)}}if(N)return C&&(N=GEH(this.Sr),this.k_("aswh",{id:p.id,xtags:p.xtags,bh:N.toFixed(3)})),this.nS.setAudioTrack(p,V,C),!0;if(RDL(this)){a:{C=this.mediaElement.audioTracks();for(N=0;N< C.length;++N)if(V=C[N],V.label===p.K4.getName()){if(V.enabled){C=!1;break a}C=V.enabled=!0;break a}C=void 0}C&&this.k_("hlsaudio",{id:p.id})}else{a:if(C=this.videoData,C.S&&!px(C.S)||p===C.e6||!C.QZ||C.QZ.length<=0)C=!1;else{N=g.F(C.QZ);for(V=N.next();!V.done;V=N.next()){V=V.value;if(!(V instanceof H7)){C=!1;break a}H=p.K4.getId();V.C&&(T6j(V.C,H),V.sR=null)}C.e6=p;C=!0}C&&D_(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.k_("hlsaudio",{id:p.id}))}return!0}; g.h.getAvailableAudioTracks=function(){return g.pf(this.videoData)&&this.Ze?FbV(this.Ze).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.h.getAudioTrack=function(){if(RDL(this)){var p=eDV(this);if(p)return p}return this.videoData.getAudioTrack()}; g.h.Dw=function(){if(this.videoData.G("html5_trigger_loader_when_idle_network")&&!this.videoData.p4()&&$B(this.videoData)){var p;(p=this.nS)!=null&&p.f7()}}; g.h.kD=function(){if(id(this.videoData)&&this.videoData.G("html5_gapless_append_early")){var p;(p=this.nS)!=null&&p.f7()}}; g.h.Zk=function(p){p=p===void 0?!1:p;if(this.nS){var C=this.nS,V=C.Zk;var N=this.videoData;N=N.G("html5_ssdai_use_post_for_media")&&N.enableServerStitchedDai?!1:Ge(N)&&N.lW&&!N.isAd();V.call(C,N,p)}}; g.h.Hp=function(){return this.Hr}; g.h.Zq=function(p,C,V,N){function H(d){try{WYe(X,d,C,V)}catch(a){g.eG(a),X.handleError(new ON("fmt.unplayable",{msi:"1",ename:a&&typeof a==="object"&&"name"in a?String(a.name):void 0},1))}} var X=this;C=C===void 0?!1:C;V=V===void 0?!1:V;LYH(this,N===void 0?!1:N);this.Hr=p;this.lM()&&Nr(this.Hr)==="open"?H(this.Hr):Kzu(this.Hr,H)}; g.h.mj=function(p){this.logger.debug("onNeedKeyInfo");this.Or.set(p.initData,p);this.K7&&(this.K7.mj(p),this.G("html5_eme_loader_sync")||this.Or.remove(p.initData))}; g.h.aE=function(p){this.videoData.bv=g.Cw("auto",p,!1,"u");K$(this)}; g.h.Q2=function(p){var C=p.reason,V=p.T.info,N=p.token,H=p.videoId,X=this.Pc(H),d=g.pf(this.videoData)?X.getVideoData():this.videoData;if(V!==d.S){var a=!d.S;d.S=V;C!=="m"&&C!=="t"&&(C=a?"i":"a");var E=C==="m"||C==="t";this.yn.experiments.OY("html5_refactor_sabr_audio_format_selection_logging")?this.hw=new YpS(d,V,C,"",N,H):X.hv(new YpS(d,V,C,"",N));this.publish("internalaudioformatchange",d,!a&&E)}this.Sr.Q2(p.T.index)}; g.h.oR=function(p){this.publish("localmediachange",p)}; g.h.xQ=function(p){p=p===void 0?{}:p;var C;(C=this.nS)==null||C.xQ(this.yn,sW(this.videoData),p)}; g.h.yX=function(){return this.Ad.yX()}; g.h.lr=function(p){this.DE(new ON("staleconfig",{reason:p}))}; g.h.handleError=function(p){this.Ad.handleError(p)}; g.h.i5=function(){return this.Ad.i5()}; g.h.CT=function(p){this.Sr.CT(p)}; g.h.gI=function(p,C,V){p=p===void 0?!1:p;C=C===void 0?!1:C;V=V===void 0?!1:V;var N=this,H,X,d;return g.I(function(a){if(a.C==1){N.nS&&N.nS.Bj();N.nS&&N.nS.fS()&&f$(N);if(N.G("html5_enable_vp9_fairplay")&&N.F4()&&(H=N.videoData.T)!=null)for(var E in H.T)H.T.hasOwnProperty(E)&&(H.T[E].T=null,H.T[E].V=!1);N.aN(cj(N.playerState,2048));N.G("html5_ssap_keep_media_on_finish_segment")&&g.pf(N.videoData)?N.publish("newelementrequired",V):N.publish("newelementrequired");return p?g.y(a,Z_(N),2):a.EY(2)}N.videoData.p4()&& ((X=N.nS)==null?0:X.sY)&&!tH(N)&&((d=N.isAtLiveHead())&&rP(N.videoData)?N.seekTo(Infinity,{L1:"videoPlayer_getNewElement"}):N.videoData.EO&&N.nS&&(E=N.nS,E.hk.p4&&(E.hk.EO||E.hk.S||E.hk.isPremiere?(E.seek(0,{L1:"loader_resetSqless"}),E.videoTrack.D=!0,E.audioTrack.D=!0,E.videoTrack.W=!0,E.audioTrack.W=!0):SO(E.hk)&&oB(E))));C&&N.seekTo(0,{seekSource:105});g.r(N.playerState,8)&&(N.G("html5_ssap_keep_media_on_finish_segment")&&g.pf(N.videoData)?N.playVideo(!1,V):N.playVideo());g.JQ(a)})}; g.h.Gq=function(p){this.k_("hgte",{ne:+p});this.videoData.J=!1;p&&this.gI();this.nS&&BSj(this.nS)}; g.h.pauseVideo=function(p){p=p===void 0?!1:p;if((g.r(this.playerState,64)||g.r(this.playerState,2))&&!p)if(g.r(this.playerState,8))this.aN(Mr(this.playerState,4,8));else if(this.T7())D_(this);else return;g.r(this.playerState,128)||(p?this.aN(cj(this.playerState,256)):this.aN(Mr(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.ud(this.videoData)&&this.nS&&Ii(this,!1)}; g.h.stopVideo=function(){this.pauseVideo();this.nS&&(Ii(this,!1),this.nS.gx())}; g.h.DM=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;if(this.lM()&&C){var V;(V=this.mediaElement)==null||V.DM()}else{var N;(N=this.mediaElement)==null||N.stopVideo()}AH(this);f$(this);g.r(this.playerState,128)||(p?this.aN(TP(TP(cj(this.playerState,4),8),16)):this.aN(tK(this.playerState)));this.videoData.videoId&&this.yn.vr.remove(this.videoData.videoId)}; g.h.seekTo=function(p,C){C=C===void 0?{}:C;this.logger.debug(function(){return"SeekTo "+p+", "+JSON.stringify(C)}); g.r(this.playerState,2)&&D_(this);C.wSa&&this.aN(cj(this.playerState,2048));C.seekSource!==58&&C.seekSource!==60||!this.G("html5_update_vss_during_gapless_seeking")||si1(this.Pc(),C.seekSource);this.Sr.seekTo(p,C);this.hU.sync()}; g.h.E7=function(p){this.mM.S.sP();g.r(this.playerState,32)||(this.aN(cj(this.playerState,32,p==null?void 0:p.seekSource)),g.r(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.va()}; g.h.mQ=function(p){p=p==null?void 0:p.seekSource;g.r(this.playerState,32)?(this.aN(Mr(this.playerState,16,32,p)),this.publish("endseeking",this)):g.r(this.playerState,2)||this.aN(cj(this.playerState,16,p));this.mM.S.m1(this.videoData,this.playerState.isPaused())}; g.h.jK=function(p){this.mQ(p)}; g.h.dD=function(){this.publish("SEEK_COMPLETE")}; g.h.bd=function(){this.publish("onAbnormalityDetected")}; g.h.wJ=function(p){var C=this.lJ,V=this.videoData.clientPlaybackNonce,N=this.playerType;if(p.scope===4){var H=p.type;if(H){var X=C.V$(),d=X.getVideoData().clientPlaybackNonce;N===1&&(d=V);if(d=ghv(C,1,d)){if(d=d.getVideoData())p.writePolicy===2&&d.sabrContextUpdates.has(H)||d.sabrContextUpdates.set(H,p),N!==1&&((p=ghv(C,N,V))?p.getVideoData().sabrContextUpdates.set(N,d.sabrContextUpdates.get(H)):X.k_("sabrContextUpdate",{napf:"1"}))}else X.k_("sabrContextUpdate",{ncpf:"1"})}else g.eG(Error("b/380308491: contextUpdateType is undefined"))}}; g.h.getCurrentTime=function(){return this.Sr.getCurrentTime()}; g.h.Hj=function(){return this.Sr.Hj()}; g.h.DQ=function(){return this.Sr.DQ()}; g.h.tR=function(p){return this.Ze&&(p=p||this.Ze.Vv())?ij(this.Ze,p):this.DQ()}; g.h.Gi=function(){return this.Sr.Gi()}; g.h.getPlaylistSequenceForTime=function(p){return this.videoData.getPlaylistSequenceForTime(p-this.X0())}; g.h.NE=function(){var p=NaN;this.mediaElement&&(p=this.mediaElement.NE());return p>=0?p:this.getCurrentTime()}; g.h.Ft=function(){var p;return((p=this.videoData.T)==null?0:p.Ft)?this.videoData.T.Ft(this.getCurrentTime()-this.X0()):this.mediaElement&&(p=this.mediaElement.mA())&&(p=p.getTime(),!isNaN(p))?p/1E3+this.getCurrentTime():NaN}; g.h.getDuration=function(p){return g.pf(this.videoData)&&this.Ze?p?vwX(this.Ze,p):h6(this.Ze):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.X0():this.Vi()?this.Vi():0}; g.h.OS=function(){var p=new Mtj;if(this.nS){var C=this.yn.schedule,V=this.yn.Gk();V=V===void 0?!1:V;p.DO=C.sY;p.dW=C.R$;p.bandwidthEstimate=Mn(C);if(V){V=(C.J.lc()*1E3).toFixed();var N=(C.Sa.lc()*1E3).toFixed(),H=tR(C).toFixed(2),X=((C.D.lc()||0)*1E9).toFixed(2),d=C.V.lc().toFixed(0),a=C.Wr.lc().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.ax();p.T={ttr:V,ttm:N,d:H,st:X,bw:d,abw:a,v50:E,v92:l,v96:t,v98:c,"int":C}}Z49(this.nS,p)}else this.mediaElement&&(p.qD=hK(this.mediaElement));p.DO=this.DO;p.dW=this.dW;p.V=this.isAtLiveHead()&&this.isPlaying()?UAe(this):NaN;return p}; g.h.R1=function(p,C){this.dW+=p;this.DO+=C}; g.h.NQ=function(){return this.mediaElement?g.ud(this.videoData)?1:Z6(this.videoData)?this.isAtLiveHead()||this.VP()?1:this.Sr.NQ():this.mediaElement.NQ():0}; g.h.g1=function(){var p=this.getCurrentTime();if(this.K7){var C="IT/"+(this.K7.T.getInfo()+"/"+H1(this.Lg()));C+="/"+this.K7.getInfo()}else C="";var V=this.isGapless(),N=this.q3(),H=this.YR(),X=g.yX(this),d=this.getPlayerState(),a=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var E=0;var l="";if(this.NZ){if(this.NZ.Ei){l="D,";break a}E=this.NZ.wl();l=this.NZ.Vv().substring(0,4)}else this.Ze&&(E=this.Ze.wl(),l=this.Ze.Vv().substring(0,4));E>0?(E="AD"+E+", ",l&&(E+=l+", "),l=E):l=""}return{currentTime:p, ma:C,isGapless:V,q3:N,i7:H,O7e:X,playerState:d,aQx:a,R5n:this.c5,HM:l,Nix:this.d1()}}; g.h.jb=function(p){var C={};if(p===void 0?0:p){Object.assign(C,this.Pc().jb());this.mediaElement&&(Object.assign(C,this.mediaElement.jb()),Object.assign(C,this.d1()));this.nS&&Object.assign(C,this.nS.jb());this.K7&&(C.drm=JSON.stringify(this.K7.jb()));C.state=this.playerState.state.toString(16);g.r(this.playerState,128)&&(C.debug_error=JSON.stringify(this.playerState.Kd));this.mY()&&(C.prerolls=this.HK.join(","));this.videoData.xt&&(C.ismb=this.videoData.xt);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.Sr,C.lat=p.Y?I_S(p.Y.S):0,C.liveutcstart=this.videoData.liveUtcStartSeconds);C.relative_loudness=this.videoData.DS.toFixed(3);if(p=g.yX(this))C.optimal_format=p.video.qualityLabel;C.user_qual=oH();C.release_version="youtube.player.web_20250106_01_RC01";g.pf(this.videoData)&&this.Ze&&(C.ssap=Yk(this.Ze))}C.debug_videoId=this.videoData.videoId;return C}; g.h.addCueRange=function(p){this.c8([p])}; g.h.removeCueRange=function(p){this.hU.K$([p])}; g.h.ud=function(){this.hU.sync()}; g.h.SL=function(p,C){return this.hU.SL(p,C)}; g.h.c8=function(p,C){this.hU.jd(p,C)}; g.h.ra=function(p){this.hU.K$(p)}; g.h.Eu=function(){return this.hU.Eu()||[]}; g.h.yj=function(){return this.C8}; g.h.AU=function(){return this.visibility.AU()}; g.h.Oc=function(){this.mediaElement&&this.mediaElement.Oc()}; g.h.Dt$=function(){UD(this)}; g.h.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.h.Zv=function(p){var C=p.target.wi();if(this.mediaElement&&this.mediaElement.wi()&&this.mediaElement.wi()===C){sej(this,p.type);switch(p.type){case "error":var V=ak(this.mediaElement)||"",N=this.mediaElement.Mg();if(V==="capability.changed"){this.G("html5_restart_on_capability_change")?(this.k_("capchg",{msg:N}),this.gI(!0)):Z_(this);return}if(this.mediaElement.hasError()&&(qpu(this.Ad,V,{msg:N})||g.pf(this.videoData)&&this.Ze&&(N=this.playerState.Kd,this.Ze.handleError(V,N==null?void 0:N.Ve))))return; if(this.isBackground()&&this.mediaElement.H6()===4){this.DM();OD(this,"unplayable");return}break;case "durationchange":V=this.mediaElement.getDuration();isFinite(V)&&(!this.Hr||V>0)&&V!==1&&this.Kt(V);break;case "ratechange":this.nS&&this.nS.setPlaybackRate(this.mediaElement.getPlaybackRate());Z$Q(this.hU);this.Pc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":EXe(this);this.publish("onLoadedMetadata");pze(this);V=this.Ft();this.videoData.CA&&(this.videoData.CA=V);break; case "loadstart":pze(this);break;case "progress":case "suspend":this.va();this.publish("onLoadProgress",this,this.NQ());break;case "playing":this.mM.oA("plev");this.C0&&!tH(this)&&(this.C0=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{L1:"videoplayer_onPlaying"})));break;case "timeupdate":V=this.mediaElement&&!this.mediaElement.getCurrentTime();N=this.mediaElement&&this.mediaElement.cB()===0;if(V&&(!this.Pg||N))return;this.Pg=this.Pg||!!this.mediaElement.getCurrentTime(); GbQ(this);this.va();if(!this.mediaElement||this.mediaElement.wi()!==C)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.pg().length>0&&this.mediaElement.kq().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.cB()>2||!this.mediaElement.isSeeking()&&sJ(this.mediaElement.kq(),this.mediaElement.getCurrentTime()))&& (V=this.mediaElement.jb(),V.bh=hK(this.mediaElement).toFixed(3),this.k_("uwe",V));g.pf(this.videoData)&&this.Ze&&l2L(this.Ze,this.mediaElement.getCurrentTime());break;case "resize":EXe(this);this.videoData.C&&this.videoData.C.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.x4&&g.r(this.playerState,8)&&!g.r(this.playerState,1024)&&this.getCurrentTime()===0&&g.D1){OD(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.wi()=== C){inS(this.Sr,p,this.Ze||void 0);this.publish("videoelementevent",p);C=this.playerState;N=this.RF;var H=this.mediaElement;V=this.videoData.clientPlaybackNonce;var X=g.pf(this.videoData)&&this.Ze?h6(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)&&!VX(N,a);if(E||X&&a)H.dM()>0&&H.wi()&&(d=14);else switch(p.type){case "error":ak(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,lU(N,H,!0)):VX(N,H.getCurrentTime())&&(d&=-2);g.r(C,1)&&lU(N,H)&&(d|=1);break;case "seeking":d|=16;g.r(C,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;lU(N,H,!0);break;case "waiting":g.r(C,2)||(d|=1);lU(N,H);break;case "timeupdate":a=g.r(C,16),X= g.r(C,4),(g.r(C,8)||a)&&!X&&VX(N,H.getCurrentTime())&&(d=8),lU(N,H)&&(d|=1)}}N=d;d=null;N&128&&(d=p.target,H=ak(d),a=1,H?(H==="capability.changed"&&(a=2),X="GENERIC_WITHOUT_LINK",E=d.jb(),E.mediaElem="1",/AUDIO_RENDERER/.test(d.Mg())&&(X="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:H,errorMessage:g.V1[X]||"",Gc:X,Pd:fR(E),Ve:a,cpn:C.Kd?C.Kd.cpn:""}):d=null,d&&(d.cpn=V));C=tK(C,N,d)}!g.r(this.playerState,1)&&g.r(C,1)&&hMs(this,"evt"+p.type);this.aN(C)}}}; g.h.sH$=function(p){p=p.T.availability==="available";p!==this.C8&&(this.C8=p,this.publish("airplayavailabilitychange"))}; g.h.Ihx=function(){var p=(0,g.Ip)(),C=this.mediaElement.AU();this.k_("airplay",{ia:C});!C&&!isNaN(this.OL)&&p-this.OL<2E3||(this.OL=p,C!==this.AU()&&(p=this.visibility,p.T!==C&&(p.T=C,p.oI()),this.k_("airplay",{rbld:C}),this.Mc()),this.publish("airplayactivechange"))}; g.h.Dc=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&&Rga(V.nS,N,V.D,V.W);V.policy.W?V.V=NaN:V.S=NaN;zX(V,4,V.C===3?"adfps":"adf");sZ(C)}}; g.h.Yg=function(){g.Dr(this.mI);this.vn.stop();this.videoData.sY=!0;this.yn.iy=!0;this.yn.Q$=0;var p=this.Ad;if(p.videoData.C){var C=p.I$.W,V=p.videoData.C.o$;C.C.has(V)&&(C.C.delete(V),pI(C))}p.T.stop();this.oY();g.r(this.playerState,8)&&this.aN(TP(this.playerState,65));this.wz=!1;h2y(this.Pc());g.HF(this.S2);this.publish("playbackstarted");(p=g.zV("yt.scheduler.instance.clearPriorityThreshold"))?p():dq(0,0)}; g.h.oY=function(){var p=this.lJ.RN(),C={},V={};!HH("pbs",this.mM.timerName)&&w3.measure&&w3.getEntriesByName&&(w3.getEntriesByName("mark_nr")[0]?jxy("mark_nr"):jxy());p.videoId&&(C.videoId=p.videoId);p.clientPlaybackNonce&&!this.G("web_player_early_cpn")&&(C.clientPlaybackNonce=p.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(V.isPausedOnLoad=!0);V.itag=p.C?Number(p.C.itag):-1;p.K1&&(V.preloadType=String(this.h0?2:1));C.liveStreamMode=wTP[v_(p)];C.playerInfo=V;this.mM.infoGel(C); if(this.nS){p=this.nS.timing;window&&window.performance&&window.performance.getEntriesByName&&(p.V&&(C=window.performance.getEntriesByName(p.V),C.length&&(C=C[0],p.tick("vri",C.fetchStart),p.tick("vdns",C.domainLookupEnd),p.tick("vreq",C.requestStart),p.tick("vrc",C.responseEnd))),p.C&&(C=window.performance.getEntriesByName(p.C),C.length&&(C=C[0],p.tick("ari",C.fetchStart),p.tick("adns",C.domainLookupEnd),p.tick("areq",C.requestStart),p.tick("arc",C.responseEnd))));p=p.ticks;for(var N in p)p.hasOwnProperty(N)&& this.mM.tick(N,p[N])}}; g.h.va=function(p){var C=this;p=p===void 0?!1:p;if(this.mediaElement&&this.videoData){pxs(this.Sr,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)||fXH(this.nS,V);this.G("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&CWQ(this,V,this.videoData.lengthSeconds);V>5&&(this.Sr.S=V);var N=g.X2();N?g.rE.bf(this.MA):g.KO(this.MA);var H=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!H||lx(this.videoData))&& !g.r(this.playerState,128)){var X=function(){if(C.mediaElement&&!g.r(C.playerState,128)){C.yn.Gk()&&sej(C,"pfx");var d=C.getCurrentTime();C.G("html5_buffer_underrun_transition_fix")&&(d-=C.X0());var a=hK(C.mediaElement),E=g.r(C.playerState,8),l=VX(C.RF,d),t=o0Q(C.RF,d,(0,g.Ip)(),a);E&&l?C.aN(TP(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.dj()?(C.logger.debug("seek to 0 because of looping"),C.seekTo(0,{L1:"videoplayer_loop", seekSource:37})):C.vA()):(C.playerState.isBuffering()||hMs(C,"progress_fix"),C.aN(cj(C.playerState,1)))):(E&&!l&&!t&&d>0&&(E=(Date.now()-C.L8)/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()&&hK(C.mediaElement)>5&&C.aN(TP(C.playerState,1)));C.va()}}; this.mediaElement.pg().length===0?this.MA=N?g.rE.YN(X,100):g.F5(X,100):this.MA=N?g.rE.YN(X,500):g.F5(X,500)}this.videoData.Kx=V;this.Ze&&dJ(this.Ze);!p&&this.isPlaying()&&V4s(this);GG9(this.Y9,this.d6,this.Sd(),this.isBackground())&&K$(this);this.publish("progresssync",this,p);H&&lx(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.h.z6=function(){this.Ng("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.h.YR=function(){return this.Pc().YR()}; g.h.lI=function(){return this.nS?this.nS.lI():Mn(this.yn.schedule,!0)}; g.h.aN=function(p){if(!g.JK(this.playerState,p)){this.logger.debug(function(){return"Setting state "+p.toString()}); var C=new g.FK(p,this.playerState);this.playerState=p;aRy(this);var V=!this.Wd.length;this.Wd.push(C);var N=this.mediaElement&&this.mediaElement.isSeeking();N=C.oldState.state===8&&!N;g.Kt(C,1)&&N&&g.r(this.playerState,8)&&!g.r(this.playerState,64)&&this.nS&&(rhX(this.nS),this.mediaElement&&hK(this.mediaElement)>=5&&rIj(this.Y9,this.d6)&&K$(this));(N=g.Mz(this.yn.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.r(p,1)&&(g.r(p,8)||g.r(p,16))?this.Mi.start(N):this.Mi.stop();(S2(C,8)<0|| g.Kt(C,1024))&&this.vn.stop();!g.Kt(C,8)||this.videoData.sY||g.r(C.state,1024)||this.vn.start();g.r(C.state,8)&&S2(C,16)<0&&!g.r(C.state,32)&&!g.r(C.state,2)&&this.playVideo();g.r(C.state,2)&&Z6(this.videoData)&&(this.Kt(this.getCurrentTime()),this.va(!0));g.Kt(C,2)&&(this.yM(!0),this.yn.Gk()&&this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(this.videoData)&&this.videoData.T&&(N={minst:""+this.videoData.T.vK,cminst:""+(this.videoData.T.m6()+this.X0()),maxst:""+this.videoData.T.qw, hts:""+this.videoData.T.b_,cmaxst:""+(this.videoData.T.Vi()+this.X0())},this.k_("sabrSeekableBoundaries",N)));g.Kt(C,128)&&this.DM();this.videoData.T&&this.videoData.isLivePlayback&&!this.yQ&&(S2(C,8)<0?GTy(this.videoData.T):g.Kt(C,8)&&this.videoData.T.resume());BLv(this.Sr,C);a_L(this.Pc(),C);if(V&&!this.fS())try{for(var H=g.F(this.Wd),X=H.next();!X.done;X=H.next()){var d=X.value;UTS(this.hU,d);this.publish("statechange",d)}}finally{this.Wd.length=0}}}; g.h.wD=function(){this.mM.tick("qoes")}; g.h.Yw=function(){this.Sr.Yw()}; g.h.w5=function(p,C,V,N){a:{var H=this.Ad;N=N===void 0?"LICENSE":N;V=V.substring(0,256);var X=yu(C);p==="drm.keyerror"&&this.K7&&this.K7.C.keys.length>1&&H.S<96&&(p="drm.sessionlimitexhausted",X=!1);if(X)if(H.videoData.C&&H.videoData.C.video.isHdr())x4L(H,p);else{if(H.Ta.Ng(p,C,N,V),fpQ(H,{detail:V}))break a}else H.DE(p,{detail:V});p==="drm.sessionlimitexhausted"&&(H.k_("retrydrm",{sessionLimitExhausted:1}),H.S++,iZ9(H.Ta))}}; g.h.cQ$=function(){var p=this,C=g.Mz(this.yn.experiments,"html5_license_constraint_delay"),V=XW();C&&V?(C=new g.N8(function(){p.t2();UD(p)},C),g.R(this,C),C.start()):(this.t2(),UD(this))}; g.h.Fk=function(p){this.publish("heartbeatparams",p)}; g.h.Lt=function(p){this.k_("keystatuses",jBQ(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=VXH(C,V);N=Dn(p)?NZQ(p,N):p.S.includes(N)}else{a:{C=VXH(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.K7)==null?0:Az(X.T))if((V=this.K7)== 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=HAY(d,"SD")),C||(C=HAY(d,"AUDIO"));V.I5({sd:X,audio:C});V=X==="output-restricted"||C==="output-restricted"}else V=!N;if(V){this.k_("drm",{dshdr:1});x4L(this.Ad);return}}else{this.videoData.VH||(this.videoData.VH=!0,this.k_("drm",{dphdr:1}),this.gI(!0));return}var a;if((a=this.K7)==null?0:Az(a.T))return}else if(a=p.J&&N,V&&!a){x4L(this.Ad);return}N||NZQ(p,"AUDIO")&&NZQ(p,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), p=jBQ(p),this.y7?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.G("html5_report_fatal_drm_restricted_error_killswitch")||this.Ng("drm.keyerror",2,void 0,"info."+p)):(this.y7=!0,this.DE(new ON("qoe.restart",Object.assign({},{retrydrm:1},p))),K$(this),iZ9(this)))}; g.h.Z4_=function(){if(!this.videoData.sY&&this.mediaElement&&!this.isBackground()){var p="0";this.mediaElement.cB()>0&&hK(this.mediaElement)>=5&&this.videoData.V&&this.videoData.V.T&&(this.aN(cj(this.playerState,1)),hMs(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),p="1");aRy(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.K7),mfmtinfo:!this.videoData.C,prerolls:this.mY()?this.HK.join(","): "0"};if(this.K7){C=this.K7;if(C.C.size<=0){var V="ns;";C.Z||(V+="nr;");C=V+="ql."+C.V.length}else C=jBQ(C.C.values().next().value),C=fR(C);p.drmp=C}var N;Object.assign(p,((N=this.nS)==null?void 0:N.jb())||{});var H;Object.assign(p,((H=this.mediaElement)==null?void 0:H.jb())||{});this.Pc().DE("qoe.start15s",fR(p));this.publish("loadsofttimeout")}}; g.h.Kt=function(p){this.videoData.lengthSeconds!==p&&(this.videoData.lengthSeconds=p,UD(this))}; g.h.yM=function(p,C){var V=this;p=p===void 0?!1:p;if(!this.BJ)if(HH("att_s","player_att")||dc("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.yNa(),3);case 3:H=!E.T;case 2:if(H)return E.return();g.vv(E,4);X=cHL(V.Pc());if(!X)throw Error();d={};return g.y(E,g.O5Y((d.cpn=V.videoData.clientPlaybackNonce,d.encryptedVideoId=V.videoData.videoId||"",d),3E4),6);case 6:a=E.T;if(V.BJ)throw Error(); if(!a.challenge)throw g.eG(Error("Not sending attestation ping; no attestation challenge string")),Error();V.BJ=!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("&"));dc("att_f", void 0,"player_att");g.Fe(E,0);break;case 4:g.Sa(E),dc("att_e",void 0,"player_att"),g.JQ(E)}})})().then(function(){C==null||C()}); else{var N=new g.DGy(this.videoData);if("c1a"in N.ai&&!g.yC.isInitialized()){dc("att_wb",void 0,"player_att");this.Vq===2&&Math.random()<.01&&g.eG(Error("Botguard not available after 2 attempts"));if(p)return;if(this.Vq<5){g.HF(this.E$);this.Vq++;return}}(N=g.uwX(N))?(dc("att_f",void 0,"player_att"),ttS(this.Pc(),N),this.BJ=!0):dc("att_e",void 0,"player_att")}}; g.h.eX=function(p){p=p===void 0?!1:p;if(rP(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.VP()||g.ud(this.videoData)))p=this.getCurrentTime();else if(g.pf(this.videoData)&&this.Ze){p=this.Ze;var C=this.getCurrentTime();p=(p=Mxy(p,C*1E3))?(p.u0()-p.r6())/1E3:0}else p=this.Vi(p);return p}; g.h.xC=function(){return g.pf(this.videoData)?this.videoData.m6():this.m6()}; g.h.Vi=function(p){return this.Sr.Vi(p===void 0?!1:p)}; g.h.m6=function(){return this.Sr.m6()}; g.h.X0=function(){return this.Sr?this.Sr.X0():0}; g.h.getStreamTimeOffset=function(){return this.Sr?this.Sr.getStreamTimeOffset():0}; g.h.FA=function(){var p=0;this.yn.G("web_player_ss_media_time_offset")&&(p=this.getStreamTimeOffset()===0?this.X0():this.getStreamTimeOffset());return p}; g.h.setPlaybackRate=function(p){var C;this.playbackRate!==p&&eaa(this.Y9,(C=this.videoData.V)==null?void 0:C.videoInfos)&&(this.playbackRate=p,K$(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.Yh();C&&C.videoHeight>0&&(p=Rr(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.sx=function(){this.Pc().sx()}; g.h.sendVideoStatsEngageEvent=function(p,C){var V=this.Pc();V.T?(V=Lu(V.T,"engage"),V.b_=p,V.send(C)):C&&C()}; g.h.pO=function(p){return this.Pc().pO(p)}; g.h.isAtLiveHead=function(p,C){C=C===void 0?!1:C;return rP(this.videoData)&&(this.uE||C)?this.Sr.isAtLiveHead(p):!1}; g.h.e1=function(){var p=this.Vi(),C=this.getCurrentTime(),V;(V=!rP(this.videoData))||(V=this.Sr,V=!(V.T&&V.T.V));return V||this.VP()||isNaN(p)||isNaN(C)?0:Math.max(0,p-C)}; g.h.Lm=function(p){(this.uE=p)||this.vn.stop();this.videoData.T&&(p?this.videoData.T.resume():GTy(this.videoData.T));if(this.nS){var C=this.videoData.G("html5_disable_preload_for_ssdai_with_preroll")&&this.Ct()&&this.videoData.isDaiEnabled();p&&!C?this.nS.resume():Ii(this,!0)}g.r(this.playerState,2)||p?g.r(this.playerState,512)&&p&&this.aN(TP(this.playerState,512)):this.aN(cj(this.playerState,512));C=this.Pc();C.qoe&&(C=C.qoe,g.kb(C,g.bF(C.provider),"stream",[p?"A":"I"]))}; g.h.zF=function(p){p={n:p.name,m:p.message};this.Pc().DE("player.exception",fR(p))}; g.h.p$=CY(24);g.h.wP=CY(45);g.h.Yb=function(p){this.Pc().Yb(p)}; g.h.Aa=function(p){this.Pc().Aa(p)}; g.h.Vs=function(p){this.Pc().Vs(p)}; g.h.B6=CY(29);g.h.hg=CY(34);g.h.P9=function(p){this.Pc().P9(p)}; g.h.DG=function(){this.k_("hidden",{},!0)}; g.h.d1=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.h.wZ=function(){return this.nS?this.nS.wZ():!0}; 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.bx=!0:BSj(this.nS))}; g.h.dj=function(){return this.mediaElement&&Qj(this.yn)?this.mediaElement.dj():this.loop}; g.h.Tm=function(p){this.k_("timestamp",{o:p.toString()});this.Sr.Tm(p)}; g.h.ZE=function(p){this.mM.tick(p)}; g.h.xB=function(p){return this.mM.xB(p)}; g.h.oA=function(p){this.mM.oA(p)}; g.h.k_=function(p,C,V){V=V===void 0?!1:V;this.Pc().k_(p,C,V)}; g.h.eY=function(p,C,V){V=V===void 0?!1:V;this.Pc().k_(p,C,V)}; g.h.DE=function(p){this.Pc().DE(p.errorCode,fR(p.details));p=p.errorCode;if(this.videoData.isLivePlayback&&(p==="qoe.longrebuffer"||p==="qoe.slowseek")||p==="qoe.restart"){p=this.nS?VK1(this.nS.videoTrack):{};var C,V;this.k_("lasoe",Object.assign(this.nS?VK1(this.nS.audioTrack):{},(C=this.Hr)==null?void 0:(V=C.T)==null?void 0:V.wM()));var N,H;this.k_("lvsoe",Object.assign(p,(N=this.Hr)==null?void 0:(H=N.C)==null?void 0:H.wM()))}}; g.h.nW=function(p,C,V){this.Pc().nW(p,C,V)}; g.h.Mz=function(p,C,V,N,H,X,d,a){var E;if((E=this.videoData.T)==null?0:E.isLive){var l=C.playerType===2?C:p,t=p.videoData.videoId,c=C.videoData.videoId;if(t&&c){E=this.Pc();if(E.qoe){var T=E.qoe,M=p.cpn,J=C.cpn,S=l.videoData.Q$,D=T.provider.videoData.clientPlaybackNonce,Z=T.provider.videoData.videoId,f=J!==D&&c!==Z;D=M!==D&&t!==Z;T.reportStats();T.adCpn&&T.adCpn!==M||(T.adCpn=D?M:"",T.a$=D?t:"",T.adFormat=D?S:void 0,nu(T,2,X?4:H?2:0,J,c,N),T.reportStats(),T.adCpn=f?J:"",T.a$=f?c:"",T.adFormat=f?S: void 0,nu(T,2,X?5:H?3:1,M,t,V),T.reportStats())}V=p.cpn;if(E.V.has(V)){if(H=E.V.get(V),Qb(H,!0).send(),Wu(H),V!==E.provider.videoData.clientPlaybackNonce){CYQ(H);var q;(q=E.T)==null||QVe(q);E.V.delete(V)}}else E.UE=E.provider.videoData.clientPlaybackNonce,E.UE&&E.T&&(E.V.set(E.UE,E.T),Qb(E.T).send(),Wu(E.T));q=C.cpn;l=l.videoData;N-=this.FA();if(E.V.has(q)){N=E.V.get(q);var A=N.V&&isNaN(N.W)?gX(N):NaN;N=pOs(N,!1);isNaN(A)||(N.Y=A);N.send()}else N=TLS(E,E.provider,l,N),E.V.set(q,N),jia(N,new g.FK(cj(new g.E3, 8),new g.E3)),Wsy(N),(A=E.T)==null||Wu(A);E.UE=q;this.G("html5_unify_csi_server_stitched_transition_logging")?BRs(p.cpn,C.cpn,this.videoData.clientPlaybackNonce,C.videoData,d,void 0,a):(A=this.videoData.clientPlaybackNonce,E=C.videoData,p=(p.cpn===A?"video":"ad")+"_to_"+(C.cpn===A?"video":"ad"),A={},E.Y&&(A.cttAuthInfo={token:E.Y,videoId:E.videoId}),d&&(A.startTime=d),NR(p,A),g.V3({targetVideoId:E.videoId,targetCpn:C.cpn,isSsdai:!0},p),jL("pbs",a!=null?a:(0,g.Ip)(),p))}}}; g.h.Sh=function(p){this.videoData.MF=!0;this.DE(new ON("sabr.fallback",p));this.gI(!0)}; g.h.EB=function(p){this.videoData.s0=!0;this.DE(new ON("qoe.restart",p));this.gI(!0);this.videoData.VL()&&this.G("html5_reload_caption_on_ssdai_fallback")&&this.lJ.Ik()}; g.h.Uk=function(p){this.k_("sdai",{aftimeout:p});this.DE(new ON("ad.fetchtimeout",{timeout:p}))}; g.h.K2=function(p,C){this.k_("timelineerror",p);p=new ON("dai.timelineerror",p);C?this.Ng("dai.timelineerror",1,"RETRYABLE_ERROR",fR(p.details)):this.DE(p)}; g.h.GC=function(){return g.bF(this.Pc().provider)}; g.h.getPlayerSize=function(){return this.AM.getPlayerSize()}; g.h.j5=function(){return this.AM.j5()}; g.h.e5=function(){return this.mM}; g.h.pV=function(){return this.lJ.pV()}; g.h.getVolume=function(){return this.lJ.getVolume()}; g.h.AF=function(){return this.lJ.AF()}; g.h.isMuted=function(){return this.lJ.isMuted()}; g.h.xH=function(){return this.lJ.xH()}; g.h.uo=function(){this.yQ=!0}; g.h.G=function(p){return this.yn.G(p)}; g.h.DH=function(p,C,V,N,H){this.k_("xvt",{m:p,g:C?1:0,tt:V?1:0,np:N?1:0,c:H})}; g.h.Ct=function(){return g.W5(this.HK,"ad")}; g.h.yz=function(){var p=this.getCurrentTime(),C=p-this.X0();var V=this.mediaElement?EJ(this.mediaElement.kq()):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.df(C,this.Vi())))return this.k_("sdai",{skipad:1,ct:C.toFixed(3),adj:0}),!0;var H;return((H=this.nS)==null?0:H.yz(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,L1:"videoplayer_skipServerStitchedAd"}),sTV(this.Sr, p),!0):!1}; g.h.Gk=function(){return this.yn.Gk()}; g.h.jE=function(){if(this.G("html5_generate_content_po_token"))return this.videoData.BZ||"";this.lJ.fm();return this.yn.cR||""}; g.h.Fd=function(){if(this.videoData.videoId)return this.videoData.aF}; g.h.ZQ=function(){return this.videoData.videoId}; g.h.WE=function(){return this.lJ.jg}; g.h.Is=function(){return this.wz}; g.h.Ql=function(){return this.lJ.Ql()}; g.h.Pm=function(p,C){this.Sr.Pm(p,C)}; g.h.gg=function(){this.Sr.gg()}; g.h.Fv=function(p,C){var V=this.G("html5_generate_content_po_token")?this.videoData:void 0;this.lJ.Fv(p,C,V)}; g.h.Dq=function(p,C){var V;(V=this.nS)==null||V.Dq(p,C)}; g.h.U2=function(){var p=this.Hp();return!!p&&p.U2()}; g.h.B1=function(){return this.Ze}; g.h.iz=function(p,C){this.Pc().iz(p,C)}; g.h.Pj=function(){return this.Pc().Pj()}; g.h.Rj=function(){return this.videoData.jP}; g.h.q3=function(){return this.lJ.q3()}; g.h.rA=function(){return this.lJ.rA(this)}; g.h.MM=function(){this.r8=!0}; g.h.vC=function(p){var C;(C=this.nS)==null||C.vC(p)};g.v(t4X,hh);g.v(cDS,hh);g.h=cDS.prototype;g.h.seekToChapterWithAnimation=function(p){var C=this;if(g.U5(this.api)&&!(p<0)){var V=this.api.getVideoData(),N=V.Ov;if(N&&p=0)return;C=~C;g.VR(this.items,C,0,p);aN(this.menuItems.element,p.element,C)}p.subscribe("size-change",this.KF,this);this.menuItems.publish("size-change")}; g.h.i8=function(p){p.unsubscribe("size-change",this.KF,this);this.fS()||(g.rY(this.items,p),this.menuItems.element.removeChild(p.element),this.menuItems.publish("size-change"))}; g.h.KF=function(){this.menuItems.publish("size-change")}; g.h.focus=function(){for(var p=0,C=0;C1&&g.BO(this)}; g.h.Qa=function(){PWj(this);this.n4&&(nXu(this),g.I9(this.element,this.size))}; g.h.M3=function(){var p=this.T.pop();eM1(this,p,this.T[this.T.length-1],!0)}; g.h.fX=function(p){if(!p.defaultPrevented)switch(p.keyCode){case 27:this.f4();p.preventDefault();break;case 37:this.T.length>1&&this.M3();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.pc.prototype.CS.call(this);this.W&&this.W.dispose();this.D&&this.D.dispose()};g.v(GE,g.QX);GE.prototype.open=function(p,C){this.initialize(p.items)&&this.hc(C,!!C)}; GE.prototype.initialize=function(p){g.WO(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.iJ(V.value,C--);return!0}; GE.prototype.iJ=function(p,C){p.menuNavigationItemRenderer?LDv(this,p.menuNavigationItemRenderer,C):p.menuServiceItemRenderer&&gXa(this,p.menuServiceItemRenderer,C)};g.v(pn,$m);g.h=pn.prototype;g.h.Qw=function(p){p.target!==this.dismissButton.element&&p.target!==this.overflowButton.element&&(this.Lr(),this.onClickCommand&&this.N.Jk("innertubeCommand",this.onClickCommand))}; g.h.SY=function(){this.enabled=!1;this.Z.hide()}; g.h.N2=function(){return!!this.T&&this.enabled}; g.h.onVideoDataChange=function(p,C){this.wS(C);if(this.T){this.dS();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.D=g.n(p,NoF);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.R$=(S=this.T)==null?void 0:S.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;Qes(this)}}; g.h.O4$=function(){this.isVisible=!0;Qes(this)}; g.h.QH$=function(){this.isVisible=!1;Qes(this)}; g.h.CZ=function(){$m.prototype.CZ.call(this);this.C&&this.N.logVisibility(this.banner.element,this.isVisible)}; g.h.Lr=function(){$m.prototype.Lr.call(this,!1);this.C&&this.N.logClick(this.banner.element)}; g.h.W3=function(p){this.W||(this.W=new GE(this.N),g.R(this,this.W));var C,V;if((C=this.D)==null?0:(V=C.menu)==null?0:V.menuRenderer)this.W.open(this.D.menu.menuRenderer,p.target),p.preventDefault()}; g.h.wS=function(){}; g.h.dS=function(){}; g.h.CS=function(){this.N.PV("suggested_action_view_model");$m.prototype.CS.call(this)};g.v(Cn,pn); Cn.prototype.wS=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,JB0);var H;if((H=this.productUpsellSuggestedActionViewModel)==null?0:H.content){var X;this.T=g.n((X=this.productUpsellSuggestedActionViewModel)==null?void 0:X.content,Crp)}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)}; Cn.prototype.dS=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.iG(C,N,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.N.jd(p)};g.v(rDv,hh);g.v(jv,hh);jv.prototype.onVideoDataChange=function(p,C){if(!ix(C)){var V;p==="newdata"&&(this.C||this.T&&((V=RH())==null?0:V.size))&&GIu(this);this.T&&p==="dataloaded"&&((p=jvX(this))&&(p=p$a(this,this.C||p))&&this.api.setAudioTrack(p,!0),this.V&&(this.V=!1,NRj(this)))}}; jv.prototype.m$=function(){var p=this;if(g.qz(this.api.K())){var C,V=g.pk(this.api.K(),(C=this.api.getVideoData())==null?void 0:g.XE(C));return lt(h5(V),function(N){var H=Bk();GC(H,N);return p.api.m$(H)})}return h5(this.api.m$())};g.v(g.NA,g.H3);g.h=g.NA.prototype;g.h.open=function(){g.rL(this.xM,this.C)}; g.h.Ag=function(p){Hvj(this);var C=this.options[p];C&&(C.element.setAttribute("aria-checked","true"),this.Jc(this.M1(p)),this.V=p)}; g.h.Zr=function(p){g.WO(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.dj=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.oV=function(){return this.T.muted}; g.h.m3=function(p){xZ();this.T.muted=p}; g.h.pg=function(){return this.T.played||dN([],[])}; g.h.kq=function(){try{var p=this.T.buffered}catch(C){}return p||dN([],[])}; g.h.LQ=function(){return this.T.seekable||dN([],[])}; g.h.mA=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.cB=function(){return this.T.readyState}; g.h.dM=function(){return this.T.networkState}; g.h.H6=function(){return this.T.error?this.T.error.code:null}; g.h.Mg=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.AU=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless}; g.h.Oc=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():kZ()&&p.webkitSetPresentationMode(p.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.h.Pf=function(){var p=this.T;return new g.vG(p.offsetLeft,p.offsetTop)}; g.h.getSize=function(){return g.b4(this.T)}; g.h.setSize=function(p){g.I9(this.T,p)}; g.h.getVolume=function(){return this.T.volume}; g.h.setVolume=function(p){xZ();this.T.volume=p}; g.h.Nk=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.GT=CY(50);g.h.ib=CY(52);g.h.fh=CY(54);g.h.gH=CY(56);g.h.ST=function(){return D3(this.T)}; g.h.qG=function(p){g.Ed(this.T,p)}; g.h.JA=function(p){return g.Do(this.T,p)}; g.h.A5=function(){return g.lK(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]);dl.prototype.CS.call(this)}; g.h.SJ=function(p){this.T.disableRemotePlayback=p};g.v(Tb,g.w);g.v(Jr,g.w);Jr.prototype.show=function(){g.w.prototype.show.call(this);this.Pr();this.ea.G("html5_enable_moving_s4n_window")&&g.qz(this.ea.K())&&this.J()}; Jr.prototype.hide=function(){g.w.prototype.hide.call(this);this.delay.stop();this.S.stop()}; Jr.prototype.Pr=function(){var p=(0,g.Ip)(),C=TRY(this.ea);MA(this.T,C.bandwidth_samples);MA(this.D,C.network_activity_samples);MA(this.V,C.live_latency_samples);MA(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)}; Jr.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.v(mbX,hh);g.v(mY,g.z);mY.prototype.T=function(){var p=(0,g.Ip)()-this.startTime;p=pthis.S[p])&&(this.T=p,IiV(this))}; g.h.onCueRangeExit=function(p){var C=qaa(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=qaa(this,this.T))&&this.api.Jk("innertubeCommand",p)}; g.h.jK=function(p){this.C=p}; g.h.dD=function(){IiV(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.K$();this.clearTimeout();hh.prototype.CS.call(this)};g.v(oaY,hh);var F8={},LRH=(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.v(DT,hh);DT.prototype.CS=function(){this.W&&(g.Dr(this.W),this.W=void 0);hh.prototype.CS.call(this)}; DT.prototype.fm=function(){this.T&&!this.T.isReady()&&ZT(this)}; DT.prototype.N3=function(p,C,V){var N=this;if(xbL(p)){var H=V||"",X;if((X=this.T)==null?0:X.isReady())C=UC(this,H),Yaa(p,C);else{var d=new g.u3;C.push(d.promise);this.S.promise.then(function(){var a=UC(N,H);Yaa(p,a);d.resolve()})}}}; DT.prototype.Jm=function(p){var C=this;this.T&&(this.T.isReady()||(p.BZ=UC(this,p.videoId)),this.C=new XO,this.T.ready().then(function(){C.mM.xB("pot_if");p.BZ=UC(C,p.videoId)}))};g.v(WR9,hh);g.v(fn,g.z);fn.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)}; fn.prototype.CS=function(){for(var p=this.features.length-1;p>=0;p--)this.features[p].dispose();this.features.length=0;g.z.prototype.CS.call(this)};OC.prototype.sP=function(){this.C=(0,g.Ip)()}; OC.prototype.reset=function(){this.T=this.C=NaN}; OC.prototype.m1=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});NR("seek",V);g.V3({clientPlaybackNonce:p.clientPlaybackNonce},"seek");isNaN(this.C)||jL("pl_ss",this.C,"seek");jL(C,(0,g.Ip)(),"seek")}this.reset()}};g.h=QvQ.prototype;g.h.reset=function(){G0(this.timerName)}; g.h.tick=function(p,C){jL(p,C,this.timerName)}; g.h.xB=function(p){return XA(p,this.timerName)}; g.h.oA=function(p){ok(p,void 0,this.timerName)}; g.h.infoGel=function(p){g.V3(p,this.timerName)};g.v(pNY,g.ca);g.h=pNY.prototype;g.h.uT=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)||rM(this,1,!0)}; g.h.dE=function(){this.Y=!0;this.T.rY(this.W);this.W=this.T.U(document,"mouseup",this.hG)}; g.h.hG=function(){this.Y=!1;rM(this,8,!1);this.T.rY(this.W);this.W=this.T.U(this.target,"mousedown",this.dE)}; g.h.jc=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.ew,void 0,!0),rM(this,1024,!0)}; g.h.ew=function(p){if(p=p.changedTouches)for(var C=0;C1280||X>720)if(H=V.b8("maxresdefault.jpg"))break;if(N>640||X>480)if(H=V.b8("maxresdefault.jpg"))break; if(N>320||X>180)if(H=V.b8("sddefault.jpg")||V.b8("hqdefault.jpg")||V.b8("mqdefault.jpg"))break;if(H=V.b8("default.jpg"))break}g.LI(C)&&(C=new Image,C.addEventListener("load",function(){de9()}),C.src=H?H:"",this.api.e5().tick("ftr")); this.W.style.backgroundImage=H?"url("+H+")":""};g.v(g.CZ,g.w);g.CZ.prototype.resize=function(){}; g.CZ.prototype.C=function(p){var C=this;this.V=!1;rXu(this);var V=p.Gc,N=this.api.K();V!=="GENERIC_WITHOUT_LINK"||N.Y?V==="TOO_MANY_REQUESTS"?(N=this.api.getVideoData(),this.Jc(Nd(this,"TOO_MANY_REQUESTS_WITH_LINK",N.Eh(),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.BX(p,{hl:N})),this.Jc(Nd(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.BX(p,{hl:N})),this.Jc(Nd(this,"BROWSER_OR_EXTENSION_ERROR",p))):this.Jc(g.j4(p.errorMessage)):this.Jc(Nd(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.BX(V, {hl:p})),this.Jc(Nd(this,"GENERIC_WITH_LINK_AND_CPN",V,!0)),N.uJ&&!N.S&&QCs(this,function(X){if(g.Jh(X,C.api,!nI(C.api.K()))){X={as3:!1,html5:!0,player:!0,cpn:C.api.getVideoData().clientPlaybackNonce};var d=C.api;d.YG("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),QCs(this,function(){C.api.logClick(H)}))}}; var WPu=/([^<>]+)<\/a>/;g.v(BJY,g.w);g.h=BJY.prototype;g.h.onClick=function(p){this.innertubeCommand?(this.N.Jk("innertubeCommand",this.innertubeCommand),p.preventDefault()):g.Jh(p,this.N,!0);this.N.logClick(this.element)}; g.h.onVideoDataChange=function(p,C){pqY(this,C);this.OO&&CM9(this,this.OO)}; g.h.H3=function(p){var C=this.N.getVideoData();this.videoId!==C.videoId&&pqY(this,C);this.T&&CM9(this,p.state);this.OO=p.state}; g.h.hc=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.v(Hz,g.w);Hz.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.w.prototype.hide.call(this)}; Hz.prototype.onStateChange=function(p){this.Ba(p.state)}; Hz.prototype.Ba=function(p){(g.r(p,128)||this.api.Is()?0:g.r(p,16)||g.r(p,1))?this.T.start():this.hide()}; Hz.prototype.C=function(){this.message.style.display="block"};g.v(Xo,g.pc);Xo.prototype.onMutedAutoplayChange=function(p){this.V&&(p?(jQV(this),this.hc()):(this.T&&this.logClick(),this.f4()))}; Xo.prototype.M5=function(p){this.api.isMutedByMutedAutoplay()&&g.Kt(p,2)&&this.f4()}; Xo.prototype.onClick=function(){this.api.unMute();this.logClick()}; Xo.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.v(g.du,g.YZ);g.h=g.du.prototype;g.h.init=function(){var p=this.api,C=p.getPlayerStateObject();this.eM=p.getPlayerSize();this.aN(C);this.Mr();this.OR();this.api.publish("basechromeinitialized",this);this.LP()&&this.api.publish("standardControlsInitialized")}; g.h.onVideoDataChange=function(p,C){var V=this.We!==C.videoId;if(V||p==="newdata"){p=this.api;p.isFullscreen()||(this.eM=p.getPlayerSize());var N;((N=this.api.getVideoData(1))==null?0:g.pf(N))&&this.cK()}V&&(this.We=C.videoId,V=this.DZ,V.Vn=3E3,rM(V,512,!0),this.Mr());this.api.G("web_render_jump_buttons")&&C.showSeekingControls&&(this.CY=572)}; g.h.W6S=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.h.Gy=function(){var p=this.api.yV()&&this.api.Rc(),C=this.api.XS();return this.Fh||p||this.Jq||C}; g.h.cK=function(){var p=!this.Gy();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.qT=function(p){try{if(!g.lK(this.api.getRootNode(),p))return!1}catch(C){return!1}for(;p&&!MqX(p);)p=p===this.api.getRootNode()?null:p.parentElement||null;return!!p}; g.h.HC=function(p){var C=this.api.getRootNode();g.Tz(C,"ytp-autohide",p);g.Tz(C,"ytp-autohide-active",!0);this.Cs.start(p?250:100);p&&(this.pK=!1,g.tk(C,"ytp-touch-mode"));this.q7=!p;this.api.bu(!p)}; g.h.xD=function(){var p=this.api.getRootNode();g.Tz(p,"ytp-autohide-active",!1)}; g.h.yiS=function(){this.xL=!0}; g.h.Z1n=function(p){if(this.api.K().G("player_doubletap_to_seek")||this.api.K().J)this.xL=!1,this.s4&&this.rY(this.s4),this.OG===0&&iW(this,p)?(this.Qj(),this.u5.start(),this.s4=this.U(this.api.dV(),"touchmove",this.yiS,void 0,!0)):this.u5.stop();XqH(this)&&iW(this,p)&&!this.api.K().J&&Nvj(this);var C=this.S0.f$();if(!g.KI(this.api.K())&&vg&&dEH(this,p))C&&p.preventDefault();else if(this.pK=!0,g.Ed(this.api.getRootNode(),"ytp-touch-mode"),this.DZ.jY(),this.api.K().G("player_doubletap_to_seek")||this.api.K().J)if(C= this.api.getPlayerStateObject(),!(!this.api.s8()||g.r(C,2)&&g.zC(this.api)||g.r(C,64))){C=Date.now()-this.IQ;this.OG+=1;if(C<=350){this.ye=!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.OG-1)*10;N>0&&NC*2&&N=650;this.DZ.resize();g.Tz(C,"ytp-fullscreen",this.api.isFullscreen());g.Tz(C,"ytp-large-width-mode",V);g.Tz(C,"ytp-small-mode",this.Qf());g.Tz(C,"ytp-tiny-mode",this.tH());g.Tz(C,"ytp-big-mode",this.Rd());this.fd&&this.fd.resize(p)}; g.h.M5=function(p){this.aN(p.state);this.Mr()}; g.h.zy=CY(5);g.h.Zy=function(){var p=!!this.We&&!this.api.K9()&&!this.Si,C=this.api.getPresentingPlayerType()===2,V=this.api.K();if(C){if(wm1&&V.G("enable_visit_advertiser_support_on_ipad_mweb"))return!1;C=$W(this.api.Tk());p&&(C&&C.player?p=(p=C.player.getVideoData(2))?p.isListed&&!g.Of(C.player.K()):!1:(vE("showInfoBarDuringAd: this is null"),p=!1));return p}return p&&(V.c_||this.api.isFullscreen()||V.oz)}; g.h.Mr=function(){var p=this.Zy();this.Dm!==p&&(this.Dm=p,g.Tz(this.api.getRootNode(),"ytp-hide-info-bar",!p))}; g.h.aN=function(p){var C=p.isCued()||this.api.mY()&&this.api.getPresentingPlayerType()!==3;C!==this.isCued&&(this.isCued=C,this.IU&&this.rY(this.IU),this.IU=this.U(this.api.dV(),"touchstart",this.Z1n,void 0,C));var V=this.DZ,N=p.isPlaying()&&!g.r(p,32)||this.api.sG();rM(V,128,!N);V=this.DZ;N=this.api.getPresentingPlayerType()===3;rM(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.cq,N)||(g.cF(V,this.cq),this.cq=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:fxe($W(this.api.Tk())))||this.api.XS()||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.Jq);g.r(p, 128)&&!g.KI(N)?(this.fd||(this.fd=new g.CZ(this.api),g.R(this,this.fd),g.gb(this.api,this.fd.element,4)),this.fd.C(p.Kd),this.fd.show()):this.fd&&(this.fd.dispose(),this.fd=null)}; g.h.WS=function(){return this.api.yV()&&this.api.Rc()?(this.api.uQ(!1,!1),!0):this.api.K9()?(g.R$(this.api,!0),!0):!1}; g.h.onMutedAutoplayChange=function(p){this.Jq=p;this.cK()}; g.h.Rd=function(){return!1}; g.h.Qf=function(){return!this.Rd()&&(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.mG(0,0,0,0);N.left=p.x;N.top=p.y;N.width= C.width;N.height=C.height;g.f2(this.element,new g.vG(N.left,N.top));g.Am(this.S);this.S.U(Cc(this),"contextmenu",this.UW$);this.S.U(this.N,"fullscreentoggled",this.onFullscreenToggled);this.S.U(this.N,"pageTransition",this.B3)}; g.h.UW$=function(p){if(!p.defaultPrevented){var C=yc(p);g.lK(this.element,C)||this.f4();this.N.K().disableNativeContextMenu&&p.preventDefault()}}; g.h.onFullscreenToggled=function(){this.f4();yFv(this)}; g.h.B3=function(){this.f4()};g.v(JD,g.w);JD.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,bDu(p,H),2);X.T&&IOS(p);p.api.logClick(p.element);g.JQ(X)})}; JD.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=qmL(this);g.Tz(this.element,"ytp-copylink-button-visible", this.visible);this.F0(this.visible);this.tooltip.JU();this.api.logVisibility(this.element,this.visible&&this.Y)}; JD.prototype.RH=function(p){g.w.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; JD.prototype.CS=function(){g.w.prototype.CS.call(this);g.tk(this.element,"ytp-copylink-button-visible")};g.v(mD,g.w);mD.prototype.show=function(){g.w.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.w.prototype.hide.call(this)}; mD.prototype.tK=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");AFv(this,this.W?this.V:N)};g.v(kSL,$m);g.h=kSL.prototype;g.h.UT=function(p){this.vr||(this.vr=new GE(this.N),g.R(this,this.vr));var C,V;if((C=this.F$)==null?0:(V=C.menu)==null?0:V.menuRenderer)this.vr.open(this.F$.menu.menuRenderer,p.target),p.preventDefault()}; g.h.N2=function(){return!!this.T}; g.h.En=function(){return!!this.T}; g.h.Qw=function(p){p.target===this.overflowButton.element?p.preventDefault():(this.wy&&this.N.Jk("innertubeCommand",this.wy),this.Lr(!1))}; g.h.SY=function(){this.Lr(!0);var p,C;((p=this.T)==null?0:(C=p.bannerData)==null?0:C.dismissedStatusKey)&&this.Hc.push(this.T.bannerData.dismissedStatusKey);this.B9()}; g.h.JC=function(){this.B9();KZ(this)}; g.h.xnn=function(p){var C=this,V;if(p.id!==((V=this.T)==null?void 0:V.identifier)){this.B9();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.Z.show();wL(this);this.Sa.F0(!N.stayInApp);Wfy(this);Ymu(this);S4(this);this.wy=g.n(N.onTapCommand,w7);if(H=g.n(N.menuOnTap,w7))this.F$=g.n(H,NoF);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:nyS(this),priceDropReferencePrice:e9Y(this),promotionText:R9Y(this),priceA11yText:PML(this),affiliateDisclaimer:N.affiliateDisclaimer,vendor:wq9(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(){gyj(C)},1E3),this.Sa.hide(),this.countdownTimer.show(),gyj(this)); this.N.G("web_player_enable_featured_product_banner_exclusives_on_desktop")&&xES(this)&&(this.YM=new g.N8(function(){z9e(C)},1E3),z9e(this))}}}}; g.h.B9=function(){this.T&&(this.T=void 0,this.Jd())}; g.h.onVideoDataChange=function(p,C){var V=this;p==="dataloaded"&&KZ(this);var N,H,X;p=g.n((N=C.getWatchNextResponse())==null?void 0:(H=N.playerOverlays)==null?void 0:(X=H.playerOverlayRenderer)==null?void 0:X.productsInVideoOverlayRenderer,jf1);this.overflowButton.show();this.dismissButton.hide();var d=p==null?void 0:p.featuredProductsEntityKey;this.trendingOfferEntityKey=p==null?void 0:p.trendingOfferEntityKey;this.Vn.length||(Lf9(this,d),S4(this));var a;(a=this.MW)==null||a.call(this);this.MW=g.Xx.subscribe(function(){Lf9(V, d);S4(V)})}; g.h.CS=function(){KZ(this);Wfy(this);Ymu(this);$m.prototype.CS.call(this)};g.v(pDL,g.w);pDL.prototype.onClick=function(){this.N.logClick(this.element,this.C)};g.v(CSL,g.pc);g.h=CSL.prototype;g.h.show=function(){g.pc.prototype.show.call(this);this.N.publish("infopaneldetailvisibilitychange",!0);this.N.logVisibility(this.element,!0);jJv(this,!0)}; g.h.hide=function(){g.pc.prototype.hide.call(this);this.N.publish("infopaneldetailvisibilitychange",!1);this.N.logVisibility(this.element,!1);jJv(this,!1)}; g.h.getId=function(){return this.S}; g.h.wj=function(){return this.itemData.length}; g.h.onVideoDataChange=function(p,C){if(C){var V,N,H,X;this.update({title:((V=C.dR)==null?void 0:(N=V.title)==null?void 0:N.content)||"",body:((H=C.dR)==null?void 0:(X=H.bodyText)==null?void 0:X.content)||""});var d;p=((d=C.dR)==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.dR)==null?0:a.ctaButtons)for(C=g.F(C.dR.ctaButtons),a=C.next();!a.done;a=C.next())if(a=g.n(a.value, QF1))a=new pDL(this.N,a,this.T),a.GN&&(this.itemData.push(a),a.u_(this.items))}}; g.h.CS=function(){this.hide();g.pc.prototype.CS.call(this)};g.v(HMY,g.w);g.h=HMY.prototype;g.h.onVideoDataChange=function(p,C){NK9(this,C);this.OO&&dWX(this,this.OO)}; g.h.g_=function(p){var C=this.N.getVideoData();this.videoId!==C.videoId&&NK9(this,C);dWX(this,p.state);this.OO=p.state}; g.h.Iv=function(p){(this.S=p)?this.hide():this.T&&this.show()}; g.h.lY=function(){this.C||this.hc();this.showControls=!0}; g.h.KX=function(){this.C||this.f4();this.showControls=!1}; g.h.hc=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.EB$=function(){this.C=!1;this.showControls||this.f4()};var jtc={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(jtc).reduce(function(p,C){p[jtc[C]]=C;return p},{}); var VqE={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(VqE).reduce(function(p,C){p[VqE[C]]=C;return p},{}); var NC0={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(NC0).reduce(function(p,C){p[NC0[C]]=C;return p},{});var Hyy,X45;Hyy=[{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"}];X45=[{option:0,text:DR(0)},{option:.25,text:DR(.25)},{option:.5,text:DR(.5)},{option:.75,text:DR(.75)},{option:1,text:DR(1)}]; g.fZ=[{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:Hyy},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:DR(.5)},{option:-1,text:DR(.75)},{option:0,text:DR(1)},{option:1, text:DR(1.5)},{option:2,text:DR(2)},{option:3,text:DR(3)},{option:4,text:DR(4)}]},{option:"background",text:"Cor de fundo",options:Hyy},{option:"backgroundOpacity",text:"Opacidade de fundo",options:X45},{option:"windowColor",text:"Cor da janela",options:Hyy},{option:"windowOpacity",text:"Opacidade da janela",options:X45},{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:DR(.25)},{option:.5,text:DR(.5)},{option:.75,text:DR(.75)},{option:1,text:DR(1)}]}];var dmG=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.v(l4L,g.YZ);g.h=l4L.prototype; g.h.rQ=function(p){p.repeat||(this.V.GD=!1);var C=!1,V=p.keyCode,N=yc(p),H=!p.altKey&&!p.ctrlKey&&!p.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||dmG.includes(V)),X=!1,d=!1,a=this.api.K();p.defaultPrevented?(H=!1,d=!0):a.d7&&!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);ER(this.WV,X,!1);this.api.setVolume(X); d=X=!0;break;case 40:X=Math.max(this.api.getVolume()-5,0);ER(this.WV,X,!0);this.api.setVolume(X);d=X=!0;break;case 36:this.api.s8()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),d=X=!0);break;case 35:this.api.s8()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),d=X=!0)}}C&&ZR(this,!0);(C||d)&&this.DZ.jY();(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.Vg=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.GD)return C;(V=g.wb(this.api.Tk()))&&(V=V.gW)&&V.n4&&(V.sQ(p),C=!0);switch(p){case 9:ZR(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().d7){var a,E;p=(a=this.progressBar)== null?void 0:(E=a.C)==null?void 0:E.isEnabled;C=this.Yn(p)}}return C}; g.h.handleGlobalKeyDown=function(p,C,V,N,H,X,d,a){a||(this.V.GD=!1);var E=!1,l=this.api.K();if(l.d7&&!this.api.isMutedByEmbedsMutedAutoplay())return E;var t=g.wb(this.api.Tk());if(t&&(t=t.gW)&&t.n4)switch(p){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:E=t.xi(p)}l.Y||E||(E=X||String.fromCharCode(p).toLowerCase(),this.C+=E,"awesome".indexOf(this.C)===0?(E=!0,7===this.C.length&&xkY(this.api.getRootNode(),"ytp-color-party")):(this.C=E,E="awesome".indexOf(this.C)===0));if(!E&&(!this.api.isMutedByEmbedsMutedAutoplay()|| dmG.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.Ov:[];M=pA?N:V;switch(p){case 80:C&&!l.Ga&&(ae(this.WV,olS(),"Anterior"),this.api.previousVideo(),E=!0);break;case 78:C&&!l.Ga&&(ae(this.WV,yD(),"Pr\u00f3ximo"),this.api.nextVideo(),E=!0);break;case 74:this.api.s8()&&(this.api.startSeekCsiAction(),this.T?this.api.G("enable_key_press_seek_logging")?(E=UR(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"), vz(this.T,-1,10,E)):vz(this.T,-1,10):ae(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.s8()&&(this.api.startSeekCsiAction(),this.T?this.api.G("enable_key_press_seek_logging")?(E=UR(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),vz(this.T,1,10,E)):vz(this.T,1,10):ae(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.s8()&&(this.api.startSeekCsiAction(),M?(M=sJe(T,this.api.getCurrentTime()*1E3),M!==-1&&this.T!=null&&(oye(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=UR(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),vz(this.T,-1,5,E)):vz(this.T,-1,5):ae(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.s8()&&(this.api.startSeekCsiAction(),M?(M=hfu(T,this.api.getCurrentTime()*1E3),M!==-1&&this.T!=null&&(oye(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=UR(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),vz(this.T,1,5,E)):vz(this.T,1,5):ae(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(),ER(this.WV,this.api.getVolume(),!1)):(this.api.mute(),ER(this.WV,0,!0));E=!0;break;case 32:E=this.api.G("web_speedmaster_spacebar_control")?!this.api.K().Ga:this.Yn(t);break;case 75:E=this.Yn(t);break;case 190:C?l.enableSpeedOptions&&cJv(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E+.25,!0),h9H(this.WV,!1),E=!0):this.api.s8()&&(this.step(1),E=!0);break;case 188:C? l.enableSpeedOptions&&cJv(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E-.25,!0),h9H(this.WV,!0),E=!0):this.api.s8()&&(this.step(-1),E=!0);break;case 70:sZ9(this.api)&&(this.api.toggleFullscreen().catch(function(){}),E=!0); break;case 27:t?(this.progressBar.mK(),E=!0):this.Y()&&(E=!0)}if(l.controlsType!=="3")switch(p){case 67:g.ev(this.api.Tk())&&(l=this.api.getOption("captions","track"),this.api.toggleSubtitles(),sQX(this.WV,!l||l&&!l.displayName),E=!0);break;case 79:OR(this,"textOpacity");break;case 87:OR(this,"windowOpacity");break;case 187:case 61:OR(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:OR(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.s8()&& (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.DZ.jY()}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.s8();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.Yn=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,aVE))==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else C=!1;C&&this.api.Jk("onExpandMiniplayer");p?this.progressBar.PG():(p=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.WV.nh(p),p?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.h.CS=function(){g.d0(this.W);g.YZ.prototype.CS.call(this)};g.v(g.y1,g.w);g.y1.prototype.Lw=CY(11); g.y1.prototype.Pr=function(){var p=this.N.K(),C=p.V||this.N.G("web_player_hide_overflow_button_if_empty_menu")&&this.ZP.isEmpty();p=g.KI(p)&&g.eQ(this.N)&&g.r(this.N.getPlayerStateObject(),128);var V=this.N.getPlayerSize();this.visible=this.N.Qf()&&!p&&V.width>=240&&!g.t_(this.N.getVideoData())&&!C&&!this.T&&!this.N.isEmbedsShortsMode();g.Tz(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.N.JU();this.N.logVisibility(this.element,this.visible&&this.Y)}; g.y1.prototype.RH=function(p){g.w.prototype.RH.call(this,p);this.N.logVisibility(this.element,this.visible&&p)}; g.y1.prototype.CS=function(){g.w.prototype.CS.call(this);g.tk(this.element,"ytp-overflow-button-visible")};g.v(TKS,g.pc);g.h=TKS.prototype;g.h.OT=function(p){p=yc(p);g.lK(this.element,p)&&(g.lK(this.T,p)||g.lK(this.closeButton,p)||jm(this))}; g.h.f4=function(){g.pc.prototype.f4.call(this);this.N.k5(this.element)}; g.h.show=function(){this.n4&&this.N.publish("OVERFLOW_PANEL_OPENED");g.pc.prototype.show.call(this);this.element.setAttribute("aria-modal","true");JJj(this,!0)}; g.h.hide=function(){g.pc.prototype.hide.call(this);this.element.removeAttribute("aria-modal");JJj(this,!1)}; g.h.onFullscreenToggled=function(p){!p&&this.f$()&&jm(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.n4){C.focus();break}};g.v(mWL,g.w);mWL.prototype.onClick=function(p){g.Jh(p,this.api)&&this.api.playVideoAt(this.index)};g.v(vRS,g.pc);g.h=vRS.prototype;g.h.show=function(){g.pc.prototype.show.call(this);this.T.U(this.api,"videodatachange",this.KN);this.T.U(this.api,"onPlaylistUpdate",this.KN);this.KN()}; g.h.hide=function(){g.pc.prototype.hide.call(this);g.Am(this.T);this.updatePlaylist(null)}; g.h.KN=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.QF=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.FY(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.F0(this.visible);g.Tz(this.element,"ytp-search-button-visible",this.visible);g.Tz(this.element,"ytp-show-search-title",!this.api.Qf());this.api.logVisibility(this.element,this.visible&&this.Y)}; AD.prototype.RH=function(p){g.w.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)};g.v(g.oe,g.w);g.h=g.oe.prototype;g.h.NG=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){f4H(p,X)})}catch(X){X instanceof Error&&f4H(this,X)}else this.T.WS(),jm(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.Rd()&&C?(p=(this.api.dV().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Sh(this.element,"right",p+"px")):C&&g.Sh(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=UWe(this);g.Tz(this.element,"ytp-share-button-visible",this.visible);this.F0(this.visible);this.tooltip.JU();this.api.logVisibility(this.element,UWe(this)&&this.Y)}; g.h.RH=function(p){g.w.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; g.h.CS=function(){g.w.prototype.CS.call(this);g.tk(this.element,"ytp-share-button-visible")};g.v(yJy,g.pc);g.h=yJy.prototype;g.h.oP=function(p){p=yc(p);g.lK(this.W,p)||g.lK(this.closeButton,p)||jm(this)}; g.h.f4=function(){g.pc.prototype.f4.call(this);this.tooltip.k5(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.n4;g.pc.prototype.show.call(this);this.Pr();p||this.api.Jk("onSharePanelOpened")}; g.h.Do_=function(){this.n4&&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&&hd(this.api.m$(),C.getSharePanelCommand,{includeListId:V}).then(function(N){p.fS()||(g.tk(p.element,"ytp-share-panel-loading"),I4y(p,N))}); C=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",C);this.updateValue("linkText",C);this.updateValue("shareLinkWithUrl",g.FY("Compartilhar o link $URL",{URL:C}));FB(this.T);this.api.logVisibility(this.T,!0)}; g.h.onFullscreenToggled=function(p){!p&&this.f$()&&jm(this)}; g.h.focus=function(){this.T.focus()}; g.h.CS=function(){g.pc.prototype.CS.call(this);qU9(this)};g.v(oRY,$m);g.h=oRY.prototype;g.h.CS=function(){Rfu(this);$m.prototype.CS.call(this)}; g.h.Qw=function(p){p.target!==this.dismissButton.element&&(this.Lr(!1),this.N.Jk("innertubeCommand",this.onClickCommand))}; g.h.SY=function(){this.Y_=!0;this.Lr(!0);this.Jd()}; g.h.NY_=function(p){this.D=p;this.Jd()}; g.h.onVideoDataChange=function(p,C){if(p=!!C.videoId&&this.videoId!==C.videoId)this.videoId=C.videoId,this.Y_=!1,this.sY=!0,this.J=this.b_=!1,Rfu(this),zfQ(this,!1),this.C=this.T=!1,xX(this),kUQ(this);if(p||!C.videoId)this.a$=this.S=!1;var V,N;if(C==null?0:(V=C.getPlayerResponse())==null?0:(N=V.videoDetails)==null?0:N.isLiveContent)this.oI(!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, jf1);this.D=this.enabled=!1;if(C){if(H=C==null?void 0:C.featuredProductsEntityKey){X=g.Xx.getState().entities;var a;if((a=cJ(X,"featuredProductsEntity",H))==null?0:a.productsData){this.oI(!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.a$){var l;if(this.a$=!((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,zfQ(this,!0),kUQ(this),E=YUL(this,E),l=[],E.length>0&&l.push(E[0]),E.length>1&&(t=new g.w({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.W=new g.w({L:"div",j:l,B:"ytp-suggested-action-content-forward-container"}),g.R(this,this.W),this.Wr.element.append(this.W.element));this.text=g.Kq(C.text);var c;if(E=(c=C.dismissButton)==null?void 0:c.a11yLabel)this.R$= g.Kq(E);this.onClickCommand=C.onClickCommand;this.timing=C.timing;this.jd()}zMH(this);wL(this);this.Jd()}}; g.h.N2=function(){return!this.D&&this.enabled&&!this.Y_&&!this.N.Qf()&&!this.bx&&(this.J||this.sY)}; g.h.g5=function(p){$m.prototype.g5.call(this,p);if(this.T||this.C)this.timing&&kX(this.timing.preview)&&(this.T=!1,xX(this),this.C=!1,xX(this),this.N.PV("shopping_overlay_preview_collapsed"),this.N.PV("shopping_overlay_preview_expanded"),p=YX(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),kX(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.N.PV("shopping_overlay_expanded"),p.end=this.timing.expanded.endSec*1E3),this.N.jd([p])), this.b_=!0,wL(this);xX(this)}; g.h.oI=function(p){(this.J=p)?(PO(this),wL(this,!1)):(Rfu(this),this.Ga.start());this.Jd()}; g.h.jd=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;kX(N)&&(bM1(N,p),V.push(YX(N.startSec,N.endSec,"shopping_overlay_visible")));kX(H)&&(bM1(H,p),N=H.startSec+1,V.push(YX(H.startSec,N,"shopping_overlay_preview_collapsed")),V.push(YX(N,H.endSec,"shopping_overlay_preview_expanded")));kX(C)&&(bM1(C,p),V.push(YX(C.startSec,C.endSec,"shopping_overlay_expanded")));this.N.jd(V)};g.v(PSH,g.w); PSH.prototype.Pr=function(){var p=this.api.K();this.F0(g.KI(p)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.n4);var C=this.api.getVideoData(),V=!1;this.api.getPresentingPlayerType()===2?V=!!C.videoId&&!!C.isListed&&!!C.author&&!!C.bx&&!!C.profilePicture:g.KI(p)&&(V=!!C.videoId&&!!C.bx&&!!C.profilePicture&&!g.t_(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.FY("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.Qv);this.updateValue("expandedTitle",C.expandedTitle)};g.v(zI,g.pc);zI.prototype.show=function(){g.pc.prototype.show.call(this);this.T.start()}; zI.prototype.hide=function(){g.pc.prototype.hide.call(this);this.T.stop()}; zI.prototype.Bf=function(p,C){p==="dataloaded"&&((this.iM=C.iM,this.H1=C.H1,isNaN(this.iM)||isNaN(this.H1))?this.V&&(this.N.PV("intro"),this.N.removeEventListener(g.sz("intro"),this.D),this.N.removeEventListener(g.aj("intro"),this.W),this.N.removeEventListener("onShowControls",this.S),this.hide(),this.V=!1):(this.N.addEventListener(g.sz("intro"),this.D),this.N.addEventListener(g.aj("intro"),this.W),this.N.addEventListener("onShowControls",this.S),p=new g.iG(this.iM,this.H1,{priority:9,namespace:"intro"}), this.N.jd([p]),this.V=!0))};g.v(Re,g.w);Re.prototype.onClick=function(){this.N.Oc()}; Re.prototype.Pr=function(){var p=!0;g.KI(this.N.K())&&(p=p&&this.N.dV().getPlayerSize().width>=480);this.F0(p);this.updateValue("icon",this.N.AU()?{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.v($Wj,g.w);$Wj.prototype.CS=function(){this.T=null;g.w.prototype.CS.call(this)};g.v(nZ,g.w);nZ.prototype.onClick=function(){this.N.Jk("innertubeCommand",this.C)}; nZ.prototype.J=function(p){p!==this.W&&(this.update({title:p,ariaLabel:p}),this.W=p);p?this.show():this.hide()}; nZ.prototype.D=function(){this.T.disabled=this.C==null;g.Tz(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.va()};g.v(e4,nZ);e4.prototype.onClickCommand=function(p){g.n(p,H_)&&this.va()}; e4.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.kr))==null?void 0:X.command;nZ.prototype.D.call(this)}; e4.prototype.va=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=uW(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;nZ.prototype.J.call(this,p)};g.v(Pz,g.w);Pz.prototype.W=function(p){g.r(p.state,32)?gRV(this,this.api.uf()):this.n4&&(g.r(p.state,16)||g.r(p.state,1))||this.T.hide()}; Pz.prototype.eq=function(){var p=this.api.getPlayerStateObject();(g.r(p,32)||g.r(p,16))&&Wmy(this)}; Pz.prototype.D=function(){this.V=NaN;Wmy(this)}; Pz.prototype.hide=function(){this.C&&gRV(this,null);g.w.prototype.hide.call(this)};g.v(QJS,g.w);g.h=QJS.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.jT(C)})}catch(C){this.jT(C)}}else jm(this.message,this.element,!0)}; g.h.jT=function(p){String(p).includes("fullscreen error")?g.eG(p):g.nm(p);this.eK()}; g.h.eK=function(){this.disable();this.message.hc(this.element,!0)}; g.h.Jo=function(){KK()===this.N.getRootNode()?this.V.start():(this.V.stop(),this.message&&this.message.hide())}; g.h.bA=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.eK()}}; 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.pc(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.nJ(p.message,V)}); g.gb(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=sZ9(this.N),C=this.N.K().J&&this.N.getPlayerSize().width<250;this.F0(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.n4&&this.Y):this.N.logVisibility(this.element,this.n4)}; g.h.BI=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.xj(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.xj(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().JU()}; g.h.CS=function(){this.message||((0,this.T)(),this.T=null);g.w.prototype.CS.call(this)}; g.h.RH=function(p){g.w.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.n4&&p)};g.v(wu,g.w);wu.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.SU().rO;V&&vz(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.v($X,nZ);$X.prototype.onClickCommand=function(p){g.n(p,py0)&&this.va()}; $X.prototype.updateVideoData=function(){var p,C;this.C=(p=BKu(this))==null?void 0:(C=p.onTap)==null?void 0:C.innertubeCommand;nZ.prototype.D.call(this)}; $X.prototype.va=function(){var p="",C=this.S.D,V,N=(V=BKu(this))==null?void 0:V.headerTitle;V=N?g.Kq(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=iM9(C,p),p=H!=null?C[H].title:V,H!=null&&H!==this.currentIndex&&(this.N.Jk("innertubeCommand",C[H].onActiveCommand),this.currentIndex=H));nZ.prototype.J.call(this,p)};g.v(LZ,g.w);LZ.prototype.onClick=function(){this.N.Jk("onCollapseMiniplayer");this.N.logClick(this.element)}; LZ.prototype.Pr=function(){this.visible=!this.N.isFullscreen();this.F0(this.visible);this.N.logVisibility(this.element,this.visible&&this.Y)}; LZ.prototype.RH=function(p){g.w.prototype.RH.call(this,p);this.N.logVisibility(this.element,this.visible&&p)};g.v(GUj,g.w);g.h=GUj.prototype;g.h.qU=function(p){this.visible=p.width>=300||this.Sa;this.F0(this.visible);this.N.logVisibility(this.element,this.visible&&this.Y)}; g.h.sNr=function(){this.N.K().R$?this.N.isMuted()?this.N.unMute():this.N.mute():jm(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)?jPu(this,p):SaX(this.Vn,function(a){jPu(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)?VjY(this,N):SaX(this.a$,function(a){VjY(V,d+(V.S-d)*a)},250); this.S=N}H.R$&&(H=g.xj(this.N,"Sem \u00e1udio","m"),N=g.xj(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.JU())}; g.h.RH=function(p){g.w.prototype.RH.call(this,p);this.N.logVisibility(this.element,this.visible&&p)}; var pLL=["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"],Ck9=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.v(g.gu,g.w);g.h=g.gu.prototype;g.h.onStateChange=function(p){this.Ba(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.n4&&this.Y)}; g.h.Ba=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.xj(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.xj(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:N4e(p)}):(this.update({title:C}),(C=N4e(p))&&this.T&&this.T!==3?DbL(this.transition,this.element,C):this.updateValue("icon",C));this.tooltip.JU();this.T=p}}; g.h.onVideoDataChange=function(){g.Tz(this.element,"ytp-play-button-playlist",g.eQ(this.N))}; g.h.Yn=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};NR("direct_playback",C);this.N.e5().timerName="direct_playback"}else this.T===3&&y$(this.N.e5());this.N.playVideo()}this.N.isMinimized()&&(p==null?void 0:p.type)==="click"&& this.element.blur()}; g.h.RH=function(p){g.w.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.n4&&p)};g.v(g.Wz,g.w);g.h=g.Wz.prototype;g.h.onVideoDataChange=function(){XLy(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.d_);this.V=d9Y(this);HBS(this);this.lh(this.N.dV().getPlayerSize())}; g.h.lh=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.eQ(this.N)||this.T&&g.Wk(this.N)&&!this.N.G("web_hide_next_button")||iBy(this))&&!V&&(this.T||p.width>=400);this.F0(p);this.N.logVisibility(this.element,p)}; g.h.onClick=function(p){this.N.logClick(this.element);var C=!0;this.D?C=g.Jh(p,this.N):p.preventDefault();C&&(this.T&&this.N.getPresentingPlayerType()===5?this.N.publish("ytoprerollinternstitialnext"):this.T?(y$(this.N.e5()),this.N.publish("playlistnextbuttonclicked",this.element),this.N.nextVideo(!0)):this.V?this.N.seekTo(0):(y$(this.N.e5()),this.N.publish("playlistprevbuttonclicked",this.element),this.N.previousVideo(!0)))}; g.h.d_=function(){var p=d9Y(this);p!==this.V&&(this.V=p,HBS(this))}; g.h.CS=function(){this.C&&(this.C(),this.C=null);XLy(this);g.w.prototype.CS.call(this)};g.v(sPH,g.w);g.h=sPH.prototype;g.h.Xq=function(p){this.O9(p.pageX);this.gm(p.pageX+p.deltaX);a$s(this)}; g.h.O9=function(p){this.a$=p-this.vr}; g.h.gm=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=T4H(this,this.V),this.V<=this.T/2&&this.V>=cYs(this)?(this.api.seekTo(p,!1,void 0,void 0,25),g.Sh(this.sY,"transform","translateX("+(this.V-this.T/2)+"px)"),hGS(this,p)):this.V=this.J))}; g.h.jw=function(){this.b_&&(this.b_.KQ=!0);var p=(0,g.Ip)()-this.R$<300;if(Math.abs(this.Z)<5&&!p){this.R$=(0,g.Ip)();p=this.a$+this.Z;var C=this.T/2-p;this.O9(p);this.gm(p+C);a$s(this);this.api.logClick(this.W)}a$s(this)}; g.h.Y3=function(){Q1(this,this.api.getCurrentTime())}; g.h.play=function(p){this.api.seekTo(T4H(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;Q1(this,this.api.getCurrentTime())}; g.h.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ga=this.api.getCurrentTime(),hGS(this,this.Ga),g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Wr=this.U(this.element,"wheel",this.Xq),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.w.prototype.CS.call(this)}; g.v(EOe,g.w);g.v(l$a,g.w);g.v(Mjv,g.w);g.v(ru,g.w);ru.prototype.AQ=function(p){return p==="PLAY_PROGRESS"?this.D:p==="LOAD_PROGRESS"?this.W:p==="LIVE_BUFFER"?this.S:this.C};vOH.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.M$(p,V,V+this.T);this.V=this.position-V;this.C=this.V/this.T};g.v(F8a,g.w);g.v(g.pv,g.va);g.h=g.pv.prototype; g.h.Zo=function(){var p=!1,C=this.api.getVideoData();if(!C)return p;this.api.PV("timedMarkerCueRange");D9S(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 F8a;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;yYj(this,X)}q7V(this,this.D);p=this.D;X=this.iW;H=[];d=null;for(a=0;aE&&(d.end=E);E=a4L(E,E+t);H.push(E);d=E;X[E.id]=p[a].onActiveCommand}}this.api.jd(H);this.eZ=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;JYV(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.Cv(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.Kq(H.label):""});N=X;this.heatMarkersDecorations=N}}C.fG=this.D;g.Tz(this.element,"ytp-timed-markers-enabled",p);return p}; g.h.OR=function(){g.Cv(this);Nb(this);q7V(this,this.D);if(this.C){var p=g.yT(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&&oO9(this,C)}}; g.h.GN$=function(p){this.api.Jk("innertubeCommand",this.iW[p.id])}; g.h.va=function(){Nb(this);var p=this.api.getCurrentTime();(pthis.clipEnd)&&this.U1()}; g.h.Fq=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")&&ho(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")&&ho(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.Bf=function(p,C){this.updateVideoData(C,p==="newdata")}; g.h.Re=function(){this.Bf("newdata",this.api.getVideoData())}; g.h.updateVideoData=function(p,C){C=C===void 0?!1:C;var V=!!p&&p.GN();if(V&&(lx(p)||RGa(this)?this.f9=!1:this.f9=p.allowLiveDvr,g.Tz(this.api.getRootNode(),"ytp-enable-live-buffer",!(p==null||!lx(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.F$={};var c;(c=this.C)==null||c.reset();c$(this);g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-exp",GI(this))}else this.U1();this.X4()}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=ZBL(T);var M;T=C!=null||V!=null&&V.length>0||((M= T.Iy)==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.Bb=((J=c.visibleOnLoad)==null?void 0:J.key)||T.Bb;J=g.F(c.markersMap);for(c=J.next();!c.done;c=J.next())c=c.value,c.key&&c.value&&(this.F$[c.key]=c.value,c.value.onChapterRepeat&&(T.c7=c.value.onChapterRepeat));T.Bb!=null&&oO9(this,T.Bb);T=!0}var S;if(((S=M.Iy)==null?void 0:S.length)>0){S=g.Xx.getState().entities;J=g.F(M.Iy);for(c=J.next();!c.done;c=J.next())if(c= c.value,V=void 0,C=(V=cJ(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.Zo()||T}!T&&(S=ZBL(M))&&(f$1(this,S),M.Ov=this.T,U9y(this));nOX(this,null);p.vl&&this.W.length===0&&(p=p.vl,S=p.key,p.isVisible&&S&&oO9(this,S))}else S7L(this),D9S(this)}Nb(this)}; g.h.YJ=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.s8()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0,g.Tz(this.sO,"ytp-hide-scrubber-button",p))}; g.h.cL=function(p){var C=!!this.Sb!==!!p,V=this.Sb;this.Sb=p;nOX(this,V);(p==null?void 0:p.type)!=="clips"&&p||(p?(this.updateValue("clipstarticon",qBQ()),this.updateValue("clipendicon",qBQ()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",K_H()),this.updateValue("clipendicon",SBH()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),C&&(this.updateVideoData(this.api.getVideoData(), !0),g.Cv(this)),sa(this));Xp(this,this.a$,this.Qn)}; g.h.e3V=function(p,C,V){var N=g.yT(this.element),H=VK(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=e2(this.V,Number(V.getAttribute("data-position")),0)*H+g.yT(this.progressBar).x);this.UY.x=p-N.x;this.UY.y=C-N.y;p=VK(this);V=ih(this,p);C=0;var E;if((E=this.api.getVideoData())==null?0:lx(E))(E=this.api.getProgressState().seekableEnd)&&V>E&&(V=E,p.position=e2(this.V,E)*VK(this).T),C=this.V.C; RGa(this)&&(C=this.V.C);E=X||g.I0(this.f9?V-this.V.T:V-C);C=p.position+this.cR;V-=this.api.X0();var l;if((l=this.C)==null||!l.isEnabled)if(this.api.uf()){if(this.T.length>1){l=dR(this,this.UY.x,!0);if(!this.Sb)for(N=0;N1)for(N=0;N0)for(l=this.UY.x,N=g.F(this.D),H=N.next();!H.done;H=N.next())H=H.value,d=jD(this,H.timeRangeStartMillis/ (this.V.T*1E3),VK(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.eZ?(l=iM9(this.D,V*1E3),l=l!=null?this.D[l].title:""):(l=uW(this.T,V*1E3),l=this.T[l].title):(l=uW(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=uW(this.T,V*1E3);this.sY=eG9(this,V,N)?N:eG9(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.I0(d.decorationTimeMillis/1E3),N=!0)}this.QZ!==N&&(this.QZ=N,this.api.logVisibility(this.K1,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(GI(this)&&(((c=this.C)==null?0:c.isEnabled)||this.Y_>0)){var T;a-=((T=this.C)==null?0:T.isEnabled)?Ea(this):this.Y_}c=void 0;GI(this)&&(c="Puxe para cima para uma busca precisa",this.Sa||(this.Sa= !0,this.api.logVisibility(this.xt,this.Sa)));this.tooltip.zX(C,V,E,!!X,a,l,N,c)}else this.tooltip.zX(C,V,E,!!X,a);g.Ed(this.api.getRootNode(),"ytp-progress-bar-hover");zGv(this)}; g.h.h3n=function(){this.X4();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.xt,this.Sa))}; g.h.GBa=function(p,C){GI(this)&&this.C&&(this.C.Sa?Q1(this.C,this.api.getCurrentTime()):tja(this.C),this.C.show(),g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.C.isEnabled));this.cV&&(this.cV.dispose(),this.cV=null);this.Mn=C;this.XO=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(ih(this,VK(this)),!1,void 0,void 0,7);g.Ed(this.element,"ytp-drag");(this.W1=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.h.H1$=function(){if(GI(this)&&this.C){var p=Ea(this);this.Y_>=p*.5?(this.C.enable(),Q1(this.C,this.api.getCurrentTime()),rY1(this,p)):c$(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")&&ho(this,this.XO,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=ih(this,VK(this));this.api.G("html5_enable_progress_bar_slide_seek_logging")&&ho(this,this.XO,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.K1)}g.tk(this.element,"ytp-drag");this.W1&&!g.r(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.h.PJn=function(p,C){p=VK(this);p=ih(this,p);this.api.seekTo(p,!1,void 0,void 0,7);var V;GI(this)&&((V=this.C)==null?0:V.Sa)&&(Q1(this.C,p),this.C.isEnabled||(this.Y_=g.M$(this.Mn-C-10,0,Ea(this)),rY1(this,this.Y_)))}; g.h.X4=function(){this.tooltip.oL()}; g.h.AN=function(){this.Sb||(this.updateValue("clipstarticon",F_a()),this.updateValue("clipendicon",F_a()),g.Ed(this.element,"ytp-clip-hover"))}; g.h.CB=function(){this.Sb||(this.updateValue("clipstarticon",K_H()),this.updateValue("clipendicon",SBH()),g.tk(this.element,"ytp-clip-hover"))}; g.h.U1=function(){this.clipStart=0;this.clipEnd=Infinity;sa(this);Xp(this,this.a$,this.Qn)}; g.h.u4a=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.dW("DIV");C.tooltip&&N.setAttribute("data-tooltip",C.tooltip);this.vr[V]=C;this.Hc[V]=N;g.sd(N,C.style);Pku(this,V);this.api.K().G("disable_ad_markers_on_content_progress_bar")||this.T[0].V.appendChild(N)}}else QPy(this,C)}; g.h.YVx=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())QPy(this,C.value)}; g.h.mK=function(p){this.C&&(this.C.onExit(p!=null),c$(this))}; g.h.PG=function(p){this.C&&(this.C.play(p!=null),c$(this))}; g.h.m5n=function(){B4a(this,this.api.s8())}; g.h.CS=function(){B4a(this,!1);g.va.prototype.CS.call(this)};g.v(T8,g.w);T8.prototype.isActive=function(){return!!this.N.getOption("remote","casting")}; T8.prototype.Pr=function(){var p=!1;this.N.getOptions().includes("remote")&&(p=this.N.getOption("remote","receivers").length>1);this.F0(p&&this.N.dV().getPlayerSize().width>=400);this.N.logVisibility(this.element,this.n4);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.vl1())}g.Tz(this.element,"ytp-remote-button-active",this.isActive())}}; T8.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.f$())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.hc(C));p.hc(C)}}this.N.logClick(this.element)};g.v(Mb,g.w);Mb.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.F0(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)}; Mb.prototype.V=function(){if(this.xM.n4)this.xM.f4();else{var p=g.ev(this.N.Tk());p&&!p.loaded&&(p.O8("tracklist",{includeAsr:!0}).length||p.load());this.N.logClick(this.element);this.xM.hc(this.element)}}; Mb.prototype.updateBadge=function(){var p=this.N.isHdr(),C=this.N.getPresentingPlayerType(),V=C!==2&&C!==3,N=g.LT(this.N),H=V&&!!g.wb(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.v(Jo,TJ);Jo.prototype.isLoaded=function(){var p=g.Wx(this.N.Tk());return p!==void 0&&p.loaded}; Jo.prototype.Pr=function(){g.Wx(this.N.Tk())!==void 0&&this.N.getPresentingPlayerType()!==3?this.T||(this.xM.iJ(this),this.T=!0):this.T&&(this.xM.i8(this),this.T=!1);Ml(this,this.isLoaded())}; Jo.prototype.onSelect=function(p){this.isLoaded();p?this.N.loadModule("annotations_module"):this.N.unloadModule("annotations_module");this.N.publish("annotationvisibility",p)}; Jo.prototype.CS=function(){this.T&&this.xM.i8(this);TJ.prototype.CS.call(this)};g.v(mR,g.NA);mR.prototype.Pr=function(){var p=this.N.getAvailableAudioTracks();p.length>1?(this.Zr(g.bZ(p,this.T)),this.tracks=g.tB(p,this.T,this),this.countLabel.Jc(p.length?" ("+p.length+")":""),this.publish("size-change"),this.Ag(this.T(this.N.getAudioTrack())),this.enable(!0)):this.enable(!1)}; mR.prototype.qn=function(p){g.NA.prototype.qn.call(this,p);this.N.setAudioTrack(this.tracks[p]);this.xM.M3()}; mR.prototype.T=function(p){return p.toString()};g.v(v$,TJ); v$.prototype.C=function(){var p=this.N.getPresentingPlayerType();if(p!==2&&p!==3&&g.Wk(this.N))this.T||(this.xM.iJ(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.i8(this);this.T=!1;p=g.F(this.V);for(var C=p.next();!C.done;C= p.next())this.rY(C.value)}}; v$.prototype.S=function(p){Ml(this,p!==1)}; v$.prototype.onSelect=function(p){this.N.O1(p?2:1);this.T&&(this.N.logVisibility(this.element,this.T),this.N.logClick(this.element))}; v$.prototype.CS=function(){this.T&&this.xM.i8(this);TJ.prototype.CS.call(this)};g.v(pM9,g.H3);pM9.prototype.onClick=function(p){p.preventDefault();var C,V;(C=g.U5(this.N))==null||(V=C.uF())==null||V.f4();var N,H;(N=g.U5(this.N))==null||(H=N.ex())==null||H.hc(p.target)};g.v(CJQ,g.NA);g.h=CJQ.prototype; g.h.pj=function(){var p=this.N.getPresentingPlayerType();if(p!==2&&p!==3){this.sY=this.N.Ox();p=this.N.getAvailableQualityLevels();if(this.T){this.S={};var C=g.SQ(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.SQ(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.Q2Q(this.N)&&this.N.UC()&&C.unshift("missing-qualities");rey(this.N)&&C.unshift("inline-survey");this.Zr(C);p=this.N.getVideoData().cotn?!0:!1;V=this.b_.xq();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.WY&&g.Tz(p.rV("ytp-panel-footer"),"ytp-panel-hide-footer",V===void 0?!1:V);if(C.length){this.MU();this.enable(!0);return}}this.enable(!1)}; g.h.MU=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.Ag(p),this.Jc(this.M1(p))):this.Ag(this.a$))}else p=this.N.getPreferredQuality(),this.options[p]&&(this.D=this.N.getPlaybackQuality(),this.Ag(p),p==="auto"&&this.Jc(this.M1(p)))}; g.h.qn=function(p){if(p!=="missing-qualities"){g.NA.prototype.qn.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.g28))==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.g28))==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.pj()}}; 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.NA.prototype.open.call(this);this.N.logClick(this.element)}; g.h.Y2=function(p,C,V){var N=this;if(p==="missing-qualities")return new g.H3({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.M1(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.NA.prototype.Y2.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={X9:void 0},X=V.next())H.X9=X.value,X=new g.w({L:"span",B:"ytp-menuitem-inline-survey-response",j:[H.X9?yms():uW1()],X:{tabindex:"0",role:"button"}}),X.listen("click",function(d){return function(){var a=N.N.app.X$();a&&(a.k_("iqsr",{tu:d.X9}),a.getVideoData().Je=!0);N.xM.f4();N.pj()}}(H)),p.push(X); return new g.H3({L:"div",B:"ytp-menuitem",X:{"aria-disabled":"true"},j:[{L:"div",i_:["ytp-menuitem-label"],j:p}]},C)}; g.h.M1=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?[N5u(this,p,C,!1)]:[V$L(this,p)];var N=this.N.getPreferredQuality();C||N!=="auto"||p!=="auto"||(V.push(" "),this.T?V.push(N5u(this,this.a$,C,!0,["ytp-menu-label-secondary"])):this.W?V.push(N5u(this,this.D,C,!0,["ytp-menu-label-secondary"])):V.push(V$L(this,this.D,["ytp-menu-label-secondary"])));return{L:"div",j:V}};g.v(Fp,g.w);Fp.prototype.init=function(){this.updateValue("minvalue",this.V);this.updateValue("maxvalue",this.W);this.updateValue("stepvalue",this.D);this.updateValue("slidervalue",this.C);H9u(this,this.C)}; Fp.prototype.J=function(){XMQ(this,Number(this.T.value));this.T.focus()};g.v(SD,Fp);SD.prototype.J=function(){Fp.prototype.J.call(this);this.S&&d2e(this)}; SD.prototype.sY=function(){this.Z()}; SD.prototype.b_=function(){this.N.setPlaybackRate(this.C,!0)}; SD.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}XMQ(this,Math.min(this.W,Math.max(Number((this.C+C).toFixed(2)),this.V)));this.Z();d2e(this);p.preventDefault()}};g.v(Kv,g.w);g.h=Kv.prototype;g.h.init=function(){this.WA(this.T);this.updateValue("minvalue",this.C);this.updateValue("maxvalue",this.V)}; g.h.Z7=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.WA(this.T+C);p.preventDefault()}}; g.h.qp=function(p){var C=this.T;C+=(p.deltaX||-p.deltaY)<0?-this.Z:this.Z;this.WA(C);p.preventDefault()}; g.h.Mp=function(p){p=(p-g.yT(this.S).x)/this.a$*this.range+this.C;this.WA(p)}; g.h.WA=function(p,C){C=C===void 0?"":C;p=g.M$(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.v(Di,Kv);Di.prototype.sY=function(){this.N.setPlaybackRate(this.T,!0)}; Di.prototype.WA=function(p){Kv.prototype.WA.call(this,p,hdj(this,p).toString());this.W&&(i99(this),this.Vn())}; Di.prototype.updateValues=function(){var p=this.N.getPlaybackRate();hdj(this,this.T)!==p&&(this.WA(p),i99(this))};g.v(snu,g.va);snu.prototype.focus=function(){this.T.focus()};g.v(aIv,L$);g.v(EnH,g.NA);g.h=EnH.prototype;g.h.M1=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);T5L(this)}; g.h.Zr=function(p){g.NA.prototype.Zr.call(this,p);this.D&&this.D.T.focus()}; g.h.mB=function(p){g.NA.prototype.mB.call(this,p);p?(this.a$=this.U(this.N,"onPlaybackRateChange",this.onPlaybackRateChange),T5L(this),t$V(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)||cs1(this,C);t$V(this,p)}; g.h.Y2=function(p,C,V){return p===this.T&&M$v(this.N)?g.NA.prototype.Y2.call(this,p,C,V,{L:"div",B:"ytp-speed-slider-menu-footer",j:[this.D]}):g.NA.prototype.Y2.call(this,p,C,V)}; g.h.qn=function(p){g.NA.prototype.qn.call(this,p);p===this.T?this.N.setPlaybackRate(this.S,!0):this.N.setPlaybackRate(Number(p),!0);M$v(this.N)&&p===this.T||this.xM.M3()}; g.h.YK=function(p){var C=p===this.T;this.W=!1;C&&uh(this.N)&&!M$v(this.N)?(p=new aIv(this.N),g.rL(this.xM,p)):g.NA.prototype.YK.call(this,p)};g.v(m2s,g.NA);g.h=m2s.prototype;g.h.Ag=function(p){g.NA.prototype.Ag.call(this,p)}; g.h.Z6=function(p){return p.option.toString()}; g.h.getOption=function(p){return this.settings[p]}; g.h.M1=function(p){return this.getOption(p).text||""}; g.h.qn=function(p){g.NA.prototype.qn.call(this,p);this.publish("settingChange",this.setting,this.settings[p].option)};g.v(Zi,g.gL);Zi.prototype.b0=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.IA[N]){var H=p[N].toString();N=!!p[N+"Override"];V.options[H]&&(V.Ag(H),V.S.element.setAttribute("aria-checked",String(!N)),V.T.element.setAttribute("aria-checked",String(N)))}}}; Zi.prototype.PB=function(p,C){this.publish("settingChange",p,C)};g.v(Ua,g.NA);Ua.prototype.T=function(p){return p.languageCode}; Ua.prototype.M1=function(p){return this.languages[p].languageName||""}; Ua.prototype.qn=function(p){this.publish("select",p);this.N.logClick(this.element);g.BO(this.xM)};g.v(Sbj,g.NA);g.h=Sbj.prototype;g.h.Pv=function(p){return g.oa(p)?"__off__":p.displayName}; g.h.M1=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.qn=function(p){if(p==="__translate__")this.T.open();else if(p==="__contribute__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();var C=g.bt(this.N.K(),this.N.getVideoData());g.MQ(C)}else if(p==="__correction__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();var V=KTs(this);fv(this,V);g.NA.prototype.qn.call(this,this.Pv(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.M3();this.S&&this.N.logClick(this.S)}else{if(p==="__correction__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();C=KTs(this);fv(this,C);g.NA.prototype.qn.call(this,this.Pv(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), fv(this,p==="__off__"?{}:this.tracks[p]),g.NA.prototype.qn.call(this,p);this.xM.M3()}}; g.h.Pr=function(){var p=this.N.getOptions();p=p&&p.indexOf("captions")!==-1;var C=this.N.getVideoData(),V=C&&C.Pb,N,H=!((N=this.N.getVideoData())==null||!g.a$(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.Pv,this);H=g.bZ(N,this.Pv);var E,l;KTs(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.oa(d)){if((X=d.translationLanguage)&&X.languageName){var t=X.languageName;X=a.findIndex(function(c){return c.languageName===t}); H0Q(a,X)}vnX(this.T,a);H.push("__translate__")}X=this.Pv(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.Zr(H);this.Ag(X);d&&d.translationLanguage?this.T.Ag(this.T.T(d.translationLanguage)):Hvj(this.T);p&&this.W.b0(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.yu=function(p){var C=this.N.getOption("captions","track");C=g.Y5(C);C.translationLanguage=this.T.languages[p];fv(this,C)}; g.h.PB=function(p,C){if(p==="reset")this.N.resetSubtitlesUserSettings();else{var V={};V[p]=C;this.N.updateSubtitlesUserSettings(V)}FTY(this,!0);this.D.start();this.W.b0(this.N.getSubtitlesUserSettings())}; g.h.s6_=function(p){p||g.d0(this.D)}; g.h.CS=function(){g.d0(this.D);g.NA.prototype.CS.call(this)}; g.h.open=function(){g.NA.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.v(D2v,g.QX);g.h=D2v.prototype; g.h.initialize=function(){if(!this.isInitialized){var p=this.N.K();this.isInitialized=!0;try{this.tJ=new CJQ(this.N,this)}catch(V){g.eG(Error("QualityMenuItem creation failed"))}g.R(this,this.tJ);var C=new Sbj(this.N,this);g.R(this,C);p.V||(C=new Jo(this.N,this),g.R(this,C));p.enableSpeedOptions&&(C=new EnH(this.N,this),g.R(this,C));(g.KI(p)||p.Y)&&(p.C||p.Y_)&&(C=new pM9(this.N,this),g.R(this,C));p.sO&&!p.G("web_player_move_autonav_toggle")&&(p=new v$(this.N,this),g.R(this,p));p=new mR(this.N,this); g.R(this,p);this.N.publish("settingsMenuInitialized");G_1(this.settingsButton,this.Zd.wj())}}; g.h.iJ=function(p){this.initialize();this.Zd.iJ(p);G_1(this.settingsButton,this.Zd.wj())}; g.h.i8=function(p){this.n4&&this.Zd.wj()<=1&&this.hide();this.Zd.i8(p);G_1(this.settingsButton,this.Zd.wj())}; g.h.hc=function(p){this.initialize();this.Zd.wj()>0&&g.QX.prototype.hc.call(this,p)}; g.h.f4=function(){this.xs?this.xs=!1:g.QX.prototype.f4.call(this)}; g.h.show=function(){g.QX.prototype.show.call(this);g.Ed(this.N.getRootNode(),"ytp-settings-shown")}; g.h.hide=function(){g.QX.prototype.hide.call(this);g.tk(this.N.getRootNode(),"ytp-settings-shown")}; g.h.oI=function(p){this.N.logVisibility(this.element,p);this.N.publish("settingsMenuVisibilityChanged",p)};g.v(Z9y,g.w);g.h=Z9y.prototype;g.h.onClick=function(){if(U2s(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.ebV=function(p){var C,V;(C=g.U5(this.N))==null||(V=C.uF())==null||V.hc(p)}; g.h.isEnabled=function(){return!!this.N.getOption("captions","track").displayName}; g.h.Pr=function(){var p=U2s(this),C=300;this.N.K().J&&(C=480);if(this.N.K().Y){this.updateValue("title",g.xj(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.xj(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.JU();V=V&&this.N.dV().getPlayerSize().width>=C;this.F0(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.w.prototype.RH.call(this,p);this.N.K().G("embeds_use_parent_visibility_in_ve_logging")&&this.N.logVisibility(this.element,this.n4&&p)};g.v(g.Oa,g.w);g.h=g.Oa.prototype; g.h.va=function(){var p=this.api.dV().getPlayerSize().width,C=this.J;this.api.K().J&&(C=400);C=p>=C&&(!yK(this)||!g.r(this.api.getPlayerStateObject(),64));this.F0(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);qb(this)&&(V-=this.Sb.startTimeMs/1E3);V=g.I0(V);this.V!==V&&(this.updateValue("currenttime",V),this.V=V);C=qb(this)?g.I0((this.Sb.endTimeMs- this.Sb.startTimeMs)/1E3):g.I0(this.api.getDuration(C,!1));this.S!==C&&(this.updateValue("duration",C),this.S=C)}fIY(this,p.isAtLiveHead);O9L(this,this.api.getLoopRange())}; g.h.onLoopRangeChange=function(p){var C=this.Sb!==p;this.Sb=p;C&&(this.va(),ys9(this))}; g.h.tdn=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.va();ys9(this)}; g.h.updateVideoData=function(p){this.xx=p.isLivePlayback&&!p.Mo;this.C=lx(p);this.isPremiere=p.isPremiere;g.Tz(this.element,"ytp-live",yK(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.w.prototype.CS.call(this)};g.v(IIV,g.w);g.h=IIV.prototype;g.h.Jo=function(){var p=this.api.Rd();this.V!==p&&(this.V=p,qbu(this,this.api.getVolume(),this.api.isMuted()))}; g.h.yb=function(p){this.F0(p.width>=350)}; g.h.aZ=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.M$(V,0,100),V===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(V)),p.preventDefault())}}; g.h.TO=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.M$(C/10,-10,10));p.preventDefault()}; g.h.ut_=function(){Iv(this,this.T,!0,this.C,this.api.NO());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()}; g.h.kI=function(p){var C=this.V?78:52,V=this.V?18:12;p-=g.yT(this.J).x;this.api.setVolume(g.M$((p-V/2)/(C-V),0,1)*100)}; g.h.Etn=function(){Iv(this,this.T,!1,this.C,this.api.NO());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Z))}; g.h.onVolumeChange=function(p){qbu(this,p.volume,p.muted)}; g.h.Ru=function(){Iv(this,this.T,this.isDragging,this.C,this.api.NO())}; g.h.CS=function(){g.w.prototype.CS.call(this);g.tk(this.D,"ytp-volume-slider-active")};g.v(bh,g.w); bh.prototype.onVideoDataChange=function(){var p=this.api.K();this.OR();this.visible=!!this.api.getVideoData().videoId&&!g.t_(this.api.getVideoData(1));this.F0(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.ck(p)?"Assistir no YouTube Music":C==="youtube.com"?"Assistir no YouTube":g.FY("Assista em $WEBSITE",{WEBSITE:C}));this.updateValue("title",V)}; bh.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.b$(p),!1,!0,!0);if(g.KI(C)){var N={};g.KI(C)&&g.SQ(this.api,"addEmbedsConversionTrackingParams",[N]);V=g.BX(V,N)}g.mv(V,this.api,p);this.api.G("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; bh.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.ck(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.ck(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)}; bh.prototype.RH=function(p){g.w.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)};g.v(Asa,g.YZ);g.h=Asa.prototype;g.h.eq=function(){if(this.N.G("web_player_max_seekable_on_ended")||!g.r(this.N.getPlayerStateObject(),2))this.progressBar.va(),this.Sa.va()}; g.h.HC=function(){this.WH();this.DZ.C?this.eq():this.progressBar.X4()}; g.h.b4=function(){this.eq();this.J.start()}; g.h.WH=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.DZ.C||(p=C=!1);C?this.b_||(this.b_=this.U(this.N,"progresssync",this.eq)):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.Rd(),C=this.N.dV().getPlayerSize(),V=kLu(this),N=Math.max(C.width-V*2,100);if(this.F$!==C.width||this.Mo!==p){this.F$=C.width;this.Mo=p;var H=x2S(this);this.V.element.style.width=H+"px";this.V.element.style.left=V+"px";g.W81(this.progressBar,V,H,p);this.N.aI().TZ=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-YbH(this))*.82));V.maxWidth=N;V.maxHeight=p;V.Qa();this.WH();this.N.K().G("html5_player_dynamic_bottom_gradient")&&wDs(this.Qn, C.height)}; g.h.onVideoDataChange=function(){var p=this.N.getVideoData();this.R$.style.background=p.g6?p.ly:"";this.a$&&rJV(this.a$,p.showSeekingControls);this.Z&&rJV(this.Z,p.showSeekingControls)}; g.h.AQ=function(){return this.V.element};g.v(zda,$m);g.h=zda.prototype;g.h.Qw=function(p){p.target!==this.dismissButton.element&&(this.onClickCommand&&this.N.Jk("innertubeCommand",this.onClickCommand),this.SY())}; g.h.SY=function(){this.enabled=!1;this.Z.hide()}; g.h.onVideoDataChange=function(p,C){p==="dataloaded"&&RdV(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,vT5))==null?void 0:X.suggestedActions)for(V=g.F(C),N=V.next();!N.done;N=V.next())(N=g.n(N.value,FqE))&&g.n(N.trigger,mL2)&&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,mL2))X=(X=N.title)?g.Kq(X):"View Chapters", C=H.timeRangeStartMillis,H=H.timeRangeEndMillis,C!=null&&H!=null&&N.tapCommand&&(V.push(new g.iG(C,H,{priority:9,namespace:"suggested_action_button_visible",id:X})),this.suggestedActions[X]=N.tapCommand);this.N.jd(V)}}; g.h.N2=function(){return this.enabled}; g.h.oI=function(){this.enabled?this.Ga.start():PO(this);this.Jd()}; g.h.CS=function(){RdV(this);$m.prototype.CS.call(this)};var D$={},Ao=(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.v(ov,g.w);ov.prototype.onClick=function(p){this.api.logClick(this.element);var C=this.api.K(),V=this.api.getVideoUrl(!g.b$(p),!1,!0);g.KI(C)&&(C={},g.SQ(this.api,"addEmbedsConversionTrackingParams",[C]),V=g.BX(V,C));g.mv(V,this.api,p)}; ov.prototype.Pr=function(){var p=this.api.getVideoData(),C=this.api.K();this.updateValue("title",p.title);var V={L:"a",B:Ao.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},Ak:"{{channelName}}"};this.api.K().V&&(V={L:"span",B:Ao.CHANNEL_NAME,Ak:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",V);nnj(this);this.api.getPresentingPlayerType()===2&&(V=this.api.getVideoData(),V.videoId&&V.isListed&&V.author&&V.bx&&V.profilePicture?(this.updateValue("channelLink", V.bx),this.updateValue("channelName",V.author),this.updateValue("channelTitleFocusable","0")):nnj(this));V=C.externalFullscreen||!this.api.isFullscreen()&&C.oz;g.Tz(this.link,Ao.FULLERSCREEN_LINK,V);C.b_||!p.videoId||V||g.t_(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.v(g.ka,g.w);g.h=g.ka.prototype;g.h.setEnabled=function(p){if(this.type!=null)if(p)switch(this.type){case 3:case 2:PJX(this);this.D.show();break;default:this.D.show()}else this.D.hide();this.J=p}; g.h.zX=function(p,C,V,N,H,X,d,a){if(!this.Sa||this.env.J){this.type===3&&this.X4();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.uf())&&this.C.subscribe("l",this.ED,this));if(a){var E=g.b4(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=lFL(this.C,V,C));$2Q(this,V);if(d)switch(C=g.b4(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"}wMy(this, !!N,p,H)}}; g.h.oL=function(){this.type===1&&this.X4()}; g.h.Ch=function(p,C){if(this.type)if(this.type===3)this.X4();else return;edy(this,p,3,C)}; g.h.JU=function(){this.T&&!this.Z&&this.T.hasAttribute("title")&&(this.V=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.J&&PJX(this))}; g.h.ED=function(p,C){p<=this.S&&this.S<=C&&(p=this.S,this.S=NaN,$2Q(this,p))}; g.h.Wx$=function(){aFV(this.C,this.S,243*this.scale)}; g.h.X4=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);LTV(this);break;case 3:LTV(this);break;case 1:this.C&&(this.C.unsubscribe("l",this.ED,this),this.C=null),this.api.removeEventListener("videoready",this.b_),this.sY.stop()}this.type=null;this.J&&this.D.hide()}; g.h.k5=function(){if(this.T)for(var p=0;p=0;C--)if(this.Vt[C]===p){this.Vt.splice(C,1);break}rM(this.DZ,64,this.Vt.length>0)}; g.h.Gy=function(){this.api.yV()&&this.api.Rc();return!!this.dg||GLY(this)||g.du.prototype.Gy.call(this)}; g.h.vx=CY(3);g.h.NG=CY(7);g.h.Lw=CY(10); g.h.cK=function(){var p=!this.Gy(),C=p&&this.api.yV()&&!g.r(this.api.getPlayerStateObject(),2)&&!g.t_(this.api.getVideoData())&&!this.api.K().V&&!this.api.isEmbedsShortsMode(),V=this.UK&&g.eQ(this.api)&&g.r(this.api.getPlayerStateObject(),128);p||V?(this.eR.show(),this.HZ.show()):(this.eR.hide(),this.HZ.hide(),this.api.k5(this.nx.element));C?this.TW.hc():this.TW.f4();this.PR&&on1(this.PR,this.Vh||!p);this.api.G("web_player_hide_overflow_button_if_empty_menu")&&p99(this);g.du.prototype.cK.call(this)}; g.h.qA=function(p,C,V,N,H){p.style.left="";p.style.top="";p.style.bottom="";var X=g.b4(p),d=N||this.PR&&g.lK(this.PR.AQ(),C),a=N=null;V!=null&&d||(N=g.b4(C),a=g.qK(C,this.api.getRootNode()),V==null&&(V=a.x+N.width/2));V-=X.width/2;d?(C=this.PR,N=kLu(C),a=x2S(C),d=this.api.dV().getPlayerSize().height,V=g.M$(V,N,N+a-X.width),X=d-YbH(C)-X.height):g.lK(this.nx.element,C)?(C=this.api.dV().getPlayerSize().width,V=g.M$(V,12,C-X.width-12),X=this.Rd()?this.D5:this.Ye,this.api.K().playerStyle==="gvn"&&(X+= 20),this.UK&&(X-=this.Rd()?26:18)):(C=this.api.dV().getPlayerSize(),V=g.M$(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.HC=function(p){p&&(this.api.k5(this.nx.element),this.PR&&this.api.k5(this.PR.AQ()));this.R3&&(g.Tz(this.contextMenu.element,"ytp-autohide",p),g.Tz(this.contextMenu.element,"ytp-autohide-active",!0));g.du.prototype.HC.call(this,p)}; g.h.xD=function(){g.du.prototype.xD.call(this);this.R3&&(g.Tz(this.contextMenu.element,"ytp-autohide-active",!1),this.R3&&(this.contextMenu.hide(),this.ZP&&this.ZP.hide()))}; g.h.v_=function(p,C){var V=this.api.dV().getPlayerSize();V=new g.mG(0,0,V.width,V.height);if(p||this.DZ.C&&!this.Gy()){if(this.api.K().c_||C)p=this.Rd()?this.D5:this.Ye,V.top+=p,V.height-=p;this.PR&&(V.height-=YbH(this.PR))}return V}; g.h.Jo=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.Wo.element,C),C.parentElement.insertBefore(this.fJ.element,C.nextSibling))):g.nm(Error("Player not in DOM.")):(C.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.Wo.detach(),this.fJ.detach());this.OR();this.Mr()}; g.h.Rd=function(){var p=this.api.K();return this.api.isFullscreen()&&!p.J||!1}; g.h.showControls=function(p){this.Fh=!p;this.cK()}; g.h.OR=function(){var p=this.Rd();this.tooltip.scale=p?1.5:1;this.contextMenu&&g.Tz(this.contextMenu.element,"ytp-big-mode",p);this.cK();this.api.G("web_player_hide_overflow_button_if_empty_menu")||p99(this);this.Mr();var C=this.api.isEmbedsShortsMode();C&&p?(p=(this.api.dV().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Sh(this.nx.element,"padding-left",p+"px"),g.Sh(this.nx.element,"padding-right",p+"px")):C&&(g.Sh(this.nx.element,"padding-left",""),g.Sh(this.nx.element,"padding-right", ""));g.du.prototype.OR.call(this)}; g.h.Zy=function(){if(GLY(this)&&!g.eQ(this.api))return!1;var p=this.api.getVideoData();return!g.KI(this.api.K())||this.api.getPresentingPlayerType()===2||!this.Ix||((p=this.Ix||p.Ix)?(p=p.embedPreview)?(p=p.thumbnailPreviewRenderer,p=p.videoDetails&&g.n(p.videoDetails,X1s)||null):p=null:p=null,p&&p.collapsedRenderer&&p.expandedRenderer)?g.du.prototype.Zy.call(this):!1}; g.h.Mr=function(){g.du.prototype.Mr.call(this);this.api.logVisibility(this.title.element,!!this.Dm);this.wB&&this.wB.RH(!!this.Dm);this.channelAvatar.RH(!!this.Dm);this.overflowButton&&this.overflowButton.RH(this.Qf()&&!!this.Dm);this.shareButton&&this.shareButton.RH(!this.Qf()&&!!this.Dm);this.Ex&&this.Ex.RH(!this.Qf()&&!!this.Dm);this.searchButton&&this.searchButton.RH(!this.Qf()&&!!this.Dm);this.copyLinkButton&&this.copyLinkButton.RH(!this.Qf()&&!!this.Dm);if(!this.Dm){this.api.k5(this.nx.element); for(var p=0;p5&&C.k_("glrs",{cmt:V});C.seekTo(0,{seekSource:58});C.k_("glrre",{cmt:V})}}; Rv.prototype.CS=function(){this.T=null;g.z.prototype.CS.call(this)};g.v(g.nv,dl);g.h=g.nv.prototype;g.h.isView=function(){return!0}; g.h.Fi=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.DE(new ON("dai.transitionfailure",Object.assign(C,{cpn:N,transitionTimeMs:this.Q1,msg:p})));this.T.Gq(V)}this.dn.reject(p);this.dispose()}}; g.h.Ql=function(){return this.status.status>=4&&this.status.status<6}; g.h.CS=function(){lwv(this);this.T.unsubscribe("newelementrequired",this.mE,this);if(this.V){var p=this.V.C;this.V.T.dY.unsubscribe("updateend",this.vW,this);p.dY.unsubscribe("updateend",this.vW,this)}g.z.prototype.CS.call(this)}; g.h.kp=function(p){g.Kt(p,128)&&this.dI("player-error-event")};g.v(MNs,g.z);g.h=MNs.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&&this.C.Gq(!1);wR(this,p)}; g.h.q3=function(){return!this.T}; g.h.rA=function(p){return this.T===p}; g.h.Ql=function(){var p;return((p=this.V)==null?void 0:p.Ql())||!1}; g.h.CS=function(){wR(this);g.z.prototype.CS.call(this)};g.v(F7s,g.ca);g.h=F7s.prototype;g.h.getVisibilityState=function(p,C,V,N,H,X,d,a){return p?4:SpL()?3:C?2:V?1:N?5:H?7:X?8:d?9:a?10:0}; g.h.BI=function(p){this.fullscreen!==p&&(this.fullscreen=p,this.oI())}; g.h.setMinimized=function(p){this.C!==p&&(this.C=p,this.oI())}; g.h.setInline=function(p){this.inline!==p&&(this.inline=p,this.oI())}; g.h.zQ=function(p){this.pictureInPicture!==p&&(this.pictureInPicture=p,this.oI())}; g.h.setSqueezeback=function(p){this.V!==p&&(this.V=p,this.oI())}; g.h.Wx=function(p){this.S!==p&&(this.S=p,this.oI())}; g.h.AU=function(){return this.T}; g.h.AF=function(){return this.fullscreen!==0}; g.h.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.h.VT=function(){return this.fullscreen}; g.h.isMinimized=function(){return this.C}; g.h.isInline=function(){return this.inline}; g.h.isBackground=function(){return SpL()}; g.h.Fg=function(){return this.pictureInPicture}; g.h.dZ=function(){return!1}; g.h.ZC=function(){return this.V}; g.h.WB=function(){return this.S}; g.h.oI=function(){this.publish("visibilitychange");var p=this.getVisibilityState(this.AU(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Fg(),this.dZ(),this.ZC(),this.WB());p!==this.Y&&this.publish("visibilitystatechange");this.Y=p}; g.h.CS=function(){u0Y(this.W);g.ca.prototype.CS.call(this)};g.v(SPX,g.z);g.h=SPX.prototype;g.h.kV=function(p){this.B$=p;this.S=p.vR}; g.h.Nt=function(){return this.mf}; g.h.Gf=function(p){this.mf=p;this.V=p.vR}; g.h.V$=function(){return this.S}; g.h.X$=function(){return this.V}; g.h.CS=function(){g.s1(g.yW(this.T));g.z.prototype.CS.call(this)};g.v(Lv,g.z);g.h=Lv.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.u0=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.z.prototype.CS.call(this)}; g.v(Iw9,g.z);g.h=Iw9.prototype;g.h.r6=function(){return this.Dh}; g.h.u0=function(){return this.V}; g.h.getType=function(){return this.type}; g.h.getVideoData=function(){return this.videoData}; g.h.xV=function(p){MI(p);this.videoData=p}; g.h.CS=function(){bCs(this);g.z.prototype.CS.call(this)};g.v(g.rR,g.z);g.h=g.rR.prototype;g.h.C3=function(p,C,V){return new g.iG(p,C,{id:V,namespace:"serverstitchedcuerange",priority:9})}; g.h.onCueRangeEnter=function(p){this.Ga.push(p);var C=p.getId();this.playback.k_("sdai",{oncueEnter:1,cpn:C,start:p.start,end:p.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.DQ()||0).toFixed(3)});var V=C==="";this.Qn.add(p.C);var N=this.V.get(C);if(V){var H;if(this.playback.getVideoData().VL()&&((H=this.T)==null?0:H.l4)&&this.J){this.CM=0;this.T=void 0;this.F$&&(this.events.rY(this.F$),this.F$=null);this.J="";this.R$=!0;return}}else if(this.playback.k_("sdai",{enterAdCueRange:1}), this.playback.getVideoData().VL()&&(N==null?0:N.cE))return;if(this.R$&&!this.T)this.R$=!1,!V&&N&&(V=this.playback.getCurrentTime(),C7(this,{zN:p,isAd:!0,Ia:!0,W6:V,adCpn:C},{isAd:!1,Ia:!1,W6:V}),this.vc=N.cpn,n8H(this,N),p=p7(this,"midab",N),this.playback.k_("sdai",p),this.CM=1),this.sY=!1;else if(this.T){if(this.T.Ia)this.playback.k_("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.T.adCpn,transitionTime:this.T.W6,cpn:C,currentTime:this.playback.getCurrentTime()}),N=this.playback.getCurrentTime(), p={zN:p,isAd:!V,Ia:!0,W6:N,adCpn:C},C={zN:this.T.zN,isAd:this.T.isAd,Ia:!1,W6:N,adCpn:this.T.adCpn},this.T.zN&&this.Qn.delete(this.T.zN.C),C7(this,p,C);else{if(this.T.zN===p){this.playback.k_("sdai",{same_cue_range_pair_enter:1,acpn:this.T.adCpn,transitionTime:this.T.W6,cpn:C,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:p.start,cueRangeEndTime:p.end});this.T=void 0;return}if(this.T.adCpn===C){C&&this.playback.k_("sdai",{dchtsc:C});this.T=void 0;return}p={zN:p,isAd:!V,Ia:!0,W6:this.playback.getCurrentTime(), adCpn:C};C7(this,p,this.T)}this.T=void 0;this.sY=!1}else this.T={zN:p,isAd:!V,Ia:!0,W6:this.playback.getCurrentTime(),adCpn:C}}; g.h.onCueRangeExit=function(p){var C=p.getId();this.playback.k_("sdai",{oncueExit:1,cpn:C,start:p.start,end:p.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.DQ()||0).toFixed(3)});var V=C==="",N=this.V.get(C);if(this.playback.getVideoData().VL()&&!V&&N){if(N.cE)return;N.cE=!0;this.Y.clear();if(this.yn.G("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.U2()){var H=N.Dh;this.playback.Dq(H/1E3,(H+N.durationMs)/1E3)}else this.playback.k_("lifa",{remove:0})}if(this.Qn.has(p.C))if(this.Qn.delete(p.C), this.Ga=this.Ga.filter(function(X){return X!==p}),this.R$&&(this.sY=this.R$=!1,this.playback.k_("sdai",{cref:1})),this.T){if(this.T.Ia){if(this.T.zN===p){this.playback.k_("sdai",{same_cue_range_pair_exit:1, acpn:this.T.adCpn,transitionTime:this.T.W6,cpn:C,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:p.start,cueRangeEndTime:p.end});this.T=void 0;return}if(this.T.adCpn===C){C&&this.playback.k_("sdai",{dchtsc:C});this.T=void 0;return}C={zN:p,isAd:!V,Ia:!1,W6:this.playback.getCurrentTime(),adCpn:C};C7(this,this.T,C)}else this.playback.k_("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.T.adCpn,transitionTime:this.T.W6,upcomingCpn:C,contentCpn:this.playback.getVideoData().clientPlaybackNonce, currentTime:this.playback.getCurrentTime()});this.T=void 0;this.sY=!1}else this.T={zN:p,isAd:!V,Ia:!1,W6:this.playback.getCurrentTime(),adCpn:C};else this.playback.k_("sdai",{ignore_single_exit:1})}; g.h.Ho=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,Dh:0,playerType:1,qZ:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.h.zS=function(){if(this.Ei)return!1;var p=void 0;this.vc&&(p=this.V.get(this.vc));return this.playback.getVideoData().VL()?!!p&&!p.cE:!!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.playback.getVideoData().VL()&&p<=this.l_/1E3)this.playback.pauseVideo(),this.l_=0,this.sY=!0,this.playback.gI(),this.playback.seekTo(p),this.playback.playVideo();else if(this.sY=!0,V)o89(this,p,C);else{V=(V=this.api.Nt())?V.vR:null;var H=V===this.Mo?this.bx:null;jM(this,!1);this.Q$=p;this.YM=C;N!=null&&this.Hc.start(N);V&&(this.bx=H||V.getPlayerState(),V.E7(),this.Mo=V)}}; g.h.CS=function(){jM(this,!1);L7Q(this);g8a(this);g.z.prototype.CS.call(this)}; g.h.eJ=function(p){this.uJ=p;this.playback.k_("sdai",{swebm:p})}; g.h.vB=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.mw(V);this.Y_&&this.playback.k_("sdai",{hdlredir:1,itag:C,seg:p,hostport:FP(V)});N.locations.set(H,V)}}}; g.h.CG=function(p,C,V,N,H,X){var d=N===3;H=QUv(this,p,C,N,V,X);if(!H)return HN(this,C,d),H=g.W7a(this,C)?"undec":"ncp",this.playback.k_("sdai",{gvprp:H,mt:p,seg:C,tt:N,itag:V,ce:X}),null;d||this.Y.set(C,H);p=H.cI;var a;N=((a=NS(this,C-1,N))==null?void 0:a.Ib)||"";N===""&&this.playback.k_("sdai",{eds:1});a=BpY(this,H.ssdaiAdsConfig);V=this.playback.getVideoData();var E;X=((E=V.C)==null?void 0:E.containerType)||0;E=V.TT[X];C=H.H8&&C>=H.H8?H.H8:void 0;return{Um:{Gu:p?jzv(this,p):[],Xe:a,Ib:N,oJ:C,IS:ic(E.split(";")[0]), rL:E.split(";")[1]||""}}}; g.h.fP=function(p){a:{if(!this.Ei){var C=riV(this,p);if(!(this.playback.getVideoData().VL()&&(C==null?0:C.cE)))break a}C=void 0}var V=C;if(!V)return this.playback.k_("sdai",{gvprp:"ncp",mt:p}),null;C=V.cI;var N=BpY(this,V.ssdaiAdsConfig);p=V.H8&&V.wX&&p>=V.wX?V.H8:void 0;V=this.playback.getVideoData();var H,X=((H=V.C)==null?void 0:H.containerType)||0;H=V.TT[X];return{Gu:C?jzv(this,C):[],Xe:N,oJ:p,IS:ic(H.split(";")[0]),rL:H.split(";")[1]||""}}; g.h.sW=function(p,C,V,N,H,X){var d=Number(V.split(";")[0]);H=N===3;p=QUv(this,p,C,N,V,X);this.Y_&&this.playback.k_("sdai",{gdu:1,seg:C,itag:d,pb:""+!!p});if(!p)return HN(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.playback.k_("sdai",{gdu:"noadpfmts",seg:C,itag:d}),HN(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.playback.k_("sdai",{gdu:"nofmt",seg:C,vid:l,itag:d,fullitag:V,itags:p.join(",")});HN(this,C,H);return null}p.locations.set(d,new g.mw(a.url,!0))}a=p.locations.get(d);if(!a)return this.playback.k_("sdai",{gdu:"nourl",seg:C,itag:d}),HN(this,C,H),null;a=new E9(a);this.uJ&&(a.get("dvc")?this.playback.k_("sdai",{dvc:a.get("dvc")||""}):a.set("dvc","webm"));var c;(E=(c=NS(this,C-1,N))== null?void 0:c.Ib)&&a.set("daistate",E);p.H8&&C>=p.H8&&a.set("skipsq",""+p.H8);(E=this.playback.getVideoData().clientPlaybackNonce)&&a.set("cpn",E);c=[];p.cI&&(c=jzv(this,p.cI),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.cI){var M;this.playback.k_("sdai",{acpns_aids_nm:1,ids:NQQ(this,p.cI).join("_"),acpns:c.join("_"),aids:(M=H)==null?void 0:M.replace(/,/g,"_"),cpn:E,trackType:N})}else this.playback.k_("sdai", {acpns_aids_nm:"noAdBreakId",cpn:E});N=a.i9();(N==null?void 0:N.length)>2048&&this.playback.k_("sdai",{urltoolong:1,sq:C,itag:d,len:N.length});this.Y_&&(N&&(T=p.cpn,t=p.cI,XKH(this,T,t),t&&!this.XO.has(t)&&(T=VxV(this,T,t),M=H81(this,t),this.playback.k_("sdai",{iofa:T}),this.playback.k_("sdai",{noawnzd:M-T}),this.playback.k_("sdai",{acpns:c.join("."),aids:(l=H)==null?void 0:l.replace(/,/g,".")}),this.XO.add(t))),this.playback.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.df=function(p,C,V){var N=Vw(this,p,V);return(N=N?(N.Dh+N.durationMs)/1E3:0)&&C>N?(this.KT(p,V,!0),this.playback.seekTo(N),!0):!1}; g.h.KT=function(p,C,V){V=V===void 0?!1:V;var N=Vw(this,p,C);if(N){var H=void 0,X=N.cI;if(X){this.playback.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.H8=C,X.wX=p,X.Dh>N.Dh&&(H=X)}this.J=N.cpn;Gaa(this);p=this.playback.getCurrentTime();e7V(this,N,H,p,p,!1,!0)}}; g.h.M_=function(){for(var p=g.F(this.W),C=p.next();!C.done;C=p.next())C=C.value,C.H8=NaN,C.wX=NaN;Gaa(this);this.playback.k_("sdai",{rsac:"resetSkipAd",sac:this.J});this.J=""}; g.h.YA=CY(43); g.h.Xv=function(p,C,V,N,H,X,d,a,E){N.length>0&&this.playback.k_("sdai",{onssinfo:1,sq:p,start:C.toFixed(3),cpns:N.join(","),ds:H.join(","),isVideo:d?1:0});E&&(d?this.UY.set(p,{Ib:E,NP:a}):this.Wr.set(p,{Ib:E,NP:a}));a=$B(this.playback.getVideoData())&&this.yn.G("html5_process_all_cuepoints");if(d||a){if(N.length&&H.length)for(this.J&&this.J===N[0]&&this.playback.k_("sdai",{skipfail:1,sq:p,acpn:this.J}),p=C+this.FA(),d=0;d0&&(this.CM=0,this.vc="",this.api.publish("serverstitchedvideochange"));this.playback.EB(V);return!0}; g.h.Bj=function(){this.playback.k_("sdai",{rstdaist:1});this.Wr.clear();this.UY.clear();this.vr.clear()}; g.h.zE=function(p){var C;if(p!==((C=this.a$)==null?void 0:C.identifier))this.playback.k_("sdai",{ignorenoad:p});else{this.sO.add(p);var V;((V=this.a$)==null?void 0:V.identifier)===p&&G8(this)}}; g.h.wl=function(){return this.CM}; g.h.Vv=function(){return this.vc}; g.h.Et=function(p){var C=$W(this.api.Tk());if(C=C?C.Et(p):!1)this.D={Lu:p.identifier,NT:p.startSecs};else if(this.D&&this.D.Lu===p.identifier&&p.startSecs>this.D.NT+1){this.api.k_("sdai",{cueStChg:p.identifier,oldSt:this.D.NT.toFixed(3),newSt:p.startSecs.toFixed(3),abid:this.D.LC});if(this.D.LC){var V=p.startSecs-this.D.NT,N=this.Z.get(this.D.LC);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.yn.G("html5_ssdai_update_timeline_on_start_time_change")&&(H.qZ+= V*1E3))}}this.D.NT=p.startSecs}return C}; g.h.vG=function(p){return this.Ei?!1:!!riV(this,p)}; g.h.Q7=function(p){var C=this;this.playback.pauseVideo();var V=this.playback.getCurrentTime(),N=this.V.get(this.vc),H=this.C.get(this.vc);if(N){this.J=this.vc;this.sY=!1;N.cE=!0;var X=this.playback.getCurrentTime();this.T={zN:H,isAd:!0,Ia:!1,W6:X,adCpn:this.vc,l4:N,OwV:p};this.playback.getVideoData().VL()&&this.playback.Mz(N,this.Ho(),X,this.playback.getCurrentTime(),!1,!0,p,(0,g.Ip)());if(H==null?0:H.start)this.l_=X*1E3-H.start;this.Y.clear();this.playback.gI();this.vc=this.Ho().cpn;this.api.publish("serverstitchedvideochange"); this.playback.seekTo(V,{seekSource:89,L1:"lifa_skip"});this.playback.playVideo();this.F$||(this.F$=this.events.U(this.api,"progresssync",function(){var d=N.wc?N.wc*1E3:N.Dh,a=C.C.get(N.cpn);a&&C.playback.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.playback.removeCueRange(l):a.push(l);C.S=a;pK1(C,0,d+N.durationMs)})); return!0}this.playback.k_("sdai",{skipFail:V});return!1}; var z7a=0;g.v(szy,g.z);g.h=szy.prototype; g.h.nR=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||bCs(X);H.C.clear()}H=gR(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.U_){c=D.U_.N6||0;M=D.U_.Gr||1;var f= Number(((D.U_.aG||0)/(D.U_.bR||1)*1E3).toFixed(0));c=M=f+Number((c/M*1E3).toFixed(0))}else M=f=c,this.xA.has(Z)||this.HB.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.AB.get(Z))A.start=f,A.end=M,S=!0}else{if(A){var Y=Z;A=f;var W=M,L=q,VL=EZ(this.timeline,Y);if(VL!=null&&VL.length){L=a){this.Uo.set(p,V);txL(this,p,C);this.Rf.set(p,(0,g.Ip)());if(V=this.AB.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.HB.has(d)&&(this.HB.delete(d),this.xA.add(d));dJ(this);C=X.r6()/1E3;X=void 0;V=(X=g.Mz(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,{J6:!0}):this.Ta.seekTo(C+V/1E3);this.Nq?(this.api.k_("ssap",{gpfreload:this.vc}),hHy(this)||(this.Nq=!1),this.Ta.gI(!1,!1,this.api.G("html5_ssap_keep_media_on_finish_segment"))):N&&this.Ta.gI(!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.kC=function(){var p=this.timeline.T;if(!p)return 0;var C=p.u0();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.u0()>C&&(C=N.u0())}return C/1E3}; g.h.m6=function(){var p=this.Ta.getCurrentTime()*1E3;var C=JgS(this,p);if(!C){var V=EZ(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.zS()){if(this.ww&&this.V6.has(this.ww))return this.V6.get(this.ww);this.api.k_("ssap",{lpanf:""+KA(this)});return null}return FbV(this)}; g.h.zS=function(){var p=EZ(this.timeline,this.vc);return(p==null?0:p.length)?p[0].getType()===2:!1}; g.h.XS=function(){var p=EZ(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=mw1(this,this.Ta.getCurrentTime());this.Ta.seekTo(p+V/1E3,C)}; g.h.C3=function(p,C,V){return new g.iG(p,C,{id:V,namespace:"ssap",priority:9})}; g.h.onCueRangeEnter=function(p){if(!this.zx.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.DQ()||0).toFixed(3)});for(var C=p.getId().split(","),V=0;VV+1)for(N=V+1;Nthis.V;)(V=this.data.shift())&&JX(this,V,!0);TR(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&&(JX(this,V,C),g.B5(this.data,function(N){return N.key===p}),TR(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())JX(this,V.value,p);this.data=[];TR(this)}; g.h.CS=function(){var p=this;g.z.prototype.CS.call(this);this.data.forEach(function(C){JX(p,C,!0)}); this.data=[]};g.v(mP,g.z);mP.prototype.gM=function(p){if(p)return this.C.get(p)}; mP.prototype.CS=function(){this.T.removeAll();this.C.removeAll();g.z.prototype.CS.call(this)};g.iyc=Fu(function(){var p=window.AudioContext||window.webkitAudioContext;try{return new p}catch(C){return C.name}});g.v($wL,g.w);g.h=$wL.prototype;g.h.qG=function(){g.lI(this.element,g.US.apply(0,arguments))}; g.h.eU=function(){this.qW&&(this.qW.removeEventListener("focus",this.GF),g.Eo(this.qW),this.qW=null)}; g.h.Iq=function(){this.fS();var p=this.app.K();p.y6||this.qG("tag-pool-enabled");p.Y&&this.qG(g.nz.HOUSE_BRAND);p.playerStyle==="gvn"&&(this.qG("ytp-gvn"),this.element.style.backgroundColor="transparent");p.uJ&&(this.j2=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.bu=function(p){g.fI(this.app.K());this.Wu=!p;vN(this)}; g.h.resize=function(){if(this.qW){var p=this.j5();if(!p.isEmpty()){var C=!g.KG(p,this.dB.getSize()),V=rga(this);C&&(this.dB.width=p.width,this.dB.height=p.height);p=this.app.K();(V||C||p.uJ)&&this.app.ea.publish("resize",this.getPlayerSize())}}}; g.h.Bf=function(p,C){this.updateVideoData(C)}; g.h.updateVideoData=function(p){if(this.qW){var C=this.app.K();BW&&(this.qW.setAttribute("x-webkit-airplay","allow"),p.title?this.qW.setAttribute("title",p.title):this.qW.removeAttribute("title"));this.qW.setAttribute("controlslist","nodownload");C.nV&&p.videoId&&(this.qW.poster=p.b8("default.jpg"))}C=g.Fx(p,"yt:bgcolor");this.dH.style.backgroundColor=C?C:"";this.J5=EB(g.Fx(p,"yt:stretch"));this.Qd=EB(g.Fx(p,"yt:crop"),!0);g.Tz(this.element,"ytp-dni",p.g6);this.resize()}; g.h.setGlobalCrop=function(p){this.e4=EB(p,!0);this.resize()}; g.h.setCenterCrop=function(p){this.e$=p;this.resize()}; g.h.BI=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.Sg(window.outerWidth,window.outerHeight);V=!isNaN(this.iP.width)&&!isNaN(this.iP.height);var N=this.app.K().G("kevlar_player_enable_squeezeback_fullscreen_sizing");if(C&&!V&&N)return new g.Sg(this.element.clientWidth,this.element.clientHeight);if(C||p.Z$){if(window.matchMedia){p="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Yx&&this.Yx.media=== p||(this.Yx=window.matchMedia(p));var H=this.Yx&&this.Yx.matches}if(H)return new g.Sg(window.innerWidth,window.innerHeight)}else if(V)return this.iP.clone();return new g.Sg(this.element.clientWidth,this.element.clientHeight)}; g.h.j5=function(){var p=this.app.K().G("enable_desktop_player_underlay"),C=this.getPlayerSize(),V=g.Mz(this.app.K().experiments,"player_underlay_min_player_width");return p&&this.PN&&C.width>V?(p=g.Mz(this.app.K().experiments,"player_underlay_video_width_fraction"),new g.Sg(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.J5)?gwa(this):this.J5}; g.h.getVideoContentRect=function(p){var C=this.j5();p=WbX(this,C,this.getVideoAspectRatio(),p);return new g.mG((C.width-p.width)/2,(C.height-p.height)/2,p.width,p.height)}; g.h.lL=function(p){this.PN=p;this.resize()}; g.h.q$=function(){return this.L5}; g.h.onMutedAutoplayChange=function(){vN(this)}; g.h.setInternalSize=function(p){g.KG(this.iP,p)||(this.iP=p,this.resize())}; g.h.CS=function(){this.j2&&g.MM(this.j2);this.eU();g.w.prototype.CS.call(this)};g.h=BQS.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=fru(V);p.visualElement=V;var X=g.bz(),d=g.IW();X&&d&&(g.Zr("combine_ve_grafts")?ut(Kz(),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.wT=function(p,C){this.clientPlaybackNonce!==C&&(this.clientPlaybackNonce=C,DF(Kz(),p),GYj(this))}; g.h.setTrackingParams=function(p,C){this.elements.has(p);C&&(p.visualElement=g.ym(C))}; g.h.F0=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.v(g.SM,g.z);g.SM.create=function(p,C,V,N){try{var H=typeof p==="string"?p:"player"+g.LY(p),X=uk[H];if(X){try{X.dispose()}catch(a){g.nm(a)}uk[H]=null}var d=new g.SM(p,C,V,N);d.addOnDisposeCallback(function(){uk[H]=null;d.jl&&d.jl()}); return uk[H]=d}catch(a){throw g.nm(a),(a&&a instanceof Error?a:Error(String(a))).stack;}}; g.h=g.SM.prototype;g.h.jU=function(){return this.visibility}; g.h.kV=function(p){var C=p.vR,V=this.V$();if(C!==V){C.getVideoData().autonavState=V.getVideoData().autonavState;V.OX(this.Iw,this);var N=V.getPlaybackRate();V.Ta.dispose();this.B$=p;this.o_.kV(this.B$);C.setPlaybackRate(N);C.kQ(this.Iw,this);Xta(this)}}; g.h.m$=function(){this.Tl||(this.Tl=g.FA(Bk(),lSQ()));return this.Tl}; g.h.eU=function(p){if(this.mediaElement){this.XD&&(this.events.rY(this.XD),this.XD=null);g.Am(this.AV);var C=this.X$();C&&C.eU(!0,!1,p);this.template.eU();try{this.G("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.K5()}catch(V){g.eG(V)}this.mediaElement=null}}; g.h.Nt=function(){return this.mf}; g.h.Gf=function(p,C){if(p.vR!==this.X$()){this.logger.debug(function(){return"start set presenting player, type "+p.getPlayerType()+", vid "+p.getVideoData().videoId}); var V=null,N=this.X$();N&&(V=N.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),wM(this.n7,3),PN(this,"cuerangesremoved",N.Eu()),this.Qr&&!p.isGapless()&&N.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),N=p.lM()&&N.lM(),this.mM.oA("iv_s"),TiH(this,N));p.getPlayerType()===1&&this.kV(p);cZy(this,p);this.mf=p;this.o_.Gf(p);N=p.vR;this.mediaElement&&N.setMediaElement(this.mediaElement);N.kQ(this.sj,this);if(N.yX())PCH(this,"setPresenting",!1);else{this.onVideoDataChange("newdata", p,N.getVideoData());V&&!g.JK(V,N.getPlayerState())&&this.OD(new g.FK(N.getPlayerState(),V));C=C&&this.G("html5_player_preload_ad_fix")&&N.getPlayerType()===1;if(N.Bu()&&!C)this.onVideoDataChange("dataloaded",p,N.getVideoData());(C=(C=N.getVideoData().C)&&C.video)&&this.ea.v1("onPlaybackQualityChange",C.quality);PN(this,"cuerangesadded",N.Eu());C=N.getPlayerState();g.r(C,2)?tAu(this):g.r(C,8)?N.playVideo():N.T7()&&N.pauseVideo();C=this.V$();N.getPlayerType()===2&&(N.getVideoData().SQ=C.getVideoData().clientPlaybackNonce); N.getPlayerType()!==2||this.lW()||(N=N.getVideoData(),C.u6(N.clientPlaybackNonce,N.Q$||"",N.breakType||0,N.DS,N.videoId||""));this.logger.debug("finish set presenting player")}}}; g.h.sX=function(){if(this.V$()!==this.X$()){var p=this.X$();this.logger.debug(function(){return"release presenting player, type "+(p==null?void 0:p.getPlayerType())+", vid "+(p==null?void 0:p.getVideoData().videoId)}); this.Gf(this.B$)}}; g.h.V$=function(){return this.o_.V$()}; g.h.X$=function(){return this.o_.X$()}; g.h.qP=function(p,C,V){var N=this,H=this.mM;p===2&&(H=new QvQ(this.yn));p=new g.uY(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); $gu(C.getPlayerResponse())&&this.G("html5_ssap_pacf_qoe_ctmp")&&p.k_("ssap",{rpa:1});return p}; g.h.EMn=function(){Ut(this)||(this.logger.debug("application playback ready"),this.G("html5_enable_ssap_autoplay_debug_logging")&&this.V$().k_("ssap",{onpbrdy:1}),this.Uc(5))}; g.h.fEx=function(p){if(!Ut(this)){this.logger.debug("playback ready");zm1(this);var C=p.getPlayerState();p.T7()?this.pauseVideo():C.isOrWillBePlaying()&&this.playVideo()}}; g.h.canPlayType=function(p){return bv(p)}; g.h.K=function(){return this.yn}; g.h.getVideoData=function(){var p=this.X$();xf(this,"gvd");return p.getVideoData()}; g.h.w1=CY(17);g.h.RN=function(){return this.V$().getVideoData()}; g.h.getVideoLoadedFraction=function(p){p=yk(this,p);return p?g.a$(p.getVideoData())?1:(p=p.Sd())?p.NQ():0:0}; g.h.dV=function(){return this.template}; g.h.Tk=function(){return this.n7}; g.h.e5=function(){return this.mM}; g.h.iQ=function(p){var C=yk(this,1);C&&C.vA(p)}; g.h.pV=function(){var p=this.n7.pV();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.xH=function(){if(this.V$()===this.X$()&&this.Sb)return this.Sb.postId}; g.h.LcS=function(){var p=this;this.G("use_rta_for_player")||(g.qz(this.yn)?g.pk(this.yn,g.XE(this.getVideoData())).then(function(C){GC(Bk(),C);AeY(p.getVideoData(),p.yn,p.m$())}):AeY(this.getVideoData(),this.yn,this.m$()))}; g.h.Jm=function(p){this.ea.publish("poTokenVideoBindingChange",p)}; g.h.D1=function(p){this.ea.publish("d6de4videobindingchange",p)}; g.h.fm=function(){this.Cc&&this.Cc.fm()}; g.h.zg=function(p){this.Cc=p}; g.h.hK=function(p){if(p===1){this.mM.tick("vr");var C=this.X$();C.oY();ro1(this.mM,C.getVideoData(),Yx1(this));xSa(this.n7)}C=this.yn;(rG(C)&&C.D||g.yj(C))&&(this.lW()||this.ea.v1("onAdStateChange",p))}; g.h.setLoopVideo=function(p){var C=this.X$();C===this.V$()&&C.dj()!==p&&(C.setLoop(p),this.ea.Jk("onLoopChange",p))}; g.h.getLoopVideo=function(){return this.X$().dj()}; 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){(C=this.X$())&&id(C.getVideoData())&&C.k_("slr",{et:(p==null?void 0:p.endTimeMs)||-1});C=this.V$();C.PV("applooprange");if(p){var V=new g.iG(p.startTimeMs,p.endTimeMs,{id:"looprange",namespace:"applooprange"});C.addCueRange(V)}else{this.RN().clipConfig=void 0;var N;((V=this.Sb)==null?void 0:V.type)!== "repeatChapter"||isNaN(Number((N=this.Sb)==null?void 0:N.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.V$()===this.X$()&&(this.q9(),C.Ta.Vz())}}; g.h.getLoopRange=function(){return this.Sb}; g.h.q9=function(){var p="",C=this.V$();this.Sb?C!==this.X$()?p="pnea":DCe(this,C.getCurrentTime())&&(this.Sb.loopCount=0,p="ilr"):p="nlr";var V=this.X$();if(V&&id(V.getVideoData()))if(this.G("html5_gapless_log_loop_range_info")){var N,H;V.k_("slrre",{rej:p,ct:C.getCurrentTime(),lst:(N=this.Sb)==null?void 0:N.startTimeMs,let:(H=this.Sb)==null?void 0:H.endTimeMs})}else V.k_("slrre",{});p||fGy(this)}; g.h.setPlaybackRate=function(p,C){if(!isNaN(p)){p=sy1(this,p);var V=this.V$();V.getPlaybackRate()!==p&&(V.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 nT(this.n7).getCurrentTime();var N=p===2&&this.getVideoData().enableServerStitchedDai,H=g.pf(this.getVideoData());xf(this,"gct");p=N||H?this.X$():yk(this,p);if(!p)return 0;if(H&&this.Ze)return C=this.Ze,p=p.getCurrentTime(),V?V=ij(C,V):(V=mw1(C,p),V=p-V/1E3),V;if(C){if(N&&this.R6&&(V=this.R6.l_/1E3,V!==0))return V;V=ZN(this,p);return oC(this,V.getCurrentTime(),V)}N&&this.R6?(V=this.R6,p=p.getCurrentTime(), V=(V=w9L(V,p*1E3))?p-V.start/1E3:p):V=p.getCurrentTime();return V}; g.h.NE=function(){var p=yk(this);if(!p)return 0;p=ZN(this,p);return oC(this,p.NE(),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?this.X$():yk(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}xf(this,"agd");if(H&&this.Ze)return C=vwX(this.Ze,this.Ze.Vv()),p===1&&C===0?X.getDuration():C;if(C)return X= uj(this,X),oC(this,X.getDuration(),X);N&&this.R6?(p=this.R6,X=X.getCurrentTime(),X=(X=$0V(p,X*1E3))?X.durationMs/1E3:0):X=X.getDuration();return X}; g.h.Ft=function(p){var C=yk(this,p);return C?this.lW(C)?(C=uj(this,C),C.Ft()-C.getCurrentTime()+this.getCurrentTime(p)):C.Ft():0}; g.h.Vj=function(){return this.Ri}; g.h.addPlayerResponseForAssociation=function(p){this.Ze&&this.Ze.addPlayerResponseForAssociation(p)}; g.h.finishSegmentByCpn=function(p,C,V){xf(this,"afsc");return this.Ze?this.Ze.finishSegmentByCpn(p,C,V):[]}; g.h.Iq=function(){this.template.Iq();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=$ZX(this.template.element))&&this.events.U(this.template,p,this.onFullscreenChange);this.events.U(window,"resize",this.dZe)}; g.h.getDebugText=function(p){var C=this.V$().jb(p),V=this.X$(),N=this.V$();if(V&&V!==N){V=V.jb(p);N=g.F(Object.keys(V));for(var H=N.next();!H.done;H=N.next())H=H.value,C["ad"+H]=V[H];if(p){V=C;N={};if(H=rI(document,"movie_player"))N.bounds=H.getBoundingClientRect(),N["class"]=H.className;H={};var X=g.Ce("video-ads");X?(LFs(X,H),H.html=X.outerHTML):H.missing=1;X={};var d=g.Ce("videoAdUiSkipContainer"),a=g.Ce("ytp-ad-skip-button-container"),E=g.Ce("ytp-skip-ad-button"),l=d||a||E;l?(LFs(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"]=""+(+DH(this.mediaElement.getSize())===0),C.op=this.mediaElement.JA("opacity"),V=this.mediaElement.Pf().y+this.mediaElement.getSize().height,C.yof=""+(+V<=0),C.dis=this.mediaElement.JA("display"));p&&((p=(0,g.RV)())&&(C.gpu=p),(p=this.yn.playerStyle)&&(C.ps=p),this.yn.Y_&&(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_20250106_01_RC01"},C=this.getPlayerStateObject().Kd;C&&(p.player_error_code=C.errorCode,p.player_error_details=JSON.stringify(C.errorDetail));return p}; g.h.getPresentingPlayerType=function(p){xf(this,"gppt");if(this.appState===1)return 1;if(Ut(this))return 3;var C;if(p&&((C=this.R6)==null?0:C.zS(this.getCurrentTime())))return 2;var V;return g.pf(this.getVideoData())&&((V=this.Ze)==null?0:V.zS())?2:this.X$().getPlayerType()}; g.h.XS=function(){xf(this,"invp");return g.pf(this.getVideoData())&&this.Ze?this.Ze.XS():!1}; g.h.getPlayerStateObject=function(p){return this.getPresentingPlayerType()===3?nT(this.n7).OO:yk(this,p).getPlayerState()}; g.h.getAppState=function(){return this.appState}; g.h.Zv=function(p){switch(p.type){case "loadedmetadata":this.wr.start();p=g.F(this.Am);for(var C=p.next();!C.done;C=p.next())C=C.value,k31(this,C.id,C.Lf_,C.Wfx,void 0,!1);this.Am=[];break;case "loadstart":this.mM.oA("gv");break;case "progress":case "timeupdate":EJ(p.target.kq())>=2&&this.mM.oA("l2s");break;case "playing":g.gG&&this.wr.start();if(g.qz(this.yn))p=!1;else{var V=this.X$();C=g.wb(this.Tk());p=this.mediaElement.JA("display")==="none"||DH(this.mediaElement.getSize())===0;var N=FR(this.template), H=V.getVideoData();V=g.$U(this.yn);H=hl(H);C=!N||C||V||H||this.yn.Wc;p=p&&!C}p&&(p=this.X$(),p.DG(),this.getVideoData().wy||(this.getVideoData().wy=1,this.v0(),p.playVideo()))}}; g.h.onLoadProgress=function(p,C){this.ea.YG("onLoadProgress",C)}; g.h.zbV=function(){this.ea.publish("playbackstalledatstart")}; g.h.T7a=function(p,C){this.ea.publish("sabrCaptionsDataLoaded",p,C)}; g.h.onVideoProgress=function(p,C){p=ZN(this,p.vR);C=oC(this,p.getCurrentTime(),p);this.ea.v1("onVideoProgress",C)}; g.h.onAutoplayBlocked=function(){this.ea.v1("onAutoplayBlocked");var p,C=(p=this.X$())==null?void 0:p.getVideoData();C&&(C.Hg=!0);this.G("embeds_enable_autoplay_and_visibility_signals")&&g.KI(this.yn)&&(p={autoplayBrowserPolicy:e3(),autoplayIntended:PY(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.t1("embedsAutoplayStatusChanged",p))}; g.h.YZe=function(){this.ea.publish("progresssync")}; g.h.i1k=function(){this.ea.YG("onPlaybackPauseAtStart")}; g.h.mWn=function(p){if(this.getPresentingPlayerType()===1){g.Kt(p,1)&&!g.r(p.state,64)&&this.RN().isLivePlayback&&this.V$().isAtLiveHead()&&this.ea.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Kt(p,2)){if(this.Sb&&this.Sb.endTimeMs>=(this.getDuration()-1)*1E3){fGy(this);return}tAu(this)}if(g.r(p.state,128)){var C=p.state;this.cancelPlayback(5);C=C.Kd;JSON.stringify({errorData:C,debugInfo:this.getDebugText(!0)});this.ea.v1("onError",Lwv(C.errorCode));this.ea.YG("onDetailedError",{errorCode:C.errorCode, errorDetail:C.errorDetail,message:C.errorMessage,messageKey:C.Gc,cpn:C.cpn});(0,g.Ip)()-this.yn.H1>6048E5&&this.ea.YG("onReloadRequired")}C={};if(p.state.isPlaying()&&!p.state.isBuffering()&&!HH("pbresume","ad_to_video")&&HH("_start","ad_to_video")){var V=this.getVideoData();C.clientPlaybackNonce=V.clientPlaybackNonce;V.videoId&&(C.videoId=V.videoId);g.V3(C,"ad_to_video");jL("pbresume",void 0,"ad_to_video");xSa(this.n7)}this.ea.publish("applicationplayerstatechange",p)}}; g.h.OD=function(p){this.getPresentingPlayerType()!==3&&this.ea.publish("presentingplayerstatechange",p)}; g.h.M5=function(p){DN(this,vj(p.state));g.r(p.state,1024)&&this.ea.isMutedByMutedAutoplay()&&(bj(this,{muted:!1,volume:this.P$.volume},!1),AX(this,!1))}; g.h.AZ=function(p,C,V){p==="newdata"&&Xta(this);this.ea.publish("applicationvideodatachange",p,V)}; g.h.hv=function(p,C){this.ea.YG("onPlaybackAudioChange",this.ea.getAudioTrack().K4.name);this.ea.publish("internalaudioformatchange",this.ea.getAudioTrack().K4.id,C)}; g.h.BC=function(p){var C=this.X$().getVideoData();p===C&&this.ea.v1("onPlaybackQualityChange",p.C.video.quality)}; g.h.t7=function(){var p=this.o_.T[2]||null;if(p){var C=p.getVideoData();p=p.ZW;var V;(V=this.X$())==null||V.k_("ssdai",{cleanaply:1,acpn:C==null?void 0:C.clientPlaybackNonce,avid:C.videoId,ccpn:p,sccpn:this.RN().clientPlaybackNonce===p?1:0,isDai:this.RN().enableServerStitchedDai?1:0});delete this.o_.T[2]}}; g.h.onVideoDataChange=function(p,C,V){var N=C.vR;this.logger.debug(function(){return"on video data change "+p+", player type "+N.getPlayerType()+", vid "+V.videoId}); this.yn.Gk()&&N.k_("vdc",{type:p,vid:V.videoId||"",cpn:V.clientPlaybackNonce||""});N===this.V$()&&(this.yn.Ym=V.oauthToken);if(N===this.V$()){this.getVideoData().enableServerStitchedDai&&!this.R6?this.R6=new g.rR(this.ea,this.yn,this.B$):!this.getVideoData().enableServerStitchedDai&&this.R6&&(this.R6.dispose(),this.R6=null);if(this.yn.Gk()&&g.pf(V)){var H,X;N.k_("ssap",{vdctype:p,vid:V.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((H=this.Ri.T)==null?void 0:(X=H.getVideoData())== null?void 0:X.clientPlaybackNonce)||""})}var d,a;!g.pf(this.getVideoData())||p!=="newdata"&&p!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((d=this.Ri.T)==null?void 0:(a=d.getVideoData())==null?void 0:a.clientPlaybackNonce)?!g.pf(this.getVideoData())&&this.Ze&&(this.yn.Gk()&&N.k_("ssap",{tlmdis:2,vid:V.videoId||"",cpn:V.clientPlaybackNonce||""}),this.Ze.dispose(),this.Ze=null):(yiY(this.Ri),this.G("html5_ssap_cleanup_ad_player_on_new_data")&&this.t7(),C=QK(this.Ri,1,0,this.getDuration(1)* 1E3,this.getVideoData()),this.Ri.enqueue(C,!0),W$(this.Ri,0,this.getDuration(1)*1E3,[C]),qPs(this.Ri,this.getVideoData().clientPlaybackNonce,[C]),this.Ze&&(this.Ze.dispose(),this.Ze=null,this.yn.Gk()&&N.k_("ssap",{tlmdis:1})),this.yn.Gk()&&N.k_("ssap",{tlmcreate:1}),this.Ze=new szy(this.ea,this.Ri,this.B$),this.B$.yC(this.Ze))}if(p==="newdata")this.logger.debug("new video data, destroy modules"),wM(this.n7,2),this.ea.publish("videoplayerreset",N);else{if(!this.mediaElement)return;p==="dataloaded"&& (this.V$()===this.X$()?(og(V.I$,V.Hl),vhV(this)):JZ1(this));N.getPlayerType()===1&&(this.yn.R$&&$CQ(this),this.getVideoData().isLivePlayback&&!this.yn.kE&&this.dI("html5.unsupportedlive",2,"DEVICE_FALLBACK"),V.isLoaded()&&((NHu(V)||this.getVideoData().Gs)&&this.ea.publish("legacyadtrackingpingchange",this.getVideoData()),V.hasProgressBarBoundaries()&&yZe(this)));this.ea.publish("videodatachange",p,V,N.getPlayerType())}this.ea.v1("onVideoDataChange",{type:p,playertype:N.getPlayerType()});this.q9(); (C=V.wf)?this.t6.wT(C,V.clientPlaybackNonce):GYj(this.t6)}; g.h.U$=function(){Ot(this,null);this.ea.YG("onPlaylistUpdate")}; g.h.R3a=function(p){delete this.Hd[p.getId()];this.V$().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.Uc=function(p){var C=this;p!==this.appState&&(this.logger.debug(function(){return"app state change "+C.appState+" -> "+p}),p===2&&this.getPresentingPlayerType()===1&&(DN(this,-1),DN(this,5)),this.appState=p,this.ea.publish("appstatechange",p))}; g.h.dI=function(p,C,V,N,H){this.V$().Ng(p,C,V,N,H)}; g.h.h2=function(p,C){this.V$().handleError(new ON(p,C))}; g.h.isAtLiveHead=function(p,C){C=C===void 0?!1:C;var V=yk(this,p);if(!V)return!1;p=uj(this,V);V=ZN(this,V);return p!==V?p.isAtLiveHead(oC(this,V.getCurrentTime(),V),!0):p.isAtLiveHead(void 0,C)}; g.h.e1=function(){var p=yk(this);return p?uj(this,p).e1():0}; g.h.seekTo=function(p,C,V,N,H){C=C!==!1;if(N=yk(this,N))this.appState===2&&qS(this),xf(this,"seekTo"),this.lW(N)?kf(this)?this.R6.seekTo(p,{seekSource:H},C,V):this.NZ.seekTo(p,{seekSource:H},C,V):g.pf(this.getVideoData())&&this.Ze?this.Ze.seekTo(p,{Rl:!C,VE:V,L1:"application",seekSource:H}):N.seekTo(p,{Rl:!C,VE:V,L1:"application",seekSource:H})}; g.h.seekBy=function(p,C,V,N){this.seekTo(this.getCurrentTime()+p,C,V,N)}; g.h.Y3=function(){this.ea.v1("SEEK_COMPLETE")}; g.h.bd=function(){this.ea.Jk("onAbnormalityDetected")}; g.h.onSnackbarMessage=function(p){this.ea.Jk("onSnackbarMessage",p)}; g.h.C9_=function(p,C){p=p.vR;var V=p.getVideoData();if(this.appState===1||this.appState===2)V.startSeconds=C;this.appState===2?g.r(p.getPlayerState(),512)||qS(this):this.ea.v1("SEEK_TO",C)}; g.h.onAirPlayActiveChange=function(){this.ea.publish("airplayactivechange");this.yn.G("html5_external_airplay_events")&&this.ea.YG("onAirPlayActiveChange",this.ea.AU())}; g.h.onAirPlayAvailabilityChange=function(){this.ea.publish("airplayavailabilitychange");this.yn.G("html5_external_airplay_events")&&this.ea.YG("onAirPlayAvailabilityChange",this.ea.C8())}; g.h.showAirplayPicker=function(){var p;(p=this.X$())==null||p.Oc()}; g.h.sP=function(){this.ea.publish("beginseeking")}; g.h.m1=function(){this.ea.publish("endseeking")}; g.h.getStoryboardFormat=function(p){return(p=yk(this,p))?uj(this,p).getVideoData().getStoryboardFormat():null}; g.h.uf=function(p){return(p=yk(this,p))?uj(this,p).getVideoData().uf():null}; g.h.lW=function(p){p=p||this.X$();var C=!1;if(p){p=p.getVideoData();if(kf(this))p=p===this.R6.playback.getVideoData();else a:if(C=this.NZ,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.Nu=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=kf(this),l;(l=this.X$())==null||l.k_("appattl",{sstm:this.R6?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:E});a=E?R7a(this.R6,p,C,V,N,H,X,d):O8X(this.NZ,p,V,N,H,X);this.logger.debug(function(){return"Video added to timeline id="+p.video_id+" timelinePlaybackId="+a}); return a}; g.h.T4=function(p,C,V,N,H,X,d){if(kf(this)){var a=R7a(this.R6,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.zE=function(p){var C;(C=this.R6)==null||C.zE(p)}; g.h.UI=function(p,C){p=p===void 0?-1:p;C=C===void 0?Infinity:C;kf(this)||YsX(this.NZ,p,C)}; g.h.BX=function(p,C,V){if(kf(this)){var N=this.R6,H=N.wy.get(p);H?(V===void 0&&(V=H.qZ),H.durationMs=C,H.qZ=V):N.Lq("Invalid_timelinePlaybackId_"+p+"_specified")}else{N=this.NZ;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.qZ),xwH(N,H,C,V)):hX(N,"InvalidTimelinePlaybackId timelinePlaybackId="+p)}}; g.h.enqueueVideoByPlayerVars=function(p,C,V,N){V=V===void 0?Infinity:V;N=N===void 0?"":N;this.lW();p=new g.YB(this.yn,p);N&&(p.OZ=N);qxe(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.mf;p&&C&&(N=p.vR,V=this.X$(),this.G("html5_check_queue_on_data_loaded")?this.K().supportsGaplessShorts()&&V.getVideoData().J&&(V=this.FW,N=this.Qr.D,V.V!==p&&(V.mf=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))):(C=HCH(V,N,this.Qr.D),C!=null?(V.k_("sgap",C),V.getVideoData().J&&V.Gq(!1)):(p=p.getVideoData(), C=this.FW,C.T!==p&&(C.T=p,C.C=1,p.isLoaded()?C.Y():C.T.subscribe("dataloaded",C.Y,C)))))}; g.h.Wt=function(p,C,V,N){var H=this;V=V===void 0?0:V;N=N===void 0?0:N;var X=this.X$();X&&uj(this,X).uo();Jiv(this.Qr,p,C,V,N).then(function(){H.ea.YG("onQueuedVideoLoaded")},function(){})}; g.h.q3=function(){return this.Qr.q3()}; g.h.rA=function(p){return this.Qr.rA(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.Qr.clearQueue(p,C)}; g.h.loadVideoByPlayerVars=function(p,C,V,N,H,X){C=C===void 0?1:C;var d=this.V$();if(C===2&&this.RN().enableServerStitchedDai&&d&&!d.Ct())return d.k_("lvonss",{vid:(p==null?void 0:p.videoId)||"",ptype:C}),!1;var a=!1;d=new g.YB(this.yn,p);d.reloadPlaybackParams=X;g.LI(this.yn)&&!d.GU&&y$(this.mM);var E;X=this.mM;var l=(E=d.R$)!=null?E:"";X.timerName=l;this.mM.xB("pl_i");this.G("web_player_early_cpn")&&d.clientPlaybackNonce&&this.mM.infoGel({clientPlaybackNonce:d.clientPlaybackNonce});if(!yeQ(d).supportsVp9Encoding){var t; (t=this.X$())==null||t.k_("noVp9",{})}if(this.K().supportsGaplessShorts()){E=v8v(this.Qr,d,C);if(E==null){DN(this,-1);p=this.Qr;p.app.K().G("html5_gapless_new_slr")?ZlQ(p.app,"gaplessshortslooprange"):p.app.setLoopRange(null);p.app.getVideoData().E2=!0;var c,T;(c=p.T)==null||(T=c.nS)==null||T.resume();var M;(M=p.T)==null||GK(M.Pc());V={L1:"gapless_to_next_video",seekSource:60};var J;(J=p.app.Nt())==null||J.seekTo(m0X(p),V);if(!p.app.getPlayerStateObject(C).isPlaying()){var S;(S=g.$a(p.app))==null|| S.playVideo(!0)}p.Y();return!0}J=this.G("html5_shorts_gapless_preload_fallback");S=this.Qr.T;J&&S&&!S.fS()&&(c=S.getVideoData(),c=this.yn.G("html5_autonav_autoplay_in_preload_key")?zR(this,C,c):RC(this,C,c.videoId,c.OZ),this.o_.C.set(c,S,3600));this.Qr.clearQueue(J);var D;(D=this.X$())==null||D.k_("sgap",{f:E})}if(H){for(;d.hW.length&&d.hW[0].isExpired();)d.hW.shift();a=d.hW.length-1;a=a>0&&H.C(d.hW[a])&&H.C(d.hW[a-1]);d.hW.push(H)}V||(p&&CjH(p)?(nI(this.yn)&&!this.uM&&(p.fetch=0),Ot(this,p)):this.playlist&& Ot(this,null),p&&(this.uM=iO(!1,p.external_list)));this.ea.publish("loadvideo");C=this.aA(d,C,N);a&&this.dI("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+d.hW.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=blv(this,C,p,H);else{var d=lO(p);X=RC(this,C,d,H)}if(this.o_.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 IGS(this,p,C,V,N)}; g.h.setMinimized=function(p){this.visibility.setMinimized(p);(p=R1v(this.n7))&&(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.n7;p=p.N.K().showInlinePreviewUi?p.Qi.get("inline_preview"):void 0;p&&(this.isInline()?p.load():p.unload(),this.ea.Jk("onInlinePreviewModeChange"))}; g.h.zQ=function(p){var C;!p||!this.yn.DS||(C=this.getVideoData())!=null&&C.backgroundable?this.visibility.zQ(p):this.UB?this.UB.start():this.Ls()}; g.h.setSqueezeback=function(p){this.visibility.setSqueezeback(p)}; g.h.Ls=function(){var p,C=(p=this.mediaElement)==null?void 0:p.AQ();C&&D3(C).catch(function(V){return g.eG(V)})}; g.h.ade=function(){this.mediaElement.AQ();this.mediaElement.AQ().webkitPresentationMode==="picture-in-picture"?this.zQ(!0):this.zQ(!1)}; g.h.togglePictureInPicture=function(){var p=this.X$();p&&p.togglePictureInPicture()}; g.h.aA=function(p,C,V){C=C===void 0?1:C;this.logger.debug(function(){return"start load video, id "+p.videoId+", type "+C}); HH("_start",this.mM.timerName)||g.NU(Wh)(void 0,this.mM.timerName);var N=!1,H=KF1(this,C,p,!1);H?(N=!0,p.dispose()):(H=MAX(this,C,p,V),(this.G("html5_onesie")||this.G("html5_load_before_stop"))&&H.BW()&&H.Ot(),this.wr.stop(),C===1&&C!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,C),this.Gf(H));V=H.vR;V===this.V$()&&(this.yn.Ym=p.oauthToken);if(!V.BW())return!1;if(V===this.V$()){this.Uc(1);var X=qS(this);if(N&&this.G("html5_player_preload_ad_fix")&&V.getPlayerType()=== 1&&V.Bu())this.onVideoDataChange("dataloaded",H,V.getVideoData());return X}V.Sm();return!0}; g.h.cueVideoByPlayerVars=function(p,C){var V=this;C=C===void 0?1:C;var N=this.V$();if(this.RN().enableServerStitchedDai&&N&&!N.Ct()&&p&&Object.keys(p).length>0)N.k_("qvonss",{vid:(p==null?void 0:p.videoId)||"",ptype:C});else if(p&&CjH(p))if(this.bN=!0,Ot(this,p),(p=g.qA(this.playlist))&&p.GN())eM(this,p,C);else this.playlist.onReady(function(){yw(V)}); else{C||(C=this.getPresentingPlayerType());C===1&&this.U$();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.X$().getVideoData().loading=!0,i7u(N,p?p:{}).then(function(X){eM(V,X,C)}),N.dispose()):eM(this,N,C)}}; g.h.uy=function(p,C,V,N,H,X,d){if(!p&&!V)throw Error("Playback source is invalid");if(uL(this.yn)||g.Of(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;G8e(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.bN=!0;AZv(this,p,C,V,N)}; g.h.loadPlaylist=function(p,C,V,N){this.bN=!1;AZv(this,p,C,V,N)}; g.h.hA=function(){return this.ea.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.uT())}; g.h.Wf=CY(13); g.h.nextVideo=function(p,C){var V=g.NI(this.V$().getVideoData());g.Wk(this.ea)&&V?this.uy(V.videoId,C?V.xR:V.sessionData,V.playlistId,C,void 0,V.A4||void 0):this.uM?this.ea.YG("onPlaylistNext"):this.getPresentingPlayerType()===3?nT(this.n7).nextVideo():!this.playlist||nI(this.yn)&&!this.ea.isFullscreen()||(this.playlist.uT(p)&&NJQ(this.playlist,jCe(this.playlist)),this.playlist.loaded?(p=C&&this.yn.G("html5_player_autonav_logging"),C&&this.ea.publish("playlistautonextvideo"),this.aA(g.qA(this.playlist,void 0, C,p),1)):this.bN=!1)}; g.h.previousVideo=function(p){this.uM?this.ea.YG("onPlaylistPrevious"):this.getPresentingPlayerType()===3?nT(this.n7).Gx():!this.playlist||nI(this.yn)&&!this.ea.isFullscreen()||(this.playlist.MR(p)&&NJQ(this.playlist,VM9(this.playlist)),this.playlist.loaded?this.aA(g.qA(this.playlist),1):this.bN=!1)}; g.h.playVideoAt=function(p){this.uM?this.ea.YG("onPlaylistIndex",p):this.playlist&&(this.playlist.loaded?this.aA(g.qA(this.playlist,p),1):this.bN=!1,NJQ(this.playlist,p))}; g.h.getPlaylist=function(){return this.playlist}; g.h.tA=CY(22);g.h.rQa=function(p){this.ea.v1("onCueRangeEnter",p.getId())}; g.h.Vb$=function(p){this.ea.v1("onCueRangeExit",p.getId())}; g.h.Ik=function(){var p=g.ev(this.Tk());p&&p.Ik()}; g.h.c8=function(p,C,V){var N=yk(this,C);if(N){var H=this.RN();if(g.pf(H)){xf(this,"acrl");if(this.Ze){if(this.G("html5_ssap_enable_cpn_triggered_media_end")&&N.getPlayerType()===2&&this.Ze.zS()){var X=this.V$();X.k_("ssap",{acrla:p.length?p[0].getId():"",acrll:p.length,pt:N.getPlayerType(),acpn:N.getVideoData().clientPlaybackNonce,ccpn:X.getVideoData().clientPlaybackNonce});N=this.V$()}if(C===1){X=Lc(this.Ze,H.clientPlaybackNonce);for(var d=g.F(p),a=d.next();!a.done;a=d.next())a=a.value,a.start+= X,a.end+=X,a.Ge=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.Vv()}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.c8(p,V);C&&this.getPresentingPlayerType()!==C||PN(this,"cuerangesadded",p)}else this.G("html5_ssap_enable_cpn_triggered_media_end")&&(p=this.V$(),p.k_("ssap",{acrlpnf:p.getVideoData().clientPlaybackNonce}))}; g.h.ra=function(p,C){var V=yk(this,C);V&&(V.ra(p),C&&this.getPresentingPlayerType()!==C||PN(this,"cuerangesremoved",p))}; g.h.B8=function(p){var C=this.X$()||this.V$(),V=this.getPresentingPlayerType();if(this.yn.Gk()){var N=C.HE("ad");C.k_("ssap",{hac:N?"1":"0",cpn:p,pt:V})}return this.G("html5_ssap_enable_cpn_triggered_media_end")?C.B8(V,p):C.B8(V)}; g.h.u0S=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,V=this.X$();this.getPresentingPlayerType();ro1(this.mM,V.getVideoData(),Yx1(this));f7(this)&&this.yn.S&&CT(this.RN())==="embedded"&&this.hP&&Math.random()<.01&&g.t1("autoplayTriggered",{intentional:this.intentionalPlayback});this.hP=!1;xSa(this.n7);this.G("web_player_defer_ad")&&mCs(this);this.ea.YG("onPlaybackStartExternal");(this.yn.G("mweb_client_log_screen_associated"),kS(this.yn))||p();V={};this.getVideoData().Y&&(V.cttAuthInfo={token:this.getVideoData().Y,videoId:this.getVideoData().videoId}); V.sampleRate=20;NR("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(){IC(C)}):IC(this); this.q9();UCY(this);this.G("embeds_enable_autoplay_and_visibility_signals")&&g.KI(this.yn)&&(V={autoplayBrowserPolicy:e3(),autoplayIntended:PY(this.getVideoData()),autoplayStatus:AaH(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.t1("embedsAutoplayStatusChanged",V))}; g.h.qf=function(){this.ea.publish("internalAbandon");Yf(this)}; g.h.onApiChange=function(){var p=this.X$();this.yn.D&&p?this.ea.v1("onApiChange",p.getPlayerType()):this.ea.v1("onApiChange")}; g.h.CJk=function(){var p=this.mediaElement;p={volume:g.M$(Math.floor(p.getVolume()*100),0,100),muted:p.oV()};p.muted||AX(this,!1);this.P$=g.Y5(p);this.ea.v1("onVolumeChange",p)}; g.h.mutedAutoplay=function(p){var C=this.getVideoData().videoId;isNaN(this.G5)&&(this.G5=this.getVideoData().startSeconds);if(!this.G("embeds_enable_full_length_inline_muted_autoplay"))C&&(this.loadVideoByPlayerVars({video_id:C,playmuted:!0,start:this.G5}),this.ea.YG("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.G5,muted_autoplay_duration_mode:p==null?void 0:p.durationMode}), this.ea.YG("onMutedAutoplayStarts")}; g.h.onFullscreenChange=function(){var p=RmL(this);this.BI(p?1:0);emy(this,!!p)}; g.h.BI=function(p){var C=!!p,V=!!this.VT()!==C;this.visibility.BI(p);this.template.BI(C);this.G("html5_media_fullscreen")&&!C&&this.mediaElement&&RmL(this)===this.mediaElement.AQ()&&this.mediaElement.ST();this.template.resize();V&&this.mM.tick("fsc");V&&(this.ea.publish("fullscreentoggled",C),p=this.RN(),C={fullscreen:C,videoId:p.vO||p.videoId,time:this.getCurrentTime()},this.ea.getPlaylistId()&&(C.listId=this.ea.getPlaylistId()),this.ea.v1("onFullscreenChange",C))}; g.h.AF=function(){return this.visibility.AF()}; g.h.isFullscreen=function(){return this.visibility.isFullscreen()}; g.h.VT=function(){return this.visibility.VT()}; g.h.dZe=function(){if(this.X$()){this.VT()!==0&&this.VT()!==1||this.BI(RmL(this)?1:0);var p;this.yn.DS&&((p=this.getVideoData())==null?0:p.backgroundable)&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.ST()}}; g.h.Mba=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=yk(this,p);V&&(this.appState===2?(g.LI(this.yn)&&y$(this.mM),qS(this)):g.r(V.getPlayerState(),2)?(C=36,this.getVideoData().fq()&&(C=37),this.seekTo(0,void 0,void 0,void 0,C)):V.playVideo(!1,C))}; g.h.pauseVideo=function(p,C){(p=yk(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.V$().getVideoData(),V=new g.YB(this.yn,{video_id:C.vO||C.videoId,oauth_token:C.oauthToken});V.Z=g.Y5(C.Z);var N;!p||(N=this.webPlayerContextConfig)!=null&&N.disableStaleness||(V.sL=!0);this.cancelPlayback(6);eM(this,V,1)}; g.h.cancelPlayback=function(p,C){var V=this;this.logger.debug(function(){return"start cancel playback, type "+C}); var N=yk(this,C);N?C===2&&N.getPlayerType()===1&&(mij(this.RN())||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.X$()&&(this.logger.debug("cancel playback, destroy modules"),wM(this.n7,p)),C===1&&(N.stopVideo(),Yf(this)),N.DM(void 0,p!==6),PN(this,"cuerangesremoved",N.Eu()),N.Ta.hU.reset(),this.Qr&&N.isGapless()&& (N.eU(!0),N.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.h.sendVideoStatsEngageEvent=function(p,C,V){(C=yk(this,C))&&d3L(this.yn,p)?C.sendVideoStatsEngageEvent(p,V):V&&V()}; g.h.pO=function(p){var C=yk(this);return C&&d3L(this.yn,p)?C.pO(p):null}; g.h.updatePlaylist=function(){!nI(this.yn)&&g.KI(this.yn)&&FFs(this);this.ea.YG("onPlaylistUpdate")}; g.h.setSizeStyle=function(p,C){this.nY=p;this.G("web_log_theater_mode_visibility")?this.Wx(C):this.mq=C;this.ea.publish("sizestylechange",p,C);this.template.resize()}; g.h.Wx=function(p){this.visibility.Wx(p)}; g.h.WB=function(){return this.G("web_log_theater_mode_visibility")?this.visibility.WB():this.mq}; g.h.isMinimized=function(){return this.visibility.isMinimized()}; g.h.isInline=function(){return this.visibility.isInline()}; g.h.Fg=function(){return this.visibility.Fg()}; g.h.dZ=function(){return this.visibility.dZ()}; g.h.ZC=function(){return this.visibility.ZC()}; g.h.EU=function(){return this.nY}; g.h.getAdState=function(){if(this.getPresentingPlayerType()===3)return nT(this.n7).getAdState();xf(this,"gas");if(!this.lW()){var p=$W(this.Tk());if(p)return p.getAdState()}return-1}; g.h.oGY=function(p){var C=this.template.getVideoContentRect();vf(this.VO,C)||(this.VO=C,(C=this.X$())&&C.t2(),(C=this.V$())&&C===this.X$()&&C.t2(),this.VT()===1&&this.V9&&emy(this,!0));this.h5&&g.KG(this.h5,p)||(this.ea.publish("appresize",p),this.h5=p)}; g.h.s8=function(){return this.ea.s8()}; g.h.SO_=function(){this.getPresentingPlayerType()===2&&this.NZ.isManifestless()?kYL(this.NZ):(this.R6&&(L7Q(this.R6),Yf(this)),PCH(this,"signature"))}; g.h.O1k=function(p){p&&PCH(this,"reloadPlayerEvent",void 0,p)}; g.h.v0=function(p){this.eU(p);K7(this)}; g.h.Vrx=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.Fk=function(p){this.ea.publish("heartbeatparams",p)}; g.h.O1=function(p){this.ea.Jk("onAutonavChangeRequest",p!==1)}; g.h.Sd=function(){return this.mediaElement}; g.h.setBlackout=function(p){if(this.yn.Wc!==p){this.yn.Wc=p;var C=this.X$();C&&(C.Ta.Vz(),this.yn.R$&&$CQ(this),C.Yb(p))}}; g.h.EG$=function(){var p=this.X$();if(p){var C=!this.ea.sG();p.Lm(C)}}; g.h.onLoadedMetadata=function(){this.ea.YG("onLoadedMetadata")}; g.h.onDrmOutputRestricted=function(){this.ea.YG("onDrmOutputRestricted")}; g.h.VX=function(){this.intentionalPlayback=!0}; g.h.CS=function(){this.n7.dispose();this.zL.dispose();this.NZ.dispose();this.R6&&this.R6.dispose();this.Ri.removeAll();this.Ri.dispose();this.Ze&&this.Ze.dispose();this.B$.dispose();this.eU();this.o_.dispose();g.s1(this.playlist);g.z.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.n7.createSubtitlesModuleIfNeeded()}; g.h.isOrchestrationLeader=function(){var p=gM(this.n7);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=CN(p,"v"),p.replace("/watch","/clip/"+this.Sb.postId);var X=this.ea.isEmbedsShortsMode()||this.yn.Wr==="shortspage",d=g.ck(this.getVideoData());return this.yn.getVideoUrl(p,C,V,N,H,X,d)}; g.h.Ql=function(){return this.Qr.Ql()}; g.h.Fv=function(p,C,V){this.ea.publish("spsumpreject",p,C,V)}; g.h.Dw=function(){try{for(var p=g.F(g.yW(this.o_.T)),C=p.next();!C.done;C=p.next()){var V=C.value;V.fS()||V.Dw()}if(this.G("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var N=g.F(nw1(this.o_.C)),H=N.next();!H.done;H=N.next()){var X=H.value;X.fS()||X.Dw()}this.V$().Dw()}catch(d){g.eG(d)}}; g.h.Q7=function(){if(this.R6){var p=(0,g.Ip)();return this.R6.Q7(p)}return!1}; var uk={};var hvY={XU:[{jt:/Unable to load player module/,weight:20},{jt:/Failed to fetch/,weight:500},{jt:/XHR API fetch failed/,weight:10},{jt:/JSON parsing failed after XHR fetch/,weight:10},{jt:/Retrying OnePlatform request/,weight:10},{jt:/CSN Missing or undefined during playback association/,weight:100},{jt:/Non-recoverable error. Do not retry./,weight:0},{jt:/Internal Error. Retry with an exponential backoff./,weight:0},{jt:/API disabled by application./,weight:0}],EK:[{callback:WFy,weight:500}]};var iL9=/[&\?]action_proxy=1/,dJa=/[&\?]token=([\w-]*)/,h$y=/[&\?]video_id=([\w-]*)/,sRa=/[&\?]index=([\d-]*)/,aPQ=/[&\?]m_pos_ms=([\d-]*)/,lPu=/[&\?]vvt=([\w-]*)/,G3u="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(" "),Esv="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(" "),jRv={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"},VW9={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},HLS={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};L7.prototype.Av=function(p){this.player.e5().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.Av("a_bid_s");var H=rZe();if(H!==null)return N&&this.Av("a_bid_f"),this.C(p,C,H);H=Bi1();N&&O8(H,function(){V.Av("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.sC;var X=H.zN;var d=H.cueProcessedMs;V=V===void 0?"":V;var a=this.player.getVideoData(1);H=this.player.K().Uf;var E=0;if(d&&X&&!C){var l=X.end-X.start;l>0&&(E=Math.floor(l/1E3))}E=C?C.zI: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.e1()*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().j5().height,P_W:this.player.dV().j5().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="20095",(C=this.player.K().forcedExperiments)&&(V.forced_experiments=C));var T=Ek(g.nX(p,t),V);return T.split("?").length!==2?U8(Error("Invalid AdBreakInfo URL")):g.pk(this.player.K(),a==null?void 0:a.oauthToken).then(function(M){if(M&&tw()){var J=Bk();GC(J,M)}M=N.player.m$(J);J=tWS(N,T,t,a.isMdxPlayback,d);return g.s0(M,J,"/youtubei/v1/player/ad_break").then(function(S){return S})})}; L7.prototype.reset=function(){this.V=this.T=1};g.v(cu9,L7); cu9.prototype.C=function(p,C,V){C=C===void 0?{}:C;var N=C.sC;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:TDj(this,p,{sC:N,zN:H,cueProcessedMs:X},V,C);if(d.split("?").length!==2)return Math.random()<.1&&g.eG(Error("Invalid AdBreakInfo URL")),U8(Error("Invalid AdBreakInfo URL"));var a=this.player.getVideoData(1).isMdxPlayback,E=V;V=dJa.exec(d);V=V!=null&&V.length>=2?V[1]:"";p=iL9.test(d);var l=h$y.exec(d); l=l!=null&&l.length>=2?l[1]:"";var t=sRa.exec(d);t=t!=null&&t.length>=2&&!Number.isNaN(Number(t[1]))?Number(t[1]):1;var c=aPQ.exec(d);c=c!=null&&c.length>=2?c[1]:"0";var T=AR(this.player.K().Vn),M=g.Da(this.player.getVideoData(1).Sa,!0);CD1(this,M,d,E===""?"":E,this.player.K(),this.player.getVideoData(1));E={splay:!1,lactMilliseconds:String(bV()),playerHeightPixels:Math.trunc(this.player.dV().j5().height),playerWidthPixels:Math.trunc(this.player.dV().j5().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20095,autonavState:$f(this.player.K())};if(a){a={};var J=this.player.K().Uf;NDy(a,J?J.join(","):"")&&(E.mdxContext=a)}if(a=Esv.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=Xru(a)}d=lPu.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.zI:D)*1E3))?String(N):void 0;H=this.player.e1()*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 MWS(this,C)};var stP={GAx:"replaceUrlMacros",ob_:"onAboutThisAdPopupClosed",Oq_:"executeCommand"};Ju9.prototype.Gv=function(){return"adPingingEndpoint"}; Ju9.prototype.DR=function(p,C,V){rus(this.No.get(),p,C,V)};mJV.prototype.Gv=function(){return"changeEngagementPanelVisibilityAction"}; mJV.prototype.DR=function(p){this.N.Jk("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:p})};vsL.prototype.Gv=function(){return"loggingUrls"}; vsL.prototype.DR=function(p,C,V){p=g.F(p);for(var N=p.next();!N.done;N=p.next())N=N.value,rus(this.No.get(),N.baseUrl,C,V,N.attributionSrcMode)};g.v(SqX,g.z);g.v(WN,g.z);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.eH=function(p,C,V,N,H,X,d,a){if(p==="")vE("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(p!==this.T||V){this.T=p;this.mx.get().eH(p,C,V,N,H,X,d,a);this.pS.get().eH(p,C,V,N,H,X,d,a);var E;(E=this.UO)==null||E.get().eH(p,C,V,N,H,X,d,a);this.C.eH(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.eH(p,C,V,N,H,X,d,a)}else vE("Duplicate content video loaded signal")}; g.h.qf=function(){this.T&&this.H_(this.T)}; g.h.H_=function(p){this.T=void 0;for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.H_(p)};Qw.prototype.KC=function(p,C,V,N,H){KUu(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?(KUu(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,HH("_start",this.actionType)&&ZL1(this)))}; Qw.prototype.reset=function(){return new Qw(this.N)};g.v(rJ,g.z);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)?vE("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:p}):(p=new UJs(p,C,V,N,X),this.T.set(p.id,{zN:p,listener:H,rj:d}),this.N.jd([p],d))}; rJ.prototype.removeCueRange=function(p){var C=this.T.get(p);C?(this.N.K$([C.zN],C.rj),this.T.delete(C.zN.id)):vE("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.v(UJs,g.iG);BN.prototype.hK=function(p){this.N.hK(p)}; BN.prototype.VA=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 osQ=null;g.v(Auy,g.ca);Auy.prototype.cG=function(p){return this.T.hasOwnProperty(p)?this.T[p].cG():{}}; g.YH("ytads.bulleit.getVideoMetadata",function(p){return CD().cG(p)}); g.YH("ytads.bulleit.triggerExternalActivityEvent",function(p,C,V){var N=CD();V=bLy(V);V!==null&&N.publish(V,{queryId:p,viewabilityString:C})});g.h=jC.prototype;g.h.U8=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=kc(kI).nG(p,{});V?yF(V):C&&(p=kc(kI).Y7(null,C2(),!1,p),p.hB=3,GqX([p]));return{}}C=xJV(C);if(C===null)return{};var N=this.N.Yh();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 GiX(C,p,V)}; g.h.qc=function(p,C,V,N,H){this.T.has(p)&&(N<=0||H<=0||kc(kI).qc(p,C,V,N,H))}; g.h.lN=function(p){var C;(C=this.T.get(p.queryId))==null||C.lN()}; g.h.Kr=function(p){var C;(C=this.T.get(p.queryId))==null||C.Kr()}; g.h.gJ=function(p){var C;(C=this.T.get(p.queryId))==null||C.gJ()}; g.h.Bn=function(p){var C;(C=this.T.get(p.queryId))==null||C.Bn()}; g.h.UA=function(p){var C;(C=this.T.get(p.queryId))==null||C.UA()};$JQ.prototype.send=function(p,C,V,N){try{LU1(this,p,C,V,N===void 0?!1:N)}catch(H){}};g.v(gsy,$JQ);WUv.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=Jpa(p);N=H;var X=p.match(PX);if(X[1]==="https")var d=p;else X[1]="https",d=nJ("https",X[2],X[3],X[4],X[5],X[6],X[7]);var a=aee(d);X=[];var E=Vry(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.pO=function(){return this.N.pO(1)};g.v(iM,g.z);g.h=iM.prototype;g.h.rb=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.eH=function(){this.bH.clear();this.Ro=null;this.pw.get().clear()}; g.h.H_=function(){}; g.h.YO_=function(p,C,V,N,H){C.videoId==="nPpU29QrbiU"&&this.N.k_("ads_ssm_vdc_s",{pt:V,dvt:p});Fm(this.x_.get())&&p!=="dataloaded"||NaV(this,C,V);if(pD(this.x_.get())&&p==="newdata"&&H!==void 0){p=this.rb();var X=C.clientPlaybackNonce,d={};Ds(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=KR(X),d));C=C.clientPlaybackNonce;N=N==null?void 0:N.clientPlaybackNonce;H=HQS(H);if(H!==1)if(N!==void 0)for(V=g.F(this.listeners),p=V.next();!p.done;p=V.next())p.value.jN(N, C,H);else vE("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.dA(C)}}; g.h.AiV=function(p,C){p!==void 0&&(this.Ro=p,C===void 0?vE("Expected ad video start time on SS video changed"):this.bH.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?NaV(this,N,V):vE("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.N.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:p})}; g.h.gK=function(p,C){var V=p.author,N=p.clientPlaybackNonce,H=p.isListed,X=p.OZ,d=p.title,a=p.yr,E=p.tX,l=p.isMdxPlayback,t=p.jS,c=p.mdxEnvironment,T=p.isAutonav,M=p.Zm,J=p.GU,S=p.YQ,D=p.videoId||"",Z=p.profilePicture||"",f=p.Qv||"",q=p.fq()||!1,A=p.VL()||!1;p=p.Cg||void 0;X=this.pw.get().T.get(X)||{layoutId:null,slotId:null};var Y=this.N.getVideoData(1),W=Y.p4();Y=Y.getPlayerResponse();C=1E3*this.N.getDuration(C);var L=1E3*this.N.getDuration(1),VL,au,Q=(Y==null?void 0:(VL=Y.playerConfig)==null?void 0: (au=VL.daiConfig)==null?void 0:au.enableDai)||!1,e,G;VL=(Y==null?void 0:(e=Y.playerConfig)==null?void 0:(G=e.daiConfig)==null?void 0:G.enablePreroll)||!1;return Object.assign({},X,{videoId:D,author:V,clientPlaybackNonce:N,yE_:C,C$:L,daiEnabled:Q,j$:VL,isListed:H,p4:W,profilePicture:Z,title:d,Qv:f,yr:a,tX:E,Cg:p,isMdxPlayback:l,jS:t,mdxEnvironment:c,isAutonav:T,Zm:M,GU:J,YQ:S,fq:q,VL:A})}; g.h.CS=function(){this.listeners.length=0;this.Ij=null;g.z.prototype.CS.call(this)};g.v(hF,g.z);g.h=hF.prototype;g.h.eH=function(){var p=this;pD(this.x_.get())||(this.T=SS(function(){p.N.fS()||p.N.Ap("ad",1)}))}; g.h.H_=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.VJ=function(){}; g.h.playVideo=function(){this.N.playVideo()}; g.h.pauseVideo=function(){this.N.pauseVideo()}; g.h.resumeVideo=function(p){this.Ui(p)&&this.N.playVideo()}; g.h.Ui=function(p){return this.N.getPlayerState(p)===2}; g.h.getCurrentTimeSec=function(p,C,V){var N=this.pS.get().Ro;if(p===2&&!C&&N!==null)return du9(this,N);Gm(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.lL=function(p){this.N.lL(p)}; g.h.DZ$=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.W$(C)}else if(p===1)for(p=g.F(this.wg),V=p.next();!V.done;V=p.next())V.value.VJ(C)}; g.h.L6n=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.hp(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.ri=function(){for(var p=this.N.isMinimized(),C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.ri(p)}; g.h.Hz=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.Hz(p)}; g.h.OR=function(){for(var p=this.N.dV().j5(),C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.c$(p)}; g.h.hX=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.hX(p)}; g.h.R5=function(){for(var p=g.F(this.listeners),C=p.next();!C.done;C=p.next())C.value.R5()};g.v(sm9,g.z);g.v(tF,g.z);tF.prototype.CS=function(){this.Oi.fS()||this.Oi.get().removeListener(this);g.z.prototype.CS.call(this)};cq.prototype.fetch=function(p){var C=p.AL;return this.T.fetch(p.G$,{sC:p.sC===void 0?void 0:p.sC,zN:C,cueProcessedMs:p.cueProcessedMs===void 0?0:p.cueProcessedMs}).then(function(V){return aLy(V,C)})};g.v(TS,g.z);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.vZ=function(p){EzQ(this,p,1)}; g.h.onAdUxClicked=function(p,C){ME(this,function(V){V.yf(p,C)})}; g.h.CF=function(p){ME(this,function(C){C.PF(p)})}; g.h.nF=function(p){ME(this,function(C){C.pP(p)})}; g.h.xWo=function(p){ME(this,function(C){C.VK(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={j9:null,E3:-Infinity},C=this.T[C]=V);V=p.startSecs+p.T/1E3;if(!(V=this.C.startSecs&&V.startSecs<=this.C.startSecs+this.C.zI)?vE("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.C=V,cSH(this, V)))}}; g.h.CS=function(){this.T!=null&&(this.T.unsubscribe("cuepointupdated",this.EP,this),this.T=null);this.listeners.length=0;this.Kn.length=0;g.z.prototype.CS.call(this)};vq.prototype.addPlayerResponseForAssociation=function(p){this.N.addPlayerResponseForAssociation(p)};g.h=SC.prototype;g.h.Nu=function(p,C,V,N,H,X,d){return this.N.Nu(p,C,V,N,H,X,d)}; g.h.UI=function(p,C){this.N.UI(p,C)}; g.h.BX=function(p,C,V){this.N.BX(p,C,V)}; g.h.zE=function(p){this.N.zE(p)}; g.h.T4=function(p,C,V,N,H,X,d){this.N.T4(p,C,V,N,H,X,d)}; g.h.yz=function(p){return this.N.yz(p)}; g.h.finishSegmentByCpn=function(p,C,V){V=muu(V);this.N.finishSegmentByCpn(p,C,V)};g.v(FXH,g.z);g.v(Swe,g.z);g.v(KXv,g.z);g.v(Due,g.z);g.v(uTQ,g.z);g.v(Uue,g.z);Uue.prototype.V=function(){return this.C};g.v(fLX,re); fLX.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.v(OQu,HE);g.h=OQu.prototype;g.h.init=function(p,C,V){HE.prototype.init.call(this,p,C,V);g.Sh(this.V,"stroke-dasharray","0 "+this.C);this.V.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.S.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){dk(this);HE.prototype.hide.call(this)}; g.h.show=function(){XK(this);HE.prototype.show.call(this)}; g.h.D_=function(){this.hide()}; g.h.HI=function(){if(this.T){var p=this.T.getProgressState();p!=null&&p.current!=null&&g.Sh(this.V,"stroke-dasharray",p.current/p.seekableEnd*this.C+" "+this.C)}};g.v(ySe,Fi);g.h=ySe.prototype; g.h.init=function(p,C,V){Fi.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.kr))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.FG(g.Xn(H[0].url))&&(H[0].url=N.profilePicture,g.FG(g.Xn(N.profilePicture))&&F6e("VideoPlayer",239976093,"Expected non-empty profile picture."));H=C.backgroundImage.thumbnail.thumbnails;H!=null&&H.length>0&&g.FG(g.Xn(H[0].url))&&(H[0].url=N.b8());H=C.headline;H!=null&&g.FG(g.Xn(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.Y_.init(lq("ad-image"),C.backgroundImage,V);N=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.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.UY.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.p9.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 zB(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,N);g.R(this,this.actionButton);this.actionButton.u_(this.UY); this.actionButton.init(lq("button"),g.n(C.actionButton,g.kr),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.hL,this);this.S.U(this.b_,"click",this.hL,this);!this.api.K().G("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.K().C||this.S.U(this.Sa,"click",this.hL,this);this.T=this.B5?new y_(this.api,p):new qN(p);g.R(this,this.T);if(C.skipButton){(p= g.n(C.skipButton,q1y))&&this.T&&(this.skipButton=new D7(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,this.T,this.SR),g.R(this,this.skipButton),this.skipButton.u_(this.element),this.skipButton.init(lq("skip-button"),p,V));V=this.api.G("disable_ad_preview_for_instream_ads");if(p=C.adBadgeRenderer)if(p=g.n(p,yf0))N=new ft(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,!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,AM))V=new j2(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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,od))&&this.T&&(this.C=new a0(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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,IvG)&&this.T&& (V=new OQu(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,this.T),g.R(this,V),V.u_(this.element),V.init(lq("timed-pie-countdown"),g.n(C,IvG),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(){qwY(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.C&&this.C.show();Fi.prototype.show.call(this)}; g.h.hide=function(){qwY(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.C&&this.C.hide();Fi.prototype.hide.call(this)}; g.h.hL=function(){this.navigationEndpoint&&(this.layoutId?this.KS.executeCommand(this.navigationEndpoint,this.layoutId):g.nm(Error("Missing layoutId for ad action interstitial.")))};var kZL={iconType:"CLOSE"},ZO=new g.Sg(320,63);g.v(ozX,Fi);g.h=ozX.prototype; g.h.init=function(p,C,V){Fi.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,Ucf)?(this.W=g.Ce("ytp-ad-overlay-ad-info-button-container",this.V.element),xus(this,C),p=zAH(this,g.n(p,Ucf))):g.n(p,fvf)?(this.W=g.Ce("ytp-ad-overlay-ad-info-button-container",this.C.element),xus(this,C),p=RAy(this,g.n(p,fvf))):g.n(p,O0f)?(this.W= g.Ce("ytp-ad-overlay-ad-info-button-container",this.T.element),xus(this,C),p=nzV(this,g.n(p,O0f))):(g.nm(Error("InvideoOverlayAdRenderer content could not be initialized.")),p=!1);p&&(this.show(),eAv(this,!0))}; g.h.clear=function(){eAv(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.LgY=function(){this.UY&&(this.layoutId?this.KS.executeCommand(this.UY,this.layoutId):g.nm(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.h.Js=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.KS.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.Cxn=function(){this.Y_||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.h.gD=function(){this.Y_||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.gD("invideo-overlay")}; g.h.AQk=function(p){p.target===this.W&&g.Ce("ytp-ad-button",this.Qn.element).click()};g.v(PEY,HE);g.h=PEY.prototype;g.h.init=function(p,C,V){HE.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(){wAs(this,!1);HE.prototype.hide.call(this);this.C.hide();this.messageText.hide();dk(this)}; g.h.show=function(){wAs(this,!0);HE.prototype.show.call(this);XK(this);this.C.show();this.messageText.show()}; g.h.D_=function(){this.hide()}; g.h.HI=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&&(NN(this.messageText,{TIME_REMAINING:String(p)}),this.W=p)))}};g.v($ue,Fi);g.h=$ue.prototype; g.h.init=function(p,C,V){Fi.prototype.init.call(this,p,C,{});C.image&&C.image.thumbnail?C.headline?C.description?C.actionButton&&g.n(C.actionButton,g.kr)?(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 zB(this.api,this.layoutId,this.interactionLoggingClientData,this.KS, p),C.backgroundColor&&g.Sh(this.element,"background-color",g.gk(C.backgroundColor)),g.R(this,this.actionButton),this.actionButton.u_(this.W),this.actionButton.init(lq("button"),g.n(C.actionButton,g.kr),V),C=g.Mz(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.Sh(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.Sh(this.T,"width",Math.round((1-C-.04)*100)+"%"),this.api.q$()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.bB.bind(this)),this.api.addEventListener("resize",this.aK.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(){LX1(!0);this.actionButton&&this.actionButton.show();Fi.prototype.show.call(this)}; g.h.hide=function(){LX1(!1);this.actionButton&&this.actionButton.hide();Fi.prototype.hide.call(this)}; g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.bB.bind(this));this.api.removeEventListener("resize",this.aK.bind(this));this.hide()}; g.h.onClick=function(p){Fi.prototype.onClick.call(this,p);this.actionButton&&g.lK(this.actionButton.element,p.target)&&this.api.pauseVideo()}; g.h.bB=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.aK=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.Sh(this.C.element,"font-size",p.width/40+"px")};g.v(Um,Fi); Um.prototype.init=function(p,C,V){Fi.prototype.init.call(this,p,C,V);C.toggledLoggingParams&&(this.toggledLoggingParams=C.toggledLoggingParams);C.answer&&g.n(C.answer,g.kr)?(p=new zB(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,["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.kr),V),p.show()):C.answer&&g.n(C.answer,vD)&&(this.T=new Wa(this.api,this.layoutId,this.interactionLoggingClientData,this.KS, ["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.o1=function(p){this.layoutId?QV(this.KS,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){Fi.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.v(gzX,Fi);gzX.prototype.init=function(p,C,V){Fi.prototype.init.call(this,p,C,V);C.answer&&g.n(C.answer,vD)&&(this.button=new Wa(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,["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.v(fD,zB);fD.prototype.init=function(p,C,V){zB.prototype.init.call(this,p,C,V);p=!1;C.text&&(C=g.Kq(C.text),p=!g.FG(C));p||g.eG(Error("No submit text was present in the renderer."))}; fD.prototype.onClick=function(p){this.publish("l");zB.prototype.onClick.call(this,p)};g.v(Om,Fi); Om.prototype.init=function(p,C,V){Fi.prototype.init.call(this,p,C,V);if(p=C.skipOrPreviewRenderer)g.n(p,cS)?(p=g.n(p,cS),V=new Z7(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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,od)&&(p=g.n(p,od),V=new a0(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,this.S,!1),V.u_(this.skipOrPreview),V.init(lq("ad-preview"),p,this.macros),Eu(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.kr)&&(p=g.n(p,g.kr),V=new fD(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),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,yf0);var N=new ft(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,!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,Dcv),N=new A7(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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,AM)&&(V=new j2(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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,AM),this.macros));this.show()}; Om.prototype.clear=function(){this.hide()};g.v(y0,Fi);y0.prototype.init=function(p,C,V){Fi.prototype.init.call(this,p,C,V);GZ9(this)}; y0.prototype.show=function(){this.V=Date.now();Fi.prototype.show.call(this)}; y0.prototype.iR=function(){};g.v(pme,y0);g.h=pme.prototype;g.h.init=function(p,C,V){var N=this;y0.prototype.init.call(this,p,C,V);C.questionText&&WXe(this,C.questionText);C.answers&&C.answers.forEach(function(H,X){g.n(H,JJ)&&QmX(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,Z01))&&Cyv(this,p,V);C.surveyAdQuestionCommon&&Bas(this,C.surveyAdQuestionCommon);C.submitEndpoints&&(this.submitEndpoints=C.submitEndpoints);this.U(this.element,"change",this.onChange);this.show()}; g.h.iR=function(){jGv(this,!1);this.S.C.subscribe("l",this.fda,this)}; g.h.onChange=function(p){p.target===this.noneOfTheAbove.button.T?VRL(this):this.W.has(p.target)&&(this.noneOfTheAbove.button.toggleButton(!1),jGv(this,!0))}; g.h.fda=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.zh(H);H.loggingUrls=H.loggingUrls.map(function(X){X.baseUrl&&(X.baseUrl=GD(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?QV(this.KS,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.v(qE,y0);qE.prototype.init=function(p,C,V){var N=this;y0.prototype.init.call(this,p,C,V);C.questionText&&WXe(this,C.questionText);C.answers&&C.answers.forEach(function(H,X){g.n(H,JJ)&&QmX(N,g.n(H,JJ),V,X)}); C.surveyAdQuestionCommon?Bas(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.v(IQ,Fi);IQ.prototype.init=function(p,C,V){var N=this;Fi.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)&&dHL(this,0)}else(C.questions||[]).forEach(function(a){g.n(a,Id)?HiS(N,g.n(a,Id),V):g.n(a,qB)&&XmY(N,g.n(a,qB),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)dHL(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.v(bM,Fi); bM.prototype.init=function(p,C,V){var N=this;Fi.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.kr))if(C.brandImage)if(C.backgroundImage&&g.n(C.backgroundImage,xr)&&g.n(C.backgroundImage,xr).landscape){this.layoutId||g.nm(Error("Missing layoutId for survey interstitial."));ii9(this.interstitial,g.n(C.backgroundImage, xr).landscape);ii9(this.logoImage,C.brandImage);g.t2(this.text,g.Kq(C.text));var H=["ytp-ad-survey-interstitial-action-button"];H.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new zB(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,H);g.R(this,this.actionButton);this.actionButton.u_(this.C);this.actionButton.init(lq("button"),g.n(C.ctaButton,g.kr),V);this.actionButton.show();this.T=new y_(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(){hlQ(!0);Fi.prototype.show.call(this)}; bM.prototype.hide=function(){hlQ(!1);Fi.prototype.hide.call(this)};g.v(AF,HE);g.h=AF.prototype; g.h.init=function(p,C){HE.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.UM();var V;if((V=C.previewText)==null||!V.text||g.FG(C.previewText.text))g.nm(Error("No text is returned for AdPreview."));else{this.W=C.previewText;C.previewText.isTemplated||g.t2(this.V,C.previewText.text);var N; if(((N=this.api.getVideoData(1))==null?0:N.Xx)&&C.previewImage){var H,X;(p=((X=qg(((H=C.previewImage)==null?void 0:H.sources)||[],52,!1))==null?void 0:X.url)||"")&&p.length?(this.previewImage=new g.va({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(){dk(this);HE.prototype.hide.call(this)}; g.h.show=function(){XK(this);HE.prototype.show.call(this)}; g.h.D_=function(){this.hide()}; g.h.HI=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.t2(this.V,p);this.S=C}}}};g.v(oQ,Fi); oQ.prototype.init=function(p,C){Fi.prototype.init.call(this,p,C,{});var V,N;if((p=((N=qg(((V=C.image)==null?void 0:V.sources)||[],sGQ(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){Fi.prototype.onClick.call(this,p)};g.v(ky,Fi); ky.prototype.init=function(p,C){Fi.prototype.init.call(this,p,C,{});var V;p=(V=C.label)==null?void 0:V.content;if((V=p!=null&&!g.FG(p))||C.iconImage){V&&(this.buttonText=new g.va({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=Y0(N,!1,this.C);d!=null&&(this.buttonIcon=new g.va({L:"span",B:"ytp-ad-button-vm__icon",j:[d]}),g.R(this,this.buttonIcon),C.iconLeading?(aN(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;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.T?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(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){Fi.prototype.onClick.call(this,p)};g.v(axL,HE);g.h=axL.prototype; g.h.init=function(p,C){HE.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"),aN(this.rV("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(p=g.n(C.avatar,Jvv)){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 kU(V)),this.description.init(lq("ad-simple-attributed-string"),new kU(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.q$()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.nE.bind(this)),XK(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.HI=function(){if(this.T){var p=this.T.getProgressState();p&&p.current&&1E3*p.current>=this.startMilliseconds&&(dk(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.h.D_=function(){this.clear()}; g.h.onClick=function(p){this.api.pauseVideo();HE.prototype.onClick.call(this,p)}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.nE.bind(this))}; g.h.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();HE.prototype.show.call(this)}; g.h.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();HE.prototype.hide.call(this)}; g.h.nE=function(p){p==="hidden"?this.show():this.hide()};g.v(Yy,Fi);g.h=Yy.prototype; g.h.init=function(p,C){Fi.prototype.init.call(this,p,C,{});if(!C.label||g.FG(C.label))g.nm(Error("No label is returned for SkipAdButton."));else if(g.t2(this.S,C.label),p=Y0({iconType:"SKIP_NEXT_NEW"}),p==null)g.nm(Error("Unable to retrieve icon for SkipAdButton"));else if(this.V=new g.va({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.Xn(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;Nqu(p,{contentCpn:(V=(C=this.api.getVideoData(1))==null?void 0:C.clientPlaybackNonce)!=null?V:""})===0?this.api.Jk("onAbnormalityDetected"):(Fi.prototype.onClick.call(this,p),this.api.Jk("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.h.clear=function(){this.T.reset();this.hide()}; g.h.hide=function(){Fi.prototype.hide.call(this)}; g.h.show=function(){this.T.start();Fi.prototype.show.call(this);this.C&&this.api.K().experiments.OY("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.v(EMX,HE);g.h=EMX.prototype; g.h.init=function(p,C){HE.prototype.init.call(this,p,C,{});p=g.n(C.preskipState,zEp);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,n21))?(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(){XK(this);HE.prototype.show.call(this)}; g.h.hide=function(){!this.isSkippable&&this.C?this.C.hide():this.V&&this.V.hide();dk(this);HE.prototype.hide.call(this)}; g.h.clear=function(){var p;(p=this.C)==null||p.clear();this.V&&this.V.clear();dk(this);HE.prototype.hide.call(this)}; g.h.D_=function(){this.hide()}; g.h.HI=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.v(zS,Fi); zS.prototype.init=function(p,C){Fi.prototype.init.call(this,p,C,{});if(C.label){var V;((V=C.label)==null?0:V.content)&&!g.FG(C.label.content)&&(this.linkText=new g.va({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.FG(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){Fi.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType,this.layoutId)}; zS.prototype.clear=function(){this.hide()};g.v(RQ,Fi); RQ.prototype.init=function(p,C,V,N){Fi.prototype.init.call(this,p,C,{});if(C.skipOrPreview){V=C.skipOrPreview;p=g.n(V,eEc);V=g.n(V,zEp);var H,X=this.api.K().G("clean_player_style_fix_on_web")&&((H=this.api.getVideoData())==null?void 0:H.isDaiEnabled());p?(this.KT=new EMX(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,this.C),g.R(this,this.KT),this.KT.u_(this.Z),this.KT.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.KS,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,eEc))var d=H.skipOffsetMilliseconds}C.playerAdCard&&(H=g.n(C.playerAdCard,REf))&&(this.playerAdCard=new axL(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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 YU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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,o28))&&(this.adPodIndex=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,g.n(C.skipOrPreview,eEc)===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,AM))&&(this.adInfoButton=new j2(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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,Dcv))&&(this.adDurationRemaining=new A7(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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,w5r))&&(this.visitAdvertiserLink=new zS(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),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,Afr))&&(this.adDisclosureBanner=new R0(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),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 PE(this.api,this.C,d,H),g.R(this,this.W),g.gb(this.api,this.W.element,4));this.show()}; RQ.prototype.clear=function(){this.hide()};g.v(lxL,Fi);g.h=lxL.prototype; g.h.init=function(p,C){Fi.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 kU(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 xU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),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 kU(p))),C.descriptions.length>1&&(C=C.descriptions[1])&&(this.C=new xU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),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 kU(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){Fi.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();Fi.prototype.hide.call(this)}; g.h.show=function(){Fi.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.v(nD,Fi);nD.prototype.init=function(p,C){Fi.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,Y1y)){var V=new lxL(this.api,this.layoutId,this.interactionLoggingClientData,this.KS);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();Fi.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();Fi.prototype.hide.call(this)};g.v(eC,HE);g.h=eC.prototype;g.h.init=function(p,C,V,N,H){H=H===void 0?0:H;HE.prototype.init.call(this,p,C,V,N);this.playerProgressOffsetMs=H;XK(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.S7.bind(this));this.api.addEventListener("resize",this.CE.bind(this));this.api.q$()?(this.C=!0,this.api.lL(!0),this.show()):this.hide()}; g.h.HI=function(){if(this.T){var p=this.T.getProgressState();p&&p.current&&!this.C&&1E3*p.current>=this.playerProgressOffsetMs&&(this.C=!0,this.api.lL(!0),this.show())}}; g.h.D_=function(){this.C&&this.api.lL(!1);this.hide()}; g.h.clear=function(){this.api.lL(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.S7.bind(this));this.api.removeEventListener("resize",this.CE.bind(this));dk(this);this.hide()}; g.h.hide=function(){tRV(!1);HE.prototype.hide.call(this)}; g.h.show=function(){tRV(!0);HE.prototype.show.call(this)};g.v(cve,eC);g.h=cve.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,xcp);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.lK(this.adButton.element,p.target)&&this.api.pauseVideo();eC.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.h.CE=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.S7=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.v(Pq,Fi); Pq.prototype.init=function(p,C){Fi.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 xU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS);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 kU(V));this.T.push(H)}this.show()}}; Pq.prototype.show=function(){this.T.forEach(function(p){p.show()}); Fi.prototype.show.call(this)}; Pq.prototype.clear=function(){this.hide()}; Pq.prototype.hide=function(){this.T.forEach(function(p){p.hide()}); Fi.prototype.hide.call(this)};g.v(wv,Fi);wv.prototype.init=function(p,C){Fi.prototype.init.call(this,p,C,{});var V,N;(p=((N=qg(((V=C.image)==null?void 0:V.sources)||[]))==null?void 0:N.url)||"")&&p.length?(V=this.rV("ytp-image-background-image"),g.Sh(V,"backgroundImage","url("+p+")"),C.blurLevel!==void 0&&g.Sh(V,"filter","blur("+C.blurLevel+"px)"),C.gradient!==void 0&&(C=new g.w({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.v(Tju,HE);g.h=Tju.prototype;g.h.init=function(p,C){HE.prototype.init.call(this,p,C,{});g.Sh(this.V,"stroke-dasharray","0 "+this.C);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){dk(this);HE.prototype.hide.call(this)}; g.h.show=function(){XK(this);HE.prototype.show.call(this)}; g.h.D_=function(){this.hide()}; g.h.HI=function(){if(this.T){var p=this.T.getProgressState();p!=null&&p.current!=null&&g.Sh(this.V,"stroke-dasharray",p.current/p.seekableEnd*this.C+" "+this.C)}};g.v($y,Fi); $y.prototype.init=function(p,C){Fi.prototype.init.call(this,p,C,{});if(mHj(C)){this.adAvatar=new oQ(this.api,this.layoutId,this.interactionLoggingClientData,this.KS);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,Jvv));this.headline=new xU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS);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 kU(C.headline));if(p=g.n(C.adDetailsLine,b0P))this.detailsLine=new Pq(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),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.KS,!0);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 YU(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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 j2(this.api,this.layoutId,this.interactionLoggingClientData,this.KS,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,AM),this.macros);if(p=g.n(C.skipAdButton,n21))this.skipAdButton=new Yy(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),g.R(this,this.skipAdButton),this.skipAdButton.u_(this.element),this.skipAdButton.init(lq("skip-button"),p);this.C=new qN(C.durationMilliseconds);g.R(this,this.C);if(p=g.n(C.countdownViewModel,PPv))this.T=new Tju(this.api, this.layoutId,this.interactionLoggingClientData,this.KS,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,kpc))this.imageBackground=new wv(this.api,this.layoutId,this.interactionLoggingClientData,this.KS),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(){MRY(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Fi.prototype.show.call(this)}; $y.prototype.hide=function(){MRY(!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();Fi.prototype.hide.call(this)};var amY="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.v(Wq,re); Wq.prototype.S=function(p){var C=p.id,V=p.content,N=V.componentType;if(!amY.includes(N))switch(p.actionType){case 1:p=this.api;var H=this.KS,X=V.layoutId,d=V.interactionLoggingClientData,a=V instanceof Gl?V.B5:!1,E=V instanceof Gl||V instanceof Ou?V.SR:!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 ozX(p,X,d,H);break;case "player-overlay":p=new wk(p,X,d,H,new hD(p),E);break;case "player-overlay-layout":p=new RQ(p,X,d,H,new hD(p));break;case "survey":p= new IQ(p,X,d,H);break;case "ad-action-interstitial":p=new ySe(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 PEY(p,X,d,H,new hD(p,1));break;case "player-underlay":p=new $ue(p,X,d,H);break;case "display-underlay-text-grid-cards":p=new cve(p,X,d,H,new hD(p));break;default:p=null}if(!p){g.eG(Error("No UI component returned from ComponentFactory for type: "+N));break}g.Ia(this.C,C)?g.eG(Error("Ad UI component already registered: "+ C)):this.C[C]=p;p.bind(V);V instanceof rn?this.V?this.V.append(p.Tg):g.eG(Error("Underlay view was not created but UnderlayRenderer was created")):this.W.append(p.Tg);break;case 2:C=vMy(this,p);if(C==null)break;C.bind(V);break;case 3:V=vMy(this,p),V!=null&&(g.hf(V),g.Ia(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={};re.prototype.CS.call(this)};g.v(F3V,g.Ar);g.h=F3V.prototype;g.h.create=function(){try{SYS(this),this.load(),this.created=!0,SYS(this)}catch(p){vE(p instanceof Error?p:String(p))}}; g.h.load=function(){try{u$1(this)}finally{pD(DO(this.T).xb)&&this.player.Ap("ad",1)}}; g.h.destroy=function(){var p=this.player.getVideoData(1);this.T.T.OA.H_(p&&p.clientPlaybackNonce||"");this.unload();this.created=!1}; g.h.unload=function(){g.Ar.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(C){vE(C instanceof Error?C:String(C))}if(this.C!=null){var p=this.C;this.C=null;p.dispose()}this.V.reset()}; g.h.Om=function(){return!1}; g.h.getAdState=function(){return-1}; g.h.getOptions=function(){return Object.values(stP)}; g.h.O8=function(p,C){C=C===void 0?{}:C;switch(p){case "replaceUrlMacros":return p=C,p.url?(C=nsV(this.player),Object.assign(C,p.RT$),p=g.nX(p.url,C)):p=null,p;case "onAboutThisAdPopupClosed":this.WK(C);break;case "executeCommand":p=C;p.command&&p.layoutId&&this.executeCommand(p);break;default:return null}}; g.h.Et=function(p){var C;return!((C=this.T.T.UO)==null||!C.get().Et(p))}; g.h.WK=function(p){p.isMuted&&tF9(DO(this.T).WI,DO(this.T).Q6,p.layoutId);this.Xn&&this.Xn.WK()}; g.h.executeCommand=function(p){DO(this.T).KS.executeCommand(p.command,p.layoutId)};g.YH("yt.player.Application.create",g.SM.create);g.YH("yt.player.Application.createAlternate",g.SM.create);wdj(xG(),hvY);var EVp=g.zV("ytcsi.tick");EVp&&EVp("pe");g.bi("ad",F3V);g.v(g.Bq,g.z);g.Bq.prototype.start=function(p,C,V){this.config={from:p,XC: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.XC,N=p.duration;p=p.startTime;var H=(0,g.Ip)()-p;p=this.T;N=pfu(p,H/N);if(N==0)p=p.D;else if(N==1)p=p.J;else{H=m9(p.D,p.W,N);var X=m9(p.W,p.Y,N);p=m9(p.Y,p.J,N);H=m9(H,X,N);X=m9(X,p,N);p=m9(H,X,N)}p=g.M$(p,0,1);this.callback(C+(V-C)*p);p<1&&this.delay.start()}};g.v(g.GS,g.w);g.h=g.GS.prototype;g.h.hasSuggestions=function(){return this.suggestionData.length>0}; g.h.CU=function(){this.C&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.h.show=function(){g.w.prototype.show.call(this);qYy(this)}; g.h.An=function(){this.C&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.h.Jo=function(){this.OR(this.api.dV().getPlayerSize())}; g.h.OR=function(p){var C=this.api.isEmbedsShortsMode()?.5625:16/9,V=this.api.Rd();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.g6?!1:p.S;this.suggestionData=C.suggestions?g.MZ(C.suggestions,function(V){return V&&!V.playlistId}):[]; bia(this);C.g6?this.title.update({title:g.FY("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.M$(p,this.containerWidth-this.suggestionData.length*(this.S+8),0);this.D.start(this.scrollPosition,p,1E3);this.scrollPosition=p;g.pM(this);qYy(this)};})(_yt_player);