var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var CY,C99,juy,sS,Va9,HY9,dsL,XvX,tQ,iYv,cv,TV,Ms,hXS,suu,ajX,u9,Zj,EHe,lje,tau,cQe,fY,yL,qs,Iu,b9,AQ,T1v,ou,Ru,nY,JQj,msv,vHV,GV,p0,Fye,SSe,dY,aF,E1,lP,DsL,ueu,ZYu,Usy,fje,OYL,yQj,qSS,c5,IjQ,Mc,bY1,xse,Jf,YSV,zXe,v5,RX1,Dv,Zv,IF,bP,Af,oF,nH9,eXv,k2,Y2,x2,P9a,wve,$su,LyQ,zp,gHY,n0,ey,P5,WyL,QuL,$2,B1H,GVs,jk,p5S,ir,CPS,jFX,NL,Vya,NYH,H0Q,ML,X5e,i0V,tyH,Fv,lvS,sFX,TYQ,JfV,v2u,K6,DV,ZV,f6,Uv,S1X,Dcj,uGV,Ov,yR,qL,If,Z0S,AB,of,kT,fvQ,Rf,n6,ek,O0Q,wo,go,b09,ro,Gt,jn,Afy,C_,o2L,kps,Vx,By,N1, HT,xcV,X_,dw,zEV,ig,sL,aO,n2S,cT,eEs,PPj,w5y,REQ,tc,lg,EL,$c9,Lrj,g2L,Wre,QFS,Jc,mK,vT,rf9,jfS,pyY,DB,VkS,CrV,BYs,GpV,H6Y,q1,OL,dLQ,Xya,i6e,h69,IO,sfH,aVX,Ac,oO,xK,ETL,kK,RO,z9,n_,gw,en,ww,$K,cBs,Qx,ToQ,rw,BT,jq,VG,Nm,G9,Cy,py,dC,tkj,iB,MkX,jy,hP,sl,PT,L_,at,vTv,lB,tP,XG,c4,TA,Mm,JP,mM,v4,Fa,FqX,Sq,Svv,Ky,Kq1,Zm,Dm,Ul,fy,Ol,yG,qm,DLV,Z6L,bB,ULH,fVX,AP,ot,YV,yBL,qvu,ny,oTL,YvY,IVS,xLY,kta,ABV,b6v,z6S,eq,R69,$V,Ly,e6s,gC,wye,W4,QG,rC,$Lu,B4,Lqu,GA,gTu,Wq9,pH,Qfj,CH,jl,NX,Hn,BoY,i0,CgY,rB1,sQ,EQ,l0, Vns,tb,TN,NwL,XTH,d1H,MX,Jb,ma,vn,FH,Sl,KH,hjY,sOX,aBy,EKu,Du,lB1,tn1,u0,Zu,UQ,fH,ccv,m1a,vKV,SLL,FKu,KKY,u_Y,Ic,b0,Ab,oc,ke,Ye,zN,O_1,nH,Pn,wV,$e,LH,qLS,Wn,Q5,IBs,rV,Bn,b_u,pG,jg,VW,HG,Xn,ic,h9,nKs,ejS,Pg9,wT9,s_,aa,$1u,LKa,gKY,E_,lc,t9,cG,Th,vG,Sg,uc,fG,WKS,QO9,oa,rcH,PG,gI,p4Q,Hya,VqX,dme,rI,BG,Vf,st9,EVV,am1,He,dW,lma,XQ,Eo,QW,cPV,tqY,Mq,TO,WG,J2,mS,ve,TC1,FQ,JPX,Zz,mma,Uo,fe,Oo,yf,vVH,A2,FMS,IN,SlX,qq,bK,KMS,Dmu,uaa,Yq,Zyy,Um9,Oyv,fm9,xq,zO,RN,yPL,qle,Ims,ne,byv,eu,Mne,Tws,Pe,wW,Le,gW,kA1,rW, Be,pJ,xmH,YlS,CJ,PBy,Xu,Rvv,evY,N7,VU,s8,ab,w41,t8,$mj,cX,TD,LMS,WMv,vX,rPe,SS,KJ,BCj,GAy,ZC,U8,fJ,Vla,HHV,yU,Xnu,O8,scL,DC,C09,EeQ,hJY,dXX,iHQ,luj,aua,q7,NVj,A8,cbv,TVe,Mle,Jb9,mXV,Y7,ves,Rb,FaX,DXH,uHX,nJ,eS,PX,gA,UXv,WX,QU,rA,fuH,OHS,pN,ybS,CN,jE,bHQ,oeY,xXu,kNL,YQL,Nj,dU,aX,l3,t$,ci,Tq,Mj,ney,eJe,J$,P0Y,m0,vi,E$,Fr,SE,KN,Dt,H5,u3,wnH,U$,fN,gee,O$,yO,qj,WaS,QcV,rbs,BVa,IX,b3,A$,zq,jaj,Cce,Vgs,NIL,HGY,RX,XGa,GNe,nN,d$y,iGL,eE,saQ,aHa,E5a,lHe,tge,wU,c9X,TIe,MgX,J9V,F9a,m$y,$N,LN,gU,Wi,QO,rU,Bi,Gq, K91,D$1,CE,pE,jZ,una,Vh,ZGv,U$a,fHV,OG9,N_,Xf,IHQ,H2,bGu,dh,A9y,ip,hE,sV,as,EV,lp,Y_1,o5S,Ti,x$v,M_,khy,c2,tE,mn,RQa,Ff,v2,Zq,UV,OV,Pc1,fE,Is,wGj,bp,n5L,g5e,W9v,Qa9,k3,x3,Y3,r9y,zi,nE,eZ,P2,BIL,wh,$3,LE,Ghs,pea,gh,CKa,Hea,NWe,XeL,dqY,ies,jNL,sNv,W2,Qh,rh,azu,Gi,B2,Eqe,lzV,tuj,VA,c2a,Nk,Hs,TWH,XL,J2S,dT,Muu,mqH,vqY,FSH,iZ,hU,sh,ao,Eh,lZ,tU,Soy,cs,Ty,Mk,KSj,uQe,ZeS,mg,FL,vs,Kh,De,uZ,fzu,Oes,Ze,Uh,fh,qoH,IzV,oqj,be1,kOs,RCa,Oh,zCS,xqQ,yA,qk,nqX,Io,eCa,bZ,wea,PKH,$qa,LSj,xc,Yc,gqv,WSu,QNu,zy,Ro,r29,nh, BWL,GOV,Cms,HJv,e1,XXe,d79,iJu,hNY,sb1,$c,aCL,E7u,lCa,Gy,Bs,rT,tSH,c8y,TAj,p2,C2,jh,J8L,d9,tx,cf,Tu,MK,Jx,v7a,Fo9,S8s,mG,Fj,Sh,Zo,UE,yT,D7s,ZJs,uuV,U7y,fCS,ko,OJH,y8S,xo,q8u,ICe,bJL,A8a,n2,zu,eh,Pf,w9,o7e,kDs,x7Y,$o,L2,Y8H,g9,zNV,RNV,n7y,Wf,eNY,QT,r9,Pma,wXX,$7s,Loy,g79,Woe,Bf,Gu,po,jr,BAa,VF,NZ,GDV,r8Y,Co,piv,Hp,XU,dx,sH,hT,C31,jXu,VEH,a1,HNv,EH,dj1,iN9,hZ1,sXS,atY,EN9,ltV,tE9,cp,T2,MZ,TUa,c$Y,MES,J$a,mO,mjY,vp,vNY,F0X,FU,Sr,Ko,S$e,DA,uf,K01,ZA,UH,fo,OH,yF,qZ,I1,bf,DjH,urL,ZNa,UjS,AT,ftv,y$L,ONa, kC,xC,Its,q$H,oNs,Y$u,xjL,YC,zZL,RZe,nNH,P3j,eZY,wiH,z2,$jv,L0Q,no,gN1,W0j,QXy,r$9,er,BU1,Pp,GqX,wx,$C,CpX,Lo,jsv,gx,Wp,VZQ,Nhj,QF,Bp,X21,G2,HEL,d_X,iEu,hpy,aqH,pX,E3Y,Vr,NP,tZX,cE1,JEV,m_Q,Ho,Xl,dE,iu,hC,sM,aq,EM,lu,tC,co,To,MP,KnY,SVj,D_S,ZEj,ufX,fqS,Fnv,U_9,v3Q,JC,mV,yEH,qVv,IqL,KX,DK,uu,vo,AEs,Iq,OE1,kiS,x_u,o3V,bu,AC,oq,kI,YVy,bEj,zpQ,xI,Rpa,n3H,epv,Ppj,w2H,g3a,WnS,Qsy,rEy,Bhe,GiX,CZe,joQ,zo,NTY,Rq,YI,Xss,HhS,huS,aee,EcX,ley,t1a,TT1,wE,$I,M1V,cUV,mke,FgV,Sha,Dkv,Oh1,Qr,yUV,Wo,Bo,qhy,Go,Cg,jJ, IeS,bhj,AUH,hk,oca,kya,Jk,xkY,zu9,ml,RuY,ncL,LgS,euH,Kg,DJ,uI,Ud,fg,BTY,Od,y2,q8,pfu,Ak,C4S,j9u,oL,N9u,xF,YF,zz,RL,H21,ng,PF,w0,$F,Lg,Xfy,WF,Q2,r0,BF,Gz,pd,dKV,i2e,hUs,s9u,aoa,Eos,Cd,loL,ia,thX,cxX,T9S,hp,a6,Eg,la,TH,Mv,Jp,JxV,FC,S7,Kd,mKX,voL,DD,FG9,SES,ZD,yxe,qE9,IoV,Ug,b2Q,Axa,xKj,Og,zUe,YEL,qv,no1,eUa,P4X,ba,Ap,wfH,o6,kQ,xQ,YQ,zH,R6,nd,e7,P6,wf,gf,W6,QJ,rf,$KH,LGj,goe,GH,CO,WGQ,Hd,X5,dm,i1,hw,aK,Ek,Guv,l1,tw,cd,Cfj,ppy,Q9V,Jw,MU,Hoy,m1,fO,u1,Ok,yg,dZj,s11,IK,lAY,aAS,EC9,cTH,vCy,TxY,JT9,mZV,Aw, b1,FOY,kD,xD,YD,SHs,wm,KOv,$D,LO,Wd,DZu,rm,Bd,uUs,GQ,pK,UZu,Vc,Hw,XW,d8,iO,hm,sB,a_,EB,lO,Oou,tm,M5,TW,qHj,oCH,boe,ATv,k2S,xZL,zzQ,RzS,YHs,ezS,vw,FW,D3,PfH,wpj,KK,uO,LOa,gCQ,Bxa,rTL,OB,yc,q5,I_,bO,o_,pos,CuS,jqv,ez,Pw,V0a,NE1,HXH,Ww,Qc,r8,XoV,dP9,hFL,aKa,C3,EIS,Np,j_,dq,iN,s2,lK1,Mp,J1,mW,vW,S_,K3,uN,JCe,mPH,U2,vIV,FVa,O2,SMy,KVL,yl,qp,DPj,ulu,UPv,op,OXH,yCe,bN,qMX,IKH,ACa,bXY,z4,fKs,ko1,xPH,$t,PW,YM9,zFQ,L3,gq,RFX,nIa,rq,eFa,Puu,wo1,$P1,jV,LVe,gIH,WV1,QqX,rCy,BEV,GoX,pFQ,Ne,CIv,XD,VJs,N0y,Hgv,XFY, d8Q,dy,lR,hoV,EFV,tN,lJH,ckL,igY,T0a,MJs,Jku,sLV,aJS,iR,hN,EX,tJy,ax,sX,m8Y,vFX,Fl9,Sd1,KlQ,D8H,OgH,uV1,uR,OX,Ix,IJa,oFv,AkX,qe,ox,kzQ,Yp,x8L,zoa,PC,YdS,WlY,Roy,gFj,gy,QLQ,Gze,WC,L5,rkL,B0L,p6X,ry,j69,V7y,NfQ,Hd9,X6X,dvs,idY,Caa,s6H,aDa,EQX,lD9,t7y,Tfu,C1,M7Y,jF,Vq,NM,Jpa,mvL,d$,iV,F2v,vQu,h3,SgH,DvQ,Zd1,uCy,UvH,ypV,fDS,vl,K1,SF,qgS,F3,D9,uV,Z9,IDe,bdL,f1,oQH,qM,yq,bV,A3,oh,kH1,kJ,YJ,xva,Rh,eF,Pl,YgL,ziu,Ria,nQS,w$,L1,eiY,g$,Wl,Qq,w6Y,r$,Bl,$vj,pm,Vm,jG,Cm,NY,HQ,W2S,C1v,VeS,pdS,GHY,jKj,iz,aW,HO1, NmY,Tj,MY,gQS,tev,Km,lrH,Mea,EDL,d7,DE,cQ,FI,cwv,lz,rpY,Q6y,BfH,sK,ar9,fm,DUQ,K1a,OK,ZOj,UUV,fru,qY,OOY,ywy,qk1,bOu,Awa,AG,kQS,oW,xUL,Yky,RrQ,nDL,xG,erj,wdj,YG,$UX,zj,RW,lN,rwu,j_a,Lm,N8v,d5S,WQ,h8X,s_H,a3S,ElQ,Xi,l3H,Ny,bgs,jp,Ha,VD,Qm,tO,lq,My,JO,va,cmV,Fi,Kq,DU,T8e,MzQ,Uy,m5L,vl1,F_a,SBH,K_H,D5a,uW1,ZKv,U5v,f3S,qy,OKY,IS,AO,yms,qBQ,I31,oS,bKv,AmY,zB,RS,nq,olS,ep,kWj,we,YBs,x51,Lq,ge,Wa,QD,z8H,re,Ba,R8u,nlj,GB,pt,$51,e8S,wwy,POY,Ct,j2,V_,L_s,gle,W_u,NN,rmX,pWX,GWV,HE,XK,dk,i$,h7,Eu,l$,t7,cE,T6, MN,J7,CN9,jpQ,V_H,mA,vE,FK,S2,D7,Z7,XWL,H3u,ft,dpL,Ou,y_,qN,I0,b$,kU,xU,YU,z6,R0,nt,e2,PE,wk,$U,Lt,spa,WE,rk,a1a,BE,l1H,t_e,c1u,M_S,mpL,NQ,vtu,XX,Hh,KWa,DpV,u2v,Un,fS,Upv,yQ,qQ,ID,b7,O3X,A0,oD,ki,y1e,xi,f1y,Yi,z0,I1Q,q2u,RD,nS,ei,Ph,$i,A1j,otY,g3,Wh,r3,Bh,k4H,QQ,zVs,RVy,ntH,eVa,PNa,wWL,$p9,pU,G0,Y2y,WW1,CU,r11,Bq1,XA,G4y,V3,NR,pCV,dc,jxy,Nyj,ie,hd,H59,s0,de9,a4,lh1,ahH,i5e,sx1,hkH,le,td,cH,Tk,MR,Jd,mI,FA,cNV,JN9,Df,V1a,ue,mea,Fe9,U0,qR,fU,y3,O0,DeV,Keu,SXS,uD9,I4,Z5u,yNa,be,o4,Ihy,k9,x9,Y9,zk,b5Y, R4,ANu,opa,eL,LU,gc,WH,Q3,rc,BH,Gk,pW,CW,js,Vi,Ng,HJ,k1Q,xe1,Xq,d_,i8,hq,sF,aE,YXX,zka,EF,Tf,ekY,PRV,Mg,Jq,Dk,u8,$ea,fW,qg,Lea,Wej,gpS,QxX,rN9,ByQ,G1y,pls,CVv,VFy,jhX,N$S,dMY,hI9,XlS,b8,Aq,a91,shv,oE,kY,xY,EJX,YY,zf,RE,tF9,c3e,nW,l9s,es,J3Q,PJ,w_,$Y,LW,g_,WJ,Qi,r_,BJ,Gf,pF,CF,jT,Vy,NG,HV,Xw,dg,i6,ha,sr,aw,Er,l6,ta,cV,Tc,MG,Ja,mt,vV,Fw,ST,KF,DS,u6,ZS,Ur,fF,Or,yy,qG,Iw,b6,Aa,ow,k_,x_,Y_,zc,Rw,nF,eT,PV,wg,$_,LF,gg,WV,Qy,rg,BV,Gc,pP,CP,jU,VV,Nz,HU,XJ,iH,h4,vJu,sf,G,a3,dt,Ef,lH,t4,SIv,Tm,DM1,cU,u39,J4, Z1L,vU,Mz,FJ,SU,KP,uH,f9Q,O1Q,y31,qIS,A4,o3,yV,k6,b1V,A3L,oJa,k71,UMS,xMa,Dc,YIj,zIs,Y6,PU,zm,Uf,RIX,Zc,x6,R3,wt,eIY,fP,Of,eU,nP,PVS,$6,LP,gt,WU,wlX,QV,rt,BU,Gm,ps,$MV,Ld9,WdQ,QhS,V6,No,H8,XY,Czv,VGe,Hmy,XQ9,iG,im1,hYv,ty,sWV,c8,Tl,Mo,Jy,mk,v8,aES,lEV,tGY,EGu,cGX,T7V,Dl,uG,Uz,Oz,y6,qo,Ij,MGy,bG,Ay,Zl,xu,Yu,zl,Rj,JG9,ku,vGa,ns,Fhs,SKu,eY,KhH,P8,wn,DY1,uIe,$u,Zme,UYe,Ls,fEy,OmH,yGu,qKS,gn,W8,IEX,bme,Q6,rn,B8,AGe,Gl,pR,CR,j9,oGS,Vu,ND,kjX,HB,xYV,XN,YKL,zYQ,RYS,nGy,eYs,Pzy,dO,wQ1,$YL,LhY,iv,gG1,hn,Whv, sN,QWX,ar,rGH,B7V,EN,MD,Gjj,Jn,mQ,paX,vB,Cqe,FN,S9,KR,jSv,Vpu,uv,Zs,Hqe,UN,Xay,dys,NeH,iqY,h3L,sSS,ON,aUX,yu,qD,Ir,bv,E0e,An,or,xZ,lU1,YZ,zx,tpV,nR,wO,e9,WB,Qu,cOS,rO,BB,Gx,px,TeV,jb,Mpu,Nf,Hc,Xz,LR,dN,iX,hj,JOS,sJ,a7,EJ,myX,lX,tj,cc,Tw,Mf,mu,rN,pV,CV,v0j,Fz1,Sy1,Kzu,XO,j6,dl,iU,DyQ,uiL,Zqy,hK,s3,ak,UyV,fUV,Nr,Oq9,yOv,E3,qyL,lU,tK,TP,Mr,JK,mE,vj,S6,KV,uU,Z5,U3,fV,D5,AOX,o0Q,yP,qr,Ik,kBe,AK,Yys,ok,kL,z3Y,xL,YL,zP,nV,R3V,Rk,e6,Pj,wl,n09,gl,Pqe,way,$yy,Wj,QP,Lzs,g0e,WzV,rl,rOe,bU,QS9,Bey,Bj,GBV,GP,pEu, pr,C$S,j09,V29,Nky,Hta,Cr,dNe,XEV,jI,HS,it9,Xc,hSj,dF,s01,a7Y,ib,EUy,l71,t2e,c71,hV,TkS,sG,J7s,EG,lb,vUj,mN1,FAS,Su9,KAs,cS,TT,MV,DNj,uKQ,Ztv,UNe,f79,Ots,y7Q,quL,I7H,bty,mL,vS,Fc,A79,oUL,SI,Kr,k6S,DQ,ub,UG,xNY,fr,OG,y4,Yue,qV,zSH,Il,RSu,bb,nUS,eSL,AV,P$u,wEX,$NL,ol,kP,xP,YP,zT,LAv,gU1,Rl,nr,eI,WAV,PS,wF,$P,Lr,gF,Q0y,r7e,WS,Q4,BkS,rF,BS,GT,pj,gJj,G6H,phY,Cj,C7X,jDH,ViV,jB,V9,NB,HP,Xg,d2,hM,sT,ad,ET,ln,N3u,HSu,vP,Fg,Xhy,SB,OT,Dd,aa9,T3e,Eiv,Mis,mQy,vi1,J0u,FcV,SnL,Kce,nj,ZSV,faQ,y0e,qnQ,IaH,w2,$r,A0L, oi9,zxy,Lj,RxL,k0L,g2,WP,Q9,r2,ex9,$Q9,P7S,Wc1,j4v,Cea,QDy,VLX,G$,B39,r0H,XHS,h_9,iUY,lfH,s4Y,pa,Ca,JdV,N3,mR1,uAY,DRv,KIj,FIj,ffa,URv,S0S,bUa,Ifa,Ada,hL,xRy,o9L,kkS,v9H,Y0a,z_Y,H0,d6,ydV,OUe,q0V,R_X,Xm,ZU1,e_S,wHu,LIu,WIX,Bcj,Gks,C8V,jEY,N_e,Vsu,hsS,XJQ,HWY,sEv,lkH,tsX,cq9,T_u,v0,UQs,mge,Msu,Ka,SFj,u_,Dgu,uqY,KCj,ZY,ZWy,UA,fa,FY,OA,uXV,yn,q3,IY,UgH,fkS,b_,OWY,yqj,qFs,AL,oY,kx,xx,Yx,zd,RY,na,e8,IkH,bWv,P0,Aqj,w6,NV,$x,La,kfS,oYX,g6,xgv,YFa,W0,Qn,zsj,r6,Rs9,nYu,OSS,FCs,esL,B0,SY,jY,sA,P8S,wJ9,pz,MLV, j8,$gu,Fm,S8,EA,aY,BP,tL,Q41,pJV,l_,tL9,ak1,LCS,NcX,G0L,Cz,vYL,PP,WCj,gYv,niY,rd1,QES,EYj,JL,cd9,TcQ,dRL,g9Q,$RQ,giY,wha,YnX,xQS,bSy,n9S,pH1,dgS,afY,E9V,Td,M3,c0,iWy,PeX,B_u,rqv,j3,VC,NO,HY,XF,h5,Ei,lt,t5,Tv,MO,dr,it,cY,pVX,Gfa,J5,vY,C6a,jwL,VTu,FF,S3,Kz,DF,ut,ZF,Ui,dGY,Oi,fz,iFa,HFv,XVj,hK1,yC,qO,sws,aSX,IH,E_a,E2,tTS,lSQ,TgQ,JaQ,mGv,MT9,v_j,Kt9,Y1,zv,DGy,uwX,RH,nz,ZFY,UGu,fSj,OFu,PY,qrS,AaH,kce,xGL,o_e,gr,QC,WY,Yr1,zKV,$1,RKS,n_L,eKX,P6y,Lz,g_e,Wt1,Qws,LtS,$Gj,wVv,raa,Bg1,ISH,Gcu,bFL,pUL,CHe,HPV, j31,VUy,NtX,iPy,XUy,dzQ,hqe,s3Y,BY,lc1,acu,tUe,E6Q,c4a,TtQ,MUs,J41,mzV,v6y,FiL,SfL,KiL,Dzj,uJ1,ZPL,Gv,fcY,OPH,y4H,Uz9,qfy,IcQ,o6S,Cw,Ni,XP,kmL,dH,i5,he,RqH,eqj,n6e,wUX,GmL,Mi,a2,PHL,zqS,YfQ,xz1,Tr,Ec,c1,So,Kw,jj9,Dy,u5,FP,X8H,VY9,NnQ,doV,Zy,Uc,h4L,Oc,yS,qi,I2,b5,Ae,o2,sjy,al9,kg,xg,zr,ll1,tYQ,Yg,R2,MYX,Jys,nw,mou,wH,vuX,$g,gH,FkL,Lw,W1,SzX,rH,DoH,uY9,Gr,pp,HR,Uos,j5,X6,iw,flL,s9,Nt,dz,OsQ,aZ,yy9,E9,qze,Cp,Vv,Zs1,hW,lw,IlL,bsY,tW,Ayv,cR,ouH,Tn,Mt,klV,mp,JW,vR,F6,xoy,Yzs,S5,Kp,D0,uw,Z0,z4S,U9,fp,R4s, rnS,O9,yv,qt,cKX,t6u,IZ,mrL,LE1,gLv,bw,WEs,QkV,rK1,Blj,GPX,AW,oZ,kE,xE,pSy,CbY,zn,jlY,RZ,np,VIL,NFa,e5,HrL,XSe,slH,aQy,dVy,ira,hhV,wz,$E,Lp,gz,EPu,lQe,WR,tIY,Qv,rz,TF1,cV1,Gn,BR,MI9,JVS,mVy,vPL,pb,FLa,jO,VM,SGj,DVs,ucu,Hb,hz,Or9,r4H,l5,qGa,IQj,brX,AVV,oPL,sc,X1,kTV,E6,lo,zhQ,RhX,nPa,tz,$VX,ehs,Pba,gP9,WL1,cb,QlS,LLH,rVS,TF,M6,Jz,BFY,GTy,m6,vb,pPL,F1,Cns,SO,s6,Z8,jd9,Bts,$zH,U6,fb,yM,q6,I5,bo,Az,O6,x$,N2y,R5,HjQ,XPQ,dBe,iju,hOY,nb,adj,eO,ldV,Pb,cMj,T21,tB1,ErQ,MBS,JMH,mBV,Wb,vry,F$9,K$L,QM,CGV,Bb, ugX,UBV,Je,fdV,OjQ,pI,qTy,te,yMy,Lia,Wiv,Q3j,DBs,CI,jH,Vj,IdH,bj1,Nn,AM9,Xs,dG,iL,hR,or1,se,ag,k$V,xBe,Ee,lL,tR,cg,TM,Mn,zOS,YTa,JR,ROj,eO1,m4,Pnj,nru,xS,og,YS,Rg,nI,Lb,wPj,B2L,I3,kS,$S,jYj,Qj,N6S,uL,rG,DW,Bg,AR,Ck,heu,jw,Vs,sYa,aY9,ExQ,lYe,NF,t8e,cLs,H7,T6j,FHS,vx9,M8S,m3S,JLS,Xt,SAj,dP,KHy,D3j,Za1,U3Y,fYe,bay,Ej,ls,kda,tA,c7,x3V,Ree,nxs,eeu,P_Q,Te,w0V,LH1,gxY,fk,V3L,B6e,Gdv,HzQ,Oj,XYe,izy,dOL,h5L,qF,AA,sHe,ys,oI,kB,aFV,t3u,E1L,M39,nk,jK,v1y,ds,sW,n1v,y5Y,gP,EW,Ge,ld,fFs,Pty,e5u,wYv,tl,RI,B7,LZV, g1j,WZX,r59,$Ov,T5,QHe,Bre,Gva,mJ,v_,C51,ze,Qs,MI,bzY,lFL,xOQ,Z6,rP,B_,id,Vk,Nh,Hk,tov,lyH,hl,db,ceV,THj,ix,MoX,Jej,mij,$B,h_,OzQ,a$,X1s,W7,Sie,mOY,J5V,c5v,E5,P7,Ow1,fya,qca,IyS,Mh,mj,vk,J_,SQ,KT,bwu,Dg,ogH,ux,xiX,fT,krv,yk,qh,nge,I$,w1y,$i9,o$,Lwv,Wwj,Wk,rb,Bk,pc,Q2Q,Cc,jm,XB,dS,iT,hh,rey,sO,a8,Cwa,EO,lT,jZL,V5e,th,Nz1,HpQ,XRy,dtj,c3,TJ,ip1,sZ9,mv,v3,Kc,DM,a0S,uT,ZM,UO,fc,OO,EEv,l0e,y7,t5s,cWL,ql,M5s,Tz1,JWs,I8,vEe,mt9,Fpe,S9V,bT,Ah,KpQ,u6y,ZpY,UtX,f0X,I0a,Ops,o8,bpX,kv,AWe,kn1,xtX,zPa,Y9y,RPQ,xv, Yv,nES,ePs,LpL,Wp9,Pw9,gES,QZe,wRX,$tX,rWy,BzQ,nc,GnS,CoQ,NBe,d61,Hby,Xbe,W3,B3,hna,GJ,s5a,p4,E$X,l8Y,tOv,a8H,MOs,Jzu,C4,jf,m6S,v$e,F6e,rLS,jHQ,K6e,S6a,u11,D69,Zbe,Nx,f8u,Obj,I8L,XM,dd,i2,Azy,x6S,aA,E4,l2,znY,Y6H,ht,RnQ,n$X,enQ,wby,W6Y,CLs,dny,Mx,iIY,P3,sgS,aW1,ESL,lWY,tHe,mB,cRV,vI,TGe,FM,MHv,K4,mne,vSY,F4V,DX,Sej,K4Q,DnX,usy,ZIv,u2,JRj,Une,ZX,OIL,yRj,qes,U4,IWj,bIa,ARX,oSe,kMX,xnL,YeQ,zgH,Rga,nS1,egj,wgX,f4,L4v,$nV,rRQ,yN,PL1,O4,qx,IA,b2,At,oA,kd,BGX,xd,GMY,p7H,Hku,ikv,hBy,sIX,aby,n4,EBu,dFL,NPH, lby,zX,twX,TPa,Yd,RA,jIL,VwX,ef,Mwe,JAS,X7y,Csu,mF1,vBH,Fxj,wd,Kxa,Sja,$d,fbS,ZkV,UFe,DF9,Oka,L4,utH,gd,WI,yAj,qje,IbY,QN,AAy,oB1,rd,ke9,BI,xF9,Yjv,zBY,RBV,eBY,PsX,w71,BPy,gB1,j5s,nBu,p_1,CdL,Wxe,QIy,Lxs,rAV,X_y,pA,$FH,GeH,ifu,Hf9,NsV,VK1,jMe,jX,htQ,em,Vz,N4,HZ,sMH,a6S,EAu,X0,l6u,rS,tKX,clL,$v,gS,pbX,iQ,sp,mIV,vAL,SWe,FJS,Ep,hI,dZ,tI,MKL,TsY,Jlu,cZ,KJ9,DIj,Qgs,W4a,wS,TG,uxu,aB,ZfS,UIv,f6e,OfY,ylQ,M4,I6v,bf9,Alv,oAY,k5v,xIv,cAa,mN,vZ,zt9,JI,Rte,cz9,TB9,F0,nA9,etH,Pdv,w_X,SX,gAs,$IX,WJy,rlH,LJX,BsY, pke,G5e,VQv,KA,Zp,XkV,HTv,s$H,iT9,agH,Ejv,dhv,hLv,NbV,lgV,Up,tQQ,MQS,c_v,Tbs,Op,J_H,fWX,mhS,vjS,FjL,S5H,yz,Kjs,q4,Dh9,IB,bQ,AI,uES,q5j,y_1,ZTa,UhL,fgv,OTV,Igj,bTS,A_1,ojS,oB,kFS,kk,Y5v,xk,xhV,zLv,RLY,o$a,s4,njj,eLe,zG,Q$H,Wjv,wZ,r_L,gjj,p3X,$k,CTS,j8H,HcY,X3y,ic1,NSX,hWV,s81,aMa,Evu,lMa,chQ,TSS,Mmu,tmX,gZ,Yk,mls,VmY,vvQ,dlv,WZ,SOH,Jh1,LA,Kv9,Dla,Ulu,OcV,Qz,yhQ,fMj,qOs,uBQ,rZ,IMH,Zc1,Cu,kJs,YO9,xlX,zWj,RW1,nvH,ovY,eWS,PT9,BZ,w3s,$lL,LvX,gvS,rhX,Q89,Wv1,Vb,BSj,pIH,C2j,jAy,VfQ,dX,iF,gSS,Ndy,H4Y,XIv, hbL,i4a,dxs,sAj,EdQ,lX1,aXu,pu,CxX,ctv,TdL,Mfs,KBX,vdV,FBa,S4u,Dxy,Z49,dI9,Na,mxL,JtL,uMv,Q7,GX,Lc,q41,yte,IXj,b4Y,AtX,odv,GJs,uQ,Dp,fXH,kXv,O4u,xxL,Y4u,QMa,zb1,AhL,bcy,UxL,j$9,EZ,lF,ndX,t6,eb1,P2Y,wIj,$xe,LBa,WBL,QAa,pZS,rta,GXa,CQu,TK,HAY,VXH,NZQ,iAS,haS,sB9,ap9,EkY,cu,lpH,d4e,jBQ,Ma,tXa,BdY,cIL,J6,MXy,JIV,m4v,TZL,ms,SpL,FN9,u0Y,D4Q,KNY,ZAe,U49,vu,fpQ,OAL,qpu,Ipu,yI1,bAu,YpS,okH,kGe,x4L,zaQ,Ray,nk1,PQ1,eaa,wZu,$4s,LNu,WNa,rIj,QB1,BZe,gkX,GG9,CFv,jVj,NXe,XuL,VPa,Dn,daY,iuV,puL,hwS,HuV,uF,sVv,ans, EbH,lnY,tPa,c6v,TXX,J61,vbQ,Fse,SZS,UZ,Da1,u9a,Uae,qa,Ou1,y6v,qZY,Inu,A6L,buL,xaQ,YZj,IV,A6,ob9,kK9,zwX,kb,nb9,Rws,ewY,PFe,wu9,gba,$a1,r6S,xb,Lse,BXY,Yb,jia,RV,nu,Vts,zK,NLY,eP,dT9,XOV,pOs,CYQ,i$y,h2y,si1,GKY,a_L,Pu,Em9,H$e,fnL,oV,ttS,$b,cHL,TLS,Mtj,JH1,mTu,vmQ,F5Q,SDy,K5a,DTH,Lu,udv,Z$Q,f_9,O$s,yH1,UTS,qDy,I_S,gX,b$u,AHy,omX,kEQ,xT1,Wu,bqa,YDv,z2X,Qb,R2S,nme,Bu,wOv,$TV,GK,gmH,W5j,L5y,PYa,p$,rX,e29,VX,jt,QiH,NT,C$,pxs,VvY,Hn1,XxY,inS,BLv,NMa,hDj,GEH,sTV,aTH,hH,HO,lTL,EWv,dL,TMu,Mvy,jTy,CiV,cre,JrS, dAe,rHQ,ai,ED,lY,mAy,tH,uke,SCa,Zns,KY9,FYu,UAe,vWj,qC1,fTY,cO,ITY,ArV,Hj,kbY,xAQ,YCS,m5,zDv,RDL,Pij,Fd,F9,wxv,gWY,nWH,sD,iY,WYe,QTe,UD,Fv9,uY,TE,GbQ,pze,je9,CWQ,V4s,LYH,K$,Nuu,OD,Xze,HZe,iZ9,ddy,hMs,tfs,sZ,yX,sej,aRy,EXe,lRu,t4X,St,cDS,M4y,Tuj,JDa,mdS,FDV,SRY,BMv,oWH,Ddy,KDj,D_,MT,uov,qT,Udu,fRH,Ii,yDY,qR1,IRj,bZS,f$,X9,AIX,eDV,ADu,Rb9,Xd,oXe,kIY,xde,YRS,zMH,bY,AH,nXu,eM1,PWj,RMV,wz1,oi,WDu,LDv,gXa,Qes,km,rDv,BuL,GIu,xm,p$a,jvX,VDX,NRj,Ym,Chj,zE,Ri,Hvj,X$H,PO,n$,et,dby,wL,ivj,hyQ,svH,EaY,aiX,rL, tDX,cov,liv,TRY,BO,MDL,GE,Joj,pn,mbX,vaH,upH,FRs,KRu,Cn,SaX,DbL,Zve,Uby,fi9,OvL,V$,yoY,Xk,NA,qaa,dM,ii,bvL,sC,aT,AoY,hr,oaY,EC,xbL,k8s,tr,cx,Tb,RyQ,Yaa,zyj,MA,naL,$bv,PhL,eyL,w$V,Jr,gaH,ro1,BRs,mY,G8e,pNY,WR9,QvQ,VM9,NJQ,H7L,XNQ,dSY,i7u,Sv,EfS,lN9,Kn,sCe,aNv,cXu,Fk,DT,ui,h19,TJV,ZT,UC,MM1,JXy,OZL,fn,mSs,vfY,FPv,StX,KPS,DSs,uR1,fNH,Z7a,O7j,yXX,INy,b7s,zb,z1Y,ofy,kRy,R1v,nf9,Yt1,AX9,e1u,wNH,Pja,$Su,BJY,nn,CM9,Nvj,VCH,jQV,QCs,rXu,LPv,gfv,GRu,ev,Px,XqH,R$,Ycj,dEH,$W,gM,h9H,iDy,pqY,aOj,EyH,lOX,Wx,tCe, j4,Tv9,MCV,JFv,vyX,mES,Ffu,V1,Nd,SmX,u7Y,ZDX,Xo,DE9,UES,fOH,KfX,du,sR,OD9,yFv,hD,qmL,IOS,bDu,AFv,kSL,oye,z9e,R9Y,xES,e9Y,PML,Ymu,lW,tD,wq9,Lf9,cz,$EY,gyj,QQQ,Wfy,rFY,TI,BvY,GSS,pDL,Md,JD,jJv,CSL,VdY,NK9,XDs,HMY,dWX,iM9,hfu,sJe,a4L,l4L,vz,mD,Fo,tdL,cJv,ERy,vRS,Fmy,SUu,uys,DWV,Kmj,ZML,UWe,S4,KZ,f4H,OML,yJy,qU9,bM1,AJQ,uW,oRY,DR,UR,I4y,kUQ,xWs,YUL,zfQ,Rfu,OR,nRY,efQ,$Wj,y1,LmX,wDs,qd,Ie,gRV,Wmy,rJV,GUj,QJS,BKu,AD,pLL,jPu,VjY,HBS,XLy,oe,kX,d9Y,Ck9,sPH,hGS,iBy,xX,YX,EOe,a$s,zI,Re,l$a,nZ,tja,cYs,T4H,e4, Mjv,Pz,JYV,wu,m99,S7L,K8S,D9S,ZBL,U9y,f$1,u8V,yYj,OBX,q7V,AY9,gu,k_Q,oO9,I$S,bB9,x9L,Y7s,Wz,Q1,zGv,RGa,nOX,eG9,Pku,wLa,L8H,gOu,jn1,rY1,B4a,W81,N5u,jD,VK,i99,Xp,dR,hdj,H9u,Cv,sa,ho,Nb,av,EnH,t$V,lIV,Ea,H$,pv,aIv,ih,XMQ,snu,T5L,ru,lh,M$v,JsL,d2e,to,c$,m2s,T8,Mb,Jo,vnX,FTY,KTs,D2v,Sbj,mR,Z9y,uSY,v$,U2s,Fp,SD,fIY,O9L,ys9,qbu,IIV,Asa,kLu,on1,b9H,Kv,x2S,zda,YbH,Di,uh,RdV,edy,PJX,Zi,nnj,wMy,$2Q,LTV,gnv,WTe,Qne,rsS,fv,Oa,GLY,B5y,p99,yK,qb,CAV,jUa,NpL,VNv,HCH,X9a,d0V,bh,iC1,h7H,sUy,awy,E8V,lwv,cia,TpV,MNs, tNL,Jiv,m0X,v8v,F7s,SPX,K7s,D01,ubQ,Ya,ZCS,U0v,fwL,qPs,o89,bCs,yiY,nv,Iw9,OCX,Ai1,x0u,YPX,kaQ,eD,z7a,R7a,n8H,SP,e7V,g8a,W7a,QUv,wR,riV,Lv,jP,BpY,gR,Gaa,$a,pK1,Clj,dwY,B$,i8a,G8,szy,EwV,a2H,jzv,p7,l2L,txL,TQX,C7,Mxy,JgS,mw1,hHy,jM,FbV,vwX,Vw,H81,QK,Ssv,KbS,Dwa,uhe,Z8j,VxV,NQQ,rR,ygS,qsa,b8V,O8X,kYL,zJ,R8,GG,zHQ,RHQ,YsX,nw1,I2v,xwH,UwV,eHe,owL,PlV,Agu,lQ,qWa,tvQ,NS,HN,fA,f2L,$wL,Qzj,ij,rga,BQS,gwa,aC,GYj,ptH,wKL,CCX,WbX,jyV,Et,hX,VAy,Hlu,Niy,dJ,dCu,cN,ilQ,lj,TR,tX,MS,$AY,hmy,EhX,aGj,tAu,cZy,lGS,mP, JX,MAX,JZ1,mCs,fGy,DCe,yZe,Sxs,qxe,FFs,FR,P$,k31,IGS,AZv,blv,DN,uj,Yx1,ZN,Ut,nha,RmL,zm1,Ot,UCY,bj,PCH,IC,f7,$CQ,WFy,Qya,uZV,LFs,kf,rZe,ZlQ,emy,yw,Bi1,K7,G3u,pra,CD1,RC,n7,wtV,eM,PN,jRv,qS,xC9,VW9,NDy,HLS,ghv,Xru,AX,dJa,oC,U5,iL9,sRa,SM,wJ,ohV,aPQ,Esv,zR,xf,lPu,sy1,tWS,Yf,cu9,TDj,MWS,Ju9,$f,L7,FUL,DJS,ZL1,vsL,Auy,osQ,kss,xJV,YqL,z$y,R$u,e$9,nsV,gJ,WN,Qw,PDs,wry,$JQ,V4,LU1,rJ,gsy,BN,GR,fR,pD,Cs,WUv,DY,Jqv,QRX,Vn,rus,$L,LV,Gd,BDL,Gsa,pAY,CEX,CD,Vcj,NaV,jC,NE,Hq,HQS,iQH,hAs,X7,sm9,XAX,du9,aLy,EzQ,lLe, tcQ,cSH,dv,Mcu,mYS,fs,al,JS1,muu,tV,Ta9,oj,vz9,FXH,Swe,iM,O3,Due,uTQ,hF,sm,ZQY,aQ,Uue,V0,fLX,OQu,e31,Em,lM,ySe,tF,cq,qwY,TS,ILs,ME,JF,bQs,AS9,M2y,mf,ozX,xus,kZL,vq,Yws,F7,SC,zAH,RAy,nzV,eAv,PEY,wAs,$ue,gzX,DO,LX1,WXe,QmX,rSe,Bas,jGv,GZ9,pme,Cyv,NjY,XmY,dHL,ii9,HiS,uM,hlQ,sGQ,axL,EMX,lxL,Um,tRV,fD,Om,y0,cve,Tju,Jvv,mHj,vMy,F3V,K3a,SYS,DHY,qE,IQ,UHX,u$1,Zi9,bM,fxe,Oi9,AF,oQ,yvy,ky,qYy,Yy,IxH,zS,RQ,bia,nD,eC,AvL,oMe,Pq,wv,kgV,$y,xHX,zl1,Wq,RlQ,nMS,elL,$HY,wm1,Q0,L39,gM9,W3v,DQX,Pyu,rve,Bja,pvc,pvs,hQ; CY=function(p){return function(){return pvs[p].apply(this,arguments)}}; g.Ns=function(p,C){return pvs[p]=C}; C99=function(p){var C=0;return function(){return C<p.length?{done:!1,value:p[C++]}:{done:!0}}}; juy=function(p){p=["object"==typeof globalThis&&globalThis,p,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var C=0;C<p.length;++C){var V=p[C];if(V&&V.Math==Math)return V}throw Error("Cannot find global object");}; sS=function(p,C){if(C)a:{var V=g.Xe;p=p.split(".");for(var N=0;N<p.length-1;N++){var H=p[N];if(!(H in V))break a;V=V[H]}p=p[p.length-1];N=V[p];C=C(N);C!=N&&C!=null&&hQ(V,p,{configurable:!0,writable:!0,value:C})}}; Va9=function(p){p={next:p};p[Symbol.iterator]=function(){return this}; return p}; g.m=function(p,C){p.prototype=N1V(C.prototype);p.prototype.constructor=p;if(l9)l9(p,C);else for(var V in C)if(V!="prototype")if(Object.defineProperties){var N=Object.getOwnPropertyDescriptor(C,V);N&&Object.defineProperty(p,V,N)}else p[V]=C[V];p.oI=C.prototype}; g.F=function(p){var C=typeof Symbol!="undefined"&&Symbol.iterator&&p[Symbol.iterator];if(C)return C.call(p);if(typeof p.length=="number")return{next:C99(p)};throw Error(String(p)+" is not an iterable or ArrayLike");}; HY9=function(p){for(var C,V=[];!(C=p.next()).done;)V.push(C.value);return V}; g.K=function(p){return p instanceof Array?p:HY9(g.F(p))}; dsL=function(p){return XvX(p,p)}; XvX=function(p,C){p.raw=C;Object.freeze&&(Object.freeze(p),Object.freeze(C));return p}; tQ=function(p,C){return Object.prototype.hasOwnProperty.call(p,C)}; iYv=function(p){if(!(p instanceof Object))throw new TypeError("Iterator result "+p+" is not an object");}; cv=function(){this.D=!1;this.W=null;this.T=void 0;this.C=1;this.S=this.Y=0;this.Z=this.V=null}; TV=function(p){if(p.D)throw new TypeError("Generator is already running");p.D=!0}; Ms=function(p,C){p.V={A4:C,yg:!0};p.C=p.Y||p.S}; g.y=function(p,C,V){p.C=V;return{value:C}}; hXS=function(p,C,V){C=g.F(C);var N=C.next();iYv(N);if(N.done)p.T=N.value,p.C=V;else return p.W=C,g.y(p,N.value,V)}; g.JQ=function(p){p.C=0}; g.vv=function(p,C,V){p.Y=C;V!=void 0&&(p.S=V)}; g.Fe=function(p,C,V){p.C=C;p.Y=V||0}; g.Sa=function(p,C){p.Y=C||0;C=p.V.A4;p.V=null;return C}; g.KY=function(p,C,V){p.Z=[p.V];p.Y=C||0;p.S=V||0}; g.Dj=function(p,C){var V=p.Z.splice(0)[0];(V=p.V=p.V||V)?V.yg?p.C=p.Y||p.S:V.EY!=void 0&&p.S<V.EY?(p.C=V.EY,p.V=null):p.C=p.S:p.C=C}; suu=function(p){this.T=new cv;this.C=p}; ajX=function(p,C){TV(p.T);var V=p.T.W;if(V)return u9(p,"return"in V?V["return"]:function(N){return{value:N,done:!0}},C,p.T.return); p.T.return(C);return Zj(p)}; u9=function(p,C,V,N){try{var H=C.call(p.T.W,V);iYv(H);if(!H.done)return p.T.D=!1,H;var X=H.value}catch(d){return p.T.W=null,Ms(p.T,d),Zj(p)}p.T.W=null;N.call(p.T,X);return Zj(p)}; Zj=function(p){for(;p.T.C;)try{var C=p.C(p.T);if(C)return p.T.D=!1,{value:C.value,done:!1}}catch(V){p.T.T=void 0,Ms(p.T,V)}p.T.D=!1;if(p.T.V){C=p.T.V;p.T.V=null;if(C.yg)throw C.A4;return{value:C.return,done:!0}}return{value:void 0,done:!0}}; EHe=function(p){this.next=function(C){TV(p.T);p.T.W?C=u9(p,p.T.W.next,C,p.T.J):(p.T.J(C),C=Zj(p));return C}; this.throw=function(C){TV(p.T);p.T.W?C=u9(p,p.T.W["throw"],C,p.T.J):(Ms(p.T,C),C=Zj(p));return C}; this.return=function(C){return ajX(p,C)}; this[Symbol.iterator]=function(){return this}}; lje=function(p,C){C=new EHe(new suu(C));l9&&p.prototype&&l9(C,p.prototype);return C}; tau=function(p){function C(N){return p.next(N)} function V(N){return p.throw(N)} return new Promise(function(N,H){function X(d){d.done?N(d.value):Promise.resolve(d.value).then(C,V).then(X,H)} X(p.next())})}; g.I=function(p){return tau(new EHe(new suu(p)))}; g.US=function(){for(var p=Number(this),C=[],V=p;V<arguments.length;V++)C[V-p]=arguments[V];return C}; cQe=function(p,C,V){p instanceof String&&(p=String(p));for(var N=p.length,H=0;H<N;H++){var X=p[H];if(C.call(V,X,H,p))return{aC:H,M9:X}}return{aC:-1,M9:void 0}}; fY=function(p,C,V){if(p==null)throw new TypeError("The 'this' value for String.prototype."+V+" must not be null or undefined");if(C instanceof RegExp)throw new TypeError("First argument to String.prototype."+V+" must not be a regular expression");return p+""}; yL=function(p,C){p instanceof String&&(p+="");var V=0,N=!1,H={next:function(){if(!N&&V<p.length){var X=V++;return{value:C(X,p[X]),done:!1}}N=!0;return{done:!0,value:void 0}}}; H[Symbol.iterator]=function(){return H}; return H}; qs=function(p){return p?p:Array.prototype.fill}; Iu=function(p){return p?p:Array.prototype.copyWithin}; b9=function(p){p=Math.trunc(p)||0;p<0&&(p+=this.length);if(!(p<0||p>=this.length))return this[p]}; AQ=function(p){return p?p:b9}; T1v=function(p,C,V){p instanceof String&&(p=String(p));for(var N=p.length-1;N>=0;N--){var H=p[N];if(C.call(V,H,N,p))return{aC:N,M9:H}}return{aC:-1,M9:void 0}}; ou=function(p){return p?p:function(C,V){return T1v(this,C,V).aC}}; g.YH=function(p,C,V){p=p.split(".");V=V||g.xH;p[0]in V||typeof V.execScript=="undefined"||V.execScript("var "+p[0]);for(var N;p.length&&(N=p.shift());)p.length||C===void 0?V[N]&&V[N]!==Object.prototype[N]?V=V[N]:V=V[N]={}:V[N]=C}; Ru=function(p,C){var V=g.zV("CLOSURE_FLAGS");p=V&&V[p];return p!=null?p:C}; g.zV=function(p,C){p=p.split(".");C=C||g.xH;for(var V=0;V<p.length;V++)if(C=C[p[V]],C==null)return null;return C}; nY=function(p){var C=typeof p;return C!="object"?C:p?Array.isArray(p)?"array":C:"null"}; g.ea=function(p){var C=nY(p);return C=="array"||C=="object"&&typeof p.length=="number"}; g.Pv=function(p){var C=typeof p;return C=="object"&&p!=null||C=="function"}; g.$H=function(p){return Object.prototype.hasOwnProperty.call(p,w1)&&p[w1]||(p[w1]=++MaS)}; JQj=function(p,C,V){return p.call.apply(p.bind,arguments)}; msv=function(p,C,V){if(!p)throw Error();if(arguments.length>2){var N=Array.prototype.slice.call(arguments,2);return function(){var H=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(H,N);return p.apply(C,H)}}return function(){return p.apply(C,arguments)}}; g.LY=function(p,C,V){g.LY=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?JQj:msv;return g.LY.apply(null,arguments)}; g.Wv=function(p,C){var V=Array.prototype.slice.call(arguments,1);return function(){var N=V.slice();N.push.apply(N,arguments);return p.apply(this,N)}}; g.QL=function(){return Date.now()}; vHV=function(p){return p}; g.r1=function(p,C){function V(){} V.prototype=C.prototype;p.oI=C.prototype;p.prototype=new V;p.prototype.constructor=p;p.GU=function(N,H,X){for(var d=Array(arguments.length-2),a=2;a<arguments.length;a++)d[a-2]=arguments[a];return C.prototype[H].apply(N,d)}}; GV=function(p,C){if(C!==null&&C!==void 0){if(typeof C!=="object"&&typeof C!=="function")throw new TypeError("Object expected.");if(V===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var V=C[Symbol.dispose]}if(typeof V!=="function")throw new TypeError("Object not disposable.");p.stack.push({value:C,dispose:V,async:!1})}return C}; p0=function(p){function C(N){p.error=p.hasError?new SuppressedError(N,p.error,"An error was suppressed during disposal."):N;p.hasError=!0} function V(){for(;p.stack.length;){var N=p.stack.pop();try{var H=N.dispose&&N.dispose.call(N.value);if(N.async)return Promise.resolve(H).then(V,function(X){C(X);return V()})}catch(X){C(X)}}if(p.hasError)throw p.error; } V()}; Fye=function(p){var C=C===void 0?41:C;var V=[];jy(p,H5,6).forEach(function(N){XG(N,2)<=C&&V.push(XG(N,1))}); return V}; SSe=function(p){var C=C===void 0?41:C;var V=[];jy(p,H5,6).forEach(function(N){XG(N,2)>C&&V.push(XG(N,1))}); return V}; dY=function(p){var C=C===void 0?41:C;p=(p==null?void 0:XG(p,1))||0;return p>0&&C>=p}; g.iP=function(p){p&&typeof p.dispose=="function"&&p.dispose()}; g.s1=function(p){for(var C=0,V=arguments.length;C<V;++C){var N=arguments[C];g.ea(N)?g.s1.apply(null,N):g.iP(N)}}; g.Y=function(){this.Ra=this.Ra;this.pk=this.pk}; g.R=function(p,C){p.addOnDisposeCallback(g.Wv(g.iP,C))}; aF=function(p){p.then(function(){},function(){})}; E1=function(){g.Y.apply(this,arguments);this.S=1;this[Ky1]=this.dispose}; lP=function(p){return{fieldType:2,fieldName:p}}; g.tf=function(p){return{fieldType:3,fieldName:p}}; DsL=function(p){this.T=p;p.E9("/client_streamz/bg/frs",g.tf("ke"))}; ueu=function(p){this.T=p;p.E9("/client_streamz/bg/wrl",g.tf("mn"),lP("ac"),lP("sc"),g.tf("rk"),g.tf("mk"))}; ZYu=function(p){this.C=p;p.qO("/client_streamz/bg/ec",g.tf("en"),g.tf("mk"))}; Usy=function(p){this.T=p;p.E9("/client_streamz/bg/el",g.tf("en"),g.tf("rk"),g.tf("mk"))}; fje=function(p){this.C=p;p.qO("/client_streamz/bg/cec",lP("ec"),g.tf("rk"),g.tf("mk"))}; OYL=function(p){this.C=p;p.qO("/client_streamz/bg/po/csc",lP("cs"),g.tf("rk"),g.tf("mk"))}; yQj=function(p){this.C=p;p.qO("/client_streamz/bg/po/ctav",g.tf("av"),g.tf("rk"),g.tf("mk"))}; qSS=function(p){this.C=p;p.qO("/client_streamz/bg/po/cwsc",g.tf("su"),g.tf("rk"),g.tf("mk"))}; c5=function(p,C){if(Error.captureStackTrace)Error.captureStackTrace(this,c5);else{var V=Error().stack;V&&(this.stack=V)}p&&(this.message=String(p));C!==void 0&&(this.cause=C)}; IjQ=function(){}; Mc=function(){throw Error("Invalid UTF8");}; bY1=function(p,C){C=String.fromCharCode.apply(null,C);return p==null?C:p+C}; xse=function(p){var C=!1;C=C===void 0?!1:C;if(AQQ){if(C&&(oHv?!p.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(p)))throw Error("Found an unpaired surrogate");p=(kVe||(kVe=new TextEncoder)).encode(p)}else{for(var V=0,N=new Uint8Array(3*p.length),H=0;H<p.length;H++){var X=p.charCodeAt(H);if(X<128)N[V++]=X;else{if(X<2048)N[V++]=X>>6|192;else{if(X>=55296&&X<=57343){if(X<=56319&&H<p.length){var d=p.charCodeAt(++H);if(d>=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<p.length;V+=2)C.push(parseInt(p.substring(V,V+2),16));return C}; g.mr=function(p){for(var C=[],V=0,N=0;N<p.length;N++){var H=p.charCodeAt(N);H<128?C[V++]=H:(H<2048?C[V++]=H>>6|192:((H&64512)==55296&&N+1<p.length&&(p.charCodeAt(N+1)&64512)==56320?(H=65536+((H&1023)<<10)+(p.charCodeAt(++N)&1023),C[V++]=H>>18|240,C[V++]=H>>12&63|128):C[V++]=H>>12|224,C[V++]=H>>6&63|128),C[V++]=H&63|128)}return C}; v5=function(p,C){return p.lastIndexOf(C,0)==0}; RX1=function(p,C){var V=p.length-C.length;return V>=0&&p.indexOf(C,V)==V}; g.Sy=function(p){return/^[\s\xa0]*$/.test(p)}; g.K0=function(p,C){return p.indexOf(C)!=-1}; Dv=function(p,C){return g.K0(p.toLowerCase(),C.toLowerCase())}; g.U1=function(p,C){var V=0;p=uP(String(p)).split(".");C=uP(String(C)).split(".");for(var N=Math.max(p.length,C.length),H=0;V==0&&H<N;H++){var X=p[H]||"",d=C[H]||"";do{X=/(\d*)(\D*)(.*)/.exec(X)||["","","",""];d=/(\d*)(\D*)(.*)/.exec(d)||["","","",""];if(X[0].length==0&&d[0].length==0)break;V=Zv(X[1].length==0?0:parseInt(X[1],10),d[1].length==0?0:parseInt(d[1],10))||Zv(X[2].length==0,d[2].length==0)||Zv(X[2],d[2]);X=X[3];d=d[3]}while(V==0)}return V}; Zv=function(p,C){return p<C?-1:p>C?1:0}; g.f0=function(){var p=g.xH.navigator;return p&&(p=p.userAgent)?p:""}; IF=function(p){return O1||y8?qc?qc.brands.some(function(C){return(C=C.brand)&&g.K0(C,p)}):!1:!1}; bP=function(p){return g.K0(g.f0(),p)}; Af=function(){return O1||y8?!!qc&&qc.brands.length>0:!1}; oF=function(){return Af()?!1:bP("Opera")}; nH9=function(){return Af()?!1:bP("Trident")||bP("MSIE")}; eXv=function(){return Af()?IF("Microsoft Edge"):bP("Edg/")}; k2=function(){return bP("Firefox")||bP("FxiOS")}; Y2=function(){return bP("Safari")&&!(x2()||(Af()?0:bP("Coast"))||oF()||(Af()?0:bP("Edge"))||eXv()||(Af()?IF("Opera"):bP("OPR"))||k2()||bP("Silk")||bP("Android"))}; x2=function(){return Af()?IF("Chromium"):(bP("Chrome")||bP("CriOS"))&&!(Af()?0:bP("Edge"))||bP("Silk")}; P9a=function(){return bP("Android")&&!(x2()||k2()||oF()||bP("Silk"))}; wve=function(p){var C={};p.forEach(function(V){C[V[0]]=V[1]}); return function(V){return C[V.find(function(N){return N in C})]||""}}; $su=function(p){var C=g.f0();if(p==="Internet Explorer"){if(nH9())if((p=/rv: *([\d\.]*)/.exec(C))&&p[1])C=p[1];else{p="";var V=/MSIE +([\d\.]+)/.exec(C);if(V&&V[1])if(C=/Trident\/(\d.\d)/.exec(C),V[1]=="7.0")if(C&&C[1])switch(C[1]){case "4.0":p="8.0";break;case "5.0":p="9.0";break;case "6.0":p="10.0";break;case "7.0":p="11.0"}else p="7.0";else p=V[1];C=p}else C="";return C}var N=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");V=[];for(var H;H=N.exec(C);)V.push([H[1],H[2],H[3]||void 0]); C=wve(V);switch(p){case "Opera":if(oF())return C(["Version","Opera"]);if(Af()?IF("Opera"):bP("OPR"))return C(["OPR"]);break;case "Microsoft Edge":if(Af()?0:bP("Edge"))return C(["Edge"]);if(eXv())return C(["Edg"]);break;case "Chromium":if(x2())return C(["Chrome","CriOS","HeadlessChrome"])}return p==="Firefox"&&k2()||p==="Safari"&&Y2()||p==="Android Browser"&&P9a()||p==="Silk"&&bP("Silk")?(C=V[2])&&C[1]||"":""}; LyQ=function(p){if(Af()&&p!=="Silk"){var C=qc.brands.find(function(V){return V.brand===p}); if(!C||!C.version)return NaN;C=C.version.split(".")}else{C=$su(p);if(C==="")return NaN;C=C.split(".")}return C.length===0?NaN:Number(C[0])}; zp=function(){return O1||y8?!!qc&&!!qc.platform:!1}; gHY=function(){return zp()?qc.platform==="Android":bP("Android")}; n0=function(){return bP("iPhone")&&!bP("iPod")&&!bP("iPad")}; ey=function(){return n0()||bP("iPad")||bP("iPod")}; P5=function(){return zp()?qc.platform==="macOS":bP("Macintosh")}; WyL=function(){return zp()?qc.platform==="Windows":bP("Windows")}; g.wY=function(p){return p[p.length-1]}; QuL=function(p,C){var V=p.length,N=typeof p==="string"?p.split(""):p;for(--V;V>=0;--V)V in N&&C.call(void 0,N[V],V,p)}; g.L0=function(p,C,V){C=$2(p,C,V);return C<0?null:typeof p==="string"?p.charAt(C):p[C]}; $2=function(p,C,V){for(var N=p.length,H=typeof p==="string"?p.split(""):p,X=0;X<N;X++)if(X in H&&C.call(V,H[X],X,p))return X;return-1}; g.gY=function(p,C,V){var N=p.length,H=typeof p==="string"?p.split(""):p;for(--N;N>=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<C;N++)V[N]=p[N];return V}return[]}; g.C6=function(p,C){for(var V=1;V<arguments.length;V++){var N=arguments[V];if(g.ea(N)){var H=p.length||0,X=N.length||0;p.length=H+X;for(var d=0;d<X;d++)p[H+d]=N[d]}else p.push(N)}}; g.VR=function(p,C,V,N){Array.prototype.splice.apply(p,jk(arguments,1))}; jk=function(p,C,V){return arguments.length<=2?Array.prototype.slice.call(p,C):Array.prototype.slice.call(p,C,V)}; p5S=function(p){for(var C=0,V=0,N={};V<p.length;){var H=p[V++],X=g.Pv(H)?"o"+g.$H(H):(typeof H).charAt(0)+H;Object.prototype.hasOwnProperty.call(N,X)||(N[X]=!0,p[C++]=H)}p.length=C}; g.Xv=function(p,C,V){return CPS(p,V||NL,!1,C)}; ir=function(p,C){return CPS(p,C,!0)}; CPS=function(p,C,V,N){for(var H=0,X=p.length,d;H<X;){var a=H+(X-H>>>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;H<N;H++)if(!V(p[H],C[H]))return!1;return!0}; NL=function(p,C){return p>C?1:p<C?-1:0}; Vya=function(p,C){return p===C}; g.Ev=function(p,C,V){V=g.Xv(p,C,V);V<0&&g.VR(p,-(V+1),0,C)}; g.tB=function(p,C,V){var N={};(0,g.lr)(p,function(H,X){N[C.call(V,H,X,p)]=H}); return N}; NYH=function(p){for(var C=[],V=0;V<p;V++)C[V]="";return C}; H0Q=function(p,C){C=Array.prototype.splice.call(p,C,1);Array.prototype.splice.call(p,0,0,C[0])}; ML=function(p){ML[" "](p);return p}; X5e=function(p,C){try{return ML(p[C]),!0}catch(V){}return!1}; i0V=function(p,C){var V=dcY;return Object.prototype.hasOwnProperty.call(V,p)?V[p]:V[p]=C(p)}; g.JB=function(p){return i0V(p,function(){return g.U1(hEy,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<p.length-2;H+=3){var d=p[H],a=p[H+1],E=p[H+2],l=C[d>>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;H<p.length;H++){var X=p.charCodeAt(H);X>255&&(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<p.length;){var l=p.charAt(N++),t=Sk[l];if(t!=null)return t;if(!g.Sy(l))throw Error("Unknown base64 encoding at char: "+l);}return E} sFX();for(var N=0;;){var H=V(-1),X=V(0),d=V(64),a=V(64);if(a===64&&H===-1)break;C(H<<2|X>>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<N.length;H++){var X=N[H];Sk[X]===void 0&&(Sk[X]=H)}}}}; TYQ=function(p){if(!cfu)return g.mq(p);for(var C="",V=0,N=p.length-10240;V<N;)C+=String.fromCharCode.apply(null,p.subarray(V,V+=10240));C+=String.fromCharCode.apply(null,V?p.subarray(V):p);return btoa(C)}; JfV=function(p){return My9[p]||""}; v2u=function(p){if(!cfu)return Fv(p);mc1.test(p)&&(p=p.replace(mc1,JfV));p=atob(p);for(var C=new Uint8Array(p.length),V=0;V<p.length;V++)C[V]=p.charCodeAt(V);return C}; K6=function(p){return FrX&&p!=null&&p instanceof Uint8Array}; DV=function(p,C){S1X(C);this.T=p;if(p!=null&&p.length===0)throw Error("ByteString should be constructed with non-empty values");}; ZV=function(){return KrV||(KrV=new DV(null,ur))}; f6=function(p){return new Uint8Array(Uv(p)||0)}; Uv=function(p){S1X(ur);var C=p.T;C=C==null||K6(C)?C:typeof C==="string"?v2u(C):null;return C==null?C:p.T=C}; S1X=function(p){if(p!==ur)throw Error("illegal external caller");}; Dcj=function(p,C){p.__closure__error__context__984382||(p.__closure__error__context__984382={});p.__closure__error__context__984382.severity=C}; uGV=function(){var p=Error();Dcj(p,"incident");Jf(p)}; Ov=function(p){p=Error(p);Dcj(p,"warning");return p}; yR=function(){return typeof BigInt==="function"}; qL=function(p){return Array.prototype.slice.call(p)}; If=function(p){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?Symbol():p}; Z0S=function(p,C){br(C,(p|0)&-30975)}; AB=function(p,C){br(C,(p|34)&-30941)}; of=function(p){return!(!p||typeof p!=="object"||p.T!==UcQ)}; kT=function(p){return p!==null&&typeof p==="object"&&!Array.isArray(p)&&p.constructor===Object}; fvQ=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}; Rf=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();}; O0Q=function(p,C){(C=Py?C[Py]:void 0)&&(p[Py]=qL(C))}; wo=function(p){p.RNa=!0;return p}; go=function(p){var C=p;if(yfY(C)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(C))throw Error(String(C));}else if(q1a(C)&&!Number.isSafeInteger(C))throw Error(String(C));return $T?BigInt(p):p=Ive(p)?p?"1":"0":yfY(p)?p.trim()||"0":String(p)}; b09=function(p,C){if(p.length>C.length)return!1;if(p.length<C.length||p===C)return!0;for(var V=0;V<p.length;V++){var N=p[V],H=C[V];if(N>H)return!1;if(N<H)return!0}}; ro=function(p){var C=p>>>0;Wy=C;QR=(p-C)/4294967296>>>0}; Gt=function(p){if(p<0){ro(0-p);var C=g.F(By(Wy,QR));p=C.next().value;C=C.next().value;Wy=p>>>0;QR=C>>>0}else ro(p)}; jn=function(p,C){var V=C*4294967296+(p>>>0);return Number.isSafeInteger(V)?V:C_(p,C)}; Afy=function(p,C){var V=C&2147483648;V&&(p=~p+1>>>0,C=~C>>>0,p==0&&(C=C+1>>>0));p=jn(p,C);return typeof p==="number"?V?-p:p:V?"-"+p:p}; C_=function(p,C){C>>>=0;p>>>=0;if(C<=2097151)var V=""+(4294967296*C+p);else yR()?V=""+(BigInt(C)<<BigInt(32)|BigInt(p)):(V=(p>>>24|C<<8)&16777215,C=C>>16&65535,p=(p&16777215)+V*6777216+C*6710656,V+=C*8147497,C*=2,p>=1E7&&(V+=p/1E7>>>0,p%=1E7),V>=1E7&&(C+=V/1E7>>>0,V%=1E7),V=C+o2L(V)+o2L(p));return V}; o2L=function(p){p=String(p);return"0000000".slice(p.length)+p}; kps=function(){var p=Wy,C=QR;C&2147483648?yR()?p=""+(BigInt(C|0)<<BigInt(32)|BigInt(p>>>0)):(C=g.F(By(p,C)),p=C.next().value,C=C.next().value,p="-"+C_(p,C)):p=C_(p,C);return p}; Vx=function(p){if(p.length<16)Gt(Number(p));else if(yR())p=BigInt(p),Wy=Number(p&BigInt(4294967295))>>>0,QR=Number(p>>BigInt(32)&BigInt(4294967295));else{var C=+(p[0]==="-");QR=Wy=0;for(var V=p.length,N=0+C,H=(V-C)%6+C;H<=V;N=H,H+=6)N=Number(p.slice(N,H)),QR*=1E6,Wy=Wy*1E6+N,Wy>=4294967296&&(QR+=Math.trunc(Wy/4294967296),QR>>>=0,Wy>>>=0);C&&(C=g.F(By(Wy,QR)),p=C.next().value,C=C.next().value,Wy=p,QR=C)}}; By=function(p,C){C=~C;p?p=~p+1:C+=1;return[p,C]}; N1=function(p,C){throw Error(C===void 0?"unexpected value "+p+"!":C);}; HT=function(p){if(p!=null&&typeof p!=="number")throw Error("Value of float/double field must be a number, found "+typeof p+": "+p);return p}; xcV=function(p){return p.displayName||p.name||"unknown type name"}; X_=function(p){if(p!=null&&typeof p!=="boolean")throw Error("Expected boolean but got "+nY(p)+": "+p);return p}; dw=function(p){var C=typeof p;switch(C){case "bigint":return!0;case "number":return Number.isFinite(p)}return C!=="string"?!1:Y1a.test(p)}; zEV=function(p){if(typeof p!=="number")throw Ov("int32");if(!Number.isFinite(p))throw Ov("int32");return p|0}; ig=function(p){return p==null?p:zEV(p)}; sL=function(p){if(p==null)return p;if(typeof p==="string"){if(!p)return;p=+p}if(typeof p==="number")return Number.isFinite(p)?p|0:void 0}; aO=function(p){if(p==null)return p;if(typeof p==="string"){if(!p)return;p=+p}if(typeof p==="number")return Number.isFinite(p)?p>>>0:void 0}; n2S=function(p){var C=0;C=C===void 0?0:C;if(!dw(p))throw Ov("int64");var V=typeof p;switch(C){case 4096:switch(V){case "string":return EL(p);case "bigint":return String(BigInt.asIntN(64,p));default:return lg(p)}case 8192:switch(V){case "string":return C=Math.trunc(Number(p)),Number.isSafeInteger(C)?p=go(C):(C=p.indexOf("."),C!==-1&&(p=p.substring(0,C)),p=yR()?go(BigInt.asIntN(64,BigInt(p))):go(REQ(p))),p;case "bigint":return go(BigInt.asIntN(64,p));default:return Number.isSafeInteger(p)?go(tc(p)): go(lg(p))}case 0:switch(V){case "string":return EL(p);case "bigint":return go(BigInt.asIntN(64,p));default:return tc(p)}default:return N1(C,"Unknown format requested type for int64")}}; cT=function(p){return p==null?p:n2S(p)}; eEs=function(p){return p[0]==="-"?!1:p.length<20?!0:p.length===20&&Number(p.substring(0,6))<184467}; PPj=function(p){return p[0]==="-"?p.length<20?!0:p.length===20&&Number(p.substring(0,7))>-922337:p.length<19?!0:p.length===19&&Number(p.substring(0,6))<922337}; w5y=function(p){if(p<0){Gt(p);var C=C_(Wy,QR);p=Number(C);return Number.isSafeInteger(p)?p:C}C=String(p);if(eEs(C))return C;Gt(p);return jn(Wy,QR)}; REQ=function(p){if(PPj(p))return p;Vx(p);return kps()}; tc=function(p){dw(p);p=Math.trunc(p);Number.isSafeInteger(p)||(Gt(p),p=Afy(Wy,QR));return p}; lg=function(p){dw(p);p=Math.trunc(p);if(Number.isSafeInteger(p))p=String(p);else{var C=String(p);PPj(C)?p=C:(Gt(p),p=kps())}return p}; EL=function(p){dw(p);var C=Math.trunc(Number(p));if(Number.isSafeInteger(C))return String(C);C=p.indexOf(".");C!==-1&&(p=p.substring(0,C));return REQ(p)}; $c9=function(p){if(p==null)return p;if(typeof p==="bigint")return M1(p)?p=Number(p):(p=BigInt.asIntN(64,p),p=M1(p)?Number(p):String(p)),p;if(dw(p))return typeof p==="number"?tc(p):EL(p)}; Lrj=function(p){if(p==null)return p;var C=typeof p;if(C==="bigint")return String(BigInt.asIntN(64,p));if(dw(p)){if(C==="string")return EL(p);if(C==="number")return tc(p)}}; g2L=function(p){if(p==null)return p;var C=typeof p;if(C==="bigint")return String(BigInt.asUintN(64,p));if(dw(p)){if(C==="string")return dw(p),C=Math.trunc(Number(p)),Number.isSafeInteger(C)&&C>=0?p=String(C):(C=p.indexOf("."),C!==-1&&(p=p.substring(0,C)),eEs(p)||(Vx(p),p=C_(Wy,QR))),p;if(C==="number")return dw(p),p=Math.trunc(p),p>=0&&Number.isSafeInteger(p)?p:w5y(p)}}; Wre=function(p){if(p==null||typeof p=="string"||K6(p)||p instanceof DV)return p}; QFS=function(p){if(typeof p!=="string")throw Error();return p}; Jc=function(p){if(p!=null&&typeof p!=="string")throw Error();return p}; mK=function(p){return p==null||typeof p==="string"?p:void 0}; vT=function(p,C){if(!(p instanceof C))throw Error("Expected instanceof "+xcV(C)+" but got "+(p&&xcV(p.constructor)));return p}; rf9=function(p,C,V){if(p!=null&&typeof p==="object"&&p.hH===F_)return p;if(Array.isArray(p)){var N=xT(p),H=N;H===0&&(H|=V&32);H|=V&2;H!==N&&br(p,H);return new C(p)}}; jfS=function(p){Sn===void 0&&(Sn=typeof Proxy==="function"?BYs(Proxy):null);var C;(C=!Sn)||(K_===void 0&&(K_=typeof WeakMap==="function"?BYs(WeakMap):null),C=!K_);if(C)return p;if(C=DB(p))return C;if(Math.random()>.01)return p;GpV(p);C=new Sn(p,{set:function(V,N,H){pyY();V[N]=H;return!0}}); CrV(p,C);return C}; pyY=function(){uGV()}; DB=function(p){var C;return(C=ug)==null?void 0:C.get(p)}; VkS=function(p){var C;return((C=ZB)==null?void 0:C.get(p))||p}; CrV=function(p,C){(ug||(ug=new K_)).set(p,C);(ZB||(ZB=new K_)).set(C,p)}; BYs=function(p){try{return p.toString().indexOf("[native code]")!==-1?p:null}catch(C){return null}}; GpV=function(p){if(UL===void 0){var C=new Sn([],{});UL=Array.prototype.concat.call([],C).length===1}UL&&typeof Symbol==="function"&&Symbol.isConcatSpreadable&&(p[Symbol.isConcatSpreadable]=!0)}; H6Y=function(p){switch(typeof p){case "boolean":return f_||(f_=[0,void 0,!0]);case "number":return p>0?void 0:p===0?Nou||(Nou=[0,void 0]):[-p,void 0];case "string":return[0,p];case "object":return p}}; q1=function(p,C,V){p=OL(p,C[0],C[1],V?1:2);C!==f_&&V&&yx(p,16384);return p}; OL=function(p,C,V,N){var H;N=(H=N)!=null?H:0;if(p==null)H=96,V?(p=[V],H|=512):p=[],C&&(H=H&-33521665|(C&1023)<<15);else{if(!Array.isArray(p))throw Error("narr");H=xT(p);if(H&2048)throw Error("farr");if(H&64)return p;N===1||N===2||(H|=64);if(V&&(H|=512,V!==p[0]))throw Error("mid");a:{N=p;V=H;if(H=N.length){var X=H-1;if(kT(N[X])){V|=256;C=X-(+!!(V&512)-1);if(C>=1024)throw Error("pvtlmt");H=V&-33521665|(C&1023)<<15;break a}}if(C){C=Math.max(C,H-(+!!(V&512)-1));if(C>1024)throw Error("spvt");H=V&-33521665| (C&1023)<<15}else H=V}}br(p,H);return p}; dLQ=function(p,C){return Xya(C)}; Xya=function(p){switch(typeof p){case "number":return isFinite(p)?p:String(p);case "bigint":return M1(p)?Number(p):String(p);case "boolean":return p?1:0;case "object":if(p)if(Array.isArray(p)){if(Rf(p))return}else{if(K6(p))return TYQ(p);if(p instanceof DV){var C=p.T;return C==null?"":typeof C==="string"?C:p.T=TYQ(C)}}}return p}; i6e=function(p,C,V){var N=qL(p),H=N.length,X=C&256?N[H-1]:void 0;H+=X?-1:0;for(C=C&512?1:0;C<H;C++)N[C]=V(N[C]);if(X){C=N[C]={};for(var d in X)C[d]=V(X[d])}O0Q(N,p);return N}; h69=function(p,C,V,N,H){if(p!=null){if(Array.isArray(p))p=Rf(p)?void 0:H&&xT(p)&2?p:IO(p,C,V,N!==void 0,H);else if(kT(p)){var X={},d;for(d in p)X[d]=h69(p[d],C,V,N,H);p=X}else p=C(p,N);return p}}; IO=function(p,C,V,N,H){var X=N||V?xT(p):0;N=N?!!(X&32):void 0;for(var d=qL(p),a=0;a<d.length;a++)d[a]=h69(d[a],C,V,N,H);V&&(O0Q(d,p),V(X,d));return d}; sfH=function(p){return p.hH===F_?p.toJSON():Xya(p)}; aVX=function(p,C,V){V=V===void 0?AB:V;if(p!=null){if(FrX&&p instanceof Uint8Array)return C?p:new Uint8Array(p);if(Array.isArray(p)){var N=xT(p);if(N&2)return p;C&&(C=N===0||!!(N&32)&&!(N&64||!(N&16)));return C?(br(p,(N|34)&-12293),p):IO(p,aVX,N&4?AB:V,!0,!0)}p.hH===F_&&(V=p.bx,N=bg(V),p=N&2?p:new p.constructor(Ac(V,N,!0)));return p}}; Ac=function(p,C,V){var N=V||C&2?AB:Z0S,H=!!(C&32);p=i6e(p,C,function(X){return aVX(X,H,N)}); yx(p,32|(V?2:0));return p}; oO=function(p){var C=p.bx,V=bg(C);return V&2?new p.constructor(Ac(C,V,!1)):p}; xK=function(p,C){p=p.bx;return kK(p,bg(p),C)}; ETL=function(p,C,V,N){C=N+(+!!(C&512)-1);if(!(C<0||C>=p.length||C>=V))return p[C]}; kK=function(p,C,V,N){if(V===-1)return null;var H=C>>15&1023||536870912;if(V>=H){if(C&256)return p[p.length-1][V]}else{var X=p.length;if(N&&C&256&&(N=p[X-1][V],N!=null)){if(ETL(p,C,H,V)&&YK!=null){var d;p=(d=lVS)!=null?d:lVS={};d=p[YK]||0;d>=4||(p[YK]=d+1,uGV())}return N}return ETL(p,C,H,V)}}; RO=function(p,C,V){var N=p.bx,H=bg(N);n6(H);z9(N,H,C,V);return p}; z9=function(p,C,V,N){var H=C>>15&1023||536870912;if(V>=H){var X=C;if(C&256)var d=p[p.length-1];else{if(N==null)return X;d=p[H+(+!!(C&512)-1)]={};X|=256}d[V]=N;V<H&&(p[V+(+!!(C&512)-1)]=void 0);X!==C&&br(p,X);return X}p[V+(+!!(C&512)-1)]=N;C&256&&(p=p[p.length-1],V in p&&delete p[V]);return C}; n_=function(p,C,V){return tkj(p,C,V,!1)!==void 0}; gw=function(p,C,V,N,H,X){var d=p.bx;p=bg(d);N=2&p?1:N;X=!!X;H=en(d,p,C,H);var a=xT(H);if(!(4&a)){4&a&&(H=qL(H),a=PT(a,p),p=z9(d,p,C,H));for(var E=0,l=0;E<H.length;E++){var t=V(H[E]);t!=null&&(H[l++]=t)}l<E&&(H.length=l);a=ww(a,p);V=(a|20)&-4097;a=V&=-8193;br(H,a);2&a&&Object.freeze(H)}if(N===1||N===4&&32&a)$K(a)||(X=a,a|=2,a!==X&&br(H,a),Object.freeze(H));else if(V=N!==5?!1:!!(32&a)||$K(a)||!!DB(H),(N===2||V)&&$K(a)&&(H=qL(H),a=PT(a,p),a=L_(a,p,X),br(H,a),p=z9(d,p,C,H)),$K(a)||(C=a,a=L_(a,p,X),a!== C&&br(H,a)),V)var c=jfS(H);else if(N===2&&!X){var T;(T=ug)==null||T.delete(H)}return c||H}; en=function(p,C,V,N){p=kK(p,C,V,N);return Array.isArray(p)?p:WT}; ww=function(p,C){p===0&&(p=PT(p,C));return p|1}; $K=function(p){return!!(2&p)&&!!(4&p)||!!(2048&p)}; cBs=function(p){return fvQ(p,!0)}; Qx=function(p,C){p=p.bx;var V=bg(p),N=kK(p,V,C),H=cBs(N);H!=null&&H!==N&&z9(p,V,C,H);return H==null?ZV():H}; ToQ=function(p,C,V){var N=p.bx,H=bg(N);n6(H);if(C==null)return z9(N,H,3),p;C=VkS(C);if(!Array.isArray(C))throw Ov();var X=xT(C),d=X,a=$K(X),E=a||Object.isFrozen(C);a||(X=0);E||(C=qL(C),d=0,X=PT(X,H),X=L_(X,H,!0),E=!1);X|=21;a=4&X?4096&X?4096:8192&X?8192:0:void 0;a=a!=null?a:0;for(var l=0;l<C.length;l++){var t=C[l],c=V(t,a);Object.is(t,c)||(E&&(C=qL(C),d=0,X=PT(X,H),X=L_(X,H,!0),E=!1),C[l]=c)}X!==d&&(E&&(C=qL(C),X=PT(X,H),X=L_(X,H,!0)),br(C,X));z9(N,H,3,C);return p}; rw=function(p,C,V,N){var H=p.bx,X=bg(H);n6(X);z9(H,X,C,(N==="0"?Number(V)===0:V===N)?void 0:V);return p}; BT=function(p,C,V,N,H){n6(C);var X=!!(64&C)||!(16384&C);H=en(p,C,V,H);var d=H!==WT;if(X||!d){var a=X=d?xT(H):0;if(!d||2&a||$K(a)||4&a&&!(32&a))H=qL(H),a=PT(a,C),C=z9(p,C,V,H);a=ww(a,C)&-13;a=L_(N?a&-17:a|16,C,!0);a!==X&&br(H,a)}return H}; jq=function(p,C,V,N){var H=p.bx,X=bg(H);n6(X);if(N==null){var d=G9(H);if(py(d,H,X,V)===C)d.set(V,0);else return p}else X=Cy(H,X,V,C);z9(H,X,C,N);return p}; VG=function(p,C,V,N){var H=bg(p);H=Cy(p,H,V,C);z9(p,H,C,N)}; Nm=function(p,C){p=p.bx;return py(G9(p),p,bg(p),C)}; G9=function(p){if(H4){var C;return(C=p[Xa])!=null?C:p[Xa]=new Map}if(Xa in p)return p[Xa];C=new Map;Object.defineProperty(p,Xa,{value:C});return C}; Cy=function(p,C,V,N){V.includes(N);var H=G9(p),X=py(H,p,C,V);X!==N&&(X&&(C=z9(p,C,X)),H.set(V,N));return C}; py=function(p,C,V,N){var H=p.get(N);if(H!=null)return H;for(var X=H=0;X<N.length;X++){var d=N[X];kK(C,V,d)!=null&&(H!==0&&(V=z9(C,V,H)),H=d)}p.set(N,H);return H}; dC=function(p,C,V,N){var H=bg(p);N=kK(p,H,V,N);var X;if(N!=null&&N.hH===F_)return C=oO(N),C!==N&&z9(p,H,V,C),C.bx;if(Array.isArray(N)){var d=xT(N);d&2?X=q1(Ac(N,d,!1),C,!0):d&64?X=N:X=q1(X,C,!0)}else X=q1(void 0,C,!0);X!==N&&z9(p,H,V,X);return X}; tkj=function(p,C,V,N){p=p.bx;var H=bg(p);N=kK(p,H,V,N);C=rf9(N,C,H);C!==N&&C!=null&&z9(p,H,V,C);return C}; iB=function(p,C,V,N){C=tkj(p,C,V,N===void 0?!1:N);if(C==null)return C;p=p.bx;N=bg(p);if(!(N&2)){var H=oO(C);H!==C&&(C=H,z9(p,N,V,C))}return C}; MkX=function(p,C,V,N,H,X,d){p=p.bx;var a=!!(2&C);H=a?1:H;X=!!X;d&&(d=!a);a=en(p,C,N);var E=xT(a),l=!!(4&E);if(!l){E=ww(E,C);var t=a,c=C,T=!!(2&E);T&&(c|=2);for(var M=!T,J=!0,S=0,D=0;S<t.length;S++){var Z=rf9(t[S],V,c);if(Z instanceof V){if(!T){var f=!!(xT(Z.bx)&2);M&&(M=!f);J&&(J=f)}t[D++]=Z}}D<S&&(t.length=D);E|=4;E=J?E|16:E&-17;E=M?E|8:E&-9;br(t,E);T&&Object.freeze(t)}if(d&&!(8&E||!a.length&&(H===1||H===4&&32&E))){$K(E)&&(a=qL(a),E=PT(E,C),C=z9(p,C,N,a));V=a;d=E;for(t=0;t<V.length;t++)E=V[t],c= oO(E),E!==c&&(V[t]=c);d|=8;d=V.length?d&-17:d|16;br(V,d);E=d}if(H===1||H===4&&32&E)$K(E)||(C=E,E|=!a.length||16&E&&(!l||32&E)?2:2048,E!==C&&br(a,E),Object.freeze(a));else if(l=H!==5?!1:!!(32&E)||$K(E)||!!DB(a),(H===2||l)&&$K(E)&&(a=qL(a),E=PT(E,C),E=L_(E,C,X),br(a,E),C=z9(p,C,N,a)),$K(E)||(N=E,E=L_(E,C,X),E!==N&&br(a,E)),l)var q=jfS(a);else if(H===2&&!X){var A;(A=ug)==null||A.delete(a)}return q||a}; jy=function(p,C,V){var N=bg(p.bx);return MkX(p,N,C,V,void 0===JBY?2:4,!1,!(2&N))}; hP=function(p,C,V,N){N!=null?vT(N,C):N=void 0;return RO(p,V,N)}; sl=function(p,C,V,N){var H=p.bx,X=bg(H);n6(X);if(N==null)return z9(H,X,V),p;N=VkS(N);if(!Array.isArray(N))throw Ov();for(var d=xT(N),a=d,E=$K(d),l=E||Object.isFrozen(N),t=!0,c=!0,T=0;T<N.length;T++){var M=N[T];vT(M,C);E||(M=!!(xT(M.bx)&2),t&&(t=!M),c&&(c=M))}E||(d=t?13:5,d=c?d|16:d&-17);l&&d===a||(N=qL(N),a=0,d=PT(d,X),d=L_(d,X,!0));d!==a&&br(N,d);z9(H,X,V,N);return p}; PT=function(p,C){p=(2&C?p|2:p&-3)|32;return p&=-2049}; L_=function(p,C,V){32&C&&V||(p&=-33);return p}; at=function(p,C,V,N){var H=bg(p.bx);n6(H);p=MkX(p,H,V,C,2,!0);N=N!=null?vT(N,V):new V;p.push(N);xT(N.bx)&2?mLH(p,8):mLH(p,16)}; vTv=function(p){p=xK(p,1);var C=C===void 0?!1:C;var V=typeof p;C=p==null?p:V==="bigint"?String(BigInt.asIntN(64,p)):dw(p)?V==="string"?EL(p):C?lg(p):tc(p):void 0;return C}; lB=function(p,C){return p!=null?p:C}; tP=function(p,C){return mK(xK(p,C))}; XG=function(p,C,V){V=V===void 0?0:V;return lB(sL(xK(p,C)),V)}; c4=function(p,C){var V=V===void 0?0:V;return lB(aO(xK(p,C)),V)}; TA=function(p,C){var V=V===void 0?"":V;return lB(tP(p,C),V)}; Mm=function(p,C){var V=0;V=V===void 0?0:V;p=xK(p,C);p=p==null?p:Number.isFinite(p)?p|0:void 0;return lB(p,V)}; JP=function(p,C,V){return RO(p,C,cT(V))}; mM=function(p,C,V){return RO(p,C,Jc(V))}; v4=function(p,C,V){return rw(p,C,Jc(V),"")}; Fa=function(p,C,V){if(V!=null){if(!Number.isFinite(V))throw Ov("enum");V|=0}return RO(p,C,V)}; FqX=function(p,C){return Error("Invalid wire type: "+p+" (at position "+C+")")}; Sq=function(){return Error("Failed to read varint, encoding is invalid.")}; Svv=function(p,C){return Error("Tried to read past the end of the data "+C+" > "+p)}; Ky=function(p){if(typeof p==="string")return{buffer:v2u(p),fg:!1};if(Array.isArray(p))return{buffer:new Uint8Array(p),fg:!1};if(p.constructor===Uint8Array)return{buffer:p,fg:!1};if(p.constructor===ArrayBuffer)return{buffer:new Uint8Array(p),fg:!1};if(p.constructor===DV)return{buffer:Uv(p)||new Uint8Array(0),fg:!0};if(p instanceof Uint8Array)return{buffer:new Uint8Array(p.buffer,p.byteOffset,p.byteLength),fg:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; Kq1=function(p,C){this.C=null;this.W=!1;this.T=this.V=this.S=0;this.init(p,void 0,void 0,C)}; Zm=function(p){var C=0,V=0,N=0,H=p.C,X=p.T;do{var d=H[X++];C|=(d&127)<<N;N+=7}while(N<32&&d&128);N>32&&(V|=(d&127)>>4);for(N=3;N<32&&d&128;N+=7)d=H[X++],V|=(d&127)<<N;Dm(p,X);if(d<128)return Afy(C>>>0,V>>>0);throw Sq();}; Dm=function(p,C){p.T=C;if(C>p.V)throw Svv(p.V,C);}; Ul=function(p){var C=p.C,V=p.T,N=C[V++],H=N&127;if(N&128&&(N=C[V++],H|=(N&127)<<7,N&128&&(N=C[V++],H|=(N&127)<<14,N&128&&(N=C[V++],H|=(N&127)<<21,N&128&&(N=C[V++],H|=N<<28,N&128&&C[V++]&128&&C[V++]&128&&C[V++]&128&&C[V++]&128&&C[V++]&128)))))throw Sq();Dm(p,V);return H}; fy=function(p){var C=p.C,V=p.T,N=C[V+0],H=C[V+1],X=C[V+2];C=C[V+3];Dm(p,p.T+4);return(N<<0|H<<8|X<<16|C<<24)>>>0}; Ol=function(p){var C=fy(p);p=fy(p);return jn(C,p)}; yG=function(p){var C=fy(p),V=fy(p);p=(V>>31)*2+1;var N=V>>>20&2047;C=4294967296*(V&1048575)+C;return N==2047?C?NaN:p*Infinity:N==0?p*4.9E-324*C:p*Math.pow(2,N-1075)*(C+4503599627370496)}; qm=function(p){for(var C=0,V=p.T,N=V+10,H=p.C;V<N;){var X=H[V++];C|=X;if((X&128)===0)return Dm(p,V),!!(C&127)}throw Sq();}; DLV=function(p,C){if(C<0)throw Error("Tried to read a negative byte length: "+C);var V=p.T,N=V+C;if(N>p.V)throw Svv(C,p.V-V);p.T=N;return V}; Z6L=function(p,C){if(C==0)return ZV();var V=DLV(p,C);p.ol&&p.W?V=p.C.subarray(V,V+C):(p=p.C,C=V+C,V=V===C?new Uint8Array(0):uvX?p.slice(V,C):new Uint8Array(p.subarray(V,C)));return V.length==0?ZV():new DV(V,ur)}; bB=function(p,C){if(It.length){var V=It.pop();V.init(p,void 0,void 0,C);p=V}else p=new Kq1(p,C);this.T=p;this.V=this.T.T;this.C=this.S=-1;ULH(this,C)}; ULH=function(p,C){C=C===void 0?{}:C;p.N7=C.N7===void 0?!1:C.N7}; fVX=function(p){var C=p.T;if(C.T==C.V)return!1;p.V=p.T.T;var V=Ul(p.T)>>>0;C=V>>>3;V&=7;if(!(V>=0&&V<=5))throw FqX(V,p.V);if(C<1)throw Error("Invalid field number: "+C+" (at position "+p.V+")");p.S=C;p.C=V;return!0}; AP=function(p){switch(p.C){case 0:p.C!=0?AP(p):qm(p.T);break;case 1:p=p.T;Dm(p,p.T+8);break;case 2:if(p.C!=2)AP(p);else{var C=Ul(p.T)>>>0;p=p.T;Dm(p,p.T+C)}break;case 5:p=p.T;Dm(p,p.T+4);break;case 3:C=p.S;do{if(!fVX(p))throw Error("Unmatched start-group tag: stream EOF");if(p.C==4){if(p.S!=C)throw Error("Unmatched end-group tag");break}AP(p)}while(1);break;default:throw FqX(p.C,p.V);}}; ot=function(p,C,V){var N=p.T.V,H=Ul(p.T)>>>0,X=p.T.T+H,d=X-N;d<=0&&(p.T.V=X,V(C,p,void 0,void 0,void 0),d=X-p.T.T);if(d)throw Error("Message parsing ended unexpectedly. Expected to read "+(H+" bytes, instead read "+(H-d)+" bytes, either the data ended unexpectedly or the message misreported its own length"));p.T.T=X;p.T.V=N}; YV=function(p){var C=Ul(p.T)>>>0;p=p.T;var V=DLV(p,C);p=p.C;if(O69){var N=p,H;(H=kV)||(H=kV=new TextDecoder("utf-8",{fatal:!0}));C=V+C;N=V===0&&C===N.length?N:N.subarray(V,C);try{var X=H.decode(N)}catch(l){if(xV===void 0){try{H.decode(new Uint8Array([128]))}catch(t){}try{H.decode(new Uint8Array([97])),xV=!0}catch(t){xV=!1}}!xV&&(kV=void 0);throw l;}}else{X=V;C=X+C;V=[];for(var d=null,a,E;X<C;)a=p[X++],a<128?V.push(a):a<224?X>=C?Mc():(E=p[X++],a<194||(E&192)!==128?(X--,Mc()):V.push((a&31)<<6|E&63)): a<240?X>=C-1?Mc():(E=p[X++],(E&192)!==128||a===224&&E<160||a===237&&E>=160||((H=p[X++])&192)!==128?(X--,Mc()):V.push((a&15)<<12|(E&63)<<6|H&63)):a<=244?X>=C-2?Mc():(E=p[X++],(E&192)!==128||(a<<28)+(E-144)>>30!==0||((H=p[X++])&192)!==128||((N=p[X++])&192)!==128?(X--,Mc()):(a=(a&7)<<18|(E&63)<<12|(H&63)<<6|N&63,a-=65536,V.push((a>>10&1023)+55296,(a&1023)+56320))):Mc(),V.length>=8192&&(d=bY1(d,V),V.length=0);X=bY1(d,V)}return X}; yBL=function(p){var C=Ul(p.T)>>>0;return Z6L(p.T,C)}; qvu=function(p){return p}; ny=function(p){return p}; oTL=function(p,C,V,N){return IVS(p,C,V,N,b6v,ABV)}; YvY=function(p,C,V,N){return IVS(p,C,V,N,kta,xLY)}; IVS=function(p,C,V,N,H,X){if(!V.length&&!N)return 0;for(var d=0,a=0,E=0,l=0,t=0,c=V.length-1;c>=0;c--){var T=V[c];N&&c===V.length-1&&T===N||(l++,T!=null&&E++)}if(N)for(var M in N)c=+M,isNaN(c)||(t+=z6S(c),a++,c>d&&(d=c));l=H(l,E)+X(a,d,t);M=E;c=a;T=d;for(var J=t,S=V.length-1;S>=0;S--){var D=V[S];if(!(D==null||N&&S===V.length-1&&D===N)){D=S-C;var Z=H(D,M)+X(c,T,J);Z<l&&(p=1+D,l=Z);c++;M--;J+=z6S(D);T=Math.max(T,D)}}C=H(0,0)+X(c,T,J);C<l&&(p=0,l=C);if(N){c=a;T=d;J=t;M=E;for(var f in N)N=+f,isNaN(N)|| N>=1024||(c--,M++,J-=f.length,d=H(N,M)+X(c,T,J),d<l&&(p=1+N,l=d))}return p}; xLY=function(p,C,V){return V+p*3+(p>1?p-1:0)}; kta=function(p,C){return(p>1?p-1:0)+(p-C)*4}; ABV=function(p,C){return p==0?0:9*Math.max(1<<32-Math.clz32(p+p/2-1),4)<=C?p==0?0:p<4?100+(p-1)*16:p<6?148+(p-4)*16:p<12?244+(p-6)*16:p<22?436+(p-12)*19:p<44?820+(p-22)*17:52+32*p:40+4*C}; b6v=function(p){return 40+4*p}; z6S=function(p){return p>=100?p>=1E4?Math.ceil(Math.log10(1+p)):p<1E3?3:4:p<10?1:2}; eq=function(p,C,V){this.bx=OL(p,C,V)}; R69=function(p,C){if(C==null||C=="")return new p;C=JSON.parse(C);if(!Array.isArray(C))throw Error("dnarr");yx(C,32);return new p(C)}; $V=function(p){var C=p.bx;C=P4?C:IO(C,sfH,void 0,void 0,!1);var V=!P4,N=bg(V?p.bx:C);if(p=C.length){var H=C[p-1],X=kT(H);X?p--:H=void 0;var d=+!!(N&512)-1,a=p-d;N=!!wC&&!(N&512);var E,l=(E=wC)!=null?E:ny;E=N?l(a,d,C,H):a;N=(a=N&&a!==E)?Array.prototype.slice.call(C,0,p):C;if(X||a){b:{var t=N;var c=H;var T;X=!1;if(a)for(l=Math.max(0,E+d);l<t.length;l++){var M=t[l],J=l-d;M==null||Rf(M)||of(M)&&M.size===0||(X=t[l]=void 0,((X=T)!=null?X:T={})[J]=M,X=!0)}if(c)for(var S in c)if(l=+S,isNaN(l))l=void 0,((l= T)!=null?l:T={})[S]=c[S];else if(M=c[S],Array.isArray(M)&&(Rf(M)||of(M)&&M.size===0)&&(M=null),M==null&&(X=!0),a&&l<E){X=!0;M=l+d;for(J=t.length;J<=M;J++)t.push(void 0);t[M]=c[l]}else M!=null&&(l=void 0,((l=T)!=null?l:T={})[S]=M);X||(T=c);if(T)for(var D in T){c=T;break b}c=null}t=c==null?H!=null:c!==H}a&&(p=N.length);for(;p>0;p--){T=N[p-1];if(!(T==null||Rf(T)||of(T)&&T.size===0))break;var Z=!0}if(N!==C||t||Z){if(!a&&!V)N=Array.prototype.slice.call(N,0,p);else if(Z||t||c)N.length=p;c&&N.push(c)}Z= N}else Z=C;return Z}; Ly=function(p,C){this.C=p>>>0;this.T=C>>>0}; e6s=function(p){if(!p)return nTS||(nTS=new Ly(0,0));if(!/^\d+$/.test(p))return null;Vx(p);return new Ly(Wy,QR)}; gC=function(p,C){this.C=p>>>0;this.T=C>>>0}; wye=function(p){if(!p)return PrQ||(PrQ=new gC(0,0));if(!/^-?\d+$/.test(p))return null;Vx(p);return new gC(Wy,QR)}; W4=function(){this.T=[]}; QG=function(p,C,V){for(;V>0||C>127;)p.T.push(C&127|128),C=(C>>>7|V<<25)>>>0,V>>>=7;p.T.push(C)}; rC=function(p,C){for(;C>127;)p.T.push(C&127|128),C>>>=7;p.T.push(C)}; $Lu=function(p,C){if(C>=0)rC(p,C);else{for(var V=0;V<9;V++)p.T.push(C&127|128),C>>=7;p.T.push(1)}}; B4=function(p,C){p.T.push(C>>>0&255);p.T.push(C>>>8&255);p.T.push(C>>>16&255);p.T.push(C>>>24&255)}; Lqu=function(){this.V=[];this.C=0;this.T=new W4}; GA=function(p,C){C.length!==0&&(p.V.push(C),p.C+=C.length)}; gTu=function(p,C){pH(p,C,2);C=p.T.end();GA(p,C);C.push(p.C);return C}; Wq9=function(p,C){var V=C.pop();for(V=p.C+p.T.length()-V;V>127;)C.push(V&127|128),V>>>=7,p.C++;C.push(V);p.C++}; pH=function(p,C,V){rC(p.T,C*8+V)}; Qfj=function(p,C,V){if(V!=null){switch(typeof V){case "string":e6s(V)}pH(p,C,1);switch(typeof V){case "number":p=p.T;ro(V);B4(p,Wy);B4(p,QR);break;case "bigint":V=BigInt.asUintN(64,V);V=new Ly(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));p=p.T;C=V.T;B4(p,V.C);B4(p,C);break;default:V=e6s(V),p=p.T,C=V.T,B4(p,V.C),B4(p,C)}}}; CH=function(p,C,V){pH(p,C,2);rC(p.T,V.length);GA(p,p.T.end());GA(p,V)}; jl=function(){function p(){throw Error();} Object.setPrototypeOf(p,p.prototype);return p}; NX=function(p,C,V){this.If=p;this.r$=C;p=vHV(V5);this.T=!!p&&V===p||!1}; Hn=function(p,C){var V=V===void 0?V5:V;return new NX(p,C,V)}; BoY=function(p,C,V,N,H){C=rB1(C,N);C!=null&&(V=gTu(p,V),H(C,p),Wq9(p,V))}; i0=function(p,C,V,N){var H=N[p];if(H)return H;H={};H.GD=H6Y(N[0]);var X=N[1],d=1;X&&X.constructor===Object&&(H.extensions=X,X=N[++d],typeof X==="function"&&(H.TK=!0,XH!=null||(XH=X),dV!=null||(dV=N[d+1]),X=N[d+=2]));for(var a={};X&&Array.isArray(X)&&X.length&&typeof X[0]==="number"&&X[0]>0;){for(var E=0;E<X.length;E++)a[X[E]]=X;X=N[++d]}for(E=1;X!==void 0;){typeof X==="number"&&(E+=X,X=N[++d]);var l=void 0;if(X instanceof NX)var t=X;else t=Gts,d--;X=void 0;if((X=t)==null?0:X.T){X=N[++d];l=N;var c= d;typeof X==="function"&&(X=X(),l[c]=X);l=X}X=N[++d];c=E+1;typeof X==="number"&&X<0&&(c-=X,X=N[++d]);for(;E<c;E++){var T=a[E];l?V(H,E,t,l,T):C(H,E,t,T)}}return N[p]=H}; CgY=function(p){return Array.isArray(p)?p[0]instanceof NX?p:[pTe,p]:[p,void 0]}; rB1=function(p,C){if(p instanceof eq)return p.bx;if(Array.isArray(p))return q1(p,C,!1)}; sQ=function(p,C,V,N){var H=V.If;p[C]=N?function(X,d,a){return H(X,d,a,N)}:H}; EQ=function(p,C,V,N,H){var X=V.If,d,a;p[C]=function(E,l,t){return X(E,l,t,a||(a=i0(ac,sQ,EQ,N).GD),d||(d=l0(N)),H)}}; l0=function(p){var C=p[jOQ];if(C!=null)return C;var V=i0(ac,sQ,EQ,p);C=V.TK?function(N,H){return XH(N,H,V)}:function(N,H){for(var X=bg(N);fVX(H)&&H.C!=4;){var d=H.S,a=V[d]; if(a==null){var E=V.extensions;E&&(E=E[d])&&(E=Vns(E),E!=null&&(a=V[d]=E))}a!=null&&a(H,N,d)||(a=H,d=a.V,AP(a),a.N7?a=void 0:(E=a.T.T-d,a.T.T=d,a=Z6L(a.T,E)),d=N,a&&(Py||(Py=Symbol()),(E=d[Py])?E.push(a):d[Py]=[a]))}X&16384&&yx(N,34);return!0}; return p[jOQ]=C}; Vns=function(p){p=CgY(p);var C=p[0].If;if(p=p[1]){var V=l0(p),N=i0(ac,sQ,EQ,p).GD;return function(H,X,d){return C(H,X,d,N,V)}}return C}; tb=function(p,C,V){p[C]=V.r$}; TN=function(p,C,V,N){var H,X,d=V.r$;p[C]=function(a,E,l){return d(a,E,l,X||(X=i0(cn,tb,TN,N).GD),H||(H=NwL(N)))}}; NwL=function(p){var C=p[H_a];if(!C){var V=i0(cn,tb,TN,p);C=function(N,H){return XTH(N,H,V)}; p[H_a]=C}return C}; XTH=function(p,C,V){for(var N=xT(p),H=+!!(N&512)-1,X=p.length,d=X+(N&256?-1:0),a=N&512?1:0;a<d;a++){var E=p[a];if(E!=null){var l=a-H,t=d1H(V,l);t&&t(C,E,l)}}if(N&256){N=p[X-1];for(var c in N)H=+c,Number.isNaN(H)||(X=N[H],X!=null&&(d=d1H(V,H))&&d(C,X,H))}if(p=Py?p[Py]:void 0)for(GA(C,C.T.end()),V=0;V<p.length;V++)GA(C,Uv(p[V])||new Uint8Array(0))}; d1H=function(p,C){var V=p[C];if(V)return V;if(V=p.extensions)if(V=V[C]){V=CgY(V);var N=V[0].r$;if(V=V[1]){var H=NwL(V),X=i0(cn,tb,TN,V).GD;V=p.TK?dV(X,H):function(d,a,E){return N(d,a,E,X,H)}}else V=N; return p[C]=V}}; MX=function(p,C,V){if(Array.isArray(C)){var N=xT(C);if(N&4)return C;for(var H=0,X=0;H<C.length;H++){var d=p(C[H]);d!=null&&(C[X++]=d)}X<H&&(C.length=X);V&&(br(C,(N|5)&-12289),N&2&&Object.freeze(C));return C}}; Jb=function(p,C,V){return new NX(p,C,V)}; ma=function(p,C,V){return new NX(p,C,V)}; vn=function(p,C,V){z9(p,bg(p),C,V)}; FH=function(p,C,V){C=C==null||typeof C==="number"?C:C==="NaN"||C==="Infinity"||C==="-Infinity"?Number(C):void 0;C!=null&&(pH(p,V,1),p=p.T,V=i_V||(i_V=new DataView(new ArrayBuffer(8))),V.setFloat64(0,+C,!0),Wy=V.getUint32(0,!0),QR=V.getUint32(4,!0),B4(p,Wy),B4(p,QR))}; Sl=function(p,C,V){C=Lrj(C);if(C!=null){switch(typeof C){case "string":wye(C)}if(C!=null)switch(pH(p,V,0),typeof C){case "number":p=p.T;Gt(C);QG(p,Wy,QR);break;case "bigint":V=BigInt.asUintN(64,C);V=new gC(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));QG(p.T,V.C,V.T);break;default:V=wye(C),QG(p.T,V.C,V.T)}}}; KH=function(p,C,V){C=sL(C);C!=null&&C!=null&&(pH(p,V,0),$Lu(p.T,C))}; hjY=function(p,C,V){C=C==null||typeof C==="boolean"?C:typeof C==="number"?!!C:void 0;C!=null&&(pH(p,V,0),p.T.T.push(C?1:0))}; sOX=function(p,C,V){C=mK(C);C!=null&&CH(p,V,xse(C))}; aBy=function(p,C,V,N,H){C=rB1(C,N);C!=null&&(V=gTu(p,V),H(C,p),Wq9(p,V))}; EKu=function(p){return function(){var C=new Lqu;XTH(this.bx,C,i0(cn,tb,TN,p));GA(C,C.T.end());for(var V=new Uint8Array(C.C),N=C.V,H=N.length,X=0,d=0;d<H;d++){var a=N[d];V.set(a,X);X+=a.length}C.V=[V];return V}}; Du=function(p){return function(C){return R69(p,C)}}; lB1=function(p){this.bx=OL(p)}; tn1=function(p,C){return ToQ(p,C,zEV)}; u0=function(p){this.bx=OL(p)}; Zu=function(p){this.bx=OL(p)}; UQ=function(p){this.bx=OL(p)}; fH=function(p){this.bx=OL(p)}; ccv=function(p){this.bx=OL(p)}; g.JcV=function(p){var C=new fH;C=mM(C,1,p.C);var V=Tws(p);C=ToQ(C,V,QFS);V=[];for(var N=[],H=g.F(p.T.keys()),X=H.next();!X.done;X=H.next())N.push(X.value.split(","));for(H=0;H<N.length;H++){X=N[H];for(var d=p.S,a=p.Fh(X)||[],E=[],l=0;l<a.length;l++){var t=a[l],c=t&&t.T;t=new Zu;switch(d){case 3:c=Number(c);Number.isFinite(c)&&jq(t,1,OQ,cT(c));break;case 2:jq(t,2,OQ,HT(Number(c)))}E.push(t)}d=E;for(a=0;a<d.length;a++){E=d[a];l=new UQ;E=hP(l,Zu,2,E);l=[];t=Mne(p);for(c=0;c<t.length;c++){var T=t[c], M=X[c],J=new u0;switch(T){case 3:jq(J,1,y5,Jc(String(M)));break;case 2:T=Number(M);Number.isFinite(T)&&jq(J,2,y5,ig(T));break;case 1:jq(J,3,y5,X_(M==="true"))}l.push(J)}sl(E,u0,1,l);V.push(E)}}sl(C,UQ,4,V);return C}; m1a=function(p){if(!p)return"";if(/^about:(?:blank|srcdoc)$/.test(p))return window.origin||"";p.indexOf("blob:")===0&&(p=p.substring(5));p=p.split("#")[0].split("?")[0];p=p.toLowerCase();p.indexOf("//")==0&&(p=window.location.protocol+p);/^[\w\-]*:\/\//.test(p)||(p=window.location.href);var C=p.substring(p.indexOf("://")+3),V=C.indexOf("/");V!=-1&&(C=C.substring(0,V));V=p.substring(0,p.indexOf("://"));if(!V)throw Error("URI is missing protocol: "+p);if(V!=="http"&&V!=="https"&&V!=="chrome-extension"&& V!=="moz-extension"&&V!=="file"&&V!=="android-app"&&V!=="chrome-search"&&V!=="chrome-untrusted"&&V!=="chrome"&&V!=="app"&&V!=="devtools")throw Error("Invalid URI scheme in origin: "+V);p="";var N=C.indexOf(":");if(N!=-1){var H=C.substring(N+1);C=C.substring(0,N);if(V==="http"&&H!=="80"||V==="https"&&H!=="443")p=":"+H}return V+"://"+C+p}; vKV=function(){function p(){H[0]=1732584193;H[1]=4023233417;H[2]=2562383102;H[3]=271733878;H[4]=3285377520;t=l=0} function C(c){for(var T=d,M=0;M<64;M+=4)T[M/4]=c[M]<<24|c[M+1]<<16|c[M+2]<<8|c[M+3];for(M=16;M<80;M++)c=T[M-3]^T[M-8]^T[M-14]^T[M-16],T[M]=(c<<1|c>>>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<S;++J)M.push(c.charCodeAt(J));c=M}T||(T=c.length);M=0;if(l==0)for(;M+64<T;)C(c.slice(M,M+64)),M+=64,t+=64;for(;M<T;)if(X[l++]=c[M++],t++,l==64)for(l=0,C(X);M+64<T;)C(c.slice(M,M+64)),M+=64,t+=64} function N(){var c=[],T=t*8;l<56?V(a,56-l):V(a,64-(l-56));for(var M=63;M>=56;M--)X[M]=T&255,T>>>=8;C(X);for(M=T=0;M<5;M++)for(var J=24;J>=0;J-=8)c[T++]=H[M]>>J&255;return c} for(var H=[],X=[],d=[],a=[128],E=1;E<64;++E)a[E]=0;var l,t;p();return{reset:p,update:V,digest:N,KU:function(){for(var c=N(),T="",M=0;M<c.length;M++)T+="0123456789ABCDEF".charAt(Math.floor(c[M]/16))+"0123456789ABCDEF".charAt(c[M]%16);return T}}}; SLL=function(p,C,V){var N=String(g.xH.location.href);return N&&p&&C?[C,FKu(m1a(N),p,V||null)].join(" "):null}; FKu=function(p,C,V){var N=[],H=[];if((Array.isArray(V)?2:1)==1)return H=[C,p],g.lr(N,function(a){H.push(a)}),KKY(H.join(" ")); var X=[],d=[];g.lr(V,function(a){d.push(a.key);X.push(a.value)}); V=Math.floor((new Date).getTime()/1E3);H=X.length==0?[V,C,p]:[X.join(":"),V,C,p];g.lr(N,function(a){H.push(a)}); p=KKY(H.join(" "));p=[V,p];d.length==0||p.push(d.join(""));return p.join("_")}; KKY=function(p){var C=vKV();C.update(p);return C.KU().toLowerCase()}; u_Y=function(){var p=null;if(!D1Y)return p;try{var C=function(V){return V}; p=D1Y.createPolicy("goog#html",{createHTML:C,createScript:C,createScriptURL:C})}catch(V){}return p}; Ic=function(){qX===void 0&&(qX=u_Y());return qX}; b0=function(p){this.T=p}; Ab=function(p){var C=Ic();return new b0(C?C.createScriptURL(p):p)}; oc=function(p){if(p instanceof b0)return p.T;throw Error("");}; ke=function(p){this.T=p}; g.xe=function(p){if(p instanceof ke)return p.T;throw Error("");}; Ye=function(p){this.GN=p}; zN=function(p){return new Ye(function(C){return C.substr(0,p.length+1).toLowerCase()===p+":"})}; g.Rc=function(p,C){C=C===void 0?Z_u:C;a:if(C=C===void 0?Z_u:C,!(p instanceof ke)){for(var V=0;V<C.length;++V){var N=C[V];if(N instanceof Ye&&N.GN(p)){p=new ke(p);break a}}p=void 0}return p||U1s}; O_1=function(p){if(fBa.test(p))return p}; nH=function(p){return p instanceof ke?g.xe(p):O_1(p)}; g.el=function(p,C){C=nH(C);C!==void 0&&(p.href=C)}; Pn=function(){this.T=ycH[0].toLowerCase()}; wV=function(p){this.T=p}; $e=function(p){var C=Ic();return new wV(C?C.createHTML(p):p)}; LH=function(p){if(p instanceof wV)return p.T;throw Error("");}; qLS=function(p){var C="true".toString(),V=[new Pn];if(V.length===0)throw Error("");if(V.map(function(N){if(N instanceof Pn)N=N.T;else throw Error("");return N}).every(function(N){return"data-loaded".indexOf(N)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); p.setAttribute("data-loaded",C)}; g.gV=function(p,C,V,N){C=nH(C);return C!==void 0?p.open(C,V,N):null}; Wn=function(p){p=p===void 0?document:p;var C,V;p=(V=(C="document"in p?p.document:p).querySelector)==null?void 0:V.call(C,"script[nonce]");return p==null?"":p.nonce||p.getAttribute("nonce")||""}; Q5=function(p){this.T=p}; IBs=function(p){var C=Ic();return new Q5(C?C.createScript(p):p)}; rV=function(p){if(p instanceof Q5)return p.T;throw Error("");}; Bn=function(p){var C=Wn(p.ownerDocument&&p.ownerDocument.defaultView||window);C&&p.setAttribute("nonce",C)}; g.GN=function(p,C){p.src=oc(C);Bn(p)}; b_u=function(p){var C=g.zV("window.location.href");p==null&&(p='Unknown Error of type "null/undefined"');if(typeof p==="string")return{message:p,name:"Unknown error",lineNumber:"Not available",fileName:C,stack:"Not available"};var V=!1;try{var N=p.lineNumber||p.line||"Not available"}catch(d){N="Not available",V=!0}try{var H=p.fileName||p.filename||p.sourceURL||g.xH.$googDebugFname||C}catch(d){H="Not available",V=!0}C=pG(p);if(!(!V&&p.lineNumber&&p.fileName&&p.stack&&p.message&&p.name)){V=p.message; if(V==null){if(p.constructor&&p.constructor instanceof Function){if(p.constructor.name)V=p.constructor.name;else if(V=p.constructor,CG[V])V=CG[V];else{V=String(V);if(!CG[V]){var X=/function\s+([^\(]+)/m.exec(V);CG[V]=X?X[1]:"[Anonymous]"}V=CG[V]}V='Unknown Error of type "'+V+'"'}else V="Unknown Error of unknown type";typeof p.toString==="function"&&Object.prototype.toString!==p.toString&&(V+=": "+p.toString())}return{message:V,name:p.name||"UnknownError",lineNumber:N,fileName:H,stack:C||"Not available"}}return{message:p.message, name:p.name,lineNumber:p.lineNumber,fileName:p.fileName,stack:C}}; pG=function(p,C){C||(C={});C[jg(p)]=!0;var V=p.stack||"",N=p.cause;N&&!C[jg(N)]&&(V+="\nCaused by: ",N.stack&&N.stack.indexOf(N.toString())==0||(V+=typeof N==="string"?N:N.message+"\n"),V+=pG(N,C));p=p.errors;if(Array.isArray(p)){N=1;var H;for(H=0;H<p.length&&!(N>4);H++)C[jg(p[H])]||(V+="\nInner error "+N++ +": ",p[H].stack&&p[H].stack.indexOf(p[H].toString())==0||(V+=typeof p[H]==="string"?p[H]:p[H].message+"\n"),V+=pG(p[H],C));H<p.length&&(V+="\n... "+(p.length-H)+" more inner errors")}return V}; jg=function(p){var C="";typeof p.toString==="function"&&(C=""+p);return C+p.stack}; VW=function(p,C,V){return p.parseFromString(LH(C),V)}; g.N$=function(p){return encodeURIComponent(String(p))}; HG=function(p){return decodeURIComponent(p.replace(/\+/g," "))}; Xn=function(p){Acv.test(p)&&(p.indexOf("&")!=-1&&(p=p.replace(oKs,"&")),p.indexOf("<")!=-1&&(p=p.replace(k9Q,"<")),p.indexOf(">")!=-1&&(p=p.replace(x1a,">")),p.indexOf('"')!=-1&&(p=p.replace(YLL,""")),p.indexOf("'")!=-1&&(p=p.replace(zjj,"'")),p.indexOf("\x00")!=-1&&(p=p.replace(Rja,"�")));return p}; g.dI=function(p){return p==null?"":String(p)}; ic=function(p){for(var C=0,V=0;V<p.length;++V)C=31*C+p.charCodeAt(V)>>>0;return C}; h9=function(p){var C=Number(p);return C==0&&g.Sy(p)?NaN:C}; nKs=function(p){return String(p).replace(/\-([a-z])/g,function(C,V){return V.toUpperCase()})}; ejS=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Pg9=function(p){return p.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(C,V,N){return V+N.toUpperCase()})}; wT9=function(p){var C=1;p=p.split(":");for(var V=[];C>0&&p.length;)V.push(p.shift()),C--;p.length&&V.push(p.join(":"));return V}; s_=function(p){this.T=p||{cookie:""}}; aa=function(p){p=(p.T.cookie||"").split(";");for(var C=[],V=[],N,H,X=0;X<p.length;X++)H=uP(p[X]),N=H.indexOf("="),N==-1?(C.push(""),V.push(H)):(C.push(H.substring(0,N)),V.push(H.substring(N+1)));return{keys:C,values:V}}; $1u=function(){var p=g.xH.__SAPISID||g.xH.__APISID||g.xH.__3PSAPISID||g.xH.__1PSAPISID||g.xH.__OVERRIDE_SID;if(p)return!0;typeof document!=="undefined"&&(p=new s_(document),p=p.get("SAPISID")||p.get("APISID")||p.get("__Secure-3PAPISID")||p.get("__Secure-1PAPISID"));return!!p}; LKa=function(p,C,V,N){(p=g.xH[p])||typeof document==="undefined"||(p=(new s_(document)).get(C));return p?SLL(p,V,N):null}; gKY=function(p){var C=m1a(String(g.xH.location.href)),V=[];if($1u()){C=C.indexOf("https:")==0||C.indexOf("chrome-extension:")==0||C.indexOf("chrome-untrusted://new-tab-page")==0||C.indexOf("moz-extension:")==0;var N=C?g.xH.__SAPISID:g.xH.__APISID;N||typeof document==="undefined"||(N=new s_(document),N=N.get(C?"SAPISID":"APISID")||N.get("__Secure-3PAPISID"));(N=N?SLL(N,C?"SAPISIDHASH":"APISIDHASH",p):null)&&V.push(N);C&&((C=LKa("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",p))&&V.push(C),(p=LKa("__3PSAPISID", "__Secure-3PAPISID","SAPISID3PHASH",p))&&V.push(p))}return V.length==0?null:V.join(" ")}; E_=function(){}; lc=function(p){this.bx=OL(p)}; t9=function(p,C){this.intervalMs=p;this.callback=C;this.enabled=!1;this.T=function(){return g.QL()}; this.C=this.T()}; cG=function(p){this.bx=OL(p)}; Th=function(p){this.bx=OL(p)}; g.J9=function(p,C,V){return Math.min(Math.max(p,C),V)}; g.m9=function(p,C){p%=C;return p*C<0?p+C:p}; vG=function(p,C,V){return p+V*(C-p)}; g.Fn=function(p,C){this.x=p!==void 0?p:0;this.y=C!==void 0?C:0}; Sg=function(p,C){return p==C?!0:p&&C?p.x==C.x&&p.y==C.y:!1}; g.KG=function(p,C){this.width=p;this.height=C}; g.DH=function(p,C){return p==C?!0:p&&C?p.width==C.width&&p.height==C.height:!1}; uc=function(p){return p.width*p.height}; g.ZH=function(p,C,V){for(var N in p)C.call(V,p[N],N,p)}; g.U_=function(p,C,V){var N={},H;for(H in p)C.call(V,p[H],H,p)&&(N[H]=p[H]);return N}; fG=function(p,C){var V={},N;for(N in p)V[N]=C.call(void 0,p[N],N,p);return V}; g.O_=function(p,C,V){for(var N in p)if(C.call(V,p[N],N,p))return!0;return!1}; WKS=function(p,C){for(var V in p)if(!C.call(void 0,p[V],V,p))return!1;return!0}; g.yW=function(p){for(var C in p)return C}; QO9=function(p){for(var C in p)return p[C]}; g.q$=function(p){var C=[],V=0,N;for(N in p)C[V++]=p[N];return C}; g.Ia=function(p){var C=[],V=0,N;for(N in p)C[V++]=N;return C}; g.bc=function(p,C){return p!==null&&C in p}; g.A9=function(p,C){for(var V in p)if(p[V]==C)return!0;return!1}; oa=function(p,C){for(var V in p)if(C.call(void 0,p[V],V,p))return V}; rcH=function(p,C){return(C=oa(p,C))&&p[C]}; g.k5=function(p){for(var C in p)return!1;return!0}; g.Bwu=function(p){for(var C in p)delete p[C]}; g.x5=function(p,C,V){return p!==null&&C in p?p[C]:V}; g.Y5=function(p,C){for(var V in p)if(!(V in C)||p[V]!==C[V])return!1;for(var N in C)if(!(N in p))return!1;return!0}; g.zh=function(p){var C={},V;for(V in p)C[V]=p[V];return C}; g.Ra=function(p){if(!p||typeof p!=="object")return p;if(typeof p.clone==="function")return p.clone();if(typeof Map!=="undefined"&&p instanceof Map)return new Map(p);if(typeof Set!=="undefined"&&p instanceof Set)return new Set(p);if(p instanceof Date)return new Date(p.getTime());var C=Array.isArray(p)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(p)||p instanceof DataView?{}:new p.constructor(p.length),V;for(V in p)C[V]=g.Ra(p[V]);return C}; g.nG=function(p,C){for(var V,N,H=1;H<arguments.length;H++){N=arguments[H];for(V in N)p[V]=N[V];for(var X=0;X<G9S.length;X++)V=G9S[X],Object.prototype.hasOwnProperty.call(N,V)&&(p[V]=N[V])}}; PG=function(p,C){this.T=p===eg&&C||""}; gI=function(p){if(p instanceof wV)return p;p=String(p).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");return $e(p)}; p4Q=function(p){var C=gI("");return $e(p.map(function(V){return LH(gI(V))}).join(LH(C).toString()))}; Hya=function(p){var C;if(!CBy.test("div"))throw Error("");if(jts.indexOf("DIV")!==-1)throw Error("");var V="<div";p&&(V+=VqX(p));Array.isArray(C)||(C=C===void 0?[]:[C]);NCY.indexOf("DIV")!==-1?V+=">":(p=p4Q(C.map(function(N){return N instanceof wV?N:gI(String(N))})),V+=">"+p.toString()+"</div>"); return $e(V)}; VqX=function(p){for(var C="",V=Object.keys(p),N=0;N<V.length;N++){var H=V[N],X=p[H];if(!CBy.test(H))throw Error("");if(X!==void 0&&X!==null){if(/^on./i.test(H))throw Error("");X4v.indexOf(H.toLowerCase())!==-1&&(X=X instanceof ke?X.toString():O_1(String(X))||"about:invalid#zClosurez");X=H+'="'+gI(String(X))+'"';C+=" "+X}}return C}; dme=function(p){var C=g.US.apply(1,arguments);if(C.length===0)return Ab(p[0]);for(var V=p[0],N=0;N<C.length;N++)V+=encodeURIComponent(C[N])+p[N+1];return Ab(V)}; rI=function(p){return p?new WG(QW(p)):iys||(iys=new WG)}; BG=function(p,C){return typeof C==="string"?p.getElementById(C):C}; g.Gh=function(p,C){return(C||document).getElementsByTagName(String(p))}; g.pe=function(p,C){return(C||document).querySelectorAll("."+p)}; g.ju=function(p,C){var V=C||document;V.getElementsByClassName?p=V.getElementsByClassName(p)[0]:(V=document,p=p?(C||V).querySelector(p?"."+p:""):g.Ce(V,"*",p,C)[0]||null);return p||null}; g.Ce=function(p,C,V,N){p=N||p;return(C=C&&C!="*"?String(C).toUpperCase():"")||V?p.querySelectorAll(C+(V?"."+V:"")):p.getElementsByTagName("*")}; Vf=function(p,C){g.ZH(C,function(V,N){N=="style"?p.style.cssText=V:N=="class"?p.className=V:N=="for"?p.htmlFor=V:hv1.hasOwnProperty(N)?p.setAttribute(hv1[N],V):v5(N,"aria-")||v5(N,"data-")?p.setAttribute(N,V):p[N]=V})}; st9=function(p){p=p.document;p=p.compatMode=="CSS1Compat"?p.documentElement:p.body;return new g.KG(p.clientWidth,p.clientHeight)}; EVV=function(p){var C=am1(p);p=p.defaultView;return new g.Fn(p.pageXOffset||C.scrollLeft,p.pageYOffset||C.scrollTop)}; am1=function(p){return p.scrollingElement?p.scrollingElement:g.Nq||p.compatMode!="CSS1Compat"?p.body||p.documentElement:p.documentElement}; He=function(p){return p?p.defaultView:window}; dW=function(p,C,V){var N=arguments,H=document,X=N[1],d=XQ(H,String(N[0]));X&&(typeof X==="string"?d.className=X:Array.isArray(X)?d.className=X.join(" "):Vf(d,X));N.length>2&&lma(H,d,N,2);return d}; lma=function(p,C,V,N){function H(a){a&&C.appendChild(typeof a==="string"?p.createTextNode(a):a)} for(;N<V.length;N++){var X=V[N];if(!g.ea(X)||g.Pv(X)&&X.nodeType>0)H(X);else{a:{if(X&&typeof X.length=="number"){if(g.Pv(X)){var d=typeof X.item=="function"||typeof X.item=="string";break a}if(typeof X==="function"){d=typeof X.item=="function";break a}}d=!1}g.lr(d?g.p6(X):X,H)}}}; g.iK=function(p){return XQ(document,p)}; XQ=function(p,C){C=String(C);p.contentType==="application/xhtml+xml"&&(C=C.toLowerCase());return p.createElement(C)}; g.h2=function(p){return document.createTextNode(String(p))}; g.so=function(p,C){p.appendChild(C)}; g.aN=function(p){for(var C;C=p.firstChild;)p.removeChild(C)}; Eo=function(p,C,V){p.insertBefore(C,p.childNodes[V]||null)}; g.lK=function(p){return p&&p.parentNode?p.parentNode.removeChild(p):null}; g.t2=function(p,C){if(!p||!C)return!1;if(p.contains&&C.nodeType==1)return p==C||p.contains(C);if(typeof p.compareDocumentPosition!="undefined")return p==C||!!(p.compareDocumentPosition(C)&16);for(;C&&p!=C;)C=C.parentNode;return C==p}; QW=function(p){return p.nodeType==9?p:p.ownerDocument||p.document}; g.ce=function(p,C){if("textContent"in p)p.textContent=C;else if(p.nodeType==3)p.data=String(C);else if(p.firstChild&&p.firstChild.nodeType==3){for(;p.lastChild!=p.firstChild;)p.removeChild(p.lastChild);p.firstChild.data=String(C)}else g.aN(p),p.appendChild(QW(p).createTextNode(String(C)))}; cPV=function(p){return p.tagName=="A"&&p.hasAttribute("href")||p.tagName=="INPUT"||p.tagName=="TEXTAREA"||p.tagName=="SELECT"||p.tagName=="BUTTON"?!p.disabled&&(!p.hasAttribute("tabindex")||tqY(p)):p.hasAttribute("tabindex")&&tqY(p)}; tqY=function(p){p=p.tabIndex;return typeof p==="number"&&p>=0&&p<32768}; Mq=function(p,C,V){if(!C&&!V)return null;var N=C?String(C).toUpperCase():null;return TO(p,function(H){return(!N||H.nodeName==N)&&(!V||typeof H.className==="string"&&g.W5(H.className.split(/\s+/),V))},!0)}; TO=function(p,C,V){p&&!V&&(p=p.parentNode);for(V=0;p;){if(C(p))return p;p=p.parentNode;V++}return null}; WG=function(p){this.T=p||g.xH.document||document}; J2=function(p){this.bx=OL(p)}; mS=function(p){this.bx=OL(p)}; ve=function(p){this.bx=OL(p)}; TC1=function(p,C){sl(p,mS,1,C)}; FQ=function(p){this.bx=OL(p)}; JPX=function(p,C){C=C===void 0?MqX:C;if(!Su){var V;p=(V=p.navigator)==null?void 0:V.userAgentData;if(!p||typeof p.getHighEntropyValues!=="function"||p.brands&&typeof p.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));V=(p.brands||[]).map(function(H){var X=new mS;X=mM(X,1,H.brand);return mM(X,2,H.version)}); TC1(RO(Ke,2,X_(p.mobile)),V);Su=p.getHighEntropyValues(C)}var N=new Set(C);return Su.then(function(H){var X=Ke.clone();N.has("platform")&&mM(X,3,H.platform);N.has("platformVersion")&&mM(X,4,H.platformVersion);N.has("architecture")&&mM(X,5,H.architecture);N.has("model")&&mM(X,6,H.model);N.has("uaFullVersion")&&mM(X,7,H.uaFullVersion);return X}).catch(function(){return Ke.clone()})}; Zz=function(p){this.bx=OL(p)}; mma=function(p){this.bx=OL(p)}; Uo=function(p){this.bx=OL(p,4)}; fe=function(p){this.bx=OL(p,36)}; Oo=function(p){this.bx=OL(p,19)}; yf=function(p,C){this.Pf=C=C===void 0?!1:C;this.uach=this.locale=null;this.T=new Oo;Number.isInteger(p)&&this.T.Nm(p);C||(this.locale=document.documentElement.getAttribute("lang"));vVH(this,new Zz)}; vVH=function(p,C){hP(p.T,Zz,1,C);Mm(C,1)||Fa(C,1,1);p.Pf||(C=qq(p),TA(C,5)||mM(C,5,p.locale));p.uach&&(C=qq(p),iB(C,ve,9)||hP(C,ve,9,p.uach))}; A2=function(p,C){n_(IN(p),FQ,11)&&(p=bK(p),Fa(p,1,C))}; FMS=function(p,C){n_(IN(p),FQ,11)&&(p=bK(p),RO(p,2,X_(C)))}; IN=function(p){return iB(p.T,Zz,1)}; SlX=function(p){var C=C===void 0?MqX:C;var V=p.Pf?void 0:He();V?JPX(V,C).then(function(N){p.uach=N;N=qq(p);hP(N,ve,9,p.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; qq=function(p){p=IN(p);var C=iB(p,FQ,11);C||(C=new FQ,hP(p,FQ,11,C));return C}; bK=function(p){p=qq(p);var C=iB(p,J2,10);C||(C=new J2,RO(C,2,X_(!1)),hP(p,J2,10,C));return C}; KMS=function(p){return g.Nq?"webkit"+p:p.toLowerCase()}; g.oN=function(p,C,V,N){this.S=p;this.W=C;this.T=this.V=p;this.Y=V||0;this.D=N||2}; g.kq=function(p){p.T=Math.min(p.W,p.T*p.D);p.V=Math.min(p.W,p.T+(p.Y?Math.round(p.Y*(Math.random()-.5)*2*p.T):0));p.C++}; Dmu=function(p){this.bx=OL(p,8)}; uaa=function(p){this.bx=OL(p)}; Yq=function(p){g.Y.call(this);var C=this;this.componentId="";this.T=[];this.vr="";this.pageId=null;this.Ga=this.sY=-1;this.D=this.experimentIds=null;this.a$=this.b_=this.Y=this.S=0;this.Y_=1;this.timeoutMillis=0;this.Vn=!1;this.logSource=p.logSource;this.BW=p.BW||function(){}; this.V=new yf(p.logSource,p.Pf);this.network=p.network;this.NA=p.NA||null;this.J=p.z5_||null;this.sessionIndex=p.sessionIndex||null;this.us=p.us||!1;this.logger=null;this.withCredentials=!p.Qb;this.Pf=p.Pf||!1;this.Z=!this.Pf&&!!He()&&!!He().navigator&&He().navigator.sendBeacon!==void 0;this.Wr=typeof URLSearchParams!=="undefined"&&!!(new URL(xq())).searchParams&&!!(new URL(xq())).searchParams.set;var V=Fa(new Zz,1,1);vVH(this.V,V);this.W=new g.oN(1E4,3E5,.1);p=Zyy(this,p.CE);this.C=new t9(this.W.getValue(), p);this.Sa=new t9(6E5,p);this.us||this.Sa.start();this.Pf||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&C.KR()}),document.addEventListener("pagehide",this.KR.bind(this)))}; Zyy=function(p,C){return p.Wr?C?function(){C().then(function(){p.flush()})}:function(){p.flush()}:function(){}}; Um9=function(p){p.J||(p.J=xq());try{return(new URL(p.J)).toString()}catch(C){return(new URL(p.J,He().location.origin)).toString()}}; Oyv=function(p){fm9(p,function(C,V){C=new URL(C);C.searchParams.set("format","json");var N=!1;try{N=He().navigator.sendBeacon(C.toString(),V.c6())}catch(H){}N||(p.Z=!1);return N})}; fm9=function(p,C){if(p.T.length!==0){var V=new URL(Um9(p));V.searchParams.delete("format");var N=p.BW();N&&V.searchParams.set("auth",N);V.searchParams.set("authuser",p.sessionIndex||"0");for(N=0;N<10&&p.T.length;++N){var H=p.T.slice(0,32),X=p.V.build(H,p.S,p.Y,p.NA,p.b_,p.a$);if(!C(V.toString(),X)){++p.Y;break}p.S=0;p.Y=0;p.b_=0;p.a$=0;p.T=p.T.slice(H.length)}p.C.enabled&&p.C.stop()}}; xq=function(){return"https://play.google.com/log?format=json&hasfast=true"}; zO=function(){this.D7=typeof AbortController!=="undefined"}; RN=function(p,C){g.Y.call(this);this.logSource=p;this.sessionIndex=C;this.o0="https://play.google.com/log?format=json&hasfast=true";this.C=null;this.S=!1;this.network=null;this.componentId="";this.T=this.NA=null;this.V=!1;this.pageId=null}; yPL=function(p,C){p.C=C;return p}; qle=function(p,C){p.network=C;return p}; Ims=function(p,C){p.T=C}; ne=function(p,C,V,N,H,X,d){p=p===void 0?-1:p;C=C===void 0?"":C;V=V===void 0?"":V;N=N===void 0?!1:N;H=H===void 0?"":H;g.Y.call(this);this.logSource=p;this.componentId=C;X?C=X:(p=new RN(p,"0"),p.componentId=C,g.R(this,p),V!==""&&(p.o0=V),N&&(p.S=!0),H&&yPL(p,H),d&&qle(p,d),C=p.build());this.T=C}; byv=function(p){this.T=p}; eu=function(p,C,V){this.C=p;this.S=C;this.fields=V||[];this.T=new Map}; Mne=function(p){return p.fields.map(function(C){return C.fieldType})}; Tws=function(p){return p.fields.map(function(C){return C.fieldName})}; Pe=function(p,C){eu.call(this,p,3,C)}; wW=function(p,C){eu.call(this,p,2,C)}; g.$q=function(p,C){this.type=p;this.currentTarget=this.target=C;this.defaultPrevented=this.C=!1}; Le=function(p,C){g.$q.call(this,p?p.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.T=null;p&&this.init(p,C)}; gW=function(p){return!(!p||!p[APH])}; kA1=function(p,C,V,N,H){this.listener=p;this.proxy=null;this.src=C;this.type=V;this.capture=!!N;this.qZ=H;this.key=++oVH;this.removed=this.CC=!1}; rW=function(p){p.removed=!0;p.listener=null;p.proxy=null;p.src=null;p.qZ=null}; Be=function(p){this.src=p;this.listeners={};this.T=0}; g.GO=function(p,C){var V=C.type;V in p.listeners&&g.rY(p.listeners[V],C)&&(rW(C),p.listeners[V].length==0&&(delete p.listeners[V],p.T--))}; pJ=function(p,C,V,N){for(var H=0;H<p.length;++H){var X=p[H];if(!X.removed&&X.listener==C&&X.capture==!!V&&X.qZ==N)return H}return-1}; g.jS=function(p,C,V,N,H){if(N&&N.once)return CJ(p,C,V,N,H);if(Array.isArray(C)){for(var X=0;X<C.length;X++)g.jS(p,C[X],V,N,H);return null}V=VU(V);return gW(p)?p.listen(C,V,g.Pv(N)?!!N.capture:!!N,H):xmH(p,C,V,!1,N,H)}; xmH=function(p,C,V,N,H,X){if(!C)throw Error("Invalid event type");var d=g.Pv(H)?!!H.capture:!!H,a=N7(p);a||(p[HX]=a=new Be(p));V=a.add(C,V,N,d,X);if(V.proxy)return V;N=YlS();V.proxy=N;N.src=p;N.listener=V;if(p.addEventListener)zvH||(H=d),H===void 0&&(H=!1),p.addEventListener(C.toString(),N,H);else if(p.attachEvent)p.attachEvent(Rvv(C.toString()),N);else if(p.addListener&&p.removeListener)p.addListener(N);else throw Error("addEventListener and attachEvent are unavailable.");nV1++;return V}; YlS=function(){function p(V){return C.call(p.src,p.listener,V)} var C=evY;return p}; CJ=function(p,C,V,N,H){if(Array.isArray(C)){for(var X=0;X<C.length;X++)CJ(p,C[X],V,N,H);return null}V=VU(V);return gW(p)?p.Ff(C,V,g.Pv(N)?!!N.capture:!!N,H):xmH(p,C,V,!0,N,H)}; PBy=function(p,C,V,N,H){if(Array.isArray(C))for(var X=0;X<C.length;X++)PBy(p,C[X],V,N,H);else N=g.Pv(N)?!!N.capture:!!N,V=VU(V),gW(p)?p.rY(C,V,N,H):p&&(p=N7(p))&&(C=p.T1(C,V,N,H))&&Xu(C)}; Xu=function(p){if(typeof p!=="number"&&p&&!p.removed){var C=p.src;if(gW(C))g.GO(C.FV,p);else{var V=p.type,N=p.proxy;C.removeEventListener?C.removeEventListener(V,N,p.capture):C.detachEvent?C.detachEvent(Rvv(V),N):C.addListener&&C.removeListener&&C.removeListener(N);nV1--;(V=N7(C))?(g.GO(V,p),V.T==0&&(V.src=null,C[HX]=null)):rW(p)}}}; Rvv=function(p){return p in dA?dA[p]:dA[p]="on"+p}; evY=function(p,C){if(p.removed)p=!0;else{C=new Le(C,this);var V=p.listener,N=p.qZ||p.src;p.CC&&Xu(p);p=V.call(N,C)}return p}; N7=function(p){p=p[HX];return p instanceof Be?p:null}; VU=function(p){if(typeof p==="function")return p;p[im]||(p[im]=function(C){return p.handleEvent(C)}); return p[im]}; g.h8=function(){g.Y.call(this);this.FV=new Be(this);this.UT=this;this.VJ=null}; s8=function(p,C,V,N){C=p.FV.listeners[String(C)];if(!C)return!0;C=C.concat();for(var H=!0,X=0;X<C.length;++X){var d=C[X];if(d&&!d.removed&&d.capture==V){var a=d.listener,E=d.qZ||d.src;d.CC&&g.GO(p.FV,d);H=a.call(E,N)!==!1&&H}}return H&&!N.defaultPrevented}; ab=function(p,C){this.V=p;this.S=C;this.C=0;this.T=null}; w41=function(p,C){p.S(C);p.C<100&&(p.C++,C.next=p.T,p.T=C)}; t8=function(p){p=E8(p);lm||(lm=$mj());lm(p)}; $mj=function(){if(typeof MessageChannel!=="undefined"){var p=new MessageChannel,C={},V=C;p.port1.onmessage=function(){if(C.next!==void 0){C=C.next;var N=C.uB;C.uB=null;N()}}; return function(N){V.next={uB:N};V=V.next;p.port2.postMessage(0)}}return function(N){g.xH.setTimeout(N,0)}}; cX=function(){this.C=this.T=null}; TD=function(){this.next=this.scope=this.T=null}; g.mo=function(p,C){M7||LMS();J8||(M7(),J8=!0);gVe.add(p,C)}; LMS=function(){var p=Promise.resolve(void 0);M7=function(){p.then(WMv)}}; WMv=function(){for(var p;p=gVe.remove();){try{p.T.call(p.scope)}catch(C){Jf(C)}w41(QtV,p)}J8=!1}; vX=function(p){return function(){return p}}; g.Fu=function(){}; rPe=function(p){var C=C||0;return function(){return p.apply(this,Array.prototype.slice.call(arguments,0,C))}}; SS=function(p){var C=!1,V;return function(){C||(V=p(),C=!0);return V}}; KJ=function(p){var C=p;return function(){if(C){var V=C;C=null;V()}}}; BCj=function(p,C){var V=0;return function(N){g.xH.clearTimeout(V);var H=arguments;V=g.xH.setTimeout(function(){p.apply(C,H)},50)}}; g.um=function(p){this.T=0;this.D=void 0;this.S=this.C=this.V=null;this.W=this.Y=!1;if(p!=g.Fu)try{var C=this;p.call(void 0,function(V){DC(C,2,V)},function(V){DC(C,3,V)})}catch(V){DC(this,3,V)}}; GAy=function(){this.next=this.context=this.C=this.V=this.T=null;this.S=!1}; ZC=function(p,C,V){var N=pn9.get();N.V=p;N.C=C;N.context=V;return N}; U8=function(p){if(p instanceof g.um)return p;var C=new g.um(g.Fu);DC(C,2,p);return C}; fJ=function(p){return new g.um(function(C,V){V(p)})}; g.jcQ=function(p,C,V){C09(p,C,V,null)||g.mo(g.Wv(C,p))}; Vla=function(p){return new g.um(function(C,V){p.length||C(void 0);for(var N,H=0;H<p.length;H++)N=p[H],g.jcQ(N,C,V)})}; HHV=function(){var p,C,V=new g.um(function(N,H){p=N;C=H}); return new NVj(V,p,C)}; yU=function(p,C){C=E8(C);C=ZC(C,C);C.S=!0;O8(p,C);return p}; Xnu=function(p,C){if(p.T==0)if(p.V){var V=p.V;if(V.C){for(var N=0,H=null,X=null,d=V.C;d&&(d.S||(N++,d.T==p&&(H=d),!(H&&N>1)));d=d.next)H||(X=d);H&&(V.T==0&&N==1?Xnu(V,C):(X?(N=X,N.next==V.S&&(V.S=N),N.next=N.next.next):dXX(V),iHQ(V,H,3,C)))}p.V=null}else DC(p,3,C)}; O8=function(p,C){p.C||p.T!=2&&p.T!=3||hJY(p);p.S?p.S.next=C:p.C=C;p.S=C}; scL=function(p,C,V,N){var H=ZC(null,null,null);H.T=new g.um(function(X,d){H.V=C?function(a){try{var E=C.call(N,a);X(E)}catch(l){d(l)}}:X; H.C=V?function(a){try{var E=V.call(N,a);E===void 0&&a instanceof q7?d(a):X(E)}catch(l){d(l)}}:d}); H.T.V=p;O8(p,H);return H.T}; DC=function(p,C,V){p.T==0&&(p===V&&(C=3,V=new TypeError("Promise cannot resolve to itself")),p.T=1,C09(V,p.Apn,p.xnn,p)||(p.D=V,p.T=C,p.V=null,hJY(p),C!=3||V instanceof q7||aua(p,V)))}; C09=function(p,C,V,N){if(p instanceof g.um)return O8(p,ZC(C||g.Fu,V||null,N)),!0;if(p)try{var H=!!p.$goog_Thenable}catch(d){H=!1}else H=!1;if(H)return p.then(C,V,N),!0;if(g.Pv(p))try{var X=p.then;if(typeof X==="function")return EeQ(p,X,C,V,N),!0}catch(d){return V.call(N,d),!0}return!1}; EeQ=function(p,C,V,N,H){function X(E){a||(a=!0,N.call(H,E))} function d(E){a||(a=!0,V.call(H,E))} var a=!1;try{C.call(p,d,X)}catch(E){X(E)}}; hJY=function(p){p.Y||(p.Y=!0,g.mo(p.ID,p))}; dXX=function(p){var C=null;p.C&&(C=p.C,p.C=C.next,C.next=null);p.C||(p.S=null);return C}; iHQ=function(p,C,V,N){if(V==3&&C.C&&!C.S)for(;p&&p.W;p=p.V)p.W=!1;if(C.T)C.T.V=null,luj(C,V,N);else try{C.S?C.V.call(C.context):luj(C,V,N)}catch(H){tlj.call(null,H)}w41(pn9,C)}; luj=function(p,C,V){C==2?p.V.call(p.context,V):p.C&&p.C.call(p.context,V)}; aua=function(p,C){p.W=!0;g.mo(function(){p.W&&tlj.call(null,C)})}; q7=function(p){c5.call(this,p)}; NVj=function(p,C,V){this.promise=p;this.resolve=C;this.reject=V}; g.Ib=function(p,C){g.h8.call(this);this.Kx=p||1;this.FR=C||g.xH;this.s0=(0,g.LY)(this.X1o,this);this.mR=g.QL()}; g.bm=function(p,C,V){if(typeof p==="function")V&&(p=(0,g.LY)(p,V));else if(p&&typeof p.handleEvent=="function")p=(0,g.LY)(p.handleEvent,p);else throw Error("Invalid listener argument");return Number(C)>2147483647?-1:g.xH.setTimeout(p,C||0)}; A8=function(p,C){var V=null;return(new g.um(function(N,H){V=g.bm(function(){N(C)},p); V==-1&&H(Error("Failed to schedule timer."))})).Rz(function(N){g.xH.clearTimeout(V); throw N;})}; g.ob=function(p){g.Y.call(this);this.D=p;this.S=0;this.V=100;this.W=!1;this.C=new Map;this.Y=new Set;this.flushInterval=3E4;this.T=new g.Ib(this.flushInterval);this.T.listen("tick",this.Uy,!1,this);g.R(this,this.T)}; cbv=function(p){p.T.enabled||p.T.start();p.S++;p.S>=p.V&&p.Uy()}; TVe=function(p,C){return p.Y.has(C)?void 0:p.C.get(C)}; Mle=function(p){for(var C=0;C<p.length;C++)p[C].clear()}; Jb9=function(p){switch(p){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; mXV=function(p){switch(p){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS"; default:return""}}; Y7=function(p,C,V){V=V===void 0?{}:V;C=Error.call(this,C);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.code=p;this.metadata=V;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)}; g.zD=function(p){return(new ves).c6(p)}; ves=function(){}; Rb=function(p,C,V){if(C==null)V.push("null");else{if(typeof C=="object"){if(Array.isArray(C)){var N=C;C=N.length;V.push("[");for(var H="",X=0;X<C;X++)V.push(H),Rb(p,N[X],V),H=",";V.push("]");return}if(C instanceof String||C instanceof Number||C instanceof Boolean)C=C.valueOf();else{V.push("{");H="";for(N in C)Object.prototype.hasOwnProperty.call(C,N)&&(X=C[N],typeof X!="function"&&(V.push(H),FaX(N,V),V.push(":"),Rb(p,X,V),H=","));V.push("}");return}}switch(typeof C){case "string":FaX(C,V);break;case "number":V.push(isFinite(C)&& !isNaN(C)?String(C):"null");break;case "boolean":V.push(String(C));break;case "function":V.push("null");break;default:throw Error("Unknown type: "+typeof C);}}}; FaX=function(p,C){C.push('"',p.replace(SQX,function(V){var N=KaH[V];N||(N="\\u"+(V.charCodeAt(0)|65536).toString(16).slice(1),KaH[V]=N);return N}),'"')}; DXH=function(p){switch(p){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}; uHX=function(){}; nJ=function(){}; eS=function(p,C,V,N,H,X,d){var a="";p&&(a+=p+":");V&&(a+="//",C&&(a+=C+"@"),a+=V,N&&(a+=":"+N));H&&(a+=H);X&&(a+="?"+X);d&&(a+="#"+d);return a}; PX=function(p){return p?decodeURI(p):p}; g.$7=function(p,C){return C.match(wA)[p]||null}; g.LJ=function(p){return PX(g.$7(3,p))}; g.ZHV=function(p){p=p.match(wA);return eS(p[1],p[2],p[3],p[4])}; gA=function(p){p=p.match(wA);return eS(null,null,null,null,p[5],p[6],p[7])}; UXv=function(p){var C=p.indexOf("#");return C<0?p:p.slice(0,C)}; WX=function(p,C){if(p){p=p.split("&");for(var V=0;V<p.length;V++){var N=p[V].indexOf("="),H=null;if(N>=0){var X=p[V].substring(0,N);H=p[V].substring(N+1)}else X=p[V];C(X,H?HG(H):"")}}}; QU=function(p,C){if(!C)return p;var V=p.indexOf("#");V<0&&(V=p.length);var N=p.indexOf("?");if(N<0||N>V){N=V;var H=""}else H=p.substring(N+1,V);p=[p.slice(0,N),H,p.slice(V)];V=p[1];p[1]=C?V?V+"&"+C:C:V;return p[0]+(p[1]?"?"+p[1]:"")+p[2]}; rA=function(p,C,V){if(Array.isArray(C))for(var N=0;N<C.length;N++)rA(p,String(C[N]),V);else C!=null&&V.push(p+(C===""?"":"="+g.N$(C)))}; fuH=function(p,C){var V=[];for(C=C||0;C<p.length;C+=2)rA(p[C],p[C+1],V);return V.join("&")}; g.BX=function(p){var C=[],V;for(V in p)rA(V,p[V],C);return C.join("&")}; OHS=function(p,C){var V=arguments.length==2?fuH(arguments[1],0):fuH(arguments,1);return QU(p,V)}; g.GD=function(p,C){C=g.BX(C);return QU(p,C)}; pN=function(p,C,V){V=V!=null?"="+g.N$(V):"";return QU(p,C+V)}; ybS=function(p,C,V,N){for(var H=V.length;(C=p.indexOf(V,C))>=0&&C<N;){var X=p.charCodeAt(C-1);if(X==38||X==63)if(X=p.charCodeAt(C+H),!X||X==61||X==38||X==35)return C;C+=H+1}return-1}; CN=function(p,C){var V=p.search(qQL),N=ybS(p,0,C,V);if(N<0)return null;var H=p.indexOf("&",N);if(H<0||H>V)H=V;N+=C.length+1;return HG(p.slice(N,H!==-1?H:0))}; jE=function(p,C){for(var V=p.search(qQL),N=0,H,X=[];(H=ybS(p,N,C,V))>=0;)X.push(p.substring(N,H)),N=Math.min(p.indexOf("&",H)+1||V,V);X.push(p.slice(N));return X.join("").replace(Iuu,"$1")}; bHQ=function(p,C,V){return pN(jE(p,C),C,V)}; g.VO=function(p){g.h8.call(this);this.headers=new Map;this.Sa=p||null;this.V=!1;this.T=null;this.J="";this.C=0;this.S="";this.W=this.sY=this.Z=this.b_=!1;this.a$=0;this.Y=null;this.Vn="";this.D=!1}; oeY=function(p,C,V,N,H,X,d){var a=new g.VO;Aby.push(a);C&&a.listen("complete",C);a.Ff("ready",a.An);X&&(a.a$=Math.max(0,X));d&&(a.D=d);a.send(p,V,N,H)}; xXu=function(p,C){p.V=!1;p.T&&(p.W=!0,p.T.abort(),p.W=!1);p.S=C;p.C=5;kNL(p);Nj(p)}; kNL=function(p){p.b_||(p.b_=!0,p.dispatchEvent("complete"),p.dispatchEvent("error"))}; YQL=function(p){if(p.V&&typeof Hi!="undefined")if(p.Z&&g.Xr(p)==4)setTimeout(p.HQ.bind(p),0);else if(p.dispatchEvent("readystatechange"),p.isComplete()){p.getStatus();p.V=!1;try{if(dU(p))p.dispatchEvent("complete"),p.dispatchEvent("success");else{p.C=6;try{var C=g.Xr(p)>2?p.T.statusText:""}catch(V){C=""}p.S=C+" ["+p.getStatus()+"]";kNL(p)}}finally{Nj(p)}}}; Nj=function(p,C){if(p.T){p.Y&&(clearTimeout(p.Y),p.Y=null);var V=p.T;p.T=null;C||p.dispatchEvent("ready");try{V.onreadystatechange=null}catch(N){}}}; dU=function(p){var C=p.getStatus();a:switch(C){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break a;default:V=!1}if(!V){if(C=C===0)p=g.$7(1,String(p.J)),!p&&g.xH.self&&g.xH.self.location&&(p=g.xH.self.location.protocol.slice(0,-1)),C=!zJV.test(p?p.toLowerCase():"");V=C}return V}; g.Xr=function(p){return p.T?p.T.readyState:0}; g.i3=function(p){try{return p.T?p.T.responseText:""}catch(C){return""}}; g.h$=function(p){try{if(!p.T)return null;if("response"in p.T)return p.T.response;switch(p.Vn){case "":case "text":return p.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in p.T)return p.T.mozResponseArrayBuffer}return null}catch(C){return null}}; g.RJu=function(p){var C={};p=(p.T&&g.Xr(p)>=2?p.T.getAllResponseHeaders()||"":"").split("\r\n");for(var V=0;V<p.length;V++)if(!g.Sy(p[V])){var N=wT9(p[V]),H=N[0];N=N[1];if(typeof N==="string"){N=N.trim();var X=C[H]||[];C[H]=X;X.push(N)}}return fG(C,function(d){return d.join(", ")})}; g.s$=function(p,C){return p.T?p.T.getResponseHeader(C):null}; aX=function(){}; l3=function(p,C){this.logger=p;this.event=C;this.startTime=E$()}; t$=function(){E1.apply(this,arguments);this.Sr={Kf:function(){return[]}}}; ci=function(p,C,V){var N=E$();C=C();p.QW(V,E$()-N);return C}; Tq=function(){t$.apply(this,arguments)}; Mj=function(p){t$.call(this);var C=this;this.logger=p;this.Sr={DRr:function(){return C.logger}, Kf:function(){return C.logger.Sr.Kf()}}; this.addOnDisposeCallback(function(){return void C.logger.dispose()})}; ney=function(p){return{H9$:new DsL(p),errorCount:new fje(p),eventCount:new ZYu(p),sb:new Usy(p),e5$:new ueu(p),pRS:new OYL(p),yu:new yQj(p),Hd_:new qSS(p)}}; eJe=function(p,C,V,N,H){p=qle(yPL(new RN(1828,"0"),p),new aX);C.length&&Ims(p,tn1(new lB1,C));H!==void 0&&(p.o0=H);N&&(p.V=!0);var X=new ne(1828,"","",!1,"",p.build());g.R(X,p);var d=new g.ob({flush:function(a){try{X.flush(a)}catch(E){V(E)}}}); d.addOnDisposeCallback(function(){setTimeout(function(){try{d.Uy()}finally{X.dispose()}})}); d.V=1E5;d.flushInterval=3E4;d.T.setInterval(3E4);return d}; J$=function(p,C){g.Y.call(this);var V=this;this.callback=p;this.C=C;this.T=-C;this.addOnDisposeCallback(function(){return void clearTimeout(V.Yt)})}; P0Y=function(p){if(p.Yt===void 0){var C=Math.max(0,p.T+p.C-E$());p.Yt=setTimeout(function(){try{p.callback()}finally{p.T=E$(),p.Yt=void 0}},C)}}; m0=function(p,C,V){t$.call(this);this.metrics=p;this.SU=C;this.Uf=V}; vi=function(p,C){C=C===void 0?[]:C;var V={SU:p.SU||"_",Uf:p.Uf||"",Fn:p.Fn||[],I3:p.I3|0,o0:p.o0,Fl:p.Fl||function(){}, H4:!!p.H4,qz:p.qz||function(X,d){return eJe(X,d,V.Fl,V.H4,V.o0)}},N=V.qz("41",V.Fn.concat(C)); m0.call(this,ney(N),V.SU,V.Uf);var H=this;this.V=C;this.Sr={Kf:function(){return H.options.Fn.concat(H.V).sort(function(X,d){return X-d})}}; this.options=V;this.service=N;this.C=!p.qz;this.T=new J$(function(){return void H.service.Uy()},V.I3); this.addOnDisposeCallback(function(){H.T.dispose();H.C&&H.service.dispose()})}; E$=function(){var p,C,V;return(V=(p=globalThis.performance)==null?void 0:(C=p.now)==null?void 0:C.call(p))!=null?V:Date.now()}; Fr=function(p){this.bx=OL(p)}; SE=function(p){this.bx=OL(p)}; KN=function(p){this.bx=OL(p,0,KN.messageId)}; Dt=function(p){this.bx=OL(p)}; H5=function(p){this.bx=OL(p)}; u3=function(p){this.bx=OL(p)}; g.Zt=function(){var p=this;this.promise=new Promise(function(C,V){p.resolve=C;p.reject=V})}; wnH=function(p,C,V){if(p.disable)return new Tq;var N=C&&dY(iB(C,Dt,7))?Fye(C):[];if(V)return V.jG(N),V.share();p={SU:p.SU,Uf:p.Uf,Fn:p.r0,I3:p.Ma,H4:dY(C==null?void 0:iB(C,Dt,10)),o0:p.o0,Fl:p.Fl,qz:p.qz};N=N===void 0?[]:N;return new vi(p,N)}; U$=function(p){function C(J,S,D,Z){Promise.resolve().then(function(){E.done();a.f6();a.dispose();d.resolve({Xq:J,LcS:S,F6$:D,lma:Z})})} function V(J,S,D,Z){if(!N.logger.fS()){var f="k";S?f="h":D&&(f="u");f!=="k"?Z!==0&&(N.logger.lO(f),N.logger.QW(f,J)):N.C<=0?(N.logger.lO(f),N.logger.QW(f,J),N.C=Math.floor(Math.random()*200)):N.C--}} g.Y.call(this);var N=this;this.C=Math.floor(Math.random()*200);this.T=new u3;if("challenge"in p&&$Xj(p.challenge)){var H=TA(p.challenge,4);var X=TA(p.challenge,5);TA(p.challenge,7)&&(this.T=La9(TA(p.challenge,7)))}else H=p.program,X=p.globalName;this.addOnDisposeCallback(function(){var J,S,D;return g.I(function(Z){if(Z.C==1)return g.y(Z,N.V,2);J=Z.T;S=J.LcS;(D=S)==null||D();g.JQ(Z)})}); this.logger=wnH(p.OW||{},this.T,p.sH);g.R(this,this.logger);var d=new g.Zt;this.V=d.promise;this.logger.lO("t");var a=this.logger.share(),E=new l3(a,"t");if(!g.xH[X])throw this.logger.SH(25),Error("EGOU");if(!g.xH[X].a)throw this.logger.SH(26),Error("ELIU");try{var l=g.xH[X].a;X=[];var t=[];if(dY(iB(this.T,Dt,7))){for(var c=Fye(this.T),T=0;T<c.length;T++)X.push(c[T]),t.push(1);var M=SSe(this.T);for(c=0;c<M.length;c++)X.push(M[c]),t.push(2)}this.S=g.F(l(H,C,!0,p.sN,V,[X,t],TA(this.T,5))).next().value; this.Or=d.promise.then(function(){})}catch(J){throw this.logger.SH(28),J; }}; fN=function(p,C,V){var N=Error.call(this);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.code=p;C+=":";V!=null||(V=Error());if(V instanceof Error){this.message=C+V.message;var H;this.stack=(H=V.stack)!=null?H:""}else this.message=C+String(V),this.stack="";Object.setPrototypeOf(this,this.constructor.prototype)}; gee=function(p){if(!p)return null;p=tP(p,4);return p===null||p===void 0?null:Ab(p)}; O$=function(){this.C={};this.T=null}; yO=function(){O$.instance||(O$.instance=new O$);return O$.instance}; qj=function(p,C){return WaS(p,iB(C,Fr,1),iB(C,SE,2),TA(C,3))}; WaS=function(p,C,V,N){if(!C&&!V)return Promise.resolve();if(!N)return QcV(C,V);var H;(H=p.C)[N]||(H[N]=new Promise(function(X,d){QcV(C,V).then(function(){p.T=N;X()},function(a){delete p.C[N]; d(a)})})); return p.C[N]}; QcV=function(p,C){return C?rbs(C):p?BVa(p):Promise.resolve()}; rbs=function(p){return new Promise(function(C,V){var N=g.iK("SCRIPT"),H=gee(p);g.GN(N,H);N.onload=function(){g.lK(N);C()}; N.onerror=function(){g.lK(N);V(Error("EWLS"))}; (g.Gh("HEAD")[0]||document.documentElement).appendChild(N)})}; BVa=function(p){return new Promise(function(C){var V=g.iK("SCRIPT");if(p){var N=tP(p,6);N=N===null||N===void 0?null:IBs(N)}else N=null;V.textContent=rV(N);Bn(V);(g.Gh("HEAD")[0]||document.documentElement).appendChild(V);g.lK(V);C()})}; IX=function(p){this.bx=OL(p)}; b3=function(p){this.bx=OL(p)}; A$=function(p,C,V){this.client=p;this.I1=C;this.T=V}; zq=function(p){g.Y.call(this);var C=this;this.options=p;this.Y=new g.Zt;this.Or=this.Y.promise;this.W=new g.Zt;this.J=1;this.V=new g.Zt;this.S=[];this.AT=p.AT||function(){}; this.logger=new Mj(wnH(p.OW||{}));GNe(this,p.qB,p.G1,p.mSo,p.B9a,Object.assign({},pGj,p.qm||{}));this.addOnDisposeCallback(function(){return void Cce(C)})}; jaj=function(p){var C;return g.I(function(V){if(p.fS())throw Error("Already disposed");(C=p.T)!=null&&(C.endTimeMs=0,C.Jo(1));return g.y(V,p.V.promise,0)})}; Cce=function(p){p.D=Error("Cancelled by dispose");p.W.resolve();aF(p.Y.promise);p.Y.reject(Error("Cancelled by dispose"));p.logger.dispose();Promise.all(p.S).then(function(){var V;return g.I(function(N){(V=p.C)==null||V.dispose();p.C=void 0;g.JQ(N)})}); p.S=[];var C;(C=p.T)!=null&&(C.endTimeMs=0,C.Jo(1));aF(p.V.promise);p.V.reject(Error("Cancelled by dispose"))}; Vgs=function(p,C){var V=p.AT;p.AT=function(){V();C()}}; NIL=function(p,C){p.fS()||(p.C=C,p.logger.update(C.Wd()),p.W.resolve(),p.Y.resolve(void 0),p.AT())}; HGY=function(p,C){C&&(Promise.all(p.S).then(function(){return void C.dispose()}),p.S=[])}; RX=function(p,C){p.J=C;var V,N;(N=(V=p.options).aJY)==null||N.call(V,C)}; XGa=function(p){p.fS()||(p.V.resolve(),p.V=new g.Zt)}; GNe=function(p,C,V,N,H,X){N=N===void 0?yO():N;H=H===void 0?Promise.resolve(void 0):H;var d,a,E,l,t,c,T,M,J,S,D,Z;g.I(function(f){switch(f.C){case 1:return g.y(f,0,3);case 3:a=null;if(!d){f.EY(6);break}RX(p,7);g.vv(f,7);return g.y(f,nN(d.snapshot({}),X.mD,function(){return Promise.resolve("E:CTO")}),9); case 9:a=f.T;g.Fe(f,6);break;case 7:g.Sa(f),a="E:UCE";case 6:E=void 0,l=d?X.nu:X.Cu,t=new g.oN(l,X.Af,X.xF,X.bA),c=0;case 10:if(!(c<X.maxAttempts)){f.EY(12);break}if(c===0){f.EY(13);break}RX(p,0);p.T=new d$y(t.getValue(),X.Ny,X.PD);return g.y(f,p.T.promise,14);case 14:T=f.T,p.T=void 0,T===1?(c=0,t.reset()):g.kq(t);case 13:g.vv(f,15);M=void 0;if(V){M=V;f.EY(17);break}RX(p,5);J=N.T;return g.y(f,nN(C.Dj(J,a),X.mZ,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18); case 18:M=f.T;case 17:return RX(p,3),g.y(f,nN(qj(N,M),X.Na,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19); case 19:return RX(p,8),g.y(f,H,20);case 20:return S=new U$({challenge:M,OW:p.options.OW,sN:p.options.sN}),g.y(f,nN(S.Or,X.fQ$,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21); case 21:E=S;f.EY(12);break;case 15:D=g.Sa(f),p.handleError(D),XGa(p);case 11:c++;f.EY(10);break;case 12:if(p.fS()){f.EY(5);break}E&&(V=void 0,HGY(p,d),d=E,NIL(p,E),XGa(p));RX(p,2);p.T=new d$y(X.hbn,X.Ny,X.PD);return g.y(f,p.T.promise,22);case 22:p.T=void 0;if(p.fS()){f.EY(5);break}f.EY(3);break;case 5:(Z=d)==null||Z.dispose(),g.JQ(f)}})}; nN=function(p,C,V){var N,H=new Promise(function(X){N=setTimeout(X,C)}); return Promise.race([p.finally(function(){return void clearTimeout(N)}), H.then(V)])}; d$y=function(p,C,V){function N(){var X=H.endTimeMs-Date.now();X<=V?H.Jo(0):setTimeout(N,Math.min(X,C))} var H=this;this.endTimeMs=Date.now()+p;this.promise=new Promise(function(X){H.Jo=X}); N()}; iGL=function(p,C){try{return globalThis.sessionStorage.setItem(p,C),!0}catch(V){return!1}}; eE=function(p,C,V,N){C=C===void 0?0:C;V=V===void 0?p.length:V;var H=0;for(N&&(H=eE(N));C<V;C++)N=typeof p==="string"?p.charCodeAt(C):p[C],H=hQ9(31,H)+N|0;return H}; saQ=function(p,C){return[eE(p,0,p.length>>1,C),eE(p,p.length>>1)]}; aHa=function(p){var C=g.F(saQ(p,Pi));p=C.next().value;C=C.next().value;return p.toString(16)+C.toString(16)}; E5a=function(p,C){var V=saQ(C);p=new Uint32Array(p.buffer);C=p[0];var N=g.F(V);V=N.next().value;N=N.next().value;for(var H=1;H<p.length;H+=2){for(var X=C,d=H,a=V,E=N,l=0;l<22;l++)d=d>>>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<p.length&&(p[H+1]^=X[1])}}; lHe=function(p,C,V,N,H){var X=(4-(Pi.length+V.length)%4)%4,d=new Uint8Array(4+X+Pi.length+4+V.length),a=new DataView(d.buffer),E=0;a.setUint32(E,Math.random()*4294967295);E=E+4+X;d.set(Pi,E);E+=Pi.length;a.setUint32(E,H);d.set(V,E+4);E5a(d,N);return p.N5(C,function(l){return void globalThis.sessionStorage.removeItem(l)})?iGL(C,g.mq(d))?"s":"t":"i"}; tge=function(p,C){var V=globalThis.sessionStorage.getItem(p);if(!V)return["m"];try{var N=Fv(V);E5a(N,C)}catch(H){return globalThis.sessionStorage.removeItem(p),["c"]}for(C=4;C<7&&N[C]===0;)C++;for(V=0;V<Pi.length;V++)if(N[C++]!==Pi[V])return globalThis.sessionStorage.removeItem(p),["d"];V=(new DataView(N.buffer)).getUint32(C);return Math.floor(Date.now()/1E3)>=V?(globalThis.sessionStorage.removeItem(p),["e"]):["a",new Uint8Array(N.buffer,C+4)]}; wU=function(p,C,V){V=V===void 0?[]:V;this.maxItems=p;this.T=C===void 0?0:C;this.C=V}; c9X=function(p){var C=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!C)return new wU(p);var V=C.split(",");if(V.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wU(p);C=V.slice(1);C.length===1&&C[0]===""&&(C=[]);V=Number(V[0]);return isNaN(V)||V<0||V>C.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wU(p)):new wU(p,V,C)}; TIe=function(p,C){this.logger=C;try{var V=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(N){V=!1}V&&(this.index=c9X(p))}; MgX=function(p,C,V,N,H){var X=p.index?ci(p.logger,function(){return lHe(p.index,aHa(C),V,N,H)},"W"):"u"; p.logger.SM(X)}; J9V=function(p,C,V){var N=g.F(p.index?ci(p.logger,function(){return tge(aHa(C),V)},"R"):["u"]),H=N.next().value; N=N.next().value;p.logger.sL(H);return N}; F9a=function(p){function C(){V-=N;V-=H;V^=H>>>13;N-=H;N-=V;N^=V<<8;H-=V;H-=N;H^=N>>>13;V-=N;V-=H;V^=H>>>12;N-=H;N-=V;N^=V<<16;H-=V;H-=N;H^=N>>>5;V-=N;V-=H;V^=H>>>3;N-=H;N-=V;N^=V<<10;H-=V;H-=N;H^=N>>>15} p=m$y(p);for(var V=2654435769,N=2654435769,H=314159265,X=p.length,d=X,a=0;d>=12;d-=12,a+=12)V+=$N(p,a),N+=$N(p,a+4),H+=$N(p,a+8),C();H+=X;switch(d){case 11:H+=p[a+10]<<24;case 10:H+=p[a+9]<<16;case 9:H+=p[a+8]<<8;case 8:N+=p[a+7]<<24;case 7:N+=p[a+6]<<16;case 6:N+=p[a+5]<<8;case 5:N+=p[a+4];case 4:V+=p[a+3]<<24;case 3:V+=p[a+2]<<16;case 2:V+=p[a+1]<<8;case 1:V+=p[a+0]}C();return v5s.toString(H)}; m$y=function(p){for(var C=[],V=0;V<p.length;V++)C.push(p.charCodeAt(V));return C}; $N=function(p,C){return p[C+0]+(p[C+1]<<8)+(p[C+2]<<16)+(p[C+3]<<24)}; LN=function(p){g.Y.call(this);var C=this;this.logger=p;this.T=new g.Zt;this[S_v]=this.dispose;this.addOnDisposeCallback(function(){aF(C.T.promise);C.T.reject()})}; gU=function(p,C){var V=setTimeout(function(){p.T.resolve()},C); p.addOnDisposeCallback(function(){return void clearTimeout(V)})}; Wi=function(p,C,V,N){return ci(p.logger,function(){return V?p.BS(C,N):p.DJ(C,N)},p.V)}; QO=function(p,C,V,N){LN.call(this,p);this.S=C;this.Y=V;this.V="m";this.C="x";this.W=0;gU(this,N)}; rU=function(p,C,V){LN.call(this,p);this.S=C;this.V="f";this.C="z";gU(this,V)}; Bi=function(p,C,V){LN.call(this,p);this.S=C;this.V="w";this.C="z";gU(this,V)}; Gq=function(p,C){LN.call(this,p);this.error=C;this.V="e";this.C="y"}; K91=function(p,C){var V=(C(p.error.message)+":"+C(p.error.stack)).substring(0,2048);C=V.length+1;V=pE(V);var N=new Uint8Array(4+V.length);N.set([42,C&127|128,C>>7,p.error.code]);N.set(V,4);return N}; D$1=function(){var p=0,C;return function(V){C||(C=new Tq);var N=new CE(C,p,1),H=Wi(N,function(){return pE(V)},!0); N.dispose();p++;return H}}; CE=function(p,C,V){LN.call(this,p);this.S=C;this.clientState=V;this.V="S";this.C="q"}; pE=function(p){return globalThis.TextEncoder?(new TextEncoder).encode(p):g.mr(p)}; jZ=function(p,C,V){g.Y.call(this);var N=this;this.logger=p;this.onError=C;this.state=V;this.Y=0;this.V=void 0;this.addOnDisposeCallback(function(){N.T&&(N.T.dispose(),N.T=void 0)})}; una=function(p,C){C=C instanceof fN?C:new fN(5,"TVD:error",C);return p.reportError(C)}; Vh=function(p,C,V){try{if(p.fS())throw new fN(21,"BNT:disposed");if(!p.T&&p.V)throw p.V;var N,H;return(H=(N=ZGv(p,C,V))!=null?N:U$a(p,C,V))!=null?H:fHV(p,C,V)}catch(X){if(!C.qJ)throw una(p,X);return OG9(p,V,X)}}; ZGv=function(p,C,V){var N;return(N=p.T)==null?void 0:Wi(N,function(){return N_(p,C)},V,function(H){var X; if(p.T instanceof QO&&((X=C.Yq)==null?0:X.Xz))try{var d;(d=p.cache)==null||MgX(d,N_(p,C),H,C.Yq.pA,p.D-120)}catch(a){p.reportError(new fN(24,"ELX:write",a))}})}; U$a=function(p,C,V){var N;if((N=C.Yq)!=null&&N.q2)try{var H,X=(H=p.cache)==null?void 0:J9V(H,N_(p,C),C.Yq.pA);return X?V?ci(p.logger,function(){return g.mq(X,2)},"a"):X:void 0}catch(d){p.reportError(new fN(23,"RXO:read",d))}}; fHV=function(p,C,V){var N={stack:[],error:void 0,hasError:!1};try{if(!C.F9)throw new fN(29,"SDF:notready");return Wi(GV(N,new CE(p.logger,p.Y,p.state)),function(){return N_(p,C)},V)}catch(H){N.error=H,N.hasError=!0}finally{p0(N)}}; OG9=function(p,C,V){var N={stack:[],error:void 0,hasError:!1};try{var H=una(p,V);return Wi(GV(N,new Gq(p.logger,H)),function(){return[]},C)}catch(X){N.error=X,N.hasError=!0}finally{p0(N)}}; N_=function(p,C){return C.hw?C.hw:C.P$?ci(p.logger,function(){return C.hw=pE(C.P$)},"c"):[]}; Xf=function(p){var C;jZ.call(this,p.w7.Wd(),(C=p.onError)!=null?C:function(){},0); var V=this;this.S=0;this.C=new g.Zt;g.R(this,this.logger);this.w7=p.w7;this.qB=p.qB;this.qm=Object.assign({},y9Y,p.qm||{});p.Uf&&(this.logger instanceof vi||this.logger instanceof Mj)&&this.logger.WN(p.Uf);this.LY=p.LY||!1;if(q_H(p)){var N=this.w7;this.W=function(){return jaj(N).catch(function(H){H=V.reportError(new fN(20,"TRG:Disposed",H));V.V=H;var X;(X=V.T)==null||X.dispose();V.T=void 0;aF(V.C.promise);V.C.reject(H)})}; Vgs(N,function(){H2(V)}); N.J===2&&H2(this)}else this.W=p.kvn,H2(this);this.addOnDisposeCallback(function(){aF(V.C.promise);V.C.reject()})}; IHQ=function(p,C){C=C instanceof fN?C:C instanceof Y7?new fN(11,"EBH:Error",C):new fN(12,"BSO:Unknown",C);return p.reportError(C)}; H2=function(p){var C,V,N,H,X,d,a,E,l,t,c,T,M,J;g.I(function(S){switch(S.C){case 1:C=void 0;p.S++;V=new g.Zt;p.w7 instanceof zq&&p.w7.S.push(V.promise);if(!p.LY){S.EY(2);break}N=new g.Zt;setTimeout(function(){return void N.resolve()}); return g.y(S,N.promise,2);case 2:return g.vv(S,4),p.state=5,H={},X=[],g.y(S,nN(p.w7.snapshot({P$:H,P5:X}),p.qm.p1o,function(){return Promise.reject(new fN(15,"MDA:Timeout"))}),6); case 6:d=S.T;if(p.fS())throw new fN(20,"MDA:Disposed");a=X[0];p.state=6;return g.y(S,nN(p.logger.YH("g",1,p.qB.dK(d)),p.qm.zb,function(){return Promise.reject(new fN(10,"BWB:Timeout"))}),7); case 7:E=S.T;if(p.fS())throw new fN(20,"BWB:Disposed");p.state=7;C=ci(p.logger,function(){var D=bGu(p,E,V,a);D.T.promise.then(function(){return void p.W()}).catch(function(){}); return D},"i"); g.Fe(S,5);break;case 4:l=g.Sa(S);t=IHQ(p,l);(c=C)==null||c.dispose();V.resolve();if(p.w7 instanceof zq&&p.S<2&&(l instanceof fN?l.code!==20&&l.code!==10:l instanceof Y7?l.code===13:1))return T=(1+Math.random()*.25)*(p.T?6E4:1E3),M=setTimeout(function(){return void p.W()},T),p.addOnDisposeCallback(function(){return void clearTimeout(M)}),S.return(); p.V=t;aF(p.C.promise);p.C.reject(p.V);return S.return();case 5:p.state=8,p.S=0,(J=p.T)==null||J.dispose(),p.T=C,p.C.resolve(),g.JQ(S)}})}; bGu=function(p,C,V,N){var H=c4(C,2)*1E3;if(H<=0)throw new fN(31,"TTM:Invalid");if(TA(C,4))return new Bi(p.logger,TA(C,4),H);if(!c4(C,3))return new rU(p.logger,f6(Qx(C,1)),H);if(!N)throw new fN(4,"PMD:Undefined");N=N(f6(Qx(C,1)));if(!(N instanceof Function))throw new fN(16,"APF:Failed");p.D=Math.floor((Date.now()+H)/1E3);p=new QO(p.logger,N,c4(C,3),H);p.addOnDisposeCallback(function(){return void V.resolve()}); return p}; dh=function(p){this.bx=OL(p)}; A9y=function(p,C,V){this.G0=p;this.j7=C;this.metadata=V}; ip=function(p,C){C=C===void 0?{}:C;this.Q6x=p;this.metadata=C;this.status=null}; hE=function(p,C,V,N,H){this.name=p;this.methodType="unary";this.requestType=C;this.responseType=V;this.T=N;this.C=H}; sV=function(p){this.bx=OL(p)}; as=function(p){this.bx=OL(p)}; EV=function(p){this.bx=OL(p)}; lp=function(p,C){this.D=p.C_e;this.J=C;this.T=p.xhr;this.V=[];this.W=[];this.Y=[];this.S=[];this.C=[];this.D&&o5S(this)}; Y_1=function(p,C){g.jS(p.T,"complete",function(){if(dU(p.T)){var V=g.i3(p.T);if(C&&p.T.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");V=atob(V)}try{var N=p.J(V)}catch(d){tE(p,new Y7(13,"Error when deserializing response data; error: "+d+(", response: "+V)));return}V=Jb9(p.T.getStatus());c2(p,Ti(p));V==0?khy(p,N):tE(p,new Y7(V,"Xhr succeeded but the status code is not 200"))}else{V=g.i3(p.T);N=Ti(p);if(V){var H=x$v(p,V);V=H.code;var X=H.details; H=H.metadata}else V=2,X="Rpc failed due to xhr error. uri: "+String(p.T.J)+", error code: "+p.T.C+", error: "+p.T.getLastError(),H=N;c2(p,N);tE(p,new Y7(V,X,H))}})}; o5S=function(p){p.D.lq("data",function(C){if("1"in C){var V=C["1"];try{var N=p.J(V)}catch(H){tE(p,new Y7(13,"Error when deserializing response data; error: "+H+(", response: "+V)))}N&&khy(p,N)}if("2"in C)for(C=x$v(p,C["2"]),V=0;V<p.Y.length;V++)p.Y[V](C)}); p.D.lq("end",function(){c2(p,Ti(p));for(var C=0;C<p.S.length;C++)p.S[C]()}); p.D.lq("error",function(){if(p.C.length!=0){var C=p.T.C;C!==0||dU(p.T)||(C=6);var V=-1;switch(C){case 0:var N=2;break;case 7:N=10;break;case 8:N=4;break;case 6:V=p.T.getStatus();N=Jb9(V);break;default:N=14}c2(p,Ti(p));C=DXH(C)+", error: "+p.T.getLastError();V!=-1&&(C+=", http status code: "+V);tE(p,new Y7(N,C))}})}; Ti=function(p){var C={},V=g.RJu(p.T);Object.keys(V).forEach(function(N){C[N]=V[N]}); return C}; x$v=function(p,C){var V=2,N={};try{var H=zQy(C);V=XG(H,1);var X=H.getMessage();jy(H,as,3).length&&(N["grpc-web-status-details-bin"]=C)}catch(d){p.T&&p.T.getStatus()===404?(V=5,X="Not Found: "+String(p.T.J)):(V=14,X="Unable to parse RpcStatus: "+d)}return{code:V,details:X,metadata:N}}; M_=function(p,C){C=p.indexOf(C);C>-1&&p.splice(C,1)}; khy=function(p,C){for(var V=0;V<p.V.length;V++)p.V[V](C)}; c2=function(p,C){for(var V=0;V<p.W.length;V++)p.W[V](C)}; tE=function(p,C){for(var V=0;V<p.C.length;V++)p.C[V](C)}; g.JE=function(p){this.S=p.R5n||null;this.V=p.uR||!1;this.C=void 0}; mn=function(p,C){g.h8.call(this);this.b_=p;this.Y=C;this.W=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.J=new Headers;this.C=null;this.a$="GET";this.Z="";this.T=!1;this.D=this.V=this.S=null}; RQa=function(p){p.V.read().then(p.un.bind(p)).catch(p.eQ.bind(p))}; Ff=function(p){p.readyState=4;p.S=null;p.V=null;p.D=null;v2(p)}; v2=function(p){p.onreadystatechange&&p.onreadystatechange.call(p)}; g.SZ=function(p){this.T=this.J=this.W="";this.V=null;this.Y=this.C="";this.D=!1;var C;p instanceof g.SZ?(this.D=p.D,g.KE(this,p.W),this.J=p.J,g.Dq(this,p.T),g.up(this,p.V),this.C=p.C,Zq(this,p.S.clone()),this.Y=p.Y):p&&(C=String(p).match(wA))?(this.D=!1,g.KE(this,C[1]||"",!0),this.J=UV(C[2]||""),g.Dq(this,C[3]||"",!0),g.up(this,C[4]),this.C=UV(C[5]||"",!0),Zq(this,C[6]||"",!0),this.Y=UV(C[7]||"")):(this.D=!1,this.S=new fE(null,this.D))}; g.KE=function(p,C,V){p.W=V?UV(C,!0):C;p.W&&(p.W=p.W.replace(/:$/,""))}; g.Dq=function(p,C,V){p.T=V?UV(C,!0):C}; g.up=function(p,C){if(C){C=Number(C);if(isNaN(C)||C<0)throw Error("Bad port number "+C);p.V=C}else p.V=null}; Zq=function(p,C,V){C instanceof fE?(p.S=C,n5L(p.S,p.D)):(V||(C=OV(C,eQL)),p.S=new fE(C,p.D))}; g.yh=function(p,C,V){p.S.set(C,V)}; g.q_=function(p){return p instanceof g.SZ?p.clone():new g.SZ(p)}; UV=function(p,C){return p?C?decodeURI(p.replace(/%25/g,"%2525")):decodeURIComponent(p):""}; OV=function(p,C,V){return typeof p==="string"?(p=encodeURI(p).replace(C,Pc1),V&&(p=p.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),p):null}; Pc1=function(p){p=p.charCodeAt(0);return"%"+(p>>4&15).toString(16)+(p&15).toString(16)}; fE=function(p,C){this.C=this.T=null;this.V=p||null;this.S=!!C}; Is=function(p){p.T||(p.T=new Map,p.C=0,p.V&&WX(p.V,function(C,V){p.add(HG(C),V)}))}; wGj=function(p,C){Is(p);C=bp(p,C);return p.T.has(C)}; g.$$H=function(p,C,V){p.remove(C);V.length>0&&(p.V=null,p.T.set(bp(p,C),g.p6(V)),p.C=p.C+V.length)}; bp=function(p,C){C=String(C);p.S&&(C=C.toLowerCase());return C}; n5L=function(p,C){C&&!p.S&&(Is(p),p.V=null,p.T.forEach(function(V,N){var H=N.toLowerCase();N!=H&&(this.remove(N),g.$$H(this,H,V))},p)); p.S=C}; g.L99=function(p){var C="";g.ZH(p,function(V,N){C+=N;C+=":";C+=V;C+="\r\n"}); return C}; g.AE=function(p,C,V){if(g.k5(V))return p;V=g.L99(V);if(typeof p==="string")return pN(p,g.N$(C),V);g.yh(p,C,V);return p}; g.os=function(p){g.Y.call(this);this.C=p;this.T={}}; g5e=function(p,C,V,N,H,X){if(Array.isArray(V))for(var d=0;d<V.length;d++)g5e(p,C,V[d],N,H,X);else{C=CJ(C,V,N||p.handleEvent,H,X||p.C||p);if(!C)return p;p.T[C.key]=C}return p}; W9v=function(){this.V=!0;this.C=0;this.T=""}; Qa9=function(p,C,V){p.V=!1;throw Error("The stream is broken @"+p.C+". Error: "+V+". With input:\n"+C);}; k3=function(){this.Y=null;this.D=[];this.S=this.C=this.V=this.T=this.Z=0;this.W=null;this.J=0}; x3=function(p,C,V,N){p.T=3;p.Y="The stream is broken @"+p.Z+"/"+V+". Error: "+N+". With input:\n"+C;throw Error(p.Y);}; Y3=function(){this.T=null;this.C=0;this.V=new W9v;this.S=new k3}; r9y=function(p,C,V){p.T="The stream is broken @"+p.C+". Error: "+V+". With input:\n"+C;throw Error(p.T);}; zi=function(p){return p=="\r"||p=="\n"||p==" "||p=="\t"}; nE=function(p){this.Z=null;this.Y=[];this.S="";this.b_=[];this.V=this.C=0;this.D=!1;this.J=0;this.sY=/[\\"]/g;this.T=this.W=0;this.a$=!(!p||!p.UH)}; eZ=function(p,C,V){p.W=3;p.Z="The stream is broken @"+p.V+"/"+V+". With input:\n"+C;throw Error(p.Z);}; P2=function(){this.W=this.V=null;this.C=this.T=0;this.S=[];this.Y=!1}; BIL=function(p){var C=g.s$(p,"Content-Type");if(!C)return null;C=C.toLowerCase();return C.startsWith("application/json")?C.startsWith("application/json+protobuf")?new P2:new nE:C.startsWith("application/x-protobuf")?(p=g.s$(p,"Content-Transfer-Encoding"))?p.toLowerCase()=="base64"?new Y3:null:new k3:null}; wh=function(p){this.T=p;this.C=null;this.W=this.V=0;this.Z=!1;this.S=this.D=this.Y=null;this.J=new g.os(this);this.J.listen(this.T,"readystatechange",this.a$)}; $3=function(p,C){p.W!=C&&(p.W=C,p.D&&p.D())}; LE=function(p){p.J.removeAll();if(p.T){var C=p.T;p.T=null;C.abort();C.dispose()}}; Ghs=function(p){p=this.V=p;var C=(0,g.LY)(this.ta$,this);p.S=C;p=this.V;C=(0,g.LY)(this.L6n,this);p.D=C;this.C={};this.T={}}; pea=function(p,C){for(var V={},N=0;N<p.length;V={Qg:void 0},N++)V.Qg=p[N],C.forEach(function(H){return function(X){try{X(H.Qg)}catch(d){}}}(V))}; gh=function(p,C){var V=p.C[C];V&&V.forEach(function(N){try{N()}catch(H){}}); (V=p.T[C])&&V.forEach(function(N){N()}); p.T[C]=[]}; CKa=function(){var p={format:"jspb"};p=p===void 0?{}:p;this.W=p.oEk||g.zV("suppressCorsPreflight",p)||!1;this.C=p.withCredentials||g.zV("withCredentials",p)||!1;this.S=p.wSa||[];this.Y=p.c6r||[];this.T=p.T2V;this.V=p.ZVk||!1}; Hea=function(p,C,V,N,H){var X=C.substring(0,C.length-H.name.length);return jNL(function(d){return new VuV(function(a,E){var l={},t=NWe(p,d,X);t.lq("error",function(c){return E(c)}); t.lq("metadata",function(c){l=c}); t.lq("data",function(c){var T=l;T=T===void 0?{}:T;a(new ip(c,T))})})},p.Y).call(p,H.D(V,N)).then(function(d){return d.Q6x})}; NWe=function(p,C,V){var N=C.j7,H=C.getMetadata(),X=XeL(p,!0);p=dqY(p,H,X,V+N.getName());V=ies(X,N.C,!1);Y_1(V,H["X-Goog-Encode-Response-If-Executable"]=="base64");C=N.T(C.G0);X.send(p,"POST",C);return V}; XeL=function(p,C){C=p.V&&!C;return p.T||C?new g.VO(new g.JE({R5n:p.T,uR:C})):new g.VO}; dqY=function(p,C,V,N){C["Content-Type"]="application/json+protobuf";C["X-User-Agent"]="grpc-web-javascript/0.1";var H=C.Authorization;if(H&&hC9.has(H.split(" ")[0])||p.C)V.D=!0;if(p.W)N=g.AE(N,"$httpHeaders",C);else for(var X in C)V.headers.set(X,C[X]);return N}; ies=function(p,C,V){if(V){p.isActive();V=new wh(p);var N=new Ghs(V)}return new lp({xhr:p,C_e:N},C)}; jNL=function(p,C){return C.reduce(function(V,N){return function(H){return N.intercept(H,V)}},p)}; sNv=function(){this.T=new CKa;this.C="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; W2=function(p){g.Y.call(this);this.owner=p;this.signals=new Set;p&&g.R(p,this)}; Qh=function(p,C){p.signals.has(C);return C}; rh=function(p){g.Y.call(this);this.IK=p;this.slots=new Map;this.G3=new Set;this.Wi=!1}; azu=function(p,C){p.fS()||p.slots.set(C,{slotId:C,slot:void 0,O0:function(){return p.slots.delete(C)}})}; Gi=function(p,C){new Promise(function(V){B2(function(){p.IK&&(p.EQ=C,p.Wi=!0);for(var N=g.F(p.slots.values()),H=N.next();!H.done;H=N.next()){var X=H.value;H=X.slotId;X=X.slot;try{X(C,{signal:p,slotId:H})}catch(d){Jf(d)}}N=g.F(p.G3);for(H=N.next();!H.done;H=N.next())H.value.resolve(C);p.G3.clear();V()})})}; B2=function(p){ph.push(p);Eqe()}; Eqe=function(){var p,C;g.I(function(V){switch(V.C){case 1:if(Ch)return V.return();g.vv(V,2,3);Ch=!0;p=lzV(0);case 5:if(!(p<ph.length)){V.EY(3);break}return g.y(V,Promise.resolve(),8);case 8:p=lzV(p);V.EY(5);break;case 3:g.KY(V);ph.length=0;Ch=!1;g.Dj(V,0);break;case 2:C=g.Sa(V),Jf(C),V.EY(3)}})}; lzV=function(p){for(var C=p+100;p<C&&p<ph.length;)try{ph[p++]()}catch(V){Jf(V)}return p}; tuj=function(p,C){if(p.fS())C();else{var V=j1.get(p);if(V)V.push(C);else{var N=[C];j1.set(p,N);p.addOnDisposeCallback(function(){for(var H=g.F([].concat(g.K(N))),X=H.next();!X.done;X=H.next())X=X.value,X();j1.delete(p)})}}}; VA=function(p,C,V){g.Y.call(this);this.D=p;this.milliseconds=C;this.aH=V;this.state=this.S=0}; c2a=function(p){return new VA(!1,p,{TF:function(){}, AP:void 0})}; Nk=function(p){c5.call(this,p);this.name="TimerCancelledError"}; Hs=function(p){c5.call(this,p);this.name="TimerDisposedError"}; TWH=function(p){var C={P$:p.P$,hw:p.hw,F9:!0,qJ:!0};p.Yq&&(p=p.Yq,C.Yq={pA:p.pA,q2:p.q2,Xz:p.Xz});return C}; XL=function(p){var C;jZ.call(this,p.P9a?new Tq:new vi({SU:p.SU,Uf:p.I1,Fn:p.Fn},[]),(C=p.onError)!=null?C:function(){},1); this.C=new g.Zt;this.G1=void 0;this.qB=p.qB;this.Ro=p.Ro;var V;this.onEvent=(V=p.onEvent)!=null?V:function(){}}; J2S=function(p){var C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D;return g.I(function(Z){switch(Z.C){case 1:C=void 0,V=p.isReady()?6E4:1E3,N=new g.oN(V,6E5,.25,2),H={},X=1;case 2:if(!(X<=2)){Z.EY(4);break}g.vv(Z,5);p.state=3;p.Y=X-1;return g.y(Z,p.G1&&X===1?p.G1:p.Dj(X),7);case 7:return d=Z.T,p.G1=void 0,p.state=4,a=new l3(p.logger,"b"),g.y(Z,qj(yO(),d),8);case 8:return p.state=5,p.onEvent(1),H.pN=3,H.cX=new U$({challenge:d,sH:p.logger}),E=dT(p,12E4).then(function(q){return function(){p.onEvent(q.pN);return Promise.reject(new fN(15, "MDA:Timeout"))}}(H)),g.y(Z,Promise.race([H.cX.Or, E]),9);case 9:return p.onEvent(2),l=[],p.onEvent(4),H.pN=6,g.y(Z,Promise.race([H.cX.snapshot({P5:l}),E]),10);case 10:return t=Z.T,p.onEvent(5),c=g.F(l),T=c.next().value,H.XY=T,a.done(),p.state=6,g.y(Z,Muu(p,p.logger.YH("g",X,p.qB.dK(t)),new fN(10,"BWB:Timeout")),11);case 11:return H.sz=Z.T,p.state=7,M=ci(p.logger,function(q){return function(){var A=q.sz;var z=q.cX;var Q=q.XY;if(TA(A,4))z.dispose(),z=new Bi(p.logger,TA(A,4),c4(A,2)*1E3);else if(c4(A,3)){if(!Q)throw new fN(4,"PMD:Undefined");var P= Q(f6(Qx(A,1)));if(!(P instanceof Function))throw new fN(16,"APF:Failed");Q=c4(A,2)*1E3;A=new QO(p.logger,P,c4(A,3),Q);g.R(A,z);p.D=Math.floor((Date.now()+Q)/1E3);z=A}else z.dispose(),z=new rU(p.logger,f6(Qx(A,1)),c4(A,2)*1E3);return z}}(H),"i"),S=J=void 0,(S=(J=p).Ro)==null||S.call(J,f6(Qx(H.sz,1))),p.state=8,Z.return(M); case 5:D=g.Sa(Z);C=D instanceof fN?D:D instanceof Hs?new fN(20,"WTO:Disposed",D):D instanceof Y7?new fN(11,"EBH:Error",D):new fN(12,"BSO:Unknown",D);p.reportError(C);a:{if(D instanceof Y7)switch(D.code){case 2:case 13:case 14:case 4:var f=!0;break a;default:f=!1;break a}f=D instanceof fN?D.code!==20:!0}if(!f)throw C;return g.y(Z,dT(p,N.getValue()),12);case 12:g.kq(N);case 3:H={pN:void 0,sz:void 0,cX:void 0,XY:void 0};X++;Z.EY(2);break;case 4:throw C;}})}; dT=function(p,C){C=c2a(C);g.R(p,C);C.start();return C.J}; Muu=function(p,C,V){return Promise.race([C,dT(p,12E4).then(function(){return Promise.reject(V)})])}; mqH=function(p){var C,V,N;g.I(function(H){switch(H.C){case 1:return C=void 0,g.vv(H,5),g.y(H,J2S(p),7);case 7:C=H.T;g.Fe(H,6);break;case 5:V=g.Sa(H);if(p.T){p.logger.SH(13);H.EY(0);break}p.logger.SH(14);C=new Gq(p.logger,V instanceof fN?V:new fN(14,"SOM:Init",V instanceof Error?V:Error(String(V))));case 6:return N=void 0,(N=p.T)==null||N.dispose(),p.T=C,p.C.resolve(),g.vv(H,8),g.y(H,p.T.T.promise,10);case 10:g.Fe(H,1);break;case 8:g.Sa(H),H.EY(0)}})}; vqY=function(p,C){C.Yq&&!p.cache&&p.Iw(Math.min(C.Yq.le,150))}; FSH=function(p){var C={};g.lr(p,function(V){var N=V.event,H=C[N];C.hasOwnProperty(N)?H!==null&&(V.sE(H)||(C[N]=null)):C[N]=V}); GVs(p,function(V){return C[V.event]===null})}; iZ=function(){this.L7=0;this.T=!1;this.C=-1;this.Wj=!1;this.PB=0}; hU=function(){this.C=null;this.T=!1}; sh=function(p){hU.call(this);this.S=p}; ao=function(){hU.call(this)}; Eh=function(){hU.call(this)}; lZ=function(){this.T={};this.C=!0;this.V={}}; tU=function(p,C,V){p.T[C]||(p.T[C]=new sh(V));return p.T[C]}; Soy=function(p){p.T.queryid||(p.T.queryid=new Eh)}; cs=function(p,C,V){(p=p.T[C])&&p.V(V)}; Ty=function(p,C){if(g.bc(p.V,C))return p.V[C];if(p=p.T[C])return p.getValue()}; Mk=function(p){var C={},V=g.U_(p.T,function(N){return N.T}); g.ZH(V,function(N,H){N=p.V[H]!==void 0?String(p.V[H]):N.T&&N.C!==null?String(N.C):"";N.length>0&&(C[H]=N)},p); return C}; KSj=function(p){p=Mk(p);var C=[];g.ZH(p,function(V,N){N in Object.prototype||typeof V!="undefined"&&C.push([N,":",V].join(""))}); return C}; uQe=function(p){tU(p,"od",Dqu);tU(p,"opac",JU).T=!0;tU(p,"sbeos",JU).T=!0;tU(p,"prf",JU).T=!0;tU(p,"mwt",JU).T=!0;tU(p,"iogeo",JU)}; ZeS=function(){this.T=this.Os=null}; mg=function(){}; FL=function(){if(!vs())throw Error();}; vs=function(){return!(!S1||!S1.performance)}; Kh=function(p){return p?p.passive&&UqQ()?p:p.capture||!1:!1}; De=function(p,C,V,N){return p.addEventListener?(p.addEventListener(C,V,Kh(N)),!0):!1}; uZ=function(p){return p.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[p.visibilityState||p.webkitVisibilityState||p.mozVisibilityState||""]||0}; fzu=function(){}; Oes=function(){return(O1||y8)&&qc?qc.mobile:!Ze()&&(bP("iPod")||bP("iPhone")||bP("Android")||bP("IEMobile"))}; Ze=function(){return(O1||y8)&&qc?!qc.mobile&&(bP("iPad")||bP("Android")||bP("Silk")):bP("iPad")||bP("Android")&&!bP("Mobile")||bP("Silk")}; Uh=function(p){try{return!!p&&p.location.href!=null&&X5e(p,"foo")}catch(C){return!1}}; fh=function(p,C){if(p)for(var V in p)Object.prototype.hasOwnProperty.call(p,V)&&C(p[V],V,p)}; qoH=function(){var p=[];fh(y2V,function(C){p.push(C)}); return p}; IzV=function(p){var C,V;return(V=(C=/https?:\/\/[^\/]+/.exec(p))==null?void 0:C[0])!=null?V:""}; oqj=function(){var p=be1("IFRAME"),C={};g.lr(A21(),function(V){p.sandbox&&p.sandbox.supports&&p.sandbox.supports(V)&&(C[V]=!0)}); return C}; be1=function(p,C){C=C===void 0?document:C;return C.createElement(String(p).toLowerCase())}; kOs=function(p){for(var C=p;p&&p!=p.parent;)p=p.parent,Uh(p)&&(C=p);return C}; RCa=function(p){p=p||Oh();for(var C=new xqQ(g.xH.location.href,!1),V=null,N=p.length-1,H=N;H>=0;--H){var X=p[H];!V&&You.test(X.url)&&(V=X);if(X.url&&!X.vF){C=X;break}}H=null;X=p.length&&p[N].url;C.depth!=0&&X&&(H=p[N]);return new zCS(C,H,V)}; Oh=function(){var p=g.xH,C=[],V=null;do{var N=p;if(Uh(N)){var H=N.location.href;V=N.document&&N.document.referrer||null}else H=V,V=null;C.push(new xqQ(H||""));try{p=N.parent}catch(X){p=null}}while(p&&N!=p);N=0;for(p=C.length-1;N<=p;++N)C[N].depth=p-N;N=g.xH;if(N.location&&N.location.ancestorOrigins&&N.location.ancestorOrigins.length==C.length-1)for(p=1;p<C.length;++p)H=C[p],H.url||(H.url=N.location.ancestorOrigins[p-1]||"",H.vF=!0);return C}; zCS=function(p,C,V){this.T=p;this.C=C;this.V=V}; xqQ=function(p,C){this.url=p;this.vF=!!C;this.depth=null}; yA=function(){this.V="&";this.C={};this.S=0;this.T=[]}; qk=function(p,C){var V={};V[p]=C;return[V]}; nqX=function(p,C,V,N,H){var X=[];fh(p,function(d,a){(d=Io(d,C,V,N,H))&&X.push(a+"="+d)}); return X.join(C)}; Io=function(p,C,V,N,H){if(p==null)return"";C=C||"&";V=V||",$";typeof V==="string"&&(V=V.split(""));if(p instanceof Array){if(N||(N=0),N<V.length){for(var X=[],d=0;d<p.length;d++)X.push(Io(p[d],C,V,N+1,H));return X.join(V[N])}}else if(typeof p==="object")return H||(H=0),H<2?encodeURIComponent(nqX(p,C,V,N,H+1)):"...";return encodeURIComponent(String(p))}; eCa=function(p){var C=1,V;for(V in p.C)V.length>C&&(C=V.length);return 3997-C-p.V.length-1}; bZ=function(p,C){this.T=p;this.depth=C}; wea=function(){function p(a,E){return a==null?E:a} var C=Oh(),V=Math.max(C.length-1,0),N=RCa(C);C=N.T;var H=N.C,X=N.V,d=[];X&&d.push(new bZ([X.url,X.vF?2:0],p(X.depth,1)));H&&H!=X&&d.push(new bZ([H.url,2],0));C.url&&C!=X&&d.push(new bZ([C.url,0],p(C.depth,V)));N=g.AU(d,function(a,E){return d.slice(0,d.length-E)}); !C.url||(X||H)&&C!=X||(H=IzV(C.url))&&N.push([new bZ([H,1],p(C.depth,V))]);N.push([]);return g.AU(N,function(a){return PKH(V,a)})}; PKH=function(p,C){g.oo(C,function(H){return H.depth>=0}); var V=kc(C,function(H,X){return Math.max(H,X.depth)},-1),N=NYH(V+2); N[0]=p;g.lr(C,function(H){return N[H.depth+1]=H.T}); return N}; $qa=function(){var p=p===void 0?wea():p;return p.map(function(C){return Io(C)})}; LSj=function(p){var C=!1;C=C===void 0?!1:C;S1.google_image_requests||(S1.google_image_requests=[]);var V=be1("IMG",S1.document);C&&(V.attributionSrc="");V.src=p;S1.google_image_requests.push(V)}; xc=function(p){var C="b8";if(p.b8&&p.hasOwnProperty(C))return p.b8;var V=new p;p.b8=V;p.hasOwnProperty(C);return V}; Yc=function(){this.C=new fzu;this.T=vs()?new FL:new mg}; gqv=function(){zy();var p=S1.document;return!!(p&&p.body&&p.body.getBoundingClientRect&&typeof S1.setInterval==="function"&&typeof S1.clearInterval==="function"&&typeof S1.setTimeout==="function"&&typeof S1.clearTimeout==="function")}; WSu=function(){zy();return $qa()}; QNu=function(){}; zy=function(){var p=xc(QNu);if(!p.T){if(!S1)throw Error("Context has not been set and window is undefined.");p.T=xc(Yc)}return p.T}; Ro=function(p){this.bx=OL(p)}; r29=function(p){this.V=p;this.T=-1;this.C=this.S=0}; nh=function(p,C){return function(){var V=g.US.apply(0,arguments);if(p.T>-1)return C.apply(null,g.K(V));try{return p.T=p.V.T.now(),C.apply(null,g.K(V))}finally{p.S+=p.V.T.now()-p.T,p.T=-1,p.C+=1}}}; BWL=function(p,C){this.C=p;this.V=C;this.T=new r29(p)}; GOV=function(){this.T={}}; Cms=function(){var p=e1().flags,C=pX1;p=p.T[C.key];if(C.valueType==="proto"){try{var V=JSON.parse(p);if(Array.isArray(V))return V}catch(N){}return C.defaultValue}return typeof p===typeof C.defaultValue?p:C.defaultValue}; HJv=function(){this.V=void 0;this.C=this.Y=0;this.W=-1;this.IN=new lZ;tU(this.IN,"mv",jbH).T=!0;tU(this.IN,"omid",JU);tU(this.IN,"epoh",JU).T=!0;tU(this.IN,"epph",JU).T=!0;tU(this.IN,"umt",JU).T=!0;tU(this.IN,"phel",JU).T=!0;tU(this.IN,"phell",JU).T=!0;tU(this.IN,"oseid",VSe).T=!0;var p=this.IN;p.T.sloi||(p.T.sloi=new ao);p.T.sloi.T=!0;tU(this.IN,"mm",Ps);tU(this.IN,"ovms",NAH).T=!0;tU(this.IN,"xdi",JU).T=!0;tU(this.IN,"amp",JU).T=!0;tU(this.IN,"prf",JU).T=!0;tU(this.IN,"gtx",JU).T=!0;tU(this.IN, "mvp_lv",JU).T=!0;tU(this.IN,"ssmol",JU).T=!0;tU(this.IN,"fmd",JU).T=!0;tU(this.IN,"gen204simple",JU);this.T=new BWL(zy(),this.IN);this.S=!1;this.flags=new GOV}; e1=function(){return xc(HJv)}; XXe=function(p,C,V,N){if(Math.random()<(N||p.T))try{if(V instanceof yA)var H=V;else H=new yA,fh(V,function(d,a){var E=H,l=E.S++;d=qk(a,d);E.T.push(l);E.C[l]=d}); var X=H.i9(p.C,"pagead2.googlesyndication.com","/pagead/gen_204?id="+C+"&");X&&(zy(),LSj(X))}catch(d){}}; d79=function(p,C,V){V=V===void 0?{}:V;this.error=p;this.context=C.context;this.msg=C.message||"";this.id=C.id||"jserror";this.meta=V}; iJu=function(){var p=p===void 0?g.xH:p;return(p=p.performance)&&p.now&&p.timing?Math.floor(p.now()+p.timing.navigationStart):g.QL()}; hNY=function(){var p=p===void 0?g.xH:p;return(p=p.performance)&&p.now?p.now():null}; sb1=function(p,C,V){this.label=p;this.type=C;this.value=V;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; $c=function(){var p=window;this.events=[];this.C=p||g.xH;var C=null;p&&(p.google_js_reporting_queue=p.google_js_reporting_queue||[],this.events=p.google_js_reporting_queue,C=p.google_measure_js_timing);this.T=wT()||(C!=null?C:Math.random()<1)}; aCL=function(p){p&&Lh&&wT()&&(Lh.clearMarks("goog_"+p.label+"_"+p.uniqueId+"_start"),Lh.clearMarks("goog_"+p.label+"_"+p.uniqueId+"_end"))}; E7u=function(){var p=gT;this.T=Ws;this.au="jserror";this.BN=!0;this.uh=null;this.C=this.KP;this.Pa=p===void 0?null:p}; lCa=function(p,C,V){var N=QA;return nh(e1().T.T,function(){try{if(N.Pa&&N.Pa.T){var H=N.Pa.start(p.toString(),3);var X=C();N.Pa.end(H)}else X=C()}catch(a){var d=N.BN;try{aCL(H),d=N.C(p,new rT(Bs(a)),void 0,V)}catch(E){N.KP(217,E)}if(!d)throw a;}return X})()}; Gy=function(p,C,V,N){return nh(e1().T.T,function(){var H=g.US.apply(0,arguments);return lCa(p,function(){return C.apply(V,H)},N)})}; Bs=function(p){var C=p.toString();p.name&&C.indexOf(p.name)==-1&&(C+=": "+p.name);p.message&&C.indexOf(p.message)==-1&&(C+=": "+p.message);if(p.stack)a:{p=p.stack;var V=C;try{p.indexOf(V)==-1&&(p=V+"\n"+p);for(var N;p!=N;)N=p,p=p.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");C=p.replace(/\n */g,"\n");break a}catch(H){C=V;break a}C=void 0}return C}; rT=function(p){d79.call(this,Error(p),{message:p})}; tSH=function(){S1&&typeof S1.google_measure_js_timing!="undefined"&&(S1.google_measure_js_timing||gT.disable())}; c8y=function(p){QA.uh=function(C){g.lr(p,function(V){V(C)})}}; TAj=function(p,C){return lCa(p,C)}; p2=function(p,C){return Gy(p,C)}; C2=function(p,C,V,N){QA.KP(p,C,V,N)}; jh=function(){return Date.now()-MSX}; J8L=function(){var p=e1().V,C=VT>=0?jh()-VT:-1,V=NK?jh()-Hf:-1,N=Xj>=0?jh()-Xj:-1;if(p==947190542)return 100;if(p==79463069)return 200;p=[2E3,4E3];var H=[250,500,1E3];C2(637,Error(),.001);var X=C;V!=-1&&V<C&&(X=V);for(C=0;C<p.length;++C)if(X<p[C]){var d=H[C];break}d===void 0&&(d=H[p.length]);return N!=-1&&N>1500&&N<4E3?500:d}; d9=function(p,C,V,N){this.top=p;this.right=C;this.bottom=V;this.left=N}; tx=function(p){return p.right-p.left}; cf=function(p,C){return p==C?!0:p&&C?p.top==C.top&&p.right==C.right&&p.bottom==C.bottom&&p.left==C.left:!1}; Tu=function(p,C,V){C instanceof g.Fn?(p.left+=C.x,p.right+=C.x,p.top+=C.y,p.bottom+=C.y):(p.left+=C,p.right+=C,typeof V==="number"&&(p.top+=V,p.bottom+=V));return p}; MK=function(p,C,V){var N=new d9(0,0,0,0);this.time=p;this.volume=null;this.V=C;this.T=N;this.C=V}; Jx=function(p,C,V,N,H,X,d,a){this.S=p;this.D=C;this.V=V;this.Y=N;this.T=H;this.W=X;this.C=d;this.J=a}; v7a=function(p){var C=p!==p.top,V=p.top===kOs(p),N=-1,H=0;if(C&&V&&p.top.mraid){N=3;var X=p.top.mraid}else N=(X=p.mraid)?C?V?2:1:0:-1;X&&(X.IS_GMA_SDK||(H=2),WKS(m7u,function(d){return typeof X[d]==="function"})||(H=1)); return{Dm:X,compatibility:H,hsY:N}}; Fo9=function(){var p=window.document;return p&&typeof p.elementFromPoint==="function"}; S8s=function(p,C,V){p&&C!==null&&C!=C.top&&(C=C.top);try{return(V===void 0?0:V)?(new g.KG(C.innerWidth,C.innerHeight)).round():st9(C||window).round()}catch(N){return new g.KG(-12245933,-12245933)}}; mG=function(p,C,V){try{p&&(C=C.top);var N=S8s(p,C,V),H=N.height,X=N.width;if(X===-12245933)return new d9(X,X,X,X);var d=EVV(rI(C.document).T),a=d.x,E=d.y;return new d9(E,a+X,E+H,a)}catch(l){return new d9(-12245933,-12245933,-12245933,-12245933)}}; g.vf=function(p,C,V,N){this.left=p;this.top=C;this.width=V;this.height=N}; Fj=function(p,C){return p==C?!0:p&&C?p.left==C.left&&p.width==C.width&&p.top==C.top&&p.height==C.height:!1}; g.K2=function(p,C,V){if(typeof C==="string")(C=Sh(p,C))&&(p.style[C]=V);else for(var N in C){V=p;var H=C[N],X=Sh(V,N);X&&(V.style[X]=H)}}; Sh=function(p,C){var V=Koa[C];if(!V){var N=nKs(C);V=N;p.style[N]===void 0&&(N=(g.Nq?"Webkit":Do?"Moz":null)+Pg9(N),p.style[N]!==void 0&&(V=N));Koa[C]=V}return V}; g.u4=function(p,C){var V=p.style[nKs(C)];return typeof V!=="undefined"?V:p.style[Sh(p,C)]||""}; Zo=function(p,C){var V=QW(p);return V.defaultView&&V.defaultView.getComputedStyle&&(p=V.defaultView.getComputedStyle(p,null))?p[C]||p.getPropertyValue(C)||"":""}; UE=function(p,C){return Zo(p,C)||(p.currentStyle?p.currentStyle[C]:null)||p.style&&p.style[C]}; g.OE=function(p,C,V){if(C instanceof g.Fn){var N=C.x;C=C.y}else N=C,C=V;p.style.left=g.f2(N,!1);p.style.top=g.f2(C,!1)}; yT=function(p){try{return p.getBoundingClientRect()}catch(C){return{left:0,top:0,right:0,bottom:0}}}; D7s=function(p){var C=QW(p),V=UE(p,"position"),N=V=="fixed"||V=="absolute";for(p=p.parentNode;p&&p!=C;p=p.parentNode)if(p.nodeType==11&&p.host&&(p=p.host),V=UE(p,"position"),N=N&&V=="static"&&p!=C.documentElement&&p!=C.body,!N&&(p.scrollWidth>p.clientWidth||p.scrollHeight>p.clientHeight||V=="fixed"||V=="absolute"||V=="relative"))return p;return null}; g.qK=function(p){var C=QW(p),V=new g.Fn(0,0);if(p==(C?QW(C):document).documentElement)return V;p=yT(p);C=EVV(rI(C).T);V.x=p.left+C.x;V.y=p.top+C.y;return V}; ZJs=function(p,C){var V=new g.Fn(0,0),N=He(QW(p));if(!X5e(N,"parent"))return V;do{var H=N==C?g.qK(p):uuV(p);V.x+=H.x;V.y+=H.y}while(N&&N!=C&&N!=N.parent&&(p=N.frameElement)&&(N=N.parent));return V}; g.I9=function(p,C){p=U7y(p);C=U7y(C);return new g.Fn(p.x-C.x,p.y-C.y)}; uuV=function(p){p=yT(p);return new g.Fn(p.left,p.top)}; U7y=function(p){if(p.nodeType==1)return uuV(p);p=p.changedTouches?p.changedTouches[0]:p;return new g.Fn(p.clientX,p.clientY)}; g.b4=function(p,C,V){if(C instanceof g.KG)V=C.height,C=C.width;else if(V==void 0)throw Error("missing height argument");p.style.width=g.f2(C,!0);p.style.height=g.f2(V,!0)}; g.f2=function(p,C){typeof p=="number"&&(p=(C?Math.round(p):p)+"px");return p}; g.Ax=function(p){var C=fCS;if(UE(p,"display")!="none")return C(p);var V=p.style,N=V.display,H=V.visibility,X=V.position;V.visibility="hidden";V.position="absolute";V.display="inline";p=C(p);V.display=N;V.position=X;V.visibility=H;return p}; fCS=function(p){var C=p.offsetWidth,V=p.offsetHeight,N=g.Nq&&!C&&!V;return(C===void 0||N)&&p.getBoundingClientRect?(p=yT(p),new g.KG(p.right-p.left,p.bottom-p.top)):new g.KG(C,V)}; g.o9=function(p,C){p.style.display=C?"":"none"}; ko=function(p,C){C=Math.pow(10,C);return Math.floor(p*C)/C}; OJH=function(p){return new d9(p.top,p.right,p.bottom,p.left)}; y8S=function(p){var C=p.top||0,V=p.left||0;return new d9(C,V+(p.width||0),C+(p.height||0),V)}; xo=function(p){return p!=null&&p>=0&&p<=1}; q8u=function(){var p=g.f0();return p?Yo("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(C){return Dv(p,C)})||Dv(p,"OMI/")&&!Dv(p,"XiaoMi/")?!0:Dv(p,"Presto")&&Dv(p,"Linux")&&!Dv(p,"X11")&&!Dv(p,"Android")&&!Dv(p,"Mobi"):!1}; ICe=function(){this.V=!Uh(S1.top);this.isMobileDevice=Ze()||Oes();var p=Oh();this.domain=p.length>0&&p[p.length-1]!=null&&p[p.length-1].url!=null?g.LJ(p[p.length-1].url)||"":"";this.T=new d9(0,0,0,0);this.S=new g.KG(0,0);this.W=new g.KG(0,0);this.D=new d9(0,0,0,0);this.frameOffset=new g.Fn(0,0);this.Y=0;this.J=!1;this.C=!(!S1||!v7a(S1).Dm);this.update(S1)}; bJL=function(p,C){C&&C.screen&&(p.S=new g.KG(C.screen.width,C.screen.height))}; A8a=function(p,C){a:{var V=p.T?new g.KG(tx(p.T),p.T.getHeight()):new g.KG(0,0);C=C===void 0?S1:C;C!==null&&C!=C.top&&(C=C.top);var N=0,H=0;try{var X=C.document,d=X.body,a=X.documentElement;if(X.compatMode=="CSS1Compat"&&a.scrollHeight)N=a.scrollHeight!=V.height?a.scrollHeight:a.offsetHeight,H=a.scrollWidth!=V.width?a.scrollWidth:a.offsetWidth;else{var E=a.scrollHeight,l=a.scrollWidth,t=a.offsetHeight,c=a.offsetWidth;a.clientHeight!=t&&(E=d.scrollHeight,l=d.scrollWidth,t=d.offsetHeight,c=d.offsetWidth); E>V.height?E>t?(N=E,H=l):(N=t,H=c):E<t?(N=E,H=l):(N=t,H=c)}var T=new g.KG(H,N);break a}catch(M){T=new g.KG(-12245933,-12245933);break a}T=void 0}p.W=T}; n2=function(){var p=zu();if(p.Y>0||p.J)return!0;p=zy().C.isVisible();var C=uZ(R9)===0;return p||C}; zu=function(){return xc(ICe)}; eh=function(p){this.V=p;this.C=0;this.T=null}; Pf=function(p,C,V){this.V=p;this.Ga=V===void 0?"na":V;this.W=[];this.isInitialized=!1;this.S=new MK(-1,!0,this);this.T=this;this.J=C;this.a$=this.Z=!1;this.Sa="uk";this.Vn=!1;this.Y=!0}; w9=function(p,C){g.W5(p.W,C)||(p.W.push(C),C.Zk(p.T),C.zY(p.S),C.WK()&&(p.Z=!0))}; o7e=function(p){p=p.T;p.RU();p.PH();var C=zu();C.D=mG(!1,p.V,C.isMobileDevice);A8a(zu(),p.V);p.S.T=p.Ms()}; kDs=function(p){p.Z=p.W.length?Yo(p.W,function(C){return C.WK()}):!1}; x7Y=function(p){var C=g.p6(p.W);g.lr(C,function(V){V.zY(p.S)})}; $o=function(p){var C=g.p6(p.W);g.lr(C,function(V){V.Zk(p.T)}); p.T!=p||x7Y(p)}; L2=function(p,C,V,N){this.element=p;this.T=new d9(0,0,0,0);this.V=null;this.Y=new d9(0,0,0,0);this.C=C;this.IN=V;this.Vn=N;this.sY=!1;this.timestamp=-1;this.Z=new Jx(C.S,this.element,this.T,new d9(0,0,0,0),0,0,jh(),0);this.W=void 0}; Y8H=function(p,C){return p.W?new d9(Math.max(C.top+p.W.top,C.top),Math.min(C.left+p.W.right,C.right),Math.min(C.top+p.W.bottom,C.bottom),Math.max(C.left+p.W.left,C.left)):C.clone()}; g9=function(p){this.W=!1;this.T=p;this.S=function(){}}; zNV=function(p,C,V){this.V=V===void 0?0:V;this.C=p;this.T=C==null?"":C}; RNV=function(p){switch(Math.trunc(p.V)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; n7y=function(p,C){return p.V<C.V?!0:p.V>C.V?!1:p.C<C.C?!0:p.C>C.C?!1:typeof p.T<typeof C.T?!0:typeof p.T>typeof C.T?!1:p.T<C.T}; Wf=function(){this.V=0;this.T=[];this.C=!1}; eNY=function(p,C){(0,g.lr)(C.T,function(V){p.add(V.C,V.T,RNV(V))})}; QT=function(p,C){var V=V===void 0?0:V;var N=N===void 0?!0:N;fh(C,function(H,X){N&&H===void 0||p.add(X,H,V)}); return p}; r9=function(p){var C=Pma;p.C&&(g.hB(p.T,function(V,N){return n7y(N,V)?1:n7y(V,N)?-1:0}),p.C=!1); return kc(p.T,function(V,N){N=C(N);return""+V+(V!=""&&N!=""?"&":"")+N},"")}; Pma=function(p){var C=p.C;p=p.T;return p===""?C:typeof p==="boolean"?p?C:"":Array.isArray(p)?p.length===0?C:C+"="+p.join():C+"="+(g.W5(["mtos","tos","p"],C)?p:encodeURIComponent(p))}; wXX=function(p){var C=C===void 0?!0:C;this.T=new Wf;p!==void 0&&eNY(this.T,p);C&&this.T.add("v","unreleased",-16)}; $7s=function(p){var C=[],V=[];g.ZH(p,function(N,H){if(!(H in Object.prototype)&&typeof N!="undefined")switch(Array.isArray(N)&&(N=N.join(",")),N=[H,"=",N].join(""),H){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":C.unshift(N);break;case "req":case "url":case "referrer":case "iframe_loc":V.push(N);break;default:C.push(N)}}); return C.concat(V)}; Loy=function(p){p=p.toString();zy();LSj(p)}; g79=function(){this.T=0}; Woe=function(p,C,V){(0,g.lr)(p.V,function(N){var H=p.T;if(!N.T&&(N.V(C,V),N.S())){N.T=!0;var X=N.C(),d=new Wf;d.add("id","av-js");d.add("type","verif");d.add("vtype",N.W);N=xc(g79);d.add("i",N.T++);d.add("adk",H);QT(d,X);H=new wXX(d);Loy(H)}})}; Bf=function(){this.C=this.V=this.S=this.T=0}; Gu=function(p){this.C=p=p===void 0?QbS:p;this.T=g.AU(this.C,function(){return new Bf})}; po=function(p,C){return r8Y(p,function(V){return V.T},C===void 0?!0:C)}; jr=function(p,C){return Co(p,C,function(V){return V.T})}; BAa=function(p,C){return r8Y(p,function(V){return V.V},C===void 0?!0:C)}; VF=function(p,C){return Co(p,C,function(V){return V.V})}; NZ=function(p,C){return Co(p,C,function(V){return V.C})}; GDV=function(p){g.lr(p.T,function(C){C.C=0})}; r8Y=function(p,C,V){p=g.AU(p.T,function(N){return C(N)}); return V?p:piv(p)}; Co=function(p,C,V){var N=g.gY(p.C,function(H){return C<=H}); return N==-1?0:V(p.T[N])}; piv=function(p){return g.AU(p,function(C,V,N){return V>0?N[V]-N[V-1]:N[V]})}; Hp=function(){this.C=new Gu;this.Ga=this.vr=0;this.R$=new Bf;this.b_=this.D=-1;this.Qn=1E3;this.qo=new Gu([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Sa=this.sY=-1}; XU=function(p,C){return BAa(p.C,C===void 0?!0:C)}; dx=function(p,C,V,N){var H=H===void 0?!1:H;V=Gy(N,V);De(p,C,V,{capture:H})}; sH=function(p,C){C=hT(C);return C===0?0:hT(p)/C}; hT=function(p){return Math.max(p.bottom-p.top,0)*Math.max(p.right-p.left,0)}; C31=function(p,C){if(!p||!C)return!1;for(var V=0;p!==null&&V++<100;){if(p===C)return!0;try{if(p=p.parentElement||p){var N=QW(p),H=N&&He(N),X=H&&H.frameElement;X&&(p=X)}}catch(d){break}}return!1}; jXu=function(p,C,V){if(!p||!C)return!1;C=Tu(p.clone(),-C.left,-C.top);p=(C.left+C.right)/2;C=(C.top+C.bottom)/2;Uh(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Fo9())return!1;p=window.document.elementFromPoint(p,C);if(!p)return!1;C=(C=(C=QW(V))&&C.defaultView&&C.defaultView.frameElement)&&C31(C,p);var N=p===V;p=!N&&p&&TO(p,function(H){return H===V}); return!(C||N||p)}; VEH=function(p,C,V,N){return zu().V?!1:tx(p)<=0||p.getHeight()<=0?!0:V&&N?TAj(208,function(){return jXu(p,C,V)}):!1}; a1=function(p,C,V){g.Y.call(this);this.position=NUa.clone();this.Wu=this.sM();this.tq=-2;this.timeCreated=Date.now();this.Yv=-1;this.yP=C;this.TD=null;this.WO=!1;this.o3=null;this.opacity=-1;this.requestSource=V;this.TI$=!1;this.lm=function(){}; this.cD=function(){}; this.Mw=new ZeS;this.Mw.Os=p;this.Mw.T=p;this.NE=!1;this.tI={MJ:null,cF:null};this.bR=!0;this.gf=null;this.IC=this.rF=!1;e1().Y++;this.JU=this.vG();this.G8=-1;this.HV=null;this.hasCompleted=this.Au=!1;this.IN=new lZ;uQe(this.IN);HNv(this);this.requestSource==1?cs(this.IN,"od",1):cs(this.IN,"od",0)}; HNv=function(p){p=p.Mw.Os;var C;if(C=p&&p.getAttribute)C=/-[a-z]/.test("googleAvInapp")?!1:XiQ&&p.dataset?"googleAvInapp"in p.dataset:p.hasAttribute?p.hasAttribute("data-"+ejS()):!!p.getAttribute("data-"+ejS());C&&(zu().C=!0)}; EH=function(p,C){C!=p.IC&&(p.IC=C,p=zu(),C?p.Y++:p.Y>0&&p.Y--)}; dj1=function(p,C){if(p.HV){if(C.getName()===p.HV.getName())return;p.HV.dispose();p.HV=null}C=C.create(p.Mw.T,p.IN,p.WK());if(C=C!=null&&C.observe()?C:null)p.HV=C}; iN9=function(p,C,V){if(!p.TD||p.yP==-1||C.C===-1||p.TD.C===-1)return 0;p=C.C-p.TD.C;return p>V?0:p}; hZ1=function(p,C,V){if(p.HV){p.HV.U_();var N=p.HV.Z,H=N.S,X=H.T;if(N.Y!=null){var d=N.V;p.o3=new g.Fn(d.left-X.left,d.top-X.top)}X=p.Gx()?Math.max(N.T,N.W):N.T;d={};H.volume!==null&&(d.volume=H.volume);H=p.gT(N);p.TD=N;p.Pr(X,C,V,!1,d,H,N.J)}}; sXS=function(p){if(p.WO&&p.gf){var C=Ty(p.IN,"od")==1,V=zu().T,N=p.gf,H=p.HV?p.HV.getName():"ns",X=p.o3,d=new g.KG(tx(V),V.getHeight());V=p.Gx();p={Ug_:H,o3:X,GI$:d,Gx:V,L7:p.JU.L7,fZa:C};if(C=N.C){C.U_();H=C.Z;X=H.S.T;var a=d=null;H.Y!=null&&X&&(d=H.V,d=new g.Fn(d.left-X.left,d.top-X.top),a=new g.KG(X.right-X.left,X.bottom-X.top));H=V?Math.max(H.T,H.W):H.T;V={Ug_:C.getName(),o3:d,GI$:a,Gx:V,fZa:!1,L7:H}}else V=null;V&&Woe(N,p,V)}}; atY=function(p,C,V){C&&(p.lm=C);V&&(p.cD=V)}; g.lf=function(){}; g.tT=function(p){return{value:p,done:!1}}; EN9=function(){this.S=this.T=this.V=this.C=this.W=0}; ltV=function(p){var C={};var V=g.QL()-p.W;C=(C.ptlt=V,C);(V=p.C)&&(C.pnk=V);(V=p.V)&&(C.pnc=V);(V=p.S)&&(C.pnmm=V);(p=p.T)&&(C.pns=p);return C}; tE9=function(){iZ.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; cp=function(p){return xo(p.volume)&&p.volume>0}; T2=function(p,C,V,N){V=V===void 0?!0:V;N=N===void 0?function(){return!0}:N; return function(H){var X=H[p];if(Array.isArray(X)&&N(H))return c$Y(X,C,V)}}; MZ=function(p,C){return function(V){return C(V)?V[p]:void 0}}; TUa=function(p){return function(C){for(var V=0;V<p.length;V++)if(p[V]===C.e||p[V]===void 0&&!C.hasOwnProperty("e"))return!0;return!1}}; c$Y=function(p,C,V){return V===void 0||V?g.JT(p,function(N,H){return g.W5(C,H)}):g.AU(C,function(N,H,X){return p.slice(H>0?X[H-1]+1:0,N+1).reduce(function(d,a){return d+a},0)})}; MES=function(){this.C=this.T=""}; J$a=function(){}; mO=function(p,C){var V={};if(p!==void 0)if(C!=null)for(var N in C){var H=C[N];N in Object.prototype||H!=null&&(V[N]=typeof H==="function"?H(p):p[H])}else g.nG(V,p);return r9(QT(new Wf,V))}; mjY=function(){var p={};this.C=(p.vs=[1,0],p.vw=[0,1],p.am=[2,2],p.a=[4,4],p.f=[8,8],p.bm=[16,16],p.b=[32,32],p.avw=[0,64],p.avs=[64,0],p.pv=[256,256],p.gdr=[0,512],p.p=[0,1024],p.r=[0,2048],p.m=[0,4096],p.um=[0,8192],p.ef=[0,16384],p.s=[0,32768],p.pmx=[0,16777216],p.mut=[33554432,33554432],p.umutb=[67108864,67108864],p.tvoff=[134217728,134217728],p);this.T={};for(var C in this.C)this.C[C][1]>0&&(this.T[C]=0);this.V=0}; vp=function(p,C){var V=p.C[C],N=V[1];p.V+=V[0];N>0&&p.T[C]==0&&(p.T[C]=1)}; vNY=function(p){var C=g.Ia(p.C),V=0,N;for(N in p.T)g.W5(C,N)&&p.T[N]==1&&(V+=p.C[N][1],p.T[N]=2);return V}; F0X=function(p){var C=0,V;for(V in p.T){var N=p.T[V];if(N==1||N==2)C+=p.C[V][1]}return C}; FU=function(){this.T=this.C=0}; Sr=function(){Hp.call(this);this.V=new Bf;this.Y_=this.Z=this.Vn=0;this.J=-1;this.X$=new Bf;this.W=new Bf;this.T=new Gu;this.Y=this.S=-1;this.a$=new Bf;this.Qn=2E3;this.Wr=new FU;this.KS=new FU;this.UY=new FU}; Ko=function(p,C,V){var N=p.Y_;NK||V||p.J==-1||(N+=C-p.J);return N}; S$e=function(){this.V=!1}; DA=function(p,C){this.V=!1;this.S=p;this.Z=C;this.W=0}; uf=function(p,C){DA.call(this,p,C);this.D=[]}; K01=function(){}; ZA=function(){}; UH=function(p,C,V,N){L2.call(this,p,C,V,N)}; fo=function(p,C,V){L2.call(this,null,p,C,V);this.J=p.isActive();this.D=0}; OH=function(p){return[p.top,p.left,p.bottom,p.right]}; yF=function(p,C,V,N,H,X){X=X===void 0?new ZA:X;a1.call(this,C,V,N);this.m1=H;this.fR=0;this.q5={};this.DZ=new mjY;this.EN={};this.Jg="";this.UY=null;this.kM=!1;this.T=[];this.PS=X.C();this.Y=X.V();this.S=null;this.V=-1;this.Ga=this.Z=void 0;this.b_=this.a$=0;this.Sa=-1;this.Qn=this.KS=!1;this.Vn=this.J=this.C=this.Ip=this.Wc=0;new Gu;this.Wr=this.Y_=0;this.R$=-1;this.m8=0;this.D=g.Fu;this.sY=[this.sM()];this.Hc=2;this.sX={};this.sX.pause="p";this.sX.resume="r";this.sX.skip="s";this.sX.mute="m";this.sX.unmute= "um";this.sX.exitfullscreen="ef";this.W=null;this.qo=this.X$=!1;this.ER=Math.floor(Date.now()/1E3-1704067200);this.vr=0}; qZ=function(p){p.hasCompleted=!0;p.m8!=0&&(p.m8=3)}; I1=function(p){return p===void 0?p:Number(p)?ko(p,3):0}; bf=function(p,C){return p.sY[C!=null&&C<p.sY.length?C:p.sY.length-1]}; DjH=function(p){var C=!!Ty(e1().IN,"umt");return p.Z||!C&&!p.Ga?0:1}; urL=function(p,C){p.Hp()?C=0:p.yP==-1?C=0:(C-=p.yP,C=C>Math.max(1E4,p.V/3)?0:C);var V=p.D(p)||{};V=V.currentTime!==void 0?V.currentTime:p.a$;var N=V-p.a$,H=0;N>=0?(p.b_+=C,p.Wr+=Math.max(C-N,0),H=Math.min(N,p.b_)):p.Y_+=Math.abs(N);N!=0&&(p.b_=0);p.R$==-1&&N>0&&(p.R$=Xj>=0?jh()-Xj:-1);p.a$=V;return H}; ZNa=function(p,C){Yo(p.Y,function(V){return V.S==C.S})||p.Y.push(C)}; UjS=function(p){var C=jr(p.sf().T,1);return AT(p,C)}; AT=function(p,C,V){return C>=15E3?!0:p.KS?(V===void 0?0:V)?!0:p.V>0?C>=p.V/2:p.Sa>0?C>=p.Sa:!1:!1}; ftv=function(p){var C=ko(p.JU.L7,2),V=p.DZ.V,N=p.JU,H=bf(p),X=I1(H.S),d=I1(H.Y),a=I1(N.volume),E=ko(H.D,2),l=ko(H.b_,2),t=ko(N.L7,2),c=ko(H.sY,2),T=ko(H.Sa,2);N=ko(N.PB,2);var M=p.rz().clone().round();p=p.HV&&p.HV.V?(p.HV?p.HV.V:null).clone().round():null;H=XU(H,!1);return{NIn:C,eT:V,Hu:X,uG:d,d3:a,pG:E,zD:l,L7:t,R3:c,iG:T,PB:N,position:M,Aw:p,DD:H}}; y$L=function(p,C){ONa(p.T,C,function(){return{NIn:0,eT:void 0,Hu:-1,uG:-1,d3:-1,pG:-1,zD:-1,L7:-1,R3:-1,iG:-1,PB:-1,position:void 0,Aw:void 0,DD:[]}}); p.T[C]=ftv(p)}; ONa=function(p,C,V){for(var N=p.length;N<C+1;)p.push(V()),N++}; kC=function(p,C,V){var N=p.EN[C];if(N!=null)return N;N=q$H(p,C);var H=oa(o1,function(X){return X==C}); p=Its(p,N,N,V,bNa[o1[H]]);C=="fully_viewable_audible_half_duration_impression"&&(p.std="csm");return p}; xC=function(p,C,V){var N=[C];if(p!=C||V!=C)N.unshift(p),N.push(V);return N}; Its=function(p,C,V,N,H){if(p.NE)return{"if":0,vs:0};var X=p.rz().clone().round(),d=p.HV?p.HV.V:null,a=zu(),E=e1(),l=p.sf(),t=p.HV?p.HV.getName():"ns",c={};c["if"]=a.V?1:void 0;c.sdk=p.S?p.S:void 0;c.t=p.timeCreated;c.p=[X.top,X.left,X.bottom,X.right];X&&d&&!cf(d,X)&&(X=d.round(),c.cp=[X.top,X.left,X.bottom,X.right]);c.tos=po(l.C,!1);c.mtos=XU(l);c.mcvt=l.R$.V;c.ps=void 0;X=Ko(l,jh(),p.Hp());c.vht=X;c.mut=l.X$.V;c.a=I1(p.JU.volume);c.mv=I1(l.Y);c.fs=p.IC?1:0;c.ft=l.a$.T;c.at=l.W.T;c.as=l.S>0?1:0;c.atos= po(l.T);c.ssb=po(l.qo,!1);c.amtos=BAa(l.T,!1);c.uac=p.Wc;c.vpt=l.V.T;t=="nio"&&(c.nio=1,c.avms="nio");c.gmm="4";c.gdr=AT(p,l.V.T,!0)?1:0;c.efpf=p.Hc;if(t=="gsv"||t=="nis")t=p.HV,t.D>0&&(c.nnut=t.D);c.tcm=DjH(p);c.nmt=p.Y_;c.bt=p.Wr;c.pst=p.R$;c.vpaid=p.Z;c.dur=p.V;c.vmtime=p.a$;c.is=p.DZ.V;p.T.length>=1&&(c.i0=p.T[0].eT,c.a0=[p.T[0].d3],c.c0=[p.T[0].L7],c.ss0=[p.T[0].PB],t=p.T[0].position,X=p.T[0].Aw,c.p0=t?OH(t):void 0,t&&X&&!cf(X,t)&&(c.cp0=OH(X)));p.T.length>=2&&(c.i1=p.T[1].eT,c.a1=xC(p.T[1].Hu, p.T[1].d3,p.T[1].uG),c.c1=xC(p.T[1].pG,p.T[1].L7,p.T[1].zD),c.ss1=xC(p.T[1].R3,p.T[1].PB,p.T[1].iG),t=p.T[1].position,X=p.T[1].Aw,c.p1=t?OH(t):void 0,t&&X&&!cf(X,t)&&(c.cp1=OH(X)),c.mtos1=p.T[1].DD);p.T.length>=3&&(c.i2=p.T[2].eT,c.a2=xC(p.T[2].Hu,p.T[2].d3,p.T[2].uG),c.c2=xC(p.T[2].pG,p.T[2].L7,p.T[2].zD),c.ss2=xC(p.T[2].R3,p.T[2].PB,p.T[2].iG),t=p.T[2].position,X=p.T[2].Aw,c.p2=t?OH(t):void 0,t&&X&&!cf(X,t)&&(c.cp2=OH(X)),c.mtos2=p.T[2].DD);p.T.length>=4&&(c.i3=p.T[3].eT,c.a3=xC(p.T[3].Hu,p.T[3].d3, p.T[3].uG),c.c3=xC(p.T[3].pG,p.T[3].L7,p.T[3].zD),c.ss3=xC(p.T[3].R3,p.T[3].PB,p.T[3].iG),t=p.T[3].position,X=p.T[3].Aw,c.p3=t?OH(t):void 0,t&&X&&!cf(X,t)&&(c.cp3=OH(X)),c.mtos3=p.T[3].DD);c.cs=F0X(p.DZ);C&&(c.ic=vNY(p.DZ),c.dvpt=l.V.C,c.dvs=NZ(l.C,.5),c.dfvs=NZ(l.C,1),c.davs=NZ(l.T,.5),c.dafvs=NZ(l.T,1),V&&(l.V.C=0,GDV(l.C),GDV(l.T)),p.Gv()&&(c.dtos=l.Vn,c.dav=l.Z,c.dtoss=p.fR+1,V&&(l.Vn=0,l.Z=0,p.fR++)),c.dat=l.W.C,c.dft=l.a$.C,V&&(l.W.C=0,l.a$.C=0));c.ps=[a.W.width,a.W.height];c.bs=[tx(a.T),a.T.getHeight()]; c.scs=[a.S.width,a.S.height];c.dom=a.domain;p.Ip&&(c.vds=p.Ip);if(p.Y.length>0||p.PS)C=g.p6(p.Y),p.PS&&C.push(p.PS),c.pings=g.AU(C,function(T){return T.toString()}); C=g.AU(g.JT(p.Y,function(T){return T.Y()}),function(T){return T.getId()}); p5S(C);c.ces=C;p.C&&(c.vmer=p.C);p.J&&(c.vmmk=p.J);p.Vn&&(c.vmiec=p.Vn);c.avms=p.HV?p.HV.getName():"ns";p.HV&&g.nG(c,p.HV.bO());N?(c.c=ko(p.JU.L7,2),c.ss=ko(p.JU.PB,2)):c.tth=jh()-A$s;c.mc=ko(l.b_,2);c.nc=ko(l.D,2);c.mv=I1(l.Y);c.nv=I1(l.S);c.lte=ko(p.tq,2);N=bf(p,H);XU(l);c.qmtos=XU(N);c.qnc=ko(N.D,2);c.qmv=I1(N.Y);c.qnv=I1(N.S);c.qas=N.S>0?1:0;c.qi=p.Jg;c.avms||(c.avms="geo");c.psm=l.Wr.T;c.psv=l.Wr.getValue();c.psfv=l.KS.getValue();c.psa=l.UY.getValue();E=KSj(E.IN);E.length&&(c.veid=E);p.W&&g.nG(c, ltV(p.W));c.avas=p.qT();c.vs=p.TJ();c.co=oNs(p);c.tm=l.vr;c.tu=l.Ga;return c}; q$H=function(p,C){if(g.W5(kqX,C))return!0;var V=p.q5[C];return V!==void 0?(p.q5[C]=!0,!V):!1}; oNs=function(p){var C=p.vr.toString(10).padStart(2,"0");C=""+p.ER+C;p.vr<99&&p.vr++;return C}; Y$u=function(){this.T={};var p=He();YC(this,p,document);var C=xjL();try{if("1"==C){for(var V=p.parent;V!=p.top;V=V.parent)YC(this,V,V.document);YC(this,p.top,p.top.document)}}catch(N){}}; xjL=function(){var p=document.documentElement;try{if(!Uh(He().top))return"2";var C=[],V=He(p.ownerDocument);for(p=V;p!=V.top;p=p.parent)if(p.frameElement)C.push(p.frameElement);else break;return C&&C.length!=0?"1":"0"}catch(N){return"2"}}; YC=function(p,C,V){dx(V,"mousedown",function(){return zZL(p)},301); dx(C,"scroll",function(){return RZe(p)},302); dx(V,"touchmove",function(){return nNH(p)},303); dx(V,"mousemove",function(){return eZY(p)},304); dx(V,"keydown",function(){return P3j(p)},305)}; zZL=function(p){g.ZH(p.T,function(C){C.V>1E5||++C.V})}; RZe=function(p){g.ZH(p.T,function(C){C.T>1E5||++C.T})}; nNH=function(p){g.ZH(p.T,function(C){C.T>1E5||++C.T})}; P3j=function(p){g.ZH(p.T,function(C){C.C>1E5||++C.C})}; eZY=function(p){g.ZH(p.T,function(C){C.S>1E5||++C.S})}; wiH=function(){this.T=[];this.C=[]}; z2=function(p,C){return g.L0(p.T,function(V){return V.Jg==C})}; $jv=function(p,C){return C?g.L0(p.T,function(V){return V.Mw.Os==C}):null}; L0Q=function(p,C){return g.L0(p.C,function(V){return V.Ke()==2&&V.Jg==C})}; no=function(){var p=R1;return p.T.length==0?p.C:p.C.length==0?p.T:g.Gp(p.C,p.T)}; gN1=function(p,C){p=C.Ke()==1?p.T:p.C;var V=$2(p,function(N){return N==C}); return V!=-1?(p.splice(V,1),C.HV&&C.HV.unobserve(),C.dispose(),!0):!1}; W0j=function(p){var C=R1;if(gN1(C,p)){switch(p.Ke()){case 0:var V=function(){return null}; case 2:V=function(){return L0Q(C,p.Jg)}; break;case 1:V=function(){return z2(C,p.Jg)}}for(var N=V();N;N=V())gN1(C,N)}}; QXy=function(p){var C=R1;p=g.JT(p,function(V){return!$jv(C,V.Mw.Os)}); C.T.push.apply(C.T,g.K(p))}; r$9=function(p){var C=[];g.lr(p,function(V){Yo(R1.T,function(N){return N.Mw.Os===V.Mw.Os&&N.Jg===V.Jg})||(R1.T.push(V),C.push(V))})}; er=function(){this.T=this.C=null}; BU1=function(p,C){function V(N,H){C(N,H)} if(p.C==null)return!1;p.T=g.L0(p.C,function(N){return N!=null&&N.YL()}); p.T&&(p.T.init(V)?o7e(p.T.T):C(p.T.T.gH(),p.T));return p.T!=null}; Pp=function(p){p=GqX(p);g9.call(this,p.length?p[p.length-1]:new Pf(S1,0));this.V=p;this.C=null}; GqX=function(p){if(!p.length)return[];p=(0,g.JT)(p,function(V){return V!=null&&V.Kn()}); for(var C=1;C<p.length;C++)w9(p[C-1],p[C]);return p}; wx=function(p,C,V,N){L2.call(this,p,C,V,N);this.b_=this.a$=this.D=this.J=this.S=null}; $C=function(p){return p.S&&p.S.takeRecords?p.S.takeRecords():[]}; CpX=function(p){if(!p.element)return!1;var C=p.element,V=p.C.T.V,N=e1().T.T;p.S=new V.IntersectionObserver(nh(N,function(H){return Lo(p,H)}),p2L); N=nh(N,function(){p.S.unobserve(C);p.S.observe(C);Lo(p,$C(p))}); V.ResizeObserver?(p.J=new V.ResizeObserver(N),p.J.observe(C)):V.MutationObserver&&(p.D=new g.xH.MutationObserver(N),p.D.observe(C,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));p.S.observe(C);Lo(p,$C(p));return!0}; Lo=function(p,C){try{if(C.length){p.a$||(p.a$=jh());var V=jsv(C),N=ZJs(p.element,p.C.T.V),H=N.x,X=N.y;p.V=new d9(Math.round(X),Math.round(H)+V.boundingClientRect.width,Math.round(X)+V.boundingClientRect.height,Math.round(H));p.T=Y8H(p,p.V);var d=OJH(V.intersectionRect);p.Y=Tu(d,p.V.left-d.left,p.V.top-d.top)}}catch(a){p.unobserve(),C2(299,a)}}; jsv=function(p){return kc(p,function(C,V){return C.time>V.time?C:V},p[0])}; gx=function(p){p=p===void 0?S1:p;g9.call(this,new Pf(p,2))}; Wp=function(){var p=VZQ();Pf.call(this,S1.top,p,"geo")}; VZQ=function(){e1();var p=zu();return p.V||p.C?0:2}; Nhj=function(){}; QF=function(){this.done=!1;this.T={KX:0,gE:0,vE$:0,Xe:0,kC:-1,i4:0,zO:0,fU:0,B6$:0};this.W=null;this.Y=!1;this.V=null;this.D=0;this.C=new eh(this)}; Bp=function(){var p=rx;p.Y||(p.Y=!0,HEL(p,function(){return p.S.apply(p,g.K(g.US.apply(0,arguments)))}),p.S())}; X21=function(){xc(Nhj);var p=xc(er);p.T!=null&&p.T.T?o7e(p.T.T):zu().update(S1)}; G2=function(p,C,V){if(!p.done&&(p.C.cancel(),C.length!=0)){p.V=null;try{X21();var N=jh();e1().W=N;if(xc(er).T!=null)for(var H=0;H<C.length;H++)hZ1(C[H],N,V);for(N=0;N<C.length;N++)sXS(C[N]);++p.T.Xe}finally{V?g.lr(C,function(X){X.JU.L7=0}):p.C.schedule()}}}; HEL=function(p,C){if(!p.W){C=Gy(142,C);zy();var V;R9.visibilityState?V="visibilitychange":R9.mozVisibilityState?V="mozvisibilitychange":R9.webkitVisibilityState&&(V="webkitvisibilitychange");V&&De(R9,V,C,{capture:!1})&&(p.W=C)}}; d_X=function(){var p=xc(er);if(p.T!=null){var C=p.T;g.lr(no(),function(V){return dj1(V,C)})}}; iEu=function(p,C){p=p.D;NK&&(p+=C-Hf);return p}; hpy=function(p){p=p===void 0?function(){return{}}:p; QA.au="av-js";Ws.T=.01;c8y([function(C){var V=e1(),N={};N=(N.bin=V.C,N.type="error",N);V=Mk(V.IN);if(!rx.V){var H=rx,X=S1.document,d=VT>=0?jh()-VT:-1,a=jh();H.T.kC==-1&&(d=a);var E=zu(),l=e1(),t=Mk(l.IN),c=no();try{if(c.length>0){var T=E.T;T&&(t.bs=[tx(T),T.getHeight()]);var M=E.W;M&&(t.ps=[M.width,M.height]);S1.screen&&(t.scs=[S1.screen.width,S1.screen.height])}else t.url=encodeURIComponent(S1.location.href.substring(0,512)),X.referrer&&(t.referrer=encodeURIComponent(X.referrer.substring(0,512))); t.tt=d;t.pt=VT;t.bin=l.C;S1.google_osd_load_pub_page_exp!==void 0&&(t.olpp=S1.google_osd_load_pub_page_exp);t.deb=[1,H.T.KX,H.T.gE,H.T.Xe,H.T.kC,0,H.C.C,H.T.i4,H.T.zO,H.T.fU,H.T.B6$,-1].join(";");t.tvt=iEu(H,a);E.C&&(t.inapp=1);if(S1!==null&&S1!=S1.top){c.length>0&&(t.iframe_loc=encodeURIComponent(S1.location.href.substring(0,512)));var J=E.D;t.is=[tx(J),J.getHeight()]}}catch(S){t.error=1}rx.V=t}T=g.zh(rx.V);M=e1().T;Ty(M.V,"prf")==1?(J=new Ro,H=M.T,X=0,H.T>-1&&(X=H.V.T.now()-H.T),J=rw(J,1,HT(H.S+ X),0),H=M.T,J=rw(J,5,ig(H.T>-1?H.C+1:H.C),0),J=rw(J,2,cT(M.C.T.V()),"0"),J=rw(J,3,cT(M.C.T.C()),"0"),M=rw(J,4,cT(M.C.T.T()),"0"),J={},M=(J.pf=g.mq(M.T()),J)):M={};g.nG(T,M);g.nG(C,N,V,T,p())}])}; aqH=function(){var p=ssu||S1;if(!p)return"";var C=[];if(!p.location||!p.location.href)return"";C.push("url="+encodeURIComponent(p.location.href.substring(0,512)));p.document&&p.document.referrer&&C.push("referrer="+encodeURIComponent(p.document.referrer.substring(0,512)));return C.join("&")}; pX=function(){var p="youtube.player.web_20241215_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20241215_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20241215_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20241215_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),C;if(((C=p)==null?void 0:C.length)==2)return p[1];p="youtube.player.web_20241215_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var V;return((V=p)==null?void 0:V.length)==3?"20"+p[1]+p[2]:null}; E3Y=function(){return"av.default_js".includes("ima_html5_sdk")?{GR:"ima",h8:null}:"av.default_js".includes("ima_native_sdk")?{GR:"nima",h8:null}:"av.default_js".includes("admob-native-video-javascript")?{GR:"an",h8:null}:"youtube.player.web_20241215_00_RC00".includes("cast_js_sdk")?{GR:"cast",h8:pX()}:"youtube.player.web_20241215_00_RC00".includes("youtube.player.web")?{GR:"yw",h8:pX()}:"youtube.player.web_20241215_00_RC00".includes("outstream_web_client")?{GR:"out",h8:pX()}:"youtube.player.web_20241215_00_RC00".includes("drx_rewarded_web")? {GR:"r",h8:pX()}:"youtube.player.web_20241215_00_RC00".includes("gam_native_web_video")?{GR:"n",h8:pX()}:"youtube.player.web_20241215_00_RC00".includes("admob_interstitial_video")?{GR:"int",h8:pX()}:{GR:"j",h8:null}}; Vr=function(p,C){var V={sv:"966"};CX!==null&&(V.v=CX);V.cb=lqY;V.nas=R1.T.length;V.msg=p;C!==void 0&&(p=tZX(C))&&(V.e=j0[p]);return V}; NP=function(p){return v5(p,"custom_metric_viewable")}; tZX=function(p){var C=NP(p)?"custom_metric_viewable":p.toLowerCase();return oa(o1,function(V){return V==C})}; cE1=function(){this.T=void 0;this.C=!1;this.V=0;this.S=-1;this.W="tos"}; JEV=function(p){try{var C=p.split(",");return C.length>g.Ia(ThQ).length?null:kc(C,function(V,N){N=N.toLowerCase().split("=");if(N.length!=2||MZj[N[0]]===void 0||!MZj[N[0]](N[1]))throw Error("Entry ("+N[0]+", "+N[1]+") is invalid.");V[N[0]]=N[1];return V},{})}catch(V){return null}}; m_Q=function(p,C){if(p.T==void 0)return 0;switch(p.W){case "mtos":return p.C?VF(C.T,p.T):VF(C.C,p.T);case "tos":return p.C?jr(C.T,p.T):jr(C.C,p.T)}return 0}; Ho=function(p,C,V,N){DA.call(this,C,N);this.D=p;this.J=V}; Xl=function(){}; dE=function(p){DA.call(this,"fully_viewable_audible_half_duration_impression",p)}; iu=function(p){this.T=p}; hC=function(p,C){DA.call(this,p,C)}; sM=function(p){uf.call(this,"measurable_impression",p)}; aq=function(){iu.apply(this,arguments)}; EM=function(p,C,V){fo.call(this,p,C,V)}; lu=function(p){p=p===void 0?S1:p;g9.call(this,new Pf(p,2))}; tC=function(p,C,V){fo.call(this,p,C,V)}; co=function(p){p=p===void 0?S1:p;g9.call(this,new Pf(p,2))}; To=function(){Pf.call(this,S1,2,"mraid");this.Wr=0;this.b_=this.sY=!1;this.D=null;this.C=v7a(this.V);this.S.T=new d9(0,0,0,0);this.vr=!1}; MP=function(p,C,V){p.Et("addEventListener",C,V)}; KnY=function(p){e1().S=!!p.Et("isViewable");MP(p,"viewableChange",v3Q);p.Et("getState")==="loading"?MP(p,"ready",Fnv):SVj(p)}; SVj=function(p){typeof p.C.Dm.AFMA_LIDAR==="string"?(p.sY=!0,D_S(p)):(p.C.compatibility=3,p.D="nc",p.Du("w"))}; D_S=function(p){p.b_=!1;var C=Ty(e1().IN,"rmmt")==1,V=!!p.Et("isViewable");(C?!V:1)&&zy().setTimeout(p2(524,function(){p.b_||(ufX(p),C2(540,Error()),p.D="mt",p.Du("w"))}),500); ZEj(p);MP(p,p.C.Dm.AFMA_LIDAR,U_9)}; ZEj=function(p){var C=Ty(e1().IN,"sneio")==1,V=p.C.Dm.AFMA_LIDAR_EXP_1!==void 0,N=p.C.Dm.AFMA_LIDAR_EXP_2!==void 0;(C=C&&N)&&(p.C.Dm.AFMA_LIDAR_EXP_2=!0);V&&(p.C.Dm.AFMA_LIDAR_EXP_1=!C)}; ufX=function(p){p.Et("removeEventListener",p.C.Dm.AFMA_LIDAR,U_9);p.sY=!1}; fqS=function(p,C){if(p.Et("getState")==="loading")return new g.KG(-1,-1);C=p.Et(C);if(!C)return new g.KG(-1,-1);p=parseInt(C.width,10);C=parseInt(C.height,10);return isNaN(p)||isNaN(C)?new g.KG(-1,-1):new g.KG(p,C)}; Fnv=function(){try{var p=xc(To);p.Et("removeEventListener","ready",Fnv);SVj(p)}catch(C){C2(541,C)}}; U_9=function(p,C){try{var V=xc(To);V.b_=!0;var N=p?new d9(p.y,p.x+p.width,p.y+p.height,p.x):new d9(0,0,0,0);var H=jh(),X=n2();var d=new MK(H,X,V);d.T=N;d.volume=C;V.zY(d)}catch(a){C2(542,a)}}; v3Q=function(p){var C=e1(),V=xc(To);p&&!C.S&&(C.S=!0,V.vr=!0,V.D&&V.Du("w",!0))}; JC=function(){this.isInitialized=!1;this.T=this.C=null;var p={};this.D=(p.start=this.wU,p.firstquartile=this.K_,p.midpoint=this.Og,p.thirdquartile=this.oT,p.complete=this.DA,p.error=this.Bk,p.pause=this.ud,p.resume=this.H0,p.skip=this.QN,p.viewable_impression=this.ly,p.mute=this.bQ,p.unmute=this.bQ,p.fullscreen=this.gU,p.exitfullscreen=this.Ug,p.fully_viewable_audible_half_duration_impression=this.ly,p.measurable_impression=this.ly,p.abandon=this.ud,p.engagedview=this.ly,p.impression=this.ly,p.creativeview= this.ly,p.progress=this.bQ,p.custom_metric_viewable=this.ly,p.bufferstart=this.ud,p.bufferfinish=this.H0,p.audio_measurable=this.ly,p.audio_audible=this.ly,p);p={};this.J=(p.overlay_resize=this.Jt,p.abandon=this.wl,p.close=this.wl,p.collapse=this.wl,p.overlay_unmeasurable_impression=function(C){return kC(C,"overlay_unmeasurable_impression",n2())},p.overlay_viewable_immediate_impression=function(C){return kC(C,"overlay_viewable_immediate_impression",n2())},p.overlay_unviewable_impression=function(C){return kC(C, "overlay_unviewable_impression",n2())},p.overlay_viewable_end_of_session_impression=function(C){return kC(C,"overlay_viewable_end_of_session_impression",n2())},p); e1().C=3;OE1(this);this.V=null}; mV=function(p,C,V,N){p=p.k7(null,N,!0,C);p.S=V;QXy([p]);return p}; yEH=function(p,C,V){FSH(C);var N=p.T;g.lr(C,function(H){var X=g.AU(H.criteria,function(d){var a=JEV(d);if(a==null)d=null;else if(d=new cE1,a.visible!=null&&(d.T=a.visible/100),a.audible!=null&&(d.C=a.audible==1),a.time!=null){var E=a.timetype=="mtos"?"mtos":"tos",l=RX1(a.time,"%")?"%":"ms";a=parseInt(a.time,10);l=="%"&&(a/=100);d.setTime(a,l,E)}return d}); Yo(X,function(d){return d==null})||ZNa(V,new Ho(H.id,H.event,X,N))})}; qVv=function(){var p=[],C=e1();p.push(xc(Wp));Ty(C.IN,"mvp_lv")&&p.push(xc(To));C=[new lu,new co];C.push(new Pp(p));C.push(new gx(S1));return C}; IqL=function(p){if(!p.isInitialized){p.isInitialized=!0;try{var C=jh(),V=e1(),N=zu();VT=C;V.V=79463069;p.C!=="o"&&(ssu=kOs(S1));if(gqv()){rx.T.gE=0;rx.T.kC=jh()-C;var H=qVv(),X=xc(er);X.C=H;BU1(X,function(){vo()})?rx.done||(d_X(),w9(X.T.T,p),Bp()):N.V?vo():Bp()}else Fl=!0}catch(d){throw R1.reset(),d; }}}; KX=function(p){rx.C.cancel();S0=p;rx.done=!0}; DK=function(p){if(p.C)return p.C;var C=xc(er).T;if(C)switch(C.getName()){case "nis":p.C="n";break;case "gsv":p.C="m"}p.C||(p.C="h");return p.C}; uu=function(p,C,V){if(p.T==null)return C.Ip|=4,!1;p=bEj(p.T,V,C);C.Ip|=p;return p==0}; vo=function(){var p=[new gx(S1)],C=xc(er);C.C=p;BU1(C,function(){KX("i")})?rx.done||(d_X(),Bp()):KX("i")}; AEs=function(p,C){if(!p.kM){var V=kC(p,"start",n2());V=p.m1.T(V).T;var N={id:"lidarv"};N.r=C;N.sv="966";CX!==null&&(N.v=CX);WX(V,function(H,X){return N[H]=H=="mtos"||H=="tos"?X:encodeURIComponent(X)}); C=aqH();WX(C,function(H,X){return N[H]=encodeURIComponent(X)}); C="//pagead2.googlesyndication.com/pagead/gen_204?"+r9(QT(new Wf,N));Loy(C);p.kM=!0}}; Iq=function(p,C,V){G2(rx,[p],!n2());y$L(p,V);V!=4&&ONa(p.sY,V,p.sM);return kC(p,C,n2())}; OE1=function(p){hpy(function(){var C=o3V();p.C!=null&&(C.sdk=p.C);var V=xc(er);V.T!=null&&(C.avms=V.T.getName());return C})}; kiS=function(p,C,V,N){var H=$jv(R1,V);H!==null&&H.Jg!==C&&(p.HJ(H),H=null);H||(C=p.k7(V,jh(),!1,C),R1.C.length==0&&(e1().V=79463069),r$9([C]),H=C,H.S=DK(p),N&&(H.UY=N));return H}; x_u=function(p,C){var V=p[C];V!==void 0&&V>0&&(p[C]=Math.floor(V*1E3))}; o3V=function(){var p=zu(),C={},V={},N={};return Object.assign({},(C.sv="966",C),CX!==null&&(V.v=CX,V),(N["if"]=p.V?"1":"0",N.nas=String(R1.T.length),N))}; bu=function(p){DA.call(this,"audio_audible",p)}; AC=function(p){uf.call(this,"audio_measurable",p)}; oq=function(){iu.apply(this,arguments)}; kI=function(){}; YVy=function(p){this.T=p}; bEj=function(p,C,V){p=p.C();if(typeof p==="function"){var N={};var H={};N=Object.assign({},CX!==null&&(N.v=CX,N),(H.sv="966",H.cb=lqY,H.e=zpQ(C),H));H=kC(V,C,n2());g.nG(N,H);V.EN[C]=H;N=V.Ke()==2?$7s(N).join("&"):V.m1.T(N).T;try{return p(V.Jg,N,C),0}catch(X){return 2}}else return 1}; zpQ=function(p){var C=NP(p)?"custom_metric_viewable":p;p=oa(o1,function(V){return V==C}); return j0[p]}; xI=function(){JC.call(this);this.Y=null;this.W=!1;this.S="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Rpa=function(p,C,V){V=V.opt_configurable_tracking_events;p.T!=null&&Array.isArray(V)&&yEH(p,V,C)}; n3H=function(p,C,V){var N=z2(R1,C);N||(N=V.opt_nativeTime||-1,N=mV(p,C,DK(p),N),V.opt_osdId&&(N.UY=V.opt_osdId));return N}; epv=function(p,C,V){var N=z2(R1,C);N||(N=mV(p,C,"n",V.opt_nativeTime||-1));return N}; Ppj=function(p,C){var V=z2(R1,C);V||(V=mV(p,C,"h",-1));return V}; w2H=function(p){e1();switch(DK(p)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; g3a=function(p,C,V,N){V=V===void 0?{}:V;var H={};g.nG(H,{opt_adElement:void 0,opt_fullscreen:void 0},V);var X=p.zV(C,V);V=X?X.m1:p.Vq();if(H.opt_bounds)return V.T(Vr("ol",N));if(N!==void 0)if(tZX(N)!==void 0)if(Fl)p=Vr("ue",N);else if(IqL(p),S0=="i")p=Vr("i",N),p["if"]=0;else if(C=p.zV(C,H)){b:{S0=="i"&&(C.NE=!0);X=H.opt_fullscreen;X!==void 0&&EH(C,!!X);var d;if(X=!zu().C)(X=Dv(g.f0(),"CrKey")&&!(Dv(g.f0(),"CrKey")&&Dv(g.f0(),"SmartSpeaker"))||Dv(g.f0(),"PlayStation")||Dv(g.f0(),"Roku")||q8u()||Dv(g.f0(), "Xbox"))||(X=g.f0(),X=Dv(X,"AppleTV")||Dv(X,"Apple TV")||Dv(X,"CFNetwork")||Dv(X,"tvOS")),X||(X=g.f0(),X=Dv(X,"sdk_google_atv_x86")||Dv(X,"Android TV")),X=!X;X&&(zy(),X=uZ(R9)===0);if(d=X){switch(C.Ke()){case 1:AEs(C,"pv");break;case 2:p.KF(C)}KX("pv")}X=N.toLowerCase();if(d=!d)d=Ty(e1().IN,"ssmol")&&X==="loaded"?!1:g.W5($_X,X);if(d&&C.m8==0){S0!="i"&&(rx.done=!1);d=H!==void 0?H.opt_nativeTime:void 0;Xj=d=typeof d==="number"?d:jh();C.WO=!0;var a=n2();C.m8=1;C.q5={};C.q5.start=!1;C.q5.firstquartile= !1;C.q5.midpoint=!1;C.q5.thirdquartile=!1;C.q5.complete=!1;C.q5.resume=!1;C.q5.pause=!1;C.q5.skip=!1;C.q5.mute=!1;C.q5.unmute=!1;C.q5.viewable_impression=!1;C.q5.measurable_impression=!1;C.q5.fully_viewable_audible_half_duration_impression=!1;C.q5.fullscreen=!1;C.q5.exitfullscreen=!1;C.fR=0;a||(C.sf().J=d);G2(rx,[C],!a)}(d=C.sX[X])&&vp(C.DZ,d);Ty(e1().IN,"fmd")||g.W5(Lns,X)&&C.PS&&C.PS.C(C,null);switch(C.Ke()){case 1:var E=NP(X)?p.D.custom_metric_viewable:p.D[X];break;case 2:E=p.J[X]}if(E&&(N=E.call(p, C,H,N),Ty(e1().IN,"fmd")&&g.W5(Lns,X)&&C.PS&&C.PS.C(C,null),N!==void 0)){H=Vr(void 0,X);g.nG(H,N);N=H;break b}N=void 0}C.m8==3&&p.HJ(C);p=N}else p=Vr("nf",N);else p=void 0;else Fl?p=Vr("ue"):X?(p=Vr(),g.nG(p,Its(X,!0,!1,!1))):p=Vr("nf");return typeof p==="string"?V.T():V.T(p)}; WnS=function(p,C){C&&(p.S=C)}; Qsy=function(p){var C={};return C.viewability=p.T,C.googleViewability=p.C,C}; rEy=function(p,C,V){V=V===void 0?{}:V;p=g3a(xc(xI),C,V,p);return Qsy(p)}; Bhe=function(p){var C=p.url;p=p.qKY;this.C=C;this.Y=p;p=/[?&]dsh=1(&|$)/.test(C);this.S=!p&&/[?&]ae=1(&|$)/.test(C);this.W=!p&&/[?&]ae=2(&|$)/.test(C);if((this.T=/[?&]adurl=([^&]*)/.exec(C))&&this.T[1]){try{var V=decodeURIComponent(this.T[1])}catch(N){V=null}this.V=V}}; GiX=function(p){p=p.Y;if(!p)return"";var C="";p.platform&&(C+="&uap="+encodeURIComponent(p.platform));p.platformVersion&&(C+="&uapv="+encodeURIComponent(p.platformVersion));p.uaFullVersion&&(C+="&uafv="+encodeURIComponent(p.uaFullVersion));p.architecture&&(C+="&uaa="+encodeURIComponent(p.architecture));p.model&&(C+="&uam="+encodeURIComponent(p.model));p.bitness&&(C+="&uab="+encodeURIComponent(p.bitness));p.fullVersionList&&(C+="&uafvl="+encodeURIComponent(p.fullVersionList.map(function(V){return encodeURIComponent(V.brand)+ ";"+encodeURIComponent(V.version)}).join("|"))); typeof p.wow64!=="undefined"&&(C+="&uaw="+Number(p.wow64));return C}; CZe=function(p,C,V,N,H){var X=window,d=V?"//pagead2.googlesyndication.com/bg/"+Xn(V)+".js":"";V=X.document;var a={};C&&(a._scs_=C);a._bgu_=d;a._bgp_=N;a._li_="v_h.3.0.0.0";H&&(a._upb_=H);(C=X.GoogleTyFxhY)&&typeof C.push=="function"||(C=X.GoogleTyFxhY=[]);C.push(a);C=rI(V).createElement("SCRIPT");C.type="text/javascript";C.async=!0;p=dme(ps1,Xn(p)+".js");g.GN(C,p);(X=(X.GoogleTyFxhYEET||{})[C.src])?X():V.getElementsByTagName("head")[0].appendChild(C)}; joQ=function(){try{var p,C;return!!((p=window)==null?0:(C=p.top)==null?0:C.location.href)&&!1}catch(V){return!0}}; zo=function(){var p=V1a();p=p===void 0?"bevasrsg":p;return new Promise(function(C){var V=window===window.top?window:joQ()?window:window.top,N=V[p],H;((H=N)==null?0:H.bevasrs)?C(new YI(N.bevasrs)):(N||(N={},N=(N.nqfbel=[],N),V[p]=N),N.nqfbel.push(function(X){C(new YI(X))}))})}; NTY=function(p){var C={c:p.P$,e:p.hw,mc:p.F9,me:p.qJ};p.Yq&&(C.co={c:p.Yq.pA,a:p.Yq.q2,s:p.Yq.Xz});return C}; Rq=function(p){g.Y.call(this);this.wpc=p}; YI=function(p){g.Y.call(this);var C=this;this.w7=p;this.V="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.T=void 0;this.Or=this.w7.p;this.S=this.G5.bind(this);this.addOnDisposeCallback(function(){return void HhS(C)})}; Xss=function(p){var C;return g.I(function(V){if(V.C==1){if(!p.w7.wpc)throw new fN(30,"NWA");return p.C?V.return(p.C):g.y(V,p.w7.wpc(),2)}C=V.T;p.C=new Rq(C);return V.return(p.C)})}; HhS=function(p){p.T!==void 0&&(p.V.forEach(function(C){var V;(V=p.T)==null||V.removeEventListener(C,p.S)}),p.T=void 0)}; huS=function(p){if(g.Sy(g.dI(p)))return!1;if(p.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var C=new g.SZ(p)}catch(V){return g.L0(dkY,function(N){return p.search(N)>0})!=null}return C.Y.match(ihu)?!0:g.L0(dkY,function(V){return p.match(V)!=null})!=null}; g.nX=function(p,C){return p.replace(soV,function(V,N){try{var H=g.x5(C,N);if(H==null||H.toString()==null)return V;H=H.toString();if(H==""||!g.Sy(g.dI(H)))return encodeURIComponent(H).replace(/%2C/g,",")}catch(X){}return V})}; aee=function(p,C){return Object.is(p,C)}; EcX=function(p){var C=e0;e0=p;return C}; ley=function(p){if(p.uf!==void 0){var C=Po;Po=!0;try{for(var V=g.F(p.uf),N=V.next();!N.done;N=V.next()){var H=N.value;H.d2||(p=void 0,H.d2=!0,ley(H),(p=H.Pl)==null||p.call(H,H))}}finally{Po=C}}}; t1a=function(){var p;return((p=e0)==null?void 0:p.bH)!==!1}; TT1=function(p,C,V){cUV(p);if(p.uf.length===0&&p.F4!==void 0)for(var N=0;N<p.F4.length;N++)p.mF[N]=TT1(p.F4[N],p,N);p.Kg.push(V);return p.uf.push(C)-1}; wE=function(p,C){cUV(p);if(p.uf.length===1&&p.F4!==void 0)for(var V=0;V<p.F4.length;V++)wE(p.F4[V],p.mF[V]);V=p.uf.length-1;p.uf[C]=p.uf[V];p.Kg[C]=p.Kg[V];p.uf.length--;p.Kg.length--;C<p.uf.length&&(V=p.Kg[C],p=p.uf[C],M1V(p),p.mF[V]=C)}; $I=function(p){var C,V;return p.pE||((V=p==null?void 0:(C=p.uf)==null?void 0:C.length)!=null?V:0)>0}; M1V=function(p){p.F4!=null||(p.F4=[]);p.mF!=null||(p.mF=[]);p.Qw!=null||(p.Qw=[])}; cUV=function(p){p.uf!=null||(p.uf=[]);p.Kg!=null||(p.Kg=[])}; mke=function(p){function C(){if(Po)throw Error("");if(e0!==null){var N=e0.KG++;M1V(e0);N<e0.F4.length&&e0.F4[N]!==V&&$I(e0)&&wE(e0.F4[N],e0.mF[N]);e0.F4[N]!==V&&(e0.F4[N]=V,e0.mF[N]=$I(e0)?TT1(V,e0,N):0);e0.Qw[N]=V.version}return V.value} var V=Object.create(JUX);V.value=p;C[LX]=V;return C}; FgV=function(p,C){if(!t1a())throw Error();p.po(p.value,C)||(p.value=C,p.version++,vcy++,ley(p))}; Sha=function(p){Object.create(Object.assign({},gE,{bH:p}))}; Dkv=function(p){var C=Kg9.Xw;if(C){var V,N;(N=(V=performance).mark)==null||N.call(V,"signalSetStart__"+p)}V={};return V[Symbol.dispose]=function(){if(C){var H,X;(X=(H=performance).measure)==null||X.call(H,"signalSet__"+p,"signalSetStart__"+p)}},V}; Oh1=function(p,C){function V(){uLH++;return N()} var N=mke(p);ZhY++;var H=N[LX];H.Dx=C!=null?C:"[signal]";H.po=H.po;V[LX]=H;return[V,function(X){var d={stack:[],error:void 0,hasError:!1};try{if(GV(d,Dkv(H.Dx)),Uk1++,X&&X[feV]){var a=X[feV];if(!t1a())throw Error();FgV(H,a(H.value))}else FgV(H,X)}catch(E){d.error=E,d.hasError=!0}finally{p0(d)}}]}; Qr=function(p){g.h8.call(this);var C=this;this.W=this.C=0;this.Pp=p!=null?p:{Lx:function(H,X){return setTimeout(H,X)}, X5:function(H){clearTimeout(H)}}; var V,N;this.T=(N=(V=window.navigator)==null?void 0:V.onLine)!=null?N:!0;this.V=function(){return g.I(function(H){return g.y(H,Wo(C),0)})}; window.addEventListener("offline",this.V);window.addEventListener("online",this.V);this.W||this.f7()}; yUV=function(){var p=g.rE;Qr.instance||(Qr.instance=new Qr(p));return Qr.instance}; Wo=function(p,C){return p.S?p.S:p.S=new Promise(function(V){var N,H,X,d;return g.I(function(a){switch(a.C){case 1:return N=window.AbortController?new window.AbortController:void 0,X=(H=N)==null?void 0:H.signal,d=!1,g.vv(a,2,3),N&&(p.C=p.Pp.Lx(function(){N.abort()},C||2E4)),g.y(a,fetch("/generate_204",{method:"HEAD", signal:X}),5);case 5:d=!0;case 3:g.KY(a);p.S=void 0;p.C&&(p.Pp.X5(p.C),p.C=0);d!==p.T&&(p.T=d,p.T?p.dispatchEvent("networkstatus-online"):p.dispatchEvent("networkstatus-offline"));V(d);g.Dj(a,0);break;case 2:g.Sa(a),d=!1,a.EY(3)}})})}; Bo=function(){this.data=[];this.T=-1}; qhy=function(p){p.T===-1&&(p.T=p.data.reduce(function(C,V,N){return C+(V?Math.pow(2,N):0)},0)); return p.T}; Go=function(p){p.setAttribute("role","link")}; Cg=function(p,C){Array.isArray(C)&&(C=C.join(" "));C===""||C==void 0?(pg||(C={},pg=(C.atomic=!1,C.autocomplete="none",C.dropeffect="none",C.haspopup=!1,C.live="off",C.multiline=!1,C.multiselectable=!1,C.orientation="vertical",C.readonly=!1,C.relevant="additions text",C.required=!1,C.sort="none",C.busy=!1,C.disabled=!1,C.hidden=!1,C.invalid="false",C)),C=pg,"label"in C?p.setAttribute("aria-label",C.label):p.removeAttribute("aria-label")):p.setAttribute("aria-label",C)}; jJ=function(p){p=p.getAttribute("aria-label");return p==null||p==void 0?"":String(p)}; g.V2=function(p,C,V){g.Y.call(this);this.T=null;this.S=!1;this.Y=p;this.W=V;this.C=C||window;this.V=(0,g.LY)(this.Ab,this)}; IeS=function(p){p=p.C;return p.requestAnimationFrame||p.webkitRequestAnimationFrame||p.mozRequestAnimationFrame||p.oRequestAnimationFrame||p.msRequestAnimationFrame||null}; bhj=function(p){p=p.C;return p.cancelAnimationFrame||p.cancelRequestAnimationFrame||p.webkitCancelRequestAnimationFrame||p.mozCancelRequestAnimationFrame||p.oCancelRequestAnimationFrame||p.msCancelRequestAnimationFrame||null}; g.N8=function(p,C,V){g.Y.call(this);this.T=p;this.Kx=C||0;this.C=V;this.V=(0,g.LY)(this.BH,this)}; g.HF=function(p,C){p.isActive()||p.start(C)}; g.XV=function(p){p.stop();p.BH()}; g.d0=function(p){p.isActive()&&g.XV(p)}; g.iI=function(p,C){this.T=p[g.xH.Symbol.iterator]();this.C=C}; AUH=function(p){return typeof p.className=="string"?p.className:p.getAttribute&&p.getAttribute("class")||""}; hk=function(p){return p.classList?p.classList:AUH(p).match(/\S+/g)||[]}; g.sd=function(p,C){typeof p.className=="string"?p.className=C:p.setAttribute&&p.setAttribute("class",C)}; g.aL=function(p,C){return p.classList?p.classList.contains(C):g.W5(hk(p),C)}; g.Ed=function(p,C){if(p.classList)p.classList.add(C);else if(!g.aL(p,C)){var V=AUH(p);g.sd(p,V+(V.length>0?" "+C:C))}}; g.lI=function(p,C){if(p.classList)Array.prototype.forEach.call(C,function(H){g.Ed(p,H)}); else{var V={};Array.prototype.forEach.call(hk(p),function(H){V[H]=!0}); Array.prototype.forEach.call(C,function(H){V[H]=!0}); C="";for(var N in V)C+=C.length>0?" "+N:N;g.sd(p,C)}}; g.tk=function(p,C){p.classList?p.classList.remove(C):g.aL(p,C)&&g.sd(p,Array.prototype.filter.call(hk(p),function(V){return V!=C}).join(" "))}; g.cF=function(p,C){p.classList?Array.prototype.forEach.call(C,function(V){g.tk(p,V)}):g.sd(p,Array.prototype.filter.call(hk(p),function(V){return!g.W5(C,V)}).join(" "))}; g.Tz=function(p,C,V){V?g.Ed(p,C):g.tk(p,C)}; oca=function(p,C){var V=!g.aL(p,C);g.Tz(p,C,V)}; g.M8=function(){g.h8.call(this);this.T=0;this.endTime=this.startTime=null}; kya=function(p,C){Array.isArray(C)||(C=[C]);C=C.map(function(V){return typeof V==="string"?V:V.property+" "+V.duration+"s "+V.timing+" "+V.delay+"s"}); g.K2(p,"transition",C.join(","))}; Jk=function(p,C,V,N,H){g.M8.call(this);this.C=p;this.W=C;this.Y=V;this.S=N;this.D=Array.isArray(H)?H:[H]}; xkY=function(p,C,V,N){return new Jk(p,C,{opacity:V},{opacity:N},{property:"opacity",duration:C,timing:"ease-in",delay:0})}; zu9=function(p){p=uP(p);if(p=="")return null;var C=String(p.slice(0,4)).toLowerCase();if(("url("<C?-1:"url("==C?0:1)==0)return!p.endsWith(")")||(p?p.split("(").length-1:0)>1||p&&p.split(")"),null;if(p.indexOf("(")>0){if(/"|'/.test(p))return null;C=/([\-\w]+)\(/g;for(var V;V=C.exec(p);)if(!(V[1].toLowerCase()in Yhs))return null}return p}; ml=function(p,C){p=g.xH[p];return p&&p.prototype?(C=Object.getOwnPropertyDescriptor(p.prototype,C))&&C.get||null:null}; RuY=function(p){var C=g.xH.CSSStyleDeclaration;return C&&C.prototype&&C.prototype[p]||null}; ncL=function(p,C,V,N){if(p)return p.apply(C,N);if(g.vF&&document.documentMode<10){if(!C[V].call)throw Error("IE Clobbering detected");}else if(typeof C[V]!="function")throw Error("Clobbering detected");return C[V].apply(C,N)}; LgS=function(p){if(!p)return"";var C=document.createElement("div").style;euH(p).forEach(function(V){var N=g.Nq&&V in PZe?V:V.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");v5(N,"--")||v5(N,"var")||(V=ncL(wsQ,p,p.getPropertyValue?"getPropertyValue":"getAttribute",[V])||"",V=zu9(V),V!=null&&ncL($kV,C,C.setProperty?"setProperty":"setAttribute",[N,V]))}); return C.cssText||""}; euH=function(p){g.ea(p)?p=g.p6(p):(p=g.Ia(p),g.rY(p,"cssText"));return p}; g.SJ=function(p){var C,V=C=0,N=!1;p=p.split(gcY);for(var H=0;H<p.length;H++){var X=p[H];g.FV.test(X)?(C++,V++):WgH.test(X)?N=!0:QoX.test(X)?V++:rU9.test(X)&&(N=!0)}C=V==0?N?1:0:C/V>.4?-1:1;return(C==0?null:C)==-1?"rtl":"ltr"}; g.ZJ=function(p){if(p instanceof Kg||p instanceof DJ||p instanceof uI)return p;if(typeof p.next=="function")return new Kg(function(){return p}); if(typeof p[Symbol.iterator]=="function")return new Kg(function(){return p[Symbol.iterator]()}); if(typeof p.lT=="function")return new Kg(function(){return p.lT()}); throw Error("Not an iterator or iterable.");}; Kg=function(p){this.C=p}; DJ=function(p){this.C=p}; uI=function(p){Kg.call(this,function(){return p}); this.V=p}; Ud=function(p,C,V,N,H,X,d,a){this.T=p;this.D=C;this.V=V;this.W=N;this.S=H;this.Y=X;this.C=d;this.J=a}; fg=function(p,C){if(C==0)return p.T;if(C==1)return p.C;var V=vG(p.T,p.V,C),N=vG(p.V,p.S,C);p=vG(p.S,p.C,C);V=vG(V,N,C);N=vG(N,p,C);return vG(V,N,C)}; BTY=function(p,C){var V=(C-p.T)/(p.C-p.T);if(V<=0)return 0;if(V>=1)return 1;for(var N=0,H=1,X=0,d=0;d<8;d++){X=fg(p,V);var a=(fg(p,V+1E-6)-X)/1E-6;if(Math.abs(X-C)<1E-6)return V;if(Math.abs(a)<1E-6)break;else X<C?N=V:H=V,V-=(X-C)/a}for(d=0;Math.abs(X-C)>1E-6&&d<8;d++)X<C?(N=V,V=(V+H)/2):(H=V,V=(V+N)/2),X=fg(p,V);return V}; Od=function(p,C){this.start=p<C?p:C;this.end=p<C?C:p}; y2=function(p){return(p=p.exec(g.f0()))?p[1]:""}; q8=function(p){return g.U1(GyY,p)>=0}; g.IL=function(p){g.Y.call(this);this.Y=1;this.V=[];this.S=0;this.T=[];this.C={};this.D=!!p}; pfu=function(p,C,V){g.mo(function(){p.apply(C,V)})}; g.bI=function(p){this.T=p}; Ak=function(p){this.T=p}; C4S=function(p){this.data=p}; j9u=function(p){return p===void 0||p instanceof C4S?p:new C4S(p)}; oL=function(p){this.T=p}; g.Vha=function(p){var C=p.creation;p=p.expiration;return!!p&&p<g.QL()||!!C&&C>g.QL()}; g.kF=function(p){this.T=p}; N9u=function(){}; xF=function(){}; YF=function(p){this.T=p;this.C=null}; zz=function(p){if(p.T==null)throw Error("Storage mechanism: Storage unavailable");var C;((C=p.C)!=null?C:p.isAvailable())||Jf(Error("Storage mechanism: Storage unavailable"))}; RL=function(){var p=null;try{p=g.xH.localStorage||null}catch(C){}YF.call(this,p)}; H21=function(){var p=null;try{p=g.xH.sessionStorage||null}catch(C){}YF.call(this,p)}; ng=function(p,C){this.C=p;this.T=C+"::"}; g.eJ=function(p){var C=new RL;return C.isAvailable()?p?new ng(C,p):C:null}; PF=function(p,C){this.T=p;this.C=C}; w0=function(p){this.T=[];if(p)a:{if(p instanceof w0){var C=p.Ei();p=p.k5();if(this.T.length<=0){for(var V=this.T,N=0;N<C.length;N++)V.push(new PF(C[N],p[N]));break a}}else C=g.Ia(p),p=g.q$(p);for(V=0;V<C.length;V++)this.N5(C[V],p[V])}}; $F=function(){w0.apply(this,arguments)}; Lg=function(){}; Xfy=function(p){var C,V,N=p.length,H=0;for(C=0;C<N;C++){var X=p.charCodeAt(C);if((X&64512)===55296&&C+1<N){var d=p.charCodeAt(C+1);(d&64512)===56320&&(X=65536+(X-55296<<10)+(d-56320),C++)}H+=X<128?1:X<2048?2:X<65536?3:4}var a=new g0.EX(H);for(C=V=0;V<H;C++)X=p.charCodeAt(C),(X&64512)===55296&&C+1<N&&(d=p.charCodeAt(C+1),(d&64512)===56320&&(X=65536+(X-55296<<10)+(d-56320),C++)),X<128?a[V++]=X:(X<2048?a[V++]=192|X>>>6:(X<65536?a[V++]=224|X>>>12:(a[V++]=240|X>>>18,a[V++]=128|X>>>12&63),a[V++]=128|X>>> 6&63),a[V++]=128|X&63);return a}; WF=function(p){for(var C=p.length;--C>=0;)p[C]=0}; Q2=function(p,C,V,N,H){this.Sv=p;this.Sj=C;this.Vp=V;this.dN=N;this.wF=H;this.Hi=p&&p.length}; r0=function(p,C){this.Fe=p;this.lU=0;this.GE=C}; BF=function(p,C){p.Vf[p.pending++]=C&255;p.Vf[p.pending++]=C>>>8&255}; Gz=function(p,C,V){p.ax>16-V?(p.bM|=C<<p.ax&65535,BF(p,p.bM),p.bM=C>>16-p.ax,p.ax+=V-16):(p.bM|=C<<p.ax&65535,p.ax+=V)}; pd=function(p,C,V){Gz(p,V[C*2],V[C*2+1])}; dKV=function(p,C){var V=0;do V|=p&1,p>>>=1,V<<=1;while(--C>0);return V>>>1}; i2e=function(p,C,V){var N=Array(16),H=0,X;for(X=1;X<=15;X++)N[X]=H=H+V[X-1]<<1;for(V=0;V<=C;V++)H=p[V*2+1],H!==0&&(p[V*2]=dKV(N[H]++,H))}; hUs=function(p){var C;for(C=0;C<286;C++)p.k9[C*2]=0;for(C=0;C<30;C++)p.JI[C*2]=0;for(C=0;C<19;C++)p.eU[C*2]=0;p.k9[512]=1;p.d9=p.jn=0;p.uF=p.matches=0}; s9u=function(p){p.ax>8?BF(p,p.bM):p.ax>0&&(p.Vf[p.pending++]=p.bM);p.bM=0;p.ax=0}; aoa=function(p,C,V){s9u(p);BF(p,V);BF(p,~V);g0.XL(p.Vf,p.window,C,V,p.pending);p.pending+=V}; Eos=function(p,C,V,N){var H=C*2,X=V*2;return p[H]<p[X]||p[H]===p[X]&&N[C]<=N[V]}; Cd=function(p,C,V){for(var N=p.vR[V],H=V<<1;H<=p.iq;){H<p.iq&&Eos(C,p.vR[H+1],p.vR[H],p.depth)&&H++;if(Eos(C,N,p.vR[H],p.depth))break;p.vR[V]=p.vR[H];V=H;H<<=1}p.vR[V]=N}; loL=function(p,C,V){var N=0;if(p.uF!==0){do{var H=p.Vf[p.S9+N*2]<<8|p.Vf[p.S9+N*2+1];var X=p.Vf[p.e4+N];N++;if(H===0)pd(p,X,C);else{var d=j7[X];pd(p,d+256+1,C);var a=VJ[d];a!==0&&(X-=Nv[d],Gz(p,X,a));H--;d=H<256?H6[H]:H6[256+(H>>>7)];pd(p,d,V);a=XC[d];a!==0&&(H-=df[d],Gz(p,H,a))}}while(N<p.uF)}pd(p,256,C)}; ia=function(p,C){var V=C.Fe,N=C.GE.Sv,H=C.GE.Hi,X=C.GE.dN,d,a=-1;p.iq=0;p.Tq=573;for(d=0;d<X;d++)V[d*2]!==0?(p.vR[++p.iq]=a=d,p.depth[d]=0):V[d*2+1]=0;for(;p.iq<2;){var E=p.vR[++p.iq]=a<2?++a:0;V[E*2]=1;p.depth[E]=0;p.d9--;H&&(p.jn-=N[E*2+1])}C.lU=a;for(d=p.iq>>1;d>=1;d--)Cd(p,V,d);E=X;do d=p.vR[1],p.vR[1]=p.vR[p.iq--],Cd(p,V,1),N=p.vR[1],p.vR[--p.Tq]=d,p.vR[--p.Tq]=N,V[E*2]=V[d*2]+V[N*2],p.depth[E]=(p.depth[d]>=p.depth[N]?p.depth[d]:p.depth[N])+1,V[d*2+1]=V[N*2+1]=E,p.vR[1]=E++,Cd(p,V,1);while(p.iq>= 2);p.vR[--p.Tq]=p.vR[1];d=C.Fe;E=C.lU;N=C.GE.Sv;H=C.GE.Hi;X=C.GE.Sj;var l=C.GE.Vp,t=C.GE.wF,c,T=0;for(c=0;c<=15;c++)p.ZI[c]=0;d[p.vR[p.Tq]*2+1]=0;for(C=p.Tq+1;C<573;C++){var M=p.vR[C];c=d[d[M*2+1]*2+1]+1;c>t&&(c=t,T++);d[M*2+1]=c;if(!(M>E)){p.ZI[c]++;var J=0;M>=l&&(J=X[M-l]);var S=d[M*2];p.d9+=S*(c+J);H&&(p.jn+=S*(N[M*2+1]+J))}}if(T!==0){do{for(c=t-1;p.ZI[c]===0;)c--;p.ZI[c]--;p.ZI[c+1]+=2;p.ZI[t]--;T-=2}while(T>0);for(c=t;c!==0;c--)for(M=p.ZI[c];M!==0;)N=p.vR[--C],N>E||(d[N*2+1]!==c&&(p.d9+=(c-d[N* 2+1])*d[N*2],d[N*2+1]=c),M--)}i2e(V,a,p.ZI)}; thX=function(p,C,V){var N,H=-1,X=C[1],d=0,a=7,E=4;X===0&&(a=138,E=3);C[(V+1)*2+1]=65535;for(N=0;N<=V;N++){var l=X;X=C[(N+1)*2+1];++d<a&&l===X||(d<E?p.eU[l*2]+=d:l!==0?(l!==H&&p.eU[l*2]++,p.eU[32]++):d<=10?p.eU[34]++:p.eU[36]++,d=0,H=l,X===0?(a=138,E=3):l===X?(a=6,E=3):(a=7,E=4))}}; cxX=function(p,C,V){var N,H=-1,X=C[1],d=0,a=7,E=4;X===0&&(a=138,E=3);for(N=0;N<=V;N++){var l=X;X=C[(N+1)*2+1];if(!(++d<a&&l===X)){if(d<E){do pd(p,l,p.eU);while(--d!==0)}else l!==0?(l!==H&&(pd(p,l,p.eU),d--),pd(p,16,p.eU),Gz(p,d-3,2)):d<=10?(pd(p,17,p.eU),Gz(p,d-3,3)):(pd(p,18,p.eU),Gz(p,d-11,7));d=0;H=l;X===0?(a=138,E=3):l===X?(a=6,E=3):(a=7,E=4)}}}; T9S=function(p){var C=4093624447,V;for(V=0;V<=31;V++,C>>>=1)if(C&1&&p.k9[V*2]!==0)return 0;if(p.k9[18]!==0||p.k9[20]!==0||p.k9[26]!==0)return 1;for(V=32;V<256;V++)if(p.k9[V*2]!==0)return 1;return 0}; hp=function(p,C,V){p.Vf[p.S9+p.uF*2]=C>>>8&255;p.Vf[p.S9+p.uF*2+1]=C&255;p.Vf[p.e4+p.uF]=V&255;p.uF++;C===0?p.k9[V*2]++:(p.matches++,C--,p.k9[(j7[V]+256+1)*2]++,p.JI[(C<256?H6[C]:H6[256+(C>>>7)])*2]++);return p.uF===p.qh-1}; a6=function(p,C){p.msg=sg[C];return C}; Eg=function(p){for(var C=p.length;--C>=0;)p[C]=0}; la=function(p){var C=p.state,V=C.pending;V>p.jd&&(V=p.jd);V!==0&&(g0.XL(p.output,C.Vf,C.l7,V,p.oC),p.oC+=V,C.l7+=V,p.aJ+=V,p.jd-=V,C.pending-=V,C.pending===0&&(C.l7=0))}; TH=function(p,C){var V=p.Xx>=0?p.Xx:-1,N=p.IH-p.Xx,H=0;if(p.level>0){p.R6.zG===2&&(p.R6.zG=T9S(p));ia(p,p.M8);ia(p,p.Gu);thX(p,p.k9,p.M8.lU);thX(p,p.JI,p.Gu.lU);ia(p,p.xp);for(H=18;H>=3&&p.eU[Mhu[H]*2+1]===0;H--);p.d9+=3*(H+1)+5+5+4;var X=p.d9+3+7>>>3;var d=p.jn+3+7>>>3;d<=X&&(X=d)}else X=d=N+5;if(N+4<=X&&V!==-1)Gz(p,C?1:0,3),aoa(p,V,N);else if(p.strategy===4||d===X)Gz(p,2+(C?1:0),3),loL(p,tp,c6);else{Gz(p,4+(C?1:0),3);V=p.M8.lU+1;N=p.Gu.lU+1;H+=1;Gz(p,V-257,5);Gz(p,N-1,5);Gz(p,H-4,4);for(X=0;X<H;X++)Gz(p, p.eU[Mhu[X]*2+1],3);cxX(p,p.k9,V-1);cxX(p,p.JI,N-1);loL(p,p.k9,p.JI)}hUs(p);C&&s9u(p);p.Xx=p.IH;la(p.R6)}; Mv=function(p,C){p.Vf[p.pending++]=C}; Jp=function(p,C){p.Vf[p.pending++]=C>>>8&255;p.Vf[p.pending++]=C&255}; JxV=function(p,C){var V=p.Ka,N=p.IH,H=p.uT,X=p.kf,d=p.IH>p.c$-262?p.IH-(p.c$-262):0,a=p.window,E=p.tV,l=p.uL,t=p.IH+258,c=a[N+H-1],T=a[N+H];p.uT>=p.a4&&(V>>=2);X>p.lx&&(X=p.lx);do{var M=C;if(a[M+H]===T&&a[M+H-1]===c&&a[M]===a[N]&&a[++M]===a[N+1]){N+=2;for(M++;a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&a[++N]===a[++M]&&N<t;);M=258-(t-N);N=t-258;if(M>H){p.UW=C;H=M;if(M>=X)break;c=a[N+H-1];T=a[N+H]}}}while((C=l[C&E])>d&&--V!== 0);return H<=p.lx?H:p.lx}; FC=function(p){var C=p.c$,V;do{var N=p.zH-p.lx-p.IH;if(p.IH>=C+(C-262)){g0.XL(p.window,p.window,C,C,0);p.UW-=C;p.IH-=C;p.Xx-=C;var H=V=p.Pt;do{var X=p.head[--H];p.head[H]=X>=C?X-C:0}while(--V);H=V=C;do X=p.uL[--H],p.uL[H]=X>=C?X-C:0;while(--V);N+=C}if(p.R6.a5===0)break;H=p.R6;V=p.window;X=p.IH+p.lx;var d=H.a5;d>N&&(d=N);d===0?V=0:(H.a5-=d,g0.XL(V,H.input,H.Zc,d,X),H.state.wrap===1?H.Vi=m2(H.Vi,V,d,X):H.state.wrap===2&&(H.Vi=v6(H.Vi,V,d,X)),H.Zc+=d,H.k0+=d,V=d);p.lx+=V;if(p.lx+p.N5>=3)for(N=p.IH-p.N5, p.l9=p.window[N],p.l9=(p.l9<<p.zv^p.window[N+1])&p.vS;p.N5&&!(p.l9=(p.l9<<p.zv^p.window[N+3-1])&p.vS,p.uL[N&p.tV]=p.head[p.l9],p.head[p.l9]=N,N++,p.N5--,p.lx+p.N5<3););}while(p.lx<262&&p.R6.a5!==0)}; S7=function(p,C){for(var V;;){if(p.lx<262){FC(p);if(p.lx<262&&C===0)return 1;if(p.lx===0)break}V=0;p.lx>=3&&(p.l9=(p.l9<<p.zv^p.window[p.IH+3-1])&p.vS,V=p.uL[p.IH&p.tV]=p.head[p.l9],p.head[p.l9]=p.IH);V!==0&&p.IH-V<=p.c$-262&&(p.bW=JxV(p,V));if(p.bW>=3)if(V=hp(p,p.IH-p.UW,p.bW-3),p.lx-=p.bW,p.bW<=p.Uz&&p.lx>=3){p.bW--;do p.IH++,p.l9=(p.l9<<p.zv^p.window[p.IH+3-1])&p.vS,p.uL[p.IH&p.tV]=p.head[p.l9],p.head[p.l9]=p.IH;while(--p.bW!==0);p.IH++}else p.IH+=p.bW,p.bW=0,p.l9=p.window[p.IH],p.l9=(p.l9<<p.zv^ p.window[p.IH+1])&p.vS;else V=hp(p,0,p.window[p.IH]),p.lx--,p.IH++;if(V&&(TH(p,!1),p.R6.jd===0))return 1}p.N5=p.IH<2?p.IH:2;return C===4?(TH(p,!0),p.R6.jd===0?3:4):p.uF&&(TH(p,!1),p.R6.jd===0)?1:2}; Kd=function(p,C){for(var V,N;;){if(p.lx<262){FC(p);if(p.lx<262&&C===0)return 1;if(p.lx===0)break}V=0;p.lx>=3&&(p.l9=(p.l9<<p.zv^p.window[p.IH+3-1])&p.vS,V=p.uL[p.IH&p.tV]=p.head[p.l9],p.head[p.l9]=p.IH);p.uT=p.bW;p.sD=p.UW;p.bW=2;V!==0&&p.uT<p.Uz&&p.IH-V<=p.c$-262&&(p.bW=JxV(p,V),p.bW<=5&&(p.strategy===1||p.bW===3&&p.IH-p.UW>4096)&&(p.bW=2));if(p.uT>=3&&p.bW<=p.uT){N=p.IH+p.lx-3;V=hp(p,p.IH-1-p.sD,p.uT-3);p.lx-=p.uT-1;p.uT-=2;do++p.IH<=N&&(p.l9=(p.l9<<p.zv^p.window[p.IH+3-1])&p.vS,p.uL[p.IH&p.tV]= p.head[p.l9],p.head[p.l9]=p.IH);while(--p.uT!==0);p.wO=0;p.bW=2;p.IH++;if(V&&(TH(p,!1),p.R6.jd===0))return 1}else if(p.wO){if((V=hp(p,0,p.window[p.IH-1]))&&TH(p,!1),p.IH++,p.lx--,p.R6.jd===0)return 1}else p.wO=1,p.IH++,p.lx--}p.wO&&(hp(p,0,p.window[p.IH-1]),p.wO=0);p.N5=p.IH<2?p.IH:2;return C===4?(TH(p,!0),p.R6.jd===0?3:4):p.uF&&(TH(p,!1),p.R6.jd===0)?1:2}; mKX=function(p,C){for(var V,N,H,X=p.window;;){if(p.lx<=258){FC(p);if(p.lx<=258&&C===0)return 1;if(p.lx===0)break}p.bW=0;if(p.lx>=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]&&N<H;);p.bW=258-(H-N);p.bW>p.lx&&(p.bW=p.lx)}p.bW>=3?(V=hp(p,1,p.bW-3),p.lx-=p.bW,p.IH+=p.bW,p.bW=0):(V=hp(p,0,p.window[p.IH]),p.lx--,p.IH++);if(V&&(TH(p,!1),p.R6.jd===0))return 1}p.N5=0;return C=== 4?(TH(p,!0),p.R6.jd===0?3:4):p.uF&&(TH(p,!1),p.R6.jd===0)?1:2}; voL=function(p,C){for(var V;;){if(p.lx===0&&(FC(p),p.lx===0)){if(C===0)return 1;break}p.bW=0;V=hp(p,0,p.window[p.IH]);p.lx--;p.IH++;if(V&&(TH(p,!1),p.R6.jd===0))return 1}p.N5=0;return C===4?(TH(p,!0),p.R6.jd===0?3:4):p.uF&&(TH(p,!1),p.R6.jd===0)?1:2}; DD=function(p,C,V,N,H){this.xk=p;this.Qk=C;this.n_n=V;this.Ju=N;this.func=H}; FG9=function(){this.R6=null;this.status=0;this.Vf=null;this.wrap=this.pending=this.l7=this.fp=0;this.n7=null;this.zi=0;this.method=8;this.eB=-1;this.tV=this.eJ=this.c$=0;this.window=null;this.zH=0;this.head=this.uL=null;this.kf=this.a4=this.strategy=this.level=this.Uz=this.Ka=this.uT=this.lx=this.UW=this.IH=this.wO=this.sD=this.bW=this.Xx=this.zv=this.vS=this.F2=this.Pt=this.l9=0;this.k9=new g0.dn(1146);this.JI=new g0.dn(122);this.eU=new g0.dn(78);Eg(this.k9);Eg(this.JI);Eg(this.eU);this.xp=this.Gu= this.M8=null;this.ZI=new g0.dn(16);this.vR=new g0.dn(573);Eg(this.vR);this.Tq=this.iq=0;this.depth=new g0.dn(573);Eg(this.depth);this.ax=this.bM=this.N5=this.matches=this.jn=this.d9=this.S9=this.uF=this.qh=this.e4=0}; SES=function(p,C){if(!p||!p.state||C>5||C<0)return p?a6(p,-2):-2;var V=p.state;if(!p.output||!p.input&&p.a5!==0||V.status===666&&C!==4)return a6(p,p.jd===0?-5:-2);V.R6=p;var N=V.eB;V.eB=C;if(V.status===42)if(V.wrap===2)p.Vi=0,Mv(V,31),Mv(V,139),Mv(V,8),V.n7?(Mv(V,(V.n7.text?1:0)+(V.n7.fv?2:0)+(V.n7.extra?4:0)+(V.n7.name?8:0)+(V.n7.comment?16:0)),Mv(V,V.n7.time&255),Mv(V,V.n7.time>>8&255),Mv(V,V.n7.time>>16&255),Mv(V,V.n7.time>>24&255),Mv(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),Mv(V,V.n7.os& 255),V.n7.extra&&V.n7.extra.length&&(Mv(V,V.n7.extra.length&255),Mv(V,V.n7.extra.length>>8&255)),V.n7.fv&&(p.Vi=v6(p.Vi,V.Vf,V.pending,0)),V.zi=0,V.status=69):(Mv(V,0),Mv(V,0),Mv(V,0),Mv(V,0),Mv(V,0),Mv(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),Mv(V,3),V.status=113);else{var H=8+(V.eJ-8<<4)<<8;H|=(V.strategy>=2||V.level<2?0:V.level<6?1:V.level===6?2:3)<<6;V.IH!==0&&(H|=32);V.status=113;Jp(V,H+(31-H%31));V.IH!==0&&(Jp(V,p.Vi>>>16),Jp(V,p.Vi&65535));p.Vi=1}if(V.status===69)if(V.n7.extra){for(H= V.pending;V.zi<(V.n7.extra.length&65535)&&(V.pending!==V.fp||(V.n7.fv&&V.pending>H&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H)),la(p),H=V.pending,V.pending!==V.fp));)Mv(V,V.n7.extra[V.zi]&255),V.zi++;V.n7.fv&&V.pending>H&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H));V.zi===V.n7.extra.length&&(V.zi=0,V.status=73)}else V.status=73;if(V.status===73)if(V.n7.name){H=V.pending;do{if(V.pending===V.fp&&(V.n7.fv&&V.pending>H&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H)),la(p),H=V.pending,V.pending===V.fp)){var X=1;break}X=V.zi<V.n7.name.length? V.n7.name.charCodeAt(V.zi++)&255:0;Mv(V,X)}while(X!==0);V.n7.fv&&V.pending>H&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H));X===0&&(V.zi=0,V.status=91)}else V.status=91;if(V.status===91)if(V.n7.comment){H=V.pending;do{if(V.pending===V.fp&&(V.n7.fv&&V.pending>H&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H)),la(p),H=V.pending,V.pending===V.fp)){X=1;break}X=V.zi<V.n7.comment.length?V.n7.comment.charCodeAt(V.zi++)&255:0;Mv(V,X)}while(X!==0);V.n7.fv&&V.pending>H&&(p.Vi=v6(p.Vi,V.Vf,V.pending-H,H));X===0&&(V.status=103)}else V.status= 103;V.status===103&&(V.n7.fv?(V.pending+2>V.fp&&la(p),V.pending+2<=V.fp&&(Mv(V,p.Vi&255),Mv(V,p.Vi>>8&255),p.Vi=0,V.status=113)):V.status=113);if(V.pending!==0){if(la(p),p.jd===0)return V.eB=-1,0}else if(p.a5===0&&(C<<1)-(C>4?9:0)<=(N<<1)-(N>4?9:0)&&C!==4)return a6(p,-5);if(V.status===666&&p.a5!==0)return a6(p,-5);if(p.a5!==0||V.lx!==0||C!==0&&V.status!==666){N=V.strategy===2?voL(V,C):V.strategy===3?mKX(V,C):ua[V.level].func(V,C);if(N===3||N===4)V.status=666;if(N===1||N===3)return p.jd===0&&(V.eB= -1),0;if(N===2&&(C===1?(Gz(V,2,3),pd(V,256,tp),V.ax===16?(BF(V,V.bM),V.bM=0,V.ax=0):V.ax>=8&&(V.Vf[V.pending++]=V.bM&255,V.bM>>=8,V.ax-=8)):C!==5&&(Gz(V,0,3),aoa(V,0,0),C===3&&(Eg(V.head),V.lx===0&&(V.IH=0,V.Xx=0,V.N5=0))),la(p),p.jd===0))return V.eB=-1,0}if(C!==4)return 0;if(V.wrap<=0)return 1;V.wrap===2?(Mv(V,p.Vi&255),Mv(V,p.Vi>>8&255),Mv(V,p.Vi>>16&255),Mv(V,p.Vi>>24&255),Mv(V,p.k0&255),Mv(V,p.k0>>8&255),Mv(V,p.k0>>16&255),Mv(V,p.k0>>24&255)):(Jp(V,p.Vi>>>16),Jp(V,p.Vi&65535));la(p);V.wrap>0&& (V.wrap=-V.wrap);return V.pending!==0?0:1}; ZD=function(p){if(!(this instanceof ZD))return new ZD(p);p=this.options=g0.assign({level:-1,method:8,chunkSize:16384,Ut:15,Fo:8,strategy:0,Y$:""},p||{});p.raw&&p.Ut>0?p.Ut=-p.Ut:p.IT&&p.Ut>0&&p.Ut<16&&(p.Ut+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.R6=new KGY;this.R6.jd=0;var C=this.R6;var V=p.level,N=p.method,H=p.Ut,X=p.Fo,d=p.strategy;if(C){var a=1;V===-1&&(V=6);H<0?(a=0,H=-H):H>15&&(a=2,H-=16);if(X<1||X>9||N!==8||H<8||H>15||V<0||V>9||d<0||d>4)C=a6(C,-2);else{H===8&&(H=9);var E= new FG9;C.state=E;E.R6=C;E.wrap=a;E.n7=null;E.eJ=H;E.c$=1<<E.eJ;E.tV=E.c$-1;E.F2=X+7;E.Pt=1<<E.F2;E.vS=E.Pt-1;E.zv=~~((E.F2+3-1)/3);E.window=new g0.EX(E.c$*2);E.head=new g0.dn(E.Pt);E.uL=new g0.dn(E.c$);E.qh=1<<X+6;E.fp=E.qh*4;E.Vf=new g0.EX(E.fp);E.S9=1*E.qh;E.e4=3*E.qh;E.level=V;E.strategy=d;E.method=N;if(C&&C.state){C.k0=C.aJ=0;C.zG=2;V=C.state;V.pending=0;V.l7=0;V.wrap<0&&(V.wrap=-V.wrap);V.status=V.wrap?42:113;C.Vi=V.wrap===2?0:1;V.eB=0;if(!DKL){N=Array(16);for(X=d=0;X<28;X++)for(Nv[X]=d,H=0;H< 1<<VJ[X];H++)j7[d++]=X;j7[d-1]=X;for(X=d=0;X<16;X++)for(df[X]=d,H=0;H<1<<XC[X];H++)H6[d++]=X;for(d>>=7;X<30;X++)for(df[X]=d<<7,H=0;H<1<<XC[X]-7;H++)H6[256+d++]=X;for(H=0;H<=15;H++)N[H]=0;for(H=0;H<=143;)tp[H*2+1]=8,H++,N[8]++;for(;H<=255;)tp[H*2+1]=9,H++,N[9]++;for(;H<=279;)tp[H*2+1]=7,H++,N[7]++;for(;H<=287;)tp[H*2+1]=8,H++,N[8]++;i2e(tp,287,N);for(H=0;H<30;H++)c6[H*2+1]=5,c6[H*2]=dKV(H,5);uj9=new Q2(tp,VJ,257,286,15);Z2S=new Q2(c6,XC,0,30,15);UK9=new Q2([],foQ,0,19,7);DKL=!0}V.M8=new r0(V.k9,uj9); V.Gu=new r0(V.JI,Z2S);V.xp=new r0(V.eU,UK9);V.bM=0;V.ax=0;hUs(V);V=0}else V=a6(C,-2);V===0&&(C=C.state,C.zH=2*C.c$,Eg(C.head),C.Uz=ua[C.level].Qk,C.a4=ua[C.level].xk,C.kf=ua[C.level].n_n,C.Ka=ua[C.level].Ju,C.IH=0,C.Xx=0,C.lx=0,C.N5=0,C.bW=C.uT=2,C.wO=0,C.l9=0);C=V}}else C=-2;if(C!==0)throw Error(sg[C]);p.header&&(C=this.R6)&&C.state&&C.state.wrap===2&&(C.state.n7=p.header);if(p.E2){var l;typeof p.E2==="string"?l=Xfy(p.E2):O2Y.call(p.E2)==="[object ArrayBuffer]"?l=new Uint8Array(p.E2):l=p.E2;p=this.R6; X=l;d=X.length;if(p&&p.state)if(l=p.state,C=l.wrap,C===2||C===1&&l.status!==42||l.lx)C=-2;else{C===1&&(p.Vi=m2(p.Vi,X,d,0));l.wrap=0;d>=l.c$&&(C===0&&(Eg(l.head),l.IH=0,l.Xx=0,l.N5=0),V=new g0.EX(l.c$),g0.XL(V,X,d-l.c$,l.c$,0),X=V,d=l.c$);V=p.a5;N=p.Zc;H=p.input;p.a5=d;p.Zc=0;p.input=X;for(FC(l);l.lx>=3;){X=l.IH;d=l.lx-2;do l.l9=(l.l9<<l.zv^l.window[X+3-1])&l.vS,l.uL[X&l.tV]=l.head[l.l9],l.head[l.l9]=X,X++;while(--d);l.IH=X;l.lx=2;FC(l)}l.IH+=l.lx;l.Xx=l.IH;l.N5=l.lx;l.lx=0;l.bW=l.uT=2;l.wO=0;p.Zc= N;p.input=H;p.a5=V;l.wrap=C;C=0}else C=-2;if(C!==0)throw Error(sg[C]);this.eFa=!0}}; yxe=function(p,C){C=C||{};C.IT=!0;C=new ZD(C);C.push(p,!0);if(C.err)throw C.msg||sg[C.err];return C.result}; qE9=function(){var p=g.US.apply(0,arguments);return p.length===0?function(C){return C}:p.length===1?p[0]:p.reduce(function(C,V){return function(){return C(V.apply(null,g.K(g.US.apply(0,arguments))))}})}; IoV=function(){var p=g.US.apply(0,arguments);return function(C){return function(V,N){function H(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} V=C(V,N);var X={getState:V.getState,dispatch:function(d){return H.apply(null,[d].concat(g.K(g.US.apply(1,arguments))))}}; N=p.map(function(d){return d(X)}); H=qE9.apply(null,g.K(N))(V.dispatch);return Object.assign({},V,{dispatch:H})}}}; Ug=function(){return Math.random().toString(36).substring(7).split("").join(".")}; b2Q=function(p){Object.keys(p).forEach(function(C){var V=p[C];if(typeof V(void 0,{type:fd})==="undefined")throw Error('The slice reducer for key "'+C+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof V(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Ug()})==="undefined")throw Error('The slice reducer for key "'+ C+"\" returned undefined when probed with a random type. Don't try to handle '"+(fd+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}; Axa=function(p,C,V){function N(){if(t)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a} function H(M){if(typeof M!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof M+"'");if(t)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var J=!0;l===E&&(l=E.slice());l.push(M);return function(){if(J){if(t)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); J=!1;l===E&&(l=E.slice());l.splice(l.indexOf(M),1);E=null}}} function X(M){if(typeof M!=="object"||M===null)var J=!1;else{for(J=M;Object.getPrototypeOf(J)!==null;)J=Object.getPrototypeOf(J);J=Object.getPrototypeOf(M)===J}if(!J)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof M+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples."); if(typeof M.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(t)throw Error("Reducers may not dispatch actions.");try{t=!0,a=d(a,M)}finally{t=!1}J=E=l;for(var S=0;S<J.length;S++)(0,J[S])();return M} if(typeof C==="function"&&typeof V==="function"||typeof V==="function"&&typeof arguments[3]==="function")throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");typeof C==="function"&&typeof V==="undefined"&&(V=C,C=void 0);if(typeof V!=="undefined"){if(typeof V!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+ typeof V+"'");return V(Axa)(p,C)}if(typeof p!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof p+"'");var d=p,a=C,E=[],l=E,t=!1;X({type:fd});var c={},T=(c.dispatch=X,c.subscribe=H,c.getState=N,c.replaceReducer=function(M){if(typeof M!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof M);d=M;X({type:oo9});return T},c[ku9]=function(){var M={}; return M.subscribe=function(J){function S(){J.next&&J.next(N())} if(typeof J!=="object"||J===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof J+"'");S();return{unsubscribe:H(S)}},M[ku9]=function(){return this},M},c); return T}; xKj=function(p){return p?(p=p.privateDoNotAccessOrElseSafeScriptWrappedValue)?IBs(p):null:null}; Og=function(p){return p?(p=p.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?Ab(p):null:null}; zUe=function(p){p=YEL(p);return $e(p)}; g.yJ=function(p){p=YEL(p);return Ab(p)}; YEL=function(p){return p===null?"null":p===void 0?"undefined":p}; qv=function(p){this.bx=OL(p)}; no1=function(p){var C=p.split(p.slice(0,0)),V=[-1170343749,1383147120,1932538857,249096118,1965470971,-1777538561,1259789705,1829671231,-1758473434,-1763749898,function(N){for(var H=N.length;H;)N.push(N.splice(--H,1)[0])}, "6PHBm",1055174390,1307198517,-168487050,function(N,H){if(N.length!=0){H=(H%N.length+N.length)%N.length;var X=N[0];N[0]=N[H];N[H]=X}}, -535817229,1307198517,C,-436642397,-720079244,function(N,H,X,d,a,E){return H(d,a,E)}, 1920313890,-441008177,-995916676,-1678655165,-1980373926,878172945,function(N,H){N=(N%H.length+H.length)%H.length;H.splice(N,1)}, function(N,H){H.length!=0&&(N=(N%H.length+H.length)%H.length,H.splice(0,1,H.splice(N,1,H[0])[0]))}, -1317104636,function(N,H){for(N=(N%H.length+H.length)%H.length;N--;)H.unshift(H.pop())}, 1710922383,-197264377,-168487050,"(,,{)(",null,function(N,H,X){var d=N.length;H.forEach(function(a,E,l){this.push(l[E]=N[(N.indexOf(a)-N.indexOf(this[E])+E+d--)%N.length])},X.split(""))}, 366658342,1063571798,-532443333,-1781967339,-1612865514,function(N,H){N=(N%H.length+H.length)%H.length;H.splice(-N).reverse().forEach(function(X){H.unshift(X)})}, 1949817490,1339842434,"(,({,",-2139451339,-1447247087,-2075938689,62636577,-1338465975,387794660,435549044,-1005276598,function(N){N.reverse()}, function(N,H){N.push(H)}, -1899970109,300223526,-563253386,-254215586,476456884,null,1458469311,"pop",-1027765017,null,function(){for(var N=64,H=[];++N-H.length-32;){switch(N){case 91:N=44;continue;case 123:N=65;break;case 65:N-=18;continue;case 58:N=96;continue;case 46:N=95}H.push(String.fromCharCode(N))}return H}, ",,,]",C,1702209780,-773755893,-156387814,C,function(){for(var N=64,H=[];++N-H.length-32;)switch(N){case 46:N=95;default:H.push(String.fromCharCode(N));case 94:case 95:case 96:break;case 123:N-=76;case 92:case 93:continue;case 58:N=44;case 91:}return H}, 2067754504,-416672424,-1305844745,-295380691,791448,function(N,H,X,d,a){return H(X,d,a)}, -1442789121,-1925076812,-891132935,1911665292,-166676013,function(){for(var N=64,H=[];++N-H.length-32;){switch(N){case 58:N-=14;case 91:case 92:case 93:continue;case 123:N=47;case 94:case 95:case 96:continue;case 46:N=95}H.push(String.fromCharCode(N))}return H}, 1710389668,277107128];V[36]=V;V[62]=V;V[66]=V;if(typeof RUQ==="undefined")return p;try{try{V[2]>=-1?(0,V[29])(V[84],V[69]):(0,V[31])(V[9],V[66]),(0,V[80])((0,V[43])(V[73],V[32]),V[37],(0,V[86])(),V[18],V[11]),(0,V[37])((0,V[67])(),V[18],V[64])}catch(N){V[0]<-1&&(V[87]>5?(((0,V[21])((0,V[15])(V[69],V[45]),V[29],(0,V[28])(V[78],V[69]),V[53],V[73]),V[31])(V[17],V[66]),V[24])(V[52],V[47]):((0,V[22])((0,V[59])(V[73],V[8]),V[59],V[69],V[15]),(0,V[68])((0,V[16])(),V[49],V[6]),V[22])((0,V[68])((0,V[16])(), V[11],V[42]),V[68],(0,V[9])(),V[11],V[6])),V[20]!==1-new Date("1969-12-31T22:16:49.000-01:45")/1E3*88+9588&&(V[19]<=new Date("1969-12-31T21:30:02.000-02:30")/1E3?(((0,V[62])(V[38],V[8]),V[37])(V[36],V[68]),V[18])(V[87],V[55]):((0,V[79])(V[73],V[31]),V[-125-new Date("1970-01-01T04:56:27.000+05:00")/1E3])((0,V[48])(),V[35],V[62])*(0,V[79])(V[83],V[28]))}finally{V[10]!==10&&(0,V[79])(V[21],V[31]),V[60]<=-4&&(0,V[66])(V[87],V[38])}try{(V[16]<=-7||((0,V[88])((0,V[29])(),V[35],V[26]),((0,V[82])(V[2],V[69]), V[88])((0,V[0])(),V[new Date("1970-01-01T04:31:09.000+04:30")/1E3],V[62]),null))&&(0,V[72])((0,V[5])(V[37],V[69]),V[82],(0,V[61])(V[69]),V[12],V[31]),V[67]!==10&&(V[75]!=5&&((0,V[42])((0,V[66])(V[28],V[39]),V[new Date("1969-12-31T16:01:22.000-08:00")/1E3],V[77],V[28]),"false")||((0,V[14])(V[46],V[48]),V[13])(V[56],V[48])),V[44]>=7&&(V[45]!==4||((0,V[13])(V[4],V[55]),0))&&(0,V[22])((0,V[19])(),V[3],V[50]),V[57]!==9&&(V[58]>=-5||((0,V[66])((0,V[14])(V[8],V[21]),V[41],V[59]),0))&&(0,V[66])((0,V[22])((0,V[19])(), V[59],V[86]),V[14],V[87],V[21]),V[37]<=9&&(V[1]>4&&((0,V[0])(V[47],V[55]),((0,V[66])((0,V[14])(V[73],V[55]),V[16],V[74],V[59]),V[13])(V[3],V[44]),1)||((((0,V[14])(V[25],V[52]),V[16])(V[83],V[59]),V[13])(V[52],V[58]),V[16])(V[77],V[48]))}catch(N){(0,V[11])(V[65],V[52])%(0,V[19])((0,V[69])(),V[0],V[47]),(0,V[13])(V[32],V[56]),(0,V[63])((0,V[35])(V[21],V[52]),V[35],V[30],V[52])}try{V[6]===8?(0,V[19])((0,V[16])(),V[0],V[83])%(0,V[35])(V[72],V[18])>(0,V[11])(V[75],V[18]):((0,V[13])(V[73],V[49]),(0,V[40])(V[30], V[new Date("1969-12-31T14:00:06.000-10:00")/1E3]),V[40])(V[75],V[8]),(0,V[65])(V[82],V[28]),(0,V[65])(V[18],V[82])}catch(N){}try{V[38]<=-4&&(V[38]!=6||((0,V[65])(V[64],V[30]),0))&&(0,V[41])(V[61],V[75]),(V[63]<8||((0,V[22])(V[82]),""))&&(0,V[65])(V[28],V[48])}catch(N){(0,V[43])(V[4],V[30]),(0,V[56])(V[39],V[86])}finally{V[64]<-3&&(V[53]!==-5&&((0,V[40])(V[79],V[45]),1)||(0,V[65])(V[32],V[48])),V[new Date("1969-12-31T16:00:27.000-08:00")/1E3]<=0&&(V[64]<=-6?((0,V[41])(V[new Date("1970-01-01T06:45:37.000+06:45")/ 1E3],V[79])^((0,V[56])(V[83],V[30]),V[40])(V[75],V[78]),(0,V[56])(V[2],V[75]),V[53])(V[42],V[70]):(((((0,V[37])((0,V[87])(),V[18],V[11]),V[37])((0,V[68])(),V[70],V[11]),V[31])(V[58],V[74]),V[53])(V[64],V[70]),V[29])(V[4],V[18])),V[54]>=-8&&(V[new Date("1969-12-31T16:15:45.000-07:45")/1E3]!=4||(((0,V[81])((0,V[37])((0,V[34])(),V[70],V[65]),V[53],V[55],V[70]),V[53])(V[5],V[70]),""))&&(((0,V[44])(V[45],V[18]),V[10])(V[18]),V[10])(V[18]),V[19]!=8&&(0,V[81])((0,V[37])((0,V[68])(),V[74],V[11]),V[28],V[70], V[24])}}catch(N){return"GgGpA_5mMZo6ZwBluP-_w8_"+p}return C.join("")}; eUa=function(p){return p,"cpn"[2+!!p]}; g.I6=function(p){this.name=p}; P4X=function(p){this.bx=OL(p)}; ba=function(p){this.bx=OL(p)}; Ap=function(p){this.bx=OL(p)}; wfH=function(p){this.bx=OL(p)}; o6=function(p){this.bx=OL(p)}; kQ=function(p){this.bx=OL(p)}; xQ=function(p){this.bx=OL(p)}; YQ=function(p){this.bx=OL(p)}; zH=function(p){this.bx=OL(p)}; R6=function(p){this.bx=OL(p)}; nd=function(p){this.bx=OL(p)}; e7=function(p){this.bx=OL(p)}; P6=function(p){this.bx=OL(p)}; wf=function(p){this.bx=OL(p)}; gf=function(p){this.bx=OL(p)}; W6=function(p){this.bx=OL(p,500)}; QJ=function(p){this.bx=OL(p)}; rf=function(p){this.bx=OL(p)}; $KH=function(p){this.bx=OL(p)}; LGj=function(){return g.zV("yt.ads.biscotti.lastId_")||""}; goe=function(p){g.YH("yt.ads.biscotti.lastId_",p)}; GH=function(){var p=arguments,C=B6;p.length>1?C[p[0]]=p[1]:p.length===1&&Object.assign(C,p[0])}; g.pO=function(p,C){return p in B6?B6[p]:C}; CO=function(p){var C=B6.EXPERIMENT_FLAGS;return C?C[p]:void 0}; WGQ=function(p){je.forEach(function(C){return C(p)})}; g.NU=function(p){return p&&window.yterr?function(){try{return p.apply(this,arguments)}catch(C){g.Vg(C)}}:p}; g.Vg=function(p){var C=g.zV("yt.logging.errors.log");C?C(p,"ERROR",void 0,void 0,void 0,void 0,void 0):(C=g.pO("ERRORS",[]),C.push([p,"ERROR",void 0,void 0,void 0,void 0,void 0]),GH("ERRORS",C));WGQ(p)}; Hd=function(p,C,V,N,H){var X=g.zV("yt.logging.errors.log");X?X(p,"WARNING",C,V,N,void 0,H):(X=g.pO("ERRORS",[]),X.push([p,"WARNING",C,V,N,void 0,H]),GH("ERRORS",X))}; X5=function(p,C){C=p.split(C);for(var V={},N=0,H=C.length;N<H;N++){var X=C[N].split("=");if(X.length===1&&X[0]||X.length===2)try{var d=Q9V(X[0]||""),a=Q9V(X[1]||"");if(d in V){var E=V[d];Array.isArray(E)?g.C6(E,a):V[d]=[E,a]}else V[d]=a}catch(T){var l=T,t=X[0],c=String(X5);l.args=[{key:t,value:X[1],query:p,method:rxH===c?"unchanged":c}];B9V.hasOwnProperty(t)||Hd(l)}}return V}; dm=function(p){var C=[];g.ZH(p,function(V,N){var H=g.N$(N);g.lr(Array.isArray(V)?V:[V],function(X){X==""?C.push(H):C.push(H+"="+g.N$(X))})}); return C.join("&")}; i1=function(p){p.charAt(0)==="?"&&(p=p.substring(1));return X5(p,"&")}; hw=function(p){return p.split(",").map(function(C){return i1(C)})}; g.sk=function(p){return p.indexOf("?")!==-1?(p=(p||"").split("#")[0],p=p.split("?",2),i1(p.length>1?p[1]:p[0])):{}}; aK=function(p,C){return Guv(p,C||{},!0)}; Ek=function(p,C){return Guv(p,C||{},!1)}; Guv=function(p,C,V){var N=p.split("#",2);p=N[0];N=N.length>1?"#"+N[1]:"";var H=p.split("?",2);p=H[0];H=i1(H[1]||"");for(var X in C)if(V||!g.bc(H,X))H[X]=C[X];return g.GD(p,H)+N}; l1=function(p){if(!C)var C=window.location.href;var V=g.$7(1,p),N=g.LJ(p);V&&N?(p=p.match(wA),C=C.match(wA),p=p[3]==C[3]&&p[1]==C[1]&&p[4]==C[4]):p=N?g.LJ(C)===N&&(Number(g.$7(4,C))||null)===(Number(g.$7(4,p))||null):!0;return p}; tw=function(p){p||(p=document.location.href);p=g.$7(1,p);return p!==null&&p==="https"}; cd=function(p){p=ppy(p);return p===null?!1:p[0]==="com"&&p[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; Cfj=function(p){p=ppy(p);return p===null?!1:p[1]==="google"?!0:p[2]==="google"?p[0]==="au"&&p[1]==="com"?!0:p[0]==="uk"&&p[1]==="co"?!0:!1:!1}; ppy=function(p){p=g.LJ(p);return p!==null?p.split(".").reverse():null}; Q9V=function(p){return p&&p.match(j1Q)?p:HG(p)}; Jw=function(p){var C=TQ;p=p===void 0?LGj():p;var V=Object,N=V.assign,H=MU(C);var X=C.T;try{var d=X.screenX;var a=X.screenY}catch(Z){}try{var E=X.outerWidth;var l=X.outerHeight}catch(Z){}try{var t=X.innerWidth;var c=X.innerHeight}catch(Z){}try{var T=X.screenLeft;var M=X.screenTop}catch(Z){}try{t=X.innerWidth,c=X.innerHeight}catch(Z){}try{var J=X.screen.availWidth;var S=X.screen.availTop}catch(Z){}X=[T,M,d,a,J,S,E,l,t,c];d=S8s(!1,C.T.top);a={};var D=D===void 0?g.xH:D;E=new Bo;"SVGElement"in D&&"createElementNS"in D.document&&E.set(0);l=oqj();l["allow-top-navigation-by-user-activation"]&&E.set(1);l["allow-popups-to-escape-sandbox"]&&E.set(2);D.crypto&&D.crypto.subtle&&E.set(3);"TextDecoder"in D&&"TextEncoder"in D&&E.set(4);D=qhy(E);C=(a.bc=D,a.bih=d.height,a.biw=d.width,a.brdim=X.join(),a.vis=uZ(C.C),a.wgl=!!S1.WebGLRenderingContext,a);V=N.call(V,H,C);V.ca_type="image";p&&(V.bid=p);return V}; MU=function(p){var C={};C.dt=Vry;C.flash="0";a:{try{var V=p.T.top.location.href}catch(t){p=2;break a}p=V?V===p.C.location.href?0:1:2}C=(C.frm=p,C);try{C.u_tz=-(new Date).getTimezoneOffset();var N=N===void 0?S1:N;try{var H=N.history.length}catch(t){H=0}C.u_his=H;var X;C.u_h=(X=S1.screen)==null?void 0:X.height;var d;C.u_w=(d=S1.screen)==null?void 0:d.width;var a;C.u_ah=(a=S1.screen)==null?void 0:a.availHeight;var E;C.u_aw=(E=S1.screen)==null?void 0:E.availWidth;var l;C.u_cd=(l=S1.screen)==null?void 0: l.colorDepth}catch(t){}return C}; Hoy=function(){if(!Nx9)return null;var p=Nx9();return"open"in p?p:null}; g.vd=function(p){switch(m1(p)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; m1=function(p){return p&&"status"in p?p.status:-1}; g.F5=function(p,C){typeof p==="function"&&(p=g.NU(p));return window.setTimeout(p,C)}; g.Se=function(p,C){typeof p==="function"&&(p=g.NU(p));return window.setInterval(p,C)}; g.KO=function(p){window.clearTimeout(p)}; g.Dr=function(p){window.clearInterval(p)}; g.Zr=function(p){p=u1(p);return typeof p==="string"&&p==="false"?!1:!!p}; g.Uk=function(p,C){p=u1(p);return p===void 0&&C!==void 0?C:Number(p||0)}; fO=function(){return g.pO("EXPERIMENTS_TOKEN","")}; u1=function(p){return g.pO("EXPERIMENT_FLAGS",{})[p]}; Ok=function(){for(var p=[],C=g.pO("EXPERIMENTS_FORCED_FLAGS",{}),V=g.F(Object.keys(C)),N=V.next();!N.done;N=V.next())N=N.value,p.push({key:N,value:String(C[N])});V=g.pO("EXPERIMENT_FLAGS",{});N=g.F(Object.keys(V));for(var H=N.next();!H.done;H=N.next())H=H.value,H.startsWith("force_")&&C[H]===void 0&&p.push({key:H,value:String(V[H])});return p}; yg=function(p,C,V,N,H,X,d,a){function E(){(l&&"readyState"in l?l.readyState:0)===4&&C&&g.NU(C)(l)} V=V===void 0?"GET":V;N=N===void 0?"":N;a=a===void 0?!1:a;var l=Hoy();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",E,!1):l.onreadystatechange=E;g.Zr("debug_forward_web_query_parameters")&&(p=Xpe(p,window.location.search));l.open(V,p,!0);X&&(l.responseType=X);d&&(l.withCredentials=!0);V=V==="POST"&&(window.FormData===void 0||!(N instanceof FormData));if(H=dZj(p,H))for(var t in H)l.setRequestHeader(t,H[t]),"content-type"===t.toLowerCase()&&(V=!1);V&&l.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(a&&"setAttributionReporting"in XMLHttpRequest.prototype){p={eventSourceEligible:!0,triggerEligible:!1};try{l.setAttributionReporting(p)}catch(c){Hd(c)}}l.send(N);return l}; dZj=function(p,C){C=C===void 0?{}:C;var V=l1(p),N=g.pO("INNERTUBE_CLIENT_NAME"),H=g.Zr("web_ajax_ignore_global_headers_if_set"),X;for(X in ioX){var d=g.pO(ioX[X]),a=X==="X-Goog-AuthUser"||X==="X-Goog-PageId";X!=="X-Goog-Visitor-Id"||d||(d=g.pO("VISITOR_DATA"));var E;if(!(E=!d)){if(!(E=V||(g.LJ(p)?!1:!0))){E=p;var l;if(l=g.Zr("add_auth_headers_to_remarketing_google_dot_com_ping")&&X==="Authorization"&&(N==="TVHTML5"||N==="TVHTML5_UNPLUGGED"||N==="TVHTML5_SIMPLY")&&Cfj(E))E=PX(g.$7(5,E))||"",E=E.split("/"), E="/"+(E.length>1?E[1]:""),l=E==="/pagead";E=l?!0:!1}E=!E}E||H&&C[X]!==void 0||N==="TVHTML5_UNPLUGGED"&&a||(C[X]=d)}"X-Goog-EOM-Visitor-Id"in C&&"X-Goog-Visitor-Id"in C&&delete C["X-Goog-Visitor-Id"];if(V||!g.LJ(p))C["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(V||!g.LJ(p)){try{var t=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(c){}t&&(C["X-YouTube-Time-Zone"]=t)}document.location.hostname.endsWith("youtubeeducation.com")||!V&&g.LJ(p)||(C["X-YouTube-Ad-Signals"]= dm(Jw()));return C}; s11=function(p,C){var V=g.LJ(p);g.Zr("debug_handle_relative_url_for_query_forward_killswitch")||!V&&l1(p)&&(V=document.location.hostname);var N=PX(g.$7(5,p));N=(V=V&&(V.endsWith("youtube.com")||V.endsWith("youtube-nocookie.com")))&&N&&N.startsWith("/api/");if(!V||N)return p;var H=i1(C),X={};g.lr(hzL,function(d){H[d]&&(X[d]=H[d])}); return Ek(p,X)}; IK=function(p,C){C.method="POST";C.postParams||(C.postParams={});return g.qU(p,C)}; lAY=function(p,C){if(window.fetch&&C.format!=="XML"){var V={method:C.method||"GET",credentials:"same-origin"};C.headers&&(V.headers=C.headers);C.priority&&(V.priority=C.priority);p=aAS(p,C);var N=EC9(p,C);N&&(V.body=N);C.withCredentials&&(V.credentials="include");var H=C.context||g.xH,X=!1,d;fetch(p,V).then(function(a){if(!X){X=!0;d&&g.KO(d);var E=a.ok,l=function(t){t=t||{};E?C.onSuccess&&C.onSuccess.call(H,t,a):C.onError&&C.onError.call(H,t,a);C.onFinish&&C.onFinish.call(H,t,a)}; (C.format||"JSON")==="JSON"&&(E||a.status>=400&&a.status<500)?a.json().then(l,function(){l(null)}):l(null)}}).catch(function(){C.onError&&C.onError.call(H,{},{})}); p=C.timeout||0;C.onFetchTimeout&&p>0&&(d=g.F5(function(){X||(X=!0,g.KO(d),C.onFetchTimeout.call(C.context||g.xH))},p))}else g.qU(p,C)}; g.qU=function(p,C){var V=C.format||"JSON";p=aAS(p,C);var N=EC9(p,C),H=!1,X=tru(p,function(E){if(!H){H=!0;a&&g.KO(a);var l=g.vd(E),t=null,c=400<=E.status&&E.status<500,T=500<=E.status&&E.status<600;if(l||c||T)t=cTH(p,V,E,C.convertToSafeHtml);l&&(l=TxY(V,E,t));t=t||{};c=C.context||g.xH;l?C.onSuccess&&C.onSuccess.call(c,E,t):C.onError&&C.onError.call(c,E,t);C.onFinish&&C.onFinish.call(c,E,t)}},C.method,N,C.headers,C.responseType,C.withCredentials); N=C.timeout||0;if(C.onTimeout&&N>0){var d=C.onTimeout;var a=g.F5(function(){H||(H=!0,X.abort(),g.KO(a),d.call(C.context||g.xH,X))},N)}return X}; aAS=function(p,C){C.includeDomain&&(p=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+p);var V=g.pO("XSRF_FIELD_NAME");if(C=C.urlParams)C[V]&&delete C[V],p=aK(p,C);return p}; EC9=function(p,C){var V=g.pO("XSRF_FIELD_NAME"),N=g.pO("XSRF_TOKEN"),H=C.postBody||"",X=C.postParams,d=g.pO("XSRF_FIELD_NAME"),a;C.headers&&(a=C.headers["Content-Type"]);C.excludeXsrf||g.LJ(p)&&!C.withCredentials&&g.LJ(p)!==document.location.hostname||C.method!=="POST"||a&&a!=="application/x-www-form-urlencoded"||C.postParams&&C.postParams[d]||(X||(X={}),X[V]=N);(g.Zr("ajax_parse_query_data_only_when_filled")&&X&&Object.keys(X).length>0||X)&&typeof H==="string"&&(H=i1(H),g.nG(H,X),H=C.postBodyFormat&& C.postBodyFormat==="JSON"?JSON.stringify(H):g.BX(H));X=H||X&&!g.k5(X);!Mrs&&X&&C.method!=="POST"&&(Mrs=!0,g.Vg(Error("AJAX request with postData should use POST")));return H}; cTH=function(p,C,V,N){var H=null;switch(C){case "JSON":try{var X=V.responseText}catch(d){throw N=Error("Error reading responseText"),N.params=p,Hd(N),d;}p=V.getResponseHeader("Content-Type")||"";X&&p.indexOf("json")>=0&&(X.substring(0,5)===")]}'\n"&&(X=X.substring(5)),H=JSON.parse(X));break;case "XML":if(p=(p=V.responseXML)?JT9(p):null)H={},g.lr(p.getElementsByTagName("*"),function(d){H[d.tagName]=mZV(d)})}N&&vCy(H); return H}; vCy=function(p){if(g.Pv(p))for(var C in p)C==="html_content"||RX1(C,"_html")?p[C]=$e(p[C]):vCy(p[C])}; TxY=function(p,C,V){if(C&&C.status===204)return!0;switch(p){case "JSON":return!!V;case "XML":return Number(V&&V.return_code)===0;case "RAW":return!0;default:return!!V}}; JT9=function(p){return p?(p=("responseXML"in p?p.responseXML:p).getElementsByTagName("root"))&&p.length>0?p[0]:null:null}; mZV=function(p){var C="";g.lr(p.childNodes,function(V){C+=V.nodeValue}); return C}; Aw=function(p,C){var V=g.zh(C),N;return(new g.um(function(H,X){V.onSuccess=function(d){g.vd(d)?H(new FOY(d)):X(new b1("Request failed, status="+m1(d),"net.badstatus",d))}; V.onError=function(d){X(new b1("Unknown request error","net.unknown",d))}; V.onTimeout=function(d){X(new b1("Request timed out","net.timeout",d))}; N=g.qU(p,V)})).Rz(function(H){if(H instanceof q7){var X; (X=N)==null||X.abort()}return fJ(H)})}; g.oK=function(p,C,V,N){function H(a,E,l){return a.Rz(function(t){if(E<=0||m1(t.xhr)===403)return fJ(new b1("Request retried too many times","net.retryexhausted",t.xhr,t));t=Math.pow(2,V-E+1)*l;var c=d>0?Math.min(d,t):t;return X(l).then(function(){return H(Aw(p,C),E-1,c)})})} function X(a){return new g.um(function(E){setTimeout(E,a)})} var d=d===void 0?-1:d;return H(Aw(p,C),V-1,N)}; b1=function(p,C,V){c5.call(this,p+", errorCode="+C);this.errorCode=C;this.xhr=V;this.name="PromiseAjaxError"}; FOY=function(p){this.xhr=p}; kD=function(p){this.T=p===void 0?null:p;this.V=0;this.C=null}; xD=function(p){var C=new kD;p=p===void 0?null:p;C.V=2;C.C=p===void 0?null:p;return C}; YD=function(p){var C=new kD;p=p===void 0?null:p;C.V=1;C.C=p===void 0?null:p;return C}; g.nO=function(p,C,V,N,H){zQ||RK.set(""+p,C,{kx:V,path:"/",domain:N===void 0?"youtube.com":N,secure:H===void 0?!1:H})}; g.ee=function(p,C){if(!zQ)return RK.get(""+p,C)}; g.Pd=function(p,C,V){zQ||RK.remove(""+p,C===void 0?"/":C,V===void 0?"youtube.com":V)}; SHs=function(){if(g.Zr("embeds_web_enable_cookie_detection_fix")){if(!g.xH.navigator.cookieEnabled)return!1}else if(!RK.isEnabled())return!1;if(!RK.isEmpty())return!0;g.Zr("embeds_web_enable_cookie_detection_fix")?RK.set("TESTCOOKIESENABLED","1",{kx:60,cia:"none",secure:!0}):RK.set("TESTCOOKIESENABLED","1",{kx:60});if(RK.get("TESTCOOKIESENABLED")!=="1")return!1;RK.remove("TESTCOOKIESENABLED");return!0}; g.n=function(p,C){if(p)return p[C.name]}; wm=function(p){var C=g.pO("INNERTUBE_HOST_OVERRIDE");C&&(p=String(C)+String(gA(p)));return p}; KOv=function(p){var C={};g.Zr("json_condensed_response")&&(C.prettyPrint="false");return p=Ek(p,C)}; $D=function(p,C){var V=V===void 0?{}:V;p={method:C===void 0?"POST":C,mode:l1(p)?"same-origin":"cors",credentials:l1(p)?"same-origin":"include"};C={};for(var N=g.F(Object.keys(V)),H=N.next();!H.done;H=N.next())H=H.value,V[H]&&(C[H]=V[H]);Object.keys(C).length>0&&(p.headers=C);return p}; LO=function(){var p=/Chrome\/(\d+)/.exec(g.f0());return p?parseFloat(p[1]):NaN}; Wd=function(){return g.gm("android")&&g.gm("chrome")&&!(g.gm("trident/")||g.gm("edge/"))&&!g.gm("cobalt")}; DZu=function(){return g.gm("armv7")||g.gm("aarch64")||g.gm("android")}; g.Qg=function(){return g.gm("cobalt")}; rm=function(){return g.gm("cobalt")&&g.gm("appletv")}; Bd=function(){return g.gm("(ps3; leanback shell)")||g.gm("ps3")&&g.Qg()}; uUs=function(){return g.gm("(ps4; leanback shell)")||g.gm("ps4")&&g.Qg()}; g.Zoe=function(){return g.Qg()&&(g.gm("ps4 vr")||g.gm("ps4 pro vr"))}; GQ=function(){var p=/WebKit\/([0-9]+)/.exec(g.f0());return!!(p&&parseInt(p[1],10)>=600)}; pK=function(){var p=/WebKit\/([0-9]+)/.exec(g.f0());return!!(p&&parseInt(p[1],10)>=602)}; UZu=function(){return g.gm("iemobile")||g.gm("windows phone")&&g.gm("edge")}; Vc=function(){return(CK||jz)&&g.gm("applewebkit")&&!g.gm("version")&&(!g.gm("safari")||g.gm("gsa/"))}; Hw=function(){return g.N5&&g.gm("version/")}; XW=function(){return g.gm("smart-tv")&&g.gm("samsung")}; g.gm=function(p){var C=g.f0();return C?C.toLowerCase().indexOf(p)>=0:!1}; d8=function(){return $1u()||Vc()||Hw()?!0:g.pO("EOM_VISITOR_DATA")?!1:!0}; iO=function(p,C){return C===void 0||C===null?p:C==="1"||C===!0||C===1||C==="True"?!0:!1}; hm=function(p,C,V){for(var N in V)if(V[N]==C)return V[N];return p}; sB=function(p,C){return C===void 0||C===null?p:Number(C)}; a_=function(p,C){return C===void 0||C===null?p:C.toString()}; EB=function(p,C){if(C){if(p==="fullwidth")return Infinity;if(p==="fullheight")return 0}return p&&(C=p.match(fAY))&&(p=Number(C[2]),C=Number(C[1]),!isNaN(p)&&!isNaN(C)&&p>0)?C/p:NaN}; lO=function(p){var C=p.docid||p.video_id||p.videoId||p.id;if(C)return C;C=p.raw_player_response;C||(p=p.player_response)&&(C=JSON.parse(p));return C&&C.videoDetails&&C.videoDetails.videoId||null}; Oou=function(p){return tm(p,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.cw=function(p){return p==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||p==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; tm=function(p,C){C=(C===void 0?0:C)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(C="EMBEDDED_PLAYER_MODE_PFL");var V=p.raw_embedded_player_response;if(!V&&(p=p.embedded_player_response))try{V=JSON.parse(p)}catch(N){return C}return V?hm(C,V.embeddedPlayerMode,yTH):C}; M5=function(p){c5.call(this,p.message||p.description||p.name);this.isMissing=p instanceof TW;this.isTimeout=p instanceof b1&&p.errorCode=="net.timeout";this.isCanceled=p instanceof q7}; TW=function(){c5.call(this,"Biscotti ID is missing from server")}; qHj=function(){if(g.Zr("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!d8())return Error("User has not consented - not fetching biscotti id.");var p=g.pO("PLAYER_VARS",{});if(g.x5(p,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Oou(p))return Error("Biscotti id fetching has been disabled for pfl.")}; oCH=function(){var p=qHj();if(p!==void 0)return fJ(p);Jm||(Jm=Aw("//googleads.g.doubleclick.net/pagead/id",IAe).then(boe).Rz(function(C){return ATv(2,C)})); return Jm}; boe=function(p){p=p.xhr.responseText;if(!v5(p,")]}'"))throw new TW;p=JSON.parse(p.substr(4));if((p.type||1)>1)throw new TW;p=p.id;goe(p);Jm=YD(p);k2S(18E5,2);return p}; ATv=function(p,C){C=new M5(C);goe("");Jm=xD(C);p>0&&k2S(12E4,p-1);throw C;}; k2S=function(p,C){g.F5(function(){Aw("//googleads.g.doubleclick.net/pagead/id",IAe).then(boe,function(V){return ATv(C,V)}).Rz(g.Fu)},p)}; xZL=function(){try{var p=g.zV("yt.ads.biscotti.getId_");return p?p():oCH()}catch(C){return fJ(C)}}; zzQ=function(p){p&&(p.dataset?p.dataset[YHs()]="true":qLS(p))}; RzS=function(p){return p?p.dataset?p.dataset[YHs()]:p.getAttribute("data-loaded"):null}; YHs=function(){return nCS.loaded||(nCS.loaded="loaded".replace(/\-([a-z])/g,function(p,C){return C.toUpperCase()}))}; ezS=function(){var p=document;if("visibilityState"in p)return p.visibilityState;var C=m_+"VisibilityState";if(C in p)return p[C]}; vw=function(p,C){var V;Yo(p,function(N){V=C[N];return!!V}); return V}; FW=function(p){if(p.requestFullscreen)p=p.requestFullscreen(void 0);else if(p.webkitRequestFullscreen)p=p.webkitRequestFullscreen();else if(p.mozRequestFullScreen)p=p.mozRequestFullScreen();else if(p.msRequestFullscreen)p=p.msRequestFullscreen();else if(p.webkitEnterFullscreen)p=p.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return p instanceof Promise?p:Promise.resolve()}; D3=function(p){var C;g.Sz()?KK()==p&&(C=document):C=p;return C&&(p=vw(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],C))?(C=p.call(C),C instanceof Promise?C:Promise.resolve()):Promise.resolve()}; PfH=function(p){return g.L0(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(C){return"on"+C.toLowerCase()in p})}; wpj=function(){var p=document;return g.L0(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(C){return"on"+C.toLowerCase()in p})}; g.Sz=function(){return!!vw(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; KK=function(p){p=p===void 0?!1:p;var C=vw(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(p)for(;C&&C.shadowRoot;)C=C.shadowRoot.fullscreenElement;return C?C:null}; uO=function(p){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(p=p||window.event){this.event=p;for(var C in p)C in $ZX||(this[C]=p[C]);this.scale=p.scale;this.rotation=p.rotation;var V=p.target||p.srcElement;V&&V.nodeType==3&&(V=V.parentNode);this.target=V;var N=p.relatedTarget; if(N)try{N=N.nodeName?N:null}catch(H){N=null}else this.type=="mouseover"?N=p.fromElement:this.type=="mouseout"&&(N=p.toElement);this.relatedTarget=N;this.clientX=p.clientX!=void 0?p.clientX:p.pageX;this.clientY=p.clientY!=void 0?p.clientY:p.pageY;this.keyCode=p.keyCode?p.keyCode:p.which;this.charCode=p.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=p.altKey;this.ctrlKey=p.ctrlKey;this.shiftKey=p.shiftKey;this.metaKey=p.metaKey;this.T=p.pageX;this.C=p.pageY}}catch(H){}}; LOa=function(p){if(document.body&&document.documentElement){var C=document.body.scrollTop+document.documentElement.scrollTop;p.T=p.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);p.C=p.clientY+C}}; gCQ=function(p,C,V,N){N=N===void 0?{}:N;p.addEventListener&&(C!="mouseenter"||"onmouseenter"in document?C!="mouseleave"||"onmouseenter"in document?C=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(C="MozMousePixelScroll"):C="mouseout":C="mouseover");return oa(Z3,function(H){var X=typeof H[4]==="boolean"&&H[4]==!!N,d=g.Pv(H[4])&&g.Pv(N)&&g.Y5(H[4],N);return!!H.length&&H[0]==p&&H[1]==C&&H[2]==V&&(X||d)})}; g.UB=function(p,C,V,N){N=N===void 0?{}:N;if(!p||!p.addEventListener&&!p.attachEvent)return"";var H=gCQ(p,C,V,N);if(H)return H;H=++WOX.count+"";var X=!(C!="mouseenter"&&C!="mouseleave"||!p.addEventListener||"onmouseenter"in document);var d=X?function(a){a=new uO(a);if(!TO(a.relatedTarget,function(E){return E==p},!0))return a.currentTarget=p,a.type=C,V.call(p,a)}:function(a){a=new uO(a); a.currentTarget=p;return V.call(p,a)}; d=g.NU(d);p.addEventListener?(C=="mouseenter"&&X?C="mouseover":C=="mouseleave"&&X?C="mouseout":C=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(C="MozMousePixelScroll"),Q1S()||typeof N==="boolean"?p.addEventListener(C,d,N):p.addEventListener(C,d,!!N.capture)):p.attachEvent("on"+C,d);Z3[H]=[p,C,V,d,N];return H}; Bxa=function(p){return rTL(p,function(C){return g.aL(C,"ytp-ad-has-logging-urls")})}; rTL=function(p,C){var V=document.body||document;return g.UB(V,"click",function(N){var H=TO(N.target,function(X){return X===V||C(X)},!0); H&&H!==V&&!H.disabled&&(N.currentTarget=H,p.call(H,N))})}; g.fK=function(p){p&&(typeof p=="string"&&(p=[p]),g.lr(p,function(C){if(C in Z3){var V=Z3[C],N=V[0],H=V[1],X=V[3];V=V[4];N.removeEventListener?Q1S()||typeof V==="boolean"?N.removeEventListener(H,X,V):N.removeEventListener(H,X,!!V.capture):N.detachEvent&&N.detachEvent("on"+H,X);delete Z3[C]}}))}; OB=function(p){for(var C in Z3)Z3[C][0]==p&&g.fK(C)}; yc=function(p){p=p||window.event;var C;p.composedPath&&typeof p.composedPath==="function"?C=p.composedPath():C=p.path;C&&C.length?p=C[0]:(p=p||window.event,p=p.target||p.srcElement,p.nodeType==3&&(p=p.parentNode));return p}; q5=function(p){this.D=p;this.T=null;this.S=0;this.Y=null;this.W=0;this.C=[];for(p=0;p<4;p++)this.C.push(0);this.V=0;this.b_=g.UB(window,"mousemove",(0,g.LY)(this.Z,this));this.J=g.Se((0,g.LY)(this.a$,this),25)}; I_=function(p){g.Y.call(this);this.D=[];this.Wc=p||this}; bO=function(p,C,V,N){for(var H=0;H<V.length;H++)p.U(C,V[H],N)}; g.Am=function(p,C){for(;p.D.length;){var V=p.D.pop(),N=void 0;C&&G2j()&&(N={passive:!0});V.target.removeEventListener(V.name,V.callback,N)}}; o_=function(p){p=p||{};var C={},V={};this.url=p.url||"";this.args=p.args||g.zh(C);this.assets=p.assets||{};this.attrs=p.attrs||g.zh(V);this.fallback=p.fallback||null;this.fallbackMessage=p.fallbackMessage||null;this.html5=!!p.html5;this.disable=p.disable||{};this.loaded=!!p.loaded;this.messages=p.messages||{}}; pos=function(p){p instanceof o_||(p=new o_(p));return p}; g.Yl=function(p,C,V){var N=V&&V>0?V:0;V=N?Date.now()+N*1E3:0;if((N=N?(0,g.kl)():xl())&&window.JSON){typeof C!=="string"&&(C=JSON.stringify(C,void 0));try{N.set(p,C,V)}catch(H){N.remove(p)}}}; g.zW=function(p){var C=xl(),V=(0,g.kl)();if(!C&&!V||!window.JSON)return null;try{var N=C.get(p)}catch(H){}if(typeof N!=="string")try{N=V.get(p)}catch(H){}if(typeof N!=="string")return null;try{N=JSON.parse(N,void 0)}catch(H){}return N}; CuS=function(){var p=(0,g.kl)();if(p&&(p=p.C("yt-player-quality")))return p.creation}; g.R_=function(p){try{var C=xl(),V=(0,g.kl)();C&&C.remove(p);V&&V.remove(p)}catch(N){}}; g.nK=function(){return g.zW("yt-remote-session-screen-id")}; jqv=function(p){var C=this;this.C=void 0;this.T=!1;p.addEventListener("beforeinstallprompt",function(V){V.preventDefault();C.C=V}); p.addEventListener("appinstalled",function(){C.T=!0},{once:!0})}; ez=function(){if(!g.xH.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.xH.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.xH.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.xH.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.xH.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(p){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Pw=function(){this.z8=!0}; V0a=function(){Pw.instance||(Pw.instance=new Pw);return Pw.instance}; NE1=function(p){switch(p){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; HXH=function(){this.T=g.pO("ALT_PREF_COOKIE_NAME","PREF");this.C=g.pO("ALT_PREF_COOKIE_DOMAIN","youtube.com");var p=g.ee(this.T);p&&this.parse(p)}; g.$l=function(){w8||(w8=new HXH);return w8}; g.LK=function(p,C){return!!((XoV("f"+(Math.floor(C/31)+1))||0)&1<<C%31)}; Ww=function(p,C){var V="f"+(Math.floor(p/31)+1);p=1<<p%31;var N=XoV(V)||0;N=C?N|p:N&~p;N===0?delete g8[V]:(C=N.toString(16),g8[V]=C.toString())}; Qc=function(p){if(/^f([1-9][0-9]*)$/.test(p))throw Error("ExpectedRegexMatch: "+p);}; r8=function(p){if(!/^\w+$/.test(p))throw Error("ExpectedRegexMismatch: "+p);}; XoV=function(p){p=g8[p]!==void 0?g8[p].toString():null;return p!=null&&/^[A-Fa-f0-9]+$/.test(p)?parseInt(p,16):null}; dP9=function(){var p=g.xH.navigator;return p?p.connection:void 0}; hFL=function(){var p=dP9();if(p){var C=iXy[p.type||"unknown"]||"CONN_UNKNOWN";p=iXy[p.effectiveType||"unknown"]||"CONN_UNKNOWN";C==="CONN_CELLULAR_UNKNOWN"&&p!=="CONN_UNKNOWN"&&(C=p);if(C!=="CONN_UNKNOWN")return C;if(p!=="CONN_UNKNOWN")return p}}; aKa=function(){var p=dP9();if(p!=null&&p.effectiveType)return sqa.hasOwnProperty(p.effectiveType)?sqa[p.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"}; g.Bw=function(p){var C=g.US.apply(1,arguments);var V=Error.call(this,p);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.args=[].concat(g.K(C))}; g.p3=function(){try{return g.GW(),!0}catch(p){return!1}}; g.GW=function(p){if(g.pO("DATASYNC_ID")!==void 0)return g.pO("DATASYNC_ID");throw new g.Bw("Datasync ID not set",p===void 0?"unknown":p);}; C3=function(){this.T=new WeakMap}; g.Vl=function(p,C,V){return j_(C,0,V)}; EIS=function(p){var C=g.zV("yt.scheduler.instance.addImmediateJob");C?C(p):p()}; Np=function(){C3.apply(this,arguments)}; g.HW=function(){Np.instance||(Np.instance=new Np);return Np.instance}; g.X2=function(){return!!g.zV("yt.scheduler.instance")}; j_=function(p,C,V){V!==void 0&&Number.isNaN(Number(V))&&(V=void 0);var N=g.zV("yt.scheduler.instance.addJob");return N?N(p,C,V):V===void 0?(p(),NaN):g.F5(p,V||0)}; dq=function(p,C){(p=g.zV("yt.scheduler.instance.setPriorityThreshold"))&&p(C)}; iN=function(p){this.T=(p=g.eJ(p))?new oL(p):null;this.C=document.domain||window.location.hostname}; s2=function(){var p;return(p=h1())==null?void 0:p.get("LAST_RESULT_ENTRY_KEY",!0)}; lK1=function(){var p={};for(ap=new E2(p.handleError===void 0?lN:p.handleError,p.logEvent===void 0?g.t1:p.logEvent);cW.length>0;)switch(p=cW.shift(),p.type){case "ERROR":ap.SH(p.payload);break;case "EVENT":ap.logEvent(p.eventType,p.payload)}}; Mp=function(p){T4||(ap?ap.SH(p):(cW.push({type:"ERROR",payload:p}),cW.length>10&&cW.shift()))}; J1=function(p,C){T4||(ap?ap.logEvent(p,C):(cW.push({type:"EVENT",eventType:p,payload:C}),cW.length>10&&cW.shift()))}; mW=function(p){if(p.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; vW=function(p){return p.substr(0,p.indexOf(":"))||p}; g.F2=function(p,C,V,N,H){C=C===void 0?{}:C;V=V===void 0?t0y[p]:V;N=N===void 0?cCy[p]:N;H=H===void 0?TEH[p]:H;g.Bw.call(this,V,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:p},C));this.type=p;this.message=V;this.level=N;this.T=H;Object.setPrototypeOf(this,g.F2.prototype)}; S_=function(p,C){g.F2.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:C,foundObjectStores:p},t0y.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,S_.prototype)}; K3=function(p,C){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.index=p;this.objectStore=C;Object.setPrototypeOf(this,K3.prototype)}; uN=function(p,C,V,N){C=vW(C);var H=p instanceof Error?p:Error("Unexpected error: "+p);if(H instanceof g.F2)return H;p={objectStoreNames:V,dbName:C,dbVersion:N};if(H.name==="QuotaExceededError")return new g.F2("QUOTA_EXCEEDED",p);if(g.D1&&H.name==="UnknownError")return new g.F2("QUOTA_MAYBE_EXCEEDED",p);if(H instanceof K3)return new g.F2("MISSING_INDEX",Object.assign({},p,{objectStore:H.objectStore,index:H.index}));if(H.name==="InvalidStateError"&&M0j.some(function(X){return H.message.includes(X)}))return new g.F2("EXECUTE_TRANSACTION_ON_CLOSED_DB", p); if(H.name==="AbortError")return new g.F2("UNKNOWN_ABORT",p,H.message);H.args=[Object.assign({},p,{name:"IdbError",z5:H.name})];H.level="WARNING";return H}; g.Z1=function(p,C,V){var N=s2();return new g.F2("IDB_NOT_SUPPORTED",{context:{caller:p,publicName:C,version:V,hasSucceededOnce:N==null?void 0:N.hasSucceededOnce}})}; JCe=function(p){if(!p)throw Error();throw p;}; mPH=function(p){return p}; U2=function(p){this.T=p}; g.f3=function(p){function C(H){if(N.state.status==="PENDING"){N.state={status:"REJECTED",reason:H};H=g.F(N.C);for(var X=H.next();!X.done;X=H.next())X=X.value,X()}} function V(H){if(N.state.status==="PENDING"){N.state={status:"FULFILLED",value:H};H=g.F(N.T);for(var X=H.next();!X.done;X=H.next())X=X.value,X()}} var N=this;this.state={status:"PENDING"};this.T=[];this.C=[];p=p.T;try{p(V,C)}catch(H){C(H)}}; vIV=function(p,C,V,N,H){try{if(p.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var X=V(p.state.value);X instanceof g.f3?O2(p,C,X,N,H):N(X)}catch(d){H(d)}}; FVa=function(p,C,V,N,H){try{if(p.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var X=V(p.state.reason);X instanceof g.f3?O2(p,C,X,N,H):N(X)}catch(d){H(d)}}; O2=function(p,C,V,N,H){C===V?H(new TypeError("Circular promise chain detected.")):V.then(function(X){X instanceof g.f3?O2(p,C,X,N,H):N(X)},function(X){H(X)})}; SMy=function(p,C,V){function N(){V(p.error);X()} function H(){C(p.result);X()} function X(){try{p.removeEventListener("success",H),p.removeEventListener("error",N)}catch(d){}} p.addEventListener("success",H);p.addEventListener("error",N)}; KVL=function(p){return new Promise(function(C,V){SMy(p,C,V)})}; yl=function(p){return new g.f3(new U2(function(C,V){SMy(p,C,V)}))}; qp=function(p,C){return new g.f3(new U2(function(V,N){function H(){var X=p?C(p):null;X?X.then(function(d){p=d;H()},N):V()} H()}))}; DPj=function(p,C){this.request=p;this.cursor=C}; ulu=function(p){return yl(p).then(function(C){return C?new DPj(p,C):null})}; g.ZXe=function(p){p.cursor.continue(void 0);return ulu(p.request)}; UPv=function(p,C){this.T=p;this.options=C;this.transactionCount=0;this.V=Math.round((0,g.Ip)());this.C=!1}; g.A1=function(p,C,V){p=p.T.createObjectStore(C,V);return new bN(p)}; op=function(p,C){p.T.objectStoreNames.contains(C)&&p.T.deleteObjectStore(C)}; g.Yt=function(p,C,V){return g.kt(p,[C],{mode:"readwrite",L4:!0},function(N){return g.xt(N.objectStore(C),V)})}; g.kt=function(p,C,V,N){var H,X,d,a,E,l,t,c,T,M,J,S;return g.I(function(D){switch(D.C){case 1:var Z={mode:"readonly",L4:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof V==="string"?Z.mode=V:Object.assign(Z,V);H=Z;p.transactionCount++;X=H.L4?3:1;d=0;case 2:if(a){D.EY(4);break}d++;E=Math.round((0,g.Ip)());g.vv(D,5);l=p.T.transaction(C,H.mode);Z=new z4(l);Z=fKs(Z,N);return g.y(D,Z,7);case 7:return t=D.T,c=Math.round((0,g.Ip)()),OXH(p,E,c,d,void 0,C.join(),H),D.return(t);case 5:T=g.Sa(D);M=Math.round((0,g.Ip)()); J=uN(T,p.T.name,C.join(),p.T.version);if((S=J instanceof g.F2&&!J.T)||d>=X)OXH(p,E,M,d,J,C.join(),H),a=J;D.EY(2);break;case 4:return D.return(Promise.reject(a))}})}; OXH=function(p,C,V,N,H,X,d){C=V-C;H?(H instanceof g.F2&&(H.type==="QUOTA_EXCEEDED"||H.type==="QUOTA_MAYBE_EXCEEDED")&&J1("QUOTA_EXCEEDED",{dbName:vW(p.T.name),objectStoreNames:X,transactionCount:p.transactionCount,transactionMode:d.mode}),H instanceof g.F2&&H.type==="UNKNOWN_ABORT"&&(V-=p.V,V<0&&V>=2147483648&&(V=0),J1("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:X,transactionDuration:C,transactionCount:p.transactionCount,dbDuration:V}),p.C=!0),yCe(p,!1,N,X,C,d.tag),Mp(H)):yCe(p,!0,N,X,C, d.tag)}; yCe=function(p,C,V,N,H,X){J1("TRANSACTION_ENDED",{objectStoreNames:N,connectionHasUnknownAbortedTransaction:p.C,duration:H,isSuccessful:C,tryCount:V,tag:X===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":X})}; bN=function(p){this.T=p}; g.Rp=function(p,C,V){p.T.createIndex(C,V,{unique:!1})}; qMX=function(p,C){return g.n3(p,{query:C},function(V){return V.delete().then(function(){return g.e_(V)})}).then(function(){})}; IKH=function(p,C,V){var N=[];return g.n3(p,{query:C},function(H){if(!(V!==void 0&&N.length>=V))return N.push(H.getValue()),g.e_(H)}).then(function(){return N})}; ACa=function(p){return"getAllKeys"in IDBObjectStore.prototype?yl(p.T.getAllKeys(void 0,void 0)):bXY(p)}; bXY=function(p){var C=[];return g.oI9(p,{query:void 0},function(V){C.push(V.cursor.primaryKey);return g.ZXe(V)}).then(function(){return C})}; g.xt=function(p,C,V){return yl(p.T.put(C,V))}; g.n3=function(p,C,V){p=p.T.openCursor(C.query,C.direction);return PW(p).then(function(N){return qp(N,V)})}; g.oI9=function(p,C,V){var N=C.query;C=C.direction;p="openKeyCursor"in IDBObjectStore.prototype?p.T.openKeyCursor(N,C):p.T.openCursor(N,C);return ulu(p).then(function(H){return qp(H,V)})}; z4=function(p){var C=this;this.T=p;this.V=new Map;this.C=!1;this.done=new Promise(function(V,N){C.T.addEventListener("complete",function(){V()}); C.T.addEventListener("error",function(H){H.currentTarget===H.target&&N(C.T.error)}); C.T.addEventListener("abort",function(){var H=C.T.error;if(H)N(H);else if(!C.C){H=g.F2;for(var X=C.T.objectStoreNames,d=[],a=0;a<X.length;a++){var E=X.item(a);if(E===null)throw Error("Invariant: item in DOMStringList is null");d.push(E)}H=new H("UNKNOWN_ABORT",{objectStoreNames:d.join(),dbName:C.T.db.name,mode:C.T.mode});N(H)}})})}; fKs=function(p,C){var V=new Promise(function(N,H){try{C(p).then(function(X){N(X)}).catch(H)}catch(X){H(X),p.abort()}}); return Promise.all([V,p.done]).then(function(N){return g.F(N).next().value})}; ko1=function(p){this.T=p}; xPH=function(p,C,V){var N=[];return g.wq(p,{query:C},function(H){if(!(V!==void 0&&N.length>=V))return N.push(H.getValue()),g.e_(H)}).then(function(){return N})}; g.wq=function(p,C,V){p=p.T.openCursor(C.query===void 0?null:C.query,C.direction===void 0?"next":C.direction);return PW(p).then(function(N){return qp(N,V)})}; $t=function(p,C){this.request=p;this.cursor=C}; PW=function(p){return yl(p).then(function(C){return C?new $t(p,C):null})}; g.e_=function(p){p.cursor.continue(void 0);return PW(p.request)}; YM9=function(p,C,V){return new Promise(function(N,H){function X(){T||(T=new UPv(d.result,{closed:c}));return T} var d=C!==void 0?self.indexedDB.open(p,C):self.indexedDB.open(p);var a=V.blocked,E=V.blocking,l=V.olY,t=V.upgrade,c=V.closed,T;d.addEventListener("upgradeneeded",function(M){try{if(M.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(d.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");M.dataLoss&&M.dataLoss!=="none"&&J1("IDB_DATA_CORRUPTED",{reason:M.dataLossMessage||"unknown reason",dbName:vW(p)});var J=X(),S=new z4(d.transaction); t&&t(J,function(D){return M.oldVersion<D&&M.newVersion>=D},S); S.done.catch(function(D){H(D)})}catch(D){H(D)}}); d.addEventListener("success",function(){var M=d.result;E&&M.addEventListener("versionchange",function(){E(X())}); M.addEventListener("close",function(){J1("IDB_UNEXPECTEDLY_CLOSED",{dbName:vW(p),dbVersion:M.version});l&&l()}); N(X())}); d.addEventListener("error",function(){H(d.error)}); a&&d.addEventListener("blocked",function(){a()})})}; zFQ=function(p,C,V){V=V===void 0?{}:V;return YM9(p,C,V)}; L3=function(p,C){C=C===void 0?{}:C;var V,N,H,X;return g.I(function(d){if(d.C==1)return g.vv(d,2),V=self.indexedDB.deleteDatabase(p),N=C,(H=N.blocked)&&V.addEventListener("blocked",function(){H()}),g.y(d,KVL(V),4); if(d.C!=2)return g.Fe(d,0);X=g.Sa(d);throw uN(X,p,"",-1);})}; gq=function(p,C){this.name=p;this.options=C;this.V=!0;this.W=this.S=0}; RFX=function(p,C){return new g.F2("INCOMPATIBLE_DB_VERSION",{dbName:p.name,oldVersion:p.options.version,newVersion:C})}; g.WW=function(p,C){if(!C)throw g.Z1("openWithToken",vW(p.name));return p.open()}; nIa=function(p,C){var V;return g.I(function(N){if(N.C==1)return g.y(N,g.WW(Ql,C),2);V=N.T;return N.return(g.kt(V,["databases"],{L4:!0,mode:"readwrite"},function(H){var X=H.objectStore("databases");return X.get(p.actualName).then(function(d){if(d?p.actualName!==d.actualName||p.publicName!==d.publicName||p.userIdentifier!==d.userIdentifier:1)return g.xt(X,p).then(function(){})})}))})}; rq=function(p,C){var V;return g.I(function(N){if(N.C==1)return p?g.y(N,g.WW(Ql,C),2):N.return();V=N.T;return N.return(V.delete("databases",p))})}; eFa=function(p,C){var V,N;return g.I(function(H){return H.C==1?(V=[],g.y(H,g.WW(Ql,C),2)):H.C!=3?(N=H.T,g.y(H,g.kt(N,["databases"],{L4:!0,mode:"readonly"},function(X){V.length=0;return g.n3(X.objectStore("databases"),{},function(d){p(d.getValue())&&V.push(d.getValue());return g.e_(d)})}),3)):H.return(V)})}; Puu=function(p,C){return eFa(function(V){return V.publicName===p&&V.userIdentifier!==void 0},C)}; wo1=function(){var p,C,V,N;return g.I(function(H){switch(H.C){case 1:p=s2();if((C=p)==null?0:C.hasSucceededOnce)return H.return(!0);if(BW&&GQ()&&!pK()||g.G4)return H.return(!1);try{if(V=self,!(V.indexedDB&&V.IDBIndex&&V.IDBKeyRange&&V.IDBObjectStore))return H.return(!1)}catch(X){return H.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return H.return(!1);g.vv(H,2);N={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.y(H,nIa(N,p5),4);case 4:return g.y(H,rq("yt-idb-test-do-not-use",p5),5);case 5:return H.return(!0);case 2:return g.Sa(H),H.return(!1)}})}; $P1=function(){if(C5!==void 0)return C5;T4=!0;return C5=wo1().then(function(p){T4=!1;var C;if((C=h1())!=null&&C.T){var V;C={hasSucceededOnce:((V=s2())==null?void 0:V.hasSucceededOnce)||p};var N;(N=h1())==null||N.set("LAST_RESULT_ENTRY_KEY",C,2592E3,!0)}return p})}; jV=function(){return g.zV("ytglobal.idbToken_")||void 0}; g.Vt=function(){var p=jV();return p?Promise.resolve(p):$P1().then(function(C){(C=C?p5:void 0)&&g.YH("ytglobal.idbToken_",C);return C})}; LVe=function(p){if(!g.p3())throw p=new g.F2("AUTH_INVALID",{dbName:p}),Mp(p),p;var C=g.GW();return{actualName:p+":"+C,publicName:p,userIdentifier:C}}; gIH=function(p,C,V,N){var H,X,d,a,E,l;return g.I(function(t){switch(t.C){case 1:return X=(H=Error().stack)!=null?H:"",g.y(t,g.Vt(),2);case 2:d=t.T;if(!d)throw a=g.Z1("openDbImpl",p,C),g.Zr("ytidb_async_stack_killswitch")||(a.stack=a.stack+"\n"+X.substring(X.indexOf("\n")+1)),Mp(a),a;mW(p);E=V?{actualName:p,publicName:p,userIdentifier:void 0}:LVe(p);g.vv(t,3);return g.y(t,nIa(E,d),5);case 5:return g.y(t,zFQ(E.actualName,C,N),6);case 6:return t.return(t.T);case 3:return l=g.Sa(t),g.vv(t,7),g.y(t,rq(E.actualName, d),9);case 9:g.Fe(t,8);break;case 7:g.Sa(t);case 8:throw l;}})}; WV1=function(p,C,V){V=V===void 0?{}:V;return gIH(p,C,!1,V)}; QqX=function(p,C,V){V=V===void 0?{}:V;return gIH(p,C,!0,V)}; rCy=function(p,C){C=C===void 0?{}:C;var V,N;return g.I(function(H){if(H.C==1)return g.y(H,g.Vt(),2);if(H.C!=3){V=H.T;if(!V)return H.return();mW(p);N=LVe(p);return g.y(H,L3(N.actualName,C),3)}return g.y(H,rq(N.actualName,V),0)})}; BEV=function(p,C,V){p=p.map(function(N){return g.I(function(H){return H.C==1?g.y(H,L3(N.actualName,C),2):g.y(H,rq(N.actualName,V),0)})}); return Promise.all(p).then(function(){})}; GoX=function(p){var C=C===void 0?{}:C;var V,N;return g.I(function(H){if(H.C==1)return g.y(H,g.Vt(),2);if(H.C!=3){V=H.T;if(!V)return H.return();mW(p);return g.y(H,Puu(p,V),3)}N=H.T;return g.y(H,BEV(N,C,V),0)})}; pFQ=function(p,C){C=C===void 0?{}:C;var V;return g.I(function(N){if(N.C==1)return g.y(N,g.Vt(),2);if(N.C!=3){V=N.T;if(!V)return N.return();mW(p);return g.y(N,L3(p,C),3)}return g.y(N,rq(p,V),0)})}; Ne=function(p,C){gq.call(this,p,C);this.options=C;mW(p)}; CIv=function(p,C){var V;return function(){V||(V=new Ne(p,C));return V}}; g.HC=function(p,C){return CIv(p,C)}; XD=function(p){return g.WW(jLL(),p)}; VJs=function(p,C,V,N){var H,X,d;return g.I(function(a){switch(a.C){case 1:return H={config:p,hashData:C,timestamp:N!==void 0?N:(0,g.Ip)()},g.y(a,XD(V),2);case 2:return X=a.T,g.y(a,X.clear("hotConfigStore"),3);case 3:return g.y(a,g.Yt(X,"hotConfigStore",H),4);case 4:return d=a.T,a.return(d)}})}; N0y=function(p,C,V,N,H){var X,d,a;return g.I(function(E){switch(E.C){case 1:return X={config:p,hashData:C,configData:V,timestamp:H!==void 0?H:(0,g.Ip)()},g.y(E,XD(N),2);case 2:return d=E.T,g.y(E,d.clear("coldConfigStore"),3);case 3:return g.y(E,g.Yt(d,"coldConfigStore",X),4);case 4:return a=E.T,E.return(a)}})}; Hgv=function(p){var C,V;return g.I(function(N){return N.C==1?g.y(N,XD(p),2):N.C!=3?(C=N.T,V=void 0,g.y(N,g.kt(C,["coldConfigStore"],{mode:"readwrite",L4:!0},function(H){return g.wq(H.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(X){V=X.getValue()})}),3)):N.return(V)})}; XFY=function(p){var C,V;return g.I(function(N){return N.C==1?g.y(N,XD(p),2):N.C!=3?(C=N.T,V=void 0,g.y(N,g.kt(C,["hotConfigStore"],{mode:"readwrite",L4:!0},function(H){return g.wq(H.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(X){V=X.getValue()})}),3)):N.return(V)})}; d8Q=function(){return g.I(function(p){return g.y(p,GoX("ytGcfConfig"),0)})}; dy=function(){g.Y.call(this);this.C=[];this.T=[];var p=g.zV("yt.gcf.config.hotUpdateCallbacks");p?(this.C=[].concat(g.K(p)),this.T=p):(this.T=[],g.YH("yt.gcf.config.hotUpdateCallbacks",this.T))}; lR=function(){var p=this;this.W=!1;this.V=this.S=0;this.Y=new dy;this.Sr={eNS:function(){p.W=!0}, Hea:function(){return p.T}, pSx:function(C){iR(p,C)}, Tf:function(C){p.Tf(C)}, LhS:function(C){hN(p,C)}, YF:function(){return p.coldHashData}, g0:function(){return p.hotHashData}, jck:function(){return p.C}, l$a:function(){return sX()}, Oeo:function(){return ax()}, gQY:function(){return g.zV("yt.gcf.config.coldHashData")}, J8n:function(){return g.zV("yt.gcf.config.hotHashData")}, XS$:function(){igY(p)}, uUo:function(){p.Tf(void 0);EX(p);delete lR.instance}, h2x:function(C){p.V=C}, Bja:function(){return p.V}}}; hoV=function(){if(!lR.instance){var p=new lR;lR.instance=p}return lR.instance}; EFV=function(p){var C;g.I(function(V){if(V.C==1)return g.Zr("start_client_gcf")||g.Zr("delete_gcf_config_db")?g.Zr("start_client_gcf")?g.y(V,g.Vt(),3):V.EY(2):V.return();V.C!=2&&((C=V.T)&&g.p3()&&!g.Zr("delete_gcf_config_db")?(p.W=!0,igY(p)):(sLV(p),aJS(p)));return g.Zr("delete_gcf_config_db")?g.y(V,d8Q(),0):V.EY(0)})}; tN=function(){var p;return(p=ax())!=null?p:g.pO("RAW_HOT_CONFIG_GROUP")}; lJH=function(p){var C,V,N,H,X,d;return g.I(function(a){switch(a.C){case 1:if(p.C)return a.return(ax());if(!p.W)return C=g.Z1("getHotConfig IDB not initialized"),Hd(C),a.return(Promise.reject(C));V=jV();N=g.pO("TIME_CREATED_MS");if(!V){H=g.Z1("getHotConfig token error");Hd(H);a.EY(2);break}return g.y(a,XFY(V),3);case 3:if((X=a.T)&&X.timestamp>N)return iR(p,X.config),p.Tf(X.hashData),a.return(ax());case 2:aJS(p);if(!(V&&p.C&&p.hotHashData)){a.EY(4);break}return g.y(a,VJs(p.C,p.hotHashData,V,N),4);case 4:return p.C? a.return(ax()):(d=new g.Bw("Config not available in ytConfig"),Hd(d),a.return(Promise.reject(d)))}})}; ckL=function(p){var C,V,N,H,X,d;return g.I(function(a){switch(a.C){case 1:if(p.T)return a.return(sX());if(!p.W)return C=g.Z1("getColdConfig IDB not initialized"),Hd(C),a.return(Promise.reject(C));V=jV();N=g.pO("TIME_CREATED_MS");if(!V){H=g.Z1("getColdConfig");Hd(H);a.EY(2);break}return g.y(a,Hgv(V),3);case 3:if((X=a.T)&&X.timestamp>N)return hN(p,X.config),tJy(p,X.configData),EX(p,X.hashData),a.return(sX());case 2:sLV(p);if(!(V&&p.T&&p.coldHashData&&p.configData)){a.EY(4);break}return g.y(a,N0y(p.T, p.coldHashData,p.configData,V,N),4);case 4:return p.T?a.return(sX()):(d=new g.Bw("Config not available in ytConfig"),Hd(d),a.return(Promise.reject(d)))}})}; igY=function(p){if(!p.C||!p.T){if(!jV()){var C=g.Z1("scheduleGetConfigs");Hd(C)}p.S||(p.S=g.rE.Lx(function(){return g.I(function(V){switch(V.C){case 1:return g.vv(V,2),g.y(V,lJH(p),4);case 4:g.Fe(V,3);break;case 2:g.Sa(V);case 3:return g.vv(V,5),g.y(V,ckL(p),7);case 7:g.Fe(V,6);break;case 5:g.Sa(V);case 6:p.S&&(p.S=0),g.JQ(V)}})},100))}}; T0a=function(p,C,V){var N,H,X;return g.I(function(d){switch(d.C){case 1:if(!g.Zr("start_client_gcf")){d.EY(0);break}V&&iR(p,V);p.Tf(C);N=jV();if(!N){d.EY(3);break}if(V){d.EY(4);break}return g.y(d,XFY(N),5);case 5:H=d.T,V=(X=H)==null?void 0:X.config;case 4:return g.y(d,VJs(V,C,N),3);case 3:if(V)for(var a=V,E=g.F(p.Y.T),l=E.next();!l.done;l=E.next())l=l.value,l(a);g.JQ(d)}})}; MJs=function(p,C,V){var N,H,X,d;return g.I(function(a){if(a.C==1){if(!g.Zr("start_client_gcf"))return a.EY(0);EX(p,C);return(N=jV())?V?a.EY(4):g.y(a,Hgv(N),5):a.EY(0)}a.C!=4&&(H=a.T,V=(X=H)==null?void 0:X.config);if(!V)return a.EY(0);d=V.configData;return g.y(a,N0y(V,C,d,N),0)})}; Jku=function(){var p=hoV(),C=(0,g.Ip)()-p.V;if(!(p.V!==0&&C<g.Uk("send_config_hash_timer"))){C=g.zV("yt.gcf.config.coldConfigData");var V=g.zV("yt.gcf.config.hotHashData"),N=g.zV("yt.gcf.config.coldHashData");C&&V&&N&&(p.V=(0,g.Ip)());return{coldConfigData:C,hotHashData:V,coldHashData:N}}}; sLV=function(p){hN(p,g.pO("RAW_COLD_CONFIG_GROUP"));EX(p,g.pO("SERIALIZED_COLD_HASH_DATA"));var C;tJy(p,(C=p.T)==null?void 0:C.configData)}; aJS=function(p){iR(p,g.pO("RAW_HOT_CONFIG_GROUP"));p.Tf(g.pO("SERIALIZED_HOT_HASH_DATA"))}; iR=function(p,C){p.C=C;g.YH("yt.gcf.config.hotConfigGroup",p.C||null)}; hN=function(p,C){p.T=C;g.YH("yt.gcf.config.coldConfigGroup",p.T||null)}; EX=function(p,C){p.coldHashData=C;g.YH("yt.gcf.config.coldHashData",p.coldHashData||null)}; tJy=function(p,C){p.configData=C;g.YH("yt.gcf.config.coldConfigData",p.configData||null)}; ax=function(){return g.zV("yt.gcf.config.hotConfigGroup")}; sX=function(){return g.zV("yt.gcf.config.coldConfigGroup")}; m8Y=function(){return"INNERTUBE_API_KEY"in B6&&"INNERTUBE_API_VERSION"in B6}; g.cC=function(){return{innertubeApiKey:g.pO("INNERTUBE_API_KEY"),innertubeApiVersion:g.pO("INNERTUBE_API_VERSION"),OM:g.pO("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),aL:g.pO("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),o4:g.pO("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.pO("INNERTUBE_CONTEXT_CLIENT_VERSION"),CP:g.pO("INNERTUBE_CONTEXT_HL"),nP:g.pO("INNERTUBE_CONTEXT_GL"),d4:g.pO("INNERTUBE_HOST_OVERRIDE")||"",jx:!!g.pO("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),ZA:!!g.pO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.pO("SERIALIZED_CLIENT_CONFIG_DATA")}}; g.T1=function(p){var C={client:{hl:p.CP,gl:p.nP,clientName:p.aL,clientVersion:p.innertubeContextClientVersion,configInfo:p.OM}};navigator.userAgent&&(C.client.userAgent=String(navigator.userAgent));var V=g.xH.devicePixelRatio;V&&V!=1&&(C.client.screenDensityFloat=String(V));V=fO();V!==""&&(C.client.experimentsToken=V);V=Ok();V.length>0&&(C.request={internalExperimentFlags:V});vFX(p,void 0,C);Fl9(void 0,C);Sd1(void 0,C);KlQ(p,void 0,C);D8H(void 0,C);g.Zr("start_client_gcf")&&uV1(void 0,C);g.pO("DELEGATED_SESSION_ID")&& !g.Zr("pageid_as_header_web")&&(C.user={onBehalfOfUser:g.pO("DELEGATED_SESSION_ID")});!g.Zr("fill_delegate_context_in_gel_killswitch")&&(p=g.pO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(C.user=Object.assign({},C.user,{serializedDelegationContext:p}));p=g.pO("INNERTUBE_CONTEXT");var N;if(g.Zr("enable_persistent_device_token")&&(p==null?0:(N=p.client)==null?0:N.rolloutToken)){var H;C.client.rolloutToken=p==null?void 0:(H=p.client)==null?void 0:H.rolloutToken}N=Object;H=N.assign;p=C.client; V={};for(var X=g.F(Object.entries(i1(g.pO("DEVICE","")))),d=X.next();!d.done;d=X.next()){var a=g.F(d.value);d=a.next().value;a=a.next().value;d==="cbrand"?V.deviceMake=a:d==="cmodel"?V.deviceModel=a:d==="cbr"?V.browserName=a:d==="cbrver"?V.browserVersion=a:d==="cos"?V.osName=a:d==="cosver"?V.osVersion=a:d==="cplatform"&&(V.platform=a)}C.client=H.call(N,p,V);return C}; vFX=function(p,C,V){p=p.aL;if(p==="WEB"||p==="MWEB"||p===1||p===2)if(C){V=iB(C,Ap,96)||new Ap;var N=ez();N=Object.keys(ZgX).indexOf(N);N=N===-1?null:N;N!==null&&Fa(V,3,N);hP(C,Ap,96,V)}else V&&(V.client.mainAppWebInfo=(N=V.client.mainAppWebInfo)!=null?N:{},V.client.mainAppWebInfo.webDisplayMode=ez())}; Fl9=function(p,C){var V=g.zV("yt.embedded_player.embed_url");V&&(p?(C=iB(p,zH,7)||new zH,mM(C,4,V),hP(p,zH,7,C)):C&&(C.thirdParty={embedUrl:V}))}; Sd1=function(p,C){var V;if(g.Zr("web_log_memory_total_kbytes")&&((V=g.xH.navigator)==null?0:V.deviceMemory)){var N;V=(N=g.xH.navigator)==null?void 0:N.deviceMemory;p?RO(p,95,cT(V*1E6)):C&&(C.client.memoryTotalKbytes=""+V*1E6)}}; KlQ=function(p,C,V){if(p.appInstallData)if(C){var N;V=(N=iB(C,ba,62))!=null?N:new ba;mM(V,6,p.appInstallData);hP(C,ba,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},V.client.configInfo.appInstallData=p.appInstallData)}; D8H=function(p,C){var V=hFL();V&&(p?Fa(p,61,U8v[V]):C&&(C.client.connectionType=V));g.Zr("web_log_effective_connection_type")&&(V=aKa())&&(p?Fa(p,94,fJa[V]):C&&(C.client.effectiveConnectionType=V))}; OgH=function(p,C,V){V=V===void 0?{}:V;var N={};g.pO("EOM_VISITOR_DATA")?N={"X-Goog-EOM-Visitor-Id":g.pO("EOM_VISITOR_DATA")}:N={"X-Goog-Visitor-Id":V.visitorData||g.pO("VISITOR_DATA","")};if(C&&C.includes("www.youtube-nocookie.com"))return N;C=V.yb||g.pO("AUTHORIZATION");C||(p?C="Bearer "+g.zV("gapi.auth.getToken")().access_token:(p=V0a().wg(Me),g.Zr("pageid_as_header_web")||delete p["X-Goog-PageId"],N=Object.assign({},N,p)));C&&(N.Authorization=C);return N}; uV1=function(p,C){var V=Jku();if(V){var N=V.coldConfigData,H=V.coldHashData;V=V.hotHashData;if(p){var X;C=(X=iB(p,ba,62))!=null?X:new ba;N=mM(C,1,N);mM(N,3,H).Tf(V);hP(p,ba,62,C)}else C&&(C.client.configInfo=C.client.configInfo||{},N&&(C.client.configInfo.coldConfigData=N),H&&(C.client.configInfo.coldHashData=H),V&&(C.client.configInfo.hotHashData=V))}}; uR=function(p,C){this.version=p;this.args=C}; OX=function(p,C){this.topic=p;this.T=C}; Ix=function(p,C){var V=qe();V&&V.publish.call(V,p.toString(),p,C)}; IJa=function(p){var C=yk1,V=qe();if(!V)return 0;var N=V.subscribe(C.toString(),function(H,X){var d=g.zV("ytPubsub2Pubsub2SkipSubKey");d&&d==N||(d=function(){if(bR[N])try{if(X&&C instanceof OX&&C!=H)try{var a=C.T,E=X;if(!E.args||!E.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!a.Bm){var l=new a;a.Bm=l.version}var t=a.Bm}catch(c){}if(!t||E.version!=t)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{X=Reflect.construct(a, g.p6(E.args))}catch(c){throw c.message="yt.pubsub2.Data.deserialize(): "+c.message,c;}}catch(c){throw c.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+C.toString()+": "+c.message,c;}p.call(window,X)}catch(c){g.Vg(c)}},qdu[C.toString()]?g.X2()?g.rE.Lx(d):g.F5(d,0):d())}); bR[N]=!0;AN[C.toString()]||(AN[C.toString()]=[]);AN[C.toString()].push(N);return N}; oFv=function(){var p=bgs,C=IJa(function(V){p.apply(void 0,arguments);AkX(C)}); return C}; AkX=function(p){var C=qe();C&&(typeof p==="number"&&(p=[p]),g.lr(p,function(V){C.unsubscribeByKey(V);delete bR[V]}))}; qe=function(){return g.zV("ytPubsub2Pubsub2Instance")}; ox=function(p,C,V){V=V===void 0?{sampleRate:.1}:V;Math.random()<Math.min(.02,V.sampleRate/100)&&Ix("meta_logging_csi_event",{timerName:p,dSS:C})}; kzQ=function(){kp||(kp=Og(g.pO("WORKER_SERIALIZATION_URL")));return kp||void 0}; Yp=function(){var p=kzQ();xp||p===void 0||(xp=new Worker(oc(p),void 0));return xp}; x8L=function(){return typeof Worker==="function"&&kzQ()?!0:!1}; zoa=function(){if(x8L()&&!z1){var p=function(V){V=V.data;if(V.op==="gzippedGelBatch"){var N=Rx.get(V.key);N&&(YdS(V.gzippedBatch,N.latencyPayload,N.url,N.options,N.sendFn),Rx.delete(V.key))}},C=Yp(); C&&(C.addEventListener("message",p),C.onerror=function(){Rx.clear()},z1=!0)}}; PC=function(p,C,V,N,H){H=H===void 0?!1:H;var X={startTime:(0,g.Ip)(),ticks:{},infos:{}};if(n5)try{var d=Roy(C);if(d!=null&&(d>nFy||d<eoj))N(p,V);else{if(g.Zr("gzip_gel_with_worker")&&(g.Zr("initial_gzip_use_main_thread")&&!PIu||!g.Zr("initial_gzip_use_main_thread"))){z1||zoa();var a=Yp();if(a&&!H){Rx.set(eV,{latencyPayload:X,url:p,options:V,sendFn:N});a.postMessage({op:"gelBatchToGzip",serializedBatch:C,key:eV});eV++;return}}var E=yxe(wFv(C));YdS(E,X,p,V,N)}}catch(l){Hd(l),N(p,V)}else N(p,V)}; YdS=function(p,C,V,N,H){PIu=!1;var X=(0,g.Ip)();C.ticks.gelc=X;wy++;g.Zr("disable_compression_due_to_performance_degredation")&&X-C.startTime>=$89&&($p++,g.Zr("abandon_compression_after_N_slow_zips")?wy===g.Uk("compression_disable_point")&&$p>LlH&&(n5=!1):n5=!1);gFj(C);N.headers||(N.headers={});N.headers["Content-Encoding"]="gzip";N.postBody=p;N.postParams=void 0;H(V,N)}; WlY=function(p){var C=C===void 0?!1:C;var V=V===void 0?!1:V;var N=(0,g.Ip)(),H={startTime:N,ticks:{},infos:{}},X=C?g.zV("yt.logging.gzipForFetch",!1):!0;if(n5&&X){if(!p.body)return p;try{var d=V?p.body:typeof p.body==="string"?p.body:JSON.stringify(p.body);X=d;if(!V&&typeof d==="string"){var a=Roy(d);if(a!=null&&(a>nFy||a<eoj))return p;V=C?{level:1}:void 0;X=yxe(wFv(d),V);var E=(0,g.Ip)();H.ticks.gelc=E;if(C){wy++;if((g.Zr("disable_compression_due_to_performance_degredation")||g.Zr("disable_compression_due_to_performance_degradation_lr"))&& E-N>=$89)if($p++,g.Zr("abandon_compression_after_N_slow_zips")||g.Zr("abandon_compression_after_N_slow_zips_lr")){C=$p/wy;var l=LlH/g.Uk("compression_disable_point");wy>0&&wy%g.Uk("compression_disable_point")===0&&C>=l&&(n5=!1)}else n5=!1;gFj(H)}}p.headers=Object.assign({},{"Content-Encoding":"gzip"},p.headers||{});p.body=X;return p}catch(t){return Hd(t),p}}else return p}; Roy=function(p){try{return(new Blob(p.split(""))).size}catch(C){return Hd(C),null}}; gFj=function(p){g.Zr("gel_compression_csi_killswitch")||!g.Zr("log_gel_compression_latency")&&!g.Zr("log_gel_compression_latency_lr")||ox("gel_compression",p,{sampleRate:.1})}; gy=function(p){var C=this;this.Tu=this.T=!1;this.potentialEsfErrorCounter=this.C=0;this.handleError=function(){}; this.yT=function(){}; this.now=Date.now;this.mV=!1;this.Sr={Gva:function(t){C.p9=t}, Fho:function(){C.Mz()}, kI:function(){C.KN()}, Nh:function(t){return g.I(function(c){return g.y(c,C.Nh(t),0)})}, Zv:function(t,c){return C.Zv(t,c)}, bk:function(){C.bk()}}; var V;this.Lc=(V=p.Lc)!=null?V:100;var N;this.Rv=(N=p.Rv)!=null?N:1;var H;this.W0=(H=p.W0)!=null?H:2592E6;var X;this.ED=(X=p.ED)!=null?X:12E4;var d;this.P0=(d=p.P0)!=null?d:5E3;var a;this.p9=(a=p.p9)!=null?a:void 0;this.D8=!!p.D8;var E;this.rK=(E=p.rK)!=null?E:.1;var l;this.tT=(l=p.tT)!=null?l:10;p.handleError&&(this.handleError=p.handleError);p.yT&&(this.yT=p.yT);p.mV&&(this.mV=p.mV);p.Tu&&(this.Tu=p.Tu);this.OY=p.OY;this.Pp=p.Pp;this.hU=p.hU;this.AU=p.AU;this.sendFn=p.sendFn;this.AZ=p.AZ;this.b1= p.b1;L5(this)&&(!this.OY||this.OY("networkless_logging"))&&QLQ(this)}; QLQ=function(p){L5(p)&&!p.mV&&(p.T=!0,p.D8&&Math.random()<=p.rK&&p.hU.CU(p.p9),p.bk(),p.AU.nO()&&p.Mz(),p.AU.listen(p.AZ,p.Mz.bind(p)),p.AU.listen(p.b1,p.KN.bind(p)))}; Gze=function(p,C){if(!L5(p))throw Error("IndexedDB is not supported: updateRequestHandlers");var V=C.options.onError?C.options.onError:function(){}; C.options.onError=function(H,X){var d,a,E,l;return g.I(function(t){switch(t.C){case 1:d=rkL(X);(a=B0L(X))&&p.OY&&p.OY("web_enable_error_204")&&p.handleError(Error("Request failed due to compression"),C.url,X);if(!(p.OY&&p.OY("nwl_consider_error_code")&&d||p.OY&&!p.OY("nwl_consider_error_code")&&p.potentialEsfErrorCounter<=p.tT)){t.EY(2);break}if(!p.AU.rr){t.EY(3);break}return g.y(t,p.AU.rr(),3);case 3:if(p.AU.nO()){t.EY(2);break}V(H,X);if(!p.OY||!p.OY("nwl_consider_error_code")||((E=C)==null?void 0: E.id)===void 0){t.EY(6);break}return g.y(t,p.hU.dD(C.id,p.p9,!1),6);case 6:return t.return();case 2:if(p.OY&&p.OY("nwl_consider_error_code")&&!d&&p.potentialEsfErrorCounter>p.tT)return t.return();p.potentialEsfErrorCounter++;if(((l=C)==null?void 0:l.id)===void 0){t.EY(8);break}return C.sendCount<p.Rv?g.y(t,p.hU.dD(C.id,p.p9,!0,a?!1:void 0),12):g.y(t,p.hU.NP(C.id,p.p9),8);case 12:p.Pp.Lx(function(){p.AU.nO()&&p.Mz()},p.P0); case 8:V(H,X),g.JQ(t)}})}; var N=C.options.onSuccess?C.options.onSuccess:function(){}; C.options.onSuccess=function(H,X){var d;return g.I(function(a){if(a.C==1)return((d=C)==null?void 0:d.id)===void 0?a.EY(2):g.y(a,p.hU.NP(C.id,p.p9),2);p.AU.cj&&p.OY&&p.OY("vss_network_hint")&&p.AU.cj(!0);N(H,X);g.JQ(a)})}; return C}; WC=function(p,C){p.iS&&!p.AU.nO()?p.iS(C):p.handleError(C)}; L5=function(p){return!!p.p9||p.Tu}; rkL=function(p){var C;return(p=p==null?void 0:(C=p.error)==null?void 0:C.code)&&p>=400&&p<=599?!1:!0}; B0L=function(p){var C;p=p==null?void 0:(C=p.error)==null?void 0:C.code;return!(p!==400&&p!==415)}; p6X=function(){if(Qt)return Qt();var p={};Qt=g.HC("LogsDatabaseV2",{UK:(p.LogsRequestsStore={c_:2},p),shared:!1,upgrade:function(C,V,N){V(2)&&g.A1(C,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});V(3);V(5)&&(N=N.objectStore("LogsRequestsStore"),N.T.indexNames.contains("newRequest")&&N.T.deleteIndex("newRequest"),g.Rp(N,"newRequestV2",["status","interface","timestamp"]));V(7)&&op(C,"sapisid");V(9)&&op(C,"SWHealthLog")}, version:9});return Qt()}; ry=function(p){return g.WW(p6X(),p)}; j69=function(p,C){var V,N,H,X;return g.I(function(d){if(d.C==1)return V={startTime:(0,g.Ip)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.y(d,ry(C),2);if(d.C!=3)return N=d.T,H=Object.assign({},p,{options:JSON.parse(JSON.stringify(p.options)),interface:g.pO("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.y(d,g.Yt(N,"LogsRequestsStore",H),3);X=d.T;V.ticks.tc=(0,g.Ip)();Caa(V);return d.return(X)})}; V7y=function(p,C){var V,N,H,X,d,a,E,l;return g.I(function(t){if(t.C==1)return V={startTime:(0,g.Ip)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.y(t,ry(C),2);if(t.C!=3)return N=t.T,H=g.pO("INNERTUBE_CONTEXT_CLIENT_NAME",0),X=[p,H,0],d=[p,H,(0,g.Ip)()],a=IDBKeyRange.bound(X,d),E="prev",g.Zr("use_fifo_for_networkless")&&(E="next"),l=void 0,g.y(t,g.kt(N,["LogsRequestsStore"],{mode:"readwrite",L4:!0},function(c){return g.wq(c.objectStore("LogsRequestsStore").index("newRequestV2"), {query:a,direction:E},function(T){T.getValue()&&(l=T.getValue(),p==="NEW"&&(l.status="QUEUED",T.update(l)))})}),3); V.ticks.tc=(0,g.Ip)();Caa(V);return t.return(l)})}; NfQ=function(p,C){var V;return g.I(function(N){if(N.C==1)return g.y(N,ry(C),2);V=N.T;return N.return(g.kt(V,["LogsRequestsStore"],{mode:"readwrite",L4:!0},function(H){var X=H.objectStore("LogsRequestsStore");return X.get(p).then(function(d){if(d)return d.status="QUEUED",g.xt(X,d).then(function(){return d})})}))})}; Hd9=function(p,C,V,N){V=V===void 0?!0:V;var H;return g.I(function(X){if(X.C==1)return g.y(X,ry(C),2);H=X.T;return X.return(g.kt(H,["LogsRequestsStore"],{mode:"readwrite",L4:!0},function(d){var a=d.objectStore("LogsRequestsStore");return a.get(p).then(function(E){return E?(E.status="NEW",V&&(E.sendCount+=1),N!==void 0&&(E.options.compress=N),g.xt(a,E).then(function(){return E})):g.f3.resolve(void 0)})}))})}; X6X=function(p,C){var V;return g.I(function(N){if(N.C==1)return g.y(N,ry(C),2);V=N.T;return N.return(V.delete("LogsRequestsStore",p))})}; dvs=function(p){var C,V;return g.I(function(N){if(N.C==1)return g.y(N,ry(p),2);C=N.T;V=(0,g.Ip)()-2592E6;return g.y(N,g.kt(C,["LogsRequestsStore"],{mode:"readwrite",L4:!0},function(H){return g.n3(H.objectStore("LogsRequestsStore"),{},function(X){if(X.getValue().timestamp<=V)return X.delete().then(function(){return g.e_(X)})})}),0)})}; idY=function(){g.I(function(p){return g.y(p,GoX("LogsDatabaseV2"),0)})}; Caa=function(p){g.Zr("nwl_csi_killswitch")||ox("networkless_performance",p,{sampleRate:1})}; s6H=function(p){return g.WW(hi1(),p)}; aDa=function(p){var C,V;g.I(function(N){if(N.C==1)return g.y(N,s6H(p),2);C=N.T;V=(0,g.Ip)()-2592E6;return g.y(N,g.kt(C,["SWHealthLog"],{mode:"readwrite",L4:!0},function(H){return g.n3(H.objectStore("SWHealthLog"),{},function(X){if(X.getValue().timestamp<=V)return X.delete().then(function(){return g.e_(X)})})}),0)})}; EQX=function(p){var C;return g.I(function(V){if(V.C==1)return g.y(V,s6H(p),2);C=V.T;return g.y(V,C.clear("SWHealthLog"),0)})}; g.BC=function(p,C,V,N,H,X,d){H=H===void 0?"":H;X=X===void 0?!1:X;d=d===void 0?!1:d;if(p)if(V&&!g.Qg())p&&(p=g.xe(g.Rc(p)),p===U1s.toString()||p.startsWith("data")?p="":(p=LH(gI(p)).toString(),p=g.N$(g.zD(p))),g.Sy(p)||(p=dW("IFRAME",{src:'javascript:"<body><img src=\\""+'+p+'+"\\"></body>"',style:"display:none"}),QW(p).body.appendChild(p)));else if(H)yg(p,C,"POST",H,N);else if(g.pO("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||N||d)yg(p,C,"GET","",N,void 0,X,d);else{b:{try{var a=new Bhe({url:p});if(a.S){if(typeof a.V!== "string"||a.V.length===0)var E=0;else{var l=a.V,t="&act=1&ri=1"+GiX(a);E={version:3,c9n:l,BPx:t?a.T?a.C.slice(0,a.T.index)+t+a.C.slice(a.T.index):a.C+t:a.C}}var c=E}else c=a.W;if(c){var T=PX(g.$7(5,p));var M=!(!T||!T.endsWith("/aclk")||CN(p,"ri")!=="1");break b}}catch(J){}M=!1}M?lD9(p)?(C&&C(),V=!0):V=!1:V=!1;V||t7y(p,C)}}; lD9=function(p,C){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(p,C===void 0?"":C))return!0}catch(V){}return!1}; t7y=function(p,C){var V=new Image,N=""+cpY++;G1[N]=V;V.onload=V.onerror=function(){C&&G1[N]&&C();delete G1[N]}; V.src=p}; Tfu=function(p){var C;return((C=document.featurePolicy)==null?0:C.allowedFeatures().includes("attribution-reporting"))?p+"&nis=6":p+"&nis=5"}; C1=function(){p1||(p1=new iN("yt.offline"));return p1}; M7Y=function(p){if(g.Zr("offline_error_handling")){var C=C1().get("errors",!0)||{};C[p.message]={name:p.name,stack:p.stack};p.level&&(C[p.message].level=p.level);C1().set("errors",C,2592E3,!0)}}; jF=function(){this.T=new Map;this.C=!1}; Vq=function(){if(!jF.instance){var p=g.zV("yt.networkRequestMonitor.instance")||new jF;g.YH("yt.networkRequestMonitor.instance",p);jF.instance=p}return jF.instance}; NM=function(){g.h8.call(this);var p=this;this.C=!1;this.T=yUV();this.T.listen("networkstatus-online",function(){if(p.C&&g.Zr("offline_error_handling")){var C=C1().get("errors",!0);if(C){for(var V in C)if(C[V]){var N=new g.Bw(V,"sent via offline_errors");N.name=C[V].name;N.stack=C[V].stack;N.level=C[V].level;g.Vg(N)}C1().set("errors",{},2592E3,!0)}}})}; Jpa=function(){if(!NM.instance){var p=g.zV("yt.networkStatusManager.instance")||new NM;g.YH("yt.networkStatusManager.instance",p);NM.instance=p}return NM.instance}; g.Hl=function(p){p=p===void 0?{}:p;g.h8.call(this);var C=this;this.T=this.S=0;this.C=Jpa();var V=g.zV("yt.networkStatusManager.instance.listen").bind(this.C);V&&(p.rateLimit?(this.rateLimit=p.rateLimit,V("networkstatus-online",function(){mvL(C,"publicytnetworkstatus-online")}),V("networkstatus-offline",function(){mvL(C,"publicytnetworkstatus-offline")})):(V("networkstatus-online",function(){C.dispatchEvent("publicytnetworkstatus-online")}),V("networkstatus-offline",function(){C.dispatchEvent("publicytnetworkstatus-offline")})))}; mvL=function(p,C){p.rateLimit?p.T?(g.rE.X5(p.S),p.S=g.rE.Lx(function(){p.V!==C&&(p.dispatchEvent(C),p.V=C,p.T=(0,g.Ip)())},p.rateLimit-((0,g.Ip)()-p.T))):(p.dispatchEvent(C),p.V=C,p.T=(0,g.Ip)()):p.dispatchEvent(C)}; d$=function(){var p=gy.call;X3||(X3=new g.Hl({Qa_:!0,y8Y:!0}));p.call(gy,this,{hU:{CU:dvs,NP:X6X,Oa:V7y,KD:NfQ,dD:Hd9,set:j69},AU:X3,handleError:function(C,V,N){var H,X=N==null?void 0:(H=N.error)==null?void 0:H.code;if(X===400||X===415){var d;Hd(new g.Bw(C.message,V,N==null?void 0:(d=N.error)==null?void 0:d.code),void 0,void 0,void 0,!0)}else g.Vg(C)}, yT:Hd,sendFn:vQu,now:g.Ip,iS:M7Y,Pp:g.HW(),AZ:"publicytnetworkstatus-online",b1:"publicytnetworkstatus-offline",D8:!0,rK:.1,tT:g.Uk("potential_esf_error_limit",10),OY:g.Zr,mV:!(g.p3()&&g.LJ(document.location.toString())!=="www.youtube-nocookie.com")});this.V=new g.Zt;g.Zr("networkless_immediately_drop_all_requests")&&idY();pFQ("LogsDatabaseV2")}; iV=function(){var p=g.zV("yt.networklessRequestController.instance");p||(p=new d$,g.YH("yt.networklessRequestController.instance",p),g.Zr("networkless_logging")&&g.Vt().then(function(C){p.p9=C;QLQ(p);p.V.resolve();p.D8&&Math.random()<=p.rK&&p.p9&&aDa(p.p9);g.Zr("networkless_immediately_drop_sw_health_store")&&F2v(p)})); return p}; F2v=function(p){var C;g.I(function(V){if(!p.p9)throw C=g.Z1("clearSWHealthLogsDb"),C;return V.return(EQX(p.p9).catch(function(N){p.handleError(N)}))})}; vQu=function(p,C,V,N){N=N===void 0?!1:N;C=g.Zr("web_fp_via_jspb")?Object.assign({},C):C;g.Zr("use_cfr_monitor")&&SgH(p,C);if(g.Zr("use_request_time_ms_header"))C.headers&&l1(p)&&(C.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Ip)())));else{var H;if((H=C.postParams)==null?0:H.requestTimeMs)C.postParams.requestTimeMs=Math.round((0,g.Ip)())}V&&Object.keys(C).length===0?g.BC(p):C.compress?C.postBody?(typeof C.postBody!=="string"&&(C.postBody=JSON.stringify(C.postBody)),PC(p,C.postBody, C,g.qU,N)):PC(p,JSON.stringify(C.postParams),C,IK,N):g.qU(p,C)}; h3=function(p,C){g.Zr("use_event_time_ms_header")&&l1(p)&&(C.headers||(C.headers={}),C.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Ip)())));return C}; SgH=function(p,C){var V=C.onError?C.onError:function(){}; C.onError=function(H,X){Vq().requestComplete(p,!1);V(H,X)}; var N=C.onSuccess?C.onSuccess:function(){}; C.onSuccess=function(H,X){Vq().requestComplete(p,!0);N(H,X)}}; g.sI=function(p){this.config_=null;p?this.config_=p:m8Y()&&(this.config_=g.cC())}; g.ah=function(p,C,V,N){function H(l){try{if((l===void 0?0:l)&&N.retry&&!N.networklessOptions.bypassNetworkless)X.method="POST",N.networklessOptions.writeThenSend?iV().writeThenSend(E,X):iV().sendAndWrite(E,X);else if(N.compress){var t=!N.networklessOptions.writeThenSend;if(X.postBody){var c=X.postBody;typeof c!=="string"&&(c=JSON.stringify(X.postBody));PC(E,c,X,g.qU,t)}else PC(E,JSON.stringify(X.postParams),X,IK,t)}else g.Zr("web_all_payloads_via_jspb")?g.qU(E,X):IK(E,X)}catch(T){if(T.name==="InvalidAccessError")Hd(Error("An extension is blocking network request.")); else throw T;}} !g.pO("VISITOR_DATA")&&C!=="visitor_id"&&Math.random()<.01&&Hd(new g.Bw("Missing VISITOR_DATA when sending innertube request.",C,V,N));if(!p.isReady())throw p=new g.Bw("innertube xhrclient not ready",C,V,N),g.Vg(p),p;var X={headers:N.headers||{},method:"POST",postParams:V,postBody:N.postBody,postBodyFormat:N.postBodyFormat||"JSON",onTimeout:function(){N.onTimeout()}, onFetchTimeout:N.onTimeout,onSuccess:function(l,t){if(N.onSuccess)N.onSuccess(t)}, onFetchSuccess:function(l){if(N.onSuccess)N.onSuccess(l)}, onError:function(l,t){if(N.onError)N.onError(t)}, onFetchError:function(l){if(N.onError)N.onError(l)}, timeout:N.timeout,withCredentials:!0,compress:N.compress};X.headers["Content-Type"]||(X.headers["Content-Type"]="application/json");V="";var d=p.config_.d4;d&&(V=d);d=p.config_.jx||!1;var a=OgH(d,V,N);Object.assign(X.headers,a);X.headers.Authorization&&!V&&d&&(X.headers["x-origin"]=window.location.origin);var E=aK(""+V+("/youtubei/"+p.config_.innertubeApiVersion+"/"+C),{alt:"json"});g.zV("ytNetworklessLoggingInitializationOptions")&&K2a.isNwlInitialized?$P1().then(function(l){H(l)}):H(!1)}; g.T7=function(p,C,V){var N=g.EI();if(N&&C){var H=N.subscribe(p,function(){function X(){lV[H]&&C.apply&&typeof C.apply=="function"&&C.apply(V||window,d)} var d=arguments;try{g.t3[p]?X():g.F5(X,0)}catch(a){g.Vg(a)}},V); lV[H]=!0;cl[p]||(cl[p]=[]);cl[p].push(H);return H}return 0}; DvQ=function(p){var C=g.T7("LOGGED_IN",function(V){p.apply(void 0,arguments);g.MM(C)})}; g.MM=function(p){var C=g.EI();C&&(typeof p==="number"?p=[p]:typeof p==="string"&&(p=[parseInt(p,10)]),g.lr(p,function(V){C.unsubscribeByKey(V);delete lV[V]}))}; g.J3=function(p,C){var V=g.EI();return V?V.publish.apply(V,arguments):!1}; Zd1=function(p){var C=g.EI();if(C)if(C.clear(p),p)uCy(p);else for(var V in cl)uCy(V)}; g.EI=function(){return g.xH.ytPubsubPubsubInstance}; uCy=function(p){cl[p]&&(p=cl[p],g.lr(p,function(C){lV[C]&&delete lV[C]}),p.length=0)}; g.md=function(p,C,V){UvH(p,C,V===void 0?null:V)}; UvH=function(p,C,V){V=V===void 0?null:V;var N=fDS(p),H=document.getElementById(N),X=H&&RzS(H),d=H&&!X;X?C&&C():(C&&(X=g.T7(N,C),C=""+g.$H(C),Odj[C]=X),d||(H=ypV(p,N,function(){RzS(H)||(zzQ(H),g.J3(N),g.F5(function(){Zd1(N)},0))},V)))}; ypV=function(p,C,V,N){N=N===void 0?null:N;var H=g.iK("SCRIPT");H.id=C;H.onload=function(){V&&setTimeout(V,0)}; H.onreadystatechange=function(){switch(H.readyState){case "loaded":case "complete":H.onload()}}; N&&H.setAttribute("nonce",N);g.GN(H,g.yJ(p));p=document.getElementsByTagName("head")[0]||document.body;p.insertBefore(H,p.firstChild);return H}; fDS=function(p){var C=document.createElement("a");g.el(C,p);p=C.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+ic(p)}; vl=function(p,C){if(p===C)p=!0;else if(Array.isArray(p)&&Array.isArray(C))p=g.af(p,C,vl);else if(g.Pv(p)&&g.Pv(C))a:if(g.Ia(p).length!=g.Ia(C).length)p=!1;else{for(var V in p)if(!vl(p[V],C[V])){p=!1;break a}p=!0}else p=!1;return p}; K1=function(p){var C=g.US.apply(1,arguments);if(!F3(p)||C.some(function(N){return!F3(N)}))throw Error("Only objects may be merged."); C=g.F(C);for(var V=C.next();!V.done;V=C.next())SF(p,V.value)}; SF=function(p,C){for(var V in C)if(F3(C[V])){if(V in p&&!F3(p[V]))throw Error("Cannot merge an object into a non-object.");V in p||(p[V]={});SF(p[V],C[V])}else if(D9(C[V])){if(V in p&&!D9(p[V]))throw Error("Cannot merge an array into a non-array.");V in p||(p[V]=[]);qgS(p[V],C[V])}else p[V]=C[V];return p}; qgS=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next())V=V.value,F3(V)?p.push(SF({},V)):D9(V)?p.push(qgS([],V)):p.push(V);return p}; F3=function(p){return typeof p==="object"&&!Array.isArray(p)}; D9=function(p){return typeof p==="object"&&Array.isArray(p)}; uV=function(p){g.Y.call(this);this.C=p}; Z9=function(p){uV.call(this,!0);this.T=p}; IDe=function(p,C){g.Y.call(this);var V=this;this.V=[];this.D=!1;this.C=0;this.W=this.Y=this.S=!1;this.a$=null;var N=(0,g.LY)(p,C);this.T=new g.N8(function(){return N(V.a$)},300); g.R(this,this.T);this.Z=this.J=Infinity}; bdL=function(p,C){if(!C)return!1;for(var V=0;V<C.length;V++){var N=C.item(V);if(N&&p.V.includes(N.identifier))return!0}return!1}; f1=function(p){if(window.crypto&&window.crypto.getRandomValues)try{var C=Array(p),V=new Uint8Array(p);window.crypto.getRandomValues(V);for(var N=0;N<C.length;N++)C[N]=V[N];return C}catch(X){}C=Array(p);for(V=0;V<p;V++){N=Date.now();for(var H=0;H<N%23;H++)C[V]=Math.random();C[V]=Math.floor(Math.random()*256)}if(UI)for(V=1,N=0;N<UI.length;N++)C[V%p]=C[V%p]^C[(V-1)%p]/4^UI.charCodeAt(N),V++;return C}; g.OI=function(p){p=f1(p);for(var C=[],V=0;V<p.length;V++)C.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(p[V]&63));return C.join("")}; g.ApL=function(){return g.AU(f1(16),function(p){return(p&15).toString(16)}).join("")}; oQH=function(){var p={};var C=p.xtn===void 0?!1:p.xtn;p=p.Fw===void 0?!0:p.Fw;if(g.zV("_lact",window)==null){var V=parseInt(g.pO("LACT"),10);V=isFinite(V)?Date.now()-Math.max(V,0):-1;g.YH("_lact",V,window);g.YH("_fact",V,window);V==-1&&yq();g.UB(document,"keydown",yq);g.UB(document,"keyup",yq);g.UB(document,"mousedown",yq);g.UB(document,"mouseup",yq);C?g.UB(window,"touchmove",function(){qM("touchmove",200)},{passive:!0}):(g.UB(window,"resize",function(){qM("resize",200)}),p&&g.UB(window,"scroll", function(){qM("scroll",200)})); new q5(function(){qM("mouse",100)}); g.UB(document,"touchstart",yq,{passive:!0});g.UB(document,"touchend",yq,{passive:!0})}}; qM=function(p,C){Ih[p]||(Ih[p]=!0,g.rE.Lx(function(){yq();Ih[p]=!1},C))}; yq=function(){g.zV("_lact",window)==null&&(oQH(),g.zV("_lact",window));var p=Date.now();g.YH("_lact",p,window);g.zV("_fact",window)==-1&&g.YH("_fact",p,window);(p=g.zV("ytglobal.ytUtilActivityCallback_"))&&p()}; bV=function(){var p=g.zV("_lact",window);return p==null?-1:Math.max(Date.now()-p,0)}; A3=function(p){this.name=p}; oh=function(p){this.key=p}; kH1=function(){var p=this;this.T=new Map;this.V=new Map;this.C=new Map;this.Sr={Fba:function(){return new Map(p.T)}}}; kJ=function(p,C){p.T.set(C.Xk,C);var V=p.V.get(C.Xk);if(V)try{V.Jo(p.resolve(C.Xk))}catch(N){V.B2(N)}}; YJ=function(p,C,V,N){N=N===void 0?!1:N;if(V.indexOf(C)>-1)throw Error("Deps cycle for: "+C);if(p.C.has(C))return p.C.get(C);if(!p.T.has(C)){if(N)return;throw Error("No provider for: "+C);}N=p.T.get(C);V.push(C);if(N.L0!==void 0)var H=N.L0;else if(N.idS)H=N[xJ]?xva(p,N[xJ],V):[],H=N.idS.apply(N,g.K(H));else if(N.AO){H=N.AO;var X=H[xJ]?xva(p,H[xJ],V):[];H=new (Function.prototype.bind.apply(H,[null].concat(g.K(X))))}else throw Error("Could not resolve providers for: "+C);V.pop();N.OV_||p.C.set(C,H); return H}; xva=function(p,C,V){return C?C.map(function(N){return N instanceof oh?YJ(p,N.key,V,!0):YJ(p,N,V)}):[]}; Rh=function(){z7||(z7=new kH1);return z7}; eF=function(){var p,C;return"h5vcc"in n1&&((p=n1.h5vcc.traceEvent)==null?0:p.traceBegin)&&((C=n1.h5vcc.traceEvent)==null?0:C.traceEnd)?1:"performance"in n1&&n1.performance.mark&&n1.performance.measure?2:0}; Pl=function(p){var C=eF();switch(C){case 1:n1.h5vcc.traceEvent.traceBegin("YTLR",p);break;case 2:n1.performance.mark(p+"-start");break;case 0:break;default:N1(C,"unknown trace type")}}; YgL=function(p){var C=eF();switch(C){case 1:n1.h5vcc.traceEvent.traceEnd("YTLR",p);break;case 2:C=p+"-start";var V=p+"-end";n1.performance.mark(V);n1.performance.measure(p,C,V);break;case 0:break;default:N1(C,"unknown trace type")}}; ziu=function(p){var C,V;(V=(C=window).onerror)==null||V.call(C,p.message,"",0,0,p)}; Ria=function(p){var C=this;var V=V===void 0?0:V;var N=N===void 0?g.HW():N;this.V=V;this.scheduler=N;this.C=new g.Zt;this.T=p;for(p={rO:0};p.rO<this.T.length;p={e8:void 0,rO:p.rO},p.rO++)p.e8=this.T[p.rO],V=function(H){return function(){H.e8.hq();C.T[H.rO].g5=!0;C.T.every(function(X){return X.g5===!0})&&C.C.resolve()}}(p),N=j_(V,w$(this,p.e8)),this.T[p.rO]=Object.assign({},p.e8,{hq:V, jobId:N})}; nQS=function(p){var C=Array.from(p.T.keys()).sort(function(N,H){return w$(p,p.T[H])-w$(p,p.T[N])}); C=g.F(C);for(var V=C.next();!V.done;V=C.next())V=p.T[V.value],V.jobId===void 0||V.g5||(p.scheduler.X5(V.jobId),j_(V.hq,10))}; w$=function(p,C){var V;return(V=C.priority)!=null?V:p.V}; L1=function(p){this.state=p;this.plugins=[];this.V=void 0;this.S={};$J&&Pl(this.state)}; eiY=function(p,C){var V=C.filter(function(H){return g$(p,H)===10}),N=C.filter(function(H){return g$(p,H)!==10}); return p.S.US$?function(){var H=g.US.apply(0,arguments);return g.I(function(X){if(X.C==1)return g.y(X,p.otS.apply(p,[V].concat(g.K(H))),2);p.FY.apply(p,[N].concat(g.K(H)));g.JQ(X)})}:function(){var H=g.US.apply(0,arguments); p.dte.apply(p,[V].concat(g.K(H)));p.FY.apply(p,[N].concat(g.K(H)))}}; g$=function(p,C){var V,N;return(N=(V=p.V)!=null?V:C.priority)!=null?N:0}; Wl=function(p){$J&&p&&Pl(p)}; Qq=function(p){$J&&p&&YgL(p)}; w6Y=function(p,C,V){Pa9&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+p.constructor.name+"] '"+p.state+"' to '"+C+"'"),console.log("with message: ",V),console.groupEnd())}; r$=function(p){if(g.Zr("web_lifecycle_error_handling_killswitch"))return p();try{return p()}catch(C){ziu(C)}}; Bl=function(p){L1.call(this,p===void 0?"none":p);this.T=null;this.V=10;this.transitions=[{from:"none",Y$:"application_navigating",action:this.W},{from:"application_navigating",Y$:"none",action:this.Y},{from:"application_navigating",Y$:"application_navigating",action:function(){}}, {from:"none",Y$:"none",action:function(){}}]}; $vj=function(){G7||(G7=new Bl);return G7}; pm=function(){var p=this;this.store={};this.T=0;this.C={};this.Sr={URr:function(){return p.T}}}; Vm=function(p,C){var V=Cm(C);if(p.C[V])return p.C[V];var N=Object.keys(p.store)||[];if(N.length<=1&&Cm(C)===N[0])return N;for(var H=[],X=0;X<N.length;X++){var d=N[X].split("/");if(jG(C.auth,d[0])){var a=C.isJspb;jG(a===void 0?"undefined":a?"true":"false",d[1])&&jG(C.cttAuthInfo,d[2])&&(a=C.tier,a=a===void 0?"undefined":JSON.stringify(a),jG(a,d[3])&&H.push(N[X]))}}return p.C[V]=H}; jG=function(p,C){return p===void 0||p==="undefined"?!0:p===C}; Cm=function(p){return[p.auth===void 0?"undefined":p.auth,p.isJspb===void 0?"undefined":p.isJspb,p.cttAuthInfo===void 0?"undefined":p.cttAuthInfo,p.tier===void 0?"undefined":p.tier].join("/")}; NY=function(){this.S=this.T=this.C=0;this.V=!1}; HQ=function(){var p=g.zV("yt.logging.ims");p||(p=new pm,g.YH("yt.logging.ims",p));return p}; W2S=function(){if(x8L()&&!L2X){var p=function(V){V=V.data;if(V.op==="serializedGelBatch"){var N=XI.get(V.key);N&&(gQS(V.serializedBatch,N.client,N.resolve,N.networklessOptions,N.isIsolated,N.useVSSEndpoint,N.dangerousLogToVisitorSession,N.requestsOutstanding),XI.delete(V.key))}},C=Yp(); C&&(C.addEventListener("message",p),C.onerror=function(){XI.clear()}); L2X=!0}}; C1v=function(p,C){if(p.endpoint==="log_event"){d7(p);var V=iz(p),N=Q6y(p.payload)||"",H=rpY(N),X=200;if(H){if(H.enabled===!1&&!g.Zr("web_payload_policy_disabled_killswitch"))return;X=BfH(H.tier);if(X===400){GHY(p,C);return}}hG[V]=!0;H={cttAuthInfo:V,isJspb:!1,tier:X};HQ().storePayload(H,p.payload);pdS(C,V,!1,H,sK(N))}}; VeS=function(p,C,V){if(C.endpoint==="log_event"){d7(void 0,C);var N=iz(C,!0),H=rpY(p),X=200;if(H){if(H.enabled===!1&&!g.Zr("web_payload_policy_disabled_killswitch"))return;X=BfH(H.tier);if(X===400){jKj(p,C,V);return}}hG[N]=!0;H={cttAuthInfo:N,isJspb:!0,tier:X};HQ().storePayload(H,$V(C.payload));pdS(V,N,!0,H,sK(p))}}; pdS=function(p,C,V,N,H){function X(){aW({writeThenSend:!0},g.Zr("flush_only_full_queue")?C:void 0,V,N.tier)} V=V===void 0?!1:V;H=H===void 0?!1:H;p&&(EK=new p);p=g.Uk("tvhtml5_logging_max_batch_ads_fork")||g.Uk("tvhtml5_logging_max_batch")||g.Uk("web_logging_max_batch")||100;var d=(0,g.Ip)(),a=lz(V,N.tier),E=a.S;H&&(a.V=!0);H=0;N&&(H=HQ().getSequenceCount(N));H>=1E3?X():H>=p?tG||(tG=cQ(function(){X();tG=void 0},0)):d-E>=10&&(NmY(V,N.tier),a.S=d)}; GHY=function(p,C){if(p.endpoint==="log_event"){g.Zr("more_accurate_gel_parser")&&HQ().storePayload({isJspb:!1},p.payload);d7(p);var V=iz(p),N=new Map;N.set(V,[p.payload]);var H=Q6y(p.payload)||"";C&&(EK=new C);return new g.um(function(X,d){EK&&EK.isReady()?Tj(N,EK,X,d,{bypassNetworkless:!0},!0,sK(H)):X()})}}; jKj=function(p,C,V){if(C.endpoint==="log_event"){d7(void 0,C);var N=iz(C,!0),H=new Map;H.set(N,[$V(C.payload)]);V&&(EK=new V);return new g.um(function(X){EK&&EK.isReady()?MY(H,EK,X,{bypassNetworkless:!0},!0,sK(p)):X()})}}; iz=function(p,C){var V="";if(p.dangerousLogToVisitorSession)V="visitorOnlyApprovedKey";else if(p.cttAuthInfo){if(C===void 0?0:C){C=p.cttAuthInfo.token;V=p.cttAuthInfo;var N=new rf;V.videoId?N.setVideoId(V.videoId):V.playlistId&&jq(N,2,JG,Jc(V.playlistId));mh[C]=N}else C=p.cttAuthInfo,V={},C.videoId?V.videoId=C.videoId:C.playlistId&&(V.playlistId=C.playlistId),vQ[p.cttAuthInfo.token]=V;V=p.cttAuthInfo.token}return V}; aW=function(p,C,V,N){p=p===void 0?{}:p;V=V===void 0?!1:V;new g.um(function(H,X){var d=lz(V,N),a=d.V;d.V=!1;FI(d.C);FI(d.T);d.T=0;EK&&EK.isReady()?N===void 0&&g.Zr("enable_web_tiered_gel")?HO1(H,X,p,C,V,300,a):HO1(H,X,p,C,V,N,a):(NmY(V,N),H())})}; HO1=function(p,C,V,N,H,X,d){var a=EK;V=V===void 0?{}:V;H=H===void 0?!1:H;X=X===void 0?200:X;d=d===void 0?!1:d;var E=new Map,l=new Map,t={isJspb:H,cttAuthInfo:N,tier:X},c={isJspb:H,cttAuthInfo:N};if(N!==void 0)H?(C=g.Zr("enable_web_tiered_gel")?HQ().smartExtractMatchingEntries({keys:[t,c],sizeLimit:1E3}):HQ().extractMatchingEntries(c),E.set(N,C),MY(E,a,p,V,!1,d)):(E=g.Zr("enable_web_tiered_gel")?HQ().smartExtractMatchingEntries({keys:[t,c],sizeLimit:1E3}):HQ().extractMatchingEntries(c),l.set(N,E), Tj(l,a,p,C,V,!1,d));else if(H){C=g.F(Object.keys(hG));for(l=C.next();!l.done;l=C.next())l=l.value,X=g.Zr("enable_web_tiered_gel")?HQ().smartExtractMatchingEntries({keys:[t,c],sizeLimit:1E3}):HQ().extractMatchingEntries({isJspb:!0,cttAuthInfo:l}),X.length>0&&E.set(l,X),(g.Zr("web_fp_via_jspb_and_json")&&V.writeThenSend||!g.Zr("web_fp_via_jspb_and_json"))&&delete hG[l];MY(E,a,p,V,!1,d)}else{E=g.F(Object.keys(hG));for(t=E.next();!t.done;t=E.next())t=t.value,c=g.Zr("enable_web_tiered_gel")?HQ().smartExtractMatchingEntries({keys:[{isJspb:!1, cttAuthInfo:t,tier:X},{isJspb:!1,cttAuthInfo:t}],sizeLimit:1E3}):HQ().extractMatchingEntries({isJspb:!1,cttAuthInfo:t}),c.length>0&&l.set(t,c),(g.Zr("web_fp_via_jspb_and_json")&&V.writeThenSend||!g.Zr("web_fp_via_jspb_and_json"))&&delete hG[t];Tj(l,a,p,C,V,!1,d)}}; NmY=function(p,C){function V(){aW({writeThenSend:!0},void 0,p,C)} p=p===void 0?!1:p;C=C===void 0?200:C;var N=lz(p,C),H=N===XdH||N===dU1?5E3:iOj;g.Zr("web_gel_timeout_cap")&&!N.T&&(H=cQ(function(){V()},H),N.T=H); FI(N.C);H=g.pO("LOGGING_BATCH_TIMEOUT",g.Uk("web_gel_debounce_ms",1E4));g.Zr("shorten_initial_gel_batch_timeout")&&SG&&(H=hrH);H=cQ(function(){g.Uk("gel_min_batch_size")>0?HQ().getSequenceCount({cttAuthInfo:void 0,isJspb:p,tier:C})>=sKQ&&V():V()},H); N.C=H}; Tj=function(p,C,V,N,H,X,d){H=H===void 0?{}:H;var a=Math.round((0,g.Ip)()),E=p.size,l=ar9(d);p=g.F(p);var t=p.next();for(d={};!t.done;d={yd:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,yJ:void 0,zl:void 0},t=p.next()){var c=g.F(t.value);t=c.next().value;c=c.next().value;d.batchRequest=g.Ra({context:g.T1(C.config_||g.cC())});if(!g.ea(c)&&!g.Zr("throw_err_when_logevent_malformed_killswitch")){N();break}d.batchRequest.events=c;(c=vQ[t])&&EDL(d.batchRequest,t,c);delete vQ[t];d.dangerousLogToVisitorSession= t==="visitorOnlyApprovedKey";lrH(d.batchRequest,a,d.dangerousLogToVisitorSession);tev(H);d.yJ=function(T){g.Zr("start_client_gcf")&&g.rE.Lx(function(){return g.I(function(M){return g.y(M,cwv(T),0)})}); E--;E||V()}; d.yd=0;d.zl=function(T){return function(){T.yd++;if(H.bypassNetworkless&&T.yd===1)try{g.ah(C,l,T.batchRequest,Km({writeThenSend:!0},T.dangerousLogToVisitorSession,T.yJ,T.zl,X)),SG=!1}catch(M){g.Vg(M),N()}E--;E||V()}}(d); try{g.ah(C,l,d.batchRequest,Km(H,d.dangerousLogToVisitorSession,d.yJ,d.zl,X)),SG=!1}catch(T){g.Vg(T),N()}}}; MY=function(p,C,V,N,H,X){N=N===void 0?{}:N;var d=Math.round((0,g.Ip)()),a={value:p.size},E=new Map([].concat(g.K(p)));E=g.F(E);for(var l=E.next();!l.done;l=E.next()){var t=g.F(l.value).next().value,c=p.get(t);l=new $KH;var T=C.config_||g.cC(),M=new e7,J=new o6;mM(J,1,T.CP);mM(J,2,T.nP);Fa(J,16,T.o4);mM(J,17,T.innertubeContextClientVersion);if(T.OM){var S=T.OM,D=new ba;S.coldConfigData&&mM(D,1,S.coldConfigData);S.appInstallData&&mM(D,6,S.appInstallData);S.coldHashData&&mM(D,3,S.coldHashData);S.hotHashData&& D.Tf(S.hotHashData);hP(J,ba,62,D)}(S=g.xH.devicePixelRatio)&&S!=1&&RO(J,65,HT(S));S=fO();S!==""&&mM(J,54,S);S=Ok();if(S.length>0){D=new YQ;for(var Z=0;Z<S.length;Z++){var f=new kQ;mM(f,1,S[Z].key);jq(f,2,Tm1,Jc(S[Z].value));at(D,15,kQ,f)}hP(M,YQ,5,D)}vFX(T,J);Fl9(M);Sd1(J);KlQ(T,J);D8H(J);g.Zr("start_client_gcf")&&uV1(J);g.pO("DELEGATED_SESSION_ID")&&!g.Zr("pageid_as_header_web")&&(T=new nd,mM(T,3,g.pO("DELEGATED_SESSION_ID")));!g.Zr("fill_delegate_context_in_gel_killswitch")&&(S=g.pO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&& (D=iB(M,nd,3)||new nd,T=M,S=mM(D,18,S),hP(T,nd,3,S));T=J;S=g.F(Object.entries(i1(g.pO("DEVICE",""))));for(D=S.next();!D.done;D=S.next())Z=g.F(D.value),D=Z.next().value,Z=Z.next().value,D==="cbrand"?mM(T,12,Z):D==="cmodel"?mM(T,13,Z):D==="cbr"?mM(T,87,Z):D==="cbrver"?mM(T,88,Z):D==="cos"?mM(T,18,Z):D==="cosver"?mM(T,19,Z):D==="cplatform"&&Fa(T,42,NE1(Z));M.Ll(J);hP(l,e7,1,M);if(J=mh[t])a:{if(J.qg())M=1;else if(J.getPlaylistId())M=2;else break a;hP(l,rf,4,J);J=iB(l,e7,1)||new e7;T=iB(J,nd,3)||new nd; S=new R6;S.setToken(t);Fa(S,1,M);at(T,12,R6,S);hP(J,nd,3,T)}delete mh[t];t=t==="visitorOnlyApprovedKey";DE()||JP(l,2,d);!t&&(M=g.pO("EVENT_ID"))&&(J=Mea(),T=new QJ,mM(T,1,M),JP(T,2,J),hP(l,QJ,5,T));tev(N);if(g.Zr("jspb_serialize_with_worker")&&(M=Yp())&&N.writeThenSend){XI.set(uz,{client:C,resolve:V,networklessOptions:N,isIsolated:H,useVSSEndpoint:X,dangerousLogToVisitorSession:t,requestsOutstanding:a});M.postMessage({op:"gelBatchToSerialize",batchRequest:$V(l),clientEvents:c,key:uz});uz++;break}if(c){M= [];for(J=0;J<c.length;J++)try{M.push(new W6(c[J]))}catch(q){g.Vg(new g.Bw("Transport failed to deserialize "+String(c[J])))}c=M}else c=[];c=g.F(c);for(M=c.next();!M.done;M=c.next())at(l,3,W6,M.value);c={startTime:(0,g.Ip)(),ticks:{},infos:{}};l=l.c6();c.ticks.geljspc=(0,g.Ip)();g.Zr("log_jspb_serialize_latency")&&ox("gel_jspb_serialize",c,{sampleRate:.1});gQS(l,C,V,N,H,X,t,a)}}; gQS=function(p,C,V,N,H,X,d,a){N=N===void 0?{}:N;a=a===void 0?{value:0}:a;X=ar9(X);N=Km(N,d,function(E){g.Zr("start_client_gcf")&&g.rE.Lx(function(){return g.I(function(l){return g.y(l,cwv(E),0)})}); a.value--;a.value||V()},function(){a.value--; a.value||V()},H); N.headers["Content-Type"]="application/json+protobuf";N.postBodyFormat="JSPB";N.postBody=p;g.ah(C,X,"",N);SG=!1}; tev=function(p){g.Zr("always_send_and_write")&&(p.writeThenSend=!1)}; Km=function(p,C,V,N,H){p={retry:!0,onSuccess:V,onError:N,networklessOptions:p,dangerousLogToVisitorSession:C,UXr:!!H,headers:{},postBodyFormat:"",postBody:"",compress:g.Zr("compress_gel")||g.Zr("compress_gel_lr")};DE()&&(p.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Ip)())));return p}; lrH=function(p,C,V){DE()||(p.requestTimeMs=String(C));g.Zr("unsplit_gel_payloads_in_logs")&&(p.unsplitGelPayloadsInLogs=!0);!V&&(C=g.pO("EVENT_ID"))&&(V=Mea(),p.serializedClientEventId={serializedEventId:C,clientCounter:String(V)})}; Mea=function(){var p=g.pO("BATCH_CLIENT_COUNTER")||0;p||(p=Math.floor(Math.random()*65535/2));p++;p>65535&&(p=1);GH("BATCH_CLIENT_COUNTER",p);return p}; EDL=function(p,C,V){if(V.videoId)var N="VIDEO";else if(V.playlistId)N="PLAYLIST";else return;p.credentialTransferTokenTargetId=V;p.context=p.context||{};p.context.user=p.context.user||{};p.context.user.credentialTransferTokens=[{token:C,scope:N}]}; d7=function(p,C){if(!g.zV("yt.logging.transport.enableScrapingForTest")){var V=u1("il_payload_scraping");if((V!==void 0?String(V):"")==="enable_il_payload_scraping")ZE=[],g.YH("yt.logging.transport.enableScrapingForTest",!0),g.YH("yt.logging.transport.scrapedPayloadsForTesting",ZE),g.YH("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.YH("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.YH("yt.logging.transport.scrapeClientEvent",!0);else return}V=g.zV("yt.logging.transport.scrapedPayloadsForTesting");var N=g.zV("yt.logging.transport.payloadToScrape");C&&(C=C.payload,(C=g.zV("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(C)())&&V.push(C));C=g.zV("yt.logging.transport.scrapeClientEvent");if(N&&N.length>=1)for(var H=0;H<N.length;H++)if(p&&p.payload[N[H]])if(C)V.push(p.payload);else{var X=void 0;V.push(((X=p)==null?void 0:X.payload)[N[H]])}g.YH("yt.logging.transport.scrapedPayloadsForTesting", V)}; DE=function(){return g.Zr("use_request_time_ms_header")||g.Zr("lr_use_request_time_ms_header")}; cQ=function(p,C){return g.Zr("transport_use_scheduler")===!1?g.F5(p,C):g.Zr("logging_avoid_blocking_during_navigation")||g.Zr("lr_logging_avoid_blocking_during_navigation")?g.Vl(0,function(){if($vj().currentState==="none")p();else{var V={};$vj().install((V.none={callback:p},V))}},C):j_(p,0,C)}; FI=function(p){g.Zr("transport_use_scheduler")?g.rE.X5(p):g.KO(p)}; cwv=function(p){var C,V,N,H,X,d,a,E,l,t;return g.I(function(c){return c.C==1?(N=(C=p)==null?void 0:(V=C.responseContext)==null?void 0:V.globalConfigGroup,H=g.n(N,Jws),d=(X=N)==null?void 0:X.hotHashData,a=g.n(N,mUS),l=(E=N)==null?void 0:E.coldHashData,(t=Rh().resolve(new oh(lR)))?d?H?g.y(c,T0a(t,d,H),2):g.y(c,T0a(t,d),2):c.EY(2):c.return()):l?a?g.y(c,MJs(t,l,a),0):g.y(c,MJs(t,l),0):c.EY(0)})}; lz=function(p,C){C=C===void 0?200:C;return p?C===300?XdH:vDj:C===300?dU1:F1S}; rpY=function(p){if(g.Zr("enable_web_tiered_gel")){p=SkY[p||""];var C,V,N,H=Rh().resolve(new oh(lR))==null?void 0:(C=tN())==null?void 0:(V=C.loggingHotConfig)==null?void 0:(N=V.eventLoggingConfig)==null?void 0:N.payloadPolicies;if(H)for(C=0;C<H.length;C++)if(H[C].payloadNumber===p)return H[C]}}; Q6y=function(p){p=Object.keys(p);p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(C=C.value,SkY[C])return C}; BfH=function(p){switch(p){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}}; sK=function(p){return p==="gelDebuggingEvent"}; ar9=function(p){return(p===void 0?0:p)&&g.Zr("vss_through_gel_video_stats")?"video_stats":"log_event"}; fm=function(p,C,V,N){N=N===void 0?{}:N;var H={},X=Math.round(N.timestamp||(0,g.Ip)());H.eventTimeMs=X<Number.MAX_SAFE_INTEGER?X:0;H[p]=C;p=bV();H.context={lastActivityMs:String(N.timestamp||!isFinite(p)?-1:p)};N.sequenceGroup&&!g.Zr("web_gel_sequence_info_killswitch")&&(p=H.context,C=N.sequenceGroup,C={index:K1a(C),groupKey:C},p.sequence=C,N.endOfSequence&&delete UK[N.sequenceGroup]);(N.sendIsolatedPayload?GHY:C1v)({endpoint:"log_event",payload:H,cttAuthInfo:N.cttAuthInfo,dangerousLogToVisitorSession:N.dangerousLogToVisitorSession}, V)}; DUQ=function(p){aW(void 0,void 0,p===void 0?!1:p)}; K1a=function(p){UK[p]=p in UK?UK[p]+1:0;return UK[p]}; g.t1=function(p,C,V){V=V===void 0?{}:V;var N=g.sI;g.pO("ytLoggingEventsDefaultDisabled",!1)&&g.sI===g.sI&&(N=null);fm(p,C,N,V)}; OK=function(p){this.T=p}; g.ym=function(p){return new OK({trackingParams:p})}; ZOj=function(p){var C=u5Y++;return new OK({veType:p,veCounter:C,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})}; UUV=function(p){return g.pO("client-screen-nonce-store",{})[p===void 0?0:p]}; fru=function(p,C){C=C===void 0?0:C;var V=g.pO("client-screen-nonce-store");V||(V={},GH("client-screen-nonce-store",V));V[C]=p}; qY=function(p){p=p===void 0?0:p;return p===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+p}; OOY=function(p){return g.pO(qY(p===void 0?0:p))}; g.IW=function(p){return(p=OOY(p===void 0?0:p))?new OK({veType:p,youtubeData:void 0,jspbYoutubeData:void 0}):null}; ywy=function(){var p=g.pO("csn-to-ctt-auth-info");p||(p={},GH("csn-to-ctt-auth-info",p));return p}; qk1=function(){return Object.values(g.pO("client-screen-nonce-store",{})).filter(function(p){return p!==void 0})}; g.bz=function(p){p=UUV(p===void 0?0:p);if(!p&&!g.pO("USE_CSN_FALLBACK",!0))return null;p||(p="UNDEFINED_CSN");return p?p:null}; bOu=function(p){for(var C=g.F(Object.values(IrV)),V=C.next();!V.done;V=C.next())if(g.bz(V.value)===p)return!0;return!1}; Awa=function(p,C,V){var N=ywy();(V=g.bz(V))&&delete N[V];C&&(N[p]=C)}; AG=function(p){return ywy()[p]}; kQS=function(p,C,V,N){V=V===void 0?0:V;if(p!==UUV(V)||C!==g.pO(qY(V)))if(Awa(p,N,V),fru(p,V),GH(qY(V),C),C=function(){setTimeout(function(){p&&g.t1("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:oDV,clientScreenNonce:p})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(C)}catch(H){C()}else C()}; oW=function(p,C){var V=V===void 0?!0:V;var N=g.pO("VALID_SESSION_TEMPDATA_DOMAINS",[]),H=g.LJ(window.location.href);H&&N.push(H);H=g.LJ(p);if(g.W5(N,H)||!H&&v5(p,"/"))if(N=document.createElement("a"),g.el(N,p),p=N.href)if(p=gA(p),p=UXv(p))if(V&&!C.csn&&(C.itct||C.ved)&&(C=Object.assign({csn:g.bz()},C)),X){var X=parseInt(X,10);isFinite(X)&&X>0&&xUL(p,C,X)}else xUL(p,C)}; xUL=function(p,C,V){p=Yky(p);C=C?g.BX(C):"";V=V||5;d8()&&g.nO(p,C,V)}; Yky=function(p){for(var C=g.F(zre),V=C.next();!V.done;V=C.next())p=jE(p,V.value);return"ST-"+ic(p).toString(36)}; RrQ=function(p){if(p.name==="JavaException")return!0;p=p.stack;return p.includes("chrome://")||p.includes("chrome-extension://")||p.includes("moz-extension://")}; nDL=function(){this.y8=[];this.YE=[]}; xG=function(){if(!kG){var p=kG=new nDL;p.YE.length=0;p.y8.length=0;erj(p,P19)}return kG}; erj=function(p,C){C.YE&&p.YE.push.apply(p.YE,C.YE);C.y8&&p.y8.push.apply(p.y8,C.y8)}; wdj=function(p){function C(){return p.charCodeAt(N++)} var V=p.length,N=0;do{var H=YG(C);if(H===Infinity)break;var X=H>>3;switch(H&7){case 0:H=YG(C);if(X===2)return H;break;case 1:if(X===2)return;N+=8;break;case 2:H=YG(C);if(X===2)return p.substr(N,H);N+=H;break;case 5:if(X===2)return;N+=4;break;default:return}}while(N<V)}; YG=function(p){var C=p(),V=C&127;if(C<128)return V;C=p();V|=(C&127)<<7;if(C<128)return V;C=p();V|=(C&127)<<14;if(C<128)return V;C=p();return C<128?V|(C&127)<<21:Infinity}; $UX=function(p,C,V,N){if(p)if(Array.isArray(p)){var H=N;for(N=0;N<p.length&&!(p[N]&&(H+=zj(N,p[N],C,V),H>500));N++);N=H}else if(typeof p==="object")for(H in p){if(p[H]){var X=H;var d=p[H],a=C,E=V;X=typeof d!=="string"||X!=="clickTrackingParams"&&X!=="trackingParams"?0:(d=wdj(atob(d.replace(/-/g,"+").replace(/_/g,"/"))))?zj(X+".ve",d,a,E):0;N+=X;N+=zj(H,p[H],C,V);if(N>500)break}}else V[C]=RW(p),N+=V[C].length;else V[C]=RW(p),N+=V[C].length;return N}; zj=function(p,C,V,N){V+="."+p;p=RW(C);N[V]=p;return V.length+p.length}; RW=function(p){try{return(typeof p==="string"?p:String(JSON.stringify(p))).substr(0,500)}catch(C){return"unable to serialize "+typeof p+" ("+C.message+")"}}; lN=function(p){g.nm(p)}; g.eG=function(p){g.nm(p,"WARNING")}; g.nm=function(p,C){var V=V===void 0?{}:V;V.name=g.pO("INNERTUBE_CONTEXT_CLIENT_NAME",1);V.version=g.pO("INNERTUBE_CONTEXT_CLIENT_VERSION");C=C===void 0?"ERROR":C;var N=!1;C=C===void 0?"ERROR":C;N=N===void 0?!1:N;if(p){p.hasOwnProperty("level")&&p.level&&(C=p.level);if(g.Zr("console_log_js_exceptions")){var H=[];H.push("Name: "+p.name);H.push("Message: "+p.message);p.hasOwnProperty("params")&&H.push("Error Params: "+JSON.stringify(p.params));p.hasOwnProperty("args")&&H.push("Error args: "+JSON.stringify(p.args)); H.push("File name: "+p.fileName);H.push("Stacktrace: "+p.stack);window.console.log(H.join("\n"),p)}if(!(L1V>=5)){H=gD9;var X=b_u(p),d=X.message||"Unknown Error",a=X.name||"UnknownError",E=X.stack||p.C||"Not available";if(E.startsWith(a+": "+d)){var l=E.split("\n");l.shift();E=l.join("\n")}l=X.lineNumber||"Not available";X=X.fileName||"Not available";var t=0;if(p.hasOwnProperty("args")&&p.args&&p.args.length)for(var c=0;c<p.args.length&&!(t=$UX(p.args[c],"params."+c,V,t),t>=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<H.length&&!(t=$UX(H[c],"params.context."+c,V,t),t>=500);c++);navigator.vendor&&!V.hasOwnProperty("vendor")&&(V["device.vendor"]=navigator.vendor);V={message:d,name:a,lineNumber:l,fileName:X,stack:E,params:V,sampleWeight:1};H=Number(p.columnNumber);isNaN(H)||(V.lineNumber=V.lineNumber+":"+H);if(p.level==="IGNORED")p= 0;else a:{p=xG();H=g.F(p.YE);for(d=H.next();!d.done;d=H.next())if(d=d.value,V.message&&V.message.match(d.Rn)){p=d.weight;break a}p=g.F(p.y8);for(H=p.next();!H.done;H=p.next())if(H=H.value,H.callback(V)){p=H.weight;break a}p=1}V.sampleWeight=p;p=g.F(W1Q);for(H=p.next();!H.done;H=p.next())if(H=H.value,H.hT[V.name])for(a=g.F(H.hT[V.name]),d=a.next();!d.done;d=a.next())if(c=d.value,d=V.message.match(c.hX)){V.params["params.error.original"]=d[0];a=c.groups;c={};for(l=0;l<a.length;l++)c[a[l]]=d[l+1],V.params["params.error."+ a[l]]=d[l+1];V.message=H.Jq(c);break}V.params||(V.params={});p=xG();V.params["params.errorServiceSignature"]="msg="+p.YE.length+"&cb="+p.y8.length;V.params["params.serviceWorker"]="false";g.xH.document&&g.xH.document.querySelectorAll&&(V.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new PG(eg,"sample")).constructor!==PG&&(V.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(V);if(V.sampleWeight!==0&&!QK9.has(V.message)){if(N&& g.Zr("web_enable_error_204"))rwu(C===void 0?"ERROR":C,V);else{C=C===void 0?"ERROR":C;C==="ERROR"?(PQ.publish("handleError",V),g.Zr("record_app_crashed_web")&&BmL===0&&V.sampleWeight===1&&(BmL++,N={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.Zr("report_client_error_with_app_crash_ks")||(N.systemHealth={crashData:{clientError:{logMessage:{message:V.message}}}}),g.t1("appCrashed",N)),GQV++):C==="WARNING"&&PQ.publish("handleWarning",V);if(g.Zr("kevlar_gel_error_routing")){N=C;p=void 0;p=p===void 0?{}:p; b:{H=g.F(pwu);for(d=H.next();!d.done;d=H.next())if(g.gm(d.value.toLowerCase())){H=!0;break b}H=!1}if(H)p=void 0;else{d={stackTrace:V.stack};V.fileName&&(d.filename=V.fileName);H=V.lineNumber&&V.lineNumber.split?V.lineNumber.split(":"):[];H.length!==0&&(H.length!==1||isNaN(Number(H[0]))?H.length!==2||isNaN(Number(H[0]))||isNaN(Number(H[1]))||(d.lineNumber=Number(H[0]),d.columnNumber=Number(H[1])):d.lineNumber=Number(H[0]));H={level:"ERROR_LEVEL_UNKNOWN",message:V.message,errorClassName:V.name,sampleWeight:V.sampleWeight}; N==="ERROR"?H.level="ERROR_LEVEL_ERROR":N==="WARNING"&&(H.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:d};p.pageUrl=window.location.href;p.kvPairs=[];g.pO("FEXP_EXPERIMENTS")&&(p.experimentIds=g.pO("FEXP_EXPERIMENTS"));a=g.pO("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!CO("web_disable_gel_stp_ecatcher_killswitch")&&a)for(c=g.F(Object.keys(a)),l=c.next();!l.done;l=c.next())l=l.value,p.kvPairs.push({key:l,value:String(a[l])});if(a=V.params)for(c=g.F(Object.keys(a)),l=c.next();!l.done;l= c.next())l=l.value,p.kvPairs.push({key:"client."+l,value:String(a[l])});a=g.pO("SERVER_NAME");c=g.pO("SERVER_VERSION");a&&c&&(p.kvPairs.push({key:"server.name",value:a}),p.kvPairs.push({key:"server.version",value:c}));p={errorMetadata:p,stackTrace:d,logMessage:H}}if(p&&(g.t1("clientError",p),N==="ERROR"||g.Zr("errors_flush_gel_always_killswitch")))a:{if(g.Zr("web_fp_via_jspb")){N=!0;N=N===void 0?!1:N;p=COL;COL=[];if(p)for(p=g.F(p),H=p.next();!H.done;H=p.next())H=H.value,N?fm(H.payloadName,H.payload, g.sI,H.options):g.t1(H.payloadName,H.payload,H.options);DUQ(!0);if(!g.Zr("web_fp_via_jspb_and_json"))break a}DUQ()}}g.Zr("suppress_error_204_logging")||rwu(C,V)}try{QK9.add(V.message)}catch(S){}L1V++}}}}; rwu=function(p,C){var V=C.params||{};p={urlParams:{a:"logerror",t:"jserror",type:C.name,msg:C.message.substr(0,250),line:C.lineNumber,level:p,"client.name":V.name},postParams:{url:g.pO("PAGE_NAME",window.location.href),file:C.fileName},method:"POST"};V.version&&(p["client.version"]=V.version);if(p.postParams){C.stack&&(p.postParams.stack=C.stack);C=g.F(Object.keys(V));for(var N=C.next();!N.done;N=C.next())N=N.value,p.postParams["client."+N]=V[N];if(V=g.pO("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(C= g.F(Object.keys(V)),N=C.next();!N.done;N=C.next())N=N.value,p.postParams[N]=V[N];V=g.pO("SERVER_NAME");C=g.pO("SERVER_VERSION");V&&C&&(p.postParams["server.name"]=V,p.postParams["server.version"]=C)}g.qU(g.pO("ECATCHER_REPORT_HOST","")+"/error_204",p)}; j_a=function(p){var C=g.US.apply(1,arguments);p.args||(p.args=[]);p.args.push.apply(p.args,g.K(C))}; Lm=function(p){var C=g.n(p,w7);if(C)return C;if((C=g.n(p,Vzy))&&C.commands)return N8v(C.commands);if((C=g.n(p,HKQ))&&C.commands)return N8v(C.commands);if((p=g.n(p,Xwa))&&p.identifier&&p.command&&($G||($G=[]),!$G.includes(p.identifier)))return $G.push(p.identifier),g.n(p.command,w7)}; N8v=function(p){if(p.length!==0){var C=[];p=g.F(p);for(var V=p.next();!V.done;V=p.next())(V=Lm(V.value))&&C.push(V);return{commandExecutorCommand:{commands:C}}}}; g.g7=function(p,C,V){V===void 0?delete p[C.name]:p[C.name]=V}; d5S=function(p){for(var C=0,V=0;V<p.length;V++)C=C*31+p.charCodeAt(V),V<p.length-1&&(C%=0x800000000000);return C%1E5}; WQ=function(p){uR.call(this,1,arguments);this.csn=p}; h8X=function(p,C,V,N,H,X,d,a){var E=iKa(),l=new OK({veType:C,youtubeData:X,jspbYoutubeData:void 0});X=Qm({},E);H&&(X.cttAuthInfo=H);H={csn:E,pageVe:l.getAsJson()};g.Zr("expectation_logging")&&a&&a.screenCreatedLoggingExpectations&&(H.screenCreatedLoggingExpectations=a.screenCreatedLoggingExpectations);V&&V.visualElement?(H.implicitGesture={parentCsn:V.clientScreenNonce,gesturedVe:V.visualElement.getAsJson()},d&&(H.implicitGesture.gestureType=d)):V&&g.eG(new g.Bw("newScreen() parent element does not have a VE - rootVe", C));N&&(H.cloneCsn=N);p?fm("screenCreated",H,p,X):g.t1("screenCreated",H,X);Ix(yk1,new WQ(E));r7.clear();BQ.clear();Gj.clear();return E}; g.Cq=function(p,C,V,N,H){g.pq(p,C,V,[N],H===void 0?!1:H)}; g.pq=function(p,C,V,N,H){H=H===void 0?!1:H;for(var X=Qm({cttAuthInfo:AG(C)||void 0},C),d=g.F(N),a=d.next();!a.done;a=d.next()){a=a.value;var E=a.getAsJson();(g.k5(E)||!E.trackingParams&&!E.veType)&&g.eG(Error("Child VE logged with no data"));if(g.Zr("no_client_ve_attach_unless_shown")){var l=jp(a,C);if(E.veType&&!BQ.has(l)&&!Gj.has(l)&&!H){if(!g.Zr("il_attach_cache_limit")||r7.size<1E3){r7.set(l,[p,C,V,a]);return}g.Zr("il_attach_cache_limit")&&r7.size>1E3&&g.eG(new g.Bw("IL Attach cache exceeded limit"))}a= jp(V,C);r7.has(a)?VD(V,C):Gj.set(a,!0)}}N=N.filter(function(t){t.csn!==C?(t.csn=C,t=!0):t=!1;return t}); V={csn:C,parentVe:V.getAsJson(),childVes:g.AU(N,function(t){return t.getAsJson()})}; C==="UNDEFINED_CSN"?Ny("visualElementAttached",X,V):p?fm("visualElementAttached",V,p,X):g.t1("visualElementAttached",V,X)}; s_H=function(p,C,V,N,H){Ha(V,C);N=Qm({cttAuthInfo:AG(C)||void 0},C);V={csn:C,ve:V.getAsJson(),eventType:1};H&&(V.clientData=H);C==="UNDEFINED_CSN"?Ny("visualElementShown",N,V):p?fm("visualElementShown",V,p,N):g.t1("visualElementShown",V,N)}; a3S=function(p,C,V,N){var H=(N=N===void 0?!1:N)?16:8;N=Qm({cttAuthInfo:AG(C)||void 0,endOfSequence:N},C);V={csn:C,ve:V.getAsJson(),eventType:H};C==="UNDEFINED_CSN"?Ny("visualElementHidden",N,V):p?fm("visualElementHidden",V,p,N):g.t1("visualElementHidden",V,N)}; ElQ=function(p,C,V,N,H){Xi(p,C,V,void 0,N,H)}; Xi=function(p,C,V,N,H){Ha(V,C);N=N||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var X=Qm({cttAuthInfo:AG(C)||void 0},C);V={csn:C,ve:V.getAsJson(),gestureType:N};H&&(V.clientData=H);C==="UNDEFINED_CSN"?Ny("visualElementGestured",X,V):p?fm("visualElementGestured",V,p,X):g.t1("visualElementGestured",V,X)}; l3H=function(){var p=f1(16);for(var C=[],V=0;V<p.length;V++)C.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(p[V]&63));return C.join("")}; Ny=function(p,C,V){de.push({payloadName:p,payload:V,UrY:void 0,options:C});iq||(iq=oFv())}; bgs=function(p){if(de){for(var C=g.F(de),V=C.next();!V.done;V=C.next())V=V.value,V.payload&&(V.payload.csn=p.csn,g.t1(V.payloadName,V.payload,V.options));de.length=0}iq=0}; jp=function(p,C){return""+p.getAsJson().veType+p.getAsJson().veCounter+C}; Ha=function(p,C){if(g.Zr("no_client_ve_attach_unless_shown")){var V=jp(p,C);BQ.set(V,!0);VD(p,C)}}; VD=function(p,C){p=jp(p,C);r7.has(p)&&(C=r7.get(p)||[],g.Cq(C[0],C[1],C[2],C[3],!0),r7.delete(p))}; Qm=function(p,C){g.Zr("log_sequence_info_on_gel_web")&&(p.sequenceGroup=C);return p}; g.hO=function(p,C,V,N){g.NU(s_H)(void 0,p,C,V,N,void 0)}; g.sy=function(p,C){g.NU(function(){g.lr(C,function(V){Ha(V,p);var N=Qm({cttAuthInfo:AG(p)||void 0},p);V={csn:p,ve:V.getAsJson(),eventType:4};p==="UNDEFINED_CSN"?Ny("visualElementShown",N,V):g.t1("visualElementShown",V,N)})})()}; g.aS=function(p,C){g.NU(function(){g.lr(C,function(V){a3S(void 0,p,V)})})()}; g.Ey=function(p,C,V){g.NU(ElQ)(void 0,p,C,V,void 0)}; tO=function(p,C,V,N,H,X){V=V===void 0?{}:V;this.componentType=p;this.renderer=C===void 0?null:C;this.macros=V;this.layoutId=N;this.interactionLoggingClientData=H;this.T=X;this.id=lq(p)}; lq=function(p){var C=":"+(Lg.getInstance().T++).toString(36);return p+C}; g.ca=function(p){p=p===void 0?!1:p;g.Y.call(this);this.Nw=new g.IL(p);g.R(this,this.Nw)}; g.TB=function(p,C,V){for(var N in C)p.subscribe(N,C[N],V)}; My=function(p,C,V){for(var N in C)p.unsubscribe(N,C[N],V)}; JO=function(){var p="ytp-id-"+tzY.toString();tzY++;return p}; g.mz=function(p){g.Y.call(this);this.Wc={};this.o6={};this.element=this.createElement(p)}; va=function(p,C,V,N){if(N.substring(0,2)==="{{")p.o6[N]=[C,V];else return N}; cmV=function(p,C){var V=[];if(!C)return V;C=g.F(C);for(var N=C.next();!N.done;N=C.next())if(N=N.value,N!=null){var H=N.nodeType;H===1||H===3?V.push(N):N&&typeof N.L==="string"?V.push(p.createElement(N)):N.element?V.push(N.element):typeof N==="string"&&N.indexOf("\n")!==-1?N.split("\n").forEach(function(X,d){d>0&&V.push(g.iK("BR"));V.push(g.h2(X))}):V.push(g.h2(N))}return V}; Fi=function(p,C,V,N){if(V==="child"){g.aN(C);var H;N===void 0?H=void 0:H=!Array.isArray(N)||N&&typeof N.L==="string"?[N]:N;V=cmV(p,H);V=g.F(V);for(p=V.next();!p.done;p=V.next())C.appendChild(p.value)}else V==="style"?g.K2(C,"cssText",N?N:""):N===null||N===void 0?C.removeAttribute(V):(p=N.toString(),V==="href"&&(p=g.xe(g.Rc(p))),C.setAttribute(V,p))}; g.L=function(p){g.mz.call(this,p);this.C4=!0;this.Y=!1;this.listeners=[]}; g.Sp=function(p){g.L.call(this,p);this.Y_=new g.ca;g.R(this,this.Y_)}; Kq=function(p,C,V,N,H,X,d){d=d===void 0?null:d;g.Sp.call(this,C);this.api=p;this.macros={};this.componentType=V;this.D=this.J=null;this.X$=d;this.layoutId=N;this.interactionLoggingClientData=H;this.l_=X;this.UY=null;this.qM=new Z9(this.element);g.R(this,this.qM);this.qo=this.U(this.element,"click",this.onClick);this.Vn=[];this.sY=new IDe(this.onClick,this);g.R(this,this.sY);this.kM=!1;this.Wr=this.a$=null}; DU=function(p,C){p=p===void 0?null:p;C=C===void 0?null:C;if(p==null)return g.eG(Error("Got null or undefined adText object")),"";var V=g.dI(p.text);if(!p.isTemplated)return V;if(C==null)return g.eG(Error("Missing required parameters for a templated message")),V;p=g.F(Object.entries(C));for(C=p.next();!C.done;C=p.next()){var N=g.F(C.value);C=N.next().value;N=N.next().value;V=V.replace("{"+C+"}",N)}return V}; T8e=function(p){p=p===void 0?null:p;return p!=null&&(p=p.thumbnail,p!=null&&p.thumbnails!=null&&p.thumbnails.length!=0&&p.thumbnails[0].url!=null)?g.dI(p.thumbnails[0].url):""}; MzQ=function(p){p=p===void 0?null:p;return p!=null&&(p=p.thumbnail,p!=null&&p.thumbnails!=null&&p.thumbnails.length!=0&&p.thumbnails[0].width!=null&&p.thumbnails[0].height!=null)?new g.KG(p.thumbnails[0].width||0,p.thumbnails[0].height||0):new g.KG(0,0)}; g.uq=function(p){if(p.simpleText)return p.simpleText;if(p.runs){var C=[];p=g.F(p.runs);for(var V=p.next();!V.done;V=p.next())V=V.value,V.text&&C.push(V.text);return C.join("")}return""}; g.ZU=function(p){if(p.simpleText)return p=document.createTextNode(p.simpleText),p;var C=[];if(p.runs)for(var V=0;V<p.runs.length;V++){var N=p.runs[V];if(N.text){var H=C,X=H.push,d=null;var a=N.text;N.bold&&(d=dW("B",null,d||a));N.italics&&(d=dW("I",null,d||a));N.strikethrough&&(d=dW("STRIKE",null,d||a));N.navigationEndpoint&&N.navigationEndpoint.urlEndpoint&&(N=N.navigationEndpoint.urlEndpoint,d=dW("A",null,d||a),g.el(d,N.url),N.target=="TARGET_NEW_WINDOW"&&(d.target="_blank"));a=d||dW("SPAN",null, a);X.call(H,a)}}return C.length==1?C[0]:dW("SPAN",null,C)}; g.Jm9=function(){return{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z", fill:"#fff"}}]}}; Uy=function(){return{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",X:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}}; g.fq=function(){return{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},j:[{L:"path",X:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}}; g.Oy=function(){return{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},j:[{L:"path",X:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}}; m5L=function(){return{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},j:[{L:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{L:"path",X:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}}; vl1=function(){return{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; F_a=function(){return{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}}; g.yD=function(){return{L:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",X:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}}; SBH=function(){return{L:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",X:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}}; K_H=function(){return{L:"svg",X:{viewBox:"0 0 24 24"},j:[{L:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{L:"path",X:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}}; D5a=function(){return{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,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}}; uW1=function(){return{L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]}}; ZKv=function(){return{L:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},j:[{L:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{L:"path",X:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}}; U5v=function(){return{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,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}}; f3S=function(){return{L:"svg",X:{viewBox:"0 0 24 24"},j:[{L:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{L:"path",X:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}}; qy=function(){return{L:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",X:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}}; OKY=function(){return{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; IS=function(){return{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 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}}; g.bq=function(){return{L:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},j:[{L:"path",X:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 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"}}]}}; AO=function(){return{L:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},j:[{L:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{L:"path",X:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}}; yms=function(){return{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 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}}; qBQ=function(){return{L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",B:"ytp-svg-fill",X:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}}; I31=function(){return{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}}; oS=function(){return{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 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}}; bKv=function(){return{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 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}}; g.k0=function(){return{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"}}]}}; g.x0=function(){return{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z", fill:"#fff"}}]}}; g.Y0=function(){return{L:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},j:[{L:"path",X:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}}; AmY=function(){return{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 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}}; zB=function(){return{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 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}}; RS=function(p,C,V){C=C===void 0?!1:C;V=V===void 0?!1:V;if(!p)return null;switch(p.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return V?{L:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",X:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:AO();case "CHECK_BOX":return{L:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{L:"path",X:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{L:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",X:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{L:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.yD();case "INFO_OUTLINE":return C?{L:"svg",X:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},j:[{L:"path",X:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}: ZKv();case "REMOVE_CIRCLE":return{L:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{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 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return IS();case "SKIP_NEXT_NEW":return{L:"svg",X:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},j:[{L:"path",X:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return f3S(); case "DISLIKE":return K_H();default:return g.eG(new g.Bw("Unexpected icon:",p)),null}}; nq=function(p,C,V,N,H,X,d,a,E){H=H===void 0?[]:H;d=d===void 0?!1:d;E=E===void 0?!1:E;H={L:"button",i_:["ytp-ad-button"].concat(H)};a!=null&&(H.X={tabindex:a});Kq.call(this,p,H,X===void 0?"button":X,C,V,N);this.T=this.C=this.V=null;this.W=d;this.S=E;this.hide()}; olS=function(p){var C=null;p.T!=null&&(C=[p.T.serviceEndpoint,p.T.navigationEndpoint].filter(function(V){return V!=null}),p.T.command&&(C=C.concat(p.T.command))); return C||[]}; ep=function(){g.Y.call(this);var p=this;this.T=new Map;this.C=Bxa(function(C){if(C.target&&(C=p.T.get(C.target))&&C)for(var V=0;V<C.length;V++)g.BC(C[V])})}; kWj=function(){Pa==null&&(Pa=new ep);return Pa}; we=function(p,C){if(p.simpleText){a:{p=p.simpleText;if(C&&(C=x51(p))){C=dW("SPAN",null,C);break a}C=g.h2(p)}return C}var V=[];if(p.runs)for(var N=0;N<p.runs.length;N++){var H=p.runs[N];H.text&&V.push(YBs(H,C))}return V.length==1?V[0]:dW("SPAN",null,V)}; YBs=function(p,C){var V=null,N=p.text;C&&(N=x51(N)||N);p.bold&&(V=dW("B",null,V||N));p.italics&&(V=dW("I",null,V||N));p.strikethrough&&(V=dW("STRIKE",null,V||N));p.navigationEndpoint&&g.n(p.navigationEndpoint,g.$0)&&(C=g.n(p.navigationEndpoint,g.$0),V=dW("A",null,V||N),g.el(V,C.url),C.target=="TARGET_NEW_WINDOW"&&(V.target="_blank"),p=p.navigationEndpoint.loggingUrls)&&(p=p.map(function(H){return H.baseUrl}),kWj().register(V,p),g.Ed(V,"ytp-ad-has-logging-urls")); return V||dW("SPAN",null,N)}; x51=function(p){p=p.split(/(?:\r\n|\r|\n)/g);if(p.length>1){for(var C=[p[0]],V=1;V<p.length;V++)C.push(dW("BR")),C.push(p[V]);return C}return null}; Lq=function(p,C,V,N,H,X,d,a,E){X=X===void 0?!1:X;d=d===void 0?[]:d;E=E===void 0?!1:E;Kq.call(this,p,{L:"span",i_:["ytp-ad-hover-text-button"].concat(d)},a===void 0?"ad-hover-text-button":a,C,V,N);this.button=this.C=null;this.Z=X;this.W=H;this.V=E;this.hide()}; ge=function(p){return p&&p.thumbnails&&(p.thumbnails||null).length!=0&&p.thumbnails[0].url?g.dI(p.thumbnails[0].url):""}; Wa=function(p,C,V,N,H,X){X=X===void 0?!1:X;Kq.call(this,p,{L:"img",B:"ytp-ad-image"},"ad-image",C,V,N,H===void 0?null:H);this.T=X;this.hide()}; QD=function(p,C,V,N,H,X){H=H===void 0?[]:H;Kq.call(this,p,{L:"div",i_:["ytp-ad-confirm-dialog-background"],j:[{L:"div",B:"ytp-ad-confirm-dialog-container",j:[{L:"div",i_:["ytp-ad-confirm-dialog"].concat(H),X:{role:"dialog",tabindex:"-1"},j:[{L:"div",B:"ytp-ad-confirm-dialog-title",Ak:"{{title}}"},{L:"div",B:"ytp-ad-confirm-dialog-messages"},{L:"div",B:"ytp-ad-confirm-dialog-confirm-container",j:[{L:"button",B:"ytp-ad-confirm-dialog-cancel-button",Ak:"{{cancelLabel}}"},{L:"button",B:"ytp-ad-confirm-dialog-confirm-button", Ak:"{{confirmLabel}}"}]}]}]},{L:"button",i_:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],j:[{L:"span",B:"ytp-ad-button-icon",j:[g.yD()]}]}]},X===void 0?"confirm-dialog":X,C,V,N);this.Z=this.rV("ytp-ad-confirm-dialog-close-overlay-button");this.S=this.rV("ytp-ad-confirm-dialog-cancel-button");this.W=this.rV("ytp-ad-confirm-dialog-confirm-button");this.b_=this.rV("ytp-ad-confirm-dialog-messages");this.V=null;this.T=new I_;g.R(this,this.T);this.C=null;this.hide()}; z8H=function(p,C){if(C.title){var V=g.uq(C.title);p.updateValue("title",V)}if(C.dialogMessages){V=g.F(C.dialogMessages);for(var N=V.next();!N.done;N=V.next())N=we(N.value),p.b_.appendChild(N)}C.cancelLabel&&(V=g.uq(C.cancelLabel),p.updateValue("cancelLabel",V),p.T.U(p.S,"click",function(H){return p.BZ(H)})); C.confirmLabel&&(C=g.uq(C.confirmLabel),p.updateValue("confirmLabel",C),p.T.U(p.W,"click",function(H){return p.Sf(H)})); p.T.U(p.Z,"click",function(H){return p.Vd(H)})}; re=function(p,C,V,N,H,X){H=H===void 0?[]:H;X=X===void 0?"toggle-button":X;var d=lq("ytp-ad-toggle-button-input"),a={role:"button","aria-label":"{{tooltipText}}"};p.K().experiments.OY("fix_h5_toggle_button_a11y")&&(a.tabindex="0");p.K().experiments.OY("fix_toggle_button_role_for_ad_components")&&(a.role="checkbox");Kq.call(this,p,{L:"div",i_:["ytp-ad-toggle-button"].concat(H),j:[{L:"label",B:"ytp-ad-toggle-button-label",X:{"for":d},j:[{L:"span",B:"ytp-ad-toggle-button-icon",X:a,j:[{L:"span",B:"ytp-ad-toggle-button-untoggled-icon", Ak:"{{untoggledIconTemplateSpec}}"},{L:"span",B:"ytp-ad-toggle-button-toggled-icon",Ak:"{{toggledIconTemplateSpec}}"}]},{L:"input",B:"ytp-ad-toggle-button-input",X:{id:d,type:"checkbox"}},{L:"span",B:"ytp-ad-toggle-button-text",Ak:"{{buttonText}}"},{L:"span",B:"ytp-ad-toggle-button-tooltip",Ak:"{{tooltipText}}"}]}]},X,C,V,N);this.S=this.rV("ytp-ad-toggle-button");this.T=this.rV("ytp-ad-toggle-button-input");this.C=this.rV("ytp-ad-toggle-button-icon");this.Z=this.rV("ytp-ad-toggle-button-untoggled-icon"); this.W=this.rV("ytp-ad-toggle-button-toggled-icon");this.Sa=this.rV("ytp-ad-toggle-button-text");this.V=null;this.b_=!1;this.hide()}; Ba=function(p){p.b_&&(p.isToggled()?(g.o9(p.Z,!1),g.o9(p.W,!0),p.api.K().experiments.OY("fix_toggle_button_role_for_ad_components")&&p.C.setAttribute("aria-checked",!0)):(g.o9(p.Z,!0),g.o9(p.W,!1),p.api.K().experiments.OY("fix_toggle_button_role_for_ad_components")&&p.C.setAttribute("aria-checked",!1)))}; R8u=function(p,C){var V=null;p.V&&(V=(C?[p.V.defaultServiceEndpoint,p.V.defaultNavigationEndpoint]:[p.V.toggledServiceEndpoint]).filter(function(N){return N!=null})); return V||[]}; nlj=function(p,C,V){this.actionType=C;this.id=V;this.content=p}; GB=function(p){I_.call(this);this.T=p;this.U(this.T,"onAdUxUpdate",this.Y)}; pt=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-feedback-dialog-background",j:[{L:"div",B:"ytp-ad-feedback-dialog-container",j:[{L:"div",B:"ytp-ad-feedback-dialog-form",X:{role:"dialog",tabindex:"-1"},j:[{L:"div",B:"ytp-ad-feedback-dialog-title",j:[{L:"span",Ak:"{{title}}"}]},{L:"span",B:"ytp-ad-info-dialog-feedback-options-title",Ak:"{{reasonsTitle}}"},{L:"div",B:"ytp-ad-info-dialog-feedback-options"},{L:"div",B:"ytp-ad-feedback-dialog-confirm-container",j:[{L:"button",B:"ytp-ad-feedback-dialog-cancel-button", Ak:"{{cancelLabel}}"},{L:"button",B:"ytp-ad-feedback-dialog-confirm-button",Ak:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",C,V,N);this.S=[];this.T=null;this.W=this.rV("ytp-ad-feedback-dialog-cancel-button");this.Z=this.rV("ytp-ad-feedback-dialog-confirm-button");this.b_=this.rV("ytp-ad-info-dialog-feedback-options");this.Sa=this.rV("ytp-ad-feedback-dialog-title");this.V=this.C=null;this.hide()}; $51=function(p,C){var V=C.cancelRenderer&&C.cancelRenderer.buttonRenderer||null;V&&(p.T=new nq(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,["ytp-ad-feedback-dialog-close-button"],"button"),g.R(p,p.T),p.T.init(lq("button"),V,p.macros),p.T.listen("click",p.IQ,p),p.T.u_(p.element));C.title&&(V=g.uq(C.title),p.updateValue("title",V));C.reasonsTitle&&(V=g.uq(C.reasonsTitle),p.updateValue("reasonsTitle",V));C.reasons&&e8S(p,C.reasons);C.cancelLabel&&(V=g.uq(C.cancelLabel),p.updateValue("cancelLabel", V),g.UB(p.W,"click",function(){return p.IQ()})); C.confirmLabel&&(V=g.uq(C.confirmLabel),p.updateValue("confirmLabel",V),g.UB(p.Z,"click",function(){return POY(p)})); C.undoRenderer&&wwy(p,C.undoRenderer)}; e8S=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){var N=V.value;V=N.reason;if(V==null)g.eG(Error("AdFeedbackReason.reason was not set."));else if(N=N.endpoint,N==null)g.eG(Error("AdFeedbackReason.endpoint was not set."));else{V=new Ct(V,N);g.R(p,V);N=p.b_;var H=V.V$();N.appendChild(H);p.S.push(V)}}}; wwy=function(p,C){if(C=C&&C.buttonRenderer||null)C.serviceEndpoint?(p.C=new nq(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.R(p,p.C),p.C.init(lq("ad-feedback-undo-mute-button"),C,p.macros),p.C.listen("click",p.tr$,p),p.C.u_(p.Sa)):g.eG(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; POY=function(p){var C=p.S.filter(function(V){return V.isChecked()}); C.length!==0&&(C=C[0].getCommand(),p.layoutId?p.l_.executeCommand(C,p.layoutId):g.nm(Error("Missing layoutId for ad feedback dialog.")),p.api.onAdUxClicked("ad-feedback-dialog-confirm-button",p.layoutId),p.publish("a"),p.hide())}; Ct=function(p,C){this.C=C;this.T=new g.Sp({L:"label",B:"ytp-ad-feedback-dialog-reason-label",j:[{L:"input",B:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{L:"span",B:"ytp-ad-feedback-dialog-reason-text",Ak:g.uq(p)}]});this.V=this.T.rV("ytp-ad-feedback-dialog-reason-input")}; j2=function(p,C,V,N){QD.call(this,p,C,V,N,[],"ad-mute-confirm-dialog")}; V_=function(p,C,V,N,H){Kq.call(this,p,{L:"div",B:"ytp-ad-info-dialog-background",j:[{L:"div",B:"ytp-ad-info-dialog-container",j:[{L:"div",B:"ytp-ad-info-dialog-form",X:{role:"dialog",tabindex:"-1"},j:[{L:"div",B:"ytp-ad-info-dialog-title",Ak:"{{title}}"},{L:"ul",B:"ytp-ad-info-dialog-ad-reasons"},{L:"div",B:"ytp-ad-info-dialog-message"},{L:"div",B:"ytp-ad-info-dialog-mute-container"},{L:"div",B:"ytp-ad-info-dialog-confirm-container",j:[{L:"button",B:"ytp-ad-info-dialog-confirm-button",Ak:"{{confirmLabel}}"}]}]}]}]}, "ad-info-dialog",C,V,N);this.T=this.C=null;this.Z=this.rV("ytp-ad-info-dialog-confirm-button");this.KS=this.rV("ytp-ad-info-dialog-mute-container");this.R$=this.rV("ytp-ad-info-dialog-message");this.vr=this.rV("ytp-ad-info-dialog-ad-reasons");this.S=this.V=null;this.Sa=H;this.W=null;this.Ga=!1;this.b_=null;this.hide()}; L_s=function(p,C){if(C=C.content&&C.content.adFeedbackRenderer||null)p.C=new pt(p.api,p.layoutId,p.interactionLoggingClientData,p.l_),g.R(p,p.C),p.C.init(lq("ad-feedback-dialog"),C,p.macros),p.C.u_(p.Sa),p.C.subscribe("a",function(){return p.publish("c")})}; gle=function(p,C){if(C=C.content&&C.content.confirmDialogRenderer||null)p.S=new j2(p.api,p.layoutId,p.interactionLoggingClientData,p.l_),g.R(p,p.S),p.S.init(lq("ad-mute-confirm-dialog"),C,p.macros),p.S.u_(p.Sa),p.S.subscribe("b",function(){return p.publish("c")})}; W_u=function(p){p.T&&p.T.listen("click",p.Km,p);g.UB(p.Z,"click",function(){return p.Km()})}; NN=function(p,C,V,N,H,X,d){Lq.call(this,p,C,V,N,X===void 0?!0:X,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",d===void 0?!1:d);this.T=null;this.S=H;this.hide()}; rmX=function(p,C,V){C=C.dialog&&g.n(C.dialog,Q_j)||null;C==null?g.nm(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(p.T=new V_(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,p.S),g.R(p,p.T),p.T.init(lq("ad-info-dialog"),C,V),p.T.u_(p.S),p.T.subscribe("d",function(){return p.publish("f")}),p.T.subscribe("c",function(){return p.publish("e")}))}; pWX=function(p,C,V){p.button==null?g.nm(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(p.C&&g.Ed(p.C.element,"ytp-ad-info-hover-text-short"),(C=C&&C.serviceEndpoint&&g.n(C.serviceEndpoint,B8s)||null)?(rmX(p,C,V),p.button.listen("click",function(){p.T&&!p.T.C4&&(p.T.show(),GWV(p))})):p.button.listen("click",function(){return GWV(p)}))}; GWV=function(p){p.api.onAdUxClicked("ad-info-icon-button",p.layoutId)}; HE=function(p,C,V,N,H,X){Kq.call(this,p,{L:"div",B:"ytp-ad-text"},X===void 0?"ad-text":X,C,V,N,H===void 0?null:H);this.T=null;this.hide()}; XK=function(p,C){C&&g.ce(p.element,DU(p.T,C))}; dk=function(p,C,V,N,H,X,d){Kq.call(this,p,C,V,N,H,X);this.T=d;g.R(this,this.T);this.Ga=this.Z=-1}; i$=function(p){p.T&&p.Z===-1&&(p.Z=p.T.subscribe("h",p.mY,p),p.Ga=p.T.subscribe("g",p.NO,p),p.mY())}; h7=function(p){p.T!=null&&p.Z!==-1&&(p.T.zW(p.Z),p.T.zW(p.Ga),p.Ga=-1,p.Z=-1)}; g.a0=function(p,C,V,N,H,X){g.Y.call(this);this.element=p;this.state=null;V||p.hide();this.C=C;this.V=N===void 0?C:N;this.T=X;this.onHidden=H;this.delay=new g.N8(this.Rl,0,this);g.R(this,this.delay)}; Eu=function(p,C){p=p.element.element;C?p.setAttribute("aria-hidden","true"):p.removeAttribute("aria-hidden")}; l$=function(p,C,V,N,H,X){dk.call(this,p,{L:"div",B:"ytp-ad-preview-slot"},"ad-preview",C,V,N,H);var d=this;this.KS=-1;this.S=this.api.K().experiments.OY("enable_modern_skip_button_on_web");this.C=new g.Sp({L:"span",B:"ytp-ad-preview-container"});this.S&&this.C.element.classList.add("ytp-ad-preview-container-detached");g.R(this,this.C);this.V=this.S?new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-preview-text-modern"):new HE(this.api,this.layoutId,this.interactionLoggingClientData, this.l_,"ytp-ad-preview-text");g.R(this,this.V);this.V.u_(this.C.element);this.b_=this.S?new g.Sp({L:"span",B:"ytp-ad-preview-image-modern"}):new g.Sp({L:"span",B:"ytp-ad-preview-image"});g.R(this,this.b_);this.W=new Wa(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.W);this.W.u_(this.b_.element);this.b_.u_(this.C.element);this.C.u_(this.element);this.Sa=new g.a0(this.C,400,!1,100,function(){return d.hide()}); g.R(this,this.Sa);this.vr=0;this.R$=!1;this.Qn=X;this.hide()}; t7=function(p){p.Sa.show(100);p.show()}; cE=function(p,C,V,N,H,X){dk.call(this,p,{L:"div",i_:["ytp-flyout-cta","ytp-flyout-cta-inactive"],j:[{L:"div",B:"ytp-flyout-cta-icon-container"},{L:"div",B:"ytp-flyout-cta-body",j:[{L:"div",B:"ytp-flyout-cta-text-container",j:[{L:"div",B:"ytp-flyout-cta-headline-container"},{L:"div",B:"ytp-flyout-cta-description-container"}]},{L:"div",B:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",C,V,N,H);this.V=new Wa(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-flyout-cta-icon"); g.R(this,this.V);this.V.u_(this.rV("ytp-flyout-cta-icon-container"));this.api.K().G("web_rounded_thumbnails")&&this.V.element.classList.add("ytp-flyout-cta-icon-rounded");this.W=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-flyout-cta-headline");g.R(this,this.W);this.W.u_(this.rV("ytp-flyout-cta-headline-container"));this.S=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-flyout-cta-description");g.R(this,this.S);this.S.u_(this.rV("ytp-flyout-cta-description-container")); p=["ytp-flyout-cta-action-button"];this.api.K().G("web_modern_buttons")&&p.push("ytp-flyout-cta-action-button-rounded");this.C=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,p);g.R(this,this.C);this.C.u_(this.rV("ytp-flyout-cta-action-button-container"));this.C.element.setAttribute("tabIndex","-1");Go(this.C.element);this.b_=null;this.Sa=0;this.vr=X;this.hide()}; T6=function(p,C,V,N,H){Kq.call(this,p,{L:"div",B:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",C,V,N,H===void 0?null:H);var X=this;this.T=null;this.V=new re(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,["ytp-ad-instream-user-sentiment-like-button"]);g.R(this,this.V);this.V.u_(this.element);this.C=new re(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,["ytp-ad-instream-user-sentiment-dislike-button"]);g.R(this,this.C);this.C.u_(this.element); this.S=new g.a0(this,400,!1,500,function(){return X.hide()}); g.R(this,this.S);this.hide()}; MN=function(p,C,V,N,H,X){H=H===void 0?0:H;X=X===void 0?!1:X;g.Y.call(this);this.C=p;this.V=!1;this.Z=N;this.a$=X;this.Y=!1;this.T=null;C>0&&(this.T=new g.N8(this.TZ,C,this),g.R(this,this.T));this.W=new g.N8(this.TZ,V,this);g.R(this,this.W);this.J=xkY(this.C,H,1,N);g.R(this,this.J);this.D=xkY(this.C,0,N,1);g.R(this,this.D);this.S=new I_;g.R(this,this.S)}; J7=function(p,C,V){this.C=p;this.isAsync=C;this.T=V}; CN9=function(p){switch(p){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:N1(p,"unknown result type")}}; jpQ=function(p,C){var V=1;p.isTrusted===!1&&(V=0);GH("ISDSTAT",V);mA(V,"i.s_",{triggerContext:"sk",metadata:C});return V}; V_H=function(p,C){var V=[];C?C.isTrusted===!0?V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):C.isTrusted===!1?V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");mA(0,"a.s_",{metadata:p,states:V});GH("ASDSTAT",0)}; mA=function(p,C,V){C=Nqu[C];var N,H,X={detected:p===0,source:""+C.C+((N=V.triggerContext)!=null?N:"")+((H=V.Qc)!=null?H:""),detectionStates:V.states,durationMs:V.JC};V.metadata&&(X.contentCpn=V.metadata.contentCpn,X.adCpn=V.metadata.adCpn);g.t1("biscottiBasedDetection",X);C.T!==void 0&&(V=Number(g.pO("CATSTAT",0)),C.T!==void 0?(C=C.T,p=CN9(p),p=V&~(3<<C)|p<<C):p=V,GH("CATSTAT",p))}; vE=function(p){return p?"layout: "+p.layoutType:""}; FK=function(p,C,V){return p?!0:(g.eG(new g.Bw("Assertion: "+C,V)),!1)}; S2=function(p,C,V,N,H){N=N===void 0?{}:N;if(!H||Math.random()<5E-4){C=C||null;V=V||null;p=p instanceof Error?p:new g.Bw(p);if(p.args)for(var X=g.F(p.args),d=X.next();!d.done;d=X.next())d=d.value,d instanceof Object&&(N=Object.assign({},d,N));N.category="H5 Ads Control Flow";C&&(N.slot=C?"slot: "+C.slotType:"");V&&(N.layout=vE(V),N.layoutId=V.layoutId);H&&(N.known_error_aggressively_sampled=!0);p.args=[N];g.eG(p)}}; g.Kt=function(p,C){this.state=p;this.T7=C}; D7=function(p,C){return g.r(p.state,C)&&!g.r(p.T7,C)?1:!g.r(p.state,C)&&g.r(p.T7,C)?-1:0}; g.u$=function(p,C){return D7(p,C)>0}; Z7=function(p,C,V,N,H,X){dk.call(this,p,{L:"div",B:"ytp-ad-skip-button-slot"},"skip-button",C,V,N,H);var d=this;this.b_=null;this.Sa=!1;this.R$=X;this.W=this.api.K().experiments.OY("enable_modern_skip_button_on_web");this.KS=!1;this.V=new g.Sp({L:"span",i_:["ytp-ad-skip-button-container"]});this.W&&this.V.element.classList.add("ytp-ad-skip-button-container-detached");this.api.G("enable_ad_pod_index_autohide")&&this.V.element.classList.add("ytp-ad-skip-button-container--clean-player");g.R(this,this.V); this.V.u_(this.element);this.C=this.S=null;this.Qn=new g.a0(this.V,500,!1,100,function(){return d.hide()}); g.R(this,this.Qn);this.vr=new MN(this.V.element,15E3,5E3,.5,.5,this.W);g.R(this,this.vr);this.hide()}; XWL=function(p){p=p.b_&&p.b_.adRendererCommands;return(p&&p.clickCommand&&g.n(p.clickCommand,g.Uu)&&g.n(p.clickCommand,g.Uu).commands||[]).some(function(C){return C.adLifecycleCommand?H3u(C.adLifecycleCommand):!1})}; H3u=function(p){return p.action==="END_LINEAR_AD"||p.action==="END_LINEAR_AD_PLACEMENT"}; ft=function(p,C,V,N,H,X){dk.call(this,p,{L:"div",B:"ytp-ad-skip-ad-slot"},"skip-ad",C,V,N,H);this.b_=X;this.S=!1;this.W=0;this.V=this.C=null;this.hide()}; dpL=function(p,C){p.S||(p.S=!0,p.C&&(C?p.C.Sa.hide():p.C.hide()),C?(p=p.V,p.Qn.show(),p.show()):p.V.show())}; Ou=function(p,C,V,N){nq.call(this,p,C,V,N,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; y_=function(p,C,V,N,H,X,d){X=X===void 0?!1:X;d=d===void 0?!1:d;Kq.call(this,p,{L:"span",B:"ytp-ad-simple-ad-badge"},"simple-ad-badge",C,V,N);this.V=H;this.T=this.rV("ytp-ad-simple-ad-badge");(this.C=X)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");d&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; qN=function(p,C,V,N,H){H=H===void 0?!1:H;tO.call(this,"player-overlay",p,{},C,N);this.videoAdDurationSeconds=V;this.interactionLoggingClientData=N;this.L5=H}; I0=function(p,C){g.ca.call(this);this.api=p;this.durationMs=C;this.T=null;this.qZ=new I_(this);g.R(this,this.qZ);this.C=i3v;this.qZ.U(this.api,"presentingplayerstatechange",this.V0);this.T=this.qZ.U(this.api,"onAdPlaybackProgress",this.m6)}; b$=function(p){g.ca.call(this);this.T=!1;this.Xg=0;this.qZ=new I_(this);g.R(this,this.qZ);this.durationMs=p;this.Yt=new g.Ib(100);g.R(this,this.Yt);this.qZ.U(this.Yt,"tick",this.m6);this.C={seekableStart:0,seekableEnd:p/1E3,current:0};this.start()}; g.A7=function(p,C){var V=Math.abs(Math.floor(p)),N=Math.floor(V/86400),H=Math.floor(V%86400/3600),X=Math.floor(V%3600/60);V=Math.floor(V%60);if(C){C="";N>0&&(C+=" "+N+" Days");if(N>0||H>0)C+=" "+H+" Hours";C+=" "+X+" Minutes";C+=" "+V+" Seconds";N=C.trim()}else{C="";N>0&&(C+=N+":",H<10&&(C+="0"));if(N>0||H>0)C+=H+":",X<10&&(C+="0");C+=X+":";V<10&&(C+="0");N=C+V}return p>=0?N:"-"+N}; g.o0=function(p){return(!("button"in p)||typeof p.button!=="number"||p.button===0)&&!("shiftKey"in p&&p.shiftKey)&&!("altKey"in p&&p.altKey)&&!("metaKey"in p&&p.metaKey)&&!("ctrlKey"in p&&p.ctrlKey)}; kU=function(p,C,V,N,H,X,d){dk.call(this,p,{L:"span",B:d?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",C,V,N,H);this.videoAdDurationSeconds=X;this.C=null;this.api.G("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");d&&this.api.K().C&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.G("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), BW&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; xU=function(p,C,V,N){HE.call(this,p,C,V,N,"ytp-video-ad-top-bar-title","ad-title");p.G("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; YU=function(p){this.content=p.content;if(p.commandRuns){p=g.F(p.commandRuns);for(var C=p.next();!C.done;C=p.next())C=C.value,this.loggingDirectives=g.n(C,hVu),C.onTap&&(this.interaction={onTap:C.onTap})}}; z6=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ad-simple-attributed-string"},"ad-simple-attributed-string",C,V,N);this.hide()}; R0=function(p,C,V,N,H){Kq.call(this,p,{L:"span",B:H?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",C,V,N);this.C=H;this.adBadgeText=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);this.adBadgeText.u_(this.element);g.R(this,this.adBadgeText);H?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.G("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),BW&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; nt=function(p,C,V,N,H){Kq.call(this,p,{L:"span",B:"ytp-ad-pod-index"},"ad-pod-index",C,V,N);this.C=H;this.api.K().C&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.G("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),BW&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; e2=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",C,V,N);this.hide()}; PE=function(p,C){this.C=p;this.T=C}; wk=function(p,C,V){if(!p.getLength())return V!=null?V:Infinity;p=(C-p.C)/p.getLength();return g.J9(p,0,1)}; $U=function(p,C,V,N){N=N===void 0?!1:N;g.Sp.call(this,{L:"div",B:"ytp-ad-persistent-progress-bar-container",j:[{L:"div",B:"ytp-ad-persistent-progress-bar"}]});this.api=p;this.C=C;this.V=V;N&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.R(this,this.C);this.progressBar=this.rV("ytp-ad-persistent-progress-bar");this.T=-1;this.U(p,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; Lt=function(p,C,V,N,H,X){Kq.call(this,p,{L:"div",B:"ytp-ad-player-overlay",j:[{L:"div",B:"ytp-ad-player-overlay-flyout-cta"},{L:"div",B:"ytp-ad-player-overlay-instream-info"},{L:"div",B:"ytp-ad-player-overlay-skip-or-preview"},{L:"div",B:"ytp-ad-player-overlay-progress-bar"},{L:"div",B:"ytp-ad-player-overlay-instream-user-sentiment"},{L:"div",B:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",C,V,N);this.b_=X;this.W=this.rV("ytp-ad-player-overlay-flyout-cta");this.api.K().G("web_rounded_thumbnails")&& this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.T=this.rV("ytp-ad-player-overlay-instream-info");this.S=null;spa(this)&&(p=dW("div"),g.Ed(p,"ytp-ad-player-overlay-top-bar-gradients"),this.api.G("disable_ad_preview_for_instream_ads")&&g.Ed(p,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),C=this.T,C.parentNode&&C.parentNode.insertBefore(p,C),(C=this.api.getVideoData(2))&&C.isListed&&C.title&&(V=new xU(this.api,this.layoutId,this.interactionLoggingClientData,this.l_), V.u_(p),V.init(lq("ad-title"),{text:C.title},this.macros),g.R(this,V)),this.S=p);this.V=null;this.Z=this.rV("ytp-ad-player-overlay-skip-or-preview");this.Ga=this.rV("ytp-ad-player-overlay-progress-bar");this.vr=this.rV("ytp-ad-player-overlay-instream-user-sentiment");this.Sa=this.rV("ytp-ad-player-overlay-ad-disclosure-banner");this.C=H;g.R(this,this.C);this.hide()}; spa=function(p){p=p.api.K();return g.gk(p)&&p.C}; WE=function(p,C,V){var N={};C&&(N.v=C);V&&(N.list=V);p={name:p,locale:void 0,feature:void 0};for(var H in N)p[H]=N[H];N=g.GD("/sharing_services",p);g.BC(N)}; g.Q_=function(p){p&=16777215;var C=[(p&16711680)>>16,(p&65280)>>8,p&255];p=C[0];var V=C[1];C=C[2];p=Number(p);V=Number(V);C=Number(C);if(p!=(p&255)||V!=(V&255)||C!=(C&255))throw Error('"('+p+","+V+","+C+'") is not a valid RGB color');V=p<<16|V<<8|C;return p<16?"#"+(16777216|V).toString(16).slice(1):"#"+V.toString(16)}; rk=function(p){this.T=new oL(p)}; a1a=function(){var p=!1;try{p=!!window.sessionStorage.getItem("session_logininfo")}catch(C){p=!0}return(g.pO("INNERTUBE_CLIENT_NAME")==="WEB"||g.pO("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&p}; BE=function(p){if(g.pO("LOGGED_IN",!0)&&a1a()){var C=g.pO("VALID_SESSION_TEMPDATA_DOMAINS",[]);var V=g.LJ(window.location.href);V&&C.push(V);V=g.LJ(p);g.W5(C,V)||!V&&v5(p,"/")?(C=gA(p),(C=UXv(C))?(C=Yky(C),C=(C=g.ee(C)||null)?i1(C):{}):C=null):C=null;C==null&&(C={});V=C;var N=void 0;a1a()?(N||(N=g.pO("LOGIN_INFO")),N?(V.session_logininfo=N,V=!0):V=!1):V=!1;V&&oW(p,C)}}; g.EtL=function(p){var C=C===void 0?{}:C;var V=V===void 0?"":V;var N=N===void 0?window:N;p=g.GD(p,C);BE(p);V=g.Rc(p+V);N=N.location;V=nH(V);V!==void 0&&(N.href=V)}; g.G6=function(p,C,V){C=C===void 0?{}:C;V=V===void 0?!1:V;var N=g.pO("EVENT_ID");N&&(C.ei||(C.ei=N));C&&oW(p,C);V||(BE(p),g.EtL(p))}; g.pS=function(p,C,V,N,H){H=H===void 0?!1:H;V&&oW(p,V);V=g.Rc(p);var X=g.xe(V);p!=X&&Hd(Error("Unsafe window.open URL: "+p));p=X;C=C||ic(p).toString(36);try{if(H){H=p;H=Tfu(H);BE(H);g.gV(window,H,C,"attributionsrc");return}}catch(d){g.Vg(d)}BE(p);g.gV(window,V,C,N)}; l1H=function(p){CS=p}; t_e=function(p){ji=p}; c1u=function(p){VQ=p}; M_S=function(){Tqv=VQ=ji=CS=null}; mpL=function(){var p=p===void 0?window.location.href:p;if(g.Zr("kevlar_disable_theme_param"))return null;var C=PX(g.$7(5,p));if(g.Zr("enable_dark_theme_only_on_shorts")&&C!=null&&C.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var V=g.sk(p).theme;return J1v.get(V)||null}catch(N){}return null}; NQ=function(){this.T={};if(this.C=SHs()){var p=g.ee("CONSISTENCY");p&&vtu(this,{encryptedTokenJarContents:p})}}; vtu=function(p,C){if(C.encryptedTokenJarContents&&(p.T[C.encryptedTokenJarContents]=C,typeof C.expirationSeconds==="string")){var V=Number(C.expirationSeconds);setTimeout(function(){delete p.T[C.encryptedTokenJarContents]},V*1E3); p.C&&g.nO("CONSISTENCY",C.encryptedTokenJarContents,V,void 0,!0)}}; XX=function(){this.C=-1;var p=g.pO("LOCATION_PLAYABILITY_TOKEN");g.pO("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Hh(this))&&(p=this.localStorage.get("yt-location-playability-token"));p&&(this.locationPlayabilityToken=p,this.T=void 0)}; Hh=function(p){return p.localStorage===void 0?new iN("yt-client-location"):p.localStorage}; g.Za=function(p,C,V){C=C===void 0?!1:C;V=V===void 0?!1:V;var N=g.pO("INNERTUBE_CONTEXT");if(!N)return g.nm(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};N=g.Ra(N);g.Zr("web_no_tracking_params_in_shell_killswitch")||delete N.clickTracking;N.client||(N.client={});var H=N.client;H.clientName==="MWEB"&&H.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(H.clientFormFactor=g.pO("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");H.screenWidthPoints=window.innerWidth;H.screenHeightPoints= window.innerHeight;H.screenPixelDensity=Math.round(window.devicePixelRatio||1);H.screenDensityFloat=window.devicePixelRatio||1;H.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var X=X===void 0?!1:X;g.$l();var d="USER_INTERFACE_THEME_LIGHT";g.LK(0,165)?d="USER_INTERFACE_THEME_DARK":g.LK(0,174)?d="USER_INTERFACE_THEME_LIGHT":!g.Zr("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (d="USER_INTERFACE_THEME_DARK");X=X?d:mpL()||d;H.userInterfaceTheme=X;if(!C){if(X=hFL())H.connectionType=X;g.Zr("web_log_effective_connection_type")&&(X=aKa())&&(N.client.effectiveConnectionType=X)}var a;if(g.Zr("web_log_memory_total_kbytes")&&((a=g.xH.navigator)==null?0:a.deviceMemory)){var E;a=(E=g.xH.navigator)==null?void 0:E.deviceMemory;N.client.memoryTotalKbytes=""+a*1E6}g.Zr("web_gcf_hashes_innertube")&&(X=Jku())&&(E=X.coldConfigData,a=X.coldHashData,X=X.hotHashData,N.client.configInfo=N.client.configInfo|| {},E&&(N.client.configInfo.coldConfigData=E),a&&(N.client.configInfo.coldHashData=a),X&&(N.client.configInfo.hotHashData=X));E=g.sk(g.xH.location.href);!g.Zr("web_populate_internal_geo_killswitch")&&E.internalcountrycode&&(H.internalGeo=E.internalcountrycode);H.clientName==="MWEB"||H.clientName==="WEB"?(H.mainAppWebInfo={graftUrl:g.xH.location.href},g.Zr("kevlar_woffle")&&jqv.instance&&(E=jqv.instance,H.mainAppWebInfo.pwaInstallabilityStatus=!E.T&&E.C?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),H.mainAppWebInfo.webDisplayMode=ez(),H.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):H.clientName==="TVHTML5"&&(!g.Zr("web_lr_app_quality_killswitch")&&(E=g.pO("LIVING_ROOM_APP_QUALITY"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{appQuality:E})),E=g.pO("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{certificationScope:E}));if(!g.Zr("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(A){}l=void 0}l&&(H.timeZone=l)}(l=fO())?H.experimentsToken=l:delete H.experimentsToken;l=Ok();NQ.instance||(NQ.instance=new NQ);N.request=Object.assign({},N.request,{internalExperimentFlags:l,consistencyTokenJars:g.q$(NQ.instance.T)});!g.Zr("web_prequest_context_killswitch")&&(l=g.pO("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(N.request.externalPrequestContext=l);H=g.$l();l=g.LK(0,58);H=H.get("gsml","");N.user=Object.assign({}, N.user);l&&(N.user.enableSafetyMode=l);H&&(N.user.lockedSafetyMode=!0);g.Zr("warm_op_csn_cleanup")?V&&(C=g.bz())&&(N.clientScreenNonce=C):!C&&(C=g.bz())&&(N.clientScreenNonce=C);p&&(N.clickTracking={clickTrackingParams:p});if(p=g.zV("yt.mdx.remote.remoteClient_"))N.remoteClient=p;XX.getInstance().setLocationOnInnerTubeContext(N);try{var t=Jw(),c=t.bid;delete t.bid;N.adSignalsInfo={params:[],bid:c};for(var T=g.F(Object.entries(t)),M=T.next();!M.done;M=T.next()){var J=g.F(M.value),S=J.next().value, D=J.next().value;t=S;c=D;p=void 0;(p=N.adSignalsInfo.params)==null||p.push({key:t,value:""+c})}var Z,f;if(((Z=N.client)==null?void 0:Z.clientName)==="TVHTML5"||((f=N.client)==null?void 0:f.clientName)==="TVHTML5_UNPLUGGED"){var q=g.pO("INNERTUBE_CONTEXT");q.adSignalsInfo&&(N.adSignalsInfo.advertisingId=q.adSignalsInfo.advertisingId,N.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",N.adSignalsInfo.limitAdTracking=q.adSignalsInfo.limitAdTracking)}}catch(A){g.nm(A)}return N}; KWa=function(p,C){if(!p)return!1;var V,N=(V=g.n(p,FWv))==null?void 0:V.signal;if(N&&C.Fb)return!!C.Fb[N];var H;if((V=(H=g.n(p,S2V))==null?void 0:H.request)&&C.CR)return!!C.CR[V];for(var X in p)if(C.Z3[X])return!0;return!1}; DpV=function(p){var C={"Content-Type":"application/json"};g.pO("EOM_VISITOR_DATA")?C["X-Goog-EOM-Visitor-Id"]=g.pO("EOM_VISITOR_DATA"):g.pO("VISITOR_DATA")&&(C["X-Goog-Visitor-Id"]=g.pO("VISITOR_DATA"));C["X-Youtube-Bootstrap-Logged-In"]=g.pO("LOGGED_IN",!1);g.pO("DEBUG_SETTINGS_METADATA")&&(C["X-Debug-Settings-Metadata"]=g.pO("DEBUG_SETTINGS_METADATA"));p!=="cors"&&((p=g.pO("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(C["X-Youtube-Client-Name"]=p),(p=g.pO("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(C["X-Youtube-Client-Version"]= p),(p=g.pO("CHROME_CONNECTED_HEADER"))&&(C["X-Youtube-Chrome-Connected"]=p),(p=g.pO("DOMAIN_ADMIN_STATE"))&&(C["X-Youtube-Domain-Admin-State"]=p),g.pO("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(p=g.pO("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(C["X-YouTube-Lava-Device-Context"]=p));return C}; u2v=function(){this.T={}}; Un=function(){this.mappings=new u2v}; fS=function(p){return function(){return new p}}; Upv=function(p){var C=C===void 0?"UNKNOWN_INTERFACE":C;if(p.length===1)return p[0];var V=Z3Q[C];if(V){V=new RegExp(V);for(var N=g.F(p),H=N.next();!H.done;H=N.next())if(H=H.value,V.exec(H))return H}var X=[];Object.entries(Z3Q).forEach(function(d){var a=g.F(d);d=a.next().value;a=a.next().value;C!==d&&X.push(a)}); V=new RegExp(X.join("|"));p.sort(function(d,a){return d.length-a.length}); N=g.F(p);for(H=N.next();!H.done;H=N.next())if(H=H.value,!V.exec(H))return H;return p[0]}; g.On=function(p){return"/youtubei/v1/"+Upv(p)}; yQ=function(){}; qQ=function(){}; ID=function(){}; b7=function(p){return g.zV("ytcsi."+(p||"")+"data_")||f1y(p)}; O3X=function(){var p=b7();p.info||(p.info={});return p.info}; A0=function(p){p=b7(p);p.metadata||(p.metadata={});return p.metadata}; oD=function(p){p=b7(p);p.tick||(p.tick={});return p.tick}; ki=function(p){p=b7(p);if(p.gel){var C=p.gel;C.gelInfos||(C.gelInfos={});C.gelTicks||(C.gelTicks={})}else p.gel={gelTicks:{},gelInfos:{}};return p.gel}; y1e=function(p){p=ki(p);p.gelInfos||(p.gelInfos={});return p.gelInfos}; xi=function(p){var C=b7(p).nonce;C||(C=g.OI(16),b7(p).nonce=C);return C}; f1y=function(p){var C={tick:{},info:{}};g.YH("ytcsi."+(p||"")+"data_",C);return C}; Yi=function(){var p=g.zV("ytcsi.debug");p||(p=[],g.YH("ytcsi.debug",p),g.YH("ytcsi.reference",{}));return p}; z0=function(p){p=p||"";var C=q2u();if(C[p])return C[p];var V=Yi(),N={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};V.push(N);return C[p]=N}; I1Q=function(p){p=p||"";var C=q2u();C[p]&&delete C[p];var V=Yi(),N={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};V.push(N);C[p]=N}; q2u=function(){var p=g.zV("ytcsi.reference");if(p)return p;Yi();return g.zV("ytcsi.reference")}; RD=function(p){return b3X[p]||"LATENCY_ACTION_UNKNOWN"}; nS=function(p,C){uR.call(this,1,arguments);this.Yt=C}; ei=function(){this.T=0}; Ph=function(){ei.instance||(ei.instance=new ei);return ei.instance}; $i=function(p,C){w3[C]=w3[C]||{count:0};var V=w3[C];V.count++;V.time=(0,g.Ip)();p.T||(p.T=g.Vl(0,function(){var N=(0,g.Ip)(),H;for(H in w3)w3[H]&&N-w3[H].time>6E4&&delete w3[H];p&&(p.T=0)},5E3)); return V.count>5?(V.count===6&&Math.random()*1E5<1&&(V=new g.Bw("CSI data exceeded logging limit with key",C.split("_")),C.indexOf("plev")>=0||g.eG(V)),!0):!1}; A1j=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; otY=function(){var p;if(g.Zr("csi_use_performance_navigation_timing")||g.Zr("csi_use_performance_navigation_timing_tvhtml5")){var C,V,N,H=LS==null?void 0:(p=LS.getEntriesByType)==null?void 0:(C=p.call(LS,"navigation"))==null?void 0:(V=C[0])==null?void 0:(N=V.toJSON)==null?void 0:N.call(V);H?(H.requestStart=g3(H.requestStart),H.responseEnd=g3(H.responseEnd),H.redirectStart=g3(H.redirectStart),H.redirectEnd=g3(H.redirectEnd),H.domainLookupEnd=g3(H.domainLookupEnd),H.connectStart=g3(H.connectStart), H.connectEnd=g3(H.connectEnd),H.responseStart=g3(H.responseStart),H.secureConnectionStart=g3(H.secureConnectionStart),H.domainLookupStart=g3(H.domainLookupStart),H.isPerformanceNavigationTiming=!0,p=H):p=LS.timing}else p=g.Zr("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(LS.timing)):LS.timing;return p}; g3=function(p){return Math.round(Wh()+p)}; Wh=function(){return(g.Zr("csi_use_time_origin")||g.Zr("csi_use_time_origin_tvhtml5"))&&LS.timeOrigin?Math.floor(LS.timeOrigin):LS.timing.navigationStart}; r3=function(p,C){QQ("_start",p,C)}; Bh=function(p,C){if(!g.Zr("web_csi_action_sampling_enabled")||!b7(C).actionDisabled){var V=z0(C||"");K1(V.info,p);p.loadType&&(V=p.loadType,A0(C).loadType=V);K1(y1e(C),p);V=xi(C);C=b7(C).cttAuthInfo;Ph().info(p,V,C)}}; k4H=function(){var p,C,V,N;return((N=Rh().resolve(new oh(lR))==null?void 0:(p=tN())==null?void 0:(C=p.loggingHotConfig)==null?void 0:(V=C.csiConfig)==null?void 0:V.debugTicks)!=null?N:[]).map(function(H){return Object.values(H)[0]})}; QQ=function(p,C,V){if(!g.Zr("web_csi_action_sampling_enabled")||!b7(V).actionDisabled){var N=xi(V),H;if(H=g.Zr("web_csi_debug_sample_enabled")&&N){(Rh().resolve(new oh(lR))==null?0:tN())&&!xpS&&(xpS=!0,QQ("gcfl",(0,g.Ip)(),V));var X,d,a;H=(Rh().resolve(new oh(lR))==null?void 0:(X=tN())==null?void 0:(d=X.loggingHotConfig)==null?void 0:(a=d.csiConfig)==null?void 0:a.debugSampleWeight)||0;if(X=H!==0)b:{X=k4H();if(X.length>0)for(d=0;d<X.length;d++)if(p===X[d]){X=!0;break b}X=!1}X?(H=d5S(N)%H!==0,b7(V).debugTicksExcludedLogged|| (X={},X.debugTicksExcluded=H,Bh(X,V)),b7(V).debugTicksExcludedLogged=!0):H=!1}if(!H){if(p[0]!=="_"&&(H=p,X=C,!g.Zr("enable_strip_performance_mark_in_prod")&&LS.mark))if(H.startsWith("mark_")||(H="mark_"+H),V&&(H+=" ("+V+")"),X===void 0||g.Zr("web_csi_disable_alt_time_performance_mark"))LS.mark(H);else{X=g.Zr("csi_use_performance_navigation_timing")||g.Zr("csi_use_performance_navigation_timing_tvhtml5")?X-LS.timeOrigin:X-(LS.timeOrigin||LS.timing.navigationStart);try{LS.mark(H,{startTime:X})}catch(E){}}H= z0(V||"");H.tick[p]=C||(0,g.Ip)();if(H.callback&&H.callback[p])for(H=g.F(H.callback[p]),X=H.next();!X.done;X=H.next())X=X.value,X();H=ki(V);H.gelTicks&&(H.gelTicks[p]=!0);X=oD(V);H=C||(0,g.Ip)();g.Zr("log_repeated_ytcsi_ticks")?p in X||(X[p]=H):X[p]=H;X=b7(V).cttAuthInfo;p==="_start"?(p=Ph(),$i(p,"baseline_"+N)||g.t1("latencyActionBaselined",{clientActionNonce:N},{timestamp:C,cttAuthInfo:X})):Ph().tick(p,N,C,X);Y2y(V);return H}}}; zVs=function(){var p,C=(p=LS.getEntriesByType)==null?void 0:p.call(LS,"mark");C&&C.forEach(function(V){if(V.name.startsWith("mark_")){var N;(N=LS.clearMarks)==null||N.call(LS,V.name)}})}; RVy=function(){switch(ezS()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; ntH=function(p){function C(X,d,a){d=d.match("_rid")?d.split("_rid")[0]:d;typeof a==="number"&&(a=JSON.stringify(a));X.requestIds?X.requestIds.push({endpoint:d,id:a}):X.requestIds=[{endpoint:d,id:a}]} var V={};p=g.F(Object.entries(p));for(var N=p.next();!N.done;N=p.next()){var H=g.F(N.value);N=H.next().value;H=H.next().value;switch(N){case "GetBrowse_rid":C(V,N,H);break;case "GetGuide_rid":C(V,N,H);break;case "GetHome_rid":C(V,N,H);break;case "GetPlayer_rid":C(V,N,H);break;case "GetSearch_rid":C(V,N,H);break;case "GetSettings_rid":C(V,N,H);break;case "GetTrending_rid":C(V,N,H);break;case "GetWatchNext_rid":C(V,N,H);break;case "yt_red":V.isRedSubscriber=!!H;break;case "yt_ad":V.isMonetized=!!H}}return V}; eVa=function(p,C){p=document.querySelector(p);if(!p)return!1;var V="",N=p.nodeName;N==="SCRIPT"?(V=p.src,V||(V=p.getAttribute("data-timing-href"))&&(V=window.location.protocol+V)):N==="LINK"&&(V=p.href);Wn(window)&&p.setAttribute("nonce",Wn(window));return V?(p=LS.getEntriesByName(V))&&p[0]&&(p=p[0],V=Wh(),QQ("rsf_"+C,V+Math.round(p.fetchStart)),QQ("rse_"+C,V+Math.round(p.responseEnd)),p.transferSize!==void 0&&p.transferSize===0)?!0:!1:!1}; PNa=function(){var p=window.location.protocol,C=LS.getEntriesByType("resource");C=g.JT(C,function(V){return V.name.indexOf(p+"//fonts.gstatic.com/s/")===0}); (C=kc(C,function(V,N){return N.duration>V.duration?N:V},{duration:0}))&&C.startTime>0&&C.responseEnd>0&&(QQ("wffs",g3(C.startTime)),QQ("wffe",g3(C.responseEnd)))}; wWL=function(p,C,V){LS&&LS.measure&&(p.startsWith("measure_")||(p="measure_"+p),V?LS.measure(p,C,V):C?LS.measure(p,C):LS.measure(p))}; $p9=function(p){var C=G0("aft",p);if(C)return C;C=g.pO((p||"")+"TIMING_AFT_KEYS",["ol"]);for(var V=C.length,N=0;N<V;N++){var H=G0(C[N],p);if(H)return H}return NaN}; pU=function(p,C){g.YH("ytglobal.timing"+(C||"")+"ready_",p)}; G0=function(p,C){if(p=oD(C)[p])return typeof p==="number"?p:p[p.length-1]}; Y2y=function(p){var C=G0("_start",p),V=$p9(p),N=g.Zr("enable_cow_info_csi")||!LWH;C&&V&&N&&(Ix(gtL,new nS(Math.round(V-C),p)),LWH=!0)}; WW1=function(){if(LS.getEntriesByType){var p=LS.getEntriesByType("paint");if(p=g.L0(p,function(V){return V.name==="first-paint"}))return g3(p.startTime)}var C; g.Zr("csi_use_performance_navigation_timing")||g.Zr("csi_use_performance_navigation_timing_tvhtml5")?C=LS.getEntriesByType("first-paint")[0].startTime:C=LS.timing.qca;return C?Math.max(0,C):0}; CU=function(p){f1y(p);Qpa();zVs();p||(g.pO("TIMING_ACTION")&&GH("PREVIOUS_ACTION",g.pO("TIMING_ACTION")),GH("TIMING_ACTION",""))}; r11=function(){var p=["pbs","pbu"];g.NU(function(){z0("").info.actionType="watch";p&&GH("TIMING_AFT_KEYS",p);GH("TIMING_ACTION","watch");var C=ntH(g.pO("TIMING_INFO",{}));Object.keys(C).length>0&&Bh(C);C={isNavigation:!0,actionType:RD(g.pO("TIMING_ACTION"))};var V=g.pO("PREVIOUS_ACTION");V&&(C.previousAction=RD(V));if(V=g.pO("CLIENT_PROTOCOL"))C.httpProtocol=V;if(V=g.pO("CLIENT_TRANSPORT"))C.transportProtocol=V;(V=g.bz())&&V!=="UNDEFINED_CSN"&&(C.clientScreenNonce=V);V=RVy();if(V===1||V===-1)C.isVisible= !0;V=A0().loadType==="cold";var N=O3X();V||(V=N.yt_lt==="cold");if(V){C.loadType="cold";V=O3X();N=otY();var H=Wh(),X=g.pO("CSI_START_TIMESTAMP_MILLIS",0);X>0&&!g.Zr("embeds_web_enable_csi_start_override_killswitch")&&(H=X);H&&(QQ("srt",N.responseStart),V.prerender!==1&&r3(H));V=WW1();V>0&&QQ("fpt",V);V=otY();V.isPerformanceNavigationTiming&&Bh({performanceNavigationTiming:!0},void 0);QQ("nreqs",V.requestStart,void 0);QQ("nress",V.responseStart,void 0);QQ("nrese",V.responseEnd,void 0);V.redirectEnd- V.redirectStart>0&&(QQ("nrs",V.redirectStart,void 0),QQ("nre",V.redirectEnd,void 0));V.domainLookupEnd-V.domainLookupStart>0&&(QQ("ndnss",V.domainLookupStart,void 0),QQ("ndnse",V.domainLookupEnd,void 0));V.connectEnd-V.connectStart>0&&(QQ("ntcps",V.connectStart,void 0),QQ("ntcpe",V.connectEnd,void 0));V.secureConnectionStart>=Wh()&&V.connectEnd-V.secureConnectionStart>0&&(QQ("nstcps",V.secureConnectionStart,void 0),QQ("ntcpe",V.connectEnd,void 0));LS&&"getEntriesByType"in LS&&PNa();V=[];if(document.querySelector&& LS&&LS.getEntriesByName)for(var d in jL)jL.hasOwnProperty(d)&&(N=jL[d],eVa(d,N)&&V.push(N));if(V.length>0)for(C.resourceInfo=[],d=g.F(V),V=d.next();!V.done;V=d.next())C.resourceInfo.push({resourceCache:V.value})}Bh(C);C=ki();C.preLoggedGelInfos||(C.preLoggedGelInfos=[]);d=C.preLoggedGelInfos;C=y1e();V=void 0;for(N=0;N<d.length;N++)if(H=d[N],H.loadType){V=H.loadType;break}if(A0().loadType==="cold"&&(C.loadType==="cold"||V==="cold")){V=oD();N=ki();N=N.gelTicks?N.gelTicks:N.gelTicks={};for(var a in V)if(!(a in N))if(typeof V[a]==="number")QQ(a,G0(a));else if(g.Zr("log_repeated_ytcsi_ticks"))for(H=g.F(V[a]),X=H.next();!X.done;X=H.next())QQ(a.slice(1),X.value);a={};V=!1;d=g.F(d);for(N=d.next();!N.done;N=d.next())V=N.value,K1(C,V),K1(a,V),V=!0;V&&Bh(a)}pU(!0);a=g.pO("TIMING_ACTION");g.zV("ytglobal.timingready_")&&a&&V3()&&$p9()&&Y2y()})()}; Bq1=function(){var p=p===void 0?{}:p;g.NU(function(){V3()&&NR("aa",void 0,void 0);I1Q();CU();pU(!1);p.cttAuthInfo&&(b7().cttAuthInfo=p.cttAuthInfo);GH("TIMING_AFT_KEYS",[]);p.Yce?g.HH({loadType:"hot"}):g.HH({loadType:"warm"});GH("TIMING_ACTION","");delete g.pO("TIMING_INFO",{}).yt_lt;g.NU(r3)(p.startTime,void 0)})()}; XA=function(p,C){C=C===void 0?{}:C;g.NU(function(){G4y(p);var V=C.sampleRate;if(!g.Zr("web_csi_action_sampling_enabled")||V===void 0||V<=1)V=!1;else{var N=xi(p);V=d5S(N)%V!==0}V&&(b7(p).actionDisabled=!0);z0(p||"").info.actionType=p;C.cttAuthInfo&&(b7(p).cttAuthInfo=C.cttAuthInfo);GH(p+"TIMING_ACTION",p);g.NU(r3)(C.startTime,p);V={actionType:RD(p)};C.wKn&&(V.previousAction=RD(g.pO("TIMING_ACTION")));(N=g.bz())&&N!=="UNDEFINED_CSN"&&(V.clientScreenNonce=N);g.HH(V,p);pU(!0,p)})()}; G4y=function(p){g.NU(function(){V3(p)&&NR("aa",void 0,p);I1Q(p);CU(p)})()}; V3=function(p){return g.NU(function(){return dc("_start",p)})()}; g.HH=function(p,C,V){g.NU(Bh)(p,C,V===void 0?!1:V)}; NR=function(p,C,V){return g.NU(QQ)(p,C,V)}; pCV=function(p){g.NU(wWL)("action_finished",p,void 0)}; dc=function(p,C){return g.NU(function(){var V=oD(C);return p in V})()}; jxy=function(p){if(!g.Zr("universal_csi_network_ticks"))return"";p=PX(g.$7(5,p))||"";for(var C=Object.keys(CRQ),V=0;V<C.length;V++){var N=C[V];if(p.includes(N))return N}return""}; Nyj=function(p){if(!g.Zr("universal_csi_network_ticks"))return function(){}; var C=CRQ[p];return C?(ie(C),function(){var V=g.Zr("universal_csi_network_ticks")?(V=VVe[p])?ie(V):!1:!1;return V}):function(){}}; ie=function(p,C){return g.NU(function(){if(dc(p,C))return!1;NR(p,void 0,C);return!0})()}; hd=function(p,C,V){g.NU(function(){if(!V3(V)||dc(p,V))return!1;NR(p,C,V);return!0})()}; H59=function(){g.NU(function(){var p=xi();requestAnimationFrame(function(){setTimeout(function(){p===xi()&&NR("ftl",void 0,void 0)},0)})})()}; s0=function(p,C,V,N){this.P4=p;this.AU=C;this.T=V;this.S=N;this.V=void 0;this.C=new Map;p.Fb||(p.Fb={});p.Fb=Object.assign({},XCy,p.Fb)}; de9=function(p,C,V,N){if(s0.instance!==void 0){if(N=s0.instance,p=[p!==N.P4,C!==N.AU,V!==N.T,!1,!1,!1,void 0!==N.V],p.some(function(H){return H}))throw new g.Bw("InnerTubeTransportService is already initialized",p); }else s0.instance=new s0(p,C,V,N)}; a4=function(p,C,V){var N=N===void 0?Me:N;var H=i5e(p,C);return H?new g.um(function(X,d){var a,E,l,t,c;return g.I(function(T){switch(T.C){case 1:return g.y(T,H,2);case 2:a=T.T;E=a.W(C,V,N);if(!E){d(new g.Bw("Error: Failed to build request for command.",C));T.EY(0);break}BE(E.input);t=((l=E.Vt)==null?void 0:l.mode)==="cors"?"cors":void 0;if(p.T.z8){c=hkH(p,E.config,t);T.EY(4);break}return g.y(T,sx1(p,E.config,t),5);case 5:c=T.T;case 4:X(ahH(p,E,c)),g.JQ(T)}})}):fJ(new g.Bw("Error: No request builder found for command.", C))}; g.E0=function(p,C,V,N,H){function X(){} H=H===void 0?{LA:{identity:Me}}:H;var d=d===void 0?!0:d;X=Nyj(jxy(V));C.context||(C.context=g.Za(N,d));return new g.um(function(a){var E,l,t,c,T;return g.I(function(M){if(M.C==1)return E=wm(V),l=l1(E)?"same-origin":"cors",p.T.z8?(t=hkH(p,H,l),M.EY(2)):g.y(M,sx1(p,H,l),3);M.C!=2&&(t=M.T);c=KOv(wm(V));T={input:c,Vt:$D(c),dj:C,config:H};a(ahH(p,T,t,X));g.JQ(M)})})}; lh1=function(p,C,V){var N;if(C&&!(C==null?0:(N=C.sequenceMetaData)==null?0:N.skipProcessing)&&p.S){N=g.F(EpX);for(var H=N.next();!H.done;H=N.next())H=H.value,p.S[H]&&p.S[H].handleResponse(C,V)}}; ahH=function(p,C,V,N){N=N===void 0?function(){}:N; var H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au,W,e,B,v,w,C0,FG,Nc;return g.I(function(OS){switch(OS.C){case 1:OS.EY(2);break;case 3:if((H=OS.T)&&!H.isExpired())return OS.return(Promise.resolve(H.T()));case 2:if(!((X=C)==null?0:(d=X.dj)==null?0:d.context)){OS.EY(4);break}a=C.dj.context;OS.EY(5);break;case 5:E=g.F([]),l=E.next();case 8:if(l.done){OS.EY(4);break}t=l.value;return g.y(OS,t.SK$(a),9);case 9:l=E.next();OS.EY(8);break;case 4:if((c=p.V)==null||!c.ttY(C.input,C.dj)){OS.EY(12);break}return g.y(OS, p.V.JFr(C.input,C.dj),13);case 13:return T=OS.T,lh1(p,T,C),OS.return(T);case 12:return(S=(J=C.config)==null?void 0:J.I1)&&p.C.has(S)?M=p.C.get(S):(D=JSON.stringify(C.dj),q=(f=(Z=C.Vt)==null?void 0:Z.headers)!=null?f:{},C.Vt=Object.assign({},C.Vt,{headers:Object.assign({},q,V)}),A=Object.assign({},C.Vt),C.Vt.method==="POST"&&(A=Object.assign({},A,{body:D})),((z=C.config)==null?0:z.gtn)&&NR(C.config.gtn),Q=function(){return p.AU.fetch(C.input,A,C.config)},M=Q(),S&&p.C.set(S,M)),g.y(OS,M,14); case 14:if((P=OS.T)&&"error"in P&&((VL=P)==null?0:(au=VL.error)==null?0:au.details))for(W=P.error.details,e=g.F(W),B=e.next();!B.done;B=e.next())v=B.value,(w=v["@type"])&&tVX.indexOf(w)>-1&&(delete v["@type"],P=v);S&&p.C.has(S)&&p.C.delete(S);((C0=C.config)==null?0:C0.wVr)&&NR(C.config.wVr);if(P||(FG=p.V)==null||!FG.Kra(C.input,C.dj)){OS.EY(15);break}return g.y(OS,p.V.Oto(C.input,C.dj),16);case 16:P=OS.T;case 15:return lh1(p,P,C),((Nc=C.config)==null?0:Nc.vt$)&&NR(C.config.vt$),N(),OS.return(P||void 0)}})}; i5e=function(p,C){a:{p=p.P4;var V,N=(V=g.n(C,FWv))==null?void 0:V.signal;if(N&&p.Fb&&(V=p.Fb[N])){var H=V();break a}var X;if((V=(X=g.n(C,S2V))==null?void 0:X.request)&&p.CR&&(X=p.CR[V])){H=X();break a}for(H in C)if(p.Z3[H]&&(C=p.Z3[H])){H=C();break a}H=void 0}if(H!==void 0)return Promise.resolve(H)}; sx1=function(p,C,V){var N,H,X,d,a,E,l;return g.I(function(t){if(t.C==1){X=((N=C)==null?void 0:(H=N.LA)==null?void 0:H.identity)||Me;E=(d=C)==null?void 0:(a=d.LA)==null?void 0:a.sessionIndex;var c=U8(p.T.wg(X,{sessionIndex:E}));return g.y(t,c,2)}l=t.T;return t.return(Promise.resolve(Object.assign({},DpV(V),l)))})}; hkH=function(p,C,V){var N,H=(C==null?void 0:(N=C.LA)==null?void 0:N.identity)||Me,X;C=C==null?void 0:(X=C.LA)==null?void 0:X.sessionIndex;p=p.T.wg(H,{sessionIndex:C});return Object.assign({},DpV(V),p)}; le=function(){}; td=function(){}; cH=function(p){this.Y=p}; Tk=function(){}; MR=function(){}; Jd=function(){}; mI=function(){}; g.vH=function(p,C){var V=g.US.apply(2,arguments);p=p===void 0?0:p;g.Bw.call(this,C,V);this.errorType=p;Object.setPrototypeOf(this,this.constructor.prototype)}; FA=function(p,C,V){this.T=p;this.C=C;this.V=V}; cNV=function(p,C,V){if(p.T){var N=PX(g.$7(5,jE(C,"key")))||"/UNKNOWN_PATH";p.T.start(N)}p=V;g.Zr("wug_networking_gzip_request")&&(p=WlY(V));return new window.Request(C,p)}; g.KU=function(p,C){if(!SL){var V=Rh();kJ(V,{Xk:TyS,AO:FA});var N={Z3:{feedbackEndpoint:fS(Tk),modifyChannelNotificationPreferenceEndpoint:fS(MR),playlistEditEndpoint:fS(Jd),shareEntityEndpoint:fS(cH),subscribeEndpoint:fS(le),unsubscribeEndpoint:fS(td),webPlayerShareEntityServiceEndpoint:fS(mI)}},H=XX.getInstance(),X={};H&&(X.client_location=H);p===void 0&&(p=V0a());C===void 0&&(C=V.resolve(TyS));de9(N,C,p,X);kJ(V,{Xk:MVe,L0:s0.instance});SL=V.resolve(MVe)}return SL}; JN9=function(p){var C=new KN;if(p.interpreterJavascript){var V=xKj(p.interpreterJavascript);V=rV(V).toString();var N=new Fr;mM(N,6,V);hP(C,Fr,1,N)}else p.interpreterUrl&&(V=Og(p.interpreterUrl),V=oc(V).toString(),N=new SE,mM(N,4,V),hP(C,SE,2,N));p.interpreterHash&&v4(C,3,p.interpreterHash);p.program&&v4(C,4,p.program);p.globalName&&v4(C,5,p.globalName);p.clientExperimentsStateBlob&&v4(C,7,p.clientExperimentsStateBlob);return C}; Df=function(p){var C={};p=p.split("&");p=g.F(p);for(var V=p.next();!V.done;V=p.next())V=V.value.split("="),V.length===2&&(C[V[0]]=V[1]);return C}; V1a=function(){if(g.Zr("bg_st_hr"))return"havuokmhhs-0";var p,C=((p=performance)==null?void 0:p.timeOrigin)||0;return"havuokmhhs-"+Math.floor(C)}; ue=function(p){this.T=p}; mea=function(){return new Promise(function(p){var C=window.top;C.ntpevasrs!==void 0?p(new ue(C.ntpevasrs)):(C.ntpqfbel===void 0&&(C.ntpqfbel=[]),C.ntpqfbel.push(function(V){p(new ue(V))}))})}; Fe9=function(){if(!g.Zr("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Zr("disable_biscotti_fetch_entirely_for_all_web_clients")&&d8()){var p=g.pO("PLAYER_VARS",{});if(g.x5(p,"privembed",!1)!="1"&&!Oou(p)){var C=function(){Zf=!0;"google_ad_status"in window?GH("DCLKSTAT",1):GH("DCLKSTAT",2)}; try{g.md("//static.doubleclick.net/instream/ad_status.js",C)}catch(V){}vpL.push(g.rE.Lx(function(){if(!(Zf||"google_ad_status"in window)){try{if(C){var V=""+g.$H(C),N=Odj[V];N&&g.MM(N)}}catch(H){}Zf=!0;GH("DCLKSTAT",3)}},5E3))}}}; U0=function(){var p=Number(g.pO("DCLKSTAT",0));return isNaN(p)?0:p}; qR=function(p,C,V){var N=this;this.network=p;this.options=C;this.C=V;this.T=null;if(C.Mte){var H=new g.Zt;this.T=H.promise;g.xH.ytAtRC&&j_(function(){var X,d;return g.I(function(a){if(a.C==1){if(!g.xH.ytAtRC)return a.return();X=fU(null);return g.y(a,O0(N,X),2)}d=a.T;g.xH.ytAtRC&&g.xH.ytAtRC(JSON.stringify(d));g.JQ(a)})},2); mea().then(function(X){var d,a,E,l;return g.I(function(t){if(t.C==1)return X.bindInnertubeChallengeFetcher(function(c){return O0(N,fU(c))}),g.y(t,zo(),2); d=t.T;a=X.getLatestChallengeResponse();E=a.challenge;if(!E)throw Error("BGE_MACIL");l={challenge:E,o8:Df(E),w7:d,bgChallenge:new KN};H.resolve(l);X.registerChallengeFetchedCallback(function(c){c=c.challenge;if(!c)throw Error("BGE_MACR");c={challenge:c,o8:Df(c),w7:d,bgChallenge:new KN};N.T=Promise.resolve(c)}); g.JQ(t)})})}else C.preload&&SXS(this,new Promise(function(X){g.Vl(0,function(){X(y3(N))},0)}))}; fU=function(p){var C={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};p&&(C.interpreterHash=p);return C}; y3=function(p,C){C=C===void 0?0:C;var V,N,H,X,d,a,E,l,t,c,T,M;return g.I(function(J){switch(J.C){case 1:V=fU(yO().T);if(g.Zr("att_fet_ks"))return g.vv(J,7),g.y(J,O0(p,V),9);g.vv(J,4);return g.y(J,Keu(p,V),6);case 6:d=J.T;H=d.dZe;X=d.jNn;N=d;g.Fe(J,3);break;case 4:return g.Sa(J),g.eG(Error("Failed to fetch attestation challenge after "+(C+" attempts; not retrying for 24h."))),I4(p,864E5),J.return({challenge:"",o8:{},w7:void 0,bgChallenge:void 0});case 9:N=J.T;if(!N)throw Error("Fetching Attestation challenge returned falsy"); if(!N.challenge)throw Error("Missing Attestation challenge");H=N.challenge;X=Df(H);if("c1a"in X&&(!N.bgChallenge||!N.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Fe(J,3);break;case 7:a=g.Sa(J);g.eG(a);C++;if(C>=5)return g.eG(Error("Failed to fetch attestation challenge after "+(C+" attempts; not retrying for 24h."))),I4(p,864E5),J.return({challenge:"",o8:{},w7:void 0,bgChallenge:void 0});E=1E3*Math.pow(2,C-1)+Math.random()*1E3;return J.return(new Promise(function(S){g.Vl(0, function(){S(y3(p,C))},E)})); case 3:l=Number(X.t)||7200;I4(p,l*1E3);t=void 0;if(!("c1a"in X&&N.bgChallenge)){J.EY(10);break}c=JN9(N.bgChallenge);g.vv(J,11);return g.y(J,qj(yO(),c),13);case 13:g.Fe(J,12);break;case 11:return T=g.Sa(J),g.eG(T),J.return({challenge:H,o8:X,w7:t,bgChallenge:c});case 12:return g.vv(J,14),t=new U$({challenge:c,OW:{SU:"aGIf"}}),g.y(J,t.Or,16);case 16:g.Fe(J,10);break;case 14:M=g.Sa(J),g.eG(M),t=void 0;case 10:return J.return({challenge:H,o8:X,w7:t,bgChallenge:c})}})}; O0=function(p,C){var V;return g.I(function(N){V=p.C;if(!V||V.nO())return N.return(O0(p.network,C));hd("att_pna",void 0,"attestation_challenge_fetch");return N.return(new Promise(function(H){V.Ff("publicytnetworkstatus-online",function(){O0(p.network,C).then(H)})}))})}; DeV=function(p){if(!p)throw Error("Fetching Attestation challenge returned falsy");if(!p.challenge)throw Error("Missing Attestation challenge");var C=p.challenge,V=Df(C);if("c1a"in V&&(!p.bgChallenge||!p.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},p,{dZe:C,jNn:V})}; Keu=function(p,C){var V,N,H,X,d;return g.I(function(a){switch(a.C){case 1:V=void 0,N=0,H={};case 2:if(!(N<5)){a.EY(4);break}if(!(N>0)){a.EY(5);break}H.Ah=1E3*Math.pow(2,N-1)+Math.random()*1E3;return g.y(a,new Promise(function(E){return function(l){g.Vl(0,function(){l(void 0)},E.Ah)}}(H)),5); case 5:return g.vv(a,7),g.y(a,O0(p,C),9);case 9:return X=a.T,a.return(DeV(X));case 7:V=d=g.Sa(a),d instanceof Error&&g.eG(d);case 8:N++;H={Ah:void 0};a.EY(2);break;case 4:throw V;}})}; SXS=function(p,C){p.T=C}; uD9=function(p){var C,V,N;return g.I(function(H){if(H.C==1)return g.y(H,Promise.race([p.T,null]),2);C=H.T;var X=y3(p);p.T=X;(V=C)==null||(N=V.w7)==null||N.dispose();g.JQ(H)})}; I4=function(p,C){function V(){var H;return g.I(function(X){H=N-Date.now();return H<1E3?g.y(X,uD9(p),0):(j_(V,0,Math.min(H,6E4)),X.EY(0))})} var N=Date.now()+C;V()}; Z5u=function(p,C){return new Promise(function(V){g.Vl(0,function(){V(C())},p)})}; g.UeL=function(p,C){var V;return g.I(function(N){var H=g.zV("yt.aba.att");return(V=H?H:qR.instance!==void 0?qR.instance.V.bind(qR.instance):null)?N.return(V("ENGAGEMENT_TYPE_PLAYBACK",p,C)):N.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.fhv=function(){var p;return(p=(p=g.zV("yt.aba.att2"))?p:qR.instance!==void 0?qR.instance.S.bind(qR.instance):null)?p():Promise.resolve(!1)}; yNa=function(p,C){var V=g.zV("ytDebugData.callbacks");V||(V={},g.YH("ytDebugData.callbacks",V));if(g.Zr("web_dd_iu")||O5Y.includes(p))V[p]=C}; be=function(){var p=qXy;var C=C===void 0?[]:C;var V=V===void 0?[]:V;C=qE9.apply(null,[IoV.apply(null,g.K(C))].concat(g.K(V)));this.store=Axa(p,void 0,C)}; g.Ad=function(p,C,V){for(var N=Object.assign({},p),H=g.F(Object.keys(C)),X=H.next();!X.done;X=H.next()){X=X.value;var d=p[X],a=C[X];if(a===void 0)delete N[X];else if(d===void 0)N[X]=a;else if(Array.isArray(a)&&Array.isArray(d))N[X]=V?[].concat(g.K(d),g.K(a)):a;else if(!Array.isArray(a)&&g.Pv(a)&&!Array.isArray(d)&&g.Pv(d))N[X]=g.Ad(d,a,V);else if(typeof a===typeof d)N[X]=a;else return C=new g.Bw("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:X,bVo:d,updateValue:a}),g.nm(C), p}return N}; o4=function(p){var C=this;p=p===void 0?[]:p;this.XF=[];this.jH=this.yr=0;this.U2=void 0;this.totalLength=0;p.forEach(function(V){C.append(V)})}; Ihy=function(p,C){return p.XF.length===0?!1:(p=p.XF[p.XF.length-1])&&p.buffer===C.buffer&&p.byteOffset+p.length===C.byteOffset}; k9=function(p,C){C=g.F(C.XF);for(var V=C.next();!V.done;V=C.next())p.append(V.value)}; x9=function(p,C,V){return p.split(C).LM.split(V).Yd}; Y9=function(p){p.U2=void 0;p.yr=0;p.jH=0}; zk=function(p,C,V){p.isFocused(C);return C-p.jH+V<=p.XF[p.yr].length}; b5Y=function(p){if(!p.U2){var C=p.XF[p.yr];p.U2=new DataView(C.buffer,C.byteOffset,C.length)}return p.U2}; R4=function(p,C,V){p=p.AB(C===void 0?0:C,V===void 0?-1:V);C=new Uint8Array(p.length);try{C.set(p)}catch(N){for(V=0;V<p.length;V++)C[V]=p[V]}return C}; ANu=function(p,C){p.focus(C);return zk(p,C,4)?b5Y(p).getUint32(C-p.jH):256*(256*(256*p.getUint8(C)+p.getUint8(C+1))+p.getUint8(C+2))+p.getUint8(C+3)}; opa=function(p){for(var C=new Uint8Array(p.length),V=0;V<p.length;V++)C[V]=p.charCodeAt(V);return C}; eL=function(p){return p.length?nU?nU.decode(p):String.fromCharCode.apply(null,p):""}; g.wc=function(p){if(!p.length)return"";try{if(nU)return nU.decode(p);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(p)}catch(d){}for(var C=0,V=[],N=p.length;C<N;){for(var H=0;H<1024&&C<N;){var X=p[C++];if(X<128)PH[H++]=X;else{if(X<224)X=(X&31)<<6|p[C++]&63;else if(X<240)X=(X&15)<<12|(p[C++]&63)<<6|p[C++]&63;else{if(H+1===1024){--C;break}X=(X&7)<<18|(p[C++]&63)<<12|(p[C++]&63)<<6|p[C++]&63;X-=65536;PH[H++]=55296|X>>10;X=56320|X&1023}PH[H++]=X}}X=String.fromCharCode.apply(String,PH); H<1024&&(X=X.substring(0,H));V.push(X)}return V.join("")}; LU=function(p,C){var V;if((V=$9)==null?0:V.encodeInto)return C=$9.encodeInto(p,C),C.read<p.length?p.length*4:C.written;for(var N=V=0;N<p.length;N++){var H=p.charCodeAt(N);H<128?C[V++]=H:(H<2048?C[V++]=H>>6|192:((H&64512)===55296&&N+1<p.length&&(p.charCodeAt(N+1)&64512)===56320?(H=65536+((H&1023)<<10)+(p.charCodeAt(++N)&1023),C[V++]=H>>18|240,C[V++]=H>>12&63|128):C[V++]=H>>12|224,C[V++]=H>>6&63|128),C[V++]=H&63|128)}return V}; gc=function(p){if($9)return $9.encode(p);var C=new Uint8Array(Math.ceil(p.length*1.2)),V=LU(p,C);C.length<V&&(C=new Uint8Array(V),V=LU(p,C));C.length>V&&(C=C.subarray(0,V));return C}; WH=function(p){this.T=p;this.pos=0;this.C=-1}; Q3=function(p){var C=p.T.getUint8(p.pos);++p.pos;if(C<128)return C;for(var V=C&127,N=1;C>=128;)C=p.T.getUint8(p.pos),++p.pos,N*=128,V+=(C&127)*N;return V}; rc=function(p,C){var V=p.C;for(p.C=-1;p.T.sC(p.pos,1);){V<0&&(V=Q3(p));var N=V>>3,H=V&7;if(N===C)return!0;if(N>C){p.C=V;break}V=-1;switch(H){case 0:Q3(p);break;case 1:p.pos+=8;break;case 2:N=Q3(p);p.pos+=N;break;case 5:p.pos+=4}}return!1}; BH=function(p,C){if(rc(p,C))return Q3(p)}; Gk=function(p,C){if(rc(p,C))return!!Q3(p)}; pW=function(p,C){if(rc(p,C)){C=Q3(p);var V=p.T.AB(p.pos,C);p.pos+=C;return V}}; CW=function(p,C){if(p=pW(p,C))return g.wc(p)}; js=function(p,C,V){if(p=pW(p,C))return V(new WH(new o4([p])))}; Vi=function(p,C){for(var V=[];rc(p,C);)V.push(Q3(p));return V.length?V:void 0}; Ng=function(p,C,V){for(var N=[],H;H=pW(p,C);)N.push(V(new WH(new o4([H]))));return N.length?N:void 0}; HJ=function(p,C){p=p instanceof Uint8Array?new o4([p]):p;return C(new WH(p))}; k1Q=function(p,C,V){if(C&&V&&V.buffer===C.exports.memory.buffer){var N=C.realloc(V.byteOffset,p);if(N)return new Uint8Array(C.exports.memory.buffer,N,p)}p=C?new Uint8Array(C.exports.memory.buffer,C.malloc(p),p):new Uint8Array(p);V&&p.set(V);return p}; xe1=function(p,C){this.TN=C;this.pos=0;this.C=[];this.T=k1Q(p===void 0?4096:p,C);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)}; Xq=function(p,C){C=p.pos+C;if(!(p.T.length>=C)){for(var V=p.T.length*2;V<C;)V*=2;p.T=k1Q(V,p.TN,p.T.subarray(0,p.pos));p.view=new DataView(p.T.buffer,p.T.byteOffset,p.T.byteLength)}}; d_=function(p,C){if(C>268435455){Xq(p,4);for(var V=C&1073741823,N=0;N<4;N++)p.view.setUint8(p.pos,V&127|128),V>>=7,p.pos+=1;C=Math.floor(C/268435456)}for(Xq(p,4);C>127;)p.view.setUint8(p.pos,C&127|128),C>>=7,p.pos+=1;p.view.setUint8(p.pos,C);p.pos+=1}; i8=function(p,C,V){V!==void 0&&(d_(p,C*8),d_(p,V))}; hq=function(p,C,V){V!==void 0&&i8(p,C,V?1:0)}; sF=function(p,C,V){V!==void 0&&(d_(p,C*8+2),C=V.length,d_(p,C),Xq(p,C),p.T.set(V,p.pos),p.pos+=C)}; aE=function(p,C,V){V!==void 0&&(YXX(p,C,Math.ceil(Math.log2(V.length*4+2)/7)),Xq(p,V.length*1.2),C=LU(V,p.T.subarray(p.pos)),p.pos+C>p.T.length&&(Xq(p,C),C=LU(V,p.T.subarray(p.pos))),p.pos+=C,zka(p))}; YXX=function(p,C,V){V=V===void 0?2:V;d_(p,C*8+2);p.C.push(p.pos);p.C.push(V);p.pos+=V}; zka=function(p){for(var C=p.C.pop(),V=p.C.pop(),N=p.pos-V-C;C--;){var H=C?128:0;p.view.setUint8(V++,N&127|H);N>>=7}}; EF=function(p,C,V,N,H){V&&(YXX(p,C,H===void 0?3:H),N(p,V),zka(p))}; g.l8=function(p,C,V){V=new xe1(4096,V);C(V,p);return new Uint8Array(V.T.buffer,V.T.byteOffset,V.pos)}; g.tq=function(p){var C=new WH(new o4([Fv(decodeURIComponent(p))]));p=CW(C,2);C=BH(C,4);var V=Rkv[C];if(typeof V==="undefined")throw p=new g.Bw("Failed to recognize field number",{name:"EntityKeyHelperError",EQn:C}),g.nm(p),p;return{aD:C,entityType:V,entityId:p}}; g.cJ=function(p,C){var V=new xe1;sF(V,2,gc(p));p=npH[C];if(typeof p==="undefined")throw C=new g.Bw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:C}),g.nm(C),C;i8(V,4,p);i8(V,5,1);C=new Uint8Array(V.T.buffer,V.T.byteOffset,V.pos);return encodeURIComponent(g.mq(C))}; Tf=function(p,C,V,N){if(N===void 0)return N=Object.assign({},p[C]||{}),V=(delete N[V],N),N={},Object.assign({},p,(N[C]=V,N));var H={},X={};return Object.assign({},p,(X[C]=Object.assign({},p[C],(H[V]=N,H)),X))}; ekY=function(p,C,V,N,H){var X=p[C];if(X==null||!X[V])return p;N=g.Ad(X[V],N,H==="REPEATED_FIELDS_MERGE_OPTION_APPEND");H={};X={};return Object.assign({},p,(X[C]=Object.assign({},p[C],(H[V]=N,H)),X))}; PRV=function(p,C){p=p===void 0?{}:p;switch(C.type){case "ENTITY_LOADED":return C.payload.reduce(function(N,H){var X,d=(X=H.options)==null?void 0:X.persistenceOption;if(d&&d!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&d!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return N;if(!H.entityKey)return g.nm(Error("Missing entity key")),N;if(H.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!H.payload)return g.nm(new g.Bw("REPLACE entity mutation is missing a payload",{entityKey:H.entityKey})),N;var a=g.yW(H.payload); return Tf(N,a,H.entityKey,H.payload[a])}if(H.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{H=H.entityKey;try{var E=g.tq(H).entityType;a=Tf(N,E,H);break a}catch(c){if(c instanceof Error){g.nm(new g.Bw("Failed to deserialize entity key",{entityKey:H,xD:c.message}));a=N;break a}throw c;}a=void 0}return a}if(H.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!H.payload)return g.nm(new g.Bw("UPDATE entity mutation is missing a payload",{entityKey:H.entityKey})),N;a=g.yW(H.payload);var l,t;return ekY(N,a,H.entityKey, H.payload[a],(l=H.fieldMask)==null?void 0:(t=l.mergeOptions)==null?void 0:t.repeatedFieldsMergeOption)}return N},p); case "REPLACE_ENTITY":var V=C.payload;return Tf(p,V.entityType,V.key,V.kF);case "REPLACE_ENTITIES":return Object.keys(C.payload).reduce(function(N,H){var X=C.payload[H];return Object.keys(X).reduce(function(d,a){return Tf(d,H,a,X[a])},N)},p); case "UPDATE_ENTITY":return V=C.payload,ekY(p,V.entityType,V.key,V.kF,V.drn);default:return p}}; Mg=function(p,C,V){return p[C]?p[C][V]||null:null}; Jq=function(p){return window.Int32Array?new Int32Array(p):Array(p)}; Dk=function(p){g.Y.call(this);this.counter=[0,0,0,0];this.C=new Uint8Array(16);this.T=16;if(!wCQ){var C,V=new Uint8Array(256),N=new Uint8Array(256);var H=1;for(C=0;C<256;C++)V[H]=C,N[C]=H,H^=H<<1^(H>>7&&283);mC=new Uint8Array(256);vJ=Jq(256);Fq=Jq(256);Ss=Jq(256);KW=Jq(256);for(var X=0;X<256;X++){H=X?N[255^V[X]]:0;H^=H<<1^H<<2^H<<3^H<<4;H=H&255^H>>>8^99;mC[X]=H;C=H<<1^(H>>7&&283);var d=C^H;vJ[X]=C<<24|H<<16|H<<8|d;Fq[X]=d<<24|vJ[X]>>>8;Ss[X]=H<<24|Fq[X]>>>8;KW[X]=H<<24|Ss[X]>>>8}wCQ=!0}H=Jq(44);for(V= 0;V<4;V++)H[V]=p[4*V]<<24|p[4*V+1]<<16|p[4*V+2]<<8|p[4*V+3];for(N=1;V<44;V++)p=H[V-1],V%4||(p=(mC[p>>16&255]^N)<<24|mC[p>>8&255]<<16|mC[p&255]<<8|mC[p>>>24],N=N<<1^(N>>7&&283)),H[V]=H[V-4]^p;this.key=H}; u8=function(p,C){for(var V=0;V<4;V++)p.counter[V]=C[V*4]<<24|C[V*4+1]<<16|C[V*4+2]<<8|C[V*4+3];p.T=16}; $ea=function(p){for(var C=p.key,V=p.counter[0]^C[0],N=p.counter[1]^C[1],H=p.counter[2]^C[2],X=p.counter[3]^C[3],d=3;d>=0&&!(p.counter[d]=-~p.counter[d]);d--);for(var a,E,l=4;l<40;)d=vJ[V>>>24]^Fq[N>>16&255]^Ss[H>>8&255]^KW[X&255]^C[l++],a=vJ[N>>>24]^Fq[H>>16&255]^Ss[X>>8&255]^KW[V&255]^C[l++],E=vJ[H>>>24]^Fq[X>>16&255]^Ss[V>>8&255]^KW[N&255]^C[l++],X=vJ[X>>>24]^Fq[V>>16&255]^Ss[N>>8&255]^KW[H&255]^C[l++],V=d,N=a,H=E;p=p.C;d=C[40];p[0]=mC[V>>>24]^d>>>24;p[1]=mC[N>>16&255]^d>>16&255;p[2]=mC[H>>8&255]^ d>>8&255;p[3]=mC[X&255]^d&255;d=C[41];p[4]=mC[N>>>24]^d>>>24;p[5]=mC[H>>16&255]^d>>16&255;p[6]=mC[X>>8&255]^d>>8&255;p[7]=mC[V&255]^d&255;d=C[42];p[8]=mC[H>>>24]^d>>>24;p[9]=mC[X>>16&255]^d>>16&255;p[10]=mC[V>>8&255]^d>>8&255;p[11]=mC[N&255]^d&255;d=C[43];p[12]=mC[X>>>24]^d>>>24;p[13]=mC[V>>16&255]^d>>16&255;p[14]=mC[N>>8&255]^d>>8&255;p[15]=mC[H&255]^d&255}; fW=function(){if(!Zk&&!g.G4){if(UF)return UF;var p;UF=(p=window.crypto)==null?void 0:p.subtle;var C,V,N;if(((C=UF)==null?0:C.importKey)&&((V=UF)==null?0:V.sign)&&((N=UF)==null?0:N.encrypt))return UF;UF=void 0}}; g.OF=function(p){this.S=p}; g.yi=function(p){this.C=p}; qg=function(p){this.W=new Uint8Array(64);this.V=new Uint8Array(64);this.S=0;this.Y=new Uint8Array(64);this.C=0;this.W.set(p);this.V.set(p);for(p=0;p<64;p++)this.W[p]^=92,this.V[p]^=54;this.reset()}; Lea=function(p,C,V){for(var N=p.D,H=p.T[0],X=p.T[1],d=p.T[2],a=p.T[3],E=p.T[4],l=p.T[5],t=p.T[6],c=p.T[7],T,M,J,S=0;S<64;)S<16?(N[S]=J=C[V]<<24|C[V+1]<<16|C[V+2]<<8|C[V+3],V+=4):(T=N[S-2],M=N[S-15],J=N[S-7]+N[S-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3),N[S]=J),T=c+IE[S]+J+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&l^~E&t),M=((H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10))+(H&X^H&d^X&d),c=T+M,a+=T,S++,S<16?(N[S]=J=C[V]<<24|C[V+1]<<16|C[V+2]<<8|C[V+3],V+=4):(T= N[S-2],M=N[S-15],J=N[S-7]+N[S-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3),N[S]=J),T=t+IE[S]+J+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&E^~a&l),M=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&H^c&X^H&X),t=T+M,d+=T,S++,S<16?(N[S]=J=C[V]<<24|C[V+1]<<16|C[V+2]<<8|C[V+3],V+=4):(T=N[S-2],M=N[S-15],J=N[S-7]+N[S-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3),N[S]=J),T=l+IE[S]+J+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&a^ ~d&E),M=((t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10))+(t&c^t&H^c&H),l=T+M,X+=T,S++,S<16?(N[S]=J=C[V]<<24|C[V+1]<<16|C[V+2]<<8|C[V+3],V+=4):(T=N[S-2],M=N[S-15],J=N[S-7]+N[S-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3),N[S]=J),T=E+IE[S]+J+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&d^~X&a),M=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&t^l&c^t&c),J=c,c=a,a=J,J=t,t=d,d=J,J=l,l=X,X=J,E=H+T,H=T+M,S++;p.T[0]=H+p.T[0]|0;p.T[1]=X+p.T[1]|0;p.T[2]=d+p.T[2]|0;p.T[3]= a+p.T[3]|0;p.T[4]=E+p.T[4]|0;p.T[5]=l+p.T[5]|0;p.T[6]=t+p.T[6]|0;p.T[7]=c+p.T[7]|0}; Wej=function(p){var C=new Uint8Array(32),V=64-p.C;p.C>55&&(V+=64);var N=new Uint8Array(V);N[0]=128;for(var H=p.S*8,X=1;X<9;X++){var d=H%256;N[V-X]=d;H=(H-d)/256}p.update(N);for(V=0;V<8;V++)C[V*4]=p.T[V]>>>24,C[V*4+1]=p.T[V]>>>16&255,C[V*4+2]=p.T[V]>>>8&255,C[V*4+3]=p.T[V]&255;gpS(p);return C}; gpS=function(p){p.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];p.D=[];p.D.length=64;p.S=0;p.C=0}; QxX=function(p){this.T=p}; rN9=function(p,C,V){p=new qg(p.T);p.update(C);p.update(V);C=Wej(p);p.update(p.W);p.update(C);C=Wej(p);p.reset();return C}; ByQ=function(p){this.C=p}; G1y=function(p,C,V,N){var H,X,d;return g.I(function(a){switch(a.C){case 1:if(p.T){a.EY(2);break}return g.y(a,N.importKey("raw",p.C,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:p.T=a.T;case 2:return H=new Uint8Array(C.length+V.length),H.set(C),H.set(V,C.length),X={name:"HMAC",hash:"SHA-256"},g.y(a,N.sign(X,p.T,H),4);case 4:return d=a.T,a.return(new Uint8Array(d))}})}; pls=function(p,C,V){p.V||(p.V=new QxX(p.C));return rN9(p.V,C,V)}; CVv=function(p,C,V){var N,H;return g.I(function(X){if(X.C==1){N=fW();if(!N)return X.return(pls(p,C,V));g.vv(X,3);return g.y(X,G1y(p,C,V,N),5)}if(X.C!=3)return X.return(X.T);H=g.Sa(X);g.eG(H);Zk=!0;return X.return(pls(p,C,V))})}; VFy=function(p){for(var C="",V=0;V<p.length;V++){var N=p[V];if(V===0)N="M "+N.x.toFixed(1)+","+N.y.toFixed(1);else{var H=jhX(p[V-1],p[V-2],N),X=jhX(N,p[V-1],p[V+1],!0);N=" C "+(H.x.toFixed(1)+","+H.y.toFixed(1)+" "+X.x.toFixed(1)+","+X.y.toFixed(1)+" "+N.x.toFixed(1)+","+N.y.toFixed(1))}C+=N}return C}; jhX=function(p,C,V,N){N=N===void 0?!1:N;C=new N$S(C||p,V||p);return{x:p.x+((N===void 0?0:N)?C.T*-1:C.T)*.2,y:p.y+((N===void 0?0:N)?C.C*-1:C.C)*.2}}; N$S=function(p,C){this.C=this.T=0;this.T=C.x-p.x;this.C=C.y-p.y}; dMY=function(p,C){var V,N,H;return g.I(function(X){if(X.C==1)return V={context:g.Za(),settingItemIds:C},N=g.On(H1u),g.y(X,g.E0(p,V,N),2);H=X.T;return!H||H.errorMetadata?(XlS("GetSettingValuesRequest",H),X.return(void 0)):X.return(H.settingValues)})}; hI9=function(p,C,V){var N,H,X;g.I(function(d){if(d.C==1)return N={context:g.Za(),settingItemId:C,newValue:V},H=g.On(i1Q),g.y(d,g.E0(p,N,H),2);X=d.T;if(!X||X.errorMetadata)return XlS("SetSettingRequest",X),d.return(void 0);g.JQ(d)})}; XlS=function(p,C){C?C.errorMetadata&&g.eG(new g.Bw(p+" failed with status "+C.errorMetadata.status)):g.eG(new g.Bw(p+" failed with empty response"))}; b8=function(p,C,V){if(!C)return p.length>=1?p[p.length-1]:null;for(var N=g.F(p),H=N.next();!H.done;H=N.next())if(H=H.value,H.width&&H.height&&(V&&H.width>=C||!V&&H.height>=C))return H;for(C=p.length-1;C>=0;C--)if(V&&p[C].width||!V&&p[C].height)return p[C];return p[0]}; Aq=function(){this.state=1;this.w7=null}; a91=function(p,C,V,N,H,X){var d=d===void 0?"trayride":d;V?(p.UZ(2),g.md(V,function(){if(window[d])shv(p,N,d,H);else{p.UZ(3);var a=fDS(V),E=document.getElementById(a);E&&(Zd1(a),E.parentNode.removeChild(E));g.eG(new g.Bw("Unable to load Botguard","from "+V))}},X)):C?(X=g.iK("SCRIPT"),C instanceof Q5?(X.textContent=rV(C),Bn(X)):X.textContent=C,X.nonce=Wn(window),document.head.appendChild(X),document.head.removeChild(X),window[d]?shv(p,N,d,H):(p.UZ(4),g.eG(new g.Bw("Unable to load Botguard from JS")))): g.eG(new g.Bw("Unable to load VM; no url or JS provided"))}; shv=function(p,C,V,N){p.UZ(5);try{var H=new U$({program:C,globalName:V,OW:{disable:!g.Zr("att_web_record_metrics"),SU:"aGIf"}});H.Or.then(function(){p.UZ(6);N&&N(C)}); p.f2(H)}catch(X){p.UZ(7),X instanceof Error&&g.eG(X)}}; oE=function(){var p=g.zV("yt.abuse.playerAttLoader");return p&&["bgvma","bgvmb","bgvmc"].every(function(C){return C in p})?p:null}; kY=function(){Aq.apply(this,arguments)}; xY=function(){}; EJX=function(p,C,V){for(var N=!1,H=g.F(p.jU.entries()),X=H.next();!X.done;X=H.next())X=g.F(X.value).next().value,X.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X.Br==="core"&&(N=!0);if(N){a:if(!V){p=g.F(p.jU.entries());for(V=p.next();!V.done;V=p.next())if(N=g.F(V.value),V=N.next().value,N=N.next().value,V.slotType==="SLOT_TYPE_IN_PLAYER"&&V.Br==="core"){V=N.layoutId;break a}V=void 0}V?C.lI(V):S2("No triggering layout ID available when attempting to mute.")}}; YY=function(p,C){this.I8=p;this.Bp=C}; zf=function(){}; RE=function(){}; tF9=function(p){g.Y.call(this);var C=this;this.YG=p;this.T=new Map;nW(this,"commandExecutorCommand",function(V,N,H){l9s(C,V.commands,N,H)}); nW(this,"clickTrackingParams",function(){})}; c3e=function(p,C){nW(p,C.sK(),function(V,N,H){C.uO(V,N,H)})}; nW=function(p,C,V){p.fS();p.T.get(C)&&g.nm(Error("Extension name "+C+" already registered"));p.T.set(C,V)}; l9s=function(p,C,V,N){C=C===void 0?[]:C;p.fS();var H=[],X=[];C=g.F(C);for(var d=C.next();!d.done;d=C.next())d=d.value,g.n(d,T$V)||g.n(d,MF9)?H.push(d):X.push(d);H=g.F(H);for(C=H.next();!C.done;C=H.next())es(p,C.value,V,N);X=g.F(X);for(H=X.next();!H.done;H=X.next())es(p,H.value,V,N)}; es=function(p,C,V,N){p.fS();C.loggingUrls&&J3Q(p,"loggingUrls",C.loggingUrls,V,N);C=g.F(Object.entries(C));for(var H=C.next();!H.done;H=C.next()){var X=g.F(H.value);H=X.next().value;X=X.next().value;H==="openPopupAction"?p.YG.get().FU("innertubeCommand",{openPopupAction:X}):H==="confirmDialogEndpoint"?p.YG.get().FU("innertubeCommand",{confirmDialogEndpoint:X}):mMQ.hasOwnProperty(H)||J3Q(p,H,X,V,N)}}; J3Q=function(p,C,V,N,H){if((p=p.T.get(C))&&typeof p==="function")try{p(V,N,H)}catch(X){g.nm(X)}else C=new g.Bw("Unhandled field",C),g.eG(C)}; PJ=function(p,C,V){this.w6=p;this.T=C;this.No=V}; w_=function(p){this.value=p}; $Y=function(p){this.value=p}; LW=function(p){this.value=p}; g_=function(p){this.value=p}; WJ=function(p){this.value=p}; Qi=function(p){this.value=p}; r_=function(p){this.value=p}; BJ=function(){w_.apply(this,arguments)}; Gf=function(p){this.value=p}; pF=function(p){this.value=p}; CF=function(p){this.value=p}; jT=function(p){this.value=p}; Vy=function(p){this.value=p}; NG=function(p){this.value=p}; HV=function(p){this.value=p}; Xw=function(p){this.value=p}; dg=function(p){this.value=p}; i6=function(p){this.value=p}; ha=function(){w_.apply(this,arguments)}; sr=function(p){this.value=p}; aw=function(p){this.value=p}; Er=function(p){this.value=p}; l6=function(p){this.value=p}; ta=function(p){this.value=p}; cV=function(p){this.value=p}; Tc=function(p){this.value=p}; MG=function(p){this.value=p}; Ja=function(p){this.value=p}; mt=function(p){this.value=p}; vV=function(p){this.value=p}; Fw=function(p){this.value=p}; ST=function(p){this.value=p}; KF=function(p){this.value=p}; DS=function(p){this.value=p}; u6=function(p){this.value=p}; ZS=function(p){this.value=p}; Ur=function(p){this.value=p}; fF=function(p){this.value=p}; Or=function(p){this.value=p}; yy=function(p){this.value=p}; qG=function(p){this.value=p}; Iw=function(p){this.value=p}; b6=function(p){this.value=p}; Aa=function(p){this.value=p}; ow=function(p){this.value=p}; k_=function(p){this.value=p}; x_=function(p){this.value=p}; Y_=function(p){this.value=p}; zc=function(p){this.value=p}; Rw=function(p){this.value=p}; nF=function(p){this.value=p}; eT=function(p){this.value=p}; PV=function(p){this.value=p}; wg=function(p){this.value=p}; $_=function(p){this.value=p}; LF=function(p){this.value=p}; gg=function(p){this.value=p}; WV=function(){w_.apply(this,arguments)}; Qy=function(p){this.value=p}; rg=function(){w_.apply(this,arguments)}; BV=function(){w_.apply(this,arguments)}; Gc=function(){w_.apply(this,arguments)}; pP=function(){w_.apply(this,arguments)}; CP=function(){w_.apply(this,arguments)}; jU=function(p){this.value=p}; VV=function(p){this.value=p}; Nz=function(p){this.value=p}; HU=function(p){this.value=p}; XJ=function(p){this.value=p}; iH=function(p,C,V){if(V&&!V.includes(p.layoutType))return!1;C=g.F(C);for(V=C.next();!V.done;V=C.next())if(!dt(p.clientMetadata,V.value))return!1;return!0}; h4=function(){return""}; vJu=function(p,C){switch(p){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return C(p),8}}; sf=function(p,C,V,N){N=N===void 0?!1:N;c5.call(this,p);this.jO=V;this.Wb=N;this.args=[];C&&this.args.push(C)}; G=function(p,C,V,N){N=N===void 0?!1:N;c5.call(this,p);this.jO=V;this.Wb=N;this.args=[];C&&this.args.push(C)}; a3=function(p){var C=new Map;p.forEach(function(V){C.set(V.getType(),V)}); this.T=C}; dt=function(p,C){return p.T.has(C)}; Ef=function(p,C){p=p.T.get(C);if(p!==void 0)return p.get()}; lH=function(p){return Array.from(p.T.keys())}; t4=function(p,C,V){if(V&&V!==p.slotType)return!1;C=g.F(C);for(V=C.next();!V.done;V=C.next())if(!dt(p.clientMetadata,V.value))return!1;return!0}; SIv=function(p){var C;return((C=Fdv.get(p))==null?void 0:C.MA)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Tm=function(p,C){var V={type:C.slotType,controlFlowManagerLayer:KdH.get(C.Br)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};C.slotEntryTrigger&&(V.entryTriggerType=C.slotEntryTrigger.triggerType);C.slotPhysicalPosition!==1&&(V.slotPhysicalPosition=C.slotPhysicalPosition);if(p){V.debugData={slotId:C.slotId};if(p=C.slotEntryTrigger)V.debugData.slotEntryTriggerData=cU(p);p=C.slotFulfillmentTriggers;V.debugData.fulfillmentTriggerData=[];p=g.F(p);for(var N=p.next();!N.done;N=p.next())V.debugData.fulfillmentTriggerData.push(cU(N.value)); C=C.slotExpirationTriggers;V.debugData.expirationTriggerData=[];C=g.F(C);for(p=C.next();!p.done;p=C.next())V.debugData.expirationTriggerData.push(cU(p.value))}return V}; DM1=function(p,C){var V={type:C.layoutType,controlFlowManagerLayer:KdH.get(C.Br)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};p&&(V.debugData={layoutId:C.layoutId});return V}; cU=function(p,C){var V={type:p.triggerType};C!=null&&(V.category=C);p.triggeringSlotId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedSlotId=p.triggeringSlotId);p.triggeringLayoutId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedLayoutId=p.triggeringLayoutId);return V}; u39=function(p,C,V,N){C={opportunityType:C};p&&(N||V)&&(N=g.AU(N||[],function(H){return Tm(p,H)}),C.debugData=Object.assign({},V&&V.length>0?{associatedSlotId:V}:{},N.length>0?{slots:N}:{})); return C}; J4=function(p,C){return function(V){return Z1L(Mz(p),C.slotId,C.slotType,C.slotPhysicalPosition,C.Br,C.slotEntryTrigger,C.slotFulfillmentTriggers,C.slotExpirationTriggers,V.layoutId,V.layoutType,V.Br)}}; Z1L=function(p,C,V,N,H,X,d,a,E,l,t){return{adClientDataEntry:{slotData:Tm(p,{slotId:C,slotType:V,slotPhysicalPosition:N,Br:H,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:a,clientMetadata:new a3([])}),layoutData:DM1(p,{layoutId:E,layoutType:l,Br:t,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],y$:new Map,clientMetadata:new a3([]),eb:{}})}}}; vU=function(p){this.x_=p;p=Math.random();var C=this.x_.get();C=g.mi(C.N.K().experiments,"html5_debug_data_log_probability");C=Number.isFinite(C)&&C>=0&&C<=1?C:0;this.T=p<C}; Mz=function(p){return p.T||p.x_.get().N.K().G("html5_force_debug_data_for_client_tmp_logs")}; FJ=function(p,C,V,N){g.Y.call(this);this.C=C;this.hQ=V;this.x_=N;this.T=p(this,this,this,this,this);g.R(this,this.T);p=g.F(C);for(C=p.next();!C.done;C=p.next())g.R(this,C.value)}; SU=function(p,C){p.C.add(C)}; KP=function(p,C){p.C.delete(C)}; uH=function(p,C,V,N){S2(V,C,void 0,void 0,V.Wb);V.jO?p.hQ.Yb(N,V.jO,C):S2("adsClientErrorMessage is missing.",C);Dc(p,C,!0)}; f9Q=function(p,C,V){if(Zc(p.T,C))if(Uf(p.T,C).S=V?"filled":"not_filled",V===null){p.hQ.Rd("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",C);V=g.F(p.C);for(var N=V.next();!N.done;N=V.next())N.value.Id(C);Dc(p,C,!1)}else{p.hQ.Rd("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",C,V);p.hQ.Rd("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",C,V);var H,X=(H=V.HK)!=null?H:Ef(V.clientMetadata,"metadata_type_sub_layouts");if(X)for(H=g.F(X),X=H.next();!X.done;X=H.next())p.hQ.Rd("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED", C,X.value);H=g.F(p.C);for(X=H.next();!X.done;X=H.next())X.value.ri(C);if(Zc(p.T,C))if(Uf(p.T,C).W)Dc(p,C,!1);else{p.hQ.Rd("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",C,V);try{N=p.T;if(!Uf(N,C))throw new sf("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!N.E8.tx.get(C.slotType))throw new sf("No LayoutRenderingAdapterFactory registered for slot of type: "+C.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY"); if(V.layoutExitNormalTriggers.length==0&&V.layoutExitSkipTriggers.length==0&&V.layoutExitMuteTriggers.length==0&&V.layoutExitUserInputSubmittedTriggers.length==0&&V.f1.length==0)throw new sf("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");fP(N,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",V.layoutExitNormalTriggers);fP(N,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",V.layoutExitSkipTriggers);fP(N,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",V.layoutExitMuteTriggers); fP(N,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",V.layoutExitUserInputSubmittedTriggers);fP(N,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",V.f1)}catch(l){l instanceof sf?p.OV(C,V,l,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):p.OV(C,V,new sf("Unexpected error: "+l,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");Dc(p,C,!0);return}Uf(p.T,C).Y=!0;try{var d=p.T,a=Uf(d,C),E=d.E8.tx.get(C.slotType).get().build(d.S,d.C,C,V);E.init();a.layout= V;if(a.V)throw new sf("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");a.V=E;Of(d,a,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",V.layoutExitNormalTriggers);Of(d,a,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",V.layoutExitSkipTriggers);Of(d,a,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",V.layoutExitMuteTriggers);Of(d,a,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",V.layoutExitUserInputSubmittedTriggers);Of(d,a,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED", V.f1)}catch(l){yV(p,C);l instanceof sf?p.OV(C,V,l,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):p.OV(C,V,new sf("Unexpected error: "+l,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");Dc(p,C,!0);return}p.hQ.Rd("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",C,V);N=g.F(p.C);for(d=N.next();!d.done;d=N.next())d.value.Jp(C,V);yV(p,C);UMS(p,C)}else p=p.x_.get(),g.qz(p.N.K())||I3(p.N.K())||g.bH(p.N.K())?p=!0:(S2("Composite VOD on legacy path."),p=!1),p&&S2("slot is unscheduled after been fulfilled.", C,V)}}; O1Q=function(p,C,V){C.Br!=="core"&&p.hQ.Rd("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",C,V,void 0)}; y31=function(p,C,V){p.hQ.Rd("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",C,V,void 0);p=g.F(p.C);for(var N=p.next();!N.done;N=p.next())N.value.Jp(C,V)}; qIS=function(p,C,V){p=g.F(p.C);for(var N=p.next();!N.done;N=p.next())N.value.yf(C,V)}; A4=function(p,C,V){p.hQ.Rd("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",C,V,void 0);p=g.F(p.C);for(var N=p.next();!N.done;N=p.next())N.value.gy(C,V)}; o3=function(p,C,V,N){p.hQ.Rd(SIv(N),C,V,void 0);p=g.F(p.C);for(var H=p.next();!H.done;H=p.next())H.value.C1(C,V,N)}; yV=function(p,C){if(Zc(p.T,C)){Uf(p.T,C).Y=!1;var V=k6;C=Uf(p.T,C);var N=[].concat(g.K(C.J));B1H(C.J);V(p,N)}}; k6=function(p,C){C.sort(function(X,d){function a(E){S2("TriggerCategoryOrder enum does not contain trigger category: "+E)} return X.category===d.category?X.trigger.triggerId.localeCompare(d.trigger.triggerId):vJu(X.category,a)-vJu(d.category,a)}); var V=new Map;C=g.F(C);for(var N=C.next();!N.done;N=C.next())if(N=N.value,Zc(p.T,N.slot))if(Uf(p.T,N.slot).Y)Uf(p.T,N.slot).J.push(N);else{p.hQ.KK("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",N.slot,N,N.layout);var H=V.get(N.category);H||(H=[]);H.push(N);V.set(N.category,H)}C=g.F(I9H);for(N=C.next();!N.done;N=C.next())H=g.F(N.value),N=H.next().value,H=H.next().value,(N=V.get(N))&&b1V(p,N,H);(C=V.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&A3L(p,C);(C=V.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&oJa(p, C);(V=V.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&k71(p,V)}; b1V=function(p,C,V){C=g.F(C);for(var N=C.next();!N.done;N=C.next())N=N.value,N.layout&&x6(p.T,N.slot)&&xMa(p,N.slot,N.layout,V)}; A3L=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next())Dc(p,V.value.slot,!1)}; oJa=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;a:switch(Uf(p.T,V.slot).S){case "not_filled":var N=!0;break a;default:N=!1}N&&(p.hQ.Qr("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",V.slot),p.T.BO(V.slot))}}; k71=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;p.hQ.Qr("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",V.slot);for(var N=g.F(p.C),H=N.next();!H.done;H=N.next())H.value.s8(V.slot);try{var X=p.T,d=V.slot,a=Uf(X,d);if(!a)throw new G("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!a.C)throw new G("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(a.T!=="scheduled")throw new G("Tried to enter a slot from stage: "+ a.T,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(Y6(a))throw new G("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var E=g.F(zm(X,d.slotType+"_"+d.slotPhysicalPosition).values()),l=E.next();!l.done;l=E.next()){var t=l.value;if(a!==t&&Y6(t))throw new G("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:t.T},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(c){c instanceof G&&c.jO?(p.hQ.Yb("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED", c.jO,V.slot),S2(c,V.slot,R3(p.T,V.slot),void 0,c.Wb)):(p.hQ.Yb("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",V.slot),S2(c,V.slot));Dc(p,V.slot,!0);continue}V=Uf(p.T,V.slot);V.T!=="scheduled"&&nP(V.slot,V.T,"enterSlot");V.T="enter_requested";V.C.gK()}}; UMS=function(p,C){if(Zc(p.T,C)&&Y6(Uf(p.T,C))&&R3(p.T,C)&&!x6(p.T,C)){var V;p.hQ.Rd("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",C,(V=R3(p.T,C))!=null?V:void 0);p=Uf(p.T,C);p.T!=="entered"&&nP(p.slot,p.T,"enterLayoutForSlot");p.T="rendering";p.V.startRendering(p.layout)}}; xMa=function(p,C,V,N){if(Zc(p.T,C)){var H=p.hQ,X=H.Rd,d;var a=((d=Fdv.get(N))==null?void 0:d.OA)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";X.call(H,a,C,V);p=Uf(p.T,C);p.T!=="rendering"&&nP(p.slot,p.T,"exitLayout");p.T="rendering_stop_requested";p.V.XO(V,N)}}; Dc=function(p,C,V){if(Zc(p.T,C)){a:switch(Uf(p.T,C).T){case "exit_requested":var N=!0;break a;default:N=!1}if(!N)a:switch(Uf(p.T,C).T){case "rendering_stop_requested":N=!0;break a;default:N=!1}if(N&&(Uf(p.T,C).W=!0,!V))return;if(Y6(Uf(p.T,C)))Uf(p.T,C).W=!0,YIj(p,C,V);else{a:switch(Uf(p.T,C).S){case "fill_requested":V=!0;break a;default:V=!1}if(V)Uf(p.T,C).W=!0,Zc(p.T,C)&&(p.hQ.Qr("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",C),C=Uf(p.T,C),C.S="fill_cancel_requested",C.D.U9());else{V= R3(p.T,C);(N=p.x_.get().N.K().experiments.OY("h5_enable_layout_unscheduling_events"))&&(V?p.yf(C,V):S2(Error("Layout is null for LayoutUnscheduled event."),C,V,void 0,!1));p.hQ.Qr("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",C);var H=Uf(p.T,C),X=C.slotEntryTrigger,d=H.sY.get(X.triggerId);d&&(d.Dr(X),H.sY.delete(X.triggerId));X=g.F(C.slotFulfillmentTriggers);for(d=X.next();!d.done;d=X.next()){d=d.value;var a=H.a$.get(d.triggerId);a&&(a.Dr(d),H.a$.delete(d.triggerId))}X=g.F(C.slotExpirationTriggers); for(d=X.next();!d.done;d=X.next())if(d=d.value,a=H.Z.get(d.triggerId))a.Dr(d),H.Z.delete(d.triggerId);H.layout!=null&&(X=H.layout,eU(H,X.layoutExitNormalTriggers),eU(H,X.layoutExitSkipTriggers),eU(H,X.layoutExitMuteTriggers),eU(H,X.layoutExitUserInputSubmittedTriggers),eU(H,X.f1));H.D=void 0;H.C!=null&&(H.C.release(),H.C=void 0);H.V!=null&&(H.V.release(),H.V=void 0);H=p.T;Uf(H,C)&&(H=zm(H,C.slotType+"_"+C.slotPhysicalPosition))&&H.delete(C.slotId);p.hQ.Qr("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED", C);p=g.F(p.C);for(H=p.next();!H.done;H=p.next())H=H.value,H.Vx(C),V&&!N&&H.yf(C,V)}}}}; YIj=function(p,C,V){if(Zc(p.T,C)&&Y6(Uf(p.T,C))){var N=R3(p.T,C);if(N&&x6(p.T,C))xMa(p,C,N,V?"error":"abandoned");else{p.hQ.Qr("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",C);try{var H=Uf(p.T,C);if(!H)throw new G("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");H.T!=="enter_requested"&&H.T!=="entered"&&H.T!=="rendering"&&nP(H.slot,H.T,"exitSlot");H.T="exit_requested";if(H.C===void 0)throw H.T="scheduled",new G("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");H.C.Jj()}catch(X){X instanceof G&&X.jO?(p.hQ.Yb("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",X.jO,C),S2(X,C,void 0,void 0,X.Wb)):(p.hQ.Yb("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",C),S2(X,C))}}}}; zIs=function(p){this.slot=p;this.sY=new Map;this.a$=new Map;this.Z=new Map;this.b_=new Map;this.V=this.layout=this.C=this.D=void 0;this.Y=this.W=!1;this.J=[];this.T="not_scheduled";this.S="not_filled"}; Y6=function(p){return p.T==="enter_requested"||p.isActive()}; PU=function(p,C,V,N,H,X){g.Y.call(this);this.E8=p;this.V=C;this.W=V;this.S=N;this.C=H;this.x_=X;this.T=new Map}; zm=function(p,C){return(p=p.T.get(C))?p:new Map}; Uf=function(p,C){return zm(p,C.slotType+"_"+C.slotPhysicalPosition).get(C.slotId)}; RIX=function(p){var C=[];p.T.forEach(function(V){V=g.F(V.values());for(var N=V.next();!N.done;N=V.next())C.push(N.value.slot)}); return C}; Zc=function(p,C){return Uf(p,C)!=null}; x6=function(p,C){p=Uf(p,C);if(C=p.layout!=null)a:switch(p.T){case "rendering":case "rendering_stop_requested":C=!0;break a;default:C=!1}return C}; R3=function(p,C){(p=Uf(p,C))?p.layout!=null&&!p.layout&&S2("Unexpected empty layout",C):S2("Unexpected undefined slotState",C);return(p==null?void 0:p.layout)||null}; wt=function(p,C,V){if(V.length==0)throw new G("No "+nJQ.get(C)+" triggers found for slot.",void 0,eIY(C));V=g.F(V);for(var N=V.next();!N.done;N=V.next())if(N=N.value,!p.E8.D_.get(N.triggerType))throw new G("No trigger adapter registered for "+C+" trigger of type: "+N.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; eIY=function(p){switch(p){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}}; fP=function(p,C,V){V=g.F(V);for(var N=V.next();!N.done;N=V.next())if(N=N.value,!p.E8.D_.get(N.triggerType))throw new sf("No trigger adapter registered for "+nJQ.get(C)+" trigger of type: "+N.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; Of=function(p,C,V,N){N=g.F(N);for(var H=N.next();!H.done;H=N.next()){H=H.value;var X=p.E8.D_.get(H.triggerType);X.HB(V,H,C.slot,C.layout?C.layout:null);C.b_.set(H.triggerId,X)}}; eU=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=p.b_.get(V.triggerId);N&&(N.Dr(V),p.b_.delete(V.triggerId))}}; nP=function(p,C,V){S2("Slot stage was "+C+" when calling method "+V,p)}; PVS=function(p){return $6(p.T3).concat($6(p.D_)).concat($6(p.MG)).concat($6(p.LT)).concat($6(p.tx))}; $6=function(p){var C=[];p=g.F(p.values());for(var V=p.next();!V.done;V=p.next())V=V.value,V.lc&&C.push(V);return C}; LP=function(p){g.Y.call(this);var C=this;this.T=p;this.instance=null;this.addOnDisposeCallback(function(){g.iP(C.instance);C.instance=null})}; gt=function(p){return new LP(p)}; WU=function(p){g.Y.call(this);this.T=p;this.C=wlX(this)}; wlX=function(p){var C=new FJ(function(V,N,H,X){return new PU(p.T.E8,V,N,H,X,p.T.x_)},new Set(PVS(p.T.E8).concat(p.T.listeners)),p.T.hQ,p.T.x_); g.R(p,C);return C}; QV=function(p){this.T=p}; rt=function(p,C,V){l9s(p.T(),C,V)}; BU=function(p,C,V,N){(p=p.T())||S2("Could not initiate a command router instance.");es(p,C,V,N)}; Gm=function(){this.listeners=new Set}; ps=function(p){this.x_=p}; $MV=function(p,C){var V=C.bgp&&C.bgub,N=!!C.upb;C.siub&&C.scs&&(V||N)&&(N&&Cs(p.x_.get(),"html5_export_sodar_snapshot")?zo().then(function(H){H=H.snapshot.bind(H);g.YH("yt.abuse.playerAttLoaderRun",H);CZe(C.siub,C.scs,C.bgub,C.bgp,C.upb)}):CZe(C.siub,C.scs,C.bgub,C.bgp,C.upb))}; Ld9=function(p,C,V,N,H){this.callback=p;this.slot=C;this.C=V;this.Mt=N;this.x_=H;this.T=null}; WdQ=function(p,C,V,N){p.T&&S2("Currently active request ongoing for slot. This should never happen",p.slot);p.T=C();p.T.then(function(H){p.T=null;N&&N(H);var X=H.cC?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",d=p.C.get(),a=p.slot.slotId,E=J4(p.Mt.get(),{slotId:p.slot.slotId,slotType:p.slot.slotType,slotPhysicalPosition:p.slot.slotPhysicalPosition,Br:p.slot.Br,slotEntryTrigger:p.slot.slotEntryTrigger,slotFulfillmentTriggers:p.slot.slotFulfillmentTriggers,slotExpirationTriggers:p.slot.slotExpirationTriggers}), l=jY(d.C.get(),X,a),t={layoutId:l,layoutType:X,Br:"core"};H={layoutId:l,layoutType:X,y$:new Map,layoutExitNormalTriggers:[new gJj(d.T,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new wg(H)]),eb:E(t)};f9Q(p.callback,p.slot,H)},function(H){p.T=null; V&&V();H instanceof q7||uH(p.callback,p.slot,new G(H,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; QhS=function(p){if(p.T==null)p.callback.IR(p.slot);else try{p.T.cancel(),p.T=null,p.callback.IR(p.slot)}catch(C){p.T=null,uH(p.callback,p.slot,new G(C,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; V6=function(p,C,V,N){!p&&(V===void 0?0:V)&&g.eG(Error("Player URL validator detects invalid url. "+(N===void 0?"":N)+": "+C));return p}; No=function(p,C){return C&&C.test(p)?!0:!1}; H8=function(p){return(p=r3v&&r3v.exec(p))?p[0]:""}; XY=function(p){var C=C===void 0?!1:C;return V6(No(p,B$9),p,C,"Trusted Stream URL")}; g.dn=function(p){var C=C===void 0?!1:C;return V6(No(p,G7a),p,C,"Trusted Image URL")}; Czv=function(p){var C=C===void 0?!1:C;return V6(No(p,pQL),p,C,"Trusted Promoted Video Domain URL")}; VGe=function(p){var C=C===void 0?!1:C;return V6(No(p,jWy),p,C,"Drm Licensor URL")}; Hmy=function(p,C){C=C===void 0?!1:C;return V6(No(p,N7y),p,C,"Captions URL")}; XQ9=function(p){p=new g.SZ(p);g.KE(p,document.location.protocol);g.Dq(p,document.location.hostname);document.location.port&&g.up(p,document.location.port);return p.toString()}; iG=function(p){p=new g.SZ(p);g.KE(p,document.location.protocol);return p.toString()}; g.sz=function(p,C,V){V=V===void 0?{}:V;this.start=p;this.end=C;this.active=!0;this.color="";this.SI=0;this.C=dYX++;this.id=V.id||"";this.priority=V.priority||9;this.visible=V.visible||!1;this.style=V.style||hy.AD_MARKER;this.namespace=V.namespace||"";if(p=V.color)p=p.toString(16),this.color="#"+Array(7-p.length).join("0")+p;this.tooltip=V.tooltip;this.icons=V.icons?V.icons.filter(function(N){return g.oo(N.thumbnails,function(H){return g.dn(H.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; im1=function(p){return p===-0x8000000000000?"BEFORE_MEDIA_START":p===0?"MEDIA_START":p===0x7ffffffffffff?"MEDIA_END":p===0x8000000000000?"AFTER_MEDIA_END":p.toString()}; hYv=function(p,C){switch(p.style){case hy.CHAPTER_MARKER:return C?8:5;case hy.AD_MARKER:return 6;case hy.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.aj=function(p,C){return p.start-C.start||p.priority-C.priority||p.C-C.C}; g.Ez=function(p){return"crn_"+p}; g.lG=function(p){return"crx_"+p}; ty=function(p,C,V,N,H,X,d,a,E){this.slot=C;this.C=V;this.No=d;this.mx=a;this.kG=E;this.T=new Ld9(p,C,N,H,X)}; sWV=function(p){var C;(C=p.kG)==null||C.get().TE(Ef(p.slot.clientMetadata,"metadata_type_cue_point").identifier)}; c8=function(p,C,V,N,H,X){this.slot=C;this.T=V;this.C=new Ld9(p,C,N,H,X)}; Tl=function(p,C){this.callback=p;this.slot=C}; Mo=function(p,C){return t4(p,C.a6,C.slotType)?!0:!1}; Jy=function(){}; mk=function(p,C,V,N,H,X,d){this.T=p;this.C=C;this.Mt=V;this.x_=N;this.No=H;this.mx=X;this.kG=d}; v8=function(){}; aES=function(p,C,V,N,H,X){this.callback=p;this.slot=C;this.layout=V;this.V=N;this.T=H;this.C=X}; lEV=function(p){if(Ef(p.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var C=EGu(p,p.slot);FY(p.T.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[C]})}}; tGY=function(p){if(Ef(p.slot.clientMetadata,"metadata_type_prefetch_metadata")){var C=EGu(p,p.slot);FY(p.T.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[C]})}}; EGu=function(p,C){var V=SY(p.C.get(),p.slot.slotType),N=Object,H=N.assign;p=p.slot;if(C.slotEntryTrigger){var X=C.slotId;var d=C.slotEntryTrigger;X=d.triggeringSlotId!=null&&d.triggeringSlotId===X?d.clone(V):d}else X=void 0;return H.call(N,{},p,{slotId:V,slotEntryTrigger:X,slotFulfillmentTriggers:cGX(C.slotId,V,C.slotFulfillmentTriggers),slotExpirationTriggers:cGX(C.slotId,V,C.slotExpirationTriggers)})}; cGX=function(p,C,V){var N=[];V=g.F(V);for(var H=V.next();!H.done;H=V.next()){var X=N,d=X.push;var a=p;var E=C;H=H.value;a=H.triggeringSlotId!=null&&H.triggeringSlotId===a?H.clone(E):H;d.call(X,a)}return N}; g.Ks=function(p,C){for(var V=g.F(Object.keys(C)),N=V.next(),H={};!N.done;H={placeholder:void 0},N=V.next())N=N.value,H.placeholder=C[N],p=p.replace(new RegExp("\\$"+N,"gi"),function(X){return function(){return X.placeholder}}(H)); return p}; T7V=function(p,C,V){this.T=p;this.slot=C;this.layout=V}; Dl=function(p,C,V){C.layoutId!==p.layout.layoutId?p.T.OV(p.slot,C,new sf("Unknown layout received. Required LayoutId: "+p.layout.layoutId+("and LayoutType: "+p.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):V()}; uG=function(p,C,V,N){g.ca.call(this);this.callback=p;this.V=N;this.T=[];this.C=new T7V(p,C,V)}; Uz=function(p,C,V,N,H,X,d,a){N=N||Ef(V.clientMetadata,X);p=Zl(p);var E=KJ(function(){H.gy(C,V)}); a.push(d(N,p,V.layoutId,{adsClientData:V.eb},function(){E()}))}; Oz=function(p,C,V,N,H,X,d,a,E){if(C===p)if(E){if(E===a.layoutId){a:{p=g.F(V.keys());for(C=p.next();!C.done;C=p.next())if(C=C.value,C.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X===V.get(C).layoutId){V=!0;break a}V=!1}V?fs(N,1):H?H():S2("Tried to call engagePingCallback but it is null",d,a)}}else S2("Companion AdUxClick received without a layoutId",d,a)}; y6=function(p){var C,V,N,H,X;return!((C=p.get("active_view_viewable"))==null||!C.length)||!((V=p.get("active_view_measurable"))==null||!V.length)||!((N=p.get("active_view_fully_viewable_audible_half_duration"))==null||!N.length)||!((H=p.get("audio_audible"))==null||!H.length)||!((X=p.get("audio_measurable"))==null||!X.length)}; qo=function(p){var C,V;return(V=p==null?void 0:(C=p.activeViewTracking)==null?void 0:C.trafficType)!=null?V:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Ij=function(p){var C,V;return new Map([["impression",p.impressionPings||[]],["error",p.errorPings||[]],["mute",p.mutePings||[]],["unmute",p.unmutePings||[]],["pause",p.pausePings||[]],["rewind",p.rewindPings||[]],["resume",p.resumePings||[]],["skip",p.skipPings||[]],["swipe",p.swipePings||[]],["close",p.closePings||[]],["progress",p.progressPings||[]],["clickthrough",p.clickthroughPings||[]],["fullscreen",p.fullscreenPings||[]],["active_view_viewable",p.activeViewViewablePings||[]],["active_view_measurable", p.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",p.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((C=p.activeViewTracking)==null?void 0:C.activeViewAudioAudiblePings)||[]],["audio_measurable",((V=p.activeViewTracking)==null?void 0:V.activeViewAudioMeasurablePings)||[]],["end_fullscreen",p.endFullscreenPings||[]],["channel_clickthrough",p.channelClickthroughPings||[]],["abandon",p.abandonPings||[]],["start",p.startPings||[]],["first_quartile", p.firstQuartilePings||[]],["midpoint",p.secondQuartilePings||[]],["third_quartile",p.thirdQuartilePings||[]],["complete",p.completePings||[]],["unmuted_impression",p.unmutedImpressionPings||[]],["unmuted_error",p.unmutedErrorPings||[]],["unmuted_mute",p.unmutedMutePings||[]],["unmuted_unmute",p.unmutedUnmutePings||[]],["unmuted_pause",p.unmutedPausePings||[]],["unmuted_resume",p.unmutedResumePings||[]],["unmuted_close",p.unmutedClosePings||[]],["unmuted_progress",p.unmutedProgressPings||[]],["unmuted_clickthrough", p.unmutedClickthroughPings||[]],["unmuted_fullscreen",p.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",p.unmutedEndFullscreenPings||[]],["unmuted_abandon",p.unmutedAbandonPings||[]],["unmuted_start",p.unmutedStartPings||[]],["unmuted_first_quartile",p.unmutedFirstQuartilePings||[]],["unmuted_midpoint",p.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",p.unmutedThirdQuartilePings||[]],["unmuted_complete",p.unmutedCompletePings||[]],["unmuted_skip",p.unmutedSkipPings||[]]])}; MGy=function(p){switch(p){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen"; case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile"; case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null; default:return null}}; bG=function(p,C,V,N,H){H=H===void 0?null:H;this.V=p;this.No=C;this.layoutId=N;this.S=0;this.Y=null;this.W=void 0;this.T=new Set;this.C=Array.from(this.V.get("progress")||[]);this.C.sort(function(X,d){return(X.offsetMilliseconds||0)-(d.offsetMilliseconds||0)}); this.D={adPlacementConfig:V,J0:H}}; Ay=function(){return["metadata_type_ad_placement_config"]}; Zl=function(p){var C=p.No.get();return oj(C,p.D)}; xu=function(p,C,V){V=V===void 0?!1:V;p.T.has(C)?ku(p,C,[]):p.tQ(C,V)}; Yu=function(p,C,V){for(V=V===void 0?!1:V;p.S<p.C.length;){var N=p.C[p.S];if(N.offsetMilliseconds<=C||V)ku(p,"progress",[N]),p.S++;else break}}; zl=function(p,C){return p.T.has(C)}; Rj=function(p){return p.C.every(function(C){return C.hasOwnProperty("offsetMilliseconds")})}; JG9=function(p,C,V){p.Y=C;p.W=V}; ku=function(p,C,V){var N;mYS(p.No.get(),p.layoutId,C,V,(N=p.Y)!=null?N:void 0,p.W)}; vGa=function(p,C,V,N,H){tO.call(this,"ads-engagement-panel-layout",p,C,V,N,H)}; ns=function(p,C,V,N,H,X,d,a){uG.call(this,p,C,V,N);this.No=H;this.oH=X;this.Y=a;this.lc=!0;this.S=null;this.W=Ef(V.clientMetadata,"metadata_type_linked_player_bytes_layout_id");SU(this.oH(),this);p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId)}; Fhs=function(){var p=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_PANEL"]}}; SKu=function(p,C,V,N,H){tO.call(this,"banner-image",p,C,V,N,H)}; eY=function(p,C,V,N,H,X,d,a){uG.call(this,p,C,V,N);this.No=H;this.oH=X;this.Y=a;this.lc=!0;this.S=null;this.W=Ef(V.clientMetadata,"metadata_type_linked_player_bytes_layout_id");SU(this.oH(),this);this.adPlacementConfig=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,this.adPlacementConfig,V.layoutId)}; KhH=function(){var p=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; P8=function(p,C,V,N,H){tO.call(this,"action-companion",p,C,V,N,H)}; wn=function(p,C,V,N,H,X,d,a){uG.call(this,p,C,V,N);this.No=H;this.oH=X;this.Y=a;this.lc=!0;this.S=null;this.W=Ef(V.clientMetadata,"metadata_type_linked_player_bytes_layout_id");SU(this.oH(),this);p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId)}; DY1=function(){var p=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; uIe=function(p,C,V,N,H){tO.call(this,"image-companion",p,C,V,N,H)}; $u=function(p,C,V,N,H,X,d,a){uG.call(this,p,C,V,N);this.No=H;this.oH=X;this.Y=a;this.lc=!0;this.S=null;this.W=Ef(V.clientMetadata,"metadata_type_linked_player_bytes_layout_id");SU(this.oH(),this);p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId)}; Zme=function(){var p=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; UYe=function(p,C,V,N,H){tO.call(this,"shopping-companion",p,C,V,N,H)}; Ls=function(p,C,V,N,H,X,d,a){uG.call(this,p,C,V,N);this.No=H;this.oH=X;this.Y=a;this.lc=!0;this.S=null;this.W=Ef(V.clientMetadata,"metadata_type_linked_player_bytes_layout_id");SU(this.oH(),this);p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId)}; fEy=function(){var p=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; OmH=function(p){var C;if(((C=p.adVideoOffset)==null?void 0:C.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var V;return((V=p.adVideoOffset)==null?void 0:V.percent)!=null}; yGu=function(p){var C;if(((C=p.adVideoOffset)==null?void 0:C.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var V;return((V=p.adVideoOffset)==null?void 0:V.milliseconds)!=null&&!isNaN(Number(p.adVideoOffset.milliseconds))}; qKS=function(p,C,V,N){this.zk=p;this.layoutId=V;this.W=N;this.C=[];this.T=[];this.V=this.S=0;p=g.F(C);for(C=p.next();!C.done;C=p.next())switch(C=C.value,V=void 0,(V=C.adVideoOffset)==null?void 0:V.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":OmH(C)?this.C.push(C):S2("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":yGu(C)?this.T.push(C):S2("Invalid AdVideoProgressMillisecondsCommand");break;default:S2("Unknown or invalid AdVideoProgressOffSet kind")}this.C.sort(function(H, X){return H.adVideoOffset.percent-X.adVideoOffset.percent}); this.T.sort(function(H,X){return Number(H.adVideoOffset.milliseconds)-Number(X.adVideoOffset.milliseconds)})}; gn=function(p,C,V){V=V===void 0?!1:V;var N=p.W();if(N){for(;p.S<p.C.length;){var H=p.C[p.S];if(H.adVideoOffset.percent*N<=C||V)p.zk.get().executeCommand(H.command,p.layoutId),p.S++;else break}for(;p.V<p.T.length;)if(N=p.T[p.V],Number(N.adVideoOffset.milliseconds)<=C||V)p.zk.get().executeCommand(N.command,p.layoutId),p.V++;else break}}; W8=function(p,C,V,N,H,X){uG.call(this,p,C,V,N);this.No=H;this.oH=X;this.lc=!0;SU(this.oH(),this);p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId)}; IEX=function(){var p=["metadata_type_action_companion_ad_renderer"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; bme=function(p,C,V,N,H,X,d,a){this.callback=p;this.slot=C;this.layout=V;this.mx=N;this.No=H;this.x_=d;this.AQ=a;this.T=!1;p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId);var E;p=((E=Ef(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:E.progressCommands)||[];var l=Ef(V.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.C=new qKS(X,p,V.layoutId,function(){return l*1E3})}; Q6=function(p,C,V,N,H,X){uG.call(this,p,C,V,N);this.mx=H;this.W=X;this.S=!1}; rn=function(p,C,V,N,H){tO.call(this,"top-banner-image-text-icon-buttoned",p,C,V,N,H)}; B8=function(p,C,V,N,H,X){uG.call(this,p,C,V,N);this.No=H;this.oH=X;this.lc=!0;SU(this.oH(),this);p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId)}; AGe=function(){var p=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; Gl=function(p,C,V){tO.call(this,"display-underlay-text-grid-cards",p,{},C,V);this.interactionLoggingClientData=V}; pR=function(p,C,V,N,H,X){uG.call(this,p,C,V,N);this.No=H;this.S=X;this.W=Ef(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; CR=function(p,C,V,N,H,X){H=H===void 0?!1:H;X=X===void 0?!1:X;tO.call(this,"ad-action-interstitial",p,C,V,N);this.interactionLoggingClientData=N;this.RE=H;this.L5=X}; j9=function(p,C,V,N,H){uG.call(this,p,C,V,N);p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,H,p,V.layoutId)}; oGS=function(){var p=["metadata_type_ad_action_interstitial_renderer"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_ENDCAP"]}}; Vu=function(p,C){return iH(p,C.a6,C.OO)?!0:!1}; ND=function(p,C,V){this.C=p;this.V=C;this.T=V}; kjX=function(p,C,V,N,H){tO.call(this,"ads-engagement-panel",p,C,V,N,H)}; HB=function(p,C,V,N,H,X,d,a){uG.call(this,p,C,V,N);this.No=H;this.oH=X;this.Y=a;this.lc=!0;this.S=null;this.W=Ef(V.clientMetadata,"metadata_type_linked_player_bytes_layout_id");SU(this.oH(),this);p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId)}; xYV=function(){var p=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; XN=function(p,C,V,N,H,X,d,a){uG.call(this,p,C,V,N);this.No=H;this.oH=X;this.Y=a;this.lc=!0;this.S=null;this.W=Ef(V.clientMetadata,"metadata_type_linked_player_bytes_layout_id");SU(this.oH(),this);this.adPlacementConfig=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,this.adPlacementConfig,V.layoutId)}; YKL=function(){var p=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; zYQ=function(p,C,V,N,H){this.MW=p;this.No=C;this.oH=V;this.T=N;this.AQ=H}; RYS=function(p,C,V){this.MW=p;this.No=C;this.T=V}; nGy=function(p,C,V,N,H){this.callback=p;this.slot=C;this.layout=V;this.No=N;this.u0=H;p=Ef(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId)}; eYs=function(){var p=["metadata_type_client_forecasting_ad_renderer"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_FORECASTING"]}}; Pzy=function(p,C,V,N,H){this.callback=p;this.slot=C;this.layout=V;this.No=N;this.u0=H;p=Ef(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId)}; dO=function(p,C,V,N){this.x_=p;this.No=C;this.u0=V;this.AQ=N}; wQ1=function(p,C){return dt(p.clientMetadata,"metadata_type_ad_info_ad_metadata")?Ef(p.clientMetadata,"metadata_type_ad_info_ad_metadata"):C?{channelId:C.eI,channelThumbnailUrl:C.profilePicture,channelTitle:C.author,videoTitle:C.title}:(S2("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; $YL=function(p,C){return dt(p.clientMetadata,"metadata_ad_video_is_listed")?Ef(p.clientMetadata,"metadata_ad_video_is_listed"):C?C.isListed:(S2("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; LhY=function(p,C,V,N){tO.call(this,"player-overlay-layout",p,{},V,N);this.videoAdDurationSeconds=C;this.interactionLoggingClientData=N}; iv=function(p,C,V,N,H,X,d,a){uG.call(this,p,C,V,N);this.mx=H;this.No=X;this.Y=d;this.W=a;this.S=!1;this.D=Ef(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; gG1=function(p){if(p.layout.renderingContent){var C;return(C=Ef(p.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:C.current}return Ef(p.layout.clientMetadata,"metadata_type_player_bytes_callback")}; hn=function(p,C,V,N,H,X,d,a){uG.call(this,p,C,V,N);this.mx=H;this.No=X;this.Y=d;this.W=a;this.S=!1;this.D=Ef(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; Whv=function(){return{a6:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],OO:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; sN=function(p){if(p.layout.renderingContent){var C;return(C=Ef(p.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:C.current}return Ef(p.layout.clientMetadata,"metadata_type_player_bytes_callback")}; QWX=function(p,C,V){tO.call(this,"ad-message",p,void 0,C,V)}; ar=function(p,C,V,N,H,X){uG.call(this,V,p,C,N);this.mx=H;this.x_=X}; rGH=function(){return{a6:["metadata_type_valid_ad_message_renderer"],OO:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; B7V=function(p,C,V,N){tO.call(this,"video-interstitial-buttoned-centered",p,C,V,N);this.interactionLoggingClientData=N}; EN=function(p,C,V,N,H){uG.call(this,p,C,V,N);p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,H,p,V.layoutId)}; MD=function(p,C,V,N,H,X,d,a,E){return Vu(V,Whv())||V.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.n(V.renderingContent,lv)!==void 0?new hn(p,C,V,N,H,X,d,a):Vu(V,{a6:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],OO:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||V.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.n(V.renderingContent,tn)!==void 0? new iv(p,C,V,N,H,X,d,a):Vu(V,oGS())||V.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.n(V.renderingContent,cB)!==void 0?new j9(p,C,V,N,X):Vu(V,rGH())?new ar(C,V,p,N,H,E):Vu(V,{a6:["metadata_type_instream_ad_player_overlay_renderer"],OO:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new Q6(p,C,V,N,H,a):V.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.n(V.renderingContent,Tx)!==void 0?new EN(p,C,V,N,X):null}; Gjj=function(p,C,V,N,H,X){this.MW=p;this.mx=C;this.No=V;this.C=N;this.T=H;this.x_=X}; Jn=function(p){return!p.T7.isPlaying()&&p.state.isPlaying()}; mQ=function(p,C,V){return p<C?!1:V!=null?V<=C:p<=C+1}; paX=function(p,C,V,N,H,X,d){this.callback=p;this.slot=C;this.layout=V;this.mx=N;this.No=H;this.x_=X;this.AQ=d;this.T=!1;p=Ef(V.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId)}; vB=function(p,C){p.T||(p.gV.tQ(C),p.T=!0)}; Cqe=function(p,C,V,N,H){this.mx=p;this.No=C;this.zk=V;this.x_=N;this.AQ=H}; FN=function(){this.currentState=1;this.T="unknown"}; S9=function(p,C){if(p.currentState>1){g.eG(new g.Bw("Exit already started",{current:p.currentState}));var V=!1}else V=!0;if(!V)return!1;p.currentState=2;p.T=C;return!0}; KR=function(p){if(p.currentState!==2)return!1;p.currentState=3;return!0}; jSv=function(p,C){var V=new Map;p=g.F(p);for(var N=p.next();!N.done;N=p.next()){N=N.value;if(N.layoutType==="LAYOUT_TYPE_MEDIA")var H="v";else N.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(H=Ef(N.clientMetadata,"metadata_type_linked_in_player_layout_type"),H=H==="LAYOUT_TYPE_ENDCAP"||H==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":H==="LAYOUT_TYPE_SURVEY"?"s":H==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):H="u";V.set(N.layoutId,H);if(H==="u"){var X={};H=C;N=(X.c=N.layoutId,X);H.N.k_("uct",N)}}p= C.Zr();Ds={contentCpn:p,Kw:V};N={};V=(N.ct=V.size,N.c=p,N);C.N.k_("acc",V)}; Vpu=function(){Ds={contentCpn:"",Kw:new Map}}; uv=function(p){var C;return(C=Ds.Kw.get(p))!=null?C:"u"}; Zs=function(p,C,V){p.N.k_(C,V);NeH(p)}; Hqe=function(p){var C=p.layoutId,V=p.NS;if(p.e1){var N={};Zs(p.w6,"slso",(N.ec=C,N.is=V,N.ctp=uv(C),N))}}; UN=function(p){var C=p.layoutId,V=p.NS;if(p.e1){var N={};Zs(p.w6,"slse",(N.ec=C,N.is=V,N.ctp=uv(C),N))}}; Xay=function(p){var C=p.layoutId,V=p.NS,N=p.w6;p.e1&&(p={},Zs(N,"sleo",(p.xc=C,p.is=V,p.ctp=uv(C),p)),NeH(N))}; dys=function(p){var C=p.cpn,V=p.w6;p=p.NS;var N=V.Zr(),H={};Zs(V,"ce",(H.ec=C,H.ia=C!==N,H.r=Ds.Kw.has(C),H.is=p,H.ctp=uv(C),H))}; NeH=function(p){if(p.Zr()!==Ds.contentCpn){var C={};C=(C.c=Ds.contentCpn,C);p.N.k_("ccm",C)}}; iqY=function(p){var C=p.cpn,V=p.w6;p=p.NS;var N=V.Zr(),H={};Zs(V,"cx",(H.xc=C,H.ia=C!==N,H.r=Ds.Kw.has(C),H.is=p,H.ctp=uv(C),H))}; h3L=function(p){this.params=p;this.T=new Set}; sSS=function(p,C,V){if(!p.T.has(C)){p.T.add(C);var N={};p.params.Rx.Vr(C,Object.assign({},V,(N.p_ac=p.params.adCpn,N.p_isv=p.params.Vk&&p.params.K9,N)))}}; ON=function(p,C,V){if(fR(p.params.Rx.x_.get(),!0)){var N=V.flush,H={};sSS(p,C,(H.cts=V.currentTimeSec,H.f=N,H))}}; aUX=function(p,C){this.w6=p;this.x_=C}; yu=function(p){var C=[];if(p){p=g.F(Object.entries(p));for(var V=p.next();!V.done;V=p.next()){var N=g.F(V.value);V=N.next().value;N=N.next().value;N!==void 0&&(N=typeof N==="boolean"?""+ +N:(""+N).replace(/[:,=]/g,"_"),C.push(V+"."+N))}}return C.join(";")}; qD=function(p,C,V){C=C===void 0?{}:C;this.errorCode=p;this.details=C;this.severity=V===void 0?0:V}; Ir=function(p){return p===1||p===2}; bv=function(p,C){C=C===void 0?0:C;if(p instanceof qD)return p;p=p&&p instanceof Error?p:Error(""+p);Ir(C)?g.nm(p):g.eG(p);return new qD(C===1?"player.fatalexception":"player.exception",{name:""+p.name,message:""+p.message},C)}; E0e=function(p,C){function V(){var N=g.US.apply(0,arguments);p.removeEventListener("playing",V);C.apply(null,g.K(N))} p.addEventListener("playing",V)}; An=function(){var p=g.zV("yt.player.utils.videoElement_");p||(p=g.iK("VIDEO"),g.YH("yt.player.utils.videoElement_",p));return p}; or=function(p){var C=An();return!!(C&&C.canPlayType&&C.canPlayType(p))}; xZ=function(p){if(/opus/.test(p)&&g.kZ&&!q8("38")&&!g.Qg())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(p);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(p);if(/webm/.test(p)&&!uUs())return!1;p==='audio/mp4; codecs="mp4a.40.2"'&&(p='video/mp4; codecs="avc1.4d401f"');return!!or(p)}; lU1=function(p){try{var C=xZ('video/mp4; codecs="avc1.42001E"')||xZ('video/webm; codecs="vp9"');return(xZ('audio/mp4; codecs="mp4a.40.2"')||xZ('audio/webm; codecs="opus"'))&&(C||!p)||or('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(V){return"html5.missingapi"}}; YZ=function(){var p=An();return!(!p.webkitSupportsPresentationMode||typeof p.webkitSetPresentationMode!=="function")}; zx=function(){var p=An();try{var C=p.muted;p.muted=!C;return p.muted!==C}catch(V){}return!1}; tpV=function(){var p;return((p=navigator.connection)==null?void 0:p.type)||""}; g.Rr=function(){I_.apply(this,arguments)}; nR=function(p,C,V,N,H,X){this.sampleRate=p===void 0?0:p;this.numChannels=C===void 0?0:C;this.spatialAudioType=V===void 0?"SPATIAL_AUDIO_TYPE_NONE":V;this.T=N===void 0?!1:N;this.V=H===void 0?0:H;this.C=X===void 0?0:X}; wO=function(p,C,V,N,H,X,d,a,E){this.width=p;this.height=C;this.quality=X||e9(p,C);this.T=g.PB[this.quality];this.fps=V||0;this.stereoLayout=!H||N!=null&&N!=="UNKNOWN"&&N!=="RECTANGULAR"?0:H;this.projectionType=N?N==="EQUIRECTANGULAR"&&H===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":N:"UNKNOWN";(p=d)||(p=g.PB[this.quality],p===0?p="Auto":(C=this.fps,V=this.projectionType,p=p.toString()+(V==="EQUIRECTANGULAR"||V==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||V==="MESH"?"s":"p")+(C>55?"60":C>49?"50":C>39?"48":""))); this.qualityLabel=p;this.C=a||"";this.primaries=E||""}; e9=function(p,C){var V=Math.max(p,C);p=Math.min(p,C);C=$Z[0];for(var N=0;N<$Z.length;N++){var H=$Z[N],X=g.PB[H];if(V>=Math.floor(X*16/9)*1.3||p>=X*1.3)return C;C=H}return"tiny"}; WB=function(p,C,V){V=V===void 0?{}:V;this.id=p;this.mimeType=C;V.F$>0||(V.F$=16E3);Object.assign(this,V);p=g.F(this.id.split(";"));this.itag=p.next().value;this.T=p.next().value;this.containerType=LR(C);this.o$=gO[this.itag]||""}; Qu=function(p){return p.o$==="9"||p.o$==="("||p.o$==="9h"||p.o$==="(h"}; cOS=function(p){return p.o$==="H"||p.o$==="h"}; rO=function(p){return p.o$==="9h"||p.o$==="(h"}; BB=function(p){return p.o$==="1"||p.o$==="1h"}; Gx=function(p){return p.o$==="mac3"||p.o$==="meac3"||p.o$==="m"}; px=function(p){return p.o$==="MAC3"||p.o$==="MEAC3"||p.o$==="M"}; g.Cx=function(p){return p.containerType===1}; TeV=function(p){return p.o$==="("||p.o$==="(h"||p.o$==="H"}; jb=function(p){return p.mimeType==="application/x-mpegURL"}; g.VE=function(p,C){return{itag:+p.itag,lmt:C?0:p.lastModified,xtags:p.T||""}}; Mpu=function(p){var C=navigator.mediaCapabilities;if(C==null||!C.decodingInfo||p.o$==="f")return Promise.resolve();var V={type:p.audio&&p.video?"file":"media-source"};p.video&&(V.video={contentType:p.mimeType,width:p.video.width||640,height:p.video.height||360,bitrate:p.F$*8||1E6,framerate:p.video.fps||30});p.audio&&(V.audio={contentType:p.mimeType,channels:""+(p.audio.numChannels||2),bitrate:p.F$*8||128E3,samplerate:p.audio.sampleRate||44100});return C.decodingInfo(V).then(function(N){p.C=N})}; Nf=function(p){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(p)}; Hc=function(p){return/(vp9|vp09|vp8|avc1|av01)/.test(p)}; Xz=function(p){return p.includes("vtt")||p.includes("text/mp4")}; LR=function(p){return p.indexOf("/mp4")>=0?1:p.indexOf("/webm")>=0?2:p.indexOf("/x-flv")>=0?3:p.indexOf("/vtt")>=0?4:0}; dN=function(p,C,V,N,H,X){var d=new nR;C in g.PB||(C="small");C==="light"&&(C="tiny");N&&H?(H=Number(H),N=Number(N)):(H=g.PB[C],N=Math.round(H*16/9));X=new wO(N,H,0,null,void 0,C,X);p=unescape(p.replace(/"/g,'"'));return new WB(V,p,{audio:d,video:X})}; iX=function(p){var C="id="+p.id;p.video&&(C+=", res="+p.video.qualityLabel);var V,N;return C+", byterate=("+((V=p.ND)==null?void 0:V.toFixed(0))+", "+((N=p.F$)==null?void 0:N.toFixed(0))+")"}; hj=function(p,C){return{start:function(V){return p[V]}, end:function(V){return C[V]}, length:p.length}}; JOS=function(p,C,V){for(var N=[],H=[],X=0;X<p.length;X++)N.push(p.start(X)),H.push(p.end(X));N.push(C);H.push(V);N.sort(function(d,a){return d-a}); H.sort(function(d,a){return d-a}); return hj(N,H)}; sJ=function(p,C,V){C=C===void 0?",":C;V=V===void 0?p?p.length:0:V;var N=[];if(p)for(V=Math.max(p.length-V,0);V<p.length;V++)N.push(p.start(V).toFixed(3)+"-"+p.end(V).toFixed(3));return N.join(C)}; a7=function(p,C){if(!p)return-1;try{for(var V=0;V<p.length;V++)if(p.start(V)<=C&&p.end(V)>=C)return V}catch(N){}return-1}; EJ=function(p,C){return a7(p,C)>=0}; myX=function(p,C){if(!p)return NaN;C=a7(p,C);return C>=0?p.start(C):NaN}; lX=function(p,C){if(!p)return NaN;C=a7(p,C);return C>=0?p.end(C):NaN}; tj=function(p){return p&&p.length?p.end(p.length-1):NaN}; cc=function(p,C){p=lX(p,C);return p>=0?p-C:0}; Tw=function(p,C,V){for(var N=[],H=[],X=0;X<p.length;X++)p.end(X)<C||p.start(X)>V||(N.push(Math.max(C,p.start(X))-C),H.push(Math.min(V,p.end(X))-C));return hj(N,H)}; Mf=function(p,C,V,N){g.ca.call(this);var H=this;this.jr=p;this.start=C;this.end=V;this.isActive=N;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Ee={error:function(){!H.fS()&&H.isActive&&H.publish("error",H)}, updateend:function(){!H.fS()&&H.isActive&&H.publish("updateend",H)}}; g.TB(this.jr,this.Ee);this.VC=this.isActive}; mu=function(p,C,V,N,H,X){g.ca.call(this);var d=this;this.NW=p;this.S5=C;this.id=V;this.containerType=N;this.o$=H;this.K9=X;this.PF=this.Qe=this.lW=null;this.V_=!1;this.appendWindowStart=this.timestampOffset=0;this.Rh=hj([],[]);this.yH=!1;this.JA=[];this.hv=Jj?[]:void 0;this.qZ=function(E){return d.publish(E.type,d)}; var a;if((a=this.NW)==null?0:a.addEventListener)this.NW.addEventListener("updateend",this.qZ),this.NW.addEventListener("error",this.qZ)}; rN=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; pV=function(p,C){this.sR=p;this.T=C===void 0?!1:C;this.C=!1}; CV=function(p,C,V){V=V===void 0?!1:V;g.Y.call(this);this.mediaElement=p;this.Hr=C;this.isView=V;this.Y=0;this.S=!1;this.W=!0;this.Z=0;this.callback=null;this.J=!1;this.Hr||(this.S5=this.mediaElement.V$());this.events=new g.Rr(this);g.R(this,this.events);this.V=new pV(this.Hr?window.URL.createObjectURL(this.Hr):this.S5.webkitMediaSourceURL,!0);p=this.Hr||this.S5;bO(this.events,p,["sourceopen","webkitsourceopen"],this.fEx);bO(this.events,p,["sourceclose","webkitsourceclose"],this.i1k);this.D={updateend:this.SC}}; v0j=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Fz1=function(p,C){j6(p)?g.mo(function(){C(p)}):p.callback=C}; Sy1=function(p,C,V){if(VP){var N;Nr(p.mediaElement,{l:"mswssb",sr:(N=p.mediaElement.Ta)==null?void 0:Hj(N)},!1);g.TB(C,p.D,p);g.TB(V,p.D,p)}p.T=C;p.C=V;g.R(p,C);g.R(p,V)}; Kzu=function(p,C,V,N){N=C.mimeType+(N===void 0?"":N);var H=V.mimeType;C=C.o$;V=V.o$;var X;p.a$=(X=p.Hr)==null?void 0:X.addSourceBuffer(H);var d;p.b_=N.split(";")[0]==="fakesb"?void 0:(d=p.Hr)==null?void 0:d.addSourceBuffer(N);p.S5&&(p.S5.webkitSourceAddId("0",H),p.S5.webkitSourceAddId("1",N));X=new mu(p.a$,p.S5,"0",LR(H),V,!1);N=new mu(p.b_,p.S5,"1",LR(N),C,!0);Sy1(p,X,N)}; XO=function(p){return!!p.T||!!p.C}; j6=function(p){try{return dl(p)==="open"}catch(C){return!1}}; dl=function(p){if(p.Hr)return p.Hr.readyState;switch(p.S5.webkitSourceState){case p.S5.SOURCE_OPEN:return"open";case p.S5.SOURCE_ENDED:return"ended";default:return"closed"}}; iU=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; DyQ=function(p){j6(p)&&(p.Hr?p.Hr.endOfStream():p.S5.webkitSourceEndOfStream(p.S5.EOS_NO_ERROR))}; uiL=function(p,C,V,N){if(!p.T||!p.C)return null;var H=p.T.isView()?p.T.jr:p.T,X=p.C.isView()?p.C.jr:p.C,d=new CV(p.mediaElement,p.Hr,!0);d.V=p.V;Sy1(d,new Mf(H,C,V,N),new Mf(X,C,V,N));j6(p)||p.T.pp(p.T.yZ());return d}; Zqy=function(p){var C;(C=p.T)==null||C.aO();var V;(V=p.C)==null||V.aO();p.W=!1}; hK=function(){var p=this;this.B2=this.Jo=IjQ;this.promise=new g.um(function(C,V){p.Jo=C;p.B2=V})}; s3=function(){g.Y.call(this);this.UM=!1;this.sR=null;this.D=this.Y=!1;this.S=new g.h8;this.Ta=null;g.R(this,this.S)}; ak=function(p){p=p.cW();return p.length<1?NaN:p.end(p.length-1)}; UyV=function(p){!p.C&&v0j()&&(p.V?p.V.then(function(){return UyV(p)}):p.U8()||(p.C=p.In()))}; fUV=function(p){p.C&&(p.C.dispose(),p.C=void 0)}; Nr=function(p,C,V){var N;((N=p.Ta)==null?0:N.Gk())&&p.Ta.k_("rms",C,V===void 0?!1:V)}; Oq9=function(p,C,V){p.isPaused()||p.getCurrentTime()>C||V>10||(p.play(),g.F5(function(){Oq9(p,p.getCurrentTime(),V+1)},500))}; yOv=function(p,C){p.sR&&p.sR.sE(C)||(p.sR&&p.sR.dispose(),p.sR=C)}; E3=function(p){return cc(p.yx(),p.getCurrentTime())}; qyL=function(p,C){if(p.wh()===0||p.hasError())return!1;var V=p.getCurrentTime()>0;return C>=0&&(p=p.cW(),p.length||!V)?EJ(p,C):V}; lU=function(p){p.U8()&&(p.Ta&&p.Ta.Hm("rs_s"),BW&&p.getCurrentTime()>0&&p.seekTo(0),p.FI(),p.load(),yOv(p,null));delete p.V}; tK=function(p){switch(p.LO()){case 2:return"progressive.net.retryexhausted";case 3:return p=p.FF(),(p==null?0:p.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||IUS&&(p==null?0:p.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.cj=function(p,C,V){this.UE=C===void 0?null:C;this.seekSource=V===void 0?null:V;this.state=p||64}; TP=function(p,C,V){V=V===void 0?!1:V;return bqa(p,C.getCurrentTime(),(0,g.Ip)(),E3(C),V)}; Mr=function(p,C,V,N){if(!(C===p.state&&V===p.UE&&N===p.seekSource||C!==void 0&&(C&128&&!V||C&2&&C&16))){var H;if(H=C)H=C||p.state,H=!!(H&16||H&32);p=new g.cj(C,V,H?N?N:p.seekSource:null)}return p}; JK=function(p,C,V){return Mr(p,p.state|C,null,V===void 0?null:V)}; mE=function(p,C){return Mr(p,p.state&~C,null,null)}; vj=function(p,C,V,N){return Mr(p,(p.state|C)&~V,null,N===void 0?null:N)}; g.r=function(p,C){return!!(p.state&C)}; g.FO=function(p,C){return C.state===p.state&&C.UE===p.UE}; S6=function(p){return p.isPlaying()&&!g.r(p,16)&&!g.r(p,32)}; KV=function(p){return g.r(p,128)?-1:g.r(p,2)?0:g.r(p,2048)?3:g.r(p,64)?-1:g.r(p,1)&&!g.r(p,32)?3:g.r(p,8)?1:g.r(p,4)?2:-1}; uU=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D){g.Y.call(this);var Z=this;this.FN=p;this.slot=C;this.layout=V;this.No=N;this.AQ=H;this.pS=X;this.mx=d;this.sZ=a;this.zk=E;this.GA=l;this.position=c;this.Y=T;this.x_=M;this.Y6=J;this.e5=S;this.context=D;this.lc=!0;this.W=!1;this.JQ="not_rendering";this.C=!1;this.V=new FN;p=Ef(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(V.y$,this.No,p,V.layoutId);var f;p=((f=D5(this))==null?void 0:f.progressCommands)||[];this.S=new qKS(E, p,V.layoutId,function(){return Z.wH()}); this.T=new h3L({adCpn:this.layout.layoutId,Rx:D.Rx,Vk:this.Y6,K9:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Z5=function(p){return{layoutId:p.oO(),NS:p.Y6,w6:p.pS.get(),e1:p.sV()}}; U3=function(p,C){return C.layoutId!==p.layout.layoutId?(p.FN.OV(p.slot,C,new sf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+p.layout.layoutId+("and LayoutType: "+p.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; fV=function(p){p.JQ="rendering_start_requested";p.GA(-1)}; D5=function(p){return Ef(p.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; AOX=function(p){S2("Received layout exit signal when not in layout exit flow.",p.slot,p.layout)}; o0Q=function(p){var C;return((C=O3(p.pS.get(),2))==null?void 0:C.clientPlaybackNonce)||""}; yP=function(p,C){switch(C){case "normal":p.tQ("complete");break;case "skipped":p.tQ("skip");break;case "abandoned":zl(p.gV,"impression")&&p.tQ("abandon")}}; qr=function(p,C){p.W||(C=new g.Kt(C.state,new g.cj),p.W=!0);return C}; Ik=function(p,C){Jn(C)?p.GA(1):g.u$(C,4)&&!g.u$(C,2)&&p.gS();D7(C,4)<0&&!(D7(C,2)<0)&&p.Oj()}; kBe=function(p){p.position===0&&(p.sZ.get(),p=Ef(p.layout.clientMetadata,"metadata_type_ad_placement_config").kind,p={adBreakType:bU(p)},NR("ad_bl"),g.HH(p))}; AK=function(p,C){xu(p.gV,C,!p.C)}; Yys=function(p){var C;return(((C=D5(p))==null?void 0:C.progressCommands)||[]).findIndex(function(V){return!!g.n(V==null?void 0:V.command,xyu)})!==-1}; ok=function(p,C){var V=Ef(p.clientMetadata,"metadata_type_eligible_for_ssap");return V===void 0?(S2("Expected SSAP eligibility in PlayerBytes factory",p),!1):C.sV(V)}; kL=function(p,C){if(!Cs(C.get(),"html5_ssap_pass_transition_reason"))return 3;switch(p){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return S2("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return S2("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:p}),3;default:N1(p,"unknown layoutExitReason")}}; z3Y=function(p){S2("getExitReason: unexpected reason",void 0,void 0,{reason:p})}; xL=function(p,C){if(Cs(C.get(),"html5_ssap_pass_transition_reason"))switch(p){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return z3Y(p),"abandoned";case 3:case 1:return z3Y(p),"error";default:N1(p,"unexpected transition reason")}else switch(p){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return S2("getExitReason: unexpected reason",void 0,void 0,{reason:p}),"error";default:N1(p,"unexpected transition reason")}}; YL=function(p,C,V){dc(p,V)||hd(p,C,V);dc(p,"video_to_ad")||hd(p,C,"video_to_ad");dc(p,"ad_to_video")||hd(p,C,"ad_to_video");dc(p,"ad_to_ad")||hd(p,C,"ad_to_ad")}; zP=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z){uU.call(this,p,C,V,N,H,X,d,a,l,t,c,T,M,J,S,D,Z);var f=this;this.YG=E;this.wj=c;this.dM=!0;this.Dz=this.Xg=0;this.mA=KJ(function(){Hqe(Z5(f));f.FN.gy(f.slot,f.layout)}); this.Co=KJ(function(){Xay(Z5(f));f.JQ!=="rendering_stop_requested"&&f.wj(f);f.layoutExitReason?f.FN.C1(f.slot,f.layout,f.layoutExitReason):AOX(f)}); this.Yt=new g.Ib(200);this.Yt.listen("tick",function(){f.m6()}); g.R(this,this.Yt)}; nV=function(p){p.Dz=Date.now();Rk(p,p.Xg);p.Yt.start()}; R3V=function(p){p.Xg=p.wH();p.nW(p.Xg/1E3,!0);Rk(p,p.Xg)}; Rk=function(p,C){C={current:C/1E3,duration:p.wH()/1E3};p.YG.get().FU("onAdPlaybackProgress",C)}; e6=function(p){zP.call(this,p.FN,p.slot,p.Sq,p.No,p.AQ,p.pS,p.mx,p.sZ,p.YG,p.zk,p.GA,p.wj,p.Ri,p.Mm,p.x_,p.Y6,p.e5,p.context)}; Pj=function(p){zP.call(this,p.FN,p.slot,p.Sq,p.No,p.AQ,p.pS,p.mx,p.sZ,p.YG,p.zk,p.GA,p.wj,p.Ri,p.Mm,p.x_,p.Y6,p.e5,p.context)}; wl=function(){Pj.apply(this,arguments)}; n09=function(p){return ok(p.slot,p.x_.get())?new wl(p):new e6(p)}; gl=function(p){uU.call(this,p.callback,p.slot,p.Sq,p.No,p.AQ,p.pS,p.mx,p.sZ,p.zk,p.GA,p.wj,p.Ri,p.Mm,p.x_,p.Y6,p.e5,p.context);var C=this;this.adCpn="";this.wE=0;this.fz=!1;this.sQ=0;this.mA=KJ(function(){Hqe(Z5(C));C.FN.gy(C.slot,C.layout)}); this.Co=KJ(function(){Xay(Z5(C));C.JQ!=="rendering_stop_requested"&&C.wj(C);C.layoutExitReason?C.FN.C1(C.slot,C.layout,C.layoutExitReason):AOX(C)}); this.GM=p.GM;this.gY=p.gY;this.iJ=p.iJ;this.YG=p.YG;this.fd=p.fd;this.wj=p.wj;if(!this.sV()){Cs(this.x_.get(),"html5_disable_media_load_timeout")||(this.N4=new g.N8(function(){C.JH("load_timeout",new sf("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); p=$L(this.x_.get());var V=LV(this.x_.get());p&&V&&(this.gZ=new g.N8(function(){var N=Ef(C.layout.clientMetadata,"metadata_type_preload_player_vars");N&&C.gY.get().N.preloadVideoByPlayerVars(N,2,300)}))}}; Pqe=function(p,C){var V=Ef(C.clientMetadata,"metadata_type_ad_video_id"),N=Ef(C.clientMetadata,"metadata_type_legacy_info_card_vast_extension");V&&N&&p.fd.get().N.K().vr.add(V,{IY:N});(C=Ef(C.clientMetadata,"metadata_type_sodar_extension_data"))&&$MV(p.GM.get(),C);e31(p.mx.get(),!1)}; way=function(p){e31(p.mx.get(),!0);var C;((C=p.shrunkenPlayerBytesConfig)==null?0:C.shouldRequestShrunkenPlayerBytes)&&p.mx.get().Gz(!1)}; $yy=function(p){var C=Ef(p.Bc().clientMetadata,"metadata_type_player_bytes_slot_metadata");C===void 0&&S2("PlayerBytesSlotMetadata is not filled",p.Bc(),p.De());return(C==null?void 0:C.eX)===!0}; Wj=function(){gl.apply(this,arguments)}; QP=function(){Wj.apply(this,arguments)}; Lzs=function(p){return n09(Object.assign({},p,{FN:p.callback,GA:function(){}}))}; g0e=function(p){return new gl(Object.assign({},p,{GA:function(C){p.YG.get().FU("onAdIntroStateChange",C)}}))}; WzV=function(p){function C(V){p.YG.get().Fk(V)} return ok(p.slot,p.x_.get())?new QP(Object.assign({},p,{GA:C})):new gl(Object.assign({},p,{GA:C}))}; rl=function(p){for(var C=p.Sq,V=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],N=g.F(Ay()),H=N.next();!H.done;H=N.next())V.push(H.value);if(Vu(C,{a6:V,OO:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Lzs(p);C=p.Sq;V=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];N=g.F(Ay());for(H=N.next();!H.done;H=N.next())V.push(H.value);if(Vu(C,{a6:V,OO:["LAYOUT_TYPE_MEDIA"]}))return dt(p.Sq.clientMetadata,"metadata_type_ad_intro")?g0e(p):WzV(p)}; rOe=function(p){var C=Ef(p.clientMetadata,"metadata_type_ad_placement_config").kind,V=Ef(p.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:p.layoutId,adType:QS9(V),adBreakType:bU(C)}}; bU=function(p){switch(p){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; QS9=function(p){switch(p){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; Bey=function(p){try{return new Bj(p.E_,p.slot,p.layout,p.u9,p.xl,p.pS,p.kG,p.gY,p.oH,p.mx,p.Kc$,p)}catch(C){}}; Bj=function(p,C,V,N,H,X,d,a,E,l,t,c){g.Y.call(this);this.E_=p;this.slot=C;this.layout=V;this.u9=N;this.xl=H;this.pS=X;this.kG=d;this.gY=a;this.oH=E;this.mx=l;this.params=c;this.lc=!0;p=rl(t);if(!p)throw Error("Invalid params for sublayout");this.K1=p}; GBV=function(){this.T=1;this.C=new FN}; GP=function(p,C,V,N,H,X,d,a,E,l,t,c,T){g.Y.call(this);this.callback=p;this.pS=C;this.kG=V;this.gY=N;this.mx=H;this.sZ=X;this.j1=d;this.slot=a;this.layout=E;this.u9=l;this.u0=t;this.oH=c;this.x_=T;this.lc=!0;this.mK=!1;this.H6=[];this.Op=-1;this.IL=!1;this.g2=new GBV}; pEu=function(p){var C;return(C=p.layout.HK)!=null?C:Ef(p.layout.clientMetadata,"metadata_type_sub_layouts")}; pr=function(p){return{w6:p.pS.get(),NS:!1,e1:p.sV()}}; C$S=function(p,C,V){if(p.M1()===p.H6.length-1){var N,H;S2("Unexpected skip requested during the last sublayout",(N=p.P1())==null?void 0:N.Bc(),(H=p.P1())==null?void 0:H.De(),{requestingSlot:C,requestingLayout:V})}}; j09=function(p,C,V){return V.layoutId!==Cr(p,C,V)?(S2("onSkipRequested for a PlayerBytes layout that is not currently active",p.Bc(),p.De()),!1):!0}; V29=function(p){p.M1()===p.H6.length-1&&S2("Unexpected skip with target requested during the last sublayout")}; Nky=function(p,C,V){return V.renderingContent===void 0&&V.layoutId!==Cr(p,C,V)?(S2("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",p.Bc(),p.De(),{requestingSlot:C,requestingLayout:V}),!1):!0}; Hta=function(p,C,V,N){var H=Ef(C.De().clientMetadata,"metadata_type_ad_pod_skip_target");if(H&&H>0&&H<p.H6.length){a:{for(var X=H;X<p.H6.length;){if(H===Ef(p.H6[X].De().clientMetadata,"metadata_type_ad_pod_skip_index")){p=X;break a}X++}p=void 0}if(p===void 0)S2("Skip-to-index was requested but target index was not found",C.Bc(),C.De(),{requestingSlot:V,requestingLayout:N});else return p}else S2("Invalid ad pod skip target index",C.Bc(),C.De(),{requestingSlot:V,requestingLayout:N})}; Cr=function(p,C,V){var N=Ef(p.De().clientMetadata,"metadata_type_linked_in_player_layout_id");return N?N:(S2("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",p.Bc(),p.De(),{requestingSlot:C,requestingLayout:V}),null)}; dNe=function(p,C,V,N){XEV(p,C,V,"skipped",function(){jI(p,N)})}; XEV=function(p,C,V,N,H){if(!p.IL){var X=p.P1();if(X){X.De().layoutId!==V.layoutId&&S2("SubLayout mismatch in exitSubLayout",C,V,{exitingSubLayout:V.layoutId,activeSubLayout:X.De().layoutId});p.IL=!0;X.XO(X.De(),N);X=Object.assign({},pr(p),{layoutId:V.layoutId,layoutExitReason:N});var d=X.layoutId,a=X.layoutExitReason;if(X.e1){var E={};Zs(X.w6,"wrsx",(E.xc=d,E.ler=a,E.ctp=uv(d),E))}p.ke(C,V,N);p.IL=!1;p.Bi?(p.Bi(),p.sV()||V4(p.sZ.get())):H()}else S2("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.", C,V)}}; jI=function(p,C){if(p.M1()===p.H6.length-1)p.Op++,NV(p.u0,p.layout,"normal"),p.sV()||V4(p.sZ.get());else a:{if(p.M1()===-1&&(p.callback.gy(p.slot,p.layout),C>0)){S2("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",p.slot,p.layout,{indexToPlay:C,layoutId:p.layout.layoutId});break a}p.Op=C;C=p.P1();if(p.M1()>0&&!p.sV()){var V=p.sZ.get();V.C=!1;var N={};V.T&&V.videoId&&(N.cttAuthInfo={token:V.T,videoId:V.videoId});XA("ad_to_ad",N)}p.ws(C)}}; HS=function(p){GP.call(this,p.E_,p.pS,p.kG,p.gY,p.mx,p.sZ,p.j1,p.slot,p.layout,p.u9,p.u0,p.oH,p.x_)}; it9=function(p){(p=p.P1())&&p.MP()}; Xc=function(p){GP.call(this,p.E_,p.pS,p.kG,p.gY,p.mx,p.sZ,p.j1,p.slot,p.layout,p.u9,p.u0,p.oH,p.x_);this.II=void 0}; hSj=function(p,C){p.mj()&&!KR(p.g2.C)||p.callback.C1(p.slot,p.layout,C)}; dF=function(p){return Cs(p.x_.get(),"html5_ssap_pass_transition_reason")}; s01=function(p,C,V){C.rP().currentState<2&&(V=xL(V,p.x_),C.XO(C.De(),V));V=C.rP().T;p.ke(p.slot,C.De(),V)}; a7Y=function(p,C){if(p.g2.C.currentState<2){var V=xL(C,p.x_);V==="error"?p.callback.OV(p.slot,p.layout,new sf("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:C},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):NV(p.u0,p.layout,V)}}; ib=function(p,C,V){C.rP().currentState>=2||(C.XO(C.De(),V),KR(C.rP())&&(o3(p.j1,p.slot,C.De(),V),p.II=void 0))}; EUy=function(p,C){p.g2.T===2&&C!==p.Zr()&&S2("onClipEntered: unknown cpn",p.slot,p.layout,{cpn:C})}; l71=function(p,C){var V=p.P1();if(V){var N=V.De().layoutId,H=p.M1()+1;p.mj()?ib(p,V,C):V.XO(V.De(),C);H>=0&&H<p.H6.length?(V=p.H6[H].De().layoutId,dF(p)&&(["normal","skipped"].includes(C)||S2("exitActiveLayoutAndPlayNext: unexpected exit reason",p.slot,p.layout,{exitReason:C})),p.kG.get().finishSegmentByCpn(N,V,kL(C,p.x_))):H===p.H6.length?NV(p.u0,p.layout,"normal"):S2("unexpected index",p.slot,p.layout,{index:H})}else S2("exitActiveLayoutAndPlayNext: no active adapter",p.slot,p.layout)}; t2e=function(p,C){S2(C+": undefined adapter",p.slot,p.layout)}; c71=function(p){return ok(p.slot,p.x_.get())?new Xc(p):new HS(p)}; hV=function(p,C,V,N,H,X,d){g.Y.call(this);this.callback=p;this.gY=C;this.mx=V;this.sZ=N;this.K1=H;this.oH=X;this.x_=d;this.lc=!0;this.mK=!1}; TkS=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z){function Q(){var W=rl(Object.assign({},au,{callback:{gy:p.gy.bind(p),C1:p.C1.bind(p),L6:function(){}, OV:p.OV.bind(p)},slot:V,Sq:N,wj:function(){NV(d,N,"normal")}, Ri:0,Mm:1,Y6:!0}));return W?new hV(p,t,T,J,W,H,f):W} function P(){var W=Object.assign({},au,{callback:{gy:function(){}, C1:function(){}, L6:function(){return void NV(d,N,"normal")}, OV:function(){}}, slot:V,Sq:N,wj:function(){}, Ri:0,Mm:1,Y6:!0});return Bey({E_:p,slot:V,layout:N,u9:X,xl:d,pS:c,kG:q,gY:t,oH:H,mx:T,Kc$:W,context:A})} function VL(){var W,e=(W=N.HK)!=null?W:Ef(N.clientMetadata,"metadata_type_sub_layouts");W=c71({E_:p,pS:c,kG:q,gY:t,mx:T,sZ:J,j1:C,slot:V,layout:N,u9:X,u0:d,oH:H,x_:f});for(var B=[],v={VW:0};v.VW<e.length;v={VW:v.VW},v.VW++){var w=rl(Object.assign({},au,{callback:{gy:W.tP.bind(W),C1:W.KL.bind(W),L6:W.L6.bind(W),OV:W.U3.bind(W)},slot:V,Sq:e[v.VW],wj:function(C0){return function(FG){FG.XO(e[C0.VW],"normal")}}(v), Ri:v.VW,Mm:e.length,Y6:!1}));if(!w)return;B.push(w)}W.H6=B;return W} var au={No:a,AQ:E,GM:l,gY:t,pS:c,mx:T,iJ:M,sZ:J,YG:S,zk:D,fd:Z,x_:f,context:A,e5:z};a=Vu(N,{a6:["metadata_type_sub_layouts"],OO:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||N.HK!==void 0&&N.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";E=ok(V,f.get())&&Vu(N,{a6:[],OO:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});l=Vu(N,{a6:[],OO:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(a)return VL();if(E)return P();if(l)return Q()}; sG=function(p,C,V,N,H,X,d,a,E,l){this.callback=p;this.slot=C;this.layout=V;this.pS=N;this.kG=H;this.BV=X;this.mx=d;this.gV=a;this.No=E;this.W=l;this.driftRecoveryMs=Ef(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.S=Ef(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0}; J7s=function(p){var C=Ef(p.layout.clientMetadata,"metadata_type_layout_enter_ms"),V=Ef(p.layout.clientMetadata,"metadata_type_layout_exit_ms");p=p.BV.get();C=M2y(p.V,C,V);return Math.min(V,C!==null?C:Infinity)}; EG=function(p,C){var V;al(p.No.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(V=p.pS.get().KA)==null?void 0:V.clientPlaybackNonce,adClientData:p.layout.eb.adClientDataEntry},C)})}; lb=function(p,C,V,N,H,X,d,a,E,l,t){sG.call(this,p,C,V,N,H,X,d,a,E,l);this.V=t;this.C=this.T=null;p=g.F(this.V);for(C=p.next();!C.done;C=p.next())C=C.value,dt(C.De().clientMetadata,"metadata_type_survey_overlay")&&(this.C=C.De().layoutId)}; vUj=function(p,C){var V=mN1(p,C);V||S2("Expected subLRA found by layout ID",p.slot,p.layout,{layoutId:C});p.T={Oh:V};V?V.startRendering(V.De()):C===p.C&&S2("Failed to find rendering adapter for survey media layout",p.slot,p.layout,{surveyMediaLayoutId:C})}; mN1=function(p,C){return C==null?null:p.V.find(function(V){return V.De().layoutId===C})||null}; FAS=function(p,C,V,N,H,X,d,a,E,l){var t=H-N,c=dt(C.clientMetadata,"metadata_type_survey_overlay"),T,M=((T=p.fulfilledLayout||Ef(p.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:Ef(T.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!t)return d.hA(V,M,2,X,N,H,p.slotId),tV(l,"ads_iraot","sid."+p.slotId+";enterMs."+N+";exitMs."+H+";hso."+c+";vid."+V.video_id),null;t=d.JY(V,M,2,X,N,H,p.slotId);tV(l,"ads_atct","sid."+p.slotId+";enterMs."+N+";exitMs."+H+";hso."+c+";vid."+V.video_id); if(!t)return S2("Unexpected failure to add to playback timeline",p,C,E()),null;p=p.slotId;C=C.layoutId;t?(a.T.has(t)&&S2("Unexpected remap of timeline playback"),a.T.set(t,{slotId:p,layoutId:C})):S2("Invalid timeline playback ID");N+X>H&&d.al(t,H-N);return t}; Su9=function(p,C,V){var N=Ef(C.clientMetadata,"metadata_type_sodar_extension_data");if(N)try{$MV(V,N)}catch(H){S2("Unexpected error when loading Sodar",p,C,{error:H})}}; KAs=function(p,C,V,N,H,X,d){cS(p,C,new g.Kt(V,new g.cj),N,H,d,!1,X)}; cS=function(p,C,V,N,H,X,d,a){d=d===void 0?!0:d;Jn(V)&&mQ(H,0,null)&&(!zl(p,"impression")&&a&&a(),p.tQ("impression"));zl(p,"impression")&&(g.u$(V,4)&&!g.u$(V,2)&&p.pO("pause"),D7(V,4)<0&&!(D7(V,2)<0)&&p.pO("resume"),g.u$(V,16)&&H>=.5&&p.pO("seek"),d&&g.u$(V,2)&&TT(p,V.state,C,N,H,X))}; TT=function(p,C,V,N,H,X,d,a){zl(p,"impression")&&(X?(X=H-N,X=X>=-1&&X<=2):X=Math.abs(N-H)<=1,MV(p,C,X?N:H,V,N,d,a&&X),X&&p.tQ("complete"))}; MV=function(p,C,V,N,H,X,d){Yu(p,V*1E3,d);H<=0||V<=0||(C==null?0:g.r(C,16))||(C==null?0:g.r(C,32))||(mQ(V,H*.25,N)&&(X&&!zl(p,"first_quartile")&&X("first"),p.tQ("first_quartile")),mQ(V,H*.5,N)&&(X&&!zl(p,"midpoint")&&X("second"),p.tQ("midpoint")),mQ(V,H*.75,N)&&(X&&!zl(p,"third_quartile")&&X("third"),p.tQ("third_quartile")))}; DNj=function(p,C){zl(p,"impression")&&p.pO(C?"fullscreen":"end_fullscreen")}; uKQ=function(p){zl(p,"impression")&&p.pO("clickthrough")}; Ztv=function(p){p.pO("active_view_measurable")}; UNe=function(p){zl(p,"impression")&&!zl(p,"seek")&&p.pO("active_view_fully_viewable_audible_half_duration")}; f79=function(p){zl(p,"impression")&&!zl(p,"seek")&&p.pO("active_view_viewable")}; Ots=function(p){zl(p,"impression")&&!zl(p,"seek")&&p.pO("audio_audible")}; y7Q=function(p){zl(p,"impression")&&!zl(p,"seek")&&p.pO("audio_measurable")}; quL=function(p,C,V,N,H,X,d,a,E,l,t,c){this.callback=p;this.slot=C;this.layout=V;this.kG=N;this.gV=H;this.mx=X;this.VA=d;this.AQ=a;this.GM=E;this.x_=l;this.No=t;this.pS=c;this.dM=!0;this.OZ=this.JQ=null;this.adCpn=void 0;this.T=!1}; I7H=function(p,C,V){var N;tV(p.No.get(),"ads_qua","cpn."+Ef(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((N=O3(p.pS.get(),2))==null?void 0:N.clientPlaybackNonce)+";qt."+C+";clr."+V)}; bty=function(p,C){var V,N;tV(p.No.get(),"ads_imp","cpn."+Ef(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=O3(p.pS.get(),2))==null?void 0:V.clientPlaybackNonce)+";clr."+C+";skp."+!!g.n((N=Ef(p.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:N.skipOrPreviewRenderer,JV))}; mL=function(p){return p.x_.get().N.K().experiments.OY("increase_completion_ping_firing_window")&&O3(p.pS.get(),1).VL}; vS=function(p){return{enterMs:Ef(p.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Ef(p.clientMetadata,"metadata_type_layout_exit_ms")}}; Fc=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){sG.call(this,p,C,V,N,H,d,a,E,l,c);this.VA=X;this.GM=t;this.AQ=T;this.x_=M;this.OZ=this.JQ=null}; A79=function(p,C){var V;tV(p.No.get(),"ads_imp","acpn."+((V=O3(p.pS.get(),2))==null?void 0:V.clientPlaybackNonce)+";clr."+C)}; oUL=function(p,C,V){var N;tV(p.No.get(),"ads_qua","cpn."+Ef(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((N=O3(p.pS.get(),2))==null?void 0:N.clientPlaybackNonce)+";qt."+C+";clr."+V)}; SI=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A){this.oH=p;this.u9=C;this.u0=V;this.pS=N;this.kG=H;this.mx=X;this.No=d;this.VA=a;this.BV=E;this.AQ=l;this.GM=t;this.gY=c;this.iJ=T;this.sZ=M;this.YG=J;this.zk=S;this.fd=D;this.x_=Z;this.T=f;this.context=q;this.e5=A}; Kr=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z){this.oH=p;this.u9=C;this.u0=V;this.No=N;this.AQ=H;this.GM=X;this.gY=d;this.pS=a;this.mx=E;this.iJ=l;this.sZ=t;this.YG=c;this.zk=T;this.fd=M;this.x_=J;this.kG=S;this.context=D;this.e5=Z}; k6S=function(p,C,V,N){tO.call(this,"survey-interstitial",p,C,V,N)}; DQ=function(p,C,V,N,H){uG.call(this,V,p,C,N);this.No=H;p=Ef(C.clientMetadata,"metadata_type_ad_placement_config");this.gV=new bG(C.y$,H,p,C.layoutId)}; ub=function(p){return Math.round(p.width)+"x"+Math.round(p.height)}; UG=function(p,C,V){V=V===void 0?ZQ:V;V.width<ZQ.width&&(V=ZQ);if(p.width<V.width||p.height<V.height)return{Ay:3,AM:501,errorMessage:"ad("+ub(V)+") larger than container("+ub(p)+")."};if(V.width*V.height>p.width*p.height*.2)return{Ay:3,AM:501,errorMessage:"ad("+ub(V)+") to container("+ub(p)+") ratio exceeds limit."};if(V.height>p.height/3-C)return{Ay:3,AM:501,errorMessage:"ad("+ub(V)+") covers container("+ub(p)+") center."}}; xNY=function(p,C){var V=Ef(p.clientMetadata,"metadata_type_ad_placement_config");return new bG(p.y$,C,V,p.layoutId)}; fr=function(p){return Ef(p.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; OG=function(p,C,V,N){tO.call(this,"invideo-overlay",p,C,V,N);this.interactionLoggingClientData=N}; y4=function(p,C,V,N,H,X,d,a,E,l,t,c){uG.call(this,X,p,C,H);this.No=V;this.S=d;this.mx=a;this.zk=E;this.x_=l;this.Y=t;this.W=c;this.gV=xNY(C,V)}; Yue=function(){var p=["metadata_type_invideo_overlay_ad_renderer"];Ay().forEach(function(C){p.push(C)}); return{a6:p,OO:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; qV=function(p,C,V,N,H,X,d,a,E,l,t,c,T){uG.call(this,X,p,C,H);this.No=V;this.S=d;this.J=a;this.mx=E;this.zk=l;this.x_=t;this.Y=c;this.W=T;this.gV=xNY(C,V)}; zSH=function(){for(var p=["metadata_type_invideo_overlay_ad_renderer"],C=g.F(Ay()),V=C.next();!V.done;V=C.next())p.push(V.value);return{a6:p,OO:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Il=function(p){this.mx=p;this.T=!1}; RSu=function(p,C,V){tO.call(this,"survey",p,{},C,V)}; bb=function(p,C,V,N,H,X,d){uG.call(this,V,p,C,N);this.S=H;this.mx=X;this.x_=d}; nUS=function(p,C,V,N,H,X,d,a,E,l){this.MW=p;this.mx=C;this.No=V;this.S=N;this.AQ=H;this.C=X;this.V=d;this.zk=a;this.x_=E;this.T=l}; eSL=function(p,C,V,N,H,X,d,a,E,l){this.MW=p;this.mx=C;this.No=V;this.S=N;this.AQ=H;this.C=X;this.V=d;this.zk=a;this.x_=E;this.T=l}; AV=function(p,C,V,N,H,X,d,a,E,l){hn.call(this,p,C,V,N,H,X,d,E);this.Xu=a;this.pS=l}; P$u=function(){var p=Whv();p.a6.push("metadata_type_ad_info_ad_metadata");return p}; wEX=function(p,C,V,N,H,X,d){this.MW=p;this.mx=C;this.No=V;this.C=N;this.Xu=H;this.T=X;this.pS=d}; $NL=function(p,C,V,N,H,X,d,a){this.MW=p;this.mx=C;this.No=V;this.C=N;this.Xu=H;this.T=X;this.x_=d;this.pS=a}; ol=function(p,C){this.slotId=C;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=p(this.triggerType)}; kP=function(p,C){this.adPodIndex=p;this.T=C.length;this.adBreakLengthSeconds=C.reduce(function(N,H){return N+H},0); var V=0;for(p+=1;p<C.length;p++)V+=C[p];this.adBreakRemainingLengthSeconds=V}; xP=function(p,C,V){this.Y8=C;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=V||p(this.triggerType)}; YP=function(p,C,V){this.T=C;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=V||p(this.triggerType)}; zT=function(p,C,V,N){this.Y8=C;this.visible=V;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=N||p(this.triggerType)}; LAv=function(p){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=p(this.triggerType)}; gU1=function(p){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=p(this.triggerType)}; Rl=function(p,C,V){this.triggeringLayoutId=C;this.slotId=V;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=p(this.triggerType)}; nr=function(p,C,V){this.triggeringLayoutId=C;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=V||p(this.triggerType)}; eI=function(p,C,V,N){this.triggeringLayoutId=C;this.T=V;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=N||p(this.triggerType)}; WAV=function(p){switch(p){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new G("Invalid layout exit reason: "+ p)}}; PS=function(p,C,V){this.triggeringLayoutId=C;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=V||p(this.triggerType)}; wF=function(p,C){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=C||p(this.triggerType)}; $P=function(p,C){this.breakDurationMs=p;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=C||""}; Lr=function(p,C){this.breakDurationMs=p;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=C||""}; gF=function(p,C){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=C||p(this.triggerType)}; Q0y=function(p){this.triggerId=p;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"}; r7e=function(p,C,V,N,H){this.Y8=C;this.T=V;this.visible=N;this.layoutId=H;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=p(this.triggerType)}; WS=function(p,C,V,N,H){this.Y8=C;this.T=V;this.visible=N;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=H||p(this.triggerType)}; Q4=function(p,C){this.breakDurationMs=p;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=C||""}; BkS=function(p,C,V){this.Y8=C;this.T=V;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=p(this.triggerType)}; rF=function(p,C,V,N,H){this.T=C;this.slotType=V;this.layoutType=N;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=H||p(this.triggerType)}; BS=function(p,C){this.T=C;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=p(this.triggerType)}; GT=function(p,C,V){this.layoutId=C;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=V||p(this.triggerType)}; pj=function(p,C,V){this.T=C;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=V||p(this.triggerType)}; gJj=function(p,C){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=C;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=p(this.triggerType)}; G6H=function(p,C){this.T=p;this.index=C}; phY=function(p){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=p(this.triggerType)}; Cj=function(p,C){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=C||p(this.triggerType)}; C7X=function(p,C,V){this.layoutId=C;this.offsetMs=V;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=p(this.triggerType)}; jDH=function(p,C){this.layoutId=C;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=p(this.triggerType)}; ViV=function(p,C,V){this.layoutId=C;this.offsetMs=V;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=p(this.triggerType)}; jB=function(p,C,V){this.triggeringLayoutId=C;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=V||p(this.triggerType)}; V9=function(p,C,V){this.triggeringSlotId=C;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=V||p(this.triggerType)}; NB=function(p,C,V){this.triggeringSlotId=C;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=V||p(this.triggerType)}; HP=function(p,C){this.triggeringSlotId=C;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=p(this.triggerType)}; Xg=function(p,C){this.triggeringSlotId=C;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=p(this.triggerType)}; d2=function(p,C,V){this.triggeringSlotId=C;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=V||p(this.triggerType)}; hM=function(p,C){this.triggeringSlotId=C;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=p(this.triggerType)}; sT=function(p,C,V){this.triggeringLayoutId=C;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=V||p(this.triggerType)}; ad=function(p,C,V,N){this.durationMs=C;this.triggeringLayoutId=V;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=N||p(this.triggerType)}; ET=function(p,C,V,N){this.category=p;this.trigger=C;this.slot=V;this.layout=N}; ln=function(p){return(p==null?void 0:p.layoutId)!=null&&(p==null?void 0:p.layoutType)!=null}; N3u=function(p){if(!ln(p.adLayoutMetadata))return!1;p=p.renderingContent;return g.n(p,tM)||g.n(p,cP)||g.n(p,T$)||g.n(p,MB)||g.n(p,JM)||g.n(p,m$)?!0:!1}; HSu=function(p){return(p==null?void 0:p.durationMs)!=null&&(p==null?void 0:p.durationMs)>0}; vP=function(p){return!!(p.kJ&&p.slot&&p.layout)}; Fg=function(p){var C,V=(C=p.config)==null?void 0:C.adPlacementConfig;p=p.renderer;return!(!V||V.kind==null||!p)}; Xhy=function(p){if(!ln(p.adLayoutMetadata))return!1;p=p.renderingContent;return g.n(p,cB)||g.n(p,Tx)||g.n(p,lv)||g.n(p,tn)?!0:!1}; SB=function(p){return p.playerVars!==void 0&&p.pings!==void 0&&p.externalVideoId!==void 0}; OT=function(p){if(!ln(p.adLayoutMetadata))return!1;p=p.renderingContent;var C=g.n(p,Kj);return C?Dd(C):(C=g.n(p,un))?SB(C):(C=g.n(p,Zd))?C.playerVars!==void 0:(C=g.n(p,cB))?C.durationMilliseconds!==void 0:g.n(p,UT)||g.n(p,fj)?!0:!1}; Dd=function(p){p=(p.sequentialLayouts||[]).map(function(C){return g.n(C,y9)}); return p.length>0&&p.every(OT)}; aa9=function(p){if(!ln(p.adLayoutMetadata))return!1;if(g.n(p.renderingContent,dQv)||g.n(p.renderingContent,iSQ))return!0;var C=g.n(p.renderingContent,qB);return g.n(p.renderingContent,Id)||g.n(C==null?void 0:C.sidePanel,hxS)||g.n(C==null?void 0:C.sidePanel,sDQ)?!0:!1}; T3e=function(p){var C;(C=!p)||(C=p.adSlotMetadata,C=!((C==null?void 0:C.slotId)!==void 0&&(C==null?void 0:C.slotType)!==void 0));if(C||!(Eiv(p)||p.slotEntryTrigger&&p.slotFulfillmentTriggers&&p.slotExpirationTriggers))return!1;var V;p=(V=p.fulfillmentContent)==null?void 0:V.fulfilledLayout;return(V=g.n(p,y9))?OT(V):(V=g.n(p,bn))?aa9(V):(V=g.n(p,lay))?Xhy(V):(V=g.n(p,tiy))?N3u(V):(p=g.n(p,c0V))?ln(p.adLayoutMetadata)?g.n(p.renderingContent,tM)?!0:!1:!1:!1}; Eiv=function(p){var C;p=g.n((C=p.fulfillmentContent)==null?void 0:C.fulfilledLayout,bn);var V;return p&&((V=p.adLayoutMetadata)==null?void 0:V.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&p.layoutExitNormalTriggers===void 0}; Mis=function(p){var C;return(p==null?void 0:(C=p.adSlotMetadata)==null?void 0:C.slotType)==="SLOT_TYPE_IN_PLAYER"}; mQy=function(p,C){var V;if((V=p.questions)==null||!V.length||!p.playbackCommands||(C===void 0||!C)&&p.questions.length!==1)return!1;p=g.F(p.questions);for(C=p.next();!C.done;C=p.next()){C=C.value;var N=V=void 0,H=((V=g.n(C,AM))==null?void 0:V.surveyAdQuestionCommon)||((N=g.n(C,od))==null?void 0:N.surveyAdQuestionCommon);if(!J0u(H))return!1}return!0}; vi1=function(p){p=((p==null?void 0:p.playerOverlay)||{}).instreamSurveyAdRenderer;var C;if(p)if(p.playbackCommands&&p.questions&&p.questions.length===1){var V,N=((C=g.n(p.questions[0],AM))==null?void 0:C.surveyAdQuestionCommon)||((V=g.n(p.questions[0],od))==null?void 0:V.surveyAdQuestionCommon);C=J0u(N)}else C=!1;else C=!1;return C}; J0u=function(p){if(!p)return!1;p=g.n(p.instreamAdPlayerOverlay,kr);var C=g.n(p==null?void 0:p.skipOrPreviewRenderer,JV),V=g.n(p==null?void 0:p.adInfoRenderer,xr);return(g.n(p==null?void 0:p.skipOrPreviewRenderer,Yr)||C)&&V?!0:!1}; FcV=function(p){return p.linearAds!=null&&ln(p.adLayoutMetadata)}; SnL=function(p){return p.linearAd!=null&&p.adVideoStart!=null}; Kce=function(p){if(isNaN(Number(p.timeoutSeconds))||!p.text||!p.ctaButton||!g.n(p.ctaButton,g.z$)||!p.brandImage)return!1;var C;return p.backgroundImage&&g.n(p.backgroundImage,Rd)&&((C=g.n(p.backgroundImage,Rd))==null?0:C.landscape)?!0:!1}; nj=function(p,C,V,N,H,X,d){g.Y.call(this);this.x_=p;this.T=C;this.V=N;this.pS=H;this.S=X;this.C=d}; ZSV=function(p,C,V){var N,H=((N=V.adSlots)!=null?N:[]).map(function(a){return g.n(a,eB)}); if(V.cC)if(Ef(C.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))FY(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},C.slotId); else{if(p.x_.get().N.K().G("h5_check_forecasting_renderer_for_throttled_midroll")){var X=V.zs.filter(function(a){var E;return((E=a.renderer)==null?void 0:E.clientForecastingAdRenderer)!=null}); X.length!==0?DQX(p.C,X,H,C.slotId,V.ssdaiAdsConfig):FY(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},C.slotId)}else FY(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},C.slotId); uXV(p.S,C)}else{var d;N={cS:Math.round(((X=Ef(C.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:X.cS)||0),qS:(d=Ef(C.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:d.qS};DQX(p.C,V.zs,H,C.slotId,V.ssdaiAdsConfig,N)}}; faQ=function(p,C,V,N,H,X,d){var a=O3(p.pS.get(),1);FY(p.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return UQs(p.V.get(),V,N,H,a.clientPlaybackNonce,a.qw,a.daiEnabled,a,X,d)},C)}; y0e=function(p,C,V,N,H,X,d){C=OSS(C,X,Number(N.prefetchMilliseconds)||0,d);p=C instanceof G?C:PP(p,N,H,C,V);return p instanceof G?p:[p]}; qnQ=function(p,C,V,N,H){var X=SY(p.C.get(),"SLOT_TYPE_AD_BREAK_REQUEST");N=[new PV({getAdBreakUrl:N.getAdBreakUrl,cS:0,qS:0}),new Nz(!0)];p=C.pauseDurationMs?C.lactThresholdMs?{slotId:X,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new d2(p.T,X),slotFulfillmentTriggers:[new gU1(p.T)],slotExpirationTriggers:[new pj(p.T,H),new NB(p.T,X)],Br:"core",clientMetadata:new a3(N),adSlotLoggingData:V}:new G("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new G("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return p instanceof G?p:[p]}; IaH=function(p){var C,V;return((C=p.renderer)==null?void 0:(V=C.adBreakServiceRenderer)==null?void 0:V.getAdBreakUrl)!==void 0}; w2=function(p,C,V){if(p.beforeContentVideoIdStartedTrigger)p=p.beforeContentVideoIdStartedTrigger?new xP(h4,C,p.id):new G("Not able to create BeforeContentVideoIdStartedTrigger");else{if(p.layoutIdExitedTrigger){var N;C=(N=p.layoutIdExitedTrigger)!=null&&N.triggeringLayoutId?new PS(h4,p.layoutIdExitedTrigger.triggeringLayoutId,p.id):new G("Not able to create LayoutIdExitedTrigger")}else{if(p.layoutExitedForReasonTrigger){var H,X;((H=p.layoutExitedForReasonTrigger)==null?0:H.triggeringLayoutId)&&((X= p.layoutExitedForReasonTrigger)==null?0:X.layoutExitReason)?(C=WAV(p.layoutExitedForReasonTrigger.layoutExitReason),p=C instanceof G?C:new eI(h4,p.layoutExitedForReasonTrigger.triggeringLayoutId,[C],p.id)):p=new G("Not able to create LayoutIdExitedForReasonTrigger")}else{if(p.onLayoutSelfExitRequestedTrigger){var d;C=(d=p.onLayoutSelfExitRequestedTrigger)!=null&&d.triggeringLayoutId?new GT(h4,p.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,p.id):new G("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(p.onNewPlaybackAfterContentVideoIdTrigger)p= p.onNewPlaybackAfterContentVideoIdTrigger?new pj(h4,C,p.id):new G("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(p.skipRequestedTrigger){var a;C=(a=p.skipRequestedTrigger)!=null&&a.triggeringLayoutId?new jB(h4,p.skipRequestedTrigger.triggeringLayoutId,p.id):new G("Not able to create SkipRequestedTrigger")}else if(p.slotIdEnteredTrigger){var E;C=(E=p.slotIdEnteredTrigger)!=null&&E.triggeringSlotId?new V9(h4,p.slotIdEnteredTrigger.triggeringSlotId,p.id):new G("Not able to create SlotIdEnteredTrigger")}else if(p.slotIdExitedTrigger){var l; C=(l=p.slotIdExitedTrigger)!=null&&l.triggeringSlotId?new NB(h4,p.slotIdExitedTrigger.triggeringSlotId,p.id):new G("Not able to create SkipRequestedTrigger")}else if(p.surveySubmittedTrigger){var t;C=(t=p.surveySubmittedTrigger)!=null&&t.triggeringLayoutId?new sT(h4,p.surveySubmittedTrigger.triggeringLayoutId,p.id):new G("Not able to create SurveySubmittedTrigger")}else{if(p.mediaResumedTrigger)p=p.mediaResumedTrigger&&p.id?new Q0y(p.id):new G("Not able to create MediaResumedTrigger");else{if(p.closeRequestedTrigger){var c; C=(c=p.closeRequestedTrigger)!=null&&c.triggeringLayoutId?new YP(h4,p.closeRequestedTrigger.triggeringLayoutId,p.id):new G("Not able to create CloseRequestedTrigger")}else if(p.slotIdScheduledTrigger){var T;C=(T=p.slotIdScheduledTrigger)!=null&&T.triggeringSlotId?new d2(h4,p.slotIdScheduledTrigger.triggeringSlotId,p.id):new G("Not able to create SlotIdScheduledTrigger")}else{if(p.mediaTimeRangeTrigger){var M;N=Number((M=p.mediaTimeRangeTrigger)==null?void 0:M.offsetStartMilliseconds);var J;d=Number((J= p.mediaTimeRangeTrigger)==null?void 0:J.offsetEndMilliseconds);isFinite(N)&&isFinite(d)?(J=d,J===-1&&(J=V),V=N>J?new G("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:N,offsetEndMs:J},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",J===V&&N-500<=J):new Od(N,J),p=V instanceof G?V:new WS(h4,C,V,!1,p.id)):p=new G("Not able to create MediaTimeRangeTrigger")}else if(p.contentVideoIdEndedTrigger)p=p.contentVideoIdEndedTrigger?new zT(h4,C,!1,p.id):new G("Not able to create ContentVideoIdEndedTrigger"); else{if(p.layoutIdEnteredTrigger){var S;C=(S=p.layoutIdEnteredTrigger)!=null&&S.triggeringLayoutId?new nr(h4,p.layoutIdEnteredTrigger.triggeringLayoutId,p.id):new G("Not able to create LayoutIdEnteredTrigger")}else if(p.timeRelativeToLayoutEnterTrigger){var D;C=(D=p.timeRelativeToLayoutEnterTrigger)!=null&&D.triggeringLayoutId?new ad(h4,Number(p.timeRelativeToLayoutEnterTrigger.durationMs),p.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,p.id):new G("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(p.onDifferentLayoutIdEnteredTrigger){var Z; C=(Z=p.onDifferentLayoutIdEnteredTrigger)!=null&&Z.triggeringLayoutId&&p.onDifferentLayoutIdEnteredTrigger.slotType&&p.onDifferentLayoutIdEnteredTrigger.layoutType?new rF(h4,p.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,p.onDifferentLayoutIdEnteredTrigger.slotType,p.onDifferentLayoutIdEnteredTrigger.layoutType,p.id):new G("Not able to create CloseRequestedTrigger")}else{if(p.liveStreamBreakStartedTrigger)p=p.liveStreamBreakStartedTrigger&&p.id?new gF(h4,p.id):new G("Not able to create LiveStreamBreakStartedTrigger"); else if(p.liveStreamBreakEndedTrigger)p=p.liveStreamBreakEndedTrigger&&p.id?new wF(h4,p.id):new G("Not able to create LiveStreamBreakEndedTrigger");else{if(p.liveStreamBreakScheduledDurationMatchedTrigger){var f;C=(f=p.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&f.breakDurationMs?new $P(Number(p.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,p.id):new G("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(p.liveStreamBreakScheduledDurationNotMatchedTrigger){var q; C=(q=p.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&q.breakDurationMs?new Lr(Number(p.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,p.id):new G("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(p.newSlotScheduledWithBreakDurationTrigger){var A;C=(A=p.newSlotScheduledWithBreakDurationTrigger)!=null&&A.breakDurationMs?new Q4(Number(p.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,p.id):new G("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else C= p.prefetchCacheExpiredTrigger?new Cj(h4,p.id):new G("Not able to convert an AdsControlflowTrigger.");p=C}C=p}p=C}C=p}p=C}C=p}p=C}C=p}p=C}C=p}p=C}return p}; $r=function(p,C){C.T>=2&&(p.slot_pos=C.adPodIndex);p.autoplay="1"}; A0L=function(p,C,V,N,H,X,d,a){return C===null?new G("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:C,ActionCompanionAdRenderer:N}):[bSy(p,C,d,X,function(E){var l=E.slotId;E=a(E);var t=N.adLayoutLoggingData,c=new a3([new $Y(N),new NG(H)]);l=jY(V.C.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var T={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Br:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",y$:new Map, layoutExitNormalTriggers:[new pj(V.T,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:c,eb:E(T),adLayoutLoggingData:t}})]}; oi9=function(p,C,V,N,H,X,d,a){return C===null?new G("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:C,TopBannerImageTextIconButtonedLayoutViewModel:N}):[bSy(p,C,d,X,function(E){var l=E.slotId;E=a(E);var t=N.adLayoutLoggingData,c=new a3([new LW(N),new NG(H)]);l=jY(V.C.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var T={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Br:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", y$:new Map,layoutExitNormalTriggers:[new pj(V.T,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:c,eb:E(T),adLayoutLoggingData:t}})]}; zxy=function(p,C,V,N,H,X){if(!X)for(C=g.F(C),X=C.next();!X.done;X=C.next())X=X.value,Lj(p,X.renderer,X.config.adPlacementConfig.kind);p=Array.from(p.values()).filter(function(t){return k0L(t)}); C=[];X=g.F(p);for(var d=X.next(),a={};!d.done;a={RX:void 0},d=X.next()){a.RX=d.value;d=g.F(a.RX.s9);for(var E=d.next(),l={};!E.done;l={Fu:void 0},E=d.next())l.Fu=E.value,E=function(t,c){return function(T){return t.Fu.rq(T,c.RX.instreamVideoAdRenderer.elementId,t.Fu.xK)}}(l,a),l.Fu.isContentVideoCompanion?C.push(xQS(V,N,H,a.RX.instreamVideoAdRenderer.elementId,l.Fu.associatedCompositePlayerBytesLayoutId,l.Fu.adSlotLoggingData,E)):p.length>1?C.push(YnX(V,N,H,a.RX.instreamVideoAdRenderer.elementId,l.Fu.adSlotLoggingData, function(t,c){return function(T){return t.Fu.rq(T,c.RX.instreamVideoAdRenderer.elementId,t.Fu.xK,t.Fu.associatedCompositePlayerBytesLayoutId)}}(l,a))):C.push(YnX(V,N,H,a.RX.instreamVideoAdRenderer.elementId,l.Fu.adSlotLoggingData,E))}return C}; Lj=function(p,C,V){if(C=RxL(C)){C=g.F(C);for(var N=C.next();!N.done;N=C.next())if((N=N.value)&&N.externalVideoId){var H=g2(p,N.externalVideoId);H.instreamVideoAdRenderer||(H.instreamVideoAdRenderer=N,H.Ho=V)}else S2("InstreamVideoAdRenderer without externalVideoId")}}; RxL=function(p){var C=[],V=p.sandwichedLinearAdRenderer&&p.sandwichedLinearAdRenderer.linearAd&&g.n(p.sandwichedLinearAdRenderer.linearAd,un);if(V)return C.push(V),C;if(p.instreamVideoAdRenderer)return C.push(p.instreamVideoAdRenderer),C;if(p.linearAdSequenceRenderer&&p.linearAdSequenceRenderer.linearAds){p=g.F(p.linearAdSequenceRenderer.linearAds);for(V=p.next();!V.done;V=p.next())V=V.value,g.n(V,un)&&C.push(g.n(V,un));return C}return null}; k0L=function(p){if(p.instreamVideoAdRenderer===void 0)return S2("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var C=g.F(p.s9),V=C.next();!V.done;V=C.next()){V=V.value;if(V.rq===void 0)return!1;if(V.xK===void 0)return S2("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(p.Ho===void 0||V.QC===void 0||p.Ho!==V.QC&&V.QC!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(p.instreamVideoAdRenderer.elementId===void 0)return S2("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:p.Ho,"matching APSR kind":V.QC}),!1}return!0}; g2=function(p,C){p.has(C)||p.set(C,{instreamVideoAdRenderer:void 0,Ho:void 0,adVideoId:C,s9:[]});return p.get(C)}; WP=function(p,C,V,N,H,X,d,a,E){H?g2(p,H).s9.push({Hk$:C,QC:V,isContentVideoCompanion:N,xK:d,associatedCompositePlayerBytesLayoutId:X,adSlotLoggingData:a,rq:E}):S2("Companion AdPlacementSupportedRenderer without adVideoId")}; Q9=function(p){var C=0;p=g.F(p.questions);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V=g.n(V,AM)||g.n(V,od)){var N=void 0;C+=((N=V.surveyAdQuestionCommon)==null?void 0:N.durationMilliseconds)||0}return C}; r2=function(p){var C,V,N,H,X=((V=g.n((C=p.questions)==null?void 0:C[0],AM))==null?void 0:V.surveyAdQuestionCommon)||((H=g.n((N=p.questions)==null?void 0:N[0],od))==null?void 0:H.surveyAdQuestionCommon),d;C=[].concat(g.K(((d=p.playbackCommands)==null?void 0:d.instreamAdCompleteCommands)||[]),g.K((X==null?void 0:X.timeoutCommands)||[]));var a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au,W;return{impressionCommands:(a=p.playbackCommands)==null?void 0:a.impressionCommands,errorCommands:(E=p.playbackCommands)== null?void 0:E.errorCommands,muteCommands:(l=p.playbackCommands)==null?void 0:l.muteCommands,unmuteCommands:(t=p.playbackCommands)==null?void 0:t.unmuteCommands,pauseCommands:(c=p.playbackCommands)==null?void 0:c.pauseCommands,rewindCommands:(T=p.playbackCommands)==null?void 0:T.rewindCommands,resumeCommands:(M=p.playbackCommands)==null?void 0:M.resumeCommands,skipCommands:(J=p.playbackCommands)==null?void 0:J.skipCommands,progressCommands:(S=p.playbackCommands)==null?void 0:S.progressCommands,J9a:(D= p.playbackCommands)==null?void 0:D.clickthroughCommands,fullscreenCommands:(Z=p.playbackCommands)==null?void 0:Z.fullscreenCommands,activeViewViewableCommands:(f=p.playbackCommands)==null?void 0:f.activeViewViewableCommands,activeViewMeasurableCommands:(q=p.playbackCommands)==null?void 0:q.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(A=p.playbackCommands)==null?void 0:A.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(z=p.playbackCommands)== null?void 0:(Q=z.activeViewTracking)==null?void 0:Q.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(P=p.playbackCommands)==null?void 0:(VL=P.activeViewTracking)==null?void 0:VL.activeViewAudioMeasurableCommands,endFullscreenCommands:(au=p.playbackCommands)==null?void 0:au.endFullscreenCommands,abandonCommands:(W=p.playbackCommands)==null?void 0:W.abandonCommands,completeCommands:C}}; ex9=function(p,C,V,N,H,X,d){return function(a,E){return niY(p,E.slotId,a,X,function(l,t){var c=E.layoutId;l=d(l);return BP(C,c,t,H,l,"LAYOUT_TYPE_SURVEY",[new vV(V),N],V.adLayoutLoggingData)})}}; $Q9=function(p,C,V,N,H,X,d){if(!P7S(p))return new G("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:p});var a=p.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[wha(X,C,V,N,function(E){var l=E.slotId;E=d(E);l=jY(H.C.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",l);var t={layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Br:"core"},c=new PS(H.T,N);return{layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",y$:new Map,layoutExitNormalTriggers:[c], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new Fw(a)]),eb:E(t)}})]}; P7S=function(p){p=g.n(p==null?void 0:p.additionalPlayerOverlay,LcY);if(!p)return!1;var C=p.slidingMessages;return p.title&&C&&C.length!==0?!0:!1}; Wc1=function(p,C,V,N,H){var X;if((X=p.playerOverlay)==null||!X.instreamSurveyAdRenderer)return function(){return[]}; if(!vi1(p))return function(){return new G("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:p})}; var d=p.playerOverlay.instreamSurveyAdRenderer,a=Q9(d);return a<=0?function(){return new G("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:d})}:function(E,l){var t=giY(E,V,N,function(c){var T=c.slotId; c=l(c);var M=r2(d);T=jY(H.C.get(),"LAYOUT_TYPE_SURVEY",T);var J={layoutId:T,layoutType:"LAYOUT_TYPE_SURVEY",Br:"core"},S=new PS(H.T,N),D=new jB(H.T,T),Z=new sT(H.T,T),f=new phY(H.T);return{layoutId:T,layoutType:"LAYOUT_TYPE_SURVEY",y$:new Map,layoutExitNormalTriggers:[S,f],layoutExitSkipTriggers:[D],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[Z],f1:[],Br:"core",clientMetadata:new a3([new mt(d),new NG(C),new LF(a/1E3),new rg(M)]),eb:c(J),adLayoutLoggingData:d.adLayoutLoggingData}}); E=$Q9(p,V,t.slotId,N,H,E,l);return E instanceof G?E:[t].concat(g.K(E))}}; j4v=function(p,C,V,N,H,X,d){d=d===void 0?!1:d;var a=[];try{var E=[];if(V.renderer.linearAdSequenceRenderer)var l=function(S){S=QDy(S.slotId,V,C,H(S),N,X,d);E=S.JEa;return S.RZ}; else if(V.renderer.instreamVideoAdRenderer)l=function(S){var D=S.slotId;S=H(S);var Z=d,f=V.config.adPlacementConfig,q=r0H(f),A=q.Tj,z=q.x4;q=V.renderer.instreamVideoAdRenderer;var Q;if(q==null?0:(Q=q.playerOverlay)==null?0:Q.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var P=G$(q,Z);Q=Math.min(A+P.videoLengthSeconds*1E3,z);Z=new kP(0,[P.videoLengthSeconds]);z=P.videoLengthSeconds;var VL=P.playerVars,au=P.instreamAdPlayerOverlayRenderer,W=P.playerOverlayLayoutRenderer, e=P.adVideoId,B=B39(V),v=P.y$;P=P.Yn;var w=q==null?void 0:q.adLayoutLoggingData;q=q==null?void 0:q.sodarExtensionData;D=jY(C.C.get(),"LAYOUT_TYPE_MEDIA",D);var C0={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA",Br:"core"};return{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA",y$:v,layoutExitNormalTriggers:[new wF(C.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new sr(N),new qG(z),new Iw(VL),new ow(A),new k_(Q),au&&new aw(au), W&&new Er(W),new NG(f),new ha(e),new HV(Z),new nF(B),q&&new Aa(q),new Ur({current:null}),new Y_({}),new pP(P)].filter(G0L)),eb:S(C0),adLayoutLoggingData:w}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var t=pH1(p,N,V.adSlotLoggingData,l);a.push(t);for(var c=g.F(E),T=c.next();!T.done;T=c.next()){var M=T.value,J=M(p,H);if(J instanceof G)return J;a.push.apply(a,g.K(J))}}catch(S){return new G(S,{errorMessage:S.message,AdPlacementRenderer:V,numberOfSurveyRenderers:Cea(V)})}return a}; Cea=function(p){p=(p.renderer.linearAdSequenceRenderer||{}).linearAds;return p!=null&&p.length?p.filter(function(C){var V,N;return((V=g.n(C,un))==null?void 0:(N=V.playerOverlay)==null?void 0:N.instreamSurveyAdRenderer)!=null}).length:0}; QDy=function(p,C,V,N,H,X,d){var a=C.config.adPlacementConfig,E=r0H(a),l=E.Tj,t=E.x4;E=(C.renderer.linearAdSequenceRenderer||{}).linearAds;if(E==null||!E.length)throw new TypeError("Expected linear ads");var c=[],T={JK:l,Ri:0,lQ$:c};E=E.map(function(J){return VLX(p,J,T,V,N,a,H,t,d)}).map(function(J,S){S=new kP(S,c); return J(S)}); var M=E.map(function(J){return J.YI}); return{RZ:NcX(V,p,l,M,a,B39(C),N,t,X),JEa:E.map(function(J){return J.O9n})}}; VLX=function(p,C,V,N,H,X,d,a,E){var l=G$(g.n(C,un),E),t=V.JK,c=V.Ri,T=Math.min(t+l.videoLengthSeconds*1E3,a);V.JK=T;V.Ri++;V.lQ$.push(l.videoLengthSeconds);var M,J,S=(M=g.n(C,un))==null?void 0:(J=M.playerOverlay)==null?void 0:J.instreamSurveyAdRenderer;if(l.adVideoId==="nPpU29QrbiU"&&S==null)throw new TypeError("Survey slate media has no survey overlay");return function(D){$r(l.playerVars,D);var Z,f,q=l.videoLengthSeconds,A=l.playerVars,z=l.y$,Q=l.Yn,P=l.instreamAdPlayerOverlayRenderer,VL=l.playerOverlayLayoutRenderer, au=l.adVideoId,W=(Z=g.n(C,un))==null?void 0:Z.adLayoutLoggingData;Z=(f=g.n(C,un))==null?void 0:f.sodarExtensionData;f=jY(N.C.get(),"LAYOUT_TYPE_MEDIA",p);var e={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",Br:"adapter"};D={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",y$:z,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"adapter",clientMetadata:new a3([new sr(d),new qG(q),new Iw(A),new ow(t),new k_(T),new x_(c),new Ur({current:null}), P&&new aw(P),VL&&new Er(VL),new NG(X),new ha(au),new HV(D),Z&&new Aa(Z),S&&new Gc(S),new Y_({}),new pP(Q)].filter(G0L)),eb:H(e),adLayoutLoggingData:W};q=Wc1(g.n(C,un),X,d,D.layoutId,N);return{YI:D,O9n:q}}}; G$=function(p,C){if(!p)throw new TypeError("Expected instream video ad renderer");if(!p.playerVars)throw new TypeError("Expected player vars in url encoded string");var V=i1(p.playerVars),N=Number(V.length_seconds);if(isNaN(N))throw new TypeError("Expected valid length seconds in player vars");var H=Number(p.trimmedMaxNonSkippableAdDurationMs);N=isNaN(H)?N:Math.min(N,H/1E3);H=p.playerOverlay||{};H=H.instreamAdPlayerOverlayRenderer===void 0?null:H.instreamAdPlayerOverlayRenderer;var X=p.playerOverlay|| {};X=X.playerOverlayLayoutRenderer===void 0?null:X.playerOverlayLayoutRenderer;var d=V.video_id;d||(d=(d=p.externalVideoId)?d:void 0);if(!d)throw new TypeError("Expected valid video id in IVAR");if(C&&N===0){var a;C=(a=HUQ[d])!=null?a:N}else C=N;return{playerVars:V,videoLengthSeconds:C,instreamAdPlayerOverlayRenderer:H,playerOverlayLayoutRenderer:X,adVideoId:d,y$:p.pings?Ij(p.pings):new Map,Yn:qo(p.pings)}}; B39=function(p){p=Number(p.driftRecoveryMs);return isNaN(p)||p<=0?null:p}; r0H=function(p){var C=p.adTimeOffset||{};p=C.offsetEndMilliseconds;C=Number(C.offsetStartMilliseconds);if(isNaN(C))throw new TypeError("Expected valid start offset");p=Number(p);if(isNaN(p))throw new TypeError("Expected valid end offset");return{Tj:C,x4:p}}; XHS=function(p){var C,V=(C=Ef(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:C.current;if(!V)return null;C=Ef(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var N=p.layoutId,H=Ef(p.clientMetadata,"metadata_type_content_cpn"),X=Ef(p.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),d=Ef(p.clientMetadata,"metadata_type_player_underlay_renderer"),a=Ef(p.clientMetadata,"metadata_type_ad_placement_config"),E=Ef(p.clientMetadata,"metadata_type_video_length_seconds"); var l=dt(p.clientMetadata,"metadata_type_layout_enter_ms")&&dt(p.clientMetadata,"metadata_type_layout_exit_ms")?(Ef(p.clientMetadata,"metadata_type_layout_exit_ms")-Ef(p.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{DI:N,contentCpn:H,LF:V,Ih:C,instreamAdPlayerOverlayRenderer:X,instreamAdPlayerUnderlayRenderer:d,adPlacementConfig:a,videoLengthSeconds:E,LG:l,inPlayerLayoutId:Ef(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Ef(p.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; h_9=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J){N=SY(N,"SLOT_TYPE_PLAYER_BYTES");p=dRL(H,p,d,V,N,E,l);if(p instanceof G)return p;var S;l=(S=Ef(p.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:S.layoutId;if(!l)return new G("Invalid adNotify layout");C=iUY(l,H,X,V,a,C,E,t,c,T,M,J,d);return C instanceof G?C:[p].concat(g.K(C))}; iUY=function(p,C,V,N,H,X,d,a,E,l,t,c,T){V=s4Y(C,V,N,X,d,a,E,l,t,c,T);if(V instanceof G)return V;p=afY(C,p,d,H,V);return p instanceof G?p:[].concat(g.K(p.uW),[p.Wn])}; lfH=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){C=s4Y(p,C,V,H,X,a,E,l,t,c,T,M);if(C instanceof G)return C;p=E9V(p,V,X,d,N,a.p4,C);return p instanceof G?p:p.uW.concat(p.Wn)}; s4Y=function(p,C,V,N,H,X,d,a,E,l,t,c){var T=pa(N,V,l);return T instanceof sf?new G(T):l.N.K().experiments.OY("html5_refactor_in_player_slot_generation")?function(M){var J=new kP(0,[T.uy]);M=tL9(C,T.layoutId,T.yz,V,Ca(T.playerVars,T.iC,X,E,J),T.uy,H,J,d(M),a.get(T.yz.externalVideoId),c);J=[];if(T.yz.playerOverlay.instreamAdPlayerOverlayRenderer){var S=XHS(M);if(!S)return S2("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,M),{layout:M,uW:[]}; J=[cd9(p,S.contentCpn,S.DI,function(Z){return j8(C,Z.slotId,"core",S,J4(t,Z))},S.inPlayerSlotId)].concat(g.K(J)); if(S.instreamAdPlayerUnderlayRenderer&&Vn(l)){var D=S.instreamAdPlayerUnderlayRenderer;J=[TcQ(p,S.contentCpn,S.DI,function(Z){return MLV(C,Z.slotId,D,S.adPlacementConfig,S.DI,J4(t,Z))})].concat(g.K(J))}}return{layout:M, uW:J}}:function(M){var J=new kP(0,[T.uy]); return{layout:tL9(C,T.layoutId,T.yz,V,Ca(T.playerVars,T.iC,X,E,J),T.uy,H,J,d(M),a.get(T.yz.externalVideoId),c),uW:[]}}}; pa=function(p,C,V){if(!p.playerVars)return new sf("No playerVars available in InstreamVideoAdRenderer.");var N,H;if(p.elementId==null||p.playerVars==null||p.playerOverlay==null||((N=p.playerOverlay)==null?void 0:N.instreamAdPlayerOverlayRenderer)==null&&((H=p.playerOverlay)==null?void 0:H.playerOverlayLayoutRenderer)==null||p.pings==null||p.externalVideoId==null)return new sf("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:p});N=i1(p.playerVars);H=Number(N.length_seconds); isNaN(H)&&(H=0,S2("Expected valid length seconds in player vars but got NaN"));if(V.sV(C.kind==="AD_PLACEMENT_KIND_START")){if(p.layoutId===void 0)return new sf("Expected server generated layout ID in instreamVideoAdRenderer");C=p.layoutId}else C=p.elementId;return{layoutId:C,yz:p,playerVars:N,iC:p.playerVars,uy:H}}; Ca=function(p,C,V,N,H){p.iv_load_policy=N;C=i1(C);if(C.cta_conversion_urls)try{p.cta_conversion_urls=JSON.parse(C.cta_conversion_urls)}catch(X){S2(X)}V.wx&&(p.ctrl=V.wx);V.eH&&(p.ytr=V.eH);V.Bb&&(p.ytrcc=V.Bb);V.isMdxPlayback&&(p.mdx="1");p.vvt&&(p.vss_credentials_token=p.vvt,V.B_&&(p.vss_credentials_token_type=V.B_),V.mdxEnvironment&&(p.mdx_environment=V.mdxEnvironment));$r(p,H);return p}; JdV=function(p){var C=new Map;p=g.F(p);for(var V=p.next();!V.done;V=p.next())(V=V.value.renderer.remoteSlotsRenderer)&&V.hostElementId&&C.set(V.hostElementId,V);return C}; N3=function(p){return p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; mR1=function(p){return p!=null}; uAY=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){for(var J=[],S=g.F(p),D=S.next();!D.done;D=S.next())if(D=D.value,!Eiv(D)&&!Mis(D)){var Z=N3(D)&&!!D.slotEntryTrigger.beforeContentVideoIdStartedTrigger,f=E.sV(Z),q=v9H(D,l,N,V.qw,f);if(q instanceof G)return q;var A=void 0,z={slotId:D.adSlotMetadata.slotId,slotType:D.adSlotMetadata.slotType,slotPhysicalPosition:(A=D.adSlotMetadata.slotPhysicalPosition)!=null?A:1,Br:"core",slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers, slotExpirationTriggers:q.slotExpirationTriggers},Q=g.n(D.fulfillmentContent.fulfilledLayout,y9);if(Q){if(!OT(Q))return new G("Invalid PlayerBytesAdLayoutRenderer");A=c&&!(N3(D)&&D.slotEntryTrigger.beforeContentVideoIdStartedTrigger);q=q.slotFulfillmentTriggers.some(function(P){return P instanceof $P}); f=A?FIj(z,D.adSlotMetadata.triggerEvent,Q,V,N,X,l,p,f,T,q,M):S0S(z,D.adSlotMetadata.triggerEvent,Q,C,V,N,H,X,d,a,E,l,p,t,f,D.adSlotMetadata.triggeringSourceLayoutId);if(f instanceof G)return f;q=[];N3(D)&&q.push(new HU({eX:N3(D)&&!!D.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));A&&q.push(new Y_({}));V.p4&&q.push(new BV({}));q.push(new VV(Z));D=Object.assign({},z,{clientMetadata:new a3(q),fulfilledLayout:f.layout,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push.apply(J,g.K(f.uW)); J.push(D)}else if(Z=g.n(D.fulfillmentContent.fulfilledLayout,bn)){if(!aa9(Z))return new G("Invalid PlayerUnderlayAdLayoutRenderer");Z=KIj(Z,N,V.qw,X,z,D.adSlotMetadata.triggerEvent,D.adSlotMetadata.triggeringSourceLayoutId);if(Z instanceof G)return Z;D=Object.assign({},z,{clientMetadata:new a3([]),fulfilledLayout:Z,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push(D)}else if(Z=g.n(D.fulfillmentContent.fulfilledLayout,tiy)){if(!N3u(Z))return new G("Invalid AboveFeedAdLayoutRenderer");Z= DRv(Z,N,V.qw,X,z,D.adSlotMetadata.triggerEvent,D.adSlotMetadata.triggeringSourceLayoutId);if(Z instanceof G)return Z;D=Object.assign({},z,{clientMetadata:new a3([]),fulfilledLayout:Z,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push(D)}else if(Z=g.n(D.fulfillmentContent.fulfilledLayout,c0V)){if(!ln(Z.adLayoutMetadata)||!g.n(Z.renderingContent,tM))return new G("Invalid BelowPlayerAdLayoutRenderer");Z=DRv(Z,N,V.qw,X,z,D.adSlotMetadata.triggerEvent,D.adSlotMetadata.triggeringSourceLayoutId); if(Z instanceof G)return Z;D=Object.assign({},z,{clientMetadata:new a3([]),fulfilledLayout:Z,adSlotLoggingData:D.adSlotMetadata.adSlotLoggingData});J.push(D)}else return new G("Unable to retrieve a client slot ["+z.slotType+"] from a given AdSlotRenderer")}return J}; DRv=function(p,C,V,N,H,X,d){var a={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"};C=H0(p,C,V);if(C instanceof G)return C;V=[];V.push(new NG(Xm(X)));X==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&d!==void 0&&V.push(new ST(d));return Object.assign({},a,{renderingContent:p.renderingContent,y$:new Map([["impression",ZU1(p)]])},C,{eb:J4(N,H)(a),clientMetadata:new a3(V),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}; KIj=function(p,C,V,N,H,X,d){if(p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(d=g.n(p.renderingContent,qB))if(d=g.n(d.sidePanel,sDQ)){var a={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"};C=H0(p,C,V);p=C instanceof G?C:Object.assign({},a,{renderingContent:p.renderingContent,y$:new Map([["impression",d.impressionPings||[]],["resume",d.resumePings||[]]])},C,{eb:J4(N,H)(a),clientMetadata:new a3([new NG(Xm(X))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}else p= new G("DismissablePanelTextPortraitImageRenderer is missing");else p=new G("SqueezebackPlayerSidePanelRenderer is missing");else p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.n(p.renderingContent,dQv)?(d={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"},C=H0(p,C,V),p=C instanceof G?C:Object.assign({},d,{renderingContent:p.renderingContent,y$:new Map},C,{eb:J4(N,H)(d),clientMetadata:new a3([new NG(Xm(X))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})): p=new G("CounterfactualRenderer is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?p=new G("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.n(p.renderingContent,Id)?(X={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"},C=H0(p,C,V),p=C instanceof G?C:d?Object.assign({},X,{renderingContent:p.renderingContent,y$:new Map},C,{eb:J4(N, H)(X),clientMetadata:new a3([new ST(d)]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}):new G("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):p=new G("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.n(p.renderingContent,iSQ)?(X={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,Br:"core"},C=H0(p,C,V),p=C instanceof G?C: Object.assign({},X,{renderingContent:p.renderingContent,y$:new Map([])},C,{eb:J4(N,H)(X),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new a3([])})):p=new G("AdsEngagementPanelSectionListViewModel is missing"):p=new G("LayoutType ["+p.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return p}; FIj=function(p,C,V,N,H,X,d,a,E,l,t,c){if((c==null?void 0:c.cS)===void 0||(c==null?void 0:c.qS)===void 0)return new G("Cached ad break range from cue point is missing");var T=H0(V,H,N.qw);if(T instanceof G)return T;T={layoutExitMuteTriggers:[],layoutExitNormalTriggers:T.layoutExitNormalTriggers,layoutExitSkipTriggers:[],f1:[],layoutExitUserInputSubmittedTriggers:[]};if(g.n(V.renderingContent,un))return p=URv(p,C,V,T,H,X,a,E,N.qw,d,c.cS,c.qS),p instanceof G?p:p.p7===void 0?new G("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:p.layout,uW:[p.p7]};var M=g.n(V.renderingContent,Kj);if(M){if(!ln(V.adLayoutMetadata))return new G("Invalid ad layout metadata");if(!Dd(M))return new G("Invalid sequential layout");M=M.sequentialLayouts.map(function(J){return J.playerBytesAdLayoutRenderer}); p=ffa(p,C,V,T,M,H,N,X,d,E,a,l,c.cS,c.qS,t);return p instanceof G?p:{layout:p.yq,uW:p.uW}}return new G("Not able to convert a sequential layout")}; ffa=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J){var S=OUe(H,T,M);if(S instanceof G)return S;var D=[],Z=[];S=g.F(S);for(var f=S.next();!f.done;f=S.next()){var q=f.value;f=p;var A=H[q.Ri],z=q,Q=C;q=X;var P=d,VL=a,au=E,W=l,e=t,B=d6(A);if(B instanceof G)f=B;else{var v={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Br:"adapter"};z=ydV(Q,A,z,q);z instanceof G?f=z:(f=Object.assign({},v,i_,{y$:B,renderingContent:A.renderingContent,clientMetadata:new a3(z),eb:J4(VL,f)(v),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData}), f=(A=hL(e,f,q,P.qw,VL,au,W,void 0,!0))?A instanceof G?A:{layout:f,p7:A}:new G("Expecting associatedInPlayerSlot"))}if(f instanceof G)return f;D.push(f.layout);Z.push(f.p7)}H={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,Br:"core"};C=[new nF(Number(V.driftRecoveryMs)),new ow(T),new k_(M),new NG(Xm(C)),new jU(c),new Y_({})];J&&C.push(new XJ({}));return{yq:Object.assign({},H,N,{HK:D,y$:new Map,clientMetadata:new a3(C),eb:J4(a,p)(H)}),uW:Z}}; URv=function(p,C,V,N,H,X,d,a,E,l,t,c){if(!OT(V))return new G("Invalid PlayerBytesAdLayoutRenderer");var T=d6(V);if(T instanceof G)return T;var M={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,Br:"core"},J=g.n(V.renderingContent,un);if(!J)return new G("Invalid rendering content for DAI media layout");J=G$(J,!1);t={hj:J,Ri:0,JK:t,mT:Math.min(t+J.videoLengthSeconds*1E3,c),Ex:new kP(0,[J.videoLengthSeconds])};var S;c=(S=Number(V.driftRecoveryMs))!=null?S:void 0;C=ydV(C, V,t,H,c);if(C instanceof G)return C;p=Object.assign({},M,N,{y$:T,renderingContent:V.renderingContent,clientMetadata:new a3(C),eb:J4(X,p)(M),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData});return(H=hL(d,p,H,E,X,l,a,void 0,!0))?H instanceof G?H:{layout:p,p7:H}:new G("Expecting associatedInPlayerSlot")}; S0S=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S){var D=H0(V,X,H.qw);if(D instanceof G)return D;if(g.n(V.renderingContent,un)){E=q0V([V],H,E);if(E instanceof G)return E;if(E.length!==1)return new G("Only expected one media layout.");p=Ifa(p,C,V,D,E[0],void 0,"core",N,X,d,a,l,T,M,J,H.qw,c,void 0,S);return p instanceof G?p:{layout:p.layout,uW:p.p7?[p.p7]:[]}}var Z=g.n(V.renderingContent,Kj);if(Z){if(!ln(V.adLayoutMetadata))return new G("Invalid ad layout metadata");if(!Dd(Z))return new G("Invalid sequential layout"); Z=Z.sequentialLayouts.map(function(f){return f.playerBytesAdLayoutRenderer}); p=bUa(p,C,V.adLayoutMetadata,D,Z,N,X,H,E,d,a,l,t,c,J,T,M,S);return p instanceof G?p:{layout:p.yq,uW:p.uW}}return new G("Not able to convert a sequential layout")}; bUa=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z){var f=new i6({current:null}),q=q0V(H,a,E);if(q instanceof G)return q;E=[];for(var A=[],z=void 0,Q=0;Q<H.length;Q++){var P=H[Q];if(g.n(P.renderingContent,un)){z=$L(T)&&LV(T)?q[Q+1]:void 0;z=Ifa(p,C,P,i_,q[Q],z,"adapter",X,d,l,t,c,S,D,J,a.qw,M,f,Z);if(z instanceof G)return z;E.push(z.layout);z.p7&&A.push(z.p7);z=q[Q]}else if(g.n(P.renderingContent,Zd)){var VL=p,au=t;if(OT(P)){var W=g.n(P.renderingContent,Zd);if(W&&W.playerVars!==void 0){var e={layoutId:P.adLayoutMetadata.layoutId, layoutType:P.adLayoutMetadata.layoutType,Br:"adapter"};W=i1(W.playerVars);W.autoplay="1";P=Object.assign({},e,i_,{renderingContent:P.renderingContent,clientMetadata:new a3([new zc({}),new NG({kind:"AD_PLACEMENT_KIND_START"}),new Ur({current:null}),new Iw(W)]),y$:new Map,eb:J4(au,VL)(e),adLayoutLoggingData:P.adLayoutMetadata.adLayoutLoggingData})}else P=new G("Invalid ad intro renderer")}else P=new G("Invalid PlayerBytesAdLayoutRenderer");if(P instanceof G)return P;E.push(P)}else if(g.n(P.renderingContent, cB))if(D){P=Ada(p,P,t,Xm(C),z);if(P instanceof G)return P;E.push(P);P=hL(S,P,d,a.qw,t,M,J,f,!1);if(P instanceof G)return P;if(P)A.push(P);else return new G("Not able to retrieve InPlayer slot for endcap")}else{a:{VL=P.adLayoutMetadata.layoutId;au=g.F(X);for(e=au.next();!e.done;e=au.next()){e=e.value;var B=W=void 0,v=((W=e.renderer)==null?void 0:(B=W.linearAdSequenceRenderer)==null?void 0:B.linearAds)||[];W=g.F(v);for(B=W.next();!B.done;B=W.next())if((B=g.n(B.value,cB))&&B.inPlayerSlotId!==void 0&& B.inPlayerLayoutId!==void 0&&B.associatedPlayerBytesLayoutId!==void 0&&B.associatedPlayerBytesLayoutId===VL){VL={UJ:B,adPlacementConfig:e.config.adPlacementConfig};break a}}VL=new G("Not able to find associated InPlayer slot for endcap")}if(VL instanceof G)return VL;P=Ada(p,P,t,VL.adPlacementConfig,z);if(P instanceof G)return P;E.push(P);P=o9L(P.layoutId,M,d,VL,f,t);if(P instanceof G)return P;A.push(P)}}C={layoutId:V.layoutId,layoutType:V.layoutType,Br:"core"};return{yq:Object.assign({},C,N,{HK:E, y$:new Map,clientMetadata:new a3([f]),eb:J4(t,p)(C)}),uW:A}}; Ifa=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f){if(!OT(V))return new G("Invalid PlayerBytesAdLayoutRenderer");var q=d6(V);if(q instanceof G)return q;d={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,Br:d};a:{var A=V.adLayoutMetadata.layoutId,z=g.n(V.renderingContent,un);if(z&&SB(z)){var Q=[];if(M)Q.push(new NG(Xm(C)));else{b:{a=g.F(a);for(C=a.next();!C.done;C=a.next()){C=C.value;var P=RxL(C.renderer)||[],VL=g.F(P);for(P=VL.next();!P.done;P=VL.next())if(P=P.value, P.associatedPlayerBytesLayoutId===A){P.associatedPlayerBytesLayoutId?(a=P.playerOverlay,VL=a!==void 0&&a.playerOverlayLayoutRenderer!==void 0&&a.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&a.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,a=a!==void 0&&a.instreamAdPlayerOverlayRenderer!==void 0&&a.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&a.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||VL):a=!1;C=a?{instreamVideoAdRenderer:P,adPlacementConfig:C.config.adPlacementConfig}: new G("Invalid InPlayer shim");break b}}C=new G("Not able to find associated InPlayer slot")}if(C instanceof G){X=C;break a}a=C.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;P=C.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var au;VL=(au=a==null?void 0:a.inPlayerSlotId)!=null?au:P==null?void 0:P.inPlayerSlotId;var W;au=(W=a==null?void 0:a.inPlayerLayoutId)!=null?W:P==null?void 0:P.inPlayerLayoutId;if(VL===void 0){X=new G("InPlayer shim slot id is undefined"); break a}if(au===void 0){X=new G("InPlayer shim layout id is undefined");break a}Q.push(new KF(au),new u6(VL),new x_(H.Ex.adPodIndex),new NG(C.adPlacementConfig));a&&Q.push(new aw(a));P&&Q.push(new Er(P))}Q.push(new HV(H.Ex),new ha(z.externalVideoId),new sr(E),new rg({impressionCommands:z.impressionCommands,abandonCommands:z.onAbandonCommands,completeCommands:z.completeCommands,progressCommands:z.adVideoProgressCommands}),new Iw(H.jP),new Ur({current:null}),new qG(H.b7o.uy),new pP(qo(z.pings)),new Xw(H.Ex.adPodIndex)); f&&Q.push(new ST(f));(H=kkS(A,T))&&Q.push(new ta(H));X&&Q.push(new b6(X.jP));z.adNextParams&&Q.push(new Qi(z.adNextParams));z.clickthroughEndpoint&&Q.push(new r_(z.clickthroughEndpoint));z.legacyInfoCardVastExtension&&Q.push(new WV(z.legacyInfoCardVastExtension));z.sodarExtensionData&&Q.push(new Aa(z.sodarExtensionData));Z&&z.adPodSkipTarget&&z.adPodSkipTarget>0&&(Q.push(Z),Q.push(new dg(z.adPodSkipTarget)));(X=l.get(z.externalVideoId))&&Q.push(new $_(X));X=Q}else X=new G("Invalid vod media renderer")}if(X instanceof G)return X;p=Object.assign({},d,N,{y$:q,renderingContent:V.renderingContent,clientMetadata:new a3(X),eb:J4(t,p)(d),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData});V=g.n(V.renderingContent,un);if(!V||!SB(V))return new G("Invalid meida renderer");c=g2(c,V.externalVideoId);c.instreamVideoAdRenderer=V;c.Ho="AD_PLACEMENT_KIND_START";return M?(E=hL(T,p,E,S,t,D,J,Z,!1),E instanceof G?E:kkS(p.layoutId,T)&&E?{layout:Object.assign({},p,{clientMetadata:new a3(X.concat(new cV(E)))})}:{layout:p,p7:E}): {layout:p}}; Ada=function(p,C,V,N,H){if(!OT(C))return new G("Invalid PlayerBytesAdLayoutRenderer");var X=g.n(C.renderingContent,cB);if(!X||X.durationMilliseconds===void 0)return new G("Invalid endcap renderer");var d={layoutId:C.adLayoutMetadata.layoutId,layoutType:C.adLayoutMetadata.layoutType,Br:"adapter"};N=[new gg(X.durationMilliseconds),new rg({impressionCommands:void 0,abandonCommands:X.abandonCommands?[{commandExecutorCommand:X.abandonCommands}]:void 0,completeCommands:X.completionCommands}),new NG(N), new DS("LAYOUT_TYPE_ENDCAP")];if(H){N.push(new Xw(H.Ex.adPodIndex-1));N.push(new x_(H.Ex.adPodIndex));var a;N.push(new dg((a=H.adPodSkipTarget)!=null?a:-1))}return Object.assign({},d,i_,{renderingContent:C.renderingContent,clientMetadata:new a3(N),y$:X.skipPings?new Map([["skip",X.skipPings]]):new Map,eb:J4(V,p)(d),adLayoutLoggingData:C.adLayoutMetadata.adLayoutLoggingData})}; hL=function(p,C,V,N,H,X,d,a,E){p=p.filter(function(t){return t.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&t.adSlotMetadata.triggeringSourceLayoutId===C.layoutId}); if(p.length!==0){if(p.length!==1)return new G("Invalid InPlayer slot association for the given PlayerBytes layout");p=p[0];d=v9H(p,X,V,N,d);if(d instanceof G)return d;var l;X={slotId:p.adSlotMetadata.slotId,slotType:p.adSlotMetadata.slotType,slotPhysicalPosition:(l=p.adSlotMetadata.slotPhysicalPosition)!=null?l:1,Br:"core",slotEntryTrigger:d.slotEntryTrigger,slotFulfillmentTriggers:d.slotFulfillmentTriggers,slotExpirationTriggers:d.slotExpirationTriggers};l=g.n(p.fulfillmentContent.fulfilledLayout, lay);if(!l||!Xhy(l))return new G("Invalid InPlayerAdLayoutRenderer");d={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,Br:"core"};V=H0(l,V,N);if(V instanceof G)return V;N=[];E&&N.push(new Y_({}));if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")N.push.apply(N,g.K(xRy(p.adSlotMetadata.triggerEvent,C)));else if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")N.push(new NG(Xm(p.adSlotMetadata.triggerEvent))),a&&N.push(a);else return new G("Not able to parse an SDF InPlayer layout"); H=Object.assign({},d,V,{renderingContent:l.renderingContent,y$:new Map,eb:J4(H,X)(d),clientMetadata:new a3(N),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},X,{fulfilledLayout:H,clientMetadata:new a3([])})}}; xRy=function(p,C){var V=[];V.push(new NG(Xm(p)));V.push(new ST(C.layoutId));(p=Ef(C.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&V.push(new Ur(p));(p=Ef(C.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&V.push(new i6(p));(p=Ef(C.clientMetadata,"metadata_type_remote_slots_data"))&&V.push(new $_(p));(p=Ef(C.clientMetadata,"metadata_type_ad_next_params"))&&V.push(new Qi(p));(p=Ef(C.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&V.push(new r_(p));(p= Ef(C.clientMetadata,"metadata_type_ad_pod_info"))&&V.push(new HV(p));(C=Ef(C.clientMetadata,"metadata_type_ad_video_id"))&&V.push(new ha(C));return V}; o9L=function(p,C,V,N,H,X){function d(l){return sA(C,l)} var a=N.UJ.inPlayerSlotId,E={layoutId:N.UJ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Br:"core"};V={slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:new nr(d,p),slotFulfillmentTriggers:[new V9(d,a)],slotExpirationTriggers:[new NB(d,a),new pj(d,V)]};p=Object.assign({},E,{layoutExitNormalTriggers:[new PS(d,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],y$:new Map,clientMetadata:new a3([new MG(N.UJ), new NG(N.adPlacementConfig),H]),eb:J4(X,V)(E),adLayoutLoggingData:N.UJ.adLayoutLoggingData});return Object.assign({},V,{clientMetadata:new a3([new eT(p)])})}; kkS=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next())if(V=V.value,V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var N=g.n(V.fulfillmentContent.fulfilledLayout,bn);if(N&&(N=g.n(N.renderingContent,qB))&&N.associatedPlayerBytesLayoutId===p)return V}}; v9H=function(p,C,V,N,H){var X=Y0a(w2(p.slotEntryTrigger,V,N),H,p,C);if(X instanceof G)return X;for(var d=[],a=g.F(p.slotFulfillmentTriggers),E=a.next();!E.done;E=a.next()){E=w2(E.value,V,N);if(E instanceof G)return E;d.push(E)}d=z_Y(d,H,p,C);C=[];p=g.F(p.slotExpirationTriggers);for(H=p.next();!H.done;H=p.next()){H=w2(H.value,V,N);if(H instanceof G)return H;C.push(H)}return{slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:C}}; Y0a=function(p,C,V,N){return C&&V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&p instanceof xP?new ol(function(H){return sA(N,H)},V.adSlotMetadata.slotId):p}; z_Y=function(p,C,V,N){return C&&V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?p.map(function(H){return H instanceof V9?new d2(function(X){return sA(N,X)},V.adSlotMetadata.slotId):H}):p}; H0=function(p,C,V){for(var N=[],H=g.F(p.layoutExitNormalTriggers||[]),X=H.next();!X.done;X=H.next()){X=w2(X.value,C,V);if(X instanceof G)return X;N.push(X)}H=[];X=g.F(p.layoutExitSkipTriggers||[]);for(var d=X.next();!d.done;d=X.next()){d=w2(d.value,C,V);if(d instanceof G)return d;H.push(d)}X=[];d=g.F(p.layoutExitMuteTriggers||[]);for(var a=d.next();!a.done;a=d.next()){a=w2(a.value,C,V);if(a instanceof G)return a;X.push(a)}d=[];p=g.F(p.layoutExitUserInputSubmittedTriggers||[]);for(a=p.next();!a.done;a= p.next()){a=w2(a.value,C,V);if(a instanceof G)return a;d.push(a)}return{layoutExitNormalTriggers:N,layoutExitSkipTriggers:H,layoutExitMuteTriggers:X,layoutExitUserInputSubmittedTriggers:d,f1:[]}}; d6=function(p){var C=g.n(p.renderingContent,un);if(C==null?0:C.pings)return Ij(C.pings);p=g.n(p.renderingContent,cB);return(p==null?0:p.skipPings)?new Map([["skip",p.skipPings]]):new Map}; ydV=function(p,C,V,N,H){C=g.n(C.renderingContent,un);if(!C)return new G("Invalid rendering content for DAI media layout");p=[new sr(N),new qG(V.hj.videoLengthSeconds),new Iw(V.hj.playerVars),new ow(V.JK),new k_(V.mT),new x_(V.Ri),new NG(Xm(p)),new ha(V.hj.adVideoId),new HV(V.Ex),C.sodarExtensionData&&new Aa(C.sodarExtensionData),new Ur({current:null}),new Y_({}),new pP(qo(C.pings))].filter(mR1);H!==void 0&&p.push(new nF(H));return p}; OUe=function(p,C,V){p=p.map(function(E){return G$(g.n(E.renderingContent,un),!1)}); var N=p.map(function(E){return E.videoLengthSeconds}),H=N.map(function(E,l){return new kP(l,N)}),X=C,d=V,a=[]; p.forEach(function(E,l){d=Math.min(X+E.videoLengthSeconds*1E3,V);$r(E.playerVars,H[l]);a.push({hj:E,JK:X,mT:d,Ri:l,Ex:H[l]});X=d}); return a}; q0V=function(p,C,V){for(var N=[],H=g.F(p),X=H.next();!X.done;X=H.next())if(X=g.n(X.value.renderingContent,un)){if(!SB(X))return new G("Invalid vod media renderer");N.push(R_X(X))}H=N.map(function(c){return c.uy}); X=[];for(var d=0,a=0;a<p.length;a++){var E=g.n(p[a].renderingContent,un);if(E){var l=new kP(d,H),t=Ca(N[d].playerVars,N[d].iC,C,V,l);X[a]={Ex:l,adPodSkipTarget:E.adPodSkipTarget,b7o:N[d],jP:t};d++}}return X}; R_X=function(p){var C=i1(p.playerVars),V=Number(C.length_seconds);isNaN(V)&&(V=0,S2("Expected valid length seconds in player vars but got NaN"));return{playerVars:C,iC:p.playerVars,uy:V}}; Xm=function(p){switch(p){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}}; ZU1=function(p){if(g.n(p.renderingContent,T$)){var C;return((C=g.n(p.renderingContent,T$))==null?void 0:C.impressionPings)||[]}if(g.n(p.renderingContent,tM)){var V;return((V=g.n(p.renderingContent,tM))==null?void 0:V.impressionPings)||[]}if(g.n(p.renderingContent,cP)){var N;return((N=g.n(p.renderingContent,cP))==null?void 0:N.impressionPings)||[]}return[]}; e_S=function(p,C,V,N,H,X,d,a,E){var l=V.pings;return l?[n9S(p,X,a,H,function(t){var c=t.slotId;t=E(t);var T=V.adLayoutLoggingData,M=V.progressCommands;c=jY(C.C.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",c);var J={layoutId:c,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Br:"core"},S=Ij(l),D=[new pj(C.T,X)],Z;var f=l==null?void 0:(Z=l.activeViewTracking)==null?void 0:Z.identifier;return{layoutId:c,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",y$:S,layoutExitNormalTriggers:D,layoutExitSkipTriggers:[], layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new NG(N),new pP(qo(l)),new CP(f),new qG(d/1E3),new rg({progressCommands:M}),new LF(d/1E3)]),eb:t(J),adLayoutLoggingData:T}})]:new G("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:V})}; wHu=function(p,C,V,N,H,X,d,a){p=PeX(p,V,X,d,N,function(E){var l=E.slotId;E=a(E);l=jY(C.C.get(),"LAYOUT_TYPE_FORECASTING",l);var t={layoutId:l,layoutType:"LAYOUT_TYPE_FORECASTING",Br:"core"},c=new Map,T=H.impressionUrls;T&&c.set("impression",T);return{layoutId:l,layoutType:"LAYOUT_TYPE_FORECASTING",y$:c,layoutExitNormalTriggers:[new GT(C.T,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new Rw(H),new NG(V)]),eb:E(t)}}); return p instanceof G?p:[p]}; LIu=function(p,C,V,N,H,X,d){return[$RQ(p,X,N,function(a){var E=a.slotId;a=d(a);E=jY(C.C.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",E);var l={layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Br:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",y$:new Map,layoutExitNormalTriggers:[new pj(C.T,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new aw(H),new NG(V)]),eb:a(l), adLayoutLoggingData:H.adLayoutLoggingData}})]}; WIX=function(p,C,V,N,H,X,d,a){p=g9Q(p,V,X,d,N,function(E,l){var t=E.slotId;E=a(E);var c=H.contentSupportedRenderer;c?c.textOverlayAdContentRenderer?(c=jY(C.C.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",t),l=aY(C,c,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",H,V,E,EA(C,l,t))):c.enhancedTextOverlayAdContentRenderer?(c=jY(C.C.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",t),l=aY(C,c,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",H,V,E,EA(C,l,t))):c.imageOverlayAdContentRenderer?(c=jY(C.C.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", t),l=EA(C,l,t),l.push(new ad(C.T,45E3,c)),l=aY(C,c,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",H,V,E,l)):l=new sf("InvideoOverlayAdRenderer without appropriate sub renderer"):l=new sf("InvideoOverlayAdRenderer without contentSupportedRenderer");return l}); return p instanceof G?p:[p]}; Bcj=function(p,C,V,N,H,X,d,a,E){var l=Number(N.durationMilliseconds);return isNaN(l)?new G("Expected valid duration for AdActionInterstitialRenderer."):function(t){return Q41(C,t.slotId,V,N,l,{impressionCommands:void 0,abandonCommands:N.abandonCommands?[{commandExecutorCommand:N.abandonCommands}]:void 0,completeCommands:N.completionCommands},N.skipPings?new Map([["skip",N.skipPings]]):new Map,d(t),function(c){return rd1(p,c,H,function(T,M){var J=T.slotId;T=d(T);J=jY(C.C.get(),"LAYOUT_TYPE_ENDCAP", J);return BP(C,J,M,V,T,"LAYOUT_TYPE_ENDCAP",[new MG(N),a],N.adLayoutLoggingData)})},E,X-1,N.adLayoutLoggingData,X)}}; Gks=function(p,C,V,N){if(!V.playerVars)return new G("No playerVars available in AdIntroRenderer.");var H=i1(V.playerVars);H.autoplay="1";return function(X){var d=X.slotId;X=N(X);d=jY(p.C.get(),"LAYOUT_TYPE_MEDIA",d);var a={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",Br:"adapter"};return{Sq:{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",y$:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"adapter",clientMetadata:new a3([new zc({}), new NG(C),new Ur({current:null}),new Iw(H)]),eb:X(a)},XV:[new eI(p.T,d,["error"])],F5:[],rH:[],sI:[]}}}; C8V=function(p,C,V,N,H,X,d,a,E,l){l=l===void 0?!1:l;var t=Q9(H);if(!mQy(H,l))return new G("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:H});if(t<=0)return new G("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:H});var c=ex9(p,C,H,X,V,N,d);return c instanceof G?c:function(T){return pJV(C,T.slotId,V,t,H,r2(H),d(T),c,a,E)}}; jEY=function(p,C,V,N,H,X,d,a){function E(c){return rd1(p,c,N,l)} function l(c,T){var M=c.slotId;c=d(c);M=jY(C.C.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",M);return BP(C,M,T,V,c,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new Ja(H),X],H.adLayoutLoggingData)} if(!Kce(H))return new G("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:H});var t=H.timeoutSeconds*1E3;return function(c){var T=c.slotId,M={impressionCommands:H.impressionCommands,completeCommands:H.timeoutCommands,skipCommands:H.dismissCommands};c=d(c);T=l_(C,T,V,t,M,new Map,c,E,void 0,tL(C,V,H.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));M=new KF(T.fZ);c=new Xw(a);return{Sq:{layoutId:T.layoutId,layoutType:T.layoutType,y$:T.y$,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:T.Br,clientMetadata:new a3([].concat(g.K(T.Cf),[M,c])),eb:T.eb,adLayoutLoggingData:T.adLayoutLoggingData},XV:[],F5:T.layoutExitMuteTriggers,rH:T.layoutExitUserInputSubmittedTriggers,sI:T.f1,p7:T.p7}}}; N_e=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S){p=SY(p,"SLOT_TYPE_PLAYER_BYTES");N=dRL(C,d,N,H,p,l,t);if(N instanceof G)return N;var D;d=(D=Ef(N.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:D.layoutId;if(!d)return new G("Invalid adNotify layout");C=Vsu(d,C,V,H,X,E,a,l,c,T,M,J,S);return C instanceof G?C:[N].concat(g.K(C))}; Vsu=function(p,C,V,N,H,X,d,a,E,l,t,c,T){V=HWY(C,V,N,X,d,a,E,l,t,c,T);XJQ(X)?(N=dgS(C,p),p=SY(C.C.get(),"SLOT_TYPE_IN_PLAYER"),X=jY(C.C.get(),"LAYOUT_TYPE_SURVEY",p),a=c0(C,N,a),C=[].concat(g.K(a.slotExpirationTriggers),[new YP(C.T,X)]),p=V({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:C,Br:a.Br},{slotId:p,layoutId:X}),H=p instanceof G?p:{Wn:Object.assign({}, a,{slotExpirationTriggers:C,clientMetadata:new a3([new eT(p.layout)]),adSlotLoggingData:H}),uW:p.uW}):H=afY(C,p,a,H,V);return H instanceof G?H:[].concat(g.K(H.uW),[H.Wn])}; hsS=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){C=HWY(p,C,V,H,X,d,E,l,t,c,T,M);XJQ(H)?(H=iWy(p,V,d,a),H instanceof G?p=H:(a=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER"),E=jY(p.C.get(),"LAYOUT_TYPE_SURVEY",a),d=[].concat(g.K(H.slotExpirationTriggers),[new YP(p.T,E)]),a=C({slotId:H.slotId,slotType:H.slotType,slotPhysicalPosition:H.slotPhysicalPosition,Br:H.Br,slotEntryTrigger:H.slotEntryTrigger,slotFulfillmentTriggers:H.slotFulfillmentTriggers,slotExpirationTriggers:d},{slotId:a,layoutId:E}),p=a instanceof G?a:{Wn:{slotId:H.slotId, slotType:H.slotType,slotPhysicalPosition:H.slotPhysicalPosition,slotEntryTrigger:Td(p,V,H.slotId,H.slotEntryTrigger),slotFulfillmentTriggers:M3(p,V,H.slotId,H.slotFulfillmentTriggers),slotExpirationTriggers:d,Br:H.Br,clientMetadata:new a3([new VV(JL(V)),new eT(a.layout),new HU({eX:p.eX(V)})]),adSlotLoggingData:N},uW:a.uW})):p=E9V(p,V,d,a,N,E.p4,C);return p instanceof G?p:p.uW.concat(p.Wn)}; XJQ=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(g.n(C.value,UT))return!0;return!1}; HWY=function(p,C,V,N,H,X,d,a,E,l,t,c){return function(T,M){if($L(t)&&LV(t))a:{var J=sEv(N,V,t);if(J instanceof G)M=J;else{for(var S=0,D=[],Z=[],f=[],q=[],A=[],z=[],Q=new fF({current:null}),P=new i6({current:null}),VL=!1,au=[],W=0,e=[],B=0;B<N.length;B++){var v=N[B],w=g.n(v,un);if(w){w=pa(w,V,t);if(w instanceof sf){M=new G(w);break a}var C0=new kP(W,J),FG=Ca(w.playerVars,w.iC,d,l,C0);W++;e[B]={renderer:v,data:w,Ex:C0,jP:FG}}}W=-1;for(J=0;J<N.length;J++)if(B=N[J],v=g.n(B,Zd)){B=Gks(C,V,v,a);if(B instanceof G){M=B;break a}B=B(T);D.push(B.Sq);Z=[].concat(g.K(B.XV),g.K(Z));f=[].concat(g.K(B.F5),g.K(f));B.p7&&(au=[B.p7].concat(g.K(au)))}else if(g.n(B,un))v=e[J],W=v.data,B=v.Ex,v=v.jP,w=e[J+1],C0=void 0,w&&(C0=w.jP),B=ak1(C,W.layoutId,W.yz,V,v,W.uy,X,B,a(T),P,E.get(W.yz.externalVideoId),C0,c),S++,D.push(B.Sq),Z=[].concat(g.K(B.XV),g.K(Z)),f=[].concat(g.K(B.F5),g.K(f)),VL||(z.push(P),VL=!0),W=(W=W.yz.adPodSkipTarget)&&W>0?W:-1;else if(v=g.n(B,cB)){B=Bcj(p,C,V,v,X,S,a,P,W);if(B instanceof G){M=B;break a}B= B(T);D.push(B.Sq);Z=[].concat(g.K(B.XV),g.K(Z));f=[].concat(g.K(B.F5),g.K(f));B.p7&&(au=[B.p7].concat(g.K(au)))}else if(v=g.n(B,UT)){if(M===void 0){M=new G("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:v});break a}B=C8V(p,C,V,X,v,Q,a,M,S,Cs(t,"supports_multi_step_on_desktop"));if(B instanceof G){M=B;break a}B=B(T);D.push(B.Sq);B.p7&&au.push(B.p7);Z=[].concat(g.K(B.XV),g.K(Z));f=[].concat(g.K(B.F5),g.K(f));q=[].concat(g.K(B.rH),g.K(q));A=[].concat(g.K(B.sI), g.K(A));z=[Q].concat(g.K(z))}else if(B=g.n(B,fj)){B=jEY(p,C,V,X,B,Q,a,S);if(B instanceof G){M=B;break a}B=B(T);D.push(B.Sq);B.p7&&au.push(B.p7);f=[].concat(g.K(B.F5),g.K(f))}else{M=new G("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}M={HK:D,layoutExitSkipTriggers:Z,layoutExitUserInputSubmittedTriggers:q,f1:A,layoutExitMuteTriggers:f,Cf:z,uW:au}}}else a:if(S=sEv(N,V,t),S instanceof G)M=S;else{D=0;Z=[];f=[];q=[];A=[];z=[];Q=[];P=new fF({current:null});VL=new i6({current:null}); au=!1;e=[];W=-1;J=g.F(N);for(B=J.next();!B.done;B=J.next())if(B=B.value,g.n(B,Zd)){B=Gks(C,V,g.n(B,Zd),a);if(B instanceof G){M=B;break a}B=B(T);Z.push(B.Sq);f=[].concat(g.K(B.XV),g.K(f));q=[].concat(g.K(B.F5),g.K(q));B.p7&&(e=[B.p7].concat(g.K(e)))}else if(g.n(B,un)){W=pa(g.n(B,un),V,t);if(W instanceof sf){M=new G(W);break a}B=new kP(D,S);B=ak1(C,W.layoutId,W.yz,V,Ca(W.playerVars,W.iC,d,l,B),W.uy,X,B,a(T),VL,E.get(W.yz.externalVideoId),void 0,c);D++;Z.push(B.Sq);f=[].concat(g.K(B.XV),g.K(f));q=[].concat(g.K(B.F5), g.K(q));au||(Q.push(VL),au=!0);W=(W=W.yz.adPodSkipTarget)&&W>0?W:-1}else if(g.n(B,cB)){B=Bcj(p,C,V,g.n(B,cB),X,D,a,VL,W);if(B instanceof G){M=B;break a}B=B(T);Z.push(B.Sq);f=[].concat(g.K(B.XV),g.K(f));q=[].concat(g.K(B.F5),g.K(q));B.p7&&(e=[B.p7].concat(g.K(e)))}else if(g.n(B,UT)){if(M===void 0){M=new G("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.n(B,UT)});break a}B=C8V(p,C,V,X,g.n(B,UT),P,a,M,D,Cs(t,"supports_multi_step_on_desktop")); if(B instanceof G){M=B;break a}B=B(T);Z.push(B.Sq);B.p7&&e.push(B.p7);f=[].concat(g.K(B.XV),g.K(f));q=[].concat(g.K(B.F5),g.K(q));A=[].concat(g.K(B.rH),g.K(A));z=[].concat(g.K(B.sI),g.K(z));Q=[P].concat(g.K(Q))}else if(g.n(B,fj)){B=jEY(p,C,V,X,g.n(B,fj),P,a,D);if(B instanceof G){M=B;break a}B=B(T);Z.push(B.Sq);B.p7&&e.push(B.p7);q=[].concat(g.K(B.F5),g.K(q))}else{M=new G("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}M={HK:Z,layoutExitSkipTriggers:f,layoutExitUserInputSubmittedTriggers:A, f1:z,layoutExitMuteTriggers:q,Cf:Q,uW:e}}M instanceof G?T=M:(z=T.slotId,S=M.HK,D=M.layoutExitSkipTriggers,Z=M.layoutExitMuteTriggers,f=M.layoutExitUserInputSubmittedTriggers,q=M.Cf,T=a(T),A=H?H.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z=H?H.layoutId:jY(C.C.get(),A,z),Q={layoutId:z,layoutType:A,Br:"core"},T={layout:{layoutId:z,layoutType:A,y$:new Map,layoutExitNormalTriggers:[new GT(C.T,z)],layoutExitSkipTriggers:D,layoutExitMuteTriggers:Z,layoutExitUserInputSubmittedTriggers:f,f1:[],Br:"core", clientMetadata:new a3([new Or(S)].concat(g.K(q))),eb:T(Q)},uW:M.uW});return T}}; sEv=function(p,C,V){var N=[];p=g.F(p);for(var H=p.next();!H.done;H=p.next())if(H=H.value,g.n(H,un)){H=pa(g.n(H,un),C,V);if(H instanceof sf)return new G(H);N.push(H.uy)}return N}; lkH=function(p,C,V,N,H,X,d,a){if(!mQy(V,a===void 0?!1:a))return new G("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:V});var E=Q9(V);if(E<=0)return new G("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:V});var l=new fF({current:null}),t=ex9(p,C,V,l,N,X,d);return EYj(p,N,X,E,H,function(c,T){var M=c.slotId,J=r2(V);c=d(c);var S,D=(S=tL(C,N,V.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?S: jY(C.C.get(),"LAYOUT_TYPE_MEDIA_BREAK",M);M={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Br:"core"};S=t(D,T);var Z=Ef(S.clientMetadata,"metadata_type_fulfilled_layout");Z||S2("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");J=[new NG(N),new gg(E),new rg(J),l];Z&&J.push(new DS(Z.layoutType));return{jo:{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",y$:new Map,layoutExitNormalTriggers:[new GT(C.T,D)],layoutExitSkipTriggers:[new jB(C.T, T.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new sT(C.T,T.layoutId)],f1:[],Br:"core",clientMetadata:new a3(J),eb:c(M)},qH:S}})}; tsX=function(p){if(!SnL(p))return!1;var C=g.n(p.adVideoStart,mH);return C?g.n(p.linearAd,un)&&vP(C)?!0:(S2("Invalid Sandwich with notify"),!1):!1}; cq9=function(p){if(p.linearAds==null)return!1;p=g.n(p.adStart,mH);return p?vP(p)?!0:(S2("Invalid LASR with notify"),!1):!1}; T_u=function(p){if(!FcV(p))return!1;p=g.n(p.adStart,mH);return p?vP(p)?!0:(S2("Invalid LASR with notify"),!1):!1}; v0=function(p,C,V,N,H,X,d,a,E,l){this.S=p;this.C=C;this.T=V;this.x_=N;this.Mt=H;this.V=X;this.mx=d;this.ZS=a;this.L9=E;this.loadPolicy=l===void 0?1:l}; UQs=function(p,C,V,N,H,X,d,a,E,l){var t=[];if(C.length===0&&N.length===0&&V.length===0)return t;C=C.filter(Fg);var c=V.filter(T3e),T=N.filter(Fg),M=new Map,J=JdV(C),S=V.some(function(v){var w;return(v==null?void 0:(w=v.adSlotMetadata)==null?void 0:w.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),D=V.some(function(v){var w; return(v==null?void 0:(w=v.adSlotMetadata)==null?void 0:w.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),Z=V.some(function(v){var w; return(v==null?void 0:(w=v.adSlotMetadata)==null?void 0:w.slotType)==="SLOT_TYPE_IN_PLAYER"}); V=V.some(function(v){var w,C0;return(v==null?void 0:(w=v.adSlotMetadata)==null?void 0:w.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(v==null?void 0:(C0=v.adSlotMetadata)==null?void 0:C0.slotType)==="SLOT_TYPE_ABOVE_FEED"}); if(S||D||Z||V)l=uAY(c,C,a,H,J,p.Mt.get(),p.loadPolicy,M,p.x_.get(),p.S.get(),Z,d,E,l),l instanceof G?S2(l,void 0,void 0,{contentCpn:H}):t.push.apply(t,g.K(l));l=g.F(C);for(V=l.next();!V.done;V=l.next())V=V.value,D=Msu(p,M,V,H,X,d,S,a,J,E,c),D instanceof G?S2(D,void 0,void 0,{renderer:V.renderer,config:V.config.adPlacementConfig,kind:V.config.adPlacementConfig.kind,contentCpn:H,daiEnabled:d}):t.push.apply(t,g.K(D));Jqv(p.x_.get())||(X=mge(p,T,H,a,J,M),t.push.apply(t,g.K(X)));if(p.V===null||d&&!a.lB){var f, q,A;p=a.p4&&C.length===1&&((f=C[0].config)==null?void 0:(q=f.adPlacementConfig)==null?void 0:q.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((A=C[0].renderer)==null?void 0:A.adBreakServiceRenderer);if(!t.length&&!p){var z,Q,P,VL;S2("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":C.length,contentCpn:H,"first APR kind":(z=C[0])==null?void 0:(Q=z.config)==null?void 0:(P=Q.adPlacementConfig)==null?void 0:P.kind,renderer:(VL=C[0])==null?void 0:VL.renderer})}return t}f= N.filter(Fg);t.push.apply(t,g.K(zxy(M,f,p.C.get(),p.V,H,S)));if(!t.length){var au,W,e,B;S2("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":C.length,contentCpn:H,daiEnabled:d.toString(),"first APR kind":(au=C[0])==null?void 0:(W=au.config)==null?void 0:(e=W.adPlacementConfig)==null?void 0:e.kind,renderer:(B=C[0])==null?void 0:B.renderer})}return t}; mge=function(p,C,V,N,H,X){function d(T){return J4(p.Mt.get(),T)} var a=[];C=g.F(C);for(var E=C.next();!E.done;E=C.next()){E=E.value;var l=E.renderer,t=l.sandwichedLinearAdRenderer,c=l.linearAdSequenceRenderer;t&&tsX(t)?(S2("Found AdNotify with SandwichedLinearAdRenderer"),c=g.n(t.adVideoStart,mH),t=g.n(t.linearAd,un),Lj(X,l,E.config.adPlacementConfig.kind),l=void 0,c=iUY((l=c)==null?void 0:l.layout.layoutId,p.C.get(),p.T.get(),E.config.adPlacementConfig,E.adSlotLoggingData,t,V,N,d,H,p.loadPolicy,p.x_.get(),p.Mt.get()),c instanceof G?S2(c):a.push.apply(a,g.K(c))): c&&(!c.adLayoutMetadata&&cq9(c)||c.adLayoutMetadata&&T_u(c))&&(S2("Found AdNotify with LinearAdSequenceRenderer"),Lj(X,l,E.config.adPlacementConfig.kind),l=void 0,t=Vsu((l=g.n(c.adStart,mH))==null?void 0:l.layout.layoutId,p.C.get(),p.T.get(),E.config.adPlacementConfig,E.adSlotLoggingData,c.linearAds,ln(c.adLayoutMetadata)?c.adLayoutMetadata:void 0,V,N,d,H,p.loadPolicy,p.x_.get()),t instanceof G?S2(t):a.push.apply(a,g.K(t)))}return a}; Msu=function(p,C,V,N,H,X,d,a,E,l,t){function c(Z){return J4(p.Mt.get(),Z)} var T=V.renderer,M=V.config.adPlacementConfig,J=M.kind,S=V.adSlotLoggingData,D=a.lB&&J==="AD_PLACEMENT_KIND_START";D=X&&!D;if(T.adsEngagementPanelRenderer!=null)return WP(C,V.elementId,J,T.adsEngagementPanelRenderer.isContentVideoEngagementPanel,T.adsEngagementPanelRenderer.adVideoId,T.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.adsEngagementPanelRenderer;Z=J4(p.Mt.get(),Z);return Fm(z,Q,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new g_(P),f,q,P.impressionPings,Z,T.adsEngagementPanelRenderer.adLayoutLoggingData,A)}),[]; if(T.adsEngagementPanelLayoutViewModel)return WP(C,V.elementId,J,T.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,T.adsEngagementPanelLayoutViewModel.adVideoId,T.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.adsEngagementPanelLayoutViewModel;Z=J4(p.Mt.get(),Z);return S8(z,Q,"LAYOUT_TYPE_PANEL",new WJ(P),f,q,Z,T.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,A)}),[]; if(T.actionCompanionAdRenderer!=null){if(T.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return A0L(p.C.get(),p.V,p.T.get(),T.actionCompanionAdRenderer,M,S,N,c);WP(C,V.elementId,J,T.actionCompanionAdRenderer.isContentVideoCompanion,T.actionCompanionAdRenderer.adVideoId,T.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.actionCompanionAdRenderer;Z=J4(p.Mt.get(),Z);return Fm(z,Q,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new $Y(P),f,q,P.impressionPings,Z,T.actionCompanionAdRenderer.adLayoutLoggingData,A)})}else if(T.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(T.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return oi9(p.C.get(),p.V,p.T.get(),T.topBannerImageTextIconButtonedLayoutViewModel,M,S,N,c); WP(C,V.elementId,J,T.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,T.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,T.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.topBannerImageTextIconButtonedLayoutViewModel;Z=J4(p.Mt.get(),Z);return S8(z,Q,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new LW(P),f,q,Z,T.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,A)})}else if(T.imageCompanionAdRenderer)WP(C, V.elementId,J,T.imageCompanionAdRenderer.isContentVideoCompanion,T.imageCompanionAdRenderer.adVideoId,T.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.imageCompanionAdRenderer; Z=J4(p.Mt.get(),Z);return Fm(z,Q,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Gf(P),f,q,P.impressionPings,Z,T.imageCompanionAdRenderer.adLayoutLoggingData,A)}); else if(T.bannerImageLayoutViewModel)WP(C,V.elementId,J,T.bannerImageLayoutViewModel.isContentVideoCompanion,T.bannerImageLayoutViewModel.adVideoId,T.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.bannerImageLayoutViewModel;Z=J4(p.Mt.get(),Z);return S8(z,Q,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new pF(P),f,q,Z,T.bannerImageLayoutViewModel.adLayoutLoggingData,A)}); else if(T.shoppingCompanionCarouselRenderer)WP(C,V.elementId,J,T.shoppingCompanionCarouselRenderer.isContentVideoCompanion,T.shoppingCompanionCarouselRenderer.adVideoId,T.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,M,S,function(Z,f,q,A){var z=p.T.get(),Q=Z.slotId,P=T.shoppingCompanionCarouselRenderer;Z=J4(p.Mt.get(),Z);return Fm(z,Q,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new CF(P),f,q,P.impressionPings,Z,T.shoppingCompanionCarouselRenderer.adLayoutLoggingData,A)}); else if(T.adBreakServiceRenderer){if(!IaH(V))return[];if(J==="AD_PLACEMENT_KIND_PAUSE")return qnQ(p.C.get(),M,S,V.renderer.adBreakServiceRenderer,N);if(J!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&J!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return y0e(p.C.get(),M,S,V.renderer.adBreakServiceRenderer,N,H,X);a.p4||S2("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:J,adPlacementConfig:M,daiEnabledForContentVideo:String(X),isServedFromLiveInfra:String(a.p4),clientPlaybackNonce:a.clientPlaybackNonce}); if(J==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!p.mx)return new G("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!p.L9)return new G("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");p.L9.Li({adPlacementRenderer:V,contentCpn:N,qw:H});H=p.mx.get().getCurrentTimeSec(1,!1);return vYL(p.C.get(),V.renderer.adBreakServiceRenderer,M,H,N,S,X)}if(!p.ZS)return new G("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); p.ZS.Li({adPlacementRenderer:V,contentCpn:N,qw:H})}else{if(T.clientForecastingAdRenderer)return wHu(p.C.get(),p.T.get(),M,S,T.clientForecastingAdRenderer,N,H,c);if(T.invideoOverlayAdRenderer)return WIX(p.C.get(),p.T.get(),M,S,T.invideoOverlayAdRenderer,N,H,c);if(T.instreamAdPlayerOverlayRenderer)return LIu(p.C.get(),p.T.get(),M,S,T.instreamAdPlayerOverlayRenderer,N,c);if((T.linearAdSequenceRenderer||T.instreamVideoAdRenderer)&&D)return j4v(p.C.get(),p.T.get(),V,N,c,l,!p.x_.get().N.K().G("html5_override_ad_video_length_killswitch")); if(T.linearAdSequenceRenderer&&!D){if(d)return[];Lj(C,T,J);if(T.linearAdSequenceRenderer.adLayoutMetadata){if(!FcV(T.linearAdSequenceRenderer))return new G("Received invalid LinearAdSequenceRenderer.")}else if(T.linearAdSequenceRenderer.linearAds==null)return new G("Received invalid LinearAdSequenceRenderer.");if(g.n(T.linearAdSequenceRenderer.adStart,mH)){S2("Found AdNotify in LinearAdSequenceRenderer");V=g.n(T.linearAdSequenceRenderer.adStart,mH);if(!HSu(V))return new G("Invalid AdMessageRenderer."); X=T.linearAdSequenceRenderer.linearAds;return N_e(p.S.get(),p.C.get(),p.T.get(),p.Mt.get(),M,S,V,ln(T.linearAdSequenceRenderer.adLayoutMetadata)?T.linearAdSequenceRenderer.adLayoutMetadata:void 0,X,N,H,a,c,E,p.loadPolicy,p.x_.get())}return hsS(p.C.get(),p.T.get(),M,S,T.linearAdSequenceRenderer.linearAds,ln(T.linearAdSequenceRenderer.adLayoutMetadata)?T.linearAdSequenceRenderer.adLayoutMetadata:void 0,N,H,a,c,E,p.loadPolicy,p.x_.get(),t)}if(!T.remoteSlotsRenderer||X){if(T.instreamVideoAdRenderer&& !D){if(d)return[];Lj(C,T,J);return lfH(p.C.get(),p.T.get(),M,S,T.instreamVideoAdRenderer,N,H,a,c,E,p.loadPolicy,p.x_.get(),p.Mt.get(),t)}if(T.instreamSurveyAdRenderer)return lkH(p.C.get(),p.T.get(),T.instreamSurveyAdRenderer,M,S,N,c,Cs(p.x_.get(),"supports_multi_step_on_desktop"));if(T.sandwichedLinearAdRenderer!=null)return SnL(T.sandwichedLinearAdRenderer)?g.n(T.sandwichedLinearAdRenderer.adVideoStart,mH)?(S2("Found AdNotify in SandwichedLinearAdRenderer"),V=g.n(T.sandwichedLinearAdRenderer.adVideoStart, mH),HSu(V)?(X=g.n(T.sandwichedLinearAdRenderer.linearAd,un))?h_9(V,X,M,p.S.get(),p.C.get(),p.T.get(),p.Mt.get(),S,N,H,a,c,E,p.loadPolicy,p.x_.get()):new G("Missing IVAR from Sandwich"):new G("Invalid AdMessageRenderer.")):hsS(p.C.get(),p.T.get(),M,S,[T.sandwichedLinearAdRenderer.adVideoStart,T.sandwichedLinearAdRenderer.linearAd],void 0,N,H,a,c,E,p.loadPolicy,p.x_.get()):new G("Received invalid SandwichedLinearAdRenderer.");if(T.videoAdTrackingRenderer!=null)return a=Cs(p.x_.get(),"enable_h5_shorts_ad_terminal_events")&& a.rR,e_S(p.C.get(),p.T.get(),T.videoAdTrackingRenderer,M,S,N,H,a,c)}}return[]}; Ka=function(p,C,V,N,H,X,d,a){g.Y.call(this);var E=this;this.C=p;this.V=C;this.BV=N;this.mx=H;this.x_=X;this.No=d;this.kG=a;this.T=null;V.get().addListener(this);this.addOnDisposeCallback(function(){V.fS()||V.get().removeListener(E)}); N.get().addListener(this);this.addOnDisposeCallback(function(){N.fS()||N.get().removeListener(E)})}; SFj=function(p,C,V){var N=p.mx.get().getCurrentTimeSec(1,!1);p.x_.get().N.K().Gk()&&tV(p.No.get(),"sdai","onopp.1;evt."+V.event+";start."+V.startSecs.toFixed(3)+";d."+V.uc.toFixed(3));FY(p.C.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var H=p.V.get(),X=C.adPlacementRenderer.renderer.adBreakServiceRenderer,d=C.contentCpn,a=C.adPlacementRenderer.adSlotLoggingData,E=DY(p.x_.get()),l=p.No;if(H.x_.get().N.K().experiments.OY("enable_smearing_expansion_dai")){var t=g.mi(H.x_.get().N.K().experiments, "max_prefetch_window_sec_for_livestream_optimization");var c=g.mi(H.x_.get().N.K().experiments,"min_prefetch_offset_sec_for_livestream_optimization");E={hW:FCs(V),z3:!1,cueProcessedMs:N*1E3};var T=V.startSecs+V.uc;if(N===0)E.YQ=new Od(0,T*1E3);else{c=V.startSecs-c;var M=c-N;E.YQ=M<=0?new Od(c*1E3,T*1E3):new Od(Math.floor(N+Math.random()*Math.min(M,t))*1E3,T*1E3)}t=E}else t={hW:FCs(V),z3:!1},T=V.startSecs+V.uc,V.startSecs<=N?E=new Od((V.startSecs-4)*1E3,T*1E3):(c=Math.max(0,V.startSecs-N-10),E=new Od(Math.floor(N+ Math.random()*(E?N===0?0:Math.min(c,5):c))*1E3,T*1E3)),t.YQ=E;H=PP(H,X,d,t,a,[new yy(V)]);l.get().N.Dw(t.YQ.start/1E3-N,V.startSecs-N);return[H]})}; u_=function(p){var C,V=(C=Ef(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:C.current;if(!V)return null;C=Ef(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var N=p.layoutId,H=Ef(p.clientMetadata,"metadata_type_content_cpn"),X=Ef(p.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),d=Ef(p.clientMetadata,"metadata_type_player_overlay_layout_renderer"),a=Ef(p.clientMetadata,"metadata_type_player_underlay_renderer"),E=Ef(p.clientMetadata, "metadata_type_ad_placement_config"),l=Ef(p.clientMetadata,"metadata_type_video_length_seconds");var t=dt(p.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Ef(p.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):dt(p.clientMetadata,"metadata_type_layout_enter_ms")&&dt(p.clientMetadata,"metadata_type_layout_exit_ms")?(Ef(p.clientMetadata,"metadata_type_layout_exit_ms")-Ef(p.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{DI:N,contentCpn:H,LF:V,Ih:C,instreamAdPlayerOverlayRenderer:X, playerOverlayLayoutRenderer:d,instreamAdPlayerUnderlayRenderer:a,adPlacementConfig:E,videoLengthSeconds:l,LG:t,inPlayerLayoutId:Ef(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Ef(p.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Dgu=function(p,C){return KCj(p,C)}; uqY=function(p,C){C=KCj(p,C);if(!C)return null;var V;C.LG=(V=Ef(p.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:V.adBreakRemainingLengthSeconds;return C}; KCj=function(p,C){var V,N=(V=Ef(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:V.current;if(!N)return null;V=$YL(p,C);return{lY:wQ1(p,C),adPlacementConfig:Ef(p.clientMetadata,"metadata_type_ad_placement_config"),OT:V,contentCpn:Ef(p.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Ef(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Ef(p.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Ef(p.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,LG:void 0,LF:N,DI:p.layoutId,videoLengthSeconds:Ef(p.clientMetadata,"metadata_type_video_length_seconds")}}; ZY=function(p,C,V,N,H,X,d,a,E){g.Y.call(this);this.S=p;this.Y=C;this.W=V;this.V=N;this.T=H;this.C=X;this.Mt=d;this.x_=a;this.pS=E;this.lc=!0}; ZWy=function(p,C,V){return TcQ(p.T.get(),C.contentCpn,C.DI,function(N){return MLV(p.C.get(),N.slotId,V,C.adPlacementConfig,C.DI,J4(p.Mt.get(),N))})}; UA=function(p,C,V,N,H,X,d,a){g.Y.call(this);this.C=p;this.T=C;this.V=V;this.x_=N;this.S=H;this.pS=X;this.mx=d;this.sZ=a}; fa=function(p){g.Y.call(this);this.T=p}; FY=function(p,C,V,N){p.T().WR(C,N);V=V();p=p.T();p.hQ.BX("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",C,N,V);C=g.F(V);for(V=C.next();!V.done;V=C.next())a:{N=p;V=V.value;N.hQ.Qr("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",V);N.hQ.Qr("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",V);try{var H=N.T;if(g.Sy(V.slotId))throw new G("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Uf(H,V))throw new G("Duplicate registration for slot.",{slotId:V.slotId,slotEntryTriggerType:V.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!H.E8.MG.has(V.slotType))throw new G("No fulfillment adapter factory registered for slot of type: "+V.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!H.E8.LT.has(V.slotType))throw new G("No SlotAdapterFactory registered for slot of type: "+V.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");wt(H,"TRIGGER_CATEGORY_SLOT_ENTRY",V.slotEntryTrigger?[V.slotEntryTrigger]:[]);wt(H,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", V.slotFulfillmentTriggers);wt(H,"TRIGGER_CATEGORY_SLOT_EXPIRATION",V.slotExpirationTriggers);var X=N.T,d=V.slotType+"_"+V.slotPhysicalPosition,a=zm(X,d);if(Uf(X,V))throw new G("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");a.set(V.slotId,new zIs(V));X.T.set(d,a)}catch(VL){VL instanceof G&&VL.jO?(N.hQ.Yb("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",VL.jO,V),S2(VL,V,void 0,void 0,VL.Wb)):(N.hQ.Yb("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", V),S2(VL,V));break a}Uf(N.T,V).Y=!0;try{var E=N.T,l=Uf(E,V),t=V.slotEntryTrigger,c=E.E8.D_.get(t.triggerType);c&&(c.HB("TRIGGER_CATEGORY_SLOT_ENTRY",t,V,null),l.sY.set(t.triggerId,c));for(var T=g.F(V.slotFulfillmentTriggers),M=T.next();!M.done;M=T.next()){var J=M.value,S=E.E8.D_.get(J.triggerType);S&&(S.HB("TRIGGER_CATEGORY_SLOT_FULFILLMENT",J,V,null),l.a$.set(J.triggerId,S))}for(var D=g.F(V.slotExpirationTriggers),Z=D.next();!Z.done;Z=D.next()){var f=Z.value,q=E.E8.D_.get(f.triggerType);q&&(q.HB("TRIGGER_CATEGORY_SLOT_EXPIRATION", f,V,null),l.Z.set(f.triggerId,q))}var A=E.E8.MG.get(V.slotType).get().build(E.V,V);l.D=A;var z=E.E8.LT.get(V.slotType).get().build(E.W,V);z.init();l.C=z}catch(VL){VL instanceof G&&VL.jO?(N.hQ.Yb("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",VL.jO,V),S2(VL,V,void 0,void 0,VL.Wb)):(N.hQ.Yb("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",V),S2(VL,V));Dc(N,V,!0);break a}N.hQ.Qr("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",V);N.T.GI(V);for(var Q=g.F(N.C),P=Q.next();!P.done;P= Q.next())P.value.GI(V);yV(N,V)}}; OA=function(p,C,V,N,H){g.Y.call(this);var X=this;this.C=p;this.V=C;this.iJ=V;this.context=H;this.T=new Map;N.get().addListener(this);this.addOnDisposeCallback(function(){N.fS()||N.get().removeListener(X)})}; uXV=function(p,C){var V=0x8000000000000;var N=0;for(var H=g.F(C.slotFulfillmentTriggers),X=H.next();!X.done;X=H.next())X=X.value,X instanceof WS?(V=Math.min(V,X.T.start),N=Math.max(N,X.T.end)):S2("Found unexpected fulfillment trigger for throttled slot.",C,null,{fulfillmentTrigger:X});N=new Od(V,N);V="throttledadcuerange:"+C.slotId;p.T.set(V,C);p.iJ.get().addCueRange(V,N.start,N.end,!1,p);fR(p.context.x_.get())&&(C=N.start,N=N.end,H={},p.context.Rx.Vr("tcrr",(H.cid=V,H.sm=C,H.em=N,H)))}; yn=function(){g.Y.apply(this,arguments);this.lc=!0;this.jU=new Map;this.T=new Map}; q3=function(p,C){p=g.F(p.jU.values());for(var V=p.next();!V.done;V=p.next())if(V.value.layoutId===C)return!0;return!1}; IY=function(p,C){p=g.F(p.T.values());for(var V=p.next();!V.done;V=p.next()){V=g.F(V.value);for(var N=V.next();!N.done;N=V.next())if(N=N.value,N.layoutId===C)return N}S2("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Sy(C)),layoutId:C})}; UgH=function(){this.T=new Map}; fkS=function(p,C){this.callback=p;this.slot=C}; b_=function(){}; OWY=function(p,C,V){this.callback=p;this.slot=C;this.mx=V}; yqj=function(p,C,V){this.callback=p;this.slot=C;this.mx=V;this.C=!1;this.T=0}; qFs=function(p,C,V){this.callback=p;this.slot=C;this.mx=V}; AL=function(p){this.mx=p}; oY=function(p){g.Y.call(this);this.Un=p;this.ix=new Map}; kx=function(p,C){for(var V=[],N=g.F(p.ix.values()),H=N.next();!H.done;H=N.next()){H=H.value;var X=H.trigger;X instanceof sT&&X.triggeringLayoutId===C&&V.push(H)}V.length?k6(p.Un(),V):S2("Survey is submitted but no registered triggers can be activated.")}; xx=function(p,C,V){oY.call(this,p);var N=this;this.x_=V;C.get().addListener(this);this.addOnDisposeCallback(function(){C.fS()||C.get().removeListener(N)})}; Yx=function(p){g.Y.call(this);this.T=p;this.lc=!0;this.ix=new Map;this.W=new Set;this.V=new Set;this.S=new Set;this.Y=new Set;this.C=new Set}; zd=function(p){g.Y.call(this);this.T=p;this.ix=new Map}; RY=function(p,C){for(var V=[],N=g.F(p.ix.values()),H=N.next();!H.done;H=N.next())H=H.value,H.trigger.T===C.layoutId&&V.push(H);V.length&&k6(p.T(),V)}; na=function(p,C,V){g.Y.call(this);var N=this;this.T=p;this.context=V;this.ix=new Map;C.get().addListener(this);this.addOnDisposeCallback(function(){C.fS()||C.get().removeListener(N)})}; e8=function(p,C,V,N,H){g.Y.call(this);var X=this;this.C=p;this.iJ=C;this.mx=V;this.pS=N;this.context=H;this.lc=!0;this.ix=new Map;this.T=new Set;V.get().addListener(this);this.addOnDisposeCallback(function(){V.fS()||V.get().removeListener(X)})}; IkH=function(p,C,V,N,H,X,d,a,E,l){if(O3(p.pS.get(),1).clientPlaybackNonce!==E)throw new G("Cannot register CueRange-based trigger for different content CPN",{trigger:V});p.ix.set(V.triggerId,{MY:new ET(C,V,N,H),cueRangeId:X});p.iJ.get().addCueRange(X,d,a,l,p);fR(p.context.x_.get())&&(E={},p.context.Rx.Vr("crr",(E.ca=C,E.tt=V.triggerType,E.st=N.slotType,E.lt=H==null?void 0:H.layoutType,E.cid=X,E.sm=d,E.em=a,E)))}; bWv=function(p,C){p=g.F(p.ix.entries());for(var V=p.next();!V.done;V=p.next()){var N=g.F(V.value);V=N.next().value;N=N.next().value;if(C===N.cueRangeId)return V}return""}; P0=function(p,C){g.Y.call(this);var V=this;this.S=p;this.C=new Map;this.V=new Map;this.T=null;C.get().addListener(this);this.addOnDisposeCallback(function(){C.fS()||C.get().removeListener(V)}); var N;this.T=((N=C.get().KA)==null?void 0:N.slotId)||null}; Aqj=function(p,C){var V=[];p=g.F(p.values());for(var N=p.next();!N.done;N=p.next())N=N.value,N.slot.slotId===C&&V.push(N);return V}; w6=function(p){g.Y.call(this);this.T=p;this.lc=!0;this.ix=new Map}; NV=function(p,C,V){C=C.layoutId;for(var N=[],H=g.F(p.ix.values()),X=H.next();!X.done;X=H.next())if(X=X.value,X.trigger instanceof GT){var d;if(d=X.trigger.layoutId===C){d=V;var a=I9H.get(X.category);d=a?a===d:!1}d&&N.push(X)}N.length&&k6(p.T(),N)}; $x=function(p){g.Y.call(this);this.T=p;this.lc=!0;this.ix=new Map}; La=function(p,C,V,N,H){g.Y.call(this);var X=this;this.W=p;this.BV=C;this.mx=V;this.No=N;this.T=null;this.lc=!0;this.ix=new Map;this.V=new Map;C.get().addListener(this);this.addOnDisposeCallback(function(){C.fS()||C.get().removeListener(X)}); H.get().addListener(this);this.addOnDisposeCallback(function(){H.fS()||H.get().removeListener(X)})}; kfS=function(p){p.T&&(p.C&&(p.C.stop(),p.C.start()),oYX(p,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; oYX=function(p,C){for(var V=[],N=g.F(p.ix.values()),H=N.next();!H.done;H=N.next())H=H.value,H.trigger.triggerType===C&&V.push(H);V.length>0&&k6(p.W(),V)}; g6=function(p,C,V,N,H){H=H===void 0?!0:H;for(var X=[],d=g.F(p.ix.values()),a=d.next();!a.done;a=d.next()){a=a.value;var E=a.trigger;if(E.triggerType===C){if(E instanceof $P||E instanceof Lr||E instanceof Q4){if(H&&E.breakDurationMs!==V)continue;if(!H&&E.breakDurationMs===V)continue;if(N.has(E.triggerId))continue}X.push(a)}}X.length>0&&k6(p.W(),X)}; xgv=function(p){p=p.adPlacementRenderer.config.adPlacementConfig;if(!p.prefetchModeConfig||!p.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;p=Number(p.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(p)||p<=0?0:Math.floor(Math.random()*p)}; YFa=function(p){p=p.adPlacementRenderer.config.adPlacementConfig;if(p.prefetchModeConfig&&p.prefetchModeConfig.cacheFetchRefreshDurationMs&&(p=Number(p.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(p)||p<=0)))return p}; W0=function(p){p.T=null;p.ix.clear();p.V.clear();p.C&&p.C.stop();p.S&&p.S.stop()}; Qn=function(p){g.Y.call(this);this.V=p;this.lc=!0;this.ix=new Map;this.T=new Map;this.C=new Map}; zsj=function(p,C){var V=[];if(C=p.T.get(C.layoutId)){C=g.F(C);for(var N=C.next();!N.done;N=C.next())(N=p.C.get(N.value.triggerId))&&V.push(N)}return V}; r6=function(p){g.Y.call(this);this.T=p;this.ix=new Map}; Rs9=function(p,C){for(var V=[],N=g.F(p.ix.values()),H=N.next();!H.done;H=N.next())H=H.value,H.trigger instanceof ol&&H.trigger.slotId===C&&V.push(H);V.length>=1&&k6(p.T(),V)}; nYu=function(p,C){var V={slotId:SY(C,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Br:"surface",clientMetadata:new a3([])},N=Object,H=N.assign;C=jY(C,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",V.slotId);C={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",y$:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"surface", clientMetadata:new a3([]),eb:Z1L(!1,V.slotId,V.slotType,V.slotPhysicalPosition,V.Br,V.slotEntryTrigger,V.slotFulfillmentTriggers,V.slotExpirationTriggers,C,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return H.call(N,{},p,{kJ:!0,slot:V,layout:C})}; OSS=function(p,C,V,N){var H=p.kind;N=N?!1:!p.hideCueRangeMarker;switch(H){case "AD_PLACEMENT_KIND_START":return N={hW:new Od(-0x8000000000000,-0x8000000000000),z3:N},V!=null&&(N.YQ=new Od(-0x8000000000000,-0x8000000000000)),N;case "AD_PLACEMENT_KIND_END":return N={hW:new Od(0x7ffffffffffff,0x8000000000000),z3:N},V!=null&&(N.YQ=new Od(Math.max(0,C-V),0x8000000000000)),N;case "AD_PLACEMENT_KIND_MILLISECONDS":H=p.adTimeOffset;H.offsetStartMilliseconds||S2("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); H.offsetEndMilliseconds||S2("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");p=Number(H.offsetStartMilliseconds);H=Number(H.offsetEndMilliseconds);H===-1&&(H=C);if(Number.isNaN(p)||Number.isNaN(H)||p>H)return new G("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:p,offsetEndMs:H},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",H===C&&p-500<=H);N={hW:new Od(p,H),z3:N};if(V!=null){p=Math.max(0,p-V);if(p===H)return N;N.YQ=new Od(p,H)}return N; default:return new G("AdPlacementKind not supported in convertToRange.",{kind:H,adPlacementConfig:p})}}; FCs=function(p){var C=p.startSecs*1E3;return new Od(C,C+p.uc*1E3)}; esL=function(p){if(!p||!p.adPlacements&&!p.adSlots)return!1;for(var C=g.F(p.adPlacements||[]),V=C.next();!V.done;V=C.next())if(V=V.value)if(V=V.adPlacementRenderer,V!=null&&(V.config&&V.config.adPlacementConfig&&V.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;p=g.F(p.adSlots||[]);for(C=p.next();!C.done;C=p.next()){var N=V=void 0;if(((V=g.n(C.value,eB))==null?void 0:(N=V.adSlotMetadata)==null?void 0:N.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; B0=function(p){this.x_=p;this.C=new Map;this.T=new Map;this.V=new Map}; SY=function(p,C){if(Gd(p.x_.get())){var V=p.C.get(C)||0;V++;p.C.set(C,V);return C+"_"+V}return g.OI(16)}; jY=function(p,C,V){if(Gd(p.x_.get())){var N=p.T.get(C)||0;N++;p.T.set(C,N);return V+"_"+C+"_"+N}return g.OI(16)}; sA=function(p,C){if(Gd(p.x_.get())){var V=p.V.get(C)||0;V++;p.V.set(C,V);return C+"_"+V}return g.OI(16)}; P8S=function(p){var C=[new ST(p.DI),new ZS(p.LF),new NG(p.adPlacementConfig),new qG(p.videoLengthSeconds),new LF(p.LG)];p.instreamAdPlayerOverlayRenderer&&C.push(new aw(p.instreamAdPlayerOverlayRenderer));p.playerOverlayLayoutRenderer&&C.push(new Er(p.playerOverlayLayoutRenderer));p.Ih&&C.push(new i6(p.Ih));return C}; wJ9=function(p,C,V,N,H,X){p=V.inPlayerLayoutId?V.inPlayerLayoutId:jY(X,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);var d,a,E=V.instreamAdPlayerOverlayRenderer?(d=V.instreamAdPlayerOverlayRenderer)==null?void 0:d.adLayoutLoggingData:(a=V.playerOverlayLayoutRenderer)==null?void 0:a.adLayoutLoggingData;d={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Br:C};return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",y$:new Map,layoutExitNormalTriggers:[new PS(function(l){return sA(X, l)},V.DI)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:C,clientMetadata:N,eb:H(d),adLayoutLoggingData:E}}; pz=function(p,C){var V=this;this.C=p;this.x_=C;this.T=function(N){return sA(V.C.get(),N)}}; MLV=function(p,C,V,N,H,X){V=new a3([new l6(V),new NG(N)]);C=jY(p.C.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",C);N={layoutId:C,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Br:"core"};return{layoutId:C,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",y$:new Map,layoutExitNormalTriggers:[new PS(function(d){return sA(p.C.get(),d)},H)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:V,eb:X(N),adLayoutLoggingData:void 0}}; j8=function(p,C,V,N,H){var X=P8S(N);return wJ9(C,V,N,new a3(X),H,p.C.get())}; $gu=function(p,C,V,N,H){var X=P8S(N);X.push(new jT(N.lY));X.push(new Vy(N.OT));return wJ9(C,V,N,new a3(X),H,p.C.get())}; Fm=function(p,C,V,N,H,X,d,a,E,l){C=jY(p.C.get(),V,C);var t={layoutId:C,layoutType:V,Br:"core"},c=new Map;d&&c.set("impression",d);d=[new rF(p.T,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];l&&d.push(new eI(p.T,l,["normal"]));return{layoutId:C,layoutType:V,y$:c,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([N,new NG(X),new ST(H)]),eb:a(t),adLayoutLoggingData:E}}; S8=function(p,C,V,N,H,X,d,a,E){C=jY(p.C.get(),V,C);var l={layoutId:C,layoutType:V,Br:"core"},t=[new rF(p.T,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];E&&t.push(new eI(p.T,E,["normal"]));return{layoutId:C,layoutType:V,y$:new Map,layoutExitNormalTriggers:t,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([N,new NG(X),new ST(H)]),eb:d(l),adLayoutLoggingData:a}}; EA=function(p,C,V){var N=[];N.push(new BS(p.T,V));C&&N.push(C);return N}; aY=function(p,C,V,N,H,X,d){var a={layoutId:C,layoutType:V,Br:"core"};return{layoutId:C,layoutType:V,y$:new Map,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[new YP(p.T,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new BJ(N),new NG(H)]),eb:X(a),adLayoutLoggingData:N.adLayoutLoggingData}}; BP=function(p,C,V,N,H,X,d,a){var E={layoutId:C,layoutType:X,Br:"core"};return{layoutId:C,layoutType:X,y$:new Map,layoutExitNormalTriggers:[new PS(p.T,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new NG(N)].concat(g.K(d))),eb:H(E),adLayoutLoggingData:a}}; tL=function(p,C,V,N){if(p.x_.get().sV(C.kind==="AD_PLACEMENT_KIND_START"))if(V===void 0)S2("Expected SSAP layout ID in renderer",void 0,void 0,{caller:N});else return V}; Q41=function(p,C,V,N,H,X,d,a,E,l,t,c,T){p=l_(p,C,V,H,X,d,a,E,c,tL(p,V,N.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),T);C=p.Cf;V=new KF(p.fZ);N=p.layoutExitSkipTriggers;l>0&&(C.push(V),C.push(new dg(l)),N=[]);C.push(new Xw(t));return{Sq:{layoutId:p.layoutId,layoutType:p.layoutType,y$:p.y$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:p.Br,clientMetadata:new a3(C),eb:p.eb,adLayoutLoggingData:p.adLayoutLoggingData}, XV:N,F5:p.layoutExitMuteTriggers,rH:p.layoutExitUserInputSubmittedTriggers,sI:p.f1,p7:p.p7}}; pJV=function(p,C,V,N,H,X,d,a,E,l){C=l_(p,C,V,N,X,new Map,d,function(t){return a(t,E)},void 0,tL(p,V,H.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); p=new sT(p.T,C.fZ);V=new KF(C.fZ);l=new Xw(l);return{Sq:{layoutId:C.layoutId,layoutType:C.layoutType,y$:C.y$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:C.Br,clientMetadata:new a3([].concat(g.K(C.Cf),[V,l])),eb:C.eb,adLayoutLoggingData:C.adLayoutLoggingData},XV:C.layoutExitSkipTriggers,F5:C.layoutExitMuteTriggers,rH:[].concat(g.K(C.layoutExitUserInputSubmittedTriggers),[p]),sI:C.f1,p7:C.p7}}; l_=function(p,C,V,N,H,X,d,a,E,l,t){C=l!=null?l:jY(p.C.get(),"LAYOUT_TYPE_MEDIA_BREAK",C);l={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Br:"adapter"};a=a(C);var c=Ef(a.clientMetadata,"metadata_type_fulfilled_layout");c||S2("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var T=c?c.layoutId:"";V=[new NG(V),new gg(N),new rg(H)];c&&V.push(new DS(c.layoutType));t&&V.push(new x_(t));return{layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", y$:X,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new jB(p.T,T)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"adapter",Cf:V,eb:d(l),adLayoutLoggingData:E,p7:a,fZ:T}}; tL9=function(p,C,V,N,H,X,d,a,E,l,t){p=LCS(p,C,"core",V,N,H,X,d,a,E,l,void 0,t);return{layoutId:p.layoutId,layoutType:p.layoutType,y$:p.y$,layoutExitNormalTriggers:p.layoutExitNormalTriggers,layoutExitSkipTriggers:p.layoutExitSkipTriggers,layoutExitMuteTriggers:p.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:p.layoutExitUserInputSubmittedTriggers,f1:p.f1,Br:p.Br,clientMetadata:new a3(p.GZ),eb:p.eb,adLayoutLoggingData:p.adLayoutLoggingData}}; ak1=function(p,C,V,N,H,X,d,a,E,l,t,c,T){C=LCS(p,C,"adapter",V,N,H,X,d,a,E,t,c,T);N=C.layoutExitSkipTriggers;H=C.GZ;V.adPodSkipTarget&&V.adPodSkipTarget>0&&(H.push(l),H.push(new dg(V.adPodSkipTarget)),N=[]);H.push(new Xw(a.adPodIndex));V.isCritical&&(N=[new eI(p.T,C.layoutId,["error"])].concat(g.K(N)));return{Sq:{layoutId:C.layoutId,layoutType:C.layoutType,y$:C.y$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:C.Br,clientMetadata:new a3(H), eb:C.eb,adLayoutLoggingData:C.adLayoutLoggingData},XV:N,F5:C.layoutExitMuteTriggers,rH:C.layoutExitUserInputSubmittedTriggers,sI:C.f1}}; LCS=function(p,C,V,N,H,X,d,a,E,l,t,c,T){var M={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",Br:V};H=[new NG(H),new HV(E),new ha(N.externalVideoId),new sr(a),new rg({impressionCommands:N.impressionCommands,abandonCommands:N.onAbandonCommands,completeCommands:N.completeCommands,progressCommands:N.adVideoProgressCommands}),new Iw(X),new Ur({current:null}),new qG(d)];(X=N.playerOverlay.instreamAdPlayerOverlayRenderer)&&H.push(new aw(X));(d=N.playerOverlay.playerOverlayLayoutRenderer)&&H.push(new Er(d)); c&&H.push(new b6(c));(c=N.playerUnderlay)&&H.push(new l6(c));a=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");c=(c=X?X.elementId:d==null?void 0:d.layoutId)?c:jY(p.C.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);H.push(new KF(c));H.push(new u6(a));H.push(new x_(E.adPodIndex));N.adNextParams&&H.push(new Qi(N.adNextParams));N.shrunkenPlayerBytesConfig&&H.push(new Tc(N.shrunkenPlayerBytesConfig));N.clickthroughEndpoint&&H.push(new r_(N.clickthroughEndpoint));N.legacyInfoCardVastExtension&&H.push(new WV(N.legacyInfoCardVastExtension)); N.sodarExtensionData&&H.push(new Aa(N.sodarExtensionData));t&&H.push(new $_(t));H.push(new pP(qo(N.pings)));E=Ij(N.pings);if(T){a:{T=g.F(T);for(t=T.next();!t.done;t=T.next())if(t=t.value,t.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(X=g.n(t.fulfillmentContent.fulfilledLayout,bn))&&(X=g.n(X.renderingContent,qB))&&X.associatedPlayerBytesLayoutId===C){T=t;break a}T=void 0}T&&H.push(new ta(T))}return{layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",y$:E,layoutExitNormalTriggers:[new GT(p.T,C)],layoutExitSkipTriggers:N.skipOffsetMilliseconds? [new jB(p.T,c)]:[],layoutExitMuteTriggers:[new jB(p.T,c)],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:V,GZ:H,eb:l(M),adLayoutLoggingData:N.adLayoutLoggingData}}; NcX=function(p,C,V,N,H,X,d,a,E){N.every(function(t){return iH(t,[],["LAYOUT_TYPE_MEDIA"])})||S2("Unexpect subLayout type for DAI composite layout"); C=jY(p.C.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",C);var l={layoutId:C,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Br:"core"};return{layoutId:C,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",y$:new Map,layoutExitNormalTriggers:[new wF(p.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:[],Br:"core",clientMetadata:new a3([new ow(V),new k_(a),new Or(N),new NG(H),new nF(X),new Y_({}),new jU(E)]),eb:d(l)}}; G0L=function(p){return p!=null}; Cz=function(p,C,V){var N=this;this.C=p;this.V=C;this.x_=V;this.T=function(H){return sA(N.C.get(),H)}}; vYL=function(p,C,V,N,H,X,d){if(!V.prefetchModeConfig)return new G("AdPlacementConfig for Live Prefetch is missing prefetch_config");V=V.prefetchModeConfig;N*=1E3;var a=[];if(!V.breakLengthMs)return new G("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var E=g.F(V.breakLengthMs),l=E.next();!l.done;l=E.next())if(l=l.value,Number(l)>0){var t=N+Number(V.startTimeOffsetMs),c=t+Number(V.cacheFetchSmearingDurationMs);l={hW:new Od(c,c+Number(l)),z3:!1,YQ:new Od(Math.floor(t+Math.random()* Number(V.cacheFetchSmearingDurationMs)),c),cueProcessedMs:N?N:t};t=[];t.push(new XJ({}));c=[];c.push(new Cj(p.T));c.push(new LAv(p.T));d&&t.push(new Y_({}));a.push(PP(p,C,H,l,X,t,c))}return a}; PP=function(p,C,V,N,H,X,d){X=X===void 0?[]:X;d=d===void 0?[]:d;var a=SY(p.C.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),E=[];d=g.F(d);for(var l=d.next();!l.done;l=d.next())E.push(l.value);N.YQ&&N.YQ.start!==N.hW.start&&E.push(new WS(p.T,V,new Od(N.YQ.start,N.hW.start),!1));E.push(new WS(p.T,V,new Od(N.hW.start,N.hW.end),N.z3));N={getAdBreakUrl:C.getAdBreakUrl,cS:N.hW.start,qS:N.hW.end,cueProcessedMs:N.cueProcessedMs};C=new Xg(p.T,a);X=[new PV(N)].concat(g.K(X));return{slotId:a,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:E,slotExpirationTriggers:[new pj(p.T,V),new NB(p.T,a),new HP(p.T,a)],Br:"core",clientMetadata:new a3(X),adSlotLoggingData:H}}; WCj=function(p,C,V){var N=[];V=g.F(V);for(var H=V.next();!H.done;H=V.next())N.push(gYv(p,C,H.value));return N}; gYv=function(p,C,V){return V.triggeringSlotId!=null&&V.triggeringSlotId===p?V.clone(C):V}; niY=function(p,C,V,N,H){return QES(p,C,V,N,H)}; rd1=function(p,C,V,N){var H=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");return QES(p,H,C,V,N)}; QES=function(p,C,V,N,H){var X=new nr(p.T,V),d=[new V9(p.T,C)];p=[new NB(p.T,C),new pj(p.T,N)];return{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(H({slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p},V))]),adSlotLoggingData:void 0}}; EYj=function(p,C,V,N,H,X){var d=SY(p.C.get(),"SLOT_TYPE_PLAYER_BYTES"),a=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER"),E=jY(p.C.get(),"LAYOUT_TYPE_SURVEY",a);N=j3(p,C,V,N);var l=[new V9(p.T,d)];V=[new NB(p.T,d),new pj(p.T,V),new YP(p.T,E)];if(N instanceof G)return N;a=X({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:N,slotFulfillmentTriggers:l,slotExpirationTriggers:V},{slotId:a,layoutId:E});X=a.jo;a=a.qH;return[{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Td(p,C,d,N),slotFulfillmentTriggers:M3(p,C,d,l),slotExpirationTriggers:V,Br:"core",clientMetadata:new a3([new eT(X),new VV(JL(C)),new HU({eX:p.eX(C)})]),adSlotLoggingData:H},a]}; JL=function(p){return p.kind==="AD_PLACEMENT_KIND_START"}; cd9=function(p,C,V,N,H){H=H?H:SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");V=new nr(p.T,V);var X=[new V9(p.T,H)];p=[new pj(p.T,C),new NB(p.T,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(N({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p}))])}}; TcQ=function(p,C,V,N){var H=SY(p.C.get(),"SLOT_TYPE_PLAYER_UNDERLAY");V=new nr(p.T,V);var X=[new V9(p.T,H)];p=[new pj(p.T,C),new NB(p.T,H)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(N({slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:p}))])}}; dRL=function(p,C,V,N,H,X,d){var a=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER"),E=jY(p.C.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",a);N=rqv(p,N,X,d,E);if(N instanceof G)return N;d=[new V9(p.T,a)];H=[new pj(p.T,X),new V9(p.T,H),new hM(p.T,H)];V=J4(V,{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:N,slotFulfillmentTriggers:d,slotExpirationTriggers:H});p=p.V.get();X={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Br:"core"};C={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", y$:new Map,layoutExitNormalTriggers:[new C7X(p.T,E,C.durationMs)],layoutExitSkipTriggers:[new ViV(p.T,E,C.durationMs)],f1:[new jDH(p.T,E)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Br:"core",clientMetadata:new a3([new Qy(C)]),eb:V(X)};return{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:N,slotFulfillmentTriggers:d,slotExpirationTriggers:H,clientMetadata:new a3([new eT(C)])}}; g9Q=function(p,C,V,N,H,X){C=j3(p,C,V,N);if(C instanceof G)return C;var d=C instanceof WS?new BkS(p.T,V,C.T):null;N=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");var a=[new V9(p.T,N)];p=[new pj(p.T,V),new NB(p.T,N)];X=X({slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:C,slotFulfillmentTriggers:a,slotExpirationTriggers:p},d);return X instanceof sf?new G(X):{slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:a,slotExpirationTriggers:p, Br:"core",clientMetadata:new a3([new eT(X)]),adSlotLoggingData:H}}; $RQ=function(p,C,V,N){var H=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER"),X=new xP(p.T,C),d=[new d2(p.T,H)];p=[new pj(p.T,C),new NB(p.T,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(N({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p}))]),adSlotLoggingData:V}}; giY=function(p,C,V,N){var H=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");V=new nr(p.T,V);var X=[new V9(p.T,H)],d=[new NB(p.T,H),new pj(p.T,C)];X={slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:X,slotExpirationTriggers:d};return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:[new V9(p.T,H)],slotExpirationTriggers:[new pj(p.T,C),new NB(p.T,H)],Br:"core",clientMetadata:new a3([new eT(N(X))])}}; wha=function(p,C,V,N,H){var X=SY(p.C.get(),"SLOT_TYPE_IN_PLAYER");V=new Rl(p.T,N,V);N=[new V9(p.T,X)];p=[new pj(p.T,C)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:N,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(H({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:V,slotFulfillmentTriggers:N,slotExpirationTriggers:p}))])}}; YnX=function(p,C,V,N,H,X){var d=SY(p.C.get(),C);return VC(p,d,C,new nr(p.T,N),[new pj(p.T,V),new NB(p.T,d),new eI(p.T,N,["error"])],H,X)}; xQS=function(p,C,V,N,H,X,d){var a=SY(p.C.get(),C);return VC(p,a,C,new eI(p.T,H,["normal"]),[new pj(p.T,V),new NB(p.T,a),new eI(p.T,N,["error"])],X,d)}; bSy=function(p,C,V,N,H){var X=SY(p.C.get(),C);return VC(p,X,C,new xP(p.T,V),[new pj(p.T,V),new NB(p.T,X)],N,H)}; n9S=function(p,C,V,N,H){V=V?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var X=SY(p.C.get(),V);C=new xP(p.T,C);var d=[new V9(p.T,X)];p=[new NB(p.T,X)];return{slotId:X,slotType:V,slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(H({slotId:X,slotType:V,slotPhysicalPosition:1,Br:"core",slotEntryTrigger:C,slotFulfillmentTriggers:d,slotExpirationTriggers:p}))]),adSlotLoggingData:N}}; pH1=function(p,C,V,N){var H=SY(p.C.get(),"SLOT_TYPE_PLAYER_BYTES"),X=new gF(p.T),d=[new d2(p.T,H)];p=[new pj(p.T,C)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(N({slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:X,slotFulfillmentTriggers:d,slotExpirationTriggers:p})),new Y_({})]),adSlotLoggingData:V}}; dgS=function(p,C){return Jqv(p.x_.get())?new eI(p.T,C,["normal","error","skipped"]):new eI(p.T,C,["normal"])}; afY=function(p,C,V,N,H){C=dgS(p,C);p=c0(p,C,V);H=H({slotId:p.slotId,slotType:p.slotType,slotPhysicalPosition:p.slotPhysicalPosition,slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:p.slotExpirationTriggers,Br:p.Br});return H instanceof G?H:{Wn:Object.assign({},p,{clientMetadata:new a3([new eT(H.layout)]),adSlotLoggingData:N}),uW:H.uW}}; E9V=function(p,C,V,N,H,X,d){V=iWy(p,C,V,N);if(V instanceof G)return V;d=d({slotId:V.slotId,slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers,slotExpirationTriggers:V.slotExpirationTriggers,Br:V.Br});if(d instanceof G)return d;N=[new VV(JL(C)),new eT(d.layout),new HU({eX:p.eX(C)})];X&&N.push(new BV({}));return{Wn:{slotId:V.slotId,slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,slotEntryTrigger:Td(p, C,V.slotId,V.slotEntryTrigger),slotFulfillmentTriggers:M3(p,C,V.slotId,V.slotFulfillmentTriggers),slotExpirationTriggers:V.slotExpirationTriggers,Br:V.Br,clientMetadata:new a3(N),adSlotLoggingData:H},uW:d.uW}}; Td=function(p,C,V,N){return p.x_.get().sV(JL(C))?new ol(p.T,V):N}; M3=function(p,C,V,N){return p.x_.get().sV(JL(C))?[new d2(p.T,V)]:N}; c0=function(p,C,V){var N=SY(p.C.get(),"SLOT_TYPE_PLAYER_BYTES"),H=[new V9(p.T,N)];p=[new NB(p.T,N),new pj(p.T,V)];return{slotId:N,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:H,slotExpirationTriggers:p,Br:"core"}}; iWy=function(p,C,V,N){C=j3(p,C,V,N);return C instanceof G?C:c0(p,C,V)}; PeX=function(p,C,V,N,H,X){var d=SY(p.C.get(),"SLOT_TYPE_FORECASTING");C=j3(p,C,V,N);if(C instanceof G)return C;N=[new V9(p.T,d)];p=[new NB(p.T,d),new pj(p.T,V)];return{slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:C,slotFulfillmentTriggers:N,slotExpirationTriggers:p,Br:"core",clientMetadata:new a3([new eT(X({slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Br:"core",slotEntryTrigger:C,slotFulfillmentTriggers:N,slotExpirationTriggers:p}))]),adSlotLoggingData:H}}; B_u=function(p,C,V,N,H){var X=!C.hideCueRangeMarker;switch(C.kind){case "AD_PLACEMENT_KIND_START":return new xP(p.T,V);case "AD_PLACEMENT_KIND_MILLISECONDS":return p=OSS(C,N),p instanceof G?p:H(p.hW,X);case "AD_PLACEMENT_KIND_END":return new zT(p.T,V,X);default:return new G("Cannot construct entry trigger",{kind:C.kind})}}; rqv=function(p,C,V,N,H){return B_u(p,C,V,N,function(X,d){return new r7e(p.T,V,X,d,H)})}; j3=function(p,C,V,N){return B_u(p,C,V,N,function(H,X){return new WS(p.T,V,H,X)})}; VC=function(p,C,V,N,H,X,d){p=[new d2(p.T,C)];return{slotId:C,slotType:V,slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:H,Br:"core",clientMetadata:new a3([new eT(d({slotId:C,slotType:V,slotPhysicalPosition:1,Br:"core",slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:H}))]),adSlotLoggingData:X}}; NO=function(p,C){g.Y.call(this);this.x_=p;this.T=C;this.eventCount=0}; HY=function(p,C,V,N){NO.call(this,p,C);this.x_=p;this.pS=V;this.context=N}; XF=function(){this.T=new Map}; h5=function(p,C){var V=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=p;this.result=C.result;this.error=C.error;C.promise&&C.promise.then(function(N){dr(V,N)},function(N){it(V,N)})}; Ei=function(p){if(si(p)){if(p instanceof h5)return p;if(aH(p))return new h5("wait",{promise:p})}return new h5("done",{result:p})}; lt=function(p){return new h5("fail",{error:p})}; t5=function(p){try{return Ei(p())}catch(C){return lt(C)}}; Tv=function(p,C){var V=new h5("wait",{});p.onSuccess.push(function(N){try{var H=C(N);dr(V,H)}catch(X){it(V,X)}}); p.onFailure.push(function(N){it(V,N)}); cY(p);return V}; MO=function(p,C){var V=new h5("wait",{});p.onSuccess.push(function(N){dr(V,N)}); p.onFailure.push(function(N){try{var H=C(N);dr(V,H)}catch(X){it(V,X)}}); cY(p);return V}; dr=function(p,C){if(si(C)){if(aH(C)){C.then(function(V){dr(p,V)},function(V){it(p,V)}); return}if(C instanceof h5){Tv(C,function(V){dr(p,V)}); MO(C,function(V){it(p,V)}); return}}p.currentState="done";p.result=C;cY(p)}; it=function(p,C){p.currentState="fail";p.error=C;cY(p)}; cY=function(p){if(p.currentState==="done"){var C=p.onSuccess;p.onSuccess=[];p.onFailure=[];C=g.F(C);for(var V=C.next();!V.done;V=C.next())V=V.value,V(p.result)}else if(p.currentState==="fail")for(C=p.onFailure,p.onSuccess=[],p.onFailure=[],C=g.F(C),V=C.next();!V.done;V=C.next())V=V.value,V(p.error)}; pVX=function(p){return function(){return Gfa(p.apply(this,g.US.apply(0,arguments)))}}; Gfa=function(p){return t5(function(){return J5(p,p.next())})}; J5=function(p,C){return C.done?Ei(C.value):MO(Tv(C.value.Gb,function(V){return J5(p,p.next(V))}),function(V){return J5(p,p.throw(V))})}; vY=function(p){var C=p.hours||0;var V=p.minutes||0,N=p.seconds||0;C=N+V*60+C*3600+(p.days||0)*86400+(p.weeks||0)*604800+(p.months||0)*2629800+(p.years||0)*31557600;C<=0?C={hours:0,minutes:0,seconds:0}:(p=C,C=Math.floor(p/3600),p%=3600,V=Math.floor(p/60),N=Math.floor(p%60),C={hours:C,minutes:V,seconds:N});var H=C.hours===void 0?0:C.hours;V=C.minutes===void 0?0:C.minutes;p=C.seconds===void 0?0:C.seconds;N=H>0;C=[];if(N){H=(new Intl.NumberFormat("en-u-nu-latn")).format(H);var X=["fr"],d="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); H="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(mZ)?H.replace(",","\u00a0"):X.includes(mZ)?H.replace(",","\u202f"):d.includes(mZ)?H.replace(",","."):H;C.push(H)}N=N===void 0?!1:N;V=(["af","be","lt"].includes(mZ)||N)&&V<10?C6a().format(V):(new Intl.NumberFormat("en-u-nu-latn")).format(V);C.push(V);V=C6a().format(p);C.push(V);V=":";"da fi id si sr sr-Latn".split(" ").includes(mZ)&&(V=".");return C.join(V)}; C6a=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; jwL=function(p,C){var V,N;p=((V=p.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(N=V.videoAuthorizationToken)==null?void 0:N.credentialTransferTokens)||[];for(V=0;V<p.length;++V)if(p[V].scope===C)return p[V].token||void 0}; VTu=function(p){if(p&&p.simpleText)return p.simpleText;var C="";if(p&&p.runs)for(var V=0;V<p.runs.length;V++)p.runs[V].text&&(C+=p.runs[V].text);return C}; FF=function(p){return p?function(){try{return p.apply(this,arguments)}catch(C){g.nm(C)}}:p}; S3=function(){this.V=new Set;this.C=new Set;this.S=new Map;this.client=void 0;this.csn=null}; Kz=function(){S3.instance||(S3.instance=new S3);return S3.instance}; DF=function(){}; ut=function(){this.D=[];this.J=[];this.T=[];this.b_=[];this.W=[];this.Z=[];this.V=new Map;this.Y=new Map;this.C=new Set;this.sY=new Map}; ZF=function(){ut.instance||(ut.instance=new ut);return ut.instance}; Ui=function(p,C,V,N){N=N===void 0?{}:N;g.NU(function(){NgS.includes(C)||(g.eG(new g.Bw("createClientScreen() called with a non-page VE",C)),C=83769);N.isHistoryNavigation||(p.b_=[],p.T.push({rootVe:C,key:N.key||""}));p.D=[];p.J=[];N.gt?HFv(p,C,V,N):XVj(p,C,V,N)})()}; dGY=function(p,C,V){V=V===void 0?0:V;g.NU(function(){C.then(function(N){p.C.has(V)&&p.S&&p.S();var H=g.bz(V),X=g.IW(V);if(H&&X){var d;(N==null?0:(d=N.response)==null?0:d.trackingParams)&&g.Cq(p.client,H,X,g.ym(N.response.trackingParams));var a;(N==null?0:(a=N.playerResponse)==null?0:a.trackingParams)&&g.Cq(p.client,H,X,g.ym(N.playerResponse.trackingParams))}})})()}; Oi=function(p){var C=ZF();g.NU(function(){var V=g.ym(p);fz(C,V);return V})()}; fz=function(p,C,V,N){N=N===void 0?0:N;g.NU(function(){if(p.C.has(N))return p.D.push([C,V]),!0;var H=g.bz(N),X=V||g.IW(N);if(H&&X){if(g.Zr("combine_ve_grafts")){var d=p.V.get(X.toString());d?d.push(C):(p.Y.set(X.toString(),X),p.V.set(X.toString(),[C]));p.a$||(p.a$=g.Vl(0,function(){yC(p,H)},1200))}else g.Cq(p.client,H,X,C); return!0}return!1})()}; iFa=function(p,C,V,N){N=N===void 0?0:N;var H=g.bz(N);C=C||g.IW(N);H&&C&&(p=p.client,N=Qm({cttAuthInfo:AG(H)||void 0},H),V={csn:H,ve:C.getAsJson(),clientData:V},H==="UNDEFINED_CSN"?Ny("visualElementStateChanged",N,V):p?fm("visualElementStateChanged",V,p,N):g.t1("visualElementStateChanged",V,N))}; HFv=function(p,C,V,N){N=N===void 0?{}:N;p.C.add(N.layer||0);p.S=function(){XVj(p,C,V,N);var d=g.IW(N.layer);if(d){for(var a=g.F(p.D),E=a.next();!E.done;E=a.next())E=E.value,fz(p,E[0],E[1]||d,N.layer);d=g.F(p.J);for(a=d.next();!a.done;a=d.next())a=a.value,iFa(p,a[0],a[1])}}; V||g.bz(N.layer)||p.S();if(N.gt)for(var H=g.F(N.gt),X=H.next();!X.done;X=H.next())dGY(p,X.value,N.layer);else g.nm(Error("Delayed screen needs a data promise."))}; XVj=function(p,C,V,N){N=N===void 0?{}:N;var H=void 0;N.layer||(N.layer=0);H=N.parentLayer!==void 0?N.parentLayer:N.layer;var X=g.bz(H);H=g.IW(H);var d=V||H,a;d&&(N.parentCsn!==void 0?a={clientScreenNonce:N.parentCsn,visualElement:d}:X&&X!=="UNDEFINED_CSN"&&(a={clientScreenNonce:X,visualElement:d}));var E,l=g.pO("EVENT_ID");X==="UNDEFINED_CSN"&&l&&(E={servletData:{serializedServletEventId:l}});g.Zr("combine_ve_grafts")&&X&&yC(p,X);g.Zr("no_client_ve_attach_unless_shown")&&d&&X&&VD(d,X);try{var t=h8X(p.client, C,a,N.U0,N.cttAuthInfo,E,N.implicitGestureType,N.loggingExpectations)}catch(M){j_a(M,{uK:C,rootVe:H,A6n:V,Xp$:X,Cq$:a,U0:N.U0});g.nm(M);return}kQS(t,C,N.layer,N.cttAuthInfo);X&&X!=="UNDEFINED_CSN"&&H&&!bOu(X)&&a3S(p.client,X,H,!0);p.T[p.T.length-1]&&!p.T[p.T.length-1].csn&&(p.T[p.T.length-1].csn=t||"");g.HH({clientScreenNonce:t});DF.instance||(DF.instance=new DF);g.NU(Kz().T).bind(Kz())();var c=g.IW(N.layer);X&&X!=="UNDEFINED_CSN"&&c&&(g.Zr("web_mark_root_visible")||g.Zr("music_web_mark_root_visible"))&& g.hO(t,c);p.C.delete(N.layer||0);p.S=void 0;var T;(T=p.sY.get(N.layer))==null||T.forEach(function(M,J){M?fz(p,J,M,N.layer):c&&fz(p,J,c,N.layer)}); hK1(p)}; hK1=function(p){for(var C=0;C<p.W.length;C++){var V=p.W[C];try{V()}catch(N){g.nm(N)}}for(C=p.W.length=0;C<p.Z.length;C++){V=p.Z[C];try{V()}catch(N){g.nm(N)}}}; yC=function(p,C){if(C===void 0)for(var V=qk1(),N=0;N<V.length;N++)V[N]!==void 0&&yC(p,V[N]);else p.V.forEach(function(H,X){(X=p.Y.get(X))&&g.pq(p.client,C,X,H)}),p.V.clear(),p.Y.clear(),p.a$=void 0}; qO=function(){}; sws=function(){qO.instance||(qO.instance=new qO);return qO.instance}; aSX=function(p,C,V){var N=new XMLHttpRequest;if(V==null?0:V.q$)N.onreadystatechange=function(X){V.q$(N,X)}; var H;N.open((H=C.method)!=null?H:"GET",p,!0);N.responseType="text";N.withCredentials=!0;if(C.headers)for(p=g.F(Object.entries(C.headers)),C=p.next();!C.done;C=p.next())H=g.F(C.value),C=H.next().value,H=H.next().value,N.setRequestHeader(C,H);return N}; IH=function(){}; E_a=function(){var p=navigator;return new Promise(function(C,V){var N;(N=p.webkitTemporaryStorage)!=null&&N.queryUsageAndQuota?p.webkitTemporaryStorage.queryUsageAndQuota(function(H,X){C({usage:H,quota:X})},function(H){V(H)}):V(Error("webkitTemporaryStorage is not supported."))})}; E2=function(p,C){var V=this;this.handleError=p;this.T=C;this.C=!1;self.document===void 0||self.addEventListener("beforeunload",function(){V.C=!0}); this.V=Math.random()<=.2}; tTS=function(p,C){IH.getInstance().estimate().then(function(V){V=Object.assign({},C,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:lSQ(V==null?void 0:V.usage),deviceStorageQuotaMbytes:lSQ(V==null?void 0:V.quota)});p.T("idbQuotaExceeded",V)})}; lSQ=function(p){return typeof p==="undefined"?"-1":String(Math.ceil(p/1048576))}; TgQ=function(){g.$l();return g.LK(0,192)?g.LK(0,190):!(g.Zr("web_watch_cinematics_disabled_by_default")||g.Zr("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&caY())}; JaQ=function(p,C){MT9(p.program,C.ebV)&&(hd("bg_i",void 0,"player_att"),g.bt.initialize(p,function(){hd("bg_l",void 0,"player_att");A5=(0,g.Ip)()},C.cspNonce))}; mGv=function(p){p=p===void 0?{}:p;return g.bt.invoke(p)}; MT9=function(p,C){if(p){var V;g.bt.isLoading()?V=!1:V=!A5||(0,g.Ip)()-A5>C;p=V}else p=!1;return p}; v_j=function(p){p=p.split("");oH.rk(p,59);oH.z6(p,1);oH.rk(p,62);oH.rk(p,24);oH.z6(p,2);oH.CZ(p,15);oH.rk(p,70);return p.join("")}; g.k1=function(p,C){return p.Vn+"timedtext_video?ref=player&v="+C.videoId}; g.Fte=function(p){var C=this;this.videoData=p;p={};this.T=(p.c1a=function(){var V=[];if(g.bt.isInitialized()){var N="";C.videoData&&C.videoData.Mr&&(N=C.videoData.Mr+("&r1b="+C.videoData.clientPlaybackNonce));var H={};N=(H.atr_challenge=N,H);hd("bg_v",void 0,"player_att");(N=mGv(N))?(hd("bg_s",void 0,"player_att"),V.push("r1a="+N)):(hd("bg_e",void 0,"player_att"),V.push("r1c=2"))}else hd("bg_e",void 0,"player_att"),window.trayride||window.botguard?V.push("r1c=1"):V.push("r1c=4");V.push("r1d="+g.bt.getState()); return V.join("&")},p.c6a=function(V){return"r6a="+(Number(V.c)^U0())},p.c6b=function(V){return"r6b="+(Number(V.c)^Number(g.pO("CATSTAT",0)))},p); this.videoData&&this.videoData.Mr?this.o8=i1(this.videoData.Mr):this.o8={}}; g.Sry=function(p){if(p.videoData&&p.videoData.Mr){for(var C=[p.videoData.Mr],V=g.F(Object.keys(p.T)),N=V.next();!N.done;N=V.next())N=N.value,p.o8[N]&&p.T[N]&&(N=p.T[N](p.o8))&&C.push(N);return C.join("&")}return null}; g.x1=function(p,C){JaQ(p,{ebV:g.mi(C.experiments,"bg_vm_reinit_threshold"),cspNonce:C.cspNonce})}; Kt9=function(){var p=XMLHttpRequest.prototype.fetch;return!!p&&p.length===3}; Y1=function(p){p=p===void 0?2592E3:p;if(p>0&&!(CuS()>(0,g.Ip)()-p*1E3))return 0;p=g.zW("yt-player-quality");if(typeof p==="string"){if(p=g.PB[p],p>0)return p}else if(p instanceof Object)return p.quality;return 0}; zv=function(){var p=g.zW("yt-player-proxima-pref");return p==null?null:p}; DGy=function(){var p=g.zW("yt-player-quality");if(p instanceof Object&&p.quality&&p.previousQuality){if(p.quality>p.previousQuality)return 1;if(p.quality<p.previousQuality)return-1}return 0}; uwX=function(){var p={values:{},uq:{}};try{var C=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);p.values=C.values;p.halfLives=C.halfLives}catch(V){}return p}; RH=function(){return g.zW("yt-player-performance-cap")||{}}; nz=function(){var p;return(p=g.zW("yt-player-performance-cap-active-set"))!=null?p:[]}; ZFY=function(p){(p===void 0?0:p)?(p=nz().filter(function(C){return C.startsWith("1")}),g.Yl("yt-player-performance-cap-active-set",p,2592E3)):g.Yl("yt-player-performance-cap-active-set",[],2592E3)}; UGu=function(p){g.Yl("yt-player-watch-later-pending",p)}; fSj=function(){return!!g.zW("yt-player-headers-readable")}; OFu=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(p){return 0}}; g.e3=function(){var p=g.zW("yt-player-caption-language-preferences");return p?p:[]}; PY=function(){var p=g.zW("yt-player-user-settings"),C=new Map;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;C.set(V,N)}}return C}; qrS=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}));if(N.G("embeds_enable_autoplay_and_visibility_signals")){N.gh!=null&&(p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(N.gh)}));N=p.thirdParty;var H=Object,X=H.assign;p=p.thirdParty.embeddedPlayerContext;a:{try{var d=window.navigator; if(d.getAutoplayPolicy&&typeof d.getAutoplayPolicy==="function"){var a=document.getElementsByClassName(g.wr.m1a);var E=a.length>0&&a[0]?d.getAutoplayPolicy(a[0]):d.getAutoplayPolicy("mediaelement");if(yaL[E]){var l=yaL[E];break a}}}catch(t){}l="AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}N.embeddedPlayerContext=X.call(H,{},p,{autoplayBrowserPolicy:l,autoplayIntended:C.va||C.X4||C.mutedAutoplay,autoplayStatus:C.va||C.X4||C.mutedAutoplay?V!==1&&V!==2&&V!==0?"AUTOPLAY_STATUS_UNAVAILABLE":C.lG?"AUTOPLAY_STATUS_BLOCKED": "AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"})}}; AaH=function(p,C){EF(p,2,C.Tv,$1,3);EF(p,3,C.Aq,ISH,3);sF(p,4,C.onesieUstreamerConfig);sF(p,9,C.ac);EF(p,10,C.Fz,Lz,3);EF(p,15,C.reloadPlaybackParams,bFL,3)}; kce=function(p,C){EF(p,1,C.formatId,gr,3);i8(p,2,C.startTimeMs);i8(p,3,C.durationMs);i8(p,4,C.WI);i8(p,5,C.nx);EF(p,9,C.RFn,o_e,3);EF(p,11,C.xSa,WY,1);EF(p,12,C.SK,WY,1)}; xGL=function(p,C){aE(p,1,C.videoId);i8(p,2,C.lmt)}; o_e=function(p,C){if(C.O6)for(var V=0;V<C.O6.length;V++)EF(p,1,C.O6[V],xGL,3)}; gr=function(p,C){i8(p,1,C.itag);i8(p,2,C.lmt);aE(p,3,C.xtags)}; QC=function(p){return{itag:BH(p,1),lmt:BH(p,2),xtags:CW(p,3)}}; WY=function(p,C){i8(p,1,C.wI);i8(p,2,C.zT);i8(p,3,C.Sz)}; Yr1=function(p){return{wI:BH(p,1),zT:BH(p,2),Sz:BH(p,3)}}; zKV=function(p,C){i8(p,1,C.defaultPolicy);i8(p,2,C.smooth);i8(p,3,C.visibility);i8(p,4,C.Zx);i8(p,5,C.performance);i8(p,6,C.speed)}; $1=function(p,C){i8(p,13,C.timeSinceLastManualFormatSelectionMs);var V=C.lastManualDirection;V!==void 0&&(d_(p,112),d_(p,V<<1^V>>31));i8(p,16,C.mw);i8(p,17,C.detailedNetworkType);i8(p,18,C.rN);i8(p,19,C.IZ);i8(p,21,C.Dg$);i8(p,23,C.qp);i8(p,28,C.hZ);i8(p,29,C.qVr);i8(p,34,C.visibility);V=C.playbackRate;if(V!==void 0){var N=new ArrayBuffer(4);(new Float32Array(N))[0]=V;V=(new Uint32Array(N))[0];if(V!==void 0)for(d_(p,285),Xq(p,4),N=0;N<4;)p.view.setUint8(p.pos,V&255),V>>=8,p.pos+=1,N+=1}i8(p,36,C.oZ); EF(p,38,C.mediaCapabilities,RKS,3);i8(p,39,C.Fca);i8(p,40,C.GT);i8(p,44,C.playerState);hq(p,46,C.Jn);i8(p,48,C.Q2);i8(p,50,C.Hb);i8(p,51,C.ys);i8(p,54,C.iL);hq(p,56,C.ZK);i8(p,57,C.u4);hq(p,58,C.Oi);i8(p,59,C.Tp);i8(p,60,C.MQ);hq(p,61,C.isPrefetch);i8(p,62,C.cq);sF(p,63,C.sabrLicenseConstraint);i8(p,64,C.fD);i8(p,66,C.vU);i8(p,67,C.jae);i8(p,68,C.gF);aE(p,69,C.audioTrackId);hq(p,71,C.Pb);EF(p,72,C.LgY,zKV,1);i8(p,74,C.b7);i8(p,75,C.n8)}; RKS=function(p,C){if(C.videoFormatCapabilities)for(var V=0;V<C.videoFormatCapabilities.length;V++)EF(p,1,C.videoFormatCapabilities[V],n_L,1);if(C.audioFormatCapabilities)for(V=0;V<C.audioFormatCapabilities.length;V++)EF(p,2,C.audioFormatCapabilities[V],eKX,1);EF(p,4,C.perPlaybackAttributes,P6y,3);i8(p,5,C.hdrModeBitmask)}; n_L=function(p,C){i8(p,1,C.videoCodec);i8(p,3,C.maxHeight);i8(p,4,C.maxWidth);i8(p,11,C.maxFramerate);i8(p,12,C.maxBitrateBps);hq(p,15,C.is10BitSupported)}; eKX=function(p,C){i8(p,1,C.audioCodec);i8(p,2,C.numChannels);i8(p,3,C.maxBitrateBps);i8(p,6,C.spatialCapabilityBitmask)}; P6y=function(p,C){if(C.itagDenylist)for(var V=0;V<C.itagDenylist.length;V++)i8(p,1,C.itagDenylist[V])}; Lz=function(p,C){EF(p,1,C.clientInfo,wVv,3);sF(p,2,C.jN);sF(p,3,C.playbackCookie);sF(p,4,C.ac);if(C.p6)for(var V=0;V<C.p6.length;V++)EF(p,5,C.p6[V],$Gj,3);if(C.Ty)for(V=0;V<C.Ty.length;V++)i8(p,6,C.Ty[V]);aE(p,7,C.N6Y);EF(p,8,C.x3,LtS,3)}; g_e=function(p,C){i8(p,1,C.g$x);i8(p,2,C.XK_)}; Wt1=function(p,C){var V=C.code;V!==void 0&&(d_(p,8),d_(p,V<<1^V>>31));aE(p,2,C.message)}; Qws=function(p,C){i8(p,1,C.clientState);EF(p,2,C.FFo,g_e,1)}; LtS=function(p,C){sF(p,1,C.Z1n);EF(p,2,C.Mro,Wt1,3);EF(p,3,C.coldStartInfo,Qws,3)}; $Gj=function(p,C){i8(p,1,C.type);sF(p,2,C.value)}; wVv=function(p,C){aE(p,1,C.hl);aE(p,12,C.deviceMake);aE(p,13,C.deviceModel);i8(p,16,C.clientName);aE(p,17,C.clientVersion);aE(p,18,C.osName);aE(p,19,C.osVersion)}; raa=function(p,C){aE(p,1,C.name);aE(p,2,C.value)}; Bg1=function(p,C){aE(p,1,C.url);if(C.Zy)for(var V=0;V<C.Zy.length;V++)EF(p,2,C.Zy[V],raa,3);sF(p,3,C.postBody);hq(p,4,C.fda);hq(p,6,C.wB)}; ISH=function(p,C){sF(p,2,C.yY);sF(p,5,C.encryptedClientKey);sF(p,6,C.iv);sF(p,7,C.Pi);hq(p,10,C.OD);hq(p,13,C.M0);hq(p,14,C.pR);sF(p,16,C.s__);hq(p,17,C.xX)}; Gcu=function(p){return{QO:BH(p,1),Yc:BH(p,2),body:pW(p,4)}}; bFL=function(p,C){aE(p,1,C.token)}; pUL=function(p){return{token:CW(p,1)}}; CHe=function(p){return{e6:BH(p,1),H7n:BH(p,2)}}; HPV=function(p,C){EF(p,1,C.Tv,$1,3);if(C.vj)for(var V=0;V<C.vj.length;V++)EF(p,2,C.vj[V],gr,3);if(C.xG)for(V=0;V<C.xG.length;V++)EF(p,3,C.xG[V],kce,3);sF(p,5,C.videoPlaybackUstreamerConfig);if(C.Eh)for(V=0;V<C.Eh.length;V++)EF(p,6,C.Eh[V],j31,3);if(C.iK)for(V=0;V<C.iK.length;V++)EF(p,16,C.iK[V],gr,3);if(C.fl)for(V=0;V<C.fl.length;V++)EF(p,17,C.fl[V],gr,3);if(C.xs)for(V=0;V<C.xs.length;V++)EF(p,18,C.xs[V],gr,3);EF(p,19,C.Fz,Lz,3);EF(p,21,C.eS,VUy,3);i8(p,22,C.nG);i8(p,23,C.yK);if(C.lK)for(V=0;V<C.lK.length;V++)EF(p, 1E3,C.lK[V],NtX,3)}; j31=function(p,C){EF(p,1,C.formatId,gr,3);i8(p,2,C.R5);i8(p,3,C.sequenceNumber);EF(p,4,C.je,WY,1);i8(p,5,C.zK);i8(p,6,C.Cs)}; VUy=function(p,C){if(C.JM)for(var V=0;V<C.JM.length;V++)aE(p,1,C.JM[V]);sF(p,2,C.XX);aE(p,3,C.w2);i8(p,4,C.gs);i8(p,5,C.VB);aE(p,6,C.Sl)}; NtX=function(p,C){if(C.vj)for(var V=0;V<C.vj.length;V++)EF(p,1,C.vj[V],gr,3);if(C.xG)for(V=0;V<C.xG.length;V++)EF(p,2,C.xG[V],kce,3);aE(p,3,C.clipId)}; g.rr=function(p,C){EF(p,1,C.Tv,$1,3);sF(p,3,C.videoPlaybackUstreamerConfig);EF(p,5,C.Fz,Lz,3);EF(p,6,C.eS,VUy,3)}; iPy=function(p,C){aE(p,1,C.cpn);i8(p,2,C.sequenceNumber);aE(p,3,C.serializedWatchEndpointLoggingContext);if(C.decoderInfo)for(var V=0;V<C.decoderInfo.length;V++)EF(p,6,C.decoderInfo[V],XUy,3);aE(p,9,C.playerResponseCpn);i8(p,10,C.transitionStitchType);i8(p,12,C.timestampOffsetMsecs);i8(p,15,C.remoteControlMode);if(C.remoteConnectedDevices)for(V=0;V<C.remoteConnectedDevices.length;V++)EF(p,16,C.remoteConnectedDevices[V],dzQ,3);sF(p,17,C.serializedHouseBrandPlayerServiceLoggingContext)}; XUy=function(p,C){i8(p,1,C.elapsedTimeMs);aE(p,3,C.videoDecoderName)}; dzQ=function(p,C){i8(p,1,C.deviceInterface);aE(p,2,C.deviceVersion);hq(p,3,C.isSleeping)}; hqe=function(p){return{first:BH(p,1),xi:BH(p,2)}}; s3Y=function(p){return{bitrate:BH(p,6),width:BH(p,7),height:BH(p,8),fps:BH(p,25),averageBitrate:BH(p,31),audioSampleRate:BH(p,45),audioChannels:BH(p,46)}}; BY=function(p){return{itagDenylist:Vi(p,1)}}; lc1=function(p){return{Xax:BH(p,1),itag:CW(p,3),ZF:js(p,4,acu),lmt:BH(p,5),r8S:BH(p,7),xtags:CW(p,15),Xo:js(p,23,E6Q),pQ:js(p,34,BY)}}; acu=function(p){return{iv:pW(p,5),CD:Gk(p,7)}}; tUe=function(p){return{Fq:Vi(p,2),videoId:CW(p,3),NK:BH(p,4)}}; E6Q=function(p){return{videoId:CW(p,2)}}; c4a=function(p){return{LJ:BH(p,3),RV:BH(p,4),H5:BH(p,5),AiV:Gk(p,8),Nnk:BH(p,10),FM:BH(p,12),qj:BH(p,13),t0:BH(p,14),UQ:BH(p,15),xa:BH(p,16)}}; TtQ=function(p){return{targetAudioReadaheadMs:BH(p,1),targetVideoReadaheadMs:BH(p,2),backoffTimeMs:BH(p,4),playbackCookie:pW(p,7),videoId:CW(p,8)}}; MUs=function(p){return{minBandwidthBytesPerSec:BH(p,1),minReadaheadMs:BH(p,2)}}; J41=function(p){return{startMinReadaheadPolicy:Ng(p,1,MUs),resumeMinReadaheadPolicy:Ng(p,2,MUs)}}; mzV=function(p){return{label:CW(p,1),text:CW(p,2)}}; v6y=function(p){return{videoId:CW(p,1),formatId:js(p,2,QC),debugInfo:Ng(p,3,mzV)}}; FiL=function(p){return{Wh:Ng(p,1,v6y)}}; SfL=function(p){return{j4:BH(p,1),Pu:BH(p,2),minReadaheadMs:BH(p,3)}}; KiL=function(p){return{nB:BH(p,1),items:Ng(p,2,SfL),bL:BH(p,3)}}; Dzj=function(p){return{token:CW(p,1),videoId:CW(p,2)}}; uJ1=function(p){return{Rc:BH(p,1)}}; ZPL=function(p){return{Wg_:CW(p,1),action:BH(p,2),Dl:js(p,3,uJ1)}}; Gv=function(p){return{ZY:BH(p,1),yh:BH(p,2),seekSource:BH(p,3)}}; fcY=function(p){return{HD:Ng(p,1,Uz9),GMS:CW(p,2)}}; OPH=function(p){return{Nl:CW(p,1),yy:BH(p,2),Re:BH(p,3),e7:BH(p,4),HY:BH(p,5),T0:BH(p,6)}}; y4H=function(p){return{vu:BH(p,1)}}; Uz9=function(p){return{clipId:CW(p,1),zf:js(p,2,OPH),Tl:js(p,3,y4H)}}; qfy=function(p){return{type:BH(p,1),scope:BH(p,2),value:pW(p,3),sendByDefault:Gk(p,4)}}; IcQ=function(p){var C=[];p=g.F(p.split(","));for(var V=p.next();!V.done;V=p.next()){var N=V.value;N&&((V=N.startsWith("!"))&&(N=N.substring(1)),N=N.split("-"),N.length<3||C.push({xv:N[0],platform:N[1],deviceVersion:N[2],t$:V}))}return C}; o6S=function(p){return IcQ(p).map(function(C){return{deviceInterface:bPy[A49[C.xv]]||0,deviceVersion:C.deviceVersion||"",isSleeping:C.t$}})}; g.pw=function(p,C){this.id=p;this.K4=C;this.captionTracks=[];this.V=this.S=null;this.xtags="";this.W=!1;this.T=null;this.C="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";p=this.K4.id.split(".");p.length>1&&(this.W=p[1]==="2")}; Cw=function(p,C,V,N,H){this.C=p;this.T=C;this.V=V;this.reason=N;this.F$=H===void 0?0:H}; g.jo=function(p,C,V,N){return new Cw(g.PB[p]||0,g.PB[C]||0,V,N)}; Ni=function(p){if(VS&&p.F$)return!1;var C=g.PB.auto;return p.C===C&&p.T===C}; XP=function(p){return H1[p.T||p.C]||"auto"}; kmL=function(p,C){C=g.PB[C];return p.C<=C&&(!p.T||p.T>=C)}; dH=function(p){return"["+p.C+"-"+p.T+", override: "+(p.V+", reason: "+p.reason+"]")}; i5=function(p,C,V){this.videoInfos=p;this.T=C;this.audioTracks=[];if(this.T){p=new Set;V==null||V({ainfolen:this.T.length});C=g.F(this.T);for(var N=C.next();!N.done;N=C.next())if(N=N.value,!N.K4||p.has(N.K4.id)){var H=void 0,X=void 0,d=void 0;(d=V)==null||d({atkerr:!!N.K4,itag:N.itag,xtag:N.T,lang:((H=N.K4)==null?void 0:H.name)||"",langid:((X=N.K4)==null?void 0:X.id)||""})}else H=new g.pw(N.id,N.K4),p.add(N.K4.id),this.audioTracks.push(H);V==null||V({atklen:this.audioTracks.length})}}; he=function(){g.Y.apply(this,arguments);this.T=null}; RqH=function(p,C,V,N,H,X,d){if(p.T)return p.T;var a={},E=new Set,l={};if(sc(N)){for(var t in N.T)N.T.hasOwnProperty(t)&&(p=N.T[t],l[p.info.o$]=[p.info]);return l}t=xz1(C,N,a);X&&H({aftsrt:a2(t)});for(var c={},T=g.F(Object.keys(t)),M=T.next();!M.done;M=T.next()){M=M.value;for(var J=g.F(t[M]),S=J.next();!S.done;S=J.next()){S=S.value;var D=S.itag,Z=void 0,f=M+"_"+(((Z=S.video)==null?void 0:Z.fps)||0);c.hasOwnProperty(f)?c[f]===!0?l[M].push(S):a[D]=c[f]:(Z=Ec(C,S,V,N.isLive,E),Z!==!0?(d.add(M),a[D]=Z, Z==="disablevp9hfr"&&(c[f]="disablevp9hfr")):(l[M]=l[M]||[],l[M].push(S),c[f]=!0))}}X&&H({bfflt:a2(l)});for(var q in l)l.hasOwnProperty(q)&&(N=q,l[N]&&l[N][0].K9()&&(l[N]=l[N],l[N]=YfQ(C,l[N],a),l[N]=zqS(l[N],a)));X&&H(a);C=g.F(E.values());for(N=C.next();!N.done;N=C.next())(N=V.C.get(N.value))&&--N.pB;X&&H({aftflt:a2(l)});p.T=g.U_(l,function(A){return!!A.length}); return p.T}; eqj=function(p,C,V,N,H,X,d,a){a=a===void 0?!1:a;if(C.RN&&d&&d.length>1&&!(C.Tp>0||C.J)){for(var E=C.C||!!H,l=E&&C.Q$?X:void 0,t=xz1(C,N),c=[],T=[],M={},J=0;J<d.length;J++){var S=d[J],D=N.V.get(S);if(D&&D.info){var Z=D.info;D=Z.o$;if(Ec(C,Z,V,N.isLive)){S=Z.K9()?c:T;Z=g.F(t[D]);for(var f=Z.next();!f.done;f=Z.next()){f=f.value;var q=void 0,A=D+"_"+(((q=f.video)==null?void 0:q.fps)||0);M.hasOwnProperty(A)?M[A]===!0&&S.push(f):Ec(C,f,V,N.isLive)&&(S.push(f),M[A]=!0)}}else E&&X({opfu:S})}}if(c.length&& T.length)return E&&X({opfm:c[0].itag+","+T[0].itag}),YD(new i5(c,T,l))}return n6e(p,C,V,N,H,X,a)}; n6e=function(p,C,V,N,H,X,d){function a(Z){return!!c[Z]} var E=C.C||!!H,l=E&&C.Q$?X:void 0,t=new Set,c=RqH(p,C,V,N,X,E,t);l5(N)&&(c=PHL(V,c,H,E,X,C),E&&X({enflt:a2(c)}));C.X$=wUX(c,C);if(sc(N))return X=g.L0(Object.values(c),function(Z){return!!Z.length&&!!Z[0].audio}),p=g.L0(Object.values(c),function(Z){return!!Z.length&&!!Z[0].video}),X&&p||xD(),YD(new i5(p,X,l)); H=$zH(C);E&&X({audioPrefOrder:H.join("_")});p=[];if(C.qW){H=g.JT(H,a);for(var T=new Set,M=g.F(H),J=M.next();!J.done;J=M.next()){J=g.F(c[J.value]);for(var S=J.next();!S.done;S=J.next())S=S.value,S.K4&&!T.has(S.K4.id)&&(T.add(S.K4.id),p.push(S))}if(p.length===0){if(H.length===0)return E&&X({noaudio:1}),xD();p=c[H[0]]}}else{p=g.L0(H,a);if(!p)return E&&X({noaudio:1}),xD();p=c[p]}c["9"]&&c.h&&N.p4&&!C.R$&&(E&&X({dltvp9:1}),delete c["9"]);if(d){E&&X({bfsflt:a2(c),bfsflta:te(V)});Lia(V,t);E&&X({bfsfltb:te(V)}); for(var D in c)if(c.hasOwnProperty(D)&&(d=D,!(d==="f"||C.vr===0&&g6a.has(d))))for(t=g.F(c[d]),H=t.next();!H.done;H=t.next())H=H.value,C.I6?Wiv(V,d,H):Q3j(V,d,H);E&&X({aftsflt:te(V)})}d=c["1h"]?"1h":"1";V=c["9h"]?"9h":"9";H=c[d];T=c[V];H&&H.length&&(C.T.highestAv1Resolution=H[H.length-1].video.T);T&&T.length&&(C.T.highestVp9Resolution=T[T.length-1].video.T);D=[];t=[];if(C.cV&&H)D=H,t=[d],X({forceAv1:d});else if(C.J&&!C.Oi)for(t=r4H(N)?c["1h"]||c["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],E&&X({newhybpref:t.join(".")}), H=g.F(t),T=H.next();!T.done;T=H.next())D=D.concat(c[T.value]).filter(function(Z){return Z}); else C.Tp>0&&T&&H&&(t=[d,V],D=H.concat(T).filter(function(Z){return Z})); if(D.length&&!C.Oi){c1(D,t);if(E){E=[];C=g.F(D);for(N=C.next();!N.done;N=C.next())E.push(N.value.itag);X({hbdfmt:E.join(".")})}return YD(new i5(D,p,l))}D=Bts(C);D=g.L0(D,a);if(!D){if(c[d])return X=c[d],c1(X),YD(new i5(X,p,l));E&&X({novideo:1});return xD()}C.va&&(D==="1"||D==="1h")&&c[V]&&(d=Tr(c[D]),t=Tr(c[V]),t>d?D=V:t===d&&GmL(c[V])&&(D=V));D==="9"&&c.h&&Tr(c.h)>Tr(c["9"])&&(D="h");C.ER&&N.isLive&&D==="("&&c.H&&Tr(c["("])<1440&&(D="H");E&&X({vfmly:Mi(D)});C=c[D];if(!C.length)return E&&X({novfmly:Mi(D)}), xD();c1(C);return YD(new i5(C,p,l))}; wUX=function(p,C){var V=!(!p.m&&!p.M),N=!(!p.mac3&&!p.MAC3),H=!(!p.meac3&&!p.MEAC3);p=!(!p.i&&!p.I);C.QZ=p;return V||N||H||p}; GmL=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(C=C.value,C.itag&&p8S.has(C.itag))return!0;return!1}; Mi=function(p){switch(p){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return p}}; a2=function(p){var C=[],V;for(V in p)if(p.hasOwnProperty(V)){var N=V;C.push(Mi(N));N=g.F(p[N]);for(var H=N.next();!H.done;H=N.next())C.push(H.value.itag)}return C.join(".")}; PHL=function(p,C,V,N,H,X){var d={},a={};g.ZH(C,function(E,l){E=E.filter(function(t){var c=t.itag;if(!t.vV)return a[c]="noenc",!1;if(X.Hc&&t.o$==="(h"&&X.kM)return a[c]="lichdr",!1;if(t.o$==="("||t.o$==="(h"){if(p.S&&V&&V.flavor==="widevine"){var T=t.mimeType+"; experimental=allowed";(T=!!t.vV[V.flavor]&&!!V.T[T])||(a[c]=t.vV[V.flavor]?"unspt":"noflv");return T}if(!Je(p,mw.CRYPTOBLOCKFORMAT)&&!p.Wr||p.sY)return a[c]=p.sY?"disvp":"vpsub",!1}return V&&t.vV[V.flavor]&&V.T[t.mimeType]?!0:(a[c]=V?t.vV[V.flavor]? "unspt":"noflv":"nosys",!1)}); E.length&&(d[l]=E)}); N&&Object.entries(a).length&&H(a);return d}; zqS=function(p,C){var V=kc(p,function(N,H){return H.video.fps>32?Math.min(N,H.video.width):N},Infinity); V<Infinity&&(p=p.filter(function(N){if(N.video.fps>32||N.video.width<V)return!0;C[N.itag]="hfrfirst";return!1})); Bd()&&(p=p.filter(function(N){if(N.itag!=="299")return!0;C[N.itag]="ps3hfr1080";return!1})); return p}; YfQ=function(p,C,V){return C=C.filter(function(N){if(N.video.T<=p.wy)return!0;V[N.itag]="maxquality";return!1})}; xz1=function(p,C,V){var N={},H;for(H in C.T)if(C.T.hasOwnProperty(H)){var X=C.T[H].info;if(p.D&&X.video&&X.video.T<p.D)V&&(V[X.itag]="min"+p.D);else{var d=X.o$;N[d]=N[d]||[];N[d].push(X)}}p=g.F(Object.keys(N));for(C=p.next();!C.done;C=p.next())c1(N[C.value]);return N}; Tr=function(p){return kc(p,function(C,V){return Math.max(C,V.video.T)},0)}; Ec=function(p,C,V,N,H){H=H===void 0?new Set:H;if(C.o$==="")return"unkn";if((C.itag==="304"||C.itag==="266")&&p.Vn)return"blk2khfr";if(p.Y&&C.video&&C.video.T>p.Y)return"max"+p.Y;if(p.qo&&C.o$==="h"&&C.video&&C.video.T>1080)return"blkhigh264";if(C.o$==="(h"&&!V.Y)return"enchdr";if((N===void 0?0:N)&&px(C)&&!p.Y_)return"blk51live";if((C.o$==="MAC3"||C.o$==="mac3")&&!p.S)return"blkac3";if((C.o$==="MEAC3"||C.o$==="meac3")&&!p.W)return"blkeac3";if((C.o$==="M"||C.o$==="m")&&!p.b_)return"blkaac51";if((C.o$=== "so"||C.o$==="sa")&&!p.sY)return"blkamb";if(!p.Hc&&C.vV&&C.vV.fairplay&&(C.o$==="("||C.o$==="(h"||C.o$==="A"||C.o$==="MEAC3"))return"cbc";if((C.o$==="i"||C.o$==="I")&&!p.YM)return"blkiamf";if(C.itag==="774"&&!p.Sa)return"blkouh";var X,d;if(p.KS&&(C.o$==="1"||C.o$==="1h")&&((X=C.video)==null?0:X.T)&&((d=C.video)==null?void 0:d.T)>p.KS)return"av1cap";if((N=V.C.get(C.o$))&&N.pB>0)return H.add(C.o$),"byerr";var a;if((a=C.video)==null?0:a.fps>32){if(!V.Sa&&!Je(V,mw.FRAMERATE))return"capHfr";if(p.Qn&&C.video.T>= 4320)return"blk8khfr";if(Qu(C)){if(p.kt&&C.vV&&C.video.T>=1440)return"disablevp9hfr";if(p.o6&&g.gm("appletv5")&&C.vV)return"atv5sfr"}}if(p.F$&&C.F$>p.F$)return"ratecap";p=CGV(V,C);return p!==!0?p:!0}; c1=function(p,C){C=C===void 0?[]:C;g.hB(p,function(V,N){var H=N.F$-V.F$;if(!V.K9()||!N.K9())return H;var X=N.video.height*N.video.width-V.video.height*V.video.width;!X&&C&&C.length>0&&(V=C.indexOf(V.o$)+1,N=C.indexOf(N.o$)+1,X=V===0||N===0?N||-1:V-N);X||(X=H);return X})}; g.v1=function(p,C){this.C=p;this.S=C===void 0?!1:C;this.V=this.path=this.scheme="";this.T={};this.url=""}; So=function(p){FP(p);return p.V}; Kw=function(p){return p.C?p.C.startsWith("local"):p.scheme==="local"}; jj9=function(p){FP(p);return g.O_(p.T,function(C){return C!==null})}; Dy=function(p){FP(p);var C=decodeURIComponent(p.get("mn")||"").split(",");return p.path==="/videoplayback"&&C.length>1&&!!C[1]}; u5=function(p,C){C=C===void 0?!1:C;FP(p);if(p.path!=="/videoplayback"){var V=p.clone();V.set("playerfallback","1");return V}var N=p.i9();V=new g.SZ(N);var H=p.get("fvip"),X=decodeURIComponent(p.get("mn")||"").split(",");if(H&&X&&X.length>1&&X[1])return N=V.T,p=N.replace(/^[^.]*/,""),g.Dq(V,(N.indexOf("rr")===0?"rr":"r")+H+"---"+X[1]+p),V=new g.v1(V.toString()),V.set("fallback_count","1"),V;if(C)return V=p.clone(),V.set("fallback_count","1"),V;H=V.T.match("\\.a1\\.googlevideo\\.com$");V.T.match("\\.googlevideo\\.com$")? (g.Dq(V,"redirector.googlevideo.com"),N=V.toString()):V.T.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Dq(V,"www.youtube.com"),N=V.toString()):(V=XQ9(N),XY(V)&&(N=V));V=new g.v1(N);V.set("cmo=pf","1");H&&V.set("cmo=td","a1.googlevideo.com");return V}; FP=function(p){if(p.C){if(!XY(p.C)&&!p.C.startsWith("local"))throw new g.Bw("Untrusted URL",p.C);var C=g.q_(p.C);p.scheme=C.W;p.V=C.T+(C.V!=null?":"+C.V:"");var V=C.C;if(V.startsWith("/videoplayback"))p.path="/videoplayback",V=V.slice(14);else if(V.startsWith("/initplayback"))p.path="/initplayback",V=V.slice(13);else if(V.startsWith("/api/manifest")){var N=V.indexOf("/",12),H=V.indexOf("/",N+1);N>0&&H>0?(p.path=V.slice(0,H),V=V.slice(H+1)):(p.path=V,V="")}else p.path=V,V="";N=p.T;p.T=VY9(V);Object.assign(p.T, NnQ(C.S.toString()));Object.assign(p.T,N);p.T.file==="index.m3u8"&&(delete p.T.file,p.path+="/file/index.m3u8");p.C="";p.url="";p.S&&(C=eUa(),FP(p),V=p.T[C]||null)&&(V=Hse[0](V),p.set(C,V),p.S||eUa(""))}}; X8H=function(p){FP(p);var C=p.scheme+(p.scheme?"://":"//")+p.V+p.path;if(jj9(p)){var V=[];g.ZH(p.T,function(N,H){N!==null&&V.push(H+"="+N)}); C+="?"+V.join("&")}return C}; VY9=function(p){p=p.split("/");var C=0;p[0]||C++;for(var V={};C<p.length;C+=2)p[C]&&doV(V,p[C],p[C+1]);return V}; NnQ=function(p){p=p.split("&");for(var C={},V=0;V<p.length;V++){var N=p[V],H=N.indexOf("=");H>0?doV(C,N.slice(0,H),N.slice(H+1)):N&&(C[N]="")}return C}; doV=function(p,C,V){if(C==="cmo"){var N;(N=V.indexOf("="))>=0?(C="cmo="+V.slice(0,N),V=V.slice(N+1)):(N=V.indexOf("%3D"))>=0&&(C="cmo="+V.slice(0,N),V=V.slice(N+3))}p[C]=V}; Zy=function(p){var C=g.n(p,isv)||p.signatureCipher;p={m7:!1,TT:"",Kl:"",s:""};if(!C)return p;C=i1(C);p.m7=!0;p.TT=C.url;p.Kl=C.sp;p.s=C.s;return p}; Uc=function(p,C,V,N,H,X,d,a,E){this.LS=p;this.startTime=C;this.duration=V;this.ingestionTime=N;this.sourceURL=H;this.xB=E;this.endTime=C+V;this.T=d||0;this.range=X||null;this.pending=a||!1;this.xB=E||null}; g.fw=function(){this.segments=[];this.T=null;this.C=!0;this.V=""}; h4L=function(p,C){if(C>p.Ha())p.segments=[];else{var V=$2(p.segments,function(N){return N.LS>=C},p); V>0&&p.segments.splice(0,V)}}; Oc=function(p,C,V,N,H){H=H===void 0?!1:H;this.data=p;this.offset=C;this.size=V;this.type=N;this.T=(this.C=H)?0:8;this.dataOffset=this.offset+this.T}; yS=function(p){var C=p.data.getUint8(p.offset+p.T);p.T+=1;return C}; qi=function(p){var C=p.data.getUint16(p.offset+p.T);p.T+=2;return C}; I2=function(p){var C=p.data.getInt32(p.offset+p.T);p.T+=4;return C}; b5=function(p){var C=p.data.getUint32(p.offset+p.T);p.T+=4;return C}; Ae=function(p){var C=p.data;var V=p.offset+p.T;C=C.getUint32(V)*4294967296+C.getUint32(V+4);p.T+=8;return C}; o2=function(p,C){C=C===void 0?NaN:C;if(isNaN(C))var V=p.size;else for(V=p.T;V<p.size&&p.data.getUint8(p.offset+V)!==C;)++V;C=new Uint8Array(p.data.buffer,p.offset+p.T+p.data.byteOffset,V-p.T);p.T=Math.min(V+1,p.size);return eL(C)}; sjy=function(p){return new Uint8Array(p.data.buffer,p.offset+p.data.byteOffset,p.size)}; al9=function(p){this.offset=0;this.data=new DataView(new ArrayBuffer(p))}; kg=function(p,C,V,N){(new Uint8Array(p.data.buffer,p.offset,N)).set(new Uint8Array(C.buffer,V+C.byteOffset,N));p.offset+=N}; xg=function(p,C,V,N,H,X){this.startSecs=p;this.uc=C;this.context=V;this.identifier=N;this.event=H;this.T=X}; zr=function(p,C){this.data=p;this.uri=C||"http://youtube.com/streaming/metadata/segment/102015";this.ox=Yg(this,"Sequence-Number");this.S=Yg(this,"Segment-Count");this.W=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=Yg(this,"Ingestion-Walltime-Us")/1E6;this.T=(Yg(this,"First-Frame-Time-Us")+Yg(this,"First-Frame-Uncertainty-Us"))/1E6;this.Ym=Yg(this,"Target-Duration-Us")/1E6;this.Vo=this.data["Stream-Finished"]==="T";this.V=this.data.Streamable==="T";this.cryptoPeriodIndex=Yg(this,"Crypto-Period-Index"); this.C=Yg(this,"Crypto-Period-Seconds")}; ll1=function(p){return p.data["Cuepoint-Type"]?new xg(-(Number(p.data["Cuepoint-Playhead-Time-Sec"])||0),Number(p.data["Cuepoint-Total-Duration-Sec"])||0,p.data["Cuepoint-Context"],p.data["Cuepoint-Identifier"]||"",EuY[p.data["Cuepoint-Event"]||""]||"unknown",(Number(p.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; tYQ=function(p){return Number(p.data["Start-Media-Time-Us"])/1E6||0}; Yg=function(p,C){return Number(p.data[C])||0}; R2=function(p){return p.data["Stitched-Video-Cpn"]?p.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]}; g.cyv=function(p){return p.data["Serialized-State"]?p.data["Serialized-State"]:""}; g.Tns=function(p){switch(p.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}}; MYX=function(p,C){this.T=p;this.duration=C}; Jys=function(p,C,V,N,H){this.C=H;this.T=p||0;this.pitch=C||0;this.yaw=V||0;this.roll=N||0;this.crc=H.getUint32(4)}; nw=function(p){var C={};p=p.split("\r\n");for(var V=0;V<p.length;V++){if(p[V].length===0)return C;var N=p[V].match(/([^:]+):\s+([\S\s]+)/);N!=null&&(C[N[1]]=N[2])}return null}; mou=function(p,C){var V=g.eo(p,0,1952868452);p=g.eo(p,0,1953658222);if(V&&p){V.skip(1);var N=yS(V)<<16|qi(V);V.skip(4);N&1&&V.skip(8);N&2&&V.skip(4);if(N&8){N=V.T;var H=b5(V);V.data.setUint32(V.offset+N,C>1?Math.ceil(H*C):Math.floor(H*C))}p.skip(1);V=yS(p)<<16|qi(p);if(V&256){N=V&1;H=V&4;var X=V&512,d=V&1024,a=V&2048;V=b5(p);N&&p.skip(4);H&&p.skip(4);N=(X?4:0)+(d?4:0)+(a?4:0);for(H=0;H<V;H++)X=p.T,d=b5(p),p.data.setUint32(p.offset+X,C>1?Math.ceil(d*C):Math.floor(d*C)),p.skip(N)}}}; wH=function(p){p=new DataView(p.buffer,p.byteOffset,p.byteLength);return(p=g.eo(p,0,1836476516))?g.P1(p):NaN}; vuX=function(p){var C=g.eo(p,0,1937011556);if(!C)return null;C=$g(p,C.dataOffset+8,1635148593)||$g(p,C.dataOffset+8,1635135537);if(!C)return null;var V=$g(p,C.dataOffset+78,1936995172),N=$g(p,C.dataOffset+78,1937126244);if(!N)return null;C=null;if(V)switch(V.skip(4),yS(V)){default:C=0;break;case 1:C=2;break;case 2:C=1;break;case 3:C=255}var H=V=null,X=null;if(N=$g(p,N.dataOffset,1886547818)){var d=$g(p,N.dataOffset,1886546020),a=$g(p,N.dataOffset,2037673328);if(!a&&(a=$g(p,N.dataOffset,1836279920), !a))return null;d&&(d.skip(4),V=I2(d)/65536,X=I2(d)/65536,H=I2(d)/65536);p=sjy(a);p=new DataView(p.buffer,p.byteOffset+8,p.byteLength-8);return new Jys(C,V,X,H,p)}return null}; $g=function(p,C,V){for(;Lw(p,C);){var N=gH(p,C);if(N.type===V)return N;C+=N.size}return null}; g.eo=function(p,C,V){for(;Lw(p,C);){var N=gH(p,C);if(N.type===V)return N;C=W1(N.type)?C+8:C+N.size}return null}; g.QS=function(p){if(p.data.getUint8(p.dataOffset)){var C=p.data;p=p.dataOffset+4;C=C.getUint32(p)*4294967296+C.getUint32(p+4)}else C=p.data.getUint32(p.dataOffset+4);return C}; gH=function(p,C){var V=p.getUint32(C),N=p.getUint32(C+4);return new Oc(p,C,V,N)}; g.P1=function(p){var C=p.data.getUint8(p.dataOffset)?20:12;return p.data.getUint32(p.dataOffset+C)}; FkL=function(p){p=new Oc(p.data,p.offset,p.size,p.type,p.C);var C=yS(p);p.skip(7);var V=b5(p);if(C===0){C=b5(p);var N=b5(p)}else C=Ae(p),N=Ae(p);p.skip(2);for(var H=qi(p),X=[],d=[],a=0;a<H;a++){var E=b5(p);X.push(E);d.push(b5(p));p.skip(4)}return{Sz:V,wN:C,iA:N,N7x:X,Fi:d}}; Lw=function(p,C){if(p.byteLength-C<8)return!1;var V=p.getUint32(C);if(V<8||p.byteLength-C<V)return!1;for(V=4;V<8;V++){var N=p.getInt8(C+V);if(N<48||N>122)return!1}return!0}; W1=function(p){return p===1701082227||p===1836019558||p===1836019574||p===1835297121||p===1835626086||p===1937007212||p===1953653094||p===1953653099||p===1836475768}; SzX=function(p){p.skip(4);return{Mdn:o2(p,0),value:o2(p,0),Sz:b5(p),Vto:b5(p),a$o:b5(p),id:b5(p),oB:o2(p),offset:p.offset}}; g.KkQ=function(p){var C=$g(p,0,1701671783);if(!C)return null;var V=SzX(C),N=V.Mdn;V=nw(V.oB);if(p=$g(p,C.offset+C.size,1701671783))if(p=SzX(p),p=nw(p.oB),V&&p){C=g.F(Object.keys(p));for(var H=C.next();!H.done;H=C.next())H=H.value,V[H]=p[H]}return V?new zr(V,N):null}; rH=function(p,C){for(var V=$g(p,0,C);V;){var N=V;N.type=1936419184;N.data.setUint32(N.offset+4,1936419184);V=$g(p,V.offset+V.size,C)}}; g.B1=function(p,C){for(var V=0,N=[];Lw(p,V);){var H=gH(p,V);H.type===C&&N.push(H);V=W1(H.type)?V+8:V+H.size}return N}; DoH=function(p,C){var V=g.eo(p,0,1937011556),N=g.eo(p,0,1953654136);if(!V||!N||p.getUint32(V.offset+12)>=2)return null;var H=new DataView(C.buffer,C.byteOffset,C.length),X=g.eo(H,0,1937011556);if(!X)return null;C=H.getUint32(X.dataOffset+8);N=H.getUint32(X.dataOffset+12);if(N!==1701733217&&N!==1701733238)return null;N=new al9(p.byteLength+C);kg(N,p,0,V.offset+12);N.data.setInt32(N.offset,2);N.offset+=4;kg(N,p,V.offset+16,V.size-16);kg(N,H,H.byteOffset+X.dataOffset+8,C);kg(N,p,V.offset+V.size,p.byteLength- (V.offset+V.size));V=g.F([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(H=V.next();!H.done;H=V.next())H=g.eo(p,0,H.value),N.data.setUint32(H.offset,H.size+C);p=g.eo(N.data,0,1953654136);N.data.setUint32(p.offset+16,2);return N.data}; uY9=function(p){var C=g.eo(p,0,1937011556);if(!C)return null;var V=p.getUint32(C.dataOffset+12);if(V!==1701733217&&V!==1701733238)return null;C=$g(p,C.offset+24+(V===1701733217?28:78),1936289382);if(!C)return null;V=$g(p,C.offset+8,1935894637);if(!V||p.getUint32(V.offset+12)!==1667392371)return null;C=$g(p,C.offset+8,1935894633);if(!C)return null;C=$g(p,C.offset+8,1952804451);if(!C)return null;V=new Uint8Array(16);for(var N=0;N<16;N++)V[N]=p.getInt8(C.offset+16+N);return V}; Gr=function(p,C){this.T=p;this.pos=0;this.start=C||0}; pp=function(p){return p.pos>=p.T.byteLength}; HR=function(p,C,V){var N=new Gr(V);if(!Cp(N,p))return!1;N=j5(N);if(!Vv(N,C))return!1;for(p=0;C;)C>>>=8,p++;C=N.start+N.pos;var H=Nt(N,!0);N=p+(N.start+N.pos-C)+H;N=N>9?Zs1(N-9,8):Zs1(N-2,1);p=C-p;V.setUint8(p++,236);for(C=0;C<N.length;C++)V.setUint8(p++,N[C]);return!0}; Uos=function(p){var C=new Gr(p);C.h9();if(Cp(C,[408125543,374648427,174,224]))C=j5(C);else return null;for(var V=p=null;!pp(C);){var N=Nt(C,!1);if(N===21432)switch(X6(C)){default:p=0;break;case 1:p=1;break;case 3:p=2;break;case 15:p=255}else N===30320?V=j5(C):dz(C)}if(!V)return null;for(var H,X=N=C=null;!pp(V);)switch(Nt(V,!1)){case 30321:if(X6(V)!==3)return null;break;case 30324:C=iw(V);break;case 30323:X=iw(V);break;case 30325:N=iw(V);break;case 30322:H=Nt(V,!0);H=hW(V,H);H=new DataView(H.buffer, H.byteOffset,H.byteLength);break;default:dz(V)}return H?new Jys(p,C,X,N,H):null}; j5=function(p){var C=Nt(p,!0),V=p.T.byteOffset+p.pos;V=new DataView(p.T.buffer,V,Math.min(C,p.T.buffer.byteLength-V));V=new Gr(V,p.start+p.pos);p.pos+=C;return V}; X6=function(p){for(var C=Nt(p,!0),V=s9(p),N=1;N<C;N++)V=V*256+s9(p);return V}; iw=function(p){var C=Nt(p,!0),V=0;C===4?V=p.T.getFloat32(p.pos):C===8&&(V=p.T.getFloat64(p.pos));p.pos+=C;return V}; flL=function(p){var C=Nt(p,!0);return eL(hW(p,C))}; s9=function(p){return p.T.getUint8(p.pos++)}; Nt=function(p,C){var V=s9(p);if(V===1){for(C=V=0;C<7;C++)V=V*256+s9(p);return V}for(var N=128,H=0;H<6&&N>V;H++)V=V*256+s9(p),N*=128;return C?V-N:V}; dz=function(p){var C=Nt(p,!0);p.pos+=C}; OsQ=function(p){if(!Vv(p,440786851,!0))return null;var C=p.pos;Nt(p,!1);var V=Nt(p,!0)+p.pos-C;p.pos=C+V;if(!Vv(p,408125543,!1))return null;Nt(p,!0);if(!Vv(p,357149030,!0))return null;var N=p.pos;Nt(p,!1);var H=Nt(p,!0)+p.pos-N;p.pos=N+H;if(!Vv(p,374648427,!0))return null;var X=p.pos;Nt(p,!1);var d=Nt(p,!0)+p.pos-X,a=new Uint8Array(V+12+H+d),E=new DataView(a.buffer);a.set(new Uint8Array(p.T.buffer,p.T.byteOffset+C,V));E.setUint32(V,408125543);E.setUint32(V+4,33554431);E.setUint32(V+8,4294967295); a.set(new Uint8Array(p.T.buffer,p.T.byteOffset+N,H),V+12);a.set(new Uint8Array(p.T.buffer,p.T.byteOffset+X,d),V+12+H);return a}; aZ=function(p){var C=p.pos;p.pos=0;var V=1E6;Cp(p,[408125543,357149030,2807729])&&(V=X6(p));p.pos=C;return V}; yy9=function(p,C){var V=p.pos;p.pos=0;if(p.T.getUint8(p.pos)!==160&&!E9(p)||!Vv(p,160))return p.pos=V,NaN;Nt(p,!0);var N=p.pos;if(!Vv(p,161))return p.pos=V,NaN;Nt(p,!0);s9(p);var H=s9(p)<<8|s9(p);p.pos=N;if(!Vv(p,155))return p.pos=V,NaN;N=X6(p);p.pos=V;return(H+N)*C/1E9}; E9=function(p){if(!qze(p)||!Vv(p,524531317))return!1;Nt(p,!0);return!0}; qze=function(p){if(p.h9()){if(!Vv(p,408125543))return!1;Nt(p,!0)}return!0}; Cp=function(p,C){for(var V=0;V<C.length;V++){if(!Vv(p,C[V]))return!1;V!==C.length-1&&Nt(p,!0)}return!0}; Vv=function(p,C,V){V=V===void 0?!1:V;if(pp(p))return!1;for(var N=p.pos;Nt(p,!1)!==C;)if(dz(p),N=p.pos,pp(p))return!1;V&&(p.pos=N);return!0}; Zs1=function(p,C){C||(C=Math.ceil(Math.log(p+2)/Math.log(2)/7));for(var V=1<<8-C,N=[];N.length<C-1;)N.unshift(p%256),p=Math.floor(p/256);N.unshift(p|V);return N}; hW=function(p,C){var V=new Uint8Array(p.T.buffer,p.T.byteOffset+p.pos,C);p.pos+=C;return V}; lw=function(p){this.GU=p;this.T={};this.url=""}; IlL=function(p,C){var V=C.indexOf("?");if(V>0){var N=NnQ(C.substring(V+1));g.ZH(N,function(H,X){this.set(X,H)},p); C=C.substring(0,V)}C=VY9(C);g.ZH(C,function(H,X){this.set(X,H)},p)}; bsY=function(p){var C=p.GU.i9(),V=[];g.ZH(p.T,function(H,X){V.push(X+"="+H)}); if(!V.length)return C;var N=V.join("&");p=jj9(p.GU)?"&":"?";return C+p+N}; tW=function(p,C){var V=new g.v1(C);(C=V.get("req_id"))&&p.set("req_id",C);g.ZH(p.T,function(N,H){V.set(H,null)}); return V}; Ayv=function(){this.S=this.V=this.T=this.timedOut=this.started=this.W=this.C=0}; cR=function(p){p.W=(0,g.Ip)();p.started=0;p.timedOut=0;p.T=0}; ouH=function(p,C){var V=p.started+p.T*4;C&&(V+=p.V);V=Math.max(0,V-3);return Math.pow(1.6,V)}; Tn=function(p,C){p[C]||(p[C]=new Ayv);return p[C]}; Mt=function(p){this.Z=this.D=this.W=this.C=0;this.J=this.Y=!1;this.T=p;this.V=p.clone()}; klV=function(p,C,V){if(Kw(p.T))return!1;var N=Tn(V,So(p.T));if(N.timedOut<1&&N.T<1)return!1;N=N.timedOut+N.T;p=JW(p,C);V=Tn(V,So(p));return V.timedOut+V.T+0<N}; mp=function(p,C,V){p=C?JW(p,V):p.T;return new lw(p)}; JW=function(p,C){C=C?C.JW:!1;p.S||(p.S=u5(p.V,C));return p.S}; vR=function(p,C,V){return So(C?JW(p,V):p.T)}; F6=function(p,C,V,N){C.lf&&(N===void 0?0:N)>1?C=C.lf:(V=Tn(V,vR(p,p.Bz(C,V),C)),C=Math.max(p.W,V.timedOut)+C.pC*(p.C-p.W)+.25*p.D,C=C>3?1E3*Math.pow(1.6,C-3):0);return C===0?!0:p.Z+C<(0,g.Ip)()}; xoy=function(p,C,V){p.T.set(C,V);p.V.set(C,V);p.S&&p.S.set(C,V)}; Yzs=function(p,C,V,N,H){++p.C;C&&++p.W;So(V.GU).startsWith("redirector.")&&(p.T=p.V.clone(),delete p.S,N.qF&&delete H[So(p.T)])}; S5=function(p){return(p.itag||"")+";"+(p.lmt||0)+";"+(p.xtags||"")}; Kp=function(p,C,V,N){this.initRange=V;this.indexRange=N;this.T=null;this.V=!1;this.Y=0;this.S=this.C=null;this.info=C;this.sR=new Mt(p)}; D0=function(p,C){this.start=p;this.end=C;this.length=C-p+1}; uw=function(p){p=p.split("-");var C=Number(p[0]),V=Number(p[1]);if(!isNaN(C)&&!isNaN(V)&&p.length===2&&(p=new D0(C,V),!isNaN(p.start)&&!isNaN(p.end)&&!isNaN(p.length)&&p.length>0))return p}; Z0=function(p,C){return new D0(p,p+C-1)}; z4S=function(p){return p.end==null?{start:String(p.start)}:{start:String(p.start),end:String(p.end)}}; U9=function(p){if(!p)return new D0(0,0);var C=Number(p.start);p=Number(p.end);if(!isNaN(C)&&!isNaN(p)&&(C=new D0(C,p),C.length>0))return C}; fp=function(p,C,V,N,H,X,d,a,E,l,t,c){N=N===void 0?"":N;this.type=p;this.T=C;this.range=V;this.source=N;this.R5=t;this.clipId=c===void 0?"":c;this.D=[];this.W="";this.LS=-1;this.J=this.Z=0;this.W=N;this.LS=H>=0?H:-1;this.startTime=X||0;this.duration=d||0;this.C=a||0;this.V=E>=0?E:this.range?this.range.length:NaN;this.S=this.range?this.C+this.V===this.range.length:l===void 0?!!this.V:l;this.range?(this.Qi=this.startTime+this.duration*this.C/this.range.length,this.Y=this.duration*this.V/this.range.length, this.zM=this.Qi+this.Y):R4s(this)}; R4s=function(p){p.Qi=p.startTime;p.Y=p.duration;p.zM=p.Qi+p.Y}; rnS=function(p,C,V){var N=!(!C||C.T!==p.T||C.type!==p.type||C.LS!==p.LS);return V?N&&!!C&&(p.range&&C.range?C.range.end===p.range.end:C.range===p.range)&&C.C+C.V===p.C+p.V:N}; O9=function(p){return p.type===1||p.type===2}; yv=function(p){return p.type===3||p.type===6}; qt=function(p,C){return p.T===C.T?p.range&&C.range?p.range.start+p.C+p.V===C.range.start+C.C:p.LS===C.LS?p.C+p.V===C.C:p.LS+1===C.LS&&C.C===0&&p.S:!1}; cKX=function(p,C){return p.LS!==C.LS&&C.LS!==p.LS+1||p.type!==C.type?!1:qt(p,C)?!0:Math.abs(p.Qi-C.Qi)<=1E-6&&p.LS===C.LS?!1:t6u(p,C)}; t6u=function(p,C){return qt(p,C)||Math.abs(p.zM-C.Qi)<=1E-6||p.LS+1===C.LS&&C.C===0&&p.S?!0:!1}; IZ=function(p){return p.LS+(p.S?1:0)}; mrL=function(p){p.length===1||g.oo(p,function(V){return!!V.range}); for(var C=1;C<p.length;C++);C=p[p.length-1];return new D0(p[0].range.start+p[0].C,C.range.start+C.C+C.V-1)}; LE1=function(p){for(var C=1;C<p.length;C++)if(!qt(p[C-1],p[C]))return!1;return!0}; gLv=function(p){var C=0;p=g.F(p);for(var V=p.next();!V.done;V=p.next())C+=V.value.range.length;return C}; bw=function(p){var C={};C.itag=p.T.info.itag;C.type=""+p.type;C.src=""+p.source;C.segsrc=p.W;C.seg=String(p.LS);p.range&&(C.range=p.range.start+p.C+"-"+(p.range.start+p.C+p.V-1));C.time=p.Qi.toFixed(1)+"-"+(p.Qi+p.Y).toFixed(1);C.off=String(p.C);C.len=String(p.V);p.S&&(C.end="1");p.Vo()&&(C.eos="1");p.clipId&&(C.cid=p.clipId);return C}; WEs=function(p){return new fp(p.type,p.T,p.range,"getEmptyStubBefore"+p.W,p.LS,p.startTime,0,p.C,0)}; QkV=function(p){return new fp(p.type,p.T,p.range,"getEmptyStubAfter"+p.W,p.LS,p.startTime+p.duration,0,p.C+p.V,0)}; rK1=function(p,C,V,N){return new fp(p.type,p.T,p.range,"reslice"+p.W,p.LS,p.startTime,p.duration,C,V,N,p.R5,p.clipId)}; Blj=function(p,C){return p.T!==C.T?!1:p.range&&C.range?p.range.start+p.C>=C.range.start+C.C&&p.range.start+p.C+p.V<=C.range.start+C.C+C.V:p.LS===C.LS&&p.C>=C.C&&(p.C+p.V<=C.C+C.V||C.S)}; GPX=function(p,C){return p.T!==C.T?!1:p.type===4&&C.type===3&&p.T.rI()?(p=p.T.Nz(p),Yo(p,function(V){return GPX(V,C)})):p.LS===C.LS&&!!C.V&&C.C+C.V>p.C&&C.C+C.V<=p.C+p.V}; AW=function(p,C){var V=C.LS;p.W="updateWithSegmentInfo";p.LS=V;if(p.startTime!==C.startTime||p.duration!==C.duration)p.startTime=C.startTime+p.Z,p.duration=C.duration,R4s(p)}; oZ=function(p,C){var V=this;this.wV=p;this.S=this.T=null;this.W=this.kq=NaN;this.Bz=this.requestId=null;this.Sr={xrS:function(){return V.range}}; this.sR=p[0].T.sR;this.C=C||"";this.wV[0].range&&this.wV[0].V>0&&(LE1(p)?(this.range=mrL(p),this.V=this.range.length):(this.range=this.wV[this.wV.length-1].range,this.V=gLv(p)))}; kE=function(p){return!O9(p.wV[p.wV.length-1])}; xE=function(p){return p.wV[p.wV.length-1].type===4}; g.YE=function(p,C,V){V=p.Bz===null?p.sR.Bz(C,V,p.wV[0].type):p.Bz;if(p.T){C=V?u5(p.T,C.JW):p.T;var N=new lw(C);N.get("alr")||N.set("alr","yes");p.C&&IlL(N,p.C)}else/http[s]?:\/\//.test(p.C)?N=new lw(new g.v1(p.C)):(N=mp(p.sR,V,C),p.C&&IlL(N,p.C));(C=p.range)?N.set("range",C.toString()):p.wV[0].T.NQ()&&p.wV.length===1&&p.wV[0].C&&N.set("range",p.wV[0].C+"-");p.requestId&&N.set("req_id",p.requestId);isNaN(p.kq)||N.set("headm",p.kq.toString());isNaN(p.W)||N.set("mffa",p.W+"ms");p.urlParams&&g.ZH(p.urlParams, function(H,X){N.set(X,H)}); return N}; pSy=function(p){if(p.range)return p.V;p=p.wV[0];return Math.round(p.Y*p.T.info.F$)}; CbY=function(p,C){return Math.max(0,p.wV[0].Qi-C)}; zn=function(p,C,V,N,H,X){X=X===void 0?0:X;Kp.call(this,p,C,N,void 0);this.W=V;this.Ym=X;this.index=H||new g.fw}; jlY=function(p,C,V,N,H){this.LS=p;this.startSecs=C;this.uc=V;this.T=N||NaN;this.C=H||NaN}; RZ=function(p,C,V){for(;p;p=p.parentNode)if(p.attributes&&(!V||p.nodeName===V)){var N=p.getAttribute(C);if(N)return N}return""}; np=function(p,C){for(;p;p=p.parentNode){var V=p.getElementsByTagName(C);if(V.length>0)return V[0]}return null}; VIL=function(p){if(!p)return 0;var C=p.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return C?(Number(C[2])|0)*3600+(Number(C[4])|0)*60+(Number(C[6])|0):Number(p)|0}; NFa=function(p){return p.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?p+"Z":p}; e5=function(){this.T=[];this.C=null;this.Y=0;this.V=[];this.W=!1;this.D="";this.S=-1}; HrL=function(p){var C=p.V;p.V=[];return C}; XSe=function(){this.S=[];this.T=null;this.C={};this.V={}}; slH=function(p,C){var V=[];C=Array.from(C.getElementsByTagName("SegmentTimeline"));C=g.F(C);for(var N=C.next();!N.done;N=C.next()){N=N.value;var H=N.parentNode.parentNode,X=null;H.nodeName==="Period"?X=dVy(p):H.nodeName==="AdaptationSet"?(H=H.getAttribute("id")||H.getAttribute("mimetype")||"",X=ira(p,H)):H.nodeName==="Representation"&&(H=H.getAttribute("id")||"",X=hhV(p,H));if(X==null)return;X.update(N);g.C6(V,HrL(X))}g.C6(p.S,V);jFX(p.S,function(d){return d.startSecs*1E3+d.T})}; aQy=function(p){p.T&&(p.T.T=[]);g.ZH(p.C,function(C){C.T=[]}); g.ZH(p.V,function(C){C.T=[]})}; dVy=function(p){p.T||(p.T=new e5);return p.T}; ira=function(p,C){p.C[C]||(p.C[C]=new e5);return p.C[C]}; hhV=function(p,C){p.V[C]||(p.V[C]=new e5);return p.V[C]}; wz=function(p){var C=p===void 0?{}:p;p=C.Ym===void 0?0:C.Ym;var V=C.MO===void 0?!1:C.MO;var N=C.nV===void 0?0:C.nV;var H=C.AE===void 0?0:C.AE;var X=C.Qx===void 0?Infinity:C.Qx;var d=C.KQ===void 0?0:C.KQ;var a=C.EO===void 0?!1:C.EO;C=C.nh===void 0?!1:C.nh;g.fw.call(this);this.x5=this.J8=-1;this.HR=p;this.nV=N;this.MO=V;this.AE=H;this.Qx=X;this.KQ=d;((this.EO=a)||isFinite(X)&&this.Qx>0)&&V&&PR&&(this.C=!1,this.V="postLive");this.nh=C}; $E=function(p,C){return ir(p.segments,function(V){return C-V.LS})}; Lp=function(p,C,V){V=V===void 0?{}:V;zn.call(this,p,C,"",void 0,void 0,V.Ym||0);this.index=new wz(V)}; gz=function(p,C,V){Kp.call(this,p,C);this.W=V;p=this.index=new g.fw;p.C=!1;p.V="d"}; EPu=function(p,C,V){var N=p.index.EM(C),H=p.index.getStartTime(C),X=p.index.getDuration(C);V?X=V=0:V=p.info.F$*X;return new oZ([new fp(3,p,void 0,"otfCreateRequestInfoForSegment",C,H,X,0,V)],N)}; lQe=function(p,C){if(!p.index.isLoaded()){var V=[],N=C.S;C=C.W.split(",").filter(function(t){return t.length>0}); for(var H=0,X=0,d=0,a=/^(\d+)/,E=/r=(\d+)/,l=0;l<N;l++){if(d<=0)if(d=C.shift(),X=(X=a.exec(d))?+X[1]/1E3:0)d=(d=E.exec(d))?+d[1]:0,d+=1;else return;V.push(new Uc(l,H,X,NaN,"sq/"+(l+1)));H+=X;d--}p.index.append(V)}}; WR=function(p,C){this.info=p;this.T=C;this.C=null;this.S=this.V=-1;this.timestampOffset=0;this.isLocked=this.Y=!1;this.W=this.info.T.N$()&&!this.info.C}; tIY=function(p,C){p.T.getLength();C=Math.min(C,p.info.V);var V=p.T.split(C),N=V.LM;V=new WR(new fp(p.info.type,p.info.T,p.info.range,p.info.W,p.info.LS,p.info.startTime,p.info.duration,p.info.C,C,!1,p.info.R5,p.info.clipId),V.Yd);V.S=p.S;V.V=p.V;C=new WR(new fp(p.info.type,p.info.T,p.info.range,p.info.W,p.info.LS,p.info.startTime,p.info.duration,p.info.C+C,p.info.V-C,p.info.S,p.info.R5,p.info.clipId),N);C.S=p.S;C.V=p.V;return[V,C]}; Qv=function(p,C,V){var N;if(!(N=p.isLocked||C.isLocked||!qt(p.info,C.info)||p.info.S)){if(V=V===void 0?!1:V)V=p.T,N=C.T,V=!(N.XF.length?Ihy(V,N.XF[0]):1);N=V}if(N)return null;V=new fp(p.info.type,p.info.T,p.info.range,p.info.W,p.info.LS,p.info.startTime,p.info.duration,p.info.C,p.info.V,p.info.S,p.info.R5,p.info.clipId);N=C.info;V.V+=N.V;V.range&&(V.Y+=N.Y);V.zM=N.zM;V.S=N.S;N=new o4;k9(N,p.T);k9(N,C.T);V=new WR(V,N);V.C=C.C||p.C;V.V=p.V!==-1?p.V:C.V;V.S=p.S!==-1?p.S:C.S;return V}; rz=function(p){g.Cx(p.info.T.info)||p.info.T.info.Ft();if(p.V!==-1)return p.V;if(p.C&&tYQ(p.C))return p.V=tYQ(p.C),p.V;if(g.Cx(p.info.T.info)){var C=p.b9();for(var V=p.info.T.T,N=NaN,H=NaN,X=0;Lw(C,X);){var d=gH(C,X);d.type===1936286840?H=d.data.getUint32(d.dataOffset+8):d.type===1836476516?H=g.P1(d):d.type===1952867444&&isNaN(N)&&(N=g.QS(d));X=W1(d.type)?X+8:X+d.size}!H&&V&&(H=wH(V));C=N/H}else C=new Gr(p.b9()),V=p.W?C:new Gr(new DataView(p.info.T.T.buffer)),N=aZ(V),V=C.pos,C.pos=0,E9(C)?Vv(C,231)? (N=X6(C)*N/1E9,C.pos=V,C=N):(C.pos=V,C=NaN):(C.pos=V,C=NaN);p.V=C||p.info.Qi;return p.V}; TF1=function(p,C){p.timestampOffset>0&&(C-=p.timestampOffset);var V=rz(p)+C;cV1(p,V);p.timestampOffset=C}; cV1=function(p,C){g.Cx(p.info.T.info)||p.info.T.info.Ft();p.V=C;if(g.Cx(p.info.T.info)){var V=p.b9();p=p.info.T.T;for(var N=NaN,H=NaN,X=0;Lw(V,X);){var d=gH(V,X);isNaN(N)&&(d.type===1936286840?N=d.data.getUint32(d.dataOffset+8):d.type===1836476516&&(N=g.P1(d)));if(d.type===1952867444){!N&&p&&(N=wH(p));var a=g.QS(d);isNaN(H)&&(H=Math.round(C*N)-a);var E=d;a+=H;if(E.data.getUint8(E.dataOffset)){var l=E.data;E=E.dataOffset+4;l.setUint32(E,Math.floor(a/4294967296));l.setUint32(E+4,a&4294967295)}else E.data.setUint32(E.dataOffset+ 4,a)}X=W1(d.type)?X+8:X+d.size}return!0}V=new Gr(p.b9());p=p.W?V:new Gr(new DataView(p.info.T.T.buffer));N=aZ(p);p=V.pos;V.pos=0;if(E9(V)&&Vv(V,231))if(H=Nt(V,!0),C=Math.floor(C*1E9/N),Math.ceil(Math.log(C)/Math.log(2)/8)>H)C=!1;else{for(N=H-1;N>=0;N--)V.T.setUint8(V.pos+N,C&255),C>>>=8;V.pos=p;C=!0}else C=!1;return C}; Gn=function(p,C){C=C===void 0?!1:C;var V=BR(p);p=C?0:p.info.Y;return V||p}; BR=function(p){g.Cx(p.info.T.info)||p.info.T.info.Ft();if(p.C&&p.info.type===6)return p.C.Ym;if(g.Cx(p.info.T.info)){var C=p.b9();var V=0;C=g.B1(C,1936286840);C=g.F(C);for(var N=C.next();!N.done;N=C.next())N=FkL(N.value),V+=N.Fi[0]/N.Sz;V=V||NaN;if(!(V>=0))a:{V=p.b9();C=p.info.T.T;for(var H=N=0,X=0;Lw(V,N);){var d=gH(V,N);if(d.type===1836476516)H=g.P1(d);else if(d.type===1836019558){!H&&C&&(H=wH(C));if(!H){V=NaN;break a}var a=$g(d.data,d.dataOffset,1953653094),E=a;a=H;var l=$g(E.data,E.dataOffset, 1952868452);E=$g(E.data,E.dataOffset,1953658222);var t=I2(l);I2(l);t&2&&I2(l);l=t&8?I2(l):0;var c=I2(E),T=c&1;t=c&4;var M=c&256,J=c&512,S=c&1024;c&=2048;var D=b5(E);T&&I2(E);t&&I2(E);for(var Z=T=0;Z<D;Z++){var f=M?I2(E):l;J&&I2(E);t&&Z===0||!S||I2(E);c&&I2(E);T+=f}X+=T/a}N=W1(d.type)?N+8:N+d.size}V=X||NaN}V||g.eG(new g.Bw("Missing duration while parsing bmff",p.info.Zh()))}else V=new Gr(p.b9()),p=p.W?V:new Gr(new DataView(p.info.T.T.buffer)),V=yy9(V,aZ(p));return V}; MI9=function(p){var C=p.b9();var V=(V=g.eo(C,0,1936286840))?V.data.getUint32(V.dataOffset+8):NaN;isNaN(V)&&(p=p.info.T.T,V=(C=g.eo(C,0,1836476516))?g.P1(C):p?wH(p):NaN);return V}; JVS=function(p){return p.info.T.info.Ft()&&p.T.getUint8(0)===160}; mVy=function(p){if(!p.C){g.Cx(p.info.T.info)||p.info.T.info.Ft();if(g.Cx(p.info.T.info))var C=g.KkQ(p.b9());else{C=new Gr(p.b9());var V=C.pos;C.pos=0;var N=null,H=null;if(Cp(C,[408125543,307544935]))for(var X=C.pos+Nt(C,!0);C.pos<X;)if(Nt(C,!1)!==29555)dz(C);else for(var d=C.pos+Nt(C,!0);C.pos<d;)if(Nt(C,!1)!==26568)dz(C);else for(var a=C.pos+Nt(C,!0);C.pos<a;){var E=Nt(C,!1);if(E===17543){if(E=flL(C),E=nw(E))if(H)for(var l=g.F(Object.keys(E)),t=l.next();!t.done;t=l.next())t=t.value,H[t]=E[t];else H= E}else E===17827?(E=flL(C),N||(N=E)):dz(C)}C.pos=V;C=H?new zr(H,N):null}p.C=C}}; vPL=function(p){if(g.Cx(p.info.T.info))rH(p.b9(),1836019574),rH(p.b9(),1718909296);else{var C=new Gr(p.b9());qze(C);Vv(C,524531317,!0);p.T=p.T.split(C.start+C.pos).LM}p.W=!1}; pb=function(p){if(!p.Y){if(g.Cx(p.info.T.info)){var C=p.b9();var V=$g(C,0,1836019574);if(V){V=V.offset+V.size;var N=new Uint8Array(V);N.set(new Uint8Array(C.buffer,C.byteOffset,V));C=N}else C=null}else C=OsQ(new Gr(p.b9()));C&&(p.info.T.T=C,p.Y=!0)}}; g.Cb=function(){this.count=0;this.T=1;this.C=!1;this.offsets=new Float64Array(128);this.wI=new Float64Array(128)}; FLa=function(p,C){return C+1<p.count||p.C?p.offsets[C+1]-p.offsets[C]:-1}; jO=function(p){p.offsets.length<p.count+1&&p.resize(p.offsets.length*2)}; VM=function(p,C,V,N){Kp.call(this,p,C,V,N);var H=this;this.W=null;this.Sr={xR:function(X,d,a,E){return H.xR(X,d,a,E)}}; this.index=new g.Cb}; SGj=function(p,C,V,N,H,X){this.displayName=p;this.vssId=C;this.languageCode=V;this.kind=N===void 0?"":N;this.xtags=H===void 0?"":H;this.id=X===void 0?"":X}; DVs=function(p){if(p=p.colorInfo)if(p=p.transferCharacteristics)return KLv[p];return null}; g.N6=function(p,C,V){this.name=p;this.id=C;this.isDefault=V}; ucu=function(p){return Hb(function(C,V){return g.oK(C,V,4,1E3)},p,{format:"RAW", method:"GET",withCredentials:!0})}; g.Zry=function(p){var C;p.responseType&&p.responseType!=="text"?p.responseType==="arraybuffer"&&(C=eL(new Uint8Array(p.response))):C=p.responseText;return!C||C.length>2048?"":C.indexOf("https://")===0?C:""}; Hb=function(p,C,V){C.match(UVu);return p(C,V).then(function(N){var H=g.Zry(N.xhr);return H?Hb(p,H,V):N.xhr})}; hz=function(p,C,V){p=p===void 0?"":p;C=C===void 0?null:C;V=V===void 0?!1:V;g.ca.call(this);var N=this;this.sourceUrl=p;this.isLivePlayback=V;this.UY=this.duration=0;this.isPremiere=this.EO=this.S=this.isLiveHeadPlayable=this.isLive=this.C=!1;this.Qx=this.AE=0;this.isOtf=this.p4=!1;this.Y_=(0,g.Ip)();this.a$=Infinity;this.T={};this.V=new Map;this.state=this.zI=0;this.timeline=null;this.isManifestless=!1;this.sY=[];this.Y=null;this.Vn=0;this.W="";this.Sa=NaN;this.vr=this.YM=this.timestampOffset=this.D= 0;this.lf=this.Tz=NaN;this.qW=0;this.R$=this.Z=!1;this.Wr=[];this.Ga={};this.b_=NaN;this.Sr={ppx:function(a){X1(N,a)}}; var H;this.KS=(H=C)==null?void 0:H.OY("html5_use_network_error_code_enums");fQe=!!C&&C.OY("html5_modern_vp9_mime_type");var X;dB=!((X=C)==null||!X.OY("html5_enable_flush_during_seek"))&&g.Qg();var d;io=!((d=C)==null||!d.OY("html5_enable_reset_audio_decoder"))&&g.Qg()}; Or9=function(p){return g.O_(p.T,function(C){return!!C.info.video&&C.info.video.T>=2160})}; r4H=function(p){return g.O_(p.T,function(C){return!!C.info.video&&C.info.video.isHdr()})}; l5=function(p){return g.O_(p.T,function(C){return!!C.info.vV})}; g.yVY=function(p){return g.O_(p.T,function(C){return Xz(C.info.mimeType)})}; qGa=function(p){return g.O_(p.T,function(C){return C.info.video?C.info.video.projectionType==="EQUIRECTANGULAR":!1})}; IQj=function(p){return g.O_(p.T,function(C){return C.info.video?C.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; brX=function(p){return g.O_(p.T,function(C){return C.info.video?C.info.video.projectionType==="MESH":!1})}; AVV=function(p){return g.O_(p.T,function(C){return C.info.video?C.info.video.stereoLayout===1:!1})}; oPL=function(p){return WKS(p.T,function(C){return C.info.video?C.v2():!0})}; sc=function(p){return g.O_(p.T,function(C){return Kw(C.sR.T)})}; X1=function(p,C){p.T[C.info.id]=C;p.V.set(S5(g.VE(C.info,p.p4)),C)}; kTV=function(p,C){return S5({itag:C.itag,lmt:p.p4?0:C.lmt||0,xtags:C.xtags})}; E6=function(p,C,V){V=V===void 0?0:V;var N=p.mimeType||"",H=p.itag;var X=p.xtags;H=H?H.toString():"";X&&(H+=";"+X);X=H;if(Hc(N)){var d=p.width||640;H=p.height||360;var a=p.fps,E=p.qualityLabel,l=p.colorInfo,t=p.projectionType,c;p.stereoLayout&&(c=xVQ[p.stereoLayout]);var T=DVs(p)||void 0;if(l==null?0:l.primaries)var M=YGH[l.primaries]||void 0;d=new wO(d,H,a,t,c,void 0,E,T,M);N=s6(N,d,gO[p.itag||""]);dB&&(N+="; enableflushduringseek=true");io&&(N+="; enableresetaudiodecoder=true")}var J;if(Nf(N)){var S= p.audioSampleRate;c=p.audioTrack;S=new nR(S?+S:void 0,p.audioChannels,p.spatialAudioType,p.isDrc,p.loudnessDb,p.trackAbsoluteLoudnessLkfs);c&&(M=c.displayName,H=c.id,c=c.audioIsDefault,M&&(J=new g.N6(M,H||"",!!c)))}var D;p.captionTrack&&(E=p.captionTrack,c=E.displayName,M=E.vssId,H=E.languageCode,a=E.kind,E=E.id,c&&M&&H&&(D=new SGj(c,M,H,a,p.xtags,E)));c=Number(p.bitrate)/8;M=Number(p.contentLength);H=Number(p.lastModified);E=p.drmFamilies;a=p.type;V=V&&M?M/V:0;p=Number(p.approxDurationMs);if(C&& E){var Z={};E=g.F(E);for(l=E.next();!l.done;l=E.next())(l=a5[l.value])&&(Z[l]=C[l])}return new WB(X,N,{audio:S,video:d,K4:J,vV:Z,F$:c,ND:V,contentLength:M,lastModified:H,captionTrack:D,streamType:a,approxDurationMs:p})}; lo=function(p,C,V){V=V===void 0?0:V;var N=p.type;var H=p.itag;var X=p.xtags;X&&(H=p.itag+";"+X);if(Hc(N)){var d=(p.size||"640x360").split("x");d=new wO(+d[0],+d[1],+p.fps,p.projection_type,+p.stereo_layout,void 0,p.quality_label,p.eotf,p.primaries);N=s6(N,d,gO[p.itag]);dB&&(N+="; enableflushduringseek=true");io&&(N+="; enableresetaudiodecoder=true")}var a;if(Nf(N)){var E=new nR(+p.audio_sample_rate||void 0,+p.audio_channels||0,p.spatial_audio_type,!!p.drc);p.name&&(a=new g.N6(p.name,p.audio_track_id, p.isDefault==="1"))}var l;p.caption_display_name&&p.caption_vss_id&&p.caption_language_code&&(l=new SGj(p.caption_display_name,p.caption_vss_id,p.caption_language_code,p.caption_kind,p.xtags,p.caption_id));X=Number(p.bitrate)/8;var t=Number(p.clen),c=Number(p.lmt);V=V&&t?t/V:0;if(C&&p.drm_families){var T={};for(var M=g.F(p.drm_families.split(",")),J=M.next();!J.done;J=M.next())J=J.value,T[J]=C[J]}return new WB(H,N,{audio:E,video:d,K4:a,vV:T,F$:X,ND:V,contentLength:t,lastModified:c,captionTrack:l, streamType:p.stream_type,approxDurationMs:Number(p.approx_duration_ms)})}; zhQ=function(p){return Yo(p,function(C){return"FORMAT_STREAM_TYPE_OTF"===C.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; RhX=function(p){return Yo(p,function(C){return"FORMAT_STREAM_TYPE_OTF"===C.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; nPa=function(p,C){return p.timeline?jk(p.timeline.S,C):p.sY.length?jk(p.sY,C):[]}; tz=function(p,C,V){C=C===void 0?"":C;V=V===void 0?"":V;p=new g.v1(p,!0);p.set("alr","yes");V&&(V=v_j(decodeURIComponent(V)),p.set(C,encodeURIComponent(V)));return p}; $VX=function(p,C){var V=RZ(C,"id");V=V.replace(":",";");var N=RZ(C,"mimeType"),H=RZ(C,"codecs");N=H?N+'; codecs="'+H+'"':N;H=Number(RZ(C,"bandwidth"))/8;var X=Number(np(C,"BaseURL").getAttribute(p.W+":contentLength")),d=p.duration&&X?X/p.duration:0;if(Hc(N)){var a=Number(RZ(C,"width"));var E=Number(RZ(C,"height")),l=Number(RZ(C,"frameRate")),t=ehs(RZ(C,p.W+":projectionType"));a:switch(RZ(C,p.W+":stereoLayout")){case "layout_left_right":var c=1;break a;case "layout_top_bottom":c=2;break a;default:c= 0}a=new wO(a,E,l,t,c)}if(Nf(N)){var T=Number(RZ(C,"audioSamplingRate"));var M=Number(RZ(C.getElementsByTagName("AudioChannelConfiguration")[0],"value"));E=Pba(RZ(C,p.W+":spatialAudioType"));T=new nR(T,M,E);a:{M=RZ(C,"lang")||"und";if(E=np(C,"Role"))if(t=RZ(E,"value")||"",g.bc(wSa,t)){E=M+"."+wSa[t];l=t==="main";p=RZ(C,p.W+":langName")||M+" - "+t;M=new g.N6(p,E,l);break a}M=void 0}}if(C=np(C,"ContentProtection"))if(C.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var J={};for(C= C.firstChild;C!=null;C=C.nextSibling)C instanceof Element&&/SystemURL/.test(C.nodeName)&&(p=C.getAttribute("type"),E=C.textContent,p&&E&&(J[p]=E.trim()))}else J=void 0;return new WB(V,N,{audio:T,video:a,K4:M,vV:J,F$:H,ND:d,contentLength:X})}; ehs=function(p){switch(p){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; Pba=function(p){switch(p){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; gP9=function(p,C){C=C===void 0?"":C;p.state=1;p.Y_=(0,g.Ip)();return ucu(C||p.sourceUrl).then(function(V){if(!p.fS()){p.zI=V.status;V=V.responseText;var N=new DOMParser;V=VW(N,zUe(V),"text/xml").getElementsByTagName("MPD")[0];p.a$=VIL(RZ(V,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(V.attributes){N=g.F(V.attributes);for(var H=N.next();!H.done;H=N.next())if(H=H.value,H.value==="http://youtube.com/yt/2012/10/10"){N=H.name.split(":")[1];break b}}N=""}p.W=N;p.isLive=p.a$<Infinity&&p.isLivePlayback;p.UY= Number(RZ(V,p.W+":earliestMediaSequence"))||0;if(N=Date.parse(NFa(RZ(V,p.W+":mpdResponseTime"))))p.Vn=((0,g.Ip)()-N)/1E3;p.isLive&&V.getElementsByTagName("SegmentTimeline").length<=0||g.oo(V.getElementsByTagName("Period"),p.oGY,p);p.state=2;p.publish("loaded");LLH(p)}return p}).Rz(function(V){if(V instanceof b1){var N=V.xhr; p.zI=N.status}p.state=3;p.publish("loaderror");return fJ(N)})}; WL1=function(p,C,V){return gP9(new hz(p,C,V),p)}; cb=function(p){return p.isLive&&(0,g.Ip)()-p.Y_>=p.a$}; QlS=function(p){p.Y&&p.Y.stop()}; LLH=function(p){var C=p.a$;isFinite(C)&&(cb(p)?p.refresh():(C=Math.max(0,p.Y_+C-(0,g.Ip)()),p.Y||(p.Y=new g.N8(p.refresh,C,p),g.R(p,p.Y)),p.Y.start(C)))}; rVS=function(p){p=p.T;for(var C in p){var V=p[C].index;if(V.isLoaded())return V.Ha()+1}return 0}; TF=function(p){return p.YM?p.YM-(p.D||p.timestampOffset):0}; M6=function(p){return p.vr?p.vr-(p.D||p.timestampOffset):0}; Jz=function(p){if(!isNaN(p.Sa))return p.Sa;var C=p.T,V;for(V in C){var N=C[V].index;if(N.isLoaded()&&!Xz(C[V].info.mimeType)){C=0;for(V=N.V6();V<=N.Ha();V++)C+=N.getDuration(V);C/=N.Fp();C=Math.round(C/.5)*.5;N.Fp()>10&&(p.Sa=C);return C}if(p.isLive&&(N=C[V],N.Ym))return N.Ym}return NaN}; BFY=function(p,C){p=rcH(p.T,function(N){return N.index.isLoaded()}); if(!p)return NaN;p=p.index;var V=p.tU(C);return p.getStartTime(V)===C?C:V<p.Ha()?p.getStartTime(V+1):NaN}; GTy=function(p,C){if(!p.T["0"]){var V=new WB("0","fakesb",{video:new wO(0,0,0,void 0,void 0,"auto")});p.T["0"]=C?new zn(new g.v1("http://www.youtube.com/videoplayback"),V,"fake"):new VM(new g.v1("http://www.youtube.com/videoplayback"),V,new D0(0,0),new D0(0,0))}}; m6=function(p){if(p.isManifestless)for(var C in p.T)p.T[C].index.segments=[]}; vb=function(p,C,V){for(var N in p.T){var H=Xz(p.T[N].info.mimeType)||p.T[N].info.K9();if(V===H&&(H=p.T[N].index)!=null){var X=$E(H,C);X>=0&&H.segments.splice(X,1)}}}; pPL=function(p){for(var C in p.T)Xz(p.T[C].info.mimeType)||h4L(p.T[C].index,Infinity)}; F1=function(p,C,V){for(var N in p.T){var H=p.T[N].index,X=C,d=V;H.MO&&(X&&(H.J8=Math.max(H.J8,X)),d&&(H.x5=Math.max(H.x5||0,d)))}V&&(p.b_=V/1E3)}; Cns=function(p){p.vr=0;p.YM=0;p.qW=0}; SO=function(p){return p.R$&&p.isManifestless?p.isLiveHeadPlayable:p.isLive}; s6=function(p,C,V){Kb===null&&(Kb=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(fQe&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Kb||V!=="9"&&V!=="("?Kb||V!=="9h"&&V!=="(h"||(p='video/webm; codecs="vp9.2"'):p='video/webm; codecs="vp9"',p;if(!Kb&&!D8||p!=='video/webm; codecs="vp9"'&&p!=='video/webm; codecs="vp9.2"')return p; V="00";var N="08",H="01",X="01",d="01";p==='video/webm; codecs="vp9.2"'&&(V="02",N="10",C.primaries==="bt2020"&&(d=H="09"),C.C==="smpte2084"&&(X="16"),C.C==="arib-std-b67"&&(X="18"));return'video/webm; codecs="'+["vp09",V,"51",N,"01",H,X,d,"00"].join(".")+'"'}; Z8=function(p,C,V){p=""+p+(C>49?"p60":C>32?"p48":"");C=RH()[p];if(C!=null&&C>0)return C;C=uo.get(p);if(C!=null&&C>0)return C;V=V==null?void 0:V.get(p);return V!=null&&V>0?V:8192}; jd9=function(p){this.I$=p;this.VZ=this.Oi=this.Ga=this.W=this.S=this.b_=this.Wc=this.UY=this.sY=!1;this.FO=this.I$.G("html5_disable_aac_preference");this.D=this.Y=0;this.qo=!1;this.Vn=!0;this.Qn=!1;this.Tp=0;this.Wr=!1;this.wy=Infinity;this.dG=!1;this.va=!0;this.R$=this.Y_=!1;this.T={};this.ER=this.C=this.J=!1;this.vr=0;this.qW=this.disableAv1=this.kM=this.QZ=this.X$=!1;this.Q$=this.I$.Gk();this.Hc=this.I$.experiments.OY("html5_enable_vp9_fairplay");this.cV=this.I$.G("html5_force_av1_for_testing"); this.KS=g.mi(this.I$.experiments,"html5_av1_ordinal_cap");this.kt=this.I$.G("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.RN=this.I$.G("html5_account_onesie_format_selection_during_format_filter");this.F$=g.mi(this.I$.experiments,"html5_max_byterate");this.Z=this.I$.G("html5_sunset_aac_high_codec_family");this.Sa=this.I$.G("html5_sunset_aac_high_codec_family");this.YM=this.I$.G("html5_enable_iamf_audio");this.I6=this.I$.experiments.OY("html5_allow_capability_merge");this.o6=this.I$.G("html5_prefer_vp9_sfr")}; Bts=function(p){if(p.UY)return["f"];var C="9h 9 h 8 (h ( H *".split(" ");p.Wr&&(C.unshift("1"),C.unshift("1h"));p.Oi&&C.unshift("h");p.a$&&(C=(VBL[p.a$]||[p.a$]).concat(C));return C}; $zH=function(p){var C=["o","a","A"];p.vr===1&&(p.b_&&(C=["m","M"].concat(C)),p.S&&(C=["mac3","MAC3"].concat(C)),p.W&&(C=["meac3","MEAC3"].concat(C)),p.YM&&(C=["i","I"].concat(C)));p.sY&&(C=["so","sa"].concat(C));!p.VZ||p.Ga||p.V||p.FO||C.unshift("a");p.Wc&&!p.Z&&C.unshift("ah");p.V&&(C=(VBL[p.V]||[p.V]).concat(C));return C}; U6=function(p,C,V,N){C=C===void 0?{}:C;if(N===void 0?0:N)return C.disabled=1,0;if(Je(p.W,mw.AV1_CODECS)&&Je(p.W,mw.HEIGHT)&&Je(p.W,mw.BITRATE))return C.isCapabilityUsable=1,8192;try{var H=OFu();if(H)return C.localPref=H}catch(a){}N=1080;H=navigator.hardwareConcurrency;H<=2&&(N=480);C.coreCount=H;if(H=g.mi(p.experiments,"html5_default_av1_threshold"))N=C["default"]=H;!p.G("html5_disable_av1_arm_check")&&DZu()&&(C.isArm=1,N=240);if(p=p.W.b_)C.mcap=p,N=Math.max(N,p);if(V){var X,d;if(p=(X=V.videoInfos.find(function(a){return BB(a)}))== null?void 0:(d=X.C)==null?void 0:d.powerEfficient)N=8192,C.isEfficient=1; V=V.videoInfos[0].video;X=Math.min(Z8("1",V.fps),Z8("1",30));C.perfCap=X;N=Math.min(N,X);V.isHdr()&&!p&&(C.hdr=1,N*=.75)}else V=Z8("1",30),C.perfCap30=V,N=Math.min(N,V),V=Z8("1",60),C.perfCap60=V,N=Math.min(N,V);return C.av1Threshold=N}; fb=function(p,C,V,N){this.flavor=p;this.keySystem=C;this.C=V;this.experiments=N;this.T={};this.UY=this.keySystemAccess=null;this.m0=this.hI=-1;this.td=null;this.V=!!N&&N.OY("edge_nonprefixed_eme");N&&N.OY("html5_enable_vp9_fairplay")}; yM=function(p){return p.V?!1:!p.keySystemAccess&&!!O6()&&p.keySystem==="com.microsoft.playready"}; q6=function(p){return p.keySystem==="com.microsoft.playready"}; I5=function(p){return!p.keySystemAccess&&!!O6()&&p.keySystem==="com.apple.fps.1_0"}; bo=function(p){return p.keySystem==="com.youtube.fairplay"}; Az=function(p){return p.keySystem==="com.youtube.fairplay.sbdl"}; g.o5=function(p){return p.flavor==="fairplay"}; O6=function(){var p=window,C=p.MSMediaKeys;GQ()&&!C&&(C=p.WebKitMediaKeys);return C&&C.isTypeSupported?C:null}; x$=function(p){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.kZ&&!g.Qg())return q8("45");if(g.G4||g.vF)return p.OY("edge_nonprefixed_eme");if(g.k$)return q8("47");if(g.D1){if(p.OY("html5_enable_safari_fairplay"))return!1;if(p=g.mi(p,"html5_safari_desktop_eme_min_version"))return q8(p)}return!0}; N2y=function(p,C,V,N){var H=rm(),X=(V=H||V&&GQ())?["com.youtube.fairplay"]:["com.widevine.alpha"];C&&X.unshift("com.youtube.widevine.l3");H&&N&&X.unshift("com.youtube.fairplay.sbdl");return V?X:p?[].concat(g.K(X),g.K(Y$.playready)):[].concat(g.K(Y$.playready),g.K(X))}; R5=function(){this.C=this.y6=0;this.T=Array.from({length:zF.length}).fill(0)}; HjQ=function(){}; XPQ=function(){this.startTimeMs=(0,g.Ip)();this.T=!1}; dBe=function(){this.T=new HjQ}; iju=function(p,C,V,N){N=N===void 0?1:N;V>=0&&(C in p.T||(p.T[C]=new R5),p.T[C].vI(V,N))}; hOY=function(p,C,V,N,H){var X=(0,g.Ip)(),d=H?H(C):void 0,a;H=(a=d==null?void 0:d.y6)!=null?a:1;if(H!==0){var E;a=(E=d==null?void 0:d.profile)!=null?E:V;iju(p,a,X-N,H)}return C}; nb=function(p,C,V,N,H){if(C&&typeof C==="object"){var X=function(d){return hOY(p,d,V,N,H)}; if(aH(C))return C.then(X);if(sdQ(C))return Tv(C,X)}return hOY(p,C,V,N,H)}; adj=function(){}; eO=function(p,C,V,N,H){N=N===void 0?!1:N;g.Y.call(this);this.I$=C;this.useCobaltWidevine=N;this.k_=H;this.C=[];this.V={};this.T={};this.callback=null;this.W=!1;this.S=[];this.initialize(p,!V)}; ldV=function(p,C){p.callback=C;p.S=[];x$(p.I$.experiments)?Pb(p):ErQ(p)}; Pb=function(p){if(!p.fS())if(p.C.length===0)p.callback(p.S);else{var C=p.C[0],V=p.V[C],N=tB1(p,V);if(wB&&wB.keySystem===C&&wB.O7e===JSON.stringify(N))p.k_("remksa",{re:!0}),cMj(p,V,wB.keySystemAccess);else{var H,X;p.k_("remksa",{re:!1,ok:(X=(H=wB)==null?void 0:H.keySystem)!=null?X:""});wB=void 0;($$.isActive()?$$.zz("emereq",function(){return navigator.requestMediaKeySystemAccess(C,N)}):navigator.requestMediaKeySystemAccess(C,N)).then(FF(function(d){cMj(p,V,d,N)}),FF(function(){p.W=!p.W&&p.V[p.C[0]].flavor=== "widevine"; p.W||p.C.shift();Pb(p)}))}}}; cMj=function(p,C,V,N){if(!p.fS()){N&&(wB={keySystem:C.keySystem,keySystemAccess:V,O7e:JSON.stringify(N)});C.keySystemAccess=V;if(q6(C)){V=An();N=g.F(Object.keys(p.T[C.flavor]));for(var H=N.next();!H.done;H=N.next())H=H.value,C.T[H]=!!V.canPlayType(H)}else{V=C.keySystemAccess.getConfiguration();if(V.audioCapabilities)for(N=g.F(V.audioCapabilities),H=N.next();!H.done;H=N.next())T21(p,C,H.value);if(V.videoCapabilities)for(V=g.F(V.videoCapabilities),N=V.next();!N.done;N=V.next())T21(p,C,N.value)}p.S.push(C); p.useCobaltWidevine||p.G("html5_enable_vp9_fairplay")&&Az(C)?(p.C.shift(),Pb(p)):p.callback(p.S)}}; T21=function(p,C,V){p.G("log_robustness_for_drm")?C.T[V.contentType]=V.robustness||!0:C.T[V.contentType]=!0}; tB1=function(p,C){var V={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(p.G("html5_enable_vp9_fairplay")&&bo(C))return V.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),V.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[V];q6(C)&&(V.initDataTypes=["keyids","cenc"]);for(var N=g.F(Object.keys(p.T[C.flavor])),H=N.next();!H.done;H=N.next()){H=H.value;var X=H.indexOf("audio/")===0,d=X?V.audioCapabilities:V.videoCapabilities;C.flavor!== "widevine"||p.W?d.push({contentType:H}):X?d.push({contentType:H,robustness:"SW_SECURE_CRYPTO"}):(g.kZ&&g.gm("windows nt")&&!p.G("html5_drm_enable_moho")||d.push({contentType:H,robustness:"HW_SECURE_ALL"}),X=H,p.G("html5_enable_cobalt_experimental_vp9_decoder")&&H.includes("vp09")&&(X=H+"; experimental=allowed"),d.push({contentType:X,robustness:"SW_SECURE_DECODE"}),Lb(p.I$)==="MWEB"&&(Hw()||Wd())&&(p.k_("swcrypto",{}),d.push({contentType:H,robustness:"SW_SECURE_CRYPTO"})))}return[V]}; ErQ=function(p){if(O6()&&(g.D1||CK&&p.G("html5_drm_support_ios_mweb")))p.S.push(new fb("fairplay","com.apple.fps.1_0","",p.I$.experiments));else{var C=MBS(),V=g.L0(p.C,function(N){var H=p.V[N],X=!1,d=!1,a;for(a in p.T[H.flavor])C(a,N)&&(H.T[a]=!0,X=X||a.indexOf("audio/")===0,d=d||a.indexOf("video/")===0);return X&&d}); V&&p.S.push(p.V[V]);p.C=[]}p.callback(p.S)}; MBS=function(){var p=O6();if(p){var C=p.isTypeSupported;return function(N,H){return C(H,N)}}var V=An(); return V&&(V.addKey||V.webkitAddKey)?function(N,H){return!!V.canPlayType(N,H)}:function(){return!1}}; JMH=function(p){this.experiments=p;this.T=2048;this.S=0;this.sY=(this.D=this.G("html5_streaming_resilience"))?.5:.25;var C=C===void 0?0:C;this.V=g.mi(this.experiments,"html5_media_time_weight_prop")||C;this.b_=g.mi(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.Z=(this.W=this.experiments.OY("html5_consider_end_stall"))&&gB;this.C=this.experiments.OY("html5_measure_max_progress_handling");this.J=this.G("html5_treat_requests_pre_elbow_as_metadata");this.Y=this.G("html5_media_time_weight")|| !!this.V;this.a$=g.mi(this.experiments,"html5_streaming_fallback_byterate");this.G("html5_sabr_live_audio_early_return_fix")&&gB&&(this.T=65536)}; mBV=function(p,C){this.T=void 0;this.experimentIds=p?p.split(","):[];this.flags=X5(C||"","&");p={};C=g.F(this.experimentIds);for(var V=C.next();!V.done;V=C.next())p[V.value]=!0;this.experiments=p}; g.mi=function(p,C){p=p.flags[C];JSON.stringify(p);return Number(p)||0}; Wb=function(p,C){return(p=p.flags[C])?p.toString():""}; vry=function(p){if(p=p.flags.html5_web_po_experiment_ids)if(p=p.replace(/\[ *(.*?) *\]/,"$1"))return p.split(",").map(Number);return[]}; F$9=function(p){if(p.T)return p.T;if(p.experimentIds.length<=1)return p.T=p.experimentIds,p.T;var C=[].concat(g.K(p.experimentIds)).map(function(N){return Number(N)}); C.sort();for(var V=C.length-1;V>0;--V)C[V]-=C[V-1];p.T=C.map(function(N){return N.toString()}); p.T.unshift("v1");return p.T}; K$L=function(p){return ST1.then(p)}; QM=function(p,C,V){this.experiments=p;this.Sa=C;this.Wr=V===void 0?!1:V;this.a$=!!g.zV("cast.receiver.platform.canDisplayType");this.J={};this.D=!1;this.C=new Map;this.Y=!0;this.V=this.S=!1;this.T=new Map;this.b_=0;this.sY=this.experiments.OY("html5_disable_vp9_encrypted");p=g.zV("cast.receiver.platform.getValue");this.Vn=g.mi(this.experiments,"html5_kaios_max_resolution");this.W=!this.a$&&p&&p("max-video-resolution-vpx")||null;DBs(this)}; CGV=function(p,C,V){V=V===void 0?1:V;var N=C.itag;if(N==="0")return!0;var H=C.mimeType;if(C.Ft()&&rm()&&p.experiments.OY("html5_appletv_disable_vp9"))return"dwebm";if(BB(C)&&p.D)return"dav1";if(C.video&&(C.video.isHdr()||C.video.primaries==="bt2020")&&!(Je(p,mw.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(N==="338"&&!(g.kZ?q8(53):g.k$&&q8(64)))return"dopus"; var X;if(p.Vn&&rB&&((X=C.video)==null?void 0:X.T)>p.Vn)return"kaios";X=V;X=X===void 0?1:X;V={};C.video&&(C.video.width&&(V[mw.WIDTH.name]=C.video.width),C.video.height&&(V[mw.HEIGHT.name]=C.video.height),C.video.fps&&(V[mw.FRAMERATE.name]=C.video.fps*X),C.video.C&&(V[mw.EOTF.name]=C.video.C),C.F$&&(V[mw.BITRATE.name]=C.F$*8*X),C.o$==="("&&(V[mw.CRYPTOBLOCKFORMAT.name]="subsample"),C.video.projectionType==="EQUIRECTANGULAR"||C.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||C.video.projectionType=== "MESH")&&(V[mw.DECODETOTEXTURE.name]="true");C.audio&&C.audio.numChannels&&(V[mw.CHANNELS.name]=C.audio.numChannels);p.S&&Qu(C)&&(V[mw.EXPERIMENTAL.name]="allowed");X=g.F(Object.keys(mw));for(var d=X.next();!d.done;d=X.next()){d=mw[d.value];var a;if(a=V[d.name])if(a=!(d===mw.EOTF&&C.mimeType.indexOf("vp09.02")>0)){a=d;var E=C;a=!(p.experiments.OY("html5_ignore_h264_framerate_cap")&&a===mw.FRAMERATE&&cOS(E))}if(a)if(Je(p,d))if(p.W){if(p.W[d.name]<V[d.name])return d.name}else H=H+"; "+d.name+"="+V[d.name]; else if(rO(C)&&d===mw.EOTF)return"dvp92"}p.a$&&C.video&&C.video.T>1080&&C.vV&&(H+="; hdcp=2.2");return N==="227"?"hqcenc":N!=="585"&&N!=="588"&&N!=="583"&&N!=="586"&&N!=="584"&&N!=="587"&&N!=="591"&&N!=="592"||p.experiments.OY("html5_enable_new_hvc_enc")?p.isTypeSupported(H)?!0:"tpus":"newhvc"}; Bb=function(){var p=Wd()&&!q8(29),C=g.gm("google tv")&&g.gm("chrome")&&!q8(30);return p||C?!1:v0j()}; ugX=function(p,C,V){var N=480;C=g.F(C);for(var H=C.next();!H.done;H=C.next()){H=H.value;var X=H.video.T;X<=1080&&X>N&&CGV(p,H,V)===!0&&(N=X)}return N}; g.GF=function(p,C){C=C===void 0?!1:C;return Bb()&&p.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!C&&p.canPlayType(An(),"application/x-mpegURL")?!0:!1}; UBV=function(p){Zje(function(){for(var C=g.F(Object.keys(mw)),V=C.next();!V.done;V=C.next())Je(p,mw[V.value])})}; Je=function(p,C){C.name in p.J||(p.J[C.name]=fdV(p,C));return p.J[C.name]}; fdV=function(p,C){if(p.W)return!!p.W[C.name];if(C===mw.BITRATE&&p.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!p.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(C===mw.AV1_CODECS)return p.isTypeSupported("video/mp4; codecs="+C.valid)&&!p.isTypeSupported("video/mp4; codecs="+C.Lk);if(C.video){var V='video/webm; codecs="vp9"';p.isTypeSupported(V)||(V='video/mp4; codecs="avc1.4d401e"')}else V='audio/webm; codecs="opus"', p.isTypeSupported(V)||(V='audio/mp4; codecs="mp4a.40.2"');return p.isTypeSupported(V+"; "+C.name+"="+C.valid)&&!p.isTypeSupported(V+"; "+C.name+"="+C.Lk)}; OjQ=function(p){p.S||(p.S=!0,pI(p))}; pI=function(p){p.V=!0;p.experiments.OY("html5_ssap_update_capabilities_on_change")&&yMy(p)}; qTy=function(p,C){var V=0;p.C.has(C)&&(V=p.C.get(C).Eb);p.C.set(C,{Eb:V+1,pB:Math.pow(2,V+1)});pI(p)}; te=function(p){for(var C=[],V=g.F(p.T.keys()),N=V.next();!N.done;N=V.next()){N=N.value;var H=p.T.get(N);C.push(N+"_"+H.maxWidth+"_"+H.maxHeight)}return C.join(".")}; yMy=function(p){p.Z=[];for(var C=g.F(p.T.values()),V=C.next();!V.done;V=C.next()){V=V.value;var N=V.o$;p.experiments.OY("html5_ssap_force_mp4_aac")&&N!=="a"&&N!=="h"||p.C.has(N)||(!p.D||N!=="1"&&N!=="1h")&&p.Z.push(V)}}; Lia=function(p,C){for(var V=new Map,N=g.F(p.T.keys()),H=N.next();!H.done;H=N.next()){H=H.value;var X=H.split("_")[0];C.has(X)||V.set(H,p.T.get(H))}p.T=V}; Wiv=function(p,C,V){var N,H=((N=V.video)==null?void 0:N.fps)||0;N=C+"_"+H;var X=!!V.audio,d={itag:V.itag,o$:C,DQ:X};if(X)d.numChannels=V.audio.numChannels;else{var a=V.video;d.maxWidth=a==null?void 0:a.width;d.maxHeight=a==null?void 0:a.height;d.maxFramerate=H;Je(p,mw.BITRATE)&&(d.maxBitrateBps=V.F$*8);d.R2=a==null?void 0:a.isHdr()}a=p.T.get(N);a?X||(V=Math.max(a.maxWidth||0,a.maxHeight||0)>Math.max(d.maxWidth||0,d.maxHeight||0)?a:d,C={itag:V.itag,o$:C,DQ:X,maxWidth:Math.max(a.maxWidth||0,d.maxWidth|| 0),maxHeight:Math.max(a.maxHeight||0,d.maxHeight||0),maxFramerate:H,R2:V.R2},Je(p,mw.BITRATE)&&(C.maxBitrateBps=V.maxBitrateBps),p.T.set(N,C)):p.T.set(N,d)}; Q3j=function(p,C,V){var N,H=((N=V.video)==null?void 0:N.fps)||0;N=C+"_"+H;var X=!!V.audio,d=p.T.get(N);a:{var a=p.T.get(N),E=!!V.audio;if(a){if(E){var l=!1;break a}var t;if(!E&&((l=V.video)==null?0:l.height)&&a.maxHeight&&a.maxHeight>=((t=V.video)==null?void 0:t.height)){l=!1;break a}}l=!0}l&&(l=V.itag,C=d?d:{itag:l,o$:C,DQ:X},X?C.numChannels=V.audio.numChannels:(X=V.video,C.maxWidth=X==null?void 0:X.width,C.maxHeight=X==null?void 0:X.height,C.maxFramerate=H,Je(p,mw.BITRATE)&&(C.maxBitrateBps=V.F$* 8),C.R2=X==null?void 0:X.isHdr()),p.T.set(N,C))}; DBs=function(p){var C;(C=navigator.mediaCapabilities)!=null&&C.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(V){V.smooth&&V.powerEfficient&&(p.b_=2160)})}; CI=function(){g.ca.call(this);this.items={}}; jH=function(){g.OF.apply(this,arguments)}; Vj=function(){g.yi.apply(this,arguments)}; IdH=function(p,C,V){this.encryptedClientKey=C;this.W=V;this.T=new Uint8Array(p.buffer,0,16);this.V=new Uint8Array(p.buffer,16)}; bj1=function(p){p.C||(p.C=new jH(p.T));return p.C}; Nn=function(p){try{return Fv(p)}catch(C){return null}}; AM9=function(p,C){if(!C&&p)try{C=JSON.parse(p)}catch(H){}if(C){p=C.clientKey?Nn(C.clientKey):null;var V=C.encryptedClientKey?Nn(C.encryptedClientKey):null,N=C.keyExpiresInSeconds?Number(C.keyExpiresInSeconds)*1E3+(0,g.Ip)():null;p&&V&&N&&(this.T=new IdH(p,V,N));C.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Nn(C.onesieUstreamerConfig)||void 0);this.baseUrl=C.baseUrl}}; Xs=function(){this.data=new Uint8Array(2048);this.pos=0;Hg||(Hg=gc("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; dG=function(p){this.T=this.C=0;this.alpha=Math.exp(Math.log(.5)/p)}; iL=function(p){this.C=p===void 0?15:p;this.values=new Float64Array(176);this.T=new Float64Array(11);this.V=new Float64Array(16)}; hR=function(p,C,V,N){V=V===void 0?.5:V;N=N===void 0?0:N;this.resolution=C;this.C=0;this.V=!1;this.d2=!0;this.T=Math.round(p*this.resolution);this.values=Array(this.T);for(p=0;p<this.T;p++)this.values[p]=Infinity;this.W=or1(this);this.S=V;this.Y=N}; or1=function(p){for(var C=Array(p.T),V=0;V<p.T;V++)C[V]=V;return C}; se=function(p,C,V){g.Y.call(this);this.policy=p;this.C=C;this.lJ=V;this.sY=this.Y_=0;this.b_=-1;this.Vn=this.W=0;this.a$=!1;this.interruptions=[];this.S=[{stamp:0,net:0,max:0}];this.vr=this.Y=(0,g.Ip)();this.J=new hR(4,1,.6,.4);this.Sa=new hR(4,1,.6,.4);this.D=new hR(20,1,.5,.4);p.b_?this.V=new iL(p.T):p.C?this.V=new dG(p.T):this.V=new hR(p.T,20,.5,.4);this.Wr=new hR(5,1,.25);this.Z=new hR(30,1,.5);p=g.zW("yt-player-bandwidth")||{};C=this.policy.V;if(p.byterate>0)C=p.byterate,this.a$=!0;else{var N; V=(((N=navigator.connection)==null?void 0:N.downlink)||0)*64*1024;V>0&&(C=V,this.a$=!0)}this.V.N3(this.policy.Y,C);p.delay>0&&this.J.N3(1,Math.min(p.delay,2));p.stall>0&&this.D.N3(1,p.stall);p.init>0&&(this.vr=Math.min(p.init,this.vr));p.interruptions&&(this.S=this.S.concat(p.interruptions),this.S.length>16&&this.S.pop());this.b_=(0,g.Ip)();this.policy.D>0&&(this.Ga=new g.N8(this.R$,this.policy.D,this),g.R(this,this.Ga),this.Ga.start())}; ag=function(p,C,V,N){p.V.N3(N===void 0?C:N,V/C);p.Y=(0,g.Ip)()}; k$V=function(p){p.W||(p.W=(0,g.Ip)());p.policy.Z&&(p.Y=(0,g.Ip)())}; xBe=function(p,C){if(p.W){var V=C-p.W;if(V>1E3){var N=p.interruptions;N.push(Math.ceil(V));N.sort(function(H,X){return X-H}); N.length>16&&N.pop()}p.Vn+=V}p.W=C}; Ee=function(p,C,V,N,H,X){X=X===void 0?!1:X;p.Wr.N3(C,V/C);p.Y=(0,g.Ip)();H||p.Z.N3(1,C-N);X||(p.W=0);p.b_>-1&&(0,g.Ip)()-p.b_>3E4&&YTa(p)}; lL=function(p,C,V){C=Math.max(C,p.C.T);p.D.N3(1,V/C)}; tR=function(p){p=p.J.Kd()+p.Sa.Kd()||0;p=isNaN(p)?.5:p;return p=Math.min(p,5)}; cg=function(p,C,V){isNaN(V)||(p.sY+=V);isNaN(C)||(p.Y_+=C)}; TM=function(p){p=p.V.Kd();return p>0?p:1}; Mn=function(p,C,V){C=C===void 0?!1:C;V=V===void 0?1048576:V;var N=TM(p);N=1/((p.D.Kd()||0)*p.policy.a$+1/N);var H=p.Wr.Kd();H=H>0?H:1;var X=Math.max(N,H);p.policy.W>0&&H<N&&(X=Math.min(p.policy.W,1),X=(1-X)*N+X*H);if(!C)return X;C=1E-9+tR(p);V=X*Math.min(1,V/(X*C));p.policy.S||(p=((p.Z.percentile(.98)||0)-1)/2,p=Math.max(0,Math.min(1,p)),V*=1-.5*p);return V}; zOS=function(p){var C={delay:tR(p),stall:p.D.Kd()||0,byterate:TM(p),init:p.vr},V=p.S[0];V.stamp=Math.round(p.Y/36E5)*36E5;V.net=Math.ceil(p.Vn);V.max=p.interruptions[0]||0;C.interruptions=p.S;return C}; YTa=function(p){g.Yl("yt-player-bandwidth",zOS(p),2592E3);p.b_=(0,g.Ip)();p.a$=!0}; JR=function(p){return(0,g.Ip)()-p.Y>=4E3}; ROj=function(p){this.experiments=p;this.T=17;this.V=13E4;this.Y=.5;this.C=!1;this.b_=this.G("html5_use_histogram_for_bandwidth");this.S=!1;this.W=g.mi(this.experiments,"html5_auxiliary_estimate_weight");this.a$=g.mi(this.experiments,"html5_stall_factor")||1;this.D=g.mi(this.experiments,"html5_check_for_idle_network_interval_ms");this.J=this.experiments.OY("html5_trigger_loader_when_idle_network");this.Z=this.experiments.OY("html5_sabr_fetch_on_idle_network_preloaded_players")}; eO1=function(p,C){p=p===void 0?{}:p;C=C===void 0?{}:C;g.Y.call(this);var V=this;this.values=p;this.uq=C;this.C={};this.V=this.T=0;this.S=new g.N8(function(){nru(V)},1E4); g.R(this,this.S)}; m4=function(p,C){Pnj(p,C);return p.values[C]&&p.uq[C]?p.values[C]/Math.pow(2,p.T/p.uq[C]):0}; Pnj=function(p,C){p.values[C]||(C=uwX(),p.values=C.values||{},p.uq=C.halfLives||{},p.C=C.values?Object.assign({},C.values):{})}; nru=function(p){var C=uwX();if(C.values){C=C.values;for(var V={},N=g.F(Object.keys(p.values)),H=N.next();!H.done;H=N.next())H=H.value,C[H]&&p.C[H]&&(p.values[H]+=C[H]-p.C[H]),V[H]=m4(p,H);p.C=V}C=p.uq;V={};V.values=p.C;V.halfLives=C;g.Yl("yt-player-memory",V,2592E3)}; xS=function(p,C,V,N,H){g.Y.call(this);this.webPlayerContextConfig=C;this.DM=N;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Nw=this.YM=this.Qn=this.AX=this.userDisplayName=this.userDisplayImage=this.YN="";this.T={};this.wy={};this.controlsType="0";this.I6=NaN;this.Wc=!1;this.d6=(0,g.Ip)();this.Q$=0;this.BI=this.sx=!1;this.JW=!0;this.preferGapless=this.Ov=this.hE=this.V=this.JB=this.W1=!1;this.i8=[];this.Um=!0;this.jZ=!1;p=p?g.zh(p):{};C&&C.csiPageType&&(this.csiPageType=C.csiPageType); C&&C.csiServiceName&&(this.csiServiceName=C.csiServiceName);C&&C.preferGapless&&(this.preferGapless=C.preferGapless);this.experiments=new mBV(C?C.serializedExperimentIds:p.fexp,C?C.serializedExperimentFlags:p.fflags);this.forcedExperiments=C?C.serializedForcedExperimentIds:a_("",p.forced_experiments)||void 0;this.cspNonce=(C==null?0:C.cspNonce)?C.cspNonce:a_("",p.csp_nonce);this.G("web_player_deprecated_uvr_killswitch");try{var X=document.location.toString()}catch(P){X=""}this.iW=X;this.ancestorOrigins= (N=window.location.ancestorOrigins)?Array.from(N):[];this.S=iO(!1,C?C.isEmbed:p.is_embed);if(C&&C.device){if(N=C.device,N.androidOsExperience&&(this.T.caoe=""+N.androidOsExperience),N.androidPlayServicesVersion&&(this.T.capsv=""+N.androidPlayServicesVersion),N.brand&&(this.T.cbrand=N.brand),N.browser&&(this.T.cbr=N.browser),N.browserVersion&&(this.T.cbrver=N.browserVersion),N.cobaltReleaseVehicle&&(this.T.ccrv=""+N.cobaltReleaseVehicle),this.T.c=N.interfaceName||"WEB",this.T.cver=N.interfaceVersion|| "html5",N.interfaceTheme&&(this.T.ctheme=N.interfaceTheme),this.T.cplayer=N.interfacePlayerType||"UNIPLAYER",N.model&&(this.T.cmodel=N.model),N.network&&(this.T.cnetwork=N.network),N.os&&(this.T.cos=N.os),N.osVersion&&(this.T.cosver=N.osVersion),N.platform&&(this.T.cplatform=N.platform),X=Wb(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),X==="all"||X==="once")N.chipset&&(this.wy.cchip=N.chipset),N.cobaltAppVersion&&(this.wy.ccappver=N.cobaltAppVersion),N.firmwareVersion&&(this.wy.cfrmver= N.firmwareVersion),N.deviceYear&&(this.wy.crqyear=N.deviceYear)}else this.T.c=p.c||"web",this.T.cver=p.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=C?this.S||wPj(this)&&C.loaderUrl?C.loaderUrl||"":this.iW:this.S||wPj(this)&&p.loaderUrl?a_("",p.loaderUrl):this.iW;this.S&&g.YH("yt.embedded_player.embed_url",this.loaderUrl);this.D=No(this.loaderUrl,$BQ);N=this.loaderUrl;var d=d===void 0?!1:d;this.Tz=V6(No(N,L$H),N,d,"Trusted Ad Domain URL");this.va=iO(!1,p.privembed);this.protocol=this.iW.indexOf("http:")=== 0?"http":"https";this.Vn=H8((C?C.customBaseYoutubeUrl:p.BASE_YT_URL)||"")||H8(this.iW)||this.protocol+"://www.youtube.com/";d=C?C.eventLabel:p.el;N="detailpage";d==="adunit"?N=this.S?"embedded":"detailpage":d==="embedded"||this.D?(N=hm(N,d,gru),d!=="shortsaudiopivot"||this.G("web_player_shorts_audio_pivot_event_label")||(N="detailpage")):d&&(N="embedded");this.Wr=N;oQH();d=null;N=C?C.playerStyle:p.ps;X=g.W5(W$L,N);!N||X&&!this.D||(d=N);this.playerStyle=d;this.Y=g.W5(W$L,this.playerStyle);this.houseBrandUserStatus= C==null?void 0:C.houseBrandUserStatus;this.b_=this.Y&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.MR=!this.b_;this.Ga=iO(!1,p.disableplaybackui);this.disablePaidContentOverlay=iO(!1,C==null?void 0:C.disablePaidContentOverlay);this.disableSeek=iO(!1,C==null?void 0:C.disableSeek);this.enableSpeedOptions=(C==null?void 0:C.enableSpeedOptions)||(An().defaultPlaybackRate?vg||g.N5||rB?g.k$&&q8("20")||g.kZ&&q8("4")||g.Fs&&q8("11")||pK():!(g.Fs&&!g.gm("chrome")||vg||g.gm("android")||g.gm("silk")): !1);this.rj=iO(!1,p.enable_faster_speeds);var a;this.supportsVarispeedExtendedFeatures=(a=C==null?void 0:C.supportsVarispeedExtendedFeatures)!=null?a:!1;this.C=iO(this.playerStyle==="blazer",p.is_html5_mobile_device||C&&C.isMobileDevice);this.R$=Vc()||Hw();this.cP=this.G("mweb_allow_background_playback")?!1:this.C&&!this.Y;this.Y_=zx();this.lL=g.SH;var E;this.td=!!(C==null?0:(E=C.embedsHostFlags)==null?0:E.optOutApiDeprecation);var l;this.Vz=!!(C==null?0:(l=C.embedsHostFlags)==null?0:l.allowPfpImaIntegration); this.eE=this.G("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var t;C?C.hideInfo!==void 0&&(t=!C.hideInfo):t=p.showinfo;this.lF=g.KI(this)&&!this.td||iO(!DW(this)&&!uL(this)&&!this.Y,t);this.Uh=C?!!C.mobileIphoneSupportsInlinePlayback:iO(!1,p.playsinline);a=this.C&&ZW&&Ue!=null&&Ue>0&&Ue<=2.3;E=C?C.useNativeControls:p.use_native_controls;this.J=g.KI(this)&&this.C;l=this.C&&!this.J;E=g.fI(this)||!a&&iO(l,E)?"3":"1";this.disableOrganicUi=!(C==null||!C.disableOrganicUi);l=C?C.controlsType: p.controls;this.controlsType=this.disableOrganicUi?"0":l!=="0"&&l!==0?E:"0";this.JX=this.C;this.color=hm("red",C?C.progressBarColor:p.color,Qdy);this.vK=this.controlsType==="3";this.VZ=!this.S;this.Om=(E=!this.VZ&&!uL(this)&&!this.b_&&!this.Y&&!DW(this))&&!this.vK&&this.controlsType==="1";this.FO=g.Oe(this)&&E&&this.controlsType==="0"&&!this.Om&&!(C==null?0:C.embedsEnableEmc3ds);this.oa=this.BK=a;this.RN=(this.controlsType==="3"||this.C||iO(!1,p.use_media_volume))&&!this.J;this.Q1=CK&&!g.JB(601)? !1:!0;this.Ox=this.S||!1;this.X$=uL(this)?"":(this.loaderUrl||p.post_message_origin||"").substring(0,128);this.widgetReferrer=a_("",C?C.widgetReferrer:p.widget_referrer);var c;C?C.disableCastApi&&(c=!1):c=p.enablecastapi;c=!this.D||iO(!0,c);a=!0;C&&C.disableMdxCast&&(a=!1);this.Pz=this.G("enable_cast_for_web_unplugged")&&g.yj(this)&&a||g.gk(this)&&a||c&&a&&this.controlsType==="1"&&!this.C&&(uL(this)||g.Oe(this)||g.qn(this));this.QP=!!window.document.pictureInPictureEnabled||YZ();c=C?!!C.supportsAutoplayOverride: iO(!1,p.autoplayoverride);this.qn=!(this.C&&!g.KI(this))&&!g.gm("nintendo wiiu")||c;this.hg=(C?!!C.enableMutedAutoplay:iO(!1,p.mutedautoplay))&&!1;c=(uL(this)||DW(this))&&this.playerStyle==="blazer";this.BB=C?!!C.disableFullscreen:!iO(!0,p.fs);a=g.cw(g.Ig(this))&&g.KI(this);this.Hc=!this.BB&&(c||g.Sz())&&!a;this.lf=this.G("uniplayer_block_pip")&&(Wd()&&q8(58)&&!Hw()||BW);c=g.KI(this)&&!this.td;var T;C?C.disableRelatedVideos!==void 0&&(T=!C.disableRelatedVideos):T=p.rel;this.QZ=c||iO(!this.Y,T);this.Kp= iO(!1,C?C.enableContentOwnerRelatedVideos:p.co_rel);this.Z=Hw()&&Ue>0&&Ue<=4.4?"_top":"_blank";this.FT=g.qn(this);this.Of=iO(this.playerStyle==="blazer",C?C.enableCsiLogging:p.enablecsi);switch(this.playerStyle){case "blogger":T="bl";break;case "gmail":T="gm";break;case "gac":T="ga";break;case "books":T="gb";break;case "docs":case "flix":T="gd";break;case "duo":T="gu";break;case "google-live":T="gl";break;case "google-one":T="go";break;case "play":T="gp";break;case "chat":T="hc";break;case "hangouts-meet":T= "hm";break;case "photos-edu":case "picasaweb":T="pw";break;default:T="yt"}this.a$=T;this.sY=a_("",C?C.authorizedUserIndex:p.authuser);this.qW=g.KI(this)&&(this.va||!SHs()||this.R$);var M;C?C.disableWatchLater!==void 0&&(M=!C.disableWatchLater):M=p.showwatchlater;this.cV=((T=!this.qW)||!!this.sY&&T)&&iO(!this.b_,this.D?M:void 0);this.o6=C?C.isMobileDevice||!!C.disableKeyboardControls:iO(!1,p.disablekb);this.loop=iO(!1,p.loop);this.pageId=a_("",C?C.initialDelegatedSessionId:p.pageid);this.JF=iO(!0, p.canplaylive);this.qo=iO(!1,p.livemonitor);this.disableSharing=iO(this.Y,C?C.disableSharing:p.ss);(M=C&&this.G("fill_video_container_size_override_from_wpcc")?C.videoContainerOverride:p.video_container_override)?(T=M.split("x"),T.length!==2?M=null:(M=Number(T[0]),T=Number(T[1]),M=isNaN(M)||isNaN(T)||M*T<=0?null:new g.KG(M,T))):M=null;this.oi=M;this.mute=C?!!C.startMuted:iO(!1,p.mute);this.storeUserVolume=!this.mute&&iO(this.controlsType!=="0",C?C.storeUserVolume:p.store_user_volume);M=C?C.annotationsLoadPolicy: p.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:hm(void 0,M,bL);this.captionsLanguagePreference=C?C.captionsLanguagePreference||"":a_("",p.cc_lang_pref);M=hm(2,C?C.captionsLanguageLoadPolicy:p.cc_load_policy,bL);this.controlsType==="3"&&M===2&&(M=3);this.kM=M;this.ER=C?C.hl||"en_US":a_("en_US",p.hl);this.region=C?C.contentRegion||"US":a_("US",p.cr);this.hostLanguage=C?C.hostLanguage||"en":a_("en",p.host_language);this.Ic=!this.va&&Math.random()<g.mi(this.experiments,"web_player_api_logging_fraction"); this.KS=!this.va;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(C==null||!C.deviceIsAudioOnly);this.I6=sB(this.I6,p.ismb);this.MR?(M=p.vss_host||"s.youtube.com",M==="s.youtube.com"&&(M=AR(this.Vn)||"www.youtube.com")):M="video.google.com";this.jS=M;og(this,p,!0);this.vr=new CI;g.R(this,this.vr);T=C?C.innertubeApiKey:a_("",p.innertube_api_key);c=C?C.innertubeApiVersion:a_("",p.innertube_api_version);M=C?C.innertubeContextClientVersion:a_("",p.innertube_context_client_version);T=g.pO("INNERTUBE_API_KEY")|| T;c=g.pO("INNERTUBE_API_VERSION")||c;a=g.pO("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");E=Lb(this);l=typeof this.T.c==="number"?Number(this.T.c):Object.keys(rMj).indexOf(this.T.c);this.Uv={innertubeApiKey:T,innertubeApiVersion:c,OM:a,aL:E,o4:l,innertubeContextClientVersion:g.pO("INNERTUBE_CONTEXT_CLIENT_VERSION")||M,CP:this.hostLanguage,nP:this.region,d4:g.pO("INNERTUBE_HOST_OVERRIDE")||"",jx:!!g.pO("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),ZA:!!g.pO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}; this.KM=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.W=new QM(this.experiments,this.G("html5_force_hfr_support")?!0:I3(this)||Bd()||uUs()||B2L(this),g.kZ&&g.JB(56)||g.k$&&g.JB(54)||this.G("html5_force_vp9_subsample_encryption_support")||B2L(this));M=g.bH(this);T=this.I6;c=this.experiments;a=new ROj(c);M&&(a.C=!0,a.Y=.1);c.OY("html5_media_time_weight")&&(a.C=!1);T&&(a.V=T/8);a.S=Y1()>=480;this.schedule=new se(a,new JMH(this.experiments),H);g.R(this,this.schedule);var J;this.enableSafetyMode= (J=C==null?void 0:C.initialEnableSafetyMode)!=null?J:iO(!1,p.enable_safety_mode);H=this.Ga?!1:uL(this)&&this.playerStyle!=="blazer";var S;C?C.disableAutonav!=null&&(S=!C.disableAutonav):S=p.allow_autonav;this.kt=iO(H,!this.b_&&S);this.sendVisitorIdHeader=C?!!C.sendVisitorIdHeader:iO(!1,p.send_visitor_id_header);var D;this.playerStyle==="docs"&&(C?D=C.disableNativeContextMenu:D=p.disable_native_context_menu);this.disableNativeContextMenu=iO(!1,D);this.SE=I3(this)&&this.G("enable_skip_intro_button"); this.embedConfig=a_("",C?C.serializedEmbedConfig:p.embed_config);this.Sa=tm(p,g.KI(this));this.V=this.Sa==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(C==null||!C.embedsErrorLinks);this.tB=iO(!1,p.full_window);var Z;this.UY=!((Z=this.webPlayerContextConfig)==null?0:Z.chromeless);var f;this.livingRoomAppMode=hm("LIVING_ROOM_APP_MODE_UNSPECIFIED",p.living_room_app_mode||(C==null?void 0:(f=C.device)==null?void 0:f.livingRoomAppMode),G$L);var q;S=sB(NaN,C==null?void 0:(q=C.device)==null?void 0: q.deviceYear);isNaN(S)||(this.deviceYear=S);this.transparentBackground=C?!!C.transparentBackground:iO(!1,p.transparent_background);this.showMiniplayerButton=C?!!C.showMiniplayerButton:iO(!1,p.show_miniplayer_button);var A;g.KI(this)&&!(C==null?0:(A=C.embedsHostFlags)==null?0:A.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=C?!!C.externalFullscreen:iO(!1,p.external_fullscreen);this.showMiniplayerUiWhenMinimized=C?!!C.showMiniplayerUiWhenMinimized:iO(!1,p.use_miniplayer_ui); this.showInlinePreviewUi=C?!!C.showInlinePreviewUi:!1;var z;this.JW=(z=p.show_loop_video_toggle)!=null?z:!0;this.VP=Math.random()<1E-4;this.Kq=p.onesie_hot_config||(C==null?0:C.onesieHotConfig)?new AM9(p.onesie_hot_config,C==null?void 0:C.onesieHotConfig):void 0;this.isTectonic=C?!!C.isTectonic:!!p.isTectonic;this.playerCanaryState=V;this.playerCanaryStage=C==null?void 0:C.canaryStage;this.f9=new eO1;g.R(this,this.f9);this.JB=iO(!1,p.force_gvi);this.datasyncId=(C==null?void 0:C.datasyncId)||g.pO("DATASYNC_ID"); this.K$=g.pO("LOGGED_IN",!1);this.uM=(C==null?void 0:C.allowWoffleManagement)||!1;this.lM=Infinity;this.gR=NaN;this.livingRoomPoTokenId=C==null?void 0:C.livingRoomPoTokenId;this.G("html5_high_res_logging_always")?this.hE=!0:this.hE=Math.random()*100<g.mi(this.experiments,"html5_high_res_logging_percent");var Q;this.Ov=!!(C==null?0:(Q=C.embedsHostFlags)==null?0:Q.allowRcat);this.Y9=!g.yj(this)&&!kS(this)}; g.Ig=function(p){var C,V;if(!((C=p.webPlayerContextConfig)==null?0:(V=C.embedsHostFlags)==null?0:V.enableLiteUx)||p.va||p.Y||p.V||p.Sa==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";p=g.mi(p.experiments,"embeds_web_lite_mode");return p===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":p>=0&&p<p0V.length?p0V[p]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"}; og=function(p,C,V){V=V===void 0?!1:V;p.YM=a_(p.YM,C.video_id);p.Qn=a_(p.Qn,C.eventid);p.Qn&&(UI=p.Qn);for(var N=[],H=g.F(Object.keys(C_j)),X=H.next();!X.done;X=H.next()){X=C_j[X.value];var d=C[X];d!=null&&(d!==p.T[X]&&N.push(X),p.T[X]=d)}!V&&N.length>0&&p.VP&&(N.sort(),g.eG(new g.Bw("Player client parameters changed after startup",N)));p.userAge=sB(p.userAge,C.user_age);p.YN=a_(p.YN,C.user_display_email);p.userDisplayImage=a_(p.userDisplayImage,C.user_display_image);g.dn(p.userDisplayImage)||(p.userDisplayImage= "");p.userDisplayName=a_(p.userDisplayName,C.user_display_name);p.AX=a_(p.AX,C.user_gender);p.csiPageType=a_(p.csiPageType,C.csi_page_type);p.csiServiceName=a_(p.csiServiceName,C.csi_service_name);p.Of=iO(p.Of,C.enablecsi);p.pageId=a_(p.pageId,C.pageid);if(V=C.enabled_engage_types)p.enabledEngageTypes=new Set(V.split(","));C.living_room_session_po_token&&(p.XT=C.living_room_session_po_token.toString())}; YS=function(p,C){return!p.Y&&Wd()&&q8(55)&&p.controlsType==="3"&&!C}; g.zM=function(p){p=AR(p.Vn);return p==="www.youtube-nocookie.com"?"www.youtube.com":p}; Rg=function(p,C,V){return p.protocol+"://i1.ytimg.com/vi/"+C+"/"+(V||"hqdefault.jpg")}; nI=function(p){return uL(p)&&!g.yj(p)}; g.fI=function(p){return p.G("html5_local_playsinline")?CK&&!g.JB(602)&&!("playsInline"in An()):CK&&!p.Uh||g.gm("nintendo wiiu")?!0:!1}; Lb=function(p){return p.T.c}; g.bH=function(p){return/^TVHTML5/.test(Lb(p))}; g.eH=function(p){return Lb(p)==="TVHTML5"}; wPj=function(p){return Lb(p)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; B2L=function(p){return p.T.cmodel==="CHROMECAST ULTRA/STEAK"||p.T.cmodel==="CHROMECAST/STEAK"}; g.Pg=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; I3=function(p){return/web/i.test(Lb(p))}; g.wG=function(p){return Lb(p).toUpperCase()==="WEB"}; kS=function(p){return Lb(p)==="WEB_KIDS"}; g.yj=function(p){return Lb(p)==="WEB_UNPLUGGED"}; $S=function(p){return Lb(p)==="TVHTML5_UNPLUGGED"}; g.qz=function(p){return g.yj(p)||Lb(p)==="TV_UNPLUGGED_CAST"||$S(p)}; g.gk=function(p){return Lb(p)==="WEB_REMIX"}; g.LI=function(p){return Lb(p)==="WEB_EMBEDDED_PLAYER"}; g.Wg=function(p){return(p.deviceIsAudioOnly||!g.kZ||BW||p.controlsType==="3"?!1:g.N5?p.S&&g.JB(51):!0)||(p.deviceIsAudioOnly||!g.k$||BW||p.controlsType==="3"?!1:g.N5?p.S&&g.JB(48):g.JB(38))||(p.deviceIsAudioOnly||!g.Fs||BW||p.controlsType==="3"?!1:g.N5?p.S&&g.JB(37):g.JB(27))||!p.deviceIsAudioOnly&&g.gG&&!UZu()&&g.JB(11)||!p.deviceIsAudioOnly&&g.D1&&g.JB("604.4")}; jYj=function(p){if(g.Oe(p)&&ZW)return!1;if(g.k$){if(!g.JB(47)||!g.JB(52)&&g.JB(51))return!1}else if(g.D1)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Qj=function(p){return!p.G("html5_disable_media_element_loop_on_tv")||!g.bH(p)}; N6S=function(p,C){return p.enabledEngageTypes.has(C.toString())||V8y.includes(C)}; uL=function(p){return p.Wr==="detailpage"}; g.Oe=function(p){return p.Wr==="embedded"}; rG=function(p){return p.Wr==="leanback"}; DW=function(p){return p.Wr==="adunit"||p.playerStyle==="gvn"}; g.qn=function(p){return p.Wr==="profilepage"}; g.KI=function(p){return p.S&&g.Oe(p)&&!DW(p)&&!p.Y}; Bg=function(p){if(!p.userDisplayImage)return"";var C=p.userDisplayImage.split("/");if(C.length===5)return p=C[C.length-1].split("="),p[1]="s20-c",C[C.length-1]=p.join("="),C.join("/");if(C.length===8)return C.splice(7,0,"s20-c"),C.join("/");if(C.length===9)return C[7]+="-s20-c",C.join("/");g.eG(new g.Bw("Profile image not a FIFE URL.",p.userDisplayImage));return p.userDisplayImage}; g.GM=function(p){var C=g.zM(p);Ha9.includes(C)&&(C="www.youtube.com");return p.protocol+"://"+C}; g.pk=function(p,C){C=C===void 0?"":C;if(p.DM){var V=new hK,N,H=p.DM();H.signedOut?N="":H.token?N=H.token:H.pendingResult.then(function(X){H.signedOut?V.resolve(""):V.resolve(X.token)},function(X){g.eG(new g.Bw("b189348328_oauth_callback_failed",{error:X})); V.resolve(C)}); return N!==void 0?YD(N):new kD(V)}return YD(C)}; AR=function(p){var C=g.LJ(p);return(p=Number(g.$7(4,p))||null)?C+":"+p:C}; Ck=function(p,C){C=C===void 0?!1:C;var V=gO[p],N=X0Y[V],H=d3L[p];if(!H||!N)return null;C=new wO(C?H.height:H.width,C?H.width:H.height,H.fps);N=s6(N,C,V);return new WB(p,N,{video:C,F$:H.bitrate/8})}; heu=function(p){var C=X0Y[gO[p]],V=ia1[p];return V&&C?new WB(p,C,{audio:new nR(V.audioSampleRate,V.numChannels)}):null}; jw=function(p){this.T=p}; Vs=function(p,C,V,N){if(V)return xD();V={};var H=An();C=g.F(C);for(var X=C.next();!X.done;X=C.next())if(X=X.value,p.canPlayType(H,X.getInfo().mimeType)||N){var d=X.T.video.quality;if(!V[d]||V[d].getInfo().Ft())V[d]=X}p=[];V.auto&&p.push(V.auto);N=g.F($Z);for(H=N.next();!H.done;H=N.next())(H=V[H.value])&&p.push(H);return p.length?YD(p):xD()}; sYa=function(p){this.itag=p.itag;this.url=p.url;this.codecs=p.codecs;this.width=p.width;this.height=p.height;this.fps=p.fps;this.bitrate=p.bitrate;var C;this.C=((C=p.audioItag)==null?void 0:C.split(","))||[];this.SD=p.SD;this.vV=p.vV||"";this.K4=p.K4;this.audioChannels=p.audioChannels;this.T=""}; aY9=function(p,C,V,N){C=C===void 0?!1:C;V=V===void 0?!0:V;N=N===void 0?{}:N;var H={};p=g.F(p);for(var X=p.next();!X.done;X=p.next()){X=X.value;if(C&&MediaSource&&MediaSource.isTypeSupported){var d=X.type;X.audio_channels&&(d=d+"; channels="+X.audio_channels);if(!MediaSource.isTypeSupported(d)){N[X.itag]="tpus";continue}}if(V||!X.drm_families||X.eotf!=="smpte2084"&&X.eotf!=="arib-std-b67"){d=void 0;var a={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},E=X.type.match(/codecs="([^"]*)"/); E=E?E[1]:"";X.audio_track_id&&(d=new g.N6(X.name,X.audio_track_id,!!X.is_default));var l=X.eotf;X=new sYa({itag:X.itag,url:X.url,codecs:E,width:Number(X.width),height:Number(X.height),fps:Number(X.fps),bitrate:Number(X.bitrate),audioItag:X.audio_itag,SD:l?a[l]:void 0,vV:X.drm_families,K4:d,audioChannels:Number(X.audio_channels)});H[X.itag]=H[X.itag]||[];H[X.itag].push(X)}else N[X.itag]="enchdr"}return H}; ExQ=function(p,C,V,N,H){this.V=p;this.C=C;this.W=V;this.cpn=N;this.Y=H;this.S=0;this.T=""}; lYe=function(p,C){p.V.some(function(V){var N;return((N=V.K4)==null?void 0:N.getId())===C}); p.T=C}; NF=function(p,C,V){p.cpn&&(C=g.GD(C,{cpn:p.cpn}));V&&(C=g.GD(C,{paired:V}));return C}; t8e=function(p,C){p=p.itag.toString();C!==null&&(p+=C.itag.toString());return p}; cLs=function(p){for(var C=[],V=[],N=g.F(p.C),H=N.next();!H.done;H=N.next())H=H.value,H.bitrate<=p.S?C.push(H):V.push(H);C.sort(function(X,d){return d.bitrate-X.bitrate}); V.sort(function(X,d){return X.bitrate-d.bitrate}); p.C=C.concat(V)}; H7=function(p,C,V){this.T=p;this.C=C;this.expiration=V;this.sR=null}; T6j=function(p,C){if(!(BW||GQ()||rm()))return null;p=aY9(C,p.G("html5_filter_fmp4_in_hls"));if(!p)return null;C=[];for(var V={},N=g.F(Object.keys(p)),H=N.next();!H.done;H=N.next()){H=g.F(p[H.value]);for(var X=H.next();!X.done;X=H.next()){var d=X.value;d.K4&&(X=d.K4.getId(),V[X]||(d=new g.pw(X,d.K4),V[X]=d,C.push(d)))}}return C.length>0?C:null}; FHS=function(p,C,V,N,H,X,d){if(!(BW||GQ()||rm()))return xD();var a={},E=M8S(V),l=aY9(V,p.G("html5_filter_fmp4_in_hls"),p.W.Y,a);if(!l)return d({noplst:1}),xD();JLS(l);V={};var t=(V.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",V),c;V=[];var T=[],M=[],J=null,S="";N=N&&N.match(/hls_timedtext_playlist/)?new sYa({itag:"0",url:N,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,K4:new g.N6("English","en",!1)}):null;for(var D=g.F(Object.keys(l)),Z=D.next();!Z.done;Z=D.next())if(Z=Z.value,!p.G("html5_disable_drm_hfr_1080")|| Z!=="383"&&Z!=="373"){Z=g.F(l[Z]);for(var f=Z.next();!f.done;f=Z.next())if(f=f.value,f.width){for(var q=g.F(f.C),A=q.next();!A.done;A=q.next())if(A=A.value,l[A]){f.T=A;break}f.T||(f.T=m3S(l,f));if(q=l[f.T])if(V.push(f),f.vV==="fairplay"&&(c=t),A="",f.SD==="PQ"?A="smpte2084":f.SD==="HLG"&&(A="arib-std-b67"),A&&(S=A),M.push(vx9(q,[f],N,X,f.itag,f.width,f.height,f.fps,E,void 0,void 0,c,A)),!J||f.width*f.height*f.fps>J.width*J.height*J.fps)J=f}else T.push(f)}else a[Z]="disdrmhfr";M.reduce(function(z, Q){return Q.getInfo().isEncrypted()&&z},!0)&&(c=t); H=Math.max(H,0);t=J||{};l=t.fps===void 0?0:t.fps;J=t.width===void 0?0:t.width;t=t.height===void 0?0:t.height;D=p.G("html5_native_audio_track_switching");M.push(vx9(T,V,N,X,"93",J,t,l,E,"auto",H,c,S,D));Object.entries(a).length&&d(a);return Vs(p.W,M,YS(p,C),!1)}; vx9=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){for(var J=0,S="",D=g.F(p),Z=D.next();!Z.done;Z=D.next())Z=Z.value,S||(S=Z.itag),Z.audioChannels&&Z.audioChannels>J&&(J=Z.audioChannels,S=Z.itag);H=new WB(H,"application/x-mpegURL",{audio:new nR(0,J),video:new wO(X,d,a,null,void 0,l,void 0,T),vV:c,UL:S});p=new ExQ(p,C,V?[V]:[],N,!!M);p.S=t?t:1369843;return new H7(H,p,E)}; M8S=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(C=C.value,C.url&&(C=C.url.split("expire/"),!(C.length<=1)))return+C[1].split("/")[0];return NaN}; m3S=function(p,C){for(var V=g.F(Object.keys(p)),N=V.next();!N.done;N=V.next()){N=N.value;var H=p[N][0];if(!H.width&&H.vV===C.vV&&!H.audioChannels)return N}return""}; JLS=function(p){for(var C=new Set,V=g.F(Object.values(p)),N=V.next();!N.done;N=V.next())N=N.value,N.length&&(N=N[0],N.height&&N.codecs.startsWith("vp09")&&C.add(N.height));V=[];if(C.size){N=g.F(Object.keys(p));for(var H=N.next();!H.done;H=N.next())if(H=H.value,p[H].length){var X=p[H][0];X.height&&C.has(X.height)&&!X.codecs.startsWith("vp09")&&V.push(H)}}C=g.F(V);for(V=C.next();!V.done;V=C.next())delete p[V.value]}; Xt=function(p,C){this.T=p;this.C=C}; SAj=function(p,C,V,N){var H=[];V=g.F(V);for(var X=V.next();!X.done;X=V.next()){var d=X.value;if(d.url){X=new g.v1(d.url,!0);if(d.s){var a=X,E=d.sp,l=v_j(decodeURIComponent(d.s));a.set(E,encodeURIComponent(l))}a=g.F(Object.keys(N));for(E=a.next();!E.done;E=a.next())E=E.value,X.set(E,N[E]);d=dN(d.type,d.quality,d.itag,d.width,d.height);H.push(new Xt(d,X))}}return Vs(p.W,H,YS(p,C),!1)}; dP=function(p,C){this.T=p;this.C=C}; KHy=function(p,C,V){var N=[];V=g.F(V);for(var H=V.next();!H.done;H=V.next())if((H=H.value)&&H.url){var X=dN(H.type,"medium","0");N.push(new dP(X,H.url))}return Vs(p.W,N,YS(p,C),!1)}; D3j=function(p,C){var V=[],N=dN(C.type,"auto",C.itag);V.push(new dP(N,C.url));return Vs(p.W,V,!1,!0)}; Za1=function(p){return p&&umY[p]?umY[p]:null}; U3Y=function(p){if(p=p.commonConfig)this.url=p.url,this.urlQueryOverride=p.urlQueryOverride,p.ustreamerConfig&&(this.ac=Nn(p.ustreamerConfig)||void 0)}; fYe=function(p,C){var V;if(C=C==null?void 0:(V=C.watchEndpointSupportedOnesieConfig)==null?void 0:V.html5PlaybackOnesieConfig)p.nF=new U3Y(C)}; g.is=function(p){p=p===void 0?{}:p;this.languageCode=p.languageCode||"";this.languageName=p.languageName||null;this.kind=p.kind||"";this.name=p.name===void 0?null:p.name;this.displayName=p.displayName||null;this.id=p.id||null;this.T=p.is_servable||!1;this.isTranslateable=p.is_translateable||!1;this.url=p.url||null;this.vssId=p.vss_id||"";this.isDefault=p.is_default||!1;this.translationLanguage=p.translationLanguage||null;this.xtags=p.xtags||"";this.captionId=p.captionId||""}; g.sj=function(p){var C={languageCode:p.languageCode,languageName:p.languageName,displayName:g.hA(p),kind:p.kind,name:p.name,id:p.id,is_servable:p.T,is_default:p.isDefault,is_translateable:p.isTranslateable,vss_id:p.vssId};p.xtags&&(C.xtags=p.xtags);p.captionId&&(C.captionId=p.captionId);p.translationLanguage&&(C.translationLanguage=p.translationLanguage);return C}; g.aI=function(p){return p.translationLanguage?p.translationLanguage.languageCode:p.languageCode}; g.OaY=function(p){var C=p.vssId;p.translationLanguage&&C&&(C="t"+C+"."+g.aI(p));return C}; g.hA=function(p){var C=[];if(p.displayName)C.push(p.displayName);else{var V=p.languageName||"";C.push(V);p.kind==="asr"&&V.indexOf("(")===-1&&C.push(" (Automatic Captions)");p.name&&C.push(" - "+p.name)}p.translationLanguage&&C.push(" >> "+p.translationLanguage.languageName);return C.join("")}; bay=function(p,C,V,N){p||(p=C&&yLj.hasOwnProperty(C)&&qAY.hasOwnProperty(C)?qAY[C]+"_"+yLj[C]:void 0);C=p;if(!C)return null;p=C.match(IYQ);if(!p||p.length!==5)return null;if(p=C.match(IYQ)){var H=Number(p[3]),X=[7,8,10,5,6];p=!(Number(p[1])===1&&H===8)&&X.indexOf(H)>=0}else p=!1;return V||N||p?C:null}; Ej=function(p,C){for(var V={},N=g.F(Object.keys(ALu)),H=N.next();!H.done;H=N.next()){H=H.value;var X=C?C+H:H;X=p[X+"_webp"]||p[X];g.dn(X)&&(V[ALu[H]]=X)}return V}; ls=function(p){var C={};if(!p||!p.thumbnails)return C;p=p.thumbnails.filter(function(a){return!!a.url}); p.sort(function(a,E){return a.width-E.width||a.height-E.height}); for(var V=g.F(Object.keys(oxe)),N=V.next();!N.done;N=V.next()){var H=Number(N.value);N=oxe[H];for(var X=g.F(p),d=X.next();!d.done;d=X.next())if(d=d.value,d.width>=H){H=kda(d.url);g.dn(H)&&(C[N]=H);break}}(p=p.pop())&&p.width>=1280&&(p=kda(p.url),g.dn(p)&&(C["maxresdefault.jpg"]=p));return C}; kda=function(p){return p.startsWith("//")?"https:"+p:p}; tA=function(p){return p&&p.baseUrl||""}; c7=function(p){p=g.sk(p);for(var C=g.F(Object.keys(p)),V=C.next();!V.done;V=C.next()){V=V.value;var N=p[V];p[V]=Array.isArray(N)?N[0]:N}return p}; x3V=function(p,C){p.botguardData=C.playerAttestationRenderer.botguardData;C=C.playerAttestationRenderer.challenge;C!=null&&(p.Mr=C)}; Ree=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=V.interstitials.map(function(d){var a=g.n(d,YAj);if(a)return{is_yto_interstitial:!0,raw_player_response:a};if(d=g.n(d,ze9))return Object.assign({is_yto_interstitial:!0},i1(d))}); N=g.F(N);for(var H=N.next();!H.done;H=N.next())switch(H=H.value,V.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":p.interstitials=p.interstitials.concat({time:0,playerVars:H,TR:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":p.interstitials=p.interstitials.concat({time:0x7ffffffffffff,playerVars:H,TR:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var X=Number(V.podConfig.timeToInsertAtMillis);p.interstitials=p.interstitials.concat({time:X,playerVars:H, TR:X===0?5:7})}}}; nxs=function(p,C){if(C=C.find(function(V){return!(!V||!V.tooltipRenderer)}))p.tooltipRenderer=C.tooltipRenderer}; eeu=function(p,C){C.subscribeCommand&&(p.subscribeCommand=C.subscribeCommand);C.unsubscribeCommand&&(p.unsubscribeCommand=C.unsubscribeCommand);C.addToWatchLaterCommand&&(p.addToWatchLaterCommand=C.addToWatchLaterCommand);C.removeFromWatchLaterCommand&&(p.removeFromWatchLaterCommand=C.removeFromWatchLaterCommand);C.getSharePanelCommand&&(p.getSharePanelCommand=C.getSharePanelCommand)}; P_Q=function(p,C){C!=null?(p.PP=C,p.UV=!0):(p.PP="",p.UV=!1)}; Te=function(p,C){this.type=p||"";this.id=C||""}; g.MF=function(p){return new Te(p.substring(0,2),p.substring(2))}; g.JA=function(p,C){this.I$=p;this.author="";this.e9=null;this.playlistLength=0;this.T=this.sessionData=null;this.Z={};this.title="";if(C){this.author=C.author||C.playlist_author||"";this.title=C.playlist_title||"";if(p=C.session_data)this.sessionData=X5(p,"&");var V;this.T=((V=C.thumbnail_ids)==null?void 0:V.split(",")[0])||null;this.Z=Ej(C,"playlist_");this.videoId=C.video_id||void 0;if(V=C.list)switch(C.listType){case "user_uploads":this.playlistId=(new Te("UU","PLAYER_"+V)).toString();break;default:if(p= C.playlist_length)this.playlistLength=Number(p)||0;this.playlistId=g.MF(V).toString();if(C=C.video)this.videoId=(C[0]||null).video_id||void 0}else C.playlist&&(this.playlistLength=C.playlist.toString().split(",").length)}}; g.mx=function(p,C){this.I$=p;this.B8=this.author="";this.e9=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Bj=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(C){this.ariaLabel=C.aria_label||void 0;this.author=C.author||"";this.B8=C.B8||"";if(p=C.endscreen_autoplay_session_data)this.e9=X5(p,"&");this.HO=C.HO;this.isLivePlayback=C.live_playback==="1";this.isUpcoming=!!C.isUpcoming;if(p=C.length_seconds)this.lengthSeconds=typeof p==="string"?Number(p):p;this.lengthText= C.lengthText||"";this.Bj=C.Bj||"";this.publishedTimeText=C.publishedTimeText||void 0;if(p=C.session_data)this.sessionData=X5(p,"&");this.shortViewCount=C.short_view_count_text||void 0;this.Z=Ej(C);this.title=C.title||"";this.videoId=C.docid||C.video_id||C.videoId||C.id||void 0;this.watchUrl=C.watchUrl||void 0}}; w0V=function(p){var C,V,N=(C=p.getWatchNextResponse())==null?void 0:(V=C.contents)==null?void 0:V.twoColumnWatchNextResults,H,X,d,a,E;p=(H=p.getWatchNextResponse())==null?void 0:(X=H.playerOverlays)==null?void 0:(d=X.playerOverlayRenderer)==null?void 0:(a=d.endScreen)==null?void 0:(E=a.watchNextEndScreenRenderer)==null?void 0:E.results;if(!p){var l,t;p=N==null?void 0:(l=N.endScreen)==null?void 0:(t=l.endScreen)==null?void 0:t.results}return p}; g.Ft=function(p){var C,V,N;p=g.n((C=p.getWatchNextResponse())==null?void 0:(V=C.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:N.decoratedPlayerBarRenderer,v7);return g.n(p==null?void 0:p.playerBar,$39)}; LH1=function(p){this.T=p.playback_progress_0s_url;this.V=p.playback_progress_2s_url;this.C=p.playback_progress_10s_url}; gxY=function(){if(Sw===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(C){}a:{try{var p=!!self.localStorage}catch(C){p=!1}if(p&&(p=g.eJ(g.GW()+"::yt-player"))){Sw=new rk(p);break a}Sw=void 0}}return Sw}; g.Kk=function(){var p=gxY();if(!p)return{};try{var C=p.get("yt-player-lv");return JSON.parse(C||"{}")}catch(V){return{}}}; g.WHy=function(p){var C=gxY();C&&(p=JSON.stringify(p),C.set("yt-player-lv",p))}; g.Db=function(p){return g.Kk()[p]||0}; g.us=function(p,C){var V=g.Kk();C!==V[p]&&(C!==0?V[p]=C:delete V[p],g.WHy(V))}; g.Zb=function(p){return g.I(function(C){return C.return(g.WW(QYX(),p))})}; fk=function(p,C,V,N,H,X,d,a){var E,l,t,c,T,M;return g.I(function(J){switch(J.C){case 1:return E=g.Db(p),E===4?J.return(4):g.y(J,g.Vt(),2);case 2:l=J.T;if(!l)throw g.Z1("wiac");if(!a||d===void 0){J.EY(3);break}return g.y(J,rLS(a,d),4);case 4:d=J.T;case 3:return t=V.lastModified||"0",g.y(J,g.Zb(l),5);case 5:return c=J.T,g.vv(J,6),Uj++,g.y(J,g.kt(c,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",L4:!0},function(S){if(X!==void 0&&d!==void 0){var D=""+p+"|"+C.id+"|"+t+"|"+String(X).padStart(10, "0");D=g.xt(S.objectStore("media"),d,D)}else D=g.f3.resolve(void 0);var Z=B6e(p,C.K9()),f=B6e(p,!C.K9()),q={fmts:Gdv(N),format:V||{}};Z=g.xt(S.objectStore("index"),q,Z);var A=N.downloadedEndTime===-1;q=A?S.objectStore("index").get(f):g.f3.resolve(void 0);var z={fmts:"music",format:{}};S=A&&H&&!C.K9()?g.xt(S.objectStore("index"),z,f):g.f3.resolve(void 0);return g.f3.all([S,q,D,Z]).then(function(Q){Q=g.F(Q);Q.next();Q=Q.next().value;Uj--;var P=g.Db(p);if(P!==4&&A&&H||Q!==void 0&&g.pYv(Q.fmts))P=1,g.us(p, P);return P})}),8); case 8:return J.return(J.T);case 6:T=g.Sa(J);Uj--;M=g.Db(p);if(M===4)return J.return(M);g.us(p,4);throw T;}})}; g.CtL=function(p){var C,V;return g.I(function(N){if(N.C==1)return g.y(N,g.Vt(),2);if(N.C!=3){C=N.T;if(!C)throw g.Z1("ri");return g.y(N,g.Zb(C),3)}V=N.T;return N.return(g.kt(V,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(H){var X=IDBKeyRange.bound(p+"|",p+"~");return H.objectStore("index").getAll(X).then(function(d){return d.map(function(a){return a?a.format:{}})})}))})}; V3L=function(p,C,V,N,H){var X,d,a;return g.I(function(E){if(E.C==1)return g.y(E,g.Vt(),2);if(E.C!=3){X=E.T;if(!X)throw g.Z1("rc");return g.y(E,g.Zb(X),3)}d=E.T;a=g.kt(d,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(l){var t=""+p+"|"+C+"|"+V+"|"+String(N).padStart(10,"0");return l.objectStore("media").get(t)}); return H?E.return(a.then(function(l){if(l===void 0)throw Error("No data from indexDb");return jHQ(H,l)}).catch(function(l){throw new g.Bw("Error while reading chunk: "+l.name+", "+l.message); })):E.return(a)})}; g.pYv=function(p){return p?p==="music"?!0:p.includes("dlt=-1")||!p.includes("dlt="):!1}; B6e=function(p,C){return""+p+"|"+(C?"v":"a")}; Gdv=function(p){var C={};return dm((C.dlt=p.downloadedEndTime.toString(),C.mket=p.maxKnownEndTime.toString(),C.avbr=p.averageByteRate.toString(),C))}; HzQ=function(p){var C={},V={};p=g.F(p);for(var N=p.next();!N.done;N=p.next()){var H=N.value,X=H.split("|");H.match(g.Nre)?(N=Number(X.pop()),isNaN(N)?V[H]="?":(X=X.join("|"),(H=C[X])?(X=H[H.length-1],N===X.end+1?X.end=N:H.push({start:N,end:N})):C[X]=[{start:N,end:N}])):V[H]="?"}p=g.F(Object.keys(C));for(N=p.next();!N.done;N=p.next())N=N.value,V[N]=C[N].map(function(d){return d.start+"-"+d.end}).join(","); return V}; Oj=function(p){g.ca.call(this);this.T=null;this.V=new $F;this.T=null;this.Y=new Set;this.crossOrigin=p||""}; XYe=function(p,C,V){for(V=ys(p,V);V>=0;){var N=p.levels[V];if(N.isLoaded(qF(N,C))&&(N=g.II(N,C)))return N;V--}return g.II(p.levels[0],C)}; izy=function(p,C,V){V=ys(p,V);for(var N,H;V>=0;V--)if(N=p.levels[V],H=qF(N,C),!N.isLoaded(H)){N=p;var X=V,d=X+"-"+H;N.Y.has(d)||(N.Y.add(d),N.V.enqueue(X,{iE:X,cY:H}))}dOL(p)}; dOL=function(p){if(!p.T&&!p.V.isEmpty()){var C=p.V.remove();p.T=h5L(p,C)}}; h5L=function(p,C){var V=document.createElement("img");p.crossOrigin&&(V.crossOrigin=p.crossOrigin);V.src=p.levels[C.iE].i9(C.cY);V.onload=function(){var N=C.iE,H=C.cY;p.T!==null&&(p.T.onload=null,p.T=null);N=p.levels[N];N.loaded.add(H);dOL(p);var X=N.columns*N.rows;H*=X;N=Math.min(H+X-1,N.aV()-1);H=[H,N];p.publish("l",H[0],H[1])}; return V}; g.bs=function(p,C,V,N){this.level=p;this.S=C;this.loaded=new Set;this.level=p;this.S=C;p=V.split("#");this.width=Math.floor(Number(p[0]));this.height=Math.floor(Number(p[1]));this.frameCount=Math.floor(Number(p[2]));this.columns=Math.floor(Number(p[3]));this.rows=Math.floor(Number(p[4]));this.T=Math.floor(Number(p[5]));this.V=p[6];this.signature=p[7];this.videoLength=N}; qF=function(p,C){return Math.floor(C/(p.columns*p.rows))}; g.II=function(p,C){C>=p.g$()&&p.BA();var V=qF(p,C),N=p.columns*p.rows,H=C%N;C=H%p.columns;H=Math.floor(H/p.columns);var X=p.BA()+1-N*V;if(X<p.columns){var d=X;N=1}else d=p.columns,N=X<N?Math.ceil(X/p.columns):p.rows;return{url:p.i9(V),column:C,columns:d,row:H,rows:N,A_:p.width*d,Fr:p.height*N}}; AA=function(p,C,V,N,H){N=N===void 0?!1:N;H=H===void 0?!1:H;Oj.call(this,V);this.isLive=N;this.D=!!H;this.levels=this.C(p,C);this.S=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; sHe=function(p,C,V){return(p=p.levels[C])?p.U7(V):-1}; ys=function(p,C){var V=p.S.get(C);if(V)return V;V=p.levels.length;for(var N=0;N<V;N++)if(p.levels[N].width>=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;p<this.levels.length;p++)this.levels[p].wk(V)}; aFV=function(p,C,V){C={cpn:C};p.indexOf("/ibw/")===-1&&(C.ibw=V?String(V):"1369843");return{url:g.GD(p,C),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; g.YB=function(p,C){g.ca.call(this);this.I$=p;this.adaptiveFormats="";this.Fd=this.Ts=this.adQueryId=this.yR=null;this.Cj={start:NaN,end:NaN};this.cueRanges=this.vV=null;this.It=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.gW=void 0;this.K$=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.R$="";this.aX=!1;this.zw=null;this.qn=this.Pz=this.W8=this.zy=!1;this.S=null;this.eM=this.tB=!1;this.Gp= NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.vX=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.rj=0;this.JX=!1;this.ij=this.cycToken=null;this.author="";this.lG=!1;this.hg=0;this.lF=!1;this.FD=null;this.Dp=[];this.WP=this.Pv=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.kM=this.iW="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds= this.endSeconds=this.ER=0;this.td=this.UY=this.C=null;this.g1="";this.loading=!1;this.I6=this.Um=0;this.q8=this.pipable=this.dP=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.X4=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.qo=this.isPrivate=this.isListed=this.Zq=this.FT=!1;this.fn="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.ub=this.Wr=this.EO=!1;this.latencyClass="UNKNOWN";this.RJ= this.Vc=this.qf=this.CG=this.Bv=this.enablePreroll=this.Ig=this.enableServerStitchedDai=this.tE=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.wy=0;this.reloadReason="";this.vx=this.E6=this.va=!1;this.keywords={};this.X$="";this.Ic=0;this.Su=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.gR=null;this.JV=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.YZ=this.paygated=!1;this.mm= [];this.Kp=!1;this.Vn=[];this.TU=null;this.YY=this.racyCheckOk=!1;this.PL={};this.isProximaLatencyEligible=!1;this.uK=0;this.V=null;this.autonavState=1;this.aK=null;this.shortDescription="";this.sY=this.vM=!1;this.o6=this.Hc=this.startSeconds=0;this.KT=this.f5=this.l3=xB;this.bv=this.suggestions=null;this.Qt=this.Mc=void 0;this.isExternallyHostedPodcast=!1;this.BI=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.IX=void 0;this.Qn=[];this.Y9=[];this.hlsFormats=this.jZ= "";this.Pj=this.ra=this.BB=this.FO=this.KS=this.VP=this.Ij=null;this.B_="vvt";this.YN=!1;this.tY=null;this.GH="";this.NG=NaN;this.Gf=this.fW=this.i6=this.iz=this.zQ=this.Uh=this.oa=this.LW=this.Lw=this.WA="";this.KM=null;this.q6=!1;this.D={};this.clipStart=0;this.clipEnd=Infinity;this.DB=!1;this.heartbeatToken="";this.Jl=this.B5=NaN;this.QZ=this.sx=this.AX=this.oJ=this.Q7=!1;this.Ov=!0;this.Z={};this.captionTracks=[];this.uj=[];this.Rm=0;this.z2=[];this.AI=[];this.CA=!1;this.Wv={};this.Uv=new g.pw("und", new g.N6("Default","und",!0));this.iQ=0;this.W=null;this.Ox=[];this.lP=!1;this.mU=this.Q$="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Ga=this.Vz=this.d1=this.playerResponse=this.nK=this.eg=this.JW=this.b0=this.Jw=this.xu=this.bj=null;this.SA=!1;this.a$=null;this.isInlinePlaybackNoAd=this.Kq=this.Yu=this.useCobaltWidevine=this.r8=this.fQ=!1;this.CK=!0;this.hE=this.I5=NaN;this.defraggedFromSubfragments=this.Wo=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN; this.sabrContextUpdates=new Map;this.Ik="";this.xV=!1;this.gatewayExperimentGroup="";this.Mq=this.Wc=this.XT=!1;this.interstitials=[];this.UV=this.E7=!1;this.PP="";this.allowImaMonetization=!1;this.fI="";this.Ep=!1;this.i8="";this.cP=[];this.Nq=[];this.OZ="";this.pj=this.J=this.wX=!1;this.QP="";this.eE=this.Gy=this.jS=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.BK=!1;this.DM=this.cV=!0;this.errorDetail=this.userGenderAge=""; this.Lj=this.hY=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Ck=this.errorReason=this.errorCode=null;this.s5=this.xr="";this.Om=!1;this.Ot=[];this.qW=this.vr=this.YM=this.Qx=this.AE=0;this.fetchType=null;this.Rg=!0;this.transitionEndpointAtEndOfStream=void 0;this.SP=this.JT=-1;this.JB=this.d6=!1;this.f9=null;this.Y_="";this.Q1=!1;this.watchUrl=null;this.Rj=[];this.visibleOnLoadKeys=[];this.Di= [];this.inlineMetricEnabled=this.Of=!1;this.embedsRctn=this.embedsRct="";this.Vw=NaN;this.pI=(0,g.Ip)();this.vA=this.lL=0;this.ac=null;this.kt=0;this.Rt=this.mH=!1;this.VZ=this.I$.experiments.OY("html5_use_triple_equals");this.Wt=!1;this.Vy=g.mi(this.I$.experiments,"html5_gapless_loop_seek_offset_in_milli");this.Vm=0;this.SE={};this.d6=this.G("web_new_autonav_countdown");this.JB=this.G("web_new_big_thumbnail_endscreen");E1L(this,C);this.VR=new he;g.R(this,this.VR)}; g.ew=function(p,C,V){C&&C.cpn&&g.eG(new g.Bw("CPN provided in VideoData update",{M6a:C.cpn,tp:p.clientPlaybackNonce,WFx:V}));V?(lO(C),E1L(p,C),ze(p)&&RI(p)):(C=C||{},lFL(p,C),nk(p,C),t3u(p,C),p.publish("dataupdated"))}; t3u=function(p,C){p.fflags=a_(p.fflags,C.fflags);var V=C.iv_invideo_url;V&&(p.R$=iG(V));p.aX=iO(p.aX,C.iv_ads_only);if(V=C.cta_conversion_urls)p.w8=V;p.isPharma=iO(p.isPharma,C.is_pharma);p.author=a_(p.author,C.author);p.iW=c5v(C.ttsurl)||p.iW;p.lF=iO(p.lF,C.cc_asr);p.kM=a_(p.kM,C.channel_path);if(V=C.profile_picture)p.profilePicture=a_(p.profilePicture,V);p.videoCountText=a_(p.videoCountText,C.video_count_text);p.autonavState=hm(p.autonavState,C.autonav_state,TrS);if(p.G("html5_enable_ssap_entity_id")){var N; V=!!C.cotn||!((N=p.playerResponse)==null||!N.cotn);N=g.mi(p.I$.experiments,"html5_entity_id_simplified_preferred_record_size");p.playerResponse&&!V&&(p.clientPlaybackNonce=M39(p,p.playerResponse,N)||p.clientPlaybackNonce);p.clientPlaybackNonce||(C.cpn&&p.x8("ssei","uhdc"),p.clientPlaybackNonce=a_(p.clientPlaybackNonce,C.cpn))}else p.clientPlaybackNonce=a_(p.clientPlaybackNonce,C.cpn);p.subscribed=iO(p.subscribed,C.subscribed);p.rawViewCount=sB(p.rawViewCount,C.view_count);p.shortViewCount=a_(p.shortViewCount, C.short_view_count_text);p.publishedTimeText=a_(p.publishedTimeText||"",C.publishedTimeText);p.lengthText=a_(p.lengthText||"",C.lengthText);p.Bj=a_(p.Bj||"",C.Bj);p.B8=a_(p.B8||"",C.B8);p.title=a_(p.title,C.title);p.subtitle=a_(p.subtitle,C.subtitle);p.expandedTitle=a_(p.expandedTitle,C.expanded_title);p.expandedSubtitle=a_(p.expandedSubtitle,C.expanded_subtitle);p.ypcPreview=a_(p.ypcPreview,C.ypc_preview);p.Kj=a_(p.Kj,C.ypc_origin);p.YN=iO(p.YN,C.ypc_is_premiere_trailer);p.QP=a_(p.QP,C.ypc_clickwrap_message); p.paygated=iO(p.paygated,C.paygated);p.q6=iO(p.q6,C.requires_purchase);p.showShareButton=!iO(!p.showShareButton,C.ss);p.cV=iO(p.cV,C.showwatchlater);p.DM=iO(p.DM,C.shownotifybutton);p.BK=iO(p.BK,C.copy_share);if(N=C.el)p.eventLabel=N;if(N=C.keywords)p.keywords=J5V(N.split(","));if(N=C.rvs)p.suggestions=hw(N).map(function(H){return H.playlist||H.list||H.api?new g.JA(p.I$,H):new g.mx(p.I$,H)}); p.contentCheckOk=iO(p.contentCheckOk,C.cco);p.racyCheckOk=iO(p.racyCheckOk,C.rco);p.isLivingRoomDeeplink=iO(p.isLivingRoomDeeplink,C.is_living_room_deeplink);p.oauthToken=a_(p.oauthToken,C.oauth_token);p.X$=a_(p.X$,C.kpt);p.visitorData=a_(p.visitorData,C.visitor_data);if(N=C.session_data)p.sessionData=X5(N,"&");p.uv=a_(p.uv,C.endscreen_ad_tracking_data);p.WM=iO(p.WM,C.wait_for_vast_info_cards_xml);p.mO=iO(p.mO,C.suppress_creator_endscreen);p.Sc=iO(p.Sc,C.is_trueview_action);p.fY=a_(p.fY,C.tracking_list); p.xr=a_(p.xr,C.clip);p.s5=a_(p.s5,C.clipt);mOY(p,C)}; E1L=function(p,C){C=C||{};var V=C.errordetail;V!=null&&(p.errorDetail=V);var N=C.errorcode;N!=null?p.errorCode=N:C.status==="fail"&&(p.errorCode="auth");var H=C.reason;H!=null&&(p.errorReason=H);var X=C.subreason;X!=null&&(p.Ck=X);p.G("html5_enable_ssap_entity_id")||p.clientPlaybackNonce||(p.clientPlaybackNonce=C.cpn||v1y(p));p.qo=iO(p.I$.qo,C.livemonitor);lFL(p,C);var d=C.raw_player_response;if(d)p.Vz=d;else{var a=C.player_response;a&&(d=JSON.parse(a))}if(p.G("html5_enable_ssap_entity_id")){var E= C.cached_load;E&&(p.WP=iO(p.WP,E));if(!p.clientPlaybackNonce){var l=C.cpn;l?(p.x8("ssei","shdc"),p.clientPlaybackNonce=l):p.clientPlaybackNonce=v1y(p)}}d&&(p.playerResponse=d);if(p.playerResponse){var t=p.playerResponse.annotations;if(t)for(var c=g.F(t),T=c.next();!T.done;T=c.next()){var M=T.value.playerAnnotationsUrlsRenderer;if(M){M.adsOnly&&(p.aX=!0);var J=M.loadPolicy;J&&(p.annotationsLoadPolicy=FZj[J]);var S=M.invideoUrl;S&&(p.R$=iG(S));p.zy=!0;break}}var D=p.playerResponse.attestation;D&&x3V(p, D);var Z=p.playerResponse.cotn;Z&&(p.cotn=Z);var f=p.playerResponse.heartbeatParams;if(f){Sie(p)&&(p.DB=!0);var q=f.heartbeatToken;q&&(p.drmSessionId=f.drmSessionId||"",p.heartbeatToken=q,p.B5=Number(f.intervalMilliseconds),p.Jl=Number(f.maxRetries),p.Q7=!!f.softFailOnError,p.oJ=!!f.useInnertubeHeartbeatsForDrm,p.W8=!0);p.heartbeatServerData=f.heartbeatServerData;var A;p.JX=!((A=f.heartbeatAttestationConfig)==null||!A.requiresAttestation)}var z=p.playerResponse.messages;z&&nxs(p,z);var Q=p.playerResponse.overlay; if(Q){var P=Q.playerControlsOverlayRenderer;if(P)if(P_Q(p,P.controlBgHtml),P.mutedAutoplay){var VL=g.n(P.mutedAutoplay,KZS);if(VL&&VL.endScreen){var au=g.n(VL.endScreen,DOs);au&&au.text&&(p.fI=g.uq(au.text))}}else p.mutedAutoplay=!1}var W=p.playerResponse.playabilityStatus;if(W){var e=W.backgroundability;e&&e.backgroundabilityRenderer.backgroundable&&(p.backgroundable=!0);var B,v;if((B=W.offlineability)==null?0:(v=B.offlineabilityRenderer)==null?0:v.offlineable)p.offlineable=!0;var w=W.contextParams; w&&(p.contextParams=w);var C0=W.pictureInPicture;C0&&C0.pictureInPictureRenderer.playableInPip&&(p.pipable=!0);W.playableInEmbed&&(p.allowEmbed=!0);var FG=W.ypcClickwrap;if(FG){var Nc=FG.playerLegacyDesktopYpcClickwrapRenderer,OS=FG.ypcRentalActivationRenderer;if(Nc)p.QP=Nc.durationMessage||"",p.qn=!0;else if(OS){var V8=OS.durationMessage;p.QP=V8?g.uq(V8):"";p.qn=!0}}var Tp=W.errorScreen;if(Tp){if(Tp.playerLegacyDesktopYpcTrailerRenderer){var Bv=Tp.playerLegacyDesktopYpcTrailerRenderer;p.Gf=Bv.trailerVideoId|| "";var u=Tp.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var U=u&&u.ypcTrailerRenderer}else if(Tp.playerLegacyDesktopYpcOfferRenderer)Bv=Tp.playerLegacyDesktopYpcOfferRenderer;else if(Tp.ypcTrailerRenderer){U=Tp.ypcTrailerRenderer;var O=U.fullVideoMessage;p.oa=O?g.uq(O):"";var b,x;p.Gf=((b=g.n(U,uFH))==null?void 0:(x=b.videoDetails)==null?void 0:x.videoId)||""}Bv&&(p.i6=Bv.itemTitle||"",Bv.itemUrl&&(p.fW=Bv.itemUrl),Bv.itemBuyUrl&&(p.zQ=Bv.itemBuyUrl),p.iz=Bv.itemThumbnail||"",p.LW=Bv.offerHeadline|| "",p.Lw=Bv.offerDescription||"",p.Uh=Bv.offerId||"",p.WA=Bv.offerButtonText||"",p.tY=Bv.offerButtonFormattedText||null,p.NG=Bv.overlayDurationMsec||NaN,p.oa=Bv.fullVideoMessage||"",p.Pz=!0);if(U){var pY=g.n(U,uFH);if(pY)p.KM={raw_player_response:pY};else{var d1=g.n(U,Zzs);p.KM=d1?i1(d1):null}p.Pz=!0}}}var Hv=p.playerResponse.playbackTracking;if(Hv){var k=C,ES=tA(Hv.googleRemarketingUrl);ES&&(p.googleRemarketingUrl=ES);var my=tA(Hv.youtubeRemarketingUrl);my&&(p.youtubeRemarketingUrl=my);var i9={}, kH=tA(Hv.ptrackingUrl);if(kH){var hf=c7(kH),RF=hf.oid;RF&&(p.LI=RF);var cy=hf.pltype;cy&&(p.NU=cy);var g1=hf.ptchn;g1&&(p.WL=g1);var zt=hf.ptk;zt&&(p.jL=encodeURIComponent(zt));var El=hf.m;El&&(p.E5=El)}var zA=tA(Hv.qoeUrl);if(zA){for(var Rt=g.sk(zA),wI=g.F(Object.keys(Rt)),Dz=wI.next();!Dz.done;Dz=wI.next()){var L6=Dz.value,We=Rt[L6];Rt[L6]=Array.isArray(We)?We.join(","):We}p.n5=Rt;var $5=Rt.cat;$5&&(p.G("html5_enable_qoe_cat_list")?p.cP=p.cP.concat($5.split(",")):p.i8=$5);var M$=Rt.live;M$&&(p.fn= M$);var k7=Rt.drm_product;k7&&(p.K$=k7)}var oX=tA(Hv.videostatsPlaybackUrl);if(oX){var T9=c7(oX),x7=T9.adformat;if(x7){k.adformat=x7;var Rs=p.K(),kN=bay(x7,p.mU,Rs.S,Rs.D);kN&&(p.adFormat=kN)}var hc=T9.aqi;hc&&(k.ad_query_id=hc);var uK=T9.autoplay;uK&&(p.X4=uK=="1",p.dP=uK=="1",P7(p,"vss"));var Hy=T9.autonav;Hy&&(p.isAutonav=Hy=="1");var ZK=T9.delay;ZK&&(p.ER=h9(ZK));var $Q=T9.ei;$Q&&(p.eventId=$Q);if(T9.adcontext||x7)p.X4=!0,P7(p,"ad");var Tt=T9.feature;Tt&&(p.MR=Tt);var vc=T9.list;vc&&(p.playlistId= vc);var Fz=T9.of;Fz&&(p.hm=Fz);var Sb=T9.osid;Sb&&(p.osid=Sb);var d3=T9.referrer;d3&&(p.referrer=d3);var i4=T9.sdetail;i4&&(p.Aa=i4);var Kx=T9.sourceid;Kx&&(p.ux$=Kx);var i7=T9.ssrt;i7&&(p.vK=i7=="1");var h0=T9.subscribed;h0&&(p.subscribed=h0=="1",p.D.subscribed=h0);var DZ=T9.uga;DZ&&(p.userGenderAge=DZ);var uX=T9.upt;uX&&(p.Vs=uX);var ZZ=T9.vm;ZZ&&(p.videoMetadata=ZZ);i9.playback=T9}var UJ=tA(Hv.videostatsWatchtimeUrl);if(UJ){var fx=c7(UJ),OJ=fx.ald;OJ&&(p.Z4=OJ);i9.watchtime=fx}var UM=tA(Hv.atrUrl); if(UM){var bd=c7(UM);i9.atr=bd}var yE=tA(Hv.engageUrl);if(yE){var Al=c7(yE);i9.engage=Al}p.SE=i9;if(Hv.promotedPlaybackTracking){var LG=Hv.promotedPlaybackTracking;LG.startUrls&&(p.Hn=LG.startUrls);LG.firstQuartileUrls&&(p.Za=LG.firstQuartileUrls);LG.secondQuartileUrls&&(p.T2=LG.secondQuartileUrls);LG.thirdQuartileUrls&&(p.nj=LG.thirdQuartileUrls);LG.completeUrls&&(p.qq=LG.completeUrls);LG.engagedViewUrls&&(LG.engagedViewUrls.length>1&&g.eG(new g.Bw("There are more than one engaged_view_urls.")), p.uM=LG.engagedViewUrls[0])}}var JN=p.playerResponse.playerCueRanges;JN&&JN.length>0&&(p.cueRanges=JN);var qf=p.playerResponse.playerCueRangeSet;qf&&g.wP(p,qf);a:{var I7=p.playerResponse.adPlacements;if(I7)for(var bX=g.F(I7),sn=bX.next();!sn.done;sn=bX.next()){var Aj=void 0,o7=void 0,aD=(Aj=sn.value.adPlacementRenderer)==null?void 0:(o7=Aj.renderer)==null?void 0:o7.videoAdTrackingRenderer;if(aD){var k4=aD;break a}}k4=null}var x4=k4;Hv&&Hv.promotedPlaybackTracking&&x4&&g.eG(new g.Bw("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); x4&&(p.YZ=!0);var Y4=p.playerResponse.playerAds;if(Y4)for(var oM=C,zw=g.F(Y4),En=zw.next();!En.done;En=zw.next()){var R7=En.value;if(R7){var nx=R7.playerLegacyDesktopWatchAdsRenderer;if(nx){var fX=nx.playerAdParams;if(fX){fX.autoplay=="1"&&(p.X4=!0,p.dP=!0);p.Ts=fX.encodedAdSafetyReason||null;fX.showContentThumbnail!==void 0&&(p.Ov=!!fX.showContentThumbnail);oM.enabled_engage_types=fX.enabledEngageTypes;break}}}}var uB=p.playerResponse.playerConfig;if(uB){var hx=uB.manifestlessWindowedLiveConfig; if(hx){var l7=Number(hx.minDvrSequence),t0=Number(hx.maxDvrSequence),me=Number(hx.minDvrMediaTimeMs),vC=Number(hx.maxDvrMediaTimeMs),FD=Number(hx.startWalltimeMs);l7&&(p.AE=l7);me&&(p.vr=me/1E3,p.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(p)&&(p.Tz=me/1E3));t0&&(p.Qx=t0);vC&&(p.YM=vC/1E3,p.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(p)&&(p.lf=vC/1E3));FD&&(p.qW=FD/1E3);(l7||me)&&(t0||vC)&&(p.Wr=!0,p.isLivePlayback=!0,p.allowLiveDvr=!0,p.EO=!1)}var OM=uB.daiConfig; if(OM){if(OM.enableDai){p.tE=!0;var eb=OM.enableServerStitchedDai;eb&&(p.enableServerStitchedDai=eb);var Pc=OM.enablePreroll;Pc&&(p.enablePreroll=Pc)}var wN;if(OM.daiType==="DAI_TYPE_SS_DISABLED"||((wN=OM.debugInfo)==null?0:wN.isDisabledUnpluggedChannel))p.qf=!0;OM.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(p.Ig=!0)}var xN=uB.audioConfig;if(xN){var ch=xN.loudnessDb;ch!=null&&(p.Gp=ch);var SV=xN.trackAbsoluteLoudnessLkfs;SV!=null&&(p.vX=SV);var $4=xN.loudnessTargetLkfs;$4!=null&&(p.loudnessTargetLkfs= $4);xN.audioMuted&&(p.tB=!0);xN.muteOnStart&&(p.eM=!0);var K5=xN.loudnessNormalizationConfig;if(K5){K5.applyStatefulNormalization&&(p.applyStatefulNormalization=!0);K5.preserveStatefulLoudnessTarget&&(p.preserveStatefulLoudnessTarget=!0);var kA=K5.minimumLoudnessTargetLkfs;kA!=null&&(p.minimumLoudnessTargetLkfs=kA);var Ld=K5.maxStatefulTimeThresholdSec;Ld!=null&&(p.maxStatefulTimeThresholdSec=Ld)}p.G("web_player_audio_playback_from_audio_config")&&xN.playAudioOnly&&(p.XT=!0)}var KQ=uB.playbackEndConfig; if(KQ){var nuj=KQ.endSeconds,e4S=KQ.limitedPlaybackDurationInSeconds;p.mutedAutoplay&&(nuj&&(p.endSeconds=nuj),e4S&&(p.limitedPlaybackDurationInSeconds=e4S))}var xA=uB.fairPlayConfig;if(xA){var PG9=xA.certificate;PG9&&(p.UY=Nn(PG9));var w8u=Number(xA.keyRotationPeriodMs);w8u>0&&(p.hI=w8u);var $oY=Number(xA.keyPrefetchMarginMs);$oY>0&&(p.m0=$oY)}var T0=uB.playbackStartConfig;if(T0){p.eE=Number(T0.startSeconds);var Lku=T0.liveUtcStartSeconds,guu=!!p.liveUtcStartSeconds&&p.liveUtcStartSeconds>0;Lku&& !guu&&(p.liveUtcStartSeconds=Number(Lku));var DL=T0.startPosition;if(DL){var WkY=DL.utcTimeMillis;WkY&&!guu&&(p.liveUtcStartSeconds=Number(WkY)*.001);var Qjv=DL.streamTimeMillis;Qjv&&(p.o6=Number(Qjv)*.001)}p.progressBarStartPosition=T0.progressBarStartPosition;p.progressBarEndPosition=T0.progressBarEndPosition}else{var uE=uB.skippableSegmentsConfig;if(uE){var ryu=uE.introSkipDurationMs;ryu&&(p.jS=Number(ryu)/1E3);var BnH=uE.outroSkipDurationMs;BnH&&(p.Gy=Number(BnH)/1E3)}}var ZL=uB.skippableIntroConfig; if(ZL){var GlY=Number(ZL.startMs),pB9=Number(ZL.endMs);isNaN(GlY)||isNaN(pB9)||(p.I5=GlY,p.hE=pB9)}var Cv9=uB.streamSelectionConfig;Cv9&&(p.I6=Number(Cv9.maxBitrate));var jrH=uB.vrConfig;jrH&&(p.fQ=jrH.partialSpherical=="1");var Lx=uB.webDrmConfig;if(Lx){Lx.skipWidevine&&(p.r8=!0);var V9Q=Lx.widevineServiceCert;V9Q&&(p.td=Nn(V9Q));Lx.useCobaltWidevine&&(p.useCobaltWidevine=!0);Lx.startWithNoQualityConstraint&&(p.Kq=!0)}var yr=uB.mediaCommonConfig;if(yr){var YA=yr.dynamicReadaheadConfig;if(YA){p.maxReadAheadMediaTimeMs= YA.maxReadAheadMediaTimeMs||NaN;p.minReadAheadMediaTimeMs=YA.minReadAheadMediaTimeMs||NaN;p.readAheadGrowthRateMs=YA.readAheadGrowthRateMs||NaN;var NOH,HR1=yr==null?void 0:(NOH=yr.mediaUstreamerRequestConfig)==null?void 0:NOH.videoPlaybackUstreamerConfig;HR1&&(p.TU=Nn(HR1));var Uw=yr==null?void 0:yr.sabrContextUpdates;if(Uw&&Uw.length>0)for(var XBS=g.F(Uw),fQ=XBS.next();!fQ.done;fQ=XBS.next()){var Dh=fQ.value;if(Dh.type&&Dh.value){var UX5={type:Dh.type,scope:Dh.scope,value:Nn(Dh.value)||void 0,sendByDefault:Dh.sendByDefault}; p.sabrContextUpdates.set(Dh.type,UX5)}}}var dDV=yr.serverPlaybackStartConfig;dDV&&(p.serverPlaybackStartConfig=dDV);yr.useServerDrivenAbr&&(p.Rt=!0);var iRv=yr.requestPipeliningConfig;iRv&&(p.requestPipeliningConfig=iRv)}var h0v=uB.inlinePlaybackConfig;h0v&&(p.CK=!!h0v.showAudioControls);var z5=uB.embeddedPlayerConfig;if(z5){p.embeddedPlayerConfig=z5;var Ow=z5.embeddedPlayerMode;if(Ow){var srH=p.K();srH.Sa=Ow;srH.V=Ow==="EMBEDDED_PLAYER_MODE_PFL"}var asv=z5.permissions;asv&&(p.allowImaMonetization= !!asv.allowImaMonetization)}var EZL=uB.ssapConfig;EZL&&(p.xV=EZL.ssapPrerollEnabled||!1);var RM=uB.webPlayerConfig;RM&&(RM.gatewayExperimentGroup&&(p.gatewayExperimentGroup=RM.gatewayExperimentGroup),RM.isProximaEligible&&(p.isProximaLatencyEligible=!0))}var qP=p.playerResponse.streamingData;if(qP){var yp=qP.formats;if(yp){for(var gN=[],lsY=g.F(yp),qu=lsY.next();!qu.done;qu=lsY.next()){var Im=qu.value;gN.push(Im.itag+"/"+Im.width+"x"+Im.height)}p.g1=gN.join(",");gN=[];for(var t9e=g.F(yp),bE=t9e.next();!bE.done;bE= t9e.next()){var Wc=bE.value,QE={itag:Wc.itag,type:Wc.mimeType,quality:Wc.quality},cnH=Wc.url;cnH&&(QE.url=cnH);var nf=Zy(Wc),fu2=nf.TT,OH1=nf.Kl,yb1=nf.s;nf.m7&&(QE.url=fu2,QE.sp=OH1,QE.s=yb1);gN.push(g.BX(QE))}p.jZ=gN.join(",")}var AS=qP.hlsFormats;if(AS){var TOS=uB||null,eK={};if(TOS){var om=TOS.audioPairingConfig;if(om&&om.pairs)for(var M9V=g.F(om.pairs),kz=M9V.next();!kz.done;kz=M9V.next()){var Jny=kz.value,xz=Jny.videoItag;eK[xz]||(eK[xz]=[]);eK[xz].push(Jny.audioItag)}}for(var mDe={},vZX=g.F(AS), Yz=vZX.next();!Yz.done;Yz=vZX.next()){var FQV=Yz.value;mDe[FQV.itag]=FQV.bitrate}for(var SN9=[],KQH=g.F(AS),zZ=KQH.next();!zZ.done;zZ=KQH.next()){var Qf=zZ.value,sE={itag:Qf.itag,type:Qf.mimeType,url:Qf.url,bitrate:Qf.bitrate,width:Qf.width,height:Qf.height,fps:Qf.fps},P_=Qf.audioTrack;if(P_){var DDv=P_.displayName;DDv&&(sE.name=DDv,sE.audio_track_id=P_.id,P_.audioIsDefault&&(sE.is_default="1"))}if(Qf.drmFamilies){for(var uNV=[],ZR9=g.F(Qf.drmFamilies),Rm=ZR9.next();!Rm.done;Rm=ZR9.next())uNV.push(a5[Rm.value]); sE.drm_families=uNV.join(",")}var ws=eK[Qf.itag];if(ws&&ws.length){sE.audio_itag=ws.join(",");var UDH=mDe[ws[0]];UDH&&(sE.bitrate+=UDH)}var fsS=DVs(Qf);fsS&&(sE.eotf=fsS);Qf.audioChannels&&(sE.audio_channels=Qf.audioChannels);SN9.push(g.BX(sE))}p.hlsFormats=SN9.join(",")}var nQ=qP.licenseInfos;if(nQ&&nQ.length>0){for(var ORa={},yn1=g.F(nQ),ec=yn1.next();!ec.done;ec=yn1.next()){var qNv=ec.value,Is1=qNv.drmFamily,bRS=qNv.url;Is1&&bRS&&(ORa[a5[Is1]]=bRS)}p.vV=ORa}var AnL=qP.drmParams;AnL&&(p.drmParams= AnL);var oZe=qP.dashManifestUrl;oZe&&(p.RN=g.GD(oZe,{cpn:p.clientPlaybackNonce}));var kxe=qP.hlsManifestUrl;kxe&&(p.hlsvp=kxe);var xDv=qP.probeUrl;xDv&&(p.probeUrl=iG(g.GD(xDv,{cpn:p.clientPlaybackNonce})));var YNv=qP.serverAbrStreamingUrl;YNv&&(p.gh=new g.v1(YNv,!0))}var z0s=p.playerResponse.trackingParams;z0s&&(p.Sa=z0s);var p_=p.playerResponse.videoDetails;if(p_){var a9=C,PA=p_.videoId;PA&&(p.videoId=PA,a9.video_id||(a9.video_id=PA));var R0s=p_.channelId;R0s&&(p.D.uid=R0s.substring(2));var wa= p_.title;wa&&(p.title=wa,a9.title||(a9.title=wa));var $z=p_.lengthSeconds;$z&&(p.lengthSeconds=Number($z),a9.length_seconds||(a9.length_seconds=$z));var nZe=p_.keywords;nZe&&(p.keywords=J5V(nZe));var LQ=p_.channelId;LQ&&(p.eI=LQ,a9.ucid||(a9.ucid=LQ));var e0u=p_.viewCount;e0u&&(p.rawViewCount=Number(e0u));var WA=p_.author;WA&&(p.author=WA,a9.author||(a9.author=WA));var PvX=p_.shortDescription;PvX&&(p.shortDescription=PvX);var wB9=p_.isCrawlable;wB9&&(p.isListed=wB9);var $Dj=p_.musicVideoType;$Dj&& (p.musicVideoType=$Dj);var Qp=p_.isLive;Qp!=null&&(p.isLivePlayback=Qp);if(Qp||p_.isUpcoming)p.isPremiere=!p_.isLiveContent;var LQH=p_.thumbnail;LQH&&(p.Z=ls(LQH));var gZ1=p_.isExternallyHostedPodcast;gZ1&&(p.isExternallyHostedPodcast=gZ1);var ra=p_.viewerLivestreamJoinPosition;if(ra==null?0:ra.utcTimeMillis)p.vA=h9(ra.utcTimeMillis);var WQj=uB||null,BA=C;p_.isLiveDefaultBroadcast&&(p.isLiveDefaultBroadcast=!0);p_.isUpcoming&&(p.isUpcoming=!0);if(p_.isPostLiveDvr){p.EO=!0;var Qre=p_.latencyClass; Qre&&(p.latencyClass=UOQ[Qre]||"UNKNOWN");p_.isLowLatencyLiveStream&&(p.isLowLatencyLiveStream=!0)}else{var GZ=!1;if(p.qo)p.allowLiveDvr=Bb()?!0:jz&&Lk<5?!1:!0,p.isLivePlayback=!0;else if(p_.isLive){BA.livestream="1";p.allowLiveDvr=p_.isLiveDvrEnabled?Bb()?!0:jz&&Lk<5?!1:!0:!1;p.partnerId=27;p_.isLowLatencyLiveStream&&(p.isLowLatencyLiveStream=!0);var BO1=p_.latencyClass;BO1&&(p.latencyClass=UOQ[BO1]||"UNKNOWN");var GxY=p_.liveChunkReadahead;GxY&&(p.liveChunkReadahead=GxY);var MQ=WQj&&WQj.livePlayerConfig; if(MQ){MQ.hasSubfragmentedFmp4&&(p.hasSubfragmentedFmp4=!0);MQ.hasSubfragmentedWebm&&(p.Wo=!0);MQ.defraggedFromSubfragments&&(p.defraggedFromSubfragments=!0);var pc1=MQ.liveExperimentalContentId;pc1&&(p.liveExperimentalContentId=Number(pc1));var CXe=MQ.isLiveHeadPlayable;p.G("html5_live_head_playable")&&CXe!=null&&(p.isLiveHeadPlayable=CXe)}GZ=!0}else p_.isUpcoming&&(GZ=!0);GZ&&(p.isLivePlayback=!0,BA.adformat&&BA.adformat.split("_")[1]!=="8"||p.Vn.push("heartbeat"),p.W8=!0)}var j7L=p_.isPrivate; j7L!==void 0&&(p.isPrivate=iO(p.isPrivate,j7L))}if(W){var Vbe=p_||null,NNS=!1,J0=W.errorScreen;NNS=J0&&(J0.playerLegacyDesktopYpcOfferRenderer||J0.playerLegacyDesktopYpcTrailerRenderer||J0.ypcTrailerRenderer)?!0:Vbe&&Vbe.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(W.status);if(!NNS){p.errorCode=Za1(W.errorCode)||"auth";var $A=J0&&J0.playerErrorMessageRenderer;if($A){p.playerErrorMessageRenderer=$A;var Hx1=$A.reason;Hx1&&(p.errorReason=g.uq(Hx1));var pi=$A.subreason;pi&&(p.Ck= g.uq(pi),p.QR=pi)}else p.errorReason=W.reason||null;var Ci=W.status;if(Ci==="LOGIN_REQUIRED")p.errorDetail="1";else if(Ci==="CONTENT_CHECK_REQUIRED")p.errorDetail="2";else if(Ci==="AGE_CHECK_REQUIRED"){var XcX=W.errorScreen,dfH=XcX&&XcX.playerKavRenderer;p.errorDetail=dfH&&dfH.kavUrl?"4":"3"}else p.errorDetail=W.isBlockedInRestrictedMode?"5":"0"}}var ix1=p.playerResponse.interstitialPods;ix1&&Ree(p,ix1);p.R$&&p.eventId&&(p.R$=Ek(p.R$,{ei:p.eventId}));var jR=p.playerResponse.captions;if(jR&&jR.playerCaptionsTracklistRenderer)a:{var EE= jR.playerCaptionsTracklistRenderer;p.captionTracks=[];if(EE.captionTracks)for(var hcV=g.F(EE.captionTracks),VY=hcV.next();!VY.done;VY=hcV.next()){var l4=VY.value,s71=c5v(l4.baseUrl);if(!s71)break a;var NH={is_translateable:!!l4.isTranslatable,languageCode:l4.languageCode,languageName:l4.name&&g.uq(l4.name),url:s71,vss_id:l4.vssId,kind:l4.kind};NH.name=l4.trackName;NH.displayName=l4.name&&g.uq(l4.name);p.captionTracks.push(new g.is(NH))}p.uj=EE.audioTracks||[];p.Rm=EE.defaultAudioTrackIndex||0;p.AI= [];if(EE.translationLanguages)for(var aZ9=g.F(EE.translationLanguages),Hm=aZ9.next();!Hm.done;Hm=aZ9.next()){var mc=Hm.value,Zh={};Zh.languageCode=mc.languageCode;Zh.languageName=g.uq(mc.languageName);if(mc.translationSourceTrackIndices){Zh.translationSourceTrackIndices=[];for(var E4V=g.F(mc.translationSourceTrackIndices),X$=E4V.next();!X$.done;X$=E4V.next())Zh.translationSourceTrackIndices.push(X$.value)}if(mc.excludeAudioTrackIndices){Zh.excludeAudioTrackIndices=[];for(var lZQ=g.F(mc.excludeAudioTrackIndices), dj=lZQ.next();!dj.done;dj=lZQ.next())Zh.excludeAudioTrackIndices.push(dj.value)}p.AI.push(Zh)}p.z2=[];if(EE.defaultTranslationSourceTrackIndices)for(var tbv=g.F(EE.defaultTranslationSourceTrackIndices),iy=tbv.next();!iy.done;iy=tbv.next())p.z2.push(iy.value);p.CA=!!EE.contribute&&!!EE.contribute.captionsMetadataRenderer}p.clipConfig=p.playerResponse.clipConfig;p.clipConfig&&p.clipConfig.startTimeMs!=null&&(p.eE=Number(p.clipConfig.startTimeMs)*.001);p.playerResponse&&p.playerResponse.playerConfig&& p.playerResponse.playerConfig.webPlayerConfig&&p.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&eeu(p,p.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var cj9;p.compositeLiveIngestionOffsetToken=(cj9=p.playerResponse.playbackTracking)==null?void 0:cj9.compositeLiveIngestionOffsetToken;var TNu;p.compositeLiveStatusToken=(TNu=p.playerResponse.playbackTracking)==null?void 0:TNu.compositeLiveStatusToken}nk(p,C);C.queue_info&&(p.queueInfo=C.queue_info);var Mba= C.hlsdvr;Mba!=null&&(p.allowLiveDvr=Number(Mba)===1?Bb()?!0:jz&&Lk<5?!1:!0:!1);p.adQueryId=C.ad_query_id||null;p.Ts||(p.Ts=C.encoded_ad_safety_reason||null);p.Fd=C.agcid||null;p.bj=C.ad_id||null;p.xu=C.ad_sys||null;p.Jw=C.encoded_ad_playback_context||null;p.tB=iO(p.tB,C.infringe||C.muted);p.jl=C.authkey;p.BM=C.authuser;p.mutedAutoplay=iO(p.mutedAutoplay,C&&C.playmuted);p.G("embeds_enable_full_length_inline_muted_autoplay")&&(p.mutedAutoplayDurationMode=sB(p.mutedAutoplayDurationMode,C&&C.muted_autoplay_duration_mode)); p.Ep=iO(p.Ep,C&&C.mutedautoplay);var Lf=C.length_seconds;Lf&&(p.lengthSeconds=typeof Lf==="string"?h9(Lf):Lf);if(p.isAd()||p.Kp||!g.cw(g.Ig(p.I$)))p.endSeconds=sB(p.endSeconds,p.Gy||C.end||C.endSeconds);else{var qQ8=g.Ig(p.I$),gs=p.lengthSeconds;switch(qQ8){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":gs>30?p.limitedPlaybackDurationInSeconds=30:gs<30&&gs>10&&(p.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":p.limitedPlaybackDurationInSeconds= gs*.2}}p.Sa=a_(p.Sa,C.itct);p.Zq=iO(p.Zq,C.noiba);p.ub=iO(p.ub,C.is_live_destination);p.isLivePlayback=iO(p.isLivePlayback,C.live_playback);p.enableServerStitchedDai=p.enableServerStitchedDai&&p.p4();C.isUpcoming&&(p.isUpcoming=iO(p.isUpcoming,C.isUpcoming));p.EO=iO(p.EO,C.post_live_playback);p.Wr&&(p.EO=!1);p.isMdxPlayback=iO(p.isMdxPlayback,C.mdx);var W_=C.mdx_control_mode;W_&&(p.mdxControlMode=typeof W_==="number"?W_:h9(W_));p.isInlinePlaybackNoAd=iO(p.isInlinePlaybackNoAd,C.is_inline_playback_no_ad); p.wy=sB(p.wy,C.reload_count);p.reloadReason=a_(p.reloadReason,C.reload_reason);p.Ov=iO(p.Ov,C.show_content_thumbnail);p.vx=iO(p.vx,C.utpsa);p.cycToken=C.cyc||null;p.ij=C.tkn||null;var JjH=Ej(C);Object.keys(JjH).length>0&&(p.Z=JjH);p.b_=a_(p.b_,C.vvt);p.mdxEnvironment=a_(p.mdxEnvironment,C.mdx_environment);C.source_container_playlist_id&&(p.sourceContainerPlaylistId=C.source_container_playlist_id);C.serialized_mdx_metadata&&(p.serializedMdxMetadata=C.serialized_mdx_metadata);p.ql=C.osig;p.eventId|| (p.eventId=C.eventid);p.osid||(p.osid=C.osid);p.playlistId=a_(p.playlistId,C.list);C.index&&(p.playlistIndex=p.playlistIndex===void 0?sB(0,C.index):sB(p.playlistIndex,C.index));p.FX=C.pyv_view_beacon_url;p.q0=C.pyv_quartile25_beacon_url;p.rT=C.pyv_quartile50_beacon_url;p.kc=C.pyv_quartile75_beacon_url;p.Jh=C.pyv_quartile100_beacon_url;var mfy=C.session_data;!p.pz&&mfy&&(p.pz=X5(mfy,"&").feature);p.isFling=sB(p.isFling?1:0,C.is_fling)===1;p.vnd=sB(p.vnd,C.vnd);p.forceAdsUrl=a_(p.forceAdsUrl,C.force_ads_url); p.wx=a_(p.wx,C.ctrl);p.eH=a_(p.eH,C.ytr);p.Bb=C.ytrcc;p.A0=C.ytrexp;p.AY=C.ytrext;p.Q$=a_(p.Q$,C.adformat);p.mU=a_(p.mU,C.attrib);p.slotPosition=sB(p.slotPosition,C.slot_pos);p.breakType=C.break_type;p.vK=iO(p.vK,C.ssrt);p.videoId=lO(C)||p.videoId;p.Y=a_(p.Y,C.vss_credentials_token);p.B_=a_(p.B_,C.vss_credentials_token_type);p.XT=iO(p.XT,C.audio_only);p.Wc=iO(p.Wc,C.aac_high);p.Mq=iO(p.Mq,C.prefer_low_quality_audio);p.pj=iO(p.pj,C.uncap_inline_quality);p.G("html5_enable_qoe_cat_list")?C.qoe_cat&& (p.cP=p.cP.concat(C.qoe_cat.split(","))):p.i8=a_(p.i8,C.qoe_cat);p.Om=iO(p.Om,C.download_media);var v49=C.prefer_gapless;var IuF=v49!=null?iO(p.J,v49):p.J?p.J:p.I$.preferGapless&&p.I$.supportsGaplessShorts();p.J=IuF;esL(p.playerResponse)&&(p.Vn.push("ad"),p.G("html5_ssap_pacf_qoe_ctmp")&&p.k_("ssap",{npa:0}));var FuX=C.adaptive_fmts;FuX&&(p.adaptiveFormats=FuX,p.k_("adpfmts",{},!0));var SJv=C.allow_embed;SJv&&(p.allowEmbed=Number(SJv)===1);var KuL=C.backgroundable;KuL&&(p.backgroundable=Number(KuL)=== 1);var Dfy=C.autonav;Dfy&&(p.isAutonav=Number(Dfy)===1);var uz9=C.autoplay;uz9&&(p.dP=Number(uz9)===1,p.X4=p.dP,P7(p,"c"));var ZxL=C.iv_load_policy;ZxL&&(p.annotationsLoadPolicy=hm(p.annotationsLoadPolicy,ZxL,bL));var Ufv=C.cc_lang_pref;Ufv&&(p.captionsLanguagePreference=a_(Ufv,p.captionsLanguagePreference));var fZV=C.cc_load_policy;fZV&&(p.FD=hm(p.FD,fZV,bL));var OxV;p.deviceCaptionsOn=(OxV=C.device_captions_on)!=null?OxV:void 0;var yjL;p.kV=(yjL=C.device_captions_lang_pref)!=null?yjL:"";var qJH; p.Dp=(qJH=C.viewer_selected_caption_langs)!=null?qJH:[];if(!p.G("html5_enable_ssap_entity_id")){var IZV=C.cached_load;IZV&&(p.WP=iO(p.WP,IZV))}if(C.dash==="0"||C.dash===0||C.dash===!1)p.Pv=!0;var bxy=C.dashmpd;bxy&&(p.RN=g.GD(bxy,{cpn:p.clientPlaybackNonce}));var AjX=C.delay;AjX&&(p.ER=h9(AjX));var hv=p.Gy||C.end;if(p.VZ?hv!=null:hv!=void 0)p.clipEnd=sB(p.clipEnd,hv);var o4y=C.fmt_list;o4y&&(p.g1=o4y);C.heartbeat_preroll&&p.Vn.push("heartbeat");p.Um=-Math.floor(Math.random()*10);p.JV=-Math.floor(Math.random()* 40);var kwS=C.is_listed;kwS&&(p.isListed=iO(p.isListed,kwS));var xfy=C.is_private;xfy&&(p.isPrivate=iO(p.isPrivate,xfy));var YJV=C.is_dni;YJV&&(p.UV=iO(p.UV,YJV));var zcX=C.dni_color;zcX&&(p.PP=a_(p.PP,zcX));var RcQ=C.pipable;RcQ&&(p.pipable=iO(p.pipable,RcQ));p.q8=p.pipable&&p.I$.QP;p.vM=p.q8&&!p.I$.showMiniplayerButton;var n4Y=C.paid_content_overlay_duration_ms;n4Y&&(p.paidContentOverlayDurationMs=h9(n4Y));var ecL=C.paid_content_overlay_text;ecL&&(p.paidContentOverlayText=ecL);var PXS=C.url_encoded_fmt_stream_map; PXS&&(p.jZ=PXS);var wcu=C.hls_formats;wcu&&(p.hlsFormats=wcu);var $fQ=C.hlsvp;$fQ&&(p.hlsvp=$fQ);var QB=C.live_start_walltime;QB&&(p.Ln=typeof QB==="number"?QB:h9(QB));var rs=C.live_manifest_duration;rs&&(p.gR=typeof rs==="number"?rs:h9(rs));var Luj=C.player_params;Luj&&(p.playerParams=Luj);var g4L=C.partnerid;g4L&&(p.partnerId=sB(p.partnerId,g4L));var Wuv=C.probe_url;Wuv&&(p.probeUrl=iG(g.GD(Wuv,{cpn:p.clientPlaybackNonce})));var sY=C.pyv_billable_url;sY&&Czv(sY)&&(p.uM=sY);var aG=C.pyv_conv_url; aG&&Czv(aG)&&(p.iB=aG);mOY(p,C);p.startSeconds>0?p.G("html5_log_start_seconds_inconsistency")&&p.startSeconds!==(p.eE||p.jS||C.start||C.startSeconds)&&p.k_("lss",{css:p.startSeconds,pcss:p.eE,iss:p.jS,ps:C.start||void 0,pss:C.startSeconds||void 0}):(p.startSeconds=sB(p.startSeconds,p.eE||p.jS||C.start||C.startSeconds),p.Hc=p.startSeconds);if(!(p.liveUtcStartSeconds&&p.liveUtcStartSeconds>0)){var Q7H=C.live_utc_start;if(Q7H!=null)p.liveUtcStartSeconds=Number(Q7H);else{var EY=p.startSeconds;EY&&isFinite(EY)&& EY>1E9&&(p.liveUtcStartSeconds=p.startSeconds)}}if(!(p.liveUtcStartSeconds&&p.liveUtcStartSeconds>0)){var rjL=C.utc_start_millis;rjL&&(p.liveUtcStartSeconds=Number(rjL)*.001)}var BNV=C.stream_time_start_millis;BNV&&(p.o6=Number(BNV)*.001);var ly=p.jS||C.start;(p.VZ?ly==null||Number(C.resume)===1:ly==void 0||C.resume=="1")||p.isLivePlayback||(p.clipStart=sB(p.clipStart,ly));var Gwa=C.url_encoded_third_party_media;Gwa&&(p.BI=hw(Gwa));var tv=C.ypc_offer_button_formatted_text;if(tv){var pjv=JSON.parse(tv); p.tY=pjv!=null?pjv:null;p.GH=tv}var CUH=C.ypc_offer_button_text;CUH&&(p.WA=CUH);var jke=C.ypc_offer_description;jke&&(p.Lw=jke);var V61=C.ypc_offer_headline;V61&&(p.LW=V61);var Nle=C.ypc_full_video_message;Nle&&(p.oa=Nle);var HV9=C.ypc_offer_id;HV9&&(p.Uh=HV9);var Xj9=C.ypc_buy_url;Xj9&&(p.zQ=Xj9);var drX=C.ypc_item_thumbnail;drX&&(p.iz=drX);var iVH=C.ypc_item_title;iVH&&(p.i6=iVH);var hRL=C.ypc_item_url;hRL&&(p.fW=hRL);var skS=C.ypc_vid;skS&&(p.Gf=skS);C.ypc_overlay_timeout&&(p.NG=Number(C.ypc_overlay_timeout)); var a51=C.ypc_trailer_player_vars;a51&&(p.KM=i1(a51));var ELe=C.ypc_original_itct;ELe&&(p.V3=ELe);p.eI=a_(p.eI,C.ucid);C.baseUrl&&(p.D.baseUrl=C.baseUrl);C.uid&&(p.D.uid=C.uid);C.oeid&&(p.D.oeid=C.oeid);C.ieid&&(p.D.ieid=C.ieid);C.ppe&&(p.D.ppe=C.ppe);C.engaged&&(p.D.engaged=C.engaged);C.subscribed&&(p.D.subscribed=C.subscribed);p.D.focEnabled=iO(p.D.focEnabled,C.focEnabled);p.D.rmktEnabled=iO(p.D.rmktEnabled,C.rmktEnabled);p.ra=C.storyboard_spec||null;p.Pj=C.live_storyboard_spec||null;p.zw=C.iv_endscreen_url|| null;p.zy=iO(p.zy,C.iv3_module);p.W8=iO(p.W8,C.ypc_license_checker_module);p.Pz=iO(p.Pz,C.ypc_module);p.qn=iO(p.qn,C.ypc_clickwrap_module);p.Pz&&p.Vn.push("ypc");p.qn&&p.Vn.push("ypc_clickwrap");p.PL={video_id:C.video_id,eventid:C.eventid,cbrand:C.cbrand,cbr:C.cbr,cbrver:C.cbrver,c:C.c,cver:C.cver,ctheme:C.ctheme,cplayer:C.cplayer,cmodel:C.cmodel,cnetwork:C.cnetwork,cos:C.cos,cosver:C.cosver,cplatform:C.cplatform,user_age:C.user_age,user_display_image:C.user_display_image,user_display_name:C.user_display_name, user_gender:C.user_gender,csi_page_type:C.csi_page_type,csi_service_name:C.csi_service_name,enablecsi:C.enablecsi,enabled_engage_types:C.enabled_engage_types};t3u(p,C);var l5a=C.cotn;l5a&&(p.cotn=l5a);if(fFs(p))gP(p)&&(p.isLivePlayback&&p.RN&&(p.AX=!0),p.UY&&(p.sx=!0));else if(OzQ(p))p.AX=!0;else{var TlQ,M6a,JKL=((TlQ=p.playerResponse)==null?void 0:(M6a=TlQ.streamingData)==null?void 0:M6a.adaptiveFormats)||[];if(JKL.length>0)var Bc=y5Y(p,JKL);else{var vLy=p.adaptiveFormats;if(vLy&&!gP(p)){W7(p,"html5_enable_cobalt_experimental_vp9_decoder")&& (D8=!0);var vh=Qs(vLy),cm=p.vV,FEv=p.lengthSeconds,bHf=p.isLivePlayback,Gw=p.EO,FX=p.I$,Abr=zhQ(vh);if(bHf||Gw){var S3j=FX==null?void 0:FX.experiments,YN=new hz("",S3j,!0);YN.p4=!0;YN.isManifestless=!0;YN.C=!Gw;YN.isLive=!Gw;YN.EO=Gw;for(var KEe=g.F(vh),Tg=KEe.next();!Tg.done;Tg=KEe.next()){var Si=Tg.value,Drv=lo(Si,cm),UX=tz(Si.url,Si.sp,Si.s),uOH=UX.get("id");uOH&&uOH.includes("%7E")&&(YN.Z=!0);var ZVQ=void 0,oe0=(ZVQ=S3j)==null?void 0:ZVQ.OY("html5_max_known_end_time_rebase"),kN8=Number(Si.target_duration_sec)|| 5,xXF=Number(Si.max_dvr_duration_sec)||14400,UrS=Number(UX.get("mindsq")||UX.get("min_sq")||"0"),f59=Number(UX.get("maxdsq")||UX.get("max_sq")||"0")||Infinity;YN.AE=YN.AE||UrS;YN.Qx=YN.Qx||f59;var YQ8=!Xz(Drv.mimeType);UX&&X1(YN,new Lp(UX,Drv,{Ym:kN8,MO:YQ8,nV:xXF,AE:UrS,Qx:f59,KQ:300,EO:Gw,nh:oe0}))}var OV9=YN}else{if(Abr==="FORMAT_STREAM_TYPE_OTF"){var G5=FEv;G5=G5===void 0?0:G5;var KS=new hz("",FX==null?void 0:FX.experiments,!1);KS.duration=G5||0;for(var yKu=g.F(vh),MH=yKu.next();!MH.done;MH=yKu.next()){var Da= MH.value,Jv=lo(Da,cm,KS.duration),m3=tz(Da.url,Da.sp,Da.s);if(m3)if(Jv.streamType==="FORMAT_STREAM_TYPE_OTF")X1(KS,new gz(m3,Jv,"sq/0"));else{var zJp=uw(Da.init),RJF=uw(Da.index);X1(KS,new VM(m3,Jv,zJp,RJF))}}KS.isOtf=!0;var q3v=KS}else{var pT=FEv;pT=pT===void 0?0:pT;var CT=new hz("",FX==null?void 0:FX.experiments,!1);CT.duration=pT||0;for(var I5H=g.F(vh),vm=I5H.next();!vm.done;vm=I5H.next()){var u7=vm.value,ner=lo(u7,cm,CT.duration),eJG=uw(u7.init),P00=uw(u7.index),bVs=tz(u7.url,u7.sp,u7.s);bVs&& X1(CT,new VM(bVs,ner,eJG,P00))}q3v=CT}OV9=q3v}var AK1=OV9;if(vh.length>0){var oLu=vh[0];if(p.K().playerStyle==="hangouts-meet"&&oLu.url){var wn2=g.sk(oLu.url);p.lL=p.lL||Number(wn2.expire)}}var $Xv=p.isLivePlayback&&!p.EO&&!p.Wr&&!p.isPremiere;p.G("html5_live_head_playable")&&(!rP(p)&&$Xv&&p.k_("missingLiveHeadPlayable",{}),p.I$.a$==="yt"&&(AK1.R$=!0));Bc=AK1}else Bc=null;p.k_("pafmts",{isManifestFilled:!!Bc})}if(Bc){B7(p,Bc);var kP1=!0}else kP1=!1;kP1?p.enableServerStitchedDai=p.enableServerStitchedDai&& Ge(p):p.RN&&(p.I$.a$==="yt"&&p.p4()&&p.G("drm_manifestless_unplugged")&&p.G("html5_deprecate_manifestful_fallback")?p.k_("deprecateMflFallback",{}):p.AX=!0)}var SR=C.adpings;SR&&(p.yR=SR?i1(SR):null);var xrY=C.feature;xrY&&(p.MR=xrY);var Y3u=C.referrer;Y3u&&(p.referrer=Y3u);p.clientScreenNonce=a_(p.clientScreenNonce,C.csn);p.uK=sB(p.uK,C.root_ve_type);p.Ic=sB(p.Ic,C.kids_age_up_mode);p.VZ||C.kids_app_info==void 0||(p.kidsAppInfo=C.kids_app_info);p.VZ&&C.kids_app_info!=null&&(p.kidsAppInfo=C.kids_app_info); p.Su=iO(p.Su,C.upg_content_filter_mode);p.unpluggedFilterModeType=sB(p.unpluggedFilterModeType,C.unplugged_filter_mode_type);var zRH=C.unplugged_location_info;zRH&&(p.a$=zRH);var RR1=C.unplugged_partner_opt_out;RR1&&(p.ym=a_("",RR1));p.SA=iO(p.SA,C.disable_watch_next);p.oi=a_(p.oi,C.internal_ip_override);p.E7=!!C.is_yto_interstitial;(p.interstitials.length||p.E7)&&p.Vn.push("yto");var nLQ=C.mm;nLQ&&(p.mm=nLQ);var eRv;p.Y_=(eRv=C.csi_timer)!=null?eRv:"";p.Q1=!!C.force_gvi;C.watchUrl&&(p.watchUrl=C.watchUrl); var f5=C.watch_endpoint;p.G("html5_attach_watch_endpoint_ustreamer_config")&&f5&&fYe(p,f5);if(f5==null?0:f5.ustreamerConfig)p.ac=Nn(f5.ustreamerConfig);var PUQ,wjX,$rX=f5==null?void 0:(PUQ=f5.loggingContext)==null?void 0:(wjX=PUQ.qoeLoggingContext)==null?void 0:wjX.serializedContextData;$rX&&(p.bl=$rX);g.KI(p.I$)&&p.I$.Ov&&(p.embedsRct=a_(p.embedsRct,C.rct),p.embedsRctn=a_(p.embedsRctn,C.rctn));p.Of=p.Of||!!C.pause_at_start;C.default_active_source_video_id&&(p.defaultActiveSourceVideoId=C.default_active_source_video_id)}; M39=function(p,C,V){var N,H=(N=C.cpnInfo)==null?void 0:N.cpn;p.playerResponseCpn=H!=null?H:"";g.pf(p)&&!H&&p.x8("ssei","eim_"+p.clientPlaybackNonce);var X;return((X=C.cacheMetadata)==null?0:X.isCacheHit)||p.WP||!H?"":(Cf.has(H)?V="":(C=qi9.push(H),Cf.add(H),C>(V!=null?V:50)&&(V=qi9.shift())&&Cf.delete(V),V=H),H!==V&&p.x8("ssei","dcpn_"+H+"_"+V+"_"+p.clientPlaybackNonce),V)}; nk=function(p,C){var V=C.raw_watch_next_response;if(!V){var N=C.watch_next_response;N&&(V=JSON.parse(N))}if(V){p.Ga=V;var H=p.Ga.playerCueRangeSet;H&&g.wP(p,H);var X=p.Ga.playerOverlays;if(X){var d=X.playerOverlayRenderer;if(d){var a=d.autonavToggle;a&&(p.autoplaySwitchButtonRenderer=g.n(a,IFS),p.G("web_player_autonav_use_server_provided_state")&&jK(p)&&(p.autonavState=p.autoplaySwitchButtonRenderer.enabled?2:1));var E=d.videoDetails;if(E){var l=E.embeddedPlayerOverlayVideoDetailsRenderer;var t=E.playerOverlayVideoDetailsRenderer; t&&(t.title&&(C.title=g.uq(t.title)),t.subtitle&&(C.subtitle=g.uq(t.subtitle)))}g.Oe(p.I$)&&(p.cV=!!d.addToMenu);bzY(p,d.shareButton);d.startPosition&&d.endPosition&&(p.progressBarStartPosition=d.startPosition,p.progressBarEndPosition=d.endPosition);var c=d.gatedActionsOverlayRenderer;c&&(p.lS=g.n(c,A59));var T,M,J,S=g.n((T=p.getWatchNextResponse())==null?void 0:(M=T.playerOverlays)==null?void 0:(J=M.playerOverlayRenderer)==null?void 0:J.infoPanel,o1L);if(S){p.Vw=Number(S==null?void 0:S.durationMs)|| NaN;if(S==null?0:S.infoPanelOverviewViewModel)p.W1=S==null?void 0:S.infoPanelOverviewViewModel;if(S==null?0:S.infoPanelDetailsViewModel)p.lM=S==null?void 0:S.infoPanelDetailsViewModel}p.showSeekingControls=!!d.showSeekingControls}}var D,Z,f=(D=p.getWatchNextResponse())==null?void 0:(Z=D.contents)==null?void 0:Z.twoColumnWatchNextResults;if(f){var q=f.desktopOverlay&&g.n(f.desktopOverlay,kvX);q&&(q.suppressShareButton&&(p.showShareButton=!1),q.suppressWatchLaterButton&&(p.cV=!1))}l&&xOQ(p,C,l);var A= sB(0,C.autoplay_count),z=p.getWatchNextResponse(),Q,P=(Q=z.contents)==null?void 0:Q.twoColumnWatchNextResults,VL,au,W,e=(VL=z.playerOverlays)==null?void 0:(au=VL.playerOverlayRenderer)==null?void 0:(W=au.autoplay)==null?void 0:W.playerOverlayAutoplayRenderer,B=w0V(p),v,w=(v=z.contents)==null?void 0:v.singleColumnWatchNextResults;if(w){var C0;if(((C0=w.autoplay)==null?0:C0.autoplay)&&!w.playlist){var FG=w.autoplay.autoplay.sets,Nc={},OS=new g.mx(p.K()),V8=null,Tp;if(FG){for(var Bv=g.F(FG),u=Bv.next();!u.done;u= Bv.next()){var U=u.value.autoplayVideoRenderer;if(U&&U.compactVideoRenderer){V8=U.compactVideoRenderer;break}}if(Tp=FG[0].autoplayVideo){var O=Tp.clickTrackingParams;O&&(Nc.itct=O);Nc.autonav="1";Nc.playnext=String(A)}}else Nc.feature="related-auto";var b=g.n(Tp,g.VB);if(V8){OS.videoId=V8.videoId;var x=V8.shortBylineText;x&&(OS.author=g.uq(x));var pY=V8.title;pY&&(OS.title=g.uq(pY))}else b!=null&&b.videoId&&(OS.videoId=b.videoId);OS.e9=Nc;p.suggestions=[];p.bv=OS}}if(B){for(var d1=[],Hv=g.F(B),k= Hv.next();!k.done;k=Hv.next()){var ES=k.value,my=void 0,i9=null;if(ES.endScreenVideoRenderer){var kH=ES.endScreenVideoRenderer,hf=kH.title;i9=new g.mx(p.K());i9.videoId=kH.videoId;i9.lengthSeconds=kH.lengthInSeconds||0;var RF=kH.publishedTimeText;RF&&(i9.publishedTimeText=g.uq(RF));var cy=kH.shortBylineText;cy&&(i9.author=g.uq(cy));var g1=kH.shortViewCountText;g1&&(i9.shortViewCount=g.uq(g1));if(hf){i9.title=g.uq(hf);var zt=hf.accessibility;if(zt){var El=zt.accessibilityData;El&&El.label&&(i9.ariaLabel= El.label)}}var zA=kH.navigationEndpoint;if(zA){my=zA.clickTrackingParams;var Rt=g.n(zA,g.VB),wI=g.n(zA,g.$0);Rt?i9.HO=Rt:wI!=null&&(i9.watchUrl=wI.url)}var Dz=kH.thumbnailOverlays;if(Dz)for(var L6=g.F(Dz),We=L6.next();!We.done;We=L6.next()){var $5=We.value.thumbnailOverlayTimeStatusRenderer;if($5)if($5.style==="LIVE"){i9.isLivePlayback=!0;break}else if($5.style==="UPCOMING"){i9.isUpcoming=!0;break}}i9.Z=ls(kH.thumbnail)}else if(ES.endScreenPlaylistRenderer){var M$=ES.endScreenPlaylistRenderer,k7= M$.navigationEndpoint;if(!k7)continue;var oX=g.n(k7,g.VB);if(!oX)continue;var T9=oX.videoId;i9=new g.JA(p.K());i9.playlistId=M$.playlistId;i9.playlistLength=Number(M$.videoCount)||0;i9.T=T9||null;i9.videoId=T9;var x7=M$.title;x7&&(i9.title=g.uq(x7));var Rs=M$.shortBylineText;Rs&&(i9.author=g.uq(Rs));my=k7.clickTrackingParams;i9.Z=ls(M$.thumbnail)}i9&&(my&&(i9.sessionData={itct:my}),d1.push(i9))}p.suggestions=d1}if(e){p.Rg=!!e.preferImmediateRedirect;p.d6=p.d6||!!e.webShowNewAutonavCountdown;p.JB= p.JB||!!e.webShowBigThumbnailEndscreen;if(p.d6||p.JB){var kN=P||null,hc=new g.mx(p.K());hc.videoId=e.videoId;var uK=e.videoTitle;if(uK){hc.title=g.uq(uK);var Hy=uK.accessibility;if(Hy){var ZK=Hy.accessibilityData;ZK&&ZK.label&&(hc.ariaLabel=ZK.label)}}var $Q=e.byline;$Q&&(hc.author=g.uq($Q));var Tt=e.publishedTimeText;Tt&&(hc.publishedTimeText=g.uq(Tt));var vc=e.shortViewCountText;vc&&(hc.shortViewCount=g.uq(vc));var Fz=e.thumbnailOverlays;if(Fz)for(var Sb=g.F(Fz),d3=Sb.next();!d3.done;d3=Sb.next()){var i4= d3.value.thumbnailOverlayTimeStatusRenderer;if(i4)if(i4.style==="LIVE"){hc.isLivePlayback=!0;break}else if(i4.style==="UPCOMING"){hc.isUpcoming=!0;break}else if(i4.style==="DEFAULT"&&i4.text){hc.lengthText=g.uq(i4.text);var Kx=i4.text.accessibility;if(Kx){var i7=Kx.accessibilityData;i7&&i7.label&&(hc.Bj=i7.label||"")}break}}hc.Z=ls(e.background);var h0=e.nextButton;if(h0){var DZ=h0.buttonRenderer;if(DZ){var uX=DZ.navigationEndpoint;if(uX){var ZZ=g.n(uX,g.VB);ZZ&&(hc.HO=ZZ)}}}if(e.topBadges){var UJ= e.topBadges[0];if(UJ){var fx=g.n(UJ,YiL);fx&&fx.style==="BADGE_STYLE_TYPE_PREMIUM"&&(hc.WcV=!0)}}var OJ=e.alternativeTitle;OJ&&(hc.B8=g.uq(OJ));var UM={autonav:"1",playnext:String(A)};hc.playlistId&&(UM.autoplay="1");if(kN){var bd,yE,Al,LG,JN=(bd=kN.autoplay)==null?void 0:(yE=bd.autoplay)==null?void 0:(Al=yE.sets)==null?void 0:(LG=Al[0])==null?void 0:LG.autoplayVideo;if(JN){var qf=JN.clickTrackingParams;qf&&(UM.itct=qf);var I7=g.n(JN,g.VB);I7&&(hc.aK=I7)}}else if(e){var bX,sn,Aj,o7=(bX=e.nextButton)== null?void 0:(sn=bX.buttonRenderer)==null?void 0:(Aj=sn.navigationEndpoint)==null?void 0:Aj.clickTrackingParams;o7&&(UM.itct=o7)}UM.itct||(UM.feature="related-auto");hc.e9=UM;p.suggestions||(p.suggestions=[]);p.bv=hc}e.countDownSecs!=null&&(p.JT=e.countDownSecs*1E3);e.countDownSecsForFullscreen!=null&&(p.SP=e.countDownSecsForFullscreen>=0?e.countDownSecsForFullscreen*1E3:-1);p.G("web_autonav_color_transition")&&e.watchToWatchTransitionRenderer&&(p.watchToWatchTransitionRenderer=g.n(e.watchToWatchTransitionRenderer, z5H))}var aD=w0V(p);if(aD){var k4,x4,Y4,oM=aD==null?void 0:(k4=aD[0])==null?void 0:(x4=k4.endScreenVideoRenderer)==null?void 0:(Y4=x4.navigationEndpoint)==null?void 0:Y4.clickTrackingParams,zw=g.NI(p);oM&&zw&&(zw.sessionData={itct:oM})}p.Ga.currentVideoThumbnail&&(p.Z=ls(p.Ga.currentVideoThumbnail));var En,R7,nx,fX,uB,hx=(En=p.Ga)==null?void 0:(R7=En.contents)==null?void 0:(nx=R7.twoColumnWatchNextResults)==null?void 0:(fX=nx.results)==null?void 0:(uB=fX.results)==null?void 0:uB.contents;if(hx&&hx[1]){var l7, t0,me,vC,FD=(l7=hx[1].videoSecondaryInfoRenderer)==null?void 0:(t0=l7.owner)==null?void 0:(me=t0.videoOwnerRenderer)==null?void 0:(vC=me.thumbnail)==null?void 0:vC.thumbnails;FD&&FD.length&&(p.profilePicture=FD[FD.length-1].url)}var OM=lO(C),eb,Pc=(eb=p.getWatchNextResponse())==null?void 0:eb.onResponseReceivedEndpoints;if(Pc)for(var wN=g.F(Pc),xN=wN.next();!xN.done;xN=wN.next()){var ch=xN.value;g.n(ch,H_)&&(p.i$=g.n(ch,H_));var SV=g.n(ch,R5L),$4=void 0;if(($4=SV)==null?0:$4.entityKeys)p.Rj=SV.entityKeys|| [],SV.visibleOnLoadKeys&&(p.visibleOnLoadKeys=SV.visibleOnLoadKeys)}if(p.G("web_key_moments_markers")){var K5=g.Xx.getState().entities,kA=g.cJ("visibility_override","markersVisibilityOverrideEntity");var Ld=Mg(K5,"markersVisibilityOverrideEntity",kA);p.Qn=(Ld==null?void 0:Ld.videoId)===(p.videoId||OM)&&(Ld==null?0:Ld.visibilityOverrideMarkersKey)?Ld.visibilityOverrideMarkersKey:p.visibleOnLoadKeys;p.visibleOnLoadKeys=[].concat(g.K(p.Qn))}}}; jK=function(p){var C;return((C=p.autoplaySwitchButtonRenderer)==null?void 0:C.enabled)!==void 0}; v1y=function(p){return p.G("html5_high_res_cpns_start_with_r")&&p.I$.Gk()?"r"+g.OI(15):g.OI(16)}; ds=function(p){return!!(p.V&&p.V.videoInfos&&p.V.videoInfos.length)}; g.aM=function(p){var C=p.J;p.G("html5_gapless_unlimit_format_selection")&&id(p)&&(C=!1);var V=!!p.T&&p.T.p4,N=p.I$,H=p.Ez(),X=hl(p),d=p.Wc,a=C,E=p.isOtf();C=p.dG();var l=p.qo,t=p.getUserAudio51Preference(),c=sW(p),T=new jd9(N);if(N.Gk()||N.G("html5_logging_format_selection"))T.C=!0;T.UY=X;T.Wc=d&&N.D;T.vr=t;g.gm("windows nt 5.1")&&!g.k$&&(T.Oi=!0);if(X=H)X=g.Wg(N)?jYj(N):!1;X&&(T.sY=!0);a&&(T.Oi=!0,T.VZ=!0);E&&!N.G("html5_otf_prefer_vp9")&&(T.Oi=!0);N.playerStyle==="picasaweb"&&(E&&(T.Oi=!1),T.Vn= !1);l&&(T.Oi=!0);Je(N.W,mw.CHANNELS)&&(N.G("html5_enable_aac51")&&(T.b_=!0),N.G("html5_enable_ac3")&&(T.S=!0),N.G("html5_enable_eac3")&&(T.W=!0),N.G("html5_enable_ac3_gapless")&&(T.Ga=!0));N.G("html5_block_8k_hfr")&&(T.Qn=!0);T.Y=g.mi(N.experiments,"html5_max_selectable_quality_ordinal");T.D=g.mi(N.experiments,"html5_min_selectable_quality_ordinal");rB&&(T.wy=480);if(V||H)T.Vn=!1;T.qo=!1;T.disableAv1=c;V=U6(N,T.T,void 0,T.disableAv1);V>0&&V<2160&&(rN()||N.G("html5_format_hybridization"))&&(T.T.supportsChangeType= +rN(),T.Tp=V);V>=2160&&(T.Wr=!0);OFu()&&(T.T.serveVp9OverAv1IfHigherRes=0,T.va=!1);T.dG=C;T.R$=g.G4||XW()&&!C?!1:!0;T.J=N.G("html5_format_hybridization");T.ER=N.G("html5_disable_encrypted_vp9_live_non_2k_4k");$B(p)&&(T.qW=p.G("html5_prefer_language_over_codec"));rm()&&p.playerResponse&&p.playerResponse.playerConfig&&p.playerResponse.playerConfig.webPlayerConfig&&p.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(T.S=!0,T.W=!0);p.J&&p.isAd()&&(p.Mc&&(T.a$=p.Mc),p.Qt&&(T.V= p.Qt));T.Y_=p.isLivePlayback&&p.O8()&&p.I$.G("html5_drm_live_audio_51");T.kM=p.Yu;return p.f9=T}; sW=function(p){return p.I$.G("html5_disable_av1")||p.G("html5_gapless_shorts_disable_av1")&&id(p)?!0:!1}; n1v=function(p){NR("drm_pb_s",void 0,p.Y_);p.UY||p.T&&l5(p.T);var C={};p.T&&(C=RqH(p.VR,g.aM(p),p.I$.W,p.T,function(V){return p.publish("ctmp","fmtflt",V)},!0,new Set)); C=new eO(C,p.I$,p.r8,p.useCobaltWidevine?rm()?EW(p):!1:!1,function(V,N){p.k_(V,N)}); g.R(p,C);p.sx=!1;p.loading=!0;ldV(C,function(V){NR("drm_pb_f",void 0,p.Y_);for(var N=g.F(V),H=N.next();!H.done;H=N.next())switch(H=H.value,H.flavor){case "fairplay":H.UY=p.UY;H.hI=p.hI;H.m0=p.m0;break;case "widevine":H.td=p.td}p.Ox=V;if(p.Ox.length>0&&(p.W=p.Ox[0],p.I$.Gk())){V={};N=g.F(Object.entries(p.W.T));for(H=N.next();!H.done;H=N.next()){var X=g.F(H.value);H=X.next().value;X=X.next().value;var d="unk";(H=H.match(/(.*)codecs="(.*)"/))&&(d=H[2]);V[d]=X}p.k_("drmProbe",V)}RI(p)})}; y5Y=function(p,C){if(C.length===0||gP(p))return null;W7(p,"html5_enable_cobalt_experimental_vp9_decoder")&&(D8=!0);var V=p.vV;var N=p.lengthSeconds,H=p.isLivePlayback,X=p.EO,d=p.I$,a=RhX(C);if(H||X){d=d.experiments;N=new hz("",d,!0);N.C=!X;N.p4=!0;N.isManifestless=!0;N.isLive=!X;N.EO=X;C=g.F(C);for(H=C.next();!H.done;H=C.next()){var E=H.value;H=E6(E,V);a=Zy(E);a=tz(a.TT||E.url||"",a.Kl,a.s);var l=a.get("id");l&&l.includes("%7E")&&(N.Z=!0);var t=void 0;l=(t=d)==null?void 0:t.OY("html5_max_known_end_time_rebase"); t=Number(E.targetDurationSec||5);E=Number(E.maxDvrDurationSec||14400);var c=Number(a.get("mindsq")||a.get("min_sq")||"0"),T=Number(a.get("maxdsq")||a.get("max_sq")||"0")||Infinity;N.AE=N.AE||c;N.Qx=N.Qx||T;var M=!Xz(H.mimeType);a&&X1(N,new Lp(a,H,{Ym:t,MO:M,nV:E,AE:c,Qx:T,KQ:300,EO:X,nh:l}))}V=N}else if(a==="FORMAT_STREAM_TYPE_OTF"){N=N===void 0?0:N;X=new hz("",d.experiments,!1);X.duration=N||0;d=g.F(C);for(N=d.next();!N.done;N=d.next())N=N.value,C=E6(N,V,X.duration),H=Zy(N),(H=tz(H.TT||N.url||"", H.Kl,H.s))&&(C.streamType==="FORMAT_STREAM_TYPE_OTF"?X1(X,new gz(H,C,"sq/0")):X1(X,new VM(H,C,U9(N.initRange),U9(N.indexRange))));X.isOtf=!0;V=X}else{N=N===void 0?0:N;X=new hz("",d.experiments,!1);X.duration=N||0;d=g.F(C);for(N=d.next();!N.done;N=d.next())a=N.value,N=E6(a,V,X.duration),C=U9(a.initRange),H=U9(a.indexRange),l=Zy(a),(a=tz(l.TT||a.url||"",l.Kl,l.s))&&X1(X,new VM(a,N,C,H));V=X}X=p.isLivePlayback&&!p.EO&&!p.Wr&&!p.isPremiere;p.G("html5_live_head_playable")&&(!rP(p)&&X&&p.k_("missingLiveHeadPlayable", {}),p.I$.a$==="yt"&&(V.R$=!0));return V}; gP=function(p){return rm()?!EW(p):GQ()?!(!p.UY||!p.G("html5_enable_safari_fairplay")&&Bb()):!1}; EW=function(p){return p.G("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.wP=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next())if(V=V.value,V.cueRangeSetIdentifier){var N=void 0;p.It.set(V.cueRangeSetIdentifier,(N=V.playerCueRanges)!=null?N:[])}}; Ge=function(p){return!(!p.T||!p.T.isManifestless)}; ld=function(p){return p.VZ?p.isLowLatencyLiveStream&&p.T!=null&&Jz(p.T)>=5:p.isLowLatencyLiveStream&&p.T!=void 0&&Jz(p.T)>=5}; fFs=function(p){return rm()&&EW(p)?!1:gP(p)&&(g.qz(p.I$)?!p.isLivePlayback:p.hlsvp)||!Bb()||p.Pv?!0:!1}; Pty=function(p){p.loading=!0;p.AX=!1;if(OzQ(p))g.CtL(p.videoId).then(function(N){e5u(p,N)}).then(function(){RI(p)}); else{XY(p.RN)||g.eG(new g.Bw("DASH MPD Origin invalid: ",p.RN));var C=p.RN,V=g.mi(p.I$.experiments,"dash_manifest_version")||4;C=g.GD(C,{mpd_version:V});p.isLowLatencyLiveStream&&p.latencyClass!=="NORMAL"||(C=g.GD(C,{pacing:0}));WL1(C,p.I$.experiments,p.isLivePlayback).then(function(N){p.fS()||(B7(p,N,!0),NR("mrc",void 0,p.Y_),RI(p))},function(N){p.fS()||(p.loading=!1,p.publish("dataloaderror",new qD("manifest.net.retryexhausted",{backend:"manifest", rc:N.status},1)))}); NR("mrs",void 0,p.Y_)}}; e5u=function(p,C){var V=C.map(function(E){return E.itag}),N; if((N=p.playerResponse)!=null&&N.streamingData){N=[];if(p.G("html5_offline_always_use_local_formats")){V=0;for(var H=g.F(C),X=H.next();!X.done;X=H.next()){X=X.value;var d=Object.assign({},X);d.signatureCipher="";N.push(d);d=g.F(p.playerResponse.streamingData.adaptiveFormats);for(var a=d.next();!a.done;a=d.next())if(a=a.value,X.itag===a.itag&&X.xtags===a.xtags){V+=1;break}}V<C.length&&p.k_("offnpf",{cotn:p.Vz?p.Vz.cotn:"0",cpn:p.clientPlaybackNonce})}else for(H=g.F(p.playerResponse.streamingData.adaptiveFormats), d=H.next(),X={};!d.done;X={B$:void 0},d=H.next())if(X.B$=d.value,p.G("html5_fix_multi_audio_offline_playback"))for(d=g.F(C),a=d.next();!a.done;a=d.next())a=a.value,a.itag===X.B$.itag&&a.xtags===X.B$.xtags&&(X.B$=Object.assign({},X.B$),X.B$.url=C.find(function(E){return function(l){return l.itag===E.B$.itag}}(X)).url,X.B$.signatureCipher="",N.push(X.B$)); else V.includes(X.B$.itag)&&(X.B$=Object.assign({},X.B$),X.B$.url=C.find(function(E){return function(l){return l.itag===E.B$.itag}}(X)).url,X.B$.signatureCipher="",N.push(X.B$)); C=y5Y(p,N);hl(p)&>y(C,!1);B7(p,C);p.k_("dlr",{})}else p.k_("offsdm",{cotn:p.Vz?p.Vz.cotn:"0",cpn:p.clientPlaybackNonce})}; wYv=function(p){var C;return!((C=p.I$.getWebPlayerContextConfig())==null||!C.enableProximaLowLatency)}; tl=function(p){if(!p.isProximaLatencyEligible)return 0;var C=zv();return wYv(p)?2:C===1?1:p.G("html5_enable_proxima")?2:0}; RI=function(p){p.fS()||(p.loading=!1,p.publish("dataloaded"))}; B7=function(p,C,V){V=V===void 0?!1:V;p.nA=void 0;p.T=C;g.R(p,C);C.AE=p.AE;C.Qx=p.Qx;C.vr=p.vr;C.YM=p.YM;C.qW=p.qW;p.gh&&(C.J=new Mt(p.gh));(p.Ez()||g.c_(p))&&p.Vn.push("webgl");p.T.isLive||(p.isLivePlayback=!1);var N=C.sourceUrl.split("/");if(p.VZ?N.indexOf("manifest_duration")!==-1:N.indexOf("manifest_duration")!=-1)p.gR=Number(N[N.indexOf("manifest_duration")+1]);if(C.C||C.isManifestless)C.subscribe("clienttemp",p.k_,p),V?C.subscribe("refresh",p.SF,p):C.subscribe("cuepointsadded",p.fE,p);l5(C)? p.sx=!0:wB=void 0;p.Wr&&(C.S=p.Wr,C.isLive=!0,p.isLivePlayback=!0);C.isPremiere=p.isPremiere;C.isLiveHeadPlayable=p.isLiveHeadPlayable}; LZV=function(p,C){var V=C||fFs(p)||p.isExternallyHostedPodcast;if(!p.T||V)return p.k_("skipDash",{dm:!!p.T,air:C,dd:p.Pv,mss:Bb(),"3pp":p.isExternallyHostedPodcast}),xD();hl(p)&>y(p.T,p.isLivePlayback);W7(p,"html5_enable_cobalt_experimental_vp9_decoder")&&OjQ(p.I$.W);return YD().then(function(){return eqj(p.VR,g.aM(p),p.I$.W,p.T,p.W,function(N){return p.publish("ctmp","fmtflt",N)},p.Nq,$B(p)&&p.G("html5_enable_server_format_filter")).then(function(N){$Ov(p,N); p.VR.T=null;/^av/.test(p.clientPlaybackNonce)&&p.f9&&p.k_("av1",p.f9.T)})})}; g1j=function(p,C){if(C&&p.hlsvp)return xD();if(p.hlsFormats){C=Qs(p.hlsFormats);var V;if(((V=p.f9)==null?0:V.C)&&C){V=[];for(var N=g.F(C),H=N.next();!H.done;H=N.next())V.push(H.value.itag);p.k_("hlsfmt",{itags:V.join(".")})}p.Ij=T6j(p.I$,C);V=p.clientPlaybackNonce;var X,d,a,E;return FHS(p.I$,p.isAd(),C,(E=(X=p.playerResponse)==null?void 0:(d=X.captions)==null?void 0:(a=d.playerCaptionsRenderer)==null?void 0:a.baseUrl)!=null?E:null,p.I6,V,function(l){return p.publish("ctmp","hlsflt",l)}).then(function(l){for(var t= 0,c=[],T=g.F(l),M=T.next();!M.done;M=T.next()){M=M.value; var J=void 0;c.push((J=M.getInfo())==null?void 0:J.itag);var S=J=void 0;((J=M.getInfo())==null?void 0:(S=J.audio)==null?void 0:S.numChannels)>t&&(t=M.getInfo().audio.numChannels)}t>2&&p.k_("hlschl",{mn:t});var D;((D=p.f9)==null?0:D.C)&&p.k_("hlsfmtaf",{itags:c.join(".")});var Z;if(p.G("html5_enable_vp9_fairplay")&&((Z=p.W)==null?0:Az(Z)))for(p.k_("drm",{sbdlfbk:1}),t=g.F(p.Ox),c=t.next();!c.done;c=t.next())if(c=c.value,bo(c)){p.W=c;break}T5(p,l)})}return xD()}; WZX=function(p){if(p.isExternallyHostedPodcast&&p.jZ){var C=Qs(p.jZ);if(!C[0])return xD();p.r_=C[0];return D3j(p.I$,C[0]).then(function(V){T5(p,V)})}return p.BI&&p.E6?KHy(p.I$,p.isAd(),p.BI).then(function(V){T5(p,V)}):xD()}; r59=function(p){if(p.isExternallyHostedPodcast)return xD();var C=Qs(p.jZ,p.g1);if(p.hlsvp){var V=aFV(p.hlsvp,p.clientPlaybackNonce,p.I6);C.push(V)}return SAj(p.I$,p.isAd(),C,QHe(p)).then(function(N){T5(p,N)})}; $Ov=function(p,C){p.V=C;if(p.V){C=g.F(p.V.videoInfos);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=V.containerType;N!==0&&(p.Wv[N]=V.id)}}MI(p);if(p.W&&p.V&&p.V.videoInfos&&!(p.V.videoInfos.length<=0)&&(C=jb(p.V.videoInfos[0]),p.W.flavor==="fairplay"!==C))for(V=g.F(p.Ox),N=V.next();!N.done;N=V.next())if(N=N.value,C===(N.flavor==="fairplay")){p.W=N;break}}; T5=function(p,C){p.FO=C;$Ov(p,new i5(g.AU(p.FO,function(V){return V.getInfo()})))}; QHe=function(p){var C={cpn:p.clientPlaybackNonce,c:p.I$.T.c,cver:p.I$.T.cver};p.jL&&(C.ptk=p.jL,C.oid=p.LI,C.ptchn=p.WL,C.pltype=p.NU,p.E5&&(C.m=p.E5));return C}; g.Jl=function(p){return gP(p)&&p.UY?(p={},p.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",p):p.C&&p.C.vV||null}; Bre=function(p){var C=mJ(p);return C&&C.text?g.uq(C.text):p.paidContentOverlayText}; Gva=function(p){var C=mJ(p);return C&&C.durationMs?h9(C.durationMs):p.paidContentOverlayDurationMs}; mJ=function(p){var C,V,N;return p.playerResponse&&p.playerResponse.paidContentOverlay&&p.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.n((C=p.Ga)==null?void 0:(V=C.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:N.playerDisclosure,p1s)||null}; v_=function(p){var C="";if(p.fn)return p.fn;p.isLivePlayback&&(C=p.allowLiveDvr?"dvr":p.isPremiere?"lp":p.Wr?"window":"live");p.EO&&(C="post");return C}; g.Fx=function(p,C){return typeof p.keywords[C]!=="string"?null:p.keywords[C]}; C51=function(p){return!!p.uM||!!p.eD||!!p.Hn||!!p.Zw||p.YZ||p.D.focEnabled||p.D.rmktEnabled}; g.SK=function(p){return!!(p.RN||p.jZ||p.BI||p.hlsvp||p.Ar())}; ze=function(p){if(p.G("html5_onesie")&&p.errorCode)return!1;var C=g.W5(p.Vn,"ypc");p.ypcPreview&&(C=!1);return p.GN()&&!p.loading&&(g.SK(p)||g.W5(p.Vn,"heartbeat")||C)}; Qs=function(p,C){p=hw(p);var V={};if(C){C=g.F(C.split(","));for(var N=C.next();!N.done;N=C.next())(N=N.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(V[N[1]]={width:N[2],height:N[3]})}C=g.F(p);for(N=C.next();!N.done;N=C.next()){N=N.value;var H=V[N.itag];H&&(N.width=H.width,N.height=H.height)}return p}; MI=function(p){var C=p.getAvailableAudioTracks();C=C.concat(p.Uv);for(var V=0;V<p.uj.length;V++)for(var N=p.uj[V],H=0;H<C.length;H++){var X=C[H],d=X.K4.id===N.audioTrackId;if(X.K4.isDefault&&V===p.Rm||d){if(N.captionTrackIndices)for(d=0;d<N.captionTrackIndices.length;d++)X.captionTracks[d]=p.captionTracks[N.captionTrackIndices[d]];N.defaultCaptionTrackIndex!==void 0&&(X.V=p.captionTracks[N.defaultCaptionTrackIndex]);N.forcedCaptionTrackIndex!==void 0&&(X.T=p.captionTracks[N.forcedCaptionTrackIndex]); X.C=N.visibility||"UNKNOWN";X.captionsInitialState=N.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}; bzY=function(p,C){p.showShareButton=!!C;var V,N,H=((V=g.n(C,g.z$))==null?void 0:V.navigationEndpoint)||((N=g.n(C,g.z$))==null?void 0:N.command);H&&(p.BK=!!g.n(H,j2v))}; lFL=function(p,C){var V=C.raw_embedded_player_response;if(!V){var N=C.embedded_player_response;N&&(V=JSON.parse(N))}V&&(p.b0=V);if(p.b0){p.embeddedPlayerConfig=p.b0.embeddedPlayerConfig||null;if(V=p.b0.videoFlags)V.playableInEmbed&&(p.allowEmbed=!0),V.isPrivate&&(p.isPrivate=!0),V.userDisplayName&&(C.user_display_name=V.userDisplayName),V.userDisplayImage&&(C.user_display_image=V.userDisplayImage);if(V=p.b0.embedPreview){V=V.thumbnailPreviewRenderer;P_Q(p,V.controlBgHtml);if(N=V.defaultThumbnail)p.Z= ls(N);p.G("embeds_web_enable_search_button")&&V.searchButton&&(N=g.n(V.searchButton,g.z$))&&(p.kO=g.n(N.navigationEndpoint,g.Kf));(N=g.n(V==null?void 0:V.videoDetails,Voy))&&xOQ(p,C,N);N=g.n(V==null?void 0:V.videoDetails,NHu);p.cV=!!V.addToWatchLaterButton;bzY(p,V.shareButton);if(N==null?0:N.musicVideoType)p.musicVideoType=N.musicVideoType;var H,X,d,a,E;if(N=g.n((H=p.getEmbeddedPlayerResponse())==null?void 0:(X=H.embedPreview)==null?void 0:(d=X.thumbnailPreviewRenderer)==null?void 0:(a=d.playButton)== null?void 0:(E=a.buttonRenderer)==null?void 0:E.navigationEndpoint,g.VB))fYe(p,N),p.videoId=N.videoId||p.videoId;V.videoDurationSeconds&&(p.lengthSeconds=h9(V.videoDurationSeconds));V.webPlayerActionsPorting&&eeu(p,V.webPlayerActionsPorting);if(H=g.n(V==null?void 0:V.playlist,HwV)){p.Kp=!0;X=[];d=Number(H.currentIndex);if(H.contents)for(a=0,E=H.contents.length;a<E;a++)if(V=H.contents[a].playlistPanelVideoRenderer){N=V.shortBylineText?g.uq(V.shortBylineText):"";var l=V.title?g.uq(V.title):"";X.push({author:N, encrypted_id:V.videoId,title:l,channel_path:a===d?C.channel_path:"",profile_picture:a===d?C.profile_picture:"",is_private:a===d?p.isPrivate:!0,is_dni:a===d?p.UV:!1,dni_color:a===d?p.PP:""})}C={index:H.currentIndex,list:H.playlistId,playlist_length:H.totalVideos,video:X};H.titleText&&(C.title=g.uq(H.titleText));H.shortBylineText&&(C.author=g.uq(H.shortBylineText));p.nK=C}var t,c,T;if(C=g.n((t=p.getEmbeddedPlayerResponse())==null?void 0:(c=t.embedPreview)==null?void 0:(T=c.thumbnailPreviewRenderer)== null?void 0:T.infoPanel,o1L)){p.Vw=Number(C==null?void 0:C.durationMs)||NaN;if(C==null?0:C.infoPanelOverviewViewModel)p.W1=C==null?void 0:C.infoPanelOverviewViewModel;if(C==null?0:C.infoPanelDetailsViewModel)p.lM=C==null?void 0:C.infoPanelDetailsViewModel}}if(p.b0.previewPlayabilityStatus){if(p.eg=p.b0.previewPlayabilityStatus,t=p.eg,!["OK","LIVE_STREAM_OFFLINE"].includes(t.status)){p.errorCode=Za1(t.errorCode);c=t.errorScreen;if(T=c==null?void 0:c.playerErrorMessageRenderer){p.Up=T;if(C=T.reason)p.errorReason= g.uq(C);if(T=T.subreason)p.Ck=g.uq(T)}else p.errorReason=t.reason||null;switch(t.status){case "LOGIN_REQUIRED":p.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":p.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var M;(c==null?0:(M=c.playerKavRenderer)==null?0:M.kavUrl)?p.errorDetail="4":p.errorDetail="3";break;default:p.errorDetail=t.isBlockedInRestrictedMode?"5":"0"}}}else p.b0.playabilityStatus&&(p.JW=p.b0.playabilityStatus,X1s(p)&&(p.errorDetail="0",p.JW&&((M=p.JW.embeddedPlayerErrorMessageRenderer)? p.Up=g.n(M,dia):p.errorReason=p.JW.reason||null)));(M=p.b0.attestation)&&x3V(p,M);(M=p.b0.permissions)&&M.allowImaMonetization&&(p.allowImaMonetization=!0)}}; xOQ=function(p,C,V){var N=V.channelThumbnail;N&&(N=N.thumbnails)&&(N=N[0])&&(C.profile_picture=N.url);var H;if(N=g.n((H=g.n(V==null?void 0:V.channelThumbnailEndpoint,iwy))==null?void 0:H.urlEndpoint,g.$0))C.channel_path=N.url;if(H=V.collapsedRenderer)if(H=g.n(H,hTy)){if(N=H.title)C.title=g.uq(N);if(H=H.subtitle)C.subtitle=g.uq(H)}if(V=V.expandedRenderer)if(V=g.n(V,s2S)){if(H=V.title)C.expanded_title=g.uq(H);if(H=V.subtitle)C.expanded_subtitle=g.uq(H);if(V=V.subscribeButton)p.subscribeButtonRenderer= g.n(V,g.D6),p.subscribeButtonRenderer&&(C.ucid=p.subscribeButtonRenderer.channelId,C.subscribed=p.subscribeButtonRenderer.subscribed,p.DM=!!p.subscribeButtonRenderer.notificationPreferenceToggleButton,p.subscribeButtonRenderer.notificationPreferenceToggleButton&&p.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(C=p.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,C.isToggled?(p.hY=C.toggledServiceEndpoint||null,p.Lj=C.defaultServiceEndpoint|| null):(p.hY=C.defaultServiceEndpoint||null,p.Lj=C.toggledServiceEndpoint||null)))}}; g.ud=function(p){return rP(p)&&!p.allowLiveDvr}; Z6=function(p){return rP(p)&&p.allowLiveDvr}; rP=function(p){return p.G("html5_live_head_playable")&&Ge(p)&&p.I$.a$==="yt"?p.isLiveHeadPlayable:p.isLivePlayback}; g.UW=function(p){return!!p.T&&qGa(p.T)}; g.ff=function(p){return!!p.T&&IQj(p.T)}; g.OW=function(p){return!!p.T&&brX(p.T)}; g.c_=function(p){return!!p.T&&AVV(p.T)}; g.ayv=function(p){if(p.mO)return null;var C=p.zw;C||(C=p.playerResponse&&p.playerResponse.endscreen&&p.playerResponse.endscreen.endscreenUrlRenderer&&p.playerResponse.endscreen.endscreenUrlRenderer.url);return C||null}; g.EgV=function(p){return p.mO?null:p.playerResponse&&p.playerResponse.endscreen&&p.playerResponse.endscreen.endscreenRenderer||null}; g.yB=function(p){return p.G("enable_wn_infocards")}; g.qI=function(p){var C,V,N,H;return(g.yB(p)?(C=p.Ga)==null?void 0:(V=C.cards)==null?void 0:V.cardCollectionRenderer:(N=p.playerResponse)==null?void 0:(H=N.cards)==null?void 0:H.cardCollectionRenderer)||null}; g.IM=function(p){if(!p.playerResponse||!p.playerResponse.annotations)return null;p=g.F(p.playerResponse.annotations);for(var C=p.next();!C.done;C=p.next())if(C=C.value,C.playerAnnotationsExpandedRenderer&&C.playerAnnotationsExpandedRenderer.featuredChannel)return C.playerAnnotationsExpandedRenderer;return null}; B_=function(p){return p.adFormat&&(p.VZ?p.adFormat!=="1_5":p.adFormat!="1_5")?"adunit":p.eventLabel||p.I$.Wr}; g.jQ=function(p){return B_(p)==="shortspage"}; id=function(p){return p.rR()&&p.K().supportsGaplessShorts()}; Vk=function(p){if(p.isAd()&&(p.VZ?p.videoId!==p.I$.YM:p.videoId!=p.I$.YM))return p.I$.YM}; Nh=function(p){return p.X4||B_(p)==="detailpage"||B_(p)==="shortspage"||p.mutedAutoplay}; Hk=function(p){var C=(C=p.G("enable_cleanup_masthead_autoplay_hack_fix"))&&B_(p)==="adunit"?p.dP:Nh(p)?B_(p)==="detailpage"||B_(p)==="shortspage"?p.isAutonav||p.wy>0:C||p.adFormat!=="17_8"||p.isAutonav||g.LI(p.I$)||p.dP?p.FT?!1:p.I$.qn||p.I$.hg||!g.KI(p.I$)?!C&&B_(p)==="adunit"&&p.uM?!1:!0:!1:!1:(p.FT?0:p.va)&&g.KI(p.I$)?!0:!1;p.G("html5_log_detailpage_autoplay")&&B_(p)==="detailpage"&&p.k_("autoplay_info",{autoplay:p.X4,autonav:p.isAutonav,result:C});return C}; g.XE=function(p){return p.oauthToken||p.I$.Nw}; tov=function(p){if(p.G("html5_stateful_audio_normalization")){var C=1,V=g.mi(p.I$.experiments,"html5_default_ad_gain");V&&p.isAd()&&(C=V);var N;if(V=((N=p.S)==null?void 0:N.audio.C)||p.vX){N=(0,g.Ip)();p.rj=2;var H=N-p.I$.gR<=p.maxStatefulTimeThresholdSec*1E3;p.applyStatefulNormalization&&H?p.rj=4:H||(p.I$.lM=Infinity,p.I$.gR=NaN);H=(p.rj===4?g.J9(p.I$.lM,p.minimumLoudnessTargetLkfs,p.loudnessTargetLkfs):p.loudnessTargetLkfs)-V;if(p.rj!==4){var X,d,a,E,l=((X=p.playerResponse)==null?void 0:(d=X.playerConfig)== null?void 0:(a=d.audioConfig)==null?void 0:(E=a.loudnessNormalizationConfig)==null?void 0:E.statelessLoudnessAdjustmentGain)||0;H+=l}H=Math.min(H,0);p.preserveStatefulLoudnessTarget&&(p.I$.lM=V+H,p.I$.gR=N);p=Math.min(1,Math.pow(10,H/20))||C}else p=lyH(p)}else p=lyH(p);return p}; lyH=function(p){var C=1,V=g.mi(p.I$.experiments,"html5_default_ad_gain");V&&p.isAd()&&(C=V);var N;if(V=((N=p.S)==null?void 0:N.audio.V)||p.Gp)p.rj=1;return Math.min(1,Math.pow(10,-V/20))||C}; hl=function(p){var C=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],V=Lb(p.I$)==="TVHTML5_SIMPLY"&&p.I$.T.ctheme==="MUSIC";p.XT||!g.gk(p.I$)&&!V||!C.includes(p.musicVideoType)&&!p.isExternallyHostedPodcast||(p.XT=!0);if(C=g.Qg())C=/Starboard\/([0-9]+)/.exec(g.f0()),C=(C?parseInt(C[1],10):NaN)<10;V=p.I$;V=(Lb(V)==="TVHTML5_CAST"||Lb(V)==="TVHTML5"&&(V.T.cver.startsWith("6.20130725")||V.T.cver.startsWith("6.20130726")))&&p.I$.T.ctheme==="MUSIC";var N;if(N=!p.XT)V||(V=p.I$,V=Lb(V)=== "TVHTML5"&&V.T.cver.startsWith("7")),N=V;N&&!C&&(C=p.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",V=(p.G("cast_prefer_audio_only_for_atv_and_uploads")||p.G("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&p.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",C||V||p.isExternallyHostedPodcast)&&(p.XT=!0);return p.I$.deviceIsAudioOnly||p.XT&&p.I$.D}; db=function(p){var C,V,N;return!!((C=p.playerResponse)==null?0:(V=C.playerConfig)==null?0:(N=V.mediaCommonConfig)==null?0:N.splitScreenEligible)}; ceV=function(p){var C;return!((C=p.playerResponse)==null||!C.compositePlayabilityStatus)}; THj=function(p){return isNaN(p)?0:Math.max((Date.now()-p)/1E3-30,0)}; ix=function(p){return!(!p.Om||!p.I$.D)&&p.Ar()}; MoX=function(p){return p.enablePreroll&&p.enableServerStitchedDai}; Jej=function(p){return p.G("html5_enable_sabr_from_watch_server")&&p.Rt&&!p.gh}; mij=function(p){return p.G("html5_enable_sabr_live_captions")&&p.p4()&&!1}; $B=function(p){if(p.RJ||p.G("html5_restrict_sabr_to_yt_namespace")&&p.I$.a$!=="yt"||p.cotn||!p.T||p.T.isOtf||p.Ig&&!p.G("html5_enable_sabr_csdai"))return!1;if(p.G("html5_use_sabr_requests_for_debugging"))return!0;if(p.G("html5_enable_sabr_from_watch_server")){var C=p.Rt&&!!p.gh;if(!p.G("html5_combine_client_check_for_sabr"))return C;if(C)return!0;p.x8("sabr","esfc")}var V=!p.T.p4&&!p.O8();C=V&&gB&&p.G("html5_enable_sabr_vod_streaming_xhr");V=V&&!gB&&p.G("html5_enable_sabr_vod_non_streaming_xhr"); var N=h_(p),H=p.G("html5_enable_sabr_drm_vod_streaming_xhr")&&gB&&p.O8()&&!p.T.p4&&(p.K$==="1"?!1:!0);(C=C||V||N||H)&&!p.gh&&p.k_("sabr",{loc:"m"},!0);return C&&!!p.gh}; h_=function(p){var C;if(!(C=gB&&p.p4()&&p.O8()&&(p.K$==="1"?!1:!0)&&p.G("html5_sabr_live_drm_streaming_xhr"))){C=p.p4()&&!p.O8()&&gB;var V=p.p4()&&p.latencyClass!=="ULTRALOW"&&!p.isLowLatencyLiveStream&&p.G("html5_sabr_live_normal_latency_streaming_xhr"),N=p.isLowLatencyLiveStream&&p.G("html5_sabr_live_low_latency_streaming_xhr"),H=p.latencyClass==="ULTRALOW"&&p.G("html5_sabr_live_ultra_low_latency_streaming_xhr");C=C&&(V||N||H)}V=C;C=p.enableServerStitchedDai&&V&&p.G("html5_enable_sabr_ssdai_streaming_xhr"); V=!p.enableServerStitchedDai&&V;N=p.p4()&&!gB&&p.G("html5_enable_sabr_live_non_streaming_xhr");p=gB&&(p.VL()||db(p)&&p.G("html5_enable_sabr_for_lifa_eligible_streams"));return C||V||N||p}; g.pf=function(p){return p.xV&&$B(p)}; OzQ=function(p){var C;if(C=!!p.cotn)C=p.videoId,C=!!C&&g.Db(C)===1;return C&&!p.Om}; g.s5=function(p){if(!p.T||!p.C||!p.S)return!1;var C=p.T.T,V=!!C[p.C.id]&&Kw(C[p.C.id].sR.T);C=!!C[p.S.id]&&Kw(C[p.S.id].sR.T);return(p.C.itag==="0"||V)&&C}; a$=function(p){return p.eg?["OK","LIVE_STREAM_OFFLINE"].includes(p.eg.status):!0}; X1s=function(p){return(p=p.JW)&&p.showError?p.showError:!1}; W7=function(p,C){return p.G(C)?!0:(p.fflags||"").includes(C+"=true")}; Sie=function(p){return p.G("html5_heartbeat_iff_heartbeat_params_filled")}; mOY=function(p,C){C.inlineMetricEnabled&&(p.inlineMetricEnabled=!0);C.playback_progress_0s_url&&(p.Zw=new LH1(C));if(C=C.video_masthead_ad_quartile_urls)p.eD=C.quartile_0_url,p.D6=C.quartile_25_url,p.BL=C.quartile_50_url,p.tC=C.quartile_75_url,p.YP=C.quartile_100_url,p.Hn=C.quartile_0_urls,p.Za=C.quartile_25_urls,p.T2=C.quartile_50_urls,p.nj=C.quartile_75_urls,p.qq=C.quartile_100_urls}; J5V=function(p){var C={};p=g.F(p);for(var V=p.next();!V.done;V=p.next()){V=V.value;var N=V.split("=");N.length===2?C[N[0]]=N[1]:C[V]=!0}return C}; c5v=function(p){if(p){if(Hmy(p))return p;p=XQ9(p);if(Hmy(p,!0))return p}return""}; g.vgS=function(p){return p.captionsLanguagePreference||p.I$.captionsLanguagePreference||g.Fx(p,"yt:cc_default_lang")||p.I$.ER}; E5=function(p){return!(!p.isLivePlayback||!p.hasProgressBarBoundaries())}; g.NI=function(p){var C;return p.bv||((C=p.suggestions)==null?void 0:C[0])||null}; g.lx=function(p){return p.UV&&(p.G("embeds_enable_pfp_always_unbranded")||p.I$.Vz)}; P7=function(p,C){p.G("html5_log_autoplay_src")&&id(p)&&p.k_("apsrc",{src:C})}; g.t_=function(p){var C,V;return!!((C=p.embeddedPlayerConfig)==null?0:(V=C.embeddedPlayerFlags)==null?0:V.enableMusicUx)}; g.TC=function(p){var C=p.K(),V=g.ck(C),N=C.X$;(C.G("embeds_web_enable_iframe_api_send_full_embed_url")||C.G("embeds_web_enable_rcat_validation_in_havs")||C.G("embeds_enable_autoplay_and_visibility_signals"))&&g.Oe(C)&&(N&&(V.thirdParty=Object.assign({},V.thirdParty,{embedUrl:N})),qrS(V,p));if(N=p.Sa)V.clickTracking={clickTrackingParams:N};N=V.client||{};var H="EMBED",X=B_(p);X==="leanback"?H="WATCH":C.G("gvi_channel_client_screen")&&X==="profilepage"?H="CHANNEL":p.qo?H="LIVE_MONITOR":X==="detailpage"? H="WATCH_FULL_SCREEN":X==="adunit"?H="ADUNIT":X==="sponsorshipsoffer"&&(H="UNKNOWN");N.clientScreen=H;if(C=p.kidsAppInfo)N.kidsAppInfo=JSON.parse(C);(H=p.Ic)&&!C&&(N.kidsAppInfo={contentSettings:{ageUpMode:Fwa[H]}});if(C=p.Su)N.unpluggedAppInfo={enableFilterMode:!0};(H=p.unpluggedFilterModeType)&&!C&&(N.unpluggedAppInfo={filterModeType:ScY[H]});if(C=p.a$)N.unpluggedLocationInfo=C;V.client=N;N=V.request||{};p.QZ&&(N.isPrefetch=!0);if(C=p.mdxEnvironment)N.mdxEnvironment=C;if(C=p.mdxControlMode)N.mdxControlMode= KwS[C];V.request=N;N=V.user||{};if(C=p.b_)N.credentialTransferTokens=[{token:C,scope:"VIDEO"}];if(C=p.X$)N.delegatePurchases={oauthToken:C},N.kidsParent={oauthToken:C};V.user=N;if(N=p.contextParams)V.activePlayers=[{playerContextParams:N}];if(p=p.clientScreenNonce)V.clientScreenNonce=p;return V}; g.ck=function(p){var C=g.Za(),V=C.client||{};if(p.forcedExperiments){var N=p.forcedExperiments.split(","),H=[];N=g.F(N);for(var X=N.next();!X.done;X=N.next())H.push(Number(X.value));V.experimentIds=H}if(H=p.homeGroupInfo)V.homeGroupInfo=JSON.parse(H);if(H=p.getPlayerType())V.playerType=H;if(H=p.T.ctheme)V.theme=H;if(H=p.livingRoomAppMode)V.tvAppInfo=Object.assign({},V.tvAppInfo,{livingRoomAppMode:H});H=p.deviceYear;p.G("html5_propagate_device_year")&&H&&(V.tvAppInfo=Object.assign({},V.tvAppInfo,{deviceYear:H})); if(H=p.livingRoomPoTokenId)V.tvAppInfo=Object.assign({},V.tvAppInfo,{livingRoomPoTokenId:H});C.client=V;V=C.user||{};p.enableSafetyMode&&(V=Object.assign({},V,{enableSafetyMode:!0}));p.pageId&&(V=Object.assign({},V,{onBehalfOfUser:p.pageId}));C.user=V;V=p.X$;p.G("embeds_web_enable_iframe_api_send_full_embed_url")||p.G("embeds_web_enable_rcat_validation_in_havs")||p.G("embeds_enable_autoplay_and_visibility_signals")||!V||(C.thirdParty={embedUrl:V});return C}; Ow1=function(p,C,V){var N=p.videoId,H=g.TC(p),X=p.K(),d={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(bV()),referer:document.location.toString(),signatureTimestamp:20073};g.$l();p.isAutonav&&(d.autonav=!0);g.LK(0,141)&&(d.autonavState=g.LK(0,140)?"STATE_OFF":"STATE_ON");d.autoCaptionsDefaultOn=g.LK(0,66);Hk(p)&&(d.autoplay=!0);X.D&&p.cycToken&&(d.cycToken=p.cycToken);X.enablePrivacyFilter&&(d.enablePrivacyFilter=!0);p.isFling&&(d.fling=!0);var a=p.forceAdsUrl;if(a){var E={},l=[];a=a.split(","); a=g.F(a);for(var t=a.next();!t.done;t=a.next()){t=t.value;var c=t.split("|");c.length!==3||t.includes("=")||(c[0]="breaktype="+c[0],c[1]="offset="+c[1],c[2]="url="+c[2]);t={adtype:"video_ad"};c=g.F(c);for(var T=c.next();!T.done;T=c.next()){var M=g.F(T.value.split("="));T=M.next().value;M=HY9(M);t[T]=M.join("=")}c=t.url;T=t.presetad;M=t.viralresponseurl;var J=Number(t.campaignid);if(t.adtype==="in_display_ad")c&&(E.url=c),T&&(E.presetAd=T),M&&(E.viralAdResponseUrl=M),J&&(E.viralCampaignId=String(J)); else if(t.adtype==="video_ad"){var S={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(t.offset)||0)}};if(t=Di9[t.breaktype])S.breakType=t;c&&(S.url=c);T&&(S.presetAd=T);M&&(S.viralAdResponseUrl=M);J&&(S.viralCampaignId=String(J));l.push(S)}}d.forceAdParameters={videoAds:l,inDisplayAd:E}}p.isInlinePlaybackNoAd&&(d.isInlinePlaybackNoAd=!0);p.isLivingRoomDeeplink&&(d.isLivingRoomDeeplink=!0);E=p.Ln;if(E!=null){E={startWalltime:String(E)};if(l=p.gR)E.manifestDuration=String(l||14400);d.liveContext= E}p.mutedAutoplay&&(d.mutedAutoplay=!0,p.G("embeds_enable_full_length_inline_muted_autoplay")&&(d.mutedAutoplayDurationMode=uP1[p.mutedAutoplayDurationMode]));if(p.FT?0:p.va)d.splay=!0;E=p.vnd;E===5&&(d.vnd=E);E={};if(l=p.isMdxPlayback)E.triggeredByMdx=l;if(l=p.Bb)E.skippableAdsSupported=l.split(",").includes("ska");if(t=p.eH){l=p.AY;a=[];t=g.F(IcQ(t));for(c=t.next();!c.done;c=t.next()){c=c.value;T=c.platform;c={applicationState:c.t$?"INACTIVE":"ACTIVE",clientFormFactor:ZwV[T]||"UNKNOWN_FORM_FACTOR", clientName:A49[c.xv]||"UNKNOWN_INTERFACE",clientVersion:c.deviceVersion||"",platform:UiS[T]||"UNKNOWN_PLATFORM"};T={};if(l){M=void 0;try{M=JSON.parse(l)}catch(D){g.eG(D)}M&&(T={params:[{key:"ms",value:M.ms}]},M.advertising_id&&(T.advertisingId=M.advertising_id),M.limit_ad_tracking!==void 0&&M.limit_ad_tracking!==null&&(T.limitAdTracking=M.limit_ad_tracking),c.osName=M.os_name,c.userAgent=M.user_agent,c.windowHeightPoints=M.window_height_points,c.windowWidthPoints=M.window_width_points)}a.push({adSignalsInfo:T, remoteClient:c})}E.remoteContexts=a}l=p.sourceContainerPlaylistId;a=p.serializedMdxMetadata;if(l||a)t={},l&&(t.mdxPlaybackContainerInfo={sourceContainerPlaylistId:l}),a&&(t.serializedMdxMetadata=a),E.mdxPlaybackSourceContext=t;d.mdxContext=E;E=C.width;E>0&&(d.playerWidthPixels=Math.round(E));if(C=C.height)d.playerHeightPixels=Math.round(C);V!==0&&(d.vis=V);if(V=X.widgetReferrer)d.widgetReferrer=V.substring(0,128);g.KI(X)&&d&&(d.ancestorOrigins=X.ancestorOrigins);p.defaultActiveSourceVideoId&&(d.compositeVideoContext= {defaultActiveSourceVideoId:p.defaultActiveSourceVideoId});if(X=X.getWebPlayerContextConfig())d.encryptedHostFlags=X.encryptedHostFlags;N={videoId:N,context:H,playbackContext:{contentPlaybackContext:d}};p.reloadPlaybackParams&&(N.playbackContext.reloadPlaybackContext={reloadPlaybackParams:p.reloadPlaybackParams});p.contentCheckOk&&(N.contentCheckOk=!0);if(H=p.clientPlaybackNonce)N.cpn=H;if(H=p.playerParams)N.params=H;if(H=p.playlistId)N.playlistId=H;p.racyCheckOk&&(N.racyCheckOk=!0);H=p.K();if(d= H.embedConfig)N.serializedThirdPartyEmbedConfig=d;N.captionParams={};d=g.LK(g.$l(),65);p.deviceCaptionsOn!=null?N.captionParams.deviceCaptionsOn=p.deviceCaptionsOn:g.wG(H)&&(N.captionParams.deviceCaptionsOn=d!=null?!d:!1);p.kV&&(N.captionParams.deviceCaptionsLangPref=p.kV);p.Dp.length?N.captionParams.viewerSelectedCaptionLangs=p.Dp:g.wG(H)&&(d=g.e3(),d==null?0:d.length)&&(N.captionParams.viewerSelectedCaptionLangs=d);d=p.fetchType==="onesie"&&p.G("html5_onesie_attach_po_token");X=p.fetchType!=="onesie"&& p.G("html5_non_onesie_attach_po_token");if(d||X)d=p.K(),d.XT&&(N.serviceIntegrityDimensions={},N.serviceIntegrityDimensions.poToken=d.XT);H.G("fetch_att_independently")&&(N.attestationRequest={omitBotguardData:!0});if(H.G("html5_enable_sabr_from_watch_server")||H.G("html5_report_supports_vp9_encoding"))N.playbackContext||(N.playbackContext={}),N.playbackContext.devicePlaybackCapabilities=fya(p);return N}; fya=function(p){var C=!(p==null?0:p.dG())&&(p==null?void 0:p.p4())&&XW();if(p==null?0:p.G("html5_report_supports_vp9_encoding")){if(p==null)var V=void 0;else{V=g.aM(p);p=p.K().W;var N=Ck("243");V=N?Ec(V,N,p,!0)===!0:!1}C=V&&!C}else C=void 0;return{supportsVp9Encoding:C,supportXhr:gB}}; qca=function(p,C){var V,N,H;return g.I(function(X){if(X.C==1)return V={context:g.ck(p.K()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:p.videoId,cpn:p.clientPlaybackNonce}}]},N=g.On(yeQ),g.y(X,g.E0(C,V,N),2);H=X.T;return X.return(H)})}; IyS=function(p,C,V){var N=g.mi(C.experiments,"bg_vm_reinit_threshold");(!A5||(0,g.Ip)()-A5>N)&&qca(p,V).then(function(H){H&&(H=H.botguardData)&&g.x1(H,C)},function(H){p.fS()||(H=bv(H),p.k_("attf",H.details))})}; Mh=function(p,C){g.Y.call(this);this.app=p;this.state=C}; mj=function(p,C,V){p.state.T.hasOwnProperty(C)||J_(p,C,V);p.state.D[C]=function(){return V.apply(p,g.US.apply(0,arguments))}; p.state.Y.add(C)}; vk=function(p,C,V){p.state.T.hasOwnProperty(C)||J_(p,C,V);p.app.K().D&&(p.state.J[C]=function(){return V.apply(p,g.US.apply(0,arguments))},p.state.Y.add(C))}; J_=function(p,C,V){p.state.T[C]=function(){return V.apply(p,g.US.apply(0,arguments))}}; g.FE=function(p,C,V){return p.state.T[C].apply(p.state.T,g.K(V))}; SQ=function(){g.IL.call(this);this.W=new Map}; KT=function(){g.Y.apply(this,arguments);this.element=null;this.Y=new Set;this.D={};this.J={};this.T={};this.Z=new Set;this.V=new SQ;this.C=new SQ;this.S=new SQ;this.W=new SQ}; bwu=function(p,C,V){typeof p==="string"&&(p={mediaContentUrl:p,startSeconds:C,suggestedQuality:V});a:{if((C=p.mediaContentUrl)&&(C=/\/([ve]|embed)\/([^#?]+)/.exec(C))&&C[2]){C=C[2];break a}C=null}p.videoId=C;return Dg(p)}; Dg=function(p,C,V){if(typeof p==="string")return{videoId:p,startSeconds:C,suggestedQuality:V};C={};V=g.F(AeY);for(var N=V.next();!N.done;N=V.next())N=N.value,p[N]&&(C[N]=p[N]);return C}; ogH=function(p,C,V,N){if(g.Pv(p)&&!Array.isArray(p)){C="playlist list listType index startSeconds suggestedQuality".split(" ");V={};for(N=0;N<C.length;N++){var H=C[N];p[H]&&(V[H]=p[H])}return V}C={index:C,startSeconds:V,suggestedQuality:N};typeof p==="string"&&p.length===16?C.list="PL"+p:C.playlist=p;return C}; ux=function(){Mh.apply(this,arguments)}; xiX=function(p){mj(p,"cueVideoById",p.hn);mj(p,"loadVideoById",p.G6);mj(p,"cueVideoByUrl",p.pU);mj(p,"loadVideoByUrl",p.PU);mj(p,"playVideo",p.T7a);mj(p,"pauseVideo",p.pauseVideo);mj(p,"stopVideo",p.tZn);mj(p,"clearVideo",p.clearVideo);mj(p,"getVideoBytesLoaded",p.cw);mj(p,"getVideoBytesTotal",p.Md);mj(p,"getVideoLoadedFraction",p.yS);mj(p,"getVideoStartBytes",p.TL);mj(p,"cuePlaylist",p.cuePlaylist);mj(p,"loadPlaylist",p.LD);mj(p,"nextVideo",p.bSx);mj(p,"previousVideo",p.SO_);mj(p,"playVideoAt",p.yiS); mj(p,"setShuffle",p.setShuffle);mj(p,"setLoop",p.setLoop);mj(p,"getPlaylist",p.XP);mj(p,"getPlaylistIndex",p.getPlaylistIndex);mj(p,"getPlaylistId",p.getPlaylistId);mj(p,"loadModule",p.La);mj(p,"unloadModule",p.qy);mj(p,"setOption",p.mX);mj(p,"getOption",p.Jf);mj(p,"getOptions",p.zc);mj(p,"mute",p.ae$);mj(p,"unMute",p.Cc$);mj(p,"isMuted",p.isMuted);mj(p,"setVolume",p.i9_);mj(p,"getVolume",p.getVolume);mj(p,"seekTo",p.kMn);mj(p,"getPlayerMode",p.getPlayerMode);mj(p,"getPlayerState",p.d0);mj(p,"getAvailablePlaybackRates", p.getAvailablePlaybackRates);mj(p,"getPlaybackQuality",function(){return p.getPlaybackQuality(1)}); mj(p,"setPlaybackQuality",p.SVe);mj(p,"getAvailableQualityLevels",p.Pw);mj(p,"getCurrentTime",p.Bw);mj(p,"getDuration",p.Ku);mj(p,"addEventListener",p.oP);mj(p,"removeEventListener",p.YO_);mj(p,"getDebugText",p.Ub);mj(p,"getVideoData",function(){return krv(p)}); mj(p,"addCueRange",p.Q3);mj(p,"removeCueRange",p.removeCueRange);mj(p,"setSize",p.setSize);mj(p,"getApiInterface",p.getApiInterface);mj(p,"destroy",p.destroy);mj(p,"mutedAutoplay",p.mutedAutoplay);var C=p.app.K();C.Y||(mj(p,"getVideoEmbedCode",p.getVideoEmbedCode),mj(p,"getVideoUrl",p.n_));mj(p,"getMediaReferenceTime",p.Ob);mj(p,"getSize",p.getSize);mj(p,"setFauxFullscreen",p.sIn);C.Y||mj(p,"logImaAdEvent",p.logImaAdEvent);mj(p,"preloadVideoById",p.s6_);mj(p,"wakeUpControls",p.wakeUpControls)}; g.Zg=function(p){return(p=Ycj(p.app.Tk()))?p.Cx():null}; fT=function(p){var C=g.Ig(p.app.K()),V,N=(V=p.app.getVideoData())==null?void 0:V.Kp;p=U5(p.app);return g.cw(C)&&!N||p?!1:!0}; krv=function(p,C){var V={};if(C=g.O5(p.app,C===void 0?1:C)){C=C.getVideoData();if(C.isPrivate)return{};V.video_id=C.videoId;V.author=C.author;V.title=C.title;V.isPlayable=a$(C);V.errorCode=C.errorCode;if(C.C&&C.C.video){V.video_quality=C.C.video.quality;C=C.C.video;var N=[];C.fps>32&&N.push("hfr");C.isHdr()&&N.push("hdr");C.primaries==="bt2020"&&N.push("wcg");V.video_quality_features=N}}if(p=p.getPlaylistId())V.list=p;return V}; yk=function(){ux.apply(this,arguments)}; qh=function(p,C){var V={};if(p.app.K().b_){p=g.F(zTL);for(var N=p.next();!N.done;N=p.next())N=N.value,C.hasOwnProperty(N)&&(V[N]=C[N]);if(C=V.qoe_cat)p="",typeof C==="string"&&C.length>0&&(p=C.split(",").filter(function(H){return RTe.includes(H)}).join(",")),V.qoe_cat=p; nge(V)}else for(p=g.F(eTe),N=p.next();!N.done;N=p.next())N=N.value,C.hasOwnProperty(N)&&(V[N]=C[N]);return V}; nge=function(p){var C=p.raw_player_response;if(!C){var V=p.player_response;V&&(C=JSON.parse(V))}delete p.player_response;delete p.raw_player_response;if(C){p.raw_player_response={streamingData:C.streamingData};var N;if((N=C.playbackTracking)==null?0:N.qoeUrl)p.raw_player_response=Object.assign({},p.raw_player_response,{playbackTracking:{qoeUrl:C.playbackTracking.qoeUrl}});var H;if((H=C.videoDetails)==null?0:H.videoId)p.raw_player_response=Object.assign({},p.raw_player_response,{videoDetails:{videoId:C.videoDetails.videoId}})}}; I$=function(p,C,V){var N=p.app.Xt(V);if(!N)return 0;p=N-p.app.getCurrentTime(V);return C-p}; w1y=function(p){var C=C===void 0?5:C;return p?P59[p]||C:C}; g.bx=function(){yk.apply(this,arguments)}; $i9=function(p){J_(p,"getInternalApiInterface",p.getInternalApiInterface);J_(p,"addEventListener",p.w_);J_(p,"removeEventListener",p.Rb_);J_(p,"cueVideoByPlayerVars",p.e_);J_(p,"loadVideoByPlayerVars",p.HU);J_(p,"preloadVideoByPlayerVars",p.Id_);J_(p,"getAdState",p.getAdState);J_(p,"sendAbandonmentPing",p.sendAbandonmentPing);J_(p,"setLoopRange",p.setLoopRange);J_(p,"getLoopRange",p.getLoopRange);J_(p,"setAutonavState",p.setAutonavState);J_(p,"seekTo",p.T6e);J_(p,"seekBy",p.Z7a);J_(p,"seekToLiveHead", p.seekToLiveHead);J_(p,"requestSeekToWallTimeSeconds",p.requestSeekToWallTimeSeconds);J_(p,"seekToStreamTime",p.seekToStreamTime);J_(p,"startSeekCsiAction",p.startSeekCsiAction);J_(p,"getStreamTimeOffset",p.getStreamTimeOffset);J_(p,"getVideoData",p.ZL);J_(p,"setInlinePreview",p.setInlinePreview);J_(p,"getAppState",p.getAppState);J_(p,"updateLastActiveTime",p.updateLastActiveTime);J_(p,"setBlackout",p.setBlackout);J_(p,"setUserEngagement",p.setUserEngagement);J_(p,"updateSubtitlesUserSettings",p.updateSubtitlesUserSettings); J_(p,"getPresentingPlayerType",p.VD);J_(p,"canPlayType",p.canPlayType);J_(p,"updatePlaylist",p.updatePlaylist);J_(p,"updateVideoData",p.updateVideoData);J_(p,"updateEnvironmentData",p.updateEnvironmentData);J_(p,"sendVideoStatsEngageEvent",p.CWk);J_(p,"productsInVideoVisibilityUpdated",p.productsInVideoVisibilityUpdated);J_(p,"setSafetyMode",p.setSafetyMode);J_(p,"isAtLiveHead",function(C){return p.isAtLiveHead(void 0,C)}); J_(p,"getVideoAspectRatio",p.getVideoAspectRatio);J_(p,"getPreferredQuality",p.getPreferredQuality);J_(p,"getPlaybackQualityLabel",p.getPlaybackQualityLabel);J_(p,"setPlaybackQualityRange",p.Elk);J_(p,"onAdUxClicked",p.onAdUxClicked);J_(p,"getFeedbackProductData",p.getFeedbackProductData);J_(p,"getStoryboardFrame",p.getStoryboardFrame);J_(p,"getStoryboardFrameIndex",p.getStoryboardFrameIndex);J_(p,"getStoryboardLevel",p.getStoryboardLevel);J_(p,"getNumberOfStoryboardLevels",p.getNumberOfStoryboardLevels); J_(p,"getCaptionWindowContainerId",p.getCaptionWindowContainerId);J_(p,"getAvailableQualityLabels",p.getAvailableQualityLabels);J_(p,"addCueRange",p.addCueRange);J_(p,"addUtcCueRange",p.addUtcCueRange);J_(p,"showAirplayPicker",p.showAirplayPicker);J_(p,"dispatchReduxAction",p.dispatchReduxAction);J_(p,"getPlayerResponse",p.w0);J_(p,"getWatchNextResponse",p.C_);J_(p,"getHeartbeatResponse",p.lA);J_(p,"getCurrentTime",p.DL);J_(p,"getDuration",p.Hh);J_(p,"getPlayerState",p.getPlayerState);J_(p,"getPlayerStateObject", p.oD);J_(p,"getVideoLoadedFraction",p.getVideoLoadedFraction);J_(p,"getProgressState",p.getProgressState);J_(p,"getVolume",p.getVolume);J_(p,"setVolume",p.zx);J_(p,"isMuted",p.isMuted);J_(p,"mute",p.Bu);J_(p,"unMute",p.QF);J_(p,"loadModule",p.loadModule);J_(p,"unloadModule",p.unloadModule);J_(p,"getOption",p.QY);J_(p,"getOptions",p.getOptions);J_(p,"setOption",p.setOption);J_(p,"loadVideoById",p.GK);J_(p,"loadVideoByUrl",p.h0);J_(p,"playVideo",p.fF);J_(p,"loadPlaylist",p.loadPlaylist);J_(p,"nextVideo", p.nextVideo);J_(p,"previousVideo",p.previousVideo);J_(p,"playVideoAt",p.playVideoAt);J_(p,"getDebugText",p.getDebugText);J_(p,"getWebPlayerContextConfig",p.getWebPlayerContextConfig);J_(p,"notifyShortsAdSwipeEvent",p.notifyShortsAdSwipeEvent);J_(p,"getVideoContentRect",p.getVideoContentRect);J_(p,"setSqueezeback",p.setSqueezeback);J_(p,"toggleSubtitlesOn",p.toggleSubtitlesOn);J_(p,"isSubtitlesOn",p.isSubtitlesOn);J_(p,"reportPlaybackIssue",p.reportPlaybackIssue);J_(p,"setAutonav",p.setAutonav);J_(p, "isNotServable",p.isNotServable);J_(p,"channelSubscribed",p.channelSubscribed);J_(p,"channelUnsubscribed",p.channelUnsubscribed);J_(p,"togglePictureInPicture",p.togglePictureInPicture);J_(p,"supportsGaplessAudio",p.supportsGaplessAudio);J_(p,"supportsGaplessShorts",p.supportsGaplessShorts);J_(p,"enqueueVideoByPlayerVars",function(C){return void p.enqueueVideoByPlayerVars(C)}); J_(p,"clearQueue",p.clearQueue);J_(p,"getAudioTrack",p.hf);J_(p,"setAudioTrack",p.AEo);J_(p,"getAvailableAudioTracks",p.pu);J_(p,"getMaxPlaybackQuality",p.getMaxPlaybackQuality);J_(p,"getUserPlaybackQualityPreference",p.getUserPlaybackQualityPreference);J_(p,"getSubtitlesUserSettings",p.getSubtitlesUserSettings);J_(p,"resetSubtitlesUserSettings",p.resetSubtitlesUserSettings);J_(p,"setMinimized",p.setMinimized);J_(p,"setOverlayVisibility",p.setOverlayVisibility);J_(p,"confirmYpcRental",p.confirmYpcRental); J_(p,"queueNextVideo",p.queueNextVideo);J_(p,"handleExternalCall",p.handleExternalCall);J_(p,"logApiCall",p.logApiCall);J_(p,"isExternalMethodAvailable",p.isExternalMethodAvailable);J_(p,"setScreenLayer",p.setScreenLayer);J_(p,"getCurrentPlaylistSequence",p.getCurrentPlaylistSequence);J_(p,"getPlaylistSequenceForTime",p.getPlaylistSequenceForTime);J_(p,"shouldSendVisibilityState",p.shouldSendVisibilityState);J_(p,"syncVolume",p.syncVolume);J_(p,"highlightSettingsMenuItem",p.highlightSettingsMenuItem); J_(p,"openSettingsMenuItem",p.openSettingsMenuItem);J_(p,"getEmbeddedPlayerResponse",p.getEmbeddedPlayerResponse);J_(p,"getVisibilityState",p.getVisibilityState);J_(p,"isMutedByMutedAutoplay",p.isMutedByMutedAutoplay);p.G("embeds_enable_emc3ds_muted_autoplay")&&J_(p,"isMutedByEmbedsMutedAutoplay",p.isMutedByEmbedsMutedAutoplay);J_(p,"setGlobalCrop",p.setGlobalCrop);J_(p,"setInternalSize",p.setInternalSize);J_(p,"setFauxFullscreen",p.setFauxFullscreen);J_(p,"setAppFullscreen",p.setAppFullscreen)}; o$=function(p,C,V){p=g.A_(p.aI(),C);return V?(V.addOnDisposeCallback(p),null):p}; g.kj=function(p,C,V){return p.app.K().o6?C:g.Ks("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:C,SHORTCUT:V})}; Lwv=function(p){p.aI().element.setAttribute("aria-live","polite")}; g.xj=function(p,C){g.bx.call(this,p,C);$i9(this);vk(this,"addEventListener",this.d_);vk(this,"removeEventListener",this.Dt$);vk(this,"cueVideoByPlayerVars",this.Hs);vk(this,"loadVideoByPlayerVars",this.pD);vk(this,"preloadVideoByPlayerVars",this.ria);vk(this,"loadVideoById",this.GK);vk(this,"loadVideoByUrl",this.h0);vk(this,"playVideo",this.fF);vk(this,"loadPlaylist",this.loadPlaylist);vk(this,"nextVideo",this.nextVideo);vk(this,"previousVideo",this.previousVideo);vk(this,"playVideoAt",this.playVideoAt); vk(this,"getVideoData",this.Z0);vk(this,"seekBy",this.yE_);vk(this,"seekTo",this.aQx);vk(this,"showControls",this.showControls);vk(this,"hideControls",this.hideControls);vk(this,"cancelPlayback",this.cancelPlayback);vk(this,"getProgressState",this.getProgressState);vk(this,"isInline",this.isInline);vk(this,"setInline",this.setInline);vk(this,"setLoopVideo",this.setLoopVideo);vk(this,"getLoopVideo",this.getLoopVideo);vk(this,"getVideoContentRect",this.getVideoContentRect);vk(this,"getVideoStats",this.aT); vk(this,"getCurrentTime",this.tf);vk(this,"getDuration",this.Hh);vk(this,"getPlayerState",this.jj);vk(this,"getVideoLoadedFraction",this.yN);vk(this,"mute",this.Bu);vk(this,"unMute",this.QF);vk(this,"setVolume",this.zx);vk(this,"loadModule",this.loadModule);vk(this,"unloadModule",this.unloadModule);vk(this,"getOption",this.QY);vk(this,"getOptions",this.getOptions);vk(this,"setOption",this.setOption);vk(this,"addCueRange",this.addCueRange);vk(this,"getDebugText",this.getDebugText);vk(this,"getStoryboardFormat", this.getStoryboardFormat);vk(this,"toggleFullscreen",this.toggleFullscreen);vk(this,"isFullscreen",this.isFullscreen);vk(this,"getPlayerSize",this.getPlayerSize);vk(this,"toggleSubtitles",this.toggleSubtitles);vk(this,"setCenterCrop",this.setCenterCrop);vk(this,"setFauxFullscreen",this.setFauxFullscreen);vk(this,"setSizeStyle",this.setSizeStyle);vk(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);vk(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);xiX(this)}; g.Yj=function(p){p=p.Tk();var C=p.Ji.get("endscreen");return C&&C.zE()?!0:p.P9()}; g.zC=function(p,C){p.getPresentingPlayerType()===3?p.publish("mdxautoplaycancel"):p.Jk("onAutonavCancelled",C)}; g.nT=function(p){var C=R$(p.Tk());return p.app.Cq&&!p.isFullscreen()||p.getPresentingPlayerType()===3&&C&&C.bT()&&C.gj()||!!p.getPlaylist()}; g.eQ=function(p,C){g.FE(p,"addEmbedsConversionTrackingParams",[C])}; g.wb=function(p){return(p=g.Pk(p.Tk()))?p.u5():{}}; g.ggj=function(p){p=(p=p.getVideoData())&&p.C;return!!p&&!(!p.audio||!p.video)&&p.mimeType!=="application/x-mpegURL"}; g.LT=function(p,C,V){p=p.dV().element;var N=ir(p.children,function(H){H=Number(H.getAttribute("data-layer"));return V-H||1}); N<0&&(N=-(N+1));Eo(p,C,N);C.setAttribute("data-layer",String(V))}; g.gb=function(p){var C=p.K();if(!C.kt)return!1;var V=p.getVideoData();if(!V||p.getPresentingPlayerType()===3)return!1;var N=(!V.isLiveDefaultBroadcast||C.G("allow_poltergust_autoplay"))&&!E5(V);N=V.isLivePlayback&&(!C.G("allow_live_autoplay")||!N);var H=V.isLivePlayback&&C.G("allow_live_autoplay_on_mweb");p=p.getPlaylist();p=!!p&&p.bT();var X=V.Ga&&V.Ga.playerOverlays||null;X=!!(X&&X.playerOverlayRenderer&&X.playerOverlayRenderer.autoplay);X=V.UV&&X;return!V.ypcPreview&&(!N||H)&&!g.W5(V.Vn,"ypc")&& !p&&(!g.KI(C)||X)}; Wwj=function(p){p=g.O5(p.app);if(!p)return!1;var C=p.getVideoData();if(!C.C||!C.C.video||C.C.video.T<1080||C.wX)return!1;var V=/^qsa/.test(C.clientPlaybackNonce),N="r";C.C.id.indexOf(";")>=0&&(V=/^[a-p]/.test(C.clientPlaybackNonce),N="x");return V?(p.k_("iqss",{trigger:N},!0),!0):!1}; Wk=function(){Pw.apply(this,arguments);this.requestHeaders={}}; rb=function(){Qk||(Qk=new Wk);return Qk}; Bk=function(p,C){C?p.requestHeaders.Authorization="Bearer "+C:delete p.requestHeaders.Authorization}; g.GC=function(p,C,V,N){N=N===void 0?!1:N;g.Sp.call(this,C);var H=this;this.N=p;this.Vn=N;this.J=new g.Rr(this);this.a$=new g.a0(this,V,!0,void 0,void 0,function(){H.zj()}); g.R(this,this.J);g.R(this,this.a$)}; pc=function(p){var C=p.N.getRootNode();return p.N.G("web_enable_auto_pip")||p.N.G("web_enable_pip_on_miniplayer")||p.N.G("web_shorts_pip")?QW(C):document}; Q2Q=function(p){p.C&&(document.activeElement&&g.t2(p.element,document.activeElement)&&p.C.focus(),p.C.setAttribute("aria-expanded","false"),p.C=void 0);g.Am(p.J);p.Z=void 0}; Cc=function(p,C,V){p.rh()?p.f4():p.er(C,V)}; jm=function(p,C,V,N){N=new g.L({L:"div",i_:["ytp-linked-account-popup-button"],Ak:N,X:{role:"button",tabindex:"0"}});C=new g.L({L:"div",B:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},j:[{L:"div",B:"ytp-linked-account-popup-title",Ak:C},{L:"div",B:"ytp-linked-account-popup-description",Ak:V},{L:"div",B:"ytp-linked-account-popup-buttons",j:[N]}]});g.GC.call(this,p,{L:"div",B:"ytp-linked-account-popup-container",j:[C]},100);var H=this;this.dialog=C;g.R(this,this.dialog); N.listen("click",function(){H.f4()}); g.R(this,N);g.LT(this.N,this.element,4);this.hide()}; g.Nl=function(p,C,V,N){g.Sp.call(this,p);this.priority=C;V&&g.V7(this,V);N&&this.Jc(N)}; g.H3=function(p,C,V,N){p=p===void 0?{}:p;C=C===void 0?[]:C;V=V===void 0?!1:V;N=N===void 0?!1:N;C.push("ytp-menuitem");var H=p;"role"in H||(H.role="menuitem");V||(H=p,"tabindex"in H||(H.tabindex="0"));p={L:V?"a":"div",i_:C,X:p,j:[{L:"div",B:"ytp-menuitem-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-menuitem-label",Ak:"{{label}}"},{L:"div",B:"ytp-menuitem-content",Ak:"{{content}}"}]};N&&p.j.push({L:"div",B:"ytp-menuitem-secondary-icon",Ak:"{{secondaryIcon}}"});return p}; g.V7=function(p,C){p.updateValue("label",C)}; XB=function(p){g.Nl.call(this,g.H3({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var C=this;this.N=p;this.C=this.T=!1;this.xM=p.TA();p.createServerVe(this.element,this,!0);this.U(this.N,"settingsMenuVisibilityChanged",function(V){C.RH(V)}); this.U(this.N,"videodatachange",this.S);this.listen("click",this.onClick);this.S()}; dS=function(p){return p?g.uq(p):""}; iT=function(p){g.Y.call(this);this.api=p}; hh=function(p){iT.call(this,p);var C=this;J_(p,"setAccountLinkState",function(V){C.setAccountLinkState(V)}); J_(p,"updateAccountLinkingConfig",function(V){C.updateAccountLinkingConfig(V)}); p.addEventListener("videodatachange",function(V,N){C.onVideoDataChange(N)}); p.addEventListener("settingsMenuInitialized",function(){C.menuItem=new XB(C.api);g.R(C,C.menuItem)})}; rey=function(p){this.api=p;this.T={}}; sO=function(p,C,V,N){C in p.T||(V=new g.sz(V,N,{id:C,priority:2,namespace:"appad"}),p.api.d7([V],1),p.T[C]=V)}; a8=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(this);g.R(this,this.events);this.T=new rey(this.api);this.events.U(this.api,"legacyadtrackingpingreset",function(){C.T.T={}}); this.events.U(this.api,"legacyadtrackingpingchange",function(V){var N=C.T;sO(N,"part2viewed",1,0x8000000000000);sO(N,"engagedview",Math.max(1,V.ER*1E3),0x8000000000000);if(!V.isLivePlayback){var H=V.lengthSeconds*1E3;id(V)&&N.api.G("html5_shorts_gapless_ads_duration_fix")&&(H=N.api.getProgressState().seekableEnd*1E3-V.Vy);sO(N,"videoplaytime25",H*.25,H);sO(N,"videoplaytime50",H*.5,H);sO(N,"videoplaytime75",H*.75,H);sO(N,"videoplaytime100",H,0x8000000000000);sO(N,"conversionview",H,0x8000000000000); sO(N,"videoplaybackstart",1,H);sO(N,"videoplayback2s",2E3,H);sO(N,"videoplayback10s",1E4,H)}}); this.events.U(this.api,g.Ez("appad"),this.C);this.events.U(this.api,g.lG("appad"),this.C)}; Cwa=function(p,C,V){if(!(V in C))return!1;C=C[V];Array.isArray(C)||(C=[C]);C=g.F(C);for(V=C.next();!V.done;V=C.next()){V=V.value;var N={CPN:p.api.getVideoData().clientPlaybackNonce};V=g.nX(V,N);N=void 0;N=N===void 0?!1:N;(N=V6(No(V,BHe),V,N,"Active View 3rd Party Integration URL"))||(N=void 0,N=N===void 0?!1:N,N=V6(No(V,Grj),V,N,"Google/YouTube Brand Lift URL"));N||(N=void 0,N=N===void 0?!1:N,N=V6(No(V,pRY),V,N,"Nielsen OCR URL"));g.BC(V,void 0,N)}return!0}; EO=function(p,C){jZL(p,C).then(function(V){g.BC(C,void 0,void 0,V)})}; lT=function(p,C){C.forEach(function(V){EO(p,V)})}; jZL=function(p,C){return g.bH(p.api.K())&&cd(C)&&tw(C)?g.pk(p.api.K(),g.XE(p.api.getVideoData())).then(function(V){var N;V&&(N={Authorization:"Bearer "+V});return N},void 0):YD()}; V5e=function(p){iT.call(this,p);this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"videoready",function(C){if(p.getPresentingPlayerType()===1){var V,N,H={playerDebugData:{pmlSignal:!!((V=C.getPlayerResponse())==null?0:(N=V.adPlacements)==null?0:N.some(function(X){var d;return X==null?void 0:(d=X.adPlacementRenderer)==null?void 0:d.renderer})), contentCpn:C.clientPlaybackNonce}};g.t1("adsClientStateChange",H)}})}; th=function(p){g.L.call(this,{L:"button",i_:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},j:[{L:"div",B:"ytp-autonav-toggle-button-container",j:[{L:"div",B:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.N=p;this.C=[];this.T=!1;this.isChecked=!0;p.createClientVe(this.element,this,113681);this.U(p,"presentingplayerstatechange",this.wu);this.listen("click",this.onClick);this.N.K().G("web_player_autonav_toggle_always_listen")&& Nz1(this);o$(p,this.element,this);this.wu()}; Nz1=function(p){p.C.push(p.U(p.N,"videodatachange",p.wu));p.C.push(p.U(p.N,"videoplayerreset",p.wu));p.C.push(p.U(p.N,"onPlaylistUpdate",p.wu));p.C.push(p.U(p.N,"autonavchange",p.oU))}; HpQ=function(p){p.isChecked=p.isChecked;p.rV("ytp-autonav-toggle-button").setAttribute("aria-checked",String(p.isChecked));var C=p.isChecked?"Autoplay is on":"Autoplay is off";p.updateValue("title",C);p.updateValue("label",C);p.N.B6()}; XRy=function(p){return p.N.K().G("web_player_autonav_use_server_provided_state")&&jK(p.DE())}; dtj=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"standardControlsInitialized",function(){var V=new th(p);g.R(C,V);p.ju(V)})}; c3=function(p,C){g.Nl.call(this,g.H3({role:"menuitemcheckbox","aria-checked":"false"}),C,p,{L:"div",B:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; TJ=function(p,C){p.checked=C;p.element.setAttribute("aria-checked",String(p.checked))}; ip1=function(p){var C=!p.K().BB&&p.getPresentingPlayerType()!==3;return p.isFullscreen()||C}; g.Ml=function(p,C,V,N){var H=p.currentTarget;if((V===void 0||!V)&&g.o0(p))return p.preventDefault(),!0;C.pauseVideo();p=H.getAttribute("href");g.G6(p,N,!0);return!1}; g.Jh=function(p,C,V){if(nI(C.K())&&C.getPresentingPlayerType()!==2){if(g.o0(V))return C.isFullscreen()&&!C.K().externalFullscreen&&C.toggleFullscreen(),V.preventDefault(),!0}else{var N=g.o0(V);N&&C.pauseVideo();g.G6(p,void 0,!0);N&&(g.pS(p),V.preventDefault())}return!1}; sZ9=function(){var p=hPL.includes("en")?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};p.B="ytp-subtitles-button-icon";return p}; mv=function(){return{L:"div",B:"ytp-spinner-container",j:[{L:"div",B:"ytp-spinner-rotator",j:[{L:"div",B:"ytp-spinner-left",j:[{L:"div",B:"ytp-spinner-circle"}]},{L:"div",B:"ytp-spinner-right",j:[{L:"div",B:"ytp-spinner-circle"}]}]}]}}; v3=function(p){if(document.createRange){var C=document.createRange();C&&(C.selectNodeContents(p),p=window.getSelection())&&(p.removeAllRanges(),p.addRange(C))}}; Kc=function(p){var C=p.G("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";c3.call(this,C,g.FB.ON);var V=this;this.N=p;this.T=!1;this.C=new g.N8(function(){g.tk(V.element,"ytp-menuitem-highlighted")},0); this.xM=p.TA();this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.V,this);this.listen(Sm,this.S);g.R(this,this.C)}; DM=function(p){iT.call(this,p);var C=this;this.T=!1;p.addEventListener("settingsMenuInitialized",function(){a0S(C)}); p.addEventListener("highlightSettingsMenu",function(V){a0S(C);var N=C.menuItem;V==="menu_item_cinematic_lighting"&&(g.Ed(N.element,"ytp-menuitem-highlighted"),g.Ed(N.element,"ytp-menuitem-highlight-transition-enabled"),N.C.start())}); J_(p,"updateCinematicSettings",function(V){C.updateCinematicSettings(V)})}; a0S=function(p){p.menuItem||(p.menuItem=new Kc(p.api),g.R(p,p.menuItem),p.menuItem.Pr(p.T))}; uT=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"applicationvideodatachange",function(V,N){C.sU(V,N)})}; ZM=function(p){iT.call(this,p);this.events=new g.Rr(p);g.R(this,this.events);J_(p,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));J_(p,"setCreatorEndscreenHideButton",this.T.bind(this))}; UO=function(p,C,V,N){c3.call(this,"Stable Volume",g.FB.Gd);g.Ed(this.element,"ytp-drc-menu-item");this.xM=p.TA();this.S=C;this.T=V;this.hasDrcAudioTrack=N;p.addEventListener("videodatachange",this.C.bind(this));p.G("mta_drc_mutual_exclusion_removal")&&this.U(p,"onPlaybackAudioChange",this.C);p=this.T()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.V,this);TJ(this,p);this.xM.zB(this)}; fc=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);p.G("html5_show_drc_toggle")&&p.addEventListener("settingsMenuInitialized",function(){C.menuItem||(C.menuItem=new UO(C.api,C.setDrcUserPreference.bind(C),C.getDrcUserPreference.bind(C),C.C.bind(C)),g.R(C,C.menuItem))}); J_(this.api,"setDrcUserPreference",function(N){C.setDrcUserPreference(N)}); J_(this.api,"getDrcUserPreference",function(){return C.getDrcUserPreference()}); J_(this.api,"hasDrcAudioTrack",function(){return C.C()}); var V;this.T=(V=g.zW("yt-player-drc-pref"))!=null?V:1;this.updateEnvironmentData()}; OO=function(p){iT.call(this,p);var C=this;this.T={};this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"videodatachange",function(){C.onVideoDataChange()}); this.events.U(p,g.Ez("embargo"),function(V){C.api.J9(!0);var N,H=(N=C.T[V.id])!=null?N:[];N=g.F(H);for(H=N.next();!H.done;H=N.next()){var X=H.value;C.api.hideControls();C.api.a_("auth",2,"This video isn't available in your current playback area",yu({embargoed:1,id:V.id,idx:V.C,start:V.start}));H=void 0;(X=(H=X.embargo)==null?void 0:H.onTrigger)&&C.api.Jk("innertubeCommand",X)}})}; EEv=function(p,C){var V;return(V=C.onEnter)==null?void 0:V.some(p.C)}; l0e=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=void 0,H=Number((N=V.playbackPosition)==null?void 0:N.utcTimeMillis)/1E3,X=void 0;N=H+Number((X=V.duration)==null?void 0:X.seconds);X="embargo_"+H;p.api.addUtcCueRange(X,H,N,"embargo",!1);V.onEnter&&(p.T[X]=V.onEnter.filter(p.C))}}; y7=function(p){iT.call(this,p);var C=this;this.T=[];this.events=new g.Rr(p);g.R(this,this.events);J_(p,"addEmbedsConversionTrackingParams",function(V){C.api.K().eE&&C.addEmbedsConversionTrackingParams(V)}); this.events.U(p,"veClickLogged",function(V){C.api.hasVe(V)&&(V=XG(V.visualElement.getAsJspb(),2),C.T.push(V))})}; t5s=function(p){iT.call(this,p);J_(p,"isEmbedsShortsMode",function(){return p.isEmbedsShortsMode()})}; cWL=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"initialvideodatacreated",function(V){Ui(ZF(),16623);C.T=g.bz();var N=p.K().qn&&!V.FT;if(Nh(V)&&N){Ui(ZF(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(V.getWatchNextResponse()){var H,X=(H=V.getWatchNextResponse())==null?void 0:H.trackingParams;X&&Oi(X)}if(V.getPlayerResponse()){var d;(V=(d=V.getPlayerResponse())==null?void 0:d.trackingParams)&&Oi(V)}}else Ui(ZF(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),V.getEmbeddedPlayerResponse()&&(d=(X=V.getEmbeddedPlayerResponse())==null?void 0:X.trackingParams)&&Oi(d)}); this.events.U(p,"loadvideo",function(){Ui(ZF(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:C.T})}); this.events.U(p,"cuevideo",function(){Ui(ZF(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:C.T})}); this.events.U(p,"largeplaybuttonclicked",function(V){Ui(ZF(),27240,V.visualElement)}); this.events.U(p,"playlistnextbuttonclicked",function(V){Ui(ZF(),27240,V.visualElement)}); this.events.U(p,"playlistprevbuttonclicked",function(V){Ui(ZF(),27240,V.visualElement)}); this.events.U(p,"playlistautonextvideo",function(){Ui(ZF(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; ql=function(p,C){g.Y.call(this);var V=this;this.T=null;this.V=C;C=[];for(var N=0;N<=100;N++)C.push(N/100);C={threshold:C,trackVisibility:!0,delay:1E3};(this.C=window.IntersectionObserver?new IntersectionObserver(function(H){H=H[H.length-1];typeof H.isVisible==="undefined"?V.T=null:V.T=H.isVisible?H.intersectionRatio:0;typeof V.V==="function"&&V.V(V.T)},C):null)&&this.C.observe(p)}; M5s=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"applicationInitialized",function(){Tz1(C)})}; Tz1=function(p){p.T=new ql(p.api.getRootNode(),function(C){C!=null&&(p.api.K().gh=C)}); g.R(p,p.T);p.events.U(p.api,"videoStatsPingCreated",function(C){var V=p.T;V=V.T==null?null:Math.round(V.T*100)/100;C.inview=V!=null?V:void 0;V=p.api.getPlayerSize();if(V.height>0&&V.width>0){V=[Math.round(V.width),Math.round(V.height)];var N=g.Pg();N>1&&V.push(N);V=V.join(":")}else V=void 0;C.size=V})}; JWs=function(p){var C;return((C=((p==null?void 0:p.messageRenderers)||[]).find(function(V){return!!V.timeCounterRenderer}))==null?void 0:C.timeCounterRenderer)||null}; I8=function(p){g.L.call(this,{L:"div",i_:["ytp-player-content","ytp-iv-player-content"],j:[{L:"div",B:"ytp-free-preview-countdown-timer",j:[{L:"span",Ak:"{{label}}"},{L:"span",B:"ytp-free-preview-countdown-timer-separator",Ak:"\u2022"},{L:"span",Ak:"{{duration}}"}]}]});this.api=p;this.T=null;this.V=this.C=0;this.U(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; vEe=function(p,C){p.T||(p.C=C,p.V=(0,g.Ip)(),p.T=new g.V2(function(){mt9(p)},null),mt9(p))}; mt9=function(p){var C=Math,V=C.round,N=Math.min((0,g.Ip)()-p.V,p.C);C=V.call(C,(p.C-N)/1E3);p.updateValue("duration",vY({seconds:C}));C<=0&&p.T?Fpe(p):p.T&&p.T.start()}; Fpe=function(p){p.T&&(p.T.dispose(),p.T=null)}; S9V=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"basechromeinitialized",function(){C.T=new I8(p);g.R(C,C.T);g.LT(p,C.T.element,4);C.T.hide()})}; bT=function(p){g.L.call(this,{L:"button",i_:["ytp-fullerscreen-edu-button","ytp-button"],j:[{L:"div",i_:["ytp-fullerscreen-edu-text"],Ak:"Scroll for details"},{L:"div",i_:["ytp-fullerscreen-edu-chevron"],j:[{L:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.ea=p;this.T=new g.a0(this,250,void 0,100);this.V=this.C=!1;p.createClientVe(this.element,this,61214);g.R(this, this.T);this.U(p,"fullscreentoggled",this.Pr);this.U(p,"presentingplayerstatechange",this.Pr);this.listen("click",this.onClick);this.Pr()}; Ah=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);J_(this.api,"updateFullerscreenEduButtonSubtleModeState",function(N){C.updateFullerscreenEduButtonSubtleModeState(N)}); J_(this.api,"updateFullerscreenEduButtonVisibility",function(N){C.updateFullerscreenEduButtonVisibility(N)}); var V=p.K();p.G("external_fullscreen_with_edu")&&V.externalFullscreen&&nI(V)&&V.controlsType==="1"&&this.events.U(p,"standardControlsInitialized",function(){C.T=new bT(p);g.R(C,C.T);p.ju(C.T)})}; KpQ=function(p){g.L.call(this,{L:"div",B:"ytp-gated-actions-overlay",j:[{L:"div",B:"ytp-gated-actions-overlay-background",j:[{L:"div",B:"ytp-gated-actions-overlay-background-overlay"}]},{L:"button",i_:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},j:[g.yD()]},{L:"div",B:"ytp-gated-actions-overlay-bar",j:[{L:"div",B:"ytp-gated-actions-overlay-text-container",j:[{L:"div",B:"ytp-gated-actions-overlay-title",Ak:"{{title}}"},{L:"div",B:"ytp-gated-actions-overlay-subtitle", Ak:"{{subtitle}}"}]},{L:"div",B:"ytp-gated-actions-overlay-button-container"}]}]});var C=this;this.api=p;this.background=this.rV("ytp-gated-actions-overlay-background");this.C=this.rV("ytp-gated-actions-overlay-button-container");this.T=[];this.U(this.rV("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){C.api.Jk("onCloseMiniplayer")}); this.hide()}; u6y=function(p,C){var V=0;V=0;for(var N={};V<C.length;N={y_:void 0},V++){var H=p.T[V],X=void 0,d=(X=H)==null?void 0:X.element;d||(d=new g.L({L:"button",B:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},j:[{L:"div",B:"ytp-gated-actions-overlay-button-title",Ak:"{{buttonText}}"}]}),g.R(p,d),d.u_(p.C),H={element:d});N.y_=g.n(C[V],Dtu);var a=X=void 0,E=void 0,l=((X=N.y_)==null?void 0:X.title)||((a=N.y_)==null?void 0:(E=a.titleFormatted)==null?void 0:E.content)||"";d.update({buttonText:l});H.listener&& d.rY(H.listener);H.listener=d.listen("click",function(t){return function(){var c,T=g.n((c=t.y_)==null?void 0:c.onTap,w7);T&&p.api.Jk("innertubeCommand",T)}}(N)); p.T[V]=H}for(;V<p.T.length;)p.T.pop().element.dispose()}; ZpY=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.T=new KpQ(this.api);g.R(this,this.T);this.events.U(p,"videodatachange",function(){var V,N=(V=C.api.getVideoData())==null?void 0:V.lS;V=C.T;if(N){var H,X,d=((H=N.title)==null?void 0:H.content)||"";H=((X=N.subtitle)==null?void 0:X.content)||"";V.update({title:d,subtitle:H});d=N.thumbnail;X="none";if(d==null?0:d.sources){H=0;d=g.F(d.sources);for(var a=d.next();!a.done;a=d.next())a=a.value,a.width&&a.url&&a.width> H&&(H=a.width,X="url("+a.url+")")}V.background.style.backgroundImage=X;u6y(V,N.actionButtons||[]);V.show()}else V.hide()}); g.LT(this.api,this.T.element,4)}; UtX=function(p){iT.call(this,p);var C=this;this.T=null;this.events=new g.Rr(p);g.R(this,this.events);var V=p.K();V.Y9=!1;V.UY=!1;V.Um=!1;vk(p,"resetSubtitlesUserSettings",function(){p.resetSubtitlesUserSettings()}); vk(p,"getSubtitlesUserSettings",function(){return p.getSubtitlesUserSettings()}); vk(p,"updateSubtitlesUserSettings",function(X){p.updateSubtitlesUserSettings(X)}); vk(p,"getCaptionTracks",function(){return p.getOption("captions","tracklist",{includeAsr:!0})}); vk(p,"getAvailableQualityLevels",function(){return p.getAvailableQualityLevels()}); vk(p,"getPreferredQuality",function(){return p.getPreferredQuality()}); vk(p,"getPlaybackQuality",function(){return p.getPlaybackQuality()}); vk(p,"setPlaybackQuality",function(X){p.setPlaybackQuality(X)}); var N=this.api.Uu(),H=N.subscribe("visibilitystatechange",function(){p.Ba("onPictureInPictureChange",N.l0())}); this.addOnDisposeCallback(function(){N.zW(H)}); vk(p,"setRootNodeClickAction",function(X){C.T=X}); this.events.U(p.getRootNode(),"click",function(){switch(C.T){case "togglePictureInPicture":p.togglePictureInPicture();break;case "play":p.playVideo()}})}; f0X=function(p){iT.call(this,p);p=p.K();p.i8.push("flix");p.UY=!1;p.Y9=!1}; I0a=function(p){iT.call(this,p);var C=this;this.T={};this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"applicationInitialized",function(){C.T=Ops(yWX)}); this.events.U(p,"onPlaybackStartExternal",function(){var V=Object.assign({},C.T,Ops(q9j));C.api.k_("hbp_csi",V,!0,1)})}; Ops=function(p){var C={},V=g.NU(G0)("_start",void 0);if(V){p=g.F(p);for(var N=p.next();!N.done;N=p.next()){N=N.value;var H=g.NU(G0)(N,void 0);H&&(C[N]=Math.round(H-V))}}return C}; o8=function(p){iT.call(this,p);var C=this;vk(this.api,"getSphericalProperties",function(){return C.getSphericalProperties()}); vk(this.api,"setSphericalProperties",function(){C.setSphericalProperties.apply(C,g.K(g.US.apply(0,arguments)))}); mj(this.api,"getSphericalProperties",function(){return C.api.getPresentingPlayerType()===2?{}:C.getSphericalProperties()}); mj(this.api,"setSphericalProperties",function(){var V=g.US.apply(0,arguments);C.api.getPresentingPlayerType()!==2&&C.setSphericalProperties.apply(C,g.K(V))})}; bpX=function(p){iT.call(this,p);J_(p,"createClientVe",this.createClientVe.bind(this));J_(p,"createServerVe",this.createServerVe.bind(this));J_(p,"destroyVe",this.destroyVe.bind(this));J_(p,"hasVe",this.hasVe.bind(this));J_(p,"logClick",this.logClick.bind(this));J_(p,"logVisibility",this.logVisibility.bind(this));J_(p,"setTrackingParams",this.setTrackingParams.bind(this))}; kv=function(p,C,V,N){function H(d){var a=!(d.status!==204&&d.status!==200&&!d.response),E;d={succ:""+ +a,rc:d.status,lb:((E=d.response)==null?void 0:E.byteLength)||0,rt:((0,g.Ip)()-X).toFixed(),shost:g.LJ(p),trigger:C};AWe(d,p);V&&V(d);N&&!a&&N(new qD("pathprobe.net",d))} var X=(0,g.Ip)();g.qU(p,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:H,onTimeout:H})}; AWe=function(p,C){var V;((V=window.performance)==null?0:V.getEntriesByName)&&(C=performance.getEntriesByName(C))&&C.length&&(C=C[0],p.pedns=(C.domainLookupEnd-C.startTime).toFixed(),p.pecon=(C.connectEnd-C.domainLookupEnd).toFixed(),p.perqs=(C.requestStart-C.connectEnd).toFixed(),oEQ&&(p.perqsa=C.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; kn1=function(p,C){this.n1=p;this.policy=C;this.playbackRate=1}; xtX=function(p,C){var V=Math.min(2.5,tR(p.n1));p=xv(p);return C-V*p}; zPa=function(p,C,V,N,H){H=H===void 0?!1:H;if(p.policy.vK)return Math.ceil(p.policy.vK*C);p.policy.td&&(N=Math.abs(N));N/=p.playbackRate;var X=1/Mn(p.n1);V=Math.max(.9*(N-3),tR(p.n1)+p.n1.C.T*X)/X*.8/(C+V);V=Math.min(V,N);p.policy.Gp>0&&H&&(V=Math.max(V,p.policy.Gp));return Y9y(p,V,C)}; Y9y=function(p,C,V){return Math.ceil(Math.max(Math.max(p.policy.Kq,p.policy.m0*V),Math.min(Math.min(p.policy.Y_,31*V),Math.ceil(C*V))))||p.policy.Kq}; RPQ=function(p,C,V){V=zPa(p,C.T.info.F$,V.T.info.F$,0);var N=tR(p.n1)+V/Mn(p.n1);return Math.max(N,N+p.policy.Za-V/C.T.info.F$)}; xv=function(p){return Mn(p.n1,!p.policy.Pz,p.policy.uv)}; Yv=function(p){return xv(p)/p.playbackRate}; nES=function(p,C,V){var N=p.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],H=p.policy.playbackStartPolicy.startMinReadaheadPolicy||[];p=Infinity;C=g.F(C&&N.length>0?N:H);for(N=C.next();!N.done;N=C.next())N=N.value,H=N.minReadaheadMs||0,V<(N.minBandwidthBytesPerSec||0)||p>H&&(p=H);return p<Infinity?p/1E3:p}; ePs=function(p,C,V,N){var H=this;this.D=p;this.hk=C;this.policy=V;this.logger=N;this.n6=[];this.xG=[];this.T=-1;this.NW=null;this.Y=this.timestampOffset=0;this.GB=null;this.C=10;this.W=new Set;this.Sr={V5:function(X){return H.V5(X)}}; this.S=C.p4?0:1;V.Mc>0&&(this.C=V.Mc)}; LpL=function(p,C,V,N,H){if(!N.info.S){if(V.length===0)V.push(N);else{var X;(p=(X=V.pop())==null?void 0:Qv(X,N))?V.push(p):V.push(N)}return H}var d;(V=(d=V.pop())==null?void 0:Qv(d,N))||(V=N);if(p.policy.va&&V.info.C)return p.logger&&p.logger({incompleteSegment:V.info.Zh()}),H;d=p.V5(V);N=d.formatId;H=d.LS;V=d.clipId;X=d.Qu;d=d.startTimeMs;if(!p.policy.XT&&p.policy.C&&p.GB){var a=zJ(p.GB,V);d+=a}N={clipId:V,formatId:N,startTimeMs:d,durationMs:X,WI:H,nx:H,bC:d,aW:X};H=Pw9(C,N.startTimeMs);(V=H>=0?C[H]: null)&&wRX(p,V,N)?N=V:(H+=1,C.splice(H,0,N));V=0;for(X=H+1;X<C.length;X++){d=p;a=C[X];var E=N,l=a.startTimeMs+a.durationMs,t=E.startTimeMs+E.durationMs;t>=l+d.C?d=!0:t+d.C<a.startTimeMs?d=!1:$tX(d,a.formatId,E.formatId)?(E.durationMs=l-E.startTimeMs,E.aW=E.durationMs,E.nx=a.nx,d=!0):(a.startTimeMs=t,a.bC=t,a.WI=E.nx+1,d=!1);if(!d)break;V++}V&&C.splice(H+1,V);return H}; Wp9=function(p,C,V){p.policy.va&&V!=null&&V.h6||(p.n6=[]);p.policy.JB?(C=g.Xv(p.xG,{startTimeMs:C*1E3},function(N,H){return N.startTimeMs-H.startTimeMs}),p.T!==C&&(p.T=-1,p.V=void 0)):(gES(p,!0),p.T=Pw9(p.xG,C*1E3))}; Pw9=function(p,C){p=g.Xv(p,{startTimeMs:C},function(V,N){return V.startTimeMs-N.startTimeMs}); return p>=0?p:-p-2}; gES=function(p,C){if(p.NW){var V=p.NW.K7();if(V.length!==0){if(p.V&&C){var N=p.V,H=N.info.Qi;!EJ(V,H)&&N.info.Y>0&&(0,g.Ip)()-p.Y<5E3&&(p.logger&&p.logger({dend:N.info.Zh()}),V=JOS(V,H,H+.01))}p.policy.JB&&p.logger&&p.logger({cbri:""+p.T});N=[];for(var X=H=0;H<V.length&&X<p.xG.length;){var d=V.start(H),a=V.end(H),E=p.xG[X].startTimeMs/1E3,l=(p.xG[X].startTimeMs+p.xG[X].durationMs)/1E3;if(E<=a&&l>=d){var t=0;if(p.GB){var c=R8(p.GB,E*1E3);c&&(t=c.SI/1E3)}c=Object.assign({},p.xG[X]);var T=p.hk.V.get(S5(p.xG[X].formatId)), M=Math.max(E,d);d=T.index.tU(M+p.C/1E3-t);E=T.index.getStartTime(d)+t;var J=d+ +(Math.abs(E-M)>p.C/1E3);M=J+p.S;J=(T.index.getStartTime(J)+t)*1E3;X!==p.T||C?(c.WI=M,c.startTimeMs=J):(p.logger&&p.logger({pEvict:"1",og:c.startTimeMs,adj:E*1E3}),c.WI=d+p.S,c.startTimeMs=E*1E3);c.bC=c.startTimeMs;d=void 0;E=((d=p.V)==null?void 0:d.info.duration)||11;X===p.T&&a<l&&l-a<=E*1.01&&(a=l);d=Math.min(l,a);E=T.index.tU(d-p.C/1E3-t);M=p.policy;(M.C||M.I$.G("html5_sabr_include_tail_media_chunk"))&&T.index.fk(E+ 1)&&T.index.TV(E+1)+t<=d&&(E+=1);M=T.index.TV(E)+t;E-=+(Math.abs(M-d)>p.C/1E3);d=E+p.S;t=(T.index.TV(E)+t)*1E3;c.nx=d;c.durationMs=t-c.startTimeMs;c.aW=c.durationMs;c.WI<=c.nx&&N.push(c)}l<a?X+=1:H+=1}p.xG=N}}}; QZe=function(p){var C=[],V=[].concat(g.K(p.n6));p.xG.forEach(function(d){C.push(Object.assign({},d))}); for(var N=p.T,H=g.F(p.D.ou()),X=H.next();!X.done;X=H.next())N=LpL(p,C,V,X.value,N);C.forEach(function(d){d.startTimeMs&&(d.startTimeMs+=p.timestampOffset*1E3,d.bC&&(d.bC+=p.timestampOffset*1E3))}); return{xG:C,n6:V}}; wRX=function(p,C,V){var N=C.startTimeMs+C.durationMs,H=V.startTimeMs+V.durationMs;if(V.startTimeMs-N>p.C)return!1;if($tX(p,C.formatId,V.formatId))return C.durationMs=Math.max(N,H)-C.startTimeMs,C.aW=C.durationMs,C.nx=Math.max(C.nx,V.nx),!0;if(Math.abs(C.startTimeMs-V.startTimeMs)<=p.C){if(C.durationMs>V.durationMs+p.C){p=C.formatId;var X=C.WI,d=C.nx;C.formatId=V.formatId;C.durationMs=V.durationMs;C.WI=V.WI;C.aW=V.durationMs;C.nx=V.nx;V.formatId=p;V.startTimeMs=H;V.bC=H;V.durationMs=N-H;V.aW=V.durationMs; V.WI=X;V.nx=d;return!1}C.formatId=V.formatId;return!0}N>V.startTimeMs&&(C.durationMs=V.startTimeMs-C.startTimeMs,C.aW=C.durationMs,p.policy.iz&&C.clipId===V.clipId&&(C.nx=V.WI-1));return!1}; $tX=function(p,C,V){return C.itag!==V.itag||C.xtags!==V.xtags?!1:p.hk.p4||C.lmt===V.lmt}; rWy=function(p,C,V){if(p.logger){for(var N=[],H=0;H<C.length;H++){var X=C[H],d=void 0;if((d=X.SK)==null?0:d.wI){var a=d=void 0,E=void 0;N.push("i."+((d=X.formatId)==null?void 0:d.itag)+"_st."+(X.startTimeMs+"_psst.")+(((a=X.SK)==null?void 0:a.wI)+"_psd.")+((E=X.SK)==null?void 0:E.zT))}d=void 0;N.push("i."+((d=X.formatId)==null?void 0:d.itag)+"_st."+(X.startTimeMs+"_e."+(X.startTimeMs+X.durationMs)+"_d."+X.durationMs)+("_sn."+X.WI)+("_en."+X.nx))}p.logger({p:""+V,br:N.join(";")})}}; BzQ=function(p){p.xG=[];p.n6=[];p.W.clear();p.T=-1;p.V=void 0}; nc=function(p,C,V,N,H){this.nS=p;this.hk=C;this.videoTrack=V;this.audioTrack=N;this.policy=H;this.seekCount=this.T=0;this.W=!1;this.S=null;this.V=0;this.C=this.hk.isManifestless&&!this.hk.EO}; GnS=function(p,C,V){if(!p.policy.Y){p=C.T.index;var N=C.C.LS;p.fk(N)||V&&V.LS===N?(C.W=!p.fk(N),C.b_=!p.fk(N)):(C.W=!0,C.b_=!0)}}; CoQ=function(p){var C=Math.max(p.videoTrack.S.V||0,p.audioTrack.S.V||0);pbX(p.videoTrack);pbX(p.audioTrack);p.policy.Y||pPL(p.hk);p.hk.isManifestless&&!p.policy.Y&&(p.C=!0,p.V=0);var V=p.nS;V.policy.Wr||(V.currentTime=C);p.W=!0;p.S=new hK;return p.S}; NBe=function(p,C,V,N,H){var X=p.policy.va?H:void 0;if(!C.T.rI()){if(!(X=V===0||!!C.V.length&&C.V[0]instanceof em))a:{if(C.V.length&&(X=C.V[0],X instanceof P3&&X.mf&&X.TU)){X=!0;break a}X=!1}X||p.policy.T||wS(C);return V}var d=$v(C,V);if(!isNaN(d))return d;if(p.nS.im(V*1E3))return V;H.h6?p.policy.IX&&(p=Lc(p.nS,C),j5s(C.S,V+p,!0)):(C.H$(),p.nS.SY(!1,"sta_"+ +C.T.info.DQ()));return N&&(p=lX(N.K7(),V),!isNaN(p))?(gS(C,p+VO1,X),V):gS(C,V,X)}; d61=function(p,C,V,N){if(p.policy.Y)!N||!p.C&&p.policy.ER||g.mo(function(){W3(p)}); else{if(p.isSeeking()&&p.T){var H=Hby(p,C,V);if(H!==-1){p.videoTrack.W=!1;p.audioTrack.W=!1;p.C=!0;p.V=0;g.mo(function(){p.nS.k_("seekreason",{reason:"behindMinSq",tgt:H});Xbe(p,H)}); return}}V?p.videoTrack.b_=!1:p.audioTrack.b_=!1;var X=p.policy.WA||!p.C;$v(p.videoTrack,p.T)>=0&&$v(p.audioTrack,p.T)>=0&&X?((p.videoTrack.W||p.audioTrack.W)&&p.nS.k_("iterativeSeeking",{status:"done",count:p.seekCount}),p.videoTrack.W=!1,p.audioTrack.W=!1):N&&g.mo(function(){if(p.C||!p.policy.ER)W3(p);else{var d=C.startTime,a=C.duration;if(!p.policy.Y){var E=V?p.videoTrack.W:p.audioTrack.W,l=p.videoTrack.Y!==-1&&p.audioTrack.Y!==-1,t=p.T>=d&&p.T<d+a+.1,c=!p.videoTrack.b_&&!p.audioTrack.b_,T=p.policy.LW&& $v(p.videoTrack,d)&&$v(p.audioTrack,d);E&&l&&c&&(t||T?((V?p.videoTrack:p.audioTrack).W=!1,p.videoTrack.W||p.audioTrack.W||(p.nS.k_("iterativeSeeking",{status:"done",target:d,originalTime:d+p.nS.yZ(),count:p.seekCount}),p.seekCount=0)):p.seekCount<8?(p.seekCount++,p.nS.k_("iterativeSeeking",{status:"inprogress",count:p.seekCount,target:p.T,actual:d,duration:a,isVideo:V}),p.seek(p.T,{})):(p.nS.k_("iterativeSeeking",{status:"incomplete",count:p.seekCount,target:p.T,actual:d}),p.seekCount=0,p.videoTrack.W= !1,p.audioTrack.W=!1,Q7(p.nS,d+.1,{EC:!0,NZ:"chunkSelectorSynchronizeMedia",zR:!0})))}}})}}; Hby=function(p,C,V){if(!p.isSeeking())return-1;V=(V?p.videoTrack:p.audioTrack).T.index;var N=V.tU(p.T);return(V.fk(p.hk.AE)||C.LS===p.hk.AE)&&N<p.hk.AE?p.hk.Wa():-1}; Xbe=function(p,C,V){p.C&&p.videoTrack.Y!==-1&&p.audioTrack.Y!==-1&&(p.C=!1,p.T=C,Q7(p.nS,C+.1,{EC:!0,NZ:"chunkSelectorSynchronize",zR:!0,seekSource:V}))}; W3=function(p){var C=p.videoTrack.Y!==-1,V=p.audioTrack.Y!==-1;if(!C||!V)if(C=!C&&rS(p.videoTrack),V=!V&&rS(p.audioTrack),C||V){V=C?p.videoTrack:p.audioTrack;C=C?p.audioTrack:p.videoTrack;V.Y=rS(V).info.LS;if(p.policy.Y){var N;C.Y=((N=rS(C))==null?void 0:N.info.LS)||C.Y}if(C.Y!==-1){var H=Math.max(C.T.index.getStartTime(C.Y),V.T.index.getStartTime(V.Y));M6(p.hk)&&Math.abs(H-M6(p.hk))>432E3&&Cns(p.hk);p.V&&(H=p.V,p.V=0);g.mo(function(){p.policy.Y||Xbe(p,H,102)}); p.nS.k_("initManifestlessSync",{st:H,ost:H+p.nS.yZ(),a:p.audioTrack.Y,v:p.videoTrack.Y});p.S&&(p.S.resolve(H+.1),p.S=null);p.policy.Y&&Xbe(p,H,102)}}}; B3=function(p,C){var V=this;this.aH=p;this.requestNumber=++iba;this.T=this.now();this.a$=this.J=NaN;this.D=this.T;this.V=this.YM=this.W=0;this.Y=this.T;this.Y_=this.Sa=this.R$=this.qW=this.wy=this.sY=this.C=this.S=0;this.Z=this.isActive=!1;this.ER=this.qo=0;this.Sr={t6$:function(){return V.Ti}}; this.n1=C.n1;this.snapshot=zOS(this.n1);this.policy=this.n1.C;this.bq=!!C.bq;this.rW=C.rW;this.v_=C.v_||0;C.BJ&&(this.Vn=new Xs);var N;this.Ti=(N=C.Ti)!=null?N:!1;k$V(this.n1)}; hna=function(p){p.R$=Math.max(p.R$,p.W-p.wy);p.Sa=Math.max(p.Sa,p.D-p.qW);p.sY=0}; GJ=function(p,C,V){xBe(p.n1,C);p.Vn&&(p.Vn.add(Math.ceil(C)-Math.ceil(p.D)),p.Vn.add(Math.max(0,Math.ceil(V/1024)-Math.ceil(p.W/1024))));var N=C-p.D,H=V-p.W;p.YM=H;p.Y_=Math.max(p.Y_,H/(N+.01)*1E3);p.D=C;p.W=V;p.sY&&V>p.sY&&hna(p)}; s5a=function(p,C){p.url=C;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; p4=function(p,C){B3.call(this,p,C);this.Wc=this.Hc=!1;this.Wr=this.b_=Infinity;this.vr=NaN;this.kM=!1;this.UY=NaN;this.Q$=this.KS=this.Qn=0;this.RO=C.RO||1;this.sP=C.sP||this.RO;this.Vv=C.Vv;this.LS=C.LS;this.kq=C.kq;this.HR=C.HR||0;a8H(this);this.gD(this.T);this.X$=(this.UY-this.T)/1E3}; E$X=function(p){var C=p.KS||p.Qn;return C?p.snapshot.delay+Math.min(p.HR,(p.a$-p.J)/1E3)+C:p.X$}; l8Y=function(p,C,V){if(!p.bq){C=Math.max(C,.01);var N=p.v_?Math.max(C,V/p.v_):C;p.n1.C.V&&(N=C,p.v_&&(N=Math.max(C,V/p.v_*N)));ag(p.n1,C,V,N)}}; tOv=function(p){return(p.Y-p.T)/1E3}; a8H=function(p){p.vr=p.T+p.snapshot.delay*1E3;p.kM=!1}; MOs=function(p,C){if(p.Vv&&p.LS!==void 0&&p.kq!==void 0){var V=Math,N=V.min,H=p.b_;var X=p.Vv;var d=p.T;if(cz9(X,p.LS))X=C;else{var a=0;X.q3&&(a=.2);X=d+(X.HR+a)*1E3}p.b_=N.call(V,H,X);V=Math;N=V.min;H=p.Wr;X=p.Vv;d=p.T;a=TB9(X,p.LS,p.kq);a!==2&&(C=a?C:d+X.HR*1E3,X.q3&&(C+=X.HR*1E3));p.Wr=N.call(V,H,C);p.b_<=p.T?a8H(p):(p.vr=p.b_,p.kM=!0)}}; Jzu=function(p,C){if(p.sC(C,1)){var V=p.getUint8(C);V=V<128?1:V<192?2:V<224?3:V<240?4:5}else V=0;if(V<1||!p.sC(C,V))return[-1,C];if(V===1)p=p.getUint8(C++);else if(V===2)V=p.getUint8(C++),p=p.getUint8(C++),p=(V&63)+64*p;else if(V===3){V=p.getUint8(C++);var N=p.getUint8(C++);p=p.getUint8(C++);p=(V&31)+32*(N+256*p)}else if(V===4){V=p.getUint8(C++);N=p.getUint8(C++);var H=p.getUint8(C++);p=p.getUint8(C++);p=(V&15)+16*(N+256*(H+256*p))}else V=C+1,p.focus(V),zk(p,V,4)?p=b5Y(p).getUint32(V-p.jH,!0):(N= p.getUint8(V+2)+256*p.getUint8(V+3),p=p.getUint8(V)+256*(p.getUint8(V+1)+256*N)),C+=5;return[p,C]}; C4=function(p){this.aH=p;this.T=new o4}; jf=function(p,C){this.info=p;this.callback=C;this.state=1;this.C6=this.X2=!1;this.TI=null}; m6S=function(p){return g.oo(p.info.wV,function(C){return C.type===3})}; v$e=function(p,C,V,N){var H=this;N=N===void 0?{}:N;this.policy=C;this.aH=V;this.status=0;this.T=new o4;this.C=0;this.fS=this.S=this.V=!1;this.xhr=new XMLHttpRequest;this.xhr.open(N.method||"GET",p);if(N.headers)for(p=N.headers,C=g.F(Object.keys(p)),V=C.next();!V.done;V=C.next())V=V.value,this.xhr.setRequestHeader(V,p[V]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return H.q$()}; this.xhr.onload=function(){return H.onDone()}; this.xhr.onerror=function(){return H.onError()}; this.xhr.fetch(function(X){H.T.append(X);H.C+=X.length;X=(0,g.Ip)();H.aH.w9(X,H.C)},function(){},N.body||null)}; F6e=function(p,C){this.C=(new TextEncoder).encode(p);this.T=(new TextEncoder).encode(C)}; rLS=function(p,C){var V,N,H;return g.I(function(X){if(X.C==1){if(!C)return X.return(C);V=VN.dB();N=new g.OF(p.C);return g.y(X,N.encrypt(C,p.T),2)}H=X.T;VN.Dk("woe",V,Math.ceil(C.byteLength/16));return X.return(H)})}; jHQ=function(p,C){var V,N,H;return g.I(function(X){if(X.C==1){if(!C)return X.return(C);V=VN.dB();N=new g.OF(p.C);return g.y(X,N.decrypt(C,p.T),2)}H=X.T;VN.Dk("wod",V,Math.ceil(C.byteLength/16));return X.return(H)})}; K6e=function(p,C){var V=this;this.T=p;this.aH=C;this.loaded=this.status=0;this.error="";p=uw(this.T.get("range")||"");if(!p)throw Error("bad range");this.range=p;this.C=new o4;S6a(this).then(function(){V.aH.Kk()},function(N){V.error=""+N||"unknown_err"; V.aH.Kk()})}; S6a=function(p){var C,V,N,H,X,d,a,E,l,t,c,T,M,J,S;return g.I(function(D){if(D.C==1){p.status=200;C=p.T.get("docid");V=HG(p.T.get("fmtid")||"");N=p.T.get("lmt")||"0";H=+(p.T.get("csz")||0);if(!C||!V||!H)throw Error("Invalid local URL");p.T.get("ck")&&p.T.get("civ")&&(X=new F6e(p.T.get("ck"),p.T.get("civ")));d=p.range;a=Math.floor(d.start/H);E=Math.floor(d.end/H);l=a}if(D.C!=5)return l<=E?g.y(D,V3L(C,V,N,l,X),5):D.EY(0);t=D.T;if(t===void 0)throw Error("invariant: data is undefined");c=l*H;T=(l+1)*H; M=Math.max(0,d.start-c);J=Math.min(d.end+1,T)-(M+c);S=new Uint8Array(t.buffer,M,J);p.C.append(S);p.loaded+=J;p.loaded<d.length&&p.aH.w9((0,g.Ip)(),p.loaded);l++;return D.EY(2)})}; u11=function(p,C,V,N){var H=this;N=N===void 0?{}:N;this.policy=C;this.aH=V;this.D=N;this.status=0;this.response=void 0;this.C=0;this.W=this.Y=!1;this.errorMessage="";this.Z=function(X){if(X)if(H.status=X.status,X.ok&&X.body&&H.status!==204)H.status=H.status||242,H.V=X.body.getReader(),H.fS()?H.V.cancel().catch(function(){}):(H.responseHeaders=X.headers,H.aH.nT(),D69(H)); else H.onDone();else H.onError(Error("null_response"))}; this.J=function(X){var d=(0,g.Ip)();H.fS()||(X.done?(H.V=void 0,H.onDone()):(X=X.value,H.C+=X.length,H.T.append(X),D69(H),H.aH.w9(d,H.C)))}; this.onError=function(X){H.errorMessage=String(X);H.Y=!0;H.onDone()}; this.T=new o4;this.S=window.AbortController?new AbortController:void 0;this.start(p)}; D69=function(p){p.V.read().then(p.J,p.onError).then(void 0,lN)}; Zbe=function(p,C,V){var N=this;V=V===void 0?{}:V;this.aH=C;this.C=this.status=0;this.fS=this.T=!1;this.xhr=new XMLHttpRequest;this.xhr.open(V.method||"GET",p);if(V.headers){p=V.headers;C=g.F(Object.keys(p));for(var H=C.next();!H.done;H=C.next())H=H.value,this.xhr.setRequestHeader(H,p[H])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(X){N.q$(X)}; p=FF(function(X){N.onDone(X)}); this.xhr.addEventListener("load",p,!1);this.xhr.addEventListener("error",p,!1);V.body?this.xhr.send(V.body):this.xhr.send();this.xhr.addEventListener("progress",FF(function(X){N.Nn(X)}),!1)}; Nx=function(p,C,V,N,H){if(Kw(p.GU))return new K6e(p,V);p=p.i9();return N?Kt9()?new v$e(p,C,V,H):new u11(p,C,V,H):new Zbe(p,V,H)}; g.HI=function(p){this.tag=p}; f8u=function(p,C){g.U6u.apply(null,[6,p,C].concat(g.K(g.US.apply(2,arguments))))}; Obj=function(p,C){g.U6u.apply(null,[5,p,C].concat(g.K(g.US.apply(2,arguments))))}; g.U6u=function(p,C,V){var N=g.US.apply(3,arguments),H=p===6?"ERROR":"WARNING",X="b"+V;g.nm(new (Function.prototype.bind.apply(g.Bw,[null,X].concat(g.K(N)))),H);N.unshift(X);N=N.join(", ");H=yzV.get(C);if(!H){H="ytplog."+C;X=5;try{window.localStorage&&!isNaN(+window.localStorage[H])&&(X=+window.localStorage[H]),window.sessionStorage&&!isNaN(+window.sessionStorage[H])&&(X=+window.sessionStorage[H])}catch(E){}yzV.set(C,X);H=X}if(!(p<H)){H=q69;X=H.T.get(C);X||(X=new I8L,H.T.set(C,X));H=X;X=Date.now(); var d=Math.floor((X-H.C)*.01);d>0&&(H.T=Math.min(H.T+d,10),H.C=X);H.T>0?(H.T--,H=!0):H=!1;if(H)typeof N==="function"&&(N=N()),console.log("plyr."+C,N);else{var a;N=((a=bbv.get(C))!=null?a:0)+1;bbv.set(C,N);N%100===1&&console.warn("plyr","plyr."+C+" is chatty, dropping logs.")}}}; I8L=function(){this.T=10;this.C=Date.now()}; XM=function(p,C){g.Y.call(this);var V=this;this.policy=p;this.wV=C;this.C=0;this.T=null;this.Ng=[];this.V=null;this.Sr={Ux:function(){return V.wV}}; this.wV.length===1||g.oo(this.wV,function(N){return!!N.range})}; dd=function(p,C,V){p.T&&(k9(p.T,C),C=p.T,p.T=null);for(var N=0,H=0,X=g.F(p.wV),d=X.next();!d.done;d=X.next())if(d=d.value,d.range&&N+d.V<=p.C)N+=d.V;else{C.getLength();if(O9(d)&&!V&&p.C+C.getLength()-H<N+d.V){p.T=C.split(H).LM;return}a:{var a=p;var E=d,l=p.C-N,t=H,c=C,T=!!V,M=c.getLength()-t;E.range&&(M=Math.min(E.V-l,M));E=rK1(E,E.C+l,M,E.range?E.C+l+M===E.range.length:T);t=x9(c,t,M);t=new WR(E,t);if(a.policy.useUmp&&a.Ng.length&&(c=Qv(a.Ng[a.Ng.length-1],t))){a.Ng[a.Ng.length-1]=c;a=M;break a}a.Ng.push(t); a=M}p.C+=a;H+=a;N+=d.V;if(H===C.getLength())break}C.getLength()}; i2=function(p,C,V,N,H,X,d,a,E){E=E===void 0?!1:E;g.Y.call(this);this.aH=p;this.policy=C;this.sO=V;this.sR=N;this.timing=H;this.logger=X;this.V=d;this.z7=a;this.W=E;this.lastError=null;this.T=0;this.S=!1;this.C=new g.N8(this.Kg_,this.policy.K$,this)}; Azy=function(p){p.sR.Z=(0,g.Ip)();p=ht(p);p.C=(0,g.Ip)();p.started+=1}; x6S=function(p,C,V){p.timing.ao((0,g.Ip)(),C,V);C=p.sR;C.C=0;C.W=0;C.D=0;cR(ht(p));if((C=p.z7)!=null&&(p=p.sO.GU,!((0,g.Ip)()<C.Y+3E5||Kw(p))&&(V=So(p))&&o$a(V)&&C.C===s4(V))){var N;Dy(p)&&(N=So(u5(p)));g.Yl("yt-player-bandaid-host",{primary:V,secondary:N},864E3);C.Y=(0,g.Ip)();kFS(C,{primary:V,secondary:N})}}; aA=function(p){if(p.lastError==="ump.spsrejectfailure")p.policy.lf||p.timing.Z||Yzs(p.sR,!1,p.sO,p.policy,p.V);else{if(p.lastError==="net.timeout")p.timing.QK((0,g.Ip)());else{var C=p.timing;GJ(C,(0,g.Ip)(),C.W)}if(p.lastError==="net.nocontent")++p.sR.D;else{if((C=p.lastError==="net.timeout"||p.lastError==="net.connect"||p.lastError==="net.closed")&&!Kw(p.sO.GU)){var V=ht(p);V.timedOut+=1}else V=ht(p),V.T+=1;p.timing.Z||Yzs(p.sR,C,p.sO,p.policy,p.V)}}p.aH.UZ(5)}; E4=function(p,C,V,N,H){return C>=400?(p.lastError="net.badstatus",!0):(H===void 0?0:H)?(p.lastError="ump.spsrejectfailure",!0):V||N!==void 0&&N?!1:(p.lastError=C===204?"net.nocontent":"net.connect",!0)}; l2=function(p,C){if(p.policy.bj)return!1;var V=C.getResponseHeader("content-type"),N=C.j9();p=!N||N<=p.policy.NG;return(!C.hV()||!V||V.indexOf("text/plain")!==-1)&&p}; znY=function(p,C){var V="";C=C.Hg();C.getLength()<=p.policy.NG&&(V=Y6H(p,C.AB()));return V}; Y6H=function(p,C){var V=eL(C);return XY(V)?(p.logger.debug(function(){return"Redirecting to "+V}),V):""}; ht=function(p){return Tn(p.V,So(p.sO.GU))}; RnQ=function(p){var C=p.timing.cK();C.shost=So(p.sO.GU);return C}; n$X=function(p,C){return(p==null?void 0:p.maxWidth)>(C==null?void 0:C.maxWidth)||(p==null?void 0:p.maxHeight)>(C==null?void 0:C.maxHeight)}; enQ=function(p,C){for(var V=g.F(C.keys()),N=V.next();!N.done;N=V.next())if(N=C.get(N.value),N.length!==0){g.hB(N,function(a,E){return E.maxFramerate-a.maxFramerate}); for(var H=[N[0]],X=0,d=1;d<N.length;d++)n$X(N[d],H[X])&&(H.push(N[d]),X++);p=p.concat(H)}return p}; wby=function(p,C){var V=[];C=g.F(C);for(var N=C.next();!N.done;N=C.next()){N=N.value;var H=Poe[N]||0;p.T&&H>p.T||V.push(N)}return V}; W6Y=function(p,C,V){var N=$6e[p]||[];V.G("html5_shorts_onesie_mismatched_fix")&&(N=L6X[p]||[]);C.push.apply(C,g.K(N));V.G("html5_early_media_for_drm")&&C.push.apply(C,g.K(g$y[p]||[]))}; CLs=function(p,C){var V=g.aM(p),N=p.K(),H=N.W;N=N.G("html5_shorts_onesie_mismatched_fix");var X=p.rR();if(N){if(!H.V){if(X&&tt)return tt;if(cI)return cI}}else if(cI&&!H.V)return cI;var d=[],a=[],E={},l=TX.concat(Q51);N&&(l=TX.concat(rzS));p.G("html5_early_media_for_drm")&&(l=l.concat(BBY),p.G("allow_vp9_1080p_mq_enc")&&l.push(GFu));var t=[].concat(g.K(pgu));if(V.Z)for(var c=0;c<t.length;c++)t[c].length&&gO[t[c][0]]==="a"&&(t[c]=["141"]);if(V.Sa)for(c=0;c<t.length;c++)t[c].length&&gO[t[c][0]]==="o"&& (t[c]=["774"]);l=g.F(l);for(var T=l.next();!T.done;T=l.next()){c=!1;T=g.F(T.value);for(var M=T.next();!M.done;M=T.next()){M=M.value;var J=Ck(M,X&&N);if(J&&J.video&&!(BB(J)&&!V.Wr&&J.video.T>V.Tp)){var S=g.mi(p.K().experiments,"html5_drm_byterate_soft_cap");S>0&&TeV(J)&&J.F$>S||(c?(d.push(M),W6Y(M,d,p)):(J=Ec(V,J,H),J===!0?(c=!0,d.push(M),W6Y(M,d,p)):E[M]=J))}}}t=g.F(t);for(l=t.next();!l.done;l=t.next())for(l=g.F(l.value),c=l.next();!c.done;c=l.next())if(c=c.value,(T=heu(c))&&T.audio&&(p.G("html5_onesie_51_audio")|| !Gx(T)&&!px(T)))if(T=Ec(V,T,H),T===!0){a.push(c);W6Y(c,a,p);break}else E[c]=T;V.C&&C("orfmts",E);if(N)return H.V&&(H.V=!1,tt=cI=void 0),X?tt={video:d,audio:a}:cI={video:d,audio:a};cI={video:d,audio:a};H.V=!1;return cI}; g.NGS=function(p,C,V){var N=V.W,H=[],X=[],d=V.G("html5_shorts_onesie_mismatched_fix");p=p.rR();var a=TX.concat(Q51);d&&(a=TX.concat(rzS));V.G("html5_early_media_for_drm")&&(a=a.concat(BBY),V.G("allow_vp9_1080p_mq_enc")&&a.push(GFu));var E=[].concat(g.K(pgu));if(C.Z)for(var l=0;l<E.length;l++)E[l].length&&gO[E[l][0]]==="a"&&(E[l]=["141"]);if(C.Sa)for(l=0;l<E.length;l++)E[l].length&&gO[E[l][0]]==="o"&&(E[l]=["774"]);a=g.F(a);for(l=a.next();!l.done;l=a.next()){l=g.F(l.value);for(var t=l.next();!t.done;t= l.next()){t=t.value;var c=Ck(t,p&&d);if(c&&c.video){var T=g.mi(V.experiments,"html5_drm_byterate_soft_cap");if(!(T>0&&TeV(c)&&c.F$>T)&&Ec(C,c,N)===!0){H.push({videoCodec:jge[gO[t]],maxWidth:c.video.width,maxHeight:c.video.height,maxFramerate:c.video.fps});break}}}}d=g.F(E);for(p=d.next();!p.done;p=d.next())for(p=g.F(p.value),E=p.next();!E.done;E=p.next())if(E=E.value,(a=heu(E))&&a.audio&&(V.G("html5_onesie_51_audio")||!Gx(a)&&!px(a))&&Ec(C,a,N)===!0){X.push({audioCodec:VH9[gO[E]],numChannels:a.audio.numChannels}); break}return{videoFormatCapabilities:H,audioFormatCapabilities:X}}; dny=function(p){var C={},V=p.Ta,N=p.I$,H=V.getVideoData(),X=Y1(0),d=V.getPlayerSize(),a=V.getVisibilityState();X&&(C.mw=X,C.lastManualDirection=DGy(),X=CuS()||0,X>0&&(X=(N.G("html5_use_date_now_for_local_storage")?Date.now():(0,g.Ip)())-X,N.G("html5_use_date_now_for_local_storage")?X>0&&(C.timeSinceLastManualFormatSelectionMs=X):C.timeSinceLastManualFormatSelectionMs=X));C.Dg$=Y1();X=N.G("html5_use_streamer_bandwidth_for_low_latency_live")&&H.isLowLatencyLiveStream;if(N.schedule.a$&&!X){var E;X=N.G("html5_disable_bandwidth_cofactors_for_sabr_live")? !((E=p.wY)==null||!E.Pz):!1;C.qp=Mn(N.schedule,!X)}E=g.Pg();var l=g.PB.medium,t=Math.floor(l*16/9);X=H.rR()?l:t;l=H.rR()?t:l;C.rN=Math.max(d.width*E,X);C.IZ=Math.max(d.height*E,l);C.visibility=a;C.Fca=bV();C.oZ=V.MD()*1E3;var c;if((c=p.wY)==null?0:c.Pv){d=p.Ta.Xm(!0);var T,M,J,S,D,Z;C.LgY={defaultPolicy:((T=d.Bs)==null?void 0:T.T)||0,smooth:((M=d.esn)==null?void 0:M.T)||0,visibility:((J=d.h5n)==null?void 0:J.T)||0,Zx:((S=d.yp)==null?void 0:S.T)||0,performance:((D=d.zF)==null?void 0:D.T)||0,speed:((Z= d.PWe)==null?void 0:Z.T)||0}}else{var f;if((f=p.wY)==null?0:f.MR){var q;C.cq=((q=p.Ta.Xm().zF)==null?void 0:q.T)||0}}N.G("html5_enable_sabr_drm_hd720p")&&p.sabrLicenseConstraint&&(C.sabrLicenseConstraint=p.sabrLicenseConstraint);if(N.G("html5_onesie_media_capabilities")||N.G("html5_enable_server_format_filter"))C.GT=3;N.G("html5_onesie_audio_only_playback")&&hl(H)&&(C.GT=1);mij(H)&&(C.GT=C.GT===void 0?7:C.GT|4);T=H.f9?H.f9:g.aM(H);N.G("html5_onesie_media_capabilities")&&(C.mediaCapabilities=g.NGS(H, T,N));var A;if((A=p.wY)==null?0:A.T&&A.kt){J=N.W;A=[];M=[];S=new Map;N.G("html5_ssap_update_capabilities_on_change")?(J.Z||yMy(J),D=J.Z||[]):D=Array.from(J.T.values());D=g.F(D);for(Z=D.next();!Z.done;Z=D.next())d=Z.value,d.DQ?M.push({audioCodec:VH9[d.o$],numChannels:d.numChannels,spatialCapabilityBitmask:HIy[d.o$]}):(a=jge[d.o$],Z={videoCodec:a,maxWidth:d.maxWidth||0,maxHeight:d.maxHeight||0,maxFramerate:d.maxFramerate||0,is10BitSupported:d.R2||!1},d.maxBitrateBps&&(Z.maxBitrateBps=d.maxBitrateBps, c=Ck(d.itag),f=void 0,((f=c)==null?0:f.video)&&Ec(T,c,J)===!0&&(c=c.F$*8,c>Z.maxBitrateBps&&(Z.maxBitrateBps=c))),d=a+"_"+d.R2,a=S.get(d)||[],a.push(Z),S.set(d,a));A=enQ(A,S);J={};N.G("html5_ssff_denylist_opus_low")&&(J={itagDenylist:[249,350]});C.mediaCapabilities={videoFormatCapabilities:A,audioFormatCapabilities:M,hdrModeBitmask:3,perPlaybackAttributes:J}}var z;if((z=p.wY)==null?0:z.T){C.Oi=T.Oi;var Q;C.Tp=(Q=p.wY)==null?void 0:Q.Tp}N.jZ&&(C.Jn=N.jZ);C.hZ=p.VH;C.b7=p.b7;C.n8=p.n8;C.Q2=p.Q2;if(N.G("html5_fix_time_since_last_seek_reporting")? p.Z$!==void 0:p.Z$)C.qVr=(0,g.Ip)()-p.Z$;p.isPrefetch&&N.G("html5_report_prefetch_requests")&&(C.isPrefetch=!0);gB||(C.ZK=!0);z=tR(N.schedule)*1E3;z>0&&(C.u4=z);var P;((P=p.wY)==null?0:P.E5)&&p.MQ&&p.MQ<Infinity&&(C.MQ=p.MQ);V=V.getPlaybackRate();V!==1&&(C.playbackRate=V);var VL;((VL=p.wY)==null?0:VL.VZ)&&p.iL&&(C.Hb=p.Hb,C.ys=p.ys,C.iL=p.iL);N.G("allow_proxima_live_latency")&&(zv()===1&&(C.fD=1),N.G("html5_sabr_force_proxima")&&(C.vU=1),VL=g.mi(N.experiments,"html5_sabr_force_max_network_interruption_duration_ms"), C.gF=VL>0?VL:N.schedule.interruptions[0]||0);var au;if((au=p.wY)==null?0:au.YM)C.Pb=p.Pb;var W;((W=p.wY)==null?0:W.Up)&&H.JF&&(C.audioTrackId=H.JF);var e;if((e=p.wY)==null?0:e.CG)if(p=tpV())C.detailedNetworkType=Xge[p]||Xge.other;return C}; Mx=function(p,C,V,N,H,X){var d={};C&&(d.x3=C);if(!p)return d;d.playbackCookie=V==null?void 0:V.playbackCookie;H&&(d.jN=H);d.Ty=[];d.p6=[];if(g.pf(p)&&p.sabrContextUpdates.size>0)for(C=g.F(p.sabrContextUpdates.values()),V=C.next();!V.done;V=C.next())iIY(d,V.value,N);$B(p)&&!g.pf(p)&&p.G("html5_enable_sabr_request_pipelining")&&X&&iIY(d,X,N);p.Ik&&(d.N6Y=p.Ik);N=p.K().T;d.clientInfo={clientName:hgy[N.c.toUpperCase()]||0};N.cbrand&&(d.clientInfo.deviceMake=N.cbrand);N.cmodel&&(d.clientInfo.deviceModel= N.cmodel);N.cver&&(d.clientInfo.clientVersion=N.cver);N.cos&&(d.clientInfo.osName=N.cos);N.cosver&&(d.clientInfo.osVersion=N.cosver);N=p.K();N.G("html5_sabr_enable_server_xtag_selection")&&N.ER&&(d.clientInfo.hl=N.ER);p.ac&&(d.ac=p.ac);return d}; iIY=function(p,C,V){var N=C.type||0;(V==null?0:V.has(N))?p.p6.push(C):p.Ty.push(N)}; P3=function(p,C,V,N,H,X){var d=X===void 0?{}:X;var a=d.gA===void 0?[]:d.gA;var E=d.Oy===void 0?!1:d.Oy;var l=d.eA===void 0?0:d.eA;var t=d.poToken===void 0?"":d.poToken;var c=d.z7===void 0?void 0:d.z7;var T=d.Mf===void 0?"":d.Mf;var M=d.mf===void 0?0:d.mf;var J=d.TU===void 0?new Uint8Array(0):d.TU;var S=d.Hd===void 0?!1:d.Hd;X=d.bL===void 0?0:d.bL;d=d.x3===void 0?void 0:d.x3;jf.call(this,C,H);var D=this;this.policy=p;this.logger=new g.HI("dash/request");this.A7=this.zI=0;this.JN=!1;this.x5=this.J8= null;this.h$=!1;this.TU=this.mf=null;this.J3=this.dS=!1;this.aY=null;this.bL=this.Rc=0;this.Hj=!1;this.Sr={UZ:function(f){D.UZ(f)}, rFS:function(){return D.TI}, YKn:function(f){D.TI=f}, R2Y:function(f){D.zI=f}, Pq$:function(f){D.uJ.lastError=f}, Yw:function(){return D.xhr}}; this.timing=new p4(this,V);this.Oy=E;this.mf=M;this.TU=J;this.sO=g.YE(this.info,this.policy,N);this.sO.set("rn",this.ZM().toString());this.sO.set("rbuf",(l*1E3).toFixed().toString());this.Oy&&this.sO.set("smb","1");this.policy.Uh&&t&&this.sO.set("pot",t);T&&this.sO.set("bbs",T);this.policy.useUmp&&!Kw(this.sO.GU)&&(this.Ge=new C4(this),this.sO.set("ump","1"),this.sO.set("srfvp","1"));if(p=this.policy.Kt?this.policy.Di&&!isNaN(this.info.kq)&&this.info.kq>this.policy.Nq?!1:!0:!1)C=null,this.policy.mH&& this.policy.yV?C=[1]:S&&(C=[]),C!=null&&(this.policy.tY&&C.push(2),this.sO.set("defsel",C.join(",")));this.uJ=new i2(this,this.policy,this.sO,this.info.sR,this.timing,this.logger,N,c);this.gA=a||null;this.C6=sgS(this);Azy(this.uJ);N=void 0;if(this.policy.CK||this.Ge||this.policy.vr)N={method:"POST"},a=(0,g.Jt)([120,0]),c={},this.policy.Hv&&d&&(d=Mx(void 0,d),c.Fz=d),this.policy.Pj&&this.TU&&(c.videoPlaybackUstreamerConfig=this.TU),this.policy.vr&&(d=this.info.S)&&Object.assign(c,d),Object.keys(c).length> 0?N.body=g.l8(c,g.rr):N.body=a;if(this.mf&&this.TU){this.sO.set("iwts","1");N={method:"POST"};d={Q2:this.mf*1E3};var Z;a=(Z=this.info.S)==null?void 0:Z.eS;Z=g.l8({Tv:d,eS:a||void 0,videoPlaybackUstreamerConfig:this.TU},g.rr);N.body=Z}try{this.xhr=Nx(this.sO,this.policy.J,this.timing,p,N),this.uJ.C.start(),X&&(this.jX=new g.N8(this.gQ,X,this),this.jX.start(X+(this.timing.n1.J.Kd()||0)*1E3)),this.policy.xr&&s5a(this.timing,this.i9()),this.logger.debug(function(){return"Sent, itag="+D.sO.get("itag")+ " seg="+D.info.wV[0].LS+" range="+D.sO.get("range")+" time="+Math.round(D.info.wV[0].Qi)+"-"+Math.round(g.wY(D.info.wV).zM)+" rtp="+(D.timing.SQ()-Date.now()).toFixed(0)}),g.mo(function(){})}catch(f){aW1(this,f,!0)}}; sgS=function(p){if(!(xE(p.info)&&p.info.Ti()&&p.policy.f9&&p.gA)||p.info.sR.C>=2||Y1()>0||!fSj())return!1;var C=p.sO.get("aitags");if(!C)return!1;C=HG(C).split(",");for(var V=[],N=g.F(p.gA),H=N.next();!H.done;H=N.next())H=H.value,g.W5(C,H)&&V.push(H);if(!V.length)return!1;p.sO.set("altitags",g.N$(V.join(",")));return!0}; aW1=function(p,C,V){V=V===void 0?!1:V;g.nm(C);p.uJ.lastError="player.exception";p.errorMessage=C.name+"_"+C.message;V?g.mo(function(){aA(p.uJ)}):aA(p.uJ)}; ESL=function(p,C){p.timing.Z=!0;p.xhr.hV()&&p.timing.IA();if(p.policy.I6){var V;(V=p.jX)==null||V.stop()}dd(p.TI,C,!1)}; lWY=function(p,C){p.info=C;if(p.TI){var V=p.TI;C=C.wV;(C.length!==V.wV.length||C.length<V.Ng.length)&&Obj("dash/request",260511119,""+C.length,""+V.wV.length,""+V.Ng.length);V.wV=C;for(var N=C[0].range,H=new o4,X=0;X<V.Ng.length;X++)k9(H,V.Ng[X].T);for(X=0;X<V.Ng.length;X++){V.Ng[X].info=C[X];var d=C[X].range;V.Ng[X].T=x9(H,d.start-N.start,d.length)}}p.C6=!1}; tHe=function(p){p.Rc&&(p.xhr.status=p.Rc,p.zI=p.Rc)}; mB=function(p,C){B3.call(this,p,C);this.Wr=!0;this.b_=!1;this.Ga=this.vr=0;this.UY=NaN}; cRV=function(p,C,V){var N=p.v_?Math.max(C,V/p.v_):C;p.n1.C.V&&(N=C,p.v_&&(N=Math.max(C,V/p.v_*N)));ag(p.n1,C,V,N)}; vI=function(p){this.C={};this.logger=new g.HI(p)}; TGe=function(p){vI.call(this,"sabr");this.aH=p}; FM=function(p){g.Y.call(this);this.S=p;this.logger=new g.HI("onesie");this.hc=new Map;this.C=this.T=!1;this.wY=this.hk=null;this.V=!1}; MHv=function(p,C,V){p.hc.get(C).Nn=V}; K4=function(p,C){p.hc.has(C)&&(Sf?p.hc.get(C).Ef.clear():p.hc.get(C).Ng=new o4,JRj(p,C),p.C=!0)}; mne=function(p){for(var C=g.F(p.hc),V=C.next();!V.done;V=C.next()){var N=g.F(V.value);V=N.next().value;N=N.next().value;N.g3||K4(p,V)}}; vSY=function(p,C){C=p.hc.get(C);if(!C)return 0;p=0;if(C.wV.length>0){C=g.F(C.wV);for(var V=C.next();!V.done;V=C.next()){var N=void 0;p+=((N=V.value.range)==null?void 0:N.length)||0}return p}if(C.C8.length>0)for(V=g.F(C.C8),N=V.next();!N.done;N=V.next())p+=N.value.yA||0;return p+C.J$}; F4V=function(p,C){if(Sf){var V=0;p=p.hc.get(C);if(p==null||!p.Ef)return 0;p=g.F(p.Ef.values());for(C=p.next();!C.done;C=p.next())V+=C.value.data.getLength();return V}return((V=p.hc.get(C))==null?void 0:V.Ng.getLength())||0}; DX=function(p,C){p=p.hc.get(C);if(Sf){if(p==null||!p.g3)return!1;C=p.Ef.size>0;return p.Xr.length>0||C}return!(p==null||!p.g3)&&!(p==null||!p.Ng.getLength())}; Sej=function(p,C){var V=p.hc.get(C),N=vSY(p,C),H=!N&&!!V.bytesReceived;if(Sf){var X;if((X=p.hk)==null?0:X.p4){p=g.F(V.Ef.values());for(C=p.next();!C.done;C=p.next())if(!C.value.Lg)return!1;return H}}else if(X=p.zC(C),H&&p.T&&X!==void 0)return X;return(H||V.bytesReceived===N)&&V.ZV+F4V(p,C)===V.bytesReceived}; K4Q=function(p,C,V){p.hc.set(C,{Ng:new o4,ZV:0,bytesReceived:0,J$:0,P2:!1,gI:!1,zC:!1,DQ:V,aE:[],wV:[],C8:[],g3:!1,Ef:new Map,tK:new Map,Xr:[]});p.logger.debug(function(){return"[initStream] formatId: "+C})}; DnX=function(p,C,V,N){V.wV.push.apply(V.wV,g.K(N));if(Sf){V.tK.has(C)||V.tK.set(C,[]);var H;(H=V.tK.get(C)).push.apply(H,g.K(N))}else if(V.TI)for(p=g.F(N),C=p.next();!C.done;C=p.next())V.TI.wV.push(C.value);else{V.TI=new XM(p.wY,[].concat(g.K(V.wV)));var X;((X=p.wY)==null?0:X.gR)&&g.R(p,V.TI)}}; usy=function(p,C,V){var N,H=(N=p.hk)==null?void 0:N.V.get(C);if(!H)return[];if(V.h9){var X;return((X=H.ZU(0,V.clipId))==null?void 0:X.wV)||[]}if(H.V1()){var d=V.startMs,a=V.durationMs,E=1E3,l;if(((l=p.wY)==null?0:l.T)&&V.timeRange){var t;d=(t=V.timeRange.wI)!=null?t:-1;var c;a=(c=V.timeRange.zT)!=null?c:-1;var T;E=(T=V.timeRange.Sz)!=null?T:-1}if(V.RW<0||V.o9<0||a<0||d<0||V.yA<0||E<0)return K4(p,C),[];p=Z0(V.RW,V.yA);C=V.ww||0;return[new fp(3,H,p,"makeSliceInfosMediaBytes",V.o9-1,d/E,a/E,C,p.length- C,void 0,V.R5,V.clipId)]}if(V.o9<0)return K4(p,C),[];var M;return((M=p.hk)==null?0:M.p4)?(C=H.Ym,l=C*H.info.F$,t=((d=p.wY)==null?0:d.va)?V.ww:void 0,((E=p.wY)==null?0:E.ra)&&V.timeRange&&!t&&(a=V.timeRange.wI/V.timeRange.Sz),[new fp(3,H,void 0,"makeSliceInfosMediaBytes",V.o9,a,C,t,l,!0,V.R5,V.clipId)]):[]}; ZIv=function(p,C,V){p.hk=C;p.wY=V;C=g.F(p.hc);for(V=C.next();!V.done;V=C.next()){var N=g.F(V.value);V=N.next().value;N=N.next().value;for(var H=g.F(N.aE),X=H.next();!X.done;X=H.next()){X=X.value;var d=usy(p,V,X);DnX(p,X.Qz,N,d)}}}; u2=function(p,C,V,N){p.logger.debug(function(){return"[addStreamData] formatId: "+V+",headerId: "+C+" bytes: "+N.getLength()}); (p=p.hc.get(V))&&!p.gI&&(Sf?(p.Ef.has(C)||p.Ef.set(C,{data:new o4,kT:0,Lg:!1}),k9(p.Ef.get(C).data,N)):k9(p.Ng,N),p.bytesReceived+=N.getLength(),p.P2=!0)}; JRj=function(p,C){p.logger.debug(function(){return"[closeStream] formatId: "+C}); var V=p.hc.get(C);V&&!V.gI&&(V.gI=!0,V.Nn&&V.Nn(),Une(p)&&p.S.bV())}; Une=function(p){p=g.F(p.hc.values());for(var C=p.next();!C.done;C=p.next())if(!C.value.gI)return!1;return!0}; ZX=function(p,C,V,N,H,X,d,a){g.Y.call(this);this.policy=p;this.info=C;this.hk=V;this.aH=H;this.OQ=a;this.logger=new g.HI("sabr");this.Ge=new C4(this);this.tN=new TGe(this);this.g6=new FM(this);this.state=1;this.B0=!1;this.JZ=0;this.clipId="";this.u3=this.ox=-1;this.LB=0;this.v4=-1;this.Hj=this.cL=!1;this.vQ=0;this.ZW=!1;this.policy.Yu?this.MZ=new mB(this,X):this.MZ=new p4(this,X);this.sO=this.policy.YM?C.s1:fWX(C,this.policy,N);this.sO.set("rn",""+this.ZM());this.sO.set("alr","yes");ZIv(this.g6,V, p);this.uJ=new i2(this,this.policy,this.sO,C.sR,this.MZ,this.logger,N,d,this.policy.enableServerDrivenRequestCancellation);Azy(this.uJ);var E;if((E=this.policy)==null?0:E.gR)g.R(this,this.g6),g.R(this,this.uJ);p=C.C;C={method:"POST",body:p};p&&(this.LB=p.length);try{this.xhr=Nx(this.sO,this.policy.J,this.MZ,gB,C),this.policy.xr&&s5a(this.MZ,this.i9()),this.uJ.C.start()}catch(l){g.eG(l)}}; OIL=function(p){p.policy.QR&&p.C5&&!p.ZW?p.ZW=!0:p.MZ.IA()}; yRj=function(p,C){var V=-1,N=-1,H=-1,X;if((X=p.OP)==null?0:X.items)for(p=g.F(p.OP.items),X=p.next();!X.done;X=p.next())X=X.value,C<X.j4||X.j4<V||(V=X.j4,N=X.Pu,H=X.minReadaheadMs);return{ue:V,Pu:N,X9:H}}; qes=function(p){this.T=p;this.Z=this.vr=this.D=this.Sa=this.S=this.W=this.Y=this.Vn=this.J=this.Wr=this.b_=this.sY=this.a$=0;this.ticks={}}; U4=function(p){p.a$||(p.a$=(0,g.Ip)(),YL("mb_s",p.a$,p.T))}; IWj=function(p){p.sY||(p.sY=(0,g.Ip)(),YL("ovfs_rp",p.sY,p.T))}; bIa=function(p){p.b_||(p.b_=(0,g.Ip)(),YL("oafs_rp",p.b_,p.T))}; ARX=function(p){p.W||(p.W=(0,g.Ip)(),YL("vda",p.W,p.T),p.S&&dq(g.HW(),4))}; oSe=function(p){p.S||(p.S=(0,g.Ip)(),YL("ada",p.S,p.T),p.W&&dq(g.HW(),4))}; kMX=function(p){p.Sa||(p.Sa=(0,g.Ip)(),YL("vis_a",p.Sa,p.T))}; xnL=function(p){p.D||(p.D=(0,g.Ip)(),YL("ais_a",p.D,p.T))}; YeQ=function(p){p.vr||(p.vr=(0,g.Ip)(),YL("vrb_f",p.vr,p.T))}; zgH=function(p){p.Z||(p.Z=(0,g.Ip)(),YL("arb_f",p.Z,p.T))}; Rga=function(p,C,V){var N=C instanceof ZX&&!p.V&&!p.C,H=!p.V&&(V==null?void 0:V.info.video);V=!p.C&&(V==null?void 0:V.info.audio);C.state===3?((H||N)&&p.tick("vrr"),(V||N)&&p.tick("arr")):C.state===4?H?(p.V=C.i9(),dq(g.HW(),4)):V&&(p.C=C.i9()):C instanceof P3&&C.GC()&&H&&dq(g.HW(),4)}; nS1=function(p){return!!p.C&&!!p.V}; egj=function(p,C,V,N,H,X,d){g.ca.call(this);var a=this;this.nS=p;this.hk=C;this.policy=V;this.videoTrack=N;this.audioTrack=H;this.VL=d;this.a$=this.T=null;this.W=this.D=NaN;this.J=0;this.Z=NaN;this.Y=null;this.Vn=this.sY=NaN;this.Sa=new Map;this.b_=this.V=this.S=NaN;this.Sr={uCx:function(){return a.C}}; this.C=X?1:0}; wgX=function(p,C,V,N){N=N===void 0?!0:N;if(V&&!p.Sa.has(C.LS)){for(var H=C.startTime,X=[],d=0;d<V.T.length;d++){var a=V.T[d],E=H;H=E+V.C[d];X.push({startTime:E,endTime:H,adCpn:a})}p.Sa.set(C.LS,X)}if(p.policy.hE)if(H=p.a$&&C.LS===p.a$.LS+1,p.a$=C,X=p.T&&C.LS===p.T.LS+1,X=p.T&&H&&X&&p.T.xB.event!=="stop"&&p.T.xB.event!=="predictStart",d=C.xB||null,a=p.videoTrack.T.index.Ha(),p.policy.Uv&&(a=Math.max(p.videoTrack.T.index.Ha(),p.audioTrack.T.index.Ha())),a=C.LS>=a,E=p.hk.isManifestless&&p.policy.AI, d){var l;if(((l=p.T)==null?void 0:l.xB.event)==="predictStart"&&p.T.LS<C.LS&&d.event==="stop"){var t;p.nS.handleError("ssdai.missingstartcueevent",{lastpredict:((t=p.T)==null?void 0:t.LS)||0,csq:C.LS},0)}p.T={xB:d,LS:C.LS,fJ:!!V,K9:N};a?f4(p,d,C.LS):E&&(H?X?f4(p,d,C.LS):d.event==="continue"||d.event==="stop"?PL1(p,C):f4(p,d,C.LS):f4(p,d,C.LS))}else X&&PL1(p,C),p.C===4&&O4(p,5,"qend")}; f4=function(p,C,V){C.startSecs+=isNaN(p.J)?0:p.J;p=p.hk;p.sY.push(C);p.publish("cuepointsadded",V)}; L4v=function(p,C,V){if(p.C!==0&&V&&C.wV[0].K9()){var N=C.wV[0].LS,H=C.wV[0].Qi;C=C.isDecorated();$nV(p,N,H,C,V)}}; $nV=function(p,C,V,N,H){var X;C!==((X=p.T)==null?void 0:X.LS)||p.C===1||N||p.T.xB.event==="predictStart"||p.k_("sdai",{undecevt:1,sq:C,mt:V,evt:p.T.xB.event});C>p.W&&(p.W=NaN,p.D=NaN);if(p.T&&p.T.LS===C){X=p.T;N=X.xB;var d=H.qE(N);N.event==="predictStart"&&(p.b_=C);p.k_("sdai",{onqevt:N.event,sq:C,mt:V,gab:d,cst:N.startSecs});if(d)N.event!=="predictStart"?(N.event==="start"&&p.b_===C-1&&p.k_("sdai",{gabonstart:C}),X.fJ?O4(p,4,"cue"):(p.W=C,p.D=V,p.k_("sdai",{joinad:p.C,sg:p.W,st:p.D.toFixed(3)}), p.Z=Date.now(),O4(p,2,"join"),H.L3(X.xB))):(p.policy.W?(p.V=Math.floor(V-N.T/1E3),p.k_("sdai",{onpred:V,est:p.V})):(p.S=C+Math.max(Math.ceil(-N.T/5E3),1),p.k_("sdai",{onpred:C,est:p.S})),p.Z=Date.now(),O4(p,3,"predict"),H.L3(X.xB));else if(p.C===1){var a;((a=p.Y)==null?0:a.GG(V))?(gSS(p.nS,V,V,C),O4(p,4,"sk2had")):O4(p,5,"nogab")}else N.event==="predictStart"&&(p.policy.W&&p.V>0?(V=Math.floor(V-N.T/1E3),p.V!==V&&p.k_("sdai",{updateSt:V,old:p.V}),p.V=V):p.S>0&&(V=C+Math.max(Math.ceil(-N.T/5E3),1), p.S!==V&&(p.k_("sdai",{updateSt:V,old:p.S}),p.S=V)));var E,l;if(p.VL&&N.event==="start"&&((E=p.T)==null?void 0:E.xB.event)!=="predictStart"&&((l=p.T)==null?void 0:l.LS)===C-1){var t;p.k_("sdai",{ovlpst:(t=p.T)==null?void 0:t.xB.event,sq:C})}}else p.C===1&&O4(p,5,"noad")}; rRQ=function(p,C,V){if(p.C===1||p.C===2)return!1;if(p.C!==0&&C===p.audioTrack){if(p.policy.W)return W4a(p.videoTrack,V)||W4a(p.videoTrack,V+1);p=Qgs(p.videoTrack);if(V>(p?p.LS:-1))return!1}return!0}; yN=function(p,C,V){return(V<0||V===p.W)&&!isNaN(p.D)?p.D:C}; PL1=function(p,C){if(p.T){var V=p.T.xB.uc-(C.startTime+p.J-p.T.xB.startSecs);V<=0||(V=new xg(p.T.xB.startSecs-(isNaN(p.J)?0:p.J),V,p.T.xB.context,p.T.xB.identifier,"stop",p.T.xB.T+C.duration*1E3),p.k_("cuepointdiscontinuity",{segNum:C.LS}),f4(p,V,C.LS))}}; O4=function(p,C,V){p.C!==C&&(p.k_("sdai",{setsst:C,old:p.C,r:V}),p.C=C)}; qx=function(p,C,V,N){(N===void 0?0:N)?O4(p,1,"seek"):C>0&&Math.abs(C-V)>=5&&p.C===4&&O4(p,5,"sk2t."+C.toFixed(2)+";ct."+V.toFixed(2))}; IA=function(p,C,V){this.audio=p;this.video=C;this.reason=V}; b2=function(p,C,V){this.T=p;this.reason=C;this.token=V;this.videoId=void 0}; At=function(p,C,V){g.Y.call(this);this.policy=p;this.S=C;this.k_=V;this.V=new Map;this.W=0;this.Y=!1;this.T="";this.C=!1}; oA=function(p,C,V){if(V===void 0?0:V)p.Y=!0;++p.W;V=6E4*Math.pow(2,p.W);V=(0,g.Ip)()+V;p.V.set(C.info.id,V)}; kd=function(p){for(var C=g.F(p.V.entries()),V=C.next();!V.done;V=C.next()){var N=g.F(V.value);V=N.next().value;N=N.next().value;N<(0,g.Ip)()&&p.V.delete(V)}return p.V}; BGX=function(p){return p.Y&&kd(p).size>0}; xd=function(p,C){p.T!==C&&(p.T=C,p.C=!0)}; GMY=function(p,C){var V;C&&(V=g.L0(p.S.T,function(H){return H.id===C})); if(!V&&(V=g.L0(p.S.T,function(H){var X;return!((X=H.K4)==null||!X.isDefault)}),C)){var N; p.k_("iaf",{id:C,sid:(N=V)==null?void 0:N.id})}return V}; p7H=function(p,C,V,N,H,X){var d=this;X=X===void 0?[]:X;this.nS=p;this.sY=C;this.policy=V;this.hk=N;this.Y=H;this.Qn=X;this.logger=new g.HI("dash/abr");this.T=xB;this.C=this.D=null;this.Z=-1;this.vr=!1;this.nextVideo=this.V=null;this.S=[];this.Y_=new Set;this.Wr={};this.KS=new dG(1);this.J=0;this.R$=this.b_=this.a$=!1;this.Vn=0;this.UY=!1;this.Sa=new Set;this.Ga=!1;this.Sr={KB:function(){Yd(d)}}; this.W=new At(this.policy,H,function(a,E){d.nS.k_(a,E)})}; Hku=function(p,C,V){zX(p,C);C=GMY(p.W,V);V||C||(C=Csu(p));C=C||p.Y.T[0];p.V=p.hk.T[C.id];Yd(p);p.D=p.V;jIL(p);VwX(p);p.C=p.nextVideo;p.D=p.V;return NPH(p)}; ikv=function(p,C){if(X7y(p,C))return null;if(C.reason==="m"&&C.isLocked())return p.logger.debug(function(){return"User sets constraint to: "+dH(C)}),zX(p,C),p.J=p.S.length-1,Yd(p),RA(p),p.b_=p.b_||p.C!==p.nextVideo,p.C=p.nextVideo,new IA(p.V,p.C,C.reason); C.reason==="r"&&(p.Z=-1);zX(p,C);RA(p);if(C.reason==="r"&&p.nextVideo===p.C)return new IA(p.V,p.nextVideo,C.reason);dFL(p);return null}; hBy=function(p,C,V){p.V=p.hk.T[C];p.D=p.V;return new IA(p.D,p.C,V?"t":"m")}; sIX=function(p,C){if(C.info.video){if(p.C!==C)return p.C=C,NPH(p)}else p.R$=p.D!==C,p.D=C;return null}; aby=function(p,C){if(C.T.info.video&&C.S){var V=(C.C+C.V)/C.duration,N=C.T.info.F$;V&&N&&(p.KS.N3(1,V/N),p.policy.V&&V/N>1.5&&p.nS.k_("overshoot",{sq:C.LS,br:V,max:N}))}}; n4=function(p,C,V){oA(p.W,C,V===void 0?!1:V);p.Z=-1;zX(p,p.T)}; EBu=function(p,C){return new IA(p.D,p.C,C||p.T.reason)}; dFL=function(p){if(p.C&&p.nextVideo&&ef(p,p.C.info)<ef(p,p.nextVideo.info)){var C=p.T.reason;p.a$=p.a$||C==="r"||C==="u"||C==="v"}}; NPH=function(p){p.vr?p.vr=!1:p.Z=(0,g.Ip)();p.a$=!1;p.Ga=!1;return new IA(p.D,p.C,p.T.reason)}; lby=function(p,C){var V={};C=g.F(C);for(var N=C.next();!N.done;N=C.next())if((N=N.value)&&N.video){var H=N.video.T,X=V[H],d=X&&BB(X)&&X.video.T>p.policy.Tp,a=H<=p.policy.Tp?BB(N):Qu(N);if(!X||d||a)V[H]=N}return V}; zX=function(p,C){p.T=C;var V=p.Y.videoInfos;if(!p.T.isLocked()){var N=(0,g.Ip)();V=g.JT(V,function(a){if(a.F$>this.policy.F$)return!1;var E=this.hk.T[a.id];return kd(this.W).get(a.id)>N?!1:E.sR.C>4||E.Y>4?(this.logger.debug(function(){return"Remove "+iX(a)+"; 4 load failures"}),!1):this.Sa.has(+a.itag)?!1:!0},p); BGX(p.W)&&(V=g.JT(V,function(a){return a.video.width<=854&&a.video.height<=480}))}V.length||(V=p.Y.videoInfos); var H=V;p.policy.BK&&(H=twX(p,H,C));H=g.JT(H,C.S,C);if(p.T.isLocked()&&p.W.T){var X=g.L0(V,function(a){return a.id===p.W.T}); X?H=[X]:xd(p.W,"")}p.policy.BK||(H=twX(p,H,C));H.length||(H=[V[0]]);H.sort(function(a,E){return ef(p,a)-ef(p,E)}); C={};for(V=1;V<H.length;C={hs:void 0,T9:void 0},V++)C.T9=H[V-1],C.hs=H[V],C.T9.video.width>C.hs.video.width?(g.Q8(H,V),V--):ef(p,C.T9)*p.policy.Z>ef(p,C.hs)&&(g.Q8(H,V-1),V--);var d=H[H.length-1];p.UY=!!p.C&&!!p.C.info&&p.C.info.o$!==d.o$;p.logger.debug(function(){return"Constraint: "+dH(p.T)+", "+H.length+" fmts selectable, max selectable fmt: "+iX(d)}); p.S=H;p.Y_.clear();C=!1;for(V=0;V<H.length;V++)C?p.Y_.add(H[V].itag):H[V].video.T>=1080&&(C=!0);cAa(p.policy,d,p.hk.p4)}; twX=function(p,C,V){var N=V.reason==="m"||V.reason==="s";p.policy.g1&&PI&&g.D1&&(!N||V.T<1080)&&(C=C.filter(function(l){return l.video&&(!l.C||l.C.powerEfficient)})); if(C.length>0)if(rN()){var H=lby(p,C);C=C.filter(function(l){return!!l&&!!l.video&&l.o$===H[l.video.T].o$})}else{var X,d,a=(X=C[0])==null?void 0:(d=X.video)==null?void 0:d.T; if(a){V=C.filter(function(l){return!!l&&!!l.video&&l.video.T===a}); var E=lby(p,V)[a].o$;C=C.filter(function(l){return!!l&&!!l.video&&l.o$===E})}}return C}; TPa=function(p,C){for(var V=0;V+1<p.S.length&&p.S[V].video.quality==="tiny";)V++;var N=Yv(p.sY)/p.policy.Z;return ef(p,C.info)+ef(p,p.S[V])>N}; Yd=function(p){if(!p.V||!p.policy.S&&!p.V.info.K4){var C=p.Y.T;p.V&&(C=C.filter(function(N){return N.audio.T===p.V.info.audio.T}),C.length||(C=p.Y.T)); p.V=p.hk.T[C[0].id];if(C.length>1&&(!p.policy.BI||!p.policy.Wc)){var V=!1;if(V=p.policy.QZ?!0:p.T.isLocked()?p.T.T<240:TPa(p,p.V))p.V=p.hk.T[g.wY(C).id]}}}; RA=function(p){if(!p.nextVideo||!p.policy.S)if(p.T.isLocked())p.nextVideo=p.T.T<=360?p.hk.T[p.S[0].id]:p.hk.T[g.wY(p.S).id],p.logger.debug(function(){return"Select max fmt: "+iX(p.nextVideo.info)}); else{for(var C=Math.min(p.J,p.S.length-1),V=Yv(p.sY),N=ef(p,p.V.info),H=V/p.policy.a$-N;C>0&&!(ef(p,p.S[C])<=H);C--);for(var X=V/p.policy.Z-N;C<p.S.length-1&&!(ef(p,p.S[C+1])>=X);C++);p.nextVideo=p.hk.T[p.S[C].id];p.J!==C&&p.logger.info(function(){return"Adapt to: "+iX(p.nextVideo.info)+", bandwidth: "+V.toFixed(0)+", bandwidth to downgrade: "+H.toFixed(0)+", bandwidth to upgrade: "+X.toFixed(0)+", constraint: "+dH(p.T)}); p.J=C}}; jIL=function(p){var C=p.policy.a$,V=Yv(p.sY),N=V/C-ef(p,p.V.info);C=g.gY(p.S,function(H){return ef(this,H)<N},p); C<0&&(C=0);p.J=C;p.nextVideo=p.hk.T[p.S[C].id];p.logger.info(function(){return"Initial selected fmt: "+iX(p.nextVideo.info)+", bandwidth: "+V.toFixed(0)+", max video byterate: "+N.toFixed(0)})}; VwX=function(p){if(p.Qn.length){var C=p.Qn,V=function(N,H){if(N.info.o$==="f"||C.includes(S5(g.VE(N.info,p.hk.p4))))return N;for(var X={},d=0;d<H.length;X={wq:void 0,Z9:void 0},d++){var a=p.hk.T[H[d].id];if(C.includes(S5(g.VE(a.info,p.hk.p4)))){var E=N.info.o$,l=a.info.o$;if(E===l||rN()){if(N.info.T!==a.info.T)return p.nS.k_("ombifa",{mismatch:"xtag",f:N.info.id,t:a.info.id}),N;X.wq=N.info.itag;X.Z9=a.info.itag;p.nS.k_("ombifa",{f:X.wq,t:X.Z9});p.logger.info(function(t){return function(){return"Initial format selection changed from "+ t.wq+" to "+t.Z9+" based on prefetched media."}}(X)); p.vr=!0;return a}p.nS.k_("ombifa",{mismatch:"efficient",fc:E,tc:l})}}p.nS.k_("ombifa",{mismatch:"unselectable",fmts:C.join(".")});return N}; p.nextVideo=V(p.nextVideo,p.Y.videoInfos);p.V=V(p.V,p.Y.T)}}; ef=function(p,C){if(!p.Wr[C.id]){var V=p.hk.T[C.id].index.Ua(p.Vn,15);V=C.ND&&p.C&&p.C.index.isLoaded()?V||C.ND:V||C.F$;p.Wr[C.id]=V}V=p.Wr[C.id];p.Y_.has(C.itag)&&(V*=1.5);return V*=Math.max(1,p.KS.Kd()||0)}; Mwe=function(p,C){p=rcH(p.hk.T,function(V){return V.info.itag===C}); if(!p)throw Error("Itag "+C+" from server not known.");return p}; JAS=function(p){var C=[];if(p.T.reason==="m"||p.T.reason==="s")return C;if(oPL(p.hk)){for(var V=Math.max(0,p.J-2);V<p.J&&V<p.S.length;V++)C.push(p.S[V].itag);C.reverse()}return C}; X7y=function(p,C){var V;return p.T.sE(C)&&(!p.W.T||!p.T.isLocked()||((V=p.nextVideo)==null?void 0:V.info.id)===p.W.T)}; Csu=function(p){var C=g.L0(p.Y.T,function(N){return N.audio.T}),V=g.L0(p.Y.T,function(N){return!N.audio.T}); return C?p.policy.hY?C:V:null}; mF1=function(p){var C=p===void 0?{}:p;p=C.q3===void 0?!1:C.q3;var V=C.yV===void 0?!1:C.yV;C=C.Kt===void 0?!1:C.Kt;return p?C?3:2:V?-1:1}; vBH=function(p){this.track=p;this.buffered=[];this.V=this.S=0;this.Y={};this.W=0;this.T=new Xs}; Fxj=function(p,C,V){p.flush();p.C=V;wd(p,3,C)}; wd=function(p,C,V){var N=[],H=p.track.NW;if(H){H=H.K7();for(var X=0;X<H.length;X++)N.push(Math.round(H.start(X)*1E3)),N.push(Math.round(H.end(X)*1E3))}H=1;X=N.length;if(X===p.buffered.length){for(var d=0;d<=X&&N[d]===p.buffered[d];d++);d>X?H=0:N[d]>p.buffered[d]&&(d===X-1?H=2:d===X-2&&N[d+1]>p.buffered[d+1]&&(H=3))}p.T.add(C<<3|(V&&4)|H);C=Math.ceil(p.track.MD()*1E3);p.T.add(C-p.W);p.W=C;if(H===1)for(p.T.add(X),d=C=0;d<X;d++)p.T.add(N[d]-C),C=N[d];H===3&&p.T.add(N[X-2]-p.buffered[X-2]);H>=2&&p.T.add(N[X- 1]-p.buffered[X-1]);V&&p.T.add(V);p.buffered=N}; Kxa=function(p,C,V){var N=this;this.policy=p;this.T=C;this.Vn=V;this.S=this.C=0;this.lW=null;this.a$=new Set;this.Z=[];this.indexRange=this.initRange=null;this.J=new hK;this.b_=this.sY=!1;this.Sr={n$n:function(){return N.V}, eT$:function(){return N.chunkSize}, f$V:function(){return N.D}, ieo:function(){return N.Y}}; (C=Sja(this))?(this.chunkSize=C.csz,this.V=Math.floor(C.clen/C.csz),this.D=C.ck,this.Y=C.civ):(this.chunkSize=p.uj,this.V=0,this.D=g.OI(16),this.Y=g.OI(16));this.W=new Uint8Array(this.chunkSize);this.D&&this.Y&&(this.crypto=new F6e(this.D,this.Y))}; Sja=function(p){if(p.policy.i8&&p.policy.Wv)for(var C=g.F(p.policy.i8),V=C.next(),N={};!V.done;N={F3:void 0,E$:void 0},V=C.next())if(V=g.sk(V.value),N.F3=+V.clen,N.E$=+V.csz,N.F3>0&&N.E$>0&&p.policy.S===V.docid&&p.T.info.id===V.fmtid&&p.T.info.lastModified===+V.lmt)return p={},p.clen=N.F3,p.csz=N.E$,p.ck=V.ck,p.civ=V.civ,p}; $d=function(p){return!!p.lW&&p.lW.Vo()}; fbS=function(p,C){if(!$d(p)&&!p.fS()){if(!(p.sY||(p.sY=!0,p.V>0))){var V=DF9(p);V=fk(p.policy.S,p.T.info,L4(p),V,p.policy.qo);utH(p,V)}if(C.info.type===1){if(p.lW){gd(p,Error("Woffle: Expect INIT slices to always start us off"));return}p.initRange=Z0(0,C.T.getLength())}else if(C.info.type===2)p.lW&&p.lW.type===1||gd(p,Error("Woffle: Index before init")),p.indexRange=Z0(p.initRange.end+1,C.T.getLength());else if(C.info.type===3){if(!p.lW){gd(p,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(p.lW.type===3&&!qt(p.lW,C.info)&&(p.Z=[],C.info.LS!==IZ(p.lW)||C.info.C!==0))return;if(C.info.S){V=g.F(p.Z);for(var N=V.next();!N.done;N=V.next())ZkV(p,N.value);p.Z=[]}else{p.Z.push(C);p.lW=C.info;return}}else{gd(p,Error("Woffle: Unexpected slice type"));return}p.lW=C.info;ZkV(p,C);UFe(p)}}; ZkV=function(p,C){var V=0,N=C.T.AB();if(p.S<p.V){V=p.V*p.chunkSize;var H,X=(((H=C.info.range)==null?void 0:H.start)||0)+C.info.C;V-=X;if(V>=N.length)return;if(V<0)throw Error("Missing data");p.S=p.V;p.C=0}for(H={};V<N.length;H={bu:void 0})if(H.bu=Math.min(N.length-V,p.W.byteLength-p.C),X=new Uint8Array(N.buffer,N.byteOffset+V,H.bu),p.W.set(X,p.C),p.C+=H.bu,V+=H.bu,p.C===p.W.length){if(C.info===p.lW&&$d(p)&&V===N.length)break;H=DF9(p);H=fk(p.policy.S,p.T.info,L4(p),H,p.policy.qo,p.S,p.W,p.crypto); p.a$.add(H);utH(p,H);p.fS()||(H=DF9(p),p.Vn(L4(p),H!==void 0?(H.downloadedEndTime||0)*H.averageByteRate:H.maxKnownEndTime*H.averageByteRate,H.maxKnownEndTime*H.averageByteRate));p.W=new Uint8Array(p.chunkSize);p.C=0;p.S+=1}}; UFe=function(p){if($d(p))if(p.lW&&p.indexRange)if(p.C){var C=new Uint8Array(p.W.buffer,0,p.C),V=Oka(p),N=p.policy.S;Promise.all(p.a$).then(function(){var H=fk(N,p.lW.T.info,L4(p,!0),V,p.policy.qo,p.S,C,p.crypto);utH(p,H,!0)})}else gd(p,new WI("Woffle: Expect always re-mark currentChunkOffset at EOS")); else gd(p,new WI("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; DF9=function(p){return{downloadedEndTime:Math.round(p.lW?p.lW.zM:0),maxKnownEndTime:Math.round(p.T.index.Ax()),averageByteRate:Math.round(p.T.info.ND)}}; Oka=function(p){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(p.T.index.Ax()),averageByteRate:Math.round(p.T.info.ND)}}; L4=function(p,C){C===void 0||!C||p.indexRange&&p.initRange&&p.lW||gd(p,new WI("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));C={lmt:p.T.info.lastModified,docid:p.policy.S,fmtid:p.T.info.id,type:p.T.info.mimeType.split(";")[0],csz:p.chunkSize,clen:p.S*p.chunkSize+p.C};p.crypto&&(C.ck=p.D,C.civ=p.Y);var V="local://localhost/videoplayback?"+dm(C),N,H;C={itag:+p.T.info.itag,mimeType:p.T.info.mimeType,bitrate:p.T.info.F$*8,lastModified:String(p.T.info.lastModified),initRange:(N= p.initRange)==null?void 0:z4S(N),indexRange:(H=p.indexRange)==null?void 0:z4S(H),url:V};if(N=p.T.info.T)C.xtags=N;if(N=p.T.info.video)if(C.quality=N.quality,C.qualityLabel=N.qualityLabel,C.width=N.width,C.height=N.height,N=N.fps)C.fps=N;if(p=p.T.info.audio){if(N=p.sampleRate)C.audioSampleRate=String(N);if(p=p.numChannels)C.audioChannels=p}return C}; utH=function(p,C,V){V=V===void 0?!1:V;C.then(function(N){p.a$.delete(C);(V||N===4)&&p.J.resolve(N)},function(N){p.J.reject(N)})}; gd=function(p,C){g.Db(p.policy.S)!==4&&(g.us(p.policy.S,4),g.eG(C),p.J.reject(new WI(C.message)))}; WI=function(p,C){p=Error.call(this,p);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.T=C===void 0?!1:C}; yAj=function(p){p=g.B1(p,1886614376);for(var C=g.F(p),V=C.next();!V.done;V=C.next());return g.AU(p,function(N){return sjy(N)})}; qje=function(p){var C=kc(p,function(H,X){return H+X.length},0); C=new Uint8Array(C);var V=0;p=g.F(p);for(var N=p.next();!N.done;N=p.next())N=N.value,C.set(N,V),V+=N.length;return C}; IbY=function(p,C,V,N,H,X){this.ids=p;this.T=C;this.C=V;this.S=N;this.V=H;this.Ja=X}; QN=function(p,C,V){this.initData=p;this.contentType=C;this.isPrefetch=V;this.T=this.cryptoPeriodIndex=NaN;this.V=[];this.Ft=!1;this.C=null;if((C==null?void 0:C.toLowerCase())==="webm"||p.length===16)this.Ft=!0}; AAy=function(p){a:{var C=p.initData;try{for(var V=0,N=new DataView(C.buffer);V<N.byteLength-8;){var H=N.getUint32(V);if(H<=1)break;if(N.getUint32(V+4)===1886614376){var X=32;if(N.getUint8(V+8)>0){var d=N.getUint32(V+28);X+=d*16+4}var a=N.getUint32(V+X-4);try{var E=bkQ(C.subarray(V+X,V+X+a));if(E!==null){var l=E;break a}}catch(t){}}V+=H}l=null;break a}catch(t){l=null;break a}l=void 0}if(l!=null)for(C=aO(xK(l,7)),C==null||p.Ft||(p.cryptoPeriodIndex=C),C=aO(xK(l,10)),C!=null&&C>0&&!p.Ft&&(p.T=C),l=gw(l, 2,cBs,void 0===JBY?2:4),l=g.F(l),C=l.next();!C.done;C=l.next())p.V.push(g.mq(f6(C.value),4))}; oB1=function(p){return isNaN(p.cryptoPeriodIndex)?g.mq(p.initData):""+p.cryptoPeriodIndex}; rd=function(p,C,V){var N=V===void 0?{}:V;V=N.videoDuration===void 0?0:N.videoDuration;var H=N.wA===void 0?void 0:N.wA;N=N.tR===void 0?!1:N.tR;this.videoId=p;this.status=C;this.videoDuration=V;this.wA=H;this.tR=N}; ke9=function(p,C,V,N,H){this.videoId=p;this.Qq=C;this.C=V;this.bytesDownloaded=N;this.T=H}; BI=function(p){this.T=p;this.offset=0}; xF9=function(p){if(p.offset>=p.T.getLength())throw Error();return p.T.getUint8(p.offset++)}; Yjv=function(p,C){C=C===void 0?!1:C;var V=xF9(p);if(V===1){C=-1;for(V=0;V<7;V++){var N=xF9(p);C===-1&&N!==255&&(C=0);C>-1&&(C=C*256+N)}return C}N=128;for(var H=0;H<6&&N>V;H++)V=V*256+xF9(p),N*=128;return C?V:V-N}; zBY=function(p){try{var C=Yjv(p,!0),V=Yjv(p,!1);return{id:C,size:V}}catch(N){return{id:-1,size:-1}}}; RBV=function(p){for(var C=new BI(p),V=-1,N=0,H=0;!N||!H;){var X=zBY(C),d=X.id;X=X.size;if(d<0)return;if(d===176){if(X!==2)return;N=C.MB()}else if(d===186){if(X!==2)return;H=C.MB()}d===374648427?V=C.MB()+X:d!==408125543&&d!==174&&d!==224&&C.skip(X)}C=R4(p,0,V);V=new DataView(C.buffer);V.setUint16(N,3840);V.setUint16(H,2160);N=new o4([C]);k9(N,p);return N}; eBY=function(p,C,V){var N=this;this.nS=p;this.policy=C;this.Y=V;this.logger=new g.HI("dash");this.C=[];this.T=null;this.sY=-1;this.Z=0;this.Sa=NaN;this.a$=0;this.V=NaN;this.J=this.vr=0;this.UY=-1;this.Wr=this.W=this.S=this.Vn=null;this.KS=this.R$=NaN;this.D=this.b_=this.Y_=this.Qn=null;this.qo=!1;this.Ga=this.timestampOffset=0;this.Sr={ou:function(){return N.C}}; if(this.policy.S){var H=this.Y,X=this.policy.S;this.policy.qo&&p.k_("atv",{ap:this.policy.qo});this.D=new Kxa(this.policy,H,function(d,a,E){GX(p,new rd(N.policy.S,2,{wA:new ke9(X,d,H.info,a,E)}))}); this.D.J.promise.then(function(d){N.D=null;d===1?GX(p,new rd(N.policy.S,d)):N.nS.k_("offlineerr",{status:d.toString()})},function(d){var a=(d.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); d instanceof WI&&!d.T?(N.logger.info(function(){return"Assertion failed: "+a}),N.nS.k_("offlinenwerr",{em:a}),nBu(N),GX(p,new rd(N.policy.S,4))):(N.logger.info(function(){return"Failed to write to disk: "+a}),N.nS.k_("dldbwerr",{em:a}),nBu(N),GX(p,new rd(N.policy.S,4,{tR:!0})))})}}; PsX=function(p){return p.C.length?p.C[0]:null}; w71=function(p,C){return p.C.some(function(V){return V.info.LS===C})}; BPy=function(p,C,V,N){N=N===void 0?0:N;if(p.W){var H=p.W.C+p.W.V;if(V.info.C>0)if(V.info.LS===p.W.LS&&V.info.C<H){if(V.info.C+V.info.V<=H)return;V=tIY(V,H-V.info.C)[1]}else if(V.info.LS>=0&&p.W.LS>=0&&!qt(p.W,V.info))throw new g.Bw("improper_continuation",p.W.Zh(),V.info.Zh());cKX(p.W,V.info)||$FH(p,"d")}else if(V.info.C>0)throw new g.Bw("continuation_of_null",V.info.Zh());p.W=V.info;p.Y=V.info.T;if(V.info.C===0){if(p.T)if(!p.nS.isOffline()||p.policy.tB)p.nS.k_("slice_not_fully_processed",{buffered:p.T.info.Zh(), push:V.info.Zh()});else throw new g.Bw("slice_not_fully_processed",p.T.info.Zh(),V.info.Zh());pA(p);p.vr=N}else{if(p.vr&&N&&p.vr!==N)throw p=new g.Bw("lmt_mismatch",V.info.LS,p.vr,N),p.level="WARNING",p;!V.info.T.V1()&&p.S&&(N=V.info,H=p.S.ox,N.W="updateWithEmsg",N.LS=H)}if(p.T){N=Qv(p.T,V);if(!N)throw new g.Bw("failed_to_merge",p.T.info.Zh(),V.info.Zh());p.T=N}else p.T=V;a:{V=g.Cx(p.T.info.T.info);if(p.T.info.type!==3){if(!p.T.info.S)break a;p.T.info.type===6?Lxs(p,C,p.T):gB1(p,p.T);p.T=null}for(;p.T;){N= p.T.T.getLength();if(p.sY<=0&&p.Z===0){var X=p.T.T,d=-1;H=-1;if(V){for(var a=0;a+8<X.getLength();){var E=ANu(X,a),l=ANu(X,a+4);a+=E||1;if(l===1836019558)d=a;else if(l===1835295092){H=a;break}}H<0&&(d=-1)}else{X=new BI(X);for(E=a=!1;;){l=X.MB();var t=zBY(X),c=t.id;t=t.size;if(!(c>0))break;if(c!==408125543)if(c===524531317)a=!0,t>=0&&(H=X.MB()+t,E=!0);else{if(a&&(c===160||c===163)&&(d<0&&(d=l),E))break;c===163&&(d=Math.max(0,d),H=X.MB()+t);if(c===160){d<0&&(H=d=X.MB()+t);break}X.skip(t)}}d<0&&(H=-1)}if(d< 0)break;p.sY=d;p.Z=H-d}if(p.sY>N)break;p.sY?(N=Wxe(p,p.sY),N.W&&QIy(p,N),Lxs(p,C,N),rAV(p,N),p.sY=0):p.Z&&(N=Wxe(p,p.Z<0?Infinity:p.Z),p.Z-=N.T.getLength(),rAV(p,N))}}p.T&&p.T.info.S&&(rAV(p,p.T),p.T=null)}; gB1=function(p,C){!C.info.T.V1()&&C.info.C===0&&(g.Cx(C.info.T.info)||C.info.T.info.Ft())&&mVy(C);if(C.info.type===1)try{QIy(p,C),GeH(p,C)}catch(H){g.nm(H);var V=bw(C.info);V.hms="1";p.nS.handleError("fmt.unparseable",V||{},1)}V=C.info.T;V.Ky(C);p.D&&fbS(p.D,C);if(V.rI()&&p.policy.T)a:{p=p.nS.hk;C=C.info.clipId;V=g.VE(V.info,p.p4);if(C){var N=kTV(p,V);if(p.Ga[N])break a;p.Ga[N]=C}p.Wr.push(V)}}; j5s=function(p,C,V){if(p.C.length!==0&&(V||p.C.some(function(X){return X.info.Qi<C}))){V=0; for(var N=g.F(p.C),H=N.next();!H.done;H=N.next()){H=H.value;if(H.info.Qi<C)break;p.nS.k_("cmat",{max:C,s:H.info.Zh()});V+=1}p.C.splice(0,V)}}; nBu=function(p){var C;(C=p.D)==null||C.dispose();p.D=null}; p_1=function(p){var C=p.C.reduce(function(V,N){return V+N.T.getLength()},0); p.T&&(C+=p.T.T.getLength());return C}; CdL=function(p){if(p.b_&&!p.policy.Ot){var C=p.nS;C.hk.isManifestless&&vb(C.hk,p.b_.LS,!!p.Y.info.video)}p.b_=null;p.S=null;p.W=p.Qn;p.V=p.W?p.V-p.a$:NaN;pA(p)}; Wxe=function(p,C){var V=p.T;C=Math.min(C,V.T.getLength());if(C===V.T.getLength())return p.T=null,V;V=tIY(V,C);p.T=V[1];return V[0]}; QIy=function(p,C){C.T.getLength();var V=C.b9();if(rO(C.info.T.info)&&C.info.T.info.video.primaries==="bt2020"){var N=new Gr(V);Cp(N,[408125543,374648427,174,224,21936,21937])&&(N=N.start+N.pos,V.getUint8(N)===129&&V.getUint8(N+1)===1&&V.setUint8(N+1,9))}N=C.info.T.info;Qu(N)&&!rO(N)&&(N=C.b9(),(new Gr(N)).h9(),HR([408125543,374648427,174,224],21936,N));C.info.T.info.K9()&&(N=C.info.T,N.info&&N.info.video&&N.info.video.projectionType==="MESH"&&!N.C&&(g.Cx(N.info)?N.C=vuX(V):N.info.Ft()&&(N.C=Uos(V)))); C.info.T.info.Ft()&&C.info.K9()&&(V=C.b9(),(new Gr(V)).h9(),HR([408125543,374648427,174,224],30320,V)&&HR([408125543,374648427,174,224],21432,V));if(p.policy.Fd&&C.info.T.info.Ft()){V=C.b9();var H=new Gr(V);if(Cp(H,[408125543,374648427,174,29637])){N=Nt(H,!0);H=H.start+H.pos;for(var X=0;X<N-1;X++)V.setUint8(H+X,0);V.setUint8(H+N-1,1)}}if(p.DQ()&&g.Cx(C.info.T.info)){N=C.b9();V=g.eo(N,0,1701606260);X=g.eo(N,0,1836476516);if(V&&X){V.skip(2);var d=qi(V),a=b5(V);N=[];H=[];var E=[],l=[];if(d)for(d=0;d< a;++d)N.push(Ae(V)),H.push(Ae(V)),E.push(qi(V)),l.push(qi(V));else for(d=0;d<a;++d)N.push(I2(V)),H.push(I2(V)),E.push(qi(V)),l.push(qi(V));V=g.P1(X);V=new MYX(H[0]/V,N[0]/V)}else V=null;if(V){if(g.Cx(C.info.T.info))for(N=C.b9(),H=g.eo(N,0,1701082227);H;)X=H,X.type=1936419184,X.data.setUint32(X.offset+4,1936419184),H=g.eo(N,H.offset+H.size,1701082227);p.qo=!0;C.info.T.S=V}}C.info.T.V1()||C.info.T.T||C.info.T.indexRange||pb(C)}; Lxs=function(p,C,V){if(V.info.T.V1()){if(p.qo&&jMe(V)&&(C=V.b9(),C=g.eo(C,0,1953658222))){C.skip(1);var N=yS(C)<<16|qi(C),H=N&1,X=N&4;if(N&256){var d=N&512,a=N&1024;N&=2048;var E=b5(C);E<2||(H&&C.skip(4),X&&C.skip(4),H=b5(C),C.skip((E-1)*(4+(d?4:0)+(a?4:0)+(N?4:0))-4),C.data.setUint32(C.offset+C.T,H))}}if(C=p.Vn&&!!p.Vn.Y.S)if(C=V.info.K9())C=MI9(V),d=p.Vn,CA?(a=1/C,C=jX(p,C)>=jX(d)+a):C=p.getDuration()>=d.getDuration(),C=!C;C&&jMe(V)&&(C=p.Vn,CA?(a=MI9(V),d=1/a,a=jX(p,a),C=jX(C)+d-a):C=C.getDuration()- p.getDuration(),C=1+C/V.info.duration,mou(V.b9(),C))}else{d=!1;p.S||(mVy(V),V.C&&(p.S=V.C,d=!0,X=V.info,N=V.C.ox,X.W="updateWithEmsg",X.LS=N,X=V.C,X.Vo&&(N=p.Y.index,N.C=!X.Vo,N.V="emsg"),X=V.info.T.info,N=V.b9(),g.Cx(X)?rH(N,1701671783):X.Ft()&&HR([408125543],307544935,N)));a:if((X=Gn(V,p.policy.Q$))&&JVS(V))a=VK1(p,V),p.J+=a,X-=a,p.a$+=X,p.V=p.policy.lM?p.V+X:NaN;else{if(p.policy.jL){if(N=E=p.nS.zR(rz(V),1),p.V>=0&&V.info.type!==6){if(p.policy.lM&&isNaN(p.R$)){g.eG(new g.Bw("Missing duration while processing previous chunk", V.info.Zh()));p.nS.isOffline()&&!p.policy.tB||NsV(p,V,N);$FH(p,"m");break a}var l=E-p.V,t=l-p.J,c=V.info.LS,T=p.Wr?p.Wr.LS:-1,M=p.KS,J=p.R$,S=p.policy.W8&&l>p.policy.W8,D=Math.abs(t)>10,Z=Math.abs(p.V-N)<1E-7;if(Math.abs(t)>1E-4){p.Ga+=1;var f=(H=p.S)==null?void 0:R2(H);H={audio:""+ +p.DQ(),sq:c.toFixed(),sliceStart:E,lastSq:T.toFixed(),lastSliceStart:M,lastSliceDuration:J,totalDrift:(l*1E3).toFixed(),segDrift:(t*1E3).toFixed(),skipRewrite:""+ +(S||D)};if(f==null?0:f.length)H.adCpn=f[0];p.nS.handleError("qoe.avsync", H);p.UY=c}S||D||Z||(N=p.V);H=VK1(p,V,E);X-=H;p.J=l+H;p.policy.V&&(t&&!Z||H)&&(l=(a=p.S)==null?void 0:R2(a),p.nS.k_("discontinuityRewrite",{adCpn:(l==null?0:l.length)?l.join("."):"",itag:V.info.T.info.itag,sq:V.info.LS,originalStartTime:E,rewrittenStartTime:N,startTimeAdjustment:N-E,segDrift:(t*1E3).toFixed(),originalDuration:X+H,rewrittenDuration:X,durationAdjustment:H}))}}else N=isNaN(p.V)?V.info.startTime:p.V;NsV(p,V,N)&&(p.a$+=X,p.V=N+X,p.policy.i6&&p.Ga>=p.policy.i6&&(p.Ga=0,p.nS.wP({resetForRewrites:"count"})))}p.Wr= V.info;p.R$=BR(V);V.V>=0&&(p.KS=V.V);if(d&&p.S){d=Hf9(p,!0);AW(V.info,d);p.T&&AW(p.T.info,d);C=g.F(C);for(a=C.next();!a.done;a=C.next())a=a.value,H=void 0,p.policy.Y&&a.LS!==((H=p.S)==null?void 0:H.ox)||AW(a,d);(V.info.S||p.T&&p.T.info.S)&&V.info.type!==6||(p.b_=d,p.policy.Qn?(C=X_y(p.S),p.nS.T5(p.Y,d,C)):(C=p.nS,C.hk.isManifestless&&dI9(C,d,null,!!p.Y.info.video)),p.policy.hE||ifu(p))}}GeH(p,V);p.timestampOffset&&TF1(V,p.timestampOffset)}; rAV=function(p,C){if(C.info.S){p.Qn=C.info;if(p.S){var V=p.S,N=Hf9(p,!1);V=X_y(V);p.nS.T5(p.Y,N,V);p.b_||p.policy.hE||ifu(p);p.b_=null}pA(p)}p.D&&fbS(p.D,C);if(N=p.gP())if(N=Qv(N,C,p.policy.Um)){p.C.pop();p.C.push(N);return}p.C.push(C)}; X_y=function(p){if(p.fJ()){var C=p.data["Stitched-Video-Id"]?p.data["Stitched-Video-Id"].split(",").slice(0,-1):[],V=R2(p),N=[];if(p.data["Stitched-Video-Duration-Us"])for(var H=g.F(p.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),X=H.next();!X.done;X=H.next())N.push((Number(X.value)||0)/1E6);H=[];if(p.data["Stitched-Video-Start-Frame-Index"]){X=g.F(p.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var d=X.next();!d.done;d=X.next())H.push(Number(d.value)||0)}H=[]; if(p.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(X=g.F(p.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),d=X.next();!d.done;d=X.next())H.push((Number(d.value)||0)/1E6);p=new IbY(C,V,N,H,g.cyv(p),g.Tns(p))}else p=null;return p}; pA=function(p){p.T=null;p.sY=-1;p.Z=0;p.S=null;p.Sa=NaN;p.a$=0;p.b_=null}; $FH=function(p,C){C={rst4disc:C,cd:p.J.toFixed(3),sq:p.Wr?p.Wr.LS:-1};p.V=NaN;p.J=0;p.UY=-1;p.Wr=null;p.KS=NaN;p.R$=NaN;p.Y_=null;p.nS.k_("mdstm",C)}; GeH=function(p,C){if(p.Y.info.vV){if(C.info.T.info.Ft()){var V=new Gr(C.b9());if(Cp(V,[408125543,374648427,174,28032,25152,20533,18402])){var N=Nt(V,!0);V=N!==16?null:hW(V,N)}else V=null;N="webm"}else C.info.D=yAj(C.b9()),V=qje(C.info.D),N="cenc";V&&V.length&&(V=new QN(V,N),p.policy.Ep&&g.Cx(C.info.T.info)&&(N=uY9(C.b9()))&&(V.C=N),V.Ft=C.info.T.info.Ft(),C.C&&C.C.cryptoPeriodIndex&&(V.cryptoPeriodIndex=C.C.cryptoPeriodIndex),C.C&&C.C.C&&(V.T=C.C.C),p.nS.EA(V))}}; ifu=function(p){var C=p.S,V=ll1(C);V&&(V.startSecs+=p.Sa,p.nS.l1(p.Y,V,C.ox,C.fJ()))}; Hf9=function(p,C){var V,N=p.S;if(V=ll1(N))V.startSecs+=p.Sa;return new Uc(N.ox,p.Sa,C?N.Ym:p.a$,N.ingestionTime,"sq/"+N.ox,void 0,void 0,C,V)}; NsV=function(p,C,V){if(!cV1(C,V))return C=bw(C.info),C.smst="1",p.nS.handleError("fmt.unparseable",C||{},1),!1;isNaN(p.Sa)&&(p.Sa=V);return!0}; VK1=function(p,C,V){var N=0;if(C.info.T.info.Ft()&&!JVS(C))return 0;if(p.Vn&&!p.DQ()){var H=0;V&&g.Cx(C.info.T.info)?H=V-p.V:C.info.T.info.Ft()&&(H=p.J);var X=C.info.LS;V=Gn(C,p.policy.Q$);var d=p.Vn;var a=d.UY;d=d.J;var E=Math.abs(d-H)>.02;if((X===a||X>a&&X>p.UY)&&E){N=Math.max(.95,Math.min(1.05,(V-(d-H))/V));if(g.Cx(C.info.T.info))mou(C.b9(),N);else if(C.info.T.info.Ft()&&(X=H-d,!g.Cx(C.info.T.info)&&(C.info.T.info.Ft(),N=new Gr(C.b9()),a=C.W?N:new Gr(new DataView(C.info.T.T.buffer)),Gn(C,!0)))){var l= X*1E3,t=aZ(a);a=N.pos;N.pos=0;if(N.T.getUint8(N.pos)===160||E9(N))if(Vv(N,160))if(Nt(N,!0),Vv(N,155)){if(X=N.pos,E=Nt(N,!0),N.pos=X,l=l*1E9/t,t=X6(N),l=t+Math.max(-t*.7,Math.min(t,l)),l=Math.sign(l)*Math.floor(Math.abs(l)),!(Math.ceil(Math.log(l)/Math.log(2)/8)>E)){N.pos=X+1;for(X=E-1;X>=0;X--)N.T.setUint8(N.pos+X,l&255),l>>>=8;N.pos=a}}else N.pos=a;else N.pos=a;else N.pos=a}N=Gn(C,p.policy.Q$);N=V-N}N&&C.info.T.info.Ft()&&p.nS.k_("webmDurationAdjustment",{durationAdjustment:N,videoDrift:H+N,audioDrift:d})}return N}; jMe=function(p){return p.info.T.V1()&&p.info.LS===p.info.T.index.Ha()}; jX=function(p,C){C=(C=C===void 0?0:C)?Math.round(p.timestampOffset*C)/C:p.timestampOffset;p.Y.S&&C&&(C+=p.Y.S.T);return C+p.getDuration()}; htQ=function(p,C){C<0||(p.C.forEach(function(V){TF1(V,C)}),p.timestampOffset=C)}; em=function(p,C,V,N,H){jf.call(this,V,H);var X=this;this.policy=p;this.formatId=C;this.g6=N;this.lastError=null;this.Nn=function(){X.fS()||(X.g6.hc.has(X.formatId)?(X.isComplete()||X.T.start(),DX(X.g6,X.formatId)&&X.dZ(2),X.g6.gI(X.formatId)&&(Sej(X.g6,X.formatId)?X.UZ(4):(X.lastError="net.closed",X.UZ(5)))):(X.lastError="player.exception",X.UZ(5)))}; this.T=new g.N8(function(){X.isComplete()||(X.lastError="net.timeout",X.UZ(5))},this.policy.It); this.T.start();MHv(this.g6,this.formatId,this.Nn);g.mo(this.Nn)}; Vz=function(p,C,V,N){g.Y.call(this);var H=this;this.nS=p;this.policy=C;this.T=V;this.timing=N;this.logger=new g.HI("dash");this.V=[];this.sY=[];this.C=this.NW=null;this.vr=!1;this.Ga=this.Y_=0;this.Y=-1;this.b_=!1;this.Sa=-1;this.Vn=this.Wr=null;this.a$=NaN;this.Sr={Sh:function(){return H.S}, aIr:function(){return H.V}, GR$:function(){return H.J}}; this.S=new eBY(p,C,V);this.policy.T&&(this.J=new ePs(this.S,this.nS.getManifest(),this.policy,function(X){H.policy.QP&&H.k_("buftl",X)})); this.policy.X$&&(this.Z=new vBH(this));this.F$=V.info.F$;this.D=this.policy.sY?!1:V.zq();this.isManifestless=V.zq();this.W=this.D;g.R(this,this.Wr)}; N4=function(p,C,V){V=V===void 0?!1:V;C&&CA&&htQ(p.S,C.PG());if(!V){var N;(N=p.J)==null||BzQ(N)}p.NW=C;(C=p.J)!=null&&(C.NW=p.NW)}; HZ=function(p){var C=p.NW&&p.NW.ye();if(p.policy.Su){if((p=p.J)==null)p=void 0;else{var V;p=(V=p.V)==null?void 0:V.info}return p||null}return C}; sMH=function(p){for(var C={},V=0;V<p.sY.length;V++)C["r"+V]=p.sY[V];return C}; a6S=function(p,C){isNaN(p.a$)||p.k_("aswr",{sq:C.info.wV[0].LS,id:C.info.wV[0].T.info.itag,xtag:C.info.wV[0].T.info.T,ep:Date.now()-p.a$});p.V.push(C);p.C=g.wY(C.info.wV);p.sY.push(C.Zh());p.sY.length>4&&p.sY.shift()}; EAu=function(p,C){if(C.Lp()){var V=C.iT();V=g.F(V);for(var N=V.next();!N.done;N=V.next())N=N.value,p.policy.V&&C instanceof em&&p.k_("omblss",{s:N.info.Zh()}),X0(p,C.info.wV,N,C.eh())}}; X0=function(p,C,V,N){N=N===void 0?0:N;isNaN(p.a$)||(p.k_("aswm",{sq:C[0].LS,id:C[0].T.info.itag,xtag:C[0].T.info.T,ep:Date.now()-p.a$}),p.a$=NaN);switch(V.info.type){case 1:case 2:l6u(p,V);break;case 4:var H=V.info.T,X=H.QE(V),d;((d=p.C)==null?0:d.type===4)&&Blj(V.info,p.C)&&(p.C=H.Nz(p.C).pop());V=g.F(X);for(H=V.next();!H.done;H=V.next())X0(p,C,H.value,N);break;case 3:V.info.T.info.video?(H=p.timing,H.Vn||(H.Vn=(0,g.Ip)(),YL("fvb_r",H.Vn,H.T))):(H=p.timing,H.Y||(H.Y=(0,g.Ip)(),YL("fab_r",H.Y,H.T))); BPy(p.S,C,V,N);p.policy.T&&tKX(p);break;case 6:BPy(p.S,C,V,N),p.C=V.info}}; l6u=function(p,C){if(C.info.type===1)if(C.info.T.info.video){var V=p.timing;V.Wr||(V.Wr=(0,g.Ip)(),YL("vis_r",V.Wr,V.T))}else V=p.timing,V.J||(V.J=(0,g.Ip)(),YL("ais_r",V.J,V.T));gB1(p.S,C);p=p.nS;p.videoTrack.T.rI()&&p.audioTrack.T.rI()&&p.policy.T&&!p.hk.p4&&(C=p.audioTrack.getDuration(),V=p.videoTrack.getDuration(),Math.abs(C-V)>1&&p.k_("trBug",{af:""+g.VE(p.audioTrack.T.info,!1),vf:""+g.VE(p.videoTrack.T.info,!1),a:""+C,v:""+V}))}; rS=function(p){return PsX(p.S)}; tKX=function(p){p.V.length?p.C=g.wY(g.wY(p.V).info.wV):p.S.C.length?p.C=p.S.gP().info:p.C=HZ(p)}; clL=function(p,C){var V={xG:[],Eh:[]},N;if((p=p.J)==null)p=void 0;else{rWy(p,p.xG,"og");gES(p,C);rWy(p,p.xG,"trim");var H=QZe(p);C=H.xG;H=H.n6;for(var X=[],d=0;d<H.length;d++){var a=H[d],E=p.policy.UY&&a.V!==-1?a.V:a.info.startTime,l={wI:(E+p.timestampOffset)*1E3,zT:(p.policy.UY&&a.S!==-1?a.S:a.info.duration)*1E3,Sz:1E3},t=void 0,c=(t=p.NW)==null?void 0:t.K7();t=void 0;if(p.policy.SA&&c&&c.length>0){var T=a7(c,E);T>=0&&(t=(c.end(T)-E+.1)*1E3)}X.push({formatId:g.VE(a.info.T.info,p.hk.p4),R5:a.info.R5, sequenceNumber:a.info.LS+p.S,je:l,zK:a.info.V,Cs:t})}p={xG:C,Eh:X}}return(N=p)!=null?N:V}; $v=function(p,C,V){V=V===void 0?!1:V;if(p.NW){var N=p.NW.K7(),H=lX(N,C),X=NaN,d=HZ(p);d&&(X=lX(N,d.T.index.getStartTime(d.LS)));if(H===X&&p.C&&p.C.V&&TsY(MKL(p),0))return C}p=Jlu(p,C,V);return p>=0?p:NaN}; gS=function(p,C,V){p.T.rI();var N=Jlu(p,C);if(N>=0)return N;var H;(H=p.J)==null||Wp9(H,C,V);V=Math;N=V.min;H=p.S;if(H.D)if(H=H.D,H.lW&&H.lW.type===3)H=H.lW.startTime;else if(H.V>0){var X=H.T.index;X=g.Xv(X.offsets.subarray(0,X.count),H.V*H.chunkSize);H=H.T.index.getStartTime(X>=0?X:Math.max(0,-X-2))}else H=0;else H=Infinity;C=N.call(V,C,H);if(p.policy.C){var d,a;V=(d=p.nS.RI())==null?void 0:(a=R8(d,C))==null?void 0:a.clipId;p.C=p.T.V8(C,void 0,V).wV[0]}else p.C=p.policy.sY?null:p.T.V8(C).wV[0];dZ(p)&& p.NW&&p.NW.abort();p.Ga=0;return p.C?p.C.startTime:C}; pbX=function(p){p.D=!0;p.W=!0;p.Y=-1;gS(p,Infinity)}; iQ=function(p){for(var C=0,V=g.F(p.V),N=V.next();!N.done;N=V.next())C+=pSy(N.value.info);return C+=p_1(p.S)}; sp=function(p,C){C=C===void 0?!1:C;var V=p.nS.getCurrentTime(),N=p.S.gP(),H=(N==null?void 0:N.info.zM)||0;p.policy.Ra&&(N==null?0:N.info.T.zq())&&!N.info.S&&(H=N.info.Qi);if(p.policy.C&&N&&N.info.clipId){var X,d=(((X=p.nS.RI())==null?void 0:zJ(X,N.info.clipId))||0)/1E3;H+=d}if(!p.NW)return p.policy.T&&C&&!isNaN(V)&&N?H-V:0;if((X=HZ(p))&&hI(p,X))return X.zM;d=p.NW.K7(!0);if(C&&N)return X=0,p.policy.T&&(X=cc(d,H+.02)),X+H-V;H=cc(d,V);p.policy.Mq&&X&&(C=a7(d,V),d=a7(d,X.Qi-.02),C===d&&(V=X.zM-V,p.policy.V&& V>H+.02&&p.k_("abh",{bh:H,bhtls:V}),H=Math.max(H,V)));return H}; mIV=function(p){var C=HZ(p);return C?C.zM-p.nS.getCurrentTime():0}; vAL=function(p,C){if(p.V.length){if(p.V[0].info.wV[0].startTime<=C)return;wS(p)}for(var V=p.S,N=V.C.length-1;N>=0;N--)V.C[N].info.startTime>C&&V.C.pop();tKX(p);p.C&&C<p.C.startTime&&(p.Ga=0,p.T.rI()?p.C=p.T.V8(C,!0).wV[0]:p.C=null)}; SWe=function(p,C,V,N){if(p.policy.lF)try{FJS(p,C,V,N)}catch(H){C=bv(H),C.details.reason="rollbkerr",p.nS.handleError(C.errorCode,C.details,C.severity)}else FJS(p,C,V,N)}; FJS=function(p,C,V,N){wS(p);for(var H=p.S,X=null,d=H.C.length-1;d>=0;d--){var a=H.C[d];a.info.LS>=C&&(H.C.pop(),H.V-=Gn(a,H.policy.Q$),X=a.info)}X&&(H.W=H.C.length>0?H.C[H.C.length-1].info:H.Y_,H.C.length!==0||H.W||$FH(H,"r"));H.nS.k_("mdstm",{rollbk:1,itag:X?X.T.info.itag:"",popped:X?X.LS:-1,sq:C,lastslc:H.W?H.W.LS:-1,lastfraget:H.V.toFixed(3)});p.policy.T?p.C=null:N>V?gS(p,N):p.C=p.T.P8(C-1,!1).wV[0]}; Ep=function(p,C){var V;for(V=0;V<p.V.length&&C!==p.V[V];V++);if(V===p.V.length)aB(p,C);else{for(;V<p.V.length;)aB(p,p.V.pop());var N=Qgs(p);N&&N.T.NQ()&&Yo(C.info.wV,function(H){return GPX(H,N)})?(p.C=N,p.policy.V&&p.k_("cer",{lsr:"lsp", lsp:N.Zh()})):(yv(C.info.wV[0])?(p.C=C.TI&&C.TI.V?QkV(C.TI.V):WEs(C.info.wV[0]),p.policy.V&&p.k_("cer",{lsr:p.C.Zh(),lsp:N==null?void 0:N.Zh()})):(p.C=null,p.policy.V&&p.k_("cer",{lsr:"null",lsp:N==null?void 0:N.Zh()})),p.nS.isOffline()&&!p.policy.tB||aB(p,C,!0))}}; hI=function(p,C){if(!C)return!1;if(p.policy.C){var V;if((p=(V=p.nS.RI())==null?void 0:lQ(V))&&C.clipId!==p)return!1}return C.Vo()}; dZ=function(p){var C;!(C=p.T.info.o$==="f")&&(C=p.policy.S)&&(C=p.S,C=!!C.D&&$d(C.D));if(C)return!0;C=HZ(p);if(!C)return!1;var V=hI(p,C)&&C.S;return p.isManifestless&&p.Sa>0?V||C.LS>=p.Sa:V}; tI=function(p){var C;return dZ(p)||hI(p,(C=p.S.gP())==null?void 0:C.info)}; MKL=function(p){var C=[],V=HZ(p);V&&C.push(V);C=g.Gp(C,p.S.Ux());V=g.F(p.V);for(var N=V.next();!N.done;N=V.next()){N=N.value;for(var H=g.F(N.info.wV),X=H.next(),d={};!X.done;d={rf:void 0},X=H.next())d.rf=X.value,N.X2&&(C=g.JT(C,function(a){return function(E){return!Blj(E,a.rf)}}(d))),(yv(d.rf)||d.rf.type===4)&&C.push(d.rf)}p.C&&!rnS(p.C,g.wY(C),p.C.T.V1())&&C.push(p.C); return C}; TsY=function(p,C){if(!p.length)return!1;for(C+=1;C<p.length;C++)if(!t6u(p[C-1],p[C]))return!1;return!0}; Jlu=function(p,C,V){V=V===void 0?!1:V;if(!p.C||!p.C.V)return NaN;p=MKL(p);a:{C+=.02;var N=V;N=N===void 0?!1:N;for(var H=-1,X=0;X<p.length;++X){var d=p[X];if(d.Qi<=C)if(N)H=X;else if(d.startTime+d.duration>=C){C=X;break a}}C=H}return C<0?NaN:TsY(p,V?C:0)?p[C].startTime:NaN}; cZ=function(p){return!(!p.C||p.C.T===p.T)}; KJ9=function(p){return cZ(p)&&p.T.rI()&&p.C.T.info.F$<p.T.info.F$}; DIj=function(p,C,V){if(p.policy.Ra)return sp(p,!0)<V;var N=Qgs(p);return N&&!hI(p,N)?N.zM>C&&N.zM<C+V:!1}; Qgs=function(p){var C=p.S.gP();return C?C.info:HZ(p)}; W4a=function(p,C){var V;return!((V=p.J)==null||!V.W.has(C))||w71(p.S,C)}; wS=function(p){for(var C=g.F(p.V),V=C.next();!V.done;V=C.next())aB(p,V.value);p.V=[];p.C=null}; TG=function(p){var C;(C=p.J)==null||BzQ(C)}; uxu=function(p,C,V){C.X2&&((V===void 0?0:V)||!C.info.wV[0].T.NQ())&&(p.logger.debug(function(){return"Rolling back request with segNum "+C.info.wV[0].LS}),CdL(p.S))}; aB=function(p,C,V){uxu(p,C,V===void 0?!1:V);C.dispose()}; ZfS=function(p){return!!p.C&&p.C.LS!==-1&&p.C.LS<p.T.index.V6()}; UIv=function(p){var C=p.C;C&&C.LS===-1&&(p=p.S.gP())&&yv(p.info)&&(p=p.info.LS,C.W="updateLastSliceRequested",C.LS=p)}; f6e=function(p){return Yo(p.V,function(C){return C.C6})}; OfY=function(p,C){p.C&&(p.C.T=C)}; ylQ=function(p,C){return p.NW?EJ(p.NW.K7(),C):!0}; M4=function(p){var C=rS(p);p=p.nS.RI();return C&&p&&C.info.clipId&&!qWa(p,C.info.clipId)?!0:!1}; I6v=function(p){var C;return!((C=rS(p))==null||!C.isLocked)}; bf9=function(p,C){var V=rS(p);return V&&V.info.type!==6?!rRQ(C,p,V.info.LS):!1}; Alv=function(p){var C=HZ(p),V,N=(V=p.NW)==null?void 0:V.K7();V=NaN;C&&N&&dZ(p)&&(V=lX(N,(C.Qi+C.zM)/2));return!isNaN(V)}; oAY=function(p){if((p=p.J)==null)p=void 0;else if(p.xG.length===0||p.policy.JB&&p.T<0)p=null;else{var C=p.xG[p.T]?p.xG[p.T].formatId:null;p=C?(p=p.hk.V.get(S5(C)))?p.info:null:null}return p||null}; k5v=function(){this.q3=!1}; xIv=function(p){var C=p===void 0?{}:p;p=C.hasSubfragmentedFmp4===void 0?!1:C.hasSubfragmentedFmp4;C=C.Wo===void 0?!1:C.Wo;var V=new k5v;V.q3=p||C;return V}; g.YWu=function(p){this.I$=p;this.J=new k5v;this.aX=this.Ts=!1;this.Lw=2;this.Ga=20971520;this.kM=8388608;this.Vn=120;this.gW=g.mi(this.I$.experiments,"html5_min_readbehind_secs");this.eD=g.mi(this.I$.experiments,"html5_min_readbehind_cap_secs");this.tB=this.I$.G("html5_offline_reset_media_stream_on_unresumable_slices");this.F$=NaN;this.m0=this.KM=this.l3=2;this.Kq=JI(this,"html5_request_size_min_kb",64)*1024;this.Y_=2097152;this.fW=JI(this,"html5_bypass_contention_secs");this.uv=1048576;this.Q1=!1; this.K$=JI(this,"html5_repredict_interval_ms",1800);this.Ln=JI(this,"html5_head_miss_secs",5);this.Za=JI(this,"html5_min_upgrade_health_secs",10);this.Hc=15;this.AX=1;this.Z=1.15;this.a$=1.05;this.Kp=1;this.qq=JI(this,"html5_min_seconds_between_format_selections",8);this.fn=JI(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Kt=gB;this.Pz=this.FO=!1;this.Y9=6;this.V=!1;this.BB=g.mi(this.I$.experiments,"html5_min_startup_buffered_media_duration_secs");this.bv=g.mi(this.I$.experiments,"html5_post_interrupt_readahead"); this.vA=this.I$.G("html5_allow_onesie_for_ssap");this.bj=this.I$.G("html5_disable_classic_alr");this.CA=g.mi(this.I$.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Ik=100;this.uM=10;this.nj=6;this.Hn=JI(this,"html5_ssdai_failure_retry_limit",3);this.JW=this.I$.experiments.OY("html5_clone_original_for_fallback_location");this.pk=!1;this.RN=g.mi(this.I$.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Ov=g.mi(this.I$.experiments,"html5_subsegment_readahead_timeout_secs"); this.f5=g.mi(this.I$.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.gh=g.mi(this.I$.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.Rm=g.mi(this.I$.experiments,"html5_subsegment_readahead_min_load_speed");this.Aa=g.mi(this.I$.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.O1=g.mi(this.I$.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Gp=JI(this,"html5_hopeless_secs",15);this.oa=1;this.f9=!1;this.Di= this.I$.G("html5_restrict_streaming_xhr_on_sqless_requests");this.Nq=g.mi(this.I$.experiments,"html5_max_headm_for_streaming_xhr");this.mO=this.I$.G("html5_pipeline_manifestless_allow_nonstreaming");this.pj=this.I$.G("html5_prefer_server_bwe3");this.ub=this.I$.G("html5_last_slice_transition");this.JT=this.I$.G("html5_store_xhr_headers_readable");this.jL=this.qn=this.yV=!1;this.W8=g.mi(this.I$.experiments,"html5_max_drift_per_track_secs");this.Ot=this.I$.G("html5_no_placeholder_rollbacks");this.n5= this.I$.G("html5_subsegment_readahead_enable_mffa");this.jZ=this.I$.G("html5_allow_video_keyframe_without_audio");this.Ep=this.I$.G("html5_enable_vp9_fairplay");this.ER=!0;this.d6=this.KS=this.BI=this.Wc=this.QZ=!1;this.eE=!0;this.hI=!1;this.S="";this.uj=1048576;this.i8=[];this.Wv=this.I$.G("html5_woffle_resume");this.td=this.I$.G("html5_abs_buffer_health");this.Zq=this.I$.G("html5_interruption_resets_seeked_time");this.Gy=g.mi(this.I$.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800; this.X$=!1;this.JF=this.I$.G("html5_log_additional_source_buffer_updates");this.zy=this.I$.G("html5_report_captions_ctmp_qoe");this.VP=this.I$.G("html5_explicitly_dispose_xhr");this.AI=!1;this.Um=!this.I$.G("html5_encourage_array_coalescing");this.Om=!1;this.Wt=this.I$.G("html5_restart_on_unexpected_detach");this.Tp=0;this.cV="";this.g1=this.I$.G("html5_filter_non_efficient_formats_for_safari");this.I$.G("html5_format_hybridization");this.mU=this.I$.G("html5_abort_before_separate_init");this.Fd=pK(); this.eM=this.I$.G("html5_serialize_server_stitched_ad_request");this.WA=this.I$.G("html5_skip_buffer_check_seek_to_head");this.hE=!1;this.Uh=this.I$.G("html5_attach_po_token_to_bandaid");this.NG=g.mi(this.I$.experiments,"html5_max_redirect_response_length")||8192;this.lM=this.I$.G("html5_rewrite_timestamps_for_webm");this.Q$=this.I$.G("html5_only_media_duration_for_discontinuities");this.pC=g.mi(this.I$.experiments,"html5_resource_bad_status_delay_scaling")||1;this.I$.G("html5_onesie_live");this.kV= this.I$.G("html5_onesie_premieres");this.z2=this.I$.G("html5_drop_onesie_for_live_mode_mismatch");this.AY=g.mi(this.I$.experiments,"html5_onesie_live_ttl_secs")||8;this.Qt=g.mi(this.I$.experiments,"html5_attach_num_random_bytes_to_bandaid");this.It=g.mi(this.I$.experiments,"html5_onesie_request_timeout_ms")||3E3;this.C=!1;this.nK=this.I$.G("html5_update_container_type_on_codec_family_change")||this.I$.G("html5_use_update_container_type_codec_family");this.SP=this.I$.G("html5_dont_call_change_type_on_updating"); this.XT=this.I$.G("html5_apply_ssap_slice_info_adjustment");this.YM=this.I$.G("html5_enable_sabr_host_fallback");this.iz=this.I$.G("html5_apply_internal_buffered_ranges_merge_fix");this.b_=!1;this.SE=this.I$.G("html5_ssap_enable_legacy_browser_logic");this.Jw=this.I$.G("html5_ssap_enable_delay_init");this.d1=this.I$.G("html5_gapless_fallback_on_append_error");this.lG=this.I$.G("html5_shorts_stop_request_when_buffer_to_end");this.vX=this.I$.G("html5_vod_stop_request_when_buffer_to_end");this.Su=!1; this.vr=this.I$.G("html5_ssdai_use_post_for_media")&&this.I$.G("gab_return_sabr_ssdai_config");this.CK=this.I$.G("html5_use_post_for_media");this.I6=this.I$.G("html5_use_live_ump_heartbeat");this.useUmp=this.I$.G("html5_use_ump");this.qo=this.Sa=!1;this.hY=this.I$.jZ;this.qF=this.I$.G("html5_reset_primary_stats_on_redirector_failure");this.Rt=this.I$.G("html5_remap_to_original_host_when_redirected");this.sx=this.I5=this.cP=this.T=this.Tz=!1;this.MR=this.I$.G("html5_sabr_support_quality_constraints"); this.Pv=this.I$.G("html5_sabr_fill_quality_constraints");this.Dp=this.I$.G("html5_sabr_remove_all_quality_constraints");this.LW=this.I$.G("html5_iterative_seeking_buffered_time");this.DM=this.I$.G("html5_use_network_error_code_enums");this.Cj=this.I$.G("html5_disable_overlapping_requests");this.Y=!1;this.enableServerDrivenRequestCancellation=this.I$.G("html5_enable_server_driven_request_cancellation");this.Yu=this.I$.G("html5_enable_sabr_request_timing");this.kt=this.I$.G("html5_enable_server_format_filter"); this.G2=this.I$.G("html5_enable_lawnmower");this.q8=this.I$.G("html5_sabr_catch_pushslice_error");this.YN=this.I$.Gk()?g.mi(this.I$.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.E7=g.mi(this.I$.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.JV=g.mi(this.I$.experiments,"html5_normal_latency_mffa_ms")||NaN;this.T2=g.mi(this.I$.experiments,"html5_mffa_ms_proxima_override")||this.JV;this.vx=this.I$.G("html5_live_defrag_only_h264_playbacks");this.mH=this.I$.G("html5_live_defrag_only_h264_formats"); this.xr=this.I$.G("html5_record_now");this.FT=!1;this.rj=g.mi(this.I$.experiments,"html5_drm_byterate_soft_cap");this.Vz=g.mi(this.I$.experiments,"html5_drm_live_byterate_soft_cap");this.QP=this.E5=!1;this.D=this.I$.G("html5_sabr_log_request_creation");this.Vs=this.I$.G("html5_use_buffer_timeline_for_sabr_request_creation");this.VZ=this.I$.G("html5_sabr_report_request_cancellation_info");this.oi=this.yR=this.Zw=!1;this.eg=this.I$.G("html5_spoof_4k");this.Gf=JI(this,"html5_min_media_duration_for_cabr_slice"); this.hm=this.Um?0:JI(this,"html5_min_media_duration_for_append_prop");this.tY=this.I$.G("html5_remove_defrag_without_frame_level_streaming");this.iW=!0;this.FD=this.I$.G("html5_consume_all_buffered_bytes_one_poll");this.r3=this.I$.G("html5_disable_urgent_adaptation");this.zQ=this.I$.G("html5_apply_constraints_in_client_for_sabr");this.Pj=this.I$.G("html5_send_video_playback_ustreamer_config");this.i6=JI(this,"html5_max_discontinuity_rewrite_count");this.vK=JI(this,"html5_fixed_media_duration_for_request"); this.UY=!1;this.W1=JI(this,"html5_sabr_request_limit_per_period");this.Z4=this.W=!1;this.va=this.I$.G("html5_sabr_live_partial_segment");this.gR=this.I$.G("html5_sabr_dispose_media_objects");this.Ic=!1;this.Nw=this.I$.G("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.nA=this.Ra=!1;this.Hv=this.I$.G("html5_enable_d6de4");this.xV=this.I$.G("html5_ssap_keep_only_ssap_eos_check");this.I$.G("html5_high_res_seek_logging");this.R$=this.I$.G("html5_update_buffer_timeline_until_update_end");this.hg= this.Wr=!1;this.jS=this.I$.G("html5_disable_chunk_synchronization_sabr_seek");this.lP=this.I$.G("html5_enable_ssap_multi_audio_format_filtering");this.KT=this.Rj=this.sY=this.lF=this.Uv=this.Qn=!1;this.Mc=g.mi(this.I$.experiments,"html5_override_micro_discontinuities_threshold_ms");this.o6=this.qW=this.ra=this.s5=this.SA=!1;this.ym=this.I$.G("defer_slice_processing_on_healthy_buffer_sabr");this.BK=this.I$.G("html5_byterate_constraints");this.Vw=this.I$.G("html5_refactor_sabr_audio_format_selection_logging"); this.Bv=this.I$.G("enable_sabr_snackbar_message");this.IX=!1;this.I$.G("html5_reinit_source_buffer_by_new_element");this.qf=this.I$.G("html5_refactor_sabr_video_format_selection_logging");this.iQ=this.I$.G("html5_log_slice_info_in_sbu");this.wy=JI(this,"html5_paced_poll_ms");this.Vm=JI(this,"html5_paced_poll_min_health_ms");this.lL=this.I$.G("html5_limit_media_time_adjustment_for_buffer_underrun");this.xu=this.I$.G("html5_disable_sabr_fallback");this.JB=this.I$.G("html5_track_current_buffered_range_at_sync"); this.lf=g.mi(this.I$.experiments,"html5_enable_sps_retry_backoff_ms");this.Ij=0;this.Of=this.I$.G("html5_sabr_live_timing");this.Up=this.I$.G("html5_sabr_enable_server_xtag_selection");this.CG=this.I$.G("html5_send_detailed_network_type");this.JX=this.I$.G("html5_sabr_skip_client_audio_init_selection");this.VR=!1;this.Mq=this.I$.G("html5_count_updating_slice_for_buffer_health");this.Kj=this.I$.G("html5_report_max_buffer_bytes_limit_to_sabr");this.QR=this.I$.G("html5_sabr_live_audio_early_return_fix"); this.Ox=this.I$.G("html5_enable_media_serving_enforcement")}; cAa=function(p,C,V){V=V===void 0?!1:V;C.video.T>1080&&!p.Ts&&(p.Ga=36700160,p.kM=5242880,p.Y_=Math.max(4194304,p.Y_),p.Ts=!0);C.video.T>2160&&!p.aX&&(p.Ga=104857600,p.F$=13107200,p.aX=!0);g.mi(p.I$.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?C.isEncrypted()&&g.Qg()&&g.gm("samsung")&&(g.gm("kant")||g.gm("muse"))&&(p.F$=g.mi(p.I$.experiments,"html5_samsung_kant_limit_max_bitrate")):C.isEncrypted()&&g.Qg()&&g.gm("kant")&&(p.F$=1310720);p.rj!==0&&C.isEncrypted()&&(p.F$=p.rj);p.Vz!==0&&C.isEncrypted()&& V&&(p.F$=p.Vz);C.F$&&(p.uv=Math.max(p.Kq,Math.min(p.Y_,5*C.F$)))}; mN=function(p){return p.T&&p.I5&&p.playbackStartPolicy}; vZ=function(p){return p.C||p.T&&p.kt}; zt9=function(p,C,V,N){p.I5&&(p.playbackStartPolicy=C,p.Lj=V,p.ij=N)}; JI=function(p,C,V){V=V===void 0?0:V;return g.mi(p.I$.experiments,C)||V}; Rte=function(p){var C=p===void 0?{}:p;p=C.yV;var V=C.q3;var N=C.HR;var H=C.Ha;C=C.X_;this.yV=p;this.q3=V;this.HR=N;this.Ha=H;this.X_=C}; cz9=function(p,C){if(C<0)return!0;var V=p.Ha();return C<V||C===V&&!p.yV||C===V&&(p=p.X_())&&C===p.LS?!0:!1}; TB9=function(p,C,V){if(!cz9(p,C))return 0;if(!p.q3||!isNaN(V)&&V>0)return 2;if(C<0)return 1;V=p.Ha();return C<V||C===V&&(p=p.X_())&&C===p.LS&&!p.pending?2:1}; F0=function(p,C,V){g.Y.call(this);this.nS=p;this.policy=C;this.n1=V;this.C=0;this.T=!1;this.delay=new g.N8(this.V,this.policy.YN,this);g.R(this,this.delay)}; nA9=function(p,C){Kw(C.T)||(p.sR=C,p.C=0,g.HF(p.delay))}; etH=function(p,C,V,N,H){var X=this;this.nS=p;this.policy=C;this.n1=V;this.sR=N;this.Bz=H;this.done=!1;this.onTimeout=function(){X.done||(X.done=!0,X.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*Mn(this.n1)));this.timing=new p4(this,{n1:this.n1,RO:this.size,bq:!0,rW:function(){}, BJ:this.policy.V});p=mp(this.sR,this.Bz,this.policy).GU.clone();FP(p);p.path!=="/videogoodput"&&(p.path="/videogoodput",p.url="");this.location=new lw(p);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=Nx(this.location,this.policy.J,this.timing,this.policy.Kt,{});setTimeout(this.onTimeout,1E4)}; Pdv=function(p,C,V){var N=p.r9();if(p.isComplete()||!N||p.info.sR.Bz(C,V)||N<2)return 0;p=Tn(V,vR(p.info.sR,!0,C));return p.T||p.timedOut||p.started?0:2}; w_X=function(p,C,V){if(!(C.CA&&p.isComplete()&&p.canRetry()&&p.info.sR.Bz(C,V))||p.info.sR.J)return 0;p=Tn(V,vR(p.info.sR,!1,C));return p.C+C.CA*ouH(p,!0)>(0,g.Ip)()?0:1}; SX=function(p,C,V,N,H,X,d,a,E,l,t,c,T,M){M=M===void 0?null:M;g.Y.call(this);var J=this;this.nS=p;this.policy=C;this.videoTrack=V;this.audioTrack=N;this.S=H;this.T=X;this.timing=d;this.W=a;this.schedule=E;this.hk=l;this.V=t;this.a$=c;this.Hd=T;this.TU=M;this.b_=!1;this.Mf="";this.Vv=null;this.kq=NaN;this.sY=!1;this.C=null;this.mf=this.Z=NaN;this.bL=this.Y=0;this.logger=new g.HI("dash");this.Sr={fP:function(S,D){return J.fP(S,D)}}; this.policy.Qt>0&&(this.Mf=g.OI(this.policy.Qt));this.policy.YN&&(this.J=new F0(this.nS,this.policy,this.schedule),g.R(this,this.J))}; gAs=function(p,C,V){var N=C.C?C.C.T.sR:C.T.sR;var H=p.S,X;(X=!p.policy.Rt)||(X=So(N.T)===So(N.V));X?N=!1:(H=Tn(H,So(N.V)),X=6E4*Math.pow(H.S,1.6),(0,g.Ip)()<H.C+X?N=!1:(H.C=(0,g.Ip)(),H.S+=1,N.T=N.V.clone(),N=!0));N&&p.nS.k_("hostch",{},!0);if($IX(p,C,V)){V=p.D(C,V);if(p.C){var d=V.wV[0].T.info.id;N=p.T;H=V.wV[0].LS;N=H<0&&!isNaN(N.W)?N.W:H;H=yN(p.T,V.wV[0].Qi,N);var a=C===p.audioTrack?1:2,E=V.wV[0].T.info.o$;X=d.split(";")[0];a:{var l=p.T;if(l.T){var t=l.T.xB.event;if(l.T.LS===N){l=t==="predictStart"? void 0:l.T.xB.event;break a}if(l.T.LS===N-1){l=t==="start"||t==="continue"?t:void 0;break a}}l=void 0}if(p.policy.vr&&p.T.C!==0){var c=p.C.i5(H,N,d,a,E,l);N<0&&a===2&&qx(p.T,0,0,!0);if(c){var T;d=((T=c.eS)==null?void 0:T.w2)||"";var M;T=((M=c.eS)==null?void 0:M.gs)||-1;p.nS.k_("sdai",{ssdaiinfo:"1",ds:d,skipsq:T,itag:X,f:E,sg:N,st:H.toFixed(3)});V.S=c}}else if(M=p.C.UI(H,N,d,a,E,l),N<0&&a===2&&qx(p.T,0,0,!0),M){T={dec_sq:N,itag:X,st:H.toFixed(3)};if(p.policy.eM&&C.isRequestPending(N-1)){p.nS.k_("sdai", {wt_daistate_on_sg:N-1});return}p.nS.k_("sdai",T);M&&(V.T=new g.v1(M));p.policy.V&&(M=V.sR.IV("id")||"",T=((c=V.T)==null?void 0:c.get("id"))||"",M!==T&&p.nS.k_("stmidmismatch",{cid:M,aid:T}))}else p.T.C!==5&&p.nS.k_("sdai",{nodec_sq:N,itag:X,st:H.toFixed(3)})}p.policy.Om&&V.wV[0].LS!==-1&&V.wV[0].LS<p.hk.AE&&(V=C.T.P8(p.hk.AE,!1));a6S(C,LJX(p,V));U4(p.timing);var J;(J=p.J)==null||nA9(J,V.sR)}}; $IX=function(p,C,V){if(p.policy.FT)return!1;var N;var H=p.T,X=((N=C.C)==null?void 0:N.LS)||-1;H.C===3&&X+1>=H.S?(H.k_("sdai",{haltrq:X+1,est:H.S}),N=!1):N=H.C!==2;if(!N||!F6(C.C?C.C.T.sR:C.T.sR,p.policy,p.S,p.nS.kh())||p.nS.isSuspended&&(!JR(p.schedule)||p.nS.PJ))return!1;if(p.policy.S&&Uj>=5)return g.HF(p.nS.Zb),!1;if(p.hk.isManifestless){if(C.V.length>0&&C.C&&C.C.LS===-1||C.V.length>=p.policy.oa||!p.policy.mO&&C.V.length>0&&!p.policy.J.q3)return!1;if(C.D)return!p.hk.isLive||!isNaN(p.kq)}if(f6e(C))return p.logger.debug("Pending request with server-selectable format found"), !1;if(!C.C){if(!C.T.rI())return!1;gS(C,p.nS.getCurrentTime())}if(rS(C)&&(C.gP()!==rS(C)||p.nS.isSuspended))return!1;H=(N=p.policy.fW)&&!C.V.length&&sp(C,!0)<Math.min(N,sp(V));N=C.V.length+V.V.length;X=!p.policy.Cj&&((C.V.length?C.V[0].GC():!1)||(V.V.length?V.V[0].GC():!1)||p.hk.isLive);(H||X)&&--N;if(N+1>=p.policy.Lw)return!1;N=C.C;if(!N)return!0;N.type===4&&N.T.rI()&&(C.C=g.wY(N.T.Nz(N)),N=C.C);if(!N.Vo()&&!N.T.pw(N))return!1;X=p.hk.EO||p.hk.S;if(p.hk.isManifestless&&X){X=C.T.index.Ha();var d=V.T.index.Ha(); X=Math.min(X,d);if(C.T.index.b5()>0&&X>0&&N.LS>=X)return C.Sa=X,V.Sa=X,!1}if(N.T.info.audio&&N.type===4||N.Vo())return!1;X=!C.W&&!V.W;if(H=!H)H=N.zM,H=!!(V.C&&!hI(V,V.C)&&V.C.zM<H);d=C===p.videoTrack&&p.policy.Sa;return H&&(!p.hk.isManifestless||V.C&&V.C.zM&&N.zM)&&X&&!d||p.policy.ER&&!C.W&&V.W?!1:yv(N)&&N.zM>WJy(p,C)?(WJy(p,C),!1):(p=C.NW)&&p.isLocked()?!1:!0}; WJy=function(p,C){var V=p.T;V=V.T?V.T.xB:null;if(p.policy.Sa&&V)return V.startSecs+V.uc+15;C=Lc(p.nS,C);p.policy.Hc>0&&(V=((0,g.Ip)()-p.nS.Z$)/1E3,C=Math.min(C,p.policy.Hc+p.policy.AX*V));V=p.nS.getCurrentTime()+C;return p.policy.bv&&(C=QMa(p.nS)+p.policy.bv,C<V)?(p.nS.k_("mrl",{ori:V,mod:C},!0),p.policy.Zq&&(p=p.nS,V=(0,g.Ip)(),p.Z$=V),C):V}; rlH=function(p,C,V){if(V!==0){a:if(C=C.info,V=V===2,C.T)C=null;else{var N=C.wV[0];if(C.range)var H=Z0(C.range.start,Math.min(4096,C.V));else{if(C.C&&C.C.indexOf("/range/")>=0||C.sR.IV("defrag")==="1"||C.sR.IV("otf")==="1"){C=null;break a}H=Z0(0,4096)}H=new oZ([new fp(5,N.T,H,"createProbeRequestInfo"+N.W,N.LS)],C.C);H.Bz=V;H.T=C.T;C=H}C&&LJX(p,C)}}; LJX=function(p,C){p.nS.nz(C);var V=pSy(C),N=p.nS.rM();V={n1:p.schedule,RO:V,sP:xtX(p.W,V),Ti:O9(C.wV[0]),bq:Kw(C.sR.T),BJ:p.policy.V,rW:function(d,a){p.nS.TP(d,a)}}; if(p.schedule.C.Y){var H,X;V.v_=(((H=p.videoTrack.T)==null?void 0:H.info.F$)||0)+(((X=p.audioTrack.T)==null?void 0:X.info.F$)||0)}p.Vv&&(V.LS=C.wV[0].LS,V.kq=C.kq,V.Vv=p.Vv);N={eA:CbY(C,p.nS.getCurrentTime()),gA:p.policy.f9&&xE(C)&&C.wV[0].T.info.video?JAS(p.V):void 0,Oy:p.policy.Sa,poToken:p.nS.Ib(),z7:p.nS.qP(),Mf:p.Mf,mf:isNaN(p.mf)?null:p.mf,TU:p.TU,Hd:p.Hd,bL:p.bL,x3:N};return new P3(p.policy,C,V,p.S,function(d,a){try{a:{var E=d.info.wV[0].T,l=E.info.video?p.videoTrack:p.audioTrack;if(!(d.state>= 2)||d.isComplete()||d.r9()||!(!p.nS.Hr||p.nS.isSuspended||sp(l)>3)){var t=Pdv(d,p.policy,p.S);t===1&&(p.sY=!0);rlH(p,d,t);if(d.isComplete()||d.fS()&&a<3){if(p.policy.V){var c=d.timing.cK();c.rst=d.state;c.strm=d.xhr.hV();c.cncl=d.xhr&&d.uJ.S?1:0;p.nS.k_("rqs",c)}d.JN&&p.nS.k_("sbwe3",{},!0)}if(!p.fS()&&d.state>=2){Rga(p.timing,d,E);var T=p.nS;p.mf&&d.aY&&T&&(p.mf=NaN,p.nS.ir(d.aY),p.nS.kW(),p.nS.k_("cabrUtcSeek",{mediaTimeSeconds:d.aY}));d.PC&&(d.Rc>0&&p.nS.k_("sError",{errorHttpResponseCode:d.Rc.toString()}), p.mf&&d.PC&&!d.PC.action&&(p.nS.Jx(p.mf),p.mf=NaN,p.nS.k_("cabrUtcSeekFallback",{targetUtcTimeSeconds:p.mf})));d.e6&&p.nS.aA(d.e6);p.policy.I6&&(p.bL=d.bL);if(d.state===3){Ep(l,d);xE(d.info)&&KA(p,l,E,!0);if(p.C){var M=d.info.UI();M&&p.C.x9(d.info.wV[0].LS,E.info.id,M)}p.nS.f7()}else if(d.isComplete()&&d.info.wV[0].type===5){if(d.state!==4)d.Ad()&&p.nS.handleError(d.LO(),d.BP());else{var J=(d.info.wV[0].T.info.video?p.videoTrack:p.audioTrack).V[0]||null;J&&J instanceof P3&&J.r9()&&J.RA(!0)}d.dispose()}else{d.Ad()|| BsY(p,d);var S;((S=d.pQ)==null?0:S.itagDenylist)&&p.nS.M4(d.pQ.itagDenylist);if(d.state===4)G5e(p,d),p.T&&L4v(p.T,d.info,p.C);else if(p.policy.Kt&&d.Lp()&&!d.isComplete()&&!G5e(p,d)&&!d.Ad())break a;d.Ad()&&(pke(p,d),isNaN(p.mf)||(p.nS.Jx(p.mf),p.mf=NaN));p.policy.wy&&!d.isComplete()?CxX(p.nS):p.nS.f7();var D=w_X(d,p.policy,p.S);rlH(p,d,D)}}}}}catch(Z){a=p.b_?1:0,p.b_=!0,d=Ir(a),a=bv(Z,a),p.nS.handleError(a.errorCode,a.details,a.severity),d||p.nS.H$()}},N)}; BsY=function(p,C){if(C.C6&&C.state>=2&&C.state!==3){var V=C.xhr.getResponseHeader("X-Response-Itag");if(V){p.logger.debug(function(){return"Applying streamer-selected format "+V}); var N=Mwe(p.V,V),H=C.info.V;H&&(H-=N.EB(),N.V=!0,C.info.wV[0].T.V=!1,lWY(C,N.ZU(H)),Dp(p.nS,p.videoTrack,N),OfY(p.videoTrack,N),p.nS.bd(N.info.video.quality),(H=C.eh())&&N.info.lastModified&&N.info.lastModified!==+H&&Ep(p.videoTrack,C))}else C.C6=!1}}; pke=function(p,C){var V=C.info.wV[0].T,N=C.LO();if(Kw(V.sR.T)){var H=g.vy(C.FF(),3);p.nS.k_("dldbrerr",{em:H||"none"})}H=C.info.wV[0].LS;var X=yN(p.T,C.info.wV[0].Qi,H);N==="net.badstatus"&&(p.Y+=1);if(C.canRetry()&&j$9(p.nS)){if(!(C.info.sR.C>=p.policy.Hn&&p.C&&C.info.isDecorated()&&N==="net.badstatus"&&p.C.h7(X,H))){H=(V.info.video&&V.sR.C>1||C.zI===410||C.zI===500||C.zI===503)&&!(kd(p.V.W).size>0)&&!Kw(V.sR.T);X=C.BP();var d=V.info.video?p.videoTrack:p.audioTrack;H&&(X.stun="1");p.nS.handleError(N, X);p.fS()||(H&&(p.logger.debug(function(){return"Stunning format "+V.info.id}),n4(p.V,V)),Ep(d,C),p.nS.f7())}}else d=1,p.C&&C.info.isDecorated()&&N==="net.badstatus"&&p.C.h7(X,H)&&(d=0),p.hk.isLive&&C.LO()==="net.badstatus"&&p.Y<=p.policy.uM*2?(pPL(p.hk),p.hk.EO||p.hk.isPremiere?Q7(p.nS,0,{NZ:"badStatusWorkaround"}):p.hk.S?Q7(p.nS,p.hk.vr,{NZ:"badStatusWorkaround", zR:!0}):uQ(p.nS)):p.nS.handleError(N,C.BP(),d)}; G5e=function(p,C){if(p.policy.useUmp&&C.fS())return!1;try{var V=C.info.wV[0].T,N=V.info.video?p.videoTrack:p.audioTrack;if(p.hk.isManifestless&&N){p.Y=0;N.D&&(C.fS(),C.isComplete()||C.Lp(),N.D=!1);C.q7()&&p.nS.aF.N3(1,C.q7());var H=C.b5(),X=C.D0();F1(p.hk,H,X)}if(C.info.Ti()&&!kE(C.info))for(var d=g.F(C.iT()),a=d.next();!a.done;a=d.next())l6u(N,a.value);for(p.nS.getCurrentTime();N.V.length&&N.V[0].state===4;){var E=N.V.shift();EAu(N,E);N.Y_=E.h4()}N.V.length&&EAu(N,N.V[0]);var l=!!rS(N);l&&C instanceof em&&(V.info.DQ()?bIa(p.timing):IWj(p.timing));return l}catch(t){C=C.BP();C.origin="hrhs";a:{p=p.nS;V=t;if(V instanceof Error){C.msg||(C.msg=""+V.message);C.name||(C.name=""+V.name);if(V instanceof g.Bw&&V.args)for(N=g.F(Object.entries(V.args)),H=N.next();!H.done;H=N.next())X=g.F(H.value),H=X.next().value,X=X.next().value,C["arg"+H]=""+X;g.eG(V);if(V.level==="WARNING"){p.Ta.wP(C);break a}}p.handleError("fmt.unplayable",C,1)}return!1}}; VQv=function(p){var C=p.videoTrack.T.index;p.Vv=new Rte({yV:p.policy.yV,q3:p.policy.J.q3,HR:C.Ve(),Ha:function(){return C.Ha()}, X_:function(){return C.X_()}})}; KA=function(p,C,V,N){if(!(V.rI()||V.N$()||V.V||!F6(V.sR,p.policy,p.S)||V.info.o$==="f"||p.policy.T)){if(N){N=p.W;var H=V.info;N=Y9y(N,H.video?N.policy.l3:N.policy.KM,H.F$)}else N=0;N=V.ZU(N);p=LJX(p,N);kE(N)&&a6S(C,p);V.V=!0}}; Zp=function(p,C,V,N,H,X,d,a){g.Y.call(this);var E=this;this.nS=p;this.wY=C;this.videoTrack=V;this.audioTrack=N;this.hk=H;this.Z=X;this.isAudioOnly=d;this.D=a;this.C=xB;this.sY=!1;this.logger=new g.HI("sabr");this.J=this.b_=this.a$=!1;this.videoInfos=this.W=this.Z.videoInfos;this.V=this.Vn=this.Z.T;this.T=new At(C,X,function(l,t){E.nS.k_(l,t)}); this.wY.JX||NbV(this);this.isAudioOnly&&HTv(this,this.hk.T["0"])}; XkV=function(p,C){var V=[];C=g.F(C);for(var N=C.next();!N.done;N=C.next())V.push(g.VE(N.value,p.hk.p4));return V}; HTv=function(p,C,V){C!==p.S&&(p.S&&(p.sY=!0),p.S=C,p.q4(C,p.videoTrack,V))}; s$H=function(p,C){p.logger.debug("setConstraint: "+dH(C));vZ(p.wY)&&(p.b_=C.reason==="m"||C.reason==="l"?!0:!1);C.reason==="m"?C.isLocked()&&dhv(p,C.T):iT9(p,C)?hLv(p,C.C,C.T):p.videoInfos=p.W;p.C=C}; iT9=function(p,C){return p.wY.MR&&C.reason==="b"||p.wY.Dp?!1:p.wY.zQ?!0:C.reason==="l"||C.reason==="b"||C.reason==="o"}; agH=function(p,C){return C.isLocked()&&p.T.C||p.C===void 0?!1:C.sE(p.C)}; Ejv=function(p,C){var V,N=(V=p.S)==null?void 0:V.info.video.T;return p.sY?!0:p.S?C!==N?!0:!p.T.C||p.wY.Nw&&p.T.T===p.S.info.itag?!1:!0:!1}; dhv=function(p,C){var V=p.T.T;if(V){p.videoInfos=p.W;var N=g.L0(p.videoInfos,function(H){return H.id===V}); N&&N.video.T===C?p.videoInfos=[N]:(N=p.videoInfos.map(function(H){return H.id}),p.nS.k_("sabrpf",{pfid:""+V, vfids:""+N.join(".")}),hLv(p,C,C),xd(p.T,""))}else hLv(p,C,C)}; hLv=function(p,C,V){p.videoInfos=p.W;p.videoInfos=g.JT(p.videoInfos,function(N){return N.video.T>=C&&N.video.T<=V})}; NbV=function(p){var C=GMY(p.T,p.D);C&&(p.V=[C])}; lgV=function(p,C,V){if(p.wY.JX){if(p.D){var N=g.JT(p.V,function(H){return H.id===p.D}); return Up(N,V).includes(C)}N=g.JT(p.V,function(H){var X;return!((X=H.K4)==null||!X.isDefault)}); if(N.length>0)return Up(N,V).includes(C)}return Up(p.V,V).includes(C)}; Up=function(p,C){return p.map(function(V){return S5(g.VE(V,C))})}; tQQ=function(p){var C;if((C=p.C)==null?0:C.isLocked())return p.videoInfos;var V=kd(p.T);C=g.JT(p.videoInfos,function(N){return N.F$>p.wY.F$?!1:!V.has(N.id)}); BGX(p.T)&&(C=g.JT(C,function(N){return N.video.width<=854&&N.video.height<=480})); return C}; MQS=function(p,C,V,N){var H=p.hk,X=p.Ta.getVideoData(),d=g.pf(X),a=dny({I$:X.K(),Ta:p.Ta,VH:p.VH,wY:p.wY,Z$:p.Z$,MQ:p.MQ,Hb:p.Hb,ys:p.ys,iL:p.iL,isPrefetch:p.isPrefetch,cq:p.cq,sabrLicenseConstraint:X.sabrLicenseConstraint,Q2:p.Q2,Pb:p.Pb,b7:p.b7,n8:p.n8}),E=Mx(X,p.x3,p.nextRequestPolicy,p.nM,p.jN,p.lda);N&&V&&(N=E.p6?E.p6.map(function(S){return S.type}):[],V("ssap",{stmctxt:N.join("_"), unsntctxt:E.Ty?E.Ty.join("_"):""}));N=p.iK;var l=p.fl,t=p.xs;if(l===void 0&&N===void 0){var c;l=c_v(H.p4,(c=p.Z7)==null?void 0:c.video);var T;N=c_v(H.p4,(T=p.Z7)==null?void 0:T.audio)}if(X.TU)var M=X.TU;X={Tv:a,Eh:p.Eh,iK:N,fl:l,xs:t,videoPlaybackUstreamerConfig:M,Fz:E};p.eS&&(X.eS=p.eS);if(d&&C){d=new Map;var J=g.F(H.Wr);for(a=J.next();!a.done;a=J.next())a=a.value,(E=H.Ga[kTV(H,a)]||"")?(d.has(E)||d.set(E,[]),d.get(E).push(a)):V&&V("ssap",{nocid4fmt:(a.itag||"")+"_"+(a.lmt||0)+"_"+(a.xtags||"")}); H=new Map;J=g.F(p.xG);for(a=J.next();!a.done;a=J.next())a=a.value,E=a.startTimeMs||0,c=void 0,T=(c=C)==null?void 0:R8(c,E),c=T.clipId,T=T.SI,c?(H.has(c)||(M=d.get(c)||[],H.set(c,{clipId:c,xG:[],vj:M})),T!==0&&(a.startTimeMs=E-T),H.get(c).xG.push(a)):V&&(c=void 0,V("ssap",{nocid4range:"1",fmt:((c=a.formatId)==null?void 0:c.itag)||"",st:E.toFixed(3),d:(a.durationMs||0).toFixed(3),timeline:fA(C)}));X.lK=[];H=g.F(H.entries());for(d=H.next();!d.done;d=H.next())d=g.F(d.value),d.next(),d=d.next().value, X.lK.push(d);if(p.xG.length&&!X.lK.length){V&&V("ssap",{nobfrange:"1",br:Tbs(p.xG),timeline:fA(C)});return}p.nG&&(X.nG=p.nG);p.yK&&(X.yK=p.yK)}else X.xG=p.xG,X.vj=H.Wr,d&&((J=p.xG)==null?void 0:J.length)>0&&!C&&V&&V("ssap",{bldmistlm:"1"});return X}; c_v=function(p,C){return C?[g.VE(C.info,p)]:[]}; Tbs=function(p){var C="";p=g.F(p);for(var V=p.next();!V.done;V=p.next()){V=V.value;var N=void 0,H=void 0,X=void 0;C+="fmt."+(((N=V.formatId)==null?void 0:N.itag)||"")+"_"+(((H=V.formatId)==null?void 0:H.lmt)||0)+"_"+(((X=V.formatId)==null?void 0:X.xtags)||"")+";st."+(V.startTimeMs||0).toFixed(3)+";d."+(V.durationMs||0).toFixed(3)+";"}return C}; Op=function(p,C,V){var N=this;this.requestType=p;this.sR=C;this.aH=V;this.C=null;this.Sr={Bn_:function(){var H;return(H=N.data)==null?void 0:H.isPrefetch}, jN:function(){var H;return(H=N.data)==null?void 0:H.jN}}}; J_H=function(p,C,V,N,H){H=H===void 0?{}:H;if(N==null?0:N.YM)p.s1=fWX(p,N,H),C.Pb=p.sR.Pb();if(p.Hf())return!0;p.data=C;p.T=MQS(C,V,function(X,d){var a;(a=p.aH)==null||a.Vr(X,d)},N==null?void 0:N.V); if(!p.T)return!1;p.C=g.l8(p.T,HPV);return!0}; fWX=function(p,C,V){C=mp(p.sR,mhS(p,C,V),C);p.Hf()&&C.set("probe","1");return C}; mhS=function(p,C,V){p.Bz===void 0&&(p.Bz=p.sR.Bz(C,V));return p.Bz}; vjS=function(p){var C,V;return((C=p.T)==null?void 0:(V=C.Tv)==null?void 0:V.hZ)||0}; FjL=function(p){var C,V;return!!((C=p.T)==null?0:(V=C.Tv)==null?0:V.Q2)}; S5H=function(p){var C={},V=[],N=[];if(!p.data)return C;for(var H=0;H<p.data.xG.length;H++){var X=p.data.xG[H],d=void 0;V.push("i."+((d=X.formatId)==null?void 0:d.itag)+"_st."+(X.startTimeMs+"_e."+(X.startTimeMs+X.durationMs)+"_d."+X.durationMs)+("_sn."+X.WI)+("_en."+X.nx))}for(H=0;H<p.data.Eh.length;H++){X=p.data.Eh[H];var a=d=void 0,E=void 0,l=void 0;N.push("i."+((d=X.formatId)==null?void 0:d.itag)+"_sn."+X.sequenceNumber+"_sl."+(X.R5||NaN)+"_lb."+X.zK+"_tr.s_"+((a=X.je)==null?void 0:a.wI)+"_d_"+ ((E=X.je)==null?void 0:E.zT)+"_t_"+((l=X.je)==null?void 0:l.Sz)+"_ed_"+X.Cs)}C.ptime=vjS(p);C.rtype=p.requestType;C.brl=V.join(";");C.ps=N.join(";");return C}; yz=function(p,C){this.TN=p;this.cipher=this.TN.exports.AES128CTRCipher_create(C.byteOffset)}; Kjs=function(p){return function(C){return{profile:p,y6:Math.ceil(C.byteLength/16)}}}; q4=function(p,C){this.key=p;this.subtleCrypto=C;this.T=!1}; Dh9=function(p){var C=globalThis.crypto.subtle;C=C===void 0?window.crypto.subtle:C;return Tv(t5(function(){return C.importKey("raw",p,"AES-CTR",!1,["encrypt"]).catch(function(V){return Promise.reject(V.name+": "+V.message)})}),function(V){return new q4(V,C)})}; IB=function(p){this.T=!1;this.C=new Dk(p)}; bQ=function(p,C){this.TN=p;var V=p.s2(C);this.T=new yz(p,V!=null?V:C);V&&p.free(V.byteOffset)}; AI=function(p){g.eG("wasm encryptor failed: "+p);throw p;}; uES=function(p,C){this.key=p;this.T=C}; q5j=function(p,C,V){var N=lt("");C.length<=131072&&ZTa(p)&&(N=MO(N,function(){return UhL(p,C,V)})); C.length<=32768&&(N=MO(N,function(){return fgv(p,C,V)})); return MO(MO(N,function(){return OTV(p,C,V)}),function(){return y_1(p,C,V)})}; y_1=function(p,C,V){var N=lt("");ZTa(p)&&(N=MO(N,function(){return UhL(p,C,V)})); return MO(N,function(){return fgv(p,C,V)})}; ZTa=function(p){if(!p.T)return!1;p=p.T.state();return p.state!=="done"?!1:!p.result.XA||!1}; UhL=function(p,C,V){if(!p.T)return lt("wasm unavailable");p.S||(p.S=MO(Tv(p.T,function(N){return new bQ(N,p.key)}),function(N){return AI(""+N)})); return Tv(p.S,function(N){return MO(N.encrypt(C,V),AI)})}; fgv=function(p,C,V){p.C||(p.C=new IB(p.key));return MO(p.C.encrypt(C,V),AI)}; OTV=function(p,C,V){if(!p.V){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return lt("native encryptor unavailable");p.V=Dh9(p.key)}return MO(Tv(p.V,function(N){return N.encrypt(C,V)}),AI)}; Igj=function(p,C){this.T=p;this.TN=C;this.iv=(0,g.Jt)(f1(16))}; bTS=function(p,C){var V;return g.I(function(N){(0,g.Ip)();V=bj1(p.T);return N.return(V.encrypt(C,p.iv))})}; A_1=function(p,C){var V;return g.I(function(N){(0,g.Ip)();var H=p.T;H.S||(H.S=new ByQ(H.V));V=H.S;return N.return(CVv(V,C,p.iv))})}; ojS=function(p,C,V){var N;return g.I(function(H){(0,g.Ip)();N=bj1(p.T);return H.return(N.decrypt(C,V))})}; oB=function(p){g.Y.call(this);var C=this;this.yn=p;this.T=new Map;this.S=[];this.C=this.yn.experiments.OY("html5_onesie_trusted_hosts_for_all")||!fW();this.Z=g.mi(this.yn.experiments,"html5_onesie_prewarm_interval_ms");this.J=new g.N8(this.D,this.Z,this);this.Y=-1;this.Sr={oQ_:function(){return C.T}, c8x:function(){return C.W}, dRn:function(){return kC9}}; g.R(this,this.J);kFS(this,g.zW("yt-player-bandaid-host"));this.W=this.load();this.Z&&this.W.then(function(){C.D()})}; kFS=function(p,C){var V=C==null?void 0:C.primary;p.V(0,V);V=V?xhV(V):void 0;p.V(2,V);p.V(1,C==null?void 0:C.secondary)}; kk=function(p,C){return new g.v1("https://"+C+p.yn.Kq.baseUrl)}; Y5v=function(p,C){p="https://"+So(C.location)+"/initplayback?c="+Lb(p.yn)+"&owc=1";kv(p,"pw",function(V){V.ht=C.T})}; xk=function(p,C,V,N){kv("https://"+C+"/videoplayback?probe=1",V,function(H){!N.G("html5_onesie_host_racing")||N.videoData.isLivePlayback||N.G("html5_onesie_probe_ec_hosts")||N.oV||N.Q5();p.S.push(H)},function(H){p.S.push(H.details)})}; xhV=function(p){return p.replace(/(\d+)---/g,function(C,V){C=Number(V);return(C===1?2:C-1)+"---"})}; zLv=function(p,C){var V,N,H,X,d,a,E,l;return g.I(function(t){if(t.C==1){V=kk(p,"redirector.googlevideo.com");V.set("alr","yes");V.set("id",""+Math.round(Math.random()*1E5));if(C===1||C===2)V.set("cmo=sensitive_content","yes"),V.set("sc","yes");C===2&&V.set("cmo=td","c.youtube.com");N={format:"RAW",timeout:5E3};return g.y(t,Aw(V.i9(),N),2)}H=t.T;if(H.xhr.status!==200||!H.xhr.responseText)return t.return(Promise.reject(new g.Bw("b204258371_no_host",V.i9(),H.xhr.status)));X=new g.v1(H.xhr.responseText); d=So(X);a=X.get("ms");E=kk(p,d);l=X.get("mm");E.set("ms",a);E.set("mm",l);return d&&o$a(d)?C!==2||s4(d)?t.return(E):t.return(Promise.reject(new g.Bw("b204258371_untrusted",d,a))):t.return(Promise.reject(new g.Bw("b204258371_invalid",d,a)))})}; RLY=function(p){var C=p.S;p.S=[];return C}; o$a=function(p){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(p)}; s4=function(p){var C=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(p)&&!C.test(p)}; njj=function(p,C){this.location=p;this.T=C}; eLe=function(p){this.iF=p;this.C=!1;this.T=[]}; zG=function(p){for(;p.T.length&&!p.T[0].isEncrypted;){var C=p.T.shift(),V=C.videoId,N=C.Qz,H=C.formatId,X=C.buffer;C=C.Nd;if(X)C=void 0,(C=Yk(p.iF.bJ,V))==null||u2(C,N,H,X);else if(C)p.iF.bJ.AF(V,N,H);else if(N=p.iF,N.T[H].zJ=!0,V=Yk(N.bJ,V),V==null?0:V.hc.has(H))V==null||JRj(V,H)}}; g.$he=function(p){this.data=p;this.T=0;this.S=!1;this.V=0;this.error=!1;this.register=this.C=0;if(RB.length===0){RB.length=288;RB.fill(8);for(p=144;p<280;p++)RB[p]=p<=255?9:7;Pxy.length=32;Pxy.fill(5);nA.length=286;nA.fill(0);for(p=261;p<285;p++)nA[p]=Math.floor((p-261)/4);eX[257]=3;for(p=258;p<285;p++){var C=eX[p-1];C+=1<<nA[p-1];eX[p]=C}eX[285]=258;for(p=0;p<30;p++)wkY[p]=p<=3?0:Math.floor((p-2)/2);for(p=PZ[0]=1;p<30;p++)C=PZ[p-1],C+=1<<wkY[p-1],PZ[p]=C}p=100+7*this.data.length;this.data[0]===31&& this.data[1]===139&&(p=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(p)}; g.Bbe=function(p){for(;!p.S&&!p.error;){var C=p;C.S=!!wZ(C,1);switch(wZ(C,2)){case 2:var V=[],N=[];N.length=19;N.fill(0);var H=wZ(C,5)+257;var X=wZ(C,5)+1;for(var d=wZ(C,4)+4,a=0;a<d;a++)N[Lja[a]]=wZ(C,3);N=gjj(N);for(d=H+X;V.length<d;){a=Wjv(C,N);switch(a){case 16:a=V[V.length-1];var E=wZ(C,2)+3;break;case 17:a=0;E=wZ(C,3)+3;break;case 18:a=0;E=wZ(C,7)+11;break;default:E=1}for(;E>0;E--)V.push(a)}V.length!==d?C.error=!0:(X=V.slice(-X),V.length=H,Q$H(C,V,X));break;case 1:Q$H(C,RB,Pxy);break;case 0:r_L(C, C.T&7);V=wZ(C,16);H=wZ(C,16);(V^H)!==65535&&(C.error=!0);C.output.set(C.data.subarray(C.C,C.C+V),C.V);C.C+=V;C.V+=V;break;default:C.error=!0}p.V>p.output.length&&(p.output=new Uint8Array(p.V*2),p.V=0,p.C=0,p.S=!1,p.T=0,p.register=0)}p.output.length!==p.V&&(p.output=p.output.subarray(0,p.V));return p.error?new Uint8Array(0):p.output}; Q$H=function(p,C,V){C=gjj(C);V=gjj(V);for(var N=p.data,H=p.output,X=p.V,d=p.register,a=p.T,E=p.C;;){if(a<15){if(E>N.length){p.error=!0;break}d|=(N[E+1]<<8)+N[E]<<a;E+=2;a+=16}var l=C[d&127];if(l<0)for(d>>=7;l<0;)l=C[(d&1)-l],d>>=1;else d>>=l&15;a-=l&15;l>>=4;if(l<256)H[X++]=l;else if(p.register=d,p.T=a,p.C=E,l>256){d=eX[l];d+=wZ(p,nA[l]);E=Wjv(p,V);a=PZ[E];a+=wZ(p,wkY[E]);if(GCH&&d<a)a=X-a,H.copyWithin(X,a,a+d);else for(E=X+d,l=X;l<E;l+=4)H[l]=H[l-a],H[l+1]=H[l-a+1],H[l+2]=H[l-a+2],H[l+3]=H[l-a+3]; X+=d;d=p.register;a=p.T;E=p.C}else break}p.V=X}; Wjv=function(p,C){if(p.T<7){var V=p.data,N=p.C;N>V.length&&(p.error=!0);p.register|=(V[N+1]<<8)+V[N]<<p.T;p.C+=2;p.T+=16}V=C[p.register&127];if(V>=0)return r_L(p,V&15),V>>4;for(r_L(p,7);V<0;)V=C[wZ(p,1)-V];return V>>4}; wZ=function(p,C){for(;p.T<C;){if(p.C>=p.data.length)return p.error=!0,0;p.register|=p.data[p.C++]<<p.T;p.T+=8}var V=p.register&(1<<C)-1;p.register>>=C;p.T-=C;return V}; r_L=function(p,C){p.T-=C;p.register>>=C}; gjj=function(p){for(var C=[],V=g.F(p),N=V.next();!N.done;N=V.next())N=N.value,C[N]||(C[N]=0),C[N]++;var H=C[0]=0;V=[];var X=0;N=0;for(var d=1;d<C.length;d++)C[d]?N=d:C[d]=0,H=H+C[d-1]<<1,V[d]=H,d>7&&(X+=C[d]);for(H=1;H<X;)H<<=1;C=128;N=new Int16Array(128+(H+N)*2);for(X=0;X<p.length;X++)if(d=p[X]){for(var a=V[d]++,E=H=0;E<d;E++)H=H<<1|a>>E&1;a=X<<4|d;if(d<=7)for(E=1<<7-d;E--;)N[E<<d|H]=a;else{E=H&127;d-=7;for(H>>=7;d--;){N[E]||(N[E]=-C,C+=2);var l=H&1;H>>=1;E=l-N[E]}N[E]=a}}return N}; p3X=function(p){var C,V,N,H,X,d,a;return g.I(function(E){switch(E.C){case 1:if(!("DecompressionStream"in window))return E.return(g.Bbe(new g.$he(p)));C=new DecompressionStream("gzip");V=C.writable.getWriter();V.write(p);V.close();N=C.readable.getReader();H=new o4([]);case 2:return g.y(E,N.read(),5);case 5:X=E.T;d=X.value;if(a=X.done){E.EY(4);break}H.append(d);E.EY(2);break;case 4:return E.return(H.AB())}})}; $k=function(p,C){this.T=p;this.TN=C}; CTS=function(p){return MO(MO(t5(function(){return Tv(p.TN,function(C){return p.Oe(p.T,C)})}),function(){return p.g4(p.T)}),function(){return p.l2(p.T)})}; j8H=function(p,C){return CTS(new $k(p,C))}; HcY=function(p){vI.call(this,"onesie");this.bJ=p;this.T={};this.V=!0;this.S=null;this.queue=new eLe(this);this.W={};this.Y=pVX(function(C,V){var N=this;return function X(){var d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au;return lje(X,function(W){switch(W.C){case 1:W.Y=0;W.S=2;N.bJ.aR();d=function(e){return function(B){throw{name:e,message:B};}}; a=C.AB();g.vv(W,4,5);if(!V){W.EY(7);break}return hXS(W,MO(VmY(N.bJ,a,N.iv),d("DecryptError")).wait(),8);case 8:E=W.T;case 7:if(!N.bJ.enableCompression){W.EY(9);break}return hXS(W,MO(j8H((c=E)!=null?c:a,N.bJ.K().I5),d("DecompressError")).wait(),10);case 10:l=W.T;case 9:t=HJ((M=(T=l)!=null?T:E)!=null?M:a,Gcu);case 5:g.KY(W,0,2);if(S=(J=N.bJ.K())==null?void 0:J.TN)((D=E)==null?void 0:D.buffer)===S.exports.memory.buffer&&S.free(E.byteOffset),((Z=l)==null?void 0:Z.buffer)===S.exports.memory.buffer&&S.free(l.byteOffset); g.Dj(W,6);break;case 4:throw q=f=g.Sa(W),new qD("onesie.response.parse",{name:(P=q.name)!=null?P:"unknown",message:(VL=q.message)!=null?VL:"unknown",wasm:((A=N.bJ.K())==null?0:A.TN)?((z=N.bJ.K())==null?0:(Q=z.TN)==null?0:Q.XA)?"1js":"1":"0",enc:N.V,gz:N.bJ.enableCompression,webcrypto:!!fW()});case 6:return NSX(t),au=g.wc(t.body),W.return(au);case 2:g.KY(W),g.Dj(W,0)}})}()})}; X3y=function(p){var C=p.queue;C.T.length&&C.T[0].isEncrypted&&!C.C&&(C.T.length=0);C=g.F(Object.keys(p.T));for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=p.T[V];if(!N.zJ){var H=p.queue;H.T.push({videoId:N.videoId,formatId:V,isEncrypted:!1});H.C||zG(H)}}}; ic1=function(p,C){var V=C.getLength(),N=!1;switch(p.S){case 0:p.bJ.G("html5_future_onesie_ump_handler_on_player_response")?MO(Tv(p.Y(C,p.V),function(H){dlv(p.bJ,H)}),function(H){p.bJ.Du(H)}):p.aR(C,p.V).then(function(H){dlv(p.bJ,H)},function(H){p.bJ.Du(H)}); break;case 2:p.ZE("ormk");C=C.AB();p.queue.decrypt(C);break;default:N=!0}p.bJ.Cp&&p.bJ.k_("ombup","id.11;pt."+p.S+";len."+V+(N?";ignored.1":""));p.S=null}; NSX=function(p){if(p.QO!==1)throw new qD("onesie.response.badproxystatus",{st:p.QO,webcrypto:!!fW(),textencoder:!!g.xH.TextEncoder});if(p.Yc!==200)throw new qD("onesie.response.badstatus",{st:p.Yc});}; hWV=function(p){return new Promise(function(C){setTimeout(C,p)})}; s81=function(p,C){var V=p.K();V=p.QZ&&V.G("html5_onesie_preload_use_content_owner");var N=p.nF,H=Wb(C.yn.experiments,"debug_bandaid_hostname");if(H)C=kk(C,H);else if((V===void 0?0:V)&&(N==null?0:N.url)&&!C.C){var X=So(new g.v1(N.url));C=kk(C,X)}else C=(X=C.T.get(0))==null?void 0:X.location.clone();if(C&&p.videoId){X=Nn(p.videoId);p=[];if(X)for(X=g.F(X),V=X.next();!V.done;V=X.next())p.push(V.value.toString(16).padStart(2,"0"));C.set("id",p.join(""));return C}}; aMa=function(p,C,V){V=V===void 0?0:V;var N,H;return g.I(function(X){if(X.C==1)return N=[],N.push(C.load()),V>0&&N.push(hWV(V)),g.y(X,Promise.race(N),2);H=s81(p,C);return X.return(H)})}; Evu=function(p,C,V,N){N=N===void 0?!1:N;p.set("cpn",C.clientPlaybackNonce);p.set("opr","1");var H=C.K();p.set("por","1");fW()||p.set("onem","1");C.startSeconds>0&&p.set("osts",""+C.startSeconds);N||(H.G("html5_onesie_disable_partial_segments")&&p.set("oses","1"),C=H.G("html5_gapless_onesie_no_media_bytes")&&id(C)&&C.QZ,V&&!C?(C=V.audio,p.set("pvi",V.video.join(",")),H.G("html5_onesie_disable_audio_bytes")||p.set("pai",C.join(",")),gB||p.set("osh","1")):(p.set("oad","0"),p.set("ovd","0"),p.set("oaad", "0"),p.set("oavd","0")))}; lMa=function(p,C,V,N,H){H=H===void 0?!1:H;var X="https://youtubei.googleapis.com/youtubei/"+C.Uv.innertubeApiVersion+"/player",d=[{name:"Content-Type",value:"application/json"}];N&&d.push({name:"Authorization",value:"Bearer "+N});d.push({name:"User-Agent",value:g.f0()});g.pO("EOM_VISITOR_DATA")?d.push({name:"X-Goog-EOM-Visitor-Id",value:g.pO("EOM_VISITOR_DATA")}):(V=V.visitorData||g.pO("VISITOR_DATA"))&&d.push({name:"X-Goog-Visitor-Id",value:V});(V=g.pO("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&d.push({name:"X-YouTube-Lava-Device-Context", value:V});(C=Wb(C.experiments,"debug_sherlog_username"))&&d.push({name:"X-Youtube-Sherlog-Username",value:C});p=gc(JSON.stringify(p));return{url:X,Zy:d,postBody:p,fda:H,wB:H}}; chQ=function(p,C,V,N,H,X){var d=g.l8(p,Bg1,p.wB?void 0:V.TN),a={encryptedClientKey:C.T.encryptedClientKey,OD:!0,M0:!0,pR:tmX(V,!!p.wB),xX:V.experiments.OY("html5_use_jsonformatter_to_parse_player_response")};if(p.wB)a.s__=d;else{p=C.encrypt(d);var E;if(((E=V.TN)==null?void 0:E.exports.memory.buffer)===d.buffer&&p.byteOffset!==d.byteOffset){var l;(l=V.TN)==null||l.free(d.byteOffset)}var t;p=((t=V.TN)==null?void 0:t.Zz(p))||p;d=a.yY=p;(0,g.Ip)();d=rN9(new QxX(C.T.V),d,C.iv);a.Pi=d;a.iv=C.iv}C=N.getVideoData(); V=dny({I$:V,Ta:N,VH:C.startSeconds*1E3});H={Aq:a,Tv:V,onesieUstreamerConfig:H,ac:X,Fz:Mx(C)};C.reloadPlaybackParams&&(H.reloadPlaybackParams=C.reloadPlaybackParams);return H}; TSS=function(p,C,V){var N,H,X;return g.I(function(d){if(d.C==1)return N=g.l8(C,Bg1),g.y(d,bTS(V,N),2);if(d.C!=3)return H=d.T,g.y(d,A_1(V,H),3);X=d.T;return d.return({yY:H,encryptedClientKey:V.T.encryptedClientKey,iv:V.iv,Pi:X,OD:!0,M0:!0,pR:tmX(p,!!C.wB),xX:p.experiments.OY("html5_use_jsonformatter_to_parse_player_response")})})}; Mmu=function(p,C,V,N,H,X){var d,a,E,l;return g.I(function(t){if(t.C==1)return g.y(t,TSS(V,p,C),2);d=t.T;a=N.getVideoData();E=dny({I$:V,Ta:N,VH:a.startSeconds*1E3});l={Aq:d,Tv:E,onesieUstreamerConfig:H,ac:X,Fz:Mx(a)};a.reloadPlaybackParams&&(l.reloadPlaybackParams=a.reloadPlaybackParams);return t.return(l)})}; tmX=function(p,C){p=Mn(p.schedule,!0);C=C||!!fW()&&p>1572864;return"DecompressionStream"in window||!C}; gZ=function(p,C){g.Y.call(this);var V=this;this.Ta=p;this.playerRequest=C;this.yn=this.Ta.K();this.videoData=this.Ta.getVideoData();this.logger=new g.HI("onesie");this.Cp=this.yn.Gk();this.uH=this.yn.Kq;this.Yx=new Igj(this.uH.T,this.yn.I5);this.xhr=null;this.state=1;this.PK=new hK;this.GJ=!1;this.playerResponse="";this.Ge=new C4(this);this.iF=new HcY(this);this.bb=this.yn.G("html5_onesie_check_timeout");this.Js=new g.N8(this.nU,500,this);this.DN=new g.N8(this.Q5,1E4,this);this.El=new g.N8(function(){if(!V.isComplete()){var N= LA(V);V.Du(new qD("net.timeout",N))}},g.mi(this.yn.experiments,"html5_onesie_request_timeout_ms")); this.JP=new g.N8(this.oe,2E3,this);this.CT="";this.oV=this.qe=!1;this.kH=this.Ta.qP();this.CF="";this.S3=this.G("html5_onesie_wait_for_media_availability");this.enableCompression=this.ge=this.uU=!1;this.Q9=[];this.u3=this.ox=-1;g.R(this.videoData,this);g.R(this,this.Js);g.R(this,this.DN);g.R(this,this.JP);p=Bb();gB&&p&&!this.yn.G("html5_disable_onesie_media_bytes")&&(this.ZQ=new Map);this.Ls=new Map;this.Zs=new Map;this.NN=new Map;this.Jz=new Map}; Yk=function(p,C){var V;return(V=p.ZQ)==null?void 0:V.get(C)}; mls=function(p,C,V){var N;return g.I(function(H){if(H.C==1)return p.ZE("oprd_s"),Jh1(p)?g.y(H,ojS(p.Yx,C,V),3):(N=p.Yx.decrypt(C,V),H.EY(2));H.C!=2&&(N=H.T);p.ZE("oprd_c");return H.return(N)})}; VmY=function(p,C,V){p.ZE("oprd_s");var N=p.Yx;N.C||(N.C=new uES(N.T.T,N.TN));C=q5j(N.C,C,V);p.ZE("oprd_c");return C}; vvQ=function(p){return p.G("html5_onesie_host_probing")||p.Cp?gB:!1}; dlv=function(p,C){p.ZE("oprr");p.playerResponse=C;p.ge||(p.S3=!1);WZ(p)}; WZ=function(p){if(!p.playerResponse)return!1;if(p.uU)return!0;var C=p.videoData.G("html5_onesie_audio_only_playback")&&hl(p.videoData);if(p.ZQ&&p.S3){if(!p.ZQ.has(p.CT))return!1;var V=p.ZQ.get(p.CT),N;if(N=V){N=!1;for(var H=g.F(V.hc.keys()),X=H.next();!X.done;X=H.next())if(X=V.hc.get(X.value))for(var d=g.F(X.C8),a=d.next();!a.done;a=d.next())a.value.yA>0&&(X.DQ?N=!0:C=!0);N=!(C&&N)}if(N)return!1}p.ZE("ofr");p.PK.resolve(p.playerResponse);if(!p.bb){var E;(E=p.El)==null||E.start();p.DN.start()}return p.uU= !0}; SOH=function(p){if(p.ZQ&&!p.G("html5_onesie_media_capabilities")){p.ZE("ogsf_s");var C=CLs(p.Ta.getVideoData(),function(N,H){p.k_(N,H)}),V=Fv9(p.Ta); C.video=wby(V,C.video);p.ZE("ogsf_c");if(C.video.length)return C;p.k_("ombspf","l."+V.C+";u."+V.T+";o."+V.V+";r."+V.reason)}}; Jh1=function(p,C){return p.G("html5_onesie_sync_request_encryption")||(C==null?0:C.wB)||g.LI(p.yn)&&p.G("html5_embed_onesie_use_sync_encryption")?!1:!!fW()}; LA=function(p){if(!p.MZ)return{};var C=p.MZ.cK(),V;C.d=(V=p.MZ.Vn)==null?void 0:V.c6();C.shost=p.s1;C.ty="o";return C}; Kv9=function(p,C){var V,N;(N=(p=(V=p.ZQ)==null?void 0:V.get(C))==null)||(C=p.V?!1:p.V=!0,N=!C);return!N}; Dla=function(p,C,V,N,H,X,d,a,E,l,t){g.Y.call(this);var c=this;this.Ta=p;this.nS=C;this.policy=V;this.audioTrack=N;this.videoTrack=H;this.hk=X;this.n1=d;this.Y_=a;this.V=E;this.timing=l;this.J=t;this.T=[];this.Y={};this.vr=this.Ga=!1;this.nM=new Set;this.W=this.Wr=this.Z=this.iL=0;this.S=null;this.b_={xG:[],Eh:[]};this.sY={xG:[],Eh:[]};this.Sr={IIa:function(){return c.T}, YxV:function(){return c.Y}, Oka:function(){c.T.length=0}, XPk:function(){return c.nM}, wPe:function(){return c.Z}, HV_:function(T){c.Z=T}, DSo:function(T){c.W=T}}; this.videoData=this.Ta.getVideoData();this.policy.YN&&(this.Sa=new F0(this.nS,this.policy,this.n1),g.R(this,this.Sa))}; Ulu=function(p,C){C=C===void 0?!1:C;if(uBQ(p,C)){p.policy.D&&p.nS.k_("sabrcrq",{create:1});var V=new Op(0,p.hk.J,p);p.policy.W1>0&&p.W++;C=Zc1(p,V,C);p.T.push(C);var N;(N=p.Sa)==null||nA9(N,p.hk.J)}}; OcV=function(p,C){var V=Qz(p);if(p.policy.Vs){var N=p.b_;var H=p.sY}else N=rZ(p,p.audioTrack),H=rZ(p,p.videoTrack);var X=[].concat(g.K(N.xG),g.K(H.xG)),d=[].concat(g.K(N.Eh),g.K(H.Eh)),a=p.nS.rM(),E,l,t=p.Ta,c=p.hk,T=p.C,M=p.nM,J=p.policy,S=p.nS.Z$,D=QMa(p.nS)*1E3,Z=(E=p.Vn)==null?void 0:E.Hb;E=(l=p.Vn)==null?void 0:l.ys;var f;l=Number((f=p.V.S)==null?void 0:f.info.itag)||0;var q;f=Number((q=p.V.Y)==null?void 0:q.info.itag)||0;C={Ta:t,hk:c,xG:X,Eh:d,VH:V,nextRequestPolicy:T,nM:M,wY:J,Z$:S,MQ:D,Hb:Z, ys:E,iL:p.iL,isPrefetch:C||p.nS.isSuspended,nG:l,yK:f,x3:a};V=p.nS.Ib();X=Nn(V);V&&(C.jN=X);if(V=p.Ta.yW())C.Q2=V*1E3;var A;V=p.V;X=V.a$;if((V.wY.C&&V.wY.lP||((A=V.wY)==null?0:A.T&&A.kt))&&!X)for(A=g.F(V.V),d=A.next();!d.done;d=A.next())if(d.value.K4){X=!0;break}A=vZ(V.wY)&&!X?[]:XkV(V,V.V);C.iK=A;A=p.V;vZ(A.wY)&&!A.b_?A=[]:(V=tQQ(A),V.length===0&&(V=A.W),A=XkV(A,V));C.fl=A;p.policy.Kj&&(A=p.audioTrack,A=Lc(p.nS,A)*A.F$,C.b7=A,A=p.videoTrack,A=Lc(p.nS,A)*A.F$,C.n8=A);if(p.policy.W){N=fMj(p,N.xG,H.xG); var z;if(H=(z=p.S)==null?void 0:z.HG(N))C.eS=H}p.policy.b_&&p.T.length>0&&p.T[0].D3()&&(C.lda=p.T[0].Gc());return C}; Qz=function(p){var C,V=p.policy.Y&&((C=p.nS)==null?void 0:C.US());C=p.nS.getCurrentTime()||0;C=yhQ(p,C);var N=p.nS.yZ()||0;C+=N;N=Z6(p.videoData)||g.ud(p.videoData);var H=0;V?(N&&(H=Number.MAX_SAFE_INTEGER),p.videoData.Wr&&(H=Math.ceil(p.videoData.vr*1E3))):H=Math.ceil(C*1E3);return Math.min(Number.MAX_SAFE_INTEGER,H)}; yhQ=function(p,C){if(p.nS.isSeeking())return C;var V=p.Ta.Nt();if(!V)return C;V=V.yx();if(V.length===0||EJ(V,C))return C;if(p.policy.lL&&!ylQ(p.videoTrack,C)&&!ylQ(p.audioTrack,C))return p.nS.k_("sundrn",{b:0,lt:C}),C;for(var N=C,H=Infinity,X=0;X<V.length;X++)if(!(V.start(X)>C)){var d=C-V.end(X);d<H&&(H=d,N=V.end(X))}return N!==C&&(p.nS.k_("sundrn",{bre:N,lt:C}),p.policy.lL&&H>=20)?(p.nS.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),C):N}; fMj=function(p,C,V){var N=p.nS.getCurrentTime()||0;C=qOs(p,C,N);p=qOs(p,V,N);return Math.min(C,p)}; qOs=function(p,C,V){p=p.nS.yZ()||0;C=g.F(C);for(var N=C.next();!N.done;N=C.next()){var H=N.value;N=H.startTimeMs?H.startTimeMs/1E3-p:0;H=N+(H.durationMs?H.durationMs/1E3:0);if(N<=V&&V<=H)return H}return V}; uBQ=function(p,C){if(p.policy.W1>0){var V=Math.floor((0,g.Ip)()/1E4);if(V===p.Wr){if(p.W>=p.policy.W1){if(p.W===p.policy.W1){var N={reason:"toomanyrequests"};N.limit=p.W;p.nS.handleError("player.exception",N);p.W+=1}return!1}}else p.Wr=V,p.W=0}C=!C&&!JR(p.n1);if(p.nS.isSuspended&&(p.nS.PJ||C)||p.a$&&(0,g.Ip)()<p.a$||p.T.length>0&&(!p.policy.b_||p.T.length!==1||!p.T[0].D3()))return!1;var H;if((H=p.hk.J)==null||!F6(H,p.policy,p.Y,p.nS.kh()))return!1;H=p.policy.xV&&p.policy.C&&p.nS.RI();if(tI(p.audioTrack)&& tI(p.videoTrack)&&!H)return!1;if(p.policy.C&&p.D&&!p.nS.RI())return p.Vr("ssap",{pauseontlm:1}),!1;if(BZ(p,p.audioTrack)&&BZ(p,p.videoTrack))return p.policy.V&&p.nS.k_("sabrHeap",{a:""+iQ(p.audioTrack),v:""+iQ(p.videoTrack)}),!1;if(H=p.policy.W)H=!1,p.J.C===2?H=!0:p.J.C===3&&(Qz(p),p.nS.yZ(),C=fMj(p,clL(p.audioTrack,p.nS.isSeeking()).xG,clL(p.videoTrack,p.nS.isSeeking()).xG),V=p.J,C>=V.V?(V.k_("sdai",{haltrq:C,est:V.V}),C=!0):C=!1,C&&(H=!0)),H&&p.policy.D&&p.nS.k_("sabrcrq",{waitad:1});if(H)return!1; if(!p.C)return p.policy.D&&p.nS.k_("sabrcrq",{nopolicy:1}),!0;if(p.Ta.yW())return p.policy.D&&p.nS.k_("sabrcrq",{utc:1}),!0;if(p.V.J)return p.policy.D&&p.nS.k_("sabrcrq",{audio:1}),!0;if(!p.C.targetAudioReadaheadMs||!p.C.targetVideoReadaheadMs)return p.policy.D&&p.nS.k_("sabrcrq",{noreadahead:1}),!0;if(p.policy.Y&&p.nS.US())return p.policy.D&&p.nS.k_("sabrcrq",{seekToHead:1}),!0;H=Math.min(Lc(p.nS,p.audioTrack)*1E3,p.C.targetAudioReadaheadMs);C=Math.min(Lc(p.nS,p.videoTrack)*1E3,p.C.targetVideoReadaheadMs); var X=Math.min(H,C);V=sp(p.audioTrack,!0)*1E3;var d=sp(p.videoTrack,!0)*1E3;if(p.policy.Vs){p.b_=rZ(p,p.audioTrack);p.sY=rZ(p,p.videoTrack);var a=Qz(p);var E=IMH(p.b_.xG,a);a=IMH(p.sY.xG,a)}else E=V,a=d;var l=E<X&&!BZ(p,p.audioTrack);X=a<X&&!BZ(p,p.videoTrack);!(X=!l&&!X)&&(X=p.policy.C)&&(X=p.nS,!X.Ze||SO(X.hk)?X=!1:(l=GG(X.Ze),X=bcy(X,l)));if(X||p.policy.lG&&AhL(p.nS)&&p.videoData.rR()||p.policy.vX&&AhL(p.nS))return!1;p.policy.D&&(X=p.nS.X0(),X.car=E,X.vac=a,X.mar=H,X.mvr=C,X.tar=p.C.targetAudioReadaheadMs, X.tvr=p.C.targetVideoReadaheadMs,X.vbu=sJ(((N=p.Ta.Nt())==null?void 0:N.yx())||null),X.abh=V,X.vbh=d,p.nS.k_("sabrcrq",X));return!0}; rZ=function(p,C){Qz(p);p.nS.yZ();return clL(C,p.nS.isSeeking())}; IMH=function(p,C){var V=0,N=-1;p=g.F(p);for(var H=p.next();!H.done;H=p.next())if(H=H.value,!(H.startTimeMs+H.durationMs<C)){if(N<0&&H.startTimeMs>C||N>=0&&H.WI!==N+1)break;V=H.startTimeMs+H.durationMs;N=H.nx}return Math.max(0,V-C)}; Zc1=function(p,C,V){var N={n1:p.n1,rW:function(E,l){p.Ta.TP(E,l)}, Ti:p.policy.Ic,BJ:p.policy.V};p.n1.C.Y&&(N.v_=(p.videoTrack.T.info.F$||0)+(p.audioTrack.T.info.F$||0));p.policy.Of&&(N.HR=p.audioTrack.T.index.Ve(),N.Ti=!1);var H=mhS(C,p.policy,p.Y)?2:1;H!==p.Z&&(p.Z=H,ovY(p));V=OcV(p,V);if((p.policy.C||p.policy.b_)&&p.policy.V&&V.nM){for(var X=H="",d=g.F(V.nM),a=d.next();!a.done;a=d.next())a=a.value,p.videoData.sabrContextUpdates.has(a)?H+="_"+a:X+="_"+a;p.nS.k_("sabrbldrqs",{ctxts:H,misctxts:X})}J_H(C,V,p.nS.RI(),p.policy,p.Y)||!p.policy.C&&!p.policy.b_||p.nS.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);N=new ZX(p.policy,C,p.hk,p.Y,p,N,p.nS.qP(),p.policy.XT?p.nS.RI():void 0);U4(p.timing);p.policy.D&&p.nS.k_("sabrcrq",{rn:N.ZM(),probe:C.Hf()});return N}; Cu=function(p,C){if(C.fS()||p.fS())p.policy.jS||(p.policy.Y?pu(p.nS):p.nS.f7());else{if(p.policy.V&&C.isComplete()&&C instanceof ZX){var V=p.nS,N=V.k_,H,X,d=Object.assign(C.MZ.cK(),{rst:C.state,strm:C.xhr.hV(),d:(H=C.MZ.Vn)==null?void 0:H.c6(),cncl:C.xhr&&C.uJ.S?1:0,rqb:C.LB,cwt:C.vQ,swt:(X=C.C5)==null?void 0:X.H5});H=Object.assign(S5H(C.info),d);N.call(V,"rqs",H)}if(C.isComplete()&&C.Hf()&&C instanceof ZX)p.policy.qW?C.bE()?(C.dispose(),p.T.length===0?p.nS.f7():(p=p.T[0],p instanceof ZX&&p.r9()&& p.RA(!1))):C.Ad()&&p.nS.handleError(C.LO(),C.BP()):(C.dispose(),p.nS.f7());else{if(C.aB())C instanceof ZX&&Rga(p.timing,C),ovY(p),kJs(p);else if(C.Ad())V=p.Ta.yW(),C instanceof ZX&&FjL(C.info)&&V&&p.nS.Jx(V),C instanceof gZ?p.T.pop():(V=1,C.canRetry()&&j$9(p.nS)&&(xlX(p,C),V=0),p.nS.handleError(C.LO(),C.BP(),V));else{if(p.nS.isSuspended&&!C.isComplete())return;kJs(p)}C.fS()||C instanceof gZ||(C.isComplete()?V=w_X(C,p.policy,p.Y):(V=Pdv(C,p.policy,p.Y),V===1&&(p.Ga=!0)),V!==0&&(N=new Op(1,C.info.sR), N.Bz=V===2,Zc1(p,N)));p.policy.wy&&!C.isComplete()?CxX(p.nS):p.nS.f7()}}}; kJs=function(p){for(;p.T.length&&p.T[0].jh(p.qg());){var C=p.T.shift();YO9(p,C);if(p.policy.W){var V=p;if(!V.policy.Qn&&C.jh(V.qg())){var N=C.ZM();if(V.R$!==N){var H=C.qs();C=H.ox;var X=H.u3;H=H.isDecorated;!V.S||X<0||(V.R$=N,N=yN(V.J,X/1E3,C),X=V.nS.yZ()||0,$nV(V.J,C,N-X,H,V.S))}}}}p.T.length&&YO9(p,p.T[0])}; YO9=function(p,C){var V=new Set(C.yl(p.qg()));V=g.F(V);for(var N=V.next();!N.done;N=V.next()){var H=N.value;if(!(N=!(C instanceof gZ))){N=p.V;var X=N.hk.p4,d=Up(N.videoInfos,X);N=lgV(N,H,X)||d.includes(H)}if(N){N=C.Ux(H,p.qg());if(mij(p.videoData)&&Xz(N[0].T.info.mimeType))break;if((!(p.policy.ym&&N.length>0&&(N[0].T.info.DQ()?sp(p.audioTrack):sp(p.videoTrack))>3)||C.isComplete())&&C.Lp(H,p.qg())){H=C.iT(H,p.qg());if(p.policy.C&&(X=N[0].T.info,(d=p.nS.RI())&&X)){var a=C.Ns();d.api.G("html5_ssap_set_format_info_on_video_data")&& a===lQ(d)&&(X.DQ()?d.Ta.getVideoData().S=X:d.Ta.getVideoData().C=X);if(d=jP(d.timeline,a))if(d=d[0].getVideoData())X.DQ()?d.S=X:d.C=X}H=g.F(H);for(X=H.next();!X.done;X=H.next()){X=X.value;p.policy.V&&C instanceof gZ&&p.nS.k_("omblss",{s:X.info.Zh()});d=X.info.T.info.DQ();var E=X.info.T;if(d){a=void 0;var l=p.V,t=(a=C.Ly(p.qg()))==null?void 0:a.token;l.J=!1;E!==l.Y&&(l.Y=E,l.q4(E,l.audioTrack,t))}else a=void 0,HTv(p.V,E,(a=C.Ly(p.qg()))==null?void 0:a.token);a=d?p.audioTrack:p.videoTrack;C instanceof gZ&&(a.D=!1,C instanceof gZ&&(d?bIa(p.timing):IWj(p.timing)));if(p.policy.q8)try{X0(a,N,X)}catch(c){X=bv(c),p.nS.handleError(X.errorCode,X.details,X.severity),a.H$(),p.SY(!1,"pushSlice"),pu(p.nS)}else X0(a,N,X)}}}}}; xlX=function(p,C){p.policy.b_?p.T.splice(p.T.indexOf(C)).forEach(function(V){V.dispose()}):(p.T.pop(),C==null||C.dispose())}; zWj=function(p,C,V){for(var N=[],H=0;H<p.T.length;H++)C&&p.T[H]instanceof gZ?N.push(p.T[H]):(p.policy.D&&p.nS.k_("sabrcrq",{d:p.T[H].ZM(),src:V}),p.T[H].dispose());p.T=N}; RW1=function(p,C){C&&C.type&&(p.videoData.sabrContextUpdates.set(C.type,C),C.sendByDefault&&p.nM.add(C.type))}; nvH=function(p,C,V){C.Sp(V.Kw,V.version)?p.videoData.Ik=V.version||"":p.nS.k_("ssap",{v:V.version,tlnu:1})}; ovY=function(p){p.nM.clear();if(p.videoData.sabrContextUpdates.size>0)for(var C=g.F(p.videoData.sabrContextUpdates.keys()),V=C.next();!V.done;V=C.next()){V=V.value;var N=void 0;((N=p.videoData.sabrContextUpdates.get(V))==null?0:N.sendByDefault)&&p.nM.add(V)}if(p.policy.b_&&p.T.length)for(C=g.F(p.T),V=C.next();!V.done;V=C.next())(V=V.value.Gc())&&V.type&&V.sendByDefault&&p.nM.add(V.type)}; eWS=function(p){p.policy.VZ&&(p.Vn=void 0,p.iL=0)}; PT9=function(p,C){if(C.Ad()||C.fS()){var V=p.nS,N=V.k_,H=C.state;p=p.qg();var X,d;if((C=(X=C.ZQ)==null?void 0:X.get(p))==null)C=void 0;else{X=0;p=C.yl();for(var a=0;a<p.length;a++){var E=void 0;X+=((E=C.hc.get(p[a]))==null?void 0:E.bytesReceived)||0}C=X}C=(d=C)!=null?d:-1;N.call(V,"sabromb",{s:H,tbytes:C})}else p.T.push(C),C.Q9.push(p),U4(p.timing),p.policy.hg&&C.wC&&p.Ia(C.wC)}; BZ=function(p,C){return p.policy.yR?!p.nS.vP&&rS(C)&&(C.gP()!==rS(C)||p.nS.isSuspended):!1}; w3s=function(p){var C="";p=g.F(p);for(var V=p.next();!V.done;V=p.next()){V=V.value;C+=".cid."+V.clipId;if(V.zf){var N=V.zf;C+=".vid."+N.Nl+(".pst."+N.yy)+(".ps."+N.T0)+(".lst."+N.Re)+(".ld."+N.e7)+(".ls."+N.HY)}V.Tl&&(C+=".nonv."+V.Tl.vu)}return C}; $lL=function(p,C,V,N,H){this.nS=p;this.policy=C;this.schedule=V;this.A7=N;this.Z=H;this.a$=NaN;this.C=this.D=this.S=null;this.T=this.W=this.Y=this.startTimeSecs=NaN;this.V=!1;this.J=NaN}; LvX=function(p,C,V,N,H,X){return C.pk&&C.jZ&&V===3?new $lL(p,C,N,H,X):null}; gvS=function(p,C){if(p.policy.n5){var V=C.info.F$,N=Mn(p.schedule);C=C.index.Ve();V=Math.max(1,N/V);p.J=Math.round(Math.max(((V-1)*C+p.policy.RN)/V,C-p.policy.Ov)*1E3)}}; rhX=function(p,C){var V=Date.now()/1E3,N=V-p.startTimeSecs,H=V-p.Y,X=H>=p.policy.Aa,d=!1;if(X){var a=0;!isNaN(C)&&C>p.W&&(a=C-p.W,p.W=C);a/H<p.policy.Rm&&(d=!0);p.Y=V}V=N>=p.policy.Ov&&!p.V;if(!X&&!V&&Wv1(p,C))return NaN;V&&(p.V=!0);a:{N=d;V=(0,g.Ip)()/1E3-(p.A7.Kd()||0)-p.D.T-p.policy.RN;X=p.C.startTime;V=X+V;if(N){if(isNaN(C)){Vb(p,NaN,"n",C);X=NaN;break a}N=C-p.policy.gh;N<V&&(V=N)}else p.V&&(N=V+p.policy.RN-p.a$+p.policy.O1,isNaN(C)||(N=Math.max(N,Math.min(V,C-p.policy.gh))),V=N);X=V=Math.max(V, X)}p.T=X;if(isNaN(p.T))return p.clear(),NaN;if(!d&&Wv1(p,C))return Q89(p,C),NaN;if(p.T<=p.C.startTime)return Vb(p,NaN,"y",C),p.clear(),NaN;if(!p.Z(p.T,!1))return!Q89(p,C)&&d&&(Vb(p,NaN,"t",C),p.clear()),NaN;d=p.T;Vb(p,d,"s",C);p.clear();return d}; Q89=function(p,C){return p.Z(p.T,!0)?!1:(Vb(p,NaN,"ns",C),p.clear(),!0)}; Wv1=function(p,C){return isNaN(C)?!0:isNaN(p.T)?!1:C<p.T+(p.V?p.policy.gh:p.policy.f5)}; Vb=function(p,C,V,N){var H=p.S.BP();H.ssr_sk=(C*1E3).toFixed(0);H.ssr_t=(p.T*1E3).toFixed(0);H.ssr_r=V;H.ssr_st=(p.startTimeSecs*1E3).toFixed(0);H.ssr_n=(0,g.Ip)().toFixed(0);H.ssr_f=(p.D.T*1E3).toFixed(0);H.ssr_fa=p.V?"1":"0";H.ssr_o=(p.A7.Kd()*1E3||0).toFixed(0);H.ssr_v=(N*1E3).toFixed(0);C=p.C.T.index;C.fk(p.C.LS,!0)&&(H.ssr_ist=(C.getStartTime(p.C.LS)*1E3).toFixed(0),H.ssr_id=(C.getDuration(p.C.LS)*1E3).toFixed(0));p.nS.k_("ssr",H)}; BSj=function(){var p={};if(window.performance){var C=window.performance.memory;C&&(p.jsTotal=C.totalJSHeapSize,p.jsUsed=C.usedJSHeapSize,p.jsLimit=C.jsHeapSizeLimit,p.msTotal=C.totalMediaSourceSize,p.msLimit=C.mediaSourceSizeLimit,p.msUsed=C.usedMediaSourceMemorySize)}var V;if((V=window.h5vcc)==null?0:V.cVal)p.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),p.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),p.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return p}; g.Hu=function(p,C,V,N,H,X,d,a,E,l){a=a===void 0?!1:a;g.Y.call(this);var t=this;this.Ta=p;this.schedule=C;this.policy=V;this.hk=N;this.b_=E;this.VZ=l;this.Hr=null;this.Wr=this.vr=this.Sa=this.vP=0;this.LV=this.PJ=this.isSuspended=!1;this.R$="";this.va={};this.ER=!1;this.qo=0;this.D=null;this.X$=this.Ga=!1;this.Z$=0;this.UY=!1;this.Vn=this.KS=0;this.Hc=null;this.MD=function(){return t.Ta.MD()}; this.timing=new qes(this.VZ);this.Z=new kn1(this.schedule,this.policy);this.kM=new g.N8(this.f7,0,this);this.Wc=new g.N8(this.f7,this.policy.wy,this);this.Zb=new g.N8(this.f7,1E3,this);this.qW=new g.N8(this.f7,void 0,this);this.Qn=new g.N8(this.f7,1E4,this);this.Q$=new g.N8(this.C9_,250,this);this.W=this.currentTime=NaN;this.aF=new dG(5);this.sY=this.timestampOffset=NaN;this.logger=new g.HI("dash");this.wy=Infinity;this.Sr={getAudioTrack:function(){return t.audioTrack}, zNa:function(){return t.videoTrack}, getManifest:function(){return t.hk}, E$n:function(){return t.J}, f7:function(){t.f7()}, VX:function(){t.vP=0;t.VX()}, r6Y:function(c){return Na(t,t.videoTrack,t.Hr.C,c)}}; p=E&&E.yl();E&&(ZIv(E,this.hk,this.policy),this.sY=Date.now());this.T=new p7H(this,this.Z,V,this.hk,H,p);V=Hku(this.T,X,d&&d.id);this.audioTrack=new Vz(this,this.policy,V.audio,this.timing);this.videoTrack=new Vz(this,this.policy,V.video,this.timing);this.videoTrack.S.Vn=this.audioTrack.Sh();this.Y_={updateend:this.uD,error:this.mo$};g.R(this,this.kM);g.R(this,this.Wc);g.R(this,this.Zb);g.R(this,this.qW);g.R(this,this.Qn);V=this.policy.vx&&this.policy.yV?!cOS(this.videoTrack.T.info):!1;this.YM=mF1({q3:this.policy.J.q3|| V,yV:this.policy.yV&&!V,Kt:this.policy.Kt});this.Y=LvX(this,this.policy,this.YM,this.schedule,this.aF,function(c,T){return GJs(t,c,T)}); this.V=new egj(this,this.hk,this.policy,this.videoTrack,this.audioTrack,a,this.Ta.getVideoData().VL());this.BR=new nc(this,this.hk,this.videoTrack,this.audioTrack,this.policy);a=this.policy.Pj?this.Ta.getVideoData().TU:null;this.S=new SX(this,this.policy,this.videoTrack,this.audioTrack,this.va,this.V,this.timing,this.Z,this.schedule,this.hk,this.T,this.Y,V,a);g.R(this,this.S);this.C=new Zp(this,this.policy,this.videoTrack,this.audioTrack,this.hk,H,hl(this.Ta.getVideoData()),d==null?void 0:d.id);g.R(this, this.C);s$H(this.C,X);this.J=new Dla(this.Ta,this,this.policy,this.audioTrack,this.videoTrack,this.hk,this.schedule,this.T,this.C,this.timing,this.V);g.R(this,this.J);this.a$=this.Ta.lJ.wz.qB;this.policy.Y||pIH(this);this.logger.debug("Created")}; pIH=function(p){var C,V;if((C=p.a$)==null?0:(V=C.pQ)==null?0:V.itagDenylist){var N;p.M4((N=p.a$)==null?void 0:N.pQ.itagDenylist)}var H;if((H=p.a$)==null?0:H.playbackStartPolicy){var X,d;zt9(p.policy,(X=p.a$)==null?void 0:X.playbackStartPolicy,3,(d=p.a$)==null?void 0:d.ZM())}if(p.policy.oi){C=p.qg();var a;(V=C?(a=p.a$)==null?void 0:a.Zs.get(C):void 0)&&p.J.x$(V)}if(!p.hk.Z){var E;a=(E=p.a$)==null?void 0:E.WY;(a==null?0:a.LJ)&&(a==null?0:a.RV)&&p.hk.p4&&F1(p.hk,a.LJ,a.RV)}var l;((l=p.a$)==null?0:l.Jz)&& (E=p.a$.Jz.get(p.qg()||""))&&p.hk&&E.formatId&&(p=p.hk.V.get(S5(E.formatId)))&&(p.info.debugInfo=E.debugInfo)}; C2j=function(p,C){if(p.policy.C&&!p.policy.vA)return!1;var V=S5(g.VE(C.T.info,p.hk.p4)),N,H=((N=p.b_)==null?void 0:N.Ux(V))||[];if(H.length===0)return p.k_("ombmsi",{}),!1;H=new oZ(H);if(N=!p.policy.sY||isFinite(p.getCurrentTime())||p.Ta.yW()){a:{N=p.getCurrentTime();H=g.F(H.wV);for(var X=H.next();!X.done;X=H.next())if(X=X.value,X.type===3&&N>=X.Qi&&N<=X.zM){N=!0;break a}N=!1}N=!N}if(N)return p.k_("ostmf",{ct:p.getCurrentTime(),a:C.T.info.DQ()}),!1;(p=p.b_)!=null&&(p.hc.get(V).g3=!0);return!0}; jAy=function(p){if(!p.hk.p4)return!0;var C=p.Ta.getVideoData();if(C.G("html5_skip_live_preroll_onesie")&&X9(p.Ta)||C.G("html5_skip_live_preroll_onesie_post_live")&&X9(p.Ta)&&(C.EO||C.isPremiere))return p.k_("ombpa",{}),!1;var V,N;if(p.policy.z2&&!!((V=p.a$)==null?0:(N=V.WY)==null?0:N.AiV)!==p.hk.EO)return p.k_("ombplmm",{}),!1;V=C.Hc||C.liveUtcStartSeconds||C.o6;if(p.hk.EO&&V)return p.k_("ombplst",{}),!1;if(p.hk.Z)return p.k_("ombab",{}),!1;V=Date.now();return SO(p.hk)&&!isNaN(p.sY)&&V-p.sY>p.policy.AY* 1E3?(p.k_("ombttl",{}),!1):p.hk.AE&&p.hk.S||!p.policy.kV&&p.hk.isPremiere||!(tl(C)===0||p.policy.T&&C.G("html5_enable_onesie_media_for_sabr_proxima_optin"))||C.G("html5_disable_onesie_media_for_mosaic")&&ceV(C)||C.G("html5_disable_onesie_media_for_ssdai")&&C.isDaiEnabled()&&C.enableServerStitchedDai?!1:!0}; VfQ=function(p,C){var V=C.T,N=p.hk.p4;if(jAy(p))if(p.b_&&p.b_.hc.has(S5(g.VE(V.info,N)))){if(N=S5(g.VE(V.info,N)),C2j(p,C)){var H=new oZ(p.b_.Ux(N)),X=function(d){try{if(d.Ad())p.handleError(d.LO(),d.BP()),Ep(C,d),xE(d.info)&&KA(p.S,C,V,!0),p.f7();else if(G5e(p.S,d)){var a;(a=p.V)==null||L4v(a,d.info,p.D);p.f7()}}catch(E){d=bv(E),p.handleError(d.errorCode,d.details,d.severity),p.H$()}}; V.V=!0;kE(H)&&(a6S(C,new em(p.policy,N,H,p.b_,X)),U4(p.timing))}}else p.k_("ombfmt",{})}; dX=function(p,C){C=C||p.videoTrack&&p.videoTrack.C&&p.videoTrack.C.startTime||p.getCurrentTime();var V=Dp,N=p.videoTrack,H=p.T;C=H.nextVideo&&H.nextVideo.index.tU(C)||0;H.Vn!==C&&(H.Wr={},H.Vn=C,zX(H,H.T));C=!H.T.isLocked()&&H.Z>-1&&(0,g.Ip)()-H.Z<H.policy.qq*1E3;var X=H.nextVideo&&ef(H,H.nextVideo.info)*3<Yv(H.sY);if(!C||X)Yd(H),RA(H),H.b_=H.b_||H.nextVideo!==H.C;H.nextVideo&&!H.nextVideo.index.isLoaded()&&(H.Vn=-1);V(p,N,H.nextVideo);Dp(p,p.audioTrack,p.T.V)}; iF=function(p,C){p.PJ=C;p.policy.Sa||(p.logger.debug("Suspended."),p.isSuspended=!0,p.policy.Zw&&(p.Zb.stop(),p.Wc.stop(),p.kM.stop()))}; gSS=function(p,C,V,N){p.policy.W&&p.SY(!1,"rollback");SWe(p.videoTrack,N,V,C);SWe(p.audioTrack,N,V,C);p.policy.o6||(vb(p.hk,N,!0),vb(p.hk,N,!1));p.k_("sdai",{rollbk2_seg:N,rbt:V.toFixed(3),lt:C.toFixed(3)});p.policy.W&&pu(p)}; Ndy=function(p){p.logger.debug("Rebuffering.");p.LV=!0;if(p.policy.X$&&p.Hr){var C,V,N,H;p.k_("lr_rb",{c:p.getCurrentTime(),s:p.isSeeking(),ab:sJ(p.Hr.T.K7()),ala:(C=HZ(p.audioTrack))==null?void 0:C.Zh(),alr:(V=p.audioTrack.C)==null?void 0:V.Zh(),vb:sJ(p.Hr.C.K7()),vla:(N=HZ(p.videoTrack))==null?void 0:N.Zh(),vlr:(H=p.videoTrack.C)==null?void 0:H.Zh()})}p.Ta.kh()!==0&&p.k_("sps_rebuffer",{c:p.getCurrentTime()})}; H4Y=function(p){p.policy.KS=!1;try{p.VX()}catch(C){g.nm(C)}}; XIv=function(p){return p.policy.T&&p.policy.C&&(!rN()&&p.policy.SE||p.policy.Jw)}; hbL=function(p,C,V,N){V=V===void 0?!1:V;N=N===void 0?!1:N;p.policy.Sa&&(p.logger.debug("disable updateMetadataWithoutMediaSource"),p.policy.vr&&p.k_("loader",{setsmb:0}),p.H$(),p.policy.Sa=!1);p.logger.debug("attaching media source");dxs(p,N);if(XIv(p))p.k_("ssap",{delaysb:1}),p.Hr=C;else{if(!XO(C)){var H=rS(p.videoTrack);H=H?H.info.T:p.videoTrack.T;var X=rS(p.audioTrack);X=X?X.info.T:p.audioTrack.T;p.policy.C&&p.k_("ssap",{initsb:1,v:H.info.id,vf:H.info.o$,a:X.info.id,af:X.info.o$});Kzu(C,H.info, X.info,p.policy.cV)}i4a(p,C,V,N);try{p.f7()}catch(d){g.nm(d)}}}; i4a=function(p,C,V,N){V=V===void 0?!1:V;N=N===void 0?!1:N;N4(p.videoTrack,C.C||null,N);N4(p.audioTrack,C.T||null,N);p.Hr=C;p.Hr.S=!0;V||p.resume();g.TB(C.T,p.Y_,p);g.TB(C.C,p.Y_,p)}; dxs=function(p,C){C=C===void 0?!1:C;p.Hr&&p.Hr.T&&p.Hr.C&&(My(p.Hr.T,p.Y_,p),My(p.Hr.C,p.Y_,p));N4(p.audioTrack,null,C);N4(p.videoTrack,null,C);p.Hr&&(p.Hr.S=!1);p.Hr=null}; sAj=function(p){p.Hr&&p.Hr.gI()&&(p.Gh(),p.policy.Wt&&p.handleError("fmt.unplayable",{unexpected:1},1))}; EdQ=function(p,C){if(!p.fS())if(p.policy.T){if(!agH(p.C,C)){var V=p.C.C;s$H(p.C,C);var N=!1;N=C.isLocked()&&C.reason==="m"&&Ejv(p.C,C.T);var H=p.policy.qn&&C.reason==="l";V=V.T>C.T&&C.reason==="b";N||H||V?(p.Ta.wP({reattachOnConstraint:N?"u":H?"drm":"perf",lo:C.C,up:C.T}),p.policy.Nw||(p.C.T.C=!1)):(p.policy.Nw&&(p.C.T.C=!1),pu(p))}}else if(!X7y(p.T,C)&&p.videoTrack){p.logger.debug(function(){return"Setting constraint: r="+C.reason+" u="+C.T}); V=p.T.T;aXu(p,ikv(p.T,C));dX(p);N=C.isLocked()&&C.reason==="m"&&p.T.b_;H=p.policy.qn&&C.reason==="l"&&cZ(p.videoTrack);V=V.T>C.T&&C.reason==="b";var X=p.T.UY&&!rN();N||H||V||X?p.Ta.wP({reattachOnConstraint:N?"u":H?"drm":X?"codec":"perf"}):pu(p)}}; lX1=function(p,C,V){if((!p.Hr||j6(p.Hr)&&!p.policy.Q1)&&!p.BR.isSeeking()&&(p.policy.T||cZ(C)&&C.T.rI()&&p.T.a$)){var N=p.getCurrentTime()+RPQ(p.Z,C,V);p.logger.debug(function(){return"Clearing back to "+N.toFixed(3)}); vAL(C,N)}}; aXu=function(p,C){C&&(p.logger.debug(function(){return"Logging new format: "+iX(C.video.info)}),tfs(p.Ta,new b2(C.video,C.reason))); if(p.T.R$){var V=EBu(p.T,"a");p.Ta.Sg(new b2(V.audio,V.reason))}}; pu=function(p){g.HF(p.kM)}; CxX=function(p){p.policy.wy&&p.policy.Kt&&Math.min(mIV(p.videoTrack),mIV(p.audioTrack))*1E3>p.policy.Vm?g.HF(p.Wc):p.f7()}; ctv=function(p,C){var V=(0,g.Ip)()-C,N=sp(p.audioTrack,!0)*1E3,H=sp(p.videoTrack,!0)*1E3;p.logger.debug(function(){return"Appends paused for "+V}); if(p.policy.V&&(p.k_("apdpe",{dur:V.toFixed(),abuf:N.toFixed(),vbuf:H.toFixed()}),mN(p.policy))){var X=Yv(p.Z);p.k_("sdps",{ct:C,ah:N.toFixed(),vh:H.toFixed(),mr:nES(p.Z,p.LV,X),bw:X.toFixed(),js:p.isSeeking(),re:+p.LV,ps:(p.policy.Lj||"").toString(),rn:(p.policy.ij||"").toString()})}}; TdL=function(p){if(p.policy.C&&M4(p.videoTrack)&&M4(p.audioTrack))return"ssap";if(f6e(p.videoTrack))return p.logger.debug("Pausing appends for server-selectable format"),"ssf";if(p.policy.R$&&I6v(p.videoTrack)&&I6v(p.audioTrack))return"updateEnd";if(tI(p.audioTrack)||tI(p.videoTrack)&&p.videoTrack.T.info.o$!=="f")return"";if(p.BR.isSeeking()){var C=p.Z;var V=p.videoTrack;var N=p.audioTrack;if(C.policy.T){var H=C.policy.BB;mN(C.policy)&&(H=nES(C,!1,Yv(C)));C=H;V=sp(N,!0)>=C&&sp(V,!0)>=C}else V.V.length|| N.V.length?(H=V.T.info.F$+N.T.info.F$,H=10*(1-Yv(C)/H),C=Math.max(H,C.policy.BB),V=sp(N,!0)>=C&&sp(V,!0)>=C):V=!0;if(!V)return"abr";V=p.videoTrack;if(V.V.length>0&&V.S.C.length===1&&PsX(V.S).info.Y<V.Y_)return"seek"}if(p.policy.W&&bf9(p.videoTrack,p.V)&&bf9(p.audioTrack,p.V))return"ssdai";V=!p.policy.Y9||p.getCurrentTime()<10;p.policy.T||(V=V||p.videoTrack.T.info.video.T>360);N=mN(p.policy)&&p.policy.sx;if(!p.LV||!N&&V)return"";V=p.policy.Y9;mN(p.policy)&&(V=nES(p.Z,p.LV,Yv(p.Z)));V=DIj(p.videoTrack, p.getCurrentTime(),V)||DIj(p.audioTrack,p.getCurrentTime(),V);return mN(p.policy)?V?"mbnm":"":(p.videoTrack.V.length>0||p.audioTrack.V.length>0||$IX(p.S,p.videoTrack,p.audioTrack)||$IX(p.S,p.audioTrack,p.videoTrack))&&V?"nord":""}; Mfs=function(p){if(p.Y){var C=p.Y.f7(p.audioTrack,tj(p.Hr.C.K7()));C&&p.Ta.seekTo(C,{EC:!0,NZ:"pollSubsegmentReadahead",zR:!0})}}; KBX=function(p,C,V){if(p.policy.R$&&I6v(C))return!1;if(V.Vj())return!0;if(!V.xT())return!1;var N=rS(C);if(!N||N.info.type===6)return!1;var H=p.policy.hm;if(H&&!N.info.S){var X=N.info.Qi-p.getCurrentTime();if(N.info.Y<X*H)return!1}var d;if(p.policy.s5||((d=p.V)==null?0:rRQ(d,C,N.info.LS)))p.Wr=0;else return p.BR.isSeeking()&&pu(p),p.Wr=p.Wr||(0,g.Ip)(),!1;if(!Na(p,C,V,N.info))return!1;if(p.hk.C&&N.info.C===0){if(H=JtL(C,V,N))X=HZ(C),p.k_("initchg",{it:N.info.T.info.id,sr:!!X&&X.T===N.info.T,ty:N.info.type, seg:N.info.LS});X=g.Cx(N.info.T.info);p.policy.FO&&X&&!H&&vPL(N)}H=p.Y&&!!p.Y.S&&C.T.info.audio;X=p.hk.isManifestless||N.W;if(!(p.hk.C&&N.info.C!==0||X&&!H)&&mxL(p,C,V,N))return!0;if(H)return!1;H=Lc(p,C);H=p.getCurrentTime()+H;if(N.info.Qi>H)return p.policy.T&&vdV(p,C),p.policy.VR&&j5s(C.S,H,!1),!1;FBa(p,C);var a;p.policy.iW&&V===((a=p.Hr)==null?void 0:a.T)&&p.UY&&(V.f3()===0?(p.UY=!1,p.policy.iW=!1):p.KS=V.f3());if(!S4u(p,V,N,C))return!1;p.policy.R$&&N.info.Vo()?(p.Ta.K().Gk()&&p.k_("eosl",{ls:N.info.Zh()}), N.isLocked=!0):(C.xn(N),aby(p.T,N.info),p.logger.debug(function(){return"Appended "+N.info.Zh()+", buffered: "+sJ(V.K7())})); return!0}; vdV=function(p,C){C===p.videoTrack?p.vr=p.vr||(0,g.Ip)():p.Sa=p.Sa||(0,g.Ip)()}; FBa=function(p,C){C===p.videoTrack?p.vr=0:p.Sa=0}; S4u=function(p,C,V,N){var H=p.policy.X$?(0,g.Ip)():0,X=V.W&&V.info.T.T||void 0,d=V.T;V.W&&(d=Dxy(p,V,d)||d);var a=d.AB();d=p.policy.X$?(0,g.Ip)():0;C=uMv(p,C,a,V.info,X);(N=N.Z)!=null&&(X=V.info,H=d-H,d=(0,g.Ip)()-d,!N.C||cKX(N.C,X)&&N.C.LS===X.LS||N.flush(),N.S+=H,N.V+=d,H=1,!N.C&&X.C&&(H=2),wd(N,H,C),d=Math.ceil(X.C/1024),H===2&&N.T.add(d),N.T.add(Math.ceil((X.C+X.V)/1024)-d),N.C=X);p.Vn=0;if(C===0)return p.Ga&&(p.logger.debug("Retry succeed, back to normal append logic."),p.Ga=!1,p.X$=!1),p.qo= 0,!0;if(C===2||C===5)return Z49(p,"checked",C,V.info),!1;if(C===1){if(!p.Ga)return p.logger.debug("QuotaExceeded, retrying."),p.Ga=!0,!1;if(!p.X$)return p.X$=!0,p.Ta.seekTo(p.getCurrentTime(),{NZ:"quotaExceeded",zR:!0}),!1;V.info.K9()?(H=p.policy,H.Ga=Math.floor(H.Ga*.8),H.Vn=Math.floor(H.Vn*.8)):(H=p.policy,H.kM=Math.floor(H.kM*.8),H.Vn=Math.floor(H.Vn*.8));p.policy.T?oA(p.C.T,V.info.T,!1):n4(p.T,V.info.T)}p.Ta.wP({reattachOnAppend:C});return!1}; Dxy=function(p,C,V){var N;if(N=p.policy.eg&&p.Hr&&!p.Hr.J&&!p.Ta.tj())C=C.info.T.info,N=C.Ft()&&Qu(C)&&C.video&&C.video.width<3840&&C.video.width>C.video.height;if(N&&(p.Hr.J=!0,xZ('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return V=RBV(V),p.policy.V&&p.k_("sp4k",{s:!!V}),V}; Z49=function(p,C,V,N){var H="fmt.unplayable",X=1;V===5||V===3?(H="fmt.unparseable",p.policy.T?!N.T.info.video||kd(p.C.T).size>0||oA(p.C.T,N.T,!1):!N.T.info.video||kd(p.T.W).size>0||n4(p.T,N.T)):V===2&&(p.qo<15?(p.qo++,H="html5.invalidstate",X=0):H="fmt.unplayable");N=bw(N);var d;N.mrs=(d=p.Hr)==null?void 0:dl(d);N.origin=C;N.reason=V;p.handleError(H,N,X)}; dI9=function(p,C,V,N,H){var X=p.hk;var d=p.policy.T,a=!1,E=-1,l;for(l in X.T){var t=Xz(X.T[l].info.mimeType)||X.T[l].info.K9();if(N===t)if(t=X.T[l].index,t.fk(C.LS)){a=t;var c=C,T=a.xz(c.LS);T&&T.startTime!==c.startTime?(a.segments=[],a.tM(c),a=!0):a=!1;a?E=C.LS:!C.pending&&d&&(c=t.getDuration(C.LS),c!==C.duration&&(X.publish("clienttemp","mfldurUpdate",{itag:X.T[l].info.itag,seg:C.LS,od:c,nd:C.duration},!1),t.tM(C),a=!0))}else t.tM(C),a=!0}E>=0&&(d={},X.publish("clienttemp","resetMflIndex",(d[N? "v":"a"]=E,d),!1));X=a;d61(p.BR,C,N,X);p.V.T5(C,V,N,H);C.LS===p.hk.AE&&X&&M6(p.hk)&&C.startTime>M6(p.hk)&&(p.hk.vr=C.startTime+(isNaN(p.timestampOffset)?0:p.timestampOffset),p.BR.isSeeking()&&p.BR.T<p.hk.Wa()&&p.BR.seek(p.hk.Wa(),{}))}; Na=function(p,C,V,N){var H=HZ(C);!H||H.S||qt(H,N)||(V.abort(),(C=C.Z)!=null&&(wd(C,4),C.flush()));if(!V.Q4()||rN())try{if(p.policy.nK){if(V.V9(N.T.info.containerType,N.T.info.o$)){if(p.policy.SP&&V.SO())return!1;p.k_("ssap",{chgtp:N.T.info.containerType,cf:N.T.info.o$,oldtp:V.Q4(),oldcf:V.M7()});V.Eq(N.T.info.containerType,N.T.info.o$,N.T.info.mimeType)}}else V.SJ(N.T.info.containerType,N.T.info.mimeType)}catch(X){return V=X,g.eG(V),p.k_("ctexp",{name:V.name,msg:V.message}),!1}else N.T.info.containerType!== V.Q4()&&p.k_("ctu",{ct:rN(),prev_c:V.Q4(),curr_c:N.T.info.containerType});C=N.T.S;p.policy.eE&&C&&(N=0+C.duration,C=-C.T,0===V.QH()&&N===V.Fm()||V.AJ(0,N),C!==V.yZ()&&(V.pp(C),CA&&htQ(p.audioTrack.Sh(),V.PG())));return!0}; mxL=function(p,C,V,N){N.info.T.rI();var H=N.info.T.T;if(!H||!V.xT()||V.jA()===H)return!1;var X=H,d=V.n3();if(p.policy.hI&&d&&V.isView()&&g.Cx(N.info.T.info)){var a=new DataView(H.buffer,H.byteOffset,H.byteLength);(d=DoH(a,d))?X=new Uint8Array(d.buffer,d.byteOffset,d.byteLength):p.k_("fenc",{})}p.policy.eg&&(d=Dxy(p,N,new o4([X])))&&(X=d.AB());var E;(d=N.info.T.ZU(0,N.info.clipId))&&(E=d.wV[0]);if(N===p.Hc){if(p.Vn+=1,p.Ta.getVideoData().G("html5_shorts_gapless_restart_on_init_seg_retries")&&p.Vn> 5)return p.Vn=0,p.Ta.wP({initSegStuck:1,as:N.info.Zh()}),!0}else p.Vn=0,p.Hc=N;p.policy.mU&&(V.abort(),(d=C.Z)!=null&&(wd(d,4),d.flush()));H=uMv(p,V,X,E,H);var l;(l=C.Z)==null||Fxj(l,H,E);if(H!==0)return UxL(p,H,N),!0;N.info.K9()?kMX(p.timing):xnL(p.timing);p.logger.debug(function(){return"Appended init for "+N.info.T.info.id}); return V.SO()}; JtL=function(p,C,V){if(C.jA()==null){p=HZ(p);if(!(C=!p||p.T!==V.info.T)){a:if(p=p.D,V=V.info.D,p.length!==V.length)V=!1;else{for(C=0;C<p.length;C++)if(!g.af(p[C],V[C])){V=!1;break a}V=!0}C=!V}return C}p=C.jA();V.info.T.N$()&&pb(V);V=V.info.T.T;return p!==V&&!g.af(p,V)}; uMv=function(p,C,V,N,H){var X=0;if(p.policy.C&&N&&N.clipId&&p.Ze){var d;X=(((d=p.Ze)==null?void 0:zJ(d,N.clipId))||0)/1E3}try{p.policy.C&&C.yZ()!==X&&C.pp(X);var a,E=C===((a=p.Hr)==null?void 0:a.T)?p.audioTrack:p.videoTrack;if(p.policy.R$&&(N==null?0:N.Vo())){if((N==null?void 0:N.J)>1)return 6;E.Wr=new g.N8(function(){var t=rS(E);p.fS()||t==null||!t.isLocked?p.Ta.K().Gk()&&p.k_("eosl",{delayA:t==null?void 0:t.info.Zh()}):fXH(E)?(p.Ta.K().Gk()&&p.k_("eosl",{dunlock:t==null?void 0:t.info.Zh()}),O4u(p, E===p.audioTrack)):(p.k_("nue",{ls:t.info.Zh()}),t.info.J+=1,p.Hr&&p.VX())},1E4,p); p.Ta.K().Gk()&&p.k_("eosl",{delayS:N.Zh()});E.Wr.start()}if(p.policy.JF&&(N==null?0:N.Vo())){var l;if((l=E.Vn)==null?0:l.isActive())g.XV(E.Vn),p.k_("sbac",{as:N.Zh()});E.Vn=new g.N8(function(){p.k_("sbum5s",{as:N.Zh()})},5E3,p); E.Vn.start()}p.policy.KT&&(N==null?void 0:N.T)instanceof zn&&N.Vo()&&p.k_("poseos",{itag:N.T.info.itag,seg:N.LS,lseg:N.T.index.Ha(),es:N.T.index.V});C.appendBuffer(V,N,H)}catch(t){if(t instanceof DOMException){if(t.code===11)return 2;if(t.code===12)return 5;if(t.code===22||t.message.indexOf("Not enough storage")===0)return C=Object.assign({name:"QuotaExceededError",buffered:sJ(C.K7()).replace(/,/g,"_"),vheap:iQ(p.videoTrack),aheap:iQ(p.audioTrack),message:g.vy(t.message,3),track:p.Hr?C===p.Hr.C?"v": "a":"u"},BSj()),p.handleError("player.exception",C),1;g.nm(t)}return 4}return p.Hr.gI()?3:0}; Q7=function(p,C,V){p.Ta.seekTo(C,V)}; GX=function(p,C){p.Ta.yG(C)}; Lc=function(p,C){if(p.Ga&&!p.LV)return 3;if(p.isSuspended)return 1;var V;if((V=p.Hr)==null?0:V.Hr&&V.Hr.streaming===!1)return 4;V=(C.T.info.audio?p.policy.kM:p.policy.Ga)/(C.F$*p.policy.Kp);if(p.policy.gW>0&&p.Hr&&j6(p.Hr)&&(C=C.T.info.video?p.Hr.C:p.Hr.T)&&!C.SO()){C=C.K7();var N=a7(C,p.getCurrentTime());N>=0&&(C=p.getCurrentTime()-C.start(N),V+=Math.max(0,Math.min(C-p.policy.gW,p.policy.eD)))}p.policy.Vn>0&&(V=Math.min(V,p.policy.Vn));return V}; q41=function(p){p.R$&&!p.isSuspended&&JR(p.schedule)&&(yte(p,p.R$),p.R$="")}; yte=function(p,C){kv(C,"cms",function(V){p.policy.V&&p.k_("pathprobe",V)},function(V){p.Ta.handleError(V)})}; IXj=function(p,C){if(p.Hr&&p.Hr.S&&!p.Hr.gI()&&(C.eA=sp(p.videoTrack),C.C=sp(p.audioTrack),p.policy.V)){var V=iQ(p.videoTrack),N=iQ(p.audioTrack),H=sJ(p.Hr.C.K7(),"_",5),X=sJ(p.Hr.T.K7(),"_",5);Object.assign(C.T,{lvq:V,laq:N,lvb:H,lab:X})}C.bandwidthEstimate=xv(p.Z);var d;(d=p.audioTrack.Z)==null||d.flush();var a;(a=p.videoTrack.Z)==null||a.flush();p.logger.debug(function(){return yu(C.T)})}; b4Y=function(p,C){p.D=C;p.V&&(p.V.Y=C);p.D.L2(p.videoTrack.T.info.Ft());p.S.C=p.D;p.policy.W&&(p.J.S=p.D)}; AtX=function(p,C){if(p.Hr&&p.Hr.C){if(p.policy.Vw){var V=oAY(p.audioTrack);if(V&&V.DQ()){var N=p.Ta;N.w3&&(N.w3.T=V,N.Pc(N.w3.videoId).jB(N.w3))}}p.policy.qf&&(V=oAY(p.videoTrack))&&V.K9()&&(N=p.Ta,N.xA&&(N.xA.T=V,N.Pc(N.xA.videoId).yX(N.xA)));C-=isNaN(p.timestampOffset)?0:p.timestampOffset;p.getCurrentTime()!==C&&p.resume();p.BR.isSeeking()&&p.Hr&&!p.Hr.gI()&&(V=p.getCurrentTime()<=C&&C<p.getCurrentTime()+10,N=EJ(p.Hr.C.K7(),p.getCurrentTime()+h6),V&&N&&(p.BR.W=!1));p.BR.isSeeking()||p.policy.Wr|| (p.currentTime=C);g.HF(p.Zb)}}; odv=function(p,C){var V=MKL(p.videoTrack).find(function(N){return N.startTime>=C&&GJs(p,N.startTime,!1)}); return V&&V.startTime<C+V.duration*1.5?V.startTime+.1:0}; GJs=function(p,C,V){if(!(p.videoTrack.T.rI()&&p.audioTrack.T.rI()&&p.Hr&&p.Hr.C&&p.Hr.T))return!1;if(V&&p.hk.isManifestless&&(p.videoTrack.Y===-1||p.audioTrack.Y===-1))return!0;var N=$v(p.videoTrack,C,V);if(isNaN(N))return!1;p=$v(p.audioTrack,p.policy.jZ?C:N,V);return isNaN(p)?!1:!0}; uQ=function(p){p.H$();p.BR.isSeeking()&&p.logger.debug("seeking cancelled by seek-to-head");p.Y&&gvS(p.Y,p.videoTrack.T);pu(p);return CoQ(p.BR)}; Dp=function(p,C,V,N){(N===void 0?0:N)&&!C.vr&&(rN()||(N=C.NW,XIv(p)||!N||N.pg(V.info)||(p.k_("ssap",{rstonsrvfmt:V.info.mimeType}),sZ(p.Ta))),C.vr=!0);C.T!==V&&(p.logger.debug(function(){return"Setting target itag: "+V.info.id+" (was "+C.T.info.id+")"}),C.T=V)}; fXH=function(p){var C,V=(C=rS(p))==null?void 0:C.info;return!V||ylQ(p,Math.min(V.Qi+h6,V.zM))}; kXv=function(p,C){var V;if((V=rS(C))!=null&&V.isLocked&&fXH(C)){if(p.Ta.K().Gk()){var N;p.k_("eosl",{munlock:(N=rS(C))==null?void 0:N.info.Zh()})}O4u(p,C===p.audioTrack)}}; O4u=function(p,C){if(p.policy.R$&&p.Hr){var V,N,H=C?(V=p.Hr)==null?void 0:V.T:(N=p.Hr)==null?void 0:N.C;V=C?p.audioTrack:p.videoTrack;C=rS(V);if(C==null?0:C.isLocked){p.Ta.K().Gk()&&p.k_("eosl",{unlock:C.info.Zh()});var X;(X=V.Wr)==null||X.stop();C.isLocked=!1;V.xn(C);aby(p.T,C.info);H=H==null?void 0:H.ye();(H==null?void 0:H.Zh())!==C.info.Zh()&&p.k_("oue",{bls:H==null?void 0:H.Zh(),tls:C.info.Zh()})}}}; xxL=function(p,C){p.timestampOffset!==C&&(p.timestampOffset=C,p.policy.o6&&m6(p.hk),p.logger.debug(function(){return"Timestamps will be made relative to "+p.timestampOffset}),p.V.J=p.timestampOffset,p.Ta.aM(p.timestampOffset),p.hk.isManifestless&&(p.hk.timestampOffset=p.timestampOffset),p.videoTrack.pp(p.timestampOffset),p.audioTrack.pp(p.timestampOffset))}; Y4u=function(p,C){C!==p.policy.FT&&((p.policy.FT=C)||p.f7())}; QMa=function(p){var C=p.xm().filter(function(N){return N.namespace==="ad"}); C=g.F(C);for(var V=C.next();!V.done;V=C.next())if(V=V.value,V.start/1E3>p.getCurrentTime())return V.start/1E3;return Infinity}; zb1=function(p){var C=HZ(p.videoTrack),V=HZ(p.audioTrack);return C&&!Alv(p.videoTrack)?C.startTime:V&&!Alv(p.audioTrack)?V.startTime:NaN}; AhL=function(p){if(p.Ta.getVideoData().isLivePlayback)return!1;var C=p.Ta.Nt();if(!C)return!1;C=C.getDuration();return bcy(p,C)}; bcy=function(p,C){if(!p.Hr||!p.Hr.T||!p.Hr.C)return!1;var V=p.getCurrentTime(),N=p.Hr.T.K7();p=p.Hr.C.K7();N=N?lX(N,V):V;V=p?lX(p,V):V;V=Math.min(N,V);return isNaN(V)?!1:V>=C-.01}; UxL=function(p,C,V){p.policy.d1&&id(p.Ta.getVideoData())?(p.Ta.tA()||Z49(p,"sepInit",C,V.info),Rb9(p.Ta,"sie")):Z49(p,"sepInit",C,V.info)}; j$9=function(p){return p.Ta.kh()<p.wy}; g.aV=function(p){this.GB=p}; EZ=function(){g.ca.apply(this,arguments)}; lF=function(p,C,V,N){EZ.call(this);var H=this;this.V=-1;this.T={};this.S=new g.N8(this.W,0,this);g.R(this,this.S);this.C=new g.N8(function(){H.fS()||(H.S.start(Math.random()*V),H.C.start(C))},p,this); g.R(this,this.C);N.subscribe("fairplay_next_need_key_info",this.Y,this)}; ndX=function(p){if(!(p.length<=28))for(var C=(0,g.Jt)([60,0,75,0,73,0,68,0,62,0]),V=28;V<p.length;){a:if(p.length-V<C.length)var N=!1;else{for(N=0;N<C.length;++N)if(p[V+N]!==C[N]){N=!1;break a}N=!0}if(N){V+=C.length;if(p.length<=V+48)break;C=new Uint8Array(24);for(N=0;N<24;++N)C[N]=p[V+N*2];p=eL(C);p=Fv(p);if(!p)break;V=p[0];p[0]=p[3];p[3]=V;V=p[1];p[1]=p[2];p[2]=V;V=p[4];p[4]=p[5];p[5]=V;V=p[6];p[6]=p[7];p[7]=V;return p}V++}}; t6=function(p,C,V){EZ.call(this);var N=this;this.V=p;this.T=[];this.Sr={tE_:function(){return N.T.length}}; this.S=V.OY("html5_ignore_widevine_key_rotation_license_requests");this.C=new g.N8(function(){N.publish("log_qoe",{wvagt:"timer",reqlen:N.T?N.T.length:-1});if(N.T){if(N.T.length>0){var H=N.T.shift();eb1(N,H.info)}N.T.length>0&&(H=N.T[0].time-(0,g.Ip)(),N.C.start(Math.max(0,H)))}},0); g.R(this,this.C);C.subscribe("widevine_set_need_key_info",this.W,this)}; eb1=function(p,C){a:{var V=C.cryptoPeriodIndex;if(isNaN(V)&&p.V.size>0)V=!0;else{for(var N=g.F(p.V.values()),H=N.next();!H.done;H=N.next())if(H.value.cryptoPeriodIndex===V){V=!0;break a}V=!1}}p.publish("log_qoe",{wvagt:"reqnews",canskip:V});V||p.publish("rotated_need_key_info_ready",C)}; P2Y=function(){var p={};var C=p.url;var V=p.interval;p=p.retries;this.url=C;this.interval=V;this.retries=p}; wIj=function(p,C){this.statusCode=p;this.message=C;this.C=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null}; $xe=function(p,C,V){V=V===void 0?"":V;g.Y.call(this);this.message=p;this.requestNumber=C;this.Yt=V;this.onError=this.onSuccess=null;this.T=new g.oN(5E3,2E4,.2)}; LBa=function(p,C,V){p.onSuccess=C;p.onError=V}; WBL=function(p,C,V,N){var H={timeout:3E4,onSuccess:function(X){if(!p.fS()){NR("drm_net_r",void 0,p.Yt);var d=X.status==="LICENSE_STATUS_OK"?0:9999,a=null;if(X.license)try{a=Fv(X.license)}catch(J){g.nm(J)}if(d!==0||a){a=new wIj(d,a);d!==0&&X.reason&&(a.errorMessage=X.reason);if(X.authorizedFormats){d={};for(var E=[],l={},t=g.F(X.authorizedFormats),c=t.next();!c.done;c=t.next())if(c=c.value,c.trackType&&c.keyId){var T=gdY[c.trackType];if(T){T==="HD"&&X.isHd720&&(T="HD720");c.isHdr&&(T+="HDR");d[T]|| (E.push(T),d[T]=!0);var M=null;try{M=Fv(c.keyId)}catch(J){g.nm(J)}M&&(l[g.mq(M,4)]=T)}}a.C=E;a.T=l}X.nextFairplayKeyId&&(a.nextFairplayKeyId=X.nextFairplayKeyId);X.sabrLicenseConstraint&&(a.sabrLicenseConstraint=Fv(X.sabrLicenseConstraint));X=a}else X=null;if(X)p.onSuccess(X,p.requestNumber);else p.onError(p,"drm.net","t.p;p.i")}}, onError:function(X){if(!p.fS())if(X&&X.error)X=X.error,p.onError(p,"drm.net.badstatus","t.r;p.i;c."+X.code+";s."+X.status,X.code);else p.onError(p,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){p.onError(p,"drm.net","rt.req."+p.requestNumber)}}; N&&(H.yb="Bearer "+N);g.ah(V,"player/get_drm_license",C,H)}; QAa=function(p,C,V,N){g.ca.call(this);this.videoData=p;this.yn=C;this.Z=V;this.sessionId=N;this.W={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.D=this.b_=!1;this.V=null;this.Vn=[];this.S=[];this.J=!1;this.T={};this.sY=NaN;this.status="";this.Y=NaN;this.C=p.W;this.cryptoPeriodIndex=V.cryptoPeriodIndex;p={};Object.assign(p,this.yn.T);p.cpn=this.videoData.clientPlaybackNonce;this.videoData.b_&&(p.vvt=this.videoData.b_,this.videoData.mdxEnvironment&&(p.mdx_environment=this.videoData.mdxEnvironment)); this.yn.sY&&(p.authuser=this.yn.sY);this.yn.pageId&&(p.pageid=this.yn.pageId);isNaN(this.cryptoPeriodIndex)||(p.cpi=this.cryptoPeriodIndex.toString());var H=(H=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.f0()))?H[1]:"";H==="ATV"&&(p.cdt=H);this.W=p;this.W.session_id=N;this.a$=!0;this.C.flavor==="widevine"&&(this.W.hdr="1");this.C.flavor==="playready"&&(C=Number(Wb(C.experiments,"playready_first_play_expiration")),!isNaN(C)&&C>=0&&(this.W.mfpe=""+C),this.a$=!1);C="";g.o5(this.C)?Az(this.C)?(N=V.C)&&(C="https://www.youtube.com/api/drm/fps?ek="+ YSV(N)):(C=V.initData.subarray(4),C=new Uint16Array(C.buffer,C.byteOffset,C.byteLength/2),C=String.fromCharCode.apply(null,C).replace("skd://","https://")):C=this.C.C;this.baseUrl=C;this.fairplayKeyId=CN(this.baseUrl,"ek")||"";if(C=CN(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(C);this.Sa=this.videoData.G("html5_use_drm_retry");this.Vn=V.Ft?[g.mq(V.initData,4)]:V.V;cu(this,{sessioninit:V.cryptoPeriodIndex});this.status="in"}; pZS=function(p,C){cu(p,{createkeysession:1});p.status="gr";NR("drm_gk_s",void 0,p.videoData.Y_);p.url=rta(p);try{p.V=C.createSession(p.Z,function(V){cu(p,{m:V})})}catch(V){C="t.g"; V instanceof DOMException&&(C+=";c."+V.code);p.publish("licenseerror","drm.unavailable",1,C,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}p.V&&(BdY(p.V,function(V,N){GXa(p,V,N)},function(V,N,H){if(!p.fS()){N=void 0; var X=1;g.o5(p.C)&&g.yj(p.yn)&&p.yn.G("html5_enable_safari_fairplay")&&H===1212433232&&(N="ERROR_HDCP",X=p.yn.G("html5_safari_fairplay_ignore_hdcp")?0:X);p.error("drm.keyerror",X,V,N)}},function(){p.fS()||(cu(p,{onkyadd:1}),p.D||(p.publish("sessionready"),p.D=!0))},function(V){p.Ct(V)}),g.R(p,p.V))}; rta=function(p){var C=p.baseUrl;VGe(C)||p.error("drm.net",2,"t.x");if(!CN(C,"fexp")){var V=["23898307","23914062","23916106","23883098"].filter(function(H){return p.yn.experiments.experiments[H]}); V.length>0&&(p.W.fexp=V.join())}V=g.F(Object.keys(p.W));for(var N=V.next();!N.done;N=V.next())N=N.value,C=bHQ(C,N,p.W[N]);return C}; GXa=function(p,C,V){if(!p.fS())if(C){cu(p,{onkmtyp:V});p.status="km";switch(V){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":CQu(p,C);return;default:p.publish("ctmp","message_type",{t:V,l:C.byteLength})}p.b_||(NR("drm_gk_f",void 0,p.videoData.Y_),p.b_=!0,p.publish("newsession",p));if(q6(p.C)&&(C=jBQ(C),!C))return;C=new $xe(C,++p.requestNumber,p.videoData.Y_);LBa(C,function(N){VXH(p,N)},function(N,H,X){if(!p.fS()){var d=0,a; (a=N.T.C>=3)||(a=p.Sa&&(0,g.Ip)()-p.sY>36E4);a&&(d=1,H="drm.net.retryexhausted");cu(p,{onlcsrqerr:H,info:X});p.error(H,d,X);p.shouldRetry(Ir(d),N)&&NZQ(p,N)}}); g.R(p,C);HAY(p,C)}else p.error("drm.unavailable",1,"km.empty")}; CQu=function(p,C){cu(p,{sdpvrq:1});p.Y=Date.now();if(p.C.flavor!=="widevine")p.error("drm.provision",1,"e.flavor;f."+p.C.flavor+";l."+C.byteLength);else{var V={cpn:p.videoData.clientPlaybackNonce};Object.assign(V,p.yn.T);V=g.GD("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",V);C={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, C)}),responseType:"arraybuffer"};g.oK(V,C,3,500).then(FF(function(N){N=N.xhr;if(!p.fS()){N=new Uint8Array(N.response);var H=String.fromCharCode.apply(null,N);try{var X=JSON.parse(H)}catch(d){}X&&X.signedResponse?(p.publish("ctmp","drminfo",{provisioning:1}),X=(Date.now()-p.Y)/1E3,p.Y=NaN,p.publish("ctmp","provs",{et:X.toFixed(3)}),p.V&&p.V.update(N)):(X=X&&X.error&&X.error.message,N="e.parse",X&&(N+=";m."+X),p.error("drm.provision",1,N))}}),FF(function(N){p.fS()||p.error("drm.provision",1,"e."+N.errorCode+ ";c."+(N.xhr&&N.xhr.status))}))}}; TK=function(p){var C;if(C=p.a$&&p.V!=null)p=p.V,C=!(!p.T||!p.T.keyStatuses);return C}; HAY=function(p,C){p.status="km";NR("drm_net_s",void 0,p.videoData.Y_);var V=new g.sI(p.yn.Uv),N={context:g.T1(V.config_||g.cC())};N.drmSystem=XZ9[p.C.flavor];N.videoId=p.videoData.videoId;N.cpn=p.videoData.clientPlaybackNonce;N.sessionId=p.sessionId;N.licenseRequest=g.mq(C.message);N.drmParams=p.videoData.drmParams;isNaN(p.cryptoPeriodIndex)||(N.isKeyRotated=!0,N.cryptoPeriodIndex=p.cryptoPeriodIndex);var H,X,d=!!((H=p.videoData.C)==null?0:(X=H.video)==null?0:X.isHdr());N.drmVideoFeature=d?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(N.context&&N.context.client){if(H=p.yn.T)N.context.client.deviceMake=H.cbrand,N.context.client.deviceModel=H.cmodel,N.context.client.browserName=H.cbr,N.context.client.browserVersion=H.cbrver,N.context.client.osName=H.cos,N.context.client.osVersion=H.cosver;N.context.user=N.context.user||{};N.context.request=N.context.request||{};p.videoData.b_&&(N.context.user.credentialTransferTokens=[{token:p.videoData.b_,scope:"VIDEO"}]);N.context.request.mdxEnvironment=p.videoData.mdxEnvironment|| N.context.request.mdxEnvironment;p.videoData.X$&&(N.context.user.kidsParent={oauthToken:p.videoData.X$});g.o5(p.C)&&(N.fairplayKeyId=g.mq(zXe(p.fairplayKeyId)));g.pk(p.yn,g.XE(p.videoData)).then(function(a){WBL(C,N,V,a);p.status="rs"})}else p.error("drm.net",2,"t.r;ic.0")}; VXH=function(p,C){if(!p.fS())if(cu(p,{onlcsrsp:1}),p.status="rr",C.statusCode!==0)p.error("drm.auth",1,"t.f;c."+C.statusCode,C.errorMessage||void 0);else{NR("drm_kr_s",void 0,p.videoData.Y_);if(C.heartbeatParams&&C.heartbeatParams.url&&p.videoData.G("outertube_streaming_data_always_use_staging_license_service")){var V=p.C.C.match(/(.*)youtube.com/g);V&&(C.heartbeatParams.url=V[0]+C.heartbeatParams.url)}C.heartbeatParams&&p.publish("newlicense",C.heartbeatParams);C.C&&(p.S=C.C,p.videoData.lP||p.publish("newlicense", new P2Y),p.videoData.lP=!0,p.J=Yo(p.S,function(N){return N.includes("HDR")})); C.T&&(p.yn.G("html5_enable_vp9_fairplay")&&Az(p.C)?(V=g.mq(zXe(p.fairplayKeyId),4),p.T[V]={type:C.T[V],status:"unknown"}):p.T=fG(C.T,function(N){return{type:N,status:"unknown"}})); bo(p.C)&&(C.message=opa(g.mq(C.message)));p.V&&(cu(p,{updtks:1}),p.status="ku",p.V.update(C.message).then(function(){NR("drm_kr_f",void 0,p.videoData.Y_);TK(p)||(cu(p,{ksApiUnsup:1}),p.publish("keystatuseschange",p))},function(N){N="msuf.req."+p.requestNumber+";msg."+g.vy(N.message,3); p.error("drm.keyerror",1,N)})); p.D&&(p.sY=(0,g.Ip)());g.o5(p.C)&&p.publish("fairplay_next_need_key_info",p.baseUrl,C.nextFairplayKeyId);p.yn.G("html5_enable_vp9_fairplay")&&Az(p.C)&&p.publish("qualitychange",d4e(p.S));C.sabrLicenseConstraint&&p.publish("sabrlicenseconstraint",C.sabrLicenseConstraint)}}; NZQ=function(p,C){var V=C.T.getValue();V=new g.N8(function(){HAY(p,C)},V); g.R(p,V);V.start();g.kq(C.T);cu(p,{rtyrq:1})}; iAS=function(p,C){for(var V=[],N=g.F(Object.keys(p.T)),H=N.next();!H.done;H=N.next())H=H.value,V.push(H+"_"+p.T[H].type+"_"+p.T[H].status);return V.join(C)}; haS=function(p){var C={};C[p.status]=TK(p)?iAS(p,"."):p.S.join(".");return C}; sB9=function(p,C){switch(p){case "highres":case "hd2880":p="UHD2";break;case "hd2160":case "hd1440":p="UHD1";break;case "hd1080":case "hd720":p="HD";break;case "large":case "medium":case "small":case "light":case "tiny":p="SD";break;default:return""}C&&(p+="HDR");return p}; ap9=function(p,C){for(var V in p.T)if(p.T[V].status==="usable"&&p.T[V].type===C)return!0;return!1}; EkY=function(p,C){for(var V in p.T)if(p.T[V].type===C)return p.T[V].status}; cu=function(p,C){var V=V===void 0?!1:V;yu(C);(V||p.yn.Gk())&&p.publish("ctmp","drmlog",C)}; lpH=function(p){var C=p[0];p[0]=p[3];p[3]=C;C=p[1];p[1]=p[2];p[2]=C;C=p[4];p[4]=p[5];p[5]=C;C=p[6];p[6]=p[7];p[7]=C}; d4e=function(p){return g.W5(p,"UHD2")||g.W5(p,"UHD2HDR")?"highres":g.W5(p,"UHD1")||g.W5(p,"UHD1HDR")?"hd2160":g.W5(p,"HD")||g.W5(p,"HDHDR")?"hd1080":g.W5(p,"HD720")||g.W5(p,"HD720HDR")?"hd720":"large"}; jBQ=function(p){for(var C="",V=0;V<p.length;V+=2)C+=String.fromCharCode(p[V]);p=VW(new DOMParser,$e(C),"text/xml");return p?(p=p.querySelector("Challenge"))&&p.childNodes&&p.childNodes.length!==0?new Uint8Array((0,g.Jt)(tyH(p.childNodes[0].nodeValue)).buffer):null:null}; Ma=function(p,C,V,N,H,X){X=X===void 0?!1:X;g.Y.call(this);this.element=p;this.J=C;this.initData=V;this.T=N;this.C=H;this.Z=X;this.sessionId="";this.D=this.Y=this.V=this.W=null;this.S=new g.Rr(this);g.R(this,this.S);tXa(this)}; tXa=function(p){p.T?(p.S.U(p.T,"message",p.m4),p.S.U(p.T,"keystatuseschange",p.Ct),p.T.closed&&p.T.closed.then(FF(function(){p.onClosed()}),null)):p.C&&(bO(p.S,p.C,["mskeymessage", "webkitkeymessage"],p.hP),bO(p.S,p.C,["mskeyerror","webkitkeyerror"],p.Gr),bO(p.S,p.C,["mskeyadded","webkitkeyadded"],p.N6))}; BdY=function(p,C,V,N,H){p.W=C;p.V=V;p.Y=N;p.D=H}; cIL=function(p,C,V){g.nm(V);p.V&&(V instanceof DOMException&&(C+=";n."+V.name+";m."+V.message),p.V(C))}; J6=function(p,C,V,N){N=N===void 0?!1:N;g.Y.call(this);this.element=p;this.T=C;this.k_=V;this.D=N;this.Y={};this.S=null;this.W=new g.Rr(this);this.V=this.C=null;g.R(this,this.W)}; MXy=function(p,C){C=TZL(C,p.T.UY);C=p.V.createSession("video/mp4",C);return new Ma(null,null,null,null,C,p.D)}; JIV=function(p,C){for(var V=new Uint8Array(270),N=0;N<135;N++)V[N*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(N);p=p.V.createSession("video/mp4",C,V);return new Ma(null,null,null,null,p)}; m4v=function(p,C){var V=p.Y[C.sessionId];!V&&p.S&&(V=p.S,p.S=null,V.sessionId=C.sessionId,p.Y[C.sessionId]=V);return V}; TZL=function(p,C){var V=p.subarray(4);V=new Uint16Array(V.buffer,V.byteOffset,V.byteLength/2);V=String.fromCharCode.apply(null,V).match(/ek=([0-9a-f]+)/)[1];for(var N="",H=0;H<V.length;H+=2)N+=String.fromCharCode(parseInt(V.substring(H,H+2),16));V=N;N=new ArrayBuffer(V.length*2);H=new Uint16Array(N);for(var X=0;X<V.length;X++)H[X]=V.charCodeAt(X);V=new Uint8Array(N);N=0;X=new ArrayBuffer(p.byteLength+4+V.byteLength+4+C.byteLength);H=new Uint8Array(X);X=new DataView(X);H.set(p);N+=p.byteLength;X.setUint32(N, V.length,!0);N+=4;H.set(V,N);N+=V.length;X.setUint32(N,C.byteLength,!0);H.set(C,N+4);return H}; ms=function(){this.keys=[];this.values=[]}; SpL=function(p,C,V){g.ca.call(this);this.element=p;this.videoData=C;this.yn=V;this.V=[];this.vr=2;this.Ga=this.Sa=!1;this.heartbeatParams=null;this.Vn=this.Z=!1;this.W=null;this.Wr=!1;this.T=this.videoData.W;this.drmSessionId=this.videoData.drmSessionId||g.ApL();this.C=new Map;this.Y=new ms;this.D=new ms;this.b_=new g.Rr(this);this.sY=this.yn.G("html5_eme_ignore_teardown_errors");(p=this.element)&&(p.addKey||p.webkitAddKey)||O6()||x$(V.experiments);this.yn.G("html5_enable_vp9_fairplay")&&Az(this.T)? V=vkS:(V=this.videoData.Kq,V=this.T.flavor==="fairplay"||V?xB:vkS);this.J=V;this.S=new J6(this.element,this.T,this.jM.bind(this),this.sY);g.R(this,this.S);yM(this.T)&&(this.a$=new J6(this.element,this.T,this.jM.bind(this),this.sY),g.R(this,this.a$));g.R(this,this.b_);V=this.element;this.T.keySystemAccess?this.b_.U(V,"encrypted",this.Q$_):bO(this.b_,V,yM(this.T)?["msneedkey"]:["needkey","webkitneedkey"],this.u0S);FN9(this);a:switch(V=this.T,p=this.yn.experiments,C=this.C,V.flavor){case "fairplay":if(C= /\sCobalt\/(\S+)\s/.exec(g.f0())){p=[];C=g.F(C[1].split("."));for(var N=C.next();!N.done;N=C.next())N=parseInt(N.value,10),N>=0&&p.push(N);p=parseFloat(p.join("."))}else p=NaN;p>19.2999?(p=V.hI,V=V.m0,V>=p&&(V=p*.75),C=(p-V)*.5,V=new lF(C,p,p-C-V,this)):V=null;break a;case "widevine":V=new t6(C,this,p);break a;default:V=null}if(this.W=V)g.R(this,this.W),this.W.subscribe("rotated_need_key_info_ready",this.jc,this),this.W.subscribe("log_qoe",this.Zu,this);x$(this.yn.experiments);this.Zu({cks:this.T.getInfo()})}; FN9=function(p){var C=p.S.fN();C?C.then(FF(function(){KNY(p)}),FF(function(V){if(!p.fS()){g.nm(V); var N="t.a";V instanceof DOMException&&(N+=";n."+V.name+";m."+V.message);p.publish("licenseerror","drm.unavailable",1,N,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(p.Zu({mdkrdy:1}),p.Z=!0); p.a$&&(C=p.a$.fN())}; u0Y=function(p,C,V){p.Ga=!0;V=new QN(C,V);p.yn.G("html5_eme_loader_sync")&&(p.Y.get(C)||p.Y.set(C,V));D4Q(p,V)}; D4Q=function(p,C){if(!p.fS()){p.Zu({onInitData:1});if(p.yn.G("html5_eme_loader_sync")&&p.videoData.V&&p.videoData.V.T){var V=p.D.get(C.initData);C=p.Y.get(C.initData);if(!V||!C)return;C=V;V=C.initData;p.Y.remove(V);p.D.remove(V)}p.Zu({initd:C.initData.length,ct:C.contentType});if(p.T.flavor==="widevine")if(p.Sa&&!p.videoData.isLivePlayback)vu(p);else{if(!(p.yn.G("vp9_drm_live")&&p.videoData.isLivePlayback&&C.Ft)){p.Sa=!0;V=C.cryptoPeriodIndex;var N=C.T;AAy(C);C.Ft||(N&&C.T!==N?p.publish("ctmp","cpsmm", {emsg:N,pssh:C.T}):V&&C.cryptoPeriodIndex!==V&&p.publish("ctmp","cpimm",{emsg:V,pssh:C.cryptoPeriodIndex}));p.publish("widevine_set_need_key_info",C)}}else p.jc(C)}}; KNY=function(p){if(!p.fS())if(p.yn.G("html5_drm_set_server_cert")||Az(p.T)){var C=p.S.setServerCertificate();C?C.then(FF(function(V){p.yn.Gk()&&p.publish("ctmp","ssc",{success:V})}),FF(function(V){p.publish("ctmp","ssce",{n:V.name, m:V.message})})).then(FF(function(){ZAe(p)})):ZAe(p)}else ZAe(p)}; ZAe=function(p){p.fS()||(p.Z=!0,p.Zu({onmdkrdy:1}),vu(p))}; U49=function(p){return p.T.flavor==="widevine"&&p.videoData.G("html5_drm_cpi_license_key")}; vu=function(p){if((p.Ga||p.yn.G("html5_widevine_use_fake_pssh"))&&p.Z&&!p.Vn){for(;p.V.length;){var C=p.V[0],V=U49(p)?oB1(C):g.mq(C.initData);if(Az(p.T)&&!C.C)p.V.shift();else{if(p.C.get(V))if(p.T.flavor!=="fairplay"||Az(p.T)){p.V.shift();continue}else p.C.delete(V);AAy(C);break}}p.V.length&&p.createSession(p.V[0])}}; fpQ=function(p){var C;if(C=g.Qg()){var V;C=!((V=p.S.C)==null||!V.getMetrics)}C&&(C=p.S.getMetrics())&&(C=g.wc(C),p.publish("ctmp","drm",{metrics:C}))}; OAL=function(){var p=ezS();return!(!p||p==="visible")}; qpu=function(p){var C=yI1();C&&document.addEventListener(C,p,!1)}; Ipu=function(p){var C=yI1();C&&document.removeEventListener(C,p,!1)}; yI1=function(){if(document.visibilityState)var p="visibilitychange";else{if(!document[m_+"VisibilityState"])return"";p=m_+"visibilitychange"}return p}; bAu=function(p){g.Y.call(this);var C=this;this.Ta=p;this.o2=0;this.Y=this.C=this.W=!1;this.S=0;this.I$=this.Ta.K();this.videoData=this.Ta.getVideoData();this.V=g.mi(this.I$.experiments,"html5_delayed_retry_count");this.T=new g.N8(function(){sZ(C.Ta)},g.mi(this.I$.experiments,"html5_delayed_retry_delay_ms")); g.R(this,this.T)}; YpS=function(p,C,V){var N=p.videoData.C,H=p.videoData.S;id(p.Ta.getVideoData())&&p.I$.G("html5_gapless_fallback_on_qoe_restart")&&Rb9(p.Ta,"pe");if((C==="progressive.net.retryexhausted"||C==="fmt.unplayable"||C==="fmt.decode")&&!p.Ta.L$.W&&N&&N.itag==="22")return p.Ta.L$.W=!0,p.oN("qoe.restart",{reason:"fmt.unplayable.22"}),F9(p.Ta),!0;var X=!1;if(p.videoData.isExternallyHostedPodcast){if(X=p.videoData.r_)V.mimeType=X.type,p.k_("3pp",{url:X.url});V.ns="3pp";p.Ta.a_(C,1,"VIDEO_UNAVAILABLE",yu((new qD(C, V,1)).details));return!0}var d=p.o2+3E4<(0,g.Ip)()||p.T.isActive();if(p.I$.G("html5_empty_src")&&p.videoData.isAd()&&C==="fmt.unplayable"&&/Empty src/.test(""+V.msg))return V.origin="emptysrc",p.oN("auth",V),!0;d||SP(p.Ta.Uu())||(V.nonfg="paused",d=!0,p.Ta.pauseVideo());(C==="fmt.decode"||C==="fmt.unplayable")&&(H==null?0:Gx(H)||px(H))&&(qTy(p.I$.W,H.o$),V.acfallexp=H.o$,X=d=!0);!d&&p.V>0&&(p.T.start(),d=!0,V.delayed="1",--p.V);H=p.Ta.nS;!d&&((N==null?0:BB(N))||(N==null?0:Qu(N)))&&(qTy(p.I$.W,N.o$), X=d=!0,V.cfallexp=N.o$);if(p.I$.G("html5_ssap_ignore_decode_error_for_next_video")&&g.pf(p.videoData)&&C==="fmt.unplayable"&&V.cid&&V.ccid&&SP(p.Ta.Uu())){if(V.cid!==V.ccid)return V.ignerr="1",p.oN("ssap.transitionfailure",V),!0;p.oN("ssap.transitionfailure",V);if(AIX(p.Ta,C))return!0}if(!d)return okH(p,V);if(p.I$.G("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.pf(p.videoData)&&C==="fmt.unplayable"&&V.cid&&V.ccid&&V.cid!==V.ccid&&SP(p.Ta.Uu())&&(p.oN("ssap.transitionfailure",V),AIX(p.Ta, C)))return!0;d=!1;p.W?p.o2=(0,g.Ip)():d=p.W=!0;var a=p.videoData;if(a.KS){a=a.KS.Ph();var E=Date.now()/1E3+1800;a=a<E}else a=!1;V.e=C;V.bkg=OAL();a&&(V.staleprog="1");p.oN("qoe.restart",V);if(a&&kGe(p))return x4L(p),!0;if(!(!g.gm("philips")||C==="fmt.unplayable"&&H&&H.sY||p.I$.T.cplatform==="GAME_CONSOLE"))try{window.close()}catch(l){}N&&BB(N)&&!p.I$.G("html5_allow_av1_retry_in_session")?(X=p.I$.W,X.D=!0,pI(X),X=!0):H?d||(C=(C=HZ(H.videoTrack)||H.videoTrack.C)?C.T:H.videoTrack.T,C.Y+=1,H.policy.T? oA(H.C.T,C,!0):n4(H.T,C,!0)):p.videoData.KS&&p.videoData.KS.C2();p.T.isActive()||sZ(p.Ta,X);return!0}; okH=function(p,C){if(p.videoData.sY)return!1;p.I$.Q$+=1;if(p.I$.Q$<=10)return!1;C.exiled=""+p.I$.Q$;p.oN("qoe.start15s",C);p.Ta.publish("playbackstalledatstart");return!0}; kGe=function(p){return p.C?!0:p.I$.a$==="yt"?p.videoData.sY?p.videoData.wy<25:!p.videoData.wy:!1}; x4L=function(p){if(!p.C){p.C=!0;var C=p.Ta.getPlayerState();C=C.isPaused()||C.isSuspended();p.Ta.Q6();C&&!ix(p.videoData)||p.Ta.publish("signatureexpired")}}; zaQ=function(p,C){if((p=p.Ta.Nt())&&(C.errorCode==="fmt.unplayable"||C.errorCode==="html5.invalidstate")){var V=p.LO();C.details.merr=V?V.toString():"0";C.details.mmsg=p.FF()}}; Ray=function(p){return p.errorCode==="net.badstatus"&&(p.severity===1||!!p.details.fmt_unav)}; nk1=function(p,C){return p.I$.G("html5_use_network_error_code_enums")&&C.details.rc===403||C.details.rc==="403"?(p=C.errorCode,p==="net.badstatus"||p==="manifest.net.retryexhausted"):!1}; PQ1=function(p,C){if(!nk1(p,C)&&!p.C)return!1;C.details.sts="20073";if(kGe(p))return Ir(C.severity)&&(C=Object.assign({e:C.errorCode},C.details),C=new qD("qoe.restart",C)),p.oN(C.errorCode,C.details),x4L(p),!0;(0,g.Ip)()-p.I$.d6>6048E5&&eaa(p,"signature");return!1}; eaa=function(p,C){try{window.location.reload(),p.oN("qoe.restart",{detail:"pr."+C})}catch(V){}}; wZu=function(p,C){C=C===void 0?"fmt.noneavailable":C;var V=p.I$.W;V.Y=!1;pI(V);p.oN("qoe.restart",{e:C,detail:"hdr"});sZ(p.Ta,!0)}; $4s=function(p,C,V,N,H,X){this.videoData=p;this.T=C;this.reason=V;this.C=N;this.token=H;this.videoId=X}; LNu=function(p,C,V){this.yn=p;this.Dq=C;this.Ta=V;this.J=this.Y=this.T=this.S=this.D=this.C=0;this.W=!1;this.Z=g.mi(this.yn.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.V=new Map}; WNa=function(p,C,V){!p.yn.G("html5_tv_ignore_capable_constraint")&&g.bH(p.yn)&&(V=V.compose(gkX(p,C)));return V}; rIj=function(p,C){var V,N=QB1(p,(V=C.T)==null?void 0:V.videoInfos);V=p.Ta.getPlaybackRate();return V>1&&N?(p=ugX(p.yn.W,C.T.videoInfos,V),new Cw(0,p,!0,"o")):new Cw(0,0,!1,"o")}; QB1=function(p,C){return C&&g.bH(p.yn)?C.some(function(V){return V.video.fps>32}):!1}; BZe=function(p,C){var V=p.Ta.kd();p.G("html5_use_video_quality_cap_for_ustreamer_constraint")&&V&&V.NK>0&&Ni(C.videoData.l3)&&(p=V.NK,C.videoData.l3=new Cw(0,p,!1,"u"));return C.videoData.l3}; gkX=function(p,C){if(g.bH(p.yn)&&Je(p.yn.W,mw.HEIGHT))var V=C.T.videoInfos[0].video.T;else{var N=!!C.T.T;var H;g.fI(p.yn)&&(H=window.screen&&window.screen.width?new g.KG(window.screen.width,window.screen.height):null);H||(H=p.yn.oi?p.yn.oi.clone():p.Dq.KO());(CK||PI||N)&&H.scale(g.Pg());N=H;hl(C.videoData)||ix(C.videoData);C=C.T.videoInfos;if(C.length){H=g.mi(p.yn.experiments,"html5_override_oversend_fraction")||.85;var X=C[0].video;X.projectionType!=="MESH"&&X.projectionType!=="EQUIRECTANGULAR"&& X.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||ZW||(H=.45);p=g.mi(p.yn.experiments,"html5_viewport_undersend_maximum");for(X=0;X<C.length;X++){V=C[X];var d=V.video;if(N===null||d.width*H<N.width&&d.height*H<N.height){p&&X&&d.width<N.width*p&&d.height<N.height*p&&(V=C[X-1]);break}}N=V.video;V=new Cw(0,V.itag==="93"?g.PB[e9(N.width,N.height)]:N.T,!1,"r")}else V=xB;V=V.T}V&&(V=Math.max(V,360));return new Cw(0,V,!1,"r")}; GG9=function(p,C){var V;a:if((V=C.T)&&V.videoInfos.length){for(var N=g.F(V.videoInfos),H=N.next();!H.done;H=N.next()){H=H.value;var X=void 0;if((X=H.C)==null?0:X.smooth){V=H.video.T;break a}}V=V.videoInfos[0].video.T}else V=0;DZu()&&!g.bH(p.yn)&&Qu(C.T.videoInfos[0])&&(V=Math.min(V,g.PB.large));N=g.mi(p.yn.experiments,"html5_chipset_soft_cap");N>0&&(V=Math.min(V,N));if(N=g.mi(p.yn.experiments,"html5_max_vertical_resolution")){p=4320;for(H=0;H<C.T.videoInfos.length;H++)X=C.T.videoInfos[H],X.video.height> N&&(p=Math.min(p,X.video.T));if(p<4320){for(H=N=0;H<C.T.videoInfos.length;H++)X=C.T.videoInfos[H].video.T,X<p&&(N=Math.max(N,X));N&&(V=Math.min(N,V))}}return new Cw(0,V,!1,"o")}; CFv=function(p,C){var V=4320;!p.yn.C||g.Oe(p.yn)||p.yn.G("hls_for_vod")||p.yn.G("mweb_remove_360p_cap")||(V=g.PB.medium);var N=g.mi(p.yn.experiments,"html5_default_quality_cap");N&&C.T.T&&(p.yn.G("html5_always_apply_default_quality_cap")||!C.videoData.wx&&!C.videoData.vV)&&(V=Math.min(V,N));N=g.mi(p.yn.experiments,"html5_random_playback_cap");var H=/[a-h]$/;N&&H.test(C.videoData.clientPlaybackNonce)&&(V=Math.min(V,N));if(H=N=g.mi(p.yn.experiments,"html5_hfr_quality_cap"))a:{H=C.T;if(H.T){H=g.F(H.videoInfos); for(var X=H.next();!X.done;X=H.next())if(X.value.video.fps>32){H=!0;break a}}H=!1}H&&(V=Math.min(V,N));(N=g.mi(p.yn.experiments,"html5_live_quality_cap"))&&C.videoData.isLivePlayback&&(V=Math.min(V,N));V=puL(p,C,V);p=g.mi(p.yn.experiments,"html5_byterate_soft_cap");return new Cw(0,V===4320?0:V,!1,"d",p)}; jVj=function(p){var C,V,N,H;return g.I(function(X){switch(X.C){case 1:return p.T.T&&typeof((C=navigator.mediaCapabilities)==null?void 0:C.decodingInfo)==="function"?g.y(X,Promise.resolve(),2):X.return(Promise.resolve());case 2:V=g.F(p.T.videoInfos),N=V.next();case 3:if(N.done){X.EY(0);break}H=N.value;return g.y(X,Mpu(H),4);case 4:N=V.next(),X.EY(3)}})}; NXe=function(p,C){if(!C.videoData.C||p.G("html5_disable_performance_downgrade"))return!1;Date.now()-p.D>6E4&&(p.C=0);p.C++;p.D=Date.now();if(p.C!==4)return!1;VPa(p,C.videoData.C);return!0}; XuL=function(p,C,V,N){if(!C||!V||!C.videoData.C)return!1;var H=g.mi(p.yn.experiments,"html5_df_downgrade_thresh"),X=p.G("html5_log_media_perf_info");if(!((0,g.Ip)()-p.S<5E3?0:X||H>0))return!1;var d=((0,g.Ip)()-p.S)/1E3;p.S=(0,g.Ip)();V=V.getVideoPlaybackQuality();if(!V)return!1;var a=V.droppedVideoFrames-p.Y,E=V.totalVideoFrames-p.J;p.Y=V.droppedVideoFrames;p.J=V.totalVideoFrames;var l=V.displayCompositedVideoFrames===0?0:V.displayCompositedVideoFrames||-1;X&&p.yn.Gk()&&p.Ta.k_("ddf",{dr:V.droppedVideoFrames, de:V.totalVideoFrames,comp:l});if(N)return p.T=0,!1;if((E-a)/d>p.Z||!H||g.bH(p.yn))return!1;p.T=(E>60?a/E:0)>H?p.T+1:0;if(p.T!==3)return!1;VPa(p,C.videoData.C);p.Ta.k_("dfd",Object.assign({dr:V.droppedVideoFrames,de:V.totalVideoFrames},HuV()));return!0}; VPa=function(p,C){var V=C.o$,N=C.video.fps,H=C.video.T-1,X=p.V;C=""+V+(N>49?"p60":N>32?"p48":"");V=Z8(V,N,X);H>0&&(V=Math.min(V,H));if(!Ku.has(C)&&nz().includes(C)){var d=V;V=RH();+V[C]>0&&(d=Math.min(+V[C],d));V[C]!==d&&(V[C]=d,g.Yl("yt-player-performance-cap",V,2592E3))}else if(Ku.has(C)||X==null){a:{d=d===void 0?!0:d;N=nz().slice();if(d){if(N.includes(C))break a;N.push(C)}else{if(!N.includes(C))break a;N.splice(N.indexOf(C),1)}g.Yl("yt-player-performance-cap-active-set",N,2592E3)}uo.set(C,V)}else Ku.add(C), X==null||X.set(C,V);p.Ta.Zm()}; Dn=function(p,C){if(!C.T.T)return p.W?new Cw(0,360,!1,"b"):xB;for(var V=!1,N=!1,H=g.F(C.T.videoInfos),X=H.next();!X.done;X=H.next())BB(X.value)?V=!0:N=!0;V=V&&N;N=0;H=g.mi(p.yn.experiments,"html5_performance_cap_floor");H=p.yn.C?240:H;C=g.F(C.T.videoInfos);for(X=C.next();!X.done;X=C.next()){var d=X.value;if(!V||!BB(d))if(X=Z8(d.o$,d.video.fps,p.V),d=d.video.T,Math.max(X,H)>=d){N=d;break}}return new Cw(0,N,!1,"b")}; daY=function(p,C){var V=p.Ta.Uu();return V.isInline()&&!C.pj?new Cw(0,480,!1,"v"):V.isBackground()&&bV()/1E3>60&&!g.bH(p.yn)?new Cw(0,360,!1,"v"):xB}; iuV=function(p,C,V){if(p.yn.experiments.OY("html5_disable_client_autonav_cap_for_onesie")&&C.fetchType==="onesie"||g.bH(p.yn)&&(Y1(-1)>=1080||C.osid))return xB;var N=g.mi(p.yn.experiments,"html5_autonav_quality_cap"),H=g.mi(p.yn.experiments,"html5_autonav_cap_idle_secs");return N&&C.isAutonav&&bV()/1E3>H?(V&&(N=puL(p,V,N)),new Cw(0,N,!1,"e")):xB}; puL=function(p,C,V){if(p.G("html5_optimality_defaults_chooses_next_higher")&&V)for(p=C.T.videoInfos,C=1;C<p.length;C++)if(p[C].video.T<V)return p[C-1].video.T;return V}; hwS=function(p,C){p.G("html5_log_media_perf_info")&&(p.Ta.k_("perfdb",HuV()),p.Ta.k_("sessionperfdb",Object.fromEntries(uo.entries())),p.Ta.k_("playbackperfdb",Object.fromEntries(p.V.entries())),p.Ta.k_("hwc",{nch:navigator.hardwareConcurrency},!0),C&&p.Ta.k_("mcdb",{itags:C.T.videoInfos.filter(function(V){var N;return((N=V.C)==null?void 0:N.smooth)===!1}).map(function(V){return V.itag}).join("-")}))}; HuV=function(){return fG(RH(),function(p){return""+p})}; uF=function(p){g.Y.call(this);var C=this;this.provider=p;this.T=-1;this.W=!1;this.C=-1;this.playerState=new g.cj;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.S=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.N8(this.send,6E4,this);this.V=!1;this.jsErrorCount=0;this.Sr={FS:function(){C.FS()}}; this.FS=function(){C.jsErrorCount++}; g.R(this,this.delay);window.addEventListener("error",this.FS);window.addEventListener("unhandledrejection",this.FS)}; sVv=function(p){p.T>=0||(p.provider.Ta.getVisibilityState()===3?p.W=!0:(p.T=g.Zn(p.provider),p.delay.start()))}; ans=function(p){if(!(p.C<0)){var C=g.Zn(p.provider),V=C-p.S;p.S=C;p.playerState.state===8?p.playTimeSecs+=V:p.playerState.isBuffering()&&!g.r(p.playerState,16)&&(p.rebufferTimeSecs+=V)}}; EbH=function(p){var C;switch((C=p.yn.playerCanaryStage)==null?void 0:C.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; lnY=function(p){return window.PressureObserver&&new window.PressureObserver(p)}; tPa=function(p){p=p===void 0?lnY:p;g.Y.call(this);var C=this;this.C=p(function(N){C.T=N.at(-1)}); var V;this.V=(V=this.C)==null?void 0:V.observe("cpu",{sampleInterval:2E3})}; c6v=function(p){var C={},V=window.h5vcc;C.hwConcurrency=navigator.hardwareConcurrency;p.T&&(C.cpt=p.T.time,C.cps=p.T.state);if(V==null?0:V.cVal)C.cb2s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),C.cb5s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),C.cb30s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return C}; TXX=function(p){var C;g.I(function(V){if(V.C==1)return g.y(V,p.V,2);(C=p.C)==null||C.disconnect();g.JQ(V)})}; J61=function(p,C){C?MPS.test(p):(p=g.sk(p),Object.keys(p).includes("cpn"))}; vbQ=function(p,C,V,N,H,X,d){var a={format:"RAW"},E={};if(l1(p)&&tw()){if(d){var l;((l=maa.uaChPolyfill)==null?void 0:l.state.type)!==2?d=null:(d=maa.uaChPolyfill.state.data.values,d={"Synth-Sec-CH-UA-Arch":d.architecture,"Synth-Sec-CH-UA-Model":d.model,"Synth-Sec-CH-UA-Platform":d.platform,"Synth-Sec-CH-UA-Platform-Version":d.platformVersion,"Synth-Sec-CH-UA-Full-Version":d.uaFullVersion});E=Object.assign(E,d);a.withCredentials=!0}(d=g.pO("EOM_VISITOR_DATA"))?E["X-Goog-EOM-Visitor-Id"]=d:N?E["X-Goog-Visitor-Id"]= N:g.pO("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=g.pO("VISITOR_DATA"));V&&(E["X-Goog-PageId"]=V);(N=C.sY)&&!$S(C)&&(E["X-Goog-AuthUser"]=N);H&&(E.Authorization="Bearer "+H);C.G("enable_datasync_id_header_in_web_vss_pings")&&C.K$&&C.datasyncId&&(E["X-YouTube-DataSync-Id"]=C.datasyncId);d||E["X-Goog-Visitor-Id"]||H||V||N?a.withCredentials=!0:C.G("html5_send_cpn_with_options")&&MPS.test(p)&&(a.withCredentials=!0)}Object.keys(E).length>0&&(a.headers=E);X&&(a.onFinish=X);return Object.keys(a).length>1? a:null}; Fse=function(p,C,V,N,H,X,d,a){tw()&&V.token&&(p=aK(p,{ctt:V.token,cttype:V.Tg,mdx_environment:V.mdxEnvironment}));N.G("net_pings_low_priority")&&(C||(C={}),C.priority="low");X||a&&N.G("nwl_skip_retry")?(C==null?C={}:J61(p,N.G("html5_assert_cpn_with_regex")),d?iV().sendAndWrite(p,C):iV().sendThenWrite(p,C,a)):C?(J61(p,N.G("html5_assert_cpn_with_regex")),N.G("net_pings_use_fetch")?lAY(p,C):g.qU(p,C)):g.BC(p,H)}; SZS=function(p){for(var C=[],V=0;V<p;V++){for(var N={},H=Math.floor(Math.random()*9*1E8)+1E8,X="",d=0;d<9;d++)X+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];N.videoDecoderName=X;N.elapsedTimeMs=H;C.push(N)}return C}; UZ=function(p,C){var V,N;return!!((V=window.h5vcc)==null?0:(N=V.settings)==null?0:N.set(p,C))}; Da1=function(){var p,C,V,N=(p=window.h5vcc)==null?void 0:(C=p.settings)==null?void 0:(V=C.getPersistentSettingAsString)==null?void 0:V.call(C,"cpu_usage_tracker_intervals");if(N!=null){var H;p=(H=JSON.parse(N))!=null?H:[];H=p.filter(function(l){return l.type==="total"}).map(function(l){return l.seconds}); C=g.F(KsV);for(V=C.next();!V.done;V=C.next())V=V.value,H.indexOf(V)===-1&&p.push({type:"total",seconds:V});var X,d;(X=window.h5vcc)==null||(d=X.settings)==null||d.set("cpu_usage_tracker_intervals_enabled",1);var a,E;(a=window.h5vcc)==null||(E=a.settings)==null||E.set("cpu_usage_tracker_intervals",JSON.stringify(p))}}; u9a=function(){var p=window.H5vccPlatformService,C="";if(p&&p.has("dev.cobalt.coat.clientloginfo")&&(p=p.open("dev.cobalt.coat.clientloginfo",function(){}))){var V=p.send(new ArrayBuffer(0)); V&&(C=String.fromCharCode.apply(String,g.K(new Uint8Array(V))));p.close()}return C}; g.yb=function(p,C){g.Y.call(this);var V=this;this.provider=p;this.logger=new g.HI("qoe");this.T={};this.sequenceNumber=1;this.Y=NaN;this.g7="N";this.Z=this.uC=this.Er=this.ER=this.W=0;this.Q$=this.Ga=this.D=this.R$="";this.qW=this.Y_=NaN;this.wy=0;this.va=-1;this.VZ=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.X$=this.isEmbargoed=this.Sa=this.isOffline=this.isBuffering=!1;this.I6=[];this.b_=null;this.qo=this.V=this.Qn=this.J=!1;this.C=-1;this.UY=!1;this.RN=new g.N8(this.ek,750,this);this.a$=this.adCpn= this.sY=this.contentCpn="";this.adFormat=void 0;this.kt=0;this.QZ=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.FO=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Wc=!1;this.YM=NaN;this.Wr=0;this.kM=!1;this.Vn=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Hc=!1;this.Sr={d5:function(H){V.d5(H)}, qx$:function(){return V.S}, Zr:function(){return V.contentCpn}, Py$:function(){return V.sY}, reportStats:function(){V.reportStats()}, hTx:function(){return V.T.cat}, IV:function(H){return V.T[H]}, fIS:function(){return V.Vn}}; var N=g.mi(this.provider.yn.experiments,"html5_qoe_proto_mock_length");N&&!fu.length&&(fu=SZS(N));g.R(this,this.RN);try{navigator.getBattery().then(function(H){V.b_=H})}catch(H){}g.OZ(this,0,"vps",["N"]); p.yn.Gk()&&(this.Wr=(0,g.Ip)(),this.YM=g.Se(function(){var H=(0,g.Ip)(),X=H-V.Wr;X>500&&V.k_("vmlock",{diff:X.toFixed()});V.Wr=H},250)); p.Ta.RI()&&C&&(this.Vn=C-Math.round(g.Zn(p)*1E3));this.provider.videoData.wx&&(this.remoteControlMode=ZuY[this.provider.videoData.wx]||0);this.provider.videoData.eH&&(C=o6S(this.provider.videoData.eH),C==null?0:C.length)&&(this.remoteConnectedDevices=C);if(p.yn.Gk()||p.G("html5_log_cpu_info"))this.KS=new tPa,g.R(this,this.KS)}; g.OZ=function(p,C,V,N){var H=p.T[V];H||(H=[],p.T[V]=H);H.push(C.toFixed(3)+":"+N.join(":"))}; Uae=function(p,C){var V=p.adCpn||p.provider.videoData.clientPlaybackNonce,N=p.provider.getCurrentTime(V);g.OZ(p,C,"cmt",[N.toFixed(3)]);N=p.provider.I_(V);if(p.S&&N*1E3>p.S.Tr+100&&p.S){var H=p.S;V=H.isAd;N=N*1E3-H.Tr;p.vr=C*1E3-H.j6_-N-H.pVn;H=(0,g.Ip)()-N;C=p.vr;N=p.provider.videoData;var X=N.isAd();if(V||X){X=(V?"ad":"video")+"_to_"+(X?"ad":"video");var d={};N.Y&&(d.cttAuthInfo={token:N.Y,videoId:N.videoId});d.startTime=H-C;XA(X,d);g.HH({targetVideoId:N.videoId,targetCpn:N.clientPlaybackNonce}, X);NR("pbs",H,X)}else H=p.provider.Ta.W6(),H.Y!==N.clientPlaybackNonce?(H.W=N.clientPlaybackNonce,H.C=C):N.rR()||g.eG(new g.Bw("CSI timing logged before gllat",{cpn:N.clientPlaybackNonce}));p.k_("gllat",{l:p.vr.toFixed(),prev_ad:+V});delete p.S}}; qa=function(p,C){C=C===void 0?NaN:C;C=C>=0?C:g.Zn(p.provider);var V=p.provider.Ta.sS(),N=V.mP-(p.Y_||0);N>0&&g.OZ(p,C,"bwm",[N,(V.pT-(p.qW||0)).toFixed(3)]);isNaN(p.Y_)&&V.mP&&p.isOffline&&p.d5(!1);p.Y_=V.mP;p.qW=V.pT;isNaN(V.bandwidthEstimate)||g.OZ(p,C,"bwe",[V.bandwidthEstimate.toFixed(0)]);p.provider.yn.Gk()&&Object.keys(V.T).length!==0&&p.k_("bwinfo",V.T);if(p.provider.yn.Gk()||p.provider.yn.G("html5_log_meminfo"))N=BSj(),Object.values(N).some(function(X){return X!==void 0})&&p.k_("meminfo", N); if(p.provider.yn.Gk()||p.provider.yn.G("html5_log_cpu_info")){var H;(N=(H=p.KS)==null?void 0:c6v(H))&&Object.values(N).some(function(X){return X!=null})&&p.k_("cpuinfo",N)}p.b_&&g.OZ(p,C,"bat",[p.b_.level, p.b_.charging?"1":"0"]);H=p.provider.Ta.getVisibilityState();p.va!==H&&(g.OZ(p,C,"vis",[H]),p.va=H);Uae(p,C);(H=fnL(p.provider))&&H!==p.wy&&(g.OZ(p,C,"conn",[H]),p.wy=H);Ou1(p,C,V)}; Ou1=function(p,C,V){if(!isNaN(V.eA)){var N=V.eA;V.C<N&&(N=V.C);g.OZ(p,C,"bh",[N.toFixed(3)])}}; y6v=function(p,C,V){g.pk(p.provider.yn,g.XE(p.provider.videoData)).then(function(N){var H=!1;if(C.includes("&dt=")||C.includes("&cotn=")){if(p.provider.yn.G("kevlar_woffle")||p.provider.yn.G("qoe_nwl_downloads"))H=!0}else p.provider.yn.G("qoe_with_networkless")&&(H=!0);var X=p.provider.yn.G("qoe_send_and_write"),d=p.provider.yn;N=vbQ(C,d,p.provider.yn.pageId,p.provider.yn.sendVisitorIdHeader?p.provider.videoData.visitorData:void 0,N);d.G("html5_simplify_pings")&&(N=N||{});N?(N.method="POST",N.postBody= V,Fse(C,N,{token:p.provider.videoData.Y,Tg:p.provider.videoData.B_,mdxEnvironment:p.provider.videoData.mdxEnvironment},d,void 0,H,X&&p.Sa)):H?(H=p.provider.yn.G("networkless_ajax"),d={method:"POST",postBody:V},X&&p.Sa?iV().sendAndWrite(C,d):H?g.qU(C,{method:"POST",postBody:V}):iV().sendThenWrite(C,d)):(X=V,X=X===void 0?"":X,lD9(C,X)||g.BC(C,void 0,void 0,void 0,X))})}; qZY=function(p){for(var C=0,V=g.F(Object.keys(p.T)),N=V.next();!N.done;N=V.next())N=N.value,C+=N.length+Number(kc(p.T[N],function(H,X){return H+X.length},0)); C>96E3&&(new g.N8(p.reportStats,0,p)).start()}; Inu=function(p){p.provider.videoData.QZ&&IV(p,"prefetch");p.provider.videoData.wy&&p.k_("reload",{r:p.provider.videoData.reloadReason,ct:p.provider.videoData.wy});p.provider.videoData.qo&&IV(p,"monitor");p.provider.videoData.isLivePlayback&&IV(p,"live");gB&&IV(p,"streaming");p.provider.videoData.wx&&p.k_("ctrl",{mode:p.provider.videoData.wx},!0);if(p.provider.videoData.eH){var C=p.provider.videoData.eH.replace(/,/g,"_");p.k_("ytp",{type:C},!0)}p.provider.videoData.A0&&(C=p.provider.videoData.A0.replace(/,/g, "."),p.k_("ytrexp",{ids:C},!0));var V=p.provider.videoData;C=p.provider.yn.G("enable_white_noise")||p.provider.yn.G("enable_webgl_noop");V=g.c_(V)||g.UW(V)||g.ff(V)||g.OW(V);(C||V)&&(C=(0,g.bF)())&&(p.T.gpu=[C]);ix(p.provider.videoData)&&g.OZ(p,g.Zn(p.provider),"dt",["1"]);p.provider.yn.Gk()&&(C=(0,g.Ip)()-p.provider.yn.d6,p.k_("playerage",{secs:Math.pow(1.6,Math.round(Math.log(C/1E3)/Math.log(1.6))).toFixed()}));p.V=!0;p.Y=g.Se(function(){p.reportStats()},1E4)}; A6L=function(p,C,V){var N=g.Zn(p.provider);buL(p,N,C,0,V);qa(p,N);qZY(p)}; buL=function(p,C,V,N,H){var X=p.provider.yn.T.cbrver;p.provider.yn.T.cbr==="Chrome"&&/^96[.]/.test(X)&&V==="net.badstatus"&&/rc\.500/.test(H)&&ob9(p,3);p.provider.yn.G("html5_use_ump")&&/b248180278/.test(H)&&ob9(p,4);X=p.provider.getCurrentTime(p.adCpn||p.provider.videoData.clientPlaybackNonce);N=N===1?"fatal":"";V=[V,N,X.toFixed(3)];N&&(H+=";a6s."+U0());H&&V.push(kK9(H));g.OZ(p,C,"error",V);p.V=!0}; xaQ=function(p){p.C>=0||(p.provider.yn.W1||p.provider.Ta.getVisibilityState()!==3?p.C=g.Zn(p.provider):p.UY=!0)}; YZj=function(p,C,V,N){if(V!==p.g7){C<p.W||(p.g7==="PL"?p.playTimeSecs+=C-p.W:p.g7==="B"&&p.isBuffering&&(p.isBuffering=!1,p.rebufferTimeSecs+=C-p.ER,!p.X$&&p.rebufferTimeSecs>=10&&p.playTimeSecs<=180&&(p.T.qoealert=["1"],p.X$=!0)),V!=="B"||p.g7!=="PL"&&p.g7!=="PB"||(p.isBuffering=!0),p.W=C);p.g7==="PL"&&(V==="B"||V==="S")||p.provider.yn.Gk()?qa(p,C):(p.Wc||V!=="PL"||(p.Wc=!0,Ou1(p,C,p.provider.Ta.sS())),Uae(p,C));V==="PL"&&g.HF(p.RN);var H=[V];V==="S"&&N&&H.push("ss."+N);g.OZ(p,C,"vps",H);p.g7=V; p.ER=C;p.W=C;p.V=!0}}; IV=function(p,C){var V=p.T.cat||[];V.push(C);p.T.cat=V}; A6=function(p,C,V,N,H,X){var d=g.Zn(p.provider);V!==1&&V!==3&&V!==5||g.OZ(p,d,"vps",[p.g7]);var a=p.T.xvt||[];a.push("t."+d.toFixed(3)+";m."+X.toFixed(3)+";g."+C+";tt."+V+";np.0;c."+N+";d."+H);p.T.xvt=a}; ob9=function(p,C){if(!p.qo){var V=p.T.fcnz;V||(V=[],p.T.fcnz=V);V.push(String(C));p.qo=!0}}; kK9=function(p){/[^a-zA-Z0-9;.!_-]/.test(p)&&(p=p.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return p}; zwX=function(p){this.provider=p;this.D=!1;this.T=0;this.S=-1;this.yP=NaN;this.V=0;this.segments=[];this.Y=this.W=0;this.previouslyEnded=!1;this.Z=this.provider.Ta.getVolume();this.J=this.provider.Ta.isMuted()?1:0;this.C=oV(this.provider)}; kb=function(p){p.C.startTime=p.V;p.C.endTime=p.T;var C=!1;p.segments.length&&g.wY(p.segments).isEmpty()?(p.segments[p.segments.length-1].previouslyEnded&&(p.C.previouslyEnded=!0),p.segments[p.segments.length-1]=p.C,C=!0):p.segments.length&&p.C.isEmpty()||(p.segments.push(p.C),C=!0);C?p.C.endTime===0&&(p.previouslyEnded=!1):p.C.previouslyEnded&&(p.previouslyEnded=!0);p.W+=p.T-p.V;p.C=oV(p.provider);p.C.previouslyEnded=p.previouslyEnded;p.previouslyEnded=!1;p.V=p.T}; nb9=function(p){Rws(p);p.Y=g.Se(function(){p.update()},100); p.yP=g.Zn(p.provider);p.C=oV(p.provider)}; Rws=function(p){g.Dr(p.Y);p.Y=NaN}; ewY=function(p,C,V){V-=p.yP;return C===p.T&&V>.5}; PFe=function(p,C,V,N){this.yn=C;this.Q$=V;this.segments=[];this.experimentIds=[];this.R$=this.Hc=this.isFinal=this.delayThresholdMet=this.Wc=this.va=this.autoplay=this.autonav=!1;this.wy="yt";this.D=[];this.Y=this.Z=null;this.sendVisitorIdHeader=this.UY=!1;this.J=this.pageId="";this.W=V==="watchtime";this.V=V==="playback";this.sY=V==="atr";this.f9=V==="engage";this.sendVisitorIdHeader=!1;this.uri=this.sY?"/api/stats/"+V:"//"+C.jS+"/api/stats/"+V;N&&(this.Hc=N.fs,N.rtn&&(this.Y=N.rtn),this.W?(this.playerState= N.state,N.rti>0&&(this.Z=N.rti)):(this.W1=N.mos,this.jZ=N.volume,N.at&&(this.adType=N.at)),N.autonav&&(this.autonav=N.autonav),N.inview!=null&&(this.VZ=N.inview),N.size&&(this.qW=N.size),N.playerwidth&&(this.playerWidth=N.playerwidth),N.playerheight&&(this.playerHeight=N.playerheight));this.FO=g.zh(C.T);this.J=Wb(C.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.J==="all"||this.J==="once")this.kM=g.zh(C.wy);this.iW=C.X$;this.experimentIds=F$9(C.experiments);this.Y_=C.ER;this.wy=C.a$;this.region= C.region;this.userAge=C.userAge;this.Qn=C.AX;this.I6=bV();this.sendVisitorIdHeader=C.sendVisitorIdHeader;this.Vn=C.G("vss_pings_using_networkless")||C.G("kevlar_woffle");this.hE=C.G("vss_final_ping_send_and_write");this.Sa=C.G("vss_use_send_and_write");this.pageId=C.pageId;this.i8=C.G("vss_playback_use_send_and_write");C.livingRoomAppMode&&(this.livingRoomAppMode=C.livingRoomAppMode);this.o6=C.S&&C.G("embeds_append_synth_ch_headers");g.KI(C)&&(this.vr=C.Sa);g.cw(g.Ig(C))&&this.D.push(1);this.accessToken= g.XE(p);p.SE[this.Q$]?this.S=p.SE[this.Q$]:p.SE.playback&&(this.S=p.SE.playback);this.adFormat=p.adFormat;this.adQueryId=p.adQueryId;this.autoplay=Hk(p);this.V&&(this.va=(p.G("html5_enable_log_server_autoplay")||p.G("enable_cleanup_masthead_autoplay_hack_fix"))&&p.dP&&B_(p)==="adunit"?!0:!1);this.autonav=p.isAutonav||this.autonav;this.contentVideoId=Vk(p);this.clientPlaybackNonce=p.clientPlaybackNonce;this.Wc=p.UV;p.Y&&(this.a$=p.Y,this.X$=p.B_);p.mdxEnvironment&&(this.mdxEnvironment=p.mdxEnvironment); this.T=p.hg;this.ER=p.ER;p.C&&(this.QZ=p.C.itag,p.S&&p.S.itag!==this.QZ&&(this.qo=p.S.itag));p.T&&sc(p.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=B_(p);this.R$=p.FT?!1:p.va;this.kt=p.Um;if(C=v_(p))this.d6=C;this.cV=p.JV;this.partnerId=p.partnerId;this.eventId=p.eventId;this.playlistId=p.fY||p.playlistId;this.Aa=p.Aa;this.wx=p.wx;this.eH=p.eH;this.vK=p.vK;this.subscribed=p.subscribed;this.videoId=p.videoId;this.videoMetadata=p.videoMetadata;this.visitorData=p.visitorData;this.osid=p.osid; this.hm=p.hm;this.referrer=p.referrer;this.MR=p.pz||p.MR;this.KS=p.ym;this.Vs=p.Vs;this.userGenderAge=p.userGenderAge;this.Z4=p.Z4;this.embedsRct=p.embedsRct;this.embedsRctn=p.embedsRctn;g.KI(this.yn)&&p.mutedAutoplay&&this.D.push(2);p.isEmbedsShortsMode(new g.KG(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.D.push(3);g.t_(p)&&this.D.push(4);this.Ga=p.pC;p.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=p.compositeLiveIngestionOffsetToken)}; wu9=function(p,C){var V=p.sendVisitorIdHeader?p.visitorData:void 0;return g.pk(p.yn,p.accessToken).then(function(N){return vbQ(p.uri,p.yn,p.pageId,V,N,C,p.o6)})}; gba=function(p,C){return function(){p.yn.G("html5_simplify_pings")?(p.T=p.Wr,p.RN=C(),p.I6=0,p.send()):wu9(p).then(function(V){var N=$a1(p);N.cmt=N.len;N.lact="0";var H=C().toFixed(3);N.rt=Number(H).toString();N=g.GD(p.uri,N);p.yn.G("vss_through_gel_double")&&Lse(N);p.Vn?(V==null&&(V={}),p.Sa?iV().sendAndWrite(N,V):iV().sendThenWrite(N,V)):V?g.qU(N,V):g.BC(N)})}}; $a1=function(p){var C={ns:p.wy,el:p.eventLabel,cpn:p.clientPlaybackNonce,ver:2,cmt:p.C(p.T),fmt:p.QZ,fs:p.Hc?"1":"0",rt:p.C(p.RN),adformat:p.adFormat,content_v:p.contentVideoId,euri:p.iW,lact:p.I6,live:p.d6,cl:(706555921).toString(),mos:p.W1,state:p.playerState,volume:p.jZ};p.subscribed&&(C.subscribed="1");Object.assign(C,p.FO);p.J==="all"?Object.assign(C,p.kM):p.J==="once"&&p.V&&Object.assign(C,p.kM);p.autoplay&&(C.autoplay="1");p.va&&(C.sautoplay="1");p.Wc&&(C.dni="1");!p.W&&p.vr&&(C.epm=Wsy[p.vr]); p.isFinal&&(C["final"]="1");p.R$&&(C.splay="1");p.ER&&(C.delay=p.ER);p.Y_&&(C.hl=p.Y_);p.region&&(C.cr=p.region);p.userGenderAge&&(C.uga=p.userGenderAge);p.userAge!==void 0&&p.Qn&&(C.uga=p.Qn+p.userAge);p.Wr!==void 0&&(C.len=p.C(p.Wr));!p.W&&p.experimentIds.length>0&&(C.fexp=p.experimentIds.toString());p.Y!==null&&(C.rtn=p.C(p.Y));p.MR&&(C.feature=p.MR);p.wx&&(C.ctrl=p.wx);p.eH&&(C.ytr=p.eH);p.qo&&(C.afmt=p.qo);p.offlineDownloadUserChoice&&(C.ODUC=p.offlineDownloadUserChoice);p.YM&&(C.lio=p.C(p.YM)); p.W?(C.idpj=p.kt,C.ldpj=p.cV,p.delayThresholdMet&&(C.dtm="1"),p.Z!=null&&(C.rti=p.C(p.Z)),p.Z4&&(C.ald=p.Z4),p.compositeLiveIngestionOffsetToken&&(C.clio=p.compositeLiveIngestionOffsetToken)):p.adType!==void 0&&(C.at=p.adType);p.qW&&(p.V||p.W)&&(C.size=p.qW);p.V&&p.D.length&&(C.pbstyle=p.D.join(","));p.VZ!=null&&(p.V||p.W)&&(C.inview=p.C(p.VZ));p.W&&(C.volume=xb(p,g.AU(p.segments,function(N){return N.volume})),C.st=xb(p,g.AU(p.segments,function(N){return N.startTime})),C.et=xb(p,g.AU(p.segments,function(N){return N.endTime})), Yo(p.segments,function(N){return N.playbackRate!==1})&&(C.rate=xb(p,g.AU(p.segments,function(N){return N.playbackRate}))),Yo(p.segments,function(N){return N.T!=="-"})&&(C.als=g.AU(p.segments,function(N){return N.T}).join(",")),Yo(p.segments,function(N){return N.previouslyEnded})&&(C.pe=g.AU(p.segments,function(N){return""+ +N.previouslyEnded}).join(","))); C.muted=xb(p,g.AU(p.segments,function(N){return N.muted?1:0})); Yo(p.segments,function(N){return N.visibilityState!==0})&&(C.vis=xb(p,g.AU(p.segments,function(N){return N.visibilityState}))); Yo(p.segments,function(N){return N.connectionType!==0})&&(C.conn=xb(p,g.AU(p.segments,function(N){return N.connectionType}))); Yo(p.segments,function(N){return N.C!==0})&&(C.blo=xb(p,g.AU(p.segments,function(N){return N.C}))); Yo(p.segments,function(N){return!!N.V})&&(C.blo=g.AU(p.segments,function(N){return N.V}).join(",")); Yo(p.segments,function(N){return!!N.compositeLiveStatusToken})&&(C.cbs=g.AU(p.segments,function(N){return N.compositeLiveStatusToken}).join(",")); Yo(p.segments,function(N){return N.W!=="-"})&&(C.cc=g.AU(p.segments,function(N){return N.W}).join(",")); Yo(p.segments,function(N){return N.clipId!=="-"})&&(C.clipid=g.AU(p.segments,function(N){return N.clipId}).join(",")); if(Yo(p.segments,function(N){return!!N.S})){var V="au"; p.V&&(V="au_d");C[V]=g.AU(p.segments,function(N){return N.S}).join(",")}tw()&&p.a$&&(C.ctt=p.a$,C.cttype=p.X$,C.mdx_environment=p.mdxEnvironment); p.f9&&(C.etype=p.b_!==void 0?p.b_:0);p.KS&&(C.uoo=p.KS);p.livingRoomAppMode&&p.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(C.clram=QVe[p.livingRoomAppMode]||p.livingRoomAppMode);p.S?r6S(p,C):(C.docid=p.videoId,C.referrer=p.referrer,C.ei=p.eventId,C.of=p.hm,C.osid=p.osid,C.vm=p.videoMetadata,p.adQueryId&&(C.aqi=p.adQueryId),p.autonav&&(C.autonav="1"),p.playlistId&&(C.list=p.playlistId),p.vK&&(C.ssrt="1"),p.Vs&&(C.upt=p.Vs));p.V&&(p.embedsRct&&(C.rct=p.embedsRct),p.embedsRctn&&(C.rctn= p.embedsRctn),p.compositeLiveIngestionOffsetToken&&(C.clio=p.compositeLiveIngestionOffsetToken));p.Ga&&(C.host_cpn=p.Ga);return C}; r6S=function(p,C){if(C&&p.S){var V=new Set(["q","feature","mos"]),N=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),H=new Set(["aqi","autonav","list","ssrt","upt"]);p.S.ns==="3pp"&&(C.ns="3pp");for(var X=g.F(Object.keys(p.S)),d=X.next();!d.done;d=X.next())d=d.value,N.has(d)||V.has(d)||H.has(d)&&!p.S[d]||(C[d]=p.S[d])}}; xb=function(p,C){return g.AU(C,p.C).join(",")}; Lse=function(p){p.indexOf("watchtime")!==-1&&g.t1("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:p}})}; BXY=function(p,C){p.attestationResponse&&wu9(p).then(function(V){V=V||{};V.method="POST";V.postParams={atr:p.attestationResponse};p.Vn?p.Sa?iV().sendAndWrite(C,V):iV().sendThenWrite(C,V):g.qU(C,V)})}; Yb=function(p){g.Y.call(this);this.provider=p;this.Y="paused";this.W=NaN;this.D=[10,10,10,40];this.Z=this.J=0;this.b_=this.Vn=this.sY=this.a$=this.V=!1;this.C=this.S=NaN;this.T=new zwX(p)}; jia=function(p){if(!p.V){p.provider.videoData.uK===16623&&g.eG(Error("Playback for EmbedPage"));var C=zK(p,"playback");a:{if(p.provider.yn.G("web_player_use_server_vss_schedule")){var V,N=(V=p.provider.videoData.getPlayerResponse())==null?void 0:V.playbackTracking,H=N==null?void 0:N.videostatsScheduledFlushWalltimeSeconds;N=N==null?void 0:N.videostatsDefaultFlushIntervalSeconds;if(H&&H.length>0&&N){V=[];var X=p.provider.videoData.Um,d=p.provider.videoData.JV,a=-X;H=g.F(H);for(var E=H.next();!E.done;E= H.next())E=E.value,V.push(E-a),a=E;V.push(N+d-X);V.push(N);p.D=V;break a}}p.D=[10+p.provider.videoData.Um,10,10,40+p.provider.videoData.JV-p.provider.videoData.Um,40]}nb9(p.T);C.Y=RV(p);p.C>0&&(C.T-=p.C);C.send();p.provider.videoData.jL&&(C=p.provider.yn,N=p.provider.videoData,V={html5:"1",video_id:N.videoId,cpn:N.clientPlaybackNonce,ei:N.eventId,ptk:N.jL,oid:N.LI,ptchn:N.WL,pltype:N.NU,content_v:Vk(N)},N.E5&&Object.assign(V,{m:N.E5}),C=g.GD(C.Vn+"ptracking",V),GKY(p,C));p.provider.videoData.ER|| (pOs(p),CYQ(p),p.v8());p.V=!0;C=p.T;C.T=C.provider.Ta.I_();C.yP=g.Zn(C.provider);!(C.V===0&&C.T<5)&&C.T-C.V>2&&(C.V=C.T);C.D=!0;p.provider.yn.G("html5_log_vss_details")&&p.provider.Ta.k_("vssinit",{})}}; RV=function(p,C){C=C===void 0?NaN:C;var V=g.Zn(p.provider);C=isNaN(C)?V:C;C=Math.ceil(C);var N=p.D[p.J];p.J+1<p.D.length&&p.J++;var H=C+N;p.W=g.F5(function(){if(!p.fS()){p.W=NaN;var X=Vts(p),d=NLY(p,X);d.Z=H;var a=p.Z>1E3;!(X.length>1)&&X[0].isEmpty()||a||(d.Y=RV(p,H));d.send();p.Z++}},(H-V)*1E3); return p.S=H}; nu=function(p){g.KO(p.W);p.W=NaN}; Vts=function(p){p.T.update();p=p.T;p.segments.length&&p.T===p.V||kb(p);var C=p.segments;p.segments=[];return C}; zK=function(p,C){var V=H$e(p.provider);Object.assign(V,{state:p.Y});C=new PFe(p.provider.videoData,p.provider.yn,C,V);C.T=p.provider.Ta.I_();V=p.provider.videoData.clientPlaybackNonce;C.T=p.provider.Ta.cJ(V);p.provider.videoData.isLivePlayback||(C.Wr=p.provider.Ta.getDuration(V));p.provider.videoData.T&&(V=p.provider.videoData.T.Xt(C.T))&&(C.YM=V-C.T);C.RN=g.Zn(p.provider);C.segments=[oV(p.provider)];return C}; NLY=function(p,C){var V=zK(p,"watchtime");XOV(p)&&(V.delayThresholdMet=!0,p.sY=!0);if(p.C>0){for(var N=g.F(C),H=N.next();!H.done;H=N.next())H=H.value,H.startTime-=p.C,H.endTime-=p.C;V.T-=p.C}else V.T=p.T.rl();V.segments=C;return V}; eP=function(p,C){var V=dT9(p,!isNaN(p.S));C&&(p.S=NaN);return V}; dT9=function(p,C){var V=NLY(p,Vts(p));!isNaN(p.S)&&C&&(V.Z=p.S);return V}; XOV=function(p){var C;if(C=p.provider.videoData.isLoaded()&&p.provider.videoData.ER&&p.V&&!p.sY)C=p.T,C=C.W+C.provider.Ta.I_()-C.V>=p.provider.videoData.ER;return!!C}; pOs=function(p){p.provider.videoData.youtubeRemarketingUrl&&!p.Vn&&(GKY(p,p.provider.videoData.youtubeRemarketingUrl),p.Vn=!0)}; CYQ=function(p){p.provider.videoData.googleRemarketingUrl&&!p.b_&&(GKY(p,p.provider.videoData.googleRemarketingUrl),p.b_=!0)}; i$y=function(p){p.provider.yn.G("html5_log_vss_details")&&p.provider.Ta.k_("vssfi",{});if(!p.fS()&&p.V){p.Y="paused";var C=eP(p);C.isFinal=!0;C.send();p.dispose()}}; h2y=function(p,C){if(!p.fS())if(g.r(C.state,2)||g.r(C.state,512)){if(p.Y="paused",g.u$(C,2)||g.u$(C,512))g.u$(C,2)&&(p.T.previouslyEnded=!0),p.V&&(nu(p),eP(p).send(),p.S=NaN)}else if(g.r(C.state,8)){p.Y="playing";var V=p.V&&isNaN(p.W)?RV(p):NaN;!isNaN(V)&&(D7(C,64)<0||D7(C,512)<0)&&(p=dT9(p,!1),p.Y=V,p.send())}else p.Y="paused"}; si1=function(p,C,V){if(!p.a$){V||(V=zK(p,"atr"));V.attestationResponse=C;try{V.send()}catch(N){if(N.message!=="Unknown Error")throw N;}p.a$=!0}}; GKY=function(p,C){var V=p.provider.yn;g.pk(p.provider.yn,g.XE(p.provider.videoData)).then(function(N){var H=p.provider.yn.pageId,X=p.provider.yn.sendVisitorIdHeader?p.provider.videoData.visitorData:void 0,d=p.provider.yn.G("vss_pings_using_networkless")||p.provider.yn.G("kevlar_woffle"),a=p.provider.yn.G("allow_skip_networkless");N=vbQ(C,V,H,X,N);Fse(C,N,{token:p.provider.videoData.Y,Tg:p.provider.videoData.B_,mdxEnvironment:p.provider.videoData.mdxEnvironment},V,void 0,d&&!a,!1,!0)})}; a_L=function(){this.endTime=this.startTime=-1;this.W="-";this.playbackRate=1;this.visibilityState=0;this.S="";this.C=0;this.compositeLiveStatusToken=this.V=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1}; Pu=function(p,C,V){this.videoData=p;this.yn=C;this.Ta=V;this.T=void 0}; g.Zn=function(p){return Em9(p)()}; Em9=function(p){if(!p.T){var C=g.Wv(function(N){var H=(0,g.Ip)();N&&H<=631152E6&&(p.Ta.k_("ytnerror",{issue:28799967,value:""+H}),H=(new Date).getTime()+2);return H},p.yn.G("html5_validate_yt_now")),V=C(); p.T=function(){return Math.round(C()-V)/1E3}; p.Ta.jf()}return p.T}; H$e=function(p){var C=p.Ta.St()||{};C.fs=p.Ta.jE();C.volume=p.Ta.getVolume();C.muted=p.Ta.isMuted()?1:0;C.mos=C.muted;C.clipid=p.Ta.t7();var V;C.playerheight=((V=p.Ta.getPlayerSize())==null?void 0:V.height)||0;var N;C.playerwidth=((N=p.Ta.getPlayerSize())==null?void 0:N.width)||0;p=p.videoData;V={};p.C&&(V.fmt=p.C.itag,p.S&&(p.VZ?p.S.itag!==p.C.itag:p.S.itag!=p.C.itag)&&(V.afmt=p.S.itag));V.ei=p.eventId;V.list=p.playlistId;V.cpn=p.clientPlaybackNonce;p.videoId&&(V.v=p.videoId);p.tB&&(V.infringe=1); (p.FT?0:p.va)&&(V.splay=1);(N=v_(p))&&(V.live=N);p.dP&&(V.sautoplay=1);p.X4&&(V.autoplay=1);p.Aa&&(V.sdetail=p.Aa);p.partnerId&&(V.partnerid=p.partnerId);p.osid&&(V.osid=p.osid);p.Hv&&(V.cc=g.OaY(p.Hv));return Object.assign(C,V)}; fnL=function(p){var C=tpV();if(C)return l_v[C]||l_v.other;if(g.bH(p.yn)){p=navigator.userAgent;if(/[Ww]ireless[)]/.test(p))return 3;if(/[Ww]ired[)]/.test(p))return 30}return 0}; oV=function(p){var C=new a_L,V;C.W=((V=H$e(p).cc)==null?void 0:V.toString())||"-";C.playbackRate=p.Ta.getPlaybackRate();V=p.Ta.getVisibilityState();V!==0&&(C.visibilityState=V);p.yn.Wc&&(C.C=1);C.V=p.videoData.gW;C.compositeLiveStatusToken=p.videoData.compositeLiveStatusToken;V=p.Ta.getAudioTrack();V.K4&&V.K4.id&&V.K4.id!=="und"&&(C.S=V.K4.id);C.connectionType=fnL(p);C.volume=p.Ta.getVolume();C.muted=p.Ta.isMuted();C.clipId=p.Ta.t7()||"-";C.T=p.videoData.qF||"-";return C}; g.wX=function(p,C){g.Y.call(this);var V=this;this.provider=p;this.S=!1;this.V=new Map;this.g7=new g.cj;this.Sr={CLo:function(){return V.qoe}, it_:function(){return V.T}, Qca:function(){return V.C}}; this.provider.videoData.GN()&&!this.provider.videoData.BI&&(this.T=new Yb(this.provider),this.T.C=this.provider.videoData.kt/1E3,g.R(this,this.T),this.qoe=new g.yb(this.provider,C),g.R(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.tp=this.provider.videoData.clientPlaybackNonce)&&this.V.set(this.tp,this.T));if(p.yn.playerCanaryState==="canary"||p.yn.playerCanaryState==="holdback")this.C=new uF(this.provider),g.R(this,this.C)}; ttS=function(p){return!!p.T&&!!p.qoe}; $b=function(p){p.C&&sVv(p.C);p.qoe&&xaQ(p.qoe)}; cHL=function(p){if(p.qoe){p=p.qoe;for(var C=p.provider.videoData,V=p.provider.yn,N=g.F(V.i8),H=N.next();!H.done;H=N.next())IV(p,H.value);if(p.provider.G("html5_enable_qoe_cat_list"))for(N=g.F(C.cP),H=N.next();!H.done;H=N.next())IV(p,H.value);else C.i8&&IV(p,p.provider.videoData.i8);C.p4()&&(N=C.T,Ge(C)&&IV(p,"manifestless"),N&&Jz(N)&&IV(p,"live-segment-"+Jz(N).toFixed(1)));$B(C)?IV(p,"sabr"):p.Bn(tl(C));if(db(C)||C.VL())C.VL()&&IV(p,"ssa"),IV(p,"lifa");C.gatewayExperimentGroup&&(N=C.gatewayExperimentGroup, N==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?N="spkadtrt":N==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(N="spkadctrl"),IV(p,N));V.a$!=="yt"&&(p.T.len=[C.lengthSeconds.toFixed(2)]);C.cotn&&!ix(C)&&p.d5(!0);if(V.Gk()&&((C=u9a())&&p.k_("cblt",{m:C}),V.G("html5_log_screen_diagonal"))){V=p.k_;var X;C=((X=window.H5vccScreen)==null?0:X.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;V.call(p,"cbltdiag",{v:C})}}}; TLS=function(p){if(p.provider.Ta.RI()){if(p.S)return;p.S=!0}p.T&&jia(p.T);if(p.C){p=p.C;var C=g.Zn(p.provider);p.T<0&&(p.T=C,p.delay.start());p.C=C;p.S=C}}; Mtj=function(p,C){p.T&&(p=p.T,C===58?p.T.update():p.V&&(nu(p),eP(p).send(),p.S=NaN))}; JH1=function(p,C){if(g.u$(C,1024)||g.u$(C,512)||g.u$(C,4)){if(p.C){var V=p.C;V.C>=0||(V.T=-1,V.delay.stop())}p.qoe&&(V=p.qoe,V.J||(V.C=-1))}if(p.provider.videoData.enableServerStitchedDai&&p.tp){var N;(N=p.V.get(p.tp))==null||h2y(N,C)}else p.T&&h2y(p.T,C);if(p.qoe){N=p.qoe;V=C.state;var H=g.Zn(N.provider),X=N.getPlayerState(V);YZj(N,H,X,V.seekSource||void 0);X=V.UE;g.r(V,128)&&X&&(X.QG=X.QG||"",buL(N,H,X.errorCode,X.PO,X.QG));(g.r(V,2)||g.r(V,128))&&N.reportStats(H);V.isPlaying()&&!N.J&&(N.C>=0&& (N.T.user_intent=[N.C.toString()]),N.J=!0);qZY(N)}p.C&&(N=p.C,ans(N),N.playerState=C.state,N.C>=0&&g.u$(C,16)&&N.seekCount++,C.state.isError()&&N.send());p.provider.Ta.RI()&&(p.g7=C.state)}; mTu=function(p){if(p.provider.videoData.enableServerStitchedDai&&p.tp){var C;(C=p.V.get(p.tp))!=null&&kb(C.T)}else p.T&&kb(p.T.T)}; vmQ=function(p){p.C&&p.C.send();if(p.qoe){var C=p.qoe;if(C.V){C.g7==="PL"&&(C.g7="N");var V=g.Zn(C.provider);g.OZ(C,V,"vps",[C.g7]);C.J||(C.C>=0&&(C.T.user_intent=[C.C.toString()]),C.J=!0);C.provider.yn.Gk()&&C.k_("finalized",{});C.Sa=!0;C.reportStats(V)}}if(p.provider.videoData.enableServerStitchedDai)for(C=g.F(p.V.values()),V=C.next();!V.done;V=C.next())i$y(V.value);else p.T&&i$y(p.T);p.dispose()}; F5Q=function(p,C){p.T&&si1(p.T,C)}; SDy=function(p){if(!p.T)return null;var C=zK(p.T,"atr");return function(V){p.T&&si1(p.T,V,C)}}; K5a=function(p,C,V,N){V.adFormat=V.Q$;var H=C.Ta;C=new Yb(new Pu(V,C.yn,{getDuration:function(){return V.lengthSeconds}, getCurrentTime:function(){return H.getCurrentTime()}, I_:function(){return H.I_()}, cJ:function(){return H.cJ()}, RI:function(){return H.RI()}, sS:function(){return H.sS()}, getPlayerSize:function(){return H.getPlayerSize()}, getAudioTrack:function(){return V.getAudioTrack()}, getPlaybackRate:function(){return H.getPlaybackRate()}, uP:function(){return H.uP()}, getVisibilityState:function(){return H.getVisibilityState()}, W6:function(){return H.W6()}, St:function(){return H.St()}, getVolume:function(){return H.getVolume()}, isMuted:function(){return H.isMuted()}, jE:function(){return H.jE()}, t7:function(){return H.t7()}, getProximaLatencyPreference:function(){return H.getProximaLatencyPreference()}, jf:function(){H.jf()}, k_:function(X,d){H.k_(X,d)}})); C.C=N;g.R(p,C);return C}; DTH=function(){this.eA=0;this.V=this.pT=this.mP=this.C=NaN;this.T={};this.bandwidthEstimate=NaN}; Lu=function(p,C,V){g.Y.call(this);var N=this;this.yn=p;this.Ta=C;this.C=V;this.T=new Map;this.tp="";this.Sr={Ei:function(){return Array.from(N.T.keys())}}}; udv=function(p,C){p.T.has(C)&&(vmQ(p.T.get(C)),p.T.delete(C))}; Z$Q=function(){this.T=g.aj;this.array=[]}; f_9=function(p,C,V){var N=[];for(C=UTS(p,C);C<p.array.length;++C){var H=p.array[C];(H.end<=V||H.contains(V))&&N.push(H);if(H.start>V)break}return N}; O$s=function(p,C){var V=[];p=g.F(p.array);for(var N=p.next();!N.done&&!(N=N.value,N.contains(C)&&V.push(N),N.start>C);N=p.next());return V}; yH1=function(p){return p.array.slice(UTS(p,0x7ffffffffffff),p.array.length)}; UTS=function(p,C){p=ir(p.array,function(V){return C-V.start||1}); return p<0?-(p+1):p}; qDy=function(p,C){var V=NaN;p=g.F(p.array);for(var N=p.next();!N.done;N=p.next())if(N=N.value,N.contains(C)&&(isNaN(V)||N.end<V)&&(V=N.end),N.start>C&&(isNaN(V)||N.start<V)){V=N.start;break}return V}; I_S=function(p,C){p.array=p.array.filter(function(V){return!C.has(V)})}; gX=function(p,C,V,N,H){g.Y.call(this);this.Z=p;this.sY=C;this.Y=V;this.a$=N;this.S=H;this.V=NaN;this.D=this.J=this.started=!1;this.C=[];this.b_=new g.N8(this.sync,250,this);g.R(this,this.b_);this.W=new g.N8(this.sync,0,this);g.R(this,this.W);this.T=new Z$Q}; b$u=function(p){p.started=!0;p.sync()}; AHy=function(p,C){p.started&&(p.sync(),g.r(C.T7,16)&&(C=qDy(p.T,Math.max(p.V-2E3,0)),!isNaN(C)&&C<0x7ffffffffffff&&p.W.start()))}; omX=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=V[1];V[0]===1?p.a$(g.Ez(N.namespace),N):p.a$(g.lG(N.namespace),N)}}; kEQ=function(p){this.Ta=p}; xT1=function(p){this.yn=p;this.V=this.C=this.mediaTime=NaN;this.S=this.T=!1;this.W=.001;g.bH(p)&&(this.W=.01)}; Wu=function(p,C){return C>p.mediaTime+p.W&&C<p.mediaTime+5}; bqa=function(p,C,V,N,H){if(N=N>1)p.S=!0;if((H===void 0?0:H)||isNaN(p.C))p.C=C;if(p.T)C!==p.mediaTime&&(p.T=!1);else if(C>0&&p.mediaTime===C){H=1500;if(p.yn.G("html5_buffer_underrun_transition_fix")){H=g.mi(p.yn.experiments,"html5_min_playback_advance_for_steady_state_secs");var X=g.mi(p.yn.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");H=H>0&&X>0&&Math.abs(C-p.C)<H?X:1500}return V-p.V>(N||!p.S?H:400)}p.mediaTime=C;p.V=V;return!1}; YDv=function(p,C){this.videoData=p;this.T=C}; z2X=function(p,C,V){return C.Z1(V).then(function(){return YD(new YDv(C,C.V))},function(N){N instanceof Error&&g.eG(N); var H=or('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),X=xZ('audio/mp4; codecs="mp4a.40.2"'),d=H||X,a=C.isLivePlayback&&!g.GF(p.W,!0);N="fmt.noneavailable";a?N="html5.unsupportedlive":d||(N="html5.missingapi");d=a||!d?2:1;H={buildRej:"1",a:C.Ar(),d:!!C.RN,drm:C.O8(),f18:C.jZ.indexOf("itag=18")>=0,c18:H};C.T&&(C.O8()?(H.f142=!!C.T.T["142"],H.f149=!!C.T.T["149"],H.f279=!!C.T.T["279"]):(H.f133=!!C.T.T["133"],H.f140=!!C.T.T["140"],H.f242=!!C.T.T["242"]),H.cAAC=X,H.cAVC=xZ('video/mp4; codecs="avc1.42001E"'), H.cVP9=xZ('video/webm; codecs="vp9"'));C.W&&(H.drmsys=C.W.keySystem,X=0,C.W.T&&(X=Object.keys(C.W.T).length),H.drmst=X);return new qD(N,H,d)})}; Qb=function(p){this.data=window.Float32Array?new Float32Array(p):Array(p);this.C=this.T=p-1}; R2S=function(p){return p.data[p.T]||0}; nme=function(p){this.W=p;this.V=this.C=0;this.S=new Qb(50)}; Bu=function(p,C,V){g.ca.call(this);this.videoData=p;this.experiments=C;this.Y=V;this.C=[];this.S=0;this.V=!0;this.W=!1;this.D=0;V=new e29;p.latencyClass==="ULTRALOW"&&(V.S=!1);p.qo?V.C=3:g.ud(p)&&(V.C=2);p.latencyClass==="NORMAL"&&(V.W=!0);var N=g.mi(C,"html5_liveness_drift_proxima_override");if(tl(p)!==0&&N){V.T=N;var H;((H=p.T)==null?0:Or9(H))&&V.T--}$B(p)&&C.OY("html5_sabr_parse_live_metadata_playback_boundaries")&&(V.D=!0);if(g.gm("trident/")||g.gm("edge/"))H=g.mi(C,"html5_platform_minimum_readahead_seconds")|| 3,V.V=Math.max(V.V,H);g.mi(C,"html5_minimum_readahead_seconds")&&(V.V=g.mi(C,"html5_minimum_readahead_seconds"));g.mi(C,"html5_maximum_readahead_seconds")&&(V.Y=g.mi(C,"html5_maximum_readahead_seconds"));C.OY("html5_force_adaptive_readahead")&&(V.S=!0);if(C=g.mi(C,"html5_liveness_drift_chunk_override"))V.T=C;ld(p)&&(V.T=(V.T+1)/5,p.latencyClass==="LOW"&&(V.T*=2));this.policy=V;this.J=this.policy.C!==1;this.T=rX(this,PYa(this,isNaN(p.liveChunkReadahead)?3:p.liveChunkReadahead,p))}; wOv=function(p,C){if(C)return C=p.videoData,C=PYa(p,isNaN(C.liveChunkReadahead)?3:C.liveChunkReadahead,C),rX(p,C);if(p.C.length){if(Math.min.apply(null,p.C)>1)return rX(p,p.T-1);if(p.policy.S)return rX(p,p.T+1)}return p.T}; $TV=function(p,C){if(!p.C.length)return!1;var V=p.T;p.T=wOv(p,C===void 0?!1:C);if(C=V!==p.T)p.C=[],p.S=0;return C}; GK=function(p,C){return C>=p.S1()-L5y(p)}; gmH=function(p,C,V){C=GK(p,C);V||C?C&&(p.V=!0):p.V=!1;p.J=p.policy.C===2||p.policy.C===3&&p.V}; W5j=function(p,C){C=GK(p,C);p.W!==C&&p.publish("livestatusshift",C);p.W=C}; L5y=function(p){var C=p.policy.T;p.W||(C=Math.max(C-1,0));return C*p$(p)}; PYa=function(p,C,V){V.qo&&C--;ld(V)&&(C=1);if(tl(V)!==0&&(p=g.mi(p.experiments,"html5_live_chunk_readahead_proxima_override"))){C=p;var N;((N=V.T)==null?0:Or9(N))&&C++}return C}; p$=function(p){return p.videoData.T?Jz(p.videoData.T)||5:5}; rX=function(p,C){C=Math.max(Math.max(1,Math.ceil(p.policy.V/p$(p))),C);return Math.min(Math.min(8,Math.floor(p.policy.Y/p$(p))),C)}; e29=function(){this.V=0;this.Y=Infinity;this.S=!0;this.T=2;this.C=1;this.D=this.W=!1}; VX=function(p){g.Y.call(this);this.Ta=p;this.T=0;this.C=null;this.Y=this.S=0;this.V={};this.yn=this.Ta.K();this.W=new g.N8(this.f7,1E3,this);this.qo=new C$({delayMs:g.mi(this.yn.experiments,"html5_seek_timeout_delay_ms")});this.Sa=new C$({delayMs:g.mi(this.yn.experiments,"html5_long_rebuffer_threshold_ms")});this.X$=jt(this,"html5_seek_set_cmt");this.Y_=jt(this,"html5_seek_jiggle_cmt");this.UY=jt(this,"html5_seek_new_elem");this.YM=jt(this,"html5_unreported_seek_reseek");this.sY=jt(this,"html5_long_rebuffer_jiggle_cmt"); this.Wr=jt(this,"html5_long_rebuffer_ssap_clip_not_match");this.Vn=new C$({delayMs:2E4});this.R$=jt(this,"html5_seek_new_elem_shorts");this.Qn=jt(this,"html5_seek_new_media_source_shorts_reuse");this.KS=jt(this,"html5_seek_new_media_element_shorts_reuse");this.Ga=jt(this,"html5_reseek_after_time_jump");this.J=jt(this,"html5_gapless_handoff_close_end_long_rebuffer");this.a$=jt(this,"html5_gapless_slow_seek");this.Z=jt(this,"html5_gapless_slice_append_stuck");this.b_=jt(this,"html5_gapless_slow_start"); this.D=jt(this,"html5_ads_preroll_lock_timeout");this.Hc=jt(this,"html5_ssap_ad_longrebuffer_new_element");this.Wc=new C$({delayMs:g.mi(this.yn.experiments,"html5_skip_slow_ad_delay_ms")||5E3,vW:!this.yn.G("html5_report_slow_ads_as_error")});this.kM=new C$({delayMs:g.mi(this.yn.experiments,"html5_skip_slow_ad_delay_ms")||5E3,vW:!this.yn.G("html5_skip_slow_buffering_ad")});this.ER=new C$({delayMs:g.mi(this.yn.experiments,"html5_slow_start_timeout_delay_ms")});this.vr=jt(this,"html5_slow_start_no_media_source"); g.R(this,this.W)}; jt=function(p,C){var V=g.mi(p.yn.experiments,C+"_delay_ms");p=p.yn.G(C+"_cfl");return new C$({delayMs:V,vW:p})}; QiH=function(p,C){p.T=C}; NT=function(p,C,V,N,H,X,d,a){C.test(V)?(p.oN(H,C,d),C.vW||X()):(C.cg&&C.C&&!C.S?(V=(0,g.Ip)(),N?C.T||(C.T=V):C.T=0,X=!N&&V-C.C>C.cg,V=C.T&&V-C.T>C.UP||X?C.S=!0:!1):V=!1,V&&(a=Object.assign({},p.X0(C),a),a.wn=d,a.we=H,a.wsuc=N,p.Ta.k_("workaroundReport",a),N&&(C.reset(),p.V[H]=!1)))}; C$=function(p){var C=p===void 0?{}:p;p=C.delayMs===void 0?0:C.delayMs;var V=C.UP===void 0?1E3:C.UP;var N=C.cg===void 0?3E4:C.cg;C=C.vW===void 0?!1:C.vW;this.T=this.C=this.V=this.startTimestamp=0;this.S=!1;this.W=Math.ceil(p/1E3);this.UP=V;this.cg=N;this.vW=C}; pxs=function(p){g.Y.call(this);var C=this;this.Ta=p;this.Y=this.T=this.nS=this.mediaElement=this.playbackData=null;this.S=0;this.W=this.a$=this.V=null;this.b_=!1;this.Wc=0;this.J=!1;this.timestampOffset=0;this.D=!0;this.Y_=0;this.UY=this.ER=!1;this.Z=0;this.Qn=!1;this.sY=0;this.yn=this.Ta.K();this.videoData=this.Ta.getVideoData();this.policy=new rHQ;this.Vn=new VX(this.Ta);this.qo=this.Ga=this.vr=this.C=NaN;this.Wr=new g.N8(function(){BLv(C,!1)},2E3); this.kM=new g.N8(function(){HO(C)}); this.R$=new g.N8(function(){C.b_=!0;GEH(C,{})}); this.X$=NaN;this.Sa=new g.N8(function(){var V=C.yn.f9;V.T+=1E4/36E5;V.T-V.V>1/6&&(nru(V),V.V=V.T);C.Sa.start()},1E4); g.R(this,this.Vn);g.R(this,this.Wr);g.R(this,this.R$);g.R(this,this.kM);g.R(this,this.Sa)}; VvY=function(p,C){p.playbackData=C;p.videoData.isLivePlayback&&(p.Y=new nme(function(){a:{if(p.playbackData&&p.playbackData.T.T){if(Ge(p.videoData)&&p.nS){var V=p.nS.aF.Kd()||0;break a}if(p.videoData.T){V=p.videoData.T.Vn;break a}}V=0}return V}),p.T=new Bu(p.videoData,p.yn.experiments,function(){return p.Sd(!0)})); Xd(p.Ta)?(C=CiV(p),C.q9?(p.G("html5_sabr_enable_utc_seek_requests")&&$B(p.videoData)&&p.WC(C.q9,C.startSeconds),p.S=C.startSeconds):C.startSeconds>0&&p.seekTo(C.startSeconds,{NZ:"seektimeline_startPlayback",seekSource:15}),p.D=!1):jTy(p)||(p.S=p.S||(g.pf(p.videoData)?0:p.videoData.startSeconds)||0)}; Hn1=function(p,C){(p.nS=C)?NMa(p,!0):dL(p)}; XxY=function(p,C){g.HF(p.Vn.W);p.G("html5_exponential_memory_for_sticky")&&(C.state.isPlaying()?g.HF(p.Sa):p.Sa.stop());if(p.mediaElement)if(C.T7.state===8&&S6(C.state)&&C.state.isBuffering()){C=p.mediaElement.getCurrentTime();var V=p.mediaElement.yx();var N=p.G("manifestless_post_live_ufph")||p.G("manifestless_post_live")?a7(V,Math.max(C-3.5,0)):a7(V,C-3.5);N>=0&&C>V.end(N)-1.1&&N+1<V.length&&V.start(N+1)-V.end(N)<11&&(N=V.start(N+1)+.2,Math.abs(p.X$-N)<.2||(p.Ta.k_("seekover",{b:sJ(V,"_"),cmt:C}), p.X$=N,p.seekTo(N,{EC:!0,NZ:"seektimeline_postLiveDisc"})))}else((V=C.state)==null?0:V.state===8)&&!p.UY&&(p.videoData.limitedPlaybackDurationInSeconds>0?(iY(p.Ta,p.getCurrentTime()+p.videoData.limitedPlaybackDurationInSeconds),p.UY=!0):p.videoData.isLivePlayback&&p.videoData.endSeconds>0&&(iY(p.Ta,p.getCurrentTime()+p.videoData.endSeconds),p.UY=!0))}; inS=function(p,C){var V=p.getCurrentTime(),N=p.isAtLiveHead(V);if(p.Y&&N){var H=p.Y;if(H.T&&!(V>=H.C&&V<H.V)){var X=H.T.tU(V);X!==-1&&(H.C=H.T.getStartTime(X),H.V=H.C+H.T.getDuration(X),X=(0,g.Ip)()/1E3-H.T.Xt(X),X-=H.W(),H.S.add(X))}}p.T&&(N&&(H=p.T,X=dAe(p),H.S++,H.S<3||Date.now()-H.D<3E3||(H.D=Date.now(),H.C.push(X),H.C.length>50&&H.C.shift())),H=p.T,gmH(H,V,C===void 0?!0:C),W5j(H,V),C&&BLv(p,!0));N!==p.ER&&(C=p.getCurrentTime()-p.qo<=500,V=p.Wc>=1E3,C||V||(C=p.Ta.Pc(),C.qoe&&(C=C.qoe,V=g.Zn(C.provider), g.OZ(C,V,"lh",[N?"1":"0"])),p.ER=N,p.Wc++,p.qo=p.getCurrentTime()))}; BLv=function(p,C){if(p.T){var V=p.T;var N=p.getCurrentTime();!GK(V,N)&&V.qR()?(V.policy.W&&(V.policy.T=Math.max(V.policy.T+1,10)),V=Infinity):V=N<V.videoData.Wa()?Math.min(V.videoData.Wa()+10,V.S1()):NaN;if(!isNaN(V)){if(p.nS&&C&&(C=p.Wr.isActive(),N=p.T.S1(),(N=odv(p.nS,N-p.yZ()))&&!C)){p.Wr.start();p.Ta.k_("inBufferPtl",{cmt:p.getCurrentTime(),seekTo:N+p.yZ()});p.seekTo(N+p.yZ(),{NZ:"seektimeline_inBufferSeek"});return}p.seekTo(V,{NZ:"seektimeline_pegToLive"})}}}; NMa=function(p,C){if(p.T&&p.nS){var V=!1;C?V=!0:p.videoData.isLowLatencyLiveStream||p.videoData.latencyClass==="LOW"||p.videoData.latencyClass==="ULTRALOW"?V=$TV(p.T):p.Qn&&(p.Qn=!1,V=$TV(p.T,!0));V&&(C=p.Ta.Pc(),V=p.T,V=p$(V)*V.T,C.qoe&&(C=C.qoe,g.OZ(C,g.Zn(C.provider),"lra",[V]),C.k_("live-readahead-seconds",{v:V})));C=p.nS;var N=p.T.T;p=p.T;p=(p.T-1+p.policy.T)*p$(p);V=NaN;var H=C.YM;H===2||H===-1?ld(C.Ta.getVideoData())&&(V=C.policy.E7):(--N,H=C.Ta.getVideoData(),H.p4()&&H.latencyClass!=="ULTRALOW"&& !H.isLowLatencyLiveStream&&(V=tl(H)!==0?C.policy.T2:C.policy.JV));N=Math.max(N,0);H=C.S;H.kq=N;H.Z=V;C.Y&&(C.Y.a$=p)}}; hDj=function(p,C){p.S=C}; GEH=function(p,C){sTV(p,C).then(void 0,function(){dL(p)}); aTH(p).then(function(V){EWv(p,V)},function(){dL(p)}); p.Ta.qI(C);p.yn.Gk()&&(C=p.X0(),C["native"]=""+ +p.J,C.tgt=""+p.C,C.otgt=""+(p.C+p.timestampOffset),p.T&&p.G("html5_high_res_seek_logging")&&(C.tht=""+p.T.Y(),C.ht=""+p.T.S1(),C.adft=""+L5y(p.T)),p.G("html5_sabr_parse_live_metadata_playback_boundaries")&&p.videoData.T&&$B(p.videoData)&&(C.minst=""+p.videoData.T.Tz,C.cminst=""+(p.videoData.T.Wa()+p.timestampOffset),C.maxst=""+p.videoData.T.lf,C.hts=""+p.videoData.T.b_,C.cmaxst=""+(p.videoData.T.Sd()+p.timestampOffset)),p.Ta.k_("startSeek",C))}; sTV=function(p,C){p.a$||(p.nS?isFinite(p.C)?p.a$=p.nS.seek(p.C-p.timestampOffset,C):(rP(p.videoData),p.a$=uQ(p.nS),h_(p.videoData)||(p.C=p.nS.getCurrentTime()+p.timestampOffset)):p.a$=U8(p.C-p.timestampOffset));return p.a$}; aTH=function(p){var C=p.V;C||(p.V=new hK,C=p.V,HO(p));return C}; hH=function(p,C,V){return isNaN(C)?NaN:g.J9(C,p.Wa(),p.Sd(V))}; HO=function(p){if(p.V)if(p.videoData.isLivePlayback&&p.videoData.V&&!p.videoData.V.T&&p.mediaElement&&p.mediaElement.wh()>0&&ak(p.mediaElement)>0&&(p.C=hH(p,p.C,!1)),!p.mediaElement||!lTL(p))p.kM.start(750);else if(!isNaN(p.C)&&isFinite(p.C)){var C=p.Ga-(p.C-p.timestampOffset);if(!(C===0||p.G("html5_enable_new_seek_timeline_logic")&&Math.abs(C)<.005))if(C=p.mediaElement.getCurrentTime()-p.C,Math.abs(C)<=p.Y_||p.G("html5_enable_new_seek_timeline_logic")&&Math.abs(C)<.005)p.V&&p.V.resolve(p.mediaElement.getCurrentTime()); else{if(p.videoData.Bv)p.videoData.Bv=!1;else if(!rP(p.videoData)&&p.C>=p.Sd()-.1){p.C=p.Sd();p.V.resolve(p.Sd());sD(p.Ta);return}try{var V=p.C-p.timestampOffset;p.mediaElement.seekTo(V);p.Vn.T=V;p.Ga=V;p.S=p.C;p.G("html5_enable_new_seek_timeline_logic")&&(p.J=!1)}catch(N){}}}}; lTL=function(p){if(!p.mediaElement||p.mediaElement.wh()===0||p.mediaElement.hasError())return!1;var C=p.mediaElement.getCurrentTime()>0;if(!(p.videoData.V&&p.videoData.V.T||p.videoData.isLivePlayback)&&p.videoData.O8())return C;if(p.C>=0){var V=p.mediaElement.cW();if(V.length||!C)return EJ(V,p.C-p.timestampOffset)}return C}; EWv=function(p,C){p.W&&(p.W.resolve(C),p.Ta.FH(),p.yn.Gk()&&(C=p.X0(),C["native"]=""+ +p.J,C.otgt=""+(p.C+p.timestampOffset),p.Ta.k_("seekEnd",C)));dL(p)}; dL=function(p){p.C=NaN;p.Ga=NaN;p.V=null;p.a$=null;p.W=null;p.b_=!1;p.J=!1;p.Y_=0;p.Wr.stop();p.R$.stop()}; TMu=function(p,C,V){var N=p.mediaElement,H=C.type;switch(H){case "seeking":var X=N.getCurrentTime()+p.timestampOffset;if(!p.V||p.J&&X!==p.C){var d=!!p.V;p.V=new hK;p.G("html5_enable_new_seek_timeline_logic")&&p.V.then(function(E){EWv(p,E)},function(){dL(p)}); if(p.videoData.isAd()){var a;V_H({adCpn:p.videoData.clientPlaybackNonce,contentCpn:(a=p.videoData.pC)!=null?a:""},C.T)}p.Ga=X;QiH(p.Vn,N.getCurrentTime());p.seekTo(X,{seekSource:104,NZ:"seektimeline_mediaElementEvent"});V&&tvQ(V,X*1E3,!!d);p.J=!0}break;case "seeked":p.V&&p.V.resolve(p.mediaElement.getCurrentTime());break;case "loadedmetadata":Xd(p.Ta)||cre(p);HO(p);break;case "progress":HO(p);break;case "pause":p.Z=p.getCurrentTime()}p.Z&&((H==="play"||H==="playing"||H==="timeupdate"||H==="progress")&& p.getCurrentTime()-p.Z>10&&(p.G("html5_enable_new_media_element_puase_jump")?(p.Ta.oN(new qD("qoe.restart",{reason:"pauseJump"})),sZ(p.Ta)):p.seekTo(p.Z,{NZ:"pauseJump"})),H!=="pause"&&H!=="play"&&H!=="playing"&&H!=="progress"&&(p.Z=0))}; Mvy=function(p){return(Z6(p.videoData)||!!p.videoData.liveUtcStartSeconds)&&(!!p.videoData.liveUtcStartSeconds||jTy(p))&&!!p.videoData.T}; jTy=function(p){return!!p.videoData.startSeconds&&isFinite(p.videoData.startSeconds)&&p.videoData.startSeconds>1E9}; CiV=function(p){var C=0,V=NaN,N="";if(!p.D)return{startSeconds:C,q9:V,source:N};p.videoData.Wr?C=p.videoData.vr:rP(p.videoData)&&(C=Infinity);if(g.ud(p.videoData))return{startSeconds:C,q9:V,source:N};p.videoData.startSeconds?(N="ss",C=p.videoData.startSeconds):p.videoData.o6&&(N="stss",C=p.videoData.o6);p.videoData.liveUtcStartSeconds&&(V=p.videoData.liveUtcStartSeconds);if(isFinite(C)&&(C>p.Sd()||C<p.Wa())){var H={};H.minSeekableTime=p.Wa();H.maxSeekableTime=p.Sd();H.cmt=p.getCurrentTime();H.ss= C;H.utc=V;H.src=N;p.Ta.k_("startSecondsOutOfBounds",H);p.videoData.p4()&&(C=hH(p,C,!1))}return{startSeconds:C,q9:V,source:N}}; cre=function(p){if(p.D)if(g.ud(p.videoData))p.D=!1;else{var C="ss",V=0,N;((N=p.videoData.T)==null?0:N.isManifestless)&&p.videoData.Hc&&!jTy(p)&&(C="mss",V=p.videoData.Hc);(p.videoData.Wr?p.G("html5_prioritize_windowed_st_start_seconds"):p.G("html5_prioritize_st_start_seconds"))&&!V&&p.videoData.o6&&(C="stss",V=p.videoData.o6);!V&&Mvy(p)&&(V=p.videoData.liveUtcStartSeconds||p.videoData.Hc,C="utc",V=p.Sd()-p.Xt(p.Sd())+V);V||p.G("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!p.videoData.p4()|| !p.videoData.o6||(C="stss",V=p.videoData.o6);N={};if(V){if(V>p.Sd()||V<p.Wa())N.minSeekableTime=p.Wa(),N.maxSeekableTime=p.Sd(),N.cmt=p.getCurrentTime(),N.it=p.Xt(p.getCurrentTime()),N.ss=V,N.utc=Mvy(p)?p.videoData.liveUtcStartSeconds||p.videoData.Hc:0,p.Ta.k_("startSecondsOutOfBounds",N),p.videoData.p4()&&(V=hH(p,V,!1));p.seekTo(V,{NZ:"seektimeline_startSeconds"});N[C]=V;p.Ta.k_("startSeconds",N);p.D=!1}else p.videoData.Hc&&(N[C]=p.videoData.Hc+p.yZ(),p.Ta.k_("startSeconds",N))}}; JrS=function(p,C){p.Ta.k_("sdai",{adj4t:C.toFixed(3)});p.vr=C;C+=1;p.C=C;p.S=C;aTH(p).then(function(V){EWv(p,V)},function(){dL(p)})}; dAe=function(p){return p.mediaElement?E3(p.mediaElement):0}; rHQ=function(){}; ai=function(p){g.Y.call(this);this.V=p;this.T=new Map;this.C=new g.N8(this.sample,250,this);g.R(this,this.C);this.start()}; ED=function(p,C){if((p=p.T.get(C))==null)p=void 0;else{p=p.buffer;for(C=[];p.C!==p.T;)p.C=(p.C+1)%p.data.length,C.push(p.data[p.C]);p=C}return p||[]}; lY=function(p,C){var V;return((V=p.T.get(C))==null?void 0:R2S(V.buffer))||0}; mAy=function(p){this.T=p;this.hS=NaN;this.buffer=new Qb(100)}; tH=function(){this.finished=this.started=!1}; uke=function(p){function C(H){return V.JB&&(!N.Om||!N.I$.D)||V.a$!=="yt"&&(N.partnerId===38&&V.playerStyle==="books"||N.partnerId===30&&V.playerStyle==="docs"||N.partnerId===33&&V.playerStyle==="google-live")?vWj(p,N,H):FYu(p,N).then(function(){cO(p,N)},function(X){cO(p,N,!0); throw X;})} var V=p.K(),N=p.getVideoData();N.fS();N.loading=!0;return SCa(p)?KY9(p,N).then(function(){cO(p,N)},function(H){H=bv(H); if(Ir(H.severity))return cO(p,N,!0),Promise.reject(H);H.errorCode==="onesie.response.badproxystatus"&&""+H.details.st==="3"&&(DAj=!0);p.handleError(H);return C("onesie")}):C("gvi")}; SCa=function(p){var C=p.K();if(C.G("html5_disable_onesie")||!C.G("html5_onesie")||!C.G("html5_onesie_inline")&&p.getVisibilityState()===5||C.a$!=="yt")return!1;var V=C.Kq;if(!V||!V.T)return p.handleError(new qD("onesie.unavailable.hotconfig",{key:"0"})),!1;if(V.T.W<(0,g.Ip)()&&(p.k_("okexp","1"),(V=p.qP())&&C.G("html5_prefer_trusted_host_on_key_expiration"))){V.C=!0;var N;(C=(N=V.T.get(0))==null?void 0:So(N.location))&&!s4(C)&&V.T.delete(0)}if(DAj)return p.k_("ost3","1"),!1;N={};return Object.keys(N).length> 0?(N.onesie="0",p.handleError(new qD("html5.missingapi",N)),!1):!0}; Zns=function(p){var C=rb();Bk(C,p);return g.KU(C,sws())}; KY9=function(p,C){var V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au,W,e;return g.I(function(B){if(B.C==1)return C.fetchType="onesie",V=Ow1(C,p.getPlayerSize(),p.getVisibilityState()),N=new gZ(p,V),g.y(B,N.fetch(),2);H=B.T;X={player_response:H};C.loading=!1;d=p.lJ.wz;if(N.ZQ){a=g.F(N.ZQ.entries());for(E=a.next();!E.done;E=a.next())l=E.value,t=g.F(l),c=t.next().value,T=t.next().value,M=c,J=T,d.T.set(M,J,180),M===C.videoId&&(S=J.yl(),C.Nq=S);d.qB=N}D=g.F(N.Ls.entries());for(Z=D.next();!Z.done;Z= D.next())f=Z.value,q=g.F(f),A=q.next().value,z=q.next().value,Q=A,P=z,d.C.set(Q,P,180);g.ew(C,X,!0);if(C.loading||ze(C))return B.return(Promise.resolve());d.T.removeAll();d.C.removeAll();C.Nq=[];VL={};au="onesie.response";W=0;C.errorCode?(au="auth",VL.ec=C.errorCode,VL.ed=C.errorDetail,VL.es=C.Ck||"",W=2):(VL.successButUnplayable="1",VL.disposed=""+ +C.fS(),VL.afmts=""+ +/adaptiveFormats/.test(H),VL.cpn=C.clientPlaybackNonce);e=new qD(au,VL,W);return B.return(Promise.reject(e))})}; FYu=function(p,C){var V,N,H,X,d,a,E,l,t,c,T;return g.I(function(M){switch(M.C){case 1:V=C.isAd(),N=!V,H=V?1:3,X=0;case 2:if(!(X<H)){M.EY(4);break}if(!(X>0)){M.EY(5);break}return g.y(M,A8(5E3),6);case 6:d=new g.Bw("Retrying OnePlatform request",{attempt:X}),g.eG(d);case 5:return g.vv(M,7),g.y(M,UAe(p,C),9);case 9:return M.return();case 7:a=g.Sa(M);E=bv(a);l=E.errorCode;t=p.K();c=t.G("html5_use_network_error_code_enums")?401:"401";N&&l==="manifest.net.badstatus"&&E.details.rc===c&&(N=!1,X===H-1&&(H+= 1));if(X===H-1)return T=fTY(V,E.details),T.details.backend="op",T.details.originec=l,M.return(Promise.reject(T));if(l==="auth"||l==="manifest.net.retryexhausted")return M.return(Promise.reject(E));p.handleError(E);if(Ir(E.severity)){M.EY(4);break}case 3:X++;M.EY(2);break;case 4:return M.return(Promise.reject(fTY(V,{backend:"op"})))}})}; UAe=function(p,C){function V(au){au.readyState===2&&p.ZE("ps_c")} var N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL;return g.I(function(au){switch(au.C){case 1:C.fetchType="gp";N=p.K();H=g.pk(N,g.XE(C));if(!H.T){X=H.getValue();au.EY(2);break}return g.y(au,H.T,3);case 3:X=au.T;case 2:return d=X,a=Zns(d),E=Ow1(C,p.getPlayerSize(),p.getVisibilityState()),l=g.On(OnY),t=g.XE(C),c=(0,g.Ip)(),T=!1,M="empty",J=0,p.ZE("psns"),S={q$:V},g.y(au,g.E0(a,E,l,void 0,S),4);case 4:D=au.T;p.ZE("psnr");if(C.fS())return au.return();D?"error"in D&&D.error?(T=!0,M="esf:"+D.error.message, J=D.error.code):D.errorMetadata&&(T=!0,M="its",J=D.errorMetadata.status):T=!0;if(T)return Z=0,f=((0,g.Ip)()-c).toFixed(),q={},q=N.G("html5_use_network_error_code_enums")?{backend:"op",rc:J,rt:f,reason:M,has_kpt:C.X$?"1":"0",has_mdx_env:C.mdxEnvironment?"1":"0",has_omit_key_flag:g.pO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:N.pageId?"1":"0",has_token:t?"1":"0",has_vvt:C.b_?"1":"0",is_mdx:C.isMdxPlayback?"1":"0",mdx_ctrl:C.wx||"",token_eq:t===g.XE(C)?"1":"0"}:{backend:"op", rc:""+J,rt:f,reason:M,has_kpt:C.X$?"1":"0",has_mdx_env:C.mdxEnvironment?"1":"0",has_omit_key_flag:g.pO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:N.pageId?"1":"0",has_token:t?"1":"0",has_vvt:C.b_?"1":"0",is_mdx:C.isMdxPlayback?"1":"0",mdx_ctrl:C.wx||"",token_eq:t===g.XE(C)?"1":"0"},A="manifest.net.connect",J===429?(A="auth",Z=2):J>200&&(A="manifest.net.badstatus",J===400&&(Z=2)),au.return(Promise.reject(new qD(A,q,Z)));C.loading=!1;g.ew(C,{raw_player_response:D},!0); z=D;g.Oe(C.K())&&z&&z.trackingParams&&Oi(z.trackingParams);if(C.errorCode)return Q={ec:C.errorCode,ed:C.errorDetail,es:C.Ck||""},au.return(Promise.reject(new qD("auth",Q,2)));if(!C.loading&&!ze(C))return P=C.isAd()?"auth":"manifest.net.retryexhausted",VL=C.isAd()?2:1,au.return(Promise.reject(new qD(P,{successButUnplayable:"1",hasMedia:g.SK(C)?"1":"0"},VL)));g.JQ(au)}})}; vWj=function(p,C,V){function N(J){J=bv(J);if(Ir(J.severity))return Promise.reject(J);p.handleError(J);return!1} function H(){return!0} var X,d,a,E,l,t,c,T,M;return g.I(function(J){switch(J.C){case 1:var S=p.K(),D=p.getPlayerSize(),Z=p.getVisibilityState();p.isFullscreen();var f=window.location.search;if(C.partnerId===38&&S.playerStyle==="books")f=C.videoId.indexOf(":"),f=g.GD("//play.google.com/books/volumes/"+C.videoId.slice(0,f)+"/content/media",{aid:C.videoId.slice(f+1),sig:C.ql});else if(C.partnerId===30&&S.playerStyle==="docs")f=g.GD("https://docs.google.com/get_video_info",{docid:C.videoId,authuser:C.BM,authkey:C.jl,eurl:S.X$}); else if(C.partnerId===33&&S.playerStyle==="google-live")f=g.GD("//google-liveplayer.appspot.com/get_video_info",{key:C.videoId});else{S.a$!=="yt"&&g.nm(Error("getVideoInfoUrl for invalid namespace: "+S.a$));var q={html5:"1",video_id:C.videoId,cpn:C.clientPlaybackNonce,eurl:S.X$,ps:S.playerStyle,el:B_(C),hl:S.ER,list:C.playlistId,agcid:C.Fd,aqi:C.adQueryId,sts:20073,lact:bV()};Object.assign(q,S.T);S.forcedExperiments&&(q.forced_experiments=S.forcedExperiments);C.b_?(q.vvt=C.b_,C.mdxEnvironment&&(q.mdx_environment= C.mdxEnvironment)):g.XE(C)&&(q.access_token=g.XE(C));C.adFormat&&(q.adformat=C.adFormat);C.slotPosition>=0&&(q.slot_pos=C.slotPosition);C.breakType&&(q.break_type=C.breakType);C.bj!==null&&(q.ad_id=C.bj);C.xu!==null&&(q.ad_sys=C.xu);C.Jw!==null&&(q.encoded_ad_playback_context=C.Jw);S.captionsLanguagePreference&&(q.cc_lang_pref=S.captionsLanguagePreference);S.kM&&S.kM!==2&&(q.cc_load_policy=S.kM);var A=g.LK(g.$l(),65);g.wG(S)&&A!=null&&!A&&(q.device_captions_on="1");S.mute&&(q.mute=S.mute);C.annotationsLoadPolicy&& S.annotationsLoadPolicy!==2&&(q.iv_load_policy=C.annotationsLoadPolicy);C.uv&&(q.endscreen_ad_tracking=C.uv);(A=S.vr.get(C.videoId))&&A.U1&&(q.ic_track=A.U1);C.Sa&&(q.itct=C.Sa);Hk(C)&&(q.autoplay="1");C.mutedAutoplay&&(q.mutedautoplay=C.mutedAutoplay);C.isAutonav&&(q.autonav="1");C.Zq&&(q.noiba="1");C.isMdxPlayback&&(q.mdx="1",q.ytr=C.eH);C.mdxControlMode&&(q.mdx_control_mode=C.mdxControlMode);C.Bb&&(q.ytrcc=C.Bb);C.vx&&(q.utpsa="1");C.isFling&&(q.is_fling="1");C.isInlinePlaybackNoAd&&(q.mute="1"); C.vnd&&(q.vnd=C.vnd);C.forceAdsUrl&&(A=C.forceAdsUrl.split("|").length===3,q.force_ad_params=A?C.forceAdsUrl:"||"+C.forceAdsUrl);C.QZ&&(q.preload=C.QZ);D.width&&(q.width=D.width);D.height&&(q.height=D.height);(C.FT?0:C.va)&&(q.splay="1");C.ypcPreview&&(q.ypc_preview="1");Vk(C)&&(q.content_v=Vk(C));C.qo&&(q.livemonitor=1);S.sY&&(q.authuser=S.sY);S.pageId&&(q.pageid=S.pageId);S.Qn&&(q.ei=S.Qn);S.S&&(q.iframe="1");C.contentCheckOk&&(q.cco="1");C.racyCheckOk&&(q.rco="1");S.D&&C.Ln&&(q.live_start_walltime= C.Ln);S.D&&C.gR&&(q.live_manifest_duration=C.gR);S.D&&C.playerParams&&(q.player_params=C.playerParams);S.D&&C.cycToken&&(q.cyc=C.cycToken);S.D&&C.ij&&(q.tkn=C.ij);Z!==0&&(q.vis=Z);S.enableSafetyMode&&(q.enable_safety_mode="1");C.X$&&(q.kpt=C.X$);C.Ic&&(q.kids_age_up_mode=C.Ic);C.kidsAppInfo&&(q.kids_app_info=C.kidsAppInfo);C.Su&&(q.upg_content_filter_mode="1");S.widgetReferrer&&(q.widget_referrer=S.widgetReferrer.substring(0,128));C.a$?(D=C.a$.latitudeE7!=null&&C.a$.longitudeE7!=null?C.a$.latitudeE7+ ","+C.a$.longitudeE7:",",D+=","+(C.a$.clientPermissionState||0)+","+(C.a$.locationRadiusMeters||"")+","+(C.a$.locationOverrideToken||"")):D=null;D&&(q.uloc=D);C.oi&&(q.internalipoverride=C.oi);S.embedConfig&&(q.embed_config=S.embedConfig);S.Kp&&(q.co_rel="1");S.ancestorOrigins.length>0&&(q.ancestor_origins=Array.from(S.ancestorOrigins).join(","));S.homeGroupInfo!==void 0&&(q.home_group_info=S.homeGroupInfo);S.livingRoomAppMode!==void 0&&(q.living_room_app_mode=S.livingRoomAppMode);S.enablePrivacyFilter&& (q.enable_privacy_filter="1");C.isLivingRoomDeeplink&&(q.is_living_room_deeplink="1");C.xr&&C.s5&&(q.clip=C.xr,q.clipt=C.s5);C.SA&&(q.disable_watch_next="1");C.Q1&&(q.forced_by_var="1");for(var z in q)!yre.has(z)&&q[z]&&String(q[z]).length>512&&(g.eG(Error("GVI param too long: "+z)),q[z]="");z=S.Vn;g.yj(S)&&(z=H8(z.replace(/\b(?:www|web)([.-])/,"tv$1"))||S.Vn);S=g.GD(z+"get_video_info",q);f&&(S=s11(S,f));f=S}X=f;a=(d=C.isAd())?1:3;E=0;case 2:if(!(E<a)){J.EY(4);break}l=X;if(!(E>0)){J.EY(5);break}return g.y(J, A8(5E3),6);case 6:t={playerretry:E,playerretrysrc:V},d||(t.recover="embedded"),l=Ek(X,t);case 5:return g.y(J,qC1(C,l).then(H,N),7);case 7:if(c=J.T)return J.return();E++;J.EY(2);break;case 4:T=d?"auth":"manifest.net.retryexhausted";M=d?2:1;if(!d&&Math.random()<1E-4)try{g.eG(new g.Bw("b/152131571",btoa(X)))}catch(Q){}return J.return(Promise.reject(new qD(T,{backend:"gvi"},M)))}})}; qC1=function(p,C){function V(D){return N(D.xhr)} function N(D){if(!p.fS()){D=D?D.status:-1;var Z=0,f=((0,g.Ip)()-t).toFixed();f=H.G("html5_use_network_error_code_enums")?{backend:"gvi",rc:D,rt:f}:{backend:"gvi",rc:""+D,rt:f};var q="manifest.net.connect";D===429?(q="auth",Z=2):D>200&&(q="manifest.net.badstatus",D===400&&(Z=2));return Promise.reject(new qD(q,f,Z))}} var H,X,d,a,E,l,t,c,T,M,J,S;return g.I(function(D){if(D.C==1){p.fetchType="gvi";H=p.K();var Z={};p.AY&&(Z.ytrext=p.AY);(a=g.k5(Z)?void 0:Z)?(X={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:a},d=Ek(C,{action_display_post:1})):(X={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},d=C);E={};H.sendVisitorIdHeader&&p.visitorData&&(E["X-Goog-Visitor-Id"]=p.visitorData);(l=Wb(H.experiments,"debug_sherlog_username"))&&(E["X-Youtube-Sherlog-Username"]=l);Object.keys(E).length> 0&&(X.headers=E);t=(0,g.Ip)();return g.y(D,Hb(Aw,d,X).then(void 0,V),2)}c=D.T;if(!c||!c.responseText)return D.return(N(c));p.loading=!1;T=i1(c.responseText);g.ew(p,T,!0);if(p.errorCode)return M={ec:p.errorCode,ed:p.errorDetail,es:p.Ck||""},D.return(Promise.reject(new qD("auth",M,2)));if(!p.loading&&!ze(p))return J=p.isAd()?"auth":"manifest.net.retryexhausted",S=p.isAd()?2:1,D.return(Promise.reject(new qD(J,{successButUnplayable:"1"},S)));g.JQ(D)})}; fTY=function(p,C){return new qD(p?"auth":"manifest.net.retryexhausted",C,p?2:1)}; cO=function(p,C,V){V=V===void 0?!1:V;var N,H,X,d;g.I(function(a){if(a.C==1){N=p.K();if(V&&(!g.LI(N)||B_(C)!=="embedded")||C.SA||B_(C)!=="adunit"&&(g.bH(N)||kS(N)||g.gk(N)||g.yj(N)||Lb(N)==="WEB_CREATOR"))return a.return();H=g.pk(N,g.XE(C));return H.T?g.y(a,H.T,3):(X=H.getValue(),a.EY(2))}a.C!=2&&(X=a.T);d=X;return a.return(ITY(p,C,d))})}; ITY=function(p,C,V){var N,H,X,d,a;return g.I(function(E){if(E.C==1){g.vv(E,2);N=Zns(V);var l=C.K();g.$l();var t={context:g.TC(C),videoId:C.videoId,racyCheckOk:C.racyCheckOk,contentCheckOk:C.contentCheckOk,autonavState:"STATE_NONE"};B_(C)==="adunit"&&(t.isAdPlayback=!0);l.embedConfig&&(t.serializedThirdPartyEmbedConfig=l.embedConfig);l.Kp&&(t.showContentOwnerOnly=!0);C.YY&&(t.showShortsOnly=!0);g.LK(0,141)&&(t.autonavState=g.LK(0,140)?"STATE_OFF":"STATE_ON");if(g.wG(l)){var c=g.LK(0,65);c=c!=null? !c:!1;var T=!!g.zW("yt-player-sticky-caption");t.captionsRequested=c&&T}var M;if(l=(M=l.getWebPlayerContextConfig())==null?void 0:M.encryptedHostFlags)t.playbackContext={encryptedHostFlags:l};H=t;X=g.On(bnH);p.ZE("wn_s");return g.y(E,g.E0(N,H,X),4)}if(E.C!=2)return d=E.T,p.ZE("wn_r"),!d||"error"in d&&d.error||(a=d,g.Oe(C.K())&&a.trackingParams&&Oi(a.trackingParams),g.ew(C,{raw_watch_next_response:d},!1)),g.Fe(E,0);g.Sa(E);g.JQ(E)})}; ArV=function(p){p.ZE("vir");p.ZE("ps_s");hd("vir",void 0,"video_to_ad");var C=uke(p);C.then(function(){p.ZE("virc");hd("virc",void 0,"video_to_ad");p.ZE("ps_r");hd("ps_r",void 0,"video_to_ad")},function(){p.ZE("virc"); hd("virc",void 0,"video_to_ad")}); return C}; g.JH=function(p,C,V,N,H,X,d,a,E,l){E=E===void 0?new g.YB(p):E;l=l===void 0?!0:l;g.ca.call(this);var t=this;this.yn=p;this.playerType=C;this.mM=V;this.Dq=N;this.getVisibilityState=X;this.visibility=d;this.lJ=a;this.videoData=E;this.TO=l;this.logger=new g.HI("VideoPlayer");this.qY=new xT1(this.yn);this.UO=null;this.Av=new ms;this.CV=null;this.L$=new LNu(this.yn,this.Dq,this);this.u2=!0;this.Hr=this.nS=null;this.S6=[];this.Ec=new tH;this.QL=this.t_=null;this.XU=new tH;this.pZ=null;this.ex=this.hx=!1; this.Pg=NaN;this.cQ=!1;this.playerState=new g.cj;this.Dv=[];this.Va=new g.Rr;this.q1=new bAu(this);this.mediaElement=null;this.OC=new g.N8(this.ah_,15E3,this);this.Tm=this.OL=!1;this.G7=NaN;this.FE=!1;this.Wq=0;this.Po=!1;this.Zi=NaN;this.ji=new ai(new Map([["bufferhealth",function(){return dAe(t.EZ)}], ["bandwidth",function(){return t.Xh()}], ["networkactivity",function(){return t.yn.schedule.sY}], ["livelatency",function(){return t.isAtLiveHead()&&t.isPlaying()?oWH(t):NaN}], ["rawlivelatency",function(){return oWH(t)}]])); this.o2=0;this.loop=!1;this.playbackRate=1;this.rQ=0;this.EZ=new pxs(this);this.bB=!1;this.Yg=[];this.pP=this.M6=0;this.Fv=this.TH=!1;this.pT=this.mP=0;this.NT=-1;this.MU="";this.CN=new g.N8(this.rU,0,this);this.VU=!1;this.Ze=this.GB=null;this.Akn=[this.Va,this.CN,this.OC,this.ji];this.xA=this.w3=null;this.JE=function(){var c=t.Pc();c.provider.yn.W1||c.provider.Ta.getVisibilityState()===3||(c.provider.yn.W1=!0);mTu(c);if(c.C){var T=c.C;T.W&&T.T<0&&T.provider.Ta.getVisibilityState()!==3&&sVv(T)}c.qoe&& (c=c.qoe,c.UY&&c.C<0&&c.provider.yn.W1&&xaQ(c),c.V&&qa(c));t.nS&&TE(t);t.yn.cP&&!t.videoData.backgroundable&&t.mediaElement&&!t.gi()&&(t.isBackground()&&t.mediaElement.YA()?(t.k_("bgmobile",{suspend:1}),t.Q6(!0,!0)):t.isBackground()||MT(t)&&t.k_("bgmobile",{resume:1}))}; this.Sr={Ct:function(c){t.Ct(c)}, e2_:function(c){t.UO=c}, MEY:function(){return t.DC}, Xp:function(){return t.BE}, Wbn:function(){return t.LN}, LbY:function(){return t.Ni}, y6r:function(){}, K:function(){return t.yn}, Nt:function(){return t.mediaElement}, T9Y:function(c){t.VG(c)}}; this.logger.debug(function(){return"creating, type "+C}); this.ZZ=new gX(function(){return t.getCurrentTime()},function(){return t.getPlaybackRate()},function(){return t.getPlayerState()},function(c,T){c!==g.Ez("endcr")||g.r(t.playerState,32)||sD(t); H(c,T,t.playerType)},function(c,T){g.pf(t.videoData)&&t.k_(c,T)}); g.R(this,this.ZZ);g.R(this,this.EZ);kbY(this,E);this.videoData.subscribe("dataupdated",this.K6$,this);this.videoData.subscribe("dataloaded",this.QI,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.k_,this);this.videoData.subscribe("ctmpstr",this.x8,this);this.ip();qpu(this.JE);this.visibility.subscribe("visibilitystatechange",this.JE);this.LN=new g.N8(this.Im,g.mi(this.yn.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.Ni= new g.N8(this.Im,g.mi(this.yn.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.HP=new kEQ(this)}; Hj=function(p){return p.G("html5_not_reset_media_source")&&!p.O8()&&!p.videoData.isLivePlayback&&g.jQ(p.videoData)&&!p.yn.supportsGaplessShorts()}; kbY=function(p,C){if(p.playerType===2||p.yn.Tz)C.E6=!0;var V=bay(C.Q$,C.mU,p.yn.S,p.yn.D);V&&(C.adFormat=V);p.playerType===2&&(C.X4=!0);if(p.isFullscreen()||p.yn.S)V=g.zW("yt-player-autonavstate"),C.autonavState=V||(p.yn.S?2:p.videoData.autonavState);C.endSeconds&&C.endSeconds>C.startSeconds&&iY(p,C.endSeconds)}; xAQ=function(p){if(p.videoData.J){var C=p.lJ.L1();p.videoData.Qt=p.videoData.Qt||(C==null?void 0:C.y5());p.videoData.Mc=p.videoData.Mc||(C==null?void 0:C.bI())}if(X1s(p.videoData)||!a$(p.videoData))C=p.videoData.errorDetail,p.a_(p.videoData.errorCode||"auth",2,unescape(p.videoData.errorReason),C,C,p.videoData.Ck||void 0);p.G("html5_generate_content_po_token")&&p.Cn();p.G("html5_enable_d6de4")&&p.kA();if(p.G("html5_ssap_cleanup_player_switch_ad_player")||p.G("html5_ssap_cleanup_ad_player_on_new_data"))if(C= p.lJ.DE())p.MU=C.clientPlaybackNonce}; YCS=function(p){vmQ(p.DC);g.iP(p.DC);for(var C=p.BE,V=g.F(C.T.values()),N=V.next();!N.done;N=V.next())vmQ(N.value);C.T.clear();g.iP(p.BE)}; m5=function(p){if(p.G("html5_check_video_data_errors_before_playback_start")&&p.videoData.errorCode)return!1;p.K().Y&&p.K().houseBrandUserStatus&&p.k_("hbut",{status:p.K().houseBrandUserStatus});if(p.videoData.GN())return!0;p.a_("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.vO=function(p,C){(C=C===void 0?!1:C)||g.pf(p.videoData)||$b(p.Pc());p.hx=C;!m5(p)||p.Ec.Rb()?g.bH(p.yn)&&p.videoData.isLivePlayback&&p.Ec.Rb()&&!p.Ec.finished&&!p.hx&&p.QI():(p.Ec.start(),C=p.Pc(),g.Zn(C.provider),C.qoe&&Inu(C.qoe),p.QI())}; zDv=function(p){var C=p.videoData;ArV(p).then(void 0,function(V){p.videoData!==C||C.fS()||(V=bv(V),V.errorCode==="auth"&&p.videoData.errorDetail?p.a_(V.errorCode,2,unescape(p.videoData.errorReason),yu(V.details),p.videoData.errorDetail,p.videoData.Ck||void 0):p.handleError(V))})}; RDL=function(p,C){p.GB=C;p.nS&&b4Y(p.nS,new g.aV(C))}; Pij=function(p){g.r(p.playerState,128)||(p.videoData.isLoaded(),p.logger.debug("finished loading playback data"),p.S6=g.p6(p.videoData.Vn),g.SK(p.videoData)?(p.mM.tick("bpd_s"),Fd(p).then(function(){p.mM.tick("bpd_c");if(!p.fS()){p.hx&&(p.aN(JK(JK(p.playerState,512),1)),MT(p));var C=p.videoData;C.endSeconds&&C.endSeconds>C.startSeconds&&iY(p,C.endSeconds);p.Ec.finished=!0;St(p,"dataloaded");p.XU.Rb()&&nWH(p);hwS(p.L$,p.QL)}}),p.G("html5_log_media_perf_info")&&p.k_("loudness",{v:p.videoData.Gp.toFixed(3)}, !0),eDV(p)):St(p,"dataloaded"))}; Fd=function(p){K$(p);p.QL=null;var C=z2X(p.yn,p.videoData,p.gi());p.t_=C;p.t_.then(function(V){wxv(p,V)},function(V){p.fS()||(V=bv(V),p.visibility.isBackground()?(D_(p,"vp_none_avail"),p.t_=null,p.Ec.reset()):(p.Ec.finished=!0,p.a_(V.errorCode,V.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",yu(V.details))))}); return C}; F9=function(p){p.logger.debug("Updating for format change");Fd(p).then(function(){return MT(p)}); p.playerState.isOrWillBePlaying()&&p.playVideo()}; wxv=function(p,C){if(!p.fS()&&!C.videoData.fS()){p.logger.debug("finished building playback data");p.QL=C;VvY(p.EZ,p.QL);if(p.videoData.isLivePlayback){var V=$AY(p.lJ.wz,p.videoData.videoId)||p.nS&&!isNaN(p.nS.sY);V=p.G("html5_onesie_live")&&V;Xd(p)||p.videoData.Hc>0&&!Ge(p.videoData)||V||p.seekTo(p.Sd(),{NZ:"videoplayer_playbackData",seekSource:18})}if(p.videoData.V.T){if(p.G("html5_sabr_report_missing_url_as_error")&&Jej(p.videoData)){p.handleError(new qD("fmt.missing",{missabrurl:"1"},2));return}p.nS? g.eG(Error("Duplicated Loader")):(V=g.mi(p.yn.experiments,"html5_onesie_defer_content_loader_ms"))&&X9(p)&&$AY(p.lJ.wz,p.videoData.yQ)?g.F5(function(){p.fS()||p.nS||LYH(p)},V):LYH(p)}else!p.videoData.V.T&&ix(p.videoData)&&p.yG(new rd(p.videoData.videoId||"",4)); uY(p);jVj(C).then(function(){var N={};p.Zm(N);p.yn.Gk()&&p.G("html5_log_media_perf_info")&&p.k_("av1Info",N);TE(p)})}}; gWY=function(p){p.logger.debug("start readying playback");p.G("html5_enable_ssap_autoplay_debug_logging")&&p.k_("ssap",{strdypb:1});p.mediaElement&&p.mediaElement.activate();g.vO(p);m5(p)&&!g.r(p.playerState,128)&&(p.XU.Rb()||(p.XU.start(),p.videoData.Of?p.aN(JK(p.playerState,4)):p.aN(JK(JK(p.playerState,8),1))),nWH(p))}; nWH=function(p){p.fS();p.logger.debug("try finish readying playback");if(p.XU.finished)p.logger.debug("already finished readying");else if(p.Ec.finished)if(g.r(p.playerState,128))p.logger.debug("cannot finish readying because of error");else if(p.S6.length)p.logger.debug(function(){return"cannot finish readying because of pending preroll: "+p.S6}); else if(p.ZZ.started||b$u(p.ZZ),p.iX())p.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{p.nS&&(p.ex=nS1(p.nS.timing));p.XU.finished||(p.XU.finished=!0);var C=p.G("html5_onesie_live")&&p.nS&&!isNaN(p.nS.sY);!p.videoData.isLivePlayback||p.videoData.Hc>0&&!Ge(p.videoData)||C||Xd(p)||(p.logger.debug("seek to head for live"),p.seekTo(Infinity,{NZ:"videoplayer_readying",seekSource:18}),p.isBackground()&&(p.Tm=!0));cHL(p.Pc());p.logger.debug("finished readying playback"); p.publish("playbackready",p);dc("pl_c",p.mM.timerName)||(p.mM.tick("pl_c"),hd("pl_c",void 0,"video_to_ad"));dc("pbr",p.mM.timerName)||(p.mM.tick("pbr"),hd("pbr",void 0,"video_to_ad"))}else p.logger.debug("playback data not loaded")}; sD=function(p,C,V){C=C===void 0?!0:C;(V===void 0||V)&&p.mediaElement&&p.mediaElement.pause();p.aN(C?new g.cj(14):new g.cj)}; iY=function(p,C){p.CV&&WYe(p);p.CV=new g.sz(C*1E3,0x7ffffffffffff);p.CV.namespace="endcr";p.addCueRange(p.CV)}; WYe=function(p){p.removeCueRange(p.CV);p.CV=null}; QTe=function(p,C,V,N,H){var X=p.Pc(H),d=g.pf(p.videoData)?X.getVideoData():p.videoData;d.C=V;var a=g.Z_(p);V=new $4s(d,V,C,a?a.itag:"",N);p.yn.experiments.OY("html5_refactor_sabr_video_format_selection_logging")?(V.videoId=H,p.xA=V):X.yX(V);H=p.L$;H.C=0;H.T=0;p.publish("internalvideoformatchange",d,C==="m")}; g.Z_=function(p){var C=UD(p);return Ni(C)||!p.QL?null:g.L0(p.QL.T.videoInfos,function(V){return C.S(V)})}; UD=function(p){if(p.QL){var C=p.L$;var V=p.QL;p=p.F_();if(C.Ta.Uu().isInline())var N=xB;else C.G("html5_exponential_memory_for_sticky")?N=m4(C.yn.f9,"sticky-lifetime")<.5?"auto":H1[Y1()]:N=H1[Y1()],N=g.jo("auto",N,!1,"s");if(Ni(N)){if(N=gkX(C,V).compose(GG9(C,V)).compose(CFv(C,V)).compose(daY(C,V.videoData)).compose(iuV(C,V.videoData,V)).compose(Dn(C,V)).compose(rIj(C,V)),Ni(p)||C.G("html5_apply_pbr_cap_for_drm"))N=N.compose(BZe(C,V))}else C.G("html5_perf_cap_override_sticky")&&(N=N.compose(Dn(C, V))),C.G("html5_ustreamer_cap_override_sticky")&&(N=N.compose(BZe(C,V)));N=N.compose(rIj(C,V));C=V.videoData.KT.compose(N).compose(V.videoData.f5).compose(p)}else C=xB;return C}; Fv9=function(p){var C=p.L$;p=p.videoData;var V=daY(C,p);C.G("html5_disable_client_autonav_cap_for_onesie")||V.compose(iuV(C,p));return V}; g.rrv=function(p,C,V,N){var H=C.T,X=C.reason;if(p.G("html5_enable_qoe_video_format_intent")){var d;if((d=p.Pc().qoe)!=null&&!(H<=0)){var a=g.Zn(d.provider);g.OZ(d,a,"vfi",[H+"p",X])}}p.videoData.KT=C;if(p.QL&&V&&(V=p.L$,H=p.QL,H.T.T&&(X=Y1(),d=H.T.videoInfos[0].video.T,!(X>d&&d!==0&&C.T===d)))){var E;X=QB1(V,(E=H.T)==null?void 0:E.videoInfos);E=V.Ta.getPlaybackRate();E>1&&X&&(E=ugX(V.yn.W,H.T.videoInfos,E),C.T!==0&&E<C.T&&V.Ta.setPlaybackRate(1));var l,t;C=g.PB[XP(C)];E=((l=H.videoData.C)==null?void 0: (t=l.video)==null?void 0:t.T)||0;g.Yl("yt-player-quality",{quality:C,previousQuality:E},31104E3);V.yn.schedule.policy.S=Y1()>=480;if(V.G("html5_exponential_memory_for_sticky")){l=V.yn.f9;t=1;var c=c===void 0?!1:c;Pnj(l,"sticky-lifetime");l.values["sticky-lifetime"]&&l.uq["sticky-lifetime"]||(l.values["sticky-lifetime"]=0,l.uq["sticky-lifetime"]=0);c&&m4(l,"sticky-lifetime")>.0625&&(t=l.uq["sticky-lifetime"]*2);l.values["sticky-lifetime"]+=1*Math.pow(2,l.T/t);l.uq["sticky-lifetime"]=t;l.S.start()}if(V.G("html5_perf_cap_override_sticky")){c= V.V;l=V.G("html5_perserve_av1_perf_cap");l=l===void 0?!1:l;if(l===void 0?0:l){t=RH();C=g.F(Object.keys(t));for(V=C.next();!V.done;V=C.next())V=V.value,V.indexOf("1")!==0&&delete t[V];g.Yl("yt-player-performance-cap",t,2592E3)}else g.R_("yt-player-performance-cap");ZFY(l);if(l){l=g.F(uo.keys());for(t=l.next();!t.done;t=l.next())t=t.value,t.startsWith("1")||uo.delete(t);l=g.F(Ku.values());for(t=l.next();!t.done;t=l.next())t=t.value,t.startsWith("1")||Ku.delete(t);l=g.F(c.keys());for(t=l.next();!t.done;t= l.next())t=t.value,t.startsWith("1")||c.delete(t)}else uo.clear(),Ku.clear(),c.clear()}}p.nS&&(c=p.nS,N=N||"",c.policy.T?xd(c.C.T,N):xd(c.T.W,N));uY(p)}; uY=function(p){if(!p.fS()&&!g.r(p.playerState,128)&&p.videoData.V){if(p.videoData.V.T)TE(p);else{var C=UD(p),V=p.videoData;a:{var N=p.videoData.FO;if(C.T){for(var H=g.F(N),X=H.next();!X.done;X=H.next()){X=X.value;var d=X.getInfo(),a=g.PB[d.video.quality];if((!C.V||d.video.quality!=="auto")&&a<=C.T){N=X;break a}}N=N[N.length-1]}else N=N[0]}V.KS=N;QTe(p,C.reason,BMv(p,p.videoData.KS))}if(p.G("html5_check_unstarted")?p.playerState.isOrWillBePlaying():p.isPlaying())p.EZ.D=!1,p.playVideo()}}; TE=function(p){if(p.videoData.V&&p.videoData.V.T){var C=UD(p);p.nS&&EdQ(p.nS,C)}}; GbQ=function(p){var C;return!!(p.G("html5_native_audio_track_switching")&&g.D1&&((C=p.videoData.C)==null?0:jb(C)))}; pze=function(p){if(!GbQ(p))return!1;var C;p=(C=p.mediaElement)==null?void 0:C.audioTracks();return!!(p&&p.length>1)}; je9=function(p){var C=CWQ(p);if(C)return p.videoData.getAvailableAudioTracks().find(function(V){return V.K4.getName()===C})}; CWQ=function(p){var C;if(p=(C=p.mediaElement)==null?void 0:C.audioTracks())for(C=0;C<p.length;++C){var V=p[C];if(V.enabled)return V.label}}; V4s=function(p){var C,V=p.videoData.getAvailableAudioTracks(),N=p.videoData.JF;N&&(C=V.find(function(X){return X.getLanguageInfo().id===N})); if(p.yn.experiments.OY("enable_audio_description_setting")&&g.LK(g.$l(),198)){V=g.F(V);for(var H=V.next();!H.done;H=V.next())if(H=H.value,H.W){C=H;break}}C||(p=p.getAudioTrack(),C=p.K4.isDefault?void 0:p);return C}; LYH=function(p){for(var C=p.videoData.T,V=g.F(Object.entries({cpn:p.videoData.clientPlaybackNonce,c:p.yn.T.c,cver:p.yn.T.cver})),N=V.next();!N.done;N=V.next()){var H=g.F(N.value);N=H.next().value;H=H.next().value;for(var X=g.F(Object.values(C.T)),d=X.next();!d.done;d=X.next())xoy(d.value.sR,N,H);X=void 0;(X=C.J)==null||xoy(X,N,H)}V=p.yn;N=p.videoData;C=new g.YWu(V);H=xIv({hasSubfragmentedFmp4:N.hasSubfragmentedFmp4,Wo:N.Wo});C.J=H;C.Vn=N.maxReadAheadMediaTimeMs/1E3||C.Vn;H=V.schedule;H.V.Kd()===H.policy.V? C.Hc=10:C.Hc=N.minReadAheadMediaTimeMs/1E3||C.Hc;C.AX=N.readAheadGrowthRateMs/1E3||C.AX;C.Q1=!iU();g.bH(V)||!iU()?(H=V.experiments,C.Ga=8388608,C.kM=524288,C.KM=5,C.Y_=1048576,C.m0=1.5,C.F$=4587520,Bd()&&(C.F$=786432),C.Z*=1.1,C.a$*=1.1,C.FO=!0,C.d6=H.OY("persist_disable_player_preload_on_tv")||H.OY("persist_disable_player_preload_on_tv_for_living_room")||!1):V.C&&(C.Z*=1.3,C.a$*=1.3);g.kZ&&g.gm("crkey")&&(H=V.T.cmodel==="CHROMECAST/ANCHOVY",C.Ga=20971520,C.kM=1572864,H&&(C.F$=812500,C.K$=1E3,C.l3= 5,C.Y_=2097152));g.k$&&(C.FO=!0);V.supportsGaplessAudio()||(C.eE=!1);rB&&(C.QZ=!0);C.f9=V.G("html5_peak_shave");N.fetchType==="onesie"&&V.G("html5_disable_peak_shave_for_onesie")&&(C.f9=!1);var a;H=(a=N.T)==null?void 0:l5(a);if(Ge(N)){C.hE=!0;C.Of||(C.Pz=!0);C.Q$=!0;C.lM=!0;C.jL=!0;if(N.latencyClass==="ULTRALOW"||N.latencyClass==="LOW"&&!V.G("html5_disable_low_pipeline"))C.oa=2,C.Lw=4;C.yV=N.defraggedFromSubfragments;if(N.tE||V.G("html5_publish_all_cuepoints"))C.AI=!0;g.ud(N)&&(C.ER=!1);C.Om=g.qz(V)}N.isAd()&& (C.Y9=0,C.Gp=0);C.pk=V.G("html5_enable_subsegment_readahead_v3")||V.G("html5_ultra_low_latency_subsegment_readahead")&&N.latencyClass==="ULTRALOW";C.V=V.Gk();XW()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(V.T.cmodel)&&!V.G("html5_disable_move_pssh_to_moov")&&H&&(C.FO=!1);X=0;V.G("html5_live_use_alternate_bandwidth_window_sizes")&&(X=V.schedule.policy.T,N.isLivePlayback&&(X=g.mi(V.experiments,N.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":N.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window": "html5_live_normal_latency_bandwidth_window")||X));a=V.schedule;a.C.S=Ge(N)?.5:0;if(!a.policy.C&&X&&(a=a.V,X=Math.round(X*a.resolution),X!==a.T)){d=Array(X);var E=Math.min(X,a.V?a.T:a.C),l=a.C-E;l<0&&(l+=a.T);for(var t=0;t<E;++t)d[t]=a.values[(l+t)%a.T];for(;t<X;++t)d[t]=Infinity;a.T=X;a.values=d;a.C=E%X;a.V=E===X;a.d2=!0;a.W=or1(a)}N.isLivePlayback&&(C.BB=g.mi(V.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,C.R$=!1);N.O8()&&(C.R$=!1);ld(N)&&(C.pk=!0,N.latencyClass=== "LOW"?C.RN=g.mi(V.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):N.latencyClass==="ULTRALOW"&&(C.RN=g.mi(V.experiments,"html5_jumbo_ull_subsegment_readahead_target")),C.Ot=!0);N.p4()&&(C.Kp=1.3);C.QZ=C.QZ||N.Mq;C.Wc=(C.Wc||N.Wc)&&V.D;C.BI=V.G("html5_sunset_aac_high_codec_family");C.C=g.pf(N);C.KS=N.J||C.C&&!V.G("html5_enable_ssap_seteos");V.Gk()&&(C.X$=!0);N.J&&!H&&(C.hI=!0);N.J&&N.isAd()&&(C.Z*=1.6,C.a$*=1.6);ix(N)&&(C.S=N.videoId,C.td=!0,C.Ik=100,N.Ot&&N.Ot.length>0&&(C.i8=N.Ot)); C.qn=N.Kq;C.Tp=U6(V,{},N.V||void 0,sW(N));C.qo=hl(N)&&g.gk(V);C.lF=V.G("html5_catch_errors_for_rollback");$B(N)&&(C.Ij=g.mi(V.experiments,"html5_sabr_seek_epsilon_ms"),V.G("html5_sabr_report_partial_segment_estimated_duration")&&(C.SA=!0),C.T=!0,C.Tz=V.G("html5_sabr_enable_utc_seek_requests"),C.cP=V.G("html5_sabr_enable_live_clock_offset"),C.sx=V.G("html5_disable_client_resume_policy_for_sabr"),C.Zw=V.G("html5_trigger_loader_when_idle_network"),C.Z4=V.G("html5_sabr_parse_live_metadata_playback_boundaries"), C.yR=V.G("html5_enable_platform_backpressure_with_sabr"),C.oi=V.G("html5_consume_onesie_next_request_policy_for_sabr"),C.E5=V.G("html5_sabr_report_next_ad_break_time"),C.QP=V.G("html5_log_high_res_buffer_timeline"),C.VR=V.G("html5_remove_stuck_slices_beyond_max_buffer_limits"),C.Su=V.G("html5_gapless_sabr_btl_last_slice")&&id(N),Ge(N)?(C.IX=!0,C.Ic=V.G("html5_disable_variability_tracker_for_live"),C.UY=V.G("html5_sabr_use_accurate_slice_info_params")):C.qW=V.G("html5_probe_request_on_sabr_request_progress"), C.nA=V.G("html5_serve_start_seconds_seek_for_post_live_sabr"),C.o6=V.G("html5_flush_index_on_updated_timestamp_offset"),C.b_=V.G("html5_enable_sabr_request_pipelining")&&!g.pf(N),C.Ra=V.G("html5_ignore_partial_segment_from_live_readahead"),C.KT=V.G("html5_use_non_active_broadcast_for_post_live"),C.Wr=V.G("html5_use_centralized_player_time"),C.hg=V.G("html5_consume_onesie_sabr_seek"),C.sY=V.G("html5_enable_sabr_seek_loader_refactor"),C.ra=V.G("html5_update_segment_start_time_from_media_header"),N.enableServerStitchedDai&& (C.W=!0,C.Rj=V.G("html5_reset_server_stitch_state_for_non_sabr_seek"),C.s5=V.G("html5_remove_ssdai_append_pause"),C.Qn=V.G("html5_consume_ssdai_info_with_streaming"),C.Uv=V.G("html5_process_all_cuepoints")));C.Y=C.T&&V.G("html5_sabr_live");Je(V.W,mw.BITRATE)&&(C.F$=NaN);if(a=g.mi(V.experiments,"html5_request_size_max_kb"))C.Y_=a*1024;V.W.S?C.cV="; "+mw.EXPERIMENTAL.name+"=allowed":V.G("html5_enable_cobalt_tunnel_mode")&&(C.cV="; tunnelmode=true");a=N.serverPlaybackStartConfig;(a==null?0:a.enable)&& (a==null?0:a.playbackStartPolicy)&&(C.I5=!0,zt9(C,a.playbackStartPolicy,2));a=V4s(p);p.Av.removeAll();a:{V=p.lJ.wz;if(N=p.videoData.videoId)if(H=V.T.get(N)){V.T.remove(N);V=H;break a}V=void 0}p.nS=new g.Hu(p,p.yn.schedule,C,p.videoData.T,p.videoData.V,UD(p),a,p.videoData.enableServerStitchedDai,V,p.videoData.Y_);C=p.videoData.G("html5_disable_preload_for_ssdai_with_preroll")&&p.videoData.isDaiEnabled()&&X9(p)?!0:p.hx&&g.bH(p.yn)&&p.videoData.isLivePlayback;p.nS.initialize(p.getCurrentTime(),UD(p), C);p.videoData.probeUrl&&(p.nS.R$=p.videoData.probeUrl);if(p.S6.length||p.hx)p.videoData.cotn||f$(p,!1);Hn1(p.EZ,p.nS);p.GB&&b4Y(p.nS,new g.aV(p.GB));p.Ze&&(p.nS.hK(p.Ze),p.EZ.D=!1);g.s5(p.videoData)&&(p=p.nS,p.policy.uM=p.policy.nj)}; K$=function(p){p.nS&&(p.nS.dispose(),p.nS=null,Hn1(p.EZ,null));Hj(p)?Nuu(p):OD(p)}; Nuu=function(p){if(p.Hr)if(p.logger.debug("release media source"),p.Gh(),p.Hr.W)try{p.yn.Gk()&&p.k_("rms",{l:"vprms",sr:Hj(p),rs:dl(p.Hr)});p.Hr.clear();var C;(C=p.mediaElement)!=null&&(C.C=p.Hr);p.Hr=null}catch(V){C=new g.Bw("Error while clearing Media Source in VideoPlayer: "+V.name+", "+V.message),C=bv(C),p.handleError(C),OD(p)}else OD(p)}; OD=function(p,C){C=C===void 0?!1:C;p.Hr&&(p.logger.debug("remove media source"),Zqy(p.Hr),p.Gh(C),p.Hr.dispose(),p.Hr=null)}; Xze=function(p,C){C=C===void 0?!1:C;if(p.Hr)return p.Hr.V;p.logger.debug("update media source");a:{C=C===void 0?!1:C;try{g.Qg()&&p.videoData.Ez()&&fUV(p.mediaElement);var V=p.mediaElement.In(p.dc(),p.Tc())}catch(H){if(YpS(p.q1,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",H);p.a_("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}HZe(p,V,!1,!1,C)}var N;return((N=p.In())==null?void 0:N.V)||null}; HZe=function(p,C,V,N,H){function X(d){try{ddy(p,d,V,N)}catch(a){g.eG(a),p.handleError(new qD("fmt.unplayable",{msi:"1",ename:a&&typeof a==="object"&&"name"in a?String(a.name):void 0},1))}} V=V===void 0?!1:V;N=N===void 0?!1:N;iZ9(p,H===void 0?!1:H);p.Hr=C;Hj(p)&&dl(p.Hr)==="open"?X(p.Hr):Fz1(p.Hr,X)}; iZ9=function(p,C){C=C===void 0?!1:C;if(p.nS){var V=p.getCurrentTime()-p.yZ();p.nS.seek(V,{h6:C}).Rz(function(){})}else LYH(p)}; ddy=function(p,C,V,N){V=V===void 0?!1:V;N=N===void 0?!1:N;if(p.Hr&&(!C||p.Hr===C)){p.logger.debug("media source opened");var H=p.getDuration();!H&&Ge(p.videoData)&&(H=25200);if(p.Hr.isView){var X=H;p.logger.debug(function(){return"Set media source duration to "+X+", video duration "+H}); X>p.Hr.getDuration()&&hMs(p,X)}else hMs(p,H);hbL(p.nS,p.Hr,V,N);p.publish("mediasourceattached")}}; hMs=function(p,C){if(p.Hr){p.Hr.Nr(C);var V;(V=p.nS)!=null&&V.policy.Wr&&(V.W=C)}}; tfs=function(p,C){QTe(p,C.reason,C.T.info,C.token,C.videoId)}; sZ=function(p,C,V,N){C=C===void 0?!1:C;V=V===void 0?!1:V;N=N===void 0?!1:N;var H,X,d;return g.I(function(a){if(a.C==1){p.nS&&p.nS.Cg();p.nS&&p.nS.fS()&&K$(p);if(p.G("html5_enable_vp9_fairplay")&&p.O8()&&(H=p.videoData.T)!=null)for(var E in H.T)H.T.hasOwnProperty(E)&&(H.T[E].T=null,H.T[E].V=!1);p.aN(JK(p.playerState,2048));p.G("html5_ssap_keep_media_on_finish_segment")&&g.pf(p.videoData)?p.publish("newelementrequired",N):p.publish("newelementrequired");return C?g.y(a,Fd(p),2):a.EY(2)}p.videoData.p4()&& ((X=p.nS)==null?0:X.sY)&&!Xd(p)&&((d=p.isAtLiveHead())&&rP(p.videoData)?p.seekTo(Infinity,{NZ:"videoPlayer_getNewElement"}):p.videoData.EO&&p.nS&&(E=p.nS,E.hk.p4&&(E.hk.EO||E.hk.S||E.hk.isPremiere?(E.seek(0,{NZ:"loader_resetSqless"}),E.videoTrack.D=!0,E.audioTrack.D=!0,E.videoTrack.W=!0,E.audioTrack.W=!0):SO(E.hk)&&uQ(E))));V&&p.seekTo(0,{seekSource:105});g.r(p.playerState,8)&&(p.G("html5_ssap_keep_media_on_finish_segment")&&g.pf(p.videoData)?p.playVideo(!1,N):p.playVideo());g.JQ(a)})}; yX=function(p,C){p.k_("hgte",{ne:+C});p.videoData.J=!1;C&&sZ(p);p.nS&&H4Y(p.nS)}; sej=function(p,C){p.k_("newelem",{r:C});sZ(p)}; aRy=function(p,C){p.mM.S.rd();g.r(p.playerState,32)||(p.aN(JK(p.playerState,32,C==null?void 0:C.seekSource)),g.r(p.playerState,8)&&p.pauseVideo(!0),p.publish("beginseeking",p));p.m6()}; EXe=function(p,C){C=C==null?void 0:C.seekSource;g.r(p.playerState,32)?(p.aN(vj(p.playerState,16,32,C)),p.publish("endseeking",p)):g.r(p.playerState,2)||p.aN(JK(p.playerState,16,C));p.mM.S.vy(p.videoData,p.playerState.isPaused())}; lRu=function(p,C){p.yn.experiments.OY("enable_adb_handling_in_sabr")&&(p.pauseVideo(!0),p.Ci(),C&&p.a_("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; t4X=function(p){var C=0,V="";if(p.GB){if(p.GB.bX)return"D,";C=p.GB.Z5();V=p.GB.yv().substring(0,4)}else p.Ze&&(C=p.Ze.Z5(),V=p.Ze.yv().substring(0,4));return C>0?(p="AD"+C+", ",V&&(p+=V+", "),p):""}; St=function(p,C){p.publish("internalvideodatachange",C===void 0?"dataupdated":C,p,p.videoData)}; cDS=function(p){for(var C=g.F("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),V=C.next();!V.done;V=C.next())p.Va.U(p.mediaElement,V.value,p.VG,p);p.yn.KM&&p.mediaElement.F6()&&(p.Va.U(p.mediaElement,"webkitplaybacktargetavailabilitychanged",p.Va_,p),p.Va.U(p.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",p.SYY,p))}; M4y=function(p){g.Dr(p.Pg);Tuj(p)||(p.Pg=g.Se(function(){return Tuj(p)},100))}; Tuj=function(p){var C=p.mediaElement;C&&p.OL&&!p.videoData.sY&&!dc("vfp",p.mM.timerName)&&C.wh()>=2&&!C.isEnded()&&tj(C.yx())>0&&p.mM.tick("vfp");return(C=p.mediaElement)&&!p.videoData.sY&&C.getDuration()>0&&(C.isPaused()&&C.wh()>=2&&tj(C.yx())>0&&(dc("pbp",p.mM.timerName)||p.mM.tick("pbp"),!p.videoData.Of||p.cQ||C.isSeeking()||(p.cQ=!0,p.publish("onPlaybackPauseAtStart"))),C=C.getCurrentTime(),Wu(p.qY,C))?(JDa(p),!0):!1}; JDa=function(p){g.Dr(p.Pg);p.OC.stop();p.videoData.sY=!0;p.yn.sx=!0;p.yn.Q$=0;var C=p.q1;if(C.videoData.C){var V=C.I$.W,N=C.videoData.C.o$;V.C.has(N)&&(V.C.delete(N),pI(V))}C.T.stop();mdS(p);g.r(p.playerState,8)&&p.aN(mE(p.playerState,65));p.hx=!1;TLS(p.Pc());g.HF(p.LN);p.publish("playbackstarted");(p=g.zV("yt.scheduler.instance.clearPriorityThreshold"))?p():dq(0,0)}; mdS=function(p){var C=p.lJ.DE(),V={},N={};!dc("pbs",p.mM.timerName)&&LS.measure&&LS.getEntriesByName&&(LS.getEntriesByName("mark_nr")[0]?pCV("mark_nr"):pCV());C.videoId&&(V.videoId=C.videoId);C.clientPlaybackNonce&&!p.G("web_player_early_cpn")&&(V.clientPlaybackNonce=C.clientPlaybackNonce);p.mediaElement&&p.mediaElement.isPaused()&&(N.isPausedOnLoad=!0);N.itag=C.C?Number(C.C.itag):-1;C.QZ&&(N.preloadType=String(p.ex?2:1));V.liveStreamMode=vXL[v_(C)];V.playerInfo=N;p.mM.infoGel(V);if(p.nS){C=p.nS.timing; window&&window.performance&&window.performance.getEntriesByName&&(C.V&&(V=window.performance.getEntriesByName(C.V),V.length&&(V=V[0],C.tick("vri",V.fetchStart),C.tick("vdns",V.domainLookupEnd),C.tick("vreq",V.requestStart),C.tick("vrc",V.responseEnd))),C.C&&(V=window.performance.getEntriesByName(C.C),V.length&&(V=V[0],C.tick("ari",V.fetchStart),C.tick("adns",V.domainLookupEnd),C.tick("areq",V.requestStart),C.tick("arc",V.responseEnd))));C=C.ticks;for(var H in C)C.hasOwnProperty(H)&&p.mM.tick(H,C[H])}}; FDV=function(p,C,V,N){C=(C+(p.NT===3?.3:0))/V;V=Math.floor(C*4);V>p.NT&&(p.k_("vpq",{q:V,cpn:N||p.videoData.clientPlaybackNonce,ratio:C.toFixed(3)}),p.NT=V)}; SRY=function(p){p.Pc().Nn();if(rP(p.videoData)&&Date.now()>p.rQ+6283){if(!(!p.isAtLiveHead()||p.videoData.T&&cb(p.videoData.T))){var C=p.Pc();if(C.qoe){C=C.qoe;var V=C.provider.Ta.sS(),N=g.Zn(C.provider);Ou1(C,N,V);V=V.V;isNaN(V)||g.OZ(C,N,"e2el",[V.toFixed(3)])}}p.G("html5_alc_live_log_rawlat")?(C=p.videoData,C=g.qz(C.K())?!0:g.eH(C.K())?C.K$==="6":!1):C=g.qz(p.yn);C&&p.k_("rawlat",{l:lY(p.ji,"rawlivelatency").toFixed(3)});p.rQ=Date.now()}p.videoData.C&&jb(p.videoData.C)&&(C=p.aj())&&C.videoHeight!== p.pP&&(p.pP=C.videoHeight,QTe(p,"a",BMv(p,p.videoData.KS)))}; BMv=function(p,C){if(C.T.video.quality==="auto"&&jb(C.getInfo())&&p.videoData.FO)for(var V=g.F(p.videoData.FO),N=V.next();!N.done;N=V.next())if(N=N.value,N.getHeight()===p.pP&&N.T.video.quality!=="auto")return N.getInfo();return C.getInfo()}; oWH=function(p){if(!rP(p.videoData))return NaN;var C=0;p.nS&&p.videoData.T&&(C=Ge(p.videoData)?p.nS.aF.Kd()||0:p.videoData.T.Vn);return(0,g.Ip)()/1E3-p.Xt()-C}; Ddy=function(p){p.mediaElement&&p.mediaElement.gi()&&(p.Zi=(0,g.Ip)());p.yn.lL?g.F5(function(){KDj(p)},0):KDj(p)}; KDj=function(p){var C;if((C=p.Hr)==null||!C.Ii()){if(p.mediaElement)try{p.pZ=p.mediaElement.playVideo()}catch(N){D_(p,"err."+N)}if(p.pZ){var V=p.pZ;V.then(void 0,function(N){p.logger.debug(function(){return"playMediaElement failed: "+N}); if(!g.r(p.playerState,4)&&!g.r(p.playerState,256)&&p.pZ===V)if(N&&N.name==="AbortError"&&N.message&&N.message.includes("load"))p.logger.debug(function(){return"ignore play media element failure: "+N.message}); else{var H="promise";N&&N.name&&(H+=";m."+N.name);D_(p,H);p.bB=!0;p.videoData.FT=!0}})}}}; D_=function(p,C){g.r(p.playerState,128)||(p.aN(vj(p.playerState,1028,9)),p.k_("dompaused",{r:C}),p.publish("onAutoplayBlocked"))}; MT=function(p,C){C=C===void 0?!1:C;if(!p.mediaElement||!p.videoData.V)return!1;var V=C;V=V===void 0?!1:V;var N=null;var H;if((H=p.videoData.V)==null?0:H.T){N=Xze(p,V);var X;(X=p.nS)==null||X.resume()}else K$(p),p.videoData.KS&&(N=p.videoData.KS.Qa());H=p.mediaElement.YA();V=!1;H&&H.sE(N)||(uov(p,N),V=!0);g.r(p.playerState,2)||(N=p.EZ,C=C===void 0?!1:C,N.W||!(N.S>0)||N.mediaElement&&N.mediaElement.getCurrentTime()>0||(C={NZ:"seektimeline_resumeTime",h6:C},N.videoData.sY||(C.seekSource=15),N.seekTo(N.S, C)));a:{C=V;if($B(p.videoData)){if(!p.videoData.O8())break a}else if(!g.Jl(p.videoData))break a;if(p.mediaElement)if((N=p.videoData.W)&&p.mediaElement.F6()){H=p.mediaElement.V$();if(p.UO)if(H!==p.UO.element)qT(p);else if(C&&N.flavor==="fairplay"&&!rm())qT(p);else break a;if(p.G("html5_report_error_for_unsupported_tvos_widevine")&&rm()&&N.flavor==="widevine")p.a_("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{p.UO=new SpL(H,p.videoData,p.yn);p.UO.subscribe("licenseerror", p.ZD,p);p.UO.subscribe("qualitychange",p.TyY,p);p.UO.subscribe("heartbeatparams",p.i7,p);p.UO.subscribe("keystatuseschange",p.Ct,p);p.UO.subscribe("ctmp",p.k_,p);p.G("html5_widevine_use_fake_pssh")&&!p.videoData.isLivePlayback&&N.flavor==="widevine"&&p.UO.EA(new QN(ZZ1,"cenc",!1));C=g.F(p.Av.keys);for(N=C.next();!N.done;N=C.next())N=p.Av.get(N.value),p.UO.EA(N);p.G("html5_eme_loader_sync")||p.Av.removeAll()}}else p.a_("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return V}; uov=function(p,C){p.mM.tick("vta");hd("vta",void 0,"video_to_ad");p.getCurrentTime()>0&&hDj(p.EZ,p.getCurrentTime());p.mediaElement.activate(C);p.Hr&&dq(0,4);!p.videoData.sY&&p.playerState.isOrWillBePlaying()&&p.OC.start();if(GbQ(p)){var V;if(C=(V=p.mediaElement)==null?void 0:V.audioTracks())C.onchange=function(){p.publish("internalaudioformatchange",p.videoData,!0)}}}; qT=function(p){p.UO&&(p.UO.dispose(),p.UO=null)}; Udu=function(p){var C=C===void 0?!1:C;p.logger.debug("reattachVideoSource");p.mediaElement&&(p.Hr?(qT(p),OD(p),Xze(p,C)):(p.videoData.KS&&p.videoData.KS.C2(),p.mediaElement.stopVideo()),p.playVideo())}; fRH=function(p,C){p.yn.G("html5_log_rebuffer_reason")&&(C={r:C,lact:bV()},p.mediaElement&&(C.bh=E3(p.mediaElement)),p.k_("bufreason",C))}; Ii=function(p,C,V,N,H,X,d,a,E){var l;if((l=p.videoData.T)==null?0:l.isLive){var t=V.playerType===2?V:C,c=C.videoData.videoId,T=V.videoData.videoId;if(c&&T){l=p.Pc();if(l.qoe){var M=l.qoe,J=C.cpn,S=V.cpn,D=t.videoData.Q$,Z=M.provider.videoData.clientPlaybackNonce,f=M.provider.videoData.videoId,q=S!==Z&&T!==f;Z=J!==Z&&c!==f;M.reportStats();M.adCpn&&M.adCpn!==J||(M.adCpn=Z?J:"",M.a$=Z?c:"",M.adFormat=Z?D:void 0,A6(M,2,d?4:X?2:0,S,T,H),M.reportStats(),M.adCpn=q?S:"",M.a$=q?T:"",M.adFormat=q?D:void 0, A6(M,2,d?5:X?3:1,J,c,N),M.reportStats())}N=C.cpn;if(l.V.has(N)){if(X=l.V.get(N),eP(X,!0).send(),nu(X),N!==l.provider.videoData.clientPlaybackNonce){i$y(X);var A;(A=l.T)==null||Vts(A);l.V.delete(N)}}else l.tp=l.provider.videoData.clientPlaybackNonce,l.tp&&l.T&&(l.V.set(l.tp,l.T),eP(l.T).send(),nu(l.T));A=V.cpn;t=t.videoData;H-=p.SX();if(l.V.has(A)){H=l.V.get(A);var z=H.V&&isNaN(H.W)?RV(H):NaN;H=dT9(H,!1);isNaN(z)||(H.Y=z);H.send()}else H=K5a(l,l.provider,t,H),l.V.set(A,H),h2y(H,new g.Kt(JK(new g.cj, 8),new g.cj)),jia(H),(z=l.T)==null||nu(z);l.tp=A;p.G("html5_unify_csi_server_stitched_transition_logging")?OZL(C.cpn,V.cpn,p.videoData.clientPlaybackNonce,V.videoData,a,void 0,E):(l=p.videoData.clientPlaybackNonce,p=V.videoData,C=(C.cpn===l?"video":"ad")+"_to_"+(V.cpn===l?"video":"ad"),l={},p.Y&&(l.cttAuthInfo={token:p.Y,videoId:p.videoId}),a&&(l.startTime=a),XA(C,l),g.HH({targetVideoId:p.videoId,targetCpn:V.cpn,isSsdai:!0},C),NR("pbs",E!=null?E:(0,g.Ip)(),C))}}}; yDY=function(p,C){if(p.yn.Gk()&&p.mediaElement){var V=p.mediaElement.X0();V.omt=(p.mediaElement.getCurrentTime()+p.yZ()).toFixed(3);V.ps=p.playerState.state.toString(16);V.rt=(g.Zn(p.Pc().provider)*1E3).toFixed();V.e=C;p.Yg[p.M6++%5]=V}try{if(C==="timeupdate"||C==="progress")return}catch(N){}p.logger.debug(function(){return"video element event "+C})}; qR1=function(p){if(p.yn.Gk()){p.Yg.sort(function(N,H){return+N.rt-+H.rt}); for(var C=g.F(p.Yg),V=C.next();!V.done;V=C.next())V=V.value,p.k_("vpe",Object.assign({t:V.rt},V));p.Yg=[];p.M6=0}}; IRj=function(p){if(g.gm("cobalt")&&g.gm("nintendo switch")){var C=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;p.k_("nxdock",{d:C})}}; bZS=function(p,C,V,N,H){p.k_("xvt",{m:C,g:1,tt:V?1:0,np:N?1:0,c:H})}; f$=function(p,C){var V;(V=p.nS)==null||iF(V,C)}; X9=function(p){return g.W5(p.S6,"ad")}; AIX=function(p,C){return g.pf(p.videoData)&&p.Ze?p.Ze.handleError(C,void 0):!1}; eDV=function(p){W7(p.videoData,"html5_set_debugging_opt_in")&&(p=g.$l(),g.LK(0,183)||(Ww(183,!0),p.save()))}; ADu=function(p){return g.pf(p.videoData)&&p.Ze?GG(p.Ze):p.videoData.Sd()}; Rb9=function(p,C){p.lJ.SS()||(p.k_("sgap",{f:C}),p.lJ.clearQueue(!1,C==="pe"))}; Xd=function(p){return p.G("html5_disable_video_player_initiated_seeks")&&$B(p.videoData)}; oXe=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);J_(this.api,"isLifaAdPlaying",function(){return C.api.isLifaAdPlaying()}); this.events.U(p,"serverstitchedvideochange",function(){C.api.isLifaAdPlaying()?(C.playbackRate=C.api.getPlaybackRate(),C.api.setPlaybackRate(1)):C.api.setPlaybackRate(C.playbackRate)}); this.playbackRate=1}; kIY=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);J_(this.api,"seekToChapterWithAnimation",function(V){C.seekToChapterWithAnimation(V)}); J_(this.api,"seekToTimeWithAnimation",function(V,N){C.seekToTimeWithAnimation(V,N)}); J_(this.api,"renderChapterSeekingAnimation",function(V,N,H){C.api.renderChapterSeekingAnimation(V,N,H)}); J_(this.api,"setMacroMarkers",function(V){C.setMacroMarkers(p,V)}); J_(this.api,"changeMarkerVisibility",function(V,N,H){C.changeMarkerVisibility(V,N,H)}); J_(this.api,"isSameMarkerTypeVisible",function(V){return C.isSameMarkerTypeVisible(V)})}; xde=function(p,C,V){var N=p.api.getCurrentTime()*1E3<C?1:-1;p.api.renderChapterSeekingAnimation(N,V);p.api.seekTo(C/1E3,void 0,void 0,void 0,3)}; YRS=function(p,C){var V,N;return(V=Mg(p,"macroMarkersListEntity",C))==null?void 0:(N=V.markersList)==null?void 0:N.markerType}; zMH=function(p,C){var V=g.Xx.getState().entities;p=YRS(V,p);C=g.F(C.Qn);for(var N=C.next();!N.done;N=C.next())if(p===YRS(V,N.value))return!0;return!1}; bY=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"videodatachange",function(){C.updateMetadata()}); this.events.U(p,"presentingplayerstatechange",function(){RMV(C)})}; AH=function(p,C){try{navigator.mediaSession.setActionHandler(p,C)}catch(V){}}; nXu=function(p){AH("play",function(){p.api.playVideo()}); AH("pause",function(){p.api.pauseVideo()}); AH("seekbackward",function(){p.api.seekBy(-5*p.api.getPlaybackRate())}); AH("seekforward",function(){p.api.seekBy(5*p.api.getPlaybackRate())}); AH("seekto",function(C){(C=C.seekTime)&&p.api.seekTo(C)})}; eM1=function(p){var C,V,N,H;return(C=p.api.getVideoData().getWatchNextResponse())==null?void 0:(V=C.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:(H=N.browserMediaSession)==null?void 0:H.browserMediaSessionRenderer}; PWj=function(p){var C=[];if(!p||!p.thumbnails)return C;p=g.F(p.thumbnails);for(var V=p.next();!V.done;V=p.next())V=V.value,V.url&&(!V.width||V.width<=0||!V.height||V.height<=0||g.dn(V.url)&&C.push({src:V.url||"",sizes:V.width+"x"+V.height,type:"image/jpeg"}));return C}; RMV=function(p){p=p.api.getPlayerStateObject();p=p.isCued()||p.isError()?"none":p.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=p}; wz1=function(p){var C=p.api.getProgressState().seekableEnd;C&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({duration:C,playbackRate:p.api.getPlaybackRate(),position:p.api.getCurrentTime()})}; oi=function(p){iT.call(this,p);var C=this;this.C=new Map;this.V=this.T=void 0;this.compositeVideoState=null;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"modulecreated",function(V){var N;a:{var H,X,d,a=(H=C.api.getVideoData())==null?void 0:(X=H.getPlayerResponse())==null?void 0:(d=X.overlay)==null?void 0:d.playerControlsOverlayRenderer;if(a&&(H=g.n(a.compositeVideoOverlay,$dH),H==null?0:(N=H.sources)==null?0:N.length))for(N=g.F(H==null?void 0:H.sources),H=N.next();!H.done;H=N.next())if(H= H.value,H.isActive){N=H;break a}N=void 0}V==="captions"&&(N==null?void 0:N.topLeftCornerX)!==void 0&&(N==null?void 0:N.topLeftCornerY)!==void 0&&(N==null?void 0:N.width)!==void 0&&(N==null?void 0:N.height)!==void 0&&C.api.wr({top:N.topLeftCornerY,right:1-N.topLeftCornerX-N.width,bottom:1-N.topLeftCornerY-N.height,left:N.topLeftCornerX})}); this.events.U(p,"videodatachange",function(V){var N=C.api.getVideoData();C.T=void 0;C.C.clear();C.api.qt("compositeembargo",1);var H=N==null?void 0:N.It.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(H==null?0:H.length)?LDv(C,H.filter(function(X){return gXa(C,X)})):(N==null?0:N.cueRanges)&&LDv(C,N.cueRanges.filter(function(X){return gXa(C,X)})); V==="dataupdated"&&(N==null?void 0:N.compositeLiveStatusToken)!==C.V&&(C.V=N==null?void 0:N.compositeLiveStatusToken,C.api.kQ())}); this.events.U(p,g.Ez("compositeembargo"),function(V){var N;if(((N=C.T)==null?void 0:N.id)!==V.id&&(C.api.J9(!0),C.C.has(V.id))){var H=C.C.get(V.id);N=C.api.getVideoData();H=g.F(H);for(var X=H.next();!X.done;X=H.next()){var d=void 0;X=(d=X.value.compositeEmbargo)==null?void 0:d.embargoStatusToken;N.gW!==X&&(N.gW=X,C.api.kQ());WDu(C,V)}}}); this.events.U(p,g.lG("compositeembargo"),function(V){var N;if(((N=C.T)==null?void 0:N.id)===V.id&&(C.api.J9(!1),C.C.has(V.id))){if(V=C.api.getVideoData())V.gW=void 0;C.api.kQ();WDu(C)}}); this.events.U(p,"heartbeatRequest",function(V){C.compositeVideoState!==null&&(V.playbackState||(V.playbackState={}),V.playbackState.compositeVideoState=C.compositeVideoState)}); this.events.U(p,"onPlaybackAudioChange",function(){C.api.kQ()}); J_(p,"setCompositeParam",function(V){C.compositeVideoState=V})}; WDu=function(p,C){var V;((V=p.T)==null?void 0:V.id)!==(C==null?void 0:C.id)&&(p.T&&(p.C.delete(p.T.id),p.api.p$([p.T],1)),p.T=C)}; LDv=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){var N=V.value,H=void 0;V=Number((H=N.playbackRelativePosition)==null?void 0:H.utcTimeMs)/1E3;var X=void 0;H=V+Number((X=N.duration)==null?void 0:X.seconds);X="composite_embargo_"+V;N.onEnter&&(N=N.onEnter.filter(p.S),N.length&&(p.C.set(X,N),p.api.addUtcCueRange(X,V,H,"compositeembargo",!1)))}}; gXa=function(p,C){var V;return(V=C.onEnter)==null?void 0:V.some(p.S)}; Qes=function(p){iT.call(this,p);J_(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));J_(this.api,"updateDownloadState",this.updateDownloadState.bind(this));J_(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));J_(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));J_(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));J_(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));J_(this.api,"setUpPositionSyncInterval", this.setUpPositionSyncInterval.bind(this))}; km=function(p){iT.call(this,p);var C=this;J_(p,"getAvailableQualityData",function(){return C.getAvailableQualityData()}); J_(p,"getAvailableQualityDataAndMessaging",function(){return C.getAvailableQualityDataAndMessaging()})}; rDv=function(p,C,V){var N=[],H=C?156595:151874;p=g.F(p);for(var X=p.next();!X.done;X=p.next()){var d=X.value;X=d.video;d={formatId:d.id,qualityLabel:X.qualityLabel,quality:X.quality,isPlayable:C};if(X=V.get(X.qualityLabel))d.paygatedQualityDetails={paygatedIndicatorText:X.paygatedIndicatorText,endpoint:X.endpoint,veType:H,trackingParams:X.trackingParams};N.push(d)}return N}; BuL=function(p){for(var C=0,V=0;V<p.length;V++)if(p[V].paygatedQualityDetails){var N=p[V];p.splice(V,1);p.splice(C,0,N);C++}}; GIu=function(p){var C=new Set,V=new Map,N={};p=g.F(p);for(var H=p.next();!H.done;H=p.next()){H=H.value;var X=H.quality,d=H.isPlayable,a=H.qualityLabel;a&&X&&(d&&V.has(X)&&V.get(X)!==a?C.add(X):d&&V.set(X,a),N[a]||(N[a]=H))}V=[];N=g.F(Object.values(N));for(p=N.next();!p.done;p=N.next())H=p.value,(p=H.quality)&&!C.has(p)&&(H.formatId=void 0),V.push(H);return V}; xm=function(p){iT.call(this,p);var C=this;this.V=1;this.mM=null;this.Sr={btx:function(){return C.V}}; this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"d6de4videobindingchange",function(V){C.kA(V)}); this.events.U(p,"csiinitialized",function(){p$a(C)})}; p$a=function(p){if(Chj()){p.mM=p.api.W6();p.T=new hK;p.V=2;var C=g.mi(p.api.K().experiments,"html5_d6de4_defer_timeout_ms");p.mM.Cd("pt_pish");C?g.F5(function(){jvX(p)},C):p.api.G("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){jvX(p)}):jvX(p)}}; jvX=function(p){if(Chj()){p.mM=p.api.W6();var C=g.mi(p.api.K().experiments,"html5_d6de4_cloud_project_number");p.mM.Cd("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:C}).then(function(N){p.C=N;var H;(H=p.T)==null||H.resolve();p.mM.Cd("pt_pif")}).catch(function(N){Ym(N,"player_start"); p.mM.Cd("pt_pie");var H;(H=p.T)==null||H.reject(N)})}catch(N){Ym(N,"player_start_catch"); p.api.k_("pfes",{});var V;(V=p.T)==null||V.reject(N)}}}; VDX=function(p,C){if(p.C&&!p.G("html5_disable_d6de4_mint_debug")){var V=C.videoId;p.V=3;p.mM.Cd("pt_ms");try{p.C.requestToken(V).then(function(N){p.mM.Cd("pt_mf");if(N=Nn(N))C.G2={Z1n:N}}).catch(function(N){p.mM.Cd("pt_me"); Ym(N,"player_generate");p.handleError(N,C)})}catch(N){Ym(N,"player_generate_catch"),p.handleError(N,C)}}}; NRj=function(p,C){p.api.G("html5_enable_d6de4_cold_start_and_error")&&(C.G2={coldStartInfo:{clientState:p.V}})}; Ym=function(p,C){p.message&&g.eG(Error(C+"_"+p.message))}; Chj=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; zE=function(p){g.L.call(this,{L:"button",i_:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},j:[I31()]});var C=this;this.api=p;this.listen("click",this.onClick);var V=this.api.Uu(),N=V.subscribe("visibilitystatechange",function(){C.Pr(V.l0())}); this.addOnDisposeCallback(function(){V.zW(N)}); o$(p,this.element,this);this.Pr(V.l0())}; Ri=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"standardControlsInitialized",function(){C.createButton()}); g.wG(this.api.K())&&(this.G("web_enable_auto_pip")||this.G("web_enable_pip_on_miniplayer")||this.G("web_shorts_pip"))&&J_(this.api,"setDocumentPictureInPicture",function(V){C.setDocumentPictureInPicture(V)})}; Hvj=function(p){var C=p.api.getVideoData();p.button.jb(C.vM)}; X$H=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);J_(this.api,"musicDisableUi",function(){g.Ed(C.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); J_(this.api,"musicEnableUi",function(){g.tk(C.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}; PO=function(p,C,V){C=C===void 0?!0:C;V=V===void 0?!1:V;g.L.call(this,{L:"div",B:"ytp-suggested-action"});var N=this;this.N=p;this.kM=this.b_=this.sY=this.W=this.S=this.Z=this.expanded=this.enabled=this.R$=!1;this.Qn=new g.N8(function(){N.badge.element.style.width=""},200,this); this.Ga=new g.N8(function(){n$(N);et(N)},200,this); this.dismissButton=new g.L({L:"button",i_:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.R(this,this.dismissButton);this.V=new g.L({L:"div",B:"ytp-suggested-action-badge-expanded-content-container",j:[{L:"label",B:"ytp-suggested-action-badge-title",Ak:"{{badgeLabel}}"},this.dismissButton]});g.R(this,this.V);this.Wr=new g.L({L:"div",B:"ytp-suggested-action-badge-icon-container",j:[C?{L:"div",B:"ytp-suggested-action-badge-icon"}:""]});g.R(this,this.Wr);this.badge=new g.L({L:V?"div": "button",i_:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],j:[this.Wr,this.V]});g.R(this,this.badge);this.badge.u_(this.element);this.a$=new g.a0(this.badge,250,!1,100);g.R(this,this.a$);this.KS=new g.a0(this.V,250,!1,100);g.R(this,this.KS);this.qo=new g.V2(this.Rs_,null,this);g.R(this,this.qo);this.UY=new g.V2(this.MC,null,this);g.R(this,this.UY);g.R(this,this.Qn);g.R(this,this.Ga);this.N.createServerVe(this.badge.element,this.badge,!0);this.N.createServerVe(this.dismissButton.element, this.dismissButton,!0);this.U(this.N,"onHideControls",function(){N.Xl(!1)}); this.U(this.N,"onShowControls",function(){N.Xl(!0)}); this.U(this.badge.element,"click",this.SN);this.U(this.dismissButton.element,"click",this.Fj);this.U(this.N,"pageTransition",this.dk);this.U(this.N,"appresize",this.hd);this.U(this.N,"fullscreentoggled",this.j$_);this.U(this.N,"cardstatechange",this.hna);this.U(this.N,"annotationvisibility",this.Vqn,this);this.U(this.N,"offlineslatestatechange",this.SEY,this)}; n$=function(p){g.Tz(p.badge.element,"ytp-suggested-action-badge-with-controls",p.sY||!p.Z)}; et=function(p,C){var V=p.N9();p.expanded!==V&&(p.expanded=V,C===void 0||C?(p.qo.stop(),p.UY.stop(),p.Qn.stop(),p.qo.start()):(p.V.jb(p.expanded),g.Tz(p.badge.element,"ytp-suggested-action-badge-expanded",p.expanded)),p.fG())}; dby=function(p){var C=p.text||"",V=g.ju("ytp-suggested-action-badge-title",p.element);V&&g.ce(V,C);p.badge.element.setAttribute("aria-label",C);p.dismissButton.element.setAttribute("aria-label",p.Y_?p.Y_:"")}; wL=function(p,C,V,N,H,X){var d={L:"div",B:"ytp-panel"};if(V){var a="ytp-panel-back-button";var E="ytp-panel-title";var l={L:"div",B:"ytp-panel-header",j:[{L:"div",i_:["ytp-panel-back-button-container"],j:[{X:{"aria-label":"Back to previous menu"},L:"button",i_:["ytp-button",a]}]},{L:"span",i_:[E],j:[V]}]};if(H){var t="ytp-panel-options";l.j.push({L:"button",i_:["ytp-button",t],j:[N]})}d.j=[l]}N=!1;X&&(X={L:"div",B:"ytp-panel-footer",j:[X]},N=!0,d.j?d.j.push(X):d.j=[X]);g.Sp.call(this,d);this.content= C;N&&d.j?C.u_(this.element,d.j.length-1):C.u_(this.element);this.Ne=!1;this.Lz=N;V&&(V=this.rV(E),this.U(this.rV(a),"click",this.CL),this.U(V,"click",this.CL),this.Ne=!0,H&&this.U(this.rV(t),"click",H));C.subscribe("size-change",this.rC,this);this.U(p,"fullscreentoggled",this.rC);this.N=p}; g.$m=function(p,C,V,N,H,X){C=C===void 0?null:C;var d={role:"menu"};C&&(d.id=C);C=new g.Sp({L:"div",B:"ytp-panel-menu",X:d});wL.call(this,p,C,V,N,H,X);this.menuItems=C;this.items=[];g.R(this,this.menuItems)}; g.L$=function(p){for(var C=g.F(p.items),V=C.next();!V.done;V=C.next())V.value.unsubscribe("size-change",p.OU,p);p.items=[];try{g.aN(p.menuItems.element)}catch(X){var N,H;g.eG(new g.Bw("Failed to remove menu items from panel menu.",{error:X.message,originalStack:X.stack,childToBeRemoved:(H=(N=p.menuItems.element.firstChild)==null?void 0:N.textContent)!=null?H:"child element not found"}))}p.menuItems.publish("size-change")}; ivj=function(p,C){return C.priority-p.priority}; g.gL=function(p,C){g.GC.call(this,p,{L:"div",i_:["ytp-popup",C||""]},100,!0);this.T=[];this.D=this.W=null;this.maxHeight=this.maxWidth=0;this.size=new g.KG(0,0);this.listen("keydown",this.fb)}; hyQ=function(p){var C=p.T[p.T.length-1];if(C){g.b4(p.element,p.maxWidth||"100%",p.maxHeight||"100%");g.K2(C.element,"width","");g.K2(C.element,"height","");g.K2(C.element,"maxWidth","100%");g.K2(C.element,"maxHeight","100%");g.K2(C.content.element,"height","");var V=g.Ax(C.element);V.width+=1;V.height+=1;g.K2(C.element,"width",V.width+"px");g.K2(C.element,"height",V.height+"px");g.K2(C.element,"maxWidth","");g.K2(C.element,"maxHeight","");var N=0;C.Ne&&(N=g.Ax(C.rV("ytp-panel-header")).height);var H= 0;C.Lz&&(H=C.rV("ytp-panel-footer"),g.K2(H,"width",V.width+"px"),H=g.Ax(H).height);g.K2(C.content.element,"height",V.height-N-H+"px");C.element instanceof HTMLElement&&(N=C.element,H=N.scrollWidth-N.clientWidth,N.offsetWidth-N.clientWidth>0&&H>0&&(V.width+=H,g.K2(C.element,"width",V.width+"px")));p.size=V}}; g.WO=function(p,C){var V=p.T[p.T.length-1];V!==C&&(p.T.push(C),svH(p,V,C))}; g.QX=function(p){if(!(p.T.length<=1)){var C=p.T.pop(),V=p.T[0];p.T=[V];svH(p,C,V,!0)}}; svH=function(p,C,V,N){aiX(p);C&&(C.unsubscribe("size-change",p.Am,p),C.unsubscribe("back",p.Ou,p));V.subscribe("size-change",p.Am,p);V.subscribe("back",p.Ou,p);if(p.C4){g.Ed(V.element,N?"ytp-panel-animate-back":"ytp-panel-animate-forward");V.u_(p.element);V.focus();p.element.scrollLeft=0;p.element.scrollTop=0;var H=p.size;hyQ(p);g.b4(p.element,H);p.W=new g.N8(function(){EaY(p,C,V,N)},20,p); p.W.start()}else V.u_(p.element),C&&C.detach()}; EaY=function(p,C,V,N){p.W.dispose();p.W=null;g.Ed(p.element,"ytp-popup-animating");N?(g.Ed(C.element,"ytp-panel-animate-forward"),g.tk(V.element,"ytp-panel-animate-back")):(g.Ed(C.element,"ytp-panel-animate-back"),g.tk(V.element,"ytp-panel-animate-forward"));g.b4(p.element,p.size);p.D=new g.N8(function(){g.tk(p.element,"ytp-popup-animating");C.detach();g.cF(C.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);p.D.dispose();p.D=null},250,p); p.D.start()}; aiX=function(p){p.W&&g.XV(p.W);p.D&&g.XV(p.D)}; rL=function(p){g.gL.call(this,p,"ytp-shopping-product-menu");this.Zd=new g.$m(this.N);g.R(this,this.Zd);this.hide();g.WO(this,this.Zd);g.LT(this.N,this.element,4)}; tDX=function(p,C,V){var N,H=C==null?void 0:(N=C.text)==null?void 0:N.simpleText;H&&(V=liv(p,V,H,C==null?void 0:C.icon,C==null?void 0:C.secondaryIcon),C.navigationEndpoint&&V.listen("click",function(){p.N.Jk("innertubeCommand",C.navigationEndpoint);p.hide()},p))}; cov=function(p,C,V){var N,H=C==null?void 0:(N=C.text)==null?void 0:N.simpleText;H&&liv(p,V,H,C==null?void 0:C.icon).listen("click",function(){var X;(C==null?void 0:(X=C.icon)==null?void 0:X.iconType)==="HIDE"?p.N.publish("featuredproductdismissed"):C.serviceEndpoint&&p.N.Jk("innertubeCommand",C.serviceEndpoint);p.hide()},p)}; liv=function(p,C,V,N,H){C=new g.Nl(g.H3({},[],!1,!!H),C,V);H&&C.updateValue("secondaryIcon",TRY(H));C.setIcon(TRY(N));g.R(p,C);p.Zd.zB(C,!0);return C}; TRY=function(p){if(!p)return null;switch(p.iconType){case "ACCOUNT_CIRCLE":return{L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return uW1();case "HIDE":return{L:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"g",j:[{L:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return AO()}}; BO=function(p){PO.call(this,p,!1,!0);this.isCounterfactual=this.C=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Z=!0;this.overflowButton=new g.L({L:"button",i_:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.R(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.L({L:"img",B:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}}); this.thumbnailImage.hide();g.R(this,this.thumbnailImage);this.thumbnailIcon=new g.L({L:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.R(this,this.thumbnailIcon);this.banner=new g.L({L:"a",B:"ytp-suggested-action-container",j:[this.thumbnailImage,this.thumbnailIcon,{L:"div",B:"ytp-suggested-action-details",j:[{L:"text",B:"ytp-suggested-action-title",Ak:"{{title}}"},{L:"text",B:"ytp-suggested-action-subtitle",Ak:"{{subtitle}}"},{L:"text",B:"ytp-suggested-action-metadata-text", Ak:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.R(this,this.banner);this.banner.u_(this.V.element);this.U(this.N,"videodatachange",this.onVideoDataChange);this.U(this.N,g.Ez("suggested_action_view_model"),this.wrx);this.U(this.N,g.lG("suggested_action_view_model"),this.doa);this.U(this.overflowButton.element,"click",this.Lb);this.U(p,"featuredproductdismissed",this.Fj);this.N.createServerVe(this.banner.element,this.banner,!0)}; MDL=function(p){p.isInitialized&&(p.enabled=p.isVisible,p.b_=p.isVisible,et(p),p.hd(),p.thumbnailImage.jb(p.isVisible),p.shouldHideDismissButton||p.dismissButton.jb(p.isVisible),p.shouldShowOverflowButton&&p.overflowButton.jb(p.isVisible))}; GE=function(){BO.apply(this,arguments)}; Joj=function(p){iT.call(this,p);this.T=new GE(this.api);g.R(this,this.T);g.LT(this.api,this.T.element,4)}; pn=function(p){iT.call(this,p);var C=this;this.C="";this.V=!0;this.T=this.api.G("html5_enable_audio_track_stickiness_phase_two");var V=new g.Rr(p);g.R(this,V);V.U(p,"internalaudioformatchange",function(N,H){mbX(C,N,H)}); V.U(p,"videoplayerreset",function(){var N;(C.C||C.T&&((N=PY())==null?0:N.size))&&vaH(C)}); V.U(p,"videodatachange",function(N,H){C.onVideoDataChange(N,H)})}; mbX=function(p,C,V){if(V){var N="";FRs(p,C)&&(N=C,p.T||(p.C=C),p.api.G("html5_sabr_enable_server_xtag_selection")&&(V=p.api.L1()))&&(V.getVideoData().JF=C);p.T&&N&&SaX(p,N)&&KRu(p)!==N&&(DbL([{settingItemId:Cn(p),settingOptionValue:{stringValue:C}}]),Tv(p.xN(),function(H){hI9(H,Cn(p),{stringValue:N})}))}}; vaH=function(p){if(p.T){var C;(C=KRu(p))&&SaX(p,C)&&(p=p.api.L1())&&(p.getVideoData().JF=C)}else if(C=p.api.L1())C.getVideoData().JF=p.C}; upH=function(p){MO(Tv(Tv(p.xN(),function(C){return dMY(C,[Cn(p)])}),function(C){if(C){C=g.F(C); for(var V=C.next();!V.done;V=C.next()){var N=V.value;V=N.key;N=N.value;V&&N&&DbL([{settingItemId:V,settingOptionValue:N}])}}}),function(){p.V=!0})}; FRs=function(p,C){p=p.api.getAvailableAudioTracks();p=g.F(p);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.getLanguageInfo().getId()===C)return V;return null}; KRu=function(p){p=Cn(p);var C=PY();p=C?C.get(p):void 0;return p&&p.stringValue?p.stringValue:""}; Cn=function(p){var C=(484).toString();p.api.K().K$&&(C=(483).toString());return C}; SaX=function(p,C){var V;return C.split(".")[0]!==""&&!((V=p.api.getVideoData())==null?0:ceV(V))}; DbL=function(p){var C=PY();C||(C=new Map);p=g.F(p);for(var V=p.next();!V.done;V=p.next())V=V.value,C.set(V.settingItemId,V.settingOptionValue);C=JSON.stringify(Object.fromEntries(C));g.Yl("yt-player-user-settings",C,2592E3)}; g.jv=function(p,C,V,N,H,X,d){g.Nl.call(this,g.H3({"aria-haspopup":"true"}),C,p);this.xM=N;this.J=!1;this.V=null;this.options={};this.C=new g.$m(V,void 0,p,H,X,d);g.R(this,this.C);this.listen("keydown",this.Nx);this.listen("click",this.open)}; Zve=function(p){if(p.V){var C=p.options[p.V];C.element.getAttribute("aria-checked");C.element.setAttribute("aria-checked","false");p.V=null}}; Uby=function(p,C){g.jv.call(this,"Sleep timer",g.FB.SLEEP_TIMER,p,C);this.N=p;this.Z={};this.W=this.J7("Off");this.D=this.T="";p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", fill:"#fff"}}]});this.S=new g.L({L:"div",i_:["ytp-menuitem-label-wrapper"],j:[{L:"div",Ak:"End of video"},{L:"div",i_:["ytp-menuitem-sublabel"],Ak:"{{content}}"}]});g.R(this,this.S);this.listen("click",this.onClick);this.U(p,"videodatachange",this.onVideoDataChange);this.U(p,"presentingplayerstatechange",this.Pr);this.U(p,"settingsMenuVisibilityChanged",this.SZY);p.createClientVe(this.element,this,218889);this.Pr();this.N.Jk("onSleepTimerFeatureAvailable")}; fi9=function(p){var C="Off 10 15 20 30 45 60".split(" "),V;((V=p.N.getVideoData())==null?0:V.isLivePlayback)||C.push("End of video");V=p.N.getPlaylist();var N;V&&((N=V.listId)==null?void 0:N.type)!=="RD"&&C.push("End of playlist");p.dh(g.AU(C,p.J7));p.Z=g.tB(C,p.J7,p);C=p.J7("End of video");p.options[C]&&g.V7(p.options[C],p.S)}; OvL=function(p,C){var V=p.Z[C],N=V==="End of video"||V==="End of playlist";V==="Off"&&(p.T="");p.N.getPlayerState()!==0&&p.N.getPlayerState()!==5||!N?(p.W=C,g.jv.prototype.jq.call(p,C),p.kN(C),p.N.Jk("onSleepTimerSettingsChanged",V)):p.N.Jk("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; V$=function(p){iT.call(this,p);var C=this;p.addEventListener("settingsMenuInitialized",function(){C.menuItem||(C.menuItem=new Uby(C.api,C.api.TA()),g.R(C,C.menuItem))}); p.addEventListener("openSettingsMenuItem",function(V){if(V==="menu_item_sleep_timer"){if(!C.menuItem){var N;(N=C.api.TA())==null||N.er()}C.menuItem.open()}}); J_(p,"resetSleepTimerMenuSettings",function(){C.resetSleepTimerMenuSettings()}); J_(p,"setSleepTimerTimeLeft",function(V){C.setSleepTimerTimeLeft(V)}); J_(p,"setVideoTimeLeft",function(V){C.setVideoTimeLeft(V)})}; yoY=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"onSnackbarMessage",function(V){switch(V){case 1:V=C.api.getPlayerStateObject(),V.isBuffering()&&g.r(V,8)&&g.r(V,16)&&C.api.Jk("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; g.Hx=function(p,C,V,N,H){C=C===void 0?!1:C;N=N===void 0?!1:N;H=H===void 0?!1:H;g.ca.call(this);this.Z=H;this.D=!1;this.S=new I_(this);this.W=this.Y=null;this.V=this.C=!1;g.R(this,this.S);this.target=p;this.T=C;this.J=V||p;this.D=N;C&&(g.Nq&&this.target.setAttribute("draggable","true"),H||(this.target.style.touchAction="none"));NA(this)}; Xk=function(p){g.Am(p.S,!p.T)}; NA=function(p){p.W=null;p.Y=null;p.U(dM("over"),p.qQ);p.U("touchstart",p.QM);p.T&&p.U(dM("down"),p.TV$)}; qaa=function(p,C){for(var V=0;V<C.changedTouches.length;V++){var N=C.changedTouches[V];if(N.identifier===p.Y)return N}return null}; dM=function(p){return window.navigator.msPointerEnabled?"MSPointer"+p.charAt(0).toUpperCase()+p.substring(1):"mouse"+p}; ii=function(p){return p&&IiV?QW(p)||document:document}; bvL=function(p,C){g.L.call(this,{L:"div",i_:["ytp-overlay","ytp-speedmaster-overlay"],j:[{L:"div",B:"ytp-speedmaster-user-edu",j:[{L:"div",B:"ytp-speedmaster-label",Ak:C},{L:"div",B:"ytp-speedmaster-icon",Ak:"{{icon}}"}]}]});this.N=p;this.T=this.rV("ytp-speedmaster-user-edu");this.updateValue("icon",D5a());g.Ed(this.T,"ytp-speedmaster-has-icon");this.N.createClientVe(this.T,this,173040,!0);this.l8()}; sC=function(p){iT.call(this,p);var C=this;this.S=this.V=!1;this.Ga=g.mi(this.api.K().experiments,"speedmaster_touch_activation_ms")||500;this.sY=g.mi(this.api.K().experiments,"speedmaster_cancellation_movement_dp")||10;this.vr=g.mi(this.api.K().experiments,"speedmaster_playback_rate")||2;this.C=new g.Rr(p);g.R(this,this.C);this.Z="2x";this.speedmasterUserEdu=new bvL(p,this.Z);g.R(this,this.speedmasterUserEdu);g.LT(this.api,this.speedmasterUserEdu.element,4);this.T=new g.Hx(this.api.dV().Ss,!0,null, !1,!0);g.R(this,this.T);this.delay=new g.N8(this.Sa,this.Ga,this);g.R(this,this.delay);this.C.U(p,"videodatachange",function(){hr(C)},this); this.C.U(p,"presentingplayerstatechange",function(){hr(C)},this); this.C.U(p,"autonavvisibility",function(){hr(C)},this); this.api.Uu().subscribe("visibilitystatechange",function(){hr(C)}); this.C.U(p,"rootnodemousedown",function(V){C.D=V}); this.G("web_speedmaster_spacebar_control")&&(this.C.U(p,"keyboardserviceglobalkeydown",function(V,N){C.a$=N;AoY(C,V,!0)},this),this.C.U(p,"keyboardserviceglobalkeyup",function(V){AoY(C,V,!1)},this))}; aT=function(p){p.delay.stop();p.T.unsubscribe("dragmove",p.Y,p);p.T.unsubscribe("dragend",p.W,p);p.V&&(p.V=!1,p.speedmasterUserEdu.l8(),p.api.setPlaybackRate(p.Vn),p.api.showControls(),p.Wr&&p.api.pauseVideo())}; AoY=function(p,C,V){V?C.keyCode!==32||C.repeat||p.V||!p.S||g.HF(p.delay):aT(p)}; hr=function(p){var C,V;var N=!!p.Z&&!((C=p.api.getVideoData())==null?0:C.isLivePlayback)&&!p.api.B1()&&p.api.getPresentingPlayerType()!==2&&!g.r(p.api.getPlayerStateObject(),2)&&!((V=g.Zg(p.api))==null?0:V.OE())&&!p.api.isEmbedsShortsMode()&&SP(p.api.Uu());p.S!==N&&(p.S=N,p.S?p.T.subscribe("dragstart",p.b_,p):(p.T.unsubscribe("dragstart",p.b_,p),p.T.unsubscribe("dragmove",p.Y,p),p.T.unsubscribe("dragend",p.W,p),aT(p)))}; oaY=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);J_(this.api,"addPlayerResponseForAssociation",function(V){C.api.addPlayerResponseForAssociation(V)}); J_(this.api,"finishSegmentByCpn",function(V,N,H){return C.api.finishSegmentByCpn(V,N,H)}); this.events.U(p,"modulecreated",function(V){if(V==="ad"&&(V=C.api.getVideoData(1))&&(V=V.getPlayerResponse())){var N;V=(N=V.adPlacements)!=null?N:[];N=g.F(V);for(var H=N.next();!H.done;H=N.next()){var X=V=void 0,d=void 0;if(H=(V=H.value.adPlacementRenderer)==null?void 0:(X=V.renderer)==null?void 0:(d=X.instreamVideoAdRenderer)==null?void 0:d.playerVars)V=i1(H),C.api.addPlayerResponseForAssociation({playerVars:V})}}}); this.events.U(p,"videodatachange",function(V,N){C.onVideoDataChange(V,N)})}; EC=function(p,C,V){g.$q.call(this,C,p);this.T=V}; g.li=function(p){s3.call(this);var C=this;this.T=p;this.W={};this.listener=function(V){C.dispatchEvent(new EC(C,V.type,V))}}; xbL=function(p){var C=p.L1(),V=p.getVideoData(),N=p.Nt(),H=N.V$(),X=p.K(),d=C.uP(),a=C.ji,E=lY(a,"bandwidth")*8/1024,l=lY(a,"networkactivity")/1024,t=lY(a,"bufferhealth");if(C.UO){var c="IT/"+(C.UO.T.getInfo()+"/"+XP(C.F_()));c+="/"+C.UO.getInfo()}else c="";var T=c,M=C.getPlayerState().state.toString(16),J=N.getCurrentTime().toFixed(2),S=sJ(N.yx(),",",3);c="";if(V.isDaiEnabled()){V.enableServerStitchedDai&&(c+=V.qf?"DS":"SS");c=V.VL()?c+"LIFA, ":c+"DAI, ";var D=t4X(C);D&&(c+=D)}db(V)&&!V.VL()&&(c+= "LIFAE, ");var Z;((Z=p.getVideoData(1))==null?0:g.pf(Z))?(c+="SSAP, ",(Z=t4X(C))&&(c+=Z)):$B(V)&&(c+="SABR, ");if(V.fetchType){switch(V.fetchType){case "onesie":Z="o";break;case "gp":Z="gp";break;default:Z="gvi"}c+="vd:"+Z+", "}X.TN&&(c=X.TN.XA?c+"wa, ":c+"w, ");c+="s:"+M+" t:"+J+" b:"+S+" ";N.isSeeking()&&(c+="S");N.isPaused()&&(c+="P");N.isEnded()&&(c+="E");p.isOrchestrationLeader()&&(c+=" L");(N=C.Zj())&&(c+=" l:"+N.toFixed());N=C.getCurrentTime();X=V.Cj;N&&N>X.start&&N<X.end&&(c+=" as");N=c;c= g.NU(G0)("_start",void 0);X=[];M=g.F(["pl_i","vir","or_p","orfb","pbs"]);for(J=M.next();!J.done;J=M.next())J=J.value,(S=g.NU(G0)(J,void 0))&&c&&(S-=c,X.push(J+":"+Math.round(S)));c=X.join(" ");X=g.Pg();M=g.wb(p).MH;J=V.V&&!V.V.T?"display:none":"";if((S=V.clientPlaybackNonce)&&S.length==16){S+="AAAA";Z=0;D="";for(var f=0;f<20;f++)if(Z=(Z<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(S.charAt(f)),f%5==4){for(var q="",A=0;A<6;A++)q="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(Z& 31)+q,Z>>=5;D+=q}S=D.substr(0,4)+" "+D.substr(4,4)+" "+D.substr(8,4)+" "+(D.substr(12,4)+" "+D.substr(16,4))}else S="";E={video_id_and_cpn:String(V.videoId)+" / "+S,codecs:"",dims_and_frames:"",bandwidth_kbps:E.toFixed(0)+" Kbps",buffer_health_seconds:t.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:T?"":"display:none",drm:T,debug_info:N,extra_debug_info:"",bandwidth_style:J,network_activity_style:J,network_activity_bytes:l.toFixed(0)+" KB",shader_info:M,shader_info_style:M?"":"display:none", playback_categories:""};l=H.clientWidth+"x"+H.clientHeight+(X>1?"*"+X.toFixed(2):"");t="-";d.totalVideoFrames&&(t=(d.droppedVideoFrames||0)+" dropped of "+d.totalVideoFrames);E.dims_and_frames=l+" / "+t;p=p.getVolume();d=tov(V);var z;l=((z=V.S)==null?0:z.audio.T)?"DRC":Math.round(p*d)+"%";z=Math.round(p)+"% / "+l;p=V.Gp.toFixed(1);isFinite(Number(p))&&(z+=" (content loudness "+p+"dB)");E.volume=z;E.resolution=H.videoWidth+"x"+H.videoHeight;if(H=V.C){if(z=H.video)p=z.fps,p>1&&(E.resolution+="@"+p), (p=g.Z_(C))&&p.video&&(E.resolution+=" / "+p.video.width+"x"+p.video.height,p.video.fps>1&&(E.resolution+="@"+p.video.fps)),E.codecs=k8s(H),!V.S||H.audio&&H.video?H.UL&&(E.codecs+=" / "+H.UL+"A"):E.codecs+=" / "+k8s(V.S),z.C||z.primaries?(p=z.C||"unknown",p==="smpte2084"?p+=" (PQ)":p==="arib-std-b67"&&(p+=" (HLG)"),E.color=p+" / "+(z.primaries||"unknown"),E.color_style=""):E.color_style="display:none";if(H.debugInfo)for(E.fmt_debug_info="",H=g.F(H.debugInfo),z=H.next();!z.done;z=H.next())z=z.value, E.fmt_debug_info+=z.label+":"+z.text+" ";E.fmt_debug_info_style=E.fmt_debug_info&&E.fmt_debug_info.length>0?"":"display:none"}H=V.isLivePlayback;z=V.EO;E.live_mode_style=H||z?"":"display:none";E.live_latency_style=H?"":"display:none";if(z)E.live_mode="Post-Live"+(Ge(V)?" Manifestless":"");else if(H){z=lY(a,"livelatency");E.live_latency_secs=z.toFixed(2)+"s";H=Ge(V)?"Manifestless, ":"";V.Wr&&(H+="Windowed, ");p="Uncertain";if(z>=0&&z<120)if(V.latencyClass&&V.latencyClass!=="UNKNOWN")switch(V.latencyClass){case "NORMAL":p= "Optimized for Normal Latency";break;case "LOW":p="Optimized for Low Latency";break;case "ULTRALOW":p="Optimized for Ultra Low Latency";break;default:p="Unknown Latency Setting"}else p=V.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";H+=p;(z=C.getPlaylistSequenceForTime(C.getCurrentTime()))&&(H+=", seq "+z.sequence);E.live_mode=H}!C.isGapless()||id(V)&&C.SS()||(E.playback_categories+="Gapless ");E.playback_categories_style=E.playback_categories?"":"display:none"; E.bandwidth_samples=ED(a,"bandwidth");E.network_activity_samples=ED(a,"networkactivity");E.live_latency_samples=ED(a,"livelatency");E.buffer_health_samples=ED(a,"bufferhealth");C=g.s5(V);if(V.cotn||C)E.cotn_and_local_media=(V.cotn?V.cotn:"null")+" / "+C;E.cotn_and_local_media_style=E.cotn_and_local_media?"":"display:none";W7(V,"web_player_release_debug")?(E.release_name="youtube.player.web_20241215_00_RC00",E.release_style=""):E.release_style="display:none";E.debug_info&&c.length>0&&E.debug_info.length+ c.length<=60?E.debug_info+=" "+c:E.extra_debug_info=c;E.extra_debug_info_style=E.extra_debug_info&&E.extra_debug_info.length>0?"":"display:none";return E}; k8s=function(p){var C=/codecs="([^"]*)"/.exec(p.mimeType);return C&&C[1]?C[1]+" ("+p.itag+")":p.itag}; tr=function(p,C,V,N,H){g.L.call(this,{L:"div",B:"ytp-horizonchart"});this.D=C;this.sampleCount=V;this.S=N;this.W=H;this.index=0;this.heightPx=-1;this.V=this.C=null;this.T=Math.round(p/V);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.D+"em"}; cx=function(p,C){if(p.heightPx===-1){var V=null;try{V=g.iK("CANVAS"),p.C=V.getContext("2d")}catch(a){}if(p.C){var N=p.T*p.sampleCount;p.V=V;p.V.width=N;p.V.style.width=N+"px";p.element.appendChild(p.V)}else for(p.sampleCount=Math.floor(p.sampleCount/4),p.T*=4,V=0;V<p.sampleCount;V++)N=g.iK("SPAN"),N.style.width=p.T+"px",N.style.left=p.T*V+"px",p.element.appendChild(N)}V=p.element.clientHeight||24;V!==p.heightPx&&(p.heightPx=V,p.C&&(V=(window.devicePixelRatio||1)>1?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+2<V.S.length&&V.S[N+1]<X;)N++;X=Math.min(1,(X-V.S[N])/(V.S[N+1]-V.S[N]));if(V.C)V.C.fillStyle=V.W[N],V.C.fillRect(H*V.T,0,V.T,V.heightPx),V.C.fillStyle=V.W[N+1],V.C.fillRect(H*V.T,V.heightPx*(1-X),V.T,V.heightPx);else{H=V.element.children[H];var d=window.devicePixelRatio||1;X=Math.min(V.heightPx,Math.round(V.heightPx*X*d)/d)||0;H.style.height=X+"px";H.style.backgroundColor=V.W[N+1];H.style.borderTop= "solid "+(V.heightPx-X)+"px "+V.W[N]}p.index=(p.index+1)%p.sampleCount}C=p.index;p.C?p.C.clearRect(C*p.T,0,p.T,p.heightPx):(p=p.element.children[C],p.style.height="0px",p.style.borderTop="")}; Tb=function(p){var C=null;C={L:"button",i_:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],X:{title:"close"},Ak:"[X]"};g.L.call(this,{L:"div",i_:["html5-video-info-panel","ytp-sfn"],j:[C,{L:"div",i_:["html5-video-info-panel-content","ytp-sfn-content"],j:[{L:"div",j:[{L:"div",Ak:"Video ID / sCPN"},{L:"span",Ak:"{{video_id_and_cpn}}",B:"ytp-sfn-cpn"}]},{L:"div",j:[{L:"div",Ak:"Viewport / Frames"},{L:"span",Ak:"{{dims_and_frames}}"}]},{L:"div",j:[{L:"div",Ak:"Current / Optimal Res"},{L:"span", Ak:"{{resolution}}"}]},{L:"div",j:[{L:"div",Ak:"Volume / Normalized"},{L:"span",Ak:"{{volume}}"}]},{L:"div",j:[{L:"div",Ak:"Codecs"},{L:"span",Ak:"{{codecs}}"}]},{L:"div",X:{style:"{{shader_info_style}}"},j:[{L:"div",Ak:"Shader Info"},{L:"span",Ak:"{{shader_info}}"}]},{L:"div",X:{style:"{{color_style}}"},j:[{L:"div",Ak:"Color"},{L:"span",Ak:"{{color}}"}]},{L:"div",X:{style:"{{drm_style}}"},j:[{L:"div",Ak:"Protected"},{L:"span",Ak:"{{drm}}"}]},{L:"div",X:{style:"{{bandwidth_style}}"},j:[{L:"div",Ak:"Connection Speed"}, {L:"span",j:[{L:"span",Ak:"{{bandwidth_chart}}"},{L:"span",Ak:"{{bandwidth_kbps}}"}]}]},{L:"div",X:{style:"{{network_activity_style}}"},j:[{L:"div",Ak:"Network Activity"},{L:"span",j:[{L:"span",Ak:"{{network_activity_chart}}"},{L:"span",Ak:"{{network_activity_bytes}}"}]}]},{L:"div",j:[{L:"div",Ak:"Buffer Health"},{L:"span",j:[{L:"span",Ak:"{{buffer_health_chart}}"},{L:"span",Ak:"{{buffer_health_seconds}}"}]}]},{L:"div",X:{style:"{{live_latency_style}}"},j:[{L:"div",Ak:"Live Latency"},{L:"span",j:[{L:"span", Ak:"{{live_latency_chart}}"},{L:"span",Ak:"{{live_latency_secs}}"}]}]},{L:"div",X:{style:"{{live_mode_style}}"},j:[{L:"div",Ak:"Live Mode"},{L:"span",Ak:"{{live_mode}}"}]},{L:"div",X:{style:"{{playback_categories_style}}"},j:[{L:"div",Ak:"Playback Categories"},{L:"span",Ak:"{{playback_categories}}"}]},{L:"div",X:{style:"{{fmt_debug_info_style}}"},j:[{L:"div",Ak:"Format Debug Info"},{L:"span",Ak:"{{fmt_debug_info}}"}]},{L:"div",j:[{L:"div",Ak:"Mystery Text"},{L:"span",Ak:"{{debug_info}}"}]},{L:"div", X:{style:"{{extra_debug_info_style}}"},j:[{L:"div",Ak:""},{L:"span",j:[{L:"span",Ak:"{{extra_debug_info}}"}]}]},{L:"div",j:[{L:"div",Ak:"Date"},{L:"span",Ak:"{{date}}"}]},{L:"div",X:{style:"{{cotn_and_local_media_style}}"},j:[{L:"div",Ak:"COTN / Local Media"},{L:"span",Ak:"{{cotn_and_local_media}}"}]},{L:"div",X:{style:"{{release_style}}"},j:[{L:"div",Ak:"Player Release"},{L:"span",Ak:"{{release_name}}"}]}]}]});this.ea=p;this.position=0;this.W=!0;C?this.U(this.rV("ytp-sfn-close"),"click",this.hide): this.U(this.element,"click",this.hide);p=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];C="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var V=p.map(function(N){return N/4}); this.Z={};this.T=new tr(300,1,150,p,C);g.R(this,this.T);this.updateValue("bandwidth_chart",this.T);this.V=new tr(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.R(this,this.V);this.updateValue("live_latency_chart",this.V);this.C=new tr(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.R(this,this.C);this.updateValue("buffer_health_chart",this.C);this.D=new tr(300,1,150,V,C);g.R(this,this.D);this.updateValue("network_activity_chart", this.D);this.delay=new g.N8(this.Pr,500,this);g.R(this,this.delay);this.S=new g.N8(this.J,2E4,this);g.R(this,this.S)}; RyQ=function(p){iT.call(this,p);var C=this;J_(p,"getStatsForNerds",function(){return xbL(C.api)}); mj(p,"showVideoInfo",function(){Yaa(C,!0)}); mj(p,"hideVideoInfo",function(){Yaa(C,!1)}); mj(p,"isVideoInfoVisible",function(){return zyj(C)})}; Yaa=function(p,C){var V=zyj(p);p.T||(p.T=new Tb(p.api),g.R(p,p.T),g.LT(p.api,p.T.element,4));p.T.jb(C);var N=R$(p.api.Tk());N&&N.loaded&&V!==C&&N.y7();C&&p.api.k_("sfn",{},!0)}; zyj=function(p){var C;return!((C=p.T)==null||!C.C4)}; MA=function(){g.Y.call(this);this.C=null;this.startTime=this.duration=0;this.delay=new g.V2(this.T,null,this);g.R(this,this.delay)}; naL=function(p,C){if(C.L==="path")return C.X.d;if(C.j)for(var V=0;V<C.j.length;V++){var N=C.j[V];if(N&&typeof N!=="string"&&(N=naL(p,N)))return N}}; $bv=function(p,C,V){V=naL(p,V);var N=C.getElementsByTagName("path")[0],H=N.getAttribute("d");if(N.getAttribute("id")){var X=JO();C=C.getElementsByTagName("use");for(var d=0;d<C.length;d++)C[d].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+X);N.setAttribute("id",X)}var a=eyL(H),E=eyL(V);PhL(p,function(l){N.setAttribute("d",w$V(a,E,l))},200)}; PhL=function(p,C,V){p.C=C;p.startTime=(0,g.Ip)();p.duration=V;p.T()}; eyL=function(p){var C=[];p=p.match(LRH);for(var V=0;V<p.length;V++){var N=p[V]===" "?NaN:Number(p[V]);C.push(isNaN(N)?p[V]:N)}return C}; w$V=function(p,C,V){for(var N="",H=0;H<p.length;H++){var X=p[H];N=typeof X==="number"?N+(X+(C[H]-X)*V):N+X}return N}; Jr=function(p){g.L.call(this,{L:"button",i_:["ytp-size-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Ak:"{{icon}}"});this.api=p;this.VV=null;this.transition=new MA;g.R(this,this.transition);this.U(p,"sizestylechange",this.Pr);this.U(p,"fullscreentoggled",this.Pr);this.U(p,"presentingplayerstatechange",this.Pr);p.createClientVe(this.element,this,139116);this.Pr();this.listen("click",this.onClick);o$(p,this.element, this)}; gaH=function(p){iT.call(this,p);var C=this;this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"standardControlsInitialized",function(){C.button=new Jr(p);g.R(C,C.button);p.ju(C.button)})}; ro1=function(p){iT.call(this,p);var C=this,V={};this.Y=(V.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},V.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(N){return WR9(C,N)},V.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(N){return WR9(C,N)},V); this.S={};this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"videodatachange",function(N,H){if(N!=="dataupdated"||H.videoId!==C.videoId||!vl(C.timelyActions,QvQ(H)))C.onVideoDataChange(H)}); this.events.U(p,"presentingplayerstatechange",function(N){C.wi(N)}); this.events.U(p,g.Ez("timelyAction"),function(N){C.onCueRangeEnter(N.getId())}); this.events.U(p,g.lG("timelyAction"),function(N){C.onCueRangeExit(N.getId())}); this.V=new g.L({L:"div",i_:["ytp-player-content","ytp-timely-actions-content"]});this.V.hide();J_(p,"insertTimelyActionUi",function(N){C.V.element.children.length>0&&g.aN(C.V.element);N.classList.add("ytp-timely-actions-overlay");C.V.element.appendChild(N)}); g.R(this,this.V);g.LT(this.api,this.V.element,4)}; BRs=function(p){p.timelyActions&&(p.S=p.timelyActions.reduce(function(C,V){if(V.cueRangeId===void 0)return C;C[V.cueRangeId]=0;return C},{}))}; mY=function(p,C){if(p.timelyActions){p=g.F(p.timelyActions);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.cueRangeId===C)return V}}; G8e=function(p,C){if((p=mY(p,C))&&p.onCueRangeExit)return Lm(p.onCueRangeExit)}; pNY=function(p){if(p.T!==void 0){var C=(C=mY(p,p.T))&&C.onCueRangeEnter?Lm(C.onCueRangeEnter):void 0;var V=mY(p,p.T);if(V&&V.additionalTrigger){var N=!1;for(var H=g.F(V.additionalTrigger),X=H.next();!X.done;X=H.next())X=X.value,X.type&&X.args&&p.Y[X.type]!==void 0&&(N=N||p.Y[X.type](X.args))}else N=!0;C&&N&&(p.api.Jk("innertubeCommand",C),p.setTimeout(V),p.S[p.T]!==void 0&&p.S[p.T]++)}}; WR9=function(p,C){return p.C===void 0?!1:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(C.seekLengthMilliseconds)===5E3?p.C===72:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(C.seekLengthMilliseconds)===1E4?p.C===74:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(C.seekLengthMilliseconds)===5E3?p.C===71:C.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(C.seekLengthMilliseconds)===1E4?p.C===73:!1}; QvQ=function(p){if(p=p.getWatchNextResponse()){var C,V;p=(C=p.playerOverlays)==null?void 0:(V=C.playerOverlayRenderer)==null?void 0:V.timelyActionsOverlayViewModel;C=g.n(p,CjH);if(C!=null&&C.timelyActions)return C==null?void 0:C.timelyActions.map(function(N){return g.n(N,jCe)}).filter(function(N){return!!N})}}; VM9=function(p){iT.call(this,p);var C=this;mj(this.api,"getPlaybackRate",function(){return C.api.getPlaybackRate()}); mj(this.api,"setPlaybackRate",function(V){typeof V==="number"&&C.api.setPlaybackRate(V)})}; NJQ=function(p){p=p.i9();if(!p)return!1;p=g.sk(p).exp||"";return p.includes("xpv")||p.includes("xpe")}; H7L=function(p){p=g.F(g.vx(p,!0));for(var C=p.next();!C.done;C=p.next())if(NJQ(C.value))return!0;return!1}; XNQ=function(p,C){p=g.F(g.vx(p,!0));for(var V=p.next();!V.done;V=p.next())if(V=V.value,NJQ(V)){var N={potc:"1",pot:C};V.url&&(V.url=aK(V.url,N))}}; dSY=function(p){var C=!1;p.Iw(150);p.gq().finally(function(){C=!0}); return{isReady:function(){return C}, BS:function(V){return p.BS({P$:V.P$,F9:!0,qJ:!0,Yq:V.Yq?{pA:V.Yq.pA,q2:V.Yq.q2,Xz:V.Yq.Xz}:void 0})}, ready:function(){return g.I(function(V){if(V.C==1)return g.vv(V,2),g.y(V,p.gq(),4);if(V.C!=2)return g.Fe(V,0);g.Sa(V);g.JQ(V)})}, start:function(){}}}; i7u=function(p){var C=new sNv,V={},N=(V["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",V);return new A$(C,p,function(){return N})}; Sv=function(p){iT.call(this,p);var C=this;this.useLivingRoomPoToken=!1;this.S=new g.Zt;this.mM=null;this.Y=!1;this.C=null;this.V=!1;var V=p.K().getWebPlayerContextConfig();this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"spsumpreject",function(N,H,X){C.V=H;N&&C.Y&&!C.C&&(C.G("html5_generate_content_po_token")&&X?C.Cn(X):C.G("html5_generate_session_po_token")&&h19(C));C.C||C.api.k_("stp",{s:+C.Y,b:+C.V})}); this.events.U(p,"poTokenVideoBindingChange",function(N){C.Cn(N)}); this.useLivingRoomPoToken=!(V==null||!V.useLivingRoomPoToken);p.addEventListener("csiinitialized",function(){C.mM=p.W6();var N=(C.G("html5_generate_session_po_token")||C.G("html5_generate_content_po_token"))&&!C.useLivingRoomPoToken;try{if(C.G("html5_use_shared_owl_instance"))sCe(C);else if(N){C.mM.Cd("pot_isc");C.G("html5_new_wpo_client")||aNv(C);var H=g.mi(C.api.K().experiments,"html5_webpo_kaios_defer_timeout_ms");H?g.F5(function(){Fk(C)},H):C.G("html5_webpo_idle_priority_job")?g.Vl(g.HW(),function(){Fk(C)}): Fk(C)}}catch(X){X instanceof Error&&g.eG(X)}}); p.addEventListener("trackListLoaded",this.m$.bind(this));p.vN(this)}; EfS=function(p){var C=Wb(p.experiments,"html5_web_po_request_key");return C?C:g.bH(p)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; lN9=function(p){var C=new Xf(p);return Object.assign({},dSY(C),{fS:function(){return C.fS()}, dispose:function(){return void C.dispose()}})}; Kn=function(p,C){if(p.G("html5_webpo_bge_ctmp")){var V,N={hwpo:!!p.T,hwpor:!((V=p.T)==null||!V.isReady())};p.api.k_(C,N)}}; sCe=function(p){var C,V;g.I(function(N){if(N.C==1)return Kn(p,"swpo_i"),p.D=D$1(),DT(p),g.y(N,zo(),2);if(N.C!=3)return C=N.T,Kn(p,"swpo_co"),g.y(N,Xss(C),3);V=N.T;p.T=dSY(V);Kn(p,"swpo_cc");p.T.ready().then(function(){p.S.resolve();Kn(p,"swpo_re")}); g.F5(function(){Fk(p);Kn(p,"swpo_si")},0); g.JQ(N)})}; aNv=function(p){var C=p.api.K(),V=EfS(C),N=i7u(V);C=new XL({I1:V,qB:N,onEvent:function(H){(H=tMe[H])&&p.mM.Cd(H)}, onError:g.eG,Fn:vry(C.experiments),Ro:function(){return void p.api.k_("itr",{})}, P9a:C.experiments.OY("html5_web_po_disable_remote_logging")});C.ready().then(function(){return void p.S.resolve()}); g.R(p,C);p.T=C}; cXu=function(p){var C=p.api.K(),V=i7u(EfS(C)),N=V.dK.bind(V);V.dK=function(a){var E;return g.I(function(l){if(l.C==1)return g.y(l,N(a),2);E=l.T;p.api.k_("itr",{});return l.return(E)})}; try{var H=new zq({qB:V,qm:{maxAttempts:5},OW:{disable:C.experiments.OY("html5_web_po_disable_remote_logging"),r0:vry(C.experiments),Ma:p.G("wpo_dis_lfdms")?0:1E3},o_$:g.eG});var X=lN9({w7:H,qB:V,onError:g.eG});X.ready().then(function(){return void p.S.resolve()}); g.R(p,H);g.R(p,X);p.T=X}catch(a){g.eG(a);var d;(d=H)==null||d.dispose()}}; Fk=function(p){var C=p.api.K();p.mM.Cd("pot_ist");p.T?p.T.start():p.G("html5_new_wpo_client")&&cXu(p);p.G("html5_bandaid_attach_content_po_token")||(DT(p),h19(p),C=g.mi(C.experiments,"html5_session_po_token_interval_time_ms")||0,C>0&&(p.W=g.Se(function(){DT(p)},C)),p.Y=!0)}; DT=function(p){var C,V,N,H;g.I(function(X){if(!p.G("html5_generate_session_po_token")||p.useLivingRoomPoToken)return X.return();C=p.api.K();V=g.pO("EOM_VISITOR_DATA")||g.pO("VISITOR_DATA");N=C.K$?C.datasyncId:V;H=Wb(C.experiments,"html5_mock_content_binding_for_session_token")||C.livingRoomPoTokenId||N;C.XT=ui(p,H);g.JQ(X)})}; ui=function(p,C){if(!p.T)return p.D?p.D(C):"";try{var V=p.T.isReady();p.mM.Cd(V?"pot_cms":"pot_csms");var N="";N=p.G("html5_web_po_token_disable_caching")?p.T.BS({P$:C}):p.T.BS({P$:C,Yq:{pA:C,le:150,q2:!0,Xz:!0}});p.mM.Cd(V?"pot_cmf":"pot_csmf");if(V){var H;(H=p.C)==null||H.resolve();p.C=null;if(p.V){p.V=!1;var X,d=(X=g.O5(p.api.app))==null?void 0:X.nS;d&&Y4u(d,!1)}}return N}catch(a){return g.eG(a),""}}; h19=function(p){p.T&&(p.C=new hK,p.T.ready().then(function(){p.mM.Cd("pot_if");DT(p)}))}; TJV=function(p){iT.call(this,p);var C=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Rr(p);g.R(this,this.events);this.events.U(p,"heartbeatRequest",function(V){if(C.freePreviewUsageDetails.length||C.freePreviewWatchedDuration!==null)V.heartbeatRequestParams||(V.heartbeatRequestParams={}),V.heartbeatRequestParams.unpluggedParams||(V.heartbeatRequestParams.unpluggedParams={}),C.freePreviewUsageDetails.length>0?V.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= C.freePreviewUsageDetails:V.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+C.freePreviewWatchedDuration}}); J_(p,"setFreePreviewWatchedDuration",function(V){C.freePreviewWatchedDuration=V}); J_(p,"setFreePreviewUsageDetails",function(V){C.freePreviewUsageDetails=V})}; ZT=function(p){g.Y.call(this);this.features=[];var C=this.T,V=new bpX(p),N=new hh(p),H=new km(p),X=new Sv(p);var d=g.qz(p.K())?void 0:new OO(p);var a=new oi(p),E=new RyQ(p),l=new VM9(p),t=new o8(p);var c=g.qz(p.K())?new TJV(p):void 0;var T=p.G("html5_enable_ssap")?new oaY(p):void 0;var M=p.G("web_cinematic_watch_settings")&&(M=p.K().getWebPlayerContextConfig())!=null&&M.cinematicSettingsAvailable?new DM(p):void 0;var J=new Ah(p);var S=p.G("enable_courses_player_overlay_purchase")?new ZpY(p):void 0; var D=g.wG(p.K())?new S9V(p):void 0;var Z=new y7(p);var f=p.K().S?new cWL(p):void 0;var q=g.KI(p.K())?new t5s(p):void 0;var A=p.G("web_player_move_autonav_toggle")&&p.K().kt?new dtj(p):void 0;var z=g.wG(p.K())?new kIY(p):void 0;var Q=p.G("web_enable_speedmaster")&&g.wG(p.K())?new sC(p):void 0;var P=p.K().tB?void 0:new gaH(p);var VL=p.G("report_pml_debug_signal")?new V5e(p):void 0;var au=new Qes(p),W=new Ri(p);var e=p.G("enable_web_player_player_in_bar_feature")&&g.gk(p.K())?new X$H(p):void 0;var B= p.K().playerStyle==="flix"?new f0X(p):void 0;var v=navigator.mediaSession&&window.MediaMetadata&&p.K().Y9?new bY(p):void 0;var w=p.G("html5_enable_drc")&&!p.K().Y?new fc(p):void 0;var C0=new a8(p),FG;a:{var Nc=p.K();if(Nc.Y&&(Nc=(FG=Nc.getWebPlayerContextConfig())==null?void 0:FG.houseBrandEnvironment,Nc==="apps-elements"||Nc==="apps-elements-flix")){FG=new UtX(p);break a}FG=void 0}Nc=g.wG(p.K())?new Joj(p):void 0;var OS=p.G("html5_enable_d6de4")?new xm(p):void 0;var V8=g.wG(p.K())&&p.G("web_sleep_timer")? new V$(p):void 0;var Tp=g.KI(p.K())?new M5s(p):void 0;var Bv=new pn(p),u=new uT(p),U=new oXe(p);var O=p.K().Y?new I0a(p):void 0;var b=p.G("enable_sabr_snackbar_message")?new yoY(p):void 0;var x=p.G("web_enable_timely_actions")?new ro1(p):void 0;C.call(this,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z,Q,P,VL,au,W,e,B,v,w,C0,FG,Nc,OS,V8,Tp,void 0,Bv,u,U,O,b,x,new ZM(p))}; UC=function(){this.C=this.T=NaN}; MM1=function(p,C){this.yn=p;this.timerName="";this.V=!1;this.C=NaN;this.S=new UC;this.T=C||null;this.V=!1}; JXy=function(p,C,V){var N=g.Oe(C.I$)&&!C.I$.Y;if(C.I$.Of&&(uL(C.I$)||C.I$.Wr==="shortspage"||rG(C.I$)||N)&&!p.V){p.V=!0;p.Y=C.clientPlaybackNonce;g.pO("TIMING_ACTION")||GH("TIMING_ACTION",p.yn.csiPageType);p.yn.csiServiceName&&GH("CSI_SERVICE_NAME",p.yn.csiServiceName);if(p.T){N=p.T.W6();for(var H=g.F(Object.keys(N)),X=H.next();!X.done;X=H.next())X=X.value,NR(X,N[X],p.timerName);N=g.NU(ntH)(p.T.WJ);g.HH(N,p.timerName);N=p.T;N.C={};N.WJ={}}g.HH({playerInfo:{visibilityState:g.NU(RVy)()},playerType:"LATENCY_PLAYER_HTML5"}, p.timerName);p.W!==C.clientPlaybackNonce||Number.isNaN(p.C)||(dc("_start",p.timerName)?V=g.NU(G0)("_start",p.timerName)+p.C:g.eG(new g.Bw("attempted to log gapless pbs before CSI timeline started",{cpn:C.clientPlaybackNonce})));V&&!dc("pbs",p.timerName)&&p.tick("pbs",V)}}; OZL=function(p,C,V,N,H,X,d){p=(p===V?"video":"ad")+"_to_"+(C===V?"video":"ad");if(p!=="video_to_ad"||X!=null&&X.sY){X=p==="ad_to_video"?X:N;V=X==null?void 0:X.LC;var a={};if(N==null?0:N.Y)a.cttAuthInfo={token:N.Y,videoId:N.videoId};H&&(a.startTime=H);XA(p,a);var E,l,t;N={targetVideoId:(E=N==null?void 0:N.videoId)!=null?E:"empty_video",targetCpn:C,adVideoId:(l=X==null?void 0:X.videoId)!=null?l:"empty_video",adClientPlaybackNonce:(t=V==null?void 0:V.cpn)!=null?t:X==null?void 0:X.clientPlaybackNonce}; V&&(N.adBreakType=V.adBreakType,N.adType=V.adType);g.HH(N,p);NR("pbs",d!=null?d:(0,g.Ip)(),p)}}; fn=function(p){Bq1();r11();p.timerName=""}; mSs=function(p){if(p.T){var C=p.T;C.C={};C.WJ={}}p.V=!1;p.W=void 0;p.C=NaN}; vfY=function(p,C){g.ca.call(this);this.I$=p;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.C=0;if(p=C.session_data)this.sessionData=X5(p,"&");this.index=Math.max(0,Number(C.index)||0);this.loop=!!C.loop;this.startSeconds=Number(C.startSeconds)||0;this.title=C.playlist_title||"";this.description=C.playlist_description||"";this.author= C.author||C.playlist_author||"";C.video_id&&(this.items[this.index]=C);if(p=C.api)typeof p==="string"&&p.length===16?C.list="PL"+p:C.playlist=p;if(p=C.list)switch(C.listType){case "user_uploads":this.listId=new Te("UU","PLAYER_"+p);break;default:var V=C.playlist_length;V&&(this.length=Number(V)||0);this.listId=g.MF(p);if(p=C.video)this.items=p.slice(0),this.loaded=!0}else if(C.playlist){p=C.playlist.toString().split(",");this.index>0&&(this.items=[]);p=g.F(p);for(V=p.next();!V.done;V=p.next())(V= V.value)&&this.items.push({video_id:V});this.length=this.items.length;if(p=C.video)this.items=p.slice(0),this.loaded=!0}this.setShuffle(!!C.shuffle);if(p=C.suggestedQuality)this.quality=p;this.Z=Ej(C,"playlist_");this.V=(C=C.thumbnail_ids)?C.split(","):[]}; FPv=function(p){return!!(p.playlist||p.list||p.api)}; StX=function(p){var C=p.index+1;return C>=p.length?0:C}; KPS=function(p){var C=p.index-1;return C<0?p.length-1:C}; g.OC=function(p,C,V,N){C=C!==void 0?C:p.index;C=p.items&&C in p.items?p.items[p.order[C]]:null;var H=null;C&&(V&&(C.autoplay="1"),N&&(C.autonav="1"),H=new g.YB(p.I$,C),g.R(p,H),H.Kp=!0,H.startSeconds=p.startSeconds||H.clipStart||0,p.listId&&(H.playlistId=p.listId.toString()));return H}; DSs=function(p,C){p.index=g.J9(C,0,p.length-1);p.startSeconds=0}; uR1=function(p,C){if(C.video&&C.video.length){p.title=C.title||"";p.description=C.description;p.views=C.views;p.likes=C.likes;p.dislikes=C.dislikes;p.author=C.author||"";var V=C.loop;V&&(p.loop=V);V=g.OC(p);p.items=[];for(var N=g.F(C.video),H=N.next();!H.done;H=N.next())if(H=H.value)H.video_id=H.encrypted_id,p.items.push(H);p.length=p.items.length;(C=C.index)?p.index=C:p.findIndex(V);p.setShuffle(!1);p.loaded=!0;p.C++;p.T&&p.T()}}; fNH=function(p,C){var V,N,H,X,d,a,E;return g.I(function(l){if(l.C==1){V=g.KU();var t=p.K(),c={context:g.TC(p),playbackContext:{contentPlaybackContext:{ancestorOrigins:t.ancestorOrigins}}},T=t.getWebPlayerContextConfig();if(T==null?0:T.encryptedHostFlags)c.playbackContext.contentPlaybackContext.encryptedHostFlags=T.encryptedHostFlags;if(T==null?0:T.hideInfo)c.playerParams={showinfo:!1};t=t.embedConfig;T=C.docid||C.video_id||C.videoId||C.id;if(!T){T=C.raw_embedded_player_response;if(!T){var M=C.embedded_player_response; M&&(T=JSON.parse(M))}if(T){var J,S,D,Z,f,q;T=((q=g.n((J=T)==null?void 0:(S=J.embedPreview)==null?void 0:(D=S.thumbnailPreviewRenderer)==null?void 0:(Z=D.playButton)==null?void 0:(f=Z.buttonRenderer)==null?void 0:f.navigationEndpoint,g.VB))==null?void 0:q.videoId)||null}else T=null}J=(J=T)?J:void 0;S=p.playlistId?p.playlistId:C.list;D=C.listType;if(S){var A;D==="user_uploads"?A={username:S}:A={playlistId:S};Z7a(t,J,C,A);c.playlistRequest=A}else C.playlist?(A={templistVideoIds:C.playlist.toString().split(",")}, Z7a(t,J,C,A),c.playlistRequest=A):J&&(A={videoId:J},t&&(A.serializedThirdPartyEmbedConfig=t),c.singleVideoRequest=A);N=c;H=g.On(USe);g.vv(l,2);return g.y(l,g.E0(V,N,H),4)}if(l.C!=2)return X=l.T,d=p.K(),C.raw_embedded_player_response=X,d.Sa=tm(C,g.KI(d)),d.V=d.Sa==="EMBEDDED_PLAYER_MODE_PFL",X&&(a=X,a.trackingParams&&Oi(a.trackingParams)),l.return(new g.YB(d,C));E=g.Sa(l);E instanceof Error||(E=Error("b259802748"));g.nm(E);return l.return(p)})}; Z7a=function(p,C,V,N){V.index&&(N.playlistIndex=String(Number(V.index)+1));N.videoId=C?C:"";p&&(N.serializedThirdPartyEmbedConfig=p)}; g.qA=function(p,C){y$.get(p);y$.set(p,C)}; g.IT=function(p){g.ca.call(this);this.loaded=!1;this.player=p}; O7j=function(){this.C=[];this.T=[]}; g.vx=function(p,C){return C?p.T.concat(p.C):p.T}; g.bi=function(p,C){switch(C.kind){case "asr":yXX(C,p.C);break;default:yXX(C,p.T)}}; yXX=function(p,C){g.L0(C,function(V){return p.sE(V)})||C.push(p)}; g.Ar=function(p){g.Y.call(this);this.ea=p;this.T=new O7j;this.S=null;this.W=[];this.J=[]}; g.oT=function(p,C,V){g.Ar.call(this,p);this.videoData=C;this.audioTrack=V;this.C=null;this.V=!1;this.W=C.AI;this.J=C.z2;this.V=g.jQ(C)}; g.kW=function(p,C){return Xz(p.info.mimeType)?C?p.info.itag===C:!0:!1}; g.qtV=function(p,C){if(p.T!=null&&g.qz(C.K())&&!p.T.isManifestless&&p.T.T.rawcc!=null)return!0;if(!p.p4())return!1;C=!!p.T&&p.T.isManifestless&&Object.values(p.T.T).some(function(V){return g.kW(V,"386")}); p=!!p.T&&!p.T.isManifestless&&g.yVY(p.T);return C||p}; g.xW=function(p,C,V,N,H,X){g.Ar.call(this,p);this.videoId=V;this.Ue=H;this.eventId=X;this.Y={};this.C=null;p=N||g.sk(C).hl||"";p=p.split("_").join("-");this.V=aK(C,{hl:p})}; INy=function(p,C){this.C=p;this.T=C;this.onFailure=void 0}; b7s=function(p,C){return{FL:p.FL&&C.FL,TN:p.TN&&C.TN,sync:p.sync&&C.sync,streaming:p.streaming&&C.streaming}}; zb=function(p,C){var V=AX9,N=this;this.path=p;this.V=C;this.S=V;this.capabilities={FL:!!this.V,TN:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.W=new INy([{name:"compileStreaming",condition:function(H){return!!N.C&&H.streaming}, oX:function(){return WebAssembly.compileStreaming(fetch(N.path))}, onFailure:function(){return N.capabilities.streaming=!1}}, {name:"sync",condition:function(H){return H.sync}, oX:function(){return Tv(ofy(N),YW.Sm("wmcs",function(H){return new WebAssembly.Module(H)}))}, onFailure:function(){return N.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, oX:function(){return Tv(ofy(N),YW.Sm("wmca",function(H){return WebAssembly.compile(H)}))}, onFailure:function(){return N.capabilities.TN=!1}}]); this.Y=new INy([{name:"instantiateStreaming",condition:function(H){return H.TN&&H.streaming&&!N.C&&!N.T}, oX:function(H,X){return YW.zz("wmix",function(){return WebAssembly.instantiateStreaming(fetch(N.path),X)}).then(function(d){N.T=Ei(d.module); return{instance:d.instance,XA:!1}})}, onFailure:function(){return N.capabilities.streaming=!1}}, {name:"sync",condition:function(H){return H.TN&&H.sync}, oX:function(H,X){return Tv(kRy(N,H),YW.Sm("wmis",function(d){return{instance:new WebAssembly.Instance(d,X),XA:!1}}))}, onFailure:function(){return N.capabilities.sync=!1}}, {name:"async",condition:function(H){return H.TN}, oX:function(H,X){return Tv(Tv(kRy(N,H),YW.Sm("wmia",function(d){return WebAssembly.instantiate(d,X)})),function(d){return{instance:d, XA:!1}})}, onFailure:function(){return N.capabilities.TN=!1}}, {name:"asmjs",condition:function(H){return H.FL}, oX:function(H,X){return Ei(YW.zz("wmij",function(){return N.V(X)}).then(function(d){return{instance:{exports:d}, XA:!0}}))}, onFailure:function(){return N.capabilities.FL=!1}}],function(H,X,d){return N.S(d,H.instance.exports)})}; z1Y=function(p){var C=xSa;return C.instantiate(p?b7s(C.capabilities,p):C.capabilities,new Yt1)}; ofy=function(p){if(p.C)return p.C;var C=fetch(p.path).then(function(V){return V.arrayBuffer()}).then(function(V){p.C=Ei(V); return V}).then(void 0,function(V){g.eG(Error("wasm module fetch failure: "+V.message,{cause:V})); p.C=void 0;throw V;}); p.C=Ei(C);return p.C}; kRy=function(p,C){if(!C.TN)return lt(Error("wasm unavailable"));if(p.T)return p.T;p.T=MO(Tv(p.compile(C),function(V){p.T=Ei(V);return V}),function(V){g.eG(Error("wasm module compile failure: "+V.message,{cause:V})); p.T=void 0;throw V;}); return p.T}; R1v=function(){}; nf9=function(){var p=this;this.proc_exit=function(){}; this.fd_write=function(C,V,N){if(!p.exports)return 1;C=new Uint32Array(p.exports.memory.buffer,V,N*2);V=[];for(var H=0;H<N;++H){var X=new Uint8Array(p.exports.memory.buffer,C[H*2],C[H*2+1]);X=g.wc(X);V.push(X)}return V.reduce(function(d,a){return d+a.length},0)}}; Yt1=function(){this.env=new R1v;this.wasi_snapshot_preview1=new nf9}; AX9=function(p,C){p.wasi_snapshot_preview1.exports=C;p=Math.floor(Math.random()*256);var V=Math.floor(Math.random()*256),N=0;try{N=C.malloc(16);(new Uint8Array(C.memory.buffer,N,16)).fill(p);if(C.sentinel(N,16,V)!==V*16%256)return!1;for(var H=new Uint8Array(C.memory.buffer,N,16),X=0;X<16;X++)if(H[X]!==(p+V)%256)return!1;return!0}finally{N!==0&&C.free(N)}}; e1u=function(p,C){this.instance=p;this.XA=C;this.exports=this.T=this.instance.exports}; wNH=function(p,C,V){V=V===void 0?!1:V;var N=N===void 0?!0:N;var H=YW.dB();return Tv(Pja(p,C,{FL:V,TN:!0,sync:!0,streaming:!0},N),function(X){YW.Dk(X.XA?"winitjs":"winit",H);return X})}; Pja=function(p,C,V,N){N=N===void 0?!0:N;xSa||(xSa=new zb(p,C));return Tv(z1Y(V),function(H){return new e1u(H.instance,H.XA,N)})}; $Su=function(p,C){g.Y.call(this);var V=this;this.N=p;this.T=C;this.WJ={};this.C={};this.V=null;this.S=new Set;this.W=new g.Rr(this);this.Sr={ScS:function(){return V.T}, hJ:function(){return V.hJ()}}; this.Y=this.N.G("web_player_defer_modules");this.Ji=new Map;g.R(this,this.W);this.W.U(p,"videodatachange",this.onVideoDataChange)}; g.RT=function(p){return p.Ji.get("captions")}; BJY=function(p,C){switch(C){case "ad":return LPv(p);case "annotations_module":return p.N.isEmbedsShortsMode()?p=!1:(C=p.N,p=C.K(),C=C.getVideoData(),p=p.V||C.Sc||p.controlsType==="3"?!1:p.vr.isEmpty()&&p.playerStyle!=="annotation-editor"&&p.playerStyle!=="live-dashboard"?!!C.R$||!!g.qI(C)||!!g.IM(C):!0),p;case "asmjs":return p.N.K().G("html5_allow_asmjs");case "creatorendscreen":return gfv(p);case "embed":return g.KI(p.N.K());case "endscreen":return g.WPu(p);case "heartbeat":return p.Gm();case "inline_preview":return p.N.K().showInlinePreviewUi; case "kids":return kS(p.N.K());case "remote":return p.N.K().Pz;case "miniplayer":return p.N.K().showMiniplayerUiWhenMinimized;case "offline":return p.N.K().uM;case "captions":return QCs(p);case "unplugged":return g.yj(p.N.K());case "ux":return p.N.K().UY;case "webgl":return rXu(p);case "ypc":return p.P9();case "ypc_clickwrap":return p=p.N.getVideoData(),p.qn&&!p.E7;case "yto":return!!p.N.getVideoData().Vn.includes("yto");default:return g.nm(Error("Module descriptor "+C+" does not match")),!1}}; nn=function(p,C,V,N,H){var X;V=V===void 0?!1:V;N=N===void 0?!1:N;var d=p.Ji.get(C);if(!d||N)if(H||(H=function(){nn(p,C,V,N)}),X||(X=function(){p.N.hp(C)}),d=d||GRu(p,C,BJY(p,C),H,X))p.Ji.set(C,d),d.create(),p.N.publish("modulecreated",C),V&&p.N.v1("onApiChange")}; CM9=function(p){var C=C===void 0?!1:C;var V,N,H,X,d;return g.I(function(a){if(a.C==1)return(V=p.Ji.get("asmjs"))&&!C?a.return(V):(N=y$.get("asmjs"))!=null?(H=N,a.EY(2)):g.y(a,new Promise(function(E,l){pqY(p,"asmjs",function(){var t=y$.get("asmjs");t?E(t):l("cannot load module asmjs")},l)}),3); a.C!=2&&(H=a.T);X=H;if(!X)return a.return(Promise.reject("cannot load module asmjs"));d=new X(p.N);p.Ji.set("asmjs",d);d.create();return a.return(d)})}; Nvj=function(p){jQV(p)&&p.s$();VCH(p)&&(nn(p,"captions",!0),nn(p,"endscreen"),p.vJ(),nn(p,"creatorendscreen",!0))}; VCH=function(p){var C=p.N.getVideoData(),V=p.Y&&!C.isInlinePlaybackNoAd;p.N.G("html5_defer_modules_on_ads_only")&&!C.isAd()&&(V=!1);return V}; jQV=function(p){p=p.N.getVideoData();var C;if(C=p.G("web_player_defer_ad")){if(g.W5(p.Vn,"ad")||C51(p)||p.enableServerStitchedDai)p=!1;else{C=p.playerResponse;p=p.startSeconds;var V=C==null?void 0:C.adPlacements;if(C=V){C=Number.MAX_VALUE;V=g.F(V);for(var N=V.next();!N.done;N=V.next())if(N=N.value.adPlacementRenderer){var H=void 0,X=(H=N.config)==null?void 0:H.adPlacementConfig;H=void 0;if(((H=X)==null?void 0:H.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var d=H=void 0;X=Number((H=X)==null?void 0:(d= H.adTimeOffset)==null?void 0:d.offsetStartMilliseconds)||0;d=H=void 0;N=Number(((H=N.renderer)==null?void 0:(d=H.adBreakServiceRenderer)==null?void 0:d.prefetchMilliseconds)||0);N=X-N;N<C&&(C=N)}}C=C-5E3<=p*1E3}p=C?!1:!0}C=p}return C}; QCs=function(p){var C=p.N.getVideoData();return!!C.iW||!!C.captionTracks.length||g.qtV(C,p.N)}; g.WPu=function(p){var C=p.N.K();if(C.V||rG(C)||C.Y||!C.QZ&&!C.FT)return!1;var V=p.N.getPresentingPlayerType();if(V===2)return!1;if(V===3)return C.G("desktop_enable_autoplay");p=p.N.getVideoData();if(!p)return!1;V=!p.isLiveDefaultBroadcast||C.G("allow_poltergust_autoplay");V=p.isLivePlayback&&(!C.G("allow_live_autoplay")||!V);C=p.isLivePlayback&&C.G("allow_live_autoplay_on_mweb");return!V||C}; g.Pk=function(p){return p.Ji.get("webgl")}; rXu=function(p){var C=p.N.getVideoData();p=p.N.K();var V=g.Zoe(),N=p.G("enable_spherical_kabuki"),H;if(((H=p.getWebPlayerContextConfig())==null?0:H.embedsEnableEmc3ds)&&!p.G("embeds_enable_emc3ds_webgl"))return!1;H=g.Wg(p);if(g.OW(C))return V||N||H;if(g.UW(C))return H||V||N;if(g.ff(C))return H||V||!1;if(g.c_(C))return H||!1;V=C.C&&C.C.video&&C.C.video.isHdr();return H&&!g.Jl(C)&&!V&&p.G("enable_webgl_noop")}; LPv=function(p){if(p.N.K().V)return!1;p=p.N.getVideoData(1);var C=p.getPlayerResponse();if(C){var V=C.adPlacements;if(V)for(var N=0;N<V.length;N++)if(V[N].adPlacementRenderer)return!0;if(C.adSlots)return!0}return g.pf(p)?!0:!1}; gfv=function(p){if(p.N.isEmbedsShortsMode())return!1;p=p.N;var C=p.K();if(C.V)return!1;var V;if(((V=C.getWebPlayerContextConfig())==null?0:V.embedsEnableEmc3ds)||C.controlsType==="3")return!1;if(C.playerStyle==="creator-endscreen-editor")return!0;V=p.getVideoData();return!!V&&(!!g.ayv(V)||!!g.EgV(V))}; GRu=function(p,C,V,N,H){try{if(V){var X=y$.get(C);if(X)return new X(p.N);pqY(p,C,N,H)}else p.N.hp(C)}catch(d){p.N.hp(C),g.nm(d)}return null}; ev=function(p,C,V){if(p.N.K().G("html5_dispose_modules_in_order"))for(var N=g.F(HDe),H=N.next();!H.done;H=N.next()){H=H.value;var X=p.Ji.get(H);X&&(V||X.P_(C))&&(g.iP(X),p.Ji.delete(H))}else for(N=g.F(p.Ji),H=N.next();!H.done;H=N.next())X=g.F(H.value),H=X.next().value,(X=X.next().value)&&(V||X.P_(C))&&(g.iP(X),p.Ji.delete(H))}; Px=function(p){return p.Ji.get("ad")}; XqH=function(p){if(kS(p.N.K()))return p.Ji.get("kids")}; R$=function(p){if(p.N.K().Pz)return p.Ji.get("remote")}; g.wM=function(p){if(g.yj(p.N.K()))return p.Ji.get("unplugged")}; Ycj=function(p){if(p.N.K().UY)return p.Ji.get("ux")}; dEH=function(p){if(p.N.K().showMiniplayerUiWhenMinimized)return p.Ji.get("miniplayer")}; $W=function(p){if(p.N.K().uM)return p.Ji.get("offline")}; g.Ln=function(p){return p.Ji.get("annotations_module")}; gM=function(p){return p.Ji.get("creatorendscreen")}; h9H=function(p,C){var V=p.T.startsWith("https://")?p.T+"lib.wasm":p.T.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return wNH(V,function(N){var H=p.Ji.get("asmjs");return H?Promise.resolve(H.XB(N)):iDy(p).then(function(X){return X.XB(N)})},C)}; iDy=function(p){var C,V;return g.I(function(N){if(N.C==1)return g.y(N,CM9(p),2);V=C=N.T;return N.return(V)})}; pqY=function(p,C,V,N){if(p.T){var H=sQX[C];aOj(p,p.T+H,function(){p.S.add(H);V.call(p)},N)}}; aOj=function(p,C,V,N){function H(){p.fS()||N.call(p)} function X(){p.fS()||V.call(p)} for(var d=g.Gh("SCRIPT"),a=!1,E,l=0;l<d.length;l++){var t=d[l];if(t.src===C||t.getAttribute("data-original-src")===C)E=t}E||(E=g.iK("SCRIPT"),E.setAttribute("data-original-src",C),a=!0);var c=E.onload;E.onload=function(S){t8(X);c&&c.apply(window,[S])}; var T=E.onerror;E.onerror=function(S){if(Math.random()<.01){var D=new g.Bw("Unable to load player module",C,document.location&&document.location.origin);g.nm(D)}t8(H);T&&T(S)}; var M=E,J=M.onreadystatechange;M.onreadystatechange=function(S){switch(M.readyState){case "loaded":case "complete":t8(X)}J&&J(S)}; a&&((d=p.N.K().cspNonce)&&E.setAttribute("nonce",d),g.GN(E,g.yJ(C)),d=g.Gh("HEAD")[0]||document.body,d.insertBefore(E,d.firstChild),p.addOnDisposeCallback(function(){E.parentNode&&E.parentNode.removeChild(E)}))}; EyH=function(p,C,V,N,H){g.ca.call(this);var X=this;this.target=p;this.sJ=C;this.C=0;this.Y=!1;this.S=new g.Fn(NaN,NaN);this.T=new g.Rr(this);this.sY=this.V=this.D=null;g.R(this,this.T);C=N||H?4E3:3E3;this.Z=new g.N8(function(){Wx(X,1,!1)},C,this); g.R(this,this.Z);this.a$=new g.N8(function(){Wx(X,2,!1)},C,this); g.R(this,this.a$);this.b_=new g.N8(function(){Wx(X,512,!1)},C,this); g.R(this,this.b_);this.Vn=3E3;N||(this.V=this.T.U(p,"mouseover",this.qQ),this.T.U(p,"mousemove",this.eC),this.T.U(p,"mouseleave",this.kak));Do?this.T.U(p,"keypress",this.Ed):this.T.U(p,"focusin",this.fu);this.W=this.T.U(p,"mousedown",this.F8);this.J=this.T.U(p,"touchstart",this.qv,void 0,!0);Wx(this,640,!0)}; lOX=function(p){Wx(p,4,!1);p.D&&(p.T.rY(p.D),p.D=null,p.V=p.T.U(p.target,"mouseover",p.qQ));p.V&&(p.T.rY(p.V),p.V=p.T.U(p.target,"mouseover",p.qQ))}; Wx=function(p,C,V){p.fS();var N=!p.C;V?(p.C|=C,C&1&&p.Z.start(),C&2&&p.a$.start()):(p.C&=~C,C&1&&p.Z.stop(),C&2&&p.a$.stop(),C&512&&p.b_.stop());p.C&512&&!(p.C&128)&&g.HF(p.b_,p.Vn);C=!p.C;N!==C&&p.publish("autohideupdate",C)}; g.rM=function(p){g.L.call(this,{L:"button",i_:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play",title:"Play"},j:["{{largePlayButtonChildren}}"]});this.api=p;this.U(p,"videodatachange",this.Pr);this.U(p,"basechromeinitialized",this.rpS);p=this.api.K();p.J&&Q$&&(this.listen("click",this.VN,this),this.listen("touchstart",this.VdS,this));g.Oe(p)&&g.Ed(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Pr()}; g.Bx=function(p){var C=p.K(),V=["ytp-cued-thumbnail-overlay"];C.Y&&V.push("ytp-exp-contain-thumbnail");C.G("web_player_show_frame_zero_when_cued")&&V.push("ytp-exp-frame0");g.L.call(this,{L:"div",i_:V,j:[{L:"div",B:"ytp-cued-thumbnail-overlay-image"}]});C=this.rV("ytp-cued-thumbnail-overlay");V=new g.rM(p);g.R(this,V);V.u_(C);this.S=new g.Rr(this);g.R(this,this.S);this.api=p;this.W=this.rV("ytp-cued-thumbnail-overlay-image");this.V=V;this.C=new g.a0(this,250);g.R(this,this.C);this.T=new g.N8(this.Pr, 0,this);g.R(this,this.T);this.Pr();this.U(p,"appresize",this.OR);this.U(p,"presentingplayerstatechange",this.onStateChange);this.U(p,"ypcStateChanged",this.wax);uL(p.K())&&this.U(p,"videoplayerreset",this.onReset)}; tCe=function(p){if(!p.api.G("web_player_show_frame_zero_when_cued"))return!1;var C=p.api.getCurrentTime();p=p.api.getPlayerStateObject();p=g.r(p,64)&&g.r(p,1);return C===0&&p}; g.Gb=function(p){g.L.call(this,{L:"div",i_:["ytp-error"],X:{role:"alert"},j:[{L:"div",B:"ytp-error-content",j:[{L:"div",B:"ytp-error-icon-container",j:[{L:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},j:[{L:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{L:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{L:"div",B:"ytp-error-content-wrap", j:[{L:"div",B:"ytp-error-content-wrap-reason",Ak:"{{content}}"},{L:"div",B:"ytp-error-content-wrap-subreason",Ak:"{{subreason}}"}]}]}]});this.api=p;this.keys=[];this.V=!1;p.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.C4)}; g.pZ=function(p){p=p.split(cFv);for(var C=[],V=0;V<p.length;V+=3){var N=p[V++].split("\n");C.push(N[0]);for(var H=1;H<N.length;H++)C.push({L:"br"}),C.push(N[H]);V<p.length&&C.push({L:"a",X:{href:p[V],target:p[V+1]},Ak:p[V+2]})}return{L:"span",j:C}}; j4=function(p,C,V,N,H,X,d){N=N===void 0?!1:N;H=H===void 0?!1:H;d=d===void 0?!0:d;H||(H=p.api.K().S);var a=p.api.getVideoData();C=g.Ks(g.CZ[C]||"",N?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);N=[];X&&N.push({L:"h2",Ak:X});N.push(C[0]);d&&N.push({L:"br"});N.push({L:"a",X:{href:V,target:H?"_blank":null},B:"ytp-error-link",Ak:C[2]});p.V=!0;N.push(C[4]);return{L:"span",j:N}}; Tv9=function(p,C){for(var V=p.element.getElementsByTagName("a"),N=0;N<V.length;N++){var H=p.U(V[N],"click",C);p.keys.push(H)}}; MCV=function(p){for(var C=0;C<p.keys.length;C++)p.rY(p.keys[C]);p.keys=[]}; JFv=function(p){g.L.call(this,{L:"div",B:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.N=p;this.videoId=null;this.V=!1;this.innertubeCommand=this.g7=this.T=null;var C=p.K();p.G("enable_new_paid_product_placement")&&!g.LI(C)?(this.C=new g.L({L:"a",B:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},j:[{L:"div",B:"ytp-paid-content-overlay-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-paid-content-overlay-text",Ak:"{{text}}"},{L:"div",B:"ytp-paid-content-overlay-chevron", Ak:"{{chevron}}"}]}),this.U(this.C.element,"click",this.onClick)):this.C=new g.L({L:"div",i_:["ytp-button","ytp-paid-content-overlay-text"],Ak:"{{text}}"});this.S=new g.a0(this.C,250,!1,100);g.R(this,this.C);this.C.u_(this.element);g.R(this,this.S);this.N.createServerVe(this.element,this);this.U(p,"videodatachange",this.onVideoDataChange);this.U(p,"presentingplayerstatechange",this.R7)}; vyX=function(p,C){var V=Bre(C),N=Gva(C);C.qn&&p.N.iX()||(p.T?C.videoId&&C.videoId!==p.videoId&&(g.d0(p.T),p.videoId=C.videoId,p.V=!!N,p.V&&V&&mES(p,N,V,C)):V&&N&&mES(p,N,V,C))}; mES=function(p,C,V,N){p.T&&p.T.dispose();p.T=new g.N8(p.f4,C,p);g.R(p,p.T);N=mJ(N);C=N==null?void 0:N.navigationEndpoint;var H;N=N==null?void 0:(H=N.icon)==null?void 0:H.iconType;var X;H=(X=g.n(C,g.$0))==null?void 0:X.url;p.N.setTrackingParams(p.element,(C==null?void 0:C.clickTrackingParams)||null);C&&!H?(p.innertubeCommand=C,H="#!"):p.innertubeCommand=null;var d;p.C.update({href:(d=H)!=null?d:"#",text:V,icon:N==="MONEY_HAND"?{L:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"}, j:[{L:"path",X:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:H||p.innertubeCommand?g.Oy():null})}; Ffu=function(p,C){p.T&&(g.r(C,8)&&p.V?(p.V=!1,p.er(),p.T.start()):(g.r(C,2)||g.r(C,64))&&p.videoId&&(p.videoId=null))}; V1=function(p){g.L.call(this,{L:"div",B:"ytp-spinner",j:[mv(),{L:"div",B:"ytp-spinner-message",Ak:"If playback doesn't begin shortly, try restarting your device."}]});this.api=p;this.message=this.rV("ytp-spinner-message");this.T=new g.N8(this.show,500,this);g.R(this,this.T);this.U(p,"presentingplayerstatechange",this.onStateChange);this.U(p,"playbackstalledatstart",this.C);this.UZ(p.getPlayerStateObject())}; Nd=function(p){var C=[{L:"div",i_:["ytp-unmute-icon"],j:[{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 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {L:"div",i_:["ytp-unmute-text"],Ak:"Tap to unmute"}];C.push({L:"div",i_:["ytp-unmute-box"],j:[]});g.GC.call(this,p,{L:"button",i_:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],j:[{L:"div",B:"ytp-unmute-inner",j:C}]},100);this.T=this.clicked=!1;this.api=p;this.api.createClientVe(this.element,this,51663);this.U(p,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.U(p,"presentingplayerstatechange",this.wi);this.listen("click",this.onClick,this);p=p.isMutedByMutedAutoplay()&& !g.KI(this.api.K());this.jb(p);p&&SmX(this);this.V=p}; SmX=function(p){p.T||(p.T=!0,p.api.logVisibility(p.element,!0))}; g.Hz=function(p){g.Rr.call(this);var C=this;this.api=p;this.Oz=!1;this.Gi=null;this.Az=!1;this.mS=null;this.xe=this.t3=!1;this.C0=this.Al=null;this.S7=NaN;this.n0=this.vO=!1;this.rA=0;this.nN=[];this.rD=!1;this.gM={height:0,width:0};this.A1=480;this.PcV=["ytp-player-content","html5-endscreen","ytp-overlay"];this.Ya={sW:!1};var V=p.K(),N=p.dV();this.gM=p.getPlayerSize();this.kp=new g.N8(this.Io,0,this);g.R(this,this.kp);V.disableOrganicUi||(this.a9=new g.Bx(p),g.R(this,this.a9),g.LT(p,this.a9.element, 4));if(KfX(this)){var H=new V1(p);g.R(this,H);H=H.element;g.LT(p,H,4)}var X=p.getVideoData();this.YB=new EyH(N,function(a){return C.sJ(a)},X,V.JX,!1); g.R(this,this.YB);this.YB.subscribe("autohideupdate",this.XS,this);if(!V.disablePaidContentOverlay){var d=new JFv(p);g.R(this,d);g.LT(p,d.element,4)}this.rX=new Nd(p);g.R(this,this.rX);g.LT(this.api,this.rX.element,2);this.qk=this.api.isMutedByMutedAutoplay();this.U(p,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.Ys=new g.N8(this.u6,200,this);g.R(this,this.Ys);this.w1=X.videoId;this.hN=new g.N8(function(){C.rA=0},350); g.R(this,this.hN);this.RY=new g.N8(function(){C.n0||DE9(C)},350,this); g.R(this,this.RY);X=p.getRootNode();X.setAttribute("aria-label","YouTube Video Player");switch(V.color){case "white":g.Ed(X,"ytp-color-white")}this.U(p,"appresize",this.OR);this.U(p,"presentingplayerstatechange",this.wi);this.U(p,"videodatachange",this.onVideoDataChange);this.U(p,"videoplayerreset",this.h6_);this.U(p,"autonavvisibility",function(){C.Uc()}); this.U(p,"sizestylechange",function(){C.Uc()}); this.U(N,"click",this.cQ$,this);this.U(N,"dblclick",this.Mba,this);this.U(N,"mousedown",this.TYk,this);V.Hc&&(this.U(N,"gesturechange",this.Z4_,this),this.U(N,"gestureend",this.yc_,this));this.sG=[N.Ss];this.a9&&this.sG.push(this.a9.element);H&&this.sG.push(H)}; u7Y=function(p,C){if(!C)return!1;var V=p.api.Nt();if(V.F6()&&(V=V.V$())&&g.t2(V,C))return V.controls;for(V=0;V<p.sG.length;V++)if(g.t2(p.sG[V],C))return!1;V=g.F(p.PcV);for(var N=V.next();!N.done;N=V.next())if(g.aL(C,N.value))return!1;return C===p.api.getRootNode()?!1:!0}; ZDX=function(p){var C=p.api.getPresentingPlayerType()===2&&(p.api.dV().Bt||p.api.K().disableOrganicUi||!1)&&p.api.K().C&&Q$&&Lk>=11;p=p.api.K().J&&Q$;return!(!C&&!p)}; Xo=function(p,C){return!p.api.isInline()&&!u7Y(p,yc(C))&&g.o0(C)}; DE9=function(p){p.YB.Pm();if(p.t3&&p.xe)p.xe=!1;else if(!p.api.K().Ga&&!p.A6()){var C=p.api.getPlayerStateObject();g.r(C,2)&&g.Yj(p.api)||p.R1(C);!p.api.K().Hc||C.isCued()||g.r(C,1024)?p.u6():p.Ys.isActive()?(p.cG(),p.Ys.stop()):p.Ys.start()}}; UES=function(p,C){var V;if((V=p.api.getVideoData())==null?0:V.mutedAutoplay){var N,H;if((N=C.target)==null?0:(H=N.className)==null?0:H.includes("ytp-info-panel"))return!1}return g.o0(C)&&p.api.isMutedByMutedAutoplay()?(p.api.unMute(),p.api.getPresentingPlayerType()===2&&p.api.playVideo(),C=p.api.getPlayerStateObject(),!g.r(C,4)||g.r(C,8)||g.r(C,2)||p.u6(),!0):!1}; fOH=function(p,C,V){p.api.isFullscreen()?V<1-C&&p.api.toggleFullscreen():V>1+C&&p.api.toggleFullscreen()}; KfX=function(p){var C=Wd()&&LO()>=67&&!p.api.K().J;p=p.api.K().disableOrganicUi;return!g.gm("tizen")&&!rB&&!C&&!p}; du=function(p,C){C=C===void 0?2:C;g.ca.call(this);this.api=p;this.T=null;this.qZ=new I_(this);g.R(this,this.qZ);this.C=i3v;this.qZ.U(this.api,"presentingplayerstatechange",this.YS);this.T=this.qZ.U(this.api,"progresssync",this.m6);this.TR=C;this.TR===1&&this.m6()}; g.iW=function(p){g.L.call(this,{L:"div",j:[{L:"div",B:"ytp-bezel-text-wrapper",j:[{L:"div",B:"ytp-bezel-text",Ak:"{{title}}"}]},{L:"div",B:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},j:[{L:"div",B:"ytp-bezel-icon",Ak:"{{icon}}"}]}]});this.N=p;this.C=new g.N8(this.show,10,this);this.T=new g.N8(this.hide,500,this);g.R(this,this.C);g.R(this,this.T);this.hide()}; sR=function(p,C,V){if(C<=0){V=zB();C="muted";var N=0}else V=V?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},N=Math.floor(C),C=N+"volume";hD(p,V,C,N+"%")}; OD9=function(p,C){C=C?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:D5a();var V=p.N.getPlaybackRate(),N=g.Ks("Speed is $RATE",{RATE:String(V)});hD(p,C,N,V+"x")}; yFv=function(p,C){C=C?"Subtitles/closed captions on":"Subtitles/closed captions off";hD(p,sZ9(),C)}; hD=function(p,C,V,N){N=N===void 0?"":N;p.updateValue("label",V===void 0?"":V);p.updateValue("icon",C);g.d0(p.T);p.C.start();p.updateValue("title",N);g.Tz(p.element,"ytp-bezel-text-hide",!N)}; qmL=function(p,C){g.L.call(this,{L:"button",i_:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"span",B:"ytp-cards-button-icon-default",j:[{L:"div",B:"ytp-cards-button-icon",j:[p.K().G("player_new_info_card_format")?U5v():{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {L:"div",B:"ytp-cards-button-title",Ak:"Info"}]},{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:"Shopping"}]}]});this.N=p;this.V=C;this.T=null;this.C=new g.a0(this,250,!0,100);g.R(this,this.C);g.Tz(this.V,"ytp-show-cards-title",g.KI(p.K()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.MaY);this.e3(!0)}; IOS=function(p,C){g.L.call(this,{L:"div",B:"ytp-cards-teaser",j:[{L:"div",B:"ytp-cards-teaser-box"},{L:"div",B:"ytp-cards-teaser-text",j:p.K().G("player_new_info_card_format")?[{L:"button",B:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},j:[U5v()]},{L:"span",B:"ytp-cards-teaser-label",Ak:"{{text}}"},{L:"button",B:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},j:[g.yD()]}]:[{L:"span",B:"ytp-cards-teaser-label",Ak:"{{text}}"}]}]});var V=this;this.N=p;this.Mn= C;this.S=new g.a0(this,250,!1,250);this.T=null;this.J=new g.N8(this.Vb$,300,this);this.D=new g.N8(this.rQa,2E3,this);this.W=[];this.C=null;this.Z=new g.N8(function(){V.element.style.margin="0"},250); this.onClickCommand=this.V=null;g.R(this,this.S);g.R(this,this.J);g.R(this,this.D);g.R(this,this.Z);p.K().G("player_new_info_card_format")?(g.Ed(p.getRootNode(),"ytp-cards-teaser-dismissible"),this.U(this.rV("ytp-cards-teaser-close-button"),"click",this.Dt),this.U(this.rV("ytp-cards-teaser-info-icon"),"click",this.q_),this.U(this.rV("ytp-cards-teaser-label"),"click",this.q_)):this.listen("click",this.q_);this.U(C.element,"mouseover",this.Mv);this.U(C.element,"mouseout",this.cH);this.U(p,"cardsteasershow", this.GBa);this.U(p,"cardsteaserhide",this.f4);this.U(p,"cardstatechange",this.My);this.U(p,"presentingplayerstatechange",this.My);this.U(p,"appresize",this.w$);this.U(p,"onShowControls",this.w$);this.U(p,"onHideControls",this.xI);this.listen("mouseenter",this.BT)}; bDu=function(p){g.L.call(this,{L:"button",i_:[ae.BUTTON,ae.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},j:[{L:"div",B:ae.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},j:[g.bq()]},{L:"div",B:ae.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},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","Get notified about every new video")}; AFv=function(p,C){p.T=C;p.element.classList.toggle(ae.NOTIFICATIONS_ENABLED,p.T);var V=p.api.getVideoData();V?(C=C?V.hY:V.Lj)?(p=p.api.xN())?a4(p,C):g.nm(Error("No innertube service available when updating notification preferences.")):g.nm(Error("No update preferences command available.")):g.nm(Error("No video data when updating notification preferences."))}; kSL=function(p,C,V){var N=N===void 0?800:N;var H=H===void 0?600:H;p=oye(p,C);if(p=g.gV(window,p,"loginPopup","width="+N+",height="+H+",resizable=yes,scrollbars=yes"))DvQ(function(){V()}),p.moveTo((screen.width-N)/2,(screen.height-H)/2)}; oye=function(p,C){var V=document.location.protocol;return OHS(V+"//"+p+"/signin?context=popup","feature",C,"next",V+"//"+location.hostname+"/post_login")}; g.ER=function(p,C,V,N,H,X,d,a,E,l,t,c){p=p.charAt(0)+p.substring(1).toLowerCase();V=V.charAt(0)+V.substring(1).toLowerCase();if(C==="0"||C==="-1")C=null;if(N==="0"||N==="-1")N=null;var T=t.K(),M=T.userDisplayName&&g.Oe(T);g.L.call(this,{L:"div",i_:["ytp-button","ytp-sb"],j:[{L:"div",B:"ytp-sb-subscribe",X:M?{title:g.Ks("Subscribe as $USER_NAME",{USER_NAME:T.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":Bg(T),"data-tooltip-opaque":String(g.KI(T)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},j:[{L:"div",B:"ytp-sb-text",j:[{L:"div",B:"ytp-sb-icon"},p]},C?{L:"div",B:"ytp-sb-count",Ak:C}:""]},{L:"div",B:"ytp-sb-unsubscribe",X:M?{title:g.Ks("Subscribed as $USER_NAME",{USER_NAME:T.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":Bg(T),"data-tooltip-opaque":String(g.KI(T)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},j:[{L:"div",B:"ytp-sb-text",j:[{L:"div",B:"ytp-sb-icon"},V]},N?{L:"div",B:"ytp-sb-count", Ak:N}:""]}],X:{"aria-live":"polite"}});var J=this;this.channelId=d;this.N=t;this.V=c;var S=this.rV("ytp-sb-subscribe"),D=this.rV("ytp-sb-unsubscribe");X&&g.Ed(this.element,"ytp-sb-classic");if(H){a?this.T():this.C();var Z=function(){if(T.sY){var q=J.channelId;if(E||l){var A={c:q};var z;g.bt.isInitialized()&&(z=mGv(A));A=z||"";if(z=t.getVideoData())if(z=z.subscribeCommand){var Q=t.xN();Q?(a4(Q,z,{botguardResponse:A,feature:E}),t.Jk("SUBSCRIBE",q)):g.nm(Error("No innertube service available when updating subscriptions."))}else g.nm(Error("No subscribe command in videoData.")); else g.nm(Error("No video data available when updating subscription."))}D.focus();D.removeAttribute("aria-hidden");S.setAttribute("aria-hidden","true")}else kSL(g.zM(J.N.K()),"sb_button",J.S)},f=function(){var q=J.channelId; if(E||l){var A=t.getVideoData();a4(t.xN(),A.unsubscribeCommand,{feature:E});t.Jk("UNSUBSCRIBE",q)}S.focus();S.removeAttribute("aria-hidden");D.setAttribute("aria-hidden","true")}; this.U(S,"click",Z);this.U(D,"click",f);this.U(S,"keypress",function(q){q.keyCode===13&&Z(q)}); this.U(D,"keypress",function(q){q.keyCode===13&&f(q)}); this.U(t,"SUBSCRIBE",this.T);this.U(t,"UNSUBSCRIBE",this.C);this.V&&M&&(Lwv(t),o$(t,S,this),o$(t,D,this))}else g.Ed(S,"ytp-sb-disabled"),g.Ed(D,"ytp-sb-disabled")}; z9e=function(p){g.L.call(this,{L:"div",B:"ytp-title-channel",j:[{L:"div",B:"ytp-title-beacon"},{L:"a",B:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:p.K().Z,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{L:"div",B:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},j:[{L:"div",B:"ytp-title-expanded-heading",j:[{L:"div",B:"ytp-title-expanded-title",j:[{L:"a",Ak:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:p.K().Z,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{L:"div",B:"ytp-title-expanded-subtitle",Ak:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var C=this;this.api=p;this.channel=this.rV("ytp-title-channel");this.C=this.rV("ytp-title-channel-logo");this.channelName=this.rV("ytp-title-expanded-title");this.W=this.rV("ytp-title-expanded-overlay");this.V=this.T=this.subscribeButton=null;this.S=!1;p.createClientVe(this.C,this,36925);p.createClientVe(this.channelName,this, 37220);g.KI(this.api.K())&&xES(this);this.U(p,"videodatachange",this.Pr);this.U(p,"videoplayerreset",this.Pr);this.U(this.channelName,"click",function(V){C.api.logClick(C.channelName);g.gV(window,Ymu(C));V.preventDefault()}); this.U(this.C,"click",this.pra);this.Pr()}; R9Y=function(p){if(!p.api.K().qW){var C=p.api.getVideoData(),V=new g.ER("Subscribe",null,"Subscribed",null,!0,!1,C.eI,C.subscribed,"channel_avatar",null,p.api,!0);p.api.createServerVe(V.element,p);var N;p.api.setTrackingParams(V.element,((N=C.subscribeButtonRenderer)==null?void 0:N.trackingParams)||null);p.U(V.element,"click",function(){p.api.logClick(V.element)}); p.subscribeButton=V;g.R(p,p.subscribeButton);p.subscribeButton.u_(p.W);p.subscribeButton.hide();var H=new bDu(p.api);p.T=H;g.R(p,H);H.u_(p.W);H.hide();p.U(p.api,"SUBSCRIBE",function(){C.DM&&(H.show(),p.api.logVisibility(H.element,!0))}); p.U(p.api,"UNSUBSCRIBE",function(){C.DM&&(H.hide(),p.api.logVisibility(H.element,!1),AFv(H,!1))})}}; xES=function(p){var C=p.api.K();R9Y(p);p.updateValue("flyoutUnfocusable","true");p.updateValue("channelTitleFocusable","-1");p.updateValue("shouldHideExpandedTitleForA11y","true");p.updateValue("shouldHideExpandedSubtitleForA11y","true");C.C||C.R$||(p.U(p.channel,"mouseenter",p.B4),p.U(p.channel,"mouseleave",p.Mi),p.U(p.channel,"focusin",p.B4),p.U(p.channel,"focusout",function(V){p.channel.contains(V.relatedTarget)||p.Mi()})); p.V=new g.N8(function(){p.isExpanded()&&(p.api.logVisibility(p.channelName,!1),p.subscribeButton&&(p.subscribeButton.hide(),p.api.logVisibility(p.subscribeButton.element,!1)),p.T&&(p.T.hide(),p.api.logVisibility(p.T.element,!1)),p.channel.classList.remove("ytp-title-expanded"),p.channel.classList.add("ytp-title-show-collapsed"))},500); g.R(p,p.V);p.U(p.channel,nyS,function(){e9Y(p)}); p.U(p.api,"onHideControls",p.oM);p.U(p.api,"appresize",p.oM);p.U(p.api,"fullscreentoggled",p.oM)}; e9Y=function(p){p.channel.classList.remove("ytp-title-show-collapsed");p.channel.classList.remove("ytp-title-show-expanded")}; PML=function(p){var C=p.api.getPlayerSize();return g.KI(p.api.K())&&C.width>=524}; Ymu=function(p){var C=p.api.K(),V=p.api.getVideoData(),N=g.GM(C)+V.kM;g.t_(V)&&(N="https://music.youtube.com"+V.kM);if(!g.KI(C))return N;C={};g.FE(p.api,"addEmbedsConversionTrackingParams",[C]);return g.GD(N,C)}; lW=function(p){var C=g.H3({"aria-haspopup":"true"});g.Nl.call(this,C,p);this.listen("keydown",this.T)}; tD=function(p,C){p.element.setAttribute("aria-haspopup",String(C))}; wq9=function(p,C){g.L.call(this,{L:"div",B:"ytp-user-info-panel",X:{"aria-label":"User info"},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:"Signed out"}]},{L:"div",B:"ytp-user-info-panel-login",j:[{L:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Ak:p.K().qW?"":"Sign in on YouTube"}]}]}]});this.ea=p;this.T=C;p.K().sY||p.K().qW||this.U(this.rV("ytp-user-info-panel-login"),"click",this.Uw);this.closeButton=new g.L({L:"button",i_:["ytp-collapse","ytp-button"],X:{title:"Close"},j:[g.Y0()]});this.closeButton.u_(this.element); g.R(this,this.closeButton);this.U(window,"blur",this.hide);this.U(document,"click",this.tb);this.Pr()}; Lf9=function(p,C,V){g.$m.call(this,p);this.xM=C;this.WV=V;this.getVideoUrl=new lW(6);this.vp=new lW(5);this.I9=new lW(4);this.X0=new lW(3);this.x7=new g.Nl(g.H3({href:"{{href}}",target:this.N.K().Z},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.Nl(g.H3(),1,"Stats for nerds");this.mB=new g.Sp({L:"div",i_:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},Ak:"{{text}}"});this.RK=new wL(this.N,this.mB);this.Ch=this.Wf=null;g.KI(this.N.K())&&(this.closeButton= new g.L({L:"button",i_:["ytp-collapse","ytp-button"],X:{title:"Close"},j:[g.Y0()]}),g.R(this,this.closeButton),this.closeButton.u_(this.element),this.closeButton.listen("click",this.Vu,this));g.KI(this.N.K())&&(this.fM=new g.Nl(g.H3(),8,"Account"),g.R(this,this.fM),this.zB(this.fM,!0),this.fM.listen("click",this.EG$,this),p.createClientVe(this.fM.element,this.fM,137682));this.N.K().JW&&(this.rb=new c3("Loop",7),g.R(this,this.rb),this.zB(this.rb,!0),this.rb.listen("click",this.nMY,this),p.createClientVe(this.rb.element, this.rb,28661));g.R(this,this.getVideoUrl);this.zB(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.qYx,this);p.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.R(this,this.vp);this.zB(this.vp,!0);this.vp.listen("click",this.ckn,this);p.createClientVe(this.vp.element,this.vp,28660);g.R(this,this.I9);this.zB(this.I9,!0);this.I9.listen("click",this.Fxe,this);p.createClientVe(this.I9.element,this.I9,28658);g.R(this,this.X0);this.zB(this.X0,!0);this.X0.listen("click",this.Xr$, this);g.R(this,this.x7);this.zB(this.x7,!0);this.x7.listen("click",this.jHk,this);g.R(this,this.showVideoInfo);this.zB(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.uO_,this);g.R(this,this.mB);this.mB.listen("click",this.BVa,this);g.R(this,this.RK);C=document.queryCommandSupported&&document.queryCommandSupported("copy");LyQ("Chromium")>=43&&(C=!0);LyQ("Firefox")<=40&&(C=!1);C&&(this.Wf=new g.L({L:"textarea",B:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.R(this,this.Wf), this.Wf.u_(this.element));var N;(N=this.fM)==null||N.setIcon(qBQ());var H;(H=this.rb)==null||H.setIcon({L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.X0.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.x7.setIcon(uW1());this.showVideoInfo.setIcon(ZKv());this.U(p,"onLoopChange",this.onLoopChange);this.U(p,"videodatachange",this.onVideoDataChange);$EY(this);this.mI(this.N.getVideoData())}; cz=function(p,C){var V=!1;if(p.Wf){var N=p.Wf.element;N.value=C;N.select();try{V=document.execCommand("copy")}catch(H){}}V?p.xM.f4():(p.mB.Jc(C,"text"),g.WO(p.xM,p.RK),v3(p.mB.element),p.Wf&&(p.Wf=null,$EY(p)));return V}; $EY=function(p){var C=!!p.Wf;g.V7(p.X0,C?"Copy debug info":"Get debug info");tD(p.X0,!C);g.V7(p.I9,C?"Copy embed code":"Get embed code");tD(p.I9,!C);g.V7(p.getVideoUrl,C?"Copy video URL":"Get video URL");tD(p.getVideoUrl,!C);g.V7(p.vp,C?"Copy video URL at current time":"Get video URL at current time");tD(p.vp,!C);p.I9.setIcon(C?SBH():null);p.getVideoUrl.setIcon(C?qy():null);p.vp.setIcon(C?qy():null)}; gyj=function(p){return g.KI(p.N.K())?p.fM:p.rb}; QQQ=function(p,C){g.gL.call(this,p);this.WV=C;this.S=new g.Rr(this);this.b_=new g.N8(this.YZe,1E3,this);this.sY=this.V=null;g.R(this,this.S);g.R(this,this.b_);p.createClientVe(this.element,this,28656);g.Ed(this.element,"ytp-contextmenu");Wfy(this);this.hide()}; Wfy=function(p){g.Am(p.S);var C=p.N.K();C.playerStyle==="gvn"||C.C||C.R$||(C=p.N.dV(),p.S.U(C,"contextmenu",p.YYV),p.S.U(C,"touchstart",p.lD,null,!0),p.S.U(C,"touchmove",p.lV,null,!0),p.S.U(C,"touchend",p.lV,null,!0))}; rFY=function(p){p.N.isFullscreen()?g.LT(p.N,p.element,10):p.u_(pc(p).body)}; TI=function(p,C,V){V=V===void 0?240:V;g.L.call(this,{L:"button",i_:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-copylink-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-copylink-title",Ak:"Copy link",X:{"aria-hidden":"true"}}]});this.api=p;this.T=C;this.C=V;this.visible=!1;this.tooltip=this.T.aI();C=p.K();this.tooltip.element.setAttribute("aria-live","polite");g.Tz(this.element,"ytp-show-copylink-title",g.KI(C));p.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.U(p,"videodatachange",this.Pr);this.U(p,"videoplayerreset",this.Pr);this.U(p,"appresize",this.Pr);this.Pr();this.addOnDisposeCallback(g.A_(this.tooltip,this.element))}; BvY=function(p){var C=p.api.K(),V=p.api.getVideoData(),N=p.api.dV().getPlayerSize().width;C=C.V;return!!V.videoId&&N>=p.C&&V.BK&&!g.lx(V)&&!p.api.isEmbedsShortsMode()&&!C}; GSS=function(p){p.updateValue("icon",Uy());if(p.api.K().C)p.tooltip.Y7(p.element,"Link copied to clipboard");else{p.updateValue("title-attr","Link copied to clipboard");p.tooltip.B6();p.tooltip.Y7(p.element);var C=p.listen("mouseleave",function(){p.rY(C);p.Pr();p.tooltip.wb()})}}; pDL=function(p,C){return g.I(function(V){if(V.C==1)return g.vv(V,2),g.y(V,navigator.clipboard.writeText(C),4);if(V.C!=2)return V.return(!0);g.Sa(V);var N=V.return,H=!1,X=g.iK("TEXTAREA");X.value=C;X.setAttribute("readonly","");var d=p.api.getRootNode();d.appendChild(X);if(BW){var a=window.getSelection();a.removeAllRanges();var E=document.createRange();E.selectNodeContents(X);a.addRange(E);X.setSelectionRange(0,C.length)}else X.select();try{H=document.execCommand("copy")}catch(l){}d.removeChild(X); return N.call(V,H)})}; Md=function(p){g.L.call(this,{L:"div",B:"ytp-doubletap-ui-legacy",j:[{L:"div",B:"ytp-doubletap-fast-forward-ve"},{L:"div",B:"ytp-doubletap-rewind-ve"},{L:"div",B:"ytp-doubletap-static-circle",j:[{L:"div",B:"ytp-doubletap-ripple"}]},{L:"div",B:"ytp-doubletap-overlay-a11y"},{L:"div",B:"ytp-doubletap-seek-info-container",j:[{L:"div",B:"ytp-doubletap-arrows-container",j:[{L:"span",B:"ytp-doubletap-base-arrow"},{L:"span",B:"ytp-doubletap-base-arrow"},{L:"span",B:"ytp-doubletap-base-arrow"}]},{L:"div", B:"ytp-doubletap-tooltip",j:[{L:"div",B:"ytp-seek-icon-text-container",j:[{L:"div",B:"ytp-seek-icon",Ak:"{{seekIcon}}"},{L:"div",B:"ytp-chapter-seek-text-legacy",Ak:"{{seekText}}"}]},{L:"div",B:"ytp-doubletap-tooltip-label",Ak:"{{seekTime}}"}]}]}]});this.N=p;this.S=new g.N8(this.show,10,this);this.C=new g.N8(this.hide,700,this);this.D=this.V=0;this.a$=this.W=!1;this.T=this.rV("ytp-doubletap-static-circle");g.R(this,this.S);g.R(this,this.C);this.hide();this.J=this.rV("ytp-doubletap-fast-forward-ve"); this.Z=this.rV("ytp-doubletap-rewind-ve");this.N.createClientVe(this.J,this,28240);this.N.createClientVe(this.Z,this,28239);this.N.logVisibility(this.J,!0);this.N.logVisibility(this.Z,!0);this.W=p.G("web_show_cumulative_seek_time");this.a$=p.G("web_center_static_circles")}; JD=function(p,C,V,N){if(N=N===void 0?null:N){var H=C===-1?p.Z.visualElement:p.J.visualElement;N={seekData:N};var X=g.bz();X&&g.NU(Xi)(void 0,X,H,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",N,void 0)}p.V=C===p.D?p.V+V:V;p.D=C;H=p.N.dV().getPlayerSize();p.W?p.C.stop():g.d0(p.C);p.S.start();p.element.setAttribute("data-side",C===-1?"back":"forward");g.Ed(p.element,"ytp-time-seeking");p.T.style.width="110px";p.T.style.height="110px";N=H.width*.1-15;C===1?p.a$?(p.T.style.right=N+"px",p.T.style.left=""): (p.T.style.right="",p.T.style.left=H.width*.8-30+"px"):C===-1&&(p.a$?(p.T.style.right="",p.T.style.left=N+"px"):(p.T.style.right="",p.T.style.left=H.width*.1-15+"px"));p.T.style.top=H.height*.5+15+"px";CSL(p,p.W?p.V:V)}; jJv=function(p,C,V,N){N=N===void 0?null:N;g.d0(p.C);p.S.start();switch(C){case -1:C="back";break;case 1:C="forward";break;default:C=""}p.element.setAttribute("data-side",C);p.T.style.width="0";p.T.style.height="0";g.Ed(p.element,"ytp-chapter-seek");p.updateValue("seekText",V);p.updateValue("seekTime","");V=p.rV("ytp-seek-icon");if(N){a:if(N){switch(N){case "PREMIUM_STANDALONE":N={L:"svg",X:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},j:[{L:"path",X:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", fill:"#c00"}},{L:"path",X:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":N={L:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"rect",X:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{L:"rect",X:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{L:"path",X:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{L:"defs",j:[{L:"linearGradient",X:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},j:[{L:"stop",X:{offset:"0.3","stop-color":"#E1002D"}},{L:"stop",X:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}N=void 0}else N=null;p.updateValue("seekIcon",N);V.style.display="inline-block"}else V.style.display="none"}; CSL=function(p,C){C=g.Ks("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:C.toString()});p.updateValue("seekTime",C)}; VdY=function(p){PO.call(this,p,!1,!0);this.Vn=[];this.Hc=[];this.Z=!0;this.badge.element.classList.add("ytp-featured-product");this.Sa=new g.L({L:"div",B:"ytp-featured-product-open-in-new"});g.R(this,this.Sa);this.countdownTimer=new g.L({L:"text",B:"ytp-featured-product-countdown",Ak:"{{content}}"});this.countdownTimer.hide();g.R(this,this.countdownTimer);this.C=new g.L({L:"div",B:"ytp-featured-product-trending",j:[{L:"div",B:"ytp-featured-product-trending-icon"},{L:"text",B:"ytp-featured-product-trending-text", Ak:"{{trendingOffer}}"}]});this.C.hide();g.R(this,this.C);this.overflowButton=new g.L({L:"button",i_:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.R(this,this.overflowButton);this.infoButton=new g.L({L:"button",i_:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.R(this,this.infoButton);this.J=new g.L({L:"text",B:"ytp-featured-product-exclusive-countdown",Ak:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}}); this.J.hide();g.R(this,this.J);this.D=new g.L({L:"div",B:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},j:[{L:"div",B:"ytp-featured-product-exclusive-badge-container",j:[{L:"div",B:"ytp-featured-product-exclusive-badge",j:[{L:"text",B:"ytp-featured-product-exclusive-badge-text",Ak:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.J]});this.D.hide();g.R(this,this.D);this.banner=new g.L({L:"a",B:"ytp-featured-product-container", j:[{L:"div",B:"ytp-featured-product-thumbnail",j:[{L:"img",X:{src:"{{thumbnail}}"}},this.Sa]},{L:"div",B:"ytp-featured-product-details",j:[{L:"text",B:"ytp-featured-product-title",Ak:"{{title}}"},this.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{L:"div",B:"ytp-featured-product-price-container",X:{"aria-label":"{{priceA11yText}}"},j:[{L:"text",B:"ytp-featured-product-price-when-promotion-text-enabled",Ak:"{{price}}",X:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-promotion-text", Ak:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{L:"div",X:{"aria-label":"{{priceA11yText}}"},j:[{L:"text",B:"ytp-featured-product-price",Ak:"{{price}}",X:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-sales-original-price",Ak:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{L:"text",B:"ytp-featured-product-price-drop-reference-price",Ak:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{L:"div", B:"ytp-featured-product-when-promotion-text-enabled",j:[{L:"text",B:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Ak:"{{affiliateDisclaimer}}"},this.C,{L:"text",B:"ytp-featured-product-vendor-when-promotion-text-enabled",Ak:"{{vendor}}"}]}:{L:"div",j:[{L:"text",B:"ytp-featured-product-affiliate-disclaimer",Ak:"{{affiliateDisclaimer}}"},this.N.G("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.D:null,this.C,{L:"text",B:"ytp-featured-product-vendor", Ak:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.R(this,this.banner);this.banner.u_(this.V.element);this.U(this.N,g.Ez("featured_product"),this.IQe);this.U(this.N,g.lG("featured_product"),this.Cl);this.U(this.N,"videodatachange",this.onVideoDataChange);this.U(this.infoButton.element,"click",this.ZSa);this.U(this.overflowButton.element,"click",this.gp);this.U(p,"featuredproductdismissed",this.Fj)}; NK9=function(p){var C,V;p=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData;var N,H,X;return(p==null||!p.affiliateDisclaimer)&&(p==null?0:(N=p.exclusivesData)==null?0:N.exclusiveOfferLabelText)&&(p==null?0:(H=p.exclusivesData)==null?0:H.expirationTimestampMs)&&(p==null?0:(X=p.exclusivesData)==null?0:X.exclusiveOfferCountdownText)?!0:!1}; XDs=function(p){var C,V,N,H,X=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:(N=V.itemData)==null?void 0:(H=N.exclusivesData)==null?void 0:H.expirationTimestampMs;C=(Number(X)-Date.now())/1E3;if(C>0){if(C<604800){var d,a,E,l;V=(d=p.T)==null?void 0:(a=d.bannerData)==null?void 0:(E=a.itemData)==null?void 0:(l=E.exclusivesData)==null?void 0:l.exclusiveOfferCountdownText;if(V!==void 0)for(d=Date.now(),a=g.F(V),E=a.next();!E.done;E=a.next())if(E=E.value,E!==void 0&&E.text!==void 0&&(l=Number(E.textDisplayStartTimestampMs), !isNaN(l)&&d>=l)){E.insertCountdown?(C=E.text.replace(/\$0/,String(vY({seconds:C}))),p.J.Jc(C)):p.J.Jc(E.text);p.J.show();break}}var t,c,T,M;p.D.update({exclusive:(t=p.T)==null?void 0:(c=t.bannerData)==null?void 0:(T=c.itemData)==null?void 0:(M=T.exclusivesData)==null?void 0:M.exclusiveOfferLabelText});p.D.show();mD(p);var J;(J=p.YM)==null||J.start()}else HMY(p)}; HMY=function(p){var C;(C=p.YM)==null||C.stop();p.J.hide();p.D.hide();vz(p)}; dWX=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData;return p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(N==null||!N.priceReplacementText)&&(N==null?0:N.promotionText)?N==null?void 0:N.promotionText.content:null}; iM9=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData,H,X;if(!(N!=null&&N.priceReplacementText||p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(N==null?0:(H=N.dealsData)==null?0:(X=H.sales)==null?0:X.originalPrice)){var d,a;return N==null?void 0:(d=N.dealsData)==null?void 0:(a=d.sales)==null?void 0:a.originalPrice}return null}; hfu=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData,H,X,d,a;if(!((N==null?0:N.priceReplacementText)||p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(N==null?0:(H=N.dealsData)==null?0:(X=H.sales)==null?0:X.originalPrice))&&(N==null?0:(d=N.dealsData)==null?0:(a=d.priceDrop)==null?0:a.referencePrice)){var E,l;return N==null?void 0:(E=N.dealsData)==null?void 0:(l=E.priceDrop)==null?void 0:l.referencePrice}return null}; sJe=function(p){var C,V,N=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:V.itemData;if(N==null?0:N.priceReplacementText)return N==null?void 0:N.priceReplacementText;if((N==null?0:N.promotionText)&&p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var H;return(N==null?void 0:N.price)+" "+(N==null?void 0:(H=N.promotionText)==null?void 0:H.content)}var X,d;if(N==null?0:(X=N.dealsData)==null?0:(d=X.sales)==null?0:d.originalPrice){var a,E;return N==null?void 0:(a=N.dealsData)== null?void 0:(E=a.sales)==null?void 0:E.salesPriceAccessibilityLabel}var l,t;if(N==null?0:(l=N.dealsData)==null?0:(t=l.priceDrop)==null?0:t.referencePrice){var c,T;return(N==null?void 0:N.price)+" "+(N==null?void 0:(c=N.dealsData)==null?void 0:(T=c.priceDrop)==null?void 0:T.referencePrice)}return N==null?void 0:N.price}; a4L=function(p){if(p.N.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var C,V,N;return p.C.C4?null:(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:(N=V.itemData)==null?void 0:N.vendorName}var H,X,d,a,E,l;return p.C.C4||p.D.C4||((H=p.T)==null?0:(X=H.bannerData)==null?0:(d=X.itemData)==null?0:d.affiliateDisclaimer)?null:(a=p.T)==null?void 0:(E=a.bannerData)==null?void 0:(l=E.itemData)==null?void 0:l.vendorName}; l4L=function(p,C){Fo(p);if(C){var V=g.Xx.getState().entities;V=Mg(V,"featuredProductsEntity",C);if(V!=null&&V.productsData){C=[];V=g.F(V.productsData);for(var N=V.next();!N.done;N=V.next()){N=N.value;var H=void 0;if((H=N)!=null&&H.identifier&&N.featuredSegments){p.Vn.push(N);var X=void 0;H=g.F((X=N)==null?void 0:X.featuredSegments);for(X=H.next();!X.done;X=H.next()){var d=X.value;X=ERy(d.startTimeSec);X!==void 0&&(d=ERy(d.endTimeSec),C.push(new g.sz(X*1E3,d===void 0?0x7ffffffffffff:d*1E3,{id:N.identifier, namespace:"featured_product"})))}}}p.N.d7(C)}}}; vz=function(p){if(p.trendingOfferEntityKey){var C=g.Xx.getState().entities;if(C=Mg(C,"trendingOfferEntity",p.trendingOfferEntityKey)){var V,N,H;C.encodedSkuId!==((V=p.T)==null?void 0:(N=V.bannerData)==null?void 0:(H=N.itemData)==null?void 0:H.encodedOfferSkuId)?mD(p):(p.C.update({trendingOffer:C.shortLabel+" \u2022 "+C.countLabel}),p.C.show(),p.banner.update({vendor:a4L(p)}))}else mD(p)}else mD(p)}; mD=function(p){p.C.hide();p.banner.update({vendor:a4L(p)})}; Fo=function(p){p.Vn=[];p.Cl();p.N.qt("featured_product")}; tdL=function(p){var C,V,N,H,X=(C=p.T)==null?void 0:(V=C.bannerData)==null?void 0:(N=V.itemData)==null?void 0:(H=N.hiddenProductOptions)==null?void 0:H.dropTimestampMs;C=(Number(X)-Date.now())/1E3;p.countdownTimer.Jc(vY({seconds:C}));if(C>0){var d;(d=p.ER)==null||d.start()}}; cJv=function(p){var C;(C=p.ER)==null||C.stop();p.countdownTimer.hide()}; ERy=function(p){if(p!==void 0&&p.trim()!==""&&(p=Math.trunc(Number(p.trim())),!(isNaN(p)||p<0)))return p}; vRS=function(p,C,V){g.L.call(this,{L:"div",i_:["ytp-info-panel-action-item"],j:[{L:"div",B:"ytp-info-panel-action-item-disclaimer",Ak:"{{disclaimer}}"},{L:"a",i_:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},j:[{L:"div",B:"ytp-info-panel-action-item-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-info-panel-action-item-label",Ak:"{{label}}"}]}]});this.N=p;this.T=V;this.disclaimer=this.rV("ytp-info-panel-action-item-disclaimer");this.button= this.rV("ytp-info-panel-action-item-button");this.GN=!1;this.N.createServerVe(this.element,this,!0);this.listen("click",this.onClick);p="";V=g.n(C==null?void 0:C.onTap,w7);var N=g.n(V,g.$0);this.GN=!1;N?(p=N.url||"",p.startsWith("//")&&(p="https:"+p),this.GN=!0,g.el(this.button,g.Rc(p))):(N=g.n(V,TKS))&&!this.T?((p=N.phoneNumbers)&&p.length>0?(p="sms:"+p[0],N.messageText&&(p+="?&body="+encodeURI(N.messageText))):p="",this.GN=!0,g.el(this.button,g.Rc(p,[MdL]))):(V=g.n(V,JJj))&&!this.T&&(p=V.phoneNumber? "tel:"+V.phoneNumber:"",this.GN=!0,g.el(this.button,g.Rc(p,[mWL])));var H;if(V=(H=C.disclaimerText)==null?void 0:H.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var X;this.update({label:(X=C.bodyText)==null?void 0:X.content,icon:AO(),disclaimer:V})}else{this.disclaimer.style.display="none";var d;this.update({label:(d=C.bodyText)==null?void 0:d.content,icon:AO()})}this.N.setTrackingParams(this.element,C.trackingParams||null);this.GN&&(this.C={externalLinkData:{url:p}})}; Fmy=function(p,C){var V=JO();g.GC.call(this,p,{L:"div",B:"ytp-info-panel-detail-skrim",j:[{L:"div",B:"ytp-info-panel-detail",X:{role:"dialog",id:V},j:[{L:"div",B:"ytp-info-panel-detail-header",j:[{L:"div",B:"ytp-info-panel-detail-title",Ak:"{{title}}"},{L:"button",i_:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},j:[g.yD()]}]},{L:"div",B:"ytp-info-panel-detail-body",Ak:"{{body}}"},{L:"div",B:"ytp-info-panel-detail-items"}]}]},250);this.T=C;this.items=this.rV("ytp-info-panel-detail-items"); this.V=new g.Rr(this);this.itemData=[];this.S=V;this.U(this.rV("ytp-info-panel-detail-close"),"click",this.f4);this.U(this.rV("ytp-info-panel-detail-skrim"),"click",this.f4);this.U(this.rV("ytp-info-panel-detail"),"click",function(N){N.stopPropagation()}); g.R(this,this.V);this.N.createServerVe(this.element,this,!0);this.U(p,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",p.getVideoData());this.hide()}; SUu=function(p,C){p=g.F(p.itemData);for(var V=p.next();!V.done;V=p.next())V=V.value,V.N.logVisibility(V.element,C)}; uys=function(p,C){g.L.call(this,{L:"div",B:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":C.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-info-panel-preview-text",Ak:"{{text}}"},{L:"div",B:"ytp-info-panel-preview-chevron",Ak:"{{chevron}}"}]});var V=this;this.N=p;this.g7=this.T=this.videoId=null;this.S=this.showControls=this.C=!1;this.U(this.element,"click",function(){p.logClick(V.element);p.A6();Cc(C)}); this.V=new g.a0(this,250,!1,100);g.R(this,this.V);this.N.createServerVe(this.element,this,!0);this.U(p,"videodatachange",this.onVideoDataChange);this.U(p,"presentingplayerstatechange",this.Q0);this.U(this.N,"paidcontentoverlayvisibilitychange",this.VO);this.U(this.N,"infopaneldetailvisibilitychange",this.VO);var N=p.getVideoData()||{};Kmj(N)&&DWV(this,N);this.U(p,"onShowControls",this.Jb);this.U(p,"onHideControls",this.Ow)}; DWV=function(p,C){if(!C.qn||!p.N.iX()){var V=C.Vw||1E4,N=Kmj(C);p.T?C.videoId&&C.videoId!==p.videoId&&(g.d0(p.T),p.videoId=C.videoId,N?(ZML(p,V,C),p.er()):(p.f4(),p.T.dispose(),p.T=null)):N&&(C.videoId&&(p.videoId=C.videoId),ZML(p,V,C),p.er())}}; Kmj=function(p){var C,V,N,H;return!!((C=p.W1)==null?0:(V=C.title)==null?0:V.content)||!!((N=p.W1)==null?0:(H=N.bodyText)==null?0:H.content)}; ZML=function(p,C,V){p.T&&p.T.dispose();p.T=new g.N8(p.mg$,C,p);g.R(p,p.T);var N;C=((N=V.W1)==null?void 0:N.trackingParams)||null;p.N.setTrackingParams(p.element,C);var H;var X,d;if(V==null?0:(X=V.W1)==null?0:(d=X.title)==null?0:d.content){var a;N=(H=V.W1)==null?void 0:(a=H.title)==null?void 0:a.content;var E,l;if((E=V.W1)==null?0:(l=E.bodyText)==null?0:l.content)N+=" \u2022 ";H=N}else H="";var t,c;V=((t=V.W1)==null?void 0:(c=t.bodyText)==null?void 0:c.content)||"";p.update({text:H+V,chevron:g.Oy()})}; UWe=function(p,C){p.T&&(g.r(C,8)?(p.C=!0,p.er(),p.T.start()):(g.r(C,2)||g.r(C,64))&&p.videoId&&(p.videoId=null))}; S4=function(p){var C=null;try{C=p.toLocaleString("en",{style:"percent"})}catch(V){C=p.toLocaleString(void 0,{style:"percent"})}return C}; KZ=function(p,C){var V=0;p=g.F(p);for(var N=p.next();!(N.done||N.value.startTime>C);N=p.next())V++;return V===0?V:V-1}; f4H=function(p,C){for(var V=0,N=g.F(p),H=N.next();!H.done;H=N.next()){H=H.value;if(C<H.timeRangeStartMillis)return null;if(C>=H.timeRangeStartMillis&&C<H.timeRangeStartMillis+H.T)break;V++}V+1<p.length&&p[V+1].timeRangeStartMillis<=C&&V++;return V<p.length?V:null}; OML=function(p,C){C=KZ(p,C)+1;return C<p.length?C:-1}; yJy=function(p,C){return KZ(p,C)-1}; qU9=function(p,C){return new g.sz(p,C,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+p})}; bM1=function(p,C,V,N,H,X,d,a){g.Rr.call(this);var E=this;this.api=p;this.contextMenu=V;this.YB=N;this.WV=H;this.T=X;this.Y=d;this.progressBar=a;this.W=new g.N8(function(){I4y(E,!1)},1E3); this.C="";this.V={K3:!1};this.S=!1;g.R(this,this.W);this.U(C,"mousedown",function(){DR(E,!1)}); this.U(V.element,"mousedown",function(){DR(E,!1)}); this.U(C,"keydown",this.r4);this.U(V.element,"keydown",this.r4);this.U(C,"keyup",this.VS);this.U(V.element,"keyup",this.VS)}; AJQ=function(p,C){return C<0?0:Math.floor(Math.min(C,p.api.getDuration())*1E3)}; uW=function(p,C,V){var N=p.api.getCurrentTime(),H=AJQ(p,N);p=AJQ(p,N+C);return{startMediaTimeMs:H,endMediaTimeMs:p,seekSource:V}}; oRY=function(p){var C,V=(C=p.api.getVideoData())==null?void 0:C.VL();return p.api.getPresentingPlayerType(V)!==2}; DR=function(p,C){p.S=C;g.Tz(p.api.getRootNode(),"ytp-probably-keyboard-focus",C);g.Tz(p.contextMenu.element,"ytp-probably-keyboard-focus",C)}; UR=function(p,C,V,N){var H=g.RT(p.api.Tk());if(H&&H.loaded){var X=p.api.getSubtitlesUserSettings();H=void 0;for(var d=0;d<g.ZR.length;d++){var a=g.ZR[d];if(a.option===C){H=a.options;break}}d=void 0;for(a=0;a<H.length;a++)H[a].option===X[C]&&(d=a);if(N)if(V){if(d===0)return}else if(d===H.length-1)return;N={};N[C]=H[(d+(V?H.length-1:1))%H.length].option;p.api.updateSubtitlesUserSettings(N);I4y(p,!0);p.W.start()}}; I4y=function(p,C){g.RT(p.api.Tk())&&p.api.setOption("captions","sampleSubtitles",C)}; g.fZ=function(p,C){g.L.call(this,{L:"button",i_:["ytp-button","ytp-overflow-button"],X:{title:"More","aria-haspopup":"true","aria-owns":C.element.id},j:[{L:"div",B:"ytp-overflow-icon",j:[{L:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},j:[{L:"path",X:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var V=this;this.N=p;this.j5=C;this.T=this.visible=!1;p.createClientVe(this.element, this,16499);this.U(p,"videoplayerreset",this.Pr);this.U(p,"appresize",this.Pr);this.U(p,"fullscreentoggled",this.Pr);this.U(p,"presentingplayerstatechange",this.Pr);this.Pr();o$(p,this.element,this);this.listen("click",function(){p.logClick(V.element);Cc(C,V.element,!1)}); this.U(C.closeButton,"click",function(){V.focus()})}; kUQ=function(p){g.GC.call(this,p,{L:"div",B:"ytp-overflow-panel",X:{id:JO(),role:"dialog"},j:[{L:"div",B:"ytp-overflow-panel-content",j:[{L:"div",B:"ytp-overflow-panel-action-buttons",Ak:"{{buttons}}"}]},{L:"button",i_:["ytp-overflow-panel-close","ytp-button"],X:{title:"Close"},j:[g.yD()]}]},250);this.actionButtons=[];this.T=this.rV("ytp-overflow-panel-content");this.closeButton=this.rV("ytp-overflow-panel-close");this.U(this.closeButton,"click",this.f4);o$(p,this.closeButton,this);this.listen("click", this.wp);this.U(p,"videoplayerreset",this.hide);this.U(p,"fullscreentoggled",this.onFullscreenToggled);this.hide()}; xWs=function(p,C){p.actionButtons.includes(C)||(p.actionButtons.push(C),p.updateValue("buttons",p.actionButtons))}; YUL=function(p,C){p=g.F(p.actionButtons);for(var V=p.next();!V.done;V=p.next())V.value.RH(C)}; zfQ=function(p,C,V){var N=g.OC(C,V),H=N.TW("default.jpg");g.L.call(this,{L:"a",i_:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":N.title,href:p.K().getVideoUrl(N.videoId,C.listId?C.listId.toString():null)},j:[{L:"div",B:"ytp-video-menu-item-index",Ak:String(V+1)},{L:"div",B:"ytp-video-menu-item-now-playing",Ak:"\u25b6"},{L:"div",B:"ytp-video-menu-item-thumbnail",X:{style:H?"background-image: url("+H+");":void 0}},{L:"div",B:"ytp-video-menu-item-title",Ak:N.title},{L:"div", B:"ytp-video-menu-item-author",Ak:N.author}]});this.api=p;this.index=V;this.listen("click",this.onClick)}; Rfu=function(p){g.GC.call(this,p,{L:"div",B:"ytp-playlist-menu",X:{role:"dialog",id:JO()},j:[{L:"div",B:"ytp-playlist-menu-header",j:[{L:"div",B:"ytp-playlist-menu-title",j:[p.K().V?{L:"span",B:"ytp-playlist-menu-title-name",Ak:"{{title}}"}:{L:"a",B:"ytp-playlist-menu-title-name",X:{href:"{{playlisturl}}"},Ak:"{{title}}"},{L:"button",i_:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"Close"},j:[g.yD()]}]},{L:"div",B:"ytp-playlist-menu-subtitle",Ak:"{{subtitle}}"}]},{L:"div",B:"ytp-playlist-menu-items", X:{role:"menu"}}]},250);this.api=p;this.V=this.selected=this.S=this.playlist=null;this.items=this.rV("ytp-playlist-menu-items");this.T=new g.Rr(this);this.playlistData=[];this.U(this.rV("ytp-playlist-menu-close"),"click",this.f4);var C=this.rV("ytp-playlist-menu-title-name");p.K().V||(this.V=this.U(C,"click",this.PJn));g.R(this,this.T);this.hide()}; OR=function(p,C){g.L.call(this,{L:"button",i_:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":String(C.element.id),"aria-haspopup":"true","aria-label":"Playlist"},j:[{L:"div",B:"ytp-playlist-menu-button-icon",j:[{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z", fill:"#fff"}}]}]},{L:"div",B:"ytp-playlist-menu-button-text",Ak:"{{text}}"}]});var V=this;this.api=p;this.playlist=null;this.visible=!1;p.createClientVe(this.element,this,70344);this.U(p,"videodatachange",this.T);this.U(p,"videoplayerreset",this.T);this.U(p,"onPlaylistUpdate",this.T);this.U(p,"presentingplayerstatechange",this.Pr);this.U(p,"appresize",this.Pr);this.hide();this.T();o$(p,this.element,this);this.listen("click",function(){p.logClick(V.element);Cc(C,V.element,!1)})}; nRY=function(p,C){g.L.call(this,{L:"div",B:"ytp-promotooltip-wrapper",j:[{L:"div",B:"ytp-promotooltip-container",j:[{L:"div",B:"ytp-promotooltip-content",j:[{L:"div",B:"ytp-promotooltip-title",Ak:"{{title}}"},{L:"div",B:"ytp-promotooltip-details",Ak:"{{details}}"}]},{L:"div",B:"ytp-promotooltip-buttons",j:[{L:"div",B:"ytp-promotooltip-dismiss-button",Ak:"{{dismissButtonText}}",X:{tabindex:"0"}},{L:"div",B:"ytp-promotooltip-accept-button",Ak:"{{acceptButtonText}}",X:{tabindex:"0","aria-haspopup":"true"}}]}]}, {L:"div",B:"ytp-promotooltip-pointer"}]});var V=this;this.tooltipRenderer=p;this.N=C;this.T=this.V=null;this.title=this.rV("ytp-promotooltip-title");this.details=this.rV("ytp-promotooltip-details");this.acceptButton=this.rV("ytp-promotooltip-accept-button");this.dismissButton=this.rV("ytp-promotooltip-dismiss-button");this.C=this.W=!1;this.S=!0;this.a$=this.D=this.Z=this.J=!1;this.Sr={W9:function(N){V.W9(N)}}; this.jb(!1);p=this.tooltipRenderer.trackingParams||null;if(this.C=!!p)this.N.createServerVe(this.element,this,!0),this.N.setTrackingParams(this.element,p);this.U(C,"onShowControls",this.jC);this.U(C,"onHideControls",this.o7);this.U(C,"resize",this.OR);this.U(this.acceptButton,"click",this.xox);this.U(this.dismissButton,"click",this.lex);this.U(document,"click",this.Xc)}; efQ=function(p){var C=document.querySelectorAll('[data-tooltip-target-id="'+p.tooltipRenderer.targetId+'"]');C=C.length>0?C[0]:null;var V=g.ju("ytp-chrome-bottom"),N=g.ju("ytp-ad-module");p.S=!(V==null||!V.contains(C));p.J=!(N==null||!N.contains(C));p.Z=!(C==null||!C.hasAttribute("data-tooltip-target-fixed"));return C}; $Wj=function(p,C,V){if(!p.W){if(C){p.tooltipRenderer=C;C=p.tooltipRenderer.text;var N=!1,H;(C==null?0:(H=C.runs)==null?0:H.length)&&C.runs[0].text&&(p.update({title:C.runs[0].text.toString()}),N=!0);g.o9(p.title,N);C=p.tooltipRenderer.detailsText;H=!1;var X;if((C==null?0:(X=C.runs)==null?0:X.length)&&C.runs[0].text){N=C.runs[0].text.toString();X=N.indexOf("$TARGET_ICON");if(X>-1)if(p.tooltipRenderer.targetId){C=[];N=N.split("$TARGET_ICON");var d=new g.mz({L:"span",B:"ytp-promotooltip-details-icon", j:[PSH[p.tooltipRenderer.targetId]]});g.R(p,d);for(var a=[],E=g.F(N),l=E.next();!l.done;l=E.next())l=new g.mz({L:"span",B:"ytp-promotooltip-details-component",Ak:l.value}),g.R(p,l),a.push(l);N.length===2?(C.push(a[0].element),C.push(d.element),C.push(a[1].element)):N.length===1&&(X===0?(C.push(d.element),C.push(a[0].element)):(C.push(a[0].element),C.push(d.element)));X=C.length?C:null}else X=null;else X=N;if(X){if(typeof X!=="string")for(g.aN(p.details),H=g.F(X),X=H.next();!X.done;X=H.next())p.details.appendChild(X.value); else p.update({details:X});H=!0}}g.o9(p.details,H);H=p.tooltipRenderer.acceptButton;X=!1;var t,c,T;((t=g.n(H,g.z$))==null?0:(c=t.text)==null?0:(T=c.runs)==null?0:T.length)&&g.n(H,g.z$).text.runs[0].text&&(p.update({acceptButtonText:g.n(H,g.z$).text.runs[0].text.toString()}),X=!0);g.o9(p.acceptButton,X);t=p.tooltipRenderer.dismissButton;c=!1;var M,J,S;((M=g.n(t,g.z$))==null?0:(J=M.text)==null?0:(S=J.runs)==null?0:S.length)&&g.n(t,g.z$).text.runs[0].text&&(p.update({dismissButtonText:g.n(t,g.z$).text.runs[0].text.toString()}), c=!0);g.o9(p.dismissButton,c)}V&&(p.V=V);p.T=efQ(p);p.D=!1;p.N.K().G("web_player_hide_nitrate_promo_tooltip")||p.jb(!0);wDs(p);p.C4&&!p.a$&&(p.a$=!0,p.Sr.W9(0));p.C&&p.N.logVisibility(p.element,p.C4)}}; y1=function(p){p.jb(!1);p.C&&p.N.logVisibility(p.element,p.C4)}; LmX=function(p){var C,V,N,H=((C=g.n(p.acceptButton,g.z$))==null?void 0:(V=C.text)==null?void 0:(N=V.runs)==null?void 0:N.length)&&!!g.n(p.acceptButton,g.z$).text.runs[0].text,X,d,a;C=((X=g.n(p.dismissButton,g.z$))==null?void 0:(d=X.text)==null?void 0:(a=d.runs)==null?void 0:a.length)&&!!g.n(p.dismissButton,g.z$).text.runs[0].text;return H||C}; wDs=function(p){var C;if(!(C=!p.T)){C=p.T;var V=window.getComputedStyle(C);C=V.display==="none"||V.visibility==="hidden"||C.getAttribute("aria-hidden")==="true"}if(C||p.N.isMinimized())p.jb(!1);else if(C=g.Ax(p.T),C.width&&C.height){p.N.Lr(p.element,p.T);var N=p.N.dV().getPlayerSize().height;V=g.Ax(p.rV("ytp-promotooltip-container")).height;p.S?p.element.style.top=N-V-C.height-12+"px":p.Z||(N=p.N.ai().height-V-C.height-12,p.element.style.top=N+"px");N=p.rV("ytp-promotooltip-pointer");var H=g.I9(p.T, p.N.getRootNode()),X=Number(p.element.style.left.replace(/[^\d\.]/g,""));p=p.N.isFullscreen()?18:12;N.style.left=H.x-X+C.width/2-p+"px";N.style.top=V+"px"}else p.jb(!1)}; qd=function(p){g.L.call(this,{L:"button",i_:["ytp-replay-button","ytp-button"],X:{title:"Replay"},j:[g.k0()]});this.N=p;this.U(p,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.UZ(p.getPlayerStateObject());o$(this.N,this.element,this)}; Ie=function(p,C){C=C===void 0?240:C;g.L.call(this,{L:"button",i_:["ytp-button","ytp-search-button"],X:{title:"Search","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-search-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-search-title",Ak:"Search"}]});this.api=p;this.C=C;this.visible=!1;this.updateValue("icon",{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",B:"ytp-svg-fill",X:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); p.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.U(p,"appresize",this.T);this.U(p,"videodatachange",this.T);o$(p,this.element,this)}; g.bW=function(p,C,V,N){N=N===void 0?240:N;g.L.call(this,{L:"button",i_:["ytp-button","ytp-share-button"],X:{title:"Share","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:"Share"}]});this.api=p;this.T=C;this.V=V;this.S=N;this.C=this.visible=!1;this.tooltip=this.T.aI();p.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.U(p,"videodatachange",this.Pr); this.U(p,"videoplayerreset",this.Pr);this.U(p,"appresize",this.Pr);this.U(p,"presentingplayerstatechange",this.Pr);this.Pr();this.addOnDisposeCallback(g.A_(this.tooltip,this.element))}; gRV=function(p){var C=p.api.K(),V=p.api.getVideoData(),N=g.KI(C)&&g.nT(p.api)&&g.r(p.api.getPlayerStateObject(),128);C=C.V||C.disableSharing&&p.api.getPresentingPlayerType()!==2||!V.showShareButton||V.BK||N||g.lx(V)||p.C;N=p.api.dV().getPlayerSize().width;return!!V.videoId&&N>=p.S&&!C}; Wmy=function(p,C){C.name!=="InvalidStateError"&&C.name!=="AbortError"&&(C.name==="NotAllowedError"?(p.T.A6(),Cc(p.V,p.element,!1)):g.nm(C))}; rJV=function(p,C){var V=JO(),N=p.K();V={L:"div",B:"ytp-share-panel",X:{id:JO(),role:"dialog","aria-labelledby":V},j:[{L:"div",B:"ytp-share-panel-inner-content",j:[{L:"div",B:"ytp-share-panel-title",X:{id:V},Ak:"Share"},{L:"a",i_:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:N.Z,title:"Share 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"}},"Include playlist"]},{L:"div",B:"ytp-share-panel-loading-spinner",j:[mv()]},{L:"div",B:"ytp-share-panel-service-buttons",Ak:"{{buttons}}"},{L:"div",B:"ytp-share-panel-error",Ak:"An error occurred while retrieving sharing information. Please try again later."}]},{L:"button",i_:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},j:[g.yD()]}]};g.GC.call(this,p,V,250);var H=this;this.moreButton=null;this.api=p;this.tooltip=C.aI();this.V=[];this.W=this.rV("ytp-share-panel-inner-content"); this.closeButton=this.rV("ytp-share-panel-close");this.U(this.closeButton,"click",this.f4);this.addOnDisposeCallback(g.A_(this.tooltip,this.closeButton));this.S=this.rV("ytp-share-panel-include-playlist-checkbox");this.U(this.S,"click",this.Pr);this.T=this.rV("ytp-share-panel-link");this.addOnDisposeCallback(g.A_(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.U(this.T,"click",function(X){X.preventDefault();H.api.logClick(H.T);var d=H.api.getVideoUrl(!0,!0,!1,!1);d=QJS(H,d); g.Jh(d,H.api,X)&&H.api.Jk("SHARE_CLICKED")}); this.listen("click",this.Fc);this.U(p,"videoplayerreset",this.hide);this.U(p,"fullscreentoggled",this.onFullscreenToggled);this.U(p,"onLoopRangeChange",this.Ud);this.hide()}; GUj=function(p,C){BKu(p);for(var V=C.links||C.shareTargets,N=0,H={},X=0;X<V.length&&N<2;H={UC:void 0,H_:void 0},X++){H.UC=V[X];a:switch(H.UC.img||H.UC.iconId){case "facebook":var d={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 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", fill:"#39579b"}}]};break a;case "twitter":d={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 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", fill:"#01abf0"}}]};break a;default:d=null}if(d){var a=H.UC.sname||H.UC.serviceName;H.H_=new g.L({L:"a",i_:["ytp-share-panel-service-button","ytp-button"],X:{href:H.UC.url,target:"_blank",title:a},j:[d]});H.H_.listen("click",function(t){return function(c){var T=t.UC.url;if(g.o0(c)){var M=M===void 0?{}:M;M.target=M.target||"YouTube";M.width=M.width||"600";M.height=M.height||"600";var J=M;J||(J={});M=window;var S=T instanceof ke?T:g.Rc(typeof T.href!="undefined"?T.href:String(T));var D=self.crossOriginIsolated!== void 0,Z="strict-origin-when-cross-origin";window.Request&&(Z=(new Request("/")).referrerPolicy);var f=Z==="unsafe-url";Z=J.noreferrer;if(D&&Z){if(f)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");Z=!1}T=J.target||T.target;D=[];for(var q in J)switch(q){case "width":case "height":case "top":case "left":D.push(q+"="+J[q]);break;case "target":case "noopener":case "noreferrer":break;case "attributionsrc":D.push(q+(J[q]?"="+J[q]: ""));break;default:D.push(q+"="+(J[q]?1:0))}q=D.join(",");ey()&&M.navigator&&M.navigator.standalone&&T&&T!="_self"?(q=g.iK("A"),g.el(q,S),q.target=T,Z&&(q.rel="noreferrer"),((J=J.attributionsrc)||J==="")&&q.setAttribute("attributionsrc",J),J=document.createEvent("MouseEvent"),J.initMouseEvent("click",!0,!0,M,1),q.dispatchEvent(J),M={}):Z?(M=g.gV(M,"",T,q),J=g.xe(S),M&&(M.opener=null,J===""&&(J="javascript:''"),J=$e('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ Xn(J)+'">'),(S=M.document)&&S.write&&(S.write(LH(J)),S.close()))):((M=g.gV(M,S,T,q))&&J.noopener&&(M.opener=null),M&&J.noreferrer&&(M.opener=null));M&&(M.opener||(M.opener=window),M.focus());c.preventDefault()}}}(H)); H.H_.addOnDisposeCallback(g.A_(p.tooltip,H.H_.element));a==="Facebook"?p.api.createClientVe(H.H_.element,H.H_,164504):a==="Twitter"&&p.api.createClientVe(H.H_.element,H.H_,164505);p.U(H.H_.element,"click",function(t){return function(){p.api.logClick(t.H_.element)}}(H)); p.api.logVisibility(H.H_.element,!0);p.V.push(H.H_);N++}}var E=C.more||C.moreLink,l=new g.L({L:"a",i_:["ytp-share-panel-service-button","ytp-button"],j:[{L:"span",B:"ytp-share-panel-service-button-more",j:[{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},j:[{L:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{L:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:E,target:"_blank",title:"More"}});l.listen("click",function(t){var c=E;p.api.logClick(p.moreButton.element);c=QJS(p,c);g.Jh(c,p.api,t)&&p.api.Jk("SHARE_CLICKED")}); l.addOnDisposeCallback(g.A_(p.tooltip,l.element));p.api.createClientVe(l.element,l,164506);p.U(l.element,"click",function(){p.api.logClick(l.element)}); p.api.logVisibility(l.element,!0);p.V.push(l);p.moreButton=l;p.updateValue("buttons",p.V)}; QJS=function(p,C){var V={};g.KI(p.api.K())&&(g.FE(p.api,"addEmbedsConversionTrackingParams",[V]),C=g.GD(C,V));return C}; BKu=function(p){for(var C=g.F(p.V),V=C.next();!V.done;V=C.next())V=V.value,V.detach(),g.iP(V);p.V=[]}; AD=function(p){return p===void 0||p.startSec===void 0||p.endSec===void 0?!1:!0}; pLL=function(p,C){p.startSec+=C;p.endSec+=C}; jPu=function(p){PO.call(this,p);this.C=this.T=this.isContentForward=this.J=!1;Ck9(this);this.U(this.N,"changeProductsInVideoVisibility",this.H4S);this.U(this.N,"videodatachange",this.onVideoDataChange)}; VjY=function(p){p.D&&p.Wr.element.removeChild(p.D.element);p.D=void 0}; HBS=function(p,C){return C.map(function(V){var N,H;if((V=(N=g.n(V,N4e))==null?void 0:(H=N.thumbnail)==null?void 0:H.thumbnails)&&V.length!==0)return V[0].url}).filter(function(V){return V!==void 0}).map(function(V){V=new g.L({L:"img", B:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:V}});g.R(p,V);return V})}; XLy=function(p,C){p.isContentForward=C;g.Tz(p.badge.element,"ytp-suggested-action-badge-content-forward",C)}; oe=function(p){var C=p.isContentForward&&!p.N9();g.Tz(p.badge.element,"ytp-suggested-action-badge-preview-collapsed",C&&p.T);g.Tz(p.badge.element,"ytp-suggested-action-badge-preview-expanded",C&&p.C)}; kX=function(p,C,V){return new g.sz(p*1E3,C*1E3,{priority:9,namespace:V})}; d9Y=function(p){p.N.qt("shopping_overlay_visible");p.N.qt("shopping_overlay_preview_collapsed");p.N.qt("shopping_overlay_preview_expanded");p.N.qt("shopping_overlay_expanded")}; Ck9=function(p){p.U(p.N,g.Ez("shopping_overlay_visible"),function(){p.JE(!0)}); p.U(p.N,g.lG("shopping_overlay_visible"),function(){p.JE(!1)}); p.U(p.N,g.Ez("shopping_overlay_expanded"),function(){p.b_=!0;et(p)}); p.U(p.N,g.lG("shopping_overlay_expanded"),function(){p.b_=!1;et(p)}); p.U(p.N,g.Ez("shopping_overlay_preview_collapsed"),function(){p.T=!0;oe(p)}); p.U(p.N,g.lG("shopping_overlay_preview_collapsed"),function(){p.T=!1;oe(p)}); p.U(p.N,g.Ez("shopping_overlay_preview_expanded"),function(){p.C=!0;oe(p)}); p.U(p.N,g.lG("shopping_overlay_preview_expanded"),function(){p.C=!1;oe(p)})}; sPH=function(p){g.L.call(this,{L:"div",B:"ytp-shorts-title-channel",j:[{L:"a",B:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:p.K().Z,"aria-label":"{{channelLogoLabel}}"}},{L:"div",B:"ytp-shorts-title-expanded-heading",j:[{L:"div",B:"ytp-shorts-title-expanded-title",j:[{L:"a",Ak:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:p.K().Z,tabIndex:"0"}}]}]}]});var C=this;this.api=p;this.T=this.rV("ytp-shorts-title-channel-logo");this.channelName=this.rV("ytp-shorts-title-expanded-title"); this.subscribeButton=null;p.createClientVe(this.T,this,36925);this.U(this.T,"click",function(V){C.api.logClick(C.T);g.gV(window,iBy(C));V.preventDefault()}); p.createClientVe(this.channelName,this,37220);this.U(this.channelName,"click",function(V){C.api.logClick(C.channelName);g.gV(window,iBy(C));V.preventDefault()}); hGS(this);this.U(p,"videodatachange",this.Pr);this.U(p,"videoplayerreset",this.Pr);this.Pr()}; hGS=function(p){if(!p.api.K().qW){var C=p.api.getVideoData(),V=new g.ER("Subscribe",null,"Subscribed",null,!0,!1,C.eI,C.subscribed,"channel_avatar",null,p.api,!0);p.api.createServerVe(V.element,p);var N;p.api.setTrackingParams(V.element,((N=C.subscribeButtonRenderer)==null?void 0:N.trackingParams)||null);p.U(V.element,"click",function(){p.api.logClick(V.element)}); p.subscribeButton=V;g.R(p,p.subscribeButton);p.subscribeButton.u_(p.element)}}; iBy=function(p){var C=p.api.K(),V=p.api.getVideoData();V=g.GM(C)+V.kM;if(!g.KI(C))return V;C={};g.FE(p.api,"addEmbedsConversionTrackingParams",[C]);return g.GD(V,C)}; xX=function(p){g.GC.call(this,p,{L:"button",i_:["ytp-skip-intro-button","ytp-popup","ytp-button"],j:[{L:"div",B:"ytp-skip-intro-button-text",Ak:"Skip Intro"}]},100);var C=this;this.V=!1;this.T=new g.N8(function(){C.hide()},5E3); this.hE=this.I5=NaN;g.R(this,this.T);this.D=function(){C.show()}; this.W=function(){C.hide()}; this.S=function(){var V=C.N.getCurrentTime();V>C.I5/1E3&&V<C.hE/1E3&&C.show()}; this.U(this.N,"videodatachange",function(V,N){C.mL(V,N)}); this.U(this.element,"click",function(){C.N.seekTo(C.hE/1E3)}); this.hide()}; YX=function(p){g.L.call(this,{L:"button",i_:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay","data-priority":"9"},Ak:"{{icon}}"});this.N=p;this.listen("click",this.onClick);this.U(p,"airplayactivechange",this.Pr);this.U(p,"airplayavailabilitychange",this.Pr);this.Pr();o$(p,this.element,this)}; EOe=function(p){g.L.call(this,{L:"div",B:"ytp-gradient-bottom"});this.C=g.iK("CANVAS");this.T=this.C.getContext("2d",{willReadFrequently:!0});this.V=NaN;this.C.width=1;a$s(this,p.dV().getPlayerSize().height)}; a$s=function(p,C){if(p.T){C=Math.floor(C*.4);C=Math.max(C,47);var V=C+2;if(p.V!==V){p.V=V;p.C.height=V;p.T.clearRect(0,0,1,V);var N=p.T.createLinearGradient(0,2,0,2+C),H=C-42;N.addColorStop(0,"rgba(0, 0, 0, 0)");N.addColorStop(H/C,"rgba(0, 0, 0, 0.3)");N.addColorStop(1,"rgba(0, 0, 0, 0.68)");p.T.fillStyle=N;p.T.fillRect(0,2,1,C);p.element.style.height=V+"px";try{p.element.style.backgroundImage="url("+p.C.toDataURL()+")"}catch(X){}}}}; zI=function(p,C,V,N){g.L.call(this,{L:"div",B:"ytp-chapter-container",j:[{L:"button",i_:["ytp-chapter-title","ytp-button"],j:[{L:"span",X:{"aria-hidden":"true"},B:"ytp-chapter-title-prefix",Ak:"\u2022"},{L:"div",B:"ytp-chapter-title-content",Ak:"{{title}}",X:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:N}},{L:"div",B:"ytp-chapter-title-chevron",j:[{L:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",X:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z", fill:"#fff"}}]}]}]}]});this.N=p;this.S=C;this.W="";this.currentIndex=0;this.C=void 0;this.V=!0;this.Z=this.rV("ytp-chapter-container");this.T=this.rV("ytp-chapter-title");this.a$=this.rV("ytp-chapter-title-content");this.updateVideoData("newdata",this.N.getVideoData());this.U(p,"videodatachange",this.updateVideoData);this.U(this.Z,"click",this.onClick);this.U(p,g.Ez(V),this.m6);this.U(p,"onLoopRangeChange",this.m6);this.U(p,"innertubeCommand",this.onClickCommand);(p=g.qn(this.N.K()))&&g.Tz(this.T, "ytp-profile-page",!0);this.N.G("web_player_updated_entrypoint")&&g.Tz(this.element,"ytp-xs-mono-button-style",!0);g.KI(this.N.K())||p||o$(this.N,this.a$,this)}; Re=function(p,C){zI.call(this,p,C,"chapterCueRange","View chapter")}; l$a=function(p,C,V,N,H){var X=C.Fr/C.rows,d=Math.min(V/(C.A_/C.columns),N/X),a=C.A_*d,E=C.Fr*d;a=Math.floor(a/C.columns)*C.columns;E=Math.floor(E/C.rows)*C.rows;var l=a/C.columns,t=E/C.rows,c=-C.column*l,T=-C.row*t;H&&X<=45&&(t-=1/d);l-=2/d;p=p.style;p.width=l+"px";p.height=t+"px";H||(N=(N-t)/2,V=(V-l)/2,p.marginTop=Math.floor(N)+"px",p.marginBottom=Math.ceil(N)+"px",p.marginLeft=Math.floor(V)+"px",p.marginRight=Math.ceil(V)+"px");p.background="url("+C.url+") "+c+"px "+T+"px/"+a+"px "+E+"px"}; nZ=function(p,C){g.L.call(this,{L:"div",B:"ytp-storyboard-framepreview",j:[{L:"div",B:"ytp-storyboard-framepreview-timestamp",Ak:"{{timestamp}}"},{L:"div",B:"ytp-storyboard-framepreview-img"}]});this.api=p;this.S=this.rV("ytp-storyboard-framepreview-img");this.C=null;this.V=NaN;this.events=new g.Rr(this);this.T=new g.a0(this,100);g.R(this,this.events);g.R(this,this.T);this.U(this.api,"presentingplayerstatechange",this.W);C&&this.U(this.element,"click",function(){C.wc()})}; tja=function(p,C){var V=!!p.C;p.C=C;p.C?(V||(p.events.U(p.api,"videodatachange",function(){tja(p,p.api.C$())}),p.events.U(p.api,"progresssync",p.Nn),p.events.U(p.api,"appresize",p.D)),p.V=NaN,cYs(p),p.T.show(200)):(V&&g.Am(p.events),p.T.hide(),p.T.stop())}; cYs=function(p){var C=p.C,V=p.api.getCurrentTime(),N=p.api.dV().getPlayerSize(),H=ys(C,N.width);H=sHe(C,H,V);p.update({timestamp:g.A7(V)});H!==p.V&&(p.V=H,izy(C,H,N.width),C=XYe(C,H,N.width),l$a(p.S,C,N.width,N.height))}; T4H=function(p,C){g.L.call(this,{L:"button",i_:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Ak:"{{icon}}"});this.N=p;this.C=C;this.message=null;this.T=g.A_(this.C.aI(),this.element);this.V=new g.N8(this.b4,2E3,this);g.R(this,this.V);this.U(p,"fullscreentoggled",this.ze);this.U(p,"presentingplayerstatechange",this.Pr);this.U(p,"resize",this.Pr);this.listen("click",this.onClick);g.Sz()&& (C=this.N.dV(),this.U(C,wpj(),this.Hy),this.U(C,PfH(document),this.V2));p.K().Hc||p.K().J||this.disable();p.createClientVe(this.element,this,139117);this.Pr();this.ze(p.isFullscreen())}; e4=function(p,C){g.L.call(this,{L:"button",i_:["ytp-button","ytp-jump-button"],X:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},j:[C>0?{L:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",i_:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {L:"text",i_:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{L:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",i_:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {L:"text",i_:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var V=this;this.N=p;this.T=C;this.C=new g.N8(function(){V.V?(V.V=!1,V.C.start()):V.element.classList.remove("ytp-jump-spin","backwards")},250); this.V=!1;(C=C>0)?this.N.createClientVe(this.element,this,36843):this.N.createClientVe(this.element,this,36844);var N=g.Ks(C?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.T).toString()});this.update({title:N,"data-title-no-tooltip":N,"aria-keyshortcuts":C?"\u2192":"\u2190"});this.S=this.element.querySelector(".ytp-jump-button-text");this.S.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);o$(p,this.element, this)}; Mjv=function(p,C){C?p.element.classList.add("ytp-jump-button-enabled"):p.element.classList.remove("ytp-jump-button-enabled");p.N.logVisibility(p.element,C);p.N.B6()}; Pz=function(p,C){zI.call(this,p,C,"timedMarkerCueRange","View key moments");this.U(p,g.lG("timedMarkerCueRange"),this.m6);this.U(p,"updatemarkervisibility",this.updateVideoData)}; JYV=function(p){var C,V=(C=p.N.getVideoData())==null?void 0:C.Qn;if(V)for(p=p.S.Ga,V=g.F(V),C=V.next();!C.done;C=V.next())if(C=p[C.value]){var N=void 0,H=void 0,X=void 0;if(((N=C.onTap)==null?void 0:(H=N.innertubeCommand)==null?void 0:(X=H.changeEngagementPanelVisibilityAction)==null?void 0:X.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return C}}; wu=function(p){var C=p.G("web_enable_pip_on_miniplayer");g.L.call(this,{L:"button",i_:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},j:[C?{L:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},j:[{L:"g",X:{transform:"translate(96, -96) scale(0.8)"},j:[{L:"path",TB:!0,X:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}: I31()]});this.N=p;this.visible=!1;this.listen("click",this.onClick);this.U(p,"fullscreentoggled",this.Pr);this.updateValue("title",g.kj(p,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});o$(p,this.element,this);p.createClientVe(this.element,this,62946);this.Pr()}; m99=function(p,C,V){V=V===void 0?!1:V;g.L.call(this,{L:"button",i_:["ytp-mute-button","ytp-button"],X:p.K().Y_?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Ak:"{{icon}}"});this.N=p;this.Sa=V;this.T=null;this.S=this.Z=this.W=this.b_=NaN;this.sY=this.D=null;this.V=[];this.C=[];this.visible=!1;this.J=null;V=this.N.K();this.updateValue("icon",zB());this.tooltip=C.aI();this.T=new g.mz({L:"svg",X:{height:"100%", version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"defs",j:[{L:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},j:[{L:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{L:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{L:"path",B:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{L:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},j:[{L:"path",B:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]}, {L:"path",TB:!0,i_:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{L:"path",TB:!0,i_:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.R(this,this.T);this.D=this.T.rV("ytp-svg-volume-animation-speaker"); this.sY=this.D.getAttribute("d");this.V=g.pe("ytp-svg-volume-animation-mover",this.T.element);this.C=g.pe("ytp-svg-volume-animation-hider",this.T.element);this.Vn=new MA;g.R(this,this.Vn);this.a$=new MA;g.R(this,this.a$);this.listen("click",this.SRS);this.U(p,"appresize",this.Z2);this.U(p,"onVolumeChange",this.onVolumeChange);var N=null;V.Y_?this.addOnDisposeCallback(g.A_(C.aI(),this.element)):(C="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/), N=new g.GC(p,{L:"span",i_:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},j:[C[0],{L:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:V.Z},Ak:C[2]},C[4]]},100,!0),g.R(this,N),N.hide(),N.subscribe("show",function(H){p.Nu(N,H)}),g.LT(p,N.element,4)); this.message=N;p.createClientVe(this.element,this,28662);this.Z2(p.dV().getPlayerSize());this.setVolume(p.getVolume(),p.isMuted())}; S7L=function(p,C){p.b_=C;var V=p.sY;C&&(V+=w$V(vOH,F8a,C));p.D.setAttribute("d",V)}; K8S=function(p,C){p.Z=C;for(var V=20*C,N=0;N<p.V.length;N++)p.V[N].setAttribute("transform","translate("+V+", "+V+")");var H;C===1?H=zB():H=p.T;for(V=0;V<p.C.length;V++){N=p.C[V];var X=void 0;if((X=N)==null?0:X.style)N.style.display=C===0?"none":""}H!==p.J&&(p.updateValue("icon",H),p.J=H)}; g.$X=function(p,C){g.L.call(this,{L:"button",i_:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Ak:"{{icon}}"});this.N=p;this.T=null;this.transition=new MA;this.tooltip=C.aI();g.R(this,this.transition);p.createClientVe(this.element,this,36842);p.G("embeds_use_parent_visibility_in_ve_logging")?p.logVisibility(this.element,this.Y):p.logVisibility(this.element,!0);this.U(p,"fullscreentoggled",this.onVideoDataChange);this.U(p, "presentingplayerstatechange",this.onStateChange);this.U(p,"videodatachange",this.onVideoDataChange);this.UZ(p.getPlayerStateObject());this.listen("click",this.u6,this);this.addOnDisposeCallback(g.A_(C.aI(),this.element))}; D9S=function(p){switch(p){case 1:return oS();case 2:return yms();case 3:return g.k0();case 4:return AmY();default:return null}}; g.LZ=function(p,C,V){g.L.call(this,{L:"a",i_:[V?"ytp-next-button":"ytp-prev-button","ytp-button"],X:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},j:[V?IS():bKv()]});var N=this;this.N=p;this.T=V;this.playlist=this.videoData=null;this.D= !1;this.S=this.W=this.C=null;this.V=!1;this.tooltip=C.aI();V?p.createClientVe(this.element,this,6193):p.createClientVe(this.element,this,6194);this.U(p,"fullscreentoggled",this.onVideoDataChange);this.U(p,"videodatachange",this.onVideoDataChange);this.U(p,"onPlaylistUpdate",this.onVideoDataChange);this.U(p,"onLoopRangeChange",this.onVideoDataChange);this.T||this.U(p,"appresize",this.jR);this.U(p,"mdxpreviousnextchange",function(){u8V(N);N.jR()}); this.onVideoDataChange()}; ZBL=function(p){p.playlist&&p.playlist.unsubscribe("shuffle",p.onVideoDataChange,p)}; U9y=function(p){return!!p.playlist&&!p.T&&!!p.videoData&&!p.videoData.isLivePlayback&&p.N.getCurrentTime()>=3&&p.N.getPresentingPlayerType()!==2}; f$1=function(p){var C=R$(p.N.Tk());return C?p.T?C.bT():C.gj():!1}; u8V=function(p){var C={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},V=p.playlist!=null&&p.playlist.bT();V=g.nT(p.N)&&(!p.T||V);var N=p.T&&g.gb(p.N),H=f$1(p),X=p.T&&p.N.getPresentingPlayerType()===5,d=g.kj(p.N,"Next","SHIFT+n"),a=g.kj(p.N,"Previous","SHIFT+p");if(X)C.title="Start video";else if(p.V)C.title="Replay";else if(V){var E=null;p.playlist&&(E=g.OC(p.playlist,p.T?StX(p.playlist):KPS(p.playlist)));if(E){if(E.videoId){var l=p.playlist.listId; C.url=p.N.K().getVideoUrl(E.videoId,l?l.toString():void 0)}C.text=E.title;C.duration=E.lengthText?E.lengthText:E.lengthSeconds?g.A7(E.lengthSeconds):null;C.preview=E.TW("mqdefault.jpg")}p.T?(C.title=d,C["data-title-no-tooltip"]="Next",C["aria-keyshortcuts"]="SHIFT+n"):(C.title=a,C["data-title-no-tooltip"]="Previous",C["aria-keyshortcuts"]="SHIFT+p")}else if(N){if(a=(E=p.videoData)==null?void 0:g.NI(E))C.url=a.a8(),C.text=a.title,C.duration=a.lengthText?a.lengthText:a.lengthSeconds?g.A7(a.lengthSeconds): null,C.preview=a.TW("mqdefault.jpg");C.title=d;C["data-title-no-tooltip"]="Next";C["aria-keyshortcuts"]="SHIFT+n"}C.disabled=!N&&!V&&!H&&!X;p.update(C);p.D=!!C.url;N||V||p.V||H||X?p.C||(p.C=g.A_(p.tooltip,p.element),p.W=p.listen("click",p.onClick,p)):p.C&&(p.C(),p.C=null,p.rY(p.W),p.W=null);p.tooltip.B6()}; yYj=function(p,C){g.L.call(this,{L:"div",B:"ytp-fine-scrubbing",j:[{L:"div",B:"ytp-fine-scrubbing-draggable",j:[{L:"div",B:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{L:"div",X:{"aria-hidden":"true"},B:"ytp-fine-scrubbing-cursor"},{L:"div",B:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"}, Ak:"{{seekTime}}"},{L:"div",B:"ytp-fine-scrubbing-play",j:[oS()],X:{title:"Play from this position",role:"button"}},{L:"div",B:"ytp-fine-scrubbing-dismiss",j:[g.yD()],X:{title:"Exit precise seeking",role:"button"}}]});var V=this;this.api=p;this.W=this.rV("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.rV("ytp-fine-scrubbing-dismiss");this.sY=this.rV("ytp-fine-scrubbing-draggable");this.playButton=this.rV("ytp-fine-scrubbing-play");this.thumbnails=[];this.C=[];this.vr=this.T=0;this.Wr=void 0; this.a$=NaN;this.Ga=this.Z=this.V=this.J=0;this.S=[];this.interval=this.frameCount=0;this.D=160;this.scale=1;this.Y_=0;this.isEnabled=this.Sa=!1;OBX(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.A_(C,this.dismissButton));this.addOnDisposeCallback(g.A_(C,this.playButton));this.Vn=new g.Hx(this.sY,!0);this.Vn.subscribe("dragstart",this.FW,this);this.Vn.subscribe("dragmove",this.XW,this);this.Vn.subscribe("dragend",this.cT,this);this.U(p,"SEEK_COMPLETE",this.M$);p.G("web_fix_fine_scrubbing_false_play")&& this.U(p,"rootnodemousedown",function(N){V.b_=N}); this.W.addEventListener("keydown",function(){}); g.R(this,this.Vn);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; OBX=function(p,C){var V=g.A7(C),N=g.Ks("Seek to $PROGRESS",{PROGRESS:g.A7(C,!0)});p.update({ariamin:0,ariamax:Math.floor(p.api.getDuration()),arianow:Math.floor(C),arianowtext:N,seekTime:V})}; q7V=function(p){p.a$=NaN;p.Z=0;p.J=p.V}; AY9=function(p){var C=p.api.C$();if(C){var V=90*p.scale,N=ys(C,160*p.scale);if(C=C.levels[N]){p.D=C.width;if(!p.S.length){N=[];for(var H=qF(C,C.BA()),X=C.columns*C.rows,d=C.frameCount,a=0;a<=H;a++)for(var E=d<X?Math.ceil(d/C.columns):C.rows,l=0;l<C.rows;l++){var t=d<C.columns?d:C.columns,c={url:C.i9(a),column:0,columns:t,row:l,rows:E,A_:C.width*t,Fr:C.height*E};N.push(c);d-=t;if(d<=1)break}p.S=N;p.frameCount=C.aV();p.interval=C.T/1E3||p.api.getDuration()/p.frameCount}for(;p.thumbnails.length>p.S.length;)N= void 0,(N=p.thumbnails.pop())==null||N.dispose();for(;p.thumbnails.length<p.S.length;)N=new I$S,p.thumbnails.push(N),N.u_(p.W),g.R(p,N);for(N=0;N<p.S.length;N++)H=p.thumbnails[N].element,X=p.S[N],d=p.D*p.scale,a=X.Fr/X.rows,E=V/a,H.style.background="url("+X.url+") 0 "+-X.row*X.Fr/X.rows*E+"px/"+d*C.columns+"px "+a*X.rows*E+"px",H.style.width=d*X.columns+"px",H.style.height=V+"px";gu(p,p.api.getCurrentTime());for(V=p.api.getVideoData().Y9;p.C.length>V.length;)N=void 0,(N=p.C.pop())==null||N.dispose(); for(;p.C.length<V.length;)N=new bB9,p.C.push(new bB9),g.R(p,N);for(N=0;N<V.length;N++)H=V[N],p.C[N].update({chapterTitle:H.title}),H=Math.round(H.startTime/C.T),X=Math.floor(H/C.rows),g.K2(p.C[N].element,"transform","translateX("+H%C.rows*p.D*p.scale+"px)"),X<p.thumbnails.length&&p.thumbnails[X]&&p.C[N].u_(p.thumbnails[X].element);p.Sa=!0}}}; gu=function(p,C){p.b_&&(p.b_.sW=!0);p.update({seekTime:g.A7(C)});var V=p.D*p.scale;C=C<p.interval/2?-C*V/p.interval*2+p.T/2:-C*V/p.interval-V/2+p.T/2;C=g.J9(C,oO9(p),p.T/2);p.J=C;p.V=p.J;g.K2(p.sY,"transform","translateX("+(p.J-p.T/2)+"px)");g.K2(p.sY,"padding","0px "+p.T/2+"px");g.K2(p.W,"position","relative")}; k_Q=function(p,C){var V=p.D*p.scale;C-=p.T/2;return C>-V?-C/V*p.interval*.5:-(C+V/2)/V*p.interval}; oO9=function(p){return-((p.W.offsetWidth||(p.frameCount-1)*p.D*p.scale)-p.T/2)}; I$S=function(){g.L.call(this,{L:"div",B:"ytp-fine-scrubbing-thumbnail"})}; bB9=function(){g.L.call(this,{L:"div",B:"ytp-fine-scrubbing-chapter-title",j:[{L:"div",B:"ytp-fine-scrubbing-chapter-title-content",Ak:"{{chapterTitle}}"}]})}; x9L=function(p){g.L.call(this,{L:"div",B:"ytp-heat-map-chapter",j:[{L:"svg",B:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},j:[{L:"defs",j:[{L:"clipPath",X:{id:"{{id}}"},j:[{L:"path",B:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{L:"rect",B:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{L:"rect",B:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white", "fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{L:"rect",B:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=p;this.D=this.rV("ytp-heat-map-svg");this.V=this.rV("ytp-heat-map-path");this.W=this.rV("ytp-heat-map-graph");this.S=this.rV("ytp-heat-map-play");this.C=this.rV("ytp-heat-map-hover");this.GN=!1;this.T=60;p=""+g.$H(this);this.update({id:p});p="url(#"+p+")";this.W.setAttribute("clip-path",p);this.S.setAttribute("clip-path",p);this.C.setAttribute("clip-path", p);this.api.G("web_heat_map_v2")&&g.Ed(this.api.getRootNode(),"ytp-heat-map-v2")}; Y7s=function(p,C){C>0&&(p.T=C,p.D.style.height=p.T+"px")}; Wz=function(){g.L.call(this,{L:"div",B:"ytp-chapter-hover-container",j:[{L:"div",B:"ytp-progress-bar-padding"},{L:"div",B:"ytp-progress-list",j:[{L:"div",i_:["ytp-play-progress","ytp-swatch-background-color"]},{L:"div",B:"ytp-progress-linear-live-buffer"},{L:"div",B:"ytp-load-progress"},{L:"div",B:"ytp-hover-progress"},{L:"div",B:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.S=this.rV("ytp-progress-linear-live-buffer");this.V=this.rV("ytp-ad-progress-list"); this.W=this.rV("ytp-load-progress");this.D=this.rV("ytp-play-progress");this.C=this.rV("ytp-hover-progress");this.T=this.rV("ytp-chapter-hover-container")}; Q1=function(p,C){g.K2(p.T,"width",C)}; zGv=function(p,C){g.K2(p.T,"margin-right",C+"px")}; RGa=function(){this.C=this.position=this.V=this.T=this.S=this.width=NaN}; nOX=function(){g.L.call(this,{L:"div",B:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Bz=function(p,C){g.Sp.call(this,{L:"div",B:"ytp-progress-bar-container",X:{"aria-disabled":"true"},j:[{L:"div",i_:["ytp-heat-map-container"],j:[{L:"div",B:"ytp-heat-map-edu"}]},{L:"div",i_:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},j:[{L:"div",B:"ytp-chapters-container"},{L:"div",B:"ytp-timed-markers-container"},{L:"div",B:"ytp-clip-start-exclude"}, {L:"div",B:"ytp-clip-end-exclude"},{L:"div",B:"ytp-scrubber-container",j:[{L:"div",i_:["ytp-scrubber-button","ytp-swatch-background-color"],j:[{L:"div",B:"ytp-scrubber-pull-indicator"},{L:"img",i_:["ytp-decorated-scrubber-button"]}]}]}]},{L:"div",i_:["ytp-fine-scrubbing-container"],j:[{L:"div",B:"ytp-fine-scrubbing-edu"}]},{L:"div",B:"ytp-bound-time-left",Ak:"{{boundTimeLeft}}"},{L:"div",B:"ytp-bound-time-right",Ak:"{{boundTimeRight}}"},{L:"div",B:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},Ak:"{{clipstarticon}}"}, {L:"div",B:"ytp-clip-end",X:{title:"{{clipendtitle}}"},Ak:"{{clipendicon}}"}]});this.api=p;this.W1=!1;this.FO=this.FT=this.R$=this.J=this.XT=0;this.kt=null;this.vr={};this.Hc={};this.clipEnd=Infinity;this.kM=this.rV("ytp-clip-end");this.wy=new g.Hx(this.kM,!0);this.Q$=this.rV("ytp-clip-end-exclude");this.qW=this.rV("ytp-clip-start-exclude");this.clipStart=0;this.ER=this.rV("ytp-clip-start");this.VZ=new g.Hx(this.ER,!0);this.a$=this.Qn=0;this.progressBar=this.rV("ytp-progress-bar");this.X$={};this.Ga= {};this.YM=this.rV("ytp-chapters-container");this.jZ=this.rV("ytp-timed-markers-container");this.T=[];this.D=[];this.iW={};this.hE=null;this.sY=-1;this.qo=this.Vn=0;this.Z=null;this.cV=this.rV("ytp-scrubber-button");this.va=this.rV("ytp-decorated-scrubber-button");this.qn=this.rV("ytp-scrubber-container");this.KS=new g.Fn;this.i8=new RGa;this.V=new PE(0,0);this.Sb=null;this.S=this.f9=!1;this.d6=null;this.b_=this.rV("ytp-heat-map-container");this.I6=this.rV("ytp-heat-map-edu");this.W=[];this.heatMarkersDecorations= [];this.UY=this.rV("ytp-fine-scrubbing-container");this.RN=this.rV("ytp-fine-scrubbing-edu");this.C=void 0;this.Sa=this.QZ=this.Wr=!1;this.tooltip=C.aI();this.addOnDisposeCallback(g.A_(this.tooltip,this.kM));g.R(this,this.wy);this.wy.subscribe("hoverstart",this.s3,this);this.wy.subscribe("hoverend",this.xf,this);this.U(this.kM,"click",this.XI);this.addOnDisposeCallback(g.A_(this.tooltip,this.ER));g.R(this,this.VZ);this.VZ.subscribe("hoverstart",this.s3,this);this.VZ.subscribe("hoverend",this.xf,this); this.U(this.ER,"click",this.XI);eG9(this);this.U(p,"resize",this.OR);this.U(p,"presentingplayerstatechange",this.NH);this.U(p,"videodatachange",this.mL);this.U(p,"videoplayerreset",this.L_);this.U(p,"cuerangesadded",this.uTk);this.U(p,"cuerangesremoved",this.B7a);this.U(p,"onLoopRangeChange",this.yc);this.U(p,"innertubeCommand",this.onClickCommand);this.U(p,g.Ez("timedMarkerCueRange"),this.H1$);this.U(p,"updatemarkervisibility",this.yB);this.U(p,"serverstitchedvideochange",this.mn$);this.updateVideoData(p.getVideoData(), !0);this.yc(p.getLoopRange());ru(this)&&!this.C&&(this.C=new yYj(this.api,this.tooltip),p=g.qK(this.element).x||0,this.C.OR(p,this.J),this.C.u_(this.UY),g.R(this,this.C),this.U(this.C.dismissButton,"click",this.wc),this.U(this.C.playButton,"click",this.lH),this.U(this.C.element,"dblclick",this.lH));this.api.createClientVe(this.b_,this,139609,!0);this.api.createClientVe(this.I6,this,140127,!0);this.api.createClientVe(this.RN,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; eG9=function(p){if(p.T.length===0){var C=new Wz;p.T.push(C);g.R(p,C);C.u_(p.YM,0)}for(;p.T.length>1;)p.T.pop().dispose();Q1(p.T[0],"100%");p.T[0].startTime=0;p.T[0].title=""}; Pku=function(p){var C=C===void 0?NaN:C;var V=new x9L(p.api);p.W.push(V);g.R(p,V);V.u_(p.b_);C>=0&&(V.element.style.width=C+"px")}; wLa=function(p){for(;p.D.length;)p.D.pop().dispose()}; L8H=function(p){var C,V,N,H,X;return(X=g.n((H=g.n((C=p.getWatchNextResponse())==null?void 0:(V=C.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:N.decoratedPlayerBarRenderer,v7))==null?void 0:H.playerBar,$9L))==null?void 0:X.chapters}; gOu=function(p){for(var C=p.T,V=[],N=0;N<C.length;N++)if(!isNaN(C[N].startTime)){var H=C[N].startTime;H=new g.sz(H,N===C.length-1?Infinity:C[N+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+H});V.push(H)}p.api.qt("chapterCueRange");p.api.d7(V)}; jn1=function(p,C){var V,N=(V=p.X$[C])==null?void 0:V.chapters;N&&(W81(p,N),p.api.getVideoData().Y9=p.T,gOu(p));var H;if((V=(H=p.X$[C])==null?void 0:H.markers)&&C!=="HEATSEEKER"){wLa(p);H=g.F(V);for(V=H.next();!V.done;V=H.next())if(N=V.value,V=new nOX,N=g.n(N,g.QPy)){var X=void 0;V.title=((X=N.title)==null?void 0:X.simpleText)||"";X=void 0;V.timeRangeStartMillis=(X=N.timeRangeStartMillis)!=null?X:NaN;var d=X=void 0;V.onActiveCommand=(d=(X=N)==null?void 0:X.onActiveCommand)!=null?d:void 0;rY1(p,V)}B4a(p, p.D);H=p.D;V=p.iW;N=[];for(X=0;X<H.length;X++)!isNaN(H[X].timeRangeStartMillis)&&H[X].onActiveCommand&&(d=qU9(H[X].timeRangeStartMillis,X===H.length-1?Infinity:H[X+1].timeRangeStartMillis),N.push(d),V[d.id]=H[X].onActiveCommand);p.api.d7(N)}var a;if(C=g.n((a=p.X$[C])==null?void 0:a.heatmap,G_1)){a=C.heatMarkers||[];var E;H=(E=C.minHeightDp)!=null?E:0;var l;E=(l=C.maxHeightDp)!=null?l:60;l=p.T.length;V=null;for(N=0;N<l;N++){d=p.T[N].startTime;var t=N===l-1?Infinity:p.T[N+1].startTime;N===p.W.length&& Pku(p);X=[];V&&X.push(V);for(var c=g.F(a),T=c.next();!T.done;T=c.next()){T=T.value;var M=void 0,J=void 0,S=(J=(M=g.n(T,pM9))==null?void 0:M.timeRangeStartMillis)!=null?J:-1;S>=d&&S<=t&&X.push(T)}E>0&&(p.b_.style.height=E+"px");d=p.W[N];t=X;T=H;J=E;S=N===0;S=S===void 0?!1:S;Y7s(d,J);c=t;M=d.T;S=S===void 0?!1:S;var D=1E3/c.length,Z=[];Z.push({x:0,y:100});for(var f=0;f<c.length;f++){var q=void 0,A=((q=g.n(c[f],pM9))==null?void 0:q.heatMarkerIntensityScoreNormalized)||0;q=(f+.5)*D;A=100-g.J9(A*100,T/ M*100,J/M*100);f!==0||S||Z.push({x:0,y:A});Z.push({x:q,y:A});f===c.length-1&&Z.push({x:1E3,y:A})}Z.push({x:1E3,y:100});c=Z;t=t.length===0?"":VFy(c);d.V.setAttribute("d",t);d.GN=t!=="";g.Tz(d.api.getRootNode(),"ytp-heat-map",d.GN);g.Tz(d.api.getRootNode(),"ytp-heat-map-played_bar",d.api.G("web_player_heat_map_played_bar")&&t!=="");X.length>0&&(V=X[X.length-1])}g.GI(p);a=[];C=g.F(C.heatMarkersDecorations||[]);for(H=C.next();!H.done;H=C.next())if(H=g.n(H.value,CJQ))E=H.label,N=V=l=void 0,a.push({visibleTimeRangeStartMillis:(l= H.visibleTimeRangeStartMillis)!=null?l:-1,visibleTimeRangeEndMillis:(V=H.visibleTimeRangeEndMillis)!=null?V:-1,decorationTimeMillis:(N=H.decorationTimeMillis)!=null?N:NaN,label:E?g.uq(E):""});p.heatMarkersDecorations=a}}; rY1=function(p,C){p.D.push(C);g.R(p,C);C.u_(p.jZ,p.jZ.children.length)}; B4a=function(p,C){C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;var N=pv(p,V.timeRangeStartMillis/(p.V.T*1E3),Cv(p));g.K2(V.element,"transform","translateX("+N+"px) scaleX(0.6)")}}; W81=function(p,C){var V=0,N=!1;C=g.F(C);for(var H=C.next();!H.done;H=C.next()){H=H.value;if(g.n(H,V$L)){H=g.n(H,V$L);var X={startTime:NaN,title:null,onActiveCommand:void 0},d=H.title;X.title=d?g.uq(d):"";d=H.timeRangeStartMillis;d!=null&&(X.startTime=d);X.onActiveCommand=H.onActiveCommand;H=X;V===0&&H.startTime!==0&&(p.T[V].startTime=0,p.T[V].title="",p.T[V].onActiveCommand=H.onActiveCommand,V++,N=!0);p.T.length<=V&&(X=new Wz,p.T.push(X),g.R(p,X),X.u_(p.YM,p.YM.children.length));p.T[V].startTime= H.startTime;p.T[V].title=H.title?H.title:"";p.T[V].onActiveCommand=H.onActiveCommand;p.T[V].index=N?V-1:V}V++}for(;V<p.T.length;)p.T.pop().dispose();g.GI(p);jD(p)}; g.GI=function(p){p.Vn=p.T.length-1;p.qo=0;N5u(p,!0)&&N5u(p,!1);for(var C=0,V=0;V<p.T.length;V++)if(p.T[V].width===0){if(V===p.T.length-1)for(var N=p.T.length-1;N>=0;N--)if(p.T[N].width>0){zGv(p.T[N],0);var H=Math.floor(p.T[N].width);p.T[N].width=H;Q1(p.T[N],H+"px");break}p.T[V].width=0;Q1(p.T[V],"0")}else V===p.T.length-1?(N=Math.floor(p.T[V].width+C),p.T[V].width=N,Q1(p.T[V],N+"px")):(C=p.T[V].width+C,N=Math.round(C),C-=N,p.T[V].width=N,Q1(p.T[V],N+"px"));V=0;if(p.W.length===p.T.length)for(C=0;C< p.W.length;C++)N=p.T[C].width,p.W[C].element.style.width=N+"px",p.W[C].element.style.left=V+"px",V+=N+(p.S?3:2)}; N5u=function(p,C){var V=0,N=!1,H=p.T.length,X=p.V.T*1E3;X===0&&(X=p.api.getProgressState().seekableEnd*1E3);if(X>0&&p.J>0){for(var d=p.J-(p.S?3:2)*p.Vn,a=p.qo===0?3:d*p.qo,E=g.F(p.T),l=E.next();!l.done;l=E.next())l.value.width=0;for(;V<H;){E=X-p.T[V].startTime;V<H-1&&(E=p.T[V+1].startTime-p.T[V].startTime,zGv(p.T[V],p.S?3:2));g.Tz(p.T[V].T,"ytp-exp-chapter-hover-container",p.T.length>1);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:c<t.T.length-1&&(t.T[c+1].width+=l);zGv(t.T[c],0);C&&(p.Vn--,E/X>p.qo&&(p.qo=E/X),N=!0)}V++}}return N}; jD=function(p){if(p.J){var C=p.api.getProgressState(),V=p.api.getVideoData();if(!(V&&V.enableServerStitchedDai&&V.enablePreroll)||isFinite(C.current)){var N;if(((N=p.api.getVideoData())==null?0:E5(N))&&C.airingStart&&C.airingEnd)var H=VK(p,C.airingStart,C.airingEnd);else if(p.api.getPresentingPlayerType()===2&&p.api.K().G("show_preskip_progress_bar_for_skippable_ads")){var X,d,a;H=(V=(H=p.api.getVideoData())==null?void 0:(X=H.getPlayerResponse())==null?void 0:(d=X.playerConfig)==null?void 0:(a=d.webPlayerConfig)== null?void 0:a.skippableAdProgressBarDuration)?VK(p,C.seekableStart,V/1E3):VK(p,C.seekableStart,C.seekableEnd)}else H=VK(p,C.seekableStart,C.seekableEnd);X=wk(H,C.loaded,0);C=wk(H,C.current,0);d=p.V.C!==H.C||p.V.T!==H.T;p.V=H;Nb(p,C,X);d&&H9u(p);XMQ(p)}}}; VK=function(p,C,V){return d2e(p)?new PE(Math.max(C,p.Sb.startTimeMs/1E3),Math.min(V,p.Sb.endTimeMs/1E3)):new PE(C,V)}; i99=function(p,C){var V;if(((V=p.Sb)==null?void 0:V.type)==="repeatChapter"||(C==null?void 0:C.type)==="repeatChapter")C&&(C=p.T[KZ(p.T,C.startTimeMs)],g.Tz(C.T,"ytp-repeating-chapter",!1)),p.Sb&&(C=p.T[KZ(p.T,p.Sb.startTimeMs)],g.Tz(C.T,"ytp-repeating-chapter",!0)),p.T.forEach(function(N){g.Tz(N.T,"ytp-exp-chapter-hover-container",!p.Sb)})}; Xp=function(p,C){var V=p.V;V=V.C+C.C*V.getLength();if(p.T.length>1){V=H$(p,C.V,!0);for(var N=0,H=0;H<V;H++)p.T[H].width>0&&(N+=p.T[H].width,N+=p.S?3:2);V=(p.T[V].startTime+(C.V-N)/p.T[V].width*((V===p.T.length-1?p.V.T*1E3:p.T[V+1].startTime)-p.T[V].startTime))/1E3||0}return V}; dR=function(p,C,V,N,H){C=C<0?0:Math.floor(Math.min(C,p.api.getDuration())*1E3);V=V<0?0:Math.floor(Math.min(V,p.api.getDuration())*1E3);p=p.progressBar.visualElement;N={seekData:{startMediaTimeMs:C,endMediaTimeMs:V,seekSource:N}};(C=g.bz())&&g.NU(Xi)(void 0,C,p,H,N,void 0)}; hdj=function(p,C,V){return V>=p.T.length?!1:Math.abs(C-p.T[V].startTime/1E3)/p.V.T*(p.J-(p.S?3:2)*p.Vn)<4}; H9u=function(p){p.cV.style.removeProperty("height");for(var C=g.F(Object.keys(p.vr)),V=C.next();!V.done;V=C.next())snu(p,V.value);ih(p);Nb(p,p.a$,p.Qn)}; Cv=function(p){var C=p.KS.x;C=g.J9(C,0,p.J);p.i8.update(C,p.J);return p.i8}; sa=function(p){return(p.S?135:90)-ho(p)}; ho=function(p){var C=48,V=p.api.K();p.S?C=54:g.KI(V)&&!V.C&&(C=40);return C}; Nb=function(p,C,V){p.a$=C;p.Qn=V;var N=Cv(p),H=p.V.T;var X=p.V;X=X.C+p.a$*X.getLength();var d=g.Ks("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.A7(X,!0),DURATION:g.A7(H,!0)}),a=KZ(p.T,X*1E3);a=p.T[a].title;p.update({ariamin:Math.floor(p.V.C),ariamax:Math.floor(H),arianow:Math.floor(X),arianowtext:a?a+" "+d:d});H=p.clipStart;X=p.clipEnd;p.Sb&&p.api.getPresentingPlayerType()!==2&&(H=p.Sb.startTimeMs/1E3,X=p.Sb.endTimeMs/1E3);H=wk(p.V,H,0);a=wk(p.V,X,1);d=p.api.getVideoData();X=g.J9(C,H,a);V=(d==null? 0:g.s5(d))?1:g.J9(V,H,a);C=pv(p,C,N);g.K2(p.qn,"transform","translateX("+C+"px)");av(p,N,H,X,"PLAY_PROGRESS");(d==null?0:E5(d))?(C=p.api.getProgressState().seekableEnd)&&av(p,N,X,wk(p.V,C),"LIVE_BUFFER"):av(p,N,H,V,"LOAD_PROGRESS");if(p.api.G("web_player_heat_map_played_bar")){var E;(E=p.W[0])!=null&&E.S.setAttribute("width",(X*100).toFixed(2)+"%")}}; av=function(p,C,V,N,H){var X=p.T.length,d=C.T-p.Vn*(p.S?3:2),a=V*d;V=H$(p,a);var E=N*d;d=H$(p,E);H==="HOVER_PROGRESS"&&(d=H$(p,C.T*N,!0),E=C.T*N-aIv(p,C.T*N)*(p.S?3:2));N=Math.max(a-EnH(p,V),0);for(a=V;a<X;a++)p.T[a].V$(H).style.left=V===a?N+"px":"0";C=pv(p,p.a$,C);for(X=V;X<d;X++){a=p.T[X].V$(H);var l=p.T[X].width,t=X===V?l-N:l;Ea(p,a,t,l);lIV(p,a,t,l,X,C,H)}X=p.T[d].width;E=g.J9(E-EnH(p,d),0,X);V===d&&(E-=N);N=p.T[d].V$(H);Ea(p,N,E,X);lIV(p,N,E,X,d,C,H);E=p.T.length;for(d+=1;d<E;d++)t$V(p,d,H); for(d=0;d<V;d++)t$V(p,d,H)}; EnH=function(p,C){if(C>=p.T.length)return p.J;for(var V=0,N=0;N<C;)V+=p.T[N].width,N++;return V}; t$V=function(p,C,V){V=p.T[C].V$(V);Ea(p,V,0,p.T[C].width)}; lIV=function(p,C,V,N,H,X,d){p.api.G("enable_cairo_refresh_signature_moments_web")&&d==="PLAY_PROGRESS"&&(V=!N||p.api.K().C?1:V/N,p.qW.clientWidth>0||p.Q$.clientWidth>0?(X=C.clientWidth/V,p=-1*p.qW.clientWidth/V):(X/=V,p=-1*p.T[H].element.offsetLeft/V),g.K2(C,"background-size",X+"px"),g.K2(C,"background-position-x",p+"px"))}; Ea=function(p,C,V,N,H){H||p.api.K().C?C.style.width=V+"px":g.K2(C,"transform","scalex("+(N?V/N:0)+")")}; H$=function(p,C,V){var N=0;(V===void 0?0:V)&&(C-=aIv(p,C)*(p.S?3:2));V=g.F(p.T);for(var H=V.next();!H.done;H=V.next()){H=H.value;if(C>H.width)C-=H.width;else break;N++}return N===p.T.length?N-1:N}; pv=function(p,C,V){for(var N=C*p.V.T*1E3,H=-1,X=g.F(p.T),d=X.next();!d.done;d=X.next())d=d.value,N>d.startTime&&d.width>0&&H++;return C*(V.T-(p.S?3:2)*p.Vn)+(p.S?3:2)*(H<0?0:H)+V.S}; aIv=function(p,C){for(var V=p.T.length,N=0,H=g.F(p.T),X=H.next();!X.done;X=H.next())if(X=X.value,X.width!==0)if(C>X.width)C-=X.width,C-=p.S?3:2,N++;else break;return N===V?V-1:N}; g.cs1=function(p,C,V,N){var H=p.J!==V,X=p.S!==N;p.XT=C;p.J=V;p.S=N;ru(p)&&(C=p.C)!=null&&(C.scale=N?1.5:1);H9u(p);p.T.length===1&&(p.T[0].width=V||0);H&&g.GI(p);p.C&&X&&ru(p)&&(p.C.isEnabled&&(V=p.S?135:90,N=V-ho(p),p.UY.style.height=V+"px",g.K2(p.b_,"transform","translateY("+-N+"px)"),g.K2(p.progressBar,"transform","translateY("+-N+"px)")),AY9(p.C))}; ih=function(p){var C=!!p.Sb&&p.api.getPresentingPlayerType()!==2,V=p.clipStart,N=p.clipEnd,H=!0,X=!0;C&&p.Sb?(V=p.Sb.startTimeMs/1E3,N=p.Sb.endTimeMs/1E3):(H=V>p.V.C,X=p.V.T>0&&N<p.V.T);var d,a;if(((d=p.Sb)==null?0:d.postId)||((a=p.Sb)==null?void 0:a.type)==="repeatChapter")X=H=!1;g.Tz(p.element,"ytp-loop-range-enabled",C);g.Tz(p.element,"ytp-clip-start-enabled",H);g.Tz(p.element,"ytp-clip-end-enabled",X);C=H?wk(p.V,V,0):0;N=X?wk(p.V,N,1):1;p.ER.style.left=Math.round(C*1E3)/10+"%";p.kM.style.left= Math.round(N*1E3)/10+"%";p.qW.style.width=Math.round(C*1E3)/10+"%";p.Q$.style.left=Math.round(N*1E3)/10+"%";p.Q$.style.width=Math.round((1-N)*1E3)/10+"%"}; XMQ=function(p){var C;if((C=p.api.getVideoData())==null||!E5(C)){C=Cv(p);av(p,C,p.a$,Math.max(C.C,p.a$),"HOVER_PROGRESS");for(var V=H$(p,C.T*p.a$,!0),N=H$(p,C.V,!0),H=V;H<=N;H++)g.Tz(p.T[H].C,"ytp-hover-progress-light",C.C>p.a$);g.Tz(p.cV,"ytp-scrubber-button-hover",V===N&&p.T.length>1);if(p.api.G("web_player_heat_map_played_bar")){var X;(X=p.W[0])!=null&&X.C.setAttribute("width",(C.C*100).toFixed(2)+"%")}}}; snu=function(p,C){var V=p.vr[C];C=p.Hc[C];var N=Cv(p),H=wk(p.V,V.start/1E3,0),X=hYv(V,p.S)/N.width;var d=wk(p.V,V.end/1E3,1);X!==Number.POSITIVE_INFINITY&&(H=g.J9(H,0,d-X));d=Math.min(d,H+X);V.color&&(C.style.background=V.color);V=H;C.style.left=Math.max(V*N.T+N.S,0)+"px";Ea(p,C,g.J9((d-V)*N.T+N.S,0,N.width),N.width,!0)}; T5L=function(p,C){var V=C.getId();p.vr[V]===C&&(g.lK(p.Hc[V]),delete p.vr[V],delete p.Hc[V])}; ru=function(p){var C=g.wG(p.api.K())&&(p.api.G("web_enable_pip_on_miniplayer")||p.api.G("web_enable_auto_pip")),V;return!((V=p.api.getVideoData())==null?0:V.isLivePlayback)&&!p.api.isMinimized()&&!p.api.isInline()&&(!p.api.l0()||!C)}; lh=function(p){p.C&&(p.C.disable(),p.R$=0,p.b_.style.removeProperty("transform"),p.progressBar.style.removeProperty("transform"),p.UY.style.removeProperty("height"),p.element.parentElement&&p.element.parentElement.style.removeProperty("height"))}; M$v=function(p,C){var V=C/sa(p)*ho(p);g.K2(p.progressBar,"transform","translateY("+-C+"px)");g.K2(p.b_,"transform","translateY("+-C+"px)");g.K2(p.UY,"transform","translateY("+V+"px)");p.UY.style.height=C+V+"px";p.element.parentElement&&(p.element.parentElement.style.height=ho(p)-V+"px")}; JsL=function(p,C){C?p.Z||(p.element.removeAttribute("aria-disabled"),p.Z=new g.Hx(p.progressBar,!0),p.Z.subscribe("hovermove",p.R6_,p),p.Z.subscribe("hoverend",p.Pxx,p),p.Z.subscribe("dragstart",p.pcV,p),p.Z.subscribe("dragmove",p.DWa,p),p.Z.subscribe("dragend",p.YRY,p),p.d6=p.listen("keydown",p.Zt)):p.Z&&(p.element.setAttribute("aria-disabled","true"),p.rY(p.d6),p.Z.cancel(),p.Z.dispose(),p.Z=null)}; d2e=function(p){var C;return!((C=p.Sb)==null||!C.postId)&&p.api.getPresentingPlayerType()!==2}; to=function(p,C){g.L.call(this,{L:"button",i_:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true","data-priority":"8"},Ak:"{{icon}}"});this.N=p;this.xM=C;this.T=null;this.U(p,"onMdxReceiversChange",this.Pr);this.U(p,"presentingplayerstatechange",this.Pr);this.U(p,"appresize",this.Pr);p.createClientVe(this.element,this,139118);this.Pr();this.listen("click",this.C,this);o$(p,this.element,this)}; c$=function(p,C){g.L.call(this,{L:"button",i_:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":JO(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},j:[g.x0()]});this.N=p;this.xM=C;this.C=!0;this.listen("click",this.V);this.U(p,"onPlaybackQualityChange",this.updateBadge);this.U(p,"videodatachange",this.updateBadge);this.U(p,"webglsettingschanged",this.updateBadge);this.U(p,"appresize",this.T);o$(p,this.element,this);this.N.createClientVe(this.element, this,28663);this.updateBadge();this.T(p.dV().getPlayerSize())}; m2s=function(p,C){p.C=!!C;p.T(p.N.dV().getPlayerSize())}; T8=function(p,C){c3.call(this,"Annotations",g.FB.HM);this.N=p;this.xM=C;this.T=!1;p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]});this.U(p,"videodatachange",this.Pr);this.U(p,"onApiChange",this.Pr);this.subscribe("select",this.onSelect,this);this.Pr()}; Mb=function(p,C){g.jv.call(this,"Audio track",g.FB.AUDIO,p,C);this.N=p;this.tracks={};g.Ed(this.element,"ytp-audio-menu-item");this.countLabel=new g.L({L:"div",j:[{L:"span",Ak:"Audio track"},{L:"span",B:"ytp-menuitem-label-count",Ak:"{{content}}"}]});p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.R(this,this.countLabel);g.V7(this,this.countLabel);this.U(p,"videodatachange",this.Pr);this.U(p,"onPlaybackAudioChange",this.Pr);this.Pr()}; Jo=function(p,C){c3.call(this,"Autoplay",g.FB.Do);this.N=p;this.xM=C;this.T=!1;this.V=[];this.U(p,"presentingplayerstatechange",this.C);this.subscribe("select",this.onSelect,this);p.createClientVe(this.element,this,113682);this.C()}; vnX=function(p,C){g.Nl.call(this,g.H3({"aria-haspopup":"false"}),0,"More options");this.N=p;this.xM=C;this.U(this.element,"click",this.onClick);this.xM.zB(this)}; FTY=function(p,C){var V;g.wG(p.K())&&(V={L:"div",B:"ytp-panel-footer-content",j:[{L:"span",Ak:"Adjust download quality from your "},{L:"a",B:"ytp-panel-footer-content-link",Ak:"Settings",X:{href:"/account_downloads"}}]});g.jv.call(this,"Quality",g.FB.fX,p,C,void 0,void 0,V);this.N=p;this.sY={};this.Z={};this.S={};this.Vn=new Set;this.T=this.W=!1;this.D="unknown";this.a$="";this.b_=new g.Hl;g.R(this,this.b_);this.W=this.N.G("web_player_use_new_api_for_quality_pullback");this.T=this.N.G("web_player_enable_premium_hbr_playback_cap"); p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.Ed(this.C.element,"ytp-quality-menu");this.U(p,"videodatachange",this.du);this.U(p,"videoplayerreset",this.du);this.U(p,"onPlaybackQualityChange",this.Tw);this.du();p.createClientVe(this.element,this,137721)}; KTs=function(p,C,V){var N=p.sY[C],H=g.PB[C];return Sbj(p,N?N.qualityLabel:H?H+"p":"Auto",C,V)}; D2v=function(p,C,V,N,H){var X=(C=p.T?p.S[C]:p.Z[C])&&C.quality,d=C&&C.qualityLabel;d=d?d:"Auto";N&&(d="("+d);p=Sbj(p,d,X||"",H);N&&p.j.push(")");(N=(N=C&&C.paygatedQualityDetails)&&N.paygatedIndicatorText)&&V&&p.j.push({L:"div",B:"ytp-premium-label",Ak:N});return p}; Sbj=function(p,C,V,N){C={L:"span",i_:N,j:[C]};var H;N="ytp-swatch-color";if(p.W||p.T)N="ytp-swatch-color-white";V==="highres"?H="8K":V==="hd2880"?H="5K":V==="hd2160"?H="4K":V.indexOf("hd")===0&&V!=="hd720"&&(H="HD");H&&(C.j.push(" "),C.j.push({L:"sup",B:N,Ak:H}));return C}; mR=function(p,C,V,N){g.L.call(this,{L:"div",B:"ytp-input-slider-section",j:[{L:"input",B:"ytp-input-slider",X:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.V=p;this.W=C;this.D=V;this.initialValue=N;this.T=this.rV("ytp-input-slider");this.C=N?N:p;this.init();this.U(this.T,"input",this.J)}; Z9y=function(p,C){p.C=C;p.updateValue("slidervalue",p.C);p.T.valueAsNumber=p.C;uSY(p,C)}; uSY=function(p,C){p.T.style.setProperty("--yt-slider-shape-gradient-percent",(C-p.V)/(p.W-p.V)*100+"%")}; v$=function(p){mR.call(this,p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],.05,p.getPlaybackRate());this.N=p;this.S=g.iK("P");this.Z=BCj(this.b_,this);g.Ed(this.T,"ytp-speedslider");g.Ed(this.S,"ytp-speedslider-text");p=this.S;var C=this.T;C.parentNode&&C.parentNode.insertBefore(p,C.nextSibling);U2s(this);this.U(this.T,"change",this.sY);this.U(this.T,"keydown",this.a$)}; U2s=function(p){p.S.textContent=p.C+"x"}; Fp=function(p,C,V,N,H,X,d){g.L.call(this,{L:"div",B:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},j:[{L:"div",B:"ytp-slider",j:[{L:"div",B:"ytp-slider-handle"}]}]});this.J=p;this.Z=C;this.C=V;this.V=N;this.a$=H;this.Sa=X;this.range=this.V-this.C;this.Wr=this.rV("ytp-slider-section");this.S=this.rV("ytp-slider");this.b_=this.rV("ytp-slider-handle");this.D=new g.Hx(this.S, !0);this.T=d?d:V;g.R(this,this.D);this.D.subscribe("dragmove",this.Td,this);this.U(this.element,"keydown",this.kU);this.U(this.element,"wheel",this.y3);this.init()}; SD=function(p){Fp.call(this,.05,.05,p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],150,20,p.getPlaybackRate());this.N=p;this.W=g.iK("P");this.Vn=BCj(this.sY,this);g.Ed(this.S,"ytp-speedslider");g.Ed(this.W,"ytp-speedslider-text");p=this.W;var C=this.S;C.parentNode&&C.parentNode.insertBefore(p,C.nextSibling);fIY(this);this.U(this.N,"onPlaybackRateChange",this.updateValues)}; fIY=function(p){p.W.textContent=O9L(p,p.T)+"x"}; O9L=function(p,C){p=Number(g.J9(C,p.C,p.V).toFixed(2));C=Math.floor((p+.001)*100%5+2E-15);var V=p;C!==0&&(V=p-C*.01);return Number(V.toFixed(2))}; ys9=function(p){g.Sp.call(this,{L:"div",B:"ytp-speedslider-component"});p.G("web_settings_use_input_slider")?this.T=new v$(p):this.T=new SD(p);g.R(this,this.T);this.element.appendChild(this.T.element)}; qbu=function(p){var C=new ys9(p);wL.call(this,p,C,"Custom");g.R(this,C)}; IIV=function(p,C){var V=new qbu(p);g.jv.call(this,"Playback speed",g.FB.Np,p,C,Kv(p)?void 0:"Custom",Kv(p)?void 0:function(){g.WO(C,V)}); var N=this;this.W=!1;g.R(this,V);this.D=new v$(p);g.R(this,this.D);p.G("web_settings_menu_icons")&&this.setIcon({L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]});this.N=p;this.W=!1;this.a$=null;Kv(p)?(this.T=g.Ks("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.N.getPlaybackRate().toString()}),this.S=this.N.getPlaybackRate()):this.S=this.T=null;this.Z=this.N.getAvailablePlaybackRates();this.U(p,"presentingplayerstatechange",this.Pr);var H;((H=this.N.getVideoData())==null?0:H.VL())&&this.U(p,"serverstitchedvideochange",this.Pr);this.U(this.D.T,"change",function(){N.W=!0;N.Pr()}); this.Pr()}; Asa=function(p,C){var V=b9H(C);p.T&&(p.W||C===p.S)?(p.kN(p.T),p.Jc(C.toString())):p.kN(V)}; kLu=function(p){p.dh(p.Z.map(b9H));p.T=null;p.S=null;var C=p.N.getPlaybackRate();if(!p.Z.includes(C)||Kv(p.N))on1(p,C),p.kN(p.T)}; on1=function(p,C){p.S=C;p.T=g.Ks("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:C.toString()});C=p.Z.map(b9H);C.unshift(p.T);p.dh(C)}; b9H=function(p){return p.toString()}; Kv=function(p){return p.G("web_settings_menu_surface_custom_playback")}; x2S=function(p){return p.G("web_settings_menu_surface_custom_playback")&&p.G("web_settings_use_input_slider")}; zda=function(p,C,V,N){var H=new g.$m(C,void 0,"Video Override");g.jv.call(this,N.text||"",p,C,V,"Video Override",function(){g.WO(V,H)}); var X=this;g.Ed(this.element,"ytp-subtitles-options-menu-item");this.setting=N.option.toString();p=N.options;this.settings=g.tB(p,this.kP,this);this.W=H;g.R(this,this.W);C=new g.Nl({L:"div",B:"ytp-menuitemtitle",Ak:"Allow for a different caption style if specified by the video."},0);g.R(this,C);this.W.zB(C,!0);this.S=new g.Nl({L:"div",B:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},j:[{L:"div",B:"ytp-menuitem-label",Ak:"On"}]},-1);g.R(this,this.S);this.W.zB(this.S,!0);this.U(this.S.element, "click",function(){YbH(X,!0)}); this.T=new g.Nl({L:"div",B:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},j:[{L:"div",B:"ytp-menuitem-label",Ak:"Off"}]},-2);g.R(this,this.T);this.W.zB(this.T,!0);this.U(this.T.element,"click",function(){YbH(X,!1)}); this.dh(g.AU(p,this.kP))}; YbH=function(p,C){p.publish("settingChange",p.setting+"Override",!C);p.xM.Ou()}; Di=function(p,C){g.$m.call(this,p,void 0,"Options");var V=this;this.ob={};for(var N=0;N<g.ZR.length;N++){var H=g.ZR[N],X=new zda(-N,p,C,H);g.R(this,X);X.subscribe("settingChange",this.f$,this);this.ob[H.option.toString()]=X;this.zB(X,!0)}p=new g.Nl(g.H3(),-g.ZR.length,"Reset");g.R(this,p);p.listen("click",function(){V.f$("reset",!0)}); this.zB(p,!0)}; uh=function(p,C){g.jv.call(this,"Auto-translate",0,p,C);this.N=p;this.languages={};p.createClientVe(this.element,this,127301);p.logVisibility(this.element,!0)}; RdV=function(p,C){p.languages=g.tB(C,p.T,p);p.dh(g.AU(C,p.T))}; edy=function(p,C){var V=new Di(p,C),N=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],H;g.wG(p.K())&&(H={L:"div",B:"ytp-panel-footer-content",j:[{L:"span",Ak:N[0]},{L:"a",B:"ytp-panel-footer-content-link",Ak:"Settings",X:{href:"/account_playback"}},{L:"span",Ak:N[1]}]});g.jv.call(this,"Subtitles/CC",g.FB.SUBTITLES,p,C,"Options",function(){g.WO(C,V)},H); var X=this;this.N=p;this.xM=C;this.tracks={};this.D=new g.N8(function(){nnj(X,!1)},3E3); g.R(this,this.D);this.countLabel=new g.L({L:"div",j:[{L:"span",Ak:"Subtitles/CC"},{L:"span",B:"ytp-menuitem-label-count",Ak:"{{content}}"}]});g.R(this,this.countLabel);g.V7(this,this.countLabel);p.G("web_settings_menu_icons")&&this.setIcon(hPL.includes("en")?{L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z", fill:"white"}}]}:{L:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{L:"path",X:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.T=new uh(p,C);g.R(this,this.T);this.T.subscribe("select",this.aP,this);this.W=V;g.R(this,this.W);this.W.subscribe("settingChange",this.f$,this);C.subscribe("show",this.Vrx,this);this.U(p,"videodatachange",this.Pr);this.U(p,"onApiChange",this.Pr);this.U(p,"onCaptionsTrackListChanged", this.Pr);this.U(p,"captionschanged",this.Pr);p.createClientVe(this.element,this,127300);this.Pr()}; PJX=function(p){return Object.values(p.tracks).find(function(C){return C.languageCode==="en"&&C.kind==="asr"})}; Zi=function(p,C){p.N.setOption("captions","track",C)}; nnj=function(p,C){p.N.setOption("captions","sampleSubtitles",C)}; wMy=function(p){g.gL.call(this,p,"ytp-settings-menu");var C=this;this.Zd=new g.$m(this.N);this.YD=this.settingsButton=null;this.isInitialized=this.LZ=!1;g.R(this,this.Zd);this.hide();g.WO(this,this.Zd);p.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(V){C.JE(V)}); this.U(p,"highlightSettingsMenu",function(){C.LZ=!0;C.er()}); this.U(p,"openSettingsMenuItem",function(V){if(V&&(C.LZ=!0,C.er(),V==="menu_item_video_quality_advanced")){var N;(N=C.YD)==null||N.open()}})}; $2Q=function(p,C){p.settingsButton=C;p.element.id=C.element.getAttribute("aria-controls")}; LTV=function(p,C){g.L.call(this,{L:"button",i_:["ytp-subtitles-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},j:[sZ9()]});this.N=p;this.tooltip=C.aI();this.U(p,"videodatachange",this.Pr);this.U(p,"appresize",this.Pr);this.U(p,"promotooltipacceptbuttonclicked",this.R3a);this.U(p,"onApiChange",this.Pr);this.U(p,"onCaptionsTrackListChanged",this.Pr);this.U(p,"captionschanged",this.Pr); this.N.createClientVe(this.element,this,127299);this.Pr();this.listen("click",this.onClick);this.addOnDisposeCallback(g.A_(C.aI(),this.element))}; gnv=function(p){return g.RT(p.N.Tk())!=null?g.RT(p.N.Tk()).PN()?!!p.N.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; g.Ua=function(p,C,V){V=V===void 0?350:V;g.L.call(this,{L:"div",i_:["ytp-time-display","notranslate"],j:[{L:"span",B:"ytp-time-wrapper",j:[{L:"span",B:"ytp-time-clip-icon",Ak:"{{clipicon}}"},{L:"span",B:"ytp-time-current",Ak:"{{currenttime}}"},{L:"span",B:"ytp-time-separator",Ak:" / "},{L:"span",B:"ytp-time-duration",Ak:"{{duration}}"}]},{L:"span",B:"ytp-clip-watch-full-video-button-separator",Ak:"\u2022"},{L:"span",B:"ytp-clip-watch-full-video-button",Ak:"{{watchfullvideo}}"}]});var N=this;this.api= p;this.J=V;this.liveBadge=new g.L({L:"button",i_:["ytp-live-badge","ytp-button"],X:{disabled:"true"},Ak:"{{content}}"});this.T=null;this.YR=this.C=!1;this.D=this.W=null;this.isPremiere=!1;this.Sb=this.S=this.V=null;this.Z=this.rV("ytp-clip-watch-full-video-button");this.api.G("web_player_updated_entrypoint")&&g.Tz(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.Jc("Live");g.R(this,this.liveBadge);this.api.G("web_player_updated_entrypoint")?this.liveBadge.u_(this.element.querySelector(".ytp-time-wrapper")): this.liveBadge.u_(this.element);this.tooltip=C.aI();this.liveBadge.listen("click",this.onClick.bind(this));this.U(this.Z,"click",this.gGV);this.U(this.api,"serverstitchedvideochange",function(){WTe(N,N.api.getProgressState().isAtLiveHead)}); this.U(p,"presentingplayerstatechange",this.m6);this.U(p,"appresize",this.m6);this.U(p,"onLoopRangeChange",this.onLoopRangeChange);this.U(p,"videodatachange",this.onVideoDataChange);(C=p.getVideoData())&&this.updateVideoData(C);this.m6();Qne(this,p.getLoopRange())}; WTe=function(p,C){var V=p.liveBadge.element,N=p.api.isLifaAdPlaying();V.disabled=N||C;!fv(p)||p.D===C&&p.W===p.isPremiere||(p.D=C,p.W=p.isPremiere,p.m6(),p.api.G("html5_livebadge_color_update")?C?V.classList.add("ytp-live-badge-is-livehead"):V.classList.remove("ytp-live-badge-is-livehead"):V.disabled=C,p.liveBadge.Jc(p.isPremiere?"Premiere":"Live"),C?p.T&&(p.T(),p.T=null,V.removeAttribute("title")):(V.title="Skip ahead to live broadcast.",p.T=g.A_(p.tooltip,p.liveBadge.element)))}; Qne=function(p,C){var V=p.Sb!==C;p.Sb=C;V&&rsS(p)}; rsS=function(p){p.updateValue("clipicon",{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",X:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); p.YR&&!p.C?p.updateValue("watchfullvideo","Watch live stream"):p.updateValue("watchfullvideo","Watch full video");g.Tz(p.element,"ytp-clip",Oa(p));g.Tz(p.element,"ytp-live",fv(p))}; fv=function(p){var C=p.api.K().G("enable_linear_program_progress"),V=!p.api.G("clean_player_style_fix_on_web")||p.api.getPresentingPlayerType()!==2;return p.YR&&!Oa(p)&&(!C||!p.C)&&V}; Oa=function(p){return!!p.Sb&&!!p.Sb.postId&&p.api.getPresentingPlayerType()!==2&&(!p.Sb.type||p.Sb.type==="clips")}; GLY=function(p,C){g.L.call(this,{L:"div",B:"ytp-volume-panel",X:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},j:[{L:"div",B:"ytp-volume-slider",j:[{L:"div",B:"ytp-volume-slider-handle"}]}]});var V=this;this.api=p;this.D=C;this.Em=!1;this.Z=this.volume=0;this.W=null;this.C=this.T=this.isDragging=!1;this.D=C;this.V=p.GW();this.J=this.rV("ytp-volume-slider");this.a$=this.rV("ytp-volume-slider-handle"); this.S=new g.Hx(this.J,!0);g.R(this,this.S);this.S.subscribe("dragstart",this.z3S,this);this.S.subscribe("dragmove",this.nX,this);this.S.subscribe("dragend",this.vGa,this);this.U(p,"onVolumeChange",this.onVolumeChange);this.U(p,"appresize",this.ag);this.U(p,"fullscreentoggled",this.V2);this.U(p,"onShowControls",this.Wl);this.U(p,"onHideControls",this.Wl);this.U(this.element,"keydown",this.CX);this.U(this.element,"focus",function(){yK(V,V.T,V.isDragging,!0,V.api.Em())}); this.U(this.element,"blur",function(){yK(V,V.T,V.isDragging,!1,V.api.Em())}); this.ag(p.dV().getPlayerSize());B5y(this,p.getVolume(),p.isMuted());o$(p,this.element,this)}; B5y=function(p,C,V){var N=Math.floor(C),H=N+"% volume"+(V?" muted":"");V=V?0:C/100;p.updateValue("valuenow",N);p.updateValue("valuetext",H);p.a$.style.left=(p.V?60:40)*V+"px";p.volume=C}; p99=function(p,C){g.Tz(p.element,"ytp-volume-control-hover",C);yK(p,C,p.isDragging,p.C,p.api.Em())}; yK=function(p,C,V,N,H){var X=p.T||p.isDragging||p.C||p.Em;p.T=C;p.isDragging=V;p.C=N;p.Em=H;C=p.T||p.isDragging||p.C||p.Em;X!==C&&(C?p.W=p.U(p.element,"wheel",p.bY):(p.rY(p.W),p.W=null),g.Tz(p.D,"ytp-volume-slider-active",C))}; qb=function(p,C){var V=p.K(),N=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];V.V&&N.push("no-link");var H={title:"{{title}}",target:V.Z,"data-priority":"4","data-sessionlink":"feature=player-button"};V.V||(H.href="{{url}}");g.L.call(this,{L:"a",i_:N,X:H,Ak:"{{logoSvg}}"});this.T=null;this.api=p;this.visible=!1;V.V||(this.T=this.listen("click",this.onClick));this.U(p,"videodatachange",this.onVideoDataChange);this.U(p,"videoplayerreset",this.onVideoDataChange);this.U(p,"onLoopRangeChange", this.onVideoDataChange);this.U(p,"appresize",this.OR);this.onVideoDataChange();V.V||this.addOnDisposeCallback(g.A_(C.aI(),this.element));this.OR()}; CAV=function(p,C,V){g.Rr.call(this);var N=this;this.N=p;this.Vn=C;this.YB=V;this.X$=NaN;this.b_=this.KS=this.playButton=this.S=this.Y=this.R$=this.Ga=this.a$=this.Z=this.W=this.Qn=this.qo=null;this.C=new wMy(this.N);this.progressBar=new g.Bz(this.N,this.Vn);this.Sa=new g.Ua(this.N,this.Vn);this.sY=new T4H(this.N,this.Vn);this.J=new g.V2(this.AG,null,this);V=p.K();this.YB.subscribe("autohideupdate",this.XS,this);var H=!p.getPlayerStateObject().isCued(),X;p.K().G("html5_player_dynamic_bottom_gradient")? this.Qn=X=new EOe(p):X=new g.L({L:"div",B:"ytp-gradient-bottom"});g.R(this,X);g.LT(p,X.element,9);this.vr=new g.a0(X,250,H,100);g.R(this,this.vr);this.V=new g.L({L:"div",B:"ytp-chrome-bottom",j:[{L:"div",B:"ytp-chrome-controls"}]});g.R(this,this.V);g.LT(p,this.V.element,9);this.Wr=new g.a0(this.V,250,H,100);g.R(this,this.Wr);this.Y_=this.V.element.children[0];g.R(this,this.C);g.LT(p,this.C.element,6);this.C.subscribe("show",function(a){N.N.e3(!a);p.Ek(N.C,a)}); g.R(this,this.progressBar);this.progressBar.u_(this.V.element,0);H=new nZ(p,C);g.R(this,H);g.LT(p,H.element,4);H=new g.mz({L:"div",B:"ytp-left-controls"});g.R(this,H);H.u_(this.Y_);X=new g.LZ(p,C,!1);g.R(this,X);X.u_(H.element);p.G("web_render_jump_buttons")&&(this.Z=new e4(p,g.mi(p.K().experiments,"web_jump_button_backward_amount")||-10),g.R(this,this.Z),this.Z.u_(H.element));V.Ga||(this.playButton=new g.$X(p,C),g.R(this,this.playButton),this.playButton.u_(H.element));p.G("web_render_jump_buttons")&& (this.a$=new e4(p,g.mi(p.K().experiments,"web_jump_button_forward_amount")||10),g.R(this,this.a$),this.a$.u_(H.element));X=new g.LZ(p,C,!0);g.R(this,X);X.u_(H.element);X=new g.L({L:"span",B:"ytp-volume-area"});g.R(this,X);X.u_(H.element);if(!V.RN&&(this.W=new m99(p,C),g.R(this,this.W),this.W.u_(X.element),V.Y_&&!V.J)){var d=new GLY(p,this.V.element);this.KS=d;g.R(this,d);d.u_(X.element);X=new g.Hx(X.element);g.R(this,X);X.subscribe("hoverstart",function(){var a;(a=N.KS)==null||p99(a,!0)}); X=new g.Hx(H.element);g.R(this,X);X.subscribe("hoverend",function(){var a;(a=N.KS)==null||p99(a,!1)})}g.R(this,this.Sa); this.Sa.u_(H.element);this.T=new g.mz({L:"div",B:"ytp-right-controls"});g.R(this,this.T);this.Ga=new Re(p,this.progressBar);g.R(this,this.Ga);this.Ga.u_(H.element);V.G("web_key_moments_markers")&&(this.R$=new Pz(p,this.progressBar),g.R(this,this.R$),this.R$.u_(H.element));this.T.u_(this.Y_);this.UY=new LTV(p,C);g.R(this,this.UY);this.UY.u_(this.T.element);this.settingsButton=new c$(p,this.C);g.R(this,this.settingsButton);$2Q(this.C,this.settingsButton);this.settingsButton.u_(this.T.element);H=p.getVideoData(); if(V.Om||H.UV&&V.controlsType==="1")this.Y=new qb(p,C),g.R(this,this.Y),this.Y.u_(this.T.element);V.showMiniplayerButton&&(this.S=new wu(p),g.R(this,this.S),this.S.u_(this.T.element));V.Pz&&(C=new to(p,this.C),g.R(this,C),C.u_(this.T.element));V.KM&&(C=new YX(p),g.R(this,C),C.u_(this.T.element));g.R(this,this.sY);this.sY.u_(this.T.element);g.R(this,this.J);this.U(p,"appresize",this.OR);this.U(p,"fullscreentoggled",this.OR);this.U(p,"presentingplayerstatechange",this.zg);this.U(p,"videodatachange", this.onVideoDataChange);this.OR()}; jUa=function(p,C){if(p.N.getPlayerStateObject().isCued()||C){if(C){p.Wr.hide();p.vr.hide();p.W&&p.W.RH(!1);p.Y&&p.Y.RH(!1);p.S&&p.S.RH(!1);if(p.N.G("embeds_use_parent_visibility_in_ve_logging")){var V;(V=p.sY)==null||V.RH(!1);var N;(N=p.settingsButton)==null||N.RH(!1);var H;(H=p.playButton)==null||H.RH(!1)}p.N.wb(p.V$())}}else if(!C){p.Wr.show();p.vr.show();p.W&&p.W.RH(!0);p.Y&&p.Y.RH(!0);p.S&&p.S.RH(!0);if(p.N.G("embeds_use_parent_visibility_in_ve_logging")){var X;(X=p.sY)==null||X.RH(!0);var d; (d=p.UY)==null||d.RH(!0);var a;(a=p.playButton)==null||a.RH(!0)}p.XS()}}; NpL=function(p){var C=p.N.dV().getPlayerSize().width;return Math.max(C-VNv(p)*2,100)}; VNv=function(p){var C=p.N.GW(),V=p.N.getVideoData().UV,N=0;p.N.GW()&&p.N.isEmbedsShortsMode()&&(N=(p.N.dV().getPlayerSize().width-p.N.getVideoContentRect().width)/2);return 12*(V?0:C?2:1)+N}; HCH=function(p){var C=p.N.GW()?72:50;p=p.N.K();g.wG(p)&&(C=62,g.Oe(p)&&(C=54));return C}; X9a=function(p){PO.call(this,p,!1);var C=this;this.suggestedActions={};this.U(this.N,"videodatachange",this.onVideoDataChange);this.U(this.N,g.Ez("suggested_action_button_visible"),function(V){V=V.id;C.text=V;dby(C);C.onClickCommand=C.suggestedActions[V];C.enabled=!0;C.JE()}); this.U(this.N,g.lG("suggested_action_button_visible"),function(V){C.enabled=!1;C.JE();C.N.removeCueRange(V.id)})}; d0V=function(p){p.suggestedActions={};p.N.qt("suggested_action_button_visible")}; bh=function(p){g.L.call(this,{L:"div",B:Iv.TITLE,j:[{L:"div",B:Iv.TEXT,j:[{L:"a",i_:[Iv.LINK,Iv.SESSIONLINK],X:{target:p.K().Z,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Ak:"{{title}}"},{L:"div",B:Iv.SUBTEXT,j:["{{subtextElement}}"]}]}]});this.api=p;this.T=null;this.link=this.rV(Iv.LINK);p.createClientVe(this.element,this,23851);this.U(p,"videodatachange",this.Pr);this.U(p,"videoplayerreset",this.Pr);this.Pr()}; iC1=function(p){p.updateValue("channelLink","");p.updateValue("channelName","");g.Oe(p.api.K())?p.updateValue("channelTitleFocusable","0"):p.updateValue("channelTitleFocusable","-1")}; g.Ao=function(p,C){g.L.call(this,{L:"div",j:[{L:"div",B:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},j:[{L:"div",B:"ytp-tooltip-edu",j:[{L:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",X:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{L:"span",Ak:"{{eduText}}"}]},{L:"div",B:"ytp-tooltip-image"},{L:"div",B:"ytp-tooltip-title",j:[{L:"span",Ak:"{{title}}"}]},{L:"span",B:"ytp-tooltip-text",Ak:"{{text}}"}]}, {L:"div",B:"ytp-tooltip-bg",j:[{L:"div",B:"ytp-tooltip-duration",Ak:"{{duration}}"}]}]});var V=this;this.api=p;this.vr=C;this.a$=function(N){(N=N.relatedTarget)&&g.t2(V.T,N)||V.l8()}; this.W=function(N){V.type===3&&V.l8();(N=N.currentTarget)&&N.nodeType===1&&!V.type&&(N.removeEventListener("mouseover",V.W),N.addEventListener("mouseout",V.a$),N.removeEventListener("focus",V.W),N.addEventListener("blur",V.a$),h7H(V,N,2))}; this.b_=function(){V.l8()}; this.type=this.T=null;this.Z=!1;this.C=null;this.V="";this.J=!0;this.scale=1;this.env=this.api.K();this.Sa=this.env.C;this.bg=this.rV("ytp-tooltip-bg");this.Wr=this.rV("ytp-tooltip-edu");this.image=this.rV("ytp-tooltip-image");this.text=this.rV("ytp-tooltip-text");this.title=this.rV("ytp-tooltip-title");this.D=new g.a0(this,100);this.S=NaN;this.b$=this.api.dV().getPlayerSize().width;this.sY=new g.N8(this.WU,250,this);this.Vn=new g.N8(this.l8,5E3,this);g.R(this,this.D);g.R(this,this.sY);g.R(this,this.Vn); vg&&(p=this.rV("ytp-tooltip-text"),p.setAttribute("role","text"),p.setAttribute("aria-live","polite"))}; g.A_=function(p,C){if(p.Sa)return function(){}; C.addEventListener("mouseover",p.W);C.addEventListener("focus",p.W);var V=C.getAttribute("title");V&&!C.hasAttribute("aria-label")&&C.setAttribute("aria-label",V);return function(){p.T===C&&p.l8();C.removeEventListener("mouseover",p.W);C.removeEventListener("focus",p.W)}}; h7H=function(p,C,V,N){if(C&&!C.hasAttribute)p=new g.Bw("showElementTooltip called with non-element.",C.toString()),g.nm(p);else{isNaN(p.S)||(p.S=NaN,p.bg.style.background="");p.T=C;p.Z=!!N;N?p.V=N:(p.V=C.getAttribute("title"),C.removeAttribute("title"));g.sd(p.element,"ytp-tooltip");g.Ed(p.element,"ytp-rounded-tooltip");var H=C.getAttribute("data-tooltip-image");H&&(p.image.style.backgroundImage="url("+H+")");N?p.update({ariaHidden:"false"}):p.update({ariaHidden:"true"});g.Tz(p.element,"ytp-tooltip-image-enabled", !!H);C=C.getAttribute("data-tooltip-opaque");g.Tz(p.element,"ytp-tooltip-opaque",!!C);p.type=V;p.api.addEventListener("appresize",p.b_);p.J&&(sUy(p),p.D.show(0))}}; sUy=function(p){if(p.T){var C=p.T.getAttribute("data-tooltip-text");if(p.V&&p.T.getAttribute("aria-label")!==p.V)var V=p.V;var N=p.T.getAttribute("aria-keyshortcuts"),H=p.T.getAttribute("data-title-no-tooltip");N&&H&&(V=g.Ks("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:H,SHORTCUT_KEY:N}));V&&p.T.setAttribute("aria-label",V);if(C&&!p.Z){N=p.T;p.updateValue("text",C);V=N.getAttribute("data-duration");p.update({title:p.V,duration:V});N=N.getAttribute("data-preview");H=243*p.scale;var X= 141*p.scale;p.bg.style.width=H+"px";p.bg.style.height=X+"px";p.bg.style.backgroundImage=N?"url("+N+")":"";p.bg.style.backgroundSize=H+"px "+X+"px";g.lI(p.element,["ytp-text-detail","ytp-preview"]);g.Tz(p.element,"ytp-has-duration",!!V)}else p.updateValue("text",p.V),g.cF(p.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);awy(p,!!C)}}; awy=function(p,C,V,N){var H=Math.min(p.b$,300*p.scale);p.element.style.maxWidth=C?"":H+"px";p.vr.Lr(p.element,p.T,V,p.type===1,N);p.element.style.top?g.Ed(p.element,"ytp-bottom"):p.element.style.bottom&&g.Ed(p.element,"ytp-top");p.type===3&&p.Vn.start()}; E8V=function(p,C){g.Tz(p.element,"ytp-preview",C>=0);if(!(C<0||C===p.S)){p.S=C;C=243*p.scale;var V=141*p.scale,N=XYe(p.C,p.S,C);l$a(p.bg,N,C,V,!0);p.sY.start()}}; lwv=function(p){var C=p.T;p.type===3&&p.Vn.stop();p.api.removeEventListener("appresize",p.b_);p.Z||C.setAttribute("title",p.V);p.V="";p.T=null}; cia=function(p){g.L.call(this,{L:"button",i_:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.KI(p.K()))},j:[{L:"div",B:"ytp-watch-later-icon",Ak:"{{icon}}"},{L:"div",B:"ytp-watch-later-title",Ak:"Watch later"}]});this.N=p;this.icon=null;this.visible=this.isRequestPending=this.T=!1;Lwv(p);p.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.U(p,"videoplayerreset",this.onReset);this.U(p,"appresize", this.XD);this.U(p,"videodatachange",this.XD);this.U(p,"presentingplayerstatechange",this.XD);this.XD();p=this.N.K();var C=g.zW("yt-player-watch-later-pending");p.S&&C?(UGu(),tNL(this)):this.Pr(2);g.Tz(this.element,"ytp-show-watch-later-title",g.KI(p));o$(this.N,this.element,this)}; TpV=function(p){var C=p.N.getPlayerSize(),V=p.N.K(),N=p.N.getVideoData(),H=g.KI(V)&&g.nT(p.N)&&g.r(p.N.getPlayerStateObject(),128),X=V.V;return V.cV&&C.width>=240&&!N.isAd()&&N.cV&&!H&&!g.lx(N)&&!p.N.isEmbedsShortsMode()&&!X}; MNs=function(p,C){kSL(g.zM(p.N.K()),"wl_button",function(){UGu({videoId:C});window.location.reload()})}; tNL=function(p){if(!p.isRequestPending){p.isRequestPending=!0;p.Pr(3);var C=p.N.getVideoData();C=p.T?C.removeFromWatchLaterCommand:C.addToWatchLaterCommand;var V=p.N.xN(),N=p.T?function(){p.T=!1;p.isRequestPending=!1;p.Pr(2);p.N.K().D&&p.N.Jk("WATCH_LATER_VIDEO_REMOVED")}:function(){p.T=!0; p.isRequestPending=!1;p.Pr(1);p.N.K().C&&p.N.Y7(p.element);p.N.K().D&&p.N.Jk("WATCH_LATER_VIDEO_ADDED")}; a4(V,C).then(N,function(){p.isRequestPending=!1;p.Pr(4,"An error occurred. Please try again later.");p.N.K().D&&p.N.Jk("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; Jiv=function(p,C){if(C!==p.icon){switch(C){case 3:var V=mv();break;case 1:V=Uy();break;case 2:V={L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:V={L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path", TB:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}p.updateValue("icon",V);p.icon=C}}; g.ov=function(){g.Hz.apply(this,arguments);this.wM=(this.WS=g.KI(this.api.K()))&&(this.api.K().C||Hw()||Vc());this.wm=48;this.oh=69;this.IF=this.b0=null;this.Xj=[];this.DH=this.ZP=this.Bd=this.O5=this.WV=null;this.c9=[];this.contextMenu=this.eq=this.overflowButton=this.j5=this.Mn=this.searchButton=this.copyLinkButton=this.shareButton=this.by=this.o_=this.title=this.channelAvatar=this.rB=this.tooltip=null;this.G9=!1;this.dA=this.Yh=this.gg=this.O2=null;this.IM=this.Oz=this.Az=!1}; m0X=function(p){var C=p.api.K(),V=g.r(p.api.getPlayerStateObject(),128);return C.S&&V&&!p.api.isFullscreen()}; v8v=function(p){if(p.OE()&&!p.api.isEmbedsShortsMode()&&p.j5){var C=p.api.G("web_player_hide_overflow_button_if_empty_menu");!p.by||C&&!TpV(p.by)||xWs(p.j5,p.by);!p.shareButton||C&&!gRV(p.shareButton)||xWs(p.j5,p.shareButton);!p.copyLinkButton||C&&!BvY(p.copyLinkButton)||xWs(p.j5,p.copyLinkButton)}else{if(p.j5){C=p.j5;for(var V=g.F(C.actionButtons),N=V.next();!N.done;N=V.next())N.value.detach();C.actionButtons=[]}p.searchButton&&!g.t2(p.o_.element,p.searchButton.element)&&p.searchButton.u_(p.o_.element); p.by&&!g.t2(p.o_.element,p.by.element)&&p.by.u_(p.o_.element);p.shareButton&&!g.t2(p.o_.element,p.shareButton.element)&&p.shareButton.u_(p.o_.element);p.copyLinkButton&&!g.t2(p.o_.element,p.copyLinkButton.element)&&p.copyLinkButton.u_(p.o_.element)}}; F7s=function(p,C,V){C=V?C.lastElementChild:C.firstElementChild;for(var N=null;C;){if(Zo(C,"display")!=="none"&&C.getAttribute("aria-hidden")!=="true"){var H=void 0;C.tabIndex>=0?H=C:H=F7s(p,C,V);H&&(N?V?H.tabIndex>N.tabIndex&&(N=H):H.tabIndex<N.tabIndex&&(N=H):N=H)}C=V?C.previousElementSibling:C.nextElementSibling}return N}; SPX=function(p,C,V){if(p.api.G("web_player_nitrate_promo_tooltip")&&p.api.getPresentingPlayerType(!0)!==2){var N=p.api.getVideoData(1);if(N==null?0:N.tooltipRenderer){N=N.tooltipRenderer;var H;if(H=!p.dA){if(!(C=!C)){var X,d,a;C=((X=N.tooltipDisplayStrategy)==null?void 0:X.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((d=N.promoConfig)==null?void 0:d.promoId)!=="dtip-edu-player-iseecaptions"&&((a=N.promoConfig)==null?void 0:a.promoId)!=="dtip-edu-player-tc-m2"}H=C}H&&(p.dA=new nRY(N,p.api), g.R(p,p.dA),g.LT(p.api,p.dA.element,9));var E;(E=p.dA)==null||$Wj(E,N,V)}}}; g.ka=function(p){g.IT.call(this,p);this.chrome=null;this.load()}; K7s=function(){for(var p=xa.length;p<4;p++){var C=g.iK("VIDEO");C.load();xa.push(new g.li(C))}}; D01=function(p,C,V,N){var H=V.getVideoData(),X=C.getVideoData();if(V.getPlayerState().isError())return{msg:"player-error"};var d=X.V;if(C.I_()>N/1E3+1)return{msg:"in-the-past"};if(X.isLivePlayback&&!isFinite(N))return{msg:"live-infinite"};(N=C.Nt())&&N.isView()&&(N=N.mediaElement);if(N&&N.TC().length>12&&g.Jl(H))return{msg:"played-ranges"};if(!H.V)return null;if(!d)return{msg:"no-pvd-formats"};if(!H.V.T||!d.T)return{msg:"non-dash"};N=d.videoInfos[0];var a=H.V.videoInfos[0];p.D&&id(X)&&(N=C.dc(),a= V.dc());if(!N||!a)return{msg:"no-video-info"};if(p.V&&(BB(N)||BB(a)))return{msg:"av1"};C=p.T&&X.rR()&&rN();if(a.containerType!==N.containerType)if(C)X.k_("sgap",{ierr:"container"});else return{msg:"container"};if(p.C&&!C&&(a.o$!==N.o$||a.o$===""||N.o$===""))return{msg:"codec"};if(p.S&&a.video&&N.video&&Math.abs(a.video.width/a.video.height-N.video.width/N.video.height)>.01)return{msg:"ratio"};if(g.Jl(X)&&g.Jl(H))return{msg:"content-protection"};d=d.T[0];H=H.V.T[0];V=d.audio;var E=H.audio;if(V.sampleRate!== E.sampleRate&&!g.kZ)if(C)X.k_("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:d.itag,cr:V.sampleRate,ni:H.itag,nr:E.sampleRate};return(V.numChannels||2)!==(E.numChannels||2)?{msg:"channel-count"}:p.W&&X.rR()&&N.video.fps!==a.video.fps?{msg:"fps"}:null}; ubQ=function(p,C,V){var N=p.getVideoData(),H=C.getVideoData();if(!N.K().supportsGaplessShorts())return{nq:"env"};if(V.Y){if(N.X4&&!N.isAd()||H.X4&&!H.isAd())return{nq:"autoplay"}}else if(N.X4||H.X4)return{nq:"autoplay"};if(!N.J)return{nq:"client"};if(!p.SS())return{nq:"no-empty"};p=D01(V,p,C,Infinity);return p!=null?{nq:p.msg}:null}; Ya=function(p){g.Y.call(this);this.app=p;this.S=this.V=this.n4=this.T=null;this.C=1;this.events=new g.Rr(this);this.events.U(this.app.ea,g.lG("gaplessshortslooprange"),this.D);g.R(this,this.events)}; ZCS=function(){this.S=this.Y=this.V=this.D=this.W=this.C=this.T=!1}; U0v=function(p){var C=new ZCS;C.T=p.G("h5_gapless_support_types_diff");C.W=p.G("h5_gapless_error_on_fps_diff");C.D=p.G("html5_gapless_use_format_info_fix");C.V=p.G("html5_gapless_disable_on_av1")&&!p.G("html5_gapless_enable_on_av1");C.C=p.G("html5_gapless_check_codec_diff_strictly");C.Y=p.G("html5_gapless_on_ad_autoplay");C.S=p.G("html5_gapless_disable_diff_aspect_radio");return C}; g.z8=function(p,C,V,N){N=N===void 0?!1:N;s3.call(this);this.mediaElement=p;this.start=C;this.end=V;this.T=N}; fwL=function(p,C,V,N,H,X){X=X===void 0?0:X;g.Y.call(this);var d=this;this.policy=p;this.T=C;this.C=V;this.lJ=H;this.W=X;this.S=this.V=null;this.currentVideoDuration=this.Y=-1;this.D=!1;this.PK=new hK;this.Y5=N-C.yZ()*1E3;this.PK.then(void 0,function(){}); this.timeout=new g.N8(function(){d.Qf("timeout")},1E4); g.R(this,this.timeout);this.J=isFinite(N);this.status={status:0,error:null}}; qPs=function(p){var C,V,N,H,X,d,a,E,l,t;return g.I(function(c){if(c.C==1){if(p.fS())return c.return(Promise.reject(Error(p.status.error||"disposed")));p.timeout.start();C=g.Rv.dB();return g.y(c,p.PK,2)}g.Rv.Dk("gtfta",C);V=p.T.Nt();if(V.isEnded())return p.Qf("ended_in_finishTransition"),c.return(Promise.reject(Error(p.status.error||"")));if(!p.S||!j6(p.S))return p.Qf("next_mse_closed"),c.return(Promise.reject(Error(p.status.error||"")));if(p.C.In()!==p.S)return p.Qf("next_mse_mismatch"),c.return(Promise.reject(Error(p.status.error|| "")));N=OCX(p);H=N.yO;X=N.KE;d=N.Mj;p.T.Hz(!1,!0);a=yiY(V,H,d,!p.C.getVideoData().isAd());p.C.setMediaElement(a);(E=p.T.CJ())&&p.C.GP(E.Er,E.uC);p.J&&(p.C.seekTo(p.C.getCurrentTime()+.001,{EC:!0,kZ:3,NZ:"gapless_pseudo"}),a.play(),YD());l=V.X0();l.cpn=p.T.getVideoData().clientPlaybackNonce;l.st=""+H;l.et=""+d;p.C.k_("gapless",l);p.T.k_("gaplessTo",{cpn:p.C.getVideoData().clientPlaybackNonce});t=p.T.getPlayerType()===p.C.getPlayerType();bZS(p.T,X,!1,t,p.C.getVideoData().clientPlaybackNonce);bZS(p.C, p.C.getCurrentTime(),!0,t,p.T.getVideoData().clientPlaybackNonce);p.C.VU=!0;g.mo(function(){!p.C.getVideoData().sY&&p.C.getPlayerState().isOrWillBePlaying()&&JDa(p.C)}); nv(p,6);p.dispose();return c.return(Promise.resolve())})}; o89=function(p){if(p.C.getVideoData().V){var C=p.lJ.K().G("html5_gapless_suspend_next_loader")&&p.W===1;HZe(p.C,p.S,C,Iw9(p));nv(p,3);bCs(p);var V=Ai1(p);C=V.N_;V=V.Zl;C.subscribe("updateend",p.KW,p);V.subscribe("updateend",p.KW,p);p.KW(C);p.KW(V)}}; bCs=function(p){p.T.unsubscribe("internalvideodatachange",p.Z_,p);p.C.unsubscribe("internalvideodatachange",p.Z_,p);p.lJ.K().G("html5_gapless_use_format_info_fix")&&(p.T.unsubscribe("internalvideoformatchange",p.Z_,p),p.C.unsubscribe("internalvideoformatchange",p.Z_,p));p.T.unsubscribe("mediasourceattached",p.Z_,p);p.C.unsubscribe("statechange",p.nI,p)}; yiY=function(p,C,V,N){p=p.isView()?p.mediaElement:p;return new g.z8(p,C,V,N)}; nv=function(p,C){C<=p.status.status||(p.status={status:C,error:null},C===5&&p.PK.resolve())}; Iw9=function(p){return p.lJ.K().G("html5_gapless_no_clear_buffer_timeline")&&p.W===1&&$B(p.T.getVideoData())}; OCX=function(p){var C=p.T.Nt();C=C.isView()?C.start:0;var V=p.T.getVideoData().isLivePlayback?Infinity:p.T.x6(!0);V=Math.min(p.Y5/1E3,V)+C;var N=p.J?100:0;p=V-p.C.I_()+N;return{Ps:C,yO:p,KE:V,Mj:Infinity}}; Ai1=function(p){return{N_:p.V.T.jr,Zl:p.V.C.jr}}; x0u=function(p){g.Y.call(this);var C=this;this.app=p;this.W=this.C=this.T=null;this.J=!1;this.V=this.S=null;this.D=U0v(this.app.K());this.Y=function(){g.mo(function(){kaQ(C)})}}; YPX=function(p,C,V,N,H){N=N===void 0?0:N;H=H===void 0?0:H;p.SS()||eD(p);p.S=new hK;p.T=C;var X=V,d=H===0;d=d===void 0?!0:d;var a=p.app.L1(),E=a.getVideoData().isLivePlayback?Infinity:a.x6(!0)*1E3;X>E&&(X=E-200,p.J=!0);d&&a.getCurrentTime()>=X/1E3?p.Y():(p.C=a,d&&(d=X,X=p.C,p.app.ea.addEventListener(g.Ez("vqueued"),p.Y),d=isFinite(d)||d/1E3>X.getDuration()?d:0x8000000000000,p.W=new g.sz(d,0x8000000000000,{namespace:"vqueued"}),X.addCueRange(p.W)));d=N/=1E3;X=C.getVideoData().T;N&&X&&p.C&&(a=N,E=0, C.getVideoData().isLivePlayback&&(d=Math.min(V/1E3,p.C.x6(!0)),E=Math.max(0,d-p.C.getCurrentTime()),a=Math.min(N,C.x6()+E)),d=BFY(X,a)||N,d!==N&&p.T.k_("qvaln",{st:N,at:d,rm:E,ct:a}));C=d;N=p.T;N.getVideoData().QZ=!0;N.getVideoData().J=!0;g.vO(N,!0);X={};p.C&&(X=p.C.MD(),d=p.C.getVideoData().clientPlaybackNonce,X={crt:(X*1E3).toFixed(),cpn:d});N.k_("queued",X);C!==0&&N.seekTo(C+.01,{EC:!0,kZ:3,NZ:"videoqueuer_queued"});p.V=new fwL(p.D,p.app.L1(),p.T,V,p.app,H);V=p.V;V.status.status!==Infinity&&(nv(V, 1),V.T.subscribe("internalvideodatachange",V.Z_,V),V.C.subscribe("internalvideodatachange",V.Z_,V),V.lJ.K().G("html5_gapless_use_format_info_fix")&&(V.T.subscribe("internalvideoformatchange",V.Z_,V),V.C.subscribe("internalvideoformatchange",V.Z_,V)),V.T.subscribe("mediasourceattached",V.Z_,V),V.C.subscribe("statechange",V.nI,V),V.T.subscribe("newelementrequired",V.zr,V),V.Z_());return p.S}; kaQ=function(p){var C,V,N,H,X,d,a,E,l;g.I(function(t){switch(t.C){case 1:if(p.fS()||!p.S||!p.T)return t.return();p.J&&sD(p.app.L1(),!0,!1);V=p.app.K().G("html5_force_csdai_gapful_transition")&&((C=p.app.L1())==null?void 0:C.getVideoData().isDaiEnabled());N=null;if(!p.V||V){t.EY(2);break}g.vv(t,3);return g.y(t,qPs(p.V),5);case 5:g.Fe(t,2);break;case 3:N=H=g.Sa(t);case 2:if(!p.T)return t.return();g.Rv.zz("vqsp",function(){P$(p.app,p.T)}); if(!p.T)return t.return();X=p.T.Nt();p.app.K().G("html5_gapless_seek_on_negative_time")&&X&&X.getCurrentTime()<-.01&&p.T.seekTo(0);g.Rv.zz("vqpv",function(){p.app.playVideo()}); if(N||V)p.T?(d=N?N.message:"forced",(a=p.C)==null||a.k_("gapfulfbk",{r:d}),sej(p.T,d)):(E=p.C)==null||E.k_("gapsp",{});l=p.S;eD(p);l&&l.resolve();return t.return(Promise.resolve())}})}; eD=function(p,C){C=C===void 0?!1:C;if(p.C){if(p.W){var V=p.C;p.app.ea.removeEventListener(g.Ez("vqueued"),p.Y);V.removeCueRange(p.W)}p.C=null;p.W=null}p.V&&(p.V.status.status!==6&&(V=p.V,V.status.status!==Infinity&&V.W!==1&&V.Qf("Canceled")),p.V=null);p.S=null;p.T&&!C&&p.T!==g.O5(p.app,1)&&p.T!==p.app.L1()&&p.T.dispose();p.T&&C&&OD(p.T);p.T=null;p.J=!1}; z7a=function(p){var C;return((C=p.V)==null?void 0:C.currentVideoDuration)||-1}; R7a=function(p,C,V){if(p.SS())return"qie";if(p.T==null||p.T.fS()||p.T.getVideoData()==null)return"qpd";if(C.videoId!==p.T.qg())return"vinm";if(z7a(p)<=0)return"ivd";if(V!==1)return"upt";if((V=p.V)==null)p=void 0;else if(V.getStatus().status!==5)p="niss";else if(D01(V.policy,V.T,V.C,V.Y5)!=null)p="pge";else{C=Ai1(V);p=C.N_;var N=C.Zl;C=g.mi(V.lJ.K().experiments,"html5_shorts_gapless_next_buffer_in_seconds");V=V.Y+C;N=EJ(N.K7(),V);p=EJ(p.K7(),V);p=!(C>0)||N&&p?null:"neb"}return p!=null?p:null}; n8H=function(){g.ca.call(this);var p=this;this.fullscreen=0;this.S=this.V=this.pictureInPicture=this.T=this.C=this.inline=!1;this.W=function(){p.JE()}; qpu(this.W);this.Y=this.getVisibilityState(this.gi(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.l0(),this.vE(),this.Gq(),this.VV())}; SP=function(p){return!(p.isMinimized()||p.isInline()||p.isBackground()||p.l0()||p.vE()||p.Gq()||p.VV())}; e7V=function(p,C){g.Y.call(this);this.C=p;this.T=C}; g8a=function(p){var C=p.experiments,V=C.OY.bind(C);PAX=V("html5_use_async_stopVideo");w9L=V("html5_pause_for_async_stopVideo");$0V=V("html5_not_reset_media_source");V("html5_listen_for_audio_output_changed")&&(IUS=!0);VP=V("html5_not_reset_media_source");L7Q=V("html5_not_reset_media_source");Jj=V("html5_retain_source_buffer_appends_for_debugging");IiV=V("web_enable_auto_pip")||V("web_enable_pip_on_miniplayer");V("html5_mediastream_applies_timestamp_offset")&&(CA=!0);var N=g.mi(C,"html5_cobalt_override_quic"); N&&UZ("QUIC",+(N>0));(N=g.mi(C,"html5_cobalt_audio_write_ahead_ms"))&&UZ("Media.AudioWriteDurationLocal",N);(N=V("html5_cobalt_enable_decode_to_texture"))&&UZ("Media.PlayerConfiguration.DecodeToTexturePreferred",N?1:0);(p.Gk()||V("html5_log_cpu_info"))&&Da1();Error.stackTraceLimit=50;var H=g.mi(C,"html5_idle_rate_limit_ms");H&&Object.defineProperty(window,"requestIdleCallback",{value:function(X){return window.setTimeout(X,H)}}); UBV(p.W);Sf=V("html5_use_ump_request_slicer");oEQ=V("html5_record_now");V("html5_disable_streaming_xhr")&&(gB=!1);V("html5_byterate_constraints")&&(VS=!0);V("html5_use_non_active_broadcast_for_post_live")&&(PR=!0);V("html5_sunset_aac_high_codec_family")&&(gO["141"]="a")}; W7a=function(p){return p.slice(12).replace(/_[a-z]/g,function(C){return C.toUpperCase().replace("_","")}).replace("Dot",".")}; QUv=function(p){var C={},V;for(V in p.experiments.flags)if(V.startsWith("cobalt_h5vcc")){var N=W7a(V),H=g.mi(p.experiments,V);N&&H&&(C[N]=UZ(N,H))}return C}; wR=function(p,C,V,N,H){H=H===void 0?[]:H;g.Y.call(this);this.yn=p;this.Dh=C;this.S=V;this.segments=H;this.T=void 0;this.C=new Map;H.length&&(this.T=H[0])}; riV=function(p){if(!(p.segments.length<2)){var C=p.segments.shift();if(C){var V=C.T,N=[];if(V.size){V=g.F(V.values());for(var H=V.next();!H.done;H=V.next()){H=g.F(H.value);for(var X=H.next();!X.done;X=H.next()){X=X.value;for(var d=g.F(X.segments),a=d.next();!a.done;a=d.next())(a=$a(a.value))&&N.push(a);X.removeAll()}}}(V=$a(C))&&N.push(V);N=g.F(N);for(V=N.next();!V.done;V=N.next())p.C.delete(V.value);C.dispose()}}}; Lv=function(p,C,V,N){if(!p.T||C>V)return!1;C=new wR(p.yn,C,V,p.T,N);N=g.F(N);for(V=N.next();!V.done;V=N.next()){V=V.value;var H=$a(V);H&&H!==$a(p.T)&&p.C.set(H,[V])}p=p.T;p.T.has(C.r6())?p.T.get(C.r6()).push(C):p.T.set(C.r6(),[C]);return!0}; jP=function(p,C){return p.C.get(C)}; BpY=function(p,C,V){p.C.set(C,V)}; gR=function(p,C,V,N,H,X){return new Gaa(V,V+(N||0),!N,C,p,H,X)}; Gaa=function(p,C,V,N,H,X,d){g.Y.call(this);this.Dh=p;this.V=C;this.C=V;this.type=N;this.S=H;this.videoData=X;this.vu=d;this.T=new Map;MI(X)}; $a=function(p){return p.videoData.clientPlaybackNonce}; pK1=function(p){if(p.T.size)for(var C=g.F(p.T.values()),V=C.next();!V.done;V=C.next()){V=g.F(V.value);for(var N=V.next();!N.done;N=V.next())N.value.dispose()}p.T.clear()}; Clj=function(p){this.end=this.start=p}; g.W$=function(p,C,V){g.Y.call(this);var N=this;this.api=p;this.yn=C;this.Ta=V;this.Wr=new Map;this.KS=new Map;this.vr=new Map;this.C=new Map;this.S=[];this.W=[];this.V=new Map;this.wy=new Map;this.Z=new Map;this.Q$=NaN;this.kM=this.Qn=this.YM=null;this.Hc=new g.N8(function(){jzv(N,N.Q$,N.YM||void 0)}); this.events=new g.Rr(this);this.ER=15E3;this.b_=new g.N8(function(){N.Vn=!0;var H=N.Ta,X=N.ER;H.k_("sdai",{aftimeout:X});H.oN(new qD("ad.fetchtimeout",{timeout:X}));VxV(N);N.mQ(!1)},this.ER); this.Vn=!1;this.Y=new Map;this.Wc=[];this.a$=null;this.cV=new Set;this.Sa=[];this.qW=[];this.QZ=[];this.RN=[];this.T=void 0;this.UY=0;this.Y_=!0;this.sY=!1;this.Ga=[];this.I6=new Set;this.kt=new Set;this.FO=new Set;this.Fx=0;this.qo=new Set;this.va=0;this.bX=this.VZ=!1;this.vc=this.J="";this.X$=null;this.Sr={mRV:function(){return N.C}, pPn:function(){return N.S}, zTn:function(){return N.V}, Tb:function(H){N.onCueRangeEnter(N.C.get(H))}, I$Y:function(H){N.onCueRangeExit(N.C.get(H))}, Whr:function(H,X){N.C.set(H,X)}, N9$:function(H){N.vc=H}, XZ:function(){return N.XZ()}, vQ$:function(H){return N.Z.get(H)}}; this.Ta.getPlayerType();RDL(this.Ta,this);this.R$=this.yn.Gk();g.R(this,this.Hc);g.R(this,this.events);g.R(this,this.b_);this.events.U(this.api,g.Ez("serverstitchedcuerange"),this.onCueRangeEnter);this.events.U(this.api,g.lG("serverstitchedcuerange"),this.onCueRangeExit)}; dwY=function(p,C,V,N,H,X,d,a){var E=NQQ(p,X,X+H);p.Vn&&p.Ta.k_("sdai",{adaftto:1});V||p.Ta.k_("sdai",{missadcon:1,enter:X,len:H,aid:a});p.D&&!p.D.gG&&(p.D.gG=a);p.bX&&p.Ta.k_("sdai",{adfbk:1,enter:X,len:H,aid:a});var l=p.Ta;d=d===void 0?X+H:d;X===d&&!H&&p.yn.G("html5_allow_zero_duration_ads_on_timeline")&&p.Ta.k_("sdai",{attl0d:1});X>d&&QK(p,{reason:"enterTime_greater_than_return",Dh:X,Ai:d});var t=l.Wa()*1E3;X<t&&QK(p,{reason:"enterTime_less_than_minSeekableTime",enterMs:X,minSkMs:t},p.yn.G("html5_report_ssdai_timeline_error_as_fatal")); l=l.getDuration()*1E3;d>l&&QK(p,{reason:"parent_return_greater_than_content_duration",Ai:d,nEY:l});l=null;t=g.Xv(p.W,{Ai:X},function(c,T){return c.Ai-T.Ai}); t>=0&&(l=p.W[t],l.Ai>X&&H81(p,C.video_id||"",X,d,l));if(E&&l)for(t=0;t<p.Sa.length;t++){if(p.Sa[t].identifier===E.identifier){p.Sa.splice(t,1);break}}else if(E)return p.Ta.k_("sdai",{rejectAttl:1}),a&&!Yo(p.RN,function(c){return c===a})&&(p.Ta.k_("sdai",{rejectAdBreakAttl:1}),p.RN.push(a)),rR(p),""; E="ss_childplayback_"+XKH++;p.yn.G("html5_enable_ssap_entity_id")?(C=new g.YB(p.yn,C),t=C.clientPlaybackNonce):(C.cpn||(C.cpn=g.OI(16)),t=C.cpn,C=new g.YB(p.yn,C));C.OZ=E;V={OZ:E,playerType:N,durationMs:H,Dh:X,Ai:d,cpn:t,videoData:C,errorCount:0,ssdaiAdsConfig:V};g.Ev(p.W,V,function(c,T){return c.Dh===T.Dh?c.durationMs-T.durationMs:c.Dh-T.Dh}); p.V.set(t,V);p.wy.set(E,V);p.Ta.k_("sdai",{attlDone:d-X,acpn:t});a?V.gb=a:l?V.gb=l.gb:V.gb=V.cpn;if(X=V.gb)(N=p.Z.get(X))?(N.push(V),g.hB(N,function(c,T){return c.Dh-T.Dh})):p.Z.set(X,[V]); p.b_.isActive()&&(p.Vn=!1,p.b_.stop(),VxV(p),p.mQ(!0));return E}; B$=function(p,C,V){return{ssvc:C,cpn:(V==null?void 0:V.cpn)||"",vid:(V==null?void 0:V.videoData.videoId)||"",ct:(p.Ta.getCurrentTime()||0).toFixed(3),cmt:(p.Ta.I_()||0).toFixed(3)}}; i8a=function(p,C){p.api.y4();p.api.publish("serverstitchedvideochange",C.OZ,C.fA)}; G8=function(p,C,V){var N=p.sY,H=p.XZ(),X=p.J;p.J="";var d=C.v6-V.v6;Math.abs(d)>.5&&p.Ta.k_("sdai",{ttdtb:1,delta:d,cpn:H.cpn,enter:C.adCpn,exit:V.adCpn,seek:N,skip:X});p.api.G("html5_ssdai_enable_media_end_cue_range")&&p.api.bz();if(C.isAd&&V.isAd){H=!!X;if(C.adCpn&&V.adCpn){var a=p.V.get(C.adCpn);var E=p.V.get(V.adCpn)}H?p.Ta.k_("sdai",{igtransskip:1,enter:C.adCpn,exit:V.adCpn,seek:N,skip:X}):hHy(p,E,a,V.v6,C.v6,N,H)}else if(!C.isAd&&V.isAd){p.vc=H.cpn;p.api.publish("serverstitchedvideochange"); a=B$(p,"a2c");p.Ta.k_("sdai",a);p.Fx=0;if(a=V.zN)p.UY=a.end;var l;V.adCpn&&(l=p.V.get(V.adCpn));l&&Ii(p.Ta,l,H,V.v6,C.v6,N,!!X)}else if(C.isAd&&!V.isAd){var t;C.adCpn&&(t=p.V.get(C.adCpn));t&&(p.UY=0,p.vc=t.cpn,i8a(p,t),l=B$(p,"c2a",t),p.Ta.k_("sdai",l),p.Fx=1,Ii(p.Ta,H,t,V.v6,C.v6,N,!!X))}}; szy=function(p,C,V){V=V===void 0?0:V;var N=(C+V)*1E3,H=g.Xv(p.W,{Dh:N},function(a,E){return a.Dh-E.Dh}); H=H<0?(H+2)*-1:H;if(H>=0)if($B(p.Ta.getVideoData())&&p.yn.G("html5_ssdai_overdecorate")||p.yn.G("html5_cabr_ssdai_overdecorate")){N=C*1E3;for(var X=H;X<=H+1&&X<p.W.length;X++){var d=p.W[X];if(N>=d.Dh-V*1E3&&N<=d.Ai+V*1E3)return{jI:d,KV:C}}}else if(p=p.W[H],p.Ai>=N)return{jI:p,KV:C};return{jI:void 0,KV:C}}; EwV=function(p,C){var V="";(C=a2H(p,C))&&(V=C.getId());return V?p.V.get(V):void 0}; a2H=function(p,C){if(p.vc){var V=p.C.get(p.vc);if(V&&V.start-200<=C&&V.end+200>=C)return V}p=g.F(p.C.values());for(V=p.next();!V.done;V=p.next())if(V=V.value,V.start<=C&&V.end>=C)return V}; jzv=function(p,C,V){var N=p.kM||p.api.L1().getPlayerState();p7(p,!0);p.Ta.seekTo(C,V);p=p.api.L1();C=p.getPlayerState();N.isOrWillBePlaying()&&!C.isOrWillBePlaying()?p.playVideo():N.isPaused()&&!C.isPaused()&&p.pauseVideo()}; p7=function(p,C){p.Q$=NaN;p.YM=null;p.Hc.stop();p.Qn&&C&&EXe(p.Qn);p.kM=null;p.Qn=null}; l2L=function(p){var C=C===void 0?-1:C;var V=V===void 0?Infinity:V;for(var N=[],H=g.F(p.W),X=H.next();!X.done;X=H.next())X=X.value,(X.Dh<C||X.Ai>V)&&N.push(X);p.W=N;N=g.F(p.C.values());for(H=N.next();!H.done;H=N.next())H=H.value,H.start>=C&&H.end<=V&&(p.Ta.removeCueRange(H),p.C.delete(H.getId()),p.Ta.k_("sdai",{rmAdCR:1}));N=szy(p,C/1E3);C=N.jI;N=N.KV;if(C&&(N=N*1E3-C.Dh,H=C.Dh+N,C.durationMs=N,C.Ai=H,N=p.C.get(C.cpn))){H=g.F(p.S);for(X=H.next();!X.done;X=H.next())X=X.value,X.start===N.end?X.start= C.Dh+C.durationMs:X.end===N.start&&(X.end=C.Dh);N.start=C.Dh;N.end=C.Dh+C.durationMs}if(C=szy(p,V/1E3).jI){var d;N="playback_timelinePlaybackId_"+C.OZ+"_video_id_"+((d=C.videoData)==null?void 0:d.videoId)+"_durationMs_"+C.durationMs+"_enterTimeMs_"+C.Dh+"_parentReturnTimeMs_"+C.Ai;p.SH("Invalid_clearEndTimeMs_"+V+"_that_falls_during_"+N+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; txL=function(p){p.Wr.clear();p.KS.clear();p.vr.clear();p.C.clear();p.S=[];p.W=[];p.V.clear();p.wy.clear();p.Z.clear();p.Y.clear();p.Wc=[];p.a$=null;p.cV.clear();p.Sa=[];p.qW=[];p.QZ=[];p.RN=[];p.Ga=[];p.I6.clear();p.kt.clear();p.FO.clear();p.qo.clear();p.Vn=!1;p.T=void 0;p.UY=0;p.Y_=!0;p.sY=!1;p.Fx=0;p.va=0;p.VZ=!1;p.bX=!1;p.J="";p.b_.isActive()&&rR(p)}; TQX=function(p,C,V,N,H,X){if(!p.bX)if(g.cge(p,V))p.R$&&p.Ta.k_("sdai",{gdu:"undec",seg:V,itag:H});else if(C=C7(p,C,V,N,X),!(p.Ta.getVideoData().VL()&&(C==null?0:C.LQ)))return C}; C7=function(p,C,V,N,H){var X=p.Y.get(V);if(!X){if(X=Mxy(p,C))return X;C=jM(p,V-1,N!=null?N:2);if(H)return p.Ta.k_("sdai",{misscue:H,sq:V,type:N,prevsstate:C==null?void 0:C.Ja,prevrecord:p.Y.has(V-1)}),p.Y.get(V-1);if((C==null?void 0:C.Ja)===2)return p.Ta.k_("sdai",{adnf:1,sq:V,type:N,prevrecord:p.Y.has(V-1)}),p.Y.get(V-1)}return X}; Mxy=function(p,C){C+=p.SX();if(p.yn.G("html5_lifa_overdecorate_fix"))a:{var V=1;V=V===void 0?0:V;var N=C*1E3;p=g.F(p.W);for(var H=p.next();!H.done;H=p.next()){H=H.value;var X=H.fA?H.fA*1E3:H.Dh;if(N>=H.Dh-V*1E3&&N<=X+H.durationMs+V*1E3){C={jI:H,KV:C};break a}}C={jI:void 0,KV:C}}else C=szy(p,C,1);return C.jI}; JgS=function(p,C){C=C===void 0?"":C;var V=Nn(C)||void 0;if(!C||!V){var N;p.Ta.k_("sdai",{adcfg:(N=C)==null?void 0:N.length,dcfg:V==null?void 0:V.length})}return V}; mw1=function(p){if(p.Ga.length)for(var C=g.F(p.Ga),V=C.next();!V.done;V=C.next())p.onCueRangeExit(V.value);C=g.F(p.C.values());for(V=C.next();!V.done;V=C.next())p.Ta.removeCueRange(V.value);C=g.F(p.S);for(V=C.next();!V.done;V=C.next())p.Ta.removeCueRange(V.value);p.C.clear();p.S=[];p.Wr.clear();p.KS.clear();p.vr.clear();p.T||(p.Y_=!0)}; hHy=function(p,C,V,N,H,X,d){if(C&&V){p.vc=V.cpn;i8a(p,V);var a=B$(p,"a2a",V);p.Ta.k_("sdai",a);p.Fx++;Ii(p.Ta,C,V,N||0,H||0,!!X,!!d)}else p.Ta.k_("sdai",{misspbkonadtrans:1,enter:(V==null?void 0:V.cpn)||"",exit:(C==null?void 0:C.cpn)||"",seek:X,skip:d})}; jM=function(p,C,V){if(V===1){if(p.Wr.has(C))return p.Wr.get(C)}else{if(V===2&&p.KS.has(C))return p.KS.get(C);if(V===3&&p.vr.has(C))return p.vr.get(C)}}; FbV=function(p,C,V,N){if(N)for(N=0;N<p.S.length;){var H=p.S[N];if(H.start<C&&H.end>V){var X=H.end;H.end=C;vwX(p,V,X)}else if(H.start>=C&&H.start<V&&H.end>V)H.start=V;else if(H.end>C&&H.end<=V&&H.start<C)H.end=C;else if(H.start>=C&&H.end<=V){p.Ta.removeCueRange(H);if(p.Ga.includes(H))p.onCueRangeExit(H);p.S.splice(N,1);continue}N++}else vwX(p,C,V)}; vwX=function(p,C,V){C=p.fC(C,V);V=!0;g.Ev(p.S,C,function(d,a){return d.start-a.start}); for(var N=0;N<p.S.length;){if(N>0){var H=p.S[N],X=p.S[N-1];if(Math.round(X.end/1E3)>=Math.round(H.start/1E3)){X.end=H.end;H!==C?p.Ta.removeCueRange(H):V=!1;p.S.splice(N,1);continue}}N++}if(V)for(p.Ta.addCueRange(C),C=p.Ta.YW("serverstitchedcuerange",36E5),C=g.F(C),V=C.next();!V.done;V=C.next())p.C.delete(V.value.getId())}; Vw=function(p,C,V){if(V===void 0||!V){V=g.F(p.Wc);for(var N=V.next();!N.done;N=V.next()){N=N.value;if(C>=N.start&&C<=N.end)return;if(C===N.end+1){N.end+=1;return}}p.Wc.push(new Clj(C))}}; g.cge=function(p,C){p=g.F(p.Wc);for(var V=p.next();!V.done;V=p.next())if(V=V.value,C>=V.start&&C<=V.end)return!0;return!1}; H81=function(p,C,V,N,H){var X;C={reason:"overlapping_playbacks",Ztr:C,Dh:V,Ai:N,A8a:H.OZ,xRx:((X=H.videoData)==null?void 0:X.videoId)||"",beV:H.durationMs,nQY:H.Dh,Cyr:H.Ai};QK(p,C)}; QK=function(p,C,V){p=p.Ta;p.k_("timelineerror",C);C=new qD("dai.timelineerror",C);V?p.a_("dai.timelineerror",1,"RETRYABLE_ERROR",yu(C.details)):p.oN(C)}; Ssv=function(p,C){var V=[];p=p.Z.get(C);if(!p)return[];p=g.F(p);for(C=p.next();!C.done;C=p.next())C=C.value,C.cpn&&V.push(C.cpn);return V}; KbS=function(p,C,V){var N=0;p=p.Z.get(V);if(!p)return-1;p=g.F(p);for(V=p.next();!V.done;V=p.next()){if(V.value.cpn===C)return N;N++}return-1}; Dwa=function(p,C){var V=[];p=p.Z.get(C);if(!p)return[];p=g.F(p);for(var N=p.next();!N.done;N=p.next())C=void 0,(N=(C=N.value.videoData)==null?void 0:C.videoId)&&V.push(N);return V}; uhe=function(p,C){var V=0;p=p.Z.get(C);if(!p)return 0;p=g.F(p);for(C=p.next();!C.done;C=p.next())C=C.value,C.durationMs!==0&&C.Ai!==C.Dh&&V++;return V}; Z8j=function(p,C,V){var N=!1;if(V&&(V=p.Z.get(V))){V=g.F(V);for(var H=V.next();!H.done;H=V.next())H=H.value,H.durationMs!==0&&H.Ai!==H.Dh&&(H=H.cpn,C===H&&(N=!0),N&&!p.kt.has(H)&&(p.Ta.k_("sdai",{decoratedAd:H}),p.kt.add(H)))}}; VxV=function(p){p.R$&&p.Ta.k_("sdai",{adf:"0_"+((new Date).getTime()/1E3-p.va)+"_isTimeout_"+p.Vn})}; NQQ=function(p,C,V){if(p.Sa.length)for(var N=g.F(p.Sa),H=N.next(),X={};!H.done;X={Lf:void 0},H=N.next()){X.Lf=H.value;H=X.Lf.startSecs*1E3;var d=X.Lf.uc*1E3+H;if(C>H&&C<d||V>H&&V<d)return Yo(p.QZ,function(a){return function(E){return E.identifier===a.Lf.identifier}}(X))||(p.Ta.k_("sdai",{adskip:C}),p.QZ.push(X.Lf)),X.Lf}}; rR=function(p){p.Vn=!1;p.b_.isActive()&&VxV(p);p.b_.stop();p.mQ(!1)}; ygS=function(p,C,V){g.Y.call(this);var N=this;this.api=p;this.timeline=C;this.Ta=V;this.kz=new Map;this.cz=new Map;this.Zg=new Map;this.events=new g.Rr(this);this.Fx=0;this.bG=this.vc="";this.K8=[];this.zS=new Set;this.gw=new g.N8(function(){N.api.playVideo(1,N.api.G("html5_ssap_keep_media_on_finish_segment"));N.api.k_("ssap",{nve:""+N.vc});UwV(N,4)},3E4); this.qA="";this.B9=new Set;this.aG=!0;this.K5=new Map;this.RR=new Set;this.zo=this.Jv=!1;this.IB="";this.yM=null;this.Sr={RT$:function(){return N.cz}, Tb:function(H){if(H=N.cz.get(H))N.onCueRangeEnter(H)}, onCueRangeEnter:function(H){N.onCueRangeEnter(H)}, mrn:function(){return N.Jv}}; this.Ta.getPlayerType();f2L(this);C.V=void 0;this.events.U(this.api,g.Ez("ssap"),this.onCueRangeEnter);this.events.U(this.api,"internalAbandon",this.f8);this.api.G("html5_ssap_timeline_handle_error_and_abandon")&&this.events.U(this.api,"presentingplayerstatechange",this.wi);g.R(this,this.gw);this.b9_=g.mi(p.K().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.l4=p.G("html5_disable_ssap_append_pause");this.Jv=O8X(this)}; qsa=function(p,C,V,N){for(var H=p.Ta.Xp(),X=g.F(N),d=X.next();!d.done;d=X.next()){var a=d.value;a.C||((d=$a(a),a=a.getVideoData(),d&&a&&H.ip(d,a,2),a)?d||(a=void 0,p.api.k_("ssap",{macac:d,maccc:(a=p.timeline.T)==null?void 0:$a(a)})):(a=void 0,p.api.k_("ssap",{mvac:d,mvcc:(a=p.timeline.T)==null?void 0:$a(a)})))}return Lv(p.timeline,C,V,N)}; b8V=function(p,C){if(!p.zS.has(p.vc)){var V=0,N=0,H=jP(p.timeline,p.vc);if(H==null?0:H.length)for(H=g.F(H),H=H.next();!H.done;H=H.next()){N=H.value;V=N.r6();N=N.Ag();break}if(!(N>0&&N>C*1E3+p.b9_)&&(N=I2v(p,V))){C=!1;V=void 0;N=g.F(N.segments);for(H=N.next();!H.done;H=N.next()){H=H.value;if(C){V=H;break}$a(H)===p.vc&&(C=!0)}N=void 0;if(V)N=$a(V);else if(C){var X;N=(X=p.timeline.T)==null?void 0:$a(X)}if(N)p.finishSegmentByCpn(p.vc,N,2,void 0);else{var d;p.api.k_("ssap",{mfnc:1,mfncc:(d=p.timeline.T)== null?void 0:$a(d)})}}}}; O8X=function(p){return p.api.G("html5_force_ssap_gapful_switch")||p.api.G("html5_ssap_enable_legacy_browser_logic")&&!rN()}; kYL=function(p,C,V,N){p.Zg.set(C,N);Agu(p,C,V);owL(p,V)}; zJ=function(p,C){p=jP(p.timeline,C);return(p==null?0:p.length)?p[0].r6():0}; R8=function(p,C){var V=V===void 0?!1:V;var N=p.timeline.T;if(!N)return{clipId:"",SI:0};var H=xwH(p,C,V);if(H)return{clipId:$a(H)||"",SI:H.r6()};p.api.k_("mci",{cs:$a(N),mt:C,tl:fA(p),invt:!!V});return{clipId:"",SI:0}}; GG=function(p){var C=p.timeline.T;if(!C)return 0;p=0;if(C.T.size===0)return(C.Ag()-C.r6())/1E3;C=C.T.values();C=g.F(C);for(var V=C.next();!V.done;V=C.next()){V=g.F(V.value);for(var N=V.next();!N.done;N=V.next())N=N.value,p+=(N.Ag()-N.r6())/1E3}return p}; zHQ=function(p,C){return(p=YsX(p,C*1E3))?p.r6():0}; RHQ=function(p,C){var V=jP(p.timeline,C);C=0;if(V==null?0:V.length)for(p=g.F(V),V=p.next();!V.done;V=p.next())V=V.value,C+=(V.Ag()-V.r6())/1E3;else return GG(p);return C}; YsX=function(p,C){if(p=jP(p.timeline,p.vc)){p=g.F(p);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.r6()<=C&&V.Ag()>=C)return V}}; nw1=function(p){var C=p.Ta.getVideoData();p.vc&&(p=p.kz.get(p.vc))&&(C=p);return C}; I2v=function(p,C,V){V=V===void 0?!1:V;var N=p.timeline.T;if(N){N=N.T;var H=Array.from(N.keys());g.hB(H);C=g.Xv(H,C);C=N.get(H[C<0?(C+2)*-1:C]);if(!V&&C){V=g.F(C);for(C=V.next();!C.done;C=V.next())if(C=C.value,C.r6()!==C.Ag())return C;return p.timeline}return C&&C.length>0?C[C.length-1]:void 0}}; xwH=function(p,C,V){V=V===void 0?!1:V;var N=I2v(p,C,V);if(N){if(p=N.segments,p.length){for(var H=g.F(p),X=H.next();!X.done;X=H.next())if(X=X.value,X.r6()<=C&&X.Ag()>C)return X;if(V&&N.r6()===N.Ag())return p[0]}}else p.api.k_("ssap",{ctnf:1})}; UwV=function(p,C){var V;if(p.qA)for(V=p.K8.shift();V&&V!==p.qA;)V=p.K8.shift();else V=p.K8.shift();if(V){if(p.zS.has(V))eHe(p,V);else if(C===3||C===4)p.gw.stop(),p.api.playVideo(1,p.api.G("html5_ssap_keep_media_on_finish_segment"));p.Zg.set(p.vc,C);p.api.k_("ssap",{onvftn:1});owL(p,V);return!1}p.api.k_("ssap",{onvftv:1});p.gw.stop();return!0}; eHe=function(p,C){C=jP(p.timeline,C);if(C==null?0:C.length)p.api.pauseVideo(),p.gw.start(C[0].vu)}; owL=function(p,C){var V=p.Ta.getVideoData(),N=V.clientPlaybackNonce;p.yM&&(p.events.rY(p.yM),p.yM=null,p.Ta.NT=-1);var H=p.vc,X=!1;if(H==="")H=N,X=!0;else if(H===void 0){var d=p.Ta.Xp().tp;d&&p.timeline.C.has(d)&&(H=d);p.api.k_("ssap",{mcc:H+";"+C});p.Ta.oN(new qD("ssap.timelineerror",{e:"missing_current_cpn",pcpn:H,ccpn:C}))}if(H===C)X&&V&&PlV(p,V,X);else{d=p.Zg.get(H);if(!X&&(!d||d!==3&&d!==5&&d!==6&&d!==7)){var a=p.api.bz(p.vc);p.api.k_("ssap",{nmec:a,cpc:p.vc,ec:C})}d&&d!==2||NS(p);p.vc=C;NS(p); C=jP(p.timeline,p.vc);if(C==null?0:C.length){C=C[0];a=C.getType();H!==N&&(p.bG=H,V=p.kz.get(H));d?p.Zg.delete(H):d=X?1:2;p.api.G("html5_ssap_pacf_qoe_ctmp")&&a===2&&!C.C&&(p.yM=p.events.U(p.api,"onVideoProgress",p.lEa));p.api.k_("ssapt",{ostro:d,pcpn:H,ccpn:p.vc});a:{var E=p.vc;if(!p.cz.has(E))for(var l=g.F(p.cz),t=l.next();!t.done;t=l.next()){var c=g.F(t.value);t=c.next().value;c=c.next().value;if(c.getId().includes(E)){E=t;break a}}}t=E;l=p.api.K().G("html5_ssap_insert_su_before_nonvideo")&&t!== p.vc;c=p.Ta.Xp();if(c.tp!==t){var T=c.Pc(c.tp);E=c.Pc(t);c.tp=t;E!==T&&(T.qoe&&(t=T.qoe,t.provider.yn.Gk()&&t.k_("ssap",{qoesus:"1",vid:t.provider.videoData.videoId}),l&&(l=g.Zn(t.provider),YZj(t,l,"SU")),isNaN(t.Y)||g.Dr(t.Y)),E.resume())}E=Math.max(0,HN(p,H));l=p.Ta.getCurrentTime();l=Math.max(0,l-zJ(p,p.vc)/1E3);t=C.getVideoData();var M=d===3||d===5||d===6||d===7;p.api.G("html5_ssap_skip_illegal_seeking")&&(c=p.Ta.getPlayerState(),c=!g.r(c,8)&&g.r(c,16),M=M||c,c&&p.api.k_("ssap",{iis:1}));c=p.Ta.Xp(); T=H;var J=p.vc,S=p.Ta.getPlayerState();if(T!==J){var D=c.Pc(T),Z=c.Pc(J),f,q=T===((f=D.getVideoData())==null?void 0:f.clientPlaybackNonce),A;f=J===((A=Z.getVideoData())==null?void 0:A.clientPlaybackNonce);var z;A=q?((z=D.getVideoData())==null?void 0:z.videoId)||"":"nvd";var Q;z=f?((Q=Z.getVideoData())==null?void 0:Q.videoId)||"":"nvd";q&&(Q=D.qoe)!=null&&(A6(Q,4,M?4:0,J,z,E),Q.reportStats());f&&($b(Z),(Q=Z.qoe)!=null&&(A6(Q,4,M?5:1,T,A,l),Q.reportStats()),JH1(Z,new g.Kt(S,Z.g7)),TLS(Z));udv(c,T)}p.api.k_("ssapt", {ostri:d,pcpn:H,ccpn:p.vc});var P;OZL(H,p.vc,N,t,(P=p.K5.get(H))!=null?P:(0,g.Ip)(),V);p.K5.delete(H);X?V=void 0:V||p.api.k_("ssap",{pvdm:H+";"+p.vc,pvdmc:p.vc===N?"1":"0"});p.api.k_("ssap",{tpac:H+";"+p.vc,tpcc:N,tpv:(t==null?0:t.GN())?"1":"0"},!1,1);p.api.K().G("html5_ssap_cleanup_player_switch_ad_player")&&p.api.y4();p.api.publish("videodatachange","newdata",t,a,V,d);C.C||p.Ta.getVideoData().publish("dataupdated");p.zS.delete(H);p.qA="";t&&a===1?PlV(p,t):p.Ta.k_("ssap",{nis:p.vc});a===2?p.Fx++: p.Fx=0}}}; PlV=function(p,C,V){V=V===void 0?!1:V;if(C.startSeconds&&p.aG){var N=C.startSeconds;C=jP(p.timeline,C.clientPlaybackNonce);if(C==null?0:C.length)N+=C[0].r6()/1E3,p.api.G("htm5_ssap_ignore_initial_seek_if_too_big")&&N>=p.rl()||(p.Ta.seekTo(N,{tJ:!0}),p.aG=!1,p.Ta.k_("ssap",{is:p.vc,co:V?"1":"0",tse:N.toFixed()}))}}; Agu=function(p,C,V){C=jP(p.timeline,C);if(C!=null&&C.length&&(C=I2v(p,C[0].r6()))){C=g.F(C.segments);for(var N=C.next();!N.done;N=C.next()){N=N.value;if($a(N)===V)break;if(N=$a(N)){var H=p.cz.get(N);H&&p.Ta.removeCueRange(H);p.cz.delete(N)}}}}; lQ=function(p){return p.Ta.getVideoData().clientPlaybackNonce}; qWa=function(p,C){if(p.Jv&&p.vc!==C)return!1;if(p.l4)return!0;if(C=p.cz.get(C))if(C=C.getId().split(","),C.length>1)for(var V=0;V<C.length;V++){var N=V<C.length-1?C[V+1]:"";if(p.zS.has(C[V]))return C[V]===p.vc&&!p.zS.has(N)}return!0}; tvQ=function(p,C,V){xwH(p,C)||p.Ta.k_("ssap",{ilgsk:C.toFixed(),mep:V?"1":"0",tl:fA(p)})}; NS=function(p){var C=p.vc,V=p.kz.get(C)||p.Ta.getVideoData();V&&(p=p.Ta.getCurrentTime()-zJ(p,C)/1E3,V.hg=p>0?p:0)}; HN=function(p,C){C=C||p.vc;var V=p.kz.get(C);return V?V.hg:C!==lQ(p)?0:p.Ta.getVideoData().hg}; fA=function(p){var C=p.vc;C||(C=p.Ta.getVideoData().clientPlaybackNonce);var V,N,H=Array.from((N=(V=p.timeline.T)==null?void 0:V.T.values())!=null?N:[]);V=[];if(H==null?0:H.length)for(N=g.F(H),H=N.next();!H.done;H=N.next())if(H=H.value,H.length&&H[0]&&(H=H[0].segments,H.length)){H=g.F(H);for(var X=H.next();!X.done;X=H.next()){var d=X.value;X="st."+d.r6()+";";X+="et."+d.Ag()+";";var a=$a(d);a&&(X+="cpn."+a+";",X+="a."+(C===a?1:0)+";");if(d=d.getVideoData())a=void 0,X+="vid."+((a=d.videoId)!=null?a: "nvd");V.push(X)}}return(V.length?V.join(","):"empty."+C)+";cpcpn."+p.yv()}; f2L=function(p){p.Ta.bK(Array.from(p.cz.values()));p.cz.clear()}; $wL=function(p,C,V){g.Y.call(this);var N=this;this.api=p;this.yn=C;this.T=V;this.Y=new Map;this.C=[];this.V=this.D=null;this.a$=NaN;this.W=this.S=this.Z=null;this.J=new g.N8(function(){wKL(N,N.a$,N.Z||void 0)}); this.b_=[];this.sY=new g.N8(function(){var H=N.b_.pop();if(H){var X=H.OZ,d=H.playerVars;H=H.playerType;d&&(d.prefer_gapless=!0,N.api.preloadVideoByPlayerVars(d,H,NaN,"",X),N.b_.length&&g.HF(N.sY,4500))}}); this.events=new g.Rr(this);V.getPlayerType();g.R(this,this.J);g.R(this,this.sY);g.R(this,this.events);this.events.U(this.api,g.Ez("childplayback"),this.onCueRangeEnter);this.events.U(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.U(this.api,"presentingplayerstatechange",this.wi)}; Qzj=function(p,C,V,N,H,X){var d=C.cpn,a=C.docid||C.video_id||C.videoId||C.id,E=p.T;X=X===void 0?H+N:X;if(H>X)return dJ(p,"enterAfterReturn enterTimeMs="+H+" is greater than parentReturnTimeMs="+X.toFixed(3),d,a),"";var l=E.Wa()*1E3;if(H<l)return dJ(p,"enterBeforeMinSeekable enterTimeMs="+H+" is less than parentMinSeekableTimeMs="+l,d,a),"";l=E.getDuration()*1E3;if(X>l)return E="returnAfterDuration parentReturnTimeMs="+X.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+ E.yZ(),dJ(p,E,d,a),"";l=null;for(var t=g.F(p.C),c=t.next();!c.done;c=t.next()){c=c.value;if(H>=c.Dh&&H<c.Ai)return dJ(p,"overlappingEnter",d,a),"";if(X<=c.Ai&&X>c.Dh)return dJ(p,"overlappingReturn",d,a),"";if(X===c.Dh)return dJ(p,"outOfOrder",d,a),"";H===c.Ai&&(l=c)}d="cs_childplayback_"+LbS++;a={zN:ij(N,!0),Y5:Infinity,target:null};var T={OZ:d,playerVars:C,playerType:V,durationMs:N,Dh:H,Ai:X,Xn:a};p.C=p.C.concat(T).sort(function(S,D){return S.Dh-D.Dh}); l?gwa(p,l,{zN:ij(l.durationMs,!0),Y5:l.Xn.Y5,target:T}):(C={zN:ij(H,!1),Y5:H,target:T},p.Y.set(C.zN,C),E.addCueRange(C.zN));C=!0;if(p.T===p.api.L1()&&(E=E.getCurrentTime()*1E3,E>=T.Dh&&E<T.Ai)){var M=p.api.L1().getPlayerState(),J=E-T.Dh;t8(function(){WbX(p,T,J/1E3,{},M)}); C=!1}C&&(p.b_.unshift(T),g.HF(p.sY,0));return d}; ij=function(p,C){return new g.sz(Math.max(0,p-5E3),C?0x8000000000000:p-1,{namespace:"childplayback",priority:9})}; rga=function(p,C,V,N){p.V=N;p.api.KC(p.T,V,C)}; BQS=function(p,C,V,N){p.V=N;N=C.OZ;var H=C.playerVars,X=C.playerType;p.D=C;H&&(p.yn.G("html5_enable_ssap_entity_id")&&(H.cached_load=!0),p.api.enqueueVideoByPlayerVars(H,X,V,N))}; gwa=function(p,C,V){var N=C.Xn;C.Xn=V;hX(p,C)&&(V=p.api.L1(),N.zN===p.V&&aC(p),V.removeCueRange(N.zN),V.addCueRange(C.Xn.zN))}; aC=function(p){p.D=null;p.V=null;p.api.SS()||p.api.clearQueue()}; GYj=function(p,C){hX(p,C)||dJ(p,"childPlaybackIsNotPresenting");return C.Ai===C.Dh+C.durationMs?(p=p.api.L1(),C.Dh+p.getCurrentTime()*1E3):C.Ai}; ptH=function(p,C){var V=0;p=g.F(p.C);for(var N=p.next();!N.done;N=p.next()){N=N.value;var H=N.Dh/1E3+V,X=H+N.durationMs/1E3;if(H>C)break;if(X>C)return{jI:N,KV:C-H};V=X-N.Ai/1E3}return{jI:null,KV:C-V}}; wKL=function(p,C,V){V=V===void 0?{}:V;var N=p.W||p.api.L1().getPlayerState();Et(p,!0);C=isFinite(C)?C:p.T.S1();var H=ptH(p,C);C=H.jI;H=H.KV;var X=C&&!hX(p,C)||!C&&p.T!==p.api.L1(),d=H*1E3;d=p.V&&p.V.start<=d&&d<=p.V.end;!X&&d||aC(p);C?WbX(p,C,H,V,N):CCX(p,H,V,N)}; CCX=function(p,C,V,N){var H=p.T,X=p.api.L1();H!==X&&p.api.Kr();H.seekTo(C,Object.assign({},{NZ:"application_timelinemanager"},V));jyV(p,N)}; WbX=function(p,C,V,N,H){var X=hX(p,C);if(!X){C.playerVars.prefer_gapless=!0;p.yn.G("html5_enable_ssap_entity_id")&&(C.playerVars.cached_load=!0);var d=new g.YB(p.yn,C.playerVars);d.OZ=C.OZ;p.api.Kv(d,C.playerType)}d=p.api.L1();X||d.addCueRange(C.Xn.zN);d.seekTo(V,Object.assign({},{NZ:"application_timelinemanager"},N));jyV(p,H)}; jyV=function(p,C){p=p.api.L1();var V=p.getPlayerState();C.isOrWillBePlaying()&&!V.isOrWillBePlaying()?p.playVideo():C.isPaused()&&!V.isPaused()&&p.pauseVideo()}; Et=function(p,C){p.a$=NaN;p.Z=null;p.J.stop();p.S&&C&&EXe(p.S);p.W=null;p.S=null}; hX=function(p,C){p=p.api.L1();return!!p&&p.getVideoData().OZ===C.OZ}; VAy=function(p){var C=p.C.find(function(H){return hX(p,H)}); if(C){var V=p.api.L1();aC(p);var N=new g.cj(8);C=GYj(p,C)/1E3;CCX(p,C,{},N);V.k_("forceParentTransition",{childPlayback:1});p.T.k_("forceParentTransition",{parentPlayback:1})}}; Hlu=function(p,C,V){C=C===void 0?-1:C;V=V===void 0?Infinity:V;for(var N=C,H=V,X=g.F(p.Y),d=X.next();!d.done;d=X.next()){var a=g.F(d.value);d=a.next().value;a=a.next().value;a.Y5>=N&&a.target&&a.target.Ai<=H&&(p.T.removeCueRange(d),p.Y.delete(d))}N=C;H=V;X=[];d=g.F(p.C);for(a=d.next();!a.done;a=d.next())if(a=a.value,a.Dh>=N&&a.Ai<=H){var E=p;E.D===a&&aC(E);hX(E,a)&&E.api.Kr()}else X.push(a);p.C=X;N=ptH(p,C/1E3);C=N.jI;N=N.KV;C&&(N*=1E3,Niy(p,C,N,C.Ai===C.Dh+C.durationMs?C.Dh+N:C.Ai));(C=ptH(p,V/1E3).jI)&& dJ(p,"Invalid clearEndTimeMs="+V+" that falls during playback={timelinePlaybackId="+(C.OZ+" video_id="+C.playerVars.video_id+" durationMs="+C.durationMs+" enterTimeMs="+C.Dh+" parentReturnTimeMs="+C.Ai+"}.Child playbacks can only have duration updated not their start."))}; Niy=function(p,C,V,N){C.durationMs=V;C.Ai=N;N={zN:ij(V,!0),Y5:V,target:null};gwa(p,C,N);hX(p,C)&&p.api.L1().getCurrentTime()*1E3>V&&(C=GYj(p,C)/1E3,V=p.api.L1().getPlayerState(),CCX(p,C,{},V))}; dJ=function(p,C,V,N){p.T.k_("timelineerror",{e:C,cpn:V?V:void 0,videoId:N?N:void 0})}; dCu=function(p){p&&p!=="web"&&Xta.includes(p)}; cN=function(p,C){g.Y.call(this);var V=this;this.data=[];this.V=p||NaN;this.C=C||null;this.T=new g.N8(function(){lj(V);tX(V)}); g.R(this,this.T)}; ilQ=function(p){lj(p);return p.data.map(function(C){return C.value})}; lj=function(p){var C=(0,g.Ip)();p.data.forEach(function(V){V.expire<C&&TR(p,V,!0)}); p.data=g.JT(p.data,function(V){return!(V.expire<C)})}; TR=function(p,C,V){V&&p.C&&p.C(C.value)}; tX=function(p){p.T.stop();var C=Infinity;for(var V=g.F(p.data),N=V.next();!N.done;N=V.next())N=N.value,N.expire<C&&(C=N.expire);C&&isFinite(C)&&(C=Math.max(C-Date.now(),100),p.T.start(C))}; MS=function(){g.Y.call(this);this.T=new cN(5,null);g.R(this,this.T);this.C=new cN(15,null);g.R(this,this.C)}; $AY=function(p,C){return C?!!p.T.get(C):!1}; hmy=function(p,C){p.dataset.version=C}; EhX=function(p){g.L.call(this,{L:"div",i_:["html5-video-player"],X:{tabindex:p.K().disableOrganicUi?"":"-1",id:p.webPlayerContextConfig?p.webPlayerContextConfig.rootElementId:p.config.attrs.id},j:[{L:"div",B:g.wr.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var C=this;this.app=p;this.Ss=this.rV(g.wr.VIDEO_CONTAINER);this.Sn=new g.vf(0,0,0,0);this.F0=null;this.KZ=new g.vf(0,0,0,0);this.Dy=this.oL=this.Qj=NaN;this.Bt=this.Bg=this.eK=this.zZ=!1;this.nR=NaN;this.Go=!1;this.T4=null;this.Gl=function(){C.element.focus({preventScroll:!0})}; this.r5=function(){C.app.ea.publish("playerUnderlayVisibilityChange","visible");C.F0.classList.remove(g.wr.VIDEO_CONTAINER_TRANSITIONING);C.F0.removeEventListener(Sm,C.r5);C.F0.removeEventListener("transitioncancel",C.r5)}; var V=this.element.addEventListener,N=this.element.removeEventListener;this.addEventListener=function(X,d,a){V.apply(C.element,[X,d,a])}; this.removeEventListener=function(X,d,a){N.apply(C.element,[X,d,a])}; var H=p.K();H.transparentBackground&&this.DO("ytp-transparent");H.controlsType==="0"&&this.DO("ytp-hide-controls");g.Ed(this.element,"ytp-exp-bottom-control-flexbox");g.Ed(this.element,"ytp-modern-caption");H.G("enable_new_paid_product_placement")&&!g.LI(H)&&g.Ed(this.element,"ytp-exp-ppp-update");H.G("html5_enable_ssap")&&g.Ed(this.element,"ytp-ssap");H.G("enable_cairo_refresh_web")&&g.Ed(this.element,"ytp-cairo-refresh");H.G("html5_livebadge_color_update")?g.Ed(this.element,"ytp-livebadge-color-experiment"): g.Ed(this.element,"ytp-livebadge-color-control");H.G("enable_cairo_refresh_signature_moments_web")&&g.Ed(this.element,"ytp-cairo-refresh-signature-moments");H.G("web_always_show_scrubber")&&g.Ed(this.element,"ytp-persistent-scrubber");hmy(this.element,sy1(p));this.T8=!1;this.Ko=new g.KG(NaN,NaN);aGj(this);this.U(p.ea,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; aGj=function(p){function C(){p.F0&&JX(p);mP(p)!==p.Go&&p.resize()} function V(d,a){p.mL(d,a)} function N(d){d.getVideoData()&&p.updateVideoData(d.getVideoData())} function H(){p.KZ=new g.vf(0,0,0,0);p.Sn=new g.vf(0,0,0,0)} var X=p.app.ea;X.addEventListener("initializingmode",H);X.addEventListener("videoplayerreset",N);X.addEventListener("videodatachange",V);X.addEventListener("presentingplayerstatechange",C);p.addOnDisposeCallback(function(){X.removeEventListener("initializingmode",H);X.removeEventListener("videoplayerreset",N);X.removeEventListener("videodatachange",V);X.removeEventListener("presentingplayerstatechange",C)})}; tAu=function(p){var C=g.O5(p.app),V=C=C?C.getVideoData():null;if(C==null?0:g.pf(C))V=p.app.ea.getVideoData();if(V){if(g.UW(V)||g.ff(V)||g.OW(V))return 16/9;if(ds(V)&&V.V.T)return p=V.V.videoInfos[0].video,lGS(p.width,p.height)}return(p=p.F0)?lGS(p.videoWidth,p.videoHeight):16/9}; cZy=function(p,C,V,N){var H=V,X=lGS(C.width,C.height);p.zZ?H=V<X?Infinity:0:isNaN(p.Dy)?isNaN(p.oL)||(H=p.oL):H=p.Dy;isFinite(H)||(H=Math.max(V,X));p=H>X?{width:C.width,height:C.width/H,aspectRatio:H}:H<X?{width:C.height*H,height:C.height,aspectRatio:H}:{width:C.width,height:C.height,aspectRatio:X};N||isNaN(V)||(V>H?p.width=p.height*V:V<H&&(p.height=p.width/V),p.aspectRatio=V);return p}; lGS=function(p,C){return Math.abs(TiH*C-p)<1||Math.abs(TiH/p-C)<1?TiH:p/C}; mP=function(p){if(p.app.getAppState()===1)return!1;if(p.app.getAppState()===6)return!0;var C=g.O5(p.app);if(!C||C.iX())return!1;p=p.app.ea.getPlayerStateObject();C=!g.r(p,2)||C&&C.getVideoData().J;var V=g.r(p,1024);return p&&C&&!V&&!p.isCued()}; JX=function(p){var C=p.app.K().controlsType==="3"&&!p.Bt&&mP(p)&&!p.app.wZ||!1;p.F0.controls=C;p.F0.tabIndex=C?0:-1;C?p.F0.removeEventListener("focus",p.Gl):p.F0.addEventListener("focus",p.Gl)}; MAX=function(p){var C=p.KO(),V=1,N=!1,H=cZy(p,C,p.getVideoAspectRatio()),X=p.app.K(),d=X.G("enable_desktop_player_underlay"),a=UZu(),E=g.mi(X.experiments,"player_underlay_min_player_width");E=d&&p.eK&&p.getPlayerSize().width>E;if(mP(p)){var l=tAu(p);var t=isNaN(l)||g.G4||PI&&g.D1||E;BW&&!g.JB(601)?l=H.aspectRatio:t=t||X.controlsType==="3";t?E?(t=X.G("place_shrunken_video_on_left_of_player")?16:p.getPlayerSize().width-C.width-16,l=Math.max((p.getPlayerSize().height-C.height)/2,0),t=new g.vf(t,l,C.width, C.height),p.F0.style.setProperty("border-radius","12px")):t=new g.vf(0,0,C.width,C.height):(V=H.aspectRatio/l,t=new g.vf((C.width-H.width/V)/2,(C.height-H.height)/2,H.width/V,H.height),V===1&&g.D1&&(l=t.width-C.height*l,l>0&&(t.width+=l,t.height+=l)));g.Tz(p.element,"ytp-fit-cover-video",Math.max(t.width-H.width,t.height-H.height)<1);if(a||p.T8)p.F0.style.display="";p.Go=!0}else{t=-C.height;BW?t*=window.devicePixelRatio:g.gG&&(t-=window.screen.height);t=new g.vf(0,t,C.width,C.height);if(a||p.T8)p.F0.style.display= "none";p.Go=!1}Fj(p.KZ,t)||(p.KZ=t,g.yj(X)?(p.F0.style.setProperty("width",t.width+"px","important"),p.F0.style.setProperty("height",t.height+"px","important")):g.b4(p.F0,t.getSize()),N=new g.Fn(t.left,t.top),g.OE(p.F0,Math.round(N.x),Math.round(N.y)),N=!0);C=new g.vf((C.width-H.width)/2,(C.height-H.height)/2,H.width,H.height);Fj(p.Sn,C)||(p.Sn=C,N=!0);g.K2(p.F0,"transform",V===1?"":"scaleX("+V+")");d&&E!==p.Bg&&(E&&(p.F0.addEventListener(Sm,p.r5),p.F0.addEventListener("transitioncancel",p.r5),p.F0.classList.add(g.wr.VIDEO_CONTAINER_TRANSITIONING)), p.Bg=E,p.app.ea.publish("playerUnderlayVisibilityChange",p.Bg?"transitioning":"hidden"));return N}; JZ1=function(){this.csn=g.bz();this.clientPlaybackNonce=null;this.elements=new Set;this.V=new Set;this.T=new Set;this.C=new Set}; mCs=function(p){if(p.csn!==g.bz())if(p.csn==="UNDEFINED_CSN")p.csn=g.bz();else{var C=g.bz(),V=g.IW();if(C&&V){p.csn=C;for(var N=g.F(p.elements),H=N.next();!H.done;H=N.next())(H=H.value.visualElement)&&H.isClientVe()&&C&&V&&(g.Zr("combine_ve_grafts")?fz(ZF(),H,V):g.NU(g.Cq)(void 0,C,V,H))}if(C)for(p=g.F(p.T),V=p.next();!V.done;V=p.next())(V=V.value.visualElement)&&V.isClientVe()&&g.hO(C,V)}}; g.vN=function(p,C,V,N){g.Y.call(this);var H=this;this.logger=new g.HI("App");this.wZ=this.Cq=!1;this.Ol={};this.HC=[];this.w4=!1;this.xC=null;this.intentionalPlayback=!1;this.eL=!0;this.HN=!1;this.uE=this.RL=null;this.PY=!0;this.mediaElement=this.Sb=null;this.tH=NaN;this.Be=!1;this.Dd=this.Eo=this.Ze=this.PV=this.screenLayer=this.n4=this.playlist=null;this.Sr={RI:function(){return H.Ze}, hK:function(E){H.Ze=E}, Sp:function(E,l){H.Ze&&H.Ze.Sp(E,l)}}; this.logger.debug("constructor begin");this.config=pos(C||{});this.webPlayerContextConfig=V;lK1();C=this.config.args||{};this.yn=new xS(C,V,V?V.canaryState:this.config.assets.player_canary_state,N,this);g.R(this,this.yn);g8a(this.yn);N=QUv(this.yn);this.yn.experiments.OY("jspb_serialize_with_worker")&&W2S();this.yn.experiments.OY("gzip_gel_with_worker")&&zoa();this.yn.C&&!vhV&&(window.addEventListener(vg?"touchstart":"click",K7s,{capture:!0,passive:!0}),vhV=!0);this.G("html5_onesie")&&(this.z7=new oB(this.yn), g.R(this,this.z7));this.Cc=iO(uL(this.yn)&&!0,C.enablesizebutton);this.NJ=iO(!1,C.player_wide);this.visibility=new n8H;g.R(this,this.visibility);this.G("web_log_theater_mode_visibility")&&this.gB(iO(!1,C.player_wide));this.Cq=iO(!1,C.external_list);this.events=new g.Rr(this);g.R(this,this.events);this.G("start_client_gcf")&&(kJ(Rh(),{Xk:lR,L0:hoV()}),this.EH=Rh().resolve(lR),EFV(this.EH));this.mt_=new SQ;g.R(this,this.mt_);this.fV=new JZ1;C=new KT;this.ea=new g.xj(this,C);g.R(this,this.ea);this.template= new EhX(this);g.R(this,this.template);this.appState=1;this.zU=FFs(this);g.R(this,C);C={};this.ih=(C.internalvideodatachange=this.sU,C.playbackready=this.v_e,C.playbackstarted=this.znS,C.statechange=this.iSk,C);this.uA=new ZT(this.ea);this.C7=Sxs(this);C=this.G("html5_load_wasm");var X=this.G("html5_allow_asmjs");if(C&&KF1||X)this.yn.I5=h9H(this.C7,X),MO(Tv(this.yn.I5,function(E){H.yn.TN=E;var l;(l=g.O5(H))==null||l.k_("wasm",{a:E.XA})}),function(E){g.eG(E); E="message"in E&&E.message||E.toString()||"";var l;(l=g.O5(H))==null||l.k_("wasm",{e:E})}); else if(C&&!KF1){var d;(d=g.O5(this))==null||d.k_("wasm",{e:"wasm unavailable"})}this.mM=new MM1(this.yn,this.C7);this.ea.publish("csiinitialized");d=10;g.bH(this.yn)&&(d=3);$S(this.yn)&&(d=g.mi(this.yn.experiments,"tvhtml5_unplugged_preload_cache_size"));d=new cN(d,function(E){E!==g.O5(H,E.getPlayerType())&&E.dispose()}); g.R(this,d);this.Lq=new e7V(d,{});this.Mo=DCe(this);this.Mo.setPlaybackRate(this.yn.S?1:uZV(this,Number(g.zW("yt-player-playback-rate"))||1));g.TB(this.Mo,this.ih,this);xAQ(this.Mo);d={};this.AN=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.rd,d.sabrCaptionsDataLoaded=this.b1a,d.endseeking=this.vy,d.internalAbandon=this.f8,d.internalaudioformatchange=this.jB,d.internalvideodatachange=this.onVideoDataChange,d.internalvideoformatchange= this.yX,d.liveviewshift=this.kkY,d.playbackstalledatstart=this.W6S,d.progresssync=this.tbr,d.onAbnormalityDetected=this.Ci,d.onSnackbarMessage=this.onSnackbarMessage,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.M$,d.SEEK_TO=this.sNr,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.onPlaybackPauseAtStart=this.Nye,d.playbackready=this.Gko,d.statechange=this.O3,d.newelementrequired=this.iV,d.heartbeatparams=this.i7, d.videoelementevent=this.VG,d.drmoutputrestricted=this.onDrmOutputRestricted,d.signatureexpired=this.mZa,d.nonfatalerror=this.mWn,d.reloadplayer=this.wc$,d);this.Ql=new g.Rr(this);g.R(this,this.Ql);this.wz=new MS;g.R(this,this.wz);this.U$=this.oY=-1;this.Tx=new g.N8(this.template.resize,16,this.template);g.R(this,this.Tx);this.GB=new $wL(this.ea,this.yn,this.Mo);this.W_=new wR(this.yn);this.tX=new x0u(this);g.R(this,this.tX);this.TX=new Ya(this);g.R(this,this.TX);dCu(this.yn.T.c);this.events.U(this.ea, g.Ez("appapi"),this.E_a);this.events.U(this.ea,g.lG("appapi"),this.u$V);this.events.U(this.ea,g.Ez("appprogressboundary"),this.Byk);this.events.U(this.ea,g.lG("applooprange"),this.A3);this.events.U(this.ea,"presentingplayerstatechange",this.wi);this.events.U(this.ea,"resize",this.Xcn);this.template.u_(BG(document,p));this.events.U(this.ea,"offlineslatestatechange",this.z6Y);this.C7.N.K().uM&&nn(this.C7,"offline");this.yn.UY&&g.qA("ux",g.ka);p=g.mi(this.yn.experiments,"html5_defer_fetch_att_ms");this.Z6= new g.N8(this.GN$,p,this);g.R(this,this.Z6);this.DE().GN()&&(g.nK()&&this.DE().Vn.push("remote"),ZlQ(this));this.mM.tick("fs");UCY(this);if(this.yn.Gk()&&this.yn.G("html5_record_h5vcc_flags")){var a;(a=g.O5(this))==null||a.k_("h5vcc",N)}this.yn.UY&&nn(this.C7,"ux",!0);g.KI(this.C7.N.K())&&nn(this.C7,"embed");this.G("web_player_sentinel_is_uniplayer")||g.eG(new g.Bw("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.G("web_player_sentinel_yt_experiments_sync");p=g.Zr("web_player_sentinel_yt_experiments_sync"); a!==p&&g.eG(new g.Bw("b/195699950",{yt:a,player:p}));V||g.eG(new g.Bw("b/179532961"));this.XK=fGy(this);if(V=g.mi(this.yn.experiments,"html5_block_pip_safari_delay"))this.ow=new g.N8(this.E0,V,this),g.R(this,this.ow);zQ=this.yn.va;V=g.mi(this.yn.experiments,"html5_performance_impact_profiling_timer_ms");V>0&&(this.XJ=new g.Ib(V),g.R(this,this.XJ),this.events.U(this.XJ,"tick",function(){H.FJ&&OlX.Dk("apit",H.FJ);H.FJ=OlX.dB()})); this.ea.publish("applicationInitialized");this.logger.debug("constructor end")}; fGy=function(p){function C(V){V.stack&&V.stack.indexOf("player")!==-1&&(V={n:V.name,m:V.message},(p.n4||p.Mo).Pc().oN("player.exception",yu(V)))} PQ.subscribe("handleError",C);je.push(C);return function(){PQ.unsubscribe("handleError",C);var V=je.indexOf(C);V!==-1&&je.splice(V,1)}}; DCe=function(p){var C=new g.YB(p.yn,p.config.args);p.ea.publish("initialvideodatacreated",C);return p.WW(1,C)}; yZe=function(p,C){if(p.Mo!==C){C.getVideoData().autonavState=p.Mo.getVideoData().autonavState;My(p.Mo,p.ih,p);var V=p.Mo.getPlaybackRate();p.Mo.dispose();p.Mo=C;p.Mo.setPlaybackRate(V);g.TB(C,p.ih,p);ZlQ(p)}}; Sxs=function(p){var C="",V=sy1(p);V.indexOf("//")===0&&(V=p.yn.protocol+":"+V);var N=V.lastIndexOf("/base.js");N!==-1&&(C=V.substring(0,N+1));if(V=Error().stack)if(V=V.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))V=V[1],V.includes(C)||g.eG(Error("Player module URL mismatch: "+(V+" vs "+C+".")));C=new $Su(p.ea,C);qxe(p,C);return C}; qxe=function(p,C){var V={};V=(V.destroyed=function(){p.onApiChange()},V); C.V=V}; FFs=function(p){if(p.yn.storeUserVolume){p=g.zW("yt-player-volume")||{};var C=p.volume;p={volume:isNaN(C)?100:g.J9(Math.floor(C),0,100),muted:!!p.muted}}else p={volume:100,muted:p.yn.mute};return p}; FR=function(p){p.mediaElement=p.yn.deviceIsAudioOnly?new g.li(g.iK("AUDIO")):xa.pop()||new g.li(g.iK("VIDEO"));g.R(p,p.mediaElement);p.n4&&p.n4.setMediaElement(p.mediaElement);try{p.yn.RN?(p.Eo&&p.events.rY(p.Eo),p.Eo=p.events.U(p.mediaElement,"volumechange",p.Ihx)):(p.mediaElement.BC(p.zU.muted),p.mediaElement.setVolume(p.zU.volume/100))}catch(H){p.Qf("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g, "_")));return}g.Am(p.Ql);IGS(p);var C=p.template,V=p.mediaElement.V$();C.F0=V;C.Bt=!1;C.F0.parentNode||Eo(C.Ss,C.F0,0);C.KZ=new g.vf(0,0,0,0);MAX(C);JX(C);V=C.F0;g.Ed(V,"video-stream");g.Ed(V,g.wr.MAIN_VIDEO);var N=C.app.K();N.BB&&V.setAttribute("data-no-fullscreen","true");N.G("html5_local_playsinline")?"playsInline"in An()&&(V.playsInline=!0):N.Uh&&(V.setAttribute("webkit-playsinline",""),V.setAttribute("playsinline",""));N.BK&&C.F0&&C.U(V,"click",V.play,V);try{p.mediaElement.activate()}catch(H){p.Qf("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g,"_")))}}; P$=function(p,C,V){if(p.n4!==C){p.logger.debug(function(){return"start set presenting player, type "+C.getPlayerType()+", vid "+C.getVideoData().videoId}); var N=null;if(p.n4){N=p.n4.getPlayerState();p.logger.debug("set presenting player, destroy modules");ev(p.C7,3);SM(p,"cuerangesremoved",p.n4.xm());p.tX&&!C.isGapless()&&p.n4.isGapless()&&p.mediaElement&&p.mediaElement.stopVideo();var H=Hj(C)&&Hj(p.n4);p.mM.Hm("iv_s");blv(p,H)}C.getPlayerType()===1&&yZe(p,C);AZv(p,C);p.n4=C;p.mediaElement&&C.setMediaElement(p.mediaElement);g.TB(C,p.AN,p);if(C.Xd())ohV(p,"setPresenting",!1);else{p.onVideoDataChange("newdata",C,C.getVideoData());N&&!g.FO(N,C.getPlayerState())&& p.O3(new g.Kt(C.getPlayerState(),N));V=V&&p.G("html5_player_preload_ad_fix")&&C.getPlayerType()===1;if(C.Ec.finished&&!V)p.onVideoDataChange("dataloaded",C,C.getVideoData());(V=(V=C.getVideoData().C)&&V.video)&&p.ea.v1("onPlaybackQualityChange",V.quality);SM(p,"cuerangesadded",p.n4.xm());V=C.getPlayerState();g.r(V,2)?k31(p):g.r(V,8)?C.playVideo():C.Bo()&&C.pauseVideo();if(C.getPlayerType()===2){var X;C.getVideoData().pC=(X=g.O5(p,1))==null?void 0:X.getVideoData().clientPlaybackNonce}C.getPlayerType()!== 2||p.tE()||(X=C.getVideoData(),p.Mo.Y1(X.clientPlaybackNonce,X.Q$||"",X.breakType||0,X.Gp,X.videoId||""));p.logger.debug("finish set presenting player")}}}; k31=function(p){if(!xC9(p)){var C=p.Mo.Nt();C&&(C=C.RF(),C instanceof Promise&&C.catch(function(){})); K7(p,KV(p.getPlayerStateObject()))}}; IGS=function(p){var C=p.mediaElement;YZ()?p.Ql.U(C,"webkitpresentationmodechanged",p.CJk):window.document.pictureInPictureEnabled&&(p.Ql.U(C,"enterpictureinpicture",function(){p.wJ(!0)}),p.Ql.U(C,"leavepictureinpicture",function(){p.wJ(!1)})); CK&&(p.Ql.U(C,"webkitbeginfullscreen",function(){p.ze(3)}),p.Ql.U(C,"webkitendfullscreen",function(){p.ze(0)}))}; AZv=function(p,C){var V=C.getPlayerType(),N=p.Lq.T[V]||null;C!==p.Mo&&C!==N&&(N==null||N.dispose(),p.Lq.T[V]=C)}; blv=function(p,C){C=C===void 0?!0:C;p.logger.debug("start clear presenting player");var V;if(V=p.Dd){V=p.Dd;var N=p.mediaElement;V=!!N&&N===V.mediaElement}V&&(p.Hz(),FR(p));p.n4&&(p.n4.Hz(!C),My(p.n4,p.AN,p),p.n4.getPlayerType()!==1&&p.n4.dispose());p.n4=null;p.logger.debug("finish clear presenting player")}; g.O5=function(p,C){if(C)if(C===1)p=p.Mo;else if(p.getVideoData().enableServerStitchedDai&&C===2)p=p.getVideoData().enablePreroll?p.Lq.T[2]||p.n4:p.n4;else if(g.pf(p.getVideoData())&&C===2){if(C=p.G("html5_ssap_return_content_player_during_preroll"))if(C=p.Ze)C=p.Ze,C=C.vc===""?!0:C.Iz();p=C?p.n4:p.Lq.T[2]||p.n4}else p=p.Lq.T[C]||null;else p=p.n4;return p}; DN=function(p){var C;return((C=p.n4)==null?void 0:C.HP)||null}; uj=function(p,C){var V;return((V=g.O5(p,C))==null?void 0:V.HP)||null}; Yx1=function(p,C,V,N){p=p.WW(C,V,N);xAQ(p);return p}; ZN=function(p,C){return p.tE(C)?p.Mo.HP:C}; Ut=function(p,C){var V=DN(p),N=p.Mo.HP;return V&&C===N&&p.tE(C)&&p.tE(V)?V:C}; nha=function(p){p.logger.debug("start application playback");if(p.Mo.getPlayerState().isError())p.logger.debug("start application playback done, player in error state");else{var C=f7(p);p.DE().isLoaded();C&&p.Lt(6);zm1(p);jQV(p.C7)||RmL(p)}}; RmL=function(p){if(!f7(p)){var C=Px(p.C7);C&&!C.created&&LPv(p.C7)&&(p.logger.debug("reload ad module"),C.create())}}; zm1=function(p){p.logger.debug("start presenter playback");var C=p.getVideoData(),V=p.C7;jQV(V)||V.s$();!KF1&&V.N.G("html5_allow_asmjs")&&iDy(V);nn(V,"embed");nn(V,"inline_preview");nn(V,"kids");nn(V,"remote");nn(V,"miniplayer");nn(V,"offline");nn(V,"unplugged");nn(V,"ypc",!1,!0);nn(V,"ypc_clickwrap",!1,!0);nn(V,"yto",!1,!0);nn(V,"webgl",!1,!0);VCH(V)||(nn(V,"captions",!0),nn(V,"endscreen"),V.hJ()||V.vJ(),nn(V,"creatorendscreen",!0));V.Yp();p.ea.publish("videoready",C)}; Ot=function(p){p=p.DE();p.GN();return Nh(p)}; UCY=function(p){p.logger.debug("start prepare initial playback");if(p.G("html5_enable_ssap_autoplay_debug_logging")){var C;(C=p.Mo)==null||C.k_("ssap",{preppb:1})}p.iH();var V=p.config.args;FR(p);C=p.DE();p.ea.v1("onVolumeChange",p.zU);if(V&&FPv(V)){var N=nI(p.yn);N&&!p.Cq&&(V.fetch=0);var H=g.KI(p.yn);H&&!p.Cq&&(V.fetch=0);yw(p,V);g.KI(p.yn)&&p.mM.tick("ep_pr_s");if(!N||p.Cq)if(H&&!p.Cq)emy(p);else if(!C.GN())p.playlist.onReady(function(){qS(p)})}P$(p,p.Mo); g.r(p.Mo.getPlayerState(),128)||(V=lU1(!p.yn.deviceIsAudioOnly),V==="fmt.noneavailable"?p.Qf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):V==="html5.missingapi"?p.Qf(V,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):C&&C.GN()&&Ot(p)&&(p.yn.qn||p.yn.hg)?IC(p):C.Ep?p.ea.mutedAutoplay():g.zW("yt-player-playback-on-reload")?(g.t1("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!p.yn.sY}),g.Yl("yt-player-playback-on-reload",!1),IC(p)):rG(p.yn)||PCH(p),g.wG(p.yn)||Lb(p.yn)=== "MWEB"?(g.Vl(g.HW(),function(){bj(p)}),g.Vl(g.HW(),function(){Fe9()})):(bj(p),Fe9()),p.logger.debug("finish prepare initial playback"))}; bj=function(p){if(!p.G("use_rta_for_player"))if(p.G("fetch_att_independently"))g.HF(p.Z6);else{var C=p.getVideoData().botguardData;C&&g.x1(C,p.yn,p.getVideoData().Mr||"")}}; PCH=function(p){p.logger.debug("start initialize to CUED mode");p.ea.publish("initializingmode");p.Lt(2);p.G("embeds_web_enable_defer_loading_remote_js")&&g.LI(p.yn)?g.Vl(g.HW(),function(){nn(p.C7,"remote")}):nn(p.C7,"remote"); nn(p.C7,"miniplayer");p.logger.debug("initialized to CUED mode")}; IC=function(p){p.logger.debug("start initialize application playback");if(g.r(p.Mo.getPlayerState(),128))return!1;var C=p.Mo.getVideoData();Ot(p)&&p.yn.hg&&(xa.length&&p.wZ?(AX(p,{muted:!1,volume:p.zU.volume},!1),oC(p,!1)):xa.length||p.zU.muted||(AX(p,{muted:!0,volume:p.zU.volume},!1),oC(p,!0)));Ot(p)&&g.KI(p.yn)&&C.mutedAutoplay&&(AX(p,{muted:!0,volume:p.zU.volume},!1),oC(p,!0));C.eM&&AX(p,{muted:!0,volume:p.zU.volume},!1);wtV(p,1,C,!1);p.ea.publish("initializingmode");P$(p,p.Mo);p.Lt(3);var V;if(!(V= !p.yn.Q1)){if(V=p.Dd){V=p.Dd;var N=p.mediaElement;V=!!N&&N===V.mediaElement}V=V&&p.w4}V&&(p.Hz(),FR(p),p.Mo.setMediaElement(p.mediaElement));gWY(p.Mo);if(g.r(p.Mo.getPlayerState(),128))return!1;C.Of||K7(p,3);return p.w4=!0}; f7=function(p){p=R$(p.C7);return!!p&&p.loaded}; $CQ=function(p,C){if(!p.Sb)return!1;var V=p.Sb.startTimeMs*.001-1,N=p.Sb.endTimeMs*.001;p.Sb.type==="repeatChapter"&&N--;return Math.abs(C-V)<=1E-6||Math.abs(C-N)<=1E-6||C>=V&&C<=N}; WFy=function(p){var C,V=(C=g.O5(p))==null?void 0:C.nS;p.n4&&id(p.getVideoData())&&V&&V.policy.KS&&(C=LFs(p)*1E3-p.getVideoData().Vy,p.G("html5_gapless_new_slr")?(p=p.TX,ghv(p.app,"gaplessshortslooprange"),C=new g.sz(0,C,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(p=p.app.L1())&&p.addCueRange(C)):p.setLoopRange({startTimeMs:0,endTimeMs:C,type:"shortsLoop"}))}; Qya=function(p){if(!(g.r(p.Mo.getPlayerState(),64)&&p.DE().isLivePlayback&&p.Sb.startTimeMs<5E3)){if(p.Sb.type==="repeatChapter"){var C,V=(C=Ycj(p.Tk()))==null?void 0:C.Cx(),N;C=(N=p.getVideoData())==null?void 0:N.Y9;V instanceof g.Hz&&C&&(N=C[KZ(C,p.Sb.startTimeMs)],V.renderChapterSeekingAnimation(0,N.title));isNaN(Number(p.Sb.loopCount))?p.Sb.loopCount=0:p.Sb.loopCount++;p.Sb.loopCount===1&&p.ea.Jk("innertubeCommand",p.getVideoData().Tt)}V={NZ:"application_loopRangeStart"};if(p.Sb.type==="clips"|| p.Sb.type==="shortsLoop")V.seekSource=58;p.Mo.seekTo(p.Sb.startTimeMs*.001,V)}}; uZV=function(p,C){var V=p.ea.getAvailablePlaybackRates();C=Number(C.toFixed(2));p=V[0];V=V[V.length-1];C<=p?C=p:C>=V?C=V:(p=Math.floor(C*100+.001)%5,C=p===0?C:Math.floor((C-p*.01)*100+.001)/100);return C}; LFs=function(p,C){C=uj(p,C);if(!C)return 0;C=ZN(p,C);return kf(p,C.x6(),C)}; kf=function(p,C,V){if(p.tE(V)){V=V.getVideoData();if(xf(p))V=C;else{p=p.GB;for(var N=g.F(p.C),H=N.next();!H.done;H=N.next())if(H=H.value,V.OZ===H.OZ){C+=H.Dh/1E3;break}N=C;p=g.F(p.C);for(H=p.next();!H.done;H=p.next()){H=H.value;if(V.OZ===H.OZ)break;var X=H.Dh/1E3;if(X<C)N+=H.durationMs/1E3+X-H.Ai/1E3;else break}V=N}return V}return C}; rZe=function(p,C){if(p.getPresentingPlayerType()===3)return KV(R$(p.C7).g7);if((p.getVideoData().enableServerStitchedDai||g.pf(p.getVideoData()))&&C===2){Yf(p,"geps");var V,N;return((V=p.PV)==null?0:V.Iz(p.getCurrentTime()))||((N=p.Ze)==null?0:N.Iz())?p.oY:-1}return C!==2||p.tE()?p.oY:p.U$}; ZlQ=function(p){p.logger.debug("reset for new application playback");zR(p);p.setLoopVideo(!1);p.setLoopRange(null);p.ea.publish("legacyadtrackingpingreset");p.Ol={};p.HC=[];mSs(p.mM);if(p.PV){var C=p.PV,V=p.Mo;V.getPlayerType();p7(C,!1);l2L(C);txL(C);C.Ta=V}C=p.GB;p=p.Mo;p.getPlayerType()!==1&&dJ(C,"invalidParentVideoPlayerType");Et(C,!1);Hlu(C);C.T=p}; emy=function(p,C){var V=(C?C:p.DE()).nK;p.mM.tick("ep_pr_r");if(V!=null&&(uR1(p.playlist,V),p.HN))p.playlist.onReady(function(){qS(p,C)})}; yw=function(p,C){p.playlist&&(g.iP(p.playlist),p.playlist=null);C&&(p.Cq&&(C.fetch=0),p.playlist=new vfY(p.yn,C))}; Bi1=function(p){var C,V=Number((C=p.getVideoData().progressBarEndPosition)==null?void 0:C.utcTimeMillis)/1E3;!isNaN(V)&&(C=p.Xt())&&(C-=p.getCurrentTime(),V=(V-C)*1E3,C=p.Ol.progressEndBoundary,(C==null?void 0:C.start)!==V&&(C&&p.bK([C]),V=new g.sz(V,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),p.Mo.addCueRange(V),p.Ol.progressEndBoundary=V))}; K7=function(p,C){p.logger.debug(function(){return"set external state "+C}); if(p.n4){var V=p.n4.getPlayerType();if(V===2&&!p.tE()){p.U$!==C&&(p.U$=C,p.ea.v1("onAdStateChange",C));return}if(V===2&&p.tE()||V===5||V===6||V===7)if(C===-1||C===0||C===5)return}if(C===0){if(p.Sb)return;var N;if(((N=p.n4)==null?0:N.Cv())&&!Qj(p.yn)){p.playVideo();return}}p.oY!==C&&(p.oY=C,p.ea.v1("onStateChange",C))}; G3u=function(p,C,V,N,H){N=N===void 0?Infinity:N;H=H===void 0?0:H;p.logger.debug(function(){return"Enqueuing playerType="+V+" at time="+N+"\n videoId="+C.videoId}); V=V||p.n4.getPlayerType();var X=wtV(p,V,C,!0);X||(X=Yx1(p,V,C));if(V===2&&p.Mo){var d=X.getVideoData();p.Mo.Y1(d.clientPlaybackNonce,d.Q$||"",d.breakType||0,d.Gp,d.videoId||"")}p.KC(X,N,0,H)}; pra=function(p,C,V,N,H){var X="";X=p.yn.G("html5_autonav_autoplay_in_preload_key")?RC(p,V,C):n7(p,V,C.videoId,C.OZ);p.logger.debug(function(){return"start preload video "+X+", trigger="+H}); var d="";if(p.n4&&(d=p.yn.G("html5_autonav_autoplay_in_preload_key")?RC(p,p.n4.getPlayerType(),p.n4.getVideoData()):n7(p,p.n4.getPlayerType(),p.n4.getVideoData().videoId,p.n4.getVideoData().OZ),X===d))return g.vO(p.n4,!0),C.dispose(),null;C.QZ=!0;C=Yx1(p,V,C);V===1&&$S(p.yn)||g.vO(C,!0);p.Lq.C.set(X,C,N||3600);return C}; CD1=function(p,C,V,N){var H=lO(V);return n7(p,C,H,N,V.autonav==="1"||V.autonav===!0,V.autoplay==="1"||V.autoplay===!0||V.autoplay===1)}; RC=function(p,C,V){return n7(p,C,V.videoId,V.OZ,V.isAutonav,V.dP)}; n7=function(p,C,V,N,H,X){H=H===void 0?!1:H;X=X===void 0?!1:X;C=C+"_"+V+"_"+N;p.yn.G("html5_autonav_autoplay_in_preload_key")&&(C+="_"+ +H+ +X);return C}; wtV=function(p,C,V,N){var H=p.yn.G("html5_autonav_autoplay_in_preload_key")?RC(p,C,V):n7(p,C,V.videoId,V.OZ);var X=p.Lq.C.get(H)||null;if(!X||X.fS())return null;p.Lq.C.remove(H);if(g.r(X.getPlayerState(),128))return X.dispose(),null;if(X===g.O5(p,C))return p.mM.infoGel({isCacheHit:!0}),X;if((X.getVideoData().oauthToken||V.oauthToken)&&X.getVideoData().oauthToken!==V.oauthToken)return null;C===1&&zR(p);N||P$(p,X,!0);p.mM.infoGel({isCacheHit:!0});return X}; eM=function(p,C,V){V=g.O5(p,V);C&&V===p.Mo&&(V.getVideoData().va=!0)}; PN=function(p,C,V){V=V===void 0?1:V;p.logger.debug(function(){return"start cue video, vid "+C.videoId+", type "+V}); if(C.GN()){var N=p.WW(V,C);p.cancelPlayback(4,V);P$(p,N);xAQ(N);if(V===1){p.Lt(1);if(g.KI(p.yn)&&!a$(C)){C.dispose();g.iP(g.O5(p,V));return}PCH(p)}p.logger.debug("finish cue video")}else p.logger.debug(function(){return"invalid VideoData in cueVideo"}),C.dispose(),g.iP(g.O5(p,V)),MoX(p.DE())&&V===2&&p.y4()}; jRv=function(p,C,V,N,H){C=ogH(C,V,N,H);(V=g.KI(p.yn)&&!p.yn.b_)&&!p.Cq&&(C.fetch=0);yw(p,C);g.KI(p.yn)&&p.mM.tick("ep_a_pr_s");if(V&&!p.Cq)V=p.DE(),fNH(V,C).then(function(X){p.HN=!0;emy(p,X)}); else p.playlist.onReady(function(){qS(p)}); g.KI(p.yn)&&p.mM.tick("ep_a_pr_r")}; qS=function(p,C){var V=g.KI(p.yn)&&!p.yn.b_,N=V&&C?C:g.OC(p.playlist);C=V&&C?C:p.getVideoData();N&&(C.X4&&(p.yn.qn||p.yn.hg)||!p.eL?(C=C.va,N=p.Kv(N,1),C&&eM(p,N)):PN(p,N,1));g.KI(p.yn)&&p.mM.tick("ep_p_l");p.HN=!1;p.ea.Ba("onPlaylistUpdate")}; xC9=function(p){if(p.playlist&&g.Oe(p.yn)&&p.oF()){var C=p.yn.G("html5_player_autonav_logging");p.nextVideo(!1,C);return!0}return!1}; VW9=function(p,C,V,N,H,X,d){C={id:C,namespace:d!=null?d:"appapi"};X==="chapter"?(C.style=hy.CHAPTER_MARKER,C.visible=!0):isNaN(H)||(X==="ad"?C.style=hy.AD_MARKER:(C.style=hy.TIME_MARKER,C.color=H),C.visible=!0);p.Qs([new g.sz(V*1E3,N*1E3,C)],1);return!0}; NDy=function(p,C,V,N,H,X){X=X===void 0?!0:X;var d=p.Xt();if(!d)return X&&p.getVideoData().isLivePlayback&&p.HC.push({id:C,LSe:V,WS$:N}),!1;X=d-p.getCurrentTime();return VW9(p,C,V-X,N-X,void 0,void 0,H)}; HLS=function(p,C){p.HC=g.JT(p.HC,function(X){return X.id!==C}); for(var V=p.Mo.xm(),N=0;N<V.length;N++){var H=V[N];if(H.getId()===C)return p.Mo.removeCueRange(H),SM(p,"cuerangesremoved",[H]),!0}return!1}; ghv=function(p,C,V){var N=g.O5(p,V);N&&(C=N.ZZ.qt(C),V&&p.getPresentingPlayerType()!==V||SM(p,"cuerangesremoved",C))}; Xru=function(p){var C=(0,g.Ip)(),V=p.getCurrentTime();p=p.getVideoData();V=1E3*(V-p.startSeconds);p.isLivePlayback&&(V=0);return C-Math.max(V,0)}; AX=function(p,C,V){p.yn.Y_&&(p.zU=C,C.muted||oC(p,!1),V&&p.yn.storeUserVolume&&!p.yn.RN&&(V={volume:Math.floor(C.volume),muted:C.muted},V.unstorable||(g.Yl("yt-player-volume",V),g.Yl("yt-player-volume",V,2592E3))),dJa(p),V=g.kZ&&p.mediaElement&&!p.mediaElement.U8(),p.yn.RN&&!V||p.ea.v1("onVolumeChange",{muted:C.muted,volume:C.volume,unstorable:!p.yn.storeUserVolume}))}; dJa=function(p){var C=p.getVideoData();if(!C.tB){C=p.yn.RN?1:tov(C);var V=p.mediaElement;V.BC(p.zU.muted);try{V.setVolume(p.zU.volume*C/100)}catch(N){g.eG(new g.Bw("b183742307","multiplier: "+C+", volume: "+p.zU.volume))}}}; oC=function(p,C){C!==p.wZ&&(p.wZ=C,p.ea.Ba("onMutedAutoplayChange",C))}; U5=function(p){return p.wZ&&p.getVideoData().mutedAutoplay}; iL9=function(p){var C=KK(!0);return C&&(C===p.template.element||p.mediaElement&&C===p.mediaElement.V$())?C:null}; sRa=function(p,C){var V=window.screen&&window.screen.orientation;if((p.yn.G("lock_fullscreen2")||p.yn.J)&&V&&V.lock&&(!g.kZ||!h$y))if(C){C=V.type.indexOf("portrait")===0;var N=p.template.getVideoAspectRatio(),H=C;N<1?H=!0:N>1&&(H=!1);if(!p.Be||H!==C){V=V.lock(H?"portrait":"landscape");if(V!=null)V["catch"](function(){}); p.Be=!0}}else p.Be&&(p.Be=!1,V.unlock())}; SM=function(p,C,V){p.ea.publish(C,V);var N=g.bH(p.yn)||g.yj(p.yn)||g.gk(p.yn);if(V&&N){switch(C){case "cuerangemarkersupdated":var H="onCueRangeMarkersUpdated";break;case "cuerangesadded":H="onCueRangesAdded";break;case "cuerangesremoved":H="onCueRangesRemoved"}H&&p.ea.Jk(H,V.map(function(X){return{getId:function(){return this.id}, end:X.end,id:X.getId(),namespace:X.namespace==="ad"?"ad":"",start:X.start,style:X.style,visible:X.visible}}))}}; wJ=function(p,C,V,N,H,X){V=V===void 0?!0:V;var d=g.O5(p,H);if(d){var a=d.HP;if(d.getPlayerType()===2&&!p.tE(a)||g.ud(a.getVideoData()))return}p.getPresentingPlayerType()===3?R$(p.C7).z4("control_seek",C,V):(d===p.Mo&&p.Sb&&!$CQ(p,C)&&p.setLoopRange(null),p.seekTo(C,V,N,H,X))}; ohV=function(p,C,V,N){V&&(p.Hz(),FR(p));V=g.O5(p);V.oN(new qD("staleconfig",{reason:C}));var H=p.getVideoData(),X={};X.video_id=H.videoId;X.adformat=H.adFormat;H.isLivePlayback?Ge(H)&&g.qz(p.yn)&&(X.live_utc_start=V.Xt(),X.resume="1"):(X.start=V.getCurrentTime(),X.resume="1");H.b_&&(X.vvt=H.b_);H.Y&&(X.vss_credentials_token=H.Y,X.vss_credentials_token_type=H.B_);H.oauthToken&&(X.oauth_token=H.oauthToken);H.Q1&&(X.force_gvi=H.Q1);X.autoplay=1;X.reload_count=H.wy+1;X.reload_reason=C;H.ym&&(X.unplugged_partner_opt_out= H.ym);H.YN&&(X.ypc_is_premiere_trailer=H.YN);H.playerParams&&(X.player_params=H.playerParams);p.loadVideoByPlayerVars(X,void 0,!0,void 0,void 0,N);C==="signature"&&p.PV&&RmL(p)}; aPQ=function(p,C){p.DE().autonavState=C;g.Yl("yt-player-autonavstate",C);p.ea.publish("autonavchange",C)}; Esv=function(p){var C=p.getVideoData().tB,V=p.yn.Wc,N=p.isInline()&&!p.getVideoData().CK,H=p.mediaElement;C||V||N?H.W4():(H.e2(),AX(p,p.zU))}; zR=function(p){var C=Px(p.Tk());C&&C.created&&(p.logger.debug("reset ad module"),C.destroy())}; xf=function(p){return p.getVideoData().enableServerStitchedDai&&!!p.PV}; lPu=function(p,C){C.bounds=p.getBoundingClientRect();for(var V=g.F(["display","opacity","visibility","zIndex"]),N=V.next();!N.done;N=V.next())N=N.value,C[N]=Zo(p,N);C.hidden=!!p.hidden}; sy1=function(p){if(p.webPlayerContextConfig){var C=p.webPlayerContextConfig.trustedJsUrl;return C?Og(C).toString():p.webPlayerContextConfig.jsUrl}return p.config.assets&&p.config.assets.js?p.config.assets.js:""}; tWS=function(p,C,V){if(C=g.O5(p,C)){if(C.getVideoData().clientPlaybackNonce===V)return C;if((p=p.tX.T)&&p.getVideoData().clientPlaybackNonce===V)return p}}; Yf=function(p,C){if(p.G("html5_ssap_enable_api_timing_logging")&&g.pf(p.DE())&&!p.W_.V){var V;(V=g.O5(p))==null||V.k_("ssap",{ptnu:C})}}; cu9=function(p){return p.name==="TypeError"&&p.stack.includes("/s/player/")&&LO()<=105}; TDj=function(p){return p.isTimeout?"NO_BID":"ERR_BID"}; MWS=function(){var p=null;xZL().then(function(C){return p=C},function(C){return p=TDj(C)}); return p}; Ju9=function(){var p=A8(1E3,"NO_BID");return yU(Vla([xZL(),p]).Rz(TDj),function(){p.cancel()})}; $f=function(p){return p.kt?g.LK(g.$l(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; L7=function(p){this.player=p;this.V=this.T=1}; FUL=function(p,C,V,N,H,X){C.client||(C.client={});p.player.K().G("h5_remove_url_for_get_ad_break")||(C.client.originalUrl=V);var d=l1(V),a=g.LJ(V)?!1:!0;(d||a)&&typeof Intl!=="undefined"&&(C.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);a=g.LJ(V)?!1:!0;if(d||a||N!==""){var E={};V=dm(Jw(N)).split("&");var l=new Map;V.forEach(function(t){t=t.split("=");t.length>1&&l.set(t[0].toString(),decodeURIComponent(t[1].toString()))}); l.has("bid")&&(E.bid=l.get("bid"));E.params=[];mJV.forEach(function(t){l.has(t)&&(t={key:t,value:l.get(t)},E.params.push(t))}); vsL(p,E);C.adSignalsInfo=E}C.client.unpluggedAppInfo||(C.client.unpluggedAppInfo={});C.client.unpluggedAppInfo.enableFilterMode=!1;V=H.T.cosver;V!=null&&V!=="cosver"&&(C.client.osVersion=V);V=H.T.cplatform;V!=null&&V!=="cplatform"&&V!==""&&(C.client.platform=V);V=H.T.cmodel;V!=null&&V!=="cmodel"&&(C.client.deviceModel=V);V=H.T.cplayer;V!=null&&V!=="cplayer"&&(C.client.playerType=V);V=H.T.cbrand;V!=null&&V!=="cbrand"&&(C.client.deviceMake=V);C.user||(C.user={});C.user.lockedSafetyMode=!1;(H.G("embeds_web_enable_iframe_api_send_full_embed_url")|| H.G("embeds_enable_autoplay_and_visibility_signals"))&&g.Oe(H)&&qrS(C,X,p.player.getPlayerState(1))}; DJS=function(p,C){var V=!1;if(C==="")return V;C.split(",").forEach(function(N){var H={},X={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},d="ACTIVE";N[0]==="!"&&(N=N.substring(1),d="INACTIVE");N=N.split("-");N.length<3||(N[0]in SqX&&(X.clientName=SqX[N[0]]),N[1]in KUu&&(X.platform=KUu[N[1]]),X.applicationState=d,X.clientVersion=N.length>2?N[2]:"",H.remoteClient=X,p.remoteContexts?p.remoteContexts.push(H):p.remoteContexts=[H],V=!0)}); return V}; ZL1=function(p){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in u4V))return!1;p=p.split(RegExp("[:&]"));var C=u4V.FLAG_AUTO_CAPTIONS_DEFAULT_ON,V="f"+(1+Math.floor(C/31)).toString();C=1<<Math.floor(C%31);for(var N=0,H=p.length;N<H;N++){var X=p[N].split("=");if(X[0]===V&&parseInt("0x"+X[1],16)&C)return!0}return!1}; vsL=function(p,C){p=p.player.K();if(g.eH(p)||$S(p)){p=g.pO("INNERTUBE_CONTEXT");var V,N;(p==null?0:(V=p.adSignalsInfo)==null?0:V.advertisingId)&&typeof(p==null?void 0:(N=p.adSignalsInfo)==null?void 0:N.limitAdTracking)!=="undefined"&&(C.advertisingId=p.adSignalsInfo.advertisingId,C.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",C.limitAdTracking=p.adSignalsInfo.limitAdTracking)}}; Auy=function(p,C,V,N,H){var X=V.DRIFT_FROM_HEAD_MS&&!Number.isNaN(V.DRIFT_FROM_HEAD_MS)?Math.trunc(V.DRIFT_FROM_HEAD_MS):0,d=UJs.exec(C);d=d!=null&&d.length>=2?d[1]:"";var a=fPX.test(C),E=OLY.exec(C);E=E!=null&&E.length>=2?E[1]:"";var l=yuQ.exec(C);l=l!=null&&l.length>=2&&!Number.isNaN(Number(l[1]))?Number(l[1]):1;var t=qqv.exec(C);t=t!=null&&t.length>=2?t[1]:"0";var c=AR(p.player.K().Vn),T=p.player.getVideoData(1),M=g.Za(T.Sa,!0),J="BISCOTTI_ID"in V?V.BISCOTTI_ID:"";FUL(p,M,C,J.toString(),p.player.K(), T);T={splay:!1,lactMilliseconds:V.LACT.toString(),playerHeightPixels:Math.trunc(V.P_H),playerWidthPixels:Math.trunc(V.P_W),vis:Math.trunc(V.VIS),signatureTimestamp:20073,autonavState:$f(p.player.K())};N&&(N={},DJS(N,V.YT_REMOTE)&&(T.mdxContext=N));if(N=IPH.includes(c)?void 0:g.ee("PREF")){for(var S=N.split(RegExp("[:&]")),D=0,Z=S.length;D<Z;D++){var f=S[D].split("=");if((f[0].toUpperCase()==="SML"||f[0].toUpperCase()==="GSML")&&f.length>1&&f[1].toUpperCase()==="TRUE"){M.user.lockedSafetyMode=!0;break}}T.autoCaptionsDefaultOn= ZL1(N)}C=bLy.exec(C);(C=C!=null&&C.length>=2?C[1]:"")&&E&&(M.user.credentialTransferTokens=[{token:C,scope:"VIDEO"}]);C={contentPlaybackContext:T};d={adBlock:Math.trunc(V.AD_BLOCK),params:d,breakIndex:l,breakPositionMs:t,clientPlaybackNonce:V.CPN,topLevelDomain:c,isProxyAdTagRequest:a,context:M,adSignalsInfoString:dm(Jw(J.toString())),overridePlaybackContext:C};H!==void 0&&(d.cueProcessedMs=Math.round(H).toString());E&&(d.videoId=E);V.LIVE_TARGETING_CONTEXT&&(d.liveTargetingParams=V.LIVE_TARGETING_CONTEXT); V.AD_BREAK_LENGTH&&(d.breakLengthMs=Math.trunc(V.AD_BREAK_LENGTH*1E3).toString());X&&(d.driftFromHeadMs=X.toString());d.currentMediaTimeMs=Math.round(p.player.getCurrentTime(1)*1E3);(p=p.player.getGetAdBreakContext())&&(d.getAdBreakContext=p);return d}; osQ=function(){L7.apply(this,arguments)}; kss=function(p,C,V,N,H){var X=V.U5;var d=V.zN;var a=p.player.K().Gp,E=0;V.cueProcessedMs&&d&&!X&&(V=d.end-d.start,V>0&&(E=Math.floor(V/1E3)));var l={AD_BLOCK:H,AD_BREAK_LENGTH:X?X.uc:E,AUTONAV_STATE:$f(p.player.K()),CA_TYPE:"image",CPN:p.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:p.player.uX()*1E3,LACT:bV(),LIVE_INDEX:X?p.V++:1,LIVE_TARGETING_CONTEXT:X&&X.context?X.context:"",MIDROLL_POS:d?Math.round(d.start/1E3):0,MIDROLL_POS_MS:d?Math.round(d.start):0,VIS:p.player.getVisibilityState(), P_H:p.player.dV().KO().height,P_W:p.player.dV().KO().width,YT_REMOTE:a?a.join(","):""},t=MU(TQ);Object.keys(t).forEach(function(c){t[c]!=null&&(l[c.toUpperCase()]=t[c].toString())}); N!==""&&(l.BISCOTTI_ID=N);N={};cd(C)&&(N.sts="20073",(p=p.player.K().forcedExperiments)&&(N.forced_experiments=p));return Ek(g.nX(C,l),N)}; xJV=function(p,C){var V=p.player.K(),N,H=(N=p.player.getVideoData(1))==null?void 0:N.oauthToken;return g.pk(V,H).then(function(X){if(X&&tw()){var d=rb();Bk(d,X)}return g.E0(p.player.xN(d),C,"/youtubei/v1/player/ad_break").then(function(a){return a})})}; YqL=function(p){this.No=p}; z$y=function(p){this.N=p}; R$u=function(p){this.No=p}; e$9=function(p){g.Y.call(this);this.T=p;this.xU=nsV(this)}; nsV=function(p){var C=new tF9(p.T.YG);g.R(p,C);p=g.F([new YqL(p.T.No),new z$y(p.T.N),new R$u(p.T.No),new YY(p.T.I8,p.T.Bp),new RE,new PJ(p.T.w6,p.T.cB,p.T.No),new zf,new xY]);for(var V=p.next();!V.done;V=p.next())c3e(C,V.value);p=g.F(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(V=p.next();!V.done;V=p.next())nW(C,V.value,function(){}); return C}; gJ=function(p){var C=p.pS,V=p.x_;p=p.Mt;var N=new UgH,H={Rx:new aUX(C.get(),V),x_:V};return{hQ:new HY(V,p,C,H),context:H,e5:N}}; WN=function(p,C,V,N,H){g.Y.call(this);this.C=C;this.mx=V;this.pS=N;this.BV=H;this.listeners=[];var X=new I_(this);g.R(this,X);X.U(p,"internalAbandon",this.f8);this.addOnDisposeCallback(function(){g.Am(X)})}; Qw=function(p){this.N=p;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.W=!0;this.C=this.V=!1;this.adFormat=null;this.S="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; PDs=function(p){p.contentCpn=null;p.adCpn=null;p.videoId=null;p.adVideoId=null;p.adFormat=null;p.S="AD_PLACEMENT_KIND_UNKNOWN";p.actionType="unknown_type";p.V=!1;p.C=!1}; wry=function(p,C){p=g.F(C);for(C=p.next();!C.done;C=p.next())if((C=C.value.renderer)&&(C.instreamVideoAdRenderer||C.linearAdSequenceRenderer||C.sandwichedLinearAdRenderer||C.instreamSurveyAdRenderer)){NR("ad_i");g.HH({isMonetized:!0});break}}; $JQ=function(p){var C;(C=p.N.getVideoData(1))!=null&&C.sY&&(p.C=!1,C={},p.T&&p.videoId&&(C.cttAuthInfo={token:p.T,videoId:p.videoId}),XA("video_to_ad",C))}; V4=function(p){p.C=!1;var C={};p.T&&p.videoId&&(C.cttAuthInfo={token:p.T,videoId:p.videoId});XA("ad_to_video",C);LU1(p)}; LU1=function(p){if(p.V)if(p.S==="AD_PLACEMENT_KIND_START"&&p.actionType==="video_to_ad")CU("video_to_ad");else{var C={adBreakType:bU(p.S),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:p.videoStreamType};p.actionType==="ad_to_video"?(p.contentCpn&&(C.targetCpn=p.contentCpn),p.videoId&&(C.targetVideoId=p.videoId)):(p.adCpn&&(C.targetCpn=p.adCpn),p.adVideoId&&(C.targetVideoId=p.adVideoId));p.adFormat&&(C.adType=p.adFormat);p.contentCpn&& (C.clientPlaybackNonce=p.contentCpn);p.videoId&&(C.videoId=p.videoId);p.adCpn&&(C.adClientPlaybackNonce=p.adCpn);p.adVideoId&&(C.adVideoId=p.adVideoId);g.HH(C,p.actionType)}}; rJ=function(p){g.Y.call(this);this.N=p;this.T=new Map;this.C=new I_(this);g.R(this,this.C);this.C.U(this.N,g.Ez("ad"),this.onCueRangeEnter,this);this.C.U(this.N,g.lG("ad"),this.onCueRangeExit,this)}; gsy=function(p,C,V,N,H){g.sz.call(this,C,V,{id:p,namespace:"ad",priority:H,visible:N})}; BN=function(p){this.N=p}; GR=function(p){this.N=p;g.mi(this.N.K().experiments,"tv_pacf_logging_sample_rate")}; fR=function(p,C){C=C===void 0?!1:C;return p.N.K().G("html5_ssap_force_ads_ctmp")?!0:(C||p.N.K().Gk())&&p.N.K().G("html5_ssap_pacf_qoe_ctmp")}; pD=function(p){var C,V;return(V=(C=p.N.getVideoData(1))==null?void 0:g.pf(C))!=null?V:!1}; Cs=function(p,C){return p.N.K().G(C)}; WUv=function(p){return p.N.K().G("substitute_ad_cpn_macro_in_ssdai")}; DY=function(p){var C,V,N;return((C=p.N.getVideoData(1).getPlayerResponse())==null?void 0:(V=C.playerConfig)==null?void 0:(N=V.daiConfig)==null?void 0:N.enableServerStitchedDai)||!1}; Jqv=function(p){return p.N.K().G("html5_enable_vod_slar_with_notify_pacf")}; QRX=function(p){return p.N.K().G("html5_recognize_predict_start_cue_point")}; Vn=function(p){return p.N.K().experiments.OY("enable_desktop_player_underlay")}; rus=function(p){return p.N.K().experiments.OY("html5_load_empty_player_in_media_break_sub_lra")}; $L=function(p){return p.N.K().experiments.OY("html5_load_ads_instead_of_cue")}; LV=function(p){return p.N.K().experiments.OY("html5_preload_ads")}; Gd=function(p){return p.N.K().experiments.OY("enable_ads_control_flow_deterministic_id_generation")}; BDL=function(p){return p.N.K().experiments.OY("enable_desktop_discovery_video_abandon_pings")||g.eH(p.N.K())&&p.N.K().experiments.OY("enable_lr_discovery_video_abandon_pings")}; Gsa=function(p){return p.N.K().experiments.OY("enable_progres_commands_lr_feeds")}; pAY=function(p){switch(p){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; CEX=function(){g.ca.call(this);var p=this;this.T={};this.addOnDisposeCallback(function(){for(var C=g.F(Object.keys(p.T)),V=C.next();!V.done;V=C.next())delete p.T[V.value]})}; CD=function(){if(jme===null){jme=new CEX;xc(xI).C="b";var p=xc(xI),C=DK(p)=="h"||DK(p)=="b",V=!(e1(),!1);C&&V&&(p.W=!0,p.Y=new Y$u)}return jme}; Vcj=function(p,C,V){p.T[C]=V}; NaV=function(p){switch(p){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; jC=function(p,C,V){this.mx=p;this.N=C;this.x_=V;this.C=new Set;this.T=new Map;CD().subscribe("adactiveviewmeasurable",this.sA,this);CD().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Ao,this);CD().subscribe("adviewableimpression",this.Iy,this);CD().subscribe("adaudioaudible",this.bN,this);CD().subscribe("adaudiomeasurable",this.Cr,this)}; NE=function(p,C,V){var N=V.Yn,H=V.s7,X=V.listener,d=V.tG;V=V.e1===void 0?!1:V.e1;if(p.T.has(C))S2("Unexpected registration of layout in LidarApi");else{if(d){if(p.C.has(d))return;p.C.add(d)}p.T.set(C,X);cs(e1().IN,"fmd",1);WnS(xc(xI),N);var a=V?C:void 0;Vcj(CD(),C,{AL:function(){if(!H)return{};var E=p.N.getPresentingPlayerType(!0),l;return(l=p.N.getVideoData(E))!=null&&l.isAd()?{currentTime:p.mx.get().getCurrentTimeSec(E,!1,a),duration:H,isPlaying:V0(p.mx.get(),E).isPlaying(),isVpaid:!1,isYouTube:!0, volume:p.mx.get().isMuted()?0:p.mx.get().getVolume()/100}:{}}})}}; Hq=function(p,C){p.T.has(C)?(p.T.delete(C),delete CD().T[C]):S2("Unexpected unregistration of layout in LidarApi")}; HQS=function(p,C){if(p.N.isLifaAdPlaying()){var V=p.N.ai(!0,!0);p.D4(C,V.width*.5*1.1,V.height*.25*1.1,V.width*.5*.9,V.height*.5*.9)}}; iQH=function(p,C,V){var N={};XAX(p,N,C,V);du9(N);N.LACT=X7(function(){return bV().toString()}); N.VIS=X7(function(){return p.getVisibilityState().toString()}); N.SDKV="h.3.0";N.VOL=X7(function(){return p.isMuted()?"0":Math.round(p.getVolume()).toString()}); N.VED="";return N}; hAs=function(p,C){var V={};if(C)return V;if(!p.kind)return g.nm(Error("AdPlacementConfig without kind")),V;if(p.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||p.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!p.adTimeOffset||!p.adTimeOffset.offsetStartMilliseconds)return g.nm(Error("malformed AdPlacementConfig")),V;V.MIDROLL_POS=X7(vX(Math.round(h9(p.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else V.MIDROLL_POS=X7(vX("0"));return V}; X7=function(p){return{toString:function(){return p()}}}; sm9=function(p,C,V){function N(a,E){(E=V[E])&&(X[a]=E)} function H(a,E){(E=V[E])&&(X[a]=d(E))} if(!V||g.k5(V))return p;var X=Object.assign({},p),d=C?encodeURIComponent:function(a){return a}; H("DV_VIEWABILITY","doubleVerifyViewability");H("IAS_VIEWABILITY","integralAdsViewability");H("MOAT_INIT","moatInit");H("MOAT_VIEWABILITY","moatViewability");N("GOOGLE_VIEWABILITY","googleViewability");N("VIEWABILITY","viewability");return X}; XAX=function(p,C,V,N){C.CPN=X7(function(){var H;(H=p.getVideoData(1))?H=H.clientPlaybackNonce:(g.eG(Error("Video data is null.")),H=null);return H}); C.AD_MT=X7(function(){if(N!=null)var H=N;else{var X=V;p.K().G("html5_ssap_use_cpn_to_get_time")||(X=void 0);if(p.K().G("enable_h5_shorts_ad_fill_ad_mt_macro")||p.K().G("enable_desktop_discovery_pings_ad_mt_macro")||g.eH(p.K())&&p.K().G("enable_lr_discovery_pings_ad_mt_macro")){var d=p.getPresentingPlayerType(!0),a;H=((a=p.getVideoData(d))==null?0:a.isAd())?aLy(p,d,X):0}else H=aLy(p,2,X)}return Math.round(Math.max(0,H*1E3)).toString()}); C.MT=X7(function(){return Math.round(Math.max(0,p.getCurrentTime(1,!1)*1E3)).toString()}); C.P_H=X7(function(){return p.dV().KO().height.toString()}); C.P_W=X7(function(){return p.dV().KO().width.toString()}); C.PV_H=X7(function(){return p.dV().getVideoContentRect().height.toString()}); C.PV_W=X7(function(){return p.dV().getVideoContentRect().width.toString()})}; du9=function(p){p.CONN=X7(vX("0"));p.WT=X7(function(){return Date.now().toString()})}; aLy=function(p,C,V){return V!==void 0?p.getCurrentTime(C,!1,V):p.getCurrentTime(C,!1)}; EzQ=function(){}; lLe=function(p,C,V,N,H){var X,d,a,E,l,t,c,T,M,J,S,D,Z;g.I(function(f){switch(f.C){case 1:X=!!C.scrubReferrer;d=g.nX(C.baseUrl,sm9(V,X,N));a={};if(!C.headers){f.EY(2);break}E=p.S();if(!E.T){l=E.getValue();f.EY(3);break}return g.y(f,E.T,4);case 4:l=f.T;case 3:t=l;c=g.F(C.headers);for(T=c.next();!T.done;T=c.next())switch(M=T.value,M.headerType){case "VISITOR_ID":g.pO("VISITOR_DATA")&&(a["X-Goog-Visitor-Id"]=g.pO("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.pO("EOM_VISITOR_DATA")&&(a["X-Goog-EOM-Visitor-Id"]= g.pO("EOM_VISITOR_DATA"));break;case "USER_AUTH":t&&(a.Authorization="Bearer "+t);break;case "PLUS_PAGE_ID":(J=p.W())&&(a["X-Goog-PageId"]=J);break;case "AUTH_USER":S=p.T();!t&&S&&(a["X-Goog-AuthUser"]=S);break;case "DATASYNC_ID":if(D=void 0,(D=p.V())==null?0:D.OY("enable_datasync_id_header_in_web_vss_pings"))Z=p.C(),l1(d)&&g.pO("LOGGED_IN")&&Z&&(a["X-YouTube-DataSync-Id"]=Z)}"X-Goog-EOM-Visitor-Id"in a&&"X-Goog-Visitor-Id"in a&&delete a["X-Goog-Visitor-Id"];case 2:g.BC(d,void 0,X,Object.keys(a).length!== 0?a:void 0,"",!0,H),g.JQ(f)}})}; tcQ=function(p,C,V,N,H){this.S=p;this.W=C;this.T=V;this.C=N;this.V=H}; cSH=function(p,C){this.T=p;this.x_=C}; dv=function(p,C,V,N,H,X,d){var a=a===void 0?new tcQ(function(){var E=p.K(),l=p.getVideoData(1);return g.pk(E,l?g.XE(l):"")},function(){return p.K().pageId},function(){return p.K().sY},function(){var E; return(E=p.K().datasyncId)!=null?E:""},function(){return p.K().experiments}):a; this.N=p;this.C=C;this.AQ=V;this.pS=N;this.hQ=H;this.x_=X;this.e5=d;this.S=a;this.df=null;this.T=new Map;this.V=new cSH(a,this.x_)}; Mcu=function(p,C,V,N,H){var X=IY(p.C.get(),V);X?(V=oj(p,Ta9(X),X,void 0,void 0,N),C.hasOwnProperty("baseUrl")?p.S.send(C,V):p.V.send(C,V,{},H)):S2("Trying to ping from an unknown layout",void 0,void 0,{layoutId:V})}; mYS=function(p,C,V,N,H,X){N=N===void 0?[]:N;var d=IY(p.C.get(),C);if(d){var a=p.AQ.get().pO(C,V),E=oj(p,Ta9(d),d,H,X);N.forEach(function(l,t){l.baseUrl&&(p.V.send(l.baseUrl,E,a,l.attributionSrcMode),l.serializedAdPingMetadata&&p.hQ.pV("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,d,new G6H(l,t),void 0,void 0,d.adLayoutLoggingData))})}else S2("Trying to track from an unknown layout.",void 0,void 0,{layoutId:C, trackingType:V})}; fs=function(p,C){p.N.sendVideoStatsEngageEvent(C,void 0,2)}; al=function(p,C){g.t1("adsClientStateChange",C)}; JS1=function(p,C){p.T.has(C.oO())?S2("Trying to register an existing AdErrorInfoSupplier."):p.T.set(C.oO(),C)}; muu=function(p,C){p.T.delete(C.oO())||S2("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; tV=function(p,C,V){typeof V==="string"?p.N.getVideoData(1).x8(C,V):p.N.getVideoData(1).k_(C,V)}; Ta9=function(p){var C=Ef(p.clientMetadata,"metadata_type_ad_placement_config");p=Ef(p.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:C,J0:p}}; oj=function(p,C,V,N,H,X){var d=V?vz9(p):{},a=V?FXH(p,V.layoutId):{},E=Swe(p),l,t=H!=null?H:(l=O3(p.pS.get(),2))==null?void 0:l.clientPlaybackNonce;p.N.K().G("enable_player_logging_lr_home_infeed_ads")&&!t&&(t=O3(p.pS.get(),1).clientPlaybackNonce);H=void 0;if(V){var c;if((c=p.e5.T.get(V.layoutId))==null?0:c.e1)H=V.layoutId}c={};p=Object.assign({},iQH(p.N,H,N),hAs(C.adPlacementConfig,(V==null?void 0:V.renderingContent)!==void 0),a,d,E,(c.FINAL=X7(function(){return"1"}),c.AD_CPN=X7(function(){return t|| ""}),c)); (V==null?void 0:V.renderingContent)!==void 0||(p.SLOT_POS=X7(function(){return(C.J0||0).toString()})); V={};X=Object.assign({},p,X);p=g.F(Object.values(KXv));for(N=p.next();!N.done;N=p.next())N=N.value,d=X[N],d!=null&&d.toString()!=null&&(V[N]=d.toString());return V}; vz9=function(p){var C={},V,N=(V=p.df)==null?void 0:V.Xg/1E3;N!=null&&(C.SURVEY_ELAPSED_MS=X7(function(){return Math.round(N*1E3).toString()})); C.SURVEY_LOCAL_TIME_EPOCH_S=X7(function(){return Math.round(Date.now()/1E3).toString()}); return C}; FXH=function(p,C){p=p.T.get(C);if(!p)return{};p=p.j2();if(!p)return{};C={};return C.YT_ERROR_CODE=p.Ay.toString(),C.ERRORCODE=p.AM.toString(),C.ERROR_MSG=p.errorMessage,C}; Swe=function(p){var C={},V=p.N.getVideoData(1);C.ASR=X7(function(){var N;return(N=V==null?void 0:V.Ts)!=null?N:null}); C.EI=X7(function(){var N;return(N=V==null?void 0:V.eventId)!=null?N:null}); return C}; iM=function(p,C,V){g.Y.call(this);this.N=p;this.VA=C;this.x_=V;this.listeners=[];this.BF=null;this.VI=new Map;C=new g.Rr(this);g.R(this,C);C.U(p,"videodatachange",this.UZ$);C.U(p,"serverstitchedvideochange",this.IEn);this.KA=O3(this)}; O3=function(p,C){var V=p.N.getVideoData(C);return V?p.Z1(V,C||p.N.getPresentingPlayerType(!0)):null}; Due=function(p,C,V){var N=p.Z1(C,V);p.KA=N;p.listeners.forEach(function(H){H.nZ(N)})}; uTQ=function(p){switch(p){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; hF=function(p,C,V){g.Y.call(this);this.N=p;this.pS=C;this.x_=V;this.listeners=[];this.xW=[];this.T=function(){S2("Called 'doUnlockPreroll' before it's initialized.")}; C=new I_(this);V=new g.Rr(this);g.R(this,V);g.R(this,C);C.U(p,"progresssync",this.UW$);C.U(p,"presentingplayerstatechange",this.e6o);C.U(p,"fullscreentoggled",this.onFullscreenToggled);C.U(p,"onVolumeChange",this.onVolumeChange);C.U(p,"minimized",this.xq);C.U(p,"overlayvisibilitychange",this.iM);C.U(p,"shortsadswipe",this.Wz);C.U(p,"resize",this.OR);V.U(p,g.Ez("appad"),this.vz)}; sm=function(p){pD(p.x_.get())||p.T()}; ZQY=function(p,C){p.xW=p.xW.filter(function(V){return V!==C})}; aQ=function(p,C,V){return p.getCurrentTimeSec(C,V)}; Uue=function(p,C){var V;C=(V=p.pS.get().VI.get(C))!=null?V:null;if(C===null)return S2("Expected ad video start time on playback timeline"),0;p=p.N.getCurrentTime(2,!0);return p<C?0:p-C}; V0=function(p,C){return p.N.getPlayerStateObject(C)}; fLX=function(p){var C=p.N.dV().KO();p=p.N.ai(!0,!0);return C.height-(p.height+p.top)}; OQu=function(p){p.N.cueVideoByPlayerVars({videoId:"empty_video"},2)}; e31=function(p,C){var V=p.N.K();g.fI(V)||V.controlsType!=="3"||p.N.dV().VF(C)}; Em=function(p,C){g.Ed(p.N.getRootNode(),C)}; lM=function(p,C){g.tk(p.N.getRootNode(),C)}; ySe=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);N=gt(function(){return new fa(p)}); g.R(this,N);var l=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,l);var t=gt(function(){return new XF}); g.R(this,t);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var c=gt(function(){return new vU(X.x_)}); g.R(this,c);var T=gt(function(){return new v0(d,l,a,X.x_,c,null,null,null,null)}); g.R(this,T);this.pS=gt(function(){return new iM(C,t,X.x_)}); g.R(this,this.pS);var M=gJ({pS:this.pS,x_:this.x_,Mt:c}),J=M.context,S=M.e5;this.hQ=M.hQ;this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,S)}); g.R(this,this.No);this.xt=new UA(N,T,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var D=new WN(C,this.xt,this.mx,this.pS);this.EE=gt(function(){return D}); this.rJ=D;this.PR=new OA(N,l,this.iJ,this.EE,J);g.R(this,this.PR);this.r7=new nj(this.x_,N,l,T,this.pS,this.PR,V);g.R(this,this.r7);this.E8={T3:new Map,MG:new Map,D_:new Map,LT:new Map,tx:new Map};this.listeners=[];this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:null,Bp:{lI:function(){}}, I8:E.get(),w6:this.pS.get()}}; tF=function(p,C){g.Y.call(this);this.Yz=C;this.Yz.get().addListener(this)}; cq=function(p){this.T=p}; qwY=function(p,C){if(!p)return{zs:[],adSlots:[],cC:!0,ssdaiAdsConfig:void 0};p.trackingParams&&Oi(p.trackingParams);if(p.adThrottled)return{zs:[],adSlots:[],cC:!0,ssdaiAdsConfig:void 0};var V,N=(V=p.adSlots)!=null?V:[],H;V=(H=p.playerAds)!=null?H:[];if(!(V&&V.length||N.length))return{zs:[],adSlots:N,cC:!1,ssdaiAdsConfig:void 0};H=V.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)}); if(!H.length&&!N.length)return{zs:[],adSlots:N,cC:!1,ssdaiAdsConfig:void 0};if(C.end>0){var X=C.end.toString();H.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&d.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&d.adTimeOffset&&d.adTimeOffset.offsetEndMilliseconds==="-1"&&d.adTimeOffset.offsetEndMilliseconds!==X&&(d.adTimeOffset.offsetEndMilliseconds=X)}); N.map(function(d){return g.n(d,eB)}).forEach(function(d){var a; (d=d==null?void 0:(a=d.slotEntryTrigger)==null?void 0:a.mediaTimeRangeTrigger)&&d.offsetEndMilliseconds==="-1"&&(d.offsetEndMilliseconds=X)})}return{zs:H, adSlots:N,cC:!1,ssdaiAdsConfig:p.ssdaiAdsConfig}}; TS=function(p){g.Y.call(this);this.N=p;this.listeners=[];this.T=new I_(this);g.R(this,this.T);this.T.U(this.N,"aduxclicked",this.onAdUxClicked);this.T.U(this.N,"aduxmouseover",this.xo);this.T.U(this.N,"aduxmouseout",this.A5);this.T.U(this.N,"muteadaccepted",this.rkn)}; ILs=function(p,C,V){C=g.AU(C,function(N){return new nlj(N,V,N.id)}); p.N.Jk("onAdUxUpdate",C)}; ME=function(p,C){p=g.F(p.listeners);for(var V=p.next();!V.done;V=p.next())C(V.value)}; JF=function(p,C){this.C=p;this.V=C===void 0?!1:C;this.T={}}; bQs=function(p,C){var V=p.startSecs+p.uc;V=V<=0?null:V;if(V===null)return null;switch(p.event){case "start":case "continue":case "stop":break;case "predictStart":if(C)break;return null;default:return null}C=Math.max(p.startSecs,0);return{NC:new Od(C,V),T6:new xg(C,V-C,p.context,p.identifier,p.event,p.T)}}; AS9=function(){this.T=[]}; M2y=function(p,C,V){var N=g.Xv(p.T,C);if(N>=0)return C;C=-N-1;return C>=p.T.length||p.T[C]>V?null:p.T[C]}; mf=function(p,C,V){g.Y.call(this);this.N=p;this.x_=C;this.No=V;this.listeners=[];this.S=!1;this.ya=[];this.C=null;this.W=new JF(this,QRX(C.get()));this.V=new AS9;this.T=null}; ozX=function(p,C){p.ya.push(C);for(var V=!1,N=g.F(p.listeners),H=N.next();!H.done;H=N.next())V=H.value.Qd(C)||V;p.S=V}; xus=function(p,C){al(p.No.get(),{cuepointTrigger:{event:kZL(C.event),cuepointId:C.identifier,totalCueDurationMs:C.uc*1E3,playheadTimeMs:C.T,cueStartTimeMs:C.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:p.N.getVideoData(1).clientPlaybackNonce}})}; kZL=function(p){switch(p){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return N1(p,"Unexpected cuepoint event")}}; vq=function(p){this.N=p}; Yws=function(p,C){p.N.cueVideoByPlayerVars(C,2)}; F7=function(p){this.N=p}; SC=function(p){this.N=p}; zAH=function(p){switch(p){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:N1(p,"unknown transitionReason")}}; RAy=function(p){this.N=p}; nzV=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);var l=gt(function(){return new fa(p)}); g.R(this,l);var t=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,t);var c=gt(function(){return new XF}); g.R(this,c);this.MW=gt(function(){return new TS(C)}); g.R(this,this.MW);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.gY=gt(function(){return new vq(C)}); g.R(this,this.gY);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var T=gt(function(){return new cq(N)}); g.R(this,T);var M=gt(function(){return new vU(X.x_)}); g.R(this,M);this.fd=gt(function(){return new F7(C)}); g.R(this,this.fd);this.Yz=gt(function(){return new Gm}); g.R(this,this.Yz);this.pS=gt(function(){return new iM(C,c,X.x_)}); g.R(this,this.pS);var J=gJ({pS:this.pS,x_:this.x_,Mt:M}),S=J.context,D=J.e5;this.hQ=J.hQ;this.BV=gt(function(){return new mf(C,X.x_,X.No)}); g.R(this,this.BV);this.kG=gt(function(){return new SC(C)}); g.R(this,this.kG);this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);J=gt(function(){return new v0(d,t,a,X.x_,M,"SLOT_TYPE_ABOVE_FEED",X.mx,X.ZS,X.L9)}); g.R(this,J);this.GM=gt(function(){return new ps(X.x_)}); this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,D)}); g.R(this,this.No);this.GS=new ZY(u_,KD,function(f,q,A,z){return j8(a.get(),f,q,A,z)},l,t,a,M,this.x_,this.pS); g.R(this,this.GS);this.xt=new UA(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var Z=new WN(C,this.xt,this.mx,this.pS,this.BV);this.EE=gt(function(){return Z}); this.rJ=Z;this.ZS=new Ka(l,t,this.EE,this.BV,this.mx,this.x_,this.No,this.kG);g.R(this,this.ZS);this.PR=new OA(l,t,this.iJ,this.EE,S);g.R(this,this.PR);this.r7=new nj(this.x_,l,t,J,this.pS,this.PR,V);g.R(this,this.r7);this.o5=gt(function(){return new mk(T,a,M,X.x_,X.No,X.mx,X.kG)}); g.R(this,this.o5);this.n9=gt(function(){return new v8}); g.R(this,this.n9);this.cR=new xx(p,this.MW,this.x_);g.R(this,this.cR);this.UR=new Yx(p);g.R(this,this.UR);this.DU=new zd(p);g.R(this,this.DU);this.fO=new na(p,this.EE,S);g.R(this,this.fO);this.H1=new e8(p,this.iJ,this.mx,this.pS,S);g.R(this,this.H1);this.gO=new P0(p,this.pS);g.R(this,this.gO);this.L9=new La(p,this.BV,this.mx,this.No,this.EE);g.R(this,this.L9);this.xl=new w6(p);g.R(this,this.xl);this.u9=new r6(p);g.R(this,this.u9);this.WB=new $x(p);g.R(this,this.WB);this.TQ=new Qn(p);g.R(this,this.TQ); this.u9=new r6(p);g.R(this,this.u9);this.TM=gt(function(){return new b_}); g.R(this,this.TM);this.hB=gt(function(){return new AL(X.mx)}); g.R(this,this.hB);this.l$=gt(function(){return new zYQ(X.MW,X.No,p,E,X.AQ)}); g.R(this,this.l$);this.wR=gt(function(){return new ND(X.r7,l,d)}); g.R(this,this.wR);this.bf=gt(function(){return new dO(X.x_,X.No,X.xl,X.AQ)}); g.R(this,this.bf);this.N1=gt(function(){return new SI(p,X.u9,X.xl,X.pS,X.kG,X.mx,X.No,c,X.BV,X.AQ,X.GM,X.gY,X.iJ,X.sZ,X.YG,X.zk,X.fd,X.x_,E,S,D)}); g.R(this,this.N1);this.W2=gt(function(){return new Cqe(X.mx,X.No,X.zk,X.x_,X.AQ)}); g.R(this,this.W2);this.Lv=gt(function(){return new nUS(X.MW,X.mx,X.No,E,X.AQ,X.DU,X.TQ,X.zk,X.x_,V)}); g.R(this,this.Lv);this.FK=gt(function(){return new RYS(X.MW,X.No,E)}); g.R(this,this.FK);this.As=new tF(p,this.Yz,d);g.R(this,this.As);this.E8={T3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.r7],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ZS],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.GS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xt],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.PR]]),MG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.o5],["SLOT_TYPE_ABOVE_FEED",this.n9],["SLOT_TYPE_FORECASTING",this.n9], ["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9],["SLOT_TYPE_PLAYER_UNDERLAY",this.n9],["SLOT_TYPE_PLAYBACK_TRACKING",this.n9],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.n9]]),D_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cR],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.cR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UR],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.UR],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UR],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.UR],["TRIGGER_TYPE_CLOSE_REQUESTED",this.DU],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fO],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.H1],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.H1],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.H1],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.H1],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.H1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.gO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.gO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.fO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.WB],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.TQ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.L9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.L9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.L9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.L9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.L9]]),LT:new Map([["SLOT_TYPE_ABOVE_FEED",this.TM], ["SLOT_TYPE_AD_BREAK_REQUEST",this.TM],["SLOT_TYPE_FORECASTING",this.TM],["SLOT_TYPE_IN_PLAYER",this.TM],["SLOT_TYPE_PLAYER_BYTES",this.hB],["SLOT_TYPE_PLAYER_UNDERLAY",this.TM],["SLOT_TYPE_PLAYBACK_TRACKING",this.TM],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.TM]]),tx:new Map([["SLOT_TYPE_ABOVE_FEED",this.l$],["SLOT_TYPE_AD_BREAK_REQUEST",this.wR],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_PLAYER_BYTES",this.N1],["SLOT_TYPE_PLAYBACK_TRACKING",this.W2],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.W2],["SLOT_TYPE_IN_PLAYER",this.Lv],["SLOT_TYPE_PLAYER_UNDERLAY",this.FK]])};this.listeners=[E.get()];this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:this.Yz.get(),Bp:this.cR,I8:E.get(),w6:this.pS.get()}}; eAv=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);var l=gt(function(){return new fa(p)}); g.R(this,l);var t=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,t);var c=gt(function(){return new XF}); g.R(this,c);this.MW=gt(function(){return new TS(C)}); g.R(this,this.MW);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.gY=gt(function(){return new vq(C)}); g.R(this,this.gY);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var T=gt(function(){return new cq(N)}); g.R(this,T);var M=gt(function(){return new vU(X.x_)}); g.R(this,M);var J=gt(function(){return new v0(d,t,a,X.x_,M,null,null,X.ZS,X.L9)}); g.R(this,J);this.fd=gt(function(){return new F7(C)}); g.R(this,this.fd);this.Yz=gt(function(){return new Gm}); g.R(this,this.Yz);this.pS=gt(function(){return new iM(C,c,X.x_)}); g.R(this,this.pS);var S=gJ({pS:this.pS,x_:this.x_,Mt:M}),D=S.context,Z=S.e5;this.hQ=S.hQ;this.BV=gt(function(){return new mf(C,X.x_,X.No)}); this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,Z)}); g.R(this,this.No);this.GM=gt(function(){return new ps(X.x_)}); g.R(this,this.GM);this.GS=new ZY(u_,KD,function(q,A,z,Q){return j8(a.get(),q,A,z,Q)},l,t,a,M,this.x_,this.pS); g.R(this,this.GS);this.xt=new UA(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var f=new WN(C,this.xt,this.mx,this.pS,this.BV);this.EE=gt(function(){return f}); this.rJ=f;this.ZS=new Ka(l,t,this.EE,this.BV,this.mx,this.x_,this.No);g.R(this,this.ZS);this.PR=new OA(l,t,this.iJ,this.EE,D);g.R(this,this.PR);this.r7=new nj(this.x_,l,t,J,this.pS,this.PR,V);g.R(this,this.r7);this.o5=gt(function(){return new mk(T,a,M,X.x_,X.No,X.mx)}); g.R(this,this.o5);this.n9=gt(function(){return new v8}); g.R(this,this.n9);this.cR=new xx(p,this.MW,this.x_);g.R(this,this.cR);this.UR=new Yx(p);g.R(this,this.UR);this.DU=new zd(p);g.R(this,this.DU);this.fO=new na(p,this.EE,D);g.R(this,this.fO);this.H1=new e8(p,this.iJ,this.mx,this.pS,D);g.R(this,this.H1);this.xl=new w6(p);g.R(this,this.xl);this.WB=new $x(p);g.R(this,this.WB);this.TQ=new Qn(p);g.R(this,this.TQ);this.kG=gt(function(){return new SC(C)}); g.R(this,this.kG);this.u9=new r6(p);g.R(this,this.u9);this.L9=new La(p,this.BV,this.mx,this.No,this.EE);g.R(this,this.L9);this.TM=gt(function(){return new b_}); g.R(this,this.TM);this.hB=gt(function(){return new AL(X.mx)}); g.R(this,this.hB);this.wR=gt(function(){return new ND(X.r7,l,d)}); g.R(this,this.wR);this.bf=gt(function(){return new dO(X.x_,X.No,X.xl,X.AQ)}); g.R(this,this.bf);this.Lv=gt(function(){return new eSL(X.MW,X.mx,X.No,E,X.AQ,X.DU,X.TQ,X.zk,X.x_,V)}); g.R(this,this.Lv);this.N1=gt(function(){return new Kr(p,X.u9,X.xl,X.No,X.AQ,X.GM,X.gY,X.pS,X.mx,X.iJ,X.sZ,X.YG,X.zk,X.fd,X.x_,X.kG,D,Z)}); g.R(this,this.N1);this.As=new tF(p,this.Yz,d);g.R(this,this.As);this.E8={T3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.r7],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ZS],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.GS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xt],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.PR]]),MG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.o5],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9], ["SLOT_TYPE_PLAYER_BYTES",this.n9]]),D_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UR],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UR], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.UR],["TRIGGER_TYPE_CLOSE_REQUESTED",this.DU],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.H1],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.H1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.WB],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.TQ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.L9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.L9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.L9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.L9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.L9]]),LT:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TM],["SLOT_TYPE_FORECASTING",this.TM],["SLOT_TYPE_IN_PLAYER",this.TM],["SLOT_TYPE_PLAYER_BYTES",this.hB]]), tx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wR],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_IN_PLAYER",this.Lv],["SLOT_TYPE_PLAYER_BYTES",this.N1]])};this.listeners=[E.get()];this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:this.Yz.get(),Bp:this.cR,I8:E.get(),w6:this.pS.get()}}; PEY=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);var l=gt(function(){return new fa(p)}); g.R(this,l);var t=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,t);var c=gt(function(){return new XF}); g.R(this,c);this.MW=gt(function(){return new TS(C)}); g.R(this,this.MW);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.gY=gt(function(){return new vq(C)}); g.R(this,this.gY);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var T=gt(function(){return new cq(N)}); g.R(this,T);var M=gt(function(){return new vU(X.x_)}); g.R(this,M);var J=gt(function(){return new v0(d,t,a,X.x_,M,null,null,null,null)}); g.R(this,J);this.fd=gt(function(){return new F7(C)}); g.R(this,this.fd);this.pS=gt(function(){return new iM(C,c,X.x_)}); g.R(this,this.pS);var S=gJ({pS:this.pS,x_:this.x_,Mt:M}),D=S.context,Z=S.e5;this.hQ=S.hQ;this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,Z)}); g.R(this,this.No);this.GM=gt(function(){return new ps(X.x_)}); g.R(this,this.GM);this.GS=new ZY(u_,KD,function(q,A,z,Q){return j8(a.get(),q,A,z,Q)},l,t,a,M,this.x_,this.pS); g.R(this,this.GS);this.xt=new UA(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var f=new WN(C,this.xt,this.mx,this.pS);this.EE=gt(function(){return f}); this.rJ=f;this.PR=new OA(l,t,this.iJ,this.EE,D);g.R(this,this.PR);this.r7=new nj(this.x_,l,t,J,this.pS,this.PR,V);g.R(this,this.r7);this.o5=gt(function(){return new mk(T,a,M,X.x_,X.No,X.mx)}); g.R(this,this.o5);this.n9=gt(function(){return new v8}); g.R(this,this.n9);this.cR=new xx(p,this.MW,this.x_);g.R(this,this.cR);this.UR=new Yx(p);g.R(this,this.UR);this.fO=new na(p,this.EE,D);g.R(this,this.fO);this.H1=new e8(p,this.iJ,this.mx,this.pS,D);g.R(this,this.H1);this.xl=new w6(p);g.R(this,this.xl);this.WB=new $x(p);g.R(this,this.WB);this.kG=gt(function(){return new SC(C)}); g.R(this,this.kG);this.u9=new r6(p);g.R(this,this.u9);this.TM=gt(function(){return new b_}); g.R(this,this.TM);this.hB=gt(function(){return new AL(X.mx)}); g.R(this,this.hB);this.wR=gt(function(){return new ND(X.r7,l,d)}); g.R(this,this.wR);this.bf=gt(function(){return new dO(X.x_,X.No,X.xl,X.AQ)}); g.R(this,this.bf);this.jF=gt(function(){return new Gjj(X.MW,X.mx,X.No,E,V,X.x_)}); g.R(this,this.jF);this.N1=gt(function(){return new Kr(p,X.u9,X.xl,X.No,X.AQ,X.GM,X.gY,X.pS,X.mx,X.iJ,X.sZ,X.YG,X.zk,X.fd,X.x_,X.kG,D,Z)}); g.R(this,this.N1);this.E8={T3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.r7],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.GS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xt],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.PR]]),MG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.o5],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9]]),D_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.UR],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UR],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UR],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.H1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.WB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9]]),LT:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TM],["SLOT_TYPE_ABOVE_FEED",this.TM],["SLOT_TYPE_FORECASTING",this.TM],["SLOT_TYPE_IN_PLAYER",this.TM],["SLOT_TYPE_PLAYER_BYTES",this.hB]]),tx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wR],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_IN_PLAYER", this.jF],["SLOT_TYPE_PLAYER_BYTES",this.N1]])};this.listeners=[E.get()];this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:null,Bp:this.cR,I8:E.get(),w6:this.pS.get()}}; wAs=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);var l=gt(function(){return new fa(p)}); g.R(this,l);var t=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,t);var c=gt(function(){return new XF}); g.R(this,c);this.Xu=gt(function(){return new RAy(C)}); g.R(this,this.Xu);this.MW=gt(function(){return new TS(C)}); g.R(this,this.MW);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.gY=gt(function(){return new vq(C)}); g.R(this,this.gY);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var T=gt(function(){return new cq(N)}); g.R(this,T);var M=gt(function(){return new vU(X.x_)}); g.R(this,M);var J=gt(function(){return new v0(d,t,a,X.x_,M,null,null,null,null)}); g.R(this,J);this.fd=gt(function(){return new F7(C)}); g.R(this,this.fd);this.pS=gt(function(){return new iM(C,c,X.x_)}); g.R(this,this.pS);var S=gJ({pS:this.pS,x_:this.x_,Mt:M}),D=S.context,Z=S.e5;this.hQ=S.hQ;this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,Z)}); g.R(this,this.No);this.GM=gt(function(){return new ps(X.x_)}); g.R(this,this.GM);this.GS=new ZY(Dgu,KD,function(q,A,z,Q){return $gu(a.get(),q,A,z,Q)},l,t,a,M,this.x_,this.pS); g.R(this,this.GS);this.xt=new UA(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var f=new WN(C,this.xt,this.mx,this.pS);this.EE=gt(function(){return f}); this.rJ=f;this.PR=new OA(l,t,this.iJ,this.EE,D);g.R(this,this.PR);this.r7=new nj(this.x_,l,t,J,this.pS,this.PR,V);g.R(this,this.r7);this.o5=gt(function(){return new mk(T,a,M,X.x_,X.No,X.mx)}); g.R(this,this.o5);this.n9=gt(function(){return new v8}); g.R(this,this.n9);this.cR=new xx(p,this.MW,this.x_);g.R(this,this.cR);this.UR=new Yx(p);g.R(this,this.UR);this.fO=new na(p,this.EE,D);g.R(this,this.fO);this.H1=new e8(p,this.iJ,this.mx,this.pS,D);g.R(this,this.H1);this.xl=new w6(p);g.R(this,this.xl);this.WB=new $x(p);g.R(this,this.WB);this.kG=gt(function(){return new SC(C)}); g.R(this,this.kG);this.u9=new r6(p);g.R(this,this.u9);this.TM=gt(function(){return new b_}); g.R(this,this.TM);this.hB=gt(function(){return new AL(X.mx)}); g.R(this,this.hB);this.wR=gt(function(){return new ND(X.r7,l,d)}); g.R(this,this.wR);this.bf=gt(function(){return new dO(X.x_,X.No,X.xl,X.AQ)}); g.R(this,this.bf);this.N1=gt(function(){return new Kr(p,X.u9,X.xl,X.No,X.AQ,X.GM,X.gY,X.pS,X.mx,X.iJ,X.sZ,X.YG,X.zk,X.fd,X.x_,X.kG,D,Z)}); g.R(this,this.N1);this.mN=gt(function(){return new wEX(X.MW,X.mx,X.No,E,X.Xu,V,X.pS)}); g.R(this,this.mN);this.E8={T3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.r7],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.GS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xt],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.PR]]),MG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.o5],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9]]),D_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.UR],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UR],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UR],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.H1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.WB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9]]),LT:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TM],["SLOT_TYPE_FORECASTING",this.TM],["SLOT_TYPE_IN_PLAYER",this.TM],["SLOT_TYPE_PLAYER_BYTES",this.hB]]),tx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wR],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_IN_PLAYER",this.mN],["SLOT_TYPE_PLAYER_BYTES", this.N1]])};this.listeners=[E.get()];this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:null,Bp:this.cR,I8:E.get(),w6:this.pS.get()}}; $ue=function(p,C,V,N,H){g.Y.call(this);var X=this,d=gt(function(){return new B0(X.x_)}); g.R(this,d);var a=gt(function(){return new pz(d,X.x_)}); g.R(this,a);var E=gt(function(){return new yn}); g.R(this,E);var l=gt(function(){return new fa(p)}); g.R(this,l);var t=gt(function(){return new Cz(d,a,X.x_)}); g.R(this,t);var c=gt(function(){return new XF}); g.R(this,c);this.Xu=gt(function(){return new RAy(C)}); g.R(this,this.Xu);this.MW=gt(function(){return new TS(C)}); g.R(this,this.MW);this.zk=gt(function(){return new QV(H)}); g.R(this,this.zk);this.sZ=gt(function(){return new Qw(C)}); g.R(this,this.sZ);this.iJ=gt(function(){return new rJ(C)}); g.R(this,this.iJ);this.gY=gt(function(){return new vq(C)}); g.R(this,this.gY);this.YG=gt(function(){return new BN(C)}); g.R(this,this.YG);this.x_=gt(function(){return new GR(C)}); g.R(this,this.x_);var T=gt(function(){return new cq(N)}); g.R(this,T);var M=gt(function(){return new vU(X.x_)}); g.R(this,M);this.fd=gt(function(){return new F7(C)}); g.R(this,this.fd);this.pS=gt(function(){return new iM(C,c,X.x_)}); g.R(this,this.pS);var J=gJ({pS:this.pS,x_:this.x_,Mt:M}),S=J.context,D=J.e5;this.hQ=J.hQ;this.BV=gt(function(){return new mf(C,X.x_,X.No)}); g.R(this,this.BV);this.kG=gt(function(){return new SC(C)}); g.R(this,this.kG);this.mx=gt(function(){return new hF(C,X.pS,X.x_)}); g.R(this,this.mx);J=gt(function(){return new v0(d,t,a,X.x_,M,null,X.mx,X.ZS,X.L9,3)}); g.R(this,J);this.GM=gt(function(){return new ps(X.x_)}); this.AQ=gt(function(){return new jC(X.mx,C,X.x_)}); g.R(this,this.AQ);this.No=gt(function(){return new dv(C,E,X.AQ,X.pS,X.hQ,X.x_,D)}); g.R(this,this.No);this.xt=new UA(l,J,V,this.x_,p,this.pS,this.mx,this.sZ);g.R(this,this.xt);var Z=new WN(C,this.xt,this.mx,this.pS,this.BV);this.EE=gt(function(){return Z}); this.rJ=Z;this.GS=new ZY(uqY,KD,function(f,q,A,z){return $gu(a.get(),f,q,A,z)},l,t,a,M,this.x_,this.pS); g.R(this,this.GS);this.ZS=new Ka(l,t,this.EE,this.BV,this.mx,this.x_,this.No,this.kG);g.R(this,this.ZS);this.PR=new OA(l,t,this.iJ,this.EE,S);g.R(this,this.PR);this.r7=new nj(this.x_,l,t,J,this.pS,this.PR,V);g.R(this,this.r7);this.o5=gt(function(){return new mk(T,a,M,X.x_,X.No,X.mx,X.kG)}); g.R(this,this.o5);this.n9=gt(function(){return new v8}); g.R(this,this.n9);this.cR=new xx(p,this.MW,this.x_);g.R(this,this.cR);this.UR=new Yx(p);g.R(this,this.UR);this.fO=new na(p,this.EE,S);g.R(this,this.fO);this.H1=new e8(p,this.iJ,this.mx,this.pS,S);g.R(this,this.H1);this.gO=new P0(p,this.pS);g.R(this,this.gO);this.L9=new La(p,this.BV,this.mx,this.No,this.EE);g.R(this,this.L9);this.xl=new w6(p);g.R(this,this.xl);this.WB=new $x(p);g.R(this,this.WB);this.u9=new r6(p);g.R(this,this.u9);this.TM=gt(function(){return new b_}); g.R(this,this.TM);this.hB=gt(function(){return new AL(X.mx)}); g.R(this,this.hB);this.wR=gt(function(){return new ND(X.r7,l,d)}); g.R(this,this.wR);this.bf=gt(function(){return new dO(X.x_,X.No,X.xl,X.AQ)}); g.R(this,this.bf);this.N1=gt(function(){return new SI(p,X.u9,X.xl,X.pS,X.kG,X.mx,X.No,c,X.BV,X.AQ,X.GM,X.gY,X.iJ,X.sZ,X.YG,X.zk,X.fd,X.x_,E,S,D)}); g.R(this,this.N1);this.Lv=gt(function(){return new $NL(X.MW,X.mx,X.No,E,X.Xu,V,X.x_,X.pS)}); g.R(this,this.Lv);this.E8={T3:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.r7],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ZS],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.GS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xt],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.PR]]),MG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.o5],["SLOT_TYPE_FORECASTING",this.n9],["SLOT_TYPE_IN_PLAYER",this.n9],["SLOT_TYPE_PLAYER_BYTES",this.n9]]),D_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.cR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UR],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UR],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UR],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UR],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UR],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.H1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.H1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.gO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.gO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xl],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.WB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.u9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.L9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.L9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.L9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.L9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.L9]]),LT:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TM],["SLOT_TYPE_FORECASTING",this.TM],["SLOT_TYPE_IN_PLAYER",this.TM],["SLOT_TYPE_PLAYER_BYTES",this.hB]]),tx:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wR],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_PLAYER_BYTES",this.N1],["SLOT_TYPE_IN_PLAYER",this.Lv]])};this.listeners=[E.get()]; this.PE={r7:this.r7,cB:this.x_.get(),l_:this.zk.get(),IW:this.mx.get(),xt:this.xt,SL:d.get(),jT:null,Bp:this.cR,I8:E.get(),w6:this.pS.get()}}; gzX=function(p,C,V,N){function H(){return X.C} g.Y.call(this);var X=this;p.K().experiments.OY("html5_dispose_of_manager_before_dependency")?(this.T=LX1(H,p,C,V,N),this.C=(new WU(this.T)).V(),g.R(this,this.C),g.R(this,this.T)):(this.T=LX1(H,p,C,V,N),g.R(this,this.T),this.C=(new WU(this.T)).V(),g.R(this,this.C))}; DO=function(p){return p.T.PE}; LX1=function(p,C,V,N,H){try{var X=C.K();if(g.wG(X))var d=new nzV(p,C,V,N,H);else if(g.LI(X))d=new eAv(p,C,V,N,H);else if(kS(X))d=new PEY(p,C,V,N,H);else if(g.gk(X))d=new wAs(p,C,V,N,H);else if(g.yj(X))d=new $ue(p,C,V,N,H);else throw new TypeError("Unknown web interface");return d}catch(a){return d=C.K(),S2("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:d.T.cplatform,interface:d.T.c,PLV:d.T.cver,pKV:d.T.ctheme,Hta:d.T.cplayer,sn$:d.playerStyle}),new ySe(p,C,V,N,H)}}; WXe=function(p){GB.call(this,p)}; QmX=function(p,C,V,N,H){dk.call(this,p,{L:"div",B:"ytp-ad-timed-pie-countdown-container",j:[{L:"svg",B:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},j:[{L:"circle",B:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{L:"circle",B:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{L:"circle",B:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",C,V,N,H);this.S=this.rV("ytp-ad-timed-pie-countdown-container");this.V=this.rV("ytp-ad-timed-pie-countdown-inner"); this.W=this.rV("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(2*Math.PI*5);this.hide()}; rSe=function(p,C,V,N,H,X){Kq.call(this,p,{L:"div",B:"ytp-ad-action-interstitial",X:{tabindex:"0"},j:[{L:"div",B:"ytp-ad-action-interstitial-background-container"},{L:"div",B:"ytp-ad-action-interstitial-slot",j:[{L:"div",B:"ytp-ad-action-interstitial-instream-info"},{L:"div",B:"ytp-ad-action-interstitial-card",j:[{L:"div",B:"ytp-ad-action-interstitial-image-container"},{L:"div",B:"ytp-ad-action-interstitial-headline-container"},{L:"div",B:"ytp-ad-action-interstitial-description-container"},{L:"div", B:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",C,V,N);this.RE=H;this.L5=X;this.navigationEndpoint=this.T=this.skipButton=this.C=this.actionButton=null;this.Ga=this.rV("ytp-ad-action-interstitial-instream-info");this.vr=this.rV("ytp-ad-action-interstitial-image-container");this.Z=new Wa(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-action-interstitial-image");g.R(this,this.Z);this.Z.u_(this.vr);this.Sa=this.rV("ytp-ad-action-interstitial-headline-container"); this.W=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-action-interstitial-headline");g.R(this,this.W);this.W.u_(this.Sa);this.b_=this.rV("ytp-ad-action-interstitial-description-container");this.V=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-action-interstitial-description");g.R(this,this.V);this.V.u_(this.b_);this.Qn=this.rV("ytp-ad-action-interstitial-background-container");this.R$=new Wa(this.api,this.layoutId,this.interactionLoggingClientData, this.l_,"ytp-ad-action-interstitial-background",!0);g.R(this,this.R$);this.R$.u_(this.Qn);this.KS=this.rV("ytp-ad-action-interstitial-action-button-container");this.slot=this.rV("ytp-ad-action-interstitial-slot");this.eZ=this.rV("ytp-ad-action-interstitial-card");this.S=new I_;g.R(this,this.S);this.hide()}; Bas=function(p){var C=g.ju("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; jGv=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-overlay-slot",j:[{L:"div",B:"ytp-ad-overlay-container"}]},"invideo-overlay",C,V,N);this.Z=[];this.Qn=this.Sa=this.S=this.KS=this.Ga=null;this.R$=!1;this.W=null;this.b_=0;p=this.rV("ytp-ad-overlay-container");this.vr=new MN(p,45E3,6E3,.3,.4);g.R(this,this.vr);this.V=GZ9(this);g.R(this,this.V);this.V.u_(p);this.C=pme(this);g.R(this,this.C);this.C.u_(p);this.T=Cyv(this);g.R(this,this.T);this.T.u_(p);this.hide()}; GZ9=function(p){var C=new g.Sp({L:"div",B:"ytp-ad-text-overlay",j:[{L:"div",B:"ytp-ad-overlay-ad-info-button-container"},{L:"div",B:"ytp-ad-overlay-close-container",j:[{L:"button",B:"ytp-ad-overlay-close-button",j:[RS(VRL)]}]},{L:"div",B:"ytp-ad-overlay-title",Ak:"{{title}}"},{L:"div",B:"ytp-ad-overlay-desc",Ak:"{{description}}"},{L:"div",i_:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Ak:"{{displayUrl}}"}]});p.U(C.rV("ytp-ad-overlay-title"),"click",function(V){uM(p,C.element,V)}); p.U(C.rV("ytp-ad-overlay-link"),"click",function(V){uM(p,C.element,V)}); p.U(C.rV("ytp-ad-overlay-close-container"),"click",p.qL);C.hide();return C}; pme=function(p){var C=new g.Sp({L:"div",i_:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],j:[{L:"div",B:"ytp-ad-overlay-ad-info-button-container"},{L:"div",B:"ytp-ad-overlay-close-container",j:[{L:"button",B:"ytp-ad-overlay-close-button",j:[RS(VRL)]}]},{L:"div",B:"ytp-ad-overlay-text-image",j:[{L:"img",X:{src:"{{imageUrl}}"}}]},{L:"div",B:"ytp-ad-overlay-title",Ak:"{{title}}"},{L:"div",B:"ytp-ad-overlay-desc",Ak:"{{description}}"},{L:"div",i_:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Ak:"{{displayUrl}}"}]});p.U(C.rV("ytp-ad-overlay-title"),"click",function(V){uM(p,C.element,V)}); p.U(C.rV("ytp-ad-overlay-link"),"click",function(V){uM(p,C.element,V)}); p.U(C.rV("ytp-ad-overlay-close-container"),"click",p.qL);p.U(C.rV("ytp-ad-overlay-text-image"),"click",p.h3n);C.hide();return C}; Cyv=function(p){var C=new g.Sp({L:"div",B:"ytp-ad-image-overlay",j:[{L:"div",B:"ytp-ad-overlay-ad-info-button-container"},{L:"div",B:"ytp-ad-overlay-close-container",j:[{L:"button",B:"ytp-ad-overlay-close-button",j:[RS(VRL)]}]},{L:"div",B:"ytp-ad-overlay-image",j:[{L:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});p.U(C.rV("ytp-ad-overlay-image"),"click",function(V){uM(p,C.element,V)}); p.U(C.rV("ytp-ad-overlay-close-container"),"click",p.qL);C.hide();return C}; NjY=function(p,C){if(C){var V=g.n(C,xr)||null;V==null?g.nm(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(C=g.ju("video-ads ytp-ad-module")||null,C==null?g.nm(Error("Could not locate the root ads container element to attach the ad info dialog.")):(p.Sa=new g.Sp({L:"div",B:"ytp-ad-overlay-ad-info-dialog-container"}),g.R(p,p.Sa),p.Sa.u_(C),C=new NN(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,p.Sa.element,!1),g.R(p,C),C.init(lq("ad-info-hover-text-button"),V,p.macros), p.W?(C.u_(p.W,0),C.subscribe("f",p.s$_,p),C.subscribe("e",p.J5,p),p.U(p.W,"click",p.IeY),p.U(g.ju("ytp-ad-button",C.element),"click",function(){var N;if(g.n((N=g.n(V.button,g.z$))==null?void 0:N.serviceEndpoint,B8s))p.R$=p.api.getPlayerState(1)===2,p.api.pauseVideo();else p.api.onAdUxClicked("ad-info-hover-text-button",p.layoutId)}),p.Qn=C):g.nm(Error("Ad info button container within overlay ad was not present."))))}else g.eG(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; XmY=function(p,C){if(HiS(p,ZO)||p.api.isMinimized())return!1;var V=DU(C.title),N=DU(C.description);if(g.Sy(V)||g.Sy(N))return!1;p.createServerVe(p.V.element,C.trackingParams||null);p.V.updateValue("title",DU(C.title));p.V.updateValue("description",DU(C.description));p.V.updateValue("displayUrl",DU(C.displayUrl));C.navigationEndpoint&&g.C6(p.Z,C.navigationEndpoint);p.V.show();p.vr.start();p.logVisibility(p.V.element,!0);p.U(p.V.element,"mouseover",function(){p.b_++}); return!0}; dHL=function(p,C){if(HiS(p,ZO)||p.api.isMinimized())return!1;var V=DU(C.title),N=DU(C.description);if(g.Sy(V)||g.Sy(N))return!1;p.createServerVe(p.C.element,C.trackingParams||null);p.C.updateValue("title",DU(C.title));p.C.updateValue("description",DU(C.description));p.C.updateValue("displayUrl",DU(C.displayUrl));p.C.updateValue("imageUrl",T8e(C.image));C.navigationEndpoint&&g.C6(p.Z,C.navigationEndpoint);p.KS=C.imageNavigationEndpoint||null;p.C.show();p.vr.start();p.logVisibility(p.C.element,!0); p.U(p.C.element,"mouseover",function(){p.b_++}); return!0}; ii9=function(p,C){if(p.api.isMinimized())return!1;var V=MzQ(C.image),N=V;V.width<ZO.width&&(N=ZO);if(V.width===0||V.height===0||HiS(p,N))return!1;p.createServerVe(p.T.element,C.trackingParams||null);p.T.updateValue("imageUrl",T8e(C.image));p.T.updateValue("width",V.width);p.T.updateValue("height",V.height);C.navigationEndpoint&&g.C6(p.Z,C.navigationEndpoint);g.K2(p.T.rV("ytp-ad-image-overlay"),"max-width",V.width+"px");p.T.show();p.logVisibility(p.T.element,!0);p.U(p.T.element,"mouseover",function(){p.b_++; p.api.xo("invideo-overlay",p.layoutId)}); p.U(p.T.element,"mouseout",function(){p.api.A5("invideo-overlay",p.layoutId)}); return!0}; HiS=function(p,C){var V=p.api.dV().KO(),N=p.api.ai(!0,!1);return(C=UG(V,V.height-(N.height+N.top),C))?(p.Ga&&C&&(V=g.zh(p.macros),V.ERRORCODE=C.AM.toString(),V.ERROR_MSG=C.errorMessage,p.layoutId?BU(p.l_,p.Ga,p.layoutId,V):g.nm(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; uM=function(p,C,V){var N=g.zh(p.macros),H=g.Ax(C);N.AW={toString:function(){return H.width.toString()}}; N.AH={toString:function(){return H.height.toString()}}; var X=g.I9(V,C).floor();N.I_X={toString:function(){return X.x.toString()}}; N.NX={toString:function(){return X.x.toString()}}; N.I_Y={toString:function(){return X.y.toString()}}; N.NY={toString:function(){return X.y.toString()}}; N.NM={toString:function(){return p.b_.toString()}}; C=g.F(p.Z);for(V=C.next();!V.done;V=C.next())V=V.value,p.layoutId?BU(p.l_,V,p.layoutId,N):g.nm(Error("Missing layoutId for invideo_overlay_ad."));p.api.pauseVideo()}; hlQ=function(p,C){p=p.api.getRootNode();g.Tz(p,"ytp-ad-overlay-open",C);g.Tz(p,"ytp-ad-overlay-closed",!C)}; sGQ=function(p,C,V,N,H){dk.call(this,p,{L:"div",B:"ytp-ad-message-overlay",j:[{L:"div",B:"ytp-ad-message-slot"}]},"ad-message",C,V,N,H);var X=this;this.W=-1;this.V=0;this.b_=!1;this.Sa=this.rV("ytp-ad-message-slot");this.C=new g.Sp({L:"span",B:"ytp-ad-message-container"});this.C.u_(this.Sa);g.R(this,this.C);this.messageText=new HE(this.api,this.layoutId,this.interactionLoggingClientData,N,"ytp-ad-message-text");g.R(this,this.messageText);this.messageText.u_(this.C.element);this.S=new g.a0(this.C, 400,!1,100,function(){X.hide()}); g.R(this,this.S);this.hide()}; axL=function(p,C){p=p.api.getRootNode();g.Tz(p,"ytp-ad-overlay-open",C);g.Tz(p,"ytp-ad-overlay-closed",!C)}; EMX=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-underlay-companion",j:[{L:"div",B:"ytp-ad-underlay-side-container",j:[{L:"div",B:"ytp-ad-underlay-image-container"},{L:"div",B:"ytp-ad-underlay-description-container"},{L:"div",B:"ytp-ad-underlay-headline-container"},{L:"div",B:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",C,V,N);this.actionButton=null;this.Sa=this.rV("ytp-ad-underlay-image-container");this.V=new Wa(this.api,this.layoutId,this.interactionLoggingClientData, this.l_,"ytp-ad-underlay-image");g.R(this,this.V);this.V.u_(this.Sa);this.b_=this.rV("ytp-ad-underlay-headline-container");this.C=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-underlay-headline");g.R(this,this.C);this.C.u_(this.b_);this.Z=this.rV("ytp-ad-underlay-description-container");this.S=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-underlay-description");g.R(this,this.S);this.S.u_(this.Z);this.W=this.rV("ytp-ad-underlay-action-button-container"); this.T=this.rV("ytp-ad-underlay-side-container");this.hide()}; lxL=function(p){var C=g.ju("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; Um=function(p,C,V,N,H,X){X=X===void 0?function(){}:X; Kq.call(this,p,{L:"div",B:"ytp-ad-survey-answer"},"survey-answer",C,V,N);this.index=H;this.onSelected=X;this.T=null;this.toggledLoggingParams="";this.answer=this.rV("ytp-ad-survey-answer");this.hide()}; tRV=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",C,V,N);this.button=null;this.T=this.rV("ytp-ad-survey-none-of-the-above");this.hide()}; fD=function(p,C,V,N){var H=["ytp-ad-survey-submit-button"];H.push("ytp-ad-survey-submit-button-rounded");nq.call(this,p,C,V,N,H,"survey-submit")}; Om=function(p,C,V,N,H){Kq.call(this,p,{L:"div",B:"ytp-ad-survey-player-overlay",j:[{L:"div",B:"ytp-ad-survey-player-overlay-instream-info"},{L:"div",B:"ytp-ad-survey-player-overlay-skip-preview-submit",j:[{L:"div",B:"ytp-ad-survey-player-overlay-skip-or-preview"},{L:"div",B:"ytp-ad-survey-player-overlay-submit"}]},{L:"div",B:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",C,V,N);this.S=H;this.C=this.T=null;this.V=this.rV("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.rV("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.rV("ytp-ad-survey-player-overlay-submit");g.R(this,this.S);this.hide()}; y0=function(p,C,V,N,H,X){X=X===void 0?function(){}:X; Kq.call(this,p,{L:"div",B:"ytp-ad-survey-question",j:[{L:"div",i_:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{L:"div",i_:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{L:"div",i_:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{L:"div",B:"ytp-ad-survey-question-background"}]},H,C,V,N);this.Sa=X;this.S=null;this.C=[];this.T=null;this.Z=this.api.K().experiments.OY("a11y_h5_associate_survey_question");this.question=this.rV("ytp-ad-survey-question"); this.vr=this.rV("ytp-ad-survey-question-background");this.questionText=this.rV("ytp-ad-survey-question-text");this.answers=this.rV("ytp-ad-survey-answers");this.playerOverlay=this.rV("ytp-ad-survey-question-player-overlay");this.V=Date.now()}; cve=function(p,C){C=g.uq(C);g.ce(p.questionText,C);p.Z&&p.questionText.setAttribute("id",lq("survey-question-text"))}; Tju=function(p,C,V,N){N=new Um(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,N,p.Sa);N.u_(p.answers);N.init(lq("survey-answer"),C,V);p.Z&&(C=p.questionText.getAttribute("id"),C!=null&&(N.T!==null?N.T.C.setAttribute("aria-describedby",C):N.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",C)));p.C.push(N)}; Jvv=function(p,C){if(C){var V=C.background;V&&g.n(V,MRY)&&(V=(V=g.n(V,MRY).image)&&ge(V)||"",g.Sy(V)?g.eG(Error("Found ThumbnailDetails without valid image URL")):g.K2(p.vr,"backgroundImage","url("+V+")"));if(C.durationMilliseconds==null||C.durationMilliseconds===void 0||C.durationMilliseconds===0)g.nm(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(C)));else{p.V=g.QL();p.T=new I0(p.api,C.durationMilliseconds);g.R(p,p.T);if(p.T&&C.instreamAdPlayerOverlay&&g.n(C.instreamAdPlayerOverlay, kr))try{var N=new Om(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,p.T);N.u_(p.playerOverlay);N.init(lq("survey-player-overlay"),g.n(C.instreamAdPlayerOverlay,kr),p.macros);p.S=N;g.R(p,N);p.z0()}catch(H){g.nm(Error("ISAPOR had an error when initializing. Error: "+(H+" SurveyAdQuestionCommon: "+JSON.stringify(C))))}else g.nm(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(C)));p.T&&C.durationMilliseconds&&C.durationMilliseconds>0?(C=new $U(p.api,p.T),C.u_(p.playerOverlay), g.R(p,C)):g.nm(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(C)))}}else g.nm(Error("addCommonComponents() needs to be called before starting countdown."))}; mHj=function(p){function C(V){return{toString:function(){return V()}}} p.macros.SURVEY_LOCAL_TIME_EPOCH_S=C(function(){var V=new Date;return(Math.round(V.valueOf()/1E3)+-1*V.getTimezoneOffset()*60).toString()}); p.macros.SURVEY_ELAPSED_MS=C(function(){return(Date.now()-p.V).toString()})}; vMy=function(p,C,V,N,H){y0.call(this,p,C,V,N,"survey-question-multi-select");this.b_=H;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}; F3V=function(p,C,V){p.noneOfTheAbove=new tRV(p.api,p.layoutId,p.interactionLoggingClientData,p.l_);p.noneOfTheAbove.u_(p.answers);p.noneOfTheAbove.init(lq("survey-none-of-the-above"),C,V)}; K3a=function(p){p.C.forEach(function(C){C.T.toggleButton(!1)}); SYS(p,!0)}; SYS=function(p,C){var V=p.S;p=DHY(p);C=C===void 0?!1:C;V.T&&(p?V.T.hide():V.T.show(),C&&V.T instanceof ft&&!V.T.S&&dpL(V.T,!1));V.C&&(p?V.C.show():V.C.hide())}; DHY=function(p){return p.C.some(function(C){return C.T.isToggled()})||p.noneOfTheAbove.button.isToggled()}; qE=function(p,C,V,N,H){y0.call(this,p,C,V,N,"survey-question-single-select",function(d){X.api.K().G("supports_multi_step_on_desktop")&&H([d])}); var X=this;this.hide()}; IQ=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-survey",j:[{L:"div",B:"ytp-ad-survey-questions"}]},"survey",C,V,N);this.questions=[];this.C=[];this.conditioningRules=[];this.T=0;this.W=this.rV("ytp-ad-survey-questions");this.api.K().G("fix_survey_color_contrast_on_destop")&&this.rV("ytp-ad-survey").classList.add("color-contrast-fix");this.api.K().G("web_enable_speedmaster")&&this.rV("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; UHX=function(p,C){var V=p.C[C],N;(N=p.V)==null||N.dispose();g.n(V,od)?u$1(p,g.n(V,od),p.macros):g.n(V,AM)&&Zi9(p,g.n(V,AM),p.macros);p.T=C}; u$1=function(p,C,V){var N=new qE(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,p.S.bind(p));N.u_(p.W);N.init(lq("survey-question-single-select"),C,V);p.api.K().G("supports_multi_step_on_desktop")?p.V=N:p.questions.push(N);g.R(p,N)}; Zi9=function(p,C,V){var N=new vMy(p.api,p.layoutId,p.interactionLoggingClientData,p.l_,p.S.bind(p));N.u_(p.W);N.init(lq("survey-question-multi-select"),C,V);p.api.K().G("supports_multi_step_on_desktop")?p.V=N:p.questions.push(N);g.R(p,N)}; bM=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-survey-interstitial",j:[{L:"div",B:"ytp-ad-survey-interstitial-contents",j:[{L:"div",B:"ytp-ad-survey-interstitial-logo",j:[{L:"div",B:"ytp-ad-survey-interstitial-logo-image"}]},{L:"div",B:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",C,V,N);this.T=this.actionButton=null;this.interstitial=this.rV("ytp-ad-survey-interstitial");this.C=this.rV("ytp-ad-survey-interstitial-contents");this.text=this.rV("ytp-ad-survey-interstitial-text"); this.logoImage=this.rV("ytp-ad-survey-interstitial-logo-image");this.transition=new g.a0(this,500,!1,300);g.R(this,this.transition)}; fxe=function(p,C){C=C&&ge(C)||"";if(g.Sy(C))g.eG(Error("Found ThumbnailDetails without valid image URL"));else{var V=p.style;p=p.style.cssText;var N=document.implementation.createHTMLDocument("").createElement("DIV");N.style.cssText=p;p=LgS(N.style);V.cssText=[p,'background-image:url("'+C+'");'].join("")}}; Oi9=function(p){var C=g.ju("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; AF=function(p,C,V,N,H,X){X=X===void 0?0:X;dk.call(this,p,{L:"div",B:"ytp-preview-ad",j:[{L:"div",B:"ytp-preview-ad__text"}]},"preview-ad",C,V,N,H);var d=this;this.b_=X;this.C=0;this.S=-1;this.V=this.rV("ytp-preview-ad__text");switch(this.b_){case 1:this.V.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.a0(this,400,!1,100,function(){d.hide()}); g.R(this,this.transition);this.hide()}; oQ=function(p,C,V,N){Kq.call(this,p,{L:"img",B:"ytp-ad-avatar"},"ad-avatar",C,V,N);this.hide()}; yvy=function(p){switch(p.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; ky=function(p,C,V,N,H){H=H===void 0?!1:H;Kq.call(this,p,{L:"button",B:"ytp-ad-button-vm"},"ad-button",C,V,N);this.buttonText=this.buttonIcon=null;this.hide();this.T=H}; qYy=function(p,C,V,N,H){dk.call(this,p,{L:"div",i_:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],j:[{L:"div",B:"ytp-ad-avatar-lockup-card__avatar_and_text_container",j:[{L:"div",B:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",C,V,N,H);this.startMilliseconds=0;this.adAvatar=new oQ(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adAvatar);Eo(this.element,this.adAvatar.element,0);this.headline=new z6(this.api,this.layoutId, this.interactionLoggingClientData,this.l_);g.R(this,this.headline);this.headline.u_(this.rV("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.description);this.description.u_(this.rV("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new ky(this.api, this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adButton);this.adButton.u_(this.element);this.hide()}; Yy=function(p,C,V,N){Kq.call(this,p,{L:"button",B:"ytp-skip-ad-button",j:[{L:"div",B:"ytp-skip-ad-button__text"}]},"skip-button",C,V,N);var H=this;this.C=!1;this.S=this.rV("ytp-skip-ad-button__text");this.transition=new g.a0(this,500,!1,100,function(){H.hide()}); g.R(this,this.transition);this.T=new MN(this.element,15E3,5E3,.5,.5,!0);g.R(this,this.T);this.hide()}; IxH=function(p,C,V,N,H){dk.call(this,p,{L:"div",B:"ytp-skip-ad"},"skip-ad",C,V,N,H);this.skipOffsetMilliseconds=0;this.S=this.isSkippable=!1;var X;if((X=this.api.getVideoData())==null?0:X.isDaiEnabled())this.S=this.api.K().G("clean_player_style_fix_on_web");if(this.S||!this.api.K().experiments.OY("disable_ad_preview_for_instream_ads"))this.C=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.T),g.R(this,this.C),this.C.u_(this.element);this.V=new Yy(this.api,this.layoutId, this.interactionLoggingClientData,this.l_);g.R(this,this.V);this.V.u_(this.element);this.hide()}; zS=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-visit-advertiser-link"},"visit-advertiser-link",C,V,N);this.hide();this.api.G("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.G("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; RQ=function(p,C,V,N,H){Kq.call(this,p,{L:"div",B:"ytp-ad-player-overlay-layout",j:[{L:"div",B:"ytp-ad-player-overlay-layout__player-card-container"},{L:"div",B:"ytp-ad-player-overlay-layout__ad-info-container"},{L:"div",B:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{L:"div",B:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",C,V,N);this.C=H;this.Sa=this.rV("ytp-ad-player-overlay-layout__player-card-container");this.T=this.rV("ytp-ad-player-overlay-layout__ad-info-container"); this.Z=this.rV("ytp-ad-player-overlay-layout__skip-or-preview-container");this.b_=this.rV("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; bia=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-grid-card-text",j:[{L:"div",B:"ytp-ad-grid-card-text__metadata",j:[{L:"div",B:"ytp-ad-grid-card-text__metadata__headline"},{L:"div",B:"ytp-ad-grid-card-text__metadata__description",j:[{L:"div",B:"ytp-ad-grid-card-text__metadata__description__line"},{L:"div",B:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{L:"div",B:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",C,V,N);this.headline=new z6(this.api,this.layoutId,this.interactionLoggingClientData, this.l_);g.R(this,this.headline);this.headline.u_(this.rV("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,!0);g.R(this,this.moreInfoButton);this.moreInfoButton.u_(this.rV("ytp-ad-grid-card-text__button"))}; nD=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",C,V,N);this.T=[]}; eC=function(p,C,V,N,H,X,d){dk.call(this,p,X,d,C,V,N,H);this.playerProgressOffsetMs=0;this.C=!1}; AvL=function(p){var C=g.ju("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; oMe=function(p,C,V,N,H){eC.call(this,p,C,V,N,H,{L:"div",B:"ytp-display-underlay-text-grid-cards",j:[{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container",j:[{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},{L:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new nD(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adGridCardCollection); this.adGridCardCollection.u_(this.rV("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adButton);this.adButton.u_(this.rV("ytp-display-underlay-text-grid-cards__content_container__ad_button"));this.V=this.rV("ytp-display-underlay-text-grid-cards__content_container")}; Pq=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-ad-details-line"},"ad-details-line",C,V,N);this.T=[];this.hide()}; wv=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-image-background",j:[{L:"img",B:"ytp-image-background-image"}]},"image-background",C,V,N);this.hide()}; kgV=function(p,C,V,N,H){dk.call(this,p,{L:"svg",B:"ytp-timed-pie-countdown",X:{viewBox:"0 0 20 20"},j:[{L:"circle",B:"ytp-timed-pie-countdown__background",X:{r:"10",cx:"10",cy:"10"}},{L:"circle",B:"ytp-timed-pie-countdown__inner",X:{r:"5",cx:"10",cy:"10"}},{L:"circle",B:"ytp-timed-pie-countdown__outer",X:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",C,V,N,H);this.V=this.rV("ytp-timed-pie-countdown__inner");this.C=Math.ceil(2*Math.PI*5);this.hide()}; $y=function(p,C,V,N){Kq.call(this,p,{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout",X:{tabindex:"0"},j:[{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content",j:[{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",j:[{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{L:"div",B:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",C,V,N);this.C=null;this.S=this.rV("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.V=new I_;g.R(this,this.V);this.hide()}; xHX=function(p){var C=g.ju("html5-video-player");C&&g.Tz(C,"ytp-ad-display-override",p)}; zl1=function(p){if(!p.adAvatar||!g.n(p.adAvatar,YY1))return g.nm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!p.headline)return g.nm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!p.adBadge||!g.n(p.adBadge,LD))return g.nm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!p.adButton||!g.n(p.adButton,gv))return g.nm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1; if(!p.adInfoRenderer||!g.n(p.adInfoRenderer,xr))return g.nm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;p=p.durationMilliseconds||0;return typeof p!=="number"||p<=0?(g.nm(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+p)),!1):!0}; Wq=function(p,C,V){GB.call(this,p);this.api=p;this.l_=C;this.C={};p=new g.L({L:"div",i_:["video-ads","ytp-ad-module"]});g.R(this,p);rB&&g.Ed(p.element,"ytp-ads-tiny-mode");this.W=new Z9(p.element);g.R(this,this.W);g.LT(this.api,p.element,4);Vn(V)&&(V=new g.L({L:"div",i_:["ytp-ad-underlay"]}),g.R(this,V),this.V=new Z9(V.element),g.R(this,this.V),g.LT(this.api,V.element,0));g.R(this,kWj())}; RlQ=function(p,C){p=g.x5(p.C,C.id,null);p==null&&g.eG(Error("Component not found for element id: "+C.id));return p||null}; nMS=function(p){g.IT.call(this,p);var C=this;this.C=null;this.created=!1;this.V=p.K().G("h5_use_refactored_get_ad_break")?new osQ(this.player):new L7(this.player);this.S=function(){if(C.C!=null)return C.C;var N=new e$9({Bp:DO(C.T).Bp,w6:DO(C.T).w6,N:C.player,cB:DO(C.T).cB,No:C.T.T.No,I8:DO(C.T).I8,YG:C.T.T.YG});C.C=N.xU;return C.C}; this.T=new gzX(this.player,this,this.V,this.S);g.R(this,this.T);var V=p.K();!I3(V)||g.yj(V)||kS(V)||(g.R(this,new Wq(p,DO(this.T).l_,DO(this.T).cB)),g.R(this,new WXe(p)))}; elL=function(p){p.created!==p.loaded&&S2("Created and loaded are out of sync")}; $HY=function(p){g.IT.prototype.load.call(p);var C=DO(p.T).cB;try{p.player.getRootNode().classList.add("ad-created")}catch(E){S2(E instanceof Error?E:String(E))}var V=p.player.getVideoData(1),N=V&&V.videoId||"",H=V&&V.getPlayerResponse()||{},X=(!p.player.K().experiments.OY("debug_ignore_ad_placements")&&H&&H.adPlacements||[]).map(function(E){return E.adPlacementRenderer}),d=((H==null?void 0:H.adSlots)||[]).map(function(E){return g.n(E,eB)}); H=H.playerConfig&&H.playerConfig.daiConfig&&H.playerConfig.daiConfig.enableDai||!1;V&&V.p4();X=Pyu(X,d,C,DO(p.T).SL);d=V&&V.clientPlaybackNonce||"";V=V&&V.WP||!1;if(fR(C,!0)&&V){var a;C={};(a=p.player.getVideoData())==null||a.k_("p_cpb",(C.cc=d,C))}a=1E3*p.player.getDuration(1);wm1(p);p.T.T.rJ.zp(d,a,V,X.NV,X.dE,X.NV,H,N)}; wm1=function(p){var C,V;if(V=(C=p.player.getVideoData(1))==null||!C.WP)C=p.player.K(),V=I3(C)&&!g.qz(C)&&C.playerStyle==="desktop-polymer";V&&(p=p.player.getInternalApi(),p.addEventListener("updateKevlarOrC3Companion",l1H),p.addEventListener("updateEngagementPanelAction",t_e),p.addEventListener("changeEngagementPanelVisibility",c1u),window.addEventListener("yt-navigate-start",M_S))}; Q0=function(p,C){C===p.R0&&(p.R0=void 0)}; L39=function(p){var C=DO(p.T).xt,V=C.S().hL("SLOT_TYPE_PLAYER_BYTES",1);C=O3(C.pS.get(),1).clientPlaybackNonce;var N=!1;V=g.F(V);for(var H=V.next();!H.done;H=V.next()){H=H.value;var X=H.slotType==="SLOT_TYPE_PLAYER_BYTES"&&H.slotEntryTrigger instanceof xP?H.slotEntryTrigger.Y8:void 0;X&&X===C&&(N&&S2("More than 1 preroll playerBytes slot detected",H),N=!0)}N||sm(DO(p.T).IW)}; gM9=function(p){if(pD(DO(p.T).cB))return!0;var C="";p=g.F(DO(p.T).I8.jU.keys());for(var V=p.next();!V.done;V=p.next()){V=V.value;if(V.slotType==="SLOT_TYPE_PLAYER_BYTES"&&V.Br==="core")return!0;C+=V.slotType+" "}Math.random()<.01&&S2("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:C});return!1}; W3v=function(p){p=g.F(DO(p.T).I8.jU.values());for(var C=p.next();!C.done;C=p.next())if(C.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; DQX=function(p,C,V,N,H,X){V=V===void 0?[]:V;N=N===void 0?"":N;H=H===void 0?"":H;var d=DO(p.T).cB,a=p.player.getVideoData(1);a&&a.getPlayerResponse();a&&a.p4();V=Pyu(C,V,d,DO(p.T).SL);faQ(DO(p.T).r7,N,V.NV,V.dE,C,H,X)}; Pyu=function(p,C,V,N){C={NV:[],dE:C};p=g.F(p);for(var H=p.next();!H.done;H=p.next())if((H=H.value)&&H.renderer!=null){var X=H.renderer;if(!V.N.K().G("html5_enable_vod_lasr_with_notify_pacf")){var d=void 0,a=void 0,E=void 0,l=void 0,t=N;g.n((l=X.sandwichedLinearAdRenderer)==null?void 0:l.adVideoStart,mH)?(d=g.n((E=X.sandwichedLinearAdRenderer)==null?void 0:E.adVideoStart,mH),d=nYu(d,t),g.g7(X.sandwichedLinearAdRenderer.adVideoStart,mH,d)):g.n((a=X.linearAdSequenceRenderer)==null?void 0:a.adStart,mH)&& (E=g.n((d=X.linearAdSequenceRenderer)==null?void 0:d.adStart,mH),d=nYu(E,t),g.g7(X.linearAdSequenceRenderer.adStart,mH,d))}C.NV.push(H)}return C}; g.rv=function(p){if(typeof DOMParser!="undefined")return VW(new DOMParser,zUe(p),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.Bq=function(p){g.Y.call(this);this.callback=p;this.T=new Ud(0,0,.4,0,.2,1,1,1);this.delay=new g.V2(this.next,window,this);g.R(this,this.delay)}; g.QGv=function(p){var C=p.K();return C.QZ&&!C.V&&g.KI(C)?p.isEmbedsShortsMode()?(p=p.ai(),Math.min(p.width,p.height)>=315):!p.OE():!1}; g.GS=function(p){g.L.call(this,{L:"div",B:"ytp-more-videos-view",X:{tabIndex:"-1"}});var C=this;this.api=p;this.C=!0;this.V=new g.Rr(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.J=this.S=this.scrollPosition=0;this.title=new g.L({L:"h2",B:"ytp-related-title",Ak:"{{title}}"});this.previous=new g.L({L:"button",i_:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},j:[g.fq()]});this.D=new g.Bq(function(V){C.suggestions.element.scrollLeft=-V}); this.next=new g.L({L:"button",i_:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},j:[g.Oy()]});g.R(this,this.V);this.W=p.K().S;g.R(this,this.title);this.title.u_(this.element);this.suggestions=new g.L({L:"div",B:"ytp-suggestions"});g.R(this,this.suggestions);this.suggestions.u_(this.element);g.R(this,this.previous);this.previous.u_(this.element);this.previous.listen("click",this.IP,this);g.R(this,this.D);rve(this);g.R(this,this.next);this.next.u_(this.element);this.next.listen("click", this.sT,this);this.V.U(this.api,"appresize",this.OR);this.V.U(this.api,"fullscreentoggled",this.V2);this.V.U(this.api,"videodatachange",this.onVideoDataChange);this.OR(this.api.dV().getPlayerSize());this.onVideoDataChange()}; rve=function(p){for(var C={nQ:0};C.nQ<16;C={nQ:C.nQ},++C.nQ){var V=new g.L({L:"a",B:"ytp-suggestion-link",X:{href:"{{link}}",target:p.api.K().Z,"aria-label":"{{aria_label}}"},j:[{L:"div",B:"ytp-suggestion-image"},{L:"div",B:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},j:[{L:"div",B:"ytp-suggestion-title",Ak:"{{title}}"},{L:"div",B:"ytp-suggestion-author",Ak:"{{author_and_views}}"},{L:"div",X:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration", Ak:"{{duration}}"}]}]});g.R(p,V);var N=V.rV("ytp-suggestion-link");g.K2(N,"transitionDelay",C.nQ/20+"s");p.V.U(N,"click",function(H){return function(X){var d=H.nQ;if(p.C){var a=p.suggestionData[d],E=a.sessionData;p.W&&p.api.G("web_player_log_click_before_generating_ve_conversion_params")?(p.api.logClick(p.T[d].element),d=a.a8(),a={},g.eQ(p.api,a),d=g.GD(d,a),g.Jh(d,p.api,X)):g.Ml(X,p.api,p.W,E||void 0)&&p.api.Ce(a.videoId,E,a.playlistId)}else X.preventDefault(),document.activeElement.blur()}}(C)); V.u_(p.suggestions.element);p.T.push(V);p.api.createServerVe(V.element,V)}}; Bja=function(p){if(p.api.K().G("web_player_log_click_before_generating_ve_conversion_params"))for(var C=Math.floor(-p.scrollPosition/(p.S+8)),V=Math.min(C+p.columns,p.suggestionData.length)-1;C<=V;C++)p.api.logVisibility(p.T[C].element,!0)}; g.pM=function(p){var C=p.api.GW()?32:16;C=p.J/2+C;p.next.element.style.bottom=C+"px";p.previous.element.style.bottom=C+"px";C=p.scrollPosition;var V=p.containerWidth-p.suggestionData.length*(p.S+8);g.Tz(p.element,"ytp-scroll-min",C>=0);g.Tz(p.element,"ytp-scroll-max",C<=V)}; pvc=function(p){for(var C=p.suggestionData.length,V=0;V<C;++V){var N=void 0,H=void 0,X=void 0;N=p;var d=N.api.K(),a=N.suggestionData[V],E=N.T[V];X=N.api.isEmbedsShortsMode()?a.shortViewCount||"":a.shortViewCount?a.author+" \u2022 "+a.shortViewCount:a.author;E.element.style.display="";g.K2(E.rV("ytp-suggestion-link"),"display","inline-block");GgX.test(a.title)&&(E.rV("ytp-suggestion-title").dir="rtl");GgX.test(X)&&(E.rV("ytp-suggestion-author").dir="rtl");H=a.isLivePlayback?"Live":a.lengthSeconds? g.A7(a.lengthSeconds):"";var l=a.a8(N.api.isEmbedsShortsMode());if(g.KI(d)&&!d.G("web_player_log_click_before_generating_ve_conversion_params")){var t={};g.FE(N.api,"addEmbedsConversionTrackingParams",[t]);l=g.GD(l,t)}d.G("web_player_log_click_before_generating_ve_conversion_params")&&(d=(d=a.sessionData)&&d.itct)&&N.api.setTrackingParams(E.element,d);E.update({author_and_views:X,duration:H,link:l,title:a.title,aria_label:a.ariaLabel||a.title,is_live:a.isLivePlayback,aria_hidden:!!a.ariaLabel,blink_rendering_hack:g.kZ|| g.Fs?"will-change: opacity":void 0});H=E.rV("ytp-suggestion-image");N=N.api.isEmbedsShortsMode()?a.TW("hq2.jpg"):a.TW();H.style.backgroundImage=N?"url("+N+")":""}if(C<16)for(;C<16;++C)g.K2(p.T[C].rV("ytp-suggestion-link"),"display","none");g.pM(p)}; pvs=[];hQ=typeof Object.defineProperties=="function"?Object.defineProperty:function(p,C,V){if(p==Array.prototype||p==Object.prototype)return p;p[C]=V.value;return p}; g.Xe=juy(this);sS("Symbol",function(p){function C(X){if(this instanceof C)throw new TypeError("Symbol is not a constructor");return new V(N+(X||"")+"_"+H++,X)} function V(X,d){this.T=X;hQ(this,"description",{configurable:!0,writable:!0,value:d})} if(p)return p;V.prototype.toString=function(){return this.T}; var N="jscomp_symbol_"+(Math.random()*1E9>>>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<C.length;V++){var N=g.Xe[C[V]];typeof N==="function"&&typeof N.prototype[p]!="function"&&hQ(N.prototype,p,{configurable:!0,writable:!0,value:function(){return Va9(C99(this))}})}return p}); var N1V=typeof Object.create=="function"?Object.create:function(p){function C(){} C.prototype=p;return new C},C9P=function(){function p(){function V(){} new V;Reflect.construct(V,[],function(){}); return new V instanceof V} if(typeof Reflect!="undefined"&&Reflect.construct){if(p())return Reflect.construct;var C=Reflect.construct;return function(V,N,H){V=C(V,N);H&&Reflect.setPrototypeOf(V,H.prototype);return V}}return function(V,N,H){H===void 0&&(H=V); H=N1V(H.prototype||Object.prototype);return Function.prototype.apply.call(V,H,N)||H}}(),jur; if(typeof Object.setPrototypeOf=="function")jur=Object.setPrototypeOf;else{var VaP;a:{var N1p={a:!0},HYP={};try{HYP.__proto__=N1p;VaP=HYP.a;break a}catch(p){}VaP=!1}jur=VaP?function(p,C){p.__proto__=C;if(p.__proto__!==C)throw new TypeError(p+" is not extensible");return p}:null}var l9=jur,XvE=typeof Object.assign=="function"?Object.assign:function(p,C){for(var V=1;V<arguments.length;V++){var N=arguments[V]; if(N)for(var H in N)tQ(N,H)&&(p[H]=N[H])}return p}; sS("Object.assign",function(p){return p||XvE}); cv.prototype.J=function(p){this.T=p}; cv.prototype.return=function(p){this.V={return:p};this.C=this.S}; cv.prototype.EY=function(p){this.C=p}; sS("Reflect",function(p){return p?p:{}}); sS("Reflect.construct",function(){return C9P}); sS("Reflect.setPrototypeOf",function(p){return p?p:l9?function(C,V){try{return l9(C,V),!0}catch(N){return!1}}:null}); sS("Promise",function(p){function C(d){this.T=0;this.V=void 0;this.C=[];this.D=!1;var a=this.S();try{d(a.resolve,a.reject)}catch(E){a.reject(E)}} function V(){this.T=null} function N(d){return d instanceof C?d:new C(function(a){a(d)})} if(p)return p;V.prototype.C=function(d){if(this.T==null){this.T=[];var a=this;this.V(function(){a.W()})}this.T.push(d)}; var H=g.Xe.setTimeout;V.prototype.V=function(d){H(d,0)}; V.prototype.W=function(){for(;this.T&&this.T.length;){var d=this.T;this.T=[];for(var a=0;a<d.length;++a){var E=d[a];d[a]=null;try{E()}catch(l){this.S(l)}}}this.T=null}; V.prototype.S=function(d){this.V(function(){throw d;})}; C.prototype.S=function(){function d(l){return function(t){E||(E=!0,l.call(a,t))}} var a=this,E=!1;return{resolve:d(this.sY),reject:d(this.W)}}; C.prototype.sY=function(d){if(d===this)this.W(new TypeError("A Promise cannot resolve to itself"));else if(d instanceof C)this.Sa(d);else{a:switch(typeof d){case "object":var a=d!=null;break a;case "function":a=!0;break a;default:a=!1}a?this.b_(d):this.Y(d)}}; C.prototype.b_=function(d){var a=void 0;try{a=d.then}catch(E){this.W(E);return}typeof a=="function"?this.Wr(a,d):this.Y(d)}; C.prototype.W=function(d){this.J(2,d)}; C.prototype.Y=function(d){this.J(1,d)}; C.prototype.J=function(d,a){if(this.T!=0)throw Error("Cannot settle("+d+", "+a+"): Promise already settled in state"+this.T);this.T=d;this.V=a;this.T===2&&this.Vn();this.Z()}; C.prototype.Vn=function(){var d=this;H(function(){if(d.a$()){var a=g.Xe.console;typeof a!=="undefined"&&a.error(d.V)}},1)}; C.prototype.a$=function(){if(this.D)return!1;var d=g.Xe.CustomEvent,a=g.Xe.Event,E=g.Xe.dispatchEvent;if(typeof E==="undefined")return!0;typeof d==="function"?d=new d("unhandledrejection",{cancelable:!0}):typeof a==="function"?d=new a("unhandledrejection",{cancelable:!0}):(d=g.Xe.document.createEvent("CustomEvent"),d.initCustomEvent("unhandledrejection",!1,!0,d));d.promise=this;d.reason=this.V;return E(d)}; C.prototype.Z=function(){if(this.C!=null){for(var d=0;d<this.C.length;++d)X.C(this.C[d]);this.C=null}}; var X=new V;C.prototype.Sa=function(d){var a=this.S();d.Aj(a.resolve,a.reject)}; C.prototype.Wr=function(d,a){var E=this.S();try{d.call(a,E.resolve,E.reject)}catch(l){E.reject(l)}}; C.prototype.then=function(d,a){function E(T,M){return typeof T=="function"?function(J){try{l(T(J))}catch(S){t(S)}}:M} var l,t,c=new C(function(T,M){l=T;t=M}); this.Aj(E(d,l),E(a,t));return c}; C.prototype.catch=function(d){return this.then(void 0,d)}; C.prototype.Aj=function(d,a){function E(){switch(l.T){case 1:d(l.V);break;case 2:a(l.V);break;default:throw Error("Unexpected state: "+l.T);}} var l=this;this.C==null?X.C(E):this.C.push(E);this.D=!0}; C.resolve=N;C.reject=function(d){return new C(function(a,E){E(d)})}; C.race=function(d){return new C(function(a,E){for(var l=g.F(d),t=l.next();!t.done;t=l.next())N(t.value).Aj(a,E)})}; C.all=function(d){var a=g.F(d),E=a.next();return E.done?N([]):new C(function(l,t){function c(J){return function(S){T[J]=S;M--;M==0&&l(T)}} var T=[],M=0;do T.push(void 0),M++,N(E.value).Aj(c(T.length-1),t),E=a.next();while(!E.done)})}; return C}); sS("Object.setPrototypeOf",function(p){return p||l9}); sS("Symbol.dispose",function(p){return p?p:Symbol("Symbol.dispose")}); sS("SuppressedError",function(p){function C(V,N,H){if(!(this instanceof C))return new C(V,N,H);H=Error(H);"stack"in H&&(this.stack=H.stack);this.message=H.message;this.error=V;this.suppressed=N} if(p)return p;g.m(C,Error);C.prototype.name="SuppressedError";return C}); sS("Array.prototype.find",function(p){return p?p:function(C,V){return cQe(this,C,V).M9}}); sS("WeakMap",function(p){function C(E){this.T=(a+=Math.random()+1).toString();if(E){E=g.F(E);for(var l;!(l=E.next()).done;)l=l.value,this.set(l[0],l[1])}} function V(){} function N(E){var l=typeof E;return l==="object"&&E!==null||l==="function"} function H(E){if(!tQ(E,d)){var l=new V;hQ(E,d,{value:l})}} function X(E){var l=Object[E];l&&(Object[E]=function(t){if(t instanceof V)return t;Object.isExtensible(t)&&H(t);return l(t)})} if(function(){if(!p||!Object.seal)return!1;try{var E=Object.seal({}),l=Object.seal({}),t=new p([[E,2],[l,3]]);if(t.get(E)!=2||t.get(l)!=3)return!1;t.delete(E);t.set(l,4);return!t.has(E)&&t.get(l)==4}catch(c){return!1}}())return p; var d="$jscomp_hidden_"+Math.random();X("freeze");X("preventExtensions");X("seal");var a=0;C.prototype.set=function(E,l){if(!N(E))throw Error("Invalid WeakMap key");H(E);if(!tQ(E,d))throw Error("WeakMap key fail: "+E);E[d][this.T]=l;return this}; C.prototype.get=function(E){return N(E)&&tQ(E,d)?E[d][this.T]:void 0}; C.prototype.has=function(E){return N(E)&&tQ(E,d)&&tQ(E[d],this.T)}; C.prototype.delete=function(E){return N(E)&&tQ(E,d)&&tQ(E[d],this.T)?delete E[d][this.T]:!1}; return C}); sS("Map",function(p){function C(){var a={};return a.previous=a.next=a.head=a} function V(a,E){var l=a[1];return Va9(function(){if(l){for(;l.head!=a[1];)l=l.previous;for(;l.next!=l.head;)return l=l.next,{done:!1,value:E(l)};l=null}return{done:!0,value:void 0}})} function N(a,E){var l=E&&typeof E;l=="object"||l=="function"?X.has(E)?l=X.get(E):(l=""+ ++d,X.set(E,l)):l="p_"+E;var t=a[0][l];if(t&&tQ(a[0],l))for(a=0;a<t.length;a++){var c=t[a];if(E!==E&&c.key!==c.key||E===c.key)return{id:l,list:t,index:a,entry:c}}return{id:l,list:t,index:-1,entry:void 0}} function H(a){this[0]={};this[1]=C();this.size=0;if(a){a=g.F(a);for(var E;!(E=a.next()).done;)E=E.value,this.set(E[0],E[1])}} if(function(){if(!p||typeof p!="function"||!p.prototype.entries||typeof Object.seal!="function")return!1;try{var a=Object.seal({x:4}),E=new p(g.F([[a,"s"]]));if(E.get(a)!="s"||E.size!=1||E.get({x:4})||E.set({x:4},"t")!=E||E.size!=2)return!1;var l=E.entries(),t=l.next();if(t.done||t.value[0]!=a||t.value[1]!="s")return!1;t=l.next();return t.done||t.value[0].x!=4||t.value[1]!="t"||!l.next().done?!1:!0}catch(c){return!1}}())return p; var X=new WeakMap;H.prototype.set=function(a,E){a=a===0?0:a;var l=N(this,a);l.list||(l.list=this[0][l.id]=[]);l.entry?l.entry.value=E:(l.entry={next:this[1],previous:this[1].previous,head:this[1],key:a,value:E},l.list.push(l.entry),this[1].previous.next=l.entry,this[1].previous=l.entry,this.size++);return this}; H.prototype.delete=function(a){a=N(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this[0][a.id],a.entry.previous.next=a.entry.next,a.entry.next.previous=a.entry.previous,a.entry.head=null,this.size--,!0):!1}; H.prototype.clear=function(){this[0]={};this[1]=this[1].previous=C();this.size=0}; H.prototype.has=function(a){return!!N(this,a).entry}; H.prototype.get=function(a){return(a=N(this,a).entry)&&a.value}; H.prototype.entries=function(){return V(this,function(a){return[a.key,a.value]})}; H.prototype.keys=function(){return V(this,function(a){return a.key})}; H.prototype.values=function(){return V(this,function(a){return a.value})}; H.prototype.forEach=function(a,E){for(var l=this.entries(),t;!(t=l.next()).done;)t=t.value,a.call(E,t[1],t[0],this)}; H.prototype[Symbol.iterator]=H.prototype.entries;var d=0;return H}); sS("Set",function(p){function C(V){this.T=new Map;if(V){V=g.F(V);for(var N;!(N=V.next()).done;)this.add(N.value)}this.size=this.T.size} if(function(){if(!p||typeof p!="function"||!p.prototype.entries||typeof Object.seal!="function")return!1;try{var V=Object.seal({x:4}),N=new p(g.F([V]));if(!N.has(V)||N.size!=1||N.add(V)!=N||N.size!=1||N.add({x:4})!=N||N.size!=2)return!1;var H=N.entries(),X=H.next();if(X.done||X.value[0]!=V||X.value[1]!=V)return!1;X=H.next();return X.done||X.value[0]==V||X.value[0].x!=4||X.value[1]!=X.value[0]?!1:H.next().done}catch(d){return!1}}())return p; C.prototype.add=function(V){V=V===0?0:V;this.T.set(V,V);this.size=this.T.size;return this}; C.prototype.delete=function(V){V=this.T.delete(V);this.size=this.T.size;return V}; C.prototype.clear=function(){this.T.clear();this.size=0}; C.prototype.has=function(V){return this.T.has(V)}; C.prototype.entries=function(){return this.T.entries()}; C.prototype.values=function(){return this.T.values()}; C.prototype.keys=C.prototype.values;C.prototype[Symbol.iterator]=C.prototype.values;C.prototype.forEach=function(V,N){var H=this;this.T.forEach(function(X){return V.call(N,X,X,H)})}; return C}); sS("Math.log2",function(p){return p?p:function(C){return Math.log(C)/Math.LN2}}); sS("Object.values",function(p){return p?p:function(C){var V=[],N;for(N in C)tQ(C,N)&&V.push(C[N]);return V}}); sS("Object.is",function(p){return p?p:function(C,V){return C===V?C!==0||1/C===1/V:C!==C&&V!==V}}); sS("Array.prototype.includes",function(p){return p?p:function(C,V){var N=this;N instanceof String&&(N=String(N));var H=N.length;V=V||0;for(V<0&&(V=Math.max(V+H,0));V<H;V++){var X=N[V];if(X===C||Object.is(X,C))return!0}return!1}}); sS("String.prototype.includes",function(p){return p?p:function(C,V){return fY(this,C,"includes").indexOf(C,V||0)!==-1}}); sS("Array.from",function(p){return p?p:function(C,V,N){V=V!=null?V:function(a){return a}; var H=[],X=typeof Symbol!="undefined"&&Symbol.iterator&&C[Symbol.iterator];if(typeof X=="function"){C=X.call(C);for(var d=0;!(X=C.next()).done;)H.push(V.call(N,X.value,d++))}else for(X=C.length,d=0;d<X;d++)H.push(V.call(N,C[d],d));return H}}); sS("Object.entries",function(p){return p?p:function(C){var V=[],N;for(N in C)tQ(C,N)&&V.push([N,C[N]]);return V}}); sS("Number.isFinite",function(p){return p?p:function(C){return typeof C!=="number"?!1:!isNaN(C)&&C!==Infinity&&C!==-Infinity}}); sS("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); sS("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); sS("Number.isInteger",function(p){return p?p:function(C){return Number.isFinite(C)?C===Math.floor(C):!1}}); sS("Number.isSafeInteger",function(p){return p?p:function(C){return Number.isInteger(C)&&Math.abs(C)<=Number.MAX_SAFE_INTEGER}}); sS("String.prototype.startsWith",function(p){return p?p:function(C,V){var N=fY(this,C,"startsWith");C+="";var H=N.length,X=C.length;V=Math.max(0,Math.min(V|0,N.length));for(var d=0;d<X&&V<H;)if(N[V++]!=C[d++])return!1;return d>=X}}); sS("String.prototype.endsWith",function(p){return p?p:function(C,V){var N=fY(this,C,"endsWith");C+="";V===void 0&&(V=N.length);V=Math.max(0,Math.min(V|0,N.length));for(var H=C.length;H>0&&V>0;)if(N[--V]!=C[--H])return!1;return H<=0}}); sS("Array.prototype.entries",function(p){return p?p:function(){return yL(this,function(C,V){return[C,V]})}}); sS("Math.imul",function(p){return p?p:function(C,V){C=Number(C);V=Number(V);var N=C&65535,H=V&65535;return N*H+((C>>>16&65535)*H+N*(V>>>16&65535)<<16>>>0)|0}}); sS("globalThis",function(p){return p||g.Xe}); sS("Math.trunc",function(p){return p?p:function(C){C=Number(C);if(isNaN(C)||C===Infinity||C===-Infinity||C===0)return C;var V=Math.floor(Math.abs(C));return C<0?-V:V}}); sS("Number.isNaN",function(p){return p?p:function(C){return typeof C==="number"&&isNaN(C)}}); sS("Array.prototype.keys",function(p){return p?p:function(){return yL(this,function(C){return C})}}); sS("Array.prototype.values",function(p){return p?p:function(){return yL(this,function(C,V){return V})}}); sS("Math.clz32",function(p){return p?p:function(C){C=Number(C)>>>0;if(C===0)return 32;var V=0;(C&4294901760)===0&&(C<<=16,V+=16);(C&4278190080)===0&&(C<<=8,V+=8);(C&4026531840)===0&&(C<<=4,V+=4);(C&3221225472)===0&&(C<<=2,V+=2);(C&2147483648)===0&&V++;return V}}); sS("Math.log10",function(p){return p?p:function(C){return Math.log(C)/Math.LN10}}); sS("Object.fromEntries",function(p){return p?p:function(C){var V={};if(!(Symbol.iterator in C))throw new TypeError(""+C+" is not iterable");C=C[Symbol.iterator].call(C);for(var N=C.next();!N.done;N=C.next()){N=N.value;if(Object(N)!==N)throw new TypeError("iterable for fromEntries should yield objects");V[N[0]]=N[1]}return V}}); sS("String.prototype.replaceAll",function(p){return p?p:function(C,V){if(C instanceof RegExp&&!C.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return C instanceof RegExp?this.replace(C,V):this.replace(new RegExp(String(C).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),V)}}); sS("Array.prototype.fill",function(p){return p?p:function(C,V,N){var H=this.length||0;V<0&&(V=Math.max(0,H+V));if(N==null||N>H)N=H;N=Number(N);N<0&&(N=Math.max(0,H+N));for(V=Number(V||0);V<N;V++)this[V]=C;return this}}); sS("Int8Array.prototype.fill",qs);sS("Uint8Array.prototype.fill",qs);sS("Uint8ClampedArray.prototype.fill",qs);sS("Int16Array.prototype.fill",qs);sS("Uint16Array.prototype.fill",qs);sS("Int32Array.prototype.fill",qs);sS("Uint32Array.prototype.fill",qs);sS("Float32Array.prototype.fill",qs);sS("Float64Array.prototype.fill",qs); sS("String.prototype.repeat",function(p){return p?p:function(C){var V=fY(this,null,"repeat");if(C<0||C>1342177279)throw new RangeError("Invalid count value");C|=0;for(var N="";C;)if(C&1&&(N+=V),C>>>=1)V+=V;return N}}); sS("Promise.prototype.finally",function(p){return p?p:function(C){return this.then(function(V){return Promise.resolve(C()).then(function(){return V})},function(V){return Promise.resolve(C()).then(function(){throw V; })})}}); sS("String.prototype.padStart",function(p){return p?p:function(C,V){var N=fY(this,null,"padStart");C-=N.length;V=V!==void 0?String(V):" ";return(C>0&&V?V.repeat(Math.ceil(C/V.length)).substring(0,C):"")+N}}); sS("Array.prototype.findIndex",function(p){return p?p:function(C,V){return cQe(this,C,V).aC}}); sS("Math.sign",function(p){return p?p:function(C){C=Number(C);return C===0||isNaN(C)?C:C>0?1:-1}}); sS("WeakSet",function(p){function C(V){this.T=new WeakMap;if(V){V=g.F(V);for(var N;!(N=V.next()).done;)this.add(N.value)}} if(function(){if(!p||!Object.seal)return!1;try{var V=Object.seal({}),N=Object.seal({}),H=new p([V]);if(!H.has(V)||H.has(N))return!1;H.delete(V);H.add(N);return!H.has(V)&&H.has(N)}catch(X){return!1}}())return p; C.prototype.add=function(V){this.T.set(V,!0);return this}; C.prototype.has=function(V){return this.T.has(V)}; C.prototype.delete=function(V){return this.T.delete(V)}; return C}); sS("Array.prototype.copyWithin",function(p){function C(V){V=Number(V);return V===Infinity||V===-Infinity?V:V|0} return p?p:function(V,N,H){var X=this.length;V=C(V);N=C(N);H=H===void 0?X:C(H);V=V<0?Math.max(X+V,0):Math.min(V,X);N=N<0?Math.max(X+N,0):Math.min(N,X);H=H<0?Math.max(X+H,0):Math.min(H,X);if(V<N)for(;N<H;)N in this?this[V++]=this[N++]:(delete this[V++],N++);else for(H=Math.min(H,X+N-V),V+=H-N;H>N;)--H in this?this[--V]=this[H]:delete this[--V];return this}}); sS("Int8Array.prototype.copyWithin",Iu);sS("Uint8Array.prototype.copyWithin",Iu);sS("Uint8ClampedArray.prototype.copyWithin",Iu);sS("Int16Array.prototype.copyWithin",Iu);sS("Uint16Array.prototype.copyWithin",Iu);sS("Int32Array.prototype.copyWithin",Iu);sS("Uint32Array.prototype.copyWithin",Iu);sS("Float32Array.prototype.copyWithin",Iu);sS("Float64Array.prototype.copyWithin",Iu);sS("Array.prototype.at",function(p){return p?p:b9}); sS("Int8Array.prototype.at",AQ);sS("Uint8Array.prototype.at",AQ);sS("Uint8ClampedArray.prototype.at",AQ);sS("Int16Array.prototype.at",AQ);sS("Uint16Array.prototype.at",AQ);sS("Int32Array.prototype.at",AQ);sS("Uint32Array.prototype.at",AQ);sS("Float32Array.prototype.at",AQ);sS("Float64Array.prototype.at",AQ);sS("String.prototype.at",function(p){return p?p:b9}); sS("Array.prototype.findLastIndex",function(p){return p?p:function(C,V){return T1v(this,C,V).aC}}); sS("Int8Array.prototype.findLastIndex",ou);sS("Uint8Array.prototype.findLastIndex",ou);sS("Uint8ClampedArray.prototype.findLastIndex",ou);sS("Int16Array.prototype.findLastIndex",ou);sS("Uint16Array.prototype.findLastIndex",ou);sS("Int32Array.prototype.findLastIndex",ou);sS("Uint32Array.prototype.findLastIndex",ou);sS("Float32Array.prototype.findLastIndex",ou);sS("Float64Array.prototype.findLastIndex",ou);sS("Number.parseInt",function(p){return p||parseInt});var Hi,w1,MaS;Hi=Hi||{};g.xH=this||self;w1="closure_uid_"+(Math.random()*1E9>>>0);MaS=0;g.Y.prototype.Ra=!1;g.Y.prototype.fS=function(){return this.Ra}; g.Y.prototype.dispose=function(){this.Ra||(this.Ra=!0,this.CS())}; g.Y.prototype[Symbol.dispose]=function(){this.dispose()}; g.Y.prototype.addOnDisposeCallback=function(p,C){this.Ra?C!==void 0?p.call(C):p():(this.pk||(this.pk=[]),C&&(p=p.bind(C)),this.pk.push(p))}; g.Y.prototype.CS=function(){if(this.pk)for(;this.pk.length;)this.pk.shift()()};var Ky1;g.m(E1,g.Y);E1.prototype.share=function(){if(this.fS())throw Error("E:AD");this.S++;return this}; E1.prototype.dispose=function(){--this.S||g.Y.prototype.dispose.call(this)}; Ky1=Symbol.dispose;DsL.prototype.vI=function(p,C){this.T.vI("/client_streamz/bg/frs",p,C)}; ueu.prototype.vI=function(p,C,V,N,H,X){this.T.vI("/client_streamz/bg/wrl",p,C,V,N,H,X)}; ZYu.prototype.T=function(p,C){this.C.tW("/client_streamz/bg/ec",p,C)}; Usy.prototype.vI=function(p,C,V,N){this.T.vI("/client_streamz/bg/el",p,C,V,N)}; fje.prototype.T=function(p,C,V){this.C.tW("/client_streamz/bg/cec",p,C,V)}; OYL.prototype.T=function(p,C,V){this.C.tW("/client_streamz/bg/po/csc",p,C,V)}; yQj.prototype.T=function(p,C,V){this.C.tW("/client_streamz/bg/po/ctav",p,C,V)}; qSS.prototype.T=function(p,C,V){this.C.tW("/client_streamz/bg/po/cwsc",p,C,V)};g.r1(c5,Error);c5.prototype.name="CustomError";var iys;var xV=void 0,kV,O69=typeof TextDecoder!=="undefined",kVe,oHv=typeof String.prototype.isWellFormed==="function",AQQ=typeof TextEncoder!=="undefined";var uP=String.prototype.trim?function(p){return p.trim()}:function(p){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(p)[1]},oKs=/&/g,k9Q=/</g,x1a=/>/g,YLL=/"/g,zjj=/'/g,Rja=/\x00/g,Acv=/[\x00&<>"']/;var ds8=Ru(1,!0),O1=Ru(610401301,!1);Ru(899588437,!1);Ru(188588736,!0);Ru(691955189,!0);Ru(651175828,!1);Ru(653718497,ds8);Ru(660014094,ds8);Ru(2147483644,!1);Ru(2147483645,!1);Ru(2147483646,ds8);Ru(2147483647,!0);var y8=!!g.zV("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var qc,iY5=g.xH.navigator;qc=iY5?iY5.userAgentData||null:null;var rQa,kc,Yo;rQa=Array.prototype.indexOf?function(p,C){return Array.prototype.indexOf.call(p,C,void 0)}:function(p,C){if(typeof p==="string")return typeof C!=="string"||C.length!=1?-1:p.indexOf(C,0); for(var V=0;V<p.length;V++)if(V in p&&p[V]===C)return V;return-1}; g.hX1=Array.prototype.lastIndexOf?function(p,C){return Array.prototype.lastIndexOf.call(p,C,p.length-1)}:function(p,C){var V=p.length-1; V<0&&(V=Math.max(0,p.length+V));if(typeof p==="string")return typeof C!=="string"||C.length!=1?-1:p.lastIndexOf(C,V);for(;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;X<N;X++)X in H&&C.call(V,H[X],X,p)}; g.JT=Array.prototype.filter?function(p,C,V){return Array.prototype.filter.call(p,C,V)}:function(p,C,V){for(var N=p.length,H=[],X=0,d=typeof p==="string"?p.split(""):p,a=0;a<N;a++)if(a in d){var E=d[a]; C.call(V,E,a,p)&&(H[X++]=E)}return H}; g.AU=Array.prototype.map?function(p,C,V){return Array.prototype.map.call(p,C,V)}:function(p,C,V){for(var N=p.length,H=Array(N),X=typeof p==="string"?p.split(""):p,d=0;d<N;d++)d in X&&(H[d]=C.call(V,X[d],d,p)); return H}; kc=Array.prototype.reduce?function(p,C,V){return Array.prototype.reduce.call(p,C,V)}:function(p,C,V){var N=V; (0,g.lr)(p,function(H,X){N=C.call(void 0,N,H,X,p)}); return N}; Yo=Array.prototype.some?function(p,C){return Array.prototype.some.call(p,C,void 0)}:function(p,C){for(var V=p.length,N=typeof p==="string"?p.split(""):p,H=0;H<V;H++)if(H in N&&C.call(void 0,N[H],H,p))return!0; return!1}; g.oo=Array.prototype.every?function(p,C,V){return Array.prototype.every.call(p,C,V)}:function(p,C,V){for(var N=p.length,H=typeof p==="string"?p.split(""):p,X=0;X<N;X++)if(X in H&&!C.call(V,H[X],X,p))return!1; return!0};ML[" "]=function(){};var Do,PI,h$y,suF,ajE,EHG,vg,rB,ljG;g.Fs=oF();g.vF=nH9();g.G4=bP("Edge");g.gG=g.G4||g.vF;Do=bP("Gecko")&&!(Dv(g.f0(),"WebKit")&&!bP("Edge"))&&!(bP("Trident")||bP("MSIE"))&&!bP("Edge");g.Nq=Dv(g.f0(),"WebKit")&&!bP("Edge");PI=P5();h$y=WyL();g.N5=gHY();suF=n0();ajE=bP("iPad");EHG=bP("iPod");vg=ey();rB=Dv(g.f0(),"KaiOS"); a:{var taF="",cQG=function(){var p=g.f0();if(Do)return/rv:([^\);]+)(\)|;)/.exec(p);if(g.G4)return/Edge\/([\d\.]+)/.exec(p);if(g.vF)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(p);if(g.Nq)return/WebKit\/(\S+)/.exec(p);if(g.Fs)return/(?:Version)[ \/]?(\S+)/.exec(p)}(); cQG&&(taF=cQG?cQG[1]:"");if(g.vF){var CM,T15=g.xH.document;CM=T15?T15.documentMode:void 0;if(CM!=null&&CM>parseFloat(taF)){ljG=String(CM);break a}}ljG=taF}var hEy=ljG,dcY={};var CK,jz;g.k$=k2();CK=n0()||bP("iPod");jz=bP("iPad");g.SH=P9a();g.kZ=x2();g.D1=Y2()&&!ey();var avv={},Sk=null,E2a=Do||g.Nq||typeof g.xH.btoa=="function";var FrX=typeof Uint8Array!=="undefined",cfu=!g.vF&&typeof btoa==="function",mc1=/[-_.]/g,My9={"-":"+",_:"/",".":"="},ur={};DV.prototype.isEmpty=function(){return this.T==null}; DV.prototype.sizeBytes=function(){var p=Uv(this);return p?p.length:0}; var KrV;var lVS;var H4=typeof Symbol==="function"&&typeof Symbol()==="symbol",jd=If(),YK=If("2ex"),Xa=If("1oa");Math.max.apply(Math,g.K(Object.values({qfx:1,Xz$:2,j5o:4,JBS:8,O$o:16,Bh$:32,ygY:64,uua:128,xw_:256,AX_:512,Fl_:1024,d3n:2048,bpn:4096,X$_:8192,Iu$:16384})));var yx=H4?function(p,C){p[jd]|=C}:function(p,C){p.Wp!==void 0?p.Wp|=C:Object.defineProperties(p,{Wp:{value:C, configurable:!0,writable:!0,enumerable:!1}})},mLH=H4?function(p,C){p[jd]&=~C}:function(p,C){p.Wp!==void 0&&(p.Wp&=~C)},xT=H4?function(p){return p[jd]|0}:function(p){return p.Wp|0},bg=H4?function(p){return p[jd]}:function(p){return p.Wp},br=H4?function(p,C){p[jd]=C}:function(p,C){p.Wp!==void 0?p.Wp=C:Object.defineProperties(p,{Wp:{value:C, configurable:!0,writable:!0,enumerable:!1}})};var F_={},UcQ={},WT,Ma1=[];br(Ma1,55);WT=Object.freeze(Ma1);var Py,JBY=Object.freeze({});var q1a=wo(function(p){return typeof p==="number"}),yfY=wo(function(p){return typeof p==="string"}),Ive=wo(function(p){return typeof p==="boolean"}),aH=wo(function(p){return p!=null&&typeof p==="object"&&typeof p.then==="function"}),si=wo(function(p){return!!p&&(typeof p==="object"||typeof p==="function")});var $T=typeof g.xH.BigInt==="function"&&typeof g.xH.BigInt(0)==="bigint";var M1=wo(function(p){return $T?p>=JQv&&p<=ms5:p[0]==="-"?b09(p,vHp):b09(p,FyG)}),vHp=Number.MIN_SAFE_INTEGER.toString(),JQv=$T?BigInt(Number.MIN_SAFE_INTEGER):void 0,FyG=Number.MAX_SAFE_INTEGER.toString(),ms5=$T?BigInt(Number.MAX_SAFE_INTEGER):void 0;var uvX=typeof Uint8Array.prototype.slice==="function",Wy=0,QR=0,i_V;var Y1a=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var ug=void 0,ZB=void 0,Sn=void 0,K_=void 0,UL=void 0;var f_,Nou;g.h=Kq1.prototype;g.h.init=function(p,C,V,N){N=N===void 0?{}:N;this.ol=N.ol===void 0?!1:N.ol;p&&(p=Ky(p),this.C=p.buffer,this.W=p.fg,this.S=C||0,this.V=V!==void 0?this.S+V:this.C.length,this.T=this.S)}; g.h.free=function(){this.clear();It.length<100&&It.push(this)}; g.h.clear=function(){this.C=null;this.W=!1;this.T=this.V=this.S=0;this.ol=!1}; g.h.reset=function(){this.T=this.S}; g.h.b9=function(){var p=this.Y;p||(p=this.C,p=this.Y=new DataView(p.buffer,p.byteOffset,p.byteLength));return p}; var It=[];bB.prototype.free=function(){this.T.clear();this.C=this.S=-1;VH.length<100&&VH.push(this)}; bB.prototype.reset=function(){this.T.reset();this.V=this.T.T;this.C=this.S=-1}; var VH=[];var wC,P4;g.h=eq.prototype;g.h.toJSON=function(){return $V(this)}; g.h.c6=function(p){try{return P4=!0,p&&(wC=p===ny||p!==qvu&&p!==oTL&&p!==YvY?ny:p),JSON.stringify($V(this),dLQ)}finally{p&&(wC=void 0),P4=!1}}; g.h.clone=function(){var p=this.bx;return new this.constructor(Ac(p,bg(p),!1))}; g.h.fg=function(){return!!(xT(this.bx)&2)}; g.h.hH=F_;g.h.toString=function(){try{return P4=!0,$V(this).toString()}finally{P4=!1}};var nTS,PrQ;W4.prototype.length=function(){return this.T.length}; W4.prototype.end=function(){var p=this.T;this.T=[];return p};var V5=jl(),SSG=jl(),KyY=jl(),Ds8=jl(),ueF=jl(),ZYF=jl(),Usr=jl(),fjG=jl();var Gts=Hn(function(p,C,V,N,H){if(p.C!==2)return!1;ot(p,dC(C,N,V),H);return!0},BoY),pTe=Hn(function(p,C,V,N,H){if(p.C!==2)return!1; ot(p,dC(C,N,V,!0),H);return!0},BoY),cn=Symbol(),ac=Symbol(),jOQ=Symbol(),H_a=Symbol(),XH,dV;var OY8=Jb(function(p,C,V){if(p.C!==1)return!1;vn(C,V,yG(p.T));return!0},FH,Usr),yQv=Jb(function(p,C,V){if(p.C!==1)return!1; p=yG(p.T);vn(C,V,p===0?void 0:p);return!0},FH,Usr),qS1=Jb(function(p,C,V,N){if(p.C!==1)return!1; VG(C,V,N,yG(p.T));return!0},FH,Usr),Ijf=Jb(function(p,C,V){if(p.C!==0)return!1; vn(C,V,Zm(p.T));return!0},Sl,ueF),bYY=Jb(function(p,C,V){if(p.C!==0)return!1; p=Zm(p.T);vn(C,V,p===0?void 0:p);return!0},Sl,ueF),AQf=Jb(function(p,C,V,N){if(p.C!==0)return!1; VG(C,V,N,Zm(p.T));return!0},Sl,ueF),oH5=Jb(function(p,C,V){if(p.C!==0)return!1; vn(C,V,Ul(p.T));return!0},KH,Ds8),kVG=Jb(function(p,C,V){if(p.C!==0)return!1; p=Ul(p.T);vn(C,V,p===0?void 0:p);return!0},KH,Ds8),xsG=Jb(function(p,C,V,N){if(p.C!==0)return!1; VG(C,V,N,Ul(p.T));return!0},KH,Ds8),YSp=Jb(function(p,C,V){if(p.C!==1)return!1; vn(C,V,Ol(p.T));return!0},function(p,C,V){Qfj(p,V,g2L(C))},ZYF),zXG=ma(function(p,C,V){if(p.C!==1&&p.C!==2)return!1; C=BT(C,bg(C),V,!1,!1);if(p.C==2)for(V=Ul(p.T)>>>0,V=p.T.T+V;p.T.T<V;)C.push(Ol(p.T));else C.push(Ol(p.T));return!0},function(p,C,V){C=MX(g2L,C,!1); if(C!=null)for(var N=0;N<C.length;N++)Qfj(p,V,C[N])},ZYF),RXY=Jb(function(p,C,V){if(p.C!==0)return!1; vn(C,V,qm(p.T));return!0},hjY,SSG),nHP=Jb(function(p,C,V,N){if(p.C!==0)return!1; VG(C,V,N,qm(p.T));return!0},hjY,SSG),NW=Jb(function(p,C,V){if(p.C!==2)return!1; vn(C,V,YV(p));return!0},sOX,KyY),eX5=ma(function(p,C,V){if(p.C!==2)return!1; p=YV(p);BT(C,bg(C),V,!1).push(p);return!0},function(p,C,V){C=MX(mK,C,!0); if(C!=null)for(var N=0;N<C.length;N++){var H=p,X=V,d=C[N];d!=null&&CH(H,X,xse(d))}},KyY),P9y=Jb(function(p,C,V,N){if(p.C!==2)return!1; VG(C,V,N,YV(p));return!0},sOX,KyY),HD,Xy=void 0; Xy=Xy===void 0?V5:Xy;HD=new NX(function(p,C,V,N,H){if(p.C!==2)return!1;N=q1(void 0,N,!0);BT(C,bg(C),V,!0).push(N);ot(p,N,H);return!0},function(p,C,V,N,H){if(Array.isArray(C))for(var X=0;X<C.length;X++)aBy(p,C[X],V,N,H)},Xy); var dK=Hn(function(p,C,V,N,H,X){if(p.C!==2)return!1;Cy(C,xT(C),X,V);C=dC(C,N,V);ot(p,C,H);return!0},aBy),wvG=Jb(function(p,C,V){if(p.C!==2)return!1; vn(C,V,yBL(p));return!0},function(p,C,V){C=Wre(C); C!=null&&CH(p,V,Ky(C).buffer)},fjG),$sF=ma(function(p,C,V){if(p.C!==2)return!1; p=yBL(p);BT(C,bg(C),V,!1).push(p);return!0},function(p,C,V){C=MX(Wre,C,!1); if(C!=null)for(var N=0;N<C.length;N++){var H=p,X=V,d=C[N];d!=null&&CH(H,X,Ky(d).buffer)}},fjG),iS=Jb(function(p,C,V){if(p.C!==0)return!1; vn(C,V,Ul(p.T)>>>0);return!0},function(p,C,V){C=aO(C); C!=null&&C!=null&&(pH(p,V,0),rC(p.T,C))},jl()),Lyf=Jb(function(p,C,V){if(p.C!==0)return!1; vn(C,V,Ul(p.T));return!0},function(p,C,V){C=sL(C); C!=null&&(C=parseInt(C,10),pH(p,V,0),$Lu(p.T,C))},jl());g.m(lB1,eq);g.m(u0,eq);var y5=[1,2,3];var gH0=[0,y5,P9y,xsG,nHP];var Wy8=[0,HD,[0,OY8,Ijf]];g.m(Zu,eq);var OQ=[1,2,3];var Qu8=[0,OQ,AQf,qS1,dK,Wy8];g.m(UQ,eq);var rQy=[0,HD,gH0,Qu8];var B12=[0,[1,2,3],dK,[0,NW,-1,RXY],dK,[0,NW,-1,oH5,RXY],dK,[0,NW]];g.m(fH,eq);fH.prototype.sK=function(){var p=gw(this,3,mK,3,void 0,!0);ek(p);return p[void 0]};fH.prototype.T=EKu([0,NW,B12,eX5,HD,rQy,YSp,zXG]);g.m(ccv,eq);var D1Y=globalThis.trustedTypes,qX;b0.prototype.toString=function(){return this.T+""};ke.prototype.toString=function(){return this.T}; var U1s=new ke("about:invalid#zClosurez");var mWL=zN("tel"),MdL=zN("sms"),Z_u=[zN("data"),zN("http"),zN("https"),zN("mailto"),zN("ftp"),new Ye(function(p){return/^[^:]*([/?#]|$)/.test(p)})],fBa=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Pn.prototype.toString=function(){return this.T};wV.prototype.toString=function(){return this.T+""};Q5.prototype.toString=function(){return this.T+""};var CG={};g.GVc=String.prototype.repeat?function(p,C){return p.repeat(C)}:function(p,C){return Array(C+1).join(p)};g.h=s_.prototype;g.h.isEnabled=function(){if(!g.xH.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{kx:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.h.set=function(p,C,V){var N=!1;if(typeof V==="object"){var H=V.cia;N=V.secure||!1;var X=V.domain||void 0;var d=V.path||void 0;var a=V.kx}if(/[;=\s]/.test(p))throw Error('Invalid cookie name "'+p+'"');if(/[;\r\n]/.test(C))throw Error('Invalid cookie value "'+C+'"');a===void 0&&(a=-1);V=X?";domain="+X:"";d=d?";path="+d:"";N=N?";secure":"";a=a<0?"":a==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+a*1E3)).toUTCString();this.T.cookie=p+"="+C+V+d+a+N+(H!=null?";samesite="+ H:"")}; g.h.get=function(p,C){for(var V=p+"=",N=(this.T.cookie||"").split(";"),H=0,X;H<N.length;H++){X=uP(N[H]);if(X.lastIndexOf(V,0)==0)return X.slice(V.length);if(X==p)return""}return C}; g.h.remove=function(p,C,V){var N=this.get(p)!==void 0;this.set(p,"",{kx:0,path:C,domain:V});return N}; g.h.Ei=function(){return aa(this).keys}; g.h.k5=function(){return aa(this).values}; g.h.isEmpty=function(){return!this.T.cookie}; g.h.clear=function(){for(var p=aa(this).keys,C=p.length-1;C>=0;C--)this.remove(p[C])}; var RK=new s_(typeof document=="undefined"?null:document);E_.prototype.compress=function(p){var C,V,N,H;return g.I(function(X){switch(X.C){case 1:return C=new CompressionStream("gzip"),V=(new Response(C.readable)).arrayBuffer(),N=C.writable.getWriter(),g.y(X,N.write((new TextEncoder).encode(p)),2);case 2:return g.y(X,N.close(),3);case 3:return H=Uint8Array,g.y(X,V,4);case 4:return X.return(new H(X.T))}})}; E_.prototype.isSupported=function(p){return p<1024?!1:typeof CompressionStream!=="undefined"};g.m(lc,eq);t9.prototype.setInterval=function(p){this.intervalMs=p;this.Yt&&this.enabled?(this.stop(),this.start()):this.Yt&&this.stop()}; t9.prototype.start=function(){var p=this;this.enabled=!0;this.Yt||(this.Yt=setTimeout(function(){p.tick()},this.intervalMs),this.C=this.T())}; t9.prototype.stop=function(){this.enabled=!1;this.Yt&&(clearTimeout(this.Yt),this.Yt=void 0)}; t9.prototype.tick=function(){var p=this;if(this.enabled){var C=Math.max(this.T()-this.C,0);C<this.intervalMs*.8?this.Yt=setTimeout(function(){p.tick()},this.intervalMs-C):(this.Yt&&(clearTimeout(this.Yt),this.Yt=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.Yt=void 0};g.m(cG,eq);g.m(Th,eq);g.h=g.Fn.prototype;g.h.clone=function(){return new g.Fn(this.x,this.y)}; g.h.sE=function(p){return p instanceof g.Fn&&Sg(this,p)}; g.h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.h.scale=function(p,C){this.x*=p;this.y*=typeof C==="number"?C:p;return this};g.h=g.KG.prototype;g.h.clone=function(){return new g.KG(this.width,this.height)}; g.h.aspectRatio=function(){return this.width/this.height}; g.h.isEmpty=function(){return!uc(this)}; g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.h.scale=function(p,C){this.width*=p;this.height*=typeof C==="number"?C:p;return this};var G9S="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");PG.prototype.toString=function(){return this.T}; var eg={};new PG(eg,"");var CBy=/^[a-z][a-z\d-]*$/i,jts="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),NCY="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),X4v=["action","formaction","href"];var hv1={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.h=WG.prototype;g.h.V$=function(p){return BG(this.T,p)}; g.h.getElementsByTagName=function(p,C){return(C||this.T).getElementsByTagName(String(p))}; g.h.rV=function(p){return g.ju(p,this.T)}; g.h.setProperties=Vf;g.h.createElement=function(p){return XQ(this.T,p)}; g.h.appendChild=g.so;g.h.append=function(p,C){lma(QW(p),p,arguments,1)}; g.h.canHaveChildren=function(p){if(p.nodeType!=1)return!1;switch(p.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.h.removeNode=g.lK;g.h.getChildren=function(p){return p.children!=void 0?p.children:Array.prototype.filter.call(p.childNodes,function(C){return C.nodeType==1})}; g.h.contains=g.t2;g.m(J2,eq);J2.prototype.vt=function(){return Mm(this,1)};g.m(mS,eq);g.m(ve,eq);g.m(FQ,eq);var MqX=["platform","platformVersion","architecture","model","uaFullVersion"],Ke=new ve,Su=null;g.m(Zz,eq);g.m(mma,eq);g.m(Uo,eq);g.m(fe,eq);fe.prototype.G=function(){return n_(this,mma,7)}; fe.prototype.Kf=function(){return iB(this,lc,16)};g.m(Oo,eq);Oo.prototype.Nm=function(p){return Fa(this,2,p)};yf.prototype.Nm=function(p){this.T.Nm(p);return this}; yf.prototype.build=function(p,C,V,N,H,X){C=C===void 0?0:C;N=N===void 0?null:N;H=H===void 0?0:H;X=X===void 0?0:X;V=V===void 0?0:V;if(n_(IN(this),FQ,11)){var d=bK(this);RO(d,3,ig(V))}n_(IN(this),FQ,11)&&(V=bK(this),RO(V,4,ig(H)));n_(IN(this),FQ,11)&&(H=bK(this),RO(H,5,ig(X)));X=this.T.clone();H=Date.now().toString();X=RO(X,4,cT(H));p=sl(X,fe,3,p.slice());N&&(X=new cG,N=RO(X,13,ig(N)),X=new Th,N=hP(X,cG,2,N),X=new Uo,N=hP(X,Th,1,N),N=Fa(N,2,9),hP(p,Uo,18,N));C&&JP(p,14,C);return p};var zvH=function(){if(!g.xH.addEventListener||!Object.defineProperty)return!1;var p=!1,C=Object.defineProperty({},"passive",{get:function(){p=!0}}); try{var V=function(){}; g.xH.addEventListener("test",V,C);g.xH.removeEventListener("test",V,C)}catch(N){}return p}();var nyS=KMS("AnimationEnd"),Sm=KMS("TransitionEnd");g.oN.prototype.C=0;g.oN.prototype.reset=function(){this.T=this.V=this.S;this.C=0}; g.oN.prototype.getValue=function(){return this.V};g.m(Dmu,eq);var p51=Du(Dmu);g.m(uaa,eq);var hJ=new function(){this.T=uaa;this.isRepeated=0;this.C=iB;this.defaultValue=void 0};g.m(Yq,g.Y);g.h=Yq.prototype;g.h.CS=function(){this.KR();this.C.stop();this.Sa.stop();g.Y.prototype.CS.call(this)}; g.h.dispatch=function(p){if(p instanceof fe)this.log(p);else try{var C=new fe,V=p.c6();var N=mM(C,8,V);this.log(N)}catch(H){}}; g.h.log=function(p){if(this.Wr){p=p.clone();var C=this.Y_++;p=JP(p,21,C);this.componentId&&mM(p,26,this.componentId);if(vTv(p)==null){var V=Date.now();C=p;V=Number.isFinite(V)?V.toString():"0";RO(C,1,cT(V))}$c9(xK(p,15))!=null||JP(p,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(C=p,V=this.experimentIds.clone(),hP(C,lc,16,V));C=this.T.length-1E3+1;C>0&&(this.T.splice(0,C),this.S+=C);this.T.push(p);this.us||this.C.enabled||this.C.start()}}; g.h.flush=function(p,C){var V=this;if(this.T.length===0)p&&p();else if(this.Vn&&this.Z)A2(this.V,3),Oyv(this);else{var N=Date.now();if(this.Ga>N&&this.sY<N)C&&C("throttled");else{this.network&&(typeof this.network.vt==="function"?A2(this.V,this.network.vt()):A2(this.V,0));var H=this.V.build(this.T,this.S,this.Y,this.NA,this.b_,this.a$);N={};var X=this.BW();X&&(N.Authorization=X);var d=new URL(Um9(this));this.sessionIndex&&(N["X-Goog-AuthUser"]=this.sessionIndex,d.searchParams.set("authuser",this.sessionIndex)); this.pageId&&(Object.defineProperty(N,"X-Goog-PageId",{value:this.pageId}),d.searchParams.set("pageId",this.pageId));if(X&&this.vr===X)C&&C("stale-auth-token");else{this.T=[];this.C.enabled&&this.C.stop();this.S=0;var a=H.c6(),E;this.D&&this.D.isSupported(a.length)&&(E=this.D.compress(a));var l={url:d.toString(),body:a,Mp:1,requestHeaders:N,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},t=function(M){V.W.reset();V.C.setInterval(V.W.getValue());if(M){var J= null;try{var S=JSON.stringify(JSON.parse(M.replace(")]}'\n","")));J=p51(S)}catch(D){}J&&(M=Number,S="-1",S=S===void 0?"0":S,S=lB(vTv(J),S),M=M(S),M>0&&(V.sY=Date.now(),V.Ga=V.sY+M),J=hJ.T?hJ.C(J,hJ.T,175237375,!0):hJ.C(J,175237375,null,!0),J=J===null?void 0:J)&&(J=XG(J,1,-1),J!==-1&&(V.W=new g.oN(J<1?1:J,3E5,.1),V.C.setInterval(V.W.getValue())))}p&&p();V.Y=0},c=function(M,J){var S=jy(H,fe,3); var D=$c9(xK(H,14));D=D==null?void 0:D;g.kq(V.W);V.C.setInterval(V.W.getValue());M===401&&X&&(V.vr=X);D&&(V.S+=D);J===void 0&&(J=V.isRetryable(M));J&&(V.T=S.concat(V.T),V.us||V.C.enabled||V.C.start());C&&C("net-send-failed",M);++V.Y},T=function(){V.network&&V.network.send(l,t,c)}; E?E.then(function(M){l.requestHeaders["Content-Encoding"]="gzip";l.requestHeaders["Content-Type"]="application/binary";l.body=M;l.Mp=2;T()},function(){T()}):T()}}}}; g.h.KR=function(){FMS(this.V,!0);this.flush();FMS(this.V,!1)}; g.h.isRetryable=function(p){return 500<=p&&p<600||p===401||p===0};zO.prototype.send=function(p,C,V){var N=this,H,X,d,a,E,l,t,c,T,M;return g.I(function(J){switch(J.C){case 1:return X=(H=N.D7?new AbortController:void 0)?setTimeout(function(){H.abort()},p.timeoutMillis):void 0,g.vv(J,2,3),d=Object.assign({},{method:p.requestType, headers:Object.assign({},p.requestHeaders)},p.body&&{body:p.body},p.withCredentials&&{credentials:"include"},{signal:p.timeoutMillis&&H?H.signal:null}),g.y(J,fetch(p.url,d),5);case 5:a=J.T;if(a.status!==200){(E=V)==null||E(a.status);J.EY(3);break}if((l=C)==null){J.EY(7);break}return g.y(J,a.text(),8);case 8:l(J.T);case 7:case 3:g.KY(J);clearTimeout(X);g.Dj(J,0);break;case 2:t=g.Sa(J);switch((c=t)==null?void 0:c.name){case "AbortError":(T=V)==null||T(408);break;default:(M=V)==null||M(400)}J.EY(3)}})}; zO.prototype.vt=function(){return 4};g.m(RN,g.Y);RN.prototype.Qb=function(){this.W=!0;return this}; RN.prototype.build=function(){this.network||(this.network=new zO);var p=new Yq({logSource:this.logSource,BW:this.BW?this.BW:gKY,sessionIndex:this.sessionIndex,z5_:this.o0,Pf:this.S,us:!1,Qb:this.W,CE:this.CE,network:this.network});g.R(this,p);if(this.C){var C=this.C,V=qq(p.V);mM(V,7,C)}Math.random()<.5&&(p.D=new E_);this.componentId&&(p.componentId=this.componentId);this.NA&&(p.NA=this.NA);this.pageId&&(p.pageId=this.pageId);this.T&&((V=this.T)?(p.experimentIds||(p.experimentIds=new lc),C=p.experimentIds, V=V.c6(),mM(C,4,V)):p.experimentIds&&RO(p.experimentIds,4));this.V&&(p.Vn=p.Z);SlX(p.V);this.network.Nm&&this.network.Nm(this.logSource);this.network.vlV&&this.network.vlV(p);return p};g.m(ne,g.Y);ne.prototype.flush=function(p){p=p||[];if(p.length){for(var C=new ccv,V=[],N=0;N<p.length;N++){var H=p[N],X=g.JcV(H);V.push(X);H.clear()}sl(C,fH,1,V);this.T.dispatch(C);this.T.flush()}};g.h=eu.prototype;g.h.JG=function(p){var C=g.US.apply(1,arguments),V=this.Fh(C);V?V.push(new byv(p)):this.wv(p,C)}; g.h.wv=function(p){this.T.set(this.pm(g.US.apply(1,arguments)),[new byv(p)])}; g.h.Fh=function(){var p=this.pm(g.US.apply(0,arguments));return this.T.has(p)?this.T.get(p):void 0}; g.h.RD=function(){var p=this.Fh(g.US.apply(0,arguments));return p&&p.length?p[0]:void 0}; g.h.clear=function(){this.T.clear()}; g.h.pm=function(){var p=g.US.apply(0,arguments);return p?p.join(","):"key"};g.m(Pe,eu);Pe.prototype.V=function(p){var C=g.US.apply(1,arguments),V=0,N=this.RD(C);N&&(V=N.T);this.wv(V+p,C)};g.m(wW,eu);wW.prototype.vI=function(p){this.JG(p,g.US.apply(1,arguments))};g.$q.prototype.stopPropagation=function(){this.C=!0}; g.$q.prototype.preventDefault=function(){this.defaultPrevented=!0};g.r1(Le,g.$q); Le.prototype.init=function(p,C){var V=this.type=p.type,N=p.changedTouches&&p.changedTouches.length?p.changedTouches[0]:null;this.target=p.target||p.srcElement;this.currentTarget=C;C=p.relatedTarget;C||(V=="mouseover"?C=p.fromElement:V=="mouseout"&&(C=p.toElement));this.relatedTarget=C;N?(this.clientX=N.clientX!==void 0?N.clientX:N.pageX,this.clientY=N.clientY!==void 0?N.clientY:N.pageY,this.screenX=N.screenX||0,this.screenY=N.screenY||0):(this.clientX=p.clientX!==void 0?p.clientX:p.pageX,this.clientY= p.clientY!==void 0?p.clientY:p.pageY,this.screenX=p.screenX||0,this.screenY=p.screenY||0);this.button=p.button;this.keyCode=p.keyCode||0;this.key=p.key||"";this.charCode=p.charCode||(V=="keypress"?p.keyCode:0);this.ctrlKey=p.ctrlKey;this.altKey=p.altKey;this.shiftKey=p.shiftKey;this.metaKey=p.metaKey;this.pointerId=p.pointerId||0;this.pointerType=p.pointerType;this.state=p.state;this.T=p;p.defaultPrevented&&Le.oI.preventDefault.call(this)}; Le.prototype.stopPropagation=function(){Le.oI.stopPropagation.call(this);this.T.stopPropagation?this.T.stopPropagation():this.T.cancelBubble=!0}; Le.prototype.preventDefault=function(){Le.oI.preventDefault.call(this);var p=this.T;p.preventDefault?p.preventDefault():p.returnValue=!1};var APH="closure_listenable_"+(Math.random()*1E6|0);var oVH=0;g.h=Be.prototype;g.h.add=function(p,C,V,N,H){var X=p.toString();p=this.listeners[X];p||(p=this.listeners[X]=[],this.T++);var d=pJ(p,C,N,H);d>-1?(C=p[d],V||(C.CC=!1)):(C=new kA1(C,this.src,X,!!N,H),C.CC=V,p.push(C));return C}; g.h.remove=function(p,C,V,N){p=p.toString();if(!(p in this.listeners))return!1;var H=this.listeners[p];C=pJ(H,C,V,N);return C>-1?(rW(H[C]),g.Q8(H,C),H.length==0&&(delete this.listeners[p],this.T--),!0):!1}; g.h.removeAll=function(p){p=p&&p.toString();var C=0,V;for(V in this.listeners)if(!p||V==p){for(var N=this.listeners[V],H=0;H<N.length;H++)++C,rW(N[H]);delete this.listeners[V];this.T--}return C}; g.h.T1=function(p,C,V,N){p=this.listeners[p.toString()];var H=-1;p&&(H=pJ(p,C,V,N));return H>-1?p[H]:null}; g.h.hasListener=function(p,C){var V=p!==void 0,N=V?p.toString():"",H=C!==void 0;return g.O_(this.listeners,function(X){for(var d=0;d<X.length;++d)if(!(V&&X[d].type!=N||H&&X[d].capture!=C))return!0;return!1})};var HX="closure_lm_"+(Math.random()*1E6|0),dA={},nV1=0,im="__closure_events_fn_"+(Math.random()*1E9>>>0);g.r1(g.h8,g.Y);g.h8.prototype[APH]=!0;g.h=g.h8.prototype;g.h.addEventListener=function(p,C,V,N){g.jS(this,p,C,V,N)}; g.h.removeEventListener=function(p,C,V,N){PBy(this,p,C,V,N)}; g.h.dispatchEvent=function(p){var C=this.VJ;if(C){var V=[];for(var N=1;C;C=C.VJ)V.push(C),++N}C=this.UT;N=p.type||p;if(typeof p==="string")p=new g.$q(p,C);else if(p instanceof g.$q)p.target=p.target||C;else{var H=p;p=new g.$q(N,C);g.nG(p,H)}H=!0;var X;if(V)for(X=V.length-1;!p.C&&X>=0;X--){var d=p.currentTarget=V[X];H=s8(d,N,!0,p)&&H}p.C||(d=p.currentTarget=C,H=s8(d,N,!0,p)&&H,p.C||(H=s8(d,N,!1,p)&&H));if(V)for(X=0;!p.C&&X<V.length;X++)d=p.currentTarget=V[X],H=s8(d,N,!1,p)&&H;return H}; g.h.CS=function(){g.h8.oI.CS.call(this);this.FV&&this.FV.removeAll(void 0);this.VJ=null}; g.h.listen=function(p,C,V,N){return this.FV.add(String(p),C,!1,V,N)}; g.h.Ff=function(p,C,V,N){return this.FV.add(String(p),C,!0,V,N)}; g.h.rY=function(p,C,V,N){this.FV.remove(String(p),C,V,N)}; g.h.T1=function(p,C,V,N){return this.FV.T1(String(p),C,V,N)}; g.h.hasListener=function(p,C){return this.FV.hasListener(p!==void 0?String(p):void 0,C)};var E8=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(p){return p&&AsyncContext.Snapshot.wrap(p)}:function(p){return p};ab.prototype.get=function(){if(this.C>0){this.C--;var p=this.T;this.T=p.next;p.next=null}else p=this.V();return p};var lm;cX.prototype.add=function(p,C){var V=QtV.get();V.set(p,C);this.C?this.C.next=V:this.T=V;this.C=V}; cX.prototype.remove=function(){var p=null;this.T&&(p=this.T,this.T=this.T.next,this.T||(this.C=null),p.next=null);return p}; var QtV=new ab(function(){return new TD},function(p){return p.reset()}); TD.prototype.set=function(p,C){this.T=p;this.scope=C;this.next=null}; TD.prototype.reset=function(){this.next=this.scope=this.T=null};var M7,J8=!1,gVe=new cX;GAy.prototype.reset=function(){this.context=this.C=this.V=this.T=null;this.S=!1}; var pn9=new ab(function(){return new GAy},function(p){p.reset()}); g.um.prototype.then=function(p,C,V){return scL(this,E8(typeof p==="function"?p:null),E8(typeof C==="function"?C:null),V)}; g.um.prototype.$goog_Thenable=!0;g.h=g.um.prototype;g.h.Rz=function(p,C){return scL(this,null,E8(p),C)}; g.h.catch=g.um.prototype.Rz;g.h.cancel=function(p){if(this.T==0){var C=new q7(p);g.mo(function(){Xnu(this,C)},this)}}; g.h.Apn=function(p){this.T=0;DC(this,2,p)}; g.h.xnn=function(p){this.T=0;DC(this,3,p)}; g.h.ID=function(){for(var p;p=dXX(this);)iHQ(this,p,this.T,this.D);this.Y=!1}; var tlj=Jf;g.r1(q7,c5);q7.prototype.name="cancel";g.r1(g.Ib,g.h8);g.h=g.Ib.prototype;g.h.enabled=!1;g.h.Pa=null;g.h.setInterval=function(p){this.Kx=p;this.Pa&&this.enabled?(this.stop(),this.start()):this.Pa&&this.stop()}; g.h.X1o=function(){if(this.enabled){var p=g.QL()-this.mR;p>0&&p<this.Kx*.8?this.Pa=this.FR.setTimeout(this.s0,this.Kx-p):(this.Pa&&(this.FR.clearTimeout(this.Pa),this.Pa=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}}; g.h.start=function(){this.enabled=!0;this.Pa||(this.Pa=this.FR.setTimeout(this.s0,this.Kx),this.mR=g.QL())}; g.h.stop=function(){this.enabled=!1;this.Pa&&(this.FR.clearTimeout(this.Pa),this.Pa=null)}; g.h.CS=function(){g.Ib.oI.CS.call(this);this.stop();delete this.FR};g.m(g.ob,g.Y);g.h=g.ob.prototype;g.h.sendIsolatedPayload=function(p){this.W=p;this.V=1}; g.h.Uy=function(){var p=this.C.values();p=[].concat(g.K(p)).filter(function(C){return C.T.size}); p.length&&this.D.flush(p,this.W);Mle(p);this.S=0;this.T.enabled&&this.T.stop()}; g.h.qO=function(p){var C=g.US.apply(1,arguments);this.C.has(p)||this.C.set(p,new Pe(p,C))}; g.h.E9=function(p){var C=g.US.apply(1,arguments);this.C.has(p)||this.C.set(p,new wW(p,C))}; g.h.tW=function(p){this.YV(p,1,g.US.apply(1,arguments))}; g.h.YV=function(p,C){var V=g.US.apply(2,arguments),N=TVe(this,p);N&&N instanceof Pe&&(N.V(C,V),cbv(this))}; g.h.vI=function(p,C){var V=g.US.apply(2,arguments),N=TVe(this,p);N&&N instanceof wW&&(N.vI(C,V),cbv(this))};g.m(Y7,Error);Y7.prototype.toString=function(){var p="RpcError("+(mXV(this.code)||String(this.code))+")";this.message&&(p+=": "+this.message);return p};ves.prototype.c6=function(p){var C=[];Rb(this,p,C);return C.join("")}; var KaH={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},SQX=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var CP1;g.r1(nJ,uHX);nJ.prototype.T=function(){return new XMLHttpRequest}; CP1=new nJ;var wA=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),qQL=/#|$/,Iuu=/[?&]($|#)/;g.r1(g.VO,g.h8);var zJV=/^https?$/i,jFE=["POST","PUT"],Aby=[];g.h=g.VO.prototype;g.h.An=function(){this.dispose();g.rY(Aby,this)}; g.h.send=function(p,C,V,N){if(this.T)throw Error("[goog.net.XhrIo] Object is active with another request="+this.J+"; newUri="+p);C=C?C.toUpperCase():"GET";this.J=p;this.S="";this.C=0;this.b_=!1;this.V=!0;this.T=this.Sa?this.Sa.T():CP1.T();this.T.onreadystatechange=E8((0,g.LY)(this.HQ,this));try{this.getStatus(),this.sY=!0,this.T.open(C,String(p),!0),this.sY=!1}catch(d){this.getStatus();xXu(this,d);return}p=V||"";V=new Map(this.headers);if(N)if(Object.getPrototypeOf(N)===Object.prototype)for(var H in N)V.set(H, N[H]);else if(typeof N.keys==="function"&&typeof N.get==="function"){H=g.F(N.keys());for(var X=H.next();!X.done;X=H.next())X=X.value,V.set(X,N.get(X))}else throw Error("Unknown input type for opt_headers: "+String(N));N=Array.from(V.keys()).find(function(d){return"content-type"==d.toLowerCase()}); H=g.xH.FormData&&p instanceof g.xH.FormData;!g.W5(jFE,C)||N||H||V.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");C=g.F(V);for(N=C.next();!N.done;N=C.next())V=g.F(N.value),N=V.next().value,V=V.next().value,this.T.setRequestHeader(N,V);this.Vn&&(this.T.responseType=this.Vn);"withCredentials"in this.T&&this.T.withCredentials!==this.D&&(this.T.withCredentials=this.D);try{this.Y&&(clearTimeout(this.Y),this.Y=null),this.a$>0&&(this.getStatus(),this.Y=setTimeout(this.Cb.bind(this), this.a$)),this.getStatus(),this.Z=!0,this.T.send(p),this.Z=!1}catch(d){this.getStatus(),xXu(this,d)}}; g.h.Cb=function(){typeof Hi!="undefined"&&this.T&&(this.S="Timed out after "+this.a$+"ms, aborting",this.C=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.h.abort=function(p){this.T&&this.V&&(this.getStatus(),this.V=!1,this.W=!0,this.T.abort(),this.W=!1,this.C=p||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Nj(this))}; g.h.CS=function(){this.T&&(this.V&&(this.V=!1,this.W=!0,this.T.abort(),this.W=!1),Nj(this,!0));g.VO.oI.CS.call(this)}; g.h.HQ=function(){this.fS()||(this.sY||this.Z||this.W?YQL(this):this.lhV())}; g.h.lhV=function(){YQL(this)}; g.h.isActive=function(){return!!this.T}; g.h.isComplete=function(){return g.Xr(this)==4}; g.h.getStatus=function(){try{return g.Xr(this)>2?this.T.status:-1}catch(p){return-1}}; g.h.getResponseHeader=function(p){if(this.T&&this.isComplete())return p=this.T.getResponseHeader(p),p===null?void 0:p}; g.h.getLastError=function(){return typeof this.S==="string"?this.S:String(this.S)};aX.prototype.send=function(p,C,V){C=C===void 0?function(){}:C; V=V===void 0?function(){}:V; oeY(p.url,function(N){N=N.target;dU(N)?C(g.i3(N)):V(N.getStatus())},p.requestType,p.body,p.requestHeaders,p.timeoutMillis,p.withCredentials)}; aX.prototype.vt=function(){return 1};l3.prototype.done=function(){this.logger.QW(this.event,E$()-this.startTime)}; g.m(t$,E1);g.m(Tq,t$);g.h=Tq.prototype;g.h.Mh=function(){}; g.h.lO=function(){}; g.h.QW=function(){}; g.h.SH=function(){}; g.h.f6=function(){}; g.h.YH=function(p,C,V){return V}; g.h.EL=function(){}; g.h.sL=function(){}; g.h.SM=function(){}; g.h.jG=function(){}; g.m(Mj,t$);g.h=Mj.prototype;g.h.update=function(p){this.logger.dispose();this.logger=p}; g.h.lO=function(p){this.logger.lO(p)}; g.h.QW=function(p,C){this.logger.QW(p,C)}; g.h.SH=function(p){this.logger.SH(p)}; g.h.f6=function(){this.logger.f6()}; g.h.YH=function(p,C,V){return this.logger.YH(p,C,V)}; g.h.EL=function(p){this.logger.EL(p)}; g.h.sL=function(p){this.logger.sL(p)}; g.h.SM=function(p){this.logger.SM(p)}; g.h.jG=function(p){this.logger.jG(p)}; g.h.WN=function(p){this.logger instanceof vi&&this.logger.WN(p)}; g.h.Mh=function(p){this.logger.Mh(p)}; g.m(J$,g.Y);g.m(m0,t$);g.h=m0.prototype;g.h.WN=function(p){this.Uf=p}; g.h.Mh=function(p){this.metrics.H9$.vI(p,this.SU)}; g.h.lO=function(p){this.metrics.eventCount.T(p,this.SU)}; g.h.QW=function(p,C){this.metrics.sb.vI(C,p,this.Uf,this.SU)}; g.h.SH=function(p){this.metrics.errorCount.T(p,this.Uf,this.SU)}; g.h.YH=function(p,C,V){function N(d){if(!H.fS()){var a=E$()-X;H.metrics.e5$.vI(a,p,C,d,H.Uf,H.SU)}} var H=this,X=E$();V.then(function(){N(0)},function(d){d instanceof Y7?N(d.code):N(-1)}); return V}; g.h.EL=function(p){this.metrics.pRS.T(p,this.Uf,this.SU)}; g.h.sL=function(p){this.metrics.yu.T(p,this.Uf,this.SU)}; g.h.SM=function(p){this.metrics.Hd_.T(p,this.Uf,this.SU)}; g.m(vi,m0);vi.prototype.jG=function(p){var C=this;this.T.dispose();this.C&&this.service.dispose();this.service=this.options.qz("41",this.options.Fn.concat(p));this.T=new J$(function(){return void C.service.Uy()},this.options.I3); this.metrics=ney(this.service);this.V=p}; vi.prototype.f6=function(){P0Y(this.T)};g.m(Fr,eq);g.m(SE,eq);g.m(KN,eq);var Vyy=Du(KN),$Xj=function(p){return wo(function(C){return C instanceof p&&!(xT(C.bx)&2)})}(KN); KN.messageId="bfkj";g.m(Dt,eq);g.m(H5,eq);g.m(u3,eq);var La9=Du(u3);g.m(U$,g.Y);U$.prototype.snapshot=function(p){if(this.fS())throw Error("Already disposed");this.logger.lO("n");var C=this.logger.share();return this.V.then(function(V){var N=V.Xq;return new Promise(function(H){var X=new l3(C,"n");N(function(d){X.done();C.Mh(d.length);C.f6();C.dispose();H(d)},[p.P$, p.D9,p.P5,p.Uk])})})}; U$.prototype.Ok=function(p){var C=this;if(this.fS())throw Error("Already disposed");this.logger.lO("n");var V=ci(this.logger,function(){return C.S([p.P$,p.D9,p.P5,p.Uk])},"n"); this.logger.Mh(V.length);this.logger.f6();return V}; U$.prototype.G5=function(p){this.V.then(function(C){var V;(V=C.F6$)==null||V(p)})}; U$.prototype.Wd=function(){return this.logger.share()}; g.m(fN,Error);g.m(IX,eq);g.m(b3,eq);A$.prototype.Dj=function(p,C){var V=this,N,H,X,d,a;return g.I(function(E){if(E.C==1){var l=new IX;N=v4(l,1,V.I1);p&&v4(N,2,p);C&&v4(N,3,C);H=V.T();return g.y(E,V.client.create(N,H),2)}X=E.T;d=f6(Qx(X,2));if(d.length){l=E.return;var t=new Uint8Array(d.length);for(var c=0;c<d.length;c++)t[c]=d[c]+97;if(g.xH.TextDecoder)t=(new TextDecoder).decode(t);else if(t.length<=8192)t=String.fromCharCode.apply(null,t);else{c="";for(var T=0;T<t.length;T+=8192)c+=String.fromCharCode.apply(null,Array.prototype.slice.call(t, T,T+8192));t=c}t=Vyy(t);return l.call(E,t)}a=iB(X,KN,1);if(!a)throw Error("Missing field");return E.return(a)})}; A$.prototype.dK=function(p){var C=this,V,N;return g.I(function(H){V=C.T();var X=new b3;X=v4(X,1,C.I1);N=v4(X,2,p);X=H.return;var d=C.client;d=Hea(d.T,d.C+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",N,V||{},NY2);return X.call(H,d)})};g.m(zq,g.Y);zq.prototype.snapshot=function(p){var C=this;return g.I(function(V){switch(V.C){case 1:if(C.fS())throw Error("Already disposed");if(C.C||C.D){V.EY(2);break}return g.y(V,C.W.promise,2);case 2:if(!C.C){V.EY(4);break}return g.y(V,C.C.snapshot(p),5);case 5:return V.return(V.T);case 4:throw C.D;}})}; zq.prototype.G5=function(p){var C,V;(C=this.C)==null||(V=C.G5)==null||V.call(C,p)}; zq.prototype.handleError=function(p){if(!this.fS()){this.D=p;this.W.resolve();var C,V;(V=(C=this.options).o_$)==null||V.call(C,p)}}; zq.prototype.Wd=function(){return this.logger.share()}; var pGj={hbn:432E5,Ny:3E5,PD:10,mD:1E4,mZ:3E4,Na:3E4,fQ$:6E4,Cu:1E3,nu:6E4,Af:6E5,xF:.25,bA:2,maxAttempts:10};var H0f,hQ9=(H0f=Math.imul)!=null?H0f:function(p,C){return p*C|0},Pi=[196, 200,224,18];wU.prototype.c6=function(){return String(this.T)+","+this.C.join()}; wU.prototype.N5=function(p,C){var V=void 0;if(this.C[this.T]!==p){var N=this.C.indexOf(p);N!==-1?(this.C.splice(N,1),N<this.T&&this.T--,this.C.splice(this.T,0,p)):(V=this.C[this.T],this.C[this.T]=p)}this.T=(this.T+1)%this.maxItems;p=iGL("iU5q-!O9@$",this.c6());V&&p&&C(V);return p};var v5s={toString:function(p){var C=[],V=0;p-=-2147483648;C[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(p%52);for(p=Math.floor(p/52);p>0;)C[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(p%62),p=Math.floor(p/62);return C.join("")}};var S_v;g.m(LN,g.Y);LN.prototype.BS=function(p,C){var V=this.DJ(p);C==null||C(V);return ci(this.logger,function(){return g.mq(V,2)},this.C)}; S_v=Symbol.dispose;g.m(QO,LN);QO.prototype.DJ=function(p,C){var V=this;++this.W>=this.Y&&this.T.resolve();var N=p();p=ci(this.logger,function(){return V.S(N)},"C"); if(p===void 0)throw new fN(17,"YNJ:Undefined");if(!(p instanceof Uint8Array))throw new fN(18,"ODM:Invalid");C==null||C(p);return p}; g.m(rU,LN);rU.prototype.DJ=function(){return this.S}; g.m(Bi,LN);Bi.prototype.DJ=function(){var p=this;return ci(this.logger,function(){return Fv(p.S)},"d")}; Bi.prototype.BS=function(){return this.S}; g.m(Gq,LN);Gq.prototype.DJ=function(){if(this.S)return this.S;this.S=K91(this,function(p){return"_"+F9a(p)}); return K91(this,function(p){return p})}; g.m(CE,LN);CE.prototype.DJ=function(p){var C=p();if(C.length>118)throw new fN(19,"DFO:Invalid");p=Math.floor(Date.now()/1E3);var V=[Math.random()*255,Math.random()*255],N=V.concat([this.S&255,this.clientState],[p>>24&255,p>>16&255,p>>8&255,p&255]);p=new Uint8Array(2+N.length+C.length);p[0]=34;p[1]=N.length+C.length;p.set(N,2);p.set(C,2+N.length);C=p.subarray(2);for(N=V=V.length;N<C.length;++N)C[N]^=C[N%V];this.logger.EL(this.clientState);return p};var y9Y={zb:3E4,p1o:2E4};g.m(jZ,g.Y);jZ.prototype.Iw=function(p){if(!(p>150))try{this.cache=new TIe(p,this.logger)}catch(C){this.reportError(new fN(22,"GBJ:init",C))}}; jZ.prototype.reportError=function(p){this.logger.SH(p.code);this.onError(p);return p}; g.m(Xf,jZ);Xf.prototype.gq=function(){return this.C.promise}; Xf.prototype.DJ=function(p){return Vh(this,Object.assign({},p),!1)}; Xf.prototype.BS=function(p){return Vh(this,Object.assign({},p),!0)}; var q_H=function(p){return wo(function(C){if(!si(C))return!1;for(var V=g.F(Object.entries(p)),N=V.next();!N.done;N=V.next()){var H=g.F(N.value);N=H.next().value;H=H.next().value;if(!(N in C)){if(H.Drr===!0)continue;return!1}if(!H(C[N]))return!1}return!0})}({w7:function(p){return wo(function(C){return C instanceof p})}(zq)},"");g.m(dh,eq);var X5G=Du(dh);A9y.prototype.getMetadata=function(){return this.metadata};ip.prototype.getMetadata=function(){return this.metadata}; ip.prototype.getStatus=function(){return this.status};hE.prototype.D=function(p,C){C=C===void 0?{}:C;return new A9y(p,this,C)}; hE.prototype.getName=function(){return this.name};var dc0=new hE("/google.internal.waa.v1.Waa/Create",IX,dh,function(p){return p.c6()},X5G);g.m(sV,eq);var NY2=new hE("/google.internal.waa.v1.Waa/GenerateIT",b3,sV,function(p){return p.c6()},Du(sV));var hC9=new Set(["SAPISIDHASH","APISIDHASH"]);var VuV=Promise;g.m(as,eq);as.prototype.getValue=function(){var p=xK(this,2);if(Array.isArray(p)||p instanceof eq)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Qx(this,2)};g.m(EV,eq);EV.prototype.getMessage=function(){return TA(this,2)}; var zQy=Du(EV);lp.prototype.lq=function(p,C){p=="data"?this.V.push(C):p=="metadata"?this.W.push(C):p=="status"?this.Y.push(C):p=="end"?this.S.push(C):p=="error"&&this.C.push(C);return this}; lp.prototype.removeListener=function(p,C){p=="data"?M_(this.V,C):p=="metadata"?M_(this.W,C):p=="status"?M_(this.Y,C):p=="end"?M_(this.S,C):p=="error"&&M_(this.C,C);return this}; lp.prototype.cancel=function(){this.T.abort()}; lp.prototype.cancel=lp.prototype.cancel;lp.prototype.removeListener=lp.prototype.removeListener;lp.prototype.on=lp.prototype.lq;g.r1(g.JE,uHX);g.JE.prototype.T=function(){var p=new mn(this.S,this.V);this.C&&p.setCredentialsMode(this.C);return p}; g.JE.prototype.setCredentialsMode=function(p){this.C=p}; g.r1(mn,g.h8);g.h=mn.prototype;g.h.open=function(p,C){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.a$=p;this.Z=C;this.readyState=1;v2(this)}; g.h.send=function(p){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.T=!0;var C={headers:this.J,method:this.a$,credentials:this.W,cache:void 0};p&&(C.body=p);(this.b_||g.xH).fetch(new Request(this.Z,C)).then(this.Pk.bind(this),this.eQ.bind(this))}; g.h.abort=function(){this.response=this.responseText="";this.J=new Headers;this.status=0;this.V&&this.V.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,Ff(this));this.readyState=0}; g.h.Pk=function(p){if(this.T&&(this.S=p,this.C||(this.status=this.S.status,this.statusText=this.S.statusText,this.C=p.headers,this.readyState=2,v2(this)),this.T&&(this.readyState=3,v2(this),this.T)))if(this.responseType==="arraybuffer")p.arrayBuffer().then(this.Hk.bind(this),this.eQ.bind(this));else if(typeof g.xH.ReadableStream!=="undefined"&&"body"in p){this.V=p.body.getReader();if(this.Y){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.D=new TextDecoder;RQa(this)}else p.text().then(this.p_.bind(this),this.eQ.bind(this))}; g.h.un=function(p){if(this.T){if(this.Y&&p.value)this.response.push(p.value);else if(!this.Y){var C=p.value?p.value:new Uint8Array(0);if(C=this.D.decode(C,{stream:!p.done}))this.response=this.responseText+=C}p.done?Ff(this):v2(this);this.readyState==3&&RQa(this)}}; g.h.p_=function(p){this.T&&(this.response=this.responseText=p,Ff(this))}; g.h.Hk=function(p){this.T&&(this.response=p,Ff(this))}; g.h.eQ=function(){this.T&&Ff(this)}; g.h.setRequestHeader=function(p,C){this.J.append(p,C)}; g.h.getResponseHeader=function(p){return this.C?this.C.get(p.toLowerCase())||"":""}; g.h.getAllResponseHeaders=function(){if(!this.C)return"";for(var p=[],C=this.C.entries(),V=C.next();!V.done;)V=V.value,p.push(V[0]+": "+V[1]),V=C.next();return p.join("\r\n")}; g.h.setCredentialsMode=function(p){this.W=p}; Object.defineProperty(mn.prototype,"withCredentials",{get:function(){return this.W==="include"}, set:function(p){this.setCredentialsMode(p?"include":"same-origin")}});g.SZ.prototype.toString=function(){var p=[],C=this.W;C&&p.push(OV(C,i0p,!0),":");var V=this.T;if(V||C=="file")p.push("//"),(C=this.J)&&p.push(OV(C,i0p,!0),"@"),p.push(g.N$(V).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),V=this.V,V!=null&&p.push(":",String(V));if(V=this.C)this.T&&V.charAt(0)!="/"&&p.push("/"),p.push(OV(V,V.charAt(0)=="/"?hEr:sFE,!0));(V=this.S.toString())&&p.push("?",V);(V=this.Y)&&p.push("#",OV(V,av5));return p.join("")}; g.SZ.prototype.resolve=function(p){var C=this.clone(),V=!!p.W;V?g.KE(C,p.W):V=!!p.J;V?C.J=p.J:V=!!p.T;V?g.Dq(C,p.T):V=p.V!=null;var N=p.C;if(V)g.up(C,p.V);else if(V=!!p.C){if(N.charAt(0)!="/")if(this.T&&!this.C)N="/"+N;else{var H=C.C.lastIndexOf("/");H!=-1&&(N=C.C.slice(0,H+1)+N)}H=N;if(H==".."||H==".")N="";else if(g.K0(H,"./")||g.K0(H,"/.")){N=v5(H,"/");H=H.split("/");for(var X=[],d=0;d<H.length;){var a=H[d++];a=="."?N&&d==H.length&&X.push(""):a==".."?((X.length>1||X.length==1&&X[0]!="")&&X.pop(), N&&d==H.length&&X.push("")):(X.push(a),N=!0)}N=X.join("/")}else N=H}V?C.C=N:V=p.S.toString()!=="";V?Zq(C,p.S.clone()):V=!!p.Y;V&&(C.Y=p.Y);return C}; g.SZ.prototype.clone=function(){return new g.SZ(this)}; var i0p=/[#\/\?@]/g,sFE=/[#\?:]/g,hEr=/[#\?]/g,eQL=/[#\?@]/g,av5=/#/g;g.h=fE.prototype;g.h.add=function(p,C){Is(this);this.V=null;p=bp(this,p);var V=this.T.get(p);V||this.T.set(p,V=[]);V.push(C);this.C=this.C+1;return this}; g.h.remove=function(p){Is(this);p=bp(this,p);return this.T.has(p)?(this.V=null,this.C=this.C-this.T.get(p).length,this.T.delete(p)):!1}; g.h.clear=function(){this.T=this.V=null;this.C=0}; g.h.isEmpty=function(){Is(this);return this.C==0}; g.h.forEach=function(p,C){Is(this);this.T.forEach(function(V,N){V.forEach(function(H){p.call(C,H,N,this)},this)},this)}; g.h.Ei=function(){Is(this);for(var p=Array.from(this.T.values()),C=Array.from(this.T.keys()),V=[],N=0;N<C.length;N++)for(var H=p[N],X=0;X<H.length;X++)V.push(C[N]);return V}; g.h.k5=function(p){Is(this);var C=[];if(typeof p==="string")wGj(this,p)&&(C=C.concat(this.T.get(bp(this,p))));else{p=Array.from(this.T.values());for(var V=0;V<p.length;V++)C=C.concat(p[V])}return C}; g.h.set=function(p,C){Is(this);this.V=null;p=bp(this,p);wGj(this,p)&&(this.C=this.C-this.T.get(p).length);this.T.set(p,[C]);this.C=this.C+1;return this}; g.h.get=function(p,C){if(!p)return C;p=this.k5(p);return p.length>0?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<C.length;V++){var N=C[V],H=g.N$(N);N=this.k5(N);for(var X=0;X<N.length;X++){var d=H;N[X]!==""&&(d+="="+g.N$(N[X]));p.push(d)}}return this.V=p.join("&")}; g.h.clone=function(){var p=new fE;p.V=this.V;this.T&&(p.T=new Map(this.T),p.C=this.C);return p};g.r1(g.os,g.Y);var E2y=[];g.h=g.os.prototype;g.h.listen=function(p,C,V,N){Array.isArray(C)||(C&&(E2y[0]=C.toString()),C=E2y);for(var H=0;H<C.length;H++){var X=g.jS(p,C[H],V||this.handleEvent,N||!1,this.C||this);if(!X)break;this.T[X.key]=X}return this}; g.h.Ff=function(p,C,V,N){return g5e(this,p,C,V,N)}; g.h.rY=function(p,C,V,N,H){if(Array.isArray(C))for(var X=0;X<C.length;X++)this.rY(p,C[X],V,N,H);else V=V||this.handleEvent,N=g.Pv(N)?!!N.capture:!!N,H=H||this.C||this,V=VU(V),N=!!N,C=gW(p)?p.T1(C,V,N,H):p?(p=N7(p))?p.T1(C,V,N,H):null:null,C&&(Xu(C),delete this.T[C.key])}; g.h.removeAll=function(){g.ZH(this.T,function(p,C){this.T.hasOwnProperty(C)&&Xu(p)},this); this.T={}}; g.h.CS=function(){g.os.oI.CS.call(this);this.removeAll()}; g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};W9v.prototype.isInputValid=function(){return this.V};k3.prototype.isInputValid=function(){return this.T!=3}; k3.prototype.FF=function(){return this.Y}; k3.prototype.Kh=function(){return!0}; k3.prototype.parse=function(p){function C(E){E&128&&x3(X,d,a,"invalid tag");(E&7)!=2&&x3(X,d,a,"invalid wire type");X.V=E>>>3;X.V!=1&&X.V!=2&&X.V!=15&&x3(X,d,a,"unexpected tag");X.T=1;X.C=0;X.S=0} function V(E){X.S++;X.S==5&&E&240&&x3(X,d,a,"message length too long");X.C|=(E&127)<<(X.S-1)*7;E&128||(X.T=2,X.J=0,typeof Uint8Array!=="undefined"?X.W=new Uint8Array(X.C):X.W=Array(X.C),X.C==0&&H())} function N(E){X.W[X.J++]=E;X.J==X.C&&H()} function H(){if(X.V<15){var E={};E[X.V]=X.W;X.D.push(E)}X.T=0} for(var X=this,d=p instanceof Array?p:new Uint8Array(p),a=0;a<d.length;){switch(X.T){case 3:x3(X,d,a,"stream already broken");break;case 0:C(d[a]);break;case 1:V(d[a]);break;case 2:N(d[a]);break;default:throw Error("unexpected parser state: "+X.T);}X.Z++;a++}p=X.D;X.D=[];return p.length>0?p:null};Y3.prototype.isInputValid=function(){return this.T===null}; Y3.prototype.FF=function(){return this.T}; Y3.prototype.Kh=function(){return!1}; Y3.prototype.parse=function(p){this.T!==null&&r9y(this,p,"stream already broken");var C=null;try{var V=this.V;V.V||Qa9(V,p,"stream already broken");V.T+=p;var N=Math.floor(V.T.length/4);if(N==0)var H=null;else{try{var X=tyH(V.T.slice(0,N*4))}catch(d){Qa9(V,V.T,d.message)}V.C+=N*4;V.T=V.T.slice(N*4);H=X}C=H===null?null:this.S.parse(H)}catch(d){r9y(this,p,d.message)}this.C+=p.length;return C};var lv1={INIT:0,eP:1,yI:2,lz:3,m3:4,uQ:5,STRING:6,ML:7,rE:8,Gw:9,hC:10,HL:11,Uq:12,K0:13,gX:14,Oq:15,u$:16,m9:17,vL:18,iY:19,ZT:20};g.h=nE.prototype;g.h.isInputValid=function(){return this.W!=3}; g.h.FF=function(){return this.Z}; g.h.done=function(){return this.W===2}; g.h.Kh=function(){return!1}; g.h.parse=function(p){function C(){for(;T<p.length;)if(zi(p[T]))T++,X.V++;else break;return T<l} function V(){for(var J;;){J=p[T++];if(!J)break;X.V++;switch(X.T){case E.INIT:J==="{"?X.T=E.yI:J==="["?X.T=E.m3:zi(J)||eZ(X,p,T);continue;case E.ML:case E.yI:if(zi(J))continue;if(X.T===E.ML)d.push(E.rE);else if(J==="}"){H("{}");X.T=N();continue}else d.push(E.lz);J==='"'?X.T=E.STRING:eZ(X,p,T);continue;case E.rE:case E.lz:if(zi(J))continue;J===":"?(X.T===E.lz&&(d.push(E.lz),X.C++),X.T=E.eP):J==="}"?(X.C--,H(),X.T=N()):J===","?(X.T===E.lz&&d.push(E.lz),X.T=E.ML):eZ(X,p,T);continue;case E.m3:case E.eP:if(zi(J))continue; if(X.T===E.m3)if(X.C++,X.T=E.eP,J==="]"){X.C--;if(X.C===0){X.T=E.uQ;return}H("[]");X.T=N();continue}else d.push(E.uQ);J==='"'?X.T=E.STRING:J==="{"?X.T=E.yI:J==="["?X.T=E.m3:J==="t"?X.T=E.Gw:J==="f"?X.T=E.Uq:J==="n"?X.T=E.u$:J!=="-"&&("0123456789".indexOf(J)!==-1?X.T=E.ZT:eZ(X,p,T));continue;case E.uQ:if(J===",")d.push(E.uQ),X.T=E.eP,X.C===1&&(c=T);else if(J==="]"){X.C--;if(X.C===0)return;H();X.T=N()}else if(zi(J))continue;else eZ(X,p,T);continue;case E.STRING:var S=T;a:for(;;){for(;X.J>0;)if(J=p[T++], X.J===4?X.J=0:X.J++,!J)break a;if(J==='"'&&!X.D){X.T=N();break}if(J==="\\"&&!X.D&&(X.D=!0,J=p[T++],!J))break;if(X.D)if(X.D=!1,J==="u"&&(X.J=1),J=p[T++])continue;else break;a.lastIndex=T;J=a.exec(p);if(!J){T=p.length+1;break}T=J.index+1;J=p[J.index];if(!J)break}X.V+=T-S;continue;case E.Gw:if(!J)continue;J==="r"?X.T=E.hC:eZ(X,p,T);continue;case E.hC:if(!J)continue;J==="u"?X.T=E.HL:eZ(X,p,T);continue;case E.HL:if(!J)continue;J==="e"?X.T=N():eZ(X,p,T);continue;case E.Uq:if(!J)continue;J==="a"?X.T=E.K0: eZ(X,p,T);continue;case E.K0:if(!J)continue;J==="l"?X.T=E.gX:eZ(X,p,T);continue;case E.gX:if(!J)continue;J==="s"?X.T=E.Oq:eZ(X,p,T);continue;case E.Oq:if(!J)continue;J==="e"?X.T=N():eZ(X,p,T);continue;case E.u$:if(!J)continue;J==="u"?X.T=E.m9:eZ(X,p,T);continue;case E.m9:if(!J)continue;J==="l"?X.T=E.vL:eZ(X,p,T);continue;case E.vL:if(!J)continue;J==="l"?X.T=N():eZ(X,p,T);continue;case E.iY:J==="."?X.T=E.ZT:eZ(X,p,T);continue;case E.ZT:if("0123456789.eE+-".indexOf(J)!==-1)continue;else T--,X.V--,X.T= N();continue;default:eZ(X,p,T)}}} function N(){var J=d.pop();return J!=null?J:E.eP} function H(J){X.C>1||(J||(J=c===-1?X.S+p.substring(t,T):p.substring(c,T)),X.a$?X.Y.push(J):X.Y.push(JSON.parse(J)),c=T)} for(var X=this,d=X.b_,a=X.sY,E=lv1,l=p.length,t=0,c=-1,T=0;T<l;)switch(X.W){case 3:return eZ(X,p,T),null;case 2:return C()&&eZ(X,p,T),null;case 0:if(C()){var M=p[T++];X.V++;if(M==="["){X.W=1;t=T;X.T=E.m3;continue}else eZ(X,p,T)}return null;case 1:return V(),X.C===0&&X.T==E.uQ?(X.W=2,X.S=p.substring(T)):X.S=c===-1?X.S+p.substring(t):p.substring(c),X.Y.length>0?(M=X.Y,X.Y=[],M):null}return null};P2.prototype.isInputValid=function(){return this.W===null}; P2.prototype.FF=function(){return this.W}; P2.prototype.Kh=function(){return!1}; P2.prototype.parse=function(p){function C(E){X.C=6;X.W="The stream is broken @"+X.T+"/"+d+". Error: "+E+". With input:\n";throw Error(X.W);} function V(){X.V=new nE({Yin:!0,UH:!0})} function N(E){if(E)for(var l=0;l<E.length;l++){var t={};t[1]=E[l];X.S.push(t)}} function H(E){if(E){(X.Y||E.length>1)&&C("extra status: "+E);X.Y=!0;var l={};l[2]=E[0];X.S.push(l)}} for(var X=this,d=0;d<p.length;){var a;if(a=X.C!==2){a:{for(;d<p.length;){if(!zi(p[d])){a=!0;break a}d++;X.T++}a=!1}a=!a}if(a)return null;switch(X.C){case 6:C("stream already broken");break;case 0:p[d]==="["?(X.C=1,d++,X.T++):C("unexpected input token");break;case 1:p[d]==="["?(X.C=2,V()):p[d]===","||p.slice(d,d+5)=="null,"?X.C=3:p[d]==="]"?(X.C=5,d++,X.T++):C("unexpected input token");break;case 2:a=X.V.parse(p.substring(d));N(a);X.V.done()?(X.C=3,a=X.V.S,X.T+=p.length-d-a.length,p=a,d=0):(X.T+=p.length- d,d=p.length);break;case 3:p[d]===","||p.slice(d,d+5)=="null,"?(X.C=4,V(),X.V.parse("["),d+=p[d]===","?1:5,X.T++):p[d]==="]"&&(X.C=5,d++,X.T++);break;case 4:a=X.V.parse(p.substring(d));H(a);X.V.done()?(X.C=5,a=X.V.S,X.T+=p.length-d-a.length,p=a,d=0):(X.T+=p.length-d,d=p.length);break;case 5:C("extra input after stream end")}}return X.S.length>0?(p=X.S,X.S=[],p):null};wh.prototype.Yw=function(){return this.T}; wh.prototype.getStatus=function(){return this.W}; wh.prototype.a$=function(p){p=p.target;try{if(p==this.T)a:{var C=g.Xr(this.T),V=this.T.C,N=this.T.getStatus(),H=g.i3(this.T);p=[];if(g.h$(this.T)instanceof Array){var X=g.h$(this.T);X.length>0&&X[0]instanceof Uint8Array&&(this.Z=!0,p=X)}if(!(C<3||C==3&&!H&&p.length==0))if(N=N==200||N==206,C==4&&(V==8?$3(this,7):V==7?$3(this,8):N||$3(this,3)),this.C||(this.C=BIL(this.T),this.C==null&&$3(this,5)),this.W>2)LE(this);else{if(p.length>this.V){var d=p.length;V=[];try{if(this.C.Kh())for(var a=0;a<d;a++){var E= this.C.parse(Array.from(p[a]));E&&(V=V.concat(E))}else{E="";if(!this.Y){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.Y=new TextDecoder}for(a=0;a<d;a++)E+=this.Y.decode(p[a],{stream:C==4&&a==d-1});V=this.C.parse(E)}p.splice(0,d);V&&this.S(V)}catch(t){$3(this,5);LE(this);break a}}else if(H.length>this.V){a=H.slice(this.V);this.V=H.length;try{var l=this.C.parse(a);l!=null&&this.S&&this.S(l)}catch(t){$3(this,5);LE(this);break a}}C==4?(H.length!= 0||this.Z?$3(this,2):$3(this,4),LE(this)):$3(this,1)}}}catch(t){$3(this,6),LE(this)}};g.h=Ghs.prototype;g.h.lq=function(p,C){var V=this.C[p];V||(V=[],this.C[p]=V);V.push(C);return this}; g.h.addListener=function(p,C){this.lq(p,C);return this}; g.h.removeListener=function(p,C){var V=this.C[p];V&&g.rY(V,C);(p=this.T[p])&&g.rY(p,C);return this}; g.h.once=function(p,C){var V=this.T[p];V||(V=[],this.T[p]=V);V.push(C);return this}; g.h.ta$=function(p){var C=this.C.data;C&&pea(p,C);(C=this.T.data)&&pea(p,C);this.T.data=[]}; g.h.L6n=function(){switch(this.V.getStatus()){case 1:gh(this,"readable");break;case 5:case 6:case 4:case 7:case 3:gh(this,"error");break;case 8:gh(this,"close");break;case 2:gh(this,"end")}};CKa.prototype.serverStreaming=function(p,C,V,N){var H=this,X=p.substring(0,p.length-N.name.length);return jNL(function(d){var a=d.j7,E=d.getMetadata(),l=XeL(H,!1);E=dqY(H,E,l,X+a.getName());var t=ies(l,a.C,!0);d=a.T(d.G0);l.send(E,"POST",d);return t},this.S).call(this,N.D(C,V))};sNv.prototype.create=function(p,C){return Hea(this.T,this.C+"/$rpc/google.internal.waa.v1.Waa/Create",p,C||{},dc0)};var ty2=1,j1=new WeakMap;g.m(W2,g.Y);W2.prototype.signal=function(){var p=new rh(!1);this.signals.add(p);g.R(this,p);return p}; W2.prototype.hS=function(p){return Qh(this,p).hS()}; g.m(rh,g.Y);g.h=rh.prototype;g.h.fN=function(){var p=this,C=ty2++;B2(function(){azu(p,C)}); return C}; g.h.detach=function(p){var C=this;B2(function(){var V=C.slots.get(p);V&&V.O0()})}; g.h.value=function(p){return this.promise(!0,p)}; g.h.hS=function(){return this.EQ}; g.h.next=function(p){return this.promise(!1,p)}; g.h.promise=function(p,C){var V=this,N=HHV();B2(function(){if(V.fS())N.reject(new q7("Signal initially disposed"));else if(C&&C.fS())N.reject(new q7("Owner initially disposed"));else if(p&&V.IK&&V.Wi)N.resolve(V.EQ);else if(V.G3.add(N),yU(N.promise,function(){V.G3.delete(N)}),C){var H=function(){N.reject(new q7("Owner asynchronously disposed"))}; yU(N.promise,function(){var X=j1.get(C);X&&g.rY(X,H)}); tuj(C,H)}}); return N.promise}; g.h.CS=function(){var p=this;g.Y.prototype.CS.call(this);B2(function(){for(var C=g.F(p.slots.values()),V=C.next();!V.done;V=C.next())V=V.value.O0,V();p.slots.clear();C=g.F(p.G3);for(V=C.next();!V.done;V=C.next())V.value.reject(new q7("Signal asynchronously disposed"));p.G3.clear()})}; var ph=[],Ch=!1;g.m(VA,g.Y);VA.prototype.start=function(){var p=this;if(this.fS())throw new Hs("Cannot start a disposed timer.");if(!this.Y){this.S=0;if(this.D){var C=Date.now();this.handle=setInterval(function(){p.S=p.milliseconds>0?Math.trunc((Date.now()-C)/p.milliseconds):p.S+1;var V;(V=p.C)==null||V.resolve();p.C=void 0;if(p.V){var N;(N=p.T)!=null&&Gi(Qh(N,p.V),p)}p.aH.TF(p)},this.milliseconds)}else this.handle=setTimeout(function(){p.state=3; p.handle=void 0;p.S=1;var V;(V=p.C)==null||V.resolve();p.C=void 0;if(p.V){var N;(N=p.T)!=null&&Gi(Qh(N,p.V),p)}p.aH.TF(p)},this.milliseconds); this.state=1}}; VA.prototype.cancel=function(){if(this.Y){this.clear();this.state=2;var p;(p=this.C)==null||p.reject(new Nk);var C;(C=this.aH.AP)==null||C.call(this);if(this.W){var V;(V=this.T)!=null&&Gi(Qh(V,this.W))}}}; VA.prototype.CS=function(){this.clear();var p;(p=this.C)==null||p.reject(new Hs);this.state=4;g.Y.prototype.CS.call(this)}; VA.prototype.clear=function(){this.D?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.Xe.Object.defineProperties(VA.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.S}}, J:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.C!=null||(this.C=new g.Zt),this.C.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Nk("Timer has been cancelled."));case 4:return Promise.reject(new Hs("Timer has been disposed."));default:N1(this.state)}}}, TF:{configurable:!0,enumerable:!0,get:function(){if(this.fS())throw new Hs("Cannot attach a signal to a disposed timer.");this.V||(this.T!=null||(this.T=new W2(this)),this.V=this.T.signal());return this.V}}, AP:{configurable:!0,enumerable:!0,get:function(){if(this.fS())throw new Hs("Cannot attach a signal to a disposed timer.");this.W||(this.T!=null||(this.T=new W2(this)),this.W=this.T.signal());return this.W}}}); g.m(Nk,c5);g.m(Hs,c5);g.m(XL,jZ);g.h=XL.prototype;g.h.isReady=function(){return!!this.T}; g.h.ready=function(){var p=this;return g.I(function(C){return g.y(C,p.C.promise,0)})}; g.h.Dj=function(p){return Muu(this,this.logger.YH("c",p===void 0?1:p,this.qB.Dj(yO().T,null)),new fN(10,"JVZ:Timeout"))}; g.h.prefetch=function(){this.state===1&&(this.G1=this.Dj())}; g.h.start=function(){if(this.state===1){this.state=2;var p=new l3(this.logger,"r");this.ready().finally(function(){return void p.done()}); mqH(this)}}; g.h.DJ=function(p){vqY(this,p);return Vh(this,TWH(p),!1)}; g.h.BS=function(p){vqY(this,p);return Vh(this,TWH(p),!0)};var Dqu={NONE:0,Nx_:1},NAH={d8:0,hOS:1,Ge_:2,eOV:3},Ps={pY:"a",zye:"d",VIDEO:"v"};iZ.prototype.isVisible=function(){return this.Wj?this.L7>=.3:this.L7>=.5};var JU={kUk:0,JgY:1},jbH={NONE:0,Hq$:1,F$_:2};hU.prototype.getValue=function(){return this.C}; g.m(sh,hU);sh.prototype.V=function(p){this.C===null&&g.A9(this.S,p)&&(this.C=p)}; g.m(ao,hU);ao.prototype.V=function(p){this.C===null&&typeof p==="number"&&(this.C=p)}; g.m(Eh,hU);Eh.prototype.V=function(p){this.C===null&&typeof p==="string"&&(this.C=p)};lZ.prototype.disable=function(){this.C=!1}; lZ.prototype.enable=function(){this.C=!0}; lZ.prototype.isEnabled=function(){return this.C}; lZ.prototype.reset=function(){this.T={};this.C=!0;this.V={}};var R9=document,S1=window;var XiQ=!g.vF&&!Y2();mg.prototype.now=function(){return 0}; mg.prototype.C=function(){return 0}; mg.prototype.V=function(){return 0}; mg.prototype.T=function(){return 0};g.m(FL,mg);FL.prototype.now=function(){return vs()&&S1.performance.now?S1.performance.now():mg.prototype.now.call(this)}; FL.prototype.C=function(){return vs()&&S1.performance.memory?S1.performance.memory.totalJSHeapSize||0:mg.prototype.C.call(this)}; FL.prototype.V=function(){return vs()&&S1.performance.memory?S1.performance.memory.usedJSHeapSize||0:mg.prototype.V.call(this)}; FL.prototype.T=function(){return vs()&&S1.performance.memory?S1.performance.memory.jsHeapSizeLimit||0:mg.prototype.T.call(this)};var UqQ=SS(function(){var p=!1;try{var C=Object.defineProperty({},"passive",{get:function(){p=!0}}); g.xH.addEventListener("test",null,C)}catch(V){}return p});fzu.prototype.isVisible=function(){return uZ(R9)===1};var y2V={wRn:"allow-forms",oBV:"allow-modals",dnx:"allow-orientation-lock",j_a:"allow-pointer-lock",XRx:"allow-popups",FS_:"allow-popups-to-escape-sandbox",qE_:"allow-presentation",cpS:"allow-same-origin",Mqn:"allow-scripts",ZdV:"allow-top-navigation",yUa:"allow-top-navigation-by-user-activation"},A21=SS(function(){return qoH()});var You=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");yA.prototype.i9=function(p,C,V){p=p+"//"+C+V;var N=eCa(this)-V.length;if(N<0)return"";this.T.sort(function(l,t){return l-t}); V=null;C="";for(var H=0;H<this.T.length;H++)for(var X=this.T[H],d=this.C[X],a=0;a<d.length;a++){if(!N){V=V==null?X:V;break}var E=nqX(d[a],this.V,",$");if(E){E=C+E;if(N>=E.length){N-=E.length;p+=E;C=this.V;break}V=V==null?X:V}}N="";V!=null&&(N=""+C+"trn="+V);return p+N};Yc.prototype.setInterval=function(p,C){return S1.setInterval(p,C)}; Yc.prototype.clearInterval=function(p){S1.clearInterval(p)}; Yc.prototype.setTimeout=function(p,C){return S1.setTimeout(p,C)}; Yc.prototype.clearTimeout=function(p){S1.clearTimeout(p)};g.m(Ro,eq);Ro.prototype.T=EKu([0,yQv,bYY,-2,kVG]);var VSe={Ada:1,YU:2,e4Y:3};HJv.prototype.pF=function(p){if(typeof p==="string"&&p.length!=0){var C=this.IN;if(C.C){p=p.split("&");for(var V=p.length-1;V>=0;V--){var N=p[V].split("="),H=decodeURIComponent(N[0]);N.length>1?(N=decodeURIComponent(N[1]),N=/^[0-9]+$/g.exec(N)?parseInt(N,10):N):N=1;(H=C.T[H])&&H.V(N)}}}};var sU=null;var Lh=g.xH.performance,cfF=!!(Lh&&Lh.mark&&Lh.measure&&Lh.clearMarks),wT=SS(function(){var p;if(p=cfF){var C;if(sU===null){sU="";try{p="";try{p=g.xH.top.location.hash}catch(V){p=g.xH.location.hash}p&&(sU=(C=p.match(/\bdeid=([\d,]+)/))?C[1]:"")}catch(V){}}C=sU;p=!!C.indexOf&&C.indexOf("1337")>=0}return p}); $c.prototype.disable=function(){this.T=!1;this.events!=this.C.google_js_reporting_queue&&(wT()&&g.lr(this.events,aCL),this.events.length=0)}; $c.prototype.start=function(p,C){if(!this.T)return null;var V=hNY()||iJu();p=new sb1(p,C,V);C="goog_"+p.label+"_"+p.uniqueId+"_start";Lh&&wT()&&Lh.mark(C);return p}; $c.prototype.end=function(p){if(this.T&&typeof p.value==="number"){var C=hNY()||iJu();p.duration=C-p.value;C="goog_"+p.label+"_"+p.uniqueId+"_end";Lh&&wT()&&Lh.mark(C);!this.T||this.events.length>2048||this.events.push(p)}};E7u.prototype.KP=function(p,C,V,N,H){H=H||this.au;try{var X=new yA;X.T.push(1);X.C[1]=qk("context",p);C.error&&C.meta&&C.id||(C=new rT(Bs(C)));if(C.msg){var d=C.msg.substring(0,512);X.T.push(2);X.C[2]=qk("msg",d)}var a=C.meta||{};if(this.uh)try{this.uh(a)}catch(M){}if(N)try{N(a)}catch(M){}N=[a];X.T.push(3);X.C[3]=N;var E=RCa();if(E.C){var l=E.C.url||"";X.T.push(4);X.C[4]=qk("top",l)}var t={url:E.T.url||""};if(E.T.url){var c=E.T.url.match(wA);var T=eS(c[1],null,c[3],c[4])}else T="";l=[t,{url:T}];X.T.push(5); X.C[5]=l;XXe(this.T,H,X,V)}catch(M){try{XXe(this.T,H,{context:"ecmserr",rctx:p,msg:Bs(M),url:E&&E.T.url},V)}catch(J){}}return this.BN}; g.m(rT,d79);var Ws,QA,gT=new $c;Ws=new function(){var p="https:";S1&&S1.location&&S1.location.protocol==="http:"&&(p="http:");this.C=p;this.T=.01}; QA=new E7u;S1&&S1.document&&(S1.document.readyState=="complete"?tSH():gT.T&&De(S1,"load",function(){tSH()}));var MSX=Date.now(),Hf=-1,VT=-1,A$s,Xj=-1,NK=!1;g.h=d9.prototype;g.h.getHeight=function(){return this.bottom-this.top}; g.h.clone=function(){return new d9(this.top,this.right,this.bottom,this.left)}; g.h.contains=function(p){return this&&p?p instanceof d9?p.left>=this.left&&p.right<=this.right&&p.top>=this.top&&p.bottom<=this.bottom:p.x>=this.left&&p.x<=this.right&&p.y>=this.top&&p.y<=this.bottom:!1}; g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.h.scale=function(p,C){C=typeof C==="number"?C:p;this.left*=p;this.right*=p;this.top*=C;this.bottom*=C;return this};MK.prototype.sE=function(p,C){return!!p&&(!(C===void 0?0:C)||this.volume==p.volume)&&this.V==p.V&&cf(this.T,p.T)&&!0};Jx.prototype.V$=function(){return this.D}; Jx.prototype.sE=function(p,C){return this.S.sE(p.S,C===void 0?!1:C)&&this.D==p.D&&cf(this.V,p.V)&&cf(this.Y,p.Y)&&this.T==p.T&&this.W==p.W&&this.C==p.C&&this.J==p.J};var TYf={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},o1={hG:"start",cM:"firstquartile",m_:"midpoint",ew:"thirdquartile",COMPLETE:"complete",ERROR:"error",uY:"metric",PAUSE:"pause",W3:"resume",LX:"skip",RP:"viewable_impression",zd:"mute",pX:"unmute",Ml:"fullscreen",Fy:"exitfullscreen",KY:"bufferstart",UN:"bufferfinish",Zo:"fully_viewable_audible_half_duration_impression",ET:"measurable_impression",hO:"abandon",Xy:"engagedview",aS:"impression",JO:"creativeview",Sw:"loaded", rdV:"progress",CLOSE:"close",M5o:"collapse",XBY:"overlay_resize",F8a:"overlay_unmeasurable_impression",qv$:"overlay_unviewable_impression",MOo:"overlay_viewable_immediate_impression",cBo:"overlay_viewable_end_of_session_impression",QB:"custom_metric_viewable",PM:"audio_audible",YX:"audio_measurable",Rr:"audio_impression"},$_X="start firstquartile midpoint thirdquartile resume loaded".split(" "),Lns=["start","firstquartile","midpoint","thirdquartile"],kqX=["abandon"],j0={UNKNOWN:-1,hG:0,cM:1,m_:2, ew:3,COMPLETE:4,uY:5,PAUSE:6,W3:7,LX:8,RP:9,zd:10,pX:11,Ml:12,Fy:13,Zo:14,ET:15,hO:16,Xy:17,aS:18,JO:19,Sw:20,QB:21,KY:22,UN:23,Rr:27,YX:28,PM:29};var m7u={BIn:"addEventListener",cg$:"getMaxSize",MUo:"getScreenSize",Zxn:"getState",yXn:"getVersion",fMe:"removeEventListener",cX$:"isViewable"};g.h=g.vf.prototype;g.h.clone=function(){return new g.vf(this.left,this.top,this.width,this.height)}; g.h.contains=function(p){return p instanceof g.Fn?p.x>=this.left&&p.x<=this.left+this.width&&p.y>=this.top&&p.y<=this.top+this.height:this.left<=p.left&&this.left+this.width>=p.left+p.width&&this.top<=p.top&&this.top+this.height>=p.top+p.height}; g.h.getSize=function(){return new g.KG(this.width,this.height)}; g.h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.h.scale=function(p,C){C=typeof C==="number"?C:p;this.left*=p;this.width*=p;this.top*=C;this.height*=C;return this};var Koa={};ICe.prototype.update=function(p){p&&p.document&&(this.D=mG(!1,p,this.isMobileDevice),this.T=mG(!0,p,this.isMobileDevice),A8a(this,p),bJL(this,p))};eh.prototype.cancel=function(){zy().clearTimeout(this.T);this.T=null}; eh.prototype.schedule=function(){var p=this,C=zy(),V=e1().T.T;this.T=C.setTimeout(nh(V,p2(143,function(){p.C++;p.V.sample()})),J8L())};g.h=Pf.prototype;g.h.Kn=function(){return!1}; g.h.initialize=function(){return this.isInitialized=!0}; g.h.gH=function(){return this.T.Sa}; g.h.iP=function(){return this.T.a$}; g.h.Du=function(p,C){if(!this.a$||(C===void 0?0:C))this.a$=!0,this.Sa=p,this.J=0,this.T!=this||$o(this)}; g.h.getName=function(){return this.T.Ga}; g.h.bO=function(){return this.T.Bh()}; g.h.Bh=function(){return{}}; g.h.EK=function(){return this.T.J}; g.h.PH=function(){var p=zu();p.T=mG(!0,this.V,p.isMobileDevice)}; g.h.RU=function(){bJL(zu(),this.V)}; g.h.Ms=function(){return this.S.T}; g.h.sample=function(){}; g.h.isActive=function(){return this.T.Y}; g.h.Zk=function(p){var C=this.T;this.T=p.EK()>=this.J?p:this;C!==this.T?(this.Y=this.T.Y,$o(this)):this.Y!==this.T.Y&&(this.Y=this.T.Y,$o(this))}; g.h.zY=function(p){if(p.C===this.T){var C=!this.S.sE(p,this.Z);this.S=p;C&&x7Y(this)}}; g.h.WK=function(){return this.Z}; g.h.dispose=function(){this.Vn=!0}; g.h.fS=function(){return this.Vn};g.h=L2.prototype;g.h.observe=function(){return!0}; g.h.unobserve=function(){}; g.h.D4=function(p){this.W=p}; g.h.dispose=function(){if(!this.fS()){var p=this.C;g.rY(p.W,this);p.Z&&this.WK()&&kDs(p);this.unobserve();this.sY=!0}}; g.h.fS=function(){return this.sY}; g.h.bO=function(){return this.C.bO()}; g.h.EK=function(){return this.C.EK()}; g.h.gH=function(){return this.C.gH()}; g.h.iP=function(){return this.C.iP()}; g.h.Zk=function(){}; g.h.zY=function(){this.U_()}; g.h.WK=function(){return this.Vn};g.h=g9.prototype;g.h.EK=function(){return this.T.EK()}; g.h.gH=function(){return this.T.gH()}; g.h.iP=function(){return this.T.iP()}; g.h.create=function(p,C,V){var N=null;this.T&&(N=this.PX(p,C,V),w9(this.T,N));return N}; g.h.YL=function(){return this.lQ()}; g.h.lQ=function(){return!1}; g.h.init=function(p){return this.T.initialize()?(w9(this.T,this),this.S=p,!0):!1}; g.h.Zk=function(p){p.EK()==0&&this.S(p.gH(),this)}; g.h.zY=function(){}; g.h.WK=function(){return!1}; g.h.dispose=function(){this.W=!0}; g.h.fS=function(){return this.W}; g.h.bO=function(){return{}};Wf.prototype.add=function(p,C,V){++this.V;p=new zNV(p,C,V);this.T.push(new zNV(p.C,p.T,p.V+this.V/4096));this.C=!0;return this};wXX.prototype.toString=function(){var p="//pagead2.googlesyndication.com//pagead/gen_204",C=r9(this.T);C.length>0&&(p+="?"+C);return p};Bf.prototype.update=function(p,C,V){p&&(this.T+=C,this.C+=C,this.S+=C,this.V=Math.max(this.V,this.S));if(V===void 0?!p:V)this.S=0};var QbS=[1,.75,.5,.3,0];Gu.prototype.update=function(p,C,V,N,H,X){X=X===void 0?!0:X;C=H?Math.min(p,C):C;for(H=0;H<this.C.length;H++){var d=this.C[H],a=C>0&&C>=d;d=!(p>0&&p>=d)||V;this.T[H].update(X&&a,N,!X||d)}};Hp.prototype.update=function(p,C,V,N){this.D=this.D!=-1?Math.min(this.D,C.L7):C.L7;this.b_=Math.max(this.b_,C.L7);this.sY=this.sY!=-1?Math.min(this.sY,C.PB):C.PB;this.Sa=Math.max(this.Sa,C.PB);this.qo.update(C.PB,V.PB,C.T,p,N);this.vr+=p;C.L7===0&&(this.Ga+=p);this.C.update(C.L7,V.L7,C.T,p,N);V=N||V.Wj!=C.Wj?V.isVisible()&&C.isVisible():V.isVisible();C=!C.isVisible()||C.T;this.R$.update(V,p,C)}; Hp.prototype.Gv=function(){return this.R$.V>=this.Qn};if(R9&&R9.URL){var MyP=R9.URL,Jfp;if(Jfp=!!MyP){var mcY;a:{if(MyP){var v2F=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var aJ=v2F.exec(decodeURIComponent(MyP));if(aJ){mcY=aJ[1]&&aJ[1].length>1?aJ[1].substring(1):"true";break a}}catch(p){}}mcY=""}Jfp=mcY.length>0}QA.BN=!Jfp};var FrE=new d9(0,0,0,0);var NUa=new d9(0,0,0,0);g.m(a1,g.Y);g.h=a1.prototype; g.h.CS=function(){if(this.Mw.T){if(this.tI.MJ){var p=this.Mw.T;p.removeEventListener&&p.removeEventListener("mouseover",this.tI.MJ,Kh());this.tI.MJ=null}this.tI.cF&&(p=this.Mw.T,p.removeEventListener&&p.removeEventListener("mouseout",this.tI.cF,Kh()),this.tI.cF=null)}this.gf&&this.gf.dispose();this.HV&&this.HV.dispose();delete this.Wu;delete this.lm;delete this.cD;delete this.Mw.Os;delete this.Mw.T;delete this.tI;delete this.gf;delete this.HV;delete this.IN;g.Y.prototype.CS.call(this)}; g.h.rz=function(){return this.HV?this.HV.T:this.position}; g.h.pF=function(p){e1().pF(p)}; g.h.WK=function(){return!1}; g.h.sM=function(){return new Hp}; g.h.sf=function(){return this.Wu}; g.h.gT=function(p){return iN9(this,p,1E4)}; g.h.Pr=function(p,C,V,N,H,X,d){this.NE||(this.WO&&(p=this.Pq(p,V,H,d),N=N&&this.JU.L7>=(this.Wj()?.3:.5),this.mp(X,p,N),this.yP=C,p.L7>0&&-1===this.G8&&(this.G8=C),this.Yv==-1&&this.Gv()&&(this.Yv=C),this.tq==-2&&(this.tq=hT(this.rz())?p.L7:-1),this.JU=p),this.lm(this))}; g.h.mp=function(p,C,V){this.sf().update(p,C,this.JU,V)}; g.h.vG=function(){return new iZ}; g.h.Pq=function(p,C,V,N){V=this.vG();V.T=C;C=zy().C;C=uZ(R9)===0?-1:C.isVisible()?0:1;V.C=C;V.L7=this.TG(p);V.Wj=this.Wj();V.PB=N;return V}; g.h.TG=function(p){return this.opacity===0&&Ty(this.IN,"opac")===1?0:p}; g.h.Wj=function(){return!1}; g.h.Gx=function(){return this.Au||this.rF}; g.h.qQ=function(){jh()}; g.h.QT=function(){jh()}; g.h.Ke=function(){return 0}; g.h.Gv=function(){return this.Wu.Gv()}; g.h.TJ=function(){var p=this.WO;p=(this.hasCompleted||this.fS())&&!p;var C=e1().C!==2||this.TI$;return this.NE||C&&p?2:this.Gv()?4:3}; g.h.qT=function(){return 0};g.lf.prototype.next=function(){return g.EU}; g.EU={done:!0,value:void 0};g.lf.prototype.lT=function(){return this};g.m(tE9,iZ);var lS=TUa([void 0,1,2,3,4,8,16]),tJ=TUa([void 0,4,8,16]),S1E={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:MZ("p0",tJ),p1:MZ("p1",tJ),p2:MZ("p2",tJ),p3:MZ("p3",tJ),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:T2("mtos1",[0,2,4],!1,tJ),mtos2:T2("mtos2",[0,2,4],!1,tJ),mtos3:T2("mtos3",[0,2,4],!1,tJ),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:MZ("a0",tJ),a1:MZ("a1",tJ),a2:MZ("a2",tJ),a3:MZ("a3",tJ),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as", vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:MZ("c0",tJ),c1:MZ("c1",tJ),c2:MZ("c2",tJ),c3:MZ("c3",tJ),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:MZ("qmtos",lS),qnc:MZ("qnc",lS),qmv:MZ("qmv",lS),qnv:MZ("qnv",lS), raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:MZ("ss0",tJ),ss1:MZ("ss1",tJ),ss2:MZ("ss2",tJ),ss3:MZ("ss3",tJ),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},Krp=Object.assign({},S1E,{avid:vX("audio"),avas:"avas",vs:"vs"}),Dcv={atos:"atos",avt:T2("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(p,C){return function(V){return V[p]===void 0&&C!==void 0?C:V[p]}}("ss",0), t:"t"};FU.prototype.getValue=function(){return this.C}; FU.prototype.update=function(p,C){p>=32||(this.T&1<<p&&!C?this.C&=~(1<<p):this.T&1<<p||!C||(this.C|=1<<p),this.T|=1<<p)};g.m(Sr,Hp); Sr.prototype.update=function(p,C,V,N){if(!C.paused){Hp.prototype.update.call(this,p,C,V,N);var H=cp(C)&&cp(V),X=(N?Math.min(C.L7,V.L7):V.L7)>=.5;xo(C.volume)&&(this.S=this.S!=-1?Math.min(this.S,C.volume):C.volume,this.Y=Math.max(this.Y,C.volume));X&&(this.Vn+=p,this.Z+=H?p:0);this.T.update(C.L7,V.L7,C.T,p,N,H);this.V.update(!0,p);this.W.update(H,p);this.a$.update(V.fullscreen,p);this.X$.update(H&&!X,p);p=Math.floor(C.mediaTime/1E3);this.Wr.update(p,C.isVisible());this.KS.update(p,C.L7>=1);this.UY.update(p, cp(C))}};S$e.prototype.C=function(p){this.V||(this.T(p)?(p=bEj(this.Z,this.S,p),this.W|=p,p=p==0):p=!1,this.V=p)};g.m(DA,S$e);DA.prototype.T=function(){return!0}; DA.prototype.Y=function(){return!1}; DA.prototype.getId=function(){var p=this,C=oa(o1,function(V){return V==p.S}); return j0[C].toString()}; DA.prototype.toString=function(){var p="";this.Y()&&(p+="c");this.V&&(p+="s");this.W>0&&(p+=":"+this.W);return this.getId()+p};g.m(uf,DA);uf.prototype.C=function(p,C){C=C===void 0?null:C;C!=null&&this.D.push(C);DA.prototype.C.call(this,p)};g.m(ZA,K01);ZA.prototype.C=function(){return null}; ZA.prototype.V=function(){return[]};g.m(UH,L2);g.h=UH.prototype;g.h.YK=function(){if(this.element){var p=this.element,C=this.C.T.V;try{try{var V=OJH(p.getBoundingClientRect())}catch(l){V=new d9(0,0,0,0)}var N=V.right-V.left,H=V.bottom-V.top,X=ZJs(p,C),d=X.x,a=X.y;var E=new d9(Math.round(a),Math.round(d+N),Math.round(a+H),Math.round(d))}catch(l){E=FrE.clone()}this.V=E;this.T=Y8H(this,this.V)}}; g.h.Vb=function(){this.Y=this.C.S.T}; g.h.ZX=function(p){var C=Ty(this.IN,"od")==1;return VEH(p,this.Y,this.element,C)}; g.h.SV=function(){this.timestamp=jh()}; g.h.U_=function(){this.SV();this.YK();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var p=this.element;var C=new g.KG(p.videoWidth,p.videoHeight);p=this.T;var V=tx(p),N=p.getHeight(),H=C.width;C=C.height;H<=0||C<=0||V<=0||N<=0||(H/=C,C=V/N,p=p.clone(),H>C?(V/=H,N=(N-V)/2,N>0&&(N=p.top+N,p.top=Math.round(N),p.bottom=Math.round(N+V))):(N*=H,V=Math.round((V-N)/2),V>0&&(V=p.left+V,p.left=Math.round(V),p.right=Math.round(V+N))));this.T=p}this.Vb(); p=this.T;V=this.Y;p=p.left<=V.right&&V.left<=p.right&&p.top<=V.bottom&&V.top<=p.bottom?new d9(Math.max(p.top,V.top),Math.min(p.right,V.right),Math.min(p.bottom,V.bottom),Math.max(p.left,V.left)):new d9(0,0,0,0);V=p.top>=p.bottom||p.left>=p.right?new d9(0,0,0,0):p;p=this.C.S;C=H=N=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.ZX(V))V=new d9(0,0,0,0);else{N=zu().S;C=new d9(0,N.height,N.width,0);var X;N=sH(V,(X=this.W)!=null?X:this.T);H=sH(V,zu().T);C=sH(V,C)}X=V.top>=V.bottom|| V.left>=V.right?new d9(0,0,0,0):Tu(V,-this.T.left,-this.T.top);n2()||(H=N=0);this.Z=new Jx(p,this.element,this.T,X,N,H,this.timestamp,C)}; g.h.getName=function(){return this.C.getName()};var uGp=new d9(0,0,0,0);g.m(fo,UH);g.h=fo.prototype;g.h.observe=function(){this.S();return!0}; g.h.zY=function(){UH.prototype.U_.call(this)}; g.h.SV=function(){}; g.h.YK=function(){}; g.h.U_=function(){this.S();UH.prototype.U_.call(this)}; g.h.Zk=function(p){p=p.isActive();p!==this.J&&(p?this.S():(zu().T=new d9(0,0,0,0),this.T=new d9(0,0,0,0),this.Y=new d9(0,0,0,0),this.timestamp=-1));this.J=p};var cD={},bNa=(cD.firstquartile=0,cD.midpoint=1,cD.thirdquartile=2,cD.complete=3,cD);g.m(yF,a1);g.h=yF.prototype;g.h.WK=function(){return!0}; g.h.Hp=function(){return this.m8==2}; g.h.gT=function(p){return iN9(this,p,Math.max(1E4,this.V/3))}; g.h.Pr=function(p,C,V,N,H,X,d){var a=this,E=this.D(this)||{};g.nG(E,H);this.V=E.duration||this.V;this.Z=E.isVpaid||this.Z;this.Ga=E.isYouTube||this.Ga;zy();this.qo=!1;H=urL(this,C);DjH(this)===1&&(X=H);a1.prototype.Pr.call(this,p,C,V,N,E,X,d);this.PS&&this.PS.V&&g.lr(this.Y,function(l){l.C(a)})}; g.h.mp=function(p,C,V){a1.prototype.mp.call(this,p,C,V);bf(this).update(p,C,this.JU,V);this.Qn=cp(this.JU)&&cp(C);this.Sa==-1&&this.KS&&(this.Sa=this.sf().V.T);this.DZ.V=0;p=this.Gv();C.isVisible()&&vp(this.DZ,"vs");p&&vp(this.DZ,"vw");xo(C.volume)&&vp(this.DZ,"am");cp(C)?vp(this.DZ,"a"):vp(this.DZ,"mut");this.IC&&vp(this.DZ,"f");C.C!=-1&&(vp(this.DZ,"bm"),C.C==1&&(vp(this.DZ,"b"),cp(C)&&vp(this.DZ,"umutb")));cp(C)&&C.isVisible()&&vp(this.DZ,"avs");this.Qn&&p&&vp(this.DZ,"avw");C.L7>0&&vp(this.DZ, "pv");AT(this,this.sf().V.T,!0)&&vp(this.DZ,"gdr");VF(this.sf().C,1)>=2E3&&vp(this.DZ,"pmx");this.qo&&vp(this.DZ,"tvoff")}; g.h.sM=function(){return new Sr}; g.h.sf=function(){return this.Wu}; g.h.vG=function(){return new tE9}; g.h.Pq=function(p,C,V,N){p=a1.prototype.Pq.call(this,p,C,V,N===void 0?-1:N);p.fullscreen=this.IC;p.paused=this.Hp();p.volume=V.volume;xo(p.volume)||(this.Wc++,C=this.JU,xo(C.volume)&&(p.volume=C.volume));V=V.currentTime;p.mediaTime=V!==void 0&&V>=0?V:-1;return p}; g.h.TG=function(p){return zu(),this.IC?1:a1.prototype.TG.call(this,p)}; g.h.Ke=function(){return 1}; g.h.getDuration=function(){return this.V}; g.h.TJ=function(){return this.NE?2:UjS(this)?5:this.Gv()?4:3}; g.h.qT=function(){return this.X$?this.sf().W.V>=2E3?4:3:2}; g.h.D4=function(p){this.HV&&this.HV.D4(p)};var Z01=g.QL();wiH.prototype.reset=function(){this.T=[];this.C=[]}; var R1=xc(wiH);g.m(Pp,g9);g.h=Pp.prototype;g.h.getName=function(){return(this.C?this.C:this.T).getName()}; g.h.bO=function(){return(this.C?this.C:this.T).bO()}; g.h.EK=function(){return(this.C?this.C:this.T).EK()}; g.h.init=function(p){var C=!1;(0,g.lr)(this.V,function(V){V.initialize()&&(C=!0)}); C&&(this.S=p,w9(this.T,this));return C}; g.h.dispose=function(){(0,g.lr)(this.V,function(p){p.dispose()}); g9.prototype.dispose.call(this)}; g.h.YL=function(){return Yo(this.V,function(p){return p.Kn()})}; g.h.lQ=function(){return Yo(this.V,function(p){return p.Kn()})}; g.h.PX=function(p,C,V){return new UH(p,this.T,C,V)}; g.h.zY=function(p){this.C=p.C};var p2L={threshold:[0,.3,.5,.75,1]};g.m(wx,UH);g.h=wx.prototype;g.h.observe=function(){var p=this;this.b_||(this.b_=jh());if(TAj(298,function(){return CpX(p)}))return!0; this.C.Du("msf");return!1}; g.h.unobserve=function(){if(this.S&&this.element)try{this.S.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.D&&(this.D.disconnect(),this.D=null)}catch(p){}}; g.h.U_=function(){var p=$C(this);p.length>0&&Lo(this,p);UH.prototype.U_.call(this)}; g.h.YK=function(){}; g.h.ZX=function(){return!1}; g.h.Vb=function(){}; g.h.bO=function(){var p={};return Object.assign(this.C.bO(),(p.niot_obs=this.b_,p.niot_cbk=this.a$,p))}; g.h.getName=function(){return"nio"};g.m(gx,g9);gx.prototype.getName=function(){return"nio"}; gx.prototype.lQ=function(){return!zu().C&&this.T.T.V.IntersectionObserver!=null}; gx.prototype.PX=function(p,C,V){return new wx(p,this.T,C,V)};g.m(Wp,Pf);Wp.prototype.Ms=function(){return zu().T}; Wp.prototype.Kn=function(){var p=VZQ();this.J!==p&&(this.T!=this&&p>this.T.J&&(this.T=this,$o(this)),this.J=p);return p==2};QF.prototype.sample=function(){G2(this,no(),!1)}; QF.prototype.S=function(){var p=n2(),C=jh();p?(NK||(Hf=C,g.lr(R1.T,function(V){var N=V.sf();N.Y_=Ko(N,C,V.m8!=1)})),NK=!0):(this.D=iEu(this,C),NK=!1,A$s=C,g.lr(R1.T,function(V){V.WO&&(V.sf().J=C)})); G2(this,no(),!p)}; var rx=xc(QF);var ssu=null,S0="",Fl=!1;var lqY=E3Y().GR,CX=E3Y().h8;var ThQ={Qxn:"visible",Lf_:"audible",AW$:"time",xOk:"timetype"},MZj={visible:function(p){return/^(100|[0-9]{1,2})$/.test(p)}, audible:function(p){return p=="0"||p=="1"}, timetype:function(p){return p=="mtos"||p=="tos"}, time:function(p){return/^(100|[0-9]{1,2})%$/.test(p)||/^([0-9])+ms$/.test(p)}}; cE1.prototype.setTime=function(p,C,V){C=="ms"?(this.V=p,this.S=-1):(this.V=-1,this.S=p);this.W=V===void 0?"tos":V;return this};g.m(Ho,DA);Ho.prototype.getId=function(){return this.D}; Ho.prototype.Y=function(){return!0}; Ho.prototype.T=function(p){var C=p.sf(),V=p.getDuration();return Yo(this.J,function(N){if(N.T!=void 0)var H=m_Q(N,C);else b:{switch(N.W){case "mtos":H=N.C?C.W.V:C.V.T;break b;case "tos":H=N.C?C.W.T:C.V.T;break b}H=0}H==0?N=!1:(N=N.V!=-1?N.V:V!==void 0&&V>0?N.S*V:-1,N=N!=-1&&H>=N);return N})};g.m(Xl,J$a);Xl.prototype.T=function(p){var C=new MES;C.T=mO(p,S1E);C.C=mO(p,Dcv);return C};g.m(dE,DA);dE.prototype.T=function(p){return UjS(p)};g.m(iu,K01);g.m(hC,DA);hC.prototype.T=function(p){return p.sf().Gv()};g.m(sM,uf);sM.prototype.T=function(p){var C=g.W5(this.D,Ty(e1().IN,"ovms"));return!p.NE&&(p.m8!=0||C)};g.m(aq,iu);aq.prototype.C=function(){return new sM(this.T)}; aq.prototype.V=function(){return[new hC("viewable_impression",this.T),new dE(this.T)]};g.m(EM,fo);EM.prototype.S=function(){var p=g.zV("ima.admob.getViewability"),C=Ty(this.IN,"queryid");typeof p==="function"&&C&&p(C)}; EM.prototype.getName=function(){return"gsv"};g.m(lu,g9);lu.prototype.getName=function(){return"gsv"}; lu.prototype.lQ=function(){var p=zu();e1();return p.C&&!1}; lu.prototype.PX=function(p,C,V){return new EM(this.T,C,V)};g.m(tC,fo);tC.prototype.S=function(){var p=this,C=g.zV("ima.bridge.getNativeViewability"),V=Ty(this.IN,"queryid");typeof C==="function"&&V&&C(V,function(N){g.k5(N)&&p.D++;var H=N.opt_nativeViewVisibleBounds||{},X=N.opt_nativeViewHidden;p.T=y8S(N.opt_nativeViewBounds||{});var d=p.C.S;d.T=X?uGp.clone():y8S(H);p.timestamp=N.opt_nativeTime||-1;zu().T=d.T;N=N.opt_nativeVolume;N!==void 0&&(d.volume=N)})}; tC.prototype.getName=function(){return"nis"};g.m(co,g9);co.prototype.getName=function(){return"nis"}; co.prototype.lQ=function(){var p=zu();e1();return p.C&&!1}; co.prototype.PX=function(p,C,V){return new tC(this.T,C,V)};g.m(To,Pf);g.h=To.prototype;g.h.Kn=function(){return this.C.Dm!=null}; g.h.Bh=function(){var p={};this.Wr&&(p.mraid=this.Wr);this.sY&&(p.mlc=1);p.mtop=this.C.hsY;this.D&&(p.mse=this.D);this.vr&&(p.msc=1);p.mcp=this.C.compatibility;return p}; g.h.Et=function(p){var C=g.US.apply(1,arguments);try{return this.C.Dm[p].apply(this.C.Dm,C)}catch(V){C2(538,V,.01,function(N){N.method=p})}}; g.h.initialize=function(){var p=this;if(this.isInitialized)return!this.iP();this.isInitialized=!0;if(this.C.compatibility===2)return this.D="ng",this.Du("w"),!1;if(this.C.compatibility===1)return this.D="mm",this.Du("w"),!1;zu().J=!0;this.V.document.readyState&&this.V.document.readyState=="complete"?KnY(this):dx(this.V,"load",function(){zy().setTimeout(p2(292,function(){return KnY(p)}),100)},292); return!0}; g.h.PH=function(){var p=zu(),C=fqS(this,"getMaxSize");p.T=new d9(0,C.width,C.height,0)}; g.h.RU=function(){zu().S=fqS(this,"getScreenSize")}; g.h.dispose=function(){ufX(this);Pf.prototype.dispose.call(this)};var pX1=new function(p,C){this.key=p;this.defaultValue=C===void 0?!1:C;this.valueType="boolean"}("45378663");g.h=JC.prototype;g.h.HJ=function(p){EH(p,!1);W0j(p)}; g.h.zV=function(){}; g.h.k7=function(p,C,V,N){var H=this;p=new yF(S1,p,V?C:-1,7,this.Vq(),this.DW());p.Jg=N;Soy(p.IN);cs(p.IN,"queryid",p.Jg);p.pF("");atY(p,function(){return H.I4.apply(H,g.K(g.US.apply(0,arguments)))},function(){return H.Yk.apply(H,g.K(g.US.apply(0,arguments)))}); (N=xc(er).T)&&dj1(p,N);this.V&&(p.D4(this.V),this.V=null);p.Mw.Os&&xc(Nhj);return p}; g.h.Zk=function(p){switch(p.EK()){case 0:if(p=xc(er).T)p=p.T,g.rY(p.W,this),p.Z&&this.WK()&&kDs(p);vo();break;case 2:Bp()}}; g.h.zY=function(){}; g.h.WK=function(){return!1}; g.h.Yk=function(p,C){p.NE=!0;switch(p.Ke()){case 1:AEs(p,C);break;case 2:this.KF(p)}}; g.h.wU=function(p){var C=p.D(p);C&&(C=C.volume,p.X$=xo(C)&&C>0);y$L(p,0);return kC(p,"start",n2())}; g.h.bQ=function(p,C,V){G2(rx,[p],!n2());return this.ly(p,C,V)}; g.h.ly=function(p,C,V){return kC(p,V,n2())}; g.h.K_=function(p){return Iq(p,"firstquartile",1)}; g.h.Og=function(p){p.KS=!0;return Iq(p,"midpoint",2)}; g.h.oT=function(p){return Iq(p,"thirdquartile",3)}; g.h.DA=function(p){var C=Iq(p,"complete",4);qZ(p);return C}; g.h.Bk=function(p){p.m8=3;return kC(p,"error",n2())}; g.h.H0=function(p,C,V){C=n2();if(p.Hp()&&!C){var N=p.sf(),H=jh();N.J=H}G2(rx,[p],!C);p.Hp()&&(p.m8=1);return kC(p,V,C)}; g.h.QN=function(p,C){C=this.bQ(p,C||{},"skip");qZ(p);return C}; g.h.gU=function(p,C){EH(p,!0);return this.bQ(p,C||{},"fullscreen")}; g.h.Ug=function(p,C){EH(p,!1);return this.bQ(p,C||{},"exitfullscreen")}; g.h.ud=function(p,C,V){C=p.sf();var N=jh();C.Y_=Ko(C,N,p.m8!=1);G2(rx,[p],!n2());p.m8==1&&(p.m8=2);return kC(p,V,n2())}; g.h.Jt=function(p){G2(rx,[p],!n2());return p.C()}; g.h.wl=function(p){G2(rx,[p],!n2());this.fB(p);qZ(p);return p.C()}; g.h.I4=function(){}; g.h.KF=function(){}; g.h.fB=function(){}; g.h.D2=function(){}; g.h.S2=function(){}; g.h.DW=function(){this.T||(this.T=this.S2());return this.T==null?new ZA:new aq(this.T)}; g.h.Vq=function(){return new Xl};g.m(bu,DA);bu.prototype.T=function(p){return p.qT()==4};g.m(AC,uf);AC.prototype.T=function(p){p=p.qT();return p==3||p==4};g.m(oq,iu);oq.prototype.C=function(){return new AC(this.T)}; oq.prototype.V=function(){return[new bu(this.T)]};g.m(kI,J$a);kI.prototype.T=function(p){p&&(p.e===28&&(p=Object.assign({},p,{avas:3})),p.vs===4||p.vs===5)&&(p=Object.assign({},p,{vs:3}));var C=new MES;C.T=mO(p,Krp);C.C=mO(p,Dcv);return C};YVy.prototype.C=function(){return g.zV(this.T)};g.m(xI,JC);g.h=xI.prototype;g.h.zV=function(p,C){var V=this,N=xc(er);if(N.T!=null)switch(N.T.getName()){case "nis":var H=epv(this,p,C);break;case "gsv":H=n3H(this,p,C);break;case "exc":H=Ppj(this,p)}H||(C.opt_overlayAdElement?H=void 0:C.opt_adElement&&(H=kiS(this,p,C.opt_adElement,C.opt_osdId)));H&&H.Ke()==1&&(H.D==g.Fu&&(H.D=function(X){return V.D2(X)}),Rpa(this,H,C)); return H}; g.h.D2=function(p){p.C=0;p.Vn=0;if(p.S=="h"||p.S=="n"){e1();p.UY&&(e1(),DK(this)!="h"&&DK(this));var C=g.zV("ima.common.getVideoMetadata");if(typeof C==="function")try{var V=C(p.Jg)}catch(H){p.C|=4}else p.C|=2}else if(p.S=="b")if(C=g.zV("ytads.bulleit.getVideoMetadata"),typeof C==="function")try{V=C(p.Jg)}catch(H){p.C|=4}else p.C|=2;else if(p.S=="ml")if(C=g.zV("ima.common.getVideoMetadata"),typeof C==="function")try{V=C(p.Jg)}catch(H){p.C|=4}else p.C|=2;else p.C|=1;p.C||(V===void 0?p.C|=8:V===null? p.C|=16:g.k5(V)?p.C|=32:V.errorCode!=null&&(p.Vn=V.errorCode,p.C|=64));V==null&&(V={});C=V;p.J=0;for(var N in TYf)C[N]==null&&(p.J|=TYf[N]);x_u(C,"currentTime");x_u(C,"duration");xo(V.volume)&&xo()&&(V.volume*=NaN);return V}; g.h.S2=function(){e1();DK(this)!="h"&&DK(this);var p=w2H(this);return p!=null?new YVy(p):null}; g.h.KF=function(p){!p.T&&p.NE&&uu(this,p,"overlay_unmeasurable_impression")&&(p.T=!0)}; g.h.fB=function(p){p.bR&&(p.Gv()?uu(this,p,"overlay_viewable_end_of_session_impression"):uu(this,p,"overlay_unviewable_impression"),p.bR=!1)}; g.h.I4=function(){}; g.h.k7=function(p,C,V,N){if(Cms()){var H=Ty(e1().IN,"mm"),X={};(H=(X[Ps.pY]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",X[Ps.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",X)[H])&&WnS(this,H);this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&C2(1044,Error())}p=JC.prototype.k7.call(this,p,C,V,N);this.W&&(C=this.Y,p.W==null&&(p.W=new EN9),C.T[p.Jg]=p.W,p.W.W=Z01);return p}; g.h.HJ=function(p){p&&p.Ke()==1&&this.W&&delete this.Y.T[p.Jg];return JC.prototype.HJ.call(this,p)}; g.h.DW=function(){this.T||(this.T=this.S2());return this.T==null?new ZA:this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new oq(this.T):new aq(this.T)}; g.h.Vq=function(){return this.S==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new kI:new Xl}; g.h.D4=function(p,C,V,N,H){C=new d9(V,C+N,V+H,C);(p=z2(R1,p))?p.D4(C):this.V=C}; var Ucf=Gy(193,rEy,void 0,o3V);g.YH("Goog_AdSense_Lidar_sendVastEvent",Ucf);var fvf=p2(194,function(p,C){C=C===void 0?{}:C;p=g3a(xc(xI),p,C);return Qsy(p)}); g.YH("Goog_AdSense_Lidar_getViewability",fvf);var O0f=Gy(195,function(){return WSu()}); g.YH("Goog_AdSense_Lidar_getUrlSignalsArray",O0f);var yf0=p2(196,function(){return JSON.stringify(WSu())}); g.YH("Goog_AdSense_Lidar_getUrlSignalsList",yf0);var ps1=dsL(["//tpc.googlesyndication.com/sodar/",""]);g.m(Rq,g.Y);Rq.prototype.gq=function(){return this.wpc.f()}; Rq.prototype.Iw=function(p){this.wpc.c(p)}; Rq.prototype.DJ=function(p){return this.wpc.m(NTY(p))}; Rq.prototype.BS=function(p){return this.wpc.mws(NTY(p))}; g.m(YI,g.Y);YI.prototype.snapshot=function(p){return this.w7.s(Object.assign({},p.P$&&{c:p.P$},p.D9&&{s:p.D9},p.Uk!==void 0&&{p:p.Uk}))}; YI.prototype.G5=function(p){this.w7.e(p)}; YI.prototype.Wd=function(){return this.w7.l()};var Vry=(new Date).getTime();var dkY="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),ihu=/\bocr\b/;var soV=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var ZhY=0,uLH=0,Uk1=0;var e0=null,Po=!1,vcy=1,LX=Symbol("SIGNAL"),gE={version:0,lIa:0,d2:!1,F4:void 0,Qw:void 0,mF:void 0,KG:0,uf:void 0,Kg:void 0,bH:!1,pE:!1,kind:"unknown",zbV:function(){return!1}, i7$:function(){}, Pl:function(){}, dXn:function(){}};var q1y=Symbol("UNSET"),IvG=Symbol("COMPUTING"),b0P=Symbol("ERRORED");Object.assign({},gE,{value:q1y,d2:!0,error:null,po:aee,kind:"computed",zbV:function(p){return p.value===q1y||p.value===IvG}, i7$:function(p){if(p.value===IvG)throw Error("Detected cycle in computations.");var C=p.value;p.value=IvG;p&&(p.KG=0);var V=EcX(p);try{var N=p.wpe()}catch(H){N=b0P,p.error=H}finally{if(EcX(V),p&&p.F4!==void 0&&p.mF!==void 0&&p.Qw!==void 0){if($I(p))for(V=p.KG;V<p.F4.length;V++)wE(p.F4[V],p.mF[V]);for(;p.F4.length>p.KG;)p.F4.pop(),p.Qw.pop(),p.mF.pop()}}C!==q1y&&C!==b0P&&N!==b0P&&p.po(C,N)?p.value=C:(p.value=N,p.version++)}});var JUX=Object.assign({},gE,{po:aee,value:void 0,kind:"signal"});Object.assign({},gE,{pE:!0,bH:!1,Pl:function(p){p.schedule!==null&&p.schedule(p.EEr)}, LFo:!1,gzn:function(){}});Sha(!0);Sha(!1);var Kg9=Object.assign({},{attributes:{},handleError:function(p){throw p;}},{M1a:!0, Zka:!0,Xw:!1,KFV:!1,DX_:!1,j9$:!1});var feV=Symbol("updater");g.m(Qr,g.h8);Qr.prototype.dispose=function(){window.removeEventListener("offline",this.V);window.removeEventListener("online",this.V);this.Pp.X5(this.W);delete Qr.instance}; Qr.prototype.nO=function(){return this.T}; Qr.prototype.f7=function(){var p=this;this.W=this.Pp.Lx(function(){var C;return g.I(function(V){if(V.C==1)return p.T?((C=window.navigator)==null?0:C.onLine)?V.EY(3):g.y(V,Wo(p),3):g.y(V,Wo(p),3);p.f7();g.JQ(V)})},3E4)};Bo.prototype.set=function(p,C){C=C===void 0?!0:C;0<=p&&p<52&&Number.isInteger(p)&&this.data[p]!==C&&(this.data[p]=C,this.T=-1)}; Bo.prototype.get=function(p){return!!this.data[p]};var pg;g.r1(g.V2,g.Y);g.h=g.V2.prototype;g.h.start=function(){this.stop();this.S=!1;var p=IeS(this),C=bhj(this);p&&!C&&this.C.mozRequestAnimationFrame?(this.T=g.jS(this.C,"MozBeforePaint",this.V),this.C.mozRequestAnimationFrame(null),this.S=!0):this.T=p&&C?p.call(this.C,this.V):this.C.setTimeout(rPe(this.V),20)}; g.h.stop=function(){if(this.isActive()){var p=IeS(this),C=bhj(this);p&&!C&&this.C.mozRequestAnimationFrame?Xu(this.T):p&&C?C.call(this.C,this.T):this.C.clearTimeout(this.T)}this.T=null}; g.h.isActive=function(){return this.T!=null}; g.h.Ab=function(){this.S&&this.T&&Xu(this.T);this.T=null;this.Y.call(this.W,g.QL())}; g.h.CS=function(){this.stop();g.V2.oI.CS.call(this)};g.r1(g.N8,g.Y);g.h=g.N8.prototype;g.h.Oo=0;g.h.CS=function(){g.N8.oI.CS.call(this);this.stop();delete this.T;delete this.C}; g.h.start=function(p){this.stop();this.Oo=g.bm(this.V,p!==void 0?p:this.Kx)}; g.h.stop=function(){this.isActive()&&g.xH.clearTimeout(this.Oo);this.Oo=0}; g.h.isActive=function(){return this.Oo!=0}; g.h.BH=function(){this.Oo=0;this.T&&this.T.call(this.C)};g.iI.prototype[Symbol.iterator]=function(){return this}; g.iI.prototype.next=function(){var p=this.T.next();return{value:p.done?void 0:this.C.call(void 0,p.value),done:p.done}};g.r1(g.M8,g.h8);g.h=g.M8.prototype;g.h.isPlaying=function(){return this.T==1}; g.h.isPaused=function(){return this.T==-1}; g.h.dw=function(){this.nk("begin")}; g.h.g9=function(){this.nk("end")}; g.h.onFinish=function(){this.nk("finish")}; g.h.onStop=function(){this.nk("stop")}; g.h.nk=function(p){this.dispatchEvent(p)};var Afr=SS(function(){var p=g.iK("DIV"),C=g.Nq?"-webkit":Do?"-moz":null,V="transition:opacity 1s linear;";C&&(V+=C+"-transition:opacity 1s linear;");C=Hya({style:V});if(p.nodeType===1&&/^(script|style)$/i.test(p.tagName))throw Error("");p.innerHTML=LH(C);return g.u4(p.firstChild,"transition")!=""});g.r1(Jk,g.M8);g.h=Jk.prototype;g.h.play=function(){if(this.isPlaying())return!1;this.dw();this.nk("play");this.startTime=g.QL();this.T=1;if(Afr())return g.K2(this.C,this.Y),this.V=g.bm(this.kNn,void 0,this),!0;this.DT(!1);return!1}; g.h.kNn=function(){g.Ax(this.C);kya(this.C,this.D);g.K2(this.C,this.S);this.V=g.bm((0,g.LY)(this.DT,this,!1),this.W*1E3)}; g.h.stop=function(){this.isPlaying()&&this.DT(!0)}; g.h.DT=function(p){g.K2(this.C,"transition","");g.xH.clearTimeout(this.V);g.K2(this.C,this.S);this.endTime=g.QL();this.T=0;if(p)this.onStop();else this.onFinish();this.g9()}; g.h.CS=function(){this.stop();Jk.oI.CS.call(this)}; g.h.pause=function(){};var Yhs={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};ml("Element","attributes")||ml("Node","attributes");ml("Element","innerHTML")||ml("HTMLElement","innerHTML");ml("Node","nodeName");ml("Node","nodeType");ml("Node","parentNode");ml("Node","childNodes");ml("HTMLElement","style")||ml("Element","style");ml("HTMLStyleElement","sheet");var wsQ=RuY("getPropertyValue"),$kV=RuY("setProperty");ml("Element","namespaceURI")||ml("Node","namespaceURI");var PZe={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var QoX,GgX,WgH,gcY,rU9;QoX=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");GgX=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.o28=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); g.FV=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");WgH=/^http:\/\/.*/;g.kpc=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");gcY=/\s+/;rU9=/[\d\u06f0-\u06f9]/;Kg.prototype.lT=function(){return new DJ(this.C())}; Kg.prototype[Symbol.iterator]=function(){return new uI(this.C())}; Kg.prototype.T=function(){return new uI(this.C())}; g.m(DJ,g.lf);DJ.prototype.next=function(){return this.C.next()}; DJ.prototype[Symbol.iterator]=function(){return new uI(this.C)}; DJ.prototype.T=function(){return new uI(this.C)}; g.m(uI,Kg);uI.prototype.next=function(){return this.V.next()};Ud.prototype.clone=function(){return new Ud(this.T,this.D,this.V,this.W,this.S,this.Y,this.C,this.J)}; Ud.prototype.sE=function(p){return this.T==p.T&&this.D==p.D&&this.V==p.V&&this.W==p.W&&this.S==p.S&&this.Y==p.Y&&this.C==p.C&&this.J==p.J};Od.prototype.clone=function(){return new Od(this.start,this.end)}; Od.prototype.getLength=function(){return this.end-this.start};(function(){if(h$y){var p=/Windows NT ([0-9.]+)/;return(p=p.exec(g.f0()))?p[1]:"0"}return PI?(p=/1[0|1][_.][0-9_.]+/,(p=p.exec(g.f0()))?p[0].replace(/_/g,"."):"10"):g.N5?(p=/Android\s+([^\);]+)(\)|;)/,(p=p.exec(g.f0()))?p[1]:""):suF||ajE||EHG?(p=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(p=p.exec(g.f0()))?p[1].replace(/_/g,"."):""):""})();var GyY=function(){if(g.k$)return y2(/Firefox\/([0-9.]+)/);if(g.vF||g.G4||g.Fs)return hEy;if(g.kZ){if(ey()||P5()){var p=y2(/CriOS\/([0-9.]+)/);if(p)return p}return y2(/Chrome\/([0-9.]+)/)}if(g.D1&&!ey())return y2(/Version\/([0-9.]+)/);if(CK||jz){if(p=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.f0()))return p[1]+"."+p[2]}else if(g.SH)return(p=y2(/Android\s+([0-9.]+)/))?p:y2(/Version\/([0-9.]+)/);return""}();g.r1(g.IL,g.Y);g.h=g.IL.prototype;g.h.subscribe=function(p,C,V){var N=this.C[p];N||(N=this.C[p]=[]);var H=this.Y;this.T[H]=p;this.T[H+1]=C;this.T[H+2]=V;this.Y=H+3;N.push(H);return H}; g.h.unsubscribe=function(p,C,V){if(p=this.C[p]){var N=this.T;if(p=p.find(function(H){return N[H+1]==C&&N[H+2]==V}))return this.zW(p)}return!1}; g.h.zW=function(p){var C=this.T[p];if(C){var V=this.C[C];this.S!=0?(this.V.push(p),this.T[p+1]=function(){}):(V&&g.rY(V,p),delete this.T[p],delete this.T[p+1],delete this.T[p+2])}return!!C}; g.h.publish=function(p,C){var V=this.C[p];if(V){var N=Array(arguments.length-1),H=arguments.length,X;for(X=1;X<H;X++)N[X-1]=arguments[X];if(this.D)for(X=0;X<V.length;X++)H=V[X],pfu(this.T[H+1],this.T[H+2],N);else{this.S++;try{for(X=0,H=V.length;X<H&&!this.fS();X++){var d=V[X];this.T[d+1].apply(this.T[d+2],N)}}finally{if(this.S--,this.V.length>0&&this.S==0)for(;V=this.V.pop();)this.zW(V)}}return X!=0}return!1}; g.h.clear=function(p){if(p){var C=this.C[p];C&&(C.forEach(this.zW,this),delete this.C[p])}else this.T.length=0,this.C={}}; g.h.CS=function(){g.IL.oI.CS.call(this);this.clear();this.V.length=0};g.bI.prototype.set=function(p,C){C===void 0?this.T.remove(p):this.T.set(p,g.zD(C))}; g.bI.prototype.get=function(p){try{var C=this.T.get(p)}catch(V){return}if(C!==null)try{return JSON.parse(C)}catch(V){throw"Storage: Invalid value was encountered";}}; g.bI.prototype.remove=function(p){this.T.remove(p)};g.r1(Ak,g.bI);Ak.prototype.set=function(p,C){Ak.oI.set.call(this,p,j9u(C))}; Ak.prototype.C=function(p){p=Ak.oI.get.call(this,p);if(p===void 0||p instanceof Object)return p;throw"Storage: Invalid value was encountered";}; Ak.prototype.get=function(p){if(p=this.C(p)){if(p=p.data,p===void 0)throw"Storage: Invalid value was encountered";}else p=void 0;return p};g.r1(oL,Ak);oL.prototype.set=function(p,C,V){if(C=j9u(C)){if(V){if(V<g.QL()){oL.prototype.remove.call(this,p);return}C.expiration=V}C.creation=g.QL()}oL.oI.set.call(this,p,C)}; oL.prototype.C=function(p,C){var V=oL.oI.C.call(this,p);if(V)if(!C&&g.Vha(V))oL.prototype.remove.call(this,p);else return V};g.r1(g.kF,oL);g.r1(xF,N9u);xF.prototype[Symbol.iterator]=function(){return g.ZJ(this.lT(!0)).T()}; xF.prototype.clear=function(){var p=Array.from(this);p=g.F(p);for(var C=p.next();!C.done;C=p.next())this.remove(C.value)};g.r1(YF,xF);g.h=YF.prototype;g.h.isAvailable=function(){var p=this.T;if(p)try{p.setItem("__sak","1");p.removeItem("__sak");var C=!0}catch(V){C=V instanceof DOMException&&(V.name==="QuotaExceededError"||V.code===22||V.code===1014||V.name==="NS_ERROR_DOM_QUOTA_REACHED")&&p&&p.length!==0}else C=!1;return this.C=C}; g.h.set=function(p,C){zz(this);try{this.T.setItem(p,C)}catch(V){if(this.T.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; g.h.get=function(p){zz(this);p=this.T.getItem(p);if(typeof p!=="string"&&p!==null)throw"Storage mechanism: Invalid value was encountered";return p}; g.h.remove=function(p){zz(this);this.T.removeItem(p)}; g.h.lT=function(p){zz(this);var C=0,V=this.T,N=new g.lf;N.next=function(){if(C>=V.length)return g.EU;var H=V.key(C++);if(p)return g.tT(H);H=V.getItem(H);if(typeof H!=="string")throw"Storage mechanism: Invalid value was encountered";return g.tT(H)}; return N}; g.h.clear=function(){zz(this);this.T.clear()}; g.h.key=function(p){zz(this);return this.T.key(p)};g.r1(RL,YF);g.r1(H21,YF);g.r1(ng,xF);ng.prototype.set=function(p,C){this.C.set(this.T+p,C)}; ng.prototype.get=function(p){return this.C.get(this.T+p)}; ng.prototype.remove=function(p){this.C.remove(this.T+p)}; ng.prototype.lT=function(p){var C=this.C[Symbol.iterator](),V=this,N=new g.lf;N.next=function(){var H=C.next();if(H.done)return H;for(H=H.value;H.slice(0,V.T.length)!=V.T;){H=C.next();if(H.done)return H;H=H.value}return g.tT(p?H.slice(V.T.length):V.C.get(H))}; return N};PF.prototype.getValue=function(){return this.C}; PF.prototype.clone=function(){return new PF(this.T,this.C)};g.h=w0.prototype;g.h.N5=function(p,C){var V=this.T;V.push(new PF(p,C));p=V.length-1;C=this.T;for(V=C[p];p>0;){var N=p-1>>1;if(C[N].T>V.T)C[p]=C[N],p=N;else break}C[p]=V}; g.h.remove=function(){var p=this.T,C=p.length,V=p[0];if(!(C<=0)){if(C==1)p.length=0;else{p[0]=p.pop();p=0;C=this.T;for(var N=C.length,H=C[p];p<N>>1;){var X=p*2+1,d=p*2+2;X=d<N&&C[d].T<C[X].T?d:X;if(C[X].T>H.T)break;C[p]=C[X];p=X}C[p]=H}return V.getValue()}}; g.h.k5=function(){for(var p=this.T,C=[],V=p.length,N=0;N<V;N++)C.push(p[N].getValue());return C}; g.h.Ei=function(){for(var p=this.T,C=[],V=p.length,N=0;N<V;N++)C.push(p[N].T);return C}; g.h.clone=function(){return new w0(this)}; g.h.isEmpty=function(){return this.T.length===0}; g.h.clear=function(){this.T.length=0};g.m($F,w0);$F.prototype.enqueue=function(p,C){this.N5(p,C)};Lg.b8=void 0;Lg.getInstance=function(){return Lg.b8?Lg.b8:Lg.b8=new Lg}; Lg.prototype.T=0;var g0={},xcp=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";g0.assign=function(p){for(var C=Array.prototype.slice.call(arguments,1);C.length;){var V=C.shift();if(V){if(typeof V!=="object")throw new TypeError(V+"must be non-object");for(var N in V)Object.prototype.hasOwnProperty.call(V,N)&&(p[N]=V[N])}}return p}; g0.Yj=function(p,C){if(p.length===C)return p;if(p.subarray)return p.subarray(0,C);p.length=C;return p}; var Y1y={XL:function(p,C,V,N,H){if(C.subarray&&p.subarray)p.set(C.subarray(V,V+N),H);else for(var X=0;X<N;X++)p[H+X]=C[V+X]}, Ea:function(p){var C,V;var N=V=0;for(C=p.length;N<C;N++)V+=p[N].length;var H=new Uint8Array(V);N=V=0;for(C=p.length;N<C;N++){var X=p[N];H.set(X,V);V+=X.length}return H}},zEp={XL:function(p,C,V,N,H){for(var X=0;X<N;X++)p[H+X]=C[V+X]}, Ea:function(p){return[].concat.apply([],p)}}; g0.zse=function(){xcp?(g0.EX=Uint8Array,g0.dn=Uint16Array,g0.g8=Int32Array,g0.assign(g0,Y1y)):(g0.EX=Array,g0.dn=Array,g0.g8=Array,g0.assign(g0,zEp))}; g0.zse();var REf=!0;try{new Uint8Array(1)}catch(p){REf=!1};var m2={};m2=function(p,C,V,N){var H=p&65535|0;p=p>>>16&65535|0;for(var X;V!==0;){X=V>2E3?2E3:V;V-=X;do H=H+C[N++]|0,p=p+H|0;while(--X);H%=65521;p%=65521}return H|p<<16|0};for(var v6={},TU,n21=[],MW=0;MW<256;MW++){TU=MW;for(var eEc=0;eEc<8;eEc++)TU=TU&1?3988292384^TU>>>1:TU>>>1;n21[MW]=TU}v6=function(p,C,V,N){V=N+V;for(p^=-1;N<V;N++)p=p>>>8^n21[(p^C[N])&255];return p^-1};var sg={};sg={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var VJ=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],XC=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],foQ=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Mhu=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],tp=Array(576);WF(tp);var c6=Array(60);WF(c6);var H6=Array(512);WF(H6);var j7=Array(256);WF(j7);var Nv=Array(29);WF(Nv);var df=Array(30);WF(df);var uj9,Z2S,UK9,DKL=!1;var ua;ua=[new DD(0,0,0,0,function(p,C){var V=65535;for(V>p.fp-5&&(V=p.fp-5);;){if(p.lx<=1){FC(p);if(p.lx===0&&C===0)return 1;if(p.lx===0)break}p.IH+=p.lx;p.lx=0;var N=p.Xx+V;if(p.IH===0||p.IH>=N)if(p.lx=p.IH-N,p.IH=N,TH(p,!1),p.R6.jd===0)return 1;if(p.IH-p.Xx>=p.c$-262&&(TH(p,!1),p.R6.jd===0))return 1}p.N5=0;if(C===4)return TH(p,!0),p.R6.jd===0?3:4;p.IH>p.Xx&&TH(p,!1);return 1}), new DD(4,4,8,4,S7),new DD(4,5,16,8,S7),new DD(4,6,32,32,S7),new DD(4,4,16,16,Kd),new DD(8,16,32,32,Kd),new DD(8,16,128,128,Kd),new DD(8,32,128,256,Kd),new DD(32,128,258,1024,Kd),new DD(32,258,258,4096,Kd)];var KGY={};KGY=function(){this.input=null;this.k0=this.a5=this.Zc=0;this.output=null;this.aJ=this.jd=this.oC=0;this.msg="";this.state=null;this.zG=2;this.Vi=0};var O2Y=Object.prototype.toString; ZD.prototype.push=function(p,C){var V=this.R6,N=this.options.chunkSize;if(this.ended)return!1;var H=C===~~C?C:C===!0?4:0;typeof p==="string"?V.input=Xfy(p):O2Y.call(p)==="[object ArrayBuffer]"?V.input=new Uint8Array(p):V.input=p;V.Zc=0;V.a5=V.input.length;do{V.jd===0&&(V.output=new g0.EX(N),V.oC=0,V.jd=N);p=SES(V,H);if(p!==1&&p!==0)return this.g9(p),this.ended=!0,!1;if(V.jd===0||V.a5===0&&(H===4||H===2))if(this.options.Y$==="string"){var X=g0.Yj(V.output,V.oC);C=X;X=X.length;if(X<65537&&(C.subarray&& REf||!C.subarray))C=String.fromCharCode.apply(null,g0.Yj(C,X));else{for(var d="",a=0;a<X;a++)d+=String.fromCharCode(C[a]);C=d}this.chunks.push(C)}else C=g0.Yj(V.output,V.oC),this.chunks.push(C)}while((V.a5>0||V.jd===0)&&p!==1);if(H===4)return(V=this.R6)&&V.state?(N=V.state.status,N!==42&&N!==69&&N!==73&&N!==91&&N!==103&&N!==113&&N!==666?p=a6(V,-2):(V.state=null,p=N===113?a6(V,-3):0)):p=-2,this.g9(p),this.ended=!0,p===0;H===2&&(this.g9(0),V.jd=0);return!0}; ZD.prototype.g9=function(p){p===0&&(this.result=this.options.Y$==="string"?this.chunks.join(""):g0.Ea(this.chunks));this.chunks=[];this.err=p;this.msg=this.R6.msg};var fd="@@redux/INIT"+Ug(),oo9="@@redux/REPLACE"+Ug();var ku9=typeof Symbol==="function"&&Symbol.observable||"@@observable";var PPv=[0,wvG,-3,iS];g.m(qv,eq);qv.prototype.getType=function(){return Mm(this,11)};var bkQ=function(){var p=[0,Lyf,$sF,NW,wvG,NW,-1,iS,wvG,iS,-1,Lyf,iS,$sF,HD,PPv,NW,-1,iS];return function(C,V){if(VH.length){var N=VH.pop();ULH(N,V);N.T.init(C,void 0,void 0,V);C=N}else C=new bB(C,V);try{var H=new qv,X=H.bx;l0(p)(X,C);var d=H}finally{C.free()}return d}}();var RUQ=1776673851;var B8s=new g.I6("adInfoDialogEndpoint");var MF9=new g.I6("adPingingEndpoint");var xyu=new g.I6("crossDeviceProgressCommand");var tM=new g.I6("actionCompanionAdRenderer");var cB=new g.I6("adActionInterstitialRenderer");var w5r=new g.I6("adDurationRemainingRenderer");var xr=new g.I6("adHoverTextButtonRenderer");var Q_j=new g.I6("adInfoDialogRenderer");var mH=new g.I6("adMessageRenderer");var Yr=new g.I6("adPreviewRenderer");var T$=new g.I6("adsEngagementPanelRenderer");var sDQ=new g.I6("dismissablePanelTextPortraitImageRenderer");var iSQ=new g.I6("adsEngagementPanelSectionListViewModel");var $cP=new g.I6("flyoutCtaRenderer");var cP=new g.I6("imageCompanionAdRenderer");var lv=new g.I6("instreamAdPlayerOverlayRenderer");var MRY=new g.I6("instreamSurveyAdBackgroundImageRenderer");var kr=new g.I6("instreamSurveyAdPlayerOverlayRenderer");var UT=new g.I6("instreamSurveyAdRenderer"),od=new g.I6("instreamSurveyAdSingleSelectQuestionRenderer"),AM=new g.I6("instreamSurveyAdMultiSelectQuestionRenderer"),JJ=new g.I6("instreamSurveyAdAnswerRenderer"),Lrv=new g.I6("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var un=new g.I6("instreamVideoAdRenderer");var g28=new g.I6("textOverlayAdContentRenderer"),WrG=new g.I6("enhancedTextOverlayAdContentRenderer"),QF1=new g.I6("imageOverlayAdContentRenderer");var tn=new g.I6("playerOverlayLayoutRenderer");var Tx=new g.I6("videoInterstitialButtonedCenteredLayoutRenderer");var tiy=new g.I6("aboveFeedAdLayoutRenderer");var c0V=new g.I6("belowPlayerAdLayoutRenderer");var lay=new g.I6("inPlayerAdLayoutRenderer");var y9=new g.I6("playerBytesAdLayoutRenderer");var bn=new g.I6("playerUnderlayAdLayoutRenderer");var Zd=new g.I6("adIntroRenderer");var Kj=new g.I6("playerBytesSequentialLayoutRenderer");var LcY=new g.I6("slidingTextPlayerOverlayRenderer");var fj=new g.I6("surveyTextInterstitialRenderer");var rfP=new g.I6("simpleAdBadgeRenderer");var JV=new g.I6("skipAdRenderer"),BYc=new g.I6("skipButtonRenderer");var eB=new g.I6("adSlotRenderer");var qB=new g.I6("squeezebackPlayerSidePanelRenderer");var Gpp=new g.I6("timedPieCountdownRenderer");var YY1=new g.I6("adAvatarViewModel");var LD=new g.I6("adBadgeViewModel");var gv=new g.I6("adButtonViewModel");var py0=new g.I6("adDetailsLineViewModel");var Crp=new g.I6("adDisclosureBannerViewModel");var jf1=new g.I6("adPodIndexViewModel");var Vk1=new g.I6("imageBackgroundViewModel");var NoF=new g.I6("adGridCardCollectionViewModel");var H60=new g.I6("adGridCardTextViewModel");var Xyy=new g.I6("adPreviewViewModel");var dLf=new g.I6("playerAdAvatarLockupCardButtonedViewModel");var i6G=new g.I6("skipAdButtonViewModel");var h6P=new g.I6("skipAdViewModel");var sf2=new g.I6("timedPieCountdownViewModel");var aVE=new g.I6("visitAdvertiserLinkViewModel");var MB=new g.I6("bannerImageLayoutViewModel");var JM=new g.I6("topBannerImageTextIconButtonedLayoutViewModel");var m$=new g.I6("adsEngagementPanelLayoutViewModel");var Id=new g.I6("displayUnderlayTextGridCardsLayoutViewModel");g.Kf=new g.I6("browseEndpoint");var ET8=new g.I6("confirmDialogEndpoint");var mUS=new g.I6("rawColdConfigGroup");var Jws=new g.I6("rawHotConfigGroup");g.Uu=new g.I6("commandExecutorCommand");g.m(P4X,eq);var rMj={Ym$:0,o5Y:1,kiY:32,xX$:61,Ezk:67,Imo:86,TPa:42,amV:60,jia:62,A9x:73,nza:76,r9x:88,V1a:90,uNa:99,ZpS:98,Si$:100,CX$:102,mXa:41,vz_:69,zFk:70,ikr:71,tOr:2,U1o:27,ANDROID:3,aPk:54,bO$:14,Eq$:91,nqn:55,C8a:24,AU_:20,x5V:18,rU_:21,m5n:30,iOe:29,fPn:28,g5$:101,Wfx:34,u4a:36,IP_:38,IOS:5,PMn:15,Oq_:92,RYY:40,Dwa:25,BRo:17,tH$:19,Uwa:64,Klk:66,lSk:26,Q5V:22,wzV:33,omn:68,dwS:35,gm_:53,JXx:37,Yfk:39,zLr:7,ipV:57,f__:43,Lmn:59,Wmx:93,zje:74,No$:75,GAx:85,hLr:65,Hpk:80,p_V:8,mOS:10,RLS:58,PF$:63,eL$:72, vqS:23,Lre:11,NP_:13,Ff$:12,v5o:16,y9S:56,s9$:31,YvS:77,TRS:84,bkk:87,aSn:89,kpo:94,z4Y:95};g.m(ba,eq);ba.prototype.YF=function(){return TA(this,3)}; ba.prototype.g0=function(){return TA(this,5)}; ba.prototype.Tf=function(p){return mM(this,5,p)};g.m(Ap,eq);g.m(wfH,eq);g.m(o6,eq);g.h=o6.prototype;g.h.getDeviceId=function(){return TA(this,6)}; g.h.Kf=function(p){var C=gw(this,9,sL,3,void 0,!0);ek(C,p);return C[p]}; g.h.getPlayerType=function(){return Mm(this,36)}; g.h.setHomeGroupInfo=function(p){return hP(this,wfH,81,p)}; g.h.clearLocationPlayabilityToken=function(){return RO(this,89)};g.m(kQ,eq);kQ.prototype.getValue=function(){return TA(this,Nm(this,Tm1)===2?2:-1)}; var Tm1=[2,3,4,5,6];g.m(xQ,eq);xQ.prototype.setTrackingParams=function(p){return RO(this,1,fvQ(p,!1))};g.m(YQ,eq);g.m(zH,eq);zH.prototype.Kf=function(p){var C=gw(this,5,aO,3,void 0,!0);ek(C,p);return C[p]};g.m(R6,eq);R6.prototype.getToken=function(){return tP(this,2)}; R6.prototype.setToken=function(p){return mM(this,2,p)};g.m(nd,eq);nd.prototype.setSafetyMode=function(p){return Fa(this,5,p)};g.m(e7,eq);e7.prototype.Ll=function(p){return hP(this,o6,1,p)};var Rd=new g.I6("thumbnailLandscapePortraitRenderer");g.lV1=new g.I6("changeEngagementPanelVisibilityAction");var S2V=new g.I6("continuationCommand");g.tkv=new g.I6("openPopupAction");g.mm=new g.I6("webCommandMetadata");var YiL=new g.I6("metadataBadgeRenderer");var FWv=new g.I6("signalServiceEndpoint");var w7=new g.I6("innertubeCommand");var hVu=new g.I6("loggingDirectives");var yTH={p$a:"EMBEDDED_PLAYER_MODE_UNKNOWN",hyk:"EMBEDDED_PLAYER_MODE_DEFAULT",HxV:"EMBEDDED_PLAYER_MODE_PFP",eyn:"EMBEDDED_PLAYER_MODE_PFL"};var iwy=new g.I6("channelThumbnailEndpoint");var dia=new g.I6("embeddedPlayerErrorMessageRenderer");var Voy=new g.I6("embeddedPlayerOverlayVideoDetailsRenderer"),hTy=new g.I6("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),s2S=new g.I6("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var o1L=new g.I6("embedsInfoPanelRenderer");var cBc=new g.I6("feedbackEndpoint");var Tof=new g.I6("callToActionButtonViewModel");var MkE=new g.I6("interactionLoggingCommandMetadata");var ZgX={MSn:"WEB_DISPLAY_MODE_UNKNOWN",X_x:"WEB_DISPLAY_MODE_BROWSER",qmn:"WEB_DISPLAY_MODE_MINIMAL_UI",cWn:"WEB_DISPLAY_MODE_STANDALONE",Fmx:"WEB_DISPLAY_MODE_FULLSCREEN"};g.m(P6,eq);P6.prototype.getPlayerType=function(){return Mm(this,7)}; P6.prototype.qg=function(){return TA(this,19)}; P6.prototype.setVideoId=function(p){return mM(this,19,p)};g.m(wf,eq);g.m(gf,eq);g.m(W6,eq); var JB0=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512];var mL2=new g.I6("loggingContext");g.m(QJ,eq);g.m(rf,eq);rf.prototype.qg=function(){return tP(this,Nm(this,JG)===1?1:-1)}; rf.prototype.setVideoId=function(p){return jq(this,1,JG,Jc(p))}; rf.prototype.getPlaylistId=function(){return tP(this,Nm(this,JG)===2?2:-1)}; var JG=[1,2];g.m($KH,eq);var H_=new g.I6("changeKeyedMarkersVisibilityCommand");var vT5=new g.I6("changeMarkersVisibilityCommand");var R5L=new g.I6("loadMarkersCommand");var FqE=new g.I6("suggestedActionDataViewModel");var jCe=new g.I6("timelyActionViewModel");var CjH=new g.I6("timelyActionsOverlayViewModel");var N4e=new g.I6("productListItemRenderer");var Sv5=new g.I6("shoppingOverlayRenderer");var NHu=new g.I6("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var KqY=new g.I6("adFeedbackEndpoint");var DLp=new g.I6("menuEndpoint");var JJj=new g.I6("phoneDialerEndpoint");var TKS=new g.I6("sendSmsEndpoint");var j2v=new g.I6("copyTextEndpoint");var uvE=new g.I6("shareEndpoint"),Z68=new g.I6("shareEntityEndpoint"),UL2=new g.I6("shareEntityServiceEndpoint"),fVE=new g.I6("webPlayerShareEntityServiceEndpoint");g.$0=new g.I6("urlEndpoint");g.VB=new g.I6("watchEndpoint");var O6P=new g.I6("watchPlaylistEndpoint");g.yB8=new g.I6("offlineOrchestrationActionCommand");var $dH=new g.I6("compositeVideoOverlayRenderer");var qvF=new g.I6("miniplayerRenderer");var p1s=new g.I6("paidContentOverlayRenderer");var KZS=new g.I6("playerMutedAutoplayOverlayRenderer"),DOs=new g.I6("playerMutedAutoplayEndScreenRenderer");var YAj=new g.I6("unserializedPlayerResponse"),uFH=new g.I6("unserializedPlayerResponse");var IV1=new g.I6("playlistEditEndpoint");var vD;g.z$=new g.I6("buttonRenderer");vD=new g.I6("toggleButtonRenderer");var dQv=new g.I6("counterfactualRenderer");var b65=new g.I6("resolveUrlCommandMetadata");var ABp=new g.I6("modifyChannelNotificationPreferenceEndpoint");var T$V=new g.I6("pingingEndpoint");var oT8=new g.I6("unsubscribeEndpoint");g.D6=new g.I6("subscribeButtonRenderer");var kty=new g.I6("subscribeEndpoint");var Dtu=new g.I6("buttonViewModel");var hxS=new g.I6("qrCodeRenderer");var G$L={szx:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Cfe:"LIVING_ROOM_APP_MODE_MAIN",n9Y:"LIVING_ROOM_APP_MODE_KIDS",ABa:"LIVING_ROOM_APP_MODE_MUSIC",x1a:"LIVING_ROOM_APP_MODE_UNPLUGGED",b$$:"LIVING_ROOM_APP_MODE_GAMING"};var IFS=new g.I6("autoplaySwitchButtonRenderer");var v7,$9L,$39,V$L;v7=new g.I6("decoratedPlayerBarRenderer");$9L=new g.I6("chapteredPlayerBarRenderer");$39=new g.I6("multiMarkersPlayerBarRenderer");V$L=new g.I6("chapterRenderer");g.QPy=new g.I6("markerRenderer");var xL0=new g.I6("decoratedPlayheadRenderer");var kvX=new g.I6("desktopOverlayConfigRenderer");var A59=new g.I6("gatedActionsOverlayViewModel");var pM9=new g.I6("heatMarkerRenderer");var G_1=new g.I6("heatmapRenderer");var z5H=new g.I6("watchToWatchTransitionRenderer");var HwV=new g.I6("playlistPanelRenderer");var Yv0=new g.I6("productUpsellSuggestedActionViewModel");var z61=new g.I6("suggestedActionTimeRangeTrigger"),R6P=new g.I6("suggestedActionsRenderer"),nT1=new g.I6("suggestedActionRenderer");var CJQ=new g.I6("timedMarkerDecorationRenderer");var isv=new g.I6("cipher");var ze9=new g.I6("playerVars");var Zzs=new g.I6("playerVars");var Fy=g.xH.window,e6c,Prf,B6=(Fy==null?void 0:(e6c=Fy.yt)==null?void 0:e6c.config_)||(Fy==null?void 0:(Prf=Fy.ytcfg)==null?void 0:Prf.data_)||{};g.YH("yt.config_",B6);var je=[];var j1Q=/^[\w.]*$/,B9V={q:!0,search_query:!0},rxH=String(X5);var TQ=new function(){var p=window.document;this.T=window;this.C=p}; g.YH("yt.ads_.signals_.getAdSignalsString",function(p){return dm(Jw(p))});g.QL();var Nx9="XMLHttpRequest"in g.xH?function(){return new XMLHttpRequest}:null;var wyG="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.K(wyG);var ioX={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL", "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},hzL="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.K(wyG)),Mrs=!1,Xpe=s11,tru=yg;g.m(b1,c5);kD.prototype.then=function(p,C,V){return this.T?this.T.then(p,C,V):this.V===1&&p?(p=p.call(V,this.C))&&typeof p.then==="function"?p:YD(p):this.V===2&&C?(p=C.call(V,this.C))&&typeof p.then==="function"?p:xD(p):this}; kD.prototype.getValue=function(){return this.C}; kD.prototype.$goog_Thenable=!0;var zQ=!1;var BW=CK||jz;var fAY=/^([0-9\.]+):([0-9\.]+)$/;g.m(M5,c5);M5.prototype.name="BiscottiError";g.m(TW,c5);TW.prototype.name="BiscottiMissingError";var IAe={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Jm=null;var ycH=dsL(["data-"]),nCS={};var $LF=0,m_=g.Nq?"webkit":Do?"moz":g.vF?"ms":g.Fs?"o":"",LqF=g.zV("ytDomDomGetNextId")||function(){return++$LF}; g.YH("ytDomDomGetNextId",LqF);var $ZX={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};uO.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; uO.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; uO.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Z3=g.xH.ytEventsEventsListeners||{};g.YH("ytEventsEventsListeners",Z3);var WOX=g.xH.ytEventsEventsCounter||{count:0};g.YH("ytEventsEventsCounter",WOX);var G2j=SS(function(){var p=!1;try{var C=Object.defineProperty({},"passive",{get:function(){p=!0}}); window.addEventListener("test",null,C)}catch(V){}return p}),Q1S=SS(function(){var p=!1; try{var C=Object.defineProperty({},"capture",{get:function(){p=!0}}); window.addEventListener("test",null,C)}catch(V){}return p});var Sd;Sd=window;g.Ip=Sd.ytcsi&&Sd.ytcsi.now?Sd.ytcsi.now:Sd.performance&&Sd.performance.timing&&Sd.performance.now&&Sd.performance.timing.navigationStart?function(){return Sd.performance.timing.navigationStart+Sd.performance.now()}:function(){return(new Date).getTime()};g.r1(q5,g.Y);q5.prototype.Z=function(p){p.T===void 0&&LOa(p);var C=p.T;p.C===void 0&&LOa(p);this.T=new g.Fn(C,p.C)}; q5.prototype.rz=function(){return this.T||new g.Fn}; q5.prototype.a$=function(){if(this.T){var p=(0,g.Ip)();if(this.S!=0){var C=this.Y,V=this.T,N=C.x-V.x;C=C.y-V.y;N=Math.sqrt(N*N+C*C)/(p-this.S);this.C[this.V]=Math.abs((N-this.W)/this.W)>.5?1:0;for(V=C=0;V<4;V++)C+=this.C[V]||0;C>=3&&this.D();this.W=N}this.S=p;this.Y=this.T;this.V=(this.V+1)%4}}; q5.prototype.CS=function(){g.Dr(this.J);g.fK(this.b_)};g.m(I_,g.Y);I_.prototype.U=function(p,C,V,N,H){V=g.NU((0,g.LY)(V,N||this.Wc));V={target:p,name:C,callback:V};var X;H&&G2j()&&(X={passive:!0});p.addEventListener(C,V.callback,X);this.D.push(V);return V}; I_.prototype.rY=function(p){for(var C=0;C<this.D.length;C++)if(this.D[C]==p){this.D.splice(C,1);p.target.removeEventListener(p.name,p.callback);break}}; I_.prototype.CS=function(){g.Am(this);g.Y.prototype.CS.call(this)};o_.prototype.clone=function(){var p=new o_,C;for(C in this)if(this.hasOwnProperty(C)){var V=this[C];p[C]=nY(V)=="object"?g.zh(V):V}return p};var yeQ=["att/get"],USe=["embedded_player"],H1u=["account/get_setting_values"],gTF=["share/get_share_panel"],WqP=["share/get_web_player_share_panel"],Qfv=["feedback"],rBY=["notification/modify_channel_preference"],OnY=["player"],Bo0=["browse/edit_playlist"],i1Q=["account/set_setting"],Gtc=["subscription/subscribe"],pTG=["subscription/unsubscribe"],bnH=["next","unplugged/watch_next"];var xl;g.kl=SS(function(){try{var p=new RL;var C=p.isAvailable()?p:null}catch(V){return null}return C?new g.kF(C):null}); xl=SS(function(){var p=new H21;return p.isAvailable()?new g.kF(p):null});g.Cg0=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.YH("yt.msgs_",g.Cg0);Pw.prototype.wg=function(p,C){p={};var V=[];"USER_SESSION_ID"in B6&&V.push({key:"u",value:g.pO("USER_SESSION_ID")});if(V=gKY(V))p.Authorization=V,V=C=C==null?void 0:C.sessionIndex,V===void 0&&(V=Number(g.pO("SESSION_INDEX",0)),V=isNaN(V)?0:V),g.Zr("voice_search_auth_header_removal")||(p["X-Goog-AuthUser"]=V.toString()),"INNERTUBE_HOST_OVERRIDE"in B6||(p["X-Origin"]=window.location.origin),C===void 0&&"DELEGATED_SESSION_ID"in B6&&(p["X-Goog-PageId"]=g.pO("DELEGATED_SESSION_ID"));return p};var Me={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var g8=g.zV("ytglobal.prefsUserPrefsPrefs_")||{};g.YH("ytglobal.prefsUserPrefsPrefs_",g8);var w8;g.h=HXH.prototype;g.h.get=function(p,C){r8(p);Qc(p);p=g8[p]!==void 0?g8[p].toString():null;return p!=null?p:C?C:""}; g.h.set=function(p,C){r8(p);Qc(p);if(C==null)throw Error("ExpectedNotNull");g8[p]=C.toString()}; g.h.remove=function(p){r8(p);Qc(p);delete g8[p]}; g.h.save=function(){var p=!0;g.Zr("web_secure_pref_cookie_killswitch")&&(p=!1);g.nO(this.T,this.dump(),63072E3,this.C,p)}; g.h.clear=function(){g.Bwu(g8)}; g.h.dump=function(){var p=[],C;for(C in g8)g8.hasOwnProperty(C)&&p.push(C+"="+encodeURIComponent(String(g8[C])));return p.join("&")}; g.h.parse=function(p){p=decodeURIComponent(p).split("&");for(var C=0;C<p.length;C++){var V=p[C].split("="),N=V[0];(V=V[1])&&(g8[N]=V.toString())}};var iXy={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},U8v={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11, CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},fJa={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},sqa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.m(g.Bw,Error);C3.prototype.Lx=function(p,C){return j_(p,1,C)}; C3.prototype.kI=function(p){(p=this.T.get(p))&&p()};g.zV("yt.scheduler.instance.timerIdMap_");g.m(Np,C3);Np.prototype.X5=function(p){if(p===void 0||!Number.isNaN(Number(p))){var C=g.zV("yt.scheduler.instance.cancelJob");C?C(p):g.KO(p)}}; Np.prototype.start=function(){var p=g.zV("yt.scheduler.instance.start");p&&p()}; Np.prototype.pause=function(){var p=g.zV("yt.scheduler.instance.pause");p&&p()}; g.rE=g.HW();iN.prototype.set=function(p,C,V,N){V=V||31104E3;this.remove(p);if(this.T)try{this.T.set(p,C,Date.now()+V*1E3);return}catch(X){}var H="";if(N)try{H=escape(g.zD(C))}catch(X){return}else H=escape(C);g.nO(p,H,V,this.C)}; iN.prototype.get=function(p,C){var V=void 0,N=!this.T;if(!N)try{V=this.T.get(p)}catch(H){N=!0}if(N&&(V=g.ee(p))&&(V=unescape(V),C))try{V=JSON.parse(V)}catch(H){this.remove(p),V=void 0}return V}; iN.prototype.remove=function(p){this.T&&this.T.remove(p);g.Pd(p,"/",this.C)}; iN.prototype.getCreationTime=function(p){return this.T&&(p=(this.T.C(p)||{}).creation,typeof p==="number")?p:null};var h1=function(){var p;return function(){p||(p=new iN("ytidb"));return p}}();var cW=[],ap,T4=!1;var KM={},t0y=(KM.AUTH_INVALID="No user identifier specified.",KM.EXPLICIT_ABORT="Transaction was explicitly aborted.",KM.IDB_NOT_SUPPORTED="IndexedDB is not supported.",KM.MISSING_INDEX="Index not created.",KM.MISSING_OBJECT_STORES="Object stores not created.",KM.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",KM.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",KM.UNKNOWN_ABORT= "Transaction was aborted for unknown reasons.",KM.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",KM.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",KM.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",KM.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",KM),D4={},cCy=(D4.AUTH_INVALID="ERROR",D4.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",D4.EXPLICIT_ABORT="IGNORED", D4.IDB_NOT_SUPPORTED="ERROR",D4.MISSING_INDEX="WARNING",D4.MISSING_OBJECT_STORES="ERROR",D4.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",D4.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",D4.QUOTA_EXCEEDED="WARNING",D4.QUOTA_MAYBE_EXCEEDED="WARNING",D4.UNKNOWN_ABORT="WARNING",D4.INCOMPATIBLE_DB_VERSION="WARNING",D4),uS={},TEH=(uS.AUTH_INVALID=!1,uS.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,uS.EXPLICIT_ABORT=!1,uS.IDB_NOT_SUPPORTED=!1,uS.MISSING_INDEX=!1,uS.MISSING_OBJECT_STORES=!1,uS.DB_DELETED_BY_MISSING_OBJECT_STORES= !1,uS.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,uS.QUOTA_EXCEEDED=!1,uS.QUOTA_MAYBE_EXCEEDED=!0,uS.UNKNOWN_ABORT=!0,uS.INCOMPATIBLE_DB_VERSION=!1,uS);g.m(g.F2,g.Bw);g.m(S_,g.F2);g.m(K3,Error);var M0j=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.f3.all=function(p){return new g.f3(new U2(function(C,V){var N=[],H=p.length;H===0&&C(N);for(var X={bU:0};X.bU<p.length;X={bU:X.bU},++X.bU)g.f3.resolve(p[X.bU]).then(function(d){return function(a){N[d.bU]=a;H--;H===0&&C(N)}}(X)).catch(function(d){V(d)})}))}; g.f3.resolve=function(p){return new g.f3(new U2(function(C,V){p instanceof g.f3?p.then(C,V):C(p)}))}; g.f3.reject=function(p){return new g.f3(new U2(function(C,V){V(p)}))}; g.f3.prototype.then=function(p,C){var V=this,N=p!=null?p:mPH,H=C!=null?C:JCe;return new g.f3(new U2(function(X,d){V.state.status==="PENDING"?(V.T.push(function(){vIV(V,V,N,X,d)}),V.C.push(function(){FVa(V,V,H,X,d)})):V.state.status==="FULFILLED"?vIV(V,V,N,X,d):V.state.status==="REJECTED"&&FVa(V,V,H,X,d)}))}; g.f3.prototype.catch=function(p){return this.then(void 0,p)};g.h=UPv.prototype;g.h.add=function(p,C,V){return g.kt(this,[p],{mode:"readwrite",L4:!0},function(N){return N.objectStore(p).add(C,V)})}; g.h.clear=function(p){return g.kt(this,[p],{mode:"readwrite",L4:!0},function(C){return C.objectStore(p).clear()})}; g.h.close=function(){this.T.close();var p;((p=this.options)==null?0:p.closed)&&this.options.closed()}; g.h.count=function(p,C){return g.kt(this,[p],{mode:"readonly",L4:!0},function(V){return V.objectStore(p).count(C)})}; g.h.delete=function(p,C){return g.kt(this,[p],{mode:"readwrite",L4:!0},function(V){return V.objectStore(p).delete(C)})}; g.h.get=function(p,C){return g.kt(this,[p],{mode:"readonly",L4:!0},function(V){return V.objectStore(p).get(C)})}; g.h.getAll=function(p,C,V){return g.kt(this,[p],{mode:"readonly",L4:!0},function(N){return N.objectStore(p).getAll(C,V)})}; g.h.objectStoreNames=function(){return Array.from(this.T.objectStoreNames)}; g.h.getName=function(){return this.T.name}; g.h=bN.prototype;g.h.add=function(p,C){return yl(this.T.add(p,C))}; g.h.autoIncrement=function(){return this.T.autoIncrement}; g.h.clear=function(){return yl(this.T.clear()).then(function(){})}; g.h.count=function(p){return yl(this.T.count(p))}; g.h.delete=function(p){return p instanceof IDBKeyRange?qMX(this,p):yl(this.T.delete(p))}; g.h.get=function(p){return yl(this.T.get(p))}; g.h.getAll=function(p,C){return"getAll"in IDBObjectStore.prototype?yl(this.T.getAll(p,C)):IKH(this,p,C)}; g.h.index=function(p){try{return new ko1(this.T.index(p))}catch(C){if(C instanceof Error&&C.name==="NotFoundError")throw new K3(p,this.T.name);throw C;}}; g.h.getName=function(){return this.T.name}; g.h.keyPath=function(){return this.T.keyPath}; z4.prototype.abort=function(){this.T.abort();this.C=!0;throw new g.F2("EXPLICIT_ABORT");}; z4.prototype.objectStore=function(p){p=this.T.objectStore(p);var C=this.V.get(p);C||(C=new bN(p),this.V.set(p,C));return C}; g.h=ko1.prototype;g.h.count=function(p){return yl(this.T.count(p))}; g.h.delete=function(p){return g.wq(this,{query:p},function(C){return C.delete().then(function(){return g.e_(C)})})}; g.h.get=function(p){return yl(this.T.get(p))}; g.h.getAll=function(p,C){return"getAll"in IDBIndex.prototype?yl(this.T.getAll(p,C)):xPH(this,p,C)}; g.h.keyPath=function(){return this.T.keyPath}; g.h.unique=function(){return this.T.unique}; $t.prototype.delete=function(){return yl(this.cursor.delete()).then(function(){})}; $t.prototype.getValue=function(){return this.cursor.value}; $t.prototype.update=function(p){return yl(this.cursor.update(p))};gq.prototype.C=function(p,C,V){V=V===void 0?{}:V;return zFQ(p,C,V)}; gq.prototype.delete=function(p){p=p===void 0?{}:p;return L3(this.name,p)}; gq.prototype.open=function(){function p(){var X,d,a,E,l,t,c,T,M,J;return g.I(function(S){switch(S.C){case 1:return d=(X=Error().stack)!=null?X:"",g.vv(S,2),g.y(S,V.C(V.name,V.options.version,H),4);case 4:for(var D=a=S.T,Z=V.options,f=[],q=g.F(Object.keys(Z.UK)),A=q.next();!A.done;A=q.next()){A=A.value;var z=Z.UK[A],Q=z.Utn===void 0?Number.MAX_VALUE:z.Utn;!(D.T.version>=z.c_)||D.T.version>=Q||D.T.objectStoreNames.contains(A)||f.push(A)}E=f;if(E.length===0){S.EY(5);break}l=Object.keys(V.options.UK); t=a.objectStoreNames();if(V.W<g.Uk("ytidb_reopen_db_retries",0))return V.W++,a.close(),Mp(new g.F2("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:V.name,expectedObjectStores:l,foundObjectStores:t})),S.return(p());if(!(V.S<g.Uk("ytidb_remake_db_retries",1))){S.EY(6);break}V.S++;return g.y(S,V.delete(),7);case 7:return Mp(new g.F2("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:V.name,expectedObjectStores:l,foundObjectStores:t})),S.return(p());case 6:throw new S_(t,l);case 5:return S.return(a);case 2:c= g.Sa(S);if(c instanceof DOMException?c.name!=="VersionError":"DOMError"in self&&c instanceof DOMError?c.name!=="VersionError":!(c instanceof Object&&"message"in c)||c.message!=="An attempt was made to open a database using a lower version than the existing version."){S.EY(8);break}return g.y(S,V.C(V.name,void 0,Object.assign({},H,{upgrade:void 0})),9);case 9:T=S.T;M=T.T.version;if(V.options.version!==void 0&&M>V.options.version+1)throw T.close(),V.V=!1,RFX(V,M);return S.return(T);case 8:throw C(), c instanceof Error&&!g.Zr("ytidb_async_stack_killswitch")&&(c.stack=c.stack+"\n"+d.substring(d.indexOf("\n")+1)),uN(c,V.name,"",(J=V.options.version)!=null?J:-1);}})} function C(){V.T===N&&(V.T=void 0)} var V=this;if(!this.V)throw RFX(this);if(this.T)return this.T;var N,H={blocking:function(X){X.close()}, closed:C,olY:C,upgrade:this.options.upgrade};return this.T=N=p()};var Ql=new gq("YtIdbMeta",{UK:{databases:{c_:1}},upgrade:function(p,C){C(1)&&g.A1(p,"databases",{keyPath:"actualName"})}});var C5,p5=new function(){}(new function(){});new g.Zt;g.m(Ne,gq);Ne.prototype.C=function(p,C,V){V=V===void 0?{}:V;return(this.options.shared?QqX:WV1)(p,C,Object.assign({},V))}; Ne.prototype.delete=function(p){p=p===void 0?{}:p;return(this.options.shared?pFQ:rCy)(this.name,p)};var jOf={},jLL=g.HC("ytGcfConfig",{UK:(jOf.coldConfigStore={c_:1},jOf.hotConfigStore={c_:1},jOf),shared:!1,upgrade:function(p,C){C(1)&&(g.Rp(g.A1(p,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Rp(g.A1(p,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.m(dy,g.Y);dy.prototype.CS=function(){for(var p=g.F(this.C),C=p.next();!C.done;C=p.next()){var V=this.T;C=V.indexOf(C.value);C>=0&&V.splice(C,1)}this.C.length=0;g.Y.prototype.CS.call(this)};lR.prototype.Tf=function(p){this.hotHashData=p;g.YH("yt.gcf.config.hotHashData",this.hotHashData||null)};var Vnc=typeof TextEncoder!=="undefined"?new TextEncoder:null,wFv=Vnc?function(p){return Vnc.encode(p)}:function(p){p=g.mr(p); for(var C=new Uint8Array(p.length),V=0;V<C.length;V++)C[V]=p[V];return C};var CRQ={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},VVe={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};uR.prototype.c6=function(){return{version:this.version,args:this.args}};OX.prototype.toString=function(){return this.topic};var Nw8=g.zV("ytPubsub2Pubsub2Instance")||new g.IL;g.IL.prototype.subscribe=g.IL.prototype.subscribe;g.IL.prototype.unsubscribeByKey=g.IL.prototype.zW;g.IL.prototype.publish=g.IL.prototype.publish;g.IL.prototype.clear=g.IL.prototype.clear;g.YH("ytPubsub2Pubsub2Instance",Nw8);var bR=g.zV("ytPubsub2Pubsub2SubscribedKeys")||{};g.YH("ytPubsub2Pubsub2SubscribedKeys",bR);var AN=g.zV("ytPubsub2Pubsub2TopicToKeys")||{};g.YH("ytPubsub2Pubsub2TopicToKeys",AN);var qdu=g.zV("ytPubsub2Pubsub2IsAsync")||{}; g.YH("ytPubsub2Pubsub2IsAsync",qdu);g.YH("ytPubsub2Pubsub2SkipSubKey",null);var xp=void 0,kp=void 0;var nFy=g.Uk("max_body_size_to_compress",5E5),eoj=g.Uk("min_body_size_to_compress",500),n5=!0,$p=0,wy=0,$89=g.Uk("compression_performance_threshold_lr",250),LlH=g.Uk("slow_compressions_before_abandon_count",4),z1=!1,Rx=new Map,eV=1,PIu=!0;g.h=gy.prototype;g.h.writeThenSend=function(p,C){var V=this;C=C===void 0?{}:C;if(L5(this)&&this.T){var N={url:p,options:C,timestamp:this.now(),status:"NEW",sendCount:0};this.hU.set(N,this.p9).then(function(H){N.id=H;V.AU.nO()&&V.Nh(N)}).catch(function(H){V.Nh(N); WC(V,H)})}else this.sendFn(p,C)}; g.h.sendThenWrite=function(p,C,V){var N=this;C=C===void 0?{}:C;if(L5(this)&&this.T){var H={url:p,options:C,timestamp:this.now(),status:"NEW",sendCount:0};this.OY&&this.OY("nwl_skip_retry")&&(H.skipRetry=V);if(this.AU.nO()||this.OY&&this.OY("nwl_aggressive_send_then_write")&&!H.skipRetry){if(!H.skipRetry){var X=C.onError?C.onError:function(){}; C.onError=function(d,a){return g.I(function(E){if(E.C==1)return g.y(E,N.hU.set(H,N.p9).catch(function(l){WC(N,l)}),2); X(d,a);g.JQ(E)})}}this.sendFn(p,C,H.skipRetry)}else this.hU.set(H,this.p9).catch(function(d){N.sendFn(p,C,H.skipRetry); WC(N,d)})}else V=this.OY&&this.OY("nwl_skip_retry")&&V,this.sendFn(p,C,V)}; g.h.sendAndWrite=function(p,C){var V=this;C=C===void 0?{}:C;if(L5(this)&&this.T){var N={url:p,options:C,timestamp:this.now(),status:"NEW",sendCount:0},H=!1,X=C.onSuccess?C.onSuccess:function(){}; N.options.onSuccess=function(d,a){N.id!==void 0?V.hU.NP(N.id,V.p9):H=!0;V.AU.cj&&V.OY&&V.OY("vss_network_hint")&&V.AU.cj(!0);X(d,a)}; this.sendFn(N.url,N.options,void 0,!0);this.hU.set(N,this.p9).then(function(d){N.id=d;H&&V.hU.NP(N.id,V.p9)}).catch(function(d){WC(V,d)})}else this.sendFn(p,C,void 0,!0)}; g.h.Mz=function(){var p=this;if(!L5(this))throw Error("IndexedDB is not supported: throttleSend");this.C||(this.C=this.Pp.Lx(function(){var C;return g.I(function(V){if(V.C==1)return g.y(V,p.hU.Oa("NEW",p.p9),2);if(V.C!=3)return C=V.T,C?g.y(V,p.Nh(C),3):(p.KN(),V.return());p.C&&(p.C=0,p.Mz());g.JQ(V)})},this.Lc))}; g.h.KN=function(){this.Pp.X5(this.C);this.C=0}; g.h.Nh=function(p){var C=this,V;return g.I(function(N){switch(N.C){case 1:if(!L5(C))throw Error("IndexedDB is not supported: immediateSend");if(p.id===void 0){N.EY(2);break}return g.y(N,C.hU.KD(p.id,C.p9),3);case 3:(V=N.T)||C.yT(Error("The request cannot be found in the database."));case 2:if(C.Zv(p,C.W0)){N.EY(4);break}C.yT(Error("Networkless Logging: Stored logs request expired age limit"));if(p.id===void 0){N.EY(5);break}return g.y(N,C.hU.NP(p.id,C.p9),5);case 5:return N.return();case 4:p.skipRetry|| (p=Gze(C,p));if(!p){N.EY(0);break}if(!p.skipRetry||p.id===void 0){N.EY(8);break}return g.y(N,C.hU.NP(p.id,C.p9),8);case 8:C.sendFn(p.url,p.options,!!p.skipRetry),g.JQ(N)}})}; g.h.Zv=function(p,C){p=p.timestamp;return this.now()-p>=C?!1:!0}; g.h.bk=function(){var p=this;if(!L5(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.hU.Oa("QUEUED",this.p9).then(function(C){C&&!p.Zv(C,p.ED)?p.Pp.Lx(function(){return g.I(function(V){if(V.C==1)return C.id===void 0?V.EY(2):g.y(V,p.hU.dD(C.id,p.p9),2);p.bk();g.JQ(V)})}):p.AU.nO()&&p.Mz()})};var Qt;var SkY={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470, fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491, castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512};var H_y={},hi1=g.HC("ServiceWorkerLogsDatabase",{UK:(H_y.SWHealthLog={c_:1},H_y),shared:!0,upgrade:function(p,C){C(1)&&g.Rp(g.A1(p,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var G1={},cpY=0;var p1;jF.prototype.requestComplete=function(p,C){C&&(this.C=!0);p=this.removeParams(p);this.T.get(p)||this.T.set(p,C)}; jF.prototype.isEndpointCFR=function(p){p=this.removeParams(p);return(p=this.T.get(p))?!1:p===!1&&this.C?!0:null}; jF.prototype.removeParams=function(p){return p.split("?")[0]}; jF.prototype.removeParams=jF.prototype.removeParams;jF.prototype.isEndpointCFR=jF.prototype.isEndpointCFR;jF.prototype.requestComplete=jF.prototype.requestComplete;jF.getInstance=Vq;g.m(NM,g.h8);g.h=NM.prototype;g.h.nO=function(){return this.T.nO()}; g.h.cj=function(p){this.T.T=p}; g.h.At=function(){var p=window.navigator.onLine;return p===void 0?!0:p}; g.h.j_=function(){this.C=!0}; g.h.listen=function(p,C){return this.T.listen(p,C)}; g.h.rr=function(p){p=Wo(this.T,p);p.then(function(C){g.Zr("use_cfr_monitor")&&Vq().requestComplete("generate_204",C)}); return p}; NM.prototype.sendNetworkCheckRequest=NM.prototype.rr;NM.prototype.listen=NM.prototype.listen;NM.prototype.enableErrorFlushing=NM.prototype.j_;NM.prototype.getWindowStatus=NM.prototype.At;NM.prototype.networkStatusHint=NM.prototype.cj;NM.prototype.isNetworkAvailable=NM.prototype.nO;NM.getInstance=Jpa;g.m(g.Hl,g.h8);g.Hl.prototype.nO=function(){var p=g.zV("yt.networkStatusManager.instance.isNetworkAvailable");return p?p.bind(this.C)():!0}; g.Hl.prototype.cj=function(p){var C=g.zV("yt.networkStatusManager.instance.networkStatusHint").bind(this.C);C&&C(p)}; g.Hl.prototype.rr=function(p){var C=this,V;return g.I(function(N){V=g.zV("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(C.C);return g.Zr("skip_network_check_if_cfr")&&Vq().isEndpointCFR("generate_204")?N.return(new Promise(function(H){var X;C.cj(((X=window.navigator)==null?void 0:X.onLine)||!0);H(C.nO())})):V?N.return(V(p)):N.return(!0)})};var X3;g.m(d$,gy);d$.prototype.writeThenSend=function(p,C){C||(C={});C=h3(p,C);g.p3()||(this.T=!1);gy.prototype.writeThenSend.call(this,p,C)}; d$.prototype.sendThenWrite=function(p,C,V){C||(C={});C=h3(p,C);g.p3()||(this.T=!1);gy.prototype.sendThenWrite.call(this,p,C,V)}; d$.prototype.sendAndWrite=function(p,C){C||(C={});C=h3(p,C);g.p3()||(this.T=!1);gy.prototype.sendAndWrite.call(this,p,C)}; d$.prototype.awaitInitialization=function(){return this.V.promise};var K2a=g.xH.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.YH("ytNetworklessLoggingInitializationOptions",K2a);g.sI.prototype.isReady=function(){!this.config_&&m8Y()&&(this.config_=g.cC());return!!this.config_};var XT2,lV,cl;XT2=g.xH.ytPubsubPubsubInstance||new g.IL;lV=g.xH.ytPubsubPubsubSubscribedKeys||{};cl=g.xH.ytPubsubPubsubTopicToKeys||{};g.t3=g.xH.ytPubsubPubsubIsSynchronous||{};g.IL.prototype.subscribe=g.IL.prototype.subscribe;g.IL.prototype.unsubscribeByKey=g.IL.prototype.zW;g.IL.prototype.publish=g.IL.prototype.publish;g.IL.prototype.clear=g.IL.prototype.clear;g.YH("ytPubsubPubsubInstance",XT2);g.YH("ytPubsubPubsubTopicToKeys",cl);g.YH("ytPubsubPubsubIsSynchronous",g.t3); g.YH("ytPubsubPubsubSubscribedKeys",lV);var Odj={};g.m(uV,g.Y);uV.prototype.append=function(p){if(!this.C)throw Error("This does not support the append operation");p=p.V$();this.V$().appendChild(p)}; g.m(Z9,uV);Z9.prototype.V$=function(){return this.T};g.m(IDe,g.Y);var UI=Date.now().toString();var Ih={};var xJ=Symbol("injectionDeps");A3.prototype.toString=function(){return"InjectionToken("+this.name+")"}; kH1.prototype.resolve=function(p){return p instanceof oh?YJ(this,p.key,[],!0):YJ(this,p,[])};var z7;var n1=window;var $J=g.Zr("web_enable_lifecycle_monitoring")&&eF()!==0,Pa9=g.Zr("web_enable_lifecycle_monitoring");Ria.prototype.cancel=function(){for(var p=g.F(this.T),C=p.next();!C.done;C=p.next())C=C.value,C.jobId===void 0||C.g5||this.scheduler.X5(C.jobId),C.g5=!0;this.C.resolve()};g.h=L1.prototype;g.h.install=function(p){this.plugins.push(p);return this}; g.h.uninstall=function(){var p=this;g.US.apply(0,arguments).forEach(function(C){C=p.plugins.indexOf(C);C>-1&&p.plugins.splice(C,1)})}; g.h.transition=function(p,C){var V=this;$J&&YgL(this.state);var N=this.transitions.find(function(X){return Array.isArray(X.from)?X.from.find(function(d){return d===V.state&&X.Y$===p}):X.from===V.state&&X.Y$===p}); if(N){this.C&&(nQS(this.C),this.C=void 0);w6Y(this,p,C);this.state=p;$J&&Pl(this.state);N=N.action.bind(this);var H=this.plugins.filter(function(X){return X[p]}).map(function(X){return X[p]}); N(eiY(this,H),C)}else throw Error("no transition specified from "+this.state+" to "+p);}; g.h.dte=function(p){var C=g.US.apply(1,arguments);g.HW();for(var V=g.F(p),N=V.next(),H={};!N.done;H={Xf:void 0},N=V.next())H.Xf=N.value,EIS(function(X){return function(){Wl(X.Xf.name);r$(function(){return X.Xf.callback.apply(X.Xf,g.K(C))}); Qq(X.Xf.name)}}(H))}; g.h.otS=function(p){var C=g.US.apply(1,arguments),V,N,H,X;return g.I(function(d){d.C==1&&(g.HW(),V=g.F(p),N=V.next(),H={});if(d.C!=3){if(N.done)return d.EY(0);H.Us=N.value;H.XE=void 0;X=function(a){return function(){Wl(a.Us.name);var E=r$(function(){return a.Us.callback.apply(a.Us,g.K(C))}); aH(E)?a.XE=g.Zr("web_lifecycle_error_handling_killswitch")?E.then(function(){Qq(a.Us.name)}):E.then(function(){Qq(a.Us.name)},function(l){ziu(l); Qq(a.Us.name)}):Qq(a.Us.name)}}(H); EIS(X);return H.XE?g.y(d,H.XE,3):d.EY(3)}H={Us:void 0,XE:void 0};N=V.next();return d.EY(2)})}; g.h.FY=function(p){var C=g.US.apply(1,arguments),V=this,N=p.map(function(H){return{hq:function(){Wl(H.name);r$(function(){return H.callback.apply(H,g.K(C))}); Qq(H.name)}, priority:g$(V,H)}}); N.length&&(this.C=new Ria(N))}; g.Xe.Object.defineProperties(L1.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var G7;g.m(Bl,L1);Bl.prototype.W=function(p,C){var V=this;this.T=g.Vl(0,function(){V.currentState==="application_navigating"&&V.transition("none")},5E3); p(C==null?void 0:C.event)}; Bl.prototype.Y=function(p,C){this.T&&(g.rE.X5(this.T),this.T=null);p(C==null?void 0:C.event)};var ZE=[];g.YH("yt.logging.transport.getScrapedGelPayloads",function(){return ZE});pm.prototype.storePayload=function(p,C){p=Cm(p);this.store[p]?this.store[p].push(C):(this.C={},this.store[p]=[C]);this.T++;g.Zr("more_accurate_gel_parser")&&(C=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(C));return p}; pm.prototype.smartExtractMatchingEntries=function(p){if(!p.keys.length)return[];for(var C=Vm(this,p.keys.splice(0,1)[0]),V=[],N=0;N<C.length;N++)this.store[C[N]]&&p.sizeLimit&&(this.store[C[N]].length<=p.sizeLimit?(V.push.apply(V,g.K(this.store[C[N]])),delete this.store[C[N]]):V.push.apply(V,g.K(this.store[C[N]].splice(0,p.sizeLimit))));this.T-=V.length;(p==null?0:p.sizeLimit)&&V.length<(p==null?void 0:p.sizeLimit)&&(p.sizeLimit-=V.length,V.push.apply(V,g.K(this.smartExtractMatchingEntries(p)))); return V}; pm.prototype.extractMatchingEntries=function(p){p=Vm(this,p);for(var C=[],V=0;V<p.length;V++)this.store[p[V]]&&(C.push.apply(C,g.K(this.store[p[V]])),delete this.store[p[V]]);this.T-=C.length;return C}; pm.prototype.getSequenceCount=function(p){p=Vm(this,p);for(var C=0,V=0;V<p.length;V++){var N=void 0;C+=((N=this.store[p[V]])==null?void 0:N.length)||0}return C}; pm.prototype.getSequenceCount=pm.prototype.getSequenceCount;pm.prototype.extractMatchingEntries=pm.prototype.extractMatchingEntries;pm.prototype.smartExtractMatchingEntries=pm.prototype.smartExtractMatchingEntries;pm.prototype.storePayload=pm.prototype.storePayload;var hrH=g.Uk("initial_gel_batch_timeout",2E3),iOj=g.Uk("gel_queue_timeout_max_ms",6E4),sKQ=g.Uk("gel_min_batch_size",5),EK=void 0,F1S=new NY,vDj=new NY,dU1=new NY,XdH=new NY,tG,SG=!0,uz=1,XI=new Map,vQ=g.xH.ytLoggingTransportTokensToCttTargetIds_||{};g.YH("ytLoggingTransportTokensToCttTargetIds_",vQ);var mh=g.xH.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.YH("ytLoggingTransportTokensToJspbCttTargetIds_",mh);var hG={},L2X=!1;var UK=g.xH.ytLoggingGelSequenceIdObj_||{};g.YH("ytLoggingGelSequenceIdObj_",UK);var COL=[];var oDV,Z4=g.xH.ytLoggingDocDocumentNonce_;Z4||(Z4=g.OI(16),g.YH("ytLoggingDocDocumentNonce_",Z4));oDV=Z4;var IrV={d8:0,JUn:1,aua:2,v3:3,Su_:4,Qi_:5,D1S:6,SHARE:7,uVV:8,pI_:9,BoS:10,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"UNPLUGGED_BROWSE"};var u5Y=1;g.h=OK.prototype;g.h.getAsJson=function(){var p={};this.T.trackingParams!==void 0?p.trackingParams=this.T.trackingParams:(p.veType=this.T.veType,this.T.veCounter!==void 0&&(p.veCounter=this.T.veCounter),this.T.elementIndex!==void 0&&(p.elementIndex=this.T.elementIndex));this.T.dataElement!==void 0&&(p.dataElement=this.T.dataElement.getAsJson());this.T.youtubeData!==void 0&&(p.youtubeData=this.T.youtubeData);this.T.isCounterfactual&&(p.isCounterfactual=!0);return p}; g.h.getAsJspb=function(){var p=new xQ;this.T.trackingParams!==void 0?p.setTrackingParams(this.T.trackingParams):(this.T.veType!==void 0&&RO(p,2,ig(this.T.veType)),this.T.veCounter!==void 0&&RO(p,6,ig(this.T.veCounter)),this.T.elementIndex!==void 0&&RO(p,3,ig(this.T.elementIndex)),this.T.isCounterfactual&&RO(p,5,X_(!0)));if(this.T.dataElement!==void 0){var C=this.T.dataElement.getAsJspb();hP(p,xQ,7,C)}this.T.youtubeData!==void 0&&hP(p,P4X,8,this.T.jspbYoutubeData);return p}; g.h.toString=function(){return JSON.stringify(this.getAsJson())}; g.h.isClientVe=function(){return!this.T.trackingParams&&!!this.T.veType}; g.h.getLoggingDirectives=function(){return this.T.loggingDirectives};g.YH("yt_logging_screen.getRootVeType",OOY);g.YH("yt_logging_screen.getCurrentCsn",g.bz);g.YH("yt_logging_screen.getCttAuthInfo",AG);g.YH("yt_logging_screen.setCurrentScreen",kQS);var zre="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var W1Q=[{Jq:function(p){return"Cannot read property '"+p.key+"'"}, hT:{Error:[{hX:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{hX:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{hX:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{hX:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./, groups:["value","key"]},{hX:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{hX:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{hX:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{Jq:function(p){return"Cannot call '"+p.key+"'"}, hT:{TypeError:[{hX:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{hX:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{hX:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{hX:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{hX:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]}, {hX:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{Jq:function(p){return p.key+" is not defined"}, hT:{ReferenceError:[{hX:/(.*) is not defined/,groups:["key"]},{hX:/Can't find variable: (.*)/,groups:["key"]}]}}];var P19={YE:[],y8:[{callback:RrQ,weight:500}]};var kG;var PQ=new g.IL;var QK9=new Set,L1V=0,GQV=0,BmL=0,gD9=[],pwu=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Vzy=new g.I6("parallelCommand");var Xwa=new g.I6("performOnceCommand");var HKQ=new g.I6("serialCommand");var $G=void 0;var d12=g.F(Oh1({},"Z39Sdf"));d12.next();d12.next();var i_p=g.F(Oh1(null,"qqrkLd"));i_p.next();i_p.next();g.m(WQ,uR);var yk1=new OX("screen-created",WQ),de=[],iKa=l3H,iq=0,r7=new Map,BQ=new Map,Gj=new Map;g.r1(g.ca,g.Y);g.ca.prototype.subscribe=function(p,C,V){return this.fS()?0:this.Nw.subscribe(p,C,V)}; g.ca.prototype.unsubscribe=function(p,C,V){return this.fS()?!1:this.Nw.unsubscribe(p,C,V)}; g.ca.prototype.zW=function(p){return this.fS()?!1:this.Nw.zW(p)}; g.ca.prototype.publish=function(p,C){return this.fS()?!1:this.Nw.publish.apply(this.Nw,arguments)};var TiH=16/9,hj0=[.25,.5,.75,1,1.25,1.5,1.75,2],sOE=hj0.concat([3,4,5,6,7,8,9,10,15]),aBr=hj0.concat([2.5,3,3.5,4]);var tzY=1;g.m(g.mz,g.Y);g.h=g.mz.prototype; g.h.createElement=function(p,C){C=C||p.L==="svg";var V=p.B,N=p.i_;if(C){var H=document.createElementNS("http://www.w3.org/2000/svg",p.L);g.gG&&(p.X||(p.X={}),p.X.focusable="false")}else H=g.iK(p.L);if(V){if(V=va(this,H,"class",V))Fi(this,H,"class",V),this.Wc[V]=H}else if(N){V=g.F(N);for(var X=V.next();!X.done;X=V.next())this.Wc[X.value]=H;Fi(this,H,"class",N.join(" "))}N=p.Ak;V=p.j;if(N)C=va(this,H,"child",N),C!==void 0&&H.appendChild(g.h2(C));else if(V)for(N=0,V=g.F(V),X=V.next();!X.done;X=V.next())if(X= X.value)if(typeof X==="string")X=va(this,H,"child",X),X!=null&&H.appendChild(g.h2(X));else if(X.element)H.appendChild(X.element);else{var d=X;X=this.createElement(d,C);H.appendChild(X);d.TB&&(d=JO(),X.id=d,X=document.createElementNS("http://www.w3.org/2000/svg","use"),X.setAttribute("class","ytp-svg-shadow"),X.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+d),Eo(H,X,N++))}if(p=p.X)for(C=H,N=g.F(Object.keys(p)),V=N.next();!V.done;V=N.next())V=V.value,X=p[V],Fi(this,C,V,typeof X==="string"? va(this,C,V,X):X);return H}; g.h.rV=function(p){return this.Wc[p]}; g.h.u_=function(p,C){typeof C==="number"?Eo(p,this.element,C):p.appendChild(this.element)}; g.h.detach=function(){g.lK(this.element)}; g.h.update=function(p){for(var C=g.F(Object.keys(p)),V=C.next();!V.done;V=C.next())V=V.value,this.updateValue(V,p[V])}; g.h.updateValue=function(p,C){(p=this.o6["{{"+p+"}}"])&&Fi(this,p[0],p[1],C)}; g.h.CS=function(){this.Wc={};this.o6={};this.detach();g.Y.prototype.CS.call(this)};g.m(g.L,g.mz);g.h=g.L.prototype;g.h.Jc=function(p,C){this.updateValue(C||"content",p)}; g.h.show=function(){this.C4||(g.K2(this.element,"display",""),this.C4=!0)}; g.h.hide=function(){this.C4&&(g.K2(this.element,"display","none"),this.C4=!1)}; g.h.jb=function(p){p?this.show():this.hide()}; g.h.RH=function(p){this.Y=p}; g.h.listen=function(p,C,V){return this.U(this.element,p,C,V)}; g.h.U=function(p,C,V,N){V=(0,g.LY)(V,N||this);N={target:p,type:C,listener:V};this.listeners.push(N);p.addEventListener(C,V);return N}; g.h.rY=function(p){var C=this;this.listeners.forEach(function(V,N){V===p&&(V=C.listeners.splice(N,1)[0],V.target.removeEventListener(V.type,V.listener))})}; g.h.focus=function(){this.element.focus()}; g.h.CS=function(){for(;this.listeners.length;){var p=this.listeners.pop();p&&p.target.removeEventListener(p.type,p.listener)}g.mz.prototype.CS.call(this)};g.m(g.Sp,g.L);g.Sp.prototype.subscribe=function(p,C,V){return this.Y_.subscribe(p,C,V)}; g.Sp.prototype.unsubscribe=function(p,C,V){return this.Y_.unsubscribe(p,C,V)}; g.Sp.prototype.zW=function(p){return this.Y_.zW(p)}; g.Sp.prototype.publish=function(p){return this.Y_.publish.apply(this.Y_,[p].concat(g.K(g.US.apply(1,arguments))))};var EKF=new WeakSet;g.m(Kq,g.Sp);g.h=Kq.prototype;g.h.bind=function(p){this.UY||p.renderer&&this.init(p.id,p.renderer,{},p);return Promise.resolve()}; g.h.init=function(p,C,V){this.UY=p;this.element.setAttribute("id",this.UY);this.X$&&g.Ed(this.element,this.X$);this.a$=C&&C.adRendererCommands;this.Wr=C.interaction;var N;((N=this.Wr)==null?0:N.onTap)&&g.Ed(this.element,"ytp-ad-component--clickable");this.macros=V;this.J=C.trackingParams||null;var H,X;this.D=(X=(H=g.n(C.rendererContext,mL2))==null?void 0:H.loggingDirectives)!=null?X:C.loggingDirectives;this.J!=null?this.createServerVe(this.element,this.J):this.D&&(p=this.element,C=this.D,this.api.createServerVe(p, this,!0),this.api.setTrackingParams(p,C.trackingParams||null))}; g.h.clear=function(){}; g.h.hide=function(){g.Sp.prototype.hide.call(this);(this.J!=null||this.D)&&this.logVisibility(this.element,!1)}; g.h.show=function(){g.Sp.prototype.show.call(this);if(!this.kM){this.kM=!0;var p=this.a$&&this.a$.impressionCommand,C,V=(C=this.Wr)==null?void 0:C.onFirstVisible;p?this.mu(p):V&&(p=Lm(V))&&this.mu(p)}(this.J!=null||this.D)&&this.logVisibility(this.element,!0)}; g.h.onClick=function(p){if((this.J||this.D)&&!EKF.has(p)){var C=this.element;this.api.hasVe(C)&&this.C4&&this.api.logClick(C,this.interactionLoggingClientData);EKF.add(p)}var V=this.a$&&this.a$.clickCommand,N;C=(N=this.Wr)==null?void 0:N.onTap;if(V)C=this.Iv(V),this.mu(C);else{if(N=C)a:{N=this.element;p=p.composedPath();p=g.F(p);for(V=p.next();!V.done;V=p.next()){V=V.value;if(V===N)break;if(V.className.indexOf("ytp-ad-component--clickable")>=0){N=!1;break a}}N=!0}N&&(C=Lm(C))&&this.mu(C)}}; g.h.Iv=function(p){return p}; g.h.rp=function(p){var C=this.sY;C.D=!0;C.C=p.touches.length;C.T.isActive()&&(C.T.stop(),C.W=!0);p=p.touches;C.Y=bdL(C,p)||p.length!=1;var V=p.item(0);C.Y||!V?(C.J=Infinity,C.Z=Infinity):(C.J=V.clientX,C.Z=V.clientY);for(V=C.V.length=0;V<p.length;V++){var N=p.item(V);C.V.push(N.identifier)}}; g.h.I7=function(p){var C=this.sY;p=p.changedTouches.item(0);var V;if(V=ey()){V=g.f0();var N="";if(WyL())N=/Windows (?:NT|Phone) ([0-9.]+)/,N=(V=N.exec(V))?V[1]:"0.0";else if(ey())N=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,N=(V=N.exec(V))&&V[1].replace(/_/g,".");else if(P5())N=/Mac OS X ([0-9_.]+)/,N=(V=N.exec(V))?V[1].replace(/_/g,"."):"10";else if(Dv(g.f0(),"KaiOS"))N=/(?:KaiOS)\/(\S+)/i,N=(V=N.exec(V))&&V[1];else if(gHY())N=/Android\s+([^\);]+)(\)|;)/,N=(V=N.exec(V))&&V[1];else if(zp()?qc.platform=== "Chrome OS":bP("CrOS"))N=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,N=(V=N.exec(V))&&V[1];V=!(g.U1(N||"",8)>=0)}if(V||p&&Math.pow(p.clientX-C.J,2)+Math.pow(p.clientY-C.Z,2)>25)C.S=!0}; g.h.xS=function(p){if(this.sY){var C=this.sY,V=p.changedTouches;V&&C.D&&C.C==1&&!C.S&&!C.W&&!C.Y&&bdL(C,V)&&(C.a$=p,C.T.start());C.C=p.touches.length;C.C===0&&(C.D=!1,C.S=!1,C.V.length=0);C.W=!1}}; g.h.mu=function(p){this.layoutId?this.l_.executeCommand(p,this.layoutId):g.nm(new g.Bw("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.h.createServerVe=function(p,C){this.api.createServerVe(p,this);this.api.setTrackingParams(p,C)}; g.h.logVisibility=function(p,C){this.api.hasVe(p)&&this.api.logVisibility(p,C,this.interactionLoggingClientData)}; g.h.CS=function(){this.clear(null);this.rY(this.qo);for(var p=g.F(this.Vn),C=p.next();!C.done;C=p.next())this.rY(C.value);g.Sp.prototype.CS.call(this)};g.m(nq,Kq); nq.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.T=C;if(C.text==null&&C.icon==null)g.eG(Error("ButtonRenderer did not have text or an icon set."));else{switch(C.style||null){case "STYLE_UNKNOWN":p="ytp-ad-button-link";break;default:p=null}p!=null&&g.Ed(this.element,p);C.text!=null&&(p=g.uq(C.text),g.Sy(p)||(this.element.setAttribute("aria-label",p),this.V=new g.Sp({L:"span",B:"ytp-ad-button-text",Ak:p}),g.R(this,this.V),this.V.u_(this.element)));C.accessibilityData&&C.accessibilityData.accessibilityData&& C.accessibilityData.accessibilityData.label&&!g.Sy(C.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",C.accessibilityData.accessibilityData.label);C.icon!=null&&(C=RS(C.icon,this.S),C!=null&&(this.C=new g.Sp({L:"span",B:"ytp-ad-button-icon",j:[C]}),g.R(this,this.C)),this.W?Eo(this.element,this.C.element,0):this.C.u_(this.element))}}; nq.prototype.clear=function(){this.hide()}; nq.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p);p=g.F(olS(this));for(var C=p.next();!C.done;C=p.next())C=C.value,this.layoutId?this.l_.executeCommand(C,this.layoutId):g.nm(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.m(ep,g.Y);ep.prototype.CS=function(){this.C&&g.fK(this.C);this.T.clear();Pa=null;g.Y.prototype.CS.call(this)}; ep.prototype.register=function(p,C){C&&this.T.set(p,C)}; var Pa=null;g.m(Lq,Kq); Lq.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);p=C.hoverText||null;C=C.button&&g.n(C.button,g.z$)||null;C==null?g.nm(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,void 0,void 0,void 0,void 0,this.V),g.R(this,this.button),this.button.init(lq("button"),C,this.macros),p&&this.button.element.setAttribute("aria-label",g.uq(p)),this.button.u_(this.element),this.Z&&!g.aL(this.button.element, "ytp-ad-clickable")&&g.Ed(this.button.element,"ytp-ad-clickable"),this.V&&(g.Ed(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.G("clean_player_style_fix_on_web")&&g.Ed(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),p&&(this.C=new g.Sp({L:"div",B:"ytp-ad-hover-text-container"}),this.W&&(C=new g.Sp({L:"div",B:"ytp-ad-hover-text-callout"}),C.u_(this.C.element),g.R(this,C)),g.R(this,this.C),this.C.u_(this.element),C=we(p),Eo(this.C.element,C,0)), this.show())}; Lq.prototype.hide=function(){this.button&&this.button.hide();this.C&&this.C.hide();Kq.prototype.hide.call(this)}; Lq.prototype.show=function(){this.button&&this.button.show();Kq.prototype.show.call(this)};g.m(Wa,Kq); Wa.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);V=(p=C.thumbnail)&&ge(p)||"";g.Sy(V)?Math.random()<.01&&g.eG(Error("Found AdImage without valid image URL")):(this.T?g.K2(this.element,"backgroundImage","url("+V+")"):Vf(this.element,{src:V}),Vf(this.element,{alt:p&&p.accessibility&&p.accessibility.label||""}),C&&C.adRendererCommands&&C.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Wa.prototype.clear=function(){this.hide()};g.m(QD,Kq);g.h=QD.prototype;g.h.hide=function(){Kq.prototype.hide.call(this);this.V&&this.V.focus()}; g.h.show=function(){this.V=document.activeElement;Kq.prototype.show.call(this);this.S.focus()}; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.C=C;C.dialogMessages||C.title!=null?C.confirmLabel==null?g.nm(Error("ConfirmDialogRenderer.confirmLabel was not set.")):C.cancelLabel==null?g.nm(Error("ConfirmDialogRenderer.cancelLabel was not set.")):z8H(this,C):g.nm(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.h.clear=function(){g.Am(this.T);this.hide()}; g.h.Vd=function(){this.hide()}; g.h.BZ=function(){var p=this.C.cancelEndpoint;p&&(this.layoutId?this.l_.executeCommand(p,this.layoutId):g.nm(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.h.Sf=function(){var p=this.C.confirmNavigationEndpoint||this.C.confirmEndpoint;p&&(this.layoutId?this.l_.executeCommand(p,this.layoutId):g.nm(Error("Missing layoutId for confirm dialog.")));this.hide()};g.m(re,Kq);g.h=re.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.V=C;if(C.defaultText==null&&C.defaultIcon==null)g.nm(Error("ToggleButtonRenderer must have either text or icon set."));else if(C.defaultIcon==null&&C.toggledIcon!=null)g.nm(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(C.style){switch(C.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":p="ytp-ad-toggle-button-default-style";break;default:p=null}p!=null&&g.Ed(this.S,p)}p={};C.defaultText? (V=g.uq(C.defaultText),g.Sy(V)||(p.buttonText=V,this.api.K().experiments.OY("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",V),this.api.K().experiments.OY("fix_h5_toggle_button_a11y")&&this.C.setAttribute("aria-label",V))):g.o9(this.Sa,!1);C.defaultTooltip&&(p.tooltipText=C.defaultTooltip,this.T.hasAttribute("aria-label")||this.C.setAttribute("aria-label",C.defaultTooltip));C.defaultIcon?(V=RS(C.defaultIcon),this.updateValue("untoggledIconTemplateSpec",V),C.toggledIcon?(this.b_= !0,V=RS(C.toggledIcon),this.updateValue("toggledIconTemplateSpec",V)):(g.o9(this.Z,!0),g.o9(this.W,!1)),g.o9(this.T,!1)):g.o9(this.C,!1);g.k5(p)||this.update(p);C.isToggled&&(g.Ed(this.S,"ytp-ad-toggle-button-toggled"),this.toggleButton(C.isToggled));Ba(this);this.U(this.element,"change",this.U4);this.show()}}; g.h.onClick=function(p){this.Vn.length>0&&(this.toggleButton(!this.isToggled()),this.U4());Kq.prototype.onClick.call(this,p)}; g.h.U4=function(){g.Tz(this.S,"ytp-ad-toggle-button-toggled",this.isToggled());for(var p=g.F(R8u(this,this.isToggled())),C=p.next();!C.done;C=p.next())C=C.value,this.layoutId?this.l_.executeCommand(C,this.layoutId):g.nm(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Ba(this)}; g.h.clear=function(){this.hide()}; g.h.toggleButton=function(p){g.Tz(this.S,"ytp-ad-toggle-button-toggled",p);this.T.checked=p;Ba(this)}; g.h.isToggled=function(){return this.T.checked};g.m(GB,I_);GB.prototype.Y=function(p){if(Array.isArray(p)){p=g.F(p);for(var C=p.next();!C.done;C=p.next())C=C.value,C instanceof nlj&&this.S(C)}};g.m(pt,Kq);g.h=pt.prototype;g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);C.reasons?C.confirmLabel==null?g.nm(Error("AdFeedbackRenderer.confirmLabel was not set.")):(C.cancelLabel==null&&g.eG(Error("AdFeedbackRenderer.cancelLabel was not set.")),C.title==null&&g.eG(Error("AdFeedbackRenderer.title was not set.")),$51(this,C)):g.nm(Error("AdFeedbackRenderer.reasons were not set."))}; g.h.clear=function(){OB(this.W);OB(this.Z);this.S.length=0;this.hide()}; g.h.hide=function(){this.T&&this.T.hide();this.C&&this.C.hide();Kq.prototype.hide.call(this);this.V&&this.V.focus()}; g.h.show=function(){this.T&&this.T.show();this.C&&this.C.show();this.V=document.activeElement;Kq.prototype.show.call(this);this.W.focus()}; g.h.IQ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.h.tr$=function(){this.hide()}; Ct.prototype.V$=function(){return this.T.element}; Ct.prototype.getCommand=function(){return this.C}; Ct.prototype.isChecked=function(){return this.V.checked};g.m(j2,QD);j2.prototype.Vd=function(p){QD.prototype.Vd.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; j2.prototype.BZ=function(p){QD.prototype.BZ.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; j2.prototype.Sf=function(p){QD.prototype.Sf.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.m(V_,Kq);g.h=V_.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.W=C;if(C.dialogMessage==null&&C.title==null)g.nm(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{C.confirmLabel==null&&g.eG(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(p=C.closeOverlayRenderer&&g.n(C.closeOverlayRenderer,g.z$)||null)this.T=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.R(this,this.T),this.T.init(lq("button"),p,this.macros),this.T.u_(this.element);C.title&&(p=g.uq(C.title),this.updateValue("title",p));if(C.adReasons)for(p=C.adReasons,V=0;V<p.length;V++){var N=we(p[V]);if(!g.Sy(N.textContent)){var H=dW("LI");H.appendChild(N);this.vr.appendChild(H)}}else g.o9(this.vr,!1);C.dialogMessage&&(p=we(C.dialogMessage,!0),this.R$.appendChild(p));C.confirmLabel&&(p=g.uq(C.confirmLabel),this.updateValue("confirmLabel",p));C.muteAdRenderer&&(C=g.n(C.muteAdRenderer,g.z$)||null)&& (p=C.navigationEndpoint&&g.n(C.navigationEndpoint,KqY)||null,V=C.navigationEndpoint&&g.n(C.navigationEndpoint,ET8)||null,p==null&&V==null?g.eG(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(p?L_s(this,p):V&&gle(this,V),this.V=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,["ytp-ad-info-dialog-mute-button"],"button",!0),g.R(this,this.V),this.V.init(lq("button"),C,this.macros),this.V.listen("click", this.EMn,this),this.V.u_(this.KS)));W_u(this)}}; g.h.clear=function(){OB(this.Z);this.hide()}; g.h.hide=function(){this.C?this.C.hide():this.S&&this.S.hide();this.T&&this.T.hide();this.V&&this.V.hide();Kq.prototype.hide.call(this);this.b_&&this.b_.focus()}; g.h.show=function(){this.T&&this.T.show();this.V&&this.V.show();if(!this.Ga){for(var p=g.F(this.W&&this.W.impressionEndpoints||[]),C=p.next();!C.done;C=p.next())C=C.value,this.layoutId?this.l_.executeCommand(C,this.layoutId):g.nm(Error("Missing layoutId for ad info dialog."));this.Ga=!0}this.b_=document.activeElement;Kq.prototype.show.call(this);this.Z.focus()}; g.h.Km=function(){if(this.W&&this.W.confirmServiceEndpoint){var p=this.W.confirmServiceEndpoint;this.layoutId?this.l_.executeCommand(p,this.layoutId):g.nm(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()}; g.h.EMn=function(){var p=this.C?this.C:this.S;p&&!p.C4&&(this.hide(),p.show())};g.m(NN,Lq);NN.prototype.init=function(p,C,V){Lq.prototype.init.call(this,p,C,V);p=C.button&&g.n(C.button,g.z$)||null;p!=null&&(pWX(this,p,V),this.api.G("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())}; NN.prototype.hide=function(){this.button&&this.button.hide();this.T&&this.T.hide();Lq.prototype.hide.call(this)}; NN.prototype.show=function(){this.button&&this.button.show();Lq.prototype.show.call(this)}; NN.prototype.clear=function(){this.hide()};g.m(HE,Kq); HE.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.T=C;this.isTemplated()||g.ce(this.element,DU(this.T));if(C.backgroundImage&&(p=(p=C.backgroundImage.thumbnail)?ge(p):"",V=(V=this.api.getVideoData(1))&&V.Ov,p&&V&&(this.element.style.backgroundImage="url("+p+")",this.element.style.backgroundSize="100%"),C.style&&C.style.adTextStyle))switch(C.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(p=g.dI(C.targetId))&&this.element.setAttribute("data-tooltip-target-id",p); C&&C.adRendererCommands&&C.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()}; HE.prototype.isTemplated=function(){return this.T.isTemplated||!1}; HE.prototype.clear=function(){this.hide()};var i3v={seekableStart:0,seekableEnd:1,current:0};g.m(dk,Kq);dk.prototype.clear=function(){this.dispose()};g.m(g.a0,g.Y);g.h=g.a0.prototype;g.h.show=function(p){this.state!==1&&this.state!==2&&(this.state===4&&this.Rl(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.T&&this.T()):this.element.C4||(Eu(this,!0),this.state=1,p?this.delay.start(p):this.Rl()))}; g.h.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.C4&&(Eu(this,!0),this.state=4,this.delay.start(this.V)))}; g.h.Rl=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:Eu(this,!1);this.state=3;this.delay.start(this.C);break;case 3:this.state=null;this.T&&this.T();break;case 4:this.element.hide();Eu(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}}; g.h.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.Rl()}; g.h.CS=function(){this.element.fS()||this.element.element.removeAttribute("aria-hidden");g.Y.prototype.CS.call(this)};g.m(l$,dk);g.h=l$.prototype; g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);p=C.durationMilliseconds;typeof p==="number"&&p<0&&g.nm(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+p));this.Qn&&(this.S?g.Ed(this.C.element,"modern-countdown-next-to-thumbnail"):g.Ed(this.C.element,"countdown-next-to-thumbnail"));p=C.durationMilliseconds;this.vr=p==null||p===0?this.T.Z8():p;if(C.templatedCountdown)var N=C.templatedCountdown.templatedAdText;else C.staticPreview&&(N=C.staticPreview); this.V.init(lq("ad-text"),N,V);(N=this.api.getVideoData(1))&&N.Ov&&C.thumbnail?this.W.init(lq("ad-image"),C.thumbnail,V):(this.b_.hide(),this.S&&this.Qn&&g.Ed(this.V.element,"ytp-ad-preview-text-modern-postroll"))}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.C.hide();this.V.hide();this.W.hide();h7(this);dk.prototype.hide.call(this)}; g.h.show=function(){i$(this);this.C.show();this.V.show();this.W.show();dk.prototype.show.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T!=null){var p=this.T.getProgressState();p!=null&&p.current!=null&&(p=1E3*p.current,!this.R$&&p>=this.vr?(this.Sa.hide(),this.R$=!0,this.publish("i")):this.V&&this.V.isTemplated()&&(p=Math.max(0,Math.ceil((this.vr-p)/1E3)),p!=this.KS&&(XK(this.V,{TIME_REMAINING:String(p)}),this.KS=p)))}};g.m(cE,dk);g.h=cE.prototype; g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);if(C.image&&C.image.thumbnail)if(C.headline)if(C.description)if((p=C.actionButton&&g.n(C.actionButton,g.z$))&&p.navigationEndpoint){var N=this.api.getVideoData(2);if(N!=null)if(C.image&&C.image.thumbnail){var H=C.image.thumbnail.thumbnails;H!=null&&H.length>0&&g.Sy(g.dI(H[0].url))&&(H[0].url=N.profilePicture)}else g.eG(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.V.init(lq("ad-image"),C.image,V);this.W.init(lq("ad-text"), C.headline,V);this.S.init(lq("ad-text"),C.description,V);this.C.init(lq("button"),p,V);V=jJ(this.C.element);Cg(this.C.element,V+" This link opens in new tab");this.b_=p.navigationEndpoint;this.api.WE()||this.show();this.api.K().G("enable_larger_flyout_cta_on_desktop")&&(this.rV("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.rV("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.rV("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.rV("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.rV("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.rV("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.C.element.classList.add("ytp-flyout-cta-action-button-large"),this.C.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.rV("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.lZ.bind(this));this.Sa=C.startMs||0;i$(this)}else g.nm(Error("FlyoutCtaRenderer has no valid action button."));else g.nm(Error("FlyoutCtaRenderer has no description AdText."));else g.nm(Error("FlyoutCtaRenderer has no headline AdText."));else g.eG(Error("FlyoutCtaRenderer has no image."))}; g.h.onClick=function(p){dk.prototype.onClick.call(this,p);this.api.pauseVideo();!g.t2(this.C.element,p.target)&&this.b_&&(this.layoutId?this.l_.executeCommand(this.b_,this.layoutId):g.nm(Error("Missing layoutId for flyout cta.")))}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();(p&&p.current||this.vr)&&1E3*p.current>=this.Sa&&(h7(this),g.tk(this.element,"ytp-flyout-cta-inactive"),this.C.element.removeAttribute("tabIndex"))}}; g.h.NO=function(){this.clear()}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.lZ.bind(this))}; g.h.show=function(){this.C&&this.C.show();dk.prototype.show.call(this)}; g.h.hide=function(){this.C&&this.C.hide();dk.prototype.hide.call(this)}; g.h.lZ=function(p){p=="hidden"?this.show():this.hide()};g.m(T6,Kq);g.h=T6.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.T=C;if(this.T.rectangle)for(p=this.T.likeButton&&g.n(this.T.likeButton,vD),C=this.T.dislikeButton&&g.n(this.T.dislikeButton,vD),this.V.init(lq("toggle-button"),p,V),this.C.init(lq("toggle-button"),C,V),this.U(this.element,"change",this.gk),this.S.show(100),this.show(),V=g.F(this.T&&this.T.impressionCommands||[]),p=V.next();!p.done;p=V.next())p=p.value,this.layoutId?this.l_.executeCommand(p,this.layoutId):g.nm(Error("Missing layoutId for instream user sentiment."))}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.V.hide();this.C.hide();Kq.prototype.hide.call(this)}; g.h.show=function(){this.V.show();this.C.show();Kq.prototype.show.call(this)}; g.h.gk=function(){oca(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.Jk("onYtShowToast",this.T.postMessageAction);this.S.hide()}; g.h.onClick=function(p){this.Vn.length>0&&this.gk();Kq.prototype.onClick.call(this,p)};g.m(MN,g.Y);g.h=MN.prototype;g.h.CS=function(){this.reset();g.Y.prototype.CS.call(this)}; g.h.reset=function(){g.Am(this.S);this.Y=!1;this.T&&this.T.stop();this.W.stop();this.V&&(this.V=!1,this.D.play())}; g.h.start=function(){this.reset();this.S.U(this.C,"mouseover",this.Je,this);this.S.U(this.C,"mouseout",this.O4,this);this.a$&&(this.S.U(this.C,"focusin",this.Je,this),this.S.U(this.C,"focusout",this.O4,this));this.T?this.T.start():(this.Y=this.V=!0,g.K2(this.C,{opacity:this.Z}))}; g.h.Je=function(){this.V&&(this.V=!1,this.D.play());this.W.stop();this.T&&this.T.stop()}; g.h.O4=function(){this.Y?this.W.start():this.T&&this.T.start()}; g.h.TZ=function(){this.V||(this.V=!0,this.J.play(),this.Y=!0)};var Nqu=[new J7("b.f_",!1,0),new J7("j.s_",!1,2),new J7("r.s_",!1,4),new J7("e.h_",!1,6),new J7("i.s_",!0,8),new J7("s.t_",!1,10),new J7("p.h_",!1,12),new J7("s.i_",!1,14),new J7("f.i_",!1,16),new J7("a.b_",!1,18),new J7("a.o_",!1),new J7("g.o_",!1,22),new J7("p.i_",!1,24),new J7("p.m_",!1),new J7("i.k_",!0,28),new J7("n.k_",!0,20),new J7("i.f_",!1),new J7("a.s_",!0),new J7("m.c_",!1),new J7("n.h_",!1,26),new J7("o.p_",!1)].reduce(function(p,C){p[C.C]=C;return p},{});g.m(Z7,dk);g.h=Z7.prototype; g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);this.b_=C;(this.Sa=XWL(this))&&g.eG(Error("hasAdControlInClickCommands_ is true."));if(!C||g.k5(C))g.nm(Error("SkipButtonRenderer was not specified or empty."));else if(!C.message||g.k5(C.message))g.nm(Error("SkipButtonRenderer.message was not specified or empty."));else{p=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};C=RS(p);C==null?g.nm(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+p.iconType+".")): (this.S=new g.Sp({L:"button",i_:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],j:[{L:"span",B:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",j:[C]}]}),g.R(this,this.S),this.S.u_(this.V.element),this.C=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,"ytp-ad-skip-button-text"),this.W&&this.C.element.classList.add("ytp-ad-skip-button-text-centered"),this.C.init(lq("ad-text"),this.b_.message,V),g.R(this,this.C),Eo(this.S.element,this.C.element, 0));var N=N===void 0?null:N;V=this.api.K();!(this.Vn.length>0)&&V.C&&(rB?0:"ontouchstart"in document.documentElement&&(Oes()||Ze()))&&(this.rY(this.qo),N&&this.rY(N),this.Vn=[this.U(this.element,"touchstart",this.rp,this),this.U(this.element,"touchmove",this.I7,this),this.U(this.element,"touchend",this.xS,this)])}}; g.h.clear=function(){this.vr.reset();this.hide()}; g.h.hide=function(){this.V.hide();this.C&&this.C.hide();h7(this);dk.prototype.hide.call(this)}; g.h.onClick=function(p){if(this.S!=null){if(p){var C=p||window.event;C.returnValue=!1;C.preventDefault&&C.preventDefault()}var V;if(jpQ(p,{contentCpn:((V=this.api.getVideoData(1))==null?void 0:V.clientPlaybackNonce)||""})===0)this.api.Jk("onAbnormalityDetected");else if(dk.prototype.onClick.call(this,p),this.publish("j"),this.api.K().G("embeds_web_enable_ad_skipped_event_publishing")&&this.api.Jk("onAdSkip"),this.R$||!this.Sa)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.h.Iv=function(p){if(!this.R$)return this.Sa&&S2("SkipButton click commands not pruned while ALC exist"),p;var C,V=(C=g.n(p,g.Uu))==null?void 0:C.commands;if(!V)return p;p=[];for(C=0;C<V.length;C++){var N=V[C];N.adLifecycleCommand&&H3u(N.adLifecycleCommand)||N.pingingEndpoint||N.adPingingEndpoint||p.push(N)}return{commandExecutorCommand:{commands:p}}}; g.h.show=function(){this.vr.start();this.V.show();this.C&&this.C.show();i$(this);dk.prototype.show.call(this);this.KS&&this.api.K().G("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)}; g.h.NO=function(){this.publish("k")}; g.h.mY=function(){};g.m(ft,dk);g.h=ft.prototype; g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);p=C&&C.preskipRenderer&&g.n(C.preskipRenderer,Yr)||{};(p=g.k5(p)?null:p)?(this.W=p.durationMilliseconds!=null&&p.durationMilliseconds!==void 0?p.durationMilliseconds:5E3,this.C=new l$(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.T,Wb(this.api.K().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&I3(this.api.K())),this.C.init(lq("preskip-component"),p,V),t7(this.C),g.R(this,this.C),this.C.u_(this.element)): C.skipOffsetMilliseconds&&(this.W=C.skipOffsetMilliseconds);p=C&&C.skippableRenderer&&g.n(C.skippableRenderer,BYc)||{};p=g.k5(p)?null:p;p==null?g.nm(Error("SkipButtonRenderer was not set in player response.")):(this.V=new Z7(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.T,this.b_),this.V.init(lq("skip-button"),p,V),g.R(this,this.V),this.V.u_(this.element),this.api.K().experiments.OY("enable_skip_to_next_messaging")&&(C=g.dI(C.targetId))&&(V=this.V,V.S!=null&&(V.KS=!0,V.S.element.setAttribute("data-tooltip-target-id", C),V.S.element.setAttribute("data-tooltip-target-fixed",""))),this.show())}; g.h.show=function(){this.S&&this.V?this.V.show():this.C&&this.C.show();i$(this);dk.prototype.show.call(this)}; g.h.NO=function(){}; g.h.clear=function(){this.C&&this.C.clear();this.V&&this.V.clear();h7(this);dk.prototype.hide.call(this)}; g.h.hide=function(){this.C&&this.C.hide();this.V&&this.V.hide();h7(this);dk.prototype.hide.call(this)}; g.h.mY=function(){1E3*this.T.getProgressState().current>=this.W&&dpL(this,!0)};g.m(Ou,nq);Ou.prototype.init=function(p,C,V){nq.prototype.init.call(this,p,C,V);p=!1;C.text!=null&&(p=g.uq(C.text),p=!g.Sy(p));p?C.navigationEndpoint==null?g.eG(Error("No visit advertiser clickthrough provided in renderer,")):C.style!=="STYLE_UNKNOWN"?g.eG(Error("Button style was not a link-style type in renderer,")):this.show():g.eG(Error("No visit advertiser text was present in the renderer."))};g.m(y_,Kq); y_.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);p=C.text;g.Sy(DU(p))?g.eG(Error("SimpleAdBadgeRenderer has invalid or empty text")):(p&&p.text&&(C=p.text,this.V&&!this.C&&(C=this.api.K(),C=p.text+" "+(C&&C.C?"\u2022":"\u00b7")),C={text:C,isTemplated:p.isTemplated},p.style&&(C.style=p.style),p.targetId&&(C.targetId=p.targetId),p=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),p.init(lq("simple-ad-badge"),C,V),p.u_(this.element),g.R(this,p)),this.show())}; y_.prototype.clear=function(){this.hide()};g.m(qN,tO);g.m(I0,g.ca);g.h=I0.prototype;g.h.Z8=function(){return this.durationMs}; g.h.stop=function(){this.T&&this.qZ.rY(this.T)}; g.h.m6=function(p){this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:p.current};this.publish("h")}; g.h.getProgressState=function(){return this.C}; g.h.V0=function(p){g.u$(p,2)&&this.publish("g")};g.m(b$,g.ca);g.h=b$.prototype;g.h.Z8=function(){return this.durationMs}; g.h.start=function(){this.T||(this.T=!0,this.Yt.start())}; g.h.stop=function(){this.T&&(this.T=!1,this.Yt.stop())}; g.h.m6=function(){this.Xg+=100;var p=!1;this.Xg>this.durationMs&&(this.Xg=this.durationMs,this.Yt.stop(),p=!0);this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Xg/1E3};this.publish("h");p&&this.publish("g")}; g.h.getProgressState=function(){return this.C};g.m(kU,dk);g.h=kU.prototype;g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);var N;if(C==null?0:(N=C.templatedCountdown)==null?0:N.templatedAdText){p=C.templatedCountdown.templatedAdText;if(!p.isTemplated){g.eG(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.C=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);this.C.init(lq("ad-text"),p,{});this.C.u_(this.element);g.R(this,this.C)}this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){h7(this);dk.prototype.hide.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T!=null){var p=this.T.getProgressState();if(p!=null&&p.current!=null&&this.C){var C=this.T instanceof I0?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:p.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof b$?p.seekableEnd:this.api.getDuration(2,!1);p=p.current;C=this.api.K().experiments.OY("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(C-p,0):C-p;XK(this.C,{FORMATTED_AD_DURATION_REMAINING:String(g.A7(C)), TIME_REMAINING:String(Math.ceil(C))})}}}; g.h.show=function(){i$(this);dk.prototype.show.call(this)};g.m(xU,HE);xU.prototype.onClick=function(p){HE.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType)};g.m(z6,Kq);z6.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(p=C.content){g.ce(this.element,p);var V,N;C=((V=C.interaction)==null?void 0:(N=V.accessibility)==null?void 0:N.label)||p;this.element.setAttribute("aria-label",C)}else g.nm(Error("AdSimpleAttributedString does not have text content"))}; z6.prototype.clear=function(){this.hide()}; z6.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p)};g.m(R0,Kq); R0.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});(p=C.label)&&p.content&&!g.Sy(p.content)?(this.adBadgeText.init(lq("ad-simple-attributed-string"),new YU(p)),(C=C.adPodIndex)&&C.content&&!g.Sy(C.content)&&(this.T=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),this.T.u_(this.element),g.R(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(lq("ad-simple-attributed-string"),new YU(C))),this.element.classList.add(this.C?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.nm(Error("No label is returned in AdBadgeViewModel."))}; R0.prototype.show=function(){this.adBadgeText.show();var p;(p=this.T)==null||p.show();Kq.prototype.show.call(this)}; R0.prototype.hide=function(){this.adBadgeText.hide();var p;(p=this.T)==null||p.hide();Kq.prototype.hide.call(this)};g.m(nt,Kq); nt.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});(p=C.adPodIndex)&&p.content&&!g.Sy(p.content)&&(this.T=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),this.T.u_(this.element),g.R(this,this.T),this.T.init(lq("ad-simple-attributed-string"),new YU(p)),(this.api.K().G("clean_player_style_fix_on_web")?C.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.C||C.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); this.element.classList.add("ytp-ad-pod-index--stark");this.api.G("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; nt.prototype.show=function(){var p;(p=this.T)==null||p.show();Kq.prototype.show.call(this)}; nt.prototype.hide=function(){var p;(p=this.T)==null||p.hide();Kq.prototype.hide.call(this)};g.m(e2,Kq); e2.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(C!=null&&C.text){var V;if(((V=C.text)==null?0:V.content)&&!g.Sy(C.text.content)){this.T=new g.Sp({L:"div",B:"ytp-ad-disclosure-banner__text",Ak:C.text.content});g.R(this,this.T);this.T.u_(this.element);var N,H;p=((N=C.interaction)==null?void 0:(H=N.accessibility)==null?void 0:H.label)||C.text.content;this.element.setAttribute("aria-label",p);var X;if((X=C.interaction)==null?0:X.onTap)this.C=new g.Sp({L:"div",B:"ytp-ad-disclosure-banner__chevron",j:[g.Oy()]}), g.R(this,this.C),this.C.u_(this.element);this.show()}}else g.nm(Error("No banner text found in AdDisclosureBanner."))}; e2.prototype.clear=function(){this.hide()};PE.prototype.getLength=function(){return this.T-this.C};g.m($U,g.Sp);$U.prototype.m6=function(){var p=this.C.getProgressState(),C=p.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.K().G("show_preskip_progress_bar_for_skippable_ads")&&(C=this.V?this.V/1E3:p.seekableEnd);p=wk(new PE(p.seekableStart,C),p.current,0);this.progressBar.style.width=p*100+"%"}; $U.prototype.onStateChange=function(){g.yj(this.api.K())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.C.subscribe("h",this.m6,this),this.m6()):this.T!==-1&&(this.hide(),this.C.zW(this.T),this.T=-1))};g.m(Lt,Kq); Lt.prototype.init=function(p,C,V,N){Kq.prototype.init.call(this,p,C,V);V=!0;if(C.skipOrPreviewRenderer){var H=C.skipOrPreviewRenderer;p=g.n(H,JV);H=g.n(H,Yr);p?(H=new ft(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C,this.b_),H.u_(this.Z),H.init(lq("skip-button"),p,this.macros),g.R(this,H)):H&&!this.api.K().experiments.OY("disable_ad_preview_for_instream_ads")&&(p=new l$(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C,!1),p.u_(this.Z),p.init(lq("ad-preview"),H, this.macros),t7(p),g.R(this,p));if(p=g.n(C.skipOrPreviewRenderer,JV)){V=!1;var X=p.skipOffsetMilliseconds}}C.brandInteractionRenderer&&(p=C.brandInteractionRenderer.brandInteractionRenderer,H=new T6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),H.u_(this.vr),H.init(lq("instream-user-sentiment"),p,this.macros),g.R(this,H));if(p=g.n(C,$cP))if(p=g.n(p,$cP))H=new cE(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C,!!C.showWithoutLinkedMediaLayout),g.R(this,H), H.u_(this.W),H.init(lq("flyout-cta"),p,this.macros);p=(this.api.K().G("disable_ad_duration_remaining_for_instream_video_ads")||C.adPodIndex!==void 0)&&!1;N=N&&N.videoAdDurationSeconds;if(C.adBadgeRenderer){var d=C.adBadgeRenderer;H=g.n(d,LD);H!=null?(d=new R0(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,p),g.R(this,d),d.u_(this.T),d.init(lq("ad-badge"),H,this.macros),this.V=d.element):(H=d.simpleAdBadgeRenderer,H==null&&(H={text:{text:"Ad",isTemplated:!1}}),d=new y_(this.api,this.layoutId, this.interactionLoggingClientData,this.l_,!0),g.R(this,d),d.u_(this.T),d.init(lq("simple-ad-badge"),H,this.macros))}C.adPodIndex&&(H=g.n(C.adPodIndex,jf1),H!=null&&(V=new nt(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,V),g.R(this,V),V.u_(this.T),V.init(lq("ad-pod-index"),H)));C.adDurationRemaining&&!C.showWithoutLinkedMediaLayout&&(V=C.adDurationRemaining.adDurationRemainingRenderer,V==null&&(V={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}), N=new kU(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C,N,p),g.R(this,N),N.u_(this.T),N.init(lq("ad-duration-remaining"),V,this.macros),p&&N.element.classList.add("ytp-ad-duration-remaining-autohide"));C.adInfoRenderer&&(N=g.n(C.adInfoRenderer,xr))&&(V=new NN(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.element,void 0,p),g.R(this,V),this.api.K().G("enable_ad_pod_index_autohide")&&this.V!==null?this.T.insertBefore(V.element,this.V.nextSibling):V.u_(this.T), V.init(lq("ad-info-hover-text-button"),N,this.macros));C.visitAdvertiserRenderer&&(V=g.n(C.visitAdvertiserRenderer,g.z$))&&(H=spa(this)&&this.S?this.S:this.T)&&(N=new Ou(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,N),N.u_(H),N.init(lq("visit-advertiser"),V,this.macros),Go(N.element),V=jJ(N.element),Cg(N.element,V+" This link opens in new tab"));!(N=this.api.K())||g.fI(N)||N.controlsType!="3"&&!N.disableOrganicUi||(X=new $U(this.api,this.C,X,p),X.u_(this.Ga),g.R(this, X));C.adDisclosureBannerRenderer&&(C=g.n(C.adDisclosureBannerRenderer,Crp))&&(X=new e2(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),X.u_(this.Sa),X.init(lq("ad-disclosure-banner"),C),g.R(this,X));this.api.K().G("enable_updated_html5_player_focus_style")&&g.Ed(this.element,"ytp-ad-player-overlay-updated-focus-style");p&&this.api.K().C&&this.T.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; Lt.prototype.clear=function(){this.hide()};rk.prototype.set=function(p,C,V){V=V!==void 0?Date.now()+V:void 0;this.T.set(p,C,V)}; rk.prototype.get=function(p){return this.T.get(p)}; rk.prototype.remove=function(p){this.T.remove(p)};var CS=null,ji=null,VQ=null,Tqv=null;g.YH("yt.www.ads.eventcache.getLastCompanionData",function(){return CS}); g.YH("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.YH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return ji}); g.YH("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return VQ}); g.YH("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Tqv});var J1v=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);NQ.prototype.handleResponse=function(p,C){if(!C)throw Error("request needs to be passed into ConsistencyService");var V,N;C=((V=C.dj.context)==null?void 0:(N=V.request)==null?void 0:N.consistencyTokenJars)||[];var H;(p=(H=p.responseContext)==null?void 0:H.consistencyTokenJar)&&this.replace(C,p)}; NQ.prototype.replace=function(p,C){p=g.F(p);for(var V=p.next();!V.done;V=p.next())delete this.T[V.value.encryptedTokenJarContents];vtu(this,C)};var lBY=window.location.hostname.split(".").slice(-2).join("."),UU;XX.getInstance=function(){UU=g.zV("yt.clientLocationService.instance");UU||(UU=new XX,g.YH("yt.clientLocationService.instance",UU));return UU}; g.h=XX.prototype; g.h.setLocationOnInnerTubeContext=function(p){p.client||(p.client={});if(this.T)p.client.locationInfo||(p.client.locationInfo={}),p.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),p.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),p.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),p.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.V||this.locationPlayabilityToken)p.client.locationPlayabilityToken=this.V|| this.locationPlayabilityToken}; g.h.handleResponse=function(p){var C;p=(C=p.responseContext)==null?void 0:C.locationPlayabilityToken;p!==void 0&&(this.locationPlayabilityToken=p,this.T=void 0,g.pO("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Hh(this))&&this.localStorage.set("yt-location-playability-token",p,15552E3):g.nO("YT_CL",JSON.stringify({loctok:p}),15552E3,lBY,!0))}; g.h.clearLocationPlayabilityToken=function(p){p==="TVHTML5"?(this.localStorage=Hh(this))&&this.localStorage.remove("yt-location-playability-token"):g.Pd("YT_CL");this.V=void 0;this.C!==-1&&(clearTimeout(this.C),this.C=-1)}; g.h.getCurrentPositionFromGeolocation=function(){var p=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var C=!1,V=1E4;g.pO("INNERTUBE_CLIENT_NAME")==="MWEB"&&(C=!0,V=15E3);return new Promise(function(N,H){navigator.geolocation.getCurrentPosition(function(X){p.T=X;N(X)},function(X){H(X)},{enableHighAccuracy:C, maximumAge:0,timeout:V})})}; g.h.createUnpluggedLocationInfo=function(p){var C={};p=p.coords;if(p==null?0:p.latitude)C.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)C.longitudeE7=Math.floor(p.longitude*1E7);if(p==null?0:p.accuracy)C.locationRadiusMeters=Math.round(p.accuracy);return C}; g.h.createLocationInfo=function(p){var C={};p=p.coords;if(p==null?0:p.latitude)C.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)C.longitudeE7=Math.floor(p.longitude*1E7);return C};g.h=u2v.prototype;g.h.contains=function(p){return Object.prototype.hasOwnProperty.call(this.T,p)}; g.h.get=function(p){if(this.contains(p))return this.T[p]}; g.h.set=function(p,C){this.T[p]=C}; g.h.Ei=function(){return Object.keys(this.T)}; g.h.remove=function(p){delete this.T[p]};Un.prototype.getModuleId=function(p){return p.serviceId.getModuleId()}; Un.prototype.get=function(p){a:{var C=this.mappings.get(p.toString());switch(C.type){case "mapping":p=C.value;break a;case "factory":C=C.value();this.mappings.set(p.toString(),{type:"mapping",value:C});p=C;break a;default:p=N1(C)}}return p}; Un.prototype.registerService=function(p,C){this.mappings.set(p.toString(),{type:"mapping",value:C});return p}; new Un;var fM={},Z3Q=(fM.WEB_UNPLUGGED="^unplugged/",fM.WEB_UNPLUGGED_ONBOARDING="^unplugged/",fM.WEB_UNPLUGGED_OPS="^unplugged/",fM.WEB_UNPLUGGED_PUBLIC="^unplugged/",fM.WEB_CREATOR="^creator/",fM.WEB_KIDS="^kids/",fM.WEB_EXPERIMENTS="^experiments/",fM.WEB_MUSIC="^music/",fM.WEB_REMIX="^music/",fM.WEB_MUSIC_EMBEDDED_PLAYER="^music/",fM.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",fM);yQ.prototype.W=function(p,C,V){C=C===void 0?{}:C;V=V===void 0?Me:V;var N={context:g.Za(p.clickTrackingParams,!1,this.S)};var H=this.C(p);if(H){this.T(N,H,C);var X;C=g.On(this.V());(H=(X=g.n(p.commandMetadata,g.mm))==null?void 0:X.apiUrl)&&(C=H);X=KOv(wm(C));p=Object.assign({},{command:p},void 0);N={input:X,Vt:$D(X),dj:N,config:p};N.config.LA?N.config.LA.identity=V:N.config.LA={identity:V};return N}g.nm(new g.Bw("Error: Failed to create Request from Command.",p))}; g.Xe.Object.defineProperties(yQ.prototype,{S:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.m(qQ,yQ);g.m(ID,qQ);ID.prototype.W=function(){return{input:"/getDatasyncIdsEndpoint",Vt:$D("/getDatasyncIdsEndpoint","GET"),dj:{}}}; ID.prototype.V=function(){return[]}; ID.prototype.C=function(){}; ID.prototype.T=function(){};var tnY={},XCy=(tnY.GET_DATASYNC_IDS=fS(ID),tnY);var OU={},cc5=(OU["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",OU["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",OU["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",OU["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",OU["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",OU["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",OU["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", OU["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",OU["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",OU["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",OU["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",OU["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",OU["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",OU["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",OU["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", OU["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",OU["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",OU["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",OU["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",OU["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",OU["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",OU["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", OU["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",OU.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",OU["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",OU["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",OU["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",OU["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",OU["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",OU["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", OU["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",OU["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",OU["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",OU["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",OU["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",OU["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",OU["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",OU["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",OU["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",OU["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",OU.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",OU["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",OU["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",OU["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",OU["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",OU["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",OU["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",OU["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",OU["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",OU["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",OU["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",OU["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",OU["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",OU["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",OU["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",OU["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",OU["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",OU["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",OU["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",OU["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",OU["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",OU["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", OU["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",OU["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",OU["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",OU["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",OU["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",OU["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",OU["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",OU["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",OU["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", OU["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",OU["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",OU["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",OU["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",OU["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",OU["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",OU["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",OU["video.translations"]= "LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",OU),yH={},b3X=(yH.auto_search="LATENCY_ACTION_AUTO_SEARCH",yH.ad_to_ad="LATENCY_ACTION_AD_TO_AD",yH.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",yH.app_startup="LATENCY_ACTION_APP_STARTUP",yH.browse="LATENCY_ACTION_BROWSE",yH.cast_splash="LATENCY_ACTION_CAST_SPLASH",yH.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",yH.channels="LATENCY_ACTION_CHANNELS",yH.chips="LATENCY_ACTION_CHIPS",yH.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",yH.direct_playback= "LATENCY_ACTION_DIRECT_PLAYBACK",yH.editor="LATENCY_ACTION_EDITOR",yH.embed="LATENCY_ACTION_EMBED",yH.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",yH.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",yH.explore="LATENCY_ACTION_EXPLORE",yH.favorites="LATENCY_ACTION_FAVORITES",yH.home="LATENCY_ACTION_HOME",yH.inboarding="LATENCY_ACTION_INBOARDING",yH.library="LATENCY_ACTION_LIBRARY",yH.live="LATENCY_ACTION_LIVE",yH.live_pagination="LATENCY_ACTION_LIVE_PAGINATION", yH.management="LATENCY_ACTION_MANAGEMENT",yH.mini_app="LATENCY_ACTION_MINI_APP_PLAY",yH.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",yH.onboarding="LATENCY_ACTION_ONBOARDING",yH.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",yH.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",yH.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",yH.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",yH.prebuffer="LATENCY_ACTION_PREBUFFER",yH.prefetch= "LATENCY_ACTION_PREFETCH",yH.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",yH.profile_switcher="LATENCY_ACTION_LOGIN",yH.projects="LATENCY_ACTION_PROJECTS",yH.reel_watch="LATENCY_ACTION_REEL_WATCH",yH.results="LATENCY_ACTION_RESULTS",yH.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",yH.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",yH.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",yH.review="LATENCY_ACTION_REVIEW",yH.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",yH.search_ui= "LATENCY_ACTION_SEARCH_UI",yH.search_suggest="LATENCY_ACTION_SUGGEST",yH.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",yH.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",yH.seek="LATENCY_ACTION_PLAYER_SEEK",yH.settings="LATENCY_ACTION_SETTINGS",yH.store="LATENCY_ACTION_STORE",yH.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",yH.tenx="LATENCY_ACTION_TENX",yH.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",yH.watch="LATENCY_ACTION_WATCH",yH.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN", yH["watch,watch7"]="LATENCY_ACTION_WATCH",yH["watch,watch7_html5"]="LATENCY_ACTION_WATCH",yH["watch,watch7ad"]="LATENCY_ACTION_WATCH",yH["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",yH.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",yH.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",yH.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",yH.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",yH.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",yH.gel_compression="LATENCY_ACTION_GEL_COMPRESSION", yH.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",yH.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",yH);Object.assign(b3X,cc5);g.m(nS,uR);var gtL=new OX("aft-recorded",nS);var Twc=g.xH.ytLoggingGelSequenceIdObj_||{};g.YH("ytLoggingGelSequenceIdObj_",Twc);var w3=g.xH.ytLoggingLatencyUsageStats_||{};g.YH("ytLoggingLatencyUsageStats_",w3);ei.prototype.tick=function(p,C,V,N){$i(this,"tick_"+p+"_"+C)||g.t1("latencyActionTicked",{tickName:p,clientActionNonce:C},{timestamp:V,cttAuthInfo:N})}; ei.prototype.info=function(p,C,V){var N=Object.keys(p).join("");$i(this,"info_"+N+"_"+C)||(p=Object.assign({},p),p.clientActionNonce=C,g.t1("latencyActionInfo",p,{cttAuthInfo:V}))}; ei.prototype.jspbInfo=function(p,C,V){for(var N="",H=0;H<$V(p).length;H++)$V(p)[H]!==void 0&&(N=H===0?N.concat(""+H):N.concat("_"+H));if(!$i(this,"info_"+N+"_"+C)){mM(p,2,C);V={cttAuthInfo:V};C=g.Zr("jspb_sparse_encoded_pivot")?new W6([{}]):new W6;p!=null?vT(p,P6):p=void 0;jq(C,7,JB0,p);V=V===void 0?{}:V;p=!1;g.pO("ytLoggingEventsDefaultDisabled",!1)&&(p=!0);p=p?null:g.sI;V=V===void 0?{}:V;N=Math.round(V.timestamp||(0,g.Ip)());JP(C,1,N<Number.MAX_SAFE_INTEGER?N:0);N=new gf;V.lact?JP(N,1,isFinite(V.lact)? V.lact:-1):V.timestamp?JP(N,1,-1):(H=bV(),JP(N,1,isFinite(H)?H:-1));if(V.sequenceGroup&&!g.Zr("web_gel_sequence_info_killswitch")){H=V.sequenceGroup;var X=K1a(H),d=new wf;JP(d,2,X);mM(d,1,H);hP(N,wf,3,d);V.endOfSequence&&delete Twc[V.sequenceGroup]}hP(C,gf,33,N);(V.sendIsolatedPayload?jKj:VeS)("latencyActionInfo",{endpoint:"log_event",payload:C,cttAuthInfo:V.cttAuthInfo,dangerousLogToVisitorSession:V.dangerousLogToVisitorSession},p)}}; ei.prototype.span=function(p,C,V){var N=Object.keys(p).join("");$i(this,"span_"+N+"_"+C)||(p.clientActionNonce=C,g.t1("latencyActionSpan",p,{cttAuthInfo:V}))};var qW=window,LS=qW.performance||qW.mozPerformance||qW.msPerformance||qW.webkitPerformance||new A1j;var LWH=!1,xpS=!1,jL={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj", 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc", 'script[name="mobile_blazer_watch_mod"]':"mbwj"},Qpa=(0,g.LY)(LS.clearResourceTimings||LS.webkitClearResourceTimings||LS.mozClearResourceTimings||LS.msClearResourceTimings||LS.oClearResourceTimings||g.Fu,LS);var MnG=window;MnG.ytcsi&&(MnG.ytcsi.infoGel=g.HH,MnG.ytcsi.tick=NR);var EpX="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),tVX=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var MVe=new A3("INNERTUBE_TRANSPORT_TOKEN");g.m(le,qQ);le.prototype.V=function(){return Gtc}; le.prototype.C=function(p){return g.n(p,kty)||void 0}; le.prototype.T=function(p,C,V){V=V===void 0?{}:V;C.channelIds&&(p.channelIds=C.channelIds);C.siloName&&(p.siloName=C.siloName);C.params&&(p.params=C.params);V.botguardResponse&&(p.botguardResponse=V.botguardResponse);V.feature&&(p.clientFeature=V.feature)}; g.Xe.Object.defineProperties(le.prototype,{S:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.m(td,qQ);td.prototype.V=function(){return pTG}; td.prototype.C=function(p){return g.n(p,oT8)||void 0}; td.prototype.T=function(p,C){C.channelIds&&(p.channelIds=C.channelIds);C.siloName&&(p.siloName=C.siloName);C.params&&(p.params=C.params)}; g.Xe.Object.defineProperties(td.prototype,{S:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Jcp=new A3("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.m(cH,qQ);cH.prototype.V=function(){return gTF}; cH.prototype.C=function(p){return g.n(p,Z68)||g.n(p,UL2)||g.n(p,uvE)}; cH.prototype.T=function(p,C){C.serializedShareEntity&&(p.serializedSharedEntity=C.serializedShareEntity);if(C.clientParamIdentifier){var V;if((V=this.Y)==null?0:V.T(C.clientParamIdentifier))p.clientParams=this.Y.C(C.clientParamIdentifier)}}; cH[xJ]=[Jcp];g.m(Tk,qQ);Tk.prototype.V=function(){return Qfv}; Tk.prototype.C=function(p){return g.n(p,cBc)||void 0}; Tk.prototype.T=function(p,C,V){p.feedbackTokens=[];C.feedbackToken&&p.feedbackTokens.push(C.feedbackToken);if(C=C.cpn||V.cpn)p.feedbackContext={cpn:C};p.isFeedbackTokenUnencrypted=!!V.is_feedback_token_unencrypted;p.shouldMerge=!1;V.extra_feedback_tokens&&(p.shouldMerge=!0,p.feedbackTokens=p.feedbackTokens.concat(V.extra_feedback_tokens))}; g.Xe.Object.defineProperties(Tk.prototype,{S:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.m(MR,qQ);MR.prototype.V=function(){return rBY}; MR.prototype.C=function(p){return g.n(p,ABp)||void 0}; MR.prototype.T=function(p,C){C.params&&(p.params=C.params);C.secondaryParams&&(p.secondaryParams=C.secondaryParams)};g.m(Jd,qQ);Jd.prototype.V=function(){return Bo0}; Jd.prototype.C=function(p){return g.n(p,IV1)||void 0}; Jd.prototype.T=function(p,C){C.actions&&(p.actions=C.actions);C.params&&(p.params=C.params);C.playlistId&&(p.playlistId=C.playlistId)};g.m(mI,qQ);mI.prototype.V=function(){return WqP}; mI.prototype.C=function(p){return g.n(p,fVE)}; mI.prototype.T=function(p,C,V){V=V===void 0?{}:V;C.serializedShareEntity&&(p.serializedSharedEntity=C.serializedShareEntity);V.includeListId&&(p.includeListId=!0)};var m1y=new A3("FETCH_FN_TOKEN"),vKp=new A3("PARSE_FN_TOKEN");g.m(g.vH,g.Bw);var FKF=new A3("NETWORK_SLI_TOKEN");FA.prototype.fetch=function(p,C,V){var N=this,H,X,d;return g.I(function(a){H=cNV(N,p,C);d=(X=N.C)!=null?X:fetch;return a.return(d(H).then(function(E){return N.handleResponse(E,V)}).catch(function(E){g.eG(E); if((V==null?0:V.xE)&&E instanceof g.vH&&E.errorType===1)return Promise.reject(E)}))})}; FA.prototype.handleResponse=function(p,C){var V,N=(V=this.V)!=null?V:JSON.parse;V=p.text().then(function(H){if((C==null?0:C.So)&&p.ok)return R69(C.So,H);H=H.replace(")]}'","");if((C==null?0:C.xE)&&H)try{var X=N(H)}catch(a){throw new g.vH(1,"JSON parsing failed after fetch");}var d;return(d=X)!=null?d:N(H)}); p.redirected||p.ok?this.T&&this.T.success():(this.T&&this.T.VE_(),V=V.then(function(H){g.eG(new g.Bw("Error: API fetch failed",p.status,p.url,H));return Object.assign({},H,{errorMetadata:{status:p.status}})})); return V}; FA[xJ]=[new oh(FKF),new oh(m1y),new oh(vKp)];var TyS=new A3("NETWORK_MANAGER_TOKEN");var SL;ue.prototype.bindInnertubeChallengeFetcher=function(p){this.T.bicf(p)}; ue.prototype.registerChallengeFetchedCallback=function(p){this.T.bcr(p)}; ue.prototype.getLatestChallengeResponse=function(){return this.T.blc()};var vpL=[],Zf=!1;qR.prototype.S=function(){var p=this;return g.I(function(C){return C.C==1?g.y(C,Promise.race([p.T,null]),2):C.return(!!C.T)})}; qR.prototype.V=function(p,C,V){var N=this,H,X,d;return g.I(function(a){N.T===null&&SXS(N,y3(N));H=!1;X={};d=function(){var E,l,t;return g.I(function(c){switch(c.C){case 1:return g.y(c,N.T,2);case 2:E=c.T;X.challenge=E.challenge;if(!E.w7){"c1a"in E.o8&&(X.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");c.EY(3);break}l=Object.assign({},{c:E.challenge,e:p},C);g.vv(c,4);H=!0;if(g.Zr("attbs")&&!g.Zr("attmusi")){t=E.w7.Ok({P$:l});c.EY(6);break}return g.y(c,E.w7.snapshot({P$:l}),7);case 7:t=c.T;case 6:t?X.webResponse= t:X.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.Fe(c,3);break;case 4:g.Sa(c),X.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(p==="ENGAGEMENT_TYPE_PLAYBACK"){var T=E.o8,M={};T.c6a&&(M.reportingStatus=String(Number(T.c)^U0()));T.c6b&&(M.broadSpectrumDetectionResult=String(Number(T.c)^Number(g.pO("CATSTAT",0))));X.adblockReporting=M}return c.return(X)}})}; return a.return(Promise.race([d(),Z5u(V,function(){var E=Object.assign({},X);H&&(E.error="ATTESTATION_ERROR_VM_TIMEOUT");return E})]))})};var O5Y=["APP_STATE","PI"];var NgS=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,171388,236208,7282,124448,196088,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,225031,177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716, 197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,155792,93265,74611,131380,128979,139311,128978, 131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,113534,92098,131381,84517,83759,230676,230679,230678,230677,230681,230680,162711,235234,162712,80357,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276, 144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262, 190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295, 120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,222932,213915,225216,218674,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278, 89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,211026,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035, 27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,213774,204572,191389,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099, 23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,240553,95101,75240,27039,68823,21537,83464,75707,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711, 30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,210815,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,195002,206793,141978,233985,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928, 10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,163566,186641,147842,217932,104443,96659,147595,106442,231493,213427,182423,162776,228908,134840,63667,63668,63669,130686,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811, 5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197, 168501,156512,161613,156509,208274,161612,161614,82039];be.prototype.getState=function(){return this.store.getState()}; be.prototype.dispatch=function(p){return this.store.dispatch(p)}; be.prototype.subscribe=function(p){return this.store.subscribe(p)}; be.prototype.replaceReducer=function(p){return this.store.replaceReducer(p)}; be.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.h=o4.prototype;g.h.getLength=function(){return this.totalLength}; g.h.append=function(p){if(Ihy(this,p)){var C=this.XF[this.XF.length-1];this.XF[this.XF.length-1]=new Uint8Array(C.buffer,C.byteOffset,C.length+p.length);Y9(this)}else this.XF.push(p);this.totalLength+=p.length}; g.h.split=function(p){for(var C=new o4,V=new o4,N=g.F(this.XF),H=N.next();!H.done;H=N.next())H=H.value,p>=H.length?(C.append(H),p-=H.length):p?(C.append(new Uint8Array(H.buffer,H.byteOffset,p)),V.append(new Uint8Array(H.buffer,H.byteOffset+p,H.length-p)),p=0):V.append(H);return{Yd:C,LM:V}}; g.h.isFocused=function(p){return p>=this.jH&&p<this.jH+this.XF[this.yr].length}; g.h.focus=function(p){if(!this.isFocused(p)){for(p<this.jH&&Y9(this);this.jH+this.XF[this.yr].length<=p&&this.yr<this.XF.length;)this.jH+=this.XF[this.yr].length,this.yr+=1;this.U2=void 0}}; g.h.sC=function(p,C){return p+C<=this.totalLength}; g.h.b9=function(p,C){p=p===void 0?0:p;C=C===void 0?-1:C;if(!this.totalLength||!C)return new DataView(new ArrayBuffer(0));C<0&&(C=this.totalLength-p);this.focus(p);if(!zk(this,p,C)){var V=this.yr,N=this.jH;this.focus(p+C-1);N=new Uint8Array(this.jH+this.XF[this.yr].length-N);for(var H=0,X=V;X<=this.yr;X++)N.set(this.XF[X],H),H+=this.XF[X].length;this.XF.splice(V,this.yr-V+1,N);Y9(this);this.focus(p)}V=this.XF[this.yr];return new DataView(V.buffer,V.byteOffset+p-this.jH,C)}; g.h.AB=function(p,C){p=this.b9(p===void 0?0:p,C===void 0?-1:C);return new Uint8Array(p.buffer,p.byteOffset,p.byteLength)}; g.h.getUint8=function(p){this.focus(p);return this.XF[this.yr][p-this.jH]};var PH,nU,$9;g.Jt=function(){function p(N){for(var H=new Uint8Array(N.length),X=0;X<N.length;X++)H[X]=N[X];return H} function C(N){return new Uint8Array(N)} var V=new Uint8Array([1]);return V.length===1&&V[0]===1?C:p}(); PH=Array(1024);nU=window.TextDecoder?new TextDecoder:void 0;$9=window.TextEncoder?new TextEncoder:void 0;for(var npH={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279, fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,liveChatPollStateEntity:217,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196, markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169, offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152, youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},Rkv={},SL8=g.F(Object.entries(npH)),KK0=SL8.next();!KK0.done;KK0=SL8.next()){var D10=g.F(KK0.value),u_0=D10.next().value,Z_F=D10.next().value,U1c=u_0,fBy=Z_F;fBy&&(Rkv[fBy]=U1c)};var wCQ=!1,mC,vJ,Fq,Ss,KW;g.m(Dk,g.Y); Dk.prototype.encrypt=function(p){var C=p.length;p=new Uint8Array(p.buffer.slice(p.byteOffset,p.byteOffset+C));for(var V=this.C,N=0;N<C&&this.T<16;)p[N++]^=V[this.T++];for(var H=C-(C-N)%16;N<H;)$ea(this),p[N++]^=V[0],p[N++]^=V[1],p[N++]^=V[2],p[N++]^=V[3],p[N++]^=V[4],p[N++]^=V[5],p[N++]^=V[6],p[N++]^=V[7],p[N++]^=V[8],p[N++]^=V[9],p[N++]^=V[10],p[N++]^=V[11],p[N++]^=V[12],p[N++]^=V[13],p[N++]^=V[14],p[N++]^=V[15];if(N<C)for($ea(this),this.T=0;N<C;)p[N++]^=V[this.T++];return p};var Zk=!1;(function(){function p(N){for(var H=new Uint8Array(N.length),X=0;X<N.length;X++)H[X]=N[X];return H} function C(N){return new Uint8Array(N)} var V=new Uint8Array([1]);return V.length===1&&V[0]===1?C:p})(); var UF;g.OF.prototype.encrypt=function(p,C){var V=this,N,H;return g.I(function(X){if(X.C==1){N=fW();if(!N)return X.return(V.T(p,C));g.vv(X,3);return g.y(X,V.C(p,C,N),5)}if(X.C!=3)return X.return(X.T);H=g.Sa(X);g.eG(H);Zk=!0;return X.return(V.T(p,C))})}; g.OF.prototype.C=function(p,C,V){var N=this,H,X;return g.I(function(d){switch(d.C){case 1:if(N.W){d.EY(2);break}return g.y(d,V.importKey("raw",N.S,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:N.W=d.T;case 2:return H={name:"AES-CTR",counter:C,length:128},g.y(d,V.encrypt(H,N.W,p),4);case 4:return X=d.T,d.return(new Uint8Array(X))}})}; g.OF.prototype.T=function(p,C){this.V||(this.V=new Dk(this.S));u8(this.V,C);return this.V.encrypt(p)}; g.OF.prototype.decrypt=function(p,C){return this.encrypt(p,C)}; g.yi.prototype.encrypt=function(p,C){this.T||(this.T=new Dk(this.C));u8(this.T,C);return this.T.encrypt(p)}; g.yi.prototype.decrypt=function(p,C){return this.encrypt(p,C)};qg.prototype.reset=function(){gpS(this);this.update(this.V)}; qg.prototype.update=function(p){var C=0,V=p.length;this.S+=V;this.C&&this.C+V>=64&&(this.Y.set(p.subarray(0,64-this.C),this.C),C=64-this.C,this.C=0,Lea(this,this.Y,0));for(;C+64<=V;C+=64)Lea(this,p,C);C<V&&(p=p.subarray(C),this.Y.set(p,this.C),this.C+=p.length)}; var IE=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804, 4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var O_Y;O_Y={};g.yc2=g.HC("yt-idb-pref-storage",{UK:(O_Y.prefs={c_:1},O_Y),shared:!1,upgrade:function(p,C){C(1)&&g.Rp(g.A1(p,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")}, version:1});var IJ;IJ={};g.qL1=(IJ.INVALID_ENCODER_VERSION="Invalid encoder version",IJ.KEY_CREATION_FAILED="Failed to create encoder key",IJ.UNKNOWN_DECODE_ERROR="Failed to decode PES data",IJ.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",IJ.WRONG_DATA_TYPE="Encoder cannot process the data type",IJ);g.cJ("","downloadsPageViewConfigurationEntity");g.cJ("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.bS=g.cJ("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.cJ("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.cJ("SMART_DOWNLOADS_ENABLED","settingEntity");g.cJ("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");g.h=Aq.prototype;g.h.initialize=function(p,C,V){if(p.program){var N,H=(N=p.interpreterUrl)!=null?N:null;if(p.interpreterSafeScript)N=xKj(p.interpreterSafeScript);else{var X;N=(X=p.interpreterScript)!=null?X:null}p.interpreterSafeUrl&&(H=Og(p.interpreterSafeUrl).toString());a91(this,N,H,p.program,C,V)}else g.eG(Error("Cannot initialize botguard without program"))}; g.h.isInitialized=function(){return this.Gg()}; g.h.getState=function(){return this.state}; g.h.isLoading=function(){return this.state===2}; g.h.invoke=function(p){p=p===void 0?{}:p;return this.Gg()?this.uS({P$:p}):null}; g.h.dispose=function(){this.f2(null);this.UZ(8)}; g.h.Gg=function(){return!!this.w7}; g.h.uS=function(p){return this.w7.Ok(p)}; g.h.f2=function(p){g.iP(this.w7);this.w7=p}; g.h.UZ=function(p){this.state=p};g.m(kY,Aq);kY.prototype.f2=function(p){var C;(C=oE())==null||C.bgvma();p?(C={bgvma:p.dispose.bind(p),bgvmb:p.snapshot.bind(p),bgvmc:p.Ok.bind(p)},g.YH("yt.abuse.playerAttLoader",C),g.YH("yt.abuse.playerAttLoaderRun",function(V){return p.snapshot(V)})):(g.YH("yt.abuse.playerAttLoader",null),g.YH("yt.abuse.playerAttLoaderRun",null))}; kY.prototype.Gg=function(){return!!oE()}; kY.prototype.uS=function(p){return oE().bgvmc(p)};xY.prototype.sK=function(){return"crossDeviceProgressCommand"}; xY.prototype.uO=function(p){if(p.crossDevicePings){var C=[];p=g.F(p.crossDevicePings);for(var V=p.next();!V.done;V=p.next())C.push({baseUrl:V.value.baseUrl});g.t1("crossDeviceNotificationTransfer",{crossDevicePings:C})}};YY.prototype.sK=function(){return"muteAdEndpoint"}; YY.prototype.uO=function(p,C){switch(p.type){case "SKIP":EJX(this.I8,this.Bp,C)}};zf.prototype.sK=function(){return"openPopupAction"}; zf.prototype.uO=function(){};RE.prototype.sK=function(){return"pingingEndpoint"}; RE.prototype.uO=function(){};var mMQ={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.m(tF9,g.Y);var KXv={YEn:"FINAL",Un$:"AD_BREAK_LENGTH",KSe:"AD_CPN",lZk:"AH",gBV:"AD_MT",Ode:"ASR",Q_e:"AW",d5Y:"NM",jd_:"NX",X6n:"NY",ZOe:"CONN",bxx:"CPN",W$n:"DV_VIEWABILITY",D3e:"ERRORCODE",K$n:"ERROR_MSG",gNV:"EI",bqa:"GOOGLE_VIEWABILITY",iqS:"IAS_VIEWABILITY",yBn:"LACT",ar_:"LIVE_TARGETING_CONTEXT",Svr:"I_X",E9a:"I_Y",i$x:"MT",W8V:"MIDROLL_POS",L8_:"MIDROLL_POS_MS",Nhe:"MOAT_INIT",GSY:"MOAT_VIEWABILITY",Tbo:"P_H",ke_:"PV_H",aMa:"PV_W",bMV:"P_W",CTY:"TRIGGER_TYPE",DBo:"SDKV",cd_:"SLOT_POS",CFr:"SURVEY_LOCAL_TIME_EPOCH_S", n5n:"SURVEY_ELAPSED_MS",YU:"VIS",l_r:"VIEWABILITY",Opo:"VED",JWo:"VOL",w_n:"WT",Gin:"YT_ERROR_CODE"};PJ.prototype.sK=function(){return"urlEndpoint"}; PJ.prototype.uO=function(p,C,V){var N=this.No.get(),H=IY(N.C.get(),C);H?C=oj(N,Ta9(H),H,void 0,void 0,V):(S2("Trying to ping from an unknown layout",void 0,void 0,{layoutId:C}),C={});C=Object.assign({},C);Cs(this.T,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(V=O3(this.w6,2))&&(C.AD_CPN=V.clientPlaybackNonce);C=g.nX(p.url,C);g.pS(C,void 0,void 0,void 0,p.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};w_.prototype.get=function(){return this.value}; g.m($Y,w_);$Y.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"}; g.m(LW,w_);LW.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"}; g.m(g_,w_);g_.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"}; g.m(WJ,w_);WJ.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"}; g.m(Qi,w_);Qi.prototype.getType=function(){return"metadata_type_ad_next_params"}; g.m(r_,w_);r_.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.m(BJ,w_);BJ.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.m(Gf,w_);Gf.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"}; g.m(pF,w_);pF.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"}; g.m(CF,w_);CF.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.m(jT,w_);jT.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"}; g.m(Vy,w_);Vy.prototype.getType=function(){return"metadata_ad_video_is_listed"}; g.m(NG,w_);NG.prototype.getType=function(){return"metadata_type_ad_placement_config"}; g.m(HV,w_);HV.prototype.getType=function(){return"metadata_type_ad_pod_info"}; g.m(Xw,w_);Xw.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"}; g.m(dg,w_);dg.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"}; g.m(i6,w_);i6.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"}; g.m(ha,w_);ha.prototype.getType=function(){return"metadata_type_ad_video_id"}; g.m(sr,w_);sr.prototype.getType=function(){return"metadata_type_content_cpn"}; g.m(aw,w_);aw.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.m(Er,w_);Er.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"}; g.m(l6,w_);l6.prototype.getType=function(){return"metadata_type_player_underlay_renderer"}; g.m(ta,w_);ta.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"}; g.m(cV,w_);cV.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"}; g.m(Tc,w_);Tc.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"}; g.m(MG,w_);MG.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.m(Ja,w_);Ja.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.m(mt,w_);mt.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.m(vV,w_);vV.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.m(Fw,w_);Fw.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.m(ST,w_);ST.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.m(KF,w_);KF.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"}; g.m(DS,w_);DS.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"}; g.m(u6,w_);u6.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"}; g.m(ZS,w_);ZS.prototype.getType=function(){return"metadata_type_player_bytes_callback"}; g.m(Ur,w_);Ur.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"}; g.m(fF,w_);fF.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.m(Or,w_);Or.prototype.getType=function(){return"metadata_type_sub_layouts"}; g.m(yy,w_);yy.prototype.getType=function(){return"metadata_type_cue_point"}; g.m(qG,w_);qG.prototype.getType=function(){return"metadata_type_video_length_seconds"}; g.m(Iw,w_);Iw.prototype.getType=function(){return"metadata_type_player_vars"}; g.m(b6,w_);b6.prototype.getType=function(){return"metadata_type_preload_player_vars"}; g.m(Aa,w_);Aa.prototype.getType=function(){return"metadata_type_sodar_extension_data"}; g.m(ow,w_);ow.prototype.getType=function(){return"metadata_type_layout_enter_ms"}; g.m(k_,w_);k_.prototype.getType=function(){return"metadata_type_layout_exit_ms"}; g.m(x_,w_);x_.prototype.getType=function(){return"metadata_type_media_sub_layout_index"}; g.m(Y_,w_);Y_.prototype.getType=function(){return"metadata_type_dai"}; g.m(zc,w_);zc.prototype.getType=function(){return"metadata_type_ad_intro"}; g.m(Rw,w_);Rw.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.m(nF,w_);nF.prototype.getType=function(){return"metadata_type_drift_recovery_ms"}; g.m(eT,w_);eT.prototype.getType=function(){return"metadata_type_fulfilled_layout"}; g.m(PV,w_);PV.prototype.getType=function(){return"metadata_type_ad_break_request_data"}; g.m(wg,w_);wg.prototype.getType=function(){return"metadata_type_ad_break_response_data"}; g.m($_,w_);$_.prototype.getType=function(){return"metadata_type_remote_slots_data"}; g.m(LF,w_);LF.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.m(gg,w_);gg.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.m(WV,w_);WV.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.m(Qy,w_);Qy.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"}; g.m(rg,w_);rg.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; g.m(BV,w_);BV.prototype.getType=function(){return"metadata_type_served_from_live_infra"}; g.m(Gc,w_);Gc.prototype.getType=function(){return"metadata_type_survey_overlay"}; g.m(pP,w_);pP.prototype.getType=function(){return"metadata_type_active_view_traffic_type"}; g.m(CP,w_);CP.prototype.getType=function(){return"metadata_type_active_view_identifier"}; g.m(jU,w_);jU.prototype.getType=function(){return"metadata_type_ssdai_ads_config"}; g.m(VV,w_);VV.prototype.getType=function(){return"metadata_type_eligible_for_ssap"}; g.m(Nz,w_);Nz.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"}; g.m(HU,w_);HU.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"}; g.m(XJ,w_);XJ.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var I9H=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var nJQ=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED", "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.m(sf,c5);g.m(G,c5);new Promise(function(){});var KdH=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),Fdv=new Map([["normal",{OA:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",MA:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{OA:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",MA:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{OA:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",MA:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{OA:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",MA:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{OA:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",MA:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{OA:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",MA:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{OA:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",MA:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.m(FJ,g.Y);g.h=FJ.prototype;g.h.hL=function(p,C){return this.T.hL(p,C)}; g.h.WR=function(p,C){this.hQ.BX("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",p,C);for(var V=g.F(this.C),N=V.next();!N.done;N=V.next())N.value.WR(p,C)}; g.h.SZ=function(p){if(Zc(this.T,p)){this.hQ.Qr("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",p);this.T.SZ(p);for(var C=g.F(this.C),V=C.next();!V.done;V=C.next())V.value.SZ(p);UMS(this,p)}}; g.h.EV=function(p){if(Zc(this.T,p)){this.hQ.Qr("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",p);this.T.EV(p);for(var C=g.F(this.C),V=C.next();!V.done;V=C.next())V.value.EV(p);Zc(this.T,p)&&Uf(this.T,p).W&&Dc(this,p,!1)}}; g.h.IR=function(p){this.hQ.Qr("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",p);Zc(this.T,p)&&(this.T.IR(p),Dc(this,p,!1))}; g.h.gy=function(p,C){if(Zc(this.T,p)){this.hQ.Rd("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",p,C);for(var V=g.F(this.C),N=V.next();!N.done;N=V.next())N.value.gy(p,C)}}; g.h.C1=function(p,C,V){if(Zc(this.T,p)){this.hQ.Rd(SIv(V),p,C);this.T.C1(p,C);for(var N=g.F(this.C),H=N.next();!H.done;H=N.next())H.value.C1(p,C,V);(V=R3(this.T,p))&&C.layoutId===V.layoutId&&YIj(this,p,!1)}}; g.h.OV=function(p,C,V,N){V.jO&&N?(S2(V,p,C,void 0,V.Wb),this.hQ.Yb(N,V.jO,p,C)):S2("adsClientErrorMessage is missing.",p,C);Dc(this,p,!0)}; g.h.CS=function(){var p=RIX(this.T);p=g.F(p);for(var C=p.next();!C.done;C=p.next())Dc(this,C.value,!1);g.Y.prototype.CS.call(this)}; g.h.yf=function(p,C){this.hQ.Rd("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",p,C);this.hQ.Rd("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",p,C);for(var V=g.F(this.C),N=V.next();!N.done;N=V.next())N=N.value,C&&N.yf(p,C)};zIs.prototype.isActive=function(){switch(this.T){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.m(PU,g.Y);g.h=PU.prototype;g.h.hL=function(p,C){C=zm(this,p+"_"+C);p=[];C=g.F(C.values());for(var V=C.next();!V.done;V=C.next())p.push(V.value.slot);return p}; g.h.GI=function(p){p=Uf(this,p);p.T!=="not_scheduled"&&nP(p.slot,p.T,"onSlotScheduled");p.T="scheduled"}; g.h.BO=function(p){p=Uf(this,p);p.S="fill_requested";p.D.BO()}; g.h.SZ=function(p){p=Uf(this,p);p.T!=="enter_requested"&&nP(p.slot,p.T,"onSlotEntered");p.T="entered"}; g.h.IR=function(p){Uf(this,p).S="fill_canceled"}; g.h.EV=function(p){p=Uf(this,p);p.T!=="exit_requested"&&nP(p.slot,p.T,"onSlotExited");p.T="scheduled"}; g.h.C1=function(p,C){p=Uf(this,p);p.layout!=null&&p.layout.layoutId===C.layoutId&&(p.T!=="rendering_stop_requested"&&nP(p.slot,p.T,"onLayoutExited"),p.T="entered")};g.m(LP,g.Y);LP.prototype.get=function(){Math.random()<.001&&this.fS()&&S2("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.T());return this.instance};g.m(WU,g.Y);WU.prototype.V=function(){return this.C};QV.prototype.executeCommand=function(p,C){es(this.T(),p,C)};Gm.prototype.addListener=function(p){this.listeners.add(p)}; Gm.prototype.removeListener=function(p){this.listeners.delete(p)};var AJ={},hy=(AJ.AD_MARKER="ytp-ad-progress",AJ.CHAPTER_MARKER="ytp-chapter-marker",AJ.TIME_MARKER="ytp-time-marker",AJ);var BHe=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),r3v=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"), Grj=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),N7y=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"), jWy=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),G7a=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"), pRY=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),pQL=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),B$9=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"), L$H=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"), $BQ=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"), IBc=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.sz.prototype.getId=function(){return this.id}; g.sz.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+im1(this.start)+", "+im1(this.end)+"]"}; g.sz.prototype.contains=function(p,C){return p>=this.start&&(p<this.end||p===this.end&&this.start===this.end)&&(C==null||p<C&&C<=this.end)}; var dYX=1;g.sz.prototype.getId=g.sz.prototype.getId;ty.prototype.BO=function(){var p=this,C=0;WdQ(this.T,function(){var V=Ef(p.slot.clientMetadata,"metadata_type_ad_break_request_data");C=Date.now();tV(p.No.get(),"abrs","ct."+C+";cmt."+p.mx.get().getCurrentTimeSec(1,!1)+";sid."+p.slot.slotId+";");return p.C.get().fetch({W5:V.getAdBreakUrl,mJ:new g.sz(V.cS,V.qS),U5:Ef(p.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:V.cueProcessedMs})},function(){sWV(p)},function(V){var N=Date.now()-C; tV(p.No.get(),"abrr","ct."+(new Date).getTime()+";cmt."+p.mx.get().getCurrentTimeSec(1,!1)+";l."+N.toString()+";sid."+p.slot.slotId+";");N=V.zs;N.length>=2&&V.ssdaiAdsConfig&&S2("Unexpected ad placement renderers length",p.slot,null,{length:N.length});N.some(function(H){var X,d,a,E;return!!((X=H.renderer)==null?0:(d=X.linearAdSequenceRenderer)==null?0:(a=d.linearAds)==null?0:a.length)||!((E=H.renderer)==null||!E.instreamVideoAdRenderer)})||sWV(p)})}; ty.prototype.U9=function(){QhS(this.T)};c8.prototype.BO=function(){var p=this;WdQ(this.C,function(){var C=Ef(p.slot.clientMetadata,"metadata_type_ad_break_request_data");return C.cueProcessedMs?p.T.get().fetch({W5:C.getAdBreakUrl,mJ:new g.sz(C.cS,C.qS),cueProcessedMs:C.cueProcessedMs}):p.T.get().fetch({W5:C.getAdBreakUrl,mJ:new g.sz(C.cS,C.qS)})})}; c8.prototype.U9=function(){QhS(this.C)};Tl.prototype.BO=function(){var p=this.slot.clientMetadata,C,V=(C=this.slot.fulfilledLayout)!=null?C:Ef(p,"metadata_type_fulfilled_layout");f9Q(this.callback,this.slot,V)}; Tl.prototype.U9=function(){uH(this.callback,this.slot,new G("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};Jy.prototype.build=function(p,C){return C.fulfilledLayout||Mo(C,{a6:["metadata_type_fulfilled_layout"]})?new Tl(p,C):this.V(p,C)};g.m(mk,Jy); mk.prototype.V=function(p,C){if(Mo(C,{a6:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new ty(p,C,this.T,this.C,this.Mt,this.x_,this.No,this.mx,this.kG);if(Mo(C,{a6:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new c8(p,C,this.T,this.C,this.Mt,this.x_);throw new G("Unsupported slot with type: "+C.slotType+" and client metadata: "+lH(C.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.m(v8,Jy);v8.prototype.V=function(p,C){throw new G("Unsupported slot with type: "+C.slotType+" and client metadata: "+lH(C.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.h=aES.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(p){if(p.layoutId!==this.layout.layoutId)this.callback.OV(this.slot,p,new sf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var C=Ef(p.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.gy(this.slot,p),ZSV(this.V, this.slot,C)):S2("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,p)}}; g.h.XO=function(p,C){p.layoutId!==this.layout.layoutId?this.callback.OV(this.slot,p,new sf("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.C1(this.slot,p,C),lEV(this),tGY(this))};g.m(uG,g.ca);g.h=uG.prototype;g.h.Bc=function(){return this.C.slot}; g.h.De=function(){return this.C.layout}; g.h.init=function(){this.V.get().addListener(this)}; g.h.release=function(){this.V.get().removeListener(this);this.dispose()}; g.h.lI=function(){}; g.h.UB=function(){}; g.h.tL=function(){}; g.h.N8=function(){}; g.h.startRendering=function(p){var C=this;Dl(this.C,p,function(){return void C.h3()})}; g.h.h3=function(){this.V.get().h3(this.T)}; g.h.XO=function(p,C){var V=this;Dl(this.C,p,function(){var N=V.V.get();ILs(N,V.T,3);V.T=[];V.callback.C1(V.slot,p,C)})}; g.h.CS=function(){this.V.fS()||this.V.get().removeListener(this);g.ca.prototype.CS.call(this)}; g.Xe.Object.defineProperties(uG.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.C.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.C.layout}}});bG.prototype.pO=function(p,C){C=C===void 0?!1:C;var V=(this.V.get(p)||[]).concat();if(C=C&&MGy(p)){var N=this.V.get(C);N&&V.push.apply(V,g.K(N))}ku(this,p,V);this.T.add(p);C&&this.T.add(C)}; bG.prototype.tQ=function(p,C){C=C===void 0?!1:C;if(!this.T.has(p)){var V=C&&MGy(p);V&&(C=!this.T.has(V));this.pO(p,C)}};g.m(vGa,tO);g.m(ns,uG);g.h=ns.prototype;g.h.Mg=function(p,C){Oz("ads-engagement-panel-layout",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,m$),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(C,V,N,H,X){return new vGa(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(SKu,tO);g.m(eY,uG);g.h=eY.prototype;g.h.Mg=function(p,C){Oz("banner-image",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,MB),this.callback,"metadata_type_banner_image_layout_view_model",function(C,V,N,H,X){return new SKu(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(P8,tO);g.m(wn,uG);g.h=wn.prototype;g.h.Mg=function(p,C){Oz("action-companion",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,tM),this.callback,"metadata_type_action_companion_ad_renderer",function(C,V,N,H,X){return new P8(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){C.layoutId===this.layout.layoutId?this.gV.tQ("impression"):this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(uIe,tO);g.m($u,uG);g.h=$u.prototype;g.h.Mg=function(p,C){Oz("image-companion",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,cP),this.callback,"metadata_type_image_companion_ad_renderer",function(C,V,N,H,X){return new uIe(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){C.layoutId===this.layout.layoutId?this.gV.tQ("impression"):this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(UYe,tO);g.m(Ls,uG);g.h=Ls.prototype;g.h.Mg=function(p,C){Oz("shopping-companion",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(C,V,N,H,X){return new UYe(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){C.layoutId===this.layout.layoutId?this.gV.tQ("impression"):this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(W8,uG);g.h=W8.prototype;g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(C,V,N,H,X){return new P8(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)}; g.h.Mg=function(){};g.h=bme.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){this.mx.get().addListener(this);this.mx.get().xW.push(this);var p=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),C=Ef(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");y6(this.layout.y$)&&NE(this.AQ.get(),this.layout.layoutId,{Yn:C,s7:p,listener:this})}; g.h.release=function(){this.mx.get().removeListener(this);ZQY(this.mx.get(),this);y6(this.layout.y$)&&Hq(this.AQ.get(),this.layout.layoutId)}; g.h.startRendering=function(p){this.callback.gy(this.slot,p)}; g.h.XO=function(p,C){BDL(this.x_.get())&&!this.T&&(this.gV.tQ("abandon"),this.T=!0);this.callback.C1(this.slot,p,C)}; g.h.vz=function(p){switch(p.id){case "part2viewed":this.gV.tQ("start");this.gV.tQ("impression");break;case "videoplaytime25":this.gV.tQ("first_quartile");break;case "videoplaytime50":this.gV.tQ("midpoint");break;case "videoplaytime75":this.gV.tQ("third_quartile");break;case "videoplaytime100":BDL(this.x_.get())?this.T||(this.gV.tQ("complete"),this.T=!0):this.gV.tQ("complete");Rj(this.gV)&&Yu(this.gV,Infinity,!0);Gsa(this.x_.get())&&gn(this.C,Infinity,!0);break;case "engagedview":Rj(this.gV)||this.gV.tQ("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:S2("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.gx=function(){}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.onFullscreenToggled=function(){}; g.h.Ld=function(){}; g.h.Eu=function(){}; g.h.EU=function(p){Gsa(this.x_.get())&&gn(this.C,p*1E3,!1);Rj(this.gV)&&Yu(this.gV,p*1E3,!1)}; g.h.Wz=function(){}; g.h.sA=function(){this.gV.tQ("active_view_measurable")}; g.h.Iy=function(){this.gV.tQ("active_view_viewable")}; g.h.Ao=function(){this.gV.tQ("active_view_fully_viewable_audible_half_duration")}; g.h.Cr=function(){this.gV.tQ("audio_measurable")}; g.h.bN=function(){this.gV.tQ("audio_audible")};g.m(Q6,uG);g.h=Q6.prototype;g.h.init=function(){uG.prototype.init.call(this);var p=Ef(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),C={adsClientData:this.layout.eb};this.T.push(new qN(p,this.layout.layoutId,Ef(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),C,!0))}; g.h.nt=function(){this.S||this.mx.get().resumeVideo(1)}; g.h.startRendering=function(p){uG.prototype.startRendering.call(this,p);Em(this.mx.get(),"ad-showing");this.callback.gy(this.slot,p);this.W.R0=this}; g.h.XO=function(p,C){uG.prototype.XO.call(this,p,C);lM(this.mx.get(),"ad-showing");Q0(this.W,this)}; g.h.Mg=function(p){switch(p){case "ad-info-icon-button":(this.S=this.mx.get().Hp(1))||this.mx.get().pauseVideo();break;case "visit-advertiser":this.mx.get().pauseVideo()}}; g.h.CS=function(){uG.prototype.CS.call(this)};g.m(rn,tO);g.m(B8,uG);g.h=B8.prototype;g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(C,V,N,H,X){return new rn(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)}; g.h.Mg=function(){};g.m(Gl,tO);g.m(pR,uG);pR.prototype.init=function(){uG.prototype.init.call(this);this.T.push(new Gl(g.n(this.layout.renderingContent,Id),this.layout.layoutId,{adsClientData:this.layout.eb}))}; pR.prototype.Mg=function(){q3(this.S.get(),this.W)&&fs(this.No.get(),3)}; pR.prototype.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; pR.prototype.CS=function(){uG.prototype.CS.call(this)};g.m(CR,tO);g.m(j9,uG);j9.prototype.init=function(){uG.prototype.init.call(this);var p=g.n(this.layout.renderingContent,cB)||Ef(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),C=Zl(this.gV);this.T.push(new CR(p,C,this.layout.layoutId,{adsClientData:this.layout.eb},!0,!0))}; j9.prototype.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; j9.prototype.Mg=function(p,C){if(C===this.layout.layoutId)switch(p){case "skip-button":var V;(p=(V=Ef(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:V.current)&&p.Pe(this.Bc(),this.layout)}}; j9.prototype.CS=function(){uG.prototype.CS.call(this)};ND.prototype.build=function(p,C,V,N){if(Vu(N,{a6:["metadata_type_ad_break_response_data"],OO:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new aES(p,V,N,this.C,this.V,this.T);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.m(kjX,tO);g.m(HB,uG);g.h=HB.prototype;g.h.Mg=function(p,C){Oz("ads-engagement-panel",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,T$),this.callback,"metadata_type_ads_engagement_panel_renderer",function(C,V,N,H,X){return new kjX(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){C.layoutId===this.layout.layoutId?this.gV.tQ("impression"):this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};g.m(XN,uG);g.h=XN.prototype;g.h.Mg=function(p,C){Oz("top-banner-image-text-icon-buttoned",p,this.Y.get().jU,this.No.get(),this.S,this.W,this.Bc(),this.De(),C)}; g.h.startRendering=function(p){Uz(this.gV,this.Bc(),this.De(),g.n(this.De().renderingContent,JM),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(C,V,N,H,X){return new rn(C,V,N,H,X)},this.T); uG.prototype.startRendering.call(this,p)}; g.h.gy=function(p,C){this.W===C.layoutId&&(this.S===null?this.S=this.No.get().Ix():S2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.CS=function(){KP(this.oH(),this);uG.prototype.CS.call(this)};zYQ.prototype.build=function(p,C,V,N){if(Vu(N,xYV())||g.n(N.renderingContent,T$)!==void 0)return new HB(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,DY1())||g.n(N.renderingContent,tM)!==void 0)return new wn(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,Zme())||g.n(N.renderingContent,cP)!==void 0)return new $u(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,fEy()))return new Ls(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,IEX()))return new W8(p,V,N,this.MW,this.No,this.oH, this.AQ,this.T);if(Vu(N,KhH())||g.n(N.renderingContent,MB)!==void 0)return new eY(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,YKL())||g.n(N.renderingContent,JM)!==void 0)return new XN(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,AGe()))return new B8(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);if(Vu(N,Fhs())||g.n(N.renderingContent,m$)!==void 0)return new ns(p,V,N,this.MW,this.No,this.oH,this.AQ,this.T);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+ lH(N.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};RYS.prototype.build=function(p,C,V,N){if(Vu(N,{a6:["metadata_type_linked_player_bytes_layout_id"],OO:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new pR(p,V,N,this.MW,this.No,this.T);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.h=nGy.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(p){p.layoutId!==this.layout.layoutId?this.callback.OV(this.slot,p,new sf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.gy(this.slot,p),this.gV.tQ("impression"),NV(this.u0,p,"normal"))}; g.h.XO=function(p,C){p.layoutId!==this.layout.layoutId?this.callback.OV(this.slot,p,new sf("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.C1(this.slot,p,C)};g.h=Pzy.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(p){p.layoutId!==this.layout.layoutId?this.callback.OV(this.slot,p,new sf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.gy(this.slot,p),this.gV.tQ("impression"),NV(this.u0,p,"normal"))}; g.h.XO=function(p,C){p.layoutId!==this.layout.layoutId?this.callback.OV(this.slot,p,new sf("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.C1(this.slot,p,C)};dO.prototype.build=function(p,C,V,N){if(!this.x_.get().N.K().G("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Vu(N,eYs()))return new nGy(p,V,N,this.No,this.u0)}else if(Vu(N,{a6:[],OO:["LAYOUT_TYPE_FORECASTING"]}))return new Pzy(p,V,N,this.No,this.u0);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.m(LhY,tO);g.m(iv,uG);g.h=iv.prototype;g.h.init=function(){uG.prototype.init.call(this);var p=g.n(this.layout.renderingContent,tn)||Ef(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),C={adsClientData:this.layout.eb};this.T.push(new LhY(p,Ef(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,C))}; g.h.nt=function(){this.S||this.mx.get().resumeVideo(2)}; g.h.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p);this.W.R0=this}; g.h.XO=function(p,C){uG.prototype.XO.call(this,p,C);Q0(this.W,this)}; g.h.Mg=function(p){if(q3(this.Y.get(),this.D))switch(p){case "visit-advertiser-link":fs(this.No.get(),3)}switch(p){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.S||this.mx.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.S=this.mx.get().Hp(2))||this.mx.get().pauseVideo();break;case "visit-advertiser-link":this.mx.get().pauseVideo();gG1(this).qV();break;case "skip-button":if(p=gG1(this), this.layout.renderingContent&&!dt(this.layout.clientMetadata,"metadata_type_dai")||!p.dM){var C;(p=(C=Ef(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:C.current)&&p.Pe(this.Bc(),this.layout)}else S2("Requesting to skip by LegacyPlayerBytes when components enabled"),p.m5(this.Bc(),this.layout)}}; g.h.CS=function(){uG.prototype.CS.call(this)};g.m(hn,uG);g.h=hn.prototype;g.h.init=function(){uG.prototype.init.call(this);var p=g.n(this.layout.renderingContent,lv)||Ef(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),C={adsClientData:this.layout.eb},V;(V=!!this.layout.renderingContent)||(V=!sN(this).dM);this.T.push(new qN(p,this.layout.layoutId,Ef(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),C,V))}; g.h.nt=function(){this.S||this.mx.get().resumeVideo(2)}; g.h.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p);this.W.R0=this}; g.h.XO=function(p,C){uG.prototype.XO.call(this,p,C);Q0(this.W,this)}; g.h.Mg=function(p){if(q3(this.Y.get(),this.D))switch(p){case "visit-advertiser":fs(this.No.get(),3)}switch(p){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.S||this.mx.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.S=this.mx.get().Hp(2))||this.mx.get().pauseVideo();break;case "visit-advertiser":this.mx.get().pauseVideo();sN(this).qV();break;case "skip-button":if(p=sN(this),this.layout.renderingContent&& !dt(this.layout.clientMetadata,"metadata_type_dai")||!p.dM){var C;(p=(C=Ef(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:C.current)&&p.Pe(this.Bc(),this.layout)}else S2("Requesting to skip by LegacyPlayerBytes"),p.m5(this.Bc(),this.layout)}}; g.h.CS=function(){uG.prototype.CS.call(this)};g.m(QWX,tO);g.m(ar,uG);g.h=ar.prototype;g.h.startRendering=function(p){var C=this;Dl(this.C,p,function(){C.T.push(new QWX(Ef(C.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),p.layoutId,p.eb));C.h3();C.callback.gy(C.slot,p);g.r(V0(C.mx.get(),1),512)&&C.callback.OV(C.Bc(),C.De(),new sf("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.h.Eu=function(){}; g.h.Ld=function(p){if(p.state.isError()){var C;this.callback.OV(this.Bc(),this.De(),new sf("A player error happened during adNotify",{playerErrorCode:(C=p.state.UE)==null?void 0:C.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.h.onFullscreenToggled=function(){}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.gx=function(){}; g.h.onVolumeChange=function(){}; g.h.vz=function(){}; g.h.Wz=function(){}; g.h.Mg=function(){};g.m(B7V,tO);g.m(EN,uG);EN.prototype.init=function(){uG.prototype.init.call(this);var p=g.n(this.layout.renderingContent,Tx),C=Zl(this.gV);this.T.push(new B7V(p,C,this.layout.layoutId,{adsClientData:this.layout.eb}))}; EN.prototype.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; EN.prototype.Mg=function(p,C){if(C===this.layout.layoutId)switch(p){case "skip-button":var V;(p=(V=Ef(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:V.current)&&p.Pe(this.Bc(),this.layout)}}; EN.prototype.CS=function(){uG.prototype.CS.call(this)};Gjj.prototype.build=function(p,C,V,N){if(p=MD(p,V,N,this.MW,this.mx,this.No,this.C,this.T,this.x_))return p;throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.h=paX.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){this.mx.get().addListener(this);this.mx.get().xW.push(this);var p=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),C=Ef(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),V=Ef(this.layout.clientMetadata,"metadata_type_active_view_identifier");y6(this.layout.y$)&&NE(this.AQ.get(),this.layout.layoutId,{Yn:C,s7:p,listener:this,tG:V})}; g.h.release=function(){this.mx.get().removeListener(this);ZQY(this.mx.get(),this);y6(this.layout.y$)&&Hq(this.AQ.get(),this.layout.layoutId)}; g.h.startRendering=function(p){this.callback.gy(this.slot,p)}; g.h.XO=function(p,C){vB(this,"abandon");this.callback.C1(this.slot,p,C)}; g.h.vz=function(p){switch(p.id){case "part2viewed":this.gV.tQ("start");this.gV.tQ("impression");break;case "videoplaytime25":this.gV.tQ("first_quartile");break;case "videoplaytime50":this.gV.tQ("midpoint");break;case "videoplaytime75":this.gV.tQ("third_quartile");break;case "videoplaytime100":vB(this,"complete");Rj(this.gV)&&Yu(this.gV,Infinity,!0);break;case "engagedview":Rj(this.gV)||this.gV.tQ("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:S2("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.gx=function(){}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.onFullscreenToggled=function(){}; g.h.Ld=function(p){this.T||(g.u$(p,4)&&!g.u$(p,2)?xu(this.gV,"pause"):D7(p,4)<0&&!(D7(p,2)<0)&&xu(this.gV,"resume"))}; g.h.Eu=function(){}; g.h.EU=function(p){Rj(this.gV)&&Yu(this.gV,p*1E3,!1)}; g.h.Wz=function(){vB(this,"swipe")}; g.h.sA=function(){this.gV.tQ("active_view_measurable")}; g.h.Iy=function(){this.gV.tQ("active_view_viewable")}; g.h.Ao=function(){this.gV.tQ("active_view_fully_viewable_audible_half_duration")}; g.h.Cr=function(){this.gV.tQ("audio_measurable")}; g.h.bN=function(){this.gV.tQ("audio_audible")};Cqe.prototype.build=function(p,C,V,N){C=["metadata_type_ad_placement_config"];for(var H=g.F(Ay()),X=H.next();!X.done;X=H.next())C.push(X.value);if(Vu(N,{a6:C,OO:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return V.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new paX(p,V,N,this.mx,this.No,this.x_,this.AQ):new bme(p,V,N,this.mx,this.No,this.zk,this.x_,this.AQ);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); };var Ds={contentCpn:"",Kw:new Map};aUX.prototype.Vr=function(p,C){var V={};C=Object.assign({},C,(V.cc=this.w6.Zr(),V));this.w6.N.k_(p,C)};var b_F,oJ; b_F={Ti_:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Nix:"AUTHENTICATION_MALFORMED",GWa:"AUTHENTICATION_MISSING",ejY:"BAD_REQUEST",BiV:"CAST_SESSION_DEVICE_MISMATCHED",t5o:"CAST_SESSION_VIDEO_MISMATCHED",U5r:"CAST_TOKEN_EXPIRED",Kfn:"CAST_TOKEN_FAILED",lP$:"CAST_TOKEN_MALFORMED",gqr:"CGI_PARAMS_MALFORMED",OOS:"CGI_PARAMS_MISSING",VUx:"DEVICE_FALLBACK",Bxa:"GENERIC_WITH_LINK_AND_CPN",tU$:"ERROR_HDCP",U3S:"LICENSE",lue:"VIDEO_UNAVAILABLE",oNo:"FORMAT_UNAVAILABLE",qun:"GEO_FAILURE", Sfn:"HTML5_AUDIO_RENDERER_ERROR",Em_:"GENERIC_WITHOUT_LINK",u5S:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",mwV:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",vmk:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",zYk:"HTML5_SPS_UMP_STATUS_REJECTED",pz$:"INVALID_DRM_MESSAGE",Sha:"PURCHASE_NOT_FOUND",Eb_:"PURCHASE_REFUNDED",WY$:"RENTAL_EXPIRED",HMS:"RETRYABLE_ERROR",UBa:"SERVER_ERROR",j8_:"SIGNATURE_EXPIRED",yWn:"STOPPED_BY_ANOTHER_PLAYBACK",Tok:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",kAV:"STREAMING_NOT_ALLOWED", a_n:"STREAM_LICENSE_NOT_FOUND",rWx:"TOO_MANY_REQUESTS",VS$:"TOO_MANY_REQUESTS_WITH_LINK",Smn:"TOO_MANY_STREAMS_PER_ENTITLEMENT",E5a:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",UOk:"VIDEO_FORBIDDEN",Kme:"VIDEO_NOT_FOUND",P8Y:"BROWSER_OR_EXTENSION_ERROR"};oJ={}; g.CZ=(oJ.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",oJ.DEVICE_FALLBACK="Sorry, this video is not available on this device.",oJ.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",oJ.LICENSE="Sorry, there was an error licensing this video.",oJ.VIDEO_UNAVAILABLE= "Video unavailable",oJ.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",oJ.GEO_FAILURE="This video isn't available in your country.",oJ.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",oJ.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",oJ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",oJ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", oJ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",oJ.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",oJ.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",oJ.PURCHASE_NOT_FOUND="This video requires payment.",oJ.PURCHASE_REFUNDED="This video's purchase has been refunded.",oJ.RENTAL_EXPIRED="This video's rental has expired.",oJ.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",oJ.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",oJ.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",oJ.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",oJ.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",oJ.SERVER_ERROR="There was an internal server error. Please try again later.",oJ.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",oJ.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",oJ.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",oJ.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",oJ.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",oJ.TOO_MANY_REQUESTS="Please log in to watch this video.", oJ.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",oJ.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",oJ.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",oJ.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",oJ.VIDEO_FORBIDDEN="Access to this video is forbidden.",oJ.VIDEO_NOT_FOUND="This video can not be found.",oJ.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",oJ);var Ac5;var oKc=g.f0(),k9f=oKc.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!k9f||k9f.length<2)Ac5=void 0;else{var x1y=oKc.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Ac5=x1y&&x1y.length===6?Number(x1y[5].replace("_",".")):0}var Lk=Ac5,Q$=Lk>=0;g.m(g.Rr,I_);g.Rr.prototype.U=function(p,C,V,N,H){return I_.prototype.U.call(this,p,C,V,N,H)};var kR={},a5=(kR.FAIRPLAY="fairplay",kR.PLAYREADY="playready",kR.WIDEVINE="widevine",kR.CLEARKEY=null,kR.FLASHACCESS=null,kR.UNKNOWN=null,kR.WIDEVINE_CLASSIC=null,kR);nR.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var xR={},mw=(xR.WIDTH={name:"width",video:!0,valid:640,Lk:99999},xR.HEIGHT={name:"height",video:!0,valid:360,Lk:99999},xR.FRAMERATE={name:"framerate",video:!0,valid:30,Lk:9999},xR.BITRATE={name:"bitrate",video:!0,valid:3E5,Lk:2E9},xR.EOTF={name:"eotf",video:!0,valid:"bt709",Lk:"catavision"},xR.CHANNELS={name:"channels",video:!1,valid:2,Lk:99},xR.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Lk:"invalidformat"},xR.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Lk:"nope"},xR.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Lk:"av99.0.05M.08"},xR.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Lk:"invalid"},xR);var YL8=["h","H"],zjv=["9","("],Rjy=["9h","(h"],nKc=["8","*"],ej1=["a","A"],PgP=["o","O"],wTP=["m","M"],$1F=["mac3","MAC3"],LKy=["meac3","MEAC3"],YR={},VBL=(YR.h=YL8,YR.H=YL8,YR["9"]=zjv,YR["("]=zjv,YR["9h"]=Rjy,YR["(h"]=Rjy,YR["8"]=nKc,YR["*"]=nKc,YR.a=ej1,YR.A=ej1,YR.o=PgP,YR.O=PgP,YR.m=wTP,YR.M=wTP,YR.mac3=$1F,YR.MAC3=$1F,YR.meac3=LKy,YR.MEAC3=LKy,YR),gK0=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),g6a=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var zU={},gO=(zU["0"]="f",zU["160"]="h",zU["133"]="h",zU["134"]="h",zU["135"]="h",zU["136"]="h",zU["137"]="h",zU["264"]="h",zU["266"]="h",zU["138"]="h",zU["298"]="h",zU["299"]="h",zU["304"]="h",zU["305"]="h",zU["214"]="h",zU["216"]="h",zU["374"]="h",zU["375"]="h",zU["140"]="a",zU["141"]="ah",zU["327"]="sa",zU["258"]="m",zU["380"]="mac3",zU["328"]="meac3",zU["161"]="H",zU["142"]="H",zU["143"]="H",zU["144"]="H",zU["222"]="H",zU["223"]="H",zU["145"]="H",zU["224"]="H",zU["225"]="H",zU["146"]="H",zU["226"]= "H",zU["227"]="H",zU["147"]="H",zU["384"]="H",zU["376"]="H",zU["385"]="H",zU["377"]="H",zU["149"]="A",zU["261"]="M",zU["381"]="MAC3",zU["329"]="MEAC3",zU["598"]="9",zU["278"]="9",zU["242"]="9",zU["243"]="9",zU["244"]="9",zU["775"]="9",zU["776"]="9",zU["777"]="9",zU["778"]="9",zU["779"]="9",zU["780"]="9",zU["781"]="9",zU["782"]="9",zU["783"]="9",zU["247"]="9",zU["248"]="9",zU["353"]="9",zU["355"]="9",zU["356"]="9",zU["271"]="9",zU["577"]="9",zU["313"]="9",zU["579"]="9",zU["272"]="9",zU["302"]="9", zU["303"]="9",zU["407"]="9",zU["408"]="9",zU["308"]="9",zU["315"]="9",zU["330"]="9h",zU["331"]="9h",zU["332"]="9h",zU["333"]="9h",zU["334"]="9h",zU["335"]="9h",zU["336"]="9h",zU["337"]="9h",zU["338"]="so",zU["600"]="o",zU["250"]="o",zU["251"]="o",zU["774"]="o",zU["194"]="*",zU["195"]="*",zU["220"]="*",zU["221"]="*",zU["196"]="*",zU["197"]="*",zU["279"]="(",zU["280"]="(",zU["317"]="(",zU["318"]="(",zU["273"]="(",zU["274"]="(",zU["357"]="(",zU["358"]="(",zU["275"]="(",zU["359"]="(",zU["360"]="(",zU["276"]= "(",zU["583"]="(",zU["584"]="(",zU["314"]="(",zU["585"]="(",zU["561"]="(",zU["277"]="(",zU["361"]="(h",zU["362"]="(h",zU["363"]="(h",zU["364"]="(h",zU["365"]="(h",zU["366"]="(h",zU["591"]="(h",zU["592"]="(h",zU["367"]="(h",zU["586"]="(h",zU["587"]="(h",zU["368"]="(h",zU["588"]="(h",zU["562"]="(h",zU["409"]="(",zU["410"]="(",zU["411"]="(",zU["412"]="(",zU["557"]="(",zU["558"]="(",zU["394"]="1",zU["395"]="1",zU["396"]="1",zU["397"]="1",zU["398"]="1",zU["399"]="1",zU["720"]="1",zU["721"]="1",zU["400"]= "1",zU["401"]="1",zU["571"]="1",zU["402"]="1",zU["694"]="1h",zU["695"]="1h",zU["696"]="1h",zU["697"]="1h",zU["698"]="1h",zU["699"]="1h",zU["700"]="1h",zU["701"]="1h",zU["702"]="1h",zU["703"]="1h",zU["386"]="3",zU["387"]="w",zU["406"]="6",zU["787"]="1",zU["788"]="1",zU["645"]="(",zU["646"]="(",zU["647"]="(",zU["648"]="(",zU["649"]="(",zU["650"]="(",zU["651"]="(",zU["652"]="(",zU["653"]="(",zU["654"]="(",zU["655"]="(",zU["656"]="(",zU["657"]="(",zU["658"]="(",zU["659"]="(",zU["660"]="(",zU["661"]="(", zU["662"]="(",zU["663"]="(",zU["664"]="(",zU["665"]="(",zU["666"]="(",zU["667"]="(",zU["668"]="(",zU["669"]="(",zU["670"]="(",zU["671"]="(",zU["672"]="(",zU["673"]="(",zU["674"]="(h",zU["675"]="(h",zU["676"]="(h",zU["677"]="(h",zU["678"]="(h",zU["679"]="(h",zU["680"]="(h",zU["681"]="(h",zU["682"]="(h",zU["683"]="(h",zU["684"]="(h",zU["685"]="(h",zU["686"]="(h",zU["687"]="(h",zU["688"]="A",zU["689"]="A",zU["690"]="A",zU["691"]="MEAC3",zU["773"]="i",zU["806"]="I",zU["805"]="I",zU);var RJ={},xVQ=(RJ.STEREO_LAYOUT_UNKNOWN=0,RJ.STEREO_LAYOUT_LEFT_RIGHT=1,RJ.STEREO_LAYOUT_TOP_BOTTOM=2,RJ);var nM,H1;nM={};g.PB=(nM.auto=0,nM.tiny=144,nM.light=144,nM.small=240,nM.medium=360,nM.large=480,nM.hd720=720,nM.hd1080=1080,nM.hd1440=1440,nM.hd2160=2160,nM.hd2880=2880,nM.highres=4320,nM);H1={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var $Z="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");wO.prototype.isHdr=function(){return this.C==="smpte2084"||this.C==="arib-std-b67"};WB.prototype.Ft=function(){return this.containerType===2}; WB.prototype.isEncrypted=function(){return!!this.vV}; WB.prototype.DQ=function(){return!!this.audio}; WB.prototype.K9=function(){return!!this.video};g.m(Mf,g.ca);g.h=Mf.prototype;g.h.appendBuffer=function(p,C,V){if(this.jr.QH()!==this.appendWindowStart+this.start||this.jr.Fm()!==this.appendWindowEnd+this.start||this.jr.yZ()!==this.timestampOffset+this.start)this.jr.supports(1),this.jr.AJ(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.jr.pp(this.timestampOffset+this.start);this.jr.appendBuffer(p,C,V)}; g.h.abort=function(){this.jr.abort()}; g.h.remove=function(p,C){this.jr.remove(p+this.start,C+this.start)}; g.h.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.h.clear=function(){this.jr.clear()}; g.h.AJ=function(p,C){this.appendWindowStart=p;this.appendWindowEnd=C}; g.h.PG=function(){return this.timestampOffset+this.start}; g.h.QH=function(){return this.appendWindowStart}; g.h.Fm=function(){return this.appendWindowEnd}; g.h.pp=function(p){this.timestampOffset=p}; g.h.yZ=function(){return this.timestampOffset}; g.h.K7=function(p){p=this.jr.K7(p===void 0?!1:p);return Tw(p,this.start,this.end)}; g.h.SO=function(){return this.jr.SO()}; g.h.f3=function(){return this.jr.f3()}; g.h.Ii=function(){return this.jr.Ii()}; g.h.Vj=function(){return this.jr.Vj()}; g.h.aO=function(){this.jr.aO()}; g.h.pg=function(p){return this.jr.pg(p)}; g.h.jA=function(){return this.jr.jA()}; g.h.n3=function(){return this.jr.n3()}; g.h.M7=function(){return this.jr.M7()}; g.h.SJ=function(p,C,V){this.jr.SJ(p,C,V)}; g.h.Eq=function(p,C,V){this.jr.Eq(p,C,V)}; g.h.V9=function(p,C){return this.jr.V9(p,C)}; g.h.supports=function(p){return this.jr.supports(p)}; g.h.ye=function(){return this.jr.ye()}; g.h.isView=function(){return!0}; g.h.xT=function(){return this.jr.xT()?this.isActive:!1}; g.h.isLocked=function(){return this.VC&&!this.isActive}; g.h.X0=function(p){p=this.jr.X0(p);p.vw=this.start+"-"+this.end;return p}; g.h.C3=function(){return this.jr.C3()}; g.h.Q4=function(){return this.jr.Q4()}; g.h.Nk=function(){return this.jr.Nk()}; g.h.CS=function(){My(this.jr,this.Ee);g.ca.prototype.CS.call(this)};var CA=!1;g.m(mu,g.ca);g.h=mu.prototype;g.h.appendBuffer=function(p,C,V){this.yH=!1;V&&(this.Qe=V);if(p.length){var N;((N=this.NW)==null?0:N.appendBuffer)?this.NW.appendBuffer(p):this.NW?this.NW.append(p):this.S5&&this.S5.webkitSourceAppend(this.id,p)}C&&(C.isEncrypted()&&(this.PF=this.Qe),C.type===3&&(this.lW=C),this.JA.push(C.Zh()),this.JA.length>4&&this.JA.shift());this.hv&&(this.hv.length>=2||p.length>1048576?delete this.hv:this.hv.push(p))}; g.h.abort=function(){try{this.NW?this.NW.abort():this.S5&&this.S5.webkitSourceAbort(this.id)}catch(p){L7Q&&g.nm(new g.Bw("Error while abort the source buffer: "+p.name+", "+p.message))}this.Qe=this.lW=null}; g.h.remove=function(p,C,V){this.yH=!1;var N;if((N=this.NW)==null?0:N.remove)V&&V({b:sJ(this.K7()),s:p,e:C}),this.NW.remove(p,C)}; g.h.removeAll=function(){this.remove(this.QH(),this.Fm())}; g.h.clear=function(){this.Ii()||(this.abort(),this.removeAll(),this.PF=this.Qe=this.lW=null,this.appendWindowStart=this.timestampOffset=0,this.Rh=hj([],[]),this.yH=!1,this.hv=Jj?[]:void 0,this.V_=!0)}; g.h.QH=function(){if(CA&&this.K9)return this.appendWindowStart;var p;return((p=this.NW)==null?void 0:p.appendWindowStart)||0}; g.h.Fm=function(){var p;return((p=this.NW)==null?void 0:p.appendWindowEnd)||0}; g.h.AJ=function(p,C){this.NW&&(CA&&this.K9?(this.appendWindowStart=p,this.NW.appendWindowEnd=C):p>this.QH()?(this.NW.appendWindowEnd=C,this.NW.appendWindowStart=p):(this.NW.appendWindowStart=p,this.NW.appendWindowEnd=C))}; g.h.PG=function(){return this.timestampOffset}; g.h.pp=function(p){CA?this.timestampOffset=p:this.supports(1)&&(this.NW.timestampOffset=p)}; g.h.yZ=function(){return CA?this.timestampOffset:this.supports(1)?this.NW.timestampOffset:0}; g.h.K7=function(p){if(p===void 0?0:p)return this.yH||this.SO()||(this.Rh=this.K7(!1),this.yH=!0),this.Rh;try{return this.NW?this.NW.buffered:this.S5?this.S5.webkitSourceBuffered(this.id):hj([0],[Infinity])}catch(C){return hj([],[])}}; g.h.SO=function(){var p;return((p=this.NW)==null?void 0:p.updating)||!1}; g.h.Ii=function(){return this.V_}; g.h.Vj=function(){return!this.V_&&this.SO()}; g.h.aO=function(){this.V_=!1}; g.h.pg=function(p){var C=p==null?void 0:p.o$;p=p==null?void 0:p.containerType;return!C&&!p||C===this.o$&&p===this.containerType}; g.h.jA=function(){return this.Qe}; g.h.n3=function(){return this.PF}; g.h.V9=function(p,C){return this.containerType!==p||this.o$!==C}; g.h.SJ=function(p,C,V){if(this.containerType!==p||V&&this.V9(p,V))this.supports(4),rN()&&this.NW.changeType(C),V&&(this.o$=V);this.containerType=p}; g.h.Eq=function(p,C,V){this.containerType&&this.V9(p,C)&&rN()&&this.NW.changeType(V);this.containerType=p;this.o$=C}; g.h.ye=function(){return this.lW}; g.h.isView=function(){return!1}; g.h.supports=function(p){switch(p){case 1:var C;return((C=this.NW)==null?void 0:C.timestampOffset)!==void 0;case 0:var V;return!((V=this.NW)==null||!V.appendBuffer);case 2:var N;return!((N=this.NW)==null||!N.remove);case 3:var H,X;return!!(((H=this.NW)==null?0:H.addEventListener)&&((X=this.NW)==null?0:X.removeEventListener));case 4:return!(!this.NW||!this.NW.changeType);default:return!1}}; g.h.xT=function(){return!this.SO()}; g.h.isLocked=function(){return!1}; g.h.X0=function(p){p.to=this.yZ();p.up=this.SO();var C,V=((C=this.NW)==null?void 0:C.appendWindowStart)||0,N;C=((N=this.NW)==null?void 0:N.appendWindowEnd)||Infinity;p.aw=V.toFixed(3)+"-"+C.toFixed(3);return p}; g.h.f3=function(){var p;return((p=this.NW)==null?void 0:p.writeHead)||0}; g.h.C3=function(){for(var p={},C=0;C<this.JA.length;C++)p["s"+C]=this.JA[C];return p}; g.h.CS=function(){this.supports(3)&&(this.NW.removeEventListener("updateend",this.qZ),this.NW.removeEventListener("error",this.qZ));g.ca.prototype.CS.call(this)}; g.h.Q4=function(){return this.containerType}; g.h.M7=function(){return this.o$}; g.h.Nk=function(){return this.hv}; var Jj=!1,L7Q=!1;pV.prototype.dispose=function(){if(!this.fS()){if(this.T)try{URL.revokeObjectURL(this.sR)}catch(p){}this.C=!0}}; pV.prototype.fS=function(){return this.C}; pV.prototype.sE=function(p){return p!==null&&p.sR===this.sR}; pV.prototype.toString=function(){return"MediaResource {"+this.sR+"}"};g.m(CV,g.Y);g.h=CV.prototype;g.h.getDuration=function(){var p;return((p=this.Hr)==null?void 0:p.duration)||this.Z}; g.h.Nr=function(p){try{this.Hr?this.Hr.duration=p:(this.Z=p,this.S5.webkitSourceSetDuration(p))}catch(C){}}; g.h.gI=function(){try{return dl(this)==="closed"}catch(p){return!0}}; g.h.SO=function(){return!!(this.T&&this.T.SO()||this.C&&this.C.SO())}; g.h.isAsync=function(){return this.T?!!this.T.supports(0):iU()}; g.h.fEx=function(){!this.fS()&&j6(this)&&this.callback&&(this.callback(this),this.callback=null)}; g.h.i1k=function(){this.dispose()}; g.h.SC=function(p){if(VP&&!this.S&&p.Ii()&&p.K7().length===0){var C;Nr(this.mediaElement,{l:"mswoue",sr:(C=this.mediaElement.Ta)==null?void 0:Hj(C)},!1);p.aO();this.Ii()||(this.mediaElement.UM=!0,this.mediaElement.setCurrentTime(0))}}; g.h.Bq=function(){return!!this.T.supports(2)}; g.h.clear=function(){Fz1(this,function(){}); var p;(p=this.T)==null||p.clear();var C;(C=this.C)==null||C.clear()}; g.h.Ii=function(){var p,C;return((p=this.C)==null?void 0:p.Ii())||((C=this.T)==null?void 0:C.Ii())}; g.h.pg=function(p,C){return!!this.T&&!!this.C&&this.T.pg(C)&&this.C.pg(p)}; var VP=!1;hK.prototype.then=function(p,C){return this.promise.then(p,C)}; hK.prototype.resolve=function(p){this.Jo(p)}; hK.prototype.reject=function(p){this.B2(p)};g.m(s3,g.Y);g.h=s3.prototype;g.h.YA=function(){return this.sR}; g.h.activate=function(p){var C="";p&&(yOv(this,p),C=p.sR);if(!this.U8()||C)C&&this.U8()!==C&&(this.E1(C),delete this.C,this.V&&(this.V.reject(),delete this.V),!window.MediaSource&&window.ManagedMediaSource&&this.IE(!(p==null||!p.T))),p&&p.T||this.load(),this.D||(this.addEventListener("volumechange",this.N0),this.D=!0)}; g.h.In=function(p,C){if(this.C)if($0V&&XO(this.C)&&!this.C.pg(p,C)){var V;Nr(this,{l:"megms",sr:(V=this.Ta)==null?void 0:Hj(V)});fUV(this);this.stopVideo()}else return this.Hr=this.C,this.C=void 0,this.Hr;p=window.MediaSource?new CV(this,new window.MediaSource,!1):window.ManagedMediaSource?new CV(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new CV(this,new window.WebKitMediaSource,!1):new CV(this,void 0,!1);this.activate(p.V);this.Hr=p;this.UM=!1;return p}; g.h.playVideo=function(){var p=this;this.isEnded()&&this.seekTo(0);!this.U8()&&this.sR&&(g.nm(Error("playVideo without src")),this.E1(this.sR.sR),this.sR.T||this.load());var C=this.play(),V;((V=this.Ta)==null?0:V.G("html5_remove_ios_7_hack_force_play"))||!C&&Q$&&(Lk||0)>=7&&E0e(this,function(){g.F5(function(){Oq9(p,p.getCurrentTime(),0)},500)}); return C}; g.h.seekTo=function(p){this.wh()>0&&(Q$&&Lk<4&&(p=Math.max(.1,p)),this.setCurrentTime(p))}; g.h.Q6=function(){if(!this.C&&this.Hr)if(this.Hr.W)try{var p;Nr(this,{l:"mer",sr:(p=this.Ta)==null?void 0:Hj(p),rs:dl(this.Hr)});this.Hr.clear();this.C=this.Hr;this.Hr=void 0}catch(C){p=new g.Bw("Error while clearing Media Source in MediaElement: "+C.name+", "+C.message),g.nm(p),this.stopVideo()}else this.stopVideo()}; g.h.stopVideo=function(){var p=this;if(!this.C){var C;(C=this.Hr)==null||Zqy(C);if(PAX){if(!this.V){var V=new hK;V.then(void 0,function(){}); this.V=V;w9L&&this.pause();g.F5(function(){p.V===V&&(lU(p),V.resolve())},200)}}else lU(this)}}; g.h.k6=function(){var p=this.yx();return tj(p)>0&&this.getDuration()?lX(p,this.getCurrentTime()):0}; g.h.qD=function(){var p=this.getDuration();return p===Infinity?1:p?this.k6()/p:0}; g.h.X0=function(){try{var p=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:sJ(this.TC(),",",3),vbu:sJ(this.yx()),vbs:sJ(this.cW()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.wh(),vns:""+this.xd(),vec:""+this.LO(),vemsg:this.FF(),vvol:""+this.getVolume(),vdom:""+ +this.S4(),vsrc:""+ +!!this.U8(),vw:""+p.width,vh:""+p.height}}catch(C){return{}}}; g.h.hasError=function(){return this.LO()>0}; g.h.addEventListener=function(p,C){this.S.listen(p,C,!1,this);this.Rw(p)}; g.h.removeEventListener=function(p,C){this.S.rY(p,C,!1,this)}; g.h.dispatchEvent=function(p){if(this.V&&p.type==="pause")return!1;if($0V){var C,V=((C=p.T)==null?void 0:C.timeStamp)||Infinity;C=V>performance.now()?V-Date.now()+performance.now():V;V=this.C||this.Hr;if((V==null?0:V.Ii())||C<=((V==null?void 0:V.Y)||0)){var N;Nr(this,{l:"mede",sr:(N=this.Ta)==null?void 0:Hj(N),et:p.type});return!1}if(this.UM)return Nr(this,{l:"medes",et:p.type}),V&&p.type==="seeking"&&(V.Y=performance.now(),this.UM=!1),!1}return this.S.dispatchEvent(p)}; g.h.e2=function(){this.Y=!1}; g.h.W4=function(){this.Y=!0;this.BC(!0)}; g.h.N0=function(){this.Y&&!this.AR()&&this.BC(!0)}; g.h.sE=function(p){return!!p&&p.V$()===this.V$()}; g.h.CS=function(){this.D&&this.removeEventListener("volumechange",this.N0);PAX&&lU(this);g.Y.prototype.CS.call(this)}; var PAX=!1,w9L=!1,$0V=!1,IUS=!1;g.h=g.cj.prototype;g.h.isPaused=function(){return g.r(this,4)}; g.h.isPlaying=function(){return g.r(this,8)&&!g.r(this,512)&&!g.r(this,64)&&!g.r(this,2)}; g.h.isOrWillBePlaying=function(){return g.r(this,8)&&!g.r(this,2)&&!g.r(this,1024)}; g.h.isCued=function(){return g.r(this,64)&&!g.r(this,8)&&!g.r(this,4)}; g.h.isBuffering=function(){return g.r(this,1)&&!g.r(this,2)}; g.h.isError=function(){return g.r(this,128)}; g.h.isSuspended=function(){return g.r(this,512)}; g.h.Bo=function(){return g.r(this,64)&&g.r(this,4)}; g.h.toString=function(){return"PSt."+this.state.toString(16)}; var ed={},PD=(ed.BUFFERING="buffering-mode",ed.CUED="cued-mode",ed.ENDED="ended-mode",ed.PAUSED="paused-mode",ed.PLAYING="playing-mode",ed.SEEKING="seeking-mode",ed.UNSTARTED="unstarted-mode",ed);g.m(uU,g.Y);g.h=uU.prototype;g.h.rP=function(){return this.V}; g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){var p=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),C=Ef(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");y6(this.layout.y$)&&NE(this.AQ.get(),this.layout.layoutId,{Yn:C,s7:p,listener:this,e1:this.sV()});JS1(this.No.get(),this);p=this.e5;C=this.layout.layoutId;var V={e1:this.sV()};p.T.set(C,V);this.l5()}; g.h.VT=function(){}; g.h.release=function(){y6(this.layout.y$)&&Hq(this.AQ.get(),this.layout.layoutId);muu(this.No.get(),this);this.e5.T.delete(this.layout.layoutId);this.UA()}; g.h.jt=function(){}; g.h.MS=function(){}; g.h.startRendering=function(p){UN(Z5(this));if(U3(this,p)){var C=this.T;fR(C.params.Rx.x_.get(),!0)&&sSS(C,"p_sr",{});fV(this);this.cn(p);this.sV()||this.MF(!1)}}; g.h.gy=function(p,C){if(C.layoutId===this.layout.layoutId){this.JQ="rendering";this.C=this.mx.get().isMuted()||this.mx.get().getVolume()===0;this.tQ("impression");this.tQ("start");if(this.mx.get().isMuted()){AK(this,"mute");var V;p=((V=D5(this))==null?void 0:V.muteCommands)||[];rt(this.zk.get(),p,this.layout.layoutId)}if(this.mx.get().isFullscreen()){this.pO("fullscreen");var N;V=((N=D5(this))==null?void 0:N.fullscreenCommands)||[];rt(this.zk.get(),V,this.layout.layoutId)}this.sV()||(N=this.sZ.get(), N.V&&!N.C&&(N.W=!1,N.C=!0,N.actionType!=="ad_to_video"&&(hd("pbs",void 0,N.actionType),g.Zr("finalize_all_timelines")&&G4y(N.actionType))));this.GA(1);this.DG(C);var H;C=((H=D5(this))==null?void 0:H.impressionCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.JH=function(p,C,V){this.D={Ay:3,AM:p==="load_timeout"?402:400,errorMessage:C.message};this.tQ("error");var N;p=((N=D5(this))==null?void 0:N.errorCommands)||[];rt(this.zk.get(),p,this.layout.layoutId);this.sV()||this.FN.OV(this.slot,this.layout,C,V)}; g.h.gS=function(){if(this.JQ==="rendering"){AK(this,"pause");var p,C=((p=D5(this))==null?void 0:p.pauseCommands)||[];rt(this.zk.get(),C,this.layout.layoutId);this.GA(2)}}; g.h.Oj=function(){if(this.JQ==="rendering"){AK(this,"resume");var p,C=((p=D5(this))==null?void 0:p.resumeCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.nW=function(p,C){C=C===void 0?!1:C;if(this.JQ==="rendering"){var V={currentTimeSec:p,flush:C};ON(this.T,"p_ip",V);Yu(this.gV,p*1E3,C);this.C||Yu(this.gV,p*1E3,C===void 0?!1:C);var N=this.wH();if(N){N/=1E3;if(p>=N*.25||C)this.tQ("first_quartile"),ON(this.T,"p_fq",V);if(p>=N*.5||C)this.tQ("midpoint"),ON(this.T,"p_sq",V);if(p>=N*.75||C)this.tQ("third_quartile"),ON(this.T,"p_tq",V);this.x_.get().N.K().experiments.OY("enable_progress_command_flush_on_kabuki")?gn(this.S,p*1E3,C):gn(this.S,p*1E3,Yys(this)? C:!1)}}}; g.h.Zr=function(){var p;return((p=O3(this.pS.get(),1))==null?void 0:p.clientPlaybackNonce)||""}; g.h.x0=function(p,C){p.layoutId!==this.layout.layoutId?this.FN.OV(this.slot,p,new sf("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):C()}; g.h.C1=function(p,C,V){if(C.layoutId===this.layout.layoutId)switch(this.JQ="not_rendering",this.layoutExitReason=void 0,this.sV()||(p=V!=="normal"||this.position+1===this.Y)&&this.MF(p),this.lR(V),this.GA(0),V){case "abandoned":if(zl(this.gV,"impression")){var N,H=((N=D5(this))==null?void 0:N.abandonCommands)||[];rt(this.zk.get(),H,this.layout.layoutId)}break;case "normal":N=((H=D5(this))==null?void 0:H.completeCommands)||[];rt(this.zk.get(),N,this.layout.layoutId);break;case "skipped":var X;N=((X= D5(this))==null?void 0:X.skipCommands)||[];rt(this.zk.get(),N,this.layout.layoutId)}}; g.h.oO=function(){return this.layout.layoutId}; g.h.j2=function(){return this.D}; g.h.sA=function(){if(this.JQ==="rendering"){this.gV.tQ("active_view_measurable");var p,C=((p=D5(this))==null?void 0:p.activeViewMeasurableCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.Ao=function(){if(this.JQ==="rendering"){this.gV.tQ("active_view_fully_viewable_audible_half_duration");var p,C=((p=D5(this))==null?void 0:p.activeViewFullyViewableAudibleHalfDurationCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.Iy=function(){if(this.JQ==="rendering"){this.gV.tQ("active_view_viewable");var p,C=((p=D5(this))==null?void 0:p.activeViewViewableCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.bN=function(){if(this.JQ==="rendering"){this.gV.tQ("audio_audible");var p,C=((p=D5(this))==null?void 0:p.activeViewAudioAudibleCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.Cr=function(){if(this.JQ==="rendering"){this.gV.tQ("audio_measurable");var p,C=((p=D5(this))==null?void 0:p.activeViewAudioMeasurableCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}}; g.h.MF=function(p){this.sZ.get().MF(Ef(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,p,this.position,this.Y,!1)}; g.h.onFullscreenToggled=function(p){if(this.JQ==="rendering")if(p){this.pO("fullscreen");var C,V=((C=D5(this))==null?void 0:C.fullscreenCommands)||[];rt(this.zk.get(),V,this.layout.layoutId)}else this.pO("end_fullscreen"),C=((V=D5(this))==null?void 0:V.endFullscreenCommands)||[],rt(this.zk.get(),C,this.layout.layoutId)}; g.h.onVolumeChange=function(){if(this.JQ==="rendering")if(this.mx.get().isMuted()){AK(this,"mute");var p,C=((p=D5(this))==null?void 0:p.muteCommands)||[];rt(this.zk.get(),C,this.layout.layoutId)}else AK(this,"unmute"),p=((C=D5(this))==null?void 0:C.unmuteCommands)||[],rt(this.zk.get(),p,this.layout.layoutId)}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.gx=function(){}; g.h.vz=function(){}; g.h.Wz=function(){}; g.h.pO=function(p){this.gV.pO(p,!this.C)}; g.h.tQ=function(p){this.gV.tQ(p,!this.C)}; g.h.sV=function(){var p=Ef(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return p===void 0?(S2("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.x_.get().sV(p)};g.m(zP,uU);g.h=zP.prototype;g.h.l5=function(){}; g.h.UA=function(){var p=this.No.get();p.df===this&&(p.df=null);this.Yt.stop()}; g.h.jt=function(){this.Yt.stop();uU.prototype.gS.call(this)}; g.h.MS=function(){nV(this);uU.prototype.Oj.call(this)}; g.h.wH=function(){return Ef(this.De().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.h.XO=function(p,C){var V=this;this.x0(p,function(){V.JQ!=="rendering_stop_requested"&&(V.JQ="rendering_stop_requested",V.layoutExitReason=C,yP(V,C),V.Yt.stop())})}; g.h.m6=function(){var p=Date.now(),C=p-this.Dz;this.Dz=p;this.Xg+=C;this.Xg>=this.wH()?this.b2():(this.nW(this.Xg/1E3),Rk(this,this.Xg))}; g.h.lR=function(){}; g.h.Eu=function(){}; g.m(e6,zP);g.h=e6.prototype;g.h.Ld=function(p){if(this.JQ!=="not_rendering"){p=qr(this,p);var C=this.mx.get().getPresentingPlayerType()===2;this.JQ==="rendering_start_requested"?C&&Jn(p)&&this.mA():C?g.u$(p,2)?S2("Receive player ended event during MediaBreak",this.Bc(),this.De()):Ik(this,p):this.MP()}}; g.h.cn=function(){kBe(this);OQu(this.mx.get());this.No.get().df=this;dc("pbp")||dc("pbs")||hd("pbp");dc("pbp","watch")||dc("pbs","watch")||hd("pbp",void 0,"watch");this.mA()}; g.h.DG=function(p){this.sZ.get();var C=Ef(p.clientMetadata,"metadata_type_ad_placement_config").kind,V=this.position===0;p=Ef(p.clientMetadata,"metadata_type_linked_in_player_layout_type");p={adBreakType:bU(C),adType:QS9(p)};var N=void 0;V?C!=="AD_PLACEMENT_KIND_START"&&(N="video_to_ad"):N="ad_to_ad";NR("ad_mbs",void 0,N);g.HH(p,N);nV(this)}; g.h.MP=function(){this.Co()}; g.h.b2=function(){R3V(this);this.Co()}; g.m(Pj,zP);g.h=Pj.prototype;g.h.Ld=function(p){this.JQ!=="not_rendering"&&(p=qr(this,p),Ik(this,p))}; g.h.cn=function(){S2("Not used in SSAP")}; g.h.DG=function(){nV(this)}; g.h.MP=function(){S2("Not used in SSAP")}; g.h.b2=function(){R3V(this);this.FN.L6(this.Bc(),this.De(),"normal")}; g.m(wl,Pj);wl.prototype.XO=function(p,C){var V=this;this.x0(p,function(){S9(V.V,C)&&(V.JQ="rendering_stop_requested",V.layoutExitReason=C,yP(V,C),V.Yt.stop())})}; wl.prototype.startRendering=function(p){UN(Z5(this));U3(this,p)&&(fV(this),this.No.get().df=this)};g.m(gl,uU);g.h=gl.prototype;g.h.MP=function(){this.Co()}; g.h.Ld=function(p){if(this.JQ!=="not_rendering"){p=qr(this,p);var C=this.mx.get().getPresentingPlayerType()===2;this.JQ==="rendering_start_requested"?C&&Jn(p)&&this.mA():!C||g.u$(p,2)?this.Co():Ik(this,p)}}; g.h.l5=function(){Ef(this.De().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Ef(this.De().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.h.UA=function(){Ef(this.De().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.kE){var p=this.context.Rx,C=this.kE,V=this.De().layoutId;if(fR(p.x_.get(),!0)){var N={};p.Vr("mccru",(N.cid=C,N.p_ac=V,N))}this.iJ.get().removeCueRange(this.kE)}this.kE=void 0;var H;(H=this.N4)==null||H.dispose();this.gZ&&this.gZ.dispose()}; g.h.cn=function(p){var C=$L(this.x_.get()),V=LV(this.x_.get());if(C&&V&&!this.sV()){V=Ef(p.clientMetadata,"metadata_type_preload_player_vars");var N=g.mi(this.x_.get().N.K().experiments,"html5_preload_wait_time_secs");V&&this.gZ&&this.gZ.start(N*1E3)}Pqe(this,p);kBe(this);C?(V=this.gY.get(),p=Ef(p.clientMetadata,"metadata_type_player_vars"),V.N.loadVideoByPlayerVars(p,!1,2)):Yws(this.gY.get(),Ef(p.clientMetadata,"metadata_type_player_vars"));var H;(H=this.N4)==null||H.start();C||this.gY.get().N.playVideo(2)}; g.h.DG=function(){var p;(p=this.N4)==null||p.stop();this.kE="adcompletioncuerange:"+this.De().layoutId;this.iJ.get().addCueRange(this.kE,0x7ffffffffffff,0x8000000000000,!1,this,2,2);p=this.context.Rx;var C=this.kE,V=this.De().layoutId;if(fR(p.x_.get(),!0)){var N={};p.Vr("mccr",(N.cid=C,N.p_ac=V,N))}(this.adCpn=o0Q(this))||S2("Media layout confirmed started, but ad CPN not set.");this.YG.get().FU("onAdStart",this.adCpn);this.wE=Date.now()}; g.h.wH=function(){var p;return(p=O3(this.pS.get(),2))==null?void 0:p.ade}; g.h.qV=function(){this.gV.pO("clickthrough")}; g.h.XO=function(p,C){var V=this;this.x0(p,function(){if(V.JQ!=="rendering_stop_requested"){V.JQ="rendering_stop_requested";V.layoutExitReason=C;yP(V,C);var N;(N=V.N4)==null||N.stop();V.gZ&&V.gZ.stop();way(V)}})}; g.h.onCueRangeEnter=function(p){if(p!==this.kE)S2("Received CueRangeEnter signal for unknown layout.",this.Bc(),this.De(),{cueRangeId:p});else{var C=this.context.Rx,V=this.De().layoutId;if(fR(C.x_.get(),!0)){var N={};C.Vr("mccre",(N.cid=p,N.p_ac=V,N))}this.iJ.get().removeCueRange(this.kE);this.kE=void 0;Cs(this.context.x_.get(),"html5_ssap_flush_at_stop_rendering")&&this.sV()||(p=Ef(this.De().clientMetadata,"metadata_type_video_length_seconds"),this.nW(p,!0),this.tQ("complete"))}}; g.h.lR=function(p){p!=="abandoned"&&this.YG.get().FU("onAdComplete");this.YG.get().FU("onAdEnd",this.adCpn)}; g.h.onCueRangeExit=function(){}; g.h.Eu=function(p){this.JQ==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&p>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.mx.get().Gz(!0),this.nW(p))}; g.h.nW=function(p,C){uU.prototype.nW.call(this,p,C===void 0?!1:C);C=Date.now()-this.wE;var V=p*1E3,N={contentCpn:this.Zr(),adCpn:o0Q(this)};if(p>=5&&!this.fz){var H=C<1E3?0:1;mA(H,"i.k_",{metadata:N,JC:C,Qc:Math.floor(V/1E3)});GH("IKDSTAT",H);H===0&&$yy(this)&&this.YG.get().FU("onAbnormalityDetected");this.fz=!0}this.x_.get().N.K().experiments.OY("enable_ik_opt")&&p-this.sQ>=5&&(H=C<V*.4?0:1,mA(H,"n.k_",{metadata:N,JC:C,Qc:Math.floor(V/1E3)}),GH("NKDSTAT",H),this.x_.get().N.K().experiments.OY("enable_ik_opt_enf")&& H===0&&$yy(this)&&this.YG.get().FU("onAbnormalityDetected"),this.sQ=p)};g.m(Wj,gl);Wj.prototype.Ld=function(p){this.JQ!=="not_rendering"&&(p=qr(this,p),Ik(this,p))}; Wj.prototype.cn=function(){S2("Not used in SSAP")}; g.m(QP,Wj);QP.prototype.XO=function(p,C){var V=this;this.x0(p,function(){if(S9(V.V,C)){V.JQ="rendering_stop_requested";V.layoutExitReason=C;yP(V,C);if(Cs(V.context.x_.get(),"html5_ssap_flush_at_stop_rendering")&&C==="normal"){var N=Ef(V.De().clientMetadata,"metadata_type_video_length_seconds");V.nW(N,!0)}way(V)}})}; QP.prototype.startRendering=function(p){UN(Z5(this));U3(this,p)&&(fV(this),Pqe(this,p))};g.m(Bj,g.Y);g.h=Bj.prototype;g.h.init=function(){var p=Ef(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);this.pS.get().addListener(this);this.K1.init();jSv([this.layout],this.pS.get());this.mG()}; g.h.mG=function(){var p=Ef(this.K1.De().clientMetadata,"metadata_type_player_vars");p?this.gY.get().addPlayerResponseForAssociation({playerVars:p}):(p=rOe(this.K1.De()),this.gY.get().addPlayerResponseForAssociation({LC:p}))}; g.h.nZ=function(){}; g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.jt=function(){this.K1.jt()}; g.h.MS=function(){this.K1.MS()}; g.h.m5=function(){S2("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")}; g.h.gy=function(p,C){this.K1.gy(p,C)}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.Eu=function(p){this.K1.Eu(p)}; g.h.onFullscreenToggled=function(p){this.K1.onFullscreenToggled(p)}; g.h.xq=function(p){this.K1.xq(p)}; g.h.gx=function(p){this.K1.gx(p)}; g.h.onVolumeChange=function(){this.K1.onVolumeChange()}; g.h.vz=function(){}; g.h.Wz=function(){}; g.h.iM=function(){}; g.h.QD=function(){return this.mx.get().getPresentingPlayerType()===2}; g.h.u7=function(p){dys({cpn:p,w6:this.pS.get(),NS:!0});this.layout.layoutId===p&&(Rs9(this.u9,this.slot.slotId),this.E_.gy(this.slot,this.layout))}; g.h.startRendering=function(p){if(p.layoutId!==this.layout.layoutId)return void S2("wrong layout");this.mx.get().addListener(this);SU(this.oH(),this);this.K1.startRendering(this.layout)}; g.h.Ld=function(p){this.K1.Ld(p)}; g.h.C1=function(p,C,V){this.K1.C1(p,C,V)}; g.h.release=function(){this.pS.get().removeListener(this);this.K1.release();Vpu();KP(this.oH(),this)}; g.h.mj=function(){return Cs(this.params.context.x_.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.h.XO=function(p,C){p.layoutId!==this.layout.layoutId?S2("wrong layout"):this.mj()&&this.K1.rP().currentState>=2||(this.K1.XO(this.layout,C),p=Cs(this.params.context.x_.get(),"html5_ssap_pass_transition_reason")&&C==="abandoned",this.QD()&&!p&&(Cs(this.params.context.x_.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(C)||S2("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:C})),this.kG.get().finishSegmentByCpn(this.layout.layoutId, O3(this.pS.get(),1).clientPlaybackNonce,kL(C,this.params.context.x_))),this.mx.get().removeListener(this),this.mj()&&KR(this.K1.rP())&&this.E_.C1(this.slot,this.layout,this.K1.rP().T))}; g.h.mC=function(p,C,V){iqY({cpn:p,w6:this.pS.get(),NS:!0});this.De().layoutId!==p||Cs(this.params.context.x_.get(),"html5_ssap_pass_transition_reason")&&V===5||(this.K1.rP().currentState<2&&(p=xL(V,this.params.context.x_),p==="error"?this.E_.OV(this.slot,this.layout,new sf("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:V},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):NV(this.xl, this.layout,p)),Cs(this.params.context.x_.get(),"html5_ssap_exit_without_waiting_for_transition")||this.E_.C1(this.slot,this.layout,this.K1.rP().T))};g.m(GP,g.Y);g.h=GP.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.nZ=function(){}; g.h.P1=function(){return this.H6[this.Op]}; g.h.M1=function(){return this.Op}; g.h.jt=function(p,C){var V=this.P1();C.layoutId!==Cr(V,p,C)?S2("pauseLayout for a PlayerBytes layout that is not currently active",p,C):V.jt()}; g.h.MS=function(p,C){var V=this.P1();C.layoutId!==Cr(V,p,C)?S2("resumeLayout for a PlayerBytes layout that is not currently active",p,C):V.MS()}; g.h.m5=function(p,C){var V=this.P1();C$S(this,p,C);j09(V,p,C)&&this.wK(V.Bc(),V.De(),"skipped")}; g.h.Pe=function(p,C){var V=this.P1();V29(this);Nky(V,p,C)&&(p=Hta(this,V,p,C),p!==void 0&&(this.sV()?S2("Should not happen. Should delete"):dNe(this,V.Bc(),V.De(),p)))}; g.h.tP=function(p,C){var V=Object.assign({},pr(this),{layoutId:C.layoutId}),N=V.layoutId,H=V.NS;if(V.e1){var X={};Zs(V.w6,"wrse",(X.ec=N,X.is=H,X.ctp=uv(N),X))}A4(this.j1,p,C)}; g.h.gy=function(p,C){var V;(V=this.P1())==null||V.gy(p,C)}; g.h.C1=function(p,C,V){C.layoutId===this.De().layoutId&&(this.mK=!1,KP(this.oH(),this));var N;(N=this.P1())==null||N.C1(p,C,V)}; g.h.Eu=function(p){var C;(C=this.P1())==null||C.Eu(p)}; g.h.GV=function(p,C,V){this.M1()===-1&&(this.callback.gy(this.slot,this.layout),this.Op++);var N=this.P1();N?(N.JH(p,C,V),this.sV()&&this.callback.OV(this.slot,this.layout,C,V)):S2("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.M1()),layoutId:this.De().layoutId})}; g.h.onFullscreenToggled=function(p){var C;(C=this.P1())==null||C.onFullscreenToggled(p)}; g.h.xq=function(p){var C;(C=this.P1())==null||C.xq(p)}; g.h.gx=function(p){var C;(C=this.P1())==null||C.gx(p)}; g.h.onVolumeChange=function(){var p;(p=this.P1())==null||p.onVolumeChange()}; g.h.ke=function(p,C,V){o3(this.j1,p,C,V)}; g.h.ws=function(p){p.startRendering(p.De())}; g.h.init=function(){var p=Ef(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);if(this.H6.length<1)throw new G("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.H6.length)});if(p=Ef(this.De().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))p.current=this;p=g.F(this.H6);for(var C=p.next();!C.done;C=p.next())C=C.value,C.init(),O1Q(this.j1,this.slot,C.De()),y31(this.j1,this.slot,C.De()); if(this.sV())for(this.pS.get().addListener(this),jSv(pEu(this),this.pS.get()),p=pEu(this),p=g.F(p),C=p.next();!C.done;C=p.next())this.mG(C.value)}; g.h.mG=function(p){var C=Ef(p.clientMetadata,"metadata_type_player_vars");C?(p.layoutType!=="LAYOUT_TYPE_MEDIA"&&S2("Non-video ad contains playerVars",this.slot,p),this.gY.get().addPlayerResponseForAssociation({playerVars:C})):(p=rOe(p),this.gY.get().addPlayerResponseForAssociation({LC:p}))}; g.h.release=function(){var p=Ef(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);if(p=Ef(this.De().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))p.current=null;p=g.F(this.H6);for(var C=p.next();!C.done;C=p.next())C=C.value,qIS(this.j1,this.slot,C.De()),C.release();this.sV()&&(this.pS.get().removeListener(this),Vpu())}; g.h.x0=function(p){return p.layoutId!==this.De().layoutId?(this.callback.OV(this.Bc(),p,new sf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.De().layoutId+("and LayoutType: "+this.De().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.h.wG=function(){this.mx.get().addListener(this);SU(this.oH(),this)}; g.h.Ld=function(p){if(p.state.isError()){var C,V;this.GV((C=p.state.UE)==null?void 0:C.errorCode,new sf("There was a player error during this media layout.",{playerErrorCode:(V=p.state.UE)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(C=this.P1())&&C.Ld(p)}; g.h.sV=function(){var p=Ef(this.Bc().clientMetadata,"metadata_type_eligible_for_ssap");return p===void 0?(S2("Expected SSAP eligibility in PlayerBytes slots",this.Bc(),this.De()),!1):this.x_.get().sV(p)}; g.h.iM=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.vz=function(){}; g.h.Wz=function(){}; g.m(HS,GP);g.h=HS.prototype;g.h.KL=function(p,C,V){this.wK(p,C,V)}; g.h.U3=function(p,C){this.wK(p,C,"error")}; g.h.wK=function(p,C,V){var N=this;XEV(this,p,C,V,function(){jI(N,N.M1()+1)})}; g.h.startRendering=function(p){this.x0(p)&&(this.wG(),$JQ(this.sZ.get()),rus(this.x_.get())||OQu(this.mx.get()),this.M1()===-1&&jI(this,this.M1()+1))}; g.h.XO=function(p,C){var V=this;this.mK=!0;this.M1()===this.H6.length?this.callback.C1(this.slot,this.layout,C):(p=this.P1(),p.XO(p.De(),C),this.Bi=function(){V.callback.C1(V.slot,V.layout,C)}); this.mx.get().N.Kr();Yws(this.gY.get(),{});p=V0(this.mx.get(),1);p.isPaused()&&!g.r(p,2)&&this.mx.get().playVideo();this.mx.get().removeListener(this);this.mK&&it9(this)}; g.h.mC=function(){}; g.h.u7=function(){}; g.h.L6=function(){}; g.m(Xc,GP);g.h=Xc.prototype;g.h.KL=function(p,C,V){p=Object.assign({},pr(this),{layoutId:C.layoutId,layoutExitReason:V});C=p.layoutId;V=p.layoutExitReason;var N={};Zs(p.w6,"prse",(N.xc=C,N.ler=V,N.ctp=uv(C),N))}; g.h.U3=function(){S2("onSubLayoutError in SSAP")}; g.h.wK=function(){S2("exitSubLayoutAndPlayNext in SSAP")}; g.h.P1=function(){return this.II}; g.h.M1=function(){var p=this;return this.H6.findIndex(function(C){var V;return C.De().layoutId===((V=p.II)==null?void 0:V.De().layoutId)})}; g.h.ws=function(p){FK(this.II===void 0,"replacing another adapter");this.II=p;p.startRendering(p.De())}; g.h.ke=function(p,C,V){o3(this.j1,p,C,V);var N;FK(C.layoutId===((N=this.II)==null?void 0:N.De().layoutId),"currentAdapter does not match exiting layout",{slot:p?"slot: "+p.slotType:"",subLayout:vE(C)})&&(this.II=void 0)}; g.h.release=function(){GP.prototype.release.call(this);FK(this.II===void 0,"currentAdapter is still active during release");this.II=void 0}; g.h.QD=function(){return this.mx.get().getPresentingPlayerType()===2}; g.h.XO=function(p,C){function V(){dF(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(C)||S2("Composite stopRendering: Unexpected layout exit reason",this.slot,p,{layoutExitReason:C}))} function N(){this.II&&ib(this,this.II,C);if(this.QD()&&(!dF(this)||C!=="abandoned")){V.call(this);var X;var d=((X=this.pS.get().N.getVideoData())==null?void 0:X.clientPlaybackNonce)||"";X=O3(this.pS.get(),1).clientPlaybackNonce;this.kG.get().finishSegmentByCpn(d,X,kL(C,this.x_))}hSj(this,C)} function H(){if(this.II){var X=this.II;X.rP().currentState<2&&X.XO(X.De(),C);X=dF(this)&&C==="abandoned";this.QD()&&!X&&(V.call(this),this.kG.get().finishSegmentByCpn(this.II.De().layoutId,O3(this.pS.get(),1).clientPlaybackNonce,kL(C,this.x_)))}} FK(p.layoutId===this.De().layoutId,"StopRendering for wrong layout")&&S9(this.g2.C,C)&&(this.mj()?N.call(this):H.call(this))}; g.h.C1=function(p,C,V){GP.prototype.C1.call(this,p,C,V);C.layoutId===this.De().layoutId&&this.mx.get().removeListener(this)}; g.h.Zr=function(){return O3(this.pS.get(),1).clientPlaybackNonce}; g.h.mC=function(p,C,V){iqY(Object.assign({},pr(this),{cpn:p}));if(!dF(this)||V!==5)if(this.mj()){if(this.II&&this.II.De().layoutId!==C){var N=this.II.De().layoutId;N!==p&&S2("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:N,exitingCpn:p,enteringCpn:C});p=xL(V,this.x_);ib(this,this.II,p)}else this.II&&S2("onClipExited: active layout is entering again");C===this.Zr()&&a7Y(this,V)}else{if(this.II&&this.II.De().layoutId===p)s01(this,this.II,V);else{var H;S2("Exiting cpn does not match active cpn", this.slot,(N=this.II)==null?void 0:N.De(),{exitingCpn:p,transitionReason:V,activeCpn:(H=this.II)==null?void 0:H.De().layoutId})}C===this.Zr()&&(this.II!==void 0&&(S2("active adapter is not properly exited",this.slot,this.layout,{activeLayout:vE(this.II.De())}),s01(this,this.II,V)),a7Y(this,V),hSj(this,this.g2.C.T))}}; g.h.mj=function(){return Cs(this.x_.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.h.startRendering=function(p){this.x0(p)&&(p=this.g2,FK(p.T===1,"tickStartRendering: state is not initial"),p.T=2,this.wG())}; g.h.u7=function(p){dys(Object.assign({},pr(this),{cpn:p}));var C=this.H6.find(function(V){return V.De().layoutId===p}); C?(this.g2.T!==2&&(Rs9(this.u9,this.slot.slotId),FK(this.g2.T===2,"Expect started"),this.callback.gy(this.slot,this.layout)),this.ws(C),A4(this.j1,this.slot,C.De())):EUy(this,p)}; g.h.m5=function(p,C){C$S(this,p,C);var V=this.P1();V?j09(V,p,C)&&l71(this,"skipped"):t2e(this,"onSkipRequested")}; g.h.Pe=function(p,C){var V;a:{if(V=this.P1()){if(V29(this),Nky(V,p,C)&&(p=Hta(this,V,p,C),p!==void 0)){V={B3:V,QIx:this.H6[p]};break a}}else t2e(this,"SkipWithAdPodSkip");V=void 0}if(p=V)V=p.B3,C=p.QIx,p=V.De().layoutId,this.mj()?ib(this,V,"skipped"):V.XO(V.De(),"skipped"),V=C.De().layoutId,this.kG.get().finishSegmentByCpn(p,V,kL("skipped",this.x_))}; g.h.tP=function(){S2("Not used in html5_ssap_fix_layout_exit")}; g.h.Ld=function(p){var C;(C=this.P1())==null||C.Ld(p)}; g.h.GV=function(){S2("Not used in html5_ssap_fix_layout_exit")}; g.h.L6=function(p,C,V){var N;if(((N=this.P1())==null?void 0:N.De().layoutId)!==C.layoutId)return void S2("requestToExitSubLayout: wrong layout");l71(this,V)};g.m(hV,g.Y);g.h=hV.prototype;g.h.Bc=function(){return this.K1.Bc()}; g.h.De=function(){return this.K1.De()}; g.h.init=function(){var p=Ef(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);this.l5()}; g.h.l5=function(){this.K1.init()}; g.h.release=function(){var p=Ef(this.De().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);this.UA()}; g.h.UA=function(){this.K1.release()}; g.h.jt=function(){this.K1.jt()}; g.h.MS=function(){this.K1.MS()}; g.h.m5=function(p,C){S2("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Bc(),this.De(),{requestingSlot:p,requestingLayout:C})}; g.h.startRendering=function(p){p.layoutId!==this.De().layoutId?this.callback.OV(this.Bc(),p,new sf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.De().layoutId+("and LayoutType: "+this.De().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.mx.get().addListener(this),SU(this.oH(),this),$JQ(this.sZ.get()),rus(this.x_.get())||OQu(this.mx.get()),this.K1.startRendering(p))}; g.h.XO=function(p,C){this.mK=!0;this.K1.XO(p,C);this.mx.get().N.Kr();Yws(this.gY.get(),{});p=V0(this.mx.get(),1);p.isPaused()&&!g.r(p,2)&&this.mx.get().playVideo();this.mx.get().removeListener(this);this.mK&&this.K1.MP()}; g.h.gy=function(p,C){this.K1.gy(p,C)}; g.h.C1=function(p,C,V){C.layoutId===this.De().layoutId&&(this.mK=!1,KP(this.oH(),this));this.K1.C1(p,C,V);C.layoutId===this.De().layoutId&&V4(this.sZ.get())}; g.h.Eu=function(p){this.K1.Eu(p)}; g.h.Ld=function(p){if(p.state.isError()){var C,V;this.GV((C=p.state.UE)==null?void 0:C.errorCode,new sf("There was a player error during this media layout.",{playerErrorCode:(V=p.state.UE)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.K1.Ld(p)}; g.h.GV=function(p,C,V){this.K1.JH(p,C,V)}; g.h.onFullscreenToggled=function(p){this.K1.onFullscreenToggled(p)}; g.h.xq=function(p){this.K1.xq(p)}; g.h.gx=function(p){this.K1.gx(p)}; g.h.onVolumeChange=function(){this.K1.onVolumeChange()}; g.h.iM=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.vz=function(){}; g.h.Wz=function(){};g.h=sG.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.init=function(){this.BV.get().addListener(this);this.mx.get().addListener(this);var p=Ef(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var C=Ef(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.S){var V=this.BV.get().ya.slice(-1)[0];V!==void 0&&(p=V.startSecs*1E3,C=(V.startSecs+V.uc)*1E3)}this.VT(p,C);var N;V=(N=this.pS.get().KA)==null?void 0:N.clientPlaybackNonce;N=this.layout.eb.adClientDataEntry;al(this.No.get(),{daiStateTrigger:{filledAdsDurationMs:C-p,contentCpn:V, adClientData:N}});var H=this.BV.get();H=M2y(H.V,p,C);H!==null&&(al(this.No.get(),{daiStateTrigger:{filledAdsDurationMs:H-p,contentCpn:V,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:N}}),this.kG.get().Th(H,C))}; g.h.release=function(){this.UA();this.BV.get().removeListener(this);this.mx.get().removeListener(this)}; g.h.startRendering=function(){this.cn();this.callback.gy(this.slot,this.layout)}; g.h.XO=function(p,C){this.Ej(C);this.driftRecoveryMs!==null&&(EG(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(J7s(this)-Ef(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.mx.get().N.uX()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.C1(this.slot,this.layout,C)}; g.h.Qd=function(){return!1}; g.h.u1=function(p){var C=Ef(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),V=Ef(this.layout.clientMetadata,"metadata_type_layout_exit_ms");p*=1E3;if(C<=p&&p<V){var N;al(this.No.get(),{daiStateTrigger:{filledAdsDurationMs:p-C,contentCpn:(N=this.pS.get().KA)==null?void 0:N.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.eb.adClientDataEntry}});this.kG.get().Th(p,V)}}; g.h.Eu=function(p){this.aQ(p);p=aQ(this.mx.get(),2,!0);if(q3(this.W.get(),this.layout.layoutId)){var C=Ef(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),V=this.driftRecoveryMs;if(!(V===null||p*1E3<C+V)){this.driftRecoveryMs=null;var N=J7s(this),H=this.mx.get().N.uX(),X=Math.min(p+H,N/1E3);X<=p?EG(this,{driftRecoveryMs:V.toString(),breakDurationMs:Math.round(N-C).toString(),driftFromHeadMs:Math.round(H*1E3).toString()}):(EG(this,{driftRecoveryMs:V.toString(),breakDurationMs:Math.round(N- C).toString(),driftFromHeadMs:Math.round(H*1E3).toString(),appliedDriftRecoveryMs:Math.round(p*1E3-C).toString(),destinationMs:Math.round(X*1E3-C).toString()}),this.mx.get().N.seekTo(X,void 0,void 0,1))}}}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.gx=function(){}; g.h.onVolumeChange=function(){}; g.h.vz=function(){}; g.h.Wz=function(){};g.m(lb,sG);g.h=lb.prototype;g.h.VT=function(p,C){this.pS.get().addListener(this);if(this.S){var V=p,N=0,H=[];p=this.V.slice();p.sort(function(X,d){return Ef(X.De().clientMetadata,"metadata_type_media_sub_layout_index")-Ef(d.De().clientMetadata,"metadata_type_media_sub_layout_index")}); p.forEach(function(X){var d=V,a=Ef(X.De().clientMetadata,"metadata_type_video_length_seconds"),E=Math.min(d+a*1E3,C);V=E;N++;H.push(a);X.VT(d,E)})}else this.V.forEach(function(X){X.init()}); this.C!=null&&tV(this.No.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.C)}; g.h.UA=function(){this.pS.get().removeListener(this);this.T=null;this.V.forEach(function(p){p.release()})}; g.h.cn=function(){if(this.T)S2("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.C)});else{var p,C=(p=this.pS.get().KA)==null?void 0:p.layoutId;vUj(this,C)}}; g.h.Ej=function(p){var C,V,N,H;(N=this.T)==null||(H=N.Oh)==null||H.XO((C=this.T)==null?void 0:(V=C.Oh)==null?void 0:V.De(),p);this.T=null}; g.h.nZ=function(p){var C=p.videoId;p=p.layoutId;if(C==="nPpU29QrbiU"){var V,N;tV(this.No.get(),"ads_ssmplra_opdcs","vid."+C+";lid."+this.layout.layoutId+";smlid."+this.C+";slrs."+!!this.T+";slrslid."+((V=this.T)==null?void 0:(N=V.Oh)==null?void 0:N.De().layoutId))}if(this.T){var H;if(((H=this.T.Oh)==null?void 0:H.De().layoutId)===p)S2("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:p});else{var X,d;(d=this.T.Oh)==null||d.XO((X=this.T.Oh)==null?void 0:X.De(),"normal"); vUj(this,p)}}}; g.h.mC=function(){}; g.h.u7=function(){}; g.h.aQ=function(){}; g.h.Ld=function(){}; g.h.onFullscreenToggled=function(){};g.h=quL.prototype;g.h.Bc=function(){return this.slot}; g.h.De=function(){return this.layout}; g.h.rP=function(){S2("Should not get exitStateMachine for DAI");return new FN}; g.h.VT=function(p,C){var V=this;Ef(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.OZ=FAS(this.slot,this.layout,Ef(this.layout.clientMetadata,"metadata_type_player_vars"),p,C,Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.kG.get(),this.VA.get(),function(){var N=Object,H=N.assign,X=vS(V.layout);var d=Ef(V.slot.clientMetadata,"metadata_type_fulfilled_layout")||V.slot.fulfilledLayout;var a=Ef(d.clientMetadata,"metadata_type_sub_layouts")|| d.HK;d=Object.assign({},vS(d),{adPlacementConfig:Ef(d.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(a||[]).map(vS)});return H.call(N,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},X,{compositeLayout:d,hasSurveyOverlay:dt(V.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:Ef(V.layout.clientMetadata,"metadata_type_survey_overlay")})},this.No.get()); this.mx.get().addListener(this);p=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds");C=Ef(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");y6(this.layout.y$)&&NE(this.AQ.get(),this.layout.layoutId,{Yn:C,s7:p,listener:this});O1Q(this.callback,this.slot,this.layout);y31(this.callback,this.slot,this.layout)}; g.h.init=function(){var p=Ef(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),C=Ef(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.VT(p,C)}; g.h.release=function(){this.mx.get().removeListener(this);y6(this.layout.y$)&&Hq(this.AQ.get(),this.layout.layoutId);this.x_.get();qIS(this.callback,this.slot,this.layout)}; g.h.startRendering=function(){var p=this;dt(this.layout.clientMetadata,"metadata_type_survey_overlay")&&tV(this.No.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.JQ)S2("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:dt(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:Ef(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.JQ={R9:null,zP:!1};this.T=!1;if(WUv(this.x_.get())){var C;this.adCpn= (C=O3(this.pS.get(),2))==null?void 0:C.clientPlaybackNonce}this.x_.get().N.K().experiments.OY("html5_disable_sodar_for_tvhtml5")||Su9(this.slot,this.layout,this.GM.get());y6(this.layout.y$)&&this.x_.get().N.K().experiments.OY("enable_active_view_lifa_web_video")&&HQS(this.AQ.get(),this.layout.layoutId);this.gV.tQ("start");if(DY(this.x_.get())){C=V0(this.mx.get());var V=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),N=aQ(this.mx.get(),2,!1);KAs(this.gV,this.JQ.R9,C,V,N,function(){return void bty(p, "teois")},mL(this))}A4(this.callback,this.slot,this.layout); dt(this.layout.clientMetadata,"metadata_type_survey_overlay")&&tV(this.No.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}}; g.h.XO=function(p,C){var V=this;if(this.JQ){if(DY(this.x_.get()))if(this.OZ===null)S2("Unexpected media sub layout exited without a timeline playback ID");else{p=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds");var N=Uue(this.mx.get(),this.OZ);WUv(this.x_.get())&&this.adCpn===void 0&&S2("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:Ef(this.layout.clientMetadata,"metadata_type_content_cpn")});JG9(this.gV,N,this.adCpn);TT(this.gV,null,this.JQ.R9,p,N,mL(this), function(H){return void I7H(V,H,"fue")},WUv(this.x_.get()))}this.JQ=null; o3(this.callback,this.slot,this.layout,this.T&&this.x_.get().N.K().G("dai_layout_log_skip_exit_reason")?"skipped":C)}else S2("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.h.JH=function(){}; g.h.MP=function(){}; g.h.Eu=function(p){var C=this;if(this.JQ){if(zl(this.gV,"impression")){var V=V0(this.mx.get()),N=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds");MV(this.gV,V,p,this.JQ.R9,N,function(H){return void I7H(C,H,"tpaqe")})}this.JQ.R9=p}}; g.h.Ld=function(p){var C=this;if(this.JQ){DY(this.x_.get())||this.JQ.zP||(this.JQ.zP=!0,p=new g.Kt(p.state,new g.cj));var V=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),N=aQ(this.mx.get(),2,!1);cS(this.gV,this.JQ.R9,p,V,N,mL(this),!DY(this.x_.get()),function(){return void bty(C,"teosc")})}}; g.h.onFullscreenToggled=function(p){DNj(this.gV,p)}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.gx=function(){}; g.h.m5=function(p,C){var V;p=this.No.get();var N="ti."+zl(this.gV,"impression")+";ts."+zl(this.gV,"skip")+";hp.",H;var X=!((H=this.gV.V.get("skip"))==null||!H.length);tV(p,"ads_dsr",N+X+";cpn."+Ef(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=O3(this.pS.get(),2))==null?void 0:V.clientPlaybackNonce)+";sl."+(Ef(C.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));zl(this.gV,"impression")&&this.gV.tQ("skip");C=O3(this.pS.get(),1).VL&&this.x_.get().N.K().experiments.OY("html5_lifa_skip_to_content"); this.T=!0;this.kG.get().s_(C)||(this.T=!1,S2("Unexpected failure to skip a server stitched ad",this.slot,this.layout))}; g.h.onVolumeChange=function(){}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.jt=function(){}; g.h.MS=function(){}; g.h.qV=function(){uKQ(this.gV)}; g.h.sA=function(){Ztv(this.gV)}; g.h.Ao=function(){UNe(this.gV)}; g.h.Iy=function(){f79(this.gV)}; g.h.bN=function(){Ots(this.gV)}; g.h.Cr=function(){y7Q(this.gV)}; g.h.vz=function(){}; g.h.Wz=function(){};g.m(Fc,sG);g.h=Fc.prototype; g.h.VT=function(){var p=this;Ef(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var C=Ef(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),V=Ef(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.OZ=FAS(this.slot,this.layout,Ef(this.layout.clientMetadata,"metadata_type_player_vars"),C,V,Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.kG.get(),this.VA.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:C, exitMs:V,adPlacementConfig:Ef(p.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.No.get()); var N=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),H=Ef(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");y6(this.layout.y$)&&NE(this.AQ.get(),this.layout.layoutId,{Yn:H,s7:N,listener:this})}; g.h.UA=function(){y6(this.layout.y$)&&Hq(this.AQ.get(),this.layout.layoutId)}; g.h.cn=function(){var p=this;if(this.JQ)S2("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.JQ={R9:null,zP:!1},Su9(this.slot,this.layout,this.GM.get()),this.gV.tQ("start"),DY(this.x_.get())){var C=V0(this.mx.get()),V=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),N=aQ(this.mx.get(),2,!1);KAs(this.gV,this.JQ.R9,C,V,N,function(){return void A79(p,"teois")},!1)}}; g.h.Ej=function(){var p=this;if(this.JQ){if(DY(this.x_.get()))if(this.OZ===null)S2("Unexpected single media layout exited without a timeline playback ID");else{var C=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=Uue(this.mx.get(),this.OZ);JG9(this.gV,V);TT(this.gV,null,this.JQ.R9,C,V,!1,function(N){return void oUL(p,N,"fue")})}this.JQ=null}else S2("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.h.aQ=function(p){var C=this;if(this.JQ){if(zl(this.gV,"impression")){var V=V0(this.mx.get()),N=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds");MV(this.gV,V,p,this.JQ.R9,N,function(H){return void oUL(C,H,"tpaqe")})}this.JQ.R9=p}}; g.h.Ld=function(p){var C=this;if(this.JQ){DY(this.x_.get())||this.JQ.zP||(this.JQ.zP=!0,p=new g.Kt(p.state,new g.cj));var V=Ef(this.layout.clientMetadata,"metadata_type_video_length_seconds"),N=aQ(this.mx.get(),2,!1);cS(this.gV,this.JQ.R9,p,V,N,!1,!DY(this.x_.get()),function(){return void A79(C,"teosc")})}}; g.h.onFullscreenToggled=function(p){DNj(this.gV,p)}; g.h.qV=function(){uKQ(this.gV)}; g.h.sA=function(){Ztv(this.gV)}; g.h.Ao=function(){UNe(this.gV)}; g.h.Iy=function(){f79(this.gV)}; g.h.bN=function(){Ots(this.gV)}; g.h.Cr=function(){y7Q(this.gV)};SI.prototype.build=function(p,C,V,N){if(dt(V.clientMetadata,"metadata_type_dai")){var H=Ef(N.clientMetadata,"metadata_type_ad_placement_config");Vu(N,{a6:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),OO:["LAYOUT_TYPE_MEDIA"]})&&H!==void 0?(H=new bG(N.y$,this.No,H,N.layoutId,null),H=new Fc(p,V,N,this.pS,this.kG,this.VA,this.BV,this.mx,H,this.No,this.GM, this.T,this.AQ,this.x_)):H=null;if(H)return H;a:{var X,d=(X=N.HK)!=null?X:Ef(N.clientMetadata,"metadata_type_sub_layouts");H=Ef(N.clientMetadata,"metadata_type_ad_placement_config");if(Vu(N,{a6:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],OO:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&d!==void 0&&H!==void 0){X=[];d=g.F(d);for(var a=d.next();!a.done;a=d.next()){a=a.value;var E=Ef(a.clientMetadata,"metadata_type_media_sub_layout_index");if(!Vu(a,{a6:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "), OO:["LAYOUT_TYPE_MEDIA"]})||E===void 0){p=null;break a}E=new bG(a.y$,this.No,H,a.layoutId,E);X.push(new quL(C,V,a,this.kG,E,this.mx,this.VA,this.AQ,this.GM,this.x_,this.No,this.pS))}C=new bG(N.y$,this.No,H,N.layoutId);p=new lb(p,V,N,this.pS,this.kG,this.BV,this.mx,C,this.No,this.T,X)}else p=null}if(p)return p}else if(p=TkS(p,C,V,N,this.oH,this.u9,this.u0,this.No,this.AQ,this.GM,this.gY,this.pS,this.mx,this.iJ,this.sZ,this.YG,this.zk,this.fd,this.x_,this.kG,this.context,this.e5))return p;throw new sf("Unsupported layout with type: "+ N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};Kr.prototype.build=function(p,C,V,N){if(p=TkS(p,C,V,N,this.oH,this.u9,this.u0,this.No,this.AQ,this.GM,this.gY,this.pS,this.mx,this.iJ,this.sZ,this.YG,this.zk,this.fd,this.x_,this.kG,this.context,this.e5))return p;throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.m(k6S,tO);g.m(DQ,uG);DQ.prototype.startRendering=function(p){var C=Zl(this.gV),V={adsClientData:this.layout.eb};this.T.push(new k6S(Ef(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),C,this.De().layoutId,V));uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; DQ.prototype.Mg=function(p,C){C!==this.layout.layoutId||p!=="survey-interstitial"&&p!=="button"||((p=Ef(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?p.m5(this.slot,this.layout):S2("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}; DQ.prototype.CS=function(){uG.prototype.CS.call(this)};var ZQ=new g.KG(320,63);g.m(OG,tO);g.m(y4,uG);g.h=y4.prototype;g.h.Eu=function(){}; g.h.Ld=function(){}; g.h.onFullscreenToggled=function(){}; g.h.xq=function(p){p&&RY(this.S,this.layout)}; g.h.iM=function(){}; g.h.gx=function(p){var C=fr(this.layout);if(this.D=UG(p,fLX(this.mx.get())))C.onErrorCommand&&this.zk.get().executeCommand(C.onErrorCommand,this.layout.layoutId),RY(this.S,this.layout)}; g.h.onVolumeChange=function(){}; g.h.oO=function(){return this.De().layoutId}; g.h.j2=function(){return this.D}; g.h.Mg=function(p){this.W.Mg(p);p==="in_video_overlay_close_button"&&RY(this.S,this.layout)}; g.h.N8=function(p){p==="invideo-overlay"&&RY(this.S,this.layout)}; g.h.nt=function(){this.W.nt()}; g.h.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p);this.Y.R0=this}; g.h.XO=function(p,C){uG.prototype.XO.call(this,p,C);Q0(this.Y,this)}; g.h.init=function(){uG.prototype.init.call(this);JS1(this.No.get(),this);this.mx.get().addListener(this);this.T.push(new OG(fr(this.layout),Zl(this.gV),this.layout.layoutId,{adsClientData:this.layout.eb}))}; g.h.release=function(){uG.prototype.release.call(this);this.mx.get().removeListener(this);muu(this.No.get(),this)}; g.h.vz=function(){}; g.h.Wz=function(){};g.m(qV,uG);g.h=qV.prototype;g.h.init=function(){uG.prototype.init.call(this);JS1(this.No.get(),this);this.mx.get().addListener(this);this.T.push(new OG(fr(this.layout),Zl(this.gV),this.layout.layoutId,{adsClientData:this.layout.eb}))}; g.h.nt=function(){this.W.nt()}; g.h.startRendering=function(p){uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p);this.Y.R0=this}; g.h.XO=function(p,C){uG.prototype.XO.call(this,p,C);Q0(this.Y,this)}; g.h.Mg=function(p){this.W.Mg(p);p==="in_video_overlay_close_button"&&RY(this.S,this.layout)}; g.h.UB=function(p){if(p==="invideo-overlay"){p=zsj(this.J,this.layout);p=g.F(p);for(var C=p.next();!C.done;C=p.next())C.value.stop()}}; g.h.N8=function(p){p==="invideo-overlay"&&RY(this.S,this.layout)}; g.h.tL=function(p){if(p==="invideo-overlay"){p=zsj(this.J,this.layout);p=g.F(p);for(var C=p.next();!C.done;C=p.next())C.value.start()}}; g.h.Eu=function(){}; g.h.Ld=function(){}; g.h.onFullscreenToggled=function(){}; g.h.xq=function(p){p&&RY(this.S,this.layout)}; g.h.iM=function(){}; g.h.gx=function(p){var C=fr(this.layout),V=C.contentSupportedRenderer.imageOverlayAdContentRenderer,N=fLX(this.mx.get());a:{V=V.image;V=V===void 0?null:V;if(V!=null&&(V=V.thumbnail,V!=null&&V.thumbnails!=null&&V.thumbnails.length!=0&&V.thumbnails[0].width!=null&&V.thumbnails[0].height!=null)){V=new g.KG(V.thumbnails[0].width||0,V.thumbnails[0].height||0);break a}V=new g.KG(0,0)}if(this.D=UG(p,N,V))C.onErrorCommand&&this.zk.get().executeCommand(C.onErrorCommand,this.layout.layoutId),RY(this.S,this.layout)}; g.h.onVolumeChange=function(){}; g.h.oO=function(){return this.De().layoutId}; g.h.j2=function(){return this.D}; g.h.release=function(){uG.prototype.release.call(this);this.mx.get().removeListener(this);muu(this.No.get(),this)}; g.h.vz=function(){}; g.h.Wz=function(){};Il.prototype.Mg=function(p){p==="ad-info-hover-text-button"&&((this.T=this.mx.get().Hp(1))||this.mx.get().pauseVideo())}; Il.prototype.nt=function(){this.T||this.mx.get().resumeVideo(1)};g.m(RSu,tO);g.m(bb,uG);g.h=bb.prototype;g.h.init=function(){uG.prototype.init.call(this);this.mx.get().addListener(this)}; g.h.startRendering=function(p){var C=Ef(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.T.push(new RSu(C,this.layout.layoutId,{adsClientData:this.layout.eb}));uG.prototype.startRendering.call(this,p);this.callback.gy(this.slot,p)}; g.h.gy=function(){}; g.h.Mg=function(p,C){C!==this.layout.layoutId||p!=="ad-info-icon-button"&&p!=="ad-info-dialog-close-button"||((C=Ef(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?p==="ad-info-icon-button"?C.jt(this.slot,this.layout):p==="ad-info-dialog-close-button"&&C.MS(this.slot,this.layout):S2("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:p}))}; g.h.gx=function(p){p.width<450&&RY(this.S,this.layout)}; g.h.onVolumeChange=function(){}; g.h.Eu=function(){}; g.h.onFullscreenToggled=function(){}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.Ld=function(){}; g.h.vz=function(){}; g.h.Wz=function(){}; g.h.CS=function(){uG.prototype.CS.call(this)}; g.h.release=function(){uG.prototype.release.call(this);this.mx.get().removeListener(this)};nUS.prototype.build=function(p,C,V,N){if(C=MD(p,V,N,this.MW,this.mx,this.No,this.S,this.T,this.x_))return C;if(Vu(N,zSH()))return new qV(V,N,this.No,this.AQ,this.MW,p,this.C,this.V,this.mx,this.zk,this.x_,this.T,new Il(this.mx));if(Vu(N,Yue()))return new y4(V,N,this.No,this.AQ,this.MW,p,this.C,this.mx,this.zk,this.x_,this.T,new Il(this.mx));if(Vu(N,{a6:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],OO:["LAYOUT_TYPE_SURVEY"]}))return new bb(V,N,p,this.MW,this.C,this.mx,this.x_);if(Vu(N, {a6:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],OO:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new DQ(V,N,p,this.MW,this.No);if(Vu(N,rGH()))return new ar(V,N,p,this.MW,this.mx,this.x_);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};eSL.prototype.build=function(p,C,V,N){if(C=MD(p,V,N,this.MW,this.mx,this.No,this.S,this.T,this.x_))return C;if(Vu(N,zSH()))return new qV(V,N,this.No,this.AQ,this.MW,p,this.C,this.V,this.mx,this.zk,this.x_,this.T,new Il(this.mx));if(Vu(N,Yue()))return new y4(V,N,this.No,this.AQ,this.MW,p,this.C,this.mx,this.zk,this.x_,this.T,new Il(this.mx));throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory."); };g.m(AV,hn);AV.prototype.startRendering=function(p){hn.prototype.startRendering.call(this,p);if(p.renderingContent?$YL(p,O3(this.pS.get(),2)||void 0):Ef(this.layout.clientMetadata,"metadata_ad_video_is_listed"))p=p.renderingContent?wQ1(p,O3(this.pS.get(),2)||void 0):Ef(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.Xu.get().N.Jk("onAdMetadataAvailable",p)};wEX.prototype.build=function(p,C,V,N){if(Vu(N,P$u())||N.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.n(N.renderingContent,lv)!==void 0)return new AV(p,V,N,this.MW,this.mx,this.No,this.C,this.Xu,this.T,this.pS);throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};$NL.prototype.build=function(p,C,V,N){if(Vu(N,P$u()))return new AV(p,V,N,this.MW,this.mx,this.No,this.C,this.Xu,this.T,this.pS);if(p=MD(p,V,N,this.MW,this.mx,this.No,this.C,this.T,this.x_))return p;throw new sf("Unsupported layout with type: "+N.layoutType+" and client metadata: "+lH(N.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};V9.prototype.clone=function(p){var C=this;return new V9(function(){return C.triggerId},p)};NB.prototype.clone=function(p){var C=this;return new NB(function(){return C.triggerId},p)};HP.prototype.clone=function(p){var C=this;return new HP(function(){return C.triggerId},p)};Xg.prototype.clone=function(p){var C=this;return new Xg(function(){return C.triggerId},p)};d2.prototype.clone=function(p){var C=this;return new d2(function(){return C.triggerId},p)};hM.prototype.clone=function(p){var C=this;return new hM(function(){return C.triggerId},p)};g.m(nj,g.Y);var HUQ={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15, "i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var i_={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],f1:[],layoutExitUserInputSubmittedTriggers:[]};var bL={Ira:1,rBV:2,VOV:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.m(Ka,g.Y);g.h=Ka.prototype;g.h.Li=function(p){if(this.T)S2("Unexpected multiple fetch instructions for the current content");else{this.T=p;p=g.F(this.BV.get().ya);for(var C=p.next();!C.done;C=p.next())SFj(this,this.T,C.value)}}; g.h.Qd=function(p){if(!this.T){var C;(C=this.kG)==null||C.get().TE(p.identifier);return!1}SFj(this,this.T,p);return!0}; g.h.u1=function(){}; g.h.zp=function(p){this.T&&this.T.contentCpn!==p&&(S2("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.T.contentCpn}),this.T=null)}; g.h.zA=function(p){this.T&&this.T.contentCpn!==p&&S2("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.T.contentCpn},!0);this.T=null}; g.h.CS=function(){g.Y.prototype.CS.call(this);this.T=null};var KD=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],WK1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.m(ZY,g.Y);g.h=ZY.prototype;g.h.gy=function(p,C){var V=this;if(C.layoutType==="LAYOUT_TYPE_MEDIA"&&(iH(C,this.Y)||iH(C,WK1))){var N=O3(this.pS.get(),2),H=this.S(C,N||void 0);H?FY(this.V.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var X=[cd9(V.T.get(),H.contentCpn,H.DI,function(d){return V.W(d.slotId,"core",H,J4(V.Mt.get(),d))},H.inPlayerSlotId)]; H.instreamAdPlayerUnderlayRenderer&&Vn(V.x_.get())&&X.push(ZWy(V,H,H.instreamAdPlayerUnderlayRenderer));return X}):S2("Expected MediaLayout to carry valid opportunity on entered",p,C)}}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.SZ=function(){}; g.h.s8=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.C1=function(){};g.m(UA,g.Y);UA.prototype.zp=function(p,C,V,N,H,X,d){var a=this,E=O3(this.pS.get(),1);!Cs(this.x_.get(),"html5_ssap_play_cached_preroll")&&E.WP?sm(this.mx.get()):(wry(this.sZ.get(),N),FY(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return UQs(a.T.get(),N,H,X,p,C,d,E,"")}),L39(this.V))}; UA.prototype.zA=function(){};g.m(fa,g.Y);g.m(OA,g.Y);OA.prototype.onCueRangeEnter=function(){}; OA.prototype.onCueRangeExit=function(p){var C=this,V=this.T.get(p);V&&(this.T.delete(p),this.iJ.get().removeCueRange(p),FY(this.C.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var N=C.V.get();N=SY(N.C.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},V,{slotId:N,slotEntryTrigger:V.slotEntryTrigger?gYv(V.slotId,N,V.slotEntryTrigger):void 0,slotFulfillmentTriggers:WCj(V.slotId,N,V.slotFulfillmentTriggers),slotExpirationTriggers:WCj(V.slotId,N,V.slotExpirationTriggers)})]}, V.slotId))}; OA.prototype.zp=function(){for(var p=g.F(this.T.keys()),C=p.next();!C.done;C=p.next())C=C.value,this.iJ.get().removeCueRange(C);this.T.clear()}; OA.prototype.zA=function(){};g.m(yn,g.Y);g.h=yn.prototype;g.h.GI=function(){}; g.h.Vx=function(p){var C=this;g.Vl(g.HW(),function(){var V=C.T.get(p);V&&S2("Expected layouts to be properly unscheduled",p,void 0,{slotType:p.slotType,layoutTypes:[].concat(g.K(V)).map(function(N){return N.layoutType})})},0)}; g.h.SZ=function(){}; g.h.s8=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(p,C){this.T.has(p)||this.T.set(p,new Set);this.T.get(p).add(C)}; g.h.yf=function(p,C){this.jU.has(p)&&this.jU.get(p)===C&&S2("Unscheduled a Layout that is currently entered.",p,C);if(this.T.has(p)){var V=this.T.get(p);V.has(C)?(V.delete(C),V.size===0&&this.T.delete(p)):S2("Trying to unscheduled a Layout that was not scheduled.",p,C)}else S2("Trying to unscheduled a Layout that was not scheduled.",p,C)}; g.h.gy=function(p,C){this.jU.set(p,C)}; g.h.C1=function(p){this.jU.delete(p)}; g.h.WR=function(){};g.h=fkS.prototype;g.h.init=function(){}; g.h.Bc=function(){return this.slot}; g.h.gK=function(){this.callback.SZ(this.slot)}; g.h.Jj=function(){this.callback.EV(this.slot)}; g.h.release=function(){};b_.prototype.build=function(p,C){return new fkS(p,C)};g.h=OWY.prototype;g.h.init=function(){}; g.h.Bc=function(){return this.slot}; g.h.gK=function(){Em(this.mx.get(),"ad-showing");this.callback.SZ(this.slot)}; g.h.Jj=function(){this.callback.EV(this.slot);lM(this.mx.get(),"ad-showing")}; g.h.release=function(){};g.h=yqj.prototype;g.h.init=function(){}; g.h.Bc=function(){return this.slot}; g.h.gK=function(){Em(this.mx.get(),"ad-showing");Em(this.mx.get(),"ad-interrupting");this.C=this.mx.get().isAtLiveHead();this.T=Math.ceil(Date.now()/1E3);this.callback.SZ(this.slot)}; g.h.Jj=function(){lM(this.mx.get(),"ad-showing");lM(this.mx.get(),"ad-interrupting");var p=this.C?Infinity:aQ(this.mx.get(),1,!0)+Math.floor(Date.now()/1E3)-this.T;this.mx.get().N.seekTo(p,void 0,void 0,1);this.callback.EV(this.slot)}; g.h.release=function(){};g.h=qFs.prototype;g.h.init=function(){}; g.h.Bc=function(){return this.slot}; g.h.gK=function(){Em(this.mx.get(),"ad-showing");Em(this.mx.get(),"ad-interrupting");this.callback.SZ(this.slot)}; g.h.Jj=function(){sm(this.mx.get());lM(this.mx.get(),"ad-showing");lM(this.mx.get(),"ad-interrupting");this.callback.EV(this.slot)}; g.h.release=function(){sm(this.mx.get())};AL.prototype.build=function(p,C){if(t4(C,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new OWY(p,C,this.mx);if(C.slotEntryTrigger instanceof WS&&t4(C,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new yqj(p,C,this.mx);if(t4(C,[],"SLOT_TYPE_PLAYER_BYTES"))return new qFs(p,C,this.mx);throw new G("Unsupported slot with type "+C.slotType+" and client metadata: "+(lH(C.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.m(oY,g.Y);oY.prototype.T=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 jB&&N.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&H.triggeringLayoutId===p&&C.push(N)}C.length?k6(this.Un(),C):S2("Mute requested but no registered triggers can be activated.")};g.m(xx,oY);g.h=xx.prototype;g.h.Mg=function(p,C){if(C)if(p==="skip-button"){p=[];for(var V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next()){N=N.value;var H=N.trigger;H instanceof jB&&N.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&H.triggeringLayoutId===C&&p.push(N)}p.length&&k6(this.Un(),p)}else Cs(this.x_.get(),"supports_multi_step_on_desktop")?p==="ad-action-submit-survey"&&kx(this,C):p==="survey-submit"?kx(this,C):p==="survey-single-select-answer-button"&&kx(this,C)}; g.h.lI=function(p){oY.prototype.T.call(this,p)}; g.h.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof sT||C instanceof jB))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in AdUxUpdateTriggerAdapter.");this.ix.set(C.triggerId,new ET(p,C,V,N))}; g.h.Dr=function(p){this.ix.delete(p.triggerId)}; g.h.UB=function(){}; g.h.tL=function(){}; g.h.N8=function(){};g.m(Yx,g.Y);g.h=Yx.prototype; g.h.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof V9||C instanceof NB||C instanceof HP||C instanceof Xg||C instanceof d2||C instanceof hM||C instanceof BS||C instanceof nr||C instanceof PS||C instanceof eI||C instanceof rF||C instanceof Rl))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in AdsControlFlowEventTriggerAdapter");p=new ET(p,C,V,N);this.ix.set(C.triggerId,p);C instanceof d2&&this.W.has(C.triggeringSlotId)&&k6(this.T(),[p]);C instanceof V9&&this.V.has(C.triggeringSlotId)&&k6(this.T(),[p]);C instanceof nr&&this.C.has(C.triggeringLayoutId)&&k6(this.T(),[p])}; g.h.Dr=function(p){this.ix.delete(p.triggerId)}; g.h.GI=function(p){this.W.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 d2&&p.slotId===N.trigger.triggeringSlotId&&C.push(N);C.length>0&&k6(this.T(),C)}; g.h.Vx=function(p){this.W.delete(p.slotId);for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next()){N=N.value;var H=N.trigger;H instanceof hM&&H.triggeringSlotId===p.slotId&&C.push(N)}C.length>0&&k6(this.T(),C)}; g.h.s8=function(p){for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next()){N=N.value;var H=N.trigger;H instanceof BS&&H.slotType===p.slotType&&H.T!==p.slotId&&C.push(N)}C.length>0&&k6(this.T(),C)}; g.h.SZ=function(p){this.V.add(p.slotId);for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next())N=N.value,N.trigger instanceof V9&&p.slotId===N.trigger.triggeringSlotId&&C.push(N);C.length>0&&k6(this.T(),C)}; g.h.EV=function(p){this.V.delete(p.slotId);this.S.add(p.slotId);for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next())if(N=N.value,N.trigger instanceof NB)p.slotId===N.trigger.triggeringSlotId&&C.push(N);else if(N.trigger instanceof Rl){var H=N.trigger;p.slotId===H.slotId&&this.C.has(H.triggeringLayoutId)&&C.push(N)}C.length>0&&k6(this.T(),C)}; g.h.Id=function(p){for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next())N=N.value,N.trigger instanceof HP&&p.slotId===N.trigger.triggeringSlotId&&C.push(N);C.length>0&&k6(this.T(),C)}; g.h.ri=function(p){for(var C=[],V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next())N=N.value,N.trigger instanceof Xg&&p.slotId===N.trigger.triggeringSlotId&&C.push(N);C.length>0&&k6(this.T(),C)}; g.h.Jp=function(p,C){this.Y.add(C.layoutId)}; g.h.yf=function(p,C){this.Y.delete(C.layoutId)}; g.h.gy=function(p,C){this.C.add(C.layoutId);for(var V=[],N=g.F(this.ix.values()),H=N.next();!H.done;H=N.next())if(H=H.value,H.trigger instanceof nr)C.layoutId===H.trigger.triggeringLayoutId&&V.push(H);else if(H.trigger instanceof rF){var X=H.trigger;p.slotType===X.slotType&&C.layoutType===X.layoutType&&C.layoutId!==X.T&&V.push(H)}else H.trigger instanceof Rl&&(X=H.trigger,C.layoutId===X.triggeringLayoutId&&this.S.has(X.slotId)&&V.push(H));V.length>0&&k6(this.T(),V)}; g.h.C1=function(p,C,V){this.C.delete(C.layoutId);p=[];for(var N=g.F(this.ix.values()),H=N.next();!H.done;H=N.next())if(H=H.value,H.trigger instanceof PS&&C.layoutId===H.trigger.triggeringLayoutId&&p.push(H),H.trigger instanceof eI){var X=H.trigger;C.layoutId===X.triggeringLayoutId&&X.T.includes(V)&&p.push(H)}p.length>0&&k6(this.T(),p)}; g.h.WR=function(){}; g.h.zp=function(){this.S.clear()}; g.h.zA=function(){};g.m(zd,g.Y);zd.prototype.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof YP))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in CloseRequestedTriggerAdapter");this.ix.set(C.triggerId,new ET(p,C,V,N))}; zd.prototype.Dr=function(p){this.ix.delete(p.triggerId)};g.m(na,g.Y);na.prototype.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof xP||C instanceof pj))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.ix.set(C.triggerId,new ET(p,C,V,N))}; na.prototype.Dr=function(p){this.ix.delete(p.triggerId)}; na.prototype.zp=function(p){for(var C=[],V=C.push,N=V.apply,H=[],X=g.F(this.ix.values()),d=X.next();!d.done;d=X.next())d=d.value,d.trigger instanceof xP&&d.trigger.Y8===p&&H.push(d);N.call(V,C,g.K(H));V=C.push;N=V.apply;H=[];X=g.F(this.ix.values());for(d=X.next();!d.done;d=X.next())d=d.value,d.trigger instanceof pj&&d.trigger.T!==p&&H.push(d);N.call(V,C,g.K(H));C.length&&k6(this.T(),C)}; na.prototype.zA=function(p){for(var C=[],V=C.push,N=V.apply,H=[],X=g.F(this.ix.values()),d=X.next();!d.done;d=X.next()){d=d.value;var a=d.trigger;a instanceof pj&&a.T===p&&H.push(d)}N.call(V,C,g.K(H));C.length&&k6(this.T(),C)};g.m(e8,g.Y);g.h=e8.prototype;g.h.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");var H="adtriggercuerange:"+C.triggerId;if(C instanceof WS)IkH(this,p,C,V,N,H,C.T.start,C.T.end,C.Y8,C.visible);else if(C instanceof zT)IkH(this,p,C,V,N,H,0x7ffffffffffff,0x8000000000000,C.Y8,C.visible);else throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in CueRangeTriggerAdapter");}; g.h.Dr=function(p){var C=this.ix.get(p.triggerId);C&&this.iJ.get().removeCueRange(C.cueRangeId);this.ix.delete(p.triggerId)}; g.h.onCueRangeEnter=function(p){var C=bWv(this,p);if(C&&(C=this.ix.get(C)))if(g.r(V0(this.mx.get()),32))this.T.add(C.cueRangeId);else{var V=C==null?void 0:C.MY.trigger;if(V instanceof WS||V instanceof zT){if(fR(this.context.x_.get())){var N=C.MY.slot,H=C.MY.layout,X={};this.context.Rx.Vr("cre",(X.ca=C.MY.category,X.tt=V.triggerType,X.st=N.slotType,X.lt=H==null?void 0:H.layoutType,X.cid=p,X))}k6(this.C(),[C.MY])}}}; g.h.onCueRangeExit=function(p){(p=bWv(this,p))&&(p=this.ix.get(p))&&this.T.delete(p.cueRangeId)}; g.h.Ld=function(p){if(D7(p,16)<0){p=g.F(this.T);for(var C=p.next();!C.done;C=p.next())this.onCueRangeEnter(C.value,!0);this.T.clear()}}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.WR=function(){}; g.h.Eu=function(){}; g.h.onFullscreenToggled=function(){}; g.h.xq=function(){}; g.h.iM=function(){}; g.h.gx=function(){}; g.h.onVolumeChange=function(){}; g.h.vz=function(){}; g.h.Wz=function(){};g.m(P0,g.Y);g.h=P0.prototype; g.h.HB=function(p,C,V,N){if(this.C.has(C.triggerId)||this.V.has(C.triggerId))throw new G("Tried to re-register the trigger.");p=new ET(p,C,V,N);if(p.trigger instanceof gF)this.C.set(p.trigger.triggerId,p);else if(p.trigger instanceof wF)this.V.set(p.trigger.triggerId,p);else throw new G("Incorrect TriggerType: Tried to register trigger of type "+p.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.C.has(p.trigger.triggerId)&&p.slot.slotId===this.T&&k6(this.S(),[p])}; g.h.Dr=function(p){this.C.delete(p.triggerId);this.V.delete(p.triggerId)}; g.h.nZ=function(p){p=p.slotId;if(this.T!==p){var C=[];this.T!=null&&C.push.apply(C,g.K(Aqj(this.V,this.T)));p!=null&&C.push.apply(C,g.K(Aqj(this.C,p)));this.T=p;C.length&&k6(this.S(),C)}}; g.h.mC=function(){}; g.h.u7=function(){};g.m(w6,g.Y);g.h=w6.prototype;g.h.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof GT))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.ix.set(C.triggerId,new ET(p,C,V,N))}; g.h.Dr=function(p){this.ix.delete(p.triggerId)}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){};g.m($x,g.Y);g.h=$x.prototype;g.h.WR=function(p,C){for(var V=[],N=g.F(this.ix.values()),H=N.next();!H.done;H=N.next()){H=H.value;var X=H.trigger;X.opportunityType===p&&(X.associatedSlotId&&X.associatedSlotId!==C||V.push(H))}V.length&&k6(this.T(),V)}; g.h.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof gJj))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in OpportunityEventTriggerAdapter");this.ix.set(C.triggerId,new ET(p,C,V,N))}; g.h.Dr=function(p){this.ix.delete(p.triggerId)}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.gy=function(){}; g.h.C1=function(){};g.m(La,g.Y);g.h=La.prototype;g.h.HB=function(p,C,V,N){p=new ET(p,C,V,N);if(C instanceof $P||C instanceof Q4||C instanceof Lr||C instanceof Cj||C instanceof LAv){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");this.ix.set(C.triggerId,p);V=V.slotId;p=this.V.has(V)?this.V.get(V):new Set;p.add(C);this.V.set(V,p)}else throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in PrefetchTriggerAdapter");}; g.h.Dr=function(p){this.ix.delete(p.triggerId)}; g.h.GI=function(p){var C=p.slotId;if(this.V.has(C)){p=0;var V=new Set;C=g.F(this.V.get(C));for(var N=C.next();!N.done;N=C.next())if(N=N.value,V.add(N.triggerId),N instanceof Q4&&N.breakDurationMs){p=N.breakDurationMs;break}g6(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",p,V)}}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.gy=function(){}; g.h.C1=function(){}; g.h.WR=function(){}; g.h.Qd=function(p){if(this.T){this.C&&this.C.stop();this.S&&g.HF(this.S);p=p.uc*1E3+1E3;for(var C=0,V=g.F(this.ix.values()),N=V.next();!N.done;N=V.next())N=N.value.trigger,N instanceof $P&&N.breakDurationMs<=p&&N.breakDurationMs>C&&(C=N.breakDurationMs);p=C;if(p>0)return g6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",p,new Set,!0),g6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",p,new Set,!1),!0}return!1}; g.h.u1=function(){}; g.h.zp=function(p){this.T&&this.T.contentCpn!==p?(S2("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.T.contentCpn}),W0(this)):kfS(this)}; g.h.zA=function(p){this.T&&this.T.contentCpn!==p&&S2("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.T.contentCpn},!0);W0(this)}; g.h.Li=function(p){var C=this;if(this.T)S2("Unexpected multiple fetch instructions for the current content");else{this.T=p;p=YFa(p);this.C=new g.N8(function(){kfS(C)},p?p:6E5); this.C.start();this.S=new g.N8(function(){C.T&&(C.C&&(C.C.stop(),C.C.start()),oYX(C,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},xgv(this.T)); p=this.mx.get().getCurrentTimeSec(1,!1);for(var V=g.F(this.BV.get().ya),N=V.next();!N.done;N=V.next())N=N.value,tV(this.No.get(),"nocache","ct."+Date.now()+";cmt."+p+";d."+N.uc.toFixed(3)+";tw."+(N.startSecs-p)+";cid."+N.identifier+";")}}; g.h.CS=function(){g.Y.prototype.CS.call(this);W0(this)};g.m(Qn,g.Y);g.h=Qn.prototype;g.h.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof ad))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.ix.set(C.triggerId,new ET(p,C,V,N));p=this.T.has(C.triggeringLayoutId)?this.T.get(C.triggeringLayoutId):new Set;p.add(C);this.T.set(C.triggeringLayoutId,p)}; g.h.Dr=function(p){this.ix.delete(p.triggerId);if(!(p instanceof ad))throw new G("Incorrect TriggerType: Tried to unregister trigger of type "+p.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var C=this.C.get(p.triggerId);C&&(C.dispose(),this.C.delete(p.triggerId));if(C=this.T.get(p.triggeringLayoutId))C.delete(p),C.size===0&&this.T.delete(p.triggeringLayoutId)}; g.h.GI=function(){}; g.h.Vx=function(){}; g.h.s8=function(){}; g.h.SZ=function(){}; g.h.EV=function(){}; g.h.Id=function(){}; g.h.ri=function(){}; g.h.Jp=function(){}; g.h.yf=function(){}; g.h.WR=function(){}; g.h.gy=function(p,C){var V=this;if(this.T.has(C.layoutId)){p=this.T.get(C.layoutId);p=g.F(p);var N=p.next();for(C={};!N.done;C={lk:void 0},N=p.next())C.lk=N.value,N=new g.N8(function(H){return function(){var X=V.ix.get(H.lk.triggerId);k6(V.V(),[X])}}(C),C.lk.durationMs),N.start(),this.C.set(C.lk.triggerId,N)}}; g.h.C1=function(){};g.m(r6,g.Y);r6.prototype.HB=function(p,C,V,N){if(this.ix.has(C.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(C instanceof ol))throw new G("Incorrect TriggerType: Tried to register trigger of type "+C.triggerType+" in VideoTransitionTriggerAdapter.");this.ix.set(C.triggerId,new ET(p,C,V,N))}; r6.prototype.Dr=function(p){this.ix.delete(p.triggerId)};Cz.prototype.eX=function(p){return p.kind==="AD_PLACEMENT_KIND_START"};g.m(NO,g.Y);g.h=NO.prototype;g.h.logEvent=function(p){this.pV(p)}; g.h.Qr=function(p,C,V){this.pV(p,void 0,void 0,void 0,C,void 0,void 0,void 0,C.adSlotLoggingData,void 0,void 0,V)}; g.h.Rd=function(p,C,V,N){this.pV(p,void 0,void 0,void 0,C,V?V:void 0,void 0,void 0,C.adSlotLoggingData,V?V.adLayoutLoggingData:void 0,void 0,N)}; g.h.KK=function(p,C,V,N){Cs(this.x_.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"trigger:",V,"slot:",C,"layout:",N);Mz(this.T.get())&&this.pV(p,void 0,void 0,void 0,C,N?N:void 0,void 0,V,C.adSlotLoggingData,N?N.adLayoutLoggingData:void 0)}; g.h.BX=function(p,C,V,N,H){this.pV(p,C,V,N,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H)}; g.h.Yb=function(p,C,V,N){this.pV("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,V,N,void 0,void 0,V.adSlotLoggingData,N?N.adLayoutLoggingData:void 0,{errorType:p,errorMessage:C})}; g.h.pV=function(p,C,V,N,H,X,d,a,E,l,t,c){var T=this;c=c===void 0?0:c;Cs(this.x_.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"slot:",H,"layout:",X,"ping:",d,"Opportunity:",{opportunityType:C,associatedSlotId:V,Qn$:N,jnV:a,adSlotLoggingData:E,adLayoutLoggingData:l});try{var M=function(){if(!T.x_.get().N.K().G("html5_disable_client_tmp_logs")&&p!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){p||S2("Empty PACF event type",H,X);var J=Mz(T.T.get()),S={eventType:p,eventOrder:++T.eventCount},D={}; H&&(D.slotData=Tm(J,H));X&&(D.layoutData=DM1(J,X));d&&(D.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:d.T.serializedAdPingMetadata,pingIndex:d.index});a&&(D.triggerData=cU(a.trigger,a.category));C&&(D.opportunityData=u39(J,C,V,N));J={organicPlaybackContext:{contentCpn:O3(T.pS.get(),1).clientPlaybackNonce}};J.organicPlaybackContext.isLivePlayback=O3(T.pS.get(),1).p4;var Z;J.organicPlaybackContext.isMdxPlayback=(Z=O3(T.pS.get(),1))==null?void 0:Z.isMdxPlayback; var f;if((f=O3(T.pS.get(),1))==null?0:f.daiEnabled)J.organicPlaybackContext.isDaiContent=!0;var q;if(Z=(q=O3(T.pS.get(),2))==null?void 0:q.clientPlaybackNonce)J.adVideoPlaybackContext={adVideoCpn:Z};J&&(D.externalContext=J);S.adClientData=D;E&&(S.serializedSlotAdServingData=E.serializedSlotAdServingDataEntry);l&&(S.serializedAdServingData=l.serializedAdServingDataEntry);t&&(S.errorInfo=t);g.t1("adsClientStateChange",{adsClientEvent:S})}}; c&&c>0?g.Vl(g.HW(),function(){return M()},c):M()}catch(J){Cs(this.x_.get(),"html5_log_pacf_logging_errors")&&g.Vl(g.HW(),function(){S2(J instanceof Error?J:String(J),H,X,{pacf_message:"exception during pacf logging"})})}};var QOP=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.m(HY,NO);g.h=HY.prototype; g.h.Qr=function(p,C,V){NO.prototype.Qr.call(this,p,C,V);fR(this.x_.get())&&(V={},this.context.Rx.Vr("pacf",(V.et=p,V.st=C.slotType,V.si=C.slotId,V)))}; g.h.Rd=function(p,C,V,N){var H=QOP.has(p);NO.prototype.Rd.call(this,p,C,V,N);fR(this.x_.get(),H)&&(N={},this.context.Rx.Vr("pacf",(N.et=p,N.st=C.slotType,N.si=C.slotId,N.lt=V==null?void 0:V.layoutType,N.li=V==null?void 0:V.layoutId,N.p_ac=V==null?void 0:V.layoutId,N)))}; g.h.BX=function(p,C,V,N,H){NO.prototype.BX.call(this,p,C,V,N,H);fR(this.x_.get())&&(V={},this.context.Rx.Vr("pacf",(V.et=p,V.ot=C,V.ss=N==null?void 0:N.length,V)))}; g.h.KK=function(p,C,V,N){NO.prototype.KK.call(this,p,C,V,N);if(fR(this.x_.get())){var H={};this.context.Rx.Vr("pacf",(H.et=p,H.tt=V.trigger.triggerType,H.tc=V.category,H.st=C.slotType,H.si=C.slotId,H.lt=N==null?void 0:N.layoutType,H.li=N==null?void 0:N.layoutId,H.p_ac=N==null?void 0:N.layoutId,H))}}; g.h.Yb=function(p,C,V,N){NO.prototype.Yb.call(this,p,C,V,N);if(fR(this.x_.get(),!0)){var H={};this.context.Rx.Vr("perror",(H.ert=p,H.erm=C,H.st=V.slotType,H.si=V.slotId,H.lt=N==null?void 0:N.layoutType,H.li=N==null?void 0:N.layoutId,H.p_ac=N==null?void 0:N.layoutId,H))}}; g.h.pV=function(p,C,V,N,H,X,d,a,E,l,t){if(g.bH(this.x_.get().N.K())){var c=this.x_.get();c=g.mi(c.N.K().experiments,"H5_async_logging_delay_ms")}else c=void 0;NO.prototype.pV.call(this,p,C,V,N,H,X,d,a,E,l,t,c)};XF.prototype.clear=function(){this.T.clear()};h5.prototype.resolve=function(p){dr(this,p)}; h5.prototype.reject=function(p){it(this,p)}; h5.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; h5.prototype.wait=function(){var p=this;return function V(){return lje(V,function(N){if(N.C==1)return N.Y=0,N.S=2,g.y(N,{Gb:p},4);if(N.C!=2)return N.return(N.T);g.KY(N);return g.Dj(N,0)})}()}; var sdQ=wo(function(p){return si(p)?p instanceof h5:!1});var mZ=window.hFn||"en";S3.prototype.Ll=function(p){this.client=p}; S3.prototype.T=function(){this.clear();this.csn=g.bz()}; S3.prototype.clear=function(){this.V.clear();this.C.clear();this.S.clear();this.csn=null};DF.prototype.Ll=function(p){g.NU(Kz().Ll).bind(Kz())(p)}; DF.prototype.clear=function(){g.NU(Kz().clear).bind(Kz())()};g.h=ut.prototype;g.h.Ll=function(p){this.client=p}; g.h.Bl=function(p,C){var V=this;C=C===void 0?{}:C;g.NU(function(){var N,H,X,d=((N=g.n(p==null?void 0:p.commandMetadata,g.mm))==null?void 0:N.rootVe)||((H=g.n(p==null?void 0:p.commandMetadata,MkE))==null?void 0:(X=H.screenVisualElement)==null?void 0:X.uiType);if(d){N=g.n(p==null?void 0:p.commandMetadata,b65);if(N==null?0:N.parentTrackingParams){var a=g.ym(N.parentTrackingParams);if(N.parentCsn)var E=N.parentCsn}else C.clickedVisualElement?a=C.clickedVisualElement:p.clickTrackingParams&&(a=g.ym(p.clickTrackingParams)); a:{N=g.n(p,g.VB);H=g.n(p,O6P);if(N){if(H=jwL(N,"VIDEO")){N={token:H,videoId:N.videoId};break a}}else if(H&&(N=jwL(H,"PLAYLIST"))){N={token:N,playlistId:H.playlistId};break a}N=void 0}C=Object.assign({},{cttAuthInfo:N,parentCsn:E},C);if(g.Zr("expectation_logging")){var l;C.loggingExpectations=((l=g.n(p==null?void 0:p.commandMetadata,MkE))==null?void 0:l.loggingExpectations)||void 0}Ui(V,d,a,C)}else g.eG(new g.Bw("Error: Trying to create a new screen without a rootVeType",p))})()}; g.h.clickCommand=function(p,C,V){p=p.clickTrackingParams;V=V===void 0?0:V;p?(V=g.bz(V===void 0?0:V))?(ElQ(this.client,V,g.ym(p),C),C=!0):C=!1:C=!1;return C}; g.h.stateChanged=function(p,C,V){this.visualElementStateChanged(g.ym(p),C,V===void 0?0:V)}; g.h.visualElementStateChanged=function(p,C,V){V=V===void 0?0:V;V===0&&this.C.has(V)?this.J.push([p,C]):iFa(this,p,C,V)};qO.prototype.fetch=function(p,C,V){var N=this,H=aSX(p,C,V);return new Promise(function(X,d){function a(){if(V==null?0:V.xE)try{var l=N.handleResponse(p,H.status,H.response,V);X(l)}catch(t){d(t)}else X(N.handleResponse(p,H.status,H.response,V))} H.onerror=a;H.onload=a;var E;H.send((E=C.body)!=null?E:null)})}; qO.prototype.handleResponse=function(p,C,V,N){V=V.replace(")]}'","");try{var H=JSON.parse(V)}catch(X){g.eG(new g.Bw("JSON parsing failed after XHR fetch",p,C,V));if((N==null?0:N.xE)&&V)throw new g.vH(1,"JSON parsing failed after XHR fetch");H={}}C!==200&&(g.eG(new g.Bw("XHR API fetch failed",p,C,V)),H=Object.assign({},H,{errorMetadata:{status:C}}));return H};IH.getInstance=function(){var p=g.zV("ytglobal.storage_");p||(p=new IH,g.YH("ytglobal.storage_",p));return p}; IH.prototype.estimate=function(){var p,C,V;return g.I(function(N){p=navigator;return((C=p.storage)==null?0:C.estimate)?N.return(p.storage.estimate()):((V=p.webkitTemporaryStorage)==null?0:V.queryUsageAndQuota)?N.return(E_a()):N.return()})}; g.YH("ytglobal.storageClass_",IH);E2.prototype.SH=function(p){this.handleError(p)}; E2.prototype.logEvent=function(p,C){switch(p){case "IDB_DATA_CORRUPTED":g.Zr("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",C);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",C);break;case "IS_SUPPORTED_COMPLETED":g.Zr("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",C);break;case "QUOTA_EXCEEDED":tTS(this,C);break;case "TRANSACTION_ENDED":this.V&&Math.random()<=.1&&this.T("idbTransactionEnded",C);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":p= Object.assign({},C,{hasWindowUnloaded:this.C}),this.T("idbTransactionAborted",p)}};var wK={},QYX=g.HC("yt-player-local-media",{UK:(wK.index={c_:2},wK.media={c_:2},wK.captions={c_:5},wK),shared:!1,upgrade:function(p,C){C(2)&&(g.A1(p,"index"),g.A1(p,"media"));C(5)&&g.A1(p,"captions");C(6)&&(op(p,"metadata"),op(p,"playerdata"))}, version:5});var rc2={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},$R;a:{var LM=g.f0();LM=LM.toLowerCase();if(g.K0(LM,"android")){var BwF=LM.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(BwF){var G91=parseFloat(BwF[1]);if(G91<100){$R=G91;break a}}var p4f=LM.match("("+Object.keys(rc2).join("|")+")");$R=p4f?rc2[p4f[0]]:0}else $R=void 0}var Ue=$R,ZW=Ue>=0;var maa=window;var caY=SS(function(){var p,C;return(C=(p=window).matchMedia)==null?void 0:C.call(p,"(prefers-reduced-motion: reduce)").matches});var A5;g.bt=new kY;A5=0;var oH={CZ:function(p){p.reverse()}, z6:function(p,C){p.splice(0,C)}, rk:function(p,C){var V=p[0];p[0]=p[C%p.length];p[C%p.length]=V}};var yre=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var gB=Kt9()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.G4?!0:!1;var gru={Jpa:"adunit",rga:"detailpage",L$_:"editpage",GUe:"embedded",Thk:"leanback",xB$:"previewpage",IM_:"profilepage",P3:"unplugged",nb_:"playlistoverview",ZMn:"sponsorshipsoffer",Q8_:"shortspage",nm$:"handlesclaiming",fSe:"immersivelivepage",C0_:"creatormusic",WlS:"immersivelivepreviewpage",tqS:"admintoolyurt",Jda:"shortsaudiopivot"};var gK;gK={};g.wr=(gK.STOP_EVENT_PROPAGATION="html5-stop-propagation",gK.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",gK.IV_DRAWER_OPEN="ytp-iv-drawer-open",gK.MAIN_VIDEO="html5-main-video",gK.VIDEO_CONTAINER="html5-video-container",gK.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",gK.HOUSE_BRAND="house-brand",gK);var yaL={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var bPy={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},A49={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},ZuY={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var TrS={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.pw.prototype.getLanguageInfo=function(){return this.K4}; g.pw.prototype.getXtags=function(){if(!this.xtags){var p=this.id.split(";");p.length>1&&(this.xtags=p[1])}return this.xtags}; g.pw.prototype.toString=function(){return this.K4.name}; g.pw.prototype.getLanguageInfo=g.pw.prototype.getLanguageInfo;Cw.prototype.sE=function(p){return this.C===p.C&&this.T===p.T&&this.V===p.V&&this.reason===p.reason&&(!VS||this.F$===p.F$)}; Cw.prototype.isLocked=function(){return this.V&&!!this.C&&this.C===this.T}; Cw.prototype.compose=function(p){if(p.V&&Ni(p))return xB;if(p.V||Ni(this))return p;if(this.V||Ni(p))return this;var C=this.C&&p.C?Math.max(this.C,p.C):this.C||p.C,V=this.T&&p.T?Math.min(this.T,p.T):this.T||p.T;C=Math.min(C,V);var N=0;VS&&(N=this.F$!==0&&p.F$!==0?Math.min(this.F$,p.F$):this.F$===0?p.F$:this.F$);return VS&&C===this.C&&V===this.T&&N===this.F$||!VS&&C===this.C&&V===this.T?this:VS?new Cw(C,V,!1,V===this.T&&N===this.F$?this.reason:p.reason,N):new Cw(C,V,!1,V===this.T?this.reason:p.reason)}; Cw.prototype.S=function(p){return!p.video||VS&&this.F$!==0&&this.F$<p.F$?!1:kmL(this,p.video.quality)}; var CBr=g.jo("auto","hd1080",!1,"l"),vkS=g.jo("auto","large",!1,"l"),xB=g.jo("auto","auto",!1,"p"),VS=!1;i5.prototype.TY=function(p){p=p||xB;for(var C=g.JT(this.videoInfos,function(d){return p.S(d)}),V=[],N={},H=0;H<C.length;H++){var X=C[H].video; N[X.quality]||(V.push(X),N[X.quality]=!0)}return V}; i5.prototype.dg=function(p){p=p||xB;return g.JT(this.videoInfos,function(C){return p.S(C)})}; i5.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var p8S=new Set(["356"]);g.m(he,g.Y);he.prototype.CS=function(){g.Y.prototype.CS.call(this)};g.v1.prototype.set=function(p,C){this.T[p]!==C&&(this.T[p]=C,this.url="")}; g.v1.prototype.get=function(p){FP(this);return this.T[p]||null}; g.v1.prototype.i9=function(){this.url||(this.url=X8H(this));return this.url}; g.v1.prototype.clone=function(){var p=new g.v1(this.C,this.S);p.scheme=this.scheme;p.path=this.path;p.V=this.V;p.T=g.zh(this.T);p.url=this.url;return p}; var Hse=[no1];g.h=g.fw.prototype;g.h.tM=function(p){this.segments.push(p)}; g.h.fk=function(p){return!!this.xz(p)}; g.h.getDuration=function(p){return(p=this.xz(p))?p.duration:0}; g.h.e$=function(p){return this.getDuration(p)}; g.h.Ve=function(){return 0}; g.h.V6=function(){return this.segments.length?this.segments[0].LS:-1}; g.h.Xt=function(p){return(p=this.xz(p))?p.ingestionTime:NaN}; g.h.Ha=function(){return this.segments.length?this.segments[this.segments.length-1].LS:-1}; g.h.KJ=function(p){return this.Ha()===p&&!this.C&&p>=0}; g.h.Ax=function(){var p=this.segments[this.segments.length-1];return p?p.endTime:NaN}; g.h.Wa=function(){return this.segments[0].startTime}; g.h.Fp=function(){return this.segments.length}; g.h.MB=function(){return 0}; g.h.tU=function(p){return(p=this.Y2(p))?p.LS:-1}; g.h.EM=function(p){return(p=this.xz(p))?p.sourceURL:""}; g.h.getStartTime=function(p){return(p=this.xz(p))?p.startTime:0}; g.h.TV=function(p){return this.getStartTime(p)+this.getDuration(p)}; g.h.ma=CY(1);g.h.isLoaded=function(){return this.segments.length>0}; g.h.xz=function(p){if(this.T&&this.T.LS===p)return this.T;p=g.Xv(this.segments,new Uc(p,0,0,0,""),function(C,V){return C.LS-V.LS}); return this.T=p>=0?this.segments[p]:null}; g.h.Y2=function(p){if(this.T&&this.T.startTime<=p&&p<this.T.startTime+this.T.duration)return this.T;p=g.Xv(this.segments,{startTime:p},function(C,V){return C.startTime-V.startTime}); return this.T=p>=0?this.segments[p]:this.segments[Math.max(0,-p-2)]}; g.h.append=function(p){if(p.length)if(p=g.p6(p),this.segments.length){var C=this.segments.length?g.wY(this.segments).endTime:0,V=p[0].LS-this.Ha();V>1&&B1H(this.segments);for(V=V>0?0:-V+1;V<p.length;V++){var N=p[V];N.startTime=C;N.endTime=N.startTime+N.duration;C+=p[V].duration;this.segments.push(p[V])}}else this.segments=p}; g.h.Ua=function(){return 0};Oc.prototype.skip=function(p){this.T+=p};al9.prototype.AB=function(){return new Uint8Array(this.data.buffer)};var WD={},jtc=(WD.predictStart="predictStart",WD.start="start",WD["continue"]="continue",WD.stop="stop",WD),EuY={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};zr.prototype.fJ=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])}; zr.prototype.toString=function(){for(var p="",C=g.F(Object.keys(this.data)),V=C.next();!V.done;V=C.next())V=V.value,p+=V+":"+this.data[V]+";";return p};Gr.prototype.h9=function(){var p=this.pos;this.pos=0;var C=!1;try{Vv(this,440786851)&&(this.pos=0,Vv(this,408125543)&&(C=!0))}catch(V){if(V instanceof RangeError)this.pos=0,C=!1,g.eG(V);else throw V;}this.pos=p;return C};lw.prototype.set=function(p,C){this.GU.get(p);this.T[p]=C;this.url=""}; lw.prototype.get=function(p){return this.T[p]||this.GU.get(p)}; lw.prototype.i9=function(){this.url||(this.url=bsY(this));return this.url};Mt.prototype.Bz=function(p,C){return p.YM?this.J?this.Y=!0:this.Y=klV(this,p,C):klV(this,p,C)}; Mt.prototype.IV=function(p){return this.V.get(p)}; Mt.prototype.x9=function(p,C){p.GU===this.T&&(this.T=tW(p,C));p.GU===this.S&&(this.S=tW(p,C))}; Mt.prototype.Pb=function(){return this.T!==this.S&&!this.Y};Kp.prototype.rI=function(){return!!this.T&&this.index.isLoaded()}; Kp.prototype.N$=function(){return!1}; Kp.prototype.QE=function(p){return[p]}; Kp.prototype.Nz=function(p){return[p]};D0.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.h=fp.prototype;g.h.Vo=function(){return this.S&&this.T.index.KJ(this.LS)}; g.h.isEncrypted=function(){return this.T.info.isEncrypted()}; g.h.sE=function(p){return!(!p||p.T!==this.T||p.type!==this.type||(this.range&&p.range?p.range.start!==this.range.start||p.range.end!==this.range.end:p.range!==this.range)||p.LS!==this.LS||p.C!==this.C||p.V!==this.V)}; g.h.K9=function(){return!!this.T.info.video}; g.h.Zh=function(){var p=bw(this),C="";g.ZH(p,function(V,N){C+=N+"_"+V+"_"}); return C.slice(0,-1)};oZ.prototype.UI=function(){return this.T?this.T.i9():""}; oZ.prototype.isDecorated=function(){return!!(this.T||this.S&&this.S.eS)}; oZ.prototype.Ti=function(){return O9(this.wV[0])}; oZ.prototype.x9=function(p,C){this.sR.x9(p,C);if(this.T){this.T=tW(p,C);C=g.F(["acpns","cpn","daistate","skipsq"]);for(var V=C.next();!V.done;V=C.next())this.T.set(V.value,null)}this.requestId=p.get("req_id")};g.m(zn,Kp);g.h=zn.prototype;g.h.V1=function(){return!1}; g.h.NQ=function(){return!0}; g.h.zq=function(){return!1}; g.h.N$=function(){return!this.W}; g.h.ZU=function(){return new oZ([new fp(1,this,this.initRange,"getMetadataRequestInfo")],this.W)}; g.h.Y0=function(){return null}; g.h.Jm=function(p){this.pw(p);return this.NQ()&&p.V&&!p.S?new oZ([new fp(p.type,p.T,p.range,"liveGetNextRequestInfoBySegment",p.LS,p.startTime,p.duration,p.C+p.V,NaN,!0)],this.index.EM(p.LS)):this.P8(IZ(p),!1)}; g.h.V8=function(p,C){C=C===void 0?!1:C;p=this.index.tU(p);C&&(p=Math.min(this.index.Ha(),p+1));return this.P8(p,!0)}; g.h.Ky=function(p){pb(p)}; g.h.pw=function(p){return p.V===0?!0:this.index.Ha()>p.LS&&this.index.V6()<=p.LS+1}; g.h.update=function(p,C,V){this.index.append(p);h4L(this.index,V);p=this.index;p.C=C;p.V="update"}; g.h.rI=function(){return this.N$()?!0:Kp.prototype.rI.call(this)}; g.h.P8=function(p,C){var V=this.index.EM(p),N=this.index.getStartTime(p),H=this.index.getDuration(p),X;C?H=X=0:X=this.info.F$>0?this.info.F$*H:1E3;return new oZ([new fp(3,this,void 0,"liveCreateRequestInfoForSegment",p,N,H,0,X,!C)],V)}; g.h.EB=function(){return this.N$()?0:this.initRange.length}; g.h.v2=function(){return!1};e5.prototype.update=function(p){var C=void 0;this.C&&(C=this.C);var V=new e5,N=Array.from(p.getElementsByTagName("S"));if(N.length){var H=+RZ(p,"timescale")||1,X=(+N[0].getAttribute("t")||0)/H,d=+RZ(p,"startNumber")||0;V.S=X;var a=C?C.startSecs+C.uc:0,E=Date.parse(NFa(RZ(p,"yt:segmentIngestTime")))/1E3;V.W=p.parentElement.tagName==="SegmentTemplate";V.W&&(V.D=RZ(p,"media"));p=C?d-C.LS:1;V.Y=p>0?0:-p+1;p=g.F(N);for(N=p.next();!N.done;N=p.next()){N=N.value;for(var l=+N.getAttribute("d")/H,t=(+N.getAttribute("yt:sid")|| 0)/H,c=+N.getAttribute("r")||0,T=0;T<=c;T++)if(C&&d<=C.LS)d++;else{var M=new jlY(d,a,l,E+t,X);V.T.push(M);var J=N;var S=H,D=M.startSecs;M=J.getAttribute("yt:cuepointTimeOffset");var Z=J.getAttribute("yt:cuepointDuration");if(M&&Z){M=Number(M);D=-M/S+D;S=Number(Z)/S;Z=J.getAttribute("yt:cuepointContext")||null;var f=J.getAttribute("yt:cuepointIdentifier")||"";J=J.getAttribute("yt:cuepointEvent")||"";J=new xg(D,S,Z,f,jtc[J]||"unknown",M)}else J=null;J&&V.V.push(J);d++;a+=l;X+=l;E+=l+t}}V.T.length&& (V.C=g.wY(V.T))}this.Y=V.Y;this.C=V.C||this.C;g.C6(this.T,V.T);g.C6(this.V,V.V);this.W=V.W;this.D=V.D;this.S===-1&&(this.S=V.getStreamTimeOffset())}; e5.prototype.getStreamTimeOffset=function(){return this.S===-1?0:this.S};g.m(wz,g.fw);g.h=wz.prototype;g.h.Ve=function(){return this.HR}; g.h.fk=function(p,C){p=$E(this,p);return p>=0&&(C||!this.segments[p].pending)}; g.h.V6=function(){return this.MO?this.segments.length?this.Y2(this.Wa()).LS:-1:g.fw.prototype.V6.call(this)}; g.h.Wa=function(){if(this.EO)return 0;if(!this.MO)return g.fw.prototype.Wa.call(this);if(!this.segments.length)return 0;var p=Math.max(g.wY(this.segments).endTime-this.nV,0);return this.AE>0&&this.Y2(p).LS<this.AE?this.xz(this.AE).startTime:p}; g.h.Ax=function(){if(this.nh&&this.x5&&this.x5>0)return this.x5/1E3;if(!this.segments.length)return g.fw.prototype.Ax.call(this);var p=this.Ha();if(!this.MO||p<=this.segments[this.segments.length-1].LS)p=this.segments[this.segments.length-1];else{var C=this.segments[this.segments.length-1];p=new Uc(p,Math.max(0,C.startTime-(C.LS-p)*this.HR),this.HR,0,"sq/"+p,void 0,void 0,!0)}return this.EO?Math.min(this.nV,p.endTime):p.endTime}; g.h.Fp=function(){return this.MO?this.segments.length?this.Ha()-this.V6()+1:0:g.fw.prototype.Fp.call(this)}; g.h.Ha=function(){var p=Math.min(this.Qx,Math.max(g.fw.prototype.Ha.call(this),this.J8)),C=this.nV*1E3;C=this.x5>0&&this.x5<C;this.EO&&this.nV>0&&this.J8>0&&!C&&(C=this.Y2(this.nV))&&(p=Math.min(C.LS-1,p));return p}; g.h.X_=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.h.tM=function(p){var C=$E(this,p.LS);if(C>=0)this.segments[C]=p;else if(this.segments.splice(-(C+1),0,p),this.KQ&&p.LS%(300/this.HR)===0){var V=this.segments[0].LS,N=Math.floor(this.KQ/this.HR);p=p.LS-N;C=-(C+1)-N;C>0&&p>V&&(this.segments=this.segments.slice(C))}}; g.h.b5=function(){return this.J8}; g.h.KJ=function(p){return PR?!this.C&&p>=0&&this.Ha()<=p:g.fw.prototype.KJ.call(this,p)}; g.h.Y2=function(p){if(!this.MO)return g.fw.prototype.Y2.call(this,p);if(!this.segments.length)return null;var C=this.segments[this.segments.length-1];if(p<this.segments[0].startTime)C=Math.max(0,this.segments[0].LS-Math.ceil((this.segments[0].startTime-p)/this.HR));else if(p>=C.endTime)C=C.LS+Math.floor((p-C.endTime)/this.HR+1);else{C=ir(this.segments,function(N){return p<N.startTime?-1:p>=N.endTime?1:0}); if(C>=0)return this.segments[C];var V=-(C+1);C=this.segments[V-1];V=this.segments[V];C=Math.floor((p-C.endTime)/((V.startTime-C.endTime)/(V.LS-C.LS-1))+1)+C.LS}return this.xz(C)}; g.h.xz=function(p){if(!this.MO)return g.fw.prototype.xz.call(this,p);if(!this.segments.length)return null;var C=$E(this,p);if(C>=0)return this.segments[C];var V=-(C+1);C=this.HR;if(V===0)var N=Math.max(0,this.segments[0].startTime-(this.segments[0].LS-p)*C);else V===this.segments.length?(N=this.segments[this.segments.length-1],N=N.endTime+(p-N.LS-1)*C):(N=this.segments[V-1],C=this.segments[V],C=(C.startTime-N.endTime)/(C.LS-N.LS-1),N=N.endTime+(p-N.LS-1)*C);return new Uc(p,N,C,0,"sq/"+p,void 0,void 0, !0)}; var PR=!1;g.m(Lp,zn);g.h=Lp.prototype;g.h.zq=function(){return!0}; g.h.rI=function(){return!0}; g.h.pw=function(p){return this.NQ()&&p.V&&!p.S||!p.T.index.KJ(p.LS)}; g.h.ZU=function(){}; g.h.V8=function(p,C){return typeof p!=="number"||isFinite(p)?zn.prototype.V8.call(this,p,C===void 0?!1:C):new oZ([new fp(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ym,void 0,this.Ym*this.info.F$)],"")}; g.h.P8=function(p,C){var V=V===void 0?!1:V;if(this.index.fk(p))return zn.prototype.P8.call(this,p,C);var N=this.index.getStartTime(p),H=Math.round(this.Ym*this.info.F$),X=this.Ym;C&&(X=H=0);return new oZ([new fp(V?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",p,N,X,void 0,H,!C)],p>=0?"sq/"+p:"")};g.m(gz,Kp);g.h=gz.prototype;g.h.V1=function(){return!1}; g.h.NQ=function(){return!1}; g.h.zq=function(){return!1}; g.h.ZU=function(){return new oZ([new fp(1,this,void 0,"otfInit")],this.W)}; g.h.Y0=function(){return null}; g.h.Jm=function(p){this.pw(p);return EPu(this,IZ(p),!1)}; g.h.V8=function(p,C){C=C===void 0?!1:C;p=this.index.tU(p);C&&(p=Math.min(this.index.Ha(),p+1));return EPu(this,p,!0)}; g.h.Ky=function(p){p.info.type===1&&(this.T||(this.T=R4(p.T)),p.C&&p.C.uri==="http://youtube.com/streaming/otf/durations/112015"&&lQe(this,p.C))}; g.h.pw=function(p){return p.V===0?!0:this.index.Ha()>p.LS&&this.index.V6()<=p.LS+1}; g.h.EB=function(){return 0}; g.h.v2=function(){return!1};WR.prototype.b9=function(){return this.T.b9()};g.h=g.Cb.prototype;g.h.fk=function(p){return p<=this.Ha()}; g.h.MB=function(p){return this.offsets[p]}; g.h.getStartTime=function(p){return this.wI[p]/this.T}; g.h.TV=function(p){return this.getStartTime(p)+this.getDuration(p)}; g.h.ma=CY(0);g.h.Xt=function(){return NaN}; g.h.getDuration=function(p){p=this.e$(p);return p>=0?p/this.T:-1}; g.h.e$=function(p){return p+1<this.count||this.C?this.wI[p+1]-this.wI[p]:-1}; g.h.Ve=function(){return 0}; g.h.V6=function(){return 0}; g.h.Ha=function(){return this.count-1}; g.h.KJ=function(p){return this.Ha()===p&&p>=0}; g.h.Ax=function(){return this.C?this.wI[this.count]/this.T:NaN}; g.h.Wa=function(){return 0}; g.h.Fp=function(){return this.count}; g.h.EM=function(){return""}; g.h.tU=function(p){p=g.Xv(this.wI.subarray(0,this.count),p*this.T);return p>=0?p:Math.max(0,-p-2)}; g.h.isLoaded=function(){return this.Ha()>=0}; g.h.Ua=function(p,C){if(p>=this.Ha())return 0;var V=0;for(C=this.getStartTime(p)+C;p<this.Ha()&&C>this.getStartTime(p);p++)V=Math.max(V,FLa(this,p)/this.getDuration(p));return V}; g.h.resize=function(p){p+=2;var C=this.offsets;this.offsets=new Float64Array(p+1);var V=this.wI;this.wI=new Float64Array(p+1);for(p=0;p<this.count+1;p++)this.offsets[p]=C[p],this.wI[p]=V[p]}; g.h.cap=function(p,C){jO(this);this.C=!0;this.wI[this.count]=C;this.offsets[this.count]=p};g.m(VM,Kp);g.h=VM.prototype;g.h.ZU=function(p,C){var V=new fp(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,C),N=[new fp(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,C),V];this.info.contentLength>0&&p&&(V=V.range.end+1,p=Math.min(p,this.info.contentLength-V),p>0&&N.push(new fp(4,this,Z0(V,p),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,C)));return new oZ(N)}; g.h.Ky=function(p){if(p.info.type===1){if(this.T)return;this.T=R4(p.T)}else if(p.info.type===2){if(this.W||this.index.Ha()>=0)return;if(g.Cx(this.info)){var C=this.index,V=p.b9();p=p.info.range.start;var N=g.eo(V,0,1936286840);V=FkL(N);C.T=V.Sz;var H=V.wN;C.offsets[0]=V.iA+p+N.size;C.wI[0]=H;C.C=!0;p=V.Fi.length;for(N=0;N<p;N++){H=C;var X=V.N7x[N],d=V.Fi[N];H.count++;jO(H);H.offsets[H.count]=H.offsets[H.count-1]+X;H.wI[H.count]=H.wI[H.count-1]+d}}else this.W=p.b9()}if(this.info.Ft()&&this.T&&this.W){V= new DataView(this.T.buffer);C=this.index;N=this.W;p=this.indexRange.end;H=new Gr(V);V=H;H=V.pos;X={h1:1E6,ev:1E9,duration:0,UD:0,n2:0};if(Vv(V,408125543))if(X.UD=Nt(V,!0),X.n2=V.start+V.pos,Vv(V,357149030)){for(d=j5(V);!pp(d);){var a=Nt(d,!1);a===2807729?X.h1=X6(d):a===2807730?X.ev=X6(d):a===17545?X.duration=iw(d):dz(d)}V.pos=H;V=X}else V.pos=H,V=null;else V.pos=H,V=null;if(V!==null){C.T=V.ev/V.h1;H=new Gr(N);N=H;d=V.n2;H=N.pos;X=[];if(Vv(N,475249515)){for(a=j5(N);Vv(a,187);){var E=j5(a);if(Vv(E, 179)){var l=X6(E);if(Vv(E,183)){E=j5(E);for(var t=d;Vv(E,241);)t=X6(E)+d;X.push({EJ:t,GO:l})}}}if(X.length>0&&p===X[0].EJ)for(p=0;p<X.length;p++)X[p].EJ+=1;N.pos=H;p=X}else N.pos=H,p=null;if(p!==null){p=g.F(p);for(N=p.next();!N.done;N=p.next())X=N.value,N=C,H=X.EJ,X=X.GO,jO(N),N.offsets[N.count]=H,N.wI[N.count]=X,N.count++;C.cap(V.UD+V.n2,V.duration)}}this.W=null}}; g.h.xR=function(p,C,V,N){for(var H=[],X=p;X<=this.index.Ha();X++){var d=Z0(this.index.MB(X),FLa(this.index,X)),a=this.index.getStartTime(X),E=this.index.getDuration(X),l=Math.max(0,C-d.start),t=Math.min(d.end+1,C+V)-(d.start+l);H.push(new fp(3,this,d,"getRequestInfoForRange",X,a,E,l,t,void 0,void 0,N));if(d.start+l+t>=C+V)break}H.length||g.nm(new g.Bw("b189619593",""+p,""+C,""+V));return new oZ(H)}; g.h.QE=function(p){for(var C=this.Nz(p.info),V=p.info.range.start+p.info.C,N=[],H=0;H<C.length;H++){var X=x9(p.T,C[H].range.start+C[H].C-V,C[H].V);N.push(new WR(C[H],X))}return N}; g.h.Nz=function(p){for(var C=p.range.start+p.C,V=0;V<this.index.Ha()&&C>=this.index.MB(V+1);)V++;return this.xR(V,C,p.V).wV}; g.h.pw=function(p){p.Vo();return this.rI()?!0:p.range.end+1<this.info.contentLength}; g.h.Y0=function(p,C){this.pw(p);if(!this.rI())return C=Z0(p.range.end+1,C),C.end+1>this.info.contentLength&&(C=new D0(C.start,this.info.contentLength-1)),new oZ([new fp(4,p.T,C,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,p.clipId)]);p.type===4&&(p=this.Nz(p),p=p[p.length-1]);var V=0,N=p.range.start+p.C+p.V;p.type===3&&(p.Vo(),V=p.LS,N===p.range.end+1&&(V+=1));return this.xR(V,N,C)}; g.h.Jm=function(){return null}; g.h.V8=function(p,C,V){C=C===void 0?!1:C;p=this.index.tU(p);C&&(p=Math.min(this.index.Ha(),p+1));return this.xR(p,this.index.MB(p),0,V)}; g.h.V1=function(){return!0}; g.h.NQ=function(){return!0}; g.h.zq=function(){return!1}; g.h.EB=function(){return this.indexRange.length+this.initRange.length}; g.h.v2=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var QH={},YGH=(QH.COLOR_PRIMARIES_BT709="bt709",QH.COLOR_PRIMARIES_BT2020="bt2020",QH.COLOR_PRIMARIES_UNKNOWN=null,QH.COLOR_PRIMARIES_UNSPECIFIED=null,QH),rK={},KLv=(rK.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",rK.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",rK.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",rK.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",rK.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,rK.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,rK);g.N6.prototype.getName=function(){return this.name}; g.N6.prototype.getId=function(){return this.id}; g.N6.prototype.getIsDefault=function(){return this.isDefault}; g.N6.prototype.toString=function(){return this.name}; g.N6.prototype.getName=g.N6.prototype.getName;g.N6.prototype.getId=g.N6.prototype.getId;g.N6.prototype.getIsDefault=g.N6.prototype.getIsDefault;var UVu=/action_display_post/;var fQe,dB,io;g.m(hz,g.ca);g.h=hz.prototype;g.h.isLoading=function(){return this.state===1}; g.h.Ad=function(){return this.state===3}; g.h.oGY=function(p){var C=p.getElementsByTagName("Representation");if(p.getElementsByTagName("SegmentList").length>0||p.getElementsByTagName("SegmentTemplate").length>0){this.p4=this.C=!0;this.timeline||(this.timeline=new XSe);slH(this.timeline,p);this.publish("refresh");for(p=0;p<C.length;p++){var V=$VX(this,C[p]);if(!this.T[V.id]){var N=tz(np(C[p],"BaseURL").textContent),H=np(C[p],"Initialization"),X=RZ(H,"sourceURL");H=uw(RZ(H,"range"));this.T[V.id]=new zn(N,V,X,H)}V=this.T[V.id];N=RZ(C[p],"id", "AdaptationSet");N=N!==""?N:RZ(C[p],"mimetype","AdaptationSet");X=this.timeline;X=X.V[V.info.id]||X.C[N]||X.T||null;N=X.T;!this.D&&X.getStreamTimeOffset()&&(this.D=X.getStreamTimeOffset());if(X.W){H=[];N=g.F(N);for(var d=N.next();!d.done;d=N.next()){d=d.value;var a=V.info.id,E=V.info.F$*8,l=d.LS;var t=d.startSecs;var c=X.D.split("$$");for(var T=0;T<c.length;T++)c[T]=c[T].replace("$RepresentationID$",a),c[T]=c[T].replace("$Number$",l.toString()),c[T]=c[T].replace("$Bandwidth$",E.toString()),c[T]=c[T].replace("$Time$", t.toString());H.push(new Uc(d.LS,d.startSecs,d.uc,d.T,c.join("$"),null,d.C))}N=H}else{X=jk(np(C[p],"SegmentList").getElementsByTagName("SegmentURL"),X.Y);H=[];for(d=0;d<X.length;d++){a=H;E=a.push;l=N[d];t=void 0;T=X[d];c=T.getAttribute("media");if(T=T.getAttribute("mediaRange")){var M=T.split("-");M[1]&&Number(M[1])>=0?t=uw(T):c=c+"?range="+T}E.call(a,new Uc(l.LS,l.startSecs,l.uc,l.T,c,t,l.C))}N=H}V.update(N,this.isLive,this.UY)}aQy(this.timeline);return!0}this.duration=VIL(RZ(p,"mediaPresentationDuration")); a:{for(p=0;p<C.length;p++){X=C[p];V=$VX(this,X);N=tz(np(X,"BaseURL").textContent);H=np(X,"SegmentBase");X=uw(H.attributes.getNamedItem("indexRange").value);H=uw(H.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);V=new VM(N,V,H,X);if(!V){C=!1;break a}X1(this,V)}C=!0}return C}; g.h.refresh=function(){if(!this.isLoading()&&!this.fS()){var p=g.GD(this.sourceUrl,{start_seq:rVS(this).toString()});gP9(this,p).Rz(function(){})}}; g.h.resume=function(){LLH(this)}; g.h.Sd=function(){if(this.isManifestless&&this.S&&TF(this))return TF(this);var p=this.T,C=!1,V=NaN,N=NaN,H;for(H in p){var X=p[H],d=X.index;d.isLoaded()&&!Xz(X.info.mimeType)&&(X.S&&(C=!0),d=d.Ax(),X.info.DQ()&&(isNaN(V)||d<V)?V=d:X.info.K9()&&(isNaN(N)||d<N)&&(N=d))}return C||isNaN(N)?V:Math.min(V,N)}; g.h.Wa=function(){if(this.isManifestless){if(M6(this))return M6(this);if(this.qW){var p=this.Xt(this.Sd());if(p&&(p-=this.qW,p>0))return this.Sd()-p}}p=this.T;for(var C in p){var V=p[C].index;if(V.isLoaded()&&!Xz(p[C].info.mimeType))return V.Wa()}return 0}; g.h.getStreamTimeOffset=function(){return this.D}; g.h.Xt=function(p){for(var C in this.T){var V=this.T[C].index;if(V.isLoaded()){var N=V.tU(p),H=V.Xt(N);if(H)return H+p-V.getStartTime(N)}}return NaN}; var Kb=null,VqE,D8=!((VqE=navigator.mediaCapabilities)==null||!VqE.decodingInfo),wSa={commentary:1,alternate:2,dub:3,main:4};var Ku=new Set,uo=new Map;fb.prototype.clone=function(p){return new fb(this.flavor,p,this.C,this.experiments)}; fb.prototype.X0=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; fb.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; var NC0={},Y$=(NC0.playready=["com.youtube.playready","com.microsoft.playready"],NC0.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],NC0),BD={},XZ9=(BD.widevine="DRM_SYSTEM_WIDEVINE",BD.fairplay="DRM_SYSTEM_FAIRPLAY",BD.playready="DRM_SYSTEM_PLAYREADY",BD),GU={},Hyy=(GU.widevine=1,GU.fairplay=2,GU.playready=3,GU);R5.prototype.vI=function(p,C){C=C===void 0?1:C;this.y6+=C;this.C+=p;p/=C;for(var V=0;V<zF.length&&!(p<zF[V]);++V)this.T[V]+=C}; R5.prototype.toString=function(){return""}; var zF=[20,100,500,2E3];g.h=dBe.prototype;g.h.isActive=function(){return!0}; g.h.JR=function(p,C){var V=this;if(C){var N={},H;for(H in C)N={oQ:void 0,v0:void 0},C.hasOwnProperty(H)&&(N.oQ=p.prototype[H],N.v0=C[H],p.prototype[H]=function(X){return function(){var d=g.US.apply(0,arguments),a=(0,g.Ip)();d=X.oQ.apply(this,d);return nb(V,d,X.v0,a)}}(N))}}; g.h.SB=function(p,C){if(C){var V=this,N={},H;for(H in C)N={eV:void 0,dQ:void 0},C.hasOwnProperty(H)&&(N.dQ=p.prototype[H],N.eV=C[H],p.prototype[H]=function(X){return function(){var d=g.US.apply(0,arguments),a=this,E=(0,g.Ip)(),l=X.dQ.apply(a,d);return nb(V,l,null,E,function(t){return X.eV.apply(a,[t].concat(d))})}}(N))}}; g.h.Sm=function(p,C){var V=this;return function(){var N=g.US.apply(0,arguments),H=(0,g.Ip)();N=C.apply(null,N);return nb(V,N,p,H)}}; g.h.dB=function(){return new XPQ}; g.h.Dk=function(p,C,V){V=V===void 0?1:V;C instanceof XPQ&&(iju(this,p,(0,g.Ip)()-C.startTimeMs,V),C.T=!0)}; g.h.zz=function(p,C){var V=(0,g.Ip)();C=C();return nb(this,C,p,V)}; g.h.ut=function(){var p={},C;for(C in this.T)if(this.T.hasOwnProperty(C)){var V=this.T[C];if(V.y6===0)V=null;else{for(var N=Math.ceil(V.y6).toFixed(0)+"."+V.C.toFixed(0),H=0;H<zF.length;++H)if(V.T[H]>0)N+="."+zF[H].toFixed(0)+"_"+V.T[H].toFixed(0);else break;V=N}V&&(p[C]=V)}this.T=new HjQ;return p}; g.h.toString=function(){return""};g.h=adj.prototype;g.h.isActive=function(){return!1}; g.h.JR=function(){}; g.h.SB=function(){}; g.h.Sm=function(p,C){return C}; g.h.dB=function(){}; g.h.Dk=function(){}; g.h.zz=function(p,C){return C()}; g.h.ut=function(){return{}}; g.h.toString=function(){return""};var pB,X45,dmG,iyc,hvY,stP,CB,YW,VN,OlX,$$;pB=new adj;X45=!!+CO("html5_enable_profiler");dmG=!!+CO("html5_onesie_enable_profiler");iyc=!!+CO("html5_offline_encryption_enable_profiler");hvY=!!+CO("html5_performance_impact_profiling_timer_ms");stP=!!+CO("html5_drm_enable_profiler");CB=X45||dmG||iyc||hvY||stP?new dBe:pB;g.Rv=X45?CB:pB;YW=dmG?CB:pB;VN=iyc?CB:pB;OlX=hvY?CB:pB;$$=stP?CB:pB;var wB;g.m(eO,g.Y); eO.prototype.initialize=function(p,C){for(var V=this,N=g.F(Object.keys(p)),H=N.next();!H.done;H=N.next()){H=g.F(p[H.value]);for(var X=H.next();!X.done;X=H.next())if(X=X.value,X.vV)for(var d=g.F(Object.keys(X.vV)),a=d.next();!a.done;a=d.next()){var E=a.value;a=E;E=Y$[E];!E&&this.G("html5_enable_vp9_fairplay")&&a==="fairplay"&&(E=["com.youtube.fairplay.sbdl"]);if(E){E=g.F(E);for(var l=E.next();!l.done;l=E.next())l=l.value,this.V[l]=this.V[l]||new fb(a,l,X.vV[a],this.I$.experiments),this.T[a]=this.T[a]|| {},this.T[a][X.mimeType]=!0}}}rm()&&(this.V["com.youtube.fairplay"]=new fb("fairplay","com.youtube.fairplay","",this.I$.experiments),this.G("html5_enable_vp9_fairplay")||(this.T.fairplay=this.T.fairplay||{},this.T.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.T.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.C=N2y(C,this.useCobaltWidevine,this.G("html5_enable_safari_fairplay"),this.G("html5_enable_vp9_fairplay")).filter(function(t){return!!V.V[t]})}; eO.prototype.G=function(p){return this.I$.experiments.OY(p)};var vXL={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};JMH.prototype.G=function(p){return this.experiments.OY(p)};var Qdy={RED:"red",fm_:"white"};mBV.prototype.OY=function(p){p=this.flags[p];JSON.stringify(p);return p==="true"};var ST1=Promise.resolve(),Zje=window.queueMicrotask?window.queueMicrotask.bind(window):K$L;QM.prototype.canPlayType=function(p,C){p=p.canPlayType?p.canPlayType(C):!1;BW?p=p||amY[C]:Ue===2.2?p=p||EVp[C]:Wd()&&(p=p||lmy[C]);return!!p}; QM.prototype.isTypeSupported=function(p){return this.a$?window.cast.receiver.platform.canDisplayType(p):xZ(p)}; var EVp={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},lmy={"application/x-mpegURL":"maybe"},amY={"application/x-mpegURL":"maybe"};g.m(CI,g.ca);CI.prototype.add=function(p,C){if(!this.items[p]&&(C.IY||C.gm||C.U1)){var V=this.items,N=C;Object.isFrozen&&!Object.isFrozen(C)&&(N=Object.create(C),Object.freeze(N));V[p]=N;this.publish("vast_info_card_add",p)}}; CI.prototype.remove=function(p){var C=this.get(p);delete this.items[p];return C}; CI.prototype.get=function(p){return this.items[p]||null}; CI.prototype.isEmpty=function(){return g.k5(this.items)};g.m(jH,g.OF);jH.prototype.T=function(p,C){return g.OF.prototype.T.call(this,p,C)}; jH.prototype.C=function(p,C,V){var N=this;return g.I(function(H){return H.C==1?g.y(H,g.OF.prototype.C.call(N,p,C,V),2):H.return(H.T)})}; g.m(Vj,g.yi);Vj.prototype.encrypt=function(p,C){return g.yi.prototype.encrypt.call(this,p,C)};var Hg;Xs.prototype.add=function(p){if(this.pos+20>this.data.length){var C=new Uint8Array(this.data.length*2);C.set(this.data);this.data=C}for(;p>31;)this.data[this.pos++]=Hg[(p&31)+32],p>>=5;this.data[this.pos++]=Hg[p|0]}; Xs.prototype.c6=function(){return g.wc(this.data.subarray(0,this.pos))}; Xs.prototype.reset=function(){this.pos=0};dG.prototype.N3=function(p,C){var V=Math.pow(this.alpha,p);this.T=C*(1-V)+V*this.T;this.C+=p}; dG.prototype.Kd=function(){return this.T/(1-Math.pow(this.alpha,this.C))};iL.prototype.N3=function(p,C){for(var V=0;V<10;V++){var N=this.T[V],H=N+(V===0?p:0),X=1*Math.pow(2,V);if(H<=X)break;N=Math.min(1,(H-X*.5)/N);for(H=0;H<16;H++)X=this.values[V*16+H]*N,this.values[(V+1)*16+H]+=X,this.T[V+1]+=X,this.values[V*16+H]-=X,this.T[V]-=X}N=V=0;H=8192;C>8192&&(V=Math.ceil(Math.log(C/8192)/Math.log(2)),N=8192*Math.pow(2,V-1),H=N*2);V+2>16?this.values[15]+=p:(C=(C-N)/(H-N),this.values[V]+=p*(1-C),this.values[V+1]+=p*C);this.T[0]+=p}; iL.prototype.Kd=function(){var p=p===void 0?this.C:p;var C=C===void 0?.02:C;var V=V===void 0?.98:V;for(var N=this.V,H=0;H<16;H++)N[H]=this.values[H];H=this.T[0];for(var X=1;X<11;X++){var d=this.T[X];if(d===0)break;for(var a=Math.min(1,(p-H)/d),E=0;E<16;E++)N[E]+=this.values[X*16+E]*a;H+=d*a;if(a<1)break}for(X=p=d=0;X<16;X++){a=d+N[X]/H;p+=Math.max(0,Math.min(a,V)-Math.max(d,C))*(X>0?8192*Math.pow(2,X-1):0);if(a>V)break;d=a}return p/(V-C)};hR.prototype.N3=function(p,C){p=Math.min(this.T,Math.max(1,Math.round(p*this.resolution)));p+this.C>=this.T&&(this.V=!0);for(;p--;)this.values[this.C]=C,this.C=(this.C+1)%this.T;this.d2=!0}; hR.prototype.percentile=function(p){var C=this;if(!this.V&&this.C===0)return 0;this.d2&&(g.hB(this.W,function(V,N){return C.values[V]-C.values[N]}),this.d2=!1); return this.values[this.W[Math.round(p*((this.V?this.T:this.C)-1))]]||0}; hR.prototype.Kd=function(){return this.Y?(this.percentile(this.S-this.Y)+this.percentile(this.S)+this.percentile(this.S+this.Y))/3:this.percentile(this.S)};g.m(se,g.Y);se.prototype.R$=function(){var p;(p=this.Ga)==null||p.start();if(JR(this)&&this.policy.J){var C;(C=this.lJ)==null||C.Is()}};ROj.prototype.G=function(p){return this.experiments.OY(p)};g.m(eO1,g.Y);var W$L="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),C_j={V5$:"caoe",S8o:"capsv",HOV:"cbrand",p6n:"cbr",Rja:"cbrver",Qdx:"cchip",q8$:"ccappver",cUa:"ccrv",w$a:"cfrmver",NRe:"c",eYo:"cver",hYr:"ctheme",Gpa:"cplayer",h4n:"cmodel",lr_:"cnetwork",d1_:"cos",jzr:"cosver",yda:"cplatform",Nba:"crqyear"};g.m(xS,g.Y);g.h=xS.prototype;g.h.G=function(p){return this.experiments.OY(p)}; g.h.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.h.getVideoUrl=function(p,C,V,N,H,X,d){C={list:C};V&&(H?C.time_continue=V:C.t=V);V=d?"music.youtube.com":g.zM(this);H=V==="www.youtube.com";!X&&N&&H?X="https://youtu.be/"+p:g.yj(this)?(X="https://"+V+"/fire",C.v=p):(X&&H?(X=this.protocol+"://"+V+"/shorts/"+p,N&&(C.feature="share")):(X=this.protocol+"://"+V+"/watch",C.v=p),BW&&(p=LGj())&&(C.ebc=p));return g.GD(X,C)}; g.h.getVideoEmbedCode=function(p,C,V,N){C="https://"+g.zM(this)+"/embed/"+C;N&&(C=g.GD(C,{list:N}));N=V.width;V=V.height;C=Xn(C);p=Xn(p!=null?p:"YouTube video player");return'<iframe width="'+N+'" height="'+V+'" src="'+C+'" title="'+(p+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')}; g.h.supportsGaplessAudio=function(){return g.kZ&&!BW&&LO()>=74||g.k$&&g.JB(68)?!0:!1}; g.h.supportsGaplessShorts=function(){return!this.G("html5_enable_short_gapless")||this.R$||g.D1?!1:!0}; g.h.getPlayerType=function(){return this.T.cplayer}; g.h.Gk=function(){return this.hE}; var Ha9=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],p0V=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],V8y=[19];var jj={},ia1=(jj["140"]={numChannels:2},jj["141"]={numChannels:2},jj["251"]={audioSampleRate:48E3,numChannels:2},jj["774"]={audioSampleRate:48E3,numChannels:2},jj["380"]={numChannels:6},jj["328"]={numChannels:6},jj),Vo={},X0Y=(Vo["1"]='video/mp4; codecs="av01.0.08M.08"',Vo["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Vo["9"]='video/webm; codecs="vp9"',Vo["("]='video/webm; codecs="vp9"',Vo["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',Vo.h='video/mp4; codecs="avc1.64001e"', Vo.H='video/mp4; codecs="avc1.64001e"',Vo.o='audio/webm; codecs="opus"',Vo.a='audio/mp4; codecs="mp4a.40.2"',Vo.ah='audio/mp4; codecs="mp4a.40.2"',Vo.mac3='audio/mp4; codecs="ac-3"; channels=6',Vo.meac3='audio/mp4; codecs="ec-3"; channels=6',Vo),N9={},d3L=(N9["337"]={width:3840,height:2160,bitrate:3E7,fps:30},N9["336"]={width:2560,height:1440,bitrate:15E6,fps:30},N9["335"]={width:1920,height:1080,bitrate:75E5,fps:30},N9["702"]={width:7680,height:4320,bitrate:4E7,fps:60},N9["701"]={width:3840,height:2160, bitrate:2E7,fps:60},N9["700"]={width:2560,height:1440,bitrate:1E7,fps:60},N9["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},N9["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},N9["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},N9["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},N9["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"}, N9["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},N9["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},N9["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},N9["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},N9["315"]={width:3840,height:2160,bitrate:2E7,fps:60},N9["308"]={width:2560,height:1440,bitrate:1E7,fps:60},N9["303"]={width:1920,height:1080,bitrate:5E6,fps:60}, N9["302"]={width:1280,height:720,bitrate:25E5,fps:60},N9["299"]={width:1920,height:1080,bitrate:75E5,fps:60},N9["298"]={width:1280,height:720,bitrate:35E5,fps:60},N9["571"]={width:7680,height:4320,bitrate:3E7,fps:60},N9["401"]={width:3840,height:2160,bitrate:15E6,fps:60},N9["400"]={width:2560,height:1440,bitrate:75E5,fps:60},N9["399"]={width:1920,height:1080,bitrate:2E6,fps:60},N9["398"]={width:1280,height:720,bitrate:1E6,fps:60},N9["397"]={width:854,height:480,bitrate:4E5,fps:30},N9["396"]={width:640, height:360,bitrate:25E4,fps:30},N9["787"]={width:1080,height:608,bitrate:2E5,fps:30},N9["788"]={width:1080,height:608,bitrate:4E5,fps:30},N9["313"]={width:3840,height:2160,bitrate:8E6,fps:30},N9["271"]={width:2560,height:1440,bitrate:4E6,fps:30},N9["248"]={width:1920,height:1080,bitrate:2E6,fps:30},N9["247"]={width:1280,height:720,bitrate:15E5,fps:30},N9["244"]={width:854,height:480,bitrate:52E4,fps:30},N9["243"]={width:640,height:360,bitrate:28E4,fps:30},N9["137"]={width:1920,height:1080,bitrate:4E6, fps:30},N9["136"]={width:1280,height:720,bitrate:3E6,fps:30},N9["135"]={width:854,height:480,bitrate:1E6,fps:30},N9["385"]={width:1920,height:1080,bitrate:6503313,fps:60},N9["376"]={width:1280,height:720,bitrate:5706960,fps:60},N9["384"]={width:1280,height:720,bitrate:3660979,fps:60},N9["225"]={width:1280,height:720,bitrate:5805E3,fps:30},N9["224"]={width:1280,height:720,bitrate:453E4,fps:30},N9["145"]={width:1280,height:720,bitrate:2682052,fps:30},N9);g.h=jw.prototype;g.h.getInfo=function(){return this.T}; g.h.Qa=function(){return null}; g.h.Ph=function(){var p=this.Qa();return p?(p=g.sk(p.sR),Number(p.expire)):NaN}; g.h.C2=function(){}; g.h.getHeight=function(){return this.T.video.height};ExQ.prototype.build=function(){cLs(this);var p=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],C={};a:if(this.T)var V=this.T;else{V="";for(var N=g.F(this.V),H=N.next();!H.done;H=N.next())if(H=H.value,H.K4){if(H.K4.getIsDefault()){V=H.K4.getId();break a}V||(V=H.K4.getId())}}N=g.F(this.V);for(H=N.next();!H.done;H=N.next())if(H=H.value,this.Y||!H.K4||H.K4.getId()===V)C[H.itag]||(C[H.itag]=[]),C[H.itag].push(H);V=g.F(this.C);for(N=V.next();!N.done;N=V.next())if(N=N.value,H=C[N.T]){H=g.F(H);for(var X=H.next();!X.done;X= H.next()){var d=p,a=d.push;X=X.value;var E="#EXT-X-MEDIA:TYPE=AUDIO,",l="YES",t="audio";if(X.K4){t=X.K4;var c=t.getId().split(".")[0];c&&(E+='LANGUAGE="'+c+'",');(this.T?this.T===t.getId():t.getIsDefault())||(l="NO");t=t.getName()}c="";N!==null&&(c=N.itag.toString());c=NF(this,X.url,c);E=E+('NAME="'+t+'",DEFAULT='+(l+',AUTOSELECT=YES,GROUP-ID="'))+(t8e(X,N)+'",URI="'+(c+'"'));a.call(d,E)}}V=g.F(this.W);for(N=V.next();!N.done;N=V.next())N=N.value,H=tq0,N=(d=N.K4)?'#EXT-X-MEDIA:URI="'+NF(this,N.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+H+'",LANGUAGE="'+d.getId()+'",NAME="'+d.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,N&&p.push(N);V=this.W.length>0?tq0:void 0;N=g.F(this.C);for(H=N.next();!H.done;H=N.next())H=H.value,a=C[H.T],d=void 0,((d=a)==null?void 0:d.length)>0&&(d=H,a=a[0],a="#EXT-X-STREAM-INF:BANDWIDTH="+(d.bitrate+a.bitrate)+',CODECS="'+(d.codecs+","+a.codecs+'",RESOLUTION=')+(d.width+"x"+d.height+',AUDIO="')+(t8e(a,d)+'",')+(V?'SUBTITLES="'+V+'",':"")+"CLOSED-CAPTIONS=NONE",d.fps>1&&(a+= ",FRAME-RATE="+d.fps),d.SD&&(a+=",VIDEO-RANGE="+d.SD),p.push(a),p.push(NF(this,H.url,"")));return p.join("\n")}; var tq0="text";g.m(H7,jw);H7.prototype.Ph=function(){return this.expiration}; H7.prototype.Qa=function(){if(!this.sR||this.sR.fS()){var p=this.C.build();p="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(p);this.sR=new pV(p)}return this.sR};g.m(Xt,jw);Xt.prototype.Qa=function(){return new pV(this.C.i9())}; Xt.prototype.C2=function(){this.C=u5(this.C)};g.m(dP,jw);dP.prototype.Qa=function(){return new pV(this.C)};var HL={},umY=(HL.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",HL.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",HL.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",HL);g.h=g.is.prototype;g.h.getId=function(){return this.id}; g.h.getName=function(){return this.name}; g.h.isServable=function(){return this.T}; g.h.i9=function(){return this.url}; g.h.getXtags=function(){return this.xtags}; g.h.toString=function(){return this.languageCode+": "+g.hA(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.h.sE=function(p){return p?this.toString()===p.toString():!1}; g.h.GN=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var yLj={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},qAY={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},IYQ=/^(\d*)_((\d*)_?(\d*))$/;var ALu={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},oxe={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var X8={},FZj=(X8.ALWAYS=1,X8.BY_REQUEST=3,X8.UNKNOWN=void 0,X8),d4={},UOQ=(d4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",d4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",d4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",d4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",d4);var qXy; qXy=function(p){for(var C=Object.keys(p),V={},N=0;N<C.length;N++){var H=C[N];typeof p[H]==="function"&&(V[H]=p[H])}var X=Object.keys(V);try{b2Q(V)}catch(a){var d=a}return function(a,E){a=a===void 0?{}:a;if(d)throw d;for(var l=!1,t={},c=0;c<X.length;c++){var T=X[c],M=a[T],J=(0,V[T])(M,E);if(typeof J==="undefined")throw a=E&&E.type,Error("When called with an action of type "+(a?'"'+String(a)+'"':"(unknown type)")+', the slice reducer for key "'+T+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');t[T]= J;l=l||J!==M}return(l=l||X.length!==Object.keys(a).length)?t:a}}({entities:function(p,C){p=p===void 0?{}:p; return PRV(p,C)}}); g.Xx=new be;Te.prototype.toString=function(){return this.type+this.id};g.JA.prototype.TW=function(p){p=p||"hqdefault.jpg";var C=this.Z[p];if(C)return C;if(p==="sddefault.jpg"||p==="hq720.jpg"||p==="maxresdefault.jpg")return C;if(this.T)return Rg(this.I$,this.T,p)}; g.JA.prototype.a8=function(){return this.I$.getVideoUrl(this.videoId,this.playlistId)};g.mx.prototype.TW=function(p){p||(p="hqdefault.jpg");var C=this.Z[p];return C?C:p==="pop1.jpg"||p==="pop2.jpg"||p==="sddefault.jpg"||p==="hq720.jpg"||p==="maxresdefault.jpg"?C:Rg(this.I$,this.videoId,p)}; g.mx.prototype.a8=function(p){return this.watchUrl||this.I$.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,p)};var Sw=void 0;yNa("LMS",function(){return g.I(function(p){return p.return(g.Kk())})});var Uj;Uj=0;g.Nre=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;yNa("LMDB",function(){var p,C;return g.I(function(V){if(V.C==1)return g.y(V,g.Vt(),2);if(V.C!=3){p=V.T;if(!p)throw g.Z1("edd");return g.y(V,g.Zb(p),3)}C=V.T;return V.return(g.kt(C,["index","media","captions"],{mode:"readonly",L4:!0},function(N){var H={};N=[g.n3(N.objectStore("index"),{},function(X){H[X.cursor.key]=X.getValue();return g.e_(X)}), ACa(N.objectStore("media")),ACa(N.objectStore("captions"))];return g.f3.all(N).then(function(X){var d=g.F(X);d.next();X=d.next().value;d=d.next().value;return{index:H,media:HzQ(X||[]),captions:d}})}))})});g.m(Oj,g.ca);Oj.prototype.CS=function(){this.T&&(this.T=this.T.onload=null);g.ca.prototype.CS.call(this)};g.h=g.bs.prototype;g.h.getHeight=function(){return this.height}; g.h.t4=CY(2);g.h.aV=function(){return this.frameCount}; g.h.isDefault=function(){return this.V.indexOf("default")!==-1}; g.h.isLoaded=function(p){return this.loaded.has(p)}; g.h.i9=function(p){var C=this.S;C=C.replace("$N",this.V);C=C.replace("$L",this.level.toString());C=C.replace("$M",p.toString());this.signature&&(C=g.GD(C,{sigh:this.signature}));return iG(C)}; g.h.U7=function(p){var C=this.aV()-1;return g.J9(this.T===0?Math.round(p*this.frameCount/this.videoLength):Math.round(p*1E3/this.T),0,C)}; g.h.BA=function(){return this.frameCount-1}; g.h.g$=function(){return this.frameCount?0:-1}; g.h.wk=function(){};g.m(AA,Oj);AA.prototype.C=function(p,C){var V=[];p=p.split("|");for(var N=p[0],H=1;H<p.length;H++){var X=this.W(H-1,N,p[H],C);(this.D||X.getHeight()<180)&&V.push(X)}return V}; AA.prototype.W=function(p,C,V,N){return new g.bs(p,C,V,N)};g.m(oI,g.bs);g.h=oI.prototype;g.h.aV=function(){return this.C.Fp()}; g.h.U7=function(p){var C=this.rows*this.columns*this.W,V=this.C,N=V.Ha();p=V.tU(p);return p>N-C?-1:p}; g.h.BA=function(){return this.C.Ha()}; g.h.g$=function(){return this.C.V6()}; g.h.wk=function(p){this.C=p};g.m(kB,AA);kB.prototype.C=function(p,C){return AA.prototype.C.call(this,"$N|"+p,C)}; kB.prototype.W=function(p,C,V){return new oI(p,C,V,this.isLive)};var qi9=[],Cf=new Set;g.m(g.YB,g.ca);g.h=g.YB.prototype;g.h.K=function(){return this.I$}; g.h.G=function(p){return this.I$.G(p)}; g.h.CO=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.h.hasSupportedAudio51Tracks=function(){var p;return!((p=this.f9)==null||!p.X$)}; g.h.getUserAudio51Preference=function(){var p=1;$S(this.I$)&&this.G("html5_ytv_surround_toggle_default_off")?p=0:g.eH(this.I$)&&this.isLivePlayback&&this.O8()&&(p=0);var C;return(C=g.zW("yt-player-audio51"))!=null?C:p}; g.h.SF=function(){this.fS()||(this.T.C||this.T.unsubscribe("refresh",this.SF,this),this.fE(-1))}; g.h.fE=function(p){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var C=nPa(this.T,this.iQ);if(C.length>0){for(var V=g.F(C),N=V.next();!N.done;N=V.next())N=N.value,N.startSecs=Math.max(N.startSecs,this.Wa());this.publish("cuepointupdated",C,p);this.iQ+=C.length;if(Ge(this)&&this.I$.Gk())for(C=g.F(C),V=C.next();!V.done;V=C.next())V=V.value,this.k_("cuepoint",{segNum:p,event:V.event,startSecs:V.startSecs,id:V.identifier.slice(-16)}),V.event==="start"&&(V=V.startSecs,this.Cj.start=this.hg, this.Cj.end=V+3)}}}; g.h.O8=function(){return this.nA!==void 0?this.nA:this.nA=!!this.vV||!!this.T&&l5(this.T)}; g.h.Z1=function(p){var C=this;if(this.fS())return xD();this.FO=this.KS=this.V=null;W7(this,"html5_high_res_logging_always")&&(this.I$.hE=!0);return LZV(this,p).then(void 0,function(){return g1j(C,p)}).then(void 0,function(){return WZX(C)}).then(void 0,function(){return r59(C)})}; g.h.C$=function(){if(this.cotn)return null;var p=g.qz(this.I$)||this.G("web_l3_storyboard");if(!this.BB)if(this.playerResponse&&this.playerResponse.storyboards){var C=this.playerResponse.storyboards,V=C.playerStoryboardSpecRenderer;V&&V.spec?this.BB=new AA(V.spec,this.lengthSeconds,void 0,!1,p):(C=C.playerLiveStoryboardSpecRenderer)&&C.spec&&this.T&&(V=QO9(this.T.T).index)&&(this.BB=new kB(C.spec,this.T.isLive,V,p))}else this.ra?this.BB=new AA(this.ra,this.lengthSeconds,void 0,!1,p):this.Pj&&this.T&& (C=QO9(this.T.T).index)&&(this.BB=new kB(this.Pj,this.T.isLive,C,p));return this.BB}; g.h.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var p=this.playerResponse.storyboards;return(p=p.playerStoryboardSpecRenderer||p.playerLiveStoryboardSpecRenderer)&&p.spec||null}return this.ra||this.Pj}; g.h.Sd=function(){return this.T&&!isNaN(this.T.Sd())?this.T.Sd():Ge(this)?0:this.lengthSeconds}; g.h.Wa=function(){return this.T&&!isNaN(this.T.Wa())?this.T.Wa():0}; g.h.getPlaylistSequenceForTime=function(p){if(this.T&&this.C){var C=this.T.T[this.C.id];if(!C)return null;var V=C.index.tU(p);C=C.index.getStartTime(V);return{sequence:V,elapsed:Math.floor((p-C)*1E3)}}return null}; g.h.GN=function(){return!this.fS()&&!(!this.videoId&&!this.BI)}; g.h.Ar=function(){var p,C,V;return!!this.adaptiveFormats||!!((p=this.playerResponse)==null?0:(C=p.streamingData)==null?0:(V=C.adaptiveFormats)==null?0:V.length)}; g.h.isLoaded=function(){return ze(this)&&!this.AX&&!this.sx}; g.h.TW=function(p){p||(p="hqdefault.jpg");var C=this.Z[p];return C||this.I$.b_||p==="pop1.jpg"||p==="pop2.jpg"||p==="sddefault.jpg"||p==="hq720.jpg"||p==="maxresdefault.jpg"?C:Rg(this.I$,this.videoId,p)}; g.h.p4=function(){return this.isLivePlayback||this.EO||this.Wr||!(!this.liveUtcStartSeconds||!this.gR)}; g.h.isOtf=function(){return!!this.T&&(this.T.isOtf||!this.EO&&!this.isLivePlayback&&this.T.C)}; g.h.getAvailableAudioTracks=function(){return this.V?this.V.getAvailableAudioTracks().length>0?this.V.getAvailableAudioTracks():this.Ij||[]:[]}; g.h.getAudioTrack=function(){var p=this;if(this.S&&!jb(this.S))return g.L0(this.getAvailableAudioTracks(),function(N){return N.id===p.S.id})||this.Uv; if(this.Ij){if(!this.VP)for(var C=g.F(this.Ij),V=C.next();!V.done;V=C.next())if(V=V.value,V.K4.getIsDefault()){this.VP=V;break}return this.VP||this.Uv}return this.Uv}; g.h.getPlayerResponse=function(){return this.playerResponse}; g.h.getWatchNextResponse=function(){return this.Ga}; g.h.getHeartbeatResponse=function(){return this.d1}; g.h.a8=function(){return this.watchUrl?this.watchUrl:this.I$.getVideoUrl(this.videoId)}; g.h.Ez=function(){return!!this.T&&(qGa(this.T)||IQj(this.T)||brX(this.T))}; g.h.getEmbeddedPlayerResponse=function(){return this.b0}; g.h.rR=function(){return(this.eventLabel||this.I$.Wr)==="shortspage"}; g.h.isAd=function(){return this.mH||!!this.adFormat}; g.h.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.h.VL=function(){var p,C,V;return this.isDaiEnabled()&&!!((p=this.playerResponse)==null?0:(C=p.playerConfig)==null?0:(V=C.daiConfig)==null?0:V.ssaEnabledPlayback)}; g.h.Gm=function(){return Sie(this)?this.DB:this.W8||this.YN}; g.h.P9=function(){return this.Pz||this.YN}; g.h.dG=function(){return W7(this,"html5_samsung_vp9_live")}; g.h.k_=function(p,C,V){this.publish("ctmp",p,C,V)}; g.h.x8=function(p,C,V){this.publish("ctmpstr",p,C,V)}; g.h.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.h.getGetAdBreakContext=function(p,C){p=p===void 0?NaN:p;C=C===void 0?NaN:C;var V={isSabr:$B(this)},N,H=(N=this.getHeartbeatResponse())==null?void 0:N.adBreakHeartbeatParams;H&&(V.adBreakHeartbeatParams=H);if(this.G("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(p)&&!isNaN(C)){C=p-C;for(var X in this.T.T)if(N=this.T.T[X],N.info.K9()||N.info.DQ())if(N=N.index,N.isLoaded()){X=N.tU(C);N=N.Xt(X)+C-N.getStartTime(X);this.k_("gabc",{t:p.toFixed(3),mt:C.toFixed(3),sg:X,igt:N.toFixed(3)}); V.livePlaybackPosition={utcTimeMillis:""+(N*1E3).toFixed(0)};break}}return V}; g.h.isEmbedsShortsMode=function(p,C){if(!g.KI(this.I$))return!1;var V;if(!this.G("embeds_enable_emc3ds_shorts")&&((V=this.I$.getWebPlayerContextConfig())==null?0:V.embedsEnableEmc3ds)||(this.I$.Sa||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||C)return!1;var N,H;return!!(((N=this.embeddedPlayerConfig)==null?0:(H=N.embeddedPlayerFlags)==null?0:H.isShortsExperienceEligible)&&p.width<=p.height)}; g.h.CS=function(){g.ca.prototype.CS.call(this);this.yR=null;delete this.w8;delete this.accountLinkingConfig;delete this.T;this.V=this.d1=this.playerResponse=this.Ga=null;this.jZ=this.adaptiveFormats="";delete this.botguardData;this.Qn=this.suggestions=this.bv=null};var ZwV={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},UiS={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Di9={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Fwa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},KwS={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},ScY={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG", 3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},uP1={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_DEFAULT",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.m(Mh,g.Y);g.h=Mh.prototype;g.h.handleExternalCall=function(p,C,V){var N=this.state.D[p],H=this.state.J[p],X=N;if(H)if(V&&No(V,IBc))X=H;else if(!N)throw Error('API call from an untrusted origin: "'+V+'"');this.logApiCall(p,V);if(X){V=!1;N=g.F(C);for(H=N.next();!H.done;H=N.next())if(String(H.value).includes("javascript:")){V=!0;break}V&&g.eG(Error('Dangerous call to "'+p+'" with ['+C+"]."));return X.apply(this,C)}throw Error('Unknown API method: "'+p+'".');}; g.h.logApiCall=function(p,C,V){var N=this.app.K();N.Ic&&!this.state.Z.has(p)&&(this.state.Z.add(p),g.t1("webPlayerApiCalled",{callerUrl:N.loaderUrl,methodName:p,origin:C||void 0,playerStyle:N.playerStyle||void 0,embeddedPlayerMode:N.Sa,errorCode:V}))}; g.h.publish=function(p){var C=g.US.apply(1,arguments);this.state.V.publish.apply(this.state.V,[p].concat(g.K(C)));if(p==="videodatachange"||p==="resize"||p==="cardstatechange")this.state.C.publish.apply(this.state.C,[p].concat(g.K(C))),this.state.S.publish.apply(this.state.S,[p].concat(g.K(C)))}; g.h.Jk=function(p){var C=g.US.apply(1,arguments);this.state.V.publish.apply(this.state.V,[p].concat(g.K(C)));this.state.C.publish.apply(this.state.C,[p].concat(g.K(C)))}; g.h.Ba=function(p){var C=g.US.apply(1,arguments);this.state.V.publish.apply(this.state.V,[p].concat(g.K(C)));this.state.C.publish.apply(this.state.C,[p].concat(g.K(C)));this.state.S.publish.apply(this.state.S,[p].concat(g.K(C)))}; g.h.v1=function(p){var C=g.US.apply(1,arguments);this.state.V.publish.apply(this.state.V,[p].concat(g.K(C)));this.state.C.publish.apply(this.state.C,[p].concat(g.K(C)));this.state.S.publish.apply(this.state.S,[p].concat(g.K(C)));this.state.W.publish.apply(this.state.W,[p].concat(g.K(C)))}; g.h.G=function(p){return this.app.K().G(p)}; g.h.CS=function(){if(this.state.element){var p=this.state.element,C;for(C in this.state.T)this.state.T.hasOwnProperty(C)&&(p[C]=null);this.state.element=null}g.Y.prototype.CS.call(this)};g.m(SQ,g.IL);SQ.prototype.publish=function(p){var C=g.US.apply(1,arguments);if(this.W.has(p))return this.W.get(p).push(C),!0;var V=!1;try{for(C=[C],this.W.set(p,C);C.length;)V=g.IL.prototype.publish.call.apply(g.IL.prototype.publish,[this,p].concat(g.K(C.shift())))}finally{this.W.delete(p)}return V};g.m(KT,g.Y);KT.prototype.CS=function(){this.W.dispose();this.S.dispose();this.C.dispose();this.V.dispose();this.Z=this.T=this.J=this.D=this.Y=void 0};var AeY=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.m(ux,Mh);g.h=ux.prototype;g.h.getApiInterface=function(){return Array.from(this.state.Y)}; g.h.oP=function(p,C){this.state.W.subscribe(p,C)}; g.h.YO_=function(p,C){this.state.W.unsubscribe(p,C)}; g.h.getPlayerState=function(p){return rZe(this.app,p)}; g.h.d0=function(){return rZe(this.app)}; g.h.kMn=function(p,C,V){fT(this)&&(eM(this.app,!0,1),wJ(this.app,p,C,V,1))}; g.h.getCurrentTime=function(p,C,V){var N=this.getPlayerState(p);if(this.app.getAppState()===2&&N===5){var H;return((H=this.app.getVideoData())==null?void 0:H.startSeconds)||0}return this.G("web_player_max_seekable_on_ended")&&N===0?LFs(this.app,p):p?this.app.getCurrentTime(p,C,V):this.app.getCurrentTime(p)}; g.h.Bw=function(){return this.app.getCurrentTime(1)}; g.h.Ob=function(){var p=this.app.Xt(1);return isNaN(p)?this.getCurrentTime(1):p}; g.h.Ku=function(){return this.app.getDuration(1)}; g.h.zx=function(p,C){p=g.J9(Math.floor(p),0,100);isFinite(p)&&AX(this.app,{volume:p,muted:this.isMuted()},C)}; g.h.i9_=function(p){this.zx(p,!1)}; g.h.Bu=function(p){AX(this.app,{muted:!0,volume:this.getVolume()},p)}; g.h.ae$=function(){this.Bu(!1)}; g.h.QF=function(p){U5(this.app)&&!this.G("embeds_enable_emc3ds_muted_autoplay")||AX(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},p)}; g.h.Cc$=function(){U5(this.app)&&this.G("embeds_enable_emc3ds_muted_autoplay")||this.QF(!1)}; g.h.getPlayerMode=function(){var p={};this.app.getVideoData().UV&&(p.pfp={enableIma:g.lx(this.app.getVideoData())&&this.app.DE().allowImaMonetization,autoplay:Nh(this.app.DE()),mutedAutoplay:this.app.DE().mutedAutoplay});return p}; g.h.fF=function(){var p=this.app.getPresentingPlayerType();if(this.G("html5_enable_ssap_autoplay_debug_logging")){var C;(C=g.O5(this.app))==null||C.k_("ssap",{pbintl:p})}if(p===2&&!this.app.tE()&&(C=Px(this.app.Tk()),!gM9(C)||W3v(C)))return;p===3?R$(this.app.Tk()).z4("control_play"):this.app.K().G("html5_ssap_ignore_play_for_ad")&&g.pf(this.app.DE())&&p===2||this.app.playVideo(p)}; g.h.T7a=function(){eM(this.app,!0,1);this.fF()}; g.h.pauseVideo=function(p){var C=this.app.getPresentingPlayerType();if(C!==2||this.app.tE()||gM9(Px(this.app.Tk())))C===3?R$(this.app.Tk()).z4("control_pause"):this.app.pauseVideo(C,p)}; g.h.tZn=function(){var p=this.app,C=!1;p.yn.VZ&&(p.ea.publish("pageTransition"),C=!0);p.stopVideo(C)}; g.h.clearVideo=function(){}; g.h.getAvailablePlaybackRates=function(){var p=this.app.K();return p.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(p.S?p.ancestorOrigins[0]:window.location.origin)||p.rj?sOE:p.supportsVarispeedExtendedFeatures?aBr:hj0:[1]}; g.h.getPlaybackQuality=function(p){return(p=g.O5(this.app,p))?p.getPlaybackQuality():"unknown"}; g.h.SVe=function(){}; g.h.getAvailableQualityLevels=function(p){return(p=g.O5(this.app,p))?(p=g.AU(p.TY(),function(C){return C.quality}),p.length&&(p[0]==="auto"&&p.shift(),p=p.concat(["auto"])),p):[]}; g.h.Pw=function(){return this.getAvailableQualityLevels(1)}; g.h.cw=function(){return this.yS()}; g.h.Md=function(){return 1}; g.h.getVideoLoadedFraction=function(p){return this.app.getVideoLoadedFraction(p)}; g.h.yS=function(){return this.getVideoLoadedFraction()}; g.h.TL=function(){return 0}; g.h.getSize=function(){var p=this.app.dV().getPlayerSize();return{width:p.width,height:p.height}}; g.h.setSize=function(){this.app.dV().resize()}; g.h.loadVideoById=function(p,C,V,N){if(!p)return!1;p=Dg(p,C,V);return this.app.loadVideoByPlayerVars(p,N)}; g.h.G6=function(p,C,V){p=this.loadVideoById(p,C,V,1);eM(this.app,p,1)}; g.h.cueVideoById=function(p,C,V,N){p=Dg(p,C,V);this.app.cueVideoByPlayerVars(p,N)}; g.h.hn=function(p,C,V){this.cueVideoById(p,C,V,1)}; g.h.loadVideoByUrl=function(p,C,V,N){p=bwu(p,C,V);return this.app.loadVideoByPlayerVars(p,N)}; g.h.PU=function(p,C,V){p=this.loadVideoByUrl(p,C,V,1);eM(this.app,p,1)}; g.h.cueVideoByUrl=function(p,C,V,N){p=bwu(p,C,V);this.app.cueVideoByPlayerVars(p,N)}; g.h.pU=function(p,C,V){this.cueVideoByUrl(p,C,V,1)}; g.h.n_=function(){var p=this.app.K();if(p.b_)return"";var C=this.app.DE(),V=void 0;C.isLivePlayback||(V=Math.floor(this.app.getCurrentTime(1)));return p.getVideoUrl(C.videoId,this.getPlaylistId()||void 0,V)}; g.h.Ub=function(){return this.app.getDebugText()}; g.h.getVideoEmbedCode=function(){var p=this.app.K();if(p.b_)return"";var C=this.app.DE();return p.getVideoEmbedCode(C.isPrivate?"":C.title,this.app.DE().videoId,this.app.dV().getPlayerSize(),this.getPlaylistId()||void 0)}; g.h.Q3=function(p,C,V){return VW9(this.app,p,C,V)}; g.h.removeCueRange=function(p){return HLS(this.app,p)}; g.h.loadPlaylist=function(p,C,V,N){this.app.loadPlaylist(p,C,V,N)}; g.h.LD=function(p,C,V,N){this.loadPlaylist(p,C,V,N);eM(this.app,!0,1)}; g.h.cuePlaylist=function(p,C,V,N){this.app.cuePlaylist(p,C,V,N)}; g.h.nextVideo=function(p,C){this.app.nextVideo(p,C)}; g.h.bSx=function(){this.nextVideo();eM(this.app,!0,1)}; g.h.previousVideo=function(p){this.app.previousVideo(p)}; g.h.SO_=function(){this.previousVideo();eM(this.app,!0,1)}; g.h.playVideoAt=function(p){this.app.playVideoAt(p)}; g.h.yiS=function(p){this.playVideoAt(p);eM(this.app,!0,1)}; g.h.setShuffle=function(p){var C=this.app.getPlaylist();C&&C.setShuffle(p)}; g.h.setLoop=function(p){var C=this.app.getPlaylist();C&&(C.loop=p)}; g.h.XP=function(){var p=this.app.getPlaylist();if(!p)return null;for(var C=[],V=0;V<p.getLength();V++){var N=g.OC(p,V);N&&C.push(N.videoId)}return C}; g.h.getPlaylistIndex=function(){var p=this.app.getPlaylist();return p?p.index:-1}; g.h.getPlaylistId=function(){var p=this.app.getPlaylist();return p&&p.listId?p.listId.toString():null}; g.h.La=function(p){p==="captions"&&(p=g.RT(this.app.Tk()))&&!p.loaded&&p.load()}; g.h.qy=function(p){p==="captions"&&(p=g.RT(this.app.Tk()))&&p.loaded&&p.IZa()}; g.h.mX=function(p,C,V){if(!C)return null;var N=this.app.Tk();return p==="captions"?(p=g.RT(N))&&p.DP(C,V):null}; g.h.Jf=function(p,C,V){var N=g.O5(this.app,1);return N&&N.getVideoData().isPrivate&&this.app.K().S?{}:this.mX(p,C,V)}; g.h.zc=function(p){var C=this.app.Tk();if(p==="captions"){var V;return((V=g.RT(C))==null?void 0:V.getOptions())||null}return p?null:(p=[],g.RT(C)&&p.push("captions"),p)}; g.h.getVolume=function(){return this.app.zU.volume}; g.h.isMuted=function(){return this.app.zU.muted}; g.h.destroy=function(){this.app.dispose()}; g.h.logImaAdEvent=function(p,C){var V=this.app.K();g.lx(this.app.getVideoData())&&this.app.DE().allowImaMonetization&&(p={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:C,embedUrl:g.ZHV(this.app.K().loaderUrl),eventType:p,youtubeHost:g.LJ(this.app.K().Vn)||""},p.embeddedPlayerMode=V.Sa,g.t1("embedsAdEvent",p))}; g.h.mutedAutoplay=function(p){var C=this.app.K(),V,N;((V=C.getWebPlayerContextConfig())==null?0:(N=V.embedsHostFlags)==null?0:N.allowMutedAutoplay)&&!C.V&&this.app.mutedAutoplay(p)}; g.h.preloadVideoById=function(p,C,V,N){var H,X;((H=this.app.K().getWebPlayerContextConfig())==null?0:(X=H.embedsHostFlags)==null?0:X.allowPreloadVideoById)&&p&&(p=Dg(p,C,V),this.app.preloadVideoByPlayerVars(p,N))}; g.h.s6_=function(p,C,V){this.preloadVideoById(p,C,V,1)}; g.h.setFauxFullscreen=function(p){g.Sz();this.app.ze(p?2:0)}; g.h.sIn=function(p){var C,V;((C=this.app.K().getWebPlayerContextConfig())==null?0:(V=C.embedsHostFlags)==null?0:V.allowSetFauxFullscreen)&&this.setFauxFullscreen(p)}; g.h.wakeUpControls=function(){var p=g.Zg(this);p&&p.Pm()};var RTe="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.m(yk,ux);g.h=yk.prototype;g.h.d_=function(p,C){this.state.S.subscribe(p,C)}; g.h.Dt$=function(p,C){this.state.S.unsubscribe(p,C)}; g.h.cueVideoByPlayerVars=function(p,C){this.app.cueVideoByPlayerVars(p,C)}; g.h.Hs=function(p,C){C=C===void 0?1:C;this.cueVideoByPlayerVars(qh(this,p),C)}; g.h.loadVideoByPlayerVars=function(p,C,V,N,H){this.app.loadVideoByPlayerVars(p,V,C,N,H)}; g.h.pD=function(p,C,V,N){V=V===void 0?1:V;this.loadVideoByPlayerVars(qh(this,p),C,V,N)}; g.h.preloadVideoByPlayerVars=function(p,C,V,N,H){V=V===void 0?NaN:V;this.app.preloadVideoByPlayerVars(p,C,V,N===void 0?"":N,H===void 0?"":H)}; g.h.ria=function(p,C,V,N){C=C===void 0?1:C;this.preloadVideoByPlayerVars(qh(this,p),C,V,N)}; g.h.GK=function(p,C,V){this.loadVideoById(p,C,V,1)}; g.h.h0=function(p,C,V){this.loadVideoByUrl(p,C,V,1)}; g.h.jj=function(p){return this.getPlayerState(p)}; g.h.Z0=function(p){p=p===void 0?1:p;var C=krv(this,p);if(p=g.O5(this.app,p)){p=p.getVideoData();C.backgroundable=p.backgroundable;C.eventId=p.eventId;C.cpn=p.clientPlaybackNonce;C.isLive=p.isLivePlayback;C.isWindowedLive=p.Wr;C.isManifestless=Ge(p);C.allowLiveDvr=p.allowLiveDvr;C.isListed=p.isListed;p.liveUtcStartSeconds!=null&&(C.liveUtcStartSeconds=p.liveUtcStartSeconds);p.O8()&&(C.isEncrypted=!0);if(p.V)for(var V=g.F(p.V.videoInfos),N=V.next();!N.done;N=V.next()){var H=void 0;if((H=N.value.video)== null?0:H.isHdr()){C.isHdr=!0;break}}var X,d;C.isMultiChannelAudio=!!((X=p.S)==null?0:(d=X.audio)==null?0:d.isMultiChannelAudio())}return C}; g.h.seekBy=function(p,C,V,N,H){fT(this)&&wJ(this.app,this.app.getCurrentTime()+p,C,V,H,N)}; g.h.yE_=function(p,C,V){this.seekBy(p,C,V,void 0,1)}; g.h.seekTo=function(p,C,V,N,H){fT(this)&&wJ(this.app,p,C,V,N,H)}; g.h.aQx=function(p,C,V,N){this.seekTo(p,C,V,N===void 0?1:N)}; g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()}; g.h.tf=function(p,C){return this.getCurrentTime(p===void 0?1:p,C)}; g.h.VD=function(){var p=this.app.getPresentingPlayerType(!0);p===2&&this.app.tE()&&(p=1);return p}; g.h.getDuration=function(p,C){if(this.VD()===3){var V;return((V=R$(this.app.Tk()).getProgressState())==null?void 0:V.duration)||0}return p?this.app.getDuration(p,C):this.app.getDuration(p)}; g.h.Hh=function(p,C){return this.getDuration(p===void 0?1:p,C)}; g.h.yN=function(p){return this.getVideoLoadedFraction(p)}; g.h.loadModule=function(p){if(p==="annotations_module"){var C=g.Ln(this.app.Tk());C&&!C.loaded&&C.load()}this.La(p)}; g.h.unloadModule=function(p){if(p==="annotations_module"){var C=g.Ln(this.app.Tk());C&&C.loaded&&C.unload()}this.qy(p)}; g.h.getOption=function(p,C,V,N){return(N=g.O5(this.app,N))&&N.getVideoData().isPrivate&&this.app.K().S?{}:this.setOption(p,C,V)}; g.h.QY=function(p,C,V){return this.getOption(p,C,V,1)}; g.h.getOptions=function(p){var C=this.app.Tk();switch(p){case "ad":var V,N;return((V=Px(C))==null?void 0:(N=V.getOptions)==null?void 0:N.call(V))||null;case "remote":var H,X;return((H=R$(C))==null?void 0:(X=H.getOptions)==null?void 0:X.call(H))||null;case "annotations_module":var d,a;return((d=g.Ln(C))==null?void 0:(a=d.getOptions)==null?void 0:a.call(d))||null;case "creatorendscreen":var E,l;return((E=gM(C))==null?void 0:(l=E.getOptions)==null?void 0:l.call(E))||null;case "unplugged":var t,c;return((t= g.wM(C))==null?void 0:(c=t.getOptions)==null?void 0:c.call(t))||null;case "kids":var T,M;return((T=XqH(C))==null?void 0:(M=T.getOptions)==null?void 0:M.call(T))||null}if(!p){p=this.zc();if(!p)return p;Px(C)&&p.push("ad");R$(C)&&p.push("remote");g.Ln(C)&&p.push("annotations_module");gM(C)&&p.push("creatorendscreen");g.wM(C)&&p.push("unplugged");XqH(C)&&p.push("kids");return p}return this.zc(p)}; g.h.setOption=function(p,C,V){if(!C)return null;var N=this.app.Tk();switch(p){case "ad":return(p=Px(N))&&p.DP&&p.DP(C,V);case "kids":return(p=XqH(N))&&p.DP(C,V);case "remote":return(p=R$(N))&&p.DP(C,V);case "unplugged":return(p=g.wM(N))&&p.DP(C,V);case "annotations_module":return(p=g.Ln(N))&&p.DP(C,V);case "creatorendscreen":return(p=gM(N))&&p.DP(C,V)}return this.mX(p,C,V)}; g.h.addCueRange=function(p,C,V,N,H){return VW9(this.app,p,C,V,N,H)}; g.h.getDebugText=function(p){return this.app.getDebugText(p)}; g.h.getCurrentBroadcastId=function(){return null}; g.h.handleGlobalKeyDown=function(p,C,V,N,H,X,d,a){C=C===void 0?!1:C;V=V===void 0?!1:V;N=N===void 0?!1:N;H=H===void 0?!1:H;var E=g.Zg(this);E&&E.handleGlobalKeyDown(p,C,V,N,H,X,d,a)}; g.h.handleGlobalKeyUp=function(p,C,V,N,H,X,d){C=C===void 0?!1:C;V=V===void 0?!1:V;N=N===void 0?!1:N;H=H===void 0?!1:H;var a=g.Zg(this);a&&a.handleGlobalKeyUp(p,C,V,N,H,X,d)}; g.h.setSizeStyle=function(p,C){this.app.setSizeStyle(p,C)}; g.h.showControls=function(){var p=g.Zg(this);p&&p.showControls(!0)}; g.h.hideControls=function(){var p=g.Zg(this);p&&p.showControls(!1)}; g.h.getVideoContentRect=function(p){p=this.app.dV().getVideoContentRect(p);return{left:p.left,top:p.top,width:p.width,height:p.height}}; g.h.toggleFullscreen=function(){function p(V){g.eG(V)} var C=this.app.K();if(C.externalFullscreen){if(!g.LI(C))return this.isFullscreen()?D3(window.document.documentElement):FW(window.document.documentElement).catch(p)}else if(g.Sz()||C.J)return this.isFullscreen()?D3(KK()):C.controlsType!=="3"&&g.Sz()?FW(this.app.dV().element).catch(p):(C=this.app.Nt().V$())?FW(C).catch(p):Promise.reject(Error("Media element missing"));this.v1("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}; g.h.isFullscreen=function(){return this.app.isFullscreen()}; g.h.jE=function(){return this.app.jE()}; g.h.cancelPlayback=function(){var p=Px(this.app.Tk());p&&p.created&&p.destroy();(p=g.O5(this.app))&&p.stopVideo();(p=this.app.Tk().Ji.get("endscreen"))&&p.nD()&&g.zC(this.app.ea,!0)}; g.h.getProgressState=function(p){if(this.VD()===3)return R$(this.app.Tk()).getProgressState();var C=this.app.getVideoData(),V=g.O5(this.app,p)||g.O5(this.app),N=V.getPlayerType();a:{var H=this.app.getVideoData();var X;if((X=H.progressBarStartPosition)==null?0:X.utcTimeMillis)if(H=Number(H.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(H)){H=I$(this,H,p);break a}H=0}var d;a:{X=this.app.getVideoData();if((d=X.progressBarEndPosition)==null?0:d.utcTimeMillis)if(d=Number(X.progressBarEndPosition.utcTimeMillis)/ 1E3,!isNaN(d)){d=I$(this,d,p);break a}d=0}X=this.getCurrentTime(p);p=this.getDuration(p);var a=this.app.Xt(N),E=this.app.isAtLiveHead(N),l=this.app.k6();var t=this.app;var c=uj(t,N);c?(c=ZN(t,c),t=kf(t,c.uI(),c)):t=0;c=LFs(this.app,N);V=V.yZ();var T=this.app.getVideoData().vA;N=!T||isNaN(T)?0:I$(this,T,N);return{airingStart:H,airingEnd:d,allowSeeking:this.app.CO(),clipEnd:C.clipEnd,clipStart:C.clipStart,current:X,displayedStart:-1,duration:p,ingestionTime:a,isAtLiveHead:E,loaded:l,seekableStart:t, seekableEnd:c,offset:V,viewerLivestreamJoinMediaTime:N}}; g.h.isInline=function(){return this.app.isInline()}; g.h.setInline=function(p){this.app.setInline(p)}; g.h.aT=function(){return g.O5(this.app,1).X0(!0)}; g.h.toggleSubtitles=function(){var p=g.RT(this.app.Tk());p&&p.cEV()}; g.h.getPlayerSize=function(){var p=this.app.dV().getPlayerSize();return{width:p.width,height:p.height}}; g.h.setCenterCrop=function(p){this.app.dV().setCenterCrop(p)}; g.h.getLoopVideo=function(){return this.app.getLoopVideo()}; g.h.setLoopVideo=function(p){this.app.setLoopVideo(p)}; var zTL="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), eTe="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var ik={},P59=(ik["api.invalidparam"]=2,ik.auth=150,ik["drm.auth"]=150,ik["heartbeat.net"]=150,ik["heartbeat.servererror"]=150,ik["heartbeat.stop"]=150,ik["html5.unsupportedads"]=5,ik["fmt.noneavailable"]=5,ik["fmt.decode"]=5,ik["fmt.unplayable"]=5,ik["html5.missingapi"]=5,ik["html5.unsupportedlive"]=5,ik["drm.unavailable"]=5,ik["mrm.blocked"]=151,ik["embedder.identity.denied"]=152,ik);g.m(g.bx,yk);g.h=g.bx.prototype;g.h.isExternalMethodAvailable=function(p,C){return this.state.D[p]?!0:!!(this.state.J[p]&&C&&No(C,IBc))}; g.h.getBandwidthEstimate=function(){return Mn(this.app.K().schedule)}; g.h.reportPlaybackIssue=function(p){p=p===void 0?"":p;var C=g.O5(this.app);C&&(p={gpu:(0,g.bF)(),d:p},C.handleError(new qD("feedback",p)))}; g.h.getInternalApi=function(){return Object.assign({},this.state.T)}; g.h.getInternalApiInterface=function(){return g.Ia(this.state.T)}; g.h.queueNextVideo=function(p,C,V,N,H){V=V===void 0?NaN:V;this.app.queueNextVideo(p,C,V,N===void 0?"":N,H===void 0?"":H)}; g.h.oD=function(p){p=this.app.getPlayerStateObject(p);return{isBuffering:g.r(p,1),isCued:p.isCued(),isDomPaused:g.r(p,1024),isEnded:g.r(p,2),isError:g.r(p,128),isOrWillBePlaying:p.isOrWillBePlaying(),isPaused:p.isPaused(),isPlaying:p.isPlaying(),isSeeking:g.r(p,16),isUiSeeking:g.r(p,32),isUnstarted:g.r(p,64)}}; g.h.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; g.h.startSeekCsiAction=function(){this.app.W6().S.T=(0,g.Ip)()}; g.h.DL=function(p,C,V){return this.getCurrentTime(p===void 0?1:p,C,V)}; g.h.seekToStreamTime=function(p,C,V,N){var H=this.app;C=C===void 0?!0:C;var X=g.O5(H,1),d=0;X&&X.getStreamTimeOffset()&&!X.yZ()&&(d=X.getStreamTimeOffset());wJ(H,p-d,C,V,1,N)}; g.h.getStreamTimeOffset=function(){var p=g.O5(this.app,1);return p?p.getStreamTimeOffset():0}; g.h.seekToLiveHead=function(p,C){var V=g.O5(this.app,1);V&&(V=V.getVideoData())&&V.isLivePlayback&&wJ(this.app,Infinity,p,C,1)}; g.h.requestSeekToWallTimeSeconds=function(p,C){var V=g.O5(this.app,1);V&&V.WC(p,C)}; g.h.T6e=function(p,C,V,N,H){this.seekTo(p,C,V,N===void 0?1:N,H)}; g.h.Z7a=function(p,C,V,N){this.seekBy(p,C,V,N,1)}; g.h.setVolume=function(p,C){this.zx(p,C===void 0?!0:C)}; g.h.mute=function(p){this.Bu(p===void 0?!0:p)}; g.h.unMute=function(p){this.QF(p===void 0?!0:p)}; g.h.syncVolume=function(){var p=FFs(this.app);AX(this.app,{volume:p.volume,muted:p.muted},!1)}; g.h.getAvailableQualityLabels=function(){var p=g.O5(this.app,1);return p?g.AU(p.TY(),function(C){return C.qualityLabel}):[]}; g.h.channelSubscribed=function(){this.Jk("SUBSCRIBE",this.app.DE().eI)}; g.h.channelUnsubscribed=function(){this.Jk("UNSUBSCRIBE",this.app.DE().eI)}; g.h.setScreenLayer=function(p){this.app.setScreenLayer(p)}; g.h.getCurrentPlaylistSequence=function(){return g.O5(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.h.getPlaylistSequenceForTime=function(p){return g.O5(this.app).getPlaylistSequenceForTime(p)}; g.h.shouldSendVisibilityState=function(){return!0}; g.h.confirmYpcRental=function(){var p=g.O5(this.app,1);p&&p.hp("ypc_clickwrap")}; g.h.setHomeGroupInfo=function(p){this.app.K().homeGroupInfo=p}; g.h.setConnectedRemoteApps=function(p){this.app.K().Gp=p}; g.h.setLivingRoomAppMode=function(p){this.app.K().livingRoomAppMode=hm("LIVING_ROOM_APP_MODE_UNSPECIFIED",p,G$L)}; g.h.setEnablePrivacyFilter=function(p){this.app.K().enablePrivacyFilter=p===void 0?!1:p}; g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.h.addUtcCueRange=function(p,C,V,N,H){return NDy(this.app,p,C,V,N,H)}; g.h.ZL=function(p){p=p===void 0?1:p;var C=this.Z0(p);if(p=g.O5(this.app,p)){p=p.getVideoData();C.hasProgressBarBoundaries=p.hasProgressBarBoundaries();C.isPremiere=p.isPremiere;C.itct=p.Sa;C.playerResponseCpn=p.playerResponseCpn;var V;var N=p.hasProgressBarBoundaries()&&((V=p.progressBarStartPosition)==null?0:V.utcTimeMillis)?h9(p.progressBarStartPosition.utcTimeMillis):null;C.progressBarStartPositionUtcTimeMillis=N;var H;V=p.hasProgressBarBoundaries()&&((H=p.progressBarEndPosition)==null?0:H.utcTimeMillis)? h9(p.progressBarEndPosition.utcTimeMillis):null;C.progressBarEndPositionUtcTimeMillis=V;C.ypcOriginalItct=p.V3;C.ypcPreview=p.ypcPreview;C.paidContentOverlayText=Bre(p);C.paidContentOverlayDurationMs=Gva(p);p.T&&sc(p.T)&&(C.usingLocalMedia="true");C.transitionEndpointAtEndOfStream=p.transitionEndpointAtEndOfStream}return C}; g.h.getAdState=function(){return this.app.getAdState()}; g.h.isNotServable=function(p){if(p!==this.app.config.args.video_id)return!1;var C=(p=(p=g.O5(this.app,1))?p.getPlayerState():null)?p.UE:null;return!!(p&&C&&g.r(p,128)&&w1y(C.errorCode)===5)}; g.h.supportsGaplessAudio=function(){return this.app.K().supportsGaplessAudio()}; g.h.supportsGaplessShorts=function(){return this.app.K().supportsGaplessShorts()}; g.h.enqueueVideoByPlayerVars=function(p,C,V,N){V=V===void 0?Infinity:V;this.app.enqueueVideoByPlayerVars(p,C,V,N===void 0?"":N)}; g.h.clearQueue=function(){this.app.clearQueue()}; g.h.Cx=function(){return g.Zg(this)}; g.h.sendAbandonmentPing=function(){var p=g.O5(this.app);p&&p.sendAbandonmentPing()}; g.h.setAutonavState=function(p,C){C=C===void 0?!1:C;if(this.G("web_player_autonav_use_server_provided_state")&&!C&&(C=this.app.DE(),C==null?0:jK(C))){if(this.G("web_player_autonav_server_provided_state_pause_killswitch"))return;if(p===3)C.autonavState!==3&&(C.r3=C.autonavState);else if(C.r3!==void 0)p=C.r3,C.r3=void 0;else return}aPQ(this.app,p)}; g.h.setAutonav=function(p,C){this.setAutonavState(p?2:1,C===void 0?!1:C)}; g.h.setLoopRange=function(p){this.app.setLoopRange(p)}; g.h.getLoopRange=function(){return this.app.getLoopRange()}; g.h.hasSupportedAudio51Tracks=function(){var p;return!((p=g.O5(this.app,1))==null||!p.hasSupportedAudio51Tracks())}; g.h.setUserAudio51Preference=function(p,C){C=C===void 0?!1:C;var V=g.O5(this.app,1);V&&V.setUserAudio51Preference(p,C)}; g.h.getUserAudio51Preference=function(){var p,C;return(C=(p=g.O5(this.app,1))==null?void 0:p.getUserAudio51Preference())!=null?C:1}; g.h.setProximaLatencyPreference=function(p){var C=g.O5(this.app,1);C&&C.setProximaLatencyPreference(p)}; g.h.getProximaLatencyPreference=function(){var p=g.O5(this.app,1);return p?p.getProximaLatencyPreference():0}; g.h.isProximaLatencyEligible=function(){var p=g.O5(this.app,1);return p?p.isProximaLatencyEligible():!1}; g.h.getAppState=function(){return this.app.getAppState()}; g.h.updateLastActiveTime=function(){yq()}; g.h.setBlackout=function(p){this.app.setBlackout(p)}; g.h.setUserEngagement=function(p){this.app.K().BI!==p&&(this.app.K().BI=p,(p=g.O5(this.app,1))&&uY(p))}; g.h.updateSubtitlesUserSettings=function(p,C){C=C===void 0?!0:C;g.RT(this.app.Tk()).bS(p,C)}; g.h.getCaptionWindowContainerId=function(){var p=g.RT(this.app.Tk());return p?p.getCaptionWindowContainerId():""}; g.h.toggleSubtitlesOn=function(){var p=g.RT(this.app.Tk());p&&p.Dn()}; g.h.isSubtitlesOn=function(){var p=g.RT(this.app.Tk());return p?p.isSubtitlesOn():!1}; g.h.getPlayerResponse=function(p){return(p=g.O5(this.app,p))?p.getVideoData().getPlayerResponse():null}; g.h.w0=function(){return this.getPlayerResponse(1)}; g.h.getEmbeddedPlayerResponse=function(){var p=g.O5(this.app,1);return p?p.getVideoData().getEmbeddedPlayerResponse():null}; g.h.getWatchNextResponse=function(p){return(p=g.O5(this.app,p))?p.getVideoData().getWatchNextResponse():null}; g.h.C_=function(){return this.getWatchNextResponse(1)}; g.h.getHeartbeatResponse=function(p){return(p=g.O5(this.app,p))?p.getVideoData().getHeartbeatResponse():null}; g.h.lA=function(){return this.getHeartbeatResponse(1)}; g.h.getStoryboardFrame=function(p,C){var V=this.app.C$();if(!V)return null;C=V.levels[C];return C?(p=g.II(C,p))?{column:p.column,columns:p.columns,height:p.Fr,row:p.row,rows:p.rows,url:p.url,width:p.A_}:null:null}; g.h.getStoryboardFrameIndex=function(p,C){var V=this.app.C$();if(!V)return-1;C=V.levels[C];if(!C)return-1;p-=this.yZ();return C.U7(p)}; g.h.getStoryboardLevel=function(p){var C=this.app.C$();return C?(C=C.levels[p])?{index:p,intervalMs:C.T,maxFrameIndex:C.BA(),minFrameIndex:C.g$()}:null:null}; g.h.getNumberOfStoryboardLevels=function(){var p=this.app.C$();return p?p.levels.length:0}; g.h.hf=function(){return this.getAudioTrack(1)}; g.h.getAudioTrack=function(p){return(p=g.O5(this.app,p))?p.getAudioTrack():this.app.getVideoData().Uv}; g.h.setAudioTrack=function(p,C,V){this.VD()===3&&R$(this.app.Tk()).z4("control_set_audio_track",p);if(V=g.O5(this.app,V))if(V.fS()||g.r(V.playerState,128))p=!1;else{var N,H=!((N=V.videoData.V)==null||!N.T);N=H&&C?V.getCurrentTime()-V.yZ():NaN;if(V.yn.experiments.OY("html5_record_audio_format_intent")){var X=V.Pc();if(X.qoe){X=X.qoe;var d=[p.K4.id,isNaN(N)?"m":"t"];g.OZ(X,g.Zn(X.provider),"afi",d)}}if(H)C&&(H=dAe(V.EZ),V.k_("aswh",{id:p.id,xtags:p.xtags,bh:H.toFixed(3)})),V.nS.setAudioTrack(p,N,C); else if(pze(V)){b:{C=V.mediaElement.audioTracks();for(H=0;H<C.length;++H)if(N=C[H],N.label===p.K4.getName()){if(N.enabled){C=!1;break b}C=N.enabled=!0;break b}C=void 0}C&&V.k_("hlsaudio",{id:p.id})}else{b:if(C=V.videoData,C.S&&!jb(C.S)||p===C.VP||!C.FO||C.FO.length<=0)C=!1;else{H=g.F(C.FO);for(N=H.next();!N.done;N=H.next()){N=N.value;if(!(N instanceof H7)){C=!1;break b}X=p.K4.getId();N.C&&(lYe(N.C,X),N.sR=null)}C.VP=p;C=!0}C&&MT(V)&&(V.publish("internalaudioformatchange",V.videoData,!0),V.k_("hlsaudio", {id:p.id}))}p=!0}else p=!1;return p}; g.h.AEo=function(p,C){return this.setAudioTrack(p,C,1)}; g.h.pu=function(){return this.getAvailableAudioTracks(1)}; g.h.getAvailableAudioTracks=function(p){return g.O5(this.app,p).getAvailableAudioTracks()}; g.h.getMaxPlaybackQuality=function(){var p=g.O5(this.app,1);return p&&p.getVideoData().C?XP(p.QL?WNa(p.L$,p.QL,p.F_()):xB):"unknown"}; g.h.getUserPlaybackQualityPreference=function(){var p=g.O5(this.app,1);return p?p.getUserPlaybackQualityPreference():"auto"}; g.h.getSubtitlesUserSettings=function(){var p=g.RT(this.app.Tk());return p?p.qd():null}; g.h.resetSubtitlesUserSettings=function(){g.RT(this.app.Tk()).Jir()}; g.h.setMinimized=function(p){this.app.setMinimized(p)}; g.h.setOverlayVisibility=function(p){this.publish("overlayvisibilitychange",p)}; g.h.setInlinePreview=function(p){this.app.setInlinePreview(p)}; g.h.setSqueezeback=function(p){this.app.setSqueezeback(p)}; g.h.setGlobalCrop=function(p){this.app.dV().setGlobalCrop(p)}; g.h.setAppFullscreen=function(p){this.app.ze(p?4:0)}; g.h.Uu=function(){return this.app.Uu()}; g.h.getVisibilityState=function(){return this.Uu().getVisibilityState(this.gi(),this.jE()||g.fI(this.app.K()),this.isMinimized(),this.isInline(),this.app.l0(),this.app.vE(),this.app.Gq(),this.app.VV())}; g.h.isMutedByMutedAutoplay=function(){return this.app.wZ}; g.h.isMutedByEmbedsMutedAutoplay=function(){return U5(this.app)}; g.h.setInternalSize=function(p,C){this.app.dV().setInternalSize(new g.KG(p,C))}; g.h.yZ=function(){var p=g.O5(this.app);return p?p.yZ():0}; g.h.isMinimized=function(){return this.app.isMinimized()}; g.h.l0=function(){return this.app.l0()}; g.h.gi=function(){var p=g.O5(this.app);return!!p&&p.gi()}; g.h.setSafetyMode=function(p){this.app.K().enableSafetyMode=p}; g.h.canPlayType=function(p){return this.app.canPlayType(p)}; g.h.updatePlaylist=function(p){if(p){var C=this.getPlaylistId(),V=!1;C&&C!==p.list&&(V=!0);p.external_list!==void 0&&(this.app.Cq=iO(!1,p.external_list));var N=p.video;(C=this.app.getPlaylist())&&!V?this.isFullscreen()&&((V=N[C.index])&&V.encrypted_id!==g.OC(C).videoId||(p.index=C.index)):yw(this.app,{list:p.list,index:p.index,playlist_length:N.length});uR1(this.app.getPlaylist(),p);this.Ba("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.h.updateVideoData=function(p,C){var V=g.O5(this.app,1);V&&g.ew(V.getVideoData(),p,C)}; g.h.updateEnvironmentData=function(p){og(this.app.K(),p,!1)}; g.h.CWk=function(p){this.app.sendVideoStatsEngageEvent(p,1)}; g.h.productsInVideoVisibilityUpdated=function(p){this.publish("changeProductsInVideoVisibility",p)}; g.h.isAtLiveHead=function(p,C){return this.app.isAtLiveHead(p,C===void 0?!0:C)}; g.h.getVideoAspectRatio=function(){return this.app.dV().getVideoAspectRatio()}; g.h.getPreferredQuality=function(){var p=g.O5(this.app);return p?p.getPreferredQuality():"unknown"}; g.h.getPlaybackQualityLabel=function(p){if(p=g.O5(this.app,p)){var C,V;return((V=(C=p.getVideoData().C)==null?void 0:C.video)==null?void 0:V.qualityLabel)||""}return""}; g.h.setPlaybackQualityRange=function(p,C,V,N){(N=g.O5(this.app,N))&&g.rrv(N,g.jo(p,C||p,!0,"m"),!0,V)}; g.h.Elk=function(p,C,V){this.setPlaybackQualityRange(p,C,V,1)}; g.h.onAdUxClicked=function(p,C){this.publish("aduxclicked",p,C)}; g.h.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.h.dispatchReduxAction=function(p){g.Xx.dispatch(p)}; g.h.highlightSettingsMenuItem=function(p){this.publish("highlightSettingsMenu",p)}; g.h.openSettingsMenuItem=function(p){this.publish("openSettingsMenuItem",p)}; g.h.w_=function(p,C){this.state.C.subscribe(p,C)}; g.h.Rb_=function(p,C){this.state.C.unsubscribe(p,C)}; g.h.e_=function(p,C){this.cueVideoByPlayerVars(p,C===void 0?1:C)}; g.h.HU=function(p,C,V,N){this.loadVideoByPlayerVars(p,C,V===void 0?1:V,N)}; g.h.Id_=function(p,C,V,N){this.preloadVideoByPlayerVars(p,C===void 0?1:C,V,N)}; g.h.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.h.GW=function(){return g.Zg(this).GW()}; g.h.OE=function(){return g.Zg(this).OE()}; g.h.Em=function(){return g.Zg(this).Em()}; g.h.aI=function(){return this.Cx().aI()}; g.h.wb=function(){var p=g.US.apply(0,arguments),C;(C=this.aI()).wb.apply(C,g.K(p))}; g.h.B6=function(){this.aI().B6()}; g.h.Mk=function(){this.aI().Mk()}; g.h.l8=function(){this.aI().hide()}; g.h.eG=function(p,C,V,N,H,X,d,a){this.aI().eG(p,C,V,N,H,X,d,a)}; g.h.Y7=function(p,C){this.aI().Y7(p,C)}; g.h.Lr=function(p,C,V,N,H){this.Cx().Lr(p,C,V,N,H)}; g.h.e3=function(p){this.aI().setEnabled(p)}; g.h.ju=function(p){this.Cx().ju(p)}; g.h.Nu=function(p,C){this.Cx().Nu(p,C)}; g.h.PW=function(p,C){this.Cx().PW(p,C)}; g.h.A6=function(){this.Cx().A6()}; g.h.Ek=function(p,C){this.Cx().Ek(p,C)}; g.h.tv=CY(4);g.h.Ur=CY(6);g.h.Cw=CY(9);g.h.nw=CY(12);g.h.renderChapterSeekingAnimation=function(p,C,V){this.Cx().renderChapterSeekingAnimation(p,C,V)}; g.h.wc=function(){this.Cx().wc()}; g.h.getWebPlayerContextConfig=function(){return this.app.K().getWebPlayerContextConfig()}; g.h.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")}; g.h.Ib=function(){var p=g.O5(this.app);return p?p.Ib():""};g.m(g.xj,g.bx);g.h=g.xj.prototype;g.h.Ce=function(p,C,V,N,H,X,d){return this.app.Ce(p,C,V,N,H,X,d)}; g.h.oF=function(){return this.app.oF()}; g.h.ZO=CY(14);g.h.Tk=function(){return this.app.Tk()}; g.h.B1=function(){var p=this.Tk().Ji.get("endscreen");return!!p&&p.B1()}; g.h.getRootNode=function(){return this.dV().element}; g.h.K=function(){return this.app.K()}; g.h.dH=CY(16);g.h.xN=function(p){return this.app.xN(p)}; g.h.TA=function(){var p;return((p=g.Zg(this))==null?void 0:p.TA())||null}; g.h.getPlayerStateObject=function(p){return this.app.getPlayerStateObject(p)}; g.h.dV=function(){return this.app.dV()}; g.h.getPlaylist=function(){return this.app.getPlaylist()}; g.h.getVideoData=function(p){var C=g.O5(this.app,p);if(!C)return null;C=C.getVideoData();var V;if(C.enableServerStitchedDai&&p===2||g.pf(C)&&p!==1)a:{var N=this.app;Yf(N,"gssvd");C=N.getVideoData();if(N.PV){p=N.PV;N=N.getCurrentTime();if(p.bX)var H=void 0;else{var X=void 0;p.vc&&(X=p.V.get(p.vc));if(!X){X=EwV(p,N*1E3);var d=(H=X)==null?void 0:H.cpn;p.vc?d&&p.vc!==d&&p.Ta.k_("sdai",{cpcnm:d+"_"+p.vc,cmt:N.toFixed(3)}):p.Ta.k_("sdai",{cpcna:d,cmt:N.toFixed(3)})}H=(V=X)==null?void 0:V.videoData}C=H|| C}else if(N.Ze&&N.n4){V=N.Ze.getVideoData(p);break a}V=C}else V=C;return V}; g.h.aj=function(){var p;return((p=DN(this.app))==null?void 0:p.aj())||null}; g.h.C$=function(p){return this.app.C$(p)}; g.h.VV=function(){return this.app.VV()}; g.h.isHdr=function(){var p=g.O5(this.app);return p?p.isHdr():!1}; g.h.WF=function(){return this.app.WF()}; g.h.isEmbedsShortsMode=function(){var p=g.Zg(this),C=this.getVideoData();p=p?p.gM:this.getPlayerSize();var V=!!this.getPlaylist();return!(!C||!C.isEmbedsShortsMode(new g.KG(p.width,p.height),V))}; g.h.K6=function(p){this.app.K6(p)}; g.h.a_=function(p,C,V,N,H){this.app.Qf(p,C,V,N,H)}; g.h.A2=function(p,C){this.app.A2(p,C)}; g.h.playVideo=function(p,C){try{if(this.getPresentingPlayerType()===3){R$(this.app.Tk()).z4("control_play");return}if(!p&&this.getPresentingPlayerType()===2){var V=Px(this.app.Tk());if(V&&W3v(V))return}}catch(N){g.nm(N)}this.app.playVideo(p,C)}; g.h.stopVideo=function(p){g.O5(this.app,p).stopVideo()}; g.h.Q6=function(p){g.O5(this.app,p).Q6()}; g.h.addEventListener=function(p,C){this.state.V.subscribe(p,C)}; g.h.removeEventListener=function(p,C){this.state.V.unsubscribe(p,C)}; g.h.Fk=function(p){this.app.Fk(p)}; g.h.setPlaybackQuality=function(p,C){this.setPlaybackQualityRange(p,p,C)}; g.h.TY=function(){var p={},C=g.O5(this.app).TY();C=g.F(C);for(var V=C.next();!V.done;V=C.next())V=V.value,p[V.quality]=V;return p}; g.h.dg=function(){return g.O5(this.app).dg()}; g.h.kR=CY(20);g.h.MV=function(p){this.app.MV(p);p&&aPQ(this.app,p)}; g.h.getVideoUrl=function(p,C,V,N){var H=this.getPresentingPlayerType(),X=H===2;if(N&&X||H===3)X=!1,H=1;N=this.getVideoData(H);if(!N)return"";var d;p||N.isLivePlayback||(d=Math.floor(this.getCurrentTime(H)));p=X?void 0:this.getPlaylistId()||void 0;C&&p==="WL"&&(p=void 0);return this.app.getVideoUrl(N.videoId,p,d,C,V)}; g.h.bP=CY(22);g.h.t9=CY(26);g.h.J9=function(p){var C=g.O5(this.app);C&&C.J9(p)}; g.h.Qo=CY(30);g.h.eO=CY(34);g.h.RC=function(p,C){this.Tk().RC(p,C)}; g.h.dR=function(){var p=g.Ln(this.Tk());return!!p&&p.dR()}; g.h.iy=function(){var p=g.Ln(this.Tk());return!!p&&p.iy()}; g.h.Dg=function(p,C,V){var N=g.Ln(this.Tk());N&&N.Dg(p,C,V)}; g.h.Y3=CY(35);g.h.kQ=function(){var p=g.O5(this.app);p&&p.kQ()}; g.h.VF=function(p){this.Ba("onVideoAreaChange");this.Ba(p?"onShowControls":"onHideControls")}; g.h.ai=function(p,C){var V=g.Zg(this);if(V)return V.ai(p,C);p=this.app.dV().KO();return new g.vf(0,0,p.width,p.height)}; g.h.Db=function(){var p=this.Tk().Ji.get("heartbeat");return!!p&&p.Db()}; g.h.CO=function(){var p=this.K();if(p.Ga||p.disableSeek)return!1;var C=g.O5(this.app);if(!C)return!1;var V=C.getVideoData();if(!V.GN()||g.ud(V)||this.getPresentingPlayerType()===2&&!this.app.tE()||V.VL()&&this.getPresentingPlayerType(!0)===2||C.iX()&&this.getPresentingPlayerType()!==3)return!1;p=g.Ig(p);return g.cw(p)&&!V.Kp||U5(this.app)?!1:!0}; g.h.Po=function(){var p;return((p=g.O5(this.app))==null?void 0:p.Po)||!1}; g.h.isLifaAdPlaying=function(){var p,C=(p=this.getVideoData())==null?void 0:p.VL();return this.getPresentingPlayerType(C)===2}; g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.h.fT=function(){var p=g.O5(this.app);p&&p.fT()}; g.h.sendVideoStatsEngageEvent=function(p,C,V){this.app.sendVideoStatsEngageEvent(p,V,C)}; g.h.d7=function(p,C,V){this.app.Qs(p,C,V)}; g.h.p$=function(p,C){this.app.bK(p,C)}; g.h.qt=function(p,C){ghv(this.app,p,C)}; g.h.Ht=function(p){var C=g.O5(this.app);return C?C.ZZ.Ht(p):!1}; g.h.bz=function(p){return this.app.bz(p)}; g.h.hp=function(p,C){(C=g.O5(this.app,C))&&C.hp(p)}; g.h.iX=function(){var p=g.O5(this.app);return p?p.iX():!0}; g.h.Ar=function(){var p=this.getVideoData();return!!p&&(p.Ar()||!!p.hlsFormats||!!p.RN)}; g.h.getPlaybackRate=function(){return g.O5(this.app,1).getPlaybackRate()}; g.h.setPlaybackRate=function(p,C){this.app.setPlaybackRate(p,C)}; g.h.Nt=function(){return this.app.Nt()}; g.h.W6=function(){return this.app.W6()}; g.h.Ix=function(p){return this.app.Ix(p)}; g.h.createClientVe=function(p,C,V,N){this.K().KS&&this.app.fV.createClientVe(p,C,V,N===void 0?!1:N)}; g.h.createServerVe=function(p,C,V){this.K().KS&&this.app.fV.createServerVe(p,C,V===void 0?!1:V)}; g.h.setTrackingParams=function(p,C){this.K().KS&&this.app.fV.setTrackingParams(p,C)}; g.h.logClick=function(p,C){this.K().KS&&(this.app.fV.click(p,C),this.publish("veClickLogged",p))}; g.h.logVisibility=function(p,C,V){this.K().KS&&this.app.fV.jb(p,C,V)}; g.h.hasVe=function(p){return this.K().KS?this.app.fV.hasVe(p):!1}; g.h.destroyVe=function(p){this.K().KS&&this.app.fV.destroyVe(p)}; g.h.L1=function(){return g.O5(this.app)}; g.h.getPresentingPlayerType=function(p){return this.app.getPresentingPlayerType(p)}; g.h.Kr=function(){this.app.Kr()}; g.h.WW=function(p,C){return this.app.WW(p,C)}; g.h.Lt=function(p){this.app.Lt(p)}; g.h.tS=function(){this.app.tS()}; g.h.iI=function(){return this.app.iI()}; g.h.addPlayerResponseForAssociation=function(p){this.app.addPlayerResponseForAssociation(p)}; g.h.finishSegmentByCpn=function(p,C,V){return this.app.finishSegmentByCpn(p,C,V)}; g.h.JY=function(p,C,V,N,H,X,d){return this.app.JY(p,C,V,N,H,X,d)}; g.h.hA=function(p,C,V,N,H,X,d){return this.app.hA(p,C,V,N,H,X,d)}; g.h.iU=function(){return this.app.iU()}; g.h.TE=function(p){this.app.TE(p)}; g.h.Th=function(p,C){C=C===void 0?Infinity:C;this.app.Th(p===void 0?-1:p,C)}; g.h.wr=function(p){var C;(C=g.RT(this.Tk()))==null||C.wr(p)}; g.h.al=function(p,C,V){this.app.al(p,C,V)}; g.h.uX=function(){return this.app.uX()}; g.h.KC=function(p,C,V){this.app.KC(p,C,V===void 0?0:V)}; g.h.SS=function(){return this.app.SS()}; g.h.tE=function(){return this.app.tE()}; g.h.Kv=function(p,C,V){return this.app.Kv(p,C,V)}; g.h.k_=function(p,C,V,N){V=V===void 0?!1:V;var H;(H=g.O5(this.app,N))==null||H.k_(p,C,V)}; g.h.xo=function(p,C){this.publish("aduxmouseover",p,C)}; g.h.A5=function(p,C){this.publish("aduxmouseout",p,C)}; g.h.J5=function(p,C){this.publish("muteadaccepted",p,C)}; g.h.WE=function(){return this.app.dV().WE()}; g.h.Gz=function(p){this.app.dV().Gz(p)}; g.h.s_=function(p){return p?this.app.K2():(p=g.O5(this.app))?p.s_():!1}; g.h.vN=function(p){this.app.vN(p)}; g.h.v8=function(){g.O5(this.app,1).v8()}; g.h.y4=function(){this.app.y4()}; g.h.getGetAdBreakContext=function(){var p=g.O5(this.app,1);return(p==null?void 0:p.getVideoData().getGetAdBreakContext(p.getCurrentTime(),p.yZ()))||void 0}; g.h.Dw=function(p,C){var V;(V=DN(this.app))==null||V.Dw(p,C)};var Qk;g.m(Wk,Pw);Wk.prototype.wg=function(p,C){p=Pw.prototype.wg.call(this,p,C);return Object.assign({},p,this.requestHeaders)};g.m(g.GC,g.Sp);g.h=g.GC.prototype;g.h.show=function(){var p=this.rh();g.Sp.prototype.show.call(this);this.Vn&&(this.J.U(window,"blur",this.f4),this.J.U(pc(this),"click",this.Ew));p||this.publish("show",!0)}; g.h.hide=function(){var p=this.rh();g.Sp.prototype.hide.call(this);Q2Q(this);p&&this.publish("show",!1)}; g.h.er=function(p,C){this.C=p;this.a$.show();C?(this.Z||(this.Z=this.J.U(this.N,"appresize",this.qU)),this.qU()):this.Z&&(this.J.rY(this.Z),this.Z=void 0)}; g.h.zj=function(){this.C&&this.element&&(this.C.getAttribute("aria-haspopup"),this.C.setAttribute("aria-expanded","true"),this.focus())}; g.h.qU=function(){var p=g.Zg(this.N);this.C&&p.Lr(this.element,this.C)}; g.h.f4=function(){var p=this.rh();Q2Q(this);this.a$.hide();p&&this.publish("show",!1)}; g.h.Ew=function(p){var C=yc(p);C&&(g.t2(this.element,C)||this.C&&g.t2(this.C,C)||!g.o0(p))||this.f4()}; g.h.rh=function(){return this.C4&&this.a$.state!==4};g.m(jm,g.GC);jm.prototype.er=function(){g.GC.prototype.er.call(this);this.dialog.focus()};g.m(g.Nl,g.Sp);g.Nl.prototype.setIcon=function(p){this.updateValue("icon",p)}; g.Nl.prototype.updateValue=function(p,C){g.Sp.prototype.updateValue.call(this,p,C);this.publish("size-change")};g.FB={Gd:15,iM_:14,FY$:13,v3:12,H3:11,Do:10,ON:9,HM:8,AUDIO:7,SUBTITLES:6,Np:5,SLEEP_TIMER:4,fX:3,kSn:2,REMOTE:1,TxS:0,15:"STABLE_VOLUME",14:"REMOTE_SELECT",13:"SIZE",12:"MINIPLAYER",11:"THREED",10:"AUTONAV",9:"CINEMATIC",8:"ANNOTATIONS",7:"AUDIO",6:"SUBTITLES",5:"SPEED",4:"SLEEP_TIMER",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.m(XB,g.Nl);XB.prototype.RH=function(p){this.C&&this.N.logVisibility(this.element,this.T&&p)}; XB.prototype.S=function(){var p,C,V=(p=this.N.getVideoData())==null?void 0:(C=p.accountLinkingConfig)==null?void 0:C.linked;if(V&&!this.T){var N;p=(N=this.N.getVideoData())==null?void 0:N.accountLinkingConfig;this.setIcon(qy());var H;g.V7(this,dS(p==null?void 0:(H=p.menuData)==null?void 0:H.connectedMenuLabel));var X,d,a;this.V=new jm(this.N,dS(p==null?void 0:(X=p.menuData)==null?void 0:X.connectedDialogTitle),dS(p==null?void 0:(d=p.menuData)==null?void 0:d.connectedDialogMessage),dS(p==null?void 0: (a=p.menuData)==null?void 0:a.confirmButtonText));g.R(this,this.V);var E;N=(p==null?void 0:(E=p.menuData)==null?void 0:E.trackingParams)||null;(this.C=!!N)&&this.N.setTrackingParams(this.element,N);this.xM.zB(this);this.T=!0}else!V&&this.T&&(this.xM.u8(this),this.T=!1)}; XB.prototype.onClick=function(){this.C&&this.N.logClick(this.element);this.xM.f4();this.V&&this.V.er()};g.m(iT,g.Y);iT.prototype.G=function(p){return this.api.G(p)};g.m(hh,iT);hh.prototype.onVideoDataChange=function(p){if(!p.accountLinkingConfig){var C,V=(C=p.getPlayerResponse())==null?void 0:C.accountLinkingConfig;p.accountLinkingConfig=V}var N;if(C=(N=p.accountLinkingConfig)==null?void 0:N.alsParam)p.qF=C}; hh.prototype.setAccountLinkState=function(p){this.api.getVideoData().qF=p;this.api.kQ()}; hh.prototype.updateAccountLinkingConfig=function(p){var C=this.api.getVideoData(),V=C.accountLinkingConfig;V&&(V.linked=p);this.api.publish("videodatachange","dataupdated",C,this.api.getPresentingPlayerType())};g.m(a8,iT); a8.prototype.C=function(p){var C=p.getId(),V=this.api.getVideoData(1),N=!this.api.isInline();if(!V.inlineMetricEnabled&&!this.api.G("enable_player_logging_lr_home_infeed_ads")||N){if(C==="part2viewed"){if(V.FX&&g.BC(V.FX),V.eD&&EO(this,V.eD),V.Hn)for(var H={CPN:this.api.getVideoData().clientPlaybackNonce},X=g.F(V.Hn),d=X.next();!d.done;d=X.next())EO(this,g.nX(d.value,H))}else C==="conversionview"?this.api.v8():C==="engagedview"&&V.uM&&(H={CPN:this.api.getVideoData().clientPlaybackNonce},g.BC(g.nX(V.uM, H)));V.iB&&(H=V.iB,X=p.getId(),H=aK(H,{label:X}),g.BC(H));switch(C){case "videoplaytime25":V.D6&&EO(this,V.D6);V.Za&&lT(this,V.Za);V.q0&&g.BC(V.q0);break;case "videoplaytime50":V.BL&&EO(this,V.BL);V.T2&&lT(this,V.T2);V.rT&&g.BC(V.rT);break;case "videoplaytime75":V.tC&&EO(this,V.tC);V.nj&&lT(this,V.nj);V.kc&&g.BC(V.kc);break;case "videoplaytime100":V.YP&&EO(this,V.YP),V.qq&&lT(this,V.qq),V.Jh&&g.BC(V.Jh)}(H=this.api.getVideoData().yR)&&Cwa(this,H,p.getId())&&Cwa(this,H,p.getId()+"gaia")}if(V.inlineMetricEnabled&& !N)switch(C){case "videoplaybackstart":var a,E=(a=V.Zw)==null?void 0:a.T;E&&EO(this,E);break;case "videoplayback2s":(a=(E=V.Zw)==null?void 0:E.V)&&EO(this,a);break;case "videoplayback10s":var l;(a=(l=V.Zw)==null?void 0:l.C)&&EO(this,a)}this.api.p$([p],1)};g.m(V5e,iT);g.m(th,g.L);g.h=th.prototype; g.h.wu=function(){var p;if(p=this.N.getPresentingPlayerType()!==3&&g.gb(this.N)&&this.N.dV().getPlayerSize().width>=400)if(p=this.DE(),this.N.K().G("client_respect_autoplay_switch_button_renderer"))p=!!p.autoplaySwitchButtonRenderer;else{var C,V,N,H;p=!!((C=p.getWatchNextResponse())==null?0:(V=C.contents)==null?0:(N=V.twoColumnWatchNextResults)==null?0:(H=N.autoplay)==null?0:H.autoplay)!==!1}if(p)this.T||(this.T=!0,this.jb(this.T),this.N.K().G("web_player_autonav_toggle_always_listen")||Nz1(this), C=this.DE(),this.oU(C.autonavState),this.N.logVisibility(this.element,this.T));else if(this.T=!1,this.jb(this.T),!this.N.K().G("web_player_autonav_toggle_always_listen"))for(this.N.K().G("web_player_autonav_toggle_always_listen"),C=g.F(this.C),V=C.next();!V.done;V=C.next())this.rY(V.value)}; g.h.oU=function(p){XRy(this)?this.isChecked=p!==1:((p=p!==1)||(g.$l(),p=g.Zr("web_autonav_allow_off_by_default")&&!g.LK(0,141)&&g.pO("AUTONAV_OFF_BY_DEFAULT")?!1:!g.LK(0,140)),this.isChecked=p);HpQ(this)}; g.h.onClick=function(){this.isChecked=!this.isChecked;this.N.MV(this.isChecked?2:1);HpQ(this);if(XRy(this)){var p=this.DE().autoplaySwitchButtonRenderer;this.isChecked&&(p==null?0:p.onEnabledCommand)?this.N.Jk("innertubeCommand",p.onEnabledCommand):!this.isChecked&&(p==null?0:p.onDisabledCommand)&&this.N.Jk("innertubeCommand",p.onDisabledCommand)}this.N.logClick(this.element)}; g.h.getValue=function(){return this.isChecked}; g.h.DE=function(){return this.N.getVideoData(1)};g.m(dtj,iT);g.m(c3,g.Nl);c3.prototype.onClick=function(){this.enabled&&(TJ(this,!this.checked),this.publish("select",this.checked))}; c3.prototype.getValue=function(){return this.checked}; c3.prototype.setEnabled=function(p){(this.enabled=p)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var hPL=["en-CA","en","es-MX","fr-CA"];g.m(Kc,c3);Kc.prototype.Pr=function(p){p?this.T||(this.xM.zB(this),this.T=!0):this.T&&(this.xM.u8(this),this.T=!1);this.T&&TJ(this,TgQ())}; Kc.prototype.S=function(){g.tk(this.element,"ytp-menuitem-highlight-transition-enabled")}; Kc.prototype.V=function(p){var C=TgQ();p!==C&&(C=g.$l(),Ww(190,p),Ww(192,!0),C.save(),this.N.Jk("cinematicSettingsToggleChange",p))}; Kc.prototype.CS=function(){this.T&&this.xM.u8(this);c3.prototype.CS.call(this)};g.m(DM,iT);DM.prototype.updateCinematicSettings=function(p){this.T=p;var C;(C=this.menuItem)==null||C.Pr(p);this.api.publish("onCinematicSettingsVisibilityChange",p)};g.m(uT,iT);uT.prototype.sU=function(p,C){C=C.clipConfig;p==="dataloaded"&&C&&C.startTimeMs!=null&&C.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(C.startTimeMs)),endTimeMs:Math.floor(Number(C.endTimeMs)),postId:C.postId,type:"clips"})};g.m(ZM,iT);ZM.prototype.setCreatorEndscreenVisibility=function(p){var C;(C=gM(this.api.Tk()))==null||C.jb(p)}; ZM.prototype.T=function(p){function C(N){N==="creatorendscreen"&&(N=gM(V.api.Tk()))&&N.rEx(V.hideButton)} var V=this;this.hideButton=p;this.events.U(this.api,"modulecreated",C);C("creatorendscreen")};g.m(UO,c3);UO.prototype.V=function(p){this.S(p?1:0)}; UO.prototype.C=function(){var p=this.hasDrcAudioTrack(),C=this.T()===1&&p;TJ(this,C);this.setEnabled(p)}; UO.prototype.CS=function(){this.xM.u8(this);c3.prototype.CS.call(this)};g.m(fc,iT);fc.prototype.getDrcUserPreference=function(){return this.T}; fc.prototype.setDrcUserPreference=function(p){g.Yl("yt-player-drc-pref",p,31536E3);p!==this.T&&(this.T=p,this.updateEnvironmentData(),(p=this.api.L1())&&this.C()&&F9(p))}; fc.prototype.updateEnvironmentData=function(){this.api.K().jZ=this.T===1}; fc.prototype.C=function(){var p,C,V=(p=this.api.getVideoData())==null?void 0:(C=p.V)==null?void 0:C.T;if(!V)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.G("mta_drc_mutual_exclusion_removal")){var N=this.api.getAudioTrack().K4.id;return Yo(V,function(H){var X;return H.audio.T&&((X=H.K4)==null?void 0:X.id)===N})}return Yo(V,function(H){var X; return((X=H.audio)==null?void 0:X.T)===!0})};g.m(OO,iT);OO.prototype.onVideoDataChange=function(){var p=this,C=this.api.getVideoData();this.api.qt("embargo",1);var V=C==null?void 0:C.It.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(V==null?0:V.length)?l0e(this,V.filter(function(N){return EEv(p,N)})):(C==null?0:C.cueRanges)&&l0e(this,C.cueRanges.filter(function(N){return EEv(p,N)}))}; OO.prototype.C=function(p){return p.embargo!==void 0}; OO.prototype.CS=function(){iT.prototype.CS.call(this);this.T={}};g.m(y7,iT); y7.prototype.addEmbedsConversionTrackingParams=function(p){var C=this.api.K(),V=C.widgetReferrer,N=C.X$,H=this.T,X="",d=C.getWebPlayerContextConfig();d&&(X=d.embedsIframeOriginParam||"");V.length>0&&(p.embeds_widget_referrer=V);N.length>0&&(p.embeds_referring_euri=N);C.S&&X.length>0&&(p.embeds_referring_origin=X);d&&d.embedsFeature&&(p.feature=d.embedsFeature);H.length>0&&(C.G("embeds_web_enable_lite_experiment_control_arm_logging")?H.unshift(28572):g.cw(g.Ig(C))&&H.unshift(159628),C=H.join(","),C= g.Qg()?C:g.vy(C,4),p.source_ve_path=C);this.T.length=0};g.m(t5s,iT);g.m(cWL,iT);g.m(ql,g.Y);ql.prototype.CS=function(){g.Y.prototype.CS.call(this);this.T=null;this.C&&this.C.disconnect()};g.m(M5s,iT);g.m(I8,g.L);I8.prototype.show=function(){g.L.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; I8.prototype.onVideoDataChange=function(p){var C,V,N=(C=this.api.getVideoData())==null?void 0:(V=C.getPlayerResponse())==null?void 0:V.playabilityStatus;N&&(C=JWs(N),g.r(this.api.getPlayerStateObject(),128)||p==="dataloaderror"||!C?(this.C=0,Fpe(this),this.hide()):(p=(C.remainingTimeSecs||0)*1E3,p>0&&(this.show(),this.updateValue("label",VTu(C.label)),vEe(this,p))))}; I8.prototype.CS=function(){Fpe(this);g.L.prototype.CS.call(this)};g.m(S9V,iT);g.m(bT,g.L);bT.prototype.onClick=function(){this.ea.logClick(this.element);this.ea.Jk("onFullerscreenEduClicked")}; bT.prototype.Pr=function(){this.ea.isFullscreen()?this.C?this.T.hide():this.T.show():this.hide();this.ea.logVisibility(this.element,this.ea.isFullscreen()&&!this.C)};g.m(Ah,iT);Ah.prototype.updateFullerscreenEduButtonSubtleModeState=function(p){var C;(C=this.T)!=null&&(g.Tz(C.element,"ytp-fullerscreen-edu-button-subtle",p),p&&!C.V&&(C.element.setAttribute("title","Scroll for details"),o$(C.ea,C.element,C),C.V=!0))}; Ah.prototype.updateFullerscreenEduButtonVisibility=function(p){var C;(C=this.T)!=null&&(C.C=p,C.Pr())};g.m(KpQ,g.L);g.m(ZpY,iT);g.m(UtX,iT);g.m(f0X,iT);g.m(I0a,iT);var yWX="fs pe srt fpt nreqs nress nrese rsf_pj rse_pj rsf_pej rse_pej rsf_pc rse_pc".split(" "),q9j="bpd_c bpd_s gv mb_s pl_c pl_i plev".split(" ");g.m(o8,iT);o8.prototype.getSphericalProperties=function(){var p=g.Pk(this.api.Tk());return p?p.getSphericalProperties():{}}; o8.prototype.setSphericalProperties=function(p){if(p){var C=g.Pk(this.api.Tk());C&&C.setSphericalProperties(p,!0)}};g.m(bpX,iT);g.h=bpX.prototype;g.h.createClientVe=function(p,C,V,N){this.api.createClientVe(p,C,V,N===void 0?!1:N)}; g.h.createServerVe=function(p,C,V){this.api.createServerVe(p,C,V===void 0?!1:V)}; g.h.setTrackingParams=function(p,C){this.api.setTrackingParams(p,C)}; g.h.logClick=function(p,C){this.api.logClick(p,C)}; g.h.logVisibility=function(p,C,V){this.api.logVisibility(p,C,V)}; g.h.hasVe=function(p){return this.api.hasVe(p)}; g.h.destroyVe=function(p){this.api.destroyVe(p)};var oEQ=!1;kn1.prototype.setPlaybackRate=function(p){this.playbackRate=Math.max(1,p)}; kn1.prototype.getPlaybackRate=function(){return this.playbackRate};ePs.prototype.V5=function(p){var C=g.VE(p.info.T.info,this.hk.p4),V=p.info.LS+this.S,N=p.info.startTime*1E3;if(this.policy.UY)try{N=this.policy.UY?rz(p)*1E3:p.info.startTime*1E3}catch(d){Math.random()>.99&&this.logger&&(N=R4(p.T).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:p.info.Zh(),encodedDataView:g.mq(N,4)})),N=p.info.startTime*1E3}var H=p.info.clipId;if(this.policy.UY){if(p.info.T.V1())var X=p.info.duration;else p.S===-1&&(p.S=BR(p)),X=p.S||p.info.duration;X*=1E3}else X=p.info.duration* 1E3;this.policy.UY&&(N<0||X<0)&&this.logger&&(this.logger({missingSegInfo:p.info.Zh(),startTimeMs:N,durationMs:X}),N<0&&(N=p.info.startTime*1E3),X<0&&(X=p.info.duration*1E3));return{formatId:C,LS:V,startTimeMs:N,clipId:H,Qu:X}}; ePs.prototype.pp=function(p){this.timestampOffset=p};nc.prototype.seek=function(p,C){p!==this.T&&(this.seekCount=0);this.T=p;var V=this.videoTrack.C,N=this.audioTrack.C,H=this.audioTrack.NW,X=NBe(this,this.videoTrack,p,this.videoTrack.NW,C);C=NBe(this,this.audioTrack,this.policy.jZ?p:X,H,C);p=Math.max(p,X,C);this.W=!0;this.hk.isManifestless&&(GnS(this,this.videoTrack,V),GnS(this,this.audioTrack,N));return p}; nc.prototype.isSeeking=function(){return this.W}; nc.prototype.ir=function(p){this.V=p}; var VO1=2/24;var iba=0;g.h=B3.prototype;g.h.nT=function(){this.J=this.now();xBe(this.n1,this.J);this.aH.nT()}; g.h.w9=function(p,C){var V=this.policy.C?(0,g.Ip)():0;GJ(this,p,C);p-this.Y<10&&this.C>0||this.qc(p,C);this.aH.w9(p,C);this.policy.C&&(p=(0,g.Ip)()-V,this.ER+=p,this.qo=Math.max(p,this.qo))}; g.h.qc=function(p,C){var V=(p-this.Y)/1E3,N=C-this.V;this.bq||(cg(this.n1,V,N),this.rW(V,N));this.Y=p;this.V=C}; g.h.Kk=function(){this.sY&&hna(this);this.aH.Kk()}; g.h.J6=function(p){this.sY||(this.sY=this.W-this.YM+p,this.wy=this.W,this.qW=this.D)}; g.h.IA=function(p,C){p=p===void 0?this.D:p;C=C===void 0?this.W:C;this.C>0||(this.a$=p,this.C=C,this.Z=this.isActive=!0)}; g.h.mE=function(){}; g.h.cK=function(){var p,C={rn:this.requestNumber,rt:(this.D-this.T).toFixed(),lb:this.W,stall:(1E3*this.S).toFixed(),ht:(this.J-this.T).toFixed(),elt:(this.a$-this.T).toFixed(),elb:this.C,d:(p=this.Vn)==null?void 0:p.c6()};this.url&&AWe(C,this.url);this.policy.C&&(C.mph=this.qo.toFixed(),C.tph=this.ER.toFixed());C.ulb=this.R$;C.ult=this.Sa;C.abw=this.Y_;return C}; g.h.now=function(){return(0,g.Ip)()}; g.h.deactivate=function(){this.isActive&&(this.isActive=!1)};g.m(p4,B3);g.h=p4.prototype;g.h.cK=function(){var p=B3.prototype.cK.call(this);p.pb=this.RO;p.pt=(1E3*this.X$).toFixed();p.se=this.Q$;return p}; g.h.D$=function(){var p=this.aH;this.Ga||(this.Ga=p.D$?p.D$():1);return this.Ga}; g.h.LP=function(){return this.Vv?this.D$()!==1:!1}; g.h.ao=function(p,C,V){if(!this.Hc){this.Hc=!0;if(!this.bq){GJ(this,p,C);this.qc(p,C);var N=this.D$();this.Q$=V;N===2?this.bq||(this.Sa?ag(this.n1,this.Sa/1E3,this.R$,this.KS||this.policy.sY):ag(this.n1,C/Math.max(this.policy.a$,V||this.Y_),C,.01),lL(this.n1,C,this.S)):N===1&&(V=(p-this.T)/1E3,!(V<=this.policy.S)&&this.policy.S||this.Wc||this.policy.Z||!(this.C>0)||l8Y(this,V,C),this.C>0&&lL(this.n1,C,this.S));p=(p-this.T)/1E3||.01;this.policy.J&&!(this.C>0)||Ee(this.n1,p,this.V,E$X(this),this.Ti)}this.deactivate()}}; g.h.k8=function(p,C,V){V&&(this.Ga=2);p<0&&this.HR&&(p=this.HR);C?this.Qn+=p:this.KS+=p}; g.h.qc=function(p,C){var V=(p-this.Y)/1E3,N=C-this.V,H=this.D$();this.isActive?H===1&&((N>0||this.policy.W)&&(V>.2||N<1024)?(this.S+=V,N>0&&V>.2&&l8Y(this,this.v_?V:.05,N),this.Wc=!0):N>0&&(l8Y(this,V,N),this.Wc=!0)):C&&C>=this.policy.T&&this.IA(p,C);B3.prototype.qc.call(this,p,C)}; g.h.QK=function(p){if(!this.bq){GJ(this,p,this.W);var C=(p-this.T)/1E3;this.D$()!==2&&this.C>0&&(this.S+=(p-this.Y)/1E3,lL(this.n1,this.V,this.S));Ee(this.n1,C,this.V,E$X(this),this.Ti,!0);p=(p-this.Y)/1E3;cg(this.n1,p,0);this.rW(p,0)}}; g.h.IA=function(p,C){p=p===void 0?this.D:p;C=C===void 0?this.W:C;if(!(this.C>0)&&(B3.prototype.IA.call(this,p,C),this.D$()===1)){C=(this.J-this.T)/1E3;var V=(p-this.J)/1E3;this.Vv&&MOs(this,this.now());this.kM||this.bq||(this.HR&&(V=Math.max(0,V-this.HR)),p=this.n1,p.J.N3(1,C),p.Sa.N3(1,V))}}; g.h.dT=function(){this.Vv&&MOs(this,this.now());return this.vr}; g.h.GC=function(){var p;if(p=this.V>this.sP)p=(p=this.V)?p>=this.policy.T:!1;return p}; g.h.SQ=function(){return this.UY}; g.h.gD=function(p){p=p===void 0?this.now():p;if(this.Vv){MOs(this,p);if(this.Ga?this.LP():this.b_!==this.Wr){var C=this.Wr;if(p<C){this.UY=this.Wr;return}}else C=this.b_;C=Math.max(C,this.vr)}else C=this.vr;var V=this.RO-this.V;V<0&&(V=0);V=(V*this.snapshot.stall+V/this.snapshot.byterate)*1E3;this.UY=V=this.C>0?V+p:V+Math.max(p,C)}; g.h.yD=function(){return this.now()-this.a$}; g.h.WG=function(){return(this.V-this.C)*1E3/this.yD()||0}; g.h.j$=function(){return this.a$};C4.prototype.feed=function(p){k9(this.T,p);this.f7()}; C4.prototype.f7=function(){if(this.S){if(!this.T.getLength())return;var p=this.T.split(this.V-this.C),C=p.Yd;p=p.LM;if(!this.aH.J6(this.S,C,this.C,this.V))return;this.C+=C.getLength();this.T=p;this.C===this.V&&(this.S=this.V=this.C=void 0)}for(;;){var V=0;p=g.F(Jzu(this.T,V));C=p.next().value;V=p.next().value;V=g.F(Jzu(this.T,V));p=V.next().value;V=V.next().value;if(C<0||p<0)break;if(!this.T.sC(V,p)){if(!this.aH.J6||!this.T.sC(V,1))break;V=this.T.split(V).LM;this.aH.J6(C,V,0,p)&&(this.S=C,this.C= V.getLength(),this.V=p,this.T=new o4([]));break}p=this.T.split(V).LM.split(p);V=p.LM;this.aH.ZC(C,p.Yd);this.T=V}}; C4.prototype.dispose=function(){this.T=new o4};g.h=jf.prototype;g.h.q7=function(){return 0}; g.h.b5=function(){return null}; g.h.D0=function(){return null}; g.h.Rb=function(){return this.state>=1}; g.h.isComplete=function(){return this.state>=3}; g.h.Ad=function(){return this.state===5}; g.h.onStateChange=function(){}; g.h.UZ=function(p){var C=this.state;this.state=p;this.onStateChange(C);this.callback&&this.callback(this,C)}; g.h.dZ=function(p){p&&this.state<p?this.UZ(p):this.callback&&this.callback(this,this.state)}; g.h.fS=function(){return this.state===-1}; g.h.Zh=function(){var p="";this.info.wV.forEach(function(C){p+=C.Zh()+"."}); return p.slice(0,-1)}; g.h.dispose=function(){this.fS()||(this.info.wV[0].T.V=!1,this.UZ(-1))}; g.h.eh=function(){return 0};g.h=v$e.prototype;g.h.q$=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.aH.nT()}; g.h.onError=function(){this.V=!0;this.onDone()}; g.h.onDone=function(){this.fS||(this.S=!0,this.aH.Kk())}; g.h.iO=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}; g.h.getResponseHeader=function(p){try{return this.xhr.getResponseHeader(p)}catch(C){return""}}; g.h.j9=function(){return+this.getResponseHeader("content-length")}; g.h.cI=function(){return this.C}; g.h.Pn=function(){return this.status>=200&&this.status<300&&!!this.C}; g.h.CM=function(){return this.T.getLength()>0}; g.h.jg=function(){var p=this.T;this.T=new o4;return p}; g.h.Hg=function(){return this.T}; g.h.abort=function(){this.fS=!0;this.xhr.abort()}; g.h.hV=function(){return!0}; g.h.w5=function(){return this.V}; g.h.FF=function(){return""};g.h=K6e.prototype;g.h.getResponseHeader=function(p){return p==="content-type"?this.T.get("type"):""}; g.h.abort=function(){}; g.h.iO=function(){return!0}; g.h.j9=function(){return this.range.length}; g.h.cI=function(){return this.loaded}; g.h.Pn=function(){return!!this.loaded}; g.h.CM=function(){return!!this.C.getLength()}; g.h.jg=function(){var p=this.C;this.C=new o4;return p}; g.h.Hg=function(){return this.C}; g.h.hV=function(){return!0}; g.h.w5=function(){return!!this.error}; g.h.FF=function(){return this.error};g.h=u11.prototype;g.h.start=function(p){var C={credentials:"include",cache:"no-store"};Object.assign(C,this.D);this.S&&(C.signal=this.S.signal);p=new Request(p,C);fetch(p).then(this.Z,this.onError).then(void 0,lN)}; g.h.onDone=function(){this.fS()||this.aH.Kk()}; g.h.getResponseHeader=function(p){return this.responseHeaders?this.responseHeaders.get(p):null}; g.h.iO=function(){return!!this.responseHeaders}; g.h.cI=function(){return this.C}; g.h.j9=function(){return+this.getResponseHeader("content-length")}; g.h.Pn=function(){return this.status>=200&&this.status<300&&!!this.C}; g.h.CM=function(){return!!this.T.getLength()}; g.h.jg=function(){this.CM();var p=this.T;this.T=new o4;return p}; g.h.Hg=function(){this.CM();return this.T}; g.h.fS=function(){return this.W}; g.h.abort=function(){this.V&&this.V.cancel().catch(function(){}); this.S&&this.S.abort();this.W=!0}; g.h.hV=function(){return!0}; g.h.w5=function(){return this.Y}; g.h.FF=function(){return this.errorMessage};g.h=Zbe.prototype;g.h.onDone=function(){if(!this.fS){this.status=this.xhr.status;try{this.response=this.xhr.response,this.C=this.response.byteLength}catch(p){}this.T=!0;this.aH.Kk()}}; g.h.q$=function(){this.xhr.readyState===2&&this.aH.nT()}; g.h.Nn=function(p){this.fS||(this.status=this.xhr.status,this.T||(this.C=p.loaded),this.aH.w9((0,g.Ip)(),p.loaded))}; g.h.iO=function(){return this.xhr.readyState>=2}; g.h.getResponseHeader=function(p){try{return this.xhr.getResponseHeader(p)}catch(C){return g.eG(Error("Could not read XHR header "+p)),""}}; g.h.j9=function(){return+this.getResponseHeader("content-length")}; g.h.cI=function(){return this.C}; g.h.Pn=function(){return this.status>=200&&this.status<300&&this.T&&!!this.C}; g.h.CM=function(){return this.T&&!!this.response&&!!this.response.byteLength}; g.h.jg=function(){this.CM();var p=this.response;this.response=void 0;return new o4([new Uint8Array(p)])}; g.h.Hg=function(){this.CM();return new o4([new Uint8Array(this.response)])}; g.h.abort=function(){this.fS=!0;this.xhr.abort()}; g.h.hV=function(){return!1}; g.h.w5=function(){return!1}; g.h.FF=function(){return""};g.HI.prototype.info=function(){}; g.HI.prototype.debug=function(){}; g.HI.prototype.T=CY(36);var yzV=new Map,bbv=new Map,q69=new function(){var p=this;this.T=new Map;this.Sr={NjS:function(){return p.T}}};g.m(XM,g.Y);XM.prototype.iT=function(){if(!this.Ng.length)return[];var p=this.Ng;this.Ng=[];this.V=g.wY(p).info;return p}; XM.prototype.UG=function(){return this.Ng}; XM.prototype.CS=function(){g.Y.prototype.CS.call(this);this.T=null;this.Ng.length=0;this.wV.length=0;this.V=null};g.m(i2,g.Y);g.h=i2.prototype;g.h.Kg_=function(){if(!this.fS()){var p=(0,g.Ip)(),C=!1;if(this.timing.C>0){if(this.W){this.policy.qW&&(this.T=0);return}var V=this.timing.SQ();this.timing.gD();var N=this.timing.SQ();N-V>=this.policy.K$*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(N-V).toFixed(0)}),C=this.T>=5):this.T=0}else{var H=p-this.timing.dT(); H>0&&(this.T+=1);p=ouH(ht(this),!1)*this.policy.Ln;(C=H>p*1E3)&&this.logger.debug(function(){return"Elbow late by "+H.toFixed(3)})}this.T>0&&this.aH.OB(); C?this.RA(!1):this.C.start()}}; g.h.RA=function(p){this.S=!0;p&&(p=ht(this),p.V+=1);this.aH.OX();this.lastError="net.timeout";aA(this)}; g.h.canRetry=function(p){var C=ht(this);p=p?this.policy.Hn:this.policy.uM;return C.timedOut<this.policy.Ik&&C.T<p}; g.h.LO=function(){return this.lastError}; g.h.r9=function(){return this.T}; g.h.dispose=function(){this.C.dispose();g.Y.prototype.dispose.call(this)};var hY={},jge=(hY["1h"]=8,hY["9h"]=4,hY["1"]=8,hY["9"]=4,hY["("]=4,hY.h=2,hY.H=2,hY),s7={},VH9=(s7.o=3,s7.O=3,s7.so=3,s7.a=1,s7.ah=1,s7.A=1,s7.m=1,s7.M=1,s7.sa=1,s7.mac3=7,s7.MAC3=7,s7.meac3=5,s7.MEAC3=5,s7),aP={},HIy=(aP.o=0,aP.O=0,aP.a=0,aP.ah=0,aP.A=0,aP.m=1,aP.M=1,aP.mac3=1,aP.MAC3=1,aP.meac3=1,aP.MEAC3=1,aP.so=4,aP.sa=4,aP);var hgy={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};var cI,tt,TX=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],Q51=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],rzS=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],BBY=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],GFu=["412","359"],pgu=[["140"],["251"],["380"],["328"]],E7={},$6e=(E7["398"]="397 396 395 394 788 787".split(" "), E7["247"]=["780","779","244","243","242"],E7["136"]=["135","134","133","160"],E7["141"]=["140"],E7["251"]=["250"],E7["774"]=["251","250"],E7),lk={},L6X=(lk["135"]=["134","133","160"],lk["243"]=["242"],lk["781"]=["780","779"],lk["777"]=["776","775"],lk["396"]=["395","394"],lk["141"]=["140"],lk["251"]=["250"],lk),tY={},g$y=(tY["274"]=["317","273","318","280","279"],tY["145"]=["144","222","223","143","142"],tY["141"]=["149"],tY["140"]=["149"],tY["380"]=["381"],tY["328"]=["329"],tY),cL={},Poe=(cL["133"]= 240,cL["134"]=360,cL["135"]=480,cL["136"]=720,cL["137"]=1080,cL["242"]=240,cL["243"]=360,cL["244"]=480,cL["247"]=720,cL["248"]=1080,cL["298"]=720,cL["299"]=1080,cL["302"]=720,cL["303"]=1080,cL["395"]=240,cL["396"]=360,cL["397"]=480,cL["398"]=720,cL["399"]=1080,cL);var Xge={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.m(P3,jf);g.h=P3.prototype;g.h.ZM=function(){return this.timing.requestNumber}; g.h.i9=function(){return this.sO.i9()}; g.h.BP=function(){var p=RnQ(this.uJ);if(this.Ge){var C=this.Ge,V=C.T.getLength();p.ulen=V;V>0&&(C=C.T.getUint8(0),p.ubyte=C,V===1&&C===0&&(p.b248180278=!0))}this.zI&&(p.rc=this.policy.DM?this.zI:this.zI.toString());this.policy.I6&&this.pc&&(p.tr=this.pc);p.itag=this.info.wV[0].T.info.itag;p.ml=""+ +this.info.wV[0].T.rI();p.sq=""+this.info.wV[0].LS;this.sO&&(p.ifi=""+ +Dy(this.info.sR.V));this.zI!==410&&this.zI!==500&&this.zI!==503||(p.fmt_unav="true");var N;(V=this.errorMessage||((N=this.xhr)==null? void 0:N.FF()))&&(p.msg=V);this.Oy&&(p.smb="1");this.info.isDecorated()&&(p.sdai="1");return p}; g.h.h4=function(){return tOv(this.timing)}; g.h.FF=function(){return this.xhr.FF()||""}; g.h.GC=function(){return this.isComplete()||this.timing.GC()}; g.h.w9=function(){!this.fS()&&this.xhr&&(this.zI=this.xhr.status,this.policy.Gf&&this.TI&&this.bF(!1),this.Lp()?this.dZ(2):!this.h$&&this.GC()&&(this.dZ(),this.h$=!0))}; g.h.nT=function(){if(!this.fS()&&this.xhr){if(!this.A7&&this.xhr.iO()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var p=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.A7=((0,g.Ip)()-p)/1E3}this.xhr.iO()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.JT&&!fSj()&&g.Yl("yt-player-headers-readable",!0,2592E3);p=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var C=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),V;(V=this.jX)==null||V.stop();this.J8=p||this.J8; this.x5=C||this.x5}}; g.h.Kk=function(){var p=this.xhr;if(!this.fS()&&p){this.zI=p.status;p=this.dl(p);if(this.policy.I6){var C;(C=this.jX)==null||C.stop()}p===5?aA(this.uJ):this.UZ(p);this.uJ.C.stop()}}; g.h.dl=function(p){var C=this;tHe(this);if(E4(this.uJ,this.xhr.status,this.Rc?this.timing.Z||this.J3:this.xhr.Pn(),!1,this.Hj))return 5;var V="";l2(this.uJ,this.xhr)&&(V=znY(this.uJ,this.xhr));if(V)return cR(ht(this.uJ)),this.info.x9(this.sO,V),3;V=p.cI();if(this.Ge){this.bF(!0);tHe(this);if(E4(this.uJ,this.xhr.status,this.timing.Z||this.J3,!1,this.Hj))return 5;if(!this.dS){if(this.J3)return cR(ht(this.uJ)),3;this.uJ.lastError="net.closed";return 5}}else{if(E4(this.uJ,this.xhr.status,this.xhr.Pn(), !1,this.Hj))return 5;var N=this.info.V;if(N&&N!==V||p.w5())return this.uJ.lastError="net.closed",5;this.bF(!0)}N=m6S(this)?p.getResponseHeader("X-Bandwidth-Est"):0;if(p=m6S(this)?p.getResponseHeader("X-Bandwidth-Est3"):0)this.JN=!0,this.policy.pj&&(N=p);x6S(this.uJ,V,N?Number(N):0);this.logger.debug(function(){var H=C.timing;return"Succeeded, rtpd="+(H.X$*1E3+H.T-Date.now()).toFixed(0)}); return 4}; g.h.canRetry=function(){this.fS();var p=this.info.isDecorated();return this.uJ.canRetry(p)}; g.h.onStateChange=function(){this.isComplete()&&(this.policy.VP?this.OX():this.timing.deactivate())}; g.h.RA=function(p){this.uJ.RA(p)}; g.h.OB=function(){this.callback&&this.callback(this,this.state)}; g.h.r9=function(){return this.uJ.r9()}; g.h.dispose=function(){jf.prototype.dispose.call(this);this.uJ.dispose();var p;(p=this.jX)==null||p.dispose();this.policy.VP||this.OX()}; g.h.OX=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.h.iT=function(){if(!this.UG().length)return[];this.X2=!0;return this.TI.iT()}; g.h.Lp=function(){if(this.state<1)return!1;if(this.TI&&this.TI.Ng.length)return!0;var p;return((p=this.xhr)==null?0:p.CM())?!0:!1}; g.h.UG=function(){this.bF(!1);return this.TI?this.TI.UG():[]}; g.h.bF=function(p){try{if(p||this.xhr.iO()&&this.xhr.CM()&&!l2(this.uJ,this.xhr)&&!this.C6)this.TI||(this.TI=new XM(this.policy,this.info.wV)),this.xhr.CM()&&(this.Ge?this.Ge.feed(this.xhr.jg()):dd(this.TI,this.xhr.jg(),p&&!this.xhr.CM()))}catch(C){this.Ge?aW1(this,C):g.eG(C)}}; g.h.ZC=function(p,C){switch(p){case 21:p=C.split(1).LM;ESL(this,p);break;case 22:this.dS=!0;dd(this.TI,new o4([]),!0);break;case 43:if(p=CW(new WH(C),1))this.info.x9(this.sO,p),this.J3=!0;break;case 45:C=Gv(new WH(C));p=C.ZY;C=C.yh;p&&C&&(this.aY=p/C);break;case 44:this.PC=ZPL(new WH(C));var V,N,H;!this.timing.Z&&((V=this.PC)==null?void 0:V.action)===4&&((N=this.PC)==null?0:(H=N.Dl)==null?0:H.Rc)&&(this.Rc=this.PC.Dl.Rc);break;case 53:this.policy.I6&&(p=KiL(new WH(C)).bL)&&(this.jX||(this.bL=p,this.jX= new g.N8(this.gQ,p,this)),this.jX.start());break;case 60:this.pQ=BY(new WH(C));break;case 58:if(p=CHe(new WH(C)))this.e6=p,p.e6===3&&(this.Hj=!0)}}; g.h.J6=function(p,C,V,N){V||this.timing.J6(N);if(p!==21)return!1;if(p=this.policy.Gf)if(N=C.getLength()+V===N,p*=this.info.wV[0].T.info.F$,!N&&C.getLength()<p)return!1;if(!V){if(C.getLength()===1)return!0;C=C.split(1).LM}ESL(this,C);return!0}; g.h.cI=function(){return this.xhr.cI()}; g.h.q7=function(){return this.A7}; g.h.D$=function(){return this.LP()?2:1}; g.h.LP=function(){if(!this.policy.J.q3||!isNaN(this.info.kq)&&this.info.kq>0)return!1;if(!this.xhr.iO())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Ge)var p=!this.info.V;else this.xhr.j9()?p=!1:(p=this.xhr.getResponseHeader("content-type"),p=p==="audio/mp4"||p==="video/mp4"||p==="video/webm");if(!p)return!1;if(isNaN(this.info.kq)){p=this.xhr.getResponseHeader("x-head-seqnum");var C=this.timing.policy.D?1:0;if(!p)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(p)>this.info.wV[0].LS+C)return!1}return!0}; g.h.eh=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.h.b5=function(){this.xhr&&(this.J8=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J8}; g.h.D0=function(){this.xhr&&(this.x5=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.x5}; g.h.LO=function(){return this.uJ.LO()}; g.h.gQ=function(){if(!this.fS()&&this.xhr){this.pc="heartbeat";var p=this.uJ;p.T+=2;this.OB()}};g.m(mB,B3);g.h=mB.prototype;g.h.qc=function(p,C){var V=(p-this.Y)/1E3,N=C-this.V;this.C>0?N>0&&(this.b_&&(V>.2||N<1024?(this.S+=V,V>.2&&cRV(this,.05,N)):cRV(this,V,N)),this.Wr&&(this.vr+=N,this.Ga+=V)):C>this.policy.T&&this.IA(p,C);B3.prototype.qc.call(this,p,C)}; g.h.ao=function(p,C){GJ(this,p,C);this.qc(p,C);this.b_&&(C=this.V*this.snapshot.stall+this.V/this.snapshot.byterate,this.C>0&&lL(this.n1,this.vr,this.S),p=(p-this.T)/1E3||.01,this.policy.J&&!(this.C>0)||Ee(this.n1,p,this.V,C,!1))}; g.h.QK=function(p){GJ(this,p,this.W);var C=(p-this.Y)/1E3;cg(this.n1,C,0);this.rW(C,0);!this.b_&&this.C>0||(C=this.V*this.snapshot.stall+this.V/this.snapshot.byterate,this.C>0&&(this.S+=(p-this.Y)/1E3,lL(this.n1,this.vr,this.S)),Ee(this.n1,((p-this.T)/1E3||.01)*this.policy.b_,this.V,C,!1,!0))}; g.h.Rs=function(p){p=p.Hq||2147483647;(p&2)!==2&&(this.Wr=!1);(p&1)===1&&(this.b_=!0)}; g.h.We=function(p){p=p.Hq||2147483647;(p&2)===2&&(this.Wr=!1);(p&1)===1&&(this.b_=!1)}; g.h.j$=function(){return this.a$}; g.h.yD=function(){var p=this.Wr?this.now()-this.Y:0;return Math.max(this.Ga*1E3+p,1)}; g.h.WG=function(){return this.vr*1E3/this.yD()}; g.h.IA=function(p,C){p=p===void 0?this.D:p;C=C===void 0?this.W:C;this.C>0||(B3.prototype.IA.call(this,p,C),C=this.n1,p=(p-this.J)/1E3,C.J.N3(1,(this.J-this.T)/1E3),C.Sa.N3(1,p))}; g.h.mE=function(p){this.UY=p}; g.h.cK=function(){var p=B3.prototype.cK.call(this);p.rbw=this.WG();p.rbe=+this.Wr;p.gbe=+this.b_;p.ackt=(this.UY-this.T).toFixed();return p}; g.h.gD=function(){}; g.h.SQ=function(){return NaN}; g.h.dT=function(){return this.T+this.snapshot.delay*1E3};vI.prototype.ZC=function(p,C){C.getLength();switch(p){case 20:p=new WH(C);p={Qz:BH(p,1),videoId:CW(p,2),itag:BH(p,3),lmt:BH(p,4),xtags:CW(p,5),RW:BH(p,6),h9:Gk(p,8),o9:BH(p,9),Frn:BH(p,10),startMs:BH(p,11),durationMs:BH(p,12),yA:BH(p,14),timeRange:js(p,15,Yr1),R5:BH(p,16),ww:BH(p,17),clipId:CW(p,1E3)};this.Ki(p);break;case 21:this.t5(C,!1);break;case 22:this.AF(C);break;case 31:p=HJ(C,c4a);this.ZR(p);break;case 52:p=HJ(C,Dzj);this.cE(p);break;default:this.Wy(p,C)}}; vI.prototype.Ki=function(){}; vI.prototype.Wy=function(){};g.m(TGe,vI);g.h=TGe.prototype; g.h.Wy=function(p,C){C.getLength();switch(p){case 35:this.x$(C);break;case 44:this.eN(C);break;case 43:this.XH(C);break;case 53:this.oo(C);break;case 55:p=new WH(C);(p={timeline:js(p,1,fcY),XVe:js(p,2,qfy)},p.timeline)&&p.timeline.HD&&this.aH.kD(p.timeline.HD,p.timeline.GMS,p.XVe);break;case 56:this.G4();break;case 57:this.uN(C);break;case 42:this.h5(C);break;case 45:this.Ia(C);break;case 59:this.h_(C);break;case 51:this.p8(C);break;case 49:this.Rs(C);break;case 50:this.We(C);break;case 47:this.He(C); break;case 58:this.aA(C);break;case 61:this.aH.MZ.mE((0,g.Ip)());break;case 66:this.Q8(C);break;case 46:this.L8(C);break;case 67:this.onSnackbarMessage(C)}}; g.h.p8=function(p){p=new WH(p);p={iV_:Ng(p,1,QC),z2n:Ng(p,2,QC)};this.aH.p8(p)}; g.h.h_=function(p){var C=new WH(p);p=Vi(C,1);var V=Vi(C,2);C=Vi(C,3);this.aH.h_(p,V,C)}; g.h.Ia=function(p){p=Gv(new WH(p));this.aH.Ia(p)}; g.h.He=function(p){p=HJ(p,J41);this.aH.He(p)}; g.h.h5=function(p){p=new WH(p);p={videoId:CW(p,1),formatId:js(p,2,QC),endTimeMs:BH(p,3),kRx:BH(p,4),mimeType:CW(p,5),QS:js(p,6,hqe),indexRange:js(p,7,hqe),Qq:js(p,8,s3Y)};this.aH.h5(p)}; g.h.uN=function(p){p=qfy(new WH(p));this.aH.uN(p)}; g.h.G4=function(){this.aH.G4()}; g.h.x$=function(p){p=TtQ(new WH(p));this.aH.x$(p)}; g.h.oo=function(p){p=KiL(new WH(p));this.aH.oo(p)}; g.h.eN=function(p){p=ZPL(new WH(p));this.aH.eN(p)}; g.h.XH=function(p){p={redirectUrl:CW(new WH(p),1)};this.aH.XH(p)}; g.h.t5=function(p){var C=p.getUint8(0);if(p.getLength()!==1){p=p.split(1).LM;var V=this.C[C]||null;V&&u2(this.aH.g6,C,V,p)}}; g.h.AF=function(p){p=p.getUint8(0);var C=this.C[p]||null;C&&this.aH.AF(p,C)}; g.h.cE=function(p){this.aH.cE(p)}; g.h.Ki=function(p){var C=p.Qz,V=p.h9,N=p.RW,H=p.ww,X=p.R5,d=p.o9,a=p.startMs,E=p.durationMs,l=p.timeRange,t=p.yA,c=p.clipId,T=S5(p);p=gK0.has(gO[""+p.itag]);this.C[C]=T;this.aH.k8(T,p,{Qz:C,h9:!!V,RW:N!=null?N:-1,o9:d!=null?d:-1,startMs:a!=null?a:-1,durationMs:E!=null?E:-1,yA:t,ww:H,R5:X,clipId:c,timeRange:l})}; g.h.Rs=function(p){p={Hq:BH(new WH(p),1)};this.aH.Rs(p)}; g.h.We=function(p){p={Hq:BH(new WH(p),1)};this.aH.We(p)}; g.h.ZR=function(p){this.aH.ZR(p)}; g.h.aA=function(p){p=CHe(new WH(p));this.aH.aA(p)}; g.h.Q8=function(p){p={pJ:js(new WH(p),1,FiL)};this.aH.Q8(p)}; g.h.onSnackbarMessage=function(p){p=BH(new WH(p),1);this.aH.onSnackbarMessage(p)}; g.h.L8=function(p){p={reloadPlaybackParams:js(new WH(p),1,pUL)};this.aH.L8(p)};g.m(FM,g.Y);g.h=FM.prototype;g.h.yl=function(){return Array.from(this.hc.keys())}; g.h.xn=function(p){p=this.hc.get(p);var C=p.Ng;p.ZV+=C.getLength();p.Ng=new o4;return C}; g.h.gI=function(p){return this.hc.get(p).gI}; g.h.zC=function(p){return this.hc.get(p).zC}; g.h.k8=function(p,C,V,N){this.hc.get(p)||K4Q(this,p,C);C=this.hc.get(p);if(this.hk){p=usy(this,p,V);if(N)for(var H=g.F(p),X=H.next();!X.done;X=H.next()){X=X.value;var d=N;X.Z=d;X.startTime+=d;X.Qi+=d;X.zM+=d}DnX(this,V.Qz,C,p)}else V.h9?C.J$=V.yA:C.C8.push(V),C.aE.push(V)}; g.h.Ux=function(p){var C;return((C=this.hc.get(p))==null?void 0:C.wV)||[]}; g.h.dZ=function(){for(var p=g.F(this.hc.values()),C=p.next();!C.done;C=p.next())C=C.value,C.P2&&(C.Nn&&C.Nn(),C.P2=!1)}; g.h.AF=function(p,C){this.logger.debug(function(){return"[onMediaEnd] formatId: "+C}); var V=this.hc.get(C);if(Sf){if(V&&!V.gI){if(V.Ef.get(p))V.Ef.get(p).Lg=!0;else{var N;((N=this.wY)==null?0:N.va)&&V.Ef.set(p,{data:new o4,kT:0,Lg:!0})}V.zC=!0}}else V&&!V.zC&&(V.zC=!0)}; g.h.iT=function(p){if(Sf){var C=this.hc.get(p);if(C)for(var V=g.F(C.Ef),N=V.next();!N.done;N=V.next()){var H=g.F(N.value);N=H.next().value;H=H.next().value;var X=C.tK.get(N);if(O9(X[0])){if(!H.Lg)continue;var d=X,a=H.data;a.getLength();X=0;var E=[];d=g.F(d);for(var l=d.next();!l.done;l=d.next()){l=l.value;var t=l.V,c=x9(a,X,t);X+=t;E.push(new WR(l,c))}C.Xr.push.apply(C.Xr,g.K(E))}else if(H.data.getLength()>0||!X[0].range&&H.Lg)a=void 0,X=X[0],E=H.kT,d=H.data,X.range||(a=H.Lg),l=d.getLength(),a=new WR(rK1(X, X.C+E,l,a),d),H.kT+=a.info.V,C.Xr.push(a);C.Ef.get(N).data=new o4;H.Lg&&C.Ef.delete(N)}p=this.hc.get(p);if(!p)return[];C=p.Xr;p.Xr=[];V=g.F(C);for(N=V.next();!N.done;N=V.next())p.ZV+=N.value.info.V;return C||[]}V=(C=this.hc.get(p))==null?void 0:C.TI;if(!V)return[];this.bF(p,V);return V.iT()}; g.h.Lp=function(p){if(Sf)return DX(this,p);var C,V,N;return!!((V=(C=this.hc.get(p))==null?void 0:C.TI)==null?0:(N=V.UG())==null?0:N.length)||DX(this,p)}; g.h.bF=function(p,C){for(;DX(this,p);){var V=this.xn(p);var N=p;N=this.hc.get(N).gI&&!F4V(this,N);dd(C,V,N&&Sej(this,p))}}; g.h.CS=function(){g.Y.prototype.CS.call(this);for(var p=g.F(this.hc.keys()),C=p.next();!C.done;C=p.next())JRj(this,C.value);var V;if((V=this.wY)==null?0:V.gR)for(p=g.F(this.hc.values()),C=p.next();!C.done;C=p.next())C=C.value,C.Ef.clear(),C.tK.clear(),C.Xr.length=0,C.wV.length=0,C.aE.length=0,C.C8.length=0;this.hc.clear()}; var Sf=!1;g.m(ZX,g.Y);g.h=ZX.prototype;g.h.w9=function(){!this.fS()&&this.xhr&&(this.bF(!1),Cu(this.aH,this))}; g.h.nT=function(){}; g.h.Kk=function(){if(!this.fS()&&this.xhr){var p=this.dl();p===5?aA(this.uJ):this.UZ(p);this.uJ.C.stop();var C;(C=this.sy)==null||C.stop()}}; g.h.dl=function(){var p="";l2(this.uJ,this.xhr)&&(p=znY(this.uJ,this.xhr));if(p)return this.info.sR.x9(this.sO,p),3;this.bF(!0);if(E4(this.uJ,this.xhr.status,this.xhr.Pn(),this.info.Hf(),this.Hj))return 5;if(this.B0)return 3;x6S(this.uJ,this.xhr.cI(),0);this.policy.VZ&&eWS(this.aH);return 4}; g.h.bF=function(p){var C=this.xhr;if((p||!l2(this.uJ,this.xhr))&&C.CM()){p=C.jg();var V=p.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+V}); this.Ge.feed(p)}}; g.h.ZC=function(p,C){this.xhr.hV()&&p===21&&OIL(this);this.tN.ZC(p,C)}; g.h.J6=function(p,C,V,N){V||(this.MZ.J6(N),this.policy.QR&&p===21&&OIL(this));if(p!==21)return!1;this.MZ.Z=!0;p=C.getLength();V||(this.v4=C.getUint8(0),C=C.split(1).LM);var H=this.tN.C[this.v4],X=this.hk.V.get(H);if(X&&(X=X.info.F$*.01,p+V!==N&&p<X))return!1;u2(this.g6,this.v4,H,C);return!0}; g.h.x$=function(p){this.aH.x$(p)}; g.h.oo=function(p){if(this.policy.enableServerDrivenRequestCancellation){var C;(C=this.sy)==null||C.dispose();this.OP=p;p.nB&&(this.sy=new g.N8(this.lE,p.nB,this));this.lE()}}; g.h.lE=function(){var p;if((p=this.OP)!=null&&p.items){var C;(C=this.sy)==null||C.start();if(this.MZ.C>0){p=this.MZ.yD();C=this.MZ.WG();var V=yRj(this,p);if(!(C>V.Pu||V.X9>0&&this.info.aq()>V.X9)){this.JZ=(0,g.Ip)();var N;(N=this.sy)==null||N.stop();this.policy.VZ&&(N=this.aH,p={Hb:Math.round(C*p/1E3),ys:p},N.policy.VZ&&(N.Vn=p,N.iL++));this.RA(!1)}}}}; g.h.RA=function(p){this.uJ.RA(p)}; g.h.eN=function(p){this.aH.eN(p,this.ZM())}; g.h.XH=function(p){this.B0=!0;this.info.sR.x9(this.sO,p.redirectUrl)}; g.h.Rs=function(p){this.MZ instanceof mB&&this.MZ.Rs(p)}; g.h.We=function(p){this.MZ instanceof mB&&this.MZ.We(p)}; g.h.kD=function(p,C,V){this.aH.kD(p,C,V,this.ZM())}; g.h.h5=function(p){var C=p.formatId,V=S5({itag:C.itag,lmt:C.lmt,xtags:C.xtags}),N,H,X=new D0(((N=p.QS)==null?void 0:N.first)||0,((H=p.QS)==null?void 0:H.xi)||0),d,a;N=new D0(((d=p.indexRange)==null?void 0:d.first)||0,((a=p.indexRange)==null?void 0:a.xi)||0);if(!this.hk.V.get(V)){V=p.Qq||{};if(this.policy.SE){var E,l;p=(E=p.mimeType)!=null?E:"";E=(l=C.itag)!=null?l:0;l=gO[""+E];V.mimeType=l!=="9"&&l!=="9h"?p:'video/webm; codecs="'+["vp09",l==="9h"?"02":"00","51",l==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else V.mimeType=p.mimeType;V.itag=C.itag;V.lastModified=""+(C.lmt||0);V.xtags=C.xtags;C=this.hk;l=tz("");E=E6(V,null);X1(C,new VM(l,E,X,N))}}; g.h.Ia=function(p){this.aH.Ia(p)}; g.h.onSnackbarMessage=function(p){if(this.policy.Bv)this.aH.onSnackbarMessage(p)}; g.h.ZR=function(p){this.C5=p;this.vQ=(0,g.Ip)();this.aH.ZR(p)}; g.h.h_=function(p,C,V){this.aH.h_(p,C,V)}; g.h.uN=function(p){p.scope===2&&(this.Fga=p);this.aH.uN(p)}; g.h.G4=function(){this.cL=!0;this.aH.G4()}; g.h.p8=function(p){this.policy.kt&&this.aH.p8(p)}; g.h.He=function(p){this.aH.He(p,this.ZM())}; g.h.aA=function(p){p.e6===3&&(this.Hj=!0);this.aH.aA(p)}; g.h.Q8=function(p){this.aH.Q8(p)}; g.h.L8=function(p){this.aH.L8(p)}; g.h.canRetry=function(){this.fS();return this.uJ.canRetry(!1)}; g.h.dispose=function(){if(!this.fS()){g.Y.prototype.dispose.call(this);this.uJ.dispose();var p;(p=this.sy)==null||p.dispose();this.UZ(-1);this.OX()}}; g.h.UZ=function(p){this.state=p;Cu(this.aH,this)}; g.h.Hf=function(){return this.info.Hf()}; g.h.D3=function(){return this.cL}; g.h.Gc=function(){return this.Fga}; g.h.k8=function(p,C,V){V.clipId&&(this.clipId=V.clipId);this.policy.W&&!C&&(this.ox=V.o9,this.u3=V.startMs);var N=0;this.policy.XT&&this.OQ&&this.clipId&&(N=zJ(this.OQ,this.clipId)/1E3);this.g6.k8(p,C,V,N);this.policy.Of&&this.C5&&this.MZ instanceof p4&&(N=this.C5.LJ,this.MZ.k8(V.durationMs/1E3,C,N>0&&V.o9+1>=N));this.g6.hc.get(p).g3=!0}; g.h.AF=function(p,C){this.g6.AF(p,C)}; g.h.cE=function(p){this.requestIdentifier=p}; g.h.iT=function(p){return this.g6.iT(p)}; g.h.Ux=function(p){return this.g6.Ux(p)}; g.h.Lp=function(p){return this.g6.Lp(p)}; g.h.yl=function(){return this.g6.yl()}; g.h.D$=function(){return 1}; g.h.ZM=function(){return this.MZ.requestNumber}; g.h.Ly=function(){return this.requestIdentifier}; g.h.Ns=function(){return this.clipId}; g.h.i9=function(){return this.sO.i9()}; g.h.bV=function(){this.OX()}; g.h.OX=function(){this.MZ.deactivate();var p;(p=this.xhr)==null||p.abort()}; g.h.isComplete=function(){return this.state>=3}; g.h.aB=function(){return this.state===3}; g.h.Ad=function(){return this.state===5}; g.h.bE=function(){return this.state===4}; g.h.jh=function(){return this.isComplete()}; g.h.Rb=function(){return this.state>=1}; g.h.r9=function(){return this.policy.qW?this.uJ.r9():0}; g.h.OB=function(){this.policy.qW&&Cu(this.aH,this)}; g.h.Xa=function(){return vjS(this.info)}; g.h.LO=function(){return this.uJ.LO()}; g.h.BP=function(){var p=RnQ(this.uJ);Object.assign(p,S5H(this.info));p.req="sabr";p.rn=this.ZM();var C;if((C=this.xhr)==null?0:C.status)p.rc=this.policy.DM?this.xhr.status:this.xhr.status.toString();var V;(C=(V=this.xhr)==null?void 0:V.FF())&&(p.msg=C);this.JZ&&(V=yRj(this,this.JZ-this.MZ.j$()),p.letm=V.ue,p.mrbps=V.Pu,p.mram=V.X9);return p}; g.h.qs=function(){return{ox:this.ox,u3:this.u3,isDecorated:this.info.isDecorated()}};qes.prototype.tick=function(p,C){this.ticks[p]=C?window.performance.timing.navigationStart+C:(0,g.Ip)()};g.m(egj,g.ca);g.h=egj.prototype; g.h.T5=function(p,C,V,N){var H=!1;this.policy.Qn&&(H=V?this.Vn===p.LS:this.sY===p.LS);if(this.Y&&N&&!H){N=[];H=[];var X=[],d=void 0,a=0;C&&(N=C.T,H=C.C,X=C.S,d=C.V,a=C.Ja);this.policy.Qn&&(V?this.Vn=p.LS:this.sY=p.LS);this.Y.MI(p.LS,p.startTime,this.C,N,H,X,V,a,d)}if(this.policy.Qn){if(V||this.policy.Uv){this.C===1&&O4(this,5,"noad");var E;p.LS!==((E=this.T)==null?void 0:E.LS)&&(wgX(this,p,C,V),isNaN(p.startTime)||$nV(this,p.LS,yN(this,p.startTime,p.LS),!!C,this.Y))}}else V&&wgX(this,p,C)}; g.h.l1=function(p,C,V){var N=this.videoTrack.T.index.Ha()<=C;this.T={xB:p,LS:C,fJ:V};N&&f4(this,p,C)}; g.h.Cg=function(){this.Y&&this.Y.Cg()}; g.h.k_=function(p,C){this.nS.k_(p,C)}; g.h.s_=function(p,C){var V=this.videoTrack.T.index.tU(p);if(V>=0){var N;var H=((N=jM(C.GB,V,2))==null?void 0:N.w2)||"";if(this.policy.W||H)return C.Wm(p,V),gSS(this.nS,p,p,V),this.k_("sdai",{cmskpad:1,t:p.toFixed(3),sq:V}),!0}this.k_("sdai",{cmskpad:0,t:p.toFixed(3),sq:V});return!1};g.m(At,g.Y);At.prototype.Zm=function(p,C,V){V=V===void 0?{}:V;this.policy.Tp=U6(p,V,this.S,C===void 0?!1:C)};p7H.prototype.M4=function(p){var C=this;if(this.policy.G2){var V=new Set(p);V.size===this.Sa.size&&[].concat(g.K(V)).every(function(N){return C.Sa.has(N)})||(this.nS.k_("lwnmow",{itagDenylist:[].concat(g.K(p)).join(",")}),this.nS.gJ(!!V.size),this.Z=-1,this.Sa=V,zX(this,this.T),this.Ga=!0)}}; p7H.prototype.Zm=function(p,C,V){V=V===void 0?{}:V;var N=this.policy.Tp;this.W.Zm(p,C===void 0?!1:C,V);if(N!==this.policy.Tp){zX(this,this.T);RA(this);var H,X;N>this.policy.Tp&&((H=this.C)==null?0:BB(H.info))&&((X=this.nextVideo)==null||!BB(X.info))&&(this.a$=!0)}};vBH.prototype.pp=function(p){this.timestampOffset=p;this.flush()}; vBH.prototype.flush=function(){if(this.T.pos>0){var p={a:this.track.DQ(),u:this.T.c6(),pd:Math.round(this.S),ad:Math.round(this.V)},C=this.C;if(C){var V=C.T.info;p.itag=V.itag;V.T&&(p.xtags=V.T);p.sq=C.LS;p.st=C.startTime;p.sd=C.duration;this.track.policy.iQ&&(p.si=C.Zh());C.S&&(p.esl=C.C+C.V);C.Vo()&&(p.eos=1)}isNaN(this.timestampOffset)||(p.to=this.timestampOffset);var N;if(C=(N=this.track.NW)==null?void 0:N.X0({})){for(var H in C)this.Y[H]!==C[H]&&(p["sb_"+H]=C[H]);this.Y=C}this.track.k_("sbu", p);this.T.reset();this.buffered=[];this.W=this.V=this.S=0;this.timestampOffset=this.C=void 0}};Kxa.prototype.dispose=function(){this.b_=!0}; Kxa.prototype.fS=function(){return this.b_}; g.m(WI,Error);var ZZ1=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);BI.prototype.skip=function(p){this.offset+=p}; BI.prototype.MB=function(){return this.offset};g.h=eBY.prototype;g.h.ou=function(){return this.C}; g.h.gP=function(){return this.C.length?this.C[this.C.length-1]:null}; g.h.H$=function(){this.C=[];pA(this);nBu(this)}; g.h.xn=function(p){this.Y_=this.C.shift().info;p.info.sE(this.Y_)}; g.h.Ux=function(){return g.AU(this.C,function(p){return p.info})}; g.h.DQ=function(){return!!this.Y.info.audio}; g.h.getDuration=function(){return this.Y.index.Ax()};g.m(em,jf);g.h=em.prototype;g.h.onStateChange=function(){this.fS()&&(K4(this.g6,this.formatId),this.T.dispose())}; g.h.BP=function(){var p=vSY(this.g6,this.formatId),C;var V=((C=this.g6.hc.get(this.formatId))==null?void 0:C.bytesReceived)||0;var N;C=((N=this.g6.hc.get(this.formatId))==null?void 0:N.ZV)||0;return{expected:p,received:V,bytesShifted:C,sliceLength:F4V(this.g6,this.formatId),isAnyMediaEndReceived:this.g6.zC(this.formatId)}}; g.h.h4=function(){return 0}; g.h.GC=function(){return!0}; g.h.iT=function(){return this.g6.iT(this.formatId)}; g.h.UG=function(){return[]}; g.h.Lp=function(){return this.g6.Lp(this.formatId)}; g.h.LO=function(){return this.lastError}; g.h.r9=function(){return 0};g.m(Vz,g.Y);g.h=Vz.prototype;g.h.DQ=function(){return!!this.T.info.audio}; g.h.gP=function(){return this.S.gP()}; g.h.xn=function(p){this.S.xn(p);var C;(C=this.J)!=null&&(C.W.add(p.info.LS),C.T=LpL(C,C.xG,C.n6,p,C.T),C.V=p,C.Y=(0,g.Ip)());this.F$=Math.max(this.F$,p.info.T.info.F$||0)}; g.h.getDuration=function(){if(this.policy.C){var p=this.nS.RI();if(p)return GG(p)}return this.T.index.Ax()}; g.h.H$=function(){wS(this);this.S.H$()}; g.h.Sh=function(){return this.S}; g.h.isRequestPending=function(p){return this.V.length?p===this.V[this.V.length-1].info.wV[0].LS:!1}; g.h.pp=function(p){var C;(C=this.J)==null||C.pp(p);var V;(V=this.Z)==null||V.pp(p)}; g.h.k_=function(p,C){this.nS.k_(p,C)}; g.h.MD=function(){return this.nS.MD()}; g.h.dispose=function(){var p;(p=this.Z)==null||p.flush();g.Y.prototype.dispose.call(this)};g.m(F0,g.Y);F0.prototype.V=function(){this.C++>15||(this.T=!this.T,new etH(this.nS,this.policy,this.n1,this.sR,this.T),this.delay.start())}; g.h=etH.prototype;g.h.nT=function(){}; g.h.w9=function(){}; g.h.Kk=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.cI()===this.size)this.nS.k_("rqs",this.getInfo());else{var p="net.connect";this.xhr.status>200?p="net.badstatus":this.xhr.iO()&&(p="net.closed");this.onError(p)}}; g.h.onError=function(p){var C=this;this.nS.handleError(p,this.getInfo());kv("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(V){C.nS.k_("pathprobe",V)},function(V){C.nS.handleError(V.errorCode,V.details)})}; g.h.getInfo=function(){var p=this.timing.cK();p.shost=So(this.location.GU);p.pb=this.size;return p};g.m(SX,g.Y); SX.prototype.D=function(p,C){if(p.D){this.hk.isLive?(p=this.hk.AE&&this.hk.S?p.T.P8(this.hk.AE,!1):p.T.V8(Infinity),p.kq=this.kq):p=p.T.P8(0,!1);if(this.a$){var V=this.a$;p.kq===0&&(p.W=V.J)}else p.W=this.Z;return p}V=p.C;if(!V.T.rI())return V.T.V1()?(p=zPa(this.W,p.T.info.F$,C.T.info.F$,0),p=V.T.Y0(V,p)):p=V.T.Jm(V),p;var N=V.zM-this.nS.getCurrentTime(),H=!V.range||V.V===0&&V.C===0?0:V.range.length-(V.C+V.V),X=V.T;this.fP(p,N)&&H===0&&(this.hk.isManifestless?X=p.T:(X=V.startTime+h6,V.V&&(X+=V.duration), gS(p,X),V=p.C,X=V.T));X.V1()?(H=this.V,C=zPa(this.W,X.info.F$,C.T.info.F$,N,H.S.length>0&&H.J===0&&this.nS.LV),N=cZ(p),p=V.T.Y0(V,C),(C=p.V)&&p.wV.length>1&&(N||p.sR.C||p.wV[0].T!==V.T?p=V.T.Y0(V,p.wV[0].V):(N=p.wV[p.wV.length-1],X=N.V/C,!N.S&&X<.4&&(p=V.T.Y0(V,C-N.V))))):(V.LS<0&&(C=bw(V),C.pr=""+p.V.length,this.nS.isSeeking()&&(C.sk="1"),C.snss=V.W,this.nS.k_("nosq",C)),p=X.Jm(V));if(this.policy.Sa)for(V=g.F(p.wV),C=V.next();!C.done;C=V.next())C.value.type=6;return p}; SX.prototype.fP=function(p,C){if(!cZ(p)||!p.T.rI())return!1;var V=this.V.Ga||KJ9(p)||C<=this.policy.fn||this.V.a$;this.logger.debug(function(){return"ready to adapt: "+V+", upgrade pending: "+KJ9(p)+", health: "+C}); return V}; SX.prototype.CS=function(){g.Y.prototype.CS.call(this)}; var h6=2/24;g.m(Zp,g.Y);Zp.prototype.q4=function(p,C,V){var N;var H=((N=this.C)==null?void 0:N.reason)==="m"?"m":this.C&&iT9(this,this.C)?this.C.reason:"a";this.nS.q4(new b2(p,H,V));Dp(this.nS,C,p,!0)}; Zp.prototype.KB=function(p,C){for(var V=g.F(this.Vn),N=V.next();!N.done;N=V.next())if(N=N.value,N.id===p)return this.wY.JX||(this.V=[N]),this.Y=this.hk.T[p],vZ(this.wY)&&(this.a$=!0),new b2(this.Y,C?"t":"m");this.V=[];return null}; Zp.prototype.Zm=function(p,C,V){V=V===void 0?{}:V;this.T.Zm(p,C===void 0?!1:C,V)};Op.prototype.Hf=function(){return this.requestType===1}; Op.prototype.aq=function(){var p;return((p=this.aH)==null?void 0:p.aq())||0}; Op.prototype.isDecorated=function(){var p;return!((p=this.data)==null||!p.eS)};yz.prototype.encrypt=function(p){this.TN.exports.AES128CTRCipher_encrypt(this.cipher,p.byteOffset,p.byteLength);return p}; yz.prototype.fS=function(){return this.cipher===0}; yz.prototype.dispose=function(){this.TN.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};q4.prototype.encrypt=function(p,C){return Ei(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:C},this.key,p).catch(function(V){return Promise.reject(V.name+": "+V.message)}).then(function(V){return new Uint8Array(V)}))}; q4.prototype.fS=function(){return this.T}; q4.prototype.dispose=function(){this.T=!0}; YW.SB(q4,{encrypt:Kjs("oan2")});IB.prototype.encrypt=function(p,C){u8(this.C,C);return Ei(this.C.encrypt(p))}; IB.prototype.fS=function(){return this.T}; IB.prototype.dispose=function(){this.T=!0}; YW.SB(IB,{encrypt:Kjs("oap")});bQ.prototype.encrypt=function(p,C){var V=this.TN.s2(C),N=this.T;N.TN.exports.AES128CTRCipher_setCounter(N.cipher,(V!=null?V:C).byteOffset);C=this.TN.s2(p);this.T.encrypt(C!=null?C:p);V&&this.TN.free(V.byteOffset);return C?Ei(this.TN.Zz(C)):Ei(p)}; bQ.prototype.fS=function(){return this.T.fS()}; bQ.prototype.dispose=function(){this.T.dispose()}; YW.SB(bQ,{encrypt:Kjs("oalw")});Igj.prototype.encrypt=function(p){(0,g.Ip)();return(new Vj(this.T.T)).encrypt(p,this.iv)}; Igj.prototype.decrypt=function(p,C){(0,g.Ip)();return(new Vj(this.T.T)).decrypt(p,C)};g.m(oB,g.Y);oB.prototype.V=function(p,C){if(C){C=C instanceof g.v1?C:kk(this,C);var V;((V=this.T.get(p))==null?void 0:So(V.location))!==So(C)&&this.T.set(p,new njj(C,p))}else this.T.delete(p)}; oB.prototype.load=function(){var p=this,C,V,N,H,X,d,a,E,l,t;return g.I(function(c){switch(c.C){case 1:C=p.T.get(0);g.vv(c,2);var T;if(T=C&&!p.C)T=So(C.location),T=p.C===s4(T);if(T){c.EY(4);break}return g.y(c,zLv(p,p.C?2:0),5);case 5:if(V=c.T)p.V(0,V),Dy(V)&&p.V(1,u5(V));case 4:g.Fe(c,3);break;case 2:N=g.Sa(c);g.eG(N);if(!p.C){c.EY(3);break}p.C=!1;return g.y(c,p.load(),7);case 7:return c.return();case 3:if(!p.yn.experiments.OY("html5_onesie_probe_ec_hosts")){c.EY(0);break}g.vv(c,9);H=p;X=H.V;d=3;return g.y(c, zLv(p,1),11);case 11:return X.call(H,d,c.T),a=p,E=a.V,l=4,g.y(c,zLv(p,2),12);case 12:E.call(a,l,c.T);g.Fe(c,0);break;case 9:t=g.Sa(c),g.eG(t),g.JQ(c)}})}; oB.prototype.D=function(){var p=this,C,V;return g.I(function(N){g.HF(p.J);C=g.mi(p.yn.experiments,"html5_onesie_prewarm_max_lact_ms");if(bV()>=C)return N.return();(V=p.T.get(0))&&Y5v(p,V);g.JQ(N)})}; var kC9={s8V:0,Bb$:1,vbk:2,tIS:3,sxV:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};eLe.prototype.decrypt=function(p){var C=this,V,N,H,X,d,a;return g.I(function(E){switch(E.C){case 1:if(C.T.length&&!C.T[0].isEncrypted)return E.return();C.C=!0;C.iF.ZE("omd_s");V=new Uint8Array(16);fW()?N=new jH(p):H=new Vj(p);case 2:if(!C.T.length||!C.T[0].isEncrypted){E.EY(4);break}X=C.T.shift();if(!N){d=H.decrypt(X.buffer.AB(),V);E.EY(5);break}return g.y(E,N.decrypt(X.buffer.AB(),V),6);case 6:d=E.T;case 5:a=d;for(var l=0;l<V.length;l++)if(V[l]===255)V[l]=0;else{V[l]+=1;break}l=C.iF;var t=X.videoId, c=X.Qz,T=X.formatId,M=new o4([a]),J;(J=Yk(l.bJ,t))==null||u2(J,c,T,M);E.EY(2);break;case 4:C.iF.ZE("omd_c"),zG(C),C.C=!1,C.iF.UU(),g.JQ(E)}})}; eLe.prototype.enqueue=function(p,C,V,N,H){this.T.push({videoId:p,Qz:C,formatId:V,buffer:N,isEncrypted:H});this.C||zG(this)};var GCH=!!Uint8Array.prototype.copyWithin,RB=[],Pxy=[],Lja=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],eX=[],nA=[],PZ=[],wkY=[];$k.prototype.l2=function(p){return g.Bbe(new g.$he(p))}; $k.prototype.g4=function(p){function C(d){if(!d.done)return X.append(d.value),H.read().then(function(a){return C(a)})} if(!("DecompressionStream"in window))return lt("native decompression unavailable");var V=new DecompressionStream("gzip"),N=V.writable.getWriter();N.write(p).then(function(){return N.close()}); var H=V.readable.getReader(),X=new o4([]);return MO(Tv(Tv(Ei(H.read()),C),function(){return X.AB()}),function(d){return lt(d.message)})}; $k.prototype.Oe=function(p,C){var V=void 0,N=C.s2(p);N&&(V=N.byteOffset,p=N);N=C.exports.getInflatedSize(p.byteOffset,p.length);if(N===0)return lt("bad compressed input");var H=C.malloc(N);if(C.exports.inflateGzip(p.byteOffset,p.length,H))return C.free(H),lt("inflateGzip failed");V&&C.free(V);return Ei(new Uint8Array(C.exports.memory.buffer,H,N))}; YW.SB($k,{l2:function(p){return{profile:"gzjb",y6:Math.ceil(p.byteLength/16)}}, g4:function(p){return{profile:"gznb",y6:Math.ceil(p.byteLength/16)}}, Oe:function(p){return{profile:"gzwb",y6:Math.ceil(p.byteLength/16)}}});g.m(HcY,vI);g.h=HcY.prototype;g.h.UU=function(){this.bJ.UU()}; g.h.Wy=function(p,C){switch(p){case 10:var V=HJ(C,lc1);p=V.Xax;var N=!1;switch(p){case 0:this.V=!V.ZF.CD;this.iv=V.ZF.iv;break;case 2:break;case 23:var H=this.bJ;V=V.Xo;H.ZE("omp_r");V.videoId&&(H.CT=V.videoId);H.CT!==H.videoData.videoId&&(H.videoData.yQ=H.CT,H.k_("ompp","vid."+H.CT));H.ge=!0;break;case 24:V=this.bJ;V.ZE("omp_c");V.ge=!1;V.S3=!1;var X=(H=V.ZQ)==null?void 0:H.get(V.CT);V.notifySubscribers(V.CT);X!=null&&(X.T=!0);WZ(V);break;default:N=!0}this.bJ.Cp&&this.bJ.k_("ombup","id.10;pt."+p+ ";len."+C.getLength()+(N?";ignored.1":""));this.S=p;break;case 11:ic1(this,C);break;case 12:this.t5(C,!0);break;case 37:C=HJ(C,tUe);(C.Fq||C.NK)&&C.videoId&&this.bJ.Ls.set(C.videoId,C);break;case 60:this.Yo(C);break;case 47:this.G("html5_server_playback_start_policy")&&(C=HJ(C,J41),this.bJ.playbackStartPolicy=C);break;case 35:this.x$(C);break;case 45:this.Ia(C);break;case 66:this.Q8(C);break;default:this.bJ.Cp&&this.bJ.k_("ombup","id."+p+";len."+C.getLength()+";ignored.1")}}; g.h.ZR=function(p){this.bJ.ZR(p)}; g.h.Yo=function(p){p=HJ(p,BY);this.bJ.Yo(p)}; g.h.Ia=function(p){p=HJ(p,Gv);this.bJ.Ia(p)}; g.h.Ki=function(p){var C=p.Qz,V=p.h9,N=p.RW,H=p.R5,X=p.o9,d=p.startMs,a=p.durationMs,E=p.timeRange,l=p.yA,t=S5(p),c=gK0.has(gO[""+p.itag]);V&&this.ZE(c?"oais_r":"ovis_r");var T=this.T[t]!==void 0;this.bJ.Cp&&this.bJ.k_("ombup","id.20;hid."+C+";fid."+t);var M=p.videoId||"";this.C[C]=t;this.W[C]=M;T||(this.T[t]={videoId:M,zJ:!1,DQ:c,headers:[]});this.T[t].headers.push(p);this.bJ.k8(M,t,c,{Qz:C,h9:!!V,RW:N!=null?N:-1,o9:X!=null?X:-1,startMs:d!=null?d:-1,durationMs:a!=null?a:-1,yA:l!=null?l:0,R5:H,timeRange:E})}; g.h.t5=function(p,C){var V=p.getUint8(0);this.bJ.Cp&&this.bJ.k_("ombup","id."+(C?12:21)+";len."+p.getLength()+";hid."+V);if(p.getLength()!==1){p=p.split(1).LM;var N=this.C[V]||null,H=this.W[V]||"";N&&(this.Cd(this.T[N].DQ?"oafs_r":"ovfs_r"),this.queue.enqueue(H,V,N,p,C))}}; g.h.AF=function(p){var C=p.getUint8(0);this.bJ.Cp&&this.bJ.k_("ombup","id.22;len."+p.getLength()+";hid."+C);p=this.C[C]||null;var V=this.W[C]||"";if(p)if(this.G("html5_use_ump_request_slicer")){var N=this.queue;N.T.push({videoId:V,Qz:C,formatId:p,isEncrypted:!1,Nd:!0});N.C||zG(N)}else this.bJ.AF(V,C,p)}; g.h.cE=function(p){this.bJ.cE(p)}; g.h.aR=function(p,C){var V=this,N,H,X,d,a,E,l,t,c,T;return g.I(function(M){switch(M.C){case 1:V.bJ.aR();N=p.AB();if(!C){X=N;M.EY(2);break}return g.y(M,mls(V.bJ,N,V.iv),3);case 3:X=M.T;case 2:H=X;if(!V.bJ.enableCompression){M.EY(4);break}a=(d=performance)==null?void 0:d.now();return g.y(M,p3X(H),5);case 5:H=M.T,V.bJ.k_("decompression",{ds:"DecompressionStream"in window,rt:((E=performance)==null?NaN:E.now())-a});case 4:try{l=HJ(H,Gcu)}catch(J){return t=J instanceof Error?{name:J.name,message:J.message}: {},t.webcrypto=""+ +!!fW(),t.enc=""+ +V.V,c=new qD("onesie.response.parse",t),M.return(Promise.reject(c))}NSX(l);T=g.wc(l.body);return M.return(T)}})}; g.h.x$=function(p){this.G("html5_consume_onesie_next_request_policy_for_sabr")&&(p=HJ(p,TtQ),this.bJ.x$(p))}; g.h.Q8=function(p){p={pJ:js(new WH(p),1,FiL)};this.bJ.Q8(p)}; g.h.ZE=function(p){this.bJ.ZE(p)}; g.h.Cd=function(p){return this.bJ.Cd(p)}; g.h.G=function(p){return this.bJ.G(p)};g.m(gZ,g.Y);g.h=gZ.prototype;g.h.Ns=function(){return""}; g.h.yl=function(p){var C,V;return((V=(C=this.ZQ)==null?void 0:C.get(p))==null?void 0:V.yl())||[]}; g.h.Lp=function(p,C){var V;return!((V=Yk(this,C))==null||!V.Lp(p))}; g.h.iT=function(p,C){var V;return((V=Yk(this,C))==null?void 0:V.iT(p))||[]}; g.h.Ux=function(p,C){var V;return((V=Yk(this,C))==null?void 0:V.Ux(p))||[]}; g.h.UZ=function(p){this.state=p;this.notifySubscribers()}; g.h.Hf=function(){return!1}; g.h.D3=function(){return!1}; g.h.Gc=function(){}; g.h.ZE=function(p){this.Ta.ZE(p)}; g.h.Cd=function(p){return this.Ta.Cd(p)}; g.h.J6=function(p,C,V,N){V||this.MZ.J6(N);return!1}; g.h.ZC=function(p,C){this.iF.ZC(p,C)}; g.h.NI=function(){this.ZE("orfb");this.oV=!0;if(vvQ(this)&&this.xhr){var p={rc:this.xhr.status,lb:this.xhr.cI(),rt:(1E3*tOv(this.MZ)).toFixed(),shost:g.LJ(this.CF),trigger:"o1"};this.k_("pathprobe",yu(p))}}; g.h.aR=function(){this.ZE("opr_r");this.GJ=!0}; g.h.k8=function(p,C,V,N){if(this.ZQ){if(!this.ZQ.has(p)){var H=new FM(this);this.ZQ.set(p,H);g.R(this,H)}var X;(X=this.ZQ.get(p))==null||X.k8(C,V,N);WZ(this);V||(this.ox=N.o9,this.u3=N.startMs)}else WZ(this)}; g.h.ZR=function(p){this.WY=p;p.xa!=null&&this.Ta.Bn(p.xa)}; g.h.Yo=function(p){this.pQ=p}; g.h.x$=function(p){p.videoId&&this.Zs.set(p.videoId,p)}; g.h.UU=function(){if(this.ZQ)for(var p=g.F(this.ZQ.keys()),C=p.next();!C.done;C=p.next()){var V=void 0;(V=this.ZQ.get(C.value))==null||V.dZ()}}; g.h.Ia=function(p){this.wC=p}; g.h.Q8=function(p){if(p==null?0:p.pJ)if(p=p.pJ.Wh){p=g.F(p);for(var C=p.next();!C.done;C=p.next())C=C.value,C.videoId&&this.Jz.set(C.videoId,C)}}; g.h.k_=function(p,C,V){this.Ta.k_(p,C,V===void 0?!1:V)}; g.h.AF=function(p,C,V){var N;(N=Yk(this,p))==null||N.AF(C,V)}; g.h.cE=function(p){this.NN.set(p.videoId,p)}; g.h.fetch=function(){var p=this,C,V,N,H,X,d,a,E,l,t,c,T,M,J,S,D,Z,f,q,A,z;return g.I(function(Q){switch(Q.C){case 1:p.logger.debug("Onesie fetch started.");p.bb?p.Js.start():p.DN.start();p.ZE("or_i");C=p.yn.experiments.OY("html5_onesie_verbose_timing");V={};N=(0,g.Ip)();H=function(P){C&&(V[P]=(0,g.Ip)()-N)}; H("loc_s");if(X=s81(p.videoData,p.kH)){Q.EY(2);break}H("loc_async");d=g.mi(p.yn.experiments,"html5_onesie_redirector_timeout_ms");return g.y(Q,aMa(p.videoData,p.kH,d),3);case 3:X=Q.T;case 2:if(!X)return p.logger.info("Onesie URL creation failed."),a={url:"0"},E=new qD("onesie.unavailable.hotconfig",a),p.Du(E),Q.return(p.PK);p.s1=So(X);H("loc_e");l=g.pk(p.yn,g.XE(p.videoData));t=!!l.T;if(!t){c=l.getValue();Q.EY(4);break}return g.y(Q,l.T,5);case 5:c=Q.T;case 4:T=c;p.G("html5_log_onesie_empty_oauth")&& !T&&p.k_("no_token",{async:t});H("oauth");M=lMa(p.playerRequest,p.yn,p.videoData,T,s4(p.s1));g.vv(Q,6);if(!Jh1(p,M)){H("or_s_sync");p.vg=chQ(M,p.Yx,p.yn,p.Ta,p.uH.onesieUstreamerConfig,(J=p.videoData.nF)==null?void 0:J.ac);Q.EY(8);break}H("or_s_async");return g.y(Q,Mmu(M,p.Yx,p.yn,p.Ta,p.uH.onesieUstreamerConfig,(S=p.videoData.nF)==null?void 0:S.ac),9);case 9:p.vg=Q.T;case 8:g.Fe(Q,7);break;case 6:return D=g.Sa(Q),p.logger.info("Failed to create OnesieRequestProto."),p.Du(D),Q.return(p.PK);case 7:return H("or_e"), C&&p.k_("oreqvt",V),p.enableCompression=p.vg.Aq.pR,p.ZE("osor"),Z=xIv(),f=g.l8(p.vg,AaH),q={method:"POST",body:f,headers:{"Content-Type":"text/plain",Referer:location.origin}},A=p.G("html5_onesie_media_capabilities"),Evu(X,p.videoData,SOH(p),A),p.logger.debug("Starting Onesie network request."),p.Cp&&p.k_("ombrs","1"),z=p.Ta.K().schedule,p.MZ=new p4(p,{n1:z,BJ:p.Cp,rW:function(P,VL){p.Ta.TP(P,VL)}, Ti:!0}),X.set("rn",""+p.MZ.requestNumber),p.CF=X.i9(),s5a(p.MZ,p.CF),p.ZE("or_p"),p.xhr=Nx(new lw(X),Z,p.MZ,gB,q),p.JP.start(),Q.return(p.PK)}})}; g.h.D$=function(){return 2}; g.h.nT=function(){this.ZE("orh_r")}; g.h.w9=function(){!this.oV&&this.xhr.cI()&&this.NI();if(this.uU&&!this.bb){var p;(p=this.El)==null||p.start()}this.bF()}; g.h.Kk=function(p){p=p===void 0?!1:p;this.logger.debug("onXhrDone");this.bF();if(!(this.fS()||this.state>=4)){var C=LA(this),V=this.xhr;C.rc=V.status;p&&(C.ab=!0);if(V.FF()){var N="onesie.net";C.msg=V.FF()}else V.status>=400?N="onesie.net.badstatus":V.Pn()?this.GJ||(N="onesie.response.noplayerresponse"):N=V.status===204?"onesie.net.nocontent":"onesie.net.connect";N?this.Du(new qD(N,C)):(this.ZE("or_fs"),this.MZ.ao((0,g.Ip)(),V.cI(),0),this.UZ(4),this.Cp&&this.k_("rqs",C));this.Cp&&this.k_("ombre", "ok."+ +!N);this.S3=!1;WZ(this);X3y(this.iF);if(!this.bb){this.DN.stop();var H;(H=this.El)==null||H.stop()}var X;if(p=(X=this.kH)==null?void 0:RLY(X))for(X=0;X<p.length;X++)this.k_("pathprobe",p[X])}}; g.h.bV=function(){if(this.playerResponse&&this.xhr&&this.ZQ)for(var p=g.F(this.ZQ.entries()),C=p.next();!C.done;C=p.next())if(C=g.F(C.value),C.next(),C.next().value.C){this.xhr.abort();this.Kk(!0);break}}; g.h.K=function(){return this.yn}; g.h.G=function(p){return this.yn.G(p)}; g.h.oe=function(){if(vvQ(this)&&this.kH&&(!this.oV||this.G("html5_onesie_probe_ec_hosts"))){var p=this.kH;if(p.yn.experiments.OY("html5_onesie_probe_ec_hosts")){var C,V=(C=p.T.get(3))==null?void 0:So(C.location);V&&xk(p,V,"osc",this);var N;(V=(N=p.T.get(4))==null?void 0:So(N.location))&&xk(p,V,"ocy",this)}else{var H;(N=(H=p.T.get(1))==null?void 0:So(H.location))&&xk(p,N,"o2",this);(N=(V=p.T.get(2))==null?void 0:So(V.location))&&xk(p,N,"o3",this)}}}; g.h.nU=function(){if(!this.fS()&&!this.isComplete()){if(this.uU){if((0,g.Ip)()-this.MZ.D>1E3){var p;(p=this.MZ)==null||p.QK((0,g.Ip)());p=LA(this);if(this.yn.Gk()&&this.xhr instanceof v$e){var C=this.xhr;p.xrs=C.xhr.readyState;p.xpb=C.T.getLength();p.xdc=C.S}this.Du(new qD("net.timeout",p))}}else(0,g.Ip)()-this.MZ.T>1E4&&((C=this.MZ)==null||C.QK((0,g.Ip)()),this.Q5());this.isComplete()||this.Js.start()}}; g.h.Q5=function(){this.logger.info("Onesie request timed out");this.S3=!1;if(!WZ(this)){var p=LA(this);p.timeout="1";this.Du(new qD("onesie.request",p))}}; g.h.Du=function(p){var C=this;p=bv(p);this.uU?this.Ta.oN(p):(this.PK.reject(p),this.uU=!0);X3y(this.iF);this.bb||this.DN.stop();this.ZE("or_fe");var V,N;(V=this.kH)==null||(N=RLY(V))==null||N.forEach(function(H){C.k_("pathprobe",H)}); this.UZ(5);this.dispose()}; g.h.isComplete=function(){return this.state>=3}; g.h.bE=function(){return this.state===4}; g.h.jh=function(p){var C,V;return this.isComplete()||!!((C=this.ZQ)==null?0:(V=C.get(p))==null?0:V.T)}; g.h.aB=function(){return!1}; g.h.Ad=function(){return this.state===5}; g.h.notifySubscribers=function(p){for(var C=0;C<this.Q9.length;C++)p&&this.Q9[C].qg()!==p||Cu(this.Q9[C],this)}; g.h.Xa=function(){var p,C;return((p=this.vg)==null?void 0:(C=p.Tv)==null?void 0:C.hZ)||0}; g.h.CS=function(){this.playerResponse="";var p;(p=this.xhr)==null||p.abort();X3y(this.iF);this.Ge.dispose();var C;(C=this.El)==null||C.dispose();this.UZ(-1);this.Q9=[];g.Y.prototype.CS.call(this)}; g.h.bF=function(){try{var p=this.xhr;p.cI()>102400&&!this.qe&&(this.ZE("or100k"),this.qe=!0);if(p.CM()){var C=p.jg(),V=C.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+V}); this.Cp&&this.k_("ombrss","len."+V);this.Ge.feed(C)}if(this.ZQ)for(var N=g.F(this.ZQ.keys()),H=N.next();!H.done;H=N.next()){var X=H.value;p=void 0;(p=this.ZQ.get(X))==null||p.dZ();this.notifySubscribers(X)}}catch(d){this.Du(d)}}; g.h.ZM=function(){return this.MZ.requestNumber}; g.h.Ly=function(p){return this.NN.get(p)}; g.h.qs=function(){return{ox:this.ox,u3:this.u3,isDecorated:!1}};g.m(Dla,g.Y);g.h=Dla.prototype;g.h.SY=function(p,C){this.a$=void 0;eWS(this);zWj(this,p,C)}; g.h.im=function(p){if(this.T.length===0)return!1;var C=this.T[0];return C instanceof gZ?p===this.nS.getCurrentTime()*1E3:!(C instanceof ZX&&FjL(C.info))&&Math.abs(C.Xa()-p)<50}; g.h.x$=function(p){this.C=p;this.a$=(0,g.Ip)()+(p.backoffTimeMs||0)}; g.h.eN=function(p,C){if(p.action===void 0){var V=this.Ta.yW();V!==void 0&&this.nS.Jx(V)}else if(p.action!==0||!this.vr)switch(p.action===0&&this.policy.xu&&(p.action=2),V={},V.reason=p.Wg_,V.action=p.action,V.rn=C,p.action){case 1:this.policy.W&&this.S&&this.S.h7(void 0,void 0,V);break;case 0:this.vr=!0;this.videoData.VL()&&this.policy.W&&this.S&&this.S.h7(void 0,void 0,V);this.nS.LR(V);break;case 2:this.nS.handleError("sabr.config",V,1);break;case 5:lRu(this.Ta,!0);break;case 6:lRu(this.Ta,!1);break; case 3:this.policy.YM&&((p=this.hk.J)!=null&&(p.J=!0),this.nS.handleError("sabr.hostfallback",V))}}; g.h.kD=function(p,C,V,N){if(this.policy.C){this.nS.k_("ssap",{rn:N,v:C,tl:w3s(p)});var H=this.nS.RI();p={Kw:p,context:V,version:C};RW1(this,V);H?nvH(this,H,p):(this.nS.k_("ssap",{cacheclips:1,rn:N,v:C}),this.D=p)}}; g.h.uN=function(p){var C=this.policy.b_||this.policy.Ox||this.policy.C;this.nS.k_("ssap",{onsbrctxt:p.type,dflt:p.sendByDefault,enable:C?1:0});C&&RW1(this,p);this.policy.Ox&&this.Ta.uN(p)}; g.h.G4=function(){}; g.h.Ia=function(p){if(p.ZY!==void 0&&p.yh){var C=p.ZY/p.yh;this.audioTrack.D=!1;this.videoTrack.D=!1;if(this.policy.sY||this.policy.hg||this.policy.jS)this.nS.BR.C=!1;this.nS.zR(C,1);if(this.Ta.getCurrentTime()!==C){var V={NZ:"sabr_seek",h6:!0,tJ:!0};p.seekSource&&(V.seekSource=p.seekSource);Q7(this.nS,C+this.policy.Ij/1E3,V)}}}; g.h.onSnackbarMessage=function(p){this.Ta.publish("onSnackbarMessage",p)}; g.h.ZR=function(p){p.LJ&&p.RV&&F1(this.hk,p.LJ,p.RV);this.policy.Z4&&(p.FM&&p.qj&&(this.hk.Tz=p.FM/p.qj),p.t0&&p.UQ&&(this.hk.lf=p.t0/p.UQ));p.xa!=null&&this.Ta.Bn(p.xa);this.policy.cP&&p.H5&&(p=((0,g.Ip)()-p.H5)/1E3,this.nS.aF.N3(1,p))}; g.h.aA=function(p){this.nS.aA(p)}; g.h.h_=function(p,C,V){this.policy.V&&this.nS.k_("sabrctxtplc",{start:p?p.join("_"):"",stop:C?C.join("_"):"",discard:V?V.join("_"):""});if(p){p=g.F(p);for(var N=p.next();!N.done;N=p.next())this.nM.add(N.value)}if(C)for(C=g.F(C),p=C.next();!p.done;p=C.next())p=p.value,this.nM.has(p)&&this.nM.delete(p);if(V)for(V=g.F(V),C=V.next();!C.done;C=V.next())C=C.value,this.videoData.sabrContextUpdates.has(C)&&(this.videoData.sabrContextUpdates.delete(C),C===3&&(this.videoData.Ik=""))}; g.h.p8=function(){}; g.h.He=function(p,C){zt9(this.policy,p,4,C)}; g.h.Q8=function(p){if(p==null?0:p.pJ)if(p=p.pJ.Wh){p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(C=C.value,C.formatId){var V=this.hk.V.get(S5(C.formatId));V&&V.info&&(V.info.debugInfo=C.debugInfo)}}}; g.h.L8=function(p){(p=p==null?void 0:p.reloadPlaybackParams)&&this.Ta.publish("reloadplayer",p)}; g.h.qg=function(){return this.Ta.qg()||""}; g.h.aq=function(){var p=sp(this.audioTrack,!0)*1E3,C=sp(this.videoTrack,!0)*1E3;return Math.min(p,C)}; g.h.Vr=function(p,C){this.nS.k_(p,C)}; g.h.nz=function(p){aXu(this.nS,sIX(this.Y_,p))}; g.h.CS=function(){g.Y.prototype.CS.call(this);this.C=void 0;zWj(this,!0,"i");this.T=[]};$lL.prototype.f7=function(p,C){if(this.S)return rhX(this,C);if(C=rS(p)){var V=C.C;V&&V.V&&V.T&&(p=p.V.length?p.V[0]:null)&&p.state>=2&&!p.Ad()&&p.info.kq===0&&(this.S=p,this.D=V,this.C=C.info,this.Y=this.startTimeSecs=Date.now()/1E3,this.W=this.C.startTime)}return NaN}; $lL.prototype.clear=function(){this.C=this.D=this.S=null;this.T=this.W=this.Y=this.startTimeSecs=NaN;this.V=!1};g.m(g.Hu,g.Y);g.h=g.Hu.prototype;g.h.initialize=function(p,C,V){this.logger.debug(function(){return"Initialized, t="+p}); p=p||0;this.policy.T||(C=EBu(this.T),tfs(this.Ta,new b2(C.video,C.reason)),this.Ta.Sg(new b2(C.audio,C.reason)));this.hk.isManifestless&&VQv(this.S);this.Y&&gvS(this.Y,this.videoTrack.T);C=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var N=!this.hk.isManifestless;this.policy.nA&&(N=N||this.hk.EO);this.policy.Wr||(this.currentTime=N?p:C);this.policy.sY&&this.seek(this.getCurrentTime(),{}).Rz(function(){}); if(this.policy.T){var H;((H=this.a$)==null?0:Kv9(H,this.qg()||""))&&jAy(this)&&C2j(this,this.videoTrack)&&C2j(this,this.audioTrack)&&(PT9(this.J,this.a$),this.policy.Y&&pIH(this))}else this.b_&&(VfQ(this,this.videoTrack),VfQ(this,this.audioTrack),mne(this.b_),delete this.b_);V?(this.policy.d6?(this.ER=V,iF(this,V)):iF(this,!1),g.HF(this.Zb)):(V=this.getCurrentTime()===0,KA(this.S,this.videoTrack,this.videoTrack.T,V),KA(this.S,this.audioTrack,this.audioTrack.T,V),this.policy.T&&Ulu(this.J,!0),this.policy.sY|| this.seek(this.getCurrentTime(),{}).Rz(function(){}),this.timing.tick("gv")); (this.hk.AE||this.hk.Qx||this.hk.vr||this.hk.YM||this.hk.qW)&&this.Ta.y9(this.hk)}; g.h.resume=function(){if(this.isSuspended||this.LV){this.logger.debug("Resumed.");this.PJ=this.LV=this.isSuspended=!1;try{this.f7()}catch(p){g.nm(p)}}}; g.h.Gh=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;this.logger.debug("detaching media source");dxs(this);Hj(this.Ta)&&(this.W=NaN);p?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.vr&&this.k_("loader",{setsmb:1}),this.policy.Sa=!0,this.H$()):(this.policy.d6?iF(this,this.ER):iF(this,!1),C||this.H$())}; g.h.setAudioTrack=function(p,C,V){V=V===void 0?!1:V;if(!this.fS()){var N=!isNaN(C);V&&N&&(this.audioTrack.a$=Date.now(),this.policy.iW&&(this.UY=!0));if(this.policy.T){var H=this.C.KB(p.id,N);this.logger.debug(function(){return"Logging new audio format: "+H.T.info.id}); this.Ta.Sg(H)}else{var X=hBy(this.T,p.id,N);this.logger.debug(function(){return"Logging new audio format: "+X.audio.info.id}); this.Ta.Sg(new b2(X.audio,X.reason))}if(N&&(V=this.audioTrack.T.index.tU(C),this.k_("setAudio",{id:p.id,cmt:C,sq:V}),V>=0)){this.policy.T&&(this.C.J=!0,this.SY(!0,"mosaic"));SWe(this.audioTrack,V,NaN,NaN);!this.policy.o6&&this.hk.isLive&&vb(this.hk,V,!1);return}this.Ta.wP()}}; g.h.setPlaybackRate=function(p){p!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(p)}; g.h.q4=function(p){var C=p.T.info.DQ();this.logger.debug(function(){return"New "+(C?"audio":"video")+" format from SABR: "+iX(p.T.info)}); C?this.Ta.Sg(p):tfs(this.Ta,p)}; g.h.nz=function(p){yv(p.wV[p.wV.length-1])&&aXu(this,sIX(this.T,p.wV[0].T))}; g.h.Ib=function(){return this.Ta.Ib()}; g.h.rM=function(){return this.Ta.rM()}; g.h.aA=function(p){this.Ta.K().Gk()&&this.k_("sps",{status:p.e6||""});if(p.e6===1)this.Ta.videoData.Vm=0;else if(p.e6===2||p.e6===3){var C=!1;if(p.e6===3){C=this.Ta.kh();var V;this.wy=(V=p.H7n)!=null?V:Infinity;this.Ta.videoData.Vm=C+1;(C=j$9(this))&&Y4u(this,!0)}this.Ta.ZG(!0,C)}}; g.h.qP=function(){return this.Ta.qP()}; g.h.xm=function(){return this.Ta.xm()}; g.h.bd=function(p){this.Ta.bd(p)}; g.h.C9_=function(){var p,C=(p=this.Ta.Nt())==null?void 0:p.getCurrentTime();C?this.Ta.k_("rms",{cta:C}):g.HF(this.Q$)}; g.h.f7=function(){sAj(this);if(this.Hr&&j6(this.Hr)&&!this.Hr.SO()&&(!this.policy.Wr||isFinite(this.getCurrentTime()))){var p=HZ(this.videoTrack);p=this.policy.ub&&p&&p.Vo();this.hk.isManifestless&&this.hk.S&&TF(this.hk)?(this.W=TF(this.hk),this.Hr.Nr(this.W)):SO(this.hk)&&!p?isNaN(this.W)?(this.W=this.getCurrentTime()+3600,this.Hr.Nr(this.W)):this.W<=this.getCurrentTime()+1800&&(this.W=Math.max(this.W+1800,this.getCurrentTime()+3600),this.Hr.Nr(this.W)):this.Hr.isView||(p=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.W)||this.W!==p)&&p>0&&(this.Hr.Nr(p),this.W=p))}if(!this.fS())if(cb(this.hk)&&this.hk.Ad()){var C=this.hk;this.handleError("manifest.net.retryexhausted",C.KS?{rc:C.zI}:{rc:C.zI.toString()},1)}else if(this.policy.T)a:{try{kJs(this.J);this.hk.isManifestless&&this.policy.Y&&W3(this.BR);if(XIv(this)&&this.Hr&&!XO(this.Hr)&&this.videoTrack.vr&&this.audioTrack.vr){this.k_("ssap",{delaysb:1,v:this.videoTrack.T.info.id,vf:this.videoTrack.T.info.o$,a:this.audioTrack.T.info.id, af:this.audioTrack.T.info.o$});var V=this.Hr,N=this.videoTrack.T,H=this.audioTrack.T;!XO(V)&&H&&N&&(Kzu(V,N.info,H.info,this.policy.cV),i4a(this,V))}var X;((X=this.Hr)==null?0:XO(X))&&this.VX();this.policy.T||dX(this);Ulu(this.J)}catch(a){g.eG(a);C=a;if(C.message.includes("changeType")){this.k_("ssap",{exp:C.name,msg:C.message,s:C.stack});break a}this.handleError("fmt.unplayable",{exp:C.name,msg:C.message,s:C.stack},1)}q41(this);g.HF(this.Qn)}else if(!this.hk.C||!ZfS(this.videoTrack)&&!ZfS(this.audioTrack)|| (this.videoTrack.W||this.audioTrack.W)&&this.policy.ER?V=!1:(this.H$(),this.Ta.seekTo(Infinity,{NZ:"checkLoaderTracksSync",zR:!0}),V=!0),!V){sAj(this);this.hk.isManifestless&&(UIv(this.videoTrack),UIv(this.audioTrack),W3(this.BR),(V=rS(this.videoTrack))&&V.C&&(V=V.C.V&&!this.policy.yV,this.k_(V===this.policy.J.q3?"strm":"strmbug",{strm:V,sfmp4:this.policy.J.q3,dfs:this.policy.yV},!0)));if(this.Hr)this.VX();else if(this.policy.S){var d;V=!1;if(this.policy.FD)for(N=g.F([this.videoTrack,this.audioTrack]), H=N.next();!H.done;H=N.next()){X=H.value;for(H=rS(X);H&&X.gP()!==HZ(X);H=rS(X))X.xn(H);V=V||!!H}else(C=rS(this.videoTrack))&&this.videoTrack.xn(C),(d=rS(this.audioTrack))&&this.audioTrack.xn(d);dZ(this.videoTrack)&&dZ(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(C||d||V)&&pu(this)}dX(this);KA(this.S,this.videoTrack,this.videoTrack.T,!1);KA(this.S,this.audioTrack,this.audioTrack.T,!1);this.policy.r3||lX1(this,this.videoTrack,this.audioTrack);gAs(this.S,this.videoTrack, this.audioTrack);gAs(this.S,this.audioTrack,this.videoTrack);q41(this);this.Y&&(C=this.Y,C.S?(d=C.Y+C.policy.Aa,C.V||(d=Math.min(d,C.startTimeSecs+C.policy.Ov)),C=Math.max(0,d*1E3-Date.now())):C=NaN,isNaN(C)||g.HF(this.qW,C));g.HF(this.Qn)}}; g.h.LR=function(p){this.Ta.LR(p)}; g.h.VX=function(){var p=this;if(this.Hr){var C=this.Hr.T,V=this.Hr.C;kXv(this,this.audioTrack);kXv(this,this.videoTrack);var N=TdL(this);if(N){if(this.policy.Kt){if(!C.jA()){var H=rS(this.audioTrack);if(H){if(!Na(this,this.audioTrack,C,H.info))return;mxL(this,this.audioTrack,C,H)}}if(!V.jA()&&(H=rS(this.videoTrack))){if(!Na(this,this.videoTrack,V,H.info))return;mxL(this,this.videoTrack,V,H)}}this.vP||(this.vP=(0,g.Ip)(),this.logger.debug(function(){return"Appends pause start "+p.vP+" reason "+N}), this.policy.V&&this.k_("apdps",{r:N}))}else if(this.vP&&(ctv(this,this.vP),this.vP=0),Mfs(this),H=!1,this.policy.C&&M4(this.videoTrack)||!KBX(this,this.videoTrack,V)||(H=!0,ARX(this.timing),YeQ(this.timing)),this.Hr&&!this.Hr.gI()&&(this.policy.C&&M4(this.audioTrack)||!KBX(this,this.audioTrack,C)||(H=!0,oSe(this.timing),zgH(this.timing)),!this.fS()&&this.Hr)){if(!this.policy.KS&&dZ(this.videoTrack)&&dZ(this.audioTrack)&&j6(this.Hr)&&!this.Hr.SO()){V=!1; V=HZ(this.audioTrack);if(this.policy.C){var X;C=(X=this.Ze)==null?void 0:R8(X,V.Qi*1E3);V=!(!C||C.clipId!==V.clipId);this.k_("ssap",{eos:V})}else X=V.T,V=X===this.hk.T[X.info.id];V&&(this.logger.debug("Setting EOS"),DyQ(this.Hr),YTa(this.schedule))}H&&!this.Hr.isAsync()&&pu(this)}}}; g.h.uD=function(p){var C,V=p===((C=this.Hr)==null?void 0:C.T)?this.audioTrack:this.videoTrack,N;(N=V.Vn)==null||N.stop();var H;if((H=rS(V))==null?0:H.isLocked){if(this.Ta.K().Gk()){var X;this.k_("eosl",{ounlock:(X=rS(V))==null?void 0:X.info.Zh()})}var d;O4u(this,p===((d=this.Hr)==null?void 0:d.T))}var a;if(this.policy.iW&&p===((a=this.Hr)==null?void 0:a.T)&&this.KS){C=this.KS-this.getCurrentTime();var E;this.Ta.k_("asl",{l:C,xtag:(E=HZ(this.audioTrack))==null?void 0:E.T.info.T});this.UY=!1;this.KS= 0}p.Ii()&&p.K7().length===0&&(p.aO(),this.Hr&&!this.Hr.Ii()&&(this.Ta.K().Gk()&&this.Ta.k_("rms",{ld:"seek"}),this.Hr.Y=performance.now(),this.Ta.O$(),this.Ta.K().Gk()&&g.HF(this.Q$)));var l;(l=V.Z)!=null&&wd(l,0);this.policy.X$&&this.policy.JF&&this.Hr&&(V=p.ye())&&V.Vo()&&!EJ(p.K7(),Math.min(V.Qi+h6,V.zM))&&this.k_("sbunb",{st:V.Qi,et:V.zM});this.policy.wy?CxX(this):this.f7()}; g.h.mo$=function(p){if(this.Hr){var C=HZ(p===this.Hr.T?this.audioTrack:this.videoTrack);if(p=p.Nk())for(var V=0;V<p.length;V++)this.k_("appendedbuffer",{i:V,b:g.mq(p[V].subarray(0,4096),3)});p=void 0;C&&(p=bw(C),this.policy.C&&this.Ze&&this.Ze.yv()&&(p.ccid=this.Ze.yv()));this.handleError("fmt.unplayable",p,1)}}; g.h.EA=function(p){this.Ta.EA(p)}; g.h.T5=function(p,C,V){this.hk.isManifestless&&dI9(this,C,V,!!p.info.video,!0)}; g.h.l1=function(p,C,V,N){p.info.video&&this.V.l1(C,V,N)}; g.h.M4=function(p){this.T.M4(p)}; g.h.ST=CY(18);g.h.hK=function(p){this.Ze=p;var C;(C=this.audioTrack.J)!=null&&(C.GB=p);(C=this.videoTrack.J)!=null&&(C.GB=p);C=this.J;C.D&&(C.nS.k_("ssap",{addcacheclips:1,v:C.D.version,tl:w3s(C.D.Kw)}),nvH(C,p,C.D),C.D=void 0)}; g.h.RI=function(){return this.Ze}; g.h.US=function(){return this.videoTrack.D||this.audioTrack.D}; g.h.seek=function(p,C){if(this.fS())return fJ();if(this.US())return fJ("seeking to head");if(this.policy.sY&&!isFinite(p))return CoQ(this.BR),U8(Infinity);sAj(this);this.Z$=(0,g.Ip)();this.policy.T||dX(this,p);this.Hr&&this.Hr.T&&this.Hr.C&&!this.Ta.getVideoData().CG&&(this.Hr.T.isLocked()||this.Hr.C.isLocked())&&this.Ta.wP({reattachOnLockedBuffer:1,vsb:""+this.Hr.C.isLocked(),asb:""+this.Hr.T.isLocked()});var V=this.getCurrentTime(),N=this.BR.seek(p,C);this.policy.Wr||(this.currentTime=N);qx(this.V, p,V,this.policy.Rj&&!C.h6);pu(this);return U8(N)}; g.h.im=function(p){return this.policy.T&&this.J.im(p)}; g.h.SY=function(p,C){this.J.SY(p,C)}; g.h.getCurrentTime=function(){if(this.policy.Wr){var p=this.yZ()||0;return this.Ta.getCurrentTime()-p}return this.currentTime}; g.h.Tc=function(){return this.audioTrack.T.info}; g.h.dc=function(){return this.videoTrack.T.info}; g.h.y5=function(){return this.audioTrack.T.info.o$}; g.h.bI=function(){return this.videoTrack.T.info.o$}; g.h.CS=function(){try{this.Gh(),wS(this.audioTrack),wS(this.videoTrack),TG(this.audioTrack),TG(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.Y.prototype.CS.call(this)}catch(p){g.nm(p)}}; g.h.handleError=function(p,C,V){V=V===void 0?0:V;var N=Ir(V);p==="fmt.unplayable"&&this.hk.isLive&&(this.policy.Kt=!1,m6(this.hk));C=new qD(p,C,V);g.$H(this);yu(C.details);this.Ta.handleError(C);p!=="html5.invalidstate"&&C.errorCode!=="fmt.unplayable"&&p!=="fmt.unparseable"&&N&&this.dispose()}; g.h.X0=function(){var p=HZ(this.audioTrack),C=HZ(this.videoTrack);p={lct:this.getCurrentTime().toFixed(3),lsk:this.BR.isSeeking(),lmf:this.T.T.isLocked(),lbw:TM(this.schedule).toFixed(3),lhd:tR(this.schedule).toFixed(3),lst:((this.schedule.D.Kd()||0)*1E9).toFixed(3),laa:p?p.Zh():"",lva:C?C.Zh():"",lar:this.audioTrack.C?this.audioTrack.C.Zh():"",lvr:this.videoTrack.C?this.videoTrack.C.Zh():"",laq:""+iQ(this.audioTrack),lvq:""+iQ(this.videoTrack)};this.Hr&&!this.Hr.gI()&&this.Hr.T&&this.Hr.C&&(p.lab= sJ(this.Hr.T.K7()),p.lvb=sJ(this.Hr.C.K7()));this.vP&&(p.lapt=((0,g.Ip)()-this.vP).toFixed(0),p.lapr=TdL(this));this.Sa&&(p.lapmabht=((0,g.Ip)()-this.Sa).toFixed(0),p.lapmabh=Lc(this,this.audioTrack).toFixed(0));this.vr&&(p.lapmvbht=((0,g.Ip)()-this.vr).toFixed(0),p.lapmvbh=Lc(this,this.videoTrack).toFixed(0));this.Wr&&(p.lapsdai=((0,g.Ip)()-this.Wr).toFixed(0));return p}; g.h.H$=function(){try{this.policy.T&&this.J.SY(!1,"pending"),this.audioTrack.H$(),this.videoTrack.H$()}catch(p){g.nm(p)}this.policy.S=""}; g.h.Xh=function(){return xv(this.Z)}; g.h.k_=function(p,C,V){this.Ta.k_(p,C,V===void 0?!1:V)}; g.h.qg=function(){return this.Ta.qg()}; g.h.zR=function(p,C){p/=C;isNaN(this.timestampOffset)&&xxL(this,p-Math.min(p,this.policy.Gy));return(p-this.timestampOffset)*C}; g.h.yZ=function(){return this.timestampOffset}; g.h.isSeeking=function(){return this.BR.isSeeking()}; g.h.Cg=function(){this.V.Cg()}; g.h.Zm=function(p,C,V){C=C===void 0?!1:C;V=V===void 0?{}:V;this.policy.T?this.C.Zm(p,C,V):this.T.Zm(p,C,V)}; g.h.v9=function(p,C){if(!this.D)return!1;var V=this.videoTrack.T.index.tU(p);return this.D.v9(p,C,V)}; g.h.s_=function(p,C){if(this.D&&this.V.s_(p,this.D))return xxL(this,this.timestampOffset-C),pu(this),this.policy.W&&(m6(this.hk),TG(this.audioTrack),TG(this.videoTrack),this.H$()),!0;C=this.videoTrack.T.index.tU(p);this.handleError("ad.skipfailed",{dec:!!this.D,t:p.toFixed(3),sq:C});return!1}; g.h.getManifest=function(){return this.hk}; g.h.isOffline=function(){return!!this.Ta.getVideoData().cotn}; g.h.TP=function(p,C){this.Ta.TP(p,C)}; g.h.WC=function(p){if(this.policy.Tz)this.policy.T&&this.J.SY(!0,"utc"),this.f7();else{var C=this.Ta.getVideoData().TU;if(C){var V=this.S;V.mf=p;V.TU=C;uQ(this)}}}; g.h.Jx=function(p){this.videoTrack.D=!1;this.audioTrack.D=!1;this.BR.C=!1;this.Ta.Jx(p)}; g.h.ir=function(p){this.BR.ir(p-this.yZ())}; g.h.kW=function(){this.Ta.kW()}; g.h.tZ=function(p,C){var V=this.audioTrack.NW,N=this.videoTrack.NW;V&&N&&(V.remove(p,C),N.remove(p,C))}; g.h.wP=function(p){this.Ta.wP(p)}; g.h.gJ=function(p){this.Ta.gJ(p)}; g.h.kh=function(){return this.Ta.kh()};g.h=g.aV.prototype;g.h.UI=function(p,C,V,N,H,X){return this.GB.UI(p,C,V,N,H,X)}; g.h.i5=function(p,C,V,N,H,X){return this.GB.i5(p,C,V,N,H,X)}; g.h.HG=function(p){return this.GB.HG(p)}; g.h.L3=function(p){this.GB.L3(p)}; g.h.h7=function(p,C,V){return this.GB.h7(p,C,V)}; g.h.Cg=function(){this.GB.Cg()}; g.h.v9=function(p,C,V){return this.GB.v9(p,C,V)}; g.h.Wm=function(p,C){this.GB.Wm(p,C)}; g.h.jK=function(){this.GB.jK()}; g.h.FZ=CY(38);g.h.x9=function(p,C,V){this.GB.x9(p,C,V)}; g.h.Tn=CY(40);g.h.MI=function(p,C,V,N,H,X,d,a,E){this.GB.MI(p,C,V,N,H,X,d,a,E)}; g.h.L2=function(p){this.GB.L2(p)}; g.h.qE=function(p){return this.GB.qE(p)}; g.h.GG=function(p){return this.GB.GG(p)};g.m(EZ,g.ca);g.m(lF,EZ);lF.prototype.Y=function(p,C){if(p&&C){var V=Number(CN(p,"cpi"))*1+1;isNaN(V)||V<=0||V<this.V?(this.S.stop(),this.C.stop(),this.V=-1,this.T={}):(V>this.V&&(this.V=V,g.k5(this.T)||(this.T={},this.S.stop(),this.C.stop())),this.T[C]=p,g.HF(this.C))}}; lF.prototype.W=function(){for(var p=g.F(Object.keys(this.T)),C=p.next();!C.done;C=p.next()){var V=C.value;C=this.publish;for(var N=this.V,H=this.T[V].match(wA),X=[],d=g.F(H[6].split("&")),a=d.next();!a.done;a=d.next())a=a.value,a.indexOf("cpi=")===0?X.push("cpi="+N.toString()):a.indexOf("ek=")===0?X.push("ek="+g.N$(V)):X.push(a);H[6]="?"+X.join("&");V="skd://"+H.slice(2).join("");H=V.length*2;N=new Uint8Array(H+4);N[0]=H%256;N[1]=(H-N[0])/256;for(H=0;H<V.length;++H)N[H*2+4]=V.charCodeAt(H);C.call(this, "rotated_need_key_info_ready",new QN(N,"fairplay",!0))}this.T={}}; lF.prototype.CS=function(){this.T={};EZ.prototype.CS.call(this)};g.m(t6,EZ); t6.prototype.W=function(p){var C;a:{if((C=p.cryptoPeriodIndex)&&this.T.length>0)for(var V=g.F(this.T),N=V.next();!N.done;N=V.next())if(C===N.value.info.cryptoPeriodIndex){C=!0;break a}C=!1}if(!C){C=(0,g.Ip)();a:{V=p.cryptoPeriodIndex;if(!isNaN(V)){N=g.F(this.V.values());for(var H=N.next();!H.done;H=N.next())if(Math.abs(H.value.cryptoPeriodIndex-V)<=1){V=!0;break a}}V=!1}V?(V=p.T,V=Math.max(0,Math.random()*((isNaN(V)?120:V)-30))*1E3):V=0;this.publish("log_qoe",{wvagt:"delay."+V,cpi:p.cryptoPeriodIndex,reqlen:this.T.length, ignore:this.S});V<=0?eb1(this,p):this.S||(this.T.push({time:C+V,info:p}),g.HF(this.C,V))}}; t6.prototype.CS=function(){this.T=[];EZ.prototype.CS.call(this)};var T_={},gdY=(T_.DRM_TRACK_TYPE_AUDIO="AUDIO",T_.DRM_TRACK_TYPE_SD="SD",T_.DRM_TRACK_TYPE_HD="HD",T_.DRM_TRACK_TYPE_UHD1="UHD1",T_);g.m($xe,g.Y);g.m(QAa,g.ca);g.h=QAa.prototype;g.h.Ct=function(p){var C=this;this.fS()||p.size<=0||(p.forEach(function(V,N){var H=q6(C.C)?N:V;N=new Uint8Array(q6(C.C)?V:N);q6(C.C)&&lpH(N);V=g.mq(N,4);lpH(N);N=g.mq(N,4);C.T[V]?C.T[V].status=H:C.T[N]?C.T[N].status=H:C.T[V]={type:"",status:H}}),iAS(this,","),cu(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.h.error=function(p,C,V,N){this.fS()||(this.publish("licenseerror",p,C,V,N),p==="drm.provision"&&(p=(Date.now()-this.Y)/1E3,this.Y=NaN,this.publish("ctmp","provf",{et:p.toFixed(3)})));Ir(C)&&this.dispose()}; g.h.shouldRetry=function(p,C){return this.Sa&&this.D?!1:!p&&this.requestNumber===C.requestNumber}; g.h.CS=function(){this.T={};g.ca.prototype.CS.call(this)}; g.h.X0=function(){var p={ctype:this.Z.contentType||"",length:this.Z.initData.length,requestedKeyIds:this.Vn,cryptoPeriodIndex:this.cryptoPeriodIndex};this.V&&(p.keyStatuses=this.T);return p}; g.h.getInfo=function(){var p=this.S.join();if(TK(this)){var C=new Set,V;for(V in this.T)this.T[V].status!=="usable"&&C.add(this.T[V].type);p+="/UKS."+Array.from(C)}return p+="/"+this.cryptoPeriodIndex}; g.h.i9=function(){return this.url};g.m(Ma,g.Y);g.h=Ma.prototype;g.h.m4=function(p){if(this.W){var C=p.messageType||"license-request";this.W(new Uint8Array(p.message),C)}}; g.h.Ct=function(){this.D&&this.D(this.T.keyStatuses)}; g.h.onClosed=function(){this.fS()||g.gm("xboxone")&&this.V&&this.V("closed")}; g.h.hP=function(p){this.W&&this.W(p.message,"license-request")}; g.h.Gr=function(p){if(this.V){if(this.C){var C=this.C.error.code;p=this.C.error.systemCode}else C=p.errorCode,p=p.systemCode;this.V("t.prefixedKeyError;c."+C+";sc."+p,C,p)}}; g.h.N6=function(){this.Y&&this.Y()}; g.h.update=function(p){var C=this;if(this.T)return($$.isActive()?$$.zz("emeupd",function(){return C.T.update(p)}):this.T.update(p)).then(null,FF(function(V){cIL(C,"t.update",V)})); this.C?this.C.update(p):this.element.addKey?this.element.addKey(this.J.keySystem,p,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.J.keySystem,p,this.initData,this.sessionId);return YD()}; g.h.CS=function(){this.T&&(this.Z?this.T.close().catch(g.eG):this.T.close());this.element=null;g.Y.prototype.CS.call(this)};g.m(J6,g.Y);g.h=J6.prototype;g.h.fN=function(){var p=this;if(this.T.keySystemAccess)return($$.isActive()?$$.zz("emenew",function(){return p.T.keySystemAccess.createMediaKeys()}):this.T.keySystemAccess.createMediaKeys()).then(function(V){if(!p.fS())if(p.C=V,$$.isActive())$$.zz("emeset",function(){return p.element.setMediaKeys(V)}); else{var N;(N=p.element)==null||N.setMediaKeys(V)}}); if(yM(this.T))this.V=new (O6())(this.T.keySystem);else if(I5(this.T)){this.V=new (O6())(this.T.keySystem);var C;(C=this.element)==null||C.webkitSetMediaKeys(this.V)}else $$.isActive()&&this.k_("emev",{v:"01b"}),bO(this.W,this.element,["keymessage","webkitkeymessage"],this.iD),bO(this.W,this.element,["keyerror","webkitkeyerror"],this.z_),bO(this.W,this.element,["keyadded","webkitkeyadded"],this.vT);return null}; g.h.setServerCertificate=function(){return this.C.setServerCertificate?this.T.flavor==="widevine"&&this.T.td?this.C.setServerCertificate(this.T.td):Az(this.T)&&this.T.UY?this.C.setServerCertificate(this.T.UY):null:null}; g.h.createSession=function(p,C){var V=p.initData;if(this.T.keySystemAccess){C&&C("createsession");var N=this.C.createSession();bo(this.T)?V=TZL(V,this.T.UY):Az(this.T)&&(V=ndX(V)||new Uint8Array(0));C&&C("genreq");var H=$$.isActive()?$$.zz("emegen",function(){return N.generateRequest(p.contentType,V)}):N.generateRequest(p.contentType,V); var X=new Ma(null,null,null,N,null,this.D);H.then(function(){C&&C("genreqsuccess")},FF(function(a){cIL(X,"t.generateRequest",a)})); return X}if(yM(this.T))return JIV(this,V);if(I5(this.T))return MXy(this,V);if((H=this.element)==null?0:H.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,V);else{var d;(d=this.element)==null||d.webkitGenerateKeyRequest(this.T.keySystem,V)}return this.S=new Ma(this.element,this.T,V,null,null,this.D)}; g.h.iD=function(p){var C=m4v(this,p);C&&C.hP(p)}; g.h.z_=function(p){var C=m4v(this,p);C&&C.Gr(p)}; g.h.vT=function(p){var C=m4v(this,p);C&&C.N6(p)}; g.h.getMetrics=function(){if(this.C&&this.C.getMetrics)try{var p=this.C.getMetrics()}catch(C){}return p}; g.h.CS=function(){this.V=this.C=null;var p;(p=this.S)==null||p.dispose();p=g.F(Object.values(this.Y));for(var C=p.next();!C.done;C=p.next())C.value.dispose();this.Y={};g.Y.prototype.CS.call(this);delete this.element};g.h=ms.prototype;g.h.get=function(p){p=this.findIndex(p);return p!==-1?this.values[p]:null}; g.h.remove=function(p){p=this.findIndex(p);p!==-1&&(this.keys.splice(p,1),this.values.splice(p,1))}; g.h.removeAll=function(){this.keys=[];this.values=[]}; g.h.set=function(p,C){var V=this.findIndex(p);V!==-1?this.values[V]=C:(this.keys.push(p),this.values.push(C))}; g.h.findIndex=function(p){return g.gY(this.keys,function(C){return g.af(p,C)})};g.m(SpL,g.ca);g.h=SpL.prototype;g.h.Q$_=function(p){this.Zu({onecpt:1});p.initData&&u0Y(this,new Uint8Array(p.initData),p.initDataType)}; g.h.u0S=function(p){this.Zu({onndky:1});u0Y(this,p.initData,p.contentType)}; g.h.EA=function(p){this.Zu({onneedkeyinfo:1});this.yn.G("html5_eme_loader_sync")&&(this.D.get(p.initData)||this.D.set(p.initData,p));D4Q(this,p)}; g.h.jc=function(p){this.V.push(p);vu(this)}; g.h.createSession=function(p){var C=U49(this)?oB1(p):g.mq(p.initData);this.C.get(C);this.Vn=!0;p=new QAa(this.videoData,this.yn,p,this.drmSessionId);this.C.set(C,p);p.subscribe("ctmp",this.jM,this);p.subscribe("keystatuseschange",this.Ct,this);p.subscribe("licenseerror",this.ZD,this);p.subscribe("newlicense",this.fL,this);p.subscribe("newsession",this.WQ,this);p.subscribe("sessionready",this.DF,this);p.subscribe("fairplay_next_need_key_info",this.E3,this);this.yn.G("html5_enable_vp9_fairplay")&&p.subscribe("qualitychange", this.f0,this);this.yn.G("html5_enable_sabr_drm_hd720p")&&p.subscribe("sabrlicenseconstraint",this.nGx,this);pZS(p,this.S)}; g.h.fL=function(p){this.fS()||(this.Zu({onnelcswhb:1}),p&&!this.heartbeatParams&&(this.heartbeatParams=p,this.publish("heartbeatparams",p)))}; g.h.WQ=function(){this.fS()||(this.Zu({newlcssn:1}),this.V.shift(),this.Vn=!1,vu(this))}; g.h.DF=function(){if(yM(this.T)&&(this.Zu({onsnrdy:1}),this.vr--,this.vr===0)){var p=this.a$,C,V;(C=p.element)==null||(V=C.msSetMediaKeys)==null||V.call(C,p.V)}}; g.h.Ct=function(p){if(!this.fS()){!this.Wr&&this.videoData.G("html5_log_drm_metrics_on_key_statuses")&&(fpQ(this),this.Wr=!0);this.Zu({onksch:1});var C=this.f0;if(!TK(p)&&g.G4&&p.C.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var V="large";else{V=[];var N=!0;if(TK(p))for(var H=g.F(Object.keys(p.T)),X=H.next();!X.done;X=H.next())X=X.value,p.T[X].status==="usable"&&V.push(p.T[X].type),p.T[X].status!=="unknown"&&(N=!1);if(!TK(p)||N)V=p.S;V=d4e(V)}C.call(this,V);this.publish("keystatuseschange", p)}}; g.h.jM=function(p,C){this.fS()||this.publish("ctmp",p,C)}; g.h.E3=function(p,C){this.fS()||this.publish("fairplay_next_need_key_info",p,C)}; g.h.ZD=function(p,C,V,N){this.fS()||(this.videoData.G("html5_log_drm_metrics_on_error")&&fpQ(this),this.publish("licenseerror",p,C,V,N))}; g.h.F_=function(){return this.J}; g.h.f0=function(p){var C=g.jo("auto",p,!1,"l");if(this.videoData.Kq){if(this.J.sE(C))return}else if(kmL(this.J,p))return;this.J=C;this.publish("qualitychange");this.Zu({updtlq:p})}; g.h.nGx=function(p){this.videoData.sabrLicenseConstraint=p}; g.h.CS=function(){this.T.keySystemAccess&&this.element&&(this.sY?this.element.setMediaKeys(null).catch(g.eG):this.element.setMediaKeys(null));this.element=null;this.V=[];for(var p=g.F(this.C.values()),C=p.next();!C.done;C=p.next())C=C.value,C.unsubscribe("ctmp",this.jM,this),C.unsubscribe("keystatuseschange",this.Ct,this),C.unsubscribe("licenseerror",this.ZD,this),C.unsubscribe("newlicense",this.fL,this),C.unsubscribe("newsession",this.WQ,this),C.unsubscribe("sessionready",this.DF,this),C.unsubscribe("fairplay_next_need_key_info", this.E3,this),this.yn.G("html5_enable_vp9_fairplay")&&C.unsubscribe("qualitychange",this.f0,this),C.dispose();this.C.clear();this.Y.removeAll();this.D.removeAll();this.heartbeatParams=null;g.ca.prototype.CS.call(this)}; g.h.X0=function(){for(var p={systemInfo:this.T.X0(),sessions:[]},C=g.F(this.C.values()),V=C.next();!V.done;V=C.next())p.sessions.push(V.value.X0());return p}; g.h.getInfo=function(){return this.C.size<=0?"no session":""+this.C.values().next().value.getInfo()+(this.W?"/KR":"")}; g.h.Zu=function(p,C){C=C===void 0?!1:C;this.fS()||(yu(p),(this.yn.Gk()||C)&&this.publish("ctmp","drmlog",p))};g.m(bAu,g.Y);g.h=bAu.prototype;g.h.tj=function(){return!!this.o2}; g.h.Xd=function(){return this.C}; g.h.handleError=function(p){var C=this;zaQ(this,p);if((p.errorCode!=="html5.invalidstate"&&p.errorCode!=="fmt.unplayable"&&p.errorCode!=="fmt.unparseable"||!YpS(this,p.errorCode,p.details))&&!PQ1(this,p)){if(this.I$.a$!=="yt"&&nk1(this,p)&&this.videoData.lL&&(0,g.Ip)()/1E3>this.videoData.lL&&this.I$.a$==="hm"){var V=Object.assign({e:p.errorCode},p.details);V.stalesigexp="1";V.expire=this.videoData.lL;V.init=this.videoData.pI/1E3;V.now=(0,g.Ip)()/1E3;V.systelapsed=((0,g.Ip)()-this.videoData.pI)/1E3; p=new qD(p.errorCode,V,2);this.Ta.a_(p.errorCode,2,"SIGNATURE_EXPIRED",yu(p.details))}if(Ir(p.severity)){var N;V=(N=this.Ta.nS)==null?void 0:N.T.T;if(this.I$.G("html5_use_network_error_code_enums"))if(Ray(p)&&V&&V.isLocked())var H="FORMAT_UNAVAILABLE";else if(this.I$.Y||p.errorCode!=="auth"||p.details.rc!==429)p.errorCode==="ump.spsrejectfailure"&&(H="HTML5_SPS_UMP_STATUS_REJECTED");else{H="TOO_MANY_REQUESTS";var X="6"}else Ray(p)&&V&&V.isLocked()?H="FORMAT_UNAVAILABLE":this.I$.Y||p.errorCode!=="auth"|| p.details.rc!=="429"?p.errorCode==="ump.spsrejectfailure"&&(H="HTML5_SPS_UMP_STATUS_REJECTED"):(H="TOO_MANY_REQUESTS",X="6");this.Ta.a_(p.errorCode,p.severity,H,yu(p.details),X)}else this.Ta.publish("nonfatalerror",p),N=/^pp/.test(this.videoData.clientPlaybackNonce),this.oN(p.errorCode,p.details),N&&p.errorCode==="manifest.net.connect"&&(p="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Ip)(),kv(p,"manifest",function(d){C.Y=!0;C.k_("pathprobe",d)},function(d){C.oN(d.errorCode, d.details)}))}}; g.h.k_=function(p,C){this.Ta.Pc().k_(p,C)}; g.h.oN=function(p,C){C=yu(C);this.Ta.Pc().oN(p,C)};LNu.prototype.Xm=function(p,C){return(C===void 0?0:C)?{zF:p?Dn(this,p):xB,Bs:p?CFv(this,p):xB,esn:p?GG9(this,p):xB,h5n:p?daY(this,p.videoData):xB,yp:p?iuV(this,p.videoData,p):xB,PWe:p?rIj(this,p):xB}:{zF:p?Dn(this,p):xB}}; LNu.prototype.G=function(p){return this.yn.G(p)};g.m(uF,g.Y);uF.prototype.onError=function(p){if(p!=="player.fatalexception"||this.provider.G("html5_exception_to_health"))p==="sabr.fallback"&&(this.encounteredSabrFallback=!0),p.match(cPp)?this.networkErrorCount++:this.nonNetworkErrorCount++}; uF.prototype.send=function(){if(!(this.V||this.T<0)){ans(this);var p=g.Zn(this.provider)-this.T,C="PLAYER_PLAYBACK_STATE_UNKNOWN",V=this.playerState.UE;this.playerState.isError()?C=V&&V.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.r(this.playerState,2)?C="PLAYER_PLAYBACK_STATE_ENDED":g.r(this.playerState,64)?C="PLAYER_PLAYBACK_STATE_UNSTARTED":g.r(this.playerState,16)||g.r(this.playerState,32)?C="PLAYER_PLAYBACK_STATE_SEEKING":g.r(this.playerState,1)&&g.r(this.playerState, 4)?C="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.r(this.playerState,1)?C="PLAYER_PLAYBACK_STATE_BUFFERING":g.r(this.playerState,4)?C="PLAYER_PLAYBACK_STATE_PAUSED":g.r(this.playerState,8)&&(C="PLAYER_PLAYBACK_STATE_PLAYING");V=vXL[v_(this.provider.videoData)];a:switch(this.provider.yn.playerCanaryState){case "canary":var N="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":N="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:N="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var H=EbH(this.provider), X=this.C<0?p:this.C-this.T;p=this.provider.yn.d6+36E5<(0,g.Ip)();C={started:this.C>=0,stateAtSend:C,joinLatencySecs:X,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:N,playerCanaryStage:H,isAd:this.provider.videoData.isAd(),liveMode:V,hasDrm:!!g.Jl(this.provider.videoData),isGapless:this.provider.videoData.J,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:$B(this.provider.videoData)};p||g.t1("html5PlayerHealthEvent",C);this.V=!0;this.dispose()}}; uF.prototype.CS=function(){this.V||this.send();window.removeEventListener("error",this.FS);window.removeEventListener("unhandledrejection",this.FS);g.Y.prototype.CS.call(this)}; var cPp=/\bnet\b/;g.m(tPa,g.Y);tPa.prototype.CS=function(){g.Y.prototype.CS.call(this);TXX(this)};var MPS=/[?&]cpn=/;var KsV=[2,5,30];g.bF=SS(function(){var p="";try{var C=g.iK("CANVAS").getContext("webgl");C&&(C.getExtension("WEBGL_debug_renderer_info"),p=C.getParameter(37446),p=p.replace(/[ :]/g,"_"))}catch(V){}return p});g.m(g.yb,g.Y);g.h=g.yb.prototype;g.h.ek=function(){var p=g.Zn(this.provider);Uae(this,p)}; g.h.Zj=function(){return this.vr}; g.h.CJ=function(){return{Er:this.Er,uC:this.uC}}; g.h.GP=function(p,C){this.Er=p;this.uC=C}; g.h.Bn=function(p){if(!this.Hc){this.Hc=!0;var C="";switch(p){case 1:C="proximaui";break;case 2:C=wYv(this.provider.videoData)?"proximawpcc":this.provider.videoData.G("html5_enable_proxima")||this.provider.videoData.G("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:C="proximaauto"}C!==""&&IV(this,C)}}; g.h.y9=function(p){this.T.lwc=[[p.AE?p.AE.toFixed():"",p.Qx?p.Qx.toFixed():"",p.vr?(p.vr*1E3).toFixed():"",p.YM?(p.YM*1E3).toFixed():"",p.qW?(p.qW*1E3).toFixed():""].join(":")]}; g.h.reportStats=function(p){p=p===void 0?NaN:p;if(!this.fS()&&(p=p>=0?p:g.Zn(this.provider),["PL","B","S"].indexOf(this.g7)>-1&&(!g.k5(this.T)||p>=this.W+30)&&(g.OZ(this,p,"vps",[this.g7]),this.W=p),!g.k5(this.T))){this.sequenceNumber===7E3&&g.eG(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){qa(this,p);var C=p,V=this.provider.Ta.uP(),N=V.droppedVideoFrames||0,H=V.totalVideoFrames||0,X=N-this.Er,d=H&&!this.uC;N>V.totalVideoFrames||X>5E3?A6L(this,"html5.badframedropcount","df."+N+";tf."+ V.totalVideoFrames):(X>0||d)&&g.OZ(this,C,"df",[X]);this.Er=N;this.uC=H;this.Z>0&&(g.OZ(this,p,"glf",[this.Z]),this.Z=0);CB.isActive()&&(p=CB.ut(),Object.keys(p).length>0&&this.k_("profile",p));this.kM&&IV(this,"lwnmow");this.provider.yn.Gk()&&this.provider.G("html5_record_now")&&this.k_("now",{wt:(0,g.Ip)()});p={};this.provider.videoData.C&&(p.fmt=this.provider.videoData.C.itag,(C=this.provider.videoData.S)&&C.itag!==p.fmt&&(p.afmt=C.itag));p.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&& (p.adcpn=this.adCpn);this.a$&&(p.addocid=this.a$);this.contentCpn&&(p.ccpn=this.contentCpn);this.sY&&(p.cdocid=this.sY);this.provider.videoData.cotn&&(p.cotn=this.provider.videoData.cotn);p.el=B_(this.provider.videoData);p.content_v=Vk(this.provider.videoData);p.ns=this.provider.yn.a$;p.fexp=F$9(this.provider.yn.experiments).toString();p.cl=(706555921).toString();(C=this.provider.videoData.adFormat||this.adFormat)&&(p.adformat=C);(C=v_(this.provider.videoData))&&(p.live=C);this.provider.videoData.O8()&& (p.drm=1,this.provider.videoData.W&&(p.drm_system=Hyy[this.provider.videoData.W.flavor]||0),this.provider.videoData.K$&&(p.drm_product=this.provider.videoData.K$));tw()&&this.provider.videoData.Y&&(p.ctt=this.provider.videoData.Y,p.cttype=this.provider.videoData.B_,this.provider.videoData.mdxEnvironment&&(p.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(p.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Vc&&(p.dai_fallback= "1")):this.provider.videoData.OZ?p.dai="cs":this.provider.videoData.qf&&(p.dai="disabled");p.seq=this.sequenceNumber++;if(this.provider.videoData.n5){if(C=this.provider.videoData.n5,p&&C)for(C.ns==="3pp"&&(p.ns="3pp"),this.FO.has(C.ns)&&IV(this,"hbps"),C.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=C.shbpslc),V=g.F(Object.keys(C)),N=V.next();!N.done;N=V.next())N=N.value,this.QZ.has(N)||(p[N]=C[N])}else p.event="streamingstats",p.docid=this.provider.videoData.videoId,p.ei=this.provider.videoData.eventId; this.isEmbargoed&&(p.embargoed="1");Object.assign(p,this.provider.yn.T);if(C=p.seq)C={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+C,serializedWatchEndpointLoggingContext:this.provider.videoData.bl},this.serializedHouseBrandPlayerServiceLoggingContext&&(C.serializedHouseBrandPlayerServiceLoggingContext=Fv(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(C.playerResponseCpn=this.provider.videoData.playerResponseCpn),fu.length&& (C.decoderInfo=fu),this.provider.Ta.RI()&&(C.transitionStitchType=4,this.Vn&&(C.timestampOffsetMsecs=this.Vn)),this.remoteControlMode&&(C.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(C.remoteConnectedDevices=this.remoteConnectedDevices),C=g.l8(C,iPy),C=g.mq(C,4),this.T.qclc=[C];p=g.GD("//"+this.provider.yn.jS+"/api/stats/qoe",p);V=C="";N=g.F(Object.keys(this.T));for(H=N.next();!H.done;H=N.next())H=H.value,this.T[H]===null?g.eG(new g.Bw("Stats report key has invalid value", H)):(H="&"+H+"="+this.T[H].join(","),H.length>100?V+=H:C+=H);y6v(this,p+C,V.replace(/ /g,"%20"))}this.T={}}}; g.h.gJ=function(p){this.kM=p}; g.h.jW=function(){if(this.provider.videoData.W){var p=this.provider.videoData.W;IV(this,"eme-"+(p.keySystemAccess?"final":yM(p)?"ms":bo(p)?"ytfp":I5(p)?"safarifp":"nonfinal"))}}; g.h.yX=function(p){var C=g.Zn(this.provider);if(!this.provider.yn.experiments.OY("html5_refactor_sabr_video_format_selection_logging")||p.T.id!==this.R$){var V=[p.T.id,p.C,this.R$,p.reason];p.token&&V.push(p.token);g.OZ(this,C,"vfs",V);this.R$=p.T.id;V=this.provider.Ta.getPlayerSize();if(V.width>0&&V.height>0){V=[Math.round(V.width),Math.round(V.height)];var N=g.Pg();N>1&&V.push(N);g.OZ(this,C,"view",V)}this.Qn||(this.provider.yn.Gk()&&IV(this,"rqs2"),this.provider.videoData.T&&sc(this.provider.videoData.T)&& (this.T.preload=["1"]));this.V=this.Qn=!0}p.reason==="m"&&++this.kt===100&&ob9(this,2);g.OZ(this,C,"vps",[this.g7]);this.reportStats(C)}; g.h.jB=function(p){var C=g.Zn(this.provider);if(this.provider.yn.experiments.OY("html5_refactor_sabr_audio_format_selection_logging")){C=p.T;var V=[C.audio&&C.video?C.UL?C.UL:"":C.id];C.K4&&C.K4.id&&V.push(C.K4.id);C=V.join(";");C!==this.D&&(V=[C,this.D,p.reason],p.token&&V.push(p.token),g.OZ(this,g.Zn(this.provider),"afs",V),this.D=C)}else p.T.id!==this.D&&(V=[p.T.id,this.D,p.reason],p.token&&V.push(p.token),g.OZ(this,C,"afs",V),this.D=p.T.id)}; g.h.ME=CY(43);g.h.J9=function(p){this.isEmbargoed=p}; g.h.Qo=CY(29);g.h.eO=CY(33);g.h.onPlaybackRateChange=function(p){var C=g.Zn(this.provider);p&&p!==this.VZ&&(g.OZ(this,C,"rate",[p]),this.VZ=p);this.reportStats(C)}; g.h.t9=CY(25);g.h.getPlayerState=function(p){if(g.r(p,128))return"ER";if(g.r(p,2048))return"B";if(g.r(p,512))return"SU";if(g.r(p,16)||g.r(p,32))return"S";if(p.isOrWillBePlaying()&&g.r(p,64))return"B";var C=TCY[KV(p)];g.bH(this.provider.yn)&&C==="B"&&this.provider.Ta.getVisibilityState()===3&&(C="SU");C==="B"&&g.r(p,4)&&(C="PB");return C}; g.h.CS=function(){g.Y.prototype.CS.call(this);g.Dr(this.Y);g.Dr(this.YM)}; g.h.d5=function(p){this.isOffline=p;g.OZ(this,g.Zn(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.h.k_=function(p,C,V){var N=this.T.ctmp||[],H=this.I6.indexOf(p)!==-1;H||this.I6.push(p);if(!V||!H){var X=typeof C!=="string"?yu(C):C;X=kK9(X);if(!V&&!/^t[.]/.test(X)){var d=g.Zn(this.provider)*1E3;X="t."+d.toFixed()+";"+X}N.push(p+":"+X);this.logger.debug(function(){return"ctmp "+p+" "+X}); this.T.ctmp=N;qZY(this);return d}}; g.h.ZN=function(p,C,V){this.S={j6_:Number(this.k_("glrem",{nst:p.toFixed(),rem:C.toFixed(),ca:+V})),Tr:p,pVn:C,isAd:V}}; g.h.Y1=function(p,C,V){g.OZ(this,g.Zn(this.provider),"ad_playback",[p,C,V])}; g.h.Dw=function(p,C){var V=g.Zn(this.provider)*1E3,N=this.T.daism||[];N.push("t."+V.toFixed(0)+";smw."+(p*1E3).toFixed(0)+";smo."+(C*1E3).toFixed(0));this.T.daism=N}; g.h.resume=function(){var p=this;this.provider.yn.Gk()&&this.k_("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.Y)?Inu(this):this.Y=g.Se(function(){p.reportStats()},1E4)}; var M9={},TCY=(M9[5]="N",M9[-1]="N",M9[3]="B",M9[0]="EN",M9[2]="PA",M9[1]="PL",M9[-1E3]="ER",M9[1E3]="N",M9),fu=[];zwX.prototype.rl=function(){return this.T}; zwX.prototype.update=function(){if(this.D){var p=this.provider.Ta.cJ(this.provider.videoData.clientPlaybackNonce)||0,C=g.Zn(this.provider);p>=this.provider.Ta.getDuration()-.1&&(this.previouslyEnded=!0);if(p!==this.T||ewY(this,p,C)){var V;if(!(V=p<this.T||p-this.T>C-this.yP+2||ewY(this,p,C))){V=this.provider.Ta.getVolume();var N=V!==this.Z,H=this.provider.Ta.isMuted()?1:0;H!==this.J?(this.J=H,V=!0):(!N||this.S>=0||(this.Z=V,this.S=C),V=C-this.S,this.S>=0&&V>2?(this.S=-1,V=!0):V=!1)}V&&(kb(this),this.V= p);this.yP=C;this.T=p}}};PFe.prototype.send=function(p){var C=this;if(!this.UY){var V=$a1(this),N=g.GD(this.uri,V);this.yn.G("vss_through_gel_double")&&Lse(N);this.sY&&!this.yn.G("html5_simplify_pings")?BXY(this,N):wu9(this,p).then(function(H){C.sY&&(H=H||{},H.method="POST",H.postParams={atr:C.attestationResponse});Fse(N,H,{token:C.a$,Tg:C.X$,mdxEnvironment:C.mdxEnvironment},C.yn,p,C.Vn,C.isFinal&&C.hE||C.Sa||C.V&&C.i8)}); this.UY=!0}}; PFe.prototype.C=function(p){p===void 0&&(p=NaN);return Number(p.toFixed(3)).toString()}; var JY={},QVe=(JY.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,JY.LIVING_ROOM_APP_MODE_MAIN=1,JY.LIVING_ROOM_APP_MODE_KIDS=2,JY.LIVING_ROOM_APP_MODE_MUSIC=3,JY.LIVING_ROOM_APP_MODE_UNPLUGGED=4,JY.LIVING_ROOM_APP_MODE_GAMING=5,JY),m8={},Wsy=(m8.EMBEDDED_PLAYER_MODE_UNKNOWN=0,m8.EMBEDDED_PLAYER_MODE_DEFAULT=1,m8.EMBEDDED_PLAYER_MODE_PFP=2,m8.EMBEDDED_PLAYER_MODE_PFL=3,m8);g.m(Yb,g.Y);g.h=Yb.prototype;g.h.Nn=function(){this.T.update();XOV(this)&&(pOs(this),CYQ(this),this.v8())}; g.h.CS=function(){g.Y.prototype.CS.call(this);nu(this);Rws(this.T)}; g.h.X0=function(){return $a1(zK(this,"playback"))}; g.h.v8=function(){this.provider.videoData.D.eventLabel=B_(this.provider.videoData);this.provider.videoData.D.playerStyle=this.provider.yn.playerStyle;this.provider.videoData.uM&&(this.provider.videoData.D.feature="pyv");this.provider.videoData.D.vid=this.provider.videoData.videoId;var p=this.provider.videoData.D;var C=this.provider.videoData;C=C.isAd()||!!C.uM;p.isAd=C}; g.h.Ix=function(p){var C=zK(this,"engage");C.b_=p;return gba(C,Em9(this.provider))};a_L.prototype.isEmpty=function(){return this.endTime===this.startTime};Pu.prototype.G=function(p){return this.yn.G(p)}; Pu.prototype.getCurrentTime=function(p){if(this.G("html5_ssap_current_time_for_logging_refactor")){var C=this.Ta.RI();if(C&&(p=p||C.yv()))return HN(C,p)}else if(g.pf(this.videoData)){var V=this.Ta.RI();if(V)return p=this.Ta.getCurrentTime(),V=(((C=R8(V,p*1E3))==null?void 0:C.SI)||0)/1E3,p-V}return this.Ta.getCurrentTime()}; Pu.prototype.I_=function(p){if(this.G("html5_ssap_current_time_for_logging_refactor")){var C=this.Ta.RI();if(C&&(p=p||C.yv()))return HN(C,p)}else if(g.pf(this.videoData)){var V=this.Ta.RI();if(V)return p=this.Ta.I_(),V=(((C=R8(V,p*1E3))==null?void 0:C.SI)||0)/1E3,p-V}return this.Ta.I_()}; var l_v={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.m(g.wX,g.Y);g.h=g.wX.prototype;g.h.Nn=function(){if(this.provider.videoData.enableServerStitchedDai&&this.tp){var p;(p=this.V.get(this.tp))==null||p.Nn()}else this.T&&this.T.Nn()}; g.h.J9=function(p){this.qoe&&this.qoe.J9(p)}; g.h.Qo=CY(28);g.h.eO=CY(32);g.h.Dw=function(p,C){this.qoe&&this.qoe.Dw(p,C)}; g.h.oN=function(p,C){this.qoe&&A6L(this.qoe,p,C);if(this.C)this.C.onError(p)}; g.h.yX=function(p){this.qoe&&this.qoe.yX(p)}; g.h.jB=function(p){this.qoe&&this.qoe.jB(p)}; g.h.onPlaybackRateChange=function(p){if(this.qoe)this.qoe.onPlaybackRateChange(p);this.T&&kb(this.T.T)}; g.h.ME=CY(42);g.h.k_=function(p,C,V){this.qoe&&this.qoe.k_(p,C,V)}; g.h.ZN=function(p,C,V){this.qoe&&this.qoe.ZN(p,C,V)}; g.h.Bn=function(p){var C;(C=this.qoe)==null||C.Bn(p)}; g.h.y9=function(p){var C;(C=this.qoe)==null||C.y9(p)}; g.h.gJ=function(p){this.qoe&&this.qoe.gJ(p)}; g.h.Y1=function(p,C,V){this.qoe&&this.qoe.Y1(p,C,V)}; g.h.t9=CY(24);g.h.Zj=function(){if(this.qoe)return this.qoe.Zj()}; g.h.X0=function(){if(this.provider.videoData.enableServerStitchedDai&&this.tp){var p,C;return(C=(p=this.V.get(this.tp))==null?void 0:p.X0())!=null?C:{}}return this.T?this.T.X0():{}}; g.h.CJ=function(){var p;return(p=this.qoe)==null?void 0:p.CJ()}; g.h.GP=function(p,C){var V;(V=this.qoe)==null||V.GP(p,C)}; g.h.Ix=function(p){return this.T?this.T.Ix(p):function(){}}; g.h.v8=function(){this.T&&this.T.v8()}; g.h.getVideoData=function(){return this.provider.videoData}; g.h.resume=function(){this.qoe&&this.qoe.resume()};g.m(Lu,g.Y); Lu.prototype.ip=function(p,C,V){if(this.T.has(p)){var N=this.T.get(p);if(C.videoId&&!ttS(N))this.C.k_("ssap",{rlc:p}),udv(this,p);else return}if(!this.T.has(p)){N=new Pu(C,this.yn,this.Ta);var H=Math.round(g.Zn(this.C.provider)*1E3);N=new g.wX(N,H);ttS(N)||this.C.k_("nqv",{vv:C.videoId});H=this.C.getVideoData();this.T.set(p,N);if(N.qoe){var X=N.qoe,d=H.videoId||"";X.contentCpn=H.clientPlaybackNonce;X.sY=d}cHL(N);V===2&&(this.yn.G("html5_log_ad_playback_docid")?(V=this.C,V.qoe&&(V=V.qoe,N=C.Q$||"", H=C.breakType||0,C=C.videoId||"",X=this.yn.a$||"yt",g.OZ(V,g.Zn(V.provider),"ad_playback",[p,N,H,C,X]))):this.C.Y1(p,C.Q$||"",C.breakType||0))}}; Lu.prototype.Pc=function(p){p=p||this.tp;return this.T.get(p)||this.C};g.m(gX,g.Y);g.h=gX.prototype; g.h.d7=function(p,C){this.sync();C&&this.T.array.length>=2E3&&this.YW("captions",1E4);C=this.T;if(p.length>1&&p.length>C.array.length)C.array=C.array.concat(p),C.array.sort(C.T);else for(var V=g.F(p),N=V.next();!N.done;N=V.next())N=N.value,!C.array.length||C.T(N,C.array[C.array.length-1])>0?C.array.push(N):g.Ev(C.array,N,C.T);p=g.F(p);for(C=p.next();!C.done;C=p.next())C=C.value,C.namespace==="ad"&&this.S("ssap",{acrsid:C.getId(),acrsst:C.start,acrset:C.end,acrscpt:C.playerType});this.V=NaN;this.sync()}; g.h.p$=function(p){p.length>1E4&&g.eG(new g.Bw("Over 10k cueRanges removal occurs with a sample: ",p[0]));if(!this.fS()){for(var C=g.F(p),V=C.next();!V.done;V=C.next())(V=V.value)&&V.namespace==="ad"&&this.S("ssap",{rcrid:V.getId(),rcst:V.start,rcet:V.end,rcpt:V.playerType});var N=new Set(p);this.C=this.C.filter(function(H){return!N.has(H)}); I_S(this.T,N);this.sync()}}; g.h.YW=function(p,C){var V=(isNaN(this.V)?g.r(this.Y(),2)?0x8000000000000:this.Z()*1E3:this.V)-C;C=this.xm().filter(function(N){return N.namespace===p&&N.end<V}); this.p$(C);return C}; g.h.xm=function(){return this.fS()?[]:this.T.array}; g.h.reset=function(){this.started=!1;this.W.stop();this.T.array=[];this.C=[];this.sync()}; g.h.qt=function(p){var C=this.xm().filter(function(V){return V.namespace===p}); this.p$(C);return C}; g.h.Ht=function(p){return this.xm().some(function(C){return C.namespace===p})}; g.h.bz=function(p,C){var V=[],N=O$s(this.T,0x7ffffffffffff),H=[];this.S("ssap",{mecrs:N.length,cpn:C});N=g.F(N);for(var X=N.next();!X.done;X=N.next())X=X.value,X.active&&(this.S("ssap",{acre:X.id,st:X.start,et:X.end,cpn:C,cpt:X.playerType,pt:p}),C&&C===X.V?(H.push(X),this.S("ssap",{acrec:X.id,st:X.start,et:X.end,pt:p})):X.playerType===p&&(H.push(X),this.S("ssap",{acret:X.id,st:X.start,et:X.end})));V=V.concat(this.OJ(H));omX(this,V);V=[];C=[];N=g.F(this.C);for(X=N.next();!X.done;X=N.next())X=X.value, X.active&&X.playerType===p&&X.start===0x7ffffffffffff&&C.push(X);V=V.concat(this.Q_(C));omX(this,V);return H.length}; g.h.OJ=function(p){var C=[];if(!p.length)return C;for(var V=0;V<p.length;V++){var N=p[V];N.active&&this.C.indexOf(N)===-1&&(this.C.push(N),C.push([1,N]))}return C}; g.h.Q_=function(p){var C=[];if(!p.length)return C;p.sort(g.aj);p=g.F(p);for(var V=p.next();!V.done;V=p.next())V=V.value,this.C.splice(this.C.indexOf(V),1),C.push([2,V]);return C}; g.h.sync=function(){this.D=!0;if(!this.J){for(var p=3;this.D&&p;)this.D=!1,this.J=!0,this.FB(),this.J=!1,p--;this.Y().isPlaying()&&(p=qDy(this.T,this.V),!isNaN(p)&&p<0x7ffffffffffff&&(p=(p-this.V)/this.sY(),this.W.start(p)))}}; g.h.FB=function(){if(this.started&&!this.fS()){this.W.stop();var p=this.Y();g.r(p,32)&&this.b_.start();for(var C=g.r(this.Y(),2)?0x8000000000000:this.Z()*1E3,V=g.r(p,2),N=[],H=[],X=g.F(this.C),d=X.next();!d.done;d=X.next())d=d.value,d.active&&(V?d.end<0x8000000000000:!d.contains(C))&&H.push(d);N=N.concat(this.Q_(H));X=H=null;V?(p=O$s(this.T,0x7ffffffffffff),H=p.filter(function(a){return a.end<0x8000000000000}),X=yH1(this.T)):p=this.V<=C&&S6(p)?f_9(this.T,this.V,C):O$s(this.T,C); N=N.concat(this.OJ(p));H&&(N=N.concat(this.Q_(H)));X&&(N=N.concat(this.OJ(X)));this.V=C;omX(this,N)}}; g.h.CS=function(){this.C=[];this.T.array=[];g.Y.prototype.CS.call(this)}; g.Rv.JR(gX,{d7:"crmacr",OJ:"crmncr",Q_:"crmxcr",FB:"crmis",p$:"crmrcr"});g.h=kEQ.prototype;g.h.getCurrentTime=function(){return this.Ta.getCurrentTime()}; g.h.getDuration=function(p){return this.Ta.getDuration(p)}; g.h.Xt=function(){return this.Ta.Xt()}; g.h.uX=function(){return this.Ta.uX()}; g.h.k6=function(){return this.Ta.k6()}; g.h.x6=function(p){return this.Ta.x6(p)}; g.h.uI=function(){return this.Ta.uI()}; g.h.getVideoData=function(){return this.Ta.getVideoData()}; g.h.aj=function(){return this.Ta.aj()}; g.h.isAtLiveHead=function(p,C){return this.Ta.isAtLiveHead(p,C)}; g.h.Dw=function(p,C){this.Ta.Pc().Dw(p,C)}; g.h.Si=function(){this.Ta.Si()};Qb.prototype.add=function(p){this.T=(this.T+1)%this.data.length;this.data[this.T]=p}; Qb.prototype.forEach=function(p){for(var C=this.T+1;C<this.data.length;C++)p(this.data[C]||0);for(C=0;C<=this.T;C++)p(this.data[C]||0)}; Qb.prototype.clear=function(){for(var p=this.data.length,C=0;C<p;C++)this.data[C]=0;this.C=this.T=this.data.length-1};g.m(Bu,g.ca);Bu.prototype.qR=function(){return this.J}; Bu.prototype.S1=function(){return this.policy.D&&this.videoData.T?this.videoData.T.lf:Math.max(this.Y()-p$(this)*this.T,this.videoData.Wa())};g.m(VX,g.Y);VX.prototype.f7=function(){var p=this,C=this.Ta.Nt(),V=this.Ta.getPlayerState();if(C&&!V.isError()){var N=C.getCurrentTime(),H=V.state===8&&N>this.T,X=g.r(V,8)&&g.r(V,16),d=this.Ta.Uu().isBackground()||V.isSuspended();NT(this,this.qo,X&&!d,H,"qoe.slowseek",function(){},"timeout"); var a=isFinite(this.T);a=X&&a&&qyL(C,this.T);var E=!N||Math.abs(N-this.T)>10,l=this.yn.G("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),t=N===0&&this.C&&[11,10].includes(this.C);NT(this,this.X$,a&&E&&!d&&(!l||!t),H,"qoe.slowseek",function(){C.seekTo(p.T)},"set_cmt"); E=a&&EJ(C.yx(),this.T);var c=this.Ta.nS;a=!c||!c.policy.KS;var T=.001;$B(this.Ta.getVideoData())&&(T=g.mi(this.yn.experiments,"html5_sabr_jiggle_cmt_ms")/1E3);var M=function(){C.seekTo(p.T+T)}; NT(this,this.Y_,E&&a&&!d,H,"qoe.slowseek",M,"jiggle_cmt");a=function(){return sZ(p.Ta)}; NT(this,this.UY,E&&!d,H,"qoe.slowseek",a,"new_elem");E=S6(V);l=V.isBuffering();var J=C.yx(),S=a7(J,N),D=S>=0&&J.end(S)>N+5,Z=E&&l&&D;t=this.Ta.getVideoData();NT(this,this.R$,N<.002&&this.T<.002&&X&&g.bH(this.yn)&&g.jQ(t)&&!d,H,"qoe.slowseek",a,"slow_seek_shorts");NT(this,this.a$,t.rR()&&X&&!d&&!t.sY,H,"qoe.slowseek",a,"slow_seek_gapless_shorts");NT(this,this.sY,Z&&!d,E&&!l,"qoe.longrebuffer",M,"jiggle_cmt");NT(this,this.Vn,Z&&!d,E&&!l,"qoe.longrebuffer",a,"new_elem_nnr");if(c){var f=c.getCurrentTime(); X=C.TC();X=myX(X,f);X=!c.isSeeking()&&N===X;NT(this,this.YM,E&&l&&X&&!d,E&&!l&&!X,"qoe.longrebuffer",function(){C.seekTo(f)},"seek_to_loader")}X={}; M=a7(J,Math.max(N-3.5,0));Z=M>=0&&N>J.end(M)-1.1;var q=M>=0&&M+1<J.length?J.start(M+1)-J.end(M):9999;X.mindex=S;X.disIndex=M;X.isdisc=M>=0&&Z&&q<11;X.close2edge=Z;X.gapsize=q;X.buflen=J.length;this.C&&(X.seekSour=this.C);if(M=this.Ta.RI()){Z=M.yv();q=Z!==R8(M,N*1E3).clipId;var A=g.mi(this.yn.experiments,"html5_ssap_skip_seeking_offset_ms"),z=(zJ(M,Z)+A)/1E3;NT(this,this.Wr,q&&E&&l&&!d,E&&!l,"qoe.longrebuffer",function(){C.seekTo(z)},"ssap_clip_not_match")}NT(this,this.Sa,E&&l&&!d,E&&!l,"qoe.longrebuffer", function(){},"timeout",X); X=V.isSuspended();X=X9(this.Ta)&&!X;NT(this,this.D,X,!X,"qoe.start15s",function(){p.Ta.hp("ad")},"ads_preroll_timeout"); M=N-this.S<.5;var Q;X=!((Q=this.Ta.RI())==null||!Q.Iz());q=(Z=t.isAd()||X&&this.yn.experiments.OY("html5_ssap_skip_slow_ad"))&&E&&!l&&M;Q=function(){var P=p.Ta,VL=g.pf(P.videoData)&&P.Ze,au=P.lJ.L1();(au&&P.videoData.isAd()&&au.getVideoData().OZ===P.getVideoData().OZ||!P.videoData.tE)&&!VL?P.a_("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+P.videoData.videoId):W7(P.videoData,"html5_ssap_skip_slow_ad")&&VL&&P.Ze.Iz()&&(P.oN(new qD("ssap.transitionfailure",{cpn:R8(P.Ze,P.I_()).clipId,pcpn:P.Ze.yv(), cmt:P.I_()})),P=P.Ze,VL=P.Ta.I_(),(VL=YsX(P,VL))&&b8V(P,VL.Ag()/1E3))}; NT(this,this.Wc,q,!q,"ad.rebuftimeout",Q,"skip_slow_ad");M=Z&&l&&EJ(C.yx(),N+5)&&M;NT(this,this.kM,M&&!d,!M,"ad.rebuftimeout",Q,"skip_slow_ad_buf");Q=V.isOrWillBePlaying()&&g.r(V,64)&&!d;NT(this,this.ER,Q,H,"qoe.start15s",function(){},"timeout"); Q=!!c&&!c.Hr&&V.isOrWillBePlaying();NT(this,this.vr,Q,H,"qoe.start15s",a,"newElemMse");Q=cc(J,0);M=g.r(V,16)||g.r(V,32);M=!d&&V.isOrWillBePlaying()&&l&&!M&&(g.r(V,64)||N===0)&&Q>5;NT(this,this.Qn,g.jQ(t)&&M,E&&!l,"qoe.longrebuffer",function(){p.Ta.wP()},"reset_media_source"); NT(this,this.KS,g.jQ(t)&&M,E&&!l,"qoe.longrebuffer",a,"reset_media_element");this.S===0&&(this.Y=N);M=l&&this.T===0&&N>1&&N===this.Y;NT(this,this.Ga,g.jQ(t)&&M,E&&!l,"qoe.slowseek",function(){C.seekTo(0)},"reseek_after_time_jump"); d=V.isOrWillBePlaying()&&!d;D=this.Ta.x6()-N<6&&!D&&this.Ta.GY();NT(this,this.J,t.rR()&&d&&l&&D,E&&!l,"qoe.longrebuffer",function(){sZ(p.Ta,!1,!0)},"handoff_end_long_buffer_reload"); c=(c==null?void 0:zb1(c))||NaN;c=J.length>1||!isNaN(c)&&c-.1<=N;NT(this,this.Z,id(t)&&d&&l&&c,E&&!l,"qoe.longrebuffer",a,"gapless_slice_append_stuck");c=S>=0&&J.end(S)>=2;d=id(t)&&this.Ta.VU&&c&&!t.sY&&d&&(l||g.r(V,8)&&g.r(V,16));NT(this,this.b_,d,H,"qoe.start15s",a,"gapless_slow_start");V=!!(X&&Q>5&&V.isPlaying()&&N<.1);NT(this,this.Hc,V,N>.5&&E,"qoe.longrebuffer",a,"ssap_stuck_in_ad_beginning");this.S=N;this.W.start()}}; VX.prototype.oN=function(p,C,V){C=this.X0(C);C.wn=V;C.wdup=this.V[p]?"1":"0";this.Ta.oN(new qD(p,C));this.V[p]=!0}; VX.prototype.X0=function(p){p=Object.assign(this.Ta.X0(!0),p.X0());this.T&&(p.stt=this.T.toFixed(3));this.Ta.getVideoData().isLivePlayback&&(p.ct=this.Ta.getCurrentTime().toFixed(3),p.to=this.Ta.yZ().toFixed(3));delete p.uga;delete p.euri;delete p.referrer;delete p.fexp;delete p.vm;return p}; C$.prototype.reset=function(){this.T=this.C=this.V=this.startTimestamp=0;this.S=!1}; C$.prototype.test=function(p){if(!this.W||this.C)return!1;if(!p)return this.reset(),!1;p=(0,g.Ip)();if(!this.startTimestamp)this.startTimestamp=p,this.V=0;else if(this.V>=this.W)return this.C=p,!0;this.V+=1;return!1}; C$.prototype.X0=function(){var p={},C=(0,g.Ip)();this.startTimestamp&&(p.wsd=(C-this.startTimestamp).toFixed());this.C&&(p.wtd=(C-this.C).toFixed());this.T&&(p.wssd=(C-this.T).toFixed());return p};g.m(pxs,g.Y);g.h=pxs.prototype;g.h.setMediaElement=function(p){(this.mediaElement=p)?(this.mediaElement&&(this.W||this.S||!this.mediaElement.wD()||this.seekTo(.01,{NZ:"seektimeline_setupMediaElement"})),HO(this)):dL(this)}; g.h.getCurrentTime=function(){if(Xd(this.Ta)){if(!isNaN(this.C))return this.C}else if(!isNaN(this.C)&&isFinite(this.C))return this.C;return this.mediaElement&&lTL(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.S||0}; g.h.yW=function(){return this.KS}; g.h.I_=function(){return this.getCurrentTime()-this.yZ()}; g.h.S1=function(){return this.T?this.T.S1():Infinity}; g.h.isAtLiveHead=function(p){if(!this.T)return!1;p===void 0&&(p=this.getCurrentTime());return GK(this.T,p)}; g.h.qR=function(){return!!this.T&&this.T.qR()}; g.h.seekTo=function(p,C){var V=C===void 0?{}:C;C=V.yC===void 0?!1:V.yC;var N=V.IJ===void 0?0:V.IJ;var H=V.EC===void 0?!1:V.EC;var X=V.kZ===void 0?0:V.kZ;var d=V.NZ===void 0?"":V.NZ;var a=V.seekSource===void 0?void 0:V.seekSource;var E=V.zR===void 0?!1:V.zR;var l=V.h6===void 0?!1:V.h6;V=V.tJ===void 0?!1:V.tJ;E&&(p+=this.yZ());$B(this.videoData)&&this.G("html5_sabr_enable_utc_seek_requests")&&a===29&&(this.KS=void 0);E=p<this.vr&&!!this.nS;var t=$B(this.videoData)&&l;if(E&&!t&&(this.Ta.k_("sdai",{sk2bk:p.toFixed(3), mt:(p-this.timestampOffset).toFixed(3),lstadj:this.vr.toFixed(3)}),this.vr=NaN,this.timestampOffset-=1E3,(t=this.nS)!=null)){xxL(t,t.timestampOffset-1E3);var c=t.hk,T=new Set;for(S in c.T){var M=c.T[S].index,J=M.X_();J&&!T.has(J)&&(J.startTime+=1E3,J.endTime=J.startTime+J.duration,T.add(J));M.segments.length&&(J=M.segments[M.segments.length-1],M.segments=[],M.segments.push(J))}t.D&&t.D.jK();qx(t.V,0,0,!0)}var S=p;(t=$B(this.videoData))&&l?S=!0:(c=this.G("html5_always_allow_sqless_sync")&&this.videoData.p4(), (t||c)&&d==="chunkSelectorSynchronize"?S=!0:(t=!isFinite(S)||(this.T?GK(this.T,S):S>=this.Sd())||!g.ud(this.videoData),t||(S={st:S,mst:this.Sd()},this.T&&this.G("html5_high_res_seek_logging")&&(S.ht=this.T.S1(),S.adft=L5y(this.T)),this.Ta.k_("seeknotallowed",S)),S=t));if(!S)return this.V&&(this.V=null,aTH(this)),U8(this.getCurrentTime());S=.005;l&&this.G("html5_sabr_seek_no_shift_tolerance")&&(S=0);if(Math.abs(p-this.C)<=S&&this.b_)return this.W;d&&(S=p,(this.yn.Gk()||this.G("html5_log_seek_reasons"))&& this.Ta.k_("seekreason",{reason:d,tgt:S}));a&&(this.Vn.C=a);this.b_&&dL(this);this.W||(this.W=new hK);p&&!isFinite(p)&&NMa(this,!1);(d=V||E)||(d=p,d=!(this.videoData.isLivePlayback&&this.videoData.V&&!this.videoData.V.T&&!(this.mediaElement&&this.mediaElement.wh()>0&&ak(this.mediaElement)>0)||Ge(this.videoData)&&this.Wa()===this.Sd(!1)?0:isFinite(d)||!Ge(this.videoData)));d||(p=hH(this,p,H));p&&!isFinite(p)&&NMa(this,!1);this.S=p;this.Y_=X;this.C=p;this.Z=0;this.T&&(H=this.T,X=p,gmH(H,X,!1),W5j(H, X));H=this.Ta;X=p;d={yC:C,seekSource:a};H.EZ.S=X;V=H.qY;V.mediaTime=X;V.T=!0;d.yC&&aRy(H,d);d=X>H.videoData.endSeconds&&X>H.videoData.limitedPlaybackDurationInSeconds;H.CV&&d&&isFinite(X)&&WYe(H);X<H.Sd()-.01&&(d=mE(H.playerState,2),g.r(d,8)&&(d=mE(d,4)),H.aN(d));H.publish("SEEK_TO",H,X);this.W&&(C?N&&this.R$.start(N):(C={h6:l,seekSource:a},this.b_=!0,GEH(this,C)));(C=this.Ta.CV)&&p>C.start&&WYe(this.Ta);return this.W}; g.h.Sd=function(p){if(!this.videoData.isLivePlayback)return ADu(this.Ta);var C;return E5(this.videoData)&&((C=this.mediaElement)==null?0:C.isPaused())&&this.videoData.T?(p=this.getCurrentTime(),THj(this.Xt(p)*1E3)+p):this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(this.videoData)&&this.videoData.T?p?this.videoData.T.b_||0:this.videoData.T.lf||0:Ge(this.videoData)&&this.videoData.Wr&&this.videoData.T?this.videoData.T.Sd()+this.timestampOffset:this.videoData.V&&this.videoData.V.T?!p&& this.T?this.T.S1():ADu(this.Ta)+this.timestampOffset:this.mediaElement?rm()?THj(this.mediaElement.D1().getTime()):ak(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.h.Wa=function(){if(g.pf(this.videoData)){var p=this.Ta;g.pf(p.videoData);var C,V;return(V=(C=p.Ze)==null?void 0:C.Wa())!=null?V:p.videoData.Wa()}if(this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(this.videoData)){var N;return((N=this.videoData.T)==null?void 0:N.Tz)||0}C=this.videoData?this.videoData.Wa()+this.timestampOffset:this.timestampOffset;return E5(this.videoData)&&this.videoData.T&&(V=Number((p=this.videoData.progressBarStartPosition)==null?void 0:p.utcTimeMillis)/1E3,p= this.getCurrentTime(),p=this.Xt(p)-p,!isNaN(V)&&!isNaN(p))?Math.max(C,V-p):C}; g.h.O$=function(){this.W||this.seekTo(this.S,{NZ:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.h.US=function(){return this.b_&&!isFinite(this.C)}; g.h.CS=function(){Hn1(this,null);this.Vn.dispose();g.Y.prototype.CS.call(this)}; g.h.X0=function(){var p={};this.nS&&Object.assign(p,this.nS.X0());this.mediaElement&&Object.assign(p,this.mediaElement.X0());return p}; g.h.aM=function(p){this.timestampOffset=p}; g.h.getStreamTimeOffset=function(){return Ge(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0}; g.h.yZ=function(){return this.timestampOffset}; g.h.Xt=function(p){return this.videoData&&this.videoData.T?this.videoData.T.Xt(p-this.timestampOffset):NaN}; g.h.qD=function(){if(!this.mediaElement)return 0;if(Z6(this.videoData)){var p=this.mediaElement,C=p.yx();p=(tj(C)>0&&p.getDuration()?C.end(C.length-1):0)+this.timestampOffset-this.Wa();C=this.Sd()-this.Wa();return Math.max(0,Math.min(1,p/C))}return this.mediaElement.qD()}; g.h.Sg=function(p){this.Y&&(this.Y.T=p)}; g.h.WC=function(p,C){this.Ta.k_("requestUtcSeek",{time:p});$B(this.videoData)&&this.G("html5_sabr_enable_utc_seek_requests")&&(this.KS=p);var V;(V=this.nS)==null||V.WC(p);C&&(this.sY=C)}; g.h.Jx=function(p){$B(this.videoData)&&this.G("html5_sabr_enable_utc_seek_requests")&&(this.KS=void 0);if(this.sY)this.Ta.k_("utcSeekingFallback",{source:"streamTime",timeSeconds:this.sY}),this.Ta.seekTo(this.sY,{NZ:"utcSeekingFallback_streamTime"}),this.sY=0;else{var C=this.getCurrentTime();isNaN(C)||(p=this.Xt(C)-p,C-=p,this.Ta.k_("utcSeekingFallback",{source:"estimate",timeSeconds:C}),this.Ta.seekTo(C,{NZ:"utcSeekingFallback_estimate"}))}}; g.h.kW=function(){this.sY=0}; g.h.G=function(p){return this.yn&&this.yn.G(p)};g.m(ai,g.Y);ai.prototype.start=function(){this.C.start()}; ai.prototype.stop=function(){this.C.stop()}; ai.prototype.clear=function(){for(var p=g.F(this.T.values()),C=p.next();!C.done;C=p.next())C.value.clear()}; ai.prototype.sample=function(){for(var p=g.F(this.V),C=p.next();!C.done;C=p.next()){var V=g.F(C.value);C=V.next().value;V=V.next().value;this.T.has(C)||this.T.set(C,new mAy(MqE.has(C)));this.T.get(C).update(V())}this.C.start()}; var MqE=new Set(["networkactivity"]);mAy.prototype.update=function(p){this.T?(this.buffer.add(p-this.hS||0),this.hS=p):this.buffer.add(p)}; mAy.prototype.clear=function(){this.buffer.clear();this.hS=0};tH.prototype.Rb=function(){return this.started}; tH.prototype.start=function(){this.started=!0}; tH.prototype.reset=function(){this.finished=this.started=!1};var DAj=!1;g.m(g.JH,g.ca);g.h=g.JH.prototype;g.h.CS=function(){this.logger.debug("dispose");g.Dr(this.Pg);Ipu(this.JE);this.visibility.unsubscribe("visibilitystatechange",this.JE);YCS(this);K$(this);g.rE.X5(this.G7);this.Hz();this.QL=null;g.iP(this.videoData);g.iP(this.q1);g.iP(this.LN);g.iP(this.Ni);g.s1(this.Akn);this.CV=null;g.ca.prototype.CS.call(this)}; g.h.Y1=function(p,C,V,N,H){if(this.yn.G("html5_log_ad_playback_docid")){var X=this.Pc();if(X.qoe){X=X.qoe;var d=this.yn.a$||"yt";g.OZ(X,g.Zn(X.provider),"ad_playback",[p,C,V,H,d])}}else this.Pc().Y1(p,C,V);this.G("html5_log_media_perf_info")&&this.k_("adloudness",{ld:N.toFixed(3),cpn:p})}; g.h.y5=function(){var p;return(p=this.nS)==null?void 0:p.y5()}; g.h.bI=function(){var p;return(p=this.nS)==null?void 0:p.bI()}; g.h.dc=function(){var p;return(p=this.nS)==null?void 0:p.dc()}; g.h.Tc=function(){var p;return(p=this.nS)==null?void 0:p.Tc()}; g.h.O8=function(){return this.videoData.O8()}; g.h.Xp=function(){return this.BE}; g.h.ip=function(){!this.DC||this.DC.fS();this.DC=new g.wX(new Pu(this.videoData,this.yn,this));this.BE=new Lu(this.yn,this,this.DC)}; g.h.getVideoData=function(){return this.videoData}; g.h.K=function(){return this.yn}; g.h.Xm=function(p){return this.L$.Xm(this.QL,p===void 0?!1:p)}; g.h.Pc=function(p){if(p)a:{for(var C=this.BE,V=g.F(C.T.values()),N=V.next();!N.done;N=V.next())if(N=N.value,N.getVideoData().videoId===p){p=N;break a}p=C.C}else p=this.BE.Pc();return p}; g.h.Uu=function(){return this.visibility}; g.h.aj=function(){return this.mediaElement&&this.mediaElement.F6()?this.mediaElement.V$():null}; g.h.Nt=function(){return this.mediaElement}; g.h.QI=function(){if(this.videoData.isLoaded()){var p=this.q1;g.mi(p.I$.experiments,"html5_player_min_build_cl")>0&&g.mi(p.I$.experiments,"html5_player_min_build_cl")>706555921&&eaa(p,"oldplayer");Pij(this)}else this.videoData.AX||this.videoData.sx?this.hx&&g.bH(this.yn)&&this.videoData.isLivePlayback||(this.videoData.AX?Pty(this.videoData):(p=this.Pc(),p.qoe&&(p=p.qoe,IV(p,"protected"),p.provider.videoData.W?p.jW():p.provider.videoData.subscribe("dataloaded",p.jW,p)),n1v(this.videoData))):!this.videoData.loading&& this.TO&&zDv(this)}; g.h.hK=function(p){this.Ze=p;this.nS&&this.nS.hK(p)}; g.h.dH=CY(15);g.h.isFullscreen=function(){return this.visibility.isFullscreen()}; g.h.isBackground=function(){return this.visibility.isBackground()}; g.h.sendAbandonmentPing=function(){g.r(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Im(!0),YCS(this),g.rE.X5(this.G7))}; g.h.kQ=function(){mTu(this.Pc())}; g.h.a_=function(p,C,V,N,H,X){this.logger.debug(function(){return"set player error: ec="+p+", detail="+H}); var d,a;g.A9(b_F,V)?d=V:V?a=V:d="GENERIC_WITHOUT_LINK";N=(N||"")+(";a6s."+U0());if(p==="auth"||p==="drm.auth"||p==="heartbeat.stop")V&&(N+=";r."+V.replaceAll(" ","_")),X&&(N+="sr."+X.replaceAll(" ","_"));C={errorCode:p,errorDetail:H,errorMessage:a||g.CZ[d]||"",Ye:d,Ck:X||"",QG:N,PO:C,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=p;St(this,"dataloaderror");this.aN(Mr(this.playerState,128,C));g.rE.X5(this.G7);K$(this);this.Q6()}; g.h.hp=function(p){this.S6=this.S6.filter(function(C){return p!==C}); this.logger.debug(function(){return"set preroll ready for "+p}); g.pf(this.videoData)&&!this.iX()&&this.mM.Cd("pl_pr");this.XU.Rb()&&nWH(this)}; g.h.iX=function(){var p;(p=!!this.S6.length)||(p=this.ZZ.T.array[0],p=!!p&&p.start<=-0x8000000000000);return p}; g.h.qR=function(){return this.EZ.qR()}; g.h.isPlaying=function(){return this.playerState.isPlaying()}; g.h.Bo=function(){return this.playerState.Bo()&&this.videoData.Of}; g.h.getPlayerState=function(){return this.playerState}; g.h.getPlayerType=function(){return this.playerType}; g.h.getPreferredQuality=function(){if(this.QL){var p=this.QL;p=p.videoData.KT.compose(p.videoData.f5);p=XP(p)}else p="auto";return p}; g.h.kR=CY(19);g.h.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.h.setMediaElement=function(p){this.logger.debug("set media element");if(this.mediaElement&&p.V$()===this.mediaElement.V$()&&(p.isView()||this.mediaElement.isView())){if(p.isView()||!this.mediaElement.isView())g.Am(this.Va),this.mediaElement=p,this.mediaElement.Ta=this,cDS(this),this.EZ.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Hz();if(!this.playerState.isError()){var C=mE(this.playerState,512);g.r(C,8)&&!g.r(C,2)&&(C=JK(C,1));p.isView()&&(C=mE(C,64));this.aN(C)}this.mediaElement= p;this.mediaElement.Ta=this;Qj(this.yn)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);cDS(this);this.EZ.setMediaElement(this.mediaElement);this.G("html5_prewarm_media_source")&&!this.q1.tj()&&UyV(this.mediaElement)}}; g.h.Hz=function(p,C,V){p=p===void 0?!1:p;C=C===void 0?!1:C;V=V===void 0?!1:V;this.logger.debug("remove media element");if(this.mediaElement){var N=this.getCurrentTime();N>0&&(this.EZ.S=N);this.EZ.setMediaElement(null);!p&&Hj(this)?Nuu(this):OD(this,V);this.nS&&(pu(this.nS),f$(this,C));this.OC.stop();if(this.mediaElement&&(!this.XU.Rb()||this.playerState.isError()||g.r(this.playerState,2)||this.aN(JK(this.playerState,512)),this.mediaElement)){g.Am(this.Va);if(p||!this.mediaElement.isView())this.mM.Hm("mesv_s"), this.mediaElement.stopVideo(),qT(this);this.mediaElement=this.mediaElement.Ta=null}}}; g.h.playVideo=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;var V=this,N,H,X,d,a,E;return g.I(function(l){if(l.C==1){V.logger.debug("start play video");V.G("html5_enable_ssap_autoplay_debug_logging")&&V.k_("ssap",{playv:p});var t=window.google_image_requests;t&&t.length>10&&(window.google_image_requests=t.slice(-10));if(g.r(V.playerState,128))return l.return();if(V.q1.Xd())return V.publish("signatureexpired"),l.return();V.mediaElement&&$b(V.Pc());gWY(V);(g.r(V.playerState,64)||p)&&V.aN(JK(V.playerState, 8));return V.XU.finished&&V.mediaElement?V.QL||!V.t_?l.EY(2):g.y(l,V.t_,3):l.return()}if(l.C!=2&&g.r(V.playerState,128))return l.return();if(!V.videoData.V)return V.videoData.isLivePlayback&&!g.GF(V.yn.W,!0)?(N="html5.unsupportedlive",H=2):(N=V.videoData.O8()?"fmt.unplayable":"fmt.noneavailable",H=1),g.eG(Error("selectableFormats")),V.a_(N,H,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(V.gi()&&V.videoData.V.T)return V.logger.debug("rebuild playbackData for airplay"), l.return(Fd(V));if(Xd(V))t=V.EZ,rP(t.videoData)?!t.isAtLiveHead(t.getCurrentTime())&&t.qR()&&t.Ta.seekTo(Infinity,{NZ:"seektimeline_peggedToLive",seekSource:34}):g.pf(t.videoData)&&t.getCurrentTime()<t.Wa()&&t.Ta.seekTo(t.Wa(),{NZ:"seektimeline_outOfWindow"});else if(rP(V.videoData)){if(X=V.getCurrentTime()<V.Wa()-15,d=g.ud(V.videoData)&&V.playerState.isPaused(),a=g.r(V.playerState,1024),t=V.EZ,t.videoData.p4()&&h_(t.videoData)||a||!X&&!d||(d?(V.logger.debug("seek to head for live because of live-only"), V.seekTo(Infinity,{NZ:"videoplayer_unpauseLiveOnly",seekSource:102})):(V.logger.debug("seek to min seekable for live because of out of window"),V.seekTo(V.Wa(),{NZ:"videoplayer_outOfWindow",seekSource:102}))),!V.isAtLiveHead(void 0,!0)&&V.qR()&&(V.logger.debug("seek to head for live because pegged to live"),E={NZ:"videoplayer_peggedToLive",seekSource:34},V.seekTo(Infinity,E)),g.r(V.playerState,256)&&V.videoData.sY&&V.EZ.US())return V.aN(vj(V.playerState,8,4)),l.return()}else g.pf(V.videoData)&&V.getCurrentTime()< V.Wa()-0&&V.seekTo(V.Wa(),{NZ:"videoplayer_outOfWindow"});g.r(V.playerState,4)&&g.r(V.playerState,16)&&V.aN(vj(V.playerState,9,4));if(MT(V,C))return Ddy(V),l.return();KDj(V);g.JQ(l)})}; g.h.wP=function(p){this.logger.debug("reset media source");p&&this.oN(new qD("qoe.restart",p));this.aN(JK(this.playerState,2048));OD(this);p=this.videoData.T&&l5(this.videoData.T);var C=this.mediaElement&&this.mediaElement.isView();p||C?(this.nS&&H4Y(this.nS),sZ(this)):(MT(this),this.playerState.isOrWillBePlaying()&&this.playVideo())}; g.h.TY=function(){if(!this.QL)return[];var p=WNa(this.L$,this.QL,this.F_());return this.QL.T.TY(p)}; g.h.dg=function(){if(!this.QL)return[];var p=WNa(this.L$,this.QL,this.F_());return this.QL.T.dg(p)}; g.h.F_=function(){var p=this.UO?this.UO.F_():ds(this.videoData)&&this.videoData.T&&l5(this.videoData.T)?this.videoData.Kq?xB:vkS:xB;this.Fv&&(p=p.compose(CBr));return p}; g.h.kd=function(){var p=this.qg(),C=this.lJ.DE().videoId;return this.lJ.wz.kd(p)||this.lJ.wz.kd(C)}; g.h.getUserPlaybackQualityPreference=function(){return this.videoData.V&&!this.videoData.V.T?XP(this.videoData.KT):H1[Y1()]}; 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),F9(this))}; 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.EZ,p.Qn=!0,p.Ta.seekTo(Infinity,{NZ:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.h.getProximaLatencyPreference=function(){var p;return(p=zv())!=null?p:0}; g.h.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.h.Cn=function(){this.videoData.videoId?this.lJ.Cn(this.videoData):this.k_("povid",{})}; g.h.kA=function(){this.videoData.videoId?this.lJ.kA(this.videoData):this.k_("piavid",{})}; g.h.getAvailableAudioTracks=function(){return g.pf(this.videoData)&&this.Ze?nw1(this.Ze).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.h.getAudioTrack=function(){if(pze(this)){var p=je9(this);if(p)return p}return this.videoData.getAudioTrack()}; g.h.Is=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.Gh=function(p){p=p===void 0?!1:p;if(this.nS){var C=this.nS,V=C.Gh;var N=this.videoData;N=N.G("html5_ssdai_use_post_for_media")&&N.enableServerStitchedDai?!1:Ge(N)&&N.tE&&!N.isAd();V.call(C,N,p)}}; g.h.In=function(){return this.Hr}; g.h.EA=function(p){this.logger.debug("onNeedKeyInfo");this.Av.set(p.initData,p);this.UO&&(this.UO.EA(p),this.G("html5_eme_loader_sync")||this.Av.remove(p.initData))}; g.h.bd=function(p){this.videoData.l3=g.jo("auto",p,!1,"u");TE(this)}; g.h.Sg=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.w3=new $4s(d,V,C,"",N,H):X.jB(new $4s(d,V,C,"",N));this.publish("internalaudioformatchange",d,!a&&E)}this.EZ.Sg(p.T.index)}; g.h.yG=function(p){this.publish("localmediachange",p)}; g.h.Zm=function(p){p=p===void 0?{}:p;var C;(C=this.nS)==null||C.Zm(this.yn,sW(this.videoData),p)}; g.h.Xd=function(){return this.q1.Xd()}; g.h.handleError=function(p){this.q1.handleError(p)}; g.h.tj=function(){return this.q1.tj()}; g.h.Jx=function(p){this.EZ.Jx(p)}; 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(vj(this.playerState,4,8));else if(this.Bo())MT(this);else return;g.r(this.playerState,128)||(p?this.aN(JK(this.playerState,256)):this.aN(vj(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.ud(this.videoData)&&this.nS&&f$(this,!1)}; g.h.stopVideo=function(){this.pauseVideo();this.nS&&(f$(this,!1),this.nS.H$())}; g.h.Q6=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;if(Hj(this)&&C){var V;(V=this.mediaElement)==null||V.Q6()}else{var N;(N=this.mediaElement)==null||N.stopVideo()}qT(this);K$(this);g.r(this.playerState,128)||(p?this.aN(mE(mE(JK(this.playerState,4),8),16)):this.aN(Mr(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)&&MT(this);C.o$a&&this.aN(JK(this.playerState,2048));C.seekSource!==58&&C.seekSource!==60||!this.G("html5_update_vss_during_gapless_seeking")||Mtj(this.Pc(),C.seekSource);this.EZ.seekTo(p,C);this.ZZ.sync()}; g.h.qI=function(p){EXe(this,p)}; g.h.FH=function(){this.publish("SEEK_COMPLETE")}; g.h.Ci=function(){this.publish("onAbnormalityDetected")}; g.h.uN=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.Mo.getVideoData().clientPlaybackNonce;N===1&&(X=V);if(X=tWS(C,1,X)){if(X=X.getVideoData())X.sabrContextUpdates.has(H)||X.sabrContextUpdates.set(H,p),N!==1&&((p=tWS(C,N,V))?p.getVideoData().sabrContextUpdates.set(N,X.sabrContextUpdates.get(H)):C.Mo.k_("sabrContextUpdate",{napf:"1"}))}else C.Mo.k_("sabrContextUpdate",{ncpf:"1"})}else g.eG(Error("b/380308491: contextUpdateType is undefined"))}}; g.h.getCurrentTime=function(){return this.EZ.getCurrentTime()}; g.h.yW=function(){return this.EZ.yW()}; g.h.I_=function(){return this.EZ.I_()}; g.h.cJ=function(p){return this.Ze&&(p=p||this.Ze.yv())?HN(this.Ze,p):this.I_()}; g.h.S1=function(){return this.EZ.S1()}; g.h.getPlaylistSequenceForTime=function(p){return this.videoData.getPlaylistSequenceForTime(p-this.yZ())}; g.h.k6=function(){var p=NaN;this.mediaElement&&(p=this.mediaElement.k6());return p>=0?p:this.getCurrentTime()}; g.h.Xt=function(){var p;return((p=this.videoData.T)==null?0:p.Xt)?this.videoData.T.Xt(this.getCurrentTime()-this.yZ()):this.mediaElement&&(p=this.mediaElement.D1())&&(p=p.getTime(),!isNaN(p))?p/1E3+this.getCurrentTime():NaN}; g.h.getDuration=function(p){return g.pf(this.videoData)&&this.Ze?p?RHQ(this.Ze,p):GG(this.Ze):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.yZ():this.Sd()?this.Sd():0}; g.h.sS=function(){var p=new DTH;if(this.nS){var C=this.yn.schedule,V=this.yn.Gk();V=V===void 0?!1:V;p.mP=C.sY;p.pT=C.Y_;p.bandwidthEstimate=Mn(C);if(V){V=(C.J.Kd()*1E3).toFixed();var N=(C.Sa.Kd()*1E3).toFixed(),H=tR(C).toFixed(2),X=((C.D.Kd()||0)*1E9).toFixed(2),d=C.V.Kd().toFixed(0),a=C.Wr.Kd().toFixed(0),E=C.Z.percentile(.5).toFixed(2),l=C.Z.percentile(.92).toFixed(2),t=C.Z.percentile(.96).toFixed(2),c=C.Z.percentile(.98).toFixed(2);C.T?C.T.reset():C.T=new Xs;C.T.add(C.Vn);C.T.add(C.interruptions.length); for(var T=0,M=C.interruptions.length-1;M>=0;M--){var J=C.interruptions[M];C.T.add(J-T);T=J}T=0;for(M=C.S.length-1;M>=0;M--){J=C.S[M];var S=J.stamp/36E5;C.T.add(S-T);T=S;C.T.add(J.net/1E3);C.T.add(J.max)}C=C.T.c6();p.T={ttr:V,ttm:N,d:H,st:X,bw:d,abw:a,v50:E,v92:l,v96:t,v98:c,"int":C}}IXj(this.nS,p)}else this.mediaElement&&(p.eA=E3(this.mediaElement));p.mP=this.mP;p.pT=this.pT;p.V=this.isAtLiveHead()&&this.isPlaying()?oWH(this):NaN;return p}; g.h.TP=function(p,C){this.pT+=p;this.mP+=C}; g.h.qD=function(){return this.mediaElement?g.ud(this.videoData)?1:Z6(this.videoData)?this.isAtLiveHead()||this.qR()?1:this.EZ.qD():this.mediaElement.qD():0}; g.h.X0=function(p){var C={};if(p===void 0?0:p){Object.assign(C,this.Pc().X0());this.mediaElement&&(Object.assign(C,this.mediaElement.X0()),Object.assign(C,this.uP()));this.nS&&Object.assign(C,this.nS.X0());this.UO&&(C.drm=JSON.stringify(this.UO.X0()));C.state=this.playerState.state.toString(16);g.r(this.playerState,128)&&(C.debug_error=JSON.stringify(this.playerState.UE));this.iX()&&(C.prerolls=this.S6.join(","));this.videoData.I6&&(C.ismb=this.videoData.I6);this.videoData.latencyClass!=="UNKNOWN"&& (C.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(C.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)C.is_mosaic=1;this.videoData.cotn&&(C.is_offline=1,C.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(C.playerResponseCpn=this.videoData.playerResponseCpn);this.lJ.isOrchestrationLeader()&&(C.leader=1);this.videoData.isLivePlayback&&(this.videoData.T&& Jz(this.videoData.T)&&(C.segduration=Jz(this.videoData.T)),p=this.EZ,C.lat=p.Y?R2S(p.Y.S):0,C.liveutcstart=this.videoData.liveUtcStartSeconds);C.relative_loudness=this.videoData.Gp.toFixed(3);if(p=g.Z_(this))C.optimal_format=p.video.qualityLabel;C.user_qual=Y1();C.release_version="youtube.player.web_20241215_00_RC00";g.pf(this.videoData)&&this.Ze&&(C.ssap=fA(this.Ze))}C.debug_videoId=this.videoData.videoId;return C}; g.h.addCueRange=function(p){this.Qs([p])}; g.h.removeCueRange=function(p){this.ZZ.p$([p])}; g.h.YW=function(p,C){return this.ZZ.YW(p,C)}; g.h.Qs=function(p,C){this.ZZ.d7(p,C)}; g.h.bK=function(p){this.ZZ.p$(p)}; g.h.xm=function(){return this.ZZ.xm()||[]}; g.h.gi=function(){return this.visibility.gi()}; g.h.fT=function(){this.mediaElement&&this.mediaElement.fT()}; g.h.K6$=function(){St(this)}; g.h.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.h.VG=function(p){var C=p.target.U8();if(this.mediaElement&&this.mediaElement.U8()&&this.mediaElement.U8()===C){yDY(this,p.type);switch(p.type){case "error":var V=tK(this.mediaElement)||"",N=this.mediaElement.FF();if(V==="capability.changed"){this.G("html5_restart_on_capability_change")?(this.k_("capchg",{msg:N}),sZ(this,!0)):Fd(this);return}if(this.mediaElement.hasError()&&(YpS(this.q1,V,{msg:N})||g.pf(this.videoData)&&this.Ze&&(N=this.playerState.UE,this.Ze.handleError(V,N==null?void 0:N.PO))))return; if(this.isBackground()&&this.mediaElement.LO()===4){this.Q6();D_(this,"unplayable");return}break;case "durationchange":V=this.mediaElement.getDuration();isFinite(V)&&(!this.Hr||V>0)&&V!==1&&this.Nr(V);break;case "ratechange":this.nS&&this.nS.setPlaybackRate(this.mediaElement.getPlaybackRate());b$u(this.ZZ);this.Pc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":IRj(this);this.publish("onLoadedMetadata");M4y(this);V=this.Xt();this.videoData.vA&&(this.videoData.vA=V);break; case "loadstart":M4y(this);break;case "progress":case "suspend":this.m6();this.publish("onLoadProgress",this,this.qD());break;case "playing":this.mM.Hm("plev");this.Tm&&!Xd(this)&&(this.Tm=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{NZ:"videoplayer_onPlaying"})));break;case "timeupdate":V=this.mediaElement&&!this.mediaElement.getCurrentTime();N=this.mediaElement&&this.mediaElement.wh()===0;if(V&&(!this.OL||N))return;this.OL=this.OL||!!this.mediaElement.getCurrentTime(); Tuj(this);this.m6();if(!this.mediaElement||this.mediaElement.U8()!==C)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.TC().length>0&&this.mediaElement.yx().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.nS)return;this.G("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.wh()>2||!this.mediaElement.isSeeking()&&EJ(this.mediaElement.yx(),this.mediaElement.getCurrentTime()))&& (V=this.mediaElement.X0(),V.bh=E3(this.mediaElement).toFixed(3),this.k_("uwe",V));g.pf(this.videoData)&&this.Ze&&b8V(this.Ze,this.mediaElement.getCurrentTime());break;case "resize":IRj(this);this.videoData.C&&this.videoData.C.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.bB&&g.r(this.playerState,8)&&!g.r(this.playerState,1024)&&this.getCurrentTime()===0&&g.D1){D_(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.U8()=== C){TMu(this.EZ,p,this.Ze||void 0);this.publish("videoelementevent",p);C=this.playerState;N=this.qY;var H=this.mediaElement;V=this.videoData.clientPlaybackNonce;var X=g.pf(this.videoData)&&this.Ze?GG(this.Ze):void 0;if(!g.r(C,128)){var d=C.state;H=H?H:p.target;var a=H.getCurrentTime();if(!g.r(C,64)||p.type!=="ended"&&p.type!=="pause"){X=X||H.getDuration();X=H.isEnded()||a>1&&Math.abs(a-X)<1.1;var E=p.type==="pause"&&H.isEnded();a=p.type==="ended"||p.type==="waiting"||p.type==="timeupdate"&&!g.r(C, 4)&&!Wu(N,a);if(E||X&&a)H.xd()>0&&H.U8()&&(d=14);else switch(p.type){case "error":tK(H)&&(d|=128);break;case "pause":g.r(C,256)?(d^=256)||(d=64):g.r(C,32)||g.r(C,2)||g.r(C,4)||(d=4,g.r(C,1)&&g.r(C,8)&&(d|=1));break;case "playing":a=d;d=(d|8)&-1093;a&4?(d|=1,TP(N,H,!0)):Wu(N,H.getCurrentTime())&&(d&=-2);g.r(C,1)&&TP(N,H)&&(d|=1);break;case "seeking":d|=16;g.r(C,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;TP(N,H,!0);break;case "waiting":g.r(C,2)||(d|=1);TP(N,H);break;case "timeupdate":a=g.r(C,16),X= g.r(C,4),(g.r(C,8)||a)&&!X&&Wu(N,H.getCurrentTime())&&(d=8),TP(N,H)&&(d|=1)}}N=d;d=null;N&128&&(d=p.target,H=tK(d),a=1,H?(H==="capability.changed"&&(a=2),X="GENERIC_WITHOUT_LINK",E=d.X0(),E.mediaElem="1",/AUDIO_RENDERER/.test(d.FF())&&(X="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:H,errorMessage:g.CZ[X]||"",Ye:X,QG:yu(E),PO:a,cpn:C.UE?C.UE.cpn:""}):d=null,d&&(d.cpn=V));C=Mr(C,N,d)}!g.r(this.playerState,1)&&g.r(C,1)&&fRH(this,"evt"+p.type);this.aN(C)}}}; g.h.Va_=function(p){p=p.T.availability==="available";p!==this.Po&&(this.Po=p,this.publish("airplayavailabilitychange"))}; g.h.SYY=function(){var p=(0,g.Ip)(),C=this.mediaElement.gi();this.k_("airplay",{ia:C});!C&&!isNaN(this.Zi)&&p-this.Zi<2E3||(this.Zi=p,C!==this.gi()&&(p=this.visibility,p.T!==C&&(p.T=C,p.JE()),this.k_("airplay",{rbld:C}),F9(this)),this.publish("airplayactivechange"))}; g.h.mQ=function(p){if(this.nS){var C=this.nS,V=C.V,N=C.getCurrentTime(),H=Date.now()-V.Z;V.Z=NaN;V.k_("sdai",{adfetchdone:p,d:H});p&&!isNaN(V.D)&&V.C!==3&&gSS(V.nS,N,V.D,V.W);V.policy.W?V.V=NaN:V.S=NaN;O4(V,4,V.C===3?"adfps":"adf");pu(C)}}; g.h.m6=function(p){var C=this;p=p===void 0?!1:p;if(this.mediaElement&&this.videoData){inS(this.EZ,this.isPlaying());var V=this.getCurrentTime();!this.nS||g.r(this.playerState,4)&&g.ud(this.videoData)||g.r(this.playerState,32)&&$B(this.videoData)||AtX(this.nS,V);this.G("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&FDV(this,V,this.videoData.lengthSeconds);V>5&&(this.EZ.S=V);var N=g.X2();N?g.rE.X5(this.G7):g.KO(this.G7);var H=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!H||E5(this.videoData))&& !g.r(this.playerState,128)){var X=function(){if(C.mediaElement&&!g.r(C.playerState,128)){C.yn.Gk()&&yDY(C,"pfx");var d=C.getCurrentTime();C.G("html5_buffer_underrun_transition_fix")&&(d-=C.yZ());var a=E3(C.mediaElement),E=g.r(C.playerState,8),l=Wu(C.qY,d),t=bqa(C.qY,d,(0,g.Ip)(),a);E&&l?C.aN(mE(C.playerState,1)):E&&t?(E=C.getDuration(),l=rP(C.videoData),E&&Math.abs(E-d)<1.1?(C.k_("setended",{ct:d,bh:a,dur:E,live:l}),C.mediaElement.Cv()?(C.logger.debug("seek to 0 because of looping"),C.seekTo(0,{NZ:"videoplayer_loop", seekSource:37})):sD(C)):(C.playerState.isBuffering()||fRH(C,"progress_fix"),C.aN(JK(C.playerState,1)))):(E&&!l&&!t&&d>0&&(E=(Date.now()-C.o2)/1E3,l=C.getDuration(),d>l-1&&C.k_("misspg",{t:d.toFixed(2),d:l.toFixed(2),r:E.toFixed(2),bh:a.toFixed(2)})),C.playerState.isPaused()&&C.playerState.isBuffering()&&E3(C.mediaElement)>5&&C.aN(mE(C.playerState,1)));C.m6()}}; this.mediaElement.TC().length===0?this.G7=N?g.rE.Lx(X,100):g.F5(X,100):this.G7=N?g.rE.Lx(X,500):g.F5(X,500)}this.videoData.hg=V;this.Ze&&NS(this.Ze);!p&&this.isPlaying()&&SRY(this);XuL(this.L$,this.QL,this.Nt(),this.isBackground())&&TE(this);this.publish("progresssync",this,p);H&&E5(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.h.rU=function(){this.a_("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.h.Zj=function(){return this.Pc().Zj()}; g.h.Xh=function(){return this.nS?this.nS.Xh():Mn(this.yn.schedule,!0)}; g.h.aN=function(p){if(!g.FO(this.playerState,p)){this.logger.debug(function(){return"Setting state "+p.toString()}); var C=new g.Kt(p,this.playerState);this.playerState=p;qR1(this);var V=!this.Dv.length;this.Dv.push(C);var N=this.mediaElement&&this.mediaElement.isSeeking();N=C.T7.state===8&&!N;g.u$(C,1)&&N&&g.r(this.playerState,8)&&!g.r(this.playerState,64)&&this.nS&&(Ndy(this.nS),this.mediaElement&&E3(this.mediaElement)>=5&&NXe(this.L$,this.QL)&&TE(this));(N=g.mi(this.yn.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.r(p,1)&&(g.r(p,8)||g.r(p,16))?this.CN.start(N):this.CN.stop();(D7(C,8)<0||g.u$(C, 1024))&&this.OC.stop();!g.u$(C,8)||this.videoData.sY||g.r(C.state,1024)||this.OC.start();g.r(C.state,8)&&D7(C,16)<0&&!g.r(C.state,32)&&!g.r(C.state,2)&&this.playVideo();g.r(C.state,2)&&Z6(this.videoData)&&(this.Nr(this.getCurrentTime()),this.m6(!0));g.u$(C,2)&&(this.Im(!0),this.yn.Gk()&&this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&$B(this.videoData)&&this.videoData.T&&(N={minst:""+this.videoData.T.Tz,cminst:""+(this.videoData.T.Wa()+this.yZ()),maxst:""+this.videoData.T.lf,hts:""+ this.videoData.T.b_,cmaxst:""+(this.videoData.T.Sd()+this.yZ())},this.k_("sabrSeekableBoundaries",N)));g.u$(C,128)&&this.Q6();this.videoData.T&&this.videoData.isLivePlayback&&!this.TH&&(D7(C,8)<0?QlS(this.videoData.T):g.u$(C,8)&&this.videoData.T.resume());XxY(this.EZ,C);JH1(this.Pc(),C);if(V&&!this.fS())try{for(var H=g.F(this.Dv),X=H.next();!X.done;X=H.next()){var d=X.value;AHy(this.ZZ,d);this.publish("statechange",d)}}finally{this.Dv.length=0}}}; g.h.jf=function(){this.mM.tick("qoes")}; g.h.O$=function(){this.EZ.O$()}; g.h.ZD=function(p,C,V,N){a:{var H=this.q1;N=N===void 0?"LICENSE":N;V=V.substring(0,256);var X=Ir(C);p==="drm.keyerror"&&this.UO&&this.UO.C.keys.length>1&&H.S<96&&(p="drm.sessionlimitexhausted",X=!1);if(X)if(H.videoData.C&&H.videoData.C.video.isHdr())wZu(H,p);else{if(H.Ta.a_(p,C,N,V),okH(H,{detail:V}))break a}else H.oN(p,{detail:V});p==="drm.sessionlimitexhausted"&&(H.k_("retrydrm",{sessionLimitExhausted:1}),H.S++,Udu(H.Ta))}}; g.h.TyY=function(){var p=this,C=g.mi(this.yn.experiments,"html5_license_constraint_delay"),V=XW();C&&V?(C=new g.N8(function(){uY(p);St(p)},C),g.R(this,C),C.start()):(uY(this),St(this))}; g.h.i7=function(p){this.publish("heartbeatparams",p)}; g.h.Ct=function(p){this.k_("keystatuses",haS(p));var C="auto",V=!1;this.videoData.C&&(C=this.videoData.C.video.quality,V=this.videoData.C.video.isHdr());if(this.G("html5_drm_check_all_key_error_states")){var N=sB9(C,V);N=TK(p)?ap9(p,N):p.S.includes(N)}else{a:{C=sB9(C,V);for(N in p.T)if(p.T[N].status==="output-restricted"){var H=p.T[N].type;if(C===""||H==="AUDIO"||C===H){N=!0;break a}}N=!1}N=!N}if(this.G("html5_enable_vp9_fairplay")){if(V)if(p.J){var X;if((X=this.UO)==null?0:Az(X.T))if((V=this.UO)== null)V=0;else{C=X=void 0;H=g.F(V.C.values());for(var d=H.next();!d.done;d=H.next())d=d.value,X||(X=EkY(d,"SD")),C||(C=EkY(d,"AUDIO"));V.Zu({sd:X,audio:C});V=X==="output-restricted"||C==="output-restricted"}else V=!N;if(V){this.k_("drm",{dshdr:1});wZu(this.q1);return}}else{this.videoData.Yu||(this.videoData.Yu=!0,this.k_("drm",{dphdr:1}),sZ(this,!0));return}var a;if((a=this.UO)==null?0:Az(a.T))return}else if(a=p.J&&N,V&&!a){wZu(this.q1);return}N||ap9(p,"AUDIO")&&ap9(p,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), p=haS(p),this.Fv?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.G("html5_report_fatal_drm_restricted_error_killswitch")||this.a_("drm.keyerror",2,void 0,"info."+p)):(this.Fv=!0,this.oN(new qD("qoe.restart",Object.assign({},{retrydrm:1},p))),TE(this),Udu(this)))}; g.h.ah_=function(){if(!this.videoData.sY&&this.mediaElement&&!this.isBackground()){var p="0";this.mediaElement.wh()>0&&E3(this.mediaElement)>=5&&this.videoData.V&&this.videoData.V.T&&(this.aN(JK(this.playerState,1)),fRH(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),p="1");qR1(this);var C=this.videoData.V;p={restartmsg:p,mfmt:!ds(this.videoData),mdrm:!(!(C&&C.videoInfos&&C.videoInfos.length&&C.videoInfos[0].vV)||this.UO),mfmtinfo:!this.videoData.C,prerolls:this.iX()?this.S6.join(","): "0"};if(this.UO){C=this.UO;if(C.C.size<=0){var V="ns;";C.Z||(V+="nr;");C=V+="ql."+C.V.length}else C=haS(C.C.values().next().value),C=yu(C);p.drmp=C}var N;Object.assign(p,((N=this.nS)==null?void 0:N.X0())||{});var H;Object.assign(p,((H=this.mediaElement)==null?void 0:H.X0())||{});this.Pc().oN("qoe.start15s",yu(p));this.publish("loadsofttimeout")}}; g.h.Nr=function(p){this.videoData.lengthSeconds!==p&&(this.videoData.lengthSeconds=p,St(this))}; g.h.Im=function(p,C){var V=this;p=p===void 0?!1:p;if(!this.FE)if(dc("att_s","player_att")||hd("att_s",void 0,"player_att"),this.G("use_rta_for_player"))(function(){var H,X,d,a;return g.I(function(E){switch(E.C){case 1:if(!(H=p)){E.EY(2);break}return g.y(E,g.fhv(),3);case 3:H=!E.T;case 2:if(H)return E.return();g.vv(E,4);X=SDy(V.Pc());if(!X)throw Error();d={};return g.y(E,g.UeL((d.cpn=V.videoData.clientPlaybackNonce,d.encryptedVideoId=V.videoData.videoId||"",d),3E4),6);case 6:a=E.T;if(V.FE)throw Error(); if(!a.challenge)throw g.eG(Error("Not sending attestation ping; no attestation challenge string")),Error();V.FE=!0;var l=[a.challenge];a.error?l.push("r1c="+a.error):a.webResponse&&l.push("r1a="+a.webResponse);var t;((t=a.adblockReporting)==null?void 0:t.reportingStatus)!==void 0&&l.push("r6a="+a.adblockReporting.reportingStatus);var c;((c=a.adblockReporting)==null?void 0:c.broadSpectrumDetectionResult)!==void 0&&l.push("r6b="+a.adblockReporting.broadSpectrumDetectionResult);X(l.join("&"));hd("att_f", void 0,"player_att");g.Fe(E,0);break;case 4:g.Sa(E),hd("att_e",void 0,"player_att"),g.JQ(E)}})})().then(function(){C==null||C()}); else{var N=new g.Fte(this.videoData);if("c1a"in N.o8&&!g.bt.isInitialized()){hd("att_wb",void 0,"player_att");this.Wq===2&&Math.random()<.01&&g.eG(Error("Botguard not available after 2 attempts"));if(p)return;if(this.Wq<5){g.HF(this.Ni);this.Wq++;return}}(N=g.Sry(N))?(hd("att_f",void 0,"player_att"),F5Q(this.Pc(),N),this.FE=!0):hd("att_e",void 0,"player_att")}}; g.h.x6=function(p){p=p===void 0?!1:p;if(rP(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.qR()||g.ud(this.videoData)))p=this.getCurrentTime();else if(g.pf(this.videoData)&&this.Ze){p=this.Ze;var C=this.getCurrentTime();p=(p=xwH(p,C*1E3))?(p.Ag()-p.r6())/1E3:0}else p=this.Sd(p);return p}; g.h.uI=function(){return g.pf(this.videoData)?this.videoData.Wa():this.Wa()}; g.h.Sd=function(p){return this.EZ.Sd(p===void 0?!1:p)}; g.h.Wa=function(){return this.EZ.Wa()}; g.h.yZ=function(){return this.EZ?this.EZ.yZ():0}; g.h.getStreamTimeOffset=function(){return this.EZ?this.EZ.getStreamTimeOffset():0}; g.h.SX=function(){var p=0;this.yn.G("web_player_ss_media_time_offset")&&(p=this.getStreamTimeOffset()===0?this.yZ():this.getStreamTimeOffset());return p}; g.h.setPlaybackRate=function(p){var C;this.playbackRate!==p&&QB1(this.L$,(C=this.videoData.V)==null?void 0:C.videoInfos)&&(this.playbackRate=p,TE(this));this.playbackRate=p;this.mediaElement&&this.mediaElement.setPlaybackRate(p)}; g.h.getPlaybackRate=function(){return this.playbackRate}; g.h.getPlaybackQuality=function(){var p="unknown";if(this.videoData.C&&(p=this.videoData.C.video.quality,p==="auto"&&this.mediaElement)){var C=this.aj();C&&C.videoHeight>0&&(p=e9(C.videoWidth,C.videoHeight))}return p}; g.h.isHdr=function(){return!!(this.videoData.C&&this.videoData.C.video&&this.videoData.C.video.isHdr())}; g.h.v8=function(){this.Pc().v8()}; g.h.sendVideoStatsEngageEvent=function(p,C){var V=this.Pc();V.T?(V=zK(V.T,"engage"),V.b_=p,V.send(C)):C&&C()}; g.h.Ix=function(p){return this.Pc().Ix(p)}; g.h.isAtLiveHead=function(p,C){C=C===void 0?!1:C;return rP(this.videoData)&&(this.u2||C)?this.EZ.isAtLiveHead(p):!1}; g.h.uX=function(){var p=this.Sd(),C=this.getCurrentTime(),V;(V=!rP(this.videoData))||(V=this.EZ,V=!(V.T&&V.T.V));return V||this.qR()||isNaN(p)||isNaN(C)?0:Math.max(0,p-C)}; g.h.t9=CY(23);g.h.ME=CY(41);g.h.J9=function(p){this.Pc().J9(p)}; g.h.Bn=function(p){this.Pc().Bn(p)}; g.h.gJ=function(p){this.Pc().gJ(p)}; g.h.Qo=CY(27);g.h.eO=CY(31);g.h.y9=function(p){this.Pc().y9(p)}; g.h.uP=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.h.setLoop=function(p){this.loop=p;this.mediaElement&&Qj(this.yn)&&this.mediaElement.setLoop(p);this.nS&&this.G("html5_loop_skip_set_end_of_stream")&&(p?this.nS.policy.KS=!0:H4Y(this.nS))}; g.h.Cv=function(){return this.mediaElement&&Qj(this.yn)?this.mediaElement.Cv():this.loop}; g.h.aM=function(p){this.k_("timestamp",{o:p.toString()});this.EZ.aM(p)}; g.h.ZE=function(p){this.mM.tick(p)}; g.h.Cd=function(p){return this.mM.Cd(p)}; g.h.Hm=function(p){this.mM.Hm(p)}; g.h.k_=function(p,C,V){V=V===void 0?!1:V;this.Pc().k_(p,C,V)}; g.h.x8=function(p,C,V){V=V===void 0?!1:V;this.Pc().k_(p,C,V)}; g.h.oN=function(p){this.Pc().oN(p.errorCode,yu(p.details));p=p.errorCode;if(this.videoData.isLivePlayback&&(p==="qoe.longrebuffer"||p==="qoe.slowseek")||p==="qoe.restart"){p=this.nS?sMH(this.nS.videoTrack):{};var C,V;this.k_("lasoe",Object.assign(this.nS?sMH(this.nS.audioTrack):{},(C=this.Hr)==null?void 0:(V=C.T)==null?void 0:V.C3()));var N,H;this.k_("lvsoe",Object.assign(p,(N=this.Hr)==null?void 0:(H=N.C)==null?void 0:H.C3()))}}; g.h.ZN=function(p,C,V){this.Pc().ZN(p,C,V)}; g.h.LR=function(p){this.videoData.RJ=!0;this.oN(new qD("sabr.fallback",p));sZ(this,!0)}; g.h.MD=function(){return g.Zn(this.Pc().provider)}; g.h.getPlayerSize=function(){return this.Dq.getPlayerSize()}; g.h.KO=function(){return this.Dq.KO()}; g.h.W6=function(){return this.mM}; g.h.St=function(){return this.lJ.St()}; g.h.getVolume=function(){return this.lJ.getVolume()}; g.h.jE=function(){return this.lJ.jE()}; g.h.isMuted=function(){return this.lJ.isMuted()}; g.h.t7=function(){return this.lJ.t7()}; g.h.Si=function(){this.TH=!0}; g.h.G=function(p){return this.yn.G(p)}; g.h.s_=function(){var p=this.getCurrentTime(),C=p-this.yZ();var V=this.mediaElement?tj(this.mediaElement.yx()):0;V=Math.floor(Math.max(V-C,0))+100;var N;if(!this.G("html5_ssdai_disable_seek_to_skip")&&((N=this.nS)==null?0:N.v9(C,this.Sd())))return this.k_("sdai",{skipad:1,ct:C.toFixed(3),adj:0}),!0;var H;return((H=this.nS)==null?0:H.s_(C,V))?(this.k_("sdai",{skipad:1,ct:C.toFixed(3),adj:V.toFixed(3)}),$B(this.videoData)&&this.nS.seek(C+V,{seekSource:89,NZ:"videoplayer_skipServerStitchedAd"}),JrS(this.EZ, p),!0):!1}; g.h.Gk=function(){return this.yn.Gk()}; g.h.Ib=function(){if(this.G("html5_generate_content_po_token"))return this.videoData.O1||"";this.lJ.v5();return this.yn.XT||""}; g.h.rM=function(){if(this.videoData.videoId)return this.videoData.G2}; g.h.qg=function(){return this.videoData.videoId}; g.h.qP=function(){return this.lJ.z7}; g.h.GY=function(){return this.lJ.GY()}; g.h.WC=function(p,C){this.EZ.WC(p,C)}; g.h.kW=function(){this.EZ.kW()}; g.h.ZG=function(p,C){var V=this.G("html5_generate_content_po_token")?this.videoData:void 0;this.lJ.ZG(p,C,V)}; g.h.tZ=function(p,C){var V;(V=this.nS)==null||V.tZ(p,C)}; g.h.Bq=function(){var p=this.In();return!!p&&p.Bq()}; g.h.RI=function(){return this.Ze}; g.h.GP=function(p,C){this.Pc().GP(p,C)}; g.h.CJ=function(){return this.Pc().CJ()}; g.h.kh=function(){return this.videoData.Vm}; g.h.SS=function(){return this.lJ.SS()}; g.h.tA=function(){return this.lJ.tA(this)};g.m(oXe,iT);g.m(kIY,iT);g.h=kIY.prototype;g.h.seekToChapterWithAnimation=function(p){var C=this;if(g.Zg(this.api)&&!(p<0)){var V=this.api.getVideoData(),N=V.Y9;if(N&&p<N.length){N=g.F(N);for(var H=N.next();!H.done;H=N.next())if(H=H.value,H.index===p){xde(this,H.startTime,H.title);return}}this.G("web_key_moments_markers")&&(V=V.Di)&&p<V.length&&V.forEach(function(X,d){d===p&&xde(C,X.timeRangeStartMillis,X.title)})}}; g.h.seekToTimeWithAnimation=function(p,C){g.Zg(this.api)&&xde(this,p,C)}; g.h.setMacroMarkers=function(p,C){C={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:C}}}}}};p=p.getVideoData();p.getWatchNextResponse();p&&p.getWatchNextResponse()==null&&(nk(p,{raw_watch_next_response:C}),p.publish("dataupdated"))}; g.h.changeMarkerVisibility=function(p,C,V){var N=this.api.getVideoData();if(N){var H=!1;if(p)for(p=g.F(C),C=p.next();!C.done;C=p.next()){C=C.value;var X=N.Qn;if(X&&!X.includes(C))switch(V){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":zMH(C,N)||(H=!0,X=void 0,(X=N.Qn)==null||X.push(C));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":X.length===0&&(H=!0,X=void 0,(X=N.Qn)==null||X.push(C));break;default:H=!0,X=void 0,(X=N.Qn)==null||X.push(C)}}else for(V= g.F(C),p=V.next();!p.done;p=V.next())p=p.value,N.visibleOnLoadKeys.includes(p)||g.rY(N.Qn,p)&&(H=!0);H&&this.api.publish("updatemarkervisibility")}}; g.h.isSameMarkerTypeVisible=function(p){var C=this.api.getVideoData();return C?zMH(p,C):!1};g.m(bY,iT); bY.prototype.updateMetadata=function(){var p=this,C=this.api.getVideoData();if(C!=null&&C.GN()){var V=this.api.K(),N=[],H="";if(!V.b_){var X=eM1(this);g.gk(V)&&X?(N=PWj(X.thumbnailDetails),X.album&&(H=VTu(X.album))):N=[{src:C.TW("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var d;this.api.G("html5_set_position_state_for_gapless")&&((d=this.api.getVideoData())==null?0:d.J)&&wz1(this);RMV(this);nXu(this);navigator.mediaSession.metadata=new MediaMetadata({title:C.title,artist:C.author,artwork:N, album:H});V=C=null;g.nT(this.api)&&(C=function(){p.api.nextVideo()},V=function(){p.api.previousVideo()}); AH("nexttrack",C);AH("previoustrack",V)}}; bY.prototype.CS=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var p=g.F("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),C=p.next();!C.done;C=p.next())AH(C.value,null);var V;this.api.G("html5_set_position_state_for_gapless")&&((V=this.api.getVideoData())==null?0:V.J)&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});iT.prototype.CS.call(this)};g.m(oi,iT);oi.prototype.S=function(p){return p.compositeEmbargo!==void 0}; oi.prototype.CS=function(){iT.prototype.CS.call(this);this.C.clear()};g.m(Qes,iT);g.h=Qes.prototype;g.h.queueOfflineAction=function(p,C,V,N){var H=this,X,d;return g.I(function(a){return a.C==1?(X=$W(H.api.Tk()))?g.y(a,X.SW([p],C,V,N),3):a.EY(2):a.C!=2&&(d=a.T,d.length)?a.return(d[0]):a.return(Promise.reject())})}; g.h.updateDownloadState=function(p,C){var V=$W(this.api.Tk());return V?V.updateDownloadState(p,C):Promise.reject()}; g.h.pauseVideoDownload=function(p){var C=$W(this.api.Tk());C&&C.EP(p)}; g.h.resumeVideoDownload=function(p){var C=this,V;return g.I(function(N){return(V=$W(C.api.Tk()))?N.return(V.Ey(p)):N.return(Promise.reject())})}; g.h.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()}; g.h.refreshAllStaleEntities=function(p){p===void 0&&(p=14400);var C=$W(this.api.Tk());return C?C.refreshAllStaleEntities(p):Promise.reject()}; g.h.setUpPositionSyncInterval=function(p){var C=$W(this.api.Tk());C&&C.setUpPositionSyncInterval(p)};g.m(km,iT);km.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}}; km.prototype.getAvailableQualityData=function(){var p=this.api.getVideoData();if(!p)return[];var C=[],V,N,H=(V=p.getPlayerResponse())==null?void 0:(N=V.playabilityStatus)==null?void 0:N.paygatedQualitiesMetadata;N=(H==null?void 0:H.qualityDetails)||[];V=new Map;V=g.Pv(N)&&!Array.isArray(N)?new Map(Object.entries(N)):new Map(N.map(function(d){return[d.key,d.value]})); if(N=H==null?void 0:H.restrictedAdaptiveFormats){H=[];N=g.F(N);for(var X=N.next();!X.done;X=N.next())X=X.value,X=dN(X.mimeType,X.quality,X.itag.toString(),X.width.toString(),X.height.toString(),X.qualityLabel),H.push(X);p=g.aM(p);c1(H);N=[];H=g.F(H);for(X=H.next();!X.done;X=H.next())X=X.value,Ec(p,X,this.api.K().W)===!0&&N.push(X);C=C.concat(rDv(N,!1,V))}p=this.api.dg();C=C.concat(rDv(p,!0,V));V=[];if(this.api.G("web_player_enable_premium_hbr_in_h5_api"))return C=GIu(C),BuL(C),C;p={};C=g.F(C);for(H= C.next();!H.done;H=C.next())H=H.value,N=H.quality,p[N]||(H.formatId=void 0,V.push(H),p[N]=!0);return V};var vL={},JPE=(vL["internal-error"]=-1,vL["non-recoverable-error"]=-2,vL["api-disabled-by-application"]=-3,vL["invalid-argument"]=-4,vL["token-provider-invalid"]=-5,vL);g.m(xm,iT);xm.prototype.kA=function(p){var C=this;if(Chj())if(!this.C&&this.T){NRj(this,p);try{this.T.then(function(){VDX(C,p)},function(V){Ym(V,"player_update"); C.handleError(V,p)})}catch(V){Ym(V,"player_update_catch"),this.handleError(V,p)}}else this.C?VDX(this,p):this.api.k_("pf",{m:this.C?1:0, p:this.T?1:0})}; xm.prototype.handleError=function(p,C){g.eG(p);if(this.api.G("html5_enable_d6de4_cold_start_and_error")){var V=0;p.mediaIntegrityErrorName?V||(V=JPE[p.mediaIntegrityErrorName]):p.code&&(V=p.code());C.G2={Mro:{code:V}}}};g.m(zE,g.L);zE.prototype.Pr=function(p){p=p?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":p,title:p});this.api.B6()}; zE.prototype.onClick=function(){this.api.togglePictureInPicture()};g.m(Ri,iT);Ri.prototype.createButton=function(){var p=this;this.button=new zE(this.api);g.R(this,this.button);this.api.ju(this.button);this.events.U(this.api,"videodatachange",function(){Hvj(p)}); Hvj(this)}; Ri.prototype.setDocumentPictureInPicture=function(p){this.api.Uu().wJ(p);p=this.api.l0();var C=dEH(this.api.Tk());C&&(p?C.load():C.unload());this.api.publish("documentpictureinpicturechange")};g.m(X$H,iT);g.m(PO,g.L);g.h=PO.prototype;g.h.SN=function(){}; g.h.Fj=function(){}; g.h.Xb=function(){return!0}; g.h.Rs_=function(){if(this.expanded){this.KS.show();var p=this.V.element.scrollWidth}else p=this.V.element.scrollWidth,this.KS.hide();this.Q$=34+p;g.Tz(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Q$)+"px";this.UY.start()}; g.h.MC=function(){this.badge.element.style.width=(this.expanded?this.Q$:34)+"px";this.Qn.start()}; g.h.fG=function(){this.S&&this.N.logVisibility(this.badge.element,this.Xb());this.W&&this.N.logVisibility(this.dismissButton.element,this.Xb()&&this.N9())}; g.h.Xl=function(p){this.sY=p;et(this);n$(this);this.hd()}; g.h.SEY=function(){g.Tz(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.h.N9=function(){return this.b_||this.sY||!this.Z}; g.h.hd=function(){this.Xb()?this.a$.show():this.a$.hide();this.fG()}; g.h.dk=function(){this.enabled=!1;this.hd()}; g.h.dO=function(p){p?this.W&&this.N.logClick(this.dismissButton.element):this.S&&this.N.logClick(this.badge.element)}; g.h.Vqn=function(){this.hd()}; g.h.hna=function(p){this.kM=p===1;this.hd();g.Tz(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.h.j$_=function(){g.Tz(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.N.isFullscreen());this.hd()};g.m(wL,g.Sp);wL.prototype.rC=function(){this.publish("size-change")}; wL.prototype.focus=function(){this.content.focus()}; wL.prototype.CL=function(){this.publish("back")};g.m(g.$m,wL);g.h=g.$m.prototype;g.h.zB=function(p,C){if(C===void 0?0:C)this.items.push(p),this.menuItems.element.appendChild(p.element);else{C=g.Xv(this.items,p,ivj);if(C>=0)return;C=~C;g.VR(this.items,C,0,p);Eo(this.menuItems.element,p.element,C)}p.subscribe("size-change",this.OU,this);this.menuItems.publish("size-change")}; g.h.u8=function(p){p.unsubscribe("size-change",this.OU,this);this.fS()||(g.rY(this.items,p),this.menuItems.element.removeChild(p.element),this.menuItems.publish("size-change"))}; g.h.OU=function(){this.menuItems.publish("size-change")}; g.h.focus=function(){for(var p=0,C=0;C<this.items.length;C++){var V=this.items[C].element;if(V.getAttribute("role")==="menuitemradio"){if(V.getAttribute("aria-checked")==="true"){p=C;break}}else break}this.items[p].focus()}; g.h.t8=function(){return this.items.length};g.m(g.gL,g.GC);g.h=g.gL.prototype;g.h.show=function(){g.GC.prototype.show.call(this);this.Am()}; g.h.hide=function(){g.GC.prototype.hide.call(this);this.T.length>1&&g.QX(this)}; g.h.Am=function(){aiX(this);this.C4&&(hyQ(this),g.b4(this.element,this.size))}; g.h.Ou=function(){var p=this.T.pop();svH(this,p,this.T[this.T.length-1],!0)}; g.h.fb=function(p){if(!p.defaultPrevented)switch(p.keyCode){case 27:this.f4();p.preventDefault();break;case 37:this.T.length>1&&this.Ou();p.preventDefault();break;case 39:p.preventDefault()}}; g.h.focus=function(){this.T.length&&this.T[this.T.length-1].focus()}; g.h.CS=function(){g.GC.prototype.CS.call(this);this.W&&this.W.dispose();this.D&&this.D.dispose()};g.m(rL,g.gL);rL.prototype.open=function(p,C){this.initialize(p.items)&&this.er(C,!!C)}; rL.prototype.initialize=function(p){g.L$(this.Zd);if(p===void 0||p.length===0)return!1;var C=p.length;p=g.F(p);for(var V=p.next();!V.done;V=p.next())this.zB(V.value,C--);return!0}; rL.prototype.zB=function(p,C){p.menuNavigationItemRenderer?tDX(this,p.menuNavigationItemRenderer,C):p.menuServiceItemRenderer&&cov(this,p.menuServiceItemRenderer,C)};g.m(BO,PO);g.h=BO.prototype;g.h.SN=function(p){p.target!==this.dismissButton.element&&p.target!==this.overflowButton.element&&(this.dO(),this.onClickCommand&&this.N.Jk("innertubeCommand",this.onClickCommand))}; g.h.Fj=function(){this.enabled=!1;this.a$.hide()}; g.h.Xb=function(){return!!this.T&&this.enabled}; g.h.onVideoDataChange=function(p,C){this.Qy(C);if(this.T){this.ov();a:if(!this.isCounterfactual){var V,N,H;this.banner.update({title:(V=this.T)==null?void 0:V.title,subtitle:(N=this.T)==null?void 0:N.subtitle,metadata:(H=this.T)==null?void 0:H.metadataText});var X;this.onClickCommand=g.n((X=this.T)==null?void 0:X.onTap,w7);var d;if(p=g.n((d=this.T)==null?void 0:d.onOverflow,w7))this.J=g.n(p,DLp);var a;if((a=this.T)==null?0:a.thumbnailImage){var E,l;d=((E=this.T)==null?void 0:(l=E.thumbnailImage)== null?void 0:l.sources)||[];if(d.length===0)break a;this.thumbnailImage.update({url:d[0].url})}else{var t;if((t=this.T)==null?0:t.thumbnailIconName){var c;this.thumbnailIcon.update({icon:(c=this.T)==null?void 0:c.thumbnailIconName})}}var T;this.shouldShowOverflowButton=!((T=this.T)==null||!T.shouldShowOverflowButton);var M;this.shouldHideDismissButton=!((M=this.T)==null||!M.shouldHideDismissButton)}var J;this.banner.element.setAttribute("aria-label",((J=this.T)==null?void 0:J.a11yLabel)||"");var S; this.Y_=(S=this.T)==null?void 0:S.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;MDL(this)}}; g.h.wrx=function(){this.isVisible=!0;MDL(this)}; g.h.doa=function(){this.isVisible=!1;MDL(this)}; g.h.fG=function(){PO.prototype.fG.call(this);this.C&&this.N.logVisibility(this.banner.element,this.isVisible)}; g.h.dO=function(){PO.prototype.dO.call(this,!1);this.C&&this.N.logClick(this.banner.element)}; g.h.Lb=function(p){this.D||(this.D=new rL(this.N),g.R(this,this.D));var C,V;if((C=this.J)==null?0:(V=C.menu)==null?0:V.menuRenderer)this.D.open(this.J.menu.menuRenderer,p.target),p.preventDefault()}; g.h.Qy=function(){}; g.h.ov=function(){}; g.h.CS=function(){this.N.qt("suggested_action_view_model");PO.prototype.CS.call(this)};g.m(GE,BO); GE.prototype.Qy=function(p){var C,V,N;this.productUpsellSuggestedActionViewModel=g.n((C=p.getWatchNextResponse())==null?void 0:(V=C.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:N.suggestedActionViewModel,Yv0);var H;if((H=this.productUpsellSuggestedActionViewModel)==null?0:H.content){var X;this.T=g.n((X=this.productUpsellSuggestedActionViewModel)==null?void 0:X.content,FqE)}var d,a;if(this.C=!!((d=this.productUpsellSuggestedActionViewModel)==null?0:(a=d.loggingDirectives)==null? 0:a.trackingParams)){var E,l;this.N.setTrackingParams(this.banner.element,((E=this.productUpsellSuggestedActionViewModel)==null?void 0:(l=E.loggingDirectives)==null?void 0:l.trackingParams)||null)}var t;this.isCounterfactual=!((t=this.productUpsellSuggestedActionViewModel)==null||!t.isCounterfactualServing)}; GE.prototype.ov=function(){var p=[],C,V=g.F(((C=this.productUpsellSuggestedActionViewModel)==null?void 0:C.ranges)||[]);for(C=V.next();!C.done;C=V.next()){var N=C.value;N&&(C=Number(N.startTimeMilliseconds),N=Number(N.endTimeMilliseconds),isNaN(C)||isNaN(N)||p.push(new g.sz(C,N,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.N.d7(p)};g.m(Joj,iT);g.m(pn,iT);pn.prototype.onVideoDataChange=function(p){var C;p==="newdata"&&(this.C||this.T&&((C=PY())==null?0:C.size))&&vaH(this);this.T&&p==="dataloaded"&&((p=KRu(this))&&(p=FRs(this,this.C||p))&&this.api.setAudioTrack(p,!0),this.V&&(this.V=!1,upH(this)))}; pn.prototype.xN=function(){var p=this;if(g.bH(this.api.K())){var C,V=g.pk(this.api.K(),(C=this.api.getVideoData())==null?void 0:g.XE(C));return Tv(Ei(V),function(N){var H=rb();Bk(H,N);return p.api.xN(H)})}return Ei(this.api.xN())};g.m(g.jv,g.Nl);g.h=g.jv.prototype;g.h.open=function(){g.WO(this.xM,this.C)}; g.h.kN=function(p){Zve(this);var C=this.options[p];C&&(C.element.setAttribute("aria-checked","true"),this.Jc(this.oz(p)),this.V=p)}; g.h.dh=function(p){g.L$(this.C);for(var C={},V=!1,N=0;N<p.length;N++){var H=p[N],X=this.options[H],d=H===this.V;d&&(V=!0);X&&X.priority===-N?(g.V7(this.options[H],this.oz(H,!0)),delete this.options[H]):X=this.M2(H,-N,d);C[H]=X;this.C.zB(X,!0)}V||(this.V=null);p=g.F(Object.keys(this.options));for(V=p.next();!V.done;V=p.next())this.options[V.value].dispose();this.options=C}; g.h.M2=function(p,C,V,N){var H=this;V={L:"div",i_:["ytp-menuitem",N?"ytp-menuitem-with-footer":""],X:{tabindex:"0",role:"menuitemradio","aria-checked":V?"true":"false"},j:[{L:"div",i_:["ytp-menuitem-label"],Ak:"{{label}}"}]};N&&(N={L:"div",B:"ytp-menuitem-footer",j:[N]},V.j?V.j.push(N):V.j=[N]);C=new g.Nl(V,C,this.oz(p,!0));C.listen("click",function(){H.On(p)}); return C}; g.h.enable=function(p){this.J?p||(this.J=!1,this.UX(!1)):p&&(this.J=!0,this.UX(!0))}; g.h.UX=function(p){p?this.xM.zB(this):this.xM.u8(this)}; g.h.jq=function(p){this.publish("select",p)}; g.h.On=function(p){this.jq(p)}; g.h.oz=function(p){return p.toString()}; g.h.Nx=function(p){p.defaultPrevented||p.keyCode!==39||(this.open(),p.preventDefault())}; g.h.CS=function(){this.J&&this.xM.u8(this);g.Nl.prototype.CS.call(this);for(var p=g.F(Object.keys(this.options)),C=p.next();!C.done;C=p.next())this.options[C.value].dispose()};g.m(Uby,g.jv);g.h=Uby.prototype;g.h.Pr=function(){var p=this.J7("Off");this.N.getPresentingPlayerType()!==2?(fi9(this),this.kN(this.W),this.T&&(this.W===p?this.T="":this.setSleepTimerTimeLeft(this.T)),this.D&&this.setVideoTimeLeft(this.D),this.enable(!0)):(this.dh([]),this.enable(!1))}; g.h.jq=function(p){OvL(this,p);this.xM.Ou()}; g.h.J7=function(p){switch(p){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(p.toString()+" Minutes").toLowerCase()}}; g.h.onVideoDataChange=function(p){p==="dataloaded"&&fi9(this)}; g.h.SZY=function(p){this.N.logVisibility(this.element,p)}; g.h.onClick=function(){this.N.logClick(this.element)}; g.h.resetSleepTimerMenuSettings=function(){OvL(this,this.J7("Off"))}; g.h.setSleepTimerTimeLeft=function(p){this.T=p;this.Jc(p)}; g.h.setVideoTimeLeft=function(p){this.D=p;this.S.Jc(p)};g.m(V$,iT);V$.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}; V$.prototype.setSleepTimerTimeLeft=function(p){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(p)}; V$.prototype.setVideoTimeLeft=function(p){this.menuItem&&this.menuItem.setVideoTimeLeft(p)};g.m(yoY,iT);g.m(g.Hx,g.ca);g.h=g.Hx.prototype;g.h.U=function(p,C){this.S.U(this.J,p,C,void 0,!this.T)}; g.h.cancel=function(){this.V&&(this.V=!1,this.publish("dragend",0,0,null));this.C&&(this.C=!1,this.publish("hoverend",0,0,null),Xk(this),NA(this))}; g.h.qQ=function(p){Xk(this);this.U(dM("move"),this.j0);this.U(dM("out"),this.QT);this.U("touchstart",this.QM);this.T&&this.U(dM("down"),this.Jy);var C=p.target;p=new g.Fn(p.pageX,p.pageY);this.C=!0;this.publish("hoverstart",p.x,p.y,C);this.publish("hovermove",p.x,p.y,C)}; g.h.j0=function(p){var C=p.target;p=new g.Fn(p.pageX,p.pageY);if(this.W){var V=this.W;this.W=null;if(V.relatedTarget===C&&Sg(new g.Fn(V.pageX,V.pageY),p))return}this.publish("hovermove",p.x,p.y,C)}; g.h.QT=function(p){var C=new g.Fn(p.pageX,p.pageY),V=p.relatedTarget;try{if(V&&g.t2(this.target,V)){this.W=p;this.publish("hovermove",C.x,C.y,V);return}}catch(N){}Xk(this);NA(this);this.C=!1;this.publish("hoverend",C.x,C.y,V)}; g.h.TV$=function(p){this.qQ(p);this.Jy(p)}; g.h.Jy=function(p){if(typeof p.button!=="number"||p.button===0){Xk(this);this.S.U(ii(p.target),dM("move"),this.ykV);this.S.U(ii(p.target),dM("up"),this.G_);var C=p.target;if(g.Nq)this.U("dragstart",this.gN);else if(p.preventDefault(),(g.gG||Do)&&C)a:{for(var V=C;V;){if(cPV(V)||V.getAttribute("tabindex")==="-1"){V.focus();break a}V=V.parentElement}ii(C).activeElement.blur()}this.V=!0;p=new g.Fn(p.pageX,p.pageY);this.publish("dragstart",p.x,p.y,C);this.publish("dragmove",p.x,p.y,C)}}; g.h.gN=function(p){p.preventDefault()}; g.h.ykV=function(p){var C=p.target;C===ii(p.target)&&(C=null);p=new g.Fn(p.pageX,p.pageY);this.publish("hovermove",p.x,p.y,C);this.publish("dragmove",p.x,p.y,C)}; g.h.G_=function(p){Xk(this);this.V=!1;var C=yc(p),V=p.target;p=new g.Fn(p.pageX,p.pageY);C&&g.t2(this.target,C)?(this.U(dM("move"),this.j0),this.U(dM("out"),this.QT),this.U(dM("down"),this.Jy),this.U("touchstart",this.QM),this.publish("dragend",p.x,p.y,V)):(NA(this),this.C=!1,this.publish("dragend",p.x,p.y,V),this.publish("hoverend",p.x,p.y,V))}; g.h.QM=function(p){var C=p.changedTouches[0];C&&(Xk(this),this.Z||(this.U("touchmove",this.MZe),this.U("touchend",this.X8),this.U("touchcancel",this.X8),this.Y=C.identifier,p=p.target,this.C||(this.C=!0,this.publish("hoverstart",C.pageX,C.pageY,p)),this.publish("hovermove",C.pageX,C.pageY,p),this.T&&(this.V=!0,this.publish("dragstart",C.pageX,C.pageY,p),this.publish("dragmove",C.pageX,C.pageY,p))))}; g.h.MZe=function(p){var C=qaa(this,p);C&&(this.T&&p.preventDefault(),p=p.target,this.publish("hovermove",C.pageX,C.pageY,p),this.T&&this.publish("dragmove",C.pageX,C.pageY,p))}; g.h.X8=function(p){var C=qaa(this,p);if(C){Xk(this);NA(this);this.C=!1;var V=p.target;this.T&&(this.D||p.preventDefault(),this.V=!1,this.publish("dragend",C.pageX,C.pageY,V));this.publish("hoverend",C.pageX,C.pageY,V)}}; g.h.CS=function(){this.T&&(g.Nq&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");Xk(this);g.ca.prototype.CS.call(this)}; var IiV=!1;g.m(bvL,g.L);bvL.prototype.l8=function(){g.K2(this.element,"display","none");this.N.logVisibility(this.T,!1)};g.m(sC,iT);sC.prototype.b_=function(p,C){this.J=[p,C];this.T.subscribe("dragmove",this.Y,this);this.T.subscribe("dragend",this.W,this);this.V||g.HF(this.delay)}; sC.prototype.Sa=function(){if(this.S){this.V=!0;this.Vn=this.api.getPlaybackRate();this.Wr=this.api.getPlayerStateObject().isPaused();var p=this.speedmasterUserEdu;g.K2(p.element,"display","");p.N.logVisibility(p.T,!0);this.api.setPlaybackRate(this.vr);this.api.hideControls();this.api.playVideo();this.D&&(this.D.sW=!0);this.a$&&(this.a$.K3=!0)}}; sC.prototype.Y=function(p,C){if(!this.V){p=[p,C];var V=this.J;V&&p&&V.length===2&&p.length===2?(C=Math.abs(V[0]-p[0]),V=Math.abs(V[1]-p[1]),C=Math.sqrt(C*C+V*V)):C=-1;C<this.sY?this.J=p:aT(this)}}; sC.prototype.W=function(){aT(this)};g.m(oaY,iT);oaY.prototype.onVideoDataChange=function(p){p==="newdata"&&this.api.Tk().createSubtitlesModuleIfNeeded()};g.m(EC,g.$q);EC.prototype.preventDefault=function(){g.$q.prototype.preventDefault.call(this);this.T&&this.T.preventDefault()}; EC.prototype.stopPropagation=function(){g.$q.prototype.stopPropagation.call(this);this.T&&this.T.stopPropagation()};g.m(g.li,s3);g.h=g.li.prototype;g.h.F6=function(){return!0}; g.h.isView=function(){return!1}; g.h.wD=function(){return!1}; g.h.V$=function(){return this.T}; g.h.U8=function(){return this.T.src}; g.h.E1=function(p){var C=this.getPlaybackRate();this.T.src=p;this.setPlaybackRate(C)}; g.h.FI=function(){this.T.removeAttribute("src")}; g.h.getPlaybackRate=function(){try{return this.T.playbackRate>=0?this.T.playbackRate:1}catch(p){return 1}}; g.h.setPlaybackRate=function(p){this.getPlaybackRate()!==p&&(this.T.playbackRate=p);return p}; g.h.Cv=function(){return this.T.loop}; g.h.setLoop=function(p){this.T.loop=p}; g.h.canPlayType=function(p,C){return this.T.canPlayType(p,C)}; g.h.isPaused=function(){return this.T.paused}; g.h.isSeeking=function(){return this.T.seeking}; g.h.isEnded=function(){return this.T.ended}; g.h.AR=function(){return this.T.muted}; g.h.BC=function(p){zx();this.T.muted=p}; g.h.TC=function(){return this.T.played||hj([],[])}; g.h.yx=function(){try{var p=this.T.buffered}catch(C){}return p||hj([],[])}; g.h.cW=function(){return this.T.seekable||hj([],[])}; g.h.D1=function(){var p=this.T;return p.getStartDate?p.getStartDate():null}; g.h.getCurrentTime=function(){return this.T.currentTime}; g.h.setCurrentTime=function(p){this.T.currentTime=p}; g.h.getDuration=function(){return this.T.duration}; g.h.load=function(){var p=this.T.playbackRate;try{this.T.load()}catch(C){}this.T.playbackRate=p}; g.h.pause=function(){this.T.pause()}; g.h.play=function(){var p=this.T.play();if(!p||!p.then)return null;p.then(void 0,function(){}); return p}; g.h.wh=function(){return this.T.readyState}; g.h.xd=function(){return this.T.networkState}; g.h.LO=function(){return this.T.error?this.T.error.code:null}; g.h.FF=function(){return this.T.error?this.T.error.message:""}; g.h.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var p=this.T,C=p.webkitDroppedFrameCount;if(p=p.webkitDecodedFrameCount)return{droppedVideoFrames:C||0,totalVideoFrames:p}}return{}}; g.h.gi=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless}; g.h.fT=function(){return!!this.T.webkitShowPlaybackTargetPicker()}; g.h.togglePictureInPicture=function(){var p=this.T,C=window.document;window.document.pictureInPictureEnabled?this.T!==C.pictureInPictureElement?p.requestPictureInPicture():C.exitPictureInPicture():YZ()&&p.webkitSetPresentationMode(p.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.h.rz=function(){var p=this.T;return new g.Fn(p.offsetLeft,p.offsetTop)}; g.h.getSize=function(){return g.Ax(this.T)}; g.h.setSize=function(p){g.b4(this.T,p)}; g.h.getVolume=function(){return this.T.volume}; g.h.setVolume=function(p){zx();this.T.volume=p}; g.h.Rw=function(p){this.W[p]||(this.T.addEventListener(p,this.listener),this.W[p]=this.listener)}; g.h.setAttribute=function(p,C){this.T.setAttribute(p,C)}; g.h.removeAttribute=function(p){this.T.removeAttribute(p)}; g.h.hasAttribute=function(p){return this.T.hasAttribute(p)}; g.h.Qm=CY(45);g.h.wf=CY(47);g.h.o1=CY(49);g.h.nf=CY(51);g.h.RF=function(){return D3(this.T)}; g.h.DO=function(p){g.Ed(this.T,p)}; g.h.I2=function(p){return g.u4(this.T,p)}; g.h.S4=function(){return g.t2(document.body,this.T)}; g.h.audioTracks=function(){var p=this.T;if("audioTracks"in p)return p.audioTracks}; g.h.CS=function(){for(var p=g.F(Object.keys(this.W)),C=p.next();!C.done;C=p.next())C=C.value,this.T.removeEventListener(C,this.W[C]);s3.prototype.CS.call(this)}; g.h.IE=function(p){this.T.disableRemotePlayback=p};g.m(tr,g.L);g.m(Tb,g.L);Tb.prototype.show=function(){g.L.prototype.show.call(this);this.Pr();this.ea.G("html5_enable_moving_s4n_window")&&g.bH(this.ea.K())&&this.J()}; Tb.prototype.hide=function(){g.L.prototype.hide.call(this);this.delay.stop();this.S.stop()}; Tb.prototype.Pr=function(){var p=(0,g.Ip)(),C=xbL(this.ea);cx(this.T,C.bandwidth_samples);cx(this.D,C.network_activity_samples);cx(this.V,C.live_latency_samples);cx(this.C,C.buffer_health_samples);var V={};C=g.F(Object.entries(C));for(var N=C.next();!N.done;N=C.next()){var H=g.F(N.value);N=H.next().value;H=H.next().value;this.Z[N]!==H&&(V[N]=" "+String(H));this.Z[N]=H}this.update(V);p=(0,g.Ip)()-p>25?5E3:500;this.delay.start(p)}; Tb.prototype.J=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.S.start(2E4)};g.m(RyQ,iT);g.m(MA,g.Y);MA.prototype.T=function(){var p=(0,g.Ip)()-this.startTime;p=p<this.duration?p/this.duration:1;this.C(fg(mmy,p));p<1&&this.delay.start()}; var mmy=new Ud(0,0,.4,0,.2,1,1,1),LRH=/[0-9.-]+|[^0-9.-]+/g;g.m(Jr,g.L);Jr.prototype.onClick=function(){var p=this.api.app;var C=p.G("web_log_theater_mode_visibility")?!p.VV():!p.NJ;p.ea.Jk("SIZE_CLICKED",C);this.api.logClick(this.element)}; Jr.prototype.Pr=function(){this.jb(this.api.WF()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.C4){var p=this.api.VV();this.VV!==p&&this.gB(p)}this.api.logVisibility(this.element,this.C4)}; Jr.prototype.gB=function(p){var C=p?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.VV==null?this.updateValue("icon",C):$bv(this.transition,this.element, C);this.VV=p;C=g.kj(this.api,"Default view","t");var V=g.kj(this.api,"Theater mode","t");this.updateValue("title",p?C:V);this.update({"data-title-no-tooltip":p?"Default view":"Theater mode"});this.api.B6()};g.m(gaH,iT);g.m(ro1,iT);g.h=ro1.prototype;g.h.onVideoDataChange=function(p){this.p$();this.videoId=p.videoId;this.C=this.T=void 0;this.timelyActions=QvQ(p);BRs(this);this.clearTimeout();this.d7()}; g.h.wi=function(p){var C=p.T7,V=p.state,N=V.seekSource;!g.r(C,16)&&g.r(V,16)?this.qI(N!=null?N:void 0):g.r(C,16)&&!g.r(V,16)&&this.FH();p=p.state;p=!p.isCued()&&!g.r(p,1024);this.V.jb(p)}; g.h.d7=function(){var p=this.xm();p&&this.api.d7(p)}; g.h.p$=function(){this.api.qt("timelyAction",1);if(this.T!==void 0)this.onCueRangeExit(this.T)}; g.h.xm=function(){if(this.timelyActions){for(var p=[],C=g.F(this.timelyActions),V=C.next();!V.done;V=C.next())V=V.value,V=V.startTimeMilliseconds!=null&&V.endTimeMilliseconds!=null&&V.cueRangeId!=null?new g.sz(Number(V.startTimeMilliseconds),Number(V.endTimeMilliseconds),{id:V.cueRangeId,namespace:"timelyAction"}):void 0,V&&p.push(V);return p}}; g.h.onCueRangeEnter=function(p){var C=mY(this,p);C&&this.S[p]!==void 0&&(C.maxShowCount===void 0||(C==null?void 0:C.maxShowCount)>this.S[p])&&(this.T=p,pNY(this))}; g.h.onCueRangeExit=function(p){var C=G8e(this,p);C&&this.T===p&&this.api.Jk("innertubeCommand",C);this.clearTimeout();this.T=void 0}; g.h.onTimeout=function(p){this.T!==void 0&&(p==null?void 0:p.cueRangeId)===this.T&&(p=G8e(this,this.T))&&this.api.Jk("innertubeCommand",p)}; g.h.qI=function(p){this.C=p}; g.h.FH=function(){pNY(this);this.C=void 0}; g.h.setTimeout=function(p){var C=this,V=Number(p==null?void 0:p.maxVisibleDurationMilliseconds);V&&(this.clearTimeout(),this.W=setTimeout(function(){C.onTimeout(p)},V))}; g.h.clearTimeout=function(){this.W&&clearTimeout(this.W);this.W=void 0}; g.h.CS=function(){this.timelyActions=this.C=this.T=this.videoId=void 0;this.S={};this.p$();this.clearTimeout();iT.prototype.CS.call(this)};g.m(VM9,iT);var F8={},tMe=(F8[1]="pot_ss",F8[2]="pot_sf",F8[3]="pot_se",F8[4]="pot_xs",F8[5]="pot_xf",F8[6]="pot_xe",F8);g.m(Sv,iT);Sv.prototype.CS=function(){this.W&&(g.Dr(this.W),this.W=void 0);iT.prototype.CS.call(this)}; Sv.prototype.v5=function(){this.T&&!this.T.isReady()&&DT(this)}; Sv.prototype.m$=function(p,C,V){var N=this;if(H7L(p)){var H=V||"",X;if((X=this.T)==null?0:X.isReady())C=ui(this,H),XNQ(p,C);else{var d=new g.Zt;C.push(d.promise);this.S.promise.then(function(){var a=ui(N,H);XNQ(p,a);d.resolve()})}}}; Sv.prototype.Cn=function(p){var C=this;this.T&&(this.T.isReady()||(p.O1=ui(this,p.videoId)),this.C=new hK,this.T.ready().then(function(){C.mM.Cd("pot_if");p.O1=ui(C,p.videoId)}))};g.m(TJV,iT);g.m(ZT,g.Y);ZT.prototype.T=function(){for(var p=g.F(g.US.apply(0,arguments)),C=p.next();!C.done;C=p.next())(C=C.value)&&this.features.push(C)}; ZT.prototype.CS=function(){for(var p=this.features.length-1;p>=0;p--)this.features[p].dispose();this.features.length=0;g.Y.prototype.CS.call(this)};UC.prototype.rd=function(){this.C=(0,g.Ip)()}; UC.prototype.reset=function(){this.T=this.C=NaN}; UC.prototype.vy=function(p,C){if(p.clientPlaybackNonce&&!isNaN(this.T)){if(Math.random()<.01){C=C?"pbp":"pbs";var V={startTime:this.T};p.Y&&(V.cttAuthInfo={token:p.Y,videoId:p.videoId});XA("seek",V);g.HH({clientPlaybackNonce:p.clientPlaybackNonce},"seek");isNaN(this.C)||NR("pl_ss",this.C,"seek");NR(C,(0,g.Ip)(),"seek")}this.reset()}};g.h=MM1.prototype;g.h.reset=function(){CU(this.timerName)}; g.h.tick=function(p,C){NR(p,C,this.timerName)}; g.h.Cd=function(p){return ie(p,this.timerName)}; g.h.Hm=function(p){YL(p,void 0,this.timerName)}; g.h.infoGel=function(p){g.HH(p,this.timerName)};g.m(vfY,g.ca);g.h=vfY.prototype;g.h.bT=function(p){return this.loop||!!p||this.index+1<this.length}; g.h.gj=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;C<this.items.length;C++)this.order.push(C);this.index=p;this.C++;if(this.shuffle){p=this.order[this.index];for(C=1;C<this.order.length;C++){var V=Math.floor(Math.random()*(C+1)),N=this.order[C];this.order[C]=this.order[V];this.order[V]=N}for(C=0;C<this.order.length;C++)this.order[C]===p&&(this.index=C);this.C++}this.publish("shuffle")}; g.h.TW=function(p){p=p||"hqdefault.jpg";var C=this.Z[p];if(C||this.I$.b_||p==="sddefault.jpg"||p==="hq720.jpg"||p==="maxresdefault.jpg")return C;if(this.V.length)return Rg(this.I$,this.V[0],p)}; g.h.getLength=function(){return this.length}; g.h.findIndex=function(p){if(p&&(p=p.videoId,!this.items[this.index]||this.items[this.index].video_id!==p))for(var C=0;C<this.items.length;C++)if(this.items[C].video_id===p){this.index=C;break}}; g.h.onReady=function(p){this.T=p;this.loaded&&g.F5(this.T,0)}; g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null}; g.h.a8=function(){return this.I$.getVideoUrl(g.OC(this).videoId,this.getPlaylistId())}; g.h.CS=function(){this.T=null;g.s1(this.items);g.ca.prototype.CS.call(this)};var y$=new Map;g.m(g.IT,g.ca);g.h=g.IT.prototype;g.h.create=function(){}; g.h.load=function(){this.loaded=!0}; g.h.unload=function(){this.loaded=!1}; g.h.DP=function(){}; g.h.P_=function(){return!0}; g.h.CS=function(){this.loaded&&this.unload();g.ca.prototype.CS.call(this)}; g.h.X0=function(){return{}}; g.h.getOptions=function(){return[]};g.m(g.Ar,g.Y);g.h=g.Ar.prototype;g.h.HS=CY(54);g.h.Jr=function(){}; g.h.MX=function(){}; g.h.Es=function(){return""}; g.h.H2=CY(55);g.h.m$=function(p,C){var V=this;if(this.ea.K().G("html5_dispatch_tracklist_loaded_event")){this.S&&(this.S.reject(),this.S=null);var N=[];this.ea.publish("trackListLoaded",this.T,N,C);N.length?(C=new g.Zt,C.promise.then(p.m$,function(){}),this.S=C,Promise.all(N).then(C.resolve,C.reject).finally(function(){V.S=null})):p.m$()}else p.m$()}; g.h.lN=function(){}; g.h.CS=function(){this.S&&(this.S.reject(),this.S=null);this.MX();g.Y.prototype.CS.call(this)};g.m(g.oT,g.Ar);g.oT.prototype.HS=CY(53);g.oT.prototype.Jr=function(p){if(this.audioTrack)for(var C=g.F(this.audioTrack.captionTracks),V=C.next();!V.done;V=C.next())g.bi(this.T,V.value);this.m$(p,this.videoData.videoId)}; g.oT.prototype.Es=function(p,C){var V=p.i9(),N={fmt:C};if(C==="srv3"||C==="3"||C==="json3")g.Qg()?Object.assign(N,{xorb:2,xobt:1,xovt:1}):Object.assign(N,{xorb:2,xobt:3,xovt:3});p.translationLanguage&&(N.tlang=g.aI(p));this.V&&(N.xosf="1");Object.assign(N,this.ea.K().T);return aK(V,N)}; g.oT.prototype.MX=function(){this.C&&this.C.abort()};g.vV2=new Map;g.m(g.xW,g.Ar);g.xW.prototype.HS=CY(52); g.xW.prototype.Jr=function(p){var C=this,V=this.V,N={type:"list",tlangs:1,v:this.videoId,vssids:1};this.Ue&&(N.asrs=1);V=aK(V,N);this.MX();this.C=g.qU(V,{format:"RAW",onSuccess:function(H){C.C=null;if((H=H.responseXML)&&H.firstChild){for(var X=H.getElementsByTagName("track"),d=0;d<X.length;d++){var a=X[d],E=a.getAttribute("lang_code"),l=a.getAttribute("lang_translated"),t=a.getAttribute("name"),c=a.getAttribute("kind"),T=a.getAttribute("id"),M=a.getAttribute("lang_default")==="true",J=a.getAttribute("cantran")=== "true";a=a.getAttribute("vss_id");g.bi(C.T,new g.is({languageCode:E,languageName:l,name:t,kind:c,id:T,is_servable:!0,is_translateable:J,vss_id:a,is_default:M}))}H=H.getElementsByTagName("target");X=H.length;for(d=0;d<X;d++)E={languageCode:H[d].getAttribute("lang_code"),languageName:H[d].getAttribute("lang_translated"),languageOriginal:H[d].getAttribute("lang_original"),id:H[d].getAttribute("id"),isDefault:H[d].getAttribute("lang_default")==="true"},C.Y[E.languageCode]=E.languageName,C.W.push(E)}C.m$(p, C.videoId)}, withCredentials:!0})}; g.xW.prototype.Es=function(p,C){var V=this.V;C={v:this.videoId,type:"track",lang:p.languageCode,name:p.getName(),kind:p.kind,fmt:C};var N=this.ea.K();N.G("captions_url_add_ei")&&(C.ei=this.eventId);p.translationLanguage&&(C.tlang=g.aI(p));Object.assign(C,N.T);return V=aK(V,C)}; g.xW.prototype.MX=function(){this.C&&this.C.abort()};INy.prototype.V=function(){for(var p=g.US.apply(0,arguments),C=this,V=lt("empty"),N=[],H={xH:0};H.xH<this.C.length&&V.currentState!=="done";H={A9:void 0,xH:H.xH},H.xH++)H.A9=this.C[H.xH],H.A9.condition.apply(H.A9,g.K(p))&&(V=MO(MO(V,function(X){return function(){if(!X.A9.condition.apply(X.A9,g.K(p)))throw"condition failed";var d=X.A9.oX.apply(X.A9,g.K(p));return C.T===void 0||C.T===null?d:Tv(Ei(d),function(a){if(!C.T.apply(C,[a].concat(g.K(p))))throw"verification failed";return a})}}(H)),function(X){return function(d){d!== "empty"&&d!=="condition failed"&&d!=="verification failed"&&d!=="error"&&(X.A9.onFailure&&X.A9.onFailure.apply(X.A9,[d].concat(g.K(p))),C.onFailure&&C.onFailure.apply(C,[d, X.xH,X.A9].concat(g.K(p))),N.push(d));throw"error";}}(H))); return MO(V,function(){return lt(N)})};zb.prototype.preload=function(p){p=p?b7s(this.capabilities,p):this.capabilities;return p.TN?Tv(kRy(this,p),function(){}):Ei()}; zb.prototype.compile=function(p){return MO(this.W.V(p),function(C){throw Error("wasm module compile failure: "+C.map(function(V){return V.message}).join(", "),{cause:C}); })}; zb.prototype.instantiate=function(p,C){return MO(this.Y.V(p,C),function(V){throw Error("wasm module instantiation failure: "+V.map(function(N){return N.message}).join(", "),{cause:V}); })};R1v.prototype.emscripten_notify_memory_growth=function(){};var xSa;g.h=e1u.prototype;g.h.malloc=function(p){return this.T.malloc(p)}; g.h.free=function(p){this.T.free(p)}; g.h.realloc=function(p,C){return this.T.realloc(p,C)}; g.h.s2=function(p){if(p.buffer!==this.exports.memory.buffer){var C=this.malloc(p.byteLength);C=new Uint8Array(this.exports.memory.buffer,C,p.byteLength);C.set(p);return C}}; g.h.Zz=function(p){if(p.buffer===this.exports.memory.buffer){var C=p.slice();this.free(p.byteOffset);return C}}; var KF1="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);YW.SB(e1u,{s2:function(p){return{profile:"copyj2w",y6:p===void 0?0:Math.ceil(p.byteLength/16)}}, Zz:function(p){return{profile:"copyw2j",y6:p===void 0?0:Math.ceil(p.byteLength/16)}}});g.m($Su,g.Y);g.h=$Su.prototype;g.h.createSubtitlesModuleIfNeeded=function(){QCs(this)&&nn(this,"captions");return!!g.RT(this)}; g.h.hJ=function(){return g.pf(this.N.getVideoData())&&!this.N.iI().V}; g.h.P9=function(){return this.N.getVideoData().P9()}; g.h.Gm=function(){return this.N.getVideoData().Gm()}; g.h.Yp=function(){var p=this.Ji.get("heartbeat");nn(this,"heartbeat",!1,!0,this.Yp);!p&&this.Ji.has("heartbeat")&&this.N.publish("offlineslatestatechange")}; g.h.vJ=function(){nn(this,"annotations_module",!0,void 0,this.vJ);var p=this.Ji.get("annotations_module");if(p)for(var C in this.V)if(this.V.hasOwnProperty(C)){var V=C;p.subscribe(V,this.V[V])}}; g.h.s$=function(){if(!this.Ji.get("ad"))try{LPv(this)?nn(this,"ad",!1,!0,this.s$):this.N.hp("ad")}catch(p){this.N.hp("ad"),g.nm(p)}}; g.h.W6=function(){return this.C}; g.h.St=function(){var p={},C=g.RT(this);C&&Object.assign(p,C.St());return p}; g.h.RC=function(p,C){Object.assign(this.C,p||null);Object.assign(this.WJ,C||null)}; g.h.onVideoDataChange=function(){var p=this.N.getVideoData();this.N.G("enable_wn_infocards")&&g.qI(p)&&!g.Ln(this)&&this.vJ()}; g.h.CS=function(){g.Y.prototype.CS.call(this);ev(this,1,!0);for(var p=g.F(Object.entries(sQX)),C=p.next();!C.done;C=p.next()){var V=g.F(C.value);C=V.next().value;V=V.next().value;this.S.has(V)&&y$.delete(C)}this.S.clear()}; var Sj={},sQX=(Sj.ad="ad.js",Sj.annotations_module="annotations_module.js",Sj.asmjs="asmjs.js",Sj.creatorendscreen="annotations_module.js",Sj.embed="embed.js",Sj.endscreen="endscreen.js",Sj.heartbeat="heartbeat.js",Sj.inline_preview="inline_preview.js",Sj.kids="kids.js",Sj.remote="remote.js",Sj.miniplayer="miniplayer.js",Sj.offline="offline.js",Sj.captions="captions.js",Sj.unplugged="unplugged.js",Sj.ux="ux.js",Sj.webgl="webgl.js",Sj.ypc="ypc.js",Sj.ypc_clickwrap="ypc_clickwrap.js",Sj.yto="yto.js", Sj),HDe="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat inline_preview kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.m(EyH,g.ca);g.h=EyH.prototype;g.h.eC=function(p){p=new g.Fn(p.pageX,p.pageY);if(!Sg(p,this.S)){var C=2;this.Y&&(C|=8);this.S=p;Wx(this,C,!0)}}; g.h.kak=function(){this.Y&&Wx(this,8,!0);Wx(this,2,!1)}; g.h.qQ=function(p){var C=new g.Fn(p.pageX,p.pageY);Sg(C,this.S)||(this.S=C,(p=p.target)&&this.sJ(p)&&(Wx(this,4,!0),this.T.rY(this.V),this.V=this.T.U(this.target,"mouseover",this.QT),this.D=this.T.U(this.target,"mouseout",this.QT)))}; g.h.QT=function(p){p=p.relatedTarget;p&&this.sJ(p)||(this.S=new g.Fn(NaN,NaN),lOX(this))}; g.h.Ed=function(){Wx(this,1,!0)}; g.h.fu=function(p){p=p.target;p instanceof Element&&!(p.tabIndex>0)||Wx(this,1,!0)}; g.h.F8=function(){this.Y=!0;this.T.rY(this.W);this.W=this.T.U(document,"mouseup",this.HT)}; g.h.HT=function(){this.Y=!1;Wx(this,8,!1);this.T.rY(this.W);this.W=this.T.U(this.target,"mousedown",this.F8)}; g.h.qv=function(p){if(p=(p=p.changedTouches)&&p[0])this.sY=p.identifier,this.T.rY(this.J),this.J=this.T.U(this.target,"touchend",this.PT,void 0,!0),Wx(this,1024,!0)}; g.h.PT=function(p){if(p=p.changedTouches)for(var C=0;C<p.length;C++){var V=p[C];if(V.identifier===this.sY){var N=V;break}}N&&(this.T.rY(this.J),this.J=this.T.U(this.target,"touchstart",this.qv,void 0,!0),Wx(this,1024,!1))}; g.h.Pm=function(){Wx(this,2,!0)}; g.h.resize=function(){g.kZ&&lOX(this)}; g.h.toString=function(){return g.ca.prototype.toString.call(this)};g.m(g.rM,g.L);g.h=g.rM.prototype;g.h.rpS=function(){this.Pr()}; g.h.Pr=function(){var p=this.api.getVideoData(),C=this.api.K(),V=!!this.api.isEmbedsShortsMode();g.Tz(this.element,"ytp-shorts-mode",V);V?C=[{L:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},j:[{L:"path",X:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z", fill:"#f00","fill-rule":"evenodd"}},{L:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.lx(p)?C=[{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},j:[{L:"path",B:"ytp-dni-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{L:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:p.UV&&p.PP?C=[{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},j:[{L:"path",B:"ytp-dni-large-play-button-bg", X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{L:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:C.Y?(g.Tz(this.element,"ytp-touch-device",C.C),C=[C.Y?{L:"svg",X:{height:"100%",version:"1.1", viewBox:"0 0 60 60",width:"100%"},j:[{L:"path",B:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{L:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},j:[{L:"path",B:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z", fill:"#212121","fill-opacity":"0.8"}},{L:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):C=[{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},j:[{L:"path",B:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z", fill:"#f00"}},{L:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",C);p.UV&&p.PP&&this.rV("ytp-dni-large-play-button-bg").setAttribute("fill",p.PP?p.PP:"#1f1f1f")}; g.h.show=function(){g.L.prototype.show.call(this);this.api.K().G("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)}; g.h.VN=function(){this.api.getVideoData().mutedAutoplay||(this.api.tS(),this.api.playVideo())}; g.h.VdS=function(p){this.api.getVideoData().mutedAutoplay||p.preventDefault()};g.m(g.Bx,g.L);g.h=g.Bx.prototype;g.h.show=function(){var p=this;this.C4||(this.S.U(this.api,"videodatachange",function(){g.HF(p.T)}),this.S.U(this.api,"videoplayerreset",function(){g.HF(p.T)})); g.L.prototype.show.call(this)}; g.h.hide=function(){this.S&&g.Am(this.S);g.L.prototype.hide.call(this)}; g.h.OR=function(){g.HF(this.T)}; g.h.onStateChange=function(){g.HF(this.T)}; g.h.wax=function(){g.HF(this.T)}; g.h.onReset=function(){this.C.stop();this.hide();g.HF(this.T)}; g.h.Pr=function(){var p=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(p.isPlaying()||p.isPaused()))var C=!0;else(C=this.api.Tk().Ji.get("ypc"))&&C.Wg?C=!0:(C=this.api.K(),C=g.r(p,2)&&g.Yj(this.api)&&C.FT?!0:!1);C?(C=!0,this.V.hide()):this.api.G("web_player_show_frame_zero_when_cued")&&tCe(this)?(C=!0,this.V.hide()):(this.V.show(),C=p.isCued()&&this.api.getPresentingPlayerType()!==2||g.r(p,2)&&!g.Yj(this.api)&&!this.api.oF()||g.r(p,1024)?!0:!1);var V=this.api.getVideoData(); C&&!V.Wt?(this.C.show(),this.vB_(this.api.getPlaylist(),V)):(this.C.hide(),g.r(p,1)||this.C.stop())}; g.h.vB_=function(){var p=g.US.apply(0,arguments),C=this.api.K(),V,N=(V=this.api.getVideoData())==null?void 0:V.videoId;if(C.G("web_player_show_frame_zero_when_cued")&&N&&tCe(this))var H="https://i.ytimg.com/vi/"+N+"/frame0.jpg";else for(p=g.F(p),V=p.next();!V.done;V=p.next())if(V=V.value,!(!V||V instanceof g.YB&&!V.videoId)){H=this.api.dV().getPlayerSize();var X=g.Pg();N=H.width*X;X*=H.height;if(N>1280||X>720)if(H=V.TW("maxresdefault.jpg"))break;if(N>640||X>480)if(H=V.TW("maxresdefault.jpg"))break; if(N>320||X>180)if(H=V.TW("sddefault.jpg")||V.TW("hqdefault.jpg")||V.TW("mqdefault.jpg"))break;if(H=V.TW("default.jpg"))break}g.LI(C)&&(C=new Image,C.addEventListener("load",function(){H59()}),C.src=H?H:"",this.api.W6().tick("ftr")); this.W.style.backgroundImage=H?"url("+H+")":""};g.m(g.Gb,g.L);g.Gb.prototype.resize=function(){}; g.Gb.prototype.C=function(p){var C=this;this.V=!1;MCV(this);var V=p.Ye,N=this.api.K();V!=="GENERIC_WITHOUT_LINK"||N.Y?V==="TOO_MANY_REQUESTS"?(N=this.api.getVideoData(),this.Jc(j4(this,"TOO_MANY_REQUESTS_WITH_LINK",N.a8(),void 0,void 0,void 0,!1))):V!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||N.Y?this.api.K().G("html5_enable_bandaid_error_screen")&&V==="HTML5_SPS_UMP_STATUS_REJECTED"&&!N.Y?(N=N.hostLanguage,p="//support.google.com/youtube?p=videoError",N&&(p=g.GD(p,{hl:N})),this.Jc(j4(this,"HTML5_SPS_UMP_STATUS_REJECTED", p))):this.api.K().G("enable_adb_handling_in_sabr")&&V==="BROWSER_OR_EXTENSION_ERROR"&&!N.Y?(N=N.hostLanguage,p="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",N&&(p=g.GD(p,{hl:N})),this.Jc(j4(this,"BROWSER_OR_EXTENSION_ERROR",p))):this.Jc(g.pZ(p.errorMessage)):this.Jc(j4(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(p=N.hostLanguage,V="//support.google.com/youtube/?p=player_error1",p&&(V=g.GD(V, {hl:p})),this.Jc(j4(this,"GENERIC_WITH_LINK_AND_CPN",V,!0)),N.VZ&&!N.S&&Tv9(this,function(X){if(g.Ml(X,C.api,!nI(C.api.K()))){X={as3:!1,html5:!0,player:!0,cpn:C.api.getVideoData().clientPlaybackNonce};var d=C.api;d.Ba("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:X});d.isFullscreen()&&d.toggleFullscreen()}})); if(this.V){var H=this.rV("ytp-error-link");H&&(this.api.createClientVe(H,this,216104),this.api.logVisibility(H,!0),Tv9(this,function(){C.api.logClick(H)}))}}; var cFv=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.m(JFv,g.L);g.h=JFv.prototype;g.h.onClick=function(p){this.innertubeCommand?(this.N.Jk("innertubeCommand",this.innertubeCommand),p.preventDefault()):g.Ml(p,this.N,!0);this.N.logClick(this.element)}; g.h.onVideoDataChange=function(p,C){vyX(this,C);this.g7&&Ffu(this,this.g7)}; g.h.R7=function(p){var C=this.N.getVideoData();this.videoId!==C.videoId&&vyX(this,C);this.T&&Ffu(this,p.state);this.g7=p.state}; g.h.er=function(){this.S.show();this.N.publish("paidcontentoverlayvisibilitychange",!0);this.N.logVisibility(this.element,!0)}; g.h.f4=function(){this.S.hide();this.N.publish("paidcontentoverlayvisibilitychange",!1);this.N.logVisibility(this.element,!1)};g.m(V1,g.L);V1.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.L.prototype.hide.call(this)}; V1.prototype.onStateChange=function(p){this.UZ(p.state)}; V1.prototype.UZ=function(p){if(g.r(p,128))var C=!1;else{var V;C=((V=this.api.L1())==null?0:V.hx)?!1:g.r(p,16)||g.r(p,1)?!0:!1}C?this.T.start():this.hide()}; V1.prototype.C=function(){this.message.style.display="block"};g.m(Nd,g.GC);Nd.prototype.onMutedAutoplayChange=function(p){this.V&&(p?(SmX(this),this.er()):(this.T&&this.logClick(),this.f4()))}; Nd.prototype.wi=function(p){this.api.isMutedByMutedAutoplay()&&g.u$(p,2)&&this.f4()}; Nd.prototype.onClick=function(){this.api.unMute();this.logClick()}; Nd.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.m(g.Hz,g.Rr);g.h=g.Hz.prototype;g.h.init=function(){var p=this.api,C=p.getPlayerStateObject();this.gM=p.getPlayerSize();this.aN(C);this.Uc();this.OR();this.api.publish("basechromeinitialized",this);this.py()&&this.api.publish("standardControlsInitialized")}; g.h.onVideoDataChange=function(p,C){var V=this.w1!==C.videoId;if(V||p==="newdata"){p=this.api;p.isFullscreen()||(this.gM=p.getPlayerSize());var N;((N=this.api.getVideoData(1))==null?0:g.pf(N))&&this.tF()}V&&(this.w1=C.videoId,V=this.YB,V.Vn=3E3,Wx(V,512,!0),this.Uc());this.api.G("web_render_jump_buttons")&&C.showSeekingControls&&(this.A1=572)}; g.h.h6_=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.h.QX=function(){var p=this.api.dR()&&this.api.iy(),C=this.api.iU();return this.Az||p||this.qk||C}; g.h.tF=function(){var p=!this.QX();g.Tz(this.api.getRootNode(),"ytp-menu-shown",!p);var C;((C=this.api.getVideoData(1))==null?0:g.pf(C))&&g.Tz(this.api.getRootNode(),"ytp-hide-controls",!p)}; g.h.sJ=function(p){try{if(!g.t2(this.api.getRootNode(),p))return!1}catch(C){return!1}for(;p&&!cPV(p);)p=p===this.api.getRootNode()?null:p.parentElement||null;return!!p}; g.h.XS=function(p){var C=this.api.getRootNode();g.Tz(C,"ytp-autohide",p);g.Tz(C,"ytp-autohide-active",!0);this.kp.start(p?250:100);p&&(this.t3=!1,g.tk(C,"ytp-touch-mode"));this.xe=!p;this.api.VF(!p)}; g.h.Io=function(){var p=this.api.getRootNode();g.Tz(p,"ytp-autohide-active",!1)}; g.h.aEY=function(){this.n0=!0}; g.h.kB$=function(p){if(this.api.K().G("player_doubletap_to_seek")||this.api.K().J)this.n0=!1,this.C0&&this.rY(this.C0),this.rA===0&&Xo(this,p)?(this.cG(),this.RY.start(),this.C0=this.U(this.api.dV(),"touchmove",this.aEY,void 0,!0)):this.RY.stop();ZDX(this)&&Xo(this,p)&&!this.api.K().J&&DE9(this);var C=this.rX.rh();if(!g.KI(this.api.K())&&vg&&UES(this,p))C&&p.preventDefault();else if(this.t3=!0,g.Ed(this.api.getRootNode(),"ytp-touch-mode"),this.YB.Pm(),this.api.K().G("player_doubletap_to_seek")||this.api.K().J)if(C= this.api.getPlayerStateObject(),!(!this.api.CO()||g.r(C,2)&&g.Yj(this.api)||g.r(C,64))){C=Date.now()-this.S7;this.rA+=1;if(C<=350){this.vO=!0;C=this.api.getPlayerSize().width/3;var V=this.api.getRootNode().getBoundingClientRect(),N=p.targetTouches[0].clientX-V.left;V=p.targetTouches[0].clientY-V.top;var H=(this.rA-1)*10;N>0&&N<C?(this.AK(-1,N,V,H),this.api.seekBy(-10*this.api.getPlaybackRate())):N>C*2&&N<C*3&&(this.AK(1,N,V,H),this.api.seekBy(10*this.api.getPlaybackRate()));p.preventDefault()}else Q$&& this.api.K().J&&Xo(this,p)&&p.preventDefault();this.S7=Date.now();this.hN.start()}}; g.h.TYk=function(){this.Ya.sW=!1;this.api.publish("rootnodemousedown",this.Ya)}; g.h.cQ$=function(p){if(this.api.K().G("web_fix_fine_scrubbing_false_play")){if(UES(this,p)||this.Ya.sW)return}else if(this.Ya.sW||UES(this,p))return;ZDX(this)||!Xo(this,p)||this.RY.isActive()||(DE9(this),p.preventDefault());this.vO&&(this.vO=!1)}; g.h.cG=function(){}; g.h.R1=function(){}; g.h.AK=function(){}; g.h.renderChapterSeekingAnimation=function(){}; g.h.u6=function(){var p=this.api.getPlayerStateObject();g.r(p,2)&&g.Yj(this.api)||(p.isOrWillBePlaying()?this.api.pauseVideo():(this.a9&&this.api.publish("largeplaybuttonclicked",this.a9.V.element),this.api.tS(),this.api.playVideo(),this.a9&&document.activeElement===this.a9.V.element&&((p=this.py())==null?p=0:p.playButton?(p.playButton.focus(),p=!0):p=!1,p||this.api.getRootNode().focus())))}; g.h.Mba=function(p){var C=this,V=this.api.getPresentingPlayerType();if(!u7Y(this,yc(p)))if(p=this.api.K(),(this.api.K().G("player_doubletap_to_seek")||this.api.K().J)&&this.vO)this.vO=!1;else if(p.Hc&&V!==3)try{this.api.toggleFullscreen().catch(function(N){C.z1(N)})}catch(N){this.z1(N)}}; g.h.z1=function(p){String(p).includes("fullscreen error")?g.eG(p):g.nm(p)}; g.h.Z4_=function(p){fOH(this,.3,p.scale);p.preventDefault()}; g.h.yc_=function(p){fOH(this,.1,p.scale)}; g.h.OR=function(){var p=this.api.dV().getPlayerSize(),C=this.api.getRootNode(),V=p.width>=650;this.YB.resize();g.Tz(C,"ytp-fullscreen",this.api.isFullscreen());g.Tz(C,"ytp-large-width-mode",V);g.Tz(C,"ytp-small-mode",this.OE());g.Tz(C,"ytp-tiny-mode",this.jQ());g.Tz(C,"ytp-big-mode",this.GW());this.mS&&this.mS.resize(p)}; g.h.wi=function(p){this.aN(p.state);this.Uc()}; g.h.Ur=CY(5);g.h.sB=function(){var p=!!this.w1&&!this.api.B1()&&!this.rD,C=this.api.getPresentingPlayerType()===2,V=this.api.K();if(C){if(ajE&&V.G("enable_visit_advertiser_support_on_ipad_mweb"))return!1;C=Px(this.api.Tk());p&&(C&&C.player?p=(p=C.player.getVideoData(2))?p.isListed&&!g.qz(C.player.K()):!1:(S2("showInfoBarDuringAd: this is null"),p=!1));return p}return p&&(V.lF||this.api.isFullscreen()||V.tB)}; g.h.Uc=function(){var p=this.sB();this.Gi!==p&&(this.Gi=p,g.Tz(this.api.getRootNode(),"ytp-hide-info-bar",!p))}; g.h.aN=function(p){var C=p.isCued()||this.api.iX()&&this.api.getPresentingPlayerType()!==3;C!==this.isCued&&(this.isCued=C,this.Al&&this.rY(this.Al),this.Al=this.U(this.api.dV(),"touchstart",this.kB$,void 0,C));var V=this.YB,N=p.isPlaying()&&!g.r(p,32)||this.api.Db();Wx(V,128,!N);V=this.YB;N=this.api.getPresentingPlayerType()===3;Wx(V,256,N);V=this.api.getRootNode();g.r(p,2)?N=[PD.ENDED]:(N=[],g.r(p,8)?N.push(PD.PLAYING):g.r(p,4)&&N.push(PD.PAUSED),g.r(p,1)&&!g.r(p,32)&&N.push(PD.BUFFERING),g.r(p, 32)&&N.push(PD.SEEKING),g.r(p,64)&&N.push(PD.UNSTARTED));g.af(this.nN,N)||(g.cF(V,this.nN),this.nN=N,g.lI(V,N));N=this.api.K();var H=g.r(p,2);a:{var X=this.api.K();var d=X.controlsType;switch(d){case "2":case "0":X=!1;break a}X=d==="3"&&!g.r(p,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:W3v(Px(this.api.Tk())))||this.api.iU()||g.KI(X)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Tz(V,"ytp-hide-controls",!X);g.Tz(V,"ytp-native-controls",N.controlsType==="3"&&!C&&!H&&!this.qk);g.r(p, 128)&&!g.KI(N)?(this.mS||(this.mS=new g.Gb(this.api),g.R(this,this.mS),g.LT(this.api,this.mS.element,4)),this.mS.C(p.UE),this.mS.show()):this.mS&&(this.mS.dispose(),this.mS=null)}; g.h.A6=function(){return this.api.dR()&&this.api.iy()?(this.api.Dg(!1,!1),!0):this.api.B1()?(g.zC(this.api,!0),!0):!1}; g.h.onMutedAutoplayChange=function(p){this.qk=p;this.tF()}; g.h.GW=function(){return!1}; g.h.OE=function(){return!this.GW()&&(this.api.getPlayerSize().width<this.A1||this.api.getPlayerSize().height<290)}; g.h.jQ=function(){return this.OE()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)}; g.h.Em=function(){return this.t3}; g.h.TA=function(){return null}; g.h.Gj=function(){return null}; g.h.ai=function(){var p=this.api.dV().getPlayerSize();return new g.vf(0,0,p.width,p.height)}; g.h.handleGlobalKeyDown=function(){return!1}; g.h.handleGlobalKeyUp=function(){return!1}; g.h.Lr=function(){}; g.h.showControls=function(p){p!==void 0&&this.api.dV().VF(p)}; g.h.Pm=function(){}; g.h.py=function(){return null};g.m(du,g.ca);g.h=du.prototype;g.h.Z8=function(){return 1E3*this.api.getDuration(this.TR,!1)}; g.h.stop=function(){this.T&&this.qZ.rY(this.T)}; g.h.m6=function(){var p=this.api.getProgressState(this.TR);this.C={seekableStart:p.seekableStart,seekableEnd:p.seekableEnd,current:this.api.getCurrentTime(this.TR,!1)};this.publish("h")}; g.h.getProgressState=function(){return this.C}; g.h.YS=function(p){g.u$(p,2)&&this.publish("g")};g.m(g.iW,g.L);g.iW.prototype.show=function(){g.L.prototype.show.call(this);g.HF(this.T)}; g.iW.prototype.hide=function(){this.C.stop();g.L.prototype.hide.call(this)}; g.iW.prototype.R1=function(p){p?g.r(this.N.getPlayerStateObject(),64)||hD(this,oS(),"Play"):(p=this.N.getVideoData(),p.isLivePlayback&&!p.allowLiveDvr?hD(this,AmY(),"Stop live playback"):hD(this,yms(),"Pause"))};g.m(qmL,g.L);g.h=qmL.prototype;g.h.e3=function(p){p?this.T=o$(this.N,this.element,null):(this.T=this.T,this.T(),this.T=null)}; g.h.er=function(){this.N.K().G("player_new_info_card_format")&&g.aL(this.N.getRootNode(),"ytp-cards-teaser-shown")&&!g.KI(this.N.K())||(this.C.show(),g.J3("iv-button-shown"))}; g.h.f4=function(){g.J3("iv-button-hidden");this.C.hide()}; g.h.rh=function(){return this.C4&&this.C.state!==4}; g.h.CS=function(){this.T&&this.T();g.L.prototype.CS.call(this)}; g.h.MaY=function(){g.J3("iv-button-mouseover")}; g.h.onClicked=function(p){this.N.dR();var C=g.aL(this.N.getRootNode(),"ytp-cards-teaser-shown");g.J3("iv-teaser-clicked",C);var V;if((V=this.N.getVideoData())==null?0:g.yB(V)){var N;p=(N=this.N.getVideoData())==null?void 0:g.qI(N);(p==null?0:p.onIconTapCommand)&&this.N.Jk("innertubeCommand",p.onIconTapCommand)}else N=p.screenX===0&&p.screenY===0,this.N.Dg(!this.N.iy(),N,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.m(IOS,g.L);g.h=IOS.prototype;g.h.My=function(){this.N.dR()&&this.N.iy()&&this.rh()&&this.f4()}; g.h.q_=function(){this.f4();!this.N.dR()&&this.N.K().G("enable_error_corrections_infocards_icon_web")&&this.Mn.f4();g.J3("iv-teaser-clicked",this.T!=null);if(this.onClickCommand)this.N.Jk("innertubeCommand",this.onClickCommand);else{var p;((p=this.N.getVideoData())==null?0:g.yB(p))||this.N.Dg(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}}; g.h.BT=function(){g.J3("iv-teaser-mouseover");this.T&&this.T.stop()}; g.h.GBa=function(p){this.N.K().G("player_new_info_card_format")&&!g.KI(this.N.K())?this.Mn.f4():this.N.K().G("enable_error_corrections_infocards_icon_web")&&this.Mn.er();this.T||!p||this.N.iy()||this.C&&this.C.isActive()||(this.er(p),g.J3("iv-teaser-shown"))}; g.h.er=function(p){this.onClickCommand=p.onClickCommand;this.updateValue("text",p.teaserText);this.element.setAttribute("dir",g.SJ(p.teaserText));this.S.show();this.C=new g.N8(function(){g.Ed(this.N.getRootNode(),"ytp-cards-teaser-shown");this.N.G("player_new_info_card_format")&&!g.KI(this.N.K())&&this.Mn.f4();this.w$()},0,this); this.C.start();this.Mn.e3(!1);this.T=new g.N8(this.f4,580+p.durationMs,this);this.T.start();this.W.push(this.listen("mouseover",this.Mv,this));this.W.push(this.listen("mouseout",this.cH,this))}; g.h.w$=function(){if(!this.N.K().G("player_new_info_card_format")&&g.KI(this.N.K())&&this.C4){var p=this.Mn.element.offsetLeft,C=g.ju("ytp-cards-button-icon"),V=this.N.isFullscreen()?54:36;if(C){var N=p+C.offsetLeft;this.element.style.marginRight=this.Mn.element.offsetParent.offsetWidth-p-C.offsetLeft-V+"px";this.element.style.marginLeft=N+"px"}}}; g.h.xI=function(){g.KI(this.N.K())&&this.N.OE()&&this.C4&&this.Z.start()}; g.h.Mv=function(){this.D.stop();this.T&&this.T.isActive()&&this.J.start()}; g.h.cH=function(){this.J.stop();this.T&&!this.T.isActive()&&this.D.start()}; g.h.Vb$=function(){this.T&&this.T.stop()}; g.h.rQa=function(){this.f4()}; g.h.Dt=function(){this.f4()}; g.h.f4=function(){!this.T||this.V&&this.V.isActive()||(g.J3("iv-teaser-hidden"),this.S.hide(),g.tk(this.N.getRootNode(),"ytp-cards-teaser-shown"),this.V=new g.N8(function(){for(var p=g.F(this.W),C=p.next();!C.done;C=p.next())this.rY(C.value);this.W=[];this.T&&(this.T.dispose(),this.T=null);this.Mn.e3(!0);!this.N.dR()&&this.N.K().G("enable_error_corrections_infocards_icon_web")&&this.Mn.f4()},330,this),this.V.start())}; g.h.rh=function(){return this.C4&&this.S.state!==4}; g.h.CS=function(){var p=this.N.getRootNode();p&&g.tk(p,"ytp-cards-teaser-shown");g.s1(this.C,this.V,this.T);g.L.prototype.CS.call(this)};var KB={},ae=(KB.BUTTON="ytp-button",KB.TITLE_NOTIFICATIONS="ytp-title-notifications",KB.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",KB.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",KB.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",KB);g.m(bDu,g.L);bDu.prototype.onClick=function(){this.api.logClick(this.element);var p=!this.T;this.updateValue("label",p?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",p);AFv(this,p)};g.YH("yt.pubsub.publish",g.J3);g.m(g.ER,g.L);g.ER.prototype.S=function(){window.location.reload()}; g.ER.prototype.T=function(){g.Ed(this.element,"ytp-sb-subscribed")}; g.ER.prototype.C=function(){g.tk(this.element,"ytp-sb-subscribed")};g.m(z9e,g.L);g.h=z9e.prototype;g.h.pra=function(p){this.api.logClick(this.C);var C=this.api.K();C.C||C.R$?PML(this)&&(this.isExpanded()?this.Mi():this.B4()):g.gV(window,Ymu(this));p.preventDefault()}; g.h.oM=function(){e9Y(this);this.channel.classList.remove("ytp-title-expanded")}; g.h.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.h.B4=function(){if(PML(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.V&&this.V.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var p=this.api.getVideoData();this.T&&p.DM&&p.subscribed&&(this.T.show(), this.api.logVisibility(this.T.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.h.Mi=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.V&&this.V.start()}; g.h.Pr=function(){var p=this.api.K();this.jb(!this.api.isEmbedsShortsMode());var C=this.api.getVideoData(),V=this.api.K(),N=this.api.getVideoData();this.S=!1;var H=!!N.videoId&&!!N.kM&&!!N.profilePicture;this.api.getPresentingPlayerType()===2?this.S=H&&!!N.isListed&&!!N.author:g.KI(V)&&(this.S=H&&!g.lx(N)&&!V.V&&!(V.J&&this.api.getPlayerSize().width<200));V=C.profilePicture;p=g.KI(p)?C.expandedTitle:C.author;V=V===void 0?"":V;p=p===void 0?"":p;this.S?(this.D!==V&&(this.C.style.backgroundImage="url("+ V+")",this.D=V),this.updateValue("channelLogoLabel",g.Ks("Photo image of $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.C,this.S&&this.Y);this.subscribeButton&&(this.subscribeButton.channelId=C.eI);this.updateValue("expandedTitle",C.expandedTitle);this.updateValue("expandedSubtitle",C.expandedSubtitle)}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);this.api.logVisibility(this.C,this.S&&p)};g.m(lW,g.Nl);lW.prototype.T=function(p){p.defaultPrevented||p.keyCode!==39||(this.element.click(),p.preventDefault())};g.m(wq9,g.L);g.h=wq9.prototype;g.h.show=function(){g.L.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")}; g.h.hide=function(){g.L.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")}; g.h.tb=function(p){var C=yc(p),V=g.t2(this.closeButton.element,C),N=g.t2(this.element,C);p=this.T&&g.t2(this.T,C)&&g.o0(p);C&&(N||p)&&!V||this.hide()}; g.h.Uw=function(){kSL(g.zM(this.ea.K()),"user_info_panel",function(){window.location.reload()})}; g.h.Pr=function(){var p=this.ea.K(),C={USER_NAME:p.userDisplayName,USER_EMAIL:p.YN};this.updateValue("icon",qBQ());this.updateValue("watchingAsUsername",g.Ks("Watching as $USER_NAME",C));p.YN?this.updateValue("watchingAsEmail",g.Ks("($USER_EMAIL)",C)):this.updateValue("watchingAsEmail","")};g.m(Lf9,g.$m);g.h=Lf9.prototype;g.h.Vu=function(){this.xM.f4()}; g.h.BVa=function(){v3(this.mB.element)}; g.h.Xr$=function(){cz(this,this.N.getDebugText(!0))&&hD(this.WV,Uy())}; g.h.Fxe=function(){cz(this,this.N.getVideoEmbedCode())&&hD(this.WV,SBH());this.N.logClick(this.I9.element);WE("EMBED",this.N.getVideoData().videoId,this.N.getPlaylistId()||"")}; g.h.qYx=function(){cz(this,this.N.getVideoUrl(!0,!0))&&hD(this.WV,qy());this.N.logClick(this.getVideoUrl.element);WE("COPY_PASTE",this.N.getVideoData().videoId,this.N.getPlaylistId()||"")}; g.h.ckn=function(){cz(this,this.N.getVideoUrl(!1,!0))&&hD(this.WV,qy());this.N.logClick(this.vp.element);WE("COPY_PASTE",this.N.getVideoData().videoId,this.N.getPlaylistId()||"")}; g.h.onLoopChange=function(p){var C;(C=this.rb)==null||TJ(C,p)}; g.h.nMY=function(){this.N.setLoopVideo(this.rb.getValue());this.xM.f4();this.N.logClick(this.rb.element)}; g.h.jHk=function(p){this.N.reportPlaybackIssue();if(g.Ml(p,this.N,!nI(this.N.K()))){p=this.N;var C=p.app.getFeedbackProductData();p.Ba("onFeedbackStartRequest",C);p.isFullscreen()&&p.toggleFullscreen()}this.xM.f4()}; g.h.uO_=function(){g.FE(this.N,"isVideoInfoVisible",[])?g.FE(this.N,"hideVideoInfo",[]):g.FE(this.N,"showVideoInfo",[]);this.xM.f4()}; g.h.EG$=function(){this.fM&&(this.Ch||(this.Ch=new wq9(this.N,this.fM.element),g.R(this,this.Ch),g.LT(this.N,this.Ch.element,4)),this.Ch.show(),this.xM.f4(),this.N.logClick(this.fM.element))}; g.h.onVideoDataChange=function(p,C){this.mI(C)}; g.h.mI=function(p){var C=this.N.K(),V=this.N.getPresentingPlayerType()===2,N=!V||p.isListed;N=!C.b_&&!!p.videoId&&N;C.playerStyle!=="play"?C="https://support.google.com/youtube/?p=report_playback":(C={contact_type:"playbackissue",html5:1,ei:p.eventId,v:p.videoId,p:"movies_playback"},p.C&&(C.fmt=p.C.itag),p.clientPlaybackNonce&&(C.cpn=p.clientPlaybackNonce),p.partnerId&&(C.partnerid=p.partnerId),C=g.GD("//support.google.com/googleplay/",C));this.I9.jb(N&&p.allowEmbed);this.getVideoUrl.jb(N);this.vp.jb(N&& !p.isLivePlayback);this.x7.Jc(C,"href");var H;(H=this.rb)==null||H.jb(!p.isLivePlayback&&!V);var X;(X=this.fM)==null||X.jb(!V)}; g.h.RH=function(p){g.$m.prototype.RH.call(this,p);this.N.logVisibility(this.I9.element,p);this.N.logVisibility(this.getVideoUrl.element,p);this.N.logVisibility(this.vp.element,p);this.rb&&this.N.logVisibility(this.rb.element,p);this.fM&&this.N.logVisibility(this.fM.element,p)};g.m(QQQ,g.gL);g.h=QQQ.prototype;g.h.lD=function(p){var C=yc(p);if(!(C&&(Mq(C,"a")||Mq(C,null,"ytp-no-contextmenu"))||this.C4)){var V;this.sY=(p=(V=p.touches)==null?void 0:V.item(0))?new g.Fn(p.clientX,p.clientY):new g.Fn(0,0);this.b_.start()}}; g.h.lV=function(){this.b_.stop()}; g.h.YZe=function(){this.open(this.sY)}; g.h.zj=function(){if(this.V&&gyj(this.V)){var p=gyj(this.V).element;p.tabIndex=-1;p.focus()}else this.element.tabIndex=-1,this.element.focus()}; g.h.show=function(){this.V||(this.V=new Lf9(this.N,this,this.WV),g.R(this,this.V),g.WO(this,this.V));this.V.onLoopChange(this.N.getLoopVideo());g.gL.prototype.show.call(this);this.N.logVisibility(this.element,!0);this.V.RH(!0)}; g.h.hide=function(){Wfy(this);g.gL.prototype.hide.call(this);this.N.logVisibility(this.element,!1);this.V&&this.V.RH(!1)}; g.h.YYV=function(p){var C=yc(p);this.C4||C&&(Mq(C,"a")||Mq(C,null,"ytp-no-contextmenu"))||(p.preventDefault(),this.open(new g.Fn(p.pageX,p.pageY)))}; g.h.er=function(p){if(p){var C=p.getBoundingClientRect();this.open(new g.Fn(C.x,C.y))}g.gL.prototype.er.call(this,p)}; g.h.open=function(p){rFY(this);var C=this.N.getVideoData();g.Tz(this.element,"ytp-dni",C.UV);this.element.style.left="";this.element.style.top="";p.x++;p.y++;g.gL.prototype.er.call(this);var V=pc(this).body;C=new d9(0,Infinity,Infinity,0);var N=rI(V);for(var H=N.T.body,X=N.T.documentElement,d=am1(N.T);V=D7s(V);)if((!g.Nq||V.clientHeight!=0||V!=H)&&V!=H&&V!=X&&UE(V,"overflow")!="visible"){var a=g.qK(V),E=new g.Fn(V.clientLeft,V.clientTop);a.x+=E.x;a.y+=E.y;C.top=Math.max(C.top,a.y);C.right=Math.min(C.right, a.x+V.clientWidth);C.bottom=Math.min(C.bottom,a.y+V.clientHeight);C.left=Math.max(C.left,a.x)}H=d.scrollLeft;d=d.scrollTop;C.left=Math.max(C.left,H);C.top=Math.max(C.top,d);N=st9(N.T.defaultView||window);C.right=Math.min(C.right,H+N.width);C.bottom=Math.min(C.bottom,d+N.height);N=C.top>=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.left||p.x>=N.right)&&(H&=-2),(H&132)==132&&(p.y<N.top||p.y>=N.bottom)&&(H&=-5),p.x<N.left&&H&1&& (p.x=N.left),H&16&&(X=p.x,p.x<N.left&&(p.x=N.left),p.x+d.width>N.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.y<N.top&&H&4&&(p.y=N.top),H&32&&(X=p.y,p.y<N.top&&(p.y=N.top),p.y+d.height>N.bottom&&(d.height=Math.min(N.bottom-p.y,X+d.height-N.top),d.height=Math.max(d.height,0))),p.y+d.height>N.bottom&&H&4&&(p.y=Math.max(N.bottom-d.height,N.top)));N=new g.vf(0,0,0,0);N.left=p.x;N.top=p.y;N.width= C.width;N.height=C.height;g.OE(this.element,new g.Fn(N.left,N.top));g.Am(this.S);this.S.U(pc(this),"contextmenu",this.g_$);this.S.U(this.N,"fullscreentoggled",this.onFullscreenToggled);this.S.U(this.N,"pageTransition",this.Kb)}; g.h.g_$=function(p){if(!p.defaultPrevented){var C=yc(p);g.t2(this.element,C)||this.f4();this.N.K().disableNativeContextMenu&&p.preventDefault()}}; g.h.onFullscreenToggled=function(){this.f4();rFY(this)}; g.h.Kb=function(){this.f4()};g.m(TI,g.L);TI.prototype.onClick=function(){var p=this,C,V,N,H;return g.I(function(X){if(X.C==1)return C=p.api.K(),V=p.api.getVideoData(),N=p.api.getPlaylistId(),H=C.getVideoUrl(V.videoId,N,void 0,!0),g.y(X,pDL(p,H),2);X.T&&GSS(p);p.api.logClick(p.element);g.JQ(X)})}; TI.prototype.Pr=function(){this.updateValue("icon",{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=BvY(this);g.Tz(this.element,"ytp-copylink-button-visible",this.visible); this.jb(this.visible);this.tooltip.B6();this.api.logVisibility(this.element,this.visible&&this.Y)}; TI.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; TI.prototype.CS=function(){g.L.prototype.CS.call(this);g.tk(this.element,"ytp-copylink-button-visible")};g.m(Md,g.L);Md.prototype.show=function(){g.L.prototype.show.call(this);g.HF(this.C)}; Md.prototype.hide=function(){this.S.stop();this.V=0;this.rV("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.tk(this.element,"ytp-chapter-seek");g.tk(this.element,"ytp-time-seeking");g.L.prototype.hide.call(this)}; Md.prototype.AK=function(p,C,V,N){this.V=p===this.D?this.V+N:N;this.D=p;var H=p===-1?this.Z:this.J;H&&this.N.logClick(H);this.W?this.C.stop():g.d0(this.C);this.S.start();this.element.setAttribute("data-side",p===-1?"back":"forward");var X=3*this.N.dV().getPlayerSize().height;H=this.N.dV().getPlayerSize();H=H.width/3-3*H.height;this.T.style.width=X+"px";this.T.style.height=X+"px";p===1?(this.T.style.left="",this.T.style.right=H+"px"):p===-1&&(this.T.style.right="",this.T.style.left=H+"px");var d=X* 2.5;X=d/2;var a=this.rV("ytp-doubletap-ripple");a.style.width=d+"px";a.style.height=d+"px";p===1?(p=this.N.dV().getPlayerSize().width-C+Math.abs(H),a.style.left="",a.style.right=p-X+"px"):p===-1&&(p=Math.abs(H)+C,a.style.right="",a.style.left=p-X+"px");a.style.top="calc((33% + "+Math.round(V)+"px) - "+X+"px)";if(V=this.rV("ytp-doubletap-ripple"))V.classList.remove("ytp-doubletap-ripple"),V.classList.add("ytp-doubletap-ripple");CSL(this,this.W?this.V:N)};g.m(VdY,PO);g.h=VdY.prototype;g.h.gp=function(p){this.vr||(this.vr=new rL(this.N),g.R(this,this.vr));var C,V;if((C=this.X$)==null?0:(V=C.menu)==null?0:V.menuRenderer)this.vr.open(this.X$.menu.menuRenderer,p.target),p.preventDefault()}; g.h.ZSa=function(){this.N.Jk("innertubeCommand",this.qW);this.N.logClick(this.infoButton.element)}; g.h.Xb=function(){return!!this.T}; g.h.N9=function(){return!!this.T}; g.h.SN=function(p){p.target===this.dismissButton.element||p.target===this.overflowButton.element||p.target===this.infoButton.element?p.preventDefault():(this.wy&&this.N.Jk("innertubeCommand",this.wy),this.dO(!1))}; g.h.Fj=function(){this.dO(!0);var p,C;((p=this.T)==null?0:(C=p.bannerData)==null?0:C.dismissedStatusKey)&&this.Hc.push(this.T.bannerData.dismissedStatusKey);this.Cl()}; g.h.dk=function(){this.Cl();Fo(this)}; g.h.IQe=function(p){var C=this,V;if(p.id!==((V=this.T)==null?void 0:V.identifier)){this.Cl();V=g.F(this.Vn);for(var N=V.next();!N.done;N=V.next()){var H=N.value,X=void 0,d=void 0;if((N=(X=H)==null?void 0:(d=X.bannerData)==null?void 0:d.itemData)&&H.identifier===p.id){d=X=void 0;var a=((X=H)==null?void 0:(d=X.bannerData)==null?void 0:d.dismissedStatusKey)||"";if(this.Hc.includes(a))break;this.T=H;this.banner.element.setAttribute("aria-label",N.accessibilityLabel||"");N.trackingParams&&(this.S=!0,this.N.setTrackingParams(this.badge.element, N.trackingParams));this.a$.show();et(this);this.Sa.jb(!N.stayInApp);cJv(this);HMY(this);vz(this);this.wy=g.n(N.onTapCommand,w7);if(H=g.n(N.menuOnTap,w7))this.X$=g.n(H,DLp);H=void 0;this.banner.update({thumbnail:(H=(N.thumbnailSources||[])[0])==null?void 0:H.url,title:N.productTitle,price:N.priceReplacementText?N.priceReplacementText:N.price,salesOriginalPrice:iM9(this),priceDropReferencePrice:hfu(this),promotionText:dWX(this),priceA11yText:sJe(this),affiliateDisclaimer:N.affiliateDisclaimer,vendor:a4L(this)}); a=d=X=H=void 0;((H=N)==null?0:(X=H.hiddenProductOptions)==null?0:X.showDropCountdown)&&((d=N)==null?0:(a=d.hiddenProductOptions)==null?0:a.dropTimestampMs)&&(this.ER=new g.N8(function(){tdL(C)},1E3),this.Sa.hide(),this.countdownTimer.show(),tdL(this)); this.N.G("web_player_enable_featured_product_banner_exclusives_on_desktop")&&NK9(this)&&(this.YM=new g.N8(function(){XDs(C)},1E3),XDs(this))}}}}; g.h.Cl=function(){this.T&&(this.T=void 0,this.hd())}; g.h.onVideoDataChange=function(p,C){var V=this;p==="dataloaded"&&Fo(this);var N,H;p=C==null?void 0:(N=C.getPlayerResponse())==null?void 0:(H=N.videoDetails)==null?void 0:H.isLiveContent;var X,d,a;C=g.n((X=C.getWatchNextResponse())==null?void 0:(d=X.playerOverlays)==null?void 0:(a=d.playerOverlayRenderer)==null?void 0:a.productsInVideoOverlayRenderer,Sv5);this.N.G("web_player_enable_info_button_in_banner_on_desktop")&&!p?this.infoButton.show():this.infoButton.hide();this.N.G("web_player_enable_overflow_button_in_banner_on_desktop")&& (this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var E=C==null?void 0:C.featuredProductsEntityKey;this.trendingOfferEntityKey=C==null?void 0:C.trendingOfferEntityKey;var l;if(X=C==null?void 0:(l=C.dismissButton)==null?void 0:l.trackingParams)this.N.setTrackingParams(this.dismissButton.element,X),this.W=!0;var t;(l=C==null?void 0:(t=C.dismissButton)==null?void 0:t.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.uq(l));this.qW=C==null?void 0:C.onClickCommand; this.Vn.length||(l4L(this,E),vz(this));var c;(c=this.VZ)==null||c.call(this);this.VZ=g.Xx.subscribe(function(){l4L(V,E);vz(V)})}; g.h.CS=function(){Fo(this);cJv(this);HMY(this);PO.prototype.CS.call(this)};g.m(vRS,g.L);vRS.prototype.onClick=function(){this.N.logClick(this.element,this.C)};g.m(Fmy,g.GC);g.h=Fmy.prototype;g.h.show=function(){g.GC.prototype.show.call(this);this.N.publish("infopaneldetailvisibilitychange",!0);this.N.logVisibility(this.element,!0);SUu(this,!0)}; g.h.hide=function(){g.GC.prototype.hide.call(this);this.N.publish("infopaneldetailvisibilitychange",!1);this.N.logVisibility(this.element,!1);SUu(this,!1)}; g.h.getId=function(){return this.S}; g.h.t8=function(){return this.itemData.length}; g.h.onVideoDataChange=function(p,C){if(C){var V,N,H,X;this.update({title:((V=C.lM)==null?void 0:(N=V.title)==null?void 0:N.content)||"",body:((H=C.lM)==null?void 0:(X=H.bodyText)==null?void 0:X.content)||""});var d;p=((d=C.lM)==null?void 0:d.trackingParams)||null;this.N.setTrackingParams(this.element,p);d=g.F(this.itemData);for(p=d.next();!p.done;p=d.next())p.value.dispose();this.itemData=[];var a;if((a=C.lM)==null?0:a.ctaButtons)for(C=g.F(C.lM.ctaButtons),a=C.next();!a.done;a=C.next())if(a=g.n(a.value, Tof))a=new vRS(this.N,a,this.T),a.GN&&(this.itemData.push(a),a.u_(this.items))}}; g.h.CS=function(){this.hide();g.GC.prototype.CS.call(this)};g.m(uys,g.L);g.h=uys.prototype;g.h.onVideoDataChange=function(p,C){DWV(this,C);this.g7&&UWe(this,this.g7)}; g.h.Q0=function(p){var C=this.N.getVideoData();this.videoId!==C.videoId&&DWV(this,C);UWe(this,p.state);this.g7=p.state}; g.h.VO=function(p){(this.S=p)?this.hide():this.T&&this.show()}; g.h.Jb=function(){this.C||this.er();this.showControls=!0}; g.h.Ow=function(){this.C||this.f4();this.showControls=!1}; g.h.er=function(){var p;if((p=this.N)==null?0:p.G("embeds_web_enable_info_panel_sizing_fix")){var C;p=(C=this.N)==null?void 0:C.getPlayerSize();C=p.width<380;var V;p=p.height<(((V=this.N)==null?0:V.isEmbedsShortsMode())?400:280);var N,H;if((((N=this.N)==null?0:N.getPlayerStateObject().isCued())||((H=this.N)==null?0:g.r(H.getPlayerStateObject(),1024)))&&C&&p)return}this.T&&!this.S&&(this.V.show(),this.N.publish("infopanelpreviewvisibilitychange",!0),this.N.logVisibility(this.element,!0))}; g.h.f4=function(){this.T&&!this.S&&(this.V.hide(),this.N.publish("infopanelpreviewvisibilitychange",!1),this.N.logVisibility(this.element,!1))}; g.h.mg$=function(){this.C=!1;this.showControls||this.f4()};var FM1={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(FM1).reduce(function(p,C){p[FM1[C]]=C;return p},{}); var SlE={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(SlE).reduce(function(p,C){p[SlE[C]]=C;return p},{}); var KM1={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(KM1).reduce(function(p,C){p[KM1[C]]=C;return p},{});var DmF,uay;DmF=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];uay=[{option:0,text:S4(0)},{option:.25,text:S4(.25)},{option:.5,text:S4(.5)},{option:.75,text:S4(.75)},{option:1,text:S4(1)}]; g.ZR=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:DmF},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:S4(.5)},{option:-1,text:S4(.75)},{option:0,text:S4(1)},{option:1,text:S4(1.5)},{option:2, text:S4(2)},{option:3,text:S4(3)},{option:4,text:S4(4)}]},{option:"background",text:"Background color",options:DmF},{option:"backgroundOpacity",text:"Background opacity",options:uay},{option:"windowColor",text:"Window color",options:DmF},{option:"windowOpacity",text:"Window opacity",options:uay},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:S4(.25)},{option:.5,text:S4(.5)},{option:.75,text:S4(.75)},{option:1,text:S4(1)}]}];var Zyr=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.m(bM1,g.Rr);g.h=bM1.prototype; g.h.r4=function(p){p.repeat||(this.V.K3=!1);var C=!1,V=p.keyCode,N=yc(p),H=!p.altKey&&!p.ctrlKey&&!p.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||Zyr.includes(V)),X=!1,d=!1,a=this.api.K();p.defaultPrevented?(H=!1,d=!0):a.o6&&!this.api.isMutedByEmbedsMutedAutoplay()&&(H=!1);if(V===9)C=!0;else{if(N)switch(V){case 32:case 13:if(N.tagName==="BUTTON"||N.tagName==="A"||N.tagName==="INPUT")C=!0,H=!1;else if(H){var E=N.getAttribute("role");!E||E!=="option"&&E!=="button"&&E.indexOf("menuitem")!==0|| (C=!0,N.click(),X=!0)}break;case 37:case 39:case 36:case 35:C=N.getAttribute("role")==="slider";break;case 38:case 40:E=N.getAttribute("role"),N=V===38?N.previousSibling:N.nextSibling,E==="slider"?C=!0:H&&(E==="option"?(N&&N.getAttribute("role")==="option"&&N.focus(),X=C=!0):E&&E.indexOf("menuitem")===0&&(N&&N.hasAttribute("role")&&N.getAttribute("role").indexOf("menuitem")===0&&N.focus(),X=C=!0))}if(H&&!X)switch(V){case 38:X=Math.min(this.api.getVolume()+5,100);sR(this.WV,X,!1);this.api.setVolume(X); d=X=!0;break;case 40:X=Math.max(this.api.getVolume()-5,0);sR(this.WV,X,!0);this.api.setVolume(X);d=X=!0;break;case 36:this.api.CO()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),d=X=!0);break;case 35:this.api.CO()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),d=X=!0)}}C&&DR(this,!0);(C||d)&&this.YB.Pm();(X||H&&this.handleGlobalKeyDown(V,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code,p.repeat))&&p.preventDefault();a.D&&(p={keyCode:p.keyCode, altKey:p.altKey,ctrlKey:p.ctrlKey,metaKey:p.metaKey,shiftKey:p.shiftKey,handled:p.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.v1("onKeyPress",p))}; g.h.VS=function(p){var C=p.keyCode;(!this.api.G("web_player_spacebar_control_bugfix")||this.api.G("web_player_spacebar_control_bugfix")&&!this.S)&&this.handleGlobalKeyUp(C,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code)&&p.preventDefault()}; g.h.handleGlobalKeyUp=function(p,C,V,N,H,X,d){this.api.publish("keyboardserviceglobalkeyup",{keyCode:p,shiftKey:C,ctrlKey:V,altKey:N,metaKey:H,key:X,code:d});C=!1;if(this.V.K3)return C;(V=g.Pk(this.api.Tk()))&&(V=V.Nc)&&V.C4&&(V.A$(p),C=!0);switch(p){case 9:DR(this,!0);C=!0;break;case 32:if(this.api.G("web_speedmaster_spacebar_control")&&(!this.api.G("web_player_spacebar_control_bugfix")&&!this.S||this.api.G("web_player_spacebar_control_bugfix"))&&!this.api.K().o6){var a,E;p=(a=this.progressBar)== null?void 0:(E=a.C)==null?void 0:E.isEnabled;C=this.u6(p)}}return C}; g.h.handleGlobalKeyDown=function(p,C,V,N,H,X,d,a){a||(this.V.K3=!1);var E=!1,l=this.api.K();if(l.o6&&!this.api.isMutedByEmbedsMutedAutoplay())return E;var t=g.Pk(this.api.Tk());if(t&&(t=t.Nc)&&t.C4)switch(p){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:E=t.Cz(p)}l.Y||E||(E=X||String.fromCharCode(p).toLowerCase(),this.C+=E,"awesome".indexOf(this.C)===0?(E=!0,7===this.C.length&&oca(this.api.getRootNode(),"ytp-color-party")):(this.C=E,E="awesome".indexOf(this.C)===0));if(!E&&(!this.api.isMutedByEmbedsMutedAutoplay()|| Zyr.includes(p))){var c=this.api.getVideoData(),T,M;t=(T=this.progressBar)==null?void 0:(M=T.C)==null?void 0:M.isEnabled;T=c?c.Y9:[];M=PI?N:V;switch(p){case 80:C&&!l.Ga&&(hD(this.WV,bKv(),"Previous"),this.api.previousVideo(),E=!0);break;case 78:C&&!l.Ga&&(hD(this.WV,IS(),"Next"),this.api.nextVideo(),E=!0);break;case 74:this.api.CO()&&(this.api.startSeekCsiAction(),this.T?this.api.G("enable_key_press_seek_logging")?(E=uW(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),JD(this.T, -1,10,E)):JD(this.T,-1,10):hD(this.WV,{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),E=!0);break;case 76:this.api.CO()&&(this.api.startSeekCsiAction(),this.T?this.api.G("enable_key_press_seek_logging")?(E=uW(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),JD(this.T,1,10,E)):JD(this.T,1,10):hD(this.WV,{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),E=!0);break;case 37:this.api.CO()&&(this.api.startSeekCsiAction(),M?(M=yJy(T,this.api.getCurrentTime()*1E3),M!==-1&&this.T!=null&&(jJv(this.T,-1,T[M].title),this.api.seekTo(T[M].startTime/1E3,void 0,void 0,void 0,53),E=!0)):(this.T?this.api.G("enable_key_press_seek_logging")?(E=uW(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),JD(this.T,-1,5,E)):JD(this.T,-1,5):hD(this.WV,{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),E=!0));break;case 39:this.api.CO()&&(this.api.startSeekCsiAction(),M?(M=OML(T,this.api.getCurrentTime()*1E3),M!==-1&&this.T!=null&&(jJv(this.T,1,T[M].title),this.api.seekTo(T[M].startTime/1E3,void 0,void 0,void 0,52),E=!0)):(this.T!=null?this.api.G("enable_key_press_seek_logging")?(E=uW(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),JD(this.T,1,5,E)):JD(this.T,1,5):hD(this.WV,{L:"svg",X:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),E=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),sR(this.WV,this.api.getVolume(),!1)):(this.api.mute(),sR(this.WV,0,!0));E=!0;break;case 32:E=this.api.G("web_speedmaster_spacebar_control")?!this.api.K().Ga:this.u6(t);break;case 75:E=this.u6(t);break;case 190:C?l.enableSpeedOptions&&oRY(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E+.25,!0),OD9(this.WV,!1),E=!0):this.api.CO()&&(this.step(1),E=!0);break;case 188:C? l.enableSpeedOptions&&oRY(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E-.25,!0),OD9(this.WV,!0),E=!0):this.api.CO()&&(this.step(-1),E=!0);break;case 70:ip1(this.api)&&(this.api.toggleFullscreen().catch(function(){}),E=!0); break;case 27:t?(this.progressBar.wc(),E=!0):this.Y()&&(E=!0)}if(l.controlsType!=="3")switch(p){case 67:g.RT(this.api.Tk())&&(l=this.api.getOption("captions","track"),this.api.toggleSubtitles(),yFv(this.WV,!l||l&&!l.displayName),E=!0);break;case 79:UR(this,"textOpacity");break;case 87:UR(this,"windowOpacity");break;case 187:case 61:UR(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:UR(this,"fontSizeIncrement",!0,!0)}var J;C||V||N||(p>=48&&p<=57?J=p-48:p>=96&&p<=105&&(J=p-96));J!=null&&this.api.CO()&& (this.api.startSeekCsiAction(),l=this.api.getProgressState(),this.api.seekTo(J/10*(l.seekableEnd-l.seekableStart)+l.seekableStart,void 0,void 0,void 0,81),E=!0);E&&this.YB.Pm()}this.S||this.api.publish("keyboardserviceglobalkeydown",{keyCode:p,shiftKey:C,ctrlKey:V,altKey:N,metaKey:H,key:X,code:d,repeat:a},this.V);return E}; g.h.step=function(p){this.api.CO();if(this.api.getPlayerStateObject().isPaused()){var C=this.api.getVideoData().C;C&&(C=C.video)&&this.api.seekBy(p/(C.fps||30),void 0,void 0,p>0?77:78)}}; g.h.u6=function(p){if(!this.api.K().Ga){var C;var V,N=(C=this.api.getVideoData())==null?void 0:(V=C.getPlayerResponse())==null?void 0:V.playabilityStatus;if(N){var H;C=((H=g.n(N.miniplayer,qvF))==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else C=!1;C&&this.api.Jk("onExpandMiniplayer");p?this.progressBar.lH():(p=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.WV.R1(p),p?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.h.CS=function(){g.d0(this.W);g.Rr.prototype.CS.call(this)};g.m(g.fZ,g.L);g.fZ.prototype.nw=CY(11); g.fZ.prototype.Pr=function(){var p=this.N.K(),C=p.V||this.N.G("web_player_hide_overflow_button_if_empty_menu")&&this.j5.isEmpty();p=g.KI(p)&&g.nT(this.N)&&g.r(this.N.getPlayerStateObject(),128);var V=this.N.getPlayerSize();this.visible=this.N.OE()&&!p&&V.width>=240&&!g.lx(this.N.getVideoData())&&!C&&!this.T&&!this.N.isEmbedsShortsMode();g.Tz(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.N.B6();this.N.logVisibility(this.element,this.visible&&this.Y)}; g.fZ.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.N.logVisibility(this.element,this.visible&&p)}; g.fZ.prototype.CS=function(){g.L.prototype.CS.call(this);g.tk(this.element,"ytp-overflow-button-visible")};g.m(kUQ,g.GC);g.h=kUQ.prototype;g.h.wp=function(p){p=yc(p);g.t2(this.element,p)&&(g.t2(this.T,p)||g.t2(this.closeButton,p)||Cc(this))}; g.h.f4=function(){g.GC.prototype.f4.call(this);this.N.wb(this.element)}; g.h.show=function(){this.C4&&this.N.publish("OVERFLOW_PANEL_OPENED");g.GC.prototype.show.call(this);this.element.setAttribute("aria-modal","true");YUL(this,!0)}; g.h.hide=function(){g.GC.prototype.hide.call(this);this.element.removeAttribute("aria-modal");YUL(this,!1)}; g.h.onFullscreenToggled=function(p){!p&&this.rh()&&Cc(this)}; g.h.isEmpty=function(){return this.actionButtons.length===0}; g.h.focus=function(){for(var p=g.F(this.actionButtons),C=p.next();!C.done;C=p.next())if(C=C.value,C.C4){C.focus();break}};g.m(zfQ,g.L);zfQ.prototype.onClick=function(p){g.Ml(p,this.api)&&this.api.playVideoAt(this.index)};g.m(Rfu,g.GC);g.h=Rfu.prototype;g.h.show=function(){g.GC.prototype.show.call(this);this.T.U(this.api,"videodatachange",this.d$);this.T.U(this.api,"onPlaylistUpdate",this.d$);this.d$()}; g.h.hide=function(){g.GC.prototype.hide.call(this);g.Am(this.T);this.updatePlaylist(null)}; g.h.d$=function(){this.updatePlaylist(this.api.getPlaylist());this.api.K().V&&(this.rV("ytp-playlist-menu-title-name").removeAttribute("href"),this.V&&(this.rY(this.V),this.V=null))}; g.h.yF=function(){var p=this.playlist,C=p.author,V=C?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",N={CURRENT_POSITION:String(p.index+1),PLAYLIST_LENGTH:String(p.getLength())};C&&(N.AUTHOR=C);this.update({title:p.title,subtitle:g.Ks(V,N),playlisturl:this.api.getVideoUrl(!0)});C=p.C;if(C===this.S)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[p.index];else{V=g.F(this.playlistData);for(N=V.next();!N.done;N=V.next())N.value.dispose(); V=p.getLength();this.playlistData=[];for(N=0;N<V;N++){var H=new zfQ(this.api,p,N);this.playlistData.push(H);H.u_(this.items)}this.selected=this.playlistData[p.index];this.S=C}this.selected&&this.selected.element.setAttribute("aria-checked","true")}; g.h.PJn=function(p){var C=this.api.getVideoUrl(!0);g.Jh(C,this.api,p)}; g.h.updatePlaylist=function(p){this.playlist!==p?(this.playlist&&this.playlist.unsubscribe("shuffle",this.yF,this),this.playlist=p,this.S=null,p?(p.subscribe("shuffle",this.yF,this),this.yF()):this.C4&&this.hide()):this.playlist&&this.yF()}; g.h.focus=function(){this.selected.focus()}; g.h.CS=function(){this.hide();g.GC.prototype.CS.call(this)};g.m(OR,g.L);OR.prototype.hide=function(){g.L.prototype.hide.call(this);this.RH(!1);this.api.B6()}; OR.prototype.Pr=function(){var p=g.KI(this.api.K());g.Tz(this.element,"ytp-playlist-menu-button-tiny",this.api.dV().getPlayerSize().width<400&&!p);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.Ks("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.Ks("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.C4||(this.show(), this.api.B6()),this.visible=!0,this.RH(!0)):this.C4&&this.hide()}; OR.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; OR.prototype.T=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Pr,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Pr,this);this.Pr()};g.m(nRY,g.L);g.h=nRY.prototype;g.h.jC=function(){this.S?$Wj(this):wDs(this)}; g.h.o7=function(){this.S?(y1(this),this.D=!0):wDs(this)}; g.h.xox=function(){this.W=!0;this.W9(1);this.N.publish("promotooltipacceptbuttonclicked",this.acceptButton);y1(this);this.C&&this.N.logClick(this.acceptButton)}; g.h.lex=function(){this.W=!0;this.W9(2);y1(this);this.C&&this.N.logClick(this.dismissButton)}; g.h.Xc=function(p){if(this.N.getPresentingPlayerType()===1||this.N.getPresentingPlayerType()===2&&this.J){var C=!0,V=g.ju("ytp-ad-overlay-ad-info-dialog-container"),N=g.ju("ytp-ad-player-overlay-layout"),H=yc(p);if(this.V&&H&&g.t2(this.V,H))this.V=null;else{this.N.getPresentingPlayerType()===1&&H&&Array.from(H.classList).forEach(function(E){if(E.startsWith("ytp-ad")||E.startsWith("ytp-skip-ad"))C=!1}); var X=LmX(this.tooltipRenderer),d;if(((d=this.tooltipRenderer.dismissStrategy)==null?void 0:d.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")X&&(C=C&&!g.t2(this.element,H));else{var a;((a=this.tooltipRenderer.dismissStrategy)==null?void 0:a.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(C=X?!1:C&&g.t2(this.element,H))}this.T&&this.C4&&!V&&!N&&(!H||C&&g.o0(p))&&(this.W=!0,y1(this))}}}; g.h.W9=function(p){var C=this.tooltipRenderer.promoConfig;if(C){switch(p){case 0:var V;if((V=C.impressionEndpoints)==null?0:V.length)var N=C.impressionEndpoints[0];break;case 1:N=C.acceptCommand;break;case 2:N=C.dismissCommand}var H;p=(H=g.n(N,cBc))==null?void 0:H.feedbackToken;N&&p&&(H={feedbackTokens:[p]},p=this.N.xN(),(p==null?0:KWa(N,p.P4))&&a4(p,N,H))}}; g.h.OR=function(){this.D||(this.T||(this.T=efQ(this)),$Wj(this))}; var PSH={"ytp-settings-button":g.x0()};g.m(qd,g.L);qd.prototype.onStateChange=function(p){this.UZ(p.state)}; qd.prototype.UZ=function(p){this.jb(g.r(p,2))}; qd.prototype.onClick=function(){this.N.getPlayerStateObject().isOrWillBePlaying();this.N.playVideo()};g.m(Ie,g.L);Ie.prototype.onClick=function(p){this.api.logClick(this.element);var C=g.GD(this.api.K().Vn,{focusSearch:"true"}),V={};g.FE(this.api,"addEmbedsConversionTrackingParams",[V]);C=g.GD(C,V);var N;(V=(N=this.api.getVideoData().kO)==null?void 0:N.params)&&(C=g.GD(C,{bp:V}));g.gV(window,C);p.preventDefault()}; Ie.prototype.T=function(){if(this.api.G("embeds_web_enable_search_button")){var p=this.api.K();var C=this.api.getVideoData(),V=this.api.dV().getPlayerSize().width;p=g.KI(p)&&V>=this.C&&!p.V&&!C.isAd()&&!this.api.isEmbedsShortsMode()}else p=!1;this.visible=p;this.jb(this.visible);g.Tz(this.element,"ytp-search-button-visible",this.visible);g.Tz(this.element,"ytp-show-search-title",!this.api.OE());this.api.logVisibility(this.element,this.visible&&this.Y)}; Ie.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)};g.m(g.bW,g.L);g.h=g.bW.prototype;g.h.Cw=CY(8);g.h.onClick=function(){var p=this,C=this.api.K(),V=this.api.getVideoData(this.api.getPresentingPlayerType()),N=this.api.getPlaylistId();C=this.api.G("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):C.getVideoUrl(V.videoId,N,void 0,!0);if(navigator.share)try{var H=navigator.share({title:V.title,url:C});H instanceof Promise&&H.catch(function(X){Wmy(p,X)})}catch(X){X instanceof Error&&Wmy(this,X)}else this.T.A6(),Cc(this.V,this.element,!1); this.api.logClick(this.element)}; g.h.Pr=function(){var p=this.api.K(),C=this.api.isEmbedsShortsMode();g.Tz(this.element,"ytp-show-share-title",g.KI(p)&&!C);this.T.GW()&&C?(p=(this.api.dV().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.K2(this.element,"right",p+"px")):C&&g.K2(this.element,"right","0px");this.updateValue("icon",{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=gRV(this);g.Tz(this.element,"ytp-share-button-visible",this.visible);this.jb(this.visible);this.tooltip.B6();this.api.logVisibility(this.element,gRV(this)&&this.Y)}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; g.h.CS=function(){g.L.prototype.CS.call(this);g.tk(this.element,"ytp-share-button-visible")};g.m(rJV,g.GC);g.h=rJV.prototype;g.h.Fc=function(p){p=yc(p);g.t2(this.W,p)||g.t2(this.closeButton,p)||Cc(this)}; g.h.f4=function(){g.GC.prototype.f4.call(this);this.tooltip.wb(this.element);this.api.logVisibility(this.T,!1);for(var p=g.F(this.V),C=p.next();!C.done;C=p.next())C=C.value,this.api.hasVe(C.element)&&this.api.logVisibility(C.element,!1)}; g.h.show=function(){var p=this.C4;g.GC.prototype.show.call(this);this.Pr();p||this.api.Jk("onSharePanelOpened")}; g.h.Ud=function(){this.C4&&this.Pr()}; g.h.Pr=function(){var p=this;g.Ed(this.element,"ytp-share-panel-loading");g.tk(this.element,"ytp-share-panel-fail");var C=this.api.getVideoData(),V=this.api.getPlaylistId()&&this.S.checked;C.getSharePanelCommand&&a4(this.api.xN(),C.getSharePanelCommand,{includeListId:V}).then(function(N){p.fS()||(g.tk(p.element,"ytp-share-panel-loading"),GUj(p,N))}); C=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",C);this.updateValue("linkText",C);this.updateValue("shareLinkWithUrl",g.Ks("Share link $URL",{URL:C}));v3(this.T);this.api.logVisibility(this.T,!0)}; g.h.onFullscreenToggled=function(p){!p&&this.rh()&&Cc(this)}; g.h.focus=function(){this.T.focus()}; g.h.CS=function(){g.GC.prototype.CS.call(this);BKu(this)};g.m(jPu,PO);g.h=jPu.prototype;g.h.CS=function(){d9Y(this);PO.prototype.CS.call(this)}; g.h.SN=function(p){p.target!==this.dismissButton.element&&(this.dO(!1),this.N.Jk("innertubeCommand",this.onClickCommand))}; g.h.Fj=function(){this.R$=!0;this.dO(!0);this.hd()}; g.h.H4S=function(p){this.J=p;this.hd()}; g.h.onVideoDataChange=function(p,C){if(p=!!C.videoId&&this.videoId!==C.videoId)this.videoId=C.videoId,this.R$=!1,this.sY=!0,this.Z=this.b_=!1,d9Y(this),XLy(this,!1),this.C=this.T=!1,oe(this),VjY(this);if(p||!C.videoId)this.W=this.S=!1;var V,N;if(C==null?0:(V=C.getPlayerResponse())==null?0:(N=V.videoDetails)==null?0:N.isLiveContent)this.JE(!1);else{var H,X,d;C=g.n((H=C.getWatchNextResponse())==null?void 0:(X=H.playerOverlays)==null?void 0:(d=X.playerOverlayRenderer)==null?void 0:d.productsInVideoOverlayRenderer, Sv5);this.J=this.enabled=!1;if(C){if(H=C==null?void 0:C.featuredProductsEntityKey){X=g.Xx.getState().entities;var a;if((a=Mg(X,"featuredProductsEntity",H))==null?0:a.productsData){this.JE(!1);return}}this.enabled=!0;if(!this.S){var E;a=(E=C.badgeInteractionLogging)==null?void 0:E.trackingParams;(this.S=!!a)&&this.N.setTrackingParams(this.badge.element,a||null)}if(!this.W){var l;if(this.W=!((l=C.dismissButton)==null||!l.trackingParams)){var t;this.N.setTrackingParams(this.dismissButton.element,((t= C.dismissButton)==null?void 0:t.trackingParams)||null)}}C.isContentForward&&(E=C.productsData,XLy(this,!0),VjY(this),E=HBS(this,E),l=[],E.length>0&&l.push(E[0]),E.length>1&&(t=new g.L({L:"div",B:"ytp-suggested-action-more-products-icon"}),g.R(this,t),l.push(t),l.push.apply(l,g.K(E.slice(1)))),this.D=new g.L({L:"div",j:l,B:"ytp-suggested-action-content-forward-container"}),g.R(this,this.D),this.Wr.element.append(this.D.element));this.text=g.uq(C.text);var c;if(E=(c=C.dismissButton)==null?void 0:c.a11yLabel)this.Y_= g.uq(E);this.onClickCommand=C.onClickCommand;this.timing=C.timing;this.d7()}dby(this);et(this);this.hd()}}; g.h.Xb=function(){return!this.J&&this.enabled&&!this.R$&&!this.N.OE()&&!this.kM&&(this.Z||this.sY)}; g.h.Xl=function(p){PO.prototype.Xl.call(this,p);if(this.T||this.C)this.timing&&AD(this.timing.preview)&&(this.T=!1,oe(this),this.C=!1,oe(this),this.N.qt("shopping_overlay_preview_collapsed"),this.N.qt("shopping_overlay_preview_expanded"),p=kX(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),AD(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.N.qt("shopping_overlay_expanded"),p.end=this.timing.expanded.endSec*1E3),this.N.d7([p])), this.b_=!0,et(this);oe(this)}; g.h.JE=function(p){(this.Z=p)?(n$(this),et(this,!1)):(d9Y(this),this.Ga.start());this.hd()}; g.h.d7=function(p){var C=this.timing;p=(p===void 0?0:p)+this.N.getCurrentTime();var V=[],N=C.visible,H=C.preview;C=C.expanded;AD(N)&&(pLL(N,p),V.push(kX(N.startSec,N.endSec,"shopping_overlay_visible")));AD(H)&&(pLL(H,p),N=H.startSec+1,V.push(kX(H.startSec,N,"shopping_overlay_preview_collapsed")),V.push(kX(N,H.endSec,"shopping_overlay_preview_expanded")));AD(C)&&(pLL(C,p),V.push(kX(C.startSec,C.endSec,"shopping_overlay_expanded")));this.N.d7(V)};g.m(sPH,g.L); sPH.prototype.Pr=function(){var p=this.api.K();this.jb(g.KI(p)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.C4);var C=this.api.getVideoData(),V=!1;this.api.getPresentingPlayerType()===2?V=!!C.videoId&&!!C.isListed&&!!C.author&&!!C.kM&&!!C.profilePicture:g.KI(p)&&(V=!!C.videoId&&!!C.kM&&!!C.profilePicture&&!g.lx(C)&&!p.V&&!(p.J&&this.api.getPlayerSize().width<200));var N=C.profilePicture;p=g.KI(p)?C.expandedTitle:C.author;N=N===void 0? "":N;p=p===void 0?"":p;V?(this.C!==N&&(this.T.style.backgroundImage="url("+N+")",this.C=N),this.updateValue("channelLogoLabel",g.Ks("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:p})),g.Ed(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.tk(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,V&&this.Y);this.api.logVisibility(this.channelName,V&&this.Y);this.subscribeButton&&(this.subscribeButton.channelId=C.eI);this.updateValue("expandedTitle",C.expandedTitle)};g.m(xX,g.GC);xX.prototype.show=function(){g.GC.prototype.show.call(this);this.T.start()}; xX.prototype.hide=function(){g.GC.prototype.hide.call(this);this.T.stop()}; xX.prototype.mL=function(p,C){p==="dataloaded"&&((this.I5=C.I5,this.hE=C.hE,isNaN(this.I5)||isNaN(this.hE))?this.V&&(this.N.qt("intro"),this.N.removeEventListener(g.Ez("intro"),this.D),this.N.removeEventListener(g.lG("intro"),this.W),this.N.removeEventListener("onShowControls",this.S),this.hide(),this.V=!1):(this.N.addEventListener(g.Ez("intro"),this.D),this.N.addEventListener(g.lG("intro"),this.W),this.N.addEventListener("onShowControls",this.S),p=new g.sz(this.I5,this.hE,{priority:9,namespace:"intro"}), this.N.d7([p]),this.V=!0))};g.m(YX,g.L);YX.prototype.onClick=function(){this.N.fT()}; YX.prototype.Pr=function(){var p=!0;g.KI(this.N.K())&&(p=p&&this.N.dV().getPlayerSize().width>=480);this.jb(p);this.updateValue("icon",this.N.gi()?{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: {L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.m(EOe,g.L);EOe.prototype.CS=function(){this.T=null;g.L.prototype.CS.call(this)};g.m(zI,g.L);zI.prototype.onClick=function(){this.N.Jk("innertubeCommand",this.C)}; zI.prototype.J=function(p){p!==this.W&&(this.update({title:p,ariaLabel:p}),this.W=p);p?this.show():this.hide()}; zI.prototype.D=function(){this.T.disabled=this.C==null;g.Tz(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.m6()};g.m(Re,zI);Re.prototype.onClickCommand=function(p){g.n(p,H_)&&this.m6()}; Re.prototype.updateVideoData=function(p,C){var V,N,H;p=g.n((V=C.getWatchNextResponse())==null?void 0:(N=V.playerOverlays)==null?void 0:(H=N.playerOverlayRenderer)==null?void 0:H.decoratedPlayerBarRenderer,v7);var X;this.C=(X=g.n(p==null?void 0:p.playerBarActionButton,g.z$))==null?void 0:X.command;zI.prototype.D.call(this)}; Re.prototype.m6=function(){var p="",C=this.S.T,V,N=((V=this.N.getLoopRange())==null?void 0:V.type)==="clips";if(C.length>1&&!N){p=this.N.getProgressState().current*1E3;V=KZ(C,p);p=C[V].title||"Chapters";if(V!==this.currentIndex||this.V)this.N.Jk("innertubeCommand",C[V].onActiveCommand),this.currentIndex=V;this.V=!1}else this.V=!0;zI.prototype.J.call(this,p)};g.m(nZ,g.L);nZ.prototype.W=function(p){g.r(p.state,32)?tja(this,this.api.C$()):this.C4&&(g.r(p.state,16)||g.r(p.state,1))||this.T.hide()}; nZ.prototype.Nn=function(){var p=this.api.getPlayerStateObject();(g.r(p,32)||g.r(p,16))&&cYs(this)}; nZ.prototype.D=function(){this.V=NaN;cYs(this)}; nZ.prototype.hide=function(){this.C&&tja(this,null);g.L.prototype.hide.call(this)};g.m(T4H,g.L);g.h=T4H.prototype;g.h.onClick=function(){var p=this;if(this.N.K().Hc||this.N.K().J){this.N.logClick(this.element);try{this.N.toggleFullscreen().catch(function(C){p.z1(C)})}catch(C){this.z1(C)}}else Cc(this.message,this.element,!0)}; g.h.z1=function(p){String(p).includes("fullscreen error")?g.eG(p):g.nm(p);this.Hy()}; g.h.Hy=function(){this.disable();this.message.er(this.element,!0)}; g.h.V2=function(){KK()===this.N.getRootNode()?this.V.start():(this.V.stop(),this.message&&this.message.hide())}; g.h.b4=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var p=window.screen.width*.9,C=window.screen.height*.9,V=Math.max(window.outerWidth,window.innerWidth),N=Math.max(window.outerHeight,window.innerHeight);if(V>N!==p>C){var H=V;V=N;N=H}p>V&&C>N&&this.Hy()}}; g.h.disable=function(){var p=this;if(!this.message){var C=(vw(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.GC(this.N,{L:"div",i_:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},j:[C[0],{L:"a",X:{href:"https://support.google.com/youtube/answer/6276924", target:this.N.K().Z},Ak:C[2]},C[4]]},100,!0);this.message.hide();g.R(this,this.message);this.message.subscribe("show",function(V){p.C.Nu(p.message,V)}); g.LT(this.N,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}}; g.h.Pr=function(){var p=ip1(this.N),C=this.N.K().J&&this.N.getPlayerSize().width<250;this.jb(p&&!C);var V;((V=this.N.K())==null?0:V.G("embeds_use_parent_visibility_in_ve_logging"))?this.N.logVisibility(this.element,this.C4&&this.Y):this.N.logVisibility(this.element,this.C4)}; g.h.ze=function(p){if(p){var C={L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"g",B:"ytp-fullscreen-button-corner-2",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-3",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-0",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{L:"g", B:"ytp-fullscreen-button-corner-1",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};p=g.kj(this.N,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.N.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(V){g.eG(V)})}else C={L:"svg", X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"g",B:"ytp-fullscreen-button-corner-0",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-1",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-2",j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{L:"g",B:"ytp-fullscreen-button-corner-3", j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},p=g.kj(this.N,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});p=this.message?null:p;this.update({title:p,icon:C});this.C.aI().B6()}; g.h.CS=function(){this.message||((0,this.T)(),this.T=null);g.L.prototype.CS.call(this)}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);var C;((C=this.N.K())==null?0:C.G("embeds_use_parent_visibility_in_ve_logging"))&&this.N.logVisibility(this.element,this.C4&&p)};g.m(e4,g.L);e4.prototype.onClick=function(){this.N.logClick(this.element);this.N.seekBy(this.T,!0);var p=this.T>0?1:-1,C=Math.abs(this.T),V=this.N.Cx().O5;V&&JD(V,p,C);this.C.isActive()?this.V=!0:(p=["ytp-jump-spin"],this.T<0&&p.push("backwards"),this.element.classList.add.apply(this.element.classList,g.K(p)),g.HF(this.C))};g.m(Pz,zI);Pz.prototype.onClickCommand=function(p){g.n(p,vT5)&&this.m6()}; Pz.prototype.updateVideoData=function(){var p,C;this.C=(p=JYV(this))==null?void 0:(C=p.onTap)==null?void 0:C.innertubeCommand;zI.prototype.D.call(this)}; Pz.prototype.m6=function(){var p="",C=this.S.D,V,N=(V=JYV(this))==null?void 0:V.headerTitle;V=N?g.uq(N):"";var H;N=((H=this.N.getLoopRange())==null?void 0:H.type)==="clips";C.length>1&&!N&&(p=this.N.getProgressState().current*1E3,H=f4H(C,p),p=H!=null?C[H].title:V,H!=null&&H!==this.currentIndex&&(this.N.Jk("innertubeCommand",C[H].onActiveCommand),this.currentIndex=H));zI.prototype.J.call(this,p)};g.m(wu,g.L);wu.prototype.onClick=function(){this.N.Jk("onCollapseMiniplayer");this.N.logClick(this.element)}; wu.prototype.Pr=function(){this.visible=!this.N.isFullscreen();this.jb(this.visible);this.N.logVisibility(this.element,this.visible&&this.Y)}; wu.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.N.logVisibility(this.element,this.visible&&p)};g.m(m99,g.L);g.h=m99.prototype;g.h.Z2=function(p){this.visible=p.width>=300||this.Sa;this.jb(this.visible);this.N.logVisibility(this.element,this.visible&&this.Y)}; g.h.SRS=function(){this.N.K().Y_?this.N.isMuted()?this.N.unMute():this.N.mute():Cc(this.message,this.element,!0);this.N.logClick(this.element)}; g.h.onVolumeChange=function(p){this.setVolume(p.volume,p.muted)}; g.h.setVolume=function(p,C){var V=this,N=C?0:p/100,H=this.N.K();p=N===0?1:p>50?1:0;if(this.W!==p){var X=this.b_;isNaN(X)?S7L(this,p):PhL(this.Vn,function(a){S7L(V,X+(V.W-X)*a)},250); this.W=p}N=N===0?1:0;if(this.S!==N){var d=this.Z;isNaN(d)?K8S(this,N):PhL(this.a$,function(a){K8S(V,d+(V.S-d)*a)},250); this.S=N}H.Y_&&(H=g.kj(this.N,"Mute","m"),N=g.kj(this.N,"Unmute","m"),this.updateValue("title",C?N:H),this.update({"data-title-no-tooltip":C?"Unmute":"Mute"}),this.tooltip.B6())}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);this.N.logVisibility(this.element,this.visible&&p)}; var vOH=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],F8a=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.m(g.$X,g.L);g.h=g.$X.prototype;g.h.onStateChange=function(p){this.UZ(p.state);var C;((C=this.N.K())==null?0:C.G("embeds_use_parent_visibility_in_ve_logging"))&&this.N.logVisibility(this.element,this.C4&&this.Y)}; g.h.UZ=function(p){var C=g.ud(this.N.getVideoData()),V=!1;p.isOrWillBePlaying()?p=C?4:2:g.r(p,2)?(p=3,V=C):p=1;this.element.disabled=V;if(this.T!==p){C=null;switch(p){case 2:C=g.kj(this.N,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:C="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:C=g.kj(this.N,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:C="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}p=== 3?this.update({title:C,icon:D9S(p)}):(this.update({title:C}),(C=D9S(p))&&this.T&&this.T!==3?$bv(this.transition,this.element,C):this.updateValue("icon",C));this.tooltip.B6();this.T=p}}; g.h.onVideoDataChange=function(){g.Tz(this.element,"ytp-play-button-playlist",g.nT(this.N))}; g.h.u6=function(p){this.N.logClick(this.element);if(this.N.getPlayerStateObject().isOrWillBePlaying())this.N.pauseVideo();else{if(this.N.isMinimized()&&this.N.getPlayerStateObject().isCued()){var C={},V;if((V=this.N.getVideoData())==null?0:V.Y)C.cttAuthInfo={token:this.N.getVideoData().Y,videoId:this.N.getVideoData().videoId};XA("direct_playback",C);this.N.W6().timerName="direct_playback"}else this.T===3&&fn(this.N.W6());this.N.playVideo()}this.N.isMinimized()&&(p==null?void 0:p.type)==="click"&& this.element.blur()}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);var C;((C=this.N.K())==null?0:C.G("embeds_use_parent_visibility_in_ve_logging"))&&this.N.logVisibility(this.element,this.C4&&p)};g.m(g.LZ,g.L);g.h=g.LZ.prototype;g.h.onVideoDataChange=function(){ZBL(this);this.S&&(this.rY(this.S),this.S=null);this.videoData=this.N.getVideoData(1);if(this.playlist=this.N.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.S=this.U(this.N,"progresssync",this.qx);this.V=U9y(this);u8V(this);this.jR(this.N.dV().getPlayerSize())}; g.h.jR=function(p){p=p===void 0?this.N.dV().getPlayerSize():p;var C,V=((C=this.N.getLoopRange())==null?void 0:C.type)==="clips";p=(g.nT(this.N)||this.T&&g.gb(this.N)&&!this.N.G("web_hide_next_button")||f$1(this))&&!V&&(this.T||p.width>=400);this.jb(p);this.N.logVisibility(this.element,p)}; g.h.onClick=function(p){this.N.logClick(this.element);var C=!0;this.D?C=g.Ml(p,this.N):p.preventDefault();C&&(this.T&&this.N.getPresentingPlayerType()===5?this.N.publish("ytoprerollinternstitialnext"):this.T?(fn(this.N.W6()),this.N.publish("playlistnextbuttonclicked",this.element),this.N.nextVideo(!0)):this.V?this.N.seekTo(0):(fn(this.N.W6()),this.N.publish("playlistprevbuttonclicked",this.element),this.N.previousVideo(!0)))}; g.h.qx=function(){var p=U9y(this);p!==this.V&&(this.V=p,u8V(this))}; g.h.CS=function(){this.C&&(this.C(),this.C=null);ZBL(this);g.L.prototype.CS.call(this)};g.m(yYj,g.L);g.h=yYj.prototype;g.h.Mx=function(p){this.FW(p.pageX);this.XW(p.pageX+p.deltaX);q7V(this)}; g.h.FW=function(p){this.a$=p-this.vr}; g.h.XW=function(p){p-=this.vr;!isNaN(this.a$)&&this.thumbnails.length>0&&(this.Z=p-this.a$,this.thumbnails.length>0&&this.Z!==0&&(this.V=this.J+this.Z,p=k_Q(this,this.V),this.V<=this.T/2&&this.V>=oO9(this)?(this.api.seekTo(p,!1,void 0,void 0,25),g.K2(this.sY,"transform","translateX("+(this.V-this.T/2)+"px)"),OBX(this,p)):this.V=this.J))}; g.h.cT=function(){this.b_&&(this.b_.sW=!0);var p=(0,g.Ip)()-this.Y_<300;if(Math.abs(this.Z)<5&&!p){this.Y_=(0,g.Ip)();p=this.a$+this.Z;var C=this.T/2-p;this.FW(p);this.XW(p+C);q7V(this);this.api.logClick(this.W)}q7V(this)}; g.h.M$=function(){gu(this,this.api.getCurrentTime())}; g.h.play=function(p){this.api.seekTo(k_Q(this,this.V),void 0,void 0,void 0,26);this.api.playVideo();p&&this.api.logClick(this.playButton)}; g.h.onExit=function(p){this.api.seekTo(this.Ga,void 0,void 0,void 0,63);this.api.playVideo();p&&this.api.logClick(this.dismissButton)}; g.h.OR=function(p,C){this.vr=p;this.T=C;gu(this,this.api.getCurrentTime())}; g.h.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ga=this.api.getCurrentTime(),OBX(this,this.Ga),g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Wr=this.U(this.element,"wheel",this.Mx),this.logVisibility(this.isEnabled))}; g.h.disable=function(){this.isEnabled=!1;this.hide();g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Wr&&this.rY(this.Wr);this.logVisibility(this.isEnabled)}; g.h.reset=function(){this.disable();this.S=[];this.Sa=!1}; g.h.logVisibility=function(p){this.api.logVisibility(this.element,p);this.api.logVisibility(this.W,p);this.api.logVisibility(this.dismissButton,p);this.api.logVisibility(this.playButton,p)}; g.h.CS=function(){for(;this.C.length;){var p=void 0;(p=this.C.pop())==null||p.dispose()}g.L.prototype.CS.call(this)}; g.m(I$S,g.L);g.m(bB9,g.L);g.m(x9L,g.L);g.m(Wz,g.L);Wz.prototype.V$=function(p){return p==="PLAY_PROGRESS"?this.D:p==="LOAD_PROGRESS"?this.W:p==="LIVE_BUFFER"?this.S:this.C};RGa.prototype.update=function(p,C,V,N){V=V===void 0?0:V;this.width=C;this.S=V;this.T=C-V-(N===void 0?0:N);this.position=g.J9(p,V,V+this.T);this.V=this.position-V;this.C=this.V/this.T};g.m(nOX,g.L);g.m(g.Bz,g.Sp);g.h=g.Bz.prototype; g.h.yB=function(){var p=!1,C=this.api.getVideoData();if(!C)return p;this.api.qt("timedMarkerCueRange");wLa(this);for(var V=g.F(C.Qn),N=V.next();!N.done;N=V.next()){N=N.value;var H=void 0,X=(H=this.Ga[N])==null?void 0:H.markerType;H=void 0;var d=(H=this.Ga[N])==null?void 0:H.markers;if(!d)break;if(X==="MARKER_TYPE_TIMESTAMPS"){p=g.F(d);for(X=p.next();!X.done;X=p.next()){H=X.value;X=new nOX;d=void 0;X.title=((d=H.title)==null?void 0:d.simpleText)||"";X.timeRangeStartMillis=Number(H.startMillis);X.T= Number(H.durationMillis);var a=d=void 0;X.onActiveCommand=(a=(d=H.onActive)==null?void 0:d.innertubeCommand)!=null?a:void 0;rY1(this,X)}B4a(this,this.D);p=this.D;X=this.iW;H=[];d=null;for(a=0;a<p.length;a++){var E=p[a].timeRangeStartMillis;if(!isNaN(E)&&p[a].onActiveCommand){var l=void 0,t=(l=p[a].T)!=null?l:1E4;d&&d.end>E&&(d.end=E);E=qU9(E,E+t);H.push(E);d=E;X[E.id]=p[a].onActiveCommand}}this.api.d7(H);this.hE=this.Ga[N];p=!0}else if(X==="MARKER_TYPE_HEATMAP"){N=this.Ga[N];t=l=H=E=a=d=void 0;if(N&& N.markers){X=(H=(t=N.markersMetadata)==null?void 0:(l=t.heatmapMetadata)==null?void 0:l.minHeightDp)!=null?H:0;H=(d=(E=N.markersMetadata)==null?void 0:(a=E.heatmapMetadata)==null?void 0:a.maxHeightDp)!=null?d:60;d=this.T.length;a=null;for(E=0;E<d;E++){t=this.T[E].startTime;var c=E===d-1?Infinity:this.T[E+1].startTime;E===this.W.length&&Pku(this);l=[];a&&l.push(a);for(var T=g.F(N.markers),M=T.next();!M.done;M=T.next()){M=M.value;var J=Number(M.startMillis);J>=t&&J<=c&&l.push(M)}H>0&&(this.b_.style.height= H+"px");t=this.W[E];c=l;M=X;var S=H,D=E===0;D=D===void 0?!1:D;Y7s(t,S);T=c;J=t.T;D=D===void 0?!1:D;var Z=1E3/T.length,f=[];f.push({x:0,y:100});for(var q=0;q<T.length;q++){var A=(q+.5)*Z,z=100-g.J9((T[q].intensityScoreNormalized||0)*100,M/J*100,S/J*100);q!==0||D||f.push({x:0,y:z});f.push({x:A,y:z});q===T.length-1&&f.push({x:1E3,y:z})}f.push({x:1E3,y:100});T=f;c=c.length===0?"":VFy(T);t.V.setAttribute("d",c);t.GN=c!=="";g.Tz(t.api.getRootNode(),"ytp-heat-map",t.GN);l.length>0&&(a=l[l.length-1])}g.GI(this)}H= void 0;X=[];if(N=(H=N.markersDecoration)==null?void 0:H.timedMarkerDecorations)for(N=g.F(N),H=N.next();!H.done;H=N.next())H=H.value,E=a=d=void 0,X.push({visibleTimeRangeStartMillis:(d=H.visibleTimeRangeStartMillis)!=null?d:-1,visibleTimeRangeEndMillis:(a=H.visibleTimeRangeEndMillis)!=null?a:-1,decorationTimeMillis:(E=H.decorationTimeMillis)!=null?E:NaN,label:H.label?g.uq(H.label):""});N=X;this.heatMarkersDecorations=N}}C.Di=this.D;g.Tz(this.element,"ytp-timed-markers-enabled",p);return p}; g.h.OR=function(){g.GI(this);jD(this);B4a(this,this.D);if(this.C){var p=g.qK(this.element).x||0;this.C.OR(p,this.J)}}; g.h.onClickCommand=function(p){if(p=g.n(p,H_)){var C=p.key;p.isVisible&&C&&jn1(this,C)}}; g.h.H1$=function(p){this.api.Jk("innertubeCommand",this.iW[p.id])}; g.h.m6=function(){jD(this);var p=this.api.getCurrentTime();(p<this.clipStart||p>this.clipEnd)&&this.XI()}; g.h.Zt=function(p){if(!p.defaultPrevented){var C=!1;switch(p.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);C=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);C=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);C=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);C=!0;break;case 38:this.api.G("enable_key_press_seek_logging")&&dR(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); this.api.seekBy(5,void 0,void 0,72);C=!0;break;case 40:this.api.G("enable_key_press_seek_logging")&&dR(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),C=!0}C&&p.preventDefault()}}; g.h.mL=function(p,C){this.updateVideoData(C,p==="newdata")}; g.h.L_=function(){this.mL("newdata",this.api.getVideoData())}; g.h.updateVideoData=function(p,C){C=C===void 0?!1:C;var V=!!p&&p.GN();if(V&&(E5(p)||d2e(this)?this.f9=!1:this.f9=p.allowLiveDvr,g.Tz(this.api.getRootNode(),"ytp-enable-live-buffer",!(p==null||!E5(p))),this.api.G("enable_custom_playhead_parsing"))){var N,H,X,d=g.n((N=p.getWatchNextResponse())==null?void 0:(H=N.playerOverlays)==null?void 0:(X=H.playerOverlayRenderer)==null?void 0:X.decoratedPlayerBarRenderer,v7);if(d==null?0:d.progressColor)for(N=0;N<this.T.length;N++)this.T[N].V$("PLAY_PROGRESS").style.background= g.Q_(d.progressColor);d=g.n(d==null?void 0:d.playhead,xL0);var a,E;N=(d==null?void 0:(a=d.playheadImage)==null?void 0:a.thumbnails)&&(d==null?void 0:(E=d.playheadImage)==null?void 0:E.thumbnails[0].url);g.Tz(this.qn,"ytp-decorated-scrubber-container",!!N);var l;if(d==null?0:(l=d.loggingDirectives)==null?0:l.trackingParams){var t;this.api.setTrackingParams(this.va,d==null?void 0:(t=d.loggingDirectives)==null?void 0:t.trackingParams);this.api.createServerVe(this.va,this)}N&&(this.va.src=N)}JsL(this, this.api.CO());if(C){if(V){C=p.clipEnd;this.clipStart=p.clipStart;this.clipEnd=C;ih(this);for(Nb(this,this.a$,this.Qn);this.W.length>0;)this.W.pop().dispose();this.heatMarkersDecorations=[];this.X$={};var c;(c=this.C)==null||c.reset();lh(this);g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-exp",ru(this))}else this.XI();this.l8()}if(p){var T;c=((T=this.Sb)==null?void 0:T.type)==="clips";if(T=!p.isLivePlayback){T=this.api.getVideoData();C=g.Ft(T);V=L8H(T);var M;T=C!=null||V!=null&&V.length>0||((M= T.Rj)==null?void 0:M.length)>0}if(T&&!c){M=this.api.getVideoData();c=g.Ft(M);T=!1;if(c==null?0:c.markersMap){T=this.api.getVideoData();var J;T.IX=((J=c.visibleOnLoad)==null?void 0:J.key)||T.IX;J=g.F(c.markersMap);for(c=J.next();!c.done;c=J.next())c=c.value,c.key&&c.value&&(this.X$[c.key]=c.value,c.value.onChapterRepeat&&(T.Tt=c.value.onChapterRepeat));T.IX!=null&&jn1(this,T.IX);T=!0}var S;if(((S=M.Rj)==null?void 0:S.length)>0){S=g.Xx.getState().entities;J=g.F(M.Rj);for(c=J.next();!c.done;c=J.next())if(c= c.value,V=void 0,C=(V=Mg(S,"macroMarkersListEntity",c))==null?void 0:V.markersList,a=V=void 0,((V=C)==null?void 0:V.markerType)==="MARKER_TYPE_TIMESTAMPS"||((a=C)==null?void 0:a.markerType)==="MARKER_TYPE_HEATMAP")this.Ga[c]=C;T=this.yB()||T}!T&&(S=L8H(M))&&(W81(this,S),M.Y9=this.T,gOu(this));i99(this,null);p.i$&&this.W.length===0&&(p=p.i$,S=p.key,p.isVisible&&S&&jn1(this,S))}else eG9(this),wLa(this)}jD(this)}; g.h.NH=function(p){this.Z&&!g.r(p.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Z.cancel();var C;((C=this.C)==null?0:C.isEnabled)&&g.r(p.state,8)&&this.api.pauseVideo();this.api.G("web_always_show_scrubber")&&(p=this.api.getPresentingPlayerType()===2||!this.api.CO()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0,g.Tz(this.cV,"ytp-hide-scrubber-button",p))}; g.h.yc=function(p){var C=!!this.Sb!==!!p,V=this.Sb;this.Sb=p;i99(this,V);(p==null?void 0:p.type)!=="clips"&&p||(p?(this.updateValue("clipstarticon",OKY()),this.updateValue("clipendicon",OKY()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",F_a()),this.updateValue("clipendicon",vl1()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),C&&(this.updateVideoData(this.api.getVideoData(), !0),g.GI(this)),ih(this));Nb(this,this.a$,this.Qn)}; g.h.R6_=function(p,C,V){var N=g.qK(this.element),H=Cv(this).T,X=V?V.getAttribute("data-tooltip"):void 0,d=V?V.getAttribute("data-position"):void 0,a=V?V.getAttribute("data-offset-y"):void 0;a=a?Number(a):0;d&&(p=wk(this.V,Number(V.getAttribute("data-position")),0)*H+g.qK(this.progressBar).x);this.KS.x=p-N.x;this.KS.y=C-N.y;p=Cv(this);V=Xp(this,p);C=0;var E;if((E=this.api.getVideoData())==null?0:E5(E))(E=this.api.getProgressState().seekableEnd)&&V>E&&(V=E,p.position=wk(this.V,E)*Cv(this).T),C=this.V.C; d2e(this)&&(C=this.V.C);E=X||g.A7(this.f9?V-this.V.T:V-C);C=p.position+this.XT;V-=this.api.yZ();var l;if((l=this.C)==null||!l.isEnabled)if(this.api.C$()){if(this.T.length>1){l=H$(this,this.KS.x,!0);if(!this.Sb)for(N=0;N<this.T.length;)g.Tz(this.T[N].T,"ytp-exp-chapter-hover-effect",N===l),N++;if(this.W.length>1)for(N=0;N<this.T.length;N++)g.Tz(this.W[N].element,"ytp-heatmap-hover",N===l)}if(this.D.length>0)for(l=this.KS.x,N=g.F(this.D),H=N.next();!H.done;H=N.next())H=H.value,d=pv(this,H.timeRangeStartMillis/ (this.V.T*1E3),Cv(this)),g.Tz(H.element,"ytp-timed-marker-hover",d<=l&&d+6>=l);N=this.tooltip.scale;a=(isNaN(a)?0:a)-45*N;this.api.G("web_key_moments_markers")?this.hE?(l=f4H(this.D,V*1E3),l=l!=null?this.D[l].title:""):(l=KZ(this.T,V*1E3),l=this.T[l].title):(l=KZ(this.T,V*1E3),l=this.T[l].title);l||(a+=16*N);this.tooltip.scale===.6&&(this.api.G("web_cairo_modern_miniplayer")?(a=this.api.dV().getPlayerSize().height-225,a=l?a+110:a+110+16,this.api.G("web_cairo_modern_miniplayer_inset_progress_bar")&& (a-=12)):a=l?110:126);N=KZ(this.T,V*1E3);this.sY=hdj(this,V,N)?N:hdj(this,V,N+1)?N+1:-1;g.Tz(this.api.getRootNode(),"ytp-progress-bar-snap",this.sY!==-1&&this.T.length>1);N=!1;H=g.F(this.heatMarkersDecorations);for(d=H.next();!d.done;d=H.next()){d=d.value;var t=V*1E3;t>=d.visibleTimeRangeStartMillis&&t<=d.visibleTimeRangeEndMillis&&(l=d.label,E=g.A7(d.decorationTimeMillis/1E3),N=!0)}this.QZ!==N&&(this.QZ=N,this.api.logVisibility(this.I6,this.QZ));g.Tz(this.api.getRootNode(),"ytp-progress-bar-decoration", N);N=160*this.tooltip.scale*2;H=l.length*(this.S?8.55:5.7);H=H<=N?H:N;d=H<160*this.tooltip.scale;N=3;!d&&H/2>p.position&&(N=1);!d&&H/2>this.J-p.position&&(N=2);this.api.K().J&&(a-=10);this.W.length&&this.W[0].GN&&(a-=14*(this.S?2:1),this.Wr||(this.Wr=!0,this.api.logVisibility(this.b_,this.Wr)));var c;if(ru(this)&&(((c=this.C)==null?0:c.isEnabled)||this.R$>0)){var T;a-=((T=this.C)==null?0:T.isEnabled)?sa(this):this.R$}c=void 0;ru(this)&&(c="Pull up for precise seeking",this.Sa||(this.Sa=!0,this.api.logVisibility(this.RN, this.Sa)));this.tooltip.eG(C,V,E,!!X,a,l,N,c)}else this.tooltip.eG(C,V,E,!!X,a);g.Ed(this.api.getRootNode(),"ytp-progress-bar-hover");XMQ(this)}; g.h.Pxx=function(){this.l8();g.tk(this.api.getRootNode(),"ytp-progress-bar-hover");this.Wr&&(this.Wr=!1,this.api.logVisibility(this.b_,this.Wr));this.Sa&&(this.Sa=!1,this.api.logVisibility(this.RN,this.Sa))}; g.h.pcV=function(p,C){ru(this)&&this.C&&(this.C.Sa?gu(this.C,this.api.getCurrentTime()):AY9(this.C),this.C.show(),g.Tz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.C.isEnabled));this.kt&&(this.kt.dispose(),this.kt=null);this.FT=C;this.FO=this.api.getCurrentTime();this.T.length>1&&this.sY!==-1?this.api.seekTo(this.T[this.sY].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Xp(this,Cv(this)),!1,void 0,void 0,7);g.Ed(this.element,"ytp-drag");(this.W1=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.h.YRY=function(){if(ru(this)&&this.C){var p=sa(this);this.R$>=p*.5?(this.C.enable(),gu(this.C,this.api.getCurrentTime()),M$v(this,p)):lh(this)}if(g.r(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var C;if((C=this.C)==null?0:C.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.sY!==-1)this.api.G("html5_enable_progress_bar_slide_seek_logging")&&dR(this,this.FO,this.T[this.sY].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.sY].startTime/1E3,void 0,void 0,void 0,7);else{p=Xp(this,Cv(this));this.api.G("html5_enable_progress_bar_slide_seek_logging")&&dR(this,this.FO,p,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(p,void 0,void 0,void 0,7);C=g.F(this.heatMarkersDecorations);for(var V=C.next();!V.done;V=C.next())V=V.value,p*1E3>=V.visibleTimeRangeStartMillis&&p*1E3<=V.visibleTimeRangeEndMillis&& this.api.logClick(this.I6)}g.tk(this.element,"ytp-drag");this.W1&&!g.r(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.h.DWa=function(p,C){p=Cv(this);p=Xp(this,p);this.api.seekTo(p,!1,void 0,void 0,7);var V;ru(this)&&((V=this.C)==null?0:V.Sa)&&(gu(this.C,p),this.C.isEnabled||(this.R$=g.J9(this.FT-C-10,0,sa(this)),M$v(this,this.R$)))}; g.h.l8=function(){this.tooltip.Mk()}; g.h.s3=function(){this.Sb||(this.updateValue("clipstarticon",m5L()),this.updateValue("clipendicon",m5L()),g.Ed(this.element,"ytp-clip-hover"))}; g.h.xf=function(){this.Sb||(this.updateValue("clipstarticon",F_a()),this.updateValue("clipendicon",vl1()),g.tk(this.element,"ytp-clip-hover"))}; g.h.XI=function(){this.clipStart=0;this.clipEnd=Infinity;ih(this);Nb(this,this.a$,this.Qn)}; g.h.uTk=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())if(C=C.value,C.visible){var V=C.getId();if(!this.vr[V]){var N=g.iK("DIV");C.tooltip&&N.setAttribute("data-tooltip",C.tooltip);this.vr[V]=C;this.Hc[V]=N;g.sd(N,C.style);snu(this,V);this.api.K().G("disable_ad_markers_on_content_progress_bar")||this.T[0].V.appendChild(N)}}else T5L(this,C)}; g.h.B7a=function(p){p=g.F(p);for(var C=p.next();!C.done;C=p.next())T5L(this,C.value)}; g.h.wc=function(p){this.C&&(this.C.onExit(p!=null),lh(this))}; g.h.lH=function(p){this.C&&(this.C.play(p!=null),lh(this))}; g.h.mn$=function(){JsL(this,this.api.CO())}; g.h.CS=function(){JsL(this,!1);g.Sp.prototype.CS.call(this)};g.m(to,g.L);to.prototype.isActive=function(){return!!this.N.getOption("remote","casting")}; to.prototype.Pr=function(){var p=!1;this.N.getOptions().includes("remote")&&(p=this.N.getOption("remote","receivers").length>1);this.jb(p&&this.N.dV().getPlayerSize().width>=400);this.N.logVisibility(this.element,this.C4);var C=1;p&&this.isActive()&&(C=2);if(this.T!==C){this.T=C;switch(C){case 1:this.updateValue("icon",{L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{L:"path",TB:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.Jm9())}g.Tz(this.element,"ytp-remote-button-active",this.isActive())}}; to.prototype.C=function(){if(this.N.getOption("remote","quickCast"))this.N.setOption("remote","quickCast",!0);else{var p=this.xM,C=this.element;if(p.rh())p.f4();else{p.initialize();a:{var V=g.F(p.Zd.items);for(var N=V.next();!N.done;N=V.next())if(N=N.value,N.priority===1){V=N;break a}V=null}V&&(V.open(),p.er(C));p.er(C)}}this.N.logClick(this.element)};g.m(c$,g.L);c$.prototype.T=function(p){var C=this.N.K(),V=400;this.N.G("web_player_small_hbp_settings_menu")&&C.Y?V=300:C.J&&(V=200);p=this.C&&p.width>=V;this.jb(p);this.N.G("embeds_use_parent_visibility_in_ve_logging")?this.N.logVisibility(this.element,p&&this.Y):this.N.logVisibility(this.element,p)}; c$.prototype.V=function(){if(this.xM.C4)this.xM.f4();else{var p=g.RT(this.N.Tk());p&&!p.loaded&&(p.DP("tracklist",{includeAsr:!0}).length||p.load());this.N.logClick(this.element);this.xM.er(this.element)}}; c$.prototype.updateBadge=function(){var p=this.N.isHdr(),C=this.N.getPresentingPlayerType(),V=C!==2&&C!==3,N=g.wb(this.N),H=V&&!!g.Pk(this.N.Tk());C=H&&N.displayMode===1;N=H&&N.displayMode===2;V=(H=C||N)||!V?null:this.N.getPlaybackQuality();g.Tz(this.element,"ytp-hdr-quality-badge",p);g.Tz(this.element,"ytp-hd-quality-badge",!p&&(V==="hd1080"||V==="hd1440"));g.Tz(this.element,"ytp-4k-quality-badge",!p&&V==="hd2160");g.Tz(this.element,"ytp-5k-quality-badge",!p&&V==="hd2880");g.Tz(this.element,"ytp-8k-quality-badge", !p&&V==="highres");g.Tz(this.element,"ytp-3d-badge-grey",!p&&H&&C);g.Tz(this.element,"ytp-3d-badge",!p&&H&&N)};g.m(T8,c3);T8.prototype.isLoaded=function(){var p=g.Ln(this.N.Tk());return p!==void 0&&p.loaded}; T8.prototype.Pr=function(){g.Ln(this.N.Tk())!==void 0&&this.N.getPresentingPlayerType()!==3?this.T||(this.xM.zB(this),this.T=!0):this.T&&(this.xM.u8(this),this.T=!1);TJ(this,this.isLoaded())}; T8.prototype.onSelect=function(p){this.isLoaded();p?this.N.loadModule("annotations_module"):this.N.unloadModule("annotations_module");this.N.publish("annotationvisibility",p)}; T8.prototype.CS=function(){this.T&&this.xM.u8(this);c3.prototype.CS.call(this)};g.m(Mb,g.jv);Mb.prototype.Pr=function(){var p=this.N.getAvailableAudioTracks();p.length>1?(this.dh(g.AU(p,this.T)),this.tracks=g.tB(p,this.T,this),this.countLabel.Jc(p.length?" ("+p.length+")":""),this.publish("size-change"),this.kN(this.T(this.N.getAudioTrack())),this.enable(!0)):this.enable(!1)}; Mb.prototype.jq=function(p){g.jv.prototype.jq.call(this,p);this.N.setAudioTrack(this.tracks[p]);this.xM.Ou()}; Mb.prototype.T=function(p){return p.toString()};g.m(Jo,c3); Jo.prototype.C=function(){var p=this.N.getPresentingPlayerType();if(p!==2&&p!==3&&g.gb(this.N))this.T||(this.xM.zB(this),this.T=!0,this.V.push(this.U(this.N,"videodatachange",this.C)),this.V.push(this.U(this.N,"videoplayerreset",this.C)),this.V.push(this.U(this.N,"onPlaylistUpdate",this.C)),this.V.push(this.U(this.N,"autonavchange",this.S)),p=this.N.getVideoData(),this.S(p.autonavState),this.N.logVisibility(this.element,this.T));else if(this.T){this.xM.u8(this);this.T=!1;p=g.F(this.V);for(var C=p.next();!C.done;C= p.next())this.rY(C.value)}}; Jo.prototype.S=function(p){TJ(this,p!==1)}; Jo.prototype.onSelect=function(p){this.N.MV(p?2:1);this.T&&(this.N.logVisibility(this.element,this.T),this.N.logClick(this.element))}; Jo.prototype.CS=function(){this.T&&this.xM.u8(this);c3.prototype.CS.call(this)};g.m(vnX,g.Nl);vnX.prototype.onClick=function(p){p.preventDefault();var C,V;(C=g.Zg(this.N))==null||(V=C.TA())==null||V.f4();var N,H;(N=g.Zg(this.N))==null||(H=N.Gj())==null||H.er(p.target)};g.m(FTY,g.jv);g.h=FTY.prototype; g.h.du=function(){var p=this.N.getPresentingPlayerType();if(p!==2&&p!==3){this.sY=this.N.TY();p=this.N.getAvailableQualityLevels();if(this.T){this.S={};var C=g.FE(this.N,"getAvailableQualityData",[]);C=g.F(C);for(var V=C.next();!V.done;V=C.next())V=V.value,this.S[V.qualityLabel]=V;C=Object.keys(this.S);p[p.length-1]==="auto"&&C.push("auto");this.Vn=new Set(p)}else if(this.W){V=g.FE(this.N,"getAvailableQualityData",[]);C=[];V=g.F(V);for(var N=V.next();!N.done;N=V.next())N=N.value,this.Z[N.quality]= N,N.quality&&C.push(N.quality);p[p.length-1]==="auto"&&C.push("auto")}else C=p;g.ggj(this.N)&&this.N.Ar()&&C.unshift("missing-qualities");Wwj(this.N)&&C.unshift("inline-survey");this.dh(C);p=this.N.getVideoData().cotn?!0:!1;V=this.b_.nO();V=!g.wG(this.N.K())||!(p===void 0?0:p)||!(V===void 0||V);p=this.C;V=V===void 0?!1:V;p.Lz&&g.Tz(p.rV("ytp-panel-footer"),"ytp-panel-hide-footer",V===void 0?!1:V);if(C.length){this.Tw();this.enable(!0);return}}this.enable(!1)}; g.h.Tw=function(){if(this.T){var p=this.N.getPreferredQuality();this.Vn.has(p)&&(this.D=this.N.getPlaybackQuality(),this.a$=this.N.getPlaybackQualityLabel(),p==="auto"?(this.kN(p),this.Jc(this.oz(p))):this.kN(this.a$))}else p=this.N.getPreferredQuality(),this.options[p]&&(this.D=this.N.getPlaybackQuality(),this.kN(p),p==="auto"&&this.Jc(this.oz(p)))}; g.h.jq=function(p){if(p!=="missing-qualities"){g.jv.prototype.jq.call(this,p);var C=this.T?this.S[p]:this.Z[p];var V=C==null?void 0:C.quality,N=C==null?void 0:C.formatId,H=C==null?void 0:C.paygatedQualityDetails;C=H==null?void 0:H.endpoint;if(H){var X;H=(X=this.options[p])==null?void 0:X.element;this.N.logClick(H)}if(this.T){var d,a;if((d=g.n(C,g.tkv))==null?0:(a=d.popup)==null?0:a.notificationActionRenderer)this.N.Jk("innertubeCommand",C);else if(C){this.N.Jk("innertubeCommand",C);return}N?this.N.setPlaybackQuality(V, N):this.N.setPlaybackQuality(V)}else{if(this.W){var E,l;if((E=g.n(C,g.tkv))==null?0:(l=E.popup)==null?0:l.notificationActionRenderer)this.N.Jk("innertubeCommand",C);else if(C){this.N.Jk("innertubeCommand",C);return}}this.N.setPlaybackQuality(p)}this.xM.f4();this.du()}}; g.h.open=function(){for(var p=g.F(Object.values(this.options)),C=p.next();!C.done;C=p.next()){C=C.value;var V=void 0;this.N.hasVe((V=C)==null?void 0:V.element)&&(V=void 0,this.N.logVisibility((V=C)==null?void 0:V.element,!0))}g.jv.prototype.open.call(this);this.N.logClick(this.element)}; g.h.M2=function(p,C,V){var N=this;if(p==="missing-qualities")return new g.Nl({L:"a",i_:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.N.K().Z,tabindex:"0",role:"menuitemradio"},j:[{L:"div",i_:["ytp-menuitem-label"],Ak:"{{label}}"}]},C,this.oz(p));if(p!=="inline-survey"){var H,X=(H=this.T?this.S[p]:this.Z[p])==null?void 0:H.paygatedQualityDetails;H=X==null?void 0:X.veType;X=X==null?void 0:X.trackingParams;C=g.jv.prototype.M2.call(this,p,C,V);X?(this.N.createServerVe(C.element, this,!0),this.N.setTrackingParams(C.element,X)):H&&this.N.createClientVe(C.element,this,H,!0);return C}p=[{L:"span",Ak:"Looks good?"}];V=g.F([!0,!1]);X=V.next();for(H={};!X.done;H={yj:void 0},X=V.next())H.yj=X.value,X=new g.L({L:"span",B:"ytp-menuitem-inline-survey-response",j:[H.yj?f3S():K_H()],X:{tabindex:"0",role:"button"}}),X.listen("click",function(d){return function(){var a=d.yj,E=g.O5(N.N.app);E&&(E.k_("iqsr",{tu:a}),E.getVideoData().wX=!0);N.xM.f4();N.du()}}(H)),p.push(X); return new g.Nl({L:"div",B:"ytp-menuitem",X:{"aria-disabled":"true"},j:[{L:"div",i_:["ytp-menuitem-label"],j:p}]},C)}; g.h.oz=function(p,C){C=C===void 0?!1:C;if(p==="missing-qualities")return{L:"div",Ak:"Missing options?"};if(p==="inline-survey")return"";var V=this.W||this.T?[D2v(this,p,C,!1)]:[KTs(this,p)];var N=this.N.getPreferredQuality();C||N!=="auto"||p!=="auto"||(V.push(" "),this.T?V.push(D2v(this,this.a$,C,!0,["ytp-menu-label-secondary"])):this.W?V.push(D2v(this,this.D,C,!0,["ytp-menu-label-secondary"])):V.push(KTs(this,this.D,["ytp-menu-label-secondary"])));return{L:"div",j:V}};g.m(mR,g.L);mR.prototype.init=function(){this.updateValue("minvalue",this.V);this.updateValue("maxvalue",this.W);this.updateValue("stepvalue",this.D);this.updateValue("slidervalue",this.C);uSY(this,this.C)}; mR.prototype.J=function(){Z9y(this,Number(this.T.value));this.T.focus()};g.m(v$,mR);v$.prototype.J=function(){mR.prototype.J.call(this);this.S&&U2s(this)}; v$.prototype.sY=function(){this.Z()}; v$.prototype.b_=function(){this.N.setPlaybackRate(this.C,!0)}; v$.prototype.a$=function(p){if(!p.defaultPrevented){switch(p.code){case "ArrowDown":var C=-this.D;break;case "ArrowUp":C=this.D;break;default:return}Z9y(this,Math.min(this.W,Math.max(Number((this.C+C).toFixed(2)),this.V)));this.Z();U2s(this);p.preventDefault()}};g.m(Fp,g.L);g.h=Fp.prototype;g.h.init=function(){this.dJ(this.T);this.updateValue("minvalue",this.C);this.updateValue("maxvalue",this.V)}; g.h.kU=function(p){if(!p.defaultPrevented){switch(p.keyCode){case 37:case 40:var C=-this.J;break;case 39:case 38:C=this.J;break;default:return}this.dJ(this.T+C);p.preventDefault()}}; g.h.y3=function(p){var C=this.T;C+=(p.deltaX||-p.deltaY)<0?-this.Z:this.Z;this.dJ(C);p.preventDefault()}; g.h.Td=function(p){p=(p-g.qK(this.S).x)/this.a$*this.range+this.C;this.dJ(p)}; g.h.dJ=function(p,C){C=C===void 0?"":C;p=g.J9(p,this.C,this.V);C===""&&(C=p.toString());this.updateValue("valuenow",p);this.updateValue("valuetext",C);this.b_.style.left=(p-this.C)/this.range*(this.a$-this.Sa)+"px";this.T=p}; g.h.focus=function(){this.Wr.focus()};g.m(SD,Fp);SD.prototype.sY=function(){this.N.setPlaybackRate(this.T,!0)}; SD.prototype.dJ=function(p){Fp.prototype.dJ.call(this,p,O9L(this,p).toString());this.W&&(fIY(this),this.Vn())}; SD.prototype.updateValues=function(){var p=this.N.getPlaybackRate();O9L(this,this.T)!==p&&(this.dJ(p),fIY(this))};g.m(ys9,g.Sp);ys9.prototype.focus=function(){this.T.focus()};g.m(qbu,wL);g.m(IIV,g.jv);g.h=IIV.prototype;g.h.oz=function(p){return p==="1"?"Normal":p.toLocaleString()}; g.h.Pr=function(){var p,C=(p=this.N.getVideoData())==null?void 0:p.VL();p=this.N.getPresentingPlayerType(C);this.enable(p!==2&&p!==3);kLu(this)}; g.h.dh=function(p){g.jv.prototype.dh.call(this,p);this.D&&this.D.T.focus()}; g.h.UX=function(p){g.jv.prototype.UX.call(this,p);p?(this.a$=this.U(this.N,"onPlaybackRateChange",this.onPlaybackRateChange),kLu(this),Asa(this,this.N.getPlaybackRate())):(this.rY(this.a$),this.a$=null)}; g.h.onPlaybackRateChange=function(p){var C=this.N.getPlaybackRate();!this.W&&this.Z.includes(C)||on1(this,C);Asa(this,p)}; g.h.M2=function(p,C,V){return p===this.T&&x2S(this.N)?g.jv.prototype.M2.call(this,p,C,V,{L:"div",B:"ytp-speed-slider-menu-footer",j:[this.D]}):g.jv.prototype.M2.call(this,p,C,V)}; g.h.jq=function(p){g.jv.prototype.jq.call(this,p);p===this.T?this.N.setPlaybackRate(this.S,!0):this.N.setPlaybackRate(Number(p),!0);x2S(this.N)&&p===this.T||this.xM.Ou()}; g.h.On=function(p){var C=p===this.T;this.W=!1;C&&Kv(this.N)&&!x2S(this.N)?(p=new qbu(this.N),g.WO(this.xM,p)):g.jv.prototype.On.call(this,p)};g.m(zda,g.jv);g.h=zda.prototype;g.h.kN=function(p){g.jv.prototype.kN.call(this,p)}; g.h.kP=function(p){return p.option.toString()}; g.h.getOption=function(p){return this.settings[p]}; g.h.oz=function(p){return this.getOption(p).text||""}; g.h.jq=function(p){g.jv.prototype.jq.call(this,p);this.publish("settingChange",this.setting,this.settings[p].option)};g.m(Di,g.$m);Di.prototype.M5=function(p){for(var C=g.F(Object.keys(p)),V=C.next();!V.done;V=C.next()){var N=V.value;if(V=this.ob[N]){var H=p[N].toString();N=!!p[N+"Override"];V.options[H]&&(V.kN(H),V.S.element.setAttribute("aria-checked",String(!N)),V.T.element.setAttribute("aria-checked",String(N)))}}}; Di.prototype.f$=function(p,C){this.publish("settingChange",p,C)};g.m(uh,g.jv);uh.prototype.T=function(p){return p.languageCode}; uh.prototype.oz=function(p){return this.languages[p].languageName||""}; uh.prototype.jq=function(p){this.publish("select",p);this.N.logClick(this.element);g.QX(this.xM)};g.m(edy,g.jv);g.h=edy.prototype;g.h.jD=function(p){return g.k5(p)?"__off__":p.displayName}; g.h.oz=function(p){return p==="__off__"?"Off":p==="__translate__"?"Auto-translate":p==="__contribute__"?"Add subtitles/CC":p==="__correction__"?"Suggest caption corrections":(p==="__off__"?{}:this.tracks[p]).displayName}; g.h.jq=function(p){if(p==="__translate__")this.T.open();else if(p==="__contribute__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();var C=g.k1(this.N.K(),this.N.getVideoData());g.pS(C)}else if(p==="__correction__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();var V=PJX(this);Zi(this,V);g.jv.prototype.jq.call(this,this.jD(V));var N,H;V=(C=this.N.getVideoData().getPlayerResponse())==null?void 0:(N=C.captions)==null?void 0:(H=N.playerCaptionsTracklistRenderer)== null?void 0:H.openTranscriptCommand;this.N.Jk("innertubeCommand",V);this.xM.Ou();this.S&&this.N.logClick(this.S)}else{if(p==="__correction__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();C=PJX(this);Zi(this,C);g.jv.prototype.jq.call(this,this.jD(C));var X,d;C=(V=this.N.getVideoData().getPlayerResponse())==null?void 0:(X=V.captions)==null?void 0:(d=X.playerCaptionsTracklistRenderer)==null?void 0:d.openTranscriptCommand;this.N.Jk("innertubeCommand",C)}else this.N.logClick(this.element), Zi(this,p==="__off__"?{}:this.tracks[p]),g.jv.prototype.jq.call(this,p);this.xM.Ou()}}; g.h.Pr=function(){var p=this.N.getOptions();p=p&&p.indexOf("captions")!==-1;var C=this.N.getVideoData(),V=C&&C.CA,N,H=!((N=this.N.getVideoData())==null||!g.s5(N));N={};if(p||V){var X;if(p){var d=this.N.getOption("captions","track");N=this.N.getOption("captions","tracklist",{includeAsr:!0});var a=H?[]:this.N.getOption("captions","translationLanguages");this.tracks=g.tB(N,this.jD,this);H=g.AU(N,this.jD);var E,l;PJX(this)&&((X=C.getPlayerResponse())==null?0:(E=X.captions)==null?0:(l=E.playerCaptionsTracklistRenderer)== null?0:l.openTranscriptCommand)&&H.push("__correction__");if(a.length&&!g.k5(d)){if((X=d.translationLanguage)&&X.languageName){var t=X.languageName;X=a.findIndex(function(c){return c.languageName===t}); H0Q(a,X)}RdV(this.T,a);H.push("__translate__")}X=this.jD(d)}else this.tracks={},H=[],X="__off__";H.unshift("__off__");this.tracks.__off__={};V&&H.unshift("__contribute__");this.tracks[X]||(this.tracks[X]=d,H.push(X));this.dh(H);this.kN(X);d&&d.translationLanguage?this.T.kN(this.T.T(d.translationLanguage)):Zve(this.T);p&&this.W.M5(this.N.getSubtitlesUserSettings());this.countLabel.Jc(N&&N.length?" ("+N.length+")":"");this.publish("size-change");this.N.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.h.aP=function(p){var C=this.N.getOption("captions","track");C=g.zh(C);C.translationLanguage=this.T.languages[p];Zi(this,C)}; g.h.f$=function(p,C){if(p==="reset")this.N.resetSubtitlesUserSettings();else{var V={};V[p]=C;this.N.updateSubtitlesUserSettings(V)}nnj(this,!0);this.D.start();this.W.M5(this.N.getSubtitlesUserSettings())}; g.h.Vrx=function(p){p||g.d0(this.D)}; g.h.CS=function(){g.d0(this.D);g.jv.prototype.CS.call(this)}; g.h.open=function(){g.jv.prototype.open.call(this);this.options.__correction__&&!this.S&&(this.S=this.options.__correction__.element,this.N.createClientVe(this.S,this,167341),this.N.logVisibility(this.S,!0))};g.m(wMy,g.gL);g.h=wMy.prototype; g.h.initialize=function(){if(!this.isInitialized){var p=this.N.K();this.isInitialized=!0;try{this.YD=new FTY(this.N,this)}catch(V){g.eG(Error("QualityMenuItem creation failed"))}g.R(this,this.YD);var C=new edy(this.N,this);g.R(this,C);p.V||(C=new T8(this.N,this),g.R(this,C));p.enableSpeedOptions&&(C=new IIV(this.N,this),g.R(this,C));(g.KI(p)||p.Y)&&(p.C||p.R$)&&(C=new vnX(this.N,this),g.R(this,C));p.kt&&!p.G("web_player_move_autonav_toggle")&&(p=new Jo(this.N,this),g.R(this,p));p=new Mb(this.N,this); g.R(this,p);this.N.publish("settingsMenuInitialized");m2s(this.settingsButton,this.Zd.t8())}}; g.h.zB=function(p){this.initialize();this.Zd.zB(p);m2s(this.settingsButton,this.Zd.t8())}; g.h.u8=function(p){this.C4&&this.Zd.t8()<=1&&this.hide();this.Zd.u8(p);m2s(this.settingsButton,this.Zd.t8())}; g.h.er=function(p){this.initialize();this.Zd.t8()>0&&g.gL.prototype.er.call(this,p)}; g.h.f4=function(){this.LZ?this.LZ=!1:g.gL.prototype.f4.call(this)}; g.h.show=function(){g.gL.prototype.show.call(this);g.Ed(this.N.getRootNode(),"ytp-settings-shown")}; g.h.hide=function(){g.gL.prototype.hide.call(this);g.tk(this.N.getRootNode(),"ytp-settings-shown")}; g.h.JE=function(p){this.N.logVisibility(this.element,p);this.N.publish("settingsMenuVisibilityChanged",p)};g.m(LTV,g.L);g.h=LTV.prototype;g.h.onClick=function(){if(gnv(this)&&(this.N.toggleSubtitles(),this.N.logClick(this.element),!this.isEnabled())){var p=!1,C=g.LK(g.$l(),65);g.wG(this.N.K())&&C!=null&&(p=!C);p&&this.N.K().G("web_player_nitrate_promo_tooltip")&&this.N.publish("showpromotooltip",this.element)}}; g.h.R3a=function(p){var C,V;(C=g.Zg(this.N))==null||(V=C.TA())==null||V.er(p)}; g.h.isEnabled=function(){return!!this.N.getOption("captions","track").displayName}; g.h.Pr=function(){var p=gnv(this),C=300;this.N.K().J&&(C=480);if(this.N.K().Y){this.updateValue("title",g.kj(this.N,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var V=p}else{if(p)(V=this.rV("ytp-subtitles-button-icon"))==null||V.setAttribute("fill-opacity","1"),this.updateValue("title",g.kj(this.N,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var N;(N=this.rV("ytp-subtitles-button-icon"))== null||N.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}V=!0}this.tooltip.B6();V=V&&this.N.dV().getPlayerSize().width>=C;this.jb(V);this.N.G("embeds_use_parent_visibility_in_ve_logging")?this.N.logVisibility(this.element,V&&this.Y):this.N.logVisibility(this.element,V);p?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);this.N.K().G("embeds_use_parent_visibility_in_ve_logging")&&this.N.logVisibility(this.element,this.C4&&p)};g.m(g.Ua,g.L);g.h=g.Ua.prototype; g.h.m6=function(){var p=this.api.dV().getPlayerSize().width,C=this.J;this.api.K().J&&(C=400);C=p>=C&&(!fv(this)||!g.r(this.api.getPlayerStateObject(),64));this.jb(C);g.Tz(this.element,"ytp-time-display-allow-autohide",C&&p<400);p=this.api.getProgressState();if(C){C=this.api.getPresentingPlayerType();var V=this.api.getCurrentTime(C,!1);this.C&&(V-=p.airingStart);Oa(this)&&(V-=this.Sb.startTimeMs/1E3);V=g.A7(V);this.V!==V&&(this.updateValue("currenttime",V),this.V=V);C=Oa(this)?g.A7((this.Sb.endTimeMs- this.Sb.startTimeMs)/1E3):g.A7(this.api.getDuration(C,!1));this.S!==C&&(this.updateValue("duration",C),this.S=C)}WTe(this,p.isAtLiveHead);Qne(this,this.api.getLoopRange())}; g.h.onLoopRangeChange=function(p){var C=this.Sb!==p;this.Sb=p;C&&(this.m6(),rsS(this))}; g.h.gGV=function(){this.api.setLoopRange(null)}; g.h.onVideoDataChange=function(p,C,V){this.updateVideoData((this.api.K().G("enable_topsoil_wta_for_halftime")||this.api.K().G("enable_topsoil_wta_for_halftime_live_infra"))&&V===2?this.api.getVideoData(1):C);this.m6();rsS(this)}; g.h.updateVideoData=function(p){this.YR=p.isLivePlayback&&!p.qo;this.C=E5(p);this.isPremiere=p.isPremiere;g.Tz(this.element,"ytp-live",fv(this))}; g.h.onClick=function(p){p.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.h.CS=function(){this.T&&this.T();g.L.prototype.CS.call(this)};g.m(GLY,g.L);g.h=GLY.prototype;g.h.V2=function(){var p=this.api.GW();this.V!==p&&(this.V=p,B5y(this,this.api.getVolume(),this.api.isMuted()))}; g.h.ag=function(p){this.jb(p.width>=350)}; g.h.CX=function(p){if(!p.defaultPrevented){var C=p.keyCode,V=null;C===37?V=this.volume-5:C===39?V=this.volume+5:C===36?V=0:C===35&&(V=100);V!==null&&(V=g.J9(V,0,100),V===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(V)),p.preventDefault())}}; g.h.bY=function(p){var C=p.deltaX||-p.deltaY;p.deltaMode?this.api.setVolume(this.volume+(C<0?-10:10)):this.api.setVolume(this.volume+g.J9(C/10,-10,10));p.preventDefault()}; g.h.z3S=function(){yK(this,this.T,!0,this.C,this.api.Em());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()}; g.h.nX=function(p){var C=this.V?78:52,V=this.V?18:12;p-=g.qK(this.J).x;this.api.setVolume(g.J9((p-V/2)/(C-V),0,1)*100)}; g.h.vGa=function(){yK(this,this.T,!1,this.C,this.api.Em());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Z))}; g.h.onVolumeChange=function(p){B5y(this,p.volume,p.muted)}; g.h.Wl=function(){yK(this,this.T,this.isDragging,this.C,this.api.Em())}; g.h.CS=function(){g.L.prototype.CS.call(this);g.tk(this.D,"ytp-volume-slider-active")};g.m(qb,g.L); qb.prototype.onVideoDataChange=function(){var p=this.api.K();this.OR();this.visible=!!this.api.getVideoData().videoId&&!g.lx(this.api.getVideoData(1));this.jb(this.visible);this.api.logVisibility(this.element,this.visible&&this.Y);if(this.visible){var C=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",C)}p.V&&(this.T&&(this.rY(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Ed(this.element,"no-link")); C=this.api.K();p=this.api.getVideoData();var V="";C.V||(C=g.zM(C),C.indexOf("www.")===0&&(C=C.substring(4)),V=g.t_(p)?"Watch on YouTube Music":C==="youtube.com"?"Watch on YouTube":g.Ks("Watch on $WEBSITE",{WEBSITE:C}));this.updateValue("title",V)}; qb.prototype.onClick=function(p){this.api.G("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var C=this.api.K(),V=this.api.getVideoUrl(!g.o0(p),!1,!0,!0);if(g.KI(C)){var N={};g.KI(C)&&g.FE(this.api,"addEmbedsConversionTrackingParams",[N]);V=g.GD(V,N)}g.Jh(V,this.api,p);this.api.G("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; qb.prototype.OR=function(){var p={L:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},j:[{L:"path",TB:!0,B:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, C=28666,V=this.api.getVideoData();this.api.isEmbedsShortsMode()?p={L:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},j:[{L:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.t_(V)&&(p={L:"svg",X:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},j:[{L:"path",X:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{L:"path",X:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{L:"path",X:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{L:"path",X:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{L:"path",X:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{L:"path",X:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{L:"path",X:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{L:"path",X:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{L:"path",X:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{L:"path",X:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{L:"path",X:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{L:"path",X:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},C=216163);g.t_(V)?g.Ed(this.element,"ytp-youtube-music-button"):g.tk(this.element,"ytp-youtube-music-button");p.X=Object.assign({},p.X,{"aria-hidden":"true"});this.updateValue("logoSvg",p);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,C,!0)}; qb.prototype.RH=function(p){g.L.prototype.RH.call(this,p);this.api.logVisibility(this.element,this.visible&&p)};g.m(CAV,g.Rr);g.h=CAV.prototype;g.h.Nn=function(){if(this.N.G("web_player_max_seekable_on_ended")||!g.r(this.N.getPlayerStateObject(),2))this.progressBar.m6(),this.Sa.m6()}; g.h.XS=function(){this.zg();this.YB.C?this.Nn():this.progressBar.l8()}; g.h.AG=function(){this.Nn();this.J.start()}; g.h.zg=function(){var p;if(p=!this.N.K().C){p=this.progressBar;var C=2*g.Pg()*p.J;p=p.V.getLength()*1E3/p.api.getPlaybackRate()/C<300}p=p&&this.N.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;C=!p;this.YB.C||(p=C=!1);C?this.b_||(this.b_=this.U(this.N,"progresssync",this.Nn)):this.b_&&(this.rY(this.b_),this.b_=null);p?this.J.isActive()||this.J.start():this.J.stop()}; g.h.OR=function(){var p=this.N.GW(),C=this.N.dV().getPlayerSize(),V=VNv(this),N=Math.max(C.width-V*2,100);if(this.X$!==C.width||this.qo!==p){this.X$=C.width;this.qo=p;var H=NpL(this);this.V.element.style.width=H+"px";this.V.element.style.left=V+"px";g.cs1(this.progressBar,V,H,p);this.N.aI().b$=H}V=this.C;N=Math.min(570*(p?1.5:1),N);p=Math.min(413*(p?1.5:1),Math.round((C.height-HCH(this))*.82));V.maxWidth=N;V.maxHeight=p;V.Am();this.zg();this.N.K().G("html5_player_dynamic_bottom_gradient")&&a$s(this.Qn, C.height)}; g.h.onVideoDataChange=function(){var p=this.N.getVideoData();this.Y_.style.background=p.UV?p.PP:"";this.a$&&Mjv(this.a$,p.showSeekingControls);this.Z&&Mjv(this.Z,p.showSeekingControls)}; g.h.V$=function(){return this.V.element};g.m(X9a,PO);g.h=X9a.prototype;g.h.SN=function(p){p.target!==this.dismissButton.element&&(this.onClickCommand&&this.N.Jk("innertubeCommand",this.onClickCommand),this.Fj())}; g.h.Fj=function(){this.enabled=!1;this.a$.hide()}; g.h.onVideoDataChange=function(p,C){p==="dataloaded"&&d0V(this);p=[];var V,N,H,X;if(C=(X=g.n((V=C.getWatchNextResponse())==null?void 0:(N=V.playerOverlays)==null?void 0:(H=N.playerOverlayRenderer)==null?void 0:H.suggestedActionsRenderer,R6P))==null?void 0:X.suggestedActions)for(V=g.F(C),N=V.next();!N.done;N=V.next())(N=g.n(N.value,nT1))&&g.n(N.trigger,z61)&&p.push(N);if(p.length!==0){V=[];p=g.F(p);for(N=p.next();!N.done;N=p.next())if(N=N.value,H=g.n(N.trigger,z61))X=(X=N.title)?g.uq(X):"View Chapters", C=H.timeRangeStartMillis,H=H.timeRangeEndMillis,C!=null&&H!=null&&N.tapCommand&&(V.push(new g.sz(C,H,{priority:9,namespace:"suggested_action_button_visible",id:X})),this.suggestedActions[X]=N.tapCommand);this.N.d7(V)}}; g.h.Xb=function(){return this.enabled}; g.h.JE=function(){this.enabled?this.Ga.start():n$(this);this.hd()}; g.h.CS=function(){d0V(this);PO.prototype.CS.call(this)};var D$={},Iv=(D$.CHANNEL_NAME="ytp-title-channel-name",D$.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",D$.LINK="ytp-title-link",D$.SESSIONLINK="yt-uix-sessionlink",D$.SUBTEXT="ytp-title-subtext",D$.TEXT="ytp-title-text",D$.TITLE="ytp-title",D$);g.m(bh,g.L);bh.prototype.onClick=function(p){this.api.logClick(this.element);var C=this.api.K(),V=this.api.getVideoUrl(!g.o0(p),!1,!0);g.KI(C)&&(C={},g.FE(this.api,"addEmbedsConversionTrackingParams",[C]),V=g.GD(V,C));g.Jh(V,this.api,p)}; bh.prototype.Pr=function(){var p=this.api.getVideoData(),C=this.api.K();this.updateValue("title",p.title);var V={L:"a",B:Iv.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},Ak:"{{channelName}}"};this.api.K().V&&(V={L:"span",B:Iv.CHANNEL_NAME,Ak:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",V);iC1(this);this.api.getPresentingPlayerType()===2&&(V=this.api.getVideoData(),V.videoId&&V.isListed&&V.author&&V.kM&&V.profilePicture?(this.updateValue("channelLink", V.kM),this.updateValue("channelName",V.author),this.updateValue("channelTitleFocusable","0")):iC1(this));V=C.externalFullscreen||!this.api.isFullscreen()&&C.tB;g.Tz(this.link,Iv.FULLERSCREEN_LINK,V);C.b_||!p.videoId||V||g.lx(p)||C.V?this.T&&(this.updateValue("url",null),this.rY(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.U(this.link,"click",this.onClick)));C.V&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.KI(C)?p.expandedTitle: p.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.m(g.Ao,g.L);g.h=g.Ao.prototype;g.h.setEnabled=function(p){if(this.type!=null)if(p)switch(this.type){case 3:case 2:sUy(this);this.D.show();break;default:this.D.show()}else this.D.hide();this.J=p}; g.h.eG=function(p,C,V,N,H,X,d,a){if(!this.Sa||this.env.J){this.type===3&&this.l8();this.type!==1&&(g.sd(this.element,"ytp-tooltip ytp-bottom ytp-rounded-tooltip"),this.type=1,this.J&&this.D.show(),this.C&&this.C.dispose(),(this.C=this.api.C$())&&this.C.subscribe("l",this.uV,this));if(a){var E=g.Ax(this.bg).height||141;this.Wr.style.bottom=E+2+"px"}this.update({text:V,title:X!=null?X:"",eduText:a!=null?a:""});g.Tz(this.text,"ytp-tooltip-text-no-title",this.type===1&&!X);this.api.isInline()&&g.Ed(this.text, "ytp-modern-tooltip-text");g.Tz(this.element,"ytp-text-detail",!!N);V=-1;this.C&&(V=ys(this.C,243*this.scale),this.env.G("web_l3_storyboard")&&this.C.levels.length===4&&(V=this.C.levels.length-1),V=sHe(this.C,V,C));E8V(this,V);if(d)switch(C=g.Ax(this.element).width,d){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=C+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=C/2+"px",this.title.style.textAlign="center"}awy(this, !!N,p,H)}}; g.h.Mk=function(){this.type===1&&this.l8()}; g.h.Y7=function(p,C){if(this.type)if(this.type===3)this.l8();else return;h7H(this,p,3,C)}; g.h.B6=function(){this.T&&!this.Z&&this.T.hasAttribute("title")&&(this.V=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.J&&sUy(this))}; g.h.uV=function(p,C){p<=this.S&&this.S<=C&&(p=this.S,this.S=NaN,E8V(this,p))}; g.h.WU=function(){izy(this.C,this.S,243*this.scale)}; g.h.l8=function(){switch(this.type){case 2:var p=this.T;p.removeEventListener("mouseout",this.a$);p.addEventListener("mouseover",this.W);p.removeEventListener("blur",this.a$);p.addEventListener("focus",this.W);lwv(this);break;case 3:lwv(this);break;case 1:this.C&&(this.C.unsubscribe("l",this.uV,this),this.C=null),this.api.removeEventListener("videoready",this.b_),this.sY.stop()}this.type=null;this.J&&this.D.hide()}; g.h.wb=function(){if(this.T)for(var p=0;p<arguments.length;p++)g.t2(arguments[p],this.T)&&this.l8()}; g.h.CS=function(){this.type!=null&&this.l8();this.C&&this.C.dispose();g.L.prototype.CS.call(this)};g.m(cia,g.L);g.h=cia.prototype;g.h.XD=function(){this.visible=TpV(this);this.jb(this.visible);this.icon&&Jiv(this,this.icon);this.N.logVisibility(this.element,this.visible&&this.Y)}; g.h.qg=function(){return this.N.getVideoData().videoId}; g.h.onClick=function(){this.N.logClick(this.element);var p=this.N.K(),C=this.qg();p.sY?tNL(this):MNs(this,C)}; g.h.onReset=function(){this.isRequestPending=this.T=!1;this.Pr(2);this.XD()}; g.h.Pr=function(p,C){var V=this.N.K();Jiv(this,p);C?this.update({title:C,image:null}):V.userDisplayName?(p={USER_NAME:V.userDisplayName},this.update({title:this.T?g.Ks("Added as $USER_NAME",p):g.Ks("Watch later as $USER_NAME",p),image:Bg(V)})):this.update({title:"Watch later",image:null});this.N.B6()}; g.h.RH=function(p){g.L.prototype.RH.call(this,p);this.N.logVisibility(this.element,this.visible&&p)};g.m(g.ov,g.Hz);g.h=g.ov.prototype; g.h.init=function(){var p=this;this.WV=new g.iW(this.api);this.O5=new Md(this.api);this.ZP=new g.L({L:"div",B:"ytp-chrome-top"});this.tooltip=new g.Ao(this.api,this);this.channelAvatar=new z9e(this.api);this.title=new bh(this.api);this.o_=new g.mz({L:"div",B:"ytp-chrome-top-buttons"});this.Mn=new qmL(this.api,this.ZP.element);this.eq=this.api.K().controlsType==="1"?new CAV(this.api,this,this.YB):null;this.contextMenu=new QQQ(this.api,this.WV);this.O2=new g.L({L:"div",X:{tabindex:"0"}});this.gg=new g.L({L:"div", X:{tabindex:"0"}});var C=this.api.dV(),V=this.api.K(),N=this.api.getVideoData();this.WS&&(g.Ed(this.api.getRootNode(),"ytp-embed"),g.Ed(this.api.getRootNode(),"ytp-embed-playlist"),this.wM&&(g.Ed(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.Ed(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.wm=60,this.oh=89);this.api.K().V&&g.Ed(this.api.getRootNode(),"ytp-embed-pfl");this.api.K().C&&(g.Ed(this.api.getRootNode(),"ytp-mobile"),this.api.K().J&&g.Ed(this.api.getRootNode(),"ytp-embed-mobile")); N&&N.videoId&&(this.b0=N&&N.getEmbeddedPlayerResponse());g.R(this,this.WV);g.LT(this.api,this.WV.element,4);g.R(this,this.O5);g.LT(this.api,this.O5.element,4);N=new g.L({L:"div",B:"ytp-gradient-top"});g.R(this,N);g.LT(this.api,N.element,1);this.Bd=new g.a0(N,250,!0,100);g.R(this,this.Bd);g.R(this,this.ZP);g.LT(this.api,this.ZP.element,1);this.DH=new g.a0(this.ZP,250,!0,100);g.R(this,this.DH);g.R(this,this.tooltip);g.LT(this.api,this.tooltip.element,4);var H=new Rfu(this.api);g.R(this,H);g.LT(this.api, H.element,5);H.subscribe("show",function(E){p.PW(H,E)}); this.c9.push(H);this.rB=new OR(this.api,H);g.R(this,this.rB);!this.WS&&this.rB.u_(this.ZP.element);g.R(this,this.channelAvatar);this.channelAvatar.u_(this.ZP.element);g.R(this,this.title);this.title.u_(this.ZP.element);this.WS&&(N=new sPH(this.api),g.R(this,N),N.u_(this.ZP.element));g.R(this,this.o_);this.o_.u_(this.ZP.element);var X=new rJV(this.api,this);g.R(this,X);g.LT(this.api,X.element,5);X.subscribe("show",function(E){p.PW(X,E)}); this.c9.push(X);this.searchButton=new Ie(this.api);g.R(this,this.searchButton);this.searchButton.u_(this.o_.element);this.by=new cia(this.api);g.R(this,this.by);this.by.u_(this.o_.element);this.shareButton=new g.bW(this.api,this,X);g.R(this,this.shareButton);this.shareButton.u_(this.o_.element);this.copyLinkButton=new TI(this.api,this);g.R(this,this.copyLinkButton);this.copyLinkButton.u_(this.o_.element);this.WS&&this.rB.u_(this.o_.element);g.R(this,this.Mn);this.Mn.u_(this.o_.element);V.SE&&(N=new xX(this.api), g.R(this,N),g.LT(this.api,N.element,4));V.V||(N=new IOS(this.api,this.Mn),g.R(this,N),N.u_(this.o_.element));this.j5=new kUQ(this.api);g.R(this,this.j5);g.LT(this.api,this.j5.element,5);this.j5.subscribe("show",function(){p.PW(p.j5,p.j5.rh())}); this.c9.push(this.j5);this.overflowButton=new g.fZ(this.api,this.j5);g.R(this,this.overflowButton);this.overflowButton.u_(this.o_.element);this.eq&&g.R(this,this.eq);V.controlsType==="3"&&(N=new qd(this.api),g.R(this,N),g.LT(this.api,N.element,9));g.R(this,this.contextMenu);this.contextMenu.subscribe("show",this.CY,this);this.api.G("show_preskip_progress_bar_for_skippable_ads")||(N=new $U(this.api,new du(this.api)),g.R(this,N),g.LT(this.api,N.element,4));this.O2.listen("focus",this.Ww,this);g.R(this, this.O2);this.gg.listen("focus",this.Lu,this);g.R(this,this.gg);var d;(this.Yh=V.JX?null:new bM1(this.api,C,this.contextMenu,this.YB,this.WV,this.O5,function(){return p.A6()},(d=this.eq)==null?void 0:d.progressBar))&&g.R(this,this.Yh); this.WS||(this.Iu=new VdY(this.api),g.R(this,this.Iu),g.LT(this.api,this.Iu.element,4),this.yU=new jPu(this.api),g.R(this,this.yU),g.LT(this.api,this.yU.element,4));this.vD=new X9a(this.api);g.R(this,this.vD);g.LT(this.api,this.vD.element,4);if(this.WS){var a=new Fmy(this.api,this.api.K().R$);g.R(this,a);g.LT(this.api,a.element,5);a.subscribe("show",function(E){p.PW(a,E)}); C=new uys(this.api,a);g.R(this,C);g.LT(this.api,C.element,4)}this.sG.push(this.WV.element);this.U(this.api,"fullscreentoggled",this.V2);this.U(this.api,"offlineslatestatechange",function(){p.api.Db()&&Wx(p.YB,128,!1)}); this.U(this.api,"cardstatechange",function(){p.tF()}); this.U(this.api,"resize",this.Do_);this.U(this.api,"videoplayerreset",this.onReset);this.U(this.api,"showpromotooltip",this.AQk);g.Hz.prototype.init.call(this)}; g.h.aI=function(){return this.tooltip}; g.h.py=function(){return this.eq}; g.h.PW=function(p,C){C?this.IF=p:this.IF=null;this.tF()}; g.h.Nu=function(p,C){if(C)this.Xj.push(p);else for(C=this.Xj.length;C>=0;C--)if(this.Xj[C]===p){this.Xj.splice(C,1);break}Wx(this.YB,64,this.Xj.length>0)}; g.h.QX=function(){this.api.dR()&&this.api.iy();return!!this.IF||m0X(this)||g.Hz.prototype.QX.call(this)}; g.h.tv=CY(3);g.h.Cw=CY(7);g.h.nw=CY(10); g.h.tF=function(){var p=!this.QX(),C=p&&this.api.dR()&&!g.r(this.api.getPlayerStateObject(),2)&&!g.lx(this.api.getVideoData())&&!this.api.K().V&&!this.api.isEmbedsShortsMode(),V=this.WS&&g.nT(this.api)&&g.r(this.api.getPlayerStateObject(),128);p||V?(this.DH.show(),this.Bd.show()):(this.DH.hide(),this.Bd.hide(),this.api.wb(this.ZP.element));C?this.Mn.er():this.Mn.f4();this.eq&&jUa(this.eq,this.IM||!p);this.api.G("web_player_hide_overflow_button_if_empty_menu")&&v8v(this);g.Hz.prototype.tF.call(this)}; g.h.Lr=function(p,C,V,N,H){p.style.left="";p.style.top="";p.style.bottom="";var X=g.Ax(p),d=N||this.eq&&g.t2(this.eq.V$(),C),a=N=null;V!=null&&d||(N=g.Ax(C),a=g.I9(C,this.api.getRootNode()),V==null&&(V=a.x+N.width/2));V-=X.width/2;d?(C=this.eq,N=VNv(C),a=NpL(C),d=this.api.dV().getPlayerSize().height,V=g.J9(V,N,N+a-X.width),X=d-HCH(C)-X.height):g.t2(this.ZP.element,C)?(C=this.api.dV().getPlayerSize().width,V=g.J9(V,12,C-X.width-12),X=this.GW()?this.oh:this.wm,this.api.K().playerStyle==="gvn"&&(X+= 20),this.WS&&(X-=this.GW()?26:18)):(C=this.api.dV().getPlayerSize(),V=g.J9(V,12,C.width-X.width-12),X=a.y>(C.height-N.height)/2?a.y-X.height-12:a.y+N.height+12);p.style.top=X+(H||0)+"px";p.style.left=V+"px"}; g.h.XS=function(p){p&&(this.api.wb(this.ZP.element),this.eq&&this.api.wb(this.eq.V$()));this.wM&&(g.Tz(this.contextMenu.element,"ytp-autohide",p),g.Tz(this.contextMenu.element,"ytp-autohide-active",!0));g.Hz.prototype.XS.call(this,p)}; g.h.Io=function(){g.Hz.prototype.Io.call(this);this.wM&&(g.Tz(this.contextMenu.element,"ytp-autohide-active",!1),this.wM&&(this.contextMenu.hide(),this.j5&&this.j5.hide()))}; g.h.ai=function(p,C){var V=this.api.dV().getPlayerSize();V=new g.vf(0,0,V.width,V.height);if(p||this.YB.C&&!this.QX()){if(this.api.K().lF||C)p=this.GW()?this.oh:this.wm,V.top+=p,V.height-=p;this.eq&&(V.height-=HCH(this.eq))}return V}; g.h.V2=function(p){var C=this.api.getRootNode();p?C.parentElement?(C.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.K().externalFullscreen||(C.parentElement.insertBefore(this.O2.element,C),C.parentElement.insertBefore(this.gg.element,C.nextSibling))):g.nm(Error("Player not in DOM.")):(C.setAttribute("aria-label","YouTube Video Player"),this.O2.detach(),this.gg.detach());this.OR();this.Uc()}; g.h.GW=function(){var p=this.api.K();return this.api.isFullscreen()&&!p.J||!1}; g.h.showControls=function(p){this.Az=!p;this.tF()}; g.h.OR=function(){var p=this.GW();this.tooltip.scale=p?1.5:1;this.contextMenu&&g.Tz(this.contextMenu.element,"ytp-big-mode",p);this.tF();this.api.G("web_player_hide_overflow_button_if_empty_menu")||v8v(this);this.Uc();var C=this.api.isEmbedsShortsMode();C&&p?(p=(this.api.dV().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.K2(this.ZP.element,"padding-left",p+"px"),g.K2(this.ZP.element,"padding-right",p+"px")):C&&(g.K2(this.ZP.element,"padding-left",""),g.K2(this.ZP.element,"padding-right", ""));g.Hz.prototype.OR.call(this)}; g.h.sB=function(){if(m0X(this)&&!g.nT(this.api))return!1;var p=this.api.getVideoData();return!g.KI(this.api.K())||this.api.getPresentingPlayerType()===2||!this.b0||((p=this.b0||p.b0)?(p=p.embedPreview)?(p=p.thumbnailPreviewRenderer,p=p.videoDetails&&g.n(p.videoDetails,Voy)||null):p=null:p=null,p&&p.collapsedRenderer&&p.expandedRenderer)?g.Hz.prototype.sB.call(this):!1}; g.h.Uc=function(){g.Hz.prototype.Uc.call(this);this.api.logVisibility(this.title.element,!!this.Gi);this.rB&&this.rB.RH(!!this.Gi);this.channelAvatar.RH(!!this.Gi);this.overflowButton&&this.overflowButton.RH(this.OE()&&!!this.Gi);this.shareButton&&this.shareButton.RH(!this.OE()&&!!this.Gi);this.by&&this.by.RH(!this.OE()&&!!this.Gi);this.searchButton&&this.searchButton.RH(!this.OE()&&!!this.Gi);this.copyLinkButton&&this.copyLinkButton.RH(!this.OE()&&!!this.Gi);if(!this.Gi){this.api.wb(this.ZP.element); for(var p=0;p<this.c9.length;p++){var C=this.c9[p];C.rh()&&C.f4()}}}; g.h.aN=function(p){this.eq&&jUa(this.eq,this.QX());this.tF();g.Hz.prototype.aN.call(this,p)}; g.h.handleGlobalKeyDown=function(p,C,V,N,H,X,d,a){return this.Yh?this.Yh.handleGlobalKeyDown(p,C,V,N,H,X,d,a):!1}; g.h.handleGlobalKeyUp=function(p,C,V,N,H,X,d){return this.Yh?this.Yh.handleGlobalKeyUp(p,C,V,N,H,X,d):!1}; g.h.A6=function(){if(this.contextMenu.C4)return this.contextMenu.f4(),!0;if(this.Xj.length)return this.Xj[this.Xj.length-1].f4(),!0;if(this.IF)return this.IF.f4(),!0;this.eq&&this.api.wb(this.eq.V$());this.o_&&this.api.wb(this.o_.element);return g.Hz.prototype.A6.call(this)}; g.h.Ek=function(p,C){this.Oz=C;this.Nu(p,C);this.CY()}; g.h.CY=function(){var p=this.Oz||this.contextMenu.rh();this.G9!==p&&(this.G9=p,this.api.Jk("onAutonavPauseRequest",this.G9))}; g.h.Ww=function(){F7s(this,this.api.getRootNode(),!0).focus()}; g.h.Lu=function(){F7s(this,this.api.getRootNode(),!1).focus()}; g.h.TA=function(){return this.eq&&this.eq.C}; g.h.Pm=function(){this.YB.Pm()}; g.h.cG=function(){this.WV.hide()}; g.h.R1=function(p){this.WV.R1(!p.isOrWillBePlaying())}; g.h.AK=function(p,C,V,N){this.O5.AK(p,C,V,N)}; g.h.renderChapterSeekingAnimation=function(p,C,V){jJv(this.O5,p,C,V)}; g.h.Do_=function(){SPX(this,!0)}; g.h.onReset=function(){v8v(this)}; g.h.AQk=function(p){SPX(this,!1,p)}; g.h.Gj=function(){return this.contextMenu}; g.h.ju=function(p){var C;if((C=this.eq)!=null){for(var V=Number(p.element.getAttribute("data-priority"))||0,N=0,H=g.F(C.T.element.children),X=H.next();!(X.done||V<(Number(X.value.getAttribute("data-priority"))||0));X=H.next())N++;p.u_(C.T.element,N)}}; g.h.wc=function(){var p,C=(p=this.eq)==null?void 0:p.progressBar;if(C){var V;((V=C.C)==null?0:V.isEnabled)&&C.wc()}};g.m(g.ka,g.IT);g.ka.prototype.P_=function(){return!1}; g.ka.prototype.create=function(){var p=this.player.K();g.gk(p)&&p.C||p.disableOrganicUi?this.chrome=new g.Hz(this.player):this.chrome=new g.ov(this.player);g.R(this,this.chrome);this.chrome.init();this.player.hp("ux")}; g.ka.prototype.Cx=function(){return this.chrome};var xa=[],vhV=!1;g.m(Ya,g.Y);Ya.prototype.Y=function(){this.T!=null&&this.app.getVideoData()!==this.T&&ze(this.T)&&G3u(this.app,this.T,void 0,void 0,this.C)}; Ya.prototype.W=function(){if(this.T!=null&&this.app.getVideoData()!==this.T&&this.n4!=null&&this.V!=null&&this.S!=null&&ze(this.T)){var p=ubQ(this.n4,this.V,this.S);p==null?G3u(this.app,this.T,void 0,void 0,this.C):(this.n4.k_("sgap",p),this.n4.getVideoData().J&&yX(this.n4,!1))}}; Ya.prototype.D=function(p){var C=this.app.L1();if(C){var V=this.app.getCurrentTime();Math.abs(V-p.end/1E3)>5&&C.k_("glrs",{cmt:V});C.seekTo(0,{seekSource:58});C.k_("glrre",{cmt:V})}}; Ya.prototype.CS=function(){this.T=null;g.Y.prototype.CS.call(this)};g.m(g.z8,s3);g.h=g.z8.prototype;g.h.isView=function(){return!0}; g.h.wD=function(){var p=this.mediaElement.getCurrentTime();if(p<this.start)try{var C=this.mediaElement.yx(),V=lX(C,p);return!(this.start<V)}catch(N){}return!1}; g.h.TC=function(){return Tw(this.mediaElement.TC(),this.start,this.end)}; g.h.yx=function(){return Tw(this.mediaElement.yx(),this.start,this.end)}; g.h.cW=function(){return Tw(this.mediaElement.cW(),this.start,this.end)}; g.h.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start}; g.h.setCurrentTime=function(p){this.mediaElement.setCurrentTime(p+this.start)}; g.h.getDuration=function(){return isFinite(this.end)&&!this.T?this.end-this.start:this.mediaElement.getDuration()-this.start}; g.h.play=function(){if(this.wD()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(p){}}return this.mediaElement.play()}; g.h.X0=function(){var p=s3.prototype.X0.call(this);p.view=this.start+"-"+this.end;return p}; g.h.addEventListener=function(p,C){this.mediaElement.addEventListener(p,C)}; g.h.removeEventListener=function(p,C){this.mediaElement.removeEventListener(p,C)}; g.h.YA=function(){return this.mediaElement.YA()}; g.h.activate=function(p){this.mediaElement.activate(p)}; g.h.In=function(){return this.mediaElement.In()}; g.h.playVideo=function(){return this.mediaElement.playVideo()}; g.h.e2=function(){this.mediaElement.e2()}; g.h.W4=function(){this.mediaElement.W4()}; g.h.F6=function(){return this.mediaElement.F6()}; g.h.V$=function(){return this.mediaElement.V$()}; g.h.U8=function(){return this.mediaElement.U8()}; g.h.E1=function(p){this.mediaElement.E1(p)}; g.h.FI=function(){this.mediaElement.FI()}; g.h.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()}; g.h.setPlaybackRate=function(p){return this.mediaElement.setPlaybackRate(p)}; g.h.Cv=function(){return this.mediaElement.Cv()}; g.h.setLoop=function(p){this.mediaElement.setLoop(p)}; g.h.canPlayType=function(p,C){return this.mediaElement.canPlayType(p,C)}; g.h.isPaused=function(){return this.mediaElement.isPaused()}; g.h.isSeeking=function(){return this.mediaElement.isSeeking()}; g.h.isEnded=function(){return this.mediaElement.isEnded()}; g.h.AR=function(){return this.mediaElement.AR()}; g.h.BC=function(p){this.mediaElement.BC(p)}; g.h.D1=function(){return this.mediaElement.D1()}; g.h.load=function(){this.mediaElement.load()}; g.h.pause=function(){this.mediaElement.pause()}; g.h.wh=function(){return this.mediaElement.wh()}; g.h.xd=function(){return this.mediaElement.xd()}; g.h.LO=function(){return this.mediaElement.LO()}; g.h.FF=function(){return this.mediaElement.FF()}; g.h.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()}; g.h.gi=function(){return this.mediaElement.gi()}; g.h.fT=function(){return this.mediaElement.fT()}; g.h.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()}; g.h.rz=function(){return this.mediaElement.rz()}; g.h.getSize=function(){return this.mediaElement.getSize()}; g.h.setSize=function(p){this.mediaElement.setSize(p)}; g.h.getVolume=function(){return this.mediaElement.getVolume()}; g.h.setVolume=function(p){this.mediaElement.setVolume(p)}; g.h.setAttribute=function(p,C){this.mediaElement.setAttribute(p,C)}; g.h.removeAttribute=function(p){this.mediaElement.removeAttribute(p)}; g.h.hasAttribute=function(p){return this.mediaElement.hasAttribute(p)}; g.h.Qm=CY(44);g.h.wf=CY(46);g.h.o1=CY(48);g.h.nf=CY(50);g.h.RF=function(){return this.mediaElement.RF()}; g.h.DO=function(p){this.mediaElement.DO(p)}; g.h.I2=function(p){return this.mediaElement.I2(p)}; g.h.S4=function(){return this.mediaElement.S4()}; g.h.stopVideo=function(){this.mediaElement.stopVideo()}; g.h.Rw=function(p){this.mediaElement.Rw(p)}; g.h.audioTracks=function(){return this.mediaElement.audioTracks()}; g.h.IE=function(p){this.mediaElement.IE(p)};g.m(fwL,g.Y);g.h=fwL.prototype;g.h.getStatus=function(){return this.status}; g.h.Z_=function(){var p=this.T.getVideoData(),C=this.C.getVideoData(),V;if((V=p.V)&&!(V=!p.T)){V=p.T;for(var N=!1,H=!1,X=g.F(Object.values(V.T)),d=X.next();!d.done;d=X.next())d=d.value,d.info.audio&&d.index.isLoaded()&&(N=!0),d.info.video&&d.index.isLoaded()&&(H=!0);V.T["0"]&&(H=!0);V=N&&H}if(V)if(this.T.Nt()){X=D01(this.policy,this.T,this.C,this.Y5);d=OCX(this);V=d.Ps;H=d.yO;N=d.KE;d=d.Mj;if(!this.D){var a=this.C.I_()*1E3,E=this.T.I_();E=(N-V-E)*1E3;X&&X.msg==="in-the-past"&&(E=0);p=p.isAd();this.C.ZN(a, E,p);this.D=!0}X?(C="cannot_apply"+X.msg,delete X.msg,this.Qf(C,X)):this.status.status===2?o89(this):(p=this.T.In())&&XO(p)&&(!j6(p)&&g.Qg()?this.Qf("mse_closed"):C.T&&l5(C.T)&&p.C&&!p.C.n3()?this.Qf("encr_upgrade"):(C=this.T.Nt(),C.isEnded()?this.Qf("elem_ended"):H<0?this.Qf("next_player_future"):(this.Y=N,this.currentVideoDuration=N-V,this.V=uiL(p,V,N,!0),this.S=uiL(p,H,d,!1),p=this.C.getVideoData().clientPlaybackNonce,this.T.k_("gaplessPrep",{cpn:p}),HZe(this.T,this.V,!1,Iw9(this),this.lJ.K().G("html5_shorts_gapless_keep_pending_requests")&& id(this.T.getVideoData())),this.T.setMediaElement(yiY(C,V,N,!this.T.getVideoData().isAd())),nv(this,2),o89(this))))}else this.Qf("no-elem")}; g.h.KW=function(p){var C=p===Ai1(this).N_,V=C?this.V.T:this.V.C;C=C?this.S.T:this.S.C;if(V.isActive&&!C.isActive){var N=this.Y;EJ(p.K7(),N-.01)&&(nv(this,4),V.isActive=!1,V.VC=V.VC||V.isActive,(this.W===1?this.T:this.C).k_("sbh",{}),C.isActive=!0,C.VC=C.VC||C.isActive,this.W!==0&&(this.T.getVideoData().CG=!0));p=this.S.C;if(this.S.T.isActive&&p.isActive&&(nv(this,5),this.W!==0)){p=this.C.dc();V=this.T.dc();this.T.k_("sbs",{citag:V==null?void 0:V.itag,nitag:p==null?void 0:p.itag});var H;if((H=this.C)!= null&&id(H.videoData)&&H.videoData.G("html5_gapless_append_early")){var X;(X=H.nS)!=null&&X.f7()}}}}; g.h.zr=function(){this.GY()&&this.Qf("player-reload-after-handoff")}; g.h.Qf=function(p,C){C=C===void 0?{}:C;if(!this.fS()&&this.status.status!==6){var V=this.status.status>=4&&p!=="player-reload-after-handoff";this.status={status:Infinity,error:p};if(this.T&&this.C){var N=this.C.getVideoData().clientPlaybackNonce;this.T.oN(new qD("dai.transitionfailure",Object.assign(C,{cpn:N,transitionTimeMs:this.Y5,msg:p})));yX(this.T,V)}this.PK.reject(p);this.dispose()}}; g.h.GY=function(){return this.status.status>=4&&this.status.status<6}; g.h.CS=function(){bCs(this);this.T.unsubscribe("newelementrequired",this.zr,this);if(this.V){var p=this.V.C;this.V.T.jr.unsubscribe("updateend",this.KW,this);p.jr.unsubscribe("updateend",this.KW,this)}g.Y.prototype.CS.call(this)}; g.h.nI=function(p){g.u$(p,128)&&this.Qf("player-error-event")};g.m(x0u,g.Y);g.h=x0u.prototype;g.h.clearQueue=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;this.S&&this.S.reject("Queue cleared");this.app.K().G("html5_gapless_fallback_on_qoe_restart_v2")||C&&this.C&&yX(this.C,!1);eD(this,p)}; g.h.SS=function(){return!this.T}; g.h.tA=function(p){return this.T===p}; g.h.GY=function(){var p;return((p=this.V)==null?void 0:p.GY())||!1}; g.h.CS=function(){eD(this);g.Y.prototype.CS.call(this)};g.m(n8H,g.ca);g.h=n8H.prototype;g.h.getVisibilityState=function(p,C,V,N,H,X,d,a){return p?4:OAL()?3:C?2:V?1:N?5:H?7:X?8:d?9:a?10:0}; g.h.ze=function(p){this.fullscreen!==p&&(this.fullscreen=p,this.JE())}; g.h.setMinimized=function(p){this.C!==p&&(this.C=p,this.JE())}; g.h.setInline=function(p){this.inline!==p&&(this.inline=p,this.JE())}; g.h.wJ=function(p){this.pictureInPicture!==p&&(this.pictureInPicture=p,this.JE())}; g.h.setSqueezeback=function(p){this.V!==p&&(this.V=p,this.JE())}; g.h.gB=function(p){this.S!==p&&(this.S=p,this.JE())}; g.h.gi=function(){return this.T}; g.h.jE=function(){return this.fullscreen!==0}; g.h.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.h.OI=function(){return this.fullscreen}; g.h.isMinimized=function(){return this.C}; g.h.isInline=function(){return this.inline}; g.h.isBackground=function(){return OAL()}; g.h.l0=function(){return this.pictureInPicture}; g.h.vE=function(){return!1}; g.h.Gq=function(){return this.V}; g.h.VV=function(){return this.S}; g.h.JE=function(){this.publish("visibilitychange");var p=this.getVisibilityState(this.gi(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.l0(),this.vE(),this.Gq(),this.VV());p!==this.Y&&this.publish("visibilitystatechange");this.Y=p}; g.h.CS=function(){Ipu(this.W);g.ca.prototype.CS.call(this)};g.m(e7V,g.Y);e7V.prototype.CS=function(){g.s1(g.q$(this.T));g.Y.prototype.CS.call(this)};g.m(wR,g.Y);g.h=wR.prototype;g.h.enqueue=function(p,C){if(p.S!==this)return!1;if(this.segments.length===0||(C===void 0?0:C))this.T=p;this.segments.push(p);return!0}; g.h.r6=function(){return this.Dh||0}; g.h.Ag=function(){return this.S||0}; g.h.removeAll=function(){for(;this.segments.length;){var p=void 0;(p=this.segments.pop())==null||p.dispose()}this.C.clear();this.V=void 0}; g.h.CS=function(){this.removeAll();g.Y.prototype.CS.call(this)}; g.m(Gaa,g.Y);g.h=Gaa.prototype;g.h.r6=function(){return this.Dh}; g.h.Ag=function(){return this.V}; g.h.getType=function(){return this.type}; g.h.getVideoData=function(){return this.videoData}; g.h.mI=function(p){MI(p);this.videoData=p}; g.h.CS=function(){pK1(this);g.Y.prototype.CS.call(this)};g.m(g.W$,g.Y);g.h=g.W$.prototype;g.h.fC=function(p,C,V){return new g.sz(p,C,{id:V,namespace:"serverstitchedcuerange",priority:9})}; g.h.onCueRangeEnter=function(p){this.Ga.push(p);var C=p.getId();this.Ta.k_("sdai",{oncueEnter:1,cpn:C,start:p.start,end:p.end,ct:(this.Ta.getCurrentTime()||0).toFixed(3),cmt:(this.Ta.I_()||0).toFixed(3)});var V=C==="";this.qo.add(p.C);var N=this.V.get(C);if(V){var H;if(this.Ta.getVideoData().VL()&&((H=this.T)==null?0:H.g_)&&this.J){this.Fx=0;this.T=void 0;this.X$&&(this.events.rY(this.X$),this.X$=null);this.J="";this.Y_=!0;return}}else if(this.Ta.k_("sdai",{enterAdCueRange:1}),this.Ta.getVideoData().VL()&& (N==null?0:N.LQ))return;if(this.Y_&&!this.T)this.Y_=!1,!V&&N&&(V=this.Ta.getCurrentTime(),G8(this,{zN:p,isAd:!0,FA:!0,v6:V,adCpn:C},{isAd:!1,FA:!1,v6:V}),this.vc=N.cpn,i8a(this,N),p=B$(this,"midab",N),this.Ta.k_("sdai",p),this.Fx=1),this.sY=!1;else if(this.T){if(this.T.FA)this.Ta.k_("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.T.adCpn,transitionTime:this.T.v6,cpn:C,currentTime:this.Ta.getCurrentTime()}),N=this.Ta.getCurrentTime(),p={zN:p,isAd:!V,FA:!0,v6:N,adCpn:C},C={zN:this.T.zN,isAd:this.T.isAd, FA:!1,v6:N,adCpn:this.T.adCpn},this.T.zN&&this.qo.delete(this.T.zN.C),G8(this,p,C);else{if(this.T.zN===p){this.Ta.k_("sdai",{same_cue_range_pair_enter:1,acpn:this.T.adCpn,transitionTime:this.T.v6,cpn:C,currentTime:this.Ta.getCurrentTime(),cueRangeStartTime:p.start,cueRangeEndTime:p.end});this.T=void 0;return}if(this.T.adCpn===C){C&&this.Ta.k_("sdai",{dchtsc:C});this.T=void 0;return}p={zN:p,isAd:!V,FA:!0,v6:this.Ta.getCurrentTime(),adCpn:C};G8(this,p,this.T)}this.T=void 0;this.sY=!1}else this.T={zN:p, isAd:!V,FA:!0,v6:this.Ta.getCurrentTime(),adCpn:C}}; g.h.onCueRangeExit=function(p){var C=p.getId();this.Ta.k_("sdai",{oncueExit:1,cpn:C,start:p.start,end:p.end,ct:(this.Ta.getCurrentTime()||0).toFixed(3),cmt:(this.Ta.I_()||0).toFixed(3)});var V=C==="",N=this.V.get(C);if(this.Ta.getVideoData().VL()&&!V&&N){if(N.LQ)return;N.LQ=!0;this.Y.clear();if(this.yn.G("html5_lifa_no_rewatch_ad_sbc"))if(this.Ta.Bq()){var H=N.Dh;this.Ta.tZ(H/1E3,(H+N.durationMs)/1E3)}else this.Ta.k_("lifa",{remove:0})}if(this.qo.has(p.C))if(this.qo.delete(p.C),this.Ga=this.Ga.filter(function(X){return X!== p}),this.Y_&&(this.sY=this.Y_=!1,this.Ta.k_("sdai",{cref:1})),this.T){if(this.T.FA){if(this.T.zN===p){this.Ta.k_("sdai",{same_cue_range_pair_exit:1, acpn:this.T.adCpn,transitionTime:this.T.v6,cpn:C,currentTime:this.Ta.getCurrentTime(),cueRangeStartTime:p.start,cueRangeEndTime:p.end});this.T=void 0;return}if(this.T.adCpn===C){C&&this.Ta.k_("sdai",{dchtsc:C});this.T=void 0;return}C={zN:p,isAd:!V,FA:!1,v6:this.Ta.getCurrentTime(),adCpn:C};G8(this,this.T,C)}else this.Ta.k_("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.T.adCpn,transitionTime:this.T.v6,upcomingCpn:C,contentCpn:this.Ta.getVideoData().clientPlaybackNonce,currentTime:this.Ta.getCurrentTime()}); this.T=void 0;this.sY=!1}else this.T={zN:p,isAd:!V,FA:!1,v6:this.Ta.getCurrentTime(),adCpn:C};else this.Ta.k_("sdai",{ignore_single_exit:1})}; g.h.XZ=function(){return{cpn:this.Ta.getVideoData().clientPlaybackNonce,durationMs:0,Dh:0,playerType:1,Ai:0,videoData:this.Ta.getVideoData(),errorCount:0}}; g.h.Iz=function(){if(this.bX)return!1;var p=void 0;this.vc&&(p=this.V.get(this.vc));return this.Ta.getVideoData().VL()?!!p&&!p.LQ:!!p}; g.h.seekTo=function(p,C,V,N){p=p===void 0?0:p;C=C===void 0?{}:C;V=V===void 0?!1:V;N=N===void 0?null:N;if(this.Ta.getVideoData().VL()&&p<=this.UY/1E3)this.Ta.pauseVideo(),this.UY=0,this.sY=!0,sZ(this.Ta),this.Ta.seekTo(p),this.Ta.playVideo();else if(this.sY=!0,V)jzv(this,p,C);else{V=this.api.L1();var H=V===this.Qn?this.kM:null;p7(this,!1);this.Q$=p;this.YM=C;N!=null&&this.Hc.start(N);V&&(this.kM=H||V.getPlayerState(),aRy(V),this.Qn=V)}}; g.h.CS=function(){p7(this,!1);l2L(this);txL(this);g.Y.prototype.CS.call(this)}; g.h.L2=function(p){this.VZ=p;this.Ta.k_("sdai",{swebm:p})}; g.h.x9=function(p,C,V){if(V&&C){var N=this.Y.get(p);if(N){N.locations||(N.locations=new Map);var H=Number(C.split(";")[0]);V=new g.v1(V);this.R$&&this.Ta.k_("sdai",{hdlredir:1,itag:C,seg:p,hostport:So(V)});N.locations.set(H,V)}}}; g.h.i5=function(p,C,V,N,H,X){var d=N===3;H=TQX(this,p,C,N,V,X);if(!H)return Vw(this,C,d),H=g.cge(this,C)?"undec":"ncp",this.Ta.k_("sdai",{gvprp:H,mt:p,seg:C,tt:N,itag:V,ce:X}),null;d||this.Y.set(C,H);p=H.gb;var a;N=((a=jM(this,C-1,N))==null?void 0:a.w2)||"";N===""&&this.Ta.k_("sdai",{eds:1});a=JgS(this,H.ssdaiAdsConfig);V=this.Ta.getVideoData();var E;X=((E=V.C)==null?void 0:E.containerType)||0;E=V.Wv[X];C=H.I0&&C>=H.I0?H.I0:void 0;return{eS:{JM:p?Ssv(this,p):[],XX:a,w2:N,gs:C,VB:h9(E.split(";")[0]), Sl:E.split(";")[1]||""}}}; g.h.HG=function(p){a:{if(!this.bX){var C=Mxy(this,p);if(!(this.Ta.getVideoData().VL()&&(C==null?0:C.LQ)))break a}C=void 0}var V=C;if(!V)return this.Ta.k_("sdai",{gvprp:"ncp",mt:p}),null;C=V.gb;var N=JgS(this,V.ssdaiAdsConfig);p=V.I0&&V.lr&&p>=V.lr?V.I0:void 0;V=this.Ta.getVideoData();var H,X=((H=V.C)==null?void 0:H.containerType)||0;H=V.Wv[X];return{JM:C?Ssv(this,C):[],XX:N,gs:p,VB:h9(H.split(";")[0]),Sl:H.split(";")[1]||""}}; g.h.UI=function(p,C,V,N,H,X){var d=Number(V.split(";")[0]);H=N===3;p=TQX(this,p,C,N,V,X);this.R$&&this.Ta.k_("sdai",{gdu:1,seg:C,itag:d,pb:""+!!p});if(!p)return Vw(this,C,H),null;p.locations||(p.locations=new Map);if(!p.locations.has(d)){var a,E;X=(a=p.videoData.getPlayerResponse())==null?void 0:(E=a.streamingData)==null?void 0:E.adaptiveFormats;if(!X)return this.Ta.k_("sdai",{gdu:"noadpfmts",seg:C,itag:d}),Vw(this,C,H),null;a=X.find(function(J){return J.itag===d}); if(!a||!a.url){var l=p.videoData.videoId;p=[];N=g.F(X);for(var t=N.next();!t.done;t=N.next())p.push(t.value.itag);this.Ta.k_("sdai",{gdu:"nofmt",seg:C,vid:l,itag:d,fullitag:V,itags:p.join(",")});Vw(this,C,H);return null}p.locations.set(d,new g.v1(a.url,!0))}a=p.locations.get(d);if(!a)return this.Ta.k_("sdai",{gdu:"nourl",seg:C,itag:d}),Vw(this,C,H),null;a=new lw(a);this.VZ&&(a.get("dvc")?this.Ta.k_("sdai",{dvc:a.get("dvc")||""}):a.set("dvc","webm"));var c;(E=(c=jM(this,C-1,N))==null?void 0:c.w2)&& a.set("daistate",E);p.I0&&C>=p.I0&&a.set("skipsq",""+p.I0);(E=this.Ta.getVideoData().clientPlaybackNonce)&&a.set("cpn",E);c=[];p.gb&&(c=Ssv(this,p.gb),c.length>0&&a.set("acpns",c.join(",")));H||this.Y.set(C,p);H=null;H=a.get("aids");var T;if((((t=H)==null?void 0:(T=t.split(","))==null?void 0:T.length)||0)!==c.length)if(p.gb){var M;this.Ta.k_("sdai",{acpns_aids_nm:1,ids:Dwa(this,p.gb).join("_"),acpns:c.join("_"),aids:(M=H)==null?void 0:M.replace(/,/g,"_"),cpn:E,trackType:N})}else this.Ta.k_("sdai", {acpns_aids_nm:"noAdBreakId",cpn:E});N=a.i9();(N==null?void 0:N.length)>2048&&this.Ta.k_("sdai",{urltoolong:1,sq:C,itag:d,len:N.length});this.R$&&(N&&(T=p.cpn,t=p.gb,Z8j(this,T,t),t&&!this.FO.has(t)&&(T=KbS(this,T,t),M=uhe(this,t),this.Ta.k_("sdai",{iofa:T}),this.Ta.k_("sdai",{noawnzd:M-T}),this.Ta.k_("sdai",{acpns:c.join("."),aids:(l=H)==null?void 0:l.replace(/,/g,".")}),this.FO.add(t))),this.Ta.k_("sdai",{gdu:"v",seg:C,itag:V,ast:p.Dh.toFixed(3),alen:p.durationMs.toFixed(3),acpn:p.cpn,avid:p.videoData.videoId})); return N}; g.h.v9=function(p,C,V){var N=C7(this,p,V);return(N=N?(N.Dh+N.durationMs)/1E3:0)&&C>N?(this.Wm(p,V,!0),this.Ta.seekTo(N),!0):!1}; g.h.Wm=function(p,C,V){V=V===void 0?!1:V;var N=C7(this,p,C);if(N){var H=void 0,X=N.gb;if(X){this.Ta.k_("sdai",{skipadonsq:C,sts:V,abid:X,acpn:N.cpn,avid:N.videoData.videoId});V=this.Z.get(X);if(!V)return;V=g.F(V);for(X=V.next();!X.done;X=V.next())X=X.value,X.I0=C,X.lr=p,X.Dh>N.Dh&&(H=X)}this.J=N.cpn;mw1(this);p=this.Ta.getCurrentTime();hHy(this,N,H,p,p,!1,!0)}}; g.h.jK=function(){for(var p=g.F(this.W),C=p.next();!C.done;C=p.next())C=C.value,C.I0=NaN,C.lr=NaN;mw1(this);this.Ta.k_("sdai",{rsac:"resetSkipAd",sac:this.J});this.J=""}; g.h.Tn=CY(39); g.h.MI=function(p,C,V,N,H,X,d,a,E){N.length>0&&this.Ta.k_("sdai",{onssinfo:1,sq:p,start:C.toFixed(3),cpns:N.join(","),ds:H.join(","),isVideo:d?1:0});E&&(d?this.KS.set(p,{w2:E,Ja:a}):this.Wr.set(p,{w2:E,Ja:a}));a=$B(this.Ta.getVideoData())&&this.yn.G("html5_process_all_cuepoints");if(d||a){if(N.length&&H.length)for(this.J&&this.J===N[0]&&this.Ta.k_("sdai",{skipfail:1,sq:p,acpn:this.J}),p=C+this.SX(),d=0;d<N.length;d++)if(E=N[d],a=p,p=a+H[d],E=this.V.get(E))a-=X[d],E.fA=E.fA!=null?Math.min(E.fA,a): a;if(N.length&&H.length)for(C=(C+this.SX())*1E3,V=0;V<N.length;V++)if(p=N[V],d=H[V]*1E3,p===this.Ta.getVideoData().clientPlaybackNonce)FbV(this,C,C+d,!1),C+=d;else{this.I6.has(p)||(this.Ta.k_("sdai",{adCpnFromEmsg:1}),this.I6.add(p));a=0;V<X.length&&(a=X[V]*1E3);E=this.C.get(p);var l=!1;E?(E.start=C-a,E.end=C+d,this.Ta.ZZ.sync()):(E=this.fC(C-a,C+d,p),this.C.set(p,E),this.Ta.k_("sdai",{newAdCR:1,cpn:p,startTime:E.start,endTime:E.end}),l=!0);C=E.end;FbV(this,E.start,E.end,!0);if(l)for(this.Ta.addCueRange(E), p=this.Ta.YW("serverstitchedcuerange",36E5),p=g.F(p),d=p.next();!d.done;d=p.next())this.C.delete(d.value.getId())}else V!==5&&V!==4||FbV(this,(C+this.SX())*1E3,(C+this.SX())*1E3+5E3,!1)}}; g.h.FZ=CY(37);g.h.SX=function(){return this.Ta.SX()}; g.h.SH=function(p){this.Ta.k_("timelineerror",{e:p})}; g.h.mQ=function(p){this.Vn&&this.a$&&this.Sa.push(this.a$);p&&this.a$&&this.qW.push(this.a$);this.a$=null;this.Ta.mQ(p)}; g.h.L3=function(p){if(this.bX||p.identifier&&this.cV.has(p.identifier))this.R$&&this.Ta.k_("sdai",{startnoad:p.identifier}),rR(this);else if(Yo(this.Sa,function(V){return V.identifier===p.identifier}))this.Ta.k_("sdai",{timedoutcp:1}),this.b_.start(0); else if(Yo(this.qW,function(V){return V.identifier===p.identifier}))this.Ta.k_("sdai",{fetchedcp:1}),rR(this); else if(this.b_.isActive()){var C;this.Ta.k_("sdai",{racingcp:((C=this.a$)==null?void 0:C.identifier)+"_"+p.identifier})}else this.va=(new Date).getTime()/1E3,this.R$&&this.Ta.k_("sdai",{adf:1}),(C=5E3,p.event==="predictStart")&&(C-=p.T),this.ER=Math.max(C,15E3),this.Vn=!1,this.b_.start(this.ER),this.a$=p,this.Wr.clear(),this.KS.clear(),this.vr.clear(),this.Wc=[]}; g.h.h7=function(p,C,V){V=V||{reason:"disablessdai"};if(p&&C){if(!C7(this,p,C))return!1;V.sq=C}if(this.bX)return!1;this.bX=!0;this.Fx>0&&(this.Fx=0,this.vc="",this.api.publish("serverstitchedvideochange"));p=this.Ta;p.videoData.Vc=!0;p.oN(new qD("qoe.restart",V));sZ(p,!0);p.videoData.VL()&&p.G("html5_reload_caption_on_ssdai_fallback")&&p.lJ.lN();return!0}; g.h.Cg=function(){this.Ta.k_("sdai",{rstdaist:1});this.Wr.clear();this.KS.clear();this.vr.clear()}; g.h.TE=function(p){var C;if(p!==((C=this.a$)==null?void 0:C.identifier))this.Ta.k_("sdai",{ignorenoad:p});else{this.cV.add(p);var V;((V=this.a$)==null?void 0:V.identifier)===p&&rR(this)}}; g.h.Z5=function(){return this.Fx}; g.h.yv=function(){return this.vc}; g.h.qE=function(p){var C=Px(this.api.Tk());if(C=C?C.qE(p):!1)this.D={LU:p.identifier,O7:p.startSecs};else if(this.D&&this.D.LU===p.identifier&&p.startSecs>this.D.O7+1){this.api.k_("sdai",{cueStChg:p.identifier,oldSt:this.D.O7.toFixed(3),newSt:p.startSecs.toFixed(3),abid:this.D.gG});if(this.D.gG){var V=p.startSecs-this.D.O7,N=this.Z.get(this.D.gG);if(N){N=g.F(N);for(var H=N.next();!H.done;H=N.next())H=H.value,H.Dh>=0&&(H.Dh+=V*1E3)}}this.D.O7=p.startSecs}return C}; g.h.GG=function(p){return this.bX?!1:!!Mxy(this,p)}; g.h.K2=function(p){var C=this;this.Ta.pauseVideo();var V=this.Ta.getCurrentTime(),N=this.V.get(this.vc),H=this.C.get(this.vc);if(N){this.J=this.vc;this.sY=!1;N.LQ=!0;var X=this.Ta.getCurrentTime();this.T={zN:H,isAd:!0,FA:!1,v6:X,adCpn:this.vc,g_:N,J6V:p};this.Ta.getVideoData().VL()&&Ii(this.Ta,N,this.XZ(),X,this.Ta.getCurrentTime(),!1,!0,p,(0,g.Ip)());if(H==null?0:H.start)this.UY=X*1E3-H.start;this.Y.clear();sZ(this.Ta);this.vc=this.XZ().cpn;this.api.publish("serverstitchedvideochange");this.Ta.seekTo(V); this.Ta.playVideo();this.X$||(this.X$=this.events.U(this.api,"progresssync",function(){var d=N.fA?N.fA*1E3:N.Dh,a=C.C.get(N.cpn);a&&C.Ta.removeCueRange(a);C.C.delete(N.cpn);C.V.delete(N.cpn);a=C.W.indexOf(N);a>=0&&C.W.splice(a,1);a=[];for(var E=g.F(C.S),l=E.next();!l.done;l=E.next())l=l.value,l.end<=d?C.Ta.removeCueRange(l):a.push(l);C.S=a;vwX(C,0,d+N.durationMs)})); return!0}this.Ta.k_("sdai",{skipFail:V});return!1}; var XKH=0;g.m(ygS,g.Y);g.h=ygS.prototype; g.h.Sp=function(p,C){C=C===void 0?"":C;if(this.timeline.V===C)return!0;var V=this.timeline.T,N=V==null?void 0:V.getVideoData();if(!V||!N)return this.api.k_("ssap",{htsm:V?0:1}),!1;if(this.api.G("html5_ssap_clear_timeline_before_update")){var H=this.timeline,X;(X=H.T)==null||pK1(X);H.C.clear()}H=$a(V);var d=!1;X=[];var a=new Map;V=[];var E=[],l=0,t=0,c=0,T=[];p=g.F(p);for(var M=p.next();!M.done;M=p.next())a:{var J=void 0,S=void 0,D=M.value,Z=D.clipId;if(Z){if(D.zf){c=D.zf.e7||0;M=D.zf.HY||1;var f= Number(((D.zf.yy||0)/(D.zf.T0||1)*1E3).toFixed(0));c=M=f+Number((c/M*1E3).toFixed(0))}else M=f=c,this.B9.has(Z)||this.zS.add(Z);var q=(S=a.get(Z))!=null?S:0,A=this.timeline.V;S=!1;if(A&&this.api.G("html5_ssap_clear_timeline_before_update")){if(A=this.cz.get(Z))A.start=f,A.end=M,S=!0}else{if(A){var z=Z;A=f;var Q=M,P=q,VL=jP(this.timeline,z);if(VL!=null&&VL.length){P<VL.length&&(VL[P].Dh=A,VL[P].V=Q);if(z=this.cz.get(z))z.start=A,z.end=Q;A=!0}else A=!1}if(A){a.set(Z,q+1);d=!0;break a}}T.push(Z);!S&& D.zf&&(T=this.fC(f,M,T.join(",")),this.cz.set(Z,T),V.push(T),T=[]);if(((J=D.zf)==null?void 0:J.Nl)===N.videoId){S=J=void 0;D=Z;Z=N;D!==Z.clientPlaybackNonce&&this.api.k_("ssap",{cnm:1,cid:D,cpn:Z.clientPlaybackNonce});if(this.api.G("html5_ssap_clear_timeline_before_update"))Z.kt=f,D=gR(this.timeline,1,f,M-f,Z),X.push(D),f=Lv(this.timeline,f,M,[D]),d=d||f;else if(A=[],Z&&(Z.kt=f,A=(S=jP(this.timeline,D))!=null?S:[]),!this.timeline.V&&A.length&&q===0){d=A[0];d.Dh=f;d.V=M;Z=(J=this.timeline.T)==null? void 0:J.T;if((J=Z==null?void 0:Z.get(0))&&Z)for(S=0;S<J.length;S++)if(A=J[S],A.r6()!==A.Ag()){A.Dh=f;A.S=M;J.splice(S,1);Z.has(f)?Z.get(f).push(A):Z.set(f,[A]);break}X.push(d);a.set(D,q+1);d=!0}else D=gR(this.timeline,1,f,M-f,Z),X.push(D),f=Lv(this.timeline,f,M,[D]),d=d||f;E.length&&(E=qsa(this,l||0,t,E),d=d||E);t=l=M;E=[]}else q=void 0,J=this.kz.get(Z),S=J!=null?J:new g.YB(this.api.K(),{cpn:Z}),S.mH=!0,this.zS.has(Z)&&this.kz.set(Z,S),l=Math.min(f,l),t=Math.max(M,t),this.api.k_("ssap",{e:f,d:M- f,c:Z,p:J?1:0}),S.kt=f,M=gR(this.timeline,2,f,M-f,S,(q=D.Tl)==null?void 0:q.vu),E.push(M)}else this.api.k_("ssap",{cm:1})}E.length&&(N=qsa(this,l||0,t,E),d=d||N);H&&X.length&&(BpY(this.timeline,H,X),this.api.G("html5_ssap_clear_timeline_before_update")&&(N=X[X.length-1].Ag(),(H=this.timeline.T)!=null&&(H.V=N)));V.length&&this.Ta.Qs(V);if(d){this.timeline.V=C;N=this.Ta.xm();C=[];N=g.F(N);for(V=N.next();!V.done;V=N.next()){V=V.value;if(V.V){if(this.api.G("html5_ssap_fix_ad_completion_cue_range")&&V.start=== 0x7ffffffffffff)continue;H=zJ(this,V.V);if(H===V.SI)continue;V.start=V.start-V.SI+H;V.end=V.end-V.SI+H;V.SI=H;C.push(V)}this.api.G("html5_ssap_fix_cue_range_updates")||(V=this.Ta.ZZ,C.length<=0||V.fS()||(V=V.T,V.array.sort(V.T)))}this.api.G("html5_ssap_fix_cue_range_updates")&&(N=this.Ta.ZZ,C.length<=0||N.fS()||(C=N.T,C.array.sort(C.T)));this.api.k_("ssap",{tu:fA(this)});C=Px(this.api.Tk());this.api.k_("ssap",{am:C?1:0})}else this.api.k_("ssap",{tnu:1});return!0}; g.h.addPlayerResponseForAssociation=function(p){var C=new g.YB(this.api.K(),p.playerVars);C.playerResponseCpn?C.clientPlaybackNonce=C.playerResponseCpn:this.api.k_("ssap",{eim:this.Ta.getVideoData().clientPlaybackNonce});C.mH=!0;if(p=p.LC)C.LC=p,C.clientPlaybackNonce=p.cpn;p=C.clientPlaybackNonce;this.api.k_("ssap",{aprfa:p+"_"+C.videoId});if(p){this.kz.set(p,C);var V=jP(this.timeline,p),N=!1;if(V==null?0:V.length){V=g.F(V);for(var H=V.next();!H.done;H=V.next())H=H.value,C.kt=H.r6(),H.mI(C),H.C&& (N=!0)}else N=!C.videoId;if(!N){if(!ttS(this.Ta.Pc(C.videoId))){var X;this.api.k_("ssap",{nlc:p,nlcc:(X=this.timeline.T)==null?void 0:$a(X)})}this.Ta.Xp().ip(p,C,2)}}}; g.h.f8=function(){this.zo=!0;this.api.G("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.vc,lQ(this),5)}; g.h.wi=function(p){if(g.u$(p,128)){var C;p=(C=p.state.UE)==null?void 0:C.errorCode;this.finishSegmentByCpn(this.vc,lQ(this),7,p)}}; g.h.finishSegmentByCpn=function(p,C,V,N){if(this.vc===C)return[];this.zo&&(V=5,this.zo=!1);this.api.k_("ssap",{fsbc:p+";"+C,fsbcr:V,fsbct:this.api.getCurrentTime().toFixed(),fsbce:N!=null?N:""});if(this.api.G("html5_ssap_timeline_handle_error_and_abandon")&&(V===5||V===7))return kYL(this,p,C,V),[];this.qA=C;var H=!1;if(this.zS.has(p)&&(H=UwV(this,V),!H))return[p];var X=jP(this.timeline,C);if(X){X.sort(function(E,l){return E.r6()-l.r6()}); var d=g.F(X);for(X=d.next();!X.done;X=d.next()){X=X.value;var a=this.Ta.getCurrentTime()*1E3;if(X.r6()>=a){this.Zg.set(p,V);Agu(this,p,C);this.K5.set(p,(0,g.Ip)());if(V=this.cz.get(C))for(V=V.getId().split(","),V=g.F(V),d=V.next();!d.done;d=V.next())d=d.value,d!==C&&this.zS.has(d)&&(this.zS.delete(d),this.B9.add(d));NS(this);C=X.r6()/1E3;X=void 0;V=(X=g.mi(this.api.K().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?X:0;this.api.G("html5_ssap_keep_media_on_finish_segment")?this.Ta.seekTo(C+ V/1E3,{h6:!0}):this.Ta.seekTo(C+V/1E3);this.Jv?(this.api.k_("ssap",{gpfreload:this.vc}),O8X(this)||(this.Jv=!1),sZ(this.Ta,!1,!1,this.api.G("html5_ssap_keep_media_on_finish_segment"))):N&&sZ(this.Ta,!1,!1,this.api.G("html5_ssap_keep_media_on_finish_segment"));H&&this.api.playVideo(1,this.api.G("html5_ssap_keep_media_on_finish_segment"));return[p]}}}return[]}; g.h.rl=function(){var p=this.timeline.T;if(!p)return 0;var C=p.Ag();p=g.F(p.T.values());for(var V=p.next();!V.done;V=p.next()){V=g.F(V.value);for(var N=V.next();!N.done;N=V.next())N=N.value,N.Ag()>C&&(C=N.Ag())}return C/1E3}; g.h.Wa=function(){var p=this.Ta.getCurrentTime()*1E3;var C=YsX(this,p);if(!C){var V=jP(this.timeline,this.vc);if(V){V=g.F(V);for(var N=V.next();!N.done;N=V.next())N=N.value,N.r6()>p&&(C=N)}}return C&&C.getType()===1?C.r6()/1E3:0}; g.h.getVideoData=function(p){if(p===2&&!this.Iz()){if(this.bG&&this.kz.has(this.bG))return this.kz.get(this.bG);this.api.k_("ssap",{lpanf:""+lQ(this)});return null}return nw1(this)}; g.h.Iz=function(){var p=jP(this.timeline,this.vc);return(p==null?0:p.length)?p[0].getType()===2:!1}; g.h.iU=function(){var p=jP(this.timeline,this.vc);return(p==null?0:p.length)?p[0].C:!1}; g.h.seekTo=function(p,C){C=C===void 0?{}:C;var V=zHQ(this,this.Ta.getCurrentTime());this.Ta.seekTo(p+V/1E3,C)}; g.h.fC=function(p,C,V){return new g.sz(p,C,{id:V,namespace:"ssap",priority:9})}; g.h.onCueRangeEnter=function(p){if(!this.RR.has(p.getId())){this.api.k_("ssap",{oce:1,cpn:p.getId(),st:p.start,et:p.end,ct:(this.Ta.getCurrentTime()||0).toFixed(3),cmt:(this.Ta.I_()||0).toFixed(3)});for(var C=p.getId().split(","),V=0;V<C.length&&this.qA&&C[V]!==this.qA;){var N=C[V];this.zS.has(N)&&(this.zS.delete(N),this.B9.add(N));V++}if(C.length>V+1)for(N=V+1;N<C.length;N++)this.K8.push(C[N]);C=C[V];this.zS.has(C)&&eHe(this,C);this.B9.has(C)||owL(this,C);C=g.F(this.cz.values());for(V=C.next();!V.done;V= C.next())V=V.value,V.start<=p.start&&!this.RR.has(p.getId())&&this.RR.add(V.getId())}}; g.h.Z5=function(){return this.Fx}; g.h.yv=function(){return this.vc}; g.h.handleError=function(p,C){C=C===void 0?0:C;if(p!=="fmt.decode"&&p!=="fmt.unplayable"||!this.Iz()||this.IB===this.vc)return!1;this.IB=this.vc;if(this.api.G("html5_enable_ssap_gapful_switch"))this.Jv=!0,this.api.k_("ssap",{gpfonerr:p}),sZ(this.Ta);else{this.Ta.k_("ssap",{skiperr:p,acpn:this.vc});var V=this.Ta.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.vc,V,C===1||C===2?7:6,p)}return!0}; g.h.lEa=function(p){var C=this.kz.get(this.vc);C&&FDV(this.Ta,p-C.kt/1E3,C.lengthSeconds,this.vc)}; g.h.CS=function(){this.api.K().Gk()&&this.api.k_("ssap",{di:""+this.vc,dic:""+this.Ta.getVideoData().clientPlaybackNonce});this.kz.clear();this.zS.clear();this.RR.clear();this.Zg.clear();this.K5.clear();this.B9.clear();this.K8=[];f2L(this);this.qA="";g.Am(this.events);g.Y.prototype.CS.call(this)};g.m($wL,g.Y);g.h=$wL.prototype;g.h.onCueRangeEnter=function(p){if(this.T===this.api.L1()){var C=this.Y.get(p);C?BQS(this,C.target,C.Y5,p):this.oN("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:p.toString()})}else if(C=this.C.find(function(H){return H.Xn.zN===p})){var V=C.Xn,N=V.target; V=V.Y5;N?BQS(this,N,V,p):rga(this,C.Ai,V,p)}}; g.h.onQueuedVideoLoaded=function(){var p=this.D;aC(this);if(p){if(!hX(this,p)){var C=this.api.L1();this.oN("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:C==null?void 0:C.getVideoData().clientPlaybackNonce,ccpn:""+p.playerVars.cpn})}this.api.L1().addCueRange(p.Xn.zN)}}; g.h.seekTo=function(p,C,V,N){p=p===void 0?0:p;C=C===void 0?{}:C;N=N===void 0?null:N;if(V===void 0?0:V)wKL(this,p,C);else{V=this.api.L1();var H=V===this.S?this.W:null;Et(this,!1);this.a$=p;this.Z=C;N!=null&&this.J.start(N);V&&(this.W=H||V.getPlayerState(),aRy(V),this.S=V)}}; g.h.wi=function(p){g.u$(p,128)&&VAy(this)}; g.h.isManifestless=function(){return Ge(this.T.getVideoData())}; g.h.CS=function(){Et(this,!1);Hlu(this);g.Y.prototype.CS.call(this)}; g.h.oN=function(p,C){this.T.oN(new qD(p,C))}; var LbS=0;var Xta="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.m(cN,g.Y);g.h=cN.prototype;g.h.get=function(p){lj(this);var C=this.data.find(function(V){return V.key===p}); return C?C.value:null}; g.h.set=function(p,C,V){this.remove(p,!0);lj(this);p={key:p,value:C,expire:Infinity};V&&isFinite(V)&&(V*=1E3,p.expire=(0,g.Ip)()+V);for(this.data.push(p);this.data.length>this.V;)(V=this.data.shift())&&TR(this,V,!0);tX(this)}; g.h.remove=function(p,C){C=C===void 0?!1:C;var V=this.data.find(function(N){return N.key===p}); V&&(TR(this,V,C),g.B5(this.data,function(N){return N.key===p}),tX(this))}; g.h.removeAll=function(p){if(p=p===void 0?!1:p)for(var C=g.F(this.data),V=C.next();!V.done;V=C.next())TR(this,V.value,p);this.data=[];tX(this)}; g.h.CS=function(){var p=this;g.Y.prototype.CS.call(this);this.data.forEach(function(C){TR(p,C,!0)}); this.data=[]};g.m(MS,g.Y);MS.prototype.kd=function(p){if(p)return this.C.get(p)}; MS.prototype.CS=function(){this.T.removeAll();this.C.removeAll();g.Y.prototype.CS.call(this)};g.UmP=SS(function(){var p=window.AudioContext||window.webkitAudioContext;try{return new p}catch(C){return C.name}});g.m(EhX,g.L);g.h=EhX.prototype;g.h.DO=function(){g.lI(this.element,g.US.apply(0,arguments))}; g.h.Hz=function(){this.F0&&(this.F0.removeEventListener("focus",this.Gl),g.lK(this.F0),this.F0=null)}; g.h.iH=function(){this.fS();var p=this.app.K();p.Q1||this.DO("tag-pool-enabled");p.Y&&this.DO(g.wr.HOUSE_BRAND);p.playerStyle==="gvn"&&(this.DO("ytp-gvn"),this.element.style.backgroundColor="transparent");p.VZ&&(this.nR=g.T7("yt-dom-content-change",this.resize,this));this.U(window,"orientationchange",this.resize,this);this.U(window,"resize",this.resize,this)}; g.h.VF=function(p){g.fI(this.app.K());this.Bt=!p;JX(this)}; g.h.resize=function(){if(this.F0){var p=this.KO();if(!p.isEmpty()){var C=!g.DH(p,this.Sn.getSize()),V=MAX(this);C&&(this.Sn.width=p.width,this.Sn.height=p.height);p=this.app.K();(V||C||p.VZ)&&this.app.ea.publish("resize",this.getPlayerSize())}}}; g.h.mL=function(p,C){this.updateVideoData(C)}; g.h.updateVideoData=function(p){if(this.F0){var C=this.app.K();BW&&(this.F0.setAttribute("x-webkit-airplay","allow"),p.title?this.F0.setAttribute("title",p.title):this.F0.removeAttribute("title"));this.F0.setAttribute("controlslist","nodownload");C.oa&&p.videoId&&(this.F0.poster=p.TW("default.jpg"))}C=g.Fx(p,"yt:bgcolor");this.Ss.style.backgroundColor=C?C:"";this.Qj=EB(g.Fx(p,"yt:stretch"));this.oL=EB(g.Fx(p,"yt:crop"),!0);g.Tz(this.element,"ytp-dni",p.UV);this.resize()}; g.h.setGlobalCrop=function(p){this.Dy=EB(p,!0);this.resize()}; g.h.setCenterCrop=function(p){this.zZ=p;this.resize()}; g.h.ze=function(){}; g.h.getPlayerSize=function(){var p=this.app.K(),C=this.app.ea.isFullscreen(),V=p.externalFullscreen&&g.KI(p);if(C&&Wd()&&!V)return new g.KG(window.outerWidth,window.outerHeight);V=!isNaN(this.Ko.width)&&!isNaN(this.Ko.height);var N=this.app.K().G("kevlar_player_enable_squeezeback_fullscreen_sizing");if(C&&!V&&N)return new g.KG(this.element.clientWidth,this.element.clientHeight);if(C||p.Ox){if(window.matchMedia){p="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.T4&&this.T4.media=== p||(this.T4=window.matchMedia(p));var H=this.T4&&this.T4.matches}if(H)return new g.KG(window.innerWidth,window.innerHeight)}else if(V)return this.Ko.clone();return new g.KG(this.element.clientWidth,this.element.clientHeight)}; g.h.KO=function(){var p=this.app.K().G("enable_desktop_player_underlay"),C=this.getPlayerSize(),V=g.mi(this.app.K().experiments,"player_underlay_min_player_width");return p&&this.eK&&C.width>V?(p=g.mi(this.app.K().experiments,"player_underlay_video_width_fraction"),new g.KG(Math.min(C.height*this.getVideoAspectRatio(),C.width*p),Math.min(C.height,C.width*p/this.getVideoAspectRatio()))):C}; g.h.getVideoAspectRatio=function(){return isNaN(this.Qj)?tAu(this):this.Qj}; g.h.getVideoContentRect=function(p){var C=this.KO();p=cZy(this,C,this.getVideoAspectRatio(),p);return new g.vf((C.width-p.width)/2,(C.height-p.height)/2,p.width,p.height)}; g.h.Gz=function(p){this.eK=p;this.resize()}; g.h.WE=function(){return this.Bg}; g.h.onMutedAutoplayChange=function(){JX(this)}; g.h.setInternalSize=function(p){g.DH(this.Ko,p)||(this.Ko=p,this.resize())}; g.h.CS=function(){this.nR&&g.MM(this.nR);this.Hz();g.L.prototype.CS.call(this)};g.h=JZ1.prototype;g.h.click=function(p,C){this.elements.has(p);this.T.has(p);var V=g.bz();V&&p.visualElement&&g.Ey(V,p.visualElement,C)}; g.h.createClientVe=function(p,C,V,N){var H=this;N=N===void 0?!1:N;this.elements.has(p);this.elements.add(p);V=ZOj(V);p.visualElement=V;var X=g.bz(),d=g.IW();X&&d&&(g.Zr("combine_ve_grafts")?fz(ZF(),V,d):g.NU(g.Cq)(void 0,X,d,V));C.addOnDisposeCallback(function(){H.elements.has(p)&&H.destroyVe(p)}); N&&this.C.add(p)}; g.h.createServerVe=function(p,C,V){var N=this;V=V===void 0?!1:V;this.elements.has(p);this.elements.add(p);C.addOnDisposeCallback(function(){N.destroyVe(p)}); V&&this.C.add(p)}; g.h.destroyVe=function(p){this.elements.has(p);this.elements.delete(p);this.V.delete(p);this.T.delete(p);this.C.delete(p)}; g.h.Bl=function(p,C){this.clientPlaybackNonce!==C&&(this.clientPlaybackNonce=C,Ui(ZF(),p),mCs(this))}; g.h.setTrackingParams=function(p,C){this.elements.has(p);C&&(p.visualElement=g.ym(C))}; g.h.jb=function(p,C,V){this.elements.has(p);C?this.T.add(p):this.T.delete(p);var N=g.bz(),H=p.visualElement;this.C.has(p)?N&&H&&(C?g.sy(N,[H]):g.aS(N,[H])):C&&!this.V.has(p)&&(N&&H&&g.hO(N,H,void 0,V),this.V.add(p))}; g.h.hasVe=function(p){return this.elements.has(p)};g.m(g.vN,g.Y);g.vN.create=function(p,C,V,N){try{var H=typeof p==="string"?p:"player"+g.$H(p),X=uk[H];if(X){try{X.dispose()}catch(a){g.nm(a)}uk[H]=null}var d=new g.vN(p,C,V,N);d.addOnDisposeCallback(function(){uk[H]=null;d.XK&&d.XK()}); return uk[H]=d}catch(a){throw g.nm(a),(a&&a instanceof Error?a:Error(String(a))).stack;}}; g.h=g.vN.prototype;g.h.Uu=function(){return this.visibility}; g.h.xN=function(){this.xC||(this.xC=g.KU(rb(),sws()));return this.xC}; g.h.Hz=function(p){if(this.mediaElement){this.Eo&&(this.events.rY(this.Eo),this.Eo=null);g.Am(this.Ql);this.n4&&this.n4.Hz(!0,!1,p);this.template.Hz();try{this.G("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.FI()}catch(C){g.eG(C)}this.mediaElement=null}}; g.h.L1=function(){return this.n4}; g.h.Kr=function(){var p=this;this.n4!==this.Mo&&(this.logger.debug(function(){var C,V;return"release presenting player, type "+((C=p.n4)==null?void 0:C.getPlayerType())+", vid "+((V=p.n4)==null?void 0:V.getVideoData().videoId)}),P$(this,this.Mo))}; g.h.WW=function(p,C,V){var N=this,H=this.mM;p===2&&(H=new MM1(this.yn));p=new g.JH(this.yn,p,H,this.template,function(X,d,a){N.ea.publish(X,d,a)},function(){return N.ea.getVisibilityState()},this.visibility,this,C,V); esL(C.getPlayerResponse())&&this.G("html5_ssap_pacf_qoe_ctmp")&&p.k_("ssap",{rpa:1});return p}; g.h.v_e=function(){if(!f7(this)){this.logger.debug("application playback ready");if(this.G("html5_enable_ssap_autoplay_debug_logging")){var p;(p=this.Mo)==null||p.k_("ssap",{onpbrdy:1})}this.Lt(5)}}; g.h.Gko=function(p){if(!f7(this)){this.logger.debug("playback ready");dJa(this);var C=p.getPlayerState();p.Bo()?this.pauseVideo():C.isOrWillBePlaying()&&this.playVideo()}}; g.h.canPlayType=function(p){return or(p)}; g.h.K=function(){return this.yn}; g.h.getVideoData=function(){var p=DN(this);Yf(this,"gvd");return p.getVideoData()}; g.h.ST=CY(17);g.h.DE=function(){return this.Mo.getVideoData()}; g.h.getVideoLoadedFraction=function(p){p=g.O5(this,p);return p?g.s5(p.getVideoData())?1:(p=p.Nt())?p.qD():0:0}; g.h.dV=function(){return this.template}; g.h.Tk=function(){return this.C7}; g.h.W6=function(){return this.mM}; g.h.K6=function(p){var C=g.O5(this,1);C&&sD(C,p)}; g.h.St=function(){var p=this.C7.St();this.ea.publish("videoStatsPingCreated",p);return p}; g.h.getVolume=function(){return Math.round(this.ea.getVolume())}; g.h.isMuted=function(){return this.ea.isMuted()}; g.h.t7=function(){if(this.n4===this.Mo&&this.Sb)return this.Sb.postId}; g.h.GN$=function(){var p=this;this.G("use_rta_for_player")||(g.bH(this.yn)?g.pk(this.yn,g.XE(this.getVideoData())).then(function(C){Bk(rb(),C);IyS(p.getVideoData(),p.yn,p.xN())}):IyS(this.getVideoData(),this.yn,this.xN()))}; g.h.Cn=function(p){this.ea.publish("poTokenVideoBindingChange",p)}; g.h.kA=function(p){this.ea.publish("d6de4videobindingchange",p)}; g.h.v5=function(){this.kY&&this.kY.v5()}; g.h.vN=function(p){this.kY=p}; g.h.Fk=function(p){p===1&&(this.mM.tick("vr"),mdS(this.n4),JXy(this.mM,this.n4.getVideoData(),Xru(this)),Nvj(this.C7));var C=this.yn;(rG(C)&&C.D||g.yj(C))&&(this.tE()||this.ea.v1("onAdStateChange",p))}; g.h.setLoopVideo=function(p){this.n4===this.Mo&&this.n4.Cv()!==p&&(this.n4.setLoop(p),this.ea.Jk("onLoopChange",p))}; g.h.getLoopVideo=function(){return this.n4.Cv()}; g.h.setLoopRange=function(p){var C=!1;!!this.Sb!==!!p?C=!0:this.Sb&&p&&(C=this.Sb.startTimeMs!==p.startTimeMs||this.Sb.endTimeMs!==p.endTimeMs||this.Sb.postId!==p.postId||this.Sb.type!==p.type);if(C){if(this.n4&&id(this.getVideoData())){C=(p==null?void 0:p.endTimeMs)||-1;var V;(V=g.O5(this))==null||V.k_("slr",{et:C})}this.Mo.ZZ.qt("applooprange");if(p)V=new g.sz(p.startTimeMs,p.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.Mo.addCueRange(V);else{this.DE().clipConfig=void 0;var N,H;((N= this.Sb)==null?void 0:N.type)!=="repeatChapter"||isNaN(Number((H=this.Sb)==null?void 0:H.loopCount))||(V={loopCount:String(this.Sb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.t1("repeatChapterLoopEvent",V))}this.Sb=p;this.ea.Jk("onLoopRangeChange",p||void 0);this.n4===this.Mo&&(this.A3(),this.n4.kQ())}}; g.h.getLoopRange=function(){return this.Sb}; g.h.A3=function(){var p="";this.Sb?this.n4!==this.Mo?p="pnea":$CQ(this,this.Mo.getCurrentTime())&&(this.Sb.loopCount=0,p="ilr"):p="nlr";if(this.n4&&id(this.getVideoData()))if(this.G("html5_gapless_log_loop_range_info")){var C,V,N;(N=g.O5(this))==null||N.k_("slrre",{rej:p,ct:this.Mo.getCurrentTime(),lst:(C=this.Sb)==null?void 0:C.startTimeMs,let:(V=this.Sb)==null?void 0:V.endTimeMs})}else{var H;(H=g.O5(this))==null||H.k_("slrre",{})}p||Qya(this)}; g.h.setPlaybackRate=function(p,C){isNaN(p)||(p=uZV(this,p),this.Mo.getPlaybackRate()!==p&&(this.Mo.setPlaybackRate(p),C&&!this.yn.S&&g.Yl("yt-player-playback-rate",p),this.ea.v1("onPlaybackRateChange",p)))}; g.h.getCurrentTime=function(p,C,V){C=C===void 0?!0:C;if(this.getPresentingPlayerType()===3)return R$(this.C7).getCurrentTime();var N=p===2&&this.getVideoData().enableServerStitchedDai,H=g.pf(this.getVideoData());Yf(this,"gct");p=N||H?g.O5(this):g.O5(this,p);if(!p)return 0;if(H&&this.Ze)return C=this.Ze,p=p.getCurrentTime(),V?V=HN(C,V):(V=zHQ(C,p),V=p-V/1E3),V;if(C){if(N&&this.PV&&(V=this.PV.UY/1E3,V!==0))return V;V=Ut(this,p.HP);return kf(this,V.getCurrentTime(),V)}N&&this.PV?(V=this.PV,p=p.getCurrentTime(), V=(V=a2H(V,p*1E3))?p-V.start/1E3:p):V=p.getCurrentTime();return V}; g.h.k6=function(){var p=uj(this);if(!p)return 0;p=Ut(this,p);return kf(this,p.k6(),p)}; g.h.getDuration=function(p,C){C=C===void 0?!0:C;var V=this.getVideoData(),N=p===2&&V.enableServerStitchedDai,H=g.pf(V);var X=N||H?g.O5(this):g.O5(this,p);if(!X)return 0;if(V.hasProgressBarBoundaries()&&!N&&!H){var d,a=Number((d=V.progressBarStartPosition)==null?void 0:d.utcTimeMillis),E;V=Number((E=V.progressBarEndPosition)==null?void 0:E.utcTimeMillis);if(!isNaN(a)&&!isNaN(V))return(V-a)/1E3}Yf(this,"agd");if(H&&this.Ze)return C=RHQ(this.Ze,this.Ze.yv()),p===1&&C===0?X.getDuration():C;if(C)return X= ZN(this,X.HP),kf(this,X.getDuration(),X);N&&this.PV?(p=this.PV,X=X.getCurrentTime(),X=(X=EwV(p,X*1E3))?X.durationMs/1E3:0):X=X.getDuration();return X}; g.h.Xt=function(p){var C=uj(this,p);return C?this.tE(C)?(C=ZN(this,C),C.Xt()-C.getCurrentTime()+this.getCurrentTime(p)):C.Xt():0}; g.h.iI=function(){return this.W_}; g.h.addPlayerResponseForAssociation=function(p){this.Ze&&this.Ze.addPlayerResponseForAssociation(p)}; g.h.finishSegmentByCpn=function(p,C,V){Yf(this,"afsc");return this.Ze?this.Ze.finishSegmentByCpn(p,C,V):[]}; g.h.iH=function(){this.template.iH();var p=this.ea;p.state.element=this.template.element;var C=p.state.element,V;for(V in p.state.T)p.state.T.hasOwnProperty(V)&&(C[V]=p.state.T[V]);(p=PfH(this.template.element))&&this.events.U(this.template,p,this.onFullscreenChange);this.events.U(window,"resize",this.FMY)}; g.h.getDebugText=function(p){var C=this.Mo.X0(p);if(this.n4&&this.n4!==this.Mo){for(var V=this.n4.X0(p),N=g.F(Object.keys(V)),H=N.next();!H.done;H=N.next())H=H.value,C["ad"+H]=V[H];if(p){V=C;N={};if(H=BG(document,"movie_player"))N.bounds=H.getBoundingClientRect(),N["class"]=H.className;H={};var X=g.ju("video-ads");X?(lPu(X,H),H.html=X.outerHTML):H.missing=1;X={};var d=g.ju("videoAdUiSkipContainer"),a=g.ju("ytp-ad-skip-button-container"),E=g.ju("ytp-skip-ad-button"),l=d||a||E;l?(lPu(l,X),X.ima=d?1: 0,X.bulleit=a?1:0,X.component=E?1:0):X.missing=1;N=JSON.stringify({player:N,videoAds:H,skipButton:X});V.ad_skipBtnDbgInfo=N}}p&&this.mediaElement&&(C["0sz"]=""+(+uc(this.mediaElement.getSize())===0),C.op=this.mediaElement.I2("opacity"),V=this.mediaElement.rz().y+this.mediaElement.getSize().height,C.yof=""+(+V<=0),C.dis=this.mediaElement.I2("display"));p&&((p=(0,g.bF)())&&(C.gpu=p),(p=this.yn.playerStyle)&&(C.ps=p),this.yn.R$&&(C.webview=1));C.debug_playbackQuality=this.ea.getPlaybackQuality(1);C.debug_date= (new Date).toString();C.origin=window.origin;C.timestamp=Date.now();delete C.uga;delete C.q;return JSON.stringify(C,null,2)}; g.h.getFeedbackProductData=function(){var p={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.K().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20241215_00_RC00"},C=this.getPlayerStateObject().UE;C&&(p.player_error_code=C.errorCode,p.player_error_details=JSON.stringify(C.errorDetail));return p}; g.h.getPresentingPlayerType=function(p){Yf(this,"gppt");if(this.appState===1)return 1;if(f7(this))return 3;var C;if(p&&((C=this.PV)==null?0:C.Iz(this.getCurrentTime())))return 2;var V;return g.pf(this.getVideoData())&&((V=this.Ze)==null?0:V.Iz())?2:g.O5(this).getPlayerType()}; g.h.iU=function(){Yf(this,"invp");return g.pf(this.getVideoData())&&this.Ze?this.Ze.iU():!1}; g.h.getPlayerStateObject=function(p){return this.getPresentingPlayerType()===3?R$(this.C7).g7:g.O5(this,p).getPlayerState()}; g.h.getAppState=function(){return this.appState}; g.h.VG=function(p){switch(p.type){case "loadedmetadata":this.Tx.start();p=g.F(this.HC);for(var C=p.next();!C.done;C=p.next())C=C.value,NDy(this,C.id,C.LSe,C.WS$,void 0,!1);this.HC=[];break;case "loadstart":this.mM.Hm("gv");break;case "progress":case "timeupdate":tj(p.target.yx())>=2&&this.mM.Hm("l2s");break;case "playing":g.gG&&this.Tx.start();if(g.bH(this.yn))p=!1;else{C=g.Pk(this.Tk());p=this.mediaElement.I2("display")==="none"||uc(this.mediaElement.getSize())===0;var V=mP(this.template),N=this.n4.getVideoData(), H=g.gk(this.yn);N=hl(N);C=!V||C||H||N||this.yn.Wc;p=p&&!C}p&&(this.n4.k_("hidden",{},!0),this.getVideoData().wy||(this.getVideoData().wy=1,this.iV(),this.n4.playVideo()))}}; g.h.onLoadProgress=function(p,C){this.ea.Ba("onLoadProgress",C)}; g.h.W6S=function(){this.ea.publish("playbackstalledatstart")}; g.h.b1a=function(p,C){this.ea.publish("sabrCaptionsDataLoaded",p,C)}; g.h.onVideoProgress=function(p,C){p=Ut(this,p.HP);C=kf(this,p.getCurrentTime(),p);this.ea.v1("onVideoProgress",C)}; g.h.onAutoplayBlocked=function(){this.ea.v1("onAutoplayBlocked");var p,C=(p=g.O5(this))==null?void 0:p.getVideoData();C&&(C.lG=!0)}; g.h.tbr=function(){this.ea.publish("progresssync")}; g.h.Nye=function(){this.ea.Ba("onPlaybackPauseAtStart")}; g.h.iSk=function(p){if(this.getPresentingPlayerType()===1){g.u$(p,1)&&!g.r(p.state,64)&&this.DE().isLivePlayback&&this.Mo.isAtLiveHead()&&this.ea.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.u$(p,2)){if(this.Sb&&this.Sb.endTimeMs>=(this.getDuration()-1)*1E3){Qya(this);return}k31(this)}if(g.r(p.state,128)){var C=p.state;this.cancelPlayback(5);C=C.UE;JSON.stringify({errorData:C,debugInfo:this.getDebugText(!0)});this.ea.v1("onError",w1y(C.errorCode));this.ea.Ba("onDetailedError",{errorCode:C.errorCode, errorDetail:C.errorDetail,message:C.errorMessage,messageKey:C.Ye,cpn:C.cpn});(0,g.Ip)()-this.yn.d6>6048E5&&this.ea.Ba("onReloadRequired")}C={};if(p.state.isPlaying()&&!p.state.isBuffering()&&!dc("pbresume","ad_to_video")&&dc("_start","ad_to_video")){var V=this.getVideoData();C.clientPlaybackNonce=V.clientPlaybackNonce;V.videoId&&(C.videoId=V.videoId);g.HH(C,"ad_to_video");NR("pbresume",void 0,"ad_to_video");Nvj(this.C7)}this.ea.publish("applicationplayerstatechange",p)}}; g.h.O3=function(p){this.getPresentingPlayerType()!==3&&this.ea.publish("presentingplayerstatechange",p)}; g.h.wi=function(p){K7(this,KV(p.state));g.r(p.state,1024)&&this.ea.isMutedByMutedAutoplay()&&(AX(this,{muted:!1,volume:this.zU.volume},!1),oC(this,!1))}; g.h.sU=function(p,C,V){p==="newdata"&&ZlQ(this);this.ea.publish("applicationvideodatachange",p,V)}; g.h.jB=function(p,C){this.ea.Ba("onPlaybackAudioChange",this.ea.getAudioTrack().K4.name);this.ea.publish("internalaudioformatchange",this.ea.getAudioTrack().K4.id,C)}; g.h.yX=function(p){var C=this.n4.getVideoData();p===C&&this.ea.v1("onPlaybackQualityChange",p.C.video.quality)}; g.h.y4=function(){var p=this.Lq.T[2]||null;if(p){var C=p.getVideoData();p=p.MU;var V;(V=g.O5(this))==null||V.k_("ssdai",{cleanaply:1,acpn:C==null?void 0:C.clientPlaybackNonce,avid:C.videoId,ccpn:p,sccpn:this.DE().clientPlaybackNonce===p?1:0,isDai:this.DE().enableServerStitchedDai?1:0});delete this.Lq.T[2]}}; g.h.onVideoDataChange=function(p,C,V){this.logger.debug(function(){return"on video data change "+p+", player type "+C.getPlayerType()+", vid "+V.videoId}); this.yn.Gk()&&C.k_("vdc",{type:p,vid:V.videoId||"",cpn:V.clientPlaybackNonce||""});C===this.Mo&&(this.yn.Nw=V.oauthToken);if(C===this.Mo){this.getVideoData().enableServerStitchedDai&&!this.PV?this.PV=new g.W$(this.ea,this.yn,this.Mo):!this.getVideoData().enableServerStitchedDai&&this.PV&&(this.PV.dispose(),this.PV=null);if(this.yn.Gk()&&g.pf(V)){var N,H;C.k_("ssap",{vdctype:p,vid:V.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((N=this.W_.T)==null?void 0:(H=N.getVideoData())== null?void 0:H.clientPlaybackNonce)||""})}var X,d;!g.pf(this.getVideoData())||p!=="newdata"&&p!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((X=this.W_.T)==null?void 0:(d=X.getVideoData())==null?void 0:d.clientPlaybackNonce)?!g.pf(this.getVideoData())&&this.Ze&&(this.yn.Gk()&&C.k_("ssap",{tlmdis:2,vid:V.videoId||"",cpn:V.clientPlaybackNonce||""}),this.Ze.dispose(),this.Ze=null):(riV(this.W_),this.G("html5_ssap_cleanup_ad_player_on_new_data")&&this.y4(),N=gR(this.W_,1,0,this.getDuration(1)* 1E3,this.getVideoData()),this.W_.enqueue(N,!0),Lv(this.W_,0,this.getDuration(1)*1E3,[N]),BpY(this.W_,this.getVideoData().clientPlaybackNonce,[N]),this.Ze&&(this.Ze.dispose(),this.Ze=null,this.yn.Gk()&&C.k_("ssap",{tlmdis:1})),this.yn.Gk()&&C.k_("ssap",{tlmcreate:1}),this.Ze=new ygS(this.ea,this.W_,this.Mo),this.Mo.hK(this.Ze))}if(p==="newdata")this.logger.debug("new video data, destroy modules"),ev(this.C7,2),this.ea.publish("videoplayerreset",C);else{if(!this.mediaElement)return;p==="dataloaded"&& (this.n4===this.Mo?(og(V.I$,V.PL),nha(this)):zm1(this));C.getPlayerType()===1&&(this.yn.Y_&&Esv(this),this.getVideoData().isLivePlayback&&!this.yn.JF&&this.Qf("html5.unsupportedlive",2,"DEVICE_FALLBACK"),V.isLoaded()&&((C51(V)||this.getVideoData().yR)&&this.ea.publish("legacyadtrackingpingchange",this.getVideoData()),V.hasProgressBarBoundaries()&&Bi1(this)));this.ea.publish("videodatachange",p,V,C.getPlayerType())}this.ea.v1("onVideoDataChange",{type:p,playertype:C.getPlayerType()});this.A3();(N= V.uK)?this.fV.Bl(N,V.clientPlaybackNonce):mCs(this.fV)}; g.h.X3=function(){yw(this,null);this.ea.Ba("onPlaylistUpdate")}; g.h.Byk=function(p){delete this.Ol[p.getId()];this.Mo.removeCueRange(p);a:{p=this.getVideoData();var C,V,N,H,X,d,a,E,l,t,c=((C=p.Ga)==null?void 0:(V=C.contents)==null?void 0:(N=V.singleColumnWatchNextResults)==null?void 0:(H=N.autoplay)==null?void 0:(X=H.autoplay)==null?void 0:X.sets)||((d=p.Ga)==null?void 0:(a=d.contents)==null?void 0:(E=a.twoColumnWatchNextResults)==null?void 0:(l=E.autoplay)==null?void 0:(t=l.autoplay)==null?void 0:t.sets);if(c)for(C=g.F(c),V=C.next();!V.done;V=C.next())if(V=V.value, H=N=void 0,V=V.autoplayVideo||((N=V.autoplayVideoRenderer)==null?void 0:(H=N.autoplayEndpointRenderer)==null?void 0:H.endpoint),N=g.n(V,g.VB),X=H=void 0,V!=null&&((H=N)==null?void 0:H.videoId)===p.videoId&&((X=N)==null?0:X.continuePlayback)){p=V;break a}p=null}(C=g.n(p,g.VB))&&this.ea.Jk("onPlayVideo",{sessionData:{autonav:"1",itct:p==null?void 0:p.clickTrackingParams},videoId:C.videoId,watchEndpoint:C})}; g.h.Lt=function(p){var C=this;p!==this.appState&&(this.logger.debug(function(){return"app state change "+C.appState+" -> "+p}),p===2&&this.getPresentingPlayerType()===1&&(K7(this,-1),K7(this,5)),this.appState=p,this.ea.publish("appstatechange",p))}; g.h.Qf=function(p,C,V,N,H){this.Mo.a_(p,C,V,N,H)}; g.h.A2=function(p,C){this.Mo.handleError(new qD(p,C))}; g.h.isAtLiveHead=function(p,C){C=C===void 0?!1:C;var V=uj(this,p);if(!V)return!1;p=ZN(this,V);V=Ut(this,V);return p!==V?p.isAtLiveHead(kf(this,V.getCurrentTime(),V),!0):p.isAtLiveHead(void 0,C)}; g.h.uX=function(){var p=uj(this);return p?ZN(this,p).uX():0}; g.h.seekTo=function(p,C,V,N,H){C=C!==!1;if(N=g.O5(this,N))this.appState===2&&IC(this),Yf(this,"seekTo"),this.tE(N.HP)?xf(this)?this.PV.seekTo(p,{seekSource:H},C,V):this.GB.seekTo(p,{seekSource:H},C,V):g.pf(this.getVideoData())&&this.Ze?this.Ze.seekTo(p,{yC:!C,IJ:V,NZ:"application",seekSource:H}):N.seekTo(p,{yC:!C,IJ:V,NZ:"application",seekSource:H})}; g.h.seekBy=function(p,C,V,N){this.seekTo(this.getCurrentTime()+p,C,V,N)}; g.h.M$=function(){this.ea.v1("SEEK_COMPLETE")}; g.h.Ci=function(){this.ea.Jk("onAbnormalityDetected")}; g.h.onSnackbarMessage=function(p){this.ea.Jk("onSnackbarMessage",p)}; g.h.sNr=function(p,C){var V=p.getVideoData();if(this.appState===1||this.appState===2)V.startSeconds=C;this.appState===2?g.r(p.getPlayerState(),512)||IC(this):this.ea.v1("SEEK_TO",C)}; g.h.onAirPlayActiveChange=function(){this.ea.publish("airplayactivechange");this.yn.G("html5_external_airplay_events")&&this.ea.Ba("onAirPlayActiveChange",this.ea.gi())}; g.h.onAirPlayAvailabilityChange=function(){this.ea.publish("airplayavailabilitychange");this.yn.G("html5_external_airplay_events")&&this.ea.Ba("onAirPlayAvailabilityChange",this.ea.Po())}; g.h.showAirplayPicker=function(){var p;(p=this.n4)==null||p.fT()}; g.h.rd=function(){this.ea.publish("beginseeking")}; g.h.vy=function(){this.ea.publish("endseeking")}; g.h.getStoryboardFormat=function(p){return(p=uj(this,p))?ZN(this,p).getVideoData().getStoryboardFormat():null}; g.h.C$=function(p){return(p=uj(this,p))?ZN(this,p).getVideoData().C$():null}; g.h.tE=function(p){p=p||DN(this);var C=!1;if(p){p=p.getVideoData();if(xf(this))p=p===this.PV.Ta.getVideoData();else a:if(C=this.GB,p===C.T.getVideoData()&&C.C.length)p=!0;else{C=g.F(C.C);for(var V=C.next();!V.done;V=C.next())if(p.OZ===V.value.OZ){p=!0;break a}p=!1}C=p}return C}; g.h.JY=function(p,C,V,N,H,X,d){this.logger.debug(function(){return"Adding video to timeline id="+p.video_id+"\n lengthMs="+N+" enterTimeMs="+H}); var a="",E=xf(this),l;(l=g.O5(this))==null||l.k_("appattl",{sstm:this.PV?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:E});a=E?dwY(this.PV,p,C,V,N,H,X,d):Qzj(this.GB,p,V,N,H,X);this.logger.debug(function(){return"Video added to timeline id="+p.video_id+" timelinePlaybackId="+a}); return a}; g.h.hA=function(p,C,V,N,H,X,d){if(xf(this)){var a=dwY(this.PV,p,C,V,N,H,X,d);this.logger.debug(function(){return"Remaining video added to timeline id="+p.video_id+" timelinePlaybackId="+a})}return""}; g.h.TE=function(p){var C;(C=this.PV)==null||C.TE(p)}; g.h.Th=function(p,C){p=p===void 0?-1:p;C=C===void 0?Infinity:C;xf(this)||Hlu(this.GB,p,C)}; g.h.al=function(p,C,V){if(xf(this)){var N=this.PV,H=N.wy.get(p);H?(V===void 0&&(V=H.Ai),H.durationMs=C,H.Ai=V):N.SH("Invalid_timelinePlaybackId_"+p+"_specified")}else{N=this.GB;H=null;for(var X=g.F(N.C),d=X.next();!d.done;d=X.next())if(d=d.value,d.OZ===p){H=d;break}H?(V===void 0&&(V=H.Ai),Niy(N,H,C,V)):dJ(N,"InvalidTimelinePlaybackId timelinePlaybackId="+p)}}; g.h.enqueueVideoByPlayerVars=function(p,C,V,N){V=V===void 0?Infinity:V;N=N===void 0?"":N;this.tE();p=new g.YB(this.yn,p);N&&(p.OZ=N);G3u(this,p,C,V)}; g.h.queueNextVideo=function(p,C,V,N,H){V=V===void 0?NaN:V;p=this.preloadVideoByPlayerVars(p,C===void 0?1:C,V,N===void 0?"":N,H===void 0?"":H);C=this.L1();p&&C&&(this.G("html5_check_queue_on_data_loaded")?this.K().supportsGaplessShorts()&&C.getVideoData().J&&(V=this.TX,N=this.tX.D,V.V!==p&&(V.n4=C,V.V=p,V.C=1,V.T=p.getVideoData(),V.S=N,V.T.isLoaded()?V.W():V.T.subscribe("dataloaded",V.W,V))):(V=ubQ(C,p,this.tX.D),V!=null?(C.k_("sgap",V),C.getVideoData().J&&yX(C,!1)):(p=p.getVideoData(),C=this.TX,C.T!== p&&(C.T=p,C.C=1,p.isLoaded()?C.Y():C.T.subscribe("dataloaded",C.Y,C)))))}; g.h.KC=function(p,C,V,N){var H=this;V=V===void 0?0:V;N=N===void 0?0:N;var X=g.O5(this);X&&ZN(this,X.HP).Si();YPX(this.tX,p,C,V,N).then(function(){H.ea.Ba("onQueuedVideoLoaded")},function(){})}; g.h.SS=function(){return this.tX.SS()}; g.h.tA=function(p){return this.tX.tA(p)}; g.h.clearQueue=function(p,C){p=p===void 0?!1:p;C=C===void 0?!1:C;this.logger.debug("Clearing queue");this.tX.clearQueue(p,C)}; g.h.loadVideoByPlayerVars=function(p,C,V,N,H,X){C=C===void 0?1:C;if(C===2&&this.DE().enableServerStitchedDai&&this.Mo&&!X9(this.Mo)){var d;(d=this.Mo)==null||d.k_("lvonss",{vid:(p==null?void 0:p.videoId)||"",ptype:C});return!1}var a=!1;d=new g.YB(this.yn,p);d.reloadPlaybackParams=X;g.LI(this.yn)&&!d.X4&&fn(this.mM);var E;X=this.mM;var l=(E=d.Y_)!=null?E:"";X.timerName=l;this.mM.Cd("pl_i");this.G("web_player_early_cpn")&&d.clientPlaybackNonce&&this.mM.infoGel({clientPlaybackNonce:d.clientPlaybackNonce}); if(!fya(d).supportsVp9Encoding){var t;(t=g.O5(this))==null||t.k_("noVp9",{})}if(this.K().supportsGaplessShorts()){E=R7a(this.tX,d,C);if(E==null){K7(this,-1);p=this.tX;p.app.K().G("html5_gapless_new_slr")?ghv(p.app,"gaplessshortslooprange"):p.app.setLoopRange(null);p.app.getVideoData().Bv=!0;var c,T;(c=p.T)==null||(T=c.nS)==null||T.resume();var M;(M=p.T)==null||$b(M.Pc());V={NZ:"gapless_to_next_video",seekSource:60};var J;(J=p.app.L1())==null||J.seekTo(z7a(p),V);if(!p.app.getPlayerStateObject(C).isPlaying()){var S; (S=g.O5(p.app))==null||S.playVideo(!0)}p.Y();return!0}J=this.G("html5_shorts_gapless_preload_fallback");S=this.tX.T;J&&S&&!S.fS()&&(c=S.getVideoData(),c=this.yn.G("html5_autonav_autoplay_in_preload_key")?RC(this,C,c):n7(this,C,c.videoId,c.OZ),this.Lq.C.set(c,S,3600));this.tX.clearQueue(J);var D;(D=g.O5(this))==null||D.k_("sgap",{f:E})}if(H){for(;d.mm.length&&d.mm[0].isExpired();)d.mm.shift();a=d.mm.length-1;a=a>0&&H.C(d.mm[a])&&H.C(d.mm[a-1]);d.mm.push(H)}V||(p&&FPv(p)?(nI(this.yn)&&!this.Cq&&(p.fetch= 0),yw(this,p)):this.playlist&&yw(this,null),p&&(this.Cq=iO(!1,p.external_list)));this.ea.publish("loadvideo");C=this.Kv(d,C,N);a&&this.Qf("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+d.mm.join()).replace(/[;:,]/g,"_"));return C}; g.h.preloadVideoByPlayerVars=function(p,C,V,N,H){C=C===void 0?1:C;V=V===void 0?NaN:V;N=N===void 0?"":N;H=H===void 0?"":H;var X="";if(this.yn.G("html5_autonav_autoplay_in_preload_key"))X=CD1(this,C,p,H);else{var d=lO(p);X=n7(this,C,d,H)}if(this.Lq.C.get(X))return this.logger.debug(function(){return"already preloaded "+X}),null; p=new g.YB(this.yn,p);H&&(p.OZ=H);return pra(this,p,C,V,N)}; g.h.setMinimized=function(p){this.visibility.setMinimized(p);(p=dEH(this.C7))&&(this.isMinimized()?p.load():p.unload());this.ea.publish("minimized")}; g.h.setInline=function(p){this.visibility.setInline(p)}; g.h.setInlinePreview=function(p){this.visibility.setInline(p);p=this.C7;p=p.N.K().showInlinePreviewUi?p.Ji.get("inline_preview"):void 0;p&&(this.isInline()?p.load():p.unload(),this.ea.Jk("onInlinePreviewModeChange"))}; g.h.wJ=function(p){var C=this.yn.G("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",V=this.yn.lf&&this.yn.G("html5_block_pip_with_events")||C;p&&V&&this.getVideoData()&&!this.getVideoData().backgroundable?this.ow&&C?this.ow.start():this.E0():this.visibility.wJ(p)}; g.h.setSqueezeback=function(p){this.visibility.setSqueezeback(p)}; g.h.E0=function(){var p,C=(p=this.mediaElement)==null?void 0:p.V$();C&&D3(C).catch(function(V){return g.eG(V)})}; g.h.CJk=function(){this.mediaElement.V$();this.mediaElement.V$().webkitPresentationMode==="picture-in-picture"?this.wJ(!0):this.wJ(!1)}; g.h.togglePictureInPicture=function(){var p=g.O5(this);p&&p.togglePictureInPicture()}; g.h.Kv=function(p,C,V){C=C===void 0?1:C;this.logger.debug(function(){return"start load video, id "+p.videoId+", type "+C}); dc("_start",this.mM.timerName)||g.NU(r3)(void 0,this.mM.timerName);var N=!1,H=wtV(this,C,p,!1);H?(N=!0,p.dispose()):(H=Yx1(this,C,p,V),(this.G("html5_onesie")||this.G("html5_load_before_stop"))&&m5(H)&&g.vO(H),this.Tx.stop(),C===1&&C!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,C),P$(this,H));H===this.Mo&&(this.yn.Nw=p.oauthToken);if(!m5(H))return!1;if(H===this.Mo){this.Lt(1);V=IC(this);if(N&&this.G("html5_player_preload_ad_fix")&&H.getPlayerType()===1&&H.Ec.finished)this.onVideoDataChange("dataloaded", H,H.getVideoData());return V}gWY(H);return!0}; g.h.cueVideoByPlayerVars=function(p,C){var V=this;C=C===void 0?1:C;if(this.DE().enableServerStitchedDai&&this.Mo&&!X9(this.Mo)&&p&&Object.keys(p).length>0){var N;(N=this.Mo)==null||N.k_("qvonss",{vid:(p==null?void 0:p.videoId)||"",ptype:C})}else if(p&&FPv(p))if(this.eL=!0,yw(this,p),(p=g.OC(this.playlist))&&p.GN())PN(this,p,C);else this.playlist.onReady(function(){qS(V)}); else{C||(C=this.getPresentingPlayerType());C===1&&this.X3();N=new g.YB(this.yn,p);var H=g.KI(this.yn)&&!this.yn.b_&&C===1&&!N.isAd()&&!N.Q$;this.ea.publish("cuevideo");H?(this.L1().getVideoData().loading=!0,fNH(N,p?p:{}).then(function(X){PN(V,X,C)}),N.dispose()):PN(this,N,C)}}; g.h.Ce=function(p,C,V,N,H,X,d){if(!p&&!V)throw Error("Playback source is invalid");if(uL(this.yn)||g.qz(this.yn))return C=C||{},C.lact=bV(),C.vis=this.ea.getVisibilityState(),this.ea.Jk("onPlayVideo",{videoId:p,watchEndpoint:X,sessionData:C,listId:V}),!1;mSs(this.mM);this.mM.reset();p={video_id:p};N&&(p.autoplay="1");N&&(p.autonav="1");X&&(p.player_params=X.playerParams);d&&(p.oauth_token=d);V?(p.list=V,this.loadPlaylist(p)):this.loadVideoByPlayerVars(p,1);return!0}; g.h.cuePlaylist=function(p,C,V,N){this.eL=!0;jRv(this,p,C,V,N)}; g.h.loadPlaylist=function(p,C,V,N){this.eL=!1;jRv(this,p,C,V,N)}; g.h.oF=function(){return this.ea.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.bT())}; g.h.ZO=CY(13); g.h.nextVideo=function(p,C){var V=g.NI(this.Mo.getVideoData());g.gb(this.ea)&&V?this.Ce(V.videoId,C?V.e9:V.sessionData,V.playlistId,C,void 0,V.aK||void 0):this.Cq?this.ea.Ba("onPlaylistNext"):this.getPresentingPlayerType()===3?R$(this.C7).nextVideo():!this.playlist||nI(this.yn)&&!this.ea.isFullscreen()||(this.playlist.bT(p)&&DSs(this.playlist,StX(this.playlist)),this.playlist.loaded?(p=C&&this.yn.G("html5_player_autonav_logging"),C&&this.ea.publish("playlistautonextvideo"),this.Kv(g.OC(this.playlist,void 0, C,p),1)):this.eL=!1)}; g.h.previousVideo=function(p){this.Cq?this.ea.Ba("onPlaylistPrevious"):this.getPresentingPlayerType()===3?R$(this.C7).Ul():!this.playlist||nI(this.yn)&&!this.ea.isFullscreen()||(this.playlist.gj(p)&&DSs(this.playlist,KPS(this.playlist)),this.playlist.loaded?this.Kv(g.OC(this.playlist),1):this.eL=!1)}; g.h.playVideoAt=function(p){this.Cq?this.ea.Ba("onPlaylistIndex",p):this.playlist&&(this.playlist.loaded?this.Kv(g.OC(this.playlist,p),1):this.eL=!1,DSs(this.playlist,p))}; g.h.getPlaylist=function(){return this.playlist}; g.h.bP=CY(21);g.h.E_a=function(p){this.ea.v1("onCueRangeEnter",p.getId())}; g.h.u$V=function(p){this.ea.v1("onCueRangeExit",p.getId())}; g.h.lN=function(){var p=g.RT(this.Tk());p&&p.lN()}; g.h.Qs=function(p,C,V){var N=g.O5(this,C);if(N){var H=this.DE();if(g.pf(H)){Yf(this,"acrl");if(this.Ze)if(this.G("html5_ssap_enable_cpn_triggered_media_end")&&N.getPlayerType()===2&&this.Ze.Iz()&&(this.Mo.k_("ssap",{acrla:p.length?p[0].getId():"",acrll:p.length,pt:N.getPlayerType(),acpn:N.getVideoData().clientPlaybackNonce,ccpn:this.Mo.getVideoData().clientPlaybackNonce}),N=this.Mo),C===1)for(var X=zJ(this.Ze,H.clientPlaybackNonce),d=g.F(p),a=d.next();!a.done;a=d.next())a=a.value,a.start+=X,a.end+= X,a.SI=X,a.V=H.clientPlaybackNonce;else if(this.G("html5_ssap_enable_cpn_triggered_media_end")&&C===2)for(this.getPresentingPlayerType(),H=g.F(p),X=H.next();!X.done;X=H.next())X.value.V=this.Ze.yv();H=g.F(p);for(X=H.next();!X.done;X=H.next())d=void 0,X.value.playerType=(d=C)!=null?d:1}N.Qs(p,V);C&&this.getPresentingPlayerType()!==C||SM(this,"cuerangesadded",p)}else this.G("html5_ssap_enable_cpn_triggered_media_end")&&this.Mo.k_("ssap",{acrlpnf:this.Mo.getVideoData().clientPlaybackNonce})}; g.h.bK=function(p,C){var V=g.O5(this,C);V&&(V.bK(p),C&&this.getPresentingPlayerType()!==C||SM(this,"cuerangesremoved",p))}; g.h.bz=function(p){var C=this.L1()||this.Mo,V=C.ZZ;if(V){var N=this.getPresentingPlayerType();if(this.yn.Gk()){var H=V.Ht("ad");C.k_("ssap",{hac:H?"1":"0",cpn:p,pt:N})}return this.G("html5_ssap_enable_cpn_triggered_media_end")?V.bz(N,p):V.bz(N)}return 0}; g.h.znS=function(){function p(){var N=C.screenLayer||(C.isMinimized()?3:0),H=g.bz(N);if(H&&H!=="UNDEFINED_CSN"){var X=C.yn.G("web_player_attach_player_response_ve"),d=C.yn.G("web_playback_associated_ve");N={cpn:C.getVideoData().clientPlaybackNonce,csn:H};C.getVideoData().Sa&&(X||d)&&(X=g.ym(C.getVideoData().Sa),g.hO(H,X),d&&(N.playbackVe=X.getAsJson()));C.getVideoData().queueInfo&&(N.queueInfo=C.getVideoData().queueInfo);H={};C.G("web_playback_associated_log_ctt")&&C.getVideoData().Y&&(H.cttAuthInfo= {token:C.getVideoData().Y,videoId:C.getVideoData().videoId});g.t1("playbackAssociated",N,H)}else g.eG(new g.Bw("CSN Missing or undefined during playback association"))} var C=this;this.getPresentingPlayerType();JXy(this.mM,this.n4.getVideoData(),Xru(this));Ot(this)&&this.yn.S&&B_(this.DE())==="embedded"&&this.PY&&Math.random()<.01&&g.t1("autoplayTriggered",{intentional:this.intentionalPlayback});this.PY=!1;Nvj(this.C7);this.G("web_player_defer_ad")&&RmL(this);this.ea.Ba("onPlaybackStartExternal");(this.yn.G("mweb_client_log_screen_associated"),kS(this.yn))||p();var V={};this.getVideoData().Y&&(V.cttAuthInfo={token:this.getVideoData().Y,videoId:this.getVideoData().videoId}); V.sampleRate=20;XA("player_att",V);if(this.getVideoData().botguardData||this.G("fetch_att_independently"))g.wG(this.yn)||Lb(this.yn)==="MWEB"?g.Vl(g.HW(),function(){bj(C)}):bj(this); this.A3();WFy(this)}; g.h.f8=function(){this.ea.publish("internalAbandon");zR(this)}; g.h.onApiChange=function(){this.yn.D&&this.n4?this.ea.v1("onApiChange",this.n4.getPlayerType()):this.ea.v1("onApiChange")}; g.h.Ihx=function(){var p=this.mediaElement;p={volume:g.J9(Math.floor(p.getVolume()*100),0,100),muted:p.AR()};p.muted||oC(this,!1);this.zU=g.zh(p);this.ea.v1("onVolumeChange",p)}; g.h.mutedAutoplay=function(p){var C=this.getVideoData().videoId;isNaN(this.tH)&&(this.tH=this.getVideoData().startSeconds);if(!this.G("embeds_enable_full_length_inline_muted_autoplay"))C&&(this.loadVideoByPlayerVars({video_id:C,playmuted:!0,start:this.tH}),this.ea.Ba("onMutedAutoplayStarts"));else if((p==null?0:p.videoId)||C)this.loadVideoByPlayerVars({video_id:(p==null?0:p.videoId)?p==null?void 0:p.videoId:C,playmuted:!0,start:this.tH,muted_autoplay_duration_mode:p==null?void 0:p.durationMode}), this.ea.Ba("onMutedAutoplayStarts")}; g.h.onFullscreenChange=function(){var p=iL9(this);this.ze(p?1:0);sRa(this,!!p)}; g.h.ze=function(p){var C=!!p,V=!!this.OI()!==C;this.visibility.ze(p);this.template.ze(C);this.G("html5_media_fullscreen")&&!C&&this.mediaElement&&iL9(this)===this.mediaElement.V$()&&this.mediaElement.RF();this.template.resize();V&&this.mM.tick("fsc");V&&(this.ea.publish("fullscreentoggled",C),p=this.DE(),C={fullscreen:C,videoId:p.Kj||p.videoId,time:this.getCurrentTime()},this.ea.getPlaylistId()&&(C.listId=this.ea.getPlaylistId()),this.ea.v1("onFullscreenChange",C))}; g.h.jE=function(){return this.visibility.jE()}; g.h.isFullscreen=function(){return this.visibility.isFullscreen()}; g.h.OI=function(){return this.visibility.OI()}; g.h.FMY=function(){this.n4&&(this.OI()!==0&&this.OI()!==1||this.ze(iL9(this)?1:0),this.yn.lf&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.RF())}; g.h.kkY=function(p){this.getPresentingPlayerType()!==3&&this.ea.publish("liveviewshift",p)}; g.h.playVideo=function(p,C){this.logger.debug(function(){return"play video, player type "+p}); var V=g.O5(this,p);V&&(this.appState===2?(g.LI(this.yn)&&fn(this.mM),IC(this)):g.r(V.getPlayerState(),2)?(C=36,this.getVideoData().rR()&&(C=37),this.seekTo(0,void 0,void 0,void 0,C)):V.playVideo(!1,C))}; g.h.pauseVideo=function(p,C){(p=g.O5(this,p))&&p.pauseVideo(C)}; g.h.stopVideo=function(p){p=p===void 0?!1:p;this.logger.debug(function(){return"stop video"}); var C=this.Mo.getVideoData(),V=new g.YB(this.yn,{video_id:C.Kj||C.videoId,oauth_token:C.oauthToken});V.Z=g.zh(C.Z);var N;!p||(N=this.webPlayerContextConfig)!=null&&N.disableStaleness||(V.Wt=!0);this.cancelPlayback(6);PN(this,V,1)}; g.h.cancelPlayback=function(p,C){var V=this;this.logger.debug(function(){return"start cancel playback, type "+C}); var N=g.O5(this,C);N?C===2&&N.getPlayerType()===1&&(MoX(this.DE())||g.pf(this.getVideoData()))?N.k_("canclpb",{r:"no_adpb_ssdai"}):(this.yn.Gk()&&N.k_("canclpb",{r:p}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+V.appState}):(N===this.n4&&(this.logger.debug("cancel playback, destroy modules"),ev(this.C7,p)),C===1&&(N.stopVideo(),zR(this)),N.Q6(void 0,p!==6),SM(this,"cuerangesremoved",N.xm()),N.ZZ.reset(),this.tX&&N.isGapless()&& (N.Hz(!0),N.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.h.sendVideoStatsEngageEvent=function(p,C,V){(C=g.O5(this,C))&&N6S(this.yn,p)?C.sendVideoStatsEngageEvent(p,V):V&&V()}; g.h.Ix=function(p){var C=g.O5(this);return C&&N6S(this.yn,p)?C.Ix(p):null}; g.h.updatePlaylist=function(){!nI(this.yn)&&g.KI(this.yn)&&emy(this);this.ea.Ba("onPlaylistUpdate")}; g.h.setSizeStyle=function(p,C){this.Cc=p;this.G("web_log_theater_mode_visibility")?this.gB(C):this.NJ=C;this.ea.publish("sizestylechange",p,C);this.template.resize()}; g.h.gB=function(p){this.visibility.gB(p)}; g.h.VV=function(){return this.G("web_log_theater_mode_visibility")?this.visibility.VV():this.NJ}; g.h.isMinimized=function(){return this.visibility.isMinimized()}; g.h.isInline=function(){return this.visibility.isInline()}; g.h.l0=function(){return this.visibility.l0()}; g.h.vE=function(){return this.visibility.vE()}; g.h.Gq=function(){return this.visibility.Gq()}; g.h.WF=function(){return this.Cc}; g.h.getAdState=function(){if(this.getPresentingPlayerType()===3)return R$(this.C7).getAdState();Yf(this,"gas");if(!this.tE()){var p=Px(this.Tk());if(p)return p.getAdState()}return-1}; g.h.Xcn=function(p){var C=this.template.getVideoContentRect();Fj(this.uE,C)||(this.uE=C,this.n4&&uY(this.n4),this.Mo&&this.Mo!==this.n4&&uY(this.Mo),this.OI()===1&&this.Be&&sRa(this,!0));this.RL&&g.DH(this.RL,p)||(this.ea.publish("appresize",p),this.RL=p)}; g.h.CO=function(){return this.ea.CO()}; g.h.mZa=function(){this.getPresentingPlayerType()===2&&this.GB.isManifestless()?VAy(this.GB):(this.PV&&(l2L(this.PV),zR(this)),ohV(this,"signature"))}; g.h.wc$=function(p){p&&ohV(this,"reloadPlayerEvent",void 0,p)}; g.h.iV=function(p){this.Hz(p);FR(this)}; g.h.mWn=function(p){if(p.errorCode==="manifest.net.badstatus"){var C=this.yn.experiments.OY("html5_use_network_error_code_enums")?401:"401";p.details.rc===C&&this.ea.Jk("onPlayerRequestAuthFailed")}}; g.h.i7=function(p){this.ea.publish("heartbeatparams",p)}; g.h.MV=function(p){this.ea.Jk("onAutonavChangeRequest",p!==1)}; g.h.Nt=function(){return this.mediaElement}; g.h.setBlackout=function(p){this.yn.Wc!==p&&(this.yn.Wc=p,this.n4&&(this.n4.kQ(),this.yn.Y_&&Esv(this),this.n4.J9(p)))}; g.h.z6Y=function(){var p=g.O5(this);if(p){var C=!this.ea.Db();(p.u2=C)||p.OC.stop();p.videoData.T&&(C?p.videoData.T.resume():QlS(p.videoData.T));if(p.nS){var V=p.videoData.G("html5_disable_preload_for_ssdai_with_preroll")&&X9(p)&&p.videoData.isDaiEnabled();C&&!V?p.nS.resume():f$(p,!0)}g.r(p.playerState,2)||C?g.r(p.playerState,512)&&C&&p.aN(mE(p.playerState,512)):p.aN(JK(p.playerState,512));p=p.Pc();p.qoe&&(p=p.qoe,g.OZ(p,g.Zn(p.provider),"stream",[C?"A":"I"]))}}; g.h.onLoadedMetadata=function(){this.ea.Ba("onLoadedMetadata")}; g.h.onDrmOutputRestricted=function(){this.ea.Ba("onDrmOutputRestricted")}; g.h.tS=function(){this.intentionalPlayback=!0}; g.h.CS=function(){this.C7.dispose();this.uA.dispose();this.GB.dispose();this.PV&&this.PV.dispose();this.W_.removeAll();this.W_.dispose();this.Ze&&this.Ze.dispose();this.Mo.dispose();this.Hz();this.Lq.dispose();g.s1(this.playlist);g.Y.prototype.CS.call(this)}; g.h.G=function(p){return this.yn.G(p)}; g.h.setScreenLayer=function(p){this.screenLayer=p}; g.h.getInternalApi=function(){return this.ea.getInternalApi()}; g.h.createSubtitlesModuleIfNeeded=function(){return this.C7.createSubtitlesModuleIfNeeded()}; g.h.isOrchestrationLeader=function(){var p=$W(this.C7);return p?p.isOrchestrationLeader():!1}; g.h.getVideoUrl=function(p,C,V,N,H){if(this.Sb&&this.Sb.postId)return p=this.yn.getVideoUrl(p),p=jE(p,"v"),p.replace("/watch","/clip/"+this.Sb.postId);var X=this.ea.isEmbedsShortsMode()||this.yn.Wr==="shortspage",d=g.t_(this.getVideoData());return this.yn.getVideoUrl(p,C,V,N,H,X,d)}; g.h.GY=function(){return this.tX.GY()}; g.h.ZG=function(p,C,V){this.ea.publish("spsumpreject",p,C,V)}; g.h.Is=function(){try{for(var p=g.F(g.q$(this.Lq.T)),C=p.next();!C.done;C=p.next()){var V=C.value;V.fS()||V.Is()}if(this.G("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var N=g.F(ilQ(this.Lq.C)),H=N.next();!H.done;H=N.next()){var X=H.value;X.fS()||X.Is()}this.Mo.Is()}catch(d){g.eG(d)}}; g.h.K2=function(){if(this.PV){var p=(0,g.Ip)();return this.PV.K2(p)}return!1}; var uk={};var fmP={YE:[{Rn:/Unable to load player module/,weight:20},{Rn:/Failed to fetch/,weight:500},{Rn:/XHR API fetch failed/,weight:10},{Rn:/JSON parsing failed after XHR fetch/,weight:10},{Rn:/Retrying OnePlatform request/,weight:10},{Rn:/CSN Missing or undefined during playback association/,weight:100},{Rn:/Non-recoverable error. Do not retry./,weight:0},{Rn:/Internal Error. Retry with an exponential backoff./,weight:0},{Rn:/API disabled by application./,weight:0}],y8:[{callback:cu9,weight:500}]};var fPX=/[&\?]action_proxy=1/,UJs=/[&\?]token=([\w-]*)/,OLY=/[&\?]video_id=([\w-]*)/,yuQ=/[&\?]index=([\d-]*)/,qqv=/[&\?]m_pos_ms=([\d-]*)/,bLy=/[&\?]vvt=([\w-]*)/,mJV="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),IPH="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),SqX={android:"ANDROID", "android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},KUu={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},u4V={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};L7.prototype.RC=function(p){this.player.W6().tick(p)}; L7.prototype.fetch=function(p,C){var V=this;if(!p.match(/\[BISCOTTI_ID\]/g))return this.C(p,C);var N=this.T===1;N&&this.RC("a_bid_s");var H=MWS();if(H!==null)return N&&this.RC("a_bid_f"),this.C(p,C,H);H=Ju9();N&&yU(H,function(){V.RC("a_bid_f")}); return H.then(function(X){return V.C(p,C,X)})}; L7.prototype.C=function(p,C,V){var N=this,H=C===void 0?{}:C;C=H.U5;var X=H.zN;var d=H.cueProcessedMs;V=V===void 0?"":V;var a=this.player.getVideoData(1);H=this.player.K().Gp;var E=0;if(d&&X&&!C){var l=X.end-X.start;l>0&&(E=Math.floor(l/1E3))}E=C?C.uc:E;var t={AD_BLOCK:this.T++,AD_BREAK_LENGTH:E,AUTONAV_STATE:$f(this.player.K()),CA_TYPE:"image",CPN:a.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.uX()*1E3,LACT:bV(),LIVE_INDEX:C?this.V++:1,LIVE_TARGETING_CONTEXT:C&&C.context?C.context:"",MIDROLL_POS:X? Math.round(X.start/1E3):0,MIDROLL_POS_MS:X?Math.round(X.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.dV().KO().height,P_W:this.player.dV().KO().width,YT_REMOTE:H?H.join(","):""},c=MU(TQ);Object.keys(c).forEach(function(M){c[M]!=null&&(t[M.toUpperCase()]=c[M].toString())}); V!==""&&(t.BISCOTTI_ID=V);V={};cd(p)&&(V.sts="20073",(C=this.player.K().forcedExperiments)&&(V.forced_experiments=C));var T=Ek(g.nX(p,t),V);return T.split("?").length!==2?fJ(Error("Invalid AdBreakInfo URL")):g.pk(this.player.K(),a==null?void 0:a.oauthToken).then(function(M){if(M&&tw()){var J=rb();Bk(J,M)}M=N.player.xN(J);J=Auy(N,T,t,a.isMdxPlayback,d);return g.E0(M,J,"/youtubei/v1/player/ad_break").then(function(S){return S})})}; L7.prototype.reset=function(){this.V=this.T=1};g.m(osQ,L7); osQ.prototype.C=function(p,C,V){C=C===void 0?{}:C;var N=C.U5;var H=C.zN;var X=C.cueProcessedMs;V=V===void 0?"":V;C=this.T;this.T++;var d=this.player.K().G("h5_disable_macro_substitution_in_get_ad_break")?p:kss(this,p,{U5:N,zN:H,cueProcessedMs:X},V,C);if(d.split("?").length!==2)return Math.random()<.1&&g.eG(Error("Invalid AdBreakInfo URL")),fJ(Error("Invalid AdBreakInfo URL"));var a=this.player.getVideoData(1).isMdxPlayback,E=V;V=UJs.exec(d);V=V!=null&&V.length>=2?V[1]:"";p=fPX.test(d);var l=OLY.exec(d); l=l!=null&&l.length>=2?l[1]:"";var t=yuQ.exec(d);t=t!=null&&t.length>=2&&!Number.isNaN(Number(t[1]))?Number(t[1]):1;var c=qqv.exec(d);c=c!=null&&c.length>=2?c[1]:"0";var T=AR(this.player.K().Vn),M=g.Za(this.player.getVideoData(1).Sa,!0);FUL(this,M,d,E===""?"":E,this.player.K(),this.player.getVideoData(1));E={splay:!1,lactMilliseconds:String(bV()),playerHeightPixels:Math.trunc(this.player.dV().KO().height),playerWidthPixels:Math.trunc(this.player.dV().KO().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20073,autonavState:$f(this.player.K())};if(a){a={};var J=this.player.K().Gp;DJS(a,J?J.join(","):"")&&(E.mdxContext=a)}if(a=IPH.includes(T)?void 0:g.ee("PREF")){J=a.split(RegExp("[:&]"));for(var S=0,D=J.length;S<D;S++){var Z=J[S].split("=");if((Z[0].toUpperCase()==="SML"||Z[0].toUpperCase()==="GSML")&&Z.length>1&&Z[1].toUpperCase()==="TRUE"){M.user.lockedSafetyMode=!0;break}}E.autoCaptionsDefaultOn=ZL1(a)}d=bLy.exec(d);(d=d!=null&&d.length>=2?d[1]:"")&&l&&(M.user.credentialTransferTokens= [{token:d,scope:"VIDEO"}]);d={contentPlaybackContext:E};E=this.player.getVideoData(1).getGetAdBreakContext();a=this.player.getVideoData(1).clientPlaybackNonce;J=X!==void 0?Math.round(X).toString():void 0;S=(N==null?0:N.context)?N.context:void 0;D=0;X&&H&&!N&&(H=H.end-H.start,H>0&&(D=Math.floor(H/1E3)));N=(N=Math.trunc((N?N.uc:D)*1E3))?String(N):void 0;H=this.player.uX()*1E3;H=Number.isNaN(H)?0:Math.trunc(H);C={adBlock:C,params:V,breakIndex:t,breakPositionMs:c,clientPlaybackNonce:a,topLevelDomain:T, isProxyAdTagRequest:p,context:M,overridePlaybackContext:d,cueProcessedMs:J,videoId:l?l:void 0,liveTargetingParams:S,breakLengthMs:N,driftFromHeadMs:H?String(H):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:E?E:void 0};return xJV(this,C)};var Oy5={LY_:"replaceUrlMacros",wB_:"onAboutThisAdPopupClosed",Oxa:"executeCommand"};YqL.prototype.sK=function(){return"adPingingEndpoint"}; YqL.prototype.uO=function(p,C,V){Mcu(this.No.get(),p,C,V)};z$y.prototype.sK=function(){return"changeEngagementPanelVisibilityAction"}; z$y.prototype.uO=function(p){this.N.Jk("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:p})};R$u.prototype.sK=function(){return"loggingUrls"}; R$u.prototype.uO=function(p,C,V){p=g.F(p);for(var N=p.next();!N.done;N=p.next())N=N.value,Mcu(this.No.get(),N.baseUrl,C,V,N.attributionSrcMode)};g.m(e$9,g.Y);g.m(WN,g.Y);g.h=WN.prototype;g.h.addListener=function(p){this.listeners.push(p)}; g.h.removeListener=function(p){this.listeners=this.listeners.filter(function(C){return C!==p})}; g.h.zp=function(p,C,V,N,H,X,d,a){if(p==="")S2("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(p!==this.T||V){this.T=p;this.mx.get().zp(p,C,V,N,H,X,d,a);this.pS.get().zp(p,C,V,N,H,X,d,a);var E;(E=this.BV)==null||E.get().zp(p,C,V,N,H,X,d,a);this.C.zp(p,C,V,N,H,X,d,a);E=g.F(this.listeners);for(var l=E.next();!l.done;l=E.next())l.value.zp(p,C,V,N,H,X,d,a)}else S2("Duplicate content video loaded signal")}; g.h.f8=function(){this.T&&this.zA(this.T)}; g.h.zA=function(p){this.T=void 0;for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.zA(p)};Qw.prototype.MF=function(p,C,V,N,H){PDs(this);this.W=!C&&V===0;var X=this.N.getVideoData(1),d=this.N.getVideoData(2);X&&(this.contentCpn=X.clientPlaybackNonce,this.videoId=X.videoId,this.T=X.Y);d&&(this.adCpn=d.clientPlaybackNonce,this.adVideoId=d.videoId,this.adFormat=d.adFormat);this.S=p;N<=0?(PDs(this),this.W=!C&&V===0):(this.actionType=this.W?C?"unknown_type":"video_to_ad":C?"ad_to_video":"ad_to_ad",this.videoStreamType=H?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.V=!0,dc("_start",this.actionType)&&LU1(this)))}; Qw.prototype.reset=function(){return new Qw(this.N)};g.m(rJ,g.Y);rJ.prototype.addCueRange=function(p,C,V,N,H,X,d){X=X===void 0?3:X;d=d===void 0?1:d;this.T.has(p)?S2("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:p}):(p=new gsy(p,C,V,N,X),this.T.set(p.id,{zN:p,listener:H,TR:d}),this.N.d7([p],d))}; rJ.prototype.removeCueRange=function(p){var C=this.T.get(p);C?(this.N.p$([C.zN],C.TR),this.T.delete(C.zN.id)):S2("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:p})}; rJ.prototype.onCueRangeEnter=function(p){if(this.T.has(p.id))this.T.get(p.id).listener.onCueRangeEnter(p.id)}; rJ.prototype.onCueRangeExit=function(p){if(this.T.has(p.id))this.T.get(p.id).listener.onCueRangeExit(p.id)}; g.m(gsy,g.sz);BN.prototype.Fk=function(p){this.N.Fk(p)}; BN.prototype.FU=function(p){var C=g.US.apply(1,arguments);p==="onAdStart"||p==="onAdEnd"?this.N.v1.apply(this.N,[p].concat(g.K(C))):this.N.Jk.apply(this.N,[p].concat(g.K(C)))};GR.prototype.sV=function(p){return p&&pD(this)};var jme=null;g.m(CEX,g.ca);CEX.prototype.AL=function(p){return this.T.hasOwnProperty(p)?this.T[p].AL():{}}; g.YH("ytads.bulleit.getVideoMetadata",function(p){return CD().AL(p)}); g.YH("ytads.bulleit.triggerExternalActivityEvent",function(p,C,V){var N=CD();V=pAY(V);V!==null&&N.publish(V,{queryId:p,viewabilityString:C})});g.h=jC.prototype;g.h.pO=function(p,C){if(!this.T.has(p))return{};if(C==="seek"){C=this.N.K().G("html5_dai_enable_active_view_creating_completed_adblock");C=C===void 0?!1:C;var V=xc(xI).zV(p,{});V?qZ(V):C&&(p=xc(xI).k7(null,jh(),!1,p),p.m8=3,r$9([p]));return{}}C=NaV(C);if(C===null)return{};var N=this.N.aj();if(!N)return{};var H=this.N.getPresentingPlayerType(!0);if((V=this.N.getVideoData(H))==null||!V.isAd())return{};V={opt_adElement:N,opt_fullscreen:this.mx.get().isFullscreen()};return rEy(C,p,V)}; g.h.D4=function(p,C,V,N,H){this.T.has(p)&&(N<=0||H<=0||xc(xI).D4(p,C,V,N,H))}; g.h.sA=function(p){var C;(C=this.T.get(p.queryId))==null||C.sA()}; g.h.Ao=function(p){var C;(C=this.T.get(p.queryId))==null||C.Ao()}; g.h.Iy=function(p){var C;(C=this.T.get(p.queryId))==null||C.Iy()}; g.h.bN=function(p){var C;(C=this.T.get(p.queryId))==null||C.bN()}; g.h.Cr=function(p){var C;(C=this.T.get(p.queryId))==null||C.Cr()};EzQ.prototype.send=function(p,C,V,N){try{lLe(this,p,C,V,N===void 0?!1:N)}catch(H){}};g.m(tcQ,EzQ);cSH.prototype.send=function(p,C,V,N){var H=!1;try{if(N==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||N==="ATTRIBUTION_SRC_MODE_XHR_OPTION")H=!0,p=Tfu(p);N=H;var X=p.match(wA);if(X[1]==="https")var d=p;else X[1]="https",d=eS("https",X[2],X[3],X[4],X[5],X[6],X[7]);var a=huS(d);X=[];var E=Cfj(d)&&this.x_.get().N.K().experiments.OY("add_auth_headers_to_remarketing_google_dot_com_ping");if(cd(d)||E)X.push({headerType:"USER_AUTH"}),X.push({headerType:"PLUS_PAGE_ID"}),X.push({headerType:"VISITOR_ID"}),X.push({headerType:"EOM_VISITOR_ID"}), X.push({headerType:"AUTH_USER"}),X.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:d,scrubReferrer:a,headers:X},C,V,N)}catch(l){}};dv.prototype.Ix=function(){return this.N.Ix(1)};g.m(iM,g.Y);g.h=iM.prototype;g.h.Zr=function(){return this.N.getVideoData(1).clientPlaybackNonce}; g.h.addListener=function(p){this.listeners.push(p)}; g.h.removeListener=function(p){this.listeners=this.listeners.filter(function(C){return C!==p})}; g.h.zp=function(){this.VI.clear();this.BF=null;this.VA.get().clear()}; g.h.zA=function(){}; g.h.UZ$=function(p,C,V,N,H){C.videoId==="nPpU29QrbiU"&&this.N.k_("ads_ssm_vdc_s",{pt:V,dvt:p});DY(this.x_.get())&&p!=="dataloaded"||Due(this,C,V);if(pD(this.x_.get())&&p==="newdata"&&H!==void 0){p=this.Zr();var X=C.clientPlaybackNonce,d={};Zs(this,"rte",(d.ec=X,d.xc=N==null?void 0:N.clientPlaybackNonce,d.tr=H,d.pt=V,d.ia=X!==p,d.ctp=uv(X),d));C=C.clientPlaybackNonce;N=N==null?void 0:N.clientPlaybackNonce;H=uTQ(H);if(H!==1)if(N!==void 0)for(V=g.F(this.listeners),p=V.next();!p.done;p=V.next())p.value.mC(N, C,H);else S2("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:C,transitionReason:String(H)});H=g.F(this.listeners);for(N=H.next();!N.done;N=H.next())N.value.u7(C)}}; g.h.IEn=function(p,C){p!==void 0&&(this.BF=p,C===void 0?S2("Expected ad video start time on SS video changed"):this.VI.set(p,C));var V=this.N.getPresentingPlayerType(!0),N=this.N.getVideoData(V);this.N.getVideoData(1).k_("ads_ssvc",{pt:V,cpn:N==null?void 0:N.clientPlaybackNonce,crtt:this.N.getCurrentTime(1,!1),atlh:this.N.isAtLiveHead(),adstt:C});N?Due(this,N,V):S2("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.N.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:p})}; g.h.Z1=function(p,C){var V=p.author,N=p.clientPlaybackNonce,H=p.isListed,X=p.OZ,d=p.title,a=p.wx,E=p.eH,l=p.isMdxPlayback,t=p.B_,c=p.mdxEnvironment,T=p.isAutonav,M=p.dP,J=p.X4,S=p.WP,D=p.videoId||"",Z=p.profilePicture||"",f=p.eI||"",q=p.rR()||!1,A=p.VL()||!1;p=p.Bb||void 0;X=this.VA.get().T.get(X)||{layoutId:null,slotId:null};var z=this.N.getVideoData(1),Q=z.p4();z=z.getPlayerResponse();C=1E3*this.N.getDuration(C);var P=1E3*this.N.getDuration(1),VL,au,W=(z==null?void 0:(VL=z.playerConfig)==null?void 0: (au=VL.daiConfig)==null?void 0:au.enableDai)||!1,e,B;VL=(z==null?void 0:(e=z.playerConfig)==null?void 0:(B=e.daiConfig)==null?void 0:B.enablePreroll)||!1;return Object.assign({},X,{videoId:D,author:V,clientPlaybackNonce:N,ade:C,qw:P,daiEnabled:W,lB:VL,isListed:H,p4:Q,profilePicture:Z,title:d,eI:f,wx:a,eH:E,Bb:p,isMdxPlayback:l,B_:t,mdxEnvironment:c,isAutonav:T,dP:M,X4:J,WP:S,rR:q,VL:A})}; g.h.CS=function(){this.listeners.length=0;this.KA=null;g.Y.prototype.CS.call(this)};g.m(hF,g.Y);g.h=hF.prototype;g.h.zp=function(){var p=this;pD(this.x_.get())||(this.T=KJ(function(){p.N.fS()||p.N.hp("ad",1)}))}; g.h.zA=function(){}; g.h.addListener=function(p){this.listeners.push(p)}; g.h.removeListener=function(p){this.listeners=this.listeners.filter(function(C){return C!==p})}; g.h.EU=function(){}; g.h.playVideo=function(){this.N.playVideo()}; g.h.pauseVideo=function(){this.N.pauseVideo()}; g.h.resumeVideo=function(p){this.Hp(p)&&this.N.playVideo()}; g.h.Hp=function(p){return this.N.getPlayerState(p)===2}; g.h.getCurrentTimeSec=function(p,C,V){var N=this.pS.get().BF;if(p===2&&!C&&N!==null)return Uue(this,N);Cs(this.x_.get(),"html5_ssap_use_cpn_to_get_time")||(V=void 0);return V!==void 0?this.N.getCurrentTime(p,C,V):this.N.getCurrentTime(p,C)}; g.h.getVolume=function(){return this.N.getVolume()}; g.h.isMuted=function(){return this.N.isMuted()}; g.h.getPresentingPlayerType=function(){return this.N.getPresentingPlayerType(!0)}; g.h.getPlayerState=function(p){return this.N.getPlayerState(p)}; g.h.isFullscreen=function(){return this.N.isFullscreen()}; g.h.isAtLiveHead=function(){return this.N.isAtLiveHead()}; g.h.Gz=function(p){this.N.Gz(p)}; g.h.UW$=function(){var p=this.N.getPresentingPlayerType(!0),C=this.getCurrentTimeSec(p,!1);if(p===2){p=g.F(this.listeners);for(var V=p.next();!V.done;V=p.next())V.value.Eu(C)}else if(p===1)for(p=g.F(this.xW),V=p.next();!V.done;V=p.next())V.value.EU(C)}; g.h.e6o=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.Ld(p,this.getPresentingPlayerType())}; g.h.onFullscreenToggled=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.onFullscreenToggled(p)}; g.h.onVolumeChange=function(){for(var p=g.F(this.listeners),C=p.next();!C.done;C=p.next())C.value.onVolumeChange()}; g.h.xq=function(){for(var p=this.N.isMinimized(),C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.xq(p)}; g.h.iM=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.iM(p)}; g.h.OR=function(){for(var p=this.N.dV().KO(),C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.gx(p)}; g.h.vz=function(p){for(var C=g.F(this.listeners),V=C.next();!V.done;V=C.next())V.value.vz(p)}; g.h.Wz=function(){for(var p=g.F(this.listeners),C=p.next();!C.done;C=p.next())C.value.Wz()};g.m(ySe,g.Y);g.m(tF,g.Y);tF.prototype.CS=function(){this.Yz.fS()||this.Yz.get().removeListener(this);g.Y.prototype.CS.call(this)};cq.prototype.fetch=function(p){var C=p.mJ;return this.T.fetch(p.W5,{U5:p.U5===void 0?void 0:p.U5,zN:C,cueProcessedMs:p.cueProcessedMs===void 0?0:p.cueProcessedMs}).then(function(V){return qwY(V,C)})};g.m(TS,g.Y);g.h=TS.prototype;g.h.addListener=function(p){this.listeners.push(p)}; g.h.removeListener=function(p){this.listeners=this.listeners.filter(function(C){return C!==p})}; g.h.h3=function(p){ILs(this,p,1)}; g.h.onAdUxClicked=function(p,C){ME(this,function(V){V.Mg(p,C)})}; g.h.xo=function(p){ME(this,function(C){C.UB(p)})}; g.h.A5=function(p){ME(this,function(C){C.tL(p)})}; g.h.rkn=function(p){ME(this,function(C){C.N8(p)})};JF.prototype.reduce=function(p){switch(p.event){case "unknown":return}var C=p.identifier;var V=this.T[C];V?C=V:(V={rg:null,vY:-Infinity},C=this.T[C]=V);V=p.startSecs+p.T/1E3;if(!(V<C.vY))if(C.vY=V,C.rg){if(V<C.rg.end){a:{V=C.rg;switch(p.event){case "start":case "continue":case "stop":break;default:p=null;break a}p=V.start+p.uc;p=V.end<=p?null:p}if(p!==null)for(C.rg.end=p,C=this.C,g.Ev(C.V.T,p*1E3),C=g.F(C.listeners),V=C.next();!V.done;V=C.next())V.value.u1(p)}}else if(p=bQs(p,this.V))V=p.T6,C.rg= p.NC,ozX(this.C,V)}; JF.prototype.updateTime=function(){};g.m(mf,g.Y);g.h=mf.prototype; g.h.zp=function(){this.W=new JF(this,QRX(this.x_.get()));this.V=new AS9;var p=this.N.getVideoData(1);if(!p.enableServerStitchedDai){var C=this.N.getVideoData(1),V;((V=this.T)==null?void 0:V.clientPlaybackNonce)!==C.clientPlaybackNonce&&(this.T!=null&&this.T.unsubscribe("cuepointupdated",this.mq,this),C.subscribe("cuepointupdated",this.mq,this),this.T=C)}this.ya.length=0;var N;C=((N=p.T)==null?void 0:nPa(N,0))||[];N=g.F(C);for(C=N.next();!C.done;C=N.next())C=C.value,this.qE(C)&&S2("Unexpected a GetAdBreak to go out without player waiting", void 0,void 0,{cuePointId:C.identifier,cuePointEvent:C.event,contentCpn:p.clientPlaybackNonce})}; g.h.zA=function(){}; g.h.addListener=function(p){this.listeners.push(p)}; g.h.removeListener=function(p){this.listeners=this.listeners.filter(function(C){return C!==p})}; g.h.qE=function(p){xus(this,p);this.W.reduce(p);p=this.S;this.S=!1;return p}; g.h.mq=function(p){var C=this.N.getVideoData(1).isDaiEnabled();if(C||!g.qz(this.N.K())){p=g.F(p);for(var V=p.next();!V.done;V=p.next())V=V.value,xus(this,V),C?this.W.reduce(V):this.N.getCurrentTime(1)!==0&&V.event==="start"&&(this.x_.get().N.K().experiments.OY("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.C==null?0:V.startSecs+V.uc>=this.C.startSecs&&V.startSecs<=this.C.startSecs+this.C.uc)?S2("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.C=V,ozX(this, V)))}}; g.h.CS=function(){this.T!=null&&(this.T.unsubscribe("cuepointupdated",this.mq,this),this.T=null);this.listeners.length=0;this.ya.length=0;g.Y.prototype.CS.call(this)};vq.prototype.addPlayerResponseForAssociation=function(p){this.N.addPlayerResponseForAssociation(p)};g.h=SC.prototype;g.h.JY=function(p,C,V,N,H,X,d){return this.N.JY(p,C,V,N,H,X,d)}; g.h.Th=function(p,C){this.N.Th(p,C)}; g.h.al=function(p,C,V){this.N.al(p,C,V)}; g.h.TE=function(p){this.N.TE(p)}; g.h.hA=function(p,C,V,N,H,X,d){this.N.hA(p,C,V,N,H,X,d)}; g.h.s_=function(p){return this.N.s_(p)}; g.h.finishSegmentByCpn=function(p,C,V){V=zAH(V);this.N.finishSegmentByCpn(p,C,V)};g.m(nzV,g.Y);g.m(eAv,g.Y);g.m(PEY,g.Y);g.m(wAs,g.Y);g.m($ue,g.Y);g.m(gzX,g.Y);gzX.prototype.V=function(){return this.C};g.m(WXe,GB); WXe.prototype.S=function(p){var C=p.content;if(C.componentType==="shopping-companion")switch(p.actionType){case 1:case 2:p=this.T.getVideoData(1);this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,shoppingCompanionCarouselRenderer:C.renderer,layoutId:C.layoutId,macros:C.macros,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});break;case 3:this.T.Jk("updateKevlarOrC3Companion",{})}else if(C.componentType==="action-companion")switch(p.actionType){case 1:case 2:p=this.T.getVideoData(1); this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,actionCompanionAdRenderer:C.renderer,layoutId:C.layoutId,macros:C.macros,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});break;case 3:C.renderer&&(C=this.T.getVideoData(1),this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:C&&C.videoId})),this.T.Jk("updateKevlarOrC3Companion",{})}else if(C.componentType==="image-companion")switch(p.actionType){case 1:case 2:p=this.T.getVideoData(1);this.T.Jk("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,imageCompanionAdRenderer:C.renderer,layoutId:C.layoutId,macros:C.macros,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});break;case 3:C=this.T.getVideoData(1),this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:C&&C.videoId}),this.T.Jk("updateKevlarOrC3Companion",{})}else if(C.componentType==="top-banner-image-text-icon-buttoned")switch(p.actionType){case 1:case 2:p=this.T.getVideoData(1);this.T.Jk("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,topBannerImageTextIconButtonedLayoutViewModel:C.renderer,layoutId:C.layoutId,macros:C.macros,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});break;case 3:C.renderer&&(C=this.T.getVideoData(1),this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:C&&C.videoId})),this.T.Jk("updateKevlarOrC3Companion",{})}else if(C.componentType==="banner-image")switch(p.actionType){case 1:case 2:p=this.T.getVideoData(1);this.T.Jk("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,bannerImageLayoutViewModel:C.renderer,layoutId:C.layoutId,macros:C.macros,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});break;case 3:C=this.T.getVideoData(1),this.T.Jk("updateKevlarOrC3Companion",{contentVideoId:C&&C.videoId}),this.T.Jk("updateKevlarOrC3Companion",{})}else if(C.componentType==="ads-engagement-panel")switch(C=C.renderer,p.actionType){case 1:case 2:this.T.Jk("updateEngagementPanelAction",C.addAction);this.T.Jk("changeEngagementPanelVisibility", C.expandAction);break;case 3:this.T.Jk("changeEngagementPanelVisibility",C.hideAction),this.T.Jk("updateEngagementPanelAction",C.removeAction)}else if(C.componentType==="ads-engagement-panel-layout"){var V=C.renderer;switch(p.actionType){case 1:case 2:this.T.Jk("updateEngagementPanelAction",{action:Lm(V.addAction),layoutId:C.layoutId,onLayoutVisibleCallback:C.T,interactionLoggingClientData:C.interactionLoggingClientData});this.T.Jk("changeEngagementPanelVisibility",Lm(V.expandAction));break;case 3:this.T.Jk("changeEngagementPanelVisibility", Lm(V.hideAction)),this.T.Jk("updateEngagementPanelAction",{action:Lm(V.removeAction)})}}};g.m(QmX,dk);g.h=QmX.prototype;g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);g.K2(this.V,"stroke-dasharray","0 "+this.C);this.api.K().G("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.V.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.K().G("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.S.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){h7(this);dk.prototype.hide.call(this)}; g.h.show=function(){i$(this);dk.prototype.show.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();p!=null&&p.current!=null&&g.K2(this.V,"stroke-dasharray",p.current/p.seekableEnd*this.C+" "+this.C)}};g.m(rSe,Kq);g.h=rSe.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);if(C.image&&C.image.thumbnail)if(C.headline)if(C.description)if(C.backgroundImage&&C.backgroundImage.thumbnail)if(C.actionButton&&g.n(C.actionButton,g.z$))if(p=C.durationMilliseconds||0,typeof p!=="number"||p<=0)g.nm(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+p));else if(C.navigationEndpoint){var N=this.api.getVideoData(2);if(N!=null){var H=C.image.thumbnail.thumbnails;H!=null&& H.length>0&&g.Sy(g.dI(H[0].url))&&(H[0].url=N.profilePicture,g.Sy(g.dI(N.profilePicture))&&f8u("VideoPlayer",239976093,"Expected non-empty profile picture."));H=C.backgroundImage.thumbnail.thumbnails;H!=null&&H.length>0&&g.Sy(g.dI(H[0].url))&&(H[0].url=N.TW());H=C.headline;H!=null&&g.Sy(g.dI(H.text))&&(H.text=N.author)}this.Z.init(lq("ad-image"),C.image,V);this.W.init(lq("ad-text"),C.headline,V);this.V.init(lq("ad-text"),C.description,V);this.R$.init(lq("ad-image"),C.backgroundImage,V);N=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.api.K().G("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.V.element.classList.add("ytp-ad-action-interstitial-description-light"),N.push("ytp-ad-action-interstitial-action-button-dark"));this.api.K().C&&(N.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),N.push("ytp-ad-action-interstitial-action-button-dark")); this.api.K().G("enable_unified_action_endcap_on_web")&&!this.api.K().C&&(N.push("ytp-ad-action-interstitial-action-button-unified"),this.KS.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Qn.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.eZ.classList.add("ytp-ad-action-interstitial-card-unified"),this.b_.classList.add("ytp-ad-action-interstitial-description-container-unified"), this.V.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.Sa.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.vr.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ga.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new nq(this.api,this.layoutId,this.interactionLoggingClientData, this.l_,N);g.R(this,this.actionButton);this.actionButton.u_(this.KS);this.actionButton.init(lq("button"),g.n(C.actionButton,g.z$),V);Go(this.actionButton.element);N=jJ(this.actionButton.element);Cg(this.actionButton.element,N+" This link opens in new tab");this.navigationEndpoint=C.navigationEndpoint;this.S.U(this.vr,"click",this.D5,this);this.S.U(this.b_,"click",this.D5,this);!this.api.K().G("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.K().C||this.S.U(this.Sa,"click",this.D5, this);this.T=this.RE?new I0(this.api,p):new b$(p);g.R(this,this.T);if(C.skipButton){if((p=g.n(C.skipButton,BYc))&&this.T&&(this.skipButton=new Z7(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.T,this.L5),g.R(this,this.skipButton),this.skipButton.u_(this.element),this.skipButton.init(lq("skip-button"),p,V)),this.api.K().G("enable_dsa_ad_badge_for_action_endcap_on_web")){V=this.api.G("disable_ad_preview_for_instream_ads");if(p=C.adBadgeRenderer)if(p=g.n(p,rfP))N=new y_(this.api, this.layoutId,this.interactionLoggingClientData,this.l_,!0,V),N.u_(this.Ga),N.init(lq("simple-ad-badge"),p,this.macros),g.R(this,N);if(p=C.adInfoRenderer)if(p=g.n(p,xr))V=new NN(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.element,void 0,V),V.u_(this.Ga),V.init(lq("ad-info-hover-text-button"),p,this.macros),g.R(this,V)}}else C.nonskippableOverlayRenderer&&(p=g.n(C.nonskippableOverlayRenderer,Yr))&&this.T&&(this.C=new l$(this.api,this.layoutId,this.interactionLoggingClientData, this.l_,this.T,!1),g.R(this,this.C),this.C.u_(this.element),this.C.init(lq("ad-preview"),p,V));C.countdownRenderer&&(C=C.countdownRenderer,g.n(C,Gpp)&&this.T&&(V=new QmX(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.T),g.R(this,V),V.u_(this.element),V.init(lq("timed-pie-countdown"),g.n(C,Gpp),this.macros)));this.show();this.element.focus()}else g.nm(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.nm(Error("AdActionInterstitialRenderer has no button.")); else g.nm(Error("AdActionInterstitialRenderer has no background AdImage."));else g.nm(Error("AdActionInterstitialRenderer has no description AdText."));else g.nm(Error("AdActionInterstitialRenderer has no headline AdText."));else g.nm(Error("AdActionInterstitialRenderer has no image."))}; g.h.clear=function(){g.Am(this.S);this.hide()}; g.h.show=function(){Bas(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.C&&this.C.show();Kq.prototype.show.call(this)}; g.h.hide=function(){Bas(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.C&&this.C.hide();Kq.prototype.hide.call(this)}; g.h.D5=function(){this.navigationEndpoint&&(this.layoutId?this.l_.executeCommand(this.navigationEndpoint,this.layoutId):g.nm(Error("Missing layoutId for ad action interstitial.")))};var VRL={iconType:"CLOSE"},ZO=new g.KG(320,63);g.m(jGv,Kq);g.h=jGv.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);this.S=C;this.Z=g.p6(this.S.onClickCommands||[]);this.Ga=this.S.onErrorCommand||null;if(p=this.S.contentSupportedRenderer)p=this.S.contentSupportedRenderer,C=this.S.adInfoRenderer||null,g.n(p,g28)?(this.W=g.ju("ytp-ad-overlay-ad-info-button-container",this.V.element),NjY(this,C),p=XmY(this,g.n(p,g28))):g.n(p,WrG)?(this.W=g.ju("ytp-ad-overlay-ad-info-button-container",this.C.element),NjY(this,C),p=dHL(this,g.n(p,WrG))):g.n(p,QF1)?(this.W= g.ju("ytp-ad-overlay-ad-info-button-container",this.T.element),NjY(this,C),p=ii9(this,g.n(p,QF1))):(g.nm(Error("InvideoOverlayAdRenderer content could not be initialized.")),p=!1);p&&(this.show(),hlQ(this,!0))}; g.h.clear=function(){hlQ(this,!1);this.vr.reset();this.b_=0;this.V.hide();this.logVisibility(this.V.element,!1);this.C.hide();this.logVisibility(this.C.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()}; g.h.h3n=function(){this.KS&&(this.layoutId?this.l_.executeCommand(this.KS,this.layoutId):g.nm(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.h.qL=function(){a:{if(this.S&&this.S.closeButton&&this.S.closeButton.buttonRenderer){var p=this.S.closeButton.buttonRenderer;if(p.serviceEndpoint){p=[p.serviceEndpoint];break a}}p=[]}p=g.F(p);for(var C=p.next();!C.done;C=p.next())C=C.value,this.layoutId?this.l_.executeCommand(C,this.layoutId):g.nm(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.h.s$_=function(){this.R$||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.h.J5=function(){this.R$||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.J5("invideo-overlay")}; g.h.IeY=function(p){p.target===this.W&&g.ju("ytp-ad-button",this.Qn.element).click()};g.m(sGQ,dk);g.h=sGQ.prototype;g.h.init=function(p,C,V){dk.prototype.init.call(this,p,C,V);p=C.durationMs;this.V=p==null||p===0?0:p+this.T.getProgressState().current*1E3;if(C.text)var N=C.text.templatedAdText;else C.staticMessage&&(N=C.staticMessage);this.messageText.init(lq("ad-text"),N,V);this.messageText.u_(this.C.element);this.S.show(100);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){axL(this,!1);dk.prototype.hide.call(this);this.C.hide();this.messageText.hide();h7(this)}; g.h.show=function(){axL(this,!0);dk.prototype.show.call(this);i$(this);this.C.show();this.messageText.show()}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T!=null){var p=this.T.getProgressState();p!=null&&p.current!=null&&(p=1E3*p.current,!this.b_&&p>=this.V?(this.S.hide(),this.b_=!0):this.messageText&&this.messageText.isTemplated()&&(p=Math.max(0,Math.ceil((this.V-p)/1E3)),p!==this.W&&(XK(this.messageText,{TIME_REMAINING:String(p)}),this.W=p)))}};g.m(EMX,Kq);g.h=EMX.prototype; g.h.init=function(p,C,V){Kq.prototype.init.call(this,p,C,{});C.image&&C.image.thumbnail?C.headline?C.description?C.actionButton&&g.n(C.actionButton,g.z$)?(this.V.init(lq("ad-image"),C.image,V),this.C.init(lq("ad-text"),C.headline,V),this.S.init(lq("ad-text"),C.description,V),p=["ytp-ad-underlay-action-button"],this.api.K().G("use_blue_buttons_for_desktop_player_underlay")&&p.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_, p),C.backgroundColor&&g.K2(this.element,"background-color",g.Q_(C.backgroundColor)),g.R(this,this.actionButton),this.actionButton.u_(this.W),this.actionButton.init(lq("button"),g.n(C.actionButton,g.z$),V),C=g.mi(this.api.K().experiments,"player_underlay_video_width_fraction"),this.api.K().G("place_shrunken_video_on_left_of_player")?(V=this.T,g.tk(V,"ytp-ad-underlay-left-container"),g.Ed(V,"ytp-ad-underlay-right-container"),g.K2(this.T,"margin-left",Math.round((C+.02)*100)+"%")):(V=this.T,g.tk(V,"ytp-ad-underlay-right-container"), g.Ed(V,"ytp-ad-underlay-left-container")),g.K2(this.T,"width",Math.round((1-C-.04)*100)+"%"),this.api.WE()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.AC.bind(this)),this.api.addEventListener("resize",this.CI.bind(this))):g.nm(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.nm(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.nm(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.nm(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.h.show=function(){lxL(!0);this.actionButton&&this.actionButton.show();Kq.prototype.show.call(this)}; g.h.hide=function(){lxL(!1);this.actionButton&&this.actionButton.hide();Kq.prototype.hide.call(this)}; g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.AC.bind(this));this.api.removeEventListener("resize",this.CI.bind(this));this.hide()}; g.h.onClick=function(p){Kq.prototype.onClick.call(this,p);this.actionButton&&g.t2(this.actionButton.element,p.target)&&this.api.pauseVideo()}; g.h.AC=function(p){p==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):p==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):p==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))}; g.h.CI=function(p){p.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):p.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.K2(this.C.element,"font-size",p.width/40+"px")};g.m(Um,Kq); Um.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);C.toggledLoggingParams&&(this.toggledLoggingParams=C.toggledLoggingParams);C.answer&&g.n(C.answer,g.z$)?(p=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),p.u_(this.answer),p.init(lq("ytp-ad-survey-answer-button"),g.n(C.answer,g.z$),V),p.show()):C.answer&&g.n(C.answer,vD)&&(this.T=new re(this.api,this.layoutId,this.interactionLoggingClientData,this.l_, ["ytp-ad-survey-answer-toggle-button"]),this.T.u_(this.answer),g.R(this,this.T),this.T.init(lq("survey-answer-button"),g.n(C.answer,vD),V));this.show()}; Um.prototype.mu=function(p){this.layoutId?BU(this.l_,p,this.layoutId,this.macros):g.nm(new g.Bw("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; Um.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p);if(this.api.K().G("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Um.prototype.clear=function(){this.hide()};g.m(tRV,Kq);tRV.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);C.answer&&g.n(C.answer,vD)&&(this.button=new re(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.u_(this.T),this.button.init(lq("survey-none-of-the-above-button"),g.n(C.answer,vD),V));this.show()};g.m(fD,nq);fD.prototype.init=function(p,C,V){nq.prototype.init.call(this,p,C,V);p=!1;C.text&&(C=g.uq(C.text),p=!g.Sy(C));p||g.eG(Error("No submit text was present in the renderer."))}; fD.prototype.onClick=function(p){this.publish("l");nq.prototype.onClick.call(this,p)};g.m(Om,Kq); Om.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);if(p=C.skipOrPreviewRenderer)g.n(p,JV)?(p=g.n(p,JV),V=new ft(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.S,!0),V.u_(this.skipOrPreview),V.init(lq("skip-button"),p,this.macros),g.R(this,V),this.T=V):g.n(p,Yr)&&(p=g.n(p,Yr),V=new l$(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.S,!1),V.u_(this.skipOrPreview),V.init(lq("ad-preview"),p,this.macros),t7(V),g.R(this,V),this.T=V);this.T== null&&g.nm(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(C)));C.submitButton&&(p=C.submitButton,g.n(p,g.z$)&&(p=g.n(p,g.z$),V=new fD(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),V.u_(this.submitButton),V.init(lq("survey-submit"),p,this.macros),g.R(this,V),this.C=V));p=this.api.G("disable_ad_preview_for_instream_ads");if(V=C.adBadgeRenderer){V=g.n(V,rfP);var N=new y_(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,!0, p,!0);N.u_(this.V);N.init(lq("simple-ad-badge"),V,this.macros);this.adBadge=N.element;g.R(this,N)}if(V=C.adDurationRemaining)V=g.n(V,w5r),N=new kU(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.S,void 0,p),N.u_(this.V),N.init(lq("ad-duration-remaining"),V,this.macros),g.R(this,N);(C=C.adInfoRenderer)&&g.n(C,xr)&&(V=new NN(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.element,void 0,p),g.R(this,V),p&&this.adBadge!==void 0?this.V.insertBefore(V.element, this.adBadge.nextSibling):V.u_(this.V),V.init(lq("ad-info-hover-text-button"),g.n(C,xr),this.macros));this.show()}; Om.prototype.clear=function(){this.hide()};g.m(y0,Kq);y0.prototype.init=function(p,C,V){Kq.prototype.init.call(this,p,C,V);mHj(this)}; y0.prototype.show=function(){this.V=Date.now();Kq.prototype.show.call(this)}; y0.prototype.z0=function(){};g.m(vMy,y0);g.h=vMy.prototype;g.h.init=function(p,C,V){var N=this;y0.prototype.init.call(this,p,C,V);C.questionText&&cve(this,C.questionText);C.answers&&C.answers.forEach(function(H,X){g.n(H,JJ)&&Tju(N,g.n(H,JJ),V,X)}); this.W=new Set(this.C.map(function(H){return H.T.T})); (p=C.noneOfTheAbove)&&(p=g.n(p,Lrv))&&F3V(this,p,V);C.surveyAdQuestionCommon&&Jvv(this,C.surveyAdQuestionCommon);C.submitEndpoints&&(this.submitEndpoints=C.submitEndpoints);this.U(this.element,"change",this.onChange);this.show()}; g.h.z0=function(){SYS(this,!1);this.S.C.subscribe("l",this.NY_,this)}; g.h.onChange=function(p){p.target===this.noneOfTheAbove.button.T?K3a(this):this.W.has(p.target)&&(this.noneOfTheAbove.button.toggleButton(!1),SYS(this,!0))}; g.h.NY_=function(){var p=[],C=this.C.reduce(function(H,X,d){var a=X.toggledLoggingParams;X.T&&X.T.isToggled()&&a&&(H.push(a),p.push(d));return H},[]).join("&"),V=this.submitEndpoints.map(function(H){if(!H.loggingUrls)return H; H=g.Ra(H);H.loggingUrls=H.loggingUrls.map(function(X){X.baseUrl&&(X.baseUrl=pN(X.baseUrl,C));return X}); return H}); if(V){V=g.F(V);for(var N=V.next();!N.done;N=V.next())N=N.value,this.layoutId?BU(this.l_,N,this.layoutId,this.macros):g.nm(Error("Missing layoutId for multi_select_question."))}this.api.K().G("supports_multi_step_on_desktop")&&this.b_(p)}; g.h.clear=function(){this.api.K().G("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.m(qE,y0);qE.prototype.init=function(p,C,V){var N=this;y0.prototype.init.call(this,p,C,V);C.questionText&&cve(this,C.questionText);C.answers&&C.answers.forEach(function(H,X){g.n(H,JJ)&&Tju(N,g.n(H,JJ),V,X)}); C.surveyAdQuestionCommon?Jvv(this,C.surveyAdQuestionCommon):g.nm(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(C)));this.show()}; qE.prototype.clear=function(){this.api.K().G("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.m(IQ,Kq);IQ.prototype.init=function(p,C,V){var N=this;Kq.prototype.init.call(this,p,C,V);if(this.api.K().G("supports_multi_step_on_desktop")){var H;this.conditioningRules=(H=C.conditioningRules)!=null?H:[];var X;this.C=(X=C.questions)!=null?X:[];var d;((d=C.questions)==null?0:d.length)&&UHX(this,0)}else(C.questions||[]).forEach(function(a){g.n(a,od)?u$1(N,g.n(a,od),V):g.n(a,AM)&&Zi9(N,g.n(a,AM),V)}); this.show()}; IQ.prototype.clear=function(){this.api.K().G("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; IQ.prototype.S=function(p){var C=this;if(this.api.K().G("supports_multi_step_on_desktop")){var V;if((V=this.conditioningRules)==null?0:V.length){var N;if(p.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(H){return H.questionIndex===C.T})==null)g.nm(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(H){if(H.questionIndex===C.T)switch(H.condition){case "CONDITION_ALL_OF":var X;if((X=H.answerIndices)==null?0:X.every(function(a){return p.includes(a)}))N=H.nextQuestionIndex; break;case "CONDITION_ANY_OF":var d;if((d=H.answerIndices)==null?0:d.some(function(a){return p.includes(a)}))N=H.nextQuestionIndex; break;default:g.nm(Error("Expected specified condition in survey conditioning rules."))}}),N!=null)UHX(this,N); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.nm(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.m(bM,Kq); bM.prototype.init=function(p,C,V){var N=this;Kq.prototype.init.call(this,p,C,V);p=C.timeoutSeconds||0;if(typeof p!=="number"||p<0)g.nm(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+p));else if(C.timeoutCommands)if(C.text)if(C.ctaButton&&g.n(C.ctaButton,g.z$))if(C.brandImage)if(C.backgroundImage&&g.n(C.backgroundImage,Rd)&&g.n(C.backgroundImage,Rd).landscape){this.layoutId||g.nm(Error("Missing layoutId for survey interstitial."));fxe(this.interstitial,g.n(C.backgroundImage, Rd).landscape);fxe(this.logoImage,C.brandImage);g.ce(this.text,g.uq(C.text));var H=["ytp-ad-survey-interstitial-action-button"];H.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new nq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,H);g.R(this,this.actionButton);this.actionButton.u_(this.C);this.actionButton.init(lq("button"),g.n(C.ctaButton,g.z$),V);this.actionButton.show();this.T=new I0(this.api,p*1E3);this.T.subscribe("g",function(){N.transition.hide()}); g.R(this,this.T);this.U(this.element,"click",function(X){var d=X.target===N.interstitial;X=N.actionButton.element.contains(X.target);if(d||X)if(N.transition.hide(),d)N.api.onAdUxClicked(N.componentType,N.layoutId)}); this.transition.show(100)}else g.nm(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.nm(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.nm(Error("SurveyTextInterstitialRenderer has no button."));else g.nm(Error("SurveyTextInterstitialRenderer has no text."));else g.nm(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; bM.prototype.clear=function(){this.hide()}; bM.prototype.show=function(){Oi9(!0);Kq.prototype.show.call(this)}; bM.prototype.hide=function(){Oi9(!1);Kq.prototype.hide.call(this)};g.m(AF,dk);g.h=AF.prototype; g.h.init=function(p,C){dk.prototype.init.call(this,p,C,{});if(C.durationMilliseconds){if(C.durationMilliseconds<0){g.nm(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+C.durationMilliseconds));return}this.C=C.durationMilliseconds}else this.C=this.T.Z8();var V;if((V=C.previewText)==null||!V.text||g.Sy(C.previewText.text))g.nm(Error("No text is returned for AdPreview."));else{this.W=C.previewText;C.previewText.isTemplated||g.ce(this.V,C.previewText.text);var N; if(((N=this.api.getVideoData(1))==null?0:N.Ov)&&C.previewImage){var H,X;(p=((X=b8(((H=C.previewImage)==null?void 0:H.sources)||[],52,!1))==null?void 0:X.url)||"")&&p.length?(this.previewImage=new g.Sp({L:"img",B:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",p),g.R(this,this.previewImage),this.previewImage.u_(this.element)):g.nm(Error("Failed to get imageUrl in AdPreview."))}else this.V.classList.add("ytp-preview-ad__text--padding--wide")}}; g.h.clear=function(){this.hide()}; g.h.hide=function(){h7(this);dk.prototype.hide.call(this)}; g.h.show=function(){i$(this);dk.prototype.show.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();if(p!=null&&p.current)if(p=1E3*p.current,p>=this.C)this.transition.hide();else{var C;if((C=this.W)==null?0:C.isTemplated)if(C=Math.max(0,Math.ceil((this.C-p)/1E3)),C!==this.S){var V,N;(p=(V=this.W)==null?void 0:(N=V.text)==null?void 0:N.replace("{TIME_REMAINING}",String(C)))&&g.ce(this.V,p);this.S=C}}}};g.m(oQ,Kq); oQ.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});var V,N;if((p=((N=b8(((V=C.image)==null?void 0:V.sources)||[],yvy(C),!0))==null?void 0:N.url)||"")&&p.length){V=this.rV("ytp-ad-avatar");V.src=p;var H,X;if(N=(H=C.interaction)==null?void 0:(X=H.accessibility)==null?void 0:X.label)V.alt=N;switch(C.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(C.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.nm(Error("Failed to get imageUrl in AdAvatar."))}; oQ.prototype.clear=function(){this.hide()}; oQ.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p)};g.m(ky,Kq); ky.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});var V;p=(V=C.label)==null?void 0:V.content;if((V=p!=null&&!g.Sy(p))||C.iconImage){V&&(this.buttonText=new g.Sp({L:"span",B:"ytp-ad-button-vm__text",Ak:p}),g.R(this,this.buttonText),this.buttonText.u_(this.element));var N,H,X=((N=C.interaction)==null?0:(H=N.accessibility)==null?0:H.label)||V?p:"";X&&Cg(this.element,X+" This link opens in new tab");Go(this.element);if(C.iconImage){N=void 0;if(C.iconImage){a:{H=C.iconImage;if(H.sources)for(H= g.F(H.sources),p=H.next();!p.done;p=H.next())if(p=p.value,X=void 0,(X=p.clientResource)==null?0:X.imageName){H=p;break a}H=void 0}if(H){var d;N={iconType:(d=H.clientResource)==null?void 0:d.imageName}}}d=RS(N,!1,this.T);d!=null&&(this.buttonIcon=new g.Sp({L:"span",B:"ytp-ad-button-vm__icon",j:[d]}),g.R(this,this.buttonIcon),C.iconLeading?(Eo(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):V?(this.buttonIcon.u_(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.u_(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(C.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(C.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact"); break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.eG(Error("AdButton does not have label or an icon."))}; ky.prototype.clear=function(){this.hide()}; ky.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p)};g.m(qYy,dk);g.h=qYy.prototype; g.h.init=function(p,C){dk.prototype.init.call(this,p,C,{});this.api.K().G("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.rV("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),Eo(this.rV("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(p=g.n(C.avatar,YY1)){var V=C.headline;if(V){var N=C.description;if(N){var H=g.n(C.button,gv);H?(this.adAvatar.init(lq("ad-avatar"),p),this.headline.init(lq("ad-simple-attributed-string"),new YU(V)),this.description.init(lq("ad-simple-attributed-string"),new YU(N)),V.content&&V.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(lq("ad-button"),H),this.startMilliseconds=C.startMs||0,this.api.WE()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.xP.bind(this)),i$(this)):g.nm(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nm(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nm(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nm(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();p&&p.current&&1E3*p.current>=this.startMilliseconds&&(h7(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.h.NO=function(){this.clear()}; g.h.onClick=function(p){this.api.pauseVideo();dk.prototype.onClick.call(this,p)}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.xP.bind(this))}; g.h.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();dk.prototype.show.call(this)}; g.h.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();dk.prototype.hide.call(this)}; g.h.xP=function(p){p==="hidden"?this.show():this.hide()};g.m(Yy,Kq);g.h=Yy.prototype; g.h.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(!C.label||g.Sy(C.label))g.nm(Error("No label is returned for SkipAdButton."));else if(g.ce(this.S,C.label),p=RS({iconType:"SKIP_NEXT_NEW"}),p==null)g.nm(Error("Unable to retrieve icon for SkipAdButton"));else if(this.V=new g.Sp({L:"span",B:"ytp-skip-ad-button__icon",j:[p]}),g.R(this,this.V),this.V.u_(this.element),this.api.K().experiments.OY("enable_skip_to_next_messaging")&&(C=g.dI(C.targetId)))this.C=!0,this.element.setAttribute("data-tooltip-target-id",C), this.element.setAttribute("data-tooltip-target-fixed","")}; g.h.onClick=function(p){p&&p.preventDefault();var C,V;jpQ(p,{contentCpn:(V=(C=this.api.getVideoData(1))==null?void 0:C.clientPlaybackNonce)!=null?V:""})===0?this.api.Jk("onAbnormalityDetected"):(Kq.prototype.onClick.call(this,p),this.api.K().G("embeds_web_enable_ad_skipped_event_publishing")&&this.api.Jk("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.h.clear=function(){this.T.reset();this.hide()}; g.h.hide=function(){Kq.prototype.hide.call(this)}; g.h.show=function(){this.T.start();Kq.prototype.show.call(this);this.C&&this.api.K().experiments.OY("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.m(IxH,dk);g.h=IxH.prototype; g.h.init=function(p,C){dk.prototype.init.call(this,p,C,{});p=g.n(C.preskipState,Xyy);if(this.S||!this.api.K().experiments.OY("disable_ad_preview_for_instream_ads")){if(!p){g.nm(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var V;(V=this.C)==null||V.init(lq("preview-ad"),p);(V=this.C)!=null&&(V.transition.show(100),V.show())}(V=g.n(C.skippableState,i6G))?(C.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=C.skipOffsetMilliseconds:(g.eG(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= 5E3),this.V.init(lq("skip-button"),V),this.show()):g.nm(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.h.show=function(){i$(this);dk.prototype.show.call(this)}; g.h.hide=function(){!this.isSkippable&&this.C?this.C.hide():this.V&&this.V.hide();h7(this);dk.prototype.hide.call(this)}; g.h.clear=function(){var p;(p=this.C)==null||p.clear();this.V&&this.V.clear();h7(this);dk.prototype.hide.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var p;(p=this.C)!=null&&p.transition.hide();(p=this.V)!=null&&(p.transition.show(),p.show())}};g.m(zS,Kq); zS.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(C.label){var V;((V=C.label)==null?0:V.content)&&!g.Sy(C.label.content)&&(this.linkText=new g.Sp({L:"span",B:"ytp-visit-advertiser-link__text",Ak:C.label.content}),g.R(this,this.linkText),this.linkText.u_(this.element));var N,H;if((N=C.interaction)==null?0:(H=N.accessibility)==null?0:H.label)Cg(this.element,C.interaction.accessibility.label+" This link opens in new tab");else{var X;((X=C.label)==null?0:X.content)&&!g.Sy(C.label.content)&&Cg(this.element, C.label.content+" This link opens in new tab")}Go(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.nm(Error("No label found in VisitAdvertiserLink."))}; zS.prototype.onClick=function(p){Kq.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType,this.layoutId)}; zS.prototype.clear=function(){this.hide()};g.m(RQ,Kq); RQ.prototype.init=function(p,C,V,N){Kq.prototype.init.call(this,p,C,{});if(C.skipOrPreview){V=C.skipOrPreview;p=g.n(V,h6P);V=g.n(V,Xyy);var H,X=this.api.K().G("clean_player_style_fix_on_web")&&((H=this.api.getVideoData())==null?void 0:H.isDaiEnabled());p?(this.Wm=new IxH(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C),g.R(this,this.Wm),this.Wm.u_(this.Z),this.Wm.init(lq("skip-ad"),p)):!V||this.api.K().experiments.OY("disable_ad_preview_for_instream_ads")&&!X||(this.S=new AF(this.api, this.layoutId,this.interactionLoggingClientData,this.l_,this.C,1),g.R(this,this.S),this.S.u_(this.Z),this.S.init(lq("ad-preview"),V),H=this.S,H.transition.show(100),H.show());if(H=g.n(C.skipOrPreview,h6P))var d=H.skipOffsetMilliseconds}C.playerAdCard&&(H=g.n(C.playerAdCard,dLf))&&(this.playerAdCard=new qYy(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C),g.R(this,this.playerAdCard),this.playerAdCard.u_(this.Sa),this.playerAdCard.init(lq("ad-avatar-lockup-card"),H));H=this.api.K().G("disable_ad_duration_remaining_for_instream_video_ads")|| C.adPodIndex!==void 0;C.adBadgeRenderer&&((p=g.n(C.adBadgeRenderer,LD))?(this.V=new R0(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,H),g.R(this,this.V),this.V.u_(this.T),this.V.init(lq("ad-badge"),p)):g.nm(Error("AdBadgeViewModel is not found in player overlay layout.")));C.adPodIndex&&(p=g.n(C.adPodIndex,jf1))&&(this.adPodIndex=new nt(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,g.n(C.skipOrPreview,h6P)===void 0),g.R(this,this.adPodIndex),this.adPodIndex.u_(this.T), this.adPodIndex.init(lq("ad-pod-index"),p));C.adInfoRenderer&&(p=g.n(C.adInfoRenderer,xr))&&(this.adInfoButton=new NN(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.element,void 0,H),g.R(this,this.adInfoButton),this.api.K().G("enable_ad_pod_index_autohide")&&this.V!==void 0?this.T.insertBefore(this.adInfoButton.element,this.V.element.nextSibling):this.adInfoButton.u_(this.T),this.adInfoButton.init(lq("ad-info-hover-text-button"),p,this.macros));var a;p=this.api.K().G("clean_player_style_fix_on_web")&& ((a=this.api.getVideoData())==null?void 0:a.isDaiEnabled());C.adDurationRemaining&&(!H||p)&&(a=g.n(C.adDurationRemaining,w5r))&&(this.adDurationRemaining=new kU(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C,N.videoAdDurationSeconds,H),g.R(this,this.adDurationRemaining),H&&this.adPodIndex!==void 0?this.T.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?H?this.T.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): this.T.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.u_(this.T),this.adDurationRemaining.init(lq("ad-duration-remaining"),a,this.macros),H&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));C.visitAdvertiserLink&&(N=g.n(C.visitAdvertiserLink,aVE))&&(this.visitAdvertiserLink=new zS(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.visitAdvertiserLink),this.visitAdvertiserLink.u_(this.T), this.visitAdvertiserLink.init(lq("visit-advertiser-link"),N));C.adDisclosureBanner&&(C=g.n(C.adDisclosureBanner,Crp))&&(this.adDisclosureBanner=new e2(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.adDisclosureBanner),this.adDisclosureBanner.u_(this.b_),this.adDisclosureBanner.init(lq("ad-disclosure-banner"),C));this.api.K().G("show_preskip_progress_bar_for_skippable_ads")&&(this.W=new $U(this.api,this.C,d,H),g.R(this,this.W),g.LT(this.api,this.W.element,4));this.show()}; RQ.prototype.clear=function(){this.hide()};g.m(bia,Kq);g.h=bia.prototype; g.h.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(C!=null&&C.title)if(p=C.title)if(this.headline.init(lq("ad-simple-attributed-string"),new YU(p)),p=g.n(C.moreInfoButton,gv)){if(this.moreInfoButton.init(lq("ad-button"),p),C.descriptions)C.descriptions.length>0&&(p=C.descriptions[0])&&(this.T=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.T),this.T.u_(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(lq("ad-simple-attributed-string"), new YU(p))),C.descriptions.length>1&&(C=C.descriptions[1])&&(this.C=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.C),this.C.u_(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.C.init(lq("ad-simple-attributed-string"),new YU(C)))}else g.nm(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.nm(Error("No headline found in AdGridCardText."));else g.nm(Error("No headline found in AdGridCardText."))}; g.h.onClick=function(p){Kq.prototype.onClick.call(this,p);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.h.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var p;(p=this.T)==null||p.clear();var C;(C=this.C)==null||C.clear()}; g.h.hide=function(){this.headline.hide();this.moreInfoButton.hide();var p;(p=this.T)==null||p.hide();var C;(C=this.C)==null||C.hide();Kq.prototype.hide.call(this)}; g.h.show=function(){Kq.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var p;(p=this.T)==null||p.show();var C;(C=this.C)==null||C.show()};g.m(nD,Kq);nD.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(C!=null&&C.gridCards)if(C.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.nm(Error("Only single column style is currently supported in AdGridCardCollection."));else for(p=g.F(C.gridCards),C=p.next();!C.done;C=p.next()){if(C=g.n(C.value,H60)){var V=new bia(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,V);V.u_(this.element);V.init(lq("ad-grid-card-text"),C);this.T.push(V)}}else g.nm(Error("No grid cards found in AdGridCardCollection."))}; nD.prototype.show=function(){for(var p=g.F(this.T),C=p.next();!C.done;C=p.next())C.value.show();Kq.prototype.show.call(this)}; nD.prototype.clear=function(){this.hide();for(var p=g.F(this.T),C=p.next();!C.done;C=p.next())C.value.clear()}; nD.prototype.hide=function(){for(var p=g.F(this.T),C=p.next();!C.done;C=p.next())C.value.hide();Kq.prototype.hide.call(this)};g.m(eC,dk);g.h=eC.prototype;g.h.init=function(p,C,V,N,H){H=H===void 0?0:H;dk.prototype.init.call(this,p,C,V,N);this.playerProgressOffsetMs=H;i$(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Sx.bind(this));this.api.addEventListener("resize",this.s6.bind(this));this.api.WE()?(this.C=!0,this.api.Gz(!0),this.show()):this.hide()}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();p&&p.current&&!this.C&&1E3*p.current>=this.playerProgressOffsetMs&&(this.C=!0,this.api.Gz(!0),this.show())}}; g.h.NO=function(){this.C&&this.api.Gz(!1);this.hide()}; g.h.clear=function(){this.api.Gz(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Sx.bind(this));this.api.removeEventListener("resize",this.s6.bind(this));h7(this);this.hide()}; g.h.hide=function(){AvL(!1);dk.prototype.hide.call(this)}; g.h.show=function(){AvL(!0);dk.prototype.show.call(this)};g.m(oMe,eC);g.h=oMe.prototype;g.h.init=function(p,C,V,N){if(C!=null&&C.adGridCardCollection)if(C!=null&&C.adButton){var H=Number(C.playerProgressOffsetMs||"0");isNaN(H)?eC.prototype.init.call(this,p,C,V,N):eC.prototype.init.call(this,p,C,V,N,H);p=g.n(C.adGridCardCollection,NoF);this.adGridCardCollection.init(lq("ad-grid-card-collection"),p);C=g.n(C.adButton,gv);this.adButton.init(lq("ad-button"),C);this.hide()}else g.nm(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.nm(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.h.onClick=function(p){this.adButton&&g.t2(this.adButton.element,p.target)&&this.api.pauseVideo();eC.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.h.s6=function(){}; g.h.clear=function(){this.hide();this.adGridCardCollection.clear();this.adButton.clear();eC.prototype.clear.call(this)}; g.h.show=function(){this.adGridCardCollection.show();this.adButton.show();eC.prototype.show.call(this)}; g.h.hide=function(){this.adGridCardCollection.hide();this.adButton.hide();eC.prototype.hide.call(this)}; g.h.Sx=function(p){p==="transitioning"?(this.V.classList.remove("ytp-ad-underlay-clickable"),this.show()):p==="visible"?this.V.classList.add("ytp-ad-underlay-clickable"):p==="hidden"&&(this.hide(),this.V.classList.remove("ytp-ad-underlay-clickable"))};g.m(Pq,Kq); Pq.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(C.attributes===void 0)g.nm(Error("No attributes found in AdDetailsLineViewModel."));else if(C.style===void 0)g.nm(Error("No style found in AdDetailsLineViewModel."));else{p=g.F(C.attributes);for(var V=p.next();!V.done;V=p.next())if(V=V.value,V.text!==void 0){V=V.text;var N=C.style,H=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,H);H.u_(this.element);a:switch(N){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":N="ytp-ad-details-line__text--style-responsive"; break a;default:N="ytp-ad-details-line__text--style-standard"}H.element.classList.add(N);H.init(lq("ad-simple-attributed-string"),new YU(V));this.T.push(H)}this.show()}}; Pq.prototype.show=function(){this.T.forEach(function(p){p.show()}); Kq.prototype.show.call(this)}; Pq.prototype.clear=function(){this.hide()}; Pq.prototype.hide=function(){this.T.forEach(function(p){p.hide()}); Kq.prototype.hide.call(this)};g.m(wv,Kq);wv.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});var V,N;(p=((N=b8(((V=C.image)==null?void 0:V.sources)||[]))==null?void 0:N.url)||"")&&p.length?(V=this.rV("ytp-image-background-image"),g.K2(V,"backgroundImage","url("+p+")"),C.blurLevel!==void 0&&g.K2(V,"filter","blur("+C.blurLevel+"px)"),C.gradient!==void 0&&(C=new g.L({L:"div",i_:["ytp-image-background--gradient-vertical"]}),g.R(this,C),C.u_(this.element)),this.show()):g.nm(Error("Failed to get imageUrl in ImageBackground."))}; wv.prototype.clear=function(){this.hide()};g.m(kgV,dk);g.h=kgV.prototype;g.h.init=function(p,C){dk.prototype.init.call(this,p,C,{});g.K2(this.V,"stroke-dasharray","0 "+this.C);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){h7(this);dk.prototype.hide.call(this)}; g.h.show=function(){i$(this);dk.prototype.show.call(this)}; g.h.NO=function(){this.hide()}; g.h.mY=function(){if(this.T){var p=this.T.getProgressState();p!=null&&p.current!=null&&g.K2(this.V,"stroke-dasharray",p.current/p.seekableEnd*this.C+" "+this.C)}};g.m($y,Kq); $y.prototype.init=function(p,C){Kq.prototype.init.call(this,p,C,{});if(zl1(C)){this.adAvatar=new oQ(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adAvatar);this.adAvatar.u_(this.rV("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(lq("ad-avatar"),g.n(C.adAvatar,YY1));this.headline=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.headline);this.headline.u_(this.rV("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); this.headline.init(lq("ad-simple-attributed-string"),new YU(C.headline));if(p=g.n(C.adDetailsLine,py0))this.detailsLine=new Pq(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.detailsLine),this.detailsLine.u_(this.rV("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(lq("ad-details-line"),p);this.adButton=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.l_);g.R(this,this.adButton);this.adButton.u_(this.rV("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container")); this.adButton.init(lq("ad-button"),g.n(C.adButton,gv));p=this.api.G("disable_ad_preview_for_instream_ads");this.adBadge=new R0(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,p);g.R(this,this.adBadge);this.adBadge.u_(this.S);this.adBadge.init(lq("ad-badge"),g.n(C.adBadge,LD));this.adInfoButton=new NN(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.element,void 0,p);g.R(this,this.adInfoButton);this.adInfoButton.u_(this.S);this.adInfoButton.init(lq("ad-info-hover-text-button"), g.n(C.adInfoRenderer,xr),this.macros);if(p=g.n(C.skipAdButton,i6G))this.skipAdButton=new Yy(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.skipAdButton),this.skipAdButton.u_(this.element),this.skipAdButton.init(lq("skip-button"),p);this.C=new b$(C.durationMilliseconds);g.R(this,this.C);if(p=g.n(C.countdownViewModel,sf2))this.T=new kgV(this.api,this.layoutId,this.interactionLoggingClientData,this.l_,this.C),g.R(this,this.T),this.T.u_(this.rV("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")), this.T.init(lq("timed-pie-countdown"),p);if(C=g.n(C.imageBackground,Vk1))this.imageBackground=new wv(this.api,this.layoutId,this.interactionLoggingClientData,this.l_),g.R(this,this.imageBackground),this.imageBackground.u_(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(lq("image-background"),C);this.show();this.element.focus()}}; $y.prototype.clear=function(){g.Am(this.V);this.hide()}; $y.prototype.show=function(){xHX(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Kq.prototype.show.call(this)}; $y.prototype.hide=function(){xHX(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.T&&this.T.hide();this.imageBackground&&this.imageBackground.hide();Kq.prototype.hide.call(this)};var yP8="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.m(Wq,GB); Wq.prototype.S=function(p){var C=p.id,V=p.content,N=V.componentType;if(!yP8.includes(N))switch(p.actionType){case 1:p=this.api;var H=this.l_,X=V.layoutId,d=V.interactionLoggingClientData,a=V instanceof CR?V.RE:!1,E=V instanceof CR||V instanceof qN?V.L5:!1;d=d===void 0?{}:d;a=a===void 0?!1:a;E=E===void 0?!1:E;switch(N){case "invideo-overlay":p=new jGv(p,X,d,H);break;case "player-overlay":p=new Lt(p,X,d,H,new du(p),E);break;case "player-overlay-layout":p=new RQ(p,X,d,H,new du(p));break;case "survey":p= new IQ(p,X,d,H);break;case "ad-action-interstitial":p=new rSe(p,X,d,H,a,E);break;case "video-interstitial-buttoned-centered":p=new $y(p,X,d,H);break;case "survey-interstitial":p=new bM(p,X,d,H);break;case "ad-message":p=new sGQ(p,X,d,H,new du(p,1));break;case "player-underlay":p=new EMX(p,X,d,H);break;case "display-underlay-text-grid-cards":p=new oMe(p,X,d,H,new du(p));break;default:p=null}if(!p){g.eG(Error("No UI component returned from ComponentFactory for type: "+N));break}g.bc(this.C,C)?g.eG(Error("Ad UI component already registered: "+ C)):this.C[C]=p;p.bind(V);V instanceof Gl?this.V?this.V.append(p.qM):g.eG(Error("Underlay view was not created but UnderlayRenderer was created")):this.W.append(p.qM);break;case 2:C=RlQ(this,p);if(C==null)break;C.bind(V);break;case 3:V=RlQ(this,p),V!=null&&(g.iP(V),g.bc(this.C,C)?(V=this.C,C in V&&delete V[C]):g.eG(Error("Ad UI component does not exist: "+C)))}}; Wq.prototype.CS=function(){g.s1(Object.values(this.C));this.C={};GB.prototype.CS.call(this)};g.m(nMS,g.IT);g.h=nMS.prototype;g.h.create=function(){try{elL(this),this.load(),this.created=!0,elL(this)}catch(p){S2(p instanceof Error?p:String(p))}}; g.h.load=function(){try{$HY(this)}finally{pD(DO(this.T).cB)&&this.player.hp("ad",1)}}; g.h.destroy=function(){var p=this.player.getVideoData(1);this.T.T.rJ.zA(p&&p.clientPlaybackNonce||"");this.unload();this.created=!1}; g.h.unload=function(){g.IT.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(C){S2(C instanceof Error?C:String(C))}if(this.C!=null){var p=this.C;this.C=null;p.dispose()}this.V.reset()}; g.h.P_=function(){return!1}; g.h.getAdState=function(){return-1}; g.h.getOptions=function(){return Object.values(Oy5)}; g.h.DP=function(p,C){C=C===void 0?{}:C;switch(p){case "replaceUrlMacros":return p=C,p.url?(C=iQH(this.player),Object.assign(C,p.PXY),p=g.nX(p.url,C)):p=null,p;case "onAboutThisAdPopupClosed":this.nt(C);break;case "executeCommand":p=C;p.command&&p.layoutId&&this.executeCommand(p);break;default:return null}}; g.h.qE=function(p){var C;return!((C=this.T.T.BV)==null||!C.get().qE(p))}; g.h.nt=function(p){p.isMuted&&EJX(DO(this.T).I8,DO(this.T).Bp,p.layoutId);this.R0&&this.R0.nt()}; g.h.executeCommand=function(p){DO(this.T).l_.executeCommand(p.command,p.layoutId)};g.YH("yt.player.Application.create",g.vN.create);g.YH("yt.player.Application.createAlternate",g.vN.create);erj(xG(),fmP);var qlG=g.zV("ytcsi.tick");qlG&&qlG("pe");g.qA("ad",nMS);g.m(g.Bq,g.Y);g.Bq.prototype.start=function(p,C,V){this.config={from:p,Y$:C,duration:V,startTime:(0,g.Ip)()};this.next()}; g.Bq.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.Bq.prototype.next=function(){if(this.config){var p=this.config,C=p.from,V=p.Y$,N=p.duration;p=p.startTime;var H=(0,g.Ip)()-p;p=this.T;N=BTY(p,H/N);if(N==0)p=p.D;else if(N==1)p=p.J;else{H=vG(p.D,p.W,N);var X=vG(p.W,p.Y,N);p=vG(p.Y,p.J,N);H=vG(H,X,N);X=vG(X,p,N);p=vG(H,X,N)}p=g.J9(p,0,1);this.callback(C+(V-C)*p);p<1&&this.delay.start()}};g.m(g.GS,g.L);g.h=g.GS.prototype;g.h.hasSuggestions=function(){return this.suggestionData.length>0}; g.h.sT=function(){this.C&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.h.show=function(){g.L.prototype.show.call(this);Bja(this)}; g.h.IP=function(){this.C&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.h.V2=function(){this.OR(this.api.dV().getPlayerSize())}; g.h.OR=function(p){var C=this.api.isEmbedsShortsMode()?.5625:16/9,V=this.api.GW();p=p.width-(V?112:58);V=Math.ceil(p/(V?320:192));var N=(p-V*8)/V;C=Math.floor(N/C);for(var H=g.F(this.T),X=H.next();!X.done;X=H.next())X=X.value.rV("ytp-suggestion-image"),X.style.width=N+"px",X.style.height=C+"px";this.suggestions.element.style.height=C+"px";this.S=N;this.J=C;this.containerWidth=p;this.columns=V;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.pM(this)}; g.h.onVideoDataChange=function(){var p=this.api.K(),C=this.api.getVideoData();this.W=C.UV?!1:p.S;this.suggestionData=C.suggestions?g.JT(C.suggestions,function(V){return V&&!V.playlistId}):[]; pvc(this);C.UV?this.title.update({title:g.Ks("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:C.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.h.scrollTo=function(p){p=g.J9(p,this.containerWidth-this.suggestionData.length*(this.S+8),0);this.D.start(this.scrollPosition,p,1E3);this.scrollPosition=p;g.pM(this);Bja(this)};})(_yt_player);